@lovrabet/rabetbase-cli 2.5.7 → 2.5.8-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) 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/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a138_0x3fff77=a138_0x186c;(function(_0x17a058,_0x5c6d43){const _0x3597f2=a138_0x186c,_0x5b6c3a=_0x17a058();while(!![]){try{const _0x56a21f=parseInt(_0x3597f2(0x10b))/0x1*(parseInt(_0x3597f2(0x117))/0x2)+-parseInt(_0x3597f2(0x11d))/0x3*(-parseInt(_0x3597f2(0x116))/0x4)+parseInt(_0x3597f2(0x115))/0x5*(-parseInt(_0x3597f2(0x108))/0x6)+parseInt(_0x3597f2(0x112))/0x7*(-parseInt(_0x3597f2(0x114))/0x8)+parseInt(_0x3597f2(0x10e))/0x9+-parseInt(_0x3597f2(0x119))/0xa+parseInt(_0x3597f2(0x102))/0xb;if(_0x56a21f===_0x5c6d43)break;else _0x5b6c3a['push'](_0x5b6c3a['shift']());}catch(_0x1f7a23){_0x5b6c3a['push'](_0x5b6c3a['shift']());}}}(a138_0xa571,0xbf552));function a138_0x186c(_0x2b47e8,_0x37bc98){_0x2b47e8=_0x2b47e8-0x102;const _0xa571d5=a138_0xa571();let _0x186c77=_0xa571d5[_0x2b47e8];return _0x186c77;}import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';function a138_0xa571(){const _0x5be609=['warnings','12930930lcgTgQ','FlowConfig\x20is\x20valid.','FlowConfig\x20validation\x20failed.','read','62601MKCDfG','Unable\x20to\x20read\x20FlowConfig:\x20','22279928JceHDs','flow','boolean','write-normalized','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','Pass\x20--file\x20<path>.','24LROdJs','string','normalized','2ziyOlR','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','valid','13218435DgNwXY','message','validation','file','859509brSsTG','trim','24tNRFgT','1855485mpAZAC','36ZOCFCu','247574dtSFkq'];a138_0xa571=function(){return _0x5be609;};return a138_0xa571();}export const flowValidate={'service':a138_0x3fff77(0x103),'command':'validate','description':a138_0x3fff77(0x106),'risk':a138_0x3fff77(0x11c),'auth':'none','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a138_0x3fff77(0x111),'type':a138_0x3fff77(0x109),'required':!![],'description':a138_0x3fff77(0x10c)},{'name':'write-normalized','type':a138_0x3fff77(0x104),'description':'Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form'}],async 'execute'(_0x2f5663){const _0x398838=a138_0x3fff77,_0x433756=_0x2f5663['str'](_0x398838(0x111))[_0x398838(0x113)]();if(!_0x433756)throw CliErrors['flagMissing'](_0x398838(0x111),_0x398838(0x107));let _0x1793ca;try{_0x1793ca=await readFlowConfigFile(_0x433756);}catch(_0x509028){const _0x5e589f=_0x509028 instanceof Error?_0x509028[_0x398838(0x10f)]:String(_0x509028);throw CliErrors[_0x398838(0x110)](_0x398838(0x11e)+_0x5e589f);}const _0x1deaf4=validateFlowConfig(_0x1793ca),_0x3dddac=_0x2f5663['bool'](_0x398838(0x105));let _0x85253d=![];return _0x3dddac&&_0x1deaf4['valid']&&(await writeNormalizedFlowConfig(_0x433756,_0x1deaf4[_0x398838(0x10a)]),_0x85253d=!![]),{'ok':_0x1deaf4[_0x398838(0x10d)],'data':{'valid':_0x1deaf4[_0x398838(0x10d)],'errors':_0x1deaf4['errors'],'warnings':_0x1deaf4[_0x398838(0x118)],'normalized':_0x1deaf4[_0x398838(0x10a)],..._0x3dddac?{'written':_0x85253d}:{}},'message':_0x1deaf4[_0x398838(0x10d)]?_0x85253d?'FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.':_0x398838(0x11a):_0x398838(0x11b)};}};
1
+ const a138_0x93ca13=a138_0x46c2;(function(_0x3a819,_0x424ff6){const _0x25f311=a138_0x46c2,_0x1da2eb=_0x3a819();while(!![]){try{const _0x79d214=parseInt(_0x25f311(0x18f))/0x1*(-parseInt(_0x25f311(0x1a6))/0x2)+parseInt(_0x25f311(0x18c))/0x3*(-parseInt(_0x25f311(0x1a2))/0x4)+-parseInt(_0x25f311(0x192))/0x5+-parseInt(_0x25f311(0x1aa))/0x6*(parseInt(_0x25f311(0x1a4))/0x7)+parseInt(_0x25f311(0x1a0))/0x8+-parseInt(_0x25f311(0x1a8))/0x9*(parseInt(_0x25f311(0x189))/0xa)+-parseInt(_0x25f311(0x198))/0xb*(-parseInt(_0x25f311(0x18b))/0xc);if(_0x79d214===_0x424ff6)break;else _0x1da2eb['push'](_0x1da2eb['shift']());}catch(_0x56976c){_0x1da2eb['push'](_0x1da2eb['shift']());}}}(a138_0x4e96,0x45295));function a138_0x4e96(){const _0x406e19=['Pass\x20--file\x20<path>.','file','2466170RmCZqk','Atomically\x20replace\x20the\x20file\x20with\x20its\x20normalized\x20form','valid','errors','read','Path\x20to\x20the\x20local\x20FlowConfig\x20JSON\x20file','176VeNbMA','write-normalized','FlowConfig\x20is\x20valid\x20and\x20was\x20normalized\x20in\x20place.','normalized','FlowConfig\x20validation\x20failed.','boolean','trim','flow','3198392YiOzan','str','1610804DNEiTN','validate','14FQAEGv','Validate\x20and\x20normalize\x20a\x20local\x20flow\x20configuration','26CIXiNd','validation','299799iUDLZO','bool','272412dDkcIz','Unable\x20to\x20read\x20FlowConfig:\x20','140DrUhzd','message','1401180UYGhTo','3sgUpmr','string','warnings','40897ahEnNk'];a138_0x4e96=function(){return _0x406e19;};return a138_0x4e96();}function a138_0x46c2(_0x54925b,_0x252606){_0x54925b=_0x54925b-0x189;const _0x4e96fe=a138_0x4e96();let _0x46c213=_0x4e96fe[_0x54925b];return _0x46c213;}import{CliErrors}from'../../errors.js';import{readFlowConfigFile,validateFlowConfig,writeNormalizedFlowConfig}from'../../core/flow-config.js';export const flowValidate={'service':a138_0x93ca13(0x19f),'command':a138_0x93ca13(0x1a3),'description':a138_0x93ca13(0x1a5),'risk':a138_0x93ca13(0x196),'auth':'none','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a138_0x93ca13(0x191),'type':a138_0x93ca13(0x18d),'required':!![],'description':a138_0x93ca13(0x197)},{'name':a138_0x93ca13(0x199),'type':a138_0x93ca13(0x19d),'description':a138_0x93ca13(0x193)}],async 'execute'(_0x183a55){const _0x4f7aca=a138_0x93ca13,_0xea4b3e=_0x183a55[_0x4f7aca(0x1a1)](_0x4f7aca(0x191))[_0x4f7aca(0x19e)]();if(!_0xea4b3e)throw CliErrors['flagMissing'](_0x4f7aca(0x191),_0x4f7aca(0x190));let _0x31cf56;try{_0x31cf56=await readFlowConfigFile(_0xea4b3e);}catch(_0x189a79){const _0x4d70c6=_0x189a79 instanceof Error?_0x189a79[_0x4f7aca(0x18a)]:String(_0x189a79);throw CliErrors[_0x4f7aca(0x1a7)](_0x4f7aca(0x1ab)+_0x4d70c6);}const _0x553f8c=validateFlowConfig(_0x31cf56),_0x1cfe52=_0x183a55[_0x4f7aca(0x1a9)](_0x4f7aca(0x199));let _0x5604ce=![];return _0x1cfe52&&_0x553f8c['valid']&&(await writeNormalizedFlowConfig(_0xea4b3e,_0x553f8c[_0x4f7aca(0x19b)]),_0x5604ce=!![]),{'ok':_0x553f8c[_0x4f7aca(0x194)],'data':{'valid':_0x553f8c[_0x4f7aca(0x194)],'errors':_0x553f8c[_0x4f7aca(0x195)],'warnings':_0x553f8c[_0x4f7aca(0x18e)],'normalized':_0x553f8c['normalized'],..._0x1cfe52?{'written':_0x5604ce}:{}},'message':_0x553f8c[_0x4f7aca(0x194)]?_0x5604ce?_0x4f7aca(0x19a):'FlowConfig\x20is\x20valid.':_0x4f7aca(0x19c)};}};
@@ -1 +1 @@
1
- const a139_0x43bf5d=a139_0x3684;(function(_0x402436,_0xd62a93){const _0x52dfe6=a139_0x3684,_0x296a19=_0x402436();while(!![]){try{const _0x55fd8a=parseInt(_0x52dfe6(0x14b))/0x1+-parseInt(_0x52dfe6(0x151))/0x2+-parseInt(_0x52dfe6(0x156))/0x3+parseInt(_0x52dfe6(0x157))/0x4*(-parseInt(_0x52dfe6(0x15b))/0x5)+parseInt(_0x52dfe6(0x14d))/0x6+-parseInt(_0x52dfe6(0x152))/0x7*(-parseInt(_0x52dfe6(0x14c))/0x8)+parseInt(_0x52dfe6(0x14e))/0x9;if(_0x55fd8a===_0xd62a93)break;else _0x296a19['push'](_0x296a19['shift']());}catch(_0x1c1c58){_0x296a19['push'](_0x296a19['shift']());}}}(a139_0x287a,0x7bb65));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a139_0x3684(_0x51de83,_0xdb5677){_0x51de83=_0x51de83-0x14a;const _0x287a06=a139_0x287a();let _0x36847d=_0x287a06[_0x51de83];return _0x36847d;}import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a139_0x43bf5d(0x150),'command':a139_0x43bf5d(0x158),'description':a139_0x43bf5d(0x153),'risk':a139_0x43bf5d(0x14f),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x3e077d){const _0x3aa024=a139_0x43bf5d,_0x2a9982=loadInstantApiPolicyLocalConfig(_0x3e077d[_0x3aa024(0x14a)]),_0x38becb=await getCurrentInstantApiPolicy(_0x3e077d['appCode']);return{'ok':!![],'data':{'appCode':_0x3e077d[_0x3aa024(0x14a)],'configured':_0x38becb!==null,'filePath':_0x2a9982['policyFilePath'],'relativePath':_0x2a9982[_0x3aa024(0x15a)],'policy':projectCurrentPolicy(_0x38becb)},'message':_0x38becb?_0x3aa024(0x159)+_0x38becb[_0x3aa024(0x155)]:_0x3aa024(0x154)+_0x3e077d[_0x3aa024(0x14a)]};}};function a139_0x287a(){const _0x4d443c=['7224795ECHPme','read','instant-api-policy','1644100jIquAc','35hpInDF','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','2305668GcVtuP','2019932cLJwau','current','Current\x20Instant\x20API\x20policy\x20revision\x20','policyRelativePath','5ObBNli','appCode','771372MVwJjX','297040yeEEnZ','5055222QOATIv'];a139_0x287a=function(){return _0x4d443c;};return a139_0x287a();}
1
+ function a139_0x3460(){const _0x20d77a=['3768846FUGsLE','appCode','Current\x20Instant\x20API\x20policy\x20revision\x20','policyRelativePath','1681673ImUKfH','636boahPx','230664tEUkyu','252923xOdgSE','policyFilePath','revision','63iFPFUb','current','48oSRIRg','3140ZuxtYR','read','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','162825IutsAw','16pVJTQD','35652FdlnZz','10638jSUwvO','instant-api-policy'];a139_0x3460=function(){return _0x20d77a;};return a139_0x3460();}const a139_0x573b81=a139_0x5a87;function a139_0x5a87(_0x51845d,_0x344727){_0x51845d=_0x51845d-0x1e2;const _0x3460b4=a139_0x3460();let _0x5a8793=_0x3460b4[_0x51845d];return _0x5a8793;}(function(_0x115197,_0x5afdc8){const _0x565db0=a139_0x5a87,_0x30bb59=_0x115197();while(!![]){try{const _0x2c51fa=parseInt(_0x565db0(0x1e4))/0x1*(parseInt(_0x565db0(0x1eb))/0x2)+-parseInt(_0x565db0(0x1e2))/0x3*(-parseInt(_0x565db0(0x1f4))/0x4)+parseInt(_0x565db0(0x1e9))/0x5+parseInt(_0x565db0(0x1ee))/0x6+-parseInt(_0x565db0(0x1f2))/0x7*(parseInt(_0x565db0(0x1ea))/0x8)+-parseInt(_0x565db0(0x1ec))/0x9*(parseInt(_0x565db0(0x1e5))/0xa)+parseInt(_0x565db0(0x1f5))/0xb*(-parseInt(_0x565db0(0x1f3))/0xc);if(_0x2c51fa===_0x5afdc8)break;else _0x30bb59['push'](_0x30bb59['shift']());}catch(_0x19935e){_0x30bb59['push'](_0x30bb59['shift']());}}}(a139_0x3460,0xa06bd));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':a139_0x573b81(0x1ed),'command':a139_0x573b81(0x1e3),'description':a139_0x573b81(0x1e7),'risk':a139_0x573b81(0x1e6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1dac31){const _0x3a4fe9=a139_0x573b81,_0x30c6e4=loadInstantApiPolicyLocalConfig(_0x1dac31['appCode']),_0x5b405e=await getCurrentInstantApiPolicy(_0x1dac31[_0x3a4fe9(0x1ef)]);return{'ok':!![],'data':{'appCode':_0x1dac31[_0x3a4fe9(0x1ef)],'configured':_0x5b405e!==null,'filePath':_0x30c6e4[_0x3a4fe9(0x1f6)],'relativePath':_0x30c6e4[_0x3a4fe9(0x1f1)],'policy':projectCurrentPolicy(_0x5b405e)},'message':_0x5b405e?_0x3a4fe9(0x1f0)+_0x5b405e[_0x3a4fe9(0x1f7)]:_0x3a4fe9(0x1e8)+_0x1dac31[_0x3a4fe9(0x1ef)]};}};
@@ -1 +1 @@
1
- function a140_0x2951(_0x52e4cd,_0x4d6c1f){_0x52e4cd=_0x52e4cd-0xbf;const _0x58fda4=a140_0x58fd();let _0x2951b0=_0x58fda4[_0x52e4cd];return _0x2951b0;}(function(_0x4df413,_0x1a90b9){const _0x32d8f=a140_0x2951,_0x5b7757=_0x4df413();while(!![]){try{const _0x4d2b7f=-parseInt(_0x32d8f(0xc7))/0x1+parseInt(_0x32d8f(0xc5))/0x2*(parseInt(_0x32d8f(0xc3))/0x3)+-parseInt(_0x32d8f(0xc0))/0x4*(parseInt(_0x32d8f(0xbf))/0x5)+-parseInt(_0x32d8f(0xc2))/0x6+parseInt(_0x32d8f(0xc1))/0x7+-parseInt(_0x32d8f(0xc6))/0x8*(-parseInt(_0x32d8f(0xc8))/0x9)+parseInt(_0x32d8f(0xc4))/0xa;if(_0x4d2b7f===_0x1a90b9)break;else _0x5b7757['push'](_0x5b7757['shift']());}catch(_0x426588){_0x5b7757['push'](_0x5b7757['shift']());}}}(a140_0x58fd,0x41a33));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a140_0x58fd(){const _0xb79df1=['1558EUNKxb','288VDDdSN','109688NNyhcF','77067BsChXM','1005465wlHbFb','8sTqnyR','3695370wWLXcj','2165964vOtJyY','1098MpTjaK','204270cYKMIN'];a140_0x58fd=function(){return _0xb79df1;};return a140_0x58fd();}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(_0x1b23ab,_0x3a7990){const _0x719a9b=a140_0x31cd,_0x3ef944=_0x1b23ab();while(!![]){try{const _0x16cc3b=-parseInt(_0x719a9b(0x6e))/0x1*(-parseInt(_0x719a9b(0x77))/0x2)+-parseInt(_0x719a9b(0x70))/0x3*(-parseInt(_0x719a9b(0x6f))/0x4)+-parseInt(_0x719a9b(0x76))/0x5+parseInt(_0x719a9b(0x73))/0x6*(-parseInt(_0x719a9b(0x75))/0x7)+-parseInt(_0x719a9b(0x72))/0x8+parseInt(_0x719a9b(0x71))/0x9+parseInt(_0x719a9b(0x74))/0xa;if(_0x16cc3b===_0x3a7990)break;else _0x3ef944['push'](_0x3ef944['shift']());}catch(_0x46bff1){_0x3ef944['push'](_0x3ef944['shift']());}}}(a140_0x2259,0xb6b78));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';function a140_0x31cd(_0x442fa9,_0x2ec34d){_0x442fa9=_0x442fa9-0x6e;const _0x225946=a140_0x2259();let _0x31cda2=_0x225946[_0x442fa9];return _0x31cda2;}import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';function a140_0x2259(){const _0x3c00b4=['7580920OpysiY','161382twNRJO','11378340NNuhoG','182kwKHdZ','1351815RhWWAo','670mFaRDY','767XiwGbM','32920LBWmuZ','21pBFrTj','10919871DCCahe'];a140_0x2259=function(){return _0x3c00b4;};return a140_0x2259();}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 a141_0x51bdca=a141_0x4cb8;function a141_0x2973(){const _0x3ea5d6=['1140AljLYO','policyFilePath','590tmbAoW','3587949bigCGt','deny','string','appCode','default-action','instant-api-policy','921943bnVYZU','10bQEOPr','allow','Kept','action','init','policyRelativePath','Created','96mzojYD','7564pXYcIZ','write','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','Replaced','bool','1954225MMeGPj','1637SkJFmP','6EBuDwS','str','2901871BcwdRH','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','520360sSaYKl'];a141_0x2973=function(){return _0x3ea5d6;};return a141_0x2973();}function a141_0x4cb8(_0x4d7c2d,_0x5eae41){_0x4d7c2d=_0x4d7c2d-0x130;const _0x29738f=a141_0x2973();let _0x4cb80e=_0x29738f[_0x4d7c2d];return _0x4cb80e;}(function(_0x752214,_0x10649f){const _0x3747ea=a141_0x4cb8,_0x2b106c=_0x752214();while(!![]){try{const _0x10e126=parseInt(_0x3747ea(0x131))/0x1*(parseInt(_0x3747ea(0x139))/0x2)+parseInt(_0x3747ea(0x137))/0x3*(-parseInt(_0x3747ea(0x149))/0x4)+parseInt(_0x3747ea(0x130))/0x5+parseInt(_0x3747ea(0x132))/0x6*(parseInt(_0x3747ea(0x134))/0x7)+parseInt(_0x3747ea(0x136))/0x8+-parseInt(_0x3747ea(0x13a))/0x9*(-parseInt(_0x3747ea(0x141))/0xa)+-parseInt(_0x3747ea(0x140))/0xb*(parseInt(_0x3747ea(0x148))/0xc);if(_0x10e126===_0x10649f)break;else _0x2b106c['push'](_0x2b106c['shift']());}catch(_0x377047){_0x2b106c['push'](_0x2b106c['shift']());}}}(a141_0x2973,0x589b7));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a141_0x51bdca(0x13f),'command':a141_0x51bdca(0x145),'description':a141_0x51bdca(0x135),'risk':a141_0x51bdca(0x14a),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a141_0x51bdca(0x13e),'type':a141_0x51bdca(0x13c),'enum':['allow',a141_0x51bdca(0x13b)],'default':a141_0x51bdca(0x142),'description':a141_0x51bdca(0x14b)},FORCE_FLAG],async 'validate'(_0x1dd5f9){requireForceConfirmation(_0x1dd5f9);},async 'execute'(_0x3cffd0){const _0x22bcfb=a141_0x51bdca;requireForceConfirmation(_0x3cffd0);const _0x499d20=_0x3cffd0[_0x22bcfb(0x133)](_0x22bcfb(0x13e))===_0x22bcfb(0x13b)?_0x22bcfb(0x13b):_0x22bcfb(0x142),_0x41da2e=loadInstantApiPolicyLocalConfig(_0x3cffd0['appCode']),_0x375bcc=createDefaultInstantApiPolicyConfig(_0x3cffd0[_0x22bcfb(0x13d)],_0x499d20),_0x4b708d=await writeInstantApiPolicyConfigFile(_0x41da2e,_0x375bcc,{'force':_0x3cffd0[_0x22bcfb(0x14d)]('force')}),_0x6b13fc={'created':_0x22bcfb(0x147),'overwritten':_0x22bcfb(0x14c),'unchanged':_0x22bcfb(0x143)}[_0x4b708d[_0x22bcfb(0x144)]];return{'ok':!![],'data':{'operation':_0x22bcfb(0x145),'selector':{'appCode':_0x3cffd0[_0x22bcfb(0x13d)]},'filePath':_0x41da2e[_0x22bcfb(0x138)],'relativePath':_0x41da2e[_0x22bcfb(0x146)],'action':_0x4b708d[_0x22bcfb(0x144)],'config':_0x375bcc},'message':_0x6b13fc+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x3cffd0[_0x22bcfb(0x13d)]};}};
1
+ const a141_0x5f2469=a141_0x5c8e;(function(_0x75f19e,_0x172ef8){const _0x49343b=a141_0x5c8e,_0x25d481=_0x75f19e();while(!![]){try{const _0x1bde2e=parseInt(_0x49343b(0x114))/0x1*(-parseInt(_0x49343b(0x111))/0x2)+parseInt(_0x49343b(0x10f))/0x3*(parseInt(_0x49343b(0x101))/0x4)+parseInt(_0x49343b(0x10e))/0x5+-parseInt(_0x49343b(0x117))/0x6*(parseInt(_0x49343b(0x11a))/0x7)+-parseInt(_0x49343b(0x10d))/0x8*(parseInt(_0x49343b(0x118))/0x9)+-parseInt(_0x49343b(0x102))/0xa*(parseInt(_0x49343b(0x109))/0xb)+parseInt(_0x49343b(0x107))/0xc;if(_0x1bde2e===_0x172ef8)break;else _0x25d481['push'](_0x25d481['shift']());}catch(_0x4be3c4){_0x25d481['push'](_0x25d481['shift']());}}}(a141_0x4962,0x8835a));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a141_0x4962(){const _0x1b883e=['139864mTgnMF','64100CIqWEi','1180602KVqYdE','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','184MLqnvF','appCode','deny','10914ollPJN','default-action','force','42hARvUO','423VKDafT','instant-api-policy','209881HNvIXt','policyFilePath','str','policyRelativePath','Created','8VUUnmL','650OnJTlg','string','Replaced','allow','write','33601092cpReXS','action','170313jDeNRd','bool','\x20Instant\x20API\x20policy\x20file\x20for\x20','init'];a141_0x4962=function(){return _0x1b883e;};return a141_0x4962();}function a141_0x5c8e(_0x36675b,_0x3cf273){_0x36675b=_0x36675b-0xff;const _0x49627d=a141_0x4962();let _0x5c8e05=_0x49627d[_0x36675b];return _0x5c8e05;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a141_0x5f2469(0x119),'command':a141_0x5f2469(0x10c),'description':a141_0x5f2469(0x110),'risk':a141_0x5f2469(0x106),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a141_0x5f2469(0x115),'type':a141_0x5f2469(0x103),'enum':[a141_0x5f2469(0x105),a141_0x5f2469(0x113)],'default':'allow','description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x4acee2){requireForceConfirmation(_0x4acee2);},async 'execute'(_0x26f334){const _0x52fa17=a141_0x5f2469;requireForceConfirmation(_0x26f334);const _0x283853=_0x26f334[_0x52fa17(0x11c)]('default-action')==='deny'?_0x52fa17(0x113):_0x52fa17(0x105),_0x4f4965=loadInstantApiPolicyLocalConfig(_0x26f334['appCode']),_0x80ce2f=createDefaultInstantApiPolicyConfig(_0x26f334[_0x52fa17(0x112)],_0x283853),_0x5dddc7=await writeInstantApiPolicyConfigFile(_0x4f4965,_0x80ce2f,{'force':_0x26f334[_0x52fa17(0x10a)](_0x52fa17(0x116))}),_0x3dca10={'created':_0x52fa17(0x100),'overwritten':_0x52fa17(0x104),'unchanged':'Kept'}[_0x5dddc7[_0x52fa17(0x108)]];return{'ok':!![],'data':{'operation':'init','selector':{'appCode':_0x26f334[_0x52fa17(0x112)]},'filePath':_0x4f4965[_0x52fa17(0x11b)],'relativePath':_0x4f4965[_0x52fa17(0xff)],'action':_0x5dddc7[_0x52fa17(0x108)],'config':_0x80ce2f},'message':_0x3dca10+_0x52fa17(0x10b)+_0x26f334[_0x52fa17(0x112)]};}};
@@ -1 +1 @@
1
- const a142_0x40020f=a142_0x5b4f;(function(_0x217e6d,_0x2e3e82){const _0x8e8333=a142_0x5b4f,_0x299906=_0x217e6d();while(!![]){try{const _0x13a478=-parseInt(_0x8e8333(0x1a5))/0x1+-parseInt(_0x8e8333(0x19b))/0x2*(-parseInt(_0x8e8333(0x190))/0x3)+-parseInt(_0x8e8333(0x199))/0x4*(parseInt(_0x8e8333(0x198))/0x5)+parseInt(_0x8e8333(0x1a9))/0x6*(parseInt(_0x8e8333(0x191))/0x7)+-parseInt(_0x8e8333(0x19a))/0x8*(-parseInt(_0x8e8333(0x18a))/0x9)+parseInt(_0x8e8333(0x1aa))/0xa*(-parseInt(_0x8e8333(0x1a6))/0xb)+parseInt(_0x8e8333(0x192))/0xc;if(_0x13a478===_0x2e3e82)break;else _0x299906['push'](_0x299906['shift']());}catch(_0x3c03e4){_0x299906['push'](_0x299906['shift']());}}}(a142_0x3c6d,0xea65a));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a142_0x5b4f(_0x322d28,_0x1d2425){_0x322d28=_0x322d28-0x188;const _0x3c6d2b=a142_0x3c6d();let _0x5b4fcd=_0x3c6d2b[_0x322d28];return _0x5b4fcd;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x256713){const _0x2120dd=a142_0x5b4f,{local:_0x487a32,config:_0x5d6345}=await readFixedPolicy(_0x256713),_0x31220f=readChangeSummary(_0x256713),_0x422387=readExpectedRevision(_0x256713),[_0x5855a0,_0x26756f]=await Promise[_0x2120dd(0x19d)]([getCurrentInstantApiPolicy(_0x256713['appCode']),validateInstantApiPolicy({'appCode':_0x256713[_0x2120dd(0x1ac)],'config':_0x5d6345})]);return assertExpectedRevision(_0x5855a0,_0x422387),{'local':_0x487a32,'config':_0x5d6345,'changeSummary':_0x31220f,'expectedRevision':_0x422387,'before':_0x5855a0,'validation':_0x26756f};}export const instantApiPolicyPublish={'service':a142_0x40020f(0x1af),'command':'publish','description':a142_0x40020f(0x18c),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0x40020f(0x18b),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2a396a){readChangeSummary(_0x2a396a),readExpectedRevision(_0x2a396a);},async 'dryRun'(_0x336b24){const _0x28f2dd=a142_0x40020f,_0x10f4e0=await preparePublish(_0x336b24);return asDryRunResult({'operation':_0x28f2dd(0x19c),'selector':{'appCode':_0x336b24[_0x28f2dd(0x1ac)]},'before':projectCurrentPolicy(_0x10f4e0[_0x28f2dd(0x1ab)]),'after':{'revision':_0x10f4e0['before']?_0x10f4e0[_0x28f2dd(0x1ab)][_0x28f2dd(0x1a2)]+0x1:0x1,'configHash':_0x10f4e0[_0x28f2dd(0x189)][_0x28f2dd(0x196)],'config':_0x10f4e0[_0x28f2dd(0x189)][_0x28f2dd(0x188)]},'filePath':_0x10f4e0[_0x28f2dd(0x19e)]['policyFilePath'],'relativePath':_0x10f4e0[_0x28f2dd(0x19e)][_0x28f2dd(0x195)],'dryRun':!![],'backend':{'method':_0x28f2dd(0x1a8),'path':INSTANT_API_POLICY_BASE_PATH+_0x28f2dd(0x1a7)},'warnings':expectedRevisionWarnings(_0x10f4e0[_0x28f2dd(0x1b1)]),'verification':{'status':_0x28f2dd(0x193),'expectedRevision':_0x10f4e0[_0x28f2dd(0x1b1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x28f2dd(0x1a7)});},async 'execute'(_0x182dc1){const _0xea20e6=a142_0x40020f,_0x39a140=await preparePublish(_0x182dc1);let _0x70d733=![];try{await publishInstantApiPolicy({'appCode':_0x182dc1[_0xea20e6(0x1ac)],'config':_0x39a140[_0xea20e6(0x194)],..._0x39a140[_0xea20e6(0x18d)]?{'changeSummary':_0x39a140[_0xea20e6(0x18d)]}:{}});}catch(_0x178dc6){if(!isPlatformTransportFailure(_0x178dc6))throw _0x178dc6;_0x70d733=!![];}let _0xbe9f78;try{_0xbe9f78=await getCurrentInstantApiPolicy(_0x182dc1[_0xea20e6(0x1ac)]);}catch(_0x41ba69){const _0x58672e=instantApiPolicyError(_0x70d733?_0xea20e6(0x1a4):'instant_api_policy_publish_verification_unavailable',_0xea20e6(0x1b0),_0xea20e6(0x1a0)+mutationLookupCommand()+_0xea20e6(0x19f));Object[_0xea20e6(0x1a3)](_0x58672e,_0xea20e6(0x1a1),{'value':_0x41ba69,'enumerable':![]});throw _0x58672e;}const _0x2345c9=_0xbe9f78&&(_0x39a140[_0xea20e6(0x1ab)]===null||_0xbe9f78[_0xea20e6(0x1a2)]>_0x39a140[_0xea20e6(0x1ab)][_0xea20e6(0x1a2)]),_0x1f610c=_0xbe9f78?.[_0xea20e6(0x196)]===_0x39a140['validation'][_0xea20e6(0x196)];if(!_0xbe9f78||!_0x2345c9||!_0x1f610c)throw instantApiPolicyError(_0x70d733?_0xea20e6(0x1a4):_0xea20e6(0x1ad),_0xea20e6(0x18f),_0xea20e6(0x1a0)+mutationLookupCommand()+_0xea20e6(0x19f));const _0x325e2e=[...expectedRevisionWarnings(_0x39a140[_0xea20e6(0x1b1)]),RUNTIME_CACHE_WARNING];return _0x70d733&&_0x325e2e[_0xea20e6(0x197)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xea20e6(0x19c),'selector':{'appCode':_0x182dc1[_0xea20e6(0x1ac)]},'before':projectCurrentPolicy(_0x39a140['before']),'after':projectCurrentPolicy(_0xbe9f78),'filePath':_0x39a140[_0xea20e6(0x19e)]['policyFilePath'],'relativePath':_0x39a140['local'][_0xea20e6(0x195)],'dryRun':![],'backend':{'method':_0xea20e6(0x1a8),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x325e2e,'verification':{'status':_0xea20e6(0x18e),'recoveredAfterUnknownResponse':_0x70d733,'expectedRevision':_0x39a140[_0xea20e6(0x1b1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xea20e6(0x1ae)+_0xbe9f78[_0xea20e6(0x1a2)]};}};function a142_0x3c6d(){const _0x2358c8=['expectedRevision','normalizedConfig','validation','234hdwbTz','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','changeSummary','verified','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','393747VThrbt','262948BsKOAd','3516468CwysRt','planned','config','policyRelativePath','configHash','push','49445ZSbklE','16vwYAhV','110744Vnwrnj','8lFhpgK','publish','all','local','`;\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20`','cause','revision','defineProperty','instant_api_policy_publish_outcome_unknown','859328pxwAcy','2012461WiNmzV','/publish','POST','138JYRTcQ','10oMOevX','before','appCode','instant_api_policy_publish_verification_failed','Published\x20Instant\x20API\x20policy\x20revision\x20','instant-api-policy','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.'];a142_0x3c6d=function(){return _0x2358c8;};return a142_0x3c6d();}
1
+ const a142_0x1ec2fe=a142_0x4863;(function(_0x40dcac,_0x5d7a85){const _0x27b93f=a142_0x4863,_0x1a87b9=_0x40dcac();while(!![]){try{const _0x4eef67=-parseInt(_0x27b93f(0xcd))/0x1+-parseInt(_0x27b93f(0xcb))/0x2*(parseInt(_0x27b93f(0xb2))/0x3)+-parseInt(_0x27b93f(0xc0))/0x4+-parseInt(_0x27b93f(0xb1))/0x5*(-parseInt(_0x27b93f(0xc7))/0x6)+parseInt(_0x27b93f(0xa8))/0x7*(parseInt(_0x27b93f(0xc8))/0x8)+-parseInt(_0x27b93f(0xce))/0x9*(parseInt(_0x27b93f(0xa4))/0xa)+parseInt(_0x27b93f(0xa7))/0xb;if(_0x4eef67===_0x5d7a85)break;else _0x1a87b9['push'](_0x1a87b9['shift']());}catch(_0x39f1c3){_0x1a87b9['push'](_0x1a87b9['shift']());}}}(a142_0x3de3,0x302ed));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a142_0x3de3(){const _0x213187=['POST','validation','appCode','policyFilePath','revision','Inspect\x20with\x20`','instant_api_policy_publish_outcome_unknown','verified','local','62752ZKHGHb','cause','publish','config','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','before','push','12792BUbwvj','14704ukjnnt','high-risk-write','instant_api_policy_publish_verification_failed','19876lXJARm','normalizedConfig','243339EJaAtB','78417gVqYxv','130Fsioxo','all','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','1384889rVNRBw','959SHvpUh','changeSummary','/publish','configHash','expectedRevision','defineProperty','instant_api_policy_publish_verification_unavailable','policyRelativePath','`;\x20do\x20not\x20resubmit\x20automatically.','590uQqaKi','18sGUXRy','instant-api-policy','planned','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','Published\x20Instant\x20API\x20policy\x20revision\x20'];a142_0x3de3=function(){return _0x213187;};return a142_0x3de3();}import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a142_0x4863(_0x44b410,_0x4a6a06){_0x44b410=_0x44b410-0xa4;const _0x3de341=a142_0x3de3();let _0x4863d1=_0x3de341[_0x44b410];return _0x4863d1;}async function preparePublish(_0x146ab0){const _0x26942d=a142_0x4863,{local:_0x22f0b4,config:_0x37e977}=await readFixedPolicy(_0x146ab0),_0x5eb1f3=readChangeSummary(_0x146ab0),_0x4eaa6d=readExpectedRevision(_0x146ab0),[_0x3c5156,_0x351b5f]=await Promise[_0x26942d(0xa5)]([getCurrentInstantApiPolicy(_0x146ab0[_0x26942d(0xb9)]),validateInstantApiPolicy({'appCode':_0x146ab0[_0x26942d(0xb9)],'config':_0x37e977})]);return assertExpectedRevision(_0x3c5156,_0x4eaa6d),{'local':_0x22f0b4,'config':_0x37e977,'changeSummary':_0x5eb1f3,'expectedRevision':_0x4eaa6d,'before':_0x3c5156,'validation':_0x351b5f};}export const instantApiPolicyPublish={'service':a142_0x1ec2fe(0xb3),'command':a142_0x1ec2fe(0xc2),'description':a142_0x1ec2fe(0xa6),'risk':a142_0x1ec2fe(0xc9),'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'(_0x656c7e){readChangeSummary(_0x656c7e),readExpectedRevision(_0x656c7e);},async 'dryRun'(_0x31a1f9){const _0x571dc3=a142_0x1ec2fe,_0x1b438f=await preparePublish(_0x31a1f9);return asDryRunResult({'operation':_0x571dc3(0xc2),'selector':{'appCode':_0x31a1f9[_0x571dc3(0xb9)]},'before':projectCurrentPolicy(_0x1b438f['before']),'after':{'revision':_0x1b438f[_0x571dc3(0xc5)]?_0x1b438f['before'][_0x571dc3(0xbb)]+0x1:0x1,'configHash':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xab)],'config':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xcc)]},'filePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xba)],'relativePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xaf)],'dryRun':!![],'backend':{'method':_0x571dc3(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x1b438f['expectedRevision']),'verification':{'status':_0x571dc3(0xb4),'expectedRevision':_0x1b438f[_0x571dc3(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x571dc3(0xb7),'url':INSTANT_API_POLICY_BASE_PATH+_0x571dc3(0xaa)});},async 'execute'(_0x4d3b13){const _0x110ce9=a142_0x1ec2fe,_0x3ab42e=await preparePublish(_0x4d3b13);let _0x33e0dc=![];try{await publishInstantApiPolicy({'appCode':_0x4d3b13[_0x110ce9(0xb9)],'config':_0x3ab42e[_0x110ce9(0xc3)],..._0x3ab42e[_0x110ce9(0xa9)]?{'changeSummary':_0x3ab42e[_0x110ce9(0xa9)]}:{}});}catch(_0x430e79){if(!isPlatformTransportFailure(_0x430e79))throw _0x430e79;_0x33e0dc=!![];}let _0x341f66;try{_0x341f66=await getCurrentInstantApiPolicy(_0x4d3b13[_0x110ce9(0xb9)]);}catch(_0x33fc20){const _0x128e0b=instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xae),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x110ce9(0xbc)+mutationLookupCommand()+_0x110ce9(0xb0));Object[_0x110ce9(0xad)](_0x128e0b,_0x110ce9(0xc1),{'value':_0x33fc20,'enumerable':![]});throw _0x128e0b;}const _0x6f2d9e=_0x341f66&&(_0x3ab42e[_0x110ce9(0xc5)]===null||_0x341f66[_0x110ce9(0xbb)]>_0x3ab42e[_0x110ce9(0xc5)][_0x110ce9(0xbb)]),_0x273b7e=_0x341f66?.[_0x110ce9(0xab)]===_0x3ab42e[_0x110ce9(0xb8)]['configHash'];if(!_0x341f66||!_0x6f2d9e||!_0x273b7e)throw instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xca),_0x110ce9(0xb5),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x110ce9(0xb0));const _0x2bac4b=[...expectedRevisionWarnings(_0x3ab42e[_0x110ce9(0xac)]),RUNTIME_CACHE_WARNING];return _0x33e0dc&&_0x2bac4b[_0x110ce9(0xc6)](_0x110ce9(0xc4)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x4d3b13[_0x110ce9(0xb9)]},'before':projectCurrentPolicy(_0x3ab42e['before']),'after':projectCurrentPolicy(_0x341f66),'filePath':_0x3ab42e[_0x110ce9(0xbf)]['policyFilePath'],'relativePath':_0x3ab42e[_0x110ce9(0xbf)][_0x110ce9(0xaf)],'dryRun':![],'backend':{'method':_0x110ce9(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+_0x110ce9(0xaa)},'warnings':_0x2bac4b,'verification':{'status':_0x110ce9(0xbe),'recoveredAfterUnknownResponse':_0x33e0dc,'expectedRevision':_0x3ab42e[_0x110ce9(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x110ce9(0xb6)+_0x341f66['revision']};}};
@@ -1 +1 @@
1
- const a143_0x465320=a143_0x3512;function a143_0x5215(){const _0x1c4da4=['Kept','instant_api_policy_not_configured','3290vcPEaU','config','policyRelativePath','5eJfBWv','force','instant-api-policy','bool','644838CUAZFb','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','107832BSjkqn','Pulled','write','1433366HQfUQt','33VEZrDy','140RBnRez','configHash','appCode','pull','1229280bWhQZi','\x20Instant\x20API\x20policy\x20revision\x20','54oTNIcv','action','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','662540dnCMhi','77086dXmdRd','revision'];a143_0x5215=function(){return _0x1c4da4;};return a143_0x5215();}(function(_0x4a1021,_0x364fd3){const _0x7b9669=a143_0x3512,_0x5d5ba2=_0x4a1021();while(!![]){try{const _0x4a5db6=-parseInt(_0x7b9669(0xd7))/0x1+-parseInt(_0x7b9669(0xd3))/0x2*(-parseInt(_0x7b9669(0xe4))/0x3)+-parseInt(_0x7b9669(0xe9))/0x4+parseInt(_0x7b9669(0xda))/0x5*(parseInt(_0x7b9669(0xde))/0x6)+parseInt(_0x7b9669(0xe5))/0x7*(-parseInt(_0x7b9669(0xe0))/0x8)+-parseInt(_0x7b9669(0xeb))/0x9*(-parseInt(_0x7b9669(0xd2))/0xa)+-parseInt(_0x7b9669(0xe3))/0xb;if(_0x4a5db6===_0x364fd3)break;else _0x5d5ba2['push'](_0x5d5ba2['shift']());}catch(_0x39c7d2){_0x5d5ba2['push'](_0x5d5ba2['shift']());}}}(a143_0x5215,0x3556a));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 a143_0x3512(_0x1c5680,_0x3f647f){_0x1c5680=_0x1c5680-0xd1;const _0x521562=a143_0x5215();let _0x35120a=_0x521562[_0x1c5680];return _0x35120a;}export const instantApiPolicyPull={'service':a143_0x465320(0xdc),'command':a143_0x465320(0xe8),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a143_0x465320(0xe2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x47d40d){requireForceConfirmation(_0x47d40d);},async 'execute'(_0x2e1b3d){const _0x4d5909=a143_0x465320;requireForceConfirmation(_0x2e1b3d);const _0x1ba1de=await getCurrentInstantApiPolicy(_0x2e1b3d[_0x4d5909(0xe7)]);if(!_0x1ba1de)throw instantApiPolicyError(_0x4d5909(0xd6),_0x4d5909(0xdf)+_0x2e1b3d[_0x4d5909(0xe7)]+'.',_0x4d5909(0xd1));const _0x203032=loadInstantApiPolicyLocalConfig(_0x2e1b3d[_0x4d5909(0xe7)]),_0x3b11f2=await writeInstantApiPolicyConfigFile(_0x203032,_0x1ba1de[_0x4d5909(0xd8)],{'force':_0x2e1b3d[_0x4d5909(0xdd)](_0x4d5909(0xdb))});return{'ok':!![],'data':{'operation':_0x4d5909(0xe8),'selector':{'appCode':_0x2e1b3d[_0x4d5909(0xe7)],'revision':_0x1ba1de[_0x4d5909(0xd4)]},'filePath':_0x203032['policyFilePath'],'relativePath':_0x203032[_0x4d5909(0xd9)],'action':_0x3b11f2[_0x4d5909(0xec)],'configHash':_0x1ba1de[_0x4d5909(0xe6)]},'message':(_0x3b11f2[_0x4d5909(0xec)]==='unchanged'?_0x4d5909(0xd5):_0x4d5909(0xe1))+_0x4d5909(0xea)+_0x1ba1de[_0x4d5909(0xd4)]};}};
1
+ function a143_0x1d8f(_0x1df5c6,_0x3006a8){_0x1df5c6=_0x1df5c6-0x194;const _0x4d70f1=a143_0x4d70();let _0x1d8fcf=_0x4d70f1[_0x1df5c6];return _0x1d8fcf;}const a143_0x53331e=a143_0x1d8f;(function(_0x147924,_0x243ff9){const _0x130f88=a143_0x1d8f,_0x1ed246=_0x147924();while(!![]){try{const _0x570df5=parseInt(_0x130f88(0x1a7))/0x1*(-parseInt(_0x130f88(0x19e))/0x2)+parseInt(_0x130f88(0x1aa))/0x3*(parseInt(_0x130f88(0x1ac))/0x4)+-parseInt(_0x130f88(0x194))/0x5+-parseInt(_0x130f88(0x1a9))/0x6*(-parseInt(_0x130f88(0x1a1))/0x7)+parseInt(_0x130f88(0x19a))/0x8*(-parseInt(_0x130f88(0x1a4))/0x9)+-parseInt(_0x130f88(0x1a6))/0xa+parseInt(_0x130f88(0x197))/0xb;if(_0x570df5===_0x243ff9)break;else _0x1ed246['push'](_0x1ed246['shift']());}catch(_0x36b1d6){_0x1ed246['push'](_0x1ed246['shift']());}}}(a143_0x4d70,0xe7268));function a143_0x4d70(){const _0xa0cb1a=['1yEWfZs','instant-api-policy','6xogXen','173697OuyYHh','configHash','44LVHtDE','157770uSuwlK','Pulled','bool','18434053Fgobnc','config','action','835680wFhPwz','pull','Kept','revision','2049578DAdlsE','\x20Instant\x20API\x20policy\x20revision\x20','appCode','4879231EhlOum','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','policyRelativePath','18VKzAik','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','7976900NGxVxK'];a143_0x4d70=function(){return _0xa0cb1a;};return a143_0x4d70();}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';export const instantApiPolicyPull={'service':a143_0x53331e(0x1a8),'command':a143_0x53331e(0x19b),'description':a143_0x53331e(0x1a2),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x6dc913){requireForceConfirmation(_0x6dc913);},async 'execute'(_0x5b8942){const _0x550e90=a143_0x53331e;requireForceConfirmation(_0x5b8942);const _0x721f21=await getCurrentInstantApiPolicy(_0x5b8942[_0x550e90(0x1a0)]);if(!_0x721f21)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x5b8942[_0x550e90(0x1a0)]+'.',_0x550e90(0x1a5));const _0x4ab022=loadInstantApiPolicyLocalConfig(_0x5b8942[_0x550e90(0x1a0)]),_0x264252=await writeInstantApiPolicyConfigFile(_0x4ab022,_0x721f21[_0x550e90(0x198)],{'force':_0x5b8942[_0x550e90(0x196)]('force')});return{'ok':!![],'data':{'operation':_0x550e90(0x19b),'selector':{'appCode':_0x5b8942[_0x550e90(0x1a0)],'revision':_0x721f21[_0x550e90(0x19d)]},'filePath':_0x4ab022['policyFilePath'],'relativePath':_0x4ab022[_0x550e90(0x1a3)],'action':_0x264252[_0x550e90(0x199)],'configHash':_0x721f21[_0x550e90(0x1ab)]},'message':(_0x264252[_0x550e90(0x199)]==='unchanged'?_0x550e90(0x19c):_0x550e90(0x195))+_0x550e90(0x19f)+_0x721f21[_0x550e90(0x19d)]};}};
@@ -1 +1 @@
1
- const a144_0x2ba018=a144_0x2a4e;(function(_0x45131a,_0x4e1a90){const _0x5f2b54=a144_0x2a4e,_0x2aa0dd=_0x45131a();while(!![]){try{const _0x90af51=-parseInt(_0x5f2b54(0x14a))/0x1+-parseInt(_0x5f2b54(0x151))/0x2*(-parseInt(_0x5f2b54(0x14e))/0x3)+parseInt(_0x5f2b54(0x147))/0x4+-parseInt(_0x5f2b54(0x14b))/0x5*(parseInt(_0x5f2b54(0x145))/0x6)+parseInt(_0x5f2b54(0x150))/0x7*(parseInt(_0x5f2b54(0x154))/0x8)+parseInt(_0x5f2b54(0x14c))/0x9*(-parseInt(_0x5f2b54(0x14d))/0xa)+parseInt(_0x5f2b54(0x146))/0xb;if(_0x90af51===_0x4e1a90)break;else _0x2aa0dd['push'](_0x2aa0dd['shift']());}catch(_0x5d2f76){_0x2aa0dd['push'](_0x2aa0dd['shift']());}}}(a144_0x43e5,0xd4a41));function a144_0x2a4e(_0x1cf103,_0x562c44){_0x1cf103=_0x1cf103-0x145;const _0x43e505=a144_0x43e5();let _0x2a4ea7=_0x43e505[_0x1cf103];return _0x2a4ea7;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x43e5(){const _0x448789=['appCode','314922xfgHXO','55OAXecM','9CVBoxt','2163600MErCud','3QQKLYc','instant-api-policy','3871679WAxUul','542408nzXQeE','revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20','8WYfnDy','749772uUzxOw','15223846rGUhua','2274216gyebrs','read'];a144_0x43e5=function(){return _0x448789;};return a144_0x43e5();}export const instantApiPolicyRevision={'service':a144_0x2ba018(0x14f),'command':a144_0x2ba018(0x152),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0x2ba018(0x148),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x2e70f6){readRevision(_0x2e70f6);},async 'execute'(_0x5e3179){const _0x41b37b=a144_0x2ba018,_0x562bf8=readRevision(_0x5e3179),_0x846d4c=await getInstantApiPolicyRevision(_0x5e3179[_0x41b37b(0x149)],_0x562bf8);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x846d4c)},'message':_0x41b37b(0x153)+_0x562bf8};}};
1
+ const a144_0xfab42d=a144_0x28c8;function a144_0x28c8(_0xdf436d,_0x1a65c2){_0xdf436d=_0xdf436d-0x127;const _0x5f51d0=a144_0x5f51();let _0x28c82b=_0x5f51d0[_0xdf436d];return _0x28c82b;}(function(_0x27428b,_0x28175b){const _0x5f55bd=a144_0x28c8,_0x289cbf=_0x27428b();while(!![]){try{const _0x56712=-parseInt(_0x5f55bd(0x128))/0x1*(-parseInt(_0x5f55bd(0x134))/0x2)+parseInt(_0x5f55bd(0x135))/0x3*(-parseInt(_0x5f55bd(0x12f))/0x4)+-parseInt(_0x5f55bd(0x131))/0x5+parseInt(_0x5f55bd(0x130))/0x6*(-parseInt(_0x5f55bd(0x12b))/0x7)+-parseInt(_0x5f55bd(0x12d))/0x8+-parseInt(_0x5f55bd(0x12e))/0x9+parseInt(_0x5f55bd(0x12a))/0xa*(parseInt(_0x5f55bd(0x132))/0xb);if(_0x56712===_0x28175b)break;else _0x289cbf['push'](_0x289cbf['shift']());}catch(_0x5a47d3){_0x289cbf['push'](_0x289cbf['shift']());}}}(a144_0x5f51,0x8d815));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x5f51(){const _0x496215=['18HoZZcj','473720IdDdYe','11AELATj','appCode','1368196MsYjZE','5988UIEXCm','Loaded\x20Instant\x20API\x20policy\x20revision\x20','1eKnBzM','revision','21413690XBusWh','158837lzZZRt','read','6998024xLpvJt','6563268REwyxp','960kggIRV'];a144_0x5f51=function(){return _0x496215;};return a144_0x5f51();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':a144_0xfab42d(0x129),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0xfab42d(0x12c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x4e75fa){readRevision(_0x4e75fa);},async 'execute'(_0x4996cd){const _0x20a6f3=a144_0xfab42d,_0x4eab9b=readRevision(_0x4996cd),_0x165460=await getInstantApiPolicyRevision(_0x4996cd[_0x20a6f3(0x133)],_0x4eab9b);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x165460)},'message':_0x20a6f3(0x127)+_0x4eab9b};}};
@@ -1 +1 @@
1
- const a145_0x5f3e4c=a145_0x2b51;(function(_0x2a0dc2,_0xc30f8e){const _0x23c8cc=a145_0x2b51,_0x58c0c8=_0x2a0dc2();while(!![]){try{const _0x5e474f=-parseInt(_0x23c8cc(0x119))/0x1*(-parseInt(_0x23c8cc(0x11a))/0x2)+-parseInt(_0x23c8cc(0x118))/0x3+parseInt(_0x23c8cc(0x116))/0x4*(-parseInt(_0x23c8cc(0x11d))/0x5)+parseInt(_0x23c8cc(0x11f))/0x6+-parseInt(_0x23c8cc(0x125))/0x7+parseInt(_0x23c8cc(0x120))/0x8+parseInt(_0x23c8cc(0x124))/0x9*(parseInt(_0x23c8cc(0x11e))/0xa);if(_0x5e474f===_0xc30f8e)break;else _0x58c0c8['push'](_0x58c0c8['shift']());}catch(_0x3a3614){_0x58c0c8['push'](_0x58c0c8['shift']());}}}(a145_0x2fd8,0x781ca));function a145_0x2fd8(){const _0x1bd588=['135VLmHfW','1020BwTLer','5433936VNNrhP','156992EwKuAM','map','instant-api-policy','appCode','49977Bsxpdk','3031350dTnuwT','105292dGMVWp','revisions','1665984fEpQhK','293RPEQQp','4774NDJRwo','length','List\x20immutable\x20Instant\x20API\x20policy\x20revisions'];a145_0x2fd8=function(){return _0x1bd588;};return a145_0x2fd8();}function a145_0x2b51(_0x5a62ae,_0x3fe819){_0x5a62ae=_0x5a62ae-0x116;const _0x2fd835=a145_0x2fd8();let _0x2b516a=_0x2fd835[_0x5a62ae];return _0x2b516a;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x5f3e4c(0x122),'command':a145_0x5f3e4c(0x117),'description':a145_0x5f3e4c(0x11c),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2b919a){const _0x5c7ce0=a145_0x5f3e4c,_0x4d01fb=await listInstantApiPolicyRevisions(_0x2b919a[_0x5c7ce0(0x123)]);return{'ok':!![],'data':{'appCode':_0x2b919a[_0x5c7ce0(0x123)],'total':_0x4d01fb[_0x5c7ce0(0x11b)],'revisions':_0x4d01fb[_0x5c7ce0(0x121)](projectRevisionSummary)},'message':'Found\x20'+_0x4d01fb['length']+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
1
+ const a145_0x2bed73=a145_0x3224;(function(_0x3e37f1,_0x24ab64){const _0x3bca22=a145_0x3224,_0x55d1d8=_0x3e37f1();while(!![]){try{const _0x12f64a=parseInt(_0x3bca22(0x11b))/0x1*(-parseInt(_0x3bca22(0x124))/0x2)+-parseInt(_0x3bca22(0x11a))/0x3*(parseInt(_0x3bca22(0x125))/0x4)+parseInt(_0x3bca22(0x119))/0x5*(parseInt(_0x3bca22(0x127))/0x6)+parseInt(_0x3bca22(0x128))/0x7+parseInt(_0x3bca22(0x11e))/0x8+-parseInt(_0x3bca22(0x11f))/0x9+parseInt(_0x3bca22(0x11d))/0xa*(parseInt(_0x3bca22(0x126))/0xb);if(_0x12f64a===_0x24ab64)break;else _0x55d1d8['push'](_0x55d1d8['shift']());}catch(_0x34a87a){_0x55d1d8['push'](_0x55d1d8['shift']());}}}(a145_0x3b5f,0x57191));function a145_0x3224(_0x108961,_0x55c296){_0x108961=_0x108961-0x118;const _0x3b5f42=a145_0x3b5f();let _0x322415=_0x3b5f42[_0x108961];return _0x322415;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a145_0x3b5f(){const _0x3ff3ed=['instant-api-policy','10xbSTcZ','299184azunwm','2098503csvoLA','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','map','revisions','appCode','2362MJfsFo','116IXUlXq','7505993Kziajm','174iaGXTr','1787548OCFGrg','length','46255dsiADU','47199XJRxHm','167SyKAev'];a145_0x3b5f=function(){return _0x3ff3ed;};return a145_0x3b5f();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x2bed73(0x11c),'command':a145_0x2bed73(0x122),'description':a145_0x2bed73(0x120),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x47d36f){const _0x421831=a145_0x2bed73,_0xe1facb=await listInstantApiPolicyRevisions(_0x47d36f[_0x421831(0x123)]);return{'ok':!![],'data':{'appCode':_0x47d36f['appCode'],'total':_0xe1facb[_0x421831(0x118)],'revisions':_0xe1facb[_0x421831(0x121)](projectRevisionSummary)},'message':'Found\x20'+_0xe1facb[_0x421831(0x118)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
@@ -1 +1 @@
1
- const a146_0x47627f=a146_0x73ad;(function(_0x19048e,_0x426733){const _0x1de542=a146_0x73ad,_0x21139d=_0x19048e();while(!![]){try{const _0x422ce3=-parseInt(_0x1de542(0x130))/0x1+parseInt(_0x1de542(0x131))/0x2+parseInt(_0x1de542(0x137))/0x3*(parseInt(_0x1de542(0x150))/0x4)+-parseInt(_0x1de542(0x151))/0x5*(-parseInt(_0x1de542(0x149))/0x6)+parseInt(_0x1de542(0x133))/0x7*(-parseInt(_0x1de542(0x141))/0x8)+parseInt(_0x1de542(0x142))/0x9+-parseInt(_0x1de542(0x145))/0xa;if(_0x422ce3===_0x426733)break;else _0x21139d['push'](_0x21139d['shift']());}catch(_0x5d9421){_0x21139d['push'](_0x21139d['shift']());}}}(a146_0x1733,0x76fb4));function a146_0x73ad(_0x5a397b,_0x2be8c4){_0x5a397b=_0x5a397b-0x12f;const _0x1733b5=a146_0x1733();let _0x73adde=_0x1733b5[_0x5a397b];return _0x73adde;}function a146_0x1733(){const _0x57d8e9=['/rollback','instant_api_policy_rollback_outcome_unknown','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','56YLyVbC','1095cgfVxi','appCode','instant_api_policy_not_configured','all','Inspect\x20with\x20`','526776lOVLzN','158410GsqvWX','expectedRevision','266marifl','POST','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','verified','176832vNGLXa','planned','rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','push','revision','changeSummary','cause','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','instant_api_policy_rollback_verification_unavailable','41936iLuqUF','2715111kQfqpr','target','\x20forward\x20to\x20revision\x20','3320110KbbCPq','`;\x20do\x20not\x20resubmit\x20automatically.','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','high-risk-write','9294MPCFWz','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','before','configHash'];a146_0x1733=function(){return _0x57d8e9;};return a146_0x1733();}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x1718d0){const _0xc76bab=a146_0x73ad,_0x167d29=readRevision(_0x1718d0),_0x7a0ee0=readChangeSummary(_0x1718d0),_0x400320=readExpectedRevision(_0x1718d0),[_0x733ad2,_0x220ad0]=await Promise[_0xc76bab(0x154)]([getCurrentInstantApiPolicy(_0x1718d0['appCode']),getInstantApiPolicyRevision(_0x1718d0[_0xc76bab(0x152)],_0x167d29)]);if(!_0x733ad2)throw instantApiPolicyError(_0xc76bab(0x153),_0xc76bab(0x14f)+_0x1718d0[_0xc76bab(0x152)]+'.');return assertExpectedRevision(_0x733ad2,_0x400320),{'revision':_0x167d29,'changeSummary':_0x7a0ee0,'expectedRevision':_0x400320,'before':_0x733ad2,'target':_0x220ad0};}export const instantApiPolicyRollback={'service':'instant-api-policy','command':a146_0x47627f(0x139),'description':a146_0x47627f(0x135),'risk':a146_0x47627f(0x148),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x47627f(0x147),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x3687df){readRevision(_0x3687df),readChangeSummary(_0x3687df),readExpectedRevision(_0x3687df);},async 'dryRun'(_0x646d7a){const _0x520f0=a146_0x47627f,_0x3b6e03=await prepareRollback(_0x646d7a);return asDryRunResult({'operation':_0x520f0(0x139),'selector':{'appCode':_0x646d7a[_0x520f0(0x152)],'sourceRevision':_0x3b6e03[_0x520f0(0x13c)]},'before':projectCurrentPolicy(_0x3b6e03[_0x520f0(0x14b)]),'after':{'revision':_0x3b6e03['before'][_0x520f0(0x13c)]+0x1,'sourceRevision':projectRevisionDetail(_0x3b6e03[_0x520f0(0x143)])},'dryRun':!![],'backend':{'method':_0x520f0(0x134),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x3b6e03[_0x520f0(0x132)]),'verification':{'status':_0x520f0(0x138),'expectedRevision':_0x3b6e03['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x520f0(0x134),'url':INSTANT_API_POLICY_BASE_PATH+_0x520f0(0x14d)});},async 'execute'(_0x64396b){const _0x289d9e=a146_0x47627f,_0x2f17dd=await prepareRollback(_0x64396b);let _0x467f76=![];try{await rollbackInstantApiPolicy({'appCode':_0x64396b[_0x289d9e(0x152)],'revision':_0x2f17dd['revision'],..._0x2f17dd[_0x289d9e(0x13d)]?{'changeSummary':_0x2f17dd['changeSummary']}:{}});}catch(_0x5ef019){if(!isPlatformTransportFailure(_0x5ef019))throw _0x5ef019;_0x467f76=!![];}let _0x4e229d;try{_0x4e229d=await getCurrentInstantApiPolicy(_0x64396b['appCode']);}catch(_0x3fced2){const _0xd3240=instantApiPolicyError(_0x467f76?_0x289d9e(0x14e):_0x289d9e(0x140),_0x289d9e(0x13a),_0x289d9e(0x12f)+mutationLookupCommand()+_0x289d9e(0x146));Object['defineProperty'](_0xd3240,_0x289d9e(0x13e),{'value':_0x3fced2,'enumerable':![]});throw _0xd3240;}const _0x3ce6e6=_0x4e229d&&_0x4e229d['revision']>_0x2f17dd[_0x289d9e(0x14b)][_0x289d9e(0x13c)],_0x3f9091=_0x4e229d?.[_0x289d9e(0x14c)]===_0x2f17dd['target'][_0x289d9e(0x14c)];if(!_0x4e229d||!_0x3ce6e6||!_0x3f9091)throw instantApiPolicyError(_0x467f76?'instant_api_policy_rollback_outcome_unknown':'instant_api_policy_rollback_verification_failed',_0x289d9e(0x13f),_0x289d9e(0x12f)+mutationLookupCommand()+_0x289d9e(0x146));const _0x32b542=[...expectedRevisionWarnings(_0x2f17dd['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x467f76&&_0x32b542[_0x289d9e(0x13b)](_0x289d9e(0x14a)),{'ok':!![],'data':{'operation':_0x289d9e(0x139),'selector':{'appCode':_0x64396b[_0x289d9e(0x152)],'sourceRevision':_0x2f17dd[_0x289d9e(0x13c)]},'before':projectCurrentPolicy(_0x2f17dd['before']),'after':projectCurrentPolicy(_0x4e229d),'dryRun':![],'backend':{'method':_0x289d9e(0x134),'path':INSTANT_API_POLICY_BASE_PATH+_0x289d9e(0x14d)},'warnings':_0x32b542,'verification':{'status':_0x289d9e(0x136),'recoveredAfterUnknownResponse':_0x467f76,'expectedRevision':_0x2f17dd[_0x289d9e(0x132)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Rolled\x20Instant\x20API\x20policy\x20revision\x20'+_0x2f17dd[_0x289d9e(0x13c)]+_0x289d9e(0x144)+_0x4e229d[_0x289d9e(0x13c)]};}};
1
+ const a146_0x23445d=a146_0x47ab;(function(_0x57d389,_0xe5b920){const _0x105106=a146_0x47ab,_0x734a72=_0x57d389();while(!![]){try{const _0x1b7654=parseInt(_0x105106(0x132))/0x1*(-parseInt(_0x105106(0x12c))/0x2)+-parseInt(_0x105106(0x124))/0x3*(parseInt(_0x105106(0x137))/0x4)+parseInt(_0x105106(0x13c))/0x5*(parseInt(_0x105106(0x146))/0x6)+parseInt(_0x105106(0x145))/0x7+-parseInt(_0x105106(0x142))/0x8*(-parseInt(_0x105106(0x120))/0x9)+-parseInt(_0x105106(0x143))/0xa+parseInt(_0x105106(0x12e))/0xb;if(_0x1b7654===_0xe5b920)break;else _0x734a72['push'](_0x734a72['shift']());}catch(_0x4b3ed9){_0x734a72['push'](_0x734a72['shift']());}}}(a146_0x1cb0,0x1fc29));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a146_0x47ab(_0x519638,_0x3f983e){_0x519638=_0x519638-0x11e;const _0x1cb0ab=a146_0x1cb0();let _0x47ab3d=_0x1cb0ab[_0x519638];return _0x47ab3d;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x331ba7){const _0x36491a=a146_0x47ab,_0x17c85e=readRevision(_0x331ba7),_0x3fc641=readChangeSummary(_0x331ba7),_0x205a28=readExpectedRevision(_0x331ba7),[_0x36fe14,_0x529db1]=await Promise[_0x36491a(0x13b)]([getCurrentInstantApiPolicy(_0x331ba7[_0x36491a(0x12f)]),getInstantApiPolicyRevision(_0x331ba7[_0x36491a(0x12f)],_0x17c85e)]);if(!_0x36fe14)throw instantApiPolicyError(_0x36491a(0x13e),_0x36491a(0x13a)+_0x331ba7[_0x36491a(0x12f)]+'.');return assertExpectedRevision(_0x36fe14,_0x205a28),{'revision':_0x17c85e,'changeSummary':_0x3fc641,'expectedRevision':_0x205a28,'before':_0x36fe14,'target':_0x529db1};}function a146_0x1cb0(){const _0x48f881=['60vgeoaJ','/rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','instant_api_policy_rollback_verification_failed','1800567mkEuFY','high-risk-write','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','revision','3nTBIbq','instant-api-policy','verified','target','instant_api_policy_rollback_verification_unavailable','Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','Inspect\x20with\x20`','12NmIPTD','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','446545cwmZTA','appCode','cause','expectedRevision','41198OHprrA','instant_api_policy_rollback_outcome_unknown','defineProperty','before','rollback','246572lkrujo','`;\x20do\x20not\x20resubmit\x20automatically.','planned','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','all','91570sCSDxa','\x20forward\x20to\x20revision\x20','instant_api_policy_not_configured','configHash','changeSummary','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','8vUNxsE','1500810SEQvNw','POST','1156421DTMHvX'];a146_0x1cb0=function(){return _0x48f881;};return a146_0x1cb0();}export const instantApiPolicyRollback={'service':a146_0x23445d(0x125),'command':a146_0x23445d(0x136),'description':a146_0x23445d(0x141),'risk':a146_0x23445d(0x121),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x23445d(0x12d),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x303acb){readRevision(_0x303acb),readChangeSummary(_0x303acb),readExpectedRevision(_0x303acb);},async 'dryRun'(_0x178c91){const _0x2f1d76=a146_0x23445d,_0x435309=await prepareRollback(_0x178c91);return asDryRunResult({'operation':_0x2f1d76(0x136),'selector':{'appCode':_0x178c91[_0x2f1d76(0x12f)],'sourceRevision':_0x435309[_0x2f1d76(0x123)]},'before':projectCurrentPolicy(_0x435309['before']),'after':{'revision':_0x435309[_0x2f1d76(0x135)][_0x2f1d76(0x123)]+0x1,'sourceRevision':projectRevisionDetail(_0x435309['target'])},'dryRun':!![],'backend':{'method':_0x2f1d76(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)},'warnings':expectedRevisionWarnings(_0x435309['expectedRevision']),'verification':{'status':_0x2f1d76(0x139),'expectedRevision':_0x435309['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x2f1d76(0x144),'url':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)});},async 'execute'(_0x4551d7){const _0x1ef506=a146_0x23445d,_0x388c2d=await prepareRollback(_0x4551d7);let _0x124d60=![];try{await rollbackInstantApiPolicy({'appCode':_0x4551d7[_0x1ef506(0x12f)],'revision':_0x388c2d['revision'],..._0x388c2d['changeSummary']?{'changeSummary':_0x388c2d[_0x1ef506(0x140)]}:{}});}catch(_0x2f8757){if(!isPlatformTransportFailure(_0x2f8757))throw _0x2f8757;_0x124d60=!![];}let _0x513e1f;try{_0x513e1f=await getCurrentInstantApiPolicy(_0x4551d7[_0x1ef506(0x12f)]);}catch(_0xa693cf){const _0x1aba43=instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x128),_0x1ef506(0x11e),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x1ef506(0x138));Object[_0x1ef506(0x134)](_0x1aba43,_0x1ef506(0x130),{'value':_0xa693cf,'enumerable':![]});throw _0x1aba43;}const _0x3612a6=_0x513e1f&&_0x513e1f[_0x1ef506(0x123)]>_0x388c2d['before'][_0x1ef506(0x123)],_0x42b116=_0x513e1f?.['configHash']===_0x388c2d[_0x1ef506(0x127)][_0x1ef506(0x13f)];if(!_0x513e1f||!_0x3612a6||!_0x42b116)throw instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x11f),_0x1ef506(0x122),_0x1ef506(0x12b)+mutationLookupCommand()+_0x1ef506(0x138));const _0x3dc890=[...expectedRevisionWarnings(_0x388c2d[_0x1ef506(0x131)]),RUNTIME_CACHE_WARNING];return _0x124d60&&_0x3dc890[_0x1ef506(0x12a)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0x4551d7[_0x1ef506(0x12f)],'sourceRevision':_0x388c2d['revision']},'before':projectCurrentPolicy(_0x388c2d[_0x1ef506(0x135)]),'after':projectCurrentPolicy(_0x513e1f),'dryRun':![],'backend':{'method':_0x1ef506(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x1ef506(0x147)},'warnings':_0x3dc890,'verification':{'status':_0x1ef506(0x126),'recoveredAfterUnknownResponse':_0x124d60,'expectedRevision':_0x388c2d[_0x1ef506(0x131)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1ef506(0x129)+_0x388c2d['revision']+_0x1ef506(0x13d)+_0x513e1f[_0x1ef506(0x123)]};}};
@@ -1 +1 @@
1
- function a147_0x194d(_0x1ae34c,_0x553f2f){_0x1ae34c=_0x1ae34c-0x6c;const _0x481845=a147_0x4818();let _0x194dfc=_0x481845[_0x1ae34c];return _0x194dfc;}const a147_0xdbe3a6=a147_0x194d;(function(_0x1b54db,_0x24d247){const _0x1d00cd=a147_0x194d,_0x80e83c=_0x1b54db();while(!![]){try{const _0x231471=parseInt(_0x1d00cd(0x81))/0x1+parseInt(_0x1d00cd(0x8d))/0x2+parseInt(_0x1d00cd(0x6e))/0x3+parseInt(_0x1d00cd(0x83))/0x4*(parseInt(_0x1d00cd(0x9f))/0x5)+-parseInt(_0x1d00cd(0x85))/0x6*(parseInt(_0x1d00cd(0x91))/0x7)+parseInt(_0x1d00cd(0xa1))/0x8+parseInt(_0x1d00cd(0x71))/0x9*(-parseInt(_0x1d00cd(0x8b))/0xa);if(_0x231471===_0x24d247)break;else _0x80e83c['push'](_0x80e83c['shift']());}catch(_0x44864b){_0x80e83c['push'](_0x80e83c['shift']());}}}(a147_0x4818,0xe2061));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0xdbe3a6(0x75);export const RUNTIME_CACHE_WARNING=a147_0xdbe3a6(0x98);export const NON_ATOMIC_EXPECTED_REVISION_WARNING='--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.';export const FORCE_FLAG={'name':a147_0xdbe3a6(0x94),'type':a147_0xdbe3a6(0x93),'default':![],'description':a147_0xdbe3a6(0x76)};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':a147_0xdbe3a6(0x9a),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a147_0xdbe3a6(0x99),'type':a147_0xdbe3a6(0x79),'required':!![],'description':a147_0xdbe3a6(0x7f)};export const EXPECTED_REVISION_FLAG={'name':a147_0xdbe3a6(0x9e),'type':a147_0xdbe3a6(0x79),'required':![],'description':a147_0xdbe3a6(0x6d)};export function requireForceConfirmation(_0xe308ba){const _0x5c7b1b=a147_0xdbe3a6;if(!_0xe308ba[_0x5c7b1b(0x6c)]('force')||_0xe308ba['bool'](_0x5c7b1b(0x89)))return;throw instantApiPolicyError(_0x5c7b1b(0x72),_0x5c7b1b(0x8e),_0x5c7b1b(0x7d));}export function readChangeSummary(_0x461f7a){const _0x246803=a147_0xdbe3a6,_0xafb001=_0x461f7a[_0x246803(0x7e)]('change-summary')[_0x246803(0x97)]();if(!_0xafb001)return undefined;if(_0xafb001['length']>0x7d0)throw instantApiPolicyError(_0x246803(0x7b),_0x246803(0x78));return _0xafb001;}export function readRevision(_0xc662d9){const _0x458d8c=a147_0xdbe3a6,_0x589a4f=_0xc662d9[_0x458d8c(0x8c)]('revision',Number[_0x458d8c(0x7a)]);if(!Number[_0x458d8c(0xa2)](_0x589a4f)||_0x589a4f<=0x0)throw instantApiPolicyError(_0x458d8c(0x95),_0x458d8c(0x86));return _0x589a4f;}export function readExpectedRevision(_0x3ba6cb){const _0xfec68a=a147_0xdbe3a6;if(_0x3ba6cb[_0xfec68a(0x82)](_0xfec68a(0x9e))===undefined)return undefined;const _0x36b068=_0x3ba6cb[_0xfec68a(0x8c)](_0xfec68a(0x9e),Number[_0xfec68a(0x7a)]);if(!Number['isSafeInteger'](_0x36b068)||_0x36b068<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0xfec68a(0x90));return _0x36b068;}export function assertExpectedRevision(_0x1fc25a,_0x23dcec){const _0x92d9ff=a147_0xdbe3a6;if(_0x23dcec===undefined)return;const _0x9e4fa5=_0x1fc25a?.[_0x92d9ff(0x99)]??0x0;if(_0x9e4fa5!==_0x23dcec)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x92d9ff(0x6f),_0x92d9ff(0xa0)+_0x23dcec+_0x92d9ff(0x9b)+_0x9e4fa5+_0x92d9ff(0x88));}export async function readFixedPolicy(_0x491727){const _0x10c860=a147_0xdbe3a6,_0x2893fc=loadInstantApiPolicyLocalConfig(_0x491727[_0x10c860(0x96)]),_0x202759=await readInstantApiPolicyConfigFile(_0x2893fc);return{'local':_0x2893fc,'config':_0x202759};}export function projectCurrentPolicy(_0x438f7c){const _0x19f5f1=a147_0xdbe3a6;if(!_0x438f7c)return null;return{'id':_0x438f7c['id'],'appCode':_0x438f7c['appCode'],'revision':_0x438f7c[_0x19f5f1(0x99)],'configHash':_0x438f7c[_0x19f5f1(0x8a)],'enabled':_0x438f7c[_0x19f5f1(0x74)],'config':_0x438f7c[_0x19f5f1(0x84)],'createUserId':_0x438f7c['createUserId']??null,'updateUserId':_0x438f7c[_0x19f5f1(0x77)]??null,'gmtCreate':_0x438f7c[_0x19f5f1(0x9c)]??null,'gmtModified':_0x438f7c[_0x19f5f1(0x8f)]??null};}function a147_0x4818(){const _0x3abe7a=['The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','changeSummary','6605181grZKIr','instant_api_policy_force_confirmation_required','instantApi','enabled','/smartapi/instant-api-policy','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','updateUserId','--change-summary\x20cannot\x20exceed\x202000\x20characters.','number','NaN','instant_api_policy_change_summary_invalid','operatorId','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','str','Positive\x20published\x20policy\x20revision','rules','266211ScioIZ','flag','9668wvEUCi','config','12EAMpYP','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','policyId','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','yes','configHash','10SZLQwj','num','459478LRLoFg','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','gmtModified','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','2184518qtklVs','defaults','boolean','force','instant_api_policy_revision_invalid','appCode','trim','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','revision','string',';\x20current\x20revision\x20is\x20','gmtCreate','version','expected-revision','670ZOErhv','Expected\x20revision\x20','1524432wdBwge','isSafeInteger','bool','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','3820404jfVmYz'];a147_0x4818=function(){return _0x3abe7a;};return a147_0x4818();}export function projectRevisionSummary(_0x173bee){const _0x45d75a=a147_0xdbe3a6;return{'id':_0x173bee['id'],'policyId':_0x173bee[_0x45d75a(0x87)],'appCode':_0x173bee[_0x45d75a(0x96)],'revision':_0x173bee[_0x45d75a(0x99)],'configHash':_0x173bee[_0x45d75a(0x8a)],'changeType':_0x173bee['changeType'],'changeSummary':_0x173bee[_0x45d75a(0x70)]??null,'operatorId':_0x173bee[_0x45d75a(0x7c)]??null,'gmtCreate':_0x173bee[_0x45d75a(0x9c)]??null,'version':_0x173bee[_0x45d75a(0x84)][_0x45d75a(0x9d)],'defaultAction':_0x173bee['config'][_0x45d75a(0x92)][_0x45d75a(0x73)],'ruleCount':_0x173bee[_0x45d75a(0x84)][_0x45d75a(0x80)]?.['length']??0x0};}export function projectRevisionDetail(_0xa43229){const _0x5d666e=a147_0xdbe3a6;return{...projectRevisionSummary(_0xa43229),'config':_0xa43229[_0x5d666e(0x84)]};}export function expectedRevisionWarnings(_0x3af6ec){return _0x3af6ec===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}
1
+ function a147_0x1c41(_0x56f30e,_0x429d7a){_0x56f30e=_0x56f30e-0x164;const _0x754b2f=a147_0x754b();let _0x1c4129=_0x754b2f[_0x56f30e];return _0x1c4129;}const a147_0x53db13=a147_0x1c41;(function(_0x514c5f,_0x577c94){const _0x3910ae=a147_0x1c41,_0x1077de=_0x514c5f();while(!![]){try{const _0x2b702f=parseInt(_0x3910ae(0x186))/0x1+parseInt(_0x3910ae(0x192))/0x2+-parseInt(_0x3910ae(0x172))/0x3*(parseInt(_0x3910ae(0x18d))/0x4)+-parseInt(_0x3910ae(0x16d))/0x5+-parseInt(_0x3910ae(0x191))/0x6*(-parseInt(_0x3910ae(0x176))/0x7)+parseInt(_0x3910ae(0x179))/0x8+parseInt(_0x3910ae(0x16b))/0x9;if(_0x2b702f===_0x577c94)break;else _0x1077de['push'](_0x1077de['shift']());}catch(_0x8a3112){_0x1077de['push'](_0x1077de['shift']());}}}(a147_0x754b,0x73944));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0x53db13(0x198);export const RUNTIME_CACHE_WARNING=a147_0x53db13(0x173);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a147_0x53db13(0x185);export const FORCE_FLAG={'name':a147_0x53db13(0x18c),'type':a147_0x53db13(0x165),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':'string','required':![],'description':a147_0x53db13(0x16c)};export const REVISION_FLAG={'name':'revision','type':a147_0x53db13(0x175),'required':!![],'description':a147_0x53db13(0x16f)};function a147_0x754b(){const _0x14d104=['1492alvNmo','changeSummary','enabled','str','123492QYXVlz','1791428SCzxKm','configHash','num','Expected\x20revision\x20','appCode','updateUserId','/smartapi/instant-api-policy','policyId','boolean','change-summary','version','instantApi','length','expected-revision','335556YZYZNV','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','3653615EWswml','flag','Positive\x20published\x20policy\x20revision','trim','config','6744VzOezc','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','defaults','number','63KgJLBc','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','yes','3405384YdtRsI','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','rules','instant_api_policy_force_confirmation_required','--change-summary\x20cannot\x20exceed\x202000\x20characters.','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','bool','revision','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','gmtModified','instant_api_policy_revision_invalid','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','498730zpmbGt','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','NaN','isSafeInteger','changeType','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','force'];a147_0x754b=function(){return _0x14d104;};return a147_0x754b();}export const EXPECTED_REVISION_FLAG={'name':a147_0x53db13(0x16a),'type':a147_0x53db13(0x175),'required':![],'description':a147_0x53db13(0x17e)};export function requireForceConfirmation(_0x5803eb){const _0x557043=a147_0x53db13;if(!_0x5803eb[_0x557043(0x17f)](_0x557043(0x18c))||_0x5803eb['bool'](_0x557043(0x178)))return;throw instantApiPolicyError(_0x557043(0x17c),_0x557043(0x187),_0x557043(0x184));}export function readChangeSummary(_0x26f911){const _0x2b587b=a147_0x53db13,_0x3ad2b0=_0x26f911[_0x2b587b(0x190)](_0x2b587b(0x166))[_0x2b587b(0x170)]();if(!_0x3ad2b0)return undefined;if(_0x3ad2b0[_0x2b587b(0x169)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x2b587b(0x17d));return _0x3ad2b0;}export function readRevision(_0x10d9d4){const _0x23e6c9=a147_0x53db13,_0x5b260f=_0x10d9d4[_0x23e6c9(0x194)](_0x23e6c9(0x180),Number[_0x23e6c9(0x188)]);if(!Number['isSafeInteger'](_0x5b260f)||_0x5b260f<=0x0)throw instantApiPolicyError(_0x23e6c9(0x183),_0x23e6c9(0x18b));return _0x5b260f;}export function readExpectedRevision(_0x31283d){const _0x3b7de2=a147_0x53db13;if(_0x31283d[_0x3b7de2(0x16e)](_0x3b7de2(0x16a))===undefined)return undefined;const _0x140fba=_0x31283d[_0x3b7de2(0x194)](_0x3b7de2(0x16a),Number['NaN']);if(!Number[_0x3b7de2(0x189)](_0x140fba)||_0x140fba<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x140fba;}export function assertExpectedRevision(_0x4504cd,_0x43cc5f){const _0x6eeb48=a147_0x53db13;if(_0x43cc5f===undefined)return;const _0xdce5df=_0x4504cd?.[_0x6eeb48(0x180)]??0x0;if(_0xdce5df!==_0x43cc5f)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x6eeb48(0x17a),_0x6eeb48(0x195)+_0x43cc5f+';\x20current\x20revision\x20is\x20'+_0xdce5df+_0x6eeb48(0x181));}export async function readFixedPolicy(_0x10926d){const _0x2ae511=loadInstantApiPolicyLocalConfig(_0x10926d['appCode']),_0x5f2bf7=await readInstantApiPolicyConfigFile(_0x2ae511);return{'local':_0x2ae511,'config':_0x5f2bf7};}export function projectCurrentPolicy(_0x5a847a){const _0x305c42=a147_0x53db13;if(!_0x5a847a)return null;return{'id':_0x5a847a['id'],'appCode':_0x5a847a[_0x305c42(0x196)],'revision':_0x5a847a[_0x305c42(0x180)],'configHash':_0x5a847a[_0x305c42(0x193)],'enabled':_0x5a847a[_0x305c42(0x18f)],'config':_0x5a847a[_0x305c42(0x171)],'createUserId':_0x5a847a['createUserId']??null,'updateUserId':_0x5a847a[_0x305c42(0x197)]??null,'gmtCreate':_0x5a847a['gmtCreate']??null,'gmtModified':_0x5a847a[_0x305c42(0x182)]??null};}export function projectRevisionSummary(_0x1ca15c){const _0xe05b7c=a147_0x53db13;return{'id':_0x1ca15c['id'],'policyId':_0x1ca15c[_0xe05b7c(0x164)],'appCode':_0x1ca15c[_0xe05b7c(0x196)],'revision':_0x1ca15c['revision'],'configHash':_0x1ca15c['configHash'],'changeType':_0x1ca15c[_0xe05b7c(0x18a)],'changeSummary':_0x1ca15c[_0xe05b7c(0x18e)]??null,'operatorId':_0x1ca15c['operatorId']??null,'gmtCreate':_0x1ca15c['gmtCreate']??null,'version':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x167)],'defaultAction':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x174)][_0xe05b7c(0x168)],'ruleCount':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x17b)]?.['length']??0x0};}export function projectRevisionDetail(_0x1de31d){const _0x496ca1=a147_0x53db13;return{...projectRevisionSummary(_0x1de31d),'config':_0x1de31d[_0x496ca1(0x171)]};}export function expectedRevisionWarnings(_0x267f4f){return _0x267f4f===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x44179f=a147_0x53db13;return _0x44179f(0x177);}
@@ -1 +1 @@
1
- const a148_0x4bc61e=a148_0x5de9;function a148_0x406c(){const _0xccabe1=['176180WeTuXK','1701MnokqY','normalizedConfig','appCode','validate','read','3vUbfiU','913rSqIap','4920UodyXL','/validate','11964tFWuHS','4792awbCiM','policyFilePath','311604WVSbzT','POST','517996UXNDUF','Validated\x20Instant\x20API\x20policy\x20for\x20','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','policyRelativePath','104912CbhWLj','15DDKGPI','configHash','valid','18Bwczsp'];a148_0x406c=function(){return _0xccabe1;};return a148_0x406c();}(function(_0x2aa9cd,_0x17c9cb){const _0xb0b5b8=a148_0x5de9,_0x2b2e93=_0x2aa9cd();while(!![]){try{const _0x3168b0=parseInt(_0xb0b5b8(0xb2))/0x1+parseInt(_0xb0b5b8(0xa7))/0x2+parseInt(_0xb0b5b8(0xa5))/0x3*(parseInt(_0xb0b5b8(0xae))/0x4)+parseInt(_0xb0b5b8(0xb3))/0x5*(-parseInt(_0xb0b5b8(0xac))/0x6)+parseInt(_0xb0b5b8(0xa0))/0x7*(parseInt(_0xb0b5b8(0xaa))/0x8)+-parseInt(_0xb0b5b8(0xb6))/0x9*(parseInt(_0xb0b5b8(0xb7))/0xa)+-parseInt(_0xb0b5b8(0xa6))/0xb*(parseInt(_0xb0b5b8(0xa9))/0xc);if(_0x3168b0===_0x17c9cb)break;else _0x2b2e93['push'](_0x2b2e93['shift']());}catch(_0x34091a){_0x2b2e93['push'](_0x2b2e93['shift']());}}}(a148_0x406c,0x1a85f));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';function a148_0x5de9(_0x1c5593,_0x5a1bd7){_0x1c5593=_0x1c5593-0xa0;const _0x406c37=a148_0x406c();let _0x5de94c=_0x406c37[_0x1c5593];return _0x5de94c;}export const instantApiPolicyValidate={'service':'instant-api-policy','command':a148_0x4bc61e(0xa3),'description':a148_0x4bc61e(0xb0),'risk':a148_0x4bc61e(0xa4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0xbbf81d){const _0x583142=a148_0x4bc61e,{local:_0x224f33,config:_0x36f6cf}=await readFixedPolicy(_0xbbf81d),_0x1705fb=await validateInstantApiPolicy({'appCode':_0xbbf81d[_0x583142(0xa2)],'config':_0x36f6cf});return{'ok':!![],'data':{'operation':_0x583142(0xa3),'selector':{'appCode':_0xbbf81d[_0x583142(0xa2)]},'filePath':_0x224f33[_0x583142(0xab)],'relativePath':_0x224f33[_0x583142(0xb1)],'valid':_0x1705fb[_0x583142(0xb5)],'configHash':_0x1705fb[_0x583142(0xb4)],'normalizedConfig':_0x1705fb[_0x583142(0xa1)],'backend':{'method':_0x583142(0xad),'path':INSTANT_API_POLICY_BASE_PATH+_0x583142(0xa8)}},'message':_0x583142(0xaf)+_0xbbf81d[_0x583142(0xa2)]};}};
1
+ const a148_0x5bbb30=a148_0x26f3;function a148_0x26f3(_0x31ebac,_0x460d1e){_0x31ebac=_0x31ebac-0x162;const _0x2b96b4=a148_0x2b96();let _0x26f36f=_0x2b96b4[_0x31ebac];return _0x26f36f;}(function(_0x4f0431,_0x4ac4cd){const _0x178c9c=a148_0x26f3,_0x2b8523=_0x4f0431();while(!![]){try{const _0x3ec7ee=parseInt(_0x178c9c(0x177))/0x1+-parseInt(_0x178c9c(0x16f))/0x2+-parseInt(_0x178c9c(0x174))/0x3*(parseInt(_0x178c9c(0x165))/0x4)+-parseInt(_0x178c9c(0x170))/0x5+-parseInt(_0x178c9c(0x175))/0x6*(-parseInt(_0x178c9c(0x16e))/0x7)+-parseInt(_0x178c9c(0x162))/0x8*(parseInt(_0x178c9c(0x16b))/0x9)+-parseInt(_0x178c9c(0x16c))/0xa*(-parseInt(_0x178c9c(0x16a))/0xb);if(_0x3ec7ee===_0x4ac4cd)break;else _0x2b8523['push'](_0x2b8523['shift']());}catch(_0x52e2b8){_0x2b8523['push'](_0x2b8523['shift']());}}}(a148_0x2b96,0x26935));import{validateInstantApiPolicy}from'../../core/api-client.js';function a148_0x2b96(){const _0x50b160=['validate','49KoqaMd','403286MrMxVu','1333715RuUoOp','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','/validate','Validated\x20Instant\x20API\x20policy\x20for\x20','1731asSCPr','102318DSXCXl','POST','37028PSZgrd','184cqRQNb','normalizedConfig','read','1036hwKMOT','instant-api-policy','appCode','policyFilePath','configHash','7287401TTDXSJ','16848pdzEUg','10qKeeSa'];a148_0x2b96=function(){return _0x50b160;};return a148_0x2b96();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a148_0x5bbb30(0x166),'command':a148_0x5bbb30(0x16d),'description':a148_0x5bbb30(0x171),'risk':a148_0x5bbb30(0x164),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x193d16){const _0x562205=a148_0x5bbb30,{local:_0x2c69e1,config:_0x53b422}=await readFixedPolicy(_0x193d16),_0x32bbad=await validateInstantApiPolicy({'appCode':_0x193d16[_0x562205(0x167)],'config':_0x53b422});return{'ok':!![],'data':{'operation':'validate','selector':{'appCode':_0x193d16[_0x562205(0x167)]},'filePath':_0x2c69e1[_0x562205(0x168)],'relativePath':_0x2c69e1['policyRelativePath'],'valid':_0x32bbad['valid'],'configHash':_0x32bbad[_0x562205(0x169)],'normalizedConfig':_0x32bbad[_0x562205(0x163)],'backend':{'method':_0x562205(0x176),'path':INSTANT_API_POLICY_BASE_PATH+_0x562205(0x172)}},'message':_0x562205(0x173)+_0x193d16['appCode']};}};
@@ -1 +1 @@
1
- (function(_0x2862f4,_0xae873){const _0x1e82fa=a149_0x8ed4,_0x235d63=_0x2862f4();while(!![]){try{const _0x254957=-parseInt(_0x1e82fa(0x16b))/0x1*(parseInt(_0x1e82fa(0x166))/0x2)+-parseInt(_0x1e82fa(0x161))/0x3*(parseInt(_0x1e82fa(0x169))/0x4)+parseInt(_0x1e82fa(0x160))/0x5*(parseInt(_0x1e82fa(0x168))/0x6)+parseInt(_0x1e82fa(0x164))/0x7*(parseInt(_0x1e82fa(0x162))/0x8)+parseInt(_0x1e82fa(0x165))/0x9+-parseInt(_0x1e82fa(0x163))/0xa*(parseInt(_0x1e82fa(0x167))/0xb)+-parseInt(_0x1e82fa(0x16a))/0xc;if(_0x254957===_0xae873)break;else _0x235d63['push'](_0x235d63['shift']());}catch(_0x2ed788){_0x235d63['push'](_0x235d63['shift']());}}}(a149_0x1bfe,0xcb917));import{issueReport}from'../../commands/issue/report.js';function a149_0x8ed4(_0x479df7,_0x494bef){_0x479df7=_0x479df7-0x160;const _0x1bfed8=a149_0x1bfe();let _0x8ed44e=_0x1bfed8[_0x479df7];return _0x8ed44e;}function a149_0x1bfe(){const _0x5ee8ff=['6642852IVgMTG','1492ROPciP','30gRhQaI','348903ltGkhF','7359256auHTKQ','590dIWScv','7ZfEhpL','7474635WPueVP','718nLFWGg','14047aNAFCJ','596838mzKAbG','12HODOwu'];a149_0x1bfe=function(){return _0x5ee8ff;};return a149_0x1bfe();}export const issueDefinitions=[issueReport];
1
+ function a149_0x2ae6(){const _0x69e791=['22ffChuc','6kbGByQ','643928IJnEdS','1272195cCXHgF','3474SQUsjO','198ACrPVB','3623412WixGRb','31518kggDew','327350cokqkW','1298038fNKcCK','520XyAuTE','3hXyZNx'];a149_0x2ae6=function(){return _0x69e791;};return a149_0x2ae6();}(function(_0x426cd7,_0x43c510){const _0x40994e=a149_0x4904,_0x1dabee=_0x426cd7();while(!![]){try{const _0x3ff8d0=parseInt(_0x40994e(0x19d))/0x1*(parseInt(_0x40994e(0x19e))/0x2)+-parseInt(_0x40994e(0x198))/0x3*(parseInt(_0x40994e(0x19b))/0x4)+-parseInt(_0x40994e(0x19c))/0x5+-parseInt(_0x40994e(0x19a))/0x6*(parseInt(_0x40994e(0x196))/0x7)+-parseInt(_0x40994e(0x197))/0x8*(-parseInt(_0x40994e(0x1a0))/0x9)+-parseInt(_0x40994e(0x1a1))/0xa*(parseInt(_0x40994e(0x199))/0xb)+parseInt(_0x40994e(0x19f))/0xc;if(_0x3ff8d0===_0x43c510)break;else _0x1dabee['push'](_0x1dabee['shift']());}catch(_0x2e299c){_0x1dabee['push'](_0x1dabee['shift']());}}}(a149_0x2ae6,0x3294e));function a149_0x4904(_0xe23313,_0x3e998e){_0xe23313=_0xe23313-0x196;const _0x2ae623=a149_0x2ae6();let _0x49042b=_0x2ae623[_0xe23313];return _0x49042b;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a150_0x3b4b5f=a150_0x4752;(function(_0x40260f,_0x4d367b){const _0x5d3ee2=a150_0x4752,_0x1c02ee=_0x40260f();while(!![]){try{const _0x2c952a=parseInt(_0x5d3ee2(0x1c9))/0x1+parseInt(_0x5d3ee2(0x1ba))/0x2*(-parseInt(_0x5d3ee2(0x1b4))/0x3)+parseInt(_0x5d3ee2(0x1c7))/0x4+-parseInt(_0x5d3ee2(0x1bd))/0x5*(parseInt(_0x5d3ee2(0x1b5))/0x6)+parseInt(_0x5d3ee2(0x1b8))/0x7+parseInt(_0x5d3ee2(0x1ad))/0x8+-parseInt(_0x5d3ee2(0x1b0))/0x9;if(_0x2c952a===_0x4d367b)break;else _0x1c02ee['push'](_0x1c02ee['shift']());}catch(_0x1e131e){_0x1c02ee['push'](_0x1c02ee['shift']());}}}(a150_0x15c1,0x29685));import{CliError}from'../../errors.js';function a150_0x15c1(){const _0x1dde7e=['length','auth_required','\x22\x20\x5c','cancelled','not_in_project','1567208NVjiba','has','report','51192ANZiGw','=1\x20to\x20silence\x20this\x20hint.','write','RABETBASE_DISABLE_ISSUE_NUDGE','210006rhPMUE','20130MepqBi','network_error','stderr','1971368uAaAMK','Hit\x20a\x20','4zkVUKp','replace','config_missing','505KVoqik','unknown_command','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','join','\x20\x20\x20\x20--title\x20\x22','service','command','slice','validation_error','code','379632oUxMdo','\x20\x20Set\x20','81719vrdHQP','\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a150_0x15c1=function(){return _0x1dde7e;};return a150_0x15c1();}function a150_0x4752(_0x1b660a,_0x47fe79){_0x1b660a=_0x1b660a-0x1a6;const _0x15c1d0=a150_0x15c1();let _0x475211=_0x15c1d0[_0x1b660a];return _0x475211;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x3b4b5f(0x1b3);const NUDGE_SUPPRESSED_CODES=new Set([a150_0x3b4b5f(0x1ab),a150_0x3b4b5f(0x1a9),a150_0x3b4b5f(0x1bc),a150_0x3b4b5f(0x1ac),a150_0x3b4b5f(0x1be),'flag_missing',a150_0x3b4b5f(0x1c5),a150_0x3b4b5f(0x1b6)]),defaultWriter=_0x210922=>{const _0x226053=a150_0x3b4b5f;process[_0x226053(0x1b7)][_0x226053(0x1b2)](_0x210922);};export function shouldNudgeForError(_0x56f702,_0x54aa98){const _0x2de9cc=a150_0x3b4b5f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x54aa98[_0x2de9cc(0x1c2)]==='issue'&&_0x54aa98[_0x2de9cc(0x1c3)]===_0x2de9cc(0x1af))return![];if(_0x56f702 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2de9cc(0x1ae)](_0x56f702[_0x2de9cc(0x1c6)]);return!![];}export function printIssueReportNudgeForError(_0xfdace2,_0x5584ea,_0x334316=defaultWriter){if(!shouldNudgeForError(_0xfdace2,_0x5584ea))return;const _0x4d8f74=buildSuggestedTitle(_0xfdace2,_0x5584ea);_0x334316(formatNudge(_0x4d8f74));}function buildSuggestedTitle(_0x4f1fc4,_0x21446f){const _0x229be9=a150_0x3b4b5f,_0x5e4edd=_0x4f1fc4 instanceof Error?_0x4f1fc4['message']:String(_0x4f1fc4),_0x450e89=_0x5e4edd[_0x229be9(0x1bb)](/[\r\n]+/g,'\x20')[_0x229be9(0x1bb)](/\s+/g,'\x20')['trim']()[_0x229be9(0x1c4)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x438248=CLI_BIN_NAME+'\x20'+_0x21446f['service']+'\x20'+_0x21446f[_0x229be9(0x1c3)];return _0x450e89[_0x229be9(0x1a8)]>0x0?_0x438248+':\x20'+_0x450e89:_0x438248;}function formatNudge(_0x26a686){const _0x31c650=a150_0x3b4b5f;return['',_0x31c650(0x1b9)+CLI_BIN_NAME+_0x31c650(0x1a6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x31c650(0x1c1)+_0x26a686+_0x31c650(0x1aa),_0x31c650(0x1a7),_0x31c650(0x1bf),_0x31c650(0x1c8)+NUDGE_OPT_OUT_ENV+_0x31c650(0x1b1),''][_0x31c650(0x1c0)]('\x0a');}
1
+ function a150_0x19b3(){const _0x175035=['report','command','issue','1035RqpWeZ','401652Qbcmxt','1734AvMbkz','\x20\x20\x20\x20--title\x20\x22','message','write','service','validation_error','63710oNoYRG','unknown_command','168292agWRzX','not_in_project','=1\x20to\x20silence\x20this\x20hint.','3514gTsjKk','\x20\x20Set\x20','replace','\x20bug?\x20Help\x20us\x20fix\x20it:','\x22\x20\x5c','has','2017575hGENPk','slice','170872zuXvGe','join','config_missing','4dSzNLC','1172748PqRdWN','trim','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','auth_required'];a150_0x19b3=function(){return _0x175035;};return a150_0x19b3();}function a150_0x828a(_0x14ea65,_0x44abf8){_0x14ea65=_0x14ea65-0x1d0;const _0x19b301=a150_0x19b3();let _0x828a12=_0x19b301[_0x14ea65];return _0x828a12;}const a150_0x405c1f=a150_0x828a;(function(_0x2c411e,_0x43c9c8){const _0x2d4c05=a150_0x828a,_0x388f5c=_0x2c411e();while(!![]){try{const _0x79b805=-parseInt(_0x2d4c05(0x1ee))/0x1*(-parseInt(_0x2d4c05(0x1e0))/0x2)+parseInt(_0x2d4c05(0x1ef))/0x3+parseInt(_0x2d4c05(0x1d7))/0x4+parseInt(_0x2d4c05(0x1e9))/0x5+-parseInt(_0x2d4c05(0x1d8))/0x6*(parseInt(_0x2d4c05(0x1e3))/0x7)+-parseInt(_0x2d4c05(0x1eb))/0x8+parseInt(_0x2d4c05(0x1d6))/0x9*(-parseInt(_0x2d4c05(0x1de))/0xa);if(_0x79b805===_0x43c9c8)break;else _0x388f5c['push'](_0x388f5c['shift']());}catch(_0x2c0032){_0x388f5c['push'](_0x388f5c['shift']());}}}(a150_0x19b3,0x51226));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x405c1f(0x1d0);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a150_0x405c1f(0x1d2),a150_0x405c1f(0x1ed),a150_0x405c1f(0x1e1),a150_0x405c1f(0x1df),'flag_missing',a150_0x405c1f(0x1dd),a150_0x405c1f(0x1d1)]),defaultWriter=_0x1cdd48=>{const _0x666e04=a150_0x405c1f;process['stderr'][_0x666e04(0x1db)](_0x1cdd48);};export function shouldNudgeForError(_0xb0c09d,_0x10fe3e){const _0x329a3a=a150_0x405c1f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x10fe3e[_0x329a3a(0x1dc)]===_0x329a3a(0x1d5)&&_0x10fe3e[_0x329a3a(0x1d4)]===_0x329a3a(0x1d3))return![];if(_0xb0c09d instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x329a3a(0x1e8)](_0xb0c09d['code']);return!![];}export function printIssueReportNudgeForError(_0x47826e,_0x553867,_0x40c709=defaultWriter){if(!shouldNudgeForError(_0x47826e,_0x553867))return;const _0x1b1b36=buildSuggestedTitle(_0x47826e,_0x553867);_0x40c709(formatNudge(_0x1b1b36));}function buildSuggestedTitle(_0x93dce6,_0x4642df){const _0x1c5dce=a150_0x405c1f,_0x1e64aa=_0x93dce6 instanceof Error?_0x93dce6[_0x1c5dce(0x1da)]:String(_0x93dce6),_0x2a7226=_0x1e64aa[_0x1c5dce(0x1e5)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1c5dce(0x1f0)]()[_0x1c5dce(0x1ea)](0x0,0x78)[_0x1c5dce(0x1e5)](/"/g,'\x5c\x22'),_0x5843fe=CLI_BIN_NAME+'\x20'+_0x4642df[_0x1c5dce(0x1dc)]+'\x20'+_0x4642df['command'];return _0x2a7226['length']>0x0?_0x5843fe+':\x20'+_0x2a7226:_0x5843fe;}function formatNudge(_0x4a7398){const _0x18cf97=a150_0x405c1f;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x18cf97(0x1e6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x18cf97(0x1d9)+_0x4a7398+_0x18cf97(0x1e7),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x18cf97(0x1e4)+NUDGE_OPT_OUT_ENV+_0x18cf97(0x1e2),''][_0x18cf97(0x1ec)]('\x0a');}
@@ -1 +1 @@
1
- const a151_0x387f2f=a151_0x5491;(function(_0x81198c,_0x499717){const _0x42fdd7=a151_0x5491,_0x1383cc=_0x81198c();while(!![]){try{const _0xa792a9=parseInt(_0x42fdd7(0x1e8))/0x1+-parseInt(_0x42fdd7(0x1c5))/0x2+-parseInt(_0x42fdd7(0x1d8))/0x3*(-parseInt(_0x42fdd7(0x1e0))/0x4)+parseInt(_0x42fdd7(0x1f1))/0x5*(-parseInt(_0x42fdd7(0x1c0))/0x6)+parseInt(_0x42fdd7(0x1e4))/0x7*(-parseInt(_0x42fdd7(0x1c2))/0x8)+-parseInt(_0x42fdd7(0x1df))/0x9*(-parseInt(_0x42fdd7(0x1eb))/0xa)+-parseInt(_0x42fdd7(0x1d5))/0xb;if(_0xa792a9===_0x499717)break;else _0x1383cc['push'](_0x1383cc['shift']());}catch(_0xfedf0d){_0x1383cc['push'](_0x1383cc['shift']());}}}(a151_0x3f1d,0x4485d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a151_0x5491(_0x1d4a26,_0x3811c6){_0x1d4a26=_0x1d4a26-0x1b4;const _0x3f1d72=a151_0x3f1d();let _0x5491ad=_0x3f1d72[_0x1d4a26];return _0x5491ad;}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=a151_0x387f2f(0x1be);export const issueReport={'service':a151_0x387f2f(0x1e6),'command':a151_0x387f2f(0x1ef),'description':a151_0x387f2f(0x1d9),'risk':a151_0x387f2f(0x1c8),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0x387f2f(0x1ba),'flags':[{'name':a151_0x387f2f(0x1ca),'type':a151_0x387f2f(0x1b4),'required':!![],'description':a151_0x387f2f(0x1bf)},{'name':'description','type':a151_0x387f2f(0x1b4),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0x387f2f(0x1b4),'description':a151_0x387f2f(0x1e9)}],async 'validate'(_0x2c835){const _0x9397e0=a151_0x387f2f,_0x439744=_0x2c835[_0x9397e0(0x1b9)](_0x9397e0(0x1ca))[_0x9397e0(0x1ec)](),_0x3d91e5=_0x2c835[_0x9397e0(0x1b9)](_0x9397e0(0x1d7))[_0x9397e0(0x1ec)](),_0x162f19=_0x2c835['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x439744)throw CliErrors['flagMissing'](_0x9397e0(0x1ca),_0x9397e0(0x1cb));const _0x108175=_0x3d91e5[_0x9397e0(0x1ee)]>0x0,_0x1141ab=_0x162f19['length']>0x0;if(_0x108175===_0x1141ab)throw CliErrors[_0x9397e0(0x1e7)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x9397e0(0x1d0));if(_0x1141ab){const _0x2f9a29=resolve(process['cwd'](),_0x162f19);if(!existsSync(_0x2f9a29))throw CliErrors[_0x9397e0(0x1e7)](_0x9397e0(0x1d3)+_0x2f9a29);}},async 'dryRun'(_0xc90b20){const _0x809f09=a151_0x387f2f,_0x3ad337=await prepareIssueReport(_0xc90b20);return{'method':_0x809f09(0x1d2),'url':_0x809f09(0x1ce)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3ad337['title'],'issue.description':_0x3ad337[_0x809f09(0x1d7)],'issue.description_original_bytes':_0x3ad337['sanitize'][_0x809f09(0x1dc)],'issue.description_truncated':_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c9)],'issue.description_redactions':_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c4)],'issue.description_redaction_kinds':_0x3ad337['sanitize'][_0x809f09(0x1f3)][_0x809f09(0x1ed)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x809f09(0x1e1)+_0x3ad337[_0x809f09(0x1dd)],_0x3ad337[_0x809f09(0x1d4)]?'descriptionFile:\x20'+_0x3ad337['descriptionFilePath']:null,_0x3ad337[_0x809f09(0x1d6)]['truncated']?_0x809f09(0x1cc)+_0x3ad337[_0x809f09(0x1d6)]['originalBytes']+_0x809f09(0x1c6):null,_0x3ad337[_0x809f09(0x1d6)]['redactionCount']>0x0?'redactions:\x20'+_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1c4)]+'\x20('+_0x3ad337[_0x809f09(0x1d6)][_0x809f09(0x1f3)][_0x809f09(0x1ed)](',\x20')+')':null][_0x809f09(0x1c3)](Boolean)[_0x809f09(0x1ed)]('\x0a')};},async 'execute'(_0x45212f){const _0x1d4cb3=a151_0x387f2f,_0x4cf96f=await prepareIssueReport(_0x45212f);try{await sendPlatformIssueCollectLog({'title':_0x4cf96f[_0x1d4cb3(0x1ca)],'description':_0x4cf96f[_0x1d4cb3(0x1d7)],'sanitize':{'originalBytes':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1dc)],'truncated':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c9)],'redactionCount':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c4)],'redactionKinds':_0x4cf96f['sanitize'][_0x1d4cb3(0x1f3)]}});}catch(_0x5e4bcf){throw CliErrors['apiError'](_0x1d4cb3(0x1ea)+(_0x5e4bcf instanceof Error?_0x5e4bcf[_0x1d4cb3(0x1d1)]:String(_0x5e4bcf)),_0x1d4cb3(0x1f2));}return{'ok':!![],'message':buildResultMessage(_0x4cf96f[_0x1d4cb3(0x1d6)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1d4cb3(0x1bb),'issue.description',_0x1d4cb3(0x1db),_0x1d4cb3(0x1cf),'issue.description_redactions',_0x1d4cb3(0x1b6)],'issue':{'title':_0x4cf96f[_0x1d4cb3(0x1ca)],'descriptionLength':_0x4cf96f[_0x1d4cb3(0x1d7)][_0x1d4cb3(0x1ee)],'descriptionSource':_0x4cf96f[_0x1d4cb3(0x1dd)],..._0x4cf96f['descriptionFilePath']?{'descriptionFile':_0x4cf96f[_0x1d4cb3(0x1d4)]}:{},'sanitize':{'originalBytes':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1dc)],'truncated':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1c9)],'redactions':_0x4cf96f[_0x1d4cb3(0x1d6)]['redactionCount'],'redactionKinds':_0x4cf96f[_0x1d4cb3(0x1d6)][_0x1d4cb3(0x1f3)]}}}};}};function a151_0x3f1d(){const _0x34d1c2=['187453CKfwVY','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','10yIgIEp','trim','join','length','report','redacted\x20','265NbOYMR','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactionKinds','string','Issue\x20description\x20file\x20is\x20empty:\x20','issue.description_redaction_kinds','truncated\x20from\x20','Platform\x20issue\x20reported','str','compress','issue.title','file','Platform\x20issue\x20reported\x20(','description-file','One-line\x20issue\x20summary','28164MhtqLg','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','559312IcfMVU','filter','redactionCount','316824EoKEMu','\x20bytes','push','write','truncated','title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','truncated:\x20original\x20','inline','otel://','issue.description_truncated','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','message','POST','File\x20not\x20found:\x20','descriptionFilePath','415624snLcZp','sanitize','description','339aqoZfu','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','utf8','issue.description_original_bytes','originalBytes','descriptionSource','Issue\x20description\x20cannot\x20be\x20empty.','2791143EzGrgH','10548VFuojP','descriptionSource:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','\x20secret(s):\x20','7jqIjOP','cwd','issue','validation'];a151_0x3f1d=function(){return _0x34d1c2;};return a151_0x3f1d();}function buildResultMessage(_0x47af64){const _0x6485c4=a151_0x387f2f,_0x3a9c1c=[];return _0x47af64[_0x6485c4(0x1c9)]&&_0x3a9c1c['push'](_0x6485c4(0x1b7)+_0x47af64[_0x6485c4(0x1dc)]+'\x20bytes'),_0x47af64[_0x6485c4(0x1c4)]>0x0&&_0x3a9c1c[_0x6485c4(0x1c7)](_0x6485c4(0x1f0)+_0x47af64[_0x6485c4(0x1c4)]+_0x6485c4(0x1e3)+_0x47af64[_0x6485c4(0x1f3)][_0x6485c4(0x1ed)](',\x20')),_0x3a9c1c['length']===0x0?_0x6485c4(0x1b8):_0x6485c4(0x1bd)+_0x3a9c1c[_0x6485c4(0x1ed)](';\x20')+')';}async function prepareIssueReport(_0x5262c7){const _0x3b18a5=a151_0x387f2f,_0x230d1d=_0x5262c7[_0x3b18a5(0x1b9)](_0x3b18a5(0x1ca))[_0x3b18a5(0x1ec)](),_0x49139c=_0x5262c7[_0x3b18a5(0x1b9)](_0x3b18a5(0x1d7)),_0x5953c2=_0x5262c7[_0x3b18a5(0x1b9)](DESCRIPTION_FILE_FLAG)[_0x3b18a5(0x1ec)]();if(!_0x5953c2){const _0x580531=_0x49139c;if(!_0x580531['trim']())throw CliErrors[_0x3b18a5(0x1e7)](_0x3b18a5(0x1de),_0x3b18a5(0x1c1));const _0x43ca6d=sanitizeIssueDescription(_0x580531);return{'title':_0x230d1d,'description':_0x43ca6d[_0x3b18a5(0x1d7)],'descriptionSource':_0x3b18a5(0x1cd),'sanitize':_0x43ca6d};}const _0x42d1b3=resolve(process[_0x3b18a5(0x1e5)](),_0x5953c2),_0xd6cc09=await readFile(_0x42d1b3,_0x3b18a5(0x1da));if(!_0xd6cc09[_0x3b18a5(0x1ec)]())throw CliErrors[_0x3b18a5(0x1e7)](_0x3b18a5(0x1b5)+_0x42d1b3,_0x3b18a5(0x1e2));const _0x5afe97=sanitizeIssueDescription(_0xd6cc09);return{'title':_0x230d1d,'description':_0x5afe97['description'],'descriptionSource':_0x3b18a5(0x1bc),'descriptionFilePath':_0x42d1b3,'sanitize':_0x5afe97};}
1
+ const a151_0xe87353=a151_0x4f64;(function(_0x35d9ff,_0x597098){const _0x331740=a151_0x4f64,_0x39aaff=_0x35d9ff();while(!![]){try{const _0x1cdcdb=parseInt(_0x331740(0x193))/0x1*(parseInt(_0x331740(0x1b5))/0x2)+-parseInt(_0x331740(0x185))/0x3*(-parseInt(_0x331740(0x1c1))/0x4)+parseInt(_0x331740(0x1a5))/0x5+parseInt(_0x331740(0x194))/0x6*(parseInt(_0x331740(0x1c7))/0x7)+parseInt(_0x331740(0x19b))/0x8+-parseInt(_0x331740(0x1af))/0x9+-parseInt(_0x331740(0x19c))/0xa*(parseInt(_0x331740(0x1c0))/0xb);if(_0x1cdcdb===_0x597098)break;else _0x39aaff['push'](_0x39aaff['shift']());}catch(_0x458bdc){_0x39aaff['push'](_0x39aaff['shift']());}}}(a151_0x4030,0xb7633));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=a151_0xe87353(0x19f);function a151_0x4f64(_0x510bb2,_0x23c95e){_0x510bb2=_0x510bb2-0x184;const _0x4030f1=a151_0x4030();let _0x4f64f4=_0x4030f1[_0x510bb2];return _0x4f64f4;}export const issueReport={'service':a151_0xe87353(0x1c2),'command':a151_0xe87353(0x1ab),'description':a151_0xe87353(0x189),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0xe87353(0x1bc),'flags':[{'name':a151_0xe87353(0x196),'type':a151_0xe87353(0x19d),'required':!![],'description':a151_0xe87353(0x197)},{'name':a151_0xe87353(0x184),'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1b7)},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1a0)}],async 'validate'(_0x1d46b5){const _0x2cf2c8=a151_0xe87353,_0x47294a=_0x1d46b5['str']('title')[_0x2cf2c8(0x1bd)](),_0x345e91=_0x1d46b5[_0x2cf2c8(0x190)](_0x2cf2c8(0x184))[_0x2cf2c8(0x1bd)](),_0x5d5488=_0x1d46b5[_0x2cf2c8(0x190)](DESCRIPTION_FILE_FLAG)[_0x2cf2c8(0x1bd)]();if(!_0x47294a)throw CliErrors[_0x2cf2c8(0x195)](_0x2cf2c8(0x196),_0x2cf2c8(0x1a2));const _0x193359=_0x345e91[_0x2cf2c8(0x198)]>0x0,_0x3c9ccf=_0x5d5488[_0x2cf2c8(0x198)]>0x0;if(_0x193359===_0x3c9ccf)throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x18a),_0x2cf2c8(0x19e));if(_0x3c9ccf){const _0x54467c=resolve(process[_0x2cf2c8(0x18d)](),_0x5d5488);if(!existsSync(_0x54467c))throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x187)+_0x54467c);}},async 'dryRun'(_0x44bc0d){const _0xe3ce74=a151_0xe87353,_0x214966=await prepareIssueReport(_0x44bc0d);return{'method':_0xe3ce74(0x1ac),'url':_0xe3ce74(0x1bb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x214966[_0xe3ce74(0x196)],'issue.description':_0x214966[_0xe3ce74(0x184)],'issue.description_original_bytes':_0x214966['sanitize'][_0xe3ce74(0x18c)],'issue.description_truncated':_0x214966[_0xe3ce74(0x1c6)]['truncated'],'issue.description_redactions':_0x214966[_0xe3ce74(0x1c6)]['redactionCount'],'issue.description_redaction_kinds':_0x214966['sanitize']['redactionKinds'][_0xe3ce74(0x1ad)](',')}},'description':[_0xe3ce74(0x1bf),_0xe3ce74(0x1a7)+_0x214966['descriptionSource'],_0x214966[_0xe3ce74(0x1b1)]?_0xe3ce74(0x1ba)+_0x214966['descriptionFilePath']:null,_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x18e)]?_0xe3ce74(0x18b)+_0x214966[_0xe3ce74(0x1c6)]['originalBytes']+_0xe3ce74(0x192):null,_0x214966[_0xe3ce74(0x1c6)]['redactionCount']>0x0?_0xe3ce74(0x1b8)+_0x214966['sanitize'][_0xe3ce74(0x188)]+'\x20('+_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x1b2)][_0xe3ce74(0x1ad)](',\x20')+')':null][_0xe3ce74(0x1a4)](Boolean)[_0xe3ce74(0x1ad)]('\x0a')};},async 'execute'(_0x1e271d){const _0x287942=a151_0xe87353,_0x1e83c9=await prepareIssueReport(_0x1e271d);try{await sendPlatformIssueCollectLog({'title':_0x1e83c9['title'],'description':_0x1e83c9[_0x287942(0x184)],'sanitize':{'originalBytes':_0x1e83c9['sanitize'][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)]['truncated'],'redactionCount':_0x1e83c9['sanitize']['redactionCount'],'redactionKinds':_0x1e83c9['sanitize']['redactionKinds']}});}catch(_0x29d92d){throw CliErrors[_0x287942(0x1be)](_0x287942(0x191)+(_0x29d92d instanceof Error?_0x29d92d[_0x287942(0x1a3)]:String(_0x29d92d)),_0x287942(0x1b4));}return{'ok':!![],'message':buildResultMessage(_0x1e83c9[_0x287942(0x1c6)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x287942(0x1b6),_0x287942(0x1a8),'issue.description_original_bytes',_0x287942(0x1c4),_0x287942(0x1b9),_0x287942(0x1ae)],'issue':{'title':_0x1e83c9[_0x287942(0x196)],'descriptionLength':_0x1e83c9['description'][_0x287942(0x198)],'descriptionSource':_0x1e83c9[_0x287942(0x1b3)],..._0x1e83c9[_0x287942(0x1b1)]?{'descriptionFile':_0x1e83c9['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18e)],'redactions':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x188)],'redactionKinds':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x1b2)]}}}};}};function buildResultMessage(_0x1a7973){const _0x33ef6d=a151_0xe87353,_0x33355c=[];return _0x1a7973['truncated']&&_0x33355c[_0x33ef6d(0x1a6)](_0x33ef6d(0x1c3)+_0x1a7973[_0x33ef6d(0x18c)]+_0x33ef6d(0x192)),_0x1a7973[_0x33ef6d(0x188)]>0x0&&_0x33355c[_0x33ef6d(0x1a6)]('redacted\x20'+_0x1a7973['redactionCount']+_0x33ef6d(0x1a1)+_0x1a7973[_0x33ef6d(0x1b2)][_0x33ef6d(0x1ad)](',\x20')),_0x33355c[_0x33ef6d(0x198)]===0x0?_0x33ef6d(0x18f):'Platform\x20issue\x20reported\x20('+_0x33355c[_0x33ef6d(0x1ad)](';\x20')+')';}function a151_0x4030(){const _0x49a9e1=['File\x20not\x20found:\x20','redactionCount','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','truncated:\x20original\x20','originalBytes','cwd','truncated','Platform\x20issue\x20reported','str','Failed\x20to\x20report\x20platform\x20issue:\x20','\x20bytes','1oKBuhU','499866VXkGhv','flagMissing','title','One-line\x20issue\x20summary','length','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','file','596992hJdSxf','10GWuJlA','string','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','description-file','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20secret(s):\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','message','filter','314465povbyN','push','descriptionSource:\x20','issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','validation','report','POST','join','issue.description_redaction_kinds','3574998fFSPiS','utf8','descriptionFilePath','redactionKinds','descriptionSource','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2782142WIAUqq','issue.title','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','redactions:\x20','issue.description_redactions','descriptionFile:\x20','otel://','compress','trim','apiError','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','5533957UKCobh','820DWhMmK','issue','truncated\x20from\x20','issue.description_truncated','Issue\x20description\x20cannot\x20be\x20empty.','sanitize','7IicZeH','description','579LLDAef','inline'];a151_0x4030=function(){return _0x49a9e1;};return a151_0x4030();}async function prepareIssueReport(_0x7c3273){const _0x2106b5=a151_0xe87353,_0x31c10d=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x196))[_0x2106b5(0x1bd)](),_0x18989f=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x184)),_0x497b96=_0x7c3273[_0x2106b5(0x190)](DESCRIPTION_FILE_FLAG)[_0x2106b5(0x1bd)]();if(!_0x497b96){const _0x525ef6=_0x18989f;if(!_0x525ef6['trim']())throw CliErrors[_0x2106b5(0x1aa)](_0x2106b5(0x1c5),_0x2106b5(0x1a9));const _0x12b683=sanitizeIssueDescription(_0x525ef6);return{'title':_0x31c10d,'description':_0x12b683[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x186),'sanitize':_0x12b683};}const _0xe93040=resolve(process['cwd'](),_0x497b96),_0x2924a7=await readFile(_0xe93040,_0x2106b5(0x1b0));if(!_0x2924a7['trim']())throw CliErrors[_0x2106b5(0x1aa)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe93040,_0x2106b5(0x199));const _0x13bee6=sanitizeIssueDescription(_0x2924a7);return{'title':_0x31c10d,'description':_0x13bee6[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x19a),'descriptionFilePath':_0xe93040,'sanitize':_0x13bee6};}
@@ -1 +1 @@
1
- function a152_0x1310(_0x3e8c4d,_0x316b66){_0x3e8c4d=_0x3e8c4d-0xb0;const _0x49f9d4=a152_0x49f9();let _0x131076=_0x49f9d4[_0x3e8c4d];return _0x131076;}const a152_0x286d76=a152_0x1310;(function(_0x5d1f85,_0x2f4d44){const _0x5aa125=a152_0x1310,_0x21c1ae=_0x5d1f85();while(!![]){try{const _0x564437=parseInt(_0x5aa125(0xce))/0x1+parseInt(_0x5aa125(0xc4))/0x2*(-parseInt(_0x5aa125(0xc6))/0x3)+parseInt(_0x5aa125(0xc7))/0x4*(-parseInt(_0x5aa125(0xc2))/0x5)+parseInt(_0x5aa125(0xc0))/0x6+parseInt(_0x5aa125(0xcb))/0x7*(-parseInt(_0x5aa125(0xb9))/0x8)+-parseInt(_0x5aa125(0xba))/0x9*(-parseInt(_0x5aa125(0xb8))/0xa)+-parseInt(_0x5aa125(0xd3))/0xb*(-parseInt(_0x5aa125(0xcd))/0xc);if(_0x564437===_0x2f4d44)break;else _0x21c1ae['push'](_0x21c1ae['shift']());}catch(_0x4f4c20){_0x21c1ae['push'](_0x21c1ae['shift']());}}}(a152_0x49f9,0x27843));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a152_0x286d76(0xd2),REDACTION_RULES=[{'kind':a152_0x286d76(0xc1),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x286d76(0xb2)},{'kind':a152_0x286d76(0xb7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x286d76(0xc9)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x286d76(0xcf)},{'kind':a152_0x286d76(0xb3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x286d76(0xb1)},{'kind':a152_0x286d76(0xc3),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x286d76(0xb4)},{'kind':a152_0x286d76(0xbf),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a152_0x286d76(0xd1)}];export function sanitizeIssueDescription(_0x2796dc){const _0x2ca7c0=a152_0x286d76,_0x17383c=Buffer[_0x2ca7c0(0xb6)](_0x2796dc,_0x2ca7c0(0xb5)),_0x4933a7=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3814fe=_0x2796dc,_0x23d240=0x0;const _0x5b71a3=[];if(!_0x4933a7){const _0x354537=protectOssAccessKeyIds(_0x3814fe);_0x3814fe=_0x354537[_0x2ca7c0(0xb0)];for(const _0x37ad66 of REDACTION_RULES){let _0x18d7ab=0x0;_0x3814fe=_0x3814fe['replace'](_0x37ad66['pattern'],(_0x42165c,_0x1c73f2)=>{const _0x4ca549=_0x2ca7c0;_0x18d7ab+=0x1;const _0x2da927=typeof _0x1c73f2===_0x4ca549(0xbd)?_0x1c73f2:'';return _0x2da927+'['+_0x37ad66[_0x4ca549(0xd4)]+']';}),_0x18d7ab>0x0&&(_0x23d240+=_0x18d7ab,!_0x5b71a3[_0x2ca7c0(0xc5)](_0x37ad66[_0x2ca7c0(0xd0)])&&_0x5b71a3[_0x2ca7c0(0xcc)](_0x37ad66[_0x2ca7c0(0xd0)]));}_0x3814fe=_0x354537['restore'](_0x3814fe);}let _0x3f7957=![];if(Buffer[_0x2ca7c0(0xb6)](_0x3814fe,_0x2ca7c0(0xb5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f7957=!![];const _0x27594c=Buffer[_0x2ca7c0(0xb6)](TRUNCATION_NOTICE,_0x2ca7c0(0xb5)),_0x3d1f5a=Math[_0x2ca7c0(0xbe)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x27594c);_0x3814fe=sliceUtf8Bytes(_0x3814fe,_0x3d1f5a)+TRUNCATION_NOTICE;}return{'description':_0x3814fe,'originalBytes':_0x17383c,'truncated':_0x3f7957,'redactionCount':_0x23d240,'redactionKinds':_0x5b71a3};}function protectOssAccessKeyIds(_0x55a5e3){const _0xe31b47=a152_0x286d76,_0x3a6306=[],_0x4bc5f9=_0x55a5e3[_0xe31b47(0xbb)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x1143fc,_0x58d494)=>{const _0x3aab16=_0xe31b47,_0x7edec8=_0x3a6306[_0x3aab16(0xcc)](_0x1143fc[_0x3aab16(0xc8)](_0x58d494[_0x3aab16(0xca)]))-0x1;return _0x58d494+'__RB_OSS_ID_'+_0x7edec8+'__';});return{'description':_0x4bc5f9,'restore':_0x77f17=>_0x77f17[_0xe31b47(0xbb)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x389605,_0x5ce1b9,_0x223ce4)=>{const _0x403b9b=_0x3a6306[Number(_0x223ce4)];return _0x403b9b===undefined?_0x389605:''+_0x5ce1b9+_0x403b9b;})};}function a152_0x49f9(){const _0x525d90=['utf8','byteLength','authorization','120KPbOoT','50152MQpKUj','18099ftdJjD','replace','subarray','string','max','bearer-jwt','468930NLpCxM','cookie','106705muUWdu','password','274768xQJRgG','includes','3DzoVYF','4BEqVwx','slice','REDACTED:authorization','length','357ZgPmqD','push','6319668SifFpq','11377OLMkYn','REDACTED:private-key','kind','REDACTED:bearer-jwt','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','11CDZfHo','label','description','REDACTED:access-key','REDACTED:cookie','access-key','REDACTED:password'];a152_0x49f9=function(){return _0x525d90;};return a152_0x49f9();}function sliceUtf8Bytes(_0x1b8c54,_0x113586){const _0x55a820=a152_0x286d76;if(_0x113586<=0x0)return'';const _0x129c8f=Buffer['from'](_0x1b8c54,_0x55a820(0xb5));if(_0x129c8f[_0x55a820(0xb6)]<=_0x113586)return _0x1b8c54;let _0xe1e9da=_0x113586;while(_0xe1e9da>0x0){const _0x22c947=_0x129c8f[_0xe1e9da];if(_0x22c947===undefined||(_0x22c947&0xc0)!==0x80)break;_0xe1e9da-=0x1;}return _0x129c8f[_0x55a820(0xbc)](0x0,_0xe1e9da)['toString'](_0x55a820(0xb5));}
1
+ function a152_0x1915(_0x1724f7,_0x32aee4){_0x1724f7=_0x1724f7-0x1bd;const _0x189774=a152_0x1897();let _0x191510=_0x189774[_0x1724f7];return _0x191510;}const a152_0x294509=a152_0x1915;(function(_0x4dbfed,_0x3dd0d6){const _0x37d0cf=a152_0x1915,_0x5f1ebf=_0x4dbfed();while(!![]){try{const _0x1a4063=-parseInt(_0x37d0cf(0x1cd))/0x1+-parseInt(_0x37d0cf(0x1da))/0x2+parseInt(_0x37d0cf(0x1dd))/0x3+parseInt(_0x37d0cf(0x1c1))/0x4*(-parseInt(_0x37d0cf(0x1d3))/0x5)+-parseInt(_0x37d0cf(0x1bd))/0x6+-parseInt(_0x37d0cf(0x1d0))/0x7*(-parseInt(_0x37d0cf(0x1df))/0x8)+-parseInt(_0x37d0cf(0x1d6))/0x9*(-parseInt(_0x37d0cf(0x1d8))/0xa);if(_0x1a4063===_0x3dd0d6)break;else _0x5f1ebf['push'](_0x5f1ebf['shift']());}catch(_0x418000){_0x5f1ebf['push'](_0x5f1ebf['shift']());}}}(a152_0x1897,0x56ac4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a152_0x294509(0x1d1),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a152_0x294509(0x1cc),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x294509(0x1ca)},{'kind':a152_0x294509(0x1d5),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x294509(0x1c5)},{'kind':a152_0x294509(0x1c7),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x294509(0x1c6)},{'kind':a152_0x294509(0x1db),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x294509(0x1c9)},{'kind':a152_0x294509(0x1c4),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x3b9d2f){const _0xb7d8c0=a152_0x294509,_0x2e621e=Buffer[_0xb7d8c0(0x1cb)](_0x3b9d2f,_0xb7d8c0(0x1cf)),_0x413875=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3aa1e5=_0x3b9d2f,_0x203ca5=0x0;const _0x1170f7=[];if(!_0x413875){const _0x5f59c8=protectOssAccessKeyIds(_0x3aa1e5);_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1d7)];for(const _0x38f484 of REDACTION_RULES){let _0x532e11=0x0;_0x3aa1e5=_0x3aa1e5[_0xb7d8c0(0x1c0)](_0x38f484['pattern'],(_0xf2aacb,_0x43da58)=>{const _0x232751=_0xb7d8c0;_0x532e11+=0x1;const _0x282da9=typeof _0x43da58===_0x232751(0x1de)?_0x43da58:'';return _0x282da9+'['+_0x38f484['label']+']';}),_0x532e11>0x0&&(_0x203ca5+=_0x532e11,!_0x1170f7[_0xb7d8c0(0x1dc)](_0x38f484[_0xb7d8c0(0x1d4)])&&_0x1170f7['push'](_0x38f484[_0xb7d8c0(0x1d4)]));}_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1c8)](_0x3aa1e5);}let _0x41b6ef=![];if(Buffer[_0xb7d8c0(0x1cb)](_0x3aa1e5,_0xb7d8c0(0x1cf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x41b6ef=!![];const _0x389924=Buffer[_0xb7d8c0(0x1cb)](TRUNCATION_NOTICE,_0xb7d8c0(0x1cf)),_0x345d82=Math[_0xb7d8c0(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x389924);_0x3aa1e5=sliceUtf8Bytes(_0x3aa1e5,_0x345d82)+TRUNCATION_NOTICE;}return{'description':_0x3aa1e5,'originalBytes':_0x2e621e,'truncated':_0x41b6ef,'redactionCount':_0x203ca5,'redactionKinds':_0x1170f7};}function protectOssAccessKeyIds(_0x3efdc0){const _0x1d7ef0=a152_0x294509,_0x5f0d47=[],_0x3dfbeb=_0x3efdc0[_0x1d7ef0(0x1c0)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xb52c8b,_0x398210)=>{const _0x431c4a=_0x1d7ef0,_0x229e9d=_0x5f0d47[_0x431c4a(0x1c2)](_0xb52c8b[_0x431c4a(0x1be)](_0x398210[_0x431c4a(0x1d9)]))-0x1;return _0x398210+'__RB_OSS_ID_'+_0x229e9d+'__';});return{'description':_0x3dfbeb,'restore':_0x5ec6c0=>_0x5ec6c0['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2cacf7,_0x1953b0,_0x2db1de)=>{const _0x4b7ebf=_0x5f0d47[Number(_0x2db1de)];return _0x4b7ebf===undefined?_0x2cacf7:''+_0x1953b0+_0x4b7ebf;})};}function a152_0x1897(){const _0x1c9204=['utf8','1274SAxRCC','cookie','max','5YCikwq','kind','private-key','9mxRQsx','description','8013650cCDyqi','length','147628AQRdeR','password','includes','2012409sjzPzl','string','11024CCjedQ','2605650kGwrKp','slice','toString','replace','2447052YQuZVl','push','subarray','bearer-jwt','REDACTED:private-key','REDACTED:access-key','access-key','restore','REDACTED:password','REDACTED:authorization','byteLength','authorization','248100bDnQZI','from'];a152_0x1897=function(){return _0x1c9204;};return a152_0x1897();}function sliceUtf8Bytes(_0x951241,_0x54de22){const _0x5ba50b=a152_0x294509;if(_0x54de22<=0x0)return'';const _0x1ddccc=Buffer[_0x5ba50b(0x1ce)](_0x951241,_0x5ba50b(0x1cf));if(_0x1ddccc['byteLength']<=_0x54de22)return _0x951241;let _0x428cac=_0x54de22;while(_0x428cac>0x0){const _0x18d73f=_0x1ddccc[_0x428cac];if(_0x18d73f===undefined||(_0x18d73f&0xc0)!==0x80)break;_0x428cac-=0x1;}return _0x1ddccc[_0x5ba50b(0x1c3)](0x0,_0x428cac)[_0x5ba50b(0x1bf)](_0x5ba50b(0x1cf));}
@@ -1 +1 @@
1
- const a153_0x3a62fa=a153_0x1d31;function a153_0x1d31(_0x28cc55,_0x620361){_0x28cc55=_0x28cc55-0x1c0;const _0x4b8c36=a153_0x4b8c();let _0x1d31b8=_0x4b8c36[_0x28cc55];return _0x1d31b8;}(function(_0x2510a2,_0x8ef93e){const _0x2ce4b4=a153_0x1d31,_0x2eaa9e=_0x2510a2();while(!![]){try{const _0xb937bb=-parseInt(_0x2ce4b4(0x1d8))/0x1+parseInt(_0x2ce4b4(0x1c4))/0x2+parseInt(_0x2ce4b4(0x1c7))/0x3*(parseInt(_0x2ce4b4(0x1c1))/0x4)+parseInt(_0x2ce4b4(0x1df))/0x5*(-parseInt(_0x2ce4b4(0x1d7))/0x6)+-parseInt(_0x2ce4b4(0x1ce))/0x7+-parseInt(_0x2ce4b4(0x1cc))/0x8*(parseInt(_0x2ce4b4(0x1e6))/0x9)+-parseInt(_0x2ce4b4(0x1e7))/0xa*(-parseInt(_0x2ce4b4(0x1cb))/0xb);if(_0xb937bb===_0x8ef93e)break;else _0x2eaa9e['push'](_0x2eaa9e['shift']());}catch(_0x29869f){_0x2eaa9e['push'](_0x2eaa9e['shift']());}}}(a153_0x4b8c,0x68ef0));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a153_0x4b8c(){const _0x3f4127=['contentHash','\x20with\x20title\x20','231024OEoBOo','create','title','3lAKhpV','string','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','POST','990SEHzjf','1096072XqMmSs','--file\x20is\x20required.','5863487ozcGBz','kb_already_exists','rabetbase\x20kb\x20detail\x20--id\x20','trim','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','company','\x20--format\x20compress`\x20before\x20choosing\x20update.','content','kb_create_outcome_unknown','8358jmfVyd','410640anNVPy','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','appCode','\x20for\x20','\x20--format\x20compress','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Company\x20knowledge\x20base\x20','620BFyQVc','kb_title_required','str','Created\x20company\x20knowledge\x20base\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','file','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','18BpvpHz','217130sZlBKu','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','rabetbase\x20kb\x20list\x20--title\x20','/admin/knowledge-base/create','length','220628BZqZWT'];a153_0x4b8c=function(){return _0x3f4127;};return a153_0x4b8c();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a153_0x3a62fa(0x1ea);function readCreateInput(_0x10bba1){const _0x56cccd=a153_0x3a62fa,_0x494546=_0x10bba1[_0x56cccd(0x1e1)](_0x56cccd(0x1c6))[_0x56cccd(0x1d1)]();if(!_0x494546)throw kbError(_0x56cccd(0x1e0),'--title\x20is\x20required.');const _0x4d5399=_0x10bba1[_0x56cccd(0x1e1)](_0x56cccd(0x1e4))['trim']();if(!_0x4d5399)throw kbError('kb_file_required',_0x56cccd(0x1cd),_0x56cccd(0x1e3));return{'title':_0x494546,'file':_0x4d5399};}async function prepareCreate(_0x4b7688){const _0x4cb1c1=a153_0x3a62fa,_0x42ad3f=readCreateInput(_0x4b7688),_0xa89fcf=await readKbFile(_0x42ad3f[_0x4cb1c1(0x1e4)]),_0x63151d=await fetchAllCompanyKnowledgeBases(_0x4b7688,{'title':_0x42ad3f[_0x4cb1c1(0x1c6)]}),_0x4ed803=findExactCompanyKnowledgeBases(_0x63151d,_0x4b7688[_0x4cb1c1(0x1da)],_0x42ad3f[_0x4cb1c1(0x1c6)]);if(_0x4ed803[_0x4cb1c1(0x1c0)]>0x0)throw kbError(_0x4cb1c1(0x1cf),_0x4cb1c1(0x1e5)+_0x4b7688[_0x4cb1c1(0x1da)]+_0x4cb1c1(0x1c3)+_0x42ad3f[_0x4cb1c1(0x1c6)]+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x4ed803[0x0]['id']+_0x4cb1c1(0x1d4));return{..._0x42ad3f,'content':_0xa89fcf};}function plannedAfter(_0x4a9f4f,_0x2c5d0d){const _0x4aa114=a153_0x3a62fa;return{'scope':'company','appCode':_0x4a9f4f[_0x4aa114(0x1da)],'title':_0x2c5d0d['title'],'contentByteSize':_0x2c5d0d['content']['byteSize'],'contentHash':_0x2c5d0d['content'][_0x4aa114(0x1c2)]};}function verifyCreatedState(_0x4cb5fe,_0x44ab96,_0x217a60){const _0x1e7e87=a153_0x3a62fa;assertCompanyKnowledgeBase(_0x217a60,_0x4cb5fe[_0x1e7e87(0x1da)],_0x217a60['id']);const _0x5586a7=inspectKbContent(_0x217a60[_0x1e7e87(0x1d5)]);if(_0x217a60[_0x1e7e87(0x1c6)]!==_0x44ab96[_0x1e7e87(0x1c6)]||_0x5586a7['contentHash']!==_0x44ab96['content'][_0x1e7e87(0x1c2)])throw kbError('kb_verification_failed',_0x1e7e87(0x1de)+_0x217a60['id']+_0x1e7e87(0x1c9),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x217a60['id']+_0x1e7e87(0x1d2));return projectKb(_0x217a60);}export const kbCreate={'service':'kb','command':a153_0x3a62fa(0x1c5),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x3a62fa(0x1c6),'type':a153_0x3a62fa(0x1c8),'required':!![],'description':'Knowledge-base\x20title'},{'name':a153_0x3a62fa(0x1e4),'type':a153_0x3a62fa(0x1c8),'required':!![],'description':a153_0x3a62fa(0x1e8)}],async 'validate'(_0x2b4768){readCreateInput(_0x2b4768);},async 'dryRun'(_0x37898d){const _0x1937b4=a153_0x3a62fa,_0x34721c=await prepareCreate(_0x37898d);return asDryRunResult({'operation':_0x1937b4(0x1c5),'selector':{'scope':_0x1937b4(0x1d3),'appCode':_0x37898d[_0x1937b4(0x1da)],'title':_0x34721c[_0x1937b4(0x1c6)]},'before':null,'after':plannedAfter(_0x37898d,_0x34721c),'dryRun':!![],'backend':{'method':_0x1937b4(0x1ca),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x1937b4(0x1e9)+JSON['stringify'](_0x34721c[_0x1937b4(0x1c6)])+_0x1937b4(0x1dc)}},{'method':_0x1937b4(0x1ca),'url':CREATE_PATH});},async 'execute'(_0x171953){const _0x20751f=a153_0x3a62fa,_0xef40f4=await prepareCreate(_0x171953);let _0x227791,_0x26deec=![];try{const _0x1e604b=await createEnterpriseKnowledgeBase(_0x171953['cookie'],{'appCode':_0x171953[_0x20751f(0x1da)],'title':_0xef40f4[_0x20751f(0x1c6)],'content':_0xef40f4[_0x20751f(0x1d5)][_0x20751f(0x1d5)]});assertCompanyKnowledgeBase(_0x1e604b,_0x171953[_0x20751f(0x1da)],_0x1e604b['id']),_0x227791=_0x1e604b['id'];}catch(_0x3f1faa){if(!isPlatformTransportFailure(_0x3f1faa))throw _0x3f1faa;_0x26deec=!![];}if(_0x227791===undefined){const _0x37232a=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0x171953,{'title':_0xef40f4['title']})),_0x2a2539=findExactCompanyKnowledgeBases(_0x37232a,_0x171953[_0x20751f(0x1da)],_0xef40f4[_0x20751f(0x1c6)]);if(_0x2a2539['length']!==0x1)throw kbError(_0x20751f(0x1d6),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x2a2539[_0x20751f(0x1c0)]+'.',_0x20751f(0x1dd));_0x227791=_0x2a2539[0x0]['id'];}const _0x594ce1=await verifyKbMutationReadback(_0x20751f(0x1c5),_0x26deec,()=>requireKb(_0x171953,_0x227791)),_0x4787b7=verifyCreatedState(_0x171953,_0xef40f4,_0x594ce1),_0x170c42=_0x26deec?[_0x20751f(0x1d9)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x4787b7['id'],'scope':_0x20751f(0x1d3),'appCode':_0x4787b7[_0x20751f(0x1da)]},'before':null,'after':_0x4787b7,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x170c42,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x26deec,'lookupCommand':_0x20751f(0x1d0)+_0x4787b7['id']+'\x20--format\x20compress'}},'message':_0x20751f(0x1e2)+_0x4787b7['id']+_0x20751f(0x1db)+_0x4787b7[_0x20751f(0x1da)]};}};
1
+ const a153_0x336365=a153_0x10a1;(function(_0x3a3fed,_0x312df5){const _0x2f8648=a153_0x10a1,_0x5d81ea=_0x3a3fed();while(!![]){try{const _0x43f475=-parseInt(_0x2f8648(0x16c))/0x1+-parseInt(_0x2f8648(0x17a))/0x2*(-parseInt(_0x2f8648(0x14f))/0x3)+parseInt(_0x2f8648(0x167))/0x4+-parseInt(_0x2f8648(0x152))/0x5*(parseInt(_0x2f8648(0x15d))/0x6)+parseInt(_0x2f8648(0x15b))/0x7*(-parseInt(_0x2f8648(0x158))/0x8)+-parseInt(_0x2f8648(0x171))/0x9*(parseInt(_0x2f8648(0x15c))/0xa)+parseInt(_0x2f8648(0x15a))/0xb;if(_0x43f475===_0x312df5)break;else _0x5d81ea['push'](_0x5d81ea['shift']());}catch(_0x55b190){_0x5d81ea['push'](_0x5d81ea['shift']());}}}(a153_0x1e0c,0x3b20a));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a153_0x336365(0x169);function readCreateInput(_0x5cd9b6){const _0x526ed5=a153_0x336365,_0x53cc39=_0x5cd9b6['str'](_0x526ed5(0x174))[_0x526ed5(0x177)]();if(!_0x53cc39)throw kbError('kb_title_required',_0x526ed5(0x175));const _0x3e32c6=_0x5cd9b6[_0x526ed5(0x170)](_0x526ed5(0x166))[_0x526ed5(0x177)]();if(!_0x3e32c6)throw kbError('kb_file_required',_0x526ed5(0x159),_0x526ed5(0x17d));return{'title':_0x53cc39,'file':_0x3e32c6};}async function prepareCreate(_0x2efda2){const _0xe9da2e=a153_0x336365,_0x7b814c=readCreateInput(_0x2efda2),_0x1bd154=await readKbFile(_0x7b814c[_0xe9da2e(0x166)]),_0xb12c04=await fetchAllCompanyKnowledgeBases(_0x2efda2,{'title':_0x7b814c['title']}),_0x57cc5d=findExactCompanyKnowledgeBases(_0xb12c04,_0x2efda2[_0xe9da2e(0x153)],_0x7b814c[_0xe9da2e(0x174)]);if(_0x57cc5d[_0xe9da2e(0x161)]>0x0)throw kbError(_0xe9da2e(0x172),_0xe9da2e(0x16b)+_0x2efda2[_0xe9da2e(0x153)]+_0xe9da2e(0x17e)+_0x7b814c['title']+'.',_0xe9da2e(0x17f)+_0x57cc5d[0x0]['id']+_0xe9da2e(0x173));return{..._0x7b814c,'content':_0x1bd154};}function plannedAfter(_0x39a10c,_0x3f431e){const _0x14d76e=a153_0x336365;return{'scope':_0x14d76e(0x178),'appCode':_0x39a10c[_0x14d76e(0x153)],'title':_0x3f431e['title'],'contentByteSize':_0x3f431e[_0x14d76e(0x176)][_0x14d76e(0x162)],'contentHash':_0x3f431e['content'][_0x14d76e(0x17b)]};}function a153_0x1e0c(){const _0x4056c4=['string','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','461679LuZQoi','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Knowledge-base\x20title','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','str','180ofHqdP','kb_already_exists','\x20--format\x20compress`\x20before\x20choosing\x20update.','title','--title\x20is\x20required.','content','trim','company','kb_create_outcome_unknown','32jGjyJR','contentHash','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','\x20with\x20title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','72132IlgAaS','\x20for\x20','cookie','2032775greECJ','appCode','stringify','kb_verification_failed','Company\x20knowledge\x20base\x20','rabetbase\x20kb\x20detail\x20--id\x20','72eNIrDe','--file\x20is\x20required.','8075309pTsyks','249214LSwIZe','48830QTlGOs','6ozvjjM','rabetbase\x20kb\x20list\x20--title\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','POST','length','byteSize','write','\x20--format\x20compress','create','file','1638700mpdDXB','Created\x20company\x20knowledge\x20base\x20','/admin/knowledge-base/create'];a153_0x1e0c=function(){return _0x4056c4;};return a153_0x1e0c();}function verifyCreatedState(_0x5ad076,_0x336514,_0x3f000b){const _0x47477a=a153_0x336365;assertCompanyKnowledgeBase(_0x3f000b,_0x5ad076[_0x47477a(0x153)],_0x3f000b['id']);const _0x14c092=inspectKbContent(_0x3f000b[_0x47477a(0x176)]);if(_0x3f000b['title']!==_0x336514[_0x47477a(0x174)]||_0x14c092['contentHash']!==_0x336514[_0x47477a(0x176)][_0x47477a(0x17b)])throw kbError(_0x47477a(0x155),_0x47477a(0x156)+_0x3f000b['id']+_0x47477a(0x17c),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x3f000b['id']+_0x47477a(0x16d));return projectKb(_0x3f000b);}function a153_0x10a1(_0x2607f7,_0x2236a8){_0x2607f7=_0x2607f7-0x14f;const _0x1e0c4b=a153_0x1e0c();let _0x10a1f4=_0x1e0c4b[_0x2607f7];return _0x10a1f4;}export const kbCreate={'service':'kb','command':a153_0x336365(0x165),'description':a153_0x336365(0x16f),'risk':a153_0x336365(0x163),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x336365(0x174),'type':a153_0x336365(0x16a),'required':!![],'description':a153_0x336365(0x16e)},{'name':a153_0x336365(0x166),'type':a153_0x336365(0x16a),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x391036){readCreateInput(_0x391036);},async 'dryRun'(_0x2a7b7c){const _0x375ffb=a153_0x336365,_0x3878c6=await prepareCreate(_0x2a7b7c);return asDryRunResult({'operation':_0x375ffb(0x165),'selector':{'scope':_0x375ffb(0x178),'appCode':_0x2a7b7c[_0x375ffb(0x153)],'title':_0x3878c6[_0x375ffb(0x174)]},'before':null,'after':plannedAfter(_0x2a7b7c,_0x3878c6),'dryRun':!![],'backend':{'method':_0x375ffb(0x160),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x375ffb(0x15e)+JSON[_0x375ffb(0x154)](_0x3878c6[_0x375ffb(0x174)])+_0x375ffb(0x164)}},{'method':_0x375ffb(0x160),'url':CREATE_PATH});},async 'execute'(_0x3e1be2){const _0x2a2040=a153_0x336365,_0x577023=await prepareCreate(_0x3e1be2);let _0xa06d14,_0x211e0b=![];try{const _0x4fb9df=await createEnterpriseKnowledgeBase(_0x3e1be2[_0x2a2040(0x151)],{'appCode':_0x3e1be2['appCode'],'title':_0x577023[_0x2a2040(0x174)],'content':_0x577023[_0x2a2040(0x176)]['content']});assertCompanyKnowledgeBase(_0x4fb9df,_0x3e1be2[_0x2a2040(0x153)],_0x4fb9df['id']),_0xa06d14=_0x4fb9df['id'];}catch(_0x1fdf9b){if(!isPlatformTransportFailure(_0x1fdf9b))throw _0x1fdf9b;_0x211e0b=!![];}if(_0xa06d14===undefined){const _0x395d3d=await verifyKbMutationReadback(_0x2a2040(0x165),!![],()=>fetchAllCompanyKnowledgeBases(_0x3e1be2,{'title':_0x577023[_0x2a2040(0x174)]})),_0x230e4d=findExactCompanyKnowledgeBases(_0x395d3d,_0x3e1be2[_0x2a2040(0x153)],_0x577023[_0x2a2040(0x174)]);if(_0x230e4d[_0x2a2040(0x161)]!==0x1)throw kbError(_0x2a2040(0x179),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x230e4d[_0x2a2040(0x161)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0xa06d14=_0x230e4d[0x0]['id'];}const _0x12e7e6=await verifyKbMutationReadback(_0x2a2040(0x165),_0x211e0b,()=>requireKb(_0x3e1be2,_0xa06d14)),_0x30c3f8=verifyCreatedState(_0x3e1be2,_0x577023,_0x12e7e6),_0x4dcc11=_0x211e0b?[_0x2a2040(0x15f)]:[];return{'ok':!![],'data':{'operation':_0x2a2040(0x165),'selector':{'id':_0x30c3f8['id'],'scope':_0x2a2040(0x178),'appCode':_0x30c3f8['appCode']},'before':null,'after':_0x30c3f8,'dryRun':![],'backend':{'method':_0x2a2040(0x160),'path':CREATE_PATH},'warnings':_0x4dcc11,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x211e0b,'lookupCommand':_0x2a2040(0x157)+_0x30c3f8['id']+_0x2a2040(0x164)}},'message':_0x2a2040(0x168)+_0x30c3f8['id']+_0x2a2040(0x150)+_0x30c3f8[_0x2a2040(0x153)]};}};