@lovrabet/rabetbase-cli 2.5.3-beta.1 → 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 (374) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/logs.d.ts +7 -0
  38. package/lib/commands/bff/logs.js +1 -0
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/batch-design.d.ts +21 -0
  62. package/lib/commands/dataset/batch-design.js +1 -0
  63. package/lib/commands/dataset/business-group-update.js +1 -1
  64. package/lib/commands/dataset/business-groups.js +1 -1
  65. package/lib/commands/dataset/capability.js +1 -1
  66. package/lib/commands/dataset/delete.js +1 -1
  67. package/lib/commands/dataset/detail.js +1 -1
  68. package/lib/commands/dataset/extend-update.js +1 -1
  69. package/lib/commands/dataset/field-restore.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/index.js +1 -1
  103. package/lib/commands/deployment/sync-all.js +1 -1
  104. package/lib/commands/deployment/sync-jobs.js +1 -1
  105. package/lib/commands/deployment/sync-status.js +1 -1
  106. package/lib/commands/doctor.js +1 -1
  107. package/lib/commands/file/index.js +1 -1
  108. package/lib/commands/flow/create.d.ts +2 -0
  109. package/lib/commands/flow/create.js +1 -0
  110. package/lib/commands/flow/detail.d.ts +2 -0
  111. package/lib/commands/flow/detail.js +1 -0
  112. package/lib/commands/flow/index.d.ts +3 -0
  113. package/lib/commands/flow/index.js +1 -0
  114. package/lib/commands/flow/list.d.ts +2 -0
  115. package/lib/commands/flow/list.js +1 -0
  116. package/lib/commands/flow/publish.d.ts +2 -0
  117. package/lib/commands/flow/publish.js +1 -0
  118. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  119. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  120. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  121. package/lib/commands/flow/runtime-role-list.js +1 -0
  122. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  124. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  125. package/lib/commands/flow/runtime-user-search.js +1 -0
  126. package/lib/commands/flow/shared.d.ts +41 -0
  127. package/lib/commands/flow/shared.js +1 -0
  128. package/lib/commands/flow/update.d.ts +2 -0
  129. package/lib/commands/flow/update.js +1 -0
  130. package/lib/commands/flow/validate.d.ts +3 -0
  131. package/lib/commands/flow/validate.js +1 -0
  132. package/lib/commands/instant-api-policy/current.js +1 -1
  133. package/lib/commands/instant-api-policy/index.js +1 -1
  134. package/lib/commands/instant-api-policy/init.js +1 -1
  135. package/lib/commands/instant-api-policy/publish.js +1 -1
  136. package/lib/commands/instant-api-policy/pull.js +1 -1
  137. package/lib/commands/instant-api-policy/revision.js +1 -1
  138. package/lib/commands/instant-api-policy/revisions.js +1 -1
  139. package/lib/commands/instant-api-policy/rollback.js +1 -1
  140. package/lib/commands/instant-api-policy/shared.js +1 -1
  141. package/lib/commands/instant-api-policy/validate.js +1 -1
  142. package/lib/commands/issue/index.js +1 -1
  143. package/lib/commands/issue/nudge.js +1 -1
  144. package/lib/commands/issue/report.js +1 -1
  145. package/lib/commands/issue/shared.js +1 -1
  146. package/lib/commands/kb/create.js +1 -1
  147. package/lib/commands/kb/delete.js +1 -1
  148. package/lib/commands/kb/detail.js +1 -1
  149. package/lib/commands/kb/index.js +1 -1
  150. package/lib/commands/kb/list.js +1 -1
  151. package/lib/commands/kb/search.js +1 -1
  152. package/lib/commands/kb/shared.js +1 -1
  153. package/lib/commands/kb/update.js +1 -1
  154. package/lib/commands/logs/index.js +1 -1
  155. package/lib/commands/menu/asset-update.js +1 -1
  156. package/lib/commands/menu/delete.js +1 -1
  157. package/lib/commands/menu/external-link-create.js +1 -1
  158. package/lib/commands/menu/external-link-update.js +1 -1
  159. package/lib/commands/menu/group-create.js +1 -1
  160. package/lib/commands/menu/group-update.js +1 -1
  161. package/lib/commands/menu/index.js +1 -1
  162. package/lib/commands/menu/list.js +1 -1
  163. package/lib/commands/menu/move.js +1 -1
  164. package/lib/commands/menu/regroup-start.js +1 -1
  165. package/lib/commands/menu/rename.js +1 -1
  166. package/lib/commands/menu/shared/compare-table.js +1 -1
  167. package/lib/commands/menu/shared/delete-plan.js +1 -1
  168. package/lib/commands/menu/shared/facts.js +1 -1
  169. package/lib/commands/menu/shared/index.js +1 -1
  170. package/lib/commands/menu/shared/inquirer.js +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.js +1 -1
  173. package/lib/commands/menu/shared/mutations.js +1 -1
  174. package/lib/commands/menu/shared/service.js +1 -1
  175. package/lib/commands/menu/shared/sync-core.js +1 -1
  176. package/lib/commands/menu/shared/update-core.js +1 -1
  177. package/lib/commands/menu/shared/valid-url.js +1 -1
  178. package/lib/commands/menu/sync.js +1 -1
  179. package/lib/commands/menu/visibility-update.js +1 -1
  180. package/lib/commands/notification/config-create.js +1 -1
  181. package/lib/commands/notification/config-delete.js +1 -1
  182. package/lib/commands/notification/config-list.js +1 -1
  183. package/lib/commands/notification/config-update.js +1 -1
  184. package/lib/commands/notification/index.js +1 -1
  185. package/lib/commands/notification/shared.js +1 -1
  186. package/lib/commands/ocr/index.js +1 -1
  187. package/lib/commands/page/create.js +1 -1
  188. package/lib/commands/page/custom/detail.js +1 -1
  189. package/lib/commands/page/custom/list.js +1 -1
  190. package/lib/commands/page/custom/publish.js +1 -1
  191. package/lib/commands/page/custom/shared.js +1 -1
  192. package/lib/commands/page/custom/syntax.js +1 -1
  193. package/lib/commands/page/custom/update.js +1 -1
  194. package/lib/commands/page/data-list-status.js +1 -1
  195. package/lib/commands/page/generate-start.js +1 -1
  196. package/lib/commands/page/generate-status.js +1 -1
  197. package/lib/commands/page/index.js +1 -1
  198. package/lib/commands/page/pull.js +1 -1
  199. package/lib/commands/page/push.js +1 -1
  200. package/lib/commands/page/relation-audit.js +1 -1
  201. package/lib/commands/page/restore.js +1 -1
  202. package/lib/commands/page/shared.js +1 -1
  203. package/lib/commands/page/sync.js +1 -1
  204. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  205. package/lib/commands/project/create/format-elapsed.js +1 -1
  206. package/lib/commands/project/create/main.js +1 -1
  207. package/lib/commands/project/create/materialize-project-template.js +1 -1
  208. package/lib/commands/project/create/project-name.js +1 -1
  209. package/lib/commands/project/create/project-template-archive.js +1 -1
  210. package/lib/commands/project/create/project-template-path.js +1 -1
  211. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  212. package/lib/commands/project/create/use-format-code.js +1 -1
  213. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  214. package/lib/commands/project/domain-routing-sync.js +1 -1
  215. package/lib/commands/project/index.js +1 -1
  216. package/lib/commands/project/upgrade.js +1 -1
  217. package/lib/commands/registry.js +1 -1
  218. package/lib/commands/role/delete.js +1 -1
  219. package/lib/commands/role/detail.js +1 -1
  220. package/lib/commands/role/index.js +1 -1
  221. package/lib/commands/role/list.js +1 -1
  222. package/lib/commands/role/shared.js +1 -1
  223. package/lib/commands/role/update.js +1 -1
  224. package/lib/commands/role/user-add.js +1 -1
  225. package/lib/commands/role/user-remove.js +1 -1
  226. package/lib/commands/role/user-resolve.js +1 -1
  227. package/lib/commands/rule/get.js +1 -1
  228. package/lib/commands/rule/index.js +1 -1
  229. package/lib/commands/rule/list.js +1 -1
  230. package/lib/commands/rule/set.js +1 -1
  231. package/lib/commands/rule/shared.js +1 -1
  232. package/lib/commands/run/index.js +1 -1
  233. package/lib/commands/schema.js +1 -1
  234. package/lib/commands/sql/create.js +1 -1
  235. package/lib/commands/sql/delete.js +1 -1
  236. package/lib/commands/sql/detail.js +1 -1
  237. package/lib/commands/sql/exec.js +1 -1
  238. package/lib/commands/sql/index.js +1 -1
  239. package/lib/commands/sql/list.js +1 -1
  240. package/lib/commands/sql/pull.js +1 -1
  241. package/lib/commands/sql/push.js +1 -1
  242. package/lib/commands/sql/shared.js +1 -1
  243. package/lib/commands/sql/status.js +1 -1
  244. package/lib/commands/sql/validate.js +1 -1
  245. package/lib/commands/task/index.js +1 -1
  246. package/lib/commands/task/status.js +1 -1
  247. package/lib/commands/tenant/index.js +1 -1
  248. package/lib/commands/tenant/members-list.js +1 -1
  249. package/lib/commands/tenant/shared.js +1 -1
  250. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  251. package/lib/commands/user-account/index.js +1 -1
  252. package/lib/commands/workspace/add.js +1 -1
  253. package/lib/commands/workspace/index.js +1 -1
  254. package/lib/commands/workspace/remove.js +1 -1
  255. package/lib/config/domain-config.js +1 -1
  256. package/lib/config/project-domain-routing.js +1 -1
  257. package/lib/config/region-config.js +1 -1
  258. package/lib/config/schema.js +1 -1
  259. package/lib/constant/cdn.js +1 -1
  260. package/lib/constant/cli.js +1 -1
  261. package/lib/constant/defaults.js +1 -1
  262. package/lib/constant/domain.js +1 -1
  263. package/lib/constant/env.js +1 -1
  264. package/lib/constant/output.js +1 -1
  265. package/lib/constant/paths.js +1 -1
  266. package/lib/constant/region.js +1 -1
  267. package/lib/constant/risk.js +1 -1
  268. package/lib/constant/routing-profile.js +1 -1
  269. package/lib/context/app-resolver.js +1 -1
  270. package/lib/context/auth-resolver.js +1 -1
  271. package/lib/context/config-loader.js +1 -1
  272. package/lib/context.js +1 -1
  273. package/lib/core/alias-resolver.js +1 -1
  274. package/lib/core/api-client.d.ts +170 -1
  275. package/lib/core/api-client.js +1 -1
  276. package/lib/core/bff/config.js +1 -1
  277. package/lib/core/bff/file-system.js +1 -1
  278. package/lib/core/bff/hash.js +1 -1
  279. package/lib/core/bff/hook-directory.d.ts +55 -0
  280. package/lib/core/bff/hook-directory.js +1 -0
  281. package/lib/core/bff/lock.js +1 -1
  282. package/lib/core/bff/types.d.ts +15 -0
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/db-resolver.js +1 -1
  285. package/lib/core/flow-config.d.ts +628 -0
  286. package/lib/core/flow-config.js +1 -0
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +22 -4
  358. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  359. package/skills/rabetbase/guides/backend-function.md +19 -9
  360. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  361. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  362. package/skills/rabetbase/guides/sdk-client-generation.md +1 -0
  363. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  364. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  365. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  366. package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
  367. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  368. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  369. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  370. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  371. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  372. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  373. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  374. package/skills/rabetbase.manifest.json +9 -3
@@ -1 +1 @@
1
- const a105_0x272ff3=a105_0x2502;(function(_0x598cf6,_0x3ba84e){const _0x2b399a=a105_0x2502,_0x554924=_0x598cf6();while(!![]){try{const _0x5a8d00=-parseInt(_0x2b399a(0x127))/0x1*(parseInt(_0x2b399a(0x125))/0x2)+-parseInt(_0x2b399a(0x11c))/0x3+-parseInt(_0x2b399a(0x118))/0x4*(-parseInt(_0x2b399a(0x11f))/0x5)+parseInt(_0x2b399a(0x12d))/0x6+-parseInt(_0x2b399a(0x12b))/0x7+-parseInt(_0x2b399a(0x11a))/0x8*(parseInt(_0x2b399a(0x12f))/0x9)+parseInt(_0x2b399a(0x128))/0xa;if(_0x5a8d00===_0x3ba84e)break;else _0x554924['push'](_0x554924['shift']());}catch(_0x3ffecd){_0x554924['push'](_0x554924['shift']());}}}(a105_0x109f,0x30367));function a105_0x109f(){const _0x125c1f=['init','default-action','action','write','force','20bToFdj','Created','16607tEBoZA','4814430zzaNZL','policyFilePath','deny','2307319enYZAj','Kept','1253538DvUUdO','str','9ptAFJc','705844ifyiYk','instant-api-policy','829688zMkpFn','Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','739233BFLdRW','allow','appCode','10CRIcwE'];a105_0x109f=function(){return _0x125c1f;};return a105_0x109f();}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a105_0x2502(_0x317741,_0x148f20){_0x317741=_0x317741-0x118;const _0x109f58=a105_0x109f();let _0x250287=_0x109f58[_0x317741];return _0x250287;}export const instantApiPolicyInit={'service':a105_0x272ff3(0x119),'command':a105_0x272ff3(0x120),'description':a105_0x272ff3(0x11b),'risk':a105_0x272ff3(0x123),'requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'default-action','type':'string','enum':['allow','deny'],'default':a105_0x272ff3(0x11d),'description':'Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches'},FORCE_FLAG],async 'validate'(_0x5ecae2){requireForceConfirmation(_0x5ecae2);},async 'execute'(_0x50e5ed){const _0x196ca5=a105_0x272ff3;requireForceConfirmation(_0x50e5ed);const _0x49468d=_0x50e5ed[_0x196ca5(0x12e)](_0x196ca5(0x121))==='deny'?_0x196ca5(0x12a):'allow',_0x13ec89=loadInstantApiPolicyLocalConfig(_0x50e5ed['appCode']),_0x4de2c0=createDefaultInstantApiPolicyConfig(_0x50e5ed['appCode'],_0x49468d),_0x536ec4=await writeInstantApiPolicyConfigFile(_0x13ec89,_0x4de2c0,{'force':_0x50e5ed['bool'](_0x196ca5(0x124))}),_0x4480d7={'created':_0x196ca5(0x126),'overwritten':'Replaced','unchanged':_0x196ca5(0x12c)}[_0x536ec4[_0x196ca5(0x122)]];return{'ok':!![],'data':{'operation':_0x196ca5(0x120),'selector':{'appCode':_0x50e5ed['appCode']},'filePath':_0x13ec89[_0x196ca5(0x129)],'relativePath':_0x13ec89['policyRelativePath'],'action':_0x536ec4[_0x196ca5(0x122)],'config':_0x4de2c0},'message':_0x4480d7+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x50e5ed[_0x196ca5(0x11e)]};}};
1
+ 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_0x2985e3=a106_0x11be;(function(_0x40409d,_0x4f3d05){const _0x573492=a106_0x11be,_0x5688ee=_0x40409d();while(!![]){try{const _0x21030a=parseInt(_0x573492(0x15a))/0x1*(-parseInt(_0x573492(0x14e))/0x2)+-parseInt(_0x573492(0x168))/0x3*(parseInt(_0x573492(0x16e))/0x4)+-parseInt(_0x573492(0x16f))/0x5+parseInt(_0x573492(0x162))/0x6+-parseInt(_0x573492(0x154))/0x7*(-parseInt(_0x573492(0x156))/0x8)+parseInt(_0x573492(0x157))/0x9*(parseInt(_0x573492(0x15d))/0xa)+parseInt(_0x573492(0x165))/0xb*(parseInt(_0x573492(0x15f))/0xc);if(_0x21030a===_0x4f3d05)break;else _0x5688ee['push'](_0x5688ee['shift']());}catch(_0xd23822){_0x5688ee['push'](_0x5688ee['shift']());}}}(a106_0x5391,0x4b04e));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';function a106_0x11be(_0x5e894a,_0x1d1690){_0x5e894a=_0x5e894a-0x14d;const _0x539121=a106_0x5391();let _0x11be6a=_0x539121[_0x5e894a];return _0x11be6a;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a106_0x5391(){const _0x34bc4a=['Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','expectedRevision','880019zADrLG','instant_api_policy_publish_verification_failed','8RfDipA','1338462kjoMdo','before','all','66029sksOLF','defineProperty','push','10xuzkfb','POST','120PxvpFy','appCode','publish','3016482YmQhrR','config','cause','147191cAyqsO','/publish','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','84792aHwFmw','verified','policyRelativePath','instant_api_policy_publish_verification_unavailable','validation','policyFilePath','40NJBWOj','1275225JvQtsl','high-risk-write','instant_api_policy_publish_outcome_unknown','local','changeSummary','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','normalizedConfig','2pqcdum','`;\x20do\x20not\x20resubmit\x20automatically.','configHash','revision'];a106_0x5391=function(){return _0x34bc4a;};return a106_0x5391();}async function preparePublish(_0x979ef2){const _0x54f1d3=a106_0x11be,{local:_0x14c5d6,config:_0x47b998}=await readFixedPolicy(_0x979ef2),_0x3bb21a=readChangeSummary(_0x979ef2),_0x4c7707=readExpectedRevision(_0x979ef2),[_0x382b11,_0x4f3dcb]=await Promise[_0x54f1d3(0x159)]([getCurrentInstantApiPolicy(_0x979ef2[_0x54f1d3(0x160)]),validateInstantApiPolicy({'appCode':_0x979ef2[_0x54f1d3(0x160)],'config':_0x47b998})]);return assertExpectedRevision(_0x382b11,_0x4c7707),{'local':_0x14c5d6,'config':_0x47b998,'changeSummary':_0x3bb21a,'expectedRevision':_0x4c7707,'before':_0x382b11,'validation':_0x4f3dcb};}export const instantApiPolicyPublish={'service':'instant-api-policy','command':'publish','description':a106_0x2985e3(0x167),'risk':a106_0x2985e3(0x170),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a106_0x2985e3(0x152),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x402636){readChangeSummary(_0x402636),readExpectedRevision(_0x402636);},async 'dryRun'(_0x1110f7){const _0x37e008=a106_0x2985e3,_0x373b2a=await preparePublish(_0x1110f7);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x1110f7[_0x37e008(0x160)]},'before':projectCurrentPolicy(_0x373b2a['before']),'after':{'revision':_0x373b2a[_0x37e008(0x158)]?_0x373b2a['before'][_0x37e008(0x151)]+0x1:0x1,'configHash':_0x373b2a['validation'][_0x37e008(0x150)],'config':_0x373b2a[_0x37e008(0x16c)][_0x37e008(0x14d)]},'filePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16d)],'relativePath':_0x373b2a[_0x37e008(0x172)][_0x37e008(0x16a)],'dryRun':!![],'backend':{'method':_0x37e008(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)},'warnings':expectedRevisionWarnings(_0x373b2a[_0x37e008(0x153)]),'verification':{'status':'planned','expectedRevision':_0x373b2a['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x37e008(0x15e),'url':INSTANT_API_POLICY_BASE_PATH+_0x37e008(0x166)});},async 'execute'(_0x9328e7){const _0x4a2a9b=a106_0x2985e3,_0x4a1404=await preparePublish(_0x9328e7);let _0x25b90c=![];try{await publishInstantApiPolicy({'appCode':_0x9328e7[_0x4a2a9b(0x160)],'config':_0x4a1404[_0x4a2a9b(0x163)],..._0x4a1404[_0x4a2a9b(0x173)]?{'changeSummary':_0x4a1404[_0x4a2a9b(0x173)]}:{}});}catch(_0x48f956){if(!isPlatformTransportFailure(_0x48f956))throw _0x48f956;_0x25b90c=!![];}let _0x1cf57a;try{_0x1cf57a=await getCurrentInstantApiPolicy(_0x9328e7[_0x4a2a9b(0x160)]);}catch(_0x4b509f){const _0x10bec6=instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x16b),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x4a2a9b(0x15b)](_0x10bec6,_0x4a2a9b(0x164),{'value':_0x4b509f,'enumerable':![]});throw _0x10bec6;}const _0x20723a=_0x1cf57a&&(_0x4a1404['before']===null||_0x1cf57a[_0x4a2a9b(0x151)]>_0x4a1404['before']['revision']),_0x6b37db=_0x1cf57a?.['configHash']===_0x4a1404['validation'][_0x4a2a9b(0x150)];if(!_0x1cf57a||!_0x20723a||!_0x6b37db)throw instantApiPolicyError(_0x25b90c?_0x4a2a9b(0x171):_0x4a2a9b(0x155),_0x4a2a9b(0x174),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x4a2a9b(0x14f));const _0x584f8e=[...expectedRevisionWarnings(_0x4a1404[_0x4a2a9b(0x153)]),RUNTIME_CACHE_WARNING];return _0x25b90c&&_0x584f8e[_0x4a2a9b(0x15c)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4a2a9b(0x161),'selector':{'appCode':_0x9328e7[_0x4a2a9b(0x160)]},'before':projectCurrentPolicy(_0x4a1404['before']),'after':projectCurrentPolicy(_0x1cf57a),'filePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16d)],'relativePath':_0x4a1404[_0x4a2a9b(0x172)][_0x4a2a9b(0x16a)],'dryRun':![],'backend':{'method':_0x4a2a9b(0x15e),'path':INSTANT_API_POLICY_BASE_PATH+_0x4a2a9b(0x166)},'warnings':_0x584f8e,'verification':{'status':_0x4a2a9b(0x169),'recoveredAfterUnknownResponse':_0x25b90c,'expectedRevision':_0x4a1404[_0x4a2a9b(0x153)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':'Published\x20Instant\x20API\x20policy\x20revision\x20'+_0x1cf57a[_0x4a2a9b(0x151)]};}};
1
+ 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_0x5d87c4=a107_0x41ce;(function(_0x2accbd,_0x5386e8){const _0x1ff567=a107_0x41ce,_0x16d25f=_0x2accbd();while(!![]){try{const _0x3c3af8=parseInt(_0x1ff567(0x116))/0x1+-parseInt(_0x1ff567(0x107))/0x2*(parseInt(_0x1ff567(0x10f))/0x3)+parseInt(_0x1ff567(0x118))/0x4+-parseInt(_0x1ff567(0x105))/0x5+parseInt(_0x1ff567(0x113))/0x6*(-parseInt(_0x1ff567(0x10a))/0x7)+parseInt(_0x1ff567(0x112))/0x8*(-parseInt(_0x1ff567(0x10b))/0x9)+parseInt(_0x1ff567(0x11a))/0xa;if(_0x3c3af8===_0x5386e8)break;else _0x16d25f['push'](_0x16d25f['shift']());}catch(_0x732c78){_0x16d25f['push'](_0x16d25f['shift']());}}}(a107_0x1541,0xe3f30));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a107_0x1541(){const _0x650712=['config','19228220oPSBuj','revision','1451515yjGRDA','policyRelativePath','278zpUzDi','instant_api_policy_not_configured','pull','34559OEJrls','2555685YIJint','appCode','force','policyFilePath','15759vsTpOK','unchanged','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','8wqLriw','1386EoImYa','action','Pulled','1046763YHNIgT','Kept','1635908PkIBlA'];a107_0x1541=function(){return _0x650712;};return a107_0x1541();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';function a107_0x41ce(_0x1aea4d,_0x10e6ed){_0x1aea4d=_0x1aea4d-0x104;const _0x1541a9=a107_0x1541();let _0x41ce66=_0x1541a9[_0x1aea4d];return _0x41ce66;}export const instantApiPolicyPull={'service':'instant-api-policy','command':a107_0x5d87c4(0x109),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x140e2d){requireForceConfirmation(_0x140e2d);},async 'execute'(_0x3d0af9){const _0x1fcd5c=a107_0x5d87c4;requireForceConfirmation(_0x3d0af9);const _0x51e62f=await getCurrentInstantApiPolicy(_0x3d0af9['appCode']);if(!_0x51e62f)throw instantApiPolicyError(_0x1fcd5c(0x108),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x3d0af9[_0x1fcd5c(0x10c)]+'.',_0x1fcd5c(0x111));const _0x4c52da=loadInstantApiPolicyLocalConfig(_0x3d0af9['appCode']),_0x3f5d1b=await writeInstantApiPolicyConfigFile(_0x4c52da,_0x51e62f[_0x1fcd5c(0x119)],{'force':_0x3d0af9['bool'](_0x1fcd5c(0x10d))});return{'ok':!![],'data':{'operation':_0x1fcd5c(0x109),'selector':{'appCode':_0x3d0af9['appCode'],'revision':_0x51e62f['revision']},'filePath':_0x4c52da[_0x1fcd5c(0x10e)],'relativePath':_0x4c52da[_0x1fcd5c(0x106)],'action':_0x3f5d1b[_0x1fcd5c(0x114)],'configHash':_0x51e62f['configHash']},'message':(_0x3f5d1b[_0x1fcd5c(0x114)]===_0x1fcd5c(0x110)?_0x1fcd5c(0x117):_0x1fcd5c(0x115))+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x51e62f[_0x1fcd5c(0x104)]};}};
1
+ 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_0x24c9a6=a108_0x567c;(function(_0x41ff54,_0xde7970){const _0xe9c97=a108_0x567c,_0x15eb79=_0x41ff54();while(!![]){try{const _0x5aabaf=-parseInt(_0xe9c97(0xd6))/0x1+-parseInt(_0xe9c97(0xcb))/0x2+parseInt(_0xe9c97(0xcd))/0x3*(parseInt(_0xe9c97(0xd7))/0x4)+parseInt(_0xe9c97(0xcc))/0x5+parseInt(_0xe9c97(0xce))/0x6+parseInt(_0xe9c97(0xd3))/0x7+parseInt(_0xe9c97(0xd8))/0x8*(-parseInt(_0xe9c97(0xcf))/0x9);if(_0x5aabaf===_0xde7970)break;else _0x15eb79['push'](_0x15eb79['shift']());}catch(_0x5d1cb7){_0x15eb79['push'](_0x15eb79['shift']());}}}(a108_0x1e7f,0x9d127));import{getInstantApiPolicyRevision}from'../../core/api-client.js';function a108_0x567c(_0x1446b9,_0x2d62ef){_0x1446b9=_0x1446b9-0xcb;const _0x1e7f66=a108_0x1e7f();let _0x567c4f=_0x1e7f66[_0x1446b9];return _0x567c4f;}import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a108_0x24c9a6(0xd5),'command':a108_0x24c9a6(0xd0),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a108_0x24c9a6(0xd1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0xbbc932){readRevision(_0xbbc932);},async 'execute'(_0x1c9be8){const _0xd8645e=a108_0x24c9a6,_0x4643e0=readRevision(_0x1c9be8),_0xddc06f=await getInstantApiPolicyRevision(_0x1c9be8[_0xd8645e(0xd4)],_0x4643e0);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0xddc06f)},'message':_0xd8645e(0xd2)+_0x4643e0};}};function a108_0x1e7f(){const _0xdd3b2a=['3801410ZBaacz','858BeoUoV','6237018mTrNIS','5770566XlNoqK','revision','read','Loaded\x20Instant\x20API\x20policy\x20revision\x20','7188958kCzvWm','appCode','instant-api-policy','983548enbaCS','6992XEeWtZ','8WLDdPe','2117236XDnyvL'];a108_0x1e7f=function(){return _0xdd3b2a;};return a108_0x1e7f();}
1
+ 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_0x35eba9=a109_0x4613;(function(_0x2cfaf9,_0x58627){const _0x62422c=a109_0x4613,_0x2dcf24=_0x2cfaf9();while(!![]){try{const _0x4b17eb=parseInt(_0x62422c(0x115))/0x1+parseInt(_0x62422c(0x112))/0x2+-parseInt(_0x62422c(0x11c))/0x3+-parseInt(_0x62422c(0x118))/0x4*(-parseInt(_0x62422c(0x11f))/0x5)+parseInt(_0x62422c(0x11b))/0x6*(parseInt(_0x62422c(0x110))/0x7)+parseInt(_0x62422c(0x117))/0x8*(-parseInt(_0x62422c(0x10f))/0x9)+-parseInt(_0x62422c(0x111))/0xa;if(_0x4b17eb===_0x58627)break;else _0x2dcf24['push'](_0x2dcf24['shift']());}catch(_0x260e7b){_0x2dcf24['push'](_0x2dcf24['shift']());}}}(a109_0x19c6,0xb8018));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a109_0x4613(_0xcf114f,_0x2d3074){_0xcf114f=_0xcf114f-0x10f;const _0x19c64e=a109_0x19c6();let _0x46136c=_0x19c64e[_0xcf114f];return _0x46136c;}function a109_0x19c6(){const _0x9b7281=['length','756rQDNGz','343050YYpyNw','read','appCode','3665MlALQn','2385JnaHqr','78036DduqnL','16500580TBnRpz','468810wDWHoE','Found\x20','revisions','1398706xpIxLk','map','23632yDrESF','1436cPRoPW','List\x20immutable\x20Instant\x20API\x20policy\x20revisions'];a109_0x19c6=function(){return _0x9b7281;};return a109_0x19c6();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':a109_0x35eba9(0x114),'description':a109_0x35eba9(0x119),'risk':a109_0x35eba9(0x11d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x4b1b00){const _0x300905=a109_0x35eba9,_0x19494c=await listInstantApiPolicyRevisions(_0x4b1b00[_0x300905(0x11e)]);return{'ok':!![],'data':{'appCode':_0x4b1b00[_0x300905(0x11e)],'total':_0x19494c['length'],'revisions':_0x19494c[_0x300905(0x116)](projectRevisionSummary)},'message':_0x300905(0x113)+_0x19494c[_0x300905(0x11a)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
1
+ 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_0x5c5af5=a110_0x5a8b;function a110_0x5a8b(_0x22ba74,_0x215246){_0x22ba74=_0x22ba74-0x132;const _0x44a019=a110_0x44a0();let _0x5a8b16=_0x44a019[_0x22ba74];return _0x5a8b16;}(function(_0x4ea38c,_0x33ac26){const _0x5e2b11=a110_0x5a8b,_0x25c4d7=_0x4ea38c();while(!![]){try{const _0x28bf81=parseInt(_0x5e2b11(0x149))/0x1+-parseInt(_0x5e2b11(0x134))/0x2+-parseInt(_0x5e2b11(0x13c))/0x3+-parseInt(_0x5e2b11(0x153))/0x4+-parseInt(_0x5e2b11(0x13a))/0x5+parseInt(_0x5e2b11(0x140))/0x6+parseInt(_0x5e2b11(0x14d))/0x7*(parseInt(_0x5e2b11(0x14e))/0x8);if(_0x28bf81===_0x33ac26)break;else _0x25c4d7['push'](_0x25c4d7['shift']());}catch(_0x6b3655){_0x25c4d7['push'](_0x25c4d7['shift']());}}}(a110_0x44a0,0xc1059));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a110_0x44a0(){const _0x55e16f=['Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','/rollback','cause','1140426MQiAvM','defineProperty','instant_api_policy_rollback_verification_unavailable','POST','7749lxoKHg','10864ZsNaae','appCode','before','`;\x20do\x20not\x20resubmit\x20automatically.','instant_api_policy_rollback_outcome_unknown','1895064MYfXJO','instant-api-policy','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','1997682AIRvHr','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','configHash','revision','changeSummary','target','2541460nbxMNZ','Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','4083561SoaWAg','expectedRevision','instant_api_policy_not_configured','rollback','8933826VGfDhI','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','instant_api_policy_rollback_verification_failed','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','high-risk-write'];a110_0x44a0=function(){return _0x55e16f;};return a110_0x44a0();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x3530ea){const _0x525e91=a110_0x5a8b,_0x20c780=readRevision(_0x3530ea),_0x310b78=readChangeSummary(_0x3530ea),_0x18d458=readExpectedRevision(_0x3530ea),[_0x5031c9,_0x228edd]=await Promise['all']([getCurrentInstantApiPolicy(_0x3530ea['appCode']),getInstantApiPolicyRevision(_0x3530ea[_0x525e91(0x14f)],_0x20c780)]);if(!_0x5031c9)throw instantApiPolicyError(_0x525e91(0x13e),_0x525e91(0x133)+_0x3530ea[_0x525e91(0x14f)]+'.');return assertExpectedRevision(_0x5031c9,_0x18d458),{'revision':_0x20c780,'changeSummary':_0x310b78,'expectedRevision':_0x18d458,'before':_0x5031c9,'target':_0x228edd};}export const instantApiPolicyRollback={'service':a110_0x5c5af5(0x132),'command':'rollback','description':a110_0x5c5af5(0x141),'risk':a110_0x5c5af5(0x144),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x2a2a48){readRevision(_0x2a2a48),readChangeSummary(_0x2a2a48),readExpectedRevision(_0x2a2a48);},async 'dryRun'(_0x5b3e23){const _0x35d815=a110_0x5c5af5,_0x4837a6=await prepareRollback(_0x5b3e23);return asDryRunResult({'operation':_0x35d815(0x13f),'selector':{'appCode':_0x5b3e23[_0x35d815(0x14f)],'sourceRevision':_0x4837a6['revision']},'before':projectCurrentPolicy(_0x4837a6[_0x35d815(0x150)]),'after':{'revision':_0x4837a6[_0x35d815(0x150)][_0x35d815(0x137)]+0x1,'sourceRevision':projectRevisionDetail(_0x4837a6[_0x35d815(0x139)])},'dryRun':!![],'backend':{'method':_0x35d815(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x4837a6['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x4837a6[_0x35d815(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x35d815(0x147)});},async 'execute'(_0x4b6e8a){const _0x210e23=a110_0x5c5af5,_0x4a6374=await prepareRollback(_0x4b6e8a);let _0x2db136=![];try{await rollbackInstantApiPolicy({'appCode':_0x4b6e8a[_0x210e23(0x14f)],'revision':_0x4a6374[_0x210e23(0x137)],..._0x4a6374[_0x210e23(0x138)]?{'changeSummary':_0x4a6374[_0x210e23(0x138)]}:{}});}catch(_0x2f273f){if(!isPlatformTransportFailure(_0x2f273f))throw _0x2f273f;_0x2db136=!![];}let _0x169e2e;try{_0x169e2e=await getCurrentInstantApiPolicy(_0x4b6e8a[_0x210e23(0x14f)]);}catch(_0x8cfeb3){const _0x221b5d=instantApiPolicyError(_0x2db136?_0x210e23(0x152):_0x210e23(0x14b),_0x210e23(0x135),'Inspect\x20with\x20`'+mutationLookupCommand()+'`;\x20do\x20not\x20resubmit\x20automatically.');Object[_0x210e23(0x14a)](_0x221b5d,_0x210e23(0x148),{'value':_0x8cfeb3,'enumerable':![]});throw _0x221b5d;}const _0x464208=_0x169e2e&&_0x169e2e[_0x210e23(0x137)]>_0x4a6374[_0x210e23(0x150)]['revision'],_0x46f2f1=_0x169e2e?.[_0x210e23(0x136)]===_0x4a6374[_0x210e23(0x139)][_0x210e23(0x136)];if(!_0x169e2e||!_0x464208||!_0x46f2f1)throw instantApiPolicyError(_0x2db136?'instant_api_policy_rollback_outcome_unknown':_0x210e23(0x142),_0x210e23(0x143),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x210e23(0x151));const _0x31ccdd=[...expectedRevisionWarnings(_0x4a6374[_0x210e23(0x13d)]),RUNTIME_CACHE_WARNING];return _0x2db136&&_0x31ccdd[_0x210e23(0x146)](_0x210e23(0x13b)),{'ok':!![],'data':{'operation':_0x210e23(0x13f),'selector':{'appCode':_0x4b6e8a[_0x210e23(0x14f)],'sourceRevision':_0x4a6374['revision']},'before':projectCurrentPolicy(_0x4a6374['before']),'after':projectCurrentPolicy(_0x169e2e),'dryRun':![],'backend':{'method':_0x210e23(0x14c),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x31ccdd,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2db136,'expectedRevision':_0x4a6374[_0x210e23(0x13d)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x210e23(0x145)+_0x4a6374[_0x210e23(0x137)]+'\x20forward\x20to\x20revision\x20'+_0x169e2e[_0x210e23(0x137)]};}};
1
+ 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_0x251236=a111_0x513e;(function(_0x2c4539,_0x189327){const _0xb44d83=a111_0x513e,_0x583639=_0x2c4539();while(!![]){try{const _0x365c96=-parseInt(_0xb44d83(0x102))/0x1+-parseInt(_0xb44d83(0xfd))/0x2*(-parseInt(_0xb44d83(0xed))/0x3)+parseInt(_0xb44d83(0xe1))/0x4+-parseInt(_0xb44d83(0xe5))/0x5+-parseInt(_0xb44d83(0xeb))/0x6*(parseInt(_0xb44d83(0xf8))/0x7)+-parseInt(_0xb44d83(0xd8))/0x8+parseInt(_0xb44d83(0xd5))/0x9*(parseInt(_0xb44d83(0x109))/0xa);if(_0x365c96===_0x189327)break;else _0x583639['push'](_0x583639['shift']());}catch(_0x39e828){_0x583639['push'](_0x583639['shift']());}}}(a111_0x2ce3,0x7cbf8));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a111_0x251236(0xf0);export const RUNTIME_CACHE_WARNING=a111_0x251236(0xdd);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a111_0x251236(0xfc);export const FORCE_FLAG={'name':'force','type':a111_0x251236(0xec),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a111_0x251236(0xe0),'type':a111_0x251236(0xf5),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a111_0x251236(0xff),'type':a111_0x251236(0xfb),'required':!![],'description':'Positive\x20published\x20policy\x20revision'};export const EXPECTED_REVISION_FLAG={'name':a111_0x251236(0xf7),'type':'number','required':![],'description':a111_0x251236(0xd7)};export function requireForceConfirmation(_0x30577e){const _0x32f4fa=a111_0x251236;if(!_0x30577e[_0x32f4fa(0x107)]('force')||_0x30577e[_0x32f4fa(0x107)]('yes'))return;throw instantApiPolicyError(_0x32f4fa(0xf3),_0x32f4fa(0xe4),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x3b345b){const _0x1261fd=a111_0x251236,_0xc7b6b0=_0x3b345b[_0x1261fd(0xdc)](_0x1261fd(0xe0))['trim']();if(!_0xc7b6b0)return undefined;if(_0xc7b6b0[_0x1261fd(0xd6)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid','--change-summary\x20cannot\x20exceed\x202000\x20characters.');return _0xc7b6b0;}export function readRevision(_0x159aba){const _0xc0b51d=a111_0x251236,_0x5377fa=_0x159aba[_0xc0b51d(0xe9)](_0xc0b51d(0xff),Number[_0xc0b51d(0xf1)]);if(!Number[_0xc0b51d(0xf2)](_0x5377fa)||_0x5377fa<=0x0)throw instantApiPolicyError(_0xc0b51d(0xe2),_0xc0b51d(0xea));return _0x5377fa;}export function readExpectedRevision(_0x1d3778){const _0x460c68=a111_0x251236;if(_0x1d3778[_0x460c68(0x104)]('expected-revision')===undefined)return undefined;const _0x3618ec=_0x1d3778[_0x460c68(0xe9)](_0x460c68(0xf7),Number[_0x460c68(0xf1)]);if(!Number[_0x460c68(0xf2)](_0x3618ec)||_0x3618ec<0x0)throw instantApiPolicyError(_0x460c68(0x103),_0x460c68(0xf4));return _0x3618ec;}function a111_0x513e(_0x393673,_0x42be0e){_0x393673=_0x393673-0xd5;const _0x2ce311=a111_0x2ce3();let _0x513e57=_0x2ce311[_0x393673];return _0x513e57;}export function assertExpectedRevision(_0x48ddb1,_0x5d03e0){const _0x3dc283=a111_0x251236;if(_0x5d03e0===undefined)return;const _0x529855=_0x48ddb1?.[_0x3dc283(0xff)]??0x0;if(_0x529855!==_0x5d03e0)throw instantApiPolicyError(_0x3dc283(0xfa),'The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.',_0x3dc283(0x108)+_0x5d03e0+_0x3dc283(0xf6)+_0x529855+_0x3dc283(0xdb));}export async function readFixedPolicy(_0x5162b0){const _0x1a9eb7=a111_0x251236,_0x559fbc=loadInstantApiPolicyLocalConfig(_0x5162b0[_0x1a9eb7(0xde)]),_0x2c0005=await readInstantApiPolicyConfigFile(_0x559fbc);return{'local':_0x559fbc,'config':_0x2c0005};}export function projectCurrentPolicy(_0x364ac3){const _0x3a924f=a111_0x251236;if(!_0x364ac3)return null;return{'id':_0x364ac3['id'],'appCode':_0x364ac3[_0x3a924f(0xde)],'revision':_0x364ac3[_0x3a924f(0xff)],'configHash':_0x364ac3['configHash'],'enabled':_0x364ac3[_0x3a924f(0xe6)],'config':_0x364ac3[_0x3a924f(0xe8)],'createUserId':_0x364ac3[_0x3a924f(0x101)]??null,'updateUserId':_0x364ac3[_0x3a924f(0x105)]??null,'gmtCreate':_0x364ac3[_0x3a924f(0xdf)]??null,'gmtModified':_0x364ac3[_0x3a924f(0xf9)]??null};}export function projectRevisionSummary(_0x128389){const _0x9cfcbc=a111_0x251236;return{'id':_0x128389['id'],'policyId':_0x128389[_0x9cfcbc(0xd9)],'appCode':_0x128389[_0x9cfcbc(0xde)],'revision':_0x128389[_0x9cfcbc(0xff)],'configHash':_0x128389[_0x9cfcbc(0xfe)],'changeType':_0x128389[_0x9cfcbc(0xee)],'changeSummary':_0x128389[_0x9cfcbc(0x100)]??null,'operatorId':_0x128389[_0x9cfcbc(0xe7)]??null,'gmtCreate':_0x128389[_0x9cfcbc(0xdf)]??null,'version':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xda)],'defaultAction':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0xef)][_0x9cfcbc(0xe3)],'ruleCount':_0x128389[_0x9cfcbc(0xe8)][_0x9cfcbc(0x106)]?.[_0x9cfcbc(0xd6)]??0x0};}export function projectRevisionDetail(_0x4a5a94){const _0x1e1224=a111_0x251236;return{...projectRevisionSummary(_0x4a5a94),'config':_0x4a5a94[_0x1e1224(0xe8)]};}export function expectedRevisionWarnings(_0x599ba2){return _0x599ba2===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}function a111_0x2ce3(){const _0x306d87=['str','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','appCode','gmtCreate','change-summary','1097872oAVGzE','instant_api_policy_revision_invalid','instantApi','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','4769340uhxDPW','enabled','operatorId','config','num','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','16062HAAqTq','boolean','3ihhbWp','changeType','defaults','/smartapi/instant-api-policy','NaN','isSafeInteger','instant_api_policy_force_confirmation_required','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','string',';\x20current\x20revision\x20is\x20','expected-revision','364WylLoF','gmtModified','instant_api_policy_revision_mismatch','number','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','1852322FKwJvT','configHash','revision','changeSummary','createUserId','694810TeAfaP','instant_api_policy_expected_revision_invalid','flag','updateUserId','rules','bool','Expected\x20revision\x20','1030cfJyVR','102933WLAwWT','length','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','638320gUevmR','policyId','version','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.'];a111_0x2ce3=function(){return _0x306d87;};return a111_0x2ce3();}
1
+ 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_0x334a(){const _0xa54417=['516712BQTFoW','2935476xOzysv','/validate','appCode','configHash','read','policyRelativePath','valid','validate','5xnzSxH','normalizedConfig','1602162mckStU','171NTAKmg','4216083AEXPER','787328qWlHUn','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','232571ywtAmQ','POST','3123154dESJNw','Validated\x20Instant\x20API\x20policy\x20for\x20'];a112_0x334a=function(){return _0xa54417;};return a112_0x334a();}const a112_0x154e20=a112_0x8713;(function(_0x4ba422,_0x1277c6){const _0x1b9349=a112_0x8713,_0x252e05=_0x4ba422();while(!![]){try{const _0x42df09=parseInt(_0x1b9349(0x1cf))/0x1+-parseInt(_0x1b9349(0x1d1))/0x2+parseInt(_0x1b9349(0x1cc))/0x3+parseInt(_0x1b9349(0x1d4))/0x4*(-parseInt(_0x1b9349(0x1c8))/0x5)+-parseInt(_0x1b9349(0x1ca))/0x6+-parseInt(_0x1b9349(0x1d3))/0x7+parseInt(_0x1b9349(0x1cd))/0x8*(parseInt(_0x1b9349(0x1cb))/0x9);if(_0x42df09===_0x1277c6)break;else _0x252e05['push'](_0x252e05['shift']());}catch(_0x48dba7){_0x252e05['push'](_0x252e05['shift']());}}}(a112_0x334a,0xd4c7b));function a112_0x8713(_0x1c3a0c,_0x22efd8){_0x1c3a0c=_0x1c3a0c-0x1c2;const _0x334a84=a112_0x334a();let _0x871322=_0x334a84[_0x1c3a0c];return _0x871322;}import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':'instant-api-policy','command':'validate','description':a112_0x154e20(0x1ce),'risk':a112_0x154e20(0x1c4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x498388){const _0x23d84d=a112_0x154e20,{local:_0x20dc79,config:_0x5e8862}=await readFixedPolicy(_0x498388),_0x51b72f=await validateInstantApiPolicy({'appCode':_0x498388[_0x23d84d(0x1c2)],'config':_0x5e8862});return{'ok':!![],'data':{'operation':_0x23d84d(0x1c7),'selector':{'appCode':_0x498388[_0x23d84d(0x1c2)]},'filePath':_0x20dc79['policyFilePath'],'relativePath':_0x20dc79[_0x23d84d(0x1c5)],'valid':_0x51b72f[_0x23d84d(0x1c6)],'configHash':_0x51b72f[_0x23d84d(0x1c3)],'normalizedConfig':_0x51b72f[_0x23d84d(0x1c9)],'backend':{'method':_0x23d84d(0x1d0),'path':INSTANT_API_POLICY_BASE_PATH+_0x23d84d(0x1d5)}},'message':_0x23d84d(0x1d2)+_0x498388['appCode']};}};
1
+ 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_0x3b98(){const _0x41750f=['4uRiQIk','4410345VsMnDa','158022bXLqGp','11jzlnDj','7146tcQruw','19065GQaXOz','1414839gFDERF','23243810fsWPNK','4384TPvtRa','1215620rdiESh','175wXHxFc'];a113_0x3b98=function(){return _0x41750f;};return a113_0x3b98();}function a113_0x1a76(_0x55d39b,_0x48e185){_0x55d39b=_0x55d39b-0xcb;const _0x3b984f=a113_0x3b98();let _0x1a76d3=_0x3b984f[_0x55d39b];return _0x1a76d3;}(function(_0x18ef0f,_0x2b667f){const _0x2dc9b7=a113_0x1a76,_0x26b4dc=_0x18ef0f();while(!![]){try{const _0x3ec1d3=parseInt(_0x2dc9b7(0xcc))/0x1+-parseInt(_0x2dc9b7(0xd0))/0x2+-parseInt(_0x2dc9b7(0xcd))/0x3*(parseInt(_0x2dc9b7(0xd2))/0x4)+-parseInt(_0x2dc9b7(0xd3))/0x5+parseInt(_0x2dc9b7(0xd4))/0x6*(parseInt(_0x2dc9b7(0xd1))/0x7)+parseInt(_0x2dc9b7(0xcf))/0x8*(-parseInt(_0x2dc9b7(0xcb))/0x9)+parseInt(_0x2dc9b7(0xce))/0xa*(parseInt(_0x2dc9b7(0xd5))/0xb);if(_0x3ec1d3===_0x2b667f)break;else _0x26b4dc['push'](_0x26b4dc['shift']());}catch(_0x3c52d4){_0x26b4dc['push'](_0x26b4dc['shift']());}}}(a113_0x3b98,0x93c53));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
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_0x484c(){const _0x5d767c=['report','\x20bug?\x20Help\x20us\x20fix\x20it:','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','stderr','has','4080852ZqbSrc','4cXbdBi','\x20\x20\x20\x20--title\x20\x22','\x20issue\x20report\x20\x5c','1313895aSAXse','648950xlfUgf','auth_required','RABETBASE_DISABLE_ISSUE_NUDGE','6730066SkvOcS','3bXdjfs','2932835tMQGEz','write','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','config_missing','message','slice','\x22\x20\x5c','code','command','580tRaKrM','flag_missing','4082920WjevZR','join','not_in_project','replace','\x20\x20Set\x20','service','unknown_command','158481ThrAEU','Hit\x20a\x20'];a114_0x484c=function(){return _0x5d767c;};return a114_0x484c();}const a114_0xe5f5e2=a114_0x59c0;(function(_0x3f2801,_0x30cd21){const _0x3c9d7c=a114_0x59c0,_0x12069f=_0x3f2801();while(!![]){try{const _0x55c70f=-parseInt(_0x3c9d7c(0xf8))/0x1*(-parseInt(_0x3c9d7c(0xf4))/0x2)+-parseInt(_0x3c9d7c(0xf3))/0x3+parseInt(_0x3c9d7c(0xf0))/0x4*(-parseInt(_0x3c9d7c(0xf9))/0x5)+-parseInt(_0x3c9d7c(0xef))/0x6+parseInt(_0x3c9d7c(0xf7))/0x7+-parseInt(_0x3c9d7c(0xe0))/0x8+parseInt(_0x3c9d7c(0xe7))/0x9*(parseInt(_0x3c9d7c(0xde))/0xa);if(_0x55c70f===_0x30cd21)break;else _0x12069f['push'](_0x12069f['shift']());}catch(_0x273393){_0x12069f['push'](_0x12069f['shift']());}}}(a114_0x484c,0xb4f1a));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a114_0xe5f5e2(0xf6);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a114_0xe5f5e2(0xf5),a114_0xe5f5e2(0xfc),a114_0xe5f5e2(0xe2),a114_0xe5f5e2(0xe6),a114_0xe5f5e2(0xdf),'validation_error','network_error']),defaultWriter=_0x1ff528=>{const _0x2217a7=a114_0xe5f5e2;process[_0x2217a7(0xed)][_0x2217a7(0xfa)](_0x1ff528);};export function shouldNudgeForError(_0x36223a,_0x152293){const _0x581277=a114_0xe5f5e2;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x152293[_0x581277(0xe5)]==='issue'&&_0x152293[_0x581277(0xdd)]===_0x581277(0xe9))return![];if(_0x36223a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x581277(0xee)](_0x36223a[_0x581277(0xdc)]);return!![];}function a114_0x59c0(_0x1e8799,_0xfc1839){_0x1e8799=_0x1e8799-0xd9;const _0x484cb5=a114_0x484c();let _0x59c030=_0x484cb5[_0x1e8799];return _0x59c030;}export function printIssueReportNudgeForError(_0x394049,_0x5a12e0,_0x1ca995=defaultWriter){if(!shouldNudgeForError(_0x394049,_0x5a12e0))return;const _0x6c466b=buildSuggestedTitle(_0x394049,_0x5a12e0);_0x1ca995(formatNudge(_0x6c466b));}function buildSuggestedTitle(_0x27b74b,_0x566d73){const _0x29c860=a114_0xe5f5e2,_0x2689ec=_0x27b74b instanceof Error?_0x27b74b[_0x29c860(0xd9)]:String(_0x27b74b),_0x22c8bb=_0x2689ec[_0x29c860(0xe3)](/[\r\n]+/g,'\x20')[_0x29c860(0xe3)](/\s+/g,'\x20')['trim']()[_0x29c860(0xda)](0x0,0x78)[_0x29c860(0xe3)](/"/g,'\x5c\x22'),_0x217048=CLI_BIN_NAME+'\x20'+_0x566d73[_0x29c860(0xe5)]+'\x20'+_0x566d73[_0x29c860(0xdd)];return _0x22c8bb[_0x29c860(0xeb)]>0x0?_0x217048+':\x20'+_0x22c8bb:_0x217048;}function formatNudge(_0x1816a0){const _0x51b2e2=a114_0xe5f5e2;return['',_0x51b2e2(0xe8)+CLI_BIN_NAME+_0x51b2e2(0xea),'\x20\x20'+CLI_BIN_NAME+_0x51b2e2(0xf2),_0x51b2e2(0xf1)+_0x1816a0+_0x51b2e2(0xdb),_0x51b2e2(0xec),_0x51b2e2(0xfb),_0x51b2e2(0xe4)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x51b2e2(0xe1)]('\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_0x55fa3e=a115_0x22de;(function(_0x1eff1c,_0x2fdb1f){const _0x128360=a115_0x22de,_0x97f66f=_0x1eff1c();while(!![]){try{const _0x9e073b=parseInt(_0x128360(0x1bb))/0x1+parseInt(_0x128360(0x1d7))/0x2*(-parseInt(_0x128360(0x1be))/0x3)+-parseInt(_0x128360(0x1c4))/0x4*(-parseInt(_0x128360(0x1c2))/0x5)+parseInt(_0x128360(0x1e0))/0x6+-parseInt(_0x128360(0x1df))/0x7+-parseInt(_0x128360(0x1ea))/0x8+parseInt(_0x128360(0x1cc))/0x9*(parseInt(_0x128360(0x1b8))/0xa);if(_0x9e073b===_0x2fdb1f)break;else _0x97f66f['push'](_0x97f66f['shift']());}catch(_0xb4d3c2){_0x97f66f['push'](_0x97f66f['shift']());}}}(a115_0x183c,0x33b3b));function a115_0x22de(_0x2e2770,_0x2c5b05){_0x2e2770=_0x2e2770-0x1b8;const _0x183cde=a115_0x183c();let _0x22deda=_0x183cde[_0x2e2770];return _0x22deda;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a115_0x55fa3e(0x1ce),'command':a115_0x55fa3e(0x1d8),'description':a115_0x55fa3e(0x1e1),'risk':a115_0x55fa3e(0x1d1),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a115_0x55fa3e(0x1f5),'flags':[{'name':a115_0x55fa3e(0x1e7),'type':a115_0x55fa3e(0x1c1),'required':!![],'description':a115_0x55fa3e(0x1e9)},{'name':'description','type':a115_0x55fa3e(0x1c1),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a115_0x55fa3e(0x1c1),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x19e08c){const _0x24f01a=a115_0x55fa3e,_0x689b6d=_0x19e08c[_0x24f01a(0x1d4)](_0x24f01a(0x1e7))[_0x24f01a(0x1c0)](),_0xbe9bc8=_0x19e08c['str'](_0x24f01a(0x1cd))['trim'](),_0x497179=_0x19e08c[_0x24f01a(0x1d4)](DESCRIPTION_FILE_FLAG)[_0x24f01a(0x1c0)]();if(!_0x689b6d)throw CliErrors['flagMissing'](_0x24f01a(0x1e7),_0x24f01a(0x1d6));const _0x213ad0=_0xbe9bc8[_0x24f01a(0x1cb)]>0x0,_0x1b7426=_0x497179[_0x24f01a(0x1cb)]>0x0;if(_0x213ad0===_0x1b7426)throw CliErrors[_0x24f01a(0x1e6)](_0x24f01a(0x1c9),_0x24f01a(0x1c3));if(_0x1b7426){const _0x191fd1=resolve(process[_0x24f01a(0x1ef)](),_0x497179);if(!existsSync(_0x191fd1))throw CliErrors['validation'](_0x24f01a(0x1e5)+_0x191fd1);}},async 'dryRun'(_0x3f3bfb){const _0x2fec2a=a115_0x55fa3e,_0x5377b3=await prepareIssueReport(_0x3f3bfb);return{'method':_0x2fec2a(0x1e4),'url':_0x2fec2a(0x1dd)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5377b3[_0x2fec2a(0x1e7)],'issue.description':_0x5377b3[_0x2fec2a(0x1cd)],'issue.description_original_bytes':_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1d3)],'issue.description_truncated':_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1bc)],'issue.description_redactions':_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1cf)],'issue.description_redaction_kinds':_0x5377b3['sanitize'][_0x2fec2a(0x1f1)][_0x2fec2a(0x1d9)](',')}},'description':[_0x2fec2a(0x1e3),_0x2fec2a(0x1db)+_0x5377b3[_0x2fec2a(0x1eb)],_0x5377b3[_0x2fec2a(0x1d2)]?_0x2fec2a(0x1dc)+_0x5377b3['descriptionFilePath']:null,_0x5377b3[_0x2fec2a(0x1d5)]['truncated']?'truncated:\x20original\x20'+_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1d3)]+'\x20bytes':null,_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1cf)]>0x0?_0x2fec2a(0x1f4)+_0x5377b3[_0x2fec2a(0x1d5)]['redactionCount']+'\x20('+_0x5377b3[_0x2fec2a(0x1d5)][_0x2fec2a(0x1f1)]['join'](',\x20')+')':null][_0x2fec2a(0x1c7)](Boolean)[_0x2fec2a(0x1d9)]('\x0a')};},async 'execute'(_0x3d77f9){const _0x656b69=a115_0x55fa3e,_0x1d4edf=await prepareIssueReport(_0x3d77f9);try{await sendPlatformIssueCollectLog({'title':_0x1d4edf[_0x656b69(0x1e7)],'description':_0x1d4edf[_0x656b69(0x1cd)],'sanitize':{'originalBytes':_0x1d4edf['sanitize'][_0x656b69(0x1d3)],'truncated':_0x1d4edf[_0x656b69(0x1d5)][_0x656b69(0x1bc)],'redactionCount':_0x1d4edf['sanitize'][_0x656b69(0x1cf)],'redactionKinds':_0x1d4edf[_0x656b69(0x1d5)][_0x656b69(0x1f1)]}});}catch(_0xec76b8){throw CliErrors[_0x656b69(0x1f0)](_0x656b69(0x1c5)+(_0xec76b8 instanceof Error?_0xec76b8[_0x656b69(0x1f3)]:String(_0xec76b8)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x1d4edf[_0x656b69(0x1d5)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x656b69(0x1ec),_0x656b69(0x1b9),_0x656b69(0x1da),_0x656b69(0x1e8),_0x656b69(0x1ba)],'issue':{'title':_0x1d4edf['title'],'descriptionLength':_0x1d4edf['description']['length'],'descriptionSource':_0x1d4edf['descriptionSource'],..._0x1d4edf[_0x656b69(0x1d2)]?{'descriptionFile':_0x1d4edf[_0x656b69(0x1d2)]}:{},'sanitize':{'originalBytes':_0x1d4edf[_0x656b69(0x1d5)][_0x656b69(0x1d3)],'truncated':_0x1d4edf[_0x656b69(0x1d5)][_0x656b69(0x1bc)],'redactions':_0x1d4edf[_0x656b69(0x1d5)]['redactionCount'],'redactionKinds':_0x1d4edf[_0x656b69(0x1d5)]['redactionKinds']}}}};}};function buildResultMessage(_0x5c82a1){const _0x4e4efe=a115_0x55fa3e,_0x4e8f39=[];return _0x5c82a1[_0x4e4efe(0x1bc)]&&_0x4e8f39['push'](_0x4e4efe(0x1bd)+_0x5c82a1['originalBytes']+_0x4e4efe(0x1ee)),_0x5c82a1[_0x4e4efe(0x1cf)]>0x0&&_0x4e8f39[_0x4e4efe(0x1de)]('redacted\x20'+_0x5c82a1[_0x4e4efe(0x1cf)]+'\x20secret(s):\x20'+_0x5c82a1[_0x4e4efe(0x1f1)]['join'](',\x20')),_0x4e8f39[_0x4e4efe(0x1cb)]===0x0?_0x4e4efe(0x1f2):_0x4e4efe(0x1d0)+_0x4e8f39[_0x4e4efe(0x1d9)](';\x20')+')';}function a115_0x183c(){const _0x2b60b5=['sanitize','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','68TvxQuY','report','join','issue.description_truncated','descriptionSource:\x20','descriptionFile:\x20','otel://','push','1298899GTQxyj','1257174xgbrmy','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','POST','File\x20not\x20found:\x20','validation','title','issue.description_redactions','One-line\x20issue\x20summary','1653560RAhMhH','descriptionSource','issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','\x20bytes','cwd','apiError','redactionKinds','Platform\x20issue\x20reported','message','redactions:\x20','compress','3813730KyAIye','issue.description_original_bytes','issue.description_redaction_kinds','251135gJNNrd','truncated','truncated\x20from\x20','29553sQFVOC','Issue\x20description\x20cannot\x20be\x20empty.','trim','string','242300beNQyr','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','8GQLeHA','Failed\x20to\x20report\x20platform\x20issue:\x20','inline','filter','Issue\x20description\x20file\x20is\x20empty:\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','utf8','length','9KaGcAL','description','issue','redactionCount','Platform\x20issue\x20reported\x20(','write','descriptionFilePath','originalBytes','str'];a115_0x183c=function(){return _0x2b60b5;};return a115_0x183c();}async function prepareIssueReport(_0x596417){const _0x226832=a115_0x55fa3e,_0x1723fe=_0x596417[_0x226832(0x1d4)]('title')[_0x226832(0x1c0)](),_0x136e93=_0x596417[_0x226832(0x1d4)](_0x226832(0x1cd)),_0x9a39fb=_0x596417['str'](DESCRIPTION_FILE_FLAG)[_0x226832(0x1c0)]();if(!_0x9a39fb){const _0x49c678=_0x136e93;if(!_0x49c678[_0x226832(0x1c0)]())throw CliErrors[_0x226832(0x1e6)](_0x226832(0x1bf),_0x226832(0x1ed));const _0x1abd68=sanitizeIssueDescription(_0x49c678);return{'title':_0x1723fe,'description':_0x1abd68[_0x226832(0x1cd)],'descriptionSource':_0x226832(0x1c6),'sanitize':_0x1abd68};}const _0x583534=resolve(process['cwd'](),_0x9a39fb),_0x3e3382=await readFile(_0x583534,_0x226832(0x1ca));if(!_0x3e3382[_0x226832(0x1c0)]())throw CliErrors[_0x226832(0x1e6)](_0x226832(0x1c8)+_0x583534,_0x226832(0x1e2));const _0x43ec63=sanitizeIssueDescription(_0x3e3382);return{'title':_0x1723fe,'description':_0x43ec63[_0x226832(0x1cd)],'descriptionSource':'file','descriptionFilePath':_0x583534,'sanitize':_0x43ec63};}
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
- const a116_0x53b850=a116_0x46d5;(function(_0x28f16e,_0x4ef6f2){const _0x488120=a116_0x46d5,_0x34405c=_0x28f16e();while(!![]){try{const _0x3811f2=parseInt(_0x488120(0x158))/0x1*(parseInt(_0x488120(0x15c))/0x2)+-parseInt(_0x488120(0x152))/0x3*(parseInt(_0x488120(0x154))/0x4)+-parseInt(_0x488120(0x16b))/0x5+-parseInt(_0x488120(0x15e))/0x6+parseInt(_0x488120(0x16e))/0x7*(-parseInt(_0x488120(0x155))/0x8)+-parseInt(_0x488120(0x164))/0x9+parseInt(_0x488120(0x153))/0xa;if(_0x3811f2===_0x4ef6f2)break;else _0x34405c['push'](_0x34405c['shift']());}catch(_0x54c125){_0x34405c['push'](_0x34405c['shift']());}}}(a116_0x11c9,0x8f854));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a116_0x53b850(0x150),REDACTION_RULES=[{'kind':a116_0x53b850(0x169),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a116_0x53b850(0x161)},{'kind':a116_0x53b850(0x165),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a116_0x53b850(0x15a)},{'kind':a116_0x53b850(0x167),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a116_0x53b850(0x14e)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a116_0x53b850(0x16c)},{'kind':a116_0x53b850(0x166),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a116_0x53b850(0x15d)},{'kind':a116_0x53b850(0x168),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a116_0x53b850(0x156)}];function a116_0x11c9(){const _0x552f83=['7BoqTcW','slice','REDACTED:authorization','utf8','272782KEiMGM','REDACTED:password','1340784HDXpPJ','label','kind','REDACTED:cookie','length','subarray','4162032nNbyJC','authorization','password','private-key','bearer-jwt','cookie','byteLength','1428680hNwGgk','REDACTED:access-key','replace','735ThlUEZ','from','restore','REDACTED:private-key','string','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','push','3nqnwBu','23480530UByWlU','2435868bpDxSv','86424bOQrsg','REDACTED:bearer-jwt','max'];a116_0x11c9=function(){return _0x552f83;};return a116_0x11c9();}export function sanitizeIssueDescription(_0x39dbf3){const _0x1cbedb=a116_0x53b850,_0x57a83a=Buffer[_0x1cbedb(0x16a)](_0x39dbf3,_0x1cbedb(0x15b)),_0x10bbc4=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x103b0c=_0x39dbf3,_0x4c901e=0x0;const _0x2d58ad=[];if(!_0x10bbc4){const _0x308ccf=protectOssAccessKeyIds(_0x103b0c);_0x103b0c=_0x308ccf['description'];for(const _0x5046d9 of REDACTION_RULES){let _0x352d59=0x0;_0x103b0c=_0x103b0c[_0x1cbedb(0x16d)](_0x5046d9['pattern'],(_0x9e7db2,_0x161762)=>{const _0x16761d=_0x1cbedb;_0x352d59+=0x1;const _0x5563c2=typeof _0x161762===_0x16761d(0x14f)?_0x161762:'';return _0x5563c2+'['+_0x5046d9[_0x16761d(0x15f)]+']';}),_0x352d59>0x0&&(_0x4c901e+=_0x352d59,!_0x2d58ad['includes'](_0x5046d9[_0x1cbedb(0x160)])&&_0x2d58ad[_0x1cbedb(0x151)](_0x5046d9[_0x1cbedb(0x160)]));}_0x103b0c=_0x308ccf[_0x1cbedb(0x170)](_0x103b0c);}let _0x5d34d5=![];if(Buffer[_0x1cbedb(0x16a)](_0x103b0c,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x5d34d5=!![];const _0x360348=Buffer['byteLength'](TRUNCATION_NOTICE,_0x1cbedb(0x15b)),_0x2a7a72=Math[_0x1cbedb(0x157)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x360348);_0x103b0c=sliceUtf8Bytes(_0x103b0c,_0x2a7a72)+TRUNCATION_NOTICE;}return{'description':_0x103b0c,'originalBytes':_0x57a83a,'truncated':_0x5d34d5,'redactionCount':_0x4c901e,'redactionKinds':_0x2d58ad};}function a116_0x46d5(_0x4e99e6,_0x2c7c1a){_0x4e99e6=_0x4e99e6-0x14e;const _0x11c9b1=a116_0x11c9();let _0x46d580=_0x11c9b1[_0x4e99e6];return _0x46d580;}function protectOssAccessKeyIds(_0xe8f68){const _0x4fae6f=a116_0x53b850,_0x23e5fb=[],_0xffa5c3=_0xe8f68[_0x4fae6f(0x16d)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xfc1f07,_0x42ced3)=>{const _0x267642=_0x4fae6f,_0x2cb353=_0x23e5fb[_0x267642(0x151)](_0xfc1f07[_0x267642(0x159)](_0x42ced3[_0x267642(0x162)]))-0x1;return _0x42ced3+'__RB_OSS_ID_'+_0x2cb353+'__';});return{'description':_0xffa5c3,'restore':_0x15dcf0=>_0x15dcf0[_0x4fae6f(0x16d)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x422277,_0x43e3d6,_0x5a4092)=>{const _0x589c1b=_0x23e5fb[Number(_0x5a4092)];return _0x589c1b===undefined?_0x422277:''+_0x43e3d6+_0x589c1b;})};}function sliceUtf8Bytes(_0x4483bd,_0x5f0b12){const _0x3b2c24=a116_0x53b850;if(_0x5f0b12<=0x0)return'';const _0x20e836=Buffer[_0x3b2c24(0x16f)](_0x4483bd,_0x3b2c24(0x15b));if(_0x20e836[_0x3b2c24(0x16a)]<=_0x5f0b12)return _0x4483bd;let _0x5c75ef=_0x5f0b12;while(_0x5c75ef>0x0){const _0x5e1137=_0x20e836[_0x5c75ef];if(_0x5e1137===undefined||(_0x5e1137&0xc0)!==0x80)break;_0x5c75ef-=0x1;}return _0x20e836[_0x3b2c24(0x163)](0x0,_0x5c75ef)['toString']('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_0x3b0c18=a117_0x51cc;(function(_0xf1071d,_0x66ce7c){const _0x3c4a40=a117_0x51cc,_0x124f53=_0xf1071d();while(!![]){try{const _0x60c4fd=-parseInt(_0x3c4a40(0x19e))/0x1+-parseInt(_0x3c4a40(0x185))/0x2*(-parseInt(_0x3c4a40(0x197))/0x3)+-parseInt(_0x3c4a40(0x18b))/0x4+parseInt(_0x3c4a40(0x187))/0x5*(parseInt(_0x3c4a40(0x183))/0x6)+parseInt(_0x3c4a40(0x19a))/0x7*(-parseInt(_0x3c4a40(0x174))/0x8)+parseInt(_0x3c4a40(0x186))/0x9+parseInt(_0x3c4a40(0x18e))/0xa;if(_0x60c4fd===_0x66ce7c)break;else _0x124f53['push'](_0x124f53['shift']());}catch(_0x45f236){_0x124f53['push'](_0x124f53['shift']());}}}(a117_0x21fc,0xe5b4a));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';function a117_0x21fc(){const _0x14c713=['Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','str','Created\x20company\x20knowledge\x20base\x20','cookie','5255646OlJVce','write','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','84RXBMcx','kb_create_outcome_unknown','byteSize','file','1020404XFzody','company','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','title','appCode','POST','866224dWjgQJ','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','Knowledge-base\x20title','/admin/knowledge-base/create','contentHash','Company\x20knowledge\x20base\x20','kb_file_required','\x20for\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','trim','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','string','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','kb_verification_failed','6waqBaA','verified','2YFWEhV','9034722VqFewM','3966335OgJorh','rabetbase\x20kb\x20detail\x20--id\x20','kb_already_exists','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','2838164fPZTyF','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','4211480uGhurI','create','length','content','\x20--format\x20compress'];a117_0x21fc=function(){return _0x14c713;};return a117_0x21fc();}const CREATE_PATH=a117_0x3b0c18(0x177);function readCreateInput(_0xcb8ef7){const _0x7cd9e2=a117_0x3b0c18,_0x52164f=_0xcb8ef7[_0x7cd9e2(0x194)](_0x7cd9e2(0x171))[_0x7cd9e2(0x17e)]();if(!_0x52164f)throw kbError('kb_title_required','--title\x20is\x20required.');const _0xf50235=_0xcb8ef7[_0x7cd9e2(0x194)]('file')[_0x7cd9e2(0x17e)]();if(!_0xf50235)throw kbError(_0x7cd9e2(0x17a),'--file\x20is\x20required.',_0x7cd9e2(0x17c));return{'title':_0x52164f,'file':_0xf50235};}function a117_0x51cc(_0x200e87,_0x46f702){_0x200e87=_0x200e87-0x171;const _0x21fcc2=a117_0x21fc();let _0x51ccf5=_0x21fcc2[_0x200e87];return _0x51ccf5;}async function prepareCreate(_0x36e328){const _0xb4cf84=a117_0x3b0c18,_0x140bd9=readCreateInput(_0x36e328),_0x3a8a87=await readKbFile(_0x140bd9[_0xb4cf84(0x19d)]),_0xc018ea=await fetchAllCompanyKnowledgeBases(_0x36e328,{'title':_0x140bd9[_0xb4cf84(0x171)]}),_0x1a05aa=findExactCompanyKnowledgeBases(_0xc018ea,_0x36e328['appCode'],_0x140bd9[_0xb4cf84(0x171)]);if(_0x1a05aa[_0xb4cf84(0x190)]>0x0)throw kbError(_0xb4cf84(0x189),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x36e328['appCode']+'\x20with\x20title\x20'+_0x140bd9[_0xb4cf84(0x171)]+'.',_0xb4cf84(0x18c)+_0x1a05aa[0x0]['id']+_0xb4cf84(0x18d));return{..._0x140bd9,'content':_0x3a8a87};}function plannedAfter(_0x271cbf,_0x34ee2f){const _0x2f069b=a117_0x3b0c18;return{'scope':_0x2f069b(0x19f),'appCode':_0x271cbf[_0x2f069b(0x172)],'title':_0x34ee2f[_0x2f069b(0x171)],'contentByteSize':_0x34ee2f[_0x2f069b(0x191)][_0x2f069b(0x19c)],'contentHash':_0x34ee2f[_0x2f069b(0x191)][_0x2f069b(0x178)]};}function verifyCreatedState(_0x1c64ab,_0x485d95,_0x2dff6d){const _0x42f700=a117_0x3b0c18;assertCompanyKnowledgeBase(_0x2dff6d,_0x1c64ab[_0x42f700(0x172)],_0x2dff6d['id']);const _0x3da54e=inspectKbContent(_0x2dff6d['content']);if(_0x2dff6d[_0x42f700(0x171)]!==_0x485d95[_0x42f700(0x171)]||_0x3da54e[_0x42f700(0x178)]!==_0x485d95[_0x42f700(0x191)]['contentHash'])throw kbError(_0x42f700(0x182),_0x42f700(0x179)+_0x2dff6d['id']+_0x42f700(0x175),_0x42f700(0x193)+_0x2dff6d['id']+_0x42f700(0x199));return projectKb(_0x2dff6d);}export const kbCreate={'service':'kb','command':a117_0x3b0c18(0x18f),'description':a117_0x3b0c18(0x1a0),'risk':a117_0x3b0c18(0x198),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a117_0x3b0c18(0x171),'type':a117_0x3b0c18(0x180),'required':!![],'description':a117_0x3b0c18(0x176)},{'name':a117_0x3b0c18(0x19d),'type':a117_0x3b0c18(0x180),'required':!![],'description':a117_0x3b0c18(0x181)}],async 'validate'(_0x5d1024){readCreateInput(_0x5d1024);},async 'dryRun'(_0x4ea595){const _0xd1fb65=a117_0x3b0c18,_0x3992b5=await prepareCreate(_0x4ea595);return asDryRunResult({'operation':_0xd1fb65(0x18f),'selector':{'scope':_0xd1fb65(0x19f),'appCode':_0x4ea595['appCode'],'title':_0x3992b5['title']},'before':null,'after':plannedAfter(_0x4ea595,_0x3992b5),'dryRun':!![],'backend':{'method':_0xd1fb65(0x173),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':'rabetbase\x20kb\x20list\x20--title\x20'+JSON['stringify'](_0x3992b5['title'])+_0xd1fb65(0x192)}},{'method':_0xd1fb65(0x173),'url':CREATE_PATH});},async 'execute'(_0xc02c20){const _0x10cf80=a117_0x3b0c18,_0x1b8006=await prepareCreate(_0xc02c20);let _0x2e80e7,_0x47e9c4=![];try{const _0x2b23c9=await createEnterpriseKnowledgeBase(_0xc02c20[_0x10cf80(0x196)],{'appCode':_0xc02c20[_0x10cf80(0x172)],'title':_0x1b8006['title'],'content':_0x1b8006[_0x10cf80(0x191)][_0x10cf80(0x191)]});assertCompanyKnowledgeBase(_0x2b23c9,_0xc02c20[_0x10cf80(0x172)],_0x2b23c9['id']),_0x2e80e7=_0x2b23c9['id'];}catch(_0x400ab1){if(!isPlatformTransportFailure(_0x400ab1))throw _0x400ab1;_0x47e9c4=!![];}if(_0x2e80e7===undefined){const _0x402174=await verifyKbMutationReadback(_0x10cf80(0x18f),!![],()=>fetchAllCompanyKnowledgeBases(_0xc02c20,{'title':_0x1b8006[_0x10cf80(0x171)]})),_0x1b99b3=findExactCompanyKnowledgeBases(_0x402174,_0xc02c20['appCode'],_0x1b8006[_0x10cf80(0x171)]);if(_0x1b99b3['length']!==0x1)throw kbError(_0x10cf80(0x19b),_0x10cf80(0x17d)+_0x1b99b3[_0x10cf80(0x190)]+'.',_0x10cf80(0x17f));_0x2e80e7=_0x1b99b3[0x0]['id'];}const _0x23fb28=await verifyKbMutationReadback(_0x10cf80(0x18f),_0x47e9c4,()=>requireKb(_0xc02c20,_0x2e80e7)),_0x5b5e54=verifyCreatedState(_0xc02c20,_0x1b8006,_0x23fb28),_0x3b1871=_0x47e9c4?[_0x10cf80(0x18a)]:[];return{'ok':!![],'data':{'operation':_0x10cf80(0x18f),'selector':{'id':_0x5b5e54['id'],'scope':_0x10cf80(0x19f),'appCode':_0x5b5e54[_0x10cf80(0x172)]},'before':null,'after':_0x5b5e54,'dryRun':![],'backend':{'method':_0x10cf80(0x173),'path':CREATE_PATH},'warnings':_0x3b1871,'verification':{'status':_0x10cf80(0x184),'recoveredAfterUnknownResponse':_0x47e9c4,'lookupCommand':_0x10cf80(0x188)+_0x5b5e54['id']+_0x10cf80(0x192)}},'message':_0x10cf80(0x195)+_0x5b5e54['id']+_0x10cf80(0x17b)+_0x5b5e54[_0x10cf80(0x172)]};}};
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
- const a118_0x34e1f3=a118_0xaf4e;(function(_0x5cf3dc,_0x4c204f){const _0x6f8942=a118_0xaf4e,_0x5a5f7d=_0x5cf3dc();while(!![]){try{const _0x27e2c3=-parseInt(_0x6f8942(0x137))/0x1*(-parseInt(_0x6f8942(0x132))/0x2)+parseInt(_0x6f8942(0x13a))/0x3*(-parseInt(_0x6f8942(0x13c))/0x4)+-parseInt(_0x6f8942(0x134))/0x5+parseInt(_0x6f8942(0x146))/0x6+-parseInt(_0x6f8942(0x139))/0x7*(-parseInt(_0x6f8942(0x130))/0x8)+-parseInt(_0x6f8942(0x12b))/0x9*(parseInt(_0x6f8942(0x12c))/0xa)+parseInt(_0x6f8942(0x145))/0xb*(-parseInt(_0x6f8942(0x138))/0xc);if(_0x27e2c3===_0x4c204f)break;else _0x5a5f7d['push'](_0x5a5f7d['shift']());}catch(_0x46a6f6){_0x5a5f7d['push'](_0x5a5f7d['shift']());}}}(a118_0x502d,0x2ae49));function a118_0x502d(){const _0x354411=['company','rabetbase\x20kb\x20detail\x20--id\x20','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','kb_verification_failed','Company\x20knowledge-base\x20id','18sDqdBC','530710rEqCMZ','no_op','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','72HSXBxG','flag','14JxYrao','unshift','956165YCDVya','/admin/knowledge-base/delete','delete','31169BMfNpP','1985700JvBWjF','240163lYRfHg','325503WEJQUp','\x20--format\x20compress','4gxDNQj','number','kb_delete_outcome_unknown','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','kb_expected_version_invalid','POST','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','Company\x20knowledge\x20base\x20','11GOjLhv','1320456uVgCPh','Soft-deleted\x20company\x20knowledge\x20base\x20','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','appCode','snapshotHash','isSafeInteger'];a118_0x502d=function(){return _0x354411;};return a118_0x502d();}function a118_0xaf4e(_0x369b71,_0x127331){_0x369b71=_0x369b71-0x129;const _0x502dfc=a118_0x502d();let _0xaf4e6c=_0x502dfc[_0x369b71];return _0xaf4e6c;}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=a118_0x34e1f3(0x135),RAG_WARNING=a118_0x34e1f3(0x14e),NON_ATOMIC_WARNING=a118_0x34e1f3(0x143);function readExpectedVersion(_0x598a2e){const _0x514dc0=a118_0x34e1f3,_0x310990=_0x598a2e[_0x514dc0(0x131)]('expected-version');if(_0x310990===undefined)return undefined;const _0x14950b=Number(_0x310990);if(!Number[_0x514dc0(0x14b)](_0x14950b)||_0x14950b<0x0)throw kbError(_0x514dc0(0x141),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x14950b;}function noOpData(_0x4d507b,_0x1207e8,_0x667a0a){const _0x25018b=a118_0x34e1f3;return{'operation':_0x25018b(0x12d),'selector':{'id':_0x1207e8,'scope':'company','appCode':_0x4d507b[_0x25018b(0x149)]},'before':null,'after':null,'dryRun':_0x667a0a,'deleteCalled':![],'backend':{'method':_0x25018b(0x142),'path':DELETE_PATH},'warnings':[],'verification':{'status':'already_absent','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a118_0x34e1f3(0x136),'description':a118_0x34e1f3(0x12f),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a118_0x34e1f3(0x13d),'required':!![],'description':a118_0x34e1f3(0x12a)},{'name':'expected-version','type':a118_0x34e1f3(0x13d),'required':![],'description':a118_0x34e1f3(0x140)}],async 'validate'(_0x385a67){readKbId(_0x385a67),readExpectedVersion(_0x385a67),requireKbExplicitYes(_0x385a67);},async 'dryRun'(_0x2daaa4){const _0x5312bc=a118_0x34e1f3,_0x54c632=readKbId(_0x2daaa4),_0xd54c21=readExpectedVersion(_0x2daaa4),_0x5c8ef4=await getKbOrNull(_0x2daaa4,_0x54c632);if(!_0x5c8ef4)return asDryRunResult(noOpData(_0x2daaa4,_0x54c632,!![]),{'method':_0x5312bc(0x142),'url':DELETE_PATH});assertExpectedKbVersion(_0x5c8ef4,_0xd54c21);const _0x94987c=projectKb(_0x5c8ef4),_0x3ff36a=[RAG_WARNING];if(_0xd54c21!==undefined)_0x3ff36a[_0x5312bc(0x133)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x5312bc(0x136),'selector':{'id':_0x94987c['id'],'scope':_0x5312bc(0x14c),'appCode':_0x94987c['appCode']},'before':_0x94987c,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x5312bc(0x142),'path':DELETE_PATH},'warnings':_0x3ff36a,'verification':{'expectedVersion':_0xd54c21??null,'atomicCompareAndSet':![],'snapshotHash':_0x94987c[_0x5312bc(0x14a)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x5312bc(0x14d)+_0x94987c['id']+'\x20--format\x20compress'}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x7ebc25){const _0xfed8a7=a118_0x34e1f3;requireKbExplicitYes(_0x7ebc25);const _0x12fb1=readKbId(_0x7ebc25),_0x2684c6=readExpectedVersion(_0x7ebc25),_0x25b322=await getKbOrNull(_0x7ebc25,_0x12fb1);if(!_0x25b322)return{'ok':!![],'data':noOpData(_0x7ebc25,_0x12fb1,![]),'message':'Company\x20knowledge\x20base\x20'+_0x12fb1+'\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made'};assertExpectedKbVersion(_0x25b322,_0x2684c6);const _0x57e941=projectKb(_0x25b322);let _0x2a9492=![];try{await deleteEnterpriseKnowledgeBase(_0x7ebc25['cookie'],_0x12fb1);}catch(_0x469f50){if(!isPlatformTransportFailure(_0x469f50))throw _0x469f50;_0x2a9492=!![];}const _0x3896e5=await verifyKbMutationReadback(_0xfed8a7(0x136),_0x2a9492,()=>getKbOrNull(_0x7ebc25,_0x12fb1));if(_0x3896e5)throw kbError(_0x2a9492?_0xfed8a7(0x13e):_0xfed8a7(0x129),_0xfed8a7(0x144)+_0x12fb1+'\x20remains\x20readable\x20after\x20delete.',_0xfed8a7(0x148)+_0x12fb1+_0xfed8a7(0x12e));const _0x33fc39=[RAG_WARNING];if(_0x2684c6!==undefined)_0x33fc39[_0xfed8a7(0x133)](NON_ATOMIC_WARNING);return _0x2a9492&&_0x33fc39['unshift'](_0xfed8a7(0x13f)),{'ok':!![],'data':{'operation':'delete','selector':{'id':_0x57e941['id'],'scope':_0xfed8a7(0x14c),'appCode':_0x57e941['appCode']},'before':_0x57e941,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0xfed8a7(0x142),'path':DELETE_PATH},'warnings':_0x33fc39,'verification':{'status':'verified','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x2a9492,'lookupCommand':_0xfed8a7(0x14d)+_0x57e941['id']+_0xfed8a7(0x13b)}},'message':_0xfed8a7(0x147)+_0x57e941['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']};}};
@@ -1 +1 @@
1
- const a119_0x146a94=a119_0x11e9;(function(_0x2d3855,_0x5ef6e7){const _0x34b530=a119_0x11e9,_0x5c5dbd=_0x2d3855();while(!![]){try{const _0x4aa91a=parseInt(_0x34b530(0x10e))/0x1*(parseInt(_0x34b530(0x111))/0x2)+parseInt(_0x34b530(0x112))/0x3+-parseInt(_0x34b530(0x11a))/0x4*(parseInt(_0x34b530(0x119))/0x5)+parseInt(_0x34b530(0x116))/0x6*(-parseInt(_0x34b530(0x115))/0x7)+parseInt(_0x34b530(0x10d))/0x8+parseInt(_0x34b530(0x11c))/0x9*(parseInt(_0x34b530(0x110))/0xa)+-parseInt(_0x34b530(0x117))/0xb*(parseInt(_0x34b530(0x118))/0xc);if(_0x4aa91a===_0x5ef6e7)break;else _0x5c5dbd['push'](_0x5c5dbd['shift']());}catch(_0x3cd1cb){_0x5c5dbd['push'](_0x5c5dbd['shift']());}}}(a119_0x20b1,0x58105));function a119_0x11e9(_0x17a2d1,_0x1fc1ef){_0x17a2d1=_0x17a2d1-0x10d;const _0x20b126=a119_0x20b1();let _0x11e933=_0x20b126[_0x17a2d1];return _0x11e933;}function a119_0x20b1(){const _0x4ac1ff=['10906CSFfgk','1987479xIuweb','Company\x20knowledge-base\x20id','read','449057Hnnphy','42qSienh','110FULtXa','202656NIuvjW','45gjUYwE','151192DBcuOF','number','36GxMTpp','1800608vSDzkO','19UEkCzS','detail','819130UWqbaT'];a119_0x20b1=function(){return _0x4ac1ff;};return a119_0x20b1();}import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a119_0x146a94(0x10f),'description':'Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a119_0x146a94(0x114),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a119_0x146a94(0x11b),'required':!![],'description':a119_0x146a94(0x113)}],async 'validate'(_0x9cec8b){readKbId(_0x9cec8b);},async 'execute'(_0x277966){const _0x203c9f=readKbId(_0x277966),_0x556f84=await requireKb(_0x277966,_0x203c9f);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x556f84)},'message':'Loaded\x20company\x20knowledge\x20base\x20'+_0x203c9f};}};
1
+ const a133_0x5679ef=a133_0x3b81;function a133_0x3b81(_0x5ef88b,_0x2c28e1){_0x5ef88b=_0x5ef88b-0x129;const _0x2c07ad=a133_0x2c07();let _0x3b8180=_0x2c07ad[_0x5ef88b];return _0x3b8180;}(function(_0x54cd00,_0x5d5aa3){const _0x5e484d=a133_0x3b81,_0x14005e=_0x54cd00();while(!![]){try{const _0x158c5f=-parseInt(_0x5e484d(0x12a))/0x1+-parseInt(_0x5e484d(0x12b))/0x2+parseInt(_0x5e484d(0x131))/0x3+parseInt(_0x5e484d(0x12f))/0x4+-parseInt(_0x5e484d(0x134))/0x5+-parseInt(_0x5e484d(0x132))/0x6+parseInt(_0x5e484d(0x12e))/0x7;if(_0x158c5f===_0x5d5aa3)break;else _0x14005e['push'](_0x14005e['shift']());}catch(_0x2fc497){_0x14005e['push'](_0x14005e['shift']());}}}(a133_0x2c07,0x5e2f3));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a133_0x5679ef(0x129),'description':'Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a133_0x5679ef(0x12c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a133_0x5679ef(0x130),'required':!![],'description':a133_0x5679ef(0x133)}],async 'validate'(_0x28e90c){readKbId(_0x28e90c);},async 'execute'(_0x34b982){const _0x572053=a133_0x5679ef,_0x4965bb=readKbId(_0x34b982),_0x148dc1=await requireKb(_0x34b982,_0x4965bb);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x148dc1)},'message':_0x572053(0x12d)+_0x4965bb};}};function a133_0x2c07(){const _0x336d09=['number','275457tgeNoW','3559236UQMppV','Company\x20knowledge-base\x20id','1623875neiDHa','detail','335217brrVJZ','364920bAFYMv','read','Loaded\x20company\x20knowledge\x20base\x20','7328356czIzXa','2730840PdpadB'];a133_0x2c07=function(){return _0x336d09;};return a133_0x2c07();}
@@ -1 +1 @@
1
- (function(_0x53d853,_0x190355){const _0x50e0e1=a120_0x3e45,_0x321bd3=_0x53d853();while(!![]){try{const _0x2286fe=parseInt(_0x50e0e1(0xef))/0x1+parseInt(_0x50e0e1(0xec))/0x2+parseInt(_0x50e0e1(0xf1))/0x3*(parseInt(_0x50e0e1(0xf0))/0x4)+-parseInt(_0x50e0e1(0xed))/0x5+parseInt(_0x50e0e1(0xee))/0x6+-parseInt(_0x50e0e1(0xea))/0x7+parseInt(_0x50e0e1(0xeb))/0x8;if(_0x2286fe===_0x190355)break;else _0x321bd3['push'](_0x321bd3['shift']());}catch(_0xf2c98a){_0x321bd3['push'](_0x321bd3['shift']());}}}(a120_0x33da,0x343f8));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';import{kbDelete}from'../../commands/kb/delete.js';function a120_0x3e45(_0x417cf8,_0x1602cf){_0x417cf8=_0x417cf8-0xea;const _0x33dad5=a120_0x33da();let _0x3e45db=_0x33dad5[_0x417cf8];return _0x3e45db;}function a120_0x33da(){const _0x1d472f=['1878260xUHqnM','1099020mgtGtS','47673cTqvuR','124uGkHpd','429KdqNUJ','2306934fHuIEw','4631008UHCMux','210140Jcmtiy'];a120_0x33da=function(){return _0x1d472f;};return a120_0x33da();}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
1
+ function a134_0x4c76(_0x33353d,_0x2d58b5){_0x33353d=_0x33353d-0x18c;const _0x509eeb=a134_0x509e();let _0x4c769e=_0x509eeb[_0x33353d];return _0x4c769e;}(function(_0x4fe937,_0x3e9b1b){const _0x2d08d5=a134_0x4c76,_0x4f7cfc=_0x4fe937();while(!![]){try{const _0x18d829=parseInt(_0x2d08d5(0x194))/0x1+-parseInt(_0x2d08d5(0x18c))/0x2*(-parseInt(_0x2d08d5(0x190))/0x3)+parseInt(_0x2d08d5(0x18d))/0x4+-parseInt(_0x2d08d5(0x18e))/0x5+parseInt(_0x2d08d5(0x18f))/0x6*(-parseInt(_0x2d08d5(0x192))/0x7)+-parseInt(_0x2d08d5(0x196))/0x8*(parseInt(_0x2d08d5(0x191))/0x9)+-parseInt(_0x2d08d5(0x193))/0xa*(-parseInt(_0x2d08d5(0x195))/0xb);if(_0x18d829===_0x3e9b1b)break;else _0x4f7cfc['push'](_0x4f7cfc['shift']());}catch(_0x2dc50e){_0x4f7cfc['push'](_0x4f7cfc['shift']());}}}(a134_0x509e,0xf1e42));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';function a134_0x509e(){const _0x295712=['1627662bmgTAM','3orQRwJ','90QCHVXH','21lNjKqR','345500tfmmzW','156361QJapiV','440CNxxcm','512816uSzhPs','1811216bUohDh','3937056cwrQju','4912980KTErdB'];a134_0x509e=function(){return _0x295712;};return a134_0x509e();}import{kbUpdate}from'../../commands/kb/update.js';import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];