@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3

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 (361) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.d.ts +5 -3
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.js +1 -1
  273. package/lib/core/bff/config.js +1 -1
  274. package/lib/core/bff/file-system.js +1 -1
  275. package/lib/core/bff/hash.js +1 -1
  276. package/lib/core/bff/hook-directory.js +1 -1
  277. package/lib/core/bff/lock.js +1 -1
  278. package/lib/core/bff/utils.js +1 -1
  279. package/lib/core/cross-db-relation.js +1 -1
  280. package/lib/core/db-resolver.js +1 -1
  281. package/lib/core/flow-config.js +1 -1
  282. package/lib/core/instant-api-policy/config.js +1 -1
  283. package/lib/core/kb-search-client.js +1 -1
  284. package/lib/core/page/file-system.js +1 -1
  285. package/lib/core/page/hash.js +1 -1
  286. package/lib/core/page/lock.js +1 -1
  287. package/lib/core/page/lr-smart-jsx.js +1 -1
  288. package/lib/core/sql-index-auditor.js +1 -1
  289. package/lib/core/sql-sync/config.js +1 -1
  290. package/lib/core/sql-sync/file-system.js +1 -1
  291. package/lib/core/sql-sync/hash.js +1 -1
  292. package/lib/core/sql-sync/lock.js +1 -1
  293. package/lib/core/sql-sync/utils.js +1 -1
  294. package/lib/core/sql-validator.js +1 -1
  295. package/lib/errors.js +1 -1
  296. package/lib/framework/build-all-flags.js +1 -1
  297. package/lib/framework/error-output.js +1 -1
  298. package/lib/framework/explicit-yes.js +1 -1
  299. package/lib/framework/flags.js +1 -1
  300. package/lib/framework/help.js +1 -1
  301. package/lib/framework/index.js +1 -1
  302. package/lib/framework/output.js +1 -1
  303. package/lib/framework/response.js +1 -1
  304. package/lib/framework/runner-alias.js +1 -1
  305. package/lib/framework/runner.js +1 -1
  306. package/lib/framework/schema-export.js +1 -1
  307. package/lib/framework/supported-flags.js +1 -1
  308. package/lib/framework/types.js +1 -1
  309. package/lib/generated/build-info.d.ts +4 -4
  310. package/lib/generated/build-info.js +1 -1
  311. package/lib/generated/official-routing.js +1 -1
  312. package/lib/generated/routing-contract.js +1 -1
  313. package/lib/help.js +1 -1
  314. package/lib/postinstall.js +1 -1
  315. package/lib/runtime/confirmation.js +1 -1
  316. package/lib/runtime/event.js +1 -1
  317. package/lib/runtime/index.js +1 -1
  318. package/lib/runtime/queue.js +1 -1
  319. package/lib/runtime/resolve.js +1 -1
  320. package/lib/skills/builtin-skill.js +1 -1
  321. package/lib/skills/main.js +1 -1
  322. package/lib/skills/npx-skills-add.js +1 -1
  323. package/lib/skills/skill-presence.js +1 -1
  324. package/lib/telemetry/cli-command-trace.js +1 -1
  325. package/lib/telemetry/cli-help-trace.js +1 -1
  326. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  327. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  328. package/lib/telemetry/send-cli-trace-log.js +1 -1
  329. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  330. package/lib/utils/ai_config.js +1 -1
  331. package/lib/utils/apply-jq-filter.js +1 -1
  332. package/lib/utils/cdn-config.js +1 -1
  333. package/lib/utils/check-sdk-version.js +1 -1
  334. package/lib/utils/cli-version-check.js +1 -1
  335. package/lib/utils/cli-version-policy.d.ts +7 -0
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +3 -1
  353. package/skills/rabetbase/SKILL.md +7 -5
  354. package/skills/rabetbase/guides/backend-function.md +5 -1
  355. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  356. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  357. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  358. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
  360. package/skills/rabetbase.manifest.json +4 -3
  361. package/templates/README.md +41 -13
@@ -1 +1 @@
1
- const a124_0x5a0b58=a124_0x4726;(function(_0x2eca92,_0x4be503){const _0x12620f=a124_0x4726,_0x1989ec=_0x2eca92();while(!![]){try{const _0x307249=-parseInt(_0x12620f(0x96))/0x1*(-parseInt(_0x12620f(0x7c))/0x2)+parseInt(_0x12620f(0x88))/0x3+-parseInt(_0x12620f(0x90))/0x4+parseInt(_0x12620f(0x87))/0x5+parseInt(_0x12620f(0xac))/0x6*(-parseInt(_0x12620f(0x86))/0x7)+-parseInt(_0x12620f(0x93))/0x8+parseInt(_0x12620f(0x8c))/0x9*(parseInt(_0x12620f(0x83))/0xa);if(_0x307249===_0x4be503)break;else _0x1989ec['push'](_0x1989ec['shift']());}catch(_0x580ce8){_0x1989ec['push'](_0x1989ec['shift']());}}}(a124_0x1769,0xbd80e));function a124_0x1769(){const _0x12e78f=['errors','2108048fidOeu','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','1787wfHVUr','flowType','normalized','warnings','POST','valid','flagMissing','--id\x20must\x20be\x20a\x20positive\x20integer.','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','object','yes','INDEPENDENT_FLOW','map','flowName','datasetCode','/smartapi/flow/update','/smartapi/flow/publish','Pass\x20--file\x20<path>.','/smartapi/flow/detail','/smartapi/flow/create','message','num','469854HPuVOQ','flowDesc','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','\x20\x20appCode:\x20','number','isSafeInteger','\x20\x20flowId:\x20','string','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','/smartapi/flow/page','flowJson','str','File:\x20','Approval\x20flow\x20','join','appCode','file','1294yceDnK','apiError','\x20\x20flowName:\x20','\x20\x20datasetCode:\x20','trim','pageId','isArray','2010yCdoDH','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','Unable\x20to\x20read\x20FlowConfig:\x20','77HWvrvC','714005GhCiJZ','2094849VZbSck','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.','FlowConfig\x20validation\x20failed\x20for\x20','1998oNiCuH','bool','validation','path','563136NmsKTA','flowCode'];a124_0x1769=function(){return _0x12e78f;};return a124_0x1769();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';function a124_0x4726(_0x5f2227,_0x24ccdb){_0x5f2227=_0x5f2227-0x72;const _0x1769d3=a124_0x1769();let _0x4726ac=_0x1769d3[_0x5f2227];return _0x4726ac;}export const FLOW_PATHS={'list':a124_0x5a0b58(0x74),'detail':a124_0x5a0b58(0xa8),'create':a124_0x5a0b58(0xa9),'update':a124_0x5a0b58(0xa5),'publish':a124_0x5a0b58(0xa6)};export const FLOW_ID_FLAG={'name':'id','type':a124_0x5a0b58(0xb0),'required':!![],'description':a124_0x5a0b58(0x89)};export const FLOW_FILE_FLAG={'name':'file','type':a124_0x5a0b58(0x72),'required':!![],'description':a124_0x5a0b58(0x73)};export function flowDefinitionToConfig(_0x4450ee){const _0xb7eca2=a124_0x5a0b58;if(typeof _0x4450ee['flowName']!==_0xb7eca2(0x72)||_0x4450ee[_0xb7eca2(0xa3)][_0xb7eca2(0x80)]()==='')throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x94));if(typeof _0x4450ee[_0xb7eca2(0x75)]!==_0xb7eca2(0x9f)||_0x4450ee[_0xb7eca2(0x75)]===null||Array[_0xb7eca2(0x82)](_0x4450ee[_0xb7eca2(0x75)]))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x84));if(_0x4450ee[_0xb7eca2(0x97)]!=='FORM_FLOW'&&_0x4450ee[_0xb7eca2(0x97)]!==_0xb7eca2(0xa1))throw CliErrors[_0xb7eca2(0x7d)](_0xb7eca2(0x95),_0xb7eca2(0x8a));const _0xb75f5f={'flowName':_0x4450ee[_0xb7eca2(0xa3)],...typeof _0x4450ee[_0xb7eca2(0xad)]===_0xb7eca2(0x72)?{'flowDesc':_0x4450ee[_0xb7eca2(0xad)]}:{},'flowType':_0x4450ee[_0xb7eca2(0x97)],...typeof _0x4450ee[_0xb7eca2(0xa4)]===_0xb7eca2(0x72)&&_0x4450ee[_0xb7eca2(0xa4)]['trim']()?{'datasetCode':_0x4450ee[_0xb7eca2(0xa4)]}:{},...typeof _0x4450ee[_0xb7eca2(0x81)]==='number'?{'pageId':_0x4450ee[_0xb7eca2(0x81)]}:{},'flowJson':_0x4450ee[_0xb7eca2(0x75)]},_0x4eee4c=validateFlowConfig(_0xb75f5f);if(!_0x4eee4c[_0xb7eca2(0x9b)]){const _0x4af639=_0x4eee4c[_0xb7eca2(0x92)][_0xb7eca2(0xa2)](_0x35779a=>_0x35779a[_0xb7eca2(0x8f)]+':\x20'+_0x35779a[_0xb7eca2(0xaa)])[_0xb7eca2(0x79)](';\x20');throw CliErrors['validation'](_0xb7eca2(0xae),_0x4af639);}return{'config':_0x4eee4c[_0xb7eca2(0x98)],'warnings':_0x4eee4c['warnings'],'removedPaths':_0x4eee4c['warnings'][_0xb7eca2(0xa2)](_0xe0366c=>_0xe0366c[_0xb7eca2(0x8f)])};}export function readFlowId(_0xf51933){const _0xb6f252=a124_0x5a0b58,_0x287f87=_0xf51933[_0xb6f252(0xab)]('id');if(!Number[_0xb6f252(0xb1)](_0x287f87)||_0x287f87<=0x0)throw CliErrors[_0xb6f252(0x8e)](_0xb6f252(0x9d));return _0x287f87;}export function readFlowFilePath(_0x3eebb1){const _0x240b87=a124_0x5a0b58,_0x21a821=_0x3eebb1[_0x240b87(0x76)]('file')[_0x240b87(0x80)]();if(!_0x21a821)throw CliErrors[_0x240b87(0x9c)](_0x240b87(0x7b),_0x240b87(0xa7));return _0x21a821;}export async function prepareFlowWrite(_0x42ae04,_0x1b563c,_0x2e97d1){const _0x1dbbca=a124_0x5a0b58;let _0x196ad1;try{_0x196ad1=await readFlowConfigFile(_0x42ae04);}catch(_0xc7e5b8){const _0x3d4fc5=_0xc7e5b8 instanceof Error?_0xc7e5b8[_0x1dbbca(0xaa)]:String(_0xc7e5b8);throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x85)+_0x3d4fc5,_0x1dbbca(0x77)+_0x42ae04);}const _0x4df834=validateFlowConfig(_0x196ad1);if(!_0x4df834['valid']){const _0x241c49=_0x4df834['errors'][_0x1dbbca(0xa2)](_0x25f4c0=>_0x25f4c0[_0x1dbbca(0x8f)]+':\x20'+_0x25f4c0[_0x1dbbca(0xaa)])[_0x1dbbca(0x79)](';\x20');throw CliErrors[_0x1dbbca(0x8e)](_0x1dbbca(0x8b)+_0x42ae04+'.',_0x241c49||_0x1dbbca(0x9e));}const _0x4564b6=_0x4df834[_0x1dbbca(0x98)],_0x289fee={..._0x2e97d1!==undefined?{'id':_0x2e97d1}:{},'flowName':_0x4564b6['flowName'],..._0x4564b6[_0x1dbbca(0xad)]!==undefined?{'flowDesc':_0x4564b6[_0x1dbbca(0xad)]}:{},'flowType':_0x4564b6[_0x1dbbca(0x97)],'appCode':_0x1b563c,..._0x4564b6['datasetCode']!==undefined?{'datasetCode':_0x4564b6[_0x1dbbca(0xa4)]}:{},..._0x4564b6[_0x1dbbca(0x81)]!==undefined?{'pageId':_0x4564b6[_0x1dbbca(0x81)]}:{},'flowJson':_0x4564b6['flowJson']};return{'request':_0x289fee,'warnings':_0x4df834[_0x1dbbca(0x99)]};}export async function confirmFlowWrite(_0x2306a2,_0x5385d,_0x20951b){const _0xeba50a=a124_0x5a0b58;if(_0x2306a2['nonInteractive']||_0x2306a2[_0xeba50a(0x8d)](_0xeba50a(0xa0)))return;await requireConfirmationPrompt({'lines':[_0xeba50a(0x78)+_0x5385d+':',_0xeba50a(0xaf)+_0x2306a2[_0xeba50a(0x7a)],..._0x20951b['id']!==undefined?[_0xeba50a(0xb2)+_0x20951b['id']]:[],_0xeba50a(0x7e)+_0x20951b['flowName'],'\x20\x20flowType:\x20'+_0x20951b[_0xeba50a(0x97)],..._0x20951b[_0xeba50a(0xa4)]?[_0xeba50a(0x7f)+_0x20951b['datasetCode']]:[],'Continue?\x20[y/N]\x20'],'createCancelledError':_0x5863e7=>CliErrors['cancelled'](_0x5863e7)});}export function flowSelector(_0x3f21f2,_0x1e076b,_0xdfe90a){const _0x2fddcb=a124_0x5a0b58;return{'appCode':_0x3f21f2,..._0x1e076b!==undefined?{'flowId':_0x1e076b}:{},..._0xdfe90a?.['flowCode']?{'flowCode':_0xdfe90a[_0x2fddcb(0x91)]}:{},..._0xdfe90a?.[_0x2fddcb(0xa3)]?{'flowName':_0xdfe90a['flowName']}:{}};}export function buildFlowIdDryRun(_0x168552,_0x52559f,_0x2d5ed6,_0x1c7f4a,_0x1e8cbd){const _0x4c9fda=a124_0x5a0b58,_0x3f9268={'id':_0x1c7f4a,'appCode':_0x2d5ed6};return asDryRunResult({'operation':_0x168552,'selector':flowSelector(_0x2d5ed6,_0x1c7f4a),'before':null,'after':_0x1e8cbd,'request':_0x3f9268,'dryRun':!![],'backend':{'method':'POST','path':_0x52559f},'warnings':[]},{'method':_0x4c9fda(0x9a),'url':_0x52559f});}
1
+ function a124_0x3c00(_0x1bf29d,_0x2783fa){_0x1bf29d=_0x1bf29d-0x1d1;const _0x24c77b=a124_0x24c7();let _0x3c00c0=_0x24c77b[_0x1bf29d];return _0x3c00c0;}const a124_0xaf90fd=a124_0x3c00;(function(_0x175019,_0x4ce70b){const _0x2a8aae=a124_0x3c00,_0x20593b=_0x175019();while(!![]){try{const _0x40943e=parseInt(_0x2a8aae(0x1f0))/0x1+-parseInt(_0x2a8aae(0x1e7))/0x2*(-parseInt(_0x2a8aae(0x1d1))/0x3)+parseInt(_0x2a8aae(0x1f3))/0x4+-parseInt(_0x2a8aae(0x1d8))/0x5+-parseInt(_0x2a8aae(0x1fd))/0x6*(parseInt(_0x2a8aae(0x1d9))/0x7)+-parseInt(_0x2a8aae(0x1dd))/0x8+parseInt(_0x2a8aae(0x1fe))/0x9*(parseInt(_0x2a8aae(0x1f7))/0xa);if(_0x40943e===_0x4ce70b)break;else _0x20593b['push'](_0x20593b['shift']());}catch(_0x323ab8){_0x20593b['push'](_0x20593b['shift']());}}}(a124_0x24c7,0x8314a));function a124_0x24c7(){const _0x57b21d=['normalized','/smartapi/flow/update','join','num','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','validation','Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','The\x20detail\x20response\x20does\x20not\x20contain\x20flowName.','123850kdKqSs','\x20\x20datasetCode:\x20','Pass\x20--file\x20<path>.','1882460XHPYZq','trim','flowCode','datasetCode','240VSirJD','bool','file','map','flowType','/smartapi/flow/publish','6XlPpvN','695016bUtlvW','/smartapi/flow/page','string','yes','Cannot\x20export\x20this\x20flow\x20into\x20the\x20current\x20portable\x20FlowConfig\x20contract.','path','nonInteractive','Flow\x20definition\x20id\x20(from\x20`flow\x20list`\x20or\x20`flow\x20create`)','flowName','flagMissing','pageId','isArray','POST','FORM_FLOW','\x20\x20flowType:\x20','3AvpSZh','File:\x20','/smartapi/flow/create','Run\x20`rabetbase\x20flow\x20validate\x20--file\x20<path>`\x20for\x20details.','The\x20detail\x20response\x20does\x20not\x20contain\x20an\x20object\x20flowJson.','apiError','warnings','4017890MGkJus','3742459jZmRhW','isSafeInteger','/smartapi/flow/detail','--id\x20must\x20be\x20a\x20positive\x20integer.','8375448RJeguJ','number','Approval\x20flow\x20','flowDesc','FlowConfig\x20validation\x20failed\x20for\x20','valid','cancelled','flowJson','appCode','message','948422mqTPsn'];a124_0x24c7=function(){return _0x57b21d;};return a124_0x24c7();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{readFlowConfigFile,validateFlowConfig}from'../../core/flow-config.js';import{CliErrors}from'../../errors.js';import{requireConfirmationPrompt}from'@lovrabet/cli-framework';export const FLOW_PATHS={'list':a124_0xaf90fd(0x1ff),'detail':a124_0xaf90fd(0x1db),'create':a124_0xaf90fd(0x1d3),'update':a124_0xaf90fd(0x1e9),'publish':a124_0xaf90fd(0x1fc)};export const FLOW_ID_FLAG={'name':'id','type':'number','required':!![],'description':a124_0xaf90fd(0x205)};export const FLOW_FILE_FLAG={'name':'file','type':'string','required':!![],'description':a124_0xaf90fd(0x1ec)};export function flowDefinitionToConfig(_0x200ec3){const _0x180a8a=a124_0xaf90fd;if(typeof _0x200ec3[_0x180a8a(0x206)]!==_0x180a8a(0x200)||_0x200ec3['flowName'][_0x180a8a(0x1f4)]()==='')throw CliErrors[_0x180a8a(0x1d6)](_0x180a8a(0x1ee),_0x180a8a(0x1ef));if(typeof _0x200ec3[_0x180a8a(0x1e4)]!=='object'||_0x200ec3[_0x180a8a(0x1e4)]===null||Array[_0x180a8a(0x209)](_0x200ec3['flowJson']))throw CliErrors['apiError'](_0x180a8a(0x1ee),_0x180a8a(0x1d5));if(_0x200ec3[_0x180a8a(0x1fb)]!==_0x180a8a(0x20b)&&_0x200ec3[_0x180a8a(0x1fb)]!=='INDEPENDENT_FLOW')throw CliErrors[_0x180a8a(0x1d6)]('Cannot\x20export\x20an\x20invalid\x20flow\x20definition.','The\x20detail\x20response\x20does\x20not\x20contain\x20a\x20supported\x20flowType.');const _0xbc59c1={'flowName':_0x200ec3['flowName'],...typeof _0x200ec3[_0x180a8a(0x1e0)]===_0x180a8a(0x200)?{'flowDesc':_0x200ec3[_0x180a8a(0x1e0)]}:{},'flowType':_0x200ec3[_0x180a8a(0x1fb)],...typeof _0x200ec3[_0x180a8a(0x1f6)]===_0x180a8a(0x200)&&_0x200ec3[_0x180a8a(0x1f6)]['trim']()?{'datasetCode':_0x200ec3[_0x180a8a(0x1f6)]}:{},...typeof _0x200ec3[_0x180a8a(0x208)]===_0x180a8a(0x1de)?{'pageId':_0x200ec3[_0x180a8a(0x208)]}:{},'flowJson':_0x200ec3[_0x180a8a(0x1e4)]},_0x59a837=validateFlowConfig(_0xbc59c1);if(!_0x59a837[_0x180a8a(0x1e2)]){const _0x2b5d3d=_0x59a837['errors'][_0x180a8a(0x1fa)](_0x4548f1=>_0x4548f1['path']+':\x20'+_0x4548f1[_0x180a8a(0x1e6)])[_0x180a8a(0x1ea)](';\x20');throw CliErrors[_0x180a8a(0x1ed)](_0x180a8a(0x202),_0x2b5d3d);}return{'config':_0x59a837['normalized'],'warnings':_0x59a837[_0x180a8a(0x1d7)],'removedPaths':_0x59a837[_0x180a8a(0x1d7)][_0x180a8a(0x1fa)](_0x23f5a7=>_0x23f5a7[_0x180a8a(0x203)])};}export function readFlowId(_0x5cc55f){const _0x48f450=a124_0xaf90fd,_0x3e3e46=_0x5cc55f[_0x48f450(0x1eb)]('id');if(!Number[_0x48f450(0x1da)](_0x3e3e46)||_0x3e3e46<=0x0)throw CliErrors[_0x48f450(0x1ed)](_0x48f450(0x1dc));return _0x3e3e46;}export function readFlowFilePath(_0x3fd619){const _0x2209dd=a124_0xaf90fd,_0x3f483b=_0x3fd619['str'](_0x2209dd(0x1f9))[_0x2209dd(0x1f4)]();if(!_0x3f483b)throw CliErrors[_0x2209dd(0x207)](_0x2209dd(0x1f9),_0x2209dd(0x1f2));return _0x3f483b;}export async function prepareFlowWrite(_0x21b3ec,_0xc69ba4,_0xf63968){const _0x10909c=a124_0xaf90fd;let _0xfe1c3f;try{_0xfe1c3f=await readFlowConfigFile(_0x21b3ec);}catch(_0x48e0b1){const _0x55bf4a=_0x48e0b1 instanceof Error?_0x48e0b1[_0x10909c(0x1e6)]:String(_0x48e0b1);throw CliErrors['validation']('Unable\x20to\x20read\x20FlowConfig:\x20'+_0x55bf4a,_0x10909c(0x1d2)+_0x21b3ec);}const _0x2d6f97=validateFlowConfig(_0xfe1c3f);if(!_0x2d6f97['valid']){const _0x2729cc=_0x2d6f97['errors'][_0x10909c(0x1fa)](_0x76e016=>_0x76e016[_0x10909c(0x203)]+':\x20'+_0x76e016[_0x10909c(0x1e6)])['join'](';\x20');throw CliErrors[_0x10909c(0x1ed)](_0x10909c(0x1e1)+_0x21b3ec+'.',_0x2729cc||_0x10909c(0x1d4));}const _0x1e627a=_0x2d6f97[_0x10909c(0x1e8)],_0x47340c={..._0xf63968!==undefined?{'id':_0xf63968}:{},'flowName':_0x1e627a['flowName'],..._0x1e627a['flowDesc']!==undefined?{'flowDesc':_0x1e627a[_0x10909c(0x1e0)]}:{},'flowType':_0x1e627a['flowType'],'appCode':_0xc69ba4,..._0x1e627a[_0x10909c(0x1f6)]!==undefined?{'datasetCode':_0x1e627a[_0x10909c(0x1f6)]}:{},..._0x1e627a[_0x10909c(0x208)]!==undefined?{'pageId':_0x1e627a[_0x10909c(0x208)]}:{},'flowJson':_0x1e627a['flowJson']};return{'request':_0x47340c,'warnings':_0x2d6f97['warnings']};}export async function confirmFlowWrite(_0x1493e3,_0x3e7d6b,_0x38115a){const _0x106009=a124_0xaf90fd;if(_0x1493e3[_0x106009(0x204)]||_0x1493e3[_0x106009(0x1f8)](_0x106009(0x201)))return;await requireConfirmationPrompt({'lines':[_0x106009(0x1df)+_0x3e7d6b+':','\x20\x20appCode:\x20'+_0x1493e3[_0x106009(0x1e5)],..._0x38115a['id']!==undefined?['\x20\x20flowId:\x20'+_0x38115a['id']]:[],'\x20\x20flowName:\x20'+_0x38115a[_0x106009(0x206)],_0x106009(0x20c)+_0x38115a['flowType'],..._0x38115a[_0x106009(0x1f6)]?[_0x106009(0x1f1)+_0x38115a[_0x106009(0x1f6)]]:[],'Continue?\x20[y/N]\x20'],'createCancelledError':_0x5f1f97=>CliErrors[_0x106009(0x1e3)](_0x5f1f97)});}export function flowSelector(_0x45600e,_0x35e346,_0x1c0b5e){const _0x4a7803=a124_0xaf90fd;return{'appCode':_0x45600e,..._0x35e346!==undefined?{'flowId':_0x35e346}:{},..._0x1c0b5e?.[_0x4a7803(0x1f5)]?{'flowCode':_0x1c0b5e[_0x4a7803(0x1f5)]}:{},..._0x1c0b5e?.[_0x4a7803(0x206)]?{'flowName':_0x1c0b5e['flowName']}:{}};}export function buildFlowIdDryRun(_0x475405,_0x991735,_0x55ba9a,_0x310562,_0x391357){const _0x16c192=a124_0xaf90fd,_0x24e569={'id':_0x310562,'appCode':_0x55ba9a};return asDryRunResult({'operation':_0x475405,'selector':flowSelector(_0x55ba9a,_0x310562),'before':null,'after':_0x391357,'request':_0x24e569,'dryRun':!![],'backend':{'method':_0x16c192(0x20a),'path':_0x991735},'warnings':[]},{'method':'POST','url':_0x991735});}
@@ -1 +1 @@
1
- function a125_0x3335(){const _0x3bb899=['flow','28awwkTV','253326qrigYo','732258kLQPNf','appCode','792702IFvwWQ','296056MKXkDl','POST','15jXmKmq','flowCode','622594xYaGRB','write','29152MmNujC','575516tmczKi','update'];a125_0x3335=function(){return _0x3bb899;};return a125_0x3335();}const a125_0x375abc=a125_0x3605;(function(_0x19054d,_0x3ec3e5){const _0x5d86a3=a125_0x3605,_0x47851b=_0x19054d();while(!![]){try{const _0x588cf6=-parseInt(_0x5d86a3(0xb8))/0x1+-parseInt(_0x5d86a3(0xb6))/0x2+parseInt(_0x5d86a3(0xbe))/0x3+parseInt(_0x5d86a3(0xb9))/0x4+parseInt(_0x5d86a3(0xc3))/0x5*(-parseInt(_0x5d86a3(0xbd))/0x6)+-parseInt(_0x5d86a3(0xbc))/0x7*(-parseInt(_0x5d86a3(0xc1))/0x8)+parseInt(_0x5d86a3(0xc0))/0x9;if(_0x588cf6===_0x3ec3e5)break;else _0x47851b['push'](_0x47851b['shift']());}catch(_0x8f9753){_0x47851b['push'](_0x47851b['shift']());}}}(a125_0x3335,0x2651f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a125_0x3605(_0x359025,_0x1122b1){_0x359025=_0x359025-0xb6;const _0x333587=a125_0x3335();let _0x360548=_0x333587[_0x359025];return _0x360548;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{updateFlowDefinition}from'../../core/api-client.js';import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId}from'../../commands/flow/shared.js';export const flowUpdate={'service':a125_0x375abc(0xbb),'command':a125_0x375abc(0xba),'description':'Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','risk':a125_0x375abc(0xb7),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5b862b){readFlowId(_0x5b862b),readFlowFilePath(_0x5b862b);},async 'dryRun'(_0x478449){const _0x368cd6=a125_0x375abc,_0x3ca7ff=readFlowId(_0x478449),{request:_0x60d8c1,warnings:_0x3f886a}=await prepareFlowWrite(readFlowFilePath(_0x478449),_0x478449['appCode'],_0x3ca7ff);return asDryRunResult({'operation':_0x368cd6(0xba),'selector':flowSelector(_0x478449['appCode'],_0x3ca7ff),'before':null,'after':_0x60d8c1,'request':_0x60d8c1,'dryRun':!![],'backend':{'method':'POST','path':FLOW_PATHS[_0x368cd6(0xba)]},'warnings':_0x3f886a},{'method':_0x368cd6(0xc2),'url':FLOW_PATHS[_0x368cd6(0xba)]});},async 'execute'(_0x369d78){const _0x38a3d4=a125_0x375abc,_0xdba289=readFlowId(_0x369d78),{request:_0x231786,warnings:_0x21337b}=await prepareFlowWrite(readFlowFilePath(_0x369d78),_0x369d78[_0x38a3d4(0xbf)],_0xdba289);await confirmFlowWrite(_0x369d78,_0x38a3d4(0xba),_0x231786);const _0x420d1e=await updateFlowDefinition({..._0x231786,'id':_0xdba289});return{'ok':!![],'data':{'operation':_0x38a3d4(0xba),'selector':flowSelector(_0x369d78[_0x38a3d4(0xbf)],_0xdba289,_0x420d1e),'before':null,'after':_0x420d1e,'dryRun':![],'backend':{'method':_0x38a3d4(0xc2),'path':FLOW_PATHS[_0x38a3d4(0xba)]},'warnings':_0x21337b},'message':'Updated\x20flow\x20'+(_0x420d1e['flowName']||_0x420d1e[_0x38a3d4(0xc4)]||_0xdba289)};}};
1
+ const a125_0x20cfa8=a125_0x58f1;(function(_0x17dadb,_0x13d7e7){const _0x5373d1=a125_0x58f1,_0x859edc=_0x17dadb();while(!![]){try{const _0x3e34a3=-parseInt(_0x5373d1(0x1cc))/0x1+-parseInt(_0x5373d1(0x1d1))/0x2+-parseInt(_0x5373d1(0x1d4))/0x3+-parseInt(_0x5373d1(0x1d8))/0x4*(-parseInt(_0x5373d1(0x1cf))/0x5)+parseInt(_0x5373d1(0x1d6))/0x6*(parseInt(_0x5373d1(0x1d2))/0x7)+-parseInt(_0x5373d1(0x1d5))/0x8+parseInt(_0x5373d1(0x1da))/0x9;if(_0x3e34a3===_0x13d7e7)break;else _0x859edc['push'](_0x859edc['shift']());}catch(_0x44a3ce){_0x859edc['push'](_0x859edc['shift']());}}}(a125_0x5d8e,0x317ea));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{updateFlowDefinition}from'../../core/api-client.js';function a125_0x58f1(_0xeeed28,_0x1b1b61){_0xeeed28=_0xeeed28-0x1cc;const _0x5d8e2b=a125_0x5d8e();let _0x58f1d5=_0x5d8e2b[_0xeeed28];return _0x58f1d5;}import{FLOW_FILE_FLAG,FLOW_ID_FLAG,FLOW_PATHS,confirmFlowWrite,flowSelector,prepareFlowWrite,readFlowFilePath,readFlowId}from'../../commands/flow/shared.js';function a125_0x5d8e(){const _0x6dd043=['update','496680Kskitx','2359872KgsZDs','84gpsueJ','flowCode','4UxvIeK','appCode','8381952MZFfHm','Update\x20a\x20flow\x20definition\x20draft\x20from\x20a\x20local\x20FlowConfig\x20file','336823tpXLti','write','flowName','1687045abDzEK','POST','558476dLJgGo','5299AQVQcc'];a125_0x5d8e=function(){return _0x6dd043;};return a125_0x5d8e();}export const flowUpdate={'service':'flow','command':'update','description':a125_0x20cfa8(0x1db),'risk':a125_0x20cfa8(0x1cd),'flags':[FLOW_ID_FLAG,FLOW_FILE_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1ffc20){readFlowId(_0x1ffc20),readFlowFilePath(_0x1ffc20);},async 'dryRun'(_0x3ed8b8){const _0x3e23a9=a125_0x20cfa8,_0x54b4bb=readFlowId(_0x3ed8b8),{request:_0x361ea9,warnings:_0x14f17b}=await prepareFlowWrite(readFlowFilePath(_0x3ed8b8),_0x3ed8b8[_0x3e23a9(0x1d9)],_0x54b4bb);return asDryRunResult({'operation':_0x3e23a9(0x1d3),'selector':flowSelector(_0x3ed8b8[_0x3e23a9(0x1d9)],_0x54b4bb),'before':null,'after':_0x361ea9,'request':_0x361ea9,'dryRun':!![],'backend':{'method':_0x3e23a9(0x1d0),'path':FLOW_PATHS[_0x3e23a9(0x1d3)]},'warnings':_0x14f17b},{'method':_0x3e23a9(0x1d0),'url':FLOW_PATHS['update']});},async 'execute'(_0x2f8106){const _0x40f192=a125_0x20cfa8,_0x133f35=readFlowId(_0x2f8106),{request:_0x1893b8,warnings:_0x98c97c}=await prepareFlowWrite(readFlowFilePath(_0x2f8106),_0x2f8106['appCode'],_0x133f35);await confirmFlowWrite(_0x2f8106,_0x40f192(0x1d3),_0x1893b8);const _0x5b21a7=await updateFlowDefinition({..._0x1893b8,'id':_0x133f35});return{'ok':!![],'data':{'operation':'update','selector':flowSelector(_0x2f8106[_0x40f192(0x1d9)],_0x133f35,_0x5b21a7),'before':null,'after':_0x5b21a7,'dryRun':![],'backend':{'method':_0x40f192(0x1d0),'path':FLOW_PATHS[_0x40f192(0x1d3)]},'warnings':_0x98c97c},'message':'Updated\x20flow\x20'+(_0x5b21a7[_0x40f192(0x1ce)]||_0x5b21a7[_0x40f192(0x1d7)]||_0x133f35)};}};
@@ -1 +1 @@
1
- function a126_0x2e24(){const _0x5e14a8=['211203tABSrr','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','3817040OAxxHq','file','Unable\x20to\x20read\x20FlowConfig:\x20','flow','2098506hDyAcA','272897jreHQW','validate','11zjpqcF','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','trim','normalized','5lTLbGe','FlowConfig\x20is\x20valid.','string','warnings','flagMissing','807656dNIXkQ','write-normalized','60XGZsLQ','Pass\x20--file\x20<path>.','message','49VegTjA','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','18aDZhZY','2301258CjZMdP','valid','26617524eTkaYf','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','none','FlowConfig\x20validation\x20failed.','boolean'];a126_0x2e24=function(){return _0x5e14a8;};return a126_0x2e24();}const a126_0x321dec=a126_0x13ba;(function(_0x503d2b,_0x56b39d){const _0x4707da=a126_0x13ba,_0x389cd5=_0x503d2b();while(!![]){try{const _0x663619=parseInt(_0x4707da(0x160))/0x1+-parseInt(_0x4707da(0x15f))/0x2+parseInt(_0x4707da(0x159))/0x3*(-parseInt(_0x4707da(0x14c))/0x4)+-parseInt(_0x4707da(0x145))/0x5*(-parseInt(_0x4707da(0x152))/0x6)+-parseInt(_0x4707da(0x14f))/0x7*(parseInt(_0x4707da(0x14a))/0x8)+parseInt(_0x4707da(0x151))/0x9*(parseInt(_0x4707da(0x15b))/0xa)+parseInt(_0x4707da(0x162))/0xb*(parseInt(_0x4707da(0x154))/0xc);if(_0x663619===_0x56b39d)break;else _0x389cd5['push'](_0x389cd5['shift']());}catch(_0xcde491){_0x389cd5['push'](_0x389cd5['shift']());}}}(a126_0x2e24,0xc9a98));import{CliErrors}from'../../errors.js';function a126_0x13ba(_0x5e4b23,_0x1077a4){_0x5e4b23=_0x5e4b23-0x145;const _0x2e248b=a126_0x2e24();let _0x13ba55=_0x2e248b[_0x5e4b23];return _0x13ba55;}import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a126_0x321dec(0x15e),'command':a126_0x321dec(0x161),'description':a126_0x321dec(0x150),'risk':'read','auth':a126_0x321dec(0x156),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a126_0x321dec(0x15c),'type':a126_0x321dec(0x147),'required':!![],'description':a126_0x321dec(0x15a)},{'name':a126_0x321dec(0x14b),'type':a126_0x321dec(0x158),'description':a126_0x321dec(0x155)}],async 'execute'(_0x1d3e3b){const _0x1b2506=a126_0x321dec,_0x470cd9=_0x1d3e3b['str']('file')[_0x1b2506(0x164)]();if(!_0x470cd9)throw CliErrors[_0x1b2506(0x149)](_0x1b2506(0x15c),_0x1b2506(0x14d));let _0x18e61e;try{_0x18e61e=await readFlowConfigFile(_0x470cd9);}catch(_0x34f673){const _0x35d128=_0x34f673 instanceof Error?_0x34f673[_0x1b2506(0x14e)]:String(_0x34f673);throw CliErrors['validation'](_0x1b2506(0x15d)+_0x35d128);}const _0x26212d=validateFlowConfig(_0x18e61e),_0x46a284=_0x1d3e3b['bool'](_0x1b2506(0x14b));let _0x5c264d=![];return _0x46a284&&_0x26212d[_0x1b2506(0x153)]&&(await writeNormalizedFlowConfig(_0x470cd9,_0x26212d['normalized']),_0x5c264d=!![]),{'ok':_0x26212d['valid'],'data':{'valid':_0x26212d['valid'],'errors':_0x26212d['errors'],'warnings':_0x26212d[_0x1b2506(0x148)],'normalized':_0x26212d[_0x1b2506(0x165)],..._0x46a284?{'written':_0x5c264d}:{}},'message':_0x26212d['valid']?_0x5c264d?_0x1b2506(0x163):_0x1b2506(0x146):_0x1b2506(0x157)};}};
1
+ const a126_0x1e76d7=a126_0x26a6;(function(_0x578231,_0x11ca04){const _0x1ad257=a126_0x26a6,_0x450f76=_0x578231();while(!![]){try{const _0x506313=parseInt(_0x1ad257(0x98))/0x1*(-parseInt(_0x1ad257(0x90))/0x2)+parseInt(_0x1ad257(0xa8))/0x3*(parseInt(_0x1ad257(0x9e))/0x4)+-parseInt(_0x1ad257(0xa4))/0x5*(parseInt(_0x1ad257(0xa5))/0x6)+-parseInt(_0x1ad257(0xa1))/0x7*(parseInt(_0x1ad257(0xa9))/0x8)+-parseInt(_0x1ad257(0xa0))/0x9*(parseInt(_0x1ad257(0x97))/0xa)+parseInt(_0x1ad257(0x93))/0xb+parseInt(_0x1ad257(0xa6))/0xc;if(_0x506313===_0x11ca04)break;else _0x450f76['push'](_0x450f76['shift']());}catch(_0x32a0ca){_0x450f76['push'](_0x450f76['shift']());}}}(a126_0x30c6,0x640f1));import{CliErrors}from'../../errors.js';function a126_0x30c6(){const _0x15a576=['errors','message','1804430UsRXad','123774xaAcyd','normalized','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','string','str','FlowConfig\x20validation\x20failed.','330288qPMFVM','validation','27zTCtwL','1841jMdXPl','read','none','5cfCEvO','789072QTYRbc','16314072SCrGvb','Pass\x20--file\x20<path>.','3WuXMtN','7928ZfXkhg','FlowConfig\x20is\x20valid.','Unable\x20to\x20read\x20FlowConfig:\x20','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','2ngdVUg','file','trim','275121rjkJeL','valid'];a126_0x30c6=function(){return _0x15a576;};return a126_0x30c6();}function a126_0x26a6(_0x1d343e,_0x2dc450){_0x1d343e=_0x1d343e-0x8d;const _0x30c6b9=a126_0x30c6();let _0x26a684=_0x30c6b9[_0x1d343e];return _0x26a684;}import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':'flow','command':'validate','description':'Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','risk':a126_0x1e76d7(0xa2),'auth':a126_0x1e76d7(0xa3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a126_0x1e76d7(0x91),'type':a126_0x1e76d7(0x9b),'required':!![],'description':'Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file'},{'name':'write-normalized','type':'boolean','description':a126_0x1e76d7(0x9a)}],async 'execute'(_0x4de1db){const _0x16b2cd=a126_0x1e76d7,_0x4f62ec=_0x4de1db[_0x16b2cd(0x9c)](_0x16b2cd(0x91))[_0x16b2cd(0x92)]();if(!_0x4f62ec)throw CliErrors['flagMissing'](_0x16b2cd(0x91),_0x16b2cd(0xa7));let _0x1be4dd;try{_0x1be4dd=await readFlowConfigFile(_0x4f62ec);}catch(_0x216e4d){const _0x318607=_0x216e4d instanceof Error?_0x216e4d[_0x16b2cd(0x96)]:String(_0x216e4d);throw CliErrors[_0x16b2cd(0x9f)](_0x16b2cd(0x8e)+_0x318607);}const _0x6339e4=validateFlowConfig(_0x1be4dd),_0x24376b=_0x4de1db['bool']('write-normalized');let _0x454724=![];return _0x24376b&&_0x6339e4[_0x16b2cd(0x94)]&&(await writeNormalizedFlowConfig(_0x4f62ec,_0x6339e4[_0x16b2cd(0x99)]),_0x454724=!![]),{'ok':_0x6339e4[_0x16b2cd(0x94)],'data':{'valid':_0x6339e4[_0x16b2cd(0x94)],'errors':_0x6339e4[_0x16b2cd(0x95)],'warnings':_0x6339e4['warnings'],'normalized':_0x6339e4[_0x16b2cd(0x99)],..._0x24376b?{'written':_0x454724}:{}},'message':_0x6339e4['valid']?_0x454724?_0x16b2cd(0x8f):_0x16b2cd(0x8d):_0x16b2cd(0x9d)};}};
@@ -1 +1 @@
1
- const a127_0x2d5acf=a127_0x30fa;function a127_0x30fa(_0x80f0bb,_0x99f0e5){_0x80f0bb=_0x80f0bb-0xa0;const _0x13aff7=a127_0x13af();let _0x30fabe=_0x13aff7[_0x80f0bb];return _0x30fabe;}(function(_0xf54c4f,_0x5792ab){const _0x38be07=a127_0x30fa,_0x4031f4=_0xf54c4f();while(!![]){try{const _0x1df28a=parseInt(_0x38be07(0xae))/0x1*(-parseInt(_0x38be07(0xa9))/0x2)+-parseInt(_0x38be07(0xa3))/0x3*(parseInt(_0x38be07(0xa6))/0x4)+parseInt(_0x38be07(0xa5))/0x5+parseInt(_0x38be07(0xa8))/0x6+parseInt(_0x38be07(0xa4))/0x7*(parseInt(_0x38be07(0xa7))/0x8)+parseInt(_0x38be07(0xaa))/0x9*(-parseInt(_0x38be07(0xb0))/0xa)+parseInt(_0x38be07(0xaf))/0xb;if(_0x1df28a===_0x5792ab)break;else _0x4031f4['push'](_0x4031f4['shift']());}catch(_0x1992af){_0x4031f4['push'](_0x4031f4['shift']());}}}(a127_0x13af,0xce037));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a127_0x13af(){const _0x43fe8b=['16OcTGYK','12933PeuLMV','policyRelativePath','revision','read','98380lVMngh','527395MNiQpr','8590lCggQq','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','appCode','Current\x20Instant\x20API\x20policy\x20revision\x20','702717NhFjFD','271544wYuVLh','6731010UsyORs','8FYLqyx','104HCklOu','8611734lxTOgd'];a127_0x13af=function(){return _0x43fe8b;};return a127_0x13af();}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':'current','description':a127_0x2d5acf(0xa0),'risk':a127_0x2d5acf(0xad),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x339bd7){const _0x274c50=a127_0x2d5acf,_0x18fc28=loadInstantApiPolicyLocalConfig(_0x339bd7[_0x274c50(0xa1)]),_0x342b71=await getCurrentInstantApiPolicy(_0x339bd7['appCode']);return{'ok':!![],'data':{'appCode':_0x339bd7[_0x274c50(0xa1)],'configured':_0x342b71!==null,'filePath':_0x18fc28['policyFilePath'],'relativePath':_0x18fc28[_0x274c50(0xab)],'policy':projectCurrentPolicy(_0x342b71)},'message':_0x342b71?_0x274c50(0xa2)+_0x342b71[_0x274c50(0xac)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x339bd7['appCode']};}};
1
+ const a127_0x35167e=a127_0xa0f8;function a127_0xa0f8(_0x20e480,_0x5a7463){_0x20e480=_0x20e480-0x18c;const _0x1f397e=a127_0x1f39();let _0xa0f8da=_0x1f397e[_0x20e480];return _0xa0f8da;}(function(_0x121750,_0x555213){const _0x176225=a127_0xa0f8,_0x44e4cb=_0x121750();while(!![]){try{const _0x581865=-parseInt(_0x176225(0x197))/0x1+parseInt(_0x176225(0x196))/0x2+parseInt(_0x176225(0x192))/0x3+parseInt(_0x176225(0x19b))/0x4*(-parseInt(_0x176225(0x18f))/0x5)+-parseInt(_0x176225(0x198))/0x6*(parseInt(_0x176225(0x18c))/0x7)+-parseInt(_0x176225(0x19d))/0x8*(parseInt(_0x176225(0x195))/0x9)+parseInt(_0x176225(0x199))/0xa;if(_0x581865===_0x555213)break;else _0x44e4cb['push'](_0x44e4cb['shift']());}catch(_0x1f7ba7){_0x44e4cb['push'](_0x44e4cb['shift']());}}}(a127_0x1f39,0x94b16));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 a127_0x1f39(){const _0xbfbcc1=['Current\x20Instant\x20API\x20policy\x20revision\x20','instant-api-policy','7285hfftuR','current','policyFilePath','2485788ytBDWF','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','790137lAzbUY','1121276WuVaAM','745937ALlfuJ','6bYTRlf','24685180bwbtYv','revision','1932iiuNZV','appCode','56NsfnMC','8291409tqrXsD'];a127_0x1f39=function(){return _0xbfbcc1;};return a127_0x1f39();}export const instantApiPolicyCurrent={'service':a127_0x35167e(0x18e),'command':a127_0x35167e(0x190),'description':a127_0x35167e(0x193),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x7eac90){const _0x50282f=a127_0x35167e,_0x5f47f8=loadInstantApiPolicyLocalConfig(_0x7eac90[_0x50282f(0x19c)]),_0x4520f9=await getCurrentInstantApiPolicy(_0x7eac90[_0x50282f(0x19c)]);return{'ok':!![],'data':{'appCode':_0x7eac90[_0x50282f(0x19c)],'configured':_0x4520f9!==null,'filePath':_0x5f47f8[_0x50282f(0x191)],'relativePath':_0x5f47f8['policyRelativePath'],'policy':projectCurrentPolicy(_0x4520f9)},'message':_0x4520f9?_0x50282f(0x18d)+_0x4520f9[_0x50282f(0x19a)]:_0x50282f(0x194)+_0x7eac90[_0x50282f(0x19c)]};}};
@@ -1 +1 @@
1
- (function(_0x6bb403,_0x460c9c){const _0x3398df=a128_0x1c73,_0x698d1d=_0x6bb403();while(!![]){try{const _0x3e5c25=parseInt(_0x3398df(0xc7))/0x1+-parseInt(_0x3398df(0xc5))/0x2*(parseInt(_0x3398df(0xc8))/0x3)+-parseInt(_0x3398df(0xc3))/0x4+parseInt(_0x3398df(0xc2))/0x5+-parseInt(_0x3398df(0xc1))/0x6*(-parseInt(_0x3398df(0xca))/0x7)+-parseInt(_0x3398df(0xc4))/0x8*(-parseInt(_0x3398df(0xc9))/0x9)+parseInt(_0x3398df(0xc6))/0xa;if(_0x3e5c25===_0x460c9c)break;else _0x698d1d['push'](_0x698d1d['shift']());}catch(_0xf66b57){_0x698d1d['push'](_0x698d1d['shift']());}}}(a128_0x216a,0x5d56f));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';function a128_0x216a(){const _0x28ddcd=['34756rcFSKI','2948340SiGJnN','140109cxwlmz','123bVXAlK','18mKyBCF','7iKzjht','1831854UKCEkc','2714825eXwYUs','2291272gtLMAU','1537672EOVzgy'];a128_0x216a=function(){return _0x28ddcd;};return a128_0x216a();}import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a128_0x1c73(_0x5ac41d,_0x3da55b){_0x5ac41d=_0x5ac41d-0xc1;const _0x216ab2=a128_0x216a();let _0x1c73e3=_0x216ab2[_0x5ac41d];return _0x1c73e3;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ (function(_0x8ef95c,_0x46575f){const _0x3de202=a128_0x491d,_0xad0c73=_0x8ef95c();while(!![]){try{const _0x16e1d8=parseInt(_0x3de202(0x6f))/0x1+parseInt(_0x3de202(0x68))/0x2+parseInt(_0x3de202(0x6b))/0x3+parseInt(_0x3de202(0x6a))/0x4*(parseInt(_0x3de202(0x6e))/0x5)+parseInt(_0x3de202(0x67))/0x6+parseInt(_0x3de202(0x69))/0x7+parseInt(_0x3de202(0x6c))/0x8*(-parseInt(_0x3de202(0x6d))/0x9);if(_0x16e1d8===_0x46575f)break;else _0xad0c73['push'](_0xad0c73['shift']());}catch(_0x4ec01a){_0xad0c73['push'](_0xad0c73['shift']());}}}(a128_0x59ca,0xc7799));function a128_0x491d(_0x3ec520,_0x8f1967){_0x3ec520=_0x3ec520-0x67;const _0x59cac1=a128_0x59ca();let _0x491d74=_0x59cac1[_0x3ec520];return _0x491d74;}import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a128_0x59ca(){const _0x255728=['1921094QEqeyw','281964ebHSuL','2061585ZohXiN','37453144aZZYmo','9huDsnN','85sTalLE','878128FDaqgr','6934824jwKBZp','2609552GtFlrA'];a128_0x59ca=function(){return _0x255728;};return a128_0x59ca();}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- const a129_0x2d8ba5=a129_0x17f5;(function(_0x330267,_0x4413e8){const _0x13e7f0=a129_0x17f5,_0x354a60=_0x330267();while(!![]){try{const _0x5a0829=parseInt(_0x13e7f0(0x102))/0x1*(parseInt(_0x13e7f0(0xf8))/0x2)+parseInt(_0x13e7f0(0xfd))/0x3*(-parseInt(_0x13e7f0(0x10a))/0x4)+-parseInt(_0x13e7f0(0xf7))/0x5*(-parseInt(_0x13e7f0(0xfe))/0x6)+parseInt(_0x13e7f0(0x10b))/0x7+-parseInt(_0x13e7f0(0x10d))/0x8+parseInt(_0x13e7f0(0x100))/0x9+-parseInt(_0x13e7f0(0x108))/0xa;if(_0x5a0829===_0x4413e8)break;else _0x354a60['push'](_0x354a60['shift']());}catch(_0x56052b){_0x354a60['push'](_0x354a60['shift']());}}}(a129_0x47fc,0xa9b93));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a129_0x17f5(_0x4be19b,_0xbef287){_0x4be19b=_0x4be19b-0xf3;const _0x47fc33=a129_0x47fc();let _0x17f592=_0x47fc33[_0x4be19b];return _0x17f592;}function a129_0x47fc(){const _0x217d45=['instant-api-policy','40596RyGYig','386742wvOOKi','default-action','2387574ZJldrw','Kept','17869XlcKCN','deny','write','\x20Instant\x20API\x20policy\x20file\x20for\x20','appCode','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','2580590kghYwn','policyFilePath','200zQfpoU','7216720cDQTtB','string','5081256TcRowQ','allow','force','init','bool','action','Replaced','10RQHMCv','94khBeUX','Created','policyRelativePath','str'];a129_0x47fc=function(){return _0x217d45;};return a129_0x47fc();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a129_0x2d8ba5(0xfc),'command':a129_0x2d8ba5(0xf3),'description':a129_0x2d8ba5(0x107),'risk':a129_0x2d8ba5(0x104),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a129_0x2d8ba5(0xff),'type':a129_0x2d8ba5(0x10c),'enum':[a129_0x2d8ba5(0x10e),'deny'],'default':'allow','description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0xf92ada){requireForceConfirmation(_0xf92ada);},async 'execute'(_0x509bc3){const _0x7c78d5=a129_0x2d8ba5;requireForceConfirmation(_0x509bc3);const _0xe812b2=_0x509bc3[_0x7c78d5(0xfb)](_0x7c78d5(0xff))===_0x7c78d5(0x103)?_0x7c78d5(0x103):'allow',_0x5c7710=loadInstantApiPolicyLocalConfig(_0x509bc3[_0x7c78d5(0x106)]),_0x1ad48e=createDefaultInstantApiPolicyConfig(_0x509bc3[_0x7c78d5(0x106)],_0xe812b2),_0x5c174d=await writeInstantApiPolicyConfigFile(_0x5c7710,_0x1ad48e,{'force':_0x509bc3[_0x7c78d5(0xf4)](_0x7c78d5(0x10f))}),_0xa60c26={'created':_0x7c78d5(0xf9),'overwritten':_0x7c78d5(0xf6),'unchanged':_0x7c78d5(0x101)}[_0x5c174d['action']];return{'ok':!![],'data':{'operation':_0x7c78d5(0xf3),'selector':{'appCode':_0x509bc3[_0x7c78d5(0x106)]},'filePath':_0x5c7710[_0x7c78d5(0x109)],'relativePath':_0x5c7710[_0x7c78d5(0xfa)],'action':_0x5c174d[_0x7c78d5(0xf5)],'config':_0x1ad48e},'message':_0xa60c26+_0x7c78d5(0x105)+_0x509bc3[_0x7c78d5(0x106)]};}};
1
+ const a129_0x13eb8a=a129_0x46ec;function a129_0x5c97(){const _0x863f37=['11WzCqlS','write','bool','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','allow','deny','2433560iyoRdh','78136YsgkyF','Kept','723388FtYTvj','Replaced','instant-api-policy','default-action','init','58863EMyUuK','appCode','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','force','35ERnWfT','Created','action','string','\x20Instant\x20API\x20policy\x20file\x20for\x20','1182WoYiFT','3570682rvImdd','7696330rTPtII','14454585JRDeCt','policyFilePath','3Elzqqo'];a129_0x5c97=function(){return _0x863f37;};return a129_0x5c97();}(function(_0x1d97b5,_0x258132){const _0x5df185=a129_0x46ec,_0x195998=_0x1d97b5();while(!![]){try{const _0x51c57e=parseInt(_0x5df185(0x1df))/0x1+parseInt(_0x5df185(0x1d3))/0x2*(parseInt(_0x5df185(0x1d7))/0x3)+-parseInt(_0x5df185(0x1e1))/0x4*(-parseInt(_0x5df185(0x1cd))/0x5)+parseInt(_0x5df185(0x1d2))/0x6*(-parseInt(_0x5df185(0x1e6))/0x7)+parseInt(_0x5df185(0x1de))/0x8+-parseInt(_0x5df185(0x1d5))/0x9+parseInt(_0x5df185(0x1d4))/0xa*(parseInt(_0x5df185(0x1d8))/0xb);if(_0x51c57e===_0x258132)break;else _0x195998['push'](_0x195998['shift']());}catch(_0x156446){_0x195998['push'](_0x195998['shift']());}}}(a129_0x5c97,0xe5a34));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a129_0x46ec(_0x4eb5a6,_0x103c6c){_0x4eb5a6=_0x4eb5a6-0x1cb;const _0x5c9744=a129_0x5c97();let _0x46eca1=_0x5c9744[_0x4eb5a6];return _0x46eca1;}export const instantApiPolicyInit={'service':a129_0x13eb8a(0x1e3),'command':a129_0x13eb8a(0x1e5),'description':a129_0x13eb8a(0x1db),'risk':a129_0x13eb8a(0x1d9),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a129_0x13eb8a(0x1e4),'type':a129_0x13eb8a(0x1d0),'enum':['allow',a129_0x13eb8a(0x1dd)],'default':a129_0x13eb8a(0x1dc),'description':a129_0x13eb8a(0x1cb)},FORCE_FLAG],async 'validate'(_0x11b03f){requireForceConfirmation(_0x11b03f);},async 'execute'(_0x42c762){const _0x56b401=a129_0x13eb8a;requireForceConfirmation(_0x42c762);const _0x364edb=_0x42c762['str']('default-action')==='deny'?_0x56b401(0x1dd):'allow',_0x129933=loadInstantApiPolicyLocalConfig(_0x42c762[_0x56b401(0x1e7)]),_0x19c65d=createDefaultInstantApiPolicyConfig(_0x42c762[_0x56b401(0x1e7)],_0x364edb),_0x2b2788=await writeInstantApiPolicyConfigFile(_0x129933,_0x19c65d,{'force':_0x42c762[_0x56b401(0x1da)](_0x56b401(0x1cc))}),_0x2fe50c={'created':_0x56b401(0x1ce),'overwritten':_0x56b401(0x1e2),'unchanged':_0x56b401(0x1e0)}[_0x2b2788[_0x56b401(0x1cf)]];return{'ok':!![],'data':{'operation':_0x56b401(0x1e5),'selector':{'appCode':_0x42c762[_0x56b401(0x1e7)]},'filePath':_0x129933[_0x56b401(0x1d6)],'relativePath':_0x129933['policyRelativePath'],'action':_0x2b2788['action'],'config':_0x19c65d},'message':_0x2fe50c+_0x56b401(0x1d1)+_0x42c762[_0x56b401(0x1e7)]};}};
@@ -1 +1 @@
1
- function a130_0x5bf9(){const _0x481da1=['high-risk-write','POST','publish','instant_api_policy_publish_outcome_unknown','appCode','verified','18YIDVqm','2320731IUqHGy','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','cause','expectedRevision','272944NrpznV','8556NedHpw','Inspect\x20with\x20`','validation','planned','17028kGsOIM','before','15rZbzfZ','/publish','848vEiEtA','changeSummary','Published\x20Instant\x20API\x20policy\x20revision\x20','revision','316835VLQaPt','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','policyFilePath','local','instant_api_policy_publish_verification_unavailable','normalizedConfig','10HXQdeH','policyRelativePath','all','320356biNKAq','6715676eDZehs','configHash'];a130_0x5bf9=function(){return _0x481da1;};return a130_0x5bf9();}const a130_0x54094f=a130_0x19a5;(function(_0x28a138,_0x441d16){const _0x4ad7e0=a130_0x19a5,_0x20043a=_0x28a138();while(!![]){try{const _0x202d66=-parseInt(_0x4ad7e0(0x120))/0x1+parseInt(_0x4ad7e0(0x11f))/0x2+parseInt(_0x4ad7e0(0x101))/0x3*(parseInt(_0x4ad7e0(0x110))/0x4)+parseInt(_0x4ad7e0(0x107))/0x5*(parseInt(_0x4ad7e0(0x119))/0x6)+parseInt(_0x4ad7e0(0x11a))/0x7+parseInt(_0x4ad7e0(0x103))/0x8*(-parseInt(_0x4ad7e0(0x124))/0x9)+parseInt(_0x4ad7e0(0x10d))/0xa*(-parseInt(_0x4ad7e0(0x111))/0xb);if(_0x202d66===_0x441d16)break;else _0x20043a['push'](_0x20043a['shift']());}catch(_0x18ae75){_0x20043a['push'](_0x20043a['shift']());}}}(a130_0x5bf9,0x3a54f));function a130_0x19a5(_0x153d54,_0x27437d){_0x153d54=_0x153d54-0x101;const _0x5bf9c3=a130_0x5bf9();let _0x19a580=_0x5bf9c3[_0x153d54];return _0x19a580;}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(_0x3b1efb){const _0x410115=a130_0x19a5,{local:_0x24de88,config:_0x1a08b5}=await readFixedPolicy(_0x3b1efb),_0x2c8784=readChangeSummary(_0x3b1efb),_0x2b7f36=readExpectedRevision(_0x3b1efb),[_0x44ae9a,_0x2de97f]=await Promise[_0x410115(0x10f)]([getCurrentInstantApiPolicy(_0x3b1efb[_0x410115(0x117)]),validateInstantApiPolicy({'appCode':_0x3b1efb[_0x410115(0x117)],'config':_0x1a08b5})]);return assertExpectedRevision(_0x44ae9a,_0x2b7f36),{'local':_0x24de88,'config':_0x1a08b5,'changeSummary':_0x2c8784,'expectedRevision':_0x2b7f36,'before':_0x44ae9a,'validation':_0x2de97f};}export const instantApiPolicyPublish={'service':a130_0x54094f(0x11c),'command':a130_0x54094f(0x115),'description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a130_0x54094f(0x113),'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'(_0xba0bad){readChangeSummary(_0xba0bad),readExpectedRevision(_0xba0bad);},async 'dryRun'(_0x3c9adc){const _0x10d4cb=a130_0x54094f,_0x465402=await preparePublish(_0x3c9adc);return asDryRunResult({'operation':_0x10d4cb(0x115),'selector':{'appCode':_0x3c9adc[_0x10d4cb(0x117)]},'before':projectCurrentPolicy(_0x465402[_0x10d4cb(0x125)]),'after':{'revision':_0x465402[_0x10d4cb(0x125)]?_0x465402['before'][_0x10d4cb(0x106)]+0x1:0x1,'configHash':_0x465402['validation'][_0x10d4cb(0x112)],'config':_0x465402[_0x10d4cb(0x122)][_0x10d4cb(0x10c)]},'filePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x109)],'relativePath':_0x465402[_0x10d4cb(0x10a)][_0x10d4cb(0x10e)],'dryRun':!![],'backend':{'method':_0x10d4cb(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)},'warnings':expectedRevisionWarnings(_0x465402[_0x10d4cb(0x11e)]),'verification':{'status':_0x10d4cb(0x123),'expectedRevision':_0x465402[_0x10d4cb(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x10d4cb(0x114),'url':INSTANT_API_POLICY_BASE_PATH+_0x10d4cb(0x102)});},async 'execute'(_0x11d983){const _0x24c7d5=a130_0x54094f,_0x4ea636=await preparePublish(_0x11d983);let _0x30fcef=![];try{await publishInstantApiPolicy({'appCode':_0x11d983[_0x24c7d5(0x117)],'config':_0x4ea636['config'],..._0x4ea636[_0x24c7d5(0x104)]?{'changeSummary':_0x4ea636[_0x24c7d5(0x104)]}:{}});}catch(_0x3108e8){if(!isPlatformTransportFailure(_0x3108e8))throw _0x3108e8;_0x30fcef=!![];}let _0x3ae47c;try{_0x3ae47c=await getCurrentInstantApiPolicy(_0x11d983[_0x24c7d5(0x117)]);}catch(_0x2b2bc2){const _0x3cdec9=instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):_0x24c7d5(0x10b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object['defineProperty'](_0x3cdec9,_0x24c7d5(0x11d),{'value':_0x2b2bc2,'enumerable':![]});throw _0x3cdec9;}const _0x4b5629=_0x3ae47c&&(_0x4ea636[_0x24c7d5(0x125)]===null||_0x3ae47c[_0x24c7d5(0x106)]>_0x4ea636['before'][_0x24c7d5(0x106)]),_0x219b68=_0x3ae47c?.['configHash']===_0x4ea636[_0x24c7d5(0x122)][_0x24c7d5(0x112)];if(!_0x3ae47c||!_0x4b5629||!_0x219b68)throw instantApiPolicyError(_0x30fcef?_0x24c7d5(0x116):'instant_api_policy_publish_verification_failed',_0x24c7d5(0x108),_0x24c7d5(0x121)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3ce859=[...expectedRevisionWarnings(_0x4ea636[_0x24c7d5(0x11e)]),RUNTIME_CACHE_WARNING];return _0x30fcef&&_0x3ce859['push'](_0x24c7d5(0x11b)),{'ok':!![],'data':{'operation':_0x24c7d5(0x115),'selector':{'appCode':_0x11d983[_0x24c7d5(0x117)]},'before':projectCurrentPolicy(_0x4ea636[_0x24c7d5(0x125)]),'after':projectCurrentPolicy(_0x3ae47c),'filePath':_0x4ea636[_0x24c7d5(0x10a)]['policyFilePath'],'relativePath':_0x4ea636[_0x24c7d5(0x10a)][_0x24c7d5(0x10e)],'dryRun':![],'backend':{'method':_0x24c7d5(0x114),'path':INSTANT_API_POLICY_BASE_PATH+_0x24c7d5(0x102)},'warnings':_0x3ce859,'verification':{'status':_0x24c7d5(0x118),'recoveredAfterUnknownResponse':_0x30fcef,'expectedRevision':_0x4ea636[_0x24c7d5(0x11e)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x24c7d5(0x105)+_0x3ae47c[_0x24c7d5(0x106)]};}};
1
+ const a130_0x334552=a130_0x2159;(function(_0x1e06da,_0x35aa08){const _0x2f59fd=a130_0x2159,_0x1873d6=_0x1e06da();while(!![]){try{const _0x2dc0cc=-parseInt(_0x2f59fd(0x9e))/0x1+-parseInt(_0x2f59fd(0x85))/0x2*(-parseInt(_0x2f59fd(0x8f))/0x3)+-parseInt(_0x2f59fd(0xad))/0x4*(parseInt(_0x2f59fd(0xa3))/0x5)+-parseInt(_0x2f59fd(0x88))/0x6*(parseInt(_0x2f59fd(0xab))/0x7)+-parseInt(_0x2f59fd(0x9a))/0x8+parseInt(_0x2f59fd(0x92))/0x9+parseInt(_0x2f59fd(0x93))/0xa*(parseInt(_0x2f59fd(0xa4))/0xb);if(_0x2dc0cc===_0x35aa08)break;else _0x1873d6['push'](_0x1873d6['shift']());}catch(_0x380eca){_0x1873d6['push'](_0x1873d6['shift']());}}}(a130_0x2bf4,0x97b2f));function a130_0x2159(_0x3d8783,_0x2e5447){_0x3d8783=_0x3d8783-0x85;const _0x2bf4e3=a130_0x2bf4();let _0x2159ae=_0x2bf4e3[_0x3d8783];return _0x2159ae;}function a130_0x2bf4(){const _0x3a0881=['Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','7682445VNIcxG','13163450bpSbUf','config','validation','Published\x20Instant\x20API\x20policy\x20revision\x20','local','policyRelativePath','verified','1489864DnRSHm','publish','POST','`;\x20do\x20not\x20resubmit\x20automatically.','1179230fpVIUB','planned','normalizedConfig','/publish','changeSummary','3301405GgndmC','22mqsthZ','expectedRevision','revision','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','high-risk-write','policyFilePath','appCode','7rSCRtM','instant_api_policy_publish_verification_unavailable','4yrnUPx','2nwcsow','push','cause','5609406qDiMHE','configHash','defineProperty','instant_api_policy_publish_verification_failed','instant_api_policy_publish_outcome_unknown','before','Inspect\x20with\x20`','287127pQSwBk'];a130_0x2bf4=function(){return _0x3a0881;};return a130_0x2bf4();}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(_0x413a28){const _0x4a22d4=a130_0x2159,{local:_0x4e46fd,config:_0x2630f2}=await readFixedPolicy(_0x413a28),_0xe53fd6=readChangeSummary(_0x413a28),_0x31e1ad=readExpectedRevision(_0x413a28),[_0x29cdb4,_0x2fe338]=await Promise['all']([getCurrentInstantApiPolicy(_0x413a28[_0x4a22d4(0xaa)]),validateInstantApiPolicy({'appCode':_0x413a28[_0x4a22d4(0xaa)],'config':_0x2630f2})]);return assertExpectedRevision(_0x29cdb4,_0x31e1ad),{'local':_0x4e46fd,'config':_0x2630f2,'changeSummary':_0xe53fd6,'expectedRevision':_0x31e1ad,'before':_0x29cdb4,'validation':_0x2fe338};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':a130_0x334552(0x9b),'description':a130_0x334552(0xa7),'risk':a130_0x334552(0xa8),'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'(_0x9c00a1){readChangeSummary(_0x9c00a1),readExpectedRevision(_0x9c00a1);},async 'dryRun'(_0x55f067){const _0x125040=a130_0x334552,_0x5a1a72=await preparePublish(_0x55f067);return asDryRunResult({'operation':_0x125040(0x9b),'selector':{'appCode':_0x55f067[_0x125040(0xaa)]},'before':projectCurrentPolicy(_0x5a1a72[_0x125040(0x8d)]),'after':{'revision':_0x5a1a72[_0x125040(0x8d)]?_0x5a1a72[_0x125040(0x8d)][_0x125040(0xa6)]+0x1:0x1,'configHash':_0x5a1a72[_0x125040(0x95)][_0x125040(0x89)],'config':_0x5a1a72['validation'][_0x125040(0xa0)]},'filePath':_0x5a1a72['local'][_0x125040(0xa9)],'relativePath':_0x5a1a72[_0x125040(0x97)][_0x125040(0x98)],'dryRun':!![],'backend':{'method':_0x125040(0x9c),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x5a1a72[_0x125040(0xa5)]),'verification':{'status':_0x125040(0x9f),'expectedRevision':_0x5a1a72['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x125040(0x9c),'url':INSTANT_API_POLICY_BASE_PATH+_0x125040(0xa1)});},async 'execute'(_0x2a153d){const _0x2a39ac=a130_0x334552,_0x43f539=await preparePublish(_0x2a153d);let _0x3f5b39=![];try{await publishInstantApiPolicy({'appCode':_0x2a153d[_0x2a39ac(0xaa)],'config':_0x43f539[_0x2a39ac(0x94)],..._0x43f539['changeSummary']?{'changeSummary':_0x43f539[_0x2a39ac(0xa2)]}:{}});}catch(_0x5accd4){if(!isPlatformTransportFailure(_0x5accd4))throw _0x5accd4;_0x3f5b39=!![];}let _0x2033b7;try{_0x2033b7=await getCurrentInstantApiPolicy(_0x2a153d[_0x2a39ac(0xaa)]);}catch(_0x181641){const _0x28b374=instantApiPolicyError(_0x3f5b39?_0x2a39ac(0x8c):_0x2a39ac(0xac),_0x2a39ac(0x91),_0x2a39ac(0x8e)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x2a39ac(0x8a)](_0x28b374,_0x2a39ac(0x87),{'value':_0x181641,'enumerable':![]});throw _0x28b374;}const _0x57ff0b=_0x2033b7&&(_0x43f539[_0x2a39ac(0x8d)]===null||_0x2033b7['revision']>_0x43f539[_0x2a39ac(0x8d)][_0x2a39ac(0xa6)]),_0x45ab4c=_0x2033b7?.[_0x2a39ac(0x89)]===_0x43f539[_0x2a39ac(0x95)]['configHash'];if(!_0x2033b7||!_0x57ff0b||!_0x45ab4c)throw instantApiPolicyError(_0x3f5b39?_0x2a39ac(0x8c):_0x2a39ac(0x8b),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.',_0x2a39ac(0x8e)+mutationLookupCommand()+_0x2a39ac(0x9d));const _0x5312a4=[...expectedRevisionWarnings(_0x43f539['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x3f5b39&&_0x5312a4[_0x2a39ac(0x86)](_0x2a39ac(0x90)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x2a153d[_0x2a39ac(0xaa)]},'before':projectCurrentPolicy(_0x43f539[_0x2a39ac(0x8d)]),'after':projectCurrentPolicy(_0x2033b7),'filePath':_0x43f539[_0x2a39ac(0x97)][_0x2a39ac(0xa9)],'relativePath':_0x43f539[_0x2a39ac(0x97)][_0x2a39ac(0x98)],'dryRun':![],'backend':{'method':_0x2a39ac(0x9c),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x5312a4,'verification':{'status':_0x2a39ac(0x99),'recoveredAfterUnknownResponse':_0x3f5b39,'expectedRevision':_0x43f539[_0x2a39ac(0xa5)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x2a39ac(0x96)+_0x2033b7['revision']};}};
@@ -1 +1 @@
1
- const a131_0x315ab2=a131_0x1bed;(function(_0x16284b,_0x1e4f34){const _0x3ca8f7=a131_0x1bed,_0x41cfc1=_0x16284b();while(!![]){try{const _0x2f6bd4=-parseInt(_0x3ca8f7(0xc0))/0x1*(parseInt(_0x3ca8f7(0xb6))/0x2)+parseInt(_0x3ca8f7(0xcf))/0x3+parseInt(_0x3ca8f7(0xc6))/0x4*(-parseInt(_0x3ca8f7(0xca))/0x5)+-parseInt(_0x3ca8f7(0xbb))/0x6+parseInt(_0x3ca8f7(0xb7))/0x7*(parseInt(_0x3ca8f7(0xbe))/0x8)+parseInt(_0x3ca8f7(0xc9))/0x9+parseInt(_0x3ca8f7(0xce))/0xa;if(_0x2f6bd4===_0x1e4f34)break;else _0x41cfc1['push'](_0x41cfc1['shift']());}catch(_0x1c9e7a){_0x41cfc1['push'](_0x41cfc1['shift']());}}}(a131_0x2a1c,0x58bef));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a131_0x1bed(_0x49fb77,_0x20d823){_0x49fb77=_0x49fb77-0xb6;const _0x2a1c49=a131_0x2a1c();let _0x1bed70=_0x2a1c49[_0x49fb77];return _0x1bed70;}function a131_0x2a1c(){const _0x9089dc=['unchanged','appCode','2283376NlwQcN','write','instant-api-policy','1694745tswIzZ','5OhBdKA','Pulled','action','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','4695960NCSezM','1105278UWBBUI','Kept','62ZMSIRC','2122001VmowuN','force','policyRelativePath','\x20Instant\x20API\x20policy\x20revision\x20','3873582yfKZHQ','pull','policyFilePath','16loYTna','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','1699dCmCoQ','configHash','revision','config'];a131_0x2a1c=function(){return _0x9089dc;};return a131_0x2a1c();}export const instantApiPolicyPull={'service':a131_0x315ab2(0xc8),'command':a131_0x315ab2(0xbc),'description':a131_0x315ab2(0xbf),'risk':a131_0x315ab2(0xc7),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1adc5f){requireForceConfirmation(_0x1adc5f);},async 'execute'(_0x3edf57){const _0xdd9c43=a131_0x315ab2;requireForceConfirmation(_0x3edf57);const _0x4fd8a4=await getCurrentInstantApiPolicy(_0x3edf57[_0xdd9c43(0xc5)]);if(!_0x4fd8a4)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3edf57[_0xdd9c43(0xc5)]+'.',_0xdd9c43(0xcd));const _0x50455e=loadInstantApiPolicyLocalConfig(_0x3edf57[_0xdd9c43(0xc5)]),_0x199199=await writeInstantApiPolicyConfigFile(_0x50455e,_0x4fd8a4[_0xdd9c43(0xc3)],{'force':_0x3edf57['bool'](_0xdd9c43(0xb8))});return{'ok':!![],'data':{'operation':_0xdd9c43(0xbc),'selector':{'appCode':_0x3edf57[_0xdd9c43(0xc5)],'revision':_0x4fd8a4['revision']},'filePath':_0x50455e[_0xdd9c43(0xbd)],'relativePath':_0x50455e[_0xdd9c43(0xb9)],'action':_0x199199['action'],'configHash':_0x4fd8a4[_0xdd9c43(0xc1)]},'message':(_0x199199[_0xdd9c43(0xcc)]===_0xdd9c43(0xc4)?_0xdd9c43(0xd0):_0xdd9c43(0xcb))+_0xdd9c43(0xba)+_0x4fd8a4[_0xdd9c43(0xc2)]};}};
1
+ const a131_0x312eff=a131_0x1acb;(function(_0x52624d,_0x4506c7){const _0x3e124b=a131_0x1acb,_0x47eb22=_0x52624d();while(!![]){try{const _0x2248d3=parseInt(_0x3e124b(0xd6))/0x1+parseInt(_0x3e124b(0xdf))/0x2*(parseInt(_0x3e124b(0xe0))/0x3)+-parseInt(_0x3e124b(0xcc))/0x4+parseInt(_0x3e124b(0xcb))/0x5+-parseInt(_0x3e124b(0xc9))/0x6*(-parseInt(_0x3e124b(0xc7))/0x7)+-parseInt(_0x3e124b(0xd1))/0x8*(-parseInt(_0x3e124b(0xe1))/0x9)+-parseInt(_0x3e124b(0xdd))/0xa;if(_0x2248d3===_0x4506c7)break;else _0x47eb22['push'](_0x47eb22['shift']());}catch(_0x876879){_0x47eb22['push'](_0x47eb22['shift']());}}}(a131_0x3257,0x2c5f4));function a131_0x3257(){const _0x23f4b3=['1692PoCjEv','write','615170sRpwKJ','1072412QJwano','Pulled','pull','policyRelativePath','appCode','8Hbwdsd','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','instant-api-policy','action','config','312418bbvkgW','policyFilePath','force','Kept','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','unchanged','7152510jMQFwI','instant_api_policy_not_configured','142750RWCYEm','15URPFLy','2352465XhxjmU','2765vltPOJ','\x20Instant\x20API\x20policy\x20revision\x20'];a131_0x3257=function(){return _0x23f4b3;};return a131_0x3257();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a131_0x1acb(_0x53db71,_0xcc79bd){_0x53db71=_0x53db71-0xc7;const _0x325719=a131_0x3257();let _0x1acb78=_0x325719[_0x53db71];return _0x1acb78;}export const instantApiPolicyPull={'service':a131_0x312eff(0xd3),'command':a131_0x312eff(0xce),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a131_0x312eff(0xca),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x2c66d7){requireForceConfirmation(_0x2c66d7);},async 'execute'(_0x3a7bf2){const _0x47c987=a131_0x312eff;requireForceConfirmation(_0x3a7bf2);const _0x20d238=await getCurrentInstantApiPolicy(_0x3a7bf2[_0x47c987(0xd0)]);if(!_0x20d238)throw instantApiPolicyError(_0x47c987(0xde),_0x47c987(0xda)+_0x3a7bf2[_0x47c987(0xd0)]+'.',_0x47c987(0xd2));const _0x15039e=loadInstantApiPolicyLocalConfig(_0x3a7bf2[_0x47c987(0xd0)]),_0x505a8d=await writeInstantApiPolicyConfigFile(_0x15039e,_0x20d238[_0x47c987(0xd5)],{'force':_0x3a7bf2['bool'](_0x47c987(0xd8))});return{'ok':!![],'data':{'operation':_0x47c987(0xce),'selector':{'appCode':_0x3a7bf2[_0x47c987(0xd0)],'revision':_0x20d238['revision']},'filePath':_0x15039e[_0x47c987(0xd7)],'relativePath':_0x15039e[_0x47c987(0xcf)],'action':_0x505a8d[_0x47c987(0xd4)],'configHash':_0x20d238['configHash']},'message':(_0x505a8d[_0x47c987(0xd4)]===_0x47c987(0xdc)?_0x47c987(0xd9):_0x47c987(0xcd))+_0x47c987(0xc8)+_0x20d238[_0x47c987(0xdb)]};}};
@@ -1 +1 @@
1
- const a132_0x4f4d6a=a132_0x39e6;(function(_0x278da7,_0x10ec91){const _0x229078=a132_0x39e6,_0x5aaa5=_0x278da7();while(!![]){try{const _0x210098=-parseInt(_0x229078(0x70))/0x1+-parseInt(_0x229078(0x6a))/0x2*(-parseInt(_0x229078(0x76))/0x3)+-parseInt(_0x229078(0x72))/0x4*(parseInt(_0x229078(0x73))/0x5)+-parseInt(_0x229078(0x75))/0x6+parseInt(_0x229078(0x71))/0x7+-parseInt(_0x229078(0x6e))/0x8+parseInt(_0x229078(0x6c))/0x9;if(_0x210098===_0x10ec91)break;else _0x5aaa5['push'](_0x5aaa5['shift']());}catch(_0x2e36ef){_0x5aaa5['push'](_0x5aaa5['shift']());}}}(a132_0x5aa9,0xbd531));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a132_0x4f4d6a(0x6f),'command':a132_0x4f4d6a(0x77),'description':a132_0x4f4d6a(0x6d),'risk':a132_0x4f4d6a(0x6b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x3786a4){readRevision(_0x3786a4);},async 'execute'(_0x138de2){const _0x1c0162=a132_0x4f4d6a,_0x42313d=readRevision(_0x138de2),_0x374c43=await getInstantApiPolicyRevision(_0x138de2[_0x1c0162(0x74)],_0x42313d);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x374c43)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x42313d};}};function a132_0x39e6(_0x41d9ef,_0x5739b6){_0x41d9ef=_0x41d9ef-0x6a;const _0x5aa994=a132_0x5aa9();let _0x39e6b5=_0x5aa994[_0x41d9ef];return _0x39e6b5;}function a132_0x5aa9(){const _0x4882e9=['12ZuVymv','2286235AhYGyD','appCode','553272OrHPxO','3TfddpM','revision','2790316nIAALd','read','1556442hppXCd','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','5326024ATxxwV','instant-api-policy','132049wPdIqQ','10283924UJMgBy'];a132_0x5aa9=function(){return _0x4882e9;};return a132_0x5aa9();}
1
+ const a132_0x59fe1c=a132_0x58fb;(function(_0x483563,_0x345e6e){const _0x3cb7e9=a132_0x58fb,_0x5ac9db=_0x483563();while(!![]){try{const _0x205465=parseInt(_0x3cb7e9(0x109))/0x1*(parseInt(_0x3cb7e9(0x107))/0x2)+parseInt(_0x3cb7e9(0x10f))/0x3+parseInt(_0x3cb7e9(0x100))/0x4*(-parseInt(_0x3cb7e9(0x101))/0x5)+-parseInt(_0x3cb7e9(0x10d))/0x6+parseInt(_0x3cb7e9(0x10a))/0x7*(parseInt(_0x3cb7e9(0x10e))/0x8)+parseInt(_0x3cb7e9(0x105))/0x9*(-parseInt(_0x3cb7e9(0x10b))/0xa)+parseInt(_0x3cb7e9(0x10c))/0xb*(parseInt(_0x3cb7e9(0x102))/0xc);if(_0x205465===_0x345e6e)break;else _0x5ac9db['push'](_0x5ac9db['shift']());}catch(_0x1c4f3d){_0x5ac9db['push'](_0x5ac9db['shift']());}}}(a132_0x4cc0,0xe9995));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a132_0x4cc0(){const _0x8359ba=['236nuTOhD','3451QvelKF','10Jubsqh','22oNOsAR','8129772UdrmID','4216zSdQbZ','3604464GhSEZT','Loaded\x20Instant\x20API\x20policy\x20revision\x20','2556OlUSmU','11105CoMcnl','10818228jhvfcd','read','instant-api-policy','9797175ccEnnd','appCode','13180rqmqgO','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision'];a132_0x4cc0=function(){return _0x8359ba;};return a132_0x4cc0();}function a132_0x58fb(_0x3dc117,_0x1668ac){_0x3dc117=_0x3dc117-0xff;const _0x4cc0bd=a132_0x4cc0();let _0x58fbd4=_0x4cc0bd[_0x3dc117];return _0x58fbd4;}export const instantApiPolicyRevision={'service':a132_0x59fe1c(0x104),'command':'revision','description':a132_0x59fe1c(0x108),'risk':a132_0x59fe1c(0x103),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x376e24){readRevision(_0x376e24);},async 'execute'(_0x20adb5){const _0x920053=a132_0x59fe1c,_0x112c09=readRevision(_0x20adb5),_0x4eab3b=await getInstantApiPolicyRevision(_0x20adb5[_0x920053(0x106)],_0x112c09);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x4eab3b)},'message':_0x920053(0xff)+_0x112c09};}};
@@ -1 +1 @@
1
- const a133_0x3e51c7=a133_0x44f7;(function(_0x29f853,_0x137a33){const _0x7d9b2d=a133_0x44f7,_0x1e5703=_0x29f853();while(!![]){try{const _0x2fa7b0=parseInt(_0x7d9b2d(0x191))/0x1*(-parseInt(_0x7d9b2d(0x193))/0x2)+parseInt(_0x7d9b2d(0x196))/0x3*(parseInt(_0x7d9b2d(0x190))/0x4)+parseInt(_0x7d9b2d(0x18e))/0x5+-parseInt(_0x7d9b2d(0x194))/0x6+parseInt(_0x7d9b2d(0x195))/0x7*(-parseInt(_0x7d9b2d(0x192))/0x8)+parseInt(_0x7d9b2d(0x19a))/0x9+parseInt(_0x7d9b2d(0x197))/0xa;if(_0x2fa7b0===_0x137a33)break;else _0x1e5703['push'](_0x1e5703['shift']());}catch(_0x444328){_0x1e5703['push'](_0x1e5703['shift']());}}}(a133_0x3a01,0x7f4b5));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a133_0x44f7(_0xb62204,_0x274de){_0xb62204=_0xb62204-0x18b;const _0x3a0125=a133_0x3a01();let _0x44f727=_0x3a0125[_0xb62204];return _0x44f727;}function a133_0x3a01(){const _0x4e31bd=['10967hDuRro','249376Lcnpoc','142WjjUcA','4654668irtNrM','196shKyca','1441383cALYfB','7908130lPIohP','appCode','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','3618630wKxCvi','instant-api-policy','map','\x20Instant\x20API\x20policy\x20revision(s)','length','3974215IYfzaT','revisions','8NeJTEo'];a133_0x3a01=function(){return _0x4e31bd;};return a133_0x3a01();}export const instantApiPolicyRevisions={'service':a133_0x3e51c7(0x19b),'command':a133_0x3e51c7(0x18f),'description':a133_0x3e51c7(0x199),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3d1453){const _0x38508a=a133_0x3e51c7,_0x391620=await listInstantApiPolicyRevisions(_0x3d1453[_0x38508a(0x198)]);return{'ok':!![],'data':{'appCode':_0x3d1453[_0x38508a(0x198)],'total':_0x391620[_0x38508a(0x18d)],'revisions':_0x391620[_0x38508a(0x18b)](projectRevisionSummary)},'message':'Found\x20'+_0x391620[_0x38508a(0x18d)]+_0x38508a(0x18c)};}};
1
+ const a133_0xeb23d9=a133_0x546b;function a133_0x2ab1(){const _0x1caa82=['read','231806YdEWGx','length','\x20Instant\x20API\x20policy\x20revision(s)','101298FOlXRX','490465OZfyGF','appCode','Found\x20','1pRDszM','map','794007zkKVFo','617232VWxmZY','149347QcydXK','192ExCieS','8OFcHGj','instant-api-policy','42511RGVNXs','40ffAqkl','16WHDHsQ'];a133_0x2ab1=function(){return _0x1caa82;};return a133_0x2ab1();}(function(_0x361cdf,_0x17b388){const _0x3bd62a=a133_0x546b,_0x1e5324=_0x361cdf();while(!![]){try{const _0x33d1f2=parseInt(_0x3bd62a(0x138))/0x1*(-parseInt(_0x3bd62a(0x131))/0x2)+parseInt(_0x3bd62a(0x134))/0x3*(parseInt(_0x3bd62a(0x12f))/0x4)+parseInt(_0x3bd62a(0x135))/0x5+-parseInt(_0x3bd62a(0x13d))/0x6*(-parseInt(_0x3bd62a(0x12d))/0x7)+-parseInt(_0x3bd62a(0x13e))/0x8*(parseInt(_0x3bd62a(0x13a))/0x9)+parseInt(_0x3bd62a(0x12e))/0xa*(-parseInt(_0x3bd62a(0x13c))/0xb)+-parseInt(_0x3bd62a(0x13b))/0xc;if(_0x33d1f2===_0x17b388)break;else _0x1e5324['push'](_0x1e5324['shift']());}catch(_0xf34206){_0x1e5324['push'](_0x1e5324['shift']());}}}(a133_0x2ab1,0x1cb77));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a133_0x546b(_0x5f4041,_0x5a4809){_0x5f4041=_0x5f4041-0x12c;const _0x2ab1f7=a133_0x2ab1();let _0x546b71=_0x2ab1f7[_0x5f4041];return _0x546b71;}export const instantApiPolicyRevisions={'service':a133_0xeb23d9(0x12c),'command':'revisions','description':'List\x20immutable\x20Instant\x20API\x20policy\x20revisions','risk':a133_0xeb23d9(0x130),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5170fd){const _0x149f33=a133_0xeb23d9,_0x197121=await listInstantApiPolicyRevisions(_0x5170fd[_0x149f33(0x136)]);return{'ok':!![],'data':{'appCode':_0x5170fd['appCode'],'total':_0x197121[_0x149f33(0x132)],'revisions':_0x197121[_0x149f33(0x139)](projectRevisionSummary)},'message':_0x149f33(0x137)+_0x197121[_0x149f33(0x132)]+_0x149f33(0x133)};}};
@@ -1 +1 @@
1
- function a134_0x1fce(_0x57acd7,_0x1348e3){_0x57acd7=_0x57acd7-0x13e;const _0x1e4769=a134_0x1e47();let _0x1fcef3=_0x1e4769[_0x57acd7];return _0x1fcef3;}const a134_0x2c7b98=a134_0x1fce;(function(_0xd51f9,_0x39bbe9){const _0x4d07d3=a134_0x1fce,_0x3a40ce=_0xd51f9();while(!![]){try{const _0x36920d=parseInt(_0x4d07d3(0x14d))/0x1*(-parseInt(_0x4d07d3(0x14c))/0x2)+-parseInt(_0x4d07d3(0x15e))/0x3*(-parseInt(_0x4d07d3(0x153))/0x4)+-parseInt(_0x4d07d3(0x151))/0x5+parseInt(_0x4d07d3(0x164))/0x6*(-parseInt(_0x4d07d3(0x159))/0x7)+parseInt(_0x4d07d3(0x144))/0x8*(parseInt(_0x4d07d3(0x14a))/0x9)+-parseInt(_0x4d07d3(0x13e))/0xa+parseInt(_0x4d07d3(0x145))/0xb*(parseInt(_0x4d07d3(0x158))/0xc);if(_0x36920d===_0x39bbe9)break;else _0x3a40ce['push'](_0x3a40ce['shift']());}catch(_0x5c04ad){_0x3a40ce['push'](_0x3a40ce['shift']());}}}(a134_0x1e47,0x81582));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 a134_0x1e47(){const _0x5e7604=['`;\x20do\x20not\x20resubmit\x20automatically.','cause','1173nWGZKZ','instant-api-policy','revision','appCode','Rolled\x20Instant\x20API\x20policy\x20revision\x20','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','6fkZGGF','defineProperty','7958480RVqfBj','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','push','configHash','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','16qSKUfj','26587VjqsYG','expectedRevision','Inspect\x20with\x20`','/rollback','instant_api_policy_rollback_outcome_unknown','925551iZVgVs','instant_api_policy_rollback_verification_failed','18fJWlCc','115737uAKJHY','verified','before','target','1510580kLFgjN','planned','2696iikXzS','instant_api_policy_not_configured','high-risk-write','rollback','POST','15816OUpIiz','6897989cMvRkl','all','changeSummary'];a134_0x1e47=function(){return _0x5e7604;};return a134_0x1e47();}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(_0x318cff){const _0x54afb2=a134_0x1fce,_0x21d777=readRevision(_0x318cff),_0xefe821=readChangeSummary(_0x318cff),_0x5a76cc=readExpectedRevision(_0x318cff),[_0x456ed3,_0xb4d1fe]=await Promise[_0x54afb2(0x15a)]([getCurrentInstantApiPolicy(_0x318cff[_0x54afb2(0x161)]),getInstantApiPolicyRevision(_0x318cff[_0x54afb2(0x161)],_0x21d777)]);if(!_0x456ed3)throw instantApiPolicyError(_0x54afb2(0x154),_0x54afb2(0x142)+_0x318cff[_0x54afb2(0x161)]+'.');return assertExpectedRevision(_0x456ed3,_0x5a76cc),{'revision':_0x21d777,'changeSummary':_0xefe821,'expectedRevision':_0x5a76cc,'before':_0x456ed3,'target':_0xb4d1fe};}export const instantApiPolicyRollback={'service':a134_0x2c7b98(0x15f),'command':'rollback','description':'Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':a134_0x2c7b98(0x155),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a134_0x2c7b98(0x13f),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2e38df){readRevision(_0x2e38df),readChangeSummary(_0x2e38df),readExpectedRevision(_0x2e38df);},async 'dryRun'(_0x19bfb3){const _0x111324=a134_0x2c7b98,_0x56c2fd=await prepareRollback(_0x19bfb3);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x19bfb3[_0x111324(0x161)],'sourceRevision':_0x56c2fd['revision']},'before':projectCurrentPolicy(_0x56c2fd['before']),'after':{'revision':_0x56c2fd[_0x111324(0x14f)][_0x111324(0x160)]+0x1,'sourceRevision':projectRevisionDetail(_0x56c2fd[_0x111324(0x150)])},'dryRun':!![],'backend':{'method':_0x111324(0x157),'path':INSTANT_API_POLICY_BASE_PATH+_0x111324(0x148)},'warnings':expectedRevisionWarnings(_0x56c2fd[_0x111324(0x146)]),'verification':{'status':_0x111324(0x152),'expectedRevision':_0x56c2fd[_0x111324(0x146)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x111324(0x157),'url':INSTANT_API_POLICY_BASE_PATH+_0x111324(0x148)});},async 'execute'(_0x2ae201){const _0x3bd22d=a134_0x2c7b98,_0x5911a3=await prepareRollback(_0x2ae201);let _0x514a74=![];try{await rollbackInstantApiPolicy({'appCode':_0x2ae201[_0x3bd22d(0x161)],'revision':_0x5911a3['revision'],..._0x5911a3[_0x3bd22d(0x15b)]?{'changeSummary':_0x5911a3[_0x3bd22d(0x15b)]}:{}});}catch(_0x335dcd){if(!isPlatformTransportFailure(_0x335dcd))throw _0x335dcd;_0x514a74=!![];}let _0x522688;try{_0x522688=await getCurrentInstantApiPolicy(_0x2ae201['appCode']);}catch(_0x391d36){const _0x1ce925=instantApiPolicyError(_0x514a74?_0x3bd22d(0x149):'instant_api_policy_rollback_verification_unavailable',_0x3bd22d(0x163),_0x3bd22d(0x147)+mutationLookupCommand()+_0x3bd22d(0x15c));Object[_0x3bd22d(0x165)](_0x1ce925,_0x3bd22d(0x15d),{'value':_0x391d36,'enumerable':![]});throw _0x1ce925;}const _0x291807=_0x522688&&_0x522688['revision']>_0x5911a3[_0x3bd22d(0x14f)][_0x3bd22d(0x160)],_0x16eb91=_0x522688?.[_0x3bd22d(0x141)]===_0x5911a3[_0x3bd22d(0x150)][_0x3bd22d(0x141)];if(!_0x522688||!_0x291807||!_0x16eb91)throw instantApiPolicyError(_0x514a74?_0x3bd22d(0x149):_0x3bd22d(0x14b),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.',_0x3bd22d(0x147)+mutationLookupCommand()+_0x3bd22d(0x15c));const _0x2244ef=[...expectedRevisionWarnings(_0x5911a3[_0x3bd22d(0x146)]),RUNTIME_CACHE_WARNING];return _0x514a74&&_0x2244ef[_0x3bd22d(0x140)](_0x3bd22d(0x143)),{'ok':!![],'data':{'operation':_0x3bd22d(0x156),'selector':{'appCode':_0x2ae201[_0x3bd22d(0x161)],'sourceRevision':_0x5911a3[_0x3bd22d(0x160)]},'before':projectCurrentPolicy(_0x5911a3[_0x3bd22d(0x14f)]),'after':projectCurrentPolicy(_0x522688),'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x3bd22d(0x148)},'warnings':_0x2244ef,'verification':{'status':_0x3bd22d(0x14e),'recoveredAfterUnknownResponse':_0x514a74,'expectedRevision':_0x5911a3[_0x3bd22d(0x146)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x3bd22d(0x162)+_0x5911a3['revision']+'\x20forward\x20to\x20revision\x20'+_0x522688[_0x3bd22d(0x160)]};}};
1
+ const a134_0x581d6e=a134_0x1769;(function(_0x52f790,_0x2f0880){const _0x1d0726=a134_0x1769,_0x3aebdc=_0x52f790();while(!![]){try{const _0x45a700=-parseInt(_0x1d0726(0x1de))/0x1+-parseInt(_0x1d0726(0x1d0))/0x2+-parseInt(_0x1d0726(0x1c2))/0x3*(parseInt(_0x1d0726(0x1cc))/0x4)+parseInt(_0x1d0726(0x1da))/0x5+-parseInt(_0x1d0726(0x1cd))/0x6+-parseInt(_0x1d0726(0x1c4))/0x7*(-parseInt(_0x1d0726(0x1d1))/0x8)+parseInt(_0x1d0726(0x1bf))/0x9*(parseInt(_0x1d0726(0x1cb))/0xa);if(_0x45a700===_0x2f0880)break;else _0x3aebdc['push'](_0x3aebdc['shift']());}catch(_0x493451){_0x3aebdc['push'](_0x3aebdc['shift']());}}}(a134_0x55af,0x7803e));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a134_0x1769(_0x5a73b7,_0x1395a9){_0x5a73b7=_0x5a73b7-0x1b9;const _0x55af60=a134_0x55af();let _0x17699e=_0x55af60[_0x5a73b7];return _0x17699e;}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';function a134_0x55af(){const _0x3e981b=['verified','452669zovQPt','POST','revision','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','\x20forward\x20to\x20revision\x20','cause','`;\x20do\x20not\x20resubmit\x20automatically.','24260rYnOzI','4qawnUx','276942SPQBUX','planned','instant_api_policy_rollback_verification_failed','26342ErlSao','8BnXiPl','Rolled\x20Instant\x20API\x20policy\x20revision\x20','configHash','/rollback','all','defineProperty','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`','changeSummary','4024620pTFVBW','instant-api-policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','instant_api_policy_rollback_verification_unavailable','851959IBlbQu','rollback','instant_api_policy_rollback_outcome_unknown','target','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','appCode','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','2934rvWWHX','before','expectedRevision','772794KCIaeF'];a134_0x55af=function(){return _0x3e981b;};return a134_0x55af();}async function prepareRollback(_0x237e62){const _0xfca4b9=a134_0x1769,_0x3e63bd=readRevision(_0x237e62),_0x112557=readChangeSummary(_0x237e62),_0x2211ca=readExpectedRevision(_0x237e62),[_0x46c3fb,_0x8a5a07]=await Promise[_0xfca4b9(0x1d5)]([getCurrentInstantApiPolicy(_0x237e62[_0xfca4b9(0x1bd)]),getInstantApiPolicyRevision(_0x237e62[_0xfca4b9(0x1bd)],_0x3e63bd)]);if(!_0x46c3fb)throw instantApiPolicyError('instant_api_policy_not_configured',_0xfca4b9(0x1dc)+_0x237e62[_0xfca4b9(0x1bd)]+'.');return assertExpectedRevision(_0x46c3fb,_0x2211ca),{'revision':_0x3e63bd,'changeSummary':_0x112557,'expectedRevision':_0x2211ca,'before':_0x46c3fb,'target':_0x8a5a07};}export const instantApiPolicyRollback={'service':a134_0x581d6e(0x1db),'command':a134_0x581d6e(0x1b9),'description':'Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a134_0x581d6e(0x1bc),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x1b70d4){readRevision(_0x1b70d4),readChangeSummary(_0x1b70d4),readExpectedRevision(_0x1b70d4);},async 'dryRun'(_0x16a926){const _0x750297=a134_0x581d6e,_0x2ea10d=await prepareRollback(_0x16a926);return asDryRunResult({'operation':'rollback','selector':{'appCode':_0x16a926[_0x750297(0x1bd)],'sourceRevision':_0x2ea10d[_0x750297(0x1c6)]},'before':projectCurrentPolicy(_0x2ea10d['before']),'after':{'revision':_0x2ea10d[_0x750297(0x1c0)][_0x750297(0x1c6)]+0x1,'sourceRevision':projectRevisionDetail(_0x2ea10d[_0x750297(0x1bb)])},'dryRun':!![],'backend':{'method':_0x750297(0x1c5),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x2ea10d[_0x750297(0x1c1)]),'verification':{'status':_0x750297(0x1ce),'expectedRevision':_0x2ea10d['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x750297(0x1c5),'url':INSTANT_API_POLICY_BASE_PATH+'/rollback'});},async 'execute'(_0x7a5a2a){const _0x1491a4=a134_0x581d6e,_0x5cebfd=await prepareRollback(_0x7a5a2a);let _0x7f8b8f=![];try{await rollbackInstantApiPolicy({'appCode':_0x7a5a2a[_0x1491a4(0x1bd)],'revision':_0x5cebfd['revision'],..._0x5cebfd[_0x1491a4(0x1d9)]?{'changeSummary':_0x5cebfd[_0x1491a4(0x1d9)]}:{}});}catch(_0x584e77){if(!isPlatformTransportFailure(_0x584e77))throw _0x584e77;_0x7f8b8f=!![];}let _0x4c2876;try{_0x4c2876=await getCurrentInstantApiPolicy(_0x7a5a2a['appCode']);}catch(_0x39745f){const _0x66e35e=instantApiPolicyError(_0x7f8b8f?_0x1491a4(0x1ba):_0x1491a4(0x1dd),_0x1491a4(0x1d7),_0x1491a4(0x1d8)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x1491a4(0x1d6)](_0x66e35e,_0x1491a4(0x1c9),{'value':_0x39745f,'enumerable':![]});throw _0x66e35e;}const _0x475880=_0x4c2876&&_0x4c2876[_0x1491a4(0x1c6)]>_0x5cebfd[_0x1491a4(0x1c0)][_0x1491a4(0x1c6)],_0x438f8e=_0x4c2876?.[_0x1491a4(0x1d3)]===_0x5cebfd[_0x1491a4(0x1bb)][_0x1491a4(0x1d3)];if(!_0x4c2876||!_0x475880||!_0x438f8e)throw instantApiPolicyError(_0x7f8b8f?_0x1491a4(0x1ba):_0x1491a4(0x1cf),_0x1491a4(0x1c7),_0x1491a4(0x1d8)+mutationLookupCommand()+_0x1491a4(0x1ca));const _0x27e4cb=[...expectedRevisionWarnings(_0x5cebfd[_0x1491a4(0x1c1)]),RUNTIME_CACHE_WARNING];return _0x7f8b8f&&_0x27e4cb['push'](_0x1491a4(0x1be)),{'ok':!![],'data':{'operation':_0x1491a4(0x1b9),'selector':{'appCode':_0x7a5a2a['appCode'],'sourceRevision':_0x5cebfd['revision']},'before':projectCurrentPolicy(_0x5cebfd[_0x1491a4(0x1c0)]),'after':projectCurrentPolicy(_0x4c2876),'dryRun':![],'backend':{'method':_0x1491a4(0x1c5),'path':INSTANT_API_POLICY_BASE_PATH+_0x1491a4(0x1d4)},'warnings':_0x27e4cb,'verification':{'status':_0x1491a4(0x1c3),'recoveredAfterUnknownResponse':_0x7f8b8f,'expectedRevision':_0x5cebfd[_0x1491a4(0x1c1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1491a4(0x1d2)+_0x5cebfd[_0x1491a4(0x1c6)]+_0x1491a4(0x1c8)+_0x4c2876[_0x1491a4(0x1c6)]};}};
@@ -1 +1 @@
1
- const a135_0x20cc2b=a135_0x2fb4;(function(_0x5ecdd5,_0x53f37f){const _0x2262cc=a135_0x2fb4,_0x560887=_0x5ecdd5();while(!![]){try{const _0xf7a4ef=-parseInt(_0x2262cc(0x178))/0x1*(parseInt(_0x2262cc(0x160))/0x2)+parseInt(_0x2262cc(0x16b))/0x3*(parseInt(_0x2262cc(0x15e))/0x4)+-parseInt(_0x2262cc(0x162))/0x5*(-parseInt(_0x2262cc(0x15b))/0x6)+parseInt(_0x2262cc(0x169))/0x7*(-parseInt(_0x2262cc(0x177))/0x8)+parseInt(_0x2262cc(0x155))/0x9+-parseInt(_0x2262cc(0x175))/0xa*(-parseInt(_0x2262cc(0x152))/0xb)+parseInt(_0x2262cc(0x166))/0xc*(parseInt(_0x2262cc(0x17a))/0xd);if(_0xf7a4ef===_0x53f37f)break;else _0x560887['push'](_0x560887['shift']());}catch(_0x48c294){_0x560887['push'](_0x560887['shift']());}}}(a135_0x4e21,0x257d3));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a135_0x20cc2b(0x150);export const RUNTIME_CACHE_WARNING=a135_0x20cc2b(0x15d);function a135_0x2fb4(_0x1aa3b8,_0x5c0385){_0x1aa3b8=_0x1aa3b8-0x14e;const _0x4e21df=a135_0x4e21();let _0x2fb432=_0x4e21df[_0x1aa3b8];return _0x2fb432;}export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a135_0x20cc2b(0x158);export const FORCE_FLAG={'name':a135_0x20cc2b(0x16c),'type':a135_0x20cc2b(0x172),'default':![],'description':a135_0x20cc2b(0x151)};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':a135_0x20cc2b(0x159),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':'revision','type':'number','required':!![],'description':a135_0x20cc2b(0x16e)};export const EXPECTED_REVISION_FLAG={'name':a135_0x20cc2b(0x174),'type':'number','required':![],'description':'Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured'};export function requireForceConfirmation(_0x38c958){const _0x431164=a135_0x20cc2b;if(!_0x38c958[_0x431164(0x153)]('force')||_0x38c958[_0x431164(0x153)]('yes'))return;throw instantApiPolicyError(_0x431164(0x17b),_0x431164(0x15f),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x3d1d4f){const _0x5ea48a=a135_0x20cc2b,_0x14cc14=_0x3d1d4f['str']('change-summary')[_0x5ea48a(0x179)]();if(!_0x14cc14)return undefined;if(_0x14cc14['length']>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid','--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0x14cc14;}function a135_0x4e21(){const _0x521e5e=['string','num','6kHkRpK','appCode','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','8axZkEP','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','393966qQzTDs','policyId','796650PuZfNY','NaN','flag','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','120bJeLoF','configHash','operatorId','1410458pSEutg','instant_api_policy_revision_invalid','88971RbHNVE','force','updateUserId','Positive\x20published\x20policy\x20revision','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','changeSummary','createUserId','boolean','gmtCreate','expected-revision','282830nkBPMB','enabled','8DjLSNa','1QFrzkO','trim','36205OActWf','instant_api_policy_force_confirmation_required','isSafeInteger','version','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','config','/smartapi/instant-api-policy','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','22QHZzMt','bool','length','2240748eNSYeK','instant_api_policy_revision_mismatch','revision','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.'];a135_0x4e21=function(){return _0x521e5e;};return a135_0x4e21();}export function readRevision(_0x2d7920){const _0x32e444=a135_0x20cc2b,_0x303a2f=_0x2d7920[_0x32e444(0x15a)]('revision',Number['NaN']);if(!Number[_0x32e444(0x17c)](_0x303a2f)||_0x303a2f<=0x0)throw instantApiPolicyError(_0x32e444(0x16a),_0x32e444(0x14e));return _0x303a2f;}export function readExpectedRevision(_0x5aec24){const _0x3a565a=a135_0x20cc2b;if(_0x5aec24[_0x3a565a(0x164)](_0x3a565a(0x174))===undefined)return undefined;const _0x2b2585=_0x5aec24[_0x3a565a(0x15a)](_0x3a565a(0x174),Number[_0x3a565a(0x163)]);if(!Number[_0x3a565a(0x17c)](_0x2b2585)||_0x2b2585<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0x3a565a(0x16f));return _0x2b2585;}export function assertExpectedRevision(_0x52dc77,_0x34de38){const _0x334d98=a135_0x20cc2b;if(_0x34de38===undefined)return;const _0x20b372=_0x52dc77?.[_0x334d98(0x157)]??0x0;if(_0x20b372!==_0x34de38)throw instantApiPolicyError(_0x334d98(0x156),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','Expected\x20revision\x20'+_0x34de38+';\x20current\x20revision\x20is\x20'+_0x20b372+_0x334d98(0x165));}export async function readFixedPolicy(_0xb49107){const _0x4bc6fd=a135_0x20cc2b,_0x4aa7c0=loadInstantApiPolicyLocalConfig(_0xb49107[_0x4bc6fd(0x15c)]),_0x38fceb=await readInstantApiPolicyConfigFile(_0x4aa7c0);return{'local':_0x4aa7c0,'config':_0x38fceb};}export function projectCurrentPolicy(_0x5d7900){const _0x10d46c=a135_0x20cc2b;if(!_0x5d7900)return null;return{'id':_0x5d7900['id'],'appCode':_0x5d7900[_0x10d46c(0x15c)],'revision':_0x5d7900[_0x10d46c(0x157)],'configHash':_0x5d7900[_0x10d46c(0x167)],'enabled':_0x5d7900[_0x10d46c(0x176)],'config':_0x5d7900[_0x10d46c(0x14f)],'createUserId':_0x5d7900[_0x10d46c(0x171)]??null,'updateUserId':_0x5d7900[_0x10d46c(0x16d)]??null,'gmtCreate':_0x5d7900['gmtCreate']??null,'gmtModified':_0x5d7900['gmtModified']??null};}export function projectRevisionSummary(_0x508486){const _0x36799e=a135_0x20cc2b;return{'id':_0x508486['id'],'policyId':_0x508486[_0x36799e(0x161)],'appCode':_0x508486['appCode'],'revision':_0x508486[_0x36799e(0x157)],'configHash':_0x508486[_0x36799e(0x167)],'changeType':_0x508486['changeType'],'changeSummary':_0x508486[_0x36799e(0x170)]??null,'operatorId':_0x508486[_0x36799e(0x168)]??null,'gmtCreate':_0x508486[_0x36799e(0x173)]??null,'version':_0x508486['config'][_0x36799e(0x17d)],'defaultAction':_0x508486[_0x36799e(0x14f)]['defaults']['instantApi'],'ruleCount':_0x508486[_0x36799e(0x14f)]['rules']?.[_0x36799e(0x154)]??0x0};}export function projectRevisionDetail(_0x96291){const _0x4d485e=a135_0x20cc2b;return{...projectRevisionSummary(_0x96291),'config':_0x96291[_0x4d485e(0x14f)]};}export function expectedRevisionWarnings(_0xf8491){return _0xf8491===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}
1
+ const a135_0x370889=a135_0x3e77;(function(_0x532656,_0x11c0b2){const _0x402dea=a135_0x3e77,_0x35b8bd=_0x532656();while(!![]){try{const _0x1ea653=parseInt(_0x402dea(0x13b))/0x1*(parseInt(_0x402dea(0x152))/0x2)+parseInt(_0x402dea(0x147))/0x3+parseInt(_0x402dea(0x146))/0x4+parseInt(_0x402dea(0x15b))/0x5+-parseInt(_0x402dea(0x14d))/0x6+parseInt(_0x402dea(0x137))/0x7*(parseInt(_0x402dea(0x14a))/0x8)+-parseInt(_0x402dea(0x131))/0x9;if(_0x1ea653===_0x11c0b2)break;else _0x35b8bd['push'](_0x35b8bd['shift']());}catch(_0x46dd56){_0x35b8bd['push'](_0x35b8bd['shift']());}}}(a135_0x151f,0xaa05e));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a135_0x370889(0x12c);export const RUNTIME_CACHE_WARNING=a135_0x370889(0x150);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a135_0x370889(0x159);export const FORCE_FLAG={'name':a135_0x370889(0x12a),'type':'boolean','default':![],'description':a135_0x370889(0x14b)};function a135_0x3e77(_0x2dde79,_0x3d9b38){_0x2dde79=_0x2dde79-0x128;const _0x151f8f=a135_0x151f();let _0x3e77b1=_0x151f8f[_0x2dde79];return _0x3e77b1;}export const CHANGE_SUMMARY_FLAG={'name':a135_0x370889(0x15a),'type':a135_0x370889(0x132),'required':![],'description':a135_0x370889(0x139)};export const REVISION_FLAG={'name':'revision','type':a135_0x370889(0x136),'required':!![],'description':'Positive\x20published\x20policy\x20revision'};export const EXPECTED_REVISION_FLAG={'name':'expected-revision','type':a135_0x370889(0x136),'required':![],'description':a135_0x370889(0x153)};export function requireForceConfirmation(_0x47c576){const _0x4f4102=a135_0x370889;if(!_0x47c576[_0x4f4102(0x155)](_0x4f4102(0x12a))||_0x47c576[_0x4f4102(0x155)](_0x4f4102(0x144)))return;throw instantApiPolicyError(_0x4f4102(0x129),_0x4f4102(0x143),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x595d7e){const _0x5b095a=a135_0x370889,_0x266c2e=_0x595d7e[_0x5b095a(0x13d)](_0x5b095a(0x15a))[_0x5b095a(0x140)]();if(!_0x266c2e)return undefined;if(_0x266c2e[_0x5b095a(0x135)]>0x7d0)throw instantApiPolicyError(_0x5b095a(0x156),_0x5b095a(0x12d));return _0x266c2e;}export function readRevision(_0x218980){const _0x54aa5f=a135_0x370889,_0x3bb2ba=_0x218980[_0x54aa5f(0x13e)](_0x54aa5f(0x14c),Number[_0x54aa5f(0x130)]);if(!Number[_0x54aa5f(0x134)](_0x3bb2ba)||_0x3bb2ba<=0x0)throw instantApiPolicyError(_0x54aa5f(0x145),_0x54aa5f(0x14e));return _0x3bb2ba;}export function readExpectedRevision(_0x7bc5e6){const _0x4fec27=a135_0x370889;if(_0x7bc5e6[_0x4fec27(0x149)]('expected-revision')===undefined)return undefined;const _0x1a6ff0=_0x7bc5e6[_0x4fec27(0x13e)](_0x4fec27(0x148),Number[_0x4fec27(0x130)]);if(!Number[_0x4fec27(0x134)](_0x1a6ff0)||_0x1a6ff0<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0x4fec27(0x151));return _0x1a6ff0;}export function assertExpectedRevision(_0x85a4a6,_0x5c22de){const _0x61054=a135_0x370889;if(_0x5c22de===undefined)return;const _0x1afabc=_0x85a4a6?.['revision']??0x0;if(_0x1afabc!==_0x5c22de)throw instantApiPolicyError(_0x61054(0x158),_0x61054(0x142),_0x61054(0x133)+_0x5c22de+';\x20current\x20revision\x20is\x20'+_0x1afabc+_0x61054(0x12e));}export async function readFixedPolicy(_0x5a7550){const _0x517d45=a135_0x370889,_0x3f2a15=loadInstantApiPolicyLocalConfig(_0x5a7550[_0x517d45(0x128)]),_0xbb6192=await readInstantApiPolicyConfigFile(_0x3f2a15);return{'local':_0x3f2a15,'config':_0xbb6192};}export function projectCurrentPolicy(_0x4d4681){const _0x2c41d0=a135_0x370889;if(!_0x4d4681)return null;return{'id':_0x4d4681['id'],'appCode':_0x4d4681[_0x2c41d0(0x128)],'revision':_0x4d4681['revision'],'configHash':_0x4d4681[_0x2c41d0(0x14f)],'enabled':_0x4d4681[_0x2c41d0(0x13a)],'config':_0x4d4681['config'],'createUserId':_0x4d4681['createUserId']??null,'updateUserId':_0x4d4681['updateUserId']??null,'gmtCreate':_0x4d4681['gmtCreate']??null,'gmtModified':_0x4d4681['gmtModified']??null};}export function projectRevisionSummary(_0x33f32d){const _0x1bd173=a135_0x370889;return{'id':_0x33f32d['id'],'policyId':_0x33f32d[_0x1bd173(0x13f)],'appCode':_0x33f32d[_0x1bd173(0x128)],'revision':_0x33f32d[_0x1bd173(0x14c)],'configHash':_0x33f32d['configHash'],'changeType':_0x33f32d[_0x1bd173(0x138)],'changeSummary':_0x33f32d[_0x1bd173(0x157)]??null,'operatorId':_0x33f32d[_0x1bd173(0x13c)]??null,'gmtCreate':_0x33f32d[_0x1bd173(0x12b)]??null,'version':_0x33f32d['config']['version'],'defaultAction':_0x33f32d['config'][_0x1bd173(0x12f)][_0x1bd173(0x141)],'ruleCount':_0x33f32d[_0x1bd173(0x154)]['rules']?.[_0x1bd173(0x135)]??0x0};}export function projectRevisionDetail(_0x542ab3){const _0x4a6d91=a135_0x370889;return{...projectRevisionSummary(_0x542ab3),'config':_0x542ab3[_0x4a6d91(0x154)]};}function a135_0x151f(){const _0x25ed73=['instant_api_policy_force_confirmation_required','force','gmtCreate','/smartapi/instant-api-policy','--change-summary\x20cannot\x20exceed\x202000\x20characters.','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','defaults','NaN','9714735EelueX','string','Expected\x20revision\x20','isSafeInteger','length','number','42553gsZuDY','changeType','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','enabled','16850GzqkGD','operatorId','str','num','policyId','trim','instantApi','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','yes','instant_api_policy_revision_invalid','684160AcdqUX','2340342ZMJmKj','expected-revision','flag','1544vipFmu','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','revision','6238488VUjnaL','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','configHash','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','68rLYMle','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','config','bool','instant_api_policy_change_summary_invalid','changeSummary','instant_api_policy_revision_mismatch','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','change-summary','591380gQXVve','appCode'];a135_0x151f=function(){return _0x25ed73;};return a135_0x151f();}export function expectedRevisionWarnings(_0x3470e2){return _0x3470e2===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}
@@ -1 +1 @@
1
- const a136_0x48d659=a136_0x31c2;(function(_0x297695,_0x348192){const _0x40a261=a136_0x31c2,_0x1e98f9=_0x297695();while(!![]){try{const _0x439da3=parseInt(_0x40a261(0x193))/0x1+-parseInt(_0x40a261(0x188))/0x2+parseInt(_0x40a261(0x187))/0x3+-parseInt(_0x40a261(0x18c))/0x4+-parseInt(_0x40a261(0x190))/0x5+parseInt(_0x40a261(0x185))/0x6+parseInt(_0x40a261(0x18a))/0x7;if(_0x439da3===_0x348192)break;else _0x1e98f9['push'](_0x1e98f9['shift']());}catch(_0x5680c6){_0x1e98f9['push'](_0x1e98f9['shift']());}}}(a136_0x59f9,0x6a070));function a136_0x31c2(_0x4bce0d,_0x103027){_0x4bce0d=_0x4bce0d-0x183;const _0x59f955=a136_0x59f9();let _0x31c299=_0x59f955[_0x4bce0d];return _0x31c299;}import{validateInstantApiPolicy}from'../../core/api-client.js';function a136_0x59f9(){const _0x2b7143=['Validated\x20Instant\x20API\x20policy\x20for\x20','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','1191790PVrKrK','valid','POST','9098JTlRNA','/validate','policyFilePath','136446BaElBB','validate','1472421JzRVAj','821658EJIwUo','normalizedConfig','7075495QSYnAg','read','1799824dZpqnS','appCode'];a136_0x59f9=function(){return _0x2b7143;};return a136_0x59f9();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':a136_0x48d659(0x186),'description':a136_0x48d659(0x18f),'risk':a136_0x48d659(0x18b),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x4b009d){const _0x109300=a136_0x48d659,{local:_0x13f7c3,config:_0x4457c3}=await readFixedPolicy(_0x4b009d),_0xb13b4=await validateInstantApiPolicy({'appCode':_0x4b009d['appCode'],'config':_0x4457c3});return{'ok':!![],'data':{'operation':_0x109300(0x186),'selector':{'appCode':_0x4b009d[_0x109300(0x18d)]},'filePath':_0x13f7c3[_0x109300(0x184)],'relativePath':_0x13f7c3['policyRelativePath'],'valid':_0xb13b4[_0x109300(0x191)],'configHash':_0xb13b4['configHash'],'normalizedConfig':_0xb13b4[_0x109300(0x189)],'backend':{'method':_0x109300(0x192),'path':INSTANT_API_POLICY_BASE_PATH+_0x109300(0x183)}},'message':_0x109300(0x18e)+_0x4b009d[_0x109300(0x18d)]};}};
1
+ const a136_0x33e508=a136_0x5d1d;function a136_0x3e4e(){const _0x40799b=['policyFilePath','policyRelativePath','627663yeOwsc','POST','34mbYErT','10SBAgNY','read','instant-api-policy','740712XfgbBo','4856MJYCYh','9059nxCVRX','validate','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','1655148GgEXtw','261BdsIZT','2617706ZQiAjv','appCode','714170bgIkhR'];a136_0x3e4e=function(){return _0x40799b;};return a136_0x3e4e();}(function(_0x5e4d3a,_0x277eaf){const _0x341b29=a136_0x5d1d,_0x30d215=_0x5e4d3a();while(!![]){try{const _0x6af3d7=parseInt(_0x341b29(0xd4))/0x1*(parseInt(_0x341b29(0xe0))/0x2)+parseInt(_0x341b29(0xde))/0x3+parseInt(_0x341b29(0xd7))/0x4+parseInt(_0x341b29(0xe1))/0x5*(-parseInt(_0x341b29(0xe4))/0x6)+-parseInt(_0x341b29(0xd9))/0x7+parseInt(_0x341b29(0xd3))/0x8*(-parseInt(_0x341b29(0xd8))/0x9)+parseInt(_0x341b29(0xdb))/0xa;if(_0x6af3d7===_0x277eaf)break;else _0x30d215['push'](_0x30d215['shift']());}catch(_0xb3716e){_0x30d215['push'](_0x30d215['shift']());}}}(a136_0x3e4e,0x3342b));import{validateInstantApiPolicy}from'../../core/api-client.js';function a136_0x5d1d(_0xd7aa6f,_0x27c337){_0xd7aa6f=_0xd7aa6f-0xd3;const _0x3e4e1a=a136_0x3e4e();let _0x5d1def=_0x3e4e1a[_0xd7aa6f];return _0x5d1def;}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a136_0x33e508(0xe3),'command':'validate','description':a136_0x33e508(0xd6),'risk':a136_0x33e508(0xe2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2784d5){const _0x2aeff6=a136_0x33e508,{local:_0x1a646c,config:_0x429b39}=await readFixedPolicy(_0x2784d5),_0x523ae5=await validateInstantApiPolicy({'appCode':_0x2784d5['appCode'],'config':_0x429b39});return{'ok':!![],'data':{'operation':_0x2aeff6(0xd5),'selector':{'appCode':_0x2784d5[_0x2aeff6(0xda)]},'filePath':_0x1a646c[_0x2aeff6(0xdc)],'relativePath':_0x1a646c[_0x2aeff6(0xdd)],'valid':_0x523ae5['valid'],'configHash':_0x523ae5['configHash'],'normalizedConfig':_0x523ae5['normalizedConfig'],'backend':{'method':_0x2aeff6(0xdf),'path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':'Validated\x20Instant\x20API\x20policy\x20for\x20'+_0x2784d5[_0x2aeff6(0xda)]};}};
@@ -1 +1 @@
1
- function a137_0x5721(_0xf6392,_0x5b162b){_0xf6392=_0xf6392-0xba;const _0x3f4f18=a137_0x3f4f();let _0x5721f3=_0x3f4f18[_0xf6392];return _0x5721f3;}function a137_0x3f4f(){const _0x225c09=['113328bHyCUb','222260NiuVOh','233064ITYNNn','120lxuPzf','6726bNedFo','10082330UzuwnY','24TTOpux','4185685jdiEdi','1749072uTWjlP','16LtyBSN'];a137_0x3f4f=function(){return _0x225c09;};return a137_0x3f4f();}(function(_0x7b422,_0x52e623){const _0x5b417d=a137_0x5721,_0x3f4ba2=_0x7b422();while(!![]){try{const _0x56c3ea=parseInt(_0x5b417d(0xbf))/0x1*(parseInt(_0x5b417d(0xbe))/0x2)+parseInt(_0x5b417d(0xbd))/0x3+parseInt(_0x5b417d(0xc3))/0x4+parseInt(_0x5b417d(0xbc))/0x5*(-parseInt(_0x5b417d(0xc1))/0x6)+parseInt(_0x5b417d(0xc2))/0x7+parseInt(_0x5b417d(0xba))/0x8*(parseInt(_0x5b417d(0xbb))/0x9)+-parseInt(_0x5b417d(0xc0))/0xa;if(_0x56c3ea===_0x52e623)break;else _0x3f4ba2['push'](_0x3f4ba2['shift']());}catch(_0x2cbc4f){_0x3f4ba2['push'](_0x3f4ba2['shift']());}}}(a137_0x3f4f,0x56d1e));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a137_0x4b68(_0x34676c,_0x52cfaf){_0x34676c=_0x34676c-0x64;const _0x26bbff=a137_0x26bb();let _0x4b68e9=_0x26bbff[_0x34676c];return _0x4b68e9;}function a137_0x26bb(){const _0x32cb15=['8uKrmFx','7YWnHMh','11xVDOSl','130731eIyiVz','1918Ceodgr','14808vELmvF','1815370aGhDrM','26CWJUqi','302916ExhnZa','81ECLsNB','14iPeqAY','90245WihKgj','417630aHgAus'];a137_0x26bb=function(){return _0x32cb15;};return a137_0x26bb();}(function(_0x334e38,_0x3f696e){const _0xa6c2b3=a137_0x4b68,_0x433364=_0x334e38();while(!![]){try{const _0x2264a9=-parseInt(_0xa6c2b3(0x6d))/0x1*(parseInt(_0xa6c2b3(0x70))/0x2)+parseInt(_0xa6c2b3(0x6f))/0x3*(parseInt(_0xa6c2b3(0x6c))/0x4)+parseInt(_0xa6c2b3(0x6a))/0x5+parseInt(_0xa6c2b3(0x6b))/0x6*(-parseInt(_0xa6c2b3(0x69))/0x7)+-parseInt(_0xa6c2b3(0x64))/0x8*(-parseInt(_0xa6c2b3(0x68))/0x9)+parseInt(_0xa6c2b3(0x65))/0xa*(parseInt(_0xa6c2b3(0x6e))/0xb)+-parseInt(_0xa6c2b3(0x67))/0xc*(parseInt(_0xa6c2b3(0x66))/0xd);if(_0x2264a9===_0x3f696e)break;else _0x433364['push'](_0x433364['shift']());}catch(_0x92f4da){_0x433364['push'](_0x433364['shift']());}}}(a137_0x26bb,0x1a1ee));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a138_0x574266=a138_0x27a3;(function(_0x42d574,_0x29a433){const _0x129ba9=a138_0x27a3,_0x31f2ac=_0x42d574();while(!![]){try{const _0x110323=parseInt(_0x129ba9(0x1df))/0x1*(-parseInt(_0x129ba9(0x1f7))/0x2)+-parseInt(_0x129ba9(0x1fb))/0x3*(-parseInt(_0x129ba9(0x1f9))/0x4)+-parseInt(_0x129ba9(0x1e1))/0x5*(parseInt(_0x129ba9(0x1de))/0x6)+parseInt(_0x129ba9(0x1ec))/0x7+parseInt(_0x129ba9(0x1f1))/0x8+-parseInt(_0x129ba9(0x1f4))/0x9*(parseInt(_0x129ba9(0x1e0))/0xa)+-parseInt(_0x129ba9(0x1dc))/0xb;if(_0x110323===_0x29a433)break;else _0x31f2ac['push'](_0x31f2ac['shift']());}catch(_0x38f922){_0x31f2ac['push'](_0x31f2ac['shift']());}}}(a138_0x225f,0x7db9f));import{CliError}from'../../errors.js';function a138_0x27a3(_0x3cad56,_0x490238){_0x3cad56=_0x3cad56-0x1d9;const _0x225fbb=a138_0x225f();let _0x27a3cb=_0x225fbb[_0x3cad56];return _0x27a3cb;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a138_0x574266(0x1e9),a138_0x574266(0x1e7),'not_in_project',a138_0x574266(0x1e3),'flag_missing',a138_0x574266(0x1e6),'network_error']),defaultWriter=_0x970764=>{const _0x16c22d=a138_0x574266;process[_0x16c22d(0x1e5)][_0x16c22d(0x1ee)](_0x970764);};export function shouldNudgeForError(_0x15d454,_0x4184ce){const _0x154619=a138_0x574266;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4184ce[_0x154619(0x1e2)]===_0x154619(0x1eb)&&_0x4184ce[_0x154619(0x1dd)]==='report')return![];if(_0x15d454 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x154619(0x1f2)](_0x15d454[_0x154619(0x1e4)]);return!![];}function a138_0x225f(){const _0x595d0f=['989650rnAGVG','2229455apvBHL','service','unknown_command','code','stderr','validation_error','config_missing','slice','auth_required','length','issue','3659971tCDtIr','join','write','\x20bug?\x20Help\x20us\x20fix\x20it:','=1\x20to\x20silence\x20this\x20hint.','7938368uQXpEz','has','\x20\x20\x20\x20--title\x20\x22','9EdgWuX','Hit\x20a\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','257714jFrVnJ','replace','10576fenBTx','\x20issue\x20report\x20\x5c','744PefBbx','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x22\x20\x5c','3064248agEKwt','command','12HNISHo','3JyCgoq'];a138_0x225f=function(){return _0x595d0f;};return a138_0x225f();}export function printIssueReportNudgeForError(_0x384d19,_0x3a2a31,_0x55e498=defaultWriter){if(!shouldNudgeForError(_0x384d19,_0x3a2a31))return;const _0x5c1918=buildSuggestedTitle(_0x384d19,_0x3a2a31);_0x55e498(formatNudge(_0x5c1918));}function buildSuggestedTitle(_0x3266e0,_0xe33c17){const _0x284cf9=a138_0x574266,_0x8a9243=_0x3266e0 instanceof Error?_0x3266e0['message']:String(_0x3266e0),_0x4572b4=_0x8a9243[_0x284cf9(0x1f8)](/[\r\n]+/g,'\x20')[_0x284cf9(0x1f8)](/\s+/g,'\x20')[_0x284cf9(0x1d9)]()[_0x284cf9(0x1e8)](0x0,0x78)[_0x284cf9(0x1f8)](/"/g,'\x5c\x22'),_0x488925=CLI_BIN_NAME+'\x20'+_0xe33c17[_0x284cf9(0x1e2)]+'\x20'+_0xe33c17[_0x284cf9(0x1dd)];return _0x4572b4[_0x284cf9(0x1ea)]>0x0?_0x488925+':\x20'+_0x4572b4:_0x488925;}function formatNudge(_0x472dff){const _0x380d0a=a138_0x574266;return['',_0x380d0a(0x1f5)+CLI_BIN_NAME+_0x380d0a(0x1ef),'\x20\x20'+CLI_BIN_NAME+_0x380d0a(0x1fa),_0x380d0a(0x1f3)+_0x472dff+_0x380d0a(0x1db),_0x380d0a(0x1da),_0x380d0a(0x1f6),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x380d0a(0x1f0),''][_0x380d0a(0x1ed)]('\x0a');}
1
+ const a138_0x1ea9aa=a138_0x3cb6;(function(_0x3ea96e,_0x2e0d1b){const _0x21855d=a138_0x3cb6,_0x1a78e7=_0x3ea96e();while(!![]){try{const _0x2d90b4=-parseInt(_0x21855d(0x214))/0x1*(parseInt(_0x21855d(0x200))/0x2)+-parseInt(_0x21855d(0x1f2))/0x3*(parseInt(_0x21855d(0x1ff))/0x4)+parseInt(_0x21855d(0x20f))/0x5*(parseInt(_0x21855d(0x20d))/0x6)+-parseInt(_0x21855d(0x1f7))/0x7*(-parseInt(_0x21855d(0x1f6))/0x8)+parseInt(_0x21855d(0x1fa))/0x9*(-parseInt(_0x21855d(0x1f3))/0xa)+parseInt(_0x21855d(0x208))/0xb*(-parseInt(_0x21855d(0x213))/0xc)+parseInt(_0x21855d(0x203))/0xd;if(_0x2d90b4===_0x2e0d1b)break;else _0x1a78e7['push'](_0x1a78e7['shift']());}catch(_0x13f96a){_0x1a78e7['push'](_0x1a78e7['shift']());}}}(a138_0x23d2,0x2c2d3));function a138_0x3cb6(_0x5a74f0,_0x18735a){_0x5a74f0=_0x5a74f0-0x1f2;const _0x23d2f4=a138_0x23d2();let _0x3cb633=_0x23d2f4[_0x5a74f0];return _0x3cb633;}import{CliError}from'../../errors.js';function a138_0x23d2(){const _0x37dce6=['10YbnEyp','trim','auth_required','164752PdMzlo','98HOLJIY','config_missing','\x20\x20\x20\x20--title\x20\x22','2341530ceDOLu','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','join','command','cancelled','16kuzWMC','6ZbMkyZ','unknown_command','length','1915732rbSfjd','replace','report','=1\x20to\x20silence\x20this\x20hint.','\x20\x20Set\x20','33nBctPO','network_error','RABETBASE_DISABLE_ISSUE_NUDGE','service','\x22\x20\x5c','1060062GzecXh','slice','5ueAase','issue','code','\x20bug?\x20Help\x20us\x20fix\x20it:','480036AhhfNk','4913UbDUFs','stderr','write','flag_missing','Hit\x20a\x20','not_in_project','27369PihIRD'];a138_0x23d2=function(){return _0x37dce6;};return a138_0x23d2();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a138_0x1ea9aa(0x20a);const NUDGE_SUPPRESSED_CODES=new Set([a138_0x1ea9aa(0x1fe),a138_0x1ea9aa(0x1f5),a138_0x1ea9aa(0x1f8),a138_0x1ea9aa(0x219),a138_0x1ea9aa(0x201),a138_0x1ea9aa(0x217),'validation_error',a138_0x1ea9aa(0x209)]),defaultWriter=_0x15f467=>{const _0x5d568f=a138_0x1ea9aa;process[_0x5d568f(0x215)][_0x5d568f(0x216)](_0x15f467);};export function shouldNudgeForError(_0x42c922,_0x2b402f){const _0x25f9fa=a138_0x1ea9aa;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2b402f[_0x25f9fa(0x20b)]===_0x25f9fa(0x210)&&_0x2b402f[_0x25f9fa(0x1fd)]===_0x25f9fa(0x205))return![];if(_0x42c922 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x42c922[_0x25f9fa(0x211)]);return!![];}export function printIssueReportNudgeForError(_0x489de8,_0xa2b52b,_0x4be5b1=defaultWriter){if(!shouldNudgeForError(_0x489de8,_0xa2b52b))return;const _0x2edfec=buildSuggestedTitle(_0x489de8,_0xa2b52b);_0x4be5b1(formatNudge(_0x2edfec));}function buildSuggestedTitle(_0x4cb12f,_0x3cf253){const _0x2fbac8=a138_0x1ea9aa,_0x2bfe8c=_0x4cb12f instanceof Error?_0x4cb12f['message']:String(_0x4cb12f),_0x348cfa=_0x2bfe8c['replace'](/[\r\n]+/g,'\x20')[_0x2fbac8(0x204)](/\s+/g,'\x20')[_0x2fbac8(0x1f4)]()[_0x2fbac8(0x20e)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x11d667=CLI_BIN_NAME+'\x20'+_0x3cf253[_0x2fbac8(0x20b)]+'\x20'+_0x3cf253['command'];return _0x348cfa[_0x2fbac8(0x202)]>0x0?_0x11d667+':\x20'+_0x348cfa:_0x11d667;}function formatNudge(_0x4922a8){const _0x310b5b=a138_0x1ea9aa;return['',_0x310b5b(0x218)+CLI_BIN_NAME+_0x310b5b(0x212),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x310b5b(0x1f9)+_0x4922a8+_0x310b5b(0x20c),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x310b5b(0x1fb),_0x310b5b(0x207)+NUDGE_OPT_OUT_ENV+_0x310b5b(0x206),''][_0x310b5b(0x1fc)]('\x0a');}
@@ -1 +1 @@
1
- const a139_0x2f28aa=a139_0x8d69;function a139_0x8d69(_0x44db8d,_0x3374e6){_0x44db8d=_0x44db8d-0x176;const _0x1ce565=a139_0x1ce5();let _0x8d6950=_0x1ce565[_0x44db8d];return _0x8d6950;}(function(_0x5ac229,_0x2d7537){const _0x501615=a139_0x8d69,_0x96f62d=_0x5ac229();while(!![]){try{const _0x23ef81=-parseInt(_0x501615(0x183))/0x1*(parseInt(_0x501615(0x17c))/0x2)+-parseInt(_0x501615(0x1a2))/0x3+parseInt(_0x501615(0x1ae))/0x4*(parseInt(_0x501615(0x1b5))/0x5)+parseInt(_0x501615(0x19f))/0x6*(-parseInt(_0x501615(0x17b))/0x7)+-parseInt(_0x501615(0x1ac))/0x8+-parseInt(_0x501615(0x1b2))/0x9*(parseInt(_0x501615(0x1a4))/0xa)+parseInt(_0x501615(0x187))/0xb;if(_0x23ef81===_0x2d7537)break;else _0x96f62d['push'](_0x96f62d['shift']());}catch(_0x5cae94){_0x96f62d['push'](_0x96f62d['shift']());}}}(a139_0x1ce5,0xa11b8));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a139_0x2f28aa(0x184);function a139_0x1ce5(){const _0x495009=['One-line\x20issue\x20summary','issue.description','1uQlaQQ','description-file','otel://','message','36079065mtHrbr','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redacted\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated\x20from\x20','File\x20not\x20found:\x20','Issue\x20description\x20file\x20is\x20empty:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Failed\x20to\x20report\x20platform\x20issue:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','trim','filter','descriptionFile:\x20','str','file','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','\x20secret(s):\x20','validation','descriptionFilePath','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated','length','description','descriptionSource','74142gDmlIc','issue.description_truncated','truncated:\x20original\x20','1136772BEvAaI','issue.description_redaction_kinds','20RdMXJx','title','descriptionSource:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','issue.title','utf8','\x20bytes','string','9788648snbIvB','Platform\x20issue\x20reported\x20(','1720764vpzvmz','originalBytes','redactionKinds','compress','1902582KMNsWt','join','write','5PwUdPp','sanitize','redactionCount','push','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Platform\x20issue\x20reported','469DIKHzG','393980bDWoey','cwd','flagMissing','inline','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.'];a139_0x1ce5=function(){return _0x495009;};return a139_0x1ce5();}export const issueReport={'service':'issue','command':'report','description':a139_0x2f28aa(0x18e),'risk':a139_0x2f28aa(0x1b4),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a139_0x2f28aa(0x1b1),'flags':[{'name':a139_0x2f28aa(0x1a5),'type':a139_0x2f28aa(0x1ab),'required':!![],'description':a139_0x2f28aa(0x181)},{'name':'description','type':'string','description':a139_0x2f28aa(0x19a)},{'name':DESCRIPTION_FILE_FLAG,'type':a139_0x2f28aa(0x1ab),'description':a139_0x2f28aa(0x1a7)}],async 'validate'(_0x5bffd3){const _0xff7d40=a139_0x2f28aa,_0x41d219=_0x5bffd3[_0xff7d40(0x194)](_0xff7d40(0x1a5))[_0xff7d40(0x191)](),_0x77c713=_0x5bffd3[_0xff7d40(0x194)](_0xff7d40(0x19d))['trim'](),_0x3b9e75=_0x5bffd3[_0xff7d40(0x194)](DESCRIPTION_FILE_FLAG)[_0xff7d40(0x191)]();if(!_0x41d219)throw CliErrors[_0xff7d40(0x17e)](_0xff7d40(0x1a5),_0xff7d40(0x196));const _0x2ad572=_0x77c713[_0xff7d40(0x19c)]>0x0,_0x1f1201=_0x3b9e75[_0xff7d40(0x19c)]>0x0;if(_0x2ad572===_0x1f1201)throw CliErrors[_0xff7d40(0x198)](_0xff7d40(0x180),_0xff7d40(0x179));if(_0x1f1201){const _0x92c87=resolve(process[_0xff7d40(0x17d)](),_0x3b9e75);if(!existsSync(_0x92c87))throw CliErrors[_0xff7d40(0x198)](_0xff7d40(0x18c)+_0x92c87);}},async 'dryRun'(_0x199f76){const _0x3e0699=a139_0x2f28aa,_0x197d95=await prepareIssueReport(_0x199f76);return{'method':'POST','url':_0x3e0699(0x185)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x197d95['title'],'issue.description':_0x197d95['description'],'issue.description_original_bytes':_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x1af)],'issue.description_truncated':_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x19b)],'issue.description_redactions':_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x177)],'issue.description_redaction_kinds':_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x1b0)][_0x3e0699(0x1b3)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x3e0699(0x1a6)+_0x197d95[_0x3e0699(0x19e)],_0x197d95['descriptionFilePath']?_0x3e0699(0x193)+_0x197d95[_0x3e0699(0x199)]:null,_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x19b)]?_0x3e0699(0x1a1)+_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x1af)]+_0x3e0699(0x1aa):null,_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x177)]>0x0?'redactions:\x20'+_0x197d95['sanitize'][_0x3e0699(0x177)]+'\x20('+_0x197d95[_0x3e0699(0x176)][_0x3e0699(0x1b0)][_0x3e0699(0x1b3)](',\x20')+')':null][_0x3e0699(0x192)](Boolean)['join']('\x0a')};},async 'execute'(_0x2dd67b){const _0x4cb93f=a139_0x2f28aa,_0x54016f=await prepareIssueReport(_0x2dd67b);try{await sendPlatformIssueCollectLog({'title':_0x54016f[_0x4cb93f(0x1a5)],'description':_0x54016f[_0x4cb93f(0x19d)],'sanitize':{'originalBytes':_0x54016f[_0x4cb93f(0x176)][_0x4cb93f(0x1af)],'truncated':_0x54016f[_0x4cb93f(0x176)][_0x4cb93f(0x19b)],'redactionCount':_0x54016f[_0x4cb93f(0x176)]['redactionCount'],'redactionKinds':_0x54016f[_0x4cb93f(0x176)][_0x4cb93f(0x1b0)]}});}catch(_0x1665e2){throw CliErrors['apiError'](_0x4cb93f(0x18f)+(_0x1665e2 instanceof Error?_0x1665e2[_0x4cb93f(0x186)]:String(_0x1665e2)),_0x4cb93f(0x18a));}return{'ok':!![],'message':buildResultMessage(_0x54016f['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x4cb93f(0x1a8),_0x4cb93f(0x182),'issue.description_original_bytes',_0x4cb93f(0x1a0),'issue.description_redactions',_0x4cb93f(0x1a3)],'issue':{'title':_0x54016f[_0x4cb93f(0x1a5)],'descriptionLength':_0x54016f['description'][_0x4cb93f(0x19c)],'descriptionSource':_0x54016f[_0x4cb93f(0x19e)],..._0x54016f[_0x4cb93f(0x199)]?{'descriptionFile':_0x54016f['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x54016f['sanitize'][_0x4cb93f(0x1af)],'truncated':_0x54016f['sanitize'][_0x4cb93f(0x19b)],'redactions':_0x54016f[_0x4cb93f(0x176)][_0x4cb93f(0x177)],'redactionKinds':_0x54016f[_0x4cb93f(0x176)][_0x4cb93f(0x1b0)]}}}};}};function buildResultMessage(_0x4c9c73){const _0x44abe8=a139_0x2f28aa,_0xd12658=[];return _0x4c9c73[_0x44abe8(0x19b)]&&_0xd12658[_0x44abe8(0x178)](_0x44abe8(0x18b)+_0x4c9c73[_0x44abe8(0x1af)]+_0x44abe8(0x1aa)),_0x4c9c73[_0x44abe8(0x177)]>0x0&&_0xd12658[_0x44abe8(0x178)](_0x44abe8(0x189)+_0x4c9c73[_0x44abe8(0x177)]+_0x44abe8(0x197)+_0x4c9c73['redactionKinds'][_0x44abe8(0x1b3)](',\x20')),_0xd12658[_0x44abe8(0x19c)]===0x0?_0x44abe8(0x17a):_0x44abe8(0x1ad)+_0xd12658[_0x44abe8(0x1b3)](';\x20')+')';}async function prepareIssueReport(_0x1263c4){const _0x4d3b02=a139_0x2f28aa,_0x12ac69=_0x1263c4[_0x4d3b02(0x194)](_0x4d3b02(0x1a5))['trim'](),_0x4625fe=_0x1263c4[_0x4d3b02(0x194)](_0x4d3b02(0x19d)),_0x5ea9b8=_0x1263c4[_0x4d3b02(0x194)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5ea9b8){const _0x3dcc8e=_0x4625fe;if(!_0x3dcc8e[_0x4d3b02(0x191)]())throw CliErrors[_0x4d3b02(0x198)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x4d3b02(0x188));const _0x10ac20=sanitizeIssueDescription(_0x3dcc8e);return{'title':_0x12ac69,'description':_0x10ac20[_0x4d3b02(0x19d)],'descriptionSource':_0x4d3b02(0x17f),'sanitize':_0x10ac20};}const _0xab335b=resolve(process[_0x4d3b02(0x17d)](),_0x5ea9b8),_0x7baf7c=await readFile(_0xab335b,_0x4d3b02(0x1a9));if(!_0x7baf7c['trim']())throw CliErrors['validation'](_0x4d3b02(0x18d)+_0xab335b,_0x4d3b02(0x190));const _0xe06734=sanitizeIssueDescription(_0x7baf7c);return{'title':_0x12ac69,'description':_0xe06734[_0x4d3b02(0x19d)],'descriptionSource':_0x4d3b02(0x195),'descriptionFilePath':_0xab335b,'sanitize':_0xe06734};}
1
+ const a139_0xd1105e=a139_0x4f2c;(function(_0x170e0b,_0x423b35){const _0x441520=a139_0x4f2c,_0x4e8def=_0x170e0b();while(!![]){try{const _0x4677c5=-parseInt(_0x441520(0x1eb))/0x1+parseInt(_0x441520(0x1f0))/0x2*(parseInt(_0x441520(0x1f6))/0x3)+parseInt(_0x441520(0x20c))/0x4*(-parseInt(_0x441520(0x20a))/0x5)+parseInt(_0x441520(0x20e))/0x6+-parseInt(_0x441520(0x1fe))/0x7*(-parseInt(_0x441520(0x212))/0x8)+parseInt(_0x441520(0x1ee))/0x9*(-parseInt(_0x441520(0x203))/0xa)+parseInt(_0x441520(0x1fa))/0xb*(parseInt(_0x441520(0x1e9))/0xc);if(_0x4677c5===_0x423b35)break;else _0x4e8def['push'](_0x4e8def['shift']());}catch(_0x24d368){_0x4e8def['push'](_0x4e8def['shift']());}}}(a139_0x2eee,0xea417));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a139_0x2eee(){const _0x17f3b2=['Issue\x20description\x20cannot\x20be\x20empty.','length','\x20bytes','join','10kYWZKl','Issue\x20description\x20file\x20is\x20empty:\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','compress','issue.description_redactions','\x20secret(s):\x20','descriptionSource:\x20','5haQVbp','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','5245168IcYlVX','validation','8920680rURmud','write','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','title','1592gDbBfq','flagMissing','descriptionFilePath','description-file','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','redactionKinds','issue.description_original_bytes','truncated\x20from\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated:\x20original\x20','POST','description','descriptionSource','cwd','originalBytes','file','redactionCount','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','issue.description','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated','21132OzEtnu','string','1302424XZrYPN','message','trim','12258882utiKEY','issue.title','44786CCbszW','push','sanitize','filter','str','apiError','210SDxTxo','utf8','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','187lLGpYP','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Platform\x20issue\x20reported\x20(','One-line\x20issue\x20summary','65114mbrcbq'];a139_0x2eee=function(){return _0x17f3b2;};return a139_0x2eee();}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a139_0x4f2c(_0x2d033f,_0x502aa2){_0x2d033f=_0x2d033f-0x1dc;const _0x2eee93=a139_0x2eee();let _0x4f2ccc=_0x2eee93[_0x2d033f];return _0x4f2ccc;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a139_0xd1105e(0x215);export const issueReport={'service':'issue','command':'report','description':a139_0xd1105e(0x1e7),'risk':a139_0xd1105e(0x20f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a139_0xd1105e(0x206),'flags':[{'name':'title','type':a139_0xd1105e(0x1ea),'required':!![],'description':a139_0xd1105e(0x1fd)},{'name':a139_0xd1105e(0x1df),'type':'string','description':a139_0xd1105e(0x1fb)},{'name':DESCRIPTION_FILE_FLAG,'type':a139_0xd1105e(0x1ea),'description':a139_0xd1105e(0x210)}],async 'validate'(_0x2ac51c){const _0x8c17f1=a139_0xd1105e,_0x1dcdc5=_0x2ac51c[_0x8c17f1(0x1f4)](_0x8c17f1(0x211))[_0x8c17f1(0x1ed)](),_0x2105a0=_0x2ac51c[_0x8c17f1(0x1f4)](_0x8c17f1(0x1df))[_0x8c17f1(0x1ed)](),_0x46f867=_0x2ac51c['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1dcdc5)throw CliErrors[_0x8c17f1(0x213)](_0x8c17f1(0x211),_0x8c17f1(0x1f9));const _0x5d292a=_0x2105a0[_0x8c17f1(0x200)]>0x0,_0x2655fb=_0x46f867['length']>0x0;if(_0x5d292a===_0x2655fb)throw CliErrors[_0x8c17f1(0x20d)](_0x8c17f1(0x1f8),_0x8c17f1(0x216));if(_0x2655fb){const _0x40e0c9=resolve(process[_0x8c17f1(0x1e1)](),_0x46f867);if(!existsSync(_0x40e0c9))throw CliErrors[_0x8c17f1(0x20d)]('File\x20not\x20found:\x20'+_0x40e0c9);}},async 'dryRun'(_0x161bb6){const _0x26839a=a139_0xd1105e,_0x228a7a=await prepareIssueReport(_0x161bb6);return{'method':_0x26839a(0x1de),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x228a7a[_0x26839a(0x211)],'issue.description':_0x228a7a[_0x26839a(0x1df)],'issue.description_original_bytes':_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x1e2)],'issue.description_truncated':_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x1e8)],'issue.description_redactions':_0x228a7a['sanitize'][_0x26839a(0x1e4)],'issue.description_redaction_kinds':_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x217)][_0x26839a(0x202)](',')}},'description':[_0x26839a(0x205),_0x26839a(0x209)+_0x228a7a[_0x26839a(0x1e0)],_0x228a7a['descriptionFilePath']?'descriptionFile:\x20'+_0x228a7a['descriptionFilePath']:null,_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x1e8)]?_0x26839a(0x1dd)+_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x1e2)]+'\x20bytes':null,_0x228a7a['sanitize'][_0x26839a(0x1e4)]>0x0?'redactions:\x20'+_0x228a7a[_0x26839a(0x1f2)][_0x26839a(0x1e4)]+'\x20('+_0x228a7a[_0x26839a(0x1f2)]['redactionKinds'][_0x26839a(0x202)](',\x20')+')':null][_0x26839a(0x1f3)](Boolean)[_0x26839a(0x202)]('\x0a')};},async 'execute'(_0x59aa27){const _0x5cb265=a139_0xd1105e,_0x464955=await prepareIssueReport(_0x59aa27);try{await sendPlatformIssueCollectLog({'title':_0x464955['title'],'description':_0x464955[_0x5cb265(0x1df)],'sanitize':{'originalBytes':_0x464955[_0x5cb265(0x1f2)][_0x5cb265(0x1e2)],'truncated':_0x464955['sanitize']['truncated'],'redactionCount':_0x464955[_0x5cb265(0x1f2)][_0x5cb265(0x1e4)],'redactionKinds':_0x464955['sanitize'][_0x5cb265(0x217)]}});}catch(_0x40c933){throw CliErrors[_0x5cb265(0x1f5)](_0x5cb265(0x21a)+(_0x40c933 instanceof Error?_0x40c933[_0x5cb265(0x1ec)]:String(_0x40c933)),_0x5cb265(0x1dc));}return{'ok':!![],'message':buildResultMessage(_0x464955[_0x5cb265(0x1f2)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x5cb265(0x1ef),_0x5cb265(0x1e6),_0x5cb265(0x218),'issue.description_truncated',_0x5cb265(0x207),'issue.description_redaction_kinds'],'issue':{'title':_0x464955[_0x5cb265(0x211)],'descriptionLength':_0x464955['description'][_0x5cb265(0x200)],'descriptionSource':_0x464955[_0x5cb265(0x1e0)],..._0x464955[_0x5cb265(0x214)]?{'descriptionFile':_0x464955[_0x5cb265(0x214)]}:{},'sanitize':{'originalBytes':_0x464955['sanitize'][_0x5cb265(0x1e2)],'truncated':_0x464955[_0x5cb265(0x1f2)][_0x5cb265(0x1e8)],'redactions':_0x464955[_0x5cb265(0x1f2)]['redactionCount'],'redactionKinds':_0x464955['sanitize']['redactionKinds']}}}};}};function buildResultMessage(_0x39342f){const _0x2f8fa0=a139_0xd1105e,_0x1e9a3f=[];return _0x39342f[_0x2f8fa0(0x1e8)]&&_0x1e9a3f[_0x2f8fa0(0x1f1)](_0x2f8fa0(0x219)+_0x39342f['originalBytes']+_0x2f8fa0(0x201)),_0x39342f[_0x2f8fa0(0x1e4)]>0x0&&_0x1e9a3f[_0x2f8fa0(0x1f1)]('redacted\x20'+_0x39342f[_0x2f8fa0(0x1e4)]+_0x2f8fa0(0x208)+_0x39342f['redactionKinds']['join'](',\x20')),_0x1e9a3f[_0x2f8fa0(0x200)]===0x0?'Platform\x20issue\x20reported':_0x2f8fa0(0x1fc)+_0x1e9a3f[_0x2f8fa0(0x202)](';\x20')+')';}async function prepareIssueReport(_0x29b39b){const _0x353319=a139_0xd1105e,_0x4e6fcc=_0x29b39b[_0x353319(0x1f4)]('title')[_0x353319(0x1ed)](),_0x6ce8fe=_0x29b39b[_0x353319(0x1f4)]('description'),_0x2b07ff=_0x29b39b[_0x353319(0x1f4)](DESCRIPTION_FILE_FLAG)[_0x353319(0x1ed)]();if(!_0x2b07ff){const _0x3b9a76=_0x6ce8fe;if(!_0x3b9a76[_0x353319(0x1ed)]())throw CliErrors['validation'](_0x353319(0x1ff),_0x353319(0x1e5));const _0x281b09=sanitizeIssueDescription(_0x3b9a76);return{'title':_0x4e6fcc,'description':_0x281b09[_0x353319(0x1df)],'descriptionSource':'inline','sanitize':_0x281b09};}const _0x5dd86d=resolve(process[_0x353319(0x1e1)](),_0x2b07ff),_0x26f067=await readFile(_0x5dd86d,_0x353319(0x1f7));if(!_0x26f067[_0x353319(0x1ed)]())throw CliErrors[_0x353319(0x20d)](_0x353319(0x204)+_0x5dd86d,_0x353319(0x20b));const _0x44eaf0=sanitizeIssueDescription(_0x26f067);return{'title':_0x4e6fcc,'description':_0x44eaf0[_0x353319(0x1df)],'descriptionSource':_0x353319(0x1e3),'descriptionFilePath':_0x5dd86d,'sanitize':_0x44eaf0};}