@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/index.js +1 -1
  99. package/lib/commands/deployment/sync-all.js +1 -1
  100. package/lib/commands/deployment/sync-jobs.js +1 -1
  101. package/lib/commands/deployment/sync-status.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/instant-api-policy/current.js +1 -1
  105. package/lib/commands/instant-api-policy/index.js +1 -1
  106. package/lib/commands/instant-api-policy/init.js +1 -1
  107. package/lib/commands/instant-api-policy/publish.js +1 -1
  108. package/lib/commands/instant-api-policy/pull.js +1 -1
  109. package/lib/commands/instant-api-policy/revision.js +1 -1
  110. package/lib/commands/instant-api-policy/revisions.js +1 -1
  111. package/lib/commands/instant-api-policy/rollback.js +1 -1
  112. package/lib/commands/instant-api-policy/shared.js +1 -1
  113. package/lib/commands/instant-api-policy/validate.js +1 -1
  114. package/lib/commands/issue/index.js +1 -1
  115. package/lib/commands/issue/nudge.js +1 -1
  116. package/lib/commands/issue/report.js +1 -1
  117. package/lib/commands/issue/shared.js +1 -1
  118. package/lib/commands/kb/create.js +1 -1
  119. package/lib/commands/kb/delete.js +1 -1
  120. package/lib/commands/kb/detail.js +1 -1
  121. package/lib/commands/kb/index.js +1 -1
  122. package/lib/commands/kb/list.js +1 -1
  123. package/lib/commands/kb/search.js +1 -1
  124. package/lib/commands/kb/shared.js +1 -1
  125. package/lib/commands/kb/update.js +1 -1
  126. package/lib/commands/logs/index.js +1 -1
  127. package/lib/commands/menu/asset-update.js +1 -1
  128. package/lib/commands/menu/delete.js +1 -1
  129. package/lib/commands/menu/external-link-create.js +1 -1
  130. package/lib/commands/menu/external-link-update.js +1 -1
  131. package/lib/commands/menu/group-create.js +1 -1
  132. package/lib/commands/menu/group-update.js +1 -1
  133. package/lib/commands/menu/index.js +1 -1
  134. package/lib/commands/menu/list.js +1 -1
  135. package/lib/commands/menu/move.js +1 -1
  136. package/lib/commands/menu/regroup-start.js +1 -1
  137. package/lib/commands/menu/rename.js +1 -1
  138. package/lib/commands/menu/shared/compare-table.js +1 -1
  139. package/lib/commands/menu/shared/delete-plan.js +1 -1
  140. package/lib/commands/menu/shared/facts.js +1 -1
  141. package/lib/commands/menu/shared/index.js +1 -1
  142. package/lib/commands/menu/shared/inquirer.js +1 -1
  143. package/lib/commands/menu/shared/local-pages.js +1 -1
  144. package/lib/commands/menu/shared/logic.js +1 -1
  145. package/lib/commands/menu/shared/mutations.js +1 -1
  146. package/lib/commands/menu/shared/service.js +1 -1
  147. package/lib/commands/menu/shared/sync-core.js +1 -1
  148. package/lib/commands/menu/shared/update-core.js +1 -1
  149. package/lib/commands/menu/shared/valid-url.js +1 -1
  150. package/lib/commands/menu/sync.js +1 -1
  151. package/lib/commands/menu/visibility-update.js +1 -1
  152. package/lib/commands/notification/config-create.js +1 -1
  153. package/lib/commands/notification/config-delete.js +1 -1
  154. package/lib/commands/notification/config-list.js +1 -1
  155. package/lib/commands/notification/config-update.js +1 -1
  156. package/lib/commands/notification/index.js +1 -1
  157. package/lib/commands/notification/shared.js +1 -1
  158. package/lib/commands/ocr/index.js +1 -1
  159. package/lib/commands/page/create.js +1 -1
  160. package/lib/commands/page/custom/detail.js +1 -1
  161. package/lib/commands/page/custom/list.js +1 -1
  162. package/lib/commands/page/custom/publish.js +1 -1
  163. package/lib/commands/page/custom/shared.js +1 -1
  164. package/lib/commands/page/custom/syntax.js +1 -1
  165. package/lib/commands/page/custom/update.js +1 -1
  166. package/lib/commands/page/data-list-status.js +1 -1
  167. package/lib/commands/page/generate-start.js +1 -1
  168. package/lib/commands/page/generate-status.js +1 -1
  169. package/lib/commands/page/index.js +1 -1
  170. package/lib/commands/page/pull.js +1 -1
  171. package/lib/commands/page/push.js +1 -1
  172. package/lib/commands/page/relation-audit.js +1 -1
  173. package/lib/commands/page/restore.js +1 -1
  174. package/lib/commands/page/shared.js +1 -1
  175. package/lib/commands/page/sync.js +1 -1
  176. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  177. package/lib/commands/project/create/format-elapsed.js +1 -1
  178. package/lib/commands/project/create/main.js +1 -1
  179. package/lib/commands/project/create/materialize-project-template.js +1 -1
  180. package/lib/commands/project/create/project-name.js +1 -1
  181. package/lib/commands/project/create/project-template-archive.js +1 -1
  182. package/lib/commands/project/create/project-template-path.js +1 -1
  183. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  184. package/lib/commands/project/create/use-format-code.js +1 -1
  185. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  186. package/lib/commands/project/domain-routing-sync.js +1 -1
  187. package/lib/commands/project/index.js +1 -1
  188. package/lib/commands/project/upgrade.js +1 -1
  189. package/lib/commands/registry.js +1 -1
  190. package/lib/commands/role/delete.js +1 -1
  191. package/lib/commands/role/detail.js +1 -1
  192. package/lib/commands/role/index.js +1 -1
  193. package/lib/commands/role/list.js +1 -1
  194. package/lib/commands/role/shared.js +1 -1
  195. package/lib/commands/role/update.js +1 -1
  196. package/lib/commands/role/user-add.js +1 -1
  197. package/lib/commands/role/user-remove.js +1 -1
  198. package/lib/commands/role/user-resolve.js +1 -1
  199. package/lib/commands/rule/get.js +1 -1
  200. package/lib/commands/rule/index.js +1 -1
  201. package/lib/commands/rule/list.js +1 -1
  202. package/lib/commands/rule/set.js +1 -1
  203. package/lib/commands/rule/shared.js +1 -1
  204. package/lib/commands/run/index.js +1 -1
  205. package/lib/commands/schema.js +1 -1
  206. package/lib/commands/sql/create.js +1 -1
  207. package/lib/commands/sql/delete.js +1 -1
  208. package/lib/commands/sql/detail.js +1 -1
  209. package/lib/commands/sql/exec.js +1 -1
  210. package/lib/commands/sql/index.js +1 -1
  211. package/lib/commands/sql/list.js +1 -1
  212. package/lib/commands/sql/pull.js +1 -1
  213. package/lib/commands/sql/push.js +1 -1
  214. package/lib/commands/sql/shared.js +1 -1
  215. package/lib/commands/sql/status.js +1 -1
  216. package/lib/commands/sql/validate.js +1 -1
  217. package/lib/commands/task/index.js +1 -1
  218. package/lib/commands/task/status.js +1 -1
  219. package/lib/commands/tenant/index.js +1 -1
  220. package/lib/commands/tenant/members-list.js +1 -1
  221. package/lib/commands/tenant/shared.js +1 -1
  222. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  223. package/lib/commands/user-account/index.js +1 -1
  224. package/lib/commands/workspace/add.js +1 -1
  225. package/lib/commands/workspace/index.js +1 -1
  226. package/lib/commands/workspace/remove.js +1 -1
  227. package/lib/config/domain-config.js +1 -1
  228. package/lib/config/project-domain-routing.js +1 -1
  229. package/lib/config/schema.js +1 -1
  230. package/lib/constant/cdn.js +1 -1
  231. package/lib/constant/cli.js +1 -1
  232. package/lib/constant/defaults.js +1 -1
  233. package/lib/constant/domain.js +1 -1
  234. package/lib/constant/env.js +1 -1
  235. package/lib/constant/output.js +1 -1
  236. package/lib/constant/paths.js +1 -1
  237. package/lib/constant/region.js +1 -1
  238. package/lib/constant/risk.js +1 -1
  239. package/lib/constant/routing-profile.js +1 -1
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +0 -17
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/instant-api-policy/config.js +1 -1
  254. package/lib/core/kb-search-client.js +1 -1
  255. package/lib/core/page/file-system.js +1 -1
  256. package/lib/core/page/hash.js +1 -1
  257. package/lib/core/page/lock.js +1 -1
  258. package/lib/core/sql-index-auditor.js +1 -1
  259. package/lib/core/sql-sync/config.js +1 -1
  260. package/lib/core/sql-sync/file-system.js +1 -1
  261. package/lib/core/sql-sync/hash.js +1 -1
  262. package/lib/core/sql-sync/lock.js +1 -1
  263. package/lib/core/sql-sync/utils.js +1 -1
  264. package/lib/core/sql-validator.js +1 -1
  265. package/lib/errors.js +1 -1
  266. package/lib/framework/build-all-flags.js +1 -1
  267. package/lib/framework/error-output.js +1 -1
  268. package/lib/framework/explicit-yes.js +1 -1
  269. package/lib/framework/flags.js +1 -1
  270. package/lib/framework/help.js +1 -1
  271. package/lib/framework/index.js +1 -1
  272. package/lib/framework/output.js +1 -1
  273. package/lib/framework/response.js +1 -1
  274. package/lib/framework/runner-alias.js +1 -1
  275. package/lib/framework/runner.js +1 -1
  276. package/lib/framework/schema-export.js +1 -1
  277. package/lib/framework/supported-flags.js +1 -1
  278. package/lib/framework/types.js +1 -1
  279. package/lib/generated/build-info.d.ts +4 -4
  280. package/lib/generated/build-info.js +1 -1
  281. package/lib/generated/official-routing.js +1 -1
  282. package/lib/generated/routing-contract.js +1 -1
  283. package/lib/help.js +1 -1
  284. package/lib/postinstall.js +1 -1
  285. package/lib/runtime/confirmation.js +1 -1
  286. package/lib/runtime/event.js +1 -1
  287. package/lib/runtime/index.js +1 -1
  288. package/lib/runtime/queue.js +1 -1
  289. package/lib/runtime/resolve.js +1 -1
  290. package/lib/skills/builtin-skill.js +1 -1
  291. package/lib/skills/main.js +1 -1
  292. package/lib/skills/npx-skills-add.js +1 -1
  293. package/lib/skills/skill-presence.js +1 -1
  294. package/lib/telemetry/cli-command-trace.js +1 -1
  295. package/lib/telemetry/cli-help-trace.js +1 -1
  296. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  297. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  298. package/lib/telemetry/send-cli-trace-log.js +1 -1
  299. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  300. package/lib/utils/ai_config.js +1 -1
  301. package/lib/utils/apply-jq-filter.js +1 -1
  302. package/lib/utils/cdn-config.js +1 -1
  303. package/lib/utils/check-sdk-version.js +1 -1
  304. package/lib/utils/cli-version-check.js +1 -1
  305. package/lib/utils/cli-version-policy.js +1 -1
  306. package/lib/utils/config.js +1 -1
  307. package/lib/utils/entity-with-id.js +1 -1
  308. package/lib/utils/file-utils.js +1 -1
  309. package/lib/utils/guides-cdn.js +1 -1
  310. package/lib/utils/http-client.js +1 -1
  311. package/lib/utils/is-non-interactive.js +1 -1
  312. package/lib/utils/logger.js +1 -1
  313. package/lib/utils/params.js +1 -1
  314. package/lib/utils/platform.d.ts +6 -5
  315. package/lib/utils/platform.js +1 -1
  316. package/lib/utils/sleep.js +1 -1
  317. package/lib/utils/template-replacer.js +1 -1
  318. package/lib/utils/update-notice.js +1 -1
  319. package/lib/utils/version.js +1 -1
  320. package/lib/utils/with-active-cookie.js +1 -1
  321. package/lib/utils/write-cli-side-channel.js +1 -1
  322. package/package.json +1 -1
  323. package/skills/rabetbase/SKILL.md +5 -6
  324. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +56 -0
  325. package/skills/rabetbase.manifest.json +4 -4
  326. package/lib/commands/deployment/auto-sync.d.ts +0 -20
  327. package/lib/commands/deployment/auto-sync.js +0 -1
  328. package/lib/commands/deployment/sync.d.ts +0 -2
  329. package/lib/commands/deployment/sync.js +0 -1
  330. package/skills/rabetbase/references/rabetbase-deployment-sync.md +0 -100
@@ -1 +1 @@
1
- const a103_0x3bc738=a103_0x4ee9;function a103_0x1b33(){const _0xb49307=['packageVersion','value','verbose','region','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','call','\x20\x20Routing\x20Configuration','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','global','source','\x20doctor','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3594480WDIhiI','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Repair\x20global:\x20\x20\x20\x20','filter','currentApp','raw','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20config\x20delete\x20routing','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','11872896lLvfEd','\x20config\x20delete\x20region','10980450uytvdz','empty','skillVersion','1142868hZgAsV','✓\x20Valid\x20JSON','(no\x20file)','Project','repairCommand','\x20\x20─','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20Installed\x20Path:\x20\x20','\x20\x20API\x20Endpoints','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9iQEZMa','format','includes','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','stringify','apps','(default)','(set,\x20length=','version','(not\x20found)','✗\x20Invalid\x20JSON','check','state','doctor','red','Repair\x20','⚠\x20Empty\x20(treated\x20as\x20{})','prototype','(not\x20set)','\x20\x20Repair\x20global:\x20\x20\x20','\x20+\x20','accessKey','✗\x20Invalid','(missing)','null','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20←\x20current','riskLevel','(set\x20via\x20file,\x20length=','\x20\x20skillDomain:\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','current','appCode','pageSize','reason','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','projectConfig','cookie','env','\x20\x20Built-in\x20Skill','\x20config\x20delete\x20routing\x20--global','read','bold','\x20config\x20delete\x20inherit','explicitAppName','keys','gray','green','project','1711884Iqcgub','globalConfig','appcode','ignored\x20in\x20','\x20config\x20delete\x20inherit\x20--global','✗\x20Not\x20logged\x20in','repeat','hasOwnProperty','routing','locale','\x20\x20Auth','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','inherit','10940960mZsXBi','\x20\x20Repair\x20project:\x20\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','arch','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Apps','padEnd','(none)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20explicitAppName:\x20','label','\x20(default)','7sorzGx','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','string','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','platform','105314fRTxle','30SylWzm','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','✗\x20Invalid\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a103_0x1b33=function(){return _0xb49307;};return a103_0x1b33();}(function(_0x56ca09,_0x219ecd){const _0x2e37c8=a103_0x4ee9,_0x1ce270=_0x56ca09();while(!![]){try{const _0x48d83a=parseInt(_0x2e37c8(0x157))/0x1*(parseInt(_0x2e37c8(0x15d))/0x2)+-parseInt(_0x2e37c8(0x194))/0x3*(-parseInt(_0x2e37c8(0x188))/0x4)+parseInt(_0x2e37c8(0x15e))/0x5*(-parseInt(_0x2e37c8(0x1c9))/0x6)+parseInt(_0x2e37c8(0x183))/0x7+-parseInt(_0x2e37c8(0x173))/0x8+parseInt(_0x2e37c8(0x185))/0x9+-parseInt(_0x2e37c8(0x149))/0xa;if(_0x48d83a===_0x219ecd)break;else _0x1ce270['push'](_0x1ce270['shift']());}catch(_0x262440){_0x1ce270['push'](_0x1ce270['shift']());}}}(a103_0x1b33,0xd876e));import a103_0x1b8119 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{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function a103_0x4ee9(_0x16132d,_0x1a6d1a){_0x16132d=_0x16132d-0x143;const _0x1b33d8=a103_0x1b33();let _0x4ee932=_0x1b33d8[_0x16132d];return _0x4ee932;}function describeRegionValue(_0x39ccc8){const _0x43db14=a103_0x4ee9;return typeof _0x39ccc8===_0x43db14(0x15a)?JSON[_0x43db14(0x198)](_0x39ccc8):'<'+(_0x39ccc8===null?_0x43db14(0x1ac):typeof _0x39ccc8)+'>';}async function execute(_0x18b2a9){const _0x5b1693=a103_0x4ee9,_0x76edc3=GIT_COMMIT!==_0x5b1693(0x181)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x366345=buildConfigFromFlags({}),_0x4410e0=getCookie();let _0x52b801;try{await initGlobalEnvironment(_0x366345);}catch(_0x125b23){_0x52b801=_0x125b23 instanceof Error?_0x125b23:new Error(String(_0x125b23));}console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](CLI_BIN_NAME+_0x5b1693(0x170))),console['log'](a103_0x1b8119['gray']('─'['repeat'](0x32))),console['log'](_0x5b1693(0x17a)+_0x76edc3),console[_0x5b1693(0x1ae)](_0x5b1693(0x1ad)+process[_0x5b1693(0x19c)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x15f)+process[_0x5b1693(0x15c)]+'\x20'+process[_0x5b1693(0x14c)]);const _0x15b1b3=inspectBuiltinSkill();console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x1bf))),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)]('\x20\x20─'[_0x5b1693(0x1cf)](0x1e)));const _0xadd6a4=_0x15b1b3['state']===_0x5b1693(0x1b7)?a103_0x1b8119[_0x5b1693(0x1c7)]('✓\x20'+_0x15b1b3[_0x5b1693(0x1a0)]):a103_0x1b8119[_0x5b1693(0x1a2)]('✗\x20'+_0x15b1b3[_0x5b1693(0x1a0)]);console[_0x5b1693(0x1ae)](_0x5b1693(0x1b5)+_0xadd6a4),console[_0x5b1693(0x1ae)]('\x20\x20Package\x20Version:\x20'+_0x15b1b3[_0x5b1693(0x163)]),console['log'](_0x5b1693(0x171)+(_0x15b1b3[_0x5b1693(0x187)]||a103_0x1b8119[_0x5b1693(0x1c6)]('(unknown)'))),console['log'](_0x5b1693(0x191)+(_0x15b1b3['installedPath']||a103_0x1b8119['gray']('(not\x20found)')));if(_0x15b1b3['reason'])console[_0x5b1693(0x1ae)](_0x5b1693(0x16a)+_0x15b1b3[_0x5b1693(0x1ba)]);_0x15b1b3[_0x5b1693(0x1a0)]!==_0x5b1693(0x1b7)&&console['log'](_0x5b1693(0x146)+_0x15b1b3[_0x5b1693(0x18c)]);console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)]('\x20\x20Config\x20Files')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)['repeat'](0x1e)));const _0x1e0dad=getGlobalConfigPath(),_0x4d59cb=getProjectConfigPath();console[_0x5b1693(0x1ae)](_0x5b1693(0x16d)+(_0x1e0dad||a103_0x1b8119[_0x5b1693(0x1c6)]('(not\x20found)'))),console['log'](_0x5b1693(0x158)+(_0x4d59cb||a103_0x1b8119['gray'](_0x5b1693(0x19d)))),console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119['bold']('\x20\x20Config\x20JSON')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));const _0x1a192b=(_0x3dec3f,_0x2a0653)=>{const _0x4c1064=_0x5b1693;if(!_0x2a0653){console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f['padEnd'](0x11)+'\x20'+a103_0x1b8119['gray'](_0x4c1064(0x18a)));return;}const _0x5683d2=inspectCliConfigJsonFile(_0x2a0653);if(_0x5683d2[_0x4c1064(0x147)]==='ok')console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1c7)](_0x4c1064(0x189)));else{if(_0x5683d2[_0x4c1064(0x147)]===_0x4c1064(0x186))console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119['yellow'](_0x4c1064(0x1a4)));else _0x5683d2[_0x4c1064(0x147)]==='missing'?console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119['gray'](_0x4c1064(0x1ab))):(console[_0x4c1064(0x1ae)]('\x20\x20'+_0x3dec3f[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1a2)](_0x4c1064(0x19e))),console[_0x4c1064(0x1ae)]('\x20\x20'+''[_0x4c1064(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x4c1064(0x1a2)](_0x5683d2[_0x4c1064(0x159)])));}};_0x1a192b('Global',_0x1e0dad),_0x1a192b('Project',_0x4d59cb);const _0x264715=loadRawConfigLayers(),_0x169ea8=[{'label':_0x5b1693(0x18b),'value':_0x264715[_0x5b1693(0x1bc)]['region'],'present':Object['prototype']['hasOwnProperty'][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],'region'),'repairCommand':CLI_BIN_NAME+_0x5b1693(0x184)},{'label':'Global','value':_0x264715[_0x5b1693(0x1ca)]['region'],'present':Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)]['call'](_0x264715[_0x5b1693(0x1ca)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x5b1693(0x177)](_0x5cb06d=>_0x5cb06d['present']&&isInvalidLovrabetRegion(_0x5cb06d[_0x5b1693(0x164)]));if(_0x169ea8[_0x5b1693(0x175)]>0x0){console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x160))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray'](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));for(const _0x33656c of _0x169ea8){console['log']('\x20\x20'+_0x33656c[_0x5b1693(0x155)][_0x5b1693(0x150)](0x11)+'\x20'+a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x161)+describeRegionValue(_0x33656c['value']))),console[_0x5b1693(0x1ae)]('\x20\x20'+(_0x5b1693(0x1a3)+_0x33656c[_0x5b1693(0x155)]['toLowerCase']()+':')[_0x5b1693(0x150)](0x10)+'\x20'+_0x33656c[_0x5b1693(0x18c)]);}}const _0x735d9=[Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1ca)],'inherit')?_0x5b1693(0x16e):null,Object['prototype']['hasOwnProperty'][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],_0x5b1693(0x148))?_0x5b1693(0x1c8):null][_0x5b1693(0x177)](Boolean);_0x735d9[_0x5b1693(0x175)]>0x0&&(console[_0x5b1693(0x1ae)](_0x5b1693(0x17d)+a103_0x1b8119[_0x5b1693(0x17c)](_0x5b1693(0x1cc)+_0x735d9[_0x5b1693(0x1b6)](_0x5b1693(0x1a8))+'\x20config')),_0x735d9[_0x5b1693(0x196)](_0x5b1693(0x1c8))&&console[_0x5b1693(0x1ae)](_0x5b1693(0x18e)+CLI_BIN_NAME+_0x5b1693(0x1c3)),_0x735d9[_0x5b1693(0x196)](_0x5b1693(0x16e))&&console['log'](_0x5b1693(0x176)+CLI_BIN_NAME+_0x5b1693(0x1cd)));const _0x18239b=isInvalidLovrabetRegion(_0x366345[_0x5b1693(0x179)]?.[_0x5b1693(0x166)]);_0x52b801&&!_0x18239b&&(console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x16c))),console['log'](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e))),console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119['red'](_0x5b1693(0x1aa))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x52b801[_0x5b1693(0x159)]),Object['prototype'][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1bc)],_0x5b1693(0x143))&&console[_0x5b1693(0x1ae)](_0x5b1693(0x14a)+CLI_BIN_NAME+_0x5b1693(0x17e)),Object[_0x5b1693(0x1a5)][_0x5b1693(0x1d0)][_0x5b1693(0x16b)](_0x264715[_0x5b1693(0x1ca)],_0x5b1693(0x143))&&console['log'](_0x5b1693(0x1a7)+CLI_BIN_NAME+_0x5b1693(0x1c0)));console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119[_0x5b1693(0x1c2)]('\x20\x20Merged\x20Config')),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e))),console[_0x5b1693(0x1ae)](_0x5b1693(0x182)+(_0x366345[_0x5b1693(0x1b8)]||a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x1a6)))),console['log'](_0x5b1693(0x174)+_0x366345[_0x5b1693(0x1be)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x168)+_0x366345[_0x5b1693(0x144)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x167)+_0x366345[_0x5b1693(0x153)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x18f)+(_0x366345[_0x5b1693(0x190)]||a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151)))),console[_0x5b1693(0x1ae)](_0x5b1693(0x14d)+(_0x366345['currentApp']||a103_0x1b8119[_0x5b1693(0x1c6)]('(none)'))),console['log'](_0x5b1693(0x154)+(_0x366345[_0x5b1693(0x1c4)]||a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151)))),console['log'](_0x5b1693(0x169)+(_0x366345['format']||a103_0x1b8119['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x5b1693(0x195)]+')'))),console[_0x5b1693(0x1ae)](_0x5b1693(0x17f)+(_0x366345[_0x5b1693(0x1b9)]??a103_0x1b8119['gray'](_0x5b1693(0x19a)))),console[_0x5b1693(0x1ae)](_0x5b1693(0x152)+_0x366345[_0x5b1693(0x1b0)]),console['log'](_0x5b1693(0x162)+_0x366345[_0x5b1693(0x165)]),console[_0x5b1693(0x1ae)](_0x5b1693(0x17b)+(_0x366345[_0x5b1693(0x1bd)]?a103_0x1b8119['green'](_0x5b1693(0x19b)+_0x366345['cookie']['length']+')'):_0x4410e0?a103_0x1b8119['green'](_0x5b1693(0x1b1)+_0x4410e0['length']+')'):a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151))));const _0xc9447c=Object[_0x5b1693(0x1c5)](_0x366345['apps']);if(_0xc9447c['length']>0x0){console['log'](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x14f))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray']('\x20\x20─'[_0x5b1693(0x1cf)](0x1e)));for(const _0x19703e of _0xc9447c){const _0x57fcee=_0x366345[_0x5b1693(0x199)][_0x19703e],_0x4a4ea1=_0x19703e===_0x366345[_0x5b1693(0x190)],_0x5a16dc=_0x19703e===_0x366345[_0x5b1693(0x178)],_0x16b5ba=_0x5a16dc?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x1af)):'',_0x577ed2=_0x4a4ea1?_0x5b1693(0x156):'';console['log']('\x20\x20'+_0x19703e+_0x577ed2+_0x16b5ba),console[_0x5b1693(0x1ae)](_0x5b1693(0x15b)+_0x57fcee[_0x5b1693(0x1cb)]);const _0x24cbe2=buildAppDoctorFields(_0x57fcee,{'env':_0x366345['env'],'apiDir':_0x366345[_0x5b1693(0x179)][_0x5b1693(0x153)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x366345['cookie']||_0x4410e0||undefined,'accessKey':_0x366345[_0x5b1693(0x1a9)]});console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x24cbe2[_0x5b1693(0x1be)][_0x5b1693(0x164)]+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x1be)][_0x5b1693(0x16f)]+')')),console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x24cbe2[_0x5b1693(0x153)][_0x5b1693(0x164)]+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x153)][_0x5b1693(0x16f)]+')'));const _0x2337bc=_0x24cbe2[_0x5b1693(0x1bd)][_0x5b1693(0x164)]?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x19b)+_0x24cbe2[_0x5b1693(0x1bd)][_0x5b1693(0x164)]['length']+')'):a103_0x1b8119['gray'](_0x5b1693(0x151));console[_0x5b1693(0x1ae)](_0x5b1693(0x197)+_0x2337bc+'\x20\x20'+a103_0x1b8119['gray']('('+_0x24cbe2['cookie'][_0x5b1693(0x16f)]+')'));const _0x44a84a=_0x24cbe2[_0x5b1693(0x1a9)][_0x5b1693(0x164)]?a103_0x1b8119[_0x5b1693(0x1c7)](_0x5b1693(0x19b)+_0x24cbe2[_0x5b1693(0x1a9)][_0x5b1693(0x164)][_0x5b1693(0x175)]+')'):a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x151));console[_0x5b1693(0x1ae)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x44a84a+'\x20\x20'+a103_0x1b8119[_0x5b1693(0x1c6)]('('+_0x24cbe2[_0x5b1693(0x1a9)]['source']+')'));}}console[_0x5b1693(0x1ae)](),console['log'](a103_0x1b8119['bold'](_0x5b1693(0x192))),console[_0x5b1693(0x1ae)](a103_0x1b8119['gray'](_0x5b1693(0x18d)['repeat'](0x1e)));_0x52b801?console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x1a2)]('Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired')):(console[_0x5b1693(0x1ae)](_0x5b1693(0x193)+getActiveRegion()),console[_0x5b1693(0x1ae)](_0x5b1693(0x180)+getApiDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1bb)+getUserDomain()),console['log']('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1b2)+getSkillDomain()),console['log']('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x5b1693(0x1ae)](_0x5b1693(0x1b3)+getAppDomain()));console[_0x5b1693(0x1ae)](),console[_0x5b1693(0x1ae)](a103_0x1b8119[_0x5b1693(0x1c2)](_0x5b1693(0x145))),console['log'](a103_0x1b8119[_0x5b1693(0x1c6)](_0x5b1693(0x18d)[_0x5b1693(0x1cf)](0x1e)));if(_0x52b801)console['log'](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x17c)](_0x5b1693(0x14b)));else{if(_0x4410e0){const _0x31391=await getIsSessionValid();console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+(_0x31391?a103_0x1b8119[_0x5b1693(0x1c7)]('✓\x20Valid'):a103_0x1b8119['red'](_0x5b1693(0x14e))));}else console[_0x5b1693(0x1ae)](_0x5b1693(0x172)+a103_0x1b8119[_0x5b1693(0x1a2)](_0x5b1693(0x1ce)));}return console[_0x5b1693(0x1ae)](),{'ok':!![]};}export const doctorDefinition={'service':a103_0x3bc738(0x1a1),'command':a103_0x3bc738(0x19f),'description':a103_0x3bc738(0x1b4),'risk':a103_0x3bc738(0x1c1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a101_0x33b4df=a101_0x2fe7;(function(_0x1ce3b1,_0x23535e){const _0x598b52=a101_0x2fe7,_0x433238=_0x1ce3b1();while(!![]){try{const _0x5e319a=-parseInt(_0x598b52(0x9d))/0x1+-parseInt(_0x598b52(0xad))/0x2*(parseInt(_0x598b52(0x101))/0x3)+-parseInt(_0x598b52(0xf9))/0x4*(-parseInt(_0x598b52(0xfa))/0x5)+-parseInt(_0x598b52(0xa2))/0x6+-parseInt(_0x598b52(0xba))/0x7+-parseInt(_0x598b52(0xca))/0x8+parseInt(_0x598b52(0xa9))/0x9*(parseInt(_0x598b52(0xd6))/0xa);if(_0x5e319a===_0x23535e)break;else _0x433238['push'](_0x433238['shift']());}catch(_0x24fa03){_0x433238['push'](_0x433238['shift']());}}}(a101_0x58d3,0x19f5d));function a101_0x2fe7(_0xe612f6,_0x102130){_0xe612f6=_0xe612f6-0x8b;const _0x58d34c=a101_0x58d3();let _0x2fe75c=_0x58d34c[_0xe612f6];return _0x2fe75c;}import a101_0x4df073 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a101_0x58d3(){const _0x578b95=['filter','skillVersion','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','defaultApp','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Invalid','env','prototype','\x20(default)','\x20doctor','\x20\x20─','appcode','current','\x20config\x20delete\x20inherit','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','verbose','cookie','toLowerCase','format','\x20\x20explicitAppName:\x20','✗\x20Not\x20logged\x20in','version','Global','message','gray','\x20\x20Merged\x20Config','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(missing)','hasOwnProperty','30539sMoQck','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','971766tyhdBY','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','project','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','reason','(not\x20found)','288BHYeeO','Project','\x20config','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','30584qLnobn','(not\x20set)','red','empty','(set\x20via\x20file,\x20length=','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20config\x20delete\x20routing\x20--global','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','⚠\x20Empty\x20(treated\x20as\x20{})','787892XqnBHl','apps','\x20config\x20delete\x20region','packageVersion','routing','explicitAppName','(set,\x20length=','\x20\x20Repair\x20global:\x20\x20\x20','source','\x20\x20Config\x20JSON','green','state','installedPath','\x20\x20Auth','platform','(none)','863616QeBDKN','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20+\x20','\x20←\x20current','global','appCode','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','170160lEgLTa','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','join','currentApp','✗\x20Expired','raw','log','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20Country/Region\x20Configuration','✓\x20Valid\x20JSON','null','call','region','(unknown)','padEnd','value','label','repeat','check','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','read','\x20\x20Apps','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','riskLevel','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20config\x20delete\x20inherit\x20--global','keys','globalConfig','projectConfig','bold','4eeoMgF','27065mKCknO','doctor','\x20\x20Config\x20Files','present','length','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','6hbBzKP'];a101_0x58d3=function(){return _0x578b95;};return a101_0x58d3();}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{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x4de265){const _0x17ec46=a101_0x2fe7;return typeof _0x4de265==='string'?JSON['stringify'](_0x4de265):'<'+(_0x4de265===null?_0x17ec46(0xe2):typeof _0x4de265)+'>';}async function execute(_0x3a4240){const _0x5baecb=a101_0x2fe7,_0x1ca971=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5baecb(0x100)](0x0,0xa)+')':VERSION,_0x1c4812=buildConfigFromFlags({}),_0x39d410=getCookie();let _0x3dff63;try{await initGlobalEnvironment(_0x1c4812);}catch(_0x168fb6){_0x3dff63=_0x168fb6 instanceof Error?_0x168fb6:new Error(String(_0x168fb6));}console[_0x5baecb(0xdd)](),console['log'](a101_0x4df073[_0x5baecb(0xf8)](CLI_BIN_NAME+_0x5baecb(0x10c))),console['log'](a101_0x4df073['gray']('─'[_0x5baecb(0xe9)](0x32))),console[_0x5baecb(0xdd)](_0x5baecb(0xa5)+_0x1ca971),console[_0x5baecb(0xdd)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5baecb(0x95)]),console[_0x5baecb(0xdd)](_0x5baecb(0x8d)+process[_0x5baecb(0xc8)]+'\x20'+process['arch']);const _0x3a31cf=inspectBuiltinSkill();console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)]('\x20\x20Built-in\x20Skill')),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0x10d)['repeat'](0x1e)));const _0x5a9b31=_0x3a31cf[_0x5baecb(0xc5)]===_0x5baecb(0x10f)?a101_0x4df073[_0x5baecb(0xc4)]('✓\x20'+_0x3a31cf[_0x5baecb(0xc5)]):a101_0x4df073[_0x5baecb(0xaf)]('✗\x20'+_0x3a31cf[_0x5baecb(0xc5)]);console[_0x5baecb(0xdd)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5a9b31),console[_0x5baecb(0xdd)](_0x5baecb(0xf3)+_0x3a31cf[_0x5baecb(0xbd)]),console[_0x5baecb(0xdd)](_0x5baecb(0x9f)+(_0x3a31cf[_0x5baecb(0x103)]||a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xe5)))),console[_0x5baecb(0xdd)](_0x5baecb(0x112)+(_0x3a31cf[_0x5baecb(0xc6)]||a101_0x4df073['gray']('(not\x20found)')));if(_0x3a31cf[_0x5baecb(0xa7)])console[_0x5baecb(0xdd)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3a31cf['reason']);_0x3a31cf['state']!==_0x5baecb(0x10f)&&console[_0x5baecb(0xdd)](_0x5baecb(0xd1)+_0x3a31cf['repairCommand']);console['log'](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)](_0x5baecb(0xfc))),console['log'](a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0x10d)[_0x5baecb(0xe9)](0x1e)));const _0x2ff715=getGlobalConfigPath(),_0x433d49=getProjectConfigPath();console[_0x5baecb(0xdd)](_0x5baecb(0xa0)+(_0x2ff715||a101_0x4df073[_0x5baecb(0x98)]('(not\x20found)'))),console[_0x5baecb(0xdd)](_0x5baecb(0xb7)+(_0x433d49||a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xa8)))),console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073['bold'](_0x5baecb(0xc3))),console['log'](a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0x10d)[_0x5baecb(0xe9)](0x1e)));const _0x265fd9=(_0xc08196,_0x1be5eb)=>{const _0x4b0244=_0x5baecb;if(!_0x1be5eb){console['log']('\x20\x20'+_0xc08196[_0x4b0244(0xe6)](0x11)+'\x20'+a101_0x4df073[_0x4b0244(0x98)]('(no\x20file)'));return;}const _0x2508c2=inspectCliConfigJsonFile(_0x1be5eb);if(_0x2508c2[_0x4b0244(0xdf)]==='ok')console['log']('\x20\x20'+_0xc08196['padEnd'](0x11)+'\x20'+a101_0x4df073[_0x4b0244(0xc4)](_0x4b0244(0xe1)));else{if(_0x2508c2[_0x4b0244(0xdf)]===_0x4b0244(0xb0))console[_0x4b0244(0xdd)]('\x20\x20'+_0xc08196[_0x4b0244(0xe6)](0x11)+'\x20'+a101_0x4df073[_0x4b0244(0x8b)](_0x4b0244(0xb9)));else _0x2508c2['status']==='missing'?console[_0x4b0244(0xdd)]('\x20\x20'+_0xc08196['padEnd'](0x11)+'\x20'+a101_0x4df073[_0x4b0244(0x98)](_0x4b0244(0x9b))):(console[_0x4b0244(0xdd)]('\x20\x20'+_0xc08196['padEnd'](0x11)+'\x20'+a101_0x4df073['red']('✗\x20Invalid\x20JSON')),console[_0x4b0244(0xdd)]('\x20\x20'+''[_0x4b0244(0xe6)](0x11)+'\x20'+a101_0x4df073[_0x4b0244(0xaf)](_0x2508c2[_0x4b0244(0x97)])));}};_0x265fd9('Global',_0x2ff715),_0x265fd9(_0x5baecb(0xaa),_0x433d49);const _0x8081fa=loadRawConfigLayers(),_0x1de97b=[{'label':_0x5baecb(0xaa),'value':_0x8081fa[_0x5baecb(0xf7)][_0x5baecb(0xe4)],'present':Object[_0x5baecb(0x10a)]['hasOwnProperty'][_0x5baecb(0xe3)](_0x8081fa[_0x5baecb(0xf7)],_0x5baecb(0xe4)),'repairCommand':CLI_BIN_NAME+_0x5baecb(0xbc)},{'label':_0x5baecb(0x96),'value':_0x8081fa[_0x5baecb(0xf6)][_0x5baecb(0xe4)],'present':Object[_0x5baecb(0x10a)][_0x5baecb(0x9c)][_0x5baecb(0xe3)](_0x8081fa['globalConfig'],_0x5baecb(0xe4)),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}]['filter'](_0x14e533=>_0x14e533[_0x5baecb(0xfd)]&&isInvalidLovrabetRegion(_0x14e533[_0x5baecb(0xe7)]));if(_0x1de97b[_0x5baecb(0xfe)]>0x0){console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073['bold'](_0x5baecb(0xe0))),console['log'](a101_0x4df073[_0x5baecb(0x98)]('\x20\x20─'['repeat'](0x1e)));for(const _0x257957 of _0x1de97b){console['log']('\x20\x20'+_0x257957['label']['padEnd'](0x11)+'\x20'+a101_0x4df073[_0x5baecb(0xaf)]('✗\x20Invalid\x20'+describeRegionValue(_0x257957[_0x5baecb(0xe7)]))),console[_0x5baecb(0xdd)]('\x20\x20'+('Repair\x20'+_0x257957[_0x5baecb(0xe8)][_0x5baecb(0x91)]()+':')[_0x5baecb(0xe6)](0x10)+'\x20'+_0x257957['repairCommand']);}}const _0x1d1204=[Object[_0x5baecb(0x10a)][_0x5baecb(0x9c)][_0x5baecb(0xe3)](_0x8081fa[_0x5baecb(0xf6)],_0x5baecb(0xb8))?_0x5baecb(0xcf):null,Object[_0x5baecb(0x10a)][_0x5baecb(0x9c)][_0x5baecb(0xe3)](_0x8081fa[_0x5baecb(0xf7)],_0x5baecb(0xb8))?_0x5baecb(0xa4):null][_0x5baecb(0x102)](Boolean);_0x1d1204[_0x5baecb(0xfe)]>0x0&&(console['log'](_0x5baecb(0xd4)+a101_0x4df073[_0x5baecb(0x8b)](_0x5baecb(0x105)+_0x1d1204[_0x5baecb(0xd9)](_0x5baecb(0xcd))+_0x5baecb(0xab))),_0x1d1204['includes'](_0x5baecb(0xa4))&&console[_0x5baecb(0xdd)](_0x5baecb(0xd3)+CLI_BIN_NAME+_0x5baecb(0x110)),_0x1d1204['includes'](_0x5baecb(0xcf))&&console[_0x5baecb(0xdd)](_0x5baecb(0x111)+CLI_BIN_NAME+_0x5baecb(0xf4)));const _0x121957=isInvalidLovrabetRegion(_0x1c4812[_0x5baecb(0xdc)]?.[_0x5baecb(0xe4)]);_0x3dff63&&!_0x121957&&(console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)]('\x20\x20Routing\x20Configuration')),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0x10d)['repeat'](0x1e))),console[_0x5baecb(0xdd)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x4df073[_0x5baecb(0xaf)](_0x5baecb(0x108))),console[_0x5baecb(0xdd)](_0x5baecb(0xff)+_0x3dff63[_0x5baecb(0x97)]),Object[_0x5baecb(0x10a)][_0x5baecb(0x9c)][_0x5baecb(0xe3)](_0x8081fa['projectConfig'],'routing')&&console[_0x5baecb(0xdd)](_0x5baecb(0xd8)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype']['hasOwnProperty']['call'](_0x8081fa[_0x5baecb(0xf6)],_0x5baecb(0xbe))&&console['log'](_0x5baecb(0xc1)+CLI_BIN_NAME+_0x5baecb(0xb6)));console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)](_0x5baecb(0x99))),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0x10d)[_0x5baecb(0xe9)](0x1e))),console['log'](_0x5baecb(0xde)+(_0x1c4812[_0x5baecb(0xd0)]||a101_0x4df073[_0x5baecb(0xaf)](_0x5baecb(0xae)))),console[_0x5baecb(0xdd)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1c4812[_0x5baecb(0x109)]),console['log'](_0x5baecb(0xeb)+_0x1c4812['locale']),console[_0x5baecb(0xdd)](_0x5baecb(0xb3)+_0x1c4812[_0x5baecb(0xcc)]),console[_0x5baecb(0xdd)](_0x5baecb(0x9e)+(_0x1c4812[_0x5baecb(0x106)]||a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xc9)))),console['log'](_0x5baecb(0xa6)+(_0x1c4812[_0x5baecb(0xda)]||a101_0x4df073[_0x5baecb(0x98)]('(none)'))),console['log'](_0x5baecb(0x93)+(_0x1c4812[_0x5baecb(0xbf)]||a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xc9)))),console['log'](_0x5baecb(0xd7)+(_0x1c4812[_0x5baecb(0x92)]||a101_0x4df073[_0x5baecb(0x98)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x5baecb(0x92)]+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1c4812[_0x5baecb(0xb4)]??a101_0x4df073[_0x5baecb(0x98)]('(default)'))),console['log'](_0x5baecb(0xf0)+_0x1c4812[_0x5baecb(0xf1)]),console[_0x5baecb(0xdd)](_0x5baecb(0xef)+_0x1c4812[_0x5baecb(0x8f)]),console[_0x5baecb(0xdd)](_0x5baecb(0xa3)+(_0x1c4812['cookie']?a101_0x4df073['green'](_0x5baecb(0xc0)+_0x1c4812['cookie'][_0x5baecb(0xfe)]+')'):_0x39d410?a101_0x4df073[_0x5baecb(0xc4)](_0x5baecb(0xb1)+_0x39d410['length']+')'):a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xc9))));const _0x115d5d=Object[_0x5baecb(0xf5)](_0x1c4812['apps']);if(_0x115d5d[_0x5baecb(0xfe)]>0x0){console['log'](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)](_0x5baecb(0xee))),console[_0x5baecb(0xdd)](a101_0x4df073['gray'](_0x5baecb(0x10d)[_0x5baecb(0xe9)](0x1e)));for(const _0x334c0f of _0x115d5d){const _0x10d637=_0x1c4812[_0x5baecb(0xbb)][_0x334c0f],_0x41743b=_0x334c0f===_0x1c4812['defaultApp'],_0x59279f=_0x334c0f===_0x1c4812[_0x5baecb(0xda)],_0x4967bc=_0x59279f?a101_0x4df073[_0x5baecb(0xc4)](_0x5baecb(0xce)):'',_0x39bc92=_0x41743b?_0x5baecb(0x10b):'';console[_0x5baecb(0xdd)]('\x20\x20'+_0x334c0f+_0x39bc92+_0x4967bc),console[_0x5baecb(0xdd)](_0x5baecb(0xd5)+_0x10d637[_0x5baecb(0x10e)]);const _0x5ddab0=buildAppDoctorFields(_0x10d637,{'env':_0x1c4812[_0x5baecb(0x109)],'apiDir':_0x1c4812['raw'][_0x5baecb(0xcc)]||DEFAULT_CONFIG_VALUES[_0x5baecb(0xcc)],'cookie':_0x1c4812[_0x5baecb(0x90)]||_0x39d410||undefined,'accessKey':_0x1c4812[_0x5baecb(0x8e)]});console[_0x5baecb(0xdd)](_0x5baecb(0xd2)+_0x5ddab0[_0x5baecb(0x109)][_0x5baecb(0xe7)]+'\x20\x20'+a101_0x4df073[_0x5baecb(0x98)]('('+_0x5ddab0[_0x5baecb(0x109)]['source']+')')),console[_0x5baecb(0xdd)](_0x5baecb(0x113)+_0x5ddab0[_0x5baecb(0xcc)]['value']+'\x20\x20'+a101_0x4df073[_0x5baecb(0x98)]('('+_0x5ddab0[_0x5baecb(0xcc)]['source']+')'));const _0x44bdce=_0x5ddab0[_0x5baecb(0x90)][_0x5baecb(0xe7)]?a101_0x4df073[_0x5baecb(0xc4)](_0x5baecb(0xc0)+_0x5ddab0[_0x5baecb(0x90)][_0x5baecb(0xe7)]['length']+')'):a101_0x4df073[_0x5baecb(0x98)]('(none)');console[_0x5baecb(0xdd)](_0x5baecb(0x8c)+_0x44bdce+'\x20\x20'+a101_0x4df073[_0x5baecb(0x98)]('('+_0x5ddab0['cookie'][_0x5baecb(0xc2)]+')'));const _0x1610b1=_0x5ddab0['accessKey'][_0x5baecb(0xe7)]?a101_0x4df073[_0x5baecb(0xc4)]('(set,\x20length='+_0x5ddab0[_0x5baecb(0x8e)][_0x5baecb(0xe7)][_0x5baecb(0xfe)]+')'):a101_0x4df073[_0x5baecb(0x98)](_0x5baecb(0xc9));console['log'](_0x5baecb(0xb2)+_0x1610b1+'\x20\x20'+a101_0x4df073[_0x5baecb(0x98)]('('+_0x5ddab0[_0x5baecb(0x8e)][_0x5baecb(0xc2)]+')'));}}console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)](_0x5baecb(0xec))),console['log'](a101_0x4df073[_0x5baecb(0x98)]('\x20\x20─'['repeat'](0x1e)));_0x3dff63?console['log'](_0x5baecb(0xf2)+a101_0x4df073[_0x5baecb(0xaf)](_0x5baecb(0xac))):(console[_0x5baecb(0xdd)](_0x5baecb(0xcb)+getActiveRegion()),console[_0x5baecb(0xdd)](_0x5baecb(0x9a)+getApiDomain()),console[_0x5baecb(0xdd)](_0x5baecb(0x107)+getUserDomain()),console[_0x5baecb(0xdd)](_0x5baecb(0xa1)+getRuntimeDomain()),console[_0x5baecb(0xdd)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x5baecb(0xdd)](_0x5baecb(0x104)+getKbDomain()),console['log']('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()));console[_0x5baecb(0xdd)](),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0xf8)](_0x5baecb(0xc7))),console[_0x5baecb(0xdd)](a101_0x4df073[_0x5baecb(0x98)]('\x20\x20─'[_0x5baecb(0xe9)](0x1e)));if(_0x3dff63)console[_0x5baecb(0xdd)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a101_0x4df073[_0x5baecb(0x8b)]('Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired'));else{if(_0x39d410){const _0x59f4f9=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x59f4f9?a101_0x4df073[_0x5baecb(0xc4)]('✓\x20Valid'):a101_0x4df073[_0x5baecb(0xaf)](_0x5baecb(0xdb))));}else console['log'](_0x5baecb(0xf2)+a101_0x4df073[_0x5baecb(0xaf)](_0x5baecb(0x94)));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a101_0x33b4df(0xfb),'command':a101_0x33b4df(0xea),'description':a101_0x33b4df(0xb5),'risk':a101_0x33b4df(0xed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a104_0xabd90a=a104_0x32c1;(function(_0x377c58,_0x22a727){const _0x428e40=a104_0x32c1,_0x277b2d=_0x377c58();while(!![]){try{const _0x1a434d=-parseInt(_0x428e40(0x1d0))/0x1*(parseInt(_0x428e40(0x1c9))/0x2)+parseInt(_0x428e40(0x1c0))/0x3+parseInt(_0x428e40(0x1af))/0x4+-parseInt(_0x428e40(0x1cd))/0x5+parseInt(_0x428e40(0x1c2))/0x6*(-parseInt(_0x428e40(0x1c7))/0x7)+-parseInt(_0x428e40(0x1b9))/0x8*(-parseInt(_0x428e40(0x1c1))/0x9)+parseInt(_0x428e40(0x1cc))/0xa;if(_0x1a434d===_0x22a727)break;else _0x277b2d['push'](_0x277b2d['shift']());}catch(_0x2fdcb3){_0x277b2d['push'](_0x277b2d['shift']());}}}(a104_0x12b4,0x8492d));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a104_0x32c1(_0x247f4a,_0x1f5f68){_0x247f4a=_0x247f4a-0x1af;const _0x12b43e=a104_0x12b4();let _0x32c137=_0x12b43e[_0x247f4a];return _0x32c137;}function a104_0x12b4(){const _0x3679db=['path','long-term','3074898cAcnsj','6333003bycJYI','6DNtljD','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','str','filePath','Path\x20to\x20the\x20local\x20file\x20to\x20upload','6636721cbDyBz','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','584460DgqDbW','trim','validation','4645660RqXCLX','1811665jiGoTZ','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','2wHNSNU','filepath','978872RNcCtI','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','query-url','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','POST','File','boolean','Preview:\x20upload\x20','upload','8DoyDWu','\x20to\x20development\x20app\x20','appCode','string','file'];a104_0x12b4=function(){return _0x3679db;};return a104_0x12b4();}const FILE_FLAG={'name':a104_0xabd90a(0x1bd),'type':a104_0xabd90a(0x1bc),'required':!![],'description':a104_0xabd90a(0x1c6)},FILEPATH_FLAG={'name':a104_0xabd90a(0x1d1),'type':a104_0xabd90a(0x1bc),'required':!![],'description':a104_0xabd90a(0x1c8)},DOWNLOAD_FLAG={'name':'download','type':a104_0xabd90a(0x1b6),'description':a104_0xabd90a(0x1c3)},LONG_TERM_FLAG={'name':'long-term','type':a104_0xabd90a(0x1b6),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x5b70e2){const _0x2e67d2=a104_0xabd90a,_0x3d909f=_0x5b70e2[_0x2e67d2(0x1ca)]();if(!_0x3d909f)throw CliErrors[_0x2e67d2(0x1cb)]('filePath\x20is\x20required.');return _0x3d909f;}const fileUpload={'service':a104_0xabd90a(0x1bd),'command':a104_0xabd90a(0x1b8),'description':a104_0xabd90a(0x1ce),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x4693dc){const _0x42d866=a104_0xabd90a,_0x24a24e=requireDevelopmentUploadFile(_0x4693dc[_0x42d866(0x1c4)](_0x42d866(0x1bd)),_0x42d866(0x1b5));return{'method':_0x42d866(0x1b4),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x4693dc['appCode'],'multipart':{'file':_0x24a24e}},'description':_0x42d866(0x1b7)+_0x24a24e[_0x42d866(0x1be)]+_0x42d866(0x1ba)+_0x4693dc[_0x42d866(0x1bb)]};},async 'execute'(_0x481da0){const _0x3f6631=a104_0xabd90a,_0x208ad5=requireDevelopmentUploadFile(_0x481da0['str'](_0x3f6631(0x1bd)),_0x3f6631(0x1b5)),_0x11e6c=await uploadDevelopmentFile(_0x481da0[_0x3f6631(0x1bb)],_0x208ad5['path']);return{'ok':!![],'data':_0x11e6c,'message':_0x11e6c['filePath']?'Uploaded\x20file:\x20'+_0x11e6c[_0x3f6631(0x1c5)]+_0x3f6631(0x1b0):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a104_0xabd90a(0x1bd),'command':a104_0xabd90a(0x1b2),'description':a104_0xabd90a(0x1b3),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x43276c){const _0x7229b8=a104_0xabd90a,_0x8bfafe=requireFilePath(_0x43276c['str'](_0x7229b8(0x1d1))),_0x1cca2d=await queryDevelopmentFileUrl(_0x8bfafe,{'download':_0x43276c[_0x7229b8(0x1b1)](_0x7229b8(0x1cf)),'longTerm':_0x43276c[_0x7229b8(0x1b1)](_0x7229b8(0x1bf))});return{'ok':!![],'data':_0x1cca2d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a102_0x378591=a102_0x57c5;(function(_0x460bd0,_0x138927){const _0x4cf8be=a102_0x57c5,_0x2cd91f=_0x460bd0();while(!![]){try{const _0x33f0f5=-parseInt(_0x4cf8be(0x111))/0x1+-parseInt(_0x4cf8be(0xf3))/0x2+parseInt(_0x4cf8be(0x10b))/0x3*(-parseInt(_0x4cf8be(0x101))/0x4)+parseInt(_0x4cf8be(0x114))/0x5*(-parseInt(_0x4cf8be(0x113))/0x6)+parseInt(_0x4cf8be(0xf4))/0x7*(-parseInt(_0x4cf8be(0x109))/0x8)+parseInt(_0x4cf8be(0xff))/0x9+parseInt(_0x4cf8be(0x102))/0xa*(parseInt(_0x4cf8be(0xfa))/0xb);if(_0x33f0f5===_0x138927)break;else _0x2cd91f['push'](_0x2cd91f['shift']());}catch(_0x1ebd37){_0x2cd91f['push'](_0x2cd91f['shift']());}}}(a102_0xf3ce,0x97cf3));function a102_0xf3ce(){const _0x46d2c1=['76794mtLENZ','255jncYKV','Preview:\x20upload\x20','POST','trim','upload','961370IUrFjj','553OTsTDT','path','filepath','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','file','/smartapi/common/uploadFile','11149072JhhMdy','filePath','string','query-url','filePath\x20is\x20required.','9281331aMaBZj','read','1008364gxgRAz','20wifgjP','appCode','long-term','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','str','bool','Path\x20to\x20the\x20local\x20file\x20to\x20upload','104744VJXdkF','\x20to\x20development\x20app\x20','3TqhKcB','validation','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','File','boolean','16680TCCZbk','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a102_0xf3ce=function(){return _0x46d2c1;};return a102_0xf3ce();}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a102_0x378591(0xf8),'type':a102_0x378591(0xfc),'required':!![],'description':a102_0x378591(0x108)},FILEPATH_FLAG={'name':a102_0x378591(0xf6),'type':a102_0x378591(0xfc),'required':!![],'description':a102_0x378591(0x10d)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':a102_0x378591(0x112)},LONG_TERM_FLAG={'name':a102_0x378591(0x104),'type':a102_0x378591(0x110),'description':a102_0x378591(0x105)};function a102_0x57c5(_0x531015,_0x1b2ec1){_0x531015=_0x531015-0xf0;const _0xf3ce78=a102_0xf3ce();let _0x57c5a7=_0xf3ce78[_0x531015];return _0x57c5a7;}function requireFilePath(_0x429c32){const _0x1ebae2=a102_0x378591,_0x7f0aa8=_0x429c32[_0x1ebae2(0xf1)]();if(!_0x7f0aa8)throw CliErrors[_0x1ebae2(0x10c)](_0x1ebae2(0xfe));return _0x7f0aa8;}const fileUpload={'service':'file','command':a102_0x378591(0xf2),'description':a102_0x378591(0x10e),'risk':a102_0x378591(0x100),'flags':[FILE_FLAG],async 'dryRun'(_0x4f125c){const _0x2e427d=a102_0x378591,_0xe42e58=requireDevelopmentUploadFile(_0x4f125c[_0x2e427d(0x106)](_0x2e427d(0xf8)),_0x2e427d(0x10f));return{'method':_0x2e427d(0xf0),'url':_0x2e427d(0xf9),'body':{'appCode':_0x4f125c[_0x2e427d(0x103)],'multipart':{'file':_0xe42e58}},'description':_0x2e427d(0x115)+_0xe42e58[_0x2e427d(0xf5)]+_0x2e427d(0x10a)+_0x4f125c[_0x2e427d(0x103)]};},async 'execute'(_0x41e045){const _0x3bc1ab=a102_0x378591,_0x474d6c=requireDevelopmentUploadFile(_0x41e045[_0x3bc1ab(0x106)](_0x3bc1ab(0xf8)),'File'),_0x3375d4=await uploadDevelopmentFile(_0x41e045['appCode'],_0x474d6c[_0x3bc1ab(0xf5)]);return{'ok':!![],'data':_0x3375d4,'message':_0x3375d4[_0x3bc1ab(0xfb)]?'Uploaded\x20file:\x20'+_0x3375d4['filePath']+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a102_0x378591(0xf8),'command':a102_0x378591(0xfd),'description':a102_0x378591(0xf7),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4b9782){const _0x272f0e=a102_0x378591,_0x1f53b9=requireFilePath(_0x4b9782['str'](_0x272f0e(0xf6))),_0x4d9f0c=await queryDevelopmentFileUrl(_0x1f53b9,{'download':_0x4b9782[_0x272f0e(0x107)]('download'),'longTerm':_0x4b9782[_0x272f0e(0x107)]('long-term')});return{'ok':!![],'data':_0x4d9f0c};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a105_0x3a78(_0x12cb43,_0x26f4bb){_0x12cb43=_0x12cb43-0xad;const _0x341ea9=a105_0x341e();let _0x3a78cf=_0x341ea9[_0x12cb43];return _0x3a78cf;}const a105_0x305ac2=a105_0x3a78;function a105_0x341e(){const _0x523648=['88020BFZtyc','1860159itpLOj','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','3002880hCpIBz','instant-api-policy','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','568EGIcfy','10wrauQY','read','Current\x20Instant\x20API\x20policy\x20revision\x20','6894470gDzBfN','policyFilePath','current','178692UeZocT','4203XqZWYk','1izqmDl','appCode','310AQoFXA','revision','policyRelativePath','1285188afpKxC'];a105_0x341e=function(){return _0x523648;};return a105_0x341e();}(function(_0x4a1ebb,_0x5b168f){const _0x545b5e=a105_0x3a78,_0x2538e4=_0x4a1ebb();while(!![]){try{const _0x3a1ac5=-parseInt(_0x545b5e(0xc1))/0x1*(parseInt(_0x545b5e(0xbf))/0x2)+-parseInt(_0x545b5e(0xc0))/0x3*(-parseInt(_0x545b5e(0xb8))/0x4)+-parseInt(_0x545b5e(0xb9))/0x5*(-parseInt(_0x545b5e(0xb1))/0x6)+-parseInt(_0x545b5e(0xb3))/0x7+-parseInt(_0x545b5e(0xb5))/0x8+parseInt(_0x545b5e(0xb2))/0x9*(-parseInt(_0x545b5e(0xae))/0xa)+parseInt(_0x545b5e(0xbc))/0xb;if(_0x3a1ac5===_0x5b168f)break;else _0x2538e4['push'](_0x2538e4['shift']());}catch(_0x29c19b){_0x2538e4['push'](_0x2538e4['shift']());}}}(a105_0x341e,0x35d45));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':a105_0x305ac2(0xb6),'command':a105_0x305ac2(0xbe),'description':a105_0x305ac2(0xb7),'risk':a105_0x305ac2(0xba),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x725568){const _0x5bd0c7=a105_0x305ac2,_0x25b2b2=loadInstantApiPolicyLocalConfig(_0x725568[_0x5bd0c7(0xad)]),_0x38d628=await getCurrentInstantApiPolicy(_0x725568[_0x5bd0c7(0xad)]);return{'ok':!![],'data':{'appCode':_0x725568[_0x5bd0c7(0xad)],'configured':_0x38d628!==null,'filePath':_0x25b2b2[_0x5bd0c7(0xbd)],'relativePath':_0x25b2b2[_0x5bd0c7(0xb0)],'policy':projectCurrentPolicy(_0x38d628)},'message':_0x38d628?_0x5bd0c7(0xbb)+_0x38d628[_0x5bd0c7(0xaf)]:_0x5bd0c7(0xb4)+_0x725568['appCode']};}};
1
+ function a103_0x2271(){const _0x5aa90d=['96OzdmFX','370932sJWuDN','168443ZJYkpw','678PtiYyf','397980vdRoPV','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','appCode','1490jiuVdw','policyFilePath','3085wkmUtA','445152xaqogk','1srwPfj','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','Current\x20Instant\x20API\x20policy\x20revision\x20','21DxSPZf','865360EYbJvl','read','20133ZLsWES'];a103_0x2271=function(){return _0x5aa90d;};return a103_0x2271();}const a103_0x17fd8f=a103_0x34d1;(function(_0x1e5dd2,_0x16aa03){const _0x4bc072=a103_0x34d1,_0x49451d=_0x1e5dd2();while(!![]){try{const _0x4aaaa1=parseInt(_0x4bc072(0x1e1))/0x1*(parseInt(_0x4bc072(0x1d7))/0x2)+parseInt(_0x4bc072(0x1da))/0x3+parseInt(_0x4bc072(0x1e5))/0x4+parseInt(_0x4bc072(0x1df))/0x5*(-parseInt(_0x4bc072(0x1d9))/0x6)+-parseInt(_0x4bc072(0x1e4))/0x7*(-parseInt(_0x4bc072(0x1e0))/0x8)+-parseInt(_0x4bc072(0x1d5))/0x9*(parseInt(_0x4bc072(0x1dd))/0xa)+-parseInt(_0x4bc072(0x1d8))/0xb*(parseInt(_0x4bc072(0x1d6))/0xc);if(_0x4aaaa1===_0x16aa03)break;else _0x49451d['push'](_0x49451d['shift']());}catch(_0x50a470){_0x49451d['push'](_0x49451d['shift']());}}}(a103_0x2271,0x2aef4));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';function a103_0x34d1(_0x3a99c0,_0xa2c212){_0x3a99c0=_0x3a99c0-0x1d4;const _0x227140=a103_0x2271();let _0x34d11f=_0x227140[_0x3a99c0];return _0x34d11f;}export const instantApiPolicyCurrent={'service':'instant-api-policy','command':'current','description':a103_0x17fd8f(0x1e2),'risk':a103_0x17fd8f(0x1d4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x561440){const _0x16fc07=a103_0x17fd8f,_0x2db813=loadInstantApiPolicyLocalConfig(_0x561440[_0x16fc07(0x1dc)]),_0x264c97=await getCurrentInstantApiPolicy(_0x561440[_0x16fc07(0x1dc)]);return{'ok':!![],'data':{'appCode':_0x561440[_0x16fc07(0x1dc)],'configured':_0x264c97!==null,'filePath':_0x2db813[_0x16fc07(0x1de)],'relativePath':_0x2db813['policyRelativePath'],'policy':projectCurrentPolicy(_0x264c97)},'message':_0x264c97?_0x16fc07(0x1e3)+_0x264c97['revision']:_0x16fc07(0x1db)+_0x561440[_0x16fc07(0x1dc)]};}};
@@ -1 +1 @@
1
- (function(_0x4c443b,_0x1fd765){const _0x1b04a0=a106_0x5f58,_0x54e538=_0x4c443b();while(!![]){try{const _0x3b24ba=-parseInt(_0x1b04a0(0x18b))/0x1+-parseInt(_0x1b04a0(0x18d))/0x2*(parseInt(_0x1b04a0(0x189))/0x3)+-parseInt(_0x1b04a0(0x187))/0x4*(-parseInt(_0x1b04a0(0x185))/0x5)+parseInt(_0x1b04a0(0x188))/0x6+-parseInt(_0x1b04a0(0x18c))/0x7+parseInt(_0x1b04a0(0x186))/0x8+-parseInt(_0x1b04a0(0x18a))/0x9*(-parseInt(_0x1b04a0(0x18e))/0xa);if(_0x3b24ba===_0x1fd765)break;else _0x54e538['push'](_0x54e538['shift']());}catch(_0xa625f4){_0x54e538['push'](_0x54e538['shift']());}}}(a106_0x12da,0x50e56));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';function a106_0x5f58(_0xd54b5d,_0x3db3cc){_0xd54b5d=_0xd54b5d-0x185;const _0x12daa9=a106_0x12da();let _0x5f5898=_0x12daa9[_0xd54b5d];return _0x5f5898;}import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';function a106_0x12da(){const _0x20600d=['102770lhhzDw','5wjbUKt','3543024NVicQg','2513068zAQBdM','358962Wljlzv','9nwQQmn','144oUXDre','258563BvZEJn','3877622pFNCZV','101030bOxjjs'];a106_0x12da=function(){return _0x20600d;};return a106_0x12da();}export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ (function(_0xd635aa,_0x511e6c){const _0x38795d=a104_0x5e7d,_0x1f2904=_0xd635aa();while(!![]){try{const _0x2fb55c=-parseInt(_0x38795d(0xe1))/0x1+parseInt(_0x38795d(0xdf))/0x2+-parseInt(_0x38795d(0xe4))/0x3+-parseInt(_0x38795d(0xe6))/0x4+-parseInt(_0x38795d(0xe2))/0x5*(-parseInt(_0x38795d(0xe0))/0x6)+-parseInt(_0x38795d(0xe3))/0x7+parseInt(_0x38795d(0xe5))/0x8;if(_0x2fb55c===_0x511e6c)break;else _0x1f2904['push'](_0x1f2904['shift']());}catch(_0x36585a){_0x1f2904['push'](_0x1f2904['shift']());}}}(a104_0x58f5,0x62e8c));function a104_0x58f5(){const _0x497aa4=['6brcuwc','470917ZTFPzv','1897685TaIrIR','5153407IVryLj','36795bNonnv','9896288mrZUff','2200304iNmBgc','1116036FwwhrM'];a104_0x58f5=function(){return _0x497aa4;};return a104_0x58f5();}import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';function a104_0x5e7d(_0x2f3e98,_0x9e0219){_0x2f3e98=_0x2f3e98-0xdf;const _0x58f564=a104_0x58f5();let _0x5e7d3e=_0x58f564[_0x2f3e98];return _0x5e7d3e;}import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- const a107_0x282dd0=a107_0x2858;(function(_0x3c5caa,_0x1a8a90){const _0x50d0bc=a107_0x2858,_0x50ee5=_0x3c5caa();while(!![]){try{const _0x5ca86c=-parseInt(_0x50d0bc(0x82))/0x1*(-parseInt(_0x50d0bc(0x7b))/0x2)+parseInt(_0x50d0bc(0x6c))/0x3*(-parseInt(_0x50d0bc(0x81))/0x4)+parseInt(_0x50d0bc(0x6e))/0x5*(parseInt(_0x50d0bc(0x7f))/0x6)+-parseInt(_0x50d0bc(0x6b))/0x7+parseInt(_0x50d0bc(0x71))/0x8+parseInt(_0x50d0bc(0x68))/0x9+-parseInt(_0x50d0bc(0x77))/0xa*(-parseInt(_0x50d0bc(0x73))/0xb);if(_0x5ca86c===_0x1a8a90)break;else _0x50ee5['push'](_0x50ee5['shift']());}catch(_0xc6da41){_0x50ee5['push'](_0x50ee5['shift']());}}}(a107_0x5db0,0xee335));function a107_0x5db0(){const _0x56b2ee=['deny','instant-api-policy','11317229vFIKwX','4201119KLXGbK','policyRelativePath','5965ScKAeo','allow','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','7039952LUGRkW','default-action','1847989NmkvUp','\x20Instant\x20API\x20policy\x20file\x20for\x20','Replaced','string','70IsuKik','str','write','action','6csbcWI','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','appCode','bool','3774bQodTX','init','4DmOgNm','75771hvzPqh','force','Kept','8631828JIwOFO'];a107_0x5db0=function(){return _0x56b2ee;};return a107_0x5db0();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x2858(_0x2d0a1f,_0x18265a){_0x2d0a1f=_0x2d0a1f-0x66;const _0x5db09b=a107_0x5db0();let _0x2858f3=_0x5db09b[_0x2d0a1f];return _0x2858f3;}export const instantApiPolicyInit={'service':a107_0x282dd0(0x6a),'command':a107_0x282dd0(0x80),'description':a107_0x282dd0(0x70),'risk':a107_0x282dd0(0x79),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a107_0x282dd0(0x72),'type':a107_0x282dd0(0x76),'enum':['allow',a107_0x282dd0(0x69)],'default':a107_0x282dd0(0x6f),'description':a107_0x282dd0(0x7c)},FORCE_FLAG],async 'validate'(_0x1e0485){requireForceConfirmation(_0x1e0485);},async 'execute'(_0x299529){const _0x2e0aa7=a107_0x282dd0;requireForceConfirmation(_0x299529);const _0x458c6e=_0x299529[_0x2e0aa7(0x78)](_0x2e0aa7(0x72))===_0x2e0aa7(0x69)?'deny':_0x2e0aa7(0x6f),_0x4640e8=loadInstantApiPolicyLocalConfig(_0x299529[_0x2e0aa7(0x7d)]),_0x518a0b=createDefaultInstantApiPolicyConfig(_0x299529['appCode'],_0x458c6e),_0x541bb5=await writeInstantApiPolicyConfigFile(_0x4640e8,_0x518a0b,{'force':_0x299529[_0x2e0aa7(0x7e)](_0x2e0aa7(0x66))}),_0x48e5e4={'created':'Created','overwritten':_0x2e0aa7(0x75),'unchanged':_0x2e0aa7(0x67)}[_0x541bb5[_0x2e0aa7(0x7a)]];return{'ok':!![],'data':{'operation':'init','selector':{'appCode':_0x299529[_0x2e0aa7(0x7d)]},'filePath':_0x4640e8['policyFilePath'],'relativePath':_0x4640e8[_0x2e0aa7(0x6d)],'action':_0x541bb5['action'],'config':_0x518a0b},'message':_0x48e5e4+_0x2e0aa7(0x74)+_0x299529[_0x2e0aa7(0x7d)]};}};
1
+ const a105_0x2fc1c1=a105_0x1d25;(function(_0x2d2741,_0x4415e8){const _0x4d7955=a105_0x1d25,_0x2ac110=_0x2d2741();while(!![]){try{const _0x5b06bd=parseInt(_0x4d7955(0x104))/0x1+-parseInt(_0x4d7955(0x113))/0x2+-parseInt(_0x4d7955(0x111))/0x3+parseInt(_0x4d7955(0x107))/0x4*(-parseInt(_0x4d7955(0x108))/0x5)+-parseInt(_0x4d7955(0x110))/0x6*(parseInt(_0x4d7955(0x117))/0x7)+-parseInt(_0x4d7955(0x114))/0x8+parseInt(_0x4d7955(0x103))/0x9;if(_0x5b06bd===_0x4415e8)break;else _0x2ac110['push'](_0x2ac110['shift']());}catch(_0x17bfb6){_0x2ac110['push'](_0x2ac110['shift']());}}}(a105_0x3759,0xf0f7f));function a105_0x3759(){const _0x296eea=['str','init','action','policyRelativePath','allow','\x20Instant\x20API\x20policy\x20file\x20for\x20','18186JgZqrE','1802253ZGdicu','bool','119884yFDqYi','5669800jXnfEd','string','Kept','1120QnLATy','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','default-action','deny','policyFilePath','appCode','34120521XOjCGK','936057spUuqy','force','instant-api-policy','7543364SKqGeG','5VOOPkY','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file'];a105_0x3759=function(){return _0x296eea;};return a105_0x3759();}function a105_0x1d25(_0x1848b4,_0x48f606){_0x1848b4=_0x1848b4-0x101;const _0x3759e4=a105_0x3759();let _0x1d25ae=_0x3759e4[_0x1848b4];return _0x1d25ae;}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a105_0x2fc1c1(0x106),'command':a105_0x2fc1c1(0x10b),'description':a105_0x2fc1c1(0x109),'risk':'write','requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a105_0x2fc1c1(0x119),'type':a105_0x2fc1c1(0x115),'enum':[a105_0x2fc1c1(0x10e),a105_0x2fc1c1(0x11a)],'default':a105_0x2fc1c1(0x10e),'description':a105_0x2fc1c1(0x118)},FORCE_FLAG],async 'validate'(_0x2c4d59){requireForceConfirmation(_0x2c4d59);},async 'execute'(_0x1848d2){const _0x17ab9e=a105_0x2fc1c1;requireForceConfirmation(_0x1848d2);const _0x5d984d=_0x1848d2[_0x17ab9e(0x10a)](_0x17ab9e(0x119))===_0x17ab9e(0x11a)?_0x17ab9e(0x11a):_0x17ab9e(0x10e),_0x4e5066=loadInstantApiPolicyLocalConfig(_0x1848d2['appCode']),_0x492017=createDefaultInstantApiPolicyConfig(_0x1848d2[_0x17ab9e(0x102)],_0x5d984d),_0x45c1f2=await writeInstantApiPolicyConfigFile(_0x4e5066,_0x492017,{'force':_0x1848d2[_0x17ab9e(0x112)](_0x17ab9e(0x105))}),_0x30553b={'created':'Created','overwritten':'Replaced','unchanged':_0x17ab9e(0x116)}[_0x45c1f2[_0x17ab9e(0x10c)]];return{'ok':!![],'data':{'operation':_0x17ab9e(0x10b),'selector':{'appCode':_0x1848d2[_0x17ab9e(0x102)]},'filePath':_0x4e5066[_0x17ab9e(0x101)],'relativePath':_0x4e5066[_0x17ab9e(0x10d)],'action':_0x45c1f2['action'],'config':_0x492017},'message':_0x30553b+_0x17ab9e(0x10f)+_0x1848d2[_0x17ab9e(0x102)]};}};
@@ -1 +1 @@
1
- const a108_0x5f1fb0=a108_0x5c0c;(function(_0x11ee14,_0x406c34){const _0x50bfb5=a108_0x5c0c,_0x56c903=_0x11ee14();while(!![]){try{const _0x2f9c9f=-parseInt(_0x50bfb5(0x1e4))/0x1+-parseInt(_0x50bfb5(0x1e6))/0x2+-parseInt(_0x50bfb5(0x1c8))/0x3+parseInt(_0x50bfb5(0x1d9))/0x4*(parseInt(_0x50bfb5(0x1e0))/0x5)+parseInt(_0x50bfb5(0x1d0))/0x6+-parseInt(_0x50bfb5(0x1cd))/0x7*(-parseInt(_0x50bfb5(0x1c3))/0x8)+parseInt(_0x50bfb5(0x1eb))/0x9;if(_0x2f9c9f===_0x406c34)break;else _0x56c903['push'](_0x56c903['shift']());}catch(_0x1116a8){_0x56c903['push'](_0x56c903['shift']());}}}(a108_0x5b9f,0xcb619));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a108_0x5c0c(_0x320d6e,_0x5bf90a){_0x320d6e=_0x320d6e-0x1c3;const _0x5b9f7a=a108_0x5b9f();let _0x5c0c65=_0x5b9f7a[_0x320d6e];return _0x5c0c65;}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(_0x5c4f1d){const _0x4c2469=a108_0x5c0c,{local:_0x4f536c,config:_0x1f8be6}=await readFixedPolicy(_0x5c4f1d),_0x2d39f1=readChangeSummary(_0x5c4f1d),_0x1e728b=readExpectedRevision(_0x5c4f1d),[_0x5476a9,_0x31bf5c]=await Promise['all']([getCurrentInstantApiPolicy(_0x5c4f1d[_0x4c2469(0x1e3)]),validateInstantApiPolicy({'appCode':_0x5c4f1d[_0x4c2469(0x1e3)],'config':_0x1f8be6})]);return assertExpectedRevision(_0x5476a9,_0x1e728b),{'local':_0x4f536c,'config':_0x1f8be6,'changeSummary':_0x2d39f1,'expectedRevision':_0x1e728b,'before':_0x5476a9,'validation':_0x31bf5c};}export const instantApiPolicyPublish={'service':a108_0x5f1fb0(0x1e8),'command':a108_0x5f1fb0(0x1e7),'description':a108_0x5f1fb0(0x1dd),'risk':a108_0x5f1fb0(0x1cc),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a108_0x5f1fb0(0x1e5),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2849fb){readChangeSummary(_0x2849fb),readExpectedRevision(_0x2849fb);},async 'dryRun'(_0x918cae){const _0x297c9d=a108_0x5f1fb0,_0x5bce19=await preparePublish(_0x918cae);return asDryRunResult({'operation':_0x297c9d(0x1e7),'selector':{'appCode':_0x918cae[_0x297c9d(0x1e3)]},'before':projectCurrentPolicy(_0x5bce19['before']),'after':{'revision':_0x5bce19['before']?_0x5bce19[_0x297c9d(0x1d3)]['revision']+0x1:0x1,'configHash':_0x5bce19[_0x297c9d(0x1c5)][_0x297c9d(0x1d6)],'config':_0x5bce19[_0x297c9d(0x1c5)][_0x297c9d(0x1e2)]},'filePath':_0x5bce19['local']['policyFilePath'],'relativePath':_0x5bce19[_0x297c9d(0x1d8)][_0x297c9d(0x1de)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x297c9d(0x1d7)},'warnings':expectedRevisionWarnings(_0x5bce19[_0x297c9d(0x1d5)]),'verification':{'status':_0x297c9d(0x1c6),'expectedRevision':_0x5bce19[_0x297c9d(0x1d5)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x297c9d(0x1ca),'url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x24cd57){const _0x8bb50f=a108_0x5f1fb0,_0xfeb467=await preparePublish(_0x24cd57);let _0x1ebb5f=![];try{await publishInstantApiPolicy({'appCode':_0x24cd57[_0x8bb50f(0x1e3)],'config':_0xfeb467[_0x8bb50f(0x1ce)],..._0xfeb467['changeSummary']?{'changeSummary':_0xfeb467[_0x8bb50f(0x1c4)]}:{}});}catch(_0x3fc42d){if(!isPlatformTransportFailure(_0x3fc42d))throw _0x3fc42d;_0x1ebb5f=!![];}let _0x4144c1;try{_0x4144c1=await getCurrentInstantApiPolicy(_0x24cd57[_0x8bb50f(0x1e3)]);}catch(_0x34844c){const _0x36cc69=instantApiPolicyError(_0x1ebb5f?_0x8bb50f(0x1c9):_0x8bb50f(0x1cf),_0x8bb50f(0x1df),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x8bb50f(0x1e1));Object[_0x8bb50f(0x1db)](_0x36cc69,_0x8bb50f(0x1c7),{'value':_0x34844c,'enumerable':![]});throw _0x36cc69;}const _0x3bad96=_0x4144c1&&(_0xfeb467[_0x8bb50f(0x1d3)]===null||_0x4144c1[_0x8bb50f(0x1d1)]>_0xfeb467[_0x8bb50f(0x1d3)][_0x8bb50f(0x1d1)]),_0x55fcd0=_0x4144c1?.[_0x8bb50f(0x1d6)]===_0xfeb467[_0x8bb50f(0x1c5)][_0x8bb50f(0x1d6)];if(!_0x4144c1||!_0x3bad96||!_0x55fcd0)throw instantApiPolicyError(_0x1ebb5f?'instant_api_policy_publish_outcome_unknown':_0x8bb50f(0x1da),_0x8bb50f(0x1ea),_0x8bb50f(0x1d2)+mutationLookupCommand()+_0x8bb50f(0x1e1));const _0x525453=[...expectedRevisionWarnings(_0xfeb467[_0x8bb50f(0x1d5)]),RUNTIME_CACHE_WARNING];return _0x1ebb5f&&_0x525453['push'](_0x8bb50f(0x1e9)),{'ok':!![],'data':{'operation':_0x8bb50f(0x1e7),'selector':{'appCode':_0x24cd57[_0x8bb50f(0x1e3)]},'before':projectCurrentPolicy(_0xfeb467['before']),'after':projectCurrentPolicy(_0x4144c1),'filePath':_0xfeb467[_0x8bb50f(0x1d8)][_0x8bb50f(0x1d4)],'relativePath':_0xfeb467[_0x8bb50f(0x1d8)]['policyRelativePath'],'dryRun':![],'backend':{'method':_0x8bb50f(0x1ca),'path':INSTANT_API_POLICY_BASE_PATH+_0x8bb50f(0x1d7)},'warnings':_0x525453,'verification':{'status':_0x8bb50f(0x1cb),'recoveredAfterUnknownResponse':_0x1ebb5f,'expectedRevision':_0xfeb467['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x8bb50f(0x1dc)+_0x4144c1['revision']};}};function a108_0x5b9f(){const _0x531eaa=['planned','cause','3546843JYNUWL','instant_api_policy_publish_outcome_unknown','POST','verified','high-risk-write','7tzGvta','config','instant_api_policy_publish_verification_unavailable','1835298tUxbeT','revision','Inspect\x20with\x20`','before','policyFilePath','expectedRevision','configHash','/publish','local','9004CtrkLR','instant_api_policy_publish_verification_failed','defineProperty','Published\x20Instant\x20API\x20policy\x20revision\x20','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','policyRelativePath','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','2285AZUJfM','`;\x20do\x20not\x20resubmit\x20automatically.','normalizedConfig','appCode','150320vRMYEM','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','974242UaTTCv','publish','instant-api-policy','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','3784455apAcSW','7181488wiNaFl','changeSummary','validation'];a108_0x5b9f=function(){return _0x531eaa;};return a108_0x5b9f();}
1
+ function a106_0x38a6(){const _0x34c968=['changeSummary','expectedRevision','planned','appCode','cause','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','revision','POST','validation','publish','before','4WJufyX','instant_api_policy_publish_outcome_unknown','high-risk-write','2292152hEhTyT','44744070gNhSre','/publish','push','local','configHash','normalizedConfig','instant_api_policy_publish_verification_failed','27TLhJuw','1249936PBzkVX','`;\x20do\x20not\x20resubmit\x20automatically.','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','policyFilePath','defineProperty','instant_api_policy_publish_verification_unavailable','instant-api-policy','2082300VdmRxv','4552962deRxBd','5810798WwKRlI','5iDLsie','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','config','all','verified','Inspect\x20with\x20`','718604ctjfnF'];a106_0x38a6=function(){return _0x34c968;};return a106_0x38a6();}function a106_0x3e63(_0x1388b3,_0x1c1dfc){_0x1388b3=_0x1388b3-0xd9;const _0x38a62e=a106_0x38a6();let _0x3e6323=_0x38a62e[_0x1388b3];return _0x3e6323;}const a106_0x338f2f=a106_0x3e63;(function(_0x337e84,_0x2e287d){const _0x1d6f14=a106_0x3e63,_0x532034=_0x337e84();while(!![]){try{const _0xe2b3ec=parseInt(_0x1d6f14(0xfa))/0x1+-parseInt(_0x1d6f14(0xee))/0x2*(-parseInt(_0x1d6f14(0xd9))/0x3)+-parseInt(_0x1d6f14(0xe2))/0x4*(-parseInt(_0x1d6f14(0xdc))/0x5)+parseInt(_0x1d6f14(0xda))/0x6+parseInt(_0x1d6f14(0xdb))/0x7+-parseInt(_0x1d6f14(0xf1))/0x8*(-parseInt(_0x1d6f14(0xf9))/0x9)+-parseInt(_0x1d6f14(0xf2))/0xa;if(_0xe2b3ec===_0x2e287d)break;else _0x532034['push'](_0x532034['shift']());}catch(_0x39591f){_0x532034['push'](_0x532034['shift']());}}}(a106_0x38a6,0xc1546));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(_0x4eb0de){const _0x1212ca=a106_0x3e63,{local:_0x26d0fb,config:_0x130648}=await readFixedPolicy(_0x4eb0de),_0x256f99=readChangeSummary(_0x4eb0de),_0x49cdd1=readExpectedRevision(_0x4eb0de),[_0x5c9db0,_0xc64f42]=await Promise[_0x1212ca(0xdf)]([getCurrentInstantApiPolicy(_0x4eb0de[_0x1212ca(0xe6)]),validateInstantApiPolicy({'appCode':_0x4eb0de[_0x1212ca(0xe6)],'config':_0x130648})]);return assertExpectedRevision(_0x5c9db0,_0x49cdd1),{'local':_0x26d0fb,'config':_0x130648,'changeSummary':_0x256f99,'expectedRevision':_0x49cdd1,'before':_0x5c9db0,'validation':_0xc64f42};}export const instantApiPolicyPublish={'service':a106_0x338f2f(0x101),'command':a106_0x338f2f(0xec),'description':a106_0x338f2f(0xdd),'risk':a106_0x338f2f(0xf0),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x57ffd8){readChangeSummary(_0x57ffd8),readExpectedRevision(_0x57ffd8);},async 'dryRun'(_0x14b5d7){const _0x570c24=a106_0x338f2f,_0x2f0643=await preparePublish(_0x14b5d7);return asDryRunResult({'operation':_0x570c24(0xec),'selector':{'appCode':_0x14b5d7['appCode']},'before':projectCurrentPolicy(_0x2f0643[_0x570c24(0xed)]),'after':{'revision':_0x2f0643['before']?_0x2f0643[_0x570c24(0xed)][_0x570c24(0xe9)]+0x1:0x1,'configHash':_0x2f0643['validation'][_0x570c24(0xf6)],'config':_0x2f0643[_0x570c24(0xeb)][_0x570c24(0xf7)]},'filePath':_0x2f0643[_0x570c24(0xf5)][_0x570c24(0xfe)],'relativePath':_0x2f0643[_0x570c24(0xf5)]['policyRelativePath'],'dryRun':!![],'backend':{'method':_0x570c24(0xea),'path':INSTANT_API_POLICY_BASE_PATH+_0x570c24(0xf3)},'warnings':expectedRevisionWarnings(_0x2f0643[_0x570c24(0xe4)]),'verification':{'status':_0x570c24(0xe5),'expectedRevision':_0x2f0643[_0x570c24(0xe4)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x570c24(0xea),'url':INSTANT_API_POLICY_BASE_PATH+_0x570c24(0xf3)});},async 'execute'(_0x599cff){const _0x238ef2=a106_0x338f2f,_0x4ef494=await preparePublish(_0x599cff);let _0x1715e2=![];try{await publishInstantApiPolicy({'appCode':_0x599cff['appCode'],'config':_0x4ef494[_0x238ef2(0xde)],..._0x4ef494[_0x238ef2(0xe3)]?{'changeSummary':_0x4ef494[_0x238ef2(0xe3)]}:{}});}catch(_0x6e7a47){if(!isPlatformTransportFailure(_0x6e7a47))throw _0x6e7a47;_0x1715e2=!![];}let _0x4efd11;try{_0x4efd11=await getCurrentInstantApiPolicy(_0x599cff[_0x238ef2(0xe6)]);}catch(_0x5c1fc6){const _0xf71af5=instantApiPolicyError(_0x1715e2?_0x238ef2(0xef):_0x238ef2(0x100),_0x238ef2(0xe8),_0x238ef2(0xe1)+mutationLookupCommand()+_0x238ef2(0xfb));Object[_0x238ef2(0xff)](_0xf71af5,_0x238ef2(0xe7),{'value':_0x5c1fc6,'enumerable':![]});throw _0xf71af5;}const _0x2326a6=_0x4efd11&&(_0x4ef494[_0x238ef2(0xed)]===null||_0x4efd11[_0x238ef2(0xe9)]>_0x4ef494[_0x238ef2(0xed)][_0x238ef2(0xe9)]),_0xa3c7c7=_0x4efd11?.['configHash']===_0x4ef494[_0x238ef2(0xeb)][_0x238ef2(0xf6)];if(!_0x4efd11||!_0x2326a6||!_0xa3c7c7)throw instantApiPolicyError(_0x1715e2?_0x238ef2(0xef):_0x238ef2(0xf8),_0x238ef2(0xfd),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x238ef2(0xfb));const _0x29673b=[...expectedRevisionWarnings(_0x4ef494[_0x238ef2(0xe4)]),RUNTIME_CACHE_WARNING];return _0x1715e2&&_0x29673b[_0x238ef2(0xf4)](_0x238ef2(0xfc)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x599cff[_0x238ef2(0xe6)]},'before':projectCurrentPolicy(_0x4ef494[_0x238ef2(0xed)]),'after':projectCurrentPolicy(_0x4efd11),'filePath':_0x4ef494['local'][_0x238ef2(0xfe)],'relativePath':_0x4ef494[_0x238ef2(0xf5)]['policyRelativePath'],'dryRun':![],'backend':{'method':_0x238ef2(0xea),'path':INSTANT_API_POLICY_BASE_PATH+_0x238ef2(0xf3)},'warnings':_0x29673b,'verification':{'status':_0x238ef2(0xe0),'recoveredAfterUnknownResponse':_0x1715e2,'expectedRevision':_0x4ef494[_0x238ef2(0xe4)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0x4efd11[_0x238ef2(0xe9)]};}};
@@ -1 +1 @@
1
- function a109_0x4aae(_0x42c1f7,_0xddb93e){_0x42c1f7=_0x42c1f7-0x11c;const _0x58b52a=a109_0x58b5();let _0x4aae13=_0x58b52a[_0x42c1f7];return _0x4aae13;}const a109_0x20023e=a109_0x4aae;(function(_0x251dff,_0x3e2680){const _0x54e43d=a109_0x4aae,_0x2a3634=_0x251dff();while(!![]){try{const _0x1b11fb=-parseInt(_0x54e43d(0x129))/0x1+parseInt(_0x54e43d(0x11d))/0x2+parseInt(_0x54e43d(0x12c))/0x3+-parseInt(_0x54e43d(0x120))/0x4*(parseInt(_0x54e43d(0x126))/0x5)+parseInt(_0x54e43d(0x127))/0x6+parseInt(_0x54e43d(0x11e))/0x7+-parseInt(_0x54e43d(0x133))/0x8*(parseInt(_0x54e43d(0x132))/0x9);if(_0x1b11fb===_0x3e2680)break;else _0x2a3634['push'](_0x2a3634['shift']());}catch(_0x27ef13){_0x2a3634['push'](_0x2a3634['shift']());}}}(a109_0x58b5,0x56fc7));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a109_0x58b5(){const _0x14cfb3=['action','9AmMQMQ','1212424VEpXVD','bool','write','appCode','686436WmSnYz','1094884owWTeG','pull','28TbsDxw','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','instant_api_policy_not_configured','\x20Instant\x20API\x20policy\x20revision\x20','Pulled','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','153905LdaRFS','3665220WdpPku','policyFilePath','630957QQNGXs','config','Kept','731316Tkswoc','policyRelativePath','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','instant-api-policy','unchanged'];a109_0x58b5=function(){return _0x14cfb3;};return a109_0x58b5();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a109_0x20023e(0x12f),'command':a109_0x20023e(0x11f),'description':a109_0x20023e(0x121),'risk':a109_0x20023e(0x135),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x29e5c7){requireForceConfirmation(_0x29e5c7);},async 'execute'(_0x5973dc){const _0x1d734d=a109_0x20023e;requireForceConfirmation(_0x5973dc);const _0x4770b9=await getCurrentInstantApiPolicy(_0x5973dc[_0x1d734d(0x11c)]);if(!_0x4770b9)throw instantApiPolicyError(_0x1d734d(0x122),_0x1d734d(0x125)+_0x5973dc['appCode']+'.',_0x1d734d(0x12e));const _0x4c91e0=loadInstantApiPolicyLocalConfig(_0x5973dc[_0x1d734d(0x11c)]),_0x1f14c4=await writeInstantApiPolicyConfigFile(_0x4c91e0,_0x4770b9[_0x1d734d(0x12a)],{'force':_0x5973dc[_0x1d734d(0x134)]('force')});return{'ok':!![],'data':{'operation':_0x1d734d(0x11f),'selector':{'appCode':_0x5973dc[_0x1d734d(0x11c)],'revision':_0x4770b9['revision']},'filePath':_0x4c91e0[_0x1d734d(0x128)],'relativePath':_0x4c91e0[_0x1d734d(0x12d)],'action':_0x1f14c4[_0x1d734d(0x131)],'configHash':_0x4770b9['configHash']},'message':(_0x1f14c4[_0x1d734d(0x131)]===_0x1d734d(0x130)?_0x1d734d(0x12b):_0x1d734d(0x124))+_0x1d734d(0x123)+_0x4770b9['revision']};}};
1
+ const a107_0xcdf6b3=a107_0x16ea;function a107_0x16ea(_0x473daa,_0x594f8d){_0x473daa=_0x473daa-0x17b;const _0x2b5e65=a107_0x2b5e();let _0x16ea0c=_0x2b5e65[_0x473daa];return _0x16ea0c;}(function(_0x4beb1d,_0x29e367){const _0x4b784c=a107_0x16ea,_0x4980c1=_0x4beb1d();while(!![]){try{const _0x4ef6df=-parseInt(_0x4b784c(0x17d))/0x1*(-parseInt(_0x4b784c(0x17f))/0x2)+parseInt(_0x4b784c(0x184))/0x3+-parseInt(_0x4b784c(0x17e))/0x4*(-parseInt(_0x4b784c(0x195))/0x5)+parseInt(_0x4b784c(0x188))/0x6*(parseInt(_0x4b784c(0x193))/0x7)+-parseInt(_0x4b784c(0x182))/0x8*(parseInt(_0x4b784c(0x185))/0x9)+-parseInt(_0x4b784c(0x196))/0xa*(-parseInt(_0x4b784c(0x18c))/0xb)+parseInt(_0x4b784c(0x194))/0xc*(-parseInt(_0x4b784c(0x180))/0xd);if(_0x4ef6df===_0x29e367)break;else _0x4980c1['push'](_0x4980c1['shift']());}catch(_0x18b8f2){_0x4980c1['push'](_0x4980c1['shift']());}}}(a107_0x2b5e,0x7afd3));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x2b5e(){const _0x569bce=['4911511lDDaZM','force','policyFilePath','configHash','pull','instant_api_policy_not_configured','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','7aNRmjP','1125336VdymLz','15HhUuxc','20GjSLSB','write','policyRelativePath','Pulled','13CEAKFm','379396jTyial','19946zmWhHm','169qzVVnc','Kept','1376464pgjjkV','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','723756CXzDwL','27kcRSoE','instant-api-policy','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','4143606WyxTCR','appCode','action','bool'];a107_0x2b5e=function(){return _0x569bce;};return a107_0x2b5e();}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_0xcdf6b3(0x186),'command':a107_0xcdf6b3(0x190),'description':a107_0xcdf6b3(0x187),'risk':a107_0xcdf6b3(0x197),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x17cae8){requireForceConfirmation(_0x17cae8);},async 'execute'(_0x2ac577){const _0x2269a9=a107_0xcdf6b3;requireForceConfirmation(_0x2ac577);const _0xc7f367=await getCurrentInstantApiPolicy(_0x2ac577[_0x2269a9(0x189)]);if(!_0xc7f367)throw instantApiPolicyError(_0x2269a9(0x191),_0x2269a9(0x183)+_0x2ac577['appCode']+'.',_0x2269a9(0x192));const _0x5c7761=loadInstantApiPolicyLocalConfig(_0x2ac577[_0x2269a9(0x189)]),_0x4fe1e0=await writeInstantApiPolicyConfigFile(_0x5c7761,_0xc7f367['config'],{'force':_0x2ac577[_0x2269a9(0x18b)](_0x2269a9(0x18d))});return{'ok':!![],'data':{'operation':_0x2269a9(0x190),'selector':{'appCode':_0x2ac577['appCode'],'revision':_0xc7f367['revision']},'filePath':_0x5c7761[_0x2269a9(0x18e)],'relativePath':_0x5c7761[_0x2269a9(0x17b)],'action':_0x4fe1e0[_0x2269a9(0x18a)],'configHash':_0xc7f367[_0x2269a9(0x18f)]},'message':(_0x4fe1e0[_0x2269a9(0x18a)]==='unchanged'?_0x2269a9(0x181):_0x2269a9(0x17c))+'\x20Instant\x20API\x20policy\x20revision\x20'+_0xc7f367['revision']};}};
@@ -1 +1 @@
1
- function a110_0x2e04(_0x19bac8,_0x13de27){_0x19bac8=_0x19bac8-0x113;const _0x53f479=a110_0x53f4();let _0x2e04fb=_0x53f479[_0x19bac8];return _0x2e04fb;}const a110_0x52c59a=a110_0x2e04;(function(_0x11ea3b,_0x5aff1d){const _0x550101=a110_0x2e04,_0xf08ea0=_0x11ea3b();while(!![]){try{const _0x579ae6=parseInt(_0x550101(0x11e))/0x1*(parseInt(_0x550101(0x11d))/0x2)+parseInt(_0x550101(0x119))/0x3+parseInt(_0x550101(0x11a))/0x4+-parseInt(_0x550101(0x116))/0x5+parseInt(_0x550101(0x115))/0x6+parseInt(_0x550101(0x11c))/0x7*(parseInt(_0x550101(0x11b))/0x8)+-parseInt(_0x550101(0x118))/0x9*(parseInt(_0x550101(0x11f))/0xa);if(_0x579ae6===_0x5aff1d)break;else _0xf08ea0['push'](_0xf08ea0['shift']());}catch(_0x44aa09){_0xf08ea0['push'](_0xf08ea0['shift']());}}}(a110_0x53f4,0xf35a2));function a110_0x53f4(){const _0x3f333c=['Loaded\x20Instant\x20API\x20policy\x20revision\x20','37569213ZYdxxz','515292gvKNug','6735788ddIKjN','8zsuvQc','12949559lZXdDn','4BYYGoP','741669UAzHiA','10wSzXVw','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','revision','read','11327478MJKUOh','9528860XpqmyE'];a110_0x53f4=function(){return _0x3f333c;};return a110_0x53f4();}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':a110_0x52c59a(0x113),'description':a110_0x52c59a(0x120),'risk':a110_0x52c59a(0x114),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x584df5){readRevision(_0x584df5);},async 'execute'(_0x433af5){const _0x26f694=a110_0x52c59a,_0x3c40b5=readRevision(_0x433af5),_0x29652d=await getInstantApiPolicyRevision(_0x433af5['appCode'],_0x3c40b5);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x29652d)},'message':_0x26f694(0x117)+_0x3c40b5};}};
1
+ const a108_0x573e85=a108_0x32b1;(function(_0x52c645,_0x57225b){const _0x37823d=a108_0x32b1,_0x774b2f=_0x52c645();while(!![]){try{const _0x56ff2d=parseInt(_0x37823d(0x17f))/0x1+-parseInt(_0x37823d(0x17e))/0x2*(-parseInt(_0x37823d(0x17d))/0x3)+-parseInt(_0x37823d(0x183))/0x4+-parseInt(_0x37823d(0x182))/0x5+parseInt(_0x37823d(0x187))/0x6+-parseInt(_0x37823d(0x189))/0x7*(parseInt(_0x37823d(0x18a))/0x8)+parseInt(_0x37823d(0x181))/0x9*(-parseInt(_0x37823d(0x188))/0xa);if(_0x56ff2d===_0x57225b)break;else _0x774b2f['push'](_0x774b2f['shift']());}catch(_0x5894e5){_0x774b2f['push'](_0x774b2f['shift']());}}}(a108_0x3f6a,0x9ffbc));function a108_0x32b1(_0x53b789,_0x4d02f3){_0x53b789=_0x53b789-0x17d;const _0x3f6a90=a108_0x3f6a();let _0x32b160=_0x3f6a90[_0x53b789];return _0x32b160;}function a108_0x3f6a(){const _0x498027=['2200180EZfOmr','913836VZaOpi','revision','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20','2789724XSwsKN','460HZgTHl','7NXZeTI','2539544XESChH','3749463yWbnDo','2SvELUx','73057YLLsJQ','instant-api-policy','28683ADgBQj'];a108_0x3f6a=function(){return _0x498027;};return a108_0x3f6a();}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a108_0x573e85(0x180),'command':a108_0x573e85(0x184),'description':a108_0x573e85(0x185),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x39da6e){readRevision(_0x39da6e);},async 'execute'(_0x1ee73d){const _0x508792=a108_0x573e85,_0x3f9f48=readRevision(_0x1ee73d),_0x4f206b=await getInstantApiPolicyRevision(_0x1ee73d['appCode'],_0x3f9f48);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x4f206b)},'message':_0x508792(0x186)+_0x3f9f48};}};
@@ -1 +1 @@
1
- function a111_0x1a63(_0x5144d6,_0x21d1d9){_0x5144d6=_0x5144d6-0xab;const _0x46378a=a111_0x4637();let _0x1a63d0=_0x46378a[_0x5144d6];return _0x1a63d0;}const a111_0x34867b=a111_0x1a63;(function(_0x12db0d,_0x5b536c){const _0x29e0dc=a111_0x1a63,_0x45e523=_0x12db0d();while(!![]){try{const _0x5218f1=-parseInt(_0x29e0dc(0xb4))/0x1*(parseInt(_0x29e0dc(0xb9))/0x2)+parseInt(_0x29e0dc(0xb6))/0x3+-parseInt(_0x29e0dc(0xad))/0x4*(-parseInt(_0x29e0dc(0xb2))/0x5)+parseInt(_0x29e0dc(0xac))/0x6*(-parseInt(_0x29e0dc(0xb7))/0x7)+-parseInt(_0x29e0dc(0xb5))/0x8+parseInt(_0x29e0dc(0xae))/0x9*(-parseInt(_0x29e0dc(0xbb))/0xa)+-parseInt(_0x29e0dc(0xb1))/0xb*(-parseInt(_0x29e0dc(0xab))/0xc);if(_0x5218f1===_0x5b536c)break;else _0x45e523['push'](_0x45e523['shift']());}catch(_0x465307){_0x45e523['push'](_0x45e523['shift']());}}}(a111_0x4637,0x2827d));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a111_0x4637(){const _0x216324=['1144968ryUkbi','524310hqPbRe','7hpqdpe','appCode','2oEldVm','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','430sauolp','5090112yjQhxO','1611066JLDCSu','4disGve','34164JqbHco','length','revisions','11aEidla','762140ZoMnNU','read','12037OMbWCo'];a111_0x4637=function(){return _0x216324;};return a111_0x4637();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':a111_0x34867b(0xb0),'description':a111_0x34867b(0xba),'risk':a111_0x34867b(0xb3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x30c8bf){const _0x533495=a111_0x34867b,_0x136ac0=await listInstantApiPolicyRevisions(_0x30c8bf[_0x533495(0xb8)]);return{'ok':!![],'data':{'appCode':_0x30c8bf[_0x533495(0xb8)],'total':_0x136ac0[_0x533495(0xaf)],'revisions':_0x136ac0['map'](projectRevisionSummary)},'message':'Found\x20'+_0x136ac0[_0x533495(0xaf)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
1
+ const a109_0x3d016a=a109_0x3768;(function(_0x518887,_0x5bd013){const _0x2f7571=a109_0x3768,_0x4e70e5=_0x518887();while(!![]){try{const _0x3ea7a7=parseInt(_0x2f7571(0x118))/0x1*(parseInt(_0x2f7571(0x116))/0x2)+-parseInt(_0x2f7571(0x113))/0x3*(-parseInt(_0x2f7571(0x114))/0x4)+parseInt(_0x2f7571(0x119))/0x5*(parseInt(_0x2f7571(0x111))/0x6)+parseInt(_0x2f7571(0x115))/0x7+parseInt(_0x2f7571(0x11b))/0x8*(parseInt(_0x2f7571(0x11c))/0x9)+parseInt(_0x2f7571(0x10b))/0xa*(-parseInt(_0x2f7571(0x10d))/0xb)+-parseInt(_0x2f7571(0x11e))/0xc;if(_0x3ea7a7===_0x5bd013)break;else _0x4e70e5['push'](_0x4e70e5['shift']());}catch(_0x5f0378){_0x4e70e5['push'](_0x4e70e5['shift']());}}}(a109_0x1c1f,0x63f98));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a109_0x3d016a(0x11d),'command':a109_0x3d016a(0x10f),'description':a109_0x3d016a(0x10c),'risk':a109_0x3d016a(0x110),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2d71b7){const _0x36ea31=a109_0x3d016a,_0x1c0b4c=await listInstantApiPolicyRevisions(_0x2d71b7[_0x36ea31(0x112)]);return{'ok':!![],'data':{'appCode':_0x2d71b7[_0x36ea31(0x112)],'total':_0x1c0b4c[_0x36ea31(0x10e)],'revisions':_0x1c0b4c[_0x36ea31(0x117)](projectRevisionSummary)},'message':_0x36ea31(0x11a)+_0x1c0b4c['length']+'\x20Instant\x20API\x20policy\x20revision(s)'};}};function a109_0x3768(_0x12acba,_0x5386cb){_0x12acba=_0x12acba-0x10b;const _0x1c1f85=a109_0x1c1f();let _0x376842=_0x1c1f85[_0x12acba];return _0x376842;}function a109_0x1c1f(){const _0x56e2ab=['1bmEXsF','825aoNuea','Found\x20','35456PGeymC','1260foqjet','instant-api-policy','28655628RtgsxI','10DXTLpI','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','3080341nLgGOx','length','revisions','read','21444MQJWuV','appCode','3rEQcDi','2782496yRNZdm','4369960dclfWG','1094804NAJNWr','map'];a109_0x1c1f=function(){return _0x56e2ab;};return a109_0x1c1f();}
@@ -1 +1 @@
1
- const a112_0x2eea0d=a112_0xe40b;(function(_0xf5bf46,_0x22a40e){const _0x1fbe22=a112_0xe40b,_0x118c57=_0xf5bf46();while(!![]){try{const _0x1beff1=-parseInt(_0x1fbe22(0x9d))/0x1*(-parseInt(_0x1fbe22(0x8e))/0x2)+parseInt(_0x1fbe22(0x81))/0x3*(parseInt(_0x1fbe22(0x92))/0x4)+parseInt(_0x1fbe22(0x85))/0x5*(parseInt(_0x1fbe22(0x9c))/0x6)+-parseInt(_0x1fbe22(0x93))/0x7*(-parseInt(_0x1fbe22(0x82))/0x8)+parseInt(_0x1fbe22(0x99))/0x9+parseInt(_0x1fbe22(0xa5))/0xa+-parseInt(_0x1fbe22(0x87))/0xb;if(_0x1beff1===_0x22a40e)break;else _0x118c57['push'](_0x118c57['shift']());}catch(_0x49092c){_0x118c57['push'](_0x118c57['shift']());}}}(a112_0x52c3,0xd78c8));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';function a112_0xe40b(_0x521307,_0x3e3ee6){_0x521307=_0x521307-0x81;const _0x52c353=a112_0x52c3();let _0xe40bdf=_0x52c353[_0x521307];return _0xe40bdf;}function a112_0x52c3(){const _0x55e2e9=['instant_api_policy_rollback_outcome_unknown','appCode','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','14816810iYurDg','verified','push','30yRMUxr','13147384pbsUiR','instant-api-policy','high-risk-write','267755TTPsZR','defineProperty','52847850meTaCq','instant_api_policy_rollback_verification_failed','/rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','rollback','all','target','420594ydDUvA','before','configHash','expectedRevision','287236NWGAIw','7jCvDmM','planned','Rolled\x20Instant\x20API\x20policy\x20revision\x20','POST','changeSummary','`;\x20do\x20not\x20resubmit\x20automatically.','973053FAlOeP','instant_api_policy_rollback_verification_unavailable','revision','6oZgfvK','8MtYGAV','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','Inspect\x20with\x20`','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'];a112_0x52c3=function(){return _0x55e2e9;};return a112_0x52c3();}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(_0x2bca97){const _0x36de42=a112_0xe40b,_0x23e62a=readRevision(_0x2bca97),_0x44fde8=readChangeSummary(_0x2bca97),_0x1a500d=readExpectedRevision(_0x2bca97),[_0x4a0fd6,_0x290889]=await Promise[_0x36de42(0x8c)]([getCurrentInstantApiPolicy(_0x2bca97[_0x36de42(0xa3)]),getInstantApiPolicyRevision(_0x2bca97['appCode'],_0x23e62a)]);if(!_0x4a0fd6)throw instantApiPolicyError('instant_api_policy_not_configured',_0x36de42(0xa1)+_0x2bca97[_0x36de42(0xa3)]+'.');return assertExpectedRevision(_0x4a0fd6,_0x1a500d),{'revision':_0x23e62a,'changeSummary':_0x44fde8,'expectedRevision':_0x1a500d,'before':_0x4a0fd6,'target':_0x290889};}export const instantApiPolicyRollback={'service':a112_0x2eea0d(0x83),'command':a112_0x2eea0d(0x8b),'description':a112_0x2eea0d(0xa4),'risk':a112_0x2eea0d(0x84),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a112_0x2eea0d(0xa0),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x1cd8b4){readRevision(_0x1cd8b4),readChangeSummary(_0x1cd8b4),readExpectedRevision(_0x1cd8b4);},async 'dryRun'(_0x3f6152){const _0x26e086=a112_0x2eea0d,_0x137f45=await prepareRollback(_0x3f6152);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x3f6152[_0x26e086(0xa3)],'sourceRevision':_0x137f45[_0x26e086(0x9b)]},'before':projectCurrentPolicy(_0x137f45[_0x26e086(0x8f)]),'after':{'revision':_0x137f45[_0x26e086(0x8f)][_0x26e086(0x9b)]+0x1,'sourceRevision':projectRevisionDetail(_0x137f45[_0x26e086(0x8d)])},'dryRun':!![],'backend':{'method':_0x26e086(0x96),'path':INSTANT_API_POLICY_BASE_PATH+_0x26e086(0x89)},'warnings':expectedRevisionWarnings(_0x137f45[_0x26e086(0x91)]),'verification':{'status':_0x26e086(0x94),'expectedRevision':_0x137f45[_0x26e086(0x91)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x26e086(0x96),'url':INSTANT_API_POLICY_BASE_PATH+_0x26e086(0x89)});},async 'execute'(_0x2113bb){const _0x4c0f69=a112_0x2eea0d,_0x3e0899=await prepareRollback(_0x2113bb);let _0x32ca59=![];try{await rollbackInstantApiPolicy({'appCode':_0x2113bb['appCode'],'revision':_0x3e0899[_0x4c0f69(0x9b)],..._0x3e0899['changeSummary']?{'changeSummary':_0x3e0899[_0x4c0f69(0x97)]}:{}});}catch(_0x1c2ba7){if(!isPlatformTransportFailure(_0x1c2ba7))throw _0x1c2ba7;_0x32ca59=!![];}let _0x5a5563;try{_0x5a5563=await getCurrentInstantApiPolicy(_0x2113bb[_0x4c0f69(0xa3)]);}catch(_0x590e16){const _0xf1ff5a=instantApiPolicyError(_0x32ca59?_0x4c0f69(0xa2):_0x4c0f69(0x9a),_0x4c0f69(0x8a),_0x4c0f69(0x9f)+mutationLookupCommand()+_0x4c0f69(0x98));Object[_0x4c0f69(0x86)](_0xf1ff5a,'cause',{'value':_0x590e16,'enumerable':![]});throw _0xf1ff5a;}const _0x575cdf=_0x5a5563&&_0x5a5563['revision']>_0x3e0899[_0x4c0f69(0x8f)][_0x4c0f69(0x9b)],_0x45741b=_0x5a5563?.[_0x4c0f69(0x90)]===_0x3e0899[_0x4c0f69(0x8d)][_0x4c0f69(0x90)];if(!_0x5a5563||!_0x575cdf||!_0x45741b)throw instantApiPolicyError(_0x32ca59?_0x4c0f69(0xa2):_0x4c0f69(0x88),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.',_0x4c0f69(0x9f)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x31434d=[...expectedRevisionWarnings(_0x3e0899[_0x4c0f69(0x91)]),RUNTIME_CACHE_WARNING];return _0x32ca59&&_0x31434d[_0x4c0f69(0xa7)](_0x4c0f69(0x9e)),{'ok':!![],'data':{'operation':_0x4c0f69(0x8b),'selector':{'appCode':_0x2113bb[_0x4c0f69(0xa3)],'sourceRevision':_0x3e0899[_0x4c0f69(0x9b)]},'before':projectCurrentPolicy(_0x3e0899[_0x4c0f69(0x8f)]),'after':projectCurrentPolicy(_0x5a5563),'dryRun':![],'backend':{'method':_0x4c0f69(0x96),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x31434d,'verification':{'status':_0x4c0f69(0xa6),'recoveredAfterUnknownResponse':_0x32ca59,'expectedRevision':_0x3e0899[_0x4c0f69(0x91)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x4c0f69(0x95)+_0x3e0899['revision']+'\x20forward\x20to\x20revision\x20'+_0x5a5563[_0x4c0f69(0x9b)]};}};
1
+ const a110_0x2cd730=a110_0x31c6;(function(_0x1f7ea3,_0x387d35){const _0xb88f15=a110_0x31c6,_0x3cb34a=_0x1f7ea3();while(!![]){try{const _0x2b55ad=-parseInt(_0xb88f15(0x18c))/0x1+-parseInt(_0xb88f15(0x186))/0x2+-parseInt(_0xb88f15(0x181))/0x3+-parseInt(_0xb88f15(0x180))/0x4*(parseInt(_0xb88f15(0x185))/0x5)+-parseInt(_0xb88f15(0x175))/0x6+-parseInt(_0xb88f15(0x18a))/0x7+parseInt(_0xb88f15(0x176))/0x8;if(_0x2b55ad===_0x387d35)break;else _0x3cb34a['push'](_0x3cb34a['shift']());}catch(_0x2b2852){_0x3cb34a['push'](_0x3cb34a['shift']());}}}(a110_0x552b,0x70446));function a110_0x31c6(_0x455b68,_0x572032){_0x455b68=_0x455b68-0x174;const _0x552b1c=a110_0x552b();let _0x31c676=_0x552b1c[_0x455b68];return _0x31c676;}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a110_0x552b(){const _0x5dd9ef=['POST','/rollback','all','cause','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','1156038BqbXPc','20429552vXBDTn','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','before','rollback','changeSummary','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_not_configured','instant_api_policy_rollback_verification_unavailable','target','144180fHuWfL','557535PGioVk','expectedRevision','push','defineProperty','55AmfdmO','897922PPBpBR','revision','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Inspect\x20with\x20`','2951697DFInmU','configHash','448203uVILJI','appCode','instant_api_policy_rollback_outcome_unknown','instant-api-policy','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','\x20forward\x20to\x20revision\x20'];a110_0x552b=function(){return _0x5dd9ef;};return a110_0x552b();}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(_0x81c9e){const _0x307a36=a110_0x31c6,_0xb57134=readRevision(_0x81c9e),_0x4d8174=readChangeSummary(_0x81c9e),_0x40b1e1=readExpectedRevision(_0x81c9e),[_0x356af9,_0x4c97cf]=await Promise[_0x307a36(0x194)]([getCurrentInstantApiPolicy(_0x81c9e[_0x307a36(0x18d)]),getInstantApiPolicyRevision(_0x81c9e[_0x307a36(0x18d)],_0xb57134)]);if(!_0x356af9)throw instantApiPolicyError(_0x307a36(0x17d),_0x307a36(0x188)+_0x81c9e['appCode']+'.');return assertExpectedRevision(_0x356af9,_0x40b1e1),{'revision':_0xb57134,'changeSummary':_0x4d8174,'expectedRevision':_0x40b1e1,'before':_0x356af9,'target':_0x4c97cf};}export const instantApiPolicyRollback={'service':a110_0x2cd730(0x18f),'command':a110_0x2cd730(0x17a),'description':'Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a110_0x2cd730(0x174),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x4d65aa){readRevision(_0x4d65aa),readChangeSummary(_0x4d65aa),readExpectedRevision(_0x4d65aa);},async 'dryRun'(_0x412977){const _0x4e3137=a110_0x2cd730,_0x347b45=await prepareRollback(_0x412977);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x412977[_0x4e3137(0x18d)],'sourceRevision':_0x347b45[_0x4e3137(0x187)]},'before':projectCurrentPolicy(_0x347b45[_0x4e3137(0x179)]),'after':{'revision':_0x347b45[_0x4e3137(0x179)][_0x4e3137(0x187)]+0x1,'sourceRevision':projectRevisionDetail(_0x347b45[_0x4e3137(0x17f)])},'dryRun':!![],'backend':{'method':_0x4e3137(0x192),'path':INSTANT_API_POLICY_BASE_PATH+_0x4e3137(0x193)},'warnings':expectedRevisionWarnings(_0x347b45['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x347b45[_0x4e3137(0x182)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x4e3137(0x192),'url':INSTANT_API_POLICY_BASE_PATH+'/rollback'});},async 'execute'(_0x35c469){const _0xfacb9c=a110_0x2cd730,_0x267910=await prepareRollback(_0x35c469);let _0x1a53b7=![];try{await rollbackInstantApiPolicy({'appCode':_0x35c469[_0xfacb9c(0x18d)],'revision':_0x267910['revision'],..._0x267910['changeSummary']?{'changeSummary':_0x267910[_0xfacb9c(0x17b)]}:{}});}catch(_0x476d7e){if(!isPlatformTransportFailure(_0x476d7e))throw _0x476d7e;_0x1a53b7=!![];}let _0x2197f4;try{_0x2197f4=await getCurrentInstantApiPolicy(_0x35c469['appCode']);}catch(_0x12655a){const _0x101f2b=instantApiPolicyError(_0x1a53b7?_0xfacb9c(0x18e):_0xfacb9c(0x17e),_0xfacb9c(0x177),_0xfacb9c(0x189)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0xfacb9c(0x184)](_0x101f2b,_0xfacb9c(0x195),{'value':_0x12655a,'enumerable':![]});throw _0x101f2b;}const _0x1485ab=_0x2197f4&&_0x2197f4[_0xfacb9c(0x187)]>_0x267910['before'][_0xfacb9c(0x187)],_0x18894c=_0x2197f4?.[_0xfacb9c(0x18b)]===_0x267910[_0xfacb9c(0x17f)][_0xfacb9c(0x18b)];if(!_0x2197f4||!_0x1485ab||!_0x18894c)throw instantApiPolicyError(_0x1a53b7?_0xfacb9c(0x18e):'instant_api_policy_rollback_verification_failed',_0xfacb9c(0x178),_0xfacb9c(0x189)+mutationLookupCommand()+_0xfacb9c(0x17c));const _0x3d3525=[...expectedRevisionWarnings(_0x267910[_0xfacb9c(0x182)]),RUNTIME_CACHE_WARNING];return _0x1a53b7&&_0x3d3525[_0xfacb9c(0x183)](_0xfacb9c(0x190)),{'ok':!![],'data':{'operation':_0xfacb9c(0x17a),'selector':{'appCode':_0x35c469[_0xfacb9c(0x18d)],'sourceRevision':_0x267910['revision']},'before':projectCurrentPolicy(_0x267910[_0xfacb9c(0x179)]),'after':projectCurrentPolicy(_0x2197f4),'dryRun':![],'backend':{'method':_0xfacb9c(0x192),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x3d3525,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x1a53b7,'expectedRevision':_0x267910[_0xfacb9c(0x182)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Rolled\x20Instant\x20API\x20policy\x20revision\x20'+_0x267910['revision']+_0xfacb9c(0x191)+_0x2197f4['revision']};}};
@@ -1 +1 @@
1
- const a113_0x410653=a113_0x2211;(function(_0x381f40,_0x262c76){const _0x2a81a0=a113_0x2211,_0x4d564a=_0x381f40();while(!![]){try{const _0x3732e3=parseInt(_0x2a81a0(0x10c))/0x1*(-parseInt(_0x2a81a0(0x119))/0x2)+parseInt(_0x2a81a0(0xfe))/0x3+parseInt(_0x2a81a0(0x110))/0x4*(parseInt(_0x2a81a0(0x116))/0x5)+-parseInt(_0x2a81a0(0x12c))/0x6*(parseInt(_0x2a81a0(0x11a))/0x7)+-parseInt(_0x2a81a0(0x10d))/0x8+-parseInt(_0x2a81a0(0x12b))/0x9*(-parseInt(_0x2a81a0(0x117))/0xa)+-parseInt(_0x2a81a0(0x127))/0xb*(parseInt(_0x2a81a0(0x102))/0xc);if(_0x3732e3===_0x262c76)break;else _0x4d564a['push'](_0x4d564a['shift']());}catch(_0x4bff0b){_0x4d564a['push'](_0x4d564a['shift']());}}}(a113_0x10c6,0xb5023));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a113_0x410653(0x11d);function a113_0x10c6(){const _0x3c6ea4=['appCode','NaN','95887OkBXJB','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','gmtCreate','force','2277999HbrtcT','6YrtRxE','instant_api_policy_expected_revision_invalid','bool','changeSummary','version','updateUserId','policyId','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','--change-summary\x20cannot\x20exceed\x202000\x20characters.','2887101vsdNmg','instantApi','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','isSafeInteger','588madVDl','trim','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','yes','operatorId','revision','boolean','str','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','1eEEQFC','1952680zYXkRo','instant_api_policy_force_confirmation_required','config','1468Nhkwsd','configHash','length','expected-revision','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','defaults','75KslLEB','40kIapPS','number','286244qRxQcM','2971955JnTyqd','instant_api_policy_change_summary_invalid','num','/smartapi/instant-api-policy','Expected\x20revision\x20','flag','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','Positive\x20published\x20policy\x20revision','rules','change-summary','instant_api_policy_revision_mismatch'];a113_0x10c6=function(){return _0x3c6ea4;};return a113_0x10c6();}export const RUNTIME_CACHE_WARNING='Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.';export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a113_0x410653(0x114);export const FORCE_FLAG={'name':'force','type':a113_0x410653(0x109),'default':![],'description':a113_0x410653(0x128)};export const CHANGE_SUMMARY_FLAG={'name':a113_0x410653(0x123),'type':'string','required':![],'description':a113_0x410653(0x105)};function a113_0x2211(_0x306b90,_0x5f56db){_0x306b90=_0x306b90-0xfa;const _0x10c653=a113_0x10c6();let _0x2211da=_0x10c653[_0x306b90];return _0x2211da;}export const REVISION_FLAG={'name':a113_0x410653(0x108),'type':'number','required':!![],'description':a113_0x410653(0x121)};export const EXPECTED_REVISION_FLAG={'name':'expected-revision','type':a113_0x410653(0x118),'required':![],'description':a113_0x410653(0x104)};export function requireForceConfirmation(_0x15ac66){const _0x3c6191=a113_0x410653;if(!_0x15ac66[_0x3c6191(0x12e)](_0x3c6191(0x12a))||_0x15ac66[_0x3c6191(0x12e)](_0x3c6191(0x106)))return;throw instantApiPolicyError(_0x3c6191(0x10e),'--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.',_0x3c6191(0x120));}export function readChangeSummary(_0x37264b){const _0x4c1c22=a113_0x410653,_0x224ac6=_0x37264b[_0x4c1c22(0x10a)](_0x4c1c22(0x123))[_0x4c1c22(0x103)]();if(!_0x224ac6)return undefined;if(_0x224ac6[_0x4c1c22(0x112)]>0x7d0)throw instantApiPolicyError(_0x4c1c22(0x11b),_0x4c1c22(0xfd));return _0x224ac6;}export function readRevision(_0x4e3e5b){const _0x3d69ea=a113_0x410653,_0x130b5e=_0x4e3e5b[_0x3d69ea(0x11c)](_0x3d69ea(0x108),Number[_0x3d69ea(0x126)]);if(!Number[_0x3d69ea(0x101)](_0x130b5e)||_0x130b5e<=0x0)throw instantApiPolicyError('instant_api_policy_revision_invalid','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x130b5e;}export function readExpectedRevision(_0x2ed3e1){const _0x48f445=a113_0x410653;if(_0x2ed3e1[_0x48f445(0x11f)](_0x48f445(0x113))===undefined)return undefined;const _0x15b58f=_0x2ed3e1[_0x48f445(0x11c)](_0x48f445(0x113),Number['NaN']);if(!Number[_0x48f445(0x101)](_0x15b58f)||_0x15b58f<0x0)throw instantApiPolicyError(_0x48f445(0x12d),_0x48f445(0x100));return _0x15b58f;}export function assertExpectedRevision(_0x2ba4c0,_0x25cc06){const _0x4aa01d=a113_0x410653;if(_0x25cc06===undefined)return;const _0x4f15ca=_0x2ba4c0?.[_0x4aa01d(0x108)]??0x0;if(_0x4f15ca!==_0x25cc06)throw instantApiPolicyError(_0x4aa01d(0x124),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',_0x4aa01d(0x11e)+_0x25cc06+';\x20current\x20revision\x20is\x20'+_0x4f15ca+_0x4aa01d(0x10b));}export async function readFixedPolicy(_0x431d0b){const _0x1f3ace=loadInstantApiPolicyLocalConfig(_0x431d0b['appCode']),_0xf1b85d=await readInstantApiPolicyConfigFile(_0x1f3ace);return{'local':_0x1f3ace,'config':_0xf1b85d};}export function projectCurrentPolicy(_0x41e544){const _0x557962=a113_0x410653;if(!_0x41e544)return null;return{'id':_0x41e544['id'],'appCode':_0x41e544[_0x557962(0x125)],'revision':_0x41e544[_0x557962(0x108)],'configHash':_0x41e544['configHash'],'enabled':_0x41e544['enabled'],'config':_0x41e544[_0x557962(0x10f)],'createUserId':_0x41e544['createUserId']??null,'updateUserId':_0x41e544[_0x557962(0xfa)]??null,'gmtCreate':_0x41e544[_0x557962(0x129)]??null,'gmtModified':_0x41e544['gmtModified']??null};}export function projectRevisionSummary(_0x16b28b){const _0x3ac7b3=a113_0x410653;return{'id':_0x16b28b['id'],'policyId':_0x16b28b[_0x3ac7b3(0xfb)],'appCode':_0x16b28b['appCode'],'revision':_0x16b28b['revision'],'configHash':_0x16b28b[_0x3ac7b3(0x111)],'changeType':_0x16b28b['changeType'],'changeSummary':_0x16b28b[_0x3ac7b3(0x12f)]??null,'operatorId':_0x16b28b[_0x3ac7b3(0x107)]??null,'gmtCreate':_0x16b28b['gmtCreate']??null,'version':_0x16b28b[_0x3ac7b3(0x10f)][_0x3ac7b3(0x130)],'defaultAction':_0x16b28b[_0x3ac7b3(0x10f)][_0x3ac7b3(0x115)][_0x3ac7b3(0xff)],'ruleCount':_0x16b28b[_0x3ac7b3(0x10f)][_0x3ac7b3(0x122)]?.[_0x3ac7b3(0x112)]??0x0};}export function projectRevisionDetail(_0x6d4217){return{...projectRevisionSummary(_0x6d4217),'config':_0x6d4217['config']};}export function expectedRevisionWarnings(_0x5796a1){return _0x5796a1===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x2c30f7=a113_0x410653;return _0x2c30f7(0xfc);}
1
+ const a111_0x3fccab=a111_0xe5e2;(function(_0x4c8fa7,_0x3bae64){const _0x308766=a111_0xe5e2,_0x3e6dec=_0x4c8fa7();while(!![]){try{const _0x2b9ec1=-parseInt(_0x308766(0x140))/0x1*(-parseInt(_0x308766(0x15d))/0x2)+-parseInt(_0x308766(0x155))/0x3*(parseInt(_0x308766(0x14c))/0x4)+-parseInt(_0x308766(0x15e))/0x5*(parseInt(_0x308766(0x160))/0x6)+parseInt(_0x308766(0x14a))/0x7*(parseInt(_0x308766(0x14d))/0x8)+-parseInt(_0x308766(0x144))/0x9+-parseInt(_0x308766(0x153))/0xa+-parseInt(_0x308766(0x13a))/0xb*(-parseInt(_0x308766(0x13c))/0xc);if(_0x2b9ec1===_0x3bae64)break;else _0x3e6dec['push'](_0x3e6dec['shift']());}catch(_0x4dcdf0){_0x3e6dec['push'](_0x3e6dec['shift']());}}}(a111_0x345a,0x921b3));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH='/smartapi/instant-api-policy';export const RUNTIME_CACHE_WARNING=a111_0x3fccab(0x161);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x3fccab(0x14f);export const FORCE_FLAG={'name':a111_0x3fccab(0x13d),'type':a111_0x3fccab(0x13b),'default':![],'description':a111_0x3fccab(0x139)};export const CHANGE_SUMMARY_FLAG={'name':a111_0x3fccab(0x15c),'type':'string','required':![],'description':a111_0x3fccab(0x138)};export const REVISION_FLAG={'name':a111_0x3fccab(0x164),'type':a111_0x3fccab(0x15b),'required':!![],'description':'Positive\x20published\x20policy\x20revision'};function a111_0x345a(){const _0x20db45=['config','bool','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','264YcvOJo','boolean','432072BugOCX','force','rules','updateUserId','1kVbCXH','str','instant_api_policy_force_confirmation_required','length','92952FYXgYL','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','expected-revision','changeSummary','appCode','9191dafsLp','gmtCreate','3074548AyrxWH','3592lZWLGk','num','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','trim','Expected\x20revision\x20','operatorId','7755820VtZCIc','instant_api_policy_revision_mismatch','3TQnENT','defaults','instant_api_policy_change_summary_invalid','instantApi','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','configHash','number','change-summary','2132126ilPlLT','5zltcjb','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','2200476NCpMja','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','version','flag','revision','NaN','policyId','isSafeInteger'];a111_0x345a=function(){return _0x20db45;};return a111_0x345a();}export const EXPECTED_REVISION_FLAG={'name':a111_0x3fccab(0x147),'type':a111_0x3fccab(0x15b),'required':![],'description':a111_0x3fccab(0x145)};export function requireForceConfirmation(_0x47ed08){const _0x38e790=a111_0x3fccab;if(!_0x47ed08[_0x38e790(0x136)](_0x38e790(0x13d))||_0x47ed08[_0x38e790(0x136)]('yes'))return;throw instantApiPolicyError(_0x38e790(0x142),_0x38e790(0x15f),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0xc8a337){const _0x131548=a111_0x3fccab,_0x352983=_0xc8a337[_0x131548(0x141)]('change-summary')[_0x131548(0x150)]();if(!_0x352983)return undefined;if(_0x352983[_0x131548(0x143)]>0x7d0)throw instantApiPolicyError(_0x131548(0x157),'--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0x352983;}export function readRevision(_0x5cb39d){const _0x42ad5=a111_0x3fccab,_0x167d9d=_0x5cb39d[_0x42ad5(0x14e)](_0x42ad5(0x164),Number['NaN']);if(!Number[_0x42ad5(0x167)](_0x167d9d)||_0x167d9d<=0x0)throw instantApiPolicyError('instant_api_policy_revision_invalid','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0x167d9d;}export function readExpectedRevision(_0x5e5f9e){const _0x1aa6f8=a111_0x3fccab;if(_0x5e5f9e[_0x1aa6f8(0x163)]('expected-revision')===undefined)return undefined;const _0x29b4ab=_0x5e5f9e[_0x1aa6f8(0x14e)](_0x1aa6f8(0x147),Number[_0x1aa6f8(0x165)]);if(!Number[_0x1aa6f8(0x167)](_0x29b4ab)||_0x29b4ab<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0x1aa6f8(0x137));return _0x29b4ab;}export function assertExpectedRevision(_0x2effb9,_0x5b21a8){const _0x2ac604=a111_0x3fccab;if(_0x5b21a8===undefined)return;const _0x255692=_0x2effb9?.[_0x2ac604(0x164)]??0x0;if(_0x255692!==_0x5b21a8)throw instantApiPolicyError(_0x2ac604(0x154),_0x2ac604(0x146),_0x2ac604(0x151)+_0x5b21a8+';\x20current\x20revision\x20is\x20'+_0x255692+'.\x20Run\x20current\x20and\x20review\x20before\x20retrying.');}export async function readFixedPolicy(_0x3547d7){const _0xcd4917=a111_0x3fccab,_0x330fce=loadInstantApiPolicyLocalConfig(_0x3547d7[_0xcd4917(0x149)]),_0x49a47e=await readInstantApiPolicyConfigFile(_0x330fce);return{'local':_0x330fce,'config':_0x49a47e};}export function projectCurrentPolicy(_0x1cad9a){const _0x3f9c2d=a111_0x3fccab;if(!_0x1cad9a)return null;return{'id':_0x1cad9a['id'],'appCode':_0x1cad9a[_0x3f9c2d(0x149)],'revision':_0x1cad9a['revision'],'configHash':_0x1cad9a[_0x3f9c2d(0x15a)],'enabled':_0x1cad9a['enabled'],'config':_0x1cad9a[_0x3f9c2d(0x168)],'createUserId':_0x1cad9a['createUserId']??null,'updateUserId':_0x1cad9a[_0x3f9c2d(0x13f)]??null,'gmtCreate':_0x1cad9a[_0x3f9c2d(0x14b)]??null,'gmtModified':_0x1cad9a['gmtModified']??null};}export function projectRevisionSummary(_0x3e8677){const _0x1f3b5e=a111_0x3fccab;return{'id':_0x3e8677['id'],'policyId':_0x3e8677[_0x1f3b5e(0x166)],'appCode':_0x3e8677[_0x1f3b5e(0x149)],'revision':_0x3e8677[_0x1f3b5e(0x164)],'configHash':_0x3e8677[_0x1f3b5e(0x15a)],'changeType':_0x3e8677['changeType'],'changeSummary':_0x3e8677[_0x1f3b5e(0x148)]??null,'operatorId':_0x3e8677[_0x1f3b5e(0x152)]??null,'gmtCreate':_0x3e8677[_0x1f3b5e(0x14b)]??null,'version':_0x3e8677['config'][_0x1f3b5e(0x162)],'defaultAction':_0x3e8677['config'][_0x1f3b5e(0x156)][_0x1f3b5e(0x158)],'ruleCount':_0x3e8677[_0x1f3b5e(0x168)][_0x1f3b5e(0x13e)]?.['length']??0x0};}export function projectRevisionDetail(_0x3963f2){const _0x3a1599=a111_0x3fccab;return{...projectRevisionSummary(_0x3963f2),'config':_0x3963f2[_0x3a1599(0x168)]};}export function expectedRevisionWarnings(_0x2f1f78){return _0x2f1f78===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}function a111_0xe5e2(_0x39a8ca,_0x13d23b){_0x39a8ca=_0x39a8ca-0x136;const _0x345a59=a111_0x345a();let _0xe5e2f8=_0x345a59[_0x39a8ca];return _0xe5e2f8;}export function mutationLookupCommand(){const _0x3723ee=a111_0x3fccab;return _0x3723ee(0x159);}
@@ -1 +1 @@
1
- function a114_0x257e(){const _0x2284f0=['/validate','instant-api-policy','appCode','29398457EDtHqf','validate','529137Pdnkjb','1817042sRmmQb','Validated\x20Instant\x20API\x20policy\x20for\x20','1163544ufpJer','POST','60wDHFAp','read','4230625AcNhYs','45GhdyKf','1102359ifNHxW','328EBRmuS','normalizedConfig','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','10tmhRmn','16557fPsXam'];a114_0x257e=function(){return _0x2284f0;};return a114_0x257e();}const a114_0x14d1ff=a114_0xaabf;(function(_0x5bd2ff,_0x2730fc){const _0x2570b7=a114_0xaabf,_0x20b043=_0x5bd2ff();while(!![]){try{const _0x3aafdb=parseInt(_0x2570b7(0x7b))/0x1+parseInt(_0x2570b7(0x73))/0x2+parseInt(_0x2570b7(0x80))/0x3*(parseInt(_0x2570b7(0x7c))/0x4)+parseInt(_0x2570b7(0x79))/0x5+-parseInt(_0x2570b7(0x77))/0x6*(-parseInt(_0x2570b7(0x72))/0x7)+parseInt(_0x2570b7(0x75))/0x8*(-parseInt(_0x2570b7(0x7a))/0x9)+-parseInt(_0x2570b7(0x7f))/0xa*(parseInt(_0x2570b7(0x70))/0xb);if(_0x3aafdb===_0x2730fc)break;else _0x20b043['push'](_0x20b043['shift']());}catch(_0x150ac9){_0x20b043['push'](_0x20b043['shift']());}}}(a114_0x257e,0xa2847));import{validateInstantApiPolicy}from'../../core/api-client.js';function a114_0xaabf(_0x4b68e5,_0x5ac05b){_0x4b68e5=_0x4b68e5-0x70;const _0x257e78=a114_0x257e();let _0xaabf26=_0x257e78[_0x4b68e5];return _0xaabf26;}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a114_0x14d1ff(0x82),'command':a114_0x14d1ff(0x71),'description':a114_0x14d1ff(0x7e),'risk':a114_0x14d1ff(0x78),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x38e66e){const _0x819932=a114_0x14d1ff,{local:_0x4f17ea,config:_0x48ad9a}=await readFixedPolicy(_0x38e66e),_0x3a421e=await validateInstantApiPolicy({'appCode':_0x38e66e[_0x819932(0x83)],'config':_0x48ad9a});return{'ok':!![],'data':{'operation':_0x819932(0x71),'selector':{'appCode':_0x38e66e['appCode']},'filePath':_0x4f17ea['policyFilePath'],'relativePath':_0x4f17ea['policyRelativePath'],'valid':_0x3a421e['valid'],'configHash':_0x3a421e['configHash'],'normalizedConfig':_0x3a421e[_0x819932(0x7d)],'backend':{'method':_0x819932(0x76),'path':INSTANT_API_POLICY_BASE_PATH+_0x819932(0x81)}},'message':_0x819932(0x74)+_0x38e66e[_0x819932(0x83)]};}};
1
+ const a112_0x56466b=a112_0x21e3;(function(_0x72179f,_0x53e42e){const _0x3066c1=a112_0x21e3,_0x22e0d9=_0x72179f();while(!![]){try{const _0x2475d2=-parseInt(_0x3066c1(0x126))/0x1+-parseInt(_0x3066c1(0x120))/0x2+-parseInt(_0x3066c1(0x12c))/0x3+parseInt(_0x3066c1(0x12b))/0x4+parseInt(_0x3066c1(0x129))/0x5*(parseInt(_0x3066c1(0x12d))/0x6)+-parseInt(_0x3066c1(0x123))/0x7*(-parseInt(_0x3066c1(0x125))/0x8)+-parseInt(_0x3066c1(0x12e))/0x9;if(_0x2475d2===_0x53e42e)break;else _0x22e0d9['push'](_0x22e0d9['shift']());}catch(_0x59d248){_0x22e0d9['push'](_0x22e0d9['shift']());}}}(a112_0xbd4a,0x85478));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';function a112_0x21e3(_0x2d24e8,_0x2d5924){_0x2d24e8=_0x2d24e8-0x11f;const _0xbd4a17=a112_0xbd4a();let _0x21e394=_0xbd4a17[_0x2d24e8];return _0x21e394;}function a112_0xbd4a(){const _0x5abcb1=['3677611nOjMXv','instant-api-policy','8AWTMxi','933277ZZmxCX','appCode','policyRelativePath','118045xZezbE','policyFilePath','3585856IZzZAk','564654YfEUHk','264ZCVHxx','1612620wrdXtU','POST','normalizedConfig','read','1228092MNaQZJ','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','validate'];a112_0xbd4a=function(){return _0x5abcb1;};return a112_0xbd4a();}export const instantApiPolicyValidate={'service':a112_0x56466b(0x124),'command':a112_0x56466b(0x122),'description':a112_0x56466b(0x121),'risk':a112_0x56466b(0x11f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2f311d){const _0x2e5988=a112_0x56466b,{local:_0xdcfd40,config:_0x43d0fd}=await readFixedPolicy(_0x2f311d),_0x311ce1=await validateInstantApiPolicy({'appCode':_0x2f311d['appCode'],'config':_0x43d0fd});return{'ok':!![],'data':{'operation':_0x2e5988(0x122),'selector':{'appCode':_0x2f311d[_0x2e5988(0x127)]},'filePath':_0xdcfd40[_0x2e5988(0x12a)],'relativePath':_0xdcfd40[_0x2e5988(0x128)],'valid':_0x311ce1['valid'],'configHash':_0x311ce1['configHash'],'normalizedConfig':_0x311ce1[_0x2e5988(0x130)],'backend':{'method':_0x2e5988(0x12f),'path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':'Validated\x20Instant\x20API\x20policy\x20for\x20'+_0x2f311d[_0x2e5988(0x127)]};}};
@@ -1 +1 @@
1
- function a115_0x291f(_0x55ec65,_0x35c1ad){_0x55ec65=_0x55ec65-0x15e;const _0x196ec5=a115_0x196e();let _0x291f62=_0x196ec5[_0x55ec65];return _0x291f62;}(function(_0x4eee3a,_0x394918){const _0x367b99=a115_0x291f,_0x56def4=_0x4eee3a();while(!![]){try{const _0x5d71ba=-parseInt(_0x367b99(0x167))/0x1*(parseInt(_0x367b99(0x163))/0x2)+-parseInt(_0x367b99(0x162))/0x3+parseInt(_0x367b99(0x169))/0x4*(parseInt(_0x367b99(0x164))/0x5)+parseInt(_0x367b99(0x165))/0x6*(-parseInt(_0x367b99(0x161))/0x7)+parseInt(_0x367b99(0x160))/0x8*(parseInt(_0x367b99(0x166))/0x9)+-parseInt(_0x367b99(0x168))/0xa*(parseInt(_0x367b99(0x15e))/0xb)+parseInt(_0x367b99(0x15f))/0xc;if(_0x5d71ba===_0x394918)break;else _0x56def4['push'](_0x56def4['shift']());}catch(_0x1b3220){_0x56def4['push'](_0x56def4['shift']());}}}(a115_0x196e,0x28c1b));import{issueReport}from'../../commands/issue/report.js';function a115_0x196e(){const _0xbed512=['405VdCcyo','12bqdyfY','2124vdkugV','121izttEq','1530CshaEA','13172hVRhnq','143SLOqBX','1642116LLvUyy','3792hEWwAJ','1066093WfvfsH','37170WbRtAJ','488gPpCks'];a115_0x196e=function(){return _0xbed512;};return a115_0x196e();}export const issueDefinitions=[issueReport];
1
+ function a113_0x3b36(_0x40b307,_0x5ad672){_0x40b307=_0x40b307-0x181;const _0x52ff0f=a113_0x52ff();let _0x3b36cf=_0x52ff0f[_0x40b307];return _0x3b36cf;}(function(_0x5f0188,_0x37d37d){const _0x59e5c4=a113_0x3b36,_0x4668ef=_0x5f0188();while(!![]){try{const _0x8dc154=parseInt(_0x59e5c4(0x189))/0x1*(parseInt(_0x59e5c4(0x183))/0x2)+parseInt(_0x59e5c4(0x186))/0x3+-parseInt(_0x59e5c4(0x18b))/0x4*(-parseInt(_0x59e5c4(0x184))/0x5)+-parseInt(_0x59e5c4(0x188))/0x6*(parseInt(_0x59e5c4(0x187))/0x7)+parseInt(_0x59e5c4(0x182))/0x8+-parseInt(_0x59e5c4(0x185))/0x9*(parseInt(_0x59e5c4(0x18a))/0xa)+-parseInt(_0x59e5c4(0x181))/0xb;if(_0x8dc154===_0x37d37d)break;else _0x4668ef['push'](_0x4668ef['shift']());}catch(_0x5722b8){_0x4668ef['push'](_0x4668ef['shift']());}}}(a113_0x52ff,0xecd4f));function a113_0x52ff(){const _0x4e3a8f=['2930985KecSVX','70rMeeQb','88410QXMGlT','29kvHoUr','216170mJNlEt','28GWtJht','37311351ujcsTn','7647352gaVxFi','84430FGoaKv','1166590SiQeUJ','117MYzhYH'];a113_0x52ff=function(){return _0x4e3a8f;};return a113_0x52ff();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a116_0x23f8fa=a116_0x2cfa;function a116_0x2cfa(_0x263fe6,_0x1ac8cb){_0x263fe6=_0x263fe6-0x11e;const _0xfc1e58=a116_0xfc1e();let _0x2cfad3=_0xfc1e58[_0x263fe6];return _0x2cfad3;}(function(_0x498f3c,_0x45f589){const _0x5d3b56=a116_0x2cfa,_0x47cb8a=_0x498f3c();while(!![]){try{const _0x3f8fcb=-parseInt(_0x5d3b56(0x121))/0x1+parseInt(_0x5d3b56(0x135))/0x2*(-parseInt(_0x5d3b56(0x12f))/0x3)+parseInt(_0x5d3b56(0x137))/0x4+-parseInt(_0x5d3b56(0x122))/0x5+-parseInt(_0x5d3b56(0x124))/0x6+-parseInt(_0x5d3b56(0x140))/0x7+parseInt(_0x5d3b56(0x13e))/0x8;if(_0x3f8fcb===_0x45f589)break;else _0x47cb8a['push'](_0x47cb8a['shift']());}catch(_0x155f03){_0x47cb8a['push'](_0x47cb8a['shift']());}}}(a116_0xfc1e,0x48eee));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a116_0xfc1e(){const _0x4eb722=['420497AZXzRY','1350045ImRwlW','slice','1209942BlPZFa','message','\x20bug?\x20Help\x20us\x20fix\x20it:','Hit\x20a\x20','replace','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','length','\x20\x20\x20\x20--title\x20\x22','command','report','353673sybBBD','join','trim','cancelled','\x22\x20\x5c','config_missing','2OaXvZr','flag_missing','1209596JsdwrQ','has','issue','\x20issue\x20report\x20\x5c','\x20\x20Set\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','=1\x20to\x20silence\x20this\x20hint.','12445440EluvHm','auth_required','3845037gfuLGb','service','stderr','code'];a116_0xfc1e=function(){return _0x4eb722;};return a116_0xfc1e();}const NUDGE_SUPPRESSED_CODES=new Set([a116_0x23f8fa(0x132),a116_0x23f8fa(0x13f),a116_0x23f8fa(0x134),'not_in_project','unknown_command',a116_0x23f8fa(0x136),a116_0x23f8fa(0x12a),'network_error']),defaultWriter=_0x321f67=>{const _0x1a0a51=a116_0x23f8fa;process[_0x1a0a51(0x11f)]['write'](_0x321f67);};export function shouldNudgeForError(_0x45cc88,_0x4f1acc){const _0x2bdc9b=a116_0x23f8fa;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4f1acc['service']===_0x2bdc9b(0x139)&&_0x4f1acc[_0x2bdc9b(0x12d)]===_0x2bdc9b(0x12e))return![];if(_0x45cc88 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2bdc9b(0x138)](_0x45cc88[_0x2bdc9b(0x120)]);return!![];}export function printIssueReportNudgeForError(_0x2eb0aa,_0x55fe4a,_0x175130=defaultWriter){if(!shouldNudgeForError(_0x2eb0aa,_0x55fe4a))return;const _0x71fc3f=buildSuggestedTitle(_0x2eb0aa,_0x55fe4a);_0x175130(formatNudge(_0x71fc3f));}function buildSuggestedTitle(_0x69dede,_0x18d47a){const _0x22748d=a116_0x23f8fa,_0x4808d0=_0x69dede instanceof Error?_0x69dede[_0x22748d(0x125)]:String(_0x69dede),_0x9b5296=_0x4808d0['replace'](/[\r\n]+/g,'\x20')[_0x22748d(0x128)](/\s+/g,'\x20')[_0x22748d(0x131)]()[_0x22748d(0x123)](0x0,0x78)[_0x22748d(0x128)](/"/g,'\x5c\x22'),_0xb460fe=CLI_BIN_NAME+'\x20'+_0x18d47a[_0x22748d(0x11e)]+'\x20'+_0x18d47a[_0x22748d(0x12d)];return _0x9b5296[_0x22748d(0x12b)]>0x0?_0xb460fe+':\x20'+_0x9b5296:_0xb460fe;}function formatNudge(_0x13e983){const _0x349ec9=a116_0x23f8fa;return['',_0x349ec9(0x127)+CLI_BIN_NAME+_0x349ec9(0x126),'\x20\x20'+CLI_BIN_NAME+_0x349ec9(0x13a),_0x349ec9(0x12c)+_0x13e983+_0x349ec9(0x133),_0x349ec9(0x129),_0x349ec9(0x13c),_0x349ec9(0x13b)+NUDGE_OPT_OUT_ENV+_0x349ec9(0x13d),''][_0x349ec9(0x130)]('\x0a');}
1
+ const a114_0x2f0250=a114_0x317d;(function(_0x46f8ee,_0x3d65c4){const _0x54ebc8=a114_0x317d,_0x498aab=_0x46f8ee();while(!![]){try{const _0x2918a8=-parseInt(_0x54ebc8(0x13c))/0x1+parseInt(_0x54ebc8(0x13e))/0x2+parseInt(_0x54ebc8(0x144))/0x3*(parseInt(_0x54ebc8(0x152))/0x4)+parseInt(_0x54ebc8(0x148))/0x5+parseInt(_0x54ebc8(0x151))/0x6*(-parseInt(_0x54ebc8(0x140))/0x7)+-parseInt(_0x54ebc8(0x13d))/0x8+-parseInt(_0x54ebc8(0x132))/0x9*(parseInt(_0x54ebc8(0x147))/0xa);if(_0x2918a8===_0x3d65c4)break;else _0x498aab['push'](_0x498aab['shift']());}catch(_0x453492){_0x498aab['push'](_0x498aab['shift']());}}}(a114_0x15a3,0xc43d3));function a114_0x317d(_0x23fb5b,_0x249ea9){_0x23fb5b=_0x23fb5b-0x131;const _0x15a364=a114_0x15a3();let _0x317d04=_0x15a364[_0x23fb5b];return _0x317d04;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a114_0x2f0250(0x13a);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a114_0x2f0250(0x136),a114_0x2f0250(0x153),a114_0x2f0250(0x137),'unknown_command',a114_0x2f0250(0x13f),'validation_error','network_error']),defaultWriter=_0x466f59=>{const _0x22d1b6=a114_0x2f0250;process[_0x22d1b6(0x14c)][_0x22d1b6(0x14f)](_0x466f59);};export function shouldNudgeForError(_0x341fc3,_0x42dc5d){const _0x39422d=a114_0x2f0250;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x42dc5d['service']===_0x39422d(0x14a)&&_0x42dc5d['command']===_0x39422d(0x138))return![];if(_0x341fc3 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x39422d(0x139)](_0x341fc3[_0x39422d(0x14e)]);return!![];}export function printIssueReportNudgeForError(_0x84478c,_0x499ac2,_0x3c0b53=defaultWriter){if(!shouldNudgeForError(_0x84478c,_0x499ac2))return;const _0x48d6d7=buildSuggestedTitle(_0x84478c,_0x499ac2);_0x3c0b53(formatNudge(_0x48d6d7));}function buildSuggestedTitle(_0x130b3c,_0x4d91e2){const _0x4feeb0=a114_0x2f0250,_0x2045c7=_0x130b3c instanceof Error?_0x130b3c[_0x4feeb0(0x131)]:String(_0x130b3c),_0x1b265b=_0x2045c7['replace'](/[\r\n]+/g,'\x20')[_0x4feeb0(0x14d)](/\s+/g,'\x20')[_0x4feeb0(0x142)]()['slice'](0x0,0x78)[_0x4feeb0(0x14d)](/"/g,'\x5c\x22'),_0x372381=CLI_BIN_NAME+'\x20'+_0x4d91e2[_0x4feeb0(0x149)]+'\x20'+_0x4d91e2[_0x4feeb0(0x150)];return _0x1b265b[_0x4feeb0(0x141)]>0x0?_0x372381+':\x20'+_0x1b265b:_0x372381;}function formatNudge(_0x101f55){const _0xce6eb=a114_0x2f0250;return['',_0xce6eb(0x133)+CLI_BIN_NAME+_0xce6eb(0x146),'\x20\x20'+CLI_BIN_NAME+_0xce6eb(0x145),_0xce6eb(0x14b)+_0x101f55+_0xce6eb(0x135),_0xce6eb(0x134),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0xce6eb(0x143)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0xce6eb(0x13b)]('\x0a');}function a114_0x15a3(){const _0x8d4ac7=['command','1412790gGaLVA','116776QEsaeA','config_missing','message','423ENcyLw','Hit\x20a\x20','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x22\x20\x5c','auth_required','not_in_project','report','has','RABETBASE_DISABLE_ISSUE_NUDGE','join','703291GFqTbx','1321920ftHWwi','2096084LMyhko','flag_missing','7SFmHyJ','length','trim','\x20\x20Set\x20','60EvyCDO','\x20issue\x20report\x20\x5c','\x20bug?\x20Help\x20us\x20fix\x20it:','244430gxCfbk','7123450pqOraO','service','issue','\x20\x20\x20\x20--title\x20\x22','stderr','replace','code','write'];a114_0x15a3=function(){return _0x8d4ac7;};return a114_0x15a3();}
@@ -1 +1 @@
1
- const a117_0x3102d2=a117_0x15bd;(function(_0x31861a,_0x5d906c){const _0x3a7f2e=a117_0x15bd,_0x5638dd=_0x31861a();while(!![]){try{const _0x4c962b=-parseInt(_0x3a7f2e(0x1f1))/0x1+-parseInt(_0x3a7f2e(0x1fc))/0x2+-parseInt(_0x3a7f2e(0x1fe))/0x3*(-parseInt(_0x3a7f2e(0x1ea))/0x4)+-parseInt(_0x3a7f2e(0x1ff))/0x5+parseInt(_0x3a7f2e(0x1df))/0x6*(parseInt(_0x3a7f2e(0x1ef))/0x7)+parseInt(_0x3a7f2e(0x1ec))/0x8+-parseInt(_0x3a7f2e(0x1e0))/0x9*(-parseInt(_0x3a7f2e(0x203))/0xa);if(_0x4c962b===_0x5d906c)break;else _0x5638dd['push'](_0x5638dd['shift']());}catch(_0x3f1bb4){_0x5638dd['push'](_0x5638dd['shift']());}}}(a117_0x3ba4,0x28c69));import{existsSync}from'node:fs';function a117_0x15bd(_0x8ba646,_0x314b66){_0x8ba646=_0x8ba646-0x1d7;const _0x3ba4a7=a117_0x3ba4();let _0x15bd3b=_0x3ba4a7[_0x8ba646];return _0x15bd3b;}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a117_0x3102d2(0x1da);function a117_0x3ba4(){const _0x2c127f=['descriptionFile:\x20','9933OaUpTB','463375bZSvBw','filter','POST','redactions:\x20','10490NSEKXx','Platform\x20issue\x20reported\x20(','issue.description','file','inline','truncated','originalBytes','issue.title','Failed\x20to\x20report\x20platform\x20issue:\x20','sanitize','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','str','redacted\x20','length','descriptionSource','description-file','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionKinds','descriptionFilePath','redactionCount','978762OCiXUp','954yeBegv','issue.description_original_bytes','description','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','string','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','cwd','truncated\x20from\x20','title','descriptionSource:\x20','344WrkUrC','validation','470256wNSqqC','trim','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','7rPTYCA','Issue\x20description\x20file\x20is\x20empty:\x20','53654aklkAk','join','push','One-line\x20issue\x20summary','\x20bytes','File\x20not\x20found:\x20','flagMissing','message','\x20secret(s):\x20','issue','otel://','609006oulIUl'];a117_0x3ba4=function(){return _0x2c127f;};return a117_0x3ba4();}export const issueReport={'service':a117_0x3102d2(0x1fa),'command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a117_0x3102d2(0x1e8),'type':a117_0x3102d2(0x1e4),'required':!![],'description':a117_0x3102d2(0x1f4)},{'name':a117_0x3102d2(0x1e2),'type':a117_0x3102d2(0x1e4),'description':a117_0x3102d2(0x20e)},{'name':DESCRIPTION_FILE_FLAG,'type':a117_0x3102d2(0x1e4),'description':a117_0x3102d2(0x1e3)}],async 'validate'(_0x695ab4){const _0x13007b=a117_0x3102d2,_0x32efce=_0x695ab4[_0x13007b(0x20f)](_0x13007b(0x1e8))[_0x13007b(0x1ed)](),_0x45a868=_0x695ab4['str'](_0x13007b(0x1e2))['trim'](),_0x465254=_0x695ab4['str'](DESCRIPTION_FILE_FLAG)[_0x13007b(0x1ed)]();if(!_0x32efce)throw CliErrors[_0x13007b(0x1f7)](_0x13007b(0x1e8),_0x13007b(0x1ee));const _0x1ea9f4=_0x45a868[_0x13007b(0x1d8)]>0x0,_0x311e6c=_0x465254[_0x13007b(0x1d8)]>0x0;if(_0x1ea9f4===_0x311e6c)throw CliErrors[_0x13007b(0x1eb)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x13007b(0x20d));if(_0x311e6c){const _0x2313f3=resolve(process[_0x13007b(0x1e6)](),_0x465254);if(!existsSync(_0x2313f3))throw CliErrors[_0x13007b(0x1eb)](_0x13007b(0x1f6)+_0x2313f3);}},async 'dryRun'(_0x7a26e0){const _0x7e2c7e=a117_0x3102d2,_0x1417df=await prepareIssueReport(_0x7a26e0);return{'method':_0x7e2c7e(0x201),'url':_0x7e2c7e(0x1fb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1417df[_0x7e2c7e(0x1e8)],'issue.description':_0x1417df[_0x7e2c7e(0x1e2)],'issue.description_original_bytes':_0x1417df[_0x7e2c7e(0x20c)]['originalBytes'],'issue.description_truncated':_0x1417df[_0x7e2c7e(0x20c)]['truncated'],'issue.description_redactions':_0x1417df['sanitize'][_0x7e2c7e(0x1de)],'issue.description_redaction_kinds':_0x1417df[_0x7e2c7e(0x20c)][_0x7e2c7e(0x1dc)][_0x7e2c7e(0x1f2)](',')}},'description':[_0x7e2c7e(0x1e5),_0x7e2c7e(0x1e9)+_0x1417df[_0x7e2c7e(0x1d9)],_0x1417df[_0x7e2c7e(0x1dd)]?_0x7e2c7e(0x1fd)+_0x1417df[_0x7e2c7e(0x1dd)]:null,_0x1417df[_0x7e2c7e(0x20c)][_0x7e2c7e(0x208)]?'truncated:\x20original\x20'+_0x1417df['sanitize'][_0x7e2c7e(0x209)]+_0x7e2c7e(0x1f5):null,_0x1417df[_0x7e2c7e(0x20c)][_0x7e2c7e(0x1de)]>0x0?_0x7e2c7e(0x202)+_0x1417df[_0x7e2c7e(0x20c)]['redactionCount']+'\x20('+_0x1417df[_0x7e2c7e(0x20c)][_0x7e2c7e(0x1dc)][_0x7e2c7e(0x1f2)](',\x20')+')':null][_0x7e2c7e(0x200)](Boolean)[_0x7e2c7e(0x1f2)]('\x0a')};},async 'execute'(_0x703d4f){const _0x3b5fbe=a117_0x3102d2,_0x1859e9=await prepareIssueReport(_0x703d4f);try{await sendPlatformIssueCollectLog({'title':_0x1859e9[_0x3b5fbe(0x1e8)],'description':_0x1859e9['description'],'sanitize':{'originalBytes':_0x1859e9['sanitize']['originalBytes'],'truncated':_0x1859e9[_0x3b5fbe(0x20c)]['truncated'],'redactionCount':_0x1859e9[_0x3b5fbe(0x20c)]['redactionCount'],'redactionKinds':_0x1859e9[_0x3b5fbe(0x20c)][_0x3b5fbe(0x1dc)]}});}catch(_0x5c54ab){throw CliErrors['apiError'](_0x3b5fbe(0x20b)+(_0x5c54ab instanceof Error?_0x5c54ab[_0x3b5fbe(0x1f8)]:String(_0x5c54ab)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x1859e9[_0x3b5fbe(0x20c)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3b5fbe(0x20a),_0x3b5fbe(0x205),_0x3b5fbe(0x1e1),'issue.description_truncated','issue.description_redactions','issue.description_redaction_kinds'],'issue':{'title':_0x1859e9[_0x3b5fbe(0x1e8)],'descriptionLength':_0x1859e9[_0x3b5fbe(0x1e2)][_0x3b5fbe(0x1d8)],'descriptionSource':_0x1859e9[_0x3b5fbe(0x1d9)],..._0x1859e9['descriptionFilePath']?{'descriptionFile':_0x1859e9[_0x3b5fbe(0x1dd)]}:{},'sanitize':{'originalBytes':_0x1859e9[_0x3b5fbe(0x20c)]['originalBytes'],'truncated':_0x1859e9['sanitize'][_0x3b5fbe(0x208)],'redactions':_0x1859e9[_0x3b5fbe(0x20c)][_0x3b5fbe(0x1de)],'redactionKinds':_0x1859e9[_0x3b5fbe(0x20c)][_0x3b5fbe(0x1dc)]}}}};}};function buildResultMessage(_0x27e381){const _0x4a39fd=a117_0x3102d2,_0xbef1b=[];return _0x27e381[_0x4a39fd(0x208)]&&_0xbef1b['push'](_0x4a39fd(0x1e7)+_0x27e381[_0x4a39fd(0x209)]+_0x4a39fd(0x1f5)),_0x27e381[_0x4a39fd(0x1de)]>0x0&&_0xbef1b[_0x4a39fd(0x1f3)](_0x4a39fd(0x1d7)+_0x27e381[_0x4a39fd(0x1de)]+_0x4a39fd(0x1f9)+_0x27e381[_0x4a39fd(0x1dc)][_0x4a39fd(0x1f2)](',\x20')),_0xbef1b['length']===0x0?'Platform\x20issue\x20reported':_0x4a39fd(0x204)+_0xbef1b[_0x4a39fd(0x1f2)](';\x20')+')';}async function prepareIssueReport(_0x4822de){const _0x97a939=a117_0x3102d2,_0x7e57d0=_0x4822de[_0x97a939(0x20f)]('title')[_0x97a939(0x1ed)](),_0x5c29ba=_0x4822de[_0x97a939(0x20f)](_0x97a939(0x1e2)),_0x53398b=_0x4822de[_0x97a939(0x20f)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x53398b){const _0x31254b=_0x5c29ba;if(!_0x31254b[_0x97a939(0x1ed)]())throw CliErrors[_0x97a939(0x1eb)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x97a939(0x1db));const _0x5e8ef5=sanitizeIssueDescription(_0x31254b);return{'title':_0x7e57d0,'description':_0x5e8ef5['description'],'descriptionSource':_0x97a939(0x207),'sanitize':_0x5e8ef5};}const _0x5559b8=resolve(process['cwd'](),_0x53398b),_0x134bbb=await readFile(_0x5559b8,'utf8');if(!_0x134bbb[_0x97a939(0x1ed)]())throw CliErrors['validation'](_0x97a939(0x1f0)+_0x5559b8,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x33aaca=sanitizeIssueDescription(_0x134bbb);return{'title':_0x7e57d0,'description':_0x33aaca['description'],'descriptionSource':_0x97a939(0x206),'descriptionFilePath':_0x5559b8,'sanitize':_0x33aaca};}
1
+ const a115_0x246e65=a115_0x302a;function a115_0x5e88(){const _0x394a6d=['join','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated:\x20original\x20','issue.title','717648whhYOC','Platform\x20issue\x20reported','title','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','str','descriptionFile:\x20','descriptionSource:\x20','push','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionSource','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_redactions','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','trim','issue','2328193huPFmb','redactionCount','inline','redactionKinds','truncated\x20from\x20','originalBytes','file','7693620LqIoQj','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','1392205ntsYWK','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','14412uOFDEj','write','message','length','filter','descriptionFilePath','truncated','issue.description_original_bytes','\x20bytes','otel://','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','One-line\x20issue\x20summary','23784DJSEmy','Platform\x20issue\x20reported\x20(','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','issue.description','6LCNzJH','\x20secret(s):\x20','cwd','report','description-file','37ZsZQmE','string','27112hluRrZ','flagMissing','validation','File\x20not\x20found:\x20','9OAXRtw','description'];a115_0x5e88=function(){return _0x394a6d;};return a115_0x5e88();}(function(_0x2f33fb,_0x5deaec){const _0x85d7f2=a115_0x302a,_0x13cfbc=_0x2f33fb();while(!![]){try{const _0xf9095=parseInt(_0x85d7f2(0x1de))/0x1*(parseInt(_0x85d7f2(0x1c9))/0x2)+-parseInt(_0x85d7f2(0x1ea))/0x3+-parseInt(_0x85d7f2(0x1d5))/0x4+parseInt(_0x85d7f2(0x1c7))/0x5*(-parseInt(_0x85d7f2(0x1d9))/0x6)+-parseInt(_0x85d7f2(0x1be))/0x7+-parseInt(_0x85d7f2(0x1e0))/0x8*(-parseInt(_0x85d7f2(0x1e4))/0x9)+parseInt(_0x85d7f2(0x1c5))/0xa;if(_0xf9095===_0x5deaec)break;else _0x13cfbc['push'](_0x13cfbc['shift']());}catch(_0x50b994){_0x13cfbc['push'](_0x13cfbc['shift']());}}}(a115_0x5e88,0x2cb83));import{existsSync}from'node:fs';function a115_0x302a(_0x524687,_0x273cdb){_0x524687=_0x524687-0x1be;const _0x5e886d=a115_0x5e88();let _0x302a0d=_0x5e886d[_0x524687];return _0x302a0d;}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a115_0x246e65(0x1dd);export const issueReport={'service':a115_0x246e65(0x1f9),'command':a115_0x246e65(0x1dc),'description':a115_0x246e65(0x1f3),'risk':a115_0x246e65(0x1ca),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a115_0x246e65(0x1ec),'type':a115_0x246e65(0x1df),'required':!![],'description':a115_0x246e65(0x1d4)},{'name':'description','type':'string','description':a115_0x246e65(0x1d3)},{'name':DESCRIPTION_FILE_FLAG,'type':a115_0x246e65(0x1df),'description':a115_0x246e65(0x1f7)}],async 'validate'(_0x59f7c4){const _0xeaaf7a=a115_0x246e65,_0x432378=_0x59f7c4['str']('title')[_0xeaaf7a(0x1f8)](),_0x1b7bba=_0x59f7c4['str'](_0xeaaf7a(0x1e5))[_0xeaaf7a(0x1f8)](),_0xc6b791=_0x59f7c4[_0xeaaf7a(0x1ef)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x432378)throw CliErrors[_0xeaaf7a(0x1e1)](_0xeaaf7a(0x1ec),_0xeaaf7a(0x1c8));const _0x79164e=_0x1b7bba[_0xeaaf7a(0x1cc)]>0x0,_0x44819e=_0xc6b791[_0xeaaf7a(0x1cc)]>0x0;if(_0x79164e===_0x44819e)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0xeaaf7a(0x1e7));if(_0x44819e){const _0x58e1b4=resolve(process[_0xeaaf7a(0x1db)](),_0xc6b791);if(!existsSync(_0x58e1b4))throw CliErrors[_0xeaaf7a(0x1e2)](_0xeaaf7a(0x1e3)+_0x58e1b4);}},async 'dryRun'(_0x3ed7a7){const _0x90ea32=a115_0x246e65,_0x5f5d0c=await prepareIssueReport(_0x3ed7a7);return{'method':'POST','url':_0x90ea32(0x1d2)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5f5d0c['title'],'issue.description':_0x5f5d0c['description'],'issue.description_original_bytes':_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1c3)],'issue.description_truncated':_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1cf)],'issue.description_redactions':_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1bf)],'issue.description_redaction_kinds':_0x5f5d0c['sanitize'][_0x90ea32(0x1c1)][_0x90ea32(0x1e6)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x90ea32(0x1f1)+_0x5f5d0c[_0x90ea32(0x1f4)],_0x5f5d0c['descriptionFilePath']?_0x90ea32(0x1f0)+_0x5f5d0c[_0x90ea32(0x1ce)]:null,_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1cf)]?_0x90ea32(0x1e8)+_0x5f5d0c[_0x90ea32(0x1ed)]['originalBytes']+_0x90ea32(0x1d1):null,_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1bf)]>0x0?'redactions:\x20'+_0x5f5d0c[_0x90ea32(0x1ed)][_0x90ea32(0x1bf)]+'\x20('+_0x5f5d0c[_0x90ea32(0x1ed)]['redactionKinds'][_0x90ea32(0x1e6)](',\x20')+')':null][_0x90ea32(0x1cd)](Boolean)[_0x90ea32(0x1e6)]('\x0a')};},async 'execute'(_0x5b52f7){const _0x4f4b6a=a115_0x246e65,_0x38f95d=await prepareIssueReport(_0x5b52f7);try{await sendPlatformIssueCollectLog({'title':_0x38f95d[_0x4f4b6a(0x1ec)],'description':_0x38f95d[_0x4f4b6a(0x1e5)],'sanitize':{'originalBytes':_0x38f95d['sanitize'][_0x4f4b6a(0x1c3)],'truncated':_0x38f95d[_0x4f4b6a(0x1ed)][_0x4f4b6a(0x1cf)],'redactionCount':_0x38f95d['sanitize'][_0x4f4b6a(0x1bf)],'redactionKinds':_0x38f95d[_0x4f4b6a(0x1ed)][_0x4f4b6a(0x1c1)]}});}catch(_0x13ee74){throw CliErrors['apiError'](_0x4f4b6a(0x1f5)+(_0x13ee74 instanceof Error?_0x13ee74[_0x4f4b6a(0x1cb)]:String(_0x13ee74)),_0x4f4b6a(0x1d7));}return{'ok':!![],'message':buildResultMessage(_0x38f95d[_0x4f4b6a(0x1ed)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x4f4b6a(0x1e9),_0x4f4b6a(0x1d8),_0x4f4b6a(0x1d0),'issue.description_truncated',_0x4f4b6a(0x1f6),'issue.description_redaction_kinds'],'issue':{'title':_0x38f95d['title'],'descriptionLength':_0x38f95d[_0x4f4b6a(0x1e5)][_0x4f4b6a(0x1cc)],'descriptionSource':_0x38f95d[_0x4f4b6a(0x1f4)],..._0x38f95d['descriptionFilePath']?{'descriptionFile':_0x38f95d[_0x4f4b6a(0x1ce)]}:{},'sanitize':{'originalBytes':_0x38f95d[_0x4f4b6a(0x1ed)][_0x4f4b6a(0x1c3)],'truncated':_0x38f95d['sanitize']['truncated'],'redactions':_0x38f95d[_0x4f4b6a(0x1ed)][_0x4f4b6a(0x1bf)],'redactionKinds':_0x38f95d[_0x4f4b6a(0x1ed)]['redactionKinds']}}}};}};function buildResultMessage(_0x2f0f0d){const _0x2882a0=a115_0x246e65,_0x279f32=[];return _0x2f0f0d['truncated']&&_0x279f32[_0x2882a0(0x1f2)](_0x2882a0(0x1c2)+_0x2f0f0d[_0x2882a0(0x1c3)]+_0x2882a0(0x1d1)),_0x2f0f0d[_0x2882a0(0x1bf)]>0x0&&_0x279f32[_0x2882a0(0x1f2)]('redacted\x20'+_0x2f0f0d[_0x2882a0(0x1bf)]+_0x2882a0(0x1da)+_0x2f0f0d[_0x2882a0(0x1c1)][_0x2882a0(0x1e6)](',\x20')),_0x279f32[_0x2882a0(0x1cc)]===0x0?_0x2882a0(0x1eb):_0x2882a0(0x1d6)+_0x279f32[_0x2882a0(0x1e6)](';\x20')+')';}async function prepareIssueReport(_0x29eb3d){const _0x3eb0d0=a115_0x246e65,_0x51188e=_0x29eb3d[_0x3eb0d0(0x1ef)]('title')[_0x3eb0d0(0x1f8)](),_0x5a5f7c=_0x29eb3d[_0x3eb0d0(0x1ef)](_0x3eb0d0(0x1e5)),_0x1b7314=_0x29eb3d[_0x3eb0d0(0x1ef)](DESCRIPTION_FILE_FLAG)[_0x3eb0d0(0x1f8)]();if(!_0x1b7314){const _0x277ceb=_0x5a5f7c;if(!_0x277ceb[_0x3eb0d0(0x1f8)]())throw CliErrors[_0x3eb0d0(0x1e2)](_0x3eb0d0(0x1ee),_0x3eb0d0(0x1c6));const _0x2fd157=sanitizeIssueDescription(_0x277ceb);return{'title':_0x51188e,'description':_0x2fd157[_0x3eb0d0(0x1e5)],'descriptionSource':_0x3eb0d0(0x1c0),'sanitize':_0x2fd157};}const _0x4dfcf2=resolve(process[_0x3eb0d0(0x1db)](),_0x1b7314),_0x178ecb=await readFile(_0x4dfcf2,'utf8');if(!_0x178ecb[_0x3eb0d0(0x1f8)]())throw CliErrors[_0x3eb0d0(0x1e2)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x4dfcf2,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x414793=sanitizeIssueDescription(_0x178ecb);return{'title':_0x51188e,'description':_0x414793[_0x3eb0d0(0x1e5)],'descriptionSource':_0x3eb0d0(0x1c4),'descriptionFilePath':_0x4dfcf2,'sanitize':_0x414793};}