@lovrabet/rabetbase-cli 2.5.2 → 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
- const a98_0x4d351c=a98_0x2833;(function(_0x11a5ea,_0x590395){const _0x110b06=a98_0x2833,_0x167655=_0x11a5ea();while(!![]){try{const _0xc75092=parseInt(_0x110b06(0x8d))/0x1*(-parseInt(_0x110b06(0x8e))/0x2)+-parseInt(_0x110b06(0x94))/0x3*(-parseInt(_0x110b06(0x8a))/0x4)+parseInt(_0x110b06(0x86))/0x5*(-parseInt(_0x110b06(0x96))/0x6)+parseInt(_0x110b06(0x90))/0x7*(parseInt(_0x110b06(0x7a))/0x8)+-parseInt(_0x110b06(0x97))/0x9*(-parseInt(_0x110b06(0x7f))/0xa)+parseInt(_0x110b06(0x7b))/0xb*(parseInt(_0x110b06(0x7c))/0xc)+parseInt(_0x110b06(0x89))/0xd*(parseInt(_0x110b06(0xa1))/0xe);if(_0xc75092===_0x590395)break;else _0x167655['push'](_0x167655['shift']());}catch(_0x320899){_0x167655['push'](_0x167655['shift']());}}}(a98_0x461c,0xd6753));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';import{CliError,CliErrors}from'../../errors.js';const SUBMIT_PATH=a98_0x4d351c(0xa0),CONFIRM_FLAG={'name':'confirm','type':a98_0x4d351c(0x7d),'description':a98_0x4d351c(0x85)};export const deploymentSyncAll={'service':a98_0x4d351c(0x9a),'command':'sync-all','description':a98_0x4d351c(0x9f),'risk':a98_0x4d351c(0x8c),'strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a98_0x4d351c(0x88),'flags':[CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0x21e192){const _0x54d8b0=a98_0x4d351c;return asDryRunResult(buildPreview(_0x21e192['appCode']),{'method':_0x54d8b0(0x93),'url':SUBMIT_PATH,'description':_0x54d8b0(0x98)});},async 'execute'(_0x4ce9af){const _0x3404f4=a98_0x4d351c;if(!_0x4ce9af['bool'](_0x3404f4(0x9d)))throw CliErrors[_0x3404f4(0x87)](_0x3404f4(0x7e),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm.');try{const _0x5623cc=await submitDeploymentMetadataSyncAll({'appCode':_0x4ce9af[_0x3404f4(0x9e)]});if(_0x5623cc[_0x3404f4(0x82)]===_0x3404f4(0x92))return{'ok':!![],'data':{'operation':'application_deployment_sync','appCode':_0x4ce9af['appCode'],'submitted':![],'outcome':_0x3404f4(0x92)},'message':_0x3404f4(0x91)};return{'ok':!![],'data':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af['appCode'],'submitted':!![],'outcome':_0x3404f4(0x8f),'jobId':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)],'status':_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x80)]},'message':_0x3404f4(0x81)+_0x5623cc[_0x3404f4(0x9c)][_0x3404f4(0x95)]+'.'};}catch(_0x19660c){if(!isPlatformTransportFailure(_0x19660c))throw _0x19660c;const _0x44e6f7=new CliError('deployment_sync_submit_outcome_unknown',0x2,_0x3404f4(0x9b),_0x3404f4(0x79));Object[_0x3404f4(0x99)](_0x44e6f7,_0x3404f4(0x83),{'enumerable':!![],'value':{'operation':_0x3404f4(0x8b),'appCode':_0x4ce9af[_0x3404f4(0x9e)],'submitted':null,'outcome':_0x3404f4(0x84)}});throw _0x44e6f7;}}};function a98_0x2833(_0x5f31fa,_0x24b1d5){_0x5f31fa=_0x5f31fa-0x78;const _0x461c60=a98_0x461c();let _0x2833c2=_0x461c60[_0x5f31fa];return _0x2833c2;}function a98_0x461c(){const _0x467d7e=['11McaDxi','19936668fUjDsV','boolean','--confirm\x20is\x20required\x20to\x20synchronize\x20all\x20application\x20metadata.','89720HDCZyX','status','Submitted\x20deployment\x20synchronization\x20job\x20','outcome','data','unknown','Confirm\x20the\x20administrative\x20backfill\x20or\x20recovery\x20synchronization','5122555VwxDPQ','validation','Submit\x20an\x20administrative\x20metadata\x20backfill\x20or\x20recovery\x20synchronization.','978458KaeiFT','949536WalxaK','application_deployment_sync','write','1664987ansOqU','2OwzaHO','submitted','1804586PPWbXj','No\x20deployment\x20synchronization\x20was\x20needed\x20for\x20this\x20app.','not_needed','POST','9GVpZjP','jobId','6dLigUg','864YWIKed','Would\x20submit\x20an\x20administrative\x20deployment\x20metadata\x20backfill\x20or\x20recovery\x20job.','defineProperty','deployment','Deployment\x20sync\x20submission\x20response\x20was\x20unavailable;\x20job\x20creation\x20is\x20unknown.','job','confirm','appCode','Backfill\x20or\x20recover\x20all\x20server-supported\x20application\x20metadata','/smartapi/data-sync/submit','14PQbpKe','not_submitted','List\x20recent\x20deployment\x20sync\x20jobs\x20before\x20deciding\x20whether\x20to\x20submit\x20again.','8kcHzwO'];a98_0x461c=function(){return _0x467d7e;};return a98_0x461c();}function buildPreview(_0x57d849){const _0x5c1182=a98_0x4d351c;return{'operation':_0x5c1182(0x8b),'selector':{'appCode':_0x57d849,'scope':'all_server_supported_metadata'},'before':null,'after':null,'dryRun':!![],'backend':{'submitted':![],'outcome':_0x5c1182(0x78)},'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_0xaac412=a99_0xe693;function a99_0xe693(_0x396e4e,_0xafd538){_0x396e4e=_0x396e4e-0xf6;const _0x21a48b=a99_0x21a4();let _0xe69374=_0x21a48b[_0x396e4e];return _0xe69374;}(function(_0xc46fae,_0x46eabf){const _0x212f6d=a99_0xe693,_0x2eca19=_0xc46fae();while(!![]){try{const _0x4d6e0d=parseInt(_0x212f6d(0x107))/0x1*(parseInt(_0x212f6d(0x10d))/0x2)+parseInt(_0x212f6d(0x114))/0x3+-parseInt(_0x212f6d(0xf6))/0x4+-parseInt(_0x212f6d(0x10f))/0x5+-parseInt(_0x212f6d(0x109))/0x6*(-parseInt(_0x212f6d(0x108))/0x7)+parseInt(_0x212f6d(0xfa))/0x8+-parseInt(_0x212f6d(0x10c))/0x9*(parseInt(_0x212f6d(0xf8))/0xa);if(_0x4d6e0d===_0x46eabf)break;else _0x2eca19['push'](_0x2eca19['shift']());}catch(_0x29c41d){_0x2eca19['push'](_0x2eca19['shift']());}}}(a99_0x21a4,0xdf9e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x21a4(){const _0x1665e2=['--current-page\x20must\x20be\x20a\x20positive\x20integer.','8751325ZNmqdx','sync-jobs','trim','number','str','3825945uetibD','1755512CDVCqN','Page\x20number','20EPqceh','Optional\x20server-defined\x20job\x20status\x20filter','11472864DchwtR','num','current-page','validation','\x20deployment\x20synchronization\x20job(s).','status','isSafeInteger','items','length','deployment','appCode','--page-size\x20must\x20be\x20an\x20integer\x20from\x201\x20to\x20100.','List\x20application\x20deployment\x20synchronization\x20jobs','1SqgoBj','7LFOxBL','241896RuLFcl','page-size','Items\x20per\x20page\x20(maximum\x20100)','4528863OugPPL','2723526mQTGYi'];a99_0x21a4=function(){return _0x1665e2;};return a99_0x21a4();}import{listDeploymentMetadataSyncJobs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const deploymentSyncJobs={'service':a99_0xaac412(0x103),'command':a99_0xaac412(0x110),'description':a99_0xaac412(0x106),'risk':'read','strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a99_0xaac412(0xfc),'type':a99_0xaac412(0x112),'default':0x1,'description':a99_0xaac412(0xf7)},{'name':a99_0xaac412(0x10a),'type':'number','default':0xa,'description':a99_0xaac412(0x10b)},{'name':a99_0xaac412(0xff),'type':'string','description':a99_0xaac412(0xf9)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x449de5){const _0xa9d21a=a99_0xaac412;readPaging(_0x449de5[_0xa9d21a(0xfb)]('current-page',0x1),_0x449de5[_0xa9d21a(0xfb)](_0xa9d21a(0x10a),0xa));},async 'execute'(_0x3a4ac7){const _0x187a64=a99_0xaac412,{currentPage:_0x59aa26,pageSize:_0x57678e}=readPaging(_0x3a4ac7[_0x187a64(0xfb)]('current-page',0x1),_0x3a4ac7['num']('page-size',0xa)),_0x28c2c4=_0x3a4ac7[_0x187a64(0x113)](_0x187a64(0xff))[_0x187a64(0x111)](),_0x29387b=await listDeploymentMetadataSyncJobs({'appCode':_0x3a4ac7[_0x187a64(0x104)],'currentPage':_0x59aa26,'pageSize':_0x57678e,..._0x28c2c4?{'status':_0x28c2c4}:{}});return{'ok':!![],'data':{'appCode':_0x3a4ac7['appCode'],..._0x29387b},'message':'Found\x20'+_0x29387b[_0x187a64(0x101)][_0x187a64(0x102)]+_0x187a64(0xfe)};}};function readPaging(_0x247757,_0x48963e){const _0x50f5c7=a99_0xaac412;if(!Number[_0x50f5c7(0x100)](_0x247757)||_0x247757<0x1)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x10e));if(!Number[_0x50f5c7(0x100)](_0x48963e)||_0x48963e<0x1||_0x48963e>0x64)throw CliErrors[_0x50f5c7(0xfd)](_0x50f5c7(0x105));return{'currentPage':_0x247757,'pageSize':_0x48963e};}
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
- function a100_0x5ec4(){const _0x5f7cf4=['24136tSwYig','132gIWwvA','Preserved\x20server-defined\x20status\x20','num','number','66489OFXIdO','892638ogAoSc','sync-status','PENDING','filter','Get\x20application\x20deployment\x20synchronization\x20job\x20status','Deployment\x20synchronization\x20job\x20','read','\x20is\x20','RUNNING','action','reduce','229403WAMphG','map','appCode','--job-id\x20must\x20be\x20a\x20positive\x20integer.','status','bizType','job-id','8SdaEtH','has','validation','FAILED','results','808310BLmcfm','59000fgDDfl','46420VIdmCb','SUCCESS','8EfGhLi','length'];a100_0x5ec4=function(){return _0x5f7cf4;};return a100_0x5ec4();}function a100_0x16e8(_0x4fce4e,_0x415d0c){_0x4fce4e=_0x4fce4e-0x93;const _0x5ec455=a100_0x5ec4();let _0x16e890=_0x5ec455[_0x4fce4e];return _0x16e890;}const a100_0x41aa2f=a100_0x16e8;(function(_0x376cb4,_0x41e0e9){const _0x70cf36=a100_0x16e8,_0x4dde18=_0x376cb4();while(!![]){try{const _0x275e50=-parseInt(_0x70cf36(0x9b))/0x1+parseInt(_0x70cf36(0xa2))/0x2*(parseInt(_0x70cf36(0xb2))/0x3)+parseInt(_0x70cf36(0xa9))/0x4+-parseInt(_0x70cf36(0xa8))/0x5+-parseInt(_0x70cf36(0xae))/0x6*(-parseInt(_0x70cf36(0xad))/0x7)+-parseInt(_0x70cf36(0xab))/0x8*(-parseInt(_0x70cf36(0xb3))/0x9)+parseInt(_0x70cf36(0xa7))/0xa;if(_0x275e50===_0x41e0e9)break;else _0x4dde18['push'](_0x4dde18['shift']());}catch(_0x6e2377){_0x4dde18['push'](_0x4dde18['shift']());}}}(a100_0x5ec4,0x1c0eb));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a100_0x41aa2f(0xaa),'PARTIAL_SUCCESS',a100_0x41aa2f(0xa5)]),ACTIVE_STATUSES=new Set([a100_0x41aa2f(0xb5),a100_0x41aa2f(0x98)]);export const deploymentSyncStatus={'service':'deployment','command':a100_0x41aa2f(0xb4),'description':a100_0x41aa2f(0x94),'risk':a100_0x41aa2f(0x96),'requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':'job-id','type':a100_0x41aa2f(0xb1),'required':!![],'description':'Deployment\x20synchronization\x20job\x20ID'}],async 'validate'(_0x2e6bf6){const _0x36f310=a100_0x41aa2f;readJobId(_0x2e6bf6[_0x36f310(0xb0)](_0x36f310(0xa1)));},async 'execute'(_0x131777){const _0x2f5e7d=a100_0x41aa2f,_0x240058=readJobId(_0x131777[_0x2f5e7d(0xb0)](_0x2f5e7d(0xa1))),_0x47c6f1=await getDeploymentMetadataSyncStatus({'jobId':_0x240058,'appCode':_0x131777[_0x2f5e7d(0x9d)]}),_0x11c722=TERMINAL_STATUSES[_0x2f5e7d(0xa3)](_0x47c6f1[_0x2f5e7d(0x9f)])?!![]:ACTIVE_STATUSES['has'](_0x47c6f1[_0x2f5e7d(0x9f)])?![]:null,_0x3e5408=countBy(_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x9c)](_0x468e56=>_0x468e56[_0x2f5e7d(0xa0)])),_0x1f4311=countBy(_0x47c6f1['results'][_0x2f5e7d(0x9c)](_0x4db2c8=>_0x4db2c8['action'])),_0x51c0f8=_0x11c722===null?[_0x2f5e7d(0xaf)+_0x47c6f1[_0x2f5e7d(0x9f)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x47c6f1,'isTerminal':_0x11c722,'summary':{'total':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0xac)],'failed':_0x47c6f1[_0x2f5e7d(0xa6)][_0x2f5e7d(0x93)](_0x209fa8=>_0x209fa8[_0x2f5e7d(0x99)]==='FAILED')[_0x2f5e7d(0xac)],'byBizType':_0x3e5408,'byAction':_0x1f4311},'warnings':_0x51c0f8},'message':_0x2f5e7d(0x95)+_0x240058+_0x2f5e7d(0x97)+_0x47c6f1[_0x2f5e7d(0x9f)]+'.'};}};function readJobId(_0x11b313){const _0x5f9eb8=a100_0x41aa2f;if(!Number['isSafeInteger'](_0x11b313)||_0x11b313<=0x0)throw CliErrors[_0x5f9eb8(0xa4)](_0x5f9eb8(0x9e));return _0x11b313;}function countBy(_0xadb3f4){const _0x4ed2b9=a100_0x41aa2f;return _0xadb3f4[_0x4ed2b9(0x9a)]((_0x48183c,_0x9cf414)=>{return _0x48183c[_0x9cf414]=(_0x48183c[_0x9cf414]??0x0)+0x1,_0x48183c;},{});}
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_0xbd7762=a101_0x2e51;(function(_0x59e703,_0x3c407d){const _0x102ebf=a101_0x2e51,_0x119112=_0x59e703();while(!![]){try{const _0x2baae2=-parseInt(_0x102ebf(0xd7))/0x1+-parseInt(_0x102ebf(0xd2))/0x2*(-parseInt(_0x102ebf(0xde))/0x3)+parseInt(_0x102ebf(0xfb))/0x4+-parseInt(_0x102ebf(0xe5))/0x5+parseInt(_0x102ebf(0x13b))/0x6+-parseInt(_0x102ebf(0x144))/0x7+-parseInt(_0x102ebf(0xff))/0x8*(-parseInt(_0x102ebf(0x133))/0x9);if(_0x2baae2===_0x3c407d)break;else _0x119112['push'](_0x119112['shift']());}catch(_0x3ecd96){_0x119112['push'](_0x119112['shift']());}}}(a101_0x2230,0x7a8d2));import a101_0x30fbc7 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_0x2230(){const _0x262126=['\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','projectConfig','\x20\x20Config\x20Files','accessKey','464DTMKDj','Project','region','verbose','cookie','525001MNKlHV','length','(not\x20set)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20─','yellow','green','2457WftCoI','call','red','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config','\x20\x20API\x20Endpoints','locale','3309955EFYfLH','✓\x20Valid','\x20config\x20delete\x20routing','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','apiDir','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','raw','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','arch','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','global','project','\x20config\x20delete\x20region\x20--global','apps','skillVersion','reason','source','state','3638132lZAzfZ','\x20\x20Apps','value','(unknown)','40zAFqmp','env','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toLowerCase','\x20+\x20','gray','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','Global','\x20\x20Repair\x20project:\x20\x20','format','present','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','installedPath','repeat','(set,\x20length=','join','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','Repair\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','routing','repairCommand','\x20\x20Country/Region\x20Configuration','null','stringify','bold','\x20config\x20delete\x20inherit\x20--global','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','message','\x20config\x20delete\x20routing\x20--global','platform','\x20\x20Built-in\x20Skill','hasOwnProperty','currentApp','\x20\x20Merged\x20Config','(not\x20found)','unknown','\x20\x20Repair\x20project:\x20\x20\x20','globalConfig','status','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Repair\x20global:\x20\x20\x20','✗\x20Invalid\x20','1757484oNBNmr','explicitAppName','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','prototype','label','1530126CfEIsU','log','inherit','\x20\x20Installed\x20Path:\x20\x20','ignored\x20in\x20','appCode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','\x20\x20explicitAppName:\x20','4493860HpeKFo','✗\x20Expired','✓\x20Valid\x20JSON','read','\x20←\x20current','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','padEnd'];a101_0x2230=function(){return _0x262126;};return a101_0x2230();}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x59058a){const _0x49f022=a101_0x2e51;return typeof _0x59058a==='string'?JSON[_0x49f022(0x11d)](_0x59058a):'<'+(_0x59058a===null?_0x49f022(0x11c):typeof _0x59058a)+'>';}function a101_0x2e51(_0x400cba,_0x173b87){_0x400cba=_0x400cba-0xcc;const _0x223069=a101_0x2230();let _0x2e511e=_0x223069[_0x400cba];return _0x2e511e;}async function execute(_0x2539e8){const _0x1deb24=a101_0x2e51,_0x2cf2a0=GIT_COMMIT!==_0x1deb24(0x12c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x1d7d8b=buildConfigFromFlags({}),_0xfaca2f=getCookie();let _0x43ff59;try{await initGlobalEnvironment(_0x1d7d8b);}catch(_0x272807){_0x43ff59=_0x272807 instanceof Error?_0x272807:new Error(String(_0x272807));}console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](CLI_BIN_NAME+'\x20doctor')),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray']('─'[_0x1deb24(0x10e)](0x32))),console[_0x1deb24(0x13c)](_0x1deb24(0xf2)+_0x2cf2a0),console[_0x1deb24(0x13c)](_0x1deb24(0x10b)+process['version']),console[_0x1deb24(0x13c)](_0x1deb24(0x137)+process[_0x1deb24(0x126)]+'\x20'+process[_0x1deb24(0xf1)]);const _0x2b93fe=inspectBuiltinSkill();console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x127))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));const _0x37de43=_0x2b93fe[_0x1deb24(0xfa)]===_0x1deb24(0xea)?a101_0x30fbc7[_0x1deb24(0xdd)]('✓\x20'+_0x2b93fe['state']):a101_0x30fbc7[_0x1deb24(0xe0)]('✗\x20'+_0x2b93fe[_0x1deb24(0xfa)]);console[_0x1deb24(0x13c)](_0x1deb24(0xcd)+_0x37de43),console[_0x1deb24(0x13c)](_0x1deb24(0xed)+_0x2b93fe[_0x1deb24(0x10c)]),console[_0x1deb24(0x13c)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x2b93fe[_0x1deb24(0xf7)]||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xfe)))),console[_0x1deb24(0x13c)](_0x1deb24(0x13e)+(_0x2b93fe[_0x1deb24(0x10d)]||a101_0x30fbc7[_0x1deb24(0x104)]('(not\x20found)')));if(_0x2b93fe[_0x1deb24(0xf8)])console['log'](_0x1deb24(0x101)+_0x2b93fe[_0x1deb24(0xf8)]);_0x2b93fe[_0x1deb24(0xfa)]!=='current'&&console['log'](_0x1deb24(0x14c)+_0x2b93fe['repairCommand']);console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xd0))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)]('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));const _0x2e3c9f=getGlobalConfigPath(),_0x366469=getProjectConfigPath();console[_0x1deb24(0x13c)](_0x1deb24(0xef)+(_0x2e3c9f||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](_0x1deb24(0xe9)+(_0x366469||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x12b)))),console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x123))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));const _0x55ac4d=(_0x231ebf,_0x48cc66)=>{const _0x390356=_0x1deb24;if(!_0x48cc66){console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)]('(no\x20file)'));return;}const _0xba03e3=inspectCliConfigJsonFile(_0x48cc66);if(_0xba03e3[_0x390356(0x12f)]==='ok')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdd)](_0x390356(0x146)));else{if(_0xba03e3[_0x390356(0x12f)]==='empty')console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf['padEnd'](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xdc)](_0x390356(0x118)));else _0xba03e3[_0x390356(0x12f)]===_0x390356(0x136)?console['log']('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0x104)](_0x390356(0xf0))):(console[_0x390356(0x13c)]('\x20\x20'+_0x231ebf[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7['red'](_0x390356(0x121))),console[_0x390356(0x13c)]('\x20\x20'+''[_0x390356(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x390356(0xe0)](_0xba03e3[_0x390356(0x124)])));}};_0x55ac4d(_0x1deb24(0x107),_0x2e3c9f),_0x55ac4d(_0x1deb24(0xd3),_0x366469);const _0xf3540d=loadRawConfigLayers(),_0x2f3ed7=[{'label':'Project','value':_0xf3540d[_0x1deb24(0xcf)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'region'),'repairCommand':CLI_BIN_NAME+_0x1deb24(0x14a)},{'label':'Global','value':_0xf3540d[_0x1deb24(0x12e)][_0x1deb24(0xd4)],'present':Object[_0x1deb24(0x139)][_0x1deb24(0x128)]['call'](_0xf3540d['globalConfig'],_0x1deb24(0xd4)),'repairCommand':CLI_BIN_NAME+_0x1deb24(0xf5)}]['filter'](_0x55dd26=>_0x55dd26[_0x1deb24(0x10a)]&&isInvalidLovrabetRegion(_0x55dd26[_0x1deb24(0xfd)]));if(_0x2f3ed7[_0x1deb24(0xd8)]>0x0){console['log'](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x11b))),console[_0x1deb24(0x13c)](a101_0x30fbc7['gray'](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e)));for(const _0x1c4da1 of _0x2f3ed7){console['log']('\x20\x20'+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x14b)](0x11)+'\x20'+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x132)+describeRegionValue(_0x1c4da1[_0x1deb24(0xfd)]))),console['log']('\x20\x20'+(_0x1deb24(0x116)+_0x1c4da1[_0x1deb24(0x13a)][_0x1deb24(0x102)]()+':')[_0x1deb24(0x14b)](0x10)+'\x20'+_0x1c4da1[_0x1deb24(0x11a)]);}}const _0x4da9e0=[Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x13d))?'global':null,Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],'inherit')?_0x1deb24(0xf4):null]['filter'](Boolean);_0x4da9e0[_0x1deb24(0xd8)]>0x0&&(console[_0x1deb24(0x13c)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)](_0x1deb24(0x13f)+_0x4da9e0[_0x1deb24(0x110)](_0x1deb24(0x103))+_0x1deb24(0xe2))),_0x4da9e0['includes'](_0x1deb24(0xf4))&&console[_0x1deb24(0x13c)](_0x1deb24(0x12d)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x4da9e0['includes'](_0x1deb24(0xf3))&&console['log'](_0x1deb24(0x105)+CLI_BIN_NAME+_0x1deb24(0x11f)));const _0x22a5a1=isInvalidLovrabetRegion(_0x1d7d8b[_0x1deb24(0xee)]?.[_0x1deb24(0xd4)]);_0x43ff59&&!_0x22a5a1&&(console['log'](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)]('\x20\x20Routing\x20Configuration')),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)[_0x1deb24(0x10e)](0x1e))),console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7['red']('✗\x20Invalid')),console[_0x1deb24(0x13c)](_0x1deb24(0x101)+_0x43ff59[_0x1deb24(0x124)]),Object[_0x1deb24(0x139)][_0x1deb24(0x128)][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0xcf)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x108)+CLI_BIN_NAME+_0x1deb24(0xe7)),Object['prototype']['hasOwnProperty'][_0x1deb24(0xdf)](_0xf3540d[_0x1deb24(0x12e)],_0x1deb24(0x119))&&console[_0x1deb24(0x13c)](_0x1deb24(0x131)+CLI_BIN_NAME+_0x1deb24(0x125)));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0x12a))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e))),console[_0x1deb24(0x13c)](_0x1deb24(0x122)+(_0x1d7d8b[_0x1deb24(0x140)]||a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0xd9)))),console['log'](_0x1deb24(0xe1)+_0x1d7d8b[_0x1deb24(0x100)]),console[_0x1deb24(0x13c)](_0x1deb24(0xda)+_0x1d7d8b[_0x1deb24(0xe4)]),console[_0x1deb24(0x13c)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d7d8b['apiDir']),console[_0x1deb24(0x13c)](_0x1deb24(0x141)+(_0x1d7d8b['defaultApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x1d7d8b['currentApp']||a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113)))),console[_0x1deb24(0x13c)](_0x1deb24(0x143)+(_0x1d7d8b[_0x1deb24(0x134)]||a101_0x30fbc7['gray'](_0x1deb24(0x113)))),console['log'](_0x1deb24(0x149)+(_0x1d7d8b['format']||a101_0x30fbc7[_0x1deb24(0x104)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x1deb24(0x109)]+')'))),console[_0x1deb24(0x13c)](_0x1deb24(0x117)+(_0x1d7d8b['pageSize']??a101_0x30fbc7[_0x1deb24(0x104)]('(default)'))),console[_0x1deb24(0x13c)](_0x1deb24(0x111)+_0x1d7d8b['riskLevel']),console[_0x1deb24(0x13c)](_0x1deb24(0x135)+_0x1d7d8b[_0x1deb24(0xd5)]),console[_0x1deb24(0x13c)](_0x1deb24(0xec)+(_0x1d7d8b[_0x1deb24(0xd6)]?a101_0x30fbc7['green'](_0x1deb24(0x10f)+_0x1d7d8b[_0x1deb24(0xd6)]['length']+')'):_0xfaca2f?a101_0x30fbc7['green']('(set\x20via\x20file,\x20length='+_0xfaca2f[_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)]('(none)')));const _0x3fdf87=Object[_0x1deb24(0x142)](_0x1d7d8b['apps']);if(_0x3fdf87[_0x1deb24(0xd8)]>0x0){console[_0x1deb24(0x13c)](),console['log'](a101_0x30fbc7[_0x1deb24(0x11e)](_0x1deb24(0xfc))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));for(const _0x317d1d of _0x3fdf87){const _0x594a52=_0x1d7d8b[_0x1deb24(0xf6)][_0x317d1d],_0x31e9a7=_0x317d1d===_0x1d7d8b['defaultApp'],_0x1701ab=_0x317d1d===_0x1d7d8b[_0x1deb24(0x129)],_0x419287=_0x1701ab?a101_0x30fbc7['green'](_0x1deb24(0x148)):'',_0x3012da=_0x31e9a7?'\x20(default)':'';console[_0x1deb24(0x13c)]('\x20\x20'+_0x317d1d+_0x3012da+_0x419287),console[_0x1deb24(0x13c)](_0x1deb24(0xce)+_0x594a52['appcode']);const _0x4c9f60=buildAppDoctorFields(_0x594a52,{'env':_0x1d7d8b[_0x1deb24(0x100)],'apiDir':_0x1d7d8b[_0x1deb24(0xee)][_0x1deb24(0xeb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x1d7d8b['cookie']||_0xfaca2f||undefined,'accessKey':_0x1d7d8b['accessKey']});console[_0x1deb24(0x13c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0x100)]['value']+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60['env'][_0x1deb24(0xf9)]+')')),console[_0x1deb24(0x13c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xfd)]+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xeb)][_0x1deb24(0xf9)]+')'));const _0x33e9c7=_0x4c9f60['cookie'][_0x1deb24(0xfd)]?a101_0x30fbc7[_0x1deb24(0xdd)]('(set,\x20length='+_0x4c9f60[_0x1deb24(0xd6)]['value']['length']+')'):a101_0x30fbc7['gray'](_0x1deb24(0x113));console[_0x1deb24(0x13c)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x33e9c7+'\x20\x20'+a101_0x30fbc7[_0x1deb24(0x104)]('('+_0x4c9f60[_0x1deb24(0xd6)][_0x1deb24(0xf9)]+')'));const _0x318d08=_0x4c9f60['accessKey']['value']?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0x10f)+_0x4c9f60[_0x1deb24(0xd1)]['value'][_0x1deb24(0xd8)]+')'):a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0x113));console[_0x1deb24(0x13c)](_0x1deb24(0x115)+_0x318d08+'\x20\x20'+a101_0x30fbc7['gray']('('+_0x4c9f60[_0x1deb24(0xd1)][_0x1deb24(0xf9)]+')'));}}console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0xe3))),console[_0x1deb24(0x13c)](a101_0x30fbc7[_0x1deb24(0x104)](_0x1deb24(0xdb)['repeat'](0x1e)));_0x43ff59?console['log'](_0x1deb24(0x112)+a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x130))):(console[_0x1deb24(0x13c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+getActiveRegion()),console[_0x1deb24(0x13c)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x1deb24(0x114)+getUserDomain()),console[_0x1deb24(0x13c)](_0x1deb24(0x106)+getRuntimeDomain()),console[_0x1deb24(0x13c)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console['log'](_0x1deb24(0x120)+getAppDomain()));console[_0x1deb24(0x13c)](),console[_0x1deb24(0x13c)](a101_0x30fbc7['bold'](_0x1deb24(0x138))),console['log'](a101_0x30fbc7['gray']('\x20\x20─'[_0x1deb24(0x10e)](0x1e)));if(_0x43ff59)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x30fbc7[_0x1deb24(0xdc)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0xfaca2f){const _0x352454=await getIsSessionValid();console[_0x1deb24(0x13c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x352454?a101_0x30fbc7[_0x1deb24(0xdd)](_0x1deb24(0xe6)):a101_0x30fbc7[_0x1deb24(0xe0)](_0x1deb24(0x145))));}else console[_0x1deb24(0x13c)](_0x1deb24(0x112)+a101_0x30fbc7['red'](_0x1deb24(0xcc)));}return console[_0x1deb24(0x13c)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a101_0xbd7762(0xe8),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a101_0xbd7762(0x147),'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_0x4a773c=a102_0x5734;(function(_0x4df352,_0x413cc7){const _0x3e4496=a102_0x5734,_0x179574=_0x4df352();while(!![]){try{const _0xd13c79=parseInt(_0x3e4496(0x150))/0x1*(-parseInt(_0x3e4496(0x143))/0x2)+-parseInt(_0x3e4496(0x15c))/0x3*(parseInt(_0x3e4496(0x154))/0x4)+parseInt(_0x3e4496(0x147))/0x5*(parseInt(_0x3e4496(0x157))/0x6)+parseInt(_0x3e4496(0x14e))/0x7*(parseInt(_0x3e4496(0x159))/0x8)+parseInt(_0x3e4496(0x156))/0x9+parseInt(_0x3e4496(0x14a))/0xa*(parseInt(_0x3e4496(0x14c))/0xb)+-parseInt(_0x3e4496(0x158))/0xc;if(_0xd13c79===_0x413cc7)break;else _0x179574['push'](_0x179574['shift']());}catch(_0x3c58e9){_0x179574['push'](_0x179574['shift']());}}}(a102_0x2ff0,0x2db84));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a102_0x2ff0(){const _0x1318d4=['filepath','Uploaded\x20file:\x20','672366GRQZvr','read','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','string','5XnIsQr','File','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','50zKMUQb','appCode','232133yMJTUL','Path\x20to\x20the\x20local\x20file\x20to\x20upload','553574tXVXNr','trim','1okjDHz','/smartapi/common/uploadFile','upload','\x20to\x20development\x20app\x20','9428wXNSgo','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1066698kanXdV','740334dUEfUT','649800wCfcNd','24pHqSGq','long-term','filePath\x20is\x20required.','9soIZwK','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','query-url','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','boolean','bool','file','path','filePath','download'];a102_0x2ff0=function(){return _0x1318d4;};return a102_0x2ff0();}import{CliErrors}from'../../errors.js';function a102_0x5734(_0xf4dc5f,_0x5f52c0){_0xf4dc5f=_0xf4dc5f-0x139;const _0x2ff07c=a102_0x2ff0();let _0x573416=_0x2ff07c[_0xf4dc5f];return _0x573416;}const FILE_FLAG={'name':a102_0x4a773c(0x13d),'type':a102_0x4a773c(0x146),'required':!![],'description':a102_0x4a773c(0x14d)},FILEPATH_FLAG={'name':a102_0x4a773c(0x141),'type':a102_0x4a773c(0x146),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a102_0x4a773c(0x140),'type':a102_0x4a773c(0x13b),'description':a102_0x4a773c(0x149)},LONG_TERM_FLAG={'name':a102_0x4a773c(0x15a),'type':a102_0x4a773c(0x13b),'description':a102_0x4a773c(0x139)};function requireFilePath(_0x74e2f4){const _0xae3509=a102_0x4a773c,_0x26e962=_0x74e2f4[_0xae3509(0x14f)]();if(!_0x26e962)throw CliErrors['validation'](_0xae3509(0x15b));return _0x26e962;}const fileUpload={'service':a102_0x4a773c(0x13d),'command':a102_0x4a773c(0x152),'description':a102_0x4a773c(0x13a),'risk':a102_0x4a773c(0x144),'flags':[FILE_FLAG],async 'dryRun'(_0x21e0e3){const _0x1851b1=a102_0x4a773c,_0x3bdd2e=requireDevelopmentUploadFile(_0x21e0e3['str'](_0x1851b1(0x13d)),_0x1851b1(0x148));return{'method':'POST','url':_0x1851b1(0x151),'body':{'appCode':_0x21e0e3['appCode'],'multipart':{'file':_0x3bdd2e}},'description':'Preview:\x20upload\x20'+_0x3bdd2e['path']+_0x1851b1(0x153)+_0x21e0e3[_0x1851b1(0x14b)]};},async 'execute'(_0x4b58d9){const _0x292da4=a102_0x4a773c,_0x4b6dbc=requireDevelopmentUploadFile(_0x4b58d9['str'](_0x292da4(0x13d)),_0x292da4(0x148)),_0x2ce6ea=await uploadDevelopmentFile(_0x4b58d9['appCode'],_0x4b6dbc[_0x292da4(0x13e)]);return{'ok':!![],'data':_0x2ce6ea,'message':_0x2ce6ea[_0x292da4(0x13f)]?_0x292da4(0x142)+_0x2ce6ea['filePath']+_0x292da4(0x15e):_0x292da4(0x155)};}},fileQueryUrl={'service':a102_0x4a773c(0x13d),'command':a102_0x4a773c(0x15f),'description':a102_0x4a773c(0x145),'risk':a102_0x4a773c(0x144),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x56a103){const _0x2946ea=a102_0x4a773c,_0x41293f=requireFilePath(_0x56a103[_0x2946ea(0x15d)](_0x2946ea(0x141))),_0x113f8d=await queryDevelopmentFileUrl(_0x41293f,{'download':_0x56a103[_0x2946ea(0x13c)]('download'),'longTerm':_0x56a103['bool'](_0x2946ea(0x15a))});return{'ok':!![],'data':_0x113f8d};}};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_0x50cd(_0x451de6,_0x52f16e){_0x451de6=_0x451de6-0x144;const _0x566d36=a103_0x566d();let _0x50cd7f=_0x566d36[_0x451de6];return _0x50cd7f;}const a103_0x3f1b48=a103_0x50cd;function a103_0x566d(){const _0x71186=['2246931uqPtSB','6VCJLAx','360uurgbC','9813195voiZJj','8lRBMPV','appCode','policyRelativePath','4234168xyPkSz','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','4398870ZjwWUa','568502YObqSX','2416624rLhFQy','current','Current\x20Instant\x20API\x20policy\x20revision\x20','1583ARyzCx','1686vAMrDS','policyFilePath','revision'];a103_0x566d=function(){return _0x71186;};return a103_0x566d();}(function(_0x5235ac,_0x4257ba){const _0x46fa0b=a103_0x50cd,_0x11a92d=_0x5235ac();while(!![]){try{const _0x2874b7=parseInt(_0x46fa0b(0x148))/0x1*(-parseInt(_0x46fa0b(0x149))/0x2)+parseInt(_0x46fa0b(0x14c))/0x3*(-parseInt(_0x46fa0b(0x150))/0x4)+parseInt(_0x46fa0b(0x155))/0x5+parseInt(_0x46fa0b(0x14d))/0x6*(parseInt(_0x46fa0b(0x145))/0x7)+-parseInt(_0x46fa0b(0x153))/0x8+parseInt(_0x46fa0b(0x14f))/0x9+parseInt(_0x46fa0b(0x14e))/0xa*(parseInt(_0x46fa0b(0x144))/0xb);if(_0x2874b7===_0x4257ba)break;else _0x11a92d['push'](_0x11a92d['shift']());}catch(_0x37d056){_0x11a92d['push'](_0x11a92d['shift']());}}}(a103_0x566d,0xc6c8b));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_0x3f1b48(0x146),'description':a103_0x3f1b48(0x154),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5d44d1){const _0x2293d4=a103_0x3f1b48,_0x5ea4f8=loadInstantApiPolicyLocalConfig(_0x5d44d1[_0x2293d4(0x151)]),_0x2db3ce=await getCurrentInstantApiPolicy(_0x5d44d1[_0x2293d4(0x151)]);return{'ok':!![],'data':{'appCode':_0x5d44d1[_0x2293d4(0x151)],'configured':_0x2db3ce!==null,'filePath':_0x5ea4f8[_0x2293d4(0x14a)],'relativePath':_0x5ea4f8[_0x2293d4(0x152)],'policy':projectCurrentPolicy(_0x2db3ce)},'message':_0x2db3ce?_0x2293d4(0x147)+_0x2db3ce[_0x2293d4(0x14b)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x5d44d1[_0x2293d4(0x151)]};}};
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(_0x25b159,_0x4469ba){const _0x46fc38=a104_0x372f,_0x16becc=_0x25b159();while(!![]){try{const _0x43cc2b=parseInt(_0x46fc38(0x1df))/0x1*(parseInt(_0x46fc38(0x1d6))/0x2)+parseInt(_0x46fc38(0x1d5))/0x3*(parseInt(_0x46fc38(0x1d8))/0x4)+parseInt(_0x46fc38(0x1d9))/0x5+-parseInt(_0x46fc38(0x1da))/0x6*(-parseInt(_0x46fc38(0x1de))/0x7)+parseInt(_0x46fc38(0x1db))/0x8*(parseInt(_0x46fc38(0x1e0))/0x9)+-parseInt(_0x46fc38(0x1dc))/0xa+-parseInt(_0x46fc38(0x1d7))/0xb*(parseInt(_0x46fc38(0x1dd))/0xc);if(_0x43cc2b===_0x4469ba)break;else _0x16becc['push'](_0x16becc['shift']());}catch(_0xcbfc5f){_0x16becc['push'](_0x16becc['shift']());}}}(a104_0x2887,0xb815a));function a104_0x2887(){const _0x1060ce=['36tbitCH','7FRRPws','1233245QXQsov','153QXXNbD','3YjDcYX','2BNiKms','15567046gVRrDa','3840748HAgfeR','5289015SyUTHw','9036006GXfbWB','467768LgCOxM','7516750FAAfLD'];a104_0x2887=function(){return _0x1060ce;};return a104_0x2887();}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';function a104_0x372f(_0xb7099f,_0x79b65c){_0xb7099f=_0xb7099f-0x1d5;const _0x288755=a104_0x2887();let _0x372f54=_0x288755[_0xb7099f];return _0x372f54;}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
+ (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
- function a105_0x2d50(){const _0x1c52cd=['policyRelativePath','allow','Created','8VNDcFe','policyFilePath','init','bool','action','string','4381014EXzSTx','default-action','instant-api-policy','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','3909249vkRtPY','3733528OFhbLj','4254945tdIQZw','appCode','str','write','deny','\x20Instant\x20API\x20policy\x20file\x20for\x20','2435950XHBfpS','Replaced','1294244vefkbs','force','35973602eUioia','Kept'];a105_0x2d50=function(){return _0x1c52cd;};return a105_0x2d50();}const a105_0x3f2cbf=a105_0x7a15;(function(_0x11731d,_0x3d0b1c){const _0x10650c=a105_0x7a15,_0x14e840=_0x11731d();while(!![]){try{const _0x59f467=-parseInt(_0x10650c(0x9f))/0x1+-parseInt(_0x10650c(0x9d))/0x2+-parseInt(_0x10650c(0x95))/0x3+parseInt(_0x10650c(0x96))/0x4+-parseInt(_0x10650c(0x97))/0x5+-parseInt(_0x10650c(0xac))/0x6+parseInt(_0x10650c(0xa1))/0x7*(parseInt(_0x10650c(0xa6))/0x8);if(_0x59f467===_0x3d0b1c)break;else _0x14e840['push'](_0x14e840['shift']());}catch(_0x565c23){_0x14e840['push'](_0x14e840['shift']());}}}(a105_0x2d50,0xa50a8));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a105_0x7a15(_0x7eceee,_0x127469){_0x7eceee=_0x7eceee-0x92;const _0x2d502b=a105_0x2d50();let _0x7a15a6=_0x2d502b[_0x7eceee];return _0x7a15a6;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a105_0x3f2cbf(0x93),'command':a105_0x3f2cbf(0xa8),'description':'Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','risk':a105_0x3f2cbf(0x9a),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a105_0x3f2cbf(0x92),'type':a105_0x3f2cbf(0xab),'enum':['allow',a105_0x3f2cbf(0x9b)],'default':a105_0x3f2cbf(0xa4),'description':a105_0x3f2cbf(0x94)},FORCE_FLAG],async 'validate'(_0x3e41da){requireForceConfirmation(_0x3e41da);},async 'execute'(_0x3b3f39){const _0x465673=a105_0x3f2cbf;requireForceConfirmation(_0x3b3f39);const _0x53d0d3=_0x3b3f39[_0x465673(0x99)](_0x465673(0x92))===_0x465673(0x9b)?'deny':'allow',_0x4df5e2=loadInstantApiPolicyLocalConfig(_0x3b3f39[_0x465673(0x98)]),_0x24dc06=createDefaultInstantApiPolicyConfig(_0x3b3f39[_0x465673(0x98)],_0x53d0d3),_0x361e47=await writeInstantApiPolicyConfigFile(_0x4df5e2,_0x24dc06,{'force':_0x3b3f39[_0x465673(0xa9)](_0x465673(0xa0))}),_0x3e557e={'created':_0x465673(0xa5),'overwritten':_0x465673(0x9e),'unchanged':_0x465673(0xa2)}[_0x361e47['action']];return{'ok':!![],'data':{'operation':_0x465673(0xa8),'selector':{'appCode':_0x3b3f39['appCode']},'filePath':_0x4df5e2[_0x465673(0xa7)],'relativePath':_0x4df5e2[_0x465673(0xa3)],'action':_0x361e47[_0x465673(0xaa)],'config':_0x24dc06},'message':_0x3e557e+_0x465673(0x9c)+_0x3b3f39[_0x465673(0x98)]};}};
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
- const a106_0x35ee8e=a106_0x1f54;function a106_0x44b1(){const _0x5708fe=['instant_api_policy_publish_verification_failed','3igfMep','`;\x20do\x20not\x20resubmit\x20automatically.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','37560LzpFTR','configHash','instant-api-policy','POST','6956480lIbeCi','1zIfIdB','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','revision','expectedRevision','all','publish','config','policyRelativePath','873qpffcJ','/publish','Published\x20Instant\x20API\x20policy\x20revision\x20','before','Inspect\x20with\x20`','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','policyFilePath','appCode','normalizedConfig','3364238OnqFsw','80YtPxHB','33532972cYvKCf','local','instant_api_policy_publish_outcome_unknown','validation','14420uChWnX','5886034PYQDOQ','cause','10977712JaXGnx'];a106_0x44b1=function(){return _0x5708fe;};return a106_0x44b1();}(function(_0x336799,_0x54c055){const _0xddb61f=a106_0x1f54,_0x2ef38f=_0x336799();while(!![]){try{const _0x584563=-parseInt(_0xddb61f(0x1ad))/0x1*(-parseInt(_0xddb61f(0x19a))/0x2)+-parseInt(_0xddb61f(0x1a5))/0x3*(-parseInt(_0xddb61f(0x1ac))/0x4)+-parseInt(_0xddb61f(0x19b))/0x5*(parseInt(_0xddb61f(0x1a8))/0x6)+-parseInt(_0xddb61f(0x1a1))/0x7+parseInt(_0xddb61f(0x1a3))/0x8+parseInt(_0xddb61f(0x191))/0x9*(parseInt(_0xddb61f(0x1a0))/0xa)+-parseInt(_0xddb61f(0x19c))/0xb;if(_0x584563===_0x54c055)break;else _0x2ef38f['push'](_0x2ef38f['shift']());}catch(_0x4e7874){_0x2ef38f['push'](_0x2ef38f['shift']());}}}(a106_0x44b1,0xe66ed));function a106_0x1f54(_0x26f349,_0x9d5f86){_0x26f349=_0x26f349-0x18f;const _0x44b187=a106_0x44b1();let _0x1f547c=_0x44b187[_0x26f349];return _0x1f547c;}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';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x2248ed){const _0x41a76c=a106_0x1f54,{local:_0x2f8204,config:_0x4ec10f}=await readFixedPolicy(_0x2248ed),_0x125fdf=readChangeSummary(_0x2248ed),_0x3d59a4=readExpectedRevision(_0x2248ed),[_0x4344cd,_0x5d61a5]=await Promise[_0x41a76c(0x1b1)]([getCurrentInstantApiPolicy(_0x2248ed[_0x41a76c(0x198)]),validateInstantApiPolicy({'appCode':_0x2248ed[_0x41a76c(0x198)],'config':_0x4ec10f})]);return assertExpectedRevision(_0x4344cd,_0x3d59a4),{'local':_0x2f8204,'config':_0x4ec10f,'changeSummary':_0x125fdf,'expectedRevision':_0x3d59a4,'before':_0x4344cd,'validation':_0x5d61a5};}export const instantApiPolicyPublish={'service':a106_0x35ee8e(0x1aa),'command':a106_0x35ee8e(0x1b2),'description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x35ee8e(0x196),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x108337){readChangeSummary(_0x108337),readExpectedRevision(_0x108337);},async 'dryRun'(_0x3a8422){const _0x4a16e6=a106_0x35ee8e,_0x3a0ef2=await preparePublish(_0x3a8422);return asDryRunResult({'operation':_0x4a16e6(0x1b2),'selector':{'appCode':_0x3a8422['appCode']},'before':projectCurrentPolicy(_0x3a0ef2[_0x4a16e6(0x194)]),'after':{'revision':_0x3a0ef2[_0x4a16e6(0x194)]?_0x3a0ef2[_0x4a16e6(0x194)][_0x4a16e6(0x1af)]+0x1:0x1,'configHash':_0x3a0ef2[_0x4a16e6(0x19f)][_0x4a16e6(0x1a9)],'config':_0x3a0ef2['validation'][_0x4a16e6(0x199)]},'filePath':_0x3a0ef2[_0x4a16e6(0x19d)][_0x4a16e6(0x197)],'relativePath':_0x3a0ef2['local'][_0x4a16e6(0x190)],'dryRun':!![],'backend':{'method':_0x4a16e6(0x1ab),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a16e6(0x192)},'warnings':expectedRevisionWarnings(_0x3a0ef2[_0x4a16e6(0x1b0)]),'verification':{'status':'planned','expectedRevision':_0x3a0ef2['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x4a7bd2){const _0x21d655=a106_0x35ee8e,_0x4cd67d=await preparePublish(_0x4a7bd2);let _0x736e47=![];try{await publishInstantApiPolicy({'appCode':_0x4a7bd2[_0x21d655(0x198)],'config':_0x4cd67d[_0x21d655(0x18f)],..._0x4cd67d['changeSummary']?{'changeSummary':_0x4cd67d['changeSummary']}:{}});}catch(_0x42c044){if(!isPlatformTransportFailure(_0x42c044))throw _0x42c044;_0x736e47=!![];}let _0x2ce91c;try{_0x2ce91c=await getCurrentInstantApiPolicy(_0x4a7bd2['appCode']);}catch(_0x2c1e63){const _0x45a248=instantApiPolicyError(_0x736e47?_0x21d655(0x19e):'instant_api_policy_publish_verification_unavailable',_0x21d655(0x1ae),_0x21d655(0x195)+mutationLookupCommand()+_0x21d655(0x1a6));Object['defineProperty'](_0x45a248,_0x21d655(0x1a2),{'value':_0x2c1e63,'enumerable':![]});throw _0x45a248;}const _0xb67483=_0x2ce91c&&(_0x4cd67d[_0x21d655(0x194)]===null||_0x2ce91c[_0x21d655(0x1af)]>_0x4cd67d[_0x21d655(0x194)]['revision']),_0x4a6a30=_0x2ce91c?.[_0x21d655(0x1a9)]===_0x4cd67d[_0x21d655(0x19f)][_0x21d655(0x1a9)];if(!_0x2ce91c||!_0xb67483||!_0x4a6a30)throw instantApiPolicyError(_0x736e47?_0x21d655(0x19e):_0x21d655(0x1a4),_0x21d655(0x1a7),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x21d655(0x1a6));const _0x478b03=[...expectedRevisionWarnings(_0x4cd67d[_0x21d655(0x1b0)]),RUNTIME_CACHE_WARNING];return _0x736e47&&_0x478b03['push']('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x21d655(0x1b2),'selector':{'appCode':_0x4a7bd2[_0x21d655(0x198)]},'before':projectCurrentPolicy(_0x4cd67d[_0x21d655(0x194)]),'after':projectCurrentPolicy(_0x2ce91c),'filePath':_0x4cd67d[_0x21d655(0x19d)][_0x21d655(0x197)],'relativePath':_0x4cd67d[_0x21d655(0x19d)][_0x21d655(0x190)],'dryRun':![],'backend':{'method':_0x21d655(0x1ab),'path':INSTANT_API_POLICY_BASE_PATH+_0x21d655(0x192)},'warnings':_0x478b03,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x736e47,'expectedRevision':_0x4cd67d[_0x21d655(0x1b0)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x21d655(0x193)+_0x2ce91c['revision']};}};
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_0x180c7d=a107_0x7d4c;(function(_0x4045f4,_0x352987){const _0x4efcd5=a107_0x7d4c,_0x5e7d50=_0x4045f4();while(!![]){try{const _0x27a580=parseInt(_0x4efcd5(0x173))/0x1*(parseInt(_0x4efcd5(0x17c))/0x2)+-parseInt(_0x4efcd5(0x171))/0x3*(-parseInt(_0x4efcd5(0x17d))/0x4)+-parseInt(_0x4efcd5(0x181))/0x5+-parseInt(_0x4efcd5(0x180))/0x6+-parseInt(_0x4efcd5(0x17a))/0x7+-parseInt(_0x4efcd5(0x17b))/0x8+-parseInt(_0x4efcd5(0x17f))/0x9*(-parseInt(_0x4efcd5(0x187))/0xa);if(_0x27a580===_0x352987)break;else _0x5e7d50['push'](_0x5e7d50['shift']());}catch(_0x1c4279){_0x5e7d50['push'](_0x5e7d50['shift']());}}}(a107_0x4370,0x7059e));function a107_0x4370(){const _0x4bc403=['write','unchanged','bool','Kept','\x20Instant\x20API\x20policy\x20revision\x20','2816990JRAwtO','policyRelativePath','Pulled','config','99xORFkB','appCode','5fVFcQb','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','instant_api_policy_not_configured','instant-api-policy','action','3056466kkVcrc','4810904vgBDwy','50894eZXCup','18372tizaQj','configHash','63QasiNP','3554646Oalglm','800325bkTnZW'];a107_0x4370=function(){return _0x4bc403;};return a107_0x4370();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x7d4c(_0x572e76,_0x2d429e){_0x572e76=_0x572e76-0x16f;const _0x437077=a107_0x4370();let _0x7d4cbc=_0x437077[_0x572e76];return _0x7d4cbc;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a107_0x180c7d(0x178),'command':'pull','description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a107_0x180c7d(0x182),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x37c1dc){requireForceConfirmation(_0x37c1dc);},async 'execute'(_0x479419){const _0x1b9b35=a107_0x180c7d;requireForceConfirmation(_0x479419);const _0x427123=await getCurrentInstantApiPolicy(_0x479419['appCode']);if(!_0x427123)throw instantApiPolicyError(_0x1b9b35(0x177),_0x1b9b35(0x175)+_0x479419['appCode']+'.',_0x1b9b35(0x174));const _0x3a70c6=loadInstantApiPolicyLocalConfig(_0x479419[_0x1b9b35(0x172)]),_0xbed234=await writeInstantApiPolicyConfigFile(_0x3a70c6,_0x427123[_0x1b9b35(0x170)],{'force':_0x479419[_0x1b9b35(0x184)]('force')});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x479419['appCode'],'revision':_0x427123[_0x1b9b35(0x176)]},'filePath':_0x3a70c6['policyFilePath'],'relativePath':_0x3a70c6[_0x1b9b35(0x188)],'action':_0xbed234[_0x1b9b35(0x179)],'configHash':_0x427123[_0x1b9b35(0x17e)]},'message':(_0xbed234['action']===_0x1b9b35(0x183)?_0x1b9b35(0x185):_0x1b9b35(0x16f))+_0x1b9b35(0x186)+_0x427123[_0x1b9b35(0x176)]};}};
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_0x539321=a108_0x5768;function a108_0x5768(_0x1b9bdb,_0x4fc9bc){_0x1b9bdb=_0x1b9bdb-0x1b5;const _0x37344f=a108_0x3734();let _0x5768df=_0x37344f[_0x1b9bdb];return _0x5768df;}function a108_0x3734(){const _0x2677de=['77okygOt','127323dqQBdg','19408RzJehE','168155AftYnr','721682mIetSz','appCode','327XzcvrO','511UhYjLq','read','24rjzaDz','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20','2hfTuym','200316hObIzz','5732jkQdzN','27tWezVk','931650epEWCt'];a108_0x3734=function(){return _0x2677de;};return a108_0x3734();}(function(_0x5aadf6,_0x2ab7f8){const _0x5e70dc=a108_0x5768,_0x3b5c9d=_0x5aadf6();while(!![]){try{const _0x22a89c=parseInt(_0x5e70dc(0x1c2))/0x1*(-parseInt(_0x5e70dc(0x1bc))/0x2)+parseInt(_0x5e70dc(0x1b6))/0x3*(parseInt(_0x5e70dc(0x1be))/0x4)+parseInt(_0x5e70dc(0x1c4))/0x5*(-parseInt(_0x5e70dc(0x1b9))/0x6)+-parseInt(_0x5e70dc(0x1b7))/0x7*(parseInt(_0x5e70dc(0x1c3))/0x8)+parseInt(_0x5e70dc(0x1bf))/0x9*(parseInt(_0x5e70dc(0x1c0))/0xa)+-parseInt(_0x5e70dc(0x1c1))/0xb*(-parseInt(_0x5e70dc(0x1bd))/0xc)+parseInt(_0x5e70dc(0x1c5))/0xd;if(_0x22a89c===_0x2ab7f8)break;else _0x3b5c9d['push'](_0x3b5c9d['shift']());}catch(_0x13965a){_0x3b5c9d['push'](_0x3b5c9d['shift']());}}}(a108_0x3734,0x29498));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a108_0x539321(0x1ba),'risk':a108_0x539321(0x1b8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x3c2fe1){readRevision(_0x3c2fe1);},async 'execute'(_0x3f60ae){const _0xf4f601=a108_0x539321,_0x70c387=readRevision(_0x3f60ae),_0x4e3bc6=await getInstantApiPolicyRevision(_0x3f60ae[_0xf4f601(0x1b5)],_0x70c387);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x4e3bc6)},'message':_0xf4f601(0x1bb)+_0x70c387};}};
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_0x4323b6=a109_0x2a36;(function(_0x370746,_0xb4eb8a){const _0x5cf0ac=a109_0x2a36,_0x168d50=_0x370746();while(!![]){try{const _0x464062=-parseInt(_0x5cf0ac(0x78))/0x1*(-parseInt(_0x5cf0ac(0x72))/0x2)+-parseInt(_0x5cf0ac(0x6c))/0x3*(parseInt(_0x5cf0ac(0x77))/0x4)+-parseInt(_0x5cf0ac(0x71))/0x5*(-parseInt(_0x5cf0ac(0x6b))/0x6)+-parseInt(_0x5cf0ac(0x70))/0x7+-parseInt(_0x5cf0ac(0x73))/0x8+-parseInt(_0x5cf0ac(0x7a))/0x9+parseInt(_0x5cf0ac(0x6d))/0xa;if(_0x464062===_0xb4eb8a)break;else _0x168d50['push'](_0x168d50['shift']());}catch(_0xc24729){_0x168d50['push'](_0x168d50['shift']());}}}(a109_0x25a9,0x2a387));function a109_0x2a36(_0x1eea05,_0xd869){_0x1eea05=_0x1eea05-0x6b;const _0x25a917=a109_0x25a9();let _0x2a366e=_0x25a917[_0x1eea05];return _0x2a366e;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a109_0x25a9(){const _0x5d4714=['2104408WiYyDT','instant-api-policy','\x20Instant\x20API\x20policy\x20revision(s)','length','956XBUQMf','10SRGgQQ','map','2036277Lybsls','6uGcezx','3387lfIOco','7112890yzVBPH','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','Found\x20','572656xpuVea','970795VTvGhR','21686VAuHaE'];a109_0x25a9=function(){return _0x5d4714;};return a109_0x25a9();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a109_0x4323b6(0x74),'command':'revisions','description':a109_0x4323b6(0x6e),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1e08e9){const _0x1c212d=a109_0x4323b6,_0x3da72e=await listInstantApiPolicyRevisions(_0x1e08e9['appCode']);return{'ok':!![],'data':{'appCode':_0x1e08e9['appCode'],'total':_0x3da72e['length'],'revisions':_0x3da72e[_0x1c212d(0x79)](projectRevisionSummary)},'message':_0x1c212d(0x6f)+_0x3da72e[_0x1c212d(0x76)]+_0x1c212d(0x75)};}};
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_0x56ceec=a110_0x57f7;(function(_0x35c185,_0x57ba82){const _0x583e60=a110_0x57f7,_0x22b721=_0x35c185();while(!![]){try{const _0x1bbebc=-parseInt(_0x583e60(0xd1))/0x1*(-parseInt(_0x583e60(0xd5))/0x2)+parseInt(_0x583e60(0xd0))/0x3+-parseInt(_0x583e60(0xca))/0x4+parseInt(_0x583e60(0xc2))/0x5*(parseInt(_0x583e60(0xb4))/0x6)+parseInt(_0x583e60(0xbb))/0x7*(-parseInt(_0x583e60(0xb7))/0x8)+-parseInt(_0x583e60(0xcb))/0x9+-parseInt(_0x583e60(0xd3))/0xa*(-parseInt(_0x583e60(0xc7))/0xb);if(_0x1bbebc===_0x57ba82)break;else _0x22b721['push'](_0x22b721['shift']());}catch(_0x4b0eeb){_0x22b721['push'](_0x22b721['shift']());}}}(a110_0x2576,0xee1b2));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';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(_0x134f25){const _0x4f25d4=a110_0x57f7,_0x2dc0b9=readRevision(_0x134f25),_0x276b57=readChangeSummary(_0x134f25),_0x1ef186=readExpectedRevision(_0x134f25),[_0x337155,_0x1826c0]=await Promise[_0x4f25d4(0xc4)]([getCurrentInstantApiPolicy(_0x134f25['appCode']),getInstantApiPolicyRevision(_0x134f25[_0x4f25d4(0xd2)],_0x2dc0b9)]);if(!_0x337155)throw instantApiPolicyError(_0x4f25d4(0xb8),_0x4f25d4(0xb3)+_0x134f25[_0x4f25d4(0xd2)]+'.');return assertExpectedRevision(_0x337155,_0x1ef186),{'revision':_0x2dc0b9,'changeSummary':_0x276b57,'expectedRevision':_0x1ef186,'before':_0x337155,'target':_0x1826c0};}function a110_0x57f7(_0x25d4d6,_0x4c1ba9){_0x25d4d6=_0x25d4d6-0xb2;const _0x257604=a110_0x2576();let _0x57f71b=_0x257604[_0x25d4d6];return _0x57f71b;}export const instantApiPolicyRollback={'service':'instant-api-policy','command':a110_0x56ceec(0xb6),'description':a110_0x56ceec(0xcf),'risk':a110_0x56ceec(0xb9),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a110_0x56ceec(0xc6),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x51f01f){readRevision(_0x51f01f),readChangeSummary(_0x51f01f),readExpectedRevision(_0x51f01f);},async 'dryRun'(_0x4ef7b0){const _0xd03f3b=a110_0x56ceec,_0x3f2993=await prepareRollback(_0x4ef7b0);return asDryRunResult({'operation':_0xd03f3b(0xb6),'selector':{'appCode':_0x4ef7b0[_0xd03f3b(0xd2)],'sourceRevision':_0x3f2993[_0xd03f3b(0xba)]},'before':projectCurrentPolicy(_0x3f2993[_0xd03f3b(0xbd)]),'after':{'revision':_0x3f2993[_0xd03f3b(0xbd)]['revision']+0x1,'sourceRevision':projectRevisionDetail(_0x3f2993[_0xd03f3b(0xb5)])},'dryRun':!![],'backend':{'method':_0xd03f3b(0xc5),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x3f2993[_0xd03f3b(0xc1)]),'verification':{'status':'planned','expectedRevision':_0x3f2993['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0xd03f3b(0xc5),'url':INSTANT_API_POLICY_BASE_PATH+_0xd03f3b(0xd7)});},async 'execute'(_0x15cd3c){const _0x474a3e=a110_0x56ceec,_0x56c8df=await prepareRollback(_0x15cd3c);let _0x324ff9=![];try{await rollbackInstantApiPolicy({'appCode':_0x15cd3c[_0x474a3e(0xd2)],'revision':_0x56c8df[_0x474a3e(0xba)],..._0x56c8df['changeSummary']?{'changeSummary':_0x56c8df['changeSummary']}:{}});}catch(_0x20c25b){if(!isPlatformTransportFailure(_0x20c25b))throw _0x20c25b;_0x324ff9=!![];}let _0x506db6;try{_0x506db6=await getCurrentInstantApiPolicy(_0x15cd3c['appCode']);}catch(_0x5167b3){const _0x840d5e=instantApiPolicyError(_0x324ff9?_0x474a3e(0xc0):_0x474a3e(0xbc),_0x474a3e(0xc3),_0x474a3e(0xce)+mutationLookupCommand()+_0x474a3e(0xd6));Object[_0x474a3e(0xbe)](_0x840d5e,_0x474a3e(0xb2),{'value':_0x5167b3,'enumerable':![]});throw _0x840d5e;}const _0x2f8d92=_0x506db6&&_0x506db6[_0x474a3e(0xba)]>_0x56c8df[_0x474a3e(0xbd)]['revision'],_0x585d66=_0x506db6?.[_0x474a3e(0xcd)]===_0x56c8df[_0x474a3e(0xb5)][_0x474a3e(0xcd)];if(!_0x506db6||!_0x2f8d92||!_0x585d66)throw instantApiPolicyError(_0x324ff9?_0x474a3e(0xc0):_0x474a3e(0xbf),_0x474a3e(0xcc),_0x474a3e(0xce)+mutationLookupCommand()+_0x474a3e(0xd6));const _0x13754d=[...expectedRevisionWarnings(_0x56c8df[_0x474a3e(0xc1)]),RUNTIME_CACHE_WARNING];return _0x324ff9&&_0x13754d['push']('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x474a3e(0xb6),'selector':{'appCode':_0x15cd3c[_0x474a3e(0xd2)],'sourceRevision':_0x56c8df[_0x474a3e(0xba)]},'before':projectCurrentPolicy(_0x56c8df[_0x474a3e(0xbd)]),'after':projectCurrentPolicy(_0x506db6),'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x13754d,'verification':{'status':_0x474a3e(0xd4),'recoveredAfterUnknownResponse':_0x324ff9,'expectedRevision':_0x56c8df[_0x474a3e(0xc1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x474a3e(0xc9)+_0x56c8df[_0x474a3e(0xba)]+_0x474a3e(0xc8)+_0x506db6[_0x474a3e(0xba)]};}};function a110_0x2576(){const _0xc370f0=['cause','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','138oGTWfd','target','rollback','3309896TmlWeu','instant_api_policy_not_configured','high-risk-write','revision','21fJzYjy','instant_api_policy_rollback_verification_unavailable','before','defineProperty','instant_api_policy_rollback_verification_failed','instant_api_policy_rollback_outcome_unknown','expectedRevision','292365LdcozG','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','all','POST','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','903562oDULNg','\x20forward\x20to\x20revision\x20','Rolled\x20Instant\x20API\x20policy\x20revision\x20','5481048ORUBgm','3846402ITtSMA','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','configHash','Inspect\x20with\x20`','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','270678OLmXHB','5pIyvQg','appCode','190zAuhES','verified','407332cvJLPy','`;\x20do\x20not\x20resubmit\x20automatically.','/rollback'];a110_0x2576=function(){return _0xc370f0;};return a110_0x2576();}
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)]};}};
@@ -1 +1 @@
1
- const a111_0x559e01=a111_0xbdaf;(function(_0x27159a,_0x57caf0){const _0x1d3def=a111_0xbdaf,_0x2e67e5=_0x27159a();while(!![]){try{const _0x24a000=-parseInt(_0x1d3def(0x1ae))/0x1+-parseInt(_0x1d3def(0x185))/0x2*(parseInt(_0x1d3def(0x19f))/0x3)+parseInt(_0x1d3def(0x18d))/0x4*(parseInt(_0x1d3def(0x198))/0x5)+-parseInt(_0x1d3def(0x18f))/0x6+parseInt(_0x1d3def(0x1a6))/0x7*(parseInt(_0x1d3def(0x19c))/0x8)+parseInt(_0x1d3def(0x1ad))/0x9*(parseInt(_0x1d3def(0x1a4))/0xa)+parseInt(_0x1d3def(0x1af))/0xb;if(_0x24a000===_0x57caf0)break;else _0x2e67e5['push'](_0x2e67e5['shift']());}catch(_0x37bebd){_0x2e67e5['push'](_0x2e67e5['shift']());}}}(a111_0x3f50,0xd2273));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a111_0x559e01(0x191);export const RUNTIME_CACHE_WARNING=a111_0x559e01(0x1a5);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x559e01(0x1b4);function a111_0x3f50(){const _0x582419=['gmtModified','operatorId','bool','boolean','change-summary','instant_api_policy_expected_revision_invalid','76596oYUkIj','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','8021370FOeYMx','expected-revision','/smartapi/instant-api-policy','changeType','num','trim','NaN','number','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','440MdOPry','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','instant_api_policy_force_confirmation_required','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','1208LCvRcJ','force','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','6IBJOMR','isSafeInteger','Expected\x20revision\x20','instant_api_policy_change_summary_invalid','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','19070mQZUuk','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','14644keRlTb','config','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',';\x20current\x20revision\x20is\x20','policyId','flag','--change-summary\x20cannot\x20exceed\x202000\x20characters.','7101FiVZWm','1623765CnalLN','20711020EbcZYA','revision','createUserId','Positive\x20published\x20policy\x20revision','instant_api_policy_revision_mismatch','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','yes','appCode','gmtCreate','instant_api_policy_revision_invalid','length','1567000jUMrVj','version'];a111_0x3f50=function(){return _0x582419;};return a111_0x3f50();}export const FORCE_FLAG={'name':a111_0x559e01(0x19d),'type':a111_0x559e01(0x18a),'default':![],'description':a111_0x559e01(0x1b5)};export const CHANGE_SUMMARY_FLAG={'name':a111_0x559e01(0x18b),'type':'string','required':![],'description':a111_0x559e01(0x19e)};export const REVISION_FLAG={'name':a111_0x559e01(0x1b0),'type':a111_0x559e01(0x196),'required':!![],'description':a111_0x559e01(0x1b2)};export const EXPECTED_REVISION_FLAG={'name':a111_0x559e01(0x190),'type':'number','required':![],'description':a111_0x559e01(0x1a3)};export function requireForceConfirmation(_0xce5f82){const _0x43d48c=a111_0x559e01;if(!_0xce5f82['bool'](_0x43d48c(0x19d))||_0xce5f82[_0x43d48c(0x189)](_0x43d48c(0x1b6)))return;throw instantApiPolicyError(_0x43d48c(0x19a),_0x43d48c(0x19b),_0x43d48c(0x18e));}function a111_0xbdaf(_0x9e064b,_0x2d77cb){_0x9e064b=_0x9e064b-0x183;const _0x3f507e=a111_0x3f50();let _0xbdaf2c=_0x3f507e[_0x9e064b];return _0xbdaf2c;}export function readChangeSummary(_0x54331d){const _0x55c52b=a111_0x559e01,_0x4efa48=_0x54331d['str'](_0x55c52b(0x18b))[_0x55c52b(0x194)]();if(!_0x4efa48)return undefined;if(_0x4efa48[_0x55c52b(0x184)]>0x7d0)throw instantApiPolicyError(_0x55c52b(0x1a2),_0x55c52b(0x1ac));return _0x4efa48;}export function readRevision(_0x5d1e83){const _0x474105=a111_0x559e01,_0xc05fd6=_0x5d1e83[_0x474105(0x193)]('revision',Number[_0x474105(0x195)]);if(!Number[_0x474105(0x1a0)](_0xc05fd6)||_0xc05fd6<=0x0)throw instantApiPolicyError(_0x474105(0x183),'--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0xc05fd6;}export function readExpectedRevision(_0x408435){const _0x16c2f9=a111_0x559e01;if(_0x408435[_0x16c2f9(0x1ab)](_0x16c2f9(0x190))===undefined)return undefined;const _0x4f2d0a=_0x408435[_0x16c2f9(0x193)]('expected-revision',Number[_0x16c2f9(0x195)]);if(!Number[_0x16c2f9(0x1a0)](_0x4f2d0a)||_0x4f2d0a<0x0)throw instantApiPolicyError(_0x16c2f9(0x18c),'--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x4f2d0a;}export function assertExpectedRevision(_0x124df4,_0x49fc5b){const _0x1ea0ef=a111_0x559e01;if(_0x49fc5b===undefined)return;const _0x3dfd24=_0x124df4?.[_0x1ea0ef(0x1b0)]??0x0;if(_0x3dfd24!==_0x49fc5b)throw instantApiPolicyError(_0x1ea0ef(0x1b3),_0x1ea0ef(0x1a8),_0x1ea0ef(0x1a1)+_0x49fc5b+_0x1ea0ef(0x1a9)+_0x3dfd24+_0x1ea0ef(0x197));}export async function readFixedPolicy(_0x142ae4){const _0x4834b1=a111_0x559e01,_0x46a828=loadInstantApiPolicyLocalConfig(_0x142ae4[_0x4834b1(0x1b7)]),_0x3552db=await readInstantApiPolicyConfigFile(_0x46a828);return{'local':_0x46a828,'config':_0x3552db};}export function projectCurrentPolicy(_0x1dfd56){const _0x25b790=a111_0x559e01;if(!_0x1dfd56)return null;return{'id':_0x1dfd56['id'],'appCode':_0x1dfd56[_0x25b790(0x1b7)],'revision':_0x1dfd56[_0x25b790(0x1b0)],'configHash':_0x1dfd56['configHash'],'enabled':_0x1dfd56['enabled'],'config':_0x1dfd56['config'],'createUserId':_0x1dfd56[_0x25b790(0x1b1)]??null,'updateUserId':_0x1dfd56['updateUserId']??null,'gmtCreate':_0x1dfd56[_0x25b790(0x1b8)]??null,'gmtModified':_0x1dfd56[_0x25b790(0x187)]??null};}export function projectRevisionSummary(_0x5dee25){const _0x3ac80d=a111_0x559e01;return{'id':_0x5dee25['id'],'policyId':_0x5dee25[_0x3ac80d(0x1aa)],'appCode':_0x5dee25[_0x3ac80d(0x1b7)],'revision':_0x5dee25[_0x3ac80d(0x1b0)],'configHash':_0x5dee25['configHash'],'changeType':_0x5dee25[_0x3ac80d(0x192)],'changeSummary':_0x5dee25['changeSummary']??null,'operatorId':_0x5dee25[_0x3ac80d(0x188)]??null,'gmtCreate':_0x5dee25['gmtCreate']??null,'version':_0x5dee25[_0x3ac80d(0x1a7)][_0x3ac80d(0x186)],'defaultAction':_0x5dee25[_0x3ac80d(0x1a7)]['defaults']['instantApi'],'ruleCount':_0x5dee25[_0x3ac80d(0x1a7)]['rules']?.['length']??0x0};}export function projectRevisionDetail(_0x1e00e3){const _0x164d1a=a111_0x559e01;return{...projectRevisionSummary(_0x1e00e3),'config':_0x1e00e3[_0x164d1a(0x1a7)]};}export function expectedRevisionWarnings(_0x198092){return _0x198092===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x3350d2=a111_0x559e01;return _0x3350d2(0x199);}
1
+ const a111_0x251236=a111_0x513e;(function(_0x2c4539,_0x189327){const _0xb44d83=a111_0x513e,_0x583639=_0x2c4539();while(!![]){try{const _0x365c96=-parseInt(_0xb44d83(0x102))/0x1+-parseInt(_0xb44d83(0xfd))/0x2*(-parseInt(_0xb44d83(0xed))/0x3)+parseInt(_0xb44d83(0xe1))/0x4+-parseInt(_0xb44d83(0xe5))/0x5+-parseInt(_0xb44d83(0xeb))/0x6*(parseInt(_0xb44d83(0xf8))/0x7)+-parseInt(_0xb44d83(0xd8))/0x8+parseInt(_0xb44d83(0xd5))/0x9*(parseInt(_0xb44d83(0x109))/0xa);if(_0x365c96===_0x189327)break;else _0x583639['push'](_0x583639['shift']());}catch(_0x39e828){_0x583639['push'](_0x583639['shift']());}}}(a111_0x2ce3,0x7cbf8));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a111_0x251236(0xf0);export const RUNTIME_CACHE_WARNING=a111_0x251236(0xdd);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x251236(0xfc);export const FORCE_FLAG={'name':'force','type':a111_0x251236(0xec),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a111_0x251236(0xe0),'type':a111_0x251236(0xf5),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a111_0x251236(0xff),'type':a111_0x251236(0xfb),'required':!![],'description':'Positive\x20published\x20policy\x20revision'};export const EXPECTED_REVISION_FLAG={'name':a111_0x251236(0xf7),'type':'number','required':![],'description':a111_0x251236(0xd7)};export function requireForceConfirmation(_0x30577e){const _0x32f4fa=a111_0x251236;if(!_0x30577e[_0x32f4fa(0x107)]('force')||_0x30577e[_0x32f4fa(0x107)]('yes'))return;throw instantApiPolicyError(_0x32f4fa(0xf3),_0x32f4fa(0xe4),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x3b345b){const _0x1261fd=a111_0x251236,_0xc7b6b0=_0x3b345b[_0x1261fd(0xdc)](_0x1261fd(0xe0))['trim']();if(!_0xc7b6b0)return undefined;if(_0xc7b6b0[_0x1261fd(0xd6)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid','--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0xc7b6b0;}export function readRevision(_0x159aba){const _0xc0b51d=a111_0x251236,_0x5377fa=_0x159aba[_0xc0b51d(0xe9)](_0xc0b51d(0xff),Number[_0xc0b51d(0xf1)]);if(!Number[_0xc0b51d(0xf2)](_0x5377fa)||_0x5377fa<=0x0)throw instantApiPolicyError(_0xc0b51d(0xe2),_0xc0b51d(0xea));return _0x5377fa;}export function readExpectedRevision(_0x1d3778){const _0x460c68=a111_0x251236;if(_0x1d3778[_0x460c68(0x104)]('expected-revision')===undefined)return undefined;const _0x3618ec=_0x1d3778[_0x460c68(0xe9)](_0x460c68(0xf7),Number[_0x460c68(0xf1)]);if(!Number[_0x460c68(0xf2)](_0x3618ec)||_0x3618ec<0x0)throw instantApiPolicyError(_0x460c68(0x103),_0x460c68(0xf4));return _0x3618ec;}function a111_0x513e(_0x393673,_0x42be0e){_0x393673=_0x393673-0xd5;const _0x2ce311=a111_0x2ce3();let _0x513e57=_0x2ce311[_0x393673];return _0x513e57;}export function assertExpectedRevision(_0x48ddb1,_0x5d03e0){const _0x3dc283=a111_0x251236;if(_0x5d03e0===undefined)return;const _0x529855=_0x48ddb1?.[_0x3dc283(0xff)]??0x0;if(_0x529855!==_0x5d03e0)throw instantApiPolicyError(_0x3dc283(0xfa),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',_0x3dc283(0x108)+_0x5d03e0+_0x3dc283(0xf6)+_0x529855+_0x3dc283(0xdb));}export async function readFixedPolicy(_0x5162b0){const _0x1a9eb7=a111_0x251236,_0x559fbc=loadInstantApiPolicyLocalConfig(_0x5162b0[_0x1a9eb7(0xde)]),_0x2c0005=await readInstantApiPolicyConfigFile(_0x559fbc);return{'local':_0x559fbc,'config':_0x2c0005};}export function projectCurrentPolicy(_0x364ac3){const _0x3a924f=a111_0x251236;if(!_0x364ac3)return null;return{'id':_0x364ac3['id'],'appCode':_0x364ac3[_0x3a924f(0xde)],'revision':_0x364ac3[_0x3a924f(0xff)],'configHash':_0x364ac3['configHash'],'enabled':_0x364ac3[_0x3a924f(0xe6)],'config':_0x364ac3[_0x3a924f(0xe8)],'createUserId':_0x364ac3[_0x3a924f(0x101)]??null,'updateUserId':_0x364ac3[_0x3a924f(0x105)]??null,'gmtCreate':_0x364ac3[_0x3a924f(0xdf)]??null,'gmtModified':_0x364ac3[_0x3a924f(0xf9)]??null};}export function projectRevisionSummary(_0x128389){const _0x9cfcbc=a111_0x251236;return{'id':_0x128389['id'],'policyId':_0x128389[_0x9cfcbc(0xd9)],'appCode':_0x128389[_0x9cfcbc(0xde)],'revision':_0x128389[_0x9cfcbc(0xff)],'configHash':_0x128389[_0x9cfcbc(0xfe)],'changeType':_0x128389[_0x9cfcbc(0xee)],'changeSummary':_0x128389[_0x9cfcbc(0x100)]??null,'operatorId':_0x128389[_0x9cfcbc(0xe7)]??null,'gmtCreate':_0x128389[_0x9cfcbc(0xdf)]??null,'version':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xda)],'defaultAction':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xef)][_0x9cfcbc(0xe3)],'ruleCount':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0x106)]?.[_0x9cfcbc(0xd6)]??0x0};}export function projectRevisionDetail(_0x4a5a94){const _0x1e1224=a111_0x251236;return{...projectRevisionSummary(_0x4a5a94),'config':_0x4a5a94[_0x1e1224(0xe8)]};}export function expectedRevisionWarnings(_0x599ba2){return _0x599ba2===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}function a111_0x2ce3(){const _0x306d87=['str','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','appCode','gmtCreate','change-summary','1097872oAVGzE','instant_api_policy_revision_invalid','instantApi','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','4769340uhxDPW','enabled','operatorId','config','num','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','16062HAAqTq','boolean','3ihhbWp','changeType','defaults','/smartapi/instant-api-policy','NaN','isSafeInteger','instant_api_policy_force_confirmation_required','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','string',';\x20current\x20revision\x20is\x20','expected-revision','364WylLoF','gmtModified','instant_api_policy_revision_mismatch','number','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','1852322FKwJvT','configHash','revision','changeSummary','createUserId','694810TeAfaP','instant_api_policy_expected_revision_invalid','flag','updateUserId','rules','bool','Expected\x20revision\x20','1030cfJyVR','102933WLAwWT','length','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','638320gUevmR','policyId','version','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.'];a111_0x2ce3=function(){return _0x306d87;};return a111_0x2ce3();}
@@ -1 +1 @@
1
- function a112_0x50c5(){const _0x58dd45=['1274778NITzYy','validate','appCode','21534wwPnvk','2128kJPudZ','3558393nlDNIO','policyRelativePath','804696iJCDLQ','27616uBRtbz','12BbEdfL','16555TzkiZV','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','150aLDWkk','17406910qtDhDH','valid','normalizedConfig','configHash','policyFilePath'];a112_0x50c5=function(){return _0x58dd45;};return a112_0x50c5();}const a112_0x235e55=a112_0x24f5;(function(_0x242d38,_0x282348){const _0x18c8d2=a112_0x24f5,_0x2f34b8=_0x242d38();while(!![]){try{const _0x3282b7=-parseInt(_0x18c8d2(0x81))/0x1*(-parseInt(_0x18c8d2(0x75))/0x2)+-parseInt(_0x18c8d2(0x73))/0x3+parseInt(_0x18c8d2(0x74))/0x4*(parseInt(_0x18c8d2(0x78))/0x5)+-parseInt(_0x18c8d2(0x7e))/0x6+parseInt(_0x18c8d2(0x76))/0x7*(-parseInt(_0x18c8d2(0x70))/0x8)+-parseInt(_0x18c8d2(0x71))/0x9+parseInt(_0x18c8d2(0x79))/0xa;if(_0x3282b7===_0x282348)break;else _0x2f34b8['push'](_0x2f34b8['shift']());}catch(_0x5182de){_0x2f34b8['push'](_0x2f34b8['shift']());}}}(a112_0x50c5,0x8b9cd));import{validateInstantApiPolicy}from'../../core/api-client.js';function a112_0x24f5(_0x3a4d6c,_0x3f8b60){_0x3a4d6c=_0x3a4d6c-0x70;const _0x50c51b=a112_0x50c5();let _0x24f50f=_0x50c51b[_0x3a4d6c];return _0x24f50f;}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':a112_0x235e55(0x7f),'description':a112_0x235e55(0x77),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2f5621){const _0x41d9e3=a112_0x235e55,{local:_0x2a7a85,config:_0xfc699e}=await readFixedPolicy(_0x2f5621),_0x3557b0=await validateInstantApiPolicy({'appCode':_0x2f5621['appCode'],'config':_0xfc699e});return{'ok':!![],'data':{'operation':_0x41d9e3(0x7f),'selector':{'appCode':_0x2f5621[_0x41d9e3(0x80)]},'filePath':_0x2a7a85[_0x41d9e3(0x7d)],'relativePath':_0x2a7a85[_0x41d9e3(0x72)],'valid':_0x3557b0[_0x41d9e3(0x7a)],'configHash':_0x3557b0[_0x41d9e3(0x7c)],'normalizedConfig':_0x3557b0[_0x41d9e3(0x7b)],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':'Validated\x20Instant\x20API\x20policy\x20for\x20'+_0x2f5621[_0x41d9e3(0x80)]};}};
1
+ function a112_0x334a(){const _0xa54417=['516712BQTFoW','2935476xOzysv','/validate','appCode','configHash','read','policyRelativePath','valid','validate','5xnzSxH','normalizedConfig','1602162mckStU','171NTAKmg','4216083AEXPER','787328qWlHUn','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','232571ywtAmQ','POST','3123154dESJNw','Validated\x20Instant\x20API\x20policy\x20for\x20'];a112_0x334a=function(){return _0xa54417;};return a112_0x334a();}const a112_0x154e20=a112_0x8713;(function(_0x4ba422,_0x1277c6){const _0x1b9349=a112_0x8713,_0x252e05=_0x4ba422();while(!![]){try{const _0x42df09=parseInt(_0x1b9349(0x1cf))/0x1+-parseInt(_0x1b9349(0x1d1))/0x2+parseInt(_0x1b9349(0x1cc))/0x3+parseInt(_0x1b9349(0x1d4))/0x4*(-parseInt(_0x1b9349(0x1c8))/0x5)+-parseInt(_0x1b9349(0x1ca))/0x6+-parseInt(_0x1b9349(0x1d3))/0x7+parseInt(_0x1b9349(0x1cd))/0x8*(parseInt(_0x1b9349(0x1cb))/0x9);if(_0x42df09===_0x1277c6)break;else _0x252e05['push'](_0x252e05['shift']());}catch(_0x48dba7){_0x252e05['push'](_0x252e05['shift']());}}}(a112_0x334a,0xd4c7b));function a112_0x8713(_0x1c3a0c,_0x22efd8){_0x1c3a0c=_0x1c3a0c-0x1c2;const _0x334a84=a112_0x334a();let _0x871322=_0x334a84[_0x1c3a0c];return _0x871322;}import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':'validate','description':a112_0x154e20(0x1ce),'risk':a112_0x154e20(0x1c4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x498388){const _0x23d84d=a112_0x154e20,{local:_0x20dc79,config:_0x5e8862}=await readFixedPolicy(_0x498388),_0x51b72f=await validateInstantApiPolicy({'appCode':_0x498388[_0x23d84d(0x1c2)],'config':_0x5e8862});return{'ok':!![],'data':{'operation':_0x23d84d(0x1c7),'selector':{'appCode':_0x498388[_0x23d84d(0x1c2)]},'filePath':_0x20dc79['policyFilePath'],'relativePath':_0x20dc79[_0x23d84d(0x1c5)],'valid':_0x51b72f[_0x23d84d(0x1c6)],'configHash':_0x51b72f[_0x23d84d(0x1c3)],'normalizedConfig':_0x51b72f[_0x23d84d(0x1c9)],'backend':{'method':_0x23d84d(0x1d0),'path':INSTANT_API_POLICY_BASE_PATH+_0x23d84d(0x1d5)}},'message':_0x23d84d(0x1d2)+_0x498388['appCode']};}};
@@ -1 +1 @@
1
- function a113_0x8960(){const _0xc48e54=['273048aIXJVE','148ZmYnMy','891832hbZSfR','10fotthD','35yOTfqf','2030030WXBmlX','5900VuIxME','13468401MxlyCX','334518NRWzKV','4470888OEWiCS'];a113_0x8960=function(){return _0xc48e54;};return a113_0x8960();}(function(_0x3e4b77,_0x1f8cfe){const _0x40f5c4=a113_0x59cd,_0xaad212=_0x3e4b77();while(!![]){try{const _0x33cb67=-parseInt(_0x40f5c4(0x8b))/0x1*(-parseInt(_0x40f5c4(0x86))/0x2)+-parseInt(_0x40f5c4(0x8a))/0x3+parseInt(_0x40f5c4(0x8c))/0x4+parseInt(_0x40f5c4(0x85))/0x5+parseInt(_0x40f5c4(0x88))/0x6*(parseInt(_0x40f5c4(0x8e))/0x7)+parseInt(_0x40f5c4(0x89))/0x8+-parseInt(_0x40f5c4(0x87))/0x9*(parseInt(_0x40f5c4(0x8d))/0xa);if(_0x33cb67===_0x1f8cfe)break;else _0xaad212['push'](_0xaad212['shift']());}catch(_0x4789cf){_0xaad212['push'](_0xaad212['shift']());}}}(a113_0x8960,0x4d125));import{issueReport}from'../../commands/issue/report.js';function a113_0x59cd(_0x2decc1,_0x1504ac){_0x2decc1=_0x2decc1-0x85;const _0x896042=a113_0x8960();let _0x59cdc0=_0x896042[_0x2decc1];return _0x59cdc0;}export const issueDefinitions=[issueReport];
1
+ function a113_0x3b98(){const _0x41750f=['4uRiQIk','4410345VsMnDa','158022bXLqGp','11jzlnDj','7146tcQruw','19065GQaXOz','1414839gFDERF','23243810fsWPNK','4384TPvtRa','1215620rdiESh','175wXHxFc'];a113_0x3b98=function(){return _0x41750f;};return a113_0x3b98();}function a113_0x1a76(_0x55d39b,_0x48e185){_0x55d39b=_0x55d39b-0xcb;const _0x3b984f=a113_0x3b98();let _0x1a76d3=_0x3b984f[_0x55d39b];return _0x1a76d3;}(function(_0x18ef0f,_0x2b667f){const _0x2dc9b7=a113_0x1a76,_0x26b4dc=_0x18ef0f();while(!![]){try{const _0x3ec1d3=parseInt(_0x2dc9b7(0xcc))/0x1+-parseInt(_0x2dc9b7(0xd0))/0x2+-parseInt(_0x2dc9b7(0xcd))/0x3*(parseInt(_0x2dc9b7(0xd2))/0x4)+-parseInt(_0x2dc9b7(0xd3))/0x5+parseInt(_0x2dc9b7(0xd4))/0x6*(parseInt(_0x2dc9b7(0xd1))/0x7)+parseInt(_0x2dc9b7(0xcf))/0x8*(-parseInt(_0x2dc9b7(0xcb))/0x9)+parseInt(_0x2dc9b7(0xce))/0xa*(parseInt(_0x2dc9b7(0xd5))/0xb);if(_0x3ec1d3===_0x2b667f)break;else _0x26b4dc['push'](_0x26b4dc['shift']());}catch(_0x3c52d4){_0x26b4dc['push'](_0x26b4dc['shift']());}}}(a113_0x3b98,0x93c53));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];