@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.15

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 (264) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -1
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- const a92_0x2d5364=a92_0x55ad;(function(_0x248c5f,_0x25e579){const _0x53d848=a92_0x55ad,_0x3e2338=_0x248c5f();while(!![]){try{const _0x23db6b=-parseInt(_0x53d848(0x18c))/0x1+parseInt(_0x53d848(0x188))/0x2*(-parseInt(_0x53d848(0x190))/0x3)+parseInt(_0x53d848(0x18f))/0x4+-parseInt(_0x53d848(0x176))/0x5*(-parseInt(_0x53d848(0x178))/0x6)+-parseInt(_0x53d848(0x192))/0x7*(-parseInt(_0x53d848(0x17d))/0x8)+-parseInt(_0x53d848(0x182))/0x9+-parseInt(_0x53d848(0x17f))/0xa*(-parseInt(_0x53d848(0x189))/0xb);if(_0x23db6b===_0x25e579)break;else _0x3e2338['push'](_0x3e2338['shift']());}catch(_0xea996c){_0x3e2338['push'](_0x3e2338['shift']());}}}(a92_0x583c,0xb95e6));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 a92_0x583c(){const _0x3304de=['username','218rFVDPM','340164nnHjqD','password','dbname','1038501ZRDQQz','write','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','609740jnNdYR','28515kRPIVQ','has','6671fjEmoV','dbUrl','validation','New\x20database\x20name','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','string','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','245vvYAyy','dburl','128292KWZyhU','Updated\x20db\x20link\x20','[redacted]','trim','dbParam','11736RHfExM','dbName','130KKsHDp','str','New\x20username','1497600DaSfHm','dbdesc','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','num','dbparam'];a92_0x583c=function(){return _0x3304de;};return a92_0x583c();}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a92_0x2d5364(0x17a)]);function a92_0x55ad(_0x321f3d,_0xc203da){_0x321f3d=_0x321f3d-0x170;const _0x583c40=a92_0x583c();let _0x55ada4=_0x583c40[_0x321f3d];return _0x55ada4;}function mergeDbLinkUpdate(_0x1f92a4,_0xd6b86a){const _0x47b441=a92_0x2d5364,_0x56df77={..._0x1f92a4},_0x53a925=_0xd6b86a['str'](_0x47b441(0x18a));if(_0x53a925&&MASKED_PASSWORD_VALUES['has'](_0x53a925))throw CliErrors[_0x47b441(0x170)](_0x47b441(0x18e));if(!_0x53a925&&MASKED_PASSWORD_VALUES[_0x47b441(0x191)](String(_0x1f92a4[_0x47b441(0x18a)]??'')))throw CliErrors[_0x47b441(0x170)](_0x47b441(0x184));const _0x3b64df=_0xd6b86a[_0x47b441(0x180)](_0x47b441(0x18b));if(_0x3b64df)_0x56df77[_0x47b441(0x17e)]=_0x3b64df;const _0x2cdb34=_0xd6b86a[_0x47b441(0x180)]('dburl');if(_0x2cdb34)_0x56df77[_0x47b441(0x193)]=_0x2cdb34[_0x47b441(0x17b)]();const _0xa5b192=_0xd6b86a['str'](_0x47b441(0x187));if(_0xa5b192)_0x56df77[_0x47b441(0x187)]=_0xa5b192;if(_0x53a925)_0x56df77[_0x47b441(0x18a)]=_0x53a925;const _0x18dccc=_0xd6b86a[_0x47b441(0x180)](_0x47b441(0x186));if(_0x18dccc)_0x56df77[_0x47b441(0x17c)]=_0x18dccc;const _0x3f7203=_0xd6b86a['str'](_0x47b441(0x183));if(_0x3f7203)_0x56df77['dbDesc']=_0x3f7203;return _0x56df77;}export const dbUpdate={'service':'db','command':'update','description':a92_0x2d5364(0x175),'risk':a92_0x2d5364(0x18d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a92_0x2d5364(0x18b),'type':a92_0x2d5364(0x174),'description':a92_0x2d5364(0x171)},{'name':a92_0x2d5364(0x177),'type':a92_0x2d5364(0x174),'description':'New\x20host:port'},{'name':a92_0x2d5364(0x187),'type':a92_0x2d5364(0x174),'description':a92_0x2d5364(0x181)},{'name':'password','type':a92_0x2d5364(0x174),'description':a92_0x2d5364(0x173)},{'name':a92_0x2d5364(0x186),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a92_0x2d5364(0x174),'description':'New\x20description'}],async 'validate'(_0x3b995b){const _0x4ce3da=a92_0x2d5364,_0x70614c=_0x3b995b[_0x4ce3da(0x180)](_0x4ce3da(0x177));if(_0x70614c&&!validateDbUrl(_0x70614c['trim']()))throw CliErrors[_0x4ce3da(0x170)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x70614c+'\x22');},async 'dryRun'(_0x2a7ded){const _0x2f56e0=a92_0x2d5364,_0x5c5b83=_0x2a7ded[_0x2f56e0(0x185)]('id'),_0x7efd41=await getDbLinkInfo(_0x5c5b83),_0x5502df=mergeDbLinkUpdate(_0x7efd41,_0x2a7ded),_0x78dace=sanitizeDbLinkForOutput(_0x5502df);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x78dace,'description':_0x2f56e0(0x172)};},async 'execute'(_0x291b8c){const _0x44fe98=a92_0x2d5364,_0x3a84a4=_0x291b8c[_0x44fe98(0x185)]('id'),_0xe57b85=await getDbLinkInfo(_0x3a84a4),_0x246559=mergeDbLinkUpdate(_0xe57b85,_0x291b8c),{id:_0x5a8010,entity:_0x286c7f}=normalizeEntityWithIdResponse(await updateDbLink(_0x246559));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x286c7f),'message':_0x44fe98(0x179)+(_0x5a8010??_0x3a84a4)};}};
1
+ const a92_0x31ce41=a92_0x58d5;(function(_0x74bd3e,_0x43181a){const _0x3fb459=a92_0x58d5,_0x26f27a=_0x74bd3e();while(!![]){try{const _0x228b22=parseInt(_0x3fb459(0x1bc))/0x1+-parseInt(_0x3fb459(0x1b5))/0x2*(parseInt(_0x3fb459(0x1a2))/0x3)+parseInt(_0x3fb459(0x1a1))/0x4+-parseInt(_0x3fb459(0x1a5))/0x5+parseInt(_0x3fb459(0x1b0))/0x6*(-parseInt(_0x3fb459(0x1c2))/0x7)+parseInt(_0x3fb459(0x1b3))/0x8+parseInt(_0x3fb459(0x19e))/0x9;if(_0x228b22===_0x43181a)break;else _0x26f27a['push'](_0x26f27a['shift']());}catch(_0x997914){_0x26f27a['push'](_0x26f27a['shift']());}}}(a92_0x29bb,0xc4a45));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a92_0x58d5(_0x56c6ba,_0x24063f){_0x56c6ba=_0x56c6ba-0x19b;const _0x29bbc3=a92_0x29bb();let _0x58d5d6=_0x29bbc3[_0x56c6ba];return _0x58d5d6;}const MASKED_PASSWORD_VALUES=new Set([a92_0x31ce41(0x1a6),a92_0x31ce41(0x1a3)]);function a92_0x29bb(){const _0x3b115f=['dbdesc','dbDesc','POST','dbParam','trim','New\x20host:port','string','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','New\x20database\x20name','552MFagjR','username','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','9390112QlUJjH','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','14KKoDsB','dbparam','password','str','Updated\x20db\x20link\x20','write','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','257887WcWxLh','has','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbName','validation','New\x20connection\x20parameter\x20string','106078MJyYgC','dbname','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','num','24751296ehmNuS','dbUrl','dburl','2246744MZTAof','475713HvlDfF','[redacted]','New\x20description','7169355jJcJMj','******'];a92_0x29bb=function(){return _0x3b115f;};return a92_0x29bb();}function mergeDbLinkUpdate(_0x531a8d,_0x3c23b5){const _0x338af7=a92_0x31ce41,_0x1a1e32={..._0x531a8d},_0x5477af=_0x3c23b5[_0x338af7(0x1b8)](_0x338af7(0x1b7));if(_0x5477af&&MASKED_PASSWORD_VALUES[_0x338af7(0x1bd)](_0x5477af))throw CliErrors[_0x338af7(0x1c0)](_0x338af7(0x1bb));if(!_0x5477af&&MASKED_PASSWORD_VALUES[_0x338af7(0x1bd)](String(_0x531a8d[_0x338af7(0x1b7)]??'')))throw CliErrors['validation'](_0x338af7(0x1b4));const _0x45df74=_0x3c23b5[_0x338af7(0x1b8)](_0x338af7(0x19b));if(_0x45df74)_0x1a1e32[_0x338af7(0x1bf)]=_0x45df74;const _0x5de0ce=_0x3c23b5[_0x338af7(0x1b8)](_0x338af7(0x1a0));if(_0x5de0ce)_0x1a1e32[_0x338af7(0x19f)]=_0x5de0ce['trim']();const _0x934171=_0x3c23b5[_0x338af7(0x1b8)]('username');if(_0x934171)_0x1a1e32[_0x338af7(0x1b1)]=_0x934171;if(_0x5477af)_0x1a1e32['password']=_0x5477af;const _0x455be1=_0x3c23b5[_0x338af7(0x1b8)](_0x338af7(0x1b6));if(_0x455be1)_0x1a1e32[_0x338af7(0x1aa)]=_0x455be1;const _0x594de4=_0x3c23b5[_0x338af7(0x1b8)](_0x338af7(0x1a7));if(_0x594de4)_0x1a1e32[_0x338af7(0x1a8)]=_0x594de4;return _0x1a1e32;}export const dbUpdate={'service':'db','command':'update','description':a92_0x31ce41(0x1b2),'risk':a92_0x31ce41(0x1ba),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a92_0x31ce41(0x19b),'type':a92_0x31ce41(0x1ad),'description':a92_0x31ce41(0x1af)},{'name':a92_0x31ce41(0x1a0),'type':a92_0x31ce41(0x1ad),'description':a92_0x31ce41(0x1ac)},{'name':a92_0x31ce41(0x1b1),'type':a92_0x31ce41(0x1ad),'description':'New\x20username'},{'name':a92_0x31ce41(0x1b7),'type':a92_0x31ce41(0x1ad),'description':a92_0x31ce41(0x1ae)},{'name':a92_0x31ce41(0x1b6),'type':a92_0x31ce41(0x1ad),'description':a92_0x31ce41(0x1c1)},{'name':a92_0x31ce41(0x1a7),'type':'string','description':a92_0x31ce41(0x1a4)}],async 'validate'(_0x26293e){const _0x4836f7=a92_0x31ce41,_0x1c618e=_0x26293e[_0x4836f7(0x1b8)]('dburl');if(_0x1c618e&&!validateDbUrl(_0x1c618e[_0x4836f7(0x1ab)]()))throw CliErrors[_0x4836f7(0x1c0)](_0x4836f7(0x19c)+_0x1c618e+'\x22');},async 'dryRun'(_0x27dac9){const _0x54bad7=a92_0x31ce41,_0x53e22f=_0x27dac9[_0x54bad7(0x19d)]('id'),_0x3f6d7f=await getDbLinkInfo(_0x53e22f),_0x5086b5=mergeDbLinkUpdate(_0x3f6d7f,_0x27dac9),_0x5d5361=sanitizeDbLinkForOutput(_0x5086b5);return{'method':_0x54bad7(0x1a9),'url':'/smartapi/dblink/update','body':_0x5d5361,'description':_0x54bad7(0x1be)};},async 'execute'(_0x3532e6){const _0x29f3a4=a92_0x31ce41,_0x535f56=_0x3532e6[_0x29f3a4(0x19d)]('id'),_0x2d5b28=await getDbLinkInfo(_0x535f56),_0x157d43=mergeDbLinkUpdate(_0x2d5b28,_0x3532e6),{id:_0x395c8c,entity:_0x1dd0cc}=normalizeEntityWithIdResponse(await updateDbLink(_0x157d43));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1dd0cc),'message':_0x29f3a4(0x1b9)+(_0x395c8c??_0x535f56)};}};
@@ -1 +1 @@
1
- const a93_0x25d8a0=a93_0x42b3;(function(_0x570ce5,_0x47abc0){const _0x9da522=a93_0x42b3,_0x14415b=_0x570ce5();while(!![]){try{const _0x4bdce=-parseInt(_0x9da522(0xbf))/0x1+-parseInt(_0x9da522(0xa5))/0x2*(parseInt(_0x9da522(0xb9))/0x3)+parseInt(_0x9da522(0x8f))/0x4*(-parseInt(_0x9da522(0xda))/0x5)+parseInt(_0x9da522(0xd2))/0x6+-parseInt(_0x9da522(0xaf))/0x7*(-parseInt(_0x9da522(0x92))/0x8)+parseInt(_0x9da522(0xb8))/0x9+parseInt(_0x9da522(0x94))/0xa*(-parseInt(_0x9da522(0xce))/0xb);if(_0x4bdce===_0x47abc0)break;else _0x14415b['push'](_0x14415b['shift']());}catch(_0x19ccba){_0x14415b['push'](_0x14415b['shift']());}}}(a93_0x36e2,0x745dd));import a93_0x1f240e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a93_0x42b3(_0x4b9c36,_0x56acd8){_0x4b9c36=_0x4b9c36-0x85;const _0x36e270=a93_0x36e2();let _0x42b395=_0x36e270[_0x4b9c36];return _0x42b395;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x24d8a9){const _0x2b8809=a93_0x42b3,_0x1b30b5=GIT_COMMIT!==_0x2b8809(0xa3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x256997=buildConfigFromFlags({}),_0x15494a=getCookie();console[_0x2b8809(0xa4)](),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0xd0)](CLI_BIN_NAME+_0x2b8809(0xa1))),console['log'](a93_0x1f240e[_0x2b8809(0x8a)]('─'[_0x2b8809(0xc9)](0x32))),console[_0x2b8809(0xa4)](_0x2b8809(0xc4)+_0x1b30b5),console[_0x2b8809(0xa4)](_0x2b8809(0xb6)+process['version']),console[_0x2b8809(0xa4)](_0x2b8809(0x97)+process['platform']+'\x20'+process['arch']),console[_0x2b8809(0xa4)](),console['log'](a93_0x1f240e['bold'](_0x2b8809(0x88))),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xcb)['repeat'](0x1e)));const _0x119387=getGlobalConfigPath(),_0x32bd1b=getProjectConfigPath();console['log'](_0x2b8809(0x86)+(_0x119387||a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xc3)))),console[_0x2b8809(0xa4)](_0x2b8809(0xd9)+(_0x32bd1b||a93_0x1f240e['gray']('(not\x20found)'))),console['log'](),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0xd0)](_0x2b8809(0xa2))),console['log'](a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xcb)['repeat'](0x1e)));const _0x2b3879=(_0x12b8bf,_0x10c3cb)=>{const _0x366b94=_0x2b8809;if(!_0x10c3cb){console['log']('\x20\x20'+_0x12b8bf[_0x366b94(0xad)](0x11)+'\x20'+a93_0x1f240e[_0x366b94(0x8a)](_0x366b94(0xac)));return;}const _0x26f315=inspectCliConfigJsonFile(_0x10c3cb);if(_0x26f315['status']==='ok')console[_0x366b94(0xa4)]('\x20\x20'+_0x12b8bf['padEnd'](0x11)+'\x20'+a93_0x1f240e[_0x366b94(0xa8)](_0x366b94(0x8b)));else{if(_0x26f315[_0x366b94(0x8d)]===_0x366b94(0xc2))console[_0x366b94(0xa4)]('\x20\x20'+_0x12b8bf[_0x366b94(0xad)](0x11)+'\x20'+a93_0x1f240e[_0x366b94(0xc0)](_0x366b94(0x9e)));else _0x26f315[_0x366b94(0x8d)]===_0x366b94(0xab)?console[_0x366b94(0xa4)]('\x20\x20'+_0x12b8bf[_0x366b94(0xad)](0x11)+'\x20'+a93_0x1f240e[_0x366b94(0x8a)](_0x366b94(0xb2))):(console['log']('\x20\x20'+_0x12b8bf['padEnd'](0x11)+'\x20'+a93_0x1f240e['red']('✗\x20Invalid\x20JSON')),console[_0x366b94(0xa4)]('\x20\x20'+''[_0x366b94(0xad)](0x11)+'\x20'+a93_0x1f240e[_0x366b94(0xcd)](_0x26f315[_0x366b94(0xd6)])));}};_0x2b3879('Global',_0x119387),_0x2b3879(_0x2b8809(0xb7),_0x32bd1b),console[_0x2b8809(0xa4)](),console['log'](a93_0x1f240e[_0x2b8809(0xd0)](_0x2b8809(0xb5))),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xcb)['repeat'](0x1e))),console[_0x2b8809(0xa4)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x256997[_0x2b8809(0x9d)]||a93_0x1f240e['red']('(not\x20set)'))),console['log'](_0x2b8809(0xb0)+_0x256997[_0x2b8809(0xc8)]),console[_0x2b8809(0xa4)](_0x2b8809(0x9c)+_0x256997[_0x2b8809(0xbd)]),console[_0x2b8809(0xa4)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x256997[_0x2b8809(0xd8)]),console['log'](_0x2b8809(0x9a)+(_0x256997[_0x2b8809(0x98)]||a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xbc)))),console[_0x2b8809(0xa4)](_0x2b8809(0x9f)+(_0x256997[_0x2b8809(0x87)]||a93_0x1f240e['gray'](_0x2b8809(0xbc)))),console[_0x2b8809(0xa4)](_0x2b8809(0xae)+(_0x256997[_0x2b8809(0xd4)]||a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xbc)))),console[_0x2b8809(0xa4)](_0x2b8809(0xd3)+(_0x256997[_0x2b8809(0xc1)]||a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xa7)+DEFAULT_CONFIG_VALUES[_0x2b8809(0xc1)]+')'))),console[_0x2b8809(0xa4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x256997[_0x2b8809(0xc6)]??a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xdb)))),console['log'](_0x2b8809(0xb3)+_0x256997['riskLevel']),console[_0x2b8809(0xa4)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x256997[_0x2b8809(0xa9)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x256997[_0x2b8809(0xb1)]?a93_0x1f240e['green'](_0x2b8809(0xcc)+_0x256997[_0x2b8809(0xb1)][_0x2b8809(0xa0)]+')'):_0x15494a?a93_0x1f240e[_0x2b8809(0xa8)](_0x2b8809(0x89)+_0x15494a[_0x2b8809(0xa0)]+')'):a93_0x1f240e[_0x2b8809(0x8a)]('(none)')));const _0x470f63=Object[_0x2b8809(0x91)](_0x256997[_0x2b8809(0xc7)]);if(_0x470f63[_0x2b8809(0xa0)]>0x0){console[_0x2b8809(0xa4)](),console['log'](a93_0x1f240e['bold'](_0x2b8809(0x90))),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xcb)[_0x2b8809(0xc9)](0x1e)));for(const _0x483c4d of _0x470f63){const _0x229f50=_0x256997[_0x2b8809(0xc7)][_0x483c4d],_0x353ea7=_0x483c4d===_0x256997[_0x2b8809(0x98)],_0x53a442=_0x483c4d===_0x256997[_0x2b8809(0x87)],_0x42c39b=_0x53a442?a93_0x1f240e['green'](_0x2b8809(0x8e)):'',_0x220d97=_0x353ea7?'\x20(default)':'';console[_0x2b8809(0xa4)]('\x20\x20'+_0x483c4d+_0x220d97+_0x42c39b),console[_0x2b8809(0xa4)](_0x2b8809(0xc5)+_0x229f50[_0x2b8809(0xb4)]);const _0x35094e=buildAppDoctorFields(_0x229f50,{'env':_0x256997[_0x2b8809(0xc8)],'apiDir':_0x256997['raw'][_0x2b8809(0xd8)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x256997['cookie']||_0x15494a||undefined,'accessKey':_0x256997[_0x2b8809(0x93)]});console['log'](_0x2b8809(0x85)+_0x35094e['env']['value']+'\x20\x20'+a93_0x1f240e['gray']('('+_0x35094e[_0x2b8809(0xc8)]['source']+')')),console[_0x2b8809(0xa4)](_0x2b8809(0x95)+_0x35094e['apiDir'][_0x2b8809(0xd1)]+'\x20\x20'+a93_0x1f240e['gray']('('+_0x35094e[_0x2b8809(0xd8)]['source']+')'));const _0x362480=_0x35094e['cookie'][_0x2b8809(0xd1)]?a93_0x1f240e[_0x2b8809(0xa8)](_0x2b8809(0xcc)+_0x35094e[_0x2b8809(0xb1)][_0x2b8809(0xd1)][_0x2b8809(0xa0)]+')'):a93_0x1f240e['gray'](_0x2b8809(0xbc));console[_0x2b8809(0xa4)](_0x2b8809(0x99)+_0x362480+'\x20\x20'+a93_0x1f240e[_0x2b8809(0x8a)]('('+_0x35094e['cookie']['source']+')'));const _0x253aa9=_0x35094e[_0x2b8809(0x93)][_0x2b8809(0xd1)]?a93_0x1f240e[_0x2b8809(0xa8)](_0x2b8809(0xcc)+_0x35094e['accessKey'][_0x2b8809(0xd1)]['length']+')'):a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xbc));console[_0x2b8809(0xa4)](_0x2b8809(0xd7)+_0x253aa9+'\x20\x20'+a93_0x1f240e[_0x2b8809(0x8a)]('('+_0x35094e['accessKey'][_0x2b8809(0xca)]+')'));}}console['log'](),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0xd0)](_0x2b8809(0xd5))),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0x8a)](_0x2b8809(0xcb)[_0x2b8809(0xc9)](0x1e))),console[_0x2b8809(0xa4)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x2b8809(0xa4)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x2b8809(0xa4)](_0x2b8809(0xba)+getRuntimeDomain()),console['log'](),console[_0x2b8809(0xa4)](a93_0x1f240e[_0x2b8809(0xd0)](_0x2b8809(0xaa))),console[_0x2b8809(0xa4)](a93_0x1f240e['gray'](_0x2b8809(0xcb)[_0x2b8809(0xc9)](0x1e)));if(_0x15494a){const _0x25adca=await getIsSessionValid();console[_0x2b8809(0xa4)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x25adca?a93_0x1f240e[_0x2b8809(0xa8)](_0x2b8809(0x96)):a93_0x1f240e['red'](_0x2b8809(0xcf))));}else console[_0x2b8809(0xa4)](_0x2b8809(0xbb)+a93_0x1f240e[_0x2b8809(0xcd)](_0x2b8809(0xbe)));return console[_0x2b8809(0xa4)](),{'ok':!![]};}export const doctorDefinition={'service':a93_0x25d8a0(0x8c),'command':'check','description':a93_0x25d8a0(0x9b),'risk':a93_0x25d8a0(0xa6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a93_0x36e2(){const _0x132837=['message','\x20\x20\x20\x20accessKey:\x20\x20','apiDir','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','10TfWqOo','(default)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20\x20Config\x20Files','(set\x20via\x20file,\x20length=','gray','✓\x20Valid\x20JSON','doctor','status','\x20←\x20current','18172DpISkX','\x20\x20Apps','keys','5760TpBpAa','accessKey','30LMbiEM','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','length','\x20doctor','\x20\x20Config\x20JSON','unknown','log','23066Behukl','read','(default:\x20','green','verbose','\x20\x20Auth','missing','(no\x20file)','padEnd','\x20\x20explicitAppName:\x20','6622UidYWK','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','(missing)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appcode','\x20\x20Merged\x20Config','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','4803147QIuOmA','87UuETGy','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','locale','✗\x20Not\x20logged\x20in','621860EycaYs','yellow','format','empty','(not\x20found)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','apps','env','repeat','source','\x20\x20─','(set,\x20length=','red','2122263gDiGOV','✗\x20Expired','bold','value','4836216ixeZAO','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20API\x20Endpoints'];a93_0x36e2=function(){return _0x132837;};return a93_0x36e2();}
1
+ const a93_0x254dd0=a93_0x27ba;(function(_0xb54593,_0x34b546){const _0x271dc5=a93_0x27ba,_0x3d13bb=_0xb54593();while(!![]){try{const _0x2395c8=-parseInt(_0x271dc5(0x147))/0x1+parseInt(_0x271dc5(0x138))/0x2*(-parseInt(_0x271dc5(0x155))/0x3)+parseInt(_0x271dc5(0x164))/0x4*(parseInt(_0x271dc5(0x14a))/0x5)+parseInt(_0x271dc5(0x152))/0x6*(parseInt(_0x271dc5(0x118))/0x7)+-parseInt(_0x271dc5(0x145))/0x8*(parseInt(_0x271dc5(0x134))/0x9)+parseInt(_0x271dc5(0x15d))/0xa*(parseInt(_0x271dc5(0x117))/0xb)+parseInt(_0x271dc5(0x128))/0xc;if(_0x2395c8===_0x34b546)break;else _0x3d13bb['push'](_0x3d13bb['shift']());}catch(_0xbfc6a2){_0x3d13bb['push'](_0x3d13bb['shift']());}}}(a93_0x3ddc,0x63366));import a93_0x424eaa from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a93_0x27ba(_0x21d625,_0x5a2e03){_0x21d625=_0x21d625-0x113;const _0x3ddc53=a93_0x3ddc();let _0x27bae8=_0x3ddc53[_0x21d625];return _0x27bae8;}function a93_0x3ddc(){const _0x3cb8f1=['Global','version','apps','bold','value','log','red','\x20\x20Apps','2276364AOjVyx','raw','apiDir','currentApp','✗\x20Expired','read','status','yellow','keys','defaultApp','cookie','accessKey','12510BlSBJu','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20API\x20Endpoints','4mxwBkK','\x20\x20Auth','platform','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','format','arch','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','doctor','green','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','(default)','2152hotESH','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','572139YjvoeM','\x20\x20explicitAppName:\x20','verbose','85EimGrG','appCode','(not\x20set)','(no\x20file)','\x20\x20Config\x20JSON','✓\x20Valid\x20JSON','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','54wUxoPm','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Invalid\x20JSON','74973NBoQNa','length','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','env','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','20OCmvYK','✗\x20Not\x20logged\x20in','(none)','\x20\x20Merged\x20Config','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','appcode','31148ejrBvy','source','pageSize','repeat','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','message','gray','padEnd','2405678cqZrxU','500059xtXYla','explicitAppName','\x20\x20─','Project','(set\x20via\x20file,\x20length=','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'];a93_0x3ddc=function(){return _0x3cb8f1;};return a93_0x3ddc();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x9aeeea){const _0x1b5343=a93_0x27ba,_0x547809=GIT_COMMIT!==_0x1b5343(0x136)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xbea44=buildConfigFromFlags({}),_0x19c991=getCookie();console['log'](),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x123)](CLI_BIN_NAME+_0x1b5343(0x13c))),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x115)]('─'[_0x1b5343(0x167)](0x32))),console[_0x1b5343(0x125)](_0x1b5343(0x15c)+_0x547809),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1b5343(0x121)]),console['log'](_0x1b5343(0x15b)+process[_0x1b5343(0x13a)]+'\x20'+process[_0x1b5343(0x13e)]),console['log'](),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x123)](_0x1b5343(0x113))),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x11a)[_0x1b5343(0x167)](0x1e)));const _0x3396da=getGlobalConfigPath(),_0x20b73b=getProjectConfigPath();console['log'](_0x1b5343(0x161)+(_0x3396da||a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x11e)))),console[_0x1b5343(0x125)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x20b73b||a93_0x424eaa['gray'](_0x1b5343(0x11e)))),console['log'](),console['log'](a93_0x424eaa[_0x1b5343(0x123)](_0x1b5343(0x14e))),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x115)]('\x20\x20─'[_0x1b5343(0x167)](0x1e)));const _0x3887dd=(_0x31b4a6,_0x48a0a8)=>{const _0xf9ffe7=_0x1b5343;if(!_0x48a0a8){console[_0xf9ffe7(0x125)]('\x20\x20'+_0x31b4a6['padEnd'](0x11)+'\x20'+a93_0x424eaa['gray'](_0xf9ffe7(0x14d)));return;}const _0x54118d=inspectCliConfigJsonFile(_0x48a0a8);if(_0x54118d[_0xf9ffe7(0x12e)]==='ok')console[_0xf9ffe7(0x125)]('\x20\x20'+_0x31b4a6['padEnd'](0x11)+'\x20'+a93_0x424eaa[_0xf9ffe7(0x141)](_0xf9ffe7(0x14f)));else{if(_0x54118d[_0xf9ffe7(0x12e)]==='empty')console['log']('\x20\x20'+_0x31b4a6[_0xf9ffe7(0x116)](0x11)+'\x20'+a93_0x424eaa[_0xf9ffe7(0x12f)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x54118d[_0xf9ffe7(0x12e)]==='missing'?console[_0xf9ffe7(0x125)]('\x20\x20'+_0x31b4a6[_0xf9ffe7(0x116)](0x11)+'\x20'+a93_0x424eaa[_0xf9ffe7(0x115)]('(missing)')):(console['log']('\x20\x20'+_0x31b4a6['padEnd'](0x11)+'\x20'+a93_0x424eaa[_0xf9ffe7(0x126)](_0xf9ffe7(0x154))),console[_0xf9ffe7(0x125)]('\x20\x20'+''[_0xf9ffe7(0x116)](0x11)+'\x20'+a93_0x424eaa[_0xf9ffe7(0x126)](_0x54118d[_0xf9ffe7(0x114)])));}};_0x3887dd(_0x1b5343(0x120),_0x3396da),_0x3887dd(_0x1b5343(0x11b),_0x20b73b),console[_0x1b5343(0x125)](),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x123)](_0x1b5343(0x160))),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x11a)['repeat'](0x1e))),console['log'](_0x1b5343(0x13b)+(_0xbea44[_0x1b5343(0x14b)]||a93_0x424eaa['red'](_0x1b5343(0x14c)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbea44[_0x1b5343(0x158)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbea44['locale']),console[_0x1b5343(0x125)](_0x1b5343(0x146)+_0xbea44['apiDir']),console[_0x1b5343(0x125)](_0x1b5343(0x159)+(_0xbea44[_0x1b5343(0x131)]||a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x15f)))),console[_0x1b5343(0x125)](_0x1b5343(0x157)+(_0xbea44['currentApp']||a93_0x424eaa[_0x1b5343(0x115)]('(none)'))),console['log'](_0x1b5343(0x148)+(_0xbea44[_0x1b5343(0x119)]||a93_0x424eaa[_0x1b5343(0x115)]('(none)'))),console[_0x1b5343(0x125)](_0x1b5343(0x168)+(_0xbea44[_0x1b5343(0x13d)]||a93_0x424eaa[_0x1b5343(0x115)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1b5343(0x13d)]+')'))),console[_0x1b5343(0x125)](_0x1b5343(0x11f)+(_0xbea44[_0x1b5343(0x166)]??a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x144)))),console[_0x1b5343(0x125)](_0x1b5343(0x135)+_0xbea44['riskLevel']),console[_0x1b5343(0x125)](_0x1b5343(0x11d)+_0xbea44[_0x1b5343(0x149)]),console[_0x1b5343(0x125)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbea44[_0x1b5343(0x132)]?a93_0x424eaa[_0x1b5343(0x141)](_0x1b5343(0x143)+_0xbea44['cookie'][_0x1b5343(0x156)]+')'):_0x19c991?a93_0x424eaa[_0x1b5343(0x141)](_0x1b5343(0x11c)+_0x19c991[_0x1b5343(0x156)]+')'):a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x15f))));const _0x5d2d2c=Object[_0x1b5343(0x130)](_0xbea44[_0x1b5343(0x122)]);if(_0x5d2d2c['length']>0x0){console[_0x1b5343(0x125)](),console[_0x1b5343(0x125)](a93_0x424eaa['bold'](_0x1b5343(0x127))),console[_0x1b5343(0x125)](a93_0x424eaa['gray'](_0x1b5343(0x11a)[_0x1b5343(0x167)](0x1e)));for(const _0x1ff71f of _0x5d2d2c){const _0x477e12=_0xbea44[_0x1b5343(0x122)][_0x1ff71f],_0x129fee=_0x1ff71f===_0xbea44[_0x1b5343(0x131)],_0x4099a6=_0x1ff71f===_0xbea44[_0x1b5343(0x12b)],_0x2a68dd=_0x4099a6?a93_0x424eaa[_0x1b5343(0x141)]('\x20←\x20current'):'',_0x265cec=_0x129fee?'\x20(default)':'';console[_0x1b5343(0x125)]('\x20\x20'+_0x1ff71f+_0x265cec+_0x2a68dd),console[_0x1b5343(0x125)](_0x1b5343(0x150)+_0x477e12[_0x1b5343(0x163)]);const _0x25c2ce=buildAppDoctorFields(_0x477e12,{'env':_0xbea44[_0x1b5343(0x158)],'apiDir':_0xbea44[_0x1b5343(0x129)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x1b5343(0x12a)],'cookie':_0xbea44['cookie']||_0x19c991||undefined,'accessKey':_0xbea44[_0x1b5343(0x133)]});console[_0x1b5343(0x125)](_0x1b5343(0x142)+_0x25c2ce[_0x1b5343(0x158)]['value']+'\x20\x20'+a93_0x424eaa['gray']('('+_0x25c2ce[_0x1b5343(0x158)][_0x1b5343(0x165)]+')')),console[_0x1b5343(0x125)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x25c2ce['apiDir']['value']+'\x20\x20'+a93_0x424eaa[_0x1b5343(0x115)]('('+_0x25c2ce[_0x1b5343(0x12a)][_0x1b5343(0x165)]+')'));const _0x549496=_0x25c2ce[_0x1b5343(0x132)][_0x1b5343(0x124)]?a93_0x424eaa[_0x1b5343(0x141)]('(set,\x20length='+_0x25c2ce['cookie']['value']['length']+')'):a93_0x424eaa['gray']('(none)');console[_0x1b5343(0x125)](_0x1b5343(0x13f)+_0x549496+'\x20\x20'+a93_0x424eaa['gray']('('+_0x25c2ce['cookie'][_0x1b5343(0x165)]+')'));const _0x447255=_0x25c2ce[_0x1b5343(0x133)][_0x1b5343(0x124)]?a93_0x424eaa[_0x1b5343(0x141)]('(set,\x20length='+_0x25c2ce[_0x1b5343(0x133)]['value'][_0x1b5343(0x156)]+')'):a93_0x424eaa[_0x1b5343(0x115)](_0x1b5343(0x15f));console['log'](_0x1b5343(0x162)+_0x447255+'\x20\x20'+a93_0x424eaa[_0x1b5343(0x115)]('('+_0x25c2ce[_0x1b5343(0x133)][_0x1b5343(0x165)]+')'));}}console[_0x1b5343(0x125)](),console['log'](a93_0x424eaa[_0x1b5343(0x123)](_0x1b5343(0x137))),console[_0x1b5343(0x125)](a93_0x424eaa['gray'](_0x1b5343(0x11a)[_0x1b5343(0x167)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1b5343(0x125)](_0x1b5343(0x153)+getRuntimeDomain()),console[_0x1b5343(0x125)](),console[_0x1b5343(0x125)](a93_0x424eaa[_0x1b5343(0x123)](_0x1b5343(0x139))),console[_0x1b5343(0x125)](a93_0x424eaa['gray'](_0x1b5343(0x11a)[_0x1b5343(0x167)](0x1e)));if(_0x19c991){const _0x1f98d3=await getIsSessionValid();console[_0x1b5343(0x125)](_0x1b5343(0x151)+(_0x1f98d3?a93_0x424eaa[_0x1b5343(0x141)](_0x1b5343(0x15a)):a93_0x424eaa[_0x1b5343(0x126)](_0x1b5343(0x12c))));}else console[_0x1b5343(0x125)](_0x1b5343(0x151)+a93_0x424eaa[_0x1b5343(0x126)](_0x1b5343(0x15e)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a93_0x254dd0(0x140),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a93_0x254dd0(0x12d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a94_0x273940=a94_0x2675;(function(_0x2f3dd7,_0x57041d){const _0x890588=a94_0x2675,_0x280793=_0x2f3dd7();while(!![]){try{const _0x4705a8=-parseInt(_0x890588(0xad))/0x1*(-parseInt(_0x890588(0xa8))/0x2)+parseInt(_0x890588(0x96))/0x3+-parseInt(_0x890588(0xa9))/0x4*(-parseInt(_0x890588(0x94))/0x5)+parseInt(_0x890588(0xa4))/0x6*(parseInt(_0x890588(0xaf))/0x7)+-parseInt(_0x890588(0x8d))/0x8*(parseInt(_0x890588(0xa3))/0x9)+parseInt(_0x890588(0x8f))/0xa*(-parseInt(_0x890588(0x8c))/0xb)+-parseInt(_0x890588(0x9d))/0xc;if(_0x4705a8===_0x57041d)break;else _0x280793['push'](_0x280793['shift']());}catch(_0x4519f1){_0x280793['push'](_0x280793['shift']());}}}(a94_0x4ba3,0xa50c1));function a94_0x2675(_0x568462,_0x364640){_0x568462=_0x568462-0x8a;const _0x4ba383=a94_0x4ba3();let _0x2675b2=_0x4ba383[_0x568462];return _0x2675b2;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a94_0x273940(0xa6),'type':a94_0x273940(0xa0),'required':!![],'description':a94_0x273940(0xac)},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a94_0x273940(0x90)},DOWNLOAD_FLAG={'name':a94_0x273940(0xa5),'type':a94_0x273940(0x97),'description':a94_0x273940(0x98)},LONG_TERM_FLAG={'name':a94_0x273940(0xab),'type':'boolean','description':a94_0x273940(0x8e)};function a94_0x4ba3(){const _0xfba5fc=['628HjizqI','POST','long-term','Path\x20to\x20the\x20local\x20file\x20to\x20upload','523202GOdwUP','filePath','7bPuoNY','Uploaded\x20file:\x20','appCode','627jolSga','2568744YVCEIw','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','54970aKmKZS','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','validation','upload','trim','19715wHviyx','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','2924571iyfJYB','boolean','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','path','/smartapi/common/uploadFile','21898272acAcDH','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str','string','Preview:\x20upload\x20','bool','9uCHFgH','2969994WlcBfL','download','file','filepath','4LTPADl'];a94_0x4ba3=function(){return _0xfba5fc;};return a94_0x4ba3();}function requireFilePath(_0x371da1){const _0xf14bb2=a94_0x273940,_0x600843=_0x371da1[_0xf14bb2(0x93)]();if(!_0x600843)throw CliErrors[_0xf14bb2(0x91)]('filePath\x20is\x20required.');return _0x600843;}const fileUpload={'service':'file','command':a94_0x273940(0x92),'description':a94_0x273940(0x99),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x281257){const _0xcb2cba=a94_0x273940,_0x257fde=requireDevelopmentUploadFile(_0x281257['str'](_0xcb2cba(0xa6)),'File');return{'method':_0xcb2cba(0xaa),'url':_0xcb2cba(0x9c),'body':{'appCode':_0x281257[_0xcb2cba(0x8b)],'multipart':{'file':_0x257fde}},'description':_0xcb2cba(0xa1)+_0x257fde[_0xcb2cba(0x9b)]+'\x20to\x20development\x20app\x20'+_0x281257[_0xcb2cba(0x8b)]};},async 'execute'(_0x328538){const _0x36b54a=a94_0x273940,_0x22fcf9=requireDevelopmentUploadFile(_0x328538[_0x36b54a(0x9f)]('file'),'File'),_0xc1cfb5=await uploadDevelopmentFile(_0x328538['appCode'],_0x22fcf9[_0x36b54a(0x9b)]);return{'ok':!![],'data':_0xc1cfb5,'message':_0xc1cfb5[_0x36b54a(0xae)]?_0x36b54a(0x8a)+_0xc1cfb5[_0x36b54a(0xae)]+_0x36b54a(0x9e):_0x36b54a(0x95)};}},fileQueryUrl={'service':a94_0x273940(0xa6),'command':'query-url','description':a94_0x273940(0x9a),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x283b91){const _0x4e0b5c=a94_0x273940,_0x171e84=requireFilePath(_0x283b91[_0x4e0b5c(0x9f)](_0x4e0b5c(0xa7))),_0x569b0b=await queryDevelopmentFileUrl(_0x171e84,{'download':_0x283b91['bool'](_0x4e0b5c(0xa5)),'longTerm':_0x283b91[_0x4e0b5c(0xa2)](_0x4e0b5c(0xab))});return{'ok':!![],'data':_0x569b0b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a94_0x115fb8=a94_0x3abc;(function(_0x248d8e,_0xb8b52){const _0x481c7d=a94_0x3abc,_0x653087=_0x248d8e();while(!![]){try{const _0x1fc4ad=parseInt(_0x481c7d(0x1f8))/0x1*(parseInt(_0x481c7d(0x1e6))/0x2)+parseInt(_0x481c7d(0x1e8))/0x3*(parseInt(_0x481c7d(0x1ed))/0x4)+-parseInt(_0x481c7d(0x1f9))/0x5+-parseInt(_0x481c7d(0x1eb))/0x6*(parseInt(_0x481c7d(0x1e3))/0x7)+parseInt(_0x481c7d(0x1e9))/0x8+-parseInt(_0x481c7d(0x1e0))/0x9*(parseInt(_0x481c7d(0x1dc))/0xa)+parseInt(_0x481c7d(0x1da))/0xb;if(_0x1fc4ad===_0xb8b52)break;else _0x653087['push'](_0x653087['shift']());}catch(_0x1f5ed9){_0x653087['push'](_0x653087['shift']());}}}(a94_0x2b95,0x2a31c));function a94_0x3abc(_0x2881f5,_0x1a083b){_0x2881f5=_0x2881f5-0x1d5;const _0x2b95f2=a94_0x2b95();let _0x3abcd2=_0x2b95f2[_0x2881f5];return _0x3abcd2;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a94_0x115fb8(0x1f6),'type':a94_0x115fb8(0x1ec),'required':!![],'description':a94_0x115fb8(0x1f1)},FILEPATH_FLAG={'name':a94_0x115fb8(0x1d7),'type':'string','required':!![],'description':a94_0x115fb8(0x1f2)},DOWNLOAD_FLAG={'name':a94_0x115fb8(0x1d9),'type':a94_0x115fb8(0x1e4),'description':a94_0x115fb8(0x1de)},LONG_TERM_FLAG={'name':a94_0x115fb8(0x1ef),'type':a94_0x115fb8(0x1e4),'description':a94_0x115fb8(0x1f4)};function requireFilePath(_0x224120){const _0x483b26=a94_0x115fb8,_0x220c8d=_0x224120[_0x483b26(0x1f0)]();if(!_0x220c8d)throw CliErrors[_0x483b26(0x1dd)](_0x483b26(0x1d8));return _0x220c8d;}function a94_0x2b95(){const _0x3df061=['49290yQXUur','2035136zhRQYE','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','136098WdYlSW','string','84aPPWpW','/smartapi/common/uploadFile','long-term','trim','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','appCode','file','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','47EuBfGI','1707790afvNgs','upload','Uploaded\x20file:\x20','path','Preview:\x20upload\x20','read','File','filepath','filePath\x20is\x20required.','download','553421MWFdmI','filePath','10nhlfxx','validation','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','str','721647CBBzhC','bool','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','42VKUUeN','boolean','\x20to\x20development\x20app\x20','3444qpFeND','POST'];a94_0x2b95=function(){return _0x3df061;};return a94_0x2b95();}const fileUpload={'service':a94_0x115fb8(0x1f6),'command':a94_0x115fb8(0x1fa),'description':a94_0x115fb8(0x1f7),'risk':a94_0x115fb8(0x1d5),'flags':[FILE_FLAG],async 'dryRun'(_0x7c15d8){const _0x43470c=a94_0x115fb8,_0x40a818=requireDevelopmentUploadFile(_0x7c15d8[_0x43470c(0x1df)](_0x43470c(0x1f6)),_0x43470c(0x1d6));return{'method':_0x43470c(0x1e7),'url':_0x43470c(0x1ee),'body':{'appCode':_0x7c15d8['appCode'],'multipart':{'file':_0x40a818}},'description':_0x43470c(0x1fd)+_0x40a818[_0x43470c(0x1fc)]+_0x43470c(0x1e5)+_0x7c15d8[_0x43470c(0x1f5)]};},async 'execute'(_0x1127ca){const _0x274b07=a94_0x115fb8,_0x2e3dec=requireDevelopmentUploadFile(_0x1127ca[_0x274b07(0x1df)](_0x274b07(0x1f6)),'File'),_0x58cefd=await uploadDevelopmentFile(_0x1127ca['appCode'],_0x2e3dec['path']);return{'ok':!![],'data':_0x58cefd,'message':_0x58cefd[_0x274b07(0x1db)]?_0x274b07(0x1fb)+_0x58cefd[_0x274b07(0x1db)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x274b07(0x1ea)};}},fileQueryUrl={'service':'file','command':a94_0x115fb8(0x1f3),'description':a94_0x115fb8(0x1e2),'risk':a94_0x115fb8(0x1d5),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x13ad98){const _0x227288=a94_0x115fb8,_0x129bb7=requireFilePath(_0x13ad98[_0x227288(0x1df)](_0x227288(0x1d7))),_0x531040=await queryDevelopmentFileUrl(_0x129bb7,{'download':_0x13ad98[_0x227288(0x1e1)](_0x227288(0x1d9)),'longTerm':_0x13ad98['bool']('long-term')});return{'ok':!![],'data':_0x531040};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a95_0x171eed=a95_0x4a07;(function(_0x5f0e2f,_0x2054d2){const _0x38b2ac=a95_0x4a07,_0x24cd93=_0x5f0e2f();while(!![]){try{const _0x3c60df=-parseInt(_0x38b2ac(0xb0))/0x1*(parseInt(_0x38b2ac(0xa6))/0x2)+parseInt(_0x38b2ac(0x8f))/0x3+parseInt(_0x38b2ac(0x83))/0x4*(parseInt(_0x38b2ac(0x89))/0x5)+parseInt(_0x38b2ac(0xa9))/0x6*(parseInt(_0x38b2ac(0x8b))/0x7)+parseInt(_0x38b2ac(0xac))/0x8*(-parseInt(_0x38b2ac(0x91))/0x9)+-parseInt(_0x38b2ac(0xb4))/0xa*(-parseInt(_0x38b2ac(0xb2))/0xb)+-parseInt(_0x38b2ac(0x86))/0xc;if(_0x3c60df===_0x2054d2)break;else _0x24cd93['push'](_0x24cd93['shift']());}catch(_0x4d92bc){_0x24cd93['push'](_0x24cd93['shift']());}}}(a95_0x334e,0x84a6c));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';function a95_0x334e(){const _0x5901f2=['message','\x20config','5003418KzZBIp','production','Use\x20`','4230064XCMRIy','str','\x20\x20Config:\x20','bool','124073YFZmqr','Auto-confirm\x20prompts','8878331hrxKrb','init','10SVlEcQ','3129868qzmxdE','project','global','1448856aQAkMq','write','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','5ClmIuL','nonInteractive','7ijUmIt','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','flagMissing','env','499842jYRkuT','some','18nVQADJ','map','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','yes','validation','string','boolean','Usage:\x20','appcode','\x20\x20Default:\x20','log','toLocaleString','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','cwd','appCode','defaultApp','valid','run','App\x20code\x20to\x20initialize\x20with','Target\x20environment','Write\x20to\x20global\x20config\x20instead\x20of\x20project','14kjLKaF'];a95_0x334e=function(){return _0x5901f2;};return a95_0x334e();}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';function a95_0x4a07(_0x44dfdc,_0x47f103){_0x44dfdc=_0x44dfdc-0x83;const _0x334ef4=a95_0x334e();let _0x4a071b=_0x334ef4[_0x44dfdc];return _0x4a071b;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x365ae2){return{'appCode':_0x365ae2,'appName':_0x365ae2};}function writeInitConfig(_0x2f04c1,_0x4e69ed,_0x20430e){const _0x49f044=a95_0x4a07,_0x3a6d42=resolveWriteConfigPath(_0x2f04c1),_0x78ec71=buildCanonicalProjectConfig({},{'appCodes':_0x4e69ed[_0x49f044(0x92)](_0x59ac10=>_0x59ac10[_0x49f044(0x9f)]),'env':_0x20430e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x49f044(0x9c)]()}});writeConfigFile(_0x3a6d42,_0x78ec71);const _0x40e0cb=_0x2f04c1===_0x49f044(0x85)?'global':_0x49f044(0x84);console[_0x49f044(0x9b)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x40e0cb+_0x49f044(0xa8)),console[_0x49f044(0x9b)]('\x20\x20Apps:\x20'+_0x4e69ed['map'](_0xd9f2d3=>_0xd9f2d3[_0x49f044(0x9f)])['join'](',\x20')),console[_0x49f044(0x9b)](_0x49f044(0x9a)+_0x78ec71[_0x49f044(0xa0)]),console[_0x49f044(0x9b)]('\x20\x20Env:\x20'+_0x78ec71['env']),console[_0x49f044(0x9b)](_0x49f044(0xae)+_0x3a6d42);}async function runSmartInit(_0x36290f){const _0x14791c=a95_0x4a07,_0x3662a8=process[_0x14791c(0x9e)](),_0x2b46c4=_0x36290f[_0x14791c(0xaf)]('global')?_0x14791c(0x85):_0x14791c(0x84),_0x526638=_0x36290f[_0x14791c(0xad)](_0x14791c(0x8e))||'production',_0x137631=_0x36290f[_0x14791c(0xad)](_0x14791c(0x99))||undefined,_0x6110ca=_0x36290f[_0x14791c(0xaf)](_0x14791c(0x84));if(_0x6110ca){const {initConfig:_0x4c84e8}=await import('../../commands/project/init.js');return _0x4c84e8({'appcode':_0x137631,'env':_0x526638,'autoYes':_0x36290f[_0x14791c(0xaf)](_0x14791c(0x94))});}if(_0x2b46c4===_0x14791c(0x84)){const _0x1df9b8=existsSync(resolve(_0x3662a8,NEW_CONFIG_NAME)),_0x6e1eb=LEGACY_CONFIG_NAMES[_0x14791c(0x90)](_0x48cf71=>existsSync(resolve(_0x3662a8,_0x48cf71)));if(_0x6e1eb&&!_0x1df9b8)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x36290f[_0x14791c(0x8a)],{'yes':_0x36290f[_0x14791c(0xaf)]('yes')});if(_0x1df9b8)throw CliErrors[_0x14791c(0x95)](_0x14791c(0x88),_0x14791c(0xab)+CLI_BIN_NAME+_0x14791c(0x93));}if(_0x137631){const _0xbd3a5a=validateAppcode(_0x137631);if(!_0xbd3a5a[_0x14791c(0xa1)])throw CliErrors[_0x14791c(0x95)](_0xbd3a5a[_0x14791c(0xa7)]);writeInitConfig(_0x2b46c4,[syntheticApp(_0x137631)],_0x526638);return;}if(_0x36290f[_0x14791c(0x8a)])throw CliErrors[_0x14791c(0x8d)]('appcode',_0x14791c(0x98)+CLI_BIN_NAME+_0x14791c(0x8c));const _0x18f163=getCookie(),_0x390c66=await selectMultipleApps(_0x18f163),_0x50b93f=_0x390c66==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x390c66;writeInitConfig(_0x2b46c4,_0x50b93f,_0x526638);}const initFlags=[{'name':a95_0x171eed(0x85),'type':a95_0x171eed(0x97),'description':a95_0x171eed(0xa5),'default':![]},{'name':a95_0x171eed(0x8e),'type':'string','description':a95_0x171eed(0xa4),'default':a95_0x171eed(0xaa),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a95_0x171eed(0x96),'description':a95_0x171eed(0xa3)},{'name':'project','type':'boolean','description':a95_0x171eed(0x9d),'default':![]},{'name':a95_0x171eed(0x94),'type':a95_0x171eed(0x97),'description':a95_0x171eed(0xb1),'default':![]}];export const initDefinitions=[{'service':a95_0x171eed(0xb3),'command':a95_0x171eed(0xa2),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a95_0x171eed(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x12a1e7){return await runSmartInit(_0x12a1e7),{'ok':!![]};}}];
1
+ const a95_0x4fcf9b=a95_0x140e;(function(_0x3c00f3,_0x1b0162){const _0x153c37=a95_0x140e,_0xfab063=_0x3c00f3();while(!![]){try{const _0x316962=-parseInt(_0x153c37(0x17b))/0x1+parseInt(_0x153c37(0x18a))/0x2+parseInt(_0x153c37(0x183))/0x3+-parseInt(_0x153c37(0x181))/0x4+-parseInt(_0x153c37(0x18d))/0x5*(-parseInt(_0x153c37(0x187))/0x6)+parseInt(_0x153c37(0x17c))/0x7+-parseInt(_0x153c37(0x188))/0x8*(-parseInt(_0x153c37(0x18c))/0x9);if(_0x316962===_0x1b0162)break;else _0xfab063['push'](_0xfab063['shift']());}catch(_0x37adb2){_0xfab063['push'](_0xfab063['shift']());}}}(a95_0x51e7,0x3385a));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x73fe63){return{'appCode':_0x73fe63,'appName':_0x73fe63};}function writeInitConfig(_0x43c8cb,_0x3de516,_0x133a61){const _0x4b0e6c=a95_0x140e,_0x1343ab=resolveWriteConfigPath(_0x43c8cb),_0x2a22da=buildCanonicalProjectConfig({},{'appCodes':_0x3de516[_0x4b0e6c(0x16f)](_0x13bef4=>_0x13bef4[_0x4b0e6c(0x16b)]),'env':_0x133a61,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x4b0e6c(0x170)]()}});writeConfigFile(_0x1343ab,_0x2a22da);const _0x169197=_0x43c8cb===_0x4b0e6c(0x165)?'global':_0x4b0e6c(0x179);console[_0x4b0e6c(0x185)](_0x4b0e6c(0x17f)+_0x169197+_0x4b0e6c(0x189)),console[_0x4b0e6c(0x185)](_0x4b0e6c(0x178)+_0x3de516[_0x4b0e6c(0x16f)](_0x2dd217=>_0x2dd217['appCode'])['join'](',\x20')),console[_0x4b0e6c(0x185)](_0x4b0e6c(0x173)+_0x2a22da[_0x4b0e6c(0x18f)]),console[_0x4b0e6c(0x185)](_0x4b0e6c(0x172)+_0x2a22da[_0x4b0e6c(0x192)]),console[_0x4b0e6c(0x185)](_0x4b0e6c(0x166)+_0x1343ab);}async function runSmartInit(_0xca1741){const _0x2f8a49=a95_0x140e,_0x2f6924=process['cwd'](),_0x5dbbf7=_0xca1741[_0x2f8a49(0x16c)](_0x2f8a49(0x165))?'global':_0x2f8a49(0x179),_0x35a5a4=_0xca1741[_0x2f8a49(0x186)](_0x2f8a49(0x192))||'production',_0x47b304=_0xca1741[_0x2f8a49(0x186)](_0x2f8a49(0x17e))||undefined,_0x5f4890=_0xca1741[_0x2f8a49(0x16c)]('project');if(_0x5f4890){const {initConfig:_0x276f7b}=await import(_0x2f8a49(0x168));return _0x276f7b({'appcode':_0x47b304,'env':_0x35a5a4,'autoYes':_0xca1741[_0x2f8a49(0x16c)](_0x2f8a49(0x177))});}if(_0x5dbbf7===_0x2f8a49(0x179)){const _0x252511=existsSync(resolve(_0x2f6924,NEW_CONFIG_NAME)),_0x47e3d1=LEGACY_CONFIG_NAMES[_0x2f8a49(0x174)](_0x4cc742=>existsSync(resolve(_0x2f6924,_0x4cc742)));if(_0x47e3d1&&!_0x252511)return console[_0x2f8a49(0x185)](_0x2f8a49(0x169)),upgradeApp(_0xca1741[_0x2f8a49(0x184)],{'yes':_0xca1741[_0x2f8a49(0x16c)](_0x2f8a49(0x177))});if(_0x252511)throw CliErrors['validation'](_0x2f8a49(0x18e),_0x2f8a49(0x17d)+CLI_BIN_NAME+_0x2f8a49(0x16a));}if(_0x47b304){const _0x4161ac=validateAppcode(_0x47b304);if(!_0x4161ac[_0x2f8a49(0x16e)])throw CliErrors[_0x2f8a49(0x193)](_0x4161ac['message']);writeInitConfig(_0x5dbbf7,[syntheticApp(_0x47b304)],_0x35a5a4);return;}if(_0xca1741[_0x2f8a49(0x184)])throw CliErrors[_0x2f8a49(0x16d)](_0x2f8a49(0x17e),_0x2f8a49(0x167)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x25564d=getCookie(),_0x519bda=await selectMultipleApps(_0x25564d),_0x12b405=_0x519bda===_0x2f8a49(0x180)?[syntheticApp(await promptCustomAppcode())]:_0x519bda;writeInitConfig(_0x5dbbf7,_0x12b405,_0x35a5a4);}const initFlags=[{'name':a95_0x4fcf9b(0x165),'type':a95_0x4fcf9b(0x17a),'description':a95_0x4fcf9b(0x18b),'default':![]},{'name':'env','type':a95_0x4fcf9b(0x191),'description':'Target\x20environment','default':a95_0x4fcf9b(0x176),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':'string','description':a95_0x4fcf9b(0x182)},{'name':a95_0x4fcf9b(0x179),'type':a95_0x4fcf9b(0x17a),'description':a95_0x4fcf9b(0x164),'default':![]},{'name':a95_0x4fcf9b(0x177),'type':a95_0x4fcf9b(0x17a),'description':a95_0x4fcf9b(0x171),'default':![]}];export const initDefinitions=[{'service':a95_0x4fcf9b(0x190),'command':'run','description':a95_0x4fcf9b(0x175),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5c4460){return await runSmartInit(_0x5c4460),{'ok':!![]};}}];function a95_0x140e(_0x439760,_0x37d642){_0x439760=_0x439760-0x164;const _0x51e78f=a95_0x51e7();let _0x140e55=_0x51e78f[_0x439760];return _0x140e55;}function a95_0x51e7(){const _0x369ae1=['init','string','env','validation','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','global','\x20\x20Config:\x20','Usage:\x20','../../commands/project/init.js','检测到旧配置文件,正在自动升级...\x0a','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appCode','bool','flagMissing','valid','map','toLocaleString','Auto-confirm\x20prompts','\x20\x20Env:\x20','\x20\x20Default:\x20','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','production','yes','\x20\x20Apps:\x20','project','boolean','302012RLmsrn','2320073meNslP','Use\x20`','appcode','\x0a✓\x20Successfully\x20initialized\x20','custom','1425220WeUJsB','App\x20code\x20to\x20initialize\x20with','259956chIItL','nonInteractive','log','str','759918FawUtF','1864qXcSuV','\x20config','624982HZpFax','Write\x20to\x20global\x20config\x20instead\x20of\x20project','468hIbjqZ','5KozROj','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','defaultApp'];a95_0x51e7=function(){return _0x369ae1;};return a95_0x51e7();}
@@ -1 +1 @@
1
- (function(_0x3f8a95,_0x1a9d70){const _0x513346=a96_0x5275,_0x1e7177=_0x3f8a95();while(!![]){try{const _0xbcccba=parseInt(_0x513346(0xd0))/0x1+parseInt(_0x513346(0xd1))/0x2*(-parseInt(_0x513346(0xd2))/0x3)+-parseInt(_0x513346(0xc9))/0x4*(-parseInt(_0x513346(0xd4))/0x5)+parseInt(_0x513346(0xcb))/0x6*(-parseInt(_0x513346(0xcf))/0x7)+parseInt(_0x513346(0xd3))/0x8*(parseInt(_0x513346(0xca))/0x9)+-parseInt(_0x513346(0xcc))/0xa+-parseInt(_0x513346(0xce))/0xb*(-parseInt(_0x513346(0xcd))/0xc);if(_0xbcccba===_0x1a9d70)break;else _0x1e7177['push'](_0x1e7177['shift']());}catch(_0x1f02ca){_0x1e7177['push'](_0x1e7177['shift']());}}}(a96_0x129a,0x28ea0));function a96_0x5275(_0x1513ee,_0x129616){_0x1513ee=_0x1513ee-0xc9;const _0x129a64=a96_0x129a();let _0x52752c=_0x129a64[_0x1513ee];return _0x52752c;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a96_0x129a(){const _0x48c7d4=['225dVdRTX','6sPRlWf','1543700HSwACA','48HAEbnX','721138HQaZvz','1125894aMqOJF','165160NaDKSp','213298ylRiCH','9hrQYOC','85416GmnBTV','255VNwYzl','8504MMKrub'];a96_0x129a=function(){return _0x48c7d4;};return a96_0x129a();}
1
+ (function(_0x3a4bba,_0x192c2a){const _0x3fd9fb=a96_0x15bb,_0x34d398=_0x3a4bba();while(!![]){try{const _0x121eb7=parseInt(_0x3fd9fb(0x148))/0x1*(parseInt(_0x3fd9fb(0x14e))/0x2)+-parseInt(_0x3fd9fb(0x14d))/0x3*(-parseInt(_0x3fd9fb(0x147))/0x4)+-parseInt(_0x3fd9fb(0x146))/0x5+parseInt(_0x3fd9fb(0x14a))/0x6*(-parseInt(_0x3fd9fb(0x149))/0x7)+parseInt(_0x3fd9fb(0x14b))/0x8+-parseInt(_0x3fd9fb(0x14c))/0x9*(parseInt(_0x3fd9fb(0x144))/0xa)+parseInt(_0x3fd9fb(0x145))/0xb;if(_0x121eb7===_0x192c2a)break;else _0x34d398['push'](_0x34d398['shift']());}catch(_0x4e63a8){_0x34d398['push'](_0x34d398['shift']());}}}(a96_0x3300,0x808e4));function a96_0x15bb(_0x27c380,_0x17d4b8){_0x27c380=_0x27c380-0x144;const _0x330029=a96_0x3300();let _0x15bb45=_0x330029[_0x27c380];return _0x15bb45;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a96_0x3300(){const _0x5e0aa1=['2950508ypWfqo','1578800RYhLFH','3752284xAogKO','17545OKxFOa','674758NIXUsm','24oPJXdW','3581352TuUfPk','261rziGJV','3tQMzGm','46EFbcGe','286070xSIzcb'];a96_0x3300=function(){return _0x5e0aa1;};return a96_0x3300();}
@@ -1 +1 @@
1
- const a97_0x1ecbe0=a97_0x5b05;(function(_0x3ce45a,_0x227074){const _0x5ca052=a97_0x5b05,_0x109ed1=_0x3ce45a();while(!![]){try{const _0x1222dd=parseInt(_0x5ca052(0xc0))/0x1+-parseInt(_0x5ca052(0xc9))/0x2+-parseInt(_0x5ca052(0xe2))/0x3+-parseInt(_0x5ca052(0xd2))/0x4*(parseInt(_0x5ca052(0xd3))/0x5)+-parseInt(_0x5ca052(0xd0))/0x6*(-parseInt(_0x5ca052(0xcb))/0x7)+-parseInt(_0x5ca052(0xd6))/0x8*(parseInt(_0x5ca052(0xd5))/0x9)+parseInt(_0x5ca052(0xd4))/0xa*(parseInt(_0x5ca052(0xbe))/0xb);if(_0x1222dd===_0x227074)break;else _0x109ed1['push'](_0x109ed1['shift']());}catch(_0x555f60){_0x109ed1['push'](_0x109ed1['shift']());}}}(a97_0x22c9,0xe3837));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x5b05(_0x4c1150,_0x5943b2){_0x4c1150=_0x4c1150-0xbe;const _0x22c988=a97_0x22c9();let _0x5b057b=_0x22c988[_0x4c1150];return _0x5b057b;}export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a97_0x22c9(){const _0x135026=['76239HGjrIr','1368YYLBwY','unknown_command','trim','\x20bug?\x20Help\x20us\x20fix\x20it:','not_in_project','has','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','issue','command','message','report','1713762sPQUwB','replace','1037465LyvbMy','=1\x20to\x20silence\x20this\x20hint.','964301LGGvHb','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','length','stderr','cancelled','config_missing','\x22\x20\x5c','join','validation_error','441358kOIGkL','auth_required','161yhZmIi','write','\x20\x20\x20\x20--title\x20\x22','Hit\x20a\x20','\x20\x20Set\x20','118482pYptwv','code','4BDHnBs','2076790gwrbqL','230akmUSJ'];a97_0x22c9=function(){return _0x135026;};return a97_0x22c9();}const NUDGE_SUPPRESSED_CODES=new Set([a97_0x1ecbe0(0xc4),a97_0x1ecbe0(0xca),a97_0x1ecbe0(0xc5),a97_0x1ecbe0(0xda),a97_0x1ecbe0(0xd7),'flag_missing',a97_0x1ecbe0(0xc8),'network_error']),defaultWriter=_0x2eaff2=>{const _0x333ce8=a97_0x1ecbe0;process[_0x333ce8(0xc3)][_0x333ce8(0xcc)](_0x2eaff2);};export function shouldNudgeForError(_0x76be12,_0x310f68){const _0xc9011e=a97_0x1ecbe0;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x310f68['service']===_0xc9011e(0xde)&&_0x310f68[_0xc9011e(0xdf)]===_0xc9011e(0xe1))return![];if(_0x76be12 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xc9011e(0xdb)](_0x76be12[_0xc9011e(0xd1)]);return!![];}export function printIssueReportNudgeForError(_0x1cf891,_0x4e97bd,_0x30bab4=defaultWriter){if(!shouldNudgeForError(_0x1cf891,_0x4e97bd))return;const _0x13b125=buildSuggestedTitle(_0x1cf891,_0x4e97bd);_0x30bab4(formatNudge(_0x13b125));}function buildSuggestedTitle(_0x412387,_0x5468f2){const _0x51eb11=a97_0x1ecbe0,_0x553fce=_0x412387 instanceof Error?_0x412387[_0x51eb11(0xe0)]:String(_0x412387),_0x466e81=_0x553fce['replace'](/[\r\n]+/g,'\x20')[_0x51eb11(0xe3)](/\s+/g,'\x20')[_0x51eb11(0xd8)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x2e7249=CLI_BIN_NAME+'\x20'+_0x5468f2['service']+'\x20'+_0x5468f2['command'];return _0x466e81[_0x51eb11(0xc2)]>0x0?_0x2e7249+':\x20'+_0x466e81:_0x2e7249;}function formatNudge(_0x5a05f4){const _0x478c99=a97_0x1ecbe0;return['',_0x478c99(0xce)+CLI_BIN_NAME+_0x478c99(0xd9),'\x20\x20'+CLI_BIN_NAME+_0x478c99(0xdc),_0x478c99(0xcd)+_0x5a05f4+_0x478c99(0xc6),_0x478c99(0xdd),_0x478c99(0xc1),_0x478c99(0xcf)+NUDGE_OPT_OUT_ENV+_0x478c99(0xbf),''][_0x478c99(0xc7)]('\x0a');}
1
+ const a97_0x42a8cd=a97_0x1346;(function(_0x5257ea,_0x3b3329){const _0x41375e=a97_0x1346,_0x2d3814=_0x5257ea();while(!![]){try{const _0x338e4a=parseInt(_0x41375e(0x134))/0x1+-parseInt(_0x41375e(0x13e))/0x2+parseInt(_0x41375e(0x139))/0x3*(parseInt(_0x41375e(0x126))/0x4)+-parseInt(_0x41375e(0x13d))/0x5*(-parseInt(_0x41375e(0x133))/0x6)+parseInt(_0x41375e(0x125))/0x7+-parseInt(_0x41375e(0x121))/0x8+-parseInt(_0x41375e(0x128))/0x9;if(_0x338e4a===_0x3b3329)break;else _0x2d3814['push'](_0x2d3814['shift']());}catch(_0x2a6a4f){_0x2d3814['push'](_0x2d3814['shift']());}}}(a97_0x4c52,0xeac42));function a97_0x1346(_0x93c35e,_0x479bee){_0x93c35e=_0x93c35e-0x121;const _0x4c52c0=a97_0x4c52();let _0x1346dc=_0x4c52c0[_0x93c35e];return _0x1346dc;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a97_0x42a8cd(0x129);const NUDGE_SUPPRESSED_CODES=new Set([a97_0x42a8cd(0x142),a97_0x42a8cd(0x135),a97_0x42a8cd(0x122),a97_0x42a8cd(0x12a),'unknown_command',a97_0x42a8cd(0x140),'validation_error','network_error']),defaultWriter=_0x309734=>{const _0x5e1c58=a97_0x42a8cd;process[_0x5e1c58(0x132)][_0x5e1c58(0x130)](_0x309734);};export function shouldNudgeForError(_0x3ea0d6,_0x5dcc36){const _0x2e62c5=a97_0x42a8cd;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5dcc36[_0x2e62c5(0x12f)]===_0x2e62c5(0x13c)&&_0x5dcc36['command']===_0x2e62c5(0x13b))return![];if(_0x3ea0d6 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2e62c5(0x12d)](_0x3ea0d6[_0x2e62c5(0x137)]);return!![];}export function printIssueReportNudgeForError(_0x385ccd,_0x36e494,_0x534930=defaultWriter){if(!shouldNudgeForError(_0x385ccd,_0x36e494))return;const _0x2ea927=buildSuggestedTitle(_0x385ccd,_0x36e494);_0x534930(formatNudge(_0x2ea927));}function buildSuggestedTitle(_0x4ecb22,_0x442f28){const _0x542800=a97_0x42a8cd,_0x41924b=_0x4ecb22 instanceof Error?_0x4ecb22[_0x542800(0x143)]:String(_0x4ecb22),_0x3dcddd=_0x41924b[_0x542800(0x138)](/[\r\n]+/g,'\x20')[_0x542800(0x138)](/\s+/g,'\x20')[_0x542800(0x13f)]()[_0x542800(0x131)](0x0,0x78)[_0x542800(0x138)](/"/g,'\x5c\x22'),_0x296787=CLI_BIN_NAME+'\x20'+_0x442f28['service']+'\x20'+_0x442f28[_0x542800(0x136)];return _0x3dcddd[_0x542800(0x12e)]>0x0?_0x296787+':\x20'+_0x3dcddd:_0x296787;}function a97_0x4c52(){const _0x4e17a1=['report','issue','80rEHWJA','855720hSmrFp','trim','flag_missing','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','cancelled','message','1020872hPgyCN','config_missing','\x22\x20\x5c','\x20issue\x20report\x20\x5c','10096163BjYyLw','414836qcHWTj','\x20\x20\x20\x20--title\x20\x22','26433351LHmGKk','RABETBASE_DISABLE_ISSUE_NUDGE','not_in_project','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','Hit\x20a\x20','has','length','service','write','slice','stderr','577992rbmUyI','1263071UAOUKY','auth_required','command','code','replace','6GmEPXD','\x20\x20Set\x20'];a97_0x4c52=function(){return _0x4e17a1;};return a97_0x4c52();}function formatNudge(_0x42cecc){const _0x14a1fc=a97_0x42a8cd;return['',_0x14a1fc(0x12c)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x14a1fc(0x124),_0x14a1fc(0x127)+_0x42cecc+_0x14a1fc(0x123),_0x14a1fc(0x12b),_0x14a1fc(0x141),_0x14a1fc(0x13a)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.','']['join']('\x0a');}
@@ -1 +1 @@
1
- const a98_0x43e1bd=a98_0x5a83;(function(_0x235541,_0x37f641){const _0x183bf9=a98_0x5a83,_0x343210=_0x235541();while(!![]){try{const _0xd4d09c=parseInt(_0x183bf9(0xc2))/0x1*(-parseInt(_0x183bf9(0xf6))/0x2)+parseInt(_0x183bf9(0xdc))/0x3*(-parseInt(_0x183bf9(0xe7))/0x4)+parseInt(_0x183bf9(0xed))/0x5*(parseInt(_0x183bf9(0xe9))/0x6)+parseInt(_0x183bf9(0xe8))/0x7*(-parseInt(_0x183bf9(0xfb))/0x8)+parseInt(_0x183bf9(0xe1))/0x9+-parseInt(_0x183bf9(0xd8))/0xa*(parseInt(_0x183bf9(0xd0))/0xb)+parseInt(_0x183bf9(0xdf))/0xc*(parseInt(_0x183bf9(0xea))/0xd);if(_0xd4d09c===_0x37f641)break;else _0x343210['push'](_0x343210['shift']());}catch(_0xb7f79b){_0x343210['push'](_0x343210['shift']());}}}(a98_0x3bab,0xb00b4));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a98_0x3bab(){const _0x31f1c1=['message','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','flagMissing','Failed\x20to\x20report\x20platform\x20issue:\x20','203340JfdPJS','length','File\x20not\x20found:\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','2685pHPhiy','descriptionFilePath','issue.description','3633504UidmRW','issue.description_truncated','11562939bZtcWA','POST','title','redactionKinds','originalBytes','descriptionFile:\x20','2716JBOlTk','3619aPOeXg','66wpDDuS','26dEMtEB','truncated:\x20original\x20','utf8','588780nVlHyw','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','One-line\x20issue\x20summary','description-file','file','Platform\x20issue\x20reported','validation','Platform\x20issue\x20reported\x20(','filter','5546ngSABM','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.description_redaction_kinds','inline','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','16104ZcMKWQ','string','trim','apiError','sanitize','issue.title','push','str','199OuYDce','truncated','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactionCount','join','report','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue','otel://','issue.description_original_bytes','Issue\x20description\x20file\x20is\x20empty:\x20','\x20bytes','issue.description_redactions','143YppsCE','description','descriptionSource','cwd'];a98_0x3bab=function(){return _0x31f1c1;};return a98_0x3bab();}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a98_0x5a83(_0x2cc8b4,_0x1a19cf){_0x2cc8b4=_0x2cc8b4-0xc2;const _0x3bab3f=a98_0x3bab();let _0x5a833e=_0x3bab3f[_0x2cc8b4];return _0x5a833e;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a98_0x43e1bd(0xf0);export const issueReport={'service':a98_0x43e1bd(0xca),'command':a98_0x43e1bd(0xc8),'description':a98_0x43e1bd(0xf7),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a98_0x43e1bd(0xe3),'type':a98_0x43e1bd(0xfc),'required':!![],'description':a98_0x43e1bd(0xef)},{'name':a98_0x43e1bd(0xd1),'type':'string','description':a98_0x43e1bd(0xee)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x57d656){const _0x46a86f=a98_0x43e1bd,_0x40a52d=_0x57d656[_0x46a86f(0x102)](_0x46a86f(0xe3))[_0x46a86f(0xfd)](),_0x10c05b=_0x57d656[_0x46a86f(0x102)]('description')['trim'](),_0x573e7f=_0x57d656[_0x46a86f(0x102)](DESCRIPTION_FILE_FLAG)[_0x46a86f(0xfd)]();if(!_0x40a52d)throw CliErrors[_0x46a86f(0xd6)](_0x46a86f(0xe3),_0x46a86f(0xc9));const _0x2b25ac=_0x10c05b[_0x46a86f(0xd9)]>0x0,_0x68fba1=_0x573e7f[_0x46a86f(0xd9)]>0x0;if(_0x2b25ac===_0x68fba1)throw CliErrors[_0x46a86f(0xf3)](_0x46a86f(0xc4),_0x46a86f(0xdb));if(_0x68fba1){const _0x363e2e=resolve(process['cwd'](),_0x573e7f);if(!existsSync(_0x363e2e))throw CliErrors[_0x46a86f(0xf3)](_0x46a86f(0xda)+_0x363e2e);}},async 'dryRun'(_0x239f25){const _0x5c0779=a98_0x43e1bd,_0x2f2b0c=await prepareIssueReport(_0x239f25);return{'method':_0x5c0779(0xe2),'url':_0x5c0779(0xcb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f2b0c['title'],'issue.description':_0x2f2b0c[_0x5c0779(0xd1)],'issue.description_original_bytes':_0x2f2b0c[_0x5c0779(0xff)][_0x5c0779(0xe5)],'issue.description_truncated':_0x2f2b0c[_0x5c0779(0xff)]['truncated'],'issue.description_redactions':_0x2f2b0c[_0x5c0779(0xff)][_0x5c0779(0xc6)],'issue.description_redaction_kinds':_0x2f2b0c[_0x5c0779(0xff)]['redactionKinds'][_0x5c0779(0xc7)](',')}},'description':[_0x5c0779(0xfa),'descriptionSource:\x20'+_0x2f2b0c[_0x5c0779(0xd2)],_0x2f2b0c[_0x5c0779(0xdd)]?_0x5c0779(0xe6)+_0x2f2b0c[_0x5c0779(0xdd)]:null,_0x2f2b0c['sanitize'][_0x5c0779(0xc3)]?_0x5c0779(0xeb)+_0x2f2b0c[_0x5c0779(0xff)][_0x5c0779(0xe5)]+_0x5c0779(0xce):null,_0x2f2b0c[_0x5c0779(0xff)]['redactionCount']>0x0?'redactions:\x20'+_0x2f2b0c['sanitize'][_0x5c0779(0xc6)]+'\x20('+_0x2f2b0c[_0x5c0779(0xff)][_0x5c0779(0xe4)]['join'](',\x20')+')':null][_0x5c0779(0xf5)](Boolean)[_0x5c0779(0xc7)]('\x0a')};},async 'execute'(_0x5e26eb){const _0x4b50f4=a98_0x43e1bd,_0x5b9e28=await prepareIssueReport(_0x5e26eb);try{await sendPlatformIssueCollectLog({'title':_0x5b9e28[_0x4b50f4(0xe3)],'description':_0x5b9e28[_0x4b50f4(0xd1)],'sanitize':{'originalBytes':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xe5)],'truncated':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xc3)],'redactionCount':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xc6)],'redactionKinds':_0x5b9e28['sanitize'][_0x4b50f4(0xe4)]}});}catch(_0x92cebd){throw CliErrors[_0x4b50f4(0xfe)](_0x4b50f4(0xd7)+(_0x92cebd instanceof Error?_0x92cebd[_0x4b50f4(0xd4)]:String(_0x92cebd)),_0x4b50f4(0xc5));}return{'ok':!![],'message':buildResultMessage(_0x5b9e28['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x4b50f4(0x100),_0x4b50f4(0xde),_0x4b50f4(0xcc),_0x4b50f4(0xe0),_0x4b50f4(0xcf),_0x4b50f4(0xf8)],'issue':{'title':_0x5b9e28[_0x4b50f4(0xe3)],'descriptionLength':_0x5b9e28[_0x4b50f4(0xd1)][_0x4b50f4(0xd9)],'descriptionSource':_0x5b9e28[_0x4b50f4(0xd2)],..._0x5b9e28[_0x4b50f4(0xdd)]?{'descriptionFile':_0x5b9e28[_0x4b50f4(0xdd)]}:{},'sanitize':{'originalBytes':_0x5b9e28[_0x4b50f4(0xff)]['originalBytes'],'truncated':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xc3)],'redactions':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xc6)],'redactionKinds':_0x5b9e28[_0x4b50f4(0xff)][_0x4b50f4(0xe4)]}}}};}};function buildResultMessage(_0xcfd9f6){const _0x1727d8=a98_0x43e1bd,_0x3bdc93=[];return _0xcfd9f6['truncated']&&_0x3bdc93[_0x1727d8(0x101)]('truncated\x20from\x20'+_0xcfd9f6[_0x1727d8(0xe5)]+_0x1727d8(0xce)),_0xcfd9f6[_0x1727d8(0xc6)]>0x0&&_0x3bdc93[_0x1727d8(0x101)]('redacted\x20'+_0xcfd9f6[_0x1727d8(0xc6)]+'\x20secret(s):\x20'+_0xcfd9f6[_0x1727d8(0xe4)][_0x1727d8(0xc7)](',\x20')),_0x3bdc93[_0x1727d8(0xd9)]===0x0?_0x1727d8(0xf2):_0x1727d8(0xf4)+_0x3bdc93[_0x1727d8(0xc7)](';\x20')+')';}async function prepareIssueReport(_0x2e07eb){const _0x4a7eee=a98_0x43e1bd,_0x910b2e=_0x2e07eb[_0x4a7eee(0x102)](_0x4a7eee(0xe3))[_0x4a7eee(0xfd)](),_0x2c44ac=_0x2e07eb[_0x4a7eee(0x102)](_0x4a7eee(0xd1)),_0x1fa3fd=_0x2e07eb[_0x4a7eee(0x102)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1fa3fd){const _0x546a2c=_0x2c44ac;if(!_0x546a2c[_0x4a7eee(0xfd)]())throw CliErrors[_0x4a7eee(0xf3)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x4a7eee(0xd5));const _0x46e7af=sanitizeIssueDescription(_0x546a2c);return{'title':_0x910b2e,'description':_0x46e7af[_0x4a7eee(0xd1)],'descriptionSource':_0x4a7eee(0xf9),'sanitize':_0x46e7af};}const _0x1c0e79=resolve(process[_0x4a7eee(0xd3)](),_0x1fa3fd),_0x110250=await readFile(_0x1c0e79,_0x4a7eee(0xec));if(!_0x110250[_0x4a7eee(0xfd)]())throw CliErrors[_0x4a7eee(0xf3)](_0x4a7eee(0xcd)+_0x1c0e79,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x3d1571=sanitizeIssueDescription(_0x110250);return{'title':_0x910b2e,'description':_0x3d1571[_0x4a7eee(0xd1)],'descriptionSource':_0x4a7eee(0xf1),'descriptionFilePath':_0x1c0e79,'sanitize':_0x3d1571};}
1
+ const a98_0x3233b2=a98_0x14b7;(function(_0x10ad4,_0x5a2984){const _0x5525e9=a98_0x14b7,_0x329285=_0x10ad4();while(!![]){try{const _0xc27985=parseInt(_0x5525e9(0x186))/0x1*(parseInt(_0x5525e9(0x18d))/0x2)+-parseInt(_0x5525e9(0x19a))/0x3*(-parseInt(_0x5525e9(0x172))/0x4)+-parseInt(_0x5525e9(0x1a2))/0x5+parseInt(_0x5525e9(0x17a))/0x6*(parseInt(_0x5525e9(0x173))/0x7)+-parseInt(_0x5525e9(0x19e))/0x8+-parseInt(_0x5525e9(0x192))/0x9+-parseInt(_0x5525e9(0x179))/0xa;if(_0xc27985===_0x5a2984)break;else _0x329285['push'](_0x329285['shift']());}catch(_0x29cd01){_0x329285['push'](_0x329285['shift']());}}}(a98_0x3c8d,0x40b2e));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a98_0x3c8d(){const _0x34ade6=['Failed\x20to\x20report\x20platform\x20issue:\x20','length','2786940OPEdTf','issue.description_redactions','write','\x20bytes','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue.description_original_bytes','compress','trim','6BEavIp','descriptionSource','string','redactionCount','2672504fLHQbo','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','900985JtzKnR','utf8','flagMissing','truncated\x20from\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactionKinds','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','POST','str','originalBytes','Platform\x20issue\x20reported\x20(','title','960180wkTCLM','14MVkuiu','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.title','message','file','redacted\x20','1773540TyTvlj','1478106AeudAH','join','descriptionFile:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Issue\x20description\x20file\x20is\x20empty:\x20','redactions:\x20','report','truncated','inline','Issue\x20description\x20cannot\x20be\x20empty.','cwd','issue.description_truncated','2DzPMUg','issue.description','description','issue.description_redaction_kinds','validation','descriptionSource:\x20','otel://','293488jSHBWM','sanitize','issue'];a98_0x3c8d=function(){return _0x34ade6;};return a98_0x3c8d();}export const issueReport={'service':a98_0x3233b2(0x18f),'command':a98_0x3233b2(0x180),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a98_0x3233b2(0x194),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a98_0x3233b2(0x198),'flags':[{'name':'title','type':a98_0x3233b2(0x19c),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a98_0x3233b2(0x188),'type':'string','description':a98_0x3233b2(0x17d)},{'name':DESCRIPTION_FILE_FLAG,'type':a98_0x3233b2(0x19c),'description':a98_0x3233b2(0x16c)}],async 'validate'(_0x1d43b2){const _0x12d3e3=a98_0x3233b2,_0x25d421=_0x1d43b2[_0x12d3e3(0x16e)](_0x12d3e3(0x171))[_0x12d3e3(0x199)](),_0x548aeb=_0x1d43b2['str'](_0x12d3e3(0x188))['trim'](),_0x10aab4=_0x1d43b2[_0x12d3e3(0x16e)](DESCRIPTION_FILE_FLAG)[_0x12d3e3(0x199)]();if(!_0x25d421)throw CliErrors[_0x12d3e3(0x1a4)](_0x12d3e3(0x171),_0x12d3e3(0x196));const _0xb0635b=_0x548aeb[_0x12d3e3(0x191)]>0x0,_0x2ef1d8=_0x10aab4['length']>0x0;if(_0xb0635b===_0x2ef1d8)throw CliErrors[_0x12d3e3(0x18a)](_0x12d3e3(0x174),_0x12d3e3(0x169));if(_0x2ef1d8){const _0x14993a=resolve(process[_0x12d3e3(0x184)](),_0x10aab4);if(!existsSync(_0x14993a))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x14993a);}},async 'dryRun'(_0x56bfbd){const _0x5d0d0b=a98_0x3233b2,_0x310dd4=await prepareIssueReport(_0x56bfbd);return{'method':_0x5d0d0b(0x16d),'url':_0x5d0d0b(0x18c)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x310dd4['title'],'issue.description':_0x310dd4['description'],'issue.description_original_bytes':_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x16f)],'issue.description_truncated':_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x181)],'issue.description_redactions':_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x19d)],'issue.description_redaction_kinds':_0x310dd4[_0x5d0d0b(0x18e)]['redactionKinds'][_0x5d0d0b(0x17b)](',')}},'description':[_0x5d0d0b(0x1a0),_0x5d0d0b(0x18b)+_0x310dd4['descriptionSource'],_0x310dd4['descriptionFilePath']?_0x5d0d0b(0x17c)+_0x310dd4['descriptionFilePath']:null,_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x181)]?'truncated:\x20original\x20'+_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x16f)]+_0x5d0d0b(0x195):null,_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x19d)]>0x0?_0x5d0d0b(0x17f)+_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x19d)]+'\x20('+_0x310dd4[_0x5d0d0b(0x18e)][_0x5d0d0b(0x16b)]['join'](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x5bf908){const _0x51c2e3=a98_0x3233b2,_0x25caf4=await prepareIssueReport(_0x5bf908);try{await sendPlatformIssueCollectLog({'title':_0x25caf4[_0x51c2e3(0x171)],'description':_0x25caf4[_0x51c2e3(0x188)],'sanitize':{'originalBytes':_0x25caf4[_0x51c2e3(0x18e)][_0x51c2e3(0x16f)],'truncated':_0x25caf4[_0x51c2e3(0x18e)][_0x51c2e3(0x181)],'redactionCount':_0x25caf4[_0x51c2e3(0x18e)][_0x51c2e3(0x19d)],'redactionKinds':_0x25caf4[_0x51c2e3(0x18e)][_0x51c2e3(0x16b)]}});}catch(_0x4e3a6b){throw CliErrors['apiError'](_0x51c2e3(0x190)+(_0x4e3a6b instanceof Error?_0x4e3a6b[_0x51c2e3(0x176)]:String(_0x4e3a6b)),_0x51c2e3(0x16a));}return{'ok':!![],'message':buildResultMessage(_0x25caf4['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x51c2e3(0x175),_0x51c2e3(0x187),_0x51c2e3(0x197),_0x51c2e3(0x185),_0x51c2e3(0x193),_0x51c2e3(0x189)],'issue':{'title':_0x25caf4['title'],'descriptionLength':_0x25caf4[_0x51c2e3(0x188)][_0x51c2e3(0x191)],'descriptionSource':_0x25caf4[_0x51c2e3(0x19b)],..._0x25caf4[_0x51c2e3(0x1a1)]?{'descriptionFile':_0x25caf4[_0x51c2e3(0x1a1)]}:{},'sanitize':{'originalBytes':_0x25caf4[_0x51c2e3(0x18e)]['originalBytes'],'truncated':_0x25caf4['sanitize'][_0x51c2e3(0x181)],'redactions':_0x25caf4[_0x51c2e3(0x18e)]['redactionCount'],'redactionKinds':_0x25caf4[_0x51c2e3(0x18e)][_0x51c2e3(0x16b)]}}}};}};function a98_0x14b7(_0x3e6a9a,_0x42828d){_0x3e6a9a=_0x3e6a9a-0x169;const _0x3c8da1=a98_0x3c8d();let _0x14b765=_0x3c8da1[_0x3e6a9a];return _0x14b765;}function buildResultMessage(_0x3634e2){const _0x12ee9a=a98_0x3233b2,_0x41329f=[];return _0x3634e2[_0x12ee9a(0x181)]&&_0x41329f['push'](_0x12ee9a(0x1a5)+_0x3634e2[_0x12ee9a(0x16f)]+'\x20bytes'),_0x3634e2[_0x12ee9a(0x19d)]>0x0&&_0x41329f['push'](_0x12ee9a(0x178)+_0x3634e2[_0x12ee9a(0x19d)]+'\x20secret(s):\x20'+_0x3634e2['redactionKinds'][_0x12ee9a(0x17b)](',\x20')),_0x41329f['length']===0x0?'Platform\x20issue\x20reported':_0x12ee9a(0x170)+_0x41329f[_0x12ee9a(0x17b)](';\x20')+')';}async function prepareIssueReport(_0xa18510){const _0x49f823=a98_0x3233b2,_0x2399bd=_0xa18510[_0x49f823(0x16e)](_0x49f823(0x171))[_0x49f823(0x199)](),_0x468663=_0xa18510[_0x49f823(0x16e)](_0x49f823(0x188)),_0x1ab878=_0xa18510[_0x49f823(0x16e)](DESCRIPTION_FILE_FLAG)[_0x49f823(0x199)]();if(!_0x1ab878){const _0x361814=_0x468663;if(!_0x361814[_0x49f823(0x199)]())throw CliErrors['validation'](_0x49f823(0x183),_0x49f823(0x19f));const _0x1c8a31=sanitizeIssueDescription(_0x361814);return{'title':_0x2399bd,'description':_0x1c8a31[_0x49f823(0x188)],'descriptionSource':_0x49f823(0x182),'sanitize':_0x1c8a31};}const _0x54699c=resolve(process[_0x49f823(0x184)](),_0x1ab878),_0x5c6c2d=await readFile(_0x54699c,_0x49f823(0x1a3));if(!_0x5c6c2d[_0x49f823(0x199)]())throw CliErrors[_0x49f823(0x18a)](_0x49f823(0x17e)+_0x54699c,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x275990=sanitizeIssueDescription(_0x5c6c2d);return{'title':_0x2399bd,'description':_0x275990['description'],'descriptionSource':_0x49f823(0x177),'descriptionFilePath':_0x54699c,'sanitize':_0x275990};}
@@ -1 +1 @@
1
- const a99_0x1de27d=a99_0x2bab;(function(_0x1b4d71,_0x7563c6){const _0x9dd02e=a99_0x2bab,_0x2c4ea9=_0x1b4d71();while(!![]){try{const _0x16b1fe=-parseInt(_0x9dd02e(0x87))/0x1+parseInt(_0x9dd02e(0x6b))/0x2+parseInt(_0x9dd02e(0x7e))/0x3*(parseInt(_0x9dd02e(0x85))/0x4)+-parseInt(_0x9dd02e(0x6e))/0x5*(-parseInt(_0x9dd02e(0x79))/0x6)+-parseInt(_0x9dd02e(0x7a))/0x7*(-parseInt(_0x9dd02e(0x81))/0x8)+-parseInt(_0x9dd02e(0x88))/0x9*(-parseInt(_0x9dd02e(0x7b))/0xa)+-parseInt(_0x9dd02e(0x75))/0xb;if(_0x16b1fe===_0x7563c6)break;else _0x2c4ea9['push'](_0x2c4ea9['shift']());}catch(_0x42d6fd){_0x2c4ea9['push'](_0x2c4ea9['shift']());}}}(a99_0x34de,0x6c20c));function a99_0x34de(){const _0x51634d=['restore','length','1590284BxSgkj','password','cookie','230rKrBRd','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','authorization','__RB_OSS_ID_','label','REDACTED:bearer-jwt','toString','22843733jyLgTG','bearer-jwt','replace','utf8','42846gdcgnf','378EJenjv','6106160BzSWdN','includes','max','69kHVhQZ','push','kind','67848fgCstT','description','access-key','byteLength','122392hSeqSi','string','376377dmwGrf','9ozHMNO','from','REDACTED:password','pattern','REDACTED:authorization'];a99_0x34de=function(){return _0x51634d;};return a99_0x34de();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a99_0x1de27d(0x6f),REDACTION_RULES=[{'kind':a99_0x1de27d(0x6d),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a99_0x1de27d(0x70),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a99_0x1de27d(0x8c)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a99_0x1de27d(0x83),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a99_0x1de27d(0x6c),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a99_0x1de27d(0x8a)},{'kind':a99_0x1de27d(0x76),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a99_0x1de27d(0x73)}];function a99_0x2bab(_0x4a6079,_0x40bfc6){_0x4a6079=_0x4a6079-0x69;const _0x34de0d=a99_0x34de();let _0x2babac=_0x34de0d[_0x4a6079];return _0x2babac;}export function sanitizeIssueDescription(_0x1f6539){const _0x3051b9=a99_0x1de27d,_0x393879=Buffer[_0x3051b9(0x84)](_0x1f6539,_0x3051b9(0x78)),_0x51000d=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x41a754=_0x1f6539,_0x22b258=0x0;const _0x250e19=[];if(!_0x51000d){const _0x452f64=protectOssAccessKeyIds(_0x41a754);_0x41a754=_0x452f64[_0x3051b9(0x82)];for(const _0x204694 of REDACTION_RULES){let _0x444105=0x0;_0x41a754=_0x41a754['replace'](_0x204694[_0x3051b9(0x8b)],(_0x12cfc0,_0x3263ab)=>{const _0x265016=_0x3051b9;_0x444105+=0x1;const _0x36c35b=typeof _0x3263ab===_0x265016(0x86)?_0x3263ab:'';return _0x36c35b+'['+_0x204694[_0x265016(0x72)]+']';}),_0x444105>0x0&&(_0x22b258+=_0x444105,!_0x250e19[_0x3051b9(0x7c)](_0x204694[_0x3051b9(0x80)])&&_0x250e19[_0x3051b9(0x7f)](_0x204694['kind']));}_0x41a754=_0x452f64[_0x3051b9(0x69)](_0x41a754);}let _0x18cf7f=![];if(Buffer['byteLength'](_0x41a754,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x18cf7f=!![];const _0x14d986=Buffer['byteLength'](TRUNCATION_NOTICE,_0x3051b9(0x78)),_0x24b980=Math[_0x3051b9(0x7d)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x14d986);_0x41a754=sliceUtf8Bytes(_0x41a754,_0x24b980)+TRUNCATION_NOTICE;}return{'description':_0x41a754,'originalBytes':_0x393879,'truncated':_0x18cf7f,'redactionCount':_0x22b258,'redactionKinds':_0x250e19};}function protectOssAccessKeyIds(_0x3b403c){const _0x245b46=a99_0x1de27d,_0x2ef371=[],_0x3d2f03=_0x3b403c['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x5252f3,_0x36ffa2)=>{const _0x308c4f=a99_0x2bab,_0x8f81d5=_0x2ef371[_0x308c4f(0x7f)](_0x5252f3['slice'](_0x36ffa2[_0x308c4f(0x6a)]))-0x1;return _0x36ffa2+_0x308c4f(0x71)+_0x8f81d5+'__';});return{'description':_0x3d2f03,'restore':_0x577631=>_0x577631[_0x245b46(0x77)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x139e4b,_0x376163,_0x25cc3d)=>{const _0x2dfb43=_0x2ef371[Number(_0x25cc3d)];return _0x2dfb43===undefined?_0x139e4b:''+_0x376163+_0x2dfb43;})};}function sliceUtf8Bytes(_0x349e82,_0x57ffd3){const _0x2755b1=a99_0x1de27d;if(_0x57ffd3<=0x0)return'';const _0x29a528=Buffer[_0x2755b1(0x89)](_0x349e82,'utf8');if(_0x29a528[_0x2755b1(0x84)]<=_0x57ffd3)return _0x349e82;let _0x452ebc=_0x57ffd3;while(_0x452ebc>0x0){const _0x4c7333=_0x29a528[_0x452ebc];if(_0x4c7333===undefined||(_0x4c7333&0xc0)!==0x80)break;_0x452ebc-=0x1;}return _0x29a528['subarray'](0x0,_0x452ebc)[_0x2755b1(0x74)]('utf8');}
1
+ const a99_0x5e021c=a99_0x5270;(function(_0xf5785c,_0x142454){const _0x4293ea=a99_0x5270,_0x4d2d60=_0xf5785c();while(!![]){try{const _0x3a9433=parseInt(_0x4293ea(0x157))/0x1+parseInt(_0x4293ea(0x15d))/0x2+parseInt(_0x4293ea(0x15c))/0x3*(parseInt(_0x4293ea(0x164))/0x4)+parseInt(_0x4293ea(0x155))/0x5+-parseInt(_0x4293ea(0x14e))/0x6+-parseInt(_0x4293ea(0x15e))/0x7+-parseInt(_0x4293ea(0x158))/0x8;if(_0x3a9433===_0x142454)break;else _0x4d2d60['push'](_0x4d2d60['shift']());}catch(_0x20b662){_0x4d2d60['push'](_0x4d2d60['shift']());}}}(a99_0x2283,0x9cee8));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a99_0x5270(_0x527ec4,_0x3bbf8b){_0x527ec4=_0x527ec4-0x14d;const _0x2283a1=a99_0x2283();let _0x527072=_0x2283a1[_0x527ec4];return _0x527072;}const TRUNCATION_NOTICE=a99_0x5e021c(0x152),REDACTION_RULES=[{'kind':a99_0x5e021c(0x162),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a99_0x5e021c(0x16a)},{'kind':a99_0x5e021c(0x160),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a99_0x5e021c(0x15f),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a99_0x5e021c(0x15b)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a99_0x5e021c(0x15a),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a99_0x5e021c(0x163)},{'kind':a99_0x5e021c(0x156),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x58f409){const _0x37b989=a99_0x5e021c,_0x2b21bd=Buffer['byteLength'](_0x58f409,_0x37b989(0x150)),_0x7777ba=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4152d0=_0x58f409,_0x3f8615=0x0;const _0x1e7355=[];if(!_0x7777ba){const _0x16b94a=protectOssAccessKeyIds(_0x4152d0);_0x4152d0=_0x16b94a['description'];for(const _0x62926c of REDACTION_RULES){let _0x51e10e=0x0;_0x4152d0=_0x4152d0['replace'](_0x62926c[_0x37b989(0x159)],(_0x2a7f33,_0x1373f6)=>{const _0x35218e=_0x37b989;_0x51e10e+=0x1;const _0x13bdb2=typeof _0x1373f6===_0x35218e(0x167)?_0x1373f6:'';return _0x13bdb2+'['+_0x62926c['label']+']';}),_0x51e10e>0x0&&(_0x3f8615+=_0x51e10e,!_0x1e7355[_0x37b989(0x14d)](_0x62926c[_0x37b989(0x151)])&&_0x1e7355[_0x37b989(0x168)](_0x62926c['kind']));}_0x4152d0=_0x16b94a[_0x37b989(0x165)](_0x4152d0);}let _0x590844=![];if(Buffer[_0x37b989(0x161)](_0x4152d0,_0x37b989(0x150))>ISSUE_DESCRIPTION_MAX_BYTES){_0x590844=!![];const _0x3d609d=Buffer[_0x37b989(0x161)](TRUNCATION_NOTICE,'utf8'),_0x2b615e=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3d609d);_0x4152d0=sliceUtf8Bytes(_0x4152d0,_0x2b615e)+TRUNCATION_NOTICE;}return{'description':_0x4152d0,'originalBytes':_0x2b21bd,'truncated':_0x590844,'redactionCount':_0x3f8615,'redactionKinds':_0x1e7355};}function protectOssAccessKeyIds(_0x5c3d7d){const _0x4714e=a99_0x5e021c,_0x3d3e4c=[],_0x479428=_0x5c3d7d['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x223d58,_0x1f61e3)=>{const _0x30c412=a99_0x5270,_0x10cb4c=_0x3d3e4c[_0x30c412(0x168)](_0x223d58['slice'](_0x1f61e3[_0x30c412(0x153)]))-0x1;return _0x1f61e3+_0x30c412(0x154)+_0x10cb4c+'__';});return{'description':_0x479428,'restore':_0x280e76=>_0x280e76[_0x4714e(0x14f)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x589a50,_0x3133d4,_0x19b988)=>{const _0x388ddf=_0x3d3e4c[Number(_0x19b988)];return _0x388ddf===undefined?_0x589a50:''+_0x3133d4+_0x388ddf;})};}function a99_0x2283(){const _0x2bb8eb=['private-key','authorization','byteLength','cookie','REDACTED:password','161540FwfnOp','restore','toString','string','push','from','REDACTED:cookie','includes','5431998TeJRAn','replace','utf8','kind','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','length','__RB_OSS_ID_','4645315mcSYao','bearer-jwt','313447wFPprq','4650296cnXHsu','pattern','password','REDACTED:private-key','78cBazUj','1091028tfIIMs','4960354BxSLVa'];a99_0x2283=function(){return _0x2bb8eb;};return a99_0x2283();}function sliceUtf8Bytes(_0x5964be,_0x3a197e){const _0x37d331=a99_0x5e021c;if(_0x3a197e<=0x0)return'';const _0x105ac1=Buffer[_0x37d331(0x169)](_0x5964be,_0x37d331(0x150));if(_0x105ac1['byteLength']<=_0x3a197e)return _0x5964be;let _0x447aa1=_0x3a197e;while(_0x447aa1>0x0){const _0x2ddf5e=_0x105ac1[_0x447aa1];if(_0x2ddf5e===undefined||(_0x2ddf5e&0xc0)!==0x80)break;_0x447aa1-=0x1;}return _0x105ac1['subarray'](0x0,_0x447aa1)[_0x37d331(0x166)](_0x37d331(0x150));}
@@ -1 +1 @@
1
- function a100_0x1f2c(_0x58c406,_0x25b6d9){_0x58c406=_0x58c406-0xc7;const _0x25a8f8=a100_0x25a8();let _0x1f2c1f=_0x25a8f8[_0x58c406];return _0x1f2c1f;}const a100_0x38bcce=a100_0x1f2c;(function(_0x142212,_0x33428){const _0x188cbb=a100_0x1f2c,_0x1d982c=_0x142212();while(!![]){try{const _0x594485=-parseInt(_0x188cbb(0xdc))/0x1*(-parseInt(_0x188cbb(0xe6))/0x2)+-parseInt(_0x188cbb(0xd1))/0x3+parseInt(_0x188cbb(0xd2))/0x4*(-parseInt(_0x188cbb(0xe5))/0x5)+parseInt(_0x188cbb(0xd0))/0x6+-parseInt(_0x188cbb(0xd9))/0x7*(parseInt(_0x188cbb(0xcc))/0x8)+-parseInt(_0x188cbb(0xca))/0x9*(parseInt(_0x188cbb(0xd8))/0xa)+-parseInt(_0x188cbb(0xce))/0xb*(-parseInt(_0x188cbb(0xe9))/0xc);if(_0x594485===_0x33428)break;else _0x1d982c['push'](_0x1d982c['shift']());}catch(_0x37274f){_0x1d982c['push'](_0x1d982c['shift']());}}}(a100_0x25a8,0x55167));import{logger}from'../../utils/logger.js';function a100_0x25a8(){const _0x3287cd=['\x20\x20\x20Details:\x20','message','level','toLocaleString','stringify','forEach','duration','20hEXXkS','638062GvWPLn','warn','details','12kKRoNb','*\x20Logs\x20cleared','\x20\x20\x20Duration:\x20','readLogs','1503SjIWCk','*\x20Lovrabet\x20CLI\x20logs:\x0a','3672712DcOhbt','success','4005353amrnMl','\x20\x20\x20Time:\x20','3810630trAzhJ','162282TvDRhO','368548UGbsTQ','logs','View\x20command\x20history\x20logs','*\x20No\x20logs\x20found','log','keys','5270hovjyy','7XgPDXZ','length','timestamp','1UedPQt','Clear\x20command\x20history\x20logs'];a100_0x25a8=function(){return _0x3287cd;};return a100_0x25a8();}function printLogs(_0x3f6767){const _0x3c114b=a100_0x1f2c;if(_0x3f6767[_0x3c114b(0xda)]===0x0){console[_0x3c114b(0xd6)](_0x3c114b(0xd5));return;}console[_0x3c114b(0xd6)](_0x3c114b(0xcb)),_0x3f6767[_0x3c114b(0xe3)]((_0x20474e,_0x14fbf2)=>{const _0x1cddae=_0x3c114b,_0x2cccb2=new Date(_0x20474e[_0x1cddae(0xdb)])[_0x1cddae(0xe1)]('en-US'),_0x514cd5=_0x20474e[_0x1cddae(0xe0)]===_0x1cddae(0xcd)?'√':_0x20474e['level']==='error'?'×':_0x20474e[_0x1cddae(0xe0)]===_0x1cddae(0xe7)?'!':'i';console[_0x1cddae(0xd6)](_0x14fbf2+0x1+'.\x20'+_0x514cd5+'\x20['+_0x20474e['command']+']\x20'+_0x20474e[_0x1cddae(0xdf)]),console['log'](_0x1cddae(0xcf)+_0x2cccb2),_0x20474e[_0x1cddae(0xe4)]&&console['log'](_0x1cddae(0xc8)+_0x20474e[_0x1cddae(0xe4)]+'ms'),_0x20474e[_0x1cddae(0xe8)]&&Object[_0x1cddae(0xd7)](_0x20474e[_0x1cddae(0xe8)])['length']>0x0&&console['log'](_0x1cddae(0xde)+JSON[_0x1cddae(0xe2)](_0x20474e['details'],null,0x2)),console[_0x1cddae(0xd6)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a100_0x38bcce(0xd4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5975d2){const _0x4fac8a=a100_0x38bcce;return printLogs(logger[_0x4fac8a(0xc9)]()),{'ok':!![]};}},{'service':a100_0x38bcce(0xd3),'command':'clear','description':a100_0x38bcce(0xdd),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x482b65){const _0x175665=a100_0x38bcce;return logger['clearLogs'](),console['log'](_0x175665(0xc7)),{'ok':!![]};}}];
1
+ function a100_0x290e(_0x19306b,_0x58a3c8){_0x19306b=_0x19306b-0x186;const _0x4dff98=a100_0x4dff();let _0x290ee1=_0x4dff98[_0x19306b];return _0x290ee1;}const a100_0x254ebf=a100_0x290e;(function(_0x5b71cf,_0x334cc6){const _0x1c6e9a=a100_0x290e,_0x2a215e=_0x5b71cf();while(!![]){try{const _0xf64063=-parseInt(_0x1c6e9a(0x1a8))/0x1+parseInt(_0x1c6e9a(0x1a2))/0x2*(parseInt(_0x1c6e9a(0x1a1))/0x3)+parseInt(_0x1c6e9a(0x191))/0x4*(parseInt(_0x1c6e9a(0x18a))/0x5)+-parseInt(_0x1c6e9a(0x195))/0x6*(parseInt(_0x1c6e9a(0x18d))/0x7)+parseInt(_0x1c6e9a(0x1a6))/0x8*(-parseInt(_0x1c6e9a(0x198))/0x9)+-parseInt(_0x1c6e9a(0x19a))/0xa+parseInt(_0x1c6e9a(0x19e))/0xb;if(_0xf64063===_0x334cc6)break;else _0x2a215e['push'](_0x2a215e['shift']());}catch(_0x53009c){_0x2a215e['push'](_0x2a215e['shift']());}}}(a100_0x4dff,0xc691e));import{logger}from'../../utils/logger.js';function a100_0x4dff(){const _0x538e20=['*\x20Logs\x20cleared','\x20\x20\x20Duration:\x20','4NKPSKq','forEach','clearLogs','details','3018HVTcOS','level','View\x20command\x20history\x20logs','5154048aeEiOy','show','8521520RXTmow','keys','read','clear','23886676OqZYfH','logs','\x20\x20\x20Time:\x20','1651953uEjCoH','2UzoYdY','duration','stringify','message','8mxHTyg','warn','144435vJVzeP','*\x20No\x20logs\x20found','log','success','en-US','length','3017795ZXLmeu','\x20\x20\x20Details:\x20','toLocaleString','13125zkptbB','command'];a100_0x4dff=function(){return _0x538e20;};return a100_0x4dff();}function printLogs(_0xc1f278){const _0x273c8f=a100_0x290e;if(_0xc1f278[_0x273c8f(0x189)]===0x0){console[_0x273c8f(0x186)](_0x273c8f(0x1a9));return;}console['log']('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0xc1f278[_0x273c8f(0x192)]((_0x32415a,_0x1ccbea)=>{const _0x173a93=_0x273c8f,_0x31f026=new Date(_0x32415a['timestamp'])[_0x173a93(0x18c)](_0x173a93(0x188)),_0x376dda=_0x32415a[_0x173a93(0x196)]===_0x173a93(0x187)?'√':_0x32415a[_0x173a93(0x196)]==='error'?'×':_0x32415a[_0x173a93(0x196)]===_0x173a93(0x1a7)?'!':'i';console[_0x173a93(0x186)](_0x1ccbea+0x1+'.\x20'+_0x376dda+'\x20['+_0x32415a[_0x173a93(0x18e)]+']\x20'+_0x32415a[_0x173a93(0x1a5)]),console[_0x173a93(0x186)](_0x173a93(0x1a0)+_0x31f026),_0x32415a[_0x173a93(0x1a3)]&&console[_0x173a93(0x186)](_0x173a93(0x190)+_0x32415a[_0x173a93(0x1a3)]+'ms'),_0x32415a['details']&&Object[_0x173a93(0x19b)](_0x32415a[_0x173a93(0x194)])[_0x173a93(0x189)]>0x0&&console['log'](_0x173a93(0x18b)+JSON[_0x173a93(0x1a4)](_0x32415a[_0x173a93(0x194)],null,0x2)),console[_0x173a93(0x186)]('');});}export const logsDefinitions=[{'service':a100_0x254ebf(0x19f),'command':a100_0x254ebf(0x199),'description':a100_0x254ebf(0x197),'risk':a100_0x254ebf(0x19c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x42722a){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a100_0x254ebf(0x19f),'command':a100_0x254ebf(0x19d),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2fd237){const _0x3f0650=a100_0x254ebf;return logger[_0x3f0650(0x193)](),console['log'](_0x3f0650(0x18f)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a101_0x4841e7=a101_0x1b71;(function(_0xc02588,_0x1167cd){const _0x336562=a101_0x1b71,_0x11915e=_0xc02588();while(!![]){try{const _0x58d6f8=-parseInt(_0x336562(0x159))/0x1*(parseInt(_0x336562(0x112))/0x2)+parseInt(_0x336562(0x12b))/0x3*(-parseInt(_0x336562(0x148))/0x4)+-parseInt(_0x336562(0x13e))/0x5*(-parseInt(_0x336562(0x142))/0x6)+-parseInt(_0x336562(0x154))/0x7*(parseInt(_0x336562(0x133))/0x8)+-parseInt(_0x336562(0x139))/0x9*(parseInt(_0x336562(0x151))/0xa)+parseInt(_0x336562(0x11a))/0xb*(-parseInt(_0x336562(0x116))/0xc)+-parseInt(_0x336562(0x15e))/0xd*(-parseInt(_0x336562(0x13b))/0xe);if(_0x58d6f8===_0x1167cd)break;else _0x11915e['push'](_0x11915e['shift']());}catch(_0x1e7017){_0x11915e['push'](_0x11915e['shift']());}}}(a101_0x266c,0xa89f8));import a101_0x33cc1a from'chalk';function a101_0x1b71(_0x2a5454,_0x57309f){_0x2a5454=_0x2a5454-0x108;const _0x266c17=a101_0x266c();let _0x1b7109=_0x266c17[_0x2a5454];return _0x1b7109;}import{filterMenusWithResources,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a101_0x266c(){const _0x5fe3fe=['\x20updated.','2774486uiIIms','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20menu(s)\x20updated','selectedAppName','\x20menu\x20resource\x20set(s).','import','Online\x20menu\x20list\x20fetched','bool','Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20','\x20\x20Cancelled.','mode','Update\x20CDN\x20asset\x20URLs\x20for\x20selected\x20online\x20menus\x20with\x20existing\x20resources','Updated\x20','paths','menu-ids','Invalid\x20--load-mode.\x20Allowed\x20values:\x20import,\x20script,\x20fetch','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','failed','some','6IJHRKg','\x20menu(s)...','Explicitly\x20update\x20every\x20menu\x20that\x20has\x20resources','appcode','626352Zdtngp','asset-update','validation','load-mode','11OjYWZY','updated','\x20failed.','yes','Menu\x20asset\x20update\x20failed','Resource\x20update\x20mode:\x20replace\x20rewrites\x20resources\x20from\x20supplied\x20URLs;\x20','skipped','menu\x20asset-update\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','gray','Menu\x20asset\x20update\x20completed:\x20','trim','Updating\x20','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','parse','params','boolean','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','414657GQyrET','No\x20menus\x20with\x20existing\x20resources\x20would\x20be\x20updated.','object','Invalid\x20--mode.\x20Allowed\x20values:\x20replace,\x20patch','patch\x20replaces\x20a\x20supplied\x20type\x20only\x20when\x20the\x20existing\x20target\x20is\x20unambiguous','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','patch','\x20menu(s)\x20with\x20existing\x20resources','344QhafFa','length','str','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','Would\x20update\x20','isArray','617877TYCehn','\x20menu(s)\x20failed','182QsHuSN','\x20menu(s)\x20with\x20JS:\x20','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','25SRGbQW','yellow','Allow\x20replace\x20mode\x20to\x20remove\x20existing\x20JS\x20resources','map','43272PDUujV','fetch','message','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','string','cyan','8LXsJPE','filter','cssUrl','rawFlags','script','diffs','split','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','\x20and\x20CSS:\x20','20DGbgOB','high-risk-write','force','65009OoIUAe','\x20updated,\x20','cookie','replace','Menu\x20asset\x20update\x20skipped','418195ESjMnN','jsUrl','POST','appCode'];a101_0x266c=function(){return _0x5fe3fe;};return a101_0x266c();}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';import{selectMenusForUpdate}from'../../commands/menu/shared/update-core.js';import{isInProject}from'../../context.js';export const menuAssetUpdate={'service':'menu','command':a101_0x4841e7(0x117),'description':a101_0x4841e7(0x10a),'risk':a101_0x4841e7(0x152),'flags':[{'name':'params','type':a101_0x4841e7(0x146),'description':a101_0x4841e7(0x166)+a101_0x4841e7(0x12a)},{'name':a101_0x4841e7(0x109),'type':a101_0x4841e7(0x146),'description':a101_0x4841e7(0x11f)+a101_0x4841e7(0x12f),'enum':[a101_0x4841e7(0x157),a101_0x4841e7(0x131)],'default':a101_0x4841e7(0x131)},{'name':a101_0x4841e7(0x153),'type':a101_0x4841e7(0x129),'description':a101_0x4841e7(0x140)},{'name':a101_0x4841e7(0x10d),'type':a101_0x4841e7(0x146),'description':a101_0x4841e7(0x10f)},{'name':a101_0x4841e7(0x10c),'type':a101_0x4841e7(0x146),'description':a101_0x4841e7(0x130)},{'name':'all','type':'boolean','description':a101_0x4841e7(0x114)},{'name':'load-mode','type':a101_0x4841e7(0x146),'enum':[a101_0x4841e7(0x163),a101_0x4841e7(0x14c),a101_0x4841e7(0x143)],'description':'Explicitly\x20change\x20the\x20microfrontend\x20resource\x20loading\x20mode'}],async 'dryRun'(_0x46ff78){const _0x1c10a8=a101_0x4841e7;ensureRunnableContext(_0x46ff78[_0x1c10a8(0x14b)],_0x46ff78[_0x1c10a8(0x161)]);const _0x20e455=await runMenuUpdateCore(_0x46ff78[_0x1c10a8(0x15c)],_0x46ff78[_0x1c10a8(0x156)],_0x46ff78[_0x1c10a8(0x135)](_0x1c10a8(0x128)),{'mode':parseMode(_0x46ff78[_0x1c10a8(0x135)](_0x1c10a8(0x109))),'dryRun':!![],'force':_0x46ff78[_0x1c10a8(0x165)]('force'),'selection':parseSelection(_0x46ff78),'loadScriptMode':parseLoadScriptMode(_0x46ff78[_0x1c10a8(0x135)]('load-mode'))});return{'method':_0x1c10a8(0x15b),'url':'/smartapi/menu/update','body':_0x20e455,'description':_0x20e455['skipped']?_0x1c10a8(0x12c):_0x1c10a8(0x137)+(_0x20e455[_0x1c10a8(0x14d)]?.['length']??0x0)+_0x1c10a8(0x162)};},async 'execute'(_0x356247){const _0x3401fe=a101_0x4841e7;ensureRunnableContext(_0x356247['rawFlags'],_0x356247[_0x3401fe(0x161)]);const _0x1a8470=_0x356247['flag'](_0x3401fe(0x11d)),_0x4dd21d=_0x356247[_0x3401fe(0x135)]('params'),_0x5513d5=parseMode(_0x356247[_0x3401fe(0x135)](_0x3401fe(0x109))),_0xbc163c=_0x356247[_0x3401fe(0x165)]('force'),_0xf97273=parseLoadScriptMode(_0x356247[_0x3401fe(0x135)](_0x3401fe(0x119))),_0x493fb7=parseParams(_0x4dd21d),_0x1e3e13=!!(_0x493fb7[_0x3401fe(0x15a)]||_0x493fb7['cssUrl']);if(_0x1a8470||_0x1e3e13&&!isInteractive()){const _0x1a819a=await runMenuUpdateCore(_0x356247[_0x3401fe(0x15c)],_0x356247['cookie'],_0x4dd21d,{'mode':_0x5513d5,'force':_0xbc163c,'selection':parseSelection(_0x356247),'loadScriptMode':_0xf97273});return _0x1a819a[_0x3401fe(0x120)]?writeCliSideChannelLine(_0x3401fe(0x14f)):(writeCliSideChannelLine('✓\x20Menu\x20asset\x20update\x20completed:\x20'+_0x1a819a['updated']+_0x3401fe(0x160)),_0x1a819a[_0x3401fe(0x110)]>0x0&&writeCliSideChannelLine('!\x20'+_0x1a819a['failed']+_0x3401fe(0x13a))),{'ok':_0x1a819a[_0x3401fe(0x110)]===0x0,'data':_0x1a819a,'message':_0x1a819a[_0x3401fe(0x120)]?_0x3401fe(0x158):_0x3401fe(0x123)+_0x1a819a['updated']+_0x3401fe(0x155)+_0x1a819a[_0x3401fe(0x110)]+_0x3401fe(0x11c)};}requireInteractive();const _0x3e5997=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x5ac5c5;try{_0x5ac5c5=await fetchOnlineMenuList(_0x356247['appCode'],_0x356247[_0x3401fe(0x156)]),stopSpinner(_0x3e5997,_0x3401fe(0x164),!![]);}catch(_0xbedb92){stopSpinner(_0x3e5997,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors['validation'](_0xbedb92 instanceof Error?_0xbedb92[_0x3401fe(0x144)]:_0x3401fe(0x15f));}const _0x3ab4fd=filterMenusWithResources(_0x5ac5c5),_0x494aef=parseSelection(_0x356247,![]),_0x430e86=_0x494aef?selectMenusForUpdate(_0x3ab4fd,_0x494aef):_0x3ab4fd;if(_0x430e86[_0x3401fe(0x134)]===0x0)return writeCliSideChannelLine(a101_0x33cc1a[_0x3401fe(0x13f)]('\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found')),{'ok':!![]};writeCliSideChannelLine(''),writeCliSideChannelLine(a101_0x33cc1a[_0x3401fe(0x147)]('\x20\x20Found\x20'+_0x430e86[_0x3401fe(0x134)]+_0x3401fe(0x132))),writeCliSideChannelLine(renderUpdateSummary(_0x430e86[_0x3401fe(0x141)](_0x551007=>_0x551007['label']),[_0x493fb7[_0x3401fe(0x15a)],_0x493fb7[_0x3401fe(0x14a)]])),writeCliSideChannelLine('');let _0x9173a=_0x493fb7['jsUrl'],_0x2dadfb=_0x493fb7[_0x3401fe(0x14a)];!_0x9173a&&(_0x9173a=await askJsUrl());!_0x2dadfb&&(_0x2dadfb=await askCssUrl());const _0x351d28=await askConfirm('\x20\x20Update\x20'+_0x430e86[_0x3401fe(0x134)]+_0x3401fe(0x13c)+_0x9173a+_0x3401fe(0x150)+_0x2dadfb+'?');if(!_0x351d28)return writeCliSideChannelLine(a101_0x33cc1a[_0x3401fe(0x122)](_0x3401fe(0x108))),{'ok':!![]};const _0x2ec45f=startSpinner(_0x3401fe(0x125)+_0x430e86['length']+_0x3401fe(0x113));try{const _0x4ac420=await runMenuUpdateCore(_0x356247['appCode'],_0x356247[_0x3401fe(0x156)],JSON['stringify']({'jsUrl':_0x9173a,'cssUrl':_0x2dadfb}),{'mode':_0x5513d5,'force':_0xbc163c,'selection':{'all':![],'menuIds':_0x430e86['map'](_0x1f08f6=>_0x1f08f6['id']),'paths':[]},'loadScriptMode':_0xf97273});return stopSpinner(_0x2ec45f,_0x3401fe(0x10b)+_0x4ac420[_0x3401fe(0x11b)]+'\x20menu(s)',_0x4ac420['failed']===0x0),{'ok':_0x4ac420[_0x3401fe(0x110)]===0x0,'data':_0x4ac420,'message':_0x4ac420[_0x3401fe(0x110)]>0x0?_0x3401fe(0x123)+_0x4ac420[_0x3401fe(0x11b)]+_0x3401fe(0x155)+_0x4ac420[_0x3401fe(0x110)]+_0x3401fe(0x11c):_0x3401fe(0x123)+_0x4ac420[_0x3401fe(0x11b)]+_0x3401fe(0x15d)};}catch(_0x53c6f6){stopSpinner(_0x2ec45f,'Menu\x20asset\x20update\x20failed',![]);throw CliErrors[_0x3401fe(0x118)](_0x53c6f6 instanceof Error?_0x53c6f6['message']:_0x3401fe(0x11e));}}};function ensureRunnableContext(_0x5c9e61,_0x812572){const _0x40d867=a101_0x4841e7,_0x219cdc=_0x5c9e61[_0x40d867(0x115)]?String(_0x5c9e61['appcode'])[_0x40d867(0x124)]():'';if(!isInProject()&&!_0x812572&&!_0x219cdc)throw CliErrors[_0x40d867(0x118)](_0x40d867(0x121)+_0x40d867(0x136));}function parseMode(_0x349f1e){const _0x2b879f=a101_0x4841e7;if(!_0x349f1e)return'patch';if(_0x349f1e===_0x2b879f(0x157)||_0x349f1e===_0x2b879f(0x131))return _0x349f1e;throw CliErrors[_0x2b879f(0x118)](_0x2b879f(0x12e));}function parseSelection(_0x5c5b72,_0xdfb9c9=!![]){const _0x23050e=a101_0x4841e7,_0x16ee96=_0x5c5b72[_0x23050e(0x165)]('all'),_0x1ffa40=parseMenuIds(_0x5c5b72['str'](_0x23050e(0x10d))),_0x4c2b18=parseCsv(_0x5c5b72[_0x23050e(0x135)](_0x23050e(0x10c))),_0x2f2837=_0x1ffa40[_0x23050e(0x134)]>0x0||_0x4c2b18[_0x23050e(0x134)]>0x0;if(_0x16ee96&&_0x2f2837)throw CliErrors[_0x23050e(0x118)](_0x23050e(0x145));if(!_0x16ee96&&!_0x2f2837){if(!_0xdfb9c9)return undefined;throw CliErrors[_0x23050e(0x118)](_0x23050e(0x13d));}return{'all':_0x16ee96,'menuIds':_0x1ffa40,'paths':_0x4c2b18};}function parseMenuIds(_0x30177f){const _0x512448=a101_0x4841e7,_0x16c5ab=parseCsv(_0x30177f),_0x42aebb=_0x16c5ab[_0x512448(0x141)](Number);if(_0x42aebb[_0x512448(0x111)](_0x4b60a5=>!Number['isSafeInteger'](_0x4b60a5)||_0x4b60a5<=0x0))throw CliErrors[_0x512448(0x118)](_0x512448(0x126));return[...new Set(_0x42aebb)];}function parseCsv(_0x2fad19){const _0x3fa060=a101_0x4841e7;return[...new Set(_0x2fad19[_0x3fa060(0x14e)](',')['map'](_0x5cfb2a=>_0x5cfb2a['trim']())[_0x3fa060(0x149)](Boolean))];}function parseLoadScriptMode(_0x2ae110){const _0x5c258f=a101_0x4841e7;if(!_0x2ae110)return undefined;if(_0x2ae110===_0x5c258f(0x163)||_0x2ae110===_0x5c258f(0x14c)||_0x2ae110===_0x5c258f(0x143))return _0x2ae110;throw CliErrors['validation'](_0x5c258f(0x10e));}function parseParams(_0x2ac386){const _0x3c7d28=a101_0x4841e7;if(!_0x2ac386)return{};try{const _0x1e740b=JSON[_0x3c7d28(0x127)](_0x2ac386);if(typeof _0x1e740b!==_0x3c7d28(0x12d)||_0x1e740b===null||Array[_0x3c7d28(0x138)](_0x1e740b))return{};return{'jsUrl':typeof _0x1e740b['jsUrl']===_0x3c7d28(0x146)?_0x1e740b[_0x3c7d28(0x15a)][_0x3c7d28(0x124)]():undefined,'cssUrl':typeof _0x1e740b['cssUrl']==='string'?_0x1e740b['cssUrl']['trim']():undefined};}catch{return{};}}
1
+ const a101_0x3b49f5=a101_0x3a2c;(function(_0x5a02ab,_0x28560e){const _0x41a383=a101_0x3a2c,_0x1f2aaf=_0x5a02ab();while(!![]){try{const _0x5c983b=-parseInt(_0x41a383(0x18c))/0x1*(parseInt(_0x41a383(0x18b))/0x2)+parseInt(_0x41a383(0x158))/0x3+parseInt(_0x41a383(0x178))/0x4*(parseInt(_0x41a383(0x17d))/0x5)+parseInt(_0x41a383(0x180))/0x6+-parseInt(_0x41a383(0x179))/0x7*(parseInt(_0x41a383(0x190))/0x8)+parseInt(_0x41a383(0x146))/0x9*(parseInt(_0x41a383(0x16f))/0xa)+-parseInt(_0x41a383(0x173))/0xb;if(_0x5c983b===_0x28560e)break;else _0x1f2aaf['push'](_0x1f2aaf['shift']());}catch(_0x589242){_0x1f2aaf['push'](_0x1f2aaf['shift']());}}}(a101_0x22a6,0x3a32e));import a101_0x40300a from'chalk';import{filterMenusWithResources,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';import{selectMenusForUpdate}from'../../commands/menu/shared/update-core.js';function a101_0x22a6(){const _0x403de5=['stringify','flag','10KVrRta','91193ndgShZ','patch\x20replaces\x20a\x20supplied\x20type\x20only\x20when\x20the\x20existing\x20target\x20is\x20unambiguous','paths','cssUrl','8eDSxXm','\x20and\x20CSS:\x20','cookie','\x20updated,\x20','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','\x20\x20Found\x20','validation','Menu\x20asset\x20update\x20skipped','trim','rawFlags','Menu\x20asset\x20update\x20failed','params','string','404874sOmzEw','\x20\x20Cancelled.','replace','\x20menu(s)\x20failed','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','parse','object','updated','menu','\x20updated.','Menu\x20asset\x20update\x20completed:\x20','appcode','Update\x20CDN\x20asset\x20URLs\x20for\x20selected\x20online\x20menus\x20with\x20existing\x20resources','Fetching\x20online\x20menu\x20list...','load-mode','jsUrl','filter','appCode','671124FVEwgC','selectedAppName','asset-update','patch','import','all','some','map','mode','/smartapi/menu/update','length','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','menu-ids','message','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found','✓\x20Menu\x20asset\x20update\x20completed:\x20','\x20menu(s)\x20with\x20JS:\x20','split','force','label','bool','\x20menu(s)\x20updated','70tiqdTA','Failed\x20to\x20fetch\x20online\x20menu\x20list','yellow','fetch','4361126JFyfxC','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','script','boolean','Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20','4CcTszc','621607rNDlIC','str','Invalid\x20--load-mode.\x20Allowed\x20values:\x20import,\x20script,\x20fetch','yes','1718695XlxWKl','Invalid\x20--mode.\x20Allowed\x20values:\x20replace,\x20patch','\x20menu(s)...','1783590lFnjZt','\x20menu(s)','isSafeInteger','Allow\x20replace\x20mode\x20to\x20remove\x20existing\x20JS\x20resources','skipped','isArray','No\x20menus\x20with\x20existing\x20resources\x20would\x20be\x20updated.','\x20failed.','failed'];a101_0x22a6=function(){return _0x403de5;};return a101_0x22a6();}import{isInProject}from'../../context.js';export const menuAssetUpdate={'service':a101_0x3b49f5(0x14e),'command':a101_0x3b49f5(0x15a),'description':a101_0x3b49f5(0x152),'risk':'high-risk-write','flags':[{'name':a101_0x3b49f5(0x144),'type':a101_0x3b49f5(0x145),'description':a101_0x3b49f5(0x177)+a101_0x3b49f5(0x166)},{'name':a101_0x3b49f5(0x160),'type':'string','description':'Resource\x20update\x20mode:\x20replace\x20rewrites\x20resources\x20from\x20supplied\x20URLs;\x20'+a101_0x3b49f5(0x18d),'enum':[a101_0x3b49f5(0x148),a101_0x3b49f5(0x15b)],'default':'patch'},{'name':a101_0x3b49f5(0x16b),'type':a101_0x3b49f5(0x176),'description':a101_0x3b49f5(0x183)},{'name':a101_0x3b49f5(0x164),'type':'string','description':'Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update'},{'name':'paths','type':'string','description':a101_0x3b49f5(0x14a)},{'name':a101_0x3b49f5(0x15d),'type':a101_0x3b49f5(0x176),'description':'Explicitly\x20update\x20every\x20menu\x20that\x20has\x20resources'},{'name':a101_0x3b49f5(0x154),'type':a101_0x3b49f5(0x145),'enum':[a101_0x3b49f5(0x15c),a101_0x3b49f5(0x175),a101_0x3b49f5(0x172)],'description':'Explicitly\x20change\x20the\x20microfrontend\x20resource\x20loading\x20mode'}],async 'dryRun'(_0x2c86bf){const _0x4ed454=a101_0x3b49f5;ensureRunnableContext(_0x2c86bf[_0x4ed454(0x142)],_0x2c86bf[_0x4ed454(0x159)]);const _0x17b179=await runMenuUpdateCore(_0x2c86bf['appCode'],_0x2c86bf[_0x4ed454(0x13b)],_0x2c86bf['str'](_0x4ed454(0x144)),{'mode':parseMode(_0x2c86bf[_0x4ed454(0x17a)](_0x4ed454(0x160))),'dryRun':!![],'force':_0x2c86bf['bool'](_0x4ed454(0x16b)),'selection':parseSelection(_0x2c86bf),'loadScriptMode':parseLoadScriptMode(_0x2c86bf[_0x4ed454(0x17a)](_0x4ed454(0x154)))});return{'method':'POST','url':_0x4ed454(0x161),'body':_0x17b179,'description':_0x17b179[_0x4ed454(0x184)]?_0x4ed454(0x186):'Would\x20update\x20'+(_0x17b179['diffs']?.[_0x4ed454(0x162)]??0x0)+'\x20menu\x20resource\x20set(s).'};},async 'execute'(_0x17584f){const _0x47f57c=a101_0x3b49f5;ensureRunnableContext(_0x17584f['rawFlags'],_0x17584f[_0x47f57c(0x159)]);const _0xe61dda=_0x17584f[_0x47f57c(0x18a)](_0x47f57c(0x17c)),_0x193e58=_0x17584f[_0x47f57c(0x17a)](_0x47f57c(0x144)),_0x4655f5=parseMode(_0x17584f['str']('mode')),_0x25cccb=_0x17584f[_0x47f57c(0x16d)](_0x47f57c(0x16b)),_0x4e74a7=parseLoadScriptMode(_0x17584f['str'](_0x47f57c(0x154))),_0x134ae9=parseParams(_0x193e58),_0x4f4c3b=!!(_0x134ae9[_0x47f57c(0x155)]||_0x134ae9[_0x47f57c(0x18f)]);if(_0xe61dda||_0x4f4c3b&&!isInteractive()){const _0x459b24=await runMenuUpdateCore(_0x17584f[_0x47f57c(0x157)],_0x17584f[_0x47f57c(0x13b)],_0x193e58,{'mode':_0x4655f5,'force':_0x25cccb,'selection':parseSelection(_0x17584f),'loadScriptMode':_0x4e74a7});return _0x459b24['skipped']?writeCliSideChannelLine(_0x47f57c(0x174)):(writeCliSideChannelLine(_0x47f57c(0x168)+_0x459b24[_0x47f57c(0x14d)]+_0x47f57c(0x16e)),_0x459b24[_0x47f57c(0x188)]>0x0&&writeCliSideChannelLine('!\x20'+_0x459b24[_0x47f57c(0x188)]+_0x47f57c(0x149))),{'ok':_0x459b24[_0x47f57c(0x188)]===0x0,'data':_0x459b24,'message':_0x459b24[_0x47f57c(0x184)]?_0x47f57c(0x140):_0x47f57c(0x150)+_0x459b24[_0x47f57c(0x14d)]+_0x47f57c(0x13c)+_0x459b24['failed']+_0x47f57c(0x187)};}requireInteractive();const _0x32b6a4=startSpinner(_0x47f57c(0x153));let _0x5c4bff;try{_0x5c4bff=await fetchOnlineMenuList(_0x17584f[_0x47f57c(0x157)],_0x17584f['cookie']),stopSpinner(_0x32b6a4,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x34c7b4){stopSpinner(_0x32b6a4,_0x47f57c(0x170),![]);throw CliErrors['validation'](_0x34c7b4 instanceof Error?_0x34c7b4[_0x47f57c(0x165)]:_0x47f57c(0x170));}const _0x181962=filterMenusWithResources(_0x5c4bff),_0x89d9d=parseSelection(_0x17584f,![]),_0x65aac8=_0x89d9d?selectMenusForUpdate(_0x181962,_0x89d9d):_0x181962;if(_0x65aac8[_0x47f57c(0x162)]===0x0)return writeCliSideChannelLine(a101_0x40300a[_0x47f57c(0x171)](_0x47f57c(0x167))),{'ok':!![]};writeCliSideChannelLine(''),writeCliSideChannelLine(a101_0x40300a['cyan'](_0x47f57c(0x13e)+_0x65aac8[_0x47f57c(0x162)]+'\x20menu(s)\x20with\x20existing\x20resources')),writeCliSideChannelLine(renderUpdateSummary(_0x65aac8[_0x47f57c(0x15f)](_0x2b89e9=>_0x2b89e9[_0x47f57c(0x16c)]),[_0x134ae9['jsUrl'],_0x134ae9[_0x47f57c(0x18f)]])),writeCliSideChannelLine('');let _0x3d24ec=_0x134ae9[_0x47f57c(0x155)],_0x78979=_0x134ae9['cssUrl'];!_0x3d24ec&&(_0x3d24ec=await askJsUrl());!_0x78979&&(_0x78979=await askCssUrl());const _0x1a1724=await askConfirm('\x20\x20Update\x20'+_0x65aac8[_0x47f57c(0x162)]+_0x47f57c(0x169)+_0x3d24ec+_0x47f57c(0x13a)+_0x78979+'?');if(!_0x1a1724)return writeCliSideChannelLine(a101_0x40300a['gray'](_0x47f57c(0x147))),{'ok':!![]};const _0x487072=startSpinner('Updating\x20'+_0x65aac8['length']+_0x47f57c(0x17f));try{const _0x2b44e1=await runMenuUpdateCore(_0x17584f[_0x47f57c(0x157)],_0x17584f[_0x47f57c(0x13b)],JSON[_0x47f57c(0x189)]({'jsUrl':_0x3d24ec,'cssUrl':_0x78979}),{'mode':_0x4655f5,'force':_0x25cccb,'selection':{'all':![],'menuIds':_0x65aac8[_0x47f57c(0x15f)](_0x5e49e2=>_0x5e49e2['id']),'paths':[]},'loadScriptMode':_0x4e74a7});return stopSpinner(_0x487072,'Updated\x20'+_0x2b44e1[_0x47f57c(0x14d)]+_0x47f57c(0x181),_0x2b44e1[_0x47f57c(0x188)]===0x0),{'ok':_0x2b44e1[_0x47f57c(0x188)]===0x0,'data':_0x2b44e1,'message':_0x2b44e1['failed']>0x0?_0x47f57c(0x150)+_0x2b44e1['updated']+_0x47f57c(0x13c)+_0x2b44e1[_0x47f57c(0x188)]+_0x47f57c(0x187):_0x47f57c(0x150)+_0x2b44e1['updated']+_0x47f57c(0x14f)};}catch(_0x570c0a){stopSpinner(_0x487072,_0x47f57c(0x143),![]);throw CliErrors[_0x47f57c(0x13f)](_0x570c0a instanceof Error?_0x570c0a[_0x47f57c(0x165)]:_0x47f57c(0x143));}}};function ensureRunnableContext(_0x11b600,_0x228e58){const _0x1e7722=a101_0x3b49f5,_0x5e341a=_0x11b600[_0x1e7722(0x151)]?String(_0x11b600[_0x1e7722(0x151)])[_0x1e7722(0x141)]():'';if(!isInProject()&&!_0x228e58&&!_0x5e341a)throw CliErrors[_0x1e7722(0x13f)]('menu\x20asset-update\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20'+_0x1e7722(0x163));}function parseMode(_0x240430){const _0x13e612=a101_0x3b49f5;if(!_0x240430)return'patch';if(_0x240430==='replace'||_0x240430==='patch')return _0x240430;throw CliErrors['validation'](_0x13e612(0x17e));}function parseSelection(_0x4f5dac,_0xb0bee3=!![]){const _0x34e749=a101_0x3b49f5,_0x19f12e=_0x4f5dac['bool'](_0x34e749(0x15d)),_0x2ad835=parseMenuIds(_0x4f5dac[_0x34e749(0x17a)](_0x34e749(0x164))),_0x37e8b2=parseCsv(_0x4f5dac[_0x34e749(0x17a)](_0x34e749(0x18e))),_0x3d3e7e=_0x2ad835[_0x34e749(0x162)]>0x0||_0x37e8b2[_0x34e749(0x162)]>0x0;if(_0x19f12e&&_0x3d3e7e)throw CliErrors[_0x34e749(0x13f)](_0x34e749(0x13d));if(!_0x19f12e&&!_0x3d3e7e){if(!_0xb0bee3)return undefined;throw CliErrors[_0x34e749(0x13f)]('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');}return{'all':_0x19f12e,'menuIds':_0x2ad835,'paths':_0x37e8b2};}function parseMenuIds(_0x4ffe85){const _0x4660ef=a101_0x3b49f5,_0x32e551=parseCsv(_0x4ffe85),_0x3dec09=_0x32e551[_0x4660ef(0x15f)](Number);if(_0x3dec09[_0x4660ef(0x15e)](_0x3aa392=>!Number[_0x4660ef(0x182)](_0x3aa392)||_0x3aa392<=0x0))throw CliErrors[_0x4660ef(0x13f)]('--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.');return[...new Set(_0x3dec09)];}function parseCsv(_0x5e504a){const _0x43f79c=a101_0x3b49f5;return[...new Set(_0x5e504a[_0x43f79c(0x16a)](',')['map'](_0x45ff37=>_0x45ff37[_0x43f79c(0x141)]())[_0x43f79c(0x156)](Boolean))];}function a101_0x3a2c(_0x2d53dd,_0x129dc2){_0x2d53dd=_0x2d53dd-0x13a;const _0x22a6b1=a101_0x22a6();let _0x3a2c1f=_0x22a6b1[_0x2d53dd];return _0x3a2c1f;}function parseLoadScriptMode(_0x1eab61){const _0xc43ff4=a101_0x3b49f5;if(!_0x1eab61)return undefined;if(_0x1eab61===_0xc43ff4(0x15c)||_0x1eab61===_0xc43ff4(0x175)||_0x1eab61===_0xc43ff4(0x172))return _0x1eab61;throw CliErrors[_0xc43ff4(0x13f)](_0xc43ff4(0x17b));}function parseParams(_0x2e03aa){const _0x26b6c5=a101_0x3b49f5;if(!_0x2e03aa)return{};try{const _0x5586ba=JSON[_0x26b6c5(0x14b)](_0x2e03aa);if(typeof _0x5586ba!==_0x26b6c5(0x14c)||_0x5586ba===null||Array[_0x26b6c5(0x185)](_0x5586ba))return{};return{'jsUrl':typeof _0x5586ba[_0x26b6c5(0x155)]===_0x26b6c5(0x145)?_0x5586ba[_0x26b6c5(0x155)][_0x26b6c5(0x141)]():undefined,'cssUrl':typeof _0x5586ba[_0x26b6c5(0x18f)]==='string'?_0x5586ba[_0x26b6c5(0x18f)][_0x26b6c5(0x141)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- const a102_0x1418f8=a102_0x5ecb;(function(_0x57c445,_0x22804d){const _0x325b4a=a102_0x5ecb,_0x328d1e=_0x57c445();while(!![]){try{const _0x10076b=parseInt(_0x325b4a(0xf4))/0x1+parseInt(_0x325b4a(0xf9))/0x2*(parseInt(_0x325b4a(0xf3))/0x3)+parseInt(_0x325b4a(0x112))/0x4*(parseInt(_0x325b4a(0x115))/0x5)+parseInt(_0x325b4a(0xc4))/0x6*(-parseInt(_0x325b4a(0xcb))/0x7)+parseInt(_0x325b4a(0xed))/0x8*(parseInt(_0x325b4a(0xb4))/0x9)+parseInt(_0x325b4a(0xfd))/0xa*(-parseInt(_0x325b4a(0x105))/0xb)+parseInt(_0x325b4a(0x124))/0xc*(parseInt(_0x325b4a(0xb6))/0xd);if(_0x10076b===_0x22804d)break;else _0x328d1e['push'](_0x328d1e['shift']());}catch(_0x432f43){_0x328d1e['push'](_0x328d1e['shift']());}}}(a102_0x166f,0x188fa));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertMenuDeletePlanCurrent,assertMenuDeletePlanExecutable,createMenuDeletePlanFile,mutationPlanFromDeleteFile,readMenuDeletePlan,writeMenuDeletePlan}from'../../commands/menu/shared/delete-plan.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{MENU_EXPECT_FLAGS,MENU_ID_FLAG,asVerificationError,assertExpectedState,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,requireExplicitYes,requireMenu,validateExactId}from'../../commands/menu/shared/mutations.js';import{batchDeleteMenuEntities}from'../../commands/menu/shared/service.js';import{CliError,CliErrors}from'../../errors.js';function a102_0x5ecb(_0x488168,_0xb84bb3){_0x488168=_0x488168-0xb2;const _0x166f29=a102_0x166f();let _0x5ecbd8=_0x166f29[_0x488168];return _0x5ecbd8;}const BACKEND=[{'method':a102_0x1418f8(0x123),'path':'/smartapi/menu/batchDelete'}],MENU_DELETE_ID_FLAG={...MENU_ID_FLAG,'required':![],'description':a102_0x1418f8(0xdc)},MENU_DELETE_RECURSIVE_FLAG={'name':a102_0x1418f8(0xd7),'type':a102_0x1418f8(0x103),'description':'Include\x20every\x20descendant\x20of\x20the\x20exact\x20folder\x20id,\x20deleting\x20leaves\x20first'},MENU_DELETE_PLAN_OUT_FLAG={'name':a102_0x1418f8(0x107),'type':a102_0x1418f8(0xf0),'description':'Required\x20with\x20--dry-run;\x20write\x20the\x20reviewed\x20plan\x20to\x20a\x20new\x20local\x20JSON\x20file'},MENU_DELETE_PLAN_FLAG={'name':a102_0x1418f8(0x120),'type':a102_0x1418f8(0xf0),'description':'Required\x20for\x20execution;\x20consume\x20an\x20unexpired\x20plan\x20created\x20by\x20--plan-out'};export const menuDelete={'service':a102_0x1418f8(0xfa),'command':a102_0x1418f8(0xd5),'description':a102_0x1418f8(0xe8),'risk':'high-risk-write','structuredErrors':!![],'flags':[MENU_DELETE_ID_FLAG,MENU_DELETE_RECURSIVE_FLAG,MENU_DELETE_PLAN_OUT_FLAG,MENU_DELETE_PLAN_FLAG,...MENU_EXPECT_FLAGS,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x17633e){const _0xa5fa0d=a102_0x1418f8;_0x17633e[_0xa5fa0d(0x11b)](_0xa5fa0d(0xf7))?validateDeleteDryRunInput(_0x17633e):validateDeleteExecuteInput(_0x17633e),requireExplicitYes(_0x17633e);},async 'dryRun'(_0x22e17d){const _0x5a59f5=a102_0x1418f8;validateDeleteDryRunInput(_0x22e17d);const _0x36abd0=await buildDeletePlan(_0x22e17d),_0x108b26=createMenuDeletePlanFile(_0x22e17d['appCode'],_0x36abd0),_0x6ae11e=await writeMenuDeletePlan(_0x22e17d[_0x5a59f5(0xc2)]('plan-out'),_0x108b26),_0x3212e0=mutationResult({..._0x36abd0,'planFile':{'path':_0x6ae11e,'createdAt':_0x108b26['createdAt'],'expiresAt':_0x108b26[_0x5a59f5(0x12a)]}});return menuDryRunResult(_0x3212e0,{'method':'POST','url':'/smartapi/menu/batchDelete','body':{'idList':_0x3212e0[_0x5a59f5(0xd4)]},'description':_0x5a59f5(0xd6)+(_0x3212e0[_0x5a59f5(0xd4)]?.[_0x5a59f5(0xe9)]??0x1)+_0x5a59f5(0xb7)+_0x3212e0[_0x5a59f5(0xc6)]['id']+_0x5a59f5(0xb2)+_0x6ae11e+'.'});},async 'execute'(_0x19e2db){const _0x1c3b5d=a102_0x1418f8;requireExplicitYes(_0x19e2db),validateDeleteExecuteInput(_0x19e2db);const _0x51e612=await readMenuDeletePlan(_0x19e2db[_0x1c3b5d(0xc2)](_0x1c3b5d(0x120))),_0x513b5f=mutationPlanFromDeleteFile(_0x51e612[_0x1c3b5d(0x120)],_0x51e612[_0x1c3b5d(0xcd)]),_0x1f2e7d=_0x51e612[_0x1c3b5d(0x120)][_0x1c3b5d(0x122)]['id'];try{assertMenuDeletePlanExecutable(_0x51e612[_0x1c3b5d(0x120)],_0x19e2db[_0x1c3b5d(0x100)]);}catch(_0x3df869){throw menuFailure(asMenuError(_0x3df869),_0x513b5f,{'stage':_0x1c3b5d(0xc1),'failed':{'id':_0x1f2e7d}});}let _0x27f73c,_0x29c209;try{_0x27f73c=await fetchMutationSnapshot(_0x19e2db,_0x1c3b5d(0x10a),_0x1f2e7d),_0x29c209=assertMenuDeletePlanCurrent(_0x51e612[_0x1c3b5d(0x120)],_0x19e2db[_0x1c3b5d(0x100)],_0x27f73c),assertDeleteTargetsComplete(_0x51e612[_0x1c3b5d(0x120)],_0x27f73c),_0x29c209[_0x1c3b5d(0x119)](_0x3b9d30=>assertDeleteSafety(_0x3b9d30,_0x51e612['plan'][_0x1c3b5d(0xd7)])),assertNoSharedPages(_0x27f73c,_0x29c209),assertCascadeMatchesPlan(_0x513b5f,_0x29c209);}catch(_0x270b42){throw menuFailure(asMenuError(_0x270b42),_0x513b5f,{'stage':'pre-write-plan-validation','failed':{'id':_0x1f2e7d}});}const _0x55c84b=_0x51e612[_0x1c3b5d(0x120)][_0x1c3b5d(0xd4)];let _0x2a4f4d;try{_0x2a4f4d=await batchDeleteMenuEntities(_0x19e2db[_0x1c3b5d(0xcf)],_0x55c84b);}catch(_0x34d5c3){const _0x121333=mapMenuApiError(_0x34d5c3,'batch\x20delete'),_0x1eb015=[_0x1c3b5d(0xc5)];let _0x4b94b7;try{_0x4b94b7=await readDeleteOutcome(_0x19e2db,_0x55c84b);}catch(_0x3f3456){const _0x160d85=describeMenuErrorCause(_0x3f3456,_0x1c3b5d(0xc0),_0x1f2e7d);_0x1eb015[_0x1c3b5d(0xd8)](_0x1c3b5d(0xe1)+_0x160d85[_0x1c3b5d(0x125)]+'):\x20'+_0x160d85['causeMessage']);throw menuFailure(_0x121333,_0x513b5f,{'stage':'batch-delete','failed':{'targetIds':_0x55c84b,'targetIdsAbsent':'unconfirmed',..._0x160d85},'warnings':_0x1eb015,'verification':{'status':_0x1c3b5d(0x111),'lookupCommand':_0x1c3b5d(0x109),'targetIds':_0x55c84b}});}throw menuFailure(_0x121333,_0x513b5f,{'stage':_0x1c3b5d(0x113),'succeeded':_0x4b94b7[_0x1c3b5d(0xd2)][_0x1c3b5d(0xec)](_0x4ff8a9=>({'id':_0x4ff8a9,'deleted':!![]})),'failed':{'targetIds':_0x55c84b,'absentIds':_0x4b94b7[_0x1c3b5d(0xd2)],'remainingIds':_0x4b94b7[_0x1c3b5d(0xf8)]},'warnings':_0x1eb015,'verification':verificationFromOutcome(_0x4b94b7)});}if(_0x2a4f4d!==_0x55c84b[_0x1c3b5d(0xe9)]){const _0x36a7f6=menuError('menu_batch_delete_count_mismatch','Backend\x20reported\x20'+_0x2a4f4d+_0x1c3b5d(0x11d)+_0x55c84b[_0x1c3b5d(0xe9)]+'.',_0x1c3b5d(0x110)),_0x2fb139=[_0x1c3b5d(0xc7)];let _0x46872b;try{_0x46872b=await readDeleteOutcome(_0x19e2db,_0x55c84b);}catch(_0x856cc5){const _0xa0b74a=describeMenuErrorCause(_0x856cc5,'read\x20menu\x20state\x20after\x20batch\x20delete\x20count\x20mismatch',_0x1f2e7d);_0x2fb139[_0x1c3b5d(0xd8)](_0x1c3b5d(0xee)+_0xa0b74a['causeCode']+_0x1c3b5d(0xc8)+_0xa0b74a[_0x1c3b5d(0xff)]);throw menuFailure(_0x36a7f6,_0x513b5f,{'stage':_0x1c3b5d(0x113),'failed':{'targetIds':_0x55c84b,'expectedCount':_0x55c84b['length'],'reportedDeletedCount':_0x2a4f4d,'targetIdsAbsent':_0x1c3b5d(0x118),..._0xa0b74a},'warnings':_0x2fb139,'verification':{'status':'failed','lookupCommand':_0x1c3b5d(0x109),'targetIds':_0x55c84b}});}throw menuFailure(_0x36a7f6,_0x513b5f,{'stage':_0x1c3b5d(0x113),'succeeded':_0x46872b[_0x1c3b5d(0xd2)]['map'](_0x5d1ed4=>({'id':_0x5d1ed4,'deleted':!![]})),'failed':{'targetIds':_0x55c84b,'expectedCount':_0x55c84b[_0x1c3b5d(0xe9)],'reportedDeletedCount':_0x2a4f4d,'absentIds':_0x46872b[_0x1c3b5d(0xd2)],'remainingIds':_0x46872b[_0x1c3b5d(0xf8)]},'warnings':_0x2fb139,'verification':verificationFromOutcome(_0x46872b)});}let _0x30e0e3;try{_0x30e0e3=await readDeleteOutcome(_0x19e2db,_0x55c84b);}catch(_0xbac497){const _0x2dd8da=describeMenuErrorCause(_0xbac497,'verify\x20batch\x20delete',_0x1f2e7d),_0x3a62bf=asVerificationError(_0xbac497,_0x1c3b5d(0x106)+_0x1f2e7d+_0x1c3b5d(0xc9));throw menuFailure(_0x3a62bf,_0x513b5f,{'stage':_0x1c3b5d(0xda),'succeeded':_0x55c84b[_0x1c3b5d(0xec)](_0x50478f=>({'id':_0x50478f,'deleteRequested':!![]})),'failed':{'id':_0x1f2e7d,'targetIds':_0x55c84b,'targetIdsAbsent':_0x1c3b5d(0x118),..._0x2dd8da},'warnings':[_0x1c3b5d(0x102)],'verification':{'status':_0x1c3b5d(0x111),'lookupCommand':_0x1c3b5d(0x109),'targetIds':_0x55c84b}});}if(_0x30e0e3[_0x1c3b5d(0xf8)][_0x1c3b5d(0xe9)]>0x0){const _0x2182d4=menuError(_0x1c3b5d(0xb5),_0x1c3b5d(0xbd)+_0x30e0e3[_0x1c3b5d(0xf8)][_0x1c3b5d(0xfe)](',\x20')+'.',_0x1c3b5d(0x110));throw menuFailure(_0x2182d4,_0x513b5f,{'stage':_0x1c3b5d(0xda),'succeeded':_0x55c84b[_0x1c3b5d(0xec)](_0x139b26=>({'id':_0x139b26,'deleteRequested':!![]})),'failed':{'id':_0x1f2e7d,'targetIds':_0x55c84b,'absentIds':_0x30e0e3['absentIds'],'remainingIds':_0x30e0e3['remainingIds']},'warnings':[_0x1c3b5d(0xde)],'verification':verificationFromOutcome(_0x30e0e3)});}const _0x5e05dd=_0x55c84b['map'](_0x4dc14b=>({'id':_0x4dc14b,'deleted':!![]})),_0x407584=mutationResult({..._0x513b5f,'dryRun':![],'succeeded':_0x5e05dd,'verification':{'checkedBy':_0x1c3b5d(0xfb),'plannedSnapshotHash':_0x513b5f[_0x1c3b5d(0x129)],'finalSnapshotHash':_0x30e0e3[_0x1c3b5d(0x117)]['hash'],'reportedDeletedCount':_0x2a4f4d,'targetAbsent':!_0x30e0e3[_0x1c3b5d(0x117)][_0x1c3b5d(0x104)][_0x1c3b5d(0xf6)](_0x1f2e7d),'allTargetsAbsent':!![],'targetIds':_0x55c84b}});return{'ok':!![],'data':_0x407584,'message':'Deleted\x20'+_0x5e05dd[_0x1c3b5d(0xe9)]+_0x1c3b5d(0xb7)+_0x1f2e7d+'.'};}};async function readDeleteOutcome(_0x4ae68c,_0x553f90){const _0x3570e2=a102_0x1418f8,_0xf728cb=await fetchMenuSnapshot(_0x4ae68c[_0x3570e2(0x100)],_0x4ae68c[_0x3570e2(0xcf)]);return{'snapshot':_0xf728cb,'absentIds':_0x553f90[_0x3570e2(0x10e)](_0x19fe3e=>!_0xf728cb[_0x3570e2(0x104)][_0x3570e2(0xf6)](_0x19fe3e)),'remainingIds':_0x553f90[_0x3570e2(0x10e)](_0x5d028c=>_0xf728cb[_0x3570e2(0x104)][_0x3570e2(0xf6)](_0x5d028c))};}function verificationFromOutcome(_0x696c60){const _0x4ec88c=a102_0x1418f8;return{'checkedBy':_0x4ec88c(0xfb),'absentIds':_0x696c60[_0x4ec88c(0xd2)],'remainingIds':_0x696c60['remainingIds']};}function validateDeleteDryRunInput(_0xba6f5a){const _0x3b4679=a102_0x1418f8;validateExactId(_0xba6f5a);if(!hasFlag(_0xba6f5a,_0x3b4679(0x107))||!_0xba6f5a[_0x3b4679(0xc2)](_0x3b4679(0x107))[_0x3b4679(0xef)]())throw CliErrors[_0x3b4679(0xe7)]('plan-out',_0x3b4679(0x127));if(hasFlag(_0xba6f5a,_0x3b4679(0x120)))throw CliErrors[_0x3b4679(0xcc)]('--plan\x20cannot\x20be\x20combined\x20with\x20--dry-run;\x20use\x20--plan-out.');}function validateDeleteExecuteInput(_0x49e946){const _0x27e99c=a102_0x1418f8;if(!hasFlag(_0x49e946,_0x27e99c(0x120))||!_0x49e946['str'](_0x27e99c(0x120))[_0x27e99c(0xef)]())throw CliErrors[_0x27e99c(0xe7)](_0x27e99c(0x120),'--plan\x20is\x20required\x20for\x20menu\x20delete\x20execution.');const _0x4abcd6=['id',_0x27e99c(0xd7),_0x27e99c(0x107),'expect-parent-id','expect-path','expected-children-count']['filter'](_0x1c670e=>hasFlag(_0x49e946,_0x1c670e));if(_0x4abcd6[_0x27e99c(0xe9)]>0x0)throw CliErrors[_0x27e99c(0xcc)](_0x27e99c(0xe3)+_0x4abcd6[_0x27e99c(0xec)](_0x3866e9=>'--'+_0x3866e9)[_0x27e99c(0xfe)](',\x20')+'.');}async function buildDeletePlan(_0x2f3095){const _0x187be2=a102_0x1418f8,_0x3a768b=validateExactId(_0x2f3095),_0x11b4ce=await fetchMutationSnapshot(_0x2f3095,_0x187be2(0x121),_0x3a768b),_0x11fb72=requireMenu(_0x11b4ce,_0x3a768b);assertExpectedState(_0x2f3095,_0x11fb72);const _0x2facc7=_0x2f3095[_0x187be2(0x11b)](_0x187be2(0xd7));let _0x3562dd;if(_0x2facc7){if(_0x11fb72['type'][_0x187be2(0xef)]()[_0x187be2(0x108)]()!=='folder')throw menuError(_0x187be2(0xe4),_0x187be2(0xe5)+_0x11fb72['id']+_0x187be2(0x10b)+(_0x11fb72[_0x187be2(0xfc)]||_0x187be2(0xd3))+_0x187be2(0xe6));_0x3562dd=collectDeleteTargets(_0x11b4ce,_0x11fb72),_0x3562dd[_0x187be2(0x119)](_0x1f85f9=>assertDeleteSafety(_0x1f85f9,!![]));}else assertDeleteSafety(_0x11fb72),_0x3562dd=[_0x11fb72];assertNoSharedPages(_0x11b4ce,_0x3562dd);const _0x400ac5=_0x3562dd[_0x187be2(0xec)](_0x188757=>_0x188757['id']),_0x4004ea=cascadeForTargets(_0x3562dd),_0xef172=_0x4004ea[_0x187be2(0x116)][_0x187be2(0xe9)]>0x0?[_0x187be2(0x11f)]:[];return mutationResult({'operation':_0x187be2(0xd5),'selector':{'id':_0x3a768b,'recursive':_0x2facc7},'before':_0x11fb72,'after':null,'dryRun':!![],'backend':[...BACKEND],'plannedActions':[{'stage':'batch-delete-menu','method':'POST','path':'/smartapi/menu/batchDelete','body':{'idList':_0x400ac5}}],'targets':_0x3562dd,'deleteOrder':_0x400ac5,'snapshotHash':_0x11b4ce['hash'],'cascade':_0x4004ea,'warnings':_0xef172});}function assertDeleteSafety(_0x1193a9,_0x3a0f2d=![]){const _0x46ea0d=a102_0x1418f8,_0x5710ef=_0x1193a9[_0x46ea0d(0xfc)][_0x46ea0d(0xef)]()[_0x46ea0d(0x108)]()===_0x46ea0d(0x128);if(_0x1193a9['childrenCount']>0x0&&(!_0x3a0f2d||!_0x5710ef))throw menuError(_0x46ea0d(0xb8),_0x46ea0d(0xe5)+_0x1193a9['id']+_0x46ea0d(0x101)+_0x1193a9[_0x46ea0d(0xeb)]+'\x20direct\x20child\x20menu(s)\x20and\x20cannot\x20be\x20deleted.','Handle\x20child\x20ids\x20in\x20the\x20platform\x20first:\x20'+_0x1193a9[_0x46ea0d(0xbb)][_0x46ea0d(0xfe)](',\x20'));if(_0x5710ef&&_0x1193a9[_0x46ea0d(0x11a)]!=null)throw menuError(_0x46ea0d(0xc3),_0x46ea0d(0x114)+_0x1193a9['id']+'\x20is\x20unexpectedly\x20bound\x20to\x20page\x20'+_0x1193a9[_0x46ea0d(0x11a)]+_0x46ea0d(0xca),_0x46ea0d(0xb9));if(!_0x5710ef)return;if(!_0x1193a9[_0x46ea0d(0xbc)])throw menuError(_0x46ea0d(0xbf),_0x46ea0d(0x114)+_0x1193a9['id']+_0x46ea0d(0x10d),_0x46ea0d(0xf5));if(_0x1193a9[_0x46ea0d(0x10f)][_0x46ea0d(0xe9)]>0x0)throw menuError(_0x46ea0d(0x10c),_0x46ea0d(0x114)+_0x1193a9['id']+_0x46ea0d(0xe2)+_0x1193a9[_0x46ea0d(0x10f)]['length']+_0x46ea0d(0x11c),'Remove\x20or\x20verify\x20the\x20resource\x20bindings\x20in\x20the\x20platform\x20before\x20deleting\x20the\x20folder.');}function collectDeleteTargets(_0x5aa590,_0x108411){const _0x1d14e9=[],_0x45166e=new Set(),_0x4c525d=new Set(),_0x3b0ef5=_0xcec31=>{const _0x416b90=a102_0x5ecb;if(_0x45166e[_0x416b90(0xf6)](_0xcec31['id']))throw menuError('menu_tree_invalid','Menu\x20tree\x20contains\x20a\x20cycle\x20at\x20menu\x20'+_0xcec31['id']+'.');if(_0x4c525d[_0x416b90(0xf6)](_0xcec31['id']))return;_0x45166e[_0x416b90(0x126)](_0xcec31['id']);for(const _0x546dc2 of _0xcec31['childrenIds']){const _0x2337b4=_0x5aa590[_0x416b90(0x104)][_0x416b90(0xd0)](_0x546dc2);if(!_0x2337b4)throw menuError(_0x416b90(0xce),_0x416b90(0xe5)+_0xcec31['id']+_0x416b90(0xf1)+_0x546dc2+'.');_0x3b0ef5(_0x2337b4);}_0x45166e[_0x416b90(0xd5)](_0xcec31['id']),_0x4c525d[_0x416b90(0x126)](_0xcec31['id']),_0x1d14e9[_0x416b90(0xd8)](_0xcec31);};return _0x3b0ef5(_0x108411),_0x1d14e9;}function assertDeleteTargetsComplete(_0x434944,_0x450d66){const _0x13740d=a102_0x1418f8,_0x489b3e=requireMenu(_0x450d66,_0x434944[_0x13740d(0x122)]['id']);if(_0x434944[_0x13740d(0xd7)]&&_0x489b3e['type'][_0x13740d(0xef)]()[_0x13740d(0x108)]()!==_0x13740d(0x128))throw menuError(_0x13740d(0x11e),'Recursive\x20menu\x20delete\x20plan\x20root\x20'+_0x489b3e['id']+_0x13740d(0xdd));const _0x1e883d=_0x434944['recursive']?collectDeleteTargets(_0x450d66,_0x489b3e)[_0x13740d(0xec)](_0x4da9f3=>_0x4da9f3['id']):[_0x489b3e['id']];if(JSON['stringify'](_0x434944[_0x13740d(0xd4)])!==JSON['stringify'](_0x1e883d))throw menuError(_0x13740d(0x11e),_0x13740d(0xdf),'Generate\x20a\x20new\x20plan\x20with\x20--dry-run\x20--plan-out\x20and\x20do\x20not\x20remove\x20or\x20reorder\x20targets.');}function assertNoSharedPages(_0x43da9a,_0x305b40){const _0x558fc4=a102_0x1418f8,_0x2bcc04=new Set(_0x305b40[_0x558fc4(0xec)](_0x333a32=>_0x333a32['id'])),_0x5f0a77=new Set(_0x305b40[_0x558fc4(0xec)](_0x5ee3db=>_0x5ee3db[_0x558fc4(0x11a)])[_0x558fc4(0x10e)](_0x3af912=>_0x3af912!=null));if(_0x5f0a77[_0x558fc4(0xb3)]===0x0)return;const _0x2d5cae=_0x43da9a['menus'][_0x558fc4(0x10e)](_0x442fe5=>!_0x2bcc04['has'](_0x442fe5['id'])&&_0x442fe5['pageId']!=null&&_0x5f0a77['has'](_0x442fe5[_0x558fc4(0x11a)]));if(_0x2d5cae['length']===0x0)return;const _0x40881a=_0x2d5cae[_0x558fc4(0xec)](_0x3f7adf=>_0x558fc4(0xf2)+_0x3f7adf['pageId']+'\x20->\x20menu\x20'+_0x3f7adf['id'])['join'](',\x20');throw menuError(_0x558fc4(0xba),_0x558fc4(0xdb)+_0x40881a+'.',_0x558fc4(0xd9));}function assertCascadeMatchesPlan(_0x51ee32,_0x5ee748){const _0x1fdf1a=a102_0x1418f8,_0x2f9fd7=cascadeForTargets(_0x5ee748);if(JSON['stringify'](_0x51ee32[_0x1fdf1a(0xbe)])!==JSON[_0x1fdf1a(0xe0)](_0x2f9fd7))throw menuError(_0x1fdf1a(0x11e),_0x1fdf1a(0xea));}function cascadeForTargets(_0x29de93){const _0x41b537=a102_0x1418f8,_0x13a819=_0x29de93[_0x41b537(0xec)](_0x52f958=>_0x52f958['pageId'])[_0x41b537(0x10e)](_0x53ecc2=>_0x53ecc2!=null)['filter']((_0x4a6710,_0x1d3bee,_0x3f75a4)=>_0x3f75a4['indexOf'](_0x4a6710)===_0x1d3bee);return{'pages':_0x13a819,'pageSchemaAffected':_0x13a819[_0x41b537(0xe9)]>0x0};}function a102_0x166f(){const _0x347ea2=['2114463CcpZOx','\x20menu(s)\x20under\x20exact\x20id\x20','menu_non_empty','Inspect\x20the\x20folder\x20in\x20the\x20platform\x20before\x20deleting\x20it.','menu_page_shared','childrenIds','resourcesValid','One\x20or\x20more\x20planned\x20menus\x20are\x20still\x20present\x20after\x20the\x20batch\x20delete\x20request:\x20','cascade','menu_folder_resources_invalid','read\x20menu\x20state\x20after\x20batch\x20delete\x20failure','plan-validation','str','menu_delete_page_bound','66ElUkWG','The\x20batch\x20delete\x20may\x20have\x20partially\x20applied;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20creating\x20a\x20new\x20plan.','selector','The\x20batch\x20response\x20count\x20did\x20not\x20match\x20the\x20reviewed\x20target\x20count;\x20do\x20not\x20retry\x20the\x20same\x20plan.','):\x20','\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20absence','\x20and\x20cannot\x20be\x20deleted\x20safely.','95039EYhWgf','validation','path','menu_tree_invalid','cookie','get','message','absentIds','unknown','deleteOrder','delete','Would\x20batch\x20delete\x20','recursive','push','Keep\x20every\x20shared\x20page\x20reference\x20outside\x20this\x20operation,\x20or\x20choose\x20a\x20folder\x20whose\x20complete\x20subtree\x20contains\x20all\x20references.','verification','Page\x20bindings\x20are\x20referenced\x20by\x20menus\x20outside\x20the\x20delete\x20plan:\x20','Exact\x20menu\x20id\x20(required\x20with\x20--dry-run)','\x20is\x20not\x20a\x20folder.','The\x20backend\x20acknowledged\x20the\x20batch\x20request,\x20but\x20final\x20menu\x20facts\x20did\x20not\x20confirm\x20every\x20deletion.','Menu\x20delete\x20plan\x20does\x20not\x20contain\x20the\x20complete\x20current\x20subtree\x20in\x20leaf-first\x20order.','stringify','Post-failure\x20menu\x20readback\x20failed\x20(','\x20still\x20references\x20','Menu\x20delete\x20execution\x20consumes\x20only\x20--plan;\x20remove\x20','menu_recursive_requires_folder','Menu\x20','\x22;\x20--recursive\x20requires\x20a\x20folder\x20root.','flagMissing','Delete\x20an\x20exact\x20menu\x20or\x20a\x20folder\x20subtree\x20from\x20a\x20reviewed\x20plan','length','Menu\x20delete\x20plan\x20cascade\x20does\x20not\x20match\x20the\x20reviewed\x20target\x20page\x20facts.','childrenCount','map','168304jFvigg','Post-mismatch\x20menu\x20readback\x20failed\x20(','trim','string','\x20references\x20missing\x20child\x20','page\x20','3rfOamT','67861ulREyb','Inspect\x20and\x20repair\x20the\x20folder\x20resource\x20binding\x20in\x20the\x20platform\x20before\x20deleting\x20it.','has','dry-run','remainingIds','191416MAXdRH','menu','menu\x20list','type','10ZmWGOJ','join','causeMessage','appCode','\x20has\x20','The\x20batch\x20delete\x20request\x20was\x20accepted,\x20but\x20its\x20final\x20online\x20state\x20is\x20unconfirmed.','boolean','byId','1625833UBtCBf','Batch\x20delete\x20request\x20for\x20menu\x20','plan-out','toLowerCase','rabetbase\x20menu\x20list\x20--format\x20json','execute\x20reviewed\x20delete\x20plan','\x20is\x20type\x20\x22','menu_folder_has_resources','\x20has\x20an\x20unreadable\x20extend.resources\x20value\x20and\x20cannot\x20be\x20proven\x20empty.','filter','resources','Inspect\x20the\x20latest\x20menu\x20facts\x20and\x20generate\x20a\x20new\x20delete\x20plan;\x20do\x20not\x20retry\x20this\x20plan.','failed','8unpQpY','batch-delete','Folder\x20','21045zKBKFF','pages','snapshot','unconfirmed','forEach','pageId','bool','\x20resource\x20URL(s).','\x20deleted\x20menus;\x20expected\x20','menu_plan_invalid','Deleting\x20page-bound\x20menus\x20invokes\x20the\x20platform\x27s\x20existing\x20page\x20and\x20PageSchema\x20cascade;\x20listed\x20page\x20ids\x20are\x20direct\x20menu\x20bindings.','plan','plan\x20delete','target','POST','12KCrYpE','causeCode','add','--plan-out\x20is\x20required\x20for\x20menu\x20delete\x20dry-run\x20so\x20execution\x20can\x20consume\x20the\x20reviewed\x20plan.','folder','snapshotHash','expiresAt',';\x20execution\x20must\x20consume\x20','size','27znGoAX','menu_verification_failed'];a102_0x166f=function(){return _0x347ea2;};return a102_0x166f();}function asMenuError(_0x1c2797){const _0xeb185b=a102_0x1418f8;return _0x1c2797 instanceof CliError?_0x1c2797:menuError(_0xeb185b(0x11e),_0x1c2797 instanceof Error?_0x1c2797[_0xeb185b(0xd1)]:String(_0x1c2797));}
1
+ const a102_0x2593fb=a102_0x5c97;(function(_0x2b63f0,_0x30c96e){const _0x1e5efe=a102_0x5c97,_0x3ea3e2=_0x2b63f0();while(!![]){try{const _0x4f1379=-parseInt(_0x1e5efe(0x119))/0x1+parseInt(_0x1e5efe(0x106))/0x2*(-parseInt(_0x1e5efe(0x163))/0x3)+parseInt(_0x1e5efe(0x16e))/0x4*(-parseInt(_0x1e5efe(0x11f))/0x5)+-parseInt(_0x1e5efe(0x14c))/0x6+-parseInt(_0x1e5efe(0x16c))/0x7*(-parseInt(_0x1e5efe(0x11e))/0x8)+parseInt(_0x1e5efe(0x165))/0x9+parseInt(_0x1e5efe(0xfc))/0xa*(parseInt(_0x1e5efe(0x166))/0xb);if(_0x4f1379===_0x30c96e)break;else _0x3ea3e2['push'](_0x3ea3e2['shift']());}catch(_0x4b5661){_0x3ea3e2['push'](_0x3ea3e2['shift']());}}}(a102_0x3096,0xace9e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertMenuDeletePlanCurrent,assertMenuDeletePlanExecutable,createMenuDeletePlanFile,mutationPlanFromDeleteFile,readMenuDeletePlan,writeMenuDeletePlan}from'../../commands/menu/shared/delete-plan.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{MENU_EXPECT_FLAGS,MENU_ID_FLAG,asVerificationError,assertExpectedState,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,requireExplicitYes,requireMenu,validateExactId}from'../../commands/menu/shared/mutations.js';function a102_0x5c97(_0x214bc4,_0x45ddb6){_0x214bc4=_0x214bc4-0xf9;const _0x309673=a102_0x3096();let _0x5c97c1=_0x309673[_0x214bc4];return _0x5c97c1;}import{batchDeleteMenuEntities}from'../../commands/menu/shared/service.js';import{CliError,CliErrors}from'../../errors.js';const BACKEND=[{'method':a102_0x2593fb(0x102),'path':a102_0x2593fb(0x149)}],MENU_DELETE_ID_FLAG={...MENU_ID_FLAG,'required':![],'description':a102_0x2593fb(0x15f)},MENU_DELETE_RECURSIVE_FLAG={'name':a102_0x2593fb(0x111),'type':'boolean','description':a102_0x2593fb(0x16b)},MENU_DELETE_PLAN_OUT_FLAG={'name':a102_0x2593fb(0x142),'type':a102_0x2593fb(0x177),'description':a102_0x2593fb(0x144)},MENU_DELETE_PLAN_FLAG={'name':a102_0x2593fb(0x139),'type':a102_0x2593fb(0x177),'description':a102_0x2593fb(0x12d)};export const menuDelete={'service':a102_0x2593fb(0x137),'command':a102_0x2593fb(0xf9),'description':a102_0x2593fb(0x133),'risk':a102_0x2593fb(0x13f),'structuredErrors':!![],'flags':[MENU_DELETE_ID_FLAG,MENU_DELETE_RECURSIVE_FLAG,MENU_DELETE_PLAN_OUT_FLAG,MENU_DELETE_PLAN_FLAG,...MENU_EXPECT_FLAGS,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x57d6e3){const _0x1b3fb9=a102_0x2593fb;_0x57d6e3[_0x1b3fb9(0x160)](_0x1b3fb9(0x11b))?validateDeleteDryRunInput(_0x57d6e3):validateDeleteExecuteInput(_0x57d6e3),requireExplicitYes(_0x57d6e3);},async 'dryRun'(_0x47cd14){const _0x45d6bb=a102_0x2593fb;validateDeleteDryRunInput(_0x47cd14);const _0x5a5b5e=await buildDeletePlan(_0x47cd14),_0x4bf681=createMenuDeletePlanFile(_0x47cd14[_0x45d6bb(0x167)],_0x5a5b5e),_0x575556=await writeMenuDeletePlan(_0x47cd14[_0x45d6bb(0x129)]('plan-out'),_0x4bf681),_0x761019=mutationResult({..._0x5a5b5e,'planFile':{'path':_0x575556,'createdAt':_0x4bf681[_0x45d6bb(0x138)],'expiresAt':_0x4bf681['expiresAt']}});return menuDryRunResult(_0x761019,{'method':_0x45d6bb(0x102),'url':_0x45d6bb(0x149),'body':{'idList':_0x761019[_0x45d6bb(0x178)]},'description':_0x45d6bb(0x13b)+(_0x761019['deleteOrder']?.[_0x45d6bb(0x13e)]??0x1)+_0x45d6bb(0x10b)+_0x761019[_0x45d6bb(0x124)]['id']+_0x45d6bb(0x16a)+_0x575556+'.'});},async 'execute'(_0x500186){const _0x39e4a2=a102_0x2593fb;requireExplicitYes(_0x500186),validateDeleteExecuteInput(_0x500186);const _0x329c77=await readMenuDeletePlan(_0x500186[_0x39e4a2(0x129)](_0x39e4a2(0x139))),_0x3f275e=mutationPlanFromDeleteFile(_0x329c77['plan'],_0x329c77['path']),_0x15d6e1=_0x329c77[_0x39e4a2(0x139)]['target']['id'];try{assertMenuDeletePlanExecutable(_0x329c77[_0x39e4a2(0x139)],_0x500186[_0x39e4a2(0x167)]);}catch(_0x4d4951){throw menuFailure(asMenuError(_0x4d4951),_0x3f275e,{'stage':'plan-validation','failed':{'id':_0x15d6e1}});}let _0x1fc716,_0x573f9b;try{_0x1fc716=await fetchMutationSnapshot(_0x500186,_0x39e4a2(0x10a),_0x15d6e1),_0x573f9b=assertMenuDeletePlanCurrent(_0x329c77[_0x39e4a2(0x139)],_0x500186[_0x39e4a2(0x167)],_0x1fc716),assertDeleteTargetsComplete(_0x329c77['plan'],_0x1fc716),_0x573f9b['forEach'](_0x2a84ff=>assertDeleteSafety(_0x2a84ff,_0x329c77['plan'][_0x39e4a2(0x111)])),assertNoSharedPages(_0x1fc716,_0x573f9b),assertCascadeMatchesPlan(_0x3f275e,_0x573f9b);}catch(_0x46c475){throw menuFailure(asMenuError(_0x46c475),_0x3f275e,{'stage':_0x39e4a2(0xfa),'failed':{'id':_0x15d6e1}});}const _0x4ca60b=_0x329c77[_0x39e4a2(0x139)][_0x39e4a2(0x178)];let _0x1c2781;try{_0x1c2781=await batchDeleteMenuEntities(_0x500186[_0x39e4a2(0x159)],_0x4ca60b);}catch(_0x2b1720){const _0xad2bc9=mapMenuApiError(_0x2b1720,_0x39e4a2(0x135)),_0x2fe300=[_0x39e4a2(0x14b)];let _0x4a6234;try{_0x4a6234=await readDeleteOutcome(_0x500186,_0x4ca60b);}catch(_0xeef00e){const _0x11bbd4=describeMenuErrorCause(_0xeef00e,_0x39e4a2(0x143),_0x15d6e1);_0x2fe300[_0x39e4a2(0x173)](_0x39e4a2(0x146)+_0x11bbd4['causeCode']+_0x39e4a2(0x170)+_0x11bbd4[_0x39e4a2(0x14d)]);throw menuFailure(_0xad2bc9,_0x3f275e,{'stage':_0x39e4a2(0x11a),'failed':{'targetIds':_0x4ca60b,'targetIdsAbsent':_0x39e4a2(0x169),..._0x11bbd4},'warnings':_0x2fe300,'verification':{'status':'failed','lookupCommand':_0x39e4a2(0x13c),'targetIds':_0x4ca60b}});}throw menuFailure(_0xad2bc9,_0x3f275e,{'stage':_0x39e4a2(0x11a),'succeeded':_0x4a6234[_0x39e4a2(0x15a)][_0x39e4a2(0xff)](_0xfc99ec=>({'id':_0xfc99ec,'deleted':!![]})),'failed':{'targetIds':_0x4ca60b,'absentIds':_0x4a6234[_0x39e4a2(0x15a)],'remainingIds':_0x4a6234[_0x39e4a2(0x179)]},'warnings':_0x2fe300,'verification':verificationFromOutcome(_0x4a6234)});}if(_0x1c2781!==_0x4ca60b['length']){const _0x58f34c=menuError('menu_batch_delete_count_mismatch','Backend\x20reported\x20'+_0x1c2781+_0x39e4a2(0x145)+_0x4ca60b[_0x39e4a2(0x13e)]+'.','Inspect\x20the\x20latest\x20menu\x20facts\x20and\x20generate\x20a\x20new\x20delete\x20plan;\x20do\x20not\x20retry\x20this\x20plan.'),_0x183d92=[_0x39e4a2(0x141)];let _0x46218a;try{_0x46218a=await readDeleteOutcome(_0x500186,_0x4ca60b);}catch(_0x435cfa){const _0x5351df=describeMenuErrorCause(_0x435cfa,'read\x20menu\x20state\x20after\x20batch\x20delete\x20count\x20mismatch',_0x15d6e1);_0x183d92['push'](_0x39e4a2(0x175)+_0x5351df[_0x39e4a2(0x176)]+_0x39e4a2(0x170)+_0x5351df[_0x39e4a2(0x14d)]);throw menuFailure(_0x58f34c,_0x3f275e,{'stage':_0x39e4a2(0x11a),'failed':{'targetIds':_0x4ca60b,'expectedCount':_0x4ca60b[_0x39e4a2(0x13e)],'reportedDeletedCount':_0x1c2781,'targetIdsAbsent':'unconfirmed',..._0x5351df},'warnings':_0x183d92,'verification':{'status':_0x39e4a2(0xfb),'lookupCommand':_0x39e4a2(0x13c),'targetIds':_0x4ca60b}});}throw menuFailure(_0x58f34c,_0x3f275e,{'stage':_0x39e4a2(0x11a),'succeeded':_0x46218a[_0x39e4a2(0x15a)][_0x39e4a2(0xff)](_0x2f91ab=>({'id':_0x2f91ab,'deleted':!![]})),'failed':{'targetIds':_0x4ca60b,'expectedCount':_0x4ca60b[_0x39e4a2(0x13e)],'reportedDeletedCount':_0x1c2781,'absentIds':_0x46218a[_0x39e4a2(0x15a)],'remainingIds':_0x46218a[_0x39e4a2(0x179)]},'warnings':_0x183d92,'verification':verificationFromOutcome(_0x46218a)});}let _0x405abb;try{_0x405abb=await readDeleteOutcome(_0x500186,_0x4ca60b);}catch(_0x2f2bb1){const _0x1ece8b=describeMenuErrorCause(_0x2f2bb1,_0x39e4a2(0x10c),_0x15d6e1),_0x454e41=asVerificationError(_0x2f2bb1,_0x39e4a2(0x103)+_0x15d6e1+_0x39e4a2(0x131));throw menuFailure(_0x454e41,_0x3f275e,{'stage':'verification','succeeded':_0x4ca60b[_0x39e4a2(0xff)](_0x1bdf18=>({'id':_0x1bdf18,'deleteRequested':!![]})),'failed':{'id':_0x15d6e1,'targetIds':_0x4ca60b,'targetIdsAbsent':_0x39e4a2(0x169),..._0x1ece8b},'warnings':['The\x20batch\x20delete\x20request\x20was\x20accepted,\x20but\x20its\x20final\x20online\x20state\x20is\x20unconfirmed.'],'verification':{'status':_0x39e4a2(0xfb),'lookupCommand':_0x39e4a2(0x13c),'targetIds':_0x4ca60b}});}if(_0x405abb[_0x39e4a2(0x179)][_0x39e4a2(0x13e)]>0x0){const _0x24648d=menuError(_0x39e4a2(0x13d),_0x39e4a2(0x128)+_0x405abb[_0x39e4a2(0x179)][_0x39e4a2(0x112)](',\x20')+'.',_0x39e4a2(0x152));throw menuFailure(_0x24648d,_0x3f275e,{'stage':_0x39e4a2(0x117),'succeeded':_0x4ca60b[_0x39e4a2(0xff)](_0x2fbb63=>({'id':_0x2fbb63,'deleteRequested':!![]})),'failed':{'id':_0x15d6e1,'targetIds':_0x4ca60b,'absentIds':_0x405abb[_0x39e4a2(0x15a)],'remainingIds':_0x405abb[_0x39e4a2(0x179)]},'warnings':[_0x39e4a2(0x14a)],'verification':verificationFromOutcome(_0x405abb)});}const _0x23d50a=_0x4ca60b[_0x39e4a2(0xff)](_0x27a593=>({'id':_0x27a593,'deleted':!![]})),_0xf4bd1a=mutationResult({..._0x3f275e,'dryRun':![],'succeeded':_0x23d50a,'verification':{'checkedBy':_0x39e4a2(0x10e),'plannedSnapshotHash':_0x3f275e[_0x39e4a2(0x17a)],'finalSnapshotHash':_0x405abb[_0x39e4a2(0x12a)][_0x39e4a2(0x158)],'reportedDeletedCount':_0x1c2781,'targetAbsent':!_0x405abb[_0x39e4a2(0x12a)][_0x39e4a2(0x16f)][_0x39e4a2(0x108)](_0x15d6e1),'allTargetsAbsent':!![],'targetIds':_0x4ca60b}});return{'ok':!![],'data':_0xf4bd1a,'message':_0x39e4a2(0x150)+_0x23d50a[_0x39e4a2(0x13e)]+_0x39e4a2(0x10b)+_0x15d6e1+'.'};}};async function readDeleteOutcome(_0x460480,_0x3aa837){const _0x48219b=a102_0x2593fb,_0x3d2eb8=await fetchMenuSnapshot(_0x460480['appCode'],_0x460480[_0x48219b(0x159)]);return{'snapshot':_0x3d2eb8,'absentIds':_0x3aa837[_0x48219b(0x147)](_0x329a33=>!_0x3d2eb8['byId'][_0x48219b(0x108)](_0x329a33)),'remainingIds':_0x3aa837[_0x48219b(0x147)](_0x2adf5c=>_0x3d2eb8[_0x48219b(0x16f)][_0x48219b(0x108)](_0x2adf5c))};}function verificationFromOutcome(_0x2df056){const _0x50ee8d=a102_0x2593fb;return{'checkedBy':'menu\x20list','absentIds':_0x2df056[_0x50ee8d(0x15a)],'remainingIds':_0x2df056[_0x50ee8d(0x179)]};}function validateDeleteDryRunInput(_0x830028){const _0x11be16=a102_0x2593fb;validateExactId(_0x830028);if(!hasFlag(_0x830028,_0x11be16(0x142))||!_0x830028[_0x11be16(0x129)]('plan-out')['trim']())throw CliErrors[_0x11be16(0x174)](_0x11be16(0x142),'--plan-out\x20is\x20required\x20for\x20menu\x20delete\x20dry-run\x20so\x20execution\x20can\x20consume\x20the\x20reviewed\x20plan.');if(hasFlag(_0x830028,'plan'))throw CliErrors[_0x11be16(0x136)]('--plan\x20cannot\x20be\x20combined\x20with\x20--dry-run;\x20use\x20--plan-out.');}function validateDeleteExecuteInput(_0x441228){const _0x53e19b=a102_0x2593fb;if(!hasFlag(_0x441228,_0x53e19b(0x139))||!_0x441228['str'](_0x53e19b(0x139))[_0x53e19b(0x153)]())throw CliErrors[_0x53e19b(0x174)](_0x53e19b(0x139),_0x53e19b(0x10f));const _0x32211b=['id',_0x53e19b(0x111),_0x53e19b(0x142),'expect-parent-id',_0x53e19b(0x155),_0x53e19b(0x121)][_0x53e19b(0x147)](_0x5136f4=>hasFlag(_0x441228,_0x5136f4));if(_0x32211b[_0x53e19b(0x13e)]>0x0)throw CliErrors[_0x53e19b(0x136)](_0x53e19b(0x132)+_0x32211b['map'](_0x23077f=>'--'+_0x23077f)[_0x53e19b(0x112)](',\x20')+'.');}async function buildDeletePlan(_0x545381){const _0x4422cf=a102_0x2593fb,_0x1ef524=validateExactId(_0x545381),_0x1416cc=await fetchMutationSnapshot(_0x545381,_0x4422cf(0x134),_0x1ef524),_0x3f68bf=requireMenu(_0x1416cc,_0x1ef524);assertExpectedState(_0x545381,_0x3f68bf);const _0x25fbd8=_0x545381[_0x4422cf(0x160)]('recursive');let _0x207ac5;if(_0x25fbd8){if(_0x3f68bf[_0x4422cf(0x109)][_0x4422cf(0x153)]()[_0x4422cf(0x161)]()!==_0x4422cf(0x14e))throw menuError(_0x4422cf(0x157),_0x4422cf(0x130)+_0x3f68bf['id']+'\x20is\x20type\x20\x22'+(_0x3f68bf['type']||_0x4422cf(0xfd))+'\x22;\x20--recursive\x20requires\x20a\x20folder\x20root.');_0x207ac5=collectDeleteTargets(_0x1416cc,_0x3f68bf),_0x207ac5[_0x4422cf(0x105)](_0x3701c2=>assertDeleteSafety(_0x3701c2,!![]));}else assertDeleteSafety(_0x3f68bf),_0x207ac5=[_0x3f68bf];assertNoSharedPages(_0x1416cc,_0x207ac5);const _0x3aacd7=_0x207ac5['map'](_0x55f9a8=>_0x55f9a8['id']),_0x322009=cascadeForTargets(_0x207ac5),_0x3daa25=_0x322009[_0x4422cf(0x12b)][_0x4422cf(0x13e)]>0x0?['Deleting\x20page-bound\x20menus\x20invokes\x20the\x20platform\x27s\x20existing\x20page\x20and\x20PageSchema\x20cascade;\x20listed\x20page\x20ids\x20are\x20direct\x20menu\x20bindings.']:[];return mutationResult({'operation':_0x4422cf(0xf9),'selector':{'id':_0x1ef524,'recursive':_0x25fbd8},'before':_0x3f68bf,'after':null,'dryRun':!![],'backend':[...BACKEND],'plannedActions':[{'stage':_0x4422cf(0xfe),'method':_0x4422cf(0x102),'path':_0x4422cf(0x149),'body':{'idList':_0x3aacd7}}],'targets':_0x207ac5,'deleteOrder':_0x3aacd7,'snapshotHash':_0x1416cc['hash'],'cascade':_0x322009,'warnings':_0x3daa25});}function assertDeleteSafety(_0xe458cf,_0x5e41b1=![]){const _0xb77087=a102_0x2593fb,_0x30903b=_0xe458cf[_0xb77087(0x109)]['trim']()[_0xb77087(0x161)]()===_0xb77087(0x14e);if(_0xe458cf[_0xb77087(0x126)]>0x0&&(!_0x5e41b1||!_0x30903b))throw menuError(_0xb77087(0x140),'Menu\x20'+_0xe458cf['id']+_0xb77087(0x12c)+_0xe458cf[_0xb77087(0x126)]+_0xb77087(0x17b),_0xb77087(0x110)+_0xe458cf[_0xb77087(0x15b)][_0xb77087(0x112)](',\x20'));if(_0x30903b&&_0xe458cf[_0xb77087(0x12f)]!=null)throw menuError('menu_delete_page_bound',_0xb77087(0x113)+_0xe458cf['id']+_0xb77087(0x151)+_0xe458cf[_0xb77087(0x12f)]+_0xb77087(0x10d),_0xb77087(0x123));if(!_0x30903b)return;if(!_0xe458cf[_0xb77087(0x122)])throw menuError(_0xb77087(0x14f),_0xb77087(0x113)+_0xe458cf['id']+_0xb77087(0x118),_0xb77087(0x17c));if(_0xe458cf[_0xb77087(0x13a)][_0xb77087(0x13e)]>0x0)throw menuError(_0xb77087(0x114),_0xb77087(0x113)+_0xe458cf['id']+_0xb77087(0x15d)+_0xe458cf['resources'][_0xb77087(0x13e)]+_0xb77087(0x115),_0xb77087(0x100));}function collectDeleteTargets(_0x2aa885,_0xb468cf){const _0x4b0dd3=[],_0x122db9=new Set(),_0x24a581=new Set(),_0x2c0886=_0x35e031=>{const _0x8927=a102_0x5c97;if(_0x122db9[_0x8927(0x108)](_0x35e031['id']))throw menuError(_0x8927(0x15c),_0x8927(0x116)+_0x35e031['id']+'.');if(_0x24a581[_0x8927(0x108)](_0x35e031['id']))return;_0x122db9[_0x8927(0x172)](_0x35e031['id']);for(const _0x3c3f1b of _0x35e031[_0x8927(0x15b)]){const _0x201293=_0x2aa885[_0x8927(0x16f)][_0x8927(0x104)](_0x3c3f1b);if(!_0x201293)throw menuError(_0x8927(0x15c),_0x8927(0x130)+_0x35e031['id']+_0x8927(0x154)+_0x3c3f1b+'.');_0x2c0886(_0x201293);}_0x122db9[_0x8927(0xf9)](_0x35e031['id']),_0x24a581[_0x8927(0x172)](_0x35e031['id']),_0x4b0dd3[_0x8927(0x173)](_0x35e031);};return _0x2c0886(_0xb468cf),_0x4b0dd3;}function assertDeleteTargetsComplete(_0xb58d4d,_0x51374d){const _0x411109=a102_0x2593fb,_0x1b11c3=requireMenu(_0x51374d,_0xb58d4d[_0x411109(0x156)]['id']);if(_0xb58d4d['recursive']&&_0x1b11c3['type'][_0x411109(0x153)]()[_0x411109(0x161)]()!==_0x411109(0x14e))throw menuError('menu_plan_invalid',_0x411109(0x12e)+_0x1b11c3['id']+_0x411109(0x120));const _0x4e68a9=_0xb58d4d[_0x411109(0x111)]?collectDeleteTargets(_0x51374d,_0x1b11c3)[_0x411109(0xff)](_0x343a31=>_0x343a31['id']):[_0x1b11c3['id']];if(JSON[_0x411109(0x127)](_0xb58d4d[_0x411109(0x178)])!==JSON[_0x411109(0x127)](_0x4e68a9))throw menuError(_0x411109(0x162),_0x411109(0x107),_0x411109(0x15e));}function a102_0x3096(){const _0x46736b=['1140632oNYfci','byId','):\x20','\x20->\x20menu\x20','add','push','flagMissing','Post-mismatch\x20menu\x20readback\x20failed\x20(','causeCode','string','deleteOrder','remainingIds','snapshotHash','\x20direct\x20child\x20menu(s)\x20and\x20cannot\x20be\x20deleted.','Inspect\x20and\x20repair\x20the\x20folder\x20resource\x20binding\x20in\x20the\x20platform\x20before\x20deleting\x20it.','page\x20','delete','pre-write-plan-validation','failed','22133510FqVCHQ','unknown','batch-delete-menu','map','Remove\x20or\x20verify\x20the\x20resource\x20bindings\x20in\x20the\x20platform\x20before\x20deleting\x20the\x20folder.','size','POST','Batch\x20delete\x20request\x20for\x20menu\x20','get','forEach','1570006qudRBc','Menu\x20delete\x20plan\x20does\x20not\x20contain\x20the\x20complete\x20current\x20subtree\x20in\x20leaf-first\x20order.','has','type','execute\x20reviewed\x20delete\x20plan','\x20menu(s)\x20under\x20exact\x20id\x20','verify\x20batch\x20delete','\x20and\x20cannot\x20be\x20deleted\x20safely.','menu\x20list','--plan\x20is\x20required\x20for\x20menu\x20delete\x20execution.','Handle\x20child\x20ids\x20in\x20the\x20platform\x20first:\x20','recursive','join','Folder\x20','menu_folder_has_resources','\x20resource\x20URL(s).','Menu\x20tree\x20contains\x20a\x20cycle\x20at\x20menu\x20','verification','\x20has\x20an\x20unreadable\x20extend.resources\x20value\x20and\x20cannot\x20be\x20proven\x20empty.','1131708btVolS','batch-delete','dry-run','Keep\x20every\x20shared\x20page\x20reference\x20outside\x20this\x20operation,\x20or\x20choose\x20a\x20folder\x20whose\x20complete\x20subtree\x20contains\x20all\x20references.','menu_page_shared','136InLQbe','20SjdfYB','\x20is\x20not\x20a\x20folder.','expected-children-count','resourcesValid','Inspect\x20the\x20folder\x20in\x20the\x20platform\x20before\x20deleting\x20it.','selector','indexOf','childrenCount','stringify','One\x20or\x20more\x20planned\x20menus\x20are\x20still\x20present\x20after\x20the\x20batch\x20delete\x20request:\x20','str','snapshot','pages','\x20has\x20','Required\x20for\x20execution;\x20consume\x20an\x20unexpired\x20plan\x20created\x20by\x20--plan-out','Recursive\x20menu\x20delete\x20plan\x20root\x20','pageId','Menu\x20','\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20absence','Menu\x20delete\x20execution\x20consumes\x20only\x20--plan;\x20remove\x20','Delete\x20an\x20exact\x20menu\x20or\x20a\x20folder\x20subtree\x20from\x20a\x20reviewed\x20plan','plan\x20delete','batch\x20delete','validation','menu','createdAt','plan','resources','Would\x20batch\x20delete\x20','rabetbase\x20menu\x20list\x20--format\x20json','menu_verification_failed','length','high-risk-write','menu_non_empty','The\x20batch\x20response\x20count\x20did\x20not\x20match\x20the\x20reviewed\x20target\x20count;\x20do\x20not\x20retry\x20the\x20same\x20plan.','plan-out','read\x20menu\x20state\x20after\x20batch\x20delete\x20failure','Required\x20with\x20--dry-run;\x20write\x20the\x20reviewed\x20plan\x20to\x20a\x20new\x20local\x20JSON\x20file','\x20deleted\x20menus;\x20expected\x20','Post-failure\x20menu\x20readback\x20failed\x20(','filter','message','/smartapi/menu/batchDelete','The\x20backend\x20acknowledged\x20the\x20batch\x20request,\x20but\x20final\x20menu\x20facts\x20did\x20not\x20confirm\x20every\x20deletion.','The\x20batch\x20delete\x20may\x20have\x20partially\x20applied;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20creating\x20a\x20new\x20plan.','2110596QTBQBh','causeMessage','folder','menu_folder_resources_invalid','Deleted\x20','\x20is\x20unexpectedly\x20bound\x20to\x20page\x20','Inspect\x20the\x20latest\x20menu\x20facts\x20and\x20generate\x20a\x20new\x20delete\x20plan;\x20do\x20not\x20retry\x20this\x20plan.','trim','\x20references\x20missing\x20child\x20','expect-path','target','menu_recursive_requires_folder','hash','cookie','absentIds','childrenIds','menu_tree_invalid','\x20still\x20references\x20','Generate\x20a\x20new\x20plan\x20with\x20--dry-run\x20--plan-out\x20and\x20do\x20not\x20remove\x20or\x20reorder\x20targets.','Exact\x20menu\x20id\x20(required\x20with\x20--dry-run)','bool','toLowerCase','menu_plan_invalid','3PoyhoR','Page\x20bindings\x20are\x20referenced\x20by\x20menus\x20outside\x20the\x20delete\x20plan:\x20','8712081mFIpTB','11DQdNXI','appCode','menus','unconfirmed',';\x20execution\x20must\x20consume\x20','Include\x20every\x20descendant\x20of\x20the\x20exact\x20folder\x20id,\x20deleting\x20leaves\x20first','385413AwZqgD','Menu\x20delete\x20plan\x20cascade\x20does\x20not\x20match\x20the\x20reviewed\x20target\x20page\x20facts.'];a102_0x3096=function(){return _0x46736b;};return a102_0x3096();}function assertNoSharedPages(_0x55af50,_0x2298f2){const _0x1ec779=a102_0x2593fb,_0x1f6ce7=new Set(_0x2298f2['map'](_0x59237b=>_0x59237b['id'])),_0x2b89ea=new Set(_0x2298f2[_0x1ec779(0xff)](_0x1e7405=>_0x1e7405[_0x1ec779(0x12f)])[_0x1ec779(0x147)](_0x234530=>_0x234530!=null));if(_0x2b89ea[_0x1ec779(0x101)]===0x0)return;const _0x4a37d5=_0x55af50[_0x1ec779(0x168)][_0x1ec779(0x147)](_0x534add=>!_0x1f6ce7['has'](_0x534add['id'])&&_0x534add[_0x1ec779(0x12f)]!=null&&_0x2b89ea[_0x1ec779(0x108)](_0x534add[_0x1ec779(0x12f)]));if(_0x4a37d5[_0x1ec779(0x13e)]===0x0)return;const _0x5232da=_0x4a37d5[_0x1ec779(0xff)](_0x42d687=>_0x1ec779(0x17d)+_0x42d687[_0x1ec779(0x12f)]+_0x1ec779(0x171)+_0x42d687['id'])[_0x1ec779(0x112)](',\x20');throw menuError(_0x1ec779(0x11d),_0x1ec779(0x164)+_0x5232da+'.',_0x1ec779(0x11c));}function assertCascadeMatchesPlan(_0x360244,_0x4c6e3b){const _0x57756e=a102_0x2593fb,_0x93d4ab=cascadeForTargets(_0x4c6e3b);if(JSON[_0x57756e(0x127)](_0x360244['cascade'])!==JSON[_0x57756e(0x127)](_0x93d4ab))throw menuError(_0x57756e(0x162),_0x57756e(0x16d));}function cascadeForTargets(_0x372ea5){const _0x264487=a102_0x2593fb,_0x31c27b=_0x372ea5[_0x264487(0xff)](_0x55458a=>_0x55458a[_0x264487(0x12f)])[_0x264487(0x147)](_0x780892=>_0x780892!=null)[_0x264487(0x147)]((_0x16e8df,_0x20507e,_0x2a75e3)=>_0x2a75e3[_0x264487(0x125)](_0x16e8df)===_0x20507e);return{'pages':_0x31c27b,'pageSchemaAffected':_0x31c27b['length']>0x0};}function asMenuError(_0x142dd){const _0x40ce4d=a102_0x2593fb;return _0x142dd instanceof CliError?_0x142dd:menuError(_0x40ce4d(0x162),_0x142dd instanceof Error?_0x142dd[_0x40ce4d(0x148)]:String(_0x142dd));}