@lovrabet/rabetbase-cli 2.5.2 → 2.5.3-beta.2

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 (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/logs.d.ts +7 -0
  40. package/lib/commands/bff/logs.js +1 -0
  41. package/lib/commands/bff/pull.js +1 -1
  42. package/lib/commands/bff/push.js +1 -1
  43. package/lib/commands/bff/status.js +1 -1
  44. package/lib/commands/cli-skill/index.js +1 -1
  45. package/lib/commands/cli-update.js +1 -1
  46. package/lib/commands/codegen/index.js +1 -1
  47. package/lib/commands/codegen/sdk.js +1 -1
  48. package/lib/commands/codegen/sql.js +1 -1
  49. package/lib/commands/common/app-registry.js +1 -1
  50. package/lib/commands/common/app-selector.js +1 -1
  51. package/lib/commands/common/async-task.js +1 -1
  52. package/lib/commands/common/dry-run.js +1 -1
  53. package/lib/commands/common/flags.js +1 -1
  54. package/lib/commands/common/local-file.js +1 -1
  55. package/lib/commands/common/validate.js +1 -1
  56. package/lib/commands/config/delete.js +1 -1
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.js +1 -1
  60. package/lib/commands/config/list.js +1 -1
  61. package/lib/commands/config/set.js +1 -1
  62. package/lib/commands/config/shared.js +1 -1
  63. package/lib/commands/dataset/batch-design.d.ts +21 -0
  64. package/lib/commands/dataset/batch-design.js +1 -0
  65. package/lib/commands/dataset/business-group-update.js +1 -1
  66. package/lib/commands/dataset/business-groups.js +1 -1
  67. package/lib/commands/dataset/capability.js +1 -1
  68. package/lib/commands/dataset/delete.js +1 -1
  69. package/lib/commands/dataset/detail.js +1 -1
  70. package/lib/commands/dataset/extend-update.js +1 -1
  71. package/lib/commands/dataset/field-restore.js +1 -1
  72. package/lib/commands/dataset/field-update.js +1 -1
  73. package/lib/commands/dataset/generate.js +1 -1
  74. package/lib/commands/dataset/index.js +1 -1
  75. package/lib/commands/dataset/list.js +1 -1
  76. package/lib/commands/dataset/operations.js +1 -1
  77. package/lib/commands/dataset/relation-audit.js +1 -1
  78. package/lib/commands/dataset/relation-create.js +1 -1
  79. package/lib/commands/dataset/relation-delete.js +1 -1
  80. package/lib/commands/dataset/relation-shared.js +1 -1
  81. package/lib/commands/dataset/relation-update.js +1 -1
  82. package/lib/commands/dataset/relations.js +1 -1
  83. package/lib/commands/dataset/rename.js +1 -1
  84. package/lib/commands/dataset/restore.js +1 -1
  85. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  86. package/lib/commands/db/analysis-batching.js +1 -1
  87. package/lib/commands/db/analyze-batch-plan.js +1 -1
  88. package/lib/commands/db/analyze-cancel.js +1 -1
  89. package/lib/commands/db/analyze-start.js +1 -1
  90. package/lib/commands/db/analyze-status.js +1 -1
  91. package/lib/commands/db/create.js +1 -1
  92. package/lib/commands/db/delete.js +1 -1
  93. package/lib/commands/db/detail.js +1 -1
  94. package/lib/commands/db/diff-refresh-start.js +1 -1
  95. package/lib/commands/db/diff-refresh-status.js +1 -1
  96. package/lib/commands/db/diff.js +1 -1
  97. package/lib/commands/db/index.js +1 -1
  98. package/lib/commands/db/list.js +1 -1
  99. package/lib/commands/db/shared.js +1 -1
  100. package/lib/commands/db/table-diff-shared.js +1 -1
  101. package/lib/commands/db/tables.js +1 -1
  102. package/lib/commands/db/test.js +1 -1
  103. package/lib/commands/db/update.js +1 -1
  104. package/lib/commands/deployment/index.js +1 -1
  105. package/lib/commands/deployment/sync-all.js +1 -1
  106. package/lib/commands/deployment/sync-jobs.js +1 -1
  107. package/lib/commands/deployment/sync-status.js +1 -1
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/flow/create.d.ts +2 -0
  111. package/lib/commands/flow/create.js +1 -0
  112. package/lib/commands/flow/detail.d.ts +2 -0
  113. package/lib/commands/flow/detail.js +1 -0
  114. package/lib/commands/flow/index.d.ts +3 -0
  115. package/lib/commands/flow/index.js +1 -0
  116. package/lib/commands/flow/list.d.ts +2 -0
  117. package/lib/commands/flow/list.js +1 -0
  118. package/lib/commands/flow/publish.d.ts +2 -0
  119. package/lib/commands/flow/publish.js +1 -0
  120. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  122. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-list.js +1 -0
  124. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  126. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  127. package/lib/commands/flow/runtime-user-search.js +1 -0
  128. package/lib/commands/flow/shared.d.ts +41 -0
  129. package/lib/commands/flow/shared.js +1 -0
  130. package/lib/commands/flow/update.d.ts +2 -0
  131. package/lib/commands/flow/update.js +1 -0
  132. package/lib/commands/flow/validate.d.ts +3 -0
  133. package/lib/commands/flow/validate.js +1 -0
  134. package/lib/commands/instant-api-policy/current.js +1 -1
  135. package/lib/commands/instant-api-policy/index.js +1 -1
  136. package/lib/commands/instant-api-policy/init.js +1 -1
  137. package/lib/commands/instant-api-policy/publish.js +1 -1
  138. package/lib/commands/instant-api-policy/pull.js +1 -1
  139. package/lib/commands/instant-api-policy/revision.js +1 -1
  140. package/lib/commands/instant-api-policy/revisions.js +1 -1
  141. package/lib/commands/instant-api-policy/rollback.js +1 -1
  142. package/lib/commands/instant-api-policy/shared.js +1 -1
  143. package/lib/commands/instant-api-policy/validate.js +1 -1
  144. package/lib/commands/issue/index.js +1 -1
  145. package/lib/commands/issue/nudge.js +1 -1
  146. package/lib/commands/issue/report.js +1 -1
  147. package/lib/commands/issue/shared.js +1 -1
  148. package/lib/commands/kb/create.js +1 -1
  149. package/lib/commands/kb/delete.js +1 -1
  150. package/lib/commands/kb/detail.js +1 -1
  151. package/lib/commands/kb/index.js +1 -1
  152. package/lib/commands/kb/list.js +1 -1
  153. package/lib/commands/kb/search.js +1 -1
  154. package/lib/commands/kb/shared.js +1 -1
  155. package/lib/commands/kb/update.js +1 -1
  156. package/lib/commands/logs/index.js +1 -1
  157. package/lib/commands/menu/asset-update.js +1 -1
  158. package/lib/commands/menu/delete.js +1 -1
  159. package/lib/commands/menu/external-link-create.js +1 -1
  160. package/lib/commands/menu/external-link-update.js +1 -1
  161. package/lib/commands/menu/group-create.js +1 -1
  162. package/lib/commands/menu/group-update.js +1 -1
  163. package/lib/commands/menu/index.js +1 -1
  164. package/lib/commands/menu/list.js +1 -1
  165. package/lib/commands/menu/move.js +1 -1
  166. package/lib/commands/menu/regroup-start.js +1 -1
  167. package/lib/commands/menu/rename.js +1 -1
  168. package/lib/commands/menu/shared/compare-table.js +1 -1
  169. package/lib/commands/menu/shared/delete-plan.js +1 -1
  170. package/lib/commands/menu/shared/facts.js +1 -1
  171. package/lib/commands/menu/shared/index.js +1 -1
  172. package/lib/commands/menu/shared/inquirer.js +1 -1
  173. package/lib/commands/menu/shared/local-pages.js +1 -1
  174. package/lib/commands/menu/shared/logic.js +1 -1
  175. package/lib/commands/menu/shared/mutations.js +1 -1
  176. package/lib/commands/menu/shared/service.js +1 -1
  177. package/lib/commands/menu/shared/sync-core.js +1 -1
  178. package/lib/commands/menu/shared/update-core.js +1 -1
  179. package/lib/commands/menu/shared/valid-url.js +1 -1
  180. package/lib/commands/menu/sync.js +1 -1
  181. package/lib/commands/menu/visibility-update.js +1 -1
  182. package/lib/commands/notification/config-create.js +1 -1
  183. package/lib/commands/notification/config-delete.js +1 -1
  184. package/lib/commands/notification/config-list.js +1 -1
  185. package/lib/commands/notification/config-update.js +1 -1
  186. package/lib/commands/notification/index.js +1 -1
  187. package/lib/commands/notification/shared.js +1 -1
  188. package/lib/commands/ocr/index.js +1 -1
  189. package/lib/commands/page/create.js +1 -1
  190. package/lib/commands/page/custom/detail.js +1 -1
  191. package/lib/commands/page/custom/list.js +1 -1
  192. package/lib/commands/page/custom/publish.js +1 -1
  193. package/lib/commands/page/custom/shared.js +1 -1
  194. package/lib/commands/page/custom/syntax.js +1 -1
  195. package/lib/commands/page/custom/update.js +1 -1
  196. package/lib/commands/page/data-list-status.js +1 -1
  197. package/lib/commands/page/generate-start.js +1 -1
  198. package/lib/commands/page/generate-status.js +1 -1
  199. package/lib/commands/page/index.js +1 -1
  200. package/lib/commands/page/pull.js +1 -1
  201. package/lib/commands/page/push.js +1 -1
  202. package/lib/commands/page/relation-audit.js +1 -1
  203. package/lib/commands/page/restore.js +1 -1
  204. package/lib/commands/page/shared.js +1 -1
  205. package/lib/commands/page/sync.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/index.js +1 -1
  254. package/lib/commands/workspace/add.js +1 -1
  255. package/lib/commands/workspace/index.js +1 -1
  256. package/lib/commands/workspace/remove.js +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.d.ts +23 -0
  260. package/lib/config/region-config.js +1 -0
  261. package/lib/config/schema.d.ts +15 -0
  262. package/lib/config/schema.js +1 -1
  263. package/lib/constant/cdn.js +1 -1
  264. package/lib/constant/cli.js +1 -1
  265. package/lib/constant/defaults.js +1 -1
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.js +1 -1
  271. package/lib/constant/risk.js +1 -1
  272. package/lib/constant/routing-profile.js +1 -1
  273. package/lib/context/app-resolver.d.ts +6 -0
  274. package/lib/context/app-resolver.js +1 -1
  275. package/lib/context/auth-resolver.js +1 -1
  276. package/lib/context/config-loader.js +1 -1
  277. package/lib/context.d.ts +13 -0
  278. package/lib/context.js +1 -1
  279. package/lib/core/alias-resolver.js +1 -1
  280. package/lib/core/api-client.d.ts +172 -1
  281. package/lib/core/api-client.js +1 -1
  282. package/lib/core/bff/config.js +1 -1
  283. package/lib/core/bff/file-system.js +1 -1
  284. package/lib/core/bff/hash.js +1 -1
  285. package/lib/core/bff/hook-directory.d.ts +55 -0
  286. package/lib/core/bff/hook-directory.js +1 -0
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/types.d.ts +15 -0
  289. package/lib/core/bff/utils.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.d.ts +628 -0
  292. package/lib/core/flow-config.js +1 -0
  293. package/lib/core/instant-api-policy/config.js +1 -1
  294. package/lib/core/kb-search-client.js +1 -1
  295. package/lib/core/page/file-system.js +1 -1
  296. package/lib/core/page/hash.js +1 -1
  297. package/lib/core/page/lock.js +1 -1
  298. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  299. package/lib/core/page/lr-smart-jsx.js +1 -0
  300. package/lib/core/sql-index-auditor.js +1 -1
  301. package/lib/core/sql-sync/config.js +1 -1
  302. package/lib/core/sql-sync/file-system.js +1 -1
  303. package/lib/core/sql-sync/hash.js +1 -1
  304. package/lib/core/sql-sync/lock.js +1 -1
  305. package/lib/core/sql-sync/utils.js +1 -1
  306. package/lib/core/sql-validator.js +1 -1
  307. package/lib/errors.js +1 -1
  308. package/lib/framework/build-all-flags.js +1 -1
  309. package/lib/framework/error-output.js +1 -1
  310. package/lib/framework/explicit-yes.js +1 -1
  311. package/lib/framework/flags.js +1 -1
  312. package/lib/framework/help.js +1 -1
  313. package/lib/framework/index.js +1 -1
  314. package/lib/framework/output.js +1 -1
  315. package/lib/framework/response.js +1 -1
  316. package/lib/framework/runner-alias.js +1 -1
  317. package/lib/framework/runner.js +1 -1
  318. package/lib/framework/schema-export.js +1 -1
  319. package/lib/framework/supported-flags.js +1 -1
  320. package/lib/framework/types.js +1 -1
  321. package/lib/generated/build-info.d.ts +4 -4
  322. package/lib/generated/build-info.js +1 -1
  323. package/lib/generated/official-routing.js +1 -1
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.js +1 -1
  335. package/lib/skills/skill-presence.js +1 -1
  336. package/lib/telemetry/cli-command-trace.js +1 -1
  337. package/lib/telemetry/cli-help-trace.js +1 -1
  338. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  339. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  340. package/lib/telemetry/send-cli-trace-log.js +1 -1
  341. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  342. package/lib/types/index.d.ts +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.d.ts +2 -8
  350. package/lib/utils/config.js +1 -1
  351. package/lib/utils/entity-with-id.js +1 -1
  352. package/lib/utils/file-utils.js +1 -1
  353. package/lib/utils/guides-cdn.js +1 -1
  354. package/lib/utils/http-client.js +1 -1
  355. package/lib/utils/is-non-interactive.js +1 -1
  356. package/lib/utils/logger.js +1 -1
  357. package/lib/utils/params.js +1 -1
  358. package/lib/utils/platform.js +1 -1
  359. package/lib/utils/sleep.js +1 -1
  360. package/lib/utils/template-replacer.d.ts +2 -1
  361. package/lib/utils/template-replacer.js +1 -1
  362. package/lib/utils/update-notice.js +1 -1
  363. package/lib/utils/version.js +1 -1
  364. package/lib/utils/with-active-cookie.js +1 -1
  365. package/lib/utils/write-cli-side-channel.js +1 -1
  366. package/package.json +1 -1
  367. package/skills/rabetbase/SKILL.md +27 -8
  368. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  369. package/skills/rabetbase/guides/backend-function.md +19 -9
  370. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  371. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  372. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  373. package/skills/rabetbase/guides/sdk-client-generation.md +6 -5
  374. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  375. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  376. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  377. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  378. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  379. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  381. package/skills/rabetbase/references/rabetbase-bff-pull.md +9 -3
  382. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  383. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  384. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  385. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  386. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  387. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  388. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  389. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  390. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  391. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  392. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  393. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  394. package/skills/rabetbase.manifest.json +9 -3
  395. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- function a103_0x50cd(_0x451de6,_0x52f16e){_0x451de6=_0x451de6-0x144;const _0x566d36=a103_0x566d();let _0x50cd7f=_0x566d36[_0x451de6];return _0x50cd7f;}const a103_0x3f1b48=a103_0x50cd;function a103_0x566d(){const _0x71186=['2246931uqPtSB','6VCJLAx','360uurgbC','9813195voiZJj','8lRBMPV','appCode','policyRelativePath','4234168xyPkSz','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','4398870ZjwWUa','568502YObqSX','2416624rLhFQy','current','Current\x20Instant\x20API\x20policy\x20revision\x20','1583ARyzCx','1686vAMrDS','policyFilePath','revision'];a103_0x566d=function(){return _0x71186;};return a103_0x566d();}(function(_0x5235ac,_0x4257ba){const _0x46fa0b=a103_0x50cd,_0x11a92d=_0x5235ac();while(!![]){try{const _0x2874b7=parseInt(_0x46fa0b(0x148))/0x1*(-parseInt(_0x46fa0b(0x149))/0x2)+parseInt(_0x46fa0b(0x14c))/0x3*(-parseInt(_0x46fa0b(0x150))/0x4)+parseInt(_0x46fa0b(0x155))/0x5+parseInt(_0x46fa0b(0x14d))/0x6*(parseInt(_0x46fa0b(0x145))/0x7)+-parseInt(_0x46fa0b(0x153))/0x8+parseInt(_0x46fa0b(0x14f))/0x9+parseInt(_0x46fa0b(0x14e))/0xa*(parseInt(_0x46fa0b(0x144))/0xb);if(_0x2874b7===_0x4257ba)break;else _0x11a92d['push'](_0x11a92d['shift']());}catch(_0x37d056){_0x11a92d['push'](_0x11a92d['shift']());}}}(a103_0x566d,0xc6c8b));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyCurrent={'service':'instant-api-policy','command':a103_0x3f1b48(0x146),'description':a103_0x3f1b48(0x154),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5d44d1){const _0x2293d4=a103_0x3f1b48,_0x5ea4f8=loadInstantApiPolicyLocalConfig(_0x5d44d1[_0x2293d4(0x151)]),_0x2db3ce=await getCurrentInstantApiPolicy(_0x5d44d1[_0x2293d4(0x151)]);return{'ok':!![],'data':{'appCode':_0x5d44d1[_0x2293d4(0x151)],'configured':_0x2db3ce!==null,'filePath':_0x5ea4f8[_0x2293d4(0x14a)],'relativePath':_0x5ea4f8[_0x2293d4(0x152)],'policy':projectCurrentPolicy(_0x2db3ce)},'message':_0x2db3ce?_0x2293d4(0x147)+_0x2db3ce[_0x2293d4(0x14b)]:'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x5d44d1[_0x2293d4(0x151)]};}};
1
+ const a117_0x3ac504=a117_0x6286;(function(_0x106f84,_0x2c20ea){const _0x18d23d=a117_0x6286,_0x512fe7=_0x106f84();while(!![]){try{const _0x1864a9=parseInt(_0x18d23d(0x175))/0x1*(-parseInt(_0x18d23d(0x184))/0x2)+-parseInt(_0x18d23d(0x181))/0x3+parseInt(_0x18d23d(0x186))/0x4*(-parseInt(_0x18d23d(0x174))/0x5)+parseInt(_0x18d23d(0x17e))/0x6*(parseInt(_0x18d23d(0x188))/0x7)+parseInt(_0x18d23d(0x187))/0x8*(-parseInt(_0x18d23d(0x173))/0x9)+-parseInt(_0x18d23d(0x178))/0xa*(parseInt(_0x18d23d(0x182))/0xb)+-parseInt(_0x18d23d(0x176))/0xc*(-parseInt(_0x18d23d(0x17f))/0xd);if(_0x1864a9===_0x2c20ea)break;else _0x512fe7['push'](_0x512fe7['shift']());}catch(_0x1d09b0){_0x512fe7['push'](_0x512fe7['shift']());}}}(a117_0xa493,0x45eb6));function a117_0x6286(_0x17c3b0,_0x33a583){_0x17c3b0=_0x17c3b0-0x173;const _0xa493ac=a117_0xa493();let _0x62864c=_0xa493ac[_0x17c3b0];return _0x62864c;}function a117_0xa493(){const _0x5282bd=['71630zlByeA','Current\x20Instant\x20API\x20policy\x20revision\x20','445473vGvcCk','3971EleSzk','instant-api-policy','2IIxBNe','policyRelativePath','260vajYwI','712216ugMIYW','149296AIqgpT','54yYxYoj','23995yqzZtz','287587BmhKWt','4464ksXyyW','current','14510fAWWip','read','policyFilePath','appCode','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','12VNSsBX'];a117_0xa493=function(){return _0x5282bd;};return a117_0xa493();}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':a117_0x3ac504(0x183),'command':a117_0x3ac504(0x177),'description':a117_0x3ac504(0x17d),'risk':a117_0x3ac504(0x179),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2af58c){const _0x4e3168=a117_0x3ac504,_0x5b0a14=loadInstantApiPolicyLocalConfig(_0x2af58c[_0x4e3168(0x17b)]),_0x165760=await getCurrentInstantApiPolicy(_0x2af58c[_0x4e3168(0x17b)]);return{'ok':!![],'data':{'appCode':_0x2af58c['appCode'],'configured':_0x165760!==null,'filePath':_0x5b0a14[_0x4e3168(0x17a)],'relativePath':_0x5b0a14[_0x4e3168(0x185)],'policy':projectCurrentPolicy(_0x165760)},'message':_0x165760?_0x4e3168(0x180)+_0x165760['revision']:_0x4e3168(0x17c)+_0x2af58c['appCode']};}};
@@ -1 +1 @@
1
- (function(_0x25b159,_0x4469ba){const _0x46fc38=a104_0x372f,_0x16becc=_0x25b159();while(!![]){try{const _0x43cc2b=parseInt(_0x46fc38(0x1df))/0x1*(parseInt(_0x46fc38(0x1d6))/0x2)+parseInt(_0x46fc38(0x1d5))/0x3*(parseInt(_0x46fc38(0x1d8))/0x4)+parseInt(_0x46fc38(0x1d9))/0x5+-parseInt(_0x46fc38(0x1da))/0x6*(-parseInt(_0x46fc38(0x1de))/0x7)+parseInt(_0x46fc38(0x1db))/0x8*(parseInt(_0x46fc38(0x1e0))/0x9)+-parseInt(_0x46fc38(0x1dc))/0xa+-parseInt(_0x46fc38(0x1d7))/0xb*(parseInt(_0x46fc38(0x1dd))/0xc);if(_0x43cc2b===_0x4469ba)break;else _0x16becc['push'](_0x16becc['shift']());}catch(_0xcbfc5f){_0x16becc['push'](_0x16becc['shift']());}}}(a104_0x2887,0xb815a));function a104_0x2887(){const _0x1060ce=['36tbitCH','7FRRPws','1233245QXQsov','153QXXNbD','3YjDcYX','2BNiKms','15567046gVRrDa','3840748HAgfeR','5289015SyUTHw','9036006GXfbWB','467768LgCOxM','7516750FAAfLD'];a104_0x2887=function(){return _0x1060ce;};return a104_0x2887();}import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';function a104_0x372f(_0xb7099f,_0x79b65c){_0xb7099f=_0xb7099f-0x1d5;const _0x288755=a104_0x2887();let _0x372f54=_0x288755[_0xb7099f];return _0x372f54;}import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
1
+ function a118_0x251e(){const _0x2f88ad=['10711830klNdzU','49cmntXH','460kiVDFu','7989zCpZxv','4uwBuXz','3082048Bhbznu','237906TZAItH','1038106XLMFvY','7402302fiWfzj','814395cXgfGH'];a118_0x251e=function(){return _0x2f88ad;};return a118_0x251e();}(function(_0x1a3607,_0x28b63b){const _0xcd2070=a118_0x12ad,_0x218543=_0x1a3607();while(!![]){try{const _0x4985ef=-parseInt(_0xcd2070(0x1ca))/0x1+-parseInt(_0xcd2070(0x1c5))/0x2*(parseInt(_0xcd2070(0x1c6))/0x3)+parseInt(_0xcd2070(0x1c7))/0x4*(-parseInt(_0xcd2070(0x1cc))/0x5)+parseInt(_0xcd2070(0x1c9))/0x6*(parseInt(_0xcd2070(0x1c4))/0x7)+parseInt(_0xcd2070(0x1c8))/0x8+parseInt(_0xcd2070(0x1cb))/0x9+parseInt(_0xcd2070(0x1c3))/0xa;if(_0x4985ef===_0x28b63b)break;else _0x218543['push'](_0x218543['shift']());}catch(_0x1067a0){_0x218543['push'](_0x218543['shift']());}}}(a118_0x251e,0xb5657));function a118_0x12ad(_0x592707,_0x2bcd3e){_0x592707=_0x592707-0x1c3;const _0x251ec5=a118_0x251e();let _0x12ad76=_0x251ec5[_0x592707];return _0x12ad76;}import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -1 +1 @@
1
- function a105_0x2d50(){const _0x1c52cd=['policyRelativePath','allow','Created','8VNDcFe','policyFilePath','init','bool','action','string','4381014EXzSTx','default-action','instant-api-policy','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','3909249vkRtPY','3733528OFhbLj','4254945tdIQZw','appCode','str','write','deny','\x20Instant\x20API\x20policy\x20file\x20for\x20','2435950XHBfpS','Replaced','1294244vefkbs','force','35973602eUioia','Kept'];a105_0x2d50=function(){return _0x1c52cd;};return a105_0x2d50();}const a105_0x3f2cbf=a105_0x7a15;(function(_0x11731d,_0x3d0b1c){const _0x10650c=a105_0x7a15,_0x14e840=_0x11731d();while(!![]){try{const _0x59f467=-parseInt(_0x10650c(0x9f))/0x1+-parseInt(_0x10650c(0x9d))/0x2+-parseInt(_0x10650c(0x95))/0x3+parseInt(_0x10650c(0x96))/0x4+-parseInt(_0x10650c(0x97))/0x5+-parseInt(_0x10650c(0xac))/0x6+parseInt(_0x10650c(0xa1))/0x7*(parseInt(_0x10650c(0xa6))/0x8);if(_0x59f467===_0x3d0b1c)break;else _0x14e840['push'](_0x14e840['shift']());}catch(_0x565c23){_0x14e840['push'](_0x14e840['shift']());}}}(a105_0x2d50,0xa50a8));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a105_0x7a15(_0x7eceee,_0x127469){_0x7eceee=_0x7eceee-0x92;const _0x2d502b=a105_0x2d50();let _0x7a15a6=_0x2d502b[_0x7eceee];return _0x7a15a6;}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a105_0x3f2cbf(0x93),'command':a105_0x3f2cbf(0xa8),'description':'Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','risk':a105_0x3f2cbf(0x9a),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a105_0x3f2cbf(0x92),'type':a105_0x3f2cbf(0xab),'enum':['allow',a105_0x3f2cbf(0x9b)],'default':a105_0x3f2cbf(0xa4),'description':a105_0x3f2cbf(0x94)},FORCE_FLAG],async 'validate'(_0x3e41da){requireForceConfirmation(_0x3e41da);},async 'execute'(_0x3b3f39){const _0x465673=a105_0x3f2cbf;requireForceConfirmation(_0x3b3f39);const _0x53d0d3=_0x3b3f39[_0x465673(0x99)](_0x465673(0x92))===_0x465673(0x9b)?'deny':'allow',_0x4df5e2=loadInstantApiPolicyLocalConfig(_0x3b3f39[_0x465673(0x98)]),_0x24dc06=createDefaultInstantApiPolicyConfig(_0x3b3f39[_0x465673(0x98)],_0x53d0d3),_0x361e47=await writeInstantApiPolicyConfigFile(_0x4df5e2,_0x24dc06,{'force':_0x3b3f39[_0x465673(0xa9)](_0x465673(0xa0))}),_0x3e557e={'created':_0x465673(0xa5),'overwritten':_0x465673(0x9e),'unchanged':_0x465673(0xa2)}[_0x361e47['action']];return{'ok':!![],'data':{'operation':_0x465673(0xa8),'selector':{'appCode':_0x3b3f39['appCode']},'filePath':_0x4df5e2[_0x465673(0xa7)],'relativePath':_0x4df5e2[_0x465673(0xa3)],'action':_0x361e47[_0x465673(0xaa)],'config':_0x24dc06},'message':_0x3e557e+_0x465673(0x9c)+_0x3b3f39[_0x465673(0x98)]};}};
1
+ const a119_0x569199=a119_0x39bc;(function(_0x4782b3,_0x309904){const _0x5943d3=a119_0x39bc,_0x1b4545=_0x4782b3();while(!![]){try{const _0x4f7fe1=-parseInt(_0x5943d3(0x126))/0x1+-parseInt(_0x5943d3(0x125))/0x2+-parseInt(_0x5943d3(0x115))/0x3+parseInt(_0x5943d3(0x11c))/0x4*(-parseInt(_0x5943d3(0x128))/0x5)+parseInt(_0x5943d3(0x12d))/0x6*(parseInt(_0x5943d3(0x124))/0x7)+-parseInt(_0x5943d3(0x11f))/0x8+parseInt(_0x5943d3(0x118))/0x9;if(_0x4f7fe1===_0x309904)break;else _0x1b4545['push'](_0x1b4545['shift']());}catch(_0x305bcb){_0x1b4545['push'](_0x1b4545['shift']());}}}(a119_0x5db2,0xad761));import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a119_0x5db2(){const _0x15ad5f=['allow','Replaced','2599352pKrBOq','Kept','init','3038656aFHjQg','str','write','instant-api-policy','default-action','1560111eAVlya','2839020ZRubXo','547743qakIrU','force','5JBpVQB','Created','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','appCode','bool','6gCLKXb','Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','policyRelativePath','3179208QILhQc','\x20Instant\x20API\x20policy\x20file\x20for\x20','action','40898547WFvhNe','deny'];a119_0x5db2=function(){return _0x15ad5f;};return a119_0x5db2();}function a119_0x39bc(_0x173be8,_0x53a4a0){_0x173be8=_0x173be8-0x115;const _0x5db2b5=a119_0x5db2();let _0x39bc1c=_0x5db2b5[_0x173be8];return _0x39bc1c;}export const instantApiPolicyInit={'service':a119_0x569199(0x122),'command':a119_0x569199(0x11e),'description':a119_0x569199(0x12a),'risk':a119_0x569199(0x121),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a119_0x569199(0x123),'type':'string','enum':['allow',a119_0x569199(0x119)],'default':a119_0x569199(0x11a),'description':a119_0x569199(0x12e)},FORCE_FLAG],async 'validate'(_0x20884c){requireForceConfirmation(_0x20884c);},async 'execute'(_0x45a991){const _0x1a8131=a119_0x569199;requireForceConfirmation(_0x45a991);const _0x36348b=_0x45a991[_0x1a8131(0x120)](_0x1a8131(0x123))===_0x1a8131(0x119)?_0x1a8131(0x119):_0x1a8131(0x11a),_0x1587ae=loadInstantApiPolicyLocalConfig(_0x45a991[_0x1a8131(0x12b)]),_0x27350a=createDefaultInstantApiPolicyConfig(_0x45a991[_0x1a8131(0x12b)],_0x36348b),_0x3a5c26=await writeInstantApiPolicyConfigFile(_0x1587ae,_0x27350a,{'force':_0x45a991[_0x1a8131(0x12c)](_0x1a8131(0x127))}),_0xbb5d86={'created':_0x1a8131(0x129),'overwritten':_0x1a8131(0x11b),'unchanged':_0x1a8131(0x11d)}[_0x3a5c26[_0x1a8131(0x117)]];return{'ok':!![],'data':{'operation':_0x1a8131(0x11e),'selector':{'appCode':_0x45a991[_0x1a8131(0x12b)]},'filePath':_0x1587ae['policyFilePath'],'relativePath':_0x1587ae[_0x1a8131(0x12f)],'action':_0x3a5c26['action'],'config':_0x27350a},'message':_0xbb5d86+_0x1a8131(0x116)+_0x45a991[_0x1a8131(0x12b)]};}};
@@ -1 +1 @@
1
- const a106_0x35ee8e=a106_0x1f54;function a106_0x44b1(){const _0x5708fe=['instant_api_policy_publish_verification_failed','3igfMep','`;\x20do\x20not\x20resubmit\x20automatically.','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','37560LzpFTR','configHash','instant-api-policy','POST','6956480lIbeCi','1zIfIdB','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','revision','expectedRevision','all','publish','config','policyRelativePath','873qpffcJ','/publish','Published\x20Instant\x20API\x20policy\x20revision\x20','before','Inspect\x20with\x20`','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','policyFilePath','appCode','normalizedConfig','3364238OnqFsw','80YtPxHB','33532972cYvKCf','local','instant_api_policy_publish_outcome_unknown','validation','14420uChWnX','5886034PYQDOQ','cause','10977712JaXGnx'];a106_0x44b1=function(){return _0x5708fe;};return a106_0x44b1();}(function(_0x336799,_0x54c055){const _0xddb61f=a106_0x1f54,_0x2ef38f=_0x336799();while(!![]){try{const _0x584563=-parseInt(_0xddb61f(0x1ad))/0x1*(-parseInt(_0xddb61f(0x19a))/0x2)+-parseInt(_0xddb61f(0x1a5))/0x3*(-parseInt(_0xddb61f(0x1ac))/0x4)+-parseInt(_0xddb61f(0x19b))/0x5*(parseInt(_0xddb61f(0x1a8))/0x6)+-parseInt(_0xddb61f(0x1a1))/0x7+parseInt(_0xddb61f(0x1a3))/0x8+parseInt(_0xddb61f(0x191))/0x9*(parseInt(_0xddb61f(0x1a0))/0xa)+-parseInt(_0xddb61f(0x19c))/0xb;if(_0x584563===_0x54c055)break;else _0x2ef38f['push'](_0x2ef38f['shift']());}catch(_0x4e7874){_0x2ef38f['push'](_0x2ef38f['shift']());}}}(a106_0x44b1,0xe66ed));function a106_0x1f54(_0x26f349,_0x9d5f86){_0x26f349=_0x26f349-0x18f;const _0x44b187=a106_0x44b1();let _0x1f547c=_0x44b187[_0x26f349];return _0x1f547c;}import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x2248ed){const _0x41a76c=a106_0x1f54,{local:_0x2f8204,config:_0x4ec10f}=await readFixedPolicy(_0x2248ed),_0x125fdf=readChangeSummary(_0x2248ed),_0x3d59a4=readExpectedRevision(_0x2248ed),[_0x4344cd,_0x5d61a5]=await Promise[_0x41a76c(0x1b1)]([getCurrentInstantApiPolicy(_0x2248ed[_0x41a76c(0x198)]),validateInstantApiPolicy({'appCode':_0x2248ed[_0x41a76c(0x198)],'config':_0x4ec10f})]);return assertExpectedRevision(_0x4344cd,_0x3d59a4),{'local':_0x2f8204,'config':_0x4ec10f,'changeSummary':_0x125fdf,'expectedRevision':_0x3d59a4,'before':_0x4344cd,'validation':_0x5d61a5};}export const instantApiPolicyPublish={'service':a106_0x35ee8e(0x1aa),'command':a106_0x35ee8e(0x1b2),'description':'Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x35ee8e(0x196),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x108337){readChangeSummary(_0x108337),readExpectedRevision(_0x108337);},async 'dryRun'(_0x3a8422){const _0x4a16e6=a106_0x35ee8e,_0x3a0ef2=await preparePublish(_0x3a8422);return asDryRunResult({'operation':_0x4a16e6(0x1b2),'selector':{'appCode':_0x3a8422['appCode']},'before':projectCurrentPolicy(_0x3a0ef2[_0x4a16e6(0x194)]),'after':{'revision':_0x3a0ef2[_0x4a16e6(0x194)]?_0x3a0ef2[_0x4a16e6(0x194)][_0x4a16e6(0x1af)]+0x1:0x1,'configHash':_0x3a0ef2[_0x4a16e6(0x19f)][_0x4a16e6(0x1a9)],'config':_0x3a0ef2['validation'][_0x4a16e6(0x199)]},'filePath':_0x3a0ef2[_0x4a16e6(0x19d)][_0x4a16e6(0x197)],'relativePath':_0x3a0ef2['local'][_0x4a16e6(0x190)],'dryRun':!![],'backend':{'method':_0x4a16e6(0x1ab),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a16e6(0x192)},'warnings':expectedRevisionWarnings(_0x3a0ef2[_0x4a16e6(0x1b0)]),'verification':{'status':'planned','expectedRevision':_0x3a0ef2['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x4a7bd2){const _0x21d655=a106_0x35ee8e,_0x4cd67d=await preparePublish(_0x4a7bd2);let _0x736e47=![];try{await publishInstantApiPolicy({'appCode':_0x4a7bd2[_0x21d655(0x198)],'config':_0x4cd67d[_0x21d655(0x18f)],..._0x4cd67d['changeSummary']?{'changeSummary':_0x4cd67d['changeSummary']}:{}});}catch(_0x42c044){if(!isPlatformTransportFailure(_0x42c044))throw _0x42c044;_0x736e47=!![];}let _0x2ce91c;try{_0x2ce91c=await getCurrentInstantApiPolicy(_0x4a7bd2['appCode']);}catch(_0x2c1e63){const _0x45a248=instantApiPolicyError(_0x736e47?_0x21d655(0x19e):'instant_api_policy_publish_verification_unavailable',_0x21d655(0x1ae),_0x21d655(0x195)+mutationLookupCommand()+_0x21d655(0x1a6));Object['defineProperty'](_0x45a248,_0x21d655(0x1a2),{'value':_0x2c1e63,'enumerable':![]});throw _0x45a248;}const _0xb67483=_0x2ce91c&&(_0x4cd67d[_0x21d655(0x194)]===null||_0x2ce91c[_0x21d655(0x1af)]>_0x4cd67d[_0x21d655(0x194)]['revision']),_0x4a6a30=_0x2ce91c?.[_0x21d655(0x1a9)]===_0x4cd67d[_0x21d655(0x19f)][_0x21d655(0x1a9)];if(!_0x2ce91c||!_0xb67483||!_0x4a6a30)throw instantApiPolicyError(_0x736e47?_0x21d655(0x19e):_0x21d655(0x1a4),_0x21d655(0x1a7),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x21d655(0x1a6));const _0x478b03=[...expectedRevisionWarnings(_0x4cd67d[_0x21d655(0x1b0)]),RUNTIME_CACHE_WARNING];return _0x736e47&&_0x478b03['push']('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x21d655(0x1b2),'selector':{'appCode':_0x4a7bd2[_0x21d655(0x198)]},'before':projectCurrentPolicy(_0x4cd67d[_0x21d655(0x194)]),'after':projectCurrentPolicy(_0x2ce91c),'filePath':_0x4cd67d[_0x21d655(0x19d)][_0x21d655(0x197)],'relativePath':_0x4cd67d[_0x21d655(0x19d)][_0x21d655(0x190)],'dryRun':![],'backend':{'method':_0x21d655(0x1ab),'path':INSTANT_API_POLICY_BASE_PATH+_0x21d655(0x192)},'warnings':_0x478b03,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x736e47,'expectedRevision':_0x4cd67d[_0x21d655(0x1b0)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x21d655(0x193)+_0x2ce91c['revision']};}};
1
+ const a120_0x31b108=a120_0x20a5;(function(_0x58d139,_0x175f2d){const _0x3215c1=a120_0x20a5,_0x55a613=_0x58d139();while(!![]){try{const _0x30b492=-parseInt(_0x3215c1(0x16c))/0x1*(parseInt(_0x3215c1(0x169))/0x2)+-parseInt(_0x3215c1(0x16f))/0x3+-parseInt(_0x3215c1(0x15f))/0x4*(-parseInt(_0x3215c1(0x15d))/0x5)+-parseInt(_0x3215c1(0x167))/0x6+parseInt(_0x3215c1(0x16a))/0x7+parseInt(_0x3215c1(0x174))/0x8+parseInt(_0x3215c1(0x16b))/0x9*(-parseInt(_0x3215c1(0x159))/0xa);if(_0x30b492===_0x175f2d)break;else _0x55a613['push'](_0x55a613['shift']());}catch(_0x499264){_0x55a613['push'](_0x55a613['shift']());}}}(a120_0x3d13,0xc3620));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a120_0x3d13(){const _0x581e23=['revision','instant_api_policy_publish_verification_failed','11531400gIclqn','expectedRevision','all','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','Inspect\x20with\x20`','configHash','push','local','publish','instant_api_policy_publish_verification_unavailable','323460cooJsy','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','appCode','policyRelativePath','3305rzSavo','defineProperty','3980wXuBmr','before','`;\x20do\x20not\x20resubmit\x20automatically.','POST','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','instant-api-policy','/publish','policyFilePath','1851216yfNyOl','cause','14544BohdDK','9485896ZzrEUg','468VZKTmo','27XzjfAD','high-risk-write','normalizedConfig','1401264hxfZTe','validation','changeSummary'];a120_0x3d13=function(){return _0x581e23;};return a120_0x3d13();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';async function preparePublish(_0x4bd96d){const _0x5aec9d=a120_0x20a5,{local:_0x2b38da,config:_0x424f2f}=await readFixedPolicy(_0x4bd96d),_0x4dcd77=readChangeSummary(_0x4bd96d),_0x35d0cb=readExpectedRevision(_0x4bd96d),[_0x31bc41,_0x22670e]=await Promise[_0x5aec9d(0x176)]([getCurrentInstantApiPolicy(_0x4bd96d[_0x5aec9d(0x15b)]),validateInstantApiPolicy({'appCode':_0x4bd96d[_0x5aec9d(0x15b)],'config':_0x424f2f})]);return assertExpectedRevision(_0x31bc41,_0x35d0cb),{'local':_0x2b38da,'config':_0x424f2f,'changeSummary':_0x4dcd77,'expectedRevision':_0x35d0cb,'before':_0x31bc41,'validation':_0x22670e};}function a120_0x20a5(_0x5e5b68,_0x53b3fd){_0x5e5b68=_0x5e5b68-0x154;const _0x3d13bd=a120_0x3d13();let _0x20a506=_0x3d13bd[_0x5e5b68];return _0x20a506;}export const instantApiPolicyPublish={'service':a120_0x31b108(0x164),'command':a120_0x31b108(0x157),'description':a120_0x31b108(0x163),'risk':a120_0x31b108(0x16d),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a120_0x31b108(0x177),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x189247){readChangeSummary(_0x189247),readExpectedRevision(_0x189247);},async 'dryRun'(_0x8ba089){const _0x467383=a120_0x31b108,_0x176633=await preparePublish(_0x8ba089);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x8ba089[_0x467383(0x15b)]},'before':projectCurrentPolicy(_0x176633['before']),'after':{'revision':_0x176633[_0x467383(0x160)]?_0x176633['before'][_0x467383(0x172)]+0x1:0x1,'configHash':_0x176633[_0x467383(0x170)][_0x467383(0x154)],'config':_0x176633['validation'][_0x467383(0x16e)]},'filePath':_0x176633[_0x467383(0x156)][_0x467383(0x166)],'relativePath':_0x176633[_0x467383(0x156)][_0x467383(0x15c)],'dryRun':!![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x176633[_0x467383(0x175)]),'verification':{'status':'planned','expectedRevision':_0x176633[_0x467383(0x175)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x467383(0x162),'url':INSTANT_API_POLICY_BASE_PATH+'/publish'});},async 'execute'(_0x48d4fa){const _0xa59a3d=a120_0x31b108,_0x589d91=await preparePublish(_0x48d4fa);let _0xfa4dad=![];try{await publishInstantApiPolicy({'appCode':_0x48d4fa[_0xa59a3d(0x15b)],'config':_0x589d91['config'],..._0x589d91[_0xa59a3d(0x171)]?{'changeSummary':_0x589d91[_0xa59a3d(0x171)]}:{}});}catch(_0x5696c8){if(!isPlatformTransportFailure(_0x5696c8))throw _0x5696c8;_0xfa4dad=!![];}let _0xa98c25;try{_0xa98c25=await getCurrentInstantApiPolicy(_0x48d4fa['appCode']);}catch(_0x1d3eb7){const _0x10de16=instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x158),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xa59a3d(0x178)+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0xa59a3d(0x15e)](_0x10de16,_0xa59a3d(0x168),{'value':_0x1d3eb7,'enumerable':![]});throw _0x10de16;}const _0x5ed4d7=_0xa98c25&&(_0x589d91[_0xa59a3d(0x160)]===null||_0xa98c25[_0xa59a3d(0x172)]>_0x589d91[_0xa59a3d(0x160)]['revision']),_0x3af3b1=_0xa98c25?.[_0xa59a3d(0x154)]===_0x589d91[_0xa59a3d(0x170)][_0xa59a3d(0x154)];if(!_0xa98c25||!_0x5ed4d7||!_0x3af3b1)throw instantApiPolicyError(_0xfa4dad?'instant_api_policy_publish_outcome_unknown':_0xa59a3d(0x173),_0xa59a3d(0x15a),_0xa59a3d(0x178)+mutationLookupCommand()+_0xa59a3d(0x161));const _0x51d3c0=[...expectedRevisionWarnings(_0x589d91[_0xa59a3d(0x175)]),RUNTIME_CACHE_WARNING];return _0xfa4dad&&_0x51d3c0[_0xa59a3d(0x155)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0xa59a3d(0x157),'selector':{'appCode':_0x48d4fa[_0xa59a3d(0x15b)]},'before':projectCurrentPolicy(_0x589d91[_0xa59a3d(0x160)]),'after':projectCurrentPolicy(_0xa98c25),'filePath':_0x589d91[_0xa59a3d(0x156)][_0xa59a3d(0x166)],'relativePath':_0x589d91[_0xa59a3d(0x156)]['policyRelativePath'],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0xa59a3d(0x165)},'warnings':_0x51d3c0,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0xfa4dad,'expectedRevision':_0x589d91['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0xa98c25['revision']};}};
@@ -1 +1 @@
1
- const a107_0x180c7d=a107_0x7d4c;(function(_0x4045f4,_0x352987){const _0x4efcd5=a107_0x7d4c,_0x5e7d50=_0x4045f4();while(!![]){try{const _0x27a580=parseInt(_0x4efcd5(0x173))/0x1*(parseInt(_0x4efcd5(0x17c))/0x2)+-parseInt(_0x4efcd5(0x171))/0x3*(-parseInt(_0x4efcd5(0x17d))/0x4)+-parseInt(_0x4efcd5(0x181))/0x5+-parseInt(_0x4efcd5(0x180))/0x6+-parseInt(_0x4efcd5(0x17a))/0x7+-parseInt(_0x4efcd5(0x17b))/0x8+-parseInt(_0x4efcd5(0x17f))/0x9*(-parseInt(_0x4efcd5(0x187))/0xa);if(_0x27a580===_0x352987)break;else _0x5e7d50['push'](_0x5e7d50['shift']());}catch(_0x1c4279){_0x5e7d50['push'](_0x5e7d50['shift']());}}}(a107_0x4370,0x7059e));function a107_0x4370(){const _0x4bc403=['write','unchanged','bool','Kept','\x20Instant\x20API\x20policy\x20revision\x20','2816990JRAwtO','policyRelativePath','Pulled','config','99xORFkB','appCode','5fVFcQb','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','instant_api_policy_not_configured','instant-api-policy','action','3056466kkVcrc','4810904vgBDwy','50894eZXCup','18372tizaQj','configHash','63QasiNP','3554646Oalglm','800325bkTnZW'];a107_0x4370=function(){return _0x4bc403;};return a107_0x4370();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x7d4c(_0x572e76,_0x2d429e){_0x572e76=_0x572e76-0x16f;const _0x437077=a107_0x4370();let _0x7d4cbc=_0x437077[_0x572e76];return _0x7d4cbc;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a107_0x180c7d(0x178),'command':'pull','description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a107_0x180c7d(0x182),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x37c1dc){requireForceConfirmation(_0x37c1dc);},async 'execute'(_0x479419){const _0x1b9b35=a107_0x180c7d;requireForceConfirmation(_0x479419);const _0x427123=await getCurrentInstantApiPolicy(_0x479419['appCode']);if(!_0x427123)throw instantApiPolicyError(_0x1b9b35(0x177),_0x1b9b35(0x175)+_0x479419['appCode']+'.',_0x1b9b35(0x174));const _0x3a70c6=loadInstantApiPolicyLocalConfig(_0x479419[_0x1b9b35(0x172)]),_0xbed234=await writeInstantApiPolicyConfigFile(_0x3a70c6,_0x427123[_0x1b9b35(0x170)],{'force':_0x479419[_0x1b9b35(0x184)]('force')});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x479419['appCode'],'revision':_0x427123[_0x1b9b35(0x176)]},'filePath':_0x3a70c6['policyFilePath'],'relativePath':_0x3a70c6[_0x1b9b35(0x188)],'action':_0xbed234[_0x1b9b35(0x179)],'configHash':_0x427123[_0x1b9b35(0x17e)]},'message':(_0xbed234['action']===_0x1b9b35(0x183)?_0x1b9b35(0x185):_0x1b9b35(0x16f))+_0x1b9b35(0x186)+_0x427123[_0x1b9b35(0x176)]};}};
1
+ const a121_0x5590b6=a121_0x26a1;(function(_0x20b618,_0x562180){const _0x57bf3d=a121_0x26a1,_0x5e3f2=_0x20b618();while(!![]){try{const _0x21566b=parseInt(_0x57bf3d(0x155))/0x1+-parseInt(_0x57bf3d(0x151))/0x2+parseInt(_0x57bf3d(0x14b))/0x3+-parseInt(_0x57bf3d(0x15d))/0x4+-parseInt(_0x57bf3d(0x14d))/0x5+parseInt(_0x57bf3d(0x156))/0x6+parseInt(_0x57bf3d(0x149))/0x7;if(_0x21566b===_0x562180)break;else _0x5e3f2['push'](_0x5e3f2['shift']());}catch(_0xbe25b){_0x5e3f2['push'](_0x5e3f2['shift']());}}}(a121_0x4b11,0xb2468));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a121_0x26a1(_0x377503,_0x1de5c6){_0x377503=_0x377503-0x149;const _0x4b1181=a121_0x4b11();let _0x26a1b5=_0x4b1181[_0x377503];return _0x26a1b5;}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a121_0x4b11(){const _0x3f899f=['bool','instant_api_policy_not_configured','pull','instant-api-policy','revision','action','97460ULDefa','8522472jPLlEq','appCode','740049qAkjEv','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','6530445zLLUYs','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','config','682016jWhOCq','force','\x20Instant\x20API\x20policy\x20revision\x20','Pulled','19941ZvOOyf','5505348VenRPq'];a121_0x4b11=function(){return _0x3f899f;};return a121_0x4b11();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a121_0x5590b6(0x15a),'command':a121_0x5590b6(0x159),'description':a121_0x5590b6(0x14f),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1b1e05){requireForceConfirmation(_0x1b1e05);},async 'execute'(_0x246e3a){const _0x1c0f45=a121_0x5590b6;requireForceConfirmation(_0x246e3a);const _0x5800f3=await getCurrentInstantApiPolicy(_0x246e3a[_0x1c0f45(0x14a)]);if(!_0x5800f3)throw instantApiPolicyError(_0x1c0f45(0x158),_0x1c0f45(0x14e)+_0x246e3a[_0x1c0f45(0x14a)]+'.',_0x1c0f45(0x14c));const _0x313b9a=loadInstantApiPolicyLocalConfig(_0x246e3a[_0x1c0f45(0x14a)]),_0x201af4=await writeInstantApiPolicyConfigFile(_0x313b9a,_0x5800f3[_0x1c0f45(0x150)],{'force':_0x246e3a[_0x1c0f45(0x157)](_0x1c0f45(0x152))});return{'ok':!![],'data':{'operation':'pull','selector':{'appCode':_0x246e3a[_0x1c0f45(0x14a)],'revision':_0x5800f3[_0x1c0f45(0x15b)]},'filePath':_0x313b9a['policyFilePath'],'relativePath':_0x313b9a['policyRelativePath'],'action':_0x201af4[_0x1c0f45(0x15c)],'configHash':_0x5800f3['configHash']},'message':(_0x201af4[_0x1c0f45(0x15c)]==='unchanged'?'Kept':_0x1c0f45(0x154))+_0x1c0f45(0x153)+_0x5800f3['revision']};}};
@@ -1 +1 @@
1
- const a108_0x539321=a108_0x5768;function a108_0x5768(_0x1b9bdb,_0x4fc9bc){_0x1b9bdb=_0x1b9bdb-0x1b5;const _0x37344f=a108_0x3734();let _0x5768df=_0x37344f[_0x1b9bdb];return _0x5768df;}function a108_0x3734(){const _0x2677de=['77okygOt','127323dqQBdg','19408RzJehE','168155AftYnr','721682mIetSz','appCode','327XzcvrO','511UhYjLq','read','24rjzaDz','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','Loaded\x20Instant\x20API\x20policy\x20revision\x20','2hfTuym','200316hObIzz','5732jkQdzN','27tWezVk','931650epEWCt'];a108_0x3734=function(){return _0x2677de;};return a108_0x3734();}(function(_0x5aadf6,_0x2ab7f8){const _0x5e70dc=a108_0x5768,_0x3b5c9d=_0x5aadf6();while(!![]){try{const _0x22a89c=parseInt(_0x5e70dc(0x1c2))/0x1*(-parseInt(_0x5e70dc(0x1bc))/0x2)+parseInt(_0x5e70dc(0x1b6))/0x3*(parseInt(_0x5e70dc(0x1be))/0x4)+parseInt(_0x5e70dc(0x1c4))/0x5*(-parseInt(_0x5e70dc(0x1b9))/0x6)+-parseInt(_0x5e70dc(0x1b7))/0x7*(parseInt(_0x5e70dc(0x1c3))/0x8)+parseInt(_0x5e70dc(0x1bf))/0x9*(parseInt(_0x5e70dc(0x1c0))/0xa)+-parseInt(_0x5e70dc(0x1c1))/0xb*(-parseInt(_0x5e70dc(0x1bd))/0xc)+parseInt(_0x5e70dc(0x1c5))/0xd;if(_0x22a89c===_0x2ab7f8)break;else _0x3b5c9d['push'](_0x3b5c9d['shift']());}catch(_0x13965a){_0x3b5c9d['push'](_0x3b5c9d['shift']());}}}(a108_0x3734,0x29498));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a108_0x539321(0x1ba),'risk':a108_0x539321(0x1b8),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x3c2fe1){readRevision(_0x3c2fe1);},async 'execute'(_0x3f60ae){const _0xf4f601=a108_0x539321,_0x70c387=readRevision(_0x3f60ae),_0x4e3bc6=await getInstantApiPolicyRevision(_0x3f60ae[_0xf4f601(0x1b5)],_0x70c387);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x4e3bc6)},'message':_0xf4f601(0x1bb)+_0x70c387};}};
1
+ const a122_0x130432=a122_0x2fda;(function(_0x43595f,_0x4e8969){const _0x517ea3=a122_0x2fda,_0x3bec56=_0x43595f();while(!![]){try{const _0x2812a8=-parseInt(_0x517ea3(0x1b6))/0x1*(parseInt(_0x517ea3(0x1b5))/0x2)+-parseInt(_0x517ea3(0x1ac))/0x3+parseInt(_0x517ea3(0x1b1))/0x4*(parseInt(_0x517ea3(0x1ad))/0x5)+parseInt(_0x517ea3(0x1b9))/0x6*(parseInt(_0x517ea3(0x1ae))/0x7)+parseInt(_0x517ea3(0x1b7))/0x8+parseInt(_0x517ea3(0x1ba))/0x9+-parseInt(_0x517ea3(0x1af))/0xa;if(_0x2812a8===_0x4e8969)break;else _0x3bec56['push'](_0x3bec56['shift']());}catch(_0xcefbaf){_0x3bec56['push'](_0x3bec56['shift']());}}}(a122_0x6177,0x24472));function a122_0x2fda(_0x208d9f,_0x59ba9f){_0x208d9f=_0x208d9f-0x1ac;const _0x617758=a122_0x6177();let _0x2fdaa7=_0x617758[_0x208d9f];return _0x2fdaa7;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a122_0x6177(){const _0x492d9c=['appCode','5636ayisZK','instant-api-policy','read','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','259442fgCYsp','1PCDEWs','2321480sdsEqF','revision','1674yXhMHw','343620tyvUbs','95049fAWiuv','305nUYhvU','6951GFuCYW','3813630bMsYqe'];a122_0x6177=function(){return _0x492d9c;};return a122_0x6177();}export const instantApiPolicyRevision={'service':a122_0x130432(0x1b2),'command':a122_0x130432(0x1b8),'description':a122_0x130432(0x1b4),'risk':a122_0x130432(0x1b3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x2d343e){readRevision(_0x2d343e);},async 'execute'(_0x818a83){const _0xeb04aa=a122_0x130432,_0x5ee3f3=readRevision(_0x818a83),_0x47aa21=await getInstantApiPolicyRevision(_0x818a83[_0xeb04aa(0x1b0)],_0x5ee3f3);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x47aa21)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x5ee3f3};}};
@@ -1 +1 @@
1
- const a109_0x4323b6=a109_0x2a36;(function(_0x370746,_0xb4eb8a){const _0x5cf0ac=a109_0x2a36,_0x168d50=_0x370746();while(!![]){try{const _0x464062=-parseInt(_0x5cf0ac(0x78))/0x1*(-parseInt(_0x5cf0ac(0x72))/0x2)+-parseInt(_0x5cf0ac(0x6c))/0x3*(parseInt(_0x5cf0ac(0x77))/0x4)+-parseInt(_0x5cf0ac(0x71))/0x5*(-parseInt(_0x5cf0ac(0x6b))/0x6)+-parseInt(_0x5cf0ac(0x70))/0x7+-parseInt(_0x5cf0ac(0x73))/0x8+-parseInt(_0x5cf0ac(0x7a))/0x9+parseInt(_0x5cf0ac(0x6d))/0xa;if(_0x464062===_0xb4eb8a)break;else _0x168d50['push'](_0x168d50['shift']());}catch(_0xc24729){_0x168d50['push'](_0x168d50['shift']());}}}(a109_0x25a9,0x2a387));function a109_0x2a36(_0x1eea05,_0xd869){_0x1eea05=_0x1eea05-0x6b;const _0x25a917=a109_0x25a9();let _0x2a366e=_0x25a917[_0x1eea05];return _0x2a366e;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a109_0x25a9(){const _0x5d4714=['2104408WiYyDT','instant-api-policy','\x20Instant\x20API\x20policy\x20revision(s)','length','956XBUQMf','10SRGgQQ','map','2036277Lybsls','6uGcezx','3387lfIOco','7112890yzVBPH','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','Found\x20','572656xpuVea','970795VTvGhR','21686VAuHaE'];a109_0x25a9=function(){return _0x5d4714;};return a109_0x25a9();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a109_0x4323b6(0x74),'command':'revisions','description':a109_0x4323b6(0x6e),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1e08e9){const _0x1c212d=a109_0x4323b6,_0x3da72e=await listInstantApiPolicyRevisions(_0x1e08e9['appCode']);return{'ok':!![],'data':{'appCode':_0x1e08e9['appCode'],'total':_0x3da72e['length'],'revisions':_0x3da72e[_0x1c212d(0x79)](projectRevisionSummary)},'message':_0x1c212d(0x6f)+_0x3da72e[_0x1c212d(0x76)]+_0x1c212d(0x75)};}};
1
+ function a123_0x467c(){const _0x7a0532=['revisions','9696618PaGZht','8TMxDdN','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','30249kwCmDq','2835108EsyBao','10944283bNzGKC','read','4xdGVBT','\x20Instant\x20API\x20policy\x20revision(s)','10SQVtlp','length','appCode','140UHFIkM','791857IHFxgs','instant-api-policy','62971667EAJMlr','2482915kTqYaR','map','Found\x20'];a123_0x467c=function(){return _0x7a0532;};return a123_0x467c();}const a123_0x4673c2=a123_0x7b02;function a123_0x7b02(_0x3ca04f,_0xb0d0a0){_0x3ca04f=_0x3ca04f-0x129;const _0x467c3c=a123_0x467c();let _0x7b02f4=_0x467c3c[_0x3ca04f];return _0x7b02f4;}(function(_0x4483ca,_0x3a03ef){const _0x2b8db6=a123_0x7b02,_0x5a4062=_0x4483ca();while(!![]){try{const _0x224221=-parseInt(_0x2b8db6(0x12a))/0x1+-parseInt(_0x2b8db6(0x129))/0x2*(parseInt(_0x2b8db6(0x134))/0x3)+-parseInt(_0x2b8db6(0x138))/0x4*(parseInt(_0x2b8db6(0x12d))/0x5)+-parseInt(_0x2b8db6(0x131))/0x6+parseInt(_0x2b8db6(0x136))/0x7*(-parseInt(_0x2b8db6(0x132))/0x8)+parseInt(_0x2b8db6(0x135))/0x9+-parseInt(_0x2b8db6(0x13a))/0xa*(-parseInt(_0x2b8db6(0x12c))/0xb);if(_0x224221===_0x3a03ef)break;else _0x5a4062['push'](_0x5a4062['shift']());}catch(_0x5b0d09){_0x5a4062['push'](_0x5a4062['shift']());}}}(a123_0x467c,0xd365f));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a123_0x4673c2(0x12b),'command':a123_0x4673c2(0x130),'description':a123_0x4673c2(0x133),'risk':a123_0x4673c2(0x137),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x33006b){const _0xfe4ef7=a123_0x4673c2,_0x22d59b=await listInstantApiPolicyRevisions(_0x33006b['appCode']);return{'ok':!![],'data':{'appCode':_0x33006b[_0xfe4ef7(0x13c)],'total':_0x22d59b[_0xfe4ef7(0x13b)],'revisions':_0x22d59b[_0xfe4ef7(0x12e)](projectRevisionSummary)},'message':_0xfe4ef7(0x12f)+_0x22d59b[_0xfe4ef7(0x13b)]+_0xfe4ef7(0x139)};}};
@@ -1 +1 @@
1
- const a110_0x56ceec=a110_0x57f7;(function(_0x35c185,_0x57ba82){const _0x583e60=a110_0x57f7,_0x22b721=_0x35c185();while(!![]){try{const _0x1bbebc=-parseInt(_0x583e60(0xd1))/0x1*(-parseInt(_0x583e60(0xd5))/0x2)+parseInt(_0x583e60(0xd0))/0x3+-parseInt(_0x583e60(0xca))/0x4+parseInt(_0x583e60(0xc2))/0x5*(parseInt(_0x583e60(0xb4))/0x6)+parseInt(_0x583e60(0xbb))/0x7*(-parseInt(_0x583e60(0xb7))/0x8)+-parseInt(_0x583e60(0xcb))/0x9+-parseInt(_0x583e60(0xd3))/0xa*(-parseInt(_0x583e60(0xc7))/0xb);if(_0x1bbebc===_0x57ba82)break;else _0x22b721['push'](_0x22b721['shift']());}catch(_0x4b0eeb){_0x22b721['push'](_0x22b721['shift']());}}}(a110_0x2576,0xee1b2));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x134f25){const _0x4f25d4=a110_0x57f7,_0x2dc0b9=readRevision(_0x134f25),_0x276b57=readChangeSummary(_0x134f25),_0x1ef186=readExpectedRevision(_0x134f25),[_0x337155,_0x1826c0]=await Promise[_0x4f25d4(0xc4)]([getCurrentInstantApiPolicy(_0x134f25['appCode']),getInstantApiPolicyRevision(_0x134f25[_0x4f25d4(0xd2)],_0x2dc0b9)]);if(!_0x337155)throw instantApiPolicyError(_0x4f25d4(0xb8),_0x4f25d4(0xb3)+_0x134f25[_0x4f25d4(0xd2)]+'.');return assertExpectedRevision(_0x337155,_0x1ef186),{'revision':_0x2dc0b9,'changeSummary':_0x276b57,'expectedRevision':_0x1ef186,'before':_0x337155,'target':_0x1826c0};}function a110_0x57f7(_0x25d4d6,_0x4c1ba9){_0x25d4d6=_0x25d4d6-0xb2;const _0x257604=a110_0x2576();let _0x57f71b=_0x257604[_0x25d4d6];return _0x57f71b;}export const instantApiPolicyRollback={'service':'instant-api-policy','command':a110_0x56ceec(0xb6),'description':a110_0x56ceec(0xcf),'risk':a110_0x56ceec(0xb9),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a110_0x56ceec(0xc6),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x51f01f){readRevision(_0x51f01f),readChangeSummary(_0x51f01f),readExpectedRevision(_0x51f01f);},async 'dryRun'(_0x4ef7b0){const _0xd03f3b=a110_0x56ceec,_0x3f2993=await prepareRollback(_0x4ef7b0);return asDryRunResult({'operation':_0xd03f3b(0xb6),'selector':{'appCode':_0x4ef7b0[_0xd03f3b(0xd2)],'sourceRevision':_0x3f2993[_0xd03f3b(0xba)]},'before':projectCurrentPolicy(_0x3f2993[_0xd03f3b(0xbd)]),'after':{'revision':_0x3f2993[_0xd03f3b(0xbd)]['revision']+0x1,'sourceRevision':projectRevisionDetail(_0x3f2993[_0xd03f3b(0xb5)])},'dryRun':!![],'backend':{'method':_0xd03f3b(0xc5),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x3f2993[_0xd03f3b(0xc1)]),'verification':{'status':'planned','expectedRevision':_0x3f2993['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0xd03f3b(0xc5),'url':INSTANT_API_POLICY_BASE_PATH+_0xd03f3b(0xd7)});},async 'execute'(_0x15cd3c){const _0x474a3e=a110_0x56ceec,_0x56c8df=await prepareRollback(_0x15cd3c);let _0x324ff9=![];try{await rollbackInstantApiPolicy({'appCode':_0x15cd3c[_0x474a3e(0xd2)],'revision':_0x56c8df[_0x474a3e(0xba)],..._0x56c8df['changeSummary']?{'changeSummary':_0x56c8df['changeSummary']}:{}});}catch(_0x20c25b){if(!isPlatformTransportFailure(_0x20c25b))throw _0x20c25b;_0x324ff9=!![];}let _0x506db6;try{_0x506db6=await getCurrentInstantApiPolicy(_0x15cd3c['appCode']);}catch(_0x5167b3){const _0x840d5e=instantApiPolicyError(_0x324ff9?_0x474a3e(0xc0):_0x474a3e(0xbc),_0x474a3e(0xc3),_0x474a3e(0xce)+mutationLookupCommand()+_0x474a3e(0xd6));Object[_0x474a3e(0xbe)](_0x840d5e,_0x474a3e(0xb2),{'value':_0x5167b3,'enumerable':![]});throw _0x840d5e;}const _0x2f8d92=_0x506db6&&_0x506db6[_0x474a3e(0xba)]>_0x56c8df[_0x474a3e(0xbd)]['revision'],_0x585d66=_0x506db6?.[_0x474a3e(0xcd)]===_0x56c8df[_0x474a3e(0xb5)][_0x474a3e(0xcd)];if(!_0x506db6||!_0x2f8d92||!_0x585d66)throw instantApiPolicyError(_0x324ff9?_0x474a3e(0xc0):_0x474a3e(0xbf),_0x474a3e(0xcc),_0x474a3e(0xce)+mutationLookupCommand()+_0x474a3e(0xd6));const _0x13754d=[...expectedRevisionWarnings(_0x56c8df[_0x474a3e(0xc1)]),RUNTIME_CACHE_WARNING];return _0x324ff9&&_0x13754d['push']('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x474a3e(0xb6),'selector':{'appCode':_0x15cd3c[_0x474a3e(0xd2)],'sourceRevision':_0x56c8df[_0x474a3e(0xba)]},'before':projectCurrentPolicy(_0x56c8df[_0x474a3e(0xbd)]),'after':projectCurrentPolicy(_0x506db6),'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x13754d,'verification':{'status':_0x474a3e(0xd4),'recoveredAfterUnknownResponse':_0x324ff9,'expectedRevision':_0x56c8df[_0x474a3e(0xc1)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x474a3e(0xc9)+_0x56c8df[_0x474a3e(0xba)]+_0x474a3e(0xc8)+_0x506db6[_0x474a3e(0xba)]};}};function a110_0x2576(){const _0xc370f0=['cause','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','138oGTWfd','target','rollback','3309896TmlWeu','instant_api_policy_not_configured','high-risk-write','revision','21fJzYjy','instant_api_policy_rollback_verification_unavailable','before','defineProperty','instant_api_policy_rollback_verification_failed','instant_api_policy_rollback_outcome_unknown','expectedRevision','292365LdcozG','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','all','POST','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','903562oDULNg','\x20forward\x20to\x20revision\x20','Rolled\x20Instant\x20API\x20policy\x20revision\x20','5481048ORUBgm','3846402ITtSMA','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','configHash','Inspect\x20with\x20`','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','270678OLmXHB','5pIyvQg','appCode','190zAuhES','verified','407332cvJLPy','`;\x20do\x20not\x20resubmit\x20automatically.','/rollback'];a110_0x2576=function(){return _0xc370f0;};return a110_0x2576();}
1
+ const a124_0x57a0d9=a124_0x5eb8;(function(_0x3691ce,_0x7ecb39){const _0x49716e=a124_0x5eb8,_0x1c0e19=_0x3691ce();while(!![]){try{const _0x259b41=-parseInt(_0x49716e(0xf4))/0x1+-parseInt(_0x49716e(0xe3))/0x2*(-parseInt(_0x49716e(0xdd))/0x3)+-parseInt(_0x49716e(0xdb))/0x4+parseInt(_0x49716e(0xe9))/0x5+-parseInt(_0x49716e(0xe5))/0x6+parseInt(_0x49716e(0xe2))/0x7+-parseInt(_0x49716e(0xdf))/0x8*(-parseInt(_0x49716e(0xf8))/0x9);if(_0x259b41===_0x7ecb39)break;else _0x1c0e19['push'](_0x1c0e19['shift']());}catch(_0x2a1dee){_0x1c0e19['push'](_0x1c0e19['shift']());}}}(a124_0x3679,0xf2457));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a124_0x5eb8(_0x7cfb70,_0x46ccb8){_0x7cfb70=_0x7cfb70-0xd6;const _0x367924=a124_0x3679();let _0x5eb899=_0x367924[_0x7cfb70];return _0x5eb899;}import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a124_0x3679(){const _0x409019=['push','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','Rolled\x20Instant\x20API\x20policy\x20revision\x20','4742184RsUAff','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','1017maHPqZ','rollback','13981832BGkqvf','instant_api_policy_not_configured','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','7090027MwnHVj','9538PqzJpB','`;\x20do\x20not\x20resubmit\x20automatically.','4724466SGwwvd','/rollback','all','high-risk-write','2515960pnLEkf','before','revision','verified','instant_api_policy_rollback_outcome_unknown','expectedRevision','defineProperty','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','instant-api-policy','configHash','1915173pziyHU','appCode','\x20forward\x20to\x20revision\x20','POST','9vMoVOq','instant_api_policy_rollback_verification_failed','target','changeSummary','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.'];a124_0x3679=function(){return _0x409019;};return a124_0x3679();}async function prepareRollback(_0x3dc01d){const _0x106614=a124_0x5eb8,_0x1e762e=readRevision(_0x3dc01d),_0x3c0685=readChangeSummary(_0x3dc01d),_0x4a646e=readExpectedRevision(_0x3dc01d),[_0x2112f3,_0x5c52e3]=await Promise[_0x106614(0xe7)]([getCurrentInstantApiPolicy(_0x3dc01d[_0x106614(0xf5)]),getInstantApiPolicyRevision(_0x3dc01d[_0x106614(0xf5)],_0x1e762e)]);if(!_0x2112f3)throw instantApiPolicyError(_0x106614(0xe0),_0x106614(0xd9)+_0x3dc01d['appCode']+'.');return assertExpectedRevision(_0x2112f3,_0x4a646e),{'revision':_0x1e762e,'changeSummary':_0x3c0685,'expectedRevision':_0x4a646e,'before':_0x2112f3,'target':_0x5c52e3};}export const instantApiPolicyRollback={'service':a124_0x57a0d9(0xf2),'command':'rollback','description':a124_0x57a0d9(0xf0),'risk':a124_0x57a0d9(0xe8),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a124_0x57a0d9(0xd7),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2b9421){readRevision(_0x2b9421),readChangeSummary(_0x2b9421),readExpectedRevision(_0x2b9421);},async 'dryRun'(_0x57dcd8){const _0x5d233b=a124_0x57a0d9,_0x16e0bb=await prepareRollback(_0x57dcd8);return asDryRunResult({'operation':_0x5d233b(0xde),'selector':{'appCode':_0x57dcd8[_0x5d233b(0xf5)],'sourceRevision':_0x16e0bb['revision']},'before':projectCurrentPolicy(_0x16e0bb[_0x5d233b(0xea)]),'after':{'revision':_0x16e0bb[_0x5d233b(0xea)][_0x5d233b(0xeb)]+0x1,'sourceRevision':projectRevisionDetail(_0x16e0bb[_0x5d233b(0xfa)])},'dryRun':!![],'backend':{'method':_0x5d233b(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x16e0bb['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x16e0bb[_0x5d233b(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x5d233b(0xf7),'url':INSTANT_API_POLICY_BASE_PATH+_0x5d233b(0xe6)});},async 'execute'(_0xe5455c){const _0x389324=a124_0x57a0d9,_0x514a58=await prepareRollback(_0xe5455c);let _0x43bc8c=![];try{await rollbackInstantApiPolicy({'appCode':_0xe5455c['appCode'],'revision':_0x514a58[_0x389324(0xeb)],..._0x514a58[_0x389324(0xd6)]?{'changeSummary':_0x514a58[_0x389324(0xd6)]}:{}});}catch(_0x1384df){if(!isPlatformTransportFailure(_0x1384df))throw _0x1384df;_0x43bc8c=!![];}let _0x1ffa83;try{_0x1ffa83=await getCurrentInstantApiPolicy(_0xe5455c['appCode']);}catch(_0x2a9f68){const _0x3da4e8=instantApiPolicyError(_0x43bc8c?'instant_api_policy_rollback_outcome_unknown':'instant_api_policy_rollback_verification_unavailable',_0x389324(0xdc),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));Object[_0x389324(0xef)](_0x3da4e8,'cause',{'value':_0x2a9f68,'enumerable':![]});throw _0x3da4e8;}const _0x2f6f76=_0x1ffa83&&_0x1ffa83[_0x389324(0xeb)]>_0x514a58[_0x389324(0xea)][_0x389324(0xeb)],_0x17ecb9=_0x1ffa83?.['configHash']===_0x514a58[_0x389324(0xfa)][_0x389324(0xf3)];if(!_0x1ffa83||!_0x2f6f76||!_0x17ecb9)throw instantApiPolicyError(_0x43bc8c?_0x389324(0xed):_0x389324(0xf9),_0x389324(0xe1),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x389324(0xe4));const _0x4cd93e=[...expectedRevisionWarnings(_0x514a58['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x43bc8c&&_0x4cd93e[_0x389324(0xd8)](_0x389324(0xf1)),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0xe5455c[_0x389324(0xf5)],'sourceRevision':_0x514a58['revision']},'before':projectCurrentPolicy(_0x514a58[_0x389324(0xea)]),'after':projectCurrentPolicy(_0x1ffa83),'dryRun':![],'backend':{'method':_0x389324(0xf7),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x4cd93e,'verification':{'status':_0x389324(0xec),'recoveredAfterUnknownResponse':_0x43bc8c,'expectedRevision':_0x514a58[_0x389324(0xee)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x389324(0xda)+_0x514a58[_0x389324(0xeb)]+_0x389324(0xf6)+_0x1ffa83['revision']};}};
@@ -1 +1 @@
1
- const a111_0x559e01=a111_0xbdaf;(function(_0x27159a,_0x57caf0){const _0x1d3def=a111_0xbdaf,_0x2e67e5=_0x27159a();while(!![]){try{const _0x24a000=-parseInt(_0x1d3def(0x1ae))/0x1+-parseInt(_0x1d3def(0x185))/0x2*(parseInt(_0x1d3def(0x19f))/0x3)+parseInt(_0x1d3def(0x18d))/0x4*(parseInt(_0x1d3def(0x198))/0x5)+-parseInt(_0x1d3def(0x18f))/0x6+parseInt(_0x1d3def(0x1a6))/0x7*(parseInt(_0x1d3def(0x19c))/0x8)+parseInt(_0x1d3def(0x1ad))/0x9*(parseInt(_0x1d3def(0x1a4))/0xa)+parseInt(_0x1d3def(0x1af))/0xb;if(_0x24a000===_0x57caf0)break;else _0x2e67e5['push'](_0x2e67e5['shift']());}catch(_0x37bebd){_0x2e67e5['push'](_0x2e67e5['shift']());}}}(a111_0x3f50,0xd2273));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a111_0x559e01(0x191);export const RUNTIME_CACHE_WARNING=a111_0x559e01(0x1a5);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x559e01(0x1b4);function a111_0x3f50(){const _0x582419=['gmtModified','operatorId','bool','boolean','change-summary','instant_api_policy_expected_revision_invalid','76596oYUkIj','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','8021370FOeYMx','expected-revision','/smartapi/instant-api-policy','changeType','num','trim','NaN','number','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','440MdOPry','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','instant_api_policy_force_confirmation_required','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','1208LCvRcJ','force','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','6IBJOMR','isSafeInteger','Expected\x20revision\x20','instant_api_policy_change_summary_invalid','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','19070mQZUuk','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','14644keRlTb','config','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',';\x20current\x20revision\x20is\x20','policyId','flag','--change-summary\x20cannot\x20exceed\x202000\x20characters.','7101FiVZWm','1623765CnalLN','20711020EbcZYA','revision','createUserId','Positive\x20published\x20policy\x20revision','instant_api_policy_revision_mismatch','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','yes','appCode','gmtCreate','instant_api_policy_revision_invalid','length','1567000jUMrVj','version'];a111_0x3f50=function(){return _0x582419;};return a111_0x3f50();}export const FORCE_FLAG={'name':a111_0x559e01(0x19d),'type':a111_0x559e01(0x18a),'default':![],'description':a111_0x559e01(0x1b5)};export const CHANGE_SUMMARY_FLAG={'name':a111_0x559e01(0x18b),'type':'string','required':![],'description':a111_0x559e01(0x19e)};export const REVISION_FLAG={'name':a111_0x559e01(0x1b0),'type':a111_0x559e01(0x196),'required':!![],'description':a111_0x559e01(0x1b2)};export const EXPECTED_REVISION_FLAG={'name':a111_0x559e01(0x190),'type':'number','required':![],'description':a111_0x559e01(0x1a3)};export function requireForceConfirmation(_0xce5f82){const _0x43d48c=a111_0x559e01;if(!_0xce5f82['bool'](_0x43d48c(0x19d))||_0xce5f82[_0x43d48c(0x189)](_0x43d48c(0x1b6)))return;throw instantApiPolicyError(_0x43d48c(0x19a),_0x43d48c(0x19b),_0x43d48c(0x18e));}function a111_0xbdaf(_0x9e064b,_0x2d77cb){_0x9e064b=_0x9e064b-0x183;const _0x3f507e=a111_0x3f50();let _0xbdaf2c=_0x3f507e[_0x9e064b];return _0xbdaf2c;}export function readChangeSummary(_0x54331d){const _0x55c52b=a111_0x559e01,_0x4efa48=_0x54331d['str'](_0x55c52b(0x18b))[_0x55c52b(0x194)]();if(!_0x4efa48)return undefined;if(_0x4efa48[_0x55c52b(0x184)]>0x7d0)throw instantApiPolicyError(_0x55c52b(0x1a2),_0x55c52b(0x1ac));return _0x4efa48;}export function readRevision(_0x5d1e83){const _0x474105=a111_0x559e01,_0xc05fd6=_0x5d1e83[_0x474105(0x193)]('revision',Number[_0x474105(0x195)]);if(!Number[_0x474105(0x1a0)](_0xc05fd6)||_0xc05fd6<=0x0)throw instantApiPolicyError(_0x474105(0x183),'--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.');return _0xc05fd6;}export function readExpectedRevision(_0x408435){const _0x16c2f9=a111_0x559e01;if(_0x408435[_0x16c2f9(0x1ab)](_0x16c2f9(0x190))===undefined)return undefined;const _0x4f2d0a=_0x408435[_0x16c2f9(0x193)]('expected-revision',Number[_0x16c2f9(0x195)]);if(!Number[_0x16c2f9(0x1a0)](_0x4f2d0a)||_0x4f2d0a<0x0)throw instantApiPolicyError(_0x16c2f9(0x18c),'--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x4f2d0a;}export function assertExpectedRevision(_0x124df4,_0x49fc5b){const _0x1ea0ef=a111_0x559e01;if(_0x49fc5b===undefined)return;const _0x3dfd24=_0x124df4?.[_0x1ea0ef(0x1b0)]??0x0;if(_0x3dfd24!==_0x49fc5b)throw instantApiPolicyError(_0x1ea0ef(0x1b3),_0x1ea0ef(0x1a8),_0x1ea0ef(0x1a1)+_0x49fc5b+_0x1ea0ef(0x1a9)+_0x3dfd24+_0x1ea0ef(0x197));}export async function readFixedPolicy(_0x142ae4){const _0x4834b1=a111_0x559e01,_0x46a828=loadInstantApiPolicyLocalConfig(_0x142ae4[_0x4834b1(0x1b7)]),_0x3552db=await readInstantApiPolicyConfigFile(_0x46a828);return{'local':_0x46a828,'config':_0x3552db};}export function projectCurrentPolicy(_0x1dfd56){const _0x25b790=a111_0x559e01;if(!_0x1dfd56)return null;return{'id':_0x1dfd56['id'],'appCode':_0x1dfd56[_0x25b790(0x1b7)],'revision':_0x1dfd56[_0x25b790(0x1b0)],'configHash':_0x1dfd56['configHash'],'enabled':_0x1dfd56['enabled'],'config':_0x1dfd56['config'],'createUserId':_0x1dfd56[_0x25b790(0x1b1)]??null,'updateUserId':_0x1dfd56['updateUserId']??null,'gmtCreate':_0x1dfd56[_0x25b790(0x1b8)]??null,'gmtModified':_0x1dfd56[_0x25b790(0x187)]??null};}export function projectRevisionSummary(_0x5dee25){const _0x3ac80d=a111_0x559e01;return{'id':_0x5dee25['id'],'policyId':_0x5dee25[_0x3ac80d(0x1aa)],'appCode':_0x5dee25[_0x3ac80d(0x1b7)],'revision':_0x5dee25[_0x3ac80d(0x1b0)],'configHash':_0x5dee25['configHash'],'changeType':_0x5dee25[_0x3ac80d(0x192)],'changeSummary':_0x5dee25['changeSummary']??null,'operatorId':_0x5dee25[_0x3ac80d(0x188)]??null,'gmtCreate':_0x5dee25['gmtCreate']??null,'version':_0x5dee25[_0x3ac80d(0x1a7)][_0x3ac80d(0x186)],'defaultAction':_0x5dee25[_0x3ac80d(0x1a7)]['defaults']['instantApi'],'ruleCount':_0x5dee25[_0x3ac80d(0x1a7)]['rules']?.['length']??0x0};}export function projectRevisionDetail(_0x1e00e3){const _0x164d1a=a111_0x559e01;return{...projectRevisionSummary(_0x1e00e3),'config':_0x1e00e3[_0x164d1a(0x1a7)]};}export function expectedRevisionWarnings(_0x198092){return _0x198092===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x3350d2=a111_0x559e01;return _0x3350d2(0x199);}
1
+ const a125_0x18fb83=a125_0x2bcb;(function(_0x569ed3,_0x4c2b77){const _0x4621bd=a125_0x2bcb,_0x115532=_0x569ed3();while(!![]){try{const _0x23e0a8=parseInt(_0x4621bd(0x1a9))/0x1*(-parseInt(_0x4621bd(0x1b1))/0x2)+-parseInt(_0x4621bd(0x1bb))/0x3+-parseInt(_0x4621bd(0x1b8))/0x4*(parseInt(_0x4621bd(0x1a8))/0x5)+parseInt(_0x4621bd(0x1a6))/0x6+parseInt(_0x4621bd(0x1ba))/0x7*(-parseInt(_0x4621bd(0x1a1))/0x8)+parseInt(_0x4621bd(0x1a3))/0x9+-parseInt(_0x4621bd(0x1cd))/0xa*(-parseInt(_0x4621bd(0x1a4))/0xb);if(_0x23e0a8===_0x4c2b77)break;else _0x115532['push'](_0x115532['shift']());}catch(_0x464143){_0x115532['push'](_0x115532['shift']());}}}(a125_0x1415,0x7c3db));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a125_0x18fb83(0x1b2);function a125_0x2bcb(_0x5565f8,_0x455adf){_0x5565f8=_0x5565f8-0x19b;const _0x1415b3=a125_0x1415();let _0x2bcb9c=_0x1415b3[_0x5565f8];return _0x2bcb9c;}export const RUNTIME_CACHE_WARNING=a125_0x18fb83(0x1ae);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':'force','type':a125_0x18fb83(0x1c7),'default':![],'description':a125_0x18fb83(0x1c2)};export const CHANGE_SUMMARY_FLAG={'name':a125_0x18fb83(0x1b6),'type':a125_0x18fb83(0x1ca),'required':![],'description':a125_0x18fb83(0x1c8)};export const REVISION_FLAG={'name':a125_0x18fb83(0x1be),'type':a125_0x18fb83(0x19c),'required':!![],'description':a125_0x18fb83(0x1c3)};export const EXPECTED_REVISION_FLAG={'name':a125_0x18fb83(0x1b9),'type':a125_0x18fb83(0x19c),'required':![],'description':'Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured'};export function requireForceConfirmation(_0x480314){const _0x1cf573=a125_0x18fb83;if(!_0x480314[_0x1cf573(0x1bd)](_0x1cf573(0x1cf))||_0x480314[_0x1cf573(0x1bd)]('yes'))return;throw instantApiPolicyError(_0x1cf573(0x19f),'--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.',_0x1cf573(0x19b));}export function readChangeSummary(_0x5d9bb4){const _0x36a69b=a125_0x18fb83,_0x3cdfd4=_0x5d9bb4[_0x36a69b(0x1a2)](_0x36a69b(0x1b6))[_0x36a69b(0x1c1)]();if(!_0x3cdfd4)return undefined;if(_0x3cdfd4[_0x36a69b(0x1c9)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x36a69b(0x1a5));return _0x3cdfd4;}function a125_0x1415(){const _0x3b4a0a=['2bxdAtB','/smartapi/instant-api-policy','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','changeSummary','isSafeInteger','change-summary','updateUserId','2294764pIPBHX','expected-revision','7NMqgah','1042983AivIIe','instantApi','bool','revision','policyId','operatorId','trim','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','Positive\x20published\x20policy\x20revision','config','changeType','NaN','boolean','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','length','string','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','createUserId','2530xrAuMf','gmtCreate','force','instant_api_policy_revision_invalid','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','number','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','instant_api_policy_expected_revision_invalid','instant_api_policy_force_confirmation_required','defaults','4374728bOiLzk','str','7886484TwpDVR','79981JLWvSB','--change-summary\x20cannot\x20exceed\x202000\x20characters.','510336UJRyOP','num','5ZGwNHk','823811mYqQKc','flag','appCode','rules','instant_api_policy_revision_mismatch','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','configHash',';\x20current\x20revision\x20is\x20'];a125_0x1415=function(){return _0x3b4a0a;};return a125_0x1415();}export function readRevision(_0x5c8cf9){const _0x43a0ba=a125_0x18fb83,_0x2a0f5d=_0x5c8cf9[_0x43a0ba(0x1a7)](_0x43a0ba(0x1be),Number[_0x43a0ba(0x1c6)]);if(!Number[_0x43a0ba(0x1b5)](_0x2a0f5d)||_0x2a0f5d<=0x0)throw instantApiPolicyError(_0x43a0ba(0x1d0),_0x43a0ba(0x19d));return _0x2a0f5d;}export function readExpectedRevision(_0x3ea71b){const _0x396504=a125_0x18fb83;if(_0x3ea71b[_0x396504(0x1aa)](_0x396504(0x1b9))===undefined)return undefined;const _0x40afdb=_0x3ea71b[_0x396504(0x1a7)](_0x396504(0x1b9),Number[_0x396504(0x1c6)]);if(!Number[_0x396504(0x1b5)](_0x40afdb)||_0x40afdb<0x0)throw instantApiPolicyError(_0x396504(0x19e),'--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x40afdb;}export function assertExpectedRevision(_0x1867ca,_0xe8da6d){const _0x1042b5=a125_0x18fb83;if(_0xe8da6d===undefined)return;const _0x38437b=_0x1867ca?.[_0x1042b5(0x1be)]??0x0;if(_0x38437b!==_0xe8da6d)throw instantApiPolicyError(_0x1042b5(0x1ad),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','Expected\x20revision\x20'+_0xe8da6d+_0x1042b5(0x1b0)+_0x38437b+_0x1042b5(0x1cb));}export async function readFixedPolicy(_0x204d67){const _0x12af43=loadInstantApiPolicyLocalConfig(_0x204d67['appCode']),_0x4f7e2c=await readInstantApiPolicyConfigFile(_0x12af43);return{'local':_0x12af43,'config':_0x4f7e2c};}export function projectCurrentPolicy(_0x492516){const _0x54dca4=a125_0x18fb83;if(!_0x492516)return null;return{'id':_0x492516['id'],'appCode':_0x492516[_0x54dca4(0x1ab)],'revision':_0x492516[_0x54dca4(0x1be)],'configHash':_0x492516[_0x54dca4(0x1af)],'enabled':_0x492516['enabled'],'config':_0x492516[_0x54dca4(0x1c4)],'createUserId':_0x492516[_0x54dca4(0x1cc)]??null,'updateUserId':_0x492516[_0x54dca4(0x1b7)]??null,'gmtCreate':_0x492516[_0x54dca4(0x1ce)]??null,'gmtModified':_0x492516['gmtModified']??null};}export function projectRevisionSummary(_0x205480){const _0x53d4e5=a125_0x18fb83;return{'id':_0x205480['id'],'policyId':_0x205480[_0x53d4e5(0x1bf)],'appCode':_0x205480[_0x53d4e5(0x1ab)],'revision':_0x205480[_0x53d4e5(0x1be)],'configHash':_0x205480[_0x53d4e5(0x1af)],'changeType':_0x205480[_0x53d4e5(0x1c5)],'changeSummary':_0x205480[_0x53d4e5(0x1b4)]??null,'operatorId':_0x205480[_0x53d4e5(0x1c0)]??null,'gmtCreate':_0x205480[_0x53d4e5(0x1ce)]??null,'version':_0x205480['config']['version'],'defaultAction':_0x205480[_0x53d4e5(0x1c4)][_0x53d4e5(0x1a0)][_0x53d4e5(0x1bc)],'ruleCount':_0x205480[_0x53d4e5(0x1c4)][_0x53d4e5(0x1ac)]?.[_0x53d4e5(0x1c9)]??0x0};}export function projectRevisionDetail(_0x47c572){const _0x45dd5e=a125_0x18fb83;return{...projectRevisionSummary(_0x47c572),'config':_0x47c572[_0x45dd5e(0x1c4)]};}export function expectedRevisionWarnings(_0x451bf1){return _0x451bf1===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x5b4833=a125_0x18fb83;return _0x5b4833(0x1b3);}
@@ -1 +1 @@
1
- function a112_0x50c5(){const _0x58dd45=['1274778NITzYy','validate','appCode','21534wwPnvk','2128kJPudZ','3558393nlDNIO','policyRelativePath','804696iJCDLQ','27616uBRtbz','12BbEdfL','16555TzkiZV','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','150aLDWkk','17406910qtDhDH','valid','normalizedConfig','configHash','policyFilePath'];a112_0x50c5=function(){return _0x58dd45;};return a112_0x50c5();}const a112_0x235e55=a112_0x24f5;(function(_0x242d38,_0x282348){const _0x18c8d2=a112_0x24f5,_0x2f34b8=_0x242d38();while(!![]){try{const _0x3282b7=-parseInt(_0x18c8d2(0x81))/0x1*(-parseInt(_0x18c8d2(0x75))/0x2)+-parseInt(_0x18c8d2(0x73))/0x3+parseInt(_0x18c8d2(0x74))/0x4*(parseInt(_0x18c8d2(0x78))/0x5)+-parseInt(_0x18c8d2(0x7e))/0x6+parseInt(_0x18c8d2(0x76))/0x7*(-parseInt(_0x18c8d2(0x70))/0x8)+-parseInt(_0x18c8d2(0x71))/0x9+parseInt(_0x18c8d2(0x79))/0xa;if(_0x3282b7===_0x282348)break;else _0x2f34b8['push'](_0x2f34b8['shift']());}catch(_0x5182de){_0x2f34b8['push'](_0x2f34b8['shift']());}}}(a112_0x50c5,0x8b9cd));import{validateInstantApiPolicy}from'../../core/api-client.js';function a112_0x24f5(_0x3a4d6c,_0x3f8b60){_0x3a4d6c=_0x3a4d6c-0x70;const _0x50c51b=a112_0x50c5();let _0x24f50f=_0x50c51b[_0x3a4d6c];return _0x24f50f;}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':a112_0x235e55(0x7f),'description':a112_0x235e55(0x77),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x2f5621){const _0x41d9e3=a112_0x235e55,{local:_0x2a7a85,config:_0xfc699e}=await readFixedPolicy(_0x2f5621),_0x3557b0=await validateInstantApiPolicy({'appCode':_0x2f5621['appCode'],'config':_0xfc699e});return{'ok':!![],'data':{'operation':_0x41d9e3(0x7f),'selector':{'appCode':_0x2f5621[_0x41d9e3(0x80)]},'filePath':_0x2a7a85[_0x41d9e3(0x7d)],'relativePath':_0x2a7a85[_0x41d9e3(0x72)],'valid':_0x3557b0[_0x41d9e3(0x7a)],'configHash':_0x3557b0[_0x41d9e3(0x7c)],'normalizedConfig':_0x3557b0[_0x41d9e3(0x7b)],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':'Validated\x20Instant\x20API\x20policy\x20for\x20'+_0x2f5621[_0x41d9e3(0x80)]};}};
1
+ function a126_0x2d73(_0x56ad71,_0x543dfc){_0x56ad71=_0x56ad71-0x19a;const _0x4c7168=a126_0x4c71();let _0x2d73a0=_0x4c7168[_0x56ad71];return _0x2d73a0;}function a126_0x4c71(){const _0x3e6202=['policyFilePath','18036NmVggk','read','2276640RmsRIu','318eymcFN','POST','Validated\x20Instant\x20API\x20policy\x20for\x20','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','9982683lFYzSN','/validate','406637fnERXL','102ouQiFF','2992595bzSiVM','appCode','627926DpJOwB','validate','configHash','6926720IsTKzl'];a126_0x4c71=function(){return _0x3e6202;};return a126_0x4c71();}const a126_0x26bfb8=a126_0x2d73;(function(_0x230d4c,_0x8c6c13){const _0x11ea94=a126_0x2d73,_0x5b63bf=_0x230d4c();while(!![]){try{const _0x4a2788=-parseInt(_0x11ea94(0x19c))/0x1+parseInt(_0x11ea94(0x1a4))/0x2*(-parseInt(_0x11ea94(0x1a1))/0x3)+parseInt(_0x11ea94(0x1a3))/0x4+parseInt(_0x11ea94(0x19a))/0x5+-parseInt(_0x11ea94(0x1ab))/0x6*(parseInt(_0x11ea94(0x1aa))/0x7)+parseInt(_0x11ea94(0x19f))/0x8+parseInt(_0x11ea94(0x1a8))/0x9;if(_0x4a2788===_0x8c6c13)break;else _0x5b63bf['push'](_0x5b63bf['shift']());}catch(_0x2af8d7){_0x5b63bf['push'](_0x5b63bf['shift']());}}}(a126_0x4c71,0x8b7bd));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':a126_0x26bfb8(0x19d),'description':a126_0x26bfb8(0x1a7),'risk':a126_0x26bfb8(0x1a2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x25a74d){const _0x1bce20=a126_0x26bfb8,{local:_0x4e72f7,config:_0x17d316}=await readFixedPolicy(_0x25a74d),_0x5a3e4f=await validateInstantApiPolicy({'appCode':_0x25a74d['appCode'],'config':_0x17d316});return{'ok':!![],'data':{'operation':_0x1bce20(0x19d),'selector':{'appCode':_0x25a74d[_0x1bce20(0x19b)]},'filePath':_0x4e72f7[_0x1bce20(0x1a0)],'relativePath':_0x4e72f7['policyRelativePath'],'valid':_0x5a3e4f['valid'],'configHash':_0x5a3e4f[_0x1bce20(0x19e)],'normalizedConfig':_0x5a3e4f['normalizedConfig'],'backend':{'method':_0x1bce20(0x1a5),'path':INSTANT_API_POLICY_BASE_PATH+_0x1bce20(0x1a9)}},'message':_0x1bce20(0x1a6)+_0x25a74d[_0x1bce20(0x19b)]};}};
@@ -1 +1 @@
1
- function a113_0x8960(){const _0xc48e54=['273048aIXJVE','148ZmYnMy','891832hbZSfR','10fotthD','35yOTfqf','2030030WXBmlX','5900VuIxME','13468401MxlyCX','334518NRWzKV','4470888OEWiCS'];a113_0x8960=function(){return _0xc48e54;};return a113_0x8960();}(function(_0x3e4b77,_0x1f8cfe){const _0x40f5c4=a113_0x59cd,_0xaad212=_0x3e4b77();while(!![]){try{const _0x33cb67=-parseInt(_0x40f5c4(0x8b))/0x1*(-parseInt(_0x40f5c4(0x86))/0x2)+-parseInt(_0x40f5c4(0x8a))/0x3+parseInt(_0x40f5c4(0x8c))/0x4+parseInt(_0x40f5c4(0x85))/0x5+parseInt(_0x40f5c4(0x88))/0x6*(parseInt(_0x40f5c4(0x8e))/0x7)+parseInt(_0x40f5c4(0x89))/0x8+-parseInt(_0x40f5c4(0x87))/0x9*(parseInt(_0x40f5c4(0x8d))/0xa);if(_0x33cb67===_0x1f8cfe)break;else _0xaad212['push'](_0xaad212['shift']());}catch(_0x4789cf){_0xaad212['push'](_0xaad212['shift']());}}}(a113_0x8960,0x4d125));import{issueReport}from'../../commands/issue/report.js';function a113_0x59cd(_0x2decc1,_0x1504ac){_0x2decc1=_0x2decc1-0x85;const _0x896042=a113_0x8960();let _0x59cdc0=_0x896042[_0x2decc1];return _0x59cdc0;}export const issueDefinitions=[issueReport];
1
+ (function(_0x2dacc2,_0x48685e){const _0x51e597=a127_0x44b0,_0x214baf=_0x2dacc2();while(!![]){try{const _0x51fd55=-parseInt(_0x51e597(0x181))/0x1+-parseInt(_0x51e597(0x17a))/0x2+parseInt(_0x51e597(0x17d))/0x3*(parseInt(_0x51e597(0x17f))/0x4)+-parseInt(_0x51e597(0x180))/0x5+parseInt(_0x51e597(0x17e))/0x6+parseInt(_0x51e597(0x17c))/0x7*(-parseInt(_0x51e597(0x17b))/0x8)+parseInt(_0x51e597(0x179))/0x9;if(_0x51fd55===_0x48685e)break;else _0x214baf['push'](_0x214baf['shift']());}catch(_0x56895f){_0x214baf['push'](_0x214baf['shift']());}}}(a127_0x3509,0xa30d9));function a127_0x44b0(_0x25f2f6,_0x7d297c){_0x25f2f6=_0x25f2f6-0x179;const _0x35094e=a127_0x3509();let _0x44b030=_0x35094e[_0x25f2f6];return _0x44b030;}function a127_0x3509(){const _0x682964=['8718160cXQIrq','7vrVbjd','1542fSQkSm','2887224sIFZhB','3100LcgNiM','6532890OZHPKN','324707CtanXr','27233694MJMGFs','1033200GdHgVb'];a127_0x3509=function(){return _0x682964;};return a127_0x3509();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- function a114_0x43fe(){const _0x15c9c9=['2240935iGPxLm','\x20\x20Set\x20','\x20\x20\x20\x20--title\x20\x22','=1\x20to\x20silence\x20this\x20hint.','2624754DyUYZJ','service','84uHjIXR','code','195970suREWA','14EUCUqt','\x22\x20\x5c','107218fJTGrG','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','has','network_error','config_missing','\x20bug?\x20Help\x20us\x20fix\x20it:','command','trim','2821496TfHoCC','Hit\x20a\x20','length','1182592jDbqhU','replace','message','cancelled','issue','flag_missing','validation_error','106251oYvamI','\x20issue\x20report\x20\x5c','slice','auth_required','join','27HHbIvy','write','stderr','unknown_command'];a114_0x43fe=function(){return _0x15c9c9;};return a114_0x43fe();}const a114_0x2318c3=a114_0x4808;(function(_0x24599b,_0x4ac984){const _0x5601c4=a114_0x4808,_0x35571d=_0x24599b();while(!![]){try{const _0x41ede8=-parseInt(_0x5601c4(0x101))/0x1+parseInt(_0x5601c4(0xe6))/0x2+-parseInt(_0x5601c4(0xed))/0x3*(-parseInt(_0x5601c4(0xfc))/0x4)+parseInt(_0x5601c4(0xf6))/0x5+-parseInt(_0x5601c4(0xfa))/0x6+-parseInt(_0x5601c4(0xff))/0x7*(parseInt(_0x5601c4(0xe3))/0x8)+-parseInt(_0x5601c4(0xf2))/0x9*(parseInt(_0x5601c4(0xfe))/0xa);if(_0x41ede8===_0x4ac984)break;else _0x35571d['push'](_0x35571d['shift']());}catch(_0x1ac536){_0x35571d['push'](_0x35571d['shift']());}}}(a114_0x43fe,0x73d1e));function a114_0x4808(_0x1679b6,_0x154e80){_0x1679b6=_0x1679b6-0xe2;const _0x43fe31=a114_0x43fe();let _0x48089c=_0x43fe31[_0x1679b6];return _0x48089c;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a114_0x2318c3(0xe9),a114_0x2318c3(0xf0),a114_0x2318c3(0x105),'not_in_project',a114_0x2318c3(0xf5),a114_0x2318c3(0xeb),a114_0x2318c3(0xec),a114_0x2318c3(0x104)]),defaultWriter=_0x4d0440=>{const _0x101c77=a114_0x2318c3;process[_0x101c77(0xf4)][_0x101c77(0xf3)](_0x4d0440);};export function shouldNudgeForError(_0x1cca6f,_0x2f3ffd){const _0x11dd5f=a114_0x2318c3;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2f3ffd[_0x11dd5f(0xfb)]===_0x11dd5f(0xea)&&_0x2f3ffd[_0x11dd5f(0x107)]==='report')return![];if(_0x1cca6f instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x11dd5f(0x103)](_0x1cca6f[_0x11dd5f(0xfd)]);return!![];}export function printIssueReportNudgeForError(_0x27a48b,_0x34d159,_0x4fc77c=defaultWriter){if(!shouldNudgeForError(_0x27a48b,_0x34d159))return;const _0xa7c75a=buildSuggestedTitle(_0x27a48b,_0x34d159);_0x4fc77c(formatNudge(_0xa7c75a));}function buildSuggestedTitle(_0x482aa5,_0x5a1dbd){const _0x2e3262=a114_0x2318c3,_0xabbfa5=_0x482aa5 instanceof Error?_0x482aa5[_0x2e3262(0xe8)]:String(_0x482aa5),_0xc666d2=_0xabbfa5[_0x2e3262(0xe7)](/[\r\n]+/g,'\x20')[_0x2e3262(0xe7)](/\s+/g,'\x20')[_0x2e3262(0xe2)]()[_0x2e3262(0xef)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x2fad55=CLI_BIN_NAME+'\x20'+_0x5a1dbd[_0x2e3262(0xfb)]+'\x20'+_0x5a1dbd[_0x2e3262(0x107)];return _0xc666d2[_0x2e3262(0xe5)]>0x0?_0x2fad55+':\x20'+_0xc666d2:_0x2fad55;}function formatNudge(_0x2c1659){const _0x2f48bb=a114_0x2318c3;return['',_0x2f48bb(0xe4)+CLI_BIN_NAME+_0x2f48bb(0x106),'\x20\x20'+CLI_BIN_NAME+_0x2f48bb(0xee),_0x2f48bb(0xf8)+_0x2c1659+_0x2f48bb(0x100),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x2f48bb(0x102),_0x2f48bb(0xf7)+NUDGE_OPT_OUT_ENV+_0x2f48bb(0xf9),''][_0x2f48bb(0xf1)]('\x0a');}
1
+ const a128_0x19a560=a128_0x5bfc;(function(_0x1b31c,_0x511988){const _0x294255=a128_0x5bfc,_0x15aa4d=_0x1b31c();while(!![]){try{const _0x3727e1=parseInt(_0x294255(0x7e))/0x1*(parseInt(_0x294255(0x87))/0x2)+-parseInt(_0x294255(0x83))/0x3*(-parseInt(_0x294255(0x81))/0x4)+-parseInt(_0x294255(0x7f))/0x5+-parseInt(_0x294255(0x90))/0x6*(-parseInt(_0x294255(0x86))/0x7)+-parseInt(_0x294255(0x93))/0x8+-parseInt(_0x294255(0x84))/0x9+parseInt(_0x294255(0x8c))/0xa;if(_0x3727e1===_0x511988)break;else _0x15aa4d['push'](_0x15aa4d['shift']());}catch(_0x4eee0a){_0x15aa4d['push'](_0x15aa4d['shift']());}}}(a128_0xc8f6,0xea0c8));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a128_0x19a560(0x8a);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a128_0x19a560(0x8b),'config_missing',a128_0x19a560(0x78),'unknown_command','flag_missing',a128_0x19a560(0x79),'network_error']),defaultWriter=_0x320c0b=>{const _0x1adaf8=a128_0x19a560;process[_0x1adaf8(0x94)]['write'](_0x320c0b);};function a128_0xc8f6(){const _0x17b85c=['8555505FGiXeh','18KxVOiX','join','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','RABETBASE_DISABLE_ISSUE_NUDGE','auth_required','26328160KGgCQY','length','\x20\x20\x20\x20--title\x20\x22','issue','6SenSYJ','=1\x20to\x20silence\x20this\x20hint.','message','13781504ZHuQGa','stderr','report','replace','not_in_project','validation_error','\x20\x20Set\x20','Hit\x20a\x20','\x20issue\x20report\x20\x5c','\x22\x20\x5c','162329zubOQK','9428930NNynHn','service','4MfVgba','command','703653OovwGx','8850645hvMkcQ','code'];a128_0xc8f6=function(){return _0x17b85c;};return a128_0xc8f6();}export function shouldNudgeForError(_0x3147e1,_0x2af5ce){const _0xd8acda=a128_0x19a560;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2af5ce[_0xd8acda(0x80)]===_0xd8acda(0x8f)&&_0x2af5ce[_0xd8acda(0x82)]===_0xd8acda(0x95))return![];if(_0x3147e1 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x3147e1[_0xd8acda(0x85)]);return!![];}export function printIssueReportNudgeForError(_0x3b7dcc,_0xc66c6c,_0x1d5a88=defaultWriter){if(!shouldNudgeForError(_0x3b7dcc,_0xc66c6c))return;const _0x273b0a=buildSuggestedTitle(_0x3b7dcc,_0xc66c6c);_0x1d5a88(formatNudge(_0x273b0a));}function a128_0x5bfc(_0x9ffeef,_0x1dbbd1){_0x9ffeef=_0x9ffeef-0x78;const _0xc8f6d7=a128_0xc8f6();let _0x5bfc29=_0xc8f6d7[_0x9ffeef];return _0x5bfc29;}function buildSuggestedTitle(_0x15ac09,_0x3a2a19){const _0x1540ca=a128_0x19a560,_0xcdedd4=_0x15ac09 instanceof Error?_0x15ac09[_0x1540ca(0x92)]:String(_0x15ac09),_0x8337c7=_0xcdedd4['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()['slice'](0x0,0x78)[_0x1540ca(0x96)](/"/g,'\x5c\x22'),_0x5df960=CLI_BIN_NAME+'\x20'+_0x3a2a19['service']+'\x20'+_0x3a2a19[_0x1540ca(0x82)];return _0x8337c7[_0x1540ca(0x8d)]>0x0?_0x5df960+':\x20'+_0x8337c7:_0x5df960;}function formatNudge(_0x5a36b3){const _0x5426ef=a128_0x19a560;return['',_0x5426ef(0x7b)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5426ef(0x7c),_0x5426ef(0x8e)+_0x5a36b3+_0x5426ef(0x7d),_0x5426ef(0x89),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x5426ef(0x7a)+NUDGE_OPT_OUT_ENV+_0x5426ef(0x91),''][_0x5426ef(0x88)]('\x0a');}
@@ -1 +1 @@
1
- const a115_0xa19bcb=a115_0x12e4;(function(_0x512f3d,_0xe8dde5){const _0x1a98cf=a115_0x12e4,_0x1111ea=_0x512f3d();while(!![]){try{const _0x42d33c=parseInt(_0x1a98cf(0x13b))/0x1*(parseInt(_0x1a98cf(0x128))/0x2)+parseInt(_0x1a98cf(0x108))/0x3+-parseInt(_0x1a98cf(0x10c))/0x4+-parseInt(_0x1a98cf(0x12a))/0x5+parseInt(_0x1a98cf(0x10a))/0x6+-parseInt(_0x1a98cf(0x124))/0x7*(parseInt(_0x1a98cf(0x13c))/0x8)+-parseInt(_0x1a98cf(0x11e))/0x9;if(_0x42d33c===_0xe8dde5)break;else _0x1111ea['push'](_0x1111ea['shift']());}catch(_0x1fd4a7){_0x1111ea['push'](_0x1111ea['shift']());}}}(a115_0x2056,0x6e1a1));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a115_0x2056(){const _0x579ea7=['8053317RzgBVX','description-file','originalBytes','inline','title','file','1449AdsFHD','truncated\x20from\x20','descriptionFile:\x20','truncated','250666tLlsNs','issue.description_original_bytes','1055020RdHBIw','flagMissing','join','descriptionSource:\x20','description','redactionKinds','One-line\x20issue\x20summary','redactionCount','issue.description_redactions','sanitize','otel://','issue','POST','length','truncated:\x20original\x20','\x20bytes','trim','7hvFrCl','1192NcFYCf','utf8','Failed\x20to\x20report\x20platform\x20issue:\x20','str','message','2030571CtbenM','validation','1811718dJCfSn','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','1074016CMwyvf','report','descriptionFilePath','Issue\x20description\x20file\x20is\x20empty:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','File\x20not\x20found:\x20','descriptionSource','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','cwd','issue.title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Platform\x20issue\x20reported\x20(','push','string','issue.description_truncated','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','\x20secret(s):\x20'];a115_0x2056=function(){return _0x579ea7;};return a115_0x2056();}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a115_0xa19bcb(0x11f);function a115_0x12e4(_0x59010d,_0x203e10){_0x59010d=_0x59010d-0x104;const _0x20564e=a115_0x2056();let _0x12e471=_0x20564e[_0x59010d];return _0x12e471;}export const issueReport={'service':a115_0xa19bcb(0x135),'command':a115_0xa19bcb(0x10d),'description':a115_0xa19bcb(0x114),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a115_0xa19bcb(0x122),'type':a115_0xa19bcb(0x11a),'required':!![],'description':a115_0xa19bcb(0x130)},{'name':a115_0xa19bcb(0x12e),'type':a115_0xa19bcb(0x11a),'description':a115_0xa19bcb(0x110)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a115_0xa19bcb(0x111)}],async 'validate'(_0x170414){const _0x2565d1=a115_0xa19bcb,_0x586786=_0x170414[_0x2565d1(0x106)](_0x2565d1(0x122))[_0x2565d1(0x13a)](),_0x27adb6=_0x170414['str'](_0x2565d1(0x12e))[_0x2565d1(0x13a)](),_0x153ab2=_0x170414[_0x2565d1(0x106)](DESCRIPTION_FILE_FLAG)[_0x2565d1(0x13a)]();if(!_0x586786)throw CliErrors[_0x2565d1(0x12b)](_0x2565d1(0x122),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x559fbb=_0x27adb6[_0x2565d1(0x137)]>0x0,_0xce737d=_0x153ab2[_0x2565d1(0x137)]>0x0;if(_0x559fbb===_0xce737d)throw CliErrors[_0x2565d1(0x109)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x2565d1(0x11c));if(_0xce737d){const _0x4aa765=resolve(process[_0x2565d1(0x115)](),_0x153ab2);if(!existsSync(_0x4aa765))throw CliErrors[_0x2565d1(0x109)](_0x2565d1(0x112)+_0x4aa765);}},async 'dryRun'(_0xaa165d){const _0x413c18=a115_0xa19bcb,_0x5a3bf4=await prepareIssueReport(_0xaa165d);return{'method':_0x413c18(0x136),'url':_0x413c18(0x134)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5a3bf4[_0x413c18(0x122)],'issue.description':_0x5a3bf4[_0x413c18(0x12e)],'issue.description_original_bytes':_0x5a3bf4[_0x413c18(0x133)]['originalBytes'],'issue.description_truncated':_0x5a3bf4[_0x413c18(0x133)][_0x413c18(0x127)],'issue.description_redactions':_0x5a3bf4['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x5a3bf4[_0x413c18(0x133)][_0x413c18(0x12f)][_0x413c18(0x12c)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x413c18(0x12d)+_0x5a3bf4[_0x413c18(0x113)],_0x5a3bf4['descriptionFilePath']?_0x413c18(0x126)+_0x5a3bf4[_0x413c18(0x10e)]:null,_0x5a3bf4[_0x413c18(0x133)][_0x413c18(0x127)]?_0x413c18(0x138)+_0x5a3bf4['sanitize'][_0x413c18(0x120)]+_0x413c18(0x139):null,_0x5a3bf4['sanitize'][_0x413c18(0x131)]>0x0?'redactions:\x20'+_0x5a3bf4['sanitize'][_0x413c18(0x131)]+'\x20('+_0x5a3bf4['sanitize']['redactionKinds']['join'](',\x20')+')':null]['filter'](Boolean)[_0x413c18(0x12c)]('\x0a')};},async 'execute'(_0x10113a){const _0x386832=a115_0xa19bcb,_0x1ea34c=await prepareIssueReport(_0x10113a);try{await sendPlatformIssueCollectLog({'title':_0x1ea34c[_0x386832(0x122)],'description':_0x1ea34c[_0x386832(0x12e)],'sanitize':{'originalBytes':_0x1ea34c[_0x386832(0x133)][_0x386832(0x120)],'truncated':_0x1ea34c[_0x386832(0x133)]['truncated'],'redactionCount':_0x1ea34c[_0x386832(0x133)][_0x386832(0x131)],'redactionKinds':_0x1ea34c[_0x386832(0x133)][_0x386832(0x12f)]}});}catch(_0x3535f6){throw CliErrors['apiError'](_0x386832(0x105)+(_0x3535f6 instanceof Error?_0x3535f6[_0x386832(0x107)]:String(_0x3535f6)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x1ea34c['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x386832(0x116),'issue.description',_0x386832(0x129),_0x386832(0x11b),_0x386832(0x132),'issue.description_redaction_kinds'],'issue':{'title':_0x1ea34c[_0x386832(0x122)],'descriptionLength':_0x1ea34c[_0x386832(0x12e)][_0x386832(0x137)],'descriptionSource':_0x1ea34c['descriptionSource'],..._0x1ea34c[_0x386832(0x10e)]?{'descriptionFile':_0x1ea34c[_0x386832(0x10e)]}:{},'sanitize':{'originalBytes':_0x1ea34c[_0x386832(0x133)][_0x386832(0x120)],'truncated':_0x1ea34c[_0x386832(0x133)]['truncated'],'redactions':_0x1ea34c[_0x386832(0x133)][_0x386832(0x131)],'redactionKinds':_0x1ea34c[_0x386832(0x133)][_0x386832(0x12f)]}}}};}};function buildResultMessage(_0x4bdd02){const _0x1155f0=a115_0xa19bcb,_0xcd8c20=[];return _0x4bdd02[_0x1155f0(0x127)]&&_0xcd8c20[_0x1155f0(0x119)](_0x1155f0(0x125)+_0x4bdd02[_0x1155f0(0x120)]+_0x1155f0(0x139)),_0x4bdd02[_0x1155f0(0x131)]>0x0&&_0xcd8c20[_0x1155f0(0x119)]('redacted\x20'+_0x4bdd02[_0x1155f0(0x131)]+_0x1155f0(0x11d)+_0x4bdd02['redactionKinds'][_0x1155f0(0x12c)](',\x20')),_0xcd8c20['length']===0x0?'Platform\x20issue\x20reported':_0x1155f0(0x118)+_0xcd8c20[_0x1155f0(0x12c)](';\x20')+')';}async function prepareIssueReport(_0x5f1ccb){const _0x1723e3=a115_0xa19bcb,_0x58bd66=_0x5f1ccb[_0x1723e3(0x106)]('title')[_0x1723e3(0x13a)](),_0x5e144f=_0x5f1ccb[_0x1723e3(0x106)](_0x1723e3(0x12e)),_0x3f6ca7=_0x5f1ccb[_0x1723e3(0x106)](DESCRIPTION_FILE_FLAG)[_0x1723e3(0x13a)]();if(!_0x3f6ca7){const _0x5e5c67=_0x5e144f;if(!_0x5e5c67[_0x1723e3(0x13a)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x1723e3(0x10b));const _0x38fe6c=sanitizeIssueDescription(_0x5e5c67);return{'title':_0x58bd66,'description':_0x38fe6c[_0x1723e3(0x12e)],'descriptionSource':_0x1723e3(0x121),'sanitize':_0x38fe6c};}const _0x590a98=resolve(process[_0x1723e3(0x115)](),_0x3f6ca7),_0x3a71c2=await readFile(_0x590a98,_0x1723e3(0x104));if(!_0x3a71c2[_0x1723e3(0x13a)]())throw CliErrors['validation'](_0x1723e3(0x10f)+_0x590a98,_0x1723e3(0x117));const _0xc35baa=sanitizeIssueDescription(_0x3a71c2);return{'title':_0x58bd66,'description':_0xc35baa['description'],'descriptionSource':_0x1723e3(0x123),'descriptionFilePath':_0x590a98,'sanitize':_0xc35baa};}
1
+ const a129_0x43a503=a129_0x3b23;(function(_0x30d3a9,_0x15aa90){const _0x412c98=a129_0x3b23,_0x5670c0=_0x30d3a9();while(!![]){try{const _0x53d7a6=-parseInt(_0x412c98(0x163))/0x1+-parseInt(_0x412c98(0x154))/0x2+-parseInt(_0x412c98(0x129))/0x3+parseInt(_0x412c98(0x13d))/0x4+-parseInt(_0x412c98(0x14b))/0x5+parseInt(_0x412c98(0x14c))/0x6*(parseInt(_0x412c98(0x15b))/0x7)+parseInt(_0x412c98(0x162))/0x8;if(_0x53d7a6===_0x15aa90)break;else _0x5670c0['push'](_0x5670c0['shift']());}catch(_0xdea71){_0x5670c0['push'](_0x5670c0['shift']());}}}(a129_0x1d32,0x3a6ae));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a129_0x3b23(_0x42c3a9,_0x2b8bf3){_0x42c3a9=_0x42c3a9-0x127;const _0x1d3216=a129_0x1d32();let _0x3b23f7=_0x1d3216[_0x42c3a9];return _0x3b23f7;}import{CliErrors}from'../../errors.js';function a129_0x1d32(){const _0x5c0c6d=['Failed\x20to\x20report\x20platform\x20issue:\x20','file','cwd','filter','compress','345152SMdKtQ','report','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated:\x20original\x20','descriptionFile:\x20','message','validation','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','File\x20not\x20found:\x20','One-line\x20issue\x20summary','truncated','sanitize','length','Issue\x20description\x20cannot\x20be\x20empty.','1025130aGxusR','30pbOAZG','flagMissing','\x20bytes','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported','redactions:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','join','434550jaWDln','issue.description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Platform\x20issue\x20reported\x20(','\x20secret(s):\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','234689ffrBRm','descriptionSource','descriptionFilePath','truncated\x20from\x20','redactionKinds','inline','issue.title','5238968WxLMTV','184657KCOszK','apiError','otel://','write','187674AWREWQ','description','str','trim','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','originalBytes','issue.description_original_bytes','issue.description_redactions','descriptionSource:\x20','string','redactionCount','push','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','POST','title'];a129_0x1d32=function(){return _0x5c0c6d;};return a129_0x1d32();}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='description-file';export const issueReport={'service':'issue','command':a129_0x43a503(0x13e),'description':a129_0x43a503(0x12d),'risk':a129_0x43a503(0x128),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a129_0x43a503(0x13c),'flags':[{'name':a129_0x43a503(0x137),'type':'string','required':!![],'description':a129_0x43a503(0x146)},{'name':a129_0x43a503(0x12a),'type':a129_0x43a503(0x132),'description':a129_0x43a503(0x13f)},{'name':DESCRIPTION_FILE_FLAG,'type':a129_0x43a503(0x132),'description':a129_0x43a503(0x15a)}],async 'validate'(_0x13eebb){const _0x1a0ba8=a129_0x43a503,_0x197a2a=_0x13eebb['str'](_0x1a0ba8(0x137))[_0x1a0ba8(0x12c)](),_0x1959c0=_0x13eebb[_0x1a0ba8(0x12b)](_0x1a0ba8(0x12a))[_0x1a0ba8(0x12c)](),_0x13eead=_0x13eebb[_0x1a0ba8(0x12b)](DESCRIPTION_FILE_FLAG)[_0x1a0ba8(0x12c)]();if(!_0x197a2a)throw CliErrors[_0x1a0ba8(0x14d)](_0x1a0ba8(0x137),_0x1a0ba8(0x152));const _0x281dc2=_0x1959c0['length']>0x0,_0x543034=_0x13eead['length']>0x0;if(_0x281dc2===_0x543034)throw CliErrors[_0x1a0ba8(0x143)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x543034){const _0x1ee17c=resolve(process[_0x1a0ba8(0x13a)](),_0x13eead);if(!existsSync(_0x1ee17c))throw CliErrors['validation'](_0x1a0ba8(0x145)+_0x1ee17c);}},async 'dryRun'(_0x437147){const _0x479c6d=a129_0x43a503,_0x26cda9=await prepareIssueReport(_0x437147);return{'method':_0x479c6d(0x136),'url':_0x479c6d(0x127)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x26cda9[_0x479c6d(0x137)],'issue.description':_0x26cda9['description'],'issue.description_original_bytes':_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x12e)],'issue.description_truncated':_0x26cda9['sanitize']['truncated'],'issue.description_redactions':_0x26cda9['sanitize'][_0x479c6d(0x133)],'issue.description_redaction_kinds':_0x26cda9[_0x479c6d(0x148)]['redactionKinds'][_0x479c6d(0x153)](',')}},'description':[_0x479c6d(0x156),_0x479c6d(0x131)+_0x26cda9[_0x479c6d(0x15c)],_0x26cda9[_0x479c6d(0x15d)]?_0x479c6d(0x141)+_0x26cda9[_0x479c6d(0x15d)]:null,_0x26cda9['sanitize'][_0x479c6d(0x147)]?_0x479c6d(0x140)+_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x12e)]+'\x20bytes':null,_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x133)]>0x0?_0x479c6d(0x151)+_0x26cda9[_0x479c6d(0x148)][_0x479c6d(0x133)]+'\x20('+_0x26cda9[_0x479c6d(0x148)]['redactionKinds'][_0x479c6d(0x153)](',\x20')+')':null][_0x479c6d(0x13b)](Boolean)[_0x479c6d(0x153)]('\x0a')};},async 'execute'(_0x489c69){const _0x50b864=a129_0x43a503,_0x27df9d=await prepareIssueReport(_0x489c69);try{await sendPlatformIssueCollectLog({'title':_0x27df9d[_0x50b864(0x137)],'description':_0x27df9d[_0x50b864(0x12a)],'sanitize':{'originalBytes':_0x27df9d['sanitize'][_0x50b864(0x12e)],'truncated':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x147)],'redactionCount':_0x27df9d[_0x50b864(0x148)]['redactionCount'],'redactionKinds':_0x27df9d[_0x50b864(0x148)]['redactionKinds']}});}catch(_0xb9fe44){throw CliErrors[_0x50b864(0x164)](_0x50b864(0x138)+(_0xb9fe44 instanceof Error?_0xb9fe44[_0x50b864(0x142)]:String(_0xb9fe44)),_0x50b864(0x144));}return{'ok':!![],'message':buildResultMessage(_0x27df9d['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x50b864(0x161),_0x50b864(0x155),_0x50b864(0x12f),'issue.description_truncated',_0x50b864(0x130),'issue.description_redaction_kinds'],'issue':{'title':_0x27df9d['title'],'descriptionLength':_0x27df9d[_0x50b864(0x12a)][_0x50b864(0x149)],'descriptionSource':_0x27df9d[_0x50b864(0x15c)],..._0x27df9d[_0x50b864(0x15d)]?{'descriptionFile':_0x27df9d[_0x50b864(0x15d)]}:{},'sanitize':{'originalBytes':_0x27df9d[_0x50b864(0x148)]['originalBytes'],'truncated':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x147)],'redactions':_0x27df9d[_0x50b864(0x148)][_0x50b864(0x133)],'redactionKinds':_0x27df9d[_0x50b864(0x148)]['redactionKinds']}}}};}};function buildResultMessage(_0x454c34){const _0x27093f=a129_0x43a503,_0x27c355=[];return _0x454c34['truncated']&&_0x27c355[_0x27093f(0x134)](_0x27093f(0x15e)+_0x454c34['originalBytes']+_0x27093f(0x14e)),_0x454c34[_0x27093f(0x133)]>0x0&&_0x27c355[_0x27093f(0x134)]('redacted\x20'+_0x454c34[_0x27093f(0x133)]+_0x27093f(0x159)+_0x454c34[_0x27093f(0x15f)]['join'](',\x20')),_0x27c355['length']===0x0?_0x27093f(0x150):_0x27093f(0x158)+_0x27c355[_0x27093f(0x153)](';\x20')+')';}async function prepareIssueReport(_0x3172e2){const _0x205821=a129_0x43a503,_0x944e92=_0x3172e2[_0x205821(0x12b)](_0x205821(0x137))[_0x205821(0x12c)](),_0x18b1cd=_0x3172e2[_0x205821(0x12b)]('description'),_0x361629=_0x3172e2[_0x205821(0x12b)](DESCRIPTION_FILE_FLAG)[_0x205821(0x12c)]();if(!_0x361629){const _0x3fc49d=_0x18b1cd;if(!_0x3fc49d[_0x205821(0x12c)]())throw CliErrors['validation'](_0x205821(0x14a),_0x205821(0x135));const _0x1e54cf=sanitizeIssueDescription(_0x3fc49d);return{'title':_0x944e92,'description':_0x1e54cf[_0x205821(0x12a)],'descriptionSource':_0x205821(0x160),'sanitize':_0x1e54cf};}const _0x5f363e=resolve(process[_0x205821(0x13a)](),_0x361629),_0x5a5793=await readFile(_0x5f363e,'utf8');if(!_0x5a5793['trim']())throw CliErrors[_0x205821(0x143)](_0x205821(0x14f)+_0x5f363e,_0x205821(0x157));const _0x335c94=sanitizeIssueDescription(_0x5a5793);return{'title':_0x944e92,'description':_0x335c94[_0x205821(0x12a)],'descriptionSource':_0x205821(0x139),'descriptionFilePath':_0x5f363e,'sanitize':_0x335c94};}
@@ -1 +1 @@
1
- function a116_0x359d(){const _0x536d3c=['slice','push','1339269VYDOII','258jRmilG','description','toString','cookie','REDACTED:authorization','label','access-key','length','REDACTED:private-key','authorization','58268ukeTjc','subarray','16702600oQMkir','replace','restore','2768175QhRwKp','1463522sbZcqi','byteLength','6421638AUmVLz','kind','includes','57628kDQDRE','string','REDACTED:access-key','max','utf8','REDACTED:cookie','pattern','REDACTED:bearer-jwt'];a116_0x359d=function(){return _0x536d3c;};return a116_0x359d();}const a116_0x3a90ae=a116_0x24ff;(function(_0x1a2d15,_0x1cd8cf){const _0x5a9b28=a116_0x24ff,_0x30744a=_0x1a2d15();while(!![]){try{const _0x2a5323=parseInt(_0x5a9b28(0x1c7))/0x1+parseInt(_0x5a9b28(0x1b8))/0x2+-parseInt(_0x5a9b28(0x1c8))/0x3*(-parseInt(_0x5a9b28(0x1bd))/0x4)+parseInt(_0x5a9b28(0x1b7))/0x5+-parseInt(_0x5a9b28(0x1ba))/0x6+-parseInt(_0x5a9b28(0x1d2))/0x7+-parseInt(_0x5a9b28(0x1b4))/0x8;if(_0x2a5323===_0x1cd8cf)break;else _0x30744a['push'](_0x30744a['shift']());}catch(_0x1e591d){_0x30744a['push'](_0x30744a['shift']());}}}(a116_0x359d,0xaa39d));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a116_0x3a90ae(0x1cb),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a116_0x3a90ae(0x1c2)},{'kind':a116_0x3a90ae(0x1d1),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a116_0x3a90ae(0x1cc)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a116_0x3a90ae(0x1d0)},{'kind':a116_0x3a90ae(0x1ce),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a116_0x3a90ae(0x1bf)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a116_0x3a90ae(0x1c4)}];export function sanitizeIssueDescription(_0x27ee40){const _0x301aab=a116_0x3a90ae,_0x1c8920=Buffer[_0x301aab(0x1b9)](_0x27ee40,_0x301aab(0x1c1)),_0xe7a1af=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4391c3=_0x27ee40,_0x10b704=0x0;const _0x191851=[];if(!_0xe7a1af){const _0x2632c7=protectOssAccessKeyIds(_0x4391c3);_0x4391c3=_0x2632c7[_0x301aab(0x1c9)];for(const _0x54861b of REDACTION_RULES){let _0x5d2620=0x0;_0x4391c3=_0x4391c3[_0x301aab(0x1b5)](_0x54861b[_0x301aab(0x1c3)],(_0x1dd389,_0x56747d)=>{const _0x4699a0=_0x301aab;_0x5d2620+=0x1;const _0x1fdea3=typeof _0x56747d===_0x4699a0(0x1be)?_0x56747d:'';return _0x1fdea3+'['+_0x54861b[_0x4699a0(0x1cd)]+']';}),_0x5d2620>0x0&&(_0x10b704+=_0x5d2620,!_0x191851[_0x301aab(0x1bc)](_0x54861b[_0x301aab(0x1bb)])&&_0x191851[_0x301aab(0x1c6)](_0x54861b[_0x301aab(0x1bb)]));}_0x4391c3=_0x2632c7[_0x301aab(0x1b6)](_0x4391c3);}let _0x9ff6ae=![];if(Buffer[_0x301aab(0x1b9)](_0x4391c3,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x9ff6ae=!![];const _0x337725=Buffer['byteLength'](TRUNCATION_NOTICE,_0x301aab(0x1c1)),_0x5867ea=Math[_0x301aab(0x1c0)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x337725);_0x4391c3=sliceUtf8Bytes(_0x4391c3,_0x5867ea)+TRUNCATION_NOTICE;}return{'description':_0x4391c3,'originalBytes':_0x1c8920,'truncated':_0x9ff6ae,'redactionCount':_0x10b704,'redactionKinds':_0x191851};}function a116_0x24ff(_0x5ee316,_0x5c6a7e){_0x5ee316=_0x5ee316-0x1b3;const _0x359d5f=a116_0x359d();let _0x24ffa4=_0x359d5f[_0x5ee316];return _0x24ffa4;}function protectOssAccessKeyIds(_0x182fc1){const _0x19de43=[],_0x4a385a=_0x182fc1['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xced174,_0x2b2927)=>{const _0x2b3bed=a116_0x24ff,_0x58ee09=_0x19de43[_0x2b3bed(0x1c6)](_0xced174[_0x2b3bed(0x1c5)](_0x2b2927[_0x2b3bed(0x1cf)]))-0x1;return _0x2b2927+'__RB_OSS_ID_'+_0x58ee09+'__';});return{'description':_0x4a385a,'restore':_0x1f1541=>_0x1f1541['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2206d7,_0xdde0d1,_0x2d2bae)=>{const _0x2164c1=_0x19de43[Number(_0x2d2bae)];return _0x2164c1===undefined?_0x2206d7:''+_0xdde0d1+_0x2164c1;})};}function sliceUtf8Bytes(_0x3e47f4,_0x43c323){const _0x89c094=a116_0x3a90ae;if(_0x43c323<=0x0)return'';const _0x2d1182=Buffer['from'](_0x3e47f4,_0x89c094(0x1c1));if(_0x2d1182[_0x89c094(0x1b9)]<=_0x43c323)return _0x3e47f4;let _0x2f5deb=_0x43c323;while(_0x2f5deb>0x0){const _0x47d3ef=_0x2d1182[_0x2f5deb];if(_0x47d3ef===undefined||(_0x47d3ef&0xc0)!==0x80)break;_0x2f5deb-=0x1;}return _0x2d1182[_0x89c094(0x1b3)](0x0,_0x2f5deb)[_0x89c094(0x1ca)]('utf8');}
1
+ const a130_0x47aed8=a130_0x5bad;(function(_0x1fe5e2,_0x3cc8dd){const _0x3b730c=a130_0x5bad,_0x4ac912=_0x1fe5e2();while(!![]){try{const _0x5376ea=parseInt(_0x3b730c(0x1c3))/0x1*(-parseInt(_0x3b730c(0x1d8))/0x2)+-parseInt(_0x3b730c(0x1d5))/0x3*(-parseInt(_0x3b730c(0x1c6))/0x4)+parseInt(_0x3b730c(0x1d1))/0x5+-parseInt(_0x3b730c(0x1d9))/0x6+parseInt(_0x3b730c(0x1c7))/0x7*(-parseInt(_0x3b730c(0x1cc))/0x8)+-parseInt(_0x3b730c(0x1da))/0x9*(parseInt(_0x3b730c(0x1cb))/0xa)+-parseInt(_0x3b730c(0x1be))/0xb*(-parseInt(_0x3b730c(0x1dd))/0xc);if(_0x5376ea===_0x3cc8dd)break;else _0x4ac912['push'](_0x4ac912['shift']());}catch(_0x3dd956){_0x4ac912['push'](_0x4ac912['shift']());}}}(a130_0x16c4,0x7ce7d));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a130_0x47aed8(0x1ce),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a130_0x47aed8(0x1c4)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a130_0x47aed8(0x1db)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a130_0x47aed8(0x1d3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a130_0x47aed8(0x1e0)},{'kind':a130_0x47aed8(0x1e1),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a130_0x47aed8(0x1d7)},{'kind':a130_0x47aed8(0x1df),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a130_0x47aed8(0x1d4)}];export function sanitizeIssueDescription(_0x6aef72){const _0x49532c=a130_0x47aed8,_0x2834a1=Buffer[_0x49532c(0x1dc)](_0x6aef72,'utf8'),_0x2f8176=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4c2eff=_0x6aef72,_0x1f1f22=0x0;const _0x5742be=[];if(!_0x2f8176){const _0x3daadc=protectOssAccessKeyIds(_0x4c2eff);_0x4c2eff=_0x3daadc[_0x49532c(0x1c9)];for(const _0x3888aa of REDACTION_RULES){let _0x2fc5d3=0x0;_0x4c2eff=_0x4c2eff[_0x49532c(0x1c5)](_0x3888aa[_0x49532c(0x1d0)],(_0xec5025,_0x3e9aa1)=>{const _0x32e9e9=_0x49532c;_0x2fc5d3+=0x1;const _0x25ee9a=typeof _0x3e9aa1===_0x32e9e9(0x1cd)?_0x3e9aa1:'';return _0x25ee9a+'['+_0x3888aa[_0x32e9e9(0x1c0)]+']';}),_0x2fc5d3>0x0&&(_0x1f1f22+=_0x2fc5d3,!_0x5742be[_0x49532c(0x1c2)](_0x3888aa[_0x49532c(0x1c8)])&&_0x5742be[_0x49532c(0x1de)](_0x3888aa[_0x49532c(0x1c8)]));}_0x4c2eff=_0x3daadc[_0x49532c(0x1cf)](_0x4c2eff);}let _0x3f4372=![];if(Buffer[_0x49532c(0x1dc)](_0x4c2eff,_0x49532c(0x1ca))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f4372=!![];const _0x1bfb52=Buffer[_0x49532c(0x1dc)](TRUNCATION_NOTICE,_0x49532c(0x1ca)),_0x3ef8bb=Math[_0x49532c(0x1bd)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x1bfb52);_0x4c2eff=sliceUtf8Bytes(_0x4c2eff,_0x3ef8bb)+TRUNCATION_NOTICE;}return{'description':_0x4c2eff,'originalBytes':_0x2834a1,'truncated':_0x3f4372,'redactionCount':_0x1f1f22,'redactionKinds':_0x5742be};}function a130_0x16c4(){const _0x350937=['pattern','4750960wUuFOZ','__RB_OSS_ID_','access-key','REDACTED:bearer-jwt','1025649YLWUzy','slice','REDACTED:password','650Yxgowc','1476054AUrDAk','9SbFzlz','REDACTED:authorization','byteLength','290676AJhRiv','push','bearer-jwt','REDACTED:access-key','password','from','max','374GmUFuS','length','label','toString','includes','2165cAbWUy','REDACTED:cookie','replace','4veLhye','56nJhSNJ','kind','description','utf8','32660HKRbAL','651144kuopOm','string','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','restore'];a130_0x16c4=function(){return _0x350937;};return a130_0x16c4();}function protectOssAccessKeyIds(_0x28eb3f){const _0x1797d5=a130_0x47aed8,_0x103ea4=[],_0x50f08d=_0x28eb3f[_0x1797d5(0x1c5)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2ca0b1,_0x302e05)=>{const _0x2dba70=_0x1797d5,_0x21e3e8=_0x103ea4[_0x2dba70(0x1de)](_0x2ca0b1[_0x2dba70(0x1d6)](_0x302e05[_0x2dba70(0x1bf)]))-0x1;return _0x302e05+_0x2dba70(0x1d2)+_0x21e3e8+'__';});return{'description':_0x50f08d,'restore':_0x17683c=>_0x17683c[_0x1797d5(0x1c5)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x19e4d4,_0x3df4f5,_0x422faf)=>{const _0x59ab89=_0x103ea4[Number(_0x422faf)];return _0x59ab89===undefined?_0x19e4d4:''+_0x3df4f5+_0x59ab89;})};}function a130_0x5bad(_0x24d717,_0x1d5531){_0x24d717=_0x24d717-0x1bc;const _0x16c4b1=a130_0x16c4();let _0x5badf1=_0x16c4b1[_0x24d717];return _0x5badf1;}function sliceUtf8Bytes(_0x35b558,_0x3ef500){const _0x41d003=a130_0x47aed8;if(_0x3ef500<=0x0)return'';const _0x2b89dd=Buffer[_0x41d003(0x1bc)](_0x35b558,_0x41d003(0x1ca));if(_0x2b89dd[_0x41d003(0x1dc)]<=_0x3ef500)return _0x35b558;let _0x1196b0=_0x3ef500;while(_0x1196b0>0x0){const _0x10ccd8=_0x2b89dd[_0x1196b0];if(_0x10ccd8===undefined||(_0x10ccd8&0xc0)!==0x80)break;_0x1196b0-=0x1;}return _0x2b89dd['subarray'](0x0,_0x1196b0)[_0x41d003(0x1c1)](_0x41d003(0x1ca));}
@@ -1 +1 @@
1
- const a117_0x1cec48=a117_0x17b6;function a117_0x17b6(_0x5d157c,_0x3e74e6){_0x5d157c=_0x5d157c-0x194;const _0x2b8ee7=a117_0x2b8e();let _0x17b6a2=_0x2b8ee7[_0x5d157c];return _0x17b6a2;}(function(_0x186a08,_0x3a5826){const _0x297b26=a117_0x17b6,_0x93d2a3=_0x186a08();while(!![]){try{const _0x209a47=-parseInt(_0x297b26(0x1a4))/0x1*(parseInt(_0x297b26(0x195))/0x2)+parseInt(_0x297b26(0x1c0))/0x3*(-parseInt(_0x297b26(0x1b0))/0x4)+-parseInt(_0x297b26(0x1c4))/0x5*(parseInt(_0x297b26(0x1bb))/0x6)+-parseInt(_0x297b26(0x1c1))/0x7*(parseInt(_0x297b26(0x1b3))/0x8)+-parseInt(_0x297b26(0x1b6))/0x9*(-parseInt(_0x297b26(0x1b2))/0xa)+-parseInt(_0x297b26(0x1bd))/0xb*(parseInt(_0x297b26(0x19c))/0xc)+parseInt(_0x297b26(0x1ad))/0xd*(parseInt(_0x297b26(0x1ac))/0xe);if(_0x209a47===_0x3a5826)break;else _0x93d2a3['push'](_0x93d2a3['shift']());}catch(_0x5a80b3){_0x93d2a3['push'](_0x93d2a3['shift']());}}}(a117_0x2b8e,0xc8e63));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=a117_0x1cec48(0x1bc);function readCreateInput(_0x3a2bd4){const _0x3c9a09=a117_0x1cec48,_0x3be28c=_0x3a2bd4[_0x3c9a09(0x199)]('title')[_0x3c9a09(0x198)]();if(!_0x3be28c)throw kbError(_0x3c9a09(0x1b1),'--title\x20is\x20required.');const _0x1d5e52=_0x3a2bd4[_0x3c9a09(0x199)]('file')[_0x3c9a09(0x198)]();if(!_0x1d5e52)throw kbError(_0x3c9a09(0x19a),'--file\x20is\x20required.',_0x3c9a09(0x1c6));return{'title':_0x3be28c,'file':_0x1d5e52};}async function prepareCreate(_0xbdb8de){const _0x2b7e40=a117_0x1cec48,_0x19b818=readCreateInput(_0xbdb8de),_0x162725=await readKbFile(_0x19b818['file']),_0x3334dd=await fetchAllCompanyKnowledgeBases(_0xbdb8de,{'title':_0x19b818[_0x2b7e40(0x1b7)]}),_0x1baa30=findExactCompanyKnowledgeBases(_0x3334dd,_0xbdb8de['appCode'],_0x19b818['title']);if(_0x1baa30['length']>0x0)throw kbError(_0x2b7e40(0x197),_0x2b7e40(0x19e)+_0xbdb8de['appCode']+_0x2b7e40(0x1af)+_0x19b818[_0x2b7e40(0x1b7)]+'.',_0x2b7e40(0x1a2)+_0x1baa30[0x0]['id']+_0x2b7e40(0x1b4));return{..._0x19b818,'content':_0x162725};}function plannedAfter(_0x12b8c9,_0x93bef8){const _0x49b1bb=a117_0x1cec48;return{'scope':'company','appCode':_0x12b8c9[_0x49b1bb(0x1c2)],'title':_0x93bef8['title'],'contentByteSize':_0x93bef8['content'][_0x49b1bb(0x1a1)],'contentHash':_0x93bef8[_0x49b1bb(0x196)][_0x49b1bb(0x1b8)]};}function verifyCreatedState(_0x566242,_0x190fef,_0x43bbfb){const _0x508333=a117_0x1cec48;assertCompanyKnowledgeBase(_0x43bbfb,_0x566242[_0x508333(0x1c2)],_0x43bbfb['id']);const _0x21b5f1=inspectKbContent(_0x43bbfb[_0x508333(0x196)]);if(_0x43bbfb['title']!==_0x190fef['title']||_0x21b5f1[_0x508333(0x1b8)]!==_0x190fef[_0x508333(0x196)][_0x508333(0x1b8)])throw kbError(_0x508333(0x1a3),_0x508333(0x1c5)+_0x43bbfb['id']+_0x508333(0x1a0),_0x508333(0x1a5)+_0x43bbfb['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x43bbfb);}export const kbCreate={'service':'kb','command':a117_0x1cec48(0x1b9),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':a117_0x1cec48(0x1be),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a117_0x1cec48(0x1b7),'type':a117_0x1cec48(0x1a9),'required':!![],'description':'Knowledge-base\x20title'},{'name':a117_0x1cec48(0x1c7),'type':a117_0x1cec48(0x1a9),'required':!![],'description':a117_0x1cec48(0x1a6)}],async 'validate'(_0x160346){readCreateInput(_0x160346);},async 'dryRun'(_0x23e917){const _0x8ac139=a117_0x1cec48,_0x58ff47=await prepareCreate(_0x23e917);return asDryRunResult({'operation':_0x8ac139(0x1b9),'selector':{'scope':_0x8ac139(0x19f),'appCode':_0x23e917[_0x8ac139(0x1c2)],'title':_0x58ff47[_0x8ac139(0x1b7)]},'before':null,'after':plannedAfter(_0x23e917,_0x58ff47),'dryRun':!![],'backend':{'method':_0x8ac139(0x1ba),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x8ac139(0x194)+JSON[_0x8ac139(0x19b)](_0x58ff47[_0x8ac139(0x1b7)])+_0x8ac139(0x1aa)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x3bf462){const _0x307f6f=a117_0x1cec48,_0x3546f3=await prepareCreate(_0x3bf462);let _0x3d23de,_0xc3095a=![];try{const _0x2f7ec3=await createEnterpriseKnowledgeBase(_0x3bf462['cookie'],{'appCode':_0x3bf462[_0x307f6f(0x1c2)],'title':_0x3546f3[_0x307f6f(0x1b7)],'content':_0x3546f3[_0x307f6f(0x196)]['content']});assertCompanyKnowledgeBase(_0x2f7ec3,_0x3bf462[_0x307f6f(0x1c2)],_0x2f7ec3['id']),_0x3d23de=_0x2f7ec3['id'];}catch(_0x44e094){if(!isPlatformTransportFailure(_0x44e094))throw _0x44e094;_0xc3095a=!![];}if(_0x3d23de===undefined){const _0x3c8f43=await verifyKbMutationReadback(_0x307f6f(0x1b9),!![],()=>fetchAllCompanyKnowledgeBases(_0x3bf462,{'title':_0x3546f3[_0x307f6f(0x1b7)]})),_0x4ea1a9=findExactCompanyKnowledgeBases(_0x3c8f43,_0x3bf462[_0x307f6f(0x1c2)],_0x3546f3['title']);if(_0x4ea1a9[_0x307f6f(0x1ae)]!==0x1)throw kbError(_0x307f6f(0x1c3),_0x307f6f(0x1ab)+_0x4ea1a9[_0x307f6f(0x1ae)]+'.',_0x307f6f(0x1a7));_0x3d23de=_0x4ea1a9[0x0]['id'];}const _0x3749fe=await verifyKbMutationReadback(_0x307f6f(0x1b9),_0xc3095a,()=>requireKb(_0x3bf462,_0x3d23de)),_0x379a97=verifyCreatedState(_0x3bf462,_0x3546f3,_0x3749fe),_0x2a4a5f=_0xc3095a?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x379a97['id'],'scope':_0x307f6f(0x19f),'appCode':_0x379a97[_0x307f6f(0x1c2)]},'before':null,'after':_0x379a97,'dryRun':![],'backend':{'method':_0x307f6f(0x1ba),'path':CREATE_PATH},'warnings':_0x2a4a5f,'verification':{'status':_0x307f6f(0x1a8),'recoveredAfterUnknownResponse':_0xc3095a,'lookupCommand':_0x307f6f(0x19d)+_0x379a97['id']+'\x20--format\x20compress'}},'message':_0x307f6f(0x1b5)+_0x379a97['id']+_0x307f6f(0x1bf)+_0x379a97[_0x307f6f(0x1c2)]};}};function a117_0x2b8e(){const _0x21daed=['\x20--format\x20compress','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','332234vrRtNg','1664sTcztr','length','\x20with\x20title\x20','268rddjbn','kb_title_required','90MsWCAY','1933208aJjMIl','\x20--format\x20compress`\x20before\x20choosing\x20update.','Created\x20company\x20knowledge\x20base\x20','1629603rxYvHC','title','contentHash','create','POST','12epydFQ','/admin/knowledge-base/create','1397CIJnzz','write','\x20for\x20','50361ZheWBI','21DIoXJG','appCode','kb_create_outcome_unknown','2112625hDwzcs','Company\x20knowledge\x20base\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','file','rabetbase\x20kb\x20list\x20--title\x20','58410PeKnpq','content','kb_already_exists','trim','str','kb_file_required','stringify','12036dRnpCz','rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','company','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','byteSize','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','kb_verification_failed','35lEbAot','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','verified','string'];a117_0x2b8e=function(){return _0x21daed;};return a117_0x2b8e();}
1
+ function a131_0x76e2(){const _0x3f63e0=['byteSize','create','str','length','69620raScgI','\x20with\x20title\x20','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','kb_title_required','rabetbase\x20kb\x20detail\x20--id\x20','9AiiJXu','rabetbase\x20kb\x20list\x20--title\x20','write','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','stringify','--title\x20is\x20required.','title','trim','Company\x20knowledge\x20base\x20','--file\x20is\x20required.','1625239eTMvmt','contentHash','string','kb_file_required','686343fgxvZO','verified','content','1328992YQGkpC','329520ezqJpM','POST','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','file','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','356qnHwyj','cookie','/admin/knowledge-base/create','357744pKfqQM','company','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20for\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','9575JoLWHH','appCode','kb_verification_failed'];a131_0x76e2=function(){return _0x3f63e0;};return a131_0x76e2();}const a131_0x47d97a=a131_0x5f27;(function(_0x430b11,_0x1b9cd6){const _0x883aad=a131_0x5f27,_0xd39411=_0x430b11();while(!![]){try{const _0x53d3fb=parseInt(_0x883aad(0x1e8))/0x1+parseInt(_0x883aad(0x1d4))/0x2+-parseInt(_0x883aad(0x1d0))/0x3+-parseInt(_0x883aad(0x1d9))/0x4*(parseInt(_0x883aad(0x1e1))/0x5)+-parseInt(_0x883aad(0x1dc))/0x6+parseInt(_0x883aad(0x1cc))/0x7+-parseInt(_0x883aad(0x1d3))/0x8*(-parseInt(_0x883aad(0x1ee))/0x9);if(_0x53d3fb===_0x1b9cd6)break;else _0xd39411['push'](_0xd39411['shift']());}catch(_0x5af26c){_0xd39411['push'](_0xd39411['shift']());}}}(a131_0x76e2,0x2a711));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=a131_0x47d97a(0x1db);function readCreateInput(_0x1073ce){const _0x243b74=a131_0x47d97a,_0xf50260=_0x1073ce[_0x243b74(0x1e6)](_0x243b74(0x1c8))[_0x243b74(0x1c9)]();if(!_0xf50260)throw kbError(_0x243b74(0x1ec),_0x243b74(0x1c7));const _0x49998b=_0x1073ce[_0x243b74(0x1e6)](_0x243b74(0x1d7))[_0x243b74(0x1c9)]();if(!_0x49998b)throw kbError(_0x243b74(0x1cf),_0x243b74(0x1cb),_0x243b74(0x1f1));return{'title':_0xf50260,'file':_0x49998b};}async function prepareCreate(_0x22fab6){const _0x49bbce=a131_0x47d97a,_0x1c2c59=readCreateInput(_0x22fab6),_0x541064=await readKbFile(_0x1c2c59['file']),_0x45ddf8=await fetchAllCompanyKnowledgeBases(_0x22fab6,{'title':_0x1c2c59[_0x49bbce(0x1c8)]}),_0x297e8c=findExactCompanyKnowledgeBases(_0x45ddf8,_0x22fab6[_0x49bbce(0x1e2)],_0x1c2c59[_0x49bbce(0x1c8)]);if(_0x297e8c[_0x49bbce(0x1e7)]>0x0)throw kbError('kb_already_exists',_0x49bbce(0x1d8)+_0x22fab6['appCode']+_0x49bbce(0x1e9)+_0x1c2c59[_0x49bbce(0x1c8)]+'.',_0x49bbce(0x1d6)+_0x297e8c[0x0]['id']+_0x49bbce(0x1e0));return{..._0x1c2c59,'content':_0x541064};}function plannedAfter(_0x311405,_0x4da501){const _0x2404ea=a131_0x47d97a;return{'scope':_0x2404ea(0x1dd),'appCode':_0x311405[_0x2404ea(0x1e2)],'title':_0x4da501[_0x2404ea(0x1c8)],'contentByteSize':_0x4da501[_0x2404ea(0x1d2)][_0x2404ea(0x1e4)],'contentHash':_0x4da501['content'][_0x2404ea(0x1cd)]};}function a131_0x5f27(_0xc76048,_0x56fb84){_0xc76048=_0xc76048-0x1c6;const _0x76e264=a131_0x76e2();let _0x5f27c9=_0x76e264[_0xc76048];return _0x5f27c9;}function verifyCreatedState(_0x40d4cc,_0x4cbaf3,_0x4aba5a){const _0x55c119=a131_0x47d97a;assertCompanyKnowledgeBase(_0x4aba5a,_0x40d4cc[_0x55c119(0x1e2)],_0x4aba5a['id']);const _0x23a918=inspectKbContent(_0x4aba5a['content']);if(_0x4aba5a[_0x55c119(0x1c8)]!==_0x4cbaf3[_0x55c119(0x1c8)]||_0x23a918[_0x55c119(0x1cd)]!==_0x4cbaf3[_0x55c119(0x1d2)][_0x55c119(0x1cd)])throw kbError(_0x55c119(0x1e3),_0x55c119(0x1ca)+_0x4aba5a['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x55c119(0x1de)+_0x4aba5a['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x4aba5a);}export const kbCreate={'service':'kb','command':a131_0x47d97a(0x1e5),'description':a131_0x47d97a(0x1eb),'risk':a131_0x47d97a(0x1f0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a131_0x47d97a(0x1c8),'type':'string','required':!![],'description':'Knowledge-base\x20title'},{'name':a131_0x47d97a(0x1d7),'type':a131_0x47d97a(0x1ce),'required':!![],'description':a131_0x47d97a(0x1ea)}],async 'validate'(_0x281836){readCreateInput(_0x281836);},async 'dryRun'(_0x6eb550){const _0x1d0603=a131_0x47d97a,_0x54e8f0=await prepareCreate(_0x6eb550);return asDryRunResult({'operation':_0x1d0603(0x1e5),'selector':{'scope':_0x1d0603(0x1dd),'appCode':_0x6eb550['appCode'],'title':_0x54e8f0[_0x1d0603(0x1c8)]},'before':null,'after':plannedAfter(_0x6eb550,_0x54e8f0),'dryRun':!![],'backend':{'method':_0x1d0603(0x1d5),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x1d0603(0x1ef)+JSON[_0x1d0603(0x1c6)](_0x54e8f0['title'])+'\x20--format\x20compress'}},{'method':_0x1d0603(0x1d5),'url':CREATE_PATH});},async 'execute'(_0x165118){const _0x272ddf=a131_0x47d97a,_0x1ad2d2=await prepareCreate(_0x165118);let _0x2d3fb6,_0x51885b=![];try{const _0x198fcd=await createEnterpriseKnowledgeBase(_0x165118[_0x272ddf(0x1da)],{'appCode':_0x165118[_0x272ddf(0x1e2)],'title':_0x1ad2d2['title'],'content':_0x1ad2d2['content']['content']});assertCompanyKnowledgeBase(_0x198fcd,_0x165118[_0x272ddf(0x1e2)],_0x198fcd['id']),_0x2d3fb6=_0x198fcd['id'];}catch(_0x27c78e){if(!isPlatformTransportFailure(_0x27c78e))throw _0x27c78e;_0x51885b=!![];}if(_0x2d3fb6===undefined){const _0x3f651c=await verifyKbMutationReadback(_0x272ddf(0x1e5),!![],()=>fetchAllCompanyKnowledgeBases(_0x165118,{'title':_0x1ad2d2['title']})),_0xa42e4e=findExactCompanyKnowledgeBases(_0x3f651c,_0x165118['appCode'],_0x1ad2d2[_0x272ddf(0x1c8)]);if(_0xa42e4e['length']!==0x1)throw kbError('kb_create_outcome_unknown',_0x272ddf(0x1f2)+_0xa42e4e[_0x272ddf(0x1e7)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0x2d3fb6=_0xa42e4e[0x0]['id'];}const _0x2a5de6=await verifyKbMutationReadback(_0x272ddf(0x1e5),_0x51885b,()=>requireKb(_0x165118,_0x2d3fb6)),_0x27adab=verifyCreatedState(_0x165118,_0x1ad2d2,_0x2a5de6),_0x4f0a46=_0x51885b?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x27adab['id'],'scope':_0x272ddf(0x1dd),'appCode':_0x27adab[_0x272ddf(0x1e2)]},'before':null,'after':_0x27adab,'dryRun':![],'backend':{'method':_0x272ddf(0x1d5),'path':CREATE_PATH},'warnings':_0x4f0a46,'verification':{'status':_0x272ddf(0x1d1),'recoveredAfterUnknownResponse':_0x51885b,'lookupCommand':_0x272ddf(0x1ed)+_0x27adab['id']+'\x20--format\x20compress'}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x27adab['id']+_0x272ddf(0x1df)+_0x27adab['appCode']};}};
@@ -1 +1 @@
1
- function a118_0x2b0f(_0x55ac9c,_0x3291c4){_0x55ac9c=_0x55ac9c-0xfe;const _0x39294d=a118_0x3929();let _0x2b0fea=_0x39294d[_0x55ac9c];return _0x2b0fea;}const a118_0x44c1ec=a118_0x2b0f;(function(_0x38e1ff,_0x215b39){const _0x48f17b=a118_0x2b0f,_0x2703ef=_0x38e1ff();while(!![]){try{const _0x518620=parseInt(_0x48f17b(0x11e))/0x1+-parseInt(_0x48f17b(0x11b))/0x2*(parseInt(_0x48f17b(0x110))/0x3)+-parseInt(_0x48f17b(0x117))/0x4+-parseInt(_0x48f17b(0x10f))/0x5*(parseInt(_0x48f17b(0x124))/0x6)+parseInt(_0x48f17b(0x104))/0x7+parseInt(_0x48f17b(0x118))/0x8+parseInt(_0x48f17b(0x100))/0x9*(parseInt(_0x48f17b(0x11f))/0xa);if(_0x518620===_0x215b39)break;else _0x2703ef['push'](_0x2703ef['shift']());}catch(_0x4b7035){_0x2703ef['push'](_0x2703ef['shift']());}}}(a118_0x3929,0x7de59));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a118_0x3929(){const _0x8b9f69=['Soft-deleted\x20company\x20knowledge\x20base\x20','\x20remains\x20readable\x20after\x20delete.','expected-version','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','verified','appCode','number','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','cookie','4009810XVurOl','492432cFygge','flag','\x20--format\x20compress','snapshotHash','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','kb_expected_version_invalid','rabetbase\x20kb\x20detail\x20--id\x20','1891332ZeztOu','1815864dDOIIm','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','unshift','10ECFXwI','no_op','kb_verification_failed','54091flWcoL','170IRnSJL','Company\x20knowledge\x20base\x20','isSafeInteger','company','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','6GjDqrw','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','delete','POST','925182pEhPRB','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','/admin/knowledge-base/delete','Company\x20knowledge-base\x20id','4077836pbjiYA','kb_delete_outcome_unknown'];a118_0x3929=function(){return _0x8b9f69;};return a118_0x3929();}import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a118_0x44c1ec(0x102),RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING=a118_0x44c1ec(0x119);function readExpectedVersion(_0x169eb6){const _0x122603=a118_0x44c1ec,_0x5633fa=_0x169eb6[_0x122603(0x111)](_0x122603(0x108));if(_0x5633fa===undefined)return undefined;const _0x3b0e79=Number(_0x5633fa);if(!Number[_0x122603(0x121)](_0x3b0e79)||_0x3b0e79<0x0)throw kbError(_0x122603(0x115),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x3b0e79;}function noOpData(_0x5a9ff1,_0x27a550,_0x37f137){const _0x43ed=a118_0x44c1ec;return{'operation':_0x43ed(0x11c),'selector':{'id':_0x27a550,'scope':_0x43ed(0x122),'appCode':_0x5a9ff1['appCode']},'before':null,'after':null,'dryRun':_0x37f137,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':'already_absent','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':'delete','description':a118_0x44c1ec(0x125),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a118_0x44c1ec(0x10c),'required':!![],'description':a118_0x44c1ec(0x103)},{'name':a118_0x44c1ec(0x108),'type':'number','required':![],'description':a118_0x44c1ec(0x114)}],async 'validate'(_0x27db2f){readKbId(_0x27db2f),readExpectedVersion(_0x27db2f),requireKbExplicitYes(_0x27db2f);},async 'dryRun'(_0x942f4c){const _0x119e8c=a118_0x44c1ec,_0x27b29d=readKbId(_0x942f4c),_0x165123=readExpectedVersion(_0x942f4c),_0x52b07d=await getKbOrNull(_0x942f4c,_0x27b29d);if(!_0x52b07d)return asDryRunResult(noOpData(_0x942f4c,_0x27b29d,!![]),{'method':'POST','url':DELETE_PATH});assertExpectedKbVersion(_0x52b07d,_0x165123);const _0x851527=projectKb(_0x52b07d),_0x3b6773=[RAG_WARNING];if(_0x165123!==undefined)_0x3b6773['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x119e8c(0xfe),'selector':{'id':_0x851527['id'],'scope':_0x119e8c(0x122),'appCode':_0x851527[_0x119e8c(0x10b)]},'before':_0x851527,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x119e8c(0xff),'path':DELETE_PATH},'warnings':_0x3b6773,'verification':{'expectedVersion':_0x165123??null,'atomicCompareAndSet':![],'snapshotHash':_0x851527[_0x119e8c(0x113)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x119e8c(0x116)+_0x851527['id']+'\x20--format\x20compress'}},{'method':_0x119e8c(0xff),'url':DELETE_PATH});},async 'execute'(_0x1bc855){const _0x5d5bd8=a118_0x44c1ec;requireKbExplicitYes(_0x1bc855);const _0x531dcc=readKbId(_0x1bc855),_0x177275=readExpectedVersion(_0x1bc855),_0x2f1a35=await getKbOrNull(_0x1bc855,_0x531dcc);if(!_0x2f1a35)return{'ok':!![],'data':noOpData(_0x1bc855,_0x531dcc,![]),'message':'Company\x20knowledge\x20base\x20'+_0x531dcc+_0x5d5bd8(0x10d)};assertExpectedKbVersion(_0x2f1a35,_0x177275);const _0x575544=projectKb(_0x2f1a35);let _0x5d4daf=![];try{await deleteEnterpriseKnowledgeBase(_0x1bc855[_0x5d5bd8(0x10e)],_0x531dcc);}catch(_0x1783b8){if(!isPlatformTransportFailure(_0x1783b8))throw _0x1783b8;_0x5d4daf=!![];}const _0x1f9af2=await verifyKbMutationReadback(_0x5d5bd8(0xfe),_0x5d4daf,()=>getKbOrNull(_0x1bc855,_0x531dcc));if(_0x1f9af2)throw kbError(_0x5d4daf?_0x5d5bd8(0x105):_0x5d5bd8(0x11d),_0x5d5bd8(0x120)+_0x531dcc+_0x5d5bd8(0x107),_0x5d5bd8(0x123)+_0x531dcc+_0x5d5bd8(0x109));const _0x2a7061=[RAG_WARNING];if(_0x177275!==undefined)_0x2a7061[_0x5d5bd8(0x11a)](NON_ATOMIC_WARNING);return _0x5d4daf&&_0x2a7061[_0x5d5bd8(0x11a)](_0x5d5bd8(0x101)),{'ok':!![],'data':{'operation':_0x5d5bd8(0xfe),'selector':{'id':_0x575544['id'],'scope':_0x5d5bd8(0x122),'appCode':_0x575544['appCode']},'before':_0x575544,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x5d5bd8(0xff),'path':DELETE_PATH},'warnings':_0x2a7061,'verification':{'status':_0x5d5bd8(0x10a),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x5d4daf,'lookupCommand':_0x5d5bd8(0x116)+_0x575544['id']+_0x5d5bd8(0x112)}},'message':_0x5d5bd8(0x106)+_0x575544['id']};}};
1
+ function a132_0x5f57(_0x2dc802,_0x113460){_0x2dc802=_0x2dc802-0x193;const _0x212542=a132_0x2125();let _0x5f5719=_0x212542[_0x2dc802];return _0x5f5719;}const a132_0x539448=a132_0x5f57;(function(_0x13e02e,_0xfbef32){const _0x8869d=a132_0x5f57,_0x515b5f=_0x13e02e();while(!![]){try{const _0x1eecb6=parseInt(_0x8869d(0x1a5))/0x1+-parseInt(_0x8869d(0x1ae))/0x2*(-parseInt(_0x8869d(0x1a6))/0x3)+-parseInt(_0x8869d(0x1a9))/0x4+parseInt(_0x8869d(0x196))/0x5+-parseInt(_0x8869d(0x1b0))/0x6+parseInt(_0x8869d(0x19e))/0x7+-parseInt(_0x8869d(0x1a0))/0x8*(parseInt(_0x8869d(0x1b7))/0x9);if(_0x1eecb6===_0xfbef32)break;else _0x515b5f['push'](_0x515b5f['shift']());}catch(_0x9d9941){_0x515b5f['push'](_0x515b5f['shift']());}}}(a132_0x2125,0xd4923));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a132_0x539448(0x1a7),RAG_WARNING=a132_0x539448(0x1a8),NON_ATOMIC_WARNING=a132_0x539448(0x1ac);function readExpectedVersion(_0x4862b6){const _0x525e76=a132_0x539448,_0xa7288=_0x4862b6[_0x525e76(0x194)](_0x525e76(0x1b3));if(_0xa7288===undefined)return undefined;const _0x5bd4a4=Number(_0xa7288);if(!Number['isSafeInteger'](_0x5bd4a4)||_0x5bd4a4<0x0)throw kbError('kb_expected_version_invalid',_0x525e76(0x1af));return _0x5bd4a4;}function a132_0x2125(){const _0x5396f0=['kb_delete_outcome_unknown','appCode','company','356597lHsUEM','3qTBreB','/admin/knowledge-base/delete','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','6132272csRTKy','rabetbase\x20kb\x20detail\x20--id\x20','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','number','3189018OxktAN','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','1220898FpYcHF','cookie','Company\x20knowledge-base\x20id','expected-version','verified','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','already_absent','3969JPMAXr','no_op','flag','POST','1416335KgxIVO','\x20--format\x20compress','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','unshift','Company\x20knowledge\x20base\x20','delete','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','Soft-deleted\x20company\x20knowledge\x20base\x20','12022346RckSwJ','snapshotHash','24392vStuiV','high-risk-write'];a132_0x2125=function(){return _0x5396f0;};return a132_0x2125();}function noOpData(_0x44b60e,_0x1cf1cc,_0x304058){const _0x39040b=a132_0x539448;return{'operation':_0x39040b(0x193),'selector':{'id':_0x1cf1cc,'scope':_0x39040b(0x1a4),'appCode':_0x44b60e[_0x39040b(0x1a3)]},'before':null,'after':null,'dryRun':_0x304058,'deleteCalled':![],'backend':{'method':_0x39040b(0x195),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x39040b(0x1b6),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a132_0x539448(0x19b),'description':a132_0x539448(0x1b5),'risk':a132_0x539448(0x1a1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a132_0x539448(0x1ad),'required':!![],'description':a132_0x539448(0x1b2)},{'name':a132_0x539448(0x1b3),'type':'number','required':![],'description':a132_0x539448(0x1ab)}],async 'validate'(_0x29c33c){readKbId(_0x29c33c),readExpectedVersion(_0x29c33c),requireKbExplicitYes(_0x29c33c);},async 'dryRun'(_0x8233b2){const _0x3c202b=a132_0x539448,_0x45a0d8=readKbId(_0x8233b2),_0x304ac1=readExpectedVersion(_0x8233b2),_0x27caf3=await getKbOrNull(_0x8233b2,_0x45a0d8);if(!_0x27caf3)return asDryRunResult(noOpData(_0x8233b2,_0x45a0d8,!![]),{'method':_0x3c202b(0x195),'url':DELETE_PATH});assertExpectedKbVersion(_0x27caf3,_0x304ac1);const _0x3b59a4=projectKb(_0x27caf3),_0x22c806=[RAG_WARNING];if(_0x304ac1!==undefined)_0x22c806[_0x3c202b(0x199)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x3c202b(0x19b),'selector':{'id':_0x3b59a4['id'],'scope':'company','appCode':_0x3b59a4[_0x3c202b(0x1a3)]},'before':_0x3b59a4,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x3c202b(0x195),'path':DELETE_PATH},'warnings':_0x22c806,'verification':{'expectedVersion':_0x304ac1??null,'atomicCompareAndSet':![],'snapshotHash':_0x3b59a4[_0x3c202b(0x19f)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x3c202b(0x1aa)+_0x3b59a4['id']+_0x3c202b(0x197)}},{'method':_0x3c202b(0x195),'url':DELETE_PATH});},async 'execute'(_0x23b9b9){const _0x2a4f52=a132_0x539448;requireKbExplicitYes(_0x23b9b9);const _0x4434ab=readKbId(_0x23b9b9),_0x1171ad=readExpectedVersion(_0x23b9b9),_0x18a05f=await getKbOrNull(_0x23b9b9,_0x4434ab);if(!_0x18a05f)return{'ok':!![],'data':noOpData(_0x23b9b9,_0x4434ab,![]),'message':'Company\x20knowledge\x20base\x20'+_0x4434ab+_0x2a4f52(0x19c)};assertExpectedKbVersion(_0x18a05f,_0x1171ad);const _0x2199f3=projectKb(_0x18a05f);let _0x264ae8=![];try{await deleteEnterpriseKnowledgeBase(_0x23b9b9[_0x2a4f52(0x1b1)],_0x4434ab);}catch(_0x3b09c2){if(!isPlatformTransportFailure(_0x3b09c2))throw _0x3b09c2;_0x264ae8=!![];}const _0x179b2c=await verifyKbMutationReadback(_0x2a4f52(0x19b),_0x264ae8,()=>getKbOrNull(_0x23b9b9,_0x4434ab));if(_0x179b2c)throw kbError(_0x264ae8?_0x2a4f52(0x1a2):'kb_verification_failed',_0x2a4f52(0x19a)+_0x4434ab+'\x20remains\x20readable\x20after\x20delete.',_0x2a4f52(0x198)+_0x4434ab+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x2cb062=[RAG_WARNING];if(_0x1171ad!==undefined)_0x2cb062[_0x2a4f52(0x199)](NON_ATOMIC_WARNING);return _0x264ae8&&_0x2cb062[_0x2a4f52(0x199)]('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x2a4f52(0x19b),'selector':{'id':_0x2199f3['id'],'scope':'company','appCode':_0x2199f3['appCode']},'before':_0x2199f3,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x2a4f52(0x195),'path':DELETE_PATH},'warnings':_0x2cb062,'verification':{'status':_0x2a4f52(0x1b4),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x264ae8,'lookupCommand':_0x2a4f52(0x1aa)+_0x2199f3['id']+_0x2a4f52(0x197)}},'message':_0x2a4f52(0x19d)+_0x2199f3['id']};}};