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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a142_0xe51666=a142_0x5cc5;function a142_0x523e(){const _0x374481=['config','high-risk-write','instant-api-policy','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','instant_api_policy_publish_outcome_unknown','4218950TtifgU','3079326BViURD','POST','3901599efQUBz','verified','policyRelativePath','before','expectedRevision','policyFilePath','101563JMNkKo','all','validation','1118594GjcSzA','local','configHash','cause','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','5dVgTXI','publish','Inspect\x20with\x20`','changeSummary','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','/publish','revision','8IiXksa','3ehswsE','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','appCode','instant_api_policy_publish_verification_unavailable','Published\x20Instant\x20API\x20policy\x20revision\x20','1391396yBpIsm','`;\x20do\x20not\x20resubmit\x20automatically.','727979IfNmpY'];a142_0x523e=function(){return _0x374481;};return a142_0x523e();}(function(_0x6d7e45,_0x29ab43){const _0x556d81=a142_0x5cc5,_0x31e23=_0x6d7e45();while(!![]){try{const _0xb2beb=parseInt(_0x556d81(0x123))/0x1+-parseInt(_0x556d81(0x126))/0x2*(-parseInt(_0x556d81(0x133))/0x3)+parseInt(_0x556d81(0x138))/0x4*(parseInt(_0x556d81(0x12b))/0x5)+-parseInt(_0x556d81(0x141))/0x6+parseInt(_0x556d81(0x13a))/0x7*(-parseInt(_0x556d81(0x132))/0x8)+parseInt(_0x556d81(0x143))/0x9+-parseInt(_0x556d81(0x140))/0xa;if(_0xb2beb===_0x29ab43)break;else _0x31e23['push'](_0x31e23['shift']());}catch(_0x54843d){_0x31e23['push'](_0x31e23['shift']());}}}(a142_0x523e,0x626a3));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a142_0x5cc5(_0x4b99fc,_0x48359e){_0x4b99fc=_0x4b99fc-0x11f;const _0x523ece=a142_0x523e();let _0x5cc5bc=_0x523ece[_0x4b99fc];return _0x5cc5bc;}async function preparePublish(_0x378d93){const _0x3e523b=a142_0x5cc5,{local:_0x18ebf5,config:_0x5b74e2}=await readFixedPolicy(_0x378d93),_0x31f15b=readChangeSummary(_0x378d93),_0x1e10fe=readExpectedRevision(_0x378d93),[_0xe891e6,_0x4db8bb]=await Promise[_0x3e523b(0x124)]([getCurrentInstantApiPolicy(_0x378d93['appCode']),validateInstantApiPolicy({'appCode':_0x378d93[_0x3e523b(0x135)],'config':_0x5b74e2})]);return assertExpectedRevision(_0xe891e6,_0x1e10fe),{'local':_0x18ebf5,'config':_0x5b74e2,'changeSummary':_0x31f15b,'expectedRevision':_0x1e10fe,'before':_0xe891e6,'validation':_0x4db8bb};}export const instantApiPolicyPublish={'service':a142_0xe51666(0x13d),'command':a142_0xe51666(0x12c),'description':a142_0xe51666(0x134),'risk':a142_0xe51666(0x13c),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a142_0xe51666(0x13e),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x312994){readChangeSummary(_0x312994),readExpectedRevision(_0x312994);},async 'dryRun'(_0x4df1ea){const _0x550fff=a142_0xe51666,_0x38a6db=await preparePublish(_0x4df1ea);return asDryRunResult({'operation':'publish','selector':{'appCode':_0x4df1ea[_0x550fff(0x135)]},'before':projectCurrentPolicy(_0x38a6db[_0x550fff(0x120)]),'after':{'revision':_0x38a6db[_0x550fff(0x120)]?_0x38a6db[_0x550fff(0x120)]['revision']+0x1:0x1,'configHash':_0x38a6db[_0x550fff(0x125)][_0x550fff(0x128)],'config':_0x38a6db[_0x550fff(0x125)]['normalizedConfig']},'filePath':_0x38a6db[_0x550fff(0x127)]['policyFilePath'],'relativePath':_0x38a6db[_0x550fff(0x127)][_0x550fff(0x11f)],'dryRun':!![],'backend':{'method':_0x550fff(0x142),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x38a6db['expectedRevision']),'verification':{'status':'planned','expectedRevision':_0x38a6db[_0x550fff(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':'POST','url':INSTANT_API_POLICY_BASE_PATH+_0x550fff(0x130)});},async 'execute'(_0x5bbe9e){const _0xfec329=a142_0xe51666,_0x9625c6=await preparePublish(_0x5bbe9e);let _0x347b5d=![];try{await publishInstantApiPolicy({'appCode':_0x5bbe9e[_0xfec329(0x135)],'config':_0x9625c6[_0xfec329(0x13b)],..._0x9625c6[_0xfec329(0x12e)]?{'changeSummary':_0x9625c6[_0xfec329(0x12e)]}:{}});}catch(_0x4a5f65){if(!isPlatformTransportFailure(_0x4a5f65))throw _0x4a5f65;_0x347b5d=!![];}let _0x2dedee;try{_0x2dedee=await getCurrentInstantApiPolicy(_0x5bbe9e[_0xfec329(0x135)]);}catch(_0x2fb268){const _0x7217d5=instantApiPolicyError(_0x347b5d?'instant_api_policy_publish_outcome_unknown':_0xfec329(0x136),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0xfec329(0x12d)+mutationLookupCommand()+_0xfec329(0x139));Object['defineProperty'](_0x7217d5,_0xfec329(0x129),{'value':_0x2fb268,'enumerable':![]});throw _0x7217d5;}const _0x5e18d9=_0x2dedee&&(_0x9625c6['before']===null||_0x2dedee[_0xfec329(0x131)]>_0x9625c6['before']['revision']),_0xb6ccd6=_0x2dedee?.[_0xfec329(0x128)]===_0x9625c6[_0xfec329(0x125)][_0xfec329(0x128)];if(!_0x2dedee||!_0x5e18d9||!_0xb6ccd6)throw instantApiPolicyError(_0x347b5d?_0xfec329(0x13f):'instant_api_policy_publish_verification_failed',_0xfec329(0x12a),'Inspect\x20with\x20`'+mutationLookupCommand()+_0xfec329(0x139));const _0x5688ba=[...expectedRevisionWarnings(_0x9625c6['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x347b5d&&_0x5688ba['push'](_0xfec329(0x12f)),{'ok':!![],'data':{'operation':_0xfec329(0x12c),'selector':{'appCode':_0x5bbe9e[_0xfec329(0x135)]},'before':projectCurrentPolicy(_0x9625c6[_0xfec329(0x120)]),'after':projectCurrentPolicy(_0x2dedee),'filePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x122)],'relativePath':_0x9625c6[_0xfec329(0x127)][_0xfec329(0x11f)],'dryRun':![],'backend':{'method':_0xfec329(0x142),'path':INSTANT_API_POLICY_BASE_PATH+_0xfec329(0x130)},'warnings':_0x5688ba,'verification':{'status':_0xfec329(0x144),'recoveredAfterUnknownResponse':_0x347b5d,'expectedRevision':_0x9625c6[_0xfec329(0x121)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0xfec329(0x137)+_0x2dedee[_0xfec329(0x131)]};}};
1
+ const a142_0x1ec2fe=a142_0x4863;(function(_0x40dcac,_0x5d7a85){const _0x27b93f=a142_0x4863,_0x1a87b9=_0x40dcac();while(!![]){try{const _0x4eef67=-parseInt(_0x27b93f(0xcd))/0x1+-parseInt(_0x27b93f(0xcb))/0x2*(parseInt(_0x27b93f(0xb2))/0x3)+-parseInt(_0x27b93f(0xc0))/0x4+-parseInt(_0x27b93f(0xb1))/0x5*(-parseInt(_0x27b93f(0xc7))/0x6)+parseInt(_0x27b93f(0xa8))/0x7*(parseInt(_0x27b93f(0xc8))/0x8)+-parseInt(_0x27b93f(0xce))/0x9*(parseInt(_0x27b93f(0xa4))/0xa)+parseInt(_0x27b93f(0xa7))/0xb;if(_0x4eef67===_0x5d7a85)break;else _0x1a87b9['push'](_0x1a87b9['shift']());}catch(_0x39f1c3){_0x1a87b9['push'](_0x1a87b9['shift']());}}}(a142_0x3de3,0x302ed));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a142_0x3de3(){const _0x213187=['POST','validation','appCode','policyFilePath','revision','Inspect\x20with\x20`','instant_api_policy_publish_outcome_unknown','verified','local','62752ZKHGHb','cause','publish','config','Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','before','push','12792BUbwvj','14704ukjnnt','high-risk-write','instant_api_policy_publish_verification_failed','19876lXJARm','normalizedConfig','243339EJaAtB','78417gVqYxv','130Fsioxo','all','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','1384889rVNRBw','959SHvpUh','changeSummary','/publish','configHash','expectedRevision','defineProperty','instant_api_policy_publish_verification_unavailable','policyRelativePath','`;\x20do\x20not\x20resubmit\x20automatically.','590uQqaKi','18sGUXRy','instant-api-policy','planned','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','Published\x20Instant\x20API\x20policy\x20revision\x20'];a142_0x3de3=function(){return _0x213187;};return a142_0x3de3();}import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,readChangeSummary,readExpectedRevision,readFixedPolicy,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';function a142_0x4863(_0x44b410,_0x4a6a06){_0x44b410=_0x44b410-0xa4;const _0x3de341=a142_0x3de3();let _0x4863d1=_0x3de341[_0x44b410];return _0x4863d1;}async function preparePublish(_0x146ab0){const _0x26942d=a142_0x4863,{local:_0x22f0b4,config:_0x37e977}=await readFixedPolicy(_0x146ab0),_0x5eb1f3=readChangeSummary(_0x146ab0),_0x4eaa6d=readExpectedRevision(_0x146ab0),[_0x3c5156,_0x351b5f]=await Promise[_0x26942d(0xa5)]([getCurrentInstantApiPolicy(_0x146ab0[_0x26942d(0xb9)]),validateInstantApiPolicy({'appCode':_0x146ab0[_0x26942d(0xb9)],'config':_0x37e977})]);return assertExpectedRevision(_0x3c5156,_0x4eaa6d),{'local':_0x22f0b4,'config':_0x37e977,'changeSummary':_0x5eb1f3,'expectedRevision':_0x4eaa6d,'before':_0x3c5156,'validation':_0x351b5f};}export const instantApiPolicyPublish={'service':a142_0x1ec2fe(0xb3),'command':a142_0x1ec2fe(0xc2),'description':a142_0x1ec2fe(0xa6),'risk':a142_0x1ec2fe(0xc9),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x656c7e){readChangeSummary(_0x656c7e),readExpectedRevision(_0x656c7e);},async 'dryRun'(_0x31a1f9){const _0x571dc3=a142_0x1ec2fe,_0x1b438f=await preparePublish(_0x31a1f9);return asDryRunResult({'operation':_0x571dc3(0xc2),'selector':{'appCode':_0x31a1f9[_0x571dc3(0xb9)]},'before':projectCurrentPolicy(_0x1b438f['before']),'after':{'revision':_0x1b438f[_0x571dc3(0xc5)]?_0x1b438f['before'][_0x571dc3(0xbb)]+0x1:0x1,'configHash':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xab)],'config':_0x1b438f[_0x571dc3(0xb8)][_0x571dc3(0xcc)]},'filePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xba)],'relativePath':_0x1b438f[_0x571dc3(0xbf)][_0x571dc3(0xaf)],'dryRun':!![],'backend':{'method':_0x571dc3(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':expectedRevisionWarnings(_0x1b438f['expectedRevision']),'verification':{'status':_0x571dc3(0xb4),'expectedRevision':_0x1b438f[_0x571dc3(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x571dc3(0xb7),'url':INSTANT_API_POLICY_BASE_PATH+_0x571dc3(0xaa)});},async 'execute'(_0x4d3b13){const _0x110ce9=a142_0x1ec2fe,_0x3ab42e=await preparePublish(_0x4d3b13);let _0x33e0dc=![];try{await publishInstantApiPolicy({'appCode':_0x4d3b13[_0x110ce9(0xb9)],'config':_0x3ab42e[_0x110ce9(0xc3)],..._0x3ab42e[_0x110ce9(0xa9)]?{'changeSummary':_0x3ab42e[_0x110ce9(0xa9)]}:{}});}catch(_0x430e79){if(!isPlatformTransportFailure(_0x430e79))throw _0x430e79;_0x33e0dc=!![];}let _0x341f66;try{_0x341f66=await getCurrentInstantApiPolicy(_0x4d3b13[_0x110ce9(0xb9)]);}catch(_0x33fc20){const _0x128e0b=instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xae),'The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x110ce9(0xbc)+mutationLookupCommand()+_0x110ce9(0xb0));Object[_0x110ce9(0xad)](_0x128e0b,_0x110ce9(0xc1),{'value':_0x33fc20,'enumerable':![]});throw _0x128e0b;}const _0x6f2d9e=_0x341f66&&(_0x3ab42e[_0x110ce9(0xc5)]===null||_0x341f66[_0x110ce9(0xbb)]>_0x3ab42e[_0x110ce9(0xc5)][_0x110ce9(0xbb)]),_0x273b7e=_0x341f66?.[_0x110ce9(0xab)]===_0x3ab42e[_0x110ce9(0xb8)]['configHash'];if(!_0x341f66||!_0x6f2d9e||!_0x273b7e)throw instantApiPolicyError(_0x33e0dc?_0x110ce9(0xbd):_0x110ce9(0xca),_0x110ce9(0xb5),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x110ce9(0xb0));const _0x2bac4b=[...expectedRevisionWarnings(_0x3ab42e[_0x110ce9(0xac)]),RUNTIME_CACHE_WARNING];return _0x33e0dc&&_0x2bac4b[_0x110ce9(0xc6)](_0x110ce9(0xc4)),{'ok':!![],'data':{'operation':'publish','selector':{'appCode':_0x4d3b13[_0x110ce9(0xb9)]},'before':projectCurrentPolicy(_0x3ab42e['before']),'after':projectCurrentPolicy(_0x341f66),'filePath':_0x3ab42e[_0x110ce9(0xbf)]['policyFilePath'],'relativePath':_0x3ab42e[_0x110ce9(0xbf)][_0x110ce9(0xaf)],'dryRun':![],'backend':{'method':_0x110ce9(0xb7),'path':INSTANT_API_POLICY_BASE_PATH+_0x110ce9(0xaa)},'warnings':_0x2bac4b,'verification':{'status':_0x110ce9(0xbe),'recoveredAfterUnknownResponse':_0x33e0dc,'expectedRevision':_0x3ab42e[_0x110ce9(0xac)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x110ce9(0xb6)+_0x341f66['revision']};}};
@@ -1 +1 @@
1
- const a143_0x1ee985=a143_0x477a;(function(_0x235ec7,_0x292660){const _0x371199=a143_0x477a,_0xa0bbd4=_0x235ec7();while(!![]){try{const _0x4779ab=parseInt(_0x371199(0x1ce))/0x1+parseInt(_0x371199(0x1ca))/0x2+-parseInt(_0x371199(0x1d1))/0x3+-parseInt(_0x371199(0x1c4))/0x4*(-parseInt(_0x371199(0x1cf))/0x5)+parseInt(_0x371199(0x1bf))/0x6*(parseInt(_0x371199(0x1cb))/0x7)+parseInt(_0x371199(0x1c6))/0x8+-parseInt(_0x371199(0x1c9))/0x9;if(_0x4779ab===_0x292660)break;else _0xa0bbd4['push'](_0xa0bbd4['shift']());}catch(_0x5302e0){_0xa0bbd4['push'](_0xa0bbd4['shift']());}}}(a143_0x5c66,0xe4f26));function a143_0x477a(_0x1bc95f,_0x30fc13){_0x1bc95f=_0x1bc95f-0x1ba;const _0x5c66b5=a143_0x5c66();let _0x477a93=_0x5c66b5[_0x1bc95f];return _0x477a93;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';function a143_0x5c66(){const _0x26e1f2=['revision','8122674RtoEqT','write','appCode','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','force','1661348FYnXFt','instant_api_policy_not_configured','30256srjkxp','pull','config','42112278aBvtoX','3668944eFkoBq','7NjgUgB','instant-api-policy','bool','781409LXRhYz','20MSdHkt','unchanged','53646yGspXI','action','policyRelativePath','configHash','policyFilePath'];a143_0x5c66=function(){return _0x26e1f2;};return a143_0x5c66();}import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x1ee985(0x1cc),'command':a143_0x1ee985(0x1c7),'description':a143_0x1ee985(0x1c2),'risk':a143_0x1ee985(0x1c0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x1acf33){requireForceConfirmation(_0x1acf33);},async 'execute'(_0x4c0939){const _0x5542a8=a143_0x1ee985;requireForceConfirmation(_0x4c0939);const _0x34c9be=await getCurrentInstantApiPolicy(_0x4c0939[_0x5542a8(0x1c1)]);if(!_0x34c9be)throw instantApiPolicyError(_0x5542a8(0x1c5),'Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x4c0939[_0x5542a8(0x1c1)]+'.','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.');const _0x1b6a2d=loadInstantApiPolicyLocalConfig(_0x4c0939[_0x5542a8(0x1c1)]),_0x2f65b5=await writeInstantApiPolicyConfigFile(_0x1b6a2d,_0x34c9be[_0x5542a8(0x1c8)],{'force':_0x4c0939[_0x5542a8(0x1cd)](_0x5542a8(0x1c3))});return{'ok':!![],'data':{'operation':_0x5542a8(0x1c7),'selector':{'appCode':_0x4c0939[_0x5542a8(0x1c1)],'revision':_0x34c9be[_0x5542a8(0x1be)]},'filePath':_0x1b6a2d[_0x5542a8(0x1bd)],'relativePath':_0x1b6a2d[_0x5542a8(0x1bb)],'action':_0x2f65b5[_0x5542a8(0x1ba)],'configHash':_0x34c9be[_0x5542a8(0x1bc)]},'message':(_0x2f65b5[_0x5542a8(0x1ba)]===_0x5542a8(0x1d0)?'Kept':'Pulled')+'\x20Instant\x20API\x20policy\x20revision\x20'+_0x34c9be[_0x5542a8(0x1be)]};}};
1
+ function a143_0x1d8f(_0x1df5c6,_0x3006a8){_0x1df5c6=_0x1df5c6-0x194;const _0x4d70f1=a143_0x4d70();let _0x1d8fcf=_0x4d70f1[_0x1df5c6];return _0x1d8fcf;}const a143_0x53331e=a143_0x1d8f;(function(_0x147924,_0x243ff9){const _0x130f88=a143_0x1d8f,_0x1ed246=_0x147924();while(!![]){try{const _0x570df5=parseInt(_0x130f88(0x1a7))/0x1*(-parseInt(_0x130f88(0x19e))/0x2)+parseInt(_0x130f88(0x1aa))/0x3*(parseInt(_0x130f88(0x1ac))/0x4)+-parseInt(_0x130f88(0x194))/0x5+-parseInt(_0x130f88(0x1a9))/0x6*(-parseInt(_0x130f88(0x1a1))/0x7)+parseInt(_0x130f88(0x19a))/0x8*(-parseInt(_0x130f88(0x1a4))/0x9)+-parseInt(_0x130f88(0x1a6))/0xa+parseInt(_0x130f88(0x197))/0xb;if(_0x570df5===_0x243ff9)break;else _0x1ed246['push'](_0x1ed246['shift']());}catch(_0x36b1d6){_0x1ed246['push'](_0x1ed246['shift']());}}}(a143_0x4d70,0xe7268));function a143_0x4d70(){const _0xa0cb1a=['1yEWfZs','instant-api-policy','6xogXen','173697OuyYHh','configHash','44LVHtDE','157770uSuwlK','Pulled','bool','18434053Fgobnc','config','action','835680wFhPwz','pull','Kept','revision','2049578DAdlsE','\x20Instant\x20API\x20policy\x20revision\x20','appCode','4879231EhlOum','Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','policyRelativePath','18VKzAik','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','7976900NGxVxK'];a143_0x4d70=function(){return _0xa0cb1a;};return a143_0x4d70();}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':a143_0x53331e(0x1a8),'command':a143_0x53331e(0x19b),'description':a143_0x53331e(0x1a2),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x6dc913){requireForceConfirmation(_0x6dc913);},async 'execute'(_0x5b8942){const _0x550e90=a143_0x53331e;requireForceConfirmation(_0x5b8942);const _0x721f21=await getCurrentInstantApiPolicy(_0x5b8942[_0x550e90(0x1a0)]);if(!_0x721f21)throw instantApiPolicyError('instant_api_policy_not_configured','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20'+_0x5b8942[_0x550e90(0x1a0)]+'.',_0x550e90(0x1a5));const _0x4ab022=loadInstantApiPolicyLocalConfig(_0x5b8942[_0x550e90(0x1a0)]),_0x264252=await writeInstantApiPolicyConfigFile(_0x4ab022,_0x721f21[_0x550e90(0x198)],{'force':_0x5b8942[_0x550e90(0x196)]('force')});return{'ok':!![],'data':{'operation':_0x550e90(0x19b),'selector':{'appCode':_0x5b8942[_0x550e90(0x1a0)],'revision':_0x721f21[_0x550e90(0x19d)]},'filePath':_0x4ab022['policyFilePath'],'relativePath':_0x4ab022[_0x550e90(0x1a3)],'action':_0x264252[_0x550e90(0x199)],'configHash':_0x721f21[_0x550e90(0x1ab)]},'message':(_0x264252[_0x550e90(0x199)]==='unchanged'?_0x550e90(0x19c):_0x550e90(0x195))+_0x550e90(0x19f)+_0x721f21[_0x550e90(0x19d)]};}};
@@ -1 +1 @@
1
- const a144_0x1b8185=a144_0x4fb6;(function(_0x295827,_0x8afc62){const _0x431b0e=a144_0x4fb6,_0x225209=_0x295827();while(!![]){try{const _0x1e442a=parseInt(_0x431b0e(0x19a))/0x1+-parseInt(_0x431b0e(0x195))/0x2*(parseInt(_0x431b0e(0x19f))/0x3)+-parseInt(_0x431b0e(0x19b))/0x4*(-parseInt(_0x431b0e(0x1a1))/0x5)+-parseInt(_0x431b0e(0x198))/0x6*(-parseInt(_0x431b0e(0x196))/0x7)+-parseInt(_0x431b0e(0x199))/0x8*(-parseInt(_0x431b0e(0x193))/0x9)+-parseInt(_0x431b0e(0x197))/0xa*(-parseInt(_0x431b0e(0x1a0))/0xb)+-parseInt(_0x431b0e(0x19e))/0xc;if(_0x1e442a===_0x8afc62)break;else _0x225209['push'](_0x225209['shift']());}catch(_0x3006c9){_0x225209['push'](_0x225209['shift']());}}}(a144_0x3b0e,0x22d19));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x4fb6(_0x115eac,_0x5bea5d){_0x115eac=_0x115eac-0x193;const _0x3b0e21=a144_0x3b0e();let _0x4fb675=_0x3b0e21[_0x115eac];return _0x4fb675;}function a144_0x3b0e(){const _0x1f2c66=['243tNapnX','823702EDeQzu','55445FGsuJl','999CrQCMw','Loaded\x20Instant\x20API\x20policy\x20revision\x20','5290nJSyjx','29960ULoKhP','30xIZYOb','162oifhmv','11752vzqiQZ','53027dAmkfi','52nApTQL','Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','read','4123044Dheyiq'];a144_0x3b0e=function(){return _0x1f2c66;};return a144_0x3b0e();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':'revision','description':a144_0x1b8185(0x19c),'risk':a144_0x1b8185(0x19d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x24e093){readRevision(_0x24e093);},async 'execute'(_0x1bba46){const _0x180ea5=a144_0x1b8185,_0x2d18a6=readRevision(_0x1bba46),_0x259326=await getInstantApiPolicyRevision(_0x1bba46['appCode'],_0x2d18a6);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x259326)},'message':_0x180ea5(0x194)+_0x2d18a6};}};
1
+ const a144_0xfab42d=a144_0x28c8;function a144_0x28c8(_0xdf436d,_0x1a65c2){_0xdf436d=_0xdf436d-0x127;const _0x5f51d0=a144_0x5f51();let _0x28c82b=_0x5f51d0[_0xdf436d];return _0x28c82b;}(function(_0x27428b,_0x28175b){const _0x5f55bd=a144_0x28c8,_0x289cbf=_0x27428b();while(!![]){try{const _0x56712=-parseInt(_0x5f55bd(0x128))/0x1*(-parseInt(_0x5f55bd(0x134))/0x2)+parseInt(_0x5f55bd(0x135))/0x3*(-parseInt(_0x5f55bd(0x12f))/0x4)+-parseInt(_0x5f55bd(0x131))/0x5+parseInt(_0x5f55bd(0x130))/0x6*(-parseInt(_0x5f55bd(0x12b))/0x7)+-parseInt(_0x5f55bd(0x12d))/0x8+-parseInt(_0x5f55bd(0x12e))/0x9+parseInt(_0x5f55bd(0x12a))/0xa*(parseInt(_0x5f55bd(0x132))/0xb);if(_0x56712===_0x28175b)break;else _0x289cbf['push'](_0x289cbf['shift']());}catch(_0x5a47d3){_0x289cbf['push'](_0x289cbf['shift']());}}}(a144_0x5f51,0x8d815));import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';function a144_0x5f51(){const _0x496215=['18HoZZcj','473720IdDdYe','11AELATj','appCode','1368196MsYjZE','5988UIEXCm','Loaded\x20Instant\x20API\x20policy\x20revision\x20','1eKnBzM','revision','21413690XBusWh','158837lzZZRt','read','6998024xLpvJt','6563268REwyxp','960kggIRV'];a144_0x5f51=function(){return _0x496215;};return a144_0x5f51();}export const instantApiPolicyRevision={'service':'instant-api-policy','command':a144_0xfab42d(0x129),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':a144_0xfab42d(0x12c),'requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x4e75fa){readRevision(_0x4e75fa);},async 'execute'(_0x4996cd){const _0x20a6f3=a144_0xfab42d,_0x4eab9b=readRevision(_0x4996cd),_0x165460=await getInstantApiPolicyRevision(_0x4996cd[_0x20a6f3(0x133)],_0x4eab9b);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x165460)},'message':_0x20a6f3(0x127)+_0x4eab9b};}};
@@ -1 +1 @@
1
- const a145_0x4145cf=a145_0x584f;function a145_0x584f(_0x57fc39,_0x55b3cf){_0x57fc39=_0x57fc39-0x112;const _0x5d3c67=a145_0x5d3c();let _0x584fc2=_0x5d3c67[_0x57fc39];return _0x584fc2;}(function(_0x14d9f5,_0x40f7bb){const _0x233b5e=a145_0x584f,_0x56b4af=_0x14d9f5();while(!![]){try{const _0x59e1ca=parseInt(_0x233b5e(0x113))/0x1*(-parseInt(_0x233b5e(0x11c))/0x2)+parseInt(_0x233b5e(0x118))/0x3*(parseInt(_0x233b5e(0x115))/0x4)+parseInt(_0x233b5e(0x114))/0x5+parseInt(_0x233b5e(0x119))/0x6+parseInt(_0x233b5e(0x112))/0x7*(parseInt(_0x233b5e(0x116))/0x8)+-parseInt(_0x233b5e(0x11f))/0x9*(parseInt(_0x233b5e(0x120))/0xa)+parseInt(_0x233b5e(0x117))/0xb*(-parseInt(_0x233b5e(0x11b))/0xc);if(_0x59e1ca===_0x40f7bb)break;else _0x56b4af['push'](_0x56b4af['shift']());}catch(_0x31c3c2){_0x56b4af['push'](_0x56b4af['shift']());}}}(a145_0x5d3c,0x5702b));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a145_0x5d3c(){const _0x1e8556=['200KfkBAP','appCode','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','7kTDbUp','106LYzxrg','826575SToetR','3364OYRbKN','1476208rVccrM','275ADWOCX','1299RlueQW','2002518ezTsnj','map','49656kvyEdD','8014HNfXkC','\x20Instant\x20API\x20policy\x20revision(s)','length','73422PsmLCI'];a145_0x5d3c=function(){return _0x1e8556;};return a145_0x5d3c();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':'revisions','description':a145_0x4145cf(0x122),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x5527f4){const _0x386b4e=a145_0x4145cf,_0x47c4cb=await listInstantApiPolicyRevisions(_0x5527f4[_0x386b4e(0x121)]);return{'ok':!![],'data':{'appCode':_0x5527f4[_0x386b4e(0x121)],'total':_0x47c4cb[_0x386b4e(0x11e)],'revisions':_0x47c4cb[_0x386b4e(0x11a)](projectRevisionSummary)},'message':'Found\x20'+_0x47c4cb[_0x386b4e(0x11e)]+_0x386b4e(0x11d)};}};
1
+ const a145_0x2bed73=a145_0x3224;(function(_0x3e37f1,_0x24ab64){const _0x3bca22=a145_0x3224,_0x55d1d8=_0x3e37f1();while(!![]){try{const _0x12f64a=parseInt(_0x3bca22(0x11b))/0x1*(-parseInt(_0x3bca22(0x124))/0x2)+-parseInt(_0x3bca22(0x11a))/0x3*(parseInt(_0x3bca22(0x125))/0x4)+parseInt(_0x3bca22(0x119))/0x5*(parseInt(_0x3bca22(0x127))/0x6)+parseInt(_0x3bca22(0x128))/0x7+parseInt(_0x3bca22(0x11e))/0x8+-parseInt(_0x3bca22(0x11f))/0x9+parseInt(_0x3bca22(0x11d))/0xa*(parseInt(_0x3bca22(0x126))/0xb);if(_0x12f64a===_0x24ab64)break;else _0x55d1d8['push'](_0x55d1d8['shift']());}catch(_0x34a87a){_0x55d1d8['push'](_0x55d1d8['shift']());}}}(a145_0x3b5f,0x57191));function a145_0x3224(_0x108961,_0x55c296){_0x108961=_0x108961-0x118;const _0x3b5f42=a145_0x3b5f();let _0x322415=_0x3b5f42[_0x108961];return _0x322415;}import{listInstantApiPolicyRevisions}from'../../core/api-client.js';function a145_0x3b5f(){const _0x3ff3ed=['instant-api-policy','10xbSTcZ','299184azunwm','2098503csvoLA','List\x20immutable\x20Instant\x20API\x20policy\x20revisions','map','revisions','appCode','2362MJfsFo','116IXUlXq','7505993Kziajm','174iaGXTr','1787548OCFGrg','length','46255dsiADU','47199XJRxHm','167SyKAev'];a145_0x3b5f=function(){return _0x3ff3ed;};return a145_0x3b5f();}import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevisions={'service':a145_0x2bed73(0x11c),'command':a145_0x2bed73(0x122),'description':a145_0x2bed73(0x120),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x47d36f){const _0x421831=a145_0x2bed73,_0xe1facb=await listInstantApiPolicyRevisions(_0x47d36f[_0x421831(0x123)]);return{'ok':!![],'data':{'appCode':_0x47d36f['appCode'],'total':_0xe1facb[_0x421831(0x118)],'revisions':_0xe1facb[_0x421831(0x121)](projectRevisionSummary)},'message':'Found\x20'+_0xe1facb[_0x421831(0x118)]+'\x20Instant\x20API\x20policy\x20revision(s)'};}};
@@ -1 +1 @@
1
- const a146_0x1ff20f=a146_0x589a;(function(_0x26d248,_0x5d37d3){const _0xf65dc6=a146_0x589a,_0x100531=_0x26d248();while(!![]){try{const _0xa22c2e=parseInt(_0xf65dc6(0x16d))/0x1+parseInt(_0xf65dc6(0x170))/0x2+-parseInt(_0xf65dc6(0x16e))/0x3+-parseInt(_0xf65dc6(0x16b))/0x4+-parseInt(_0xf65dc6(0x17f))/0x5*(parseInt(_0xf65dc6(0x174))/0x6)+parseInt(_0xf65dc6(0x178))/0x7+-parseInt(_0xf65dc6(0x160))/0x8*(-parseInt(_0xf65dc6(0x16c))/0x9);if(_0xa22c2e===_0x5d37d3)break;else _0x100531['push'](_0x100531['shift']());}catch(_0x900847){_0x100531['push'](_0x100531['shift']());}}}(a146_0x4b28,0x64be7));function a146_0x4b28(){const _0x219f9d=['Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.','high-risk-write','/rollback','777054ADQMLn','appCode','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','target','5705553XDbOJh','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','Inspect\x20with\x20`','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','revision','verified','all','10hzrfPJ','planned','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','instant-api-policy','expectedRevision','72fQxhbR','rollback','Rolled\x20Instant\x20API\x20policy\x20revision\x20','\x20forward\x20to\x20revision\x20','POST','configHash','instant_api_policy_rollback_verification_failed','before','defineProperty','`;\x20do\x20not\x20resubmit\x20automatically.','changeSummary','1755796tOoDzi','61848YzjlOY','465851hiHoOr','1086516RGnsQW','instant_api_policy_rollback_outcome_unknown','260016TWYNJs'];a146_0x4b28=function(){return _0x219f9d;};return a146_0x4b28();}import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';function a146_0x589a(_0x5cf1d8,_0xbc2fd6){_0x5cf1d8=_0x5cf1d8-0x15f;const _0x4b28aa=a146_0x4b28();let _0x589a46=_0x4b28aa[_0x5cf1d8];return _0x589a46;}async function prepareRollback(_0x59d1fb){const _0xe6b5cb=a146_0x589a,_0x260710=readRevision(_0x59d1fb),_0xe5db1b=readChangeSummary(_0x59d1fb),_0x34282f=readExpectedRevision(_0x59d1fb),[_0x214d7c,_0x2872c6]=await Promise[_0xe6b5cb(0x17e)]([getCurrentInstantApiPolicy(_0x59d1fb[_0xe6b5cb(0x175)]),getInstantApiPolicyRevision(_0x59d1fb[_0xe6b5cb(0x175)],_0x260710)]);if(!_0x214d7c)throw instantApiPolicyError('instant_api_policy_not_configured',_0xe6b5cb(0x17b)+_0x59d1fb['appCode']+'.');return assertExpectedRevision(_0x214d7c,_0x34282f),{'revision':_0x260710,'changeSummary':_0xe5db1b,'expectedRevision':_0x34282f,'before':_0x214d7c,'target':_0x2872c6};}export const instantApiPolicyRollback={'service':a146_0x1ff20f(0x182),'command':'rollback','description':a146_0x1ff20f(0x176),'risk':a146_0x1ff20f(0x172),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x1ff20f(0x179),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x244972){readRevision(_0x244972),readChangeSummary(_0x244972),readExpectedRevision(_0x244972);},async 'dryRun'(_0x1cdb77){const _0x4b93c1=a146_0x1ff20f,_0x2be3e0=await prepareRollback(_0x1cdb77);return asDryRunResult({'operation':_0x4b93c1(0x161),'selector':{'appCode':_0x1cdb77['appCode'],'sourceRevision':_0x2be3e0[_0x4b93c1(0x17c)]},'before':projectCurrentPolicy(_0x2be3e0[_0x4b93c1(0x167)]),'after':{'revision':_0x2be3e0[_0x4b93c1(0x167)][_0x4b93c1(0x17c)]+0x1,'sourceRevision':projectRevisionDetail(_0x2be3e0['target'])},'dryRun':!![],'backend':{'method':_0x4b93c1(0x164),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x2be3e0[_0x4b93c1(0x15f)]),'verification':{'status':_0x4b93c1(0x180),'expectedRevision':_0x2be3e0[_0x4b93c1(0x15f)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x4b93c1(0x164),'url':INSTANT_API_POLICY_BASE_PATH+_0x4b93c1(0x173)});},async 'execute'(_0x4b2a48){const _0x1624cc=a146_0x1ff20f,_0x33d03b=await prepareRollback(_0x4b2a48);let _0x220d50=![];try{await rollbackInstantApiPolicy({'appCode':_0x4b2a48[_0x1624cc(0x175)],'revision':_0x33d03b[_0x1624cc(0x17c)],..._0x33d03b[_0x1624cc(0x16a)]?{'changeSummary':_0x33d03b['changeSummary']}:{}});}catch(_0x32d0df){if(!isPlatformTransportFailure(_0x32d0df))throw _0x32d0df;_0x220d50=!![];}let _0x23a6b3;try{_0x23a6b3=await getCurrentInstantApiPolicy(_0x4b2a48['appCode']);}catch(_0x16153b){const _0x3b186d=instantApiPolicyError(_0x220d50?_0x1624cc(0x16f):'instant_api_policy_rollback_verification_unavailable','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','Inspect\x20with\x20`'+mutationLookupCommand()+_0x1624cc(0x169));Object[_0x1624cc(0x168)](_0x3b186d,'cause',{'value':_0x16153b,'enumerable':![]});throw _0x3b186d;}const _0x4fca07=_0x23a6b3&&_0x23a6b3[_0x1624cc(0x17c)]>_0x33d03b[_0x1624cc(0x167)][_0x1624cc(0x17c)],_0x58221e=_0x23a6b3?.[_0x1624cc(0x165)]===_0x33d03b[_0x1624cc(0x177)][_0x1624cc(0x165)];if(!_0x23a6b3||!_0x4fca07||!_0x58221e)throw instantApiPolicyError(_0x220d50?'instant_api_policy_rollback_outcome_unknown':_0x1624cc(0x166),_0x1624cc(0x181),_0x1624cc(0x17a)+mutationLookupCommand()+_0x1624cc(0x169));const _0x3d635c=[...expectedRevisionWarnings(_0x33d03b['expectedRevision']),RUNTIME_CACHE_WARNING];return _0x220d50&&_0x3d635c['push'](_0x1624cc(0x171)),{'ok':!![],'data':{'operation':_0x1624cc(0x161),'selector':{'appCode':_0x4b2a48['appCode'],'sourceRevision':_0x33d03b['revision']},'before':projectCurrentPolicy(_0x33d03b['before']),'after':projectCurrentPolicy(_0x23a6b3),'dryRun':![],'backend':{'method':_0x1624cc(0x164),'path':INSTANT_API_POLICY_BASE_PATH+_0x1624cc(0x173)},'warnings':_0x3d635c,'verification':{'status':_0x1624cc(0x17d),'recoveredAfterUnknownResponse':_0x220d50,'expectedRevision':_0x33d03b[_0x1624cc(0x15f)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1624cc(0x162)+_0x33d03b[_0x1624cc(0x17c)]+_0x1624cc(0x163)+_0x23a6b3[_0x1624cc(0x17c)]};}};
1
+ const a146_0x23445d=a146_0x47ab;(function(_0x57d389,_0xe5b920){const _0x105106=a146_0x47ab,_0x734a72=_0x57d389();while(!![]){try{const _0x1b7654=parseInt(_0x105106(0x132))/0x1*(-parseInt(_0x105106(0x12c))/0x2)+-parseInt(_0x105106(0x124))/0x3*(parseInt(_0x105106(0x137))/0x4)+parseInt(_0x105106(0x13c))/0x5*(parseInt(_0x105106(0x146))/0x6)+parseInt(_0x105106(0x145))/0x7+-parseInt(_0x105106(0x142))/0x8*(-parseInt(_0x105106(0x120))/0x9)+-parseInt(_0x105106(0x143))/0xa+parseInt(_0x105106(0x12e))/0xb;if(_0x1b7654===_0xe5b920)break;else _0x734a72['push'](_0x734a72['shift']());}catch(_0x4b3ed9){_0x734a72['push'](_0x734a72['shift']());}}}(a146_0x1cb0,0x1fc29));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';function a146_0x47ab(_0x519638,_0x3f983e){_0x519638=_0x519638-0x11e;const _0x1cb0ab=a146_0x1cb0();let _0x47ab3d=_0x1cb0ab[_0x519638];return _0x47ab3d;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{instantApiPolicyError}from'../../core/instant-api-policy/config.js';import{assertExpectedRevision,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG,expectedRevisionWarnings,INSTANT_API_POLICY_BASE_PATH,mutationLookupCommand,projectCurrentPolicy,projectRevisionDetail,readChangeSummary,readExpectedRevision,readRevision,REVISION_FLAG,RUNTIME_CACHE_WARNING}from'../../commands/instant-api-policy/shared.js';async function prepareRollback(_0x331ba7){const _0x36491a=a146_0x47ab,_0x17c85e=readRevision(_0x331ba7),_0x3fc641=readChangeSummary(_0x331ba7),_0x205a28=readExpectedRevision(_0x331ba7),[_0x36fe14,_0x529db1]=await Promise[_0x36491a(0x13b)]([getCurrentInstantApiPolicy(_0x331ba7[_0x36491a(0x12f)]),getInstantApiPolicyRevision(_0x331ba7[_0x36491a(0x12f)],_0x17c85e)]);if(!_0x36fe14)throw instantApiPolicyError(_0x36491a(0x13e),_0x36491a(0x13a)+_0x331ba7[_0x36491a(0x12f)]+'.');return assertExpectedRevision(_0x36fe14,_0x205a28),{'revision':_0x17c85e,'changeSummary':_0x3fc641,'expectedRevision':_0x205a28,'before':_0x36fe14,'target':_0x529db1};}function a146_0x1cb0(){const _0x48f881=['60vgeoaJ','/rollback','The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.','instant_api_policy_rollback_verification_failed','1800567mkEuFY','high-risk-write','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','revision','3nTBIbq','instant-api-policy','verified','target','instant_api_policy_rollback_verification_unavailable','Rolled\x20Instant\x20API\x20policy\x20revision\x20','push','Inspect\x20with\x20`','12NmIPTD','Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','446545cwmZTA','appCode','cause','expectedRevision','41198OHprrA','instant_api_policy_rollback_outcome_unknown','defineProperty','before','rollback','246572lkrujo','`;\x20do\x20not\x20resubmit\x20automatically.','planned','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','all','91570sCSDxa','\x20forward\x20to\x20revision\x20','instant_api_policy_not_configured','configHash','changeSummary','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','8vUNxsE','1500810SEQvNw','POST','1156421DTMHvX'];a146_0x1cb0=function(){return _0x48f881;};return a146_0x1cb0();}export const instantApiPolicyRollback={'service':a146_0x23445d(0x125),'command':a146_0x23445d(0x136),'description':a146_0x23445d(0x141),'risk':a146_0x23445d(0x121),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a146_0x23445d(0x12d),'flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x303acb){readRevision(_0x303acb),readChangeSummary(_0x303acb),readExpectedRevision(_0x303acb);},async 'dryRun'(_0x178c91){const _0x2f1d76=a146_0x23445d,_0x435309=await prepareRollback(_0x178c91);return asDryRunResult({'operation':_0x2f1d76(0x136),'selector':{'appCode':_0x178c91[_0x2f1d76(0x12f)],'sourceRevision':_0x435309[_0x2f1d76(0x123)]},'before':projectCurrentPolicy(_0x435309['before']),'after':{'revision':_0x435309[_0x2f1d76(0x135)][_0x2f1d76(0x123)]+0x1,'sourceRevision':projectRevisionDetail(_0x435309['target'])},'dryRun':!![],'backend':{'method':_0x2f1d76(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)},'warnings':expectedRevisionWarnings(_0x435309['expectedRevision']),'verification':{'status':_0x2f1d76(0x139),'expectedRevision':_0x435309['expectedRevision']??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x2f1d76(0x144),'url':INSTANT_API_POLICY_BASE_PATH+_0x2f1d76(0x147)});},async 'execute'(_0x4551d7){const _0x1ef506=a146_0x23445d,_0x388c2d=await prepareRollback(_0x4551d7);let _0x124d60=![];try{await rollbackInstantApiPolicy({'appCode':_0x4551d7[_0x1ef506(0x12f)],'revision':_0x388c2d['revision'],..._0x388c2d['changeSummary']?{'changeSummary':_0x388c2d[_0x1ef506(0x140)]}:{}});}catch(_0x2f8757){if(!isPlatformTransportFailure(_0x2f8757))throw _0x2f8757;_0x124d60=!![];}let _0x513e1f;try{_0x513e1f=await getCurrentInstantApiPolicy(_0x4551d7[_0x1ef506(0x12f)]);}catch(_0xa693cf){const _0x1aba43=instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x128),_0x1ef506(0x11e),'Inspect\x20with\x20`'+mutationLookupCommand()+_0x1ef506(0x138));Object[_0x1ef506(0x134)](_0x1aba43,_0x1ef506(0x130),{'value':_0xa693cf,'enumerable':![]});throw _0x1aba43;}const _0x3612a6=_0x513e1f&&_0x513e1f[_0x1ef506(0x123)]>_0x388c2d['before'][_0x1ef506(0x123)],_0x42b116=_0x513e1f?.['configHash']===_0x388c2d[_0x1ef506(0x127)][_0x1ef506(0x13f)];if(!_0x513e1f||!_0x3612a6||!_0x42b116)throw instantApiPolicyError(_0x124d60?_0x1ef506(0x133):_0x1ef506(0x11f),_0x1ef506(0x122),_0x1ef506(0x12b)+mutationLookupCommand()+_0x1ef506(0x138));const _0x3dc890=[...expectedRevisionWarnings(_0x388c2d[_0x1ef506(0x131)]),RUNTIME_CACHE_WARNING];return _0x124d60&&_0x3dc890[_0x1ef506(0x12a)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0x4551d7[_0x1ef506(0x12f)],'sourceRevision':_0x388c2d['revision']},'before':projectCurrentPolicy(_0x388c2d[_0x1ef506(0x135)]),'after':projectCurrentPolicy(_0x513e1f),'dryRun':![],'backend':{'method':_0x1ef506(0x144),'path':INSTANT_API_POLICY_BASE_PATH+_0x1ef506(0x147)},'warnings':_0x3dc890,'verification':{'status':_0x1ef506(0x126),'recoveredAfterUnknownResponse':_0x124d60,'expectedRevision':_0x388c2d[_0x1ef506(0x131)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x1ef506(0x129)+_0x388c2d['revision']+_0x1ef506(0x13d)+_0x513e1f[_0x1ef506(0x123)]};}};
@@ -1 +1 @@
1
- function a147_0x1df5(){const _0x5b0dc6=['change-summary','trim','instant_api_policy_force_confirmation_required',';\x20current\x20revision\x20is\x20','Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','boolean','instantApi','instant_api_policy_revision_invalid','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','8446496MjqRQT','number','revision','changeType','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','Positive\x20published\x20policy\x20revision','8156iYuKet','defaults','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','config','length','version','num','16105113FNCQXO','NaN','677861AcHPbp','createUserId','rules','str','instant_api_policy_expected_revision_invalid','12hxlvjP','policyId','Expected\x20revision\x20','instant_api_policy_revision_mismatch','1563flqksg','appCode','configHash','gmtCreate','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','string','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','bool','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','56068GfdGmh','updateUserId','/smartapi/instant-api-policy','flag','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','18755rdPIjN','isSafeInteger','expected-revision','--change-summary\x20cannot\x20exceed\x202000\x20characters.','operatorId','1598037jFfPRh','yes'];a147_0x1df5=function(){return _0x5b0dc6;};return a147_0x1df5();}const a147_0xee422f=a147_0x2949;function a147_0x2949(_0x34134a,_0x4f1c39){_0x34134a=_0x34134a-0x1ca;const _0x1df5f3=a147_0x1df5();let _0x2949cb=_0x1df5f3[_0x34134a];return _0x2949cb;}(function(_0x2695ae,_0x174d90){const _0x5b290f=a147_0x2949,_0x57bd8f=_0x2695ae();while(!![]){try{const _0x52ae5b=parseInt(_0x5b290f(0x1ff))/0x1+-parseInt(_0x5b290f(0x1da))/0x2+parseInt(_0x5b290f(0x1d1))/0x3*(-parseInt(_0x5b290f(0x1f6))/0x4)+-parseInt(_0x5b290f(0x1df))/0x5*(parseInt(_0x5b290f(0x1cd))/0x6)+parseInt(_0x5b290f(0x1e4))/0x7+-parseInt(_0x5b290f(0x1f0))/0x8+parseInt(_0x5b290f(0x1fd))/0x9;if(_0x52ae5b===_0x174d90)break;else _0x57bd8f['push'](_0x57bd8f['shift']());}catch(_0x4beb87){_0x57bd8f['push'](_0x57bd8f['shift']());}}}(a147_0x1df5,0x844f6));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0xee422f(0x1dc);export const RUNTIME_CACHE_WARNING=a147_0xee422f(0x1d7);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a147_0xee422f(0x1ef);export const FORCE_FLAG={'name':'force','type':a147_0xee422f(0x1ec),'default':![],'description':a147_0xee422f(0x1ea)};export const CHANGE_SUMMARY_FLAG={'name':a147_0xee422f(0x1e6),'type':a147_0xee422f(0x1d6),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':'revision','type':'number','required':!![],'description':a147_0xee422f(0x1f5)};export const EXPECTED_REVISION_FLAG={'name':a147_0xee422f(0x1e1),'type':a147_0xee422f(0x1f1),'required':![],'description':'Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured'};export function requireForceConfirmation(_0x445a42){const _0x1d8149=a147_0xee422f;if(!_0x445a42[_0x1d8149(0x1d8)]('force')||_0x445a42[_0x1d8149(0x1d8)](_0x1d8149(0x1e5)))return;throw instantApiPolicyError(_0x1d8149(0x1e8),_0x1d8149(0x1de),_0x1d8149(0x1f4));}export function readChangeSummary(_0xbb9032){const _0x4a91a7=a147_0xee422f,_0x2eef42=_0xbb9032[_0x4a91a7(0x1cb)](_0x4a91a7(0x1e6))[_0x4a91a7(0x1e7)]();if(!_0x2eef42)return undefined;if(_0x2eef42['length']>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x4a91a7(0x1e2));return _0x2eef42;}export function readRevision(_0x14691a){const _0x1ac9b5=a147_0xee422f,_0x56924e=_0x14691a[_0x1ac9b5(0x1fc)](_0x1ac9b5(0x1f2),Number[_0x1ac9b5(0x1fe)]);if(!Number[_0x1ac9b5(0x1e0)](_0x56924e)||_0x56924e<=0x0)throw instantApiPolicyError(_0x1ac9b5(0x1ee),_0x1ac9b5(0x1eb));return _0x56924e;}export function readExpectedRevision(_0x4fab4b){const _0x3cf432=a147_0xee422f;if(_0x4fab4b[_0x3cf432(0x1dd)](_0x3cf432(0x1e1))===undefined)return undefined;const _0x18e200=_0x4fab4b['num']('expected-revision',Number[_0x3cf432(0x1fe)]);if(!Number['isSafeInteger'](_0x18e200)||_0x18e200<0x0)throw instantApiPolicyError(_0x3cf432(0x1cc),_0x3cf432(0x1d5));return _0x18e200;}export function assertExpectedRevision(_0x431b1e,_0x469e36){const _0x5c9d22=a147_0xee422f;if(_0x469e36===undefined)return;const _0xdc7899=_0x431b1e?.[_0x5c9d22(0x1f2)]??0x0;if(_0xdc7899!==_0x469e36)throw instantApiPolicyError(_0x5c9d22(0x1d0),_0x5c9d22(0x1d9),_0x5c9d22(0x1cf)+_0x469e36+_0x5c9d22(0x1e9)+_0xdc7899+'.\x20Run\x20current\x20and\x20review\x20before\x20retrying.');}export async function readFixedPolicy(_0x49af0a){const _0x2d99b8=a147_0xee422f,_0x4bf3c0=loadInstantApiPolicyLocalConfig(_0x49af0a[_0x2d99b8(0x1d2)]),_0x1e8793=await readInstantApiPolicyConfigFile(_0x4bf3c0);return{'local':_0x4bf3c0,'config':_0x1e8793};}export function projectCurrentPolicy(_0x2d12b1){const _0x24c220=a147_0xee422f;if(!_0x2d12b1)return null;return{'id':_0x2d12b1['id'],'appCode':_0x2d12b1[_0x24c220(0x1d2)],'revision':_0x2d12b1['revision'],'configHash':_0x2d12b1[_0x24c220(0x1d3)],'enabled':_0x2d12b1['enabled'],'config':_0x2d12b1[_0x24c220(0x1f9)],'createUserId':_0x2d12b1[_0x24c220(0x200)]??null,'updateUserId':_0x2d12b1[_0x24c220(0x1db)]??null,'gmtCreate':_0x2d12b1[_0x24c220(0x1d4)]??null,'gmtModified':_0x2d12b1['gmtModified']??null};}export function projectRevisionSummary(_0x6e982a){const _0xd991d4=a147_0xee422f;return{'id':_0x6e982a['id'],'policyId':_0x6e982a[_0xd991d4(0x1ce)],'appCode':_0x6e982a['appCode'],'revision':_0x6e982a['revision'],'configHash':_0x6e982a[_0xd991d4(0x1d3)],'changeType':_0x6e982a[_0xd991d4(0x1f3)],'changeSummary':_0x6e982a['changeSummary']??null,'operatorId':_0x6e982a[_0xd991d4(0x1e3)]??null,'gmtCreate':_0x6e982a[_0xd991d4(0x1d4)]??null,'version':_0x6e982a[_0xd991d4(0x1f9)][_0xd991d4(0x1fb)],'defaultAction':_0x6e982a[_0xd991d4(0x1f9)][_0xd991d4(0x1f7)][_0xd991d4(0x1ed)],'ruleCount':_0x6e982a['config'][_0xd991d4(0x1ca)]?.[_0xd991d4(0x1fa)]??0x0};}export function projectRevisionDetail(_0xd73326){const _0x128537=a147_0xee422f;return{...projectRevisionSummary(_0xd73326),'config':_0xd73326[_0x128537(0x1f9)]};}export function expectedRevisionWarnings(_0x5b4c05){return _0x5b4c05===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x16e7cf=a147_0xee422f;return _0x16e7cf(0x1f8);}
1
+ function a147_0x1c41(_0x56f30e,_0x429d7a){_0x56f30e=_0x56f30e-0x164;const _0x754b2f=a147_0x754b();let _0x1c4129=_0x754b2f[_0x56f30e];return _0x1c4129;}const a147_0x53db13=a147_0x1c41;(function(_0x514c5f,_0x577c94){const _0x3910ae=a147_0x1c41,_0x1077de=_0x514c5f();while(!![]){try{const _0x2b702f=parseInt(_0x3910ae(0x186))/0x1+parseInt(_0x3910ae(0x192))/0x2+-parseInt(_0x3910ae(0x172))/0x3*(parseInt(_0x3910ae(0x18d))/0x4)+-parseInt(_0x3910ae(0x16d))/0x5+-parseInt(_0x3910ae(0x191))/0x6*(-parseInt(_0x3910ae(0x176))/0x7)+parseInt(_0x3910ae(0x179))/0x8+parseInt(_0x3910ae(0x16b))/0x9;if(_0x2b702f===_0x577c94)break;else _0x1077de['push'](_0x1077de['shift']());}catch(_0x8a3112){_0x1077de['push'](_0x1077de['shift']());}}}(a147_0x754b,0x73944));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a147_0x53db13(0x198);export const RUNTIME_CACHE_WARNING=a147_0x53db13(0x173);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a147_0x53db13(0x185);export const FORCE_FLAG={'name':a147_0x53db13(0x18c),'type':a147_0x53db13(0x165),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':'change-summary','type':'string','required':![],'description':a147_0x53db13(0x16c)};export const REVISION_FLAG={'name':'revision','type':a147_0x53db13(0x175),'required':!![],'description':a147_0x53db13(0x16f)};function a147_0x754b(){const _0x14d104=['1492alvNmo','changeSummary','enabled','str','123492QYXVlz','1791428SCzxKm','configHash','num','Expected\x20revision\x20','appCode','updateUserId','/smartapi/instant-api-policy','policyId','boolean','change-summary','version','instantApi','length','expected-revision','335556YZYZNV','Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)','3653615EWswml','flag','Positive\x20published\x20policy\x20revision','trim','config','6744VzOezc','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','defaults','number','63KgJLBc','rabetbase\x20instant-api-policy\x20current\x20--format\x20compress','yes','3405384YdtRsI','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','rules','instant_api_policy_force_confirmation_required','--change-summary\x20cannot\x20exceed\x202000\x20characters.','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','bool','revision','.\x20Run\x20current\x20and\x20review\x20before\x20retrying.','gmtModified','instant_api_policy_revision_invalid','Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','498730zpmbGt','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','NaN','isSafeInteger','changeType','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.','force'];a147_0x754b=function(){return _0x14d104;};return a147_0x754b();}export const EXPECTED_REVISION_FLAG={'name':a147_0x53db13(0x16a),'type':a147_0x53db13(0x175),'required':![],'description':a147_0x53db13(0x17e)};export function requireForceConfirmation(_0x5803eb){const _0x557043=a147_0x53db13;if(!_0x5803eb[_0x557043(0x17f)](_0x557043(0x18c))||_0x5803eb['bool'](_0x557043(0x178)))return;throw instantApiPolicyError(_0x557043(0x17c),_0x557043(0x187),_0x557043(0x184));}export function readChangeSummary(_0x26f911){const _0x2b587b=a147_0x53db13,_0x3ad2b0=_0x26f911[_0x2b587b(0x190)](_0x2b587b(0x166))[_0x2b587b(0x170)]();if(!_0x3ad2b0)return undefined;if(_0x3ad2b0[_0x2b587b(0x169)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x2b587b(0x17d));return _0x3ad2b0;}export function readRevision(_0x10d9d4){const _0x23e6c9=a147_0x53db13,_0x5b260f=_0x10d9d4[_0x23e6c9(0x194)](_0x23e6c9(0x180),Number[_0x23e6c9(0x188)]);if(!Number['isSafeInteger'](_0x5b260f)||_0x5b260f<=0x0)throw instantApiPolicyError(_0x23e6c9(0x183),_0x23e6c9(0x18b));return _0x5b260f;}export function readExpectedRevision(_0x31283d){const _0x3b7de2=a147_0x53db13;if(_0x31283d[_0x3b7de2(0x16e)](_0x3b7de2(0x16a))===undefined)return undefined;const _0x140fba=_0x31283d[_0x3b7de2(0x194)](_0x3b7de2(0x16a),Number['NaN']);if(!Number[_0x3b7de2(0x189)](_0x140fba)||_0x140fba<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x140fba;}export function assertExpectedRevision(_0x4504cd,_0x43cc5f){const _0x6eeb48=a147_0x53db13;if(_0x43cc5f===undefined)return;const _0xdce5df=_0x4504cd?.[_0x6eeb48(0x180)]??0x0;if(_0xdce5df!==_0x43cc5f)throw instantApiPolicyError('instant_api_policy_revision_mismatch',_0x6eeb48(0x17a),_0x6eeb48(0x195)+_0x43cc5f+';\x20current\x20revision\x20is\x20'+_0xdce5df+_0x6eeb48(0x181));}export async function readFixedPolicy(_0x10926d){const _0x2ae511=loadInstantApiPolicyLocalConfig(_0x10926d['appCode']),_0x5f2bf7=await readInstantApiPolicyConfigFile(_0x2ae511);return{'local':_0x2ae511,'config':_0x5f2bf7};}export function projectCurrentPolicy(_0x5a847a){const _0x305c42=a147_0x53db13;if(!_0x5a847a)return null;return{'id':_0x5a847a['id'],'appCode':_0x5a847a[_0x305c42(0x196)],'revision':_0x5a847a[_0x305c42(0x180)],'configHash':_0x5a847a[_0x305c42(0x193)],'enabled':_0x5a847a[_0x305c42(0x18f)],'config':_0x5a847a[_0x305c42(0x171)],'createUserId':_0x5a847a['createUserId']??null,'updateUserId':_0x5a847a[_0x305c42(0x197)]??null,'gmtCreate':_0x5a847a['gmtCreate']??null,'gmtModified':_0x5a847a[_0x305c42(0x182)]??null};}export function projectRevisionSummary(_0x1ca15c){const _0xe05b7c=a147_0x53db13;return{'id':_0x1ca15c['id'],'policyId':_0x1ca15c[_0xe05b7c(0x164)],'appCode':_0x1ca15c[_0xe05b7c(0x196)],'revision':_0x1ca15c['revision'],'configHash':_0x1ca15c['configHash'],'changeType':_0x1ca15c[_0xe05b7c(0x18a)],'changeSummary':_0x1ca15c[_0xe05b7c(0x18e)]??null,'operatorId':_0x1ca15c['operatorId']??null,'gmtCreate':_0x1ca15c['gmtCreate']??null,'version':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x167)],'defaultAction':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x174)][_0xe05b7c(0x168)],'ruleCount':_0x1ca15c[_0xe05b7c(0x171)][_0xe05b7c(0x17b)]?.['length']??0x0};}export function projectRevisionDetail(_0x1de31d){const _0x496ca1=a147_0x53db13;return{...projectRevisionSummary(_0x1de31d),'config':_0x1de31d[_0x496ca1(0x171)]};}export function expectedRevisionWarnings(_0x267f4f){return _0x267f4f===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){const _0x44179f=a147_0x53db13;return _0x44179f(0x177);}
@@ -1 +1 @@
1
- function a148_0x161f(){const _0x5931e6=['valid','221343YAHxhr','72ItNppM','policyRelativePath','validate','2EIlPjk','44ZYmMGJ','738521BHIwCH','appCode','496AUwErK','795hRLWdb','policyFilePath','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','7513430RRotfa','44442DyfmDN','configHash','normalizedConfig','2519508BFuFml','367957TxXdBf','12548JpSito','Validated\x20Instant\x20API\x20policy\x20for\x20','POST'];a148_0x161f=function(){return _0x5931e6;};return a148_0x161f();}const a148_0x282c1=a148_0x40f1;(function(_0x4e7a51,_0x3a1e2f){const _0x2bd973=a148_0x40f1,_0x10537d=_0x4e7a51();while(!![]){try{const _0x6b6439=parseInt(_0x2bd973(0x167))/0x1+parseInt(_0x2bd973(0x170))/0x2*(-parseInt(_0x2bd973(0x16c))/0x3)+parseInt(_0x2bd973(0x168))/0x4*(-parseInt(_0x2bd973(0x175))/0x5)+parseInt(_0x2bd973(0x16d))/0x6*(parseInt(_0x2bd973(0x172))/0x7)+parseInt(_0x2bd973(0x174))/0x8*(-parseInt(_0x2bd973(0x179))/0x9)+parseInt(_0x2bd973(0x178))/0xa+-parseInt(_0x2bd973(0x171))/0xb*(parseInt(_0x2bd973(0x166))/0xc);if(_0x6b6439===_0x3a1e2f)break;else _0x10537d['push'](_0x10537d['shift']());}catch(_0x4996eb){_0x10537d['push'](_0x10537d['shift']());}}}(a148_0x161f,0xa2c9c));import{validateInstantApiPolicy}from'../../core/api-client.js';import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';function a148_0x40f1(_0x40be89,_0xa33669){_0x40be89=_0x40be89-0x165;const _0x161f4f=a148_0x161f();let _0x40f1ec=_0x161f4f[_0x40be89];return _0x40f1ec;}export const instantApiPolicyValidate={'service':'instant-api-policy','command':'validate','description':a148_0x282c1(0x177),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x42fdc6){const _0x529f91=a148_0x282c1,{local:_0xa129d1,config:_0x2d2538}=await readFixedPolicy(_0x42fdc6),_0x56add1=await validateInstantApiPolicy({'appCode':_0x42fdc6[_0x529f91(0x173)],'config':_0x2d2538});return{'ok':!![],'data':{'operation':_0x529f91(0x16f),'selector':{'appCode':_0x42fdc6['appCode']},'filePath':_0xa129d1[_0x529f91(0x176)],'relativePath':_0xa129d1[_0x529f91(0x16e)],'valid':_0x56add1[_0x529f91(0x16b)],'configHash':_0x56add1[_0x529f91(0x17a)],'normalizedConfig':_0x56add1[_0x529f91(0x165)],'backend':{'method':_0x529f91(0x16a),'path':INSTANT_API_POLICY_BASE_PATH+'/validate'}},'message':_0x529f91(0x169)+_0x42fdc6[_0x529f91(0x173)]};}};
1
+ const a148_0x5bbb30=a148_0x26f3;function a148_0x26f3(_0x31ebac,_0x460d1e){_0x31ebac=_0x31ebac-0x162;const _0x2b96b4=a148_0x2b96();let _0x26f36f=_0x2b96b4[_0x31ebac];return _0x26f36f;}(function(_0x4f0431,_0x4ac4cd){const _0x178c9c=a148_0x26f3,_0x2b8523=_0x4f0431();while(!![]){try{const _0x3ec7ee=parseInt(_0x178c9c(0x177))/0x1+-parseInt(_0x178c9c(0x16f))/0x2+-parseInt(_0x178c9c(0x174))/0x3*(parseInt(_0x178c9c(0x165))/0x4)+-parseInt(_0x178c9c(0x170))/0x5+-parseInt(_0x178c9c(0x175))/0x6*(-parseInt(_0x178c9c(0x16e))/0x7)+-parseInt(_0x178c9c(0x162))/0x8*(parseInt(_0x178c9c(0x16b))/0x9)+-parseInt(_0x178c9c(0x16c))/0xa*(-parseInt(_0x178c9c(0x16a))/0xb);if(_0x3ec7ee===_0x4ac4cd)break;else _0x2b8523['push'](_0x2b8523['shift']());}catch(_0x52e2b8){_0x2b8523['push'](_0x2b8523['shift']());}}}(a148_0x2b96,0x26935));import{validateInstantApiPolicy}from'../../core/api-client.js';function a148_0x2b96(){const _0x50b160=['validate','49KoqaMd','403286MrMxVu','1333715RuUoOp','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','/validate','Validated\x20Instant\x20API\x20policy\x20for\x20','1731asSCPr','102318DSXCXl','POST','37028PSZgrd','184cqRQNb','normalizedConfig','read','1036hwKMOT','instant-api-policy','appCode','policyFilePath','configHash','7287401TTDXSJ','16848pdzEUg','10qKeeSa'];a148_0x2b96=function(){return _0x50b160;};return a148_0x2b96();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a148_0x5bbb30(0x166),'command':a148_0x5bbb30(0x16d),'description':a148_0x5bbb30(0x171),'risk':a148_0x5bbb30(0x164),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x193d16){const _0x562205=a148_0x5bbb30,{local:_0x2c69e1,config:_0x53b422}=await readFixedPolicy(_0x193d16),_0x32bbad=await validateInstantApiPolicy({'appCode':_0x193d16[_0x562205(0x167)],'config':_0x53b422});return{'ok':!![],'data':{'operation':'validate','selector':{'appCode':_0x193d16[_0x562205(0x167)]},'filePath':_0x2c69e1[_0x562205(0x168)],'relativePath':_0x2c69e1['policyRelativePath'],'valid':_0x32bbad['valid'],'configHash':_0x32bbad[_0x562205(0x169)],'normalizedConfig':_0x32bbad[_0x562205(0x163)],'backend':{'method':_0x562205(0x176),'path':INSTANT_API_POLICY_BASE_PATH+_0x562205(0x172)}},'message':_0x562205(0x173)+_0x193d16['appCode']};}};
@@ -1 +1 @@
1
- (function(_0x57dee9,_0x3cb47d){const _0xdab69f=a149_0x59d1,_0x4ab47e=_0x57dee9();while(!![]){try{const _0x4a1df6=-parseInt(_0xdab69f(0xaa))/0x1*(parseInt(_0xdab69f(0xa3))/0x2)+-parseInt(_0xdab69f(0xa5))/0x3+-parseInt(_0xdab69f(0xa9))/0x4+parseInt(_0xdab69f(0xa6))/0x5+parseInt(_0xdab69f(0xab))/0x6*(-parseInt(_0xdab69f(0xa7))/0x7)+-parseInt(_0xdab69f(0xa4))/0x8+-parseInt(_0xdab69f(0xac))/0x9*(-parseInt(_0xdab69f(0xa8))/0xa);if(_0x4a1df6===_0x3cb47d)break;else _0x4ab47e['push'](_0x4ab47e['shift']());}catch(_0x1c6db7){_0x4ab47e['push'](_0x4ab47e['shift']());}}}(a149_0x3adf,0x525b5));function a149_0x3adf(){const _0x1f4e25=['20080oaOaUe','1644556trodzI','369428pdHYjs','186drWajs','11394uVlWCD','2MjtLpo','5391160Yqwulp','1938591QIonCC','1366135HuinUb','85211kJzqwi'];a149_0x3adf=function(){return _0x1f4e25;};return a149_0x3adf();}import{issueReport}from'../../commands/issue/report.js';function a149_0x59d1(_0x254d9e,_0x1c9ba7){_0x254d9e=_0x254d9e-0xa3;const _0x3adf61=a149_0x3adf();let _0x59d15c=_0x3adf61[_0x254d9e];return _0x59d15c;}export const issueDefinitions=[issueReport];
1
+ function a149_0x2ae6(){const _0x69e791=['22ffChuc','6kbGByQ','643928IJnEdS','1272195cCXHgF','3474SQUsjO','198ACrPVB','3623412WixGRb','31518kggDew','327350cokqkW','1298038fNKcCK','520XyAuTE','3hXyZNx'];a149_0x2ae6=function(){return _0x69e791;};return a149_0x2ae6();}(function(_0x426cd7,_0x43c510){const _0x40994e=a149_0x4904,_0x1dabee=_0x426cd7();while(!![]){try{const _0x3ff8d0=parseInt(_0x40994e(0x19d))/0x1*(parseInt(_0x40994e(0x19e))/0x2)+-parseInt(_0x40994e(0x198))/0x3*(parseInt(_0x40994e(0x19b))/0x4)+-parseInt(_0x40994e(0x19c))/0x5+-parseInt(_0x40994e(0x19a))/0x6*(parseInt(_0x40994e(0x196))/0x7)+-parseInt(_0x40994e(0x197))/0x8*(-parseInt(_0x40994e(0x1a0))/0x9)+-parseInt(_0x40994e(0x1a1))/0xa*(parseInt(_0x40994e(0x199))/0xb)+parseInt(_0x40994e(0x19f))/0xc;if(_0x3ff8d0===_0x43c510)break;else _0x1dabee['push'](_0x1dabee['shift']());}catch(_0x2e299c){_0x1dabee['push'](_0x1dabee['shift']());}}}(a149_0x2ae6,0x3294e));function a149_0x4904(_0xe23313,_0x3e998e){_0xe23313=_0xe23313-0x196;const _0x2ae623=a149_0x2ae6();let _0x49042b=_0x2ae623[_0xe23313];return _0x49042b;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a150_0xb17021=a150_0x5389;(function(_0x1803a9,_0xc50d87){const _0x175397=a150_0x5389,_0x404592=_0x1803a9();while(!![]){try{const _0x4c26ea=parseInt(_0x175397(0xce))/0x1+-parseInt(_0x175397(0xb8))/0x2+parseInt(_0x175397(0xc2))/0x3*(-parseInt(_0x175397(0xc5))/0x4)+-parseInt(_0x175397(0xd6))/0x5*(parseInt(_0x175397(0xd5))/0x6)+-parseInt(_0x175397(0xcf))/0x7+-parseInt(_0x175397(0xca))/0x8*(parseInt(_0x175397(0xbc))/0x9)+parseInt(_0x175397(0xbf))/0xa*(parseInt(_0x175397(0xb4))/0xb);if(_0x4c26ea===_0xc50d87)break;else _0x404592['push'](_0x404592['shift']());}catch(_0x540a27){_0x404592['push'](_0x404592['shift']());}}}(a150_0x1ffa,0xa2256));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a150_0x5389(_0x328bba,_0xb569c3){_0x328bba=_0x328bba-0xb4;const _0x1ffa9d=a150_0x1ffa();let _0x53896c=_0x1ffa9d[_0x328bba];return _0x53896c;}export const NUDGE_OPT_OUT_ENV=a150_0xb17021(0xba);const NUDGE_SUPPRESSED_CODES=new Set([a150_0xb17021(0xcd),'auth_required',a150_0xb17021(0xbe),a150_0xb17021(0xd2),a150_0xb17021(0xd1),a150_0xb17021(0xd8),a150_0xb17021(0xd3),a150_0xb17021(0xb5)]),defaultWriter=_0x5f3fc3=>{const _0xa68a0e=a150_0xb17021;process['stderr'][_0xa68a0e(0xbd)](_0x5f3fc3);};export function shouldNudgeForError(_0x1529dc,_0x151a81){const _0x1cfab7=a150_0xb17021;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x151a81[_0x1cfab7(0xb7)]===_0x1cfab7(0xb9)&&_0x151a81[_0x1cfab7(0xc3)]===_0x1cfab7(0xbb))return![];if(_0x1529dc instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1cfab7(0xc1)](_0x1529dc[_0x1cfab7(0xd7)]);return!![];}export function printIssueReportNudgeForError(_0x27dc1c,_0x14e828,_0x105555=defaultWriter){if(!shouldNudgeForError(_0x27dc1c,_0x14e828))return;const _0x5949c6=buildSuggestedTitle(_0x27dc1c,_0x14e828);_0x105555(formatNudge(_0x5949c6));}function buildSuggestedTitle(_0xb9f781,_0x445775){const _0x1df2c3=a150_0xb17021,_0x40c167=_0xb9f781 instanceof Error?_0xb9f781[_0x1df2c3(0xc4)]:String(_0xb9f781),_0x474d33=_0x40c167[_0x1df2c3(0xc8)](/[\r\n]+/g,'\x20')[_0x1df2c3(0xc8)](/\s+/g,'\x20')[_0x1df2c3(0xcc)]()[_0x1df2c3(0xc7)](0x0,0x78)[_0x1df2c3(0xc8)](/"/g,'\x5c\x22'),_0x995a20=CLI_BIN_NAME+'\x20'+_0x445775[_0x1df2c3(0xb7)]+'\x20'+_0x445775[_0x1df2c3(0xc3)];return _0x474d33[_0x1df2c3(0xd0)]>0x0?_0x995a20+':\x20'+_0x474d33:_0x995a20;}function formatNudge(_0xcb58d6){const _0x7a3542=a150_0xb17021;return['',_0x7a3542(0xc6)+CLI_BIN_NAME+_0x7a3542(0xcb),'\x20\x20'+CLI_BIN_NAME+_0x7a3542(0xc0),_0x7a3542(0xc9)+_0xcb58d6+'\x22\x20\x5c',_0x7a3542(0xd9),_0x7a3542(0xb6),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x7a3542(0xd4)]('\x0a');}function a150_0x1ffa(){const _0xc3fdd9=['join','6ZduMuo','3927895BHwhwZ','code','flag_missing','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','33153615tPmQsv','network_error','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','service','1685024dLIDcY','issue','RABETBASE_DISABLE_ISSUE_NUDGE','report','6252813CmvDeK','write','config_missing','10qUqabj','\x20issue\x20report\x20\x5c','has','524679kaHKWL','command','message','12ICbOWY','Hit\x20a\x20','slice','replace','\x20\x20\x20\x20--title\x20\x22','8JIMNnW','\x20bug?\x20Help\x20us\x20fix\x20it:','trim','cancelled','505545mfkrUO','54831OPENzU','length','unknown_command','not_in_project','validation_error'];a150_0x1ffa=function(){return _0xc3fdd9;};return a150_0x1ffa();}
1
+ function a150_0x19b3(){const _0x175035=['report','command','issue','1035RqpWeZ','401652Qbcmxt','1734AvMbkz','\x20\x20\x20\x20--title\x20\x22','message','write','service','validation_error','63710oNoYRG','unknown_command','168292agWRzX','not_in_project','=1\x20to\x20silence\x20this\x20hint.','3514gTsjKk','\x20\x20Set\x20','replace','\x20bug?\x20Help\x20us\x20fix\x20it:','\x22\x20\x5c','has','2017575hGENPk','slice','170872zuXvGe','join','config_missing','4dSzNLC','1172748PqRdWN','trim','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','auth_required'];a150_0x19b3=function(){return _0x175035;};return a150_0x19b3();}function a150_0x828a(_0x14ea65,_0x44abf8){_0x14ea65=_0x14ea65-0x1d0;const _0x19b301=a150_0x19b3();let _0x828a12=_0x19b301[_0x14ea65];return _0x828a12;}const a150_0x405c1f=a150_0x828a;(function(_0x2c411e,_0x43c9c8){const _0x2d4c05=a150_0x828a,_0x388f5c=_0x2c411e();while(!![]){try{const _0x79b805=-parseInt(_0x2d4c05(0x1ee))/0x1*(-parseInt(_0x2d4c05(0x1e0))/0x2)+parseInt(_0x2d4c05(0x1ef))/0x3+parseInt(_0x2d4c05(0x1d7))/0x4+parseInt(_0x2d4c05(0x1e9))/0x5+-parseInt(_0x2d4c05(0x1d8))/0x6*(parseInt(_0x2d4c05(0x1e3))/0x7)+-parseInt(_0x2d4c05(0x1eb))/0x8+parseInt(_0x2d4c05(0x1d6))/0x9*(-parseInt(_0x2d4c05(0x1de))/0xa);if(_0x79b805===_0x43c9c8)break;else _0x388f5c['push'](_0x388f5c['shift']());}catch(_0x2c0032){_0x388f5c['push'](_0x388f5c['shift']());}}}(a150_0x19b3,0x51226));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a150_0x405c1f(0x1d0);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a150_0x405c1f(0x1d2),a150_0x405c1f(0x1ed),a150_0x405c1f(0x1e1),a150_0x405c1f(0x1df),'flag_missing',a150_0x405c1f(0x1dd),a150_0x405c1f(0x1d1)]),defaultWriter=_0x1cdd48=>{const _0x666e04=a150_0x405c1f;process['stderr'][_0x666e04(0x1db)](_0x1cdd48);};export function shouldNudgeForError(_0xb0c09d,_0x10fe3e){const _0x329a3a=a150_0x405c1f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x10fe3e[_0x329a3a(0x1dc)]===_0x329a3a(0x1d5)&&_0x10fe3e[_0x329a3a(0x1d4)]===_0x329a3a(0x1d3))return![];if(_0xb0c09d instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x329a3a(0x1e8)](_0xb0c09d['code']);return!![];}export function printIssueReportNudgeForError(_0x47826e,_0x553867,_0x40c709=defaultWriter){if(!shouldNudgeForError(_0x47826e,_0x553867))return;const _0x1b1b36=buildSuggestedTitle(_0x47826e,_0x553867);_0x40c709(formatNudge(_0x1b1b36));}function buildSuggestedTitle(_0x93dce6,_0x4642df){const _0x1c5dce=a150_0x405c1f,_0x1e64aa=_0x93dce6 instanceof Error?_0x93dce6[_0x1c5dce(0x1da)]:String(_0x93dce6),_0x2a7226=_0x1e64aa[_0x1c5dce(0x1e5)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1c5dce(0x1f0)]()[_0x1c5dce(0x1ea)](0x0,0x78)[_0x1c5dce(0x1e5)](/"/g,'\x5c\x22'),_0x5843fe=CLI_BIN_NAME+'\x20'+_0x4642df[_0x1c5dce(0x1dc)]+'\x20'+_0x4642df['command'];return _0x2a7226['length']>0x0?_0x5843fe+':\x20'+_0x2a7226:_0x5843fe;}function formatNudge(_0x4a7398){const _0x18cf97=a150_0x405c1f;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x18cf97(0x1e6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x18cf97(0x1d9)+_0x4a7398+_0x18cf97(0x1e7),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x18cf97(0x1e4)+NUDGE_OPT_OUT_ENV+_0x18cf97(0x1e2),''][_0x18cf97(0x1ec)]('\x0a');}
@@ -1 +1 @@
1
- const a151_0x4bea7b=a151_0x1ef5;(function(_0xf787f1,_0xc0349e){const _0x33ef6d=a151_0x1ef5,_0x58c02e=_0xf787f1();while(!![]){try{const _0x43b291=-parseInt(_0x33ef6d(0x113))/0x1*(-parseInt(_0x33ef6d(0x108))/0x2)+-parseInt(_0x33ef6d(0x10d))/0x3+parseInt(_0x33ef6d(0x109))/0x4+-parseInt(_0x33ef6d(0x10b))/0x5*(parseInt(_0x33ef6d(0x102))/0x6)+parseInt(_0x33ef6d(0xf9))/0x7+parseInt(_0x33ef6d(0x105))/0x8+-parseInt(_0x33ef6d(0xf8))/0x9*(parseInt(_0x33ef6d(0xfd))/0xa);if(_0x43b291===_0xc0349e)break;else _0x58c02e['push'](_0x58c02e['shift']());}catch(_0x1ab462){_0x58c02e['push'](_0x58c02e['shift']());}}}(a151_0x49c8,0xc616c));import{existsSync}from'node:fs';function a151_0x1ef5(_0x34a46f,_0x3c4a0d){_0x34a46f=_0x34a46f-0xec;const _0x49c8bb=a151_0x49c8();let _0x1ef5ac=_0x49c8bb[_0x34a46f];return _0x1ef5ac;}import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a151_0x49c8(){const _0x57a525=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Issue\x20description\x20cannot\x20be\x20empty.','otel://','str','Platform\x20issue\x20reported\x20(','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','description','description-file','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','flagMissing','truncated:\x20original\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','push','compress','title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','965628kLBtBG','1307418tAnKDz','write','report','redactionKinds','50opCfkH','\x20secret(s):\x20','utf8','string','issue.description_redactions','6goyfIt','message','redactions:\x20','696720nHphtm','File\x20not\x20found:\x20','join','4dyRjpY','1815412cwJfdF','descriptionFilePath','685085pidAwX','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','1654368WwqUfM','issue.description_truncated','sanitize','issue.description','trim','descriptionSource:\x20','654294qYdtuN','length','descriptionFile:\x20','POST','file','truncated','issue','descriptionSource','apiError','Failed\x20to\x20report\x20platform\x20issue:\x20','redactionCount','validation','Platform\x20issue\x20reported','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','One-line\x20issue\x20summary','truncated\x20from\x20','cwd','originalBytes'];a151_0x49c8=function(){return _0x57a525;};return a151_0x49c8();}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a151_0x4bea7b(0xef);export const issueReport={'service':a151_0x4bea7b(0x119),'command':a151_0x4bea7b(0xfb),'description':a151_0x4bea7b(0xed),'risk':a151_0x4bea7b(0xfa),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0x4bea7b(0xf5),'flags':[{'name':a151_0x4bea7b(0xf6),'type':a151_0x4bea7b(0x100),'required':!![],'description':a151_0x4bea7b(0x121)},{'name':a151_0x4bea7b(0xee),'type':a151_0x4bea7b(0x100),'description':a151_0x4bea7b(0xec)},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0x4bea7b(0x100),'description':a151_0x4bea7b(0xf0)}],async 'validate'(_0x53fcfa){const _0x3d15c0=a151_0x4bea7b,_0x1adf42=_0x53fcfa[_0x3d15c0(0x128)](_0x3d15c0(0xf6))[_0x3d15c0(0x111)](),_0x24fcdd=_0x53fcfa[_0x3d15c0(0x128)](_0x3d15c0(0xee))[_0x3d15c0(0x111)](),_0xc95451=_0x53fcfa[_0x3d15c0(0x128)](DESCRIPTION_FILE_FLAG)[_0x3d15c0(0x111)]();if(!_0x1adf42)throw CliErrors[_0x3d15c0(0xf1)](_0x3d15c0(0xf6),_0x3d15c0(0xf7));const _0x5c28a8=_0x24fcdd[_0x3d15c0(0x114)]>0x0,_0x5282e2=_0xc95451[_0x3d15c0(0x114)]>0x0;if(_0x5c28a8===_0x5282e2)throw CliErrors[_0x3d15c0(0x11e)]('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(_0x5282e2){const _0xcbf83=resolve(process[_0x3d15c0(0x123)](),_0xc95451);if(!existsSync(_0xcbf83))throw CliErrors[_0x3d15c0(0x11e)](_0x3d15c0(0x106)+_0xcbf83);}},async 'dryRun'(_0x21d102){const _0x918fcf=a151_0x4bea7b,_0x3b80ea=await prepareIssueReport(_0x21d102);return{'method':_0x918fcf(0x116),'url':_0x918fcf(0x127)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3b80ea[_0x918fcf(0xf6)],'issue.description':_0x3b80ea[_0x918fcf(0xee)],'issue.description_original_bytes':_0x3b80ea[_0x918fcf(0x10f)][_0x918fcf(0x124)],'issue.description_truncated':_0x3b80ea[_0x918fcf(0x10f)][_0x918fcf(0x118)],'issue.description_redactions':_0x3b80ea[_0x918fcf(0x10f)][_0x918fcf(0x11d)],'issue.description_redaction_kinds':_0x3b80ea[_0x918fcf(0x10f)]['redactionKinds'][_0x918fcf(0x107)](',')}},'description':[_0x918fcf(0x10c),_0x918fcf(0x112)+_0x3b80ea[_0x918fcf(0x11a)],_0x3b80ea[_0x918fcf(0x10a)]?_0x918fcf(0x115)+_0x3b80ea[_0x918fcf(0x10a)]:null,_0x3b80ea[_0x918fcf(0x10f)][_0x918fcf(0x118)]?_0x918fcf(0xf2)+_0x3b80ea['sanitize'][_0x918fcf(0x124)]+'\x20bytes':null,_0x3b80ea['sanitize'][_0x918fcf(0x11d)]>0x0?_0x918fcf(0x104)+_0x3b80ea[_0x918fcf(0x10f)][_0x918fcf(0x11d)]+'\x20('+_0x3b80ea['sanitize'][_0x918fcf(0xfc)][_0x918fcf(0x107)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x23a4f8){const _0x28fbc3=a151_0x4bea7b,_0x58bfce=await prepareIssueReport(_0x23a4f8);try{await sendPlatformIssueCollectLog({'title':_0x58bfce['title'],'description':_0x58bfce[_0x28fbc3(0xee)],'sanitize':{'originalBytes':_0x58bfce[_0x28fbc3(0x10f)][_0x28fbc3(0x124)],'truncated':_0x58bfce['sanitize']['truncated'],'redactionCount':_0x58bfce[_0x28fbc3(0x10f)]['redactionCount'],'redactionKinds':_0x58bfce[_0x28fbc3(0x10f)][_0x28fbc3(0xfc)]}});}catch(_0xc7d217){throw CliErrors[_0x28fbc3(0x11b)](_0x28fbc3(0x11c)+(_0xc7d217 instanceof Error?_0xc7d217[_0x28fbc3(0x103)]:String(_0xc7d217)),_0x28fbc3(0xf3));}return{'ok':!![],'message':buildResultMessage(_0x58bfce[_0x28fbc3(0x10f)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x28fbc3(0x110),'issue.description_original_bytes',_0x28fbc3(0x10e),_0x28fbc3(0x101),'issue.description_redaction_kinds'],'issue':{'title':_0x58bfce[_0x28fbc3(0xf6)],'descriptionLength':_0x58bfce[_0x28fbc3(0xee)][_0x28fbc3(0x114)],'descriptionSource':_0x58bfce[_0x28fbc3(0x11a)],..._0x58bfce[_0x28fbc3(0x10a)]?{'descriptionFile':_0x58bfce[_0x28fbc3(0x10a)]}:{},'sanitize':{'originalBytes':_0x58bfce[_0x28fbc3(0x10f)][_0x28fbc3(0x124)],'truncated':_0x58bfce[_0x28fbc3(0x10f)][_0x28fbc3(0x118)],'redactions':_0x58bfce[_0x28fbc3(0x10f)]['redactionCount'],'redactionKinds':_0x58bfce['sanitize'][_0x28fbc3(0xfc)]}}}};}};function buildResultMessage(_0xbc5d78){const _0x4ad1c8=a151_0x4bea7b,_0x189cd1=[];return _0xbc5d78[_0x4ad1c8(0x118)]&&_0x189cd1[_0x4ad1c8(0xf4)](_0x4ad1c8(0x122)+_0xbc5d78['originalBytes']+'\x20bytes'),_0xbc5d78[_0x4ad1c8(0x11d)]>0x0&&_0x189cd1[_0x4ad1c8(0xf4)]('redacted\x20'+_0xbc5d78[_0x4ad1c8(0x11d)]+_0x4ad1c8(0xfe)+_0xbc5d78[_0x4ad1c8(0xfc)][_0x4ad1c8(0x107)](',\x20')),_0x189cd1['length']===0x0?_0x4ad1c8(0x11f):_0x4ad1c8(0x129)+_0x189cd1[_0x4ad1c8(0x107)](';\x20')+')';}async function prepareIssueReport(_0x2670ef){const _0x2ac860=a151_0x4bea7b,_0x95b0ea=_0x2670ef[_0x2ac860(0x128)](_0x2ac860(0xf6))[_0x2ac860(0x111)](),_0x59c441=_0x2670ef[_0x2ac860(0x128)]('description'),_0x3d6835=_0x2670ef[_0x2ac860(0x128)](DESCRIPTION_FILE_FLAG)[_0x2ac860(0x111)]();if(!_0x3d6835){const _0x543a44=_0x59c441;if(!_0x543a44['trim']())throw CliErrors[_0x2ac860(0x11e)](_0x2ac860(0x126),_0x2ac860(0x120));const _0x2a2873=sanitizeIssueDescription(_0x543a44);return{'title':_0x95b0ea,'description':_0x2a2873['description'],'descriptionSource':'inline','sanitize':_0x2a2873};}const _0x42c47d=resolve(process['cwd'](),_0x3d6835),_0x34e8ad=await readFile(_0x42c47d,_0x2ac860(0xff));if(!_0x34e8ad[_0x2ac860(0x111)]())throw CliErrors[_0x2ac860(0x11e)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x42c47d,_0x2ac860(0x125));const _0x347297=sanitizeIssueDescription(_0x34e8ad);return{'title':_0x95b0ea,'description':_0x347297[_0x2ac860(0xee)],'descriptionSource':_0x2ac860(0x117),'descriptionFilePath':_0x42c47d,'sanitize':_0x347297};}
1
+ const a151_0xe87353=a151_0x4f64;(function(_0x35d9ff,_0x597098){const _0x331740=a151_0x4f64,_0x39aaff=_0x35d9ff();while(!![]){try{const _0x1cdcdb=parseInt(_0x331740(0x193))/0x1*(parseInt(_0x331740(0x1b5))/0x2)+-parseInt(_0x331740(0x185))/0x3*(-parseInt(_0x331740(0x1c1))/0x4)+parseInt(_0x331740(0x1a5))/0x5+parseInt(_0x331740(0x194))/0x6*(parseInt(_0x331740(0x1c7))/0x7)+parseInt(_0x331740(0x19b))/0x8+-parseInt(_0x331740(0x1af))/0x9+-parseInt(_0x331740(0x19c))/0xa*(parseInt(_0x331740(0x1c0))/0xb);if(_0x1cdcdb===_0x597098)break;else _0x39aaff['push'](_0x39aaff['shift']());}catch(_0x458bdc){_0x39aaff['push'](_0x39aaff['shift']());}}}(a151_0x4030,0xb7633));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a151_0xe87353(0x19f);function a151_0x4f64(_0x510bb2,_0x23c95e){_0x510bb2=_0x510bb2-0x184;const _0x4030f1=a151_0x4030();let _0x4f64f4=_0x4030f1[_0x510bb2];return _0x4f64f4;}export const issueReport={'service':a151_0xe87353(0x1c2),'command':a151_0xe87353(0x1ab),'description':a151_0xe87353(0x189),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a151_0xe87353(0x1bc),'flags':[{'name':a151_0xe87353(0x196),'type':a151_0xe87353(0x19d),'required':!![],'description':a151_0xe87353(0x197)},{'name':a151_0xe87353(0x184),'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1b7)},{'name':DESCRIPTION_FILE_FLAG,'type':a151_0xe87353(0x19d),'description':a151_0xe87353(0x1a0)}],async 'validate'(_0x1d46b5){const _0x2cf2c8=a151_0xe87353,_0x47294a=_0x1d46b5['str']('title')[_0x2cf2c8(0x1bd)](),_0x345e91=_0x1d46b5[_0x2cf2c8(0x190)](_0x2cf2c8(0x184))[_0x2cf2c8(0x1bd)](),_0x5d5488=_0x1d46b5[_0x2cf2c8(0x190)](DESCRIPTION_FILE_FLAG)[_0x2cf2c8(0x1bd)]();if(!_0x47294a)throw CliErrors[_0x2cf2c8(0x195)](_0x2cf2c8(0x196),_0x2cf2c8(0x1a2));const _0x193359=_0x345e91[_0x2cf2c8(0x198)]>0x0,_0x3c9ccf=_0x5d5488[_0x2cf2c8(0x198)]>0x0;if(_0x193359===_0x3c9ccf)throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x18a),_0x2cf2c8(0x19e));if(_0x3c9ccf){const _0x54467c=resolve(process[_0x2cf2c8(0x18d)](),_0x5d5488);if(!existsSync(_0x54467c))throw CliErrors[_0x2cf2c8(0x1aa)](_0x2cf2c8(0x187)+_0x54467c);}},async 'dryRun'(_0x44bc0d){const _0xe3ce74=a151_0xe87353,_0x214966=await prepareIssueReport(_0x44bc0d);return{'method':_0xe3ce74(0x1ac),'url':_0xe3ce74(0x1bb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x214966[_0xe3ce74(0x196)],'issue.description':_0x214966[_0xe3ce74(0x184)],'issue.description_original_bytes':_0x214966['sanitize'][_0xe3ce74(0x18c)],'issue.description_truncated':_0x214966[_0xe3ce74(0x1c6)]['truncated'],'issue.description_redactions':_0x214966[_0xe3ce74(0x1c6)]['redactionCount'],'issue.description_redaction_kinds':_0x214966['sanitize']['redactionKinds'][_0xe3ce74(0x1ad)](',')}},'description':[_0xe3ce74(0x1bf),_0xe3ce74(0x1a7)+_0x214966['descriptionSource'],_0x214966[_0xe3ce74(0x1b1)]?_0xe3ce74(0x1ba)+_0x214966['descriptionFilePath']:null,_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x18e)]?_0xe3ce74(0x18b)+_0x214966[_0xe3ce74(0x1c6)]['originalBytes']+_0xe3ce74(0x192):null,_0x214966[_0xe3ce74(0x1c6)]['redactionCount']>0x0?_0xe3ce74(0x1b8)+_0x214966['sanitize'][_0xe3ce74(0x188)]+'\x20('+_0x214966[_0xe3ce74(0x1c6)][_0xe3ce74(0x1b2)][_0xe3ce74(0x1ad)](',\x20')+')':null][_0xe3ce74(0x1a4)](Boolean)[_0xe3ce74(0x1ad)]('\x0a')};},async 'execute'(_0x1e271d){const _0x287942=a151_0xe87353,_0x1e83c9=await prepareIssueReport(_0x1e271d);try{await sendPlatformIssueCollectLog({'title':_0x1e83c9['title'],'description':_0x1e83c9[_0x287942(0x184)],'sanitize':{'originalBytes':_0x1e83c9['sanitize'][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)]['truncated'],'redactionCount':_0x1e83c9['sanitize']['redactionCount'],'redactionKinds':_0x1e83c9['sanitize']['redactionKinds']}});}catch(_0x29d92d){throw CliErrors[_0x287942(0x1be)](_0x287942(0x191)+(_0x29d92d instanceof Error?_0x29d92d[_0x287942(0x1a3)]:String(_0x29d92d)),_0x287942(0x1b4));}return{'ok':!![],'message':buildResultMessage(_0x1e83c9[_0x287942(0x1c6)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x287942(0x1b6),_0x287942(0x1a8),'issue.description_original_bytes',_0x287942(0x1c4),_0x287942(0x1b9),_0x287942(0x1ae)],'issue':{'title':_0x1e83c9[_0x287942(0x196)],'descriptionLength':_0x1e83c9['description'][_0x287942(0x198)],'descriptionSource':_0x1e83c9[_0x287942(0x1b3)],..._0x1e83c9[_0x287942(0x1b1)]?{'descriptionFile':_0x1e83c9['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18c)],'truncated':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x18e)],'redactions':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x188)],'redactionKinds':_0x1e83c9[_0x287942(0x1c6)][_0x287942(0x1b2)]}}}};}};function buildResultMessage(_0x1a7973){const _0x33ef6d=a151_0xe87353,_0x33355c=[];return _0x1a7973['truncated']&&_0x33355c[_0x33ef6d(0x1a6)](_0x33ef6d(0x1c3)+_0x1a7973[_0x33ef6d(0x18c)]+_0x33ef6d(0x192)),_0x1a7973[_0x33ef6d(0x188)]>0x0&&_0x33355c[_0x33ef6d(0x1a6)]('redacted\x20'+_0x1a7973['redactionCount']+_0x33ef6d(0x1a1)+_0x1a7973[_0x33ef6d(0x1b2)][_0x33ef6d(0x1ad)](',\x20')),_0x33355c[_0x33ef6d(0x198)]===0x0?_0x33ef6d(0x18f):'Platform\x20issue\x20reported\x20('+_0x33355c[_0x33ef6d(0x1ad)](';\x20')+')';}function a151_0x4030(){const _0x49a9e1=['File\x20not\x20found:\x20','redactionCount','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','truncated:\x20original\x20','originalBytes','cwd','truncated','Platform\x20issue\x20reported','str','Failed\x20to\x20report\x20platform\x20issue:\x20','\x20bytes','1oKBuhU','499866VXkGhv','flagMissing','title','One-line\x20issue\x20summary','length','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','file','596992hJdSxf','10GWuJlA','string','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','description-file','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20secret(s):\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','message','filter','314465povbyN','push','descriptionSource:\x20','issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','validation','report','POST','join','issue.description_redaction_kinds','3574998fFSPiS','utf8','descriptionFilePath','redactionKinds','descriptionSource','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','2782142WIAUqq','issue.title','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','redactions:\x20','issue.description_redactions','descriptionFile:\x20','otel://','compress','trim','apiError','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','5533957UKCobh','820DWhMmK','issue','truncated\x20from\x20','issue.description_truncated','Issue\x20description\x20cannot\x20be\x20empty.','sanitize','7IicZeH','description','579LLDAef','inline'];a151_0x4030=function(){return _0x49a9e1;};return a151_0x4030();}async function prepareIssueReport(_0x7c3273){const _0x2106b5=a151_0xe87353,_0x31c10d=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x196))[_0x2106b5(0x1bd)](),_0x18989f=_0x7c3273[_0x2106b5(0x190)](_0x2106b5(0x184)),_0x497b96=_0x7c3273[_0x2106b5(0x190)](DESCRIPTION_FILE_FLAG)[_0x2106b5(0x1bd)]();if(!_0x497b96){const _0x525ef6=_0x18989f;if(!_0x525ef6['trim']())throw CliErrors[_0x2106b5(0x1aa)](_0x2106b5(0x1c5),_0x2106b5(0x1a9));const _0x12b683=sanitizeIssueDescription(_0x525ef6);return{'title':_0x31c10d,'description':_0x12b683[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x186),'sanitize':_0x12b683};}const _0xe93040=resolve(process['cwd'](),_0x497b96),_0x2924a7=await readFile(_0xe93040,_0x2106b5(0x1b0));if(!_0x2924a7['trim']())throw CliErrors[_0x2106b5(0x1aa)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe93040,_0x2106b5(0x199));const _0x13bee6=sanitizeIssueDescription(_0x2924a7);return{'title':_0x31c10d,'description':_0x13bee6[_0x2106b5(0x184)],'descriptionSource':_0x2106b5(0x19a),'descriptionFilePath':_0xe93040,'sanitize':_0x13bee6};}
@@ -1 +1 @@
1
- function a152_0x5773(){const _0x22a0b0=['replace','authorization','__RB_OSS_ID_','cookie','12xmbqjc','5816244uyGgnA','kind','539241MDhqLq','byteLength','includes','max','REDACTED:password','string','utf8','length','5875135iRiPzW','private-key','push','description','bearer-jwt','27oREJTJ','pattern','2735127uwGNAu','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','access-key','5236136gKfNao','6499130JSmQvV','328830vkBsNe','REDACTED:cookie','label','subarray'];a152_0x5773=function(){return _0x22a0b0;};return a152_0x5773();}const a152_0x49b205=a152_0xa5a9;(function(_0x249d32,_0x3ecfd8){const _0x275ae1=a152_0xa5a9,_0x178bec=_0x249d32();while(!![]){try{const _0x3f7378=-parseInt(_0x275ae1(0x146))/0x1+-parseInt(_0x275ae1(0x13b))/0x2+-parseInt(_0x275ae1(0x136))/0x3+parseInt(_0x275ae1(0x144))/0x4+parseInt(_0x275ae1(0x13a))/0x5+-parseInt(_0x275ae1(0x143))/0x6*(-parseInt(_0x275ae1(0x14e))/0x7)+-parseInt(_0x275ae1(0x139))/0x8*(parseInt(_0x275ae1(0x134))/0x9);if(_0x3f7378===_0x3ecfd8)break;else _0x178bec['push'](_0x178bec['shift']());}catch(_0x5305a8){_0x178bec['push'](_0x178bec['shift']());}}}(a152_0x5773,0xd064d));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a152_0x49b205(0x137),REDACTION_RULES=[{'kind':a152_0x49b205(0x142),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a152_0x49b205(0x13c)},{'kind':a152_0x49b205(0x140),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a152_0x49b205(0x130),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a152_0x49b205(0x138),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x49b205(0x14a)},{'kind':a152_0x49b205(0x133),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];function a152_0xa5a9(_0x2d761c,_0xf6b500){_0x2d761c=_0x2d761c-0x130;const _0x57730d=a152_0x5773();let _0xa5a94b=_0x57730d[_0x2d761c];return _0xa5a94b;}export function sanitizeIssueDescription(_0x5c6df){const _0x40182c=a152_0x49b205,_0x2148c3=Buffer[_0x40182c(0x147)](_0x5c6df,_0x40182c(0x14c)),_0x529bce=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3dc19e=_0x5c6df,_0x1e5eb3=0x0;const _0x201e81=[];if(!_0x529bce){const _0x4a5420=protectOssAccessKeyIds(_0x3dc19e);_0x3dc19e=_0x4a5420[_0x40182c(0x132)];for(const _0x57ae7e of REDACTION_RULES){let _0x7a9c0a=0x0;_0x3dc19e=_0x3dc19e['replace'](_0x57ae7e[_0x40182c(0x135)],(_0x2d89f7,_0x2eaa20)=>{const _0x224f73=_0x40182c;_0x7a9c0a+=0x1;const _0x313657=typeof _0x2eaa20===_0x224f73(0x14b)?_0x2eaa20:'';return _0x313657+'['+_0x57ae7e[_0x224f73(0x13d)]+']';}),_0x7a9c0a>0x0&&(_0x1e5eb3+=_0x7a9c0a,!_0x201e81[_0x40182c(0x148)](_0x57ae7e[_0x40182c(0x145)])&&_0x201e81[_0x40182c(0x131)](_0x57ae7e[_0x40182c(0x145)]));}_0x3dc19e=_0x4a5420['restore'](_0x3dc19e);}let _0x18afc1=![];if(Buffer['byteLength'](_0x3dc19e,_0x40182c(0x14c))>ISSUE_DESCRIPTION_MAX_BYTES){_0x18afc1=!![];const _0x186887=Buffer[_0x40182c(0x147)](TRUNCATION_NOTICE,_0x40182c(0x14c)),_0x54e767=Math[_0x40182c(0x149)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x186887);_0x3dc19e=sliceUtf8Bytes(_0x3dc19e,_0x54e767)+TRUNCATION_NOTICE;}return{'description':_0x3dc19e,'originalBytes':_0x2148c3,'truncated':_0x18afc1,'redactionCount':_0x1e5eb3,'redactionKinds':_0x201e81};}function protectOssAccessKeyIds(_0x14e47a){const _0x43f9ef=a152_0x49b205,_0x44845d=[],_0xc2ff2d=_0x14e47a[_0x43f9ef(0x13f)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4202de,_0x3ca7f9)=>{const _0x5c04e7=_0x43f9ef,_0x347f54=_0x44845d[_0x5c04e7(0x131)](_0x4202de['slice'](_0x3ca7f9[_0x5c04e7(0x14d)]))-0x1;return _0x3ca7f9+_0x5c04e7(0x141)+_0x347f54+'__';});return{'description':_0xc2ff2d,'restore':_0x34acde=>_0x34acde[_0x43f9ef(0x13f)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0xac6f9d,_0xaef1e7,_0x505a0c)=>{const _0x12459c=_0x44845d[Number(_0x505a0c)];return _0x12459c===undefined?_0xac6f9d:''+_0xaef1e7+_0x12459c;})};}function sliceUtf8Bytes(_0x336519,_0x51f94b){const _0x1936a6=a152_0x49b205;if(_0x51f94b<=0x0)return'';const _0x23ad42=Buffer['from'](_0x336519,_0x1936a6(0x14c));if(_0x23ad42[_0x1936a6(0x147)]<=_0x51f94b)return _0x336519;let _0x31ae28=_0x51f94b;while(_0x31ae28>0x0){const _0x423060=_0x23ad42[_0x31ae28];if(_0x423060===undefined||(_0x423060&0xc0)!==0x80)break;_0x31ae28-=0x1;}return _0x23ad42[_0x1936a6(0x13e)](0x0,_0x31ae28)['toString'](_0x1936a6(0x14c));}
1
+ function a152_0x1915(_0x1724f7,_0x32aee4){_0x1724f7=_0x1724f7-0x1bd;const _0x189774=a152_0x1897();let _0x191510=_0x189774[_0x1724f7];return _0x191510;}const a152_0x294509=a152_0x1915;(function(_0x4dbfed,_0x3dd0d6){const _0x37d0cf=a152_0x1915,_0x5f1ebf=_0x4dbfed();while(!![]){try{const _0x1a4063=-parseInt(_0x37d0cf(0x1cd))/0x1+-parseInt(_0x37d0cf(0x1da))/0x2+parseInt(_0x37d0cf(0x1dd))/0x3+parseInt(_0x37d0cf(0x1c1))/0x4*(-parseInt(_0x37d0cf(0x1d3))/0x5)+-parseInt(_0x37d0cf(0x1bd))/0x6+-parseInt(_0x37d0cf(0x1d0))/0x7*(-parseInt(_0x37d0cf(0x1df))/0x8)+-parseInt(_0x37d0cf(0x1d6))/0x9*(-parseInt(_0x37d0cf(0x1d8))/0xa);if(_0x1a4063===_0x3dd0d6)break;else _0x5f1ebf['push'](_0x5f1ebf['shift']());}catch(_0x418000){_0x5f1ebf['push'](_0x5f1ebf['shift']());}}}(a152_0x1897,0x56ac4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a152_0x294509(0x1d1),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a152_0x294509(0x1cc),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a152_0x294509(0x1ca)},{'kind':a152_0x294509(0x1d5),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a152_0x294509(0x1c5)},{'kind':a152_0x294509(0x1c7),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a152_0x294509(0x1c6)},{'kind':a152_0x294509(0x1db),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a152_0x294509(0x1c9)},{'kind':a152_0x294509(0x1c4),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x3b9d2f){const _0xb7d8c0=a152_0x294509,_0x2e621e=Buffer[_0xb7d8c0(0x1cb)](_0x3b9d2f,_0xb7d8c0(0x1cf)),_0x413875=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3aa1e5=_0x3b9d2f,_0x203ca5=0x0;const _0x1170f7=[];if(!_0x413875){const _0x5f59c8=protectOssAccessKeyIds(_0x3aa1e5);_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1d7)];for(const _0x38f484 of REDACTION_RULES){let _0x532e11=0x0;_0x3aa1e5=_0x3aa1e5[_0xb7d8c0(0x1c0)](_0x38f484['pattern'],(_0xf2aacb,_0x43da58)=>{const _0x232751=_0xb7d8c0;_0x532e11+=0x1;const _0x282da9=typeof _0x43da58===_0x232751(0x1de)?_0x43da58:'';return _0x282da9+'['+_0x38f484['label']+']';}),_0x532e11>0x0&&(_0x203ca5+=_0x532e11,!_0x1170f7[_0xb7d8c0(0x1dc)](_0x38f484[_0xb7d8c0(0x1d4)])&&_0x1170f7['push'](_0x38f484[_0xb7d8c0(0x1d4)]));}_0x3aa1e5=_0x5f59c8[_0xb7d8c0(0x1c8)](_0x3aa1e5);}let _0x41b6ef=![];if(Buffer[_0xb7d8c0(0x1cb)](_0x3aa1e5,_0xb7d8c0(0x1cf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x41b6ef=!![];const _0x389924=Buffer[_0xb7d8c0(0x1cb)](TRUNCATION_NOTICE,_0xb7d8c0(0x1cf)),_0x345d82=Math[_0xb7d8c0(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x389924);_0x3aa1e5=sliceUtf8Bytes(_0x3aa1e5,_0x345d82)+TRUNCATION_NOTICE;}return{'description':_0x3aa1e5,'originalBytes':_0x2e621e,'truncated':_0x41b6ef,'redactionCount':_0x203ca5,'redactionKinds':_0x1170f7};}function protectOssAccessKeyIds(_0x3efdc0){const _0x1d7ef0=a152_0x294509,_0x5f0d47=[],_0x3dfbeb=_0x3efdc0[_0x1d7ef0(0x1c0)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xb52c8b,_0x398210)=>{const _0x431c4a=_0x1d7ef0,_0x229e9d=_0x5f0d47[_0x431c4a(0x1c2)](_0xb52c8b[_0x431c4a(0x1be)](_0x398210[_0x431c4a(0x1d9)]))-0x1;return _0x398210+'__RB_OSS_ID_'+_0x229e9d+'__';});return{'description':_0x3dfbeb,'restore':_0x5ec6c0=>_0x5ec6c0['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2cacf7,_0x1953b0,_0x2db1de)=>{const _0x4b7ebf=_0x5f0d47[Number(_0x2db1de)];return _0x4b7ebf===undefined?_0x2cacf7:''+_0x1953b0+_0x4b7ebf;})};}function a152_0x1897(){const _0x1c9204=['utf8','1274SAxRCC','cookie','max','5YCikwq','kind','private-key','9mxRQsx','description','8013650cCDyqi','length','147628AQRdeR','password','includes','2012409sjzPzl','string','11024CCjedQ','2605650kGwrKp','slice','toString','replace','2447052YQuZVl','push','subarray','bearer-jwt','REDACTED:private-key','REDACTED:access-key','access-key','restore','REDACTED:password','REDACTED:authorization','byteLength','authorization','248100bDnQZI','from'];a152_0x1897=function(){return _0x1c9204;};return a152_0x1897();}function sliceUtf8Bytes(_0x951241,_0x54de22){const _0x5ba50b=a152_0x294509;if(_0x54de22<=0x0)return'';const _0x1ddccc=Buffer[_0x5ba50b(0x1ce)](_0x951241,_0x5ba50b(0x1cf));if(_0x1ddccc['byteLength']<=_0x54de22)return _0x951241;let _0x428cac=_0x54de22;while(_0x428cac>0x0){const _0x18d73f=_0x1ddccc[_0x428cac];if(_0x18d73f===undefined||(_0x18d73f&0xc0)!==0x80)break;_0x428cac-=0x1;}return _0x1ddccc[_0x5ba50b(0x1c3)](0x0,_0x428cac)[_0x5ba50b(0x1bf)](_0x5ba50b(0x1cf));}
@@ -1 +1 @@
1
- const a153_0x3e62a5=a153_0x4f5f;(function(_0x4265c4,_0x2dc9f5){const _0x21901d=a153_0x4f5f,_0x2cc4fc=_0x4265c4();while(!![]){try{const _0x1bf2ea=parseInt(_0x21901d(0xf7))/0x1+-parseInt(_0x21901d(0xf1))/0x2*(-parseInt(_0x21901d(0x102))/0x3)+-parseInt(_0x21901d(0xe1))/0x4*(-parseInt(_0x21901d(0x108))/0x5)+-parseInt(_0x21901d(0xec))/0x6*(parseInt(_0x21901d(0x10c))/0x7)+-parseInt(_0x21901d(0x10d))/0x8*(parseInt(_0x21901d(0x10e))/0x9)+-parseInt(_0x21901d(0x103))/0xa*(parseInt(_0x21901d(0x109))/0xb)+parseInt(_0x21901d(0xea))/0xc*(parseInt(_0x21901d(0xe3))/0xd);if(_0x1bf2ea===_0x2dc9f5)break;else _0x2cc4fc['push'](_0x2cc4fc['shift']());}catch(_0x905ccd){_0x2cc4fc['push'](_0x2cc4fc['shift']());}}}(a153_0x4d17,0x6ca20));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a153_0x4d17(){const _0x37cfba=['6LeazHl','620vsJnes','cookie','POST','content','\x20--format\x20compress`\x20before\x20choosing\x20update.','27865RZxVor','18337XfnZOX','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','645134XHmWqc','16wLuMto','1889739DqXxRj','Created\x20company\x20knowledge\x20base\x20','\x20with\x20title\x20','144KGrIYP','\x20for\x20','39ezMEYw','kb_already_exists','title','length','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','--file\x20is\x20required.','1728876BDkgtb','create','30ZoLTZN','/admin/knowledge-base/create','trim','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','write','19930qkcOQW','string','stringify','kb_title_required','file','--title\x20is\x20required.','776289JwODuh','rabetbase\x20kb\x20list\x20--title\x20','kb_create_outcome_unknown','Knowledge-base\x20title','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','byteSize','appCode','company','rabetbase\x20kb\x20detail\x20--id\x20','contentHash','\x20--format\x20compress'];a153_0x4d17=function(){return _0x37cfba;};return a153_0x4d17();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a153_0x3e62a5(0xed);function readCreateInput(_0x29faa6){const _0xd385a9=a153_0x3e62a5,_0x3b8aa4=_0x29faa6['str'](_0xd385a9(0xe5))[_0xd385a9(0xee)]();if(!_0x3b8aa4)throw kbError(_0xd385a9(0xf4),_0xd385a9(0xf6));const _0x427ab1=_0x29faa6['str'](_0xd385a9(0xf5))[_0xd385a9(0xee)]();if(!_0x427ab1)throw kbError('kb_file_required',_0xd385a9(0xe9),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x3b8aa4,'file':_0x427ab1};}async function prepareCreate(_0x1f2085){const _0x498815=a153_0x3e62a5,_0x5b6484=readCreateInput(_0x1f2085),_0x316b3b=await readKbFile(_0x5b6484[_0x498815(0xf5)]),_0x21d713=await fetchAllCompanyKnowledgeBases(_0x1f2085,{'title':_0x5b6484[_0x498815(0xe5)]}),_0x3c4285=findExactCompanyKnowledgeBases(_0x21d713,_0x1f2085['appCode'],_0x5b6484[_0x498815(0xe5)]);if(_0x3c4285['length']>0x0)throw kbError(_0x498815(0xe4),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x1f2085[_0x498815(0xfd)]+_0x498815(0xe0)+_0x5b6484['title']+'.',_0x498815(0xe7)+_0x3c4285[0x0]['id']+_0x498815(0x107));return{..._0x5b6484,'content':_0x316b3b};}function a153_0x4f5f(_0x5a5b44,_0x5129a7){_0x5a5b44=_0x5a5b44-0xdf;const _0x4d17eb=a153_0x4d17();let _0x4f5fc0=_0x4d17eb[_0x5a5b44];return _0x4f5fc0;}function plannedAfter(_0x5911d8,_0x5c518e){const _0xb388e5=a153_0x3e62a5;return{'scope':_0xb388e5(0xfe),'appCode':_0x5911d8[_0xb388e5(0xfd)],'title':_0x5c518e['title'],'contentByteSize':_0x5c518e[_0xb388e5(0x106)][_0xb388e5(0xfc)],'contentHash':_0x5c518e[_0xb388e5(0x106)]['contentHash']};}function verifyCreatedState(_0x10e9b1,_0x53448e,_0x1d18ae){const _0x2e6567=a153_0x3e62a5;assertCompanyKnowledgeBase(_0x1d18ae,_0x10e9b1[_0x2e6567(0xfd)],_0x1d18ae['id']);const _0x5e1e9f=inspectKbContent(_0x1d18ae[_0x2e6567(0x106)]);if(_0x1d18ae[_0x2e6567(0xe5)]!==_0x53448e[_0x2e6567(0xe5)]||_0x5e1e9f[_0x2e6567(0x100)]!==_0x53448e['content'][_0x2e6567(0x100)])throw kbError('kb_verification_failed','Company\x20knowledge\x20base\x20'+_0x1d18ae['id']+_0x2e6567(0xef),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x1d18ae['id']+_0x2e6567(0x10a));return projectKb(_0x1d18ae);}export const kbCreate={'service':'kb','command':'create','description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':a153_0x3e62a5(0xf0),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x3e62a5(0xe5),'type':a153_0x3e62a5(0xf2),'required':!![],'description':a153_0x3e62a5(0xfa)},{'name':a153_0x3e62a5(0xf5),'type':'string','required':!![],'description':a153_0x3e62a5(0xfb)}],async 'validate'(_0xc00128){readCreateInput(_0xc00128);},async 'dryRun'(_0xfc833a){const _0x52495d=a153_0x3e62a5,_0x12568a=await prepareCreate(_0xfc833a);return asDryRunResult({'operation':'create','selector':{'scope':_0x52495d(0xfe),'appCode':_0xfc833a[_0x52495d(0xfd)],'title':_0x12568a[_0x52495d(0xe5)]},'before':null,'after':plannedAfter(_0xfc833a,_0x12568a),'dryRun':!![],'backend':{'method':_0x52495d(0x105),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x52495d(0xf8)+JSON[_0x52495d(0xf3)](_0x12568a['title'])+_0x52495d(0x101)}},{'method':_0x52495d(0x105),'url':CREATE_PATH});},async 'execute'(_0x3bf031){const _0x4489f2=a153_0x3e62a5,_0x1258ac=await prepareCreate(_0x3bf031);let _0x53c97b,_0x400152=![];try{const _0x5be670=await createEnterpriseKnowledgeBase(_0x3bf031[_0x4489f2(0x104)],{'appCode':_0x3bf031[_0x4489f2(0xfd)],'title':_0x1258ac[_0x4489f2(0xe5)],'content':_0x1258ac[_0x4489f2(0x106)][_0x4489f2(0x106)]});assertCompanyKnowledgeBase(_0x5be670,_0x3bf031[_0x4489f2(0xfd)],_0x5be670['id']),_0x53c97b=_0x5be670['id'];}catch(_0x146b1b){if(!isPlatformTransportFailure(_0x146b1b))throw _0x146b1b;_0x400152=!![];}if(_0x53c97b===undefined){const _0x50121e=await verifyKbMutationReadback(_0x4489f2(0xeb),!![],()=>fetchAllCompanyKnowledgeBases(_0x3bf031,{'title':_0x1258ac[_0x4489f2(0xe5)]})),_0x1b826e=findExactCompanyKnowledgeBases(_0x50121e,_0x3bf031[_0x4489f2(0xfd)],_0x1258ac[_0x4489f2(0xe5)]);if(_0x1b826e['length']!==0x1)throw kbError(_0x4489f2(0xf9),_0x4489f2(0xe8)+_0x1b826e[_0x4489f2(0xe6)]+'.',_0x4489f2(0x10b));_0x53c97b=_0x1b826e[0x0]['id'];}const _0x22ae61=await verifyKbMutationReadback(_0x4489f2(0xeb),_0x400152,()=>requireKb(_0x3bf031,_0x53c97b)),_0x5d7840=verifyCreatedState(_0x3bf031,_0x1258ac,_0x22ae61),_0x4ba1a7=_0x400152?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x4489f2(0xeb),'selector':{'id':_0x5d7840['id'],'scope':'company','appCode':_0x5d7840[_0x4489f2(0xfd)]},'before':null,'after':_0x5d7840,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x4ba1a7,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x400152,'lookupCommand':_0x4489f2(0xff)+_0x5d7840['id']+_0x4489f2(0x101)}},'message':_0x4489f2(0xdf)+_0x5d7840['id']+_0x4489f2(0xe2)+_0x5d7840['appCode']};}};
1
+ const a153_0x336365=a153_0x10a1;(function(_0x3a3fed,_0x312df5){const _0x2f8648=a153_0x10a1,_0x5d81ea=_0x3a3fed();while(!![]){try{const _0x43f475=-parseInt(_0x2f8648(0x16c))/0x1+-parseInt(_0x2f8648(0x17a))/0x2*(-parseInt(_0x2f8648(0x14f))/0x3)+parseInt(_0x2f8648(0x167))/0x4+-parseInt(_0x2f8648(0x152))/0x5*(parseInt(_0x2f8648(0x15d))/0x6)+parseInt(_0x2f8648(0x15b))/0x7*(-parseInt(_0x2f8648(0x158))/0x8)+-parseInt(_0x2f8648(0x171))/0x9*(parseInt(_0x2f8648(0x15c))/0xa)+parseInt(_0x2f8648(0x15a))/0xb;if(_0x43f475===_0x312df5)break;else _0x5d81ea['push'](_0x5d81ea['shift']());}catch(_0x55b190){_0x5d81ea['push'](_0x5d81ea['shift']());}}}(a153_0x1e0c,0x3b20a));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a153_0x336365(0x169);function readCreateInput(_0x5cd9b6){const _0x526ed5=a153_0x336365,_0x53cc39=_0x5cd9b6['str'](_0x526ed5(0x174))[_0x526ed5(0x177)]();if(!_0x53cc39)throw kbError('kb_title_required',_0x526ed5(0x175));const _0x3e32c6=_0x5cd9b6[_0x526ed5(0x170)](_0x526ed5(0x166))[_0x526ed5(0x177)]();if(!_0x3e32c6)throw kbError('kb_file_required',_0x526ed5(0x159),_0x526ed5(0x17d));return{'title':_0x53cc39,'file':_0x3e32c6};}async function prepareCreate(_0x2efda2){const _0xe9da2e=a153_0x336365,_0x7b814c=readCreateInput(_0x2efda2),_0x1bd154=await readKbFile(_0x7b814c[_0xe9da2e(0x166)]),_0xb12c04=await fetchAllCompanyKnowledgeBases(_0x2efda2,{'title':_0x7b814c['title']}),_0x57cc5d=findExactCompanyKnowledgeBases(_0xb12c04,_0x2efda2[_0xe9da2e(0x153)],_0x7b814c[_0xe9da2e(0x174)]);if(_0x57cc5d[_0xe9da2e(0x161)]>0x0)throw kbError(_0xe9da2e(0x172),_0xe9da2e(0x16b)+_0x2efda2[_0xe9da2e(0x153)]+_0xe9da2e(0x17e)+_0x7b814c['title']+'.',_0xe9da2e(0x17f)+_0x57cc5d[0x0]['id']+_0xe9da2e(0x173));return{..._0x7b814c,'content':_0x1bd154};}function plannedAfter(_0x39a10c,_0x3f431e){const _0x14d76e=a153_0x336365;return{'scope':_0x14d76e(0x178),'appCode':_0x39a10c[_0x14d76e(0x153)],'title':_0x3f431e['title'],'contentByteSize':_0x3f431e[_0x14d76e(0x176)][_0x14d76e(0x162)],'contentHash':_0x3f431e['content'][_0x14d76e(0x17b)]};}function a153_0x1e0c(){const _0x4056c4=['string','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','461679LuZQoi','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Knowledge-base\x20title','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','str','180ofHqdP','kb_already_exists','\x20--format\x20compress`\x20before\x20choosing\x20update.','title','--title\x20is\x20required.','content','trim','company','kb_create_outcome_unknown','32jGjyJR','contentHash','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','\x20with\x20title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','72132IlgAaS','\x20for\x20','cookie','2032775greECJ','appCode','stringify','kb_verification_failed','Company\x20knowledge\x20base\x20','rabetbase\x20kb\x20detail\x20--id\x20','72eNIrDe','--file\x20is\x20required.','8075309pTsyks','249214LSwIZe','48830QTlGOs','6ozvjjM','rabetbase\x20kb\x20list\x20--title\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','POST','length','byteSize','write','\x20--format\x20compress','create','file','1638700mpdDXB','Created\x20company\x20knowledge\x20base\x20','/admin/knowledge-base/create'];a153_0x1e0c=function(){return _0x4056c4;};return a153_0x1e0c();}function verifyCreatedState(_0x5ad076,_0x336514,_0x3f000b){const _0x47477a=a153_0x336365;assertCompanyKnowledgeBase(_0x3f000b,_0x5ad076[_0x47477a(0x153)],_0x3f000b['id']);const _0x14c092=inspectKbContent(_0x3f000b[_0x47477a(0x176)]);if(_0x3f000b['title']!==_0x336514[_0x47477a(0x174)]||_0x14c092['contentHash']!==_0x336514[_0x47477a(0x176)][_0x47477a(0x17b)])throw kbError(_0x47477a(0x155),_0x47477a(0x156)+_0x3f000b['id']+_0x47477a(0x17c),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x3f000b['id']+_0x47477a(0x16d));return projectKb(_0x3f000b);}function a153_0x10a1(_0x2607f7,_0x2236a8){_0x2607f7=_0x2607f7-0x14f;const _0x1e0c4b=a153_0x1e0c();let _0x10a1f4=_0x1e0c4b[_0x2607f7];return _0x10a1f4;}export const kbCreate={'service':'kb','command':a153_0x336365(0x165),'description':a153_0x336365(0x16f),'risk':a153_0x336365(0x163),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a153_0x336365(0x174),'type':a153_0x336365(0x16a),'required':!![],'description':a153_0x336365(0x16e)},{'name':a153_0x336365(0x166),'type':a153_0x336365(0x16a),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x391036){readCreateInput(_0x391036);},async 'dryRun'(_0x2a7b7c){const _0x375ffb=a153_0x336365,_0x3878c6=await prepareCreate(_0x2a7b7c);return asDryRunResult({'operation':_0x375ffb(0x165),'selector':{'scope':_0x375ffb(0x178),'appCode':_0x2a7b7c[_0x375ffb(0x153)],'title':_0x3878c6[_0x375ffb(0x174)]},'before':null,'after':plannedAfter(_0x2a7b7c,_0x3878c6),'dryRun':!![],'backend':{'method':_0x375ffb(0x160),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x375ffb(0x15e)+JSON[_0x375ffb(0x154)](_0x3878c6[_0x375ffb(0x174)])+_0x375ffb(0x164)}},{'method':_0x375ffb(0x160),'url':CREATE_PATH});},async 'execute'(_0x3e1be2){const _0x2a2040=a153_0x336365,_0x577023=await prepareCreate(_0x3e1be2);let _0xa06d14,_0x211e0b=![];try{const _0x4fb9df=await createEnterpriseKnowledgeBase(_0x3e1be2[_0x2a2040(0x151)],{'appCode':_0x3e1be2['appCode'],'title':_0x577023[_0x2a2040(0x174)],'content':_0x577023[_0x2a2040(0x176)]['content']});assertCompanyKnowledgeBase(_0x4fb9df,_0x3e1be2[_0x2a2040(0x153)],_0x4fb9df['id']),_0xa06d14=_0x4fb9df['id'];}catch(_0x1fdf9b){if(!isPlatformTransportFailure(_0x1fdf9b))throw _0x1fdf9b;_0x211e0b=!![];}if(_0xa06d14===undefined){const _0x395d3d=await verifyKbMutationReadback(_0x2a2040(0x165),!![],()=>fetchAllCompanyKnowledgeBases(_0x3e1be2,{'title':_0x577023[_0x2a2040(0x174)]})),_0x230e4d=findExactCompanyKnowledgeBases(_0x395d3d,_0x3e1be2[_0x2a2040(0x153)],_0x577023[_0x2a2040(0x174)]);if(_0x230e4d[_0x2a2040(0x161)]!==0x1)throw kbError(_0x2a2040(0x179),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x230e4d[_0x2a2040(0x161)]+'.','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.');_0xa06d14=_0x230e4d[0x0]['id'];}const _0x12e7e6=await verifyKbMutationReadback(_0x2a2040(0x165),_0x211e0b,()=>requireKb(_0x3e1be2,_0xa06d14)),_0x30c3f8=verifyCreatedState(_0x3e1be2,_0x577023,_0x12e7e6),_0x4dcc11=_0x211e0b?[_0x2a2040(0x15f)]:[];return{'ok':!![],'data':{'operation':_0x2a2040(0x165),'selector':{'id':_0x30c3f8['id'],'scope':_0x2a2040(0x178),'appCode':_0x30c3f8['appCode']},'before':null,'after':_0x30c3f8,'dryRun':![],'backend':{'method':_0x2a2040(0x160),'path':CREATE_PATH},'warnings':_0x4dcc11,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x211e0b,'lookupCommand':_0x2a2040(0x157)+_0x30c3f8['id']+_0x2a2040(0x164)}},'message':_0x2a2040(0x168)+_0x30c3f8['id']+_0x2a2040(0x150)+_0x30c3f8[_0x2a2040(0x153)]};}};
@@ -1 +1 @@
1
- const a154_0x2fbf2a=a154_0x3e8c;(function(_0x4e9935,_0xda8b9f){const _0x4e1c5e=a154_0x3e8c,_0x2435c8=_0x4e9935();while(!![]){try{const _0x5e3731=parseInt(_0x4e1c5e(0x108))/0x1*(parseInt(_0x4e1c5e(0xe9))/0x2)+-parseInt(_0x4e1c5e(0xee))/0x3*(parseInt(_0x4e1c5e(0xf4))/0x4)+parseInt(_0x4e1c5e(0x105))/0x5*(parseInt(_0x4e1c5e(0xeb))/0x6)+parseInt(_0x4e1c5e(0xe6))/0x7*(-parseInt(_0x4e1c5e(0xf5))/0x8)+parseInt(_0x4e1c5e(0xec))/0x9*(-parseInt(_0x4e1c5e(0xf0))/0xa)+-parseInt(_0x4e1c5e(0xfb))/0xb+parseInt(_0x4e1c5e(0x106))/0xc;if(_0x5e3731===_0xda8b9f)break;else _0x2435c8['push'](_0x2435c8['shift']());}catch(_0x989593){_0x2435c8['push'](_0x2435c8['shift']());}}}(a154_0x534a,0x32c6f));function a154_0x3e8c(_0x16ea2c,_0x3b73a7){_0x16ea2c=_0x16ea2c-0xe6;const _0x534a11=a154_0x534a();let _0x3e8cc3=_0x534a11[_0x16ea2c];return _0x3e8cc3;}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a154_0x534a(){const _0x39f631=['flag','10fmAciv','9734568JoHTAM','kb_expected_version_invalid','1pZRzwO','\x20remains\x20readable\x20after\x20delete.','84uFxlyx','Company\x20knowledge-base\x20id','expected-version','137128hAKXNi','Soft-deleted\x20company\x20knowledge\x20base\x20','1024722qXbupR','25227EDMGYK','no_op','51aFziob','already_absent','1000XnzIsI','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','rabetbase\x20kb\x20detail\x20--id\x20','number','80588aCfZqY','194280CWgAVH','delete','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','unshift','isSafeInteger','POST','1090650jMHPTH','kb_delete_outcome_unknown','snapshotHash','company','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge\x20base\x20','\x20--format\x20compress','high-risk-write','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app'];a154_0x534a=function(){return _0x39f631;};return a154_0x534a();}import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH='/admin/knowledge-base/delete',RAG_WARNING=a154_0x2fbf2a(0xf7),NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0x5b4d0e){const _0x50d7f3=a154_0x2fbf2a,_0x41fad8=_0x5b4d0e[_0x50d7f3(0x104)](_0x50d7f3(0xe8));if(_0x41fad8===undefined)return undefined;const _0x34febb=Number(_0x41fad8);if(!Number[_0x50d7f3(0xf9)](_0x34febb)||_0x34febb<0x0)throw kbError(_0x50d7f3(0x107),'--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.');return _0x34febb;}function noOpData(_0x1764ce,_0x1627cf,_0x384478){const _0x37a509=a154_0x2fbf2a;return{'operation':_0x37a509(0xed),'selector':{'id':_0x1627cf,'scope':'company','appCode':_0x1764ce['appCode']},'before':null,'after':null,'dryRun':_0x384478,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':_0x37a509(0xef),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a154_0x2fbf2a(0xf6),'description':a154_0x2fbf2a(0x103),'risk':a154_0x2fbf2a(0x102),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a154_0x2fbf2a(0xe7)},{'name':'expected-version','type':a154_0x2fbf2a(0xf3),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x39600d){readKbId(_0x39600d),readExpectedVersion(_0x39600d),requireKbExplicitYes(_0x39600d);},async 'dryRun'(_0xc4ab1a){const _0x5c2a8d=a154_0x2fbf2a,_0x583e95=readKbId(_0xc4ab1a),_0x48e8d3=readExpectedVersion(_0xc4ab1a),_0x394947=await getKbOrNull(_0xc4ab1a,_0x583e95);if(!_0x394947)return asDryRunResult(noOpData(_0xc4ab1a,_0x583e95,!![]),{'method':_0x5c2a8d(0xfa),'url':DELETE_PATH});assertExpectedKbVersion(_0x394947,_0x48e8d3);const _0xe35d6d=projectKb(_0x394947),_0x530f94=[RAG_WARNING];if(_0x48e8d3!==undefined)_0x530f94['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':'delete','selector':{'id':_0xe35d6d['id'],'scope':'company','appCode':_0xe35d6d['appCode']},'before':_0xe35d6d,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x5c2a8d(0xfa),'path':DELETE_PATH},'warnings':_0x530f94,'verification':{'expectedVersion':_0x48e8d3??null,'atomicCompareAndSet':![],'snapshotHash':_0xe35d6d[_0x5c2a8d(0xfd)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x5c2a8d(0xf2)+_0xe35d6d['id']+_0x5c2a8d(0x101)}},{'method':_0x5c2a8d(0xfa),'url':DELETE_PATH});},async 'execute'(_0x5ece12){const _0x4ad1ba=a154_0x2fbf2a;requireKbExplicitYes(_0x5ece12);const _0x48aabc=readKbId(_0x5ece12),_0x296177=readExpectedVersion(_0x5ece12),_0xf15a7a=await getKbOrNull(_0x5ece12,_0x48aabc);if(!_0xf15a7a)return{'ok':!![],'data':noOpData(_0x5ece12,_0x48aabc,![]),'message':'Company\x20knowledge\x20base\x20'+_0x48aabc+_0x4ad1ba(0xf1)};assertExpectedKbVersion(_0xf15a7a,_0x296177);const _0x1c90b7=projectKb(_0xf15a7a);let _0x4f0919=![];try{await deleteEnterpriseKnowledgeBase(_0x5ece12['cookie'],_0x48aabc);}catch(_0x57db17){if(!isPlatformTransportFailure(_0x57db17))throw _0x57db17;_0x4f0919=!![];}const _0x2ac118=await verifyKbMutationReadback(_0x4ad1ba(0xf6),_0x4f0919,()=>getKbOrNull(_0x5ece12,_0x48aabc));if(_0x2ac118)throw kbError(_0x4f0919?_0x4ad1ba(0xfc):'kb_verification_failed',_0x4ad1ba(0x100)+_0x48aabc+_0x4ad1ba(0x109),_0x4ad1ba(0xff)+_0x48aabc+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x3934b6=[RAG_WARNING];if(_0x296177!==undefined)_0x3934b6[_0x4ad1ba(0xf8)](NON_ATOMIC_WARNING);return _0x4f0919&&_0x3934b6['unshift']('Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x4ad1ba(0xf6),'selector':{'id':_0x1c90b7['id'],'scope':_0x4ad1ba(0xfe),'appCode':_0x1c90b7['appCode']},'before':_0x1c90b7,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x4ad1ba(0xfa),'path':DELETE_PATH},'warnings':_0x3934b6,'verification':{'status':'verified','databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x4f0919,'lookupCommand':_0x4ad1ba(0xf2)+_0x1c90b7['id']+_0x4ad1ba(0x101)}},'message':_0x4ad1ba(0xea)+_0x1c90b7['id']};}};
1
+ const a154_0x455499=a154_0x34f9;(function(_0x272bcd,_0x1b6538){const _0x1f7ea0=a154_0x34f9,_0x579f30=_0x272bcd();while(!![]){try{const _0x3603ed=-parseInt(_0x1f7ea0(0x81))/0x1+parseInt(_0x1f7ea0(0x86))/0x2*(parseInt(_0x1f7ea0(0x8f))/0x3)+parseInt(_0x1f7ea0(0x89))/0x4*(-parseInt(_0x1f7ea0(0x6e))/0x5)+parseInt(_0x1f7ea0(0x8e))/0x6+-parseInt(_0x1f7ea0(0x90))/0x7*(parseInt(_0x1f7ea0(0x83))/0x8)+parseInt(_0x1f7ea0(0x8d))/0x9*(-parseInt(_0x1f7ea0(0x75))/0xa)+parseInt(_0x1f7ea0(0x82))/0xb;if(_0x3603ed===_0x1b6538)break;else _0x579f30['push'](_0x579f30['shift']());}catch(_0x286ba5){_0x579f30['push'](_0x579f30['shift']());}}}(a154_0x1543,0x18dbd));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=a154_0x455499(0x84),RAG_WARNING=a154_0x455499(0x7c),NON_ATOMIC_WARNING=a154_0x455499(0x6d);function readExpectedVersion(_0xbf2653){const _0x2bb119=a154_0x455499,_0x11a1ae=_0xbf2653['flag']('expected-version');if(_0x11a1ae===undefined)return undefined;const _0x5243ad=Number(_0x11a1ae);if(!Number['isSafeInteger'](_0x5243ad)||_0x5243ad<0x0)throw kbError(_0x2bb119(0x7b),_0x2bb119(0x71));return _0x5243ad;}function a154_0x1543(){const _0x56e495=['95518tgoVwo','4220711FnQGlE','835288tnQdeQ','/admin/knowledge-base/delete','verified','170878XEWkXU','Soft-deleted\x20company\x20knowledge\x20base\x20','Company\x20knowledge\x20base\x20','690328oBckfr','cookie','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','delete','17613IKnbKn','669234BTfBlP','6lyitID','7XuPLFI','snapshotHash','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','5xhkOHw','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','POST','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','\x20remains\x20readable\x20after\x20delete.','company','already_absent','980wcFDrM','unshift','kb_verification_failed','number','\x20--format\x20compress','expected-version','kb_expected_version_invalid','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','kb_delete_outcome_unknown','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','rabetbase\x20kb\x20detail\x20--id\x20','appCode'];a154_0x1543=function(){return _0x56e495;};return a154_0x1543();}function a154_0x34f9(_0x22cc3e,_0x4561a3){_0x22cc3e=_0x22cc3e-0x6c;const _0x154399=a154_0x1543();let _0x34f9c0=_0x154399[_0x22cc3e];return _0x34f9c0;}function noOpData(_0x39f035,_0x5b0ca3,_0x383f04){const _0x508771=a154_0x455499;return{'operation':'no_op','selector':{'id':_0x5b0ca3,'scope':_0x508771(0x73),'appCode':_0x39f035[_0x508771(0x80)]},'before':null,'after':null,'dryRun':_0x383f04,'deleteCalled':![],'backend':{'method':_0x508771(0x70),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x508771(0x74),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a154_0x455499(0x8c),'description':a154_0x455499(0x7e),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a154_0x455499(0x78),'required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':a154_0x455499(0x7a),'type':a154_0x455499(0x78),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x46b61d){readKbId(_0x46b61d),readExpectedVersion(_0x46b61d),requireKbExplicitYes(_0x46b61d);},async 'dryRun'(_0xb05f24){const _0x1b2da8=a154_0x455499,_0x118709=readKbId(_0xb05f24),_0xd9fa1e=readExpectedVersion(_0xb05f24),_0x5824a6=await getKbOrNull(_0xb05f24,_0x118709);if(!_0x5824a6)return asDryRunResult(noOpData(_0xb05f24,_0x118709,!![]),{'method':_0x1b2da8(0x70),'url':DELETE_PATH});assertExpectedKbVersion(_0x5824a6,_0xd9fa1e);const _0x423a75=projectKb(_0x5824a6),_0x5394b6=[RAG_WARNING];if(_0xd9fa1e!==undefined)_0x5394b6[_0x1b2da8(0x76)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x1b2da8(0x8c),'selector':{'id':_0x423a75['id'],'scope':_0x1b2da8(0x73),'appCode':_0x423a75[_0x1b2da8(0x80)]},'before':_0x423a75,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x1b2da8(0x70),'path':DELETE_PATH},'warnings':_0x5394b6,'verification':{'expectedVersion':_0xd9fa1e??null,'atomicCompareAndSet':![],'snapshotHash':_0x423a75[_0x1b2da8(0x91)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x1b2da8(0x7f)+_0x423a75['id']+'\x20--format\x20compress'}},{'method':_0x1b2da8(0x70),'url':DELETE_PATH});},async 'execute'(_0x8bf0c4){const _0x28bd23=a154_0x455499;requireKbExplicitYes(_0x8bf0c4);const _0x5ddd11=readKbId(_0x8bf0c4),_0x2d5f1f=readExpectedVersion(_0x8bf0c4),_0x1b192e=await getKbOrNull(_0x8bf0c4,_0x5ddd11);if(!_0x1b192e)return{'ok':!![],'data':noOpData(_0x8bf0c4,_0x5ddd11,![]),'message':_0x28bd23(0x88)+_0x5ddd11+_0x28bd23(0x8b)};assertExpectedKbVersion(_0x1b192e,_0x2d5f1f);const _0x23f71e=projectKb(_0x1b192e);let _0x3d5736=![];try{await deleteEnterpriseKnowledgeBase(_0x8bf0c4[_0x28bd23(0x8a)],_0x5ddd11);}catch(_0x39d1fd){if(!isPlatformTransportFailure(_0x39d1fd))throw _0x39d1fd;_0x3d5736=!![];}const _0x5556d1=await verifyKbMutationReadback('delete',_0x3d5736,()=>getKbOrNull(_0x8bf0c4,_0x5ddd11));if(_0x5556d1)throw kbError(_0x3d5736?_0x28bd23(0x7d):_0x28bd23(0x77),_0x28bd23(0x88)+_0x5ddd11+_0x28bd23(0x72),_0x28bd23(0x6f)+_0x5ddd11+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');const _0x1f6d69=[RAG_WARNING];if(_0x2d5f1f!==undefined)_0x1f6d69['unshift'](NON_ATOMIC_WARNING);return _0x3d5736&&_0x1f6d69[_0x28bd23(0x76)](_0x28bd23(0x6c)),{'ok':!![],'data':{'operation':_0x28bd23(0x8c),'selector':{'id':_0x23f71e['id'],'scope':'company','appCode':_0x23f71e[_0x28bd23(0x80)]},'before':_0x23f71e,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x28bd23(0x70),'path':DELETE_PATH},'warnings':_0x1f6d69,'verification':{'status':_0x28bd23(0x85),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x3d5736,'lookupCommand':_0x28bd23(0x7f)+_0x23f71e['id']+_0x28bd23(0x79)}},'message':_0x28bd23(0x87)+_0x23f71e['id']};}};
@@ -1 +1 @@
1
- function a155_0x2813(){const _0x1079dc=['491136WPvxeD','detail','178281kdWVtu','385620SBZwiU','content','7fNJdLg','13073380YQiHPZ','Loaded\x20company\x20knowledge\x20base\x20','Company\x20knowledge-base\x20id','11nCuGgC','192488BYhiUo','read','4LgvRPI','number','2759235OslGfX','1191120IPUznk'];a155_0x2813=function(){return _0x1079dc;};return a155_0x2813();}const a155_0x3b7981=a155_0x5d0e;(function(_0xdc6f57,_0x37e5ac){const _0x5dbd1c=a155_0x5d0e,_0x6378a=_0xdc6f57();while(!![]){try{const _0x39cb83=parseInt(_0x5dbd1c(0x7b))/0x1*(-parseInt(_0x5dbd1c(0x7c))/0x2)+-parseInt(_0x5dbd1c(0x81))/0x3+parseInt(_0x5dbd1c(0x7e))/0x4*(parseInt(_0x5dbd1c(0x80))/0x5)+-parseInt(_0x5dbd1c(0x85))/0x6*(-parseInt(_0x5dbd1c(0x87))/0x7)+parseInt(_0x5dbd1c(0x82))/0x8+parseInt(_0x5dbd1c(0x84))/0x9+parseInt(_0x5dbd1c(0x88))/0xa;if(_0x39cb83===_0x37e5ac)break;else _0x6378a['push'](_0x6378a['shift']());}catch(_0x3a5dc3){_0x6378a['push'](_0x6378a['shift']());}}}(a155_0x2813,0x86044));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a155_0x5d0e(_0x2ebf5e,_0x446679){_0x2ebf5e=_0x2ebf5e-0x7a;const _0x2813fe=a155_0x2813();let _0x5d0ece=_0x2813fe[_0x2ebf5e];return _0x5d0ece;}export const kbDetail={'service':'kb','command':a155_0x3b7981(0x83),'description':'Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','risk':a155_0x3b7981(0x7d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a155_0x3b7981(0x7f),'required':!![],'description':a155_0x3b7981(0x7a)}],async 'validate'(_0x38c38d){readKbId(_0x38c38d);},async 'execute'(_0x324dba){const _0x2dbc26=a155_0x3b7981,_0x315260=readKbId(_0x324dba),_0x211831=await requireKb(_0x324dba,_0x315260);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x211831),'content':_0x211831[_0x2dbc26(0x86)]}},'message':_0x2dbc26(0x89)+_0x315260};}};
1
+ const a155_0x4aee38=a155_0x41df;function a155_0x3ef9(){const _0x323603=['9klVkVC','3099256gfWuoK','2144556OsOWZN','1468VAwfJP','191154zqBNky','515907nPEEbU','Company\x20knowledge-base\x20id','Loaded\x20company\x20knowledge\x20base\x20','content','12768170dibDfm','9uXjJhl','283312EtyBsj','read','4725TREvFC'];a155_0x3ef9=function(){return _0x323603;};return a155_0x3ef9();}function a155_0x41df(_0x6147ad,_0x15b5e5){_0x6147ad=_0x6147ad-0x139;const _0x3ef9a7=a155_0x3ef9();let _0x41df3d=_0x3ef9a7[_0x6147ad];return _0x41df3d;}(function(_0x83d851,_0x40240d){const _0x2e8961=a155_0x41df,_0x41696e=_0x83d851();while(!![]){try{const _0x27da0b=-parseInt(_0x2e8961(0x141))/0x1+parseInt(_0x2e8961(0x13a))/0x2*(-parseInt(_0x2e8961(0x144))/0x3)+parseInt(_0x2e8961(0x139))/0x4*(parseInt(_0x2e8961(0x143))/0x5)+-parseInt(_0x2e8961(0x146))/0x6+parseInt(_0x2e8961(0x13b))/0x7+-parseInt(_0x2e8961(0x145))/0x8*(parseInt(_0x2e8961(0x140))/0x9)+parseInt(_0x2e8961(0x13f))/0xa;if(_0x27da0b===_0x40240d)break;else _0x41696e['push'](_0x41696e['shift']());}catch(_0x5afc3c){_0x41696e['push'](_0x41696e['shift']());}}}(a155_0x3ef9,0x5d5f9));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':'detail','description':'Show\x20one\x20company\x20knowledge\x20base\x20with\x20full\x20content\x20for\x20the\x20resolved\x20app','risk':a155_0x4aee38(0x142),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':a155_0x4aee38(0x13c)}],async 'validate'(_0x1fa1a9){readKbId(_0x1fa1a9);},async 'execute'(_0x1888cc){const _0x419bfe=a155_0x4aee38,_0x4cb33e=readKbId(_0x1888cc),_0x249ac4=await requireKb(_0x1888cc,_0x4cb33e);return{'ok':!![],'data':{'knowledgeBase':{...projectKb(_0x249ac4),'content':_0x249ac4[_0x419bfe(0x13e)]}},'message':_0x419bfe(0x13d)+_0x4cb33e};}};
@@ -1 +1 @@
1
- (function(_0x229b50,_0x4bfd70){const _0x365373=a156_0x4917,_0x4abe36=_0x229b50();while(!![]){try{const _0x4f3366=parseInt(_0x365373(0x1fa))/0x1*(-parseInt(_0x365373(0x1f9))/0x2)+parseInt(_0x365373(0x1fb))/0x3*(parseInt(_0x365373(0x1fd))/0x4)+parseInt(_0x365373(0x1f8))/0x5*(-parseInt(_0x365373(0x1fc))/0x6)+parseInt(_0x365373(0x1f4))/0x7+-parseInt(_0x365373(0x1f3))/0x8+-parseInt(_0x365373(0x1f6))/0x9*(-parseInt(_0x365373(0x1f5))/0xa)+-parseInt(_0x365373(0x1fe))/0xb*(-parseInt(_0x365373(0x1f7))/0xc);if(_0x4f3366===_0x4bfd70)break;else _0x4abe36['push'](_0x4abe36['shift']());}catch(_0x35d6d9){_0x4abe36['push'](_0x4abe36['shift']());}}}(a156_0x40c2,0xd718d));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';function a156_0x4917(_0x2426eb,_0x146b2d){_0x2426eb=_0x2426eb-0x1f3;const _0x40c2df=a156_0x40c2();let _0x491758=_0x40c2df[_0x2426eb];return _0x491758;}function a156_0x40c2(){const _0x5b2235=['4qqVFic','423293pERZtg','31947xqFoOQ','30xycRNf','72eypffM','1715791XJPUiy','9457328AdbfSr','4726330ICLrDQ','20FiyDqq','950364ycTJhf','240dDizGb','1287895BBmcme'];a156_0x40c2=function(){return _0x5b2235;};return a156_0x40c2();}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
1
+ (function(_0x354842,_0x1f3e7e){const _0x34798f=a156_0x118c,_0x248bc3=_0x354842();while(!![]){try{const _0x3c5460=parseInt(_0x34798f(0x197))/0x1+-parseInt(_0x34798f(0x19b))/0x2*(-parseInt(_0x34798f(0x19a))/0x3)+parseInt(_0x34798f(0x19f))/0x4*(-parseInt(_0x34798f(0x1a0))/0x5)+parseInt(_0x34798f(0x19d))/0x6*(parseInt(_0x34798f(0x199))/0x7)+parseInt(_0x34798f(0x19e))/0x8+parseInt(_0x34798f(0x198))/0x9+-parseInt(_0x34798f(0x19c))/0xa*(parseInt(_0x34798f(0x196))/0xb);if(_0x3c5460===_0x1f3e7e)break;else _0x248bc3['push'](_0x248bc3['shift']());}catch(_0x4c421e){_0x248bc3['push'](_0x248bc3['shift']());}}}(a156_0x529a,0xa4b40));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';function a156_0x118c(_0x575585,_0x18fd1d){_0x575585=_0x575585-0x196;const _0x529a5a=a156_0x529a();let _0x118c6a=_0x529a5a[_0x575585];return _0x118c6a;}import{kbDelete}from'../../commands/kb/delete.js';function a156_0x529a(){const _0x111b68=['874959jGlTes','8302212oqjHKJ','358267NHtTBK','75198NHUPVn','34IYCZFP','34108820rAUejx','72VzKKbd','10052728MjZTQE','136gNULTl','1295qsewgB','11HRkezl'];a156_0x529a=function(){return _0x111b68;};return a156_0x529a();}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
@@ -1 +1 @@
1
- const a157_0x4dc0cb=a157_0x1c20;(function(_0x246e88,_0x4659d6){const _0x422341=a157_0x1c20,_0x355bd9=_0x246e88();while(!![]){try{const _0x430fae=parseInt(_0x422341(0x1a8))/0x1*(-parseInt(_0x422341(0x1a6))/0x2)+parseInt(_0x422341(0x1a2))/0x3*(parseInt(_0x422341(0x1ad))/0x4)+parseInt(_0x422341(0x1a9))/0x5*(-parseInt(_0x422341(0x1a3))/0x6)+-parseInt(_0x422341(0x1a1))/0x7*(-parseInt(_0x422341(0x1b3))/0x8)+-parseInt(_0x422341(0x1a5))/0x9*(-parseInt(_0x422341(0x1b1))/0xa)+-parseInt(_0x422341(0x1a7))/0xb+-parseInt(_0x422341(0x1ae))/0xc;if(_0x430fae===_0x4659d6)break;else _0x355bd9['push'](_0x355bd9['shift']());}catch(_0x542366){_0x355bd9['push'](_0x355bd9['shift']());}}}(a157_0x4aea,0x79b91));function a157_0x1c20(_0xdf152,_0x197001){_0xdf152=_0xdf152-0x1a0;const _0x4aeab7=a157_0x4aea();let _0x1c209f=_0x4aeab7[_0xdf152];return _0x1c209f;}function a157_0x4aea(){const _0x2f9a73=['479922RPkMhv','map','5113593UpSOuU','26iDNrfp','389367SldWKN','24018oZmoZK','15XrgUgj','appCode','list','title','4DWCCpn','7948068bgsrWi','string','Filter\x20by\x20knowledge-base\x20title','10qCcNTk','\x20company\x20knowledge\x20base(s)\x20for\x20','8lJFspv','length','str','1928136AsnLqc','2714649FgHcdr'];a157_0x4aea=function(){return _0x2f9a73;};return a157_0x4aea();}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a157_0x4dc0cb(0x1ab),'description':'List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0x4dc0cb(0x1ac),'type':a157_0x4dc0cb(0x1af),'required':![],'description':a157_0x4dc0cb(0x1b0)}],async 'execute'(_0x392985){const _0x367d1f=a157_0x4dc0cb,_0x1f13cd=_0x392985[_0x367d1f(0x1a0)]('title')['trim'](),_0x5d4106=await fetchAllCompanyKnowledgeBases(_0x392985,{..._0x1f13cd?{'title':_0x1f13cd}:{}}),_0x6493e2=_0x5d4106[_0x367d1f(0x1a4)](projectKb);return{'ok':!![],'data':{'total':_0x6493e2[_0x367d1f(0x1b4)],'knowledgeBases':_0x6493e2},'message':'Found\x20'+_0x6493e2[_0x367d1f(0x1b4)]+_0x367d1f(0x1b2)+_0x392985[_0x367d1f(0x1aa)]};}};
1
+ const a157_0x358a55=a157_0x1dc5;function a157_0x5af6(){const _0x3128ea=['25aZNWli','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','40srkkOT','Found\x20','1650737kQxndH','21KZIQFt','98960LrqpmX','map','178868zbsukR','263557OLrkJd','1288PzYPFA','\x20company\x20knowledge\x20base(s)\x20for\x20','trim','string','13979rLnoVV','length','title','1939608pDPIay','1973724YMNYeG','str','list'];a157_0x5af6=function(){return _0x3128ea;};return a157_0x5af6();}(function(_0x5c08ee,_0x4d461c){const _0x52ba96=a157_0x1dc5,_0x2fda4d=_0x5c08ee();while(!![]){try{const _0x419c9e=parseInt(_0x52ba96(0x15a))/0x1+-parseInt(_0x52ba96(0x16c))/0x2*(-parseInt(_0x52ba96(0x16b))/0x3)+-parseInt(_0x52ba96(0x159))/0x4*(parseInt(_0x52ba96(0x166))/0x5)+parseInt(_0x52ba96(0x163))/0x6+-parseInt(_0x52ba96(0x15f))/0x7*(-parseInt(_0x52ba96(0x15b))/0x8)+-parseInt(_0x52ba96(0x162))/0x9+parseInt(_0x52ba96(0x168))/0xa*(-parseInt(_0x52ba96(0x16a))/0xb);if(_0x419c9e===_0x4d461c)break;else _0x2fda4d['push'](_0x2fda4d['shift']());}catch(_0x223bf7){_0x2fda4d['push'](_0x2fda4d['shift']());}}}(a157_0x5af6,0x35f5f));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';function a157_0x1dc5(_0x314b68,_0x2eea12){_0x314b68=_0x314b68-0x159;const _0x5af6c0=a157_0x5af6();let _0x1dc569=_0x5af6c0[_0x314b68];return _0x1dc569;}export const kbList={'service':'kb','command':a157_0x358a55(0x165),'description':a157_0x358a55(0x167),'risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a157_0x358a55(0x161),'type':a157_0x358a55(0x15e),'required':![],'description':'Filter\x20by\x20knowledge-base\x20title'}],async 'execute'(_0x52414c){const _0x496b1c=a157_0x358a55,_0x1e56a2=_0x52414c[_0x496b1c(0x164)](_0x496b1c(0x161))[_0x496b1c(0x15d)](),_0x204b9a=await fetchAllCompanyKnowledgeBases(_0x52414c,{..._0x1e56a2?{'title':_0x1e56a2}:{}}),_0x31dee8=_0x204b9a[_0x496b1c(0x16d)](projectKb);return{'ok':!![],'data':{'total':_0x31dee8[_0x496b1c(0x160)],'knowledgeBases':_0x31dee8},'message':_0x496b1c(0x169)+_0x31dee8[_0x496b1c(0x160)]+_0x496b1c(0x15c)+_0x52414c['appCode']};}};