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

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 -0
  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(_0x3aaba2,_0x4f2429){const _0x5046fe=a73_0x2b52,_0x547448=_0x3aaba2();while(!![]){try{const _0x433582=-parseInt(_0x5046fe(0xbf))/0x1*(parseInt(_0x5046fe(0xd2))/0x2)+parseInt(_0x5046fe(0xbe))/0x3+-parseInt(_0x5046fe(0xc4))/0x4+parseInt(_0x5046fe(0xce))/0x5+parseInt(_0x5046fe(0xd3))/0x6+-parseInt(_0x5046fe(0xd4))/0x7+-parseInt(_0x5046fe(0xc3))/0x8*(-parseInt(_0x5046fe(0xbc))/0x9);if(_0x433582===_0x4f2429)break;else _0x547448['push'](_0x547448['shift']());}catch(_0x120dca){_0x547448['push'](_0x547448['shift']());}}}(a73_0x24ba,0x3933e));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0xf22146){const _0x101d47=a73_0x2b52,_0x270fbd=_0xf22146[_0x101d47(0xcf)]();if(_0x270fbd===_0x101d47(0xd0)||_0x270fbd===_0x101d47(0xcc)||_0x270fbd===_0x101d47(0xbb))return!![];if(_0x270fbd[_0x101d47(0xc5)]('secret')||_0x270fbd[_0x101d47(0xc5)]('token')||_0x270fbd[_0x101d47(0xc5)](_0x101d47(0xc6)))return!![];if(_0x270fbd[_0x101d47(0xc5)](_0x101d47(0xc8))||_0x270fbd[_0x101d47(0xc5)]('accesskey'))return!![];if(_0x270fbd===_0x101d47(0xc9)||_0x270fbd==='connectionstring'||_0x270fbd===_0x101d47(0xc0))return!![];return![];}function a73_0x2b52(_0x1298d1,_0x342548){_0x1298d1=_0x1298d1-0xbb;const _0x24baf5=a73_0x24ba();let _0x2b525f=_0x24baf5[_0x1298d1];return _0x2b525f;}export function sanitizeDbLinkForOutput(_0x461ae3){const _0x54a1a5=a73_0x2b52,_0x5bb94b={..._0x461ae3};for(const _0x13b605 of Object['keys'](_0x5bb94b)){if(!shouldRedactKey(_0x13b605))continue;const _0x2f9c32=_0x5bb94b[_0x13b605];_0x2f9c32!=null&&String(_0x2f9c32)[_0x54a1a5(0xc1)]>0x0&&(_0x5bb94b[_0x13b605]=_0x54a1a5(0xca));}return _0x5bb94b;}export function sanitizeDbLinkList(_0x4f7832){const _0x20bd1c=a73_0x2b52;return _0x4f7832[_0x20bd1c(0xc2)](_0xe47735=>sanitizeDbLinkForOutput(_0xe47735));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5b4f7b){const _0x4ac008=a73_0x2b52,_0x35d77f=_0x5b4f7b['trim']();if(!_0x35d77f)return![];return DB_URL_PATTERN[_0x4ac008(0xd1)](_0x35d77f);}export function buildDbPageLinks(_0x42b12b,_0x202025){const _0x2535eb=a73_0x2b52,_0x2132a5=_0x42b12b?.[_0x2535eb(0xcd)]();if(!_0x2132a5)return undefined;const _0x5c3482=typeof _0x202025==='number'?String(_0x202025):String(_0x202025??'')['trim']();if(!_0x5c3482)return undefined;const _0x29123e=Number(_0x5c3482);if(!Number[_0x2535eb(0xc7)](_0x29123e)||_0x29123e<=0x0)return undefined;const _0x44450e=getAppBaseUrl(_0x2132a5),_0x4e757c=encodeURIComponent(String(_0x29123e));return{'databasePage':_0x44450e+_0x2535eb(0xbd),'erPage':_0x44450e+_0x2535eb(0xcb)+_0x4e757c};}function a73_0x24ba(){const _0x85dc4=['test','6yuTNPM','692874intlTo','2712500kfqgOg','dbpassword','1515069fOXUOT','/data/database','941655LMNrxr','125619EeoLNV','jdbcurl','length','map','24vqkiUe','48744HjnFoH','includes','credential','isFinite','privatekey','authorization','[redacted]','/data/er?dbId=','passwd','trim','382290WOSoik','toLowerCase','password'];a73_0x24ba=function(){return _0x85dc4;};return a73_0x24ba();}
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 +1 @@
1
- const a74_0x19d8fa=a74_0x2bca;(function(_0x1c9c3b,_0x45988e){const _0x43f631=a74_0x2bca,_0x30b4bc=_0x1c9c3b();while(!![]){try{const _0xc792bc=-parseInt(_0x43f631(0xc8))/0x1*(parseInt(_0x43f631(0xcc))/0x2)+-parseInt(_0x43f631(0xcf))/0x3*(parseInt(_0x43f631(0xd5))/0x4)+parseInt(_0x43f631(0xce))/0x5*(parseInt(_0x43f631(0xd3))/0x6)+-parseInt(_0x43f631(0xd1))/0x7*(-parseInt(_0x43f631(0xc9))/0x8)+parseInt(_0x43f631(0xcd))/0x9*(parseInt(_0x43f631(0xc7))/0xa)+parseInt(_0x43f631(0xd6))/0xb+parseInt(_0x43f631(0xd2))/0xc;if(_0xc792bc===_0x45988e)break;else _0x30b4bc['push'](_0x30b4bc['shift']());}catch(_0x3ba63a){_0x30b4bc['push'](_0x30b4bc['shift']());}}}(a74_0x2c7d,0x864ef));function a74_0x2bca(_0x66ae3e,_0x3a62e8){_0x66ae3e=_0x66ae3e-0xc5;const _0x2c7d00=a74_0x2c7d();let _0x2bcad8=_0x2c7d00[_0x66ae3e];return _0x2bcad8;}function a74_0x2c7d(){const _0x2296be=['6922776hpNlQX','1918008PGzfvU','2114802mfUyWf','appCode','12480JYBIFr','5574745sTxtWs','length','tables','170hoFWcX','2kjIYil','8PzOPuy','\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','998428FAIoqz','258867nPJYKc','5yRZDzr','912YkTOrn','read'];a74_0x2c7d=function(){return _0x2296be;};return a74_0x2c7d();}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':a74_0x19d8fa(0xc6),'description':a74_0x19d8fa(0xcb),'risk':a74_0x19d8fa(0xd0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1dbb70){const _0xcc1399=a74_0x19d8fa,_0xcc1351=_0x1dbb70['num']('id'),_0x75806c=await getDbAllTableList(_0x1dbb70[_0xcc1399(0xd4)],_0xcc1351);return{'ok':!![],'data':{'dbLinkId':_0xcc1351,'total':_0x75806c[_0xcc1399(0xc5)],'tables':_0x75806c},'message':_0x75806c['length']+_0xcc1399(0xca)+_0xcc1351};}};
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 +1 @@
1
- function a75_0x5577(_0x300150,_0x1022c5){_0x300150=_0x300150-0xe0;const _0x29d524=a75_0x29d5();let _0x557740=_0x29d524[_0x300150];return _0x557740;}const a75_0x4a65ff=a75_0x5577;(function(_0x197fef,_0x2094b4){const _0x1bf5a1=a75_0x5577,_0x1fac97=_0x197fef();while(!![]){try{const _0x2df39c=-parseInt(_0x1bf5a1(0xef))/0x1+parseInt(_0x1bf5a1(0xe8))/0x2+-parseInt(_0x1bf5a1(0xe2))/0x3*(parseInt(_0x1bf5a1(0xed))/0x4)+-parseInt(_0x1bf5a1(0xf6))/0x5*(parseInt(_0x1bf5a1(0xf2))/0x6)+parseInt(_0x1bf5a1(0xf5))/0x7+-parseInt(_0x1bf5a1(0xec))/0x8*(parseInt(_0x1bf5a1(0xeb))/0x9)+parseInt(_0x1bf5a1(0xe9))/0xa*(parseInt(_0x1bf5a1(0xf8))/0xb);if(_0x2df39c===_0x2094b4)break;else _0x1fac97['push'](_0x1fac97['shift']());}catch(_0x4f4e0a){_0x1fac97['push'](_0x1fac97['shift']());}}}(a75_0x29d5,0x6764c));import{testDbLinkConnect}from'../../core/api-client.js';function a75_0x29d5(){const _0x172ab9=['905345KuRqrC','30oEpnGh','object','543499pBtdXV','msg','Connection\x20OK\x20for\x20db\x20link\x20','keys','36VqWfNC','slice','num','code','Connection\x20check\x20finished\x20for\x20db\x20link\x20','length','766884XoKbTr','370MtpwkQ','read','297SzxoRR','166328gDRlIT','236476uEUWSR','error','327953RrjQmy','\x20(see\x20data.result)','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','193926bLDTqz','success','data'];a75_0x29d5=function(){return _0x172ab9;};return a75_0x29d5();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x103e16){const _0x5d1b6a=a75_0x5577;if(_0x103e16===!![]||_0x103e16===![])return{'success':_0x103e16};if(_0x103e16===null||_0x103e16===undefined)return{'type':typeof _0x103e16};if(typeof _0x103e16!==_0x5d1b6a(0xf7))return{'type':typeof _0x103e16};const _0x3611bb=_0x103e16,_0x326686=['success','message',_0x5d1b6a(0xe5),_0x5d1b6a(0xee),_0x5d1b6a(0xf9),_0x5d1b6a(0xf4)],_0x2d0c50={};for(const _0x19fbf9 of _0x326686){if(_0x19fbf9 in _0x3611bb)_0x2d0c50[_0x19fbf9]=_0x3611bb[_0x19fbf9];}return Object[_0x5d1b6a(0xe1)](_0x2d0c50)[_0x5d1b6a(0xe7)]===0x0&&(_0x2d0c50[_0x5d1b6a(0xe1)]=Object[_0x5d1b6a(0xe1)](_0x3611bb)[_0x5d1b6a(0xe3)](0x0,0x14)),_0x2d0c50;}export const dbTest={'service':'db','command':'test','description':a75_0x4a65ff(0xf1),'risk':a75_0x4a65ff(0xea),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4e7cd0){const _0x11faad=a75_0x4a65ff,_0x4c4575=_0x4e7cd0[_0x11faad(0xe4)]('id'),_0x1cb72a=await testDbLinkConnect(_0x4c4575),_0x35469c=_0x1cb72a===!![]||typeof _0x1cb72a===_0x11faad(0xf7)&&_0x1cb72a!==null&&_0x1cb72a[_0x11faad(0xf3)]===!![],_0x9a6b15=summarizeTestConnectResult(_0x1cb72a);return{'ok':!![],'data':{'id':_0x4c4575,'connected':Boolean(_0x35469c),'result':_0x9a6b15},'message':_0x35469c?_0x11faad(0xe0)+_0x4c4575:_0x11faad(0xe6)+_0x4c4575+_0x11faad(0xf0)};}};
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 +1 @@
1
- const a76_0x25be2d=a76_0x3588;(function(_0xb2a7e6,_0x3c8f95){const _0xab6f1f=a76_0x3588,_0x2a2302=_0xb2a7e6();while(!![]){try{const _0x3f7d11=-parseInt(_0xab6f1f(0xe3))/0x1*(-parseInt(_0xab6f1f(0xf6))/0x2)+-parseInt(_0xab6f1f(0xd9))/0x3+parseInt(_0xab6f1f(0xe0))/0x4*(parseInt(_0xab6f1f(0xe5))/0x5)+-parseInt(_0xab6f1f(0xdc))/0x6*(-parseInt(_0xab6f1f(0xed))/0x7)+parseInt(_0xab6f1f(0xef))/0x8*(-parseInt(_0xab6f1f(0xdd))/0x9)+parseInt(_0xab6f1f(0xe4))/0xa*(-parseInt(_0xab6f1f(0xe8))/0xb)+parseInt(_0xab6f1f(0xf8))/0xc*(parseInt(_0xab6f1f(0xf2))/0xd);if(_0x3f7d11===_0x3c8f95)break;else _0x2a2302['push'](_0x2a2302['shift']());}catch(_0x1792eb){_0x2a2302['push'](_0x2a2302['shift']());}}}(a76_0x4b7f,0xb3093));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a76_0x4b7f(){const _0x46defc=['dburl','2736912Yatlrk','1257777uBaEJN','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','string','182056XCBsah','num','dbParam','20oChYnj','10WbLQKK','55aXxhBb','str','dbname','13357509TVHeQj','dbdesc','dbUrl','Updated\x20db\x20link\x20','dbparam','14ZzXPBm','validation','72DrgIyM','New\x20connection\x20parameter\x20string','trim','26LBpsdZ','New\x20host:port','username','password','108180fxtWlk','write','12922512bgeKdX','New\x20database\x20name','New\x20description','POST','dbDesc','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','4329249fZHodH','/smartapi/dblink/update'];a76_0x4b7f=function(){return _0x46defc;};return a76_0x4b7f();}function a76_0x3588(_0x46b325,_0x48b628){_0x46b325=_0x46b325-0xd6;const _0x4b7fd3=a76_0x4b7f();let _0x3588b6=_0x4b7fd3[_0x46b325];return _0x3588b6;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a76_0x25be2d(0xde),'risk':a76_0x25be2d(0xf7),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a76_0x25be2d(0xe7),'type':a76_0x25be2d(0xdf),'description':a76_0x25be2d(0xf9)},{'name':a76_0x25be2d(0xdb),'type':'string','description':a76_0x25be2d(0xf3)},{'name':a76_0x25be2d(0xf4),'type':'string','description':'New\x20username'},{'name':a76_0x25be2d(0xf5),'type':a76_0x25be2d(0xdf),'description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a76_0x25be2d(0xec),'type':a76_0x25be2d(0xdf),'description':a76_0x25be2d(0xf0)},{'name':a76_0x25be2d(0xe9),'type':'string','description':a76_0x25be2d(0xfa)}],async 'validate'(_0x34fdc3){const _0x23d6ab=a76_0x25be2d,_0x39f1b6=_0x34fdc3[_0x23d6ab(0xe6)](_0x23d6ab(0xdb));if(_0x39f1b6&&!validateDbUrl(_0x39f1b6[_0x23d6ab(0xf1)]()))throw CliErrors[_0x23d6ab(0xee)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x39f1b6+'\x22');},async 'dryRun'(_0x22a737){const _0x5219c1=a76_0x25be2d,_0x3029b3=_0x22a737[_0x5219c1(0xe1)]('id'),_0x463b16=await getDbLinkInfo(_0x3029b3),_0x3de97c={..._0x463b16},_0x29f13d=_0x22a737[_0x5219c1(0xe6)](_0x5219c1(0xe7));if(_0x29f13d)_0x3de97c['dbName']=_0x29f13d;const _0x4d17eb=_0x22a737['str'](_0x5219c1(0xdb));if(_0x4d17eb)_0x3de97c[_0x5219c1(0xea)]=_0x4d17eb['trim']();const _0x27feeb=_0x22a737[_0x5219c1(0xe6)](_0x5219c1(0xf4));if(_0x27feeb)_0x3de97c['username']=_0x27feeb;const _0x2d82bb=_0x22a737[_0x5219c1(0xe6)](_0x5219c1(0xf5));if(_0x2d82bb)_0x3de97c[_0x5219c1(0xf5)]=_0x2d82bb;const _0x2a3f7e=_0x22a737[_0x5219c1(0xe6)](_0x5219c1(0xec));if(_0x2a3f7e)_0x3de97c['dbParam']=_0x2a3f7e;const _0x249788=_0x22a737[_0x5219c1(0xe6)](_0x5219c1(0xe9));if(_0x249788)_0x3de97c[_0x5219c1(0xd7)]=_0x249788;const _0x44466c=sanitizeDbLinkForOutput(_0x3de97c);return{'method':_0x5219c1(0xd6),'url':_0x5219c1(0xda),'body':_0x44466c,'description':_0x5219c1(0xd8)};},async 'execute'(_0x217eb4){const _0x38afc5=a76_0x25be2d,_0x476ab3=_0x217eb4[_0x38afc5(0xe1)]('id'),_0x5bca59=await getDbLinkInfo(_0x476ab3),_0x3baffb={..._0x5bca59},_0x36708b=_0x217eb4[_0x38afc5(0xe6)](_0x38afc5(0xe7));if(_0x36708b)_0x3baffb['dbName']=_0x36708b;const _0x20b676=_0x217eb4[_0x38afc5(0xe6)](_0x38afc5(0xdb));if(_0x20b676)_0x3baffb[_0x38afc5(0xea)]=_0x20b676['trim']();const _0x34490e=_0x217eb4[_0x38afc5(0xe6)]('username');if(_0x34490e)_0x3baffb[_0x38afc5(0xf4)]=_0x34490e;const _0x3cf305=_0x217eb4[_0x38afc5(0xe6)]('password');if(_0x3cf305)_0x3baffb[_0x38afc5(0xf5)]=_0x3cf305;const _0x3e99a6=_0x217eb4[_0x38afc5(0xe6)](_0x38afc5(0xec));if(_0x3e99a6)_0x3baffb[_0x38afc5(0xe2)]=_0x3e99a6;const _0x466f8e=_0x217eb4[_0x38afc5(0xe6)](_0x38afc5(0xe9));if(_0x466f8e)_0x3baffb['dbDesc']=_0x466f8e;const {id:_0x530ea8,entity:_0x1d820c}=normalizeEntityWithIdResponse(await updateDbLink(_0x3baffb));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1d820c),'message':_0x38afc5(0xeb)+(_0x530ea8??_0x476ab3)};}};
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 +1 @@
1
- function a77_0x3202(){const _0x5a7dd0=['\x20doctor','20ybLszh','keys','bold','63latSQL','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','unknown','apps','appcode','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','message','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','774678IzYAGp','1195106wcIEFd','Project','\x20\x20Config\x20JSON','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20─','red','cookie','gray','defaultApp','2568KkYEWh','1672WWiLPW','(set\x20via\x20file,\x20length=','locale','explicitAppName','417MlWisV','11528960znixPy','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','env','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','468rKAxKs','(not\x20found)','green','appCode','slice','Global','check','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','value','platform','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','read','(none)','arch','8005311WRCtWu','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','doctor','⚠\x20Empty\x20(treated\x20as\x20{})','apiDir','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','5714RRoqiW','empty','padEnd','length','(set,\x20length=','✗\x20Expired','\x20\x20Config\x20Files','repeat','✗\x20Invalid\x20JSON','\x20\x20explicitAppName:\x20','(default:\x20','verbose','accessKey','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','98740PIPdqV','✓\x20Valid\x20JSON','format','log','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20Apps','\x20←\x20current','\x20(default)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x3202=function(){return _0x5a7dd0;};return a77_0x3202();}const a77_0x3a8aec=a77_0x2dcf;(function(_0x4425d9,_0x5281a1){const _0xaac270=a77_0x2dcf,_0x1e065a=_0x4425d9();while(!![]){try{const _0x5d6d56=parseInt(_0xaac270(0xf9))/0x1*(parseInt(_0xaac270(0xc1))/0x2)+parseInt(_0xaac270(0xf4))/0x3*(-parseInt(_0xaac270(0xf5))/0x4)+parseInt(_0xaac270(0xcf))/0x5+parseInt(_0xaac270(0xe9))/0x6*(parseInt(_0xaac270(0xe1))/0x7)+parseInt(_0xaac270(0xfa))/0x8+-parseInt(_0xaac270(0xba))/0x9*(-parseInt(_0xaac270(0xde))/0xa)+parseInt(_0xaac270(0xea))/0xb*(-parseInt(_0xaac270(0x102))/0xc);if(_0x5d6d56===_0x5281a1)break;else _0x1e065a['push'](_0x1e065a['shift']());}catch(_0xa21e30){_0x1e065a['push'](_0x1e065a['shift']());}}}(a77_0x3202,0xf3b42));import a77_0x2d391f 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';function a77_0x2dcf(_0x118174,_0x214b24){_0x118174=_0x118174-0xad;const _0x3202f1=a77_0x3202();let _0x2dcf08=_0x3202f1[_0x118174];return _0x2dcf08;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x6f1447){const _0x11a8f0=a77_0x2dcf,_0x44b111=GIT_COMMIT!==_0x11a8f0(0xe3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x11a8f0(0xaf)](0x0,0xa)+')':VERSION,_0x277d66=buildConfigFromFlags({}),_0xfed0ad=getCookie();console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xe0)](CLI_BIN_NAME+_0x11a8f0(0xdd))),console[_0x11a8f0(0xd2)](a77_0x2d391f['gray']('─'['repeat'](0x32))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xe2)+_0x44b111),console[_0x11a8f0(0xd2)](_0x11a8f0(0x101)+process['version']),console[_0x11a8f0(0xd2)](_0x11a8f0(0xfe)+process[_0x11a8f0(0xb5)]+'\x20'+process[_0x11a8f0(0xb9)]),console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f['bold'](_0x11a8f0(0xc7))),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e)));const _0xac3f21=getGlobalConfigPath(),_0x3412c5=getProjectConfigPath();console[_0x11a8f0(0xd2)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xac3f21||a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0x103)))),console[_0x11a8f0(0xd2)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3412c5||a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0x103)))),console[_0x11a8f0(0xd2)](),console['log'](a77_0x2d391f[_0x11a8f0(0xe0)](_0x11a8f0(0xec))),console['log'](a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e)));const _0x236d9a=(_0x29f854,_0x14f463)=>{const _0x11c3ec=_0x11a8f0;if(!_0x14f463){console[_0x11c3ec(0xd2)]('\x20\x20'+_0x29f854[_0x11c3ec(0xc3)](0x11)+'\x20'+a77_0x2d391f[_0x11c3ec(0xf2)]('(no\x20file)'));return;}const _0x300ebf=inspectCliConfigJsonFile(_0x14f463);if(_0x300ebf[_0x11c3ec(0xbc)]==='ok')console[_0x11c3ec(0xd2)]('\x20\x20'+_0x29f854[_0x11c3ec(0xc3)](0x11)+'\x20'+a77_0x2d391f['green'](_0x11c3ec(0xd0)));else{if(_0x300ebf[_0x11c3ec(0xbc)]===_0x11c3ec(0xc2))console[_0x11c3ec(0xd2)]('\x20\x20'+_0x29f854['padEnd'](0x11)+'\x20'+a77_0x2d391f[_0x11c3ec(0xd6)](_0x11c3ec(0xbe)));else _0x300ebf[_0x11c3ec(0xbc)]==='missing'?console[_0x11c3ec(0xd2)]('\x20\x20'+_0x29f854[_0x11c3ec(0xc3)](0x11)+'\x20'+a77_0x2d391f['gray']('(missing)')):(console[_0x11c3ec(0xd2)]('\x20\x20'+_0x29f854['padEnd'](0x11)+'\x20'+a77_0x2d391f['red'](_0x11c3ec(0xc9))),console[_0x11c3ec(0xd2)]('\x20\x20'+''[_0x11c3ec(0xc3)](0x11)+'\x20'+a77_0x2d391f[_0x11c3ec(0xf0)](_0x300ebf[_0x11c3ec(0xe7)])));}};_0x236d9a(_0x11a8f0(0xb0),_0xac3f21),_0x236d9a(_0x11a8f0(0xeb),_0x3412c5),console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xe0)]('\x20\x20Merged\x20Config')),console['log'](a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xda)+(_0x277d66[_0x11a8f0(0xae)]||a77_0x2d391f[_0x11a8f0(0xf0)](_0x11a8f0(0xb3)))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xb2)+_0x277d66['env']),console[_0x11a8f0(0xd2)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x277d66[_0x11a8f0(0xf7)]),console[_0x11a8f0(0xd2)](_0x11a8f0(0xed)+_0x277d66[_0x11a8f0(0xbf)]),console[_0x11a8f0(0xd2)](_0x11a8f0(0xe8)+(_0x277d66[_0x11a8f0(0xf3)]||a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xb8)))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xfb)+(_0x277d66[_0x11a8f0(0xdb)]||a77_0x2d391f['gray'](_0x11a8f0(0xb8)))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xca)+(_0x277d66[_0x11a8f0(0xf8)]||a77_0x2d391f['gray'](_0x11a8f0(0xb8)))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xce)+(_0x277d66[_0x11a8f0(0xd1)]||a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xcb)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xdc)+(_0x277d66['pageSize']??a77_0x2d391f[_0x11a8f0(0xf2)]('(default)'))),console[_0x11a8f0(0xd2)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x277d66['riskLevel']),console[_0x11a8f0(0xd2)](_0x11a8f0(0xd3)+_0x277d66[_0x11a8f0(0xcc)]),console[_0x11a8f0(0xd2)](_0x11a8f0(0xbb)+(_0x277d66[_0x11a8f0(0xf1)]?a77_0x2d391f[_0x11a8f0(0xad)](_0x11a8f0(0xc5)+_0x277d66[_0x11a8f0(0xf1)][_0x11a8f0(0xc4)]+')'):_0xfed0ad?a77_0x2d391f[_0x11a8f0(0xad)](_0x11a8f0(0xf6)+_0xfed0ad[_0x11a8f0(0xc4)]+')'):a77_0x2d391f[_0x11a8f0(0xf2)]('(none)')));const _0x931f19=Object[_0x11a8f0(0xdf)](_0x277d66[_0x11a8f0(0xe4)]);if(_0x931f19[_0x11a8f0(0xc4)]>0x0){console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xe0)](_0x11a8f0(0xd7))),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e)));for(const _0x1415b5 of _0x931f19){const _0x30dea3=_0x277d66[_0x11a8f0(0xe4)][_0x1415b5],_0x37f054=_0x1415b5===_0x277d66[_0x11a8f0(0xf3)],_0xcd09ac=_0x1415b5===_0x277d66[_0x11a8f0(0xdb)],_0x4c41a9=_0xcd09ac?a77_0x2d391f[_0x11a8f0(0xad)](_0x11a8f0(0xd8)):'',_0x87eb36=_0x37f054?_0x11a8f0(0xd9):'';console['log']('\x20\x20'+_0x1415b5+_0x87eb36+_0x4c41a9),console['log'](_0x11a8f0(0xe6)+_0x30dea3[_0x11a8f0(0xe5)]);const _0x2bcbfd=buildAppDoctorFields(_0x30dea3,{'env':_0x277d66['env'],'apiDir':_0x277d66['raw'][_0x11a8f0(0xbf)]||DEFAULT_CONFIG_VALUES[_0x11a8f0(0xbf)],'cookie':_0x277d66[_0x11a8f0(0xf1)]||_0xfed0ad||undefined,'accessKey':_0x277d66[_0x11a8f0(0xcd)]});console[_0x11a8f0(0xd2)](_0x11a8f0(0xd4)+_0x2bcbfd[_0x11a8f0(0xfd)][_0x11a8f0(0xb4)]+'\x20\x20'+a77_0x2d391f[_0x11a8f0(0xf2)]('('+_0x2bcbfd[_0x11a8f0(0xfd)][_0x11a8f0(0xee)]+')')),console[_0x11a8f0(0xd2)](_0x11a8f0(0x100)+_0x2bcbfd[_0x11a8f0(0xbf)]['value']+'\x20\x20'+a77_0x2d391f['gray']('('+_0x2bcbfd[_0x11a8f0(0xbf)][_0x11a8f0(0xee)]+')'));const _0x967176=_0x2bcbfd[_0x11a8f0(0xf1)][_0x11a8f0(0xb4)]?a77_0x2d391f['green'](_0x11a8f0(0xc5)+_0x2bcbfd[_0x11a8f0(0xf1)][_0x11a8f0(0xb4)][_0x11a8f0(0xc4)]+')'):a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xb8));console[_0x11a8f0(0xd2)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x967176+'\x20\x20'+a77_0x2d391f[_0x11a8f0(0xf2)]('('+_0x2bcbfd[_0x11a8f0(0xf1)][_0x11a8f0(0xee)]+')'));const _0x143817=_0x2bcbfd[_0x11a8f0(0xcd)][_0x11a8f0(0xb4)]?a77_0x2d391f[_0x11a8f0(0xad)](_0x11a8f0(0xc5)+_0x2bcbfd[_0x11a8f0(0xcd)][_0x11a8f0(0xb4)][_0x11a8f0(0xc4)]+')'):a77_0x2d391f['gray']('(none)');console[_0x11a8f0(0xd2)](_0x11a8f0(0xfc)+_0x143817+'\x20\x20'+a77_0x2d391f[_0x11a8f0(0xf2)]('('+_0x2bcbfd[_0x11a8f0(0xcd)]['source']+')'));}}console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f['bold']('\x20\x20API\x20Endpoints')),console['log'](a77_0x2d391f['gray'](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e))),console[_0x11a8f0(0xd2)](_0x11a8f0(0xc0)+getApiDomain()),console['log'](_0x11a8f0(0xb6)+getUserDomain()),console[_0x11a8f0(0xd2)](_0x11a8f0(0xff)+getRuntimeDomain()),console[_0x11a8f0(0xd2)](),console[_0x11a8f0(0xd2)](a77_0x2d391f['bold']('\x20\x20Auth')),console[_0x11a8f0(0xd2)](a77_0x2d391f[_0x11a8f0(0xf2)](_0x11a8f0(0xef)[_0x11a8f0(0xc8)](0x1e)));if(_0xfed0ad){const _0x4b984e=await getIsSessionValid();console[_0x11a8f0(0xd2)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b984e?a77_0x2d391f[_0x11a8f0(0xad)]('✓\x20Valid'):a77_0x2d391f['red'](_0x11a8f0(0xc6))));}else console[_0x11a8f0(0xd2)](_0x11a8f0(0xd5)+a77_0x2d391f[_0x11a8f0(0xf0)]('✗\x20Not\x20logged\x20in'));return console[_0x11a8f0(0xd2)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x3a8aec(0xbd),'command':a77_0x3a8aec(0xb1),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a77_0x3a8aec(0xb7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
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 +1 @@
1
- const a78_0x5612c7=a78_0x56ba;(function(_0x8ad3a4,_0x150a13){const _0x44ba14=a78_0x56ba,_0x13222e=_0x8ad3a4();while(!![]){try{const _0x5182fd=parseInt(_0x44ba14(0xd1))/0x1+-parseInt(_0x44ba14(0xc8))/0x2*(-parseInt(_0x44ba14(0xbb))/0x3)+-parseInt(_0x44ba14(0xc9))/0x4+-parseInt(_0x44ba14(0xd3))/0x5+-parseInt(_0x44ba14(0xc1))/0x6*(-parseInt(_0x44ba14(0xcf))/0x7)+-parseInt(_0x44ba14(0xc0))/0x8+parseInt(_0x44ba14(0xe6))/0x9;if(_0x5182fd===_0x150a13)break;else _0x13222e['push'](_0x13222e['shift']());}catch(_0x20ba9c){_0x13222e['push'](_0x13222e['shift']());}}}(a78_0x190c,0xd937b));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_0x56ba(_0x26ec51,_0x364cc7){_0x26ec51=_0x26ec51-0xbb;const _0x190cea=a78_0x190c();let _0x56ba72=_0x190cea[_0x26ec51];return _0x56ba72;}function syntheticApp(_0x224625){return{'appCode':_0x224625,'appName':_0x224625};}function writeInitConfig(_0x22b661,_0x55b0a7,_0x33bb16){const _0x51eaf6=a78_0x56ba,_0x4fb88c=resolveWriteConfigPath(_0x22b661),_0x50cf06=buildCanonicalProjectConfig({},{'appCodes':_0x55b0a7[_0x51eaf6(0xcb)](_0x52766b=>_0x52766b[_0x51eaf6(0xd5)]),'env':_0x33bb16,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x51eaf6(0xd7)]()}});writeConfigFile(_0x4fb88c,_0x50cf06);const _0x1251dd=_0x22b661===_0x51eaf6(0xe2)?_0x51eaf6(0xe2):'project';console[_0x51eaf6(0xe8)](_0x51eaf6(0xc2)+_0x1251dd+'\x20config'),console[_0x51eaf6(0xe8)](_0x51eaf6(0xdc)+_0x55b0a7[_0x51eaf6(0xcb)](_0x277f79=>_0x277f79[_0x51eaf6(0xd5)])[_0x51eaf6(0xc3)](',\x20')),console[_0x51eaf6(0xe8)]('\x20\x20Default:\x20'+_0x50cf06[_0x51eaf6(0xcc)]),console['log'](_0x51eaf6(0xbe)+_0x50cf06[_0x51eaf6(0xd8)]),console[_0x51eaf6(0xe8)](_0x51eaf6(0xc6)+_0x4fb88c);}async function runSmartInit(_0x482f6d){const _0x12d7c0=a78_0x56ba,_0x11511a=process[_0x12d7c0(0xcd)](),_0xaec45f=_0x482f6d[_0x12d7c0(0xdf)](_0x12d7c0(0xe2))?_0x12d7c0(0xe2):_0x12d7c0(0xda),_0x58cbdb=_0x482f6d['str']('env')||_0x12d7c0(0xd6),_0x47c3e5=_0x482f6d[_0x12d7c0(0xce)](_0x12d7c0(0xd0))||undefined,_0x42840b=_0x482f6d['bool'](_0x12d7c0(0xda));if(_0x42840b){const {initConfig:_0x41547c}=await import(_0x12d7c0(0xde));return _0x41547c({'appcode':_0x47c3e5,'env':_0x58cbdb,'autoYes':_0x482f6d[_0x12d7c0(0xdf)](_0x12d7c0(0xd9))});}if(_0xaec45f===_0x12d7c0(0xda)){const _0x8614ec=existsSync(resolve(_0x11511a,NEW_CONFIG_NAME)),_0x509cf8=LEGACY_CONFIG_NAMES['some'](_0x2276ce=>existsSync(resolve(_0x11511a,_0x2276ce)));if(_0x509cf8&&!_0x8614ec)return console['log'](_0x12d7c0(0xdd)),upgradeApp(_0x482f6d[_0x12d7c0(0xbd)],{'yes':_0x482f6d['bool']('yes')});if(_0x8614ec)throw CliErrors[_0x12d7c0(0xd4)](_0x12d7c0(0xe5),'Use\x20`'+CLI_BIN_NAME+_0x12d7c0(0xc7));}if(_0x47c3e5){const _0x367f89=validateAppcode(_0x47c3e5);if(!_0x367f89[_0x12d7c0(0xe9)])throw CliErrors[_0x12d7c0(0xd4)](_0x367f89[_0x12d7c0(0xea)]);writeInitConfig(_0xaec45f,[syntheticApp(_0x47c3e5)],_0x58cbdb);return;}if(_0x482f6d[_0x12d7c0(0xbd)])throw CliErrors[_0x12d7c0(0xbc)]('appcode','Usage:\x20'+CLI_BIN_NAME+_0x12d7c0(0xc4));const _0x1d4b7a=getCookie(),_0x2b55d9=await selectMultipleApps(_0x1d4b7a),_0x21f161=_0x2b55d9===_0x12d7c0(0xd2)?[syntheticApp(await promptCustomAppcode())]:_0x2b55d9;writeInitConfig(_0xaec45f,_0x21f161,_0x58cbdb);}function a78_0x190c(){const _0xde5f4a=['5224464jlhAcw','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','valid','message','3BWvImq','flagMissing','nonInteractive','\x20\x20Env:\x20','boolean','13158224izEORx','67902jzwKGa','\x0a✓\x20Successfully\x20initialized\x20','join','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','write','\x20\x20Config:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','3262526dCTWFR','3128840tQFzFL','Auto-confirm\x20prompts','map','defaultApp','cwd','str','259njtsYz','appcode','1254106xzMXIZ','custom','2839415SyUmWz','validation','appCode','production','toLocaleString','env','yes','project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20\x20Apps:\x20','检测到旧配置文件,正在自动升级...\x0a','../../commands/project/init.js','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','App\x20code\x20to\x20initialize\x20with','global','string','Target\x20environment','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.'];a78_0x190c=function(){return _0xde5f4a;};return a78_0x190c();}const initFlags=[{'name':a78_0x5612c7(0xe2),'type':'boolean','description':a78_0x5612c7(0xe7),'default':![]},{'name':'env','type':a78_0x5612c7(0xe3),'description':a78_0x5612c7(0xe4),'default':a78_0x5612c7(0xd6),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a78_0x5612c7(0xe3),'description':a78_0x5612c7(0xe1)},{'name':a78_0x5612c7(0xda),'type':a78_0x5612c7(0xbf),'description':a78_0x5612c7(0xdb),'default':![]},{'name':a78_0x5612c7(0xd9),'type':'boolean','description':a78_0x5612c7(0xca),'default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':a78_0x5612c7(0xe0),'risk':a78_0x5612c7(0xc5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5ec83a){return await runSmartInit(_0x5ec83a),{'ok':!![]};}}];
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 +1 @@
1
- function a79_0x2472(){const _0x3b9a77=['3675756ezbPYn','5477244syeISu','604856EglFjp','2720960fDGktz','688GoESgC','9HGLMyf','63996vlGTHv','78jBPrNk','335yoBYRi','487252uHpwsS'];a79_0x2472=function(){return _0x3b9a77;};return a79_0x2472();}(function(_0x113745,_0x47e86e){const _0x432b30=a79_0x2cd2,_0x568034=_0x113745();while(!![]){try{const _0x19742f=parseInt(_0x432b30(0x82))/0x1+parseInt(_0x432b30(0x7f))/0x2*(parseInt(_0x432b30(0x80))/0x3)+-parseInt(_0x432b30(0x87))/0x4*(parseInt(_0x432b30(0x81))/0x5)+-parseInt(_0x432b30(0x84))/0x6+parseInt(_0x432b30(0x83))/0x7+parseInt(_0x432b30(0x85))/0x8*(-parseInt(_0x432b30(0x88))/0x9)+-parseInt(_0x432b30(0x86))/0xa;if(_0x19742f===_0x47e86e)break;else _0x568034['push'](_0x568034['shift']());}catch(_0x94c64c){_0x568034['push'](_0x568034['shift']());}}}(a79_0x2472,0x8bb2f));import{issueReport}from'../../commands/issue/report.js';function a79_0x2cd2(_0x309c24,_0xbd56f6){_0x309c24=_0x309c24-0x7f;const _0x247215=a79_0x2472();let _0x2cd204=_0x247215[_0x309c24];return _0x2cd204;}export const issueDefinitions=[issueReport];
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 +1 @@
1
- const a80_0xfdfb91=a80_0xe2b9;(function(_0xeaf83c,_0x256b16){const _0xff5e00=a80_0xe2b9,_0xc5a98b=_0xeaf83c();while(!![]){try{const _0x3da41f=parseInt(_0xff5e00(0x7c))/0x1*(-parseInt(_0xff5e00(0x81))/0x2)+-parseInt(_0xff5e00(0x7e))/0x3+-parseInt(_0xff5e00(0x8a))/0x4+-parseInt(_0xff5e00(0x90))/0x5+parseInt(_0xff5e00(0x79))/0x6+-parseInt(_0xff5e00(0x93))/0x7+parseInt(_0xff5e00(0x83))/0x8*(parseInt(_0xff5e00(0x89))/0x9);if(_0x3da41f===_0x256b16)break;else _0xc5a98b['push'](_0xc5a98b['shift']());}catch(_0x589adf){_0xc5a98b['push'](_0xc5a98b['shift']());}}}(a80_0x11eb,0x7f8d1));function a80_0x11eb(){const _0x17ed56=['unknown_command','command','2480475FBRbRn','code','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','2312450fWpZxg','service','slice','auth_required','trim','network_error','5979270kXEiXq','\x20issue\x20report\x20\x5c','validation_error','1003397WWAUQS','issue','114048BBpdXG','config_missing','\x20\x20\x20\x20--title\x20\x22','2yBqzNH','cancelled','32vsygrf','\x20\x20Set\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','RABETBASE_DISABLE_ISSUE_NUDGE','stderr','flag_missing','3901509lGjcKh','1360968HVLIdK','has','length','replace'];a80_0x11eb=function(){return _0x17ed56;};return a80_0x11eb();}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0xfdfb91(0x86);const NUDGE_SUPPRESSED_CODES=new Set([a80_0xfdfb91(0x82),a80_0xfdfb91(0x76),a80_0xfdfb91(0x7f),'not_in_project',a80_0xfdfb91(0x8e),a80_0xfdfb91(0x88),a80_0xfdfb91(0x7b),a80_0xfdfb91(0x78)]),defaultWriter=_0x1379c5=>{const _0x45ea94=a80_0xfdfb91;process[_0x45ea94(0x87)]['write'](_0x1379c5);};export function shouldNudgeForError(_0x471718,_0xf65f27){const _0x2c12d1=a80_0xfdfb91;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0xf65f27[_0x2c12d1(0x94)]===_0x2c12d1(0x7d)&&_0xf65f27['command']==='report')return![];if(_0x471718 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2c12d1(0x8b)](_0x471718[_0x2c12d1(0x91)]);return!![];}function a80_0xe2b9(_0x38adf5,_0x90d2ab){_0x38adf5=_0x38adf5-0x75;const _0x11eb2b=a80_0x11eb();let _0xe2b959=_0x11eb2b[_0x38adf5];return _0xe2b959;}export function printIssueReportNudgeForError(_0x3a5b20,_0x55b9ad,_0x2e71b6=defaultWriter){if(!shouldNudgeForError(_0x3a5b20,_0x55b9ad))return;const _0x2e532f=buildSuggestedTitle(_0x3a5b20,_0x55b9ad);_0x2e71b6(formatNudge(_0x2e532f));}function buildSuggestedTitle(_0x5e55ca,_0x2f5f3e){const _0x389409=a80_0xfdfb91,_0x2be251=_0x5e55ca instanceof Error?_0x5e55ca['message']:String(_0x5e55ca),_0x13c216=_0x2be251[_0x389409(0x8d)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x389409(0x77)]()[_0x389409(0x75)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x4c2d46=CLI_BIN_NAME+'\x20'+_0x2f5f3e[_0x389409(0x94)]+'\x20'+_0x2f5f3e[_0x389409(0x8f)];return _0x13c216[_0x389409(0x8c)]>0x0?_0x4c2d46+':\x20'+_0x13c216:_0x4c2d46;}function formatNudge(_0x2eb962){const _0x217fe7=a80_0xfdfb91;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x217fe7(0x7a),_0x217fe7(0x80)+_0x2eb962+'\x22\x20\x5c',_0x217fe7(0x92),_0x217fe7(0x85),_0x217fe7(0x84)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.','']['join']('\x0a');}
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 +1 @@
1
- const a81_0x5b26b2=a81_0x3307;(function(_0x409710,_0x33f2f2){const _0x46af32=a81_0x3307,_0x55b1e3=_0x409710();while(!![]){try{const _0x207887=-parseInt(_0x46af32(0x215))/0x1+-parseInt(_0x46af32(0x1ef))/0x2+parseInt(_0x46af32(0x216))/0x3+parseInt(_0x46af32(0x1f0))/0x4+-parseInt(_0x46af32(0x20e))/0x5+-parseInt(_0x46af32(0x1fd))/0x6*(-parseInt(_0x46af32(0x21b))/0x7)+parseInt(_0x46af32(0x217))/0x8;if(_0x207887===_0x33f2f2)break;else _0x55b1e3['push'](_0x55b1e3['shift']());}catch(_0x5acac6){_0x55b1e3['push'](_0x55b1e3['shift']());}}}(a81_0x1d92,0xc74b8));import{existsSync}from'node:fs';function a81_0x1d92(){const _0x501a4b=['\x20secret(s):\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','cwd','compress','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','5140095BYuwDR','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated:\x20original\x20','join','issue.description','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Failed\x20to\x20report\x20platform\x20issue:\x20','1526987ReGbXD','524004xdDYQf','19442464YPYjPS','description','Issue\x20description\x20cannot\x20be\x20empty.','redacted\x20','754873bLdapm','descriptionSource','push','redactionCount','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.title','description-file','sanitize','descriptionFilePath','str','title','flagMissing','filter','2891886ecIKRc','3241512FtFHVF','truncated','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','string','Platform\x20issue\x20reported\x20(','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','originalBytes','inline','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','trim','issue','78XosoYC','descriptionFile:\x20','validation','redactionKinds','length','POST','issue.description_redaction_kinds','descriptionSource:\x20','One-line\x20issue\x20summary','Platform\x20issue\x20reported','\x20bytes','Issue\x20description\x20file\x20is\x20empty:\x20'];a81_0x1d92=function(){return _0x501a4b;};return a81_0x1d92();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x5b26b2(0x221);export const issueReport={'service':a81_0x5b26b2(0x1fc),'command':'report','description':a81_0x5b26b2(0x1f5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5b26b2(0x20c),'flags':[{'name':a81_0x5b26b2(0x1ec),'type':'string','required':!![],'description':a81_0x5b26b2(0x205)},{'name':a81_0x5b26b2(0x218),'type':'string','description':a81_0x5b26b2(0x20f)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x5b26b2(0x1f3),'description':a81_0x5b26b2(0x1f9)}],async 'validate'(_0x372baf){const _0x2e5649=a81_0x5b26b2,_0x51dba9=_0x372baf[_0x2e5649(0x1eb)]('title')[_0x2e5649(0x1fb)](),_0x1164f6=_0x372baf['str'](_0x2e5649(0x218))[_0x2e5649(0x1fb)](),_0x551111=_0x372baf[_0x2e5649(0x1eb)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x51dba9)throw CliErrors[_0x2e5649(0x1ed)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x125acf=_0x1164f6[_0x2e5649(0x201)]>0x0,_0x34127a=_0x551111[_0x2e5649(0x201)]>0x0;if(_0x125acf===_0x34127a)throw CliErrors[_0x2e5649(0x1ff)](_0x2e5649(0x1f6),_0x2e5649(0x21f));if(_0x34127a){const _0x5e316b=resolve(process[_0x2e5649(0x20b)](),_0x551111);if(!existsSync(_0x5e316b))throw CliErrors[_0x2e5649(0x1ff)]('File\x20not\x20found:\x20'+_0x5e316b);}},async 'dryRun'(_0x25444e){const _0x21f5dc=a81_0x5b26b2,_0x586482=await prepareIssueReport(_0x25444e);return{'method':_0x21f5dc(0x202),'url':_0x21f5dc(0x1fa)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x586482['title'],'issue.description':_0x586482[_0x21f5dc(0x218)],'issue.description_original_bytes':_0x586482[_0x21f5dc(0x1e9)][_0x21f5dc(0x1f7)],'issue.description_truncated':_0x586482[_0x21f5dc(0x1e9)][_0x21f5dc(0x1f1)],'issue.description_redactions':_0x586482['sanitize'][_0x21f5dc(0x21e)],'issue.description_redaction_kinds':_0x586482[_0x21f5dc(0x1e9)]['redactionKinds'][_0x21f5dc(0x211)](',')}},'description':[_0x21f5dc(0x1f2),_0x21f5dc(0x204)+_0x586482[_0x21f5dc(0x21c)],_0x586482['descriptionFilePath']?_0x21f5dc(0x1fe)+_0x586482[_0x21f5dc(0x1ea)]:null,_0x586482['sanitize'][_0x21f5dc(0x1f1)]?_0x21f5dc(0x210)+_0x586482[_0x21f5dc(0x1e9)][_0x21f5dc(0x1f7)]+_0x21f5dc(0x207):null,_0x586482[_0x21f5dc(0x1e9)][_0x21f5dc(0x21e)]>0x0?'redactions:\x20'+_0x586482[_0x21f5dc(0x1e9)][_0x21f5dc(0x21e)]+'\x20('+_0x586482[_0x21f5dc(0x1e9)]['redactionKinds']['join'](',\x20')+')':null][_0x21f5dc(0x1ee)](Boolean)[_0x21f5dc(0x211)]('\x0a')};},async 'execute'(_0x36f383){const _0x53e5df=a81_0x5b26b2,_0x4b90de=await prepareIssueReport(_0x36f383);try{await sendPlatformIssueCollectLog({'title':_0x4b90de[_0x53e5df(0x1ec)],'description':_0x4b90de[_0x53e5df(0x218)],'sanitize':{'originalBytes':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x1f7)],'truncated':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x1f1)],'redactionCount':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x21e)],'redactionKinds':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x200)]}});}catch(_0xd460f3){throw CliErrors['apiError'](_0x53e5df(0x214)+(_0xd460f3 instanceof Error?_0xd460f3['message']:String(_0xd460f3)),_0x53e5df(0x213));}return{'ok':!![],'message':buildResultMessage(_0x4b90de['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x53e5df(0x220),_0x53e5df(0x212),'issue.description_original_bytes','issue.description_truncated','issue.description_redactions',_0x53e5df(0x203)],'issue':{'title':_0x4b90de[_0x53e5df(0x1ec)],'descriptionLength':_0x4b90de[_0x53e5df(0x218)][_0x53e5df(0x201)],'descriptionSource':_0x4b90de['descriptionSource'],..._0x4b90de[_0x53e5df(0x1ea)]?{'descriptionFile':_0x4b90de[_0x53e5df(0x1ea)]}:{},'sanitize':{'originalBytes':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x1f7)],'truncated':_0x4b90de[_0x53e5df(0x1e9)][_0x53e5df(0x1f1)],'redactions':_0x4b90de['sanitize'][_0x53e5df(0x21e)],'redactionKinds':_0x4b90de[_0x53e5df(0x1e9)]['redactionKinds']}}}};}};function a81_0x3307(_0x10dfc4,_0x316ca0){_0x10dfc4=_0x10dfc4-0x1e9;const _0x1d925a=a81_0x1d92();let _0x330701=_0x1d925a[_0x10dfc4];return _0x330701;}function buildResultMessage(_0x17804a){const _0x392125=a81_0x5b26b2,_0x198927=[];return _0x17804a[_0x392125(0x1f1)]&&_0x198927[_0x392125(0x21d)]('truncated\x20from\x20'+_0x17804a[_0x392125(0x1f7)]+_0x392125(0x207)),_0x17804a[_0x392125(0x21e)]>0x0&&_0x198927[_0x392125(0x21d)](_0x392125(0x21a)+_0x17804a[_0x392125(0x21e)]+_0x392125(0x209)+_0x17804a[_0x392125(0x200)]['join'](',\x20')),_0x198927[_0x392125(0x201)]===0x0?_0x392125(0x206):_0x392125(0x1f4)+_0x198927[_0x392125(0x211)](';\x20')+')';}async function prepareIssueReport(_0x476dba){const _0x1a3e19=a81_0x5b26b2,_0x248904=_0x476dba['str'](_0x1a3e19(0x1ec))[_0x1a3e19(0x1fb)](),_0x10df49=_0x476dba[_0x1a3e19(0x1eb)](_0x1a3e19(0x218)),_0x317ea8=_0x476dba[_0x1a3e19(0x1eb)](DESCRIPTION_FILE_FLAG)[_0x1a3e19(0x1fb)]();if(!_0x317ea8){const _0x428341=_0x10df49;if(!_0x428341[_0x1a3e19(0x1fb)]())throw CliErrors[_0x1a3e19(0x1ff)](_0x1a3e19(0x219),_0x1a3e19(0x20a));const _0x356850=sanitizeIssueDescription(_0x428341);return{'title':_0x248904,'description':_0x356850[_0x1a3e19(0x218)],'descriptionSource':_0x1a3e19(0x1f8),'sanitize':_0x356850};}const _0x18b7d3=resolve(process[_0x1a3e19(0x20b)](),_0x317ea8),_0x155d6f=await readFile(_0x18b7d3,'utf8');if(!_0x155d6f[_0x1a3e19(0x1fb)]())throw CliErrors[_0x1a3e19(0x1ff)](_0x1a3e19(0x208)+_0x18b7d3,_0x1a3e19(0x20d));const _0x472c4d=sanitizeIssueDescription(_0x155d6f);return{'title':_0x248904,'description':_0x472c4d[_0x1a3e19(0x218)],'descriptionSource':'file','descriptionFilePath':_0x18b7d3,'sanitize':_0x472c4d};}
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 +1 @@
1
- function a82_0x2185(){const _0x1cbcb3=['1536911NGeooX','private-key','bearer-jwt','1136097SkdFwX','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','10502088PUSqnR','from','3498509wmuRjf','REDACTED:authorization','REDACTED:cookie','REDACTED:private-key','2142376ysaavc','cookie','12iLEqsk','504470QJGOYY','byteLength','9jQOMSB','kind','2DwREGO','pattern','toString','REDACTED:bearer-jwt','12EMfxsm','max','44nPANKT','includes','utf8','REDACTED:access-key','access-key','authorization','label','6106095ilaQAB'];a82_0x2185=function(){return _0x1cbcb3;};return a82_0x2185();}function a82_0x2638(_0x21e3bc,_0x1b4275){_0x21e3bc=_0x21e3bc-0x172;const _0x21856f=a82_0x2185();let _0x2638bb=_0x21856f[_0x21e3bc];return _0x2638bb;}const a82_0x25e494=a82_0x2638;(function(_0x2fe30d,_0x4b43a3){const _0x2b76bd=a82_0x2638,_0x3266d5=_0x2fe30d();while(!![]){try{const _0x4e0a6e=-parseInt(_0x2b76bd(0x18d))/0x1*(parseInt(_0x2b76bd(0x17f))/0x2)+parseInt(_0x2b76bd(0x190))/0x3*(-parseInt(_0x2b76bd(0x17a))/0x4)+-parseInt(_0x2b76bd(0x18c))/0x5+-parseInt(_0x2b76bd(0x183))/0x6*(-parseInt(_0x2b76bd(0x174))/0x7)+parseInt(_0x2b76bd(0x178))/0x8+parseInt(_0x2b76bd(0x17d))/0x9*(parseInt(_0x2b76bd(0x17b))/0xa)+-parseInt(_0x2b76bd(0x185))/0xb*(-parseInt(_0x2b76bd(0x172))/0xc);if(_0x4e0a6e===_0x4b43a3)break;else _0x3266d5['push'](_0x3266d5['shift']());}catch(_0xa87a21){_0x3266d5['push'](_0x3266d5['shift']());}}}(a82_0x2185,0xe1a7f));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x25e494(0x191),REDACTION_RULES=[{'kind':a82_0x25e494(0x179),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x25e494(0x176)},{'kind':a82_0x25e494(0x18a),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x25e494(0x175)},{'kind':a82_0x25e494(0x18e),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x25e494(0x177)},{'kind':a82_0x25e494(0x189),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x25e494(0x188)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x25e494(0x18f),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x25e494(0x182)}];export function sanitizeIssueDescription(_0x32ee57){const _0x2524a8=a82_0x25e494,_0xe018a=Buffer['byteLength'](_0x32ee57,_0x2524a8(0x187)),_0x346ad7=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4101e6=_0x32ee57,_0x28554c=0x0;const _0x251325=[];if(!_0x346ad7)for(const _0x58e5ac of REDACTION_RULES){let _0x288366=0x0;_0x4101e6=_0x4101e6['replace'](_0x58e5ac[_0x2524a8(0x180)],(_0x3a192d,_0x504c2f)=>{const _0x1c324b=_0x2524a8;_0x288366+=0x1;const _0x221bfb=typeof _0x504c2f==='string'?_0x504c2f:'';return _0x221bfb+'['+_0x58e5ac[_0x1c324b(0x18b)]+']';}),_0x288366>0x0&&(_0x28554c+=_0x288366,!_0x251325[_0x2524a8(0x186)](_0x58e5ac['kind'])&&_0x251325['push'](_0x58e5ac[_0x2524a8(0x17e)]));}let _0xb76473=![];if(Buffer['byteLength'](_0x4101e6,_0x2524a8(0x187))>ISSUE_DESCRIPTION_MAX_BYTES){_0xb76473=!![];const _0x49d2ca=Buffer[_0x2524a8(0x17c)](TRUNCATION_NOTICE,_0x2524a8(0x187)),_0x2fa614=Math[_0x2524a8(0x184)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x49d2ca);_0x4101e6=sliceUtf8Bytes(_0x4101e6,_0x2fa614)+TRUNCATION_NOTICE;}return{'description':_0x4101e6,'originalBytes':_0xe018a,'truncated':_0xb76473,'redactionCount':_0x28554c,'redactionKinds':_0x251325};}function sliceUtf8Bytes(_0x5d5008,_0x13aafb){const _0x5260c6=a82_0x25e494;if(_0x13aafb<=0x0)return'';const _0x58f42d=Buffer[_0x5260c6(0x173)](_0x5d5008,_0x5260c6(0x187));if(_0x58f42d[_0x5260c6(0x17c)]<=_0x13aafb)return _0x5d5008;let _0x5e7e59=_0x13aafb;while(_0x5e7e59>0x0){const _0x5c6089=_0x58f42d[_0x5e7e59];if(_0x5c6089===undefined||(_0x5c6089&0xc0)!==0x80)break;_0x5e7e59-=0x1;}return _0x58f42d['subarray'](0x0,_0x5e7e59)[_0x5260c6(0x181)](_0x5260c6(0x187));}
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 +1 @@
1
- const a83_0x5f4694=a83_0x4b57;function a83_0x4d48(){const _0x63e21e=['clearLogs','write','8104dwMkrE','level','5542641OOXuea','log','show','success','warn','message','4GVwOEh','253DTUulS','*\x20Logs\x20cleared','length','details','error','909471DQPwBh','logs','duration','*\x20No\x20logs\x20found','1860366CvlxkK','2706996lVkbGt','View\x20command\x20history\x20logs','Clear\x20command\x20history\x20logs','read','10LJZepc','\x20\x20\x20Duration:\x20','timestamp','stringify','7607270vMaVLE','6181ZkpkXb','clear','en-US','1169004wUrvxr','\x20\x20\x20Time:\x20','2fyvGjg','command','readLogs'];a83_0x4d48=function(){return _0x63e21e;};return a83_0x4d48();}(function(_0xa50ef4,_0x44c55a){const _0x2a8a9b=a83_0x4b57,_0x2e434f=_0xa50ef4();while(!![]){try{const _0x2adeff=-parseInt(_0x2a8a9b(0x200))/0x1*(parseInt(_0x2a8a9b(0x213))/0x2)+parseInt(_0x2a8a9b(0x205))/0x3*(-parseInt(_0x2a8a9b(0x1fa))/0x4)+parseInt(_0x2a8a9b(0x209))/0x5*(-parseInt(_0x2a8a9b(0x204))/0x6)+parseInt(_0x2a8a9b(0x20e))/0x7*(parseInt(_0x2a8a9b(0x1f2))/0x8)+parseInt(_0x2a8a9b(0x1f4))/0x9+-parseInt(_0x2a8a9b(0x20d))/0xa+parseInt(_0x2a8a9b(0x1fb))/0xb*(parseInt(_0x2a8a9b(0x211))/0xc);if(_0x2adeff===_0x44c55a)break;else _0x2e434f['push'](_0x2e434f['shift']());}catch(_0x2efbc5){_0x2e434f['push'](_0x2e434f['shift']());}}}(a83_0x4d48,0x884bb));import{logger}from'../../utils/logger.js';function a83_0x4b57(_0x5db2a5,_0x2dce86){_0x5db2a5=_0x5db2a5-0x1f0;const _0x4d4822=a83_0x4d48();let _0x4b5798=_0x4d4822[_0x5db2a5];return _0x4b5798;}function printLogs(_0x257e07){const _0x397936=a83_0x4b57;if(_0x257e07['length']===0x0){console[_0x397936(0x1f5)](_0x397936(0x203));return;}console[_0x397936(0x1f5)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x257e07['forEach']((_0x5e74c4,_0x8e1be2)=>{const _0x137a9f=_0x397936,_0x4b2503=new Date(_0x5e74c4[_0x137a9f(0x20b)])['toLocaleString'](_0x137a9f(0x210)),_0x3882d0=_0x5e74c4['level']===_0x137a9f(0x1f7)?'√':_0x5e74c4['level']===_0x137a9f(0x1ff)?'×':_0x5e74c4[_0x137a9f(0x1f3)]===_0x137a9f(0x1f8)?'!':'i';console['log'](_0x8e1be2+0x1+'.\x20'+_0x3882d0+'\x20['+_0x5e74c4[_0x137a9f(0x214)]+']\x20'+_0x5e74c4[_0x137a9f(0x1f9)]),console[_0x137a9f(0x1f5)](_0x137a9f(0x212)+_0x4b2503),_0x5e74c4[_0x137a9f(0x202)]&&console[_0x137a9f(0x1f5)](_0x137a9f(0x20a)+_0x5e74c4[_0x137a9f(0x202)]+'ms'),_0x5e74c4[_0x137a9f(0x1fe)]&&Object['keys'](_0x5e74c4[_0x137a9f(0x1fe)])[_0x137a9f(0x1fd)]>0x0&&console[_0x137a9f(0x1f5)]('\x20\x20\x20Details:\x20'+JSON[_0x137a9f(0x20c)](_0x5e74c4[_0x137a9f(0x1fe)],null,0x2)),console[_0x137a9f(0x1f5)]('');});}export const logsDefinitions=[{'service':a83_0x5f4694(0x201),'command':a83_0x5f4694(0x1f6),'description':a83_0x5f4694(0x206),'risk':a83_0x5f4694(0x208),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1bc5c1){const _0x6d422d=a83_0x5f4694;return printLogs(logger[_0x6d422d(0x215)]()),{'ok':!![]};}},{'service':'logs','command':a83_0x5f4694(0x20f),'description':a83_0x5f4694(0x207),'risk':a83_0x5f4694(0x1f1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4ea185){const _0x12b7c2=a83_0x5f4694;return logger[_0x12b7c2(0x1f0)](),console[_0x12b7c2(0x1f5)](_0x12b7c2(0x1fc)),{'ok':!![]};}}];
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 +1 @@
1
- (function(_0x333f59,_0xbc9c19){const _0x22db95=a84_0x4f53,_0x3f5103=_0x333f59();while(!![]){try{const _0xf92a96=parseInt(_0x22db95(0x1a8))/0x1*(parseInt(_0x22db95(0x1a4))/0x2)+-parseInt(_0x22db95(0x1aa))/0x3+-parseInt(_0x22db95(0x1a5))/0x4+parseInt(_0x22db95(0x1a7))/0x5+-parseInt(_0x22db95(0x1a2))/0x6+parseInt(_0x22db95(0x1a6))/0x7*(parseInt(_0x22db95(0x1a3))/0x8)+parseInt(_0x22db95(0x1a9))/0x9;if(_0xf92a96===_0xbc9c19)break;else _0x3f5103['push'](_0x3f5103['shift']());}catch(_0xd01188){_0x3f5103['push'](_0x3f5103['shift']());}}}(a84_0x1d19,0x4dec9));function a84_0x4f53(_0xd9810b,_0x1962cc){_0xd9810b=_0xd9810b-0x1a2;const _0x1d1909=a84_0x1d19();let _0x4f5361=_0x1d1909[_0xd9810b];return _0x4f5361;}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a84_0x1d19(){const _0x3f6e90=['3844332foKrCA','343728NegjDH','3691146zOurDO','2295848ijorKk','54IeefUV','1683868dosUaJ','7sGGPuQ','1464200pinLaO','17146fuuvJz'];a84_0x1d19=function(){return _0x3f6e90;};return a84_0x1d19();}
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 +1 @@
1
- function a85_0x5572(_0xbcdda1,_0x5b80a2){_0xbcdda1=_0xbcdda1-0x1ef;const _0x472baa=a85_0x472b();let _0x557278=_0x472baa[_0xbcdda1];return _0x557278;}const a85_0x1b9ac9=a85_0x5572;(function(_0x276ac3,_0xc830f){const _0x5a1955=a85_0x5572,_0x14928b=_0x276ac3();while(!![]){try{const _0x3744a4=parseInt(_0x5a1955(0x201))/0x1*(-parseInt(_0x5a1955(0x206))/0x2)+parseInt(_0x5a1955(0x1f6))/0x3*(-parseInt(_0x5a1955(0x212))/0x4)+parseInt(_0x5a1955(0x1ef))/0x5*(-parseInt(_0x5a1955(0x20d))/0x6)+parseInt(_0x5a1955(0x1f1))/0x7*(-parseInt(_0x5a1955(0x1f0))/0x8)+-parseInt(_0x5a1955(0x210))/0x9*(-parseInt(_0x5a1955(0x1ff))/0xa)+parseInt(_0x5a1955(0x20e))/0xb+parseInt(_0x5a1955(0x20b))/0xc;if(_0x3744a4===_0xc830f)break;else _0x14928b['push'](_0x14928b['shift']());}catch(_0x19301e){_0x14928b['push'](_0x14928b['shift']());}}}(a85_0x472b,0xcc30e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';function a85_0x472b(){const _0x15c84c=['POSITIVE_INFINITY','string','boolean','path','110860bJTfbv','index','99202NnyrMw','Found\x20','label','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','24zTwYWc','cookie','depth','isArray','push','48887592BEIIHL','map','6qPLGJs','12446467xCmSYq','sort','54FaOCiR','length','20hkVxEO','type','appCode','list','read','/smartapi/menu/find?appCode=','parentId','bool','7264690vNdjfi','12626248IANtOO','7ZFVdXZ','menu','number','children','item','128382ESmOUa','extend','verbose','parse','visible'];a85_0x472b=function(){return _0x15c84c;};return a85_0x472b();}export const menuList={'service':a85_0x1b9ac9(0x1f2),'command':a85_0x1b9ac9(0x215),'description':a85_0x1b9ac9(0x204),'risk':a85_0x1b9ac9(0x216),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x1b9ac9(0x1f8),'type':a85_0x1b9ac9(0x1fd),'description':a85_0x1b9ac9(0x205)}],async 'execute'(_0x32498f){const _0x3f698e=a85_0x1b9ac9,_0x2f8600=_0x32498f[_0x3f698e(0x219)]('verbose'),_0x18b34c=await platformFetch(getApiDomain()+_0x3f698e(0x217)+_0x32498f[_0x3f698e(0x214)],{'cookie':_0x32498f[_0x3f698e(0x207)],'label':'Fetch\x20menu\x20list'}),_0x3b6357=flattenMenuItems(Array[_0x3f698e(0x209)](_0x18b34c)?_0x18b34c:[],{'verbose':_0x2f8600,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x3b6357[_0x3f698e(0x211)],'menus':_0x3b6357},'message':_0x3b6357[_0x3f698e(0x211)]===0x0?'No\x20menus\x20found.':_0x3f698e(0x202)+_0x3b6357[_0x3f698e(0x211)]+'\x20menu(s)'};}};function flattenMenuItems(_0x18cbee,_0x14fd12){const _0x42597a=a85_0x1b9ac9,_0x28d9de=sortMenuItems(_0x18cbee),_0x415637=[];for(const _0x4f4102 of _0x28d9de){_0x415637[_0x42597a(0x20a)](toMenuListItem(_0x4f4102,_0x14fd12)),Array[_0x42597a(0x209)](_0x4f4102[_0x42597a(0x1f4)])&&_0x4f4102[_0x42597a(0x1f4)][_0x42597a(0x211)]>0x0&&_0x415637[_0x42597a(0x20a)](...flattenMenuItems(_0x4f4102[_0x42597a(0x1f4)],{'verbose':_0x14fd12[_0x42597a(0x1f8)],'parentId':_0x4f4102['id'],'depth':_0x14fd12[_0x42597a(0x208)]+0x1}));}return _0x415637;}function sortMenuItems(_0x4da5de){const _0x366f47=a85_0x1b9ac9;return _0x4da5de[_0x366f47(0x20c)]((_0x4b42c8,_0x3b9769)=>({'item':_0x4b42c8,'index':_0x3b9769}))[_0x366f47(0x20f)]((_0x2eb67d,_0x39d1cf)=>{const _0x4e3065=_0x366f47,_0x47e870=normalizeSort(_0x2eb67d[_0x4e3065(0x1f5)][_0x4e3065(0x20f)]),_0x8ad238=normalizeSort(_0x39d1cf['item'][_0x4e3065(0x20f)]);if(_0x47e870!==_0x8ad238)return _0x47e870-_0x8ad238;return _0x2eb67d[_0x4e3065(0x200)]-_0x39d1cf['index'];})['map'](({item:_0x1eefdb})=>_0x1eefdb);}function toMenuListItem(_0x342963,_0x352b8d){const _0x5b21e9=a85_0x1b9ac9,_0x23ffdb={'id':_0x342963['id'],'parentId':_0x352b8d[_0x5b21e9(0x218)],'depth':_0x352b8d[_0x5b21e9(0x208)],'label':normalizeString(_0x342963[_0x5b21e9(0x203)]),'path':normalizeString(_0x342963[_0x5b21e9(0x1fe)]),'type':normalizeString(_0x342963[_0x5b21e9(0x213)]),'visible':typeof _0x342963[_0x5b21e9(0x1fa)]===_0x5b21e9(0x1fd)?_0x342963['visible']:null,'sort':typeof _0x342963[_0x5b21e9(0x20f)]===_0x5b21e9(0x1f3)&&Number['isFinite'](_0x342963[_0x5b21e9(0x20f)])?_0x342963[_0x5b21e9(0x20f)]:null,'resources':normalizeResources(_0x342963[_0x5b21e9(0x1f7)]?.['resources'])};return _0x352b8d[_0x5b21e9(0x1f8)]&&(_0x23ffdb[_0x5b21e9(0x1f7)]=_0x342963[_0x5b21e9(0x1f7)]??null),_0x23ffdb;}function normalizeSort(_0x18e156){const _0x48d09c=a85_0x1b9ac9;return typeof _0x18e156===_0x48d09c(0x1f3)&&Number['isFinite'](_0x18e156)?_0x18e156:Number[_0x48d09c(0x1fb)];}function normalizeString(_0x43ef43){const _0x45f904=a85_0x1b9ac9;return typeof _0x43ef43===_0x45f904(0x1fc)?_0x43ef43:'';}function normalizeResources(_0x559609){const _0x272b3a=a85_0x1b9ac9;if(Array[_0x272b3a(0x209)](_0x559609))return _0x559609[_0x272b3a(0x20c)](String);if(typeof _0x559609!==_0x272b3a(0x1fc))return[];try{const _0x4a91d7=JSON[_0x272b3a(0x1f9)](_0x559609);return Array[_0x272b3a(0x209)](_0x4a91d7)?_0x4a91d7[_0x272b3a(0x20c)](String):[];}catch{return[];}}
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 +1 @@
1
- (function(_0x3c4823,_0x17e1ea){const _0x19963e=a86_0x431d,_0x7bf6fa=_0x3c4823();while(!![]){try{const _0x590d19=parseInt(_0x19963e(0xa0))/0x1+-parseInt(_0x19963e(0x9a))/0x2*(parseInt(_0x19963e(0x8b))/0x3)+-parseInt(_0x19963e(0x96))/0x4+-parseInt(_0x19963e(0x99))/0x5*(parseInt(_0x19963e(0x98))/0x6)+parseInt(_0x19963e(0x95))/0x7+-parseInt(_0x19963e(0x85))/0x8+-parseInt(_0x19963e(0x97))/0x9*(-parseInt(_0x19963e(0x9f))/0xa);if(_0x590d19===_0x17e1ea)break;else _0x7bf6fa['push'](_0x7bf6fa['shift']());}catch(_0x23323d){_0x7bf6fa['push'](_0x7bf6fa['shift']());}}}(a86_0x2adf,0x23914));function strWidth(_0x5db54d){let _0x123fd3=0x0;for(const _0x12cf6b of _0x5db54d){_0x123fd3+=/[\u4e00-\u9fa5]/['test'](_0x12cf6b)?0x2:0x1;}return _0x123fd3;}function padRight(_0x1ac278,_0x150d5b){const _0x7cd637=a86_0x431d,_0x3b3066=strWidth(_0x1ac278);return _0x1ac278+'\x20'[_0x7cd637(0x8a)](Math['max'](0x0,_0x150d5b-_0x3b3066));}function a86_0x431d(_0x33e3fb,_0x594930){_0x33e3fb=_0x33e3fb-0x85;const _0x2adfdd=a86_0x2adf();let _0x431d5d=_0x2adfdd[_0x33e3fb];return _0x431d5d;}function a86_0x2adf(){const _0x15b53b=['357vTzyHC','\x20\x20\x20\x20JS:\x20\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20\x20\x20CSS:\x20','label','max','join','push','showOnline','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','1819748dbFOqu','308664FRnAUi','60912zcDOky','2382RaCbWH','1315sdMITv','1862wQqnNN','online','Local','map','local','300nqtAfp','155885yFoFHL','1446712zSXuRa','\x20\x20Affected\x20menus:\x20','length','Platform','(unchanged)','repeat'];a86_0x2adf=function(){return _0x15b53b;};return a86_0x2adf();}export function renderCompareTable(_0x104133,_0x136c58={}){const _0xd03d92=a86_0x431d;if(_0x104133[_0xd03d92(0x87)]===0x0)return'';const _0x3dcf33=_0x136c58[_0xd03d92(0x93)]??!![],_0x1c117f=Math[_0xd03d92(0x90)](0x1e,..._0x104133[_0xd03d92(0x9d)](_0x3605d6=>strWidth(_0x3605d6['label']))),_0x2086d8=0x4,_0x8f9c8a=[],_0x1733c5='\x20\x20'+padRight('Menu\x20Name',_0x1c117f),_0x575533=padRight(_0xd03d92(0x9c),_0x2086d8),_0xce12ba=_0x3dcf33?'\x20\x20'+padRight(_0xd03d92(0x88),_0x2086d8):'';_0x8f9c8a[_0xd03d92(0x92)](_0x1733c5+'\x20\x20'+_0x575533+(_0x3dcf33?_0xce12ba:'')),_0x8f9c8a[_0xd03d92(0x92)]('\x20\x20'+'─'['repeat'](_0x1c117f)+'\x20\x20'+'─'[_0xd03d92(0x8a)](_0x2086d8)+(_0x3dcf33?'\x20\x20'+'─'[_0xd03d92(0x8a)](_0x2086d8):''));for(const _0x4e1a53 of _0x104133){const _0x157ad5=padRight(_0x4e1a53[_0xd03d92(0x8f)],_0x1c117f),_0xe014e5=_0x4e1a53[_0xd03d92(0x9e)]?'✓':'✗',_0x1c2be8=padRight(_0xe014e5,_0x2086d8);let _0xca11ad='\x20\x20'+_0x157ad5+'\x20\x20'+_0x1c2be8;if(_0x3dcf33){const _0x46896b=_0x4e1a53[_0xd03d92(0x9b)]?'✓':'✗';_0xca11ad+='\x20\x20'+padRight(_0x46896b,_0x2086d8);}_0x8f9c8a[_0xd03d92(0x92)](_0xca11ad);}return _0x8f9c8a['join']('\x0a');}export function renderSyncSummary(_0x5cf77a,_0x55d0a4){const _0x2dd3bc=a86_0x431d;if(_0x5cf77a['length']===0x0)return _0x55d0a4?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':'\x20\x20No\x20pages\x20to\x20sync.';const _0x582672=['\x20\x20'+_0x5cf77a[_0x2dd3bc(0x87)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x39b52d of _0x5cf77a){_0x582672[_0x2dd3bc(0x92)]('\x20\x20\x20\x20•\x20'+_0x39b52d[_0x2dd3bc(0x8f)]+'\x20('+_0x39b52d['path']+')');}return _0x582672[_0x2dd3bc(0x91)]('\x0a');}export function renderUpdateSummary(_0x4a799d,_0x3aaa11){const _0x307ab5=a86_0x431d;if(_0x4a799d[_0x307ab5(0x87)]===0x0)return _0x307ab5(0x8d);const _0x549b3e=['\x20\x20'+_0x4a799d['length']+_0x307ab5(0x94),_0x307ab5(0x8c)+(_0x3aaa11[0x0]??_0x307ab5(0x89)),_0x307ab5(0x8e)+(_0x3aaa11[0x1]??'(unchanged)'),'',_0x307ab5(0x86)+_0x4a799d['join'](',\x20')];return _0x549b3e['join']('\x0a');}
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 +1 @@
1
- function a87_0x5447(_0x4effa7,_0x5b71ae){_0x4effa7=_0x4effa7-0x162;var _0x3b01a6=a87_0x3b01();var _0x54471f=_0x3b01a6[_0x4effa7];return _0x54471f;}(function(_0x1dd0db,_0x194ee3){var _0x1f82e7=a87_0x5447,_0x387efa=_0x1dd0db();while(!![]){try{var _0x22a2a4=-parseInt(_0x1f82e7(0x163))/0x1+-parseInt(_0x1f82e7(0x164))/0x2+parseInt(_0x1f82e7(0x166))/0x3+parseInt(_0x1f82e7(0x169))/0x4*(-parseInt(_0x1f82e7(0x162))/0x5)+parseInt(_0x1f82e7(0x16b))/0x6*(-parseInt(_0x1f82e7(0x168))/0x7)+-parseInt(_0x1f82e7(0x165))/0x8+-parseInt(_0x1f82e7(0x167))/0x9*(-parseInt(_0x1f82e7(0x16a))/0xa);if(_0x22a2a4===_0x194ee3)break;else _0x387efa['push'](_0x387efa['shift']());}catch(_0x234e8f){_0x387efa['push'](_0x387efa['shift']());}}}(a87_0x3b01,0xf3b3f));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_0x3b01(){var _0x4b2001=['8052919MioOAV','37552IfUvSA','40121570LgQOxB','6cCIPuy','785gYXHCh','502724IELTnL','542966NayxDq','4432eahfyA','1155432KIJmQx','9iscOBF'];a87_0x3b01=function(){return _0x4b2001;};return a87_0x3b01();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_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 +1 @@
1
- (function(_0x21ccd0,_0x410530){const _0x324196=a88_0x3d6a,_0x4197b6=_0x21ccd0();while(!![]){try{const _0x4575ba=-parseInt(_0x324196(0x176))/0x1+-parseInt(_0x324196(0x165))/0x2+parseInt(_0x324196(0x187))/0x3+parseInt(_0x324196(0x168))/0x4+-parseInt(_0x324196(0x178))/0x5*(-parseInt(_0x324196(0x17a))/0x6)+parseInt(_0x324196(0x181))/0x7+-parseInt(_0x324196(0x169))/0x8;if(_0x4575ba===_0x410530)break;else _0x4197b6['push'](_0x4197b6['shift']());}catch(_0x5a7909){_0x4197b6['push'](_0x4197b6['shift']());}}}(a88_0x4468,0x63007));import a88_0x3ef7e4 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x5c4f1c from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x124bee){return _0x124bee['catch'](_0x56a931=>{const _0x1d73a2=a88_0x3d6a;if(_0x56a931?.[_0x1d73a2(0x16a)]==='ExitPromptError')throw CliErrors[_0x1d73a2(0x17d)](_0x1d73a2(0x16e));throw _0x56a931;});}export function startSpinner(_0x4e5e1a){const _0x41df05=a88_0x3d6a;return a88_0x5c4f1c({'text':_0x4e5e1a,'color':_0x41df05(0x186)})[_0x41df05(0x175)]();}function a88_0x4468(){const _0x3317b8=['\x20\x20CSS\x20URL:','green','\x20\x20JS\x20URL:','stdin','248570DsVugP','error','fail','617076udycMv','426912szMhhK','name','[new]','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','label','Cancelled.','length','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','red','map','JS\x20URL\x20check\x20failed','start','773266GOQDKc','CSS\x20URL\x20check\x20failed','15nMAKEI','trim','83484iZZNui','includes','No\x20menus\x20selected.','cancelled','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','path','isTTY','5641531nuYjEZ','test','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Checking\x20JS\x20URL\x20reachability...','CSS\x20URL\x20checked','cyan','1063446NPkuLl','[already\x20on\x20platform]'];a88_0x4468=function(){return _0x3317b8;};return a88_0x4468();}export function stopSpinner(_0xf75caf,_0x197ddd,_0x43235d){const _0x4cab3c=a88_0x3d6a;_0x43235d?_0xf75caf['succeed'](_0x197ddd):_0xf75caf[_0x4cab3c(0x167)](_0x197ddd);}export async function askConfirm(_0x1f14cb){return onCancel(confirm({'message':_0x1f14cb,'theme':{'prefix':''}}));}export async function askJsUrl(_0x8f7f37){const _0x3ba385=a88_0x3d6a;while(!![]){const _0x4a23ea=await onCancel(input({'message':_0x3ba385(0x163),'default':_0x8f7f37,'theme':{'prefix':''}}));if(_0x4a23ea[_0x3ba385(0x179)]()==='')throw CliErrors[_0x3ba385(0x17d)](_0x3ba385(0x16e));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x4a23ea[_0x3ba385(0x179)]())){console[_0x3ba385(0x166)](a88_0x3ef7e4[_0x3ba385(0x172)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x347671=startSpinner(_0x3ba385(0x184));try{const _0x21677e=await isUrlReachable(_0x4a23ea[_0x3ba385(0x179)]());stopSpinner(_0x347671,'JS\x20URL\x20checked',_0x21677e);if(!_0x21677e){console[_0x3ba385(0x166)](a88_0x3ef7e4[_0x3ba385(0x172)](_0x3ba385(0x183)));continue;}return _0x4a23ea[_0x3ba385(0x179)]();}catch(_0x26666a){stopSpinner(_0x347671,_0x3ba385(0x174),![]);throw _0x26666a;}}}export async function askCssUrl(_0x426a6c){const _0x4da63c=a88_0x3d6a;while(!![]){const _0x53d0f7=await onCancel(input({'message':_0x4da63c(0x189),'default':_0x426a6c,'theme':{'prefix':''}}));if(_0x53d0f7['trim']()==='')throw CliErrors['cancelled'](_0x4da63c(0x16e));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4da63c(0x182)](_0x53d0f7[_0x4da63c(0x179)]())){console[_0x4da63c(0x166)](a88_0x3ef7e4[_0x4da63c(0x172)](_0x4da63c(0x170)));continue;}const _0x1ba564=startSpinner(_0x4da63c(0x171));try{const _0x261890=await isUrlReachable(_0x53d0f7[_0x4da63c(0x179)]());stopSpinner(_0x1ba564,_0x4da63c(0x185),_0x261890);if(!_0x261890){console[_0x4da63c(0x166)](a88_0x3ef7e4[_0x4da63c(0x172)](_0x4da63c(0x17e)));continue;}return _0x53d0f7[_0x4da63c(0x179)]();}catch(_0xcecb7d){stopSpinner(_0x1ba564,_0x4da63c(0x177),![]);throw _0xcecb7d;}}}function a88_0x3d6a(_0x193128,_0x902ba){_0x193128=_0x193128-0x162;const _0x446899=a88_0x4468();let _0x3d6add=_0x446899[_0x193128];return _0x3d6add;}export async function selectPages(_0x468ea5,_0x1a3a25,_0x2ffa41){const _0x239d63=a88_0x3d6a,_0x43af79=_0x468ea5[_0x239d63(0x173)](_0x26da5e=>({'name':_0x26da5e[_0x239d63(0x16d)]+'\x20\x20'+(_0x1a3a25['has'](_0x26da5e['path'])?a88_0x3ef7e4['gray'](_0x239d63(0x188)):a88_0x3ef7e4[_0x239d63(0x162)](_0x239d63(0x16b))),'value':_0x26da5e[_0x239d63(0x16d)],'checked':_0x2ffa41?_0x2ffa41[_0x239d63(0x17b)](_0x26da5e['label']):!_0x1a3a25['has'](_0x26da5e[_0x239d63(0x17f)])}));if(_0x43af79[_0x239d63(0x16f)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x18b35e=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x43af79,'loop':![],'theme':{'prefix':''}}));if(_0x18b35e[_0x239d63(0x16f)]===0x0)throw new Error(_0x239d63(0x17c));return _0x468ea5['filter'](_0x343fa0=>_0x18b35e[_0x239d63(0x17b)](_0x343fa0[_0x239d63(0x16d)]));}export function isInteractive(){const _0x3cf056=a88_0x3d6a;return process[_0x3cf056(0x164)][_0x3cf056(0x180)]===!![];}export function requireInteractive(){const _0x40b3e7=a88_0x3d6a;if(!isInteractive())throw new Error(_0x40b3e7(0x16c)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
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.');}