@lovrabet/rabetbase-cli 2.2.4-beta.6 → 2.2.4

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 (209) 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/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/commands/workspace/index.js +1 -1
  135. package/lib/config/schema.js +1 -1
  136. package/lib/constant/cdn.js +1 -1
  137. package/lib/constant/cli.js +1 -1
  138. package/lib/constant/defaults.js +1 -1
  139. package/lib/constant/domain.js +1 -1
  140. package/lib/constant/env.js +1 -1
  141. package/lib/constant/output.js +1 -1
  142. package/lib/constant/paths.js +1 -1
  143. package/lib/constant/risk.js +1 -1
  144. package/lib/context/app-resolver.js +1 -1
  145. package/lib/context/auth-resolver.js +1 -1
  146. package/lib/context/config-loader.js +1 -1
  147. package/lib/context.js +1 -1
  148. package/lib/core/alias-resolver.js +1 -1
  149. package/lib/core/api-client.js +1 -1
  150. package/lib/core/bff/config.js +1 -1
  151. package/lib/core/bff/file-system.js +1 -1
  152. package/lib/core/bff/hash.js +1 -1
  153. package/lib/core/bff/lock.js +1 -1
  154. package/lib/core/bff/utils.js +1 -1
  155. package/lib/core/db-resolver.js +1 -1
  156. package/lib/core/page/file-system.js +1 -1
  157. package/lib/core/page/hash.js +1 -1
  158. package/lib/core/page/lock.js +1 -1
  159. package/lib/core/sql-sync/config.js +1 -1
  160. package/lib/core/sql-sync/file-system.js +1 -1
  161. package/lib/core/sql-sync/hash.js +1 -1
  162. package/lib/core/sql-sync/lock.js +1 -1
  163. package/lib/core/sql-sync/utils.js +1 -1
  164. package/lib/core/sql-validator.js +1 -1
  165. package/lib/errors.js +1 -1
  166. package/lib/framework/build-all-flags.js +1 -1
  167. package/lib/framework/flags.js +1 -1
  168. package/lib/framework/help.js +1 -1
  169. package/lib/framework/index.js +1 -1
  170. package/lib/framework/output.js +1 -1
  171. package/lib/framework/response.js +1 -1
  172. package/lib/framework/runner-alias.js +1 -1
  173. package/lib/framework/runner.js +1 -1
  174. package/lib/framework/schema-export.js +1 -1
  175. package/lib/framework/types.js +1 -1
  176. package/lib/generated/build-info.js +1 -1
  177. package/lib/help.js +1 -1
  178. package/lib/skills/main.js +1 -1
  179. package/lib/skills/npx-skills-add.js +1 -1
  180. package/lib/telemetry/cli-command-trace.js +1 -1
  181. package/lib/telemetry/cli-help-trace.js +1 -1
  182. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  183. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  184. package/lib/telemetry/send-cli-trace-log.js +1 -1
  185. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  186. package/lib/utils/ai_config.js +1 -1
  187. package/lib/utils/apply-jq-filter.js +1 -1
  188. package/lib/utils/cdn-config.js +1 -1
  189. package/lib/utils/check-sdk-version.js +1 -1
  190. package/lib/utils/cli-version-check.js +1 -1
  191. package/lib/utils/cli-version-policy.js +1 -1
  192. package/lib/utils/config.js +1 -1
  193. package/lib/utils/copy-directory.js +1 -1
  194. package/lib/utils/entity-with-id.js +1 -1
  195. package/lib/utils/file-utils.js +1 -1
  196. package/lib/utils/guides-cdn.js +1 -1
  197. package/lib/utils/http-client.js +1 -1
  198. package/lib/utils/is-non-interactive.js +1 -1
  199. package/lib/utils/logger.js +1 -1
  200. package/lib/utils/params.js +1 -1
  201. package/lib/utils/platform.js +1 -1
  202. package/lib/utils/rules-cdn.js +1 -1
  203. package/lib/utils/sleep.js +1 -1
  204. package/lib/utils/template-replacer.js +1 -1
  205. package/lib/utils/update-notice.js +1 -1
  206. package/lib/utils/version.js +1 -1
  207. package/lib/utils/with-active-cookie.js +1 -1
  208. package/lib/utils/write-cli-side-channel.js +1 -1
  209. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x113b88,_0x439b8c){const _0x2b7dd5=a73_0x5d06,_0x40d522=_0x113b88();while(!![]){try{const _0x14cc78=parseInt(_0x2b7dd5(0x1f8))/0x1*(-parseInt(_0x2b7dd5(0x207))/0x2)+-parseInt(_0x2b7dd5(0x204))/0x3+-parseInt(_0x2b7dd5(0x208))/0x4+-parseInt(_0x2b7dd5(0x209))/0x5*(-parseInt(_0x2b7dd5(0x1fe))/0x6)+parseInt(_0x2b7dd5(0x1f9))/0x7*(-parseInt(_0x2b7dd5(0x203))/0x8)+parseInt(_0x2b7dd5(0x1f3))/0x9+parseInt(_0x2b7dd5(0x200))/0xa;if(_0x14cc78===_0x439b8c)break;else _0x40d522['push'](_0x40d522['shift']());}catch(_0x545109){_0x40d522['push'](_0x40d522['shift']());}}}(a73_0x31a9,0xd3c53));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x4c01fb){const _0x563ed3=a73_0x5d06,_0x1483e7=_0x4c01fb[_0x563ed3(0x202)]();if(_0x1483e7==='password'||_0x1483e7===_0x563ed3(0x1f7)||_0x1483e7==='dbpassword')return!![];if(_0x1483e7[_0x563ed3(0x1fd)](_0x563ed3(0x1fb))||_0x1483e7['includes'](_0x563ed3(0x1fa))||_0x1483e7['includes']('credential'))return!![];if(_0x1483e7[_0x563ed3(0x1fd)](_0x563ed3(0x1fc))||_0x1483e7[_0x563ed3(0x1fd)](_0x563ed3(0x205)))return!![];if(_0x1483e7===_0x563ed3(0x1f5)||_0x1483e7===_0x563ed3(0x20a)||_0x1483e7===_0x563ed3(0x1f2))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2088d7){const _0x1382a1=a73_0x5d06,_0x3f1c54={..._0x2088d7};for(const _0x2322d8 of Object[_0x1382a1(0x1f0)](_0x3f1c54)){if(!shouldRedactKey(_0x2322d8))continue;const _0x353b14=_0x3f1c54[_0x2322d8];_0x353b14!=null&&String(_0x353b14)['length']>0x0&&(_0x3f1c54[_0x2322d8]=_0x1382a1(0x201));}return _0x3f1c54;}export function sanitizeDbLinkList(_0x8a84bf){const _0x5be939=a73_0x5d06;return _0x8a84bf[_0x5be939(0x206)](_0x57d812=>sanitizeDbLinkForOutput(_0x57d812));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x502b6e){const _0x1815d7=a73_0x5d06,_0x581179=_0x502b6e[_0x1815d7(0x1f6)]();if(!_0x581179)return![];return DB_URL_PATTERN['test'](_0x581179);}function a73_0x31a9(){const _0x5a7c3d=['map','127298Pxjbke','5283732okZlSE','5ixSzrT','connectionstring','keys','/data/er?dbId=','jdbcurl','10891287fhEvlL','/data/database','authorization','trim','passwd','5ecReVx','110306zKFFWq','token','secret','privatekey','includes','7982682yhEFrT','isFinite','30154470SwiYVv','[redacted]','toLowerCase','872lJStAT','3995478KRhIof','accesskey'];a73_0x31a9=function(){return _0x5a7c3d;};return a73_0x31a9();}function a73_0x5d06(_0x3e93f0,_0x25af6a){_0x3e93f0=_0x3e93f0-0x1f0;const _0x31a95c=a73_0x31a9();let _0x5d0675=_0x31a95c[_0x3e93f0];return _0x5d0675;}export function buildDbPageLinks(_0x5b0001,_0x16830e){const _0x5d6d16=a73_0x5d06,_0x550847=_0x5b0001?.[_0x5d6d16(0x1f6)]();if(!_0x550847)return undefined;const _0xc2ed95=typeof _0x16830e==='number'?String(_0x16830e):String(_0x16830e??'')[_0x5d6d16(0x1f6)]();if(!_0xc2ed95)return undefined;const _0x3eb714=Number(_0xc2ed95);if(!Number[_0x5d6d16(0x1ff)](_0x3eb714)||_0x3eb714<=0x0)return undefined;const _0x2c230f=getAppBaseUrl(_0x550847),_0x152052=encodeURIComponent(String(_0x3eb714));return{'databasePage':_0x2c230f+_0x5d6d16(0x1f4),'erPage':_0x2c230f+_0x5d6d16(0x1f1)+_0x152052};}
1
+ (function(_0x250be6,_0x28f2ae){const _0x5784fb=a73_0x5ebe,_0x570c29=_0x250be6();while(!![]){try{const _0x21bf36=parseInt(_0x5784fb(0x13a))/0x1*(-parseInt(_0x5784fb(0x139))/0x2)+parseInt(_0x5784fb(0x145))/0x3+parseInt(_0x5784fb(0x132))/0x4+parseInt(_0x5784fb(0x13e))/0x5+-parseInt(_0x5784fb(0x136))/0x6*(parseInt(_0x5784fb(0x148))/0x7)+-parseInt(_0x5784fb(0x13f))/0x8+parseInt(_0x5784fb(0x142))/0x9*(parseInt(_0x5784fb(0x135))/0xa);if(_0x21bf36===_0x28f2ae)break;else _0x570c29['push'](_0x570c29['shift']());}catch(_0x3a0dc4){_0x570c29['push'](_0x570c29['shift']());}}}(a73_0x28e2,0xdb003));function a73_0x5ebe(_0x3cfdfa,_0x19cc2e){_0x3cfdfa=_0x3cfdfa-0x130;const _0x28e231=a73_0x28e2();let _0x5ebe34=_0x28e231[_0x3cfdfa];return _0x5ebe34;}import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x6dfb23){const _0x51c2c4=a73_0x5ebe,_0x13421b=_0x6dfb23[_0x51c2c4(0x143)]();if(_0x13421b===_0x51c2c4(0x13b)||_0x13421b===_0x51c2c4(0x147)||_0x13421b===_0x51c2c4(0x144))return!![];if(_0x13421b['includes'](_0x51c2c4(0x131))||_0x13421b['includes']('token')||_0x13421b['includes']('credential'))return!![];if(_0x13421b[_0x51c2c4(0x134)](_0x51c2c4(0x13c))||_0x13421b['includes']('accesskey'))return!![];if(_0x13421b===_0x51c2c4(0x137)||_0x13421b===_0x51c2c4(0x149)||_0x13421b===_0x51c2c4(0x140))return!![];return![];}export function sanitizeDbLinkForOutput(_0x1052bb){const _0x2cc390=a73_0x5ebe,_0x220581={..._0x1052bb};for(const _0x6c53e0 of Object[_0x2cc390(0x133)](_0x220581)){if(!shouldRedactKey(_0x6c53e0))continue;const _0x280047=_0x220581[_0x6c53e0];_0x280047!=null&&String(_0x280047)[_0x2cc390(0x13d)]>0x0&&(_0x220581[_0x6c53e0]=_0x2cc390(0x130));}return _0x220581;}export function sanitizeDbLinkList(_0x44bb2a){const _0x5b98f8=a73_0x5ebe;return _0x44bb2a[_0x5b98f8(0x146)](_0x451303=>sanitizeDbLinkForOutput(_0x451303));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a73_0x28e2(){const _0xa0e22a=['[redacted]','secret','6143232BKLMpm','keys','includes','10513010GUoqME','204CGlqAm','authorization','trim','229962vfmrOO','8SBumXH','password','privatekey','length','8346600JVUqIX','13695304vxzQNn','jdbcurl','/data/er?dbId=','9zAIyUd','toLowerCase','dbpassword','80355OyIzIm','map','passwd','155323flKUOM','connectionstring'];a73_0x28e2=function(){return _0xa0e22a;};return a73_0x28e2();}export function validateDbUrl(_0x3512a8){const _0x2498e4=a73_0x5ebe,_0x2a930b=_0x3512a8[_0x2498e4(0x138)]();if(!_0x2a930b)return![];return DB_URL_PATTERN['test'](_0x2a930b);}export function buildDbPageLinks(_0x2c5f2d,_0x44e117){const _0xd2b01c=a73_0x5ebe,_0xda92d3=_0x2c5f2d?.[_0xd2b01c(0x138)]();if(!_0xda92d3)return undefined;const _0x5621dd=typeof _0x44e117==='number'?String(_0x44e117):String(_0x44e117??'')[_0xd2b01c(0x138)]();if(!_0x5621dd)return undefined;const _0x3e902d=Number(_0x5621dd);if(!Number['isFinite'](_0x3e902d)||_0x3e902d<=0x0)return undefined;const _0x4307ec=getAppBaseUrl(_0xda92d3),_0x3af349=encodeURIComponent(String(_0x3e902d));return{'databasePage':_0x4307ec+'/data/database','erPage':_0x4307ec+_0xd2b01c(0x141)+_0x3af349};}
@@ -1 +1 @@
1
- function a74_0x4ce7(){const _0x392cf6=['num','540816LIMUEu','\x20table(s)\x20on\x20db\x20link\x20','10459808Pzyumc','1769043yXDStE','1346715GtjgQZ','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1012517iMIwfy','appCode','50TWGLzK','83416IAQcxV','180364HQNZmx','7ElOtjo','130rjRNhR','read'];a74_0x4ce7=function(){return _0x392cf6;};return a74_0x4ce7();}function a74_0x4c9e(_0x21d91b,_0x204165){_0x21d91b=_0x21d91b-0xe9;const _0x4ce7db=a74_0x4ce7();let _0x4c9e1f=_0x4ce7db[_0x21d91b];return _0x4c9e1f;}const a74_0x145be4=a74_0x4c9e;(function(_0x3e1ea7,_0x3c8662){const _0x41b108=a74_0x4c9e,_0x546c18=_0x3e1ea7();while(!![]){try{const _0x20361e=parseInt(_0x41b108(0xee))/0x1+-parseInt(_0x41b108(0xf1))/0x2+-parseInt(_0x41b108(0xea))/0x3+parseInt(_0x41b108(0xf2))/0x4*(-parseInt(_0x41b108(0xf0))/0x5)+parseInt(_0x41b108(0xf7))/0x6+parseInt(_0x41b108(0xf3))/0x7*(-parseInt(_0x41b108(0xe9))/0x8)+-parseInt(_0x41b108(0xeb))/0x9*(-parseInt(_0x41b108(0xf4))/0xa);if(_0x20361e===_0x3c8662)break;else _0x546c18['push'](_0x546c18['shift']());}catch(_0x101e63){_0x546c18['push'](_0x546c18['shift']());}}}(a74_0x4ce7,0xa0ad5));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':'tables','description':a74_0x145be4(0xed),'risk':a74_0x145be4(0xf5),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5f5343){const _0x252066=a74_0x145be4,_0x3ba550=_0x5f5343[_0x252066(0xf6)]('id'),_0x11ddfa=await getDbAllTableList(_0x5f5343[_0x252066(0xef)],_0x3ba550);return{'ok':!![],'data':{'dbLinkId':_0x3ba550,'total':_0x11ddfa[_0x252066(0xec)],'tables':_0x11ddfa},'message':_0x11ddfa[_0x252066(0xec)]+_0x252066(0xf8)+_0x3ba550};}};
1
+ const a74_0x5b54df=a74_0x1594;(function(_0x343d4a,_0x5ad4f8){const _0x217c77=a74_0x1594,_0x284823=_0x343d4a();while(!![]){try{const _0x341404=-parseInt(_0x217c77(0x179))/0x1*(parseInt(_0x217c77(0x16e))/0x2)+-parseInt(_0x217c77(0x176))/0x3+-parseInt(_0x217c77(0x174))/0x4+parseInt(_0x217c77(0x177))/0x5+parseInt(_0x217c77(0x16f))/0x6+parseInt(_0x217c77(0x171))/0x7*(-parseInt(_0x217c77(0x172))/0x8)+parseInt(_0x217c77(0x170))/0x9;if(_0x341404===_0x5ad4f8)break;else _0x284823['push'](_0x284823['shift']());}catch(_0x573d0d){_0x284823['push'](_0x284823['shift']());}}}(a74_0x3f45,0x4d37d));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a74_0x3f45(){const _0x5ae5a8=['List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','292503qzQoZX','appCode','2krLEAn','3091698Wdjhfs','9571842WeGVyR','49AcGjvM','660168uborot','read','1213260PQNctY','length','1284492iHACfJ','1695465yNmHfh'];a74_0x3f45=function(){return _0x5ae5a8;};return a74_0x3f45();}function a74_0x1594(_0x5df9b1,_0x3610ad){_0x5df9b1=_0x5df9b1-0x16e;const _0x3f4551=a74_0x3f45();let _0x15944c=_0x3f4551[_0x5df9b1];return _0x15944c;}export const dbTables={'service':'db','command':'tables','description':a74_0x5b54df(0x178),'risk':a74_0x5b54df(0x173),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5812ac){const _0x4646c7=a74_0x5b54df,_0x596fea=_0x5812ac['num']('id'),_0x8baaa5=await getDbAllTableList(_0x5812ac[_0x4646c7(0x17a)],_0x596fea);return{'ok':!![],'data':{'dbLinkId':_0x596fea,'total':_0x8baaa5['length'],'tables':_0x8baaa5},'message':_0x8baaa5[_0x4646c7(0x175)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x596fea};}};
@@ -1 +1 @@
1
- function a75_0x57f9(){const _0x29fd17=['336IXxBgY','7yTDbWG','msg','\x20(see\x20data.result)','686092TEzhgd','keys','6dYduKB','6518512bGIyRT','6537058IgzWJR','10kbkOCu','1316754XILbmz','3794330XIEiYJ','message','length','slice','4380104dLblfj','Connection\x20OK\x20for\x20db\x20link\x20','num','object','success','data','15321XZaCnG','code'];a75_0x57f9=function(){return _0x29fd17;};return a75_0x57f9();}(function(_0x3a1fee,_0x22dee0){const _0x420de8=a75_0x331d,_0xa0a14d=_0x3a1fee();while(!![]){try{const _0x322c11=-parseInt(_0x420de8(0xc7))/0x1+parseInt(_0x420de8(0xc3))/0x2*(-parseInt(_0x420de8(0xc1))/0x3)+parseInt(_0x420de8(0xca))/0x4+parseInt(_0x420de8(0xce))/0x5*(parseInt(_0x420de8(0xc9))/0x6)+-parseInt(_0x420de8(0xc4))/0x7*(-parseInt(_0x420de8(0xbb))/0x8)+parseInt(_0x420de8(0xcd))/0x9+parseInt(_0x420de8(0xcc))/0xa*(-parseInt(_0x420de8(0xcb))/0xb);if(_0x322c11===_0x22dee0)break;else _0xa0a14d['push'](_0xa0a14d['shift']());}catch(_0x669223){_0xa0a14d['push'](_0xa0a14d['shift']());}}}(a75_0x57f9,0xe675f));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0x331d(_0x46bdce,_0x516a1f){_0x46bdce=_0x46bdce-0xba;const _0x57f987=a75_0x57f9();let _0x331d91=_0x57f987[_0x46bdce];return _0x331d91;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x50da59){const _0x684b3e=a75_0x331d;if(_0x50da59===!![]||_0x50da59===![])return{'success':_0x50da59};if(_0x50da59===null||_0x50da59===undefined)return{'type':typeof _0x50da59};if(typeof _0x50da59!==_0x684b3e(0xbe))return{'type':typeof _0x50da59};const _0x55cd3a=_0x50da59,_0x4384bb=[_0x684b3e(0xbf),_0x684b3e(0xcf),_0x684b3e(0xc2),'error',_0x684b3e(0xc5),_0x684b3e(0xc0)],_0x5345dd={};for(const _0xdc66c6 of _0x4384bb){if(_0xdc66c6 in _0x55cd3a)_0x5345dd[_0xdc66c6]=_0x55cd3a[_0xdc66c6];}return Object[_0x684b3e(0xc8)](_0x5345dd)[_0x684b3e(0xd0)]===0x0&&(_0x5345dd[_0x684b3e(0xc8)]=Object[_0x684b3e(0xc8)](_0x55cd3a)[_0x684b3e(0xba)](0x0,0x14)),_0x5345dd;}export const dbTest={'service':'db','command':'test','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'(_0x4977f0){const _0x1d13e5=a75_0x331d,_0x49c325=_0x4977f0[_0x1d13e5(0xbd)]('id'),_0x5635f2=await testDbLinkConnect(_0x49c325),_0x3df5d6=_0x5635f2===!![]||typeof _0x5635f2===_0x1d13e5(0xbe)&&_0x5635f2!==null&&_0x5635f2[_0x1d13e5(0xbf)]===!![],_0x769a53=summarizeTestConnectResult(_0x5635f2);return{'ok':!![],'data':{'id':_0x49c325,'connected':Boolean(_0x3df5d6),'result':_0x769a53},'message':_0x3df5d6?_0x1d13e5(0xbc)+_0x49c325:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x49c325+_0x1d13e5(0xc6)};}};
1
+ const a75_0x2fcbaf=a75_0x1faa;function a75_0x4421(){const _0x5c01f6=['6553905nXzWmd','msg','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','6ORsSbX','483765Xxfofq','object','data','success','\x20(see\x20data.result)','5990046sOVfkT','keys','7oDGMuv','num','error','3125156SSaFrp','2782200NtaMdY','39910905yOpYVl','2311664JGiZRM','Connection\x20check\x20finished\x20for\x20db\x20link\x20','code'];a75_0x4421=function(){return _0x5c01f6;};return a75_0x4421();}(function(_0x1b804e,_0x38b964){const _0x4751ed=a75_0x1faa,_0x351386=_0x1b804e();while(!![]){try{const _0x3890c1=-parseInt(_0x4751ed(0xb8))/0x1*(-parseInt(_0x4751ed(0xb7))/0x2)+parseInt(_0x4751ed(0xc3))/0x3+parseInt(_0x4751ed(0xc2))/0x4+parseInt(_0x4751ed(0xb3))/0x5+parseInt(_0x4751ed(0xbd))/0x6*(parseInt(_0x4751ed(0xbf))/0x7)+-parseInt(_0x4751ed(0xc5))/0x8+-parseInt(_0x4751ed(0xc4))/0x9;if(_0x3890c1===_0x38b964)break;else _0x351386['push'](_0x351386['shift']());}catch(_0x245bcb){_0x351386['push'](_0x351386['shift']());}}}(a75_0x4421,0xb6083));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a75_0x1faa(_0x5aac42,_0x137898){_0x5aac42=_0x5aac42-0xb1;const _0x44210d=a75_0x4421();let _0x1faa61=_0x44210d[_0x5aac42];return _0x1faa61;}function summarizeTestConnectResult(_0x577219){const _0x1c6d72=a75_0x1faa;if(_0x577219===!![]||_0x577219===![])return{'success':_0x577219};if(_0x577219===null||_0x577219===undefined)return{'type':typeof _0x577219};if(typeof _0x577219!==_0x1c6d72(0xb9))return{'type':typeof _0x577219};const _0x3852db=_0x577219,_0x21ea7c=[_0x1c6d72(0xbb),'message',_0x1c6d72(0xb2),_0x1c6d72(0xc1),_0x1c6d72(0xb4),_0x1c6d72(0xba)],_0x58780b={};for(const _0x41637a of _0x21ea7c){if(_0x41637a in _0x3852db)_0x58780b[_0x41637a]=_0x3852db[_0x41637a];}return Object[_0x1c6d72(0xbe)](_0x58780b)[_0x1c6d72(0xb6)]===0x0&&(_0x58780b[_0x1c6d72(0xbe)]=Object[_0x1c6d72(0xbe)](_0x3852db)['slice'](0x0,0x14)),_0x58780b;}export const dbTest={'service':'db','command':'test','description':a75_0x2fcbaf(0xb5),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2a3e07){const _0x1aff6a=a75_0x2fcbaf,_0x401289=_0x2a3e07[_0x1aff6a(0xc0)]('id'),_0x121f53=await testDbLinkConnect(_0x401289),_0x410d54=_0x121f53===!![]||typeof _0x121f53===_0x1aff6a(0xb9)&&_0x121f53!==null&&_0x121f53[_0x1aff6a(0xbb)]===!![],_0x1a5bdd=summarizeTestConnectResult(_0x121f53);return{'ok':!![],'data':{'id':_0x401289,'connected':Boolean(_0x410d54),'result':_0x1a5bdd},'message':_0x410d54?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x401289:_0x1aff6a(0xb1)+_0x401289+_0x1aff6a(0xbc)};}};
@@ -1 +1 @@
1
- const a76_0x132501=a76_0x2b1d;(function(_0x3d5aa2,_0x3aafa0){const _0x4ca142=a76_0x2b1d,_0x2cb64a=_0x3d5aa2();while(!![]){try{const _0x1dd0d1=parseInt(_0x4ca142(0x197))/0x1+parseInt(_0x4ca142(0x1a4))/0x2*(parseInt(_0x4ca142(0x194))/0x3)+parseInt(_0x4ca142(0x1ae))/0x4+parseInt(_0x4ca142(0x1a7))/0x5*(parseInt(_0x4ca142(0x1ac))/0x6)+-parseInt(_0x4ca142(0x199))/0x7+parseInt(_0x4ca142(0x1aa))/0x8+-parseInt(_0x4ca142(0x1a2))/0x9;if(_0x1dd0d1===_0x3aafa0)break;else _0x2cb64a['push'](_0x2cb64a['shift']());}catch(_0x1efe12){_0x2cb64a['push'](_0x2cb64a['shift']());}}}(a76_0x1b99,0x24eea));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a76_0x2b1d(_0x5c0927,_0x1eb80e){_0x5c0927=_0x5c0927-0x192;const _0x1b998f=a76_0x1b99();let _0x2b1da0=_0x1b998f[_0x5c0927];return _0x2b1da0;}function a76_0x1b99(){const _0x11dd80=['username','28929lyGVpd','dbName','write','21989wEOyFq','New\x20username','990955IaGEAp','POST','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbparam','New\x20description','dbdesc','trim','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','/smartapi/dblink/update','3381795vtOsbX','string','32OEgsUG','dbUrl','num','285aZtuim','dbDesc','password','1501976YLrgGm','dburl','29598ZMPuaa','dbname','93556OzhCfC','New\x20database\x20name','Updated\x20db\x20link\x20','str'];a76_0x1b99=function(){return _0x11dd80;};return a76_0x1b99();}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a76_0x132501(0x1a0),'risk':a76_0x132501(0x196),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x132501(0x1ad),'type':'string','description':a76_0x132501(0x1af)},{'name':a76_0x132501(0x1ab),'type':a76_0x132501(0x1a3),'description':'New\x20host:port'},{'name':'username','type':a76_0x132501(0x1a3),'description':a76_0x132501(0x198)},{'name':a76_0x132501(0x1a9),'type':a76_0x132501(0x1a3),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a76_0x132501(0x19c),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a76_0x132501(0x19e),'type':a76_0x132501(0x1a3),'description':a76_0x132501(0x19d)}],async 'validate'(_0x1f478f){const _0x379ff2=a76_0x132501,_0x1642c9=_0x1f478f['str'](_0x379ff2(0x1ab));if(_0x1642c9&&!validateDbUrl(_0x1642c9[_0x379ff2(0x19f)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x1642c9+'\x22');},async 'dryRun'(_0x115e96){const _0x1e808b=a76_0x132501,_0x21c322=_0x115e96[_0x1e808b(0x1a6)]('id'),_0x596a00=await getDbLinkInfo(_0x21c322),_0x256515={..._0x596a00},_0xff7e7=_0x115e96[_0x1e808b(0x192)](_0x1e808b(0x1ad));if(_0xff7e7)_0x256515[_0x1e808b(0x195)]=_0xff7e7;const _0x3e72f1=_0x115e96['str'](_0x1e808b(0x1ab));if(_0x3e72f1)_0x256515[_0x1e808b(0x1a5)]=_0x3e72f1[_0x1e808b(0x19f)]();const _0x305bfe=_0x115e96[_0x1e808b(0x192)](_0x1e808b(0x193));if(_0x305bfe)_0x256515[_0x1e808b(0x193)]=_0x305bfe;const _0x5b4267=_0x115e96[_0x1e808b(0x192)](_0x1e808b(0x1a9));if(_0x5b4267)_0x256515[_0x1e808b(0x1a9)]=_0x5b4267;const _0x346853=_0x115e96[_0x1e808b(0x192)](_0x1e808b(0x19c));if(_0x346853)_0x256515['dbParam']=_0x346853;const _0x118e5d=_0x115e96['str']('dbdesc');if(_0x118e5d)_0x256515[_0x1e808b(0x1a8)]=_0x118e5d;const _0xbbaeb4=sanitizeDbLinkForOutput(_0x256515);return{'method':_0x1e808b(0x19a),'url':_0x1e808b(0x1a1),'body':_0xbbaeb4,'description':_0x1e808b(0x19b)};},async 'execute'(_0xc21913){const _0x5d3b7a=a76_0x132501,_0x196049=_0xc21913[_0x5d3b7a(0x1a6)]('id'),_0x102ad6=await getDbLinkInfo(_0x196049),_0x48bdd7={..._0x102ad6},_0x315a6f=_0xc21913[_0x5d3b7a(0x192)](_0x5d3b7a(0x1ad));if(_0x315a6f)_0x48bdd7[_0x5d3b7a(0x195)]=_0x315a6f;const _0x2c2d2c=_0xc21913[_0x5d3b7a(0x192)](_0x5d3b7a(0x1ab));if(_0x2c2d2c)_0x48bdd7[_0x5d3b7a(0x1a5)]=_0x2c2d2c[_0x5d3b7a(0x19f)]();const _0x59d674=_0xc21913[_0x5d3b7a(0x192)](_0x5d3b7a(0x193));if(_0x59d674)_0x48bdd7[_0x5d3b7a(0x193)]=_0x59d674;const _0x558fa5=_0xc21913[_0x5d3b7a(0x192)](_0x5d3b7a(0x1a9));if(_0x558fa5)_0x48bdd7['password']=_0x558fa5;const _0x581a62=_0xc21913[_0x5d3b7a(0x192)](_0x5d3b7a(0x19c));if(_0x581a62)_0x48bdd7['dbParam']=_0x581a62;const _0x2cf097=_0xc21913[_0x5d3b7a(0x192)]('dbdesc');if(_0x2cf097)_0x48bdd7['dbDesc']=_0x2cf097;const {id:_0x38cadc,entity:_0x1feac3}=normalizeEntityWithIdResponse(await updateDbLink(_0x48bdd7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1feac3),'message':_0x5d3b7a(0x1b0)+(_0x38cadc??_0x196049)};}};
1
+ const a76_0x339ab3=a76_0x25f1;(function(_0x11c3e4,_0x4afc08){const _0xf72515=a76_0x25f1,_0x4e2bad=_0x11c3e4();while(!![]){try{const _0x3a3773=-parseInt(_0xf72515(0x7f))/0x1+parseInt(_0xf72515(0x73))/0x2*(-parseInt(_0xf72515(0x8f))/0x3)+parseInt(_0xf72515(0x86))/0x4*(parseInt(_0xf72515(0x75))/0x5)+-parseInt(_0xf72515(0x81))/0x6+parseInt(_0xf72515(0x89))/0x7+parseInt(_0xf72515(0x82))/0x8*(-parseInt(_0xf72515(0x76))/0x9)+parseInt(_0xf72515(0x8c))/0xa*(parseInt(_0xf72515(0x80))/0xb);if(_0x3a3773===_0x4afc08)break;else _0x4e2bad['push'](_0x4e2bad['shift']());}catch(_0x5d8bfa){_0x4e2bad['push'](_0x4e2bad['shift']());}}}(a76_0x52d0,0x5f61c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a76_0x52d0(){const _0x46e47f=['dbDesc','dbname','dburl','update','trim','New\x20connection\x20parameter\x20string','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','str','735120PPhctB','143Kvyaoe','744768JUJyCz','46344rglTRk','dbUrl','string','username','908924vUBqCn','dbParam','password','829815qlUTpp','New\x20username','dbparam','1328070ESJxSb','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbName','2631ipDQTA','New\x20database\x20name','dbdesc','POST','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','1228kOhTvz','write','5hzehaZ','441BMIHYz'];a76_0x52d0=function(){return _0x46e47f;};return a76_0x52d0();}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';function a76_0x25f1(_0x6e7a0f,_0x31f2d6){_0x6e7a0f=_0x6e7a0f-0x70;const _0x52d028=a76_0x52d0();let _0x25f162=_0x52d028[_0x6e7a0f];return _0x25f162;}export const dbUpdate={'service':'db','command':a76_0x339ab3(0x7a),'description':a76_0x339ab3(0x7d),'risk':a76_0x339ab3(0x74),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a76_0x339ab3(0x84),'description':a76_0x339ab3(0x90)},{'name':a76_0x339ab3(0x79),'type':'string','description':'New\x20host:port'},{'name':a76_0x339ab3(0x85),'type':a76_0x339ab3(0x84),'description':a76_0x339ab3(0x8a)},{'name':a76_0x339ab3(0x88),'type':a76_0x339ab3(0x84),'description':a76_0x339ab3(0x72)},{'name':a76_0x339ab3(0x8b),'type':a76_0x339ab3(0x84),'description':a76_0x339ab3(0x7c)},{'name':a76_0x339ab3(0x70),'type':a76_0x339ab3(0x84),'description':'New\x20description'}],async 'validate'(_0x2f994f){const _0x116eb0=a76_0x339ab3,_0xc78a9b=_0x2f994f[_0x116eb0(0x7e)](_0x116eb0(0x79));if(_0xc78a9b&&!validateDbUrl(_0xc78a9b[_0x116eb0(0x7b)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0xc78a9b+'\x22');},async 'dryRun'(_0x122c07){const _0x38511f=a76_0x339ab3,_0x393b66=_0x122c07['num']('id'),_0x413bf0=await getDbLinkInfo(_0x393b66),_0x103fd6={..._0x413bf0},_0x1ac356=_0x122c07[_0x38511f(0x7e)](_0x38511f(0x78));if(_0x1ac356)_0x103fd6[_0x38511f(0x8e)]=_0x1ac356;const _0x5f3599=_0x122c07[_0x38511f(0x7e)](_0x38511f(0x79));if(_0x5f3599)_0x103fd6[_0x38511f(0x83)]=_0x5f3599['trim']();const _0x2078aa=_0x122c07['str']('username');if(_0x2078aa)_0x103fd6[_0x38511f(0x85)]=_0x2078aa;const _0x82e296=_0x122c07[_0x38511f(0x7e)](_0x38511f(0x88));if(_0x82e296)_0x103fd6[_0x38511f(0x88)]=_0x82e296;const _0x550be0=_0x122c07[_0x38511f(0x7e)](_0x38511f(0x8b));if(_0x550be0)_0x103fd6[_0x38511f(0x87)]=_0x550be0;const _0x5703d1=_0x122c07[_0x38511f(0x7e)](_0x38511f(0x70));if(_0x5703d1)_0x103fd6[_0x38511f(0x77)]=_0x5703d1;const _0x59cb76=sanitizeDbLinkForOutput(_0x103fd6);return{'method':_0x38511f(0x71),'url':'/smartapi/dblink/update','body':_0x59cb76,'description':_0x38511f(0x8d)};},async 'execute'(_0x1c5c97){const _0x52a23b=a76_0x339ab3,_0x2526f7=_0x1c5c97['num']('id'),_0x1ff4df=await getDbLinkInfo(_0x2526f7),_0x3844f4={..._0x1ff4df},_0x4f7a85=_0x1c5c97[_0x52a23b(0x7e)](_0x52a23b(0x78));if(_0x4f7a85)_0x3844f4[_0x52a23b(0x8e)]=_0x4f7a85;const _0x3702d3=_0x1c5c97[_0x52a23b(0x7e)](_0x52a23b(0x79));if(_0x3702d3)_0x3844f4[_0x52a23b(0x83)]=_0x3702d3['trim']();const _0x51d523=_0x1c5c97[_0x52a23b(0x7e)](_0x52a23b(0x85));if(_0x51d523)_0x3844f4[_0x52a23b(0x85)]=_0x51d523;const _0x142496=_0x1c5c97['str'](_0x52a23b(0x88));if(_0x142496)_0x3844f4[_0x52a23b(0x88)]=_0x142496;const _0x4d1dfd=_0x1c5c97[_0x52a23b(0x7e)](_0x52a23b(0x8b));if(_0x4d1dfd)_0x3844f4[_0x52a23b(0x87)]=_0x4d1dfd;const _0x22dbba=_0x1c5c97[_0x52a23b(0x7e)](_0x52a23b(0x70));if(_0x22dbba)_0x3844f4['dbDesc']=_0x22dbba;const {id:_0x3eb5ba,entity:_0xa309aa}=normalizeEntityWithIdResponse(await updateDbLink(_0x3844f4));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xa309aa),'message':'Updated\x20db\x20link\x20'+(_0x3eb5ba??_0x2526f7)};}};
@@ -1 +1 @@
1
- const a77_0x555bfa=a77_0x4430;(function(_0x1d3b4b,_0x27248a){const _0x158313=a77_0x4430,_0x345ec2=_0x1d3b4b();while(!![]){try{const _0x2e10d2=-parseInt(_0x158313(0x1e0))/0x1+parseInt(_0x158313(0x21b))/0x2+parseInt(_0x158313(0x1f0))/0x3+parseInt(_0x158313(0x1fc))/0x4+parseInt(_0x158313(0x1e6))/0x5+parseInt(_0x158313(0x21f))/0x6*(-parseInt(_0x158313(0x203))/0x7)+parseInt(_0x158313(0x219))/0x8;if(_0x2e10d2===_0x27248a)break;else _0x345ec2['push'](_0x345ec2['shift']());}catch(_0x16a8f1){_0x345ec2['push'](_0x345ec2['shift']());}}}(a77_0x2148,0xd51b9));import a77_0x2b34e0 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 a77_0x2148(){const _0x3979fb=['\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','✓\x20Valid\x20JSON','\x20\x20─','Project','\x20\x20Apps','version','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','12179928WokIvL','⚠\x20Empty\x20(treated\x20as\x20{})','555142jhfxMY','explicitAppName','missing','\x20\x20runtimeDomain:\x20\x20\x20','6JLubsm','apps','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','repeat','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','value','env','✓\x20Valid','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','(set\x20via\x20file,\x20length=','(no\x20file)','red','gray','(not\x20found)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','log','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','raw','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20←\x20current','appcode','961548wzfBNY','✗\x20Expired','cookie','(set,\x20length=','padEnd','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','3698720sZBlio','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','(default:\x20','riskLevel','2307600RyqyQx','doctor','locale','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20Merged\x20Config','currentApp','appCode','bold','platform','yellow','620744mQkhKG','empty','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','pageSize','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(default)','11408285nxpZgs','read','apiDir','unknown','Global','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20API\x20Endpoints','(not\x20set)','slice','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','source','format','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green'];a77_0x2148=function(){return _0x3979fb;};return a77_0x2148();}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a77_0x4430(_0x41207e,_0x3ef4ad){_0x41207e=_0x41207e-0x1d3;const _0x2148a0=a77_0x2148();let _0x44309b=_0x2148a0[_0x41207e];return _0x44309b;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3d62c8){const _0x25c062=a77_0x4430,_0x3875c7=GIT_COMMIT!==_0x25c062(0x206)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x25c062(0x20b)](0x0,0xa)+')':VERSION,_0x10d942=buildConfigFromFlags({}),_0x3a78e5=getCookie();console[_0x25c062(0x1d9)](),console[_0x25c062(0x1d9)](a77_0x2b34e0['bold'](CLI_BIN_NAME+_0x25c062(0x1dd))),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1d5)]('─'[_0x25c062(0x222)](0x32))),console['log'](_0x25c062(0x1d7)+_0x3875c7),console[_0x25c062(0x1d9)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x25c062(0x217)]),console[_0x25c062(0x1d9)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x25c062(0x1fa)]+'\x20'+process[_0x25c062(0x1f5)]),console['log'](),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1f9)]('\x20\x20Config\x20Files')),console[_0x25c062(0x1d9)](a77_0x2b34e0['gray'](_0x25c062(0x214)[_0x25c062(0x222)](0x1e)));const _0x322c97=getGlobalConfigPath(),_0x132650=getProjectConfigPath();console[_0x25c062(0x1d9)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x322c97||a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1d6)))),console[_0x25c062(0x1d9)](_0x25c062(0x1ea)+(_0x132650||a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1d6)))),console['log'](),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1f9)]('\x20\x20Config\x20JSON')),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x214)['repeat'](0x1e)));const _0x192281=(_0xc9892,_0x4bc196)=>{const _0x3fe98e=_0x25c062;if(!_0x4bc196){console['log']('\x20\x20'+_0xc9892[_0x3fe98e(0x1e4)](0x11)+'\x20'+a77_0x2b34e0['gray'](_0x3fe98e(0x1d3)));return;}const _0x16886d=inspectCliConfigJsonFile(_0x4bc196);if(_0x16886d[_0x3fe98e(0x1eb)]==='ok')console[_0x3fe98e(0x1d9)]('\x20\x20'+_0xc9892[_0x3fe98e(0x1e4)](0x11)+'\x20'+a77_0x2b34e0['green'](_0x3fe98e(0x213)));else{if(_0x16886d[_0x3fe98e(0x1eb)]===_0x3fe98e(0x1fd))console[_0x3fe98e(0x1d9)]('\x20\x20'+_0xc9892['padEnd'](0x11)+'\x20'+a77_0x2b34e0[_0x3fe98e(0x1fb)](_0x3fe98e(0x21a)));else _0x16886d[_0x3fe98e(0x1eb)]===_0x3fe98e(0x21d)?console[_0x3fe98e(0x1d9)]('\x20\x20'+_0xc9892['padEnd'](0x11)+'\x20'+a77_0x2b34e0[_0x3fe98e(0x1d5)]('(missing)')):(console[_0x3fe98e(0x1d9)]('\x20\x20'+_0xc9892['padEnd'](0x11)+'\x20'+a77_0x2b34e0[_0x3fe98e(0x1d4)]('✗\x20Invalid\x20JSON')),console[_0x3fe98e(0x1d9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x2b34e0[_0x3fe98e(0x1d4)](_0x16886d['message'])));}};_0x192281(_0x25c062(0x207),_0x322c97),_0x192281(_0x25c062(0x215),_0x132650),console['log'](),console['log'](a77_0x2b34e0[_0x25c062(0x1f9)](_0x25c062(0x1f6))),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1d5)]('\x20\x20─'[_0x25c062(0x222)](0x1e))),console['log'](_0x25c062(0x1dc)+(_0x10d942[_0x25c062(0x1f8)]||a77_0x2b34e0[_0x25c062(0x1d4)](_0x25c062(0x20a)))),console[_0x25c062(0x1d9)](_0x25c062(0x20f)+_0x10d942[_0x25c062(0x227)]),console[_0x25c062(0x1d9)](_0x25c062(0x1fe)+_0x10d942[_0x25c062(0x1f2)]),console[_0x25c062(0x1d9)](_0x25c062(0x224)+_0x10d942[_0x25c062(0x205)]),console['log'](_0x25c062(0x1e8)+(_0x10d942['defaultApp']||a77_0x2b34e0['gray'](_0x25c062(0x1ff)))),console[_0x25c062(0x1d9)](_0x25c062(0x1e9)+(_0x10d942[_0x25c062(0x1f7)]||a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1ff)))),console[_0x25c062(0x1d9)](_0x25c062(0x1d8)+(_0x10d942[_0x25c062(0x21c)]||a77_0x2b34e0[_0x25c062(0x1d5)]('(none)'))),console['log'](_0x25c062(0x229)+(_0x10d942[_0x25c062(0x20e)]||a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1ee)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x25c062(0x1d9)](_0x25c062(0x1f4)+(_0x10d942[_0x25c062(0x200)]??a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x202)))),console[_0x25c062(0x1d9)](_0x25c062(0x201)+_0x10d942[_0x25c062(0x1ef)]),console[_0x25c062(0x1d9)](_0x25c062(0x218)+_0x10d942['verbose']),console[_0x25c062(0x1d9)](_0x25c062(0x1ec)+(_0x10d942[_0x25c062(0x1e2)]?a77_0x2b34e0[_0x25c062(0x210)]('(set,\x20length='+_0x10d942[_0x25c062(0x1e2)][_0x25c062(0x225)]+')'):_0x3a78e5?a77_0x2b34e0[_0x25c062(0x210)](_0x25c062(0x22b)+_0x3a78e5[_0x25c062(0x225)]+')'):a77_0x2b34e0['gray'](_0x25c062(0x1ff))));const _0x2b540f=Object['keys'](_0x10d942[_0x25c062(0x220)]);if(_0x2b540f[_0x25c062(0x225)]>0x0){console['log'](),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1f9)](_0x25c062(0x216))),console['log'](a77_0x2b34e0['gray'](_0x25c062(0x214)['repeat'](0x1e)));for(const _0x2bc4d4 of _0x2b540f){const _0x32cf50=_0x10d942['apps'][_0x2bc4d4],_0x52ea6f=_0x2bc4d4===_0x10d942['defaultApp'],_0x5b30bf=_0x2bc4d4===_0x10d942[_0x25c062(0x1f7)],_0x1c7d05=_0x5b30bf?a77_0x2b34e0['green'](_0x25c062(0x1de)):'',_0x10f98c=_0x52ea6f?_0x25c062(0x22a):'';console[_0x25c062(0x1d9)]('\x20\x20'+_0x2bc4d4+_0x10f98c+_0x1c7d05),console[_0x25c062(0x1d9)](_0x25c062(0x20c)+_0x32cf50[_0x25c062(0x1df)]);const _0x40da36=buildAppDoctorFields(_0x32cf50,{'env':_0x10d942[_0x25c062(0x227)],'apiDir':_0x10d942[_0x25c062(0x1db)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x25c062(0x205)],'cookie':_0x10d942[_0x25c062(0x1e2)]||_0x3a78e5||undefined,'accessKey':_0x10d942[_0x25c062(0x1ed)]});console['log'](_0x25c062(0x1e7)+_0x40da36[_0x25c062(0x227)][_0x25c062(0x226)]+'\x20\x20'+a77_0x2b34e0[_0x25c062(0x1d5)]('('+_0x40da36[_0x25c062(0x227)][_0x25c062(0x20d)]+')')),console[_0x25c062(0x1d9)](_0x25c062(0x223)+_0x40da36[_0x25c062(0x205)]['value']+'\x20\x20'+a77_0x2b34e0[_0x25c062(0x1d5)]('('+_0x40da36[_0x25c062(0x205)][_0x25c062(0x20d)]+')'));const _0x39170f=_0x40da36[_0x25c062(0x1e2)][_0x25c062(0x226)]?a77_0x2b34e0[_0x25c062(0x210)](_0x25c062(0x1e3)+_0x40da36[_0x25c062(0x1e2)][_0x25c062(0x226)][_0x25c062(0x225)]+')'):a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1ff));console[_0x25c062(0x1d9)](_0x25c062(0x221)+_0x39170f+'\x20\x20'+a77_0x2b34e0[_0x25c062(0x1d5)]('('+_0x40da36[_0x25c062(0x1e2)][_0x25c062(0x20d)]+')'));const _0x49a7c1=_0x40da36[_0x25c062(0x1ed)][_0x25c062(0x226)]?a77_0x2b34e0[_0x25c062(0x210)](_0x25c062(0x1e3)+_0x40da36[_0x25c062(0x1ed)]['value'][_0x25c062(0x225)]+')'):a77_0x2b34e0[_0x25c062(0x1d5)](_0x25c062(0x1ff));console[_0x25c062(0x1d9)](_0x25c062(0x208)+_0x49a7c1+'\x20\x20'+a77_0x2b34e0[_0x25c062(0x1d5)]('('+_0x40da36[_0x25c062(0x1ed)]['source']+')'));}}console[_0x25c062(0x1d9)](),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1f9)](_0x25c062(0x209))),console['log'](a77_0x2b34e0['gray'](_0x25c062(0x214)['repeat'](0x1e))),console[_0x25c062(0x1d9)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x25c062(0x1e5)+getUserDomain()),console[_0x25c062(0x1d9)](_0x25c062(0x21e)+getRuntimeDomain()),console[_0x25c062(0x1d9)](),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1f9)]('\x20\x20Auth')),console[_0x25c062(0x1d9)](a77_0x2b34e0[_0x25c062(0x1d5)]('\x20\x20─'[_0x25c062(0x222)](0x1e)));if(_0x3a78e5){const _0x2bc3a5=await getIsSessionValid();console[_0x25c062(0x1d9)](_0x25c062(0x211)+(_0x2bc3a5?a77_0x2b34e0[_0x25c062(0x210)](_0x25c062(0x228)):a77_0x2b34e0[_0x25c062(0x1d4)](_0x25c062(0x1e1))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x2b34e0[_0x25c062(0x1d4)](_0x25c062(0x1f3)));return console[_0x25c062(0x1d9)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x555bfa(0x1f1),'command':a77_0x555bfa(0x212),'description':a77_0x555bfa(0x1da),'risk':a77_0x555bfa(0x204),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0xa98fad=a77_0x4abb;function a77_0x5c62(){const _0x303ce1=['✓\x20Valid','cookie','(set,\x20length=','\x20\x20─','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','accessKey','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','format','apps','✗\x20Expired','42BnTmrK','20623174LrYPLX','appCode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','env','(none)','raw','1023192NuMJCz','check','read','619776FFOpIt','69741SmLlgb','message','green','value','log','platform','\x20doctor','locale','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','doctor','keys','\x20\x20Apps','496907wkXSbA','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','padEnd','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','status','Global','✗\x20Not\x20logged\x20in','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','explicitAppName','missing','\x20\x20API\x20Endpoints','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','139856NkKJZU','pageSize','80EqWgqg','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','appcode','12TwCLnb','length','verbose','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','Project','unknown','842390gLBsXx','\x20\x20Auth','(not\x20found)','(no\x20file)','red','(set\x20via\x20file,\x20length=','yellow','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','36uEzUmu','bold','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x5c62=function(){return _0x303ce1;};return a77_0x5c62();}(function(_0x4617a3,_0x35362f){const _0x1c9638=a77_0x4abb,_0x1ef55d=_0x4617a3();while(!![]){try{const _0x7d2a57=parseInt(_0x1c9638(0x110))/0x1+-parseInt(_0x1c9638(0x120))/0x2*(-parseInt(_0x1c9638(0xe6))/0x3)+parseInt(_0x1c9638(0x125))/0x4*(parseInt(_0x1c9638(0xd8))/0x5)+parseInt(_0x1c9638(0xf6))/0x6*(parseInt(_0x1c9638(0x103))/0x7)+-parseInt(_0x1c9638(0xff))/0x8+-parseInt(_0x1c9638(0x102))/0x9*(-parseInt(_0x1c9638(0x122))/0xa)+-parseInt(_0x1c9638(0xf7))/0xb;if(_0x7d2a57===_0x35362f)break;else _0x1ef55d['push'](_0x1ef55d['shift']());}catch(_0x18c29b){_0x1ef55d['push'](_0x1ef55d['shift']());}}}(a77_0x5c62,0x70285));function a77_0x4abb(_0x1a23af,_0x2c3c62){_0x1a23af=_0x1a23af-0xd3;const _0x5c62e5=a77_0x5c62();let _0x4abbbd=_0x5c62e5[_0x1a23af];return _0x4abbbd;}import a77_0x4a1c70 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(_0x1cf8ac){const _0x257683=a77_0x4abb,_0x31e450=GIT_COMMIT!==_0x257683(0xd7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x4b326b=buildConfigFromFlags({}),_0x5bac84=getCookie();console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](CLI_BIN_NAME+_0x257683(0x109))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)]('─'[_0x257683(0xe3)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x31e450),console['log'](_0x257683(0x10b)+process['version']),console['log'](_0x257683(0xd4)+process[_0x257683(0x108)]+'\x20'+process[_0x257683(0x10c)]),console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0xd5))),console['log'](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)['repeat'](0x1e)));const _0xf8b943=getGlobalConfigPath(),_0x1f685a=getProjectConfigPath();console['log'](_0x257683(0xf9)+(_0xf8b943||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xda)))),console[_0x257683(0x107)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f685a||a77_0x4a1c70[_0x257683(0xe0)]('(not\x20found)'))),console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)]('\x20\x20Config\x20JSON')),console[_0x257683(0x107)](a77_0x4a1c70['gray'](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));const _0x10590=(_0x301c24,_0x5d3f37)=>{const _0x3268b1=_0x257683;if(!_0x5d3f37){console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xe0)](_0x3268b1(0xdb)));return;}const _0x403678=inspectCliConfigJsonFile(_0x5d3f37);if(_0x403678['status']==='ok')console[_0x3268b1(0x107)]('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0x105)]('✓\x20Valid\x20JSON'));else{if(_0x403678[_0x3268b1(0x117)]==='empty')console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xde)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x403678[_0x3268b1(0x117)]===_0x3268b1(0x11d)?console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xe0)]('(missing)')):(console[_0x3268b1(0x107)]('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xdc)]('✗\x20Invalid\x20JSON')),console[_0x3268b1(0x107)]('\x20\x20'+''[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xdc)](_0x403678[_0x3268b1(0x104)])));}};_0x10590(_0x257683(0x118),_0xf8b943),_0x10590(_0x257683(0xd6),_0x1f685a),console[_0x257683(0x107)](),console['log'](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x116))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e))),console['log'](_0x257683(0xdf)+(_0x4b326b[_0x257683(0xf8)]||a77_0x4a1c70[_0x257683(0xdc)]('(not\x20set)'))),console[_0x257683(0x107)](_0x257683(0xe4)+_0x4b326b[_0x257683(0xfc)]),console[_0x257683(0x107)](_0x257683(0xe8)+_0x4b326b[_0x257683(0x10a)]),console[_0x257683(0x107)](_0x257683(0x112)+_0x4b326b[_0x257683(0xe5)]),console[_0x257683(0x107)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4b326b['defaultApp']||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)](_0x257683(0xe1)+(_0x4b326b[_0x257683(0xef)]||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)]('\x20\x20explicitAppName:\x20'+(_0x4b326b[_0x257683(0x11c)]||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)](_0x257683(0xee)+(_0x4b326b['format']||a77_0x4a1c70[_0x257683(0xe0)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x257683(0xf3)]+')'))),console[_0x257683(0x107)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b326b[_0x257683(0x121)]??a77_0x4a1c70[_0x257683(0xe0)]('(default)'))),console[_0x257683(0x107)](_0x257683(0xf1)+_0x4b326b['riskLevel']),console[_0x257683(0x107)](_0x257683(0x115)+_0x4b326b[_0x257683(0xd3)]),console[_0x257683(0x107)](_0x257683(0x11a)+(_0x4b326b['cookie']?a77_0x4a1c70['green'](_0x257683(0xeb)+_0x4b326b['cookie'][_0x257683(0x126)]+')'):_0x5bac84?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xdd)+_0x5bac84[_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd))));const _0x81420d=Object[_0x257683(0x10e)](_0x4b326b[_0x257683(0xf4)]);if(_0x81420d['length']>0x0){console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x10f))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));for(const _0x4bfb98 of _0x81420d){const _0x532d62=_0x4b326b['apps'][_0x4bfb98],_0x1a050b=_0x4bfb98===_0x4b326b['defaultApp'],_0x4245f9=_0x4bfb98===_0x4b326b[_0x257683(0xef)],_0x5233ac=_0x4245f9?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xfa)):'',_0x44a8d0=_0x1a050b?'\x20(default)':'';console[_0x257683(0x107)]('\x20\x20'+_0x4bfb98+_0x44a8d0+_0x5233ac),console[_0x257683(0x107)](_0x257683(0x111)+_0x532d62[_0x257683(0x124)]);const _0x92cf8c=buildAppDoctorFields(_0x532d62,{'env':_0x4b326b['env'],'apiDir':_0x4b326b[_0x257683(0xfe)][_0x257683(0xe5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4b326b[_0x257683(0xea)]||_0x5bac84||undefined,'accessKey':_0x4b326b[_0x257683(0xf0)]});console[_0x257683(0x107)](_0x257683(0xed)+_0x92cf8c['env']['value']+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c[_0x257683(0xfc)]['source']+')')),console[_0x257683(0x107)](_0x257683(0x123)+_0x92cf8c[_0x257683(0xe5)][_0x257683(0x106)]+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c['apiDir']['source']+')'));const _0x539dd4=_0x92cf8c[_0x257683(0xea)][_0x257683(0x106)]?a77_0x4a1c70[_0x257683(0x105)]('(set,\x20length='+_0x92cf8c['cookie'][_0x257683(0x106)][_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)]('(none)');console[_0x257683(0x107)](_0x257683(0xf2)+_0x539dd4+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c[_0x257683(0xea)][_0x257683(0x113)]+')'));const _0x3a82be=_0x92cf8c[_0x257683(0xf0)]['value']?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xeb)+_0x92cf8c[_0x257683(0xf0)][_0x257683(0x106)][_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd));console[_0x257683(0x107)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3a82be+'\x20\x20'+a77_0x4a1c70['gray']('('+_0x92cf8c[_0x257683(0xf0)]['source']+')'));}}console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x11e))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e))),console['log'](_0x257683(0x11f)+getApiDomain()),console[_0x257683(0x107)](_0x257683(0xe2)+getUserDomain()),console[_0x257683(0x107)](_0x257683(0x11b)+getRuntimeDomain()),console['log'](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0xd9))),console[_0x257683(0x107)](a77_0x4a1c70['gray'](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));if(_0x5bac84){const _0x1d6d07=await getIsSessionValid();console[_0x257683(0x107)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d6d07?a77_0x4a1c70['green'](_0x257683(0xe9)):a77_0x4a1c70[_0x257683(0xdc)](_0x257683(0xf5))));}else console[_0x257683(0x107)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x4a1c70[_0x257683(0xdc)](_0x257683(0x119)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0xa98fad(0x10d),'command':a77_0xa98fad(0x100),'description':a77_0xa98fad(0xfb),'risk':a77_0xa98fad(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x704dd6=a78_0x33f3;(function(_0x527709,_0x2ef342){const _0x3af6db=a78_0x33f3,_0x5b8abe=_0x527709();while(!![]){try{const _0x5ea7e9=-parseInt(_0x3af6db(0xcd))/0x1*(parseInt(_0x3af6db(0xcc))/0x2)+parseInt(_0x3af6db(0xc1))/0x3+-parseInt(_0x3af6db(0xb3))/0x4+parseInt(_0x3af6db(0xca))/0x5*(parseInt(_0x3af6db(0xd4))/0x6)+-parseInt(_0x3af6db(0xb7))/0x7*(-parseInt(_0x3af6db(0xa7))/0x8)+-parseInt(_0x3af6db(0xad))/0x9*(-parseInt(_0x3af6db(0xc9))/0xa)+-parseInt(_0x3af6db(0xc6))/0xb*(parseInt(_0x3af6db(0xa9))/0xc);if(_0x5ea7e9===_0x2ef342)break;else _0x5b8abe['push'](_0x5b8abe['shift']());}catch(_0x11c7cf){_0x5b8abe['push'](_0x5b8abe['shift']());}}}(a78_0x3991,0xafce8));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a78_0x33f3(_0x6f251,_0x27c91e){_0x6f251=_0x6f251-0xa6;const _0x3991a8=a78_0x3991();let _0x33f3ba=_0x3991a8[_0x6f251];return _0x33f3ba;}function a78_0x3991(){const _0x474d2d=['645185RqQLDU','project','2XZXBNO','981551eRAUFL','message','toLocaleString','\x20config','检测到旧配置文件,正在自动升级...\x0a','Auto-confirm\x20prompts','some','36druhqd','global','\x20\x20Default:\x20','defaultApp','1000MBwAea','map','7538112jsxyJO','App\x20code\x20to\x20initialize\x20with','join','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','3683223NqMgzy','string','../../commands/project/init.js','boolean','production','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','227148oIrZtJ','\x0a✓\x20Successfully\x20initialized\x20','str','env','69496fhJJPZ','nonInteractive','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','yes','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Target\x20environment','\x20\x20Apps:\x20','write','flagMissing','3084549XKWHjt','run','validation','Use\x20`','appcode','44oaBUKf','bool','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','30diomBp'];a78_0x3991=function(){return _0x474d2d;};return a78_0x3991();}function syntheticApp(_0x19008d){return{'appCode':_0x19008d,'appName':_0x19008d};}function writeInitConfig(_0x49002a,_0x16497c,_0x3c64d8){const _0x9599b1=a78_0x33f3,_0x687536=resolveWriteConfigPath(_0x49002a),_0x3c9566=buildCanonicalProjectConfig({},{'appCodes':_0x16497c[_0x9599b1(0xa8)](_0x3e5363=>_0x3e5363['appCode']),'env':_0x3c64d8,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x9599b1(0xcf)]()}});writeConfigFile(_0x687536,_0x3c9566);const _0xb271cf=_0x49002a==='global'?_0x9599b1(0xd5):_0x9599b1(0xcb);console[_0x9599b1(0xba)](_0x9599b1(0xb4)+_0xb271cf+_0x9599b1(0xd0)),console['log'](_0x9599b1(0xbe)+_0x16497c[_0x9599b1(0xa8)](_0xe830ad=>_0xe830ad['appCode'])[_0x9599b1(0xab)](',\x20')),console[_0x9599b1(0xba)](_0x9599b1(0xd6)+_0x3c9566[_0x9599b1(0xa6)]),console[_0x9599b1(0xba)]('\x20\x20Env:\x20'+_0x3c9566[_0x9599b1(0xb6)]),console[_0x9599b1(0xba)]('\x20\x20Config:\x20'+_0x687536);}async function runSmartInit(_0x5357cc){const _0x1de44a=a78_0x33f3,_0x10f8f2=process['cwd'](),_0x1fa94a=_0x5357cc['bool'](_0x1de44a(0xd5))?_0x1de44a(0xd5):_0x1de44a(0xcb),_0x1fa274=_0x5357cc[_0x1de44a(0xb5)](_0x1de44a(0xb6))||_0x1de44a(0xb1),_0x1fe51f=_0x5357cc[_0x1de44a(0xb5)](_0x1de44a(0xc5))||undefined,_0x3725fd=_0x5357cc['bool'](_0x1de44a(0xcb));if(_0x3725fd){const {initConfig:_0x48c5d4}=await import(_0x1de44a(0xaf));return _0x48c5d4({'appcode':_0x1fe51f,'env':_0x1fa274,'autoYes':_0x5357cc[_0x1de44a(0xc7)](_0x1de44a(0xbb))});}if(_0x1fa94a==='project'){const _0x166b4a=existsSync(resolve(_0x10f8f2,NEW_CONFIG_NAME)),_0x4b60ad=LEGACY_CONFIG_NAMES[_0x1de44a(0xd3)](_0x1e7c41=>existsSync(resolve(_0x10f8f2,_0x1e7c41)));if(_0x4b60ad&&!_0x166b4a)return console['log'](_0x1de44a(0xd1)),upgradeApp(_0x5357cc[_0x1de44a(0xb8)],{'yes':_0x5357cc['bool']('yes')});if(_0x166b4a)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x1de44a(0xc4)+CLI_BIN_NAME+_0x1de44a(0xbc));}if(_0x1fe51f){const _0x1f5a0d=validateAppcode(_0x1fe51f);if(!_0x1f5a0d['valid'])throw CliErrors[_0x1de44a(0xc3)](_0x1f5a0d[_0x1de44a(0xce)]);writeInitConfig(_0x1fa94a,[syntheticApp(_0x1fe51f)],_0x1fa274);return;}if(_0x5357cc[_0x1de44a(0xb8)])throw CliErrors[_0x1de44a(0xc0)](_0x1de44a(0xc5),'Usage:\x20'+CLI_BIN_NAME+_0x1de44a(0xb2));const _0x474b67=getCookie(),_0x548f97=await selectMultipleApps(_0x474b67),_0x29b611=_0x548f97==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x548f97;writeInitConfig(_0x1fa94a,_0x29b611,_0x1fa274);}const initFlags=[{'name':a78_0x704dd6(0xd5),'type':a78_0x704dd6(0xb0),'description':a78_0x704dd6(0xb9),'default':![]},{'name':a78_0x704dd6(0xb6),'type':'string','description':a78_0x704dd6(0xbd),'default':a78_0x704dd6(0xb1),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x704dd6(0xae),'description':a78_0x704dd6(0xaa)},{'name':a78_0x704dd6(0xcb),'type':a78_0x704dd6(0xb0),'description':a78_0x704dd6(0xc8),'default':![]},{'name':a78_0x704dd6(0xbb),'type':a78_0x704dd6(0xb0),'description':a78_0x704dd6(0xd2),'default':![]}];export const initDefinitions=[{'service':'init','command':a78_0x704dd6(0xc2),'description':a78_0x704dd6(0xac),'risk':a78_0x704dd6(0xbf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x8b3c7f){return await runSmartInit(_0x8b3c7f),{'ok':!![]};}}];
1
+ const a78_0x11265c=a78_0x62fe;(function(_0x25be2f,_0x576a9f){const _0x53b3e7=a78_0x62fe,_0x384aa3=_0x25be2f();while(!![]){try{const _0x149542=parseInt(_0x53b3e7(0x113))/0x1*(-parseInt(_0x53b3e7(0x11d))/0x2)+parseInt(_0x53b3e7(0x127))/0x3+parseInt(_0x53b3e7(0x112))/0x4+-parseInt(_0x53b3e7(0x12b))/0x5*(-parseInt(_0x53b3e7(0x126))/0x6)+-parseInt(_0x53b3e7(0x125))/0x7+-parseInt(_0x53b3e7(0x10d))/0x8*(-parseInt(_0x53b3e7(0x10e))/0x9)+-parseInt(_0x53b3e7(0x111))/0xa;if(_0x149542===_0x576a9f)break;else _0x384aa3['push'](_0x384aa3['shift']());}catch(_0x4d118c){_0x384aa3['push'](_0x384aa3['shift']());}}}(a78_0x19cf,0xf240a));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';function a78_0x62fe(_0x4b73ef,_0x515397){_0x4b73ef=_0x4b73ef-0x10c;const _0x19cf84=a78_0x19cf();let _0x62fea=_0x19cf84[_0x4b73ef];return _0x62fea;}import{getCookie}from'../../auth/get-cookie.js';function a78_0x19cf(){const _0x234670=['appcode','validation','log','\x0a✓\x20Successfully\x20initialized\x20','join','Auto-confirm\x20prompts','Use\x20`','some','6GTJwGz','检测到旧配置文件,正在自动升级...\x0a','env','bool','project','\x20\x20Default:\x20','Target\x20environment','nonInteractive','4003685LeNTfS','726Wfazqz','457914ZbJxuK','appCode','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Usage:\x20','65365VRxPGS','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','defaultApp','str','write','toLocaleString','boolean','run','flagMissing','cwd','\x20\x20Apps:\x20','\x20\x20Env:\x20','string','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20config','production','custom','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','init','yes','map','2370952iMrLOV','18vEeyiw','message','global','12251050KdTSUI','7498488BvkaGA','470835lNLNdJ','App\x20code\x20to\x20initialize\x20with'];a78_0x19cf=function(){return _0x234670;};return a78_0x19cf();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x584dc9){return{'appCode':_0x584dc9,'appName':_0x584dc9};}function writeInitConfig(_0x18ed2d,_0x49160d,_0x3812b6){const _0x539210=a78_0x62fe,_0x2fd09c=resolveWriteConfigPath(_0x18ed2d),_0x67578e=buildCanonicalProjectConfig({},{'appCodes':_0x49160d[_0x539210(0x10c)](_0x3c4932=>_0x3c4932[_0x539210(0x128)]),'env':_0x3812b6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x539210(0x130)]()}});writeConfigFile(_0x2fd09c,_0x67578e);const _0x4de148=_0x18ed2d===_0x539210(0x110)?_0x539210(0x110):'project';console[_0x539210(0x117)](_0x539210(0x118)+_0x4de148+_0x539210(0x139)),console['log'](_0x539210(0x135)+_0x49160d[_0x539210(0x10c)](_0x5eb047=>_0x5eb047['appCode'])[_0x539210(0x119)](',\x20')),console[_0x539210(0x117)](_0x539210(0x122)+_0x67578e[_0x539210(0x12d)]),console[_0x539210(0x117)](_0x539210(0x136)+_0x67578e[_0x539210(0x11f)]),console[_0x539210(0x117)]('\x20\x20Config:\x20'+_0x2fd09c);}async function runSmartInit(_0x1dd675){const _0x600b8d=a78_0x62fe,_0x4e414e=process[_0x600b8d(0x134)](),_0x446e56=_0x1dd675[_0x600b8d(0x120)](_0x600b8d(0x110))?_0x600b8d(0x110):_0x600b8d(0x121),_0x196da7=_0x1dd675[_0x600b8d(0x12e)]('env')||'production',_0x29600f=_0x1dd675[_0x600b8d(0x12e)](_0x600b8d(0x115))||undefined,_0x4c9c01=_0x1dd675[_0x600b8d(0x120)](_0x600b8d(0x121));if(_0x4c9c01){const {initConfig:_0x6f652}=await import('../../commands/project/init.js');return _0x6f652({'appcode':_0x29600f,'env':_0x196da7,'autoYes':_0x1dd675['bool'](_0x600b8d(0x13e))});}if(_0x446e56==='project'){const _0x205690=existsSync(resolve(_0x4e414e,NEW_CONFIG_NAME)),_0x154eea=LEGACY_CONFIG_NAMES[_0x600b8d(0x11c)](_0x319d7f=>existsSync(resolve(_0x4e414e,_0x319d7f)));if(_0x154eea&&!_0x205690)return console[_0x600b8d(0x117)](_0x600b8d(0x11e)),upgradeApp(_0x1dd675[_0x600b8d(0x124)],{'yes':_0x1dd675['bool'](_0x600b8d(0x13e))});if(_0x205690)throw CliErrors[_0x600b8d(0x116)](_0x600b8d(0x138),_0x600b8d(0x11b)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x29600f){const _0x407c23=validateAppcode(_0x29600f);if(!_0x407c23['valid'])throw CliErrors[_0x600b8d(0x116)](_0x407c23[_0x600b8d(0x10f)]);writeInitConfig(_0x446e56,[syntheticApp(_0x29600f)],_0x196da7);return;}if(_0x1dd675['nonInteractive'])throw CliErrors[_0x600b8d(0x133)](_0x600b8d(0x115),_0x600b8d(0x12a)+CLI_BIN_NAME+_0x600b8d(0x12c));const _0x212f46=getCookie(),_0x12aaae=await selectMultipleApps(_0x212f46),_0x1640ad=_0x12aaae===_0x600b8d(0x13b)?[syntheticApp(await promptCustomAppcode())]:_0x12aaae;writeInitConfig(_0x446e56,_0x1640ad,_0x196da7);}const initFlags=[{'name':a78_0x11265c(0x110),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':a78_0x11265c(0x137),'description':a78_0x11265c(0x123),'default':a78_0x11265c(0x13a),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x11265c(0x115),'type':'string','description':a78_0x11265c(0x114)},{'name':a78_0x11265c(0x121),'type':a78_0x11265c(0x131),'description':a78_0x11265c(0x129),'default':![]},{'name':a78_0x11265c(0x13e),'type':a78_0x11265c(0x131),'description':a78_0x11265c(0x11a),'default':![]}];export const initDefinitions=[{'service':a78_0x11265c(0x13d),'command':a78_0x11265c(0x132),'description':a78_0x11265c(0x13c),'risk':a78_0x11265c(0x12f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1f2120){return await runSmartInit(_0x1f2120),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x41d3cb,_0x143ef3){const _0x2b6e09=a79_0x27b1,_0xf59dfa=_0x41d3cb();while(!![]){try{const _0x2c070b=parseInt(_0x2b6e09(0x16d))/0x1*(parseInt(_0x2b6e09(0x167))/0x2)+-parseInt(_0x2b6e09(0x16f))/0x3*(parseInt(_0x2b6e09(0x168))/0x4)+parseInt(_0x2b6e09(0x169))/0x5*(parseInt(_0x2b6e09(0x16e))/0x6)+-parseInt(_0x2b6e09(0x16b))/0x7+parseInt(_0x2b6e09(0x16c))/0x8+-parseInt(_0x2b6e09(0x170))/0x9*(parseInt(_0x2b6e09(0x171))/0xa)+parseInt(_0x2b6e09(0x16a))/0xb;if(_0x2c070b===_0x143ef3)break;else _0xf59dfa['push'](_0xf59dfa['shift']());}catch(_0x35b85b){_0xf59dfa['push'](_0xf59dfa['shift']());}}}(a79_0x12a8,0x9f6a9));function a79_0x27b1(_0x19b6b2,_0x4e7305){_0x19b6b2=_0x19b6b2-0x167;const _0x12a8ee=a79_0x12a8();let _0x27b1c7=_0x12a8ee[_0x19b6b2];return _0x27b1c7;}import{issueReport}from'../../commands/issue/report.js';function a79_0x12a8(){const _0x1c30bc=['6517576FuTNyN','1JXozKV','6XYQYEg','276654ERWhjB','5185116oABblX','10KrAzip','525270rYbAqv','44GjQvmC','6241745NDAOZB','6507897Scyxyo','4716719JpfDbQ'];a79_0x12a8=function(){return _0x1c30bc;};return a79_0x12a8();}export const issueDefinitions=[issueReport];
1
+ function a79_0x3f76(){const _0x788b63=['2134056OGUjhI','7131810VDRNju','731280oILQet','1851350iDiXgr','1vYvZgF','528742RDYPPb','2007744GYlvNr','90xNNnpi','921399VHPLTE'];a79_0x3f76=function(){return _0x788b63;};return a79_0x3f76();}(function(_0x4467ed,_0x2a0537){const _0xd80df8=a79_0x194e,_0x4eedd3=_0x4467ed();while(!![]){try{const _0x18a5a4=-parseInt(_0xd80df8(0x1f4))/0x1*(parseInt(_0xd80df8(0x1f5))/0x2)+-parseInt(_0xd80df8(0x1ef))/0x3+-parseInt(_0xd80df8(0x1f0))/0x4+parseInt(_0xd80df8(0x1f3))/0x5+-parseInt(_0xd80df8(0x1f2))/0x6+-parseInt(_0xd80df8(0x1f1))/0x7+-parseInt(_0xd80df8(0x1f6))/0x8*(-parseInt(_0xd80df8(0x1f7))/0x9);if(_0x18a5a4===_0x2a0537)break;else _0x4eedd3['push'](_0x4eedd3['shift']());}catch(_0x2b4479){_0x4eedd3['push'](_0x4eedd3['shift']());}}}(a79_0x3f76,0x9ad6e));function a79_0x194e(_0x6178cc,_0x143374){_0x6178cc=_0x6178cc-0x1ef;const _0x3f7651=a79_0x3f76();let _0x194e4b=_0x3f7651[_0x6178cc];return _0x194e4b;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x2a975d=a80_0xb8c3;(function(_0x23b4d6,_0x4362e9){const _0xdc2c1e=a80_0xb8c3,_0x4ce6f5=_0x23b4d6();while(!![]){try{const _0x4ce208=parseInt(_0xdc2c1e(0x194))/0x1+parseInt(_0xdc2c1e(0x191))/0x2*(parseInt(_0xdc2c1e(0x19e))/0x3)+parseInt(_0xdc2c1e(0x193))/0x4+-parseInt(_0xdc2c1e(0x1ac))/0x5+parseInt(_0xdc2c1e(0x190))/0x6*(-parseInt(_0xdc2c1e(0x1b4))/0x7)+-parseInt(_0xdc2c1e(0x1a1))/0x8*(-parseInt(_0xdc2c1e(0x1a0))/0x9)+-parseInt(_0xdc2c1e(0x1ab))/0xa;if(_0x4ce208===_0x4362e9)break;else _0x4ce6f5['push'](_0x4ce6f5['shift']());}catch(_0x37bd51){_0x4ce6f5['push'](_0x4ce6f5['shift']());}}}(a80_0x1e54,0xbe948));import{CliError}from'../../errors.js';function a80_0x1e54(){const _0x106ed6=['auth_required','cancelled','length','84wfPICX','network_error','15300gOTPVm','3384jhVEgu','config_missing','unknown_command','has','not_in_project','\x20issue\x20report\x20\x5c','issue','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','service','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','7158890eqTiPR','3515835Bzrplh','slice','replace','command','\x20\x20\x20\x20--title\x20\x22','report','\x22\x20\x5c','=1\x20to\x20silence\x20this\x20hint.','7KnIxds','write','stderr','1492962jOzYZc','8594NCfqgi','message','5988256AzOYUO','112019RFkFPD','trim','\x20\x20Set\x20','RABETBASE_DISABLE_ISSUE_NUDGE','flag_missing','join','\x20bug?\x20Help\x20us\x20fix\x20it:'];a80_0x1e54=function(){return _0x106ed6;};return a80_0x1e54();}function a80_0xb8c3(_0x293161,_0x2077eb){_0x293161=_0x293161-0x18e;const _0x1e542b=a80_0x1e54();let _0xb8c31c=_0x1e542b[_0x293161];return _0xb8c31c;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x2a975d(0x197);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x2a975d(0x19c),a80_0x2a975d(0x19b),a80_0x2a975d(0x1a2),a80_0x2a975d(0x1a5),a80_0x2a975d(0x1a3),a80_0x2a975d(0x198),'validation_error',a80_0x2a975d(0x19f)]),defaultWriter=_0x47f1e7=>{const _0x517ab5=a80_0x2a975d;process[_0x517ab5(0x18f)][_0x517ab5(0x18e)](_0x47f1e7);};export function shouldNudgeForError(_0x4ad5a1,_0x40183d){const _0x37cef7=a80_0x2a975d;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x40183d[_0x37cef7(0x1a9)]===_0x37cef7(0x1a7)&&_0x40183d['command']===_0x37cef7(0x1b1))return![];if(_0x4ad5a1 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x37cef7(0x1a4)](_0x4ad5a1['code']);return!![];}export function printIssueReportNudgeForError(_0x34e889,_0x11f0f1,_0x47cef5=defaultWriter){if(!shouldNudgeForError(_0x34e889,_0x11f0f1))return;const _0x1855ab=buildSuggestedTitle(_0x34e889,_0x11f0f1);_0x47cef5(formatNudge(_0x1855ab));}function buildSuggestedTitle(_0x3fa675,_0x47654f){const _0x3b8266=a80_0x2a975d,_0x56ae24=_0x3fa675 instanceof Error?_0x3fa675[_0x3b8266(0x192)]:String(_0x3fa675),_0xcb5a27=_0x56ae24[_0x3b8266(0x1ae)](/[\r\n]+/g,'\x20')[_0x3b8266(0x1ae)](/\s+/g,'\x20')[_0x3b8266(0x195)]()[_0x3b8266(0x1ad)](0x0,0x78)[_0x3b8266(0x1ae)](/"/g,'\x5c\x22'),_0xb23232=CLI_BIN_NAME+'\x20'+_0x47654f[_0x3b8266(0x1a9)]+'\x20'+_0x47654f[_0x3b8266(0x1af)];return _0xcb5a27[_0x3b8266(0x19d)]>0x0?_0xb23232+':\x20'+_0xcb5a27:_0xb23232;}function formatNudge(_0x441123){const _0x49514b=a80_0x2a975d;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x49514b(0x19a),'\x20\x20'+CLI_BIN_NAME+_0x49514b(0x1a6),_0x49514b(0x1b0)+_0x441123+_0x49514b(0x1b2),_0x49514b(0x1a8),_0x49514b(0x1aa),_0x49514b(0x196)+NUDGE_OPT_OUT_ENV+_0x49514b(0x1b3),''][_0x49514b(0x199)]('\x0a');}
1
+ const a80_0x13d8ad=a80_0x5b97;(function(_0x407b88,_0x305e0d){const _0x16e7e4=a80_0x5b97,_0xaa2e60=_0x407b88();while(!![]){try{const _0x19d725=parseInt(_0x16e7e4(0x147))/0x1*(-parseInt(_0x16e7e4(0x14a))/0x2)+-parseInt(_0x16e7e4(0x149))/0x3+-parseInt(_0x16e7e4(0x143))/0x4*(-parseInt(_0x16e7e4(0x13e))/0x5)+-parseInt(_0x16e7e4(0x12e))/0x6+-parseInt(_0x16e7e4(0x134))/0x7*(parseInt(_0x16e7e4(0x13c))/0x8)+-parseInt(_0x16e7e4(0x137))/0x9+parseInt(_0x16e7e4(0x129))/0xa*(parseInt(_0x16e7e4(0x12f))/0xb);if(_0x19d725===_0x305e0d)break;else _0xaa2e60['push'](_0xaa2e60['shift']());}catch(_0x14ab62){_0xaa2e60['push'](_0xaa2e60['shift']());}}}(a80_0x212b,0x5cc0c));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a80_0x13d8ad(0x138),a80_0x13d8ad(0x12c),'config_missing',a80_0x13d8ad(0x142),a80_0x13d8ad(0x14c),a80_0x13d8ad(0x130),a80_0x13d8ad(0x144),a80_0x13d8ad(0x13f)]),defaultWriter=_0x1e9d70=>{const _0x3f3bb9=a80_0x13d8ad;process[_0x3f3bb9(0x146)][_0x3f3bb9(0x14b)](_0x1e9d70);};export function shouldNudgeForError(_0x55f7fc,_0x7c3244){const _0x1b09d3=a80_0x13d8ad;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x7c3244['service']===_0x1b09d3(0x131)&&_0x7c3244['command']===_0x1b09d3(0x135))return![];if(_0x55f7fc instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1b09d3(0x12d)](_0x55f7fc['code']);return!![];}function a80_0x5b97(_0x592e1a,_0x5819de){_0x592e1a=_0x592e1a-0x129;const _0x212b3e=a80_0x212b();let _0x5b97e9=_0x212b3e[_0x592e1a];return _0x5b97e9;}export function printIssueReportNudgeForError(_0x5937d5,_0x263c4b,_0x189703=defaultWriter){if(!shouldNudgeForError(_0x5937d5,_0x263c4b))return;const _0x36090f=buildSuggestedTitle(_0x5937d5,_0x263c4b);_0x189703(formatNudge(_0x36090f));}function buildSuggestedTitle(_0x2dba11,_0x15ce74){const _0x4df436=a80_0x13d8ad,_0x313144=_0x2dba11 instanceof Error?_0x2dba11[_0x4df436(0x141)]:String(_0x2dba11),_0x4759cd=_0x313144[_0x4df436(0x13d)](/[\r\n]+/g,'\x20')[_0x4df436(0x13d)](/\s+/g,'\x20')[_0x4df436(0x139)]()[_0x4df436(0x133)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x4badff=CLI_BIN_NAME+'\x20'+_0x15ce74[_0x4df436(0x14d)]+'\x20'+_0x15ce74[_0x4df436(0x140)];return _0x4759cd[_0x4df436(0x132)]>0x0?_0x4badff+':\x20'+_0x4759cd:_0x4badff;}function a80_0x212b(){const _0x13060e=['message','not_in_project','132052xtJmgk','validation_error','\x20\x20\x20\x20--title\x20\x22','stderr','5vweuek','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','519024ojYZHf','63772PZwJFa','write','unknown_command','service','330BKzPXI','\x22\x20\x5c','join','auth_required','has','2839494xPawMb','718905ePuJbD','flag_missing','issue','length','slice','7APqUni','report','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','4627530EJlmhM','cancelled','trim','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20','5504264xuteSt','replace','35SRjEsR','network_error','command'];a80_0x212b=function(){return _0x13060e;};return a80_0x212b();}function formatNudge(_0x13f180){const _0x18dbf9=a80_0x13d8ad;return['',_0x18dbf9(0x13b)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x18dbf9(0x145)+_0x13f180+_0x18dbf9(0x12a),_0x18dbf9(0x136),_0x18dbf9(0x148),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x18dbf9(0x13a),''][_0x18dbf9(0x12b)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x228c16=a81_0x3611;(function(_0xaea8d2,_0x427a85){const _0x1340d4=a81_0x3611,_0x311c3e=_0xaea8d2();while(!![]){try{const _0x2633b6=-parseInt(_0x1340d4(0xe6))/0x1*(-parseInt(_0x1340d4(0xd7))/0x2)+-parseInt(_0x1340d4(0xdb))/0x3*(-parseInt(_0x1340d4(0xd1))/0x4)+-parseInt(_0x1340d4(0xdd))/0x5*(parseInt(_0x1340d4(0xb5))/0x6)+-parseInt(_0x1340d4(0xe4))/0x7+-parseInt(_0x1340d4(0xb6))/0x8*(parseInt(_0x1340d4(0xda))/0x9)+parseInt(_0x1340d4(0xb0))/0xa*(-parseInt(_0x1340d4(0xeb))/0xb)+parseInt(_0x1340d4(0xb9))/0xc*(parseInt(_0x1340d4(0xde))/0xd);if(_0x2633b6===_0x427a85)break;else _0x311c3e['push'](_0x311c3e['shift']());}catch(_0x1976c3){_0x311c3e['push'](_0x311c3e['shift']());}}}(a81_0x36ab,0x1cb8a));import{existsSync}from'node:fs';function a81_0x36ab(){const _0xf10897=['Failed\x20to\x20report\x20platform\x20issue:\x20','apiError','validation','descriptionSource:\x20','sanitize','70cMIfyw','issue.description_truncated','Platform\x20issue\x20reported','redactions:\x20','message','1349982LsDOVC','1784ovwcJC','POST','truncated\x20from\x20','240KfSWLV','descriptionFilePath','string','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','join','otel://','descriptionSource','cwd','truncated:\x20original\x20','utf8','redactionCount','truncated','description','Issue\x20description\x20cannot\x20be\x20empty.','originalBytes','write','issue.description_redactions','One-line\x20issue\x20summary','issue.description_redaction_kinds','redactionKinds','issue.title','str','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','trim','299492SrPCDu','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','File\x20not\x20found:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','description-file','redacted\x20','3048qtudqN','issue','length','5562NsoTcg','3KYhWzq','Platform\x20issue\x20reported\x20(','5cAtNmx','324948brqIOE','issue.description_original_bytes','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','push','Issue\x20description\x20file\x20is\x20empty:\x20','\x20bytes','1070629klOFVH','title','135QuHgnB','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','report','filter','file','231209LKSgfG'];a81_0x36ab=function(){return _0xf10897;};return a81_0x36ab();}import{readFile}from'node:fs/promises';function a81_0x3611(_0x59d6d5,_0x4ec82e){_0x59d6d5=_0x59d6d5-0xae;const _0x36ab07=a81_0x36ab();let _0x361149=_0x36ab07[_0x59d6d5];return _0x361149;}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x228c16(0xd5);export const issueReport={'service':a81_0x228c16(0xd8),'command':a81_0x228c16(0xe8),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a81_0x228c16(0xc8),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x228c16(0xe5),'type':a81_0x228c16(0xbb),'required':!![],'description':a81_0x228c16(0xca)},{'name':a81_0x228c16(0xc5),'type':a81_0x228c16(0xbb),'description':a81_0x228c16(0xe7)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a81_0x228c16(0xbc)}],async 'validate'(_0xc5e74d){const _0x5df42e=a81_0x228c16,_0x4b54ca=_0xc5e74d['str'](_0x5df42e(0xe5))[_0x5df42e(0xd0)](),_0x28265a=_0xc5e74d[_0x5df42e(0xce)](_0x5df42e(0xc5))[_0x5df42e(0xd0)](),_0x49dcf9=_0xc5e74d['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4b54ca)throw CliErrors['flagMissing']('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x468a87=_0x28265a[_0x5df42e(0xd9)]>0x0,_0x2403a4=_0x49dcf9['length']>0x0;if(_0x468a87===_0x2403a4)throw CliErrors[_0x5df42e(0xee)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x2403a4){const _0x56ca0f=resolve(process[_0x5df42e(0xc0)](),_0x49dcf9);if(!existsSync(_0x56ca0f))throw CliErrors[_0x5df42e(0xee)](_0x5df42e(0xd3)+_0x56ca0f);}},async 'dryRun'(_0x1b71a9){const _0x558b49=a81_0x228c16,_0x3fd042=await prepareIssueReport(_0x1b71a9);return{'method':_0x558b49(0xb7),'url':_0x558b49(0xbe)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3fd042[_0x558b49(0xe5)],'issue.description':_0x3fd042[_0x558b49(0xc5)],'issue.description_original_bytes':_0x3fd042[_0x558b49(0xaf)][_0x558b49(0xc7)],'issue.description_truncated':_0x3fd042['sanitize'][_0x558b49(0xc4)],'issue.description_redactions':_0x3fd042['sanitize'][_0x558b49(0xc3)],'issue.description_redaction_kinds':_0x3fd042['sanitize'][_0x558b49(0xcc)][_0x558b49(0xbd)](',')}},'description':[_0x558b49(0xe0),_0x558b49(0xae)+_0x3fd042[_0x558b49(0xbf)],_0x3fd042[_0x558b49(0xba)]?'descriptionFile:\x20'+_0x3fd042['descriptionFilePath']:null,_0x3fd042[_0x558b49(0xaf)][_0x558b49(0xc4)]?_0x558b49(0xc1)+_0x3fd042['sanitize'][_0x558b49(0xc7)]+'\x20bytes':null,_0x3fd042[_0x558b49(0xaf)][_0x558b49(0xc3)]>0x0?_0x558b49(0xb3)+_0x3fd042[_0x558b49(0xaf)]['redactionCount']+'\x20('+_0x3fd042[_0x558b49(0xaf)][_0x558b49(0xcc)][_0x558b49(0xbd)](',\x20')+')':null][_0x558b49(0xe9)](Boolean)[_0x558b49(0xbd)]('\x0a')};},async 'execute'(_0x45da9a){const _0x1e5d87=a81_0x228c16,_0x2c741a=await prepareIssueReport(_0x45da9a);try{await sendPlatformIssueCollectLog({'title':_0x2c741a[_0x1e5d87(0xe5)],'description':_0x2c741a[_0x1e5d87(0xc5)],'sanitize':{'originalBytes':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xc7)],'truncated':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xc4)],'redactionCount':_0x2c741a['sanitize'][_0x1e5d87(0xc3)],'redactionKinds':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xcc)]}});}catch(_0x182e37){throw CliErrors[_0x1e5d87(0xed)](_0x1e5d87(0xec)+(_0x182e37 instanceof Error?_0x182e37[_0x1e5d87(0xb4)]:String(_0x182e37)),_0x1e5d87(0xd4));}return{'ok':!![],'message':buildResultMessage(_0x2c741a[_0x1e5d87(0xaf)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1e5d87(0xcd),'issue.description',_0x1e5d87(0xdf),_0x1e5d87(0xb1),_0x1e5d87(0xc9),_0x1e5d87(0xcb)],'issue':{'title':_0x2c741a['title'],'descriptionLength':_0x2c741a[_0x1e5d87(0xc5)][_0x1e5d87(0xd9)],'descriptionSource':_0x2c741a[_0x1e5d87(0xbf)],..._0x2c741a[_0x1e5d87(0xba)]?{'descriptionFile':_0x2c741a[_0x1e5d87(0xba)]}:{},'sanitize':{'originalBytes':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xc7)],'truncated':_0x2c741a[_0x1e5d87(0xaf)]['truncated'],'redactions':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xc3)],'redactionKinds':_0x2c741a[_0x1e5d87(0xaf)][_0x1e5d87(0xcc)]}}}};}};function buildResultMessage(_0x50fb7c){const _0x4087a8=a81_0x228c16,_0x3f6930=[];return _0x50fb7c[_0x4087a8(0xc4)]&&_0x3f6930[_0x4087a8(0xe1)](_0x4087a8(0xb8)+_0x50fb7c[_0x4087a8(0xc7)]+_0x4087a8(0xe3)),_0x50fb7c['redactionCount']>0x0&&_0x3f6930[_0x4087a8(0xe1)](_0x4087a8(0xd6)+_0x50fb7c[_0x4087a8(0xc3)]+'\x20secret(s):\x20'+_0x50fb7c[_0x4087a8(0xcc)][_0x4087a8(0xbd)](',\x20')),_0x3f6930[_0x4087a8(0xd9)]===0x0?_0x4087a8(0xb2):_0x4087a8(0xdc)+_0x3f6930[_0x4087a8(0xbd)](';\x20')+')';}async function prepareIssueReport(_0x47a27b){const _0x5d76fb=a81_0x228c16,_0x2fec40=_0x47a27b[_0x5d76fb(0xce)]('title')[_0x5d76fb(0xd0)](),_0x2b84fc=_0x47a27b[_0x5d76fb(0xce)](_0x5d76fb(0xc5)),_0x580ef3=_0x47a27b[_0x5d76fb(0xce)](DESCRIPTION_FILE_FLAG)[_0x5d76fb(0xd0)]();if(!_0x580ef3){const _0x384309=_0x2b84fc;if(!_0x384309[_0x5d76fb(0xd0)]())throw CliErrors[_0x5d76fb(0xee)](_0x5d76fb(0xc6),_0x5d76fb(0xd2));const _0x45ecc1=sanitizeIssueDescription(_0x384309);return{'title':_0x2fec40,'description':_0x45ecc1['description'],'descriptionSource':'inline','sanitize':_0x45ecc1};}const _0x1fc0eb=resolve(process[_0x5d76fb(0xc0)](),_0x580ef3),_0x1cd293=await readFile(_0x1fc0eb,_0x5d76fb(0xc2));if(!_0x1cd293[_0x5d76fb(0xd0)]())throw CliErrors[_0x5d76fb(0xee)](_0x5d76fb(0xe2)+_0x1fc0eb,_0x5d76fb(0xcf));const _0x29ce74=sanitizeIssueDescription(_0x1cd293);return{'title':_0x2fec40,'description':_0x29ce74[_0x5d76fb(0xc5)],'descriptionSource':_0x5d76fb(0xea),'descriptionFilePath':_0x1fc0eb,'sanitize':_0x29ce74};}
1
+ const a81_0x153737=a81_0x2b45;(function(_0x509a63,_0x5735a0){const _0x331c86=a81_0x2b45,_0x139561=_0x509a63();while(!![]){try{const _0x341bf5=parseInt(_0x331c86(0x15f))/0x1*(-parseInt(_0x331c86(0x16c))/0x2)+parseInt(_0x331c86(0x14e))/0x3+parseInt(_0x331c86(0x15c))/0x4+parseInt(_0x331c86(0x142))/0x5+parseInt(_0x331c86(0x156))/0x6+parseInt(_0x331c86(0x153))/0x7*(-parseInt(_0x331c86(0x143))/0x8)+-parseInt(_0x331c86(0x14a))/0x9;if(_0x341bf5===_0x5735a0)break;else _0x139561['push'](_0x139561['shift']());}catch(_0x49d13f){_0x139561['push'](_0x139561['shift']());}}}(a81_0x371a,0xbc9a6));function a81_0x2b45(_0x19f9db,_0x10e53e){_0x19f9db=_0x19f9db-0x13d;const _0x371a2c=a81_0x371a();let _0x2b45a9=_0x371a2c[_0x19f9db];return _0x2b45a9;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a81_0x371a(){const _0x5266e1=['descriptionSource','redactionCount','originalBytes','message','525bpPuYy','str','trim','7707378ZLMFlA','Platform\x20issue\x20reported','inline','issue.description_redaction_kinds','file','One-line\x20issue\x20summary','4008088HpsZKi','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description-file','194DwmjlQ','issue.description_truncated','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','sanitize','redactions:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_original_bytes','push','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','apiError','Issue\x20description\x20cannot\x20be\x20empty.','write','utf8','9252XUuNgX','length','Issue\x20description\x20file\x20is\x20empty:\x20','filter','descriptionSource:\x20','flagMissing','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','descriptionFilePath','truncated:\x20original\x20','issue.description_redactions','redactionKinds','validation','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','title','description','join','descriptionFile:\x20','4336720tMheoZ','160840yUwJZA','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.title','Failed\x20to\x20report\x20platform\x20issue:\x20','truncated','\x20bytes','cwd','8850321XpWbzY','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','report','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','3021831ZmSQbL'];a81_0x371a=function(){return _0x5266e1;};return a81_0x371a();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x153737(0x15e);export const issueReport={'service':'issue','command':a81_0x153737(0x14c),'description':a81_0x153737(0x161),'risk':a81_0x153737(0x16a),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x153737(0x13e),'type':'string','required':!![],'description':a81_0x153737(0x15b)},{'name':a81_0x153737(0x13f),'type':'string','description':a81_0x153737(0x164)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a81_0x153737(0x14b)}],async 'validate'(_0x578226){const _0x3ac02d=a81_0x153737,_0x4b388e=_0x578226[_0x3ac02d(0x154)](_0x3ac02d(0x13e))[_0x3ac02d(0x155)](),_0x28654b=_0x578226['str']('description')[_0x3ac02d(0x155)](),_0x773213=_0x578226[_0x3ac02d(0x154)](DESCRIPTION_FILE_FLAG)[_0x3ac02d(0x155)]();if(!_0x4b388e)throw CliErrors[_0x3ac02d(0x171)](_0x3ac02d(0x13e),_0x3ac02d(0x14d));const _0x33e4a6=_0x28654b[_0x3ac02d(0x16d)]>0x0,_0x52fe5c=_0x773213[_0x3ac02d(0x16d)]>0x0;if(_0x33e4a6===_0x52fe5c)throw CliErrors[_0x3ac02d(0x177)](_0x3ac02d(0x144),_0x3ac02d(0x172));if(_0x52fe5c){const _0x3f5b4b=resolve(process['cwd'](),_0x773213);if(!existsSync(_0x3f5b4b))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x3f5b4b);}},async 'dryRun'(_0x25af0c){const _0x1ff575=a81_0x153737,_0x4b3f61=await prepareIssueReport(_0x25af0c);return{'method':'POST','url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4b3f61['title'],'issue.description':_0x4b3f61[_0x1ff575(0x13f)],'issue.description_original_bytes':_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x151)],'issue.description_truncated':_0x4b3f61['sanitize'][_0x1ff575(0x147)],'issue.description_redactions':_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x150)],'issue.description_redaction_kinds':_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x176)][_0x1ff575(0x140)](',')}},'description':[_0x1ff575(0x167),_0x1ff575(0x170)+_0x4b3f61[_0x1ff575(0x14f)],_0x4b3f61[_0x1ff575(0x173)]?_0x1ff575(0x141)+_0x4b3f61[_0x1ff575(0x173)]:null,_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x147)]?_0x1ff575(0x174)+_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x151)]+_0x1ff575(0x148):null,_0x4b3f61['sanitize'][_0x1ff575(0x150)]>0x0?_0x1ff575(0x163)+_0x4b3f61[_0x1ff575(0x162)][_0x1ff575(0x150)]+'\x20('+_0x4b3f61['sanitize'][_0x1ff575(0x176)][_0x1ff575(0x140)](',\x20')+')':null][_0x1ff575(0x16f)](Boolean)[_0x1ff575(0x140)]('\x0a')};},async 'execute'(_0x56668a){const _0x1c0180=a81_0x153737,_0x3262e2=await prepareIssueReport(_0x56668a);try{await sendPlatformIssueCollectLog({'title':_0x3262e2[_0x1c0180(0x13e)],'description':_0x3262e2[_0x1c0180(0x13f)],'sanitize':{'originalBytes':_0x3262e2['sanitize'][_0x1c0180(0x151)],'truncated':_0x3262e2[_0x1c0180(0x162)]['truncated'],'redactionCount':_0x3262e2[_0x1c0180(0x162)][_0x1c0180(0x150)],'redactionKinds':_0x3262e2['sanitize'][_0x1c0180(0x176)]}});}catch(_0x44abb9){throw CliErrors[_0x1c0180(0x168)](_0x1c0180(0x146)+(_0x44abb9 instanceof Error?_0x44abb9[_0x1c0180(0x152)]:String(_0x44abb9)),_0x1c0180(0x13d));}return{'ok':!![],'message':buildResultMessage(_0x3262e2[_0x1c0180(0x162)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1c0180(0x145),'issue.description',_0x1c0180(0x165),_0x1c0180(0x160),_0x1c0180(0x175),_0x1c0180(0x159)],'issue':{'title':_0x3262e2[_0x1c0180(0x13e)],'descriptionLength':_0x3262e2[_0x1c0180(0x13f)][_0x1c0180(0x16d)],'descriptionSource':_0x3262e2[_0x1c0180(0x14f)],..._0x3262e2['descriptionFilePath']?{'descriptionFile':_0x3262e2[_0x1c0180(0x173)]}:{},'sanitize':{'originalBytes':_0x3262e2[_0x1c0180(0x162)]['originalBytes'],'truncated':_0x3262e2[_0x1c0180(0x162)]['truncated'],'redactions':_0x3262e2[_0x1c0180(0x162)]['redactionCount'],'redactionKinds':_0x3262e2[_0x1c0180(0x162)][_0x1c0180(0x176)]}}}};}};function buildResultMessage(_0x3fae89){const _0x3de379=a81_0x153737,_0xf1c941=[];return _0x3fae89[_0x3de379(0x147)]&&_0xf1c941[_0x3de379(0x166)]('truncated\x20from\x20'+_0x3fae89['originalBytes']+'\x20bytes'),_0x3fae89[_0x3de379(0x150)]>0x0&&_0xf1c941[_0x3de379(0x166)]('redacted\x20'+_0x3fae89[_0x3de379(0x150)]+'\x20secret(s):\x20'+_0x3fae89[_0x3de379(0x176)][_0x3de379(0x140)](',\x20')),_0xf1c941[_0x3de379(0x16d)]===0x0?_0x3de379(0x157):'Platform\x20issue\x20reported\x20('+_0xf1c941['join'](';\x20')+')';}async function prepareIssueReport(_0x1dfea0){const _0x159775=a81_0x153737,_0x39034f=_0x1dfea0[_0x159775(0x154)](_0x159775(0x13e))['trim'](),_0x3c3575=_0x1dfea0['str'](_0x159775(0x13f)),_0x555adb=_0x1dfea0['str'](DESCRIPTION_FILE_FLAG)[_0x159775(0x155)]();if(!_0x555adb){const _0x56666a=_0x3c3575;if(!_0x56666a[_0x159775(0x155)]())throw CliErrors[_0x159775(0x177)](_0x159775(0x169),_0x159775(0x15d));const _0x39efc1=sanitizeIssueDescription(_0x56666a);return{'title':_0x39034f,'description':_0x39efc1['description'],'descriptionSource':_0x159775(0x158),'sanitize':_0x39efc1};}const _0x311145=resolve(process[_0x159775(0x149)](),_0x555adb),_0x5a627d=await readFile(_0x311145,_0x159775(0x16b));if(!_0x5a627d['trim']())throw CliErrors[_0x159775(0x177)](_0x159775(0x16e)+_0x311145,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x319e8b=sanitizeIssueDescription(_0x5a627d);return{'title':_0x39034f,'description':_0x319e8b[_0x159775(0x13f)],'descriptionSource':_0x159775(0x15a),'descriptionFilePath':_0x311145,'sanitize':_0x319e8b};}
@@ -1 +1 @@
1
- function a82_0xf05c(){const _0x345a36=['push','170JDyZav','706601Tnafuj','REDACTED:bearer-jwt','string','REDACTED:password','833526GdADMk','4UgrhIc','REDACTED:cookie','99381SzfLuG','14776VLMqIt','subarray','4669700xYwqgO','byteLength','REDACTED:access-key','kind','password','utf8','private-key','2628tukEIF','2Ekahbu','cookie','bearer-jwt','authorization','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','max','2303634FYJaCV','access-key','toString','410729QHkRkW'];a82_0xf05c=function(){return _0x345a36;};return a82_0xf05c();}const a82_0x5e94cb=a82_0x1f56;(function(_0x3a14d0,_0x2de99b){const _0x376ec0=a82_0x1f56,_0x5865cf=_0x3a14d0();while(!![]){try{const _0x5eff6a=-parseInt(_0x376ec0(0x133))/0x1*(parseInt(_0x376ec0(0x143))/0x2)+parseInt(_0x376ec0(0x146))/0x3*(parseInt(_0x376ec0(0x144))/0x4)+parseInt(_0x376ec0(0x12b))/0x5+parseInt(_0x376ec0(0x139))/0x6+parseInt(_0x376ec0(0x13f))/0x7+parseInt(_0x376ec0(0x147))/0x8*(parseInt(_0x376ec0(0x132))/0x9)+-parseInt(_0x376ec0(0x13e))/0xa*(parseInt(_0x376ec0(0x13c))/0xb);if(_0x5eff6a===_0x2de99b)break;else _0x5865cf['push'](_0x5865cf['shift']());}catch(_0x102259){_0x5865cf['push'](_0x5865cf['shift']());}}}(a82_0xf05c,0x7fae8));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x5e94cb(0x137),REDACTION_RULES=[{'kind':a82_0x5e94cb(0x134),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x5e94cb(0x145)},{'kind':a82_0x5e94cb(0x136),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a82_0x5e94cb(0x131),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x5e94cb(0x13a),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x5e94cb(0x12d)},{'kind':a82_0x5e94cb(0x12f),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x5e94cb(0x142)},{'kind':a82_0x5e94cb(0x135),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x5e94cb(0x140)}];function a82_0x1f56(_0x58e35d,_0x58669c){_0x58e35d=_0x58e35d-0x12b;const _0xf05c79=a82_0xf05c();let _0x1f5637=_0xf05c79[_0x58e35d];return _0x1f5637;}export function sanitizeIssueDescription(_0x4fe7b5){const _0x4dc1e6=a82_0x5e94cb,_0x42e5e4=Buffer['byteLength'](_0x4fe7b5,'utf8'),_0x32e85a=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2647d1=_0x4fe7b5,_0x50aa0b=0x0;const _0xb6c09e=[];if(!_0x32e85a)for(const _0x4be136 of REDACTION_RULES){let _0x5080ab=0x0;_0x2647d1=_0x2647d1['replace'](_0x4be136['pattern'],(_0x2fa995,_0x7f95e5)=>{const _0x3c66a0=a82_0x1f56;_0x5080ab+=0x1;const _0x5e9590=typeof _0x7f95e5===_0x3c66a0(0x141)?_0x7f95e5:'';return _0x5e9590+'['+_0x4be136['label']+']';}),_0x5080ab>0x0&&(_0x50aa0b+=_0x5080ab,!_0xb6c09e['includes'](_0x4be136[_0x4dc1e6(0x12e)])&&_0xb6c09e[_0x4dc1e6(0x13d)](_0x4be136['kind']));}let _0x4cc9f9=![];if(Buffer['byteLength'](_0x2647d1,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x4cc9f9=!![];const _0x3e8f9d=Buffer[_0x4dc1e6(0x12c)](TRUNCATION_NOTICE,_0x4dc1e6(0x130)),_0x469b38=Math[_0x4dc1e6(0x138)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3e8f9d);_0x2647d1=sliceUtf8Bytes(_0x2647d1,_0x469b38)+TRUNCATION_NOTICE;}return{'description':_0x2647d1,'originalBytes':_0x42e5e4,'truncated':_0x4cc9f9,'redactionCount':_0x50aa0b,'redactionKinds':_0xb6c09e};}function sliceUtf8Bytes(_0x3aa370,_0x476895){const _0x24b523=a82_0x5e94cb;if(_0x476895<=0x0)return'';const _0x440328=Buffer['from'](_0x3aa370,_0x24b523(0x130));if(_0x440328[_0x24b523(0x12c)]<=_0x476895)return _0x3aa370;let _0x46a4dc=_0x476895;while(_0x46a4dc>0x0){const _0x5c6207=_0x440328[_0x46a4dc];if(_0x5c6207===undefined||(_0x5c6207&0xc0)!==0x80)break;_0x46a4dc-=0x1;}return _0x440328[_0x24b523(0x148)](0x0,_0x46a4dc)[_0x24b523(0x13b)](_0x24b523(0x130));}
1
+ const a82_0x27a94e=a82_0x1885;(function(_0x265061,_0x15b2ea){const _0x5a7878=a82_0x1885,_0x18d659=_0x265061();while(!![]){try{const _0x29d28d=-parseInt(_0x5a7878(0xf5))/0x1*(-parseInt(_0x5a7878(0xf2))/0x2)+parseInt(_0x5a7878(0xfd))/0x3+parseInt(_0x5a7878(0x107))/0x4*(parseInt(_0x5a7878(0xf4))/0x5)+-parseInt(_0x5a7878(0xf9))/0x6+-parseInt(_0x5a7878(0xfc))/0x7+parseInt(_0x5a7878(0x103))/0x8+parseInt(_0x5a7878(0x10e))/0x9*(-parseInt(_0x5a7878(0xfb))/0xa);if(_0x29d28d===_0x15b2ea)break;else _0x18d659['push'](_0x18d659['shift']());}catch(_0x490320){_0x18d659['push'](_0x18d659['shift']());}}}(a82_0x26e6,0xe2b86));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x27a94e(0xf3),REDACTION_RULES=[{'kind':a82_0x27a94e(0xfa),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x27a94e(0xf7)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x27a94e(0x10d)},{'kind':a82_0x27a94e(0x10a),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x27a94e(0xf6)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x27a94e(0x10b)},{'kind':a82_0x27a94e(0xfe),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x27a94e(0x102)},{'kind':a82_0x27a94e(0x101),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];function a82_0x1885(_0x5001d1,_0x51d4d0){_0x5001d1=_0x5001d1-0xf0;const _0x26e601=a82_0x26e6();let _0x188558=_0x26e601[_0x5001d1];return _0x188558;}export function sanitizeIssueDescription(_0x12f626){const _0x5848b6=a82_0x27a94e,_0x2cd9fb=Buffer[_0x5848b6(0xf8)](_0x12f626,_0x5848b6(0x10c)),_0x191609=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x143984=_0x12f626,_0x5b88f8=0x0;const _0x3b146a=[];if(!_0x191609)for(const _0x37e61b of REDACTION_RULES){let _0x27bb7a=0x0;_0x143984=_0x143984[_0x5848b6(0xff)](_0x37e61b[_0x5848b6(0x109)],(_0x4d77d1,_0x10732)=>{const _0xf70e8a=_0x5848b6;_0x27bb7a+=0x1;const _0x4e4cae=typeof _0x10732===_0xf70e8a(0x100)?_0x10732:'';return _0x4e4cae+'['+_0x37e61b['label']+']';}),_0x27bb7a>0x0&&(_0x5b88f8+=_0x27bb7a,!_0x3b146a[_0x5848b6(0xf1)](_0x37e61b[_0x5848b6(0xf0)])&&_0x3b146a[_0x5848b6(0x105)](_0x37e61b['kind']));}let _0x50f75d=![];if(Buffer[_0x5848b6(0xf8)](_0x143984,_0x5848b6(0x10c))>ISSUE_DESCRIPTION_MAX_BYTES){_0x50f75d=!![];const _0x1477fc=Buffer[_0x5848b6(0xf8)](TRUNCATION_NOTICE,_0x5848b6(0x10c)),_0x1947dd=Math[_0x5848b6(0x104)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x1477fc);_0x143984=sliceUtf8Bytes(_0x143984,_0x1947dd)+TRUNCATION_NOTICE;}return{'description':_0x143984,'originalBytes':_0x2cd9fb,'truncated':_0x50f75d,'redactionCount':_0x5b88f8,'redactionKinds':_0x3b146a};}function a82_0x26e6(){const _0xe83571=['1574thSMby','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','3099080Qkmotq','2291BRgbxt','REDACTED:private-key','REDACTED:cookie','byteLength','7806204ZXPbTG','cookie','30THrdDF','11250925uOAqgt','5174316kDiNSu','password','replace','string','bearer-jwt','REDACTED:password','5931304wnsxwt','max','push','subarray','8Qfvzkh','toString','pattern','private-key','REDACTED:access-key','utf8','REDACTED:authorization','5015637gwRjBM','kind','includes'];a82_0x26e6=function(){return _0xe83571;};return a82_0x26e6();}function sliceUtf8Bytes(_0x32191f,_0x1e7edf){const _0x498196=a82_0x27a94e;if(_0x1e7edf<=0x0)return'';const _0x101b9b=Buffer['from'](_0x32191f,'utf8');if(_0x101b9b[_0x498196(0xf8)]<=_0x1e7edf)return _0x32191f;let _0x24460d=_0x1e7edf;while(_0x24460d>0x0){const _0x34586b=_0x101b9b[_0x24460d];if(_0x34586b===undefined||(_0x34586b&0xc0)!==0x80)break;_0x24460d-=0x1;}return _0x101b9b[_0x498196(0x106)](0x0,_0x24460d)[_0x498196(0x108)](_0x498196(0x10c));}
@@ -1 +1 @@
1
- const a83_0x2dda86=a83_0x3c9b;function a83_0x4e05(){const _0x1d39b8=['clearLogs','write','90664uKbDiz','View\x20command\x20history\x20logs','timestamp','*\x20No\x20logs\x20found','level','en-US','message','906AfdUkK','49yMazha','clear','*\x20Lovrabet\x20CLI\x20logs:\x0a','warn','keys','stringify','length','\x20\x20\x20Duration:\x20','forEach','log','305tsVDUP','4137270eSSSUk','show','*\x20Logs\x20cleared','logs','toLocaleString','3900408ggcKrg','\x20\x20\x20Time:\x20','56360843PLNvmn','90IiUAbG','command','3116cocPdc','1300130Nbuzai','details','read','27928utRnZD','\x20\x20\x20Details:\x20','duration'];a83_0x4e05=function(){return _0x1d39b8;};return a83_0x4e05();}(function(_0x3780d1,_0x51ac86){const _0x1e2c93=a83_0x3c9b,_0x28fe78=_0x3780d1();while(!![]){try{const _0x301fa9=parseInt(_0x1e2c93(0x1ad))/0x1*(-parseInt(_0x1e2c93(0x19d))/0x2)+-parseInt(_0x1e2c93(0x193))/0x3+parseInt(_0x1e2c93(0x1a1))/0x4*(parseInt(_0x1e2c93(0x192))/0x5)+-parseInt(_0x1e2c93(0x198))/0x6+parseInt(_0x1e2c93(0x1ae))/0x7*(-parseInt(_0x1e2c93(0x1a6))/0x8)+-parseInt(_0x1e2c93(0x19b))/0x9*(parseInt(_0x1e2c93(0x19e))/0xa)+parseInt(_0x1e2c93(0x19a))/0xb;if(_0x301fa9===_0x51ac86)break;else _0x28fe78['push'](_0x28fe78['shift']());}catch(_0x55e7d5){_0x28fe78['push'](_0x28fe78['shift']());}}}(a83_0x4e05,0xb2168));import{logger}from'../../utils/logger.js';function printLogs(_0x2eb743){const _0x1c738f=a83_0x3c9b;if(_0x2eb743[_0x1c738f(0x18e)]===0x0){console[_0x1c738f(0x191)](_0x1c738f(0x1a9));return;}console[_0x1c738f(0x191)](_0x1c738f(0x18a)),_0x2eb743[_0x1c738f(0x190)]((_0x4528e9,_0x15d2fa)=>{const _0x3bf3d1=_0x1c738f,_0x28c9db=new Date(_0x4528e9[_0x3bf3d1(0x1a8)])[_0x3bf3d1(0x197)](_0x3bf3d1(0x1ab)),_0x5e89b6=_0x4528e9[_0x3bf3d1(0x1aa)]==='success'?'√':_0x4528e9[_0x3bf3d1(0x1aa)]==='error'?'×':_0x4528e9[_0x3bf3d1(0x1aa)]===_0x3bf3d1(0x18b)?'!':'i';console[_0x3bf3d1(0x191)](_0x15d2fa+0x1+'.\x20'+_0x5e89b6+'\x20['+_0x4528e9[_0x3bf3d1(0x19c)]+']\x20'+_0x4528e9[_0x3bf3d1(0x1ac)]),console['log'](_0x3bf3d1(0x199)+_0x28c9db),_0x4528e9['duration']&&console[_0x3bf3d1(0x191)](_0x3bf3d1(0x18f)+_0x4528e9[_0x3bf3d1(0x1a3)]+'ms'),_0x4528e9[_0x3bf3d1(0x19f)]&&Object[_0x3bf3d1(0x18c)](_0x4528e9[_0x3bf3d1(0x19f)])[_0x3bf3d1(0x18e)]>0x0&&console[_0x3bf3d1(0x191)](_0x3bf3d1(0x1a2)+JSON[_0x3bf3d1(0x18d)](_0x4528e9['details'],null,0x2)),console[_0x3bf3d1(0x191)]('');});}function a83_0x3c9b(_0x304455,_0x361861){_0x304455=_0x304455-0x189;const _0x4e05c=a83_0x4e05();let _0x3c9b94=_0x4e05c[_0x304455];return _0x3c9b94;}export const logsDefinitions=[{'service':a83_0x2dda86(0x196),'command':a83_0x2dda86(0x194),'description':a83_0x2dda86(0x1a7),'risk':a83_0x2dda86(0x1a0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x39464f){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a83_0x2dda86(0x196),'command':a83_0x2dda86(0x189),'description':'Clear\x20command\x20history\x20logs','risk':a83_0x2dda86(0x1a5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2bf35d){const _0x121409=a83_0x2dda86;return logger[_0x121409(0x1a4)](),console['log'](_0x121409(0x195)),{'ok':!![]};}}];
1
+ function a83_0x310f(){const _0x351ac3=['760016nAnwOd','log','toLocaleString','\x20\x20\x20Duration:\x20','timestamp','1303644AGmiXv','Clear\x20command\x20history\x20logs','keys','21BtUpkP','logs','stringify','*\x20No\x20logs\x20found','5242293HLIQtE','190VKNUZK','readLogs','\x20\x20\x20Time:\x20','97684aTvOPu','*\x20Logs\x20cleared','write','warn','120060tFRXkY','1dyFBlm','details','duration','read','success','*\x20Lovrabet\x20CLI\x20logs:\x0a','2152232dQisPu','clearLogs','en-US','level','18387430wZGBYT','clear'];a83_0x310f=function(){return _0x351ac3;};return a83_0x310f();}const a83_0x1bbc2d=a83_0x538d;(function(_0x21e228,_0x395a57){const _0x45c1be=a83_0x538d,_0x1699f3=_0x21e228();while(!![]){try{const _0x127ee2=parseInt(_0x45c1be(0x17f))/0x1*(-parseInt(_0x45c1be(0x18b))/0x2)+-parseInt(_0x45c1be(0x190))/0x3+parseInt(_0x45c1be(0x19b))/0x4*(parseInt(_0x45c1be(0x198))/0x5)+-parseInt(_0x45c1be(0x19f))/0x6+-parseInt(_0x45c1be(0x193))/0x7*(parseInt(_0x45c1be(0x185))/0x8)+-parseInt(_0x45c1be(0x197))/0x9+parseInt(_0x45c1be(0x189))/0xa;if(_0x127ee2===_0x395a57)break;else _0x1699f3['push'](_0x1699f3['shift']());}catch(_0x1ac066){_0x1699f3['push'](_0x1699f3['shift']());}}}(a83_0x310f,0x84793));import{logger}from'../../utils/logger.js';function a83_0x538d(_0x21a762,_0x4abe02){_0x21a762=_0x21a762-0x17f;const _0x310f85=a83_0x310f();let _0x538da1=_0x310f85[_0x21a762];return _0x538da1;}function printLogs(_0x1af871){const _0x2ac6d7=a83_0x538d;if(_0x1af871['length']===0x0){console[_0x2ac6d7(0x18c)](_0x2ac6d7(0x196));return;}console[_0x2ac6d7(0x18c)](_0x2ac6d7(0x184)),_0x1af871['forEach']((_0xcaf7e3,_0x4edf8d)=>{const _0x3cd4ed=_0x2ac6d7,_0x59e17a=new Date(_0xcaf7e3[_0x3cd4ed(0x18f)])[_0x3cd4ed(0x18d)](_0x3cd4ed(0x187)),_0x2508e7=_0xcaf7e3[_0x3cd4ed(0x188)]===_0x3cd4ed(0x183)?'√':_0xcaf7e3['level']==='error'?'×':_0xcaf7e3[_0x3cd4ed(0x188)]===_0x3cd4ed(0x19e)?'!':'i';console['log'](_0x4edf8d+0x1+'.\x20'+_0x2508e7+'\x20['+_0xcaf7e3['command']+']\x20'+_0xcaf7e3['message']),console[_0x3cd4ed(0x18c)](_0x3cd4ed(0x19a)+_0x59e17a),_0xcaf7e3[_0x3cd4ed(0x181)]&&console['log'](_0x3cd4ed(0x18e)+_0xcaf7e3[_0x3cd4ed(0x181)]+'ms'),_0xcaf7e3['details']&&Object[_0x3cd4ed(0x192)](_0xcaf7e3['details'])['length']>0x0&&console[_0x3cd4ed(0x18c)]('\x20\x20\x20Details:\x20'+JSON[_0x3cd4ed(0x195)](_0xcaf7e3[_0x3cd4ed(0x180)],null,0x2)),console[_0x3cd4ed(0x18c)]('');});}export const logsDefinitions=[{'service':a83_0x1bbc2d(0x194),'command':'show','description':'View\x20command\x20history\x20logs','risk':a83_0x1bbc2d(0x182),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5d1394){const _0x3d7dfc=a83_0x1bbc2d;return printLogs(logger[_0x3d7dfc(0x199)]()),{'ok':!![]};}},{'service':a83_0x1bbc2d(0x194),'command':a83_0x1bbc2d(0x18a),'description':a83_0x1bbc2d(0x191),'risk':a83_0x1bbc2d(0x19d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x868bff){const _0x45a92f=a83_0x1bbc2d;return logger[_0x45a92f(0x186)](),console[_0x45a92f(0x18c)](_0x45a92f(0x19c)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a84_0x1859(_0x247d24,_0x4941d2){_0x247d24=_0x247d24-0x76;const _0x24d9ad=a84_0x24d9();let _0x185926=_0x24d9ad[_0x247d24];return _0x185926;}(function(_0x52d95d,_0x2b81cf){const _0x5b0ad1=a84_0x1859,_0x42064e=_0x52d95d();while(!![]){try{const _0x122b5d=-parseInt(_0x5b0ad1(0x7a))/0x1+parseInt(_0x5b0ad1(0x77))/0x2*(parseInt(_0x5b0ad1(0x80))/0x3)+parseInt(_0x5b0ad1(0x76))/0x4+-parseInt(_0x5b0ad1(0x7e))/0x5*(parseInt(_0x5b0ad1(0x79))/0x6)+parseInt(_0x5b0ad1(0x7d))/0x7*(-parseInt(_0x5b0ad1(0x7c))/0x8)+parseInt(_0x5b0ad1(0x7f))/0x9+parseInt(_0x5b0ad1(0x7b))/0xa*(parseInt(_0x5b0ad1(0x78))/0xb);if(_0x122b5d===_0x2b81cf)break;else _0x42064e['push'](_0x42064e['shift']());}catch(_0x5eea60){_0x42064e['push'](_0x42064e['shift']());}}}(a84_0x24d9,0xbe49c));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a84_0x24d9(){const _0x333615=['10652724UdDPnE','3RVAsiS','158060kaDUnN','100592HDsynh','1938343XeAwdE','440556tPGJIO','632420RmHVii','140pYNsnT','3304XdCYfa','23289JSyDeS','65fGjExx'];a84_0x24d9=function(){return _0x333615;};return a84_0x24d9();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x162451,_0x570d56){const _0x574511=a84_0x440f,_0x3043b1=_0x162451();while(!![]){try{const _0x27a434=parseInt(_0x574511(0xf1))/0x1+-parseInt(_0x574511(0xf2))/0x2+parseInt(_0x574511(0xec))/0x3+parseInt(_0x574511(0xed))/0x4+-parseInt(_0x574511(0xf3))/0x5*(parseInt(_0x574511(0xee))/0x6)+parseInt(_0x574511(0xef))/0x7*(-parseInt(_0x574511(0xf4))/0x8)+parseInt(_0x574511(0xf0))/0x9;if(_0x27a434===_0x570d56)break;else _0x3043b1['push'](_0x3043b1['shift']());}catch(_0x218dd4){_0x3043b1['push'](_0x3043b1['shift']());}}}(a84_0x1a23,0x2534c));function a84_0x1a23(){const _0x276752=['9025VymkcZ','466632QFDnHF','743883AYdKxP','1140324YTwSMe','378nuKUMN','35twYuwK','642060sspnwV','254688WBvBbF','602628hYOXJG'];a84_0x1a23=function(){return _0x276752;};return a84_0x1a23();}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x440f(_0x44e8e3,_0x4ee6e0){_0x44e8e3=_0x44e8e3-0xec;const _0x1a23e3=a84_0x1a23();let _0x440fea=_0x1a23e3[_0x44e8e3];return _0x440fea;}export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a85_0x5064f3=a85_0x35fb;(function(_0x3a2336,_0x28e4b0){const _0xceb99a=a85_0x35fb,_0xbc5b60=_0x3a2336();while(!![]){try{const _0x2adf01=parseInt(_0xceb99a(0xfc))/0x1+parseInt(_0xceb99a(0xe9))/0x2+parseInt(_0xceb99a(0xe2))/0x3*(-parseInt(_0xceb99a(0xef))/0x4)+-parseInt(_0xceb99a(0xde))/0x5*(parseInt(_0xceb99a(0xea))/0x6)+parseInt(_0xceb99a(0xe6))/0x7*(parseInt(_0xceb99a(0xf3))/0x8)+-parseInt(_0xceb99a(0xff))/0x9+parseInt(_0xceb99a(0xe1))/0xa;if(_0x2adf01===_0x28e4b0)break;else _0xbc5b60['push'](_0xbc5b60['shift']());}catch(_0x15b5e7){_0xbc5b60['push'](_0xbc5b60['shift']());}}}(a85_0x5d85,0xac11d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x5064f3(0xd8),'command':a85_0x5064f3(0xfb),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a85_0x5064f3(0xf2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x5064f3(0xda),'type':a85_0x5064f3(0xec),'description':a85_0x5064f3(0xdc)}],async 'execute'(_0xc91c0e){const _0x5f4175=a85_0x5064f3,_0x2ccd63=_0xc91c0e[_0x5f4175(0xdd)]('verbose'),_0x5e290a=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0xc91c0e['appCode'],{'cookie':_0xc91c0e[_0x5f4175(0xdb)],'label':_0x5f4175(0xeb)}),_0x12cc96=flattenMenuItems(Array[_0x5f4175(0xee)](_0x5e290a)?_0x5e290a:[],{'verbose':_0x2ccd63,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x12cc96[_0x5f4175(0xd9)],'menus':_0x12cc96},'message':_0x12cc96[_0x5f4175(0xd9)]===0x0?_0x5f4175(0xe0):_0x5f4175(0xe5)+_0x12cc96[_0x5f4175(0xd9)]+_0x5f4175(0xf1)};}};function a85_0x5d85(){const _0x56d076=['resources','visible','Found\x20','182tnedur','children','sort','1085076loNAFa','1285290rxPUoo','Fetch\x20menu\x20list','boolean','POSITIVE_INFINITY','isArray','268CtzbGo','extend','\x20menu(s)','read','386936pXoxdn','map','parse','push','string','path','item','number','list','111491sxAfhR','depth','index','5534793sLPLGS','label','type','menu','length','verbose','cookie','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','bool','30Gdckgp','isFinite','No\x20menus\x20found.','11054760BwIuhA','18447eSCgLg'];a85_0x5d85=function(){return _0x56d076;};return a85_0x5d85();}function flattenMenuItems(_0x327f12,_0x1790d3){const _0x45ab08=a85_0x5064f3,_0x306377=sortMenuItems(_0x327f12),_0x3a5ae1=[];for(const _0x5f3b8e of _0x306377){_0x3a5ae1[_0x45ab08(0xf6)](toMenuListItem(_0x5f3b8e,_0x1790d3)),Array[_0x45ab08(0xee)](_0x5f3b8e[_0x45ab08(0xe7)])&&_0x5f3b8e[_0x45ab08(0xe7)]['length']>0x0&&_0x3a5ae1['push'](...flattenMenuItems(_0x5f3b8e[_0x45ab08(0xe7)],{'verbose':_0x1790d3['verbose'],'parentId':_0x5f3b8e['id'],'depth':_0x1790d3[_0x45ab08(0xfd)]+0x1}));}return _0x3a5ae1;}function sortMenuItems(_0xe159a0){const _0x2903f9=a85_0x5064f3;return _0xe159a0['map']((_0x2c797c,_0x3843c3)=>({'item':_0x2c797c,'index':_0x3843c3}))['sort']((_0x46a2af,_0x51f846)=>{const _0x5c88fd=a85_0x35fb,_0x19378f=normalizeSort(_0x46a2af[_0x5c88fd(0xf9)][_0x5c88fd(0xe8)]),_0x5de742=normalizeSort(_0x51f846[_0x5c88fd(0xf9)][_0x5c88fd(0xe8)]);if(_0x19378f!==_0x5de742)return _0x19378f-_0x5de742;return _0x46a2af[_0x5c88fd(0xfe)]-_0x51f846[_0x5c88fd(0xfe)];})[_0x2903f9(0xf4)](({item:_0x69f735})=>_0x69f735);}function toMenuListItem(_0x1d528c,_0x5ac682){const _0x393dc1=a85_0x5064f3,_0x273267={'id':_0x1d528c['id'],'parentId':_0x5ac682['parentId'],'depth':_0x5ac682[_0x393dc1(0xfd)],'label':normalizeString(_0x1d528c[_0x393dc1(0xd6)]),'path':normalizeString(_0x1d528c[_0x393dc1(0xf8)]),'type':normalizeString(_0x1d528c[_0x393dc1(0xd7)]),'visible':typeof _0x1d528c[_0x393dc1(0xe4)]===_0x393dc1(0xec)?_0x1d528c[_0x393dc1(0xe4)]:null,'sort':typeof _0x1d528c[_0x393dc1(0xe8)]===_0x393dc1(0xfa)&&Number[_0x393dc1(0xdf)](_0x1d528c['sort'])?_0x1d528c[_0x393dc1(0xe8)]:null,'resources':normalizeResources(_0x1d528c[_0x393dc1(0xf0)]?.[_0x393dc1(0xe3)])};return _0x5ac682[_0x393dc1(0xda)]&&(_0x273267[_0x393dc1(0xf0)]=_0x1d528c['extend']??null),_0x273267;}function normalizeSort(_0xd377b3){const _0x45da38=a85_0x5064f3;return typeof _0xd377b3===_0x45da38(0xfa)&&Number[_0x45da38(0xdf)](_0xd377b3)?_0xd377b3:Number[_0x45da38(0xed)];}function normalizeString(_0x2b5f22){const _0x140ce2=a85_0x5064f3;return typeof _0x2b5f22===_0x140ce2(0xf7)?_0x2b5f22:'';}function a85_0x35fb(_0xbb95e8,_0x3cb958){_0xbb95e8=_0xbb95e8-0xd6;const _0x5d85b8=a85_0x5d85();let _0x35fbc1=_0x5d85b8[_0xbb95e8];return _0x35fbc1;}function normalizeResources(_0xf8344f){const _0x486e65=a85_0x5064f3;if(Array[_0x486e65(0xee)](_0xf8344f))return _0xf8344f['map'](String);if(typeof _0xf8344f!==_0x486e65(0xf7))return[];try{const _0xe9d242=JSON[_0x486e65(0xf5)](_0xf8344f);return Array[_0x486e65(0xee)](_0xe9d242)?_0xe9d242[_0x486e65(0xf4)](String):[];}catch{return[];}}
1
+ function a85_0x4831(){const _0x51048b=['1261757xpDAex','depth','81XvFHdl','No\x20menus\x20found.','item','274290IptkYz','4IFOEQD','parse','sort','push','isFinite','resources','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','/smartapi/menu/find?appCode=','492FRmwVP','Fetch\x20menu\x20list','isArray','extend','13431wsUWiF','length','menu','1091022OGpqAW','109204AoKBus','bool','parentId','label','verbose','3867FfJnkA','list','number','visible','string','36NIewhk','children','\x20menu(s)','1198112bximIl','map','5cZDmWo'];a85_0x4831=function(){return _0x51048b;};return a85_0x4831();}function a85_0x21b7(_0x8e4493,_0x4ab6d2){_0x8e4493=_0x8e4493-0x1eb;const _0x483106=a85_0x4831();let _0x21b7f0=_0x483106[_0x8e4493];return _0x21b7f0;}const a85_0x20b04c=a85_0x21b7;(function(_0x4f8aa5,_0x1b31fd){const _0x1ec029=a85_0x21b7,_0x528f89=_0x4f8aa5();while(!![]){try{const _0x39521f=-parseInt(_0x1ec029(0x1ff))/0x1*(-parseInt(_0x1ec029(0x1ef))/0x2)+-parseInt(_0x1ec029(0x204))/0x3*(parseInt(_0x1ec029(0x209))/0x4)+-parseInt(_0x1ec029(0x20e))/0x5*(parseInt(_0x1ec029(0x1fe))/0x6)+parseInt(_0x1ec029(0x20f))/0x7+parseInt(_0x1ec029(0x20c))/0x8+parseInt(_0x1ec029(0x1eb))/0x9*(-parseInt(_0x1ec029(0x1ee))/0xa)+parseInt(_0x1ec029(0x1fb))/0xb*(parseInt(_0x1ec029(0x1f7))/0xc);if(_0x39521f===_0x1b31fd)break;else _0x528f89['push'](_0x528f89['shift']());}catch(_0x51191e){_0x528f89['push'](_0x528f89['shift']());}}}(a85_0x4831,0x269e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a85_0x20b04c(0x1fd),'command':a85_0x20b04c(0x205),'description':a85_0x20b04c(0x1f5),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':'boolean','description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x4d4ab4){const _0xb1a0b7=a85_0x20b04c,_0x210026=_0x4d4ab4[_0xb1a0b7(0x200)](_0xb1a0b7(0x203)),_0x50f9b9=await platformFetch(getApiDomain()+_0xb1a0b7(0x1f6)+_0x4d4ab4['appCode'],{'cookie':_0x4d4ab4['cookie'],'label':_0xb1a0b7(0x1f8)}),_0x5d446c=flattenMenuItems(Array[_0xb1a0b7(0x1f9)](_0x50f9b9)?_0x50f9b9:[],{'verbose':_0x210026,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5d446c[_0xb1a0b7(0x1fc)],'menus':_0x5d446c},'message':_0x5d446c[_0xb1a0b7(0x1fc)]===0x0?_0xb1a0b7(0x1ec):'Found\x20'+_0x5d446c[_0xb1a0b7(0x1fc)]+_0xb1a0b7(0x20b)};}};function flattenMenuItems(_0x49b814,_0x3f357a){const _0x2a5073=a85_0x20b04c,_0x5c1864=sortMenuItems(_0x49b814),_0x218e43=[];for(const _0x449a93 of _0x5c1864){_0x218e43['push'](toMenuListItem(_0x449a93,_0x3f357a)),Array[_0x2a5073(0x1f9)](_0x449a93['children'])&&_0x449a93[_0x2a5073(0x20a)][_0x2a5073(0x1fc)]>0x0&&_0x218e43[_0x2a5073(0x1f2)](...flattenMenuItems(_0x449a93['children'],{'verbose':_0x3f357a[_0x2a5073(0x203)],'parentId':_0x449a93['id'],'depth':_0x3f357a[_0x2a5073(0x210)]+0x1}));}return _0x218e43;}function sortMenuItems(_0x262260){const _0x56e520=a85_0x20b04c;return _0x262260['map']((_0x3478fe,_0x38edd2)=>({'item':_0x3478fe,'index':_0x38edd2}))[_0x56e520(0x1f1)]((_0x255c7f,_0x4f3347)=>{const _0x204541=_0x56e520,_0xe9db4d=normalizeSort(_0x255c7f[_0x204541(0x1ed)][_0x204541(0x1f1)]),_0x189e9a=normalizeSort(_0x4f3347[_0x204541(0x1ed)][_0x204541(0x1f1)]);if(_0xe9db4d!==_0x189e9a)return _0xe9db4d-_0x189e9a;return _0x255c7f['index']-_0x4f3347['index'];})[_0x56e520(0x20d)](({item:_0x59d747})=>_0x59d747);}function toMenuListItem(_0xd55ce,_0x54269d){const _0xa55e1b=a85_0x20b04c,_0x393c52={'id':_0xd55ce['id'],'parentId':_0x54269d[_0xa55e1b(0x201)],'depth':_0x54269d[_0xa55e1b(0x210)],'label':normalizeString(_0xd55ce[_0xa55e1b(0x202)]),'path':normalizeString(_0xd55ce['path']),'type':normalizeString(_0xd55ce['type']),'visible':typeof _0xd55ce['visible']==='boolean'?_0xd55ce[_0xa55e1b(0x207)]:null,'sort':typeof _0xd55ce[_0xa55e1b(0x1f1)]===_0xa55e1b(0x206)&&Number[_0xa55e1b(0x1f3)](_0xd55ce[_0xa55e1b(0x1f1)])?_0xd55ce[_0xa55e1b(0x1f1)]:null,'resources':normalizeResources(_0xd55ce[_0xa55e1b(0x1fa)]?.[_0xa55e1b(0x1f4)])};return _0x54269d[_0xa55e1b(0x203)]&&(_0x393c52[_0xa55e1b(0x1fa)]=_0xd55ce[_0xa55e1b(0x1fa)]??null),_0x393c52;}function normalizeSort(_0xc811e){const _0x19f100=a85_0x20b04c;return typeof _0xc811e===_0x19f100(0x206)&&Number[_0x19f100(0x1f3)](_0xc811e)?_0xc811e:Number['POSITIVE_INFINITY'];}function normalizeString(_0x130068){const _0x49760d=a85_0x20b04c;return typeof _0x130068===_0x49760d(0x208)?_0x130068:'';}function normalizeResources(_0x58b096){const _0x443ea0=a85_0x20b04c;if(Array[_0x443ea0(0x1f9)](_0x58b096))return _0x58b096[_0x443ea0(0x20d)](String);if(typeof _0x58b096!==_0x443ea0(0x208))return[];try{const _0xaf314f=JSON[_0x443ea0(0x1f0)](_0x58b096);return Array[_0x443ea0(0x1f9)](_0xaf314f)?_0xaf314f['map'](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x48544c,_0x53d276){const _0x4cab17=a86_0x44c0,_0x15ad33=_0x48544c();while(!![]){try{const _0x3e3d33=-parseInt(_0x4cab17(0x1ee))/0x1*(-parseInt(_0x4cab17(0x1de))/0x2)+parseInt(_0x4cab17(0x1ec))/0x3+-parseInt(_0x4cab17(0x1dd))/0x4*(-parseInt(_0x4cab17(0x1d9))/0x5)+parseInt(_0x4cab17(0x1e3))/0x6+parseInt(_0x4cab17(0x1e7))/0x7*(parseInt(_0x4cab17(0x1f5))/0x8)+-parseInt(_0x4cab17(0x1e1))/0x9*(parseInt(_0x4cab17(0x1e0))/0xa)+-parseInt(_0x4cab17(0x1eb))/0xb;if(_0x3e3d33===_0x53d276)break;else _0x15ad33['push'](_0x15ad33['shift']());}catch(_0x4c7a76){_0x15ad33['push'](_0x15ad33['shift']());}}}(a86_0x40f0,0x630c3));function a86_0x44c0(_0xd7dcea,_0x36814a){_0xd7dcea=_0xd7dcea-0x1d9;const _0x40f072=a86_0x40f0();let _0x44c0a3=_0x40f072[_0xd7dcea];return _0x44c0a3;}function strWidth(_0x4492e3){const _0x2ac12c=a86_0x44c0;let _0x53d0a7=0x0;for(const _0x47a3ce of _0x4492e3){_0x53d0a7+=/[\u4e00-\u9fa5]/[_0x2ac12c(0x1f3)](_0x47a3ce)?0x2:0x1;}return _0x53d0a7;}function padRight(_0x103970,_0x40f7f6){const _0x49fbc8=a86_0x44c0,_0x24afbf=strWidth(_0x103970);return _0x103970+'\x20'[_0x49fbc8(0x1dc)](Math[_0x49fbc8(0x1e2)](0x0,_0x40f7f6-_0x24afbf));}function a86_0x40f0(){const _0x556f82=['48hSQfkt','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','30zPsXCN','963099npLWoh','max','3644802YBgGlk','Menu\x20Name','Local','\x20\x20\x20\x20•\x20','34181EKHPvt','(unchanged)','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','showOnline','19937258AACfnF','2343927QIZwtL','\x20\x20No\x20pages\x20to\x20sync.','26869uRqVeb','\x20\x20\x20\x20CSS:\x20','\x20\x20Affected\x20menus:\x20','push','join','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','488tPHDkw','length','online','label','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','25xSzkFI','Platform','local','repeat','166172pKDYeh'];a86_0x40f0=function(){return _0x556f82;};return a86_0x40f0();}export function renderCompareTable(_0x31e6e0,_0x5d710c={}){const _0x4f3f33=a86_0x44c0;if(_0x31e6e0[_0x4f3f33(0x1f6)]===0x0)return'';const _0x320b99=_0x5d710c[_0x4f3f33(0x1ea)]??!![],_0x49a947=Math[_0x4f3f33(0x1e2)](0x1e,..._0x31e6e0['map'](_0xd020a4=>strWidth(_0xd020a4[_0x4f3f33(0x1f8)]))),_0x5ea970=0x4,_0xcbca56=[],_0x16c144='\x20\x20'+padRight(_0x4f3f33(0x1e4),_0x49a947),_0x6f142=padRight(_0x4f3f33(0x1e5),_0x5ea970),_0x10375e=_0x320b99?'\x20\x20'+padRight(_0x4f3f33(0x1da),_0x5ea970):'';_0xcbca56['push'](_0x16c144+'\x20\x20'+_0x6f142+(_0x320b99?_0x10375e:'')),_0xcbca56[_0x4f3f33(0x1f1)]('\x20\x20'+'─'[_0x4f3f33(0x1dc)](_0x49a947)+'\x20\x20'+'─'[_0x4f3f33(0x1dc)](_0x5ea970)+(_0x320b99?'\x20\x20'+'─'[_0x4f3f33(0x1dc)](_0x5ea970):''));for(const _0x4d6cd4 of _0x31e6e0){const _0x55c1ae=padRight(_0x4d6cd4[_0x4f3f33(0x1f8)],_0x49a947),_0x102413=_0x4d6cd4[_0x4f3f33(0x1db)]?'✓':'✗',_0x4f5f51=padRight(_0x102413,_0x5ea970);let _0x8663e3='\x20\x20'+_0x55c1ae+'\x20\x20'+_0x4f5f51;if(_0x320b99){const _0x2b6337=_0x4d6cd4[_0x4f3f33(0x1f7)]?'✓':'✗';_0x8663e3+='\x20\x20'+padRight(_0x2b6337,_0x5ea970);}_0xcbca56[_0x4f3f33(0x1f1)](_0x8663e3);}return _0xcbca56[_0x4f3f33(0x1f2)]('\x0a');}export function renderSyncSummary(_0x14e5ae,_0x1f63b4){const _0x1e44cb=a86_0x44c0;if(_0x14e5ae[_0x1e44cb(0x1f6)]===0x0)return _0x1f63b4?_0x1e44cb(0x1e9):_0x1e44cb(0x1ed);const _0x156f47=['\x20\x20'+_0x14e5ae['length']+_0x1e44cb(0x1f4)];for(const _0x59dddd of _0x14e5ae){_0x156f47[_0x1e44cb(0x1f1)](_0x1e44cb(0x1e6)+_0x59dddd[_0x1e44cb(0x1f8)]+'\x20('+_0x59dddd['path']+')');}return _0x156f47[_0x1e44cb(0x1f2)]('\x0a');}export function renderUpdateSummary(_0x249832,_0x900f43){const _0x3d24cd=a86_0x44c0;if(_0x249832['length']===0x0)return _0x3d24cd(0x1df);const _0x1d9045=['\x20\x20'+_0x249832['length']+_0x3d24cd(0x1f9),'\x20\x20\x20\x20JS:\x20\x20'+(_0x900f43[0x0]??_0x3d24cd(0x1e8)),_0x3d24cd(0x1ef)+(_0x900f43[0x1]??_0x3d24cd(0x1e8)),'',_0x3d24cd(0x1f0)+_0x249832[_0x3d24cd(0x1f2)](',\x20')];return _0x1d9045[_0x3d24cd(0x1f2)]('\x0a');}
1
+ (function(_0x48ea65,_0x24ebb4){const _0x3a8550=a86_0x1e1d,_0xe2da50=_0x48ea65();while(!![]){try{const _0x2ea959=-parseInt(_0x3a8550(0xab))/0x1+-parseInt(_0x3a8550(0x98))/0x2*(-parseInt(_0x3a8550(0x9d))/0x3)+parseInt(_0x3a8550(0xac))/0x4+parseInt(_0x3a8550(0xa4))/0x5*(-parseInt(_0x3a8550(0xa9))/0x6)+parseInt(_0x3a8550(0xa0))/0x7*(parseInt(_0x3a8550(0x91))/0x8)+parseInt(_0x3a8550(0x9c))/0x9*(parseInt(_0x3a8550(0x9b))/0xa)+parseInt(_0x3a8550(0x93))/0xb;if(_0x2ea959===_0x24ebb4)break;else _0xe2da50['push'](_0xe2da50['shift']());}catch(_0x449580){_0xe2da50['push'](_0xe2da50['shift']());}}}(a86_0x1e2f,0x292a3));function strWidth(_0x11f774){const _0x1936d4=a86_0x1e1d;let _0x4fce3f=0x0;for(const _0x540507 of _0x11f774){_0x4fce3f+=/[\u4e00-\u9fa5]/[_0x1936d4(0xaa)](_0x540507)?0x2:0x1;}return _0x4fce3f;}function a86_0x1e2f(){const _0x476ffa=['label','160sSLcYR','map','1236312JlGQts','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20CSS:\x20','push','362BYBkup','repeat','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','10yGYUDt','1431261AESJGB','72xGnqfv','length','Local','39494mMIecs','online','max','showOnline','10OEJZsX','join','path','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Platform','798594BHbHdp','test','85071yyPtwU','525100uCUHFC'];a86_0x1e2f=function(){return _0x476ffa;};return a86_0x1e2f();}function padRight(_0x1e4eb9,_0x555ac5){const _0x54e3c0=a86_0x1e1d,_0x46372a=strWidth(_0x1e4eb9);return _0x1e4eb9+'\x20'[_0x54e3c0(0x99)](Math['max'](0x0,_0x555ac5-_0x46372a));}function a86_0x1e1d(_0x3b83d4,_0x2c0cca){_0x3b83d4=_0x3b83d4-0x90;const _0x1e2fcc=a86_0x1e2f();let _0x1e1db4=_0x1e2fcc[_0x3b83d4];return _0x1e1db4;}export function renderCompareTable(_0x595fa3,_0x32157c={}){const _0x5d572d=a86_0x1e1d;if(_0x595fa3['length']===0x0)return'';const _0x4f6453=_0x32157c[_0x5d572d(0xa3)]??!![],_0x26896e=Math[_0x5d572d(0xa2)](0x1e,..._0x595fa3[_0x5d572d(0x92)](_0x472f37=>strWidth(_0x472f37[_0x5d572d(0x90)]))),_0xe67e87=0x4,_0x43a10d=[],_0x374129='\x20\x20'+padRight('Menu\x20Name',_0x26896e),_0x58a88f=padRight(_0x5d572d(0x9f),_0xe67e87),_0x15eb70=_0x4f6453?'\x20\x20'+padRight(_0x5d572d(0xa8),_0xe67e87):'';_0x43a10d[_0x5d572d(0x97)](_0x374129+'\x20\x20'+_0x58a88f+(_0x4f6453?_0x15eb70:'')),_0x43a10d[_0x5d572d(0x97)]('\x20\x20'+'─'['repeat'](_0x26896e)+'\x20\x20'+'─'['repeat'](_0xe67e87)+(_0x4f6453?'\x20\x20'+'─'['repeat'](_0xe67e87):''));for(const _0x333fe2 of _0x595fa3){const _0x89e473=padRight(_0x333fe2[_0x5d572d(0x90)],_0x26896e),_0x449371=_0x333fe2['local']?'✓':'✗',_0x296367=padRight(_0x449371,_0xe67e87);let _0x2ce58d='\x20\x20'+_0x89e473+'\x20\x20'+_0x296367;if(_0x4f6453){const _0x4dad5a=_0x333fe2[_0x5d572d(0xa1)]?'✓':'✗';_0x2ce58d+='\x20\x20'+padRight(_0x4dad5a,_0xe67e87);}_0x43a10d[_0x5d572d(0x97)](_0x2ce58d);}return _0x43a10d[_0x5d572d(0xa5)]('\x0a');}export function renderSyncSummary(_0x19d11e,_0x28aa3d){const _0xa4eed6=a86_0x1e1d;if(_0x19d11e[_0xa4eed6(0x9e)]===0x0)return _0x28aa3d?_0xa4eed6(0xa7):'\x20\x20No\x20pages\x20to\x20sync.';const _0x520ab7=['\x20\x20'+_0x19d11e[_0xa4eed6(0x9e)]+_0xa4eed6(0x9a)];for(const _0x922c28 of _0x19d11e){_0x520ab7['push']('\x20\x20\x20\x20•\x20'+_0x922c28[_0xa4eed6(0x90)]+'\x20('+_0x922c28[_0xa4eed6(0xa6)]+')');}return _0x520ab7[_0xa4eed6(0xa5)]('\x0a');}export function renderUpdateSummary(_0x5c42ce,_0x4e8018){const _0x15dd04=a86_0x1e1d;if(_0x5c42ce[_0x15dd04(0x9e)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x408fad=['\x20\x20'+_0x5c42ce[_0x15dd04(0x9e)]+_0x15dd04(0x94),'\x20\x20\x20\x20JS:\x20\x20'+(_0x4e8018[0x0]??'(unchanged)'),_0x15dd04(0x96)+(_0x4e8018[0x1]??'(unchanged)'),'',_0x15dd04(0x95)+_0x5c42ce[_0x15dd04(0xa5)](',\x20')];return _0x408fad[_0x15dd04(0xa5)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x22908e,_0x2e191b){var _0x2b25fe=a87_0x28d2,_0x4b45f3=_0x22908e();while(!![]){try{var _0x27db61=-parseInt(_0x2b25fe(0x11b))/0x1+parseInt(_0x2b25fe(0x11a))/0x2*(parseInt(_0x2b25fe(0x11e))/0x3)+-parseInt(_0x2b25fe(0x121))/0x4+parseInt(_0x2b25fe(0x11f))/0x5+-parseInt(_0x2b25fe(0x120))/0x6+-parseInt(_0x2b25fe(0x11d))/0x7*(parseInt(_0x2b25fe(0x119))/0x8)+parseInt(_0x2b25fe(0x11c))/0x9*(parseInt(_0x2b25fe(0x118))/0xa);if(_0x27db61===_0x2e191b)break;else _0x4b45f3['push'](_0x4b45f3['shift']());}catch(_0x15c5ad){_0x4b45f3['push'](_0x4b45f3['shift']());}}}(a87_0x1832,0x8f80d));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a87_0x28d2(_0x5bea09,_0x548ad){_0x5bea09=_0x5bea09-0x118;var _0x18325c=a87_0x1832();var _0x28d26d=_0x18325c[_0x5bea09];return _0x28d26d;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a87_0x1832(){var _0xca5fc7=['416759gjHVsP','27SFABTl','1218peVrvm','24LflEtu','4581620pWIfaa','5341698seXQSJ','1495032tPoFCn','4334270DRIXZy','37760FXyyRg','218316OeeHfl'];a87_0x1832=function(){return _0xca5fc7;};return a87_0x1832();}
1
+ (function(_0x5c6d78,_0x284d53){var _0x54ad10=a87_0x5a01,_0x2302e8=_0x5c6d78();while(!![]){try{var _0x4ddc44=-parseInt(_0x54ad10(0x16d))/0x1*(parseInt(_0x54ad10(0x172))/0x2)+-parseInt(_0x54ad10(0x173))/0x3+-parseInt(_0x54ad10(0x16c))/0x4+-parseInt(_0x54ad10(0x16f))/0x5*(-parseInt(_0x54ad10(0x171))/0x6)+-parseInt(_0x54ad10(0x174))/0x7+-parseInt(_0x54ad10(0x170))/0x8*(parseInt(_0x54ad10(0x16e))/0x9)+parseInt(_0x54ad10(0x16a))/0xa*(parseInt(_0x54ad10(0x16b))/0xb);if(_0x4ddc44===_0x284d53)break;else _0x2302e8['push'](_0x2302e8['shift']());}catch(_0x12cf23){_0x2302e8['push'](_0x2302e8['shift']());}}}(a87_0x4af3,0x1e42e));function a87_0x5a01(_0x4e2738,_0x404958){_0x4e2738=_0x4e2738-0x16a;var _0x4af379=a87_0x4af3();var _0x5a016f=_0x4af379[_0x4e2738];return _0x5a016f;}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 a87_0x4af3(){var _0x3f174a=['2100527RWWgCk','830028MBwYbp','14huEXkH','362214UfUgND','10WvNlwf','32yUHBmn','275874rYeCgQ','19718paIjMm','19911GQxzIr','1530774oVfvcq','40ZOFqpU'];a87_0x4af3=function(){return _0x3f174a;};return a87_0x4af3();}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(_0x3a5e04,_0x263f53){const _0x7d4b5=a88_0x59b9,_0x1fafc7=_0x3a5e04();while(!![]){try{const _0xc5259c=parseInt(_0x7d4b5(0x86))/0x1+parseInt(_0x7d4b5(0x75))/0x2+parseInt(_0x7d4b5(0x7b))/0x3+-parseInt(_0x7d4b5(0x93))/0x4*(parseInt(_0x7d4b5(0x7e))/0x5)+-parseInt(_0x7d4b5(0x8b))/0x6+-parseInt(_0x7d4b5(0x95))/0x7+parseInt(_0x7d4b5(0x77))/0x8;if(_0xc5259c===_0x263f53)break;else _0x1fafc7['push'](_0x1fafc7['shift']());}catch(_0x2a77cd){_0x1fafc7['push'](_0x1fafc7['shift']());}}}(a88_0x295a,0x97c36));import a88_0x4daa68 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x29c111 from'ora';function a88_0x295a(){const _0x4e93a2=['has','[already\x20on\x20platform]','996815AreJbD','gray','catch','JS\x20URL\x20check\x20failed','\x20\x20Checking\x20JS\x20URL\x20reachability...','2403630VkzSdw','\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','test','red','path','succeed','JS\x20URL\x20checked','1532MmSgGm','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','7234710wYipDs','name','error','cancelled','filter','isTTY','355252FrpHWS','label','12924144UKKhXh','CSS\x20URL\x20checked','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cyan','947952wvcclx','fail','\x20\x20JS\x20URL:','13710ADhFOL','[new]','includes','start','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Cancelled.'];a88_0x295a=function(){return _0x4e93a2;};return a88_0x295a();}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x1ec436){const _0x2b0b40=a88_0x59b9;return _0x1ec436[_0x2b0b40(0x88)](_0x356705=>{const _0x5859b5=_0x2b0b40;if(_0x356705?.[_0x5859b5(0x70)]==='ExitPromptError')throw CliErrors[_0x5859b5(0x72)](_0x5859b5(0x83));throw _0x356705;});}export function startSpinner(_0x43435c){const _0x325f1a=a88_0x59b9;return a88_0x29c111({'text':_0x43435c,'color':_0x325f1a(0x7a)})[_0x325f1a(0x81)]();}export function stopSpinner(_0x5f5ae7,_0x9d05ba,_0x2afd42){const _0x132cc9=a88_0x59b9;_0x2afd42?_0x5f5ae7[_0x132cc9(0x91)](_0x9d05ba):_0x5f5ae7[_0x132cc9(0x7c)](_0x9d05ba);}export async function askConfirm(_0x4524f7){return onCancel(confirm({'message':_0x4524f7,'theme':{'prefix':''}}));}function a88_0x59b9(_0x391022,_0x35634a){_0x391022=_0x391022-0x70;const _0x295a9b=a88_0x295a();let _0x59b984=_0x295a9b[_0x391022];return _0x59b984;}export async function askJsUrl(_0x2639d8){const _0x1a99d3=a88_0x59b9;while(!![]){const _0x401f6f=await onCancel(input({'message':_0x1a99d3(0x7d),'default':_0x2639d8,'theme':{'prefix':''}}));if(_0x401f6f[_0x1a99d3(0x8d)]()==='')throw CliErrors[_0x1a99d3(0x72)](_0x1a99d3(0x83));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x1a99d3(0x8e)](_0x401f6f[_0x1a99d3(0x8d)]())){console[_0x1a99d3(0x71)](a88_0x4daa68[_0x1a99d3(0x8f)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x523c96=startSpinner(_0x1a99d3(0x8a));try{const _0x5caad8=await isUrlReachable(_0x401f6f['trim']());stopSpinner(_0x523c96,_0x1a99d3(0x92),_0x5caad8);if(!_0x5caad8){console[_0x1a99d3(0x71)](a88_0x4daa68[_0x1a99d3(0x8f)](_0x1a99d3(0x79)));continue;}return _0x401f6f['trim']();}catch(_0x2b2682){stopSpinner(_0x523c96,_0x1a99d3(0x89),![]);throw _0x2b2682;}}}export async function askCssUrl(_0x3c0ae4){const _0x5fa38e=a88_0x59b9;while(!![]){const _0xcba23d=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x3c0ae4,'theme':{'prefix':''}}));if(_0xcba23d[_0x5fa38e(0x8d)]()==='')throw CliErrors[_0x5fa38e(0x72)](_0x5fa38e(0x83));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0xcba23d['trim']())){console['error'](a88_0x4daa68[_0x5fa38e(0x8f)](_0x5fa38e(0x82)));continue;}const _0xedf9d5=startSpinner(_0x5fa38e(0x8c));try{const _0x53b54e=await isUrlReachable(_0xcba23d[_0x5fa38e(0x8d)]());stopSpinner(_0xedf9d5,_0x5fa38e(0x78),_0x53b54e);if(!_0x53b54e){console[_0x5fa38e(0x71)](a88_0x4daa68[_0x5fa38e(0x8f)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0xcba23d['trim']();}catch(_0x255e81){stopSpinner(_0xedf9d5,'CSS\x20URL\x20check\x20failed',![]);throw _0x255e81;}}}export async function selectPages(_0x290daa,_0x2fb597,_0x5ebb75){const _0x207d5c=a88_0x59b9,_0x4009b5=_0x290daa['map'](_0x163526=>({'name':_0x163526[_0x207d5c(0x76)]+'\x20\x20'+(_0x2fb597[_0x207d5c(0x84)](_0x163526[_0x207d5c(0x90)])?a88_0x4daa68[_0x207d5c(0x87)](_0x207d5c(0x85)):a88_0x4daa68['green'](_0x207d5c(0x7f))),'value':_0x163526[_0x207d5c(0x76)],'checked':_0x5ebb75?_0x5ebb75[_0x207d5c(0x80)](_0x163526[_0x207d5c(0x76)]):!_0x2fb597[_0x207d5c(0x84)](_0x163526[_0x207d5c(0x90)])}));if(_0x4009b5['length']===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x46558f=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x4009b5,'loop':![],'theme':{'prefix':''}}));if(_0x46558f['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x290daa[_0x207d5c(0x73)](_0x59c4d0=>_0x46558f['includes'](_0x59c4d0[_0x207d5c(0x76)]));}export function isInteractive(){const _0x33cb35=a88_0x59b9;return process['stdin'][_0x33cb35(0x74)]===!![];}export function requireInteractive(){const _0x121ee4=a88_0x59b9;if(!isInteractive())throw new Error(_0x121ee4(0x94)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
1
+ (function(_0x21916c,_0x2454de){const _0x5a396d=a88_0x5883,_0x50a5e7=_0x21916c();while(!![]){try{const _0x54a8a6=parseInt(_0x5a396d(0xda))/0x1*(-parseInt(_0x5a396d(0xe7))/0x2)+parseInt(_0x5a396d(0xca))/0x3*(-parseInt(_0x5a396d(0xd8))/0x4)+parseInt(_0x5a396d(0xde))/0x5*(-parseInt(_0x5a396d(0xc6))/0x6)+-parseInt(_0x5a396d(0xc3))/0x7*(parseInt(_0x5a396d(0xbd))/0x8)+parseInt(_0x5a396d(0xd9))/0x9*(parseInt(_0x5a396d(0xd5))/0xa)+parseInt(_0x5a396d(0xce))/0xb*(-parseInt(_0x5a396d(0xe8))/0xc)+parseInt(_0x5a396d(0xd4))/0xd;if(_0x54a8a6===_0x2454de)break;else _0x50a5e7['push'](_0x50a5e7['shift']());}catch(_0xe242a8){_0x50a5e7['push'](_0x50a5e7['shift']());}}}(a88_0x4945,0x37bb7));import a88_0x268252 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x1760ac from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2b1bd3){return _0x2b1bd3['catch'](_0x1b07be=>{const _0x48a017=a88_0x5883;if(_0x1b07be?.[_0x48a017(0xbc)]===_0x48a017(0xe4))throw CliErrors[_0x48a017(0xcc)](_0x48a017(0xbb));throw _0x1b07be;});}export function startSpinner(_0xf96d6){const _0x2d26af=a88_0x5883;return a88_0x1760ac({'text':_0xf96d6,'color':_0x2d26af(0xdc)})[_0x2d26af(0xdd)]();}export function stopSpinner(_0x55c748,_0x5382f8,_0x194660){const _0x1829dc=a88_0x5883;_0x194660?_0x55c748[_0x1829dc(0xe3)](_0x5382f8):_0x55c748[_0x1829dc(0xc4)](_0x5382f8);}export async function askConfirm(_0x4c8c3e){return onCancel(confirm({'message':_0x4c8c3e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5a66d6){const _0x459fc4=a88_0x5883;while(!![]){const _0x1aee73=await onCancel(input({'message':_0x459fc4(0xdb),'default':_0x5a66d6,'theme':{'prefix':''}}));if(_0x1aee73[_0x459fc4(0xbf)]()==='')throw CliErrors[_0x459fc4(0xcc)](_0x459fc4(0xbb));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x459fc4(0xe5)](_0x1aee73[_0x459fc4(0xbf)]())){console[_0x459fc4(0xc8)](a88_0x268252[_0x459fc4(0xcf)](_0x459fc4(0xd2)));continue;}const _0x2738a5=startSpinner(_0x459fc4(0xc7));try{const _0x3790fa=await isUrlReachable(_0x1aee73[_0x459fc4(0xbf)]());stopSpinner(_0x2738a5,_0x459fc4(0xe1),_0x3790fa);if(!_0x3790fa){console[_0x459fc4(0xc8)](a88_0x268252[_0x459fc4(0xcf)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x1aee73[_0x459fc4(0xbf)]();}catch(_0x3911ec){stopSpinner(_0x2738a5,_0x459fc4(0xe2),![]);throw _0x3911ec;}}}function a88_0x4945(){const _0x265ec6=['path','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','11138010LjkoqF','59890hOINJe','has','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','104fqbyUL','198HiguVZ','207099JNFgxM','\x20\x20JS\x20URL:','cyan','start','763105ZlJLZG','isTTY','includes','JS\x20URL\x20checked','JS\x20URL\x20check\x20failed','succeed','ExitPromptError','test','[new]','2sXWVca','60NNaveG','length','Cancelled.','name','2936WjKwOt','gray','trim','green','stdin','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','98DhbxJd','fail','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','6xaForm','\x20\x20Checking\x20JS\x20URL\x20reachability...','error','CSS\x20URL\x20check\x20failed','35493FdSbpt','map','cancelled','label','193127lhlWjG','red','No\x20menus\x20selected.'];a88_0x4945=function(){return _0x265ec6;};return a88_0x4945();}function a88_0x5883(_0x5e7508,_0xa51b39){_0x5e7508=_0x5e7508-0xba;const _0x4945c7=a88_0x4945();let _0x5883ef=_0x4945c7[_0x5e7508];return _0x5883ef;}export async function askCssUrl(_0x4542d6){const _0x568d0d=a88_0x5883;while(!![]){const _0x4a52f1=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x4542d6,'theme':{'prefix':''}}));if(_0x4a52f1[_0x568d0d(0xbf)]()==='')throw CliErrors[_0x568d0d(0xcc)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x4a52f1[_0x568d0d(0xbf)]())){console[_0x568d0d(0xc8)](a88_0x268252[_0x568d0d(0xcf)](_0x568d0d(0xd3)));continue;}const _0x37defe=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x404015=await isUrlReachable(_0x4a52f1[_0x568d0d(0xbf)]());stopSpinner(_0x37defe,'CSS\x20URL\x20checked',_0x404015);if(!_0x404015){console['error'](a88_0x268252[_0x568d0d(0xcf)](_0x568d0d(0xc5)));continue;}return _0x4a52f1['trim']();}catch(_0x1717d5){stopSpinner(_0x37defe,_0x568d0d(0xc9),![]);throw _0x1717d5;}}}export async function selectPages(_0xb63cd,_0x2f84c7,_0x575065){const _0xb3e4c2=a88_0x5883,_0x2bd12d=_0xb63cd[_0xb3e4c2(0xcb)](_0x211a92=>({'name':_0x211a92['label']+'\x20\x20'+(_0x2f84c7[_0xb3e4c2(0xd6)](_0x211a92['path'])?a88_0x268252[_0xb3e4c2(0xbe)]('[already\x20on\x20platform]'):a88_0x268252[_0xb3e4c2(0xc0)](_0xb3e4c2(0xe6))),'value':_0x211a92[_0xb3e4c2(0xcd)],'checked':_0x575065?_0x575065[_0xb3e4c2(0xe0)](_0x211a92['label']):!_0x2f84c7[_0xb3e4c2(0xd6)](_0x211a92[_0xb3e4c2(0xd1)])}));if(_0x2bd12d[_0xb3e4c2(0xba)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x3850f8=await onCancel(checkbox({'message':_0xb3e4c2(0xd7),'choices':_0x2bd12d,'loop':![],'theme':{'prefix':''}}));if(_0x3850f8[_0xb3e4c2(0xba)]===0x0)throw new Error(_0xb3e4c2(0xd0));return _0xb63cd['filter'](_0x57b684=>_0x3850f8['includes'](_0x57b684[_0xb3e4c2(0xcd)]));}export function isInteractive(){const _0x447551=a88_0x5883;return process[_0x447551(0xc1)][_0x447551(0xdf)]===!![];}export function requireInteractive(){const _0x43ab86=a88_0x5883;if(!isInteractive())throw new Error(_0x43ab86(0xc2)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}