@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1

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 (348) 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.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/region-config.d.ts +23 -0
  232. package/lib/config/region-config.js +1 -0
  233. package/lib/config/schema.d.ts +15 -0
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.js +1 -1
  239. package/lib/constant/env.js +1 -1
  240. package/lib/constant/output.js +1 -1
  241. package/lib/constant/paths.js +1 -1
  242. package/lib/constant/region.js +1 -1
  243. package/lib/constant/risk.js +1 -1
  244. package/lib/constant/routing-profile.js +1 -1
  245. package/lib/context/app-resolver.d.ts +6 -0
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.d.ts +13 -0
  250. package/lib/context.js +1 -1
  251. package/lib/core/alias-resolver.js +1 -1
  252. package/lib/core/api-client.d.ts +2 -0
  253. package/lib/core/api-client.js +1 -1
  254. package/lib/core/bff/config.js +1 -1
  255. package/lib/core/bff/file-system.js +1 -1
  256. package/lib/core/bff/hash.js +1 -1
  257. package/lib/core/bff/lock.js +1 -1
  258. package/lib/core/bff/utils.js +1 -1
  259. package/lib/core/db-resolver.js +1 -1
  260. package/lib/core/instant-api-policy/config.js +1 -1
  261. package/lib/core/kb-search-client.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  266. package/lib/core/page/lr-smart-jsx.js +1 -0
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.js +1 -1
  291. package/lib/generated/routing-contract.js +1 -1
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +1 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.d.ts +2 -8
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.d.ts +2 -1
  328. package/lib/utils/template-replacer.js +1 -1
  329. package/lib/utils/update-notice.js +1 -1
  330. package/lib/utils/version.js +1 -1
  331. package/lib/utils/with-active-cookie.js +1 -1
  332. package/lib/utils/write-cli-side-channel.js +1 -1
  333. package/package.json +1 -1
  334. package/skills/rabetbase/SKILL.md +6 -5
  335. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  336. package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
  337. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  338. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  339. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  340. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
  342. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  343. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  344. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  347. package/skills/rabetbase.manifest.json +3 -3
  348. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- function a96_0xdb79(_0x355c43,_0x1da60b){_0x355c43=_0x355c43-0x95;const _0x39b651=a96_0x39b6();let _0xdb79fb=_0x39b651[_0x355c43];return _0xdb79fb;}const a96_0x510a13=a96_0xdb79;(function(_0x287b88,_0x328ea1){const _0x191747=a96_0xdb79,_0xf8ace8=_0x287b88();while(!![]){try{const _0xd2bd39=parseInt(_0x191747(0xb1))/0x1*(-parseInt(_0x191747(0xb6))/0x2)+-parseInt(_0x191747(0x9f))/0x3+parseInt(_0x191747(0xb5))/0x4*(-parseInt(_0x191747(0xaf))/0x5)+-parseInt(_0x191747(0x99))/0x6+-parseInt(_0x191747(0xb0))/0x7*(-parseInt(_0x191747(0xa4))/0x8)+-parseInt(_0x191747(0xa1))/0x9+parseInt(_0x191747(0x97))/0xa;if(_0xd2bd39===_0x328ea1)break;else _0xf8ace8['push'](_0xf8ace8['shift']());}catch(_0x1b1211){_0xf8ace8['push'](_0xf8ace8['shift']());}}}(a96_0x39b6,0x53ea7));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a96_0x510a13(0xa8),a96_0x510a13(0x95)]);function mergeDbLinkUpdate(_0x439d5e,_0x3c624d){const _0x3eafd8=a96_0x510a13,_0x57eb2a={..._0x439d5e},_0x49e409=_0x3c624d[_0x3eafd8(0xb8)](_0x3eafd8(0xab));if(_0x49e409&&MASKED_PASSWORD_VALUES[_0x3eafd8(0xb9)](_0x49e409))throw CliErrors['validation'](_0x3eafd8(0x9a));if(!_0x49e409&&MASKED_PASSWORD_VALUES[_0x3eafd8(0xb9)](String(_0x439d5e[_0x3eafd8(0xab)]??'')))throw CliErrors[_0x3eafd8(0x9d)](_0x3eafd8(0xaa));const _0x351e2f=_0x3c624d['str'](_0x3eafd8(0xad));if(_0x351e2f)_0x57eb2a[_0x3eafd8(0x9b)]=_0x351e2f;const _0x4831d0=_0x3c624d[_0x3eafd8(0xb8)]('dburl');if(_0x4831d0)_0x57eb2a['dbUrl']=_0x4831d0['trim']();const _0x443104=_0x3c624d[_0x3eafd8(0xb8)](_0x3eafd8(0xb7));if(_0x443104)_0x57eb2a[_0x3eafd8(0xb7)]=_0x443104;if(_0x49e409)_0x57eb2a[_0x3eafd8(0xab)]=_0x49e409;const _0x569abf=_0x3c624d[_0x3eafd8(0xb8)]('dbparam');if(_0x569abf)_0x57eb2a['dbParam']=_0x569abf;const _0x92379a=_0x3c624d[_0x3eafd8(0xb8)]('dbdesc');if(_0x92379a)_0x57eb2a[_0x3eafd8(0xa7)]=_0x92379a;return _0x57eb2a;}export const dbUpdate={'service':'db','command':a96_0x510a13(0xa6),'description':a96_0x510a13(0xb2),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x510a13(0xad),'type':'string','description':a96_0x510a13(0x96)},{'name':a96_0x510a13(0xa9),'type':'string','description':a96_0x510a13(0xa3)},{'name':a96_0x510a13(0xb7),'type':a96_0x510a13(0xac),'description':'New\x20username'},{'name':a96_0x510a13(0xab),'type':a96_0x510a13(0xac),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a96_0x510a13(0xa5),'type':a96_0x510a13(0xac),'description':a96_0x510a13(0xba)},{'name':a96_0x510a13(0x98),'type':a96_0x510a13(0xac),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x25f451){const _0x1d7d8b=a96_0x510a13,_0x2835d5=_0x25f451[_0x1d7d8b(0xb8)](_0x1d7d8b(0xa9));if(_0x2835d5&&!validateDbUrl(_0x2835d5[_0x1d7d8b(0x9c)]()))throw CliErrors[_0x1d7d8b(0x9d)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x2835d5+'\x22');},async 'dryRun'(_0x15a0ea){const _0x509e24=a96_0x510a13,_0x1786f8=_0x15a0ea[_0x509e24(0xb3)]('id'),_0x9fa55d=await getDbLinkInfo(_0x1786f8),_0xe9c3ec=mergeDbLinkUpdate(_0x9fa55d,_0x15a0ea),_0x2adbf7=sanitizeDbLinkForOutput(_0xe9c3ec);return{'method':_0x509e24(0xae),'url':'/smartapi/dblink/update','body':_0x2adbf7,'description':_0x509e24(0xb4),'connectionPreflight':{'enabled':!_0x15a0ea[_0x509e24(0xa0)](_0x509e24(0x9e)),'executed':![]}};},async 'execute'(_0x2a7d21){const _0x4db1b2=a96_0x510a13,_0x208411=_0x2a7d21['num']('id'),_0xd34b4d=await getDbLinkInfo(_0x208411),_0x34e602=mergeDbLinkUpdate(_0xd34b4d,_0x2a7d21);!_0x2a7d21[_0x4db1b2(0xa0)](_0x4db1b2(0x9e))&&await assertDbLinkConnectionPreflight(_0x34e602);const {id:_0x1a3234,entity:_0x12d6bb}=normalizeEntityWithIdResponse(await updateDbLink(_0x34e602));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x12d6bb),'message':_0x4db1b2(0xa2)+(_0x1a3234??_0x208411)};}};function a96_0x39b6(){const _0x578692=['username','str','has','New\x20connection\x20parameter\x20string','[redacted]','New\x20database\x20name','18617310beUJKP','dbdesc','3126942YcJNep','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','dbName','trim','validation','skip-connection-test','173187NVpQMg','bool','6067296IbuxaW','Updated\x20db\x20link\x20','New\x20host:port','1809592hLUvtF','dbparam','update','dbDesc','******','dburl','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','password','string','dbname','POST','5DAUPbM','14DPyAUO','4363NfvFwL','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','num','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','408788VfnrtN','282FmIVPy'];a96_0x39b6=function(){return _0x578692;};return a96_0x39b6();}
1
+ const a96_0x55395b=a96_0x2153;(function(_0xbb9dcc,_0x55cfe5){const _0x422baf=a96_0x2153,_0x3d4a19=_0xbb9dcc();while(!![]){try{const _0x3e7cd7=parseInt(_0x422baf(0x12d))/0x1+parseInt(_0x422baf(0x132))/0x2+-parseInt(_0x422baf(0x137))/0x3+-parseInt(_0x422baf(0x139))/0x4+-parseInt(_0x422baf(0x13b))/0x5*(-parseInt(_0x422baf(0x130))/0x6)+-parseInt(_0x422baf(0x13f))/0x7*(-parseInt(_0x422baf(0x140))/0x8)+parseInt(_0x422baf(0x135))/0x9*(-parseInt(_0x422baf(0x123))/0xa);if(_0x3e7cd7===_0x55cfe5)break;else _0x3d4a19['push'](_0x3d4a19['shift']());}catch(_0x1dc8bf){_0x3d4a19['push'](_0x3d4a19['shift']());}}}(a96_0x35d0,0xe841f));function a96_0x2153(_0x5a3f14,_0x190e55){_0x5a3f14=_0x5a3f14-0x11d;const _0x35d0b9=a96_0x35d0();let _0x215384=_0x35d0b9[_0x5a3f14];return _0x215384;}function a96_0x35d0(){const _0x1a958d=['916825bDkOJY','Updated\x20db\x20link\x20','password','dbName','56lBZWWH','1184096yzfvjT','validation','num','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbDesc','update','/smartapi/dblink/update','has','dburl','dbdesc','10qeLTUk','dbParam','dbparam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','skip-connection-test','dbname','[redacted]','New\x20database\x20name','trim','bool','349790YdndXl','POST','username','30pNFTFq','New\x20host:port','2887672OubSwD','string','New\x20connection\x20parameter\x20string','4467843kTAURP','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','2180796ypwZfp','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','6879444ZnYqbQ','str'];a96_0x35d0=function(){return _0x1a958d;};return a96_0x35d0();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a96_0x55395b(0x129)]);function mergeDbLinkUpdate(_0x38dde6,_0x5b8ae4){const _0x45eb13=a96_0x55395b,_0x4eb4e7={..._0x38dde6},_0x32021c=_0x5b8ae4['str']('password');if(_0x32021c&&MASKED_PASSWORD_VALUES['has'](_0x32021c))throw CliErrors[_0x45eb13(0x141)](_0x45eb13(0x136));if(!_0x32021c&&MASKED_PASSWORD_VALUES[_0x45eb13(0x120)](String(_0x38dde6[_0x45eb13(0x13d)]??'')))throw CliErrors[_0x45eb13(0x141)](_0x45eb13(0x138));const _0x5b71d0=_0x5b8ae4[_0x45eb13(0x13a)](_0x45eb13(0x128));if(_0x5b71d0)_0x4eb4e7[_0x45eb13(0x13e)]=_0x5b71d0;const _0x1b628d=_0x5b8ae4['str'](_0x45eb13(0x121));if(_0x1b628d)_0x4eb4e7['dbUrl']=_0x1b628d[_0x45eb13(0x12b)]();const _0x18c420=_0x5b8ae4[_0x45eb13(0x13a)](_0x45eb13(0x12f));if(_0x18c420)_0x4eb4e7[_0x45eb13(0x12f)]=_0x18c420;if(_0x32021c)_0x4eb4e7[_0x45eb13(0x13d)]=_0x32021c;const _0x1f05ab=_0x5b8ae4[_0x45eb13(0x13a)](_0x45eb13(0x125));if(_0x1f05ab)_0x4eb4e7[_0x45eb13(0x124)]=_0x1f05ab;const _0xf41ed7=_0x5b8ae4[_0x45eb13(0x13a)]('dbdesc');if(_0xf41ed7)_0x4eb4e7[_0x45eb13(0x11d)]=_0xf41ed7;return _0x4eb4e7;}export const dbUpdate={'service':'db','command':a96_0x55395b(0x11e),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a96_0x55395b(0x128),'type':a96_0x55395b(0x133),'description':a96_0x55395b(0x12a)},{'name':a96_0x55395b(0x121),'type':'string','description':a96_0x55395b(0x131)},{'name':a96_0x55395b(0x12f),'type':'string','description':'New\x20username'},{'name':a96_0x55395b(0x13d),'type':a96_0x55395b(0x133),'description':a96_0x55395b(0x143)},{'name':'dbparam','type':a96_0x55395b(0x133),'description':a96_0x55395b(0x134)},{'name':a96_0x55395b(0x122),'type':a96_0x55395b(0x133),'description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4cf974){const _0x115cfd=a96_0x55395b,_0x573031=_0x4cf974[_0x115cfd(0x13a)](_0x115cfd(0x121));if(_0x573031&&!validateDbUrl(_0x573031[_0x115cfd(0x12b)]()))throw CliErrors[_0x115cfd(0x141)](_0x115cfd(0x126)+_0x573031+'\x22');},async 'dryRun'(_0x31238e){const _0x56237c=a96_0x55395b,_0x375820=_0x31238e[_0x56237c(0x142)]('id'),_0x469481=await getDbLinkInfo(_0x375820),_0x2eb929=mergeDbLinkUpdate(_0x469481,_0x31238e),_0x5891d1=sanitizeDbLinkForOutput(_0x2eb929);return{'method':_0x56237c(0x12e),'url':_0x56237c(0x11f),'body':_0x5891d1,'description':'Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','connectionPreflight':{'enabled':!_0x31238e['bool'](_0x56237c(0x127)),'executed':![]}};},async 'execute'(_0x55a6f3){const _0x973856=a96_0x55395b,_0x2143eb=_0x55a6f3[_0x973856(0x142)]('id'),_0x5e905f=await getDbLinkInfo(_0x2143eb),_0x2872d1=mergeDbLinkUpdate(_0x5e905f,_0x55a6f3);!_0x55a6f3[_0x973856(0x12c)](_0x973856(0x127))&&await assertDbLinkConnectionPreflight(_0x2872d1);const {id:_0x569754,entity:_0x4bd17d}=normalizeEntityWithIdResponse(await updateDbLink(_0x2872d1));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4bd17d),'message':_0x973856(0x13c)+(_0x569754??_0x2143eb)};}};
@@ -1 +1 @@
1
- (function(_0xbd8500,_0x557e39){const _0x4b9d7a=a97_0x4ed7,_0x3772d7=_0xbd8500();while(!![]){try{const _0x399835=parseInt(_0x4b9d7a(0x124))/0x1+parseInt(_0x4b9d7a(0x11c))/0x2*(parseInt(_0x4b9d7a(0x121))/0x3)+parseInt(_0x4b9d7a(0x126))/0x4*(parseInt(_0x4b9d7a(0x11d))/0x5)+parseInt(_0x4b9d7a(0x125))/0x6*(-parseInt(_0x4b9d7a(0x123))/0x7)+-parseInt(_0x4b9d7a(0x11f))/0x8*(parseInt(_0x4b9d7a(0x120))/0x9)+parseInt(_0x4b9d7a(0x11e))/0xa+-parseInt(_0x4b9d7a(0x122))/0xb;if(_0x399835===_0x557e39)break;else _0x3772d7['push'](_0x3772d7['shift']());}catch(_0x353ab9){_0x3772d7['push'](_0x3772d7['shift']());}}}(a97_0x2b14,0xd7a10));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a97_0x4ed7(_0x565705,_0x3ecbf0){_0x565705=_0x565705-0x11c;const _0x2b1413=a97_0x2b14();let _0x4ed7d2=_0x2b1413[_0x565705];return _0x4ed7d2;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];function a97_0x2b14(){const _0x1917a6=['40cgjASQ','645633uyICYV','6HaOiyl','9130572izqgsU','19537EFOqRc','765387hgonsA','2778MVlQAp','92hyeMVG','969514yHLxyi','211550eEbaZl','6561550bmXOVb'];a97_0x2b14=function(){return _0x1917a6;};return a97_0x2b14();}
1
+ function a97_0x1ce2(){const _0x380222=['4144xpujxw','23456fUpxNe','423ampVeo','946416mCNYKP','2276WClKtP','1532244dtnBTv','118eQGOuG','1062759QUchVm','240485YqFZkh'];a97_0x1ce2=function(){return _0x380222;};return a97_0x1ce2();}(function(_0x53c5a9,_0x5942d3){const _0x57308f=a97_0x1b59,_0x101e9a=_0x53c5a9();while(!![]){try{const _0x45c51e=-parseInt(_0x57308f(0x72))/0x1*(parseInt(_0x57308f(0x70))/0x2)+parseInt(_0x57308f(0x6a))/0x3+parseInt(_0x57308f(0x6c))/0x4+parseInt(_0x57308f(0x6b))/0x5+-parseInt(_0x57308f(0x6f))/0x6+parseInt(_0x57308f(0x71))/0x7+parseInt(_0x57308f(0x6d))/0x8*(-parseInt(_0x57308f(0x6e))/0x9);if(_0x45c51e===_0x5942d3)break;else _0x101e9a['push'](_0x101e9a['shift']());}catch(_0x311d61){_0x101e9a['push'](_0x101e9a['shift']());}}}(a97_0x1ce2,0x2efc6));import{deploymentSyncAll}from'../../commands/deployment/sync-all.js';import{deploymentSyncStatus}from'../../commands/deployment/sync-status.js';import{deploymentSyncJobs}from'../../commands/deployment/sync-jobs.js';function a97_0x1b59(_0x11da5e,_0x538a79){_0x11da5e=_0x11da5e-0x6a;const _0x1ce2c5=a97_0x1ce2();let _0x1b59e6=_0x1ce2c5[_0x11da5e];return _0x1b59e6;}export const deploymentDefinitions=[deploymentSyncAll,deploymentSyncStatus,deploymentSyncJobs];
@@ -1 +1 @@
1
- const a98_0x1cf146=a98_0x4d27;(function(_0x128811,_0x3dad3f){const _0x3e0c2b=a98_0x4d27,_0x1d5299=_0x128811();while(!![]){try{const _0x3316ba=-parseInt(_0x3e0c2b(0x80))/0x1*(-parseInt(_0x3e0c2b(0x68))/0x2)+parseInt(_0x3e0c2b(0x76))/0x3+parseInt(_0x3e0c2b(0x88))/0x4*(-parseInt(_0x3e0c2b(0x6e))/0x5)+-parseInt(_0x3e0c2b(0x7e))/0x6+-parseInt(_0x3e0c2b(0x82))/0x7+parseInt(_0x3e0c2b(0x66))/0x8+parseInt(_0x3e0c2b(0x7a))/0x9*(-parseInt(_0x3e0c2b(0x8a))/0xa);if(_0x3316ba===_0x3dad3f)break;else _0x1d5299['push'](_0x1d5299['shift']());}catch(_0x218c82){_0x1d5299['push'](_0x1d5299['shift']());}}}(a98_0x36f3,0xcb3b8));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a98_0x4d27(_0x7f3dcf,_0x54eb59){_0x7f3dcf=_0x7f3dcf-0x64;const _0x36f398=a98_0x36f3();let _0x4d276a=_0x36f398[_0x7f3dcf];return _0x4d276a;}function a98_0x36f3(){const _0x225ea3=['submitted','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','3822736FmeHdw','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','6658JeQxqU','sync-all','data','not_submitted','boolean','write','3815hEjXXu','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','/smartapi/data-sync/submit','defineProperty','deployment','deployment_sync_submit_outcome_unknown','Submitted\x20deployment\x20synchronization\x20job\x20','appCode','4528854jzBzla','unknown','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','outcome','360aNZaFc','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','validation','application_deployment_sync','1701366CDTQLQ','job','339aCroKb','confirm','5638003EESrqz','jobId','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','status','bool','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','428HOKXBT','not_needed','278230QlBlmJ'];a98_0x36f3=function(){return _0x225ea3;};return a98_0x36f3();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x1cf146(0x70),CONFIRM_FLAG={'name':'confirm','type':a98_0x1cf146(0x6c),'description':a98_0x1cf146(0x65)};export const deploymentSyncAll={'service':a98_0x1cf146(0x72),'command':a98_0x1cf146(0x69),'description':a98_0x1cf146(0x78),'risk':a98_0x1cf146(0x6d),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x1cf146(0x84),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x368f00){return asDryRunResult(buildPreview(_0x368f00['appCode']),{'method':'POST','url':SUBMIT_PATH,'description':'Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.'});},async 'execute'(_0x38aa7d){const _0x57750e=a98_0x1cf146;if(!_0x38aa7d[_0x57750e(0x86)](_0x57750e(0x81)))throw CliErrors[_0x57750e(0x7c)](_0x57750e(0x6f),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x285648=await submitDeploymentMetadataSyncAll({'appCode':_0x38aa7d['appCode']});if(_0x285648[_0x57750e(0x79)]===_0x57750e(0x89))return{'ok':!![],'data':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':![],'outcome':_0x57750e(0x89)},'message':_0x57750e(0x67)};return{'ok':!![],'data':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':!![],'outcome':_0x57750e(0x64),'jobId':_0x285648[_0x57750e(0x7f)]['jobId'],'status':_0x285648['job'][_0x57750e(0x85)]},'message':_0x57750e(0x74)+_0x285648[_0x57750e(0x7f)][_0x57750e(0x83)]+'.'};}catch(_0x4777a6){if(!isPlatformTransportFailure(_0x4777a6))throw _0x4777a6;const _0x509c7c=new CliError(_0x57750e(0x73),0x2,_0x57750e(0x7b),_0x57750e(0x87));Object[_0x57750e(0x71)](_0x509c7c,_0x57750e(0x6a),{'enumerable':!![],'value':{'operation':_0x57750e(0x7d),'appCode':_0x38aa7d[_0x57750e(0x75)],'submitted':null,'outcome':_0x57750e(0x77)}});throw _0x509c7c;}}};function buildPreview(_0x1e9442){const _0x310a17=a98_0x1cf146;return{'operation':'application_deployment_sync','selector':{'appCode':_0x1e9442,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x310a17(0x6b)},'warnings':[]};}
1
+ const a98_0x54ed9c=a98_0x17bf;(function(_0x4c8d06,_0x1175dd){const _0x4bae8f=a98_0x17bf,_0x13aa1d=_0x4c8d06();while(!![]){try{const _0x1982b7=-parseInt(_0x4bae8f(0x13b))/0x1+parseInt(_0x4bae8f(0x146))/0x2*(parseInt(_0x4bae8f(0x13c))/0x3)+parseInt(_0x4bae8f(0x134))/0x4*(parseInt(_0x4bae8f(0x12d))/0x5)+-parseInt(_0x4bae8f(0x140))/0x6+-parseInt(_0x4bae8f(0x141))/0x7*(-parseInt(_0x4bae8f(0x139))/0x8)+parseInt(_0x4bae8f(0x13a))/0x9+parseInt(_0x4bae8f(0x12b))/0xa*(-parseInt(_0x4bae8f(0x13e))/0xb);if(_0x1982b7===_0x1175dd)break;else _0x13aa1d['push'](_0x13aa1d['shift']());}catch(_0x1e8d93){_0x13aa1d['push'](_0x13aa1d['shift']());}}}(a98_0x588b,0x91945));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,submitDeploymentMetadataSyncAll}from'../../core/api-client.js';function a98_0x588b(){const _0x487271=['POST','status','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','sync-all','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','jobId','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','/smartapi/data-sync/submit','job','929510pozGsp','not_needed','29790Ayhnsb','Submitted\x20deployment\x20synchronization\x20job\x20','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.','data','bool','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','submitted','348PtVVkt','unknown','confirm','validation','all_server_supported_metadata','14344DGEFwK','8142345cFRABo','620073KEwcbN','1602633VfVMVm','write','11QwlhQT','not_submitted','5114082IpzEbc','798PQkotK','appCode','application_deployment_sync','deployment','defineProperty','2TXxehT','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata'];a98_0x588b=function(){return _0x487271;};return a98_0x588b();}import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x54ed9c(0x129),CONFIRM_FLAG={'name':a98_0x54ed9c(0x136),'type':'boolean','description':a98_0x54ed9c(0x125)};function a98_0x17bf(_0x223bbd,_0x5d59a4){_0x223bbd=_0x223bbd-0x125;const _0x588b34=a98_0x588b();let _0x17bfa9=_0x588b34[_0x223bbd];return _0x17bfa9;}export const deploymentSyncAll={'service':a98_0x54ed9c(0x144),'command':a98_0x54ed9c(0x14c),'description':a98_0x54ed9c(0x147),'risk':a98_0x54ed9c(0x13d),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x54ed9c(0x128),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x5bd9ec){const _0x35a2a7=a98_0x54ed9c;return asDryRunResult(buildPreview(_0x5bd9ec[_0x35a2a7(0x142)]),{'method':_0x35a2a7(0x148),'url':SUBMIT_PATH,'description':_0x35a2a7(0x14a)});},async 'execute'(_0x35aea2){const _0x11c281=a98_0x54ed9c;if(!_0x35aea2[_0x11c281(0x131)](_0x11c281(0x136)))throw CliErrors[_0x11c281(0x137)](_0x11c281(0x14b),_0x11c281(0x12f));try{const _0x550c29=await submitDeploymentMetadataSyncAll({'appCode':_0x35aea2['appCode']});if(_0x550c29['outcome']===_0x11c281(0x12c))return{'ok':!![],'data':{'operation':_0x11c281(0x143),'appCode':_0x35aea2[_0x11c281(0x142)],'submitted':![],'outcome':'not_needed'},'message':_0x11c281(0x126)};return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x35aea2[_0x11c281(0x142)],'submitted':!![],'outcome':_0x11c281(0x133),'jobId':_0x550c29['job']['jobId'],'status':_0x550c29['job'][_0x11c281(0x149)]},'message':_0x11c281(0x12e)+_0x550c29[_0x11c281(0x12a)][_0x11c281(0x127)]+'.'};}catch(_0x764d89){if(!isPlatformTransportFailure(_0x764d89))throw _0x764d89;const _0x799393=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x11c281(0x132),'List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.');Object[_0x11c281(0x145)](_0x799393,_0x11c281(0x130),{'enumerable':!![],'value':{'operation':'application_deployment_sync','appCode':_0x35aea2['appCode'],'submitted':null,'outcome':_0x11c281(0x135)}});throw _0x799393;}}};function buildPreview(_0x307f9b){const _0xc8374c=a98_0x54ed9c;return{'operation':'application_deployment_sync','selector':{'appCode':_0x307f9b,'scope':_0xc8374c(0x138)},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0xc8374c(0x13f)},'warnings':[]};}
@@ -1 +1 @@
1
- const a99_0x1b12f7=a99_0x12a4;(function(_0x98c76a,_0x2f5abe){const _0x44ffec=a99_0x12a4,_0x31a96a=_0x98c76a();while(!![]){try{const _0x13564a=parseInt(_0x44ffec(0x126))/0x1*(parseInt(_0x44ffec(0x10c))/0x2)+parseInt(_0x44ffec(0x11c))/0x3*(parseInt(_0x44ffec(0x11e))/0x4)+-parseInt(_0x44ffec(0x124))/0x5*(parseInt(_0x44ffec(0x120))/0x6)+parseInt(_0x44ffec(0x110))/0x7*(-parseInt(_0x44ffec(0x10f))/0x8)+-parseInt(_0x44ffec(0x10d))/0x9+-parseInt(_0x44ffec(0x128))/0xa+parseInt(_0x44ffec(0x10e))/0xb;if(_0x13564a===_0x2f5abe)break;else _0x31a96a['push'](_0x31a96a['shift']());}catch(_0x58c54f){_0x31a96a['push'](_0x31a96a['shift']());}}}(a99_0x546d,0x35356));function a99_0x546d(){const _0x2b2218=['current-page','length','27357sOWeDf','number','156lIWiYo','page-size','3570aLAbVj','Found\x20','num','string','2375KQlQGQ','read','1SePPGL','--current-page\x20must\x20be\x20a\x20positive\x20integer.','714090acQgJP','validation','865842aUcuEH','1351143LgJMvm','2192916DlniOE','1320OKLHwT','11277fWdUUG','trim','items','status','Page\x20number','appCode','sync-jobs','Items\x20per\x20page\x20(maximum\x20100)','isSafeInteger','\x20deployment\x20synchronization\x20job(s).'];a99_0x546d=function(){return _0x2b2218;};return a99_0x546d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x12a4(_0xec8fd3,_0xa548b3){_0xec8fd3=_0xec8fd3-0x10b;const _0x546d48=a99_0x546d();let _0x12a4e1=_0x546d48[_0xec8fd3];return _0x12a4e1;}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':'deployment','command':a99_0x1b12f7(0x116),'description':'List\x20application\x20deployment\x20synchronization\x20jobs','risk':a99_0x1b12f7(0x125),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a99_0x1b12f7(0x11a),'type':a99_0x1b12f7(0x11d),'default':0x1,'description':a99_0x1b12f7(0x114)},{'name':'page-size','type':'number','default':0xa,'description':a99_0x1b12f7(0x117)},{'name':a99_0x1b12f7(0x113),'type':a99_0x1b12f7(0x123),'description':'Optional\x20server-defined\x20job\x20status\x20filter'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x33d777){const _0x1c5178=a99_0x1b12f7;readPaging(_0x33d777[_0x1c5178(0x122)]('current-page',0x1),_0x33d777[_0x1c5178(0x122)](_0x1c5178(0x11f),0xa));},async 'execute'(_0x58cdb2){const _0x43a7bf=a99_0x1b12f7,{currentPage:_0x181be8,pageSize:_0xa19c6e}=readPaging(_0x58cdb2[_0x43a7bf(0x122)](_0x43a7bf(0x11a),0x1),_0x58cdb2['num']('page-size',0xa)),_0x5cfd76=_0x58cdb2['str'](_0x43a7bf(0x113))[_0x43a7bf(0x111)](),_0x316a84=await listDeploymentMetadataSyncJobs({'appCode':_0x58cdb2[_0x43a7bf(0x115)],'currentPage':_0x181be8,'pageSize':_0xa19c6e,..._0x5cfd76?{'status':_0x5cfd76}:{}});return{'ok':!![],'data':{'appCode':_0x58cdb2[_0x43a7bf(0x115)],..._0x316a84},'message':_0x43a7bf(0x121)+_0x316a84[_0x43a7bf(0x112)][_0x43a7bf(0x11b)]+_0x43a7bf(0x119)};}};function readPaging(_0x1b73e0,_0x13843a){const _0x4029cd=a99_0x1b12f7;if(!Number[_0x4029cd(0x118)](_0x1b73e0)||_0x1b73e0<0x1)throw CliErrors[_0x4029cd(0x10b)](_0x4029cd(0x127));if(!Number['isSafeInteger'](_0x13843a)||_0x13843a<0x1||_0x13843a>0x64)throw CliErrors[_0x4029cd(0x10b)]('--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.');return{'currentPage':_0x1b73e0,'pageSize':_0x13843a};}
1
+ function a99_0x39d0(_0x133ffb,_0x2127b9){_0x133ffb=_0x133ffb-0xf5;const _0x364deb=a99_0x364d();let _0x39d049=_0x364deb[_0x133ffb];return _0x39d049;}const a99_0x374ff3=a99_0x39d0;(function(_0x49ca1b,_0x187e03){const _0x2cde79=a99_0x39d0,_0x7c8acc=_0x49ca1b();while(!![]){try{const _0x1e52c1=parseInt(_0x2cde79(0xfd))/0x1*(parseInt(_0x2cde79(0x106))/0x2)+parseInt(_0x2cde79(0xf7))/0x3*(-parseInt(_0x2cde79(0xf6))/0x4)+-parseInt(_0x2cde79(0x108))/0x5*(-parseInt(_0x2cde79(0x100))/0x6)+parseInt(_0x2cde79(0xff))/0x7+-parseInt(_0x2cde79(0x107))/0x8+parseInt(_0x2cde79(0x101))/0x9+parseInt(_0x2cde79(0x105))/0xa;if(_0x1e52c1===_0x187e03)break;else _0x7c8acc['push'](_0x7c8acc['shift']());}catch(_0x187bb6){_0x7c8acc['push'](_0x7c8acc['shift']());}}}(a99_0x364d,0xed757));function a99_0x364d(){const _0x246352=['length','status','number','validation','current-page','appCode','num','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','Found\x20','deployment','4076imZpGE','4464DygReV','--current-page\x20must\x20be\x20a\x20positive\x20integer.','List\x20application\x20deployment\x20synchronization\x20jobs','items','Items\x20per\x20page\x20(maximum\x20100)','page-size','81159GEmkrv','read','3937003KEEJYO','12OfDDJx','2941668TxzCOo','isSafeInteger','\x20deployment\x20synchronization\x20job(s).','Optional\x20server-defined\x20job\x20status\x20filter','3024190hdNJiU','24GyHvjg','12905976jZVjnj','4841355AawWMM','string'];a99_0x364d=function(){return _0x246352;};return a99_0x364d();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a99_0x374ff3(0xf5),'command':'sync-jobs','description':a99_0x374ff3(0xf9),'risk':a99_0x374ff3(0xfe),'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'current-page','type':'number','default':0x1,'description':'Page\x20number'},{'name':a99_0x374ff3(0xfc),'type':a99_0x374ff3(0x10c),'default':0xa,'description':a99_0x374ff3(0xfb)},{'name':a99_0x374ff3(0x10b),'type':a99_0x374ff3(0x109),'description':a99_0x374ff3(0x104)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3fff94){const _0x22bbd1=a99_0x374ff3;readPaging(_0x3fff94[_0x22bbd1(0x110)](_0x22bbd1(0x10e),0x1),_0x3fff94[_0x22bbd1(0x110)](_0x22bbd1(0xfc),0xa));},async 'execute'(_0x5a25d9){const _0xc7565c=a99_0x374ff3,{currentPage:_0x41b169,pageSize:_0xfb8e60}=readPaging(_0x5a25d9['num'](_0xc7565c(0x10e),0x1),_0x5a25d9[_0xc7565c(0x110)](_0xc7565c(0xfc),0xa)),_0xf90c48=_0x5a25d9['str'](_0xc7565c(0x10b))['trim'](),_0x1c4f44=await listDeploymentMetadataSyncJobs({'appCode':_0x5a25d9['appCode'],'currentPage':_0x41b169,'pageSize':_0xfb8e60,..._0xf90c48?{'status':_0xf90c48}:{}});return{'ok':!![],'data':{'appCode':_0x5a25d9[_0xc7565c(0x10f)],..._0x1c4f44},'message':_0xc7565c(0x112)+_0x1c4f44[_0xc7565c(0xfa)][_0xc7565c(0x10a)]+_0xc7565c(0x103)};}};function readPaging(_0x47d49,_0x32cda4){const _0x93d27=a99_0x374ff3;if(!Number[_0x93d27(0x102)](_0x47d49)||_0x47d49<0x1)throw CliErrors[_0x93d27(0x10d)](_0x93d27(0xf8));if(!Number[_0x93d27(0x102)](_0x32cda4)||_0x32cda4<0x1||_0x32cda4>0x64)throw CliErrors[_0x93d27(0x10d)](_0x93d27(0x111));return{'currentPage':_0x47d49,'pageSize':_0x32cda4};}
@@ -1 +1 @@
1
- const a100_0x996d4a=a100_0x2fcf;(function(_0x32c62c,_0x56ad14){const _0x55bace=a100_0x2fcf,_0x85a4cc=_0x32c62c();while(!![]){try{const _0x57a8e5=parseInt(_0x55bace(0x13b))/0x1+parseInt(_0x55bace(0x147))/0x2*(parseInt(_0x55bace(0x143))/0x3)+-parseInt(_0x55bace(0x133))/0x4+parseInt(_0x55bace(0x13f))/0x5*(-parseInt(_0x55bace(0x14e))/0x6)+parseInt(_0x55bace(0x148))/0x7+parseInt(_0x55bace(0x135))/0x8+parseInt(_0x55bace(0x144))/0x9*(-parseInt(_0x55bace(0x150))/0xa);if(_0x57a8e5===_0x56ad14)break;else _0x85a4cc['push'](_0x85a4cc['shift']());}catch(_0x4ea3f4){_0x85a4cc['push'](_0x85a4cc['shift']());}}}(a100_0x15c5,0x5ad7a));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a100_0x15c5(){const _0x427b06=['630935PYkeEe','isSafeInteger','length','Deployment\x20synchronization\x20job\x20ID','59988rtYdPc','357237VdeIJy','PARTIAL_SUCCESS','read','44iyjDOc','5087173lcUdxV','appCode','status','bizType','results','Deployment\x20synchronization\x20job\x20','18sEEBoO','has','120KNAyqy','reduce',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','--job-id\x20must\x20be\x20a\x20positive\x20integer.','job-id','num','2552176ATGCXU','action','316840wvNCAn','map','sync-status','deployment','FAILED','Preserved\x20server-defined\x20status\x20','658755dbDwOE','number','SUCCESS','validation'];a100_0x15c5=function(){return _0x427b06;};return a100_0x15c5();}const TERMINAL_STATUSES=new Set([a100_0x996d4a(0x13d),a100_0x996d4a(0x145),a100_0x996d4a(0x139)]),ACTIVE_STATUSES=new Set(['PENDING','RUNNING']);function a100_0x2fcf(_0xbda187,_0x739235){_0xbda187=_0xbda187-0x12f;const _0x15c59c=a100_0x15c5();let _0x2fcf5e=_0x15c59c[_0xbda187];return _0x2fcf5e;}export const deploymentSyncStatus={'service':a100_0x996d4a(0x138),'command':a100_0x996d4a(0x137),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':a100_0x996d4a(0x146),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x996d4a(0x131),'type':a100_0x996d4a(0x13c),'required':!![],'description':a100_0x996d4a(0x142)}],async 'validate'(_0x33d62b){const _0x38fce0=a100_0x996d4a;readJobId(_0x33d62b['num'](_0x38fce0(0x131)));},async 'execute'(_0x1b6c09){const _0x5d377a=a100_0x996d4a,_0x1905d1=readJobId(_0x1b6c09[_0x5d377a(0x132)]('job-id')),_0x10a0f5=await getDeploymentMetadataSyncStatus({'jobId':_0x1905d1,'appCode':_0x1b6c09[_0x5d377a(0x149)]}),_0x38e302=TERMINAL_STATUSES['has'](_0x10a0f5[_0x5d377a(0x14a)])?!![]:ACTIVE_STATUSES[_0x5d377a(0x14f)](_0x10a0f5[_0x5d377a(0x14a)])?![]:null,_0xd8b43b=countBy(_0x10a0f5[_0x5d377a(0x14c)][_0x5d377a(0x136)](_0x1ae529=>_0x1ae529[_0x5d377a(0x14b)])),_0x41fbaa=countBy(_0x10a0f5[_0x5d377a(0x14c)]['map'](_0x2e0b52=>_0x2e0b52[_0x5d377a(0x134)])),_0xef511f=_0x38e302===null?[_0x5d377a(0x13a)+_0x10a0f5[_0x5d377a(0x14a)]+_0x5d377a(0x12f)]:[];return{'ok':!![],'data':{'job':_0x10a0f5,'isTerminal':_0x38e302,'summary':{'total':_0x10a0f5[_0x5d377a(0x14c)][_0x5d377a(0x141)],'failed':_0x10a0f5[_0x5d377a(0x14c)]['filter'](_0x447138=>_0x447138[_0x5d377a(0x134)]===_0x5d377a(0x139))[_0x5d377a(0x141)],'byBizType':_0xd8b43b,'byAction':_0x41fbaa},'warnings':_0xef511f},'message':_0x5d377a(0x14d)+_0x1905d1+'\x20is\x20'+_0x10a0f5[_0x5d377a(0x14a)]+'.'};}};function readJobId(_0x45201e){const _0xbe1080=a100_0x996d4a;if(!Number[_0xbe1080(0x140)](_0x45201e)||_0x45201e<=0x0)throw CliErrors[_0xbe1080(0x13e)](_0xbe1080(0x130));return _0x45201e;}function countBy(_0x141bbc){const _0x42b8cf=a100_0x996d4a;return _0x141bbc[_0x42b8cf(0x151)]((_0x5c8b8e,_0x3ddfe7)=>{return _0x5c8b8e[_0x3ddfe7]=(_0x5c8b8e[_0x3ddfe7]??0x0)+0x1,_0x5c8b8e;},{});}
1
+ const a100_0x12c08c=a100_0x2b8b;function a100_0x4789(){const _0x547709=['6073580knFtwR','64060IHTLEa','isSafeInteger','634074vXdwwg','Get\x20application\x20deployment\x20synchronization\x20job\x20status',';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.','Deployment\x20synchronization\x20job\x20ID','20351969JEkzHO','664QZiHtn','validation','action','87ovDHWi','number','30GmFCTL','145TIWLKe','results','job-id','appCode','deployment','has','12RqsLXh','length','RUNNING','status','filter','PARTIAL_SUCCESS','FAILED','Deployment\x20synchronization\x20job\x20','SUCCESS','13238klWJfF','Preserved\x20server-defined\x20status\x20','791CjWizo','num','map','PENDING','read','73404UDIieb'];a100_0x4789=function(){return _0x547709;};return a100_0x4789();}(function(_0x417343,_0x365fe9){const _0x4bf44b=a100_0x2b8b,_0x51176d=_0x417343();while(!![]){try{const _0x449ecf=parseInt(_0x4bf44b(0x9b))/0x1+parseInt(_0x4bf44b(0x90))/0x2*(-parseInt(_0x4bf44b(0xa3))/0x3)+-parseInt(_0x4bf44b(0x99))/0x4*(-parseInt(_0x4bf44b(0xa6))/0x5)+-parseInt(_0x4bf44b(0xa5))/0x6*(parseInt(_0x4bf44b(0x92))/0x7)+-parseInt(_0x4bf44b(0xa0))/0x8*(-parseInt(_0x4bf44b(0x97))/0x9)+parseInt(_0x4bf44b(0x98))/0xa+parseInt(_0x4bf44b(0x9f))/0xb*(-parseInt(_0x4bf44b(0xac))/0xc);if(_0x449ecf===_0x365fe9)break;else _0x51176d['push'](_0x51176d['shift']());}catch(_0x40ad99){_0x51176d['push'](_0x51176d['shift']());}}}(a100_0x4789,0x53098));function a100_0x2b8b(_0x2c1519,_0x49af9c){_0x2c1519=_0x2c1519-0x8e;const _0x4789a9=a100_0x4789();let _0x2b8b84=_0x4789a9[_0x2c1519];return _0x2b8b84;}import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x12c08c(0x8f),a100_0x12c08c(0xb1),'FAILED']),ACTIVE_STATUSES=new Set([a100_0x12c08c(0x95),a100_0x12c08c(0xae)]);export const deploymentSyncStatus={'service':a100_0x12c08c(0xaa),'command':'sync-status','description':a100_0x12c08c(0x9c),'risk':a100_0x12c08c(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a100_0x12c08c(0xa8),'type':a100_0x12c08c(0xa4),'required':!![],'description':a100_0x12c08c(0x9e)}],async 'validate'(_0x497c2b){const _0x359043=a100_0x12c08c;readJobId(_0x497c2b[_0x359043(0x93)]('job-id'));},async 'execute'(_0x31a2ec){const _0x3010f1=a100_0x12c08c,_0x2d1bb2=readJobId(_0x31a2ec[_0x3010f1(0x93)](_0x3010f1(0xa8))),_0x11d775=await getDeploymentMetadataSyncStatus({'jobId':_0x2d1bb2,'appCode':_0x31a2ec[_0x3010f1(0xa9)]}),_0xcea99f=TERMINAL_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?!![]:ACTIVE_STATUSES[_0x3010f1(0xab)](_0x11d775[_0x3010f1(0xaf)])?![]:null,_0x2b7f98=countBy(_0x11d775['results'][_0x3010f1(0x94)](_0x170d41=>_0x170d41['bizType'])),_0x3337f5=countBy(_0x11d775[_0x3010f1(0xa7)]['map'](_0x3b6f69=>_0x3b6f69[_0x3010f1(0xa2)])),_0x3f2d7a=_0xcea99f===null?[_0x3010f1(0x91)+_0x11d775[_0x3010f1(0xaf)]+_0x3010f1(0x9d)]:[];return{'ok':!![],'data':{'job':_0x11d775,'isTerminal':_0xcea99f,'summary':{'total':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xad)],'failed':_0x11d775[_0x3010f1(0xa7)][_0x3010f1(0xb0)](_0x263177=>_0x263177[_0x3010f1(0xa2)]===_0x3010f1(0xb2))['length'],'byBizType':_0x2b7f98,'byAction':_0x3337f5},'warnings':_0x3f2d7a},'message':_0x3010f1(0x8e)+_0x2d1bb2+'\x20is\x20'+_0x11d775[_0x3010f1(0xaf)]+'.'};}};function readJobId(_0x5d3386){const _0x1e7593=a100_0x12c08c;if(!Number[_0x1e7593(0x9a)](_0x5d3386)||_0x5d3386<=0x0)throw CliErrors[_0x1e7593(0xa1)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x5d3386;}function countBy(_0x217c02){return _0x217c02['reduce']((_0x5b3207,_0x18cb69)=>{return _0x5b3207[_0x18cb69]=(_0x5b3207[_0x18cb69]??0x0)+0x1,_0x5b3207;},{});}
@@ -1 +1 @@
1
- const a101_0x194634=a101_0x3cc2;(function(_0x4af3ae,_0x338491){const _0x13ece5=a101_0x3cc2,_0xaeaa6=_0x4af3ae();while(!![]){try{const _0x299628=parseInt(_0x13ece5(0x163))/0x1+parseInt(_0x13ece5(0x136))/0x2*(parseInt(_0x13ece5(0x100))/0x3)+-parseInt(_0x13ece5(0xf2))/0x4*(-parseInt(_0x13ece5(0x12c))/0x5)+parseInt(_0x13ece5(0x14d))/0x6*(-parseInt(_0x13ece5(0x167))/0x7)+-parseInt(_0x13ece5(0x156))/0x8+-parseInt(_0x13ece5(0x155))/0x9+-parseInt(_0x13ece5(0x11a))/0xa*(-parseInt(_0x13ece5(0xf6))/0xb);if(_0x299628===_0x338491)break;else _0xaeaa6['push'](_0xaeaa6['shift']());}catch(_0x492902){_0xaeaa6['push'](_0xaeaa6['shift']());}}}(a101_0xfc8f,0x8b202));import a101_0x3c32cf 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{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a101_0x3cc2(_0x3e8624,_0x3dd81a){_0x3e8624=_0x3e8624-0xdf;const _0xfc8ff9=a101_0xfc8f();let _0x3cc27d=_0xfc8ff9[_0x3e8624];return _0x3cc27d;}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x46351c){const _0xd7f51b=a101_0x3cc2;return typeof _0x46351c===_0xd7f51b(0xe4)?JSON[_0xd7f51b(0x14f)](_0x46351c):'<'+(_0x46351c===null?_0xd7f51b(0x10c):typeof _0x46351c)+'>';}function a101_0xfc8f(){const _0xfda69d=['current','toLowerCase','globalConfig','riskLevel','✗\x20Not\x20logged\x20in','gray','\x20\x20Config\x20Files','red','486JukeiM','\x20\x20Config\x20JSON','stringify','unknown','\x20\x20Auth','green','\x20\x20Merged\x20Config','state','8376516NtejAj','1599432NLgUpr','(set\x20via\x20file,\x20length=','global','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','call','\x20config\x20delete\x20region','empty','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','includes','label','format','present','957957FtOUwO','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','73486nqMEhe','env','arch','verbose','(not\x20set)','\x20\x20Installed\x20Path:\x20\x20','repeat','string','slice','\x20doctor','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','read','\x20config\x20delete\x20routing','Project','status','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20Package\x20Version:\x20','\x20config','4qdSGYp','version','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','2024SCfOVN','\x20\x20API\x20Endpoints','explicitAppName','routing','filter','\x20\x20Repair\x20global:\x20\x20\x20','apps','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20Built-in\x20Skill','823827OdiJmb','missing','(not\x20found)','✓\x20Valid','value','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','Global','\x20+\x20','✓\x20Valid\x20JSON','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','null','appCode','padEnd','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','ignored\x20in\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','join','\x20\x20runtimeDomain:\x20\x20\x20','locale','length','✗\x20Invalid','\x20(default)','bold','region','29530VMmnbc','currentApp','\x20\x20Apps','accessKey','packageVersion','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(no\x20file)','hasOwnProperty','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','projectConfig','pageSize','message','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','3874655PpMxZF','\x20config\x20delete\x20routing\x20--global','project','yellow','\x20\x20─','installedPath','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','2JhCTeI','raw','repairCommand','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','inherit','log','apiDir','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','source','reason','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length='];a101_0xfc8f=function(){return _0xfda69d;};return a101_0xfc8f();}async function execute(_0x6875ab){const _0x1a2e59=a101_0x3cc2,_0x1eff94=GIT_COMMIT!==_0x1a2e59(0x150)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1a2e59(0xe5)](0x0,0xa)+')':VERSION,_0x1a3c7f=buildConfigFromFlags({}),_0x2ef35a=getCookie();let _0x305fb1;try{await initGlobalEnvironment(_0x1a3c7f);}catch(_0xfac28d){_0x305fb1=_0xfac28d instanceof Error?_0xfac28d:new Error(String(_0xfac28d));}console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](CLI_BIN_NAME+_0x1a2e59(0xe6))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)]('─'[_0x1a2e59(0xe3)](0x32))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x126)+_0x1eff94),console[_0x1a2e59(0x13b)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x1a2e59(0xf3)]),console[_0x1a2e59(0x13b)](_0x1a2e59(0xed)+process['platform']+'\x20'+process[_0x1a2e59(0xdf)]);const _0x4d8852=inspectBuiltinSkill();console['log'](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0xff))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)['repeat'](0x1e)));const _0x3b9fd0=_0x4d8852[_0x1a2e59(0x154)]===_0x1a2e59(0x145)?a101_0x3c32cf[_0x1a2e59(0x152)]('✓\x20'+_0x4d8852[_0x1a2e59(0x154)]):a101_0x3c32cf['red']('✗\x20'+_0x4d8852[_0x1a2e59(0x154)]);console[_0x1a2e59(0x13b)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b9fd0),console[_0x1a2e59(0x13b)](_0x1a2e59(0xf0)+_0x4d8852[_0x1a2e59(0x11e)]),console['log'](_0x1a2e59(0x12b)+(_0x4d8852['skillVersion']||a101_0x3c32cf[_0x1a2e59(0x14a)]('(unknown)'))),console[_0x1a2e59(0x13b)](_0x1a2e59(0xe2)+(_0x4d8852[_0x1a2e59(0x131)]||a101_0x3c32cf['gray'](_0x1a2e59(0x102))));if(_0x4d8852[_0x1a2e59(0x140)])console[_0x1a2e59(0x13b)](_0x1a2e59(0x141)+_0x4d8852['reason']);_0x4d8852['state']!=='current'&&console[_0x1a2e59(0x13b)](_0x1a2e59(0xfd)+_0x4d8852['repairCommand']);console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0x14b))),console[_0x1a2e59(0x13b)](a101_0x3c32cf['gray'](_0x1a2e59(0x130)[_0x1a2e59(0xe3)](0x1e)));const _0x5ac7ad=getGlobalConfigPath(),_0x5874ba=getProjectConfigPath();console[_0x1a2e59(0x13b)](_0x1a2e59(0xf4)+(_0x5ac7ad||a101_0x3c32cf[_0x1a2e59(0x14a)]('(not\x20found)'))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5874ba||a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x102)))),console[_0x1a2e59(0x13b)](),console['log'](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0x14e))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)]('\x20\x20─'[_0x1a2e59(0xe3)](0x1e)));const _0x2acf90=(_0x4e82e1,_0x58b851)=>{const _0x5d5522=_0x1a2e59;if(!_0x58b851){console[_0x5d5522(0x13b)]('\x20\x20'+_0x4e82e1[_0x5d5522(0x10e)](0x11)+'\x20'+a101_0x3c32cf['gray'](_0x5d5522(0x123)));return;}const _0x564868=inspectCliConfigJsonFile(_0x58b851);if(_0x564868[_0x5d5522(0xec)]==='ok')console[_0x5d5522(0x13b)]('\x20\x20'+_0x4e82e1['padEnd'](0x11)+'\x20'+a101_0x3c32cf[_0x5d5522(0x152)](_0x5d5522(0x109)));else{if(_0x564868[_0x5d5522(0xec)]===_0x5d5522(0x15c))console[_0x5d5522(0x13b)]('\x20\x20'+_0x4e82e1['padEnd'](0x11)+'\x20'+a101_0x3c32cf[_0x5d5522(0x12f)](_0x5d5522(0x11f)));else _0x564868[_0x5d5522(0xec)]===_0x5d5522(0x101)?console[_0x5d5522(0x13b)]('\x20\x20'+_0x4e82e1['padEnd'](0x11)+'\x20'+a101_0x3c32cf[_0x5d5522(0x14a)]('(missing)')):(console[_0x5d5522(0x13b)]('\x20\x20'+_0x4e82e1[_0x5d5522(0x10e)](0x11)+'\x20'+a101_0x3c32cf[_0x5d5522(0x14c)]('✗\x20Invalid\x20JSON')),console[_0x5d5522(0x13b)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a101_0x3c32cf[_0x5d5522(0x14c)](_0x564868[_0x5d5522(0x129)])));}};_0x2acf90('Global',_0x5ac7ad),_0x2acf90(_0x1a2e59(0xeb),_0x5874ba);const _0x502af3=loadRawConfigLayers(),_0x18f31e=[{'label':'Project','value':_0x502af3[_0x1a2e59(0x127)]['region'],'present':Object[_0x1a2e59(0xf5)][_0x1a2e59(0x124)][_0x1a2e59(0x15a)](_0x502af3['projectConfig'],_0x1a2e59(0x119)),'repairCommand':CLI_BIN_NAME+_0x1a2e59(0x15b)},{'label':_0x1a2e59(0x107),'value':_0x502af3[_0x1a2e59(0x147)]['region'],'present':Object[_0x1a2e59(0xf5)]['hasOwnProperty'][_0x1a2e59(0x15a)](_0x502af3['globalConfig'],_0x1a2e59(0x119)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x1a2e59(0xfa)](_0x665197=>_0x665197[_0x1a2e59(0x162)]&&isInvalidLovrabetRegion(_0x665197[_0x1a2e59(0x104)]));if(_0x18f31e[_0x1a2e59(0x115)]>0x0){console['log'](),console[_0x1a2e59(0x13b)](a101_0x3c32cf['bold'](_0x1a2e59(0x106))),console[_0x1a2e59(0x13b)](a101_0x3c32cf['gray'](_0x1a2e59(0x130)[_0x1a2e59(0xe3)](0x1e)));for(const _0x5ee76e of _0x18f31e){console[_0x1a2e59(0x13b)]('\x20\x20'+_0x5ee76e[_0x1a2e59(0x160)][_0x1a2e59(0x10e)](0x11)+'\x20'+a101_0x3c32cf[_0x1a2e59(0x14c)]('✗\x20Invalid\x20'+describeRegionValue(_0x5ee76e[_0x1a2e59(0x104)]))),console[_0x1a2e59(0x13b)]('\x20\x20'+('Repair\x20'+_0x5ee76e[_0x1a2e59(0x160)][_0x1a2e59(0x146)]()+':')['padEnd'](0x10)+'\x20'+_0x5ee76e[_0x1a2e59(0x138)]);}}const _0x54b95d=[Object['prototype'][_0x1a2e59(0x124)][_0x1a2e59(0x15a)](_0x502af3[_0x1a2e59(0x147)],'inherit')?_0x1a2e59(0x158):null,Object[_0x1a2e59(0xf5)]['hasOwnProperty']['call'](_0x502af3[_0x1a2e59(0x127)],_0x1a2e59(0x13a))?_0x1a2e59(0x12e):null][_0x1a2e59(0xfa)](Boolean);_0x54b95d[_0x1a2e59(0x115)]>0x0&&(console[_0x1a2e59(0x13b)](_0x1a2e59(0x125)+a101_0x3c32cf[_0x1a2e59(0x12f)](_0x1a2e59(0x110)+_0x54b95d[_0x1a2e59(0x112)](_0x1a2e59(0x108))+_0x1a2e59(0xf1))),_0x54b95d[_0x1a2e59(0x15f)](_0x1a2e59(0x12e))&&console[_0x1a2e59(0x13b)](_0x1a2e59(0x121)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x54b95d[_0x1a2e59(0x15f)](_0x1a2e59(0x158))&&console[_0x1a2e59(0x13b)](_0x1a2e59(0x134)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x1c6631=isInvalidLovrabetRegion(_0x1a3c7f[_0x1a2e59(0x137)]?.[_0x1a2e59(0x119)]);_0x305fb1&&!_0x1c6631&&(console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)]('\x20\x20Routing\x20Configuration')),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)['repeat'](0x1e))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x132)+a101_0x3c32cf['red'](_0x1a2e59(0x116))),console[_0x1a2e59(0x13b)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x305fb1['message']),Object[_0x1a2e59(0xf5)][_0x1a2e59(0x124)][_0x1a2e59(0x15a)](_0x502af3[_0x1a2e59(0x127)],_0x1a2e59(0xf9))&&console['log']('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x1a2e59(0xea)),Object[_0x1a2e59(0xf5)]['hasOwnProperty'][_0x1a2e59(0x15a)](_0x502af3['globalConfig'],_0x1a2e59(0xf9))&&console[_0x1a2e59(0x13b)](_0x1a2e59(0xfb)+CLI_BIN_NAME+_0x1a2e59(0x12d)));console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0x153))),console['log'](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)['repeat'](0x1e))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x164)+(_0x1a3c7f[_0x1a2e59(0x10d)]||a101_0x3c32cf[_0x1a2e59(0x14c)](_0x1a2e59(0xe1)))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x10a)+_0x1a3c7f[_0x1a2e59(0x168)]),console['log'](_0x1a2e59(0x139)+_0x1a3c7f[_0x1a2e59(0x114)]),console[_0x1a2e59(0x13b)](_0x1a2e59(0x15d)+_0x1a3c7f[_0x1a2e59(0x13c)]),console[_0x1a2e59(0x13b)](_0x1a2e59(0x105)+(_0x1a3c7f[_0x1a2e59(0xef)]||a101_0x3c32cf[_0x1a2e59(0x14a)]('(none)'))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x122)+(_0x1a3c7f[_0x1a2e59(0x11b)]||a101_0x3c32cf['gray'](_0x1a2e59(0x133)))),console['log'](_0x1a2e59(0x142)+(_0x1a3c7f[_0x1a2e59(0xf8)]||a101_0x3c32cf[_0x1a2e59(0x14a)]('(none)'))),console[_0x1a2e59(0x13b)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a3c7f[_0x1a2e59(0x161)]||a101_0x3c32cf[_0x1a2e59(0x14a)]('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x1a2e59(0x13b)](_0x1a2e59(0x12a)+(_0x1a3c7f[_0x1a2e59(0x128)]??a101_0x3c32cf[_0x1a2e59(0x14a)]('(default)'))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x1a3c7f[_0x1a2e59(0x148)]),console['log'](_0x1a2e59(0x165)+_0x1a3c7f[_0x1a2e59(0xe0)]),console[_0x1a2e59(0x13b)](_0x1a2e59(0xe7)+(_0x1a3c7f[_0x1a2e59(0xfe)]?a101_0x3c32cf[_0x1a2e59(0x152)](_0x1a2e59(0x144)+_0x1a3c7f[_0x1a2e59(0xfe)]['length']+')'):_0x2ef35a?a101_0x3c32cf['green'](_0x1a2e59(0x157)+_0x2ef35a[_0x1a2e59(0x115)]+')'):a101_0x3c32cf['gray'](_0x1a2e59(0x133))));const _0x36913c=Object['keys'](_0x1a3c7f['apps']);if(_0x36913c[_0x1a2e59(0x115)]>0x0){console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0x11c))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)[_0x1a2e59(0xe3)](0x1e)));for(const _0xb3926a of _0x36913c){const _0x512f31=_0x1a3c7f[_0x1a2e59(0xfc)][_0xb3926a],_0x3201b6=_0xb3926a===_0x1a3c7f['defaultApp'],_0x1a35a0=_0xb3926a===_0x1a3c7f[_0x1a2e59(0x11b)],_0x469481=_0x1a35a0?a101_0x3c32cf[_0x1a2e59(0x152)](_0x1a2e59(0x166)):'',_0x2ec43a=_0x3201b6?_0x1a2e59(0x117):'';console['log']('\x20\x20'+_0xb3926a+_0x2ec43a+_0x469481),console[_0x1a2e59(0x13b)](_0x1a2e59(0x10f)+_0x512f31[_0x1a2e59(0x13e)]);const _0x4c55d8=buildAppDoctorFields(_0x512f31,{'env':_0x1a3c7f['env'],'apiDir':_0x1a3c7f[_0x1a2e59(0x137)][_0x1a2e59(0x13c)]||DEFAULT_CONFIG_VALUES[_0x1a2e59(0x13c)],'cookie':_0x1a3c7f[_0x1a2e59(0xfe)]||_0x2ef35a||undefined,'accessKey':_0x1a3c7f['accessKey']});console[_0x1a2e59(0x13b)](_0x1a2e59(0xee)+_0x4c55d8[_0x1a2e59(0x168)]['value']+'\x20\x20'+a101_0x3c32cf[_0x1a2e59(0x14a)]('('+_0x4c55d8[_0x1a2e59(0x168)]['source']+')')),console[_0x1a2e59(0x13b)](_0x1a2e59(0x111)+_0x4c55d8[_0x1a2e59(0x13c)][_0x1a2e59(0x104)]+'\x20\x20'+a101_0x3c32cf['gray']('('+_0x4c55d8['apiDir'][_0x1a2e59(0x13f)]+')'));const _0x164583=_0x4c55d8[_0x1a2e59(0xfe)][_0x1a2e59(0x104)]?a101_0x3c32cf[_0x1a2e59(0x152)](_0x1a2e59(0x144)+_0x4c55d8[_0x1a2e59(0xfe)][_0x1a2e59(0x104)][_0x1a2e59(0x115)]+')'):a101_0x3c32cf[_0x1a2e59(0x14a)]('(none)');console[_0x1a2e59(0x13b)](_0x1a2e59(0x135)+_0x164583+'\x20\x20'+a101_0x3c32cf[_0x1a2e59(0x14a)]('('+_0x4c55d8[_0x1a2e59(0xfe)]['source']+')'));const _0x131e67=_0x4c55d8[_0x1a2e59(0x11d)][_0x1a2e59(0x104)]?a101_0x3c32cf['green']('(set,\x20length='+_0x4c55d8['accessKey'][_0x1a2e59(0x104)][_0x1a2e59(0x115)]+')'):a101_0x3c32cf['gray'](_0x1a2e59(0x133));console[_0x1a2e59(0x13b)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x131e67+'\x20\x20'+a101_0x3c32cf[_0x1a2e59(0x14a)]('('+_0x4c55d8[_0x1a2e59(0x11d)][_0x1a2e59(0x13f)]+')'));}}console['log'](),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x118)](_0x1a2e59(0xf7))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)['repeat'](0x1e)));_0x305fb1?console[_0x1a2e59(0x13b)](_0x1a2e59(0x132)+a101_0x3c32cf[_0x1a2e59(0x14c)](_0x1a2e59(0xe8))):(console[_0x1a2e59(0x13b)](_0x1a2e59(0x13d)+getActiveRegion()),console[_0x1a2e59(0x13b)](_0x1a2e59(0x159)+getApiDomain()),console[_0x1a2e59(0x13b)](_0x1a2e59(0x10b)+getUserDomain()),console[_0x1a2e59(0x13b)](_0x1a2e59(0x113)+getRuntimeDomain()),console['log'](_0x1a2e59(0x120)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x1a2e59(0x13b)](_0x1a2e59(0x143)+getAppDomain()));console[_0x1a2e59(0x13b)](),console[_0x1a2e59(0x13b)](a101_0x3c32cf['bold'](_0x1a2e59(0x151))),console[_0x1a2e59(0x13b)](a101_0x3c32cf[_0x1a2e59(0x14a)](_0x1a2e59(0x130)['repeat'](0x1e)));if(_0x305fb1)console[_0x1a2e59(0x13b)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3c32cf['yellow']('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x2ef35a){const _0x6f700e=await getIsSessionValid();console['log'](_0x1a2e59(0x132)+(_0x6f700e?a101_0x3c32cf[_0x1a2e59(0x152)](_0x1a2e59(0x103)):a101_0x3c32cf[_0x1a2e59(0x14c)]('✗\x20Expired')));}else console[_0x1a2e59(0x13b)](_0x1a2e59(0x132)+a101_0x3c32cf['red'](_0x1a2e59(0x149)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a101_0x194634(0x15e),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a101_0x194634(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a101_0x19c08b=a101_0x326c;(function(_0x402426,_0x24ce42){const _0x5e793a=a101_0x326c,_0x1e0b77=_0x402426();while(!![]){try{const _0x8e9197=-parseInt(_0x5e793a(0x19a))/0x1+parseInt(_0x5e793a(0x16a))/0x2+parseInt(_0x5e793a(0x14a))/0x3*(parseInt(_0x5e793a(0x1be))/0x4)+parseInt(_0x5e793a(0x154))/0x5*(-parseInt(_0x5e793a(0x1a4))/0x6)+-parseInt(_0x5e793a(0x1bf))/0x7+parseInt(_0x5e793a(0x1c9))/0x8*(-parseInt(_0x5e793a(0x1c7))/0x9)+parseInt(_0x5e793a(0x1c3))/0xa;if(_0x8e9197===_0x24ce42)break;else _0x1e0b77['push'](_0x1e0b77['shift']());}catch(_0x250c03){_0x1e0b77['push'](_0x1e0b77['shift']());}}}(a101_0xc891,0xe6b9e));import a101_0x3b993b 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{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{resolveEffectiveRegion}from'../config/region-config.js';function a101_0xc891(){const _0x198c5e=['\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Not\x20logged\x20in','unknown','Global','\x20config\x20delete\x20routing\x20--global','(unknown)','length','\x20(default)','join','\x20\x20Repair\x20global:\x20\x20\x20','1711203AnwrtE','current','log','cookie','label','inherit','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','pageSize','project','13038FCxCwh','✗\x20Invalid\x20','bold','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region\x20--global','(not\x20set)','projectConfig','message','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','filter','entries','Project','\x20+\x20','arch','globalConfig','✓\x20Valid\x20JSON','check','object','routing','\x20\x20Installed\x20Path:\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','skillVersion','push','\x20config\x20delete\x20routing','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','424gACwNW','622069LQyfII','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','11271090LnTnJw','repeat','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','regionConfiguredValue','54gpjxAB','\x20config\x20delete\x20inherit','198200LisvXD','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','state','global','appCode','green','yellow','prototype','\x20\x20API\x20Endpoints','\x20\x20Config\x20JSON','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Repair\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20app\x20\x22','includes','format','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','19080nhkkBw','slice','raw','hasOwnProperty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20region:\x20\x20\x20\x20\x20','Set\x20apps.','region','gray','1080vASdRu','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','(default:\x20','defaultApp','default','empty','\x20\x20─','accessKey','\x20config\x20delete\x20region','apiDir','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','padEnd','call','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','(missing)','3123746vMhWpN','stringify','ignored\x20in\x20','env','red','\x20←\x20current','✗\x20Invalid','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Routing\x20Configuration','explicitAppName','\x20\x20Apps','\x20config','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','null','status','\x20\x20Repair\x20project:\x20\x20\x20','version','.region\x20to\x20cn\x20or\x20id\x20in\x20','string','appcode','present','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','toLowerCase','\x20\x20Legacy\x20inherit:\x20\x20\x20','(not\x20found)','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','\x20\x20Config\x20Files','\x20\x20Repair\x20project:\x20\x20','apps','\x20(invalid)','currentApp'];a101_0xc891=function(){return _0x198c5e;};return a101_0xc891();}function a101_0x326c(_0x3d5c78,_0x4c429b){_0x3d5c78=_0x3d5c78-0x144;const _0xc891c=a101_0xc891();let _0x326cda=_0xc891c[_0x3d5c78];return _0x326cda;}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{DEFAULT_LOVRABET_REGION,isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x2ac5a7){const _0x436f71=a101_0x326c;return typeof _0x2ac5a7===_0x436f71(0x17e)?JSON[_0x436f71(0x16b)](_0x2ac5a7):'<'+(_0x2ac5a7===null?_0x436f71(0x179):typeof _0x2ac5a7)+'>';}async function execute(_0x5a1bf6){const _0x37776c=a101_0x326c,_0x54b2e2=GIT_COMMIT!==_0x37776c(0x192)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x37776c(0x14b)](0x0,0xa)+')':VERSION,_0x554564=buildConfigFromFlags({}),_0x59438e=getCookie();let _0x4f16df;try{await initGlobalEnvironment(_0x554564);}catch(_0x2631fd){_0x4f16df=_0x2631fd instanceof Error?_0x2631fd:new Error(String(_0x2631fd));}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](CLI_BIN_NAME+'\x20doctor')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('─'[_0x37776c(0x1c4)](0x32))),console['log'](_0x37776c(0x178)+_0x54b2e2),console['log'](_0x37776c(0x167)+process[_0x37776c(0x17c)]),console[_0x37776c(0x19c)](_0x37776c(0x162)+process['platform']+'\x20'+process[_0x37776c(0x1b1)]);const _0x3c4a65=inspectBuiltinSkill();console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Built-in\x20Skill')),console[_0x37776c(0x19c)](a101_0x3b993b['gray'](_0x37776c(0x15e)['repeat'](0x1e)));const _0x4b2133=_0x3c4a65['state']===_0x37776c(0x19b)?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20'+_0x3c4a65[_0x37776c(0x1cb)]):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20'+_0x3c4a65[_0x37776c(0x1cb)]);console[_0x37776c(0x19c)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4b2133),console[_0x37776c(0x19c)]('\x20\x20Package\x20Version:\x20'+_0x3c4a65['packageVersion']),console[_0x37776c(0x19c)](_0x37776c(0x1a1)+(_0x3c4a65[_0x37776c(0x1b9)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x195)))),console[_0x37776c(0x19c)](_0x37776c(0x1b7)+(_0x3c4a65[_0x37776c(0x168)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186))));if(_0x3c4a65[_0x37776c(0x183)])console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x3c4a65[_0x37776c(0x183)]);_0x3c4a65['state']!==_0x37776c(0x19b)&&console[_0x37776c(0x19c)](_0x37776c(0x173)+_0x3c4a65[_0x37776c(0x164)]);console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x18b))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));const _0x55978b=getGlobalConfigPath(),_0x1dd723=getProjectConfigPath();console['log'](_0x37776c(0x157)+(_0x55978b||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x186)))),console[_0x37776c(0x19c)](_0x37776c(0x14f)+(_0x1dd723||a101_0x3b993b[_0x37776c(0x153)]('(not\x20found)'))),console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x1d2))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)['repeat'](0x1e)));const _0x1b96db=(_0x2edfc9,_0x29532d)=>{const _0x2a86d2=_0x37776c;if(!_0x29532d){console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x1d7)));return;}const _0x4d823f=inspectCliConfigJsonFile(_0x29532d);if(_0x4d823f[_0x2a86d2(0x17a)]==='ok')console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1ce)](_0x2a86d2(0x1b3)));else{if(_0x4d823f[_0x2a86d2(0x17a)]===_0x2a86d2(0x15d))console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x1cf)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4d823f[_0x2a86d2(0x17a)]==='missing'?console[_0x2a86d2(0x19c)]('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x153)](_0x2a86d2(0x169))):(console['log']('\x20\x20'+_0x2edfc9[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x2a86d2(0x16e)]('✗\x20Invalid\x20JSON')),console[_0x2a86d2(0x19c)]('\x20\x20'+''[_0x2a86d2(0x165)](0x11)+'\x20'+a101_0x3b993b['red'](_0x4d823f[_0x2a86d2(0x1ab)])));}};_0x1b96db(_0x37776c(0x193),_0x55978b),_0x1b96db(_0x37776c(0x1af),_0x1dd723);const _0x314f76=loadRawConfigLayers(),_0x47cc9a=[{'label':'Project','value':_0x314f76[_0x37776c(0x1aa)]['region'],'present':Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x160)},{'label':_0x37776c(0x193),'value':_0x314f76[_0x37776c(0x1b2)]['region'],'present':Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76['globalConfig'],_0x37776c(0x152)),'repairCommand':CLI_BIN_NAME+_0x37776c(0x1a8)}][_0x37776c(0x1ad)](_0x59826f=>_0x59826f[_0x37776c(0x180)]&&isInvalidLovrabetRegion(_0x59826f[_0x37776c(0x187)]));for(const [_0x147567,_0x17117c]of[['Project',_0x314f76[_0x37776c(0x1aa)]],[_0x37776c(0x193),_0x314f76[_0x37776c(0x1b2)]]]){const _0x215436=_0x17117c[_0x37776c(0x18d)]&&typeof _0x17117c[_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x17117c['apps']:{};for(const [_0x49b2a8,_0x23a9c1]of Object[_0x37776c(0x1ae)](_0x215436)){if(!_0x23a9c1||typeof _0x23a9c1!==_0x37776c(0x1b5)||!Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x23a9c1,'region'))continue;isInvalidLovrabetRegion(_0x23a9c1[_0x37776c(0x152)])&&_0x47cc9a[_0x37776c(0x1ba)]({'label':_0x147567+_0x37776c(0x144)+_0x49b2a8+'\x22','value':_0x23a9c1[_0x37776c(0x152)],'present':!![],'repairCommand':_0x37776c(0x151)+_0x49b2a8+_0x37776c(0x17d)+_0x147567['toLowerCase']()+_0x37776c(0x177)});}}if(_0x47cc9a['length']>0x0){console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Country/Region\x20Configuration')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x5b869e of _0x47cc9a){console['log']('\x20\x20'+_0x5b869e['label'][_0x37776c(0x165)](0x11)+'\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a5)+describeRegionValue(_0x5b869e[_0x37776c(0x187)]))),console[_0x37776c(0x19c)]('\x20\x20'+(_0x37776c(0x1d4)+_0x5b869e[_0x37776c(0x19e)][_0x37776c(0x184)]()+':')['padEnd'](0x10)+'\x20'+_0x5b869e[_0x37776c(0x164)]);}}const _0x5e7f75=[Object['prototype'][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x19f))?_0x37776c(0x1cc):null,Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],'inherit')?_0x37776c(0x1a3):null][_0x37776c(0x1ad)](Boolean);_0x5e7f75[_0x37776c(0x196)]>0x0&&(console[_0x37776c(0x19c)](_0x37776c(0x185)+a101_0x3b993b[_0x37776c(0x1cf)](_0x37776c(0x16c)+_0x5e7f75[_0x37776c(0x198)](_0x37776c(0x1b0))+_0x37776c(0x177))),_0x5e7f75[_0x37776c(0x145)](_0x37776c(0x1a3))&&console[_0x37776c(0x19c)](_0x37776c(0x17b)+CLI_BIN_NAME+_0x37776c(0x1c8)),_0x5e7f75[_0x37776c(0x145)]('global')&&console[_0x37776c(0x19c)](_0x37776c(0x1d5)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));const _0x7207a0=isInvalidLovrabetRegion(_0x554564[_0x37776c(0x1c6)]??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)]);_0x4f16df&&!_0x7207a0&&(console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x174))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x170))),console[_0x37776c(0x19c)](_0x37776c(0x1bc)+_0x4f16df[_0x37776c(0x1ab)]),Object[_0x37776c(0x1d0)]['hasOwnProperty'][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1aa)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x18c)+CLI_BIN_NAME+_0x37776c(0x1bb)),Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x314f76[_0x37776c(0x1b2)],_0x37776c(0x1b6))&&console[_0x37776c(0x19c)](_0x37776c(0x199)+CLI_BIN_NAME+_0x37776c(0x194)));console['log'](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x159))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e))),console[_0x37776c(0x19c)](_0x37776c(0x1d6)+(_0x554564[_0x37776c(0x1cd)]||a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1a9))));const _0x4559df=_0x7207a0?a101_0x3b993b[_0x37776c(0x16e)](describeRegionValue(_0x554564['regionConfiguredValue']??_0x554564[_0x37776c(0x14c)]?.[_0x37776c(0x152)])+_0x37776c(0x18e)):(_0x554564[_0x37776c(0x152)]??DEFAULT_LOVRABET_REGION)+'\x20('+(_0x554564['regionSource']??_0x37776c(0x15c))+')';console[_0x37776c(0x19c)](_0x37776c(0x1c1)+_0x4559df),console[_0x37776c(0x19c)](_0x37776c(0x188)+_0x554564['env']),console[_0x37776c(0x19c)](_0x37776c(0x172)+_0x554564['locale']),console[_0x37776c(0x19c)](_0x37776c(0x1a0)+_0x554564[_0x37776c(0x161)]),console[_0x37776c(0x19c)](_0x37776c(0x14e)+(_0x554564[_0x37776c(0x15b)]||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x554564['currentApp']||a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156)))),console[_0x37776c(0x19c)](_0x37776c(0x149)+(_0x554564[_0x37776c(0x175)]||a101_0x3b993b[_0x37776c(0x153)]('(none)'))),console['log'](_0x37776c(0x1d3)+(_0x554564[_0x37776c(0x146)]||a101_0x3b993b['gray'](_0x37776c(0x15a)+DEFAULT_CONFIG_VALUES[_0x37776c(0x146)]+')'))),console['log'](_0x37776c(0x1c2)+(_0x554564[_0x37776c(0x1a2)]??a101_0x3b993b['gray'](_0x37776c(0x158)))),console[_0x37776c(0x19c)](_0x37776c(0x1b8)+_0x554564['riskLevel']),console['log'](_0x37776c(0x163)+_0x554564['verbose']),console[_0x37776c(0x19c)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x554564['cookie']?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x554564[_0x37776c(0x19d)]['length']+')'):_0x59438e?a101_0x3b993b[_0x37776c(0x1ce)]('(set\x20via\x20file,\x20length='+_0x59438e[_0x37776c(0x196)]+')'):a101_0x3b993b['gray'](_0x37776c(0x156))));const _0x5b6612=Object[_0x37776c(0x147)](_0x554564[_0x37776c(0x18d)]);if(_0x5b6612[_0x37776c(0x196)]>0x0){console['log'](),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x1a6)](_0x37776c(0x176))),console['log'](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));for(const _0x453491 of _0x5b6612){const _0x8798ec=_0x554564[_0x37776c(0x18d)][_0x453491],_0x27c9c6=_0x453491===_0x554564['defaultApp'],_0x436f8c=_0x453491===_0x554564[_0x37776c(0x18f)],_0x6af971=_0x436f8c?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x16f)):'',_0x54d243=_0x27c9c6?_0x37776c(0x197):'';console[_0x37776c(0x19c)]('\x20\x20'+_0x453491+_0x54d243+_0x6af971),console[_0x37776c(0x19c)](_0x37776c(0x148)+_0x8798ec[_0x37776c(0x17f)]);const _0x4102ce=_0x314f76[_0x37776c(0x1aa)][_0x37776c(0x18d)]&&typeof _0x314f76['projectConfig'][_0x37776c(0x18d)]===_0x37776c(0x1b5)?_0x314f76['projectConfig'][_0x37776c(0x18d)]:{},_0x13d0d1=Object[_0x37776c(0x1d0)][_0x37776c(0x14d)][_0x37776c(0x166)](_0x4102ce,_0x453491),_0x15974a=isInvalidLovrabetRegion(_0x8798ec['region'])?{'region':_0x554564['region']??DEFAULT_LOVRABET_REGION}:resolveEffectiveRegion({'appRegion':_0x8798ec[_0x37776c(0x152)],'projectRegion':_0x13d0d1?_0x314f76['projectConfig'][_0x37776c(0x152)]:undefined,'globalRegion':_0x314f76[_0x37776c(0x1b2)]['region'],'mergedRegion':_0x554564[_0x37776c(0x14c)][_0x37776c(0x152)],'appName':_0x453491}),_0x214da0=buildAppDoctorFields(_0x8798ec,{'region':_0x15974a[_0x37776c(0x152)],'env':_0x554564[_0x37776c(0x16d)],'apiDir':_0x554564['raw'][_0x37776c(0x161)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x554564[_0x37776c(0x19d)]||_0x59438e||undefined,'accessKey':_0x554564[_0x37776c(0x15f)]});console[_0x37776c(0x19c)](_0x37776c(0x150)+_0x214da0['region'][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['region'][_0x37776c(0x189)]+')')),console[_0x37776c(0x19c)](_0x37776c(0x1a7)+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x16d)][_0x37776c(0x189)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x214da0[_0x37776c(0x161)][_0x37776c(0x187)]+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x161)][_0x37776c(0x189)]+')'));const _0x18abed=_0x214da0[_0x37776c(0x19d)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)](_0x37776c(0x181)+_0x214da0['cookie']['value'][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x156));console[_0x37776c(0x19c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x18abed+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0['cookie'][_0x37776c(0x189)]+')'));const _0x157074=_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)]?a101_0x3b993b[_0x37776c(0x1ce)]('(set,\x20length='+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x187)][_0x37776c(0x196)]+')'):a101_0x3b993b[_0x37776c(0x153)]('(none)');console[_0x37776c(0x19c)](_0x37776c(0x171)+_0x157074+'\x20\x20'+a101_0x3b993b[_0x37776c(0x153)]('('+_0x214da0[_0x37776c(0x15f)][_0x37776c(0x189)]+')'));}}console[_0x37776c(0x19c)](),console[_0x37776c(0x19c)](a101_0x3b993b['bold'](_0x37776c(0x1d1))),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)](_0x37776c(0x15e)[_0x37776c(0x1c4)](0x1e)));_0x4f16df?console[_0x37776c(0x19c)](_0x37776c(0x182)+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x1ac))):(console[_0x37776c(0x19c)](_0x37776c(0x1c1)+getActiveRegion()),console[_0x37776c(0x19c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x37776c(0x19c)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x37776c(0x19c)](_0x37776c(0x190)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x37776c(0x155)+getKbDomain()),console[_0x37776c(0x19c)](_0x37776c(0x1c5)+getAppDomain()));console[_0x37776c(0x19c)](),console['log'](a101_0x3b993b[_0x37776c(0x1a6)]('\x20\x20Auth')),console[_0x37776c(0x19c)](a101_0x3b993b[_0x37776c(0x153)]('\x20\x20─'[_0x37776c(0x1c4)](0x1e)));if(_0x4f16df)console['log'](_0x37776c(0x182)+a101_0x3b993b['yellow'](_0x37776c(0x1ca)));else{if(_0x59438e){const _0x2a00c5=await getIsSessionValid();console['log'](_0x37776c(0x182)+(_0x2a00c5?a101_0x3b993b[_0x37776c(0x1ce)]('✓\x20Valid'):a101_0x3b993b[_0x37776c(0x16e)]('✗\x20Expired')));}else console[_0x37776c(0x19c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x3b993b[_0x37776c(0x16e)](_0x37776c(0x191)));}return console[_0x37776c(0x19c)](),{'ok':!![]};}export const doctorDefinition={'service':a101_0x19c08b(0x18a),'command':a101_0x19c08b(0x1b4),'description':a101_0x19c08b(0x1c0),'risk':a101_0x19c08b(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a102_0x229bf8=a102_0x1f17;(function(_0x330493,_0x32af3f){const _0x4c0f9f=a102_0x1f17,_0x10ddd1=_0x330493();while(!![]){try{const _0x246a63=parseInt(_0x4c0f9f(0x141))/0x1+-parseInt(_0x4c0f9f(0x153))/0x2+-parseInt(_0x4c0f9f(0x14c))/0x3+parseInt(_0x4c0f9f(0x149))/0x4+-parseInt(_0x4c0f9f(0x14d))/0x5+-parseInt(_0x4c0f9f(0x14a))/0x6*(-parseInt(_0x4c0f9f(0x15c))/0x7)+parseInt(_0x4c0f9f(0x15a))/0x8*(parseInt(_0x4c0f9f(0x144))/0x9);if(_0x246a63===_0x32af3f)break;else _0x10ddd1['push'](_0x10ddd1['shift']());}catch(_0x178c7a){_0x10ddd1['push'](_0x10ddd1['shift']());}}}(a102_0x405c,0xc8042));function a102_0x1f17(_0x35f46e,_0x210a95){_0x35f46e=_0x35f46e-0x13d;const _0x405c74=a102_0x405c();let _0x1f17f9=_0x405c74[_0x35f46e];return _0x1f17f9;}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a102_0x405c(){const _0x4f0a6e=['.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','POST','str','\x20to\x20development\x20app\x20','long-term','2628724zykZFm','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','trim','/smartapi/common/uploadFile','string','filePath\x20is\x20required.','download','2594464MJzXVO','file','860195ZAAWsH','File','validation','read','filepath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Uploaded\x20file:\x20','upload','query-url','1349757zRVUFT','Preview:\x20upload\x20','filePath','18VBXnQq','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','boolean','appCode','bool','5157652KQgmTv','54XryQdC','path','3694812QYUVss','5142595iTvwUu'];a102_0x405c=function(){return _0x4f0a6e;};return a102_0x405c();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a102_0x229bf8(0x15b),'type':a102_0x229bf8(0x157),'required':!![],'description':a102_0x229bf8(0x13d)},FILEPATH_FLAG={'name':a102_0x229bf8(0x160),'type':a102_0x229bf8(0x157),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':a102_0x229bf8(0x145)},LONG_TERM_FLAG={'name':a102_0x229bf8(0x152),'type':a102_0x229bf8(0x146),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x207ead){const _0x547d23=a102_0x229bf8,_0x2d81dd=_0x207ead[_0x547d23(0x155)]();if(!_0x2d81dd)throw CliErrors[_0x547d23(0x15e)](_0x547d23(0x158));return _0x2d81dd;}const fileUpload={'service':'file','command':a102_0x229bf8(0x13f),'description':a102_0x229bf8(0x154),'risk':a102_0x229bf8(0x15f),'flags':[FILE_FLAG],async 'dryRun'(_0x2181f0){const _0x47f35a=a102_0x229bf8,_0x231c5d=requireDevelopmentUploadFile(_0x2181f0[_0x47f35a(0x150)](_0x47f35a(0x15b)),_0x47f35a(0x15d));return{'method':_0x47f35a(0x14f),'url':_0x47f35a(0x156),'body':{'appCode':_0x2181f0[_0x47f35a(0x147)],'multipart':{'file':_0x231c5d}},'description':_0x47f35a(0x142)+_0x231c5d[_0x47f35a(0x14b)]+_0x47f35a(0x151)+_0x2181f0[_0x47f35a(0x147)]};},async 'execute'(_0x1b9dcd){const _0x1b4dd9=a102_0x229bf8,_0x30d514=requireDevelopmentUploadFile(_0x1b9dcd[_0x1b4dd9(0x150)](_0x1b4dd9(0x15b)),'File'),_0x3fe4e1=await uploadDevelopmentFile(_0x1b9dcd['appCode'],_0x30d514[_0x1b4dd9(0x14b)]);return{'ok':!![],'data':_0x3fe4e1,'message':_0x3fe4e1[_0x1b4dd9(0x143)]?_0x1b4dd9(0x13e)+_0x3fe4e1[_0x1b4dd9(0x143)]+_0x1b4dd9(0x14e):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a102_0x229bf8(0x15b),'command':a102_0x229bf8(0x140),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4e7e81){const _0x47859d=a102_0x229bf8,_0x3448ac=requireFilePath(_0x4e7e81[_0x47859d(0x150)](_0x47859d(0x160))),_0x131adf=await queryDevelopmentFileUrl(_0x3448ac,{'download':_0x4e7e81[_0x47859d(0x148)](_0x47859d(0x159)),'longTerm':_0x4e7e81[_0x47859d(0x148)](_0x47859d(0x152))});return{'ok':!![],'data':_0x131adf};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a102_0x333262=a102_0x5d74;(function(_0x9cfcc1,_0x58b662){const _0x2c539f=a102_0x5d74,_0x4b0790=_0x9cfcc1();while(!![]){try{const _0x30f205=-parseInt(_0x2c539f(0x1c7))/0x1+-parseInt(_0x2c539f(0x1bd))/0x2*(-parseInt(_0x2c539f(0x1be))/0x3)+-parseInt(_0x2c539f(0x1c1))/0x4+parseInt(_0x2c539f(0x1c0))/0x5*(parseInt(_0x2c539f(0x1ce))/0x6)+-parseInt(_0x2c539f(0x1b3))/0x7*(-parseInt(_0x2c539f(0x1d1))/0x8)+-parseInt(_0x2c539f(0x1cc))/0x9*(parseInt(_0x2c539f(0x1b4))/0xa)+parseInt(_0x2c539f(0x1b6))/0xb;if(_0x30f205===_0x58b662)break;else _0x4b0790['push'](_0x4b0790['shift']());}catch(_0x3ce701){_0x4b0790['push'](_0x4b0790['shift']());}}}(a102_0x3122,0xc02f9));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a102_0x5d74(_0x432218,_0x30680e){_0x432218=_0x432218-0x1b2;const _0x3122d8=a102_0x3122();let _0x5d743c=_0x3122d8[_0x432218];return _0x5d743c;}function a102_0x3122(){const _0x51e1fc=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','bool','boolean','File','274043uEduzf','9910oeOmSX','Preview:\x20upload\x20','13147376CuewFY','appCode','query-url','download','POST','/smartapi/common/uploadFile','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','2jtRJAD','3273141HXQFNx','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5mKNRYR','3387184BKtfaZ','filepath','filePath','string','str','Uploaded\x20file:\x20','1184913ctyOHs','path','\x20to\x20development\x20app\x20','read','upload','8334dIyjSj','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1420116sYnJIt','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','file','248ITzQDY','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term'];a102_0x3122=function(){return _0x51e1fc;};return a102_0x3122();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1cd)},FILEPATH_FLAG={'name':a102_0x333262(0x1c2),'type':a102_0x333262(0x1c4),'required':!![],'description':a102_0x333262(0x1d4)},DOWNLOAD_FLAG={'name':a102_0x333262(0x1b9),'type':a102_0x333262(0x1d6),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a102_0x333262(0x1cf)};function requireFilePath(_0x53a151){const _0x59a1aa=_0x53a151['trim']();if(!_0x59a1aa)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x59a1aa;}const fileUpload={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1cb),'description':a102_0x333262(0x1bc),'risk':a102_0x333262(0x1ca),'flags':[FILE_FLAG],async 'dryRun'(_0x4be1d4){const _0x3c321a=a102_0x333262,_0x2aff65=requireDevelopmentUploadFile(_0x4be1d4[_0x3c321a(0x1c5)](_0x3c321a(0x1d0)),_0x3c321a(0x1b2));return{'method':_0x3c321a(0x1ba),'url':_0x3c321a(0x1bb),'body':{'appCode':_0x4be1d4[_0x3c321a(0x1b7)],'multipart':{'file':_0x2aff65}},'description':_0x3c321a(0x1b5)+_0x2aff65[_0x3c321a(0x1c8)]+_0x3c321a(0x1c9)+_0x4be1d4['appCode']};},async 'execute'(_0x2fc2bc){const _0x506773=a102_0x333262,_0x58f34b=requireDevelopmentUploadFile(_0x2fc2bc[_0x506773(0x1c5)](_0x506773(0x1d0)),_0x506773(0x1b2)),_0xf0ab29=await uploadDevelopmentFile(_0x2fc2bc[_0x506773(0x1b7)],_0x58f34b[_0x506773(0x1c8)]);return{'ok':!![],'data':_0xf0ab29,'message':_0xf0ab29[_0x506773(0x1c3)]?_0x506773(0x1c6)+_0xf0ab29[_0x506773(0x1c3)]+_0x506773(0x1bf):_0x506773(0x1d2)};}},fileQueryUrl={'service':a102_0x333262(0x1d0),'command':a102_0x333262(0x1b8),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a102_0x333262(0x1ca),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x296a91){const _0x3d3eea=a102_0x333262,_0x149243=requireFilePath(_0x296a91[_0x3d3eea(0x1c5)](_0x3d3eea(0x1c2))),_0x4d3c9c=await queryDevelopmentFileUrl(_0x149243,{'download':_0x296a91[_0x3d3eea(0x1d5)]('download'),'longTerm':_0x296a91[_0x3d3eea(0x1d5)](_0x3d3eea(0x1d3))});return{'ok':!![],'data':_0x4d3c9c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a103_0x3970(_0x793fe2,_0x345883){_0x793fe2=_0x793fe2-0xbb;const _0x411c28=a103_0x411c();let _0x3970bb=_0x411c28[_0x793fe2];return _0x3970bb;}const a103_0x52520b=a103_0x3970;function a103_0x411c(){const _0x3175a5=['723217iNjpmc','11804032YbbEDO','policyFilePath','34wCgSZo','current','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','10yrKuBW','appCode','read','119703SkyXRG','11041893mEVmki','30gdphoT','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','1072421wzNMQe','policyRelativePath','12928bbfZYx','Current\x20Instant\x20API\x20policy\x20revision\x20','2635tqtLkM','178297NAQAvR'];a103_0x411c=function(){return _0x3175a5;};return a103_0x411c();}(function(_0x54285f,_0x296167){const _0x5a735e=a103_0x3970,_0x179396=_0x54285f();while(!![]){try{const _0x4b3545=parseInt(_0x5a735e(0xc9))/0x1+parseInt(_0x5a735e(0xbf))/0x2*(parseInt(_0x5a735e(0xc5))/0x3)+-parseInt(_0x5a735e(0xcb))/0x4*(-parseInt(_0x5a735e(0xcd))/0x5)+-parseInt(_0x5a735e(0xc7))/0x6*(-parseInt(_0x5a735e(0xbb))/0x7)+-parseInt(_0x5a735e(0xbd))/0x8+parseInt(_0x5a735e(0xc6))/0x9*(-parseInt(_0x5a735e(0xc2))/0xa)+parseInt(_0x5a735e(0xbc))/0xb;if(_0x4b3545===_0x296167)break;else _0x179396['push'](_0x179396['shift']());}catch(_0x33d898){_0x179396['push'](_0x179396['shift']());}}}(a103_0x411c,0xe6a53));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a103_0x52520b(0xc0),'description':a103_0x52520b(0xc8),'risk':a103_0x52520b(0xc4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3cca05){const _0x545d3b=a103_0x52520b,_0x30b6c3=loadInstantApiPolicyLocalConfig(_0x3cca05[_0x545d3b(0xc3)]),_0x18352f=await getCurrentInstantApiPolicy(_0x3cca05[_0x545d3b(0xc3)]);return{'ok':!![],'data':{'appCode':_0x3cca05[_0x545d3b(0xc3)],'configured':_0x18352f!==null,'filePath':_0x30b6c3[_0x545d3b(0xbe)],'relativePath':_0x30b6c3[_0x545d3b(0xca)],'policy':projectCurrentPolicy(_0x18352f)},'message':_0x18352f?_0x545d3b(0xcc)+_0x18352f['revision']:_0x545d3b(0xc1)+_0x3cca05[_0x545d3b(0xc3)]};}};
1
+ const a103_0x500870=a103_0x35f1;function a103_0x5365(){const _0x51f957=['338290NAnPjG','appCode','policyRelativePath','read','589432PQQWun','14441856kLuAvc','3tNqGTN','31202bvYWUk','8315217jDutLv','1rpjsJE','21xYulPn','3070KzyFju','1261952vbmFAO','2068sERqAg','84fCqHQB','revision','current','policyFilePath'];a103_0x5365=function(){return _0x51f957;};return a103_0x5365();}(function(_0x349c76,_0x5d357d){const _0x40b8eb=a103_0x35f1,_0x4d6555=_0x349c76();while(!![]){try{const _0x647167=-parseInt(_0x40b8eb(0x146))/0x1*(-parseInt(_0x40b8eb(0x156))/0x2)+parseInt(_0x40b8eb(0x155))/0x3*(-parseInt(_0x40b8eb(0x153))/0x4)+parseInt(_0x40b8eb(0x14f))/0x5*(-parseInt(_0x40b8eb(0x14b))/0x6)+-parseInt(_0x40b8eb(0x147))/0x7*(parseInt(_0x40b8eb(0x149))/0x8)+parseInt(_0x40b8eb(0x145))/0x9+-parseInt(_0x40b8eb(0x148))/0xa*(-parseInt(_0x40b8eb(0x14a))/0xb)+parseInt(_0x40b8eb(0x154))/0xc;if(_0x647167===_0x5d357d)break;else _0x4d6555['push'](_0x4d6555['shift']());}catch(_0x1b8594){_0x4d6555['push'](_0x4d6555['shift']());}}}(a103_0x5365,0x9a854));function a103_0x35f1(_0x1f4d7d,_0x529aa2){_0x1f4d7d=_0x1f4d7d-0x145;const _0x5365ad=a103_0x5365();let _0x35f134=_0x5365ad[_0x1f4d7d];return _0x35f134;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a103_0x500870(0x14d),'description':'Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','risk':a103_0x500870(0x152),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3c6a82){const _0xa1e18=a103_0x500870,_0x1e8b59=loadInstantApiPolicyLocalConfig(_0x3c6a82[_0xa1e18(0x150)]),_0x512144=await getCurrentInstantApiPolicy(_0x3c6a82[_0xa1e18(0x150)]);return{'ok':!![],'data':{'appCode':_0x3c6a82[_0xa1e18(0x150)],'configured':_0x512144!==null,'filePath':_0x1e8b59[_0xa1e18(0x14e)],'relativePath':_0x1e8b59[_0xa1e18(0x151)],'policy':projectCurrentPolicy(_0x512144)},'message':_0x512144?'Current\x20Instant\x20API\x20policy\x20revision\x20'+_0x512144[_0xa1e18(0x14c)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3c6a82[_0xa1e18(0x150)]};}};
@@ -1 +1 @@
1
- (function(_0x250ced,_0x52b2cb){const _0x5a6fee=a104_0x2359,_0x5af8ac=_0x250ced();while(!![]){try{const _0x144bde=parseInt(_0x5a6fee(0x1c0))/0x1+-parseInt(_0x5a6fee(0x1c2))/0x2*(parseInt(_0x5a6fee(0x1c3))/0x3)+parseInt(_0x5a6fee(0x1bf))/0x4+-parseInt(_0x5a6fee(0x1c6))/0x5*(parseInt(_0x5a6fee(0x1c5))/0x6)+-parseInt(_0x5a6fee(0x1c1))/0x7*(-parseInt(_0x5a6fee(0x1be))/0x8)+parseInt(_0x5a6fee(0x1c7))/0x9+-parseInt(_0x5a6fee(0x1c4))/0xa;if(_0x144bde===_0x52b2cb)break;else _0x5af8ac['push'](_0x5af8ac['shift']());}catch(_0x548787){_0x5af8ac['push'](_0x5af8ac['shift']());}}}(a104_0x1e5c,0x1a433));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';function a104_0x2359(_0x7101a5,_0x11d2f7){_0x7101a5=_0x7101a5-0x1be;const _0x1e5c50=a104_0x1e5c();let _0x235973=_0x1e5c50[_0x7101a5];return _0x235973;}function a104_0x1e5c(){const _0x9a4d84=['142073xtfEEz','883561YAmrkd','36458zbMmpd','24QgVYtK','1921000mcyZly','42FPxFoD','10765tajbro','853587vziqEd','8zQpEEd','389740CxJLLT'];a104_0x1e5c=function(){return _0x9a4d84;};return a104_0x1e5c();}export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ (function(_0x17c977,_0x1c135f){const _0x69b5ac=a104_0x10ee,_0x52f4e8=_0x17c977();while(!![]){try{const _0x13f259=-parseInt(_0x69b5ac(0x1e7))/0x1+parseInt(_0x69b5ac(0x1e8))/0x2*(-parseInt(_0x69b5ac(0x1e6))/0x3)+parseInt(_0x69b5ac(0x1e5))/0x4*(parseInt(_0x69b5ac(0x1e2))/0x5)+parseInt(_0x69b5ac(0x1e0))/0x6+parseInt(_0x69b5ac(0x1e4))/0x7+parseInt(_0x69b5ac(0x1e1))/0x8+parseInt(_0x69b5ac(0x1e3))/0x9;if(_0x13f259===_0x1c135f)break;else _0x52f4e8['push'](_0x52f4e8['shift']());}catch(_0x595ffc){_0x52f4e8['push'](_0x52f4e8['shift']());}}}(a104_0x181a,0x8abcb));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a104_0x10ee(_0x30314a,_0x33211e){_0x30314a=_0x30314a-0x1e0;const _0x181ab6=a104_0x181a();let _0x10eee1=_0x181ab6[_0x30314a];return _0x10eee1;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';function a104_0x181a(){const _0x78cb91=['1076920HbuOYJ','343810waifFX','3375660ijfTFc','7002608kjWIUm','2105580Dwtiot','1707453PUwxwO','243789LgfOTV','8rGYRVg','15rLYRxH'];a104_0x181a=function(){return _0x78cb91;};return a104_0x181a();}import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- const a105_0x169ab3=a105_0x4f6f;(function(_0x4ce680,_0x3e47c4){const _0x50677d=a105_0x4f6f,_0x247aaf=_0x4ce680();while(!![]){try{const _0x100627=parseInt(_0x50677d(0x1af))/0x1+parseInt(_0x50677d(0x1aa))/0x2*(parseInt(_0x50677d(0x1a8))/0x3)+parseInt(_0x50677d(0x19a))/0x4*(parseInt(_0x50677d(0x1a1))/0x5)+parseInt(_0x50677d(0x1a9))/0x6+-parseInt(_0x50677d(0x1b1))/0x7*(parseInt(_0x50677d(0x19c))/0x8)+parseInt(_0x50677d(0x19e))/0x9+-parseInt(_0x50677d(0x1ac))/0xa*(parseInt(_0x50677d(0x1a0))/0xb);if(_0x100627===_0x3e47c4)break;else _0x247aaf['push'](_0x247aaf['shift']());}catch(_0x514076){_0x247aaf['push'](_0x247aaf['shift']());}}}(a105_0x1862,0x472f0));function a105_0x4f6f(_0x359d70,_0x276035){_0x359d70=_0x359d70-0x199;const _0x186211=a105_0x1862();let _0x4f6fdd=_0x186211[_0x359d70];return _0x4f6fdd;}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a105_0x1862(){const _0x404251=['instant-api-policy','84795gexcHu','3432186eDoGkw','26YDcfMS','bool','130UvZBtM','write','\x20Instant\x20API\x20policy\x20file\x20for\x20','481416DWHdUt','string','733712gvhvDK','init','Created','Kept','policyFilePath','force','36Grcipq','deny','16adqUzK','default-action','132822GMzTfr','Replaced','866393TsgFjE','49705NTDpQp','action','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','appCode','allow'];a105_0x1862=function(){return _0x404251;};return a105_0x1862();}export const instantApiPolicyInit={'service':a105_0x169ab3(0x1a7),'command':a105_0x169ab3(0x1b2),'description':a105_0x169ab3(0x1a4),'risk':a105_0x169ab3(0x1ad),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a105_0x169ab3(0x19d),'type':a105_0x169ab3(0x1b0),'enum':[a105_0x169ab3(0x1a6),a105_0x169ab3(0x19b)],'default':a105_0x169ab3(0x1a6),'description':a105_0x169ab3(0x1a3)},FORCE_FLAG],async 'validate'(_0x316018){requireForceConfirmation(_0x316018);},async 'execute'(_0xfec058){const _0x13b647=a105_0x169ab3;requireForceConfirmation(_0xfec058);const _0x2d9362=_0xfec058['str'](_0x13b647(0x19d))===_0x13b647(0x19b)?_0x13b647(0x19b):'allow',_0x4d79e3=loadInstantApiPolicyLocalConfig(_0xfec058['appCode']),_0x53f6a4=createDefaultInstantApiPolicyConfig(_0xfec058[_0x13b647(0x1a5)],_0x2d9362),_0x229739=await writeInstantApiPolicyConfigFile(_0x4d79e3,_0x53f6a4,{'force':_0xfec058[_0x13b647(0x1ab)](_0x13b647(0x199))}),_0x50678d={'created':_0x13b647(0x1b3),'overwritten':_0x13b647(0x19f),'unchanged':_0x13b647(0x1b4)}[_0x229739['action']];return{'ok':!![],'data':{'operation':_0x13b647(0x1b2),'selector':{'appCode':_0xfec058[_0x13b647(0x1a5)]},'filePath':_0x4d79e3[_0x13b647(0x1b5)],'relativePath':_0x4d79e3['policyRelativePath'],'action':_0x229739[_0x13b647(0x1a2)],'config':_0x53f6a4},'message':_0x50678d+_0x13b647(0x1ae)+_0xfec058[_0x13b647(0x1a5)]};}};
1
+ const a105_0x272ff3=a105_0x2502;(function(_0x598cf6,_0x3ba84e){const _0x2b399a=a105_0x2502,_0x554924=_0x598cf6();while(!![]){try{const _0x5a8d00=-parseInt(_0x2b399a(0x127))/0x1*(parseInt(_0x2b399a(0x125))/0x2)+-parseInt(_0x2b399a(0x11c))/0x3+-parseInt(_0x2b399a(0x118))/0x4*(-parseInt(_0x2b399a(0x11f))/0x5)+parseInt(_0x2b399a(0x12d))/0x6+-parseInt(_0x2b399a(0x12b))/0x7+-parseInt(_0x2b399a(0x11a))/0x8*(parseInt(_0x2b399a(0x12f))/0x9)+parseInt(_0x2b399a(0x128))/0xa;if(_0x5a8d00===_0x3ba84e)break;else _0x554924['push'](_0x554924['shift']());}catch(_0x3ffecd){_0x554924['push'](_0x554924['shift']());}}}(a105_0x109f,0x30367));function a105_0x109f(){const _0x125c1f=['init','default-action','action','write','force','20bToFdj','Created','16607tEBoZA','4814430zzaNZL','policyFilePath','deny','2307319enYZAj','Kept','1253538DvUUdO','str','9ptAFJc','705844ifyiYk','instant-api-policy','829688zMkpFn','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','739233BFLdRW','allow','appCode','10CRIcwE'];a105_0x109f=function(){return _0x125c1f;};return a105_0x109f();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a105_0x2502(_0x317741,_0x148f20){_0x317741=_0x317741-0x118;const _0x109f58=a105_0x109f();let _0x250287=_0x109f58[_0x317741];return _0x250287;}export const instantApiPolicyInit={'service':a105_0x272ff3(0x119),'command':a105_0x272ff3(0x120),'description':a105_0x272ff3(0x11b),'risk':a105_0x272ff3(0x123),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':'string','enum':['allow','deny'],'default':a105_0x272ff3(0x11d),'description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x5ecae2){requireForceConfirmation(_0x5ecae2);},async 'execute'(_0x50e5ed){const _0x196ca5=a105_0x272ff3;requireForceConfirmation(_0x50e5ed);const _0x49468d=_0x50e5ed[_0x196ca5(0x12e)](_0x196ca5(0x121))==='deny'?_0x196ca5(0x12a):'allow',_0x13ec89=loadInstantApiPolicyLocalConfig(_0x50e5ed['appCode']),_0x4de2c0=createDefaultInstantApiPolicyConfig(_0x50e5ed['appCode'],_0x49468d),_0x536ec4=await writeInstantApiPolicyConfigFile(_0x13ec89,_0x4de2c0,{'force':_0x50e5ed['bool'](_0x196ca5(0x124))}),_0x4480d7={'created':_0x196ca5(0x126),'overwritten':'Replaced','unchanged':_0x196ca5(0x12c)}[_0x536ec4[_0x196ca5(0x122)]];return{'ok':!![],'data':{'operation':_0x196ca5(0x120),'selector':{'appCode':_0x50e5ed['appCode']},'filePath':_0x13ec89[_0x196ca5(0x129)],'relativePath':_0x13ec89['policyRelativePath'],'action':_0x536ec4[_0x196ca5(0x122)],'config':_0x4de2c0},'message':_0x4480d7+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x50e5ed[_0x196ca5(0x11e)]};}};
@@ -1 +1 @@
1
- function a106_0x3659(_0x51ff7d,_0x4849c4){_0x51ff7d=_0x51ff7d-0xd4;const _0x572cb2=a106_0x572c();let _0x365925=_0x572cb2[_0x51ff7d];return _0x365925;}const a106_0x4fa8d6=a106_0x3659;(function(_0x17aedd,_0x350188){const _0xc94bfd=a106_0x3659,_0x103102=_0x17aedd();while(!![]){try{const _0x283525=-parseInt(_0xc94bfd(0xe7))/0x1+parseInt(_0xc94bfd(0xfa))/0x2*(parseInt(_0xc94bfd(0xdd))/0x3)+-parseInt(_0xc94bfd(0xeb))/0x4+parseInt(_0xc94bfd(0xea))/0x5*(-parseInt(_0xc94bfd(0xd6))/0x6)+-parseInt(_0xc94bfd(0xdc))/0x7+-parseInt(_0xc94bfd(0xdb))/0x8+-parseInt(_0xc94bfd(0xd5))/0x9*(-parseInt(_0xc94bfd(0xf1))/0xa);if(_0x283525===_0x350188)break;else _0x103102['push'](_0x103102['shift']());}catch(_0x230177){_0x103102['push'](_0x103102['shift']());}}}(a106_0x572c,0xd38ec));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a106_0x572c(){const _0x3bd73d=['policyFilePath','publish','390PnVuIb','expectedRevision','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','revision','planned','Published\x20Instant\x20API\x20policy\x20revision\x20','Inspect\x20with\x20`','high-risk-write','instant_api_policy_publish_outcome_unknown','3846xycKbr','verified','1207692nXJBMv','18mPZtfn','/publish','`;\x20do\x20not\x20resubmit\x20automatically.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','policyRelativePath','4088344zeAvOA','5574989YYEkMl','543FEazEt','defineProperty','cause','changeSummary','instant_api_policy_publish_verification_unavailable','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','appCode','local','configHash','normalizedConfig','1578462ySNPAE','config','POST','2135205EvEVjK','2191200MQCgwa','before','instant_api_policy_publish_verification_failed','validation'];a106_0x572c=function(){return _0x3bd73d;};return a106_0x572c();}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x1a1b2a){const _0x142104=a106_0x3659,{local:_0x572fbf,config:_0x4e12ec}=await readFixedPolicy(_0x1a1b2a),_0x488066=readChangeSummary(_0x1a1b2a),_0x22ff10=readExpectedRevision(_0x1a1b2a),[_0x5970f8,_0x4749b1]=await Promise['all']([getCurrentInstantApiPolicy(_0x1a1b2a['appCode']),validateInstantApiPolicy({'appCode':_0x1a1b2a[_0x142104(0xe3)],'config':_0x4e12ec})]);return assertExpectedRevision(_0x5970f8,_0x22ff10),{'local':_0x572fbf,'config':_0x4e12ec,'changeSummary':_0x488066,'expectedRevision':_0x22ff10,'before':_0x5970f8,'validation':_0x4749b1};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':a106_0x4fa8d6(0xf0),'description':a106_0x4fa8d6(0xe2),'risk':a106_0x4fa8d6(0xf8),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x164bb8){readChangeSummary(_0x164bb8),readExpectedRevision(_0x164bb8);},async 'dryRun'(_0x3ae9f7){const _0xe3478d=a106_0x4fa8d6,_0x55a68c=await preparePublish(_0x3ae9f7);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x3ae9f7[_0xe3478d(0xe3)]},'before':projectCurrentPolicy(_0x55a68c[_0xe3478d(0xec)]),'after':{'revision':_0x55a68c['before']?_0x55a68c[_0xe3478d(0xec)][_0xe3478d(0xf4)]+0x1:0x1,'configHash':_0x55a68c[_0xe3478d(0xee)]['configHash'],'config':_0x55a68c[_0xe3478d(0xee)][_0xe3478d(0xe6)]},'filePath':_0x55a68c['local']['policyFilePath'],'relativePath':_0x55a68c[_0xe3478d(0xe4)][_0xe3478d(0xda)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0xe3478d(0xd7)},'warnings':expectedRevisionWarnings(_0x55a68c[_0xe3478d(0xf2)]),'verification':{'status':_0xe3478d(0xf5),'expectedRevision':_0x55a68c['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0xe3478d(0xe9),'url':INSTANT_API_POLICY_BASE_PATH+_0xe3478d(0xd7)});},async 'execute'(_0x1f664c){const _0x4706f3=a106_0x4fa8d6,_0x388c17=await preparePublish(_0x1f664c);let _0x120896=![];try{await publishInstantApiPolicy({'appCode':_0x1f664c[_0x4706f3(0xe3)],'config':_0x388c17[_0x4706f3(0xe8)],..._0x388c17[_0x4706f3(0xe0)]?{'changeSummary':_0x388c17['changeSummary']}:{}});}catch(_0x5e5f7f){if(!isPlatformTransportFailure(_0x5e5f7f))throw _0x5e5f7f;_0x120896=!![];}let _0x469efd;try{_0x469efd=await getCurrentInstantApiPolicy(_0x1f664c[_0x4706f3(0xe3)]);}catch(_0x298079){const _0x2bed2e=instantApiPolicyError(_0x120896?_0x4706f3(0xf9):_0x4706f3(0xe1),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x4706f3(0xf7)+mutationLookupCommand()+_0x4706f3(0xd8));Object[_0x4706f3(0xde)](_0x2bed2e,_0x4706f3(0xdf),{'value':_0x298079,'enumerable':![]});throw _0x2bed2e;}const _0x449945=_0x469efd&&(_0x388c17['before']===null||_0x469efd['revision']>_0x388c17[_0x4706f3(0xec)][_0x4706f3(0xf4)]),_0x57146f=_0x469efd?.[_0x4706f3(0xe5)]===_0x388c17[_0x4706f3(0xee)][_0x4706f3(0xe5)];if(!_0x469efd||!_0x449945||!_0x57146f)throw instantApiPolicyError(_0x120896?_0x4706f3(0xf9):_0x4706f3(0xed),_0x4706f3(0xd9),_0x4706f3(0xf7)+mutationLookupCommand()+_0x4706f3(0xd8));const _0x5bd624=[...expectedRevisionWarnings(_0x388c17[_0x4706f3(0xf2)]),RUNTIME_CACHE_WARNING];return _0x120896&&_0x5bd624['push'](_0x4706f3(0xf3)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x1f664c[_0x4706f3(0xe3)]},'before':projectCurrentPolicy(_0x388c17['before']),'after':projectCurrentPolicy(_0x469efd),'filePath':_0x388c17[_0x4706f3(0xe4)][_0x4706f3(0xef)],'relativePath':_0x388c17[_0x4706f3(0xe4)]['policyRelativePath'],'dryRun':![],'backend':{'method':_0x4706f3(0xe9),'path':INSTANT_API_POLICY_BASE_PATH+_0x4706f3(0xd7)},'warnings':_0x5bd624,'verification':{'status':_0x4706f3(0xd4),'recoveredAfterUnknownResponse':_0x120896,'expectedRevision':_0x388c17[_0x4706f3(0xf2)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x4706f3(0xf6)+_0x469efd[_0x4706f3(0xf4)]};}};
1
+ const a106_0x2985e3=a106_0x11be;(function(_0x40409d,_0x4f3d05){const _0x573492=a106_0x11be,_0x5688ee=_0x40409d();while(!![]){try{const _0x21030a=parseInt(_0x573492(0x15a))/0x1*(-parseInt(_0x573492(0x14e))/0x2)+-parseInt(_0x573492(0x168))/0x3*(parseInt(_0x573492(0x16e))/0x4)+-parseInt(_0x573492(0x16f))/0x5+parseInt(_0x573492(0x162))/0x6+-parseInt(_0x573492(0x154))/0x7*(-parseInt(_0x573492(0x156))/0x8)+parseInt(_0x573492(0x157))/0x9*(parseInt(_0x573492(0x15d))/0xa)+parseInt(_0x573492(0x165))/0xb*(parseInt(_0x573492(0x15f))/0xc);if(_0x21030a===_0x4f3d05)break;else _0x5688ee['push'](_0x5688ee['shift']());}catch(_0xd23822){_0x5688ee['push'](_0x5688ee['shift']());}}}(a106_0x5391,0x4b04e));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a106_0x11be(_0x5e894a,_0x1d1690){_0x5e894a=_0x5e894a-0x14d;const _0x539121=a106_0x5391();let _0x11be6a=_0x539121[_0x5e894a];return _0x11be6a;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a106_0x5391(){const _0x34bc4a=['Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','expectedRevision','880019zADrLG','instant_api_policy_publish_verification_failed','8RfDipA','1338462kjoMdo','before','all','66029sksOLF','defineProperty','push','10xuzkfb','POST','120PxvpFy','appCode','publish','3016482YmQhrR','config','cause','147191cAyqsO','/publish','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','84792aHwFmw','verified','policyRelativePath','instant_api_policy_publish_verification_unavailable','validation','policyFilePath','40NJBWOj','1275225JvQtsl','high-risk-write','instant_api_policy_publish_outcome_unknown','local','changeSummary','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','normalizedConfig','2pqcdum','`;\x20do\x20not\x20resubmit\x20automatically.','configHash','revision'];a106_0x5391=function(){return _0x34bc4a;};return a106_0x5391();}async function preparePublish(_0x979ef2){const _0x54f1d3=a106_0x11be,{local:_0x14c5d6,config:_0x47b998}=await readFixedPolicy(_0x979ef2),_0x3bb21a=readChangeSummary(_0x979ef2),_0x4c7707=readExpectedRevision(_0x979ef2),[_0x382b11,_0x4f3dcb]=await Promise[_0x54f1d3(0x159)]([getCurrentInstantApiPolicy(_0x979ef2[_0x54f1d3(0x160)]),validateInstantApiPolicy({'appCode':_0x979ef2[_0x54f1d3(0x160)],'config':_0x47b998})]);return assertExpectedRevision(_0x382b11,_0x4c7707),{'local':_0x14c5d6,'config':_0x47b998,'changeSummary':_0x3bb21a,'expectedRevision':_0x4c7707,'before':_0x382b11,'validation':_0x4f3dcb};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':'publish','description':a106_0x2985e3(0x167),'risk':a106_0x2985e3(0x170),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x2985e3(0x152),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x402636){readChangeSummary(_0x402636),readExpectedRevision(_0x402636);},async 'dryRun'(_0x1110f7){const _0x37e008=a106_0x2985e3,_0x373b2a=await preparePublish(_0x1110f7);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x1110f7[_0x37e008(0x160)]},'before':projectCurrentPolicy(_0x373b2a['before']),'after':{'revision':_0x373b2a[_0x37e008(0x158)]?_0x373b2a['before'][_0x37e008(0x151)]+0x1:0x1,'configHash':_0x373b2a['validation'][_0x37e008(0x150)],'config':_0x373b2a[_0x37e008(0x16c)][_0x37e008(0x14d)]},'filePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16d)],'relativePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16a)],'dryRun':!![],'backend':{'method':_0x37e008(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)},'warnings':expectedRevisionWarnings(_0x373b2a[_0x37e008(0x153)]),'verification':{'status':'planned','expectedRevision':_0x373b2a['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x37e008(0x15e),'url':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)});},async 'execute'(_0x9328e7){const _0x4a2a9b=a106_0x2985e3,_0x4a1404=await preparePublish(_0x9328e7);let _0x25b90c=![];try{await publishInstantApiPolicy({'appCode':_0x9328e7[_0x4a2a9b(0x160)],'config':_0x4a1404[_0x4a2a9b(0x163)],..._0x4a1404[_0x4a2a9b(0x173)]?{'changeSummary':_0x4a1404[_0x4a2a9b(0x173)]}:{}});}catch(_0x48f956){if(!isPlatformTransportFailure(_0x48f956))throw _0x48f956;_0x25b90c=!![];}let _0x1cf57a;try{_0x1cf57a=await getCurrentInstantApiPolicy(_0x9328e7[_0x4a2a9b(0x160)]);}catch(_0x4b509f){const _0x10bec6=instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x16b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x4a2a9b(0x15b)](_0x10bec6,_0x4a2a9b(0x164),{'value':_0x4b509f,'enumerable':![]});throw _0x10bec6;}const _0x20723a=_0x1cf57a&&(_0x4a1404['before']===null||_0x1cf57a[_0x4a2a9b(0x151)]>_0x4a1404['before']['revision']),_0x6b37db=_0x1cf57a?.['configHash']===_0x4a1404['validation'][_0x4a2a9b(0x150)];if(!_0x1cf57a||!_0x20723a||!_0x6b37db)throw instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x155),_0x4a2a9b(0x174),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x4a2a9b(0x14f));const _0x584f8e=[...expectedRevisionWarnings(_0x4a1404[_0x4a2a9b(0x153)]),RUNTIME_CACHE_WARNING];return _0x25b90c&&_0x584f8e[_0x4a2a9b(0x15c)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4a2a9b(0x161),'selector':{'appCode':_0x9328e7[_0x4a2a9b(0x160)]},'before':projectCurrentPolicy(_0x4a1404['before']),'after':projectCurrentPolicy(_0x1cf57a),'filePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16d)],'relativePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16a)],'dryRun':![],'backend':{'method':_0x4a2a9b(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a2a9b(0x166)},'warnings':_0x584f8e,'verification':{'status':_0x4a2a9b(0x169),'recoveredAfterUnknownResponse':_0x25b90c,'expectedRevision':_0x4a1404[_0x4a2a9b(0x153)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0x1cf57a[_0x4a2a9b(0x151)]};}};
@@ -1 +1 @@
1
- const a107_0x4ebdd8=a107_0x82fd;function a107_0x82fd(_0x3f4e53,_0x5d0c8a){_0x3f4e53=_0x3f4e53-0xf8;const _0x2e83d2=a107_0x2e83();let _0x82fd2=_0x2e83d2[_0x3f4e53];return _0x82fd2;}(function(_0x396c96,_0x155eac){const _0x5436c7=a107_0x82fd,_0x313ca6=_0x396c96();while(!![]){try{const _0x347569=parseInt(_0x5436c7(0x10a))/0x1*(-parseInt(_0x5436c7(0xf9))/0x2)+parseInt(_0x5436c7(0x109))/0x3*(parseInt(_0x5436c7(0x101))/0x4)+-parseInt(_0x5436c7(0x10d))/0x5+-parseInt(_0x5436c7(0x10e))/0x6*(parseInt(_0x5436c7(0x100))/0x7)+-parseInt(_0x5436c7(0x10c))/0x8+parseInt(_0x5436c7(0x106))/0x9+-parseInt(_0x5436c7(0x107))/0xa*(-parseInt(_0x5436c7(0x110))/0xb);if(_0x347569===_0x155eac)break;else _0x313ca6['push'](_0x313ca6['shift']());}catch(_0x3555db){_0x313ca6['push'](_0x313ca6['shift']());}}}(a107_0x2e83,0x7710a));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x2e83(){const _0x40e4d3=['7HEFYmh','2890712zupkEF','configHash','action','\x20Instant\x20API\x20policy\x20revision\x20','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','981945oMakLo','3470PSLKns','bool','3nUZflr','4902zsewOC','force','3697728vOcUVl','1393335eHOXui','2775666DwgJuh','policyRelativePath','35013QFBaTr','write','100TgowsN','config','pull','appCode','Kept','instant-api-policy','revision'];a107_0x2e83=function(){return _0x40e4d3;};return a107_0x2e83();}export const instantApiPolicyPull={'service':a107_0x4ebdd8(0xfe),'command':a107_0x4ebdd8(0xfb),'description':a107_0x4ebdd8(0x105),'risk':a107_0x4ebdd8(0xf8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x247781){requireForceConfirmation(_0x247781);},async 'execute'(_0x586b33){const _0x191bf6=a107_0x4ebdd8;requireForceConfirmation(_0x586b33);const _0x3e1c92=await getCurrentInstantApiPolicy(_0x586b33['appCode']);if(!_0x3e1c92)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x586b33[_0x191bf6(0xfc)]+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x1fde3f=loadInstantApiPolicyLocalConfig(_0x586b33[_0x191bf6(0xfc)]),_0x21eb48=await writeInstantApiPolicyConfigFile(_0x1fde3f,_0x3e1c92[_0x191bf6(0xfa)],{'force':_0x586b33[_0x191bf6(0x108)](_0x191bf6(0x10b))});return{'ok':!![],'data':{'operation':_0x191bf6(0xfb),'selector':{'appCode':_0x586b33[_0x191bf6(0xfc)],'revision':_0x3e1c92[_0x191bf6(0xff)]},'filePath':_0x1fde3f['policyFilePath'],'relativePath':_0x1fde3f[_0x191bf6(0x10f)],'action':_0x21eb48[_0x191bf6(0x103)],'configHash':_0x3e1c92[_0x191bf6(0x102)]},'message':(_0x21eb48[_0x191bf6(0x103)]==='unchanged'?_0x191bf6(0xfd):'Pulled')+_0x191bf6(0x104)+_0x3e1c92[_0x191bf6(0xff)]};}};
1
+ const a107_0x5d87c4=a107_0x41ce;(function(_0x2accbd,_0x5386e8){const _0x1ff567=a107_0x41ce,_0x16d25f=_0x2accbd();while(!![]){try{const _0x3c3af8=parseInt(_0x1ff567(0x116))/0x1+-parseInt(_0x1ff567(0x107))/0x2*(parseInt(_0x1ff567(0x10f))/0x3)+parseInt(_0x1ff567(0x118))/0x4+-parseInt(_0x1ff567(0x105))/0x5+parseInt(_0x1ff567(0x113))/0x6*(-parseInt(_0x1ff567(0x10a))/0x7)+parseInt(_0x1ff567(0x112))/0x8*(-parseInt(_0x1ff567(0x10b))/0x9)+parseInt(_0x1ff567(0x11a))/0xa;if(_0x3c3af8===_0x5386e8)break;else _0x16d25f['push'](_0x16d25f['shift']());}catch(_0x732c78){_0x16d25f['push'](_0x16d25f['shift']());}}}(a107_0x1541,0xe3f30));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x1541(){const _0x650712=['config','19228220oPSBuj','revision','1451515yjGRDA','policyRelativePath','278zpUzDi','instant_api_policy_not_configured','pull','34559OEJrls','2555685YIJint','appCode','force','policyFilePath','15759vsTpOK','unchanged','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','8wqLriw','1386EoImYa','action','Pulled','1046763YHNIgT','Kept','1635908PkIBlA'];a107_0x1541=function(){return _0x650712;};return a107_0x1541();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x41ce(_0x1aea4d,_0x10e6ed){_0x1aea4d=_0x1aea4d-0x104;const _0x1541a9=a107_0x1541();let _0x41ce66=_0x1541a9[_0x1aea4d];return _0x41ce66;}export const instantApiPolicyPull={'service':'instant-api-policy','command':a107_0x5d87c4(0x109),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x140e2d){requireForceConfirmation(_0x140e2d);},async 'execute'(_0x3d0af9){const _0x1fcd5c=a107_0x5d87c4;requireForceConfirmation(_0x3d0af9);const _0x51e62f=await getCurrentInstantApiPolicy(_0x3d0af9['appCode']);if(!_0x51e62f)throw instantApiPolicyError(_0x1fcd5c(0x108),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3d0af9[_0x1fcd5c(0x10c)]+'.',_0x1fcd5c(0x111));const _0x4c52da=loadInstantApiPolicyLocalConfig(_0x3d0af9['appCode']),_0x3f5d1b=await writeInstantApiPolicyConfigFile(_0x4c52da,_0x51e62f[_0x1fcd5c(0x119)],{'force':_0x3d0af9['bool'](_0x1fcd5c(0x10d))});return{'ok':!![],'data':{'operation':_0x1fcd5c(0x109),'selector':{'appCode':_0x3d0af9['appCode'],'revision':_0x51e62f['revision']},'filePath':_0x4c52da[_0x1fcd5c(0x10e)],'relativePath':_0x4c52da[_0x1fcd5c(0x106)],'action':_0x3f5d1b[_0x1fcd5c(0x114)],'configHash':_0x51e62f['configHash']},'message':(_0x3f5d1b[_0x1fcd5c(0x114)]===_0x1fcd5c(0x110)?_0x1fcd5c(0x117):_0x1fcd5c(0x115))+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x51e62f[_0x1fcd5c(0x104)]};}};
@@ -1 +1 @@
1
- const a108_0x1b7374=a108_0x10d4;function a108_0x10d4(_0x2f23ab,_0x3e8292){_0x2f23ab=_0x2f23ab-0x1a1;const _0xdd5ef9=a108_0xdd5e();let _0x10d4c7=_0xdd5ef9[_0x2f23ab];return _0x10d4c7;}(function(_0x56d5e5,_0xfcfd5d){const _0x2f0d48=a108_0x10d4,_0x4c6374=_0x56d5e5();while(!![]){try{const _0x47863d=-parseInt(_0x2f0d48(0x1a8))/0x1*(-parseInt(_0x2f0d48(0x1a6))/0x2)+-parseInt(_0x2f0d48(0x1b0))/0x3+-parseInt(_0x2f0d48(0x1ae))/0x4+parseInt(_0x2f0d48(0x1aa))/0x5+parseInt(_0x2f0d48(0x1ab))/0x6*(parseInt(_0x2f0d48(0x1a4))/0x7)+parseInt(_0x2f0d48(0x1ac))/0x8*(parseInt(_0x2f0d48(0x1ad))/0x9)+-parseInt(_0x2f0d48(0x1a9))/0xa;if(_0x47863d===_0xfcfd5d)break;else _0x4c6374['push'](_0x4c6374['shift']());}catch(_0x30d25b){_0x4c6374['push'](_0x4c6374['shift']());}}}(a108_0xdd5e,0x92840));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a108_0x1b7374(0x1a5),'command':a108_0x1b7374(0x1a1),'description':a108_0x1b7374(0x1a7),'risk':a108_0x1b7374(0x1a2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x243433){readRevision(_0x243433);},async 'execute'(_0x1f7562){const _0x2bd7d3=a108_0x1b7374,_0x4b4e66=readRevision(_0x1f7562),_0x79ceb6=await getInstantApiPolicyRevision(_0x1f7562[_0x2bd7d3(0x1a3)],_0x4b4e66);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x79ceb6)},'message':_0x2bd7d3(0x1af)+_0x4b4e66};}};function a108_0xdd5e(){const _0x28eaa1=['343679pxBlCd','instant-api-policy','1430846uikTdd','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','1KlqyQj','3447710AIkjvx','925640MvrOgl','72eqOXaK','26984ywVSBg','3177nPycqV','2729708LgQCky','Loaded\x20Instant\x20API\x20policy\x20revision\x20','3159174VaTLyc','revision','read','appCode'];a108_0xdd5e=function(){return _0x28eaa1;};return a108_0xdd5e();}
1
+ const a108_0x24c9a6=a108_0x567c;(function(_0x41ff54,_0xde7970){const _0xe9c97=a108_0x567c,_0x15eb79=_0x41ff54();while(!![]){try{const _0x5aabaf=-parseInt(_0xe9c97(0xd6))/0x1+-parseInt(_0xe9c97(0xcb))/0x2+parseInt(_0xe9c97(0xcd))/0x3*(parseInt(_0xe9c97(0xd7))/0x4)+parseInt(_0xe9c97(0xcc))/0x5+parseInt(_0xe9c97(0xce))/0x6+parseInt(_0xe9c97(0xd3))/0x7+parseInt(_0xe9c97(0xd8))/0x8*(-parseInt(_0xe9c97(0xcf))/0x9);if(_0x5aabaf===_0xde7970)break;else _0x15eb79['push'](_0x15eb79['shift']());}catch(_0x5d1cb7){_0x15eb79['push'](_0x15eb79['shift']());}}}(a108_0x1e7f,0x9d127));import{getInstantApiPolicyRevision}from'../../core/api-client.js';function a108_0x567c(_0x1446b9,_0x2d62ef){_0x1446b9=_0x1446b9-0xcb;const _0x1e7f66=a108_0x1e7f();let _0x567c4f=_0x1e7f66[_0x1446b9];return _0x567c4f;}import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a108_0x24c9a6(0xd5),'command':a108_0x24c9a6(0xd0),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a108_0x24c9a6(0xd1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0xbbc932){readRevision(_0xbbc932);},async 'execute'(_0x1c9be8){const _0xd8645e=a108_0x24c9a6,_0x4643e0=readRevision(_0x1c9be8),_0xddc06f=await getInstantApiPolicyRevision(_0x1c9be8[_0xd8645e(0xd4)],_0x4643e0);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0xddc06f)},'message':_0xd8645e(0xd2)+_0x4643e0};}};function a108_0x1e7f(){const _0xdd3b2a=['3801410ZBaacz','858BeoUoV','6237018mTrNIS','5770566XlNoqK','revision','read','Loaded\x20Instant\x20API\x20policy\x20revision\x20','7188958kCzvWm','appCode','instant-api-policy','983548enbaCS','6992XEeWtZ','8WLDdPe','2117236XDnyvL'];a108_0x1e7f=function(){return _0xdd3b2a;};return a108_0x1e7f();}
@@ -1 +1 @@
1
- const a109_0x1b7b0b=a109_0x357b;function a109_0x1863(){const _0x9bc6b=['length','\x20Instant\x20API\x20policy\x20revision(s)','Found\x20','read','4449214iPzUFH','2UNfzVZ','310bVMSVZ','9SvSLaq','appCode','935070SEFKzo','12012768eGcqhp','969468Luyvlq','18331350dAuWFo','2285493yzxxvg','86216zepKSQ'];a109_0x1863=function(){return _0x9bc6b;};return a109_0x1863();}(function(_0x5c8168,_0x1962f4){const _0x5ed62a=a109_0x357b,_0x1a8d90=_0x5c8168();while(!![]){try{const _0x24a7b2=-parseInt(_0x5ed62a(0x1de))/0x1+parseInt(_0x5ed62a(0x1da))/0x2*(-parseInt(_0x5ed62a(0x1d3))/0x3)+-parseInt(_0x5ed62a(0x1d4))/0x4*(parseInt(_0x5ed62a(0x1db))/0x5)+-parseInt(_0x5ed62a(0x1e0))/0x6+parseInt(_0x5ed62a(0x1d9))/0x7+parseInt(_0x5ed62a(0x1df))/0x8+-parseInt(_0x5ed62a(0x1dc))/0x9*(-parseInt(_0x5ed62a(0x1e1))/0xa);if(_0x24a7b2===_0x1962f4)break;else _0x1a8d90['push'](_0x1a8d90['shift']());}catch(_0xbc5055){_0x1a8d90['push'](_0x1a8d90['shift']());}}}(a109_0x1863,0xbd552));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a109_0x357b(_0x27f002,_0x84fc2d){_0x27f002=_0x27f002-0x1d3;const _0x18632a=a109_0x1863();let _0x357b30=_0x18632a[_0x27f002];return _0x357b30;}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':'revisions','description':'List\x20immutable\x20Instant\x20API\x20policy\x20revisions','risk':a109_0x1b7b0b(0x1d8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x94f12f){const _0x1b4861=a109_0x1b7b0b,_0x9d0df7=await listInstantApiPolicyRevisions(_0x94f12f[_0x1b4861(0x1dd)]);return{'ok':!![],'data':{'appCode':_0x94f12f[_0x1b4861(0x1dd)],'total':_0x9d0df7[_0x1b4861(0x1d5)],'revisions':_0x9d0df7['map'](projectRevisionSummary)},'message':_0x1b4861(0x1d7)+_0x9d0df7[_0x1b4861(0x1d5)]+_0x1b4861(0x1d6)};}};
1
+ const a109_0x35eba9=a109_0x4613;(function(_0x2cfaf9,_0x58627){const _0x62422c=a109_0x4613,_0x2dcf24=_0x2cfaf9();while(!![]){try{const _0x4b17eb=parseInt(_0x62422c(0x115))/0x1+parseInt(_0x62422c(0x112))/0x2+-parseInt(_0x62422c(0x11c))/0x3+-parseInt(_0x62422c(0x118))/0x4*(-parseInt(_0x62422c(0x11f))/0x5)+parseInt(_0x62422c(0x11b))/0x6*(parseInt(_0x62422c(0x110))/0x7)+parseInt(_0x62422c(0x117))/0x8*(-parseInt(_0x62422c(0x10f))/0x9)+-parseInt(_0x62422c(0x111))/0xa;if(_0x4b17eb===_0x58627)break;else _0x2dcf24['push'](_0x2dcf24['shift']());}catch(_0x260e7b){_0x2dcf24['push'](_0x2dcf24['shift']());}}}(a109_0x19c6,0xb8018));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a109_0x4613(_0xcf114f,_0x2d3074){_0xcf114f=_0xcf114f-0x10f;const _0x19c64e=a109_0x19c6();let _0x46136c=_0x19c64e[_0xcf114f];return _0x46136c;}function a109_0x19c6(){const _0x9b7281=['length','756rQDNGz','343050YYpyNw','read','appCode','3665MlALQn','2385JnaHqr','78036DduqnL','16500580TBnRpz','468810wDWHoE','Found\x20','revisions','1398706xpIxLk','map','23632yDrESF','1436cPRoPW','List\x20immutable\x20Instant\x20API\x20policy\x20revisions'];a109_0x19c6=function(){return _0x9b7281;};return a109_0x19c6();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':a109_0x35eba9(0x114),'description':a109_0x35eba9(0x119),'risk':a109_0x35eba9(0x11d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x4b1b00){const _0x300905=a109_0x35eba9,_0x19494c=await listInstantApiPolicyRevisions(_0x4b1b00[_0x300905(0x11e)]);return{'ok':!![],'data':{'appCode':_0x4b1b00[_0x300905(0x11e)],'total':_0x19494c['length'],'revisions':_0x19494c[_0x300905(0x116)](projectRevisionSummary)},'message':_0x300905(0x113)+_0x19494c[_0x300905(0x11a)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
@@ -1 +1 @@
1
- const a110_0x25eebd=a110_0x147e;(function(_0xd971a5,_0xe70f4a){const _0x20c943=a110_0x147e,_0x6fe0e1=_0xd971a5();while(!![]){try{const _0x50cb1b=-parseInt(_0x20c943(0xda))/0x1+parseInt(_0x20c943(0xc0))/0x2+-parseInt(_0x20c943(0xc4))/0x3+-parseInt(_0x20c943(0xc1))/0x4+-parseInt(_0x20c943(0xd0))/0x5*(-parseInt(_0x20c943(0xb7))/0x6)+-parseInt(_0x20c943(0xd3))/0x7+-parseInt(_0x20c943(0xd6))/0x8*(-parseInt(_0x20c943(0xca))/0x9);if(_0x50cb1b===_0xe70f4a)break;else _0x6fe0e1['push'](_0x6fe0e1['shift']());}catch(_0x8a5f9c){_0x6fe0e1['push'](_0x6fe0e1['shift']());}}}(a110_0x220a,0xd90e0));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a110_0x147e(_0x517e1b,_0x1ee941){_0x517e1b=_0x517e1b-0xb5;const _0x220a28=a110_0x220a();let _0x147ea3=_0x220a28[_0x517e1b];return _0x147ea3;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x3be281){const _0x7c7b2a=a110_0x147e,_0x3e46a0=readRevision(_0x3be281),_0x3047ed=readChangeSummary(_0x3be281),_0x255fba=readExpectedRevision(_0x3be281),[_0xb993ee,_0x2253e6]=await Promise[_0x7c7b2a(0xc8)]([getCurrentInstantApiPolicy(_0x3be281[_0x7c7b2a(0xd4)]),getInstantApiPolicyRevision(_0x3be281[_0x7c7b2a(0xd4)],_0x3e46a0)]);if(!_0xb993ee)throw instantApiPolicyError(_0x7c7b2a(0xcb),_0x7c7b2a(0xcd)+_0x3be281[_0x7c7b2a(0xd4)]+'.');return assertExpectedRevision(_0xb993ee,_0x255fba),{'revision':_0x3e46a0,'changeSummary':_0x3047ed,'expectedRevision':_0x255fba,'before':_0xb993ee,'target':_0x2253e6};}function a110_0x220a(){const _0x26fc58=['expectedRevision','15193168CfSBfX','instant_api_policy_rollback_verification_failed','configHash','rollback','1671276UHPvAD','Inspect\x20with\x20`','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','defineProperty','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','48rSRBLb','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','push','changeSummary','cause','before','high-risk-write','instant-api-policy','`;\x20do\x20not\x20resubmit\x20automatically.','2673326ceyOjt','2268844EJeUqM','target','planned','1930815RbCfsc','revision','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant_api_policy_rollback_outcome_unknown','all','/rollback','9XPLrFf','instant_api_policy_not_configured','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','verified','instant_api_policy_rollback_verification_unavailable','608155ShiPMp','POST','Rolled\x20Instant\x20API\x20policy\x20revision\x20','3063963XVLGJn','appCode'];a110_0x220a=function(){return _0x26fc58;};return a110_0x220a();}export const instantApiPolicyRollback={'service':a110_0x25eebd(0xbe),'command':'rollback','description':a110_0x25eebd(0xdc),'risk':a110_0x25eebd(0xbd),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a110_0x25eebd(0xb8),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2adb9b){readRevision(_0x2adb9b),readChangeSummary(_0x2adb9b),readExpectedRevision(_0x2adb9b);},async 'dryRun'(_0x157b87){const _0x43eda3=a110_0x25eebd,_0x238333=await prepareRollback(_0x157b87);return asDryRunResult({'operation':_0x43eda3(0xd9),'selector':{'appCode':_0x157b87[_0x43eda3(0xd4)],'sourceRevision':_0x238333[_0x43eda3(0xc5)]},'before':projectCurrentPolicy(_0x238333[_0x43eda3(0xbc)]),'after':{'revision':_0x238333[_0x43eda3(0xbc)]['revision']+0x1,'sourceRevision':projectRevisionDetail(_0x238333[_0x43eda3(0xc2)])},'dryRun':!![],'backend':{'method':_0x43eda3(0xd1),'path':INSTANT_API_POLICY_BASE_PATH+_0x43eda3(0xc9)},'warnings':expectedRevisionWarnings(_0x238333[_0x43eda3(0xd5)]),'verification':{'status':_0x43eda3(0xc3),'expectedRevision':_0x238333[_0x43eda3(0xd5)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x43eda3(0xd1),'url':INSTANT_API_POLICY_BASE_PATH+_0x43eda3(0xc9)});},async 'execute'(_0x45095e){const _0x27512d=a110_0x25eebd,_0x47bffa=await prepareRollback(_0x45095e);let _0x13379b=![];try{await rollbackInstantApiPolicy({'appCode':_0x45095e[_0x27512d(0xd4)],'revision':_0x47bffa[_0x27512d(0xc5)],..._0x47bffa['changeSummary']?{'changeSummary':_0x47bffa[_0x27512d(0xba)]}:{}});}catch(_0x590eab){if(!isPlatformTransportFailure(_0x590eab))throw _0x590eab;_0x13379b=!![];}let _0x49693c;try{_0x49693c=await getCurrentInstantApiPolicy(_0x45095e['appCode']);}catch(_0x310a68){const _0x2a650e=instantApiPolicyError(_0x13379b?_0x27512d(0xc7):_0x27512d(0xcf),_0x27512d(0xcc),_0x27512d(0xdb)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x27512d(0xb5)](_0x2a650e,_0x27512d(0xbb),{'value':_0x310a68,'enumerable':![]});throw _0x2a650e;}const _0x2c4dba=_0x49693c&&_0x49693c['revision']>_0x47bffa['before'][_0x27512d(0xc5)],_0x18ebbe=_0x49693c?.['configHash']===_0x47bffa[_0x27512d(0xc2)][_0x27512d(0xd8)];if(!_0x49693c||!_0x2c4dba||!_0x18ebbe)throw instantApiPolicyError(_0x13379b?_0x27512d(0xc7):_0x27512d(0xd7),_0x27512d(0xb6),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x27512d(0xbf));const _0x5b8f6d=[...expectedRevisionWarnings(_0x47bffa[_0x27512d(0xd5)]),RUNTIME_CACHE_WARNING];return _0x13379b&&_0x5b8f6d[_0x27512d(0xb9)](_0x27512d(0xc6)),{'ok':!![],'data':{'operation':_0x27512d(0xd9),'selector':{'appCode':_0x45095e[_0x27512d(0xd4)],'sourceRevision':_0x47bffa[_0x27512d(0xc5)]},'before':projectCurrentPolicy(_0x47bffa['before']),'after':projectCurrentPolicy(_0x49693c),'dryRun':![],'backend':{'method':_0x27512d(0xd1),'path':INSTANT_API_POLICY_BASE_PATH+_0x27512d(0xc9)},'warnings':_0x5b8f6d,'verification':{'status':_0x27512d(0xce),'recoveredAfterUnknownResponse':_0x13379b,'expectedRevision':_0x47bffa['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x27512d(0xd2)+_0x47bffa[_0x27512d(0xc5)]+'\x20forward\x20to\x20revision\x20'+_0x49693c[_0x27512d(0xc5)]};}};
1
+ const a110_0x5c5af5=a110_0x5a8b;function a110_0x5a8b(_0x22ba74,_0x215246){_0x22ba74=_0x22ba74-0x132;const _0x44a019=a110_0x44a0();let _0x5a8b16=_0x44a019[_0x22ba74];return _0x5a8b16;}(function(_0x4ea38c,_0x33ac26){const _0x5e2b11=a110_0x5a8b,_0x25c4d7=_0x4ea38c();while(!![]){try{const _0x28bf81=parseInt(_0x5e2b11(0x149))/0x1+-parseInt(_0x5e2b11(0x134))/0x2+-parseInt(_0x5e2b11(0x13c))/0x3+-parseInt(_0x5e2b11(0x153))/0x4+-parseInt(_0x5e2b11(0x13a))/0x5+parseInt(_0x5e2b11(0x140))/0x6+parseInt(_0x5e2b11(0x14d))/0x7*(parseInt(_0x5e2b11(0x14e))/0x8);if(_0x28bf81===_0x33ac26)break;else _0x25c4d7['push'](_0x25c4d7['shift']());}catch(_0x6b3655){_0x25c4d7['push'](_0x25c4d7['shift']());}}}(a110_0x44a0,0xc1059));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a110_0x44a0(){const _0x55e16f=['Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','/rollback','cause','1140426MQiAvM','defineProperty','instant_api_policy_rollback_verification_unavailable','POST','7749lxoKHg','10864ZsNaae','appCode','before','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_rollback_outcome_unknown','1895064MYfXJO','instant-api-policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','1997682AIRvHr','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','configHash','revision','changeSummary','target','2541460nbxMNZ','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','4083561SoaWAg','expectedRevision','instant_api_policy_not_configured','rollback','8933826VGfDhI','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','instant_api_policy_rollback_verification_failed','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','high-risk-write'];a110_0x44a0=function(){return _0x55e16f;};return a110_0x44a0();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x3530ea){const _0x525e91=a110_0x5a8b,_0x20c780=readRevision(_0x3530ea),_0x310b78=readChangeSummary(_0x3530ea),_0x18d458=readExpectedRevision(_0x3530ea),[_0x5031c9,_0x228edd]=await Promise['all']([getCurrentInstantApiPolicy(_0x3530ea['appCode']),getInstantApiPolicyRevision(_0x3530ea[_0x525e91(0x14f)],_0x20c780)]);if(!_0x5031c9)throw instantApiPolicyError(_0x525e91(0x13e),_0x525e91(0x133)+_0x3530ea[_0x525e91(0x14f)]+'.');return assertExpectedRevision(_0x5031c9,_0x18d458),{'revision':_0x20c780,'changeSummary':_0x310b78,'expectedRevision':_0x18d458,'before':_0x5031c9,'target':_0x228edd};}export const instantApiPolicyRollback={'service':a110_0x5c5af5(0x132),'command':'rollback','description':a110_0x5c5af5(0x141),'risk':a110_0x5c5af5(0x144),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2a2a48){readRevision(_0x2a2a48),readChangeSummary(_0x2a2a48),readExpectedRevision(_0x2a2a48);},async 'dryRun'(_0x5b3e23){const _0x35d815=a110_0x5c5af5,_0x4837a6=await prepareRollback(_0x5b3e23);return asDryRunResult({'operation':_0x35d815(0x13f),'selector':{'appCode':_0x5b3e23[_0x35d815(0x14f)],'sourceRevision':_0x4837a6['revision']},'before':projectCurrentPolicy(_0x4837a6[_0x35d815(0x150)]),'after':{'revision':_0x4837a6[_0x35d815(0x150)][_0x35d815(0x137)]+0x1,'sourceRevision':projectRevisionDetail(_0x4837a6[_0x35d815(0x139)])},'dryRun':!![],'backend':{'method':_0x35d815(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x4837a6['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x4837a6[_0x35d815(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x35d815(0x147)});},async 'execute'(_0x4b6e8a){const _0x210e23=a110_0x5c5af5,_0x4a6374=await prepareRollback(_0x4b6e8a);let _0x2db136=![];try{await rollbackInstantApiPolicy({'appCode':_0x4b6e8a[_0x210e23(0x14f)],'revision':_0x4a6374[_0x210e23(0x137)],..._0x4a6374[_0x210e23(0x138)]?{'changeSummary':_0x4a6374[_0x210e23(0x138)]}:{}});}catch(_0x2f273f){if(!isPlatformTransportFailure(_0x2f273f))throw _0x2f273f;_0x2db136=!![];}let _0x169e2e;try{_0x169e2e=await getCurrentInstantApiPolicy(_0x4b6e8a[_0x210e23(0x14f)]);}catch(_0x8cfeb3){const _0x221b5d=instantApiPolicyError(_0x2db136?_0x210e23(0x152):_0x210e23(0x14b),_0x210e23(0x135),'Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x210e23(0x14a)](_0x221b5d,_0x210e23(0x148),{'value':_0x8cfeb3,'enumerable':![]});throw _0x221b5d;}const _0x464208=_0x169e2e&&_0x169e2e[_0x210e23(0x137)]>_0x4a6374[_0x210e23(0x150)]['revision'],_0x46f2f1=_0x169e2e?.[_0x210e23(0x136)]===_0x4a6374[_0x210e23(0x139)][_0x210e23(0x136)];if(!_0x169e2e||!_0x464208||!_0x46f2f1)throw instantApiPolicyError(_0x2db136?'instant_api_policy_rollback_outcome_unknown':_0x210e23(0x142),_0x210e23(0x143),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x210e23(0x151));const _0x31ccdd=[...expectedRevisionWarnings(_0x4a6374[_0x210e23(0x13d)]),RUNTIME_CACHE_WARNING];return _0x2db136&&_0x31ccdd[_0x210e23(0x146)](_0x210e23(0x13b)),{'ok':!![],'data':{'operation':_0x210e23(0x13f),'selector':{'appCode':_0x4b6e8a[_0x210e23(0x14f)],'sourceRevision':_0x4a6374['revision']},'before':projectCurrentPolicy(_0x4a6374['before']),'after':projectCurrentPolicy(_0x169e2e),'dryRun':![],'backend':{'method':_0x210e23(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x31ccdd,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2db136,'expectedRevision':_0x4a6374[_0x210e23(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x210e23(0x145)+_0x4a6374[_0x210e23(0x137)]+'\x20forward\x20to\x20revision\x20'+_0x169e2e[_0x210e23(0x137)]};}};