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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (342) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync-all.d.ts +2 -0
  101. package/lib/commands/deployment/sync-all.js +1 -0
  102. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  103. package/lib/commands/deployment/sync-jobs.js +1 -0
  104. package/lib/commands/deployment/sync-status.d.ts +2 -0
  105. package/lib/commands/deployment/sync-status.js +1 -0
  106. package/lib/commands/deployment/sync.js +1 -1
  107. package/lib/commands/doctor.js +1 -1
  108. package/lib/commands/file/index.js +1 -1
  109. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  110. package/lib/commands/instant-api-policy/current.js +1 -0
  111. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  112. package/lib/commands/instant-api-policy/index.js +1 -0
  113. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  114. package/lib/commands/instant-api-policy/init.js +1 -0
  115. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  116. package/lib/commands/instant-api-policy/publish.js +1 -0
  117. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  118. package/lib/commands/instant-api-policy/pull.js +1 -0
  119. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  120. package/lib/commands/instant-api-policy/revision.js +1 -0
  121. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  122. package/lib/commands/instant-api-policy/revisions.js +1 -0
  123. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  124. package/lib/commands/instant-api-policy/rollback.js +1 -0
  125. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  126. package/lib/commands/instant-api-policy/shared.js +1 -0
  127. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  128. package/lib/commands/instant-api-policy/validate.js +1 -0
  129. package/lib/commands/issue/index.js +1 -1
  130. package/lib/commands/issue/nudge.js +1 -1
  131. package/lib/commands/issue/report.js +1 -1
  132. package/lib/commands/issue/shared.js +1 -1
  133. package/lib/commands/kb/create.js +1 -1
  134. package/lib/commands/kb/delete.js +1 -1
  135. package/lib/commands/kb/detail.js +1 -1
  136. package/lib/commands/kb/index.js +1 -1
  137. package/lib/commands/kb/list.js +1 -1
  138. package/lib/commands/kb/search.js +1 -1
  139. package/lib/commands/kb/shared.js +1 -1
  140. package/lib/commands/kb/update.js +1 -1
  141. package/lib/commands/logs/index.js +1 -1
  142. package/lib/commands/menu/asset-update.js +1 -1
  143. package/lib/commands/menu/delete.js +1 -1
  144. package/lib/commands/menu/external-link-create.js +1 -1
  145. package/lib/commands/menu/external-link-update.js +1 -1
  146. package/lib/commands/menu/group-create.js +1 -1
  147. package/lib/commands/menu/group-update.js +1 -1
  148. package/lib/commands/menu/index.js +1 -1
  149. package/lib/commands/menu/list.js +1 -1
  150. package/lib/commands/menu/move.js +1 -1
  151. package/lib/commands/menu/regroup-start.js +1 -1
  152. package/lib/commands/menu/rename.js +1 -1
  153. package/lib/commands/menu/shared/compare-table.js +1 -1
  154. package/lib/commands/menu/shared/delete-plan.js +1 -1
  155. package/lib/commands/menu/shared/facts.js +1 -1
  156. package/lib/commands/menu/shared/index.js +1 -1
  157. package/lib/commands/menu/shared/inquirer.js +1 -1
  158. package/lib/commands/menu/shared/local-pages.js +1 -1
  159. package/lib/commands/menu/shared/logic.js +1 -1
  160. package/lib/commands/menu/shared/mutations.js +1 -1
  161. package/lib/commands/menu/shared/service.js +1 -1
  162. package/lib/commands/menu/shared/sync-core.js +1 -1
  163. package/lib/commands/menu/shared/update-core.js +1 -1
  164. package/lib/commands/menu/shared/valid-url.js +1 -1
  165. package/lib/commands/menu/sync.js +1 -1
  166. package/lib/commands/menu/visibility-update.js +1 -1
  167. package/lib/commands/notification/config-create.js +1 -1
  168. package/lib/commands/notification/config-delete.js +1 -1
  169. package/lib/commands/notification/config-list.js +1 -1
  170. package/lib/commands/notification/config-update.js +1 -1
  171. package/lib/commands/notification/index.js +1 -1
  172. package/lib/commands/notification/shared.js +1 -1
  173. package/lib/commands/ocr/index.js +1 -1
  174. package/lib/commands/page/create.js +1 -1
  175. package/lib/commands/page/custom/detail.js +1 -1
  176. package/lib/commands/page/custom/list.js +1 -1
  177. package/lib/commands/page/custom/publish.js +1 -1
  178. package/lib/commands/page/custom/shared.js +1 -1
  179. package/lib/commands/page/custom/syntax.js +1 -1
  180. package/lib/commands/page/custom/template.js +1 -1
  181. package/lib/commands/page/custom/update.js +1 -1
  182. package/lib/commands/page/data-list-status.js +1 -1
  183. package/lib/commands/page/generate-start.js +1 -1
  184. package/lib/commands/page/generate-status.js +1 -1
  185. package/lib/commands/page/index.js +1 -1
  186. package/lib/commands/page/pull.js +1 -1
  187. package/lib/commands/page/push.js +1 -1
  188. package/lib/commands/page/relation-audit.js +1 -1
  189. package/lib/commands/page/restore.js +1 -1
  190. package/lib/commands/page/shared.js +1 -1
  191. package/lib/commands/page/sync.js +1 -1
  192. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  193. package/lib/commands/project/create/format-elapsed.js +1 -1
  194. package/lib/commands/project/create/main.js +1 -1
  195. package/lib/commands/project/create/materialize-project-template.js +1 -1
  196. package/lib/commands/project/create/project-name.js +1 -1
  197. package/lib/commands/project/create/project-template-archive.js +1 -1
  198. package/lib/commands/project/create/project-template-path.js +1 -1
  199. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  200. package/lib/commands/project/create/use-format-code.js +1 -1
  201. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  202. package/lib/commands/project/domain-routing-sync.js +1 -1
  203. package/lib/commands/project/index.js +1 -1
  204. package/lib/commands/project/upgrade.js +1 -1
  205. package/lib/commands/registry.js +1 -1
  206. package/lib/commands/role/delete.js +1 -1
  207. package/lib/commands/role/detail.js +1 -1
  208. package/lib/commands/role/index.js +1 -1
  209. package/lib/commands/role/list.js +1 -1
  210. package/lib/commands/role/shared.js +1 -1
  211. package/lib/commands/role/update.js +1 -1
  212. package/lib/commands/role/user-add.js +1 -1
  213. package/lib/commands/role/user-remove.js +1 -1
  214. package/lib/commands/role/user-resolve.js +1 -1
  215. package/lib/commands/rule/get.js +1 -1
  216. package/lib/commands/rule/index.js +1 -1
  217. package/lib/commands/rule/list.js +1 -1
  218. package/lib/commands/rule/set.js +1 -1
  219. package/lib/commands/rule/shared.js +1 -1
  220. package/lib/commands/run/index.js +1 -1
  221. package/lib/commands/schema.js +1 -1
  222. package/lib/commands/sql/create.js +1 -1
  223. package/lib/commands/sql/delete.js +1 -1
  224. package/lib/commands/sql/detail.js +1 -1
  225. package/lib/commands/sql/exec.js +1 -1
  226. package/lib/commands/sql/index.js +1 -1
  227. package/lib/commands/sql/list.js +1 -1
  228. package/lib/commands/sql/pull.js +1 -1
  229. package/lib/commands/sql/push.js +1 -1
  230. package/lib/commands/sql/shared.js +1 -1
  231. package/lib/commands/sql/status.js +1 -1
  232. package/lib/commands/sql/validate.js +1 -1
  233. package/lib/commands/task/index.js +1 -1
  234. package/lib/commands/task/status.js +1 -1
  235. package/lib/commands/tenant/index.js +1 -1
  236. package/lib/commands/tenant/members-list.js +1 -1
  237. package/lib/commands/tenant/shared.js +1 -1
  238. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  239. package/lib/commands/user-account/index.js +1 -1
  240. package/lib/commands/workspace/add.js +1 -1
  241. package/lib/commands/workspace/index.js +1 -1
  242. package/lib/commands/workspace/remove.js +1 -1
  243. package/lib/config/domain-config.js +1 -1
  244. package/lib/config/project-domain-routing.js +1 -1
  245. package/lib/config/schema.js +1 -1
  246. package/lib/constant/cdn.js +1 -1
  247. package/lib/constant/cli.js +1 -1
  248. package/lib/constant/defaults.js +1 -1
  249. package/lib/constant/domain.js +1 -1
  250. package/lib/constant/env.js +1 -1
  251. package/lib/constant/output.js +1 -1
  252. package/lib/constant/paths.js +1 -1
  253. package/lib/constant/region.js +1 -1
  254. package/lib/constant/risk.js +1 -1
  255. package/lib/constant/routing-profile.js +1 -1
  256. package/lib/context/app-resolver.js +1 -1
  257. package/lib/context/auth-resolver.js +1 -1
  258. package/lib/context/config-loader.js +1 -1
  259. package/lib/context.js +1 -1
  260. package/lib/core/alias-resolver.js +1 -1
  261. package/lib/core/api-client.d.ts +113 -0
  262. package/lib/core/api-client.js +1 -1
  263. package/lib/core/bff/config.js +1 -1
  264. package/lib/core/bff/file-system.js +1 -1
  265. package/lib/core/bff/hash.js +1 -1
  266. package/lib/core/bff/lock.js +1 -1
  267. package/lib/core/bff/utils.js +1 -1
  268. package/lib/core/db-resolver.js +1 -1
  269. package/lib/core/instant-api-policy/config.d.ts +23 -0
  270. package/lib/core/instant-api-policy/config.js +1 -0
  271. package/lib/core/kb-search-client.js +1 -1
  272. package/lib/core/page/file-system.js +1 -1
  273. package/lib/core/page/hash.js +1 -1
  274. package/lib/core/page/lock.js +1 -1
  275. package/lib/core/sql-index-auditor.js +1 -1
  276. package/lib/core/sql-sync/config.js +1 -1
  277. package/lib/core/sql-sync/file-system.js +1 -1
  278. package/lib/core/sql-sync/hash.js +1 -1
  279. package/lib/core/sql-sync/lock.js +1 -1
  280. package/lib/core/sql-sync/utils.js +1 -1
  281. package/lib/core/sql-validator.js +1 -1
  282. package/lib/errors.js +1 -1
  283. package/lib/framework/build-all-flags.js +1 -1
  284. package/lib/framework/error-output.js +1 -1
  285. package/lib/framework/explicit-yes.js +1 -1
  286. package/lib/framework/flags.js +1 -1
  287. package/lib/framework/help.js +1 -1
  288. package/lib/framework/index.js +1 -1
  289. package/lib/framework/output.js +1 -1
  290. package/lib/framework/response.js +1 -1
  291. package/lib/framework/runner-alias.js +1 -1
  292. package/lib/framework/runner.js +1 -1
  293. package/lib/framework/schema-export.js +1 -1
  294. package/lib/framework/supported-flags.js +1 -1
  295. package/lib/framework/types.js +1 -1
  296. package/lib/generated/build-info.d.ts +4 -4
  297. package/lib/generated/build-info.js +1 -1
  298. package/lib/generated/official-routing.js +1 -1
  299. package/lib/generated/routing-contract.js +1 -1
  300. package/lib/help.js +1 -1
  301. package/lib/postinstall.js +1 -1
  302. package/lib/runtime/confirmation.js +1 -1
  303. package/lib/runtime/event.js +1 -1
  304. package/lib/runtime/index.js +1 -1
  305. package/lib/runtime/queue.js +1 -1
  306. package/lib/runtime/resolve.js +1 -1
  307. package/lib/skills/builtin-skill.js +1 -1
  308. package/lib/skills/main.js +1 -1
  309. package/lib/skills/npx-skills-add.js +1 -1
  310. package/lib/skills/skill-presence.js +1 -1
  311. package/lib/telemetry/cli-command-trace.js +1 -1
  312. package/lib/telemetry/cli-help-trace.js +1 -1
  313. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  314. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  315. package/lib/telemetry/send-cli-trace-log.js +1 -1
  316. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  317. package/lib/utils/ai_config.js +1 -1
  318. package/lib/utils/apply-jq-filter.js +1 -1
  319. package/lib/utils/cdn-config.js +1 -1
  320. package/lib/utils/check-sdk-version.js +1 -1
  321. package/lib/utils/cli-version-check.js +1 -1
  322. package/lib/utils/cli-version-policy.js +1 -1
  323. package/lib/utils/config.js +1 -1
  324. package/lib/utils/entity-with-id.js +1 -1
  325. package/lib/utils/file-utils.js +1 -1
  326. package/lib/utils/guides-cdn.js +1 -1
  327. package/lib/utils/http-client.js +1 -1
  328. package/lib/utils/is-non-interactive.js +1 -1
  329. package/lib/utils/logger.js +1 -1
  330. package/lib/utils/params.js +1 -1
  331. package/lib/utils/platform.js +1 -1
  332. package/lib/utils/sleep.js +1 -1
  333. package/lib/utils/template-replacer.js +1 -1
  334. package/lib/utils/update-notice.js +1 -1
  335. package/lib/utils/version.js +1 -1
  336. package/lib/utils/with-active-cookie.js +1 -1
  337. package/lib/utils/write-cli-side-channel.js +1 -1
  338. package/package.json +1 -1
  339. package/skills/rabetbase/SKILL.md +11 -5
  340. package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
  341. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  342. package/skills/rabetbase.manifest.json +4 -3
@@ -0,0 +1 @@
1
+ const a101_0x3f688a=a101_0x3d2d;(function(_0x1747bc,_0x3ec403){const _0x109a3b=a101_0x3d2d,_0x1b2c05=_0x1747bc();while(!![]){try{const _0x2ef793=-parseInt(_0x109a3b(0x1b5))/0x1+-parseInt(_0x109a3b(0x1ad))/0x2+-parseInt(_0x109a3b(0x1b4))/0x3+parseInt(_0x109a3b(0x19c))/0x4+-parseInt(_0x109a3b(0x19d))/0x5*(parseInt(_0x109a3b(0x1a0))/0x6)+-parseInt(_0x109a3b(0x1a8))/0x7+parseInt(_0x109a3b(0x1a3))/0x8;if(_0x2ef793===_0x3ec403)break;else _0x1b2c05['push'](_0x1b2c05['shift']());}catch(_0x54baca){_0x1b2c05['push'](_0x1b2c05['shift']());}}}(a101_0x2432,0x81f05));import{getDeploymentMetadataSyncStatus}from'../../core/api-client.js';function a101_0x2432(){const _0x254670=['has','Preserved\x20server-defined\x20status\x20','filter','2994450oJUvyC','536800QlpkLI','status','results','map','RUNNING','4134896CcGpwe','292280xBeNYd','length','deployment','84QeWmOF','\x20is\x20','bizType','18316432JLTYsd','job-id','Deployment\x20synchronization\x20job\x20ID','sync-status','FAILED','1696590NoeLki','PARTIAL_SUCCESS','reduce','action','Deployment\x20synchronization\x20job\x20','390690TbvKeZ','validation','num','appCode'];a101_0x2432=function(){return _0x254670;};return a101_0x2432();}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a101_0x3f688a(0x1a9),'FAILED']),ACTIVE_STATUSES=new Set(['PENDING',a101_0x3f688a(0x19b)]);export const deploymentSyncStatus={'service':a101_0x3f688a(0x19f),'command':a101_0x3f688a(0x1a6),'description':'Get\x20application\x20deployment\x20synchronization\x20job\x20status','risk':'read','requiresAppCode':!![],'strictFlags':!![],'structuredErrors':!![],'flags':[{'name':a101_0x3f688a(0x1a4),'type':'number','required':!![],'description':a101_0x3f688a(0x1a5)}],async 'validate'(_0x5a0386){const _0x51f8b3=a101_0x3f688a;readJobId(_0x5a0386[_0x51f8b3(0x1af)](_0x51f8b3(0x1a4)));},async 'execute'(_0x3f86c9){const _0x7033a1=a101_0x3f688a,_0x3d765c=readJobId(_0x3f86c9[_0x7033a1(0x1af)]('job-id')),_0x1d8353=await getDeploymentMetadataSyncStatus({'jobId':_0x3d765c,'appCode':_0x3f86c9[_0x7033a1(0x1b0)]}),_0x63befd=TERMINAL_STATUSES['has'](_0x1d8353[_0x7033a1(0x1b6)])?!![]:ACTIVE_STATUSES[_0x7033a1(0x1b1)](_0x1d8353[_0x7033a1(0x1b6)])?![]:null,_0x1063ab=countBy(_0x1d8353[_0x7033a1(0x199)][_0x7033a1(0x19a)](_0xbdf275=>_0xbdf275[_0x7033a1(0x1a2)])),_0x4f9320=countBy(_0x1d8353[_0x7033a1(0x199)][_0x7033a1(0x19a)](_0x2287ea=>_0x2287ea[_0x7033a1(0x1ab)])),_0x1ba4d2=_0x63befd===null?[_0x7033a1(0x1b2)+_0x1d8353[_0x7033a1(0x1b6)]+';\x20terminal\x20state\x20is\x20unknown\x20to\x20this\x20CLI\x20version.']:[];return{'ok':!![],'data':{'job':_0x1d8353,'isTerminal':_0x63befd,'summary':{'total':_0x1d8353['results'][_0x7033a1(0x19e)],'failed':_0x1d8353['results'][_0x7033a1(0x1b3)](_0x25844b=>_0x25844b[_0x7033a1(0x1ab)]===_0x7033a1(0x1a7))[_0x7033a1(0x19e)],'byBizType':_0x1063ab,'byAction':_0x4f9320},'warnings':_0x1ba4d2},'message':_0x7033a1(0x1ac)+_0x3d765c+_0x7033a1(0x1a1)+_0x1d8353[_0x7033a1(0x1b6)]+'.'};}};function readJobId(_0x1e3487){const _0x1e9da5=a101_0x3f688a;if(!Number['isSafeInteger'](_0x1e3487)||_0x1e3487<=0x0)throw CliErrors[_0x1e9da5(0x1ae)]('--job-id\x20must\x20be\x20a\x20positive\x20integer.');return _0x1e3487;}function a101_0x3d2d(_0x56e3d0,_0x3281cc){_0x56e3d0=_0x56e3d0-0x199;const _0x243293=a101_0x2432();let _0x3d2de5=_0x243293[_0x56e3d0];return _0x3d2de5;}function countBy(_0x12fbd1){const _0x584729=a101_0x3f688a;return _0x12fbd1[_0x584729(0x1aa)]((_0x2b1b52,_0x31933c)=>{return _0x2b1b52[_0x31933c]=(_0x2b1b52[_0x31933c]??0x0)+0x1,_0x2b1b52;},{});}
@@ -1 +1 @@
1
- const a99_0x2e0524=a99_0x3c8e;(function(_0x26b21a,_0x5407ba){const _0x53a076=a99_0x3c8e,_0x2a1d76=_0x26b21a();while(!![]){try{const _0x473ce7=-parseInt(_0x53a076(0x1b5))/0x1*(parseInt(_0x53a076(0x1b0))/0x2)+parseInt(_0x53a076(0x189))/0x3*(-parseInt(_0x53a076(0x1b9))/0x4)+-parseInt(_0x53a076(0x19e))/0x5*(parseInt(_0x53a076(0x195))/0x6)+parseInt(_0x53a076(0x18a))/0x7*(-parseInt(_0x53a076(0x180))/0x8)+-parseInt(_0x53a076(0x187))/0x9+parseInt(_0x53a076(0x1bc))/0xa*(-parseInt(_0x53a076(0x1a8))/0xb)+-parseInt(_0x53a076(0x1a2))/0xc*(-parseInt(_0x53a076(0x18b))/0xd);if(_0x473ce7===_0x5407ba)break;else _0x2a1d76['push'](_0x2a1d76['shift']());}catch(_0x399b09){_0x2a1d76['push'](_0x2a1d76['shift']());}}}(a99_0x5edf,0x4f205));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a99_0x5edf(){const _0x1016d9=['boolean','2517053TfbXSc','warnings','dataset','deployment','not_submitted','items','Metadata\x20type\x20to\x20synchronize','POST','290RcuSzc','input','--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.','appCode','Dataset\x20sync\x20may\x20commit\x20target\x20connection\x20metadata\x20before\x20item\x20synchronization;\x20that\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','977KhYlnI','\x20item(s).','deployment_metadata_sync','join','255876ErpDyf','FAILED','\x20failed\x20item(s).','20eUAQFR','trim','succeeded','defineProperty','unshift','string','UPDATED','98216ApEYDg','selector','split','map','Synchronized\x20','includes','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.','4167324HoUqng','action','30kWitAT','364gJiAvl','26cOwAfY','target_read_api_unavailable','bff','codes','reduce','type','Would\x20synchronize\x20','--type\x20must\x20be\x20one\x20of:\x20','--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.','Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.','108iVykwG','str','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','confirm','bizCodes','sync','Confirm\x20the\x20metadata\x20codes\x20and\x20start\x20synchronization','sql','84345xjsOri','filter','Synchronize\x20selected\x20development\x20metadata\x20into\x20the\x20server-managed\x20deployment\x20target.','bool','17809104QzOQJi','validation','deployment_sync_partial_failure','length','partial_failure'];a99_0x5edf=function(){return _0x1016d9;};return a99_0x5edf();}import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SYNC_PATH='/smartapi/data-sync/sync',SYNC_TYPES=[a99_0x2e0524(0x1aa),a99_0x2e0524(0x18d),a99_0x2e0524(0x19d)],TYPE_FLAG={'name':a99_0x2e0524(0x190),'type':a99_0x2e0524(0x17e),'required':!![],'enum':[...SYNC_TYPES],'description':a99_0x2e0524(0x1ae)},CODES_FLAG={'name':a99_0x2e0524(0x18e),'type':a99_0x2e0524(0x17e),'required':!![],'description':'Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)'},CONFIRM_FLAG={'name':a99_0x2e0524(0x199),'type':a99_0x2e0524(0x1a7),'description':a99_0x2e0524(0x19c)};export const deploymentSync={'service':a99_0x2e0524(0x1ab),'command':a99_0x2e0524(0x19b),'description':'Synchronize\x20selected\x20development\x20metadata\x20to\x20the\x20server-managed\x20deployment\x20target','risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a99_0x2e0524(0x1a0),'flags':[TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x476e30){buildSyncPlan(_0x476e30);},async 'dryRun'(_0x63d13c){const _0x1c1fde=a99_0x2e0524,_0x67dc21=buildSyncPlan(_0x63d13c);return asDryRunResult(buildOutput(_0x67dc21,[],!![],_0x1c1fde(0x1ac)),{'method':'POST','url':SYNC_PATH,'description':_0x1c1fde(0x191)+_0x67dc21[_0x1c1fde(0x1b1)]['bizCodes'][_0x1c1fde(0x1a5)]+'\x20'+_0x67dc21['input']['bizType']+_0x1c1fde(0x1b6)});},async 'execute'(_0x5de6dc){const _0x341a5a=a99_0x2e0524,_0x40ab43=buildSyncPlan(_0x5de6dc);if(!_0x5de6dc[_0x341a5a(0x1a1)](_0x341a5a(0x199)))throw CliErrors[_0x341a5a(0x1a3)](_0x341a5a(0x193),_0x341a5a(0x198));let _0x14fe1a;try{_0x14fe1a=(await syncDeploymentMetadata(_0x40ab43[_0x341a5a(0x1b1)]))[_0x341a5a(0x1ad)];}catch(_0xb9a342){if(!isPlatformTransportFailure(_0xb9a342))throw _0xb9a342;const _0x3cc0a6=new CliError('deployment_sync_outcome_unknown',0x2,'Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.');attachErrorData(_0x3cc0a6,buildOutput(_0x40ab43,[],![],'unknown'));throw _0x3cc0a6;}const _0x24e49d=_0x14fe1a[_0x341a5a(0x19f)](_0x4d58f0=>_0x4d58f0[_0x341a5a(0x188)]===_0x341a5a(0x1ba)),_0x10c054=_0x24e49d[_0x341a5a(0x1a5)]>0x0?_0x341a5a(0x1a6):_0x341a5a(0x1be),_0x289f78=buildOutput(_0x40ab43,_0x14fe1a,![],_0x10c054);if(_0x24e49d[_0x341a5a(0x1a5)]>0x0){const _0x49ed3c=new CliError(_0x341a5a(0x1a4),0x1,'Deployment\x20sync\x20completed\x20with\x20'+_0x24e49d[_0x341a5a(0x1a5)]+'/'+_0x14fe1a[_0x341a5a(0x1a5)]+_0x341a5a(0x1bb),_0x341a5a(0x194));attachErrorData(_0x49ed3c,_0x289f78);throw _0x49ed3c;}return{'ok':!![],'data':_0x289f78,'message':_0x341a5a(0x184)+_0x14fe1a[_0x341a5a(0x1a5)]+'\x20deployment\x20metadata\x20item(s).'};}};function buildSyncPlan(_0x1537b6){const _0x73cfbd=a99_0x2e0524,_0x18e450=_0x1537b6[_0x73cfbd(0x196)](_0x73cfbd(0x190))[_0x73cfbd(0x1bd)]();if(!SYNC_TYPES[_0x73cfbd(0x185)](_0x18e450))throw CliErrors['validation'](_0x73cfbd(0x192)+SYNC_TYPES[_0x73cfbd(0x1b8)](',\x20')+'.');const _0x47da1e=normalizeCodes(_0x1537b6[_0x73cfbd(0x196)](_0x73cfbd(0x18e)));if(_0x47da1e['length']===0x0)throw CliErrors[_0x73cfbd(0x1a3)](_0x73cfbd(0x186));if(_0x47da1e['length']>0x64)throw CliErrors[_0x73cfbd(0x1a3)](_0x73cfbd(0x1b2));const _0xa816d1={'appCode':_0x1537b6['appCode'],'bizType':_0x18e450,'bizCodes':_0x47da1e},_0x15c3ae=[_0x73cfbd(0x197),'Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.'];return _0x18e450===_0x73cfbd(0x1aa)&&_0x15c3ae[_0x73cfbd(0x1c0)](_0x73cfbd(0x1b4)),{'input':_0xa816d1,'selector':{'appCode':_0x1537b6[_0x73cfbd(0x1b3)],'bizType':_0x18e450,'bizCodes':_0x47da1e},'warnings':_0x15c3ae};}function normalizeCodes(_0x3dbf6f){const _0x4501a4=a99_0x2e0524;return[...new Set(_0x3dbf6f[_0x4501a4(0x182)](',')[_0x4501a4(0x183)](_0x2621dd=>_0x2621dd[_0x4501a4(0x1bd)]())[_0x4501a4(0x19f)](Boolean))];}function a99_0x3c8e(_0xc5c005,_0x4a060c){_0xc5c005=_0xc5c005-0x17e;const _0x5edfb7=a99_0x5edf();let _0x3c8e84=_0x5edfb7[_0xc5c005];return _0x3c8e84;}function buildOutput(_0x4d1791,_0x5017cd,_0x377266,_0x1df74a){const _0x344be5=a99_0x2e0524,_0x24844c=_0x1df74a===_0x344be5(0x1be)||_0x1df74a===_0x344be5(0x1a6),_0x3e2179=_0x5017cd[_0x344be5(0x18f)]((_0x5af707,_0x141f3a)=>{const _0x2be9b8=_0x344be5;return _0x5af707[_0x141f3a[_0x2be9b8(0x188)]]=(_0x5af707[_0x141f3a[_0x2be9b8(0x188)]]??0x0)+0x1,_0x5af707;},{});return{'operation':_0x344be5(0x1b7),'selector':_0x4d1791[_0x344be5(0x181)],'before':null,'after':null,'dryRun':_0x377266,'backend':{'submitted':_0x1df74a!=='not_submitted','method':_0x344be5(0x1af),'path':SYNC_PATH,'outcome':_0x1df74a},'summary':{'requested':_0x4d1791[_0x344be5(0x1b1)][_0x344be5(0x19a)][_0x344be5(0x1a5)],'total':_0x24844c?_0x5017cd[_0x344be5(0x1a5)]:_0x4d1791['input'][_0x344be5(0x19a)][_0x344be5(0x1a5)],'created':_0x5017cd['filter'](_0x163408=>_0x163408[_0x344be5(0x188)]==='CREATED')[_0x344be5(0x1a5)],'updated':_0x5017cd[_0x344be5(0x19f)](_0x47c901=>_0x47c901[_0x344be5(0x188)]===_0x344be5(0x17f))[_0x344be5(0x1a5)],'failed':_0x5017cd['filter'](_0x223029=>_0x223029[_0x344be5(0x188)]===_0x344be5(0x1ba))[_0x344be5(0x1a5)],'byAction':_0x3e2179},'items':_0x5017cd,'verification':{'performed':![],'reason':_0x344be5(0x18c)},'warnings':_0x4d1791[_0x344be5(0x1a9)]};}function attachErrorData(_0x3ffcca,_0x2a0733){const _0x5065c9=a99_0x2e0524;Object[_0x5065c9(0x1bf)](_0x3ffcca,'data',{'value':_0x2a0733,'enumerable':!![]});}
1
+ const a102_0x3aaab0=a102_0x263b;(function(_0xddc85d,_0x500f5d){const _0x564048=a102_0x263b,_0x41bbb2=_0xddc85d();while(!![]){try{const _0x536a8c=-parseInt(_0x564048(0x1b5))/0x1*(parseInt(_0x564048(0x1a6))/0x2)+parseInt(_0x564048(0x199))/0x3+-parseInt(_0x564048(0x19a))/0x4*(parseInt(_0x564048(0x1b0))/0x5)+parseInt(_0x564048(0x1c4))/0x6*(parseInt(_0x564048(0x1a0))/0x7)+-parseInt(_0x564048(0x19d))/0x8*(parseInt(_0x564048(0x1c8))/0x9)+-parseInt(_0x564048(0x1ae))/0xa*(parseInt(_0x564048(0x1a4))/0xb)+parseInt(_0x564048(0x1c9))/0xc*(parseInt(_0x564048(0x19b))/0xd);if(_0x536a8c===_0x500f5d)break;else _0x41bbb2['push'](_0x41bbb2['shift']());}catch(_0x4ab346){_0x41bbb2['push'](_0x41bbb2['shift']());}}}(a102_0x596b,0x80569));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a102_0x263b(_0x13a0f3,_0x28f4bd){_0x13a0f3=_0x13a0f3-0x198;const _0x596bd1=a102_0x596b();let _0x263b57=_0x596bd1[_0x13a0f3];return _0x263b57;}import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a102_0x596b(){const _0xdcccbe=['Dataset\x20sync\x20may\x20commit\x20target\x20connection\x20metadata\x20before\x20item\x20synchronization;\x20that\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','selector','bool','Would\x20synchronize\x20','confirm','validation','map','\x20failed\x20item(s).','3051954hvCgEs','524YhmeoM','806MnXAXT','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.','38840zXOGCj','sync','length','28fpnGRR','Synchronize\x20selected\x20development\x20metadata\x20into\x20the\x20server-managed\x20deployment\x20target.','Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)','bff','33pYvAAH','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','673514QcYOPt','items','action','unknown','defineProperty','deployment_sync_partial_failure','string','\x20deployment\x20metadata\x20item(s).','2685290sPDxTi','Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.','7815ToJiTc','appCode','--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.','reduce','CREATED','2XPklYP','Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','boolean','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.','dataset','join','type','filter','not_submitted','partial_failure','bizCodes','deployment_metadata_sync','trim','str','1171218UbExob','Synchronize\x20selected\x20development\x20metadata\x20to\x20the\x20server-managed\x20deployment\x20target','succeeded','UPDATED','927usxPyS','176412wEMDSy','Synchronized\x20','FAILED','sql','codes','input','Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.'];a102_0x596b=function(){return _0xdcccbe;};return a102_0x596b();}const SYNC_PATH='/smartapi/data-sync/sync',SYNC_TYPES=[a102_0x3aaab0(0x1ba),a102_0x3aaab0(0x1a3),a102_0x3aaab0(0x1cc)],TYPE_FLAG={'name':a102_0x3aaab0(0x1bc),'type':'string','required':!![],'enum':[...SYNC_TYPES],'description':'Metadata\x20type\x20to\x20synchronize'},CODES_FLAG={'name':a102_0x3aaab0(0x1cd),'type':a102_0x3aaab0(0x1ac),'required':!![],'description':a102_0x3aaab0(0x1a2)},CONFIRM_FLAG={'name':a102_0x3aaab0(0x1d4),'type':a102_0x3aaab0(0x1b7),'description':'Confirm\x20the\x20metadata\x20codes\x20and\x20start\x20synchronization'};export const deploymentSync={'service':'deployment','command':a102_0x3aaab0(0x19e),'description':a102_0x3aaab0(0x1c5),'risk':'write','strictFlags':!![],'structuredErrors':!![],'confirmationDescription':a102_0x3aaab0(0x1a1),'flags':[TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x39bb70){buildSyncPlan(_0x39bb70);},async 'dryRun'(_0x7757eb){const _0x5af04f=a102_0x3aaab0,_0x5e472c=buildSyncPlan(_0x7757eb);return asDryRunResult(buildOutput(_0x5e472c,[],!![],_0x5af04f(0x1be)),{'method':'POST','url':SYNC_PATH,'description':_0x5af04f(0x1d3)+_0x5e472c[_0x5af04f(0x1ce)]['bizCodes'][_0x5af04f(0x19f)]+'\x20'+_0x5e472c[_0x5af04f(0x1ce)]['bizType']+'\x20item(s).'});},async 'execute'(_0x3afb63){const _0xc5ab91=a102_0x3aaab0,_0x1370e8=buildSyncPlan(_0x3afb63);if(!_0x3afb63[_0xc5ab91(0x1d2)]('confirm'))throw CliErrors[_0xc5ab91(0x1d5)]('--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.',_0xc5ab91(0x1a5));let _0x30cd2e;try{_0x30cd2e=(await syncDeploymentMetadata(_0x1370e8[_0xc5ab91(0x1ce)]))[_0xc5ab91(0x1a7)];}catch(_0x349f52){if(!isPlatformTransportFailure(_0x349f52))throw _0x349f52;const _0x20218d=new CliError('deployment_sync_outcome_unknown',0x2,_0xc5ab91(0x1b6),_0xc5ab91(0x1cf));attachErrorData(_0x20218d,buildOutput(_0x1370e8,[],![],_0xc5ab91(0x1a9)));throw _0x20218d;}const _0x507760=_0x30cd2e[_0xc5ab91(0x1bd)](_0x44e8ee=>_0x44e8ee[_0xc5ab91(0x1a8)]===_0xc5ab91(0x1cb)),_0x1ba5a1=_0x507760[_0xc5ab91(0x19f)]>0x0?_0xc5ab91(0x1bf):'succeeded',_0x23312d=buildOutput(_0x1370e8,_0x30cd2e,![],_0x1ba5a1);if(_0x507760[_0xc5ab91(0x19f)]>0x0){const _0x448b44=new CliError(_0xc5ab91(0x1ab),0x1,'Deployment\x20sync\x20completed\x20with\x20'+_0x507760[_0xc5ab91(0x19f)]+'/'+_0x30cd2e[_0xc5ab91(0x19f)]+_0xc5ab91(0x198),_0xc5ab91(0x1af));attachErrorData(_0x448b44,_0x23312d);throw _0x448b44;}return{'ok':!![],'data':_0x23312d,'message':_0xc5ab91(0x1ca)+_0x30cd2e['length']+_0xc5ab91(0x1ad)};}};function buildSyncPlan(_0x532597){const _0x1aacb9=a102_0x3aaab0,_0x233ac3=_0x532597[_0x1aacb9(0x1c3)](_0x1aacb9(0x1bc))[_0x1aacb9(0x1c2)]();if(!SYNC_TYPES['includes'](_0x233ac3))throw CliErrors[_0x1aacb9(0x1d5)]('--type\x20must\x20be\x20one\x20of:\x20'+SYNC_TYPES[_0x1aacb9(0x1bb)](',\x20')+'.');const _0x6ca236=normalizeCodes(_0x532597[_0x1aacb9(0x1c3)](_0x1aacb9(0x1cd)));if(_0x6ca236['length']===0x0)throw CliErrors[_0x1aacb9(0x1d5)](_0x1aacb9(0x19c));if(_0x6ca236[_0x1aacb9(0x19f)]>0x64)throw CliErrors[_0x1aacb9(0x1d5)](_0x1aacb9(0x1b2));const _0x46e302={'appCode':_0x532597['appCode'],'bizType':_0x233ac3,'bizCodes':_0x6ca236},_0x5476a0=[_0x1aacb9(0x1b8),_0x1aacb9(0x1b9)];return _0x233ac3==='dataset'&&_0x5476a0['unshift'](_0x1aacb9(0x1d0)),{'input':_0x46e302,'selector':{'appCode':_0x532597[_0x1aacb9(0x1b1)],'bizType':_0x233ac3,'bizCodes':_0x6ca236},'warnings':_0x5476a0};}function normalizeCodes(_0x4da8a8){const _0x31b87d=a102_0x3aaab0;return[...new Set(_0x4da8a8['split'](',')[_0x31b87d(0x1d6)](_0x3a8d3b=>_0x3a8d3b[_0x31b87d(0x1c2)]())[_0x31b87d(0x1bd)](Boolean))];}function buildOutput(_0x725bf9,_0xadc935,_0x3102ef,_0x1cab64){const _0xf6a36d=a102_0x3aaab0,_0x669c31=_0x1cab64===_0xf6a36d(0x1c6)||_0x1cab64==='partial_failure',_0x5cef3b=_0xadc935[_0xf6a36d(0x1b3)]((_0x516cb8,_0x119b1e)=>{const _0x159725=_0xf6a36d;return _0x516cb8[_0x119b1e[_0x159725(0x1a8)]]=(_0x516cb8[_0x119b1e[_0x159725(0x1a8)]]??0x0)+0x1,_0x516cb8;},{});return{'operation':_0xf6a36d(0x1c1),'selector':_0x725bf9[_0xf6a36d(0x1d1)],'before':null,'after':null,'dryRun':_0x3102ef,'backend':{'submitted':_0x1cab64!==_0xf6a36d(0x1be),'method':'POST','path':SYNC_PATH,'outcome':_0x1cab64},'summary':{'requested':_0x725bf9['input'][_0xf6a36d(0x1c0)]['length'],'total':_0x669c31?_0xadc935[_0xf6a36d(0x19f)]:_0x725bf9[_0xf6a36d(0x1ce)][_0xf6a36d(0x1c0)][_0xf6a36d(0x19f)],'created':_0xadc935[_0xf6a36d(0x1bd)](_0x5b16c9=>_0x5b16c9[_0xf6a36d(0x1a8)]===_0xf6a36d(0x1b4))['length'],'updated':_0xadc935[_0xf6a36d(0x1bd)](_0x5618db=>_0x5618db[_0xf6a36d(0x1a8)]===_0xf6a36d(0x1c7))[_0xf6a36d(0x19f)],'failed':_0xadc935[_0xf6a36d(0x1bd)](_0x222642=>_0x222642[_0xf6a36d(0x1a8)]===_0xf6a36d(0x1cb))[_0xf6a36d(0x19f)],'byAction':_0x5cef3b},'items':_0xadc935,'verification':{'performed':![],'reason':'target_read_api_unavailable'},'warnings':_0x725bf9['warnings']};}function attachErrorData(_0x8c043,_0x242b4d){const _0x73061e=a102_0x3aaab0;Object[_0x73061e(0x1aa)](_0x8c043,'data',{'value':_0x242b4d,'enumerable':!![]});}
@@ -1 +1 @@
1
- function a100_0x4a95(_0x146628,_0x398d7c){_0x146628=_0x146628-0x161;const _0x5176ab=a100_0x5176();let _0x4a9535=_0x5176ab[_0x146628];return _0x4a9535;}const a100_0x45b1e7=a100_0x4a95;(function(_0x2ffcec,_0x55a6da){const _0x2dd39a=a100_0x4a95,_0x53f58b=_0x2ffcec();while(!![]){try{const _0x4a64fd=parseInt(_0x2dd39a(0x190))/0x1*(parseInt(_0x2dd39a(0x178))/0x2)+parseInt(_0x2dd39a(0x161))/0x3+-parseInt(_0x2dd39a(0x171))/0x4+-parseInt(_0x2dd39a(0x177))/0x5*(parseInt(_0x2dd39a(0x1b8))/0x6)+-parseInt(_0x2dd39a(0x1bc))/0x7+-parseInt(_0x2dd39a(0x18c))/0x8+-parseInt(_0x2dd39a(0x175))/0x9*(-parseInt(_0x2dd39a(0x1c7))/0xa);if(_0x4a64fd===_0x55a6da)break;else _0x53f58b['push'](_0x53f58b['shift']());}catch(_0x49bbde){_0x53f58b['push'](_0x53f58b['shift']());}}}(a100_0x5176,0x95e59));import a100_0x30c168 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a100_0x5176(){const _0x3fc430=['prototype','label','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','597228CZEkcs','\x20\x20Apps','current','hasOwnProperty','slice','Project','\x20\x20Skill\x20Version:\x20\x20\x20','reason','state','doctor','\x20\x20Routing\x20Configuration','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','inherit','(missing)','check','1013844fGHryq','toLowerCase','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','version','68427LEAuOb','projectConfig','25LRFwTf','502598ujweMs','\x20\x20Built-in\x20Skill','repeat','call','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20Legacy\x20inherit:\x20\x20\x20','(unknown)','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','stringify','null','globalConfig','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20Config\x20Files','(none)','missing','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20←\x20current','1634256SQDWdu','format','length','✗\x20Invalid\x20','1uxobpE','raw','skillVersion','\x20\x20API\x20Endpoints','accessKey','gray','(set\x20via\x20file,\x20length=','\x20doctor','\x20\x20Package\x20Version:\x20','routing','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','region','✗\x20Expired','pageSize','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20config','\x20config\x20delete\x20region','(default)','Global','filter','\x20\x20explicitAppName:\x20','bold','\x20\x20Installed\x20Path:\x20\x20','red','✗\x20Invalid\x20JSON','present','\x20\x20Merged\x20Config','✓\x20Valid','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','keys','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20─','\x20config\x20delete\x20inherit\x20--global','env','explicitAppName','global','641814BYInOh','Repair\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','794577yMLBbC','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','apps','\x20\x20Country/Region\x20Configuration','message','1670wJrSOZ','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','apiDir','appCode','(set,\x20length=','currentApp','green','repairCommand','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','empty','appcode','join','log','padEnd','\x20+\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','source','includes','\x20config\x20delete\x20routing','yellow','locale','platform','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Auth','defaultApp','\x20config\x20delete\x20inherit'];a100_0x5176=function(){return _0x3fc430;};return a100_0x5176();}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0x3d3fa7){const _0x478ba5=a100_0x4a95;return typeof _0x3d3fa7==='string'?JSON[_0x478ba5(0x181)](_0x3d3fa7):'<'+(_0x3d3fa7===null?_0x478ba5(0x182):typeof _0x3d3fa7)+'>';}async function execute(_0x3501f6){const _0x35cea5=a100_0x4a95,_0x34ddf5=GIT_COMMIT!==_0x35cea5(0x185)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x35cea5(0x165)](0x0,0xa)+')':VERSION,_0x86c39b=buildConfigFromFlags({}),_0x190aef=getCookie();let _0xe0839c;try{await initGlobalEnvironment(_0x86c39b);}catch(_0x231a41){_0xe0839c=_0x231a41 instanceof Error?_0x231a41:new Error(String(_0x231a41));}console[_0x35cea5(0x1d5)](),console['log'](a100_0x30c168['bold'](CLI_BIN_NAME+_0x35cea5(0x197))),console['log'](a100_0x30c168[_0x35cea5(0x195)]('─'[_0x35cea5(0x17a)](0x32))),console[_0x35cea5(0x1d5)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x34ddf5),console[_0x35cea5(0x1d5)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x35cea5(0x174)]),console[_0x35cea5(0x1d5)](_0x35cea5(0x1ba)+process[_0x35cea5(0x1de)]+'\x20'+process['arch']);const _0x472349=inspectBuiltinSkill();console['log'](),console[_0x35cea5(0x1d5)](a100_0x30c168['bold'](_0x35cea5(0x179))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1b3)[_0x35cea5(0x17a)](0x1e)));const _0x25a844=_0x472349['state']==='current'?a100_0x30c168[_0x35cea5(0x1cf)]('✓\x20'+_0x472349['state']):a100_0x30c168[_0x35cea5(0x1a9)]('✗\x20'+_0x472349[_0x35cea5(0x169)]);console[_0x35cea5(0x1d5)](_0x35cea5(0x1e6)+_0x25a844),console['log'](_0x35cea5(0x198)+_0x472349['packageVersion']),console[_0x35cea5(0x1d5)](_0x35cea5(0x167)+(_0x472349[_0x35cea5(0x192)]||a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x17f)))),console[_0x35cea5(0x1d5)](_0x35cea5(0x1a8)+(_0x472349['installedPath']||a100_0x30c168['gray'](_0x35cea5(0x1e0))));if(_0x472349[_0x35cea5(0x168)])console[_0x35cea5(0x1d5)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x472349['reason']);_0x472349[_0x35cea5(0x169)]!==_0x35cea5(0x163)&&console['log'](_0x35cea5(0x19e)+_0x472349[_0x35cea5(0x1d0)]);console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x1a7)](_0x35cea5(0x186))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)]('\x20\x20─'[_0x35cea5(0x17a)](0x1e)));const _0x1f09da=getGlobalConfigPath(),_0x1ea49d=getProjectConfigPath();console[_0x35cea5(0x1d5)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f09da||a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1e0)))),console[_0x35cea5(0x1d5)](_0x35cea5(0x16d)+(_0x1ea49d||a100_0x30c168[_0x35cea5(0x195)]('(not\x20found)'))),console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x1a7)](_0x35cea5(0x1bb))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)]('\x20\x20─'[_0x35cea5(0x17a)](0x1e)));const _0x1481f6=(_0x363df0,_0x3f9d47)=>{const _0x49a98d=_0x35cea5;if(!_0x3f9d47){console[_0x49a98d(0x1d5)]('\x20\x20'+_0x363df0[_0x49a98d(0x1d6)](0x11)+'\x20'+a100_0x30c168['gray']('(no\x20file)'));return;}const _0x4ad5b3=inspectCliConfigJsonFile(_0x3f9d47);if(_0x4ad5b3[_0x49a98d(0x18a)]==='ok')console['log']('\x20\x20'+_0x363df0[_0x49a98d(0x1d6)](0x11)+'\x20'+a100_0x30c168[_0x49a98d(0x1cf)]('✓\x20Valid\x20JSON'));else{if(_0x4ad5b3[_0x49a98d(0x18a)]===_0x49a98d(0x1d2))console[_0x49a98d(0x1d5)]('\x20\x20'+_0x363df0[_0x49a98d(0x1d6)](0x11)+'\x20'+a100_0x30c168['yellow'](_0x49a98d(0x1c9)));else _0x4ad5b3['status']===_0x49a98d(0x188)?console['log']('\x20\x20'+_0x363df0['padEnd'](0x11)+'\x20'+a100_0x30c168[_0x49a98d(0x195)](_0x49a98d(0x16f))):(console[_0x49a98d(0x1d5)]('\x20\x20'+_0x363df0[_0x49a98d(0x1d6)](0x11)+'\x20'+a100_0x30c168['red'](_0x49a98d(0x1aa))),console[_0x49a98d(0x1d5)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a100_0x30c168['red'](_0x4ad5b3[_0x49a98d(0x1c6)])));}};_0x1481f6(_0x35cea5(0x1a4),_0x1f09da),_0x1481f6('Project',_0x1ea49d);const _0x24fc39=loadRawConfigLayers(),_0x3f4a3c=[{'label':_0x35cea5(0x166),'value':_0x24fc39['projectConfig']['region'],'present':Object[_0x35cea5(0x1e4)][_0x35cea5(0x164)][_0x35cea5(0x17b)](_0x24fc39[_0x35cea5(0x176)],_0x35cea5(0x19b)),'repairCommand':CLI_BIN_NAME+_0x35cea5(0x1a2)},{'label':_0x35cea5(0x1a4),'value':_0x24fc39['globalConfig'][_0x35cea5(0x19b)],'present':Object['prototype'][_0x35cea5(0x164)]['call'](_0x24fc39[_0x35cea5(0x183)],'region'),'repairCommand':CLI_BIN_NAME+'\x20config\x20delete\x20region\x20--global'}][_0x35cea5(0x1a5)](_0x168d4e=>_0x168d4e[_0x35cea5(0x1ab)]&&isInvalidLovrabetRegion(_0x168d4e['value']));if(_0x3f4a3c['length']>0x0){console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x1a7)](_0x35cea5(0x1c5))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1b3)[_0x35cea5(0x17a)](0x1e)));for(const _0x4fdeac of _0x3f4a3c){console[_0x35cea5(0x1d5)]('\x20\x20'+_0x4fdeac[_0x35cea5(0x1e5)][_0x35cea5(0x1d6)](0x11)+'\x20'+a100_0x30c168[_0x35cea5(0x1a9)](_0x35cea5(0x18f)+describeRegionValue(_0x4fdeac[_0x35cea5(0x1c0)]))),console[_0x35cea5(0x1d5)]('\x20\x20'+(_0x35cea5(0x1b9)+_0x4fdeac[_0x35cea5(0x1e5)][_0x35cea5(0x172)]()+':')['padEnd'](0x10)+'\x20'+_0x4fdeac[_0x35cea5(0x1d0)]);}}const _0x4cacaa=[Object[_0x35cea5(0x1e4)]['hasOwnProperty'][_0x35cea5(0x17b)](_0x24fc39[_0x35cea5(0x183)],'inherit')?'global':null,Object[_0x35cea5(0x1e4)]['hasOwnProperty'][_0x35cea5(0x17b)](_0x24fc39['projectConfig'],_0x35cea5(0x16e))?'project':null][_0x35cea5(0x1a5)](Boolean);_0x4cacaa[_0x35cea5(0x18e)]>0x0&&(console[_0x35cea5(0x1d5)](_0x35cea5(0x17e)+a100_0x30c168['yellow']('ignored\x20in\x20'+_0x4cacaa[_0x35cea5(0x1d4)](_0x35cea5(0x1d7))+_0x35cea5(0x1a1))),_0x4cacaa[_0x35cea5(0x1da)]('project')&&console['log']('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x35cea5(0x1e3)),_0x4cacaa[_0x35cea5(0x1da)](_0x35cea5(0x1b7))&&console[_0x35cea5(0x1d5)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x35cea5(0x1b4)));const _0x4d33e2=isInvalidLovrabetRegion(_0x86c39b[_0x35cea5(0x191)]?.[_0x35cea5(0x19b)]);_0xe0839c&&!_0x4d33e2&&(console['log'](),console['log'](a100_0x30c168[_0x35cea5(0x1a7)](_0x35cea5(0x16b))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1b3)[_0x35cea5(0x17a)](0x1e))),console[_0x35cea5(0x1d5)](_0x35cea5(0x184)+a100_0x30c168[_0x35cea5(0x1a9)]('✗\x20Invalid')),console[_0x35cea5(0x1d5)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xe0839c[_0x35cea5(0x1c6)]),Object[_0x35cea5(0x1e4)][_0x35cea5(0x164)][_0x35cea5(0x17b)](_0x24fc39[_0x35cea5(0x176)],'routing')&&console['log']('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x35cea5(0x1db)),Object[_0x35cea5(0x1e4)]['hasOwnProperty'][_0x35cea5(0x17b)](_0x24fc39[_0x35cea5(0x183)],_0x35cea5(0x199))&&console[_0x35cea5(0x1d5)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20routing\x20--global'));console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168['bold'](_0x35cea5(0x1ac))),console[_0x35cea5(0x1d5)](a100_0x30c168['gray']('\x20\x20─'[_0x35cea5(0x17a)](0x1e))),console[_0x35cea5(0x1d5)](_0x35cea5(0x189)+(_0x86c39b[_0x35cea5(0x1cc)]||a100_0x30c168[_0x35cea5(0x1a9)]('(not\x20set)'))),console[_0x35cea5(0x1d5)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x86c39b[_0x35cea5(0x1b5)]),console['log'](_0x35cea5(0x1a0)+_0x86c39b[_0x35cea5(0x1dd)]),console[_0x35cea5(0x1d5)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x86c39b[_0x35cea5(0x1cb)]),console[_0x35cea5(0x1d5)](_0x35cea5(0x1ca)+(_0x86c39b[_0x35cea5(0x1e2)]||a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x187)))),console[_0x35cea5(0x1d5)](_0x35cea5(0x1b0)+(_0x86c39b[_0x35cea5(0x1ce)]||a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x187)))),console['log'](_0x35cea5(0x1a6)+(_0x86c39b[_0x35cea5(0x1b6)]||a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x187)))),console[_0x35cea5(0x1d5)](_0x35cea5(0x1be)+(_0x86c39b[_0x35cea5(0x18d)]||a100_0x30c168[_0x35cea5(0x195)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x35cea5(0x18d)]+')'))),console[_0x35cea5(0x1d5)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x86c39b[_0x35cea5(0x19d)]??a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1a3)))),console[_0x35cea5(0x1d5)](_0x35cea5(0x16c)+_0x86c39b['riskLevel']),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x86c39b['verbose']),console[_0x35cea5(0x1d5)](_0x35cea5(0x1c1)+(_0x86c39b[_0x35cea5(0x17d)]?a100_0x30c168['green'](_0x35cea5(0x1cd)+_0x86c39b[_0x35cea5(0x17d)][_0x35cea5(0x18e)]+')'):_0x190aef?a100_0x30c168['green'](_0x35cea5(0x196)+_0x190aef[_0x35cea5(0x18e)]+')'):a100_0x30c168['gray'](_0x35cea5(0x187))));const _0x1b490d=Object[_0x35cea5(0x1b1)](_0x86c39b[_0x35cea5(0x1c4)]);if(_0x1b490d[_0x35cea5(0x18e)]>0x0){console[_0x35cea5(0x1d5)](),console['log'](a100_0x30c168[_0x35cea5(0x1a7)](_0x35cea5(0x162))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1b3)[_0x35cea5(0x17a)](0x1e)));for(const _0x3ef5ef of _0x1b490d){const _0x3b2c95=_0x86c39b['apps'][_0x3ef5ef],_0x3810b7=_0x3ef5ef===_0x86c39b[_0x35cea5(0x1e2)],_0x1e28db=_0x3ef5ef===_0x86c39b[_0x35cea5(0x1ce)],_0x577209=_0x1e28db?a100_0x30c168[_0x35cea5(0x1cf)](_0x35cea5(0x18b)):'',_0x2ae4fe=_0x3810b7?_0x35cea5(0x19f):'';console[_0x35cea5(0x1d5)]('\x20\x20'+_0x3ef5ef+_0x2ae4fe+_0x577209),console[_0x35cea5(0x1d5)](_0x35cea5(0x1d8)+_0x3b2c95[_0x35cea5(0x1d3)]);const _0x30e019=buildAppDoctorFields(_0x3b2c95,{'env':_0x86c39b[_0x35cea5(0x1b5)],'apiDir':_0x86c39b[_0x35cea5(0x191)][_0x35cea5(0x1cb)]||DEFAULT_CONFIG_VALUES[_0x35cea5(0x1cb)],'cookie':_0x86c39b['cookie']||_0x190aef||undefined,'accessKey':_0x86c39b[_0x35cea5(0x194)]});console[_0x35cea5(0x1d5)](_0x35cea5(0x19a)+_0x30e019['env']['value']+'\x20\x20'+a100_0x30c168[_0x35cea5(0x195)]('('+_0x30e019[_0x35cea5(0x1b5)]['source']+')')),console[_0x35cea5(0x1d5)](_0x35cea5(0x1b2)+_0x30e019[_0x35cea5(0x1cb)][_0x35cea5(0x1c0)]+'\x20\x20'+a100_0x30c168['gray']('('+_0x30e019['apiDir']['source']+')'));const _0x4c8125=_0x30e019[_0x35cea5(0x17d)][_0x35cea5(0x1c0)]?a100_0x30c168[_0x35cea5(0x1cf)](_0x35cea5(0x1cd)+_0x30e019[_0x35cea5(0x17d)][_0x35cea5(0x1c0)][_0x35cea5(0x18e)]+')'):a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x187));console[_0x35cea5(0x1d5)](_0x35cea5(0x173)+_0x4c8125+'\x20\x20'+a100_0x30c168[_0x35cea5(0x195)]('('+_0x30e019[_0x35cea5(0x17d)][_0x35cea5(0x1d9)]+')'));const _0x48d9aa=_0x30e019['accessKey'][_0x35cea5(0x1c0)]?a100_0x30c168[_0x35cea5(0x1cf)]('(set,\x20length='+_0x30e019[_0x35cea5(0x194)][_0x35cea5(0x1c0)]['length']+')'):a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x187));console['log'](_0x35cea5(0x1bd)+_0x48d9aa+'\x20\x20'+a100_0x30c168[_0x35cea5(0x195)]('('+_0x30e019[_0x35cea5(0x194)][_0x35cea5(0x1d9)]+')'));}}console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168['bold'](_0x35cea5(0x193))),console[_0x35cea5(0x1d5)](a100_0x30c168['gray'](_0x35cea5(0x1b3)[_0x35cea5(0x17a)](0x1e)));_0xe0839c?console[_0x35cea5(0x1d5)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a100_0x30c168[_0x35cea5(0x1a9)](_0x35cea5(0x1ae))):(console[_0x35cea5(0x1d5)](_0x35cea5(0x17c)+getActiveRegion()),console[_0x35cea5(0x1d5)](_0x35cea5(0x1d1)+getApiDomain()),console['log'](_0x35cea5(0x1c2)+getUserDomain()),console[_0x35cea5(0x1d5)](_0x35cea5(0x1bf)+getRuntimeDomain()),console[_0x35cea5(0x1d5)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console['log'](_0x35cea5(0x1c8)+getKbDomain()),console[_0x35cea5(0x1d5)](_0x35cea5(0x1df)+getAppDomain()));console[_0x35cea5(0x1d5)](),console[_0x35cea5(0x1d5)](a100_0x30c168['bold'](_0x35cea5(0x1e1))),console[_0x35cea5(0x1d5)](a100_0x30c168[_0x35cea5(0x195)](_0x35cea5(0x1b3)['repeat'](0x1e)));if(_0xe0839c)console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a100_0x30c168[_0x35cea5(0x1dc)](_0x35cea5(0x180)));else{if(_0x190aef){const _0x593c9e=await getIsSessionValid();console[_0x35cea5(0x1d5)](_0x35cea5(0x184)+(_0x593c9e?a100_0x30c168[_0x35cea5(0x1cf)](_0x35cea5(0x1ad)):a100_0x30c168[_0x35cea5(0x1a9)](_0x35cea5(0x19c))));}else console['log'](_0x35cea5(0x184)+a100_0x30c168[_0x35cea5(0x1a9)](_0x35cea5(0x1c3)));}return console[_0x35cea5(0x1d5)](),{'ok':!![]};}export const doctorDefinition={'service':a100_0x45b1e7(0x16a),'command':a100_0x45b1e7(0x170),'description':a100_0x45b1e7(0x1af),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a103_0x49f98c=a103_0x5484;(function(_0x45d4f1,_0x3e734c){const _0x56c223=a103_0x5484,_0x1a7a98=_0x45d4f1();while(!![]){try{const _0x275abc=parseInt(_0x56c223(0x154))/0x1+parseInt(_0x56c223(0x1a9))/0x2*(parseInt(_0x56c223(0x1ab))/0x3)+parseInt(_0x56c223(0x17a))/0x4+parseInt(_0x56c223(0x143))/0x5*(-parseInt(_0x56c223(0x199))/0x6)+parseInt(_0x56c223(0x194))/0x7*(parseInt(_0x56c223(0x187))/0x8)+parseInt(_0x56c223(0x19c))/0x9+-parseInt(_0x56c223(0x16c))/0xa*(parseInt(_0x56c223(0x1b5))/0xb);if(_0x275abc===_0x3e734c)break;else _0x1a7a98['push'](_0x1a7a98['shift']());}catch(_0x5dcd0d){_0x1a7a98['push'](_0x1a7a98['shift']());}}}(a103_0xb2dd,0xc8e9e));import a103_0x49a9c9 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a103_0xb2dd(){const _0x469758=['Repair\x20','defaultApp','toLowerCase','includes','join','gray','hasOwnProperty','unknown','(set\x20via\x20file,\x20length=','doctor','cookie','814065XDWpyV','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','platform','version','riskLevel','ignored\x20in\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','routing','currentApp','\x20config\x20delete\x20routing\x20--global','string','\x20\x20Repair\x20project:\x20\x20\x20','yellow','slice','\x20←\x20current','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(set,\x20length=','prototype','globalConfig','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','✗\x20Invalid\x20JSON','1719970mXDaCk','\x20config','(none)','message','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20\x20Repair\x20project:\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','repeat','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(not\x20found)','value','length','2618736PGYKXK','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','source','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','env','format','\x20\x20Country/Region\x20Configuration','arch','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✗\x20Expired','reason','234432KTmgBf','current','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','\x20config\x20delete\x20region\x20--global','(no\x20file)','red','call','explicitAppName','state','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','203fGbqlv','\x20\x20runtimeDomain:\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','status','170214tWjqXU','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','8913870hrYDBP','Project','null','\x20\x20skillDomain:\x20\x20\x20\x20\x20','apiDir','global','installedPath','✗\x20Invalid\x20','Not\x20checked\x20until\x20routing\x20configuration\x20is\x20repaired','project','apps','accessKey','verbose','70762akKlMq','projectConfig','3dUamSb','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20inherit','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','inherit','present','\x20\x20Installed\x20Path:\x20\x20','stringify','154ZxNDqj','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','missing','region','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','repairCommand','skillVersion','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Built-in\x20Skill','log','\x20\x20Merged\x20Config','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','read','\x20\x20\x20\x20accessKey:\x20\x20','(not\x20set)','\x20\x20Repair\x20global:\x20\x20\x20\x20','filter','\x20config\x20delete\x20inherit\x20--global','appcode','raw','20VWHXKf','green','check','\x20\x20─','bold','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'];a103_0xb2dd=function(){return _0x469758;};return a103_0xb2dd();}import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a103_0x5484(_0x1d0e1a,_0x345d0f){_0x1d0e1a=_0x1d0e1a-0x134;const _0xb2ddfa=a103_0xb2dd();let _0x5484ec=_0xb2ddfa[_0x1d0e1a];return _0x5484ec;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,initGlobalEnvironment,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';import{isInvalidLovrabetRegion}from'../constant/region.js';function describeRegionValue(_0xff0edd){const _0x151a39=a103_0x5484;return typeof _0xff0edd===_0x151a39(0x15e)?JSON[_0x151a39(0x1b4)](_0xff0edd):'<'+(_0xff0edd===null?_0x151a39(0x19e):typeof _0xff0edd)+'>';}async function execute(_0x15d5d7){const _0x38b871=a103_0x5484,_0x1f4809=GIT_COMMIT!==_0x38b871(0x150)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x38b871(0x161)](0x0,0xa)+')':VERSION,_0x278e50=buildConfigFromFlags({}),_0x5409a7=getCookie();let _0xb27139;try{await initGlobalEnvironment(_0x278e50);}catch(_0x28fbba){_0xb27139=_0x28fbba instanceof Error?_0x28fbba:new Error(String(_0x28fbba));}console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)](CLI_BIN_NAME+_0x38b871(0x19b))),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x14e)]('─'['repeat'](0x32))),console[_0x38b871(0x137)](_0x38b871(0x148)+_0x1f4809),console['log'](_0x38b871(0x189)+process[_0x38b871(0x157)]),console[_0x38b871(0x137)](_0x38b871(0x17d)+process[_0x38b871(0x156)]+'\x20'+process[_0x38b871(0x182)]);const _0x42ef6e=inspectBuiltinSkill();console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)](_0x38b871(0x136))),console[_0x38b871(0x137)](a103_0x49a9c9['gray'](_0x38b871(0x146)[_0x38b871(0x175)](0x1e)));const _0x2a58a2=_0x42ef6e['state']==='current'?a103_0x49a9c9['green']('✓\x20'+_0x42ef6e['state']):a103_0x49a9c9[_0x38b871(0x18e)]('✗\x20'+_0x42ef6e[_0x38b871(0x191)]);console[_0x38b871(0x137)](_0x38b871(0x163)+_0x2a58a2),console['log'](_0x38b871(0x171)+_0x42ef6e['packageVersion']),console[_0x38b871(0x137)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x42ef6e[_0x38b871(0x1be)]||a103_0x49a9c9[_0x38b871(0x14e)]('(unknown)'))),console[_0x38b871(0x137)](_0x38b871(0x1b3)+(_0x42ef6e[_0x38b871(0x1a2)]||a103_0x49a9c9[_0x38b871(0x14e)]('(not\x20found)')));if(_0x42ef6e[_0x38b871(0x186)])console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x42ef6e[_0x38b871(0x186)]);_0x42ef6e[_0x38b871(0x191)]!==_0x38b871(0x188)&&console[_0x38b871(0x137)](_0x38b871(0x139)+_0x42ef6e[_0x38b871(0x1bd)]);console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)](_0x38b871(0x135))),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x146)[_0x38b871(0x175)](0x1e)));const _0x460c58=getGlobalConfigPath(),_0x4118f2=getProjectConfigPath();console[_0x38b871(0x137)](_0x38b871(0x19a)+(_0x460c58||a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x177)))),console['log'](_0x38b871(0x1ae)+(_0x4118f2||a103_0x49a9c9[_0x38b871(0x14e)]('(not\x20found)'))),console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)]('\x20\x20Config\x20JSON')),console[_0x38b871(0x137)](a103_0x49a9c9['gray'](_0x38b871(0x146)[_0x38b871(0x175)](0x1e)));const _0x207ea0=(_0x1910b6,_0x2630dd)=>{const _0x3e6b3a=_0x38b871;if(!_0x2630dd){console[_0x3e6b3a(0x137)]('\x20\x20'+_0x1910b6['padEnd'](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x14e)](_0x3e6b3a(0x18d)));return;}const _0x5efa16=inspectCliConfigJsonFile(_0x2630dd);if(_0x5efa16[_0x3e6b3a(0x198)]==='ok')console[_0x3e6b3a(0x137)]('\x20\x20'+_0x1910b6['padEnd'](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x144)](_0x3e6b3a(0x196)));else{if(_0x5efa16['status']===_0x3e6b3a(0x1b0))console['log']('\x20\x20'+_0x1910b6[_0x3e6b3a(0x17e)](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x160)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x5efa16['status']===_0x3e6b3a(0x1ba)?console[_0x3e6b3a(0x137)]('\x20\x20'+_0x1910b6[_0x3e6b3a(0x17e)](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x14e)]('(missing)')):(console['log']('\x20\x20'+_0x1910b6[_0x3e6b3a(0x17e)](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x18e)](_0x3e6b3a(0x16b))),console[_0x3e6b3a(0x137)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a103_0x49a9c9[_0x3e6b3a(0x18e)](_0x5efa16[_0x3e6b3a(0x16f)])));}};_0x207ea0(_0x38b871(0x174),_0x460c58),_0x207ea0(_0x38b871(0x19d),_0x4118f2);const _0x687993=loadRawConfigLayers(),_0x758b3b=[{'label':'Project','value':_0x687993['projectConfig'][_0x38b871(0x1bb)],'present':Object[_0x38b871(0x167)][_0x38b871(0x14f)]['call'](_0x687993[_0x38b871(0x1aa)],_0x38b871(0x1bb)),'repairCommand':CLI_BIN_NAME+_0x38b871(0x16a)},{'label':_0x38b871(0x174),'value':_0x687993[_0x38b871(0x168)][_0x38b871(0x1bb)],'present':Object['prototype'][_0x38b871(0x14f)][_0x38b871(0x18f)](_0x687993[_0x38b871(0x168)],_0x38b871(0x1bb)),'repairCommand':CLI_BIN_NAME+_0x38b871(0x18c)}][_0x38b871(0x13f)](_0x114653=>_0x114653[_0x38b871(0x1b2)]&&isInvalidLovrabetRegion(_0x114653[_0x38b871(0x178)]));if(_0x758b3b['length']>0x0){console['log'](),console[_0x38b871(0x137)](a103_0x49a9c9['bold'](_0x38b871(0x181))),console[_0x38b871(0x137)](a103_0x49a9c9['gray'](_0x38b871(0x146)['repeat'](0x1e)));for(const _0x218b0a of _0x758b3b){console[_0x38b871(0x137)]('\x20\x20'+_0x218b0a['label']['padEnd'](0x11)+'\x20'+a103_0x49a9c9[_0x38b871(0x18e)](_0x38b871(0x1a3)+describeRegionValue(_0x218b0a[_0x38b871(0x178)]))),console[_0x38b871(0x137)]('\x20\x20'+(_0x38b871(0x149)+_0x218b0a['label'][_0x38b871(0x14b)]()+':')[_0x38b871(0x17e)](0x10)+'\x20'+_0x218b0a[_0x38b871(0x1bd)]);}}const _0x5a07e5=[Object[_0x38b871(0x167)][_0x38b871(0x14f)][_0x38b871(0x18f)](_0x687993[_0x38b871(0x168)],_0x38b871(0x1b1))?_0x38b871(0x1a1):null,Object[_0x38b871(0x167)][_0x38b871(0x14f)][_0x38b871(0x18f)](_0x687993[_0x38b871(0x1aa)],_0x38b871(0x1b1))?_0x38b871(0x1a5):null][_0x38b871(0x13f)](Boolean);_0x5a07e5[_0x38b871(0x179)]>0x0&&(console['log'](_0x38b871(0x134)+a103_0x49a9c9[_0x38b871(0x160)](_0x38b871(0x159)+_0x5a07e5[_0x38b871(0x14d)]('\x20+\x20')+_0x38b871(0x16d))),_0x5a07e5[_0x38b871(0x14c)](_0x38b871(0x1a5))&&console[_0x38b871(0x137)](_0x38b871(0x15f)+CLI_BIN_NAME+_0x38b871(0x1ad)),_0x5a07e5[_0x38b871(0x14c)](_0x38b871(0x1a1))&&console['log'](_0x38b871(0x13e)+CLI_BIN_NAME+_0x38b871(0x140)));const _0x1d52e4=isInvalidLovrabetRegion(_0x278e50[_0x38b871(0x142)]?.[_0x38b871(0x1bb)]);_0xb27139&&!_0x1d52e4&&(console[_0x38b871(0x137)](),console['log'](a103_0x49a9c9[_0x38b871(0x147)]('\x20\x20Routing\x20Configuration')),console['log'](a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x146)[_0x38b871(0x175)](0x1e))),console[_0x38b871(0x137)](_0x38b871(0x18a)+a103_0x49a9c9['red']('✗\x20Invalid')),console[_0x38b871(0x137)](_0x38b871(0x1af)+_0xb27139[_0x38b871(0x16f)]),Object[_0x38b871(0x167)]['hasOwnProperty'][_0x38b871(0x18f)](_0x687993[_0x38b871(0x1aa)],_0x38b871(0x15b))&&console[_0x38b871(0x137)](_0x38b871(0x172)+CLI_BIN_NAME+'\x20config\x20delete\x20routing'),Object['prototype'][_0x38b871(0x14f)][_0x38b871(0x18f)](_0x687993[_0x38b871(0x168)],_0x38b871(0x15b))&&console[_0x38b871(0x137)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x38b871(0x15d)));console['log'](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)](_0x38b871(0x138))),console[_0x38b871(0x137)](a103_0x49a9c9['gray'](_0x38b871(0x146)[_0x38b871(0x175)](0x1e))),console[_0x38b871(0x137)](_0x38b871(0x173)+(_0x278e50['appCode']||a103_0x49a9c9['red'](_0x38b871(0x13d)))),console[_0x38b871(0x137)](_0x38b871(0x1ac)+_0x278e50[_0x38b871(0x17f)]),console['log'](_0x38b871(0x197)+_0x278e50[_0x38b871(0x1b7)]),console['log'](_0x38b871(0x1b6)+_0x278e50[_0x38b871(0x1a0)]),console[_0x38b871(0x137)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x278e50[_0x38b871(0x14a)]||a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x16e)))),console[_0x38b871(0x137)](_0x38b871(0x165)+(_0x278e50[_0x38b871(0x15c)]||a103_0x49a9c9['gray']('(none)'))),console[_0x38b871(0x137)]('\x20\x20explicitAppName:\x20'+(_0x278e50[_0x38b871(0x190)]||a103_0x49a9c9['gray'](_0x38b871(0x16e)))),console[_0x38b871(0x137)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x278e50[_0x38b871(0x180)]||a103_0x49a9c9[_0x38b871(0x14e)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x38b871(0x180)]+')'))),console['log'](_0x38b871(0x192)+(_0x278e50[_0x38b871(0x1b9)]??a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x164)))),console['log'](_0x38b871(0x193)+_0x278e50[_0x38b871(0x158)]),console[_0x38b871(0x137)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x278e50[_0x38b871(0x1a8)]),console[_0x38b871(0x137)](_0x38b871(0x1b8)+(_0x278e50[_0x38b871(0x153)]?a103_0x49a9c9[_0x38b871(0x144)]('(set,\x20length='+_0x278e50[_0x38b871(0x153)][_0x38b871(0x179)]+')'):_0x5409a7?a103_0x49a9c9[_0x38b871(0x144)](_0x38b871(0x151)+_0x5409a7[_0x38b871(0x179)]+')'):a103_0x49a9c9[_0x38b871(0x14e)](_0x38b871(0x16e))));const _0x4d23dd=Object[_0x38b871(0x18b)](_0x278e50['apps']);if(_0x4d23dd['length']>0x0){console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)]('\x20\x20Apps')),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x14e)]('\x20\x20─'[_0x38b871(0x175)](0x1e)));for(const _0x485a7e of _0x4d23dd){const _0x407857=_0x278e50[_0x38b871(0x1a6)][_0x485a7e],_0x2d13d7=_0x485a7e===_0x278e50[_0x38b871(0x14a)],_0xfe19ca=_0x485a7e===_0x278e50[_0x38b871(0x15c)],_0x4a639b=_0xfe19ca?a103_0x49a9c9[_0x38b871(0x144)](_0x38b871(0x162)):'',_0xa4ae06=_0x2d13d7?'\x20(default)':'';console['log']('\x20\x20'+_0x485a7e+_0xa4ae06+_0x4a639b),console[_0x38b871(0x137)](_0x38b871(0x176)+_0x407857[_0x38b871(0x141)]);const _0x14e4a8=buildAppDoctorFields(_0x407857,{'env':_0x278e50['env'],'apiDir':_0x278e50[_0x38b871(0x142)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x38b871(0x1a0)],'cookie':_0x278e50[_0x38b871(0x153)]||_0x5409a7||undefined,'accessKey':_0x278e50[_0x38b871(0x1a7)]});console[_0x38b871(0x137)](_0x38b871(0x155)+_0x14e4a8[_0x38b871(0x17f)][_0x38b871(0x178)]+'\x20\x20'+a103_0x49a9c9[_0x38b871(0x14e)]('('+_0x14e4a8[_0x38b871(0x17f)][_0x38b871(0x17c)]+')')),console[_0x38b871(0x137)](_0x38b871(0x184)+_0x14e4a8['apiDir']['value']+'\x20\x20'+a103_0x49a9c9[_0x38b871(0x14e)]('('+_0x14e4a8['apiDir'][_0x38b871(0x17c)]+')'));const _0x172973=_0x14e4a8[_0x38b871(0x153)][_0x38b871(0x178)]?a103_0x49a9c9['green'](_0x38b871(0x166)+_0x14e4a8[_0x38b871(0x153)][_0x38b871(0x178)][_0x38b871(0x179)]+')'):a103_0x49a9c9['gray'](_0x38b871(0x16e));console['log'](_0x38b871(0x170)+_0x172973+'\x20\x20'+a103_0x49a9c9[_0x38b871(0x14e)]('('+_0x14e4a8['cookie'][_0x38b871(0x17c)]+')'));const _0x2fec18=_0x14e4a8[_0x38b871(0x1a7)][_0x38b871(0x178)]?a103_0x49a9c9[_0x38b871(0x144)](_0x38b871(0x166)+_0x14e4a8[_0x38b871(0x1a7)][_0x38b871(0x178)][_0x38b871(0x179)]+')'):a103_0x49a9c9[_0x38b871(0x14e)]('(none)');console[_0x38b871(0x137)](_0x38b871(0x13c)+_0x2fec18+'\x20\x20'+a103_0x49a9c9[_0x38b871(0x14e)]('('+_0x14e4a8['accessKey'][_0x38b871(0x17c)]+')'));}}console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)]('\x20\x20API\x20Endpoints')),console['log'](a103_0x49a9c9['gray'](_0x38b871(0x146)[_0x38b871(0x175)](0x1e)));_0xb27139?console[_0x38b871(0x137)](_0x38b871(0x18a)+a103_0x49a9c9['red'](_0x38b871(0x17b))):(console['log'](_0x38b871(0x169)+getActiveRegion()),console[_0x38b871(0x137)](_0x38b871(0x183)+getApiDomain()),console[_0x38b871(0x137)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x38b871(0x137)](_0x38b871(0x195)+getRuntimeDomain()),console[_0x38b871(0x137)](_0x38b871(0x19f)+getSkillDomain()),console['log'](_0x38b871(0x15a)+getKbDomain()),console['log'](_0x38b871(0x1bc)+getAppDomain()));console[_0x38b871(0x137)](),console[_0x38b871(0x137)](a103_0x49a9c9[_0x38b871(0x147)]('\x20\x20Auth')),console['log'](a103_0x49a9c9[_0x38b871(0x14e)]('\x20\x20─'[_0x38b871(0x175)](0x1e)));if(_0xb27139)console[_0x38b871(0x137)](_0x38b871(0x18a)+a103_0x49a9c9[_0x38b871(0x160)](_0x38b871(0x1a4)));else{if(_0x5409a7){const _0x28e8a0=await getIsSessionValid();console[_0x38b871(0x137)](_0x38b871(0x18a)+(_0x28e8a0?a103_0x49a9c9[_0x38b871(0x144)]('✓\x20Valid'):a103_0x49a9c9[_0x38b871(0x18e)](_0x38b871(0x185))));}else console[_0x38b871(0x137)](_0x38b871(0x18a)+a103_0x49a9c9[_0x38b871(0x18e)]('✗\x20Not\x20logged\x20in'));}return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a103_0x49f98c(0x152),'command':a103_0x49f98c(0x145),'description':a103_0x49f98c(0x13a),'risk':a103_0x49f98c(0x13b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a101_0x5f4f96=a101_0xaa6f;(function(_0x187237,_0x5172fc){const _0x48aad3=a101_0xaa6f,_0x5cc6b6=_0x187237();while(!![]){try{const _0x3e39a8=-parseInt(_0x48aad3(0x1c4))/0x1+-parseInt(_0x48aad3(0x1dc))/0x2*(parseInt(_0x48aad3(0x1cd))/0x3)+parseInt(_0x48aad3(0x1c9))/0x4+-parseInt(_0x48aad3(0x1c7))/0x5*(parseInt(_0x48aad3(0x1c2))/0x6)+-parseInt(_0x48aad3(0x1e2))/0x7*(-parseInt(_0x48aad3(0x1d0))/0x8)+-parseInt(_0x48aad3(0x1d3))/0x9*(parseInt(_0x48aad3(0x1d4))/0xa)+parseInt(_0x48aad3(0x1d5))/0xb;if(_0x3e39a8===_0x5172fc)break;else _0x5cc6b6['push'](_0x5cc6b6['shift']());}catch(_0x31f5ca){_0x5cc6b6['push'](_0x5cc6b6['shift']());}}}(a101_0x5f49,0x98712));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a101_0x5f4f96(0x1ca),'type':a101_0x5f4f96(0x1cb),'required':!![],'description':a101_0x5f4f96(0x1dd)},FILEPATH_FLAG={'name':a101_0x5f4f96(0x1c0),'type':a101_0x5f4f96(0x1cb),'required':!![],'description':a101_0x5f4f96(0x1c8)},DOWNLOAD_FLAG={'name':a101_0x5f4f96(0x1d9),'type':a101_0x5f4f96(0x1cf),'description':a101_0x5f4f96(0x1e1)},LONG_TERM_FLAG={'name':a101_0x5f4f96(0x1c3),'type':a101_0x5f4f96(0x1cf),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function a101_0xaa6f(_0xe149a2,_0x1c7f5b){_0xe149a2=_0xe149a2-0x1bf;const _0x5f490d=a101_0x5f49();let _0xaa6fde=_0x5f490d[_0xe149a2];return _0xaa6fde;}function requireFilePath(_0x4ab610){const _0x1572ed=a101_0x5f4f96,_0x2f9745=_0x4ab610[_0x1572ed(0x1cc)]();if(!_0x2f9745)throw CliErrors[_0x1572ed(0x1df)](_0x1572ed(0x1e0));return _0x2f9745;}function a101_0x5f49(){const _0x55a479=['validation','filePath\x20is\x20required.','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','541947TrDPjQ','appCode','read','filepath','bool','672RfgtzW','long-term','865572lxYbxF','Preview:\x20upload\x20','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','53765sCQaQR','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','2013348DztimK','file','string','trim','682158XbRmmx','File','boolean','24mpdphG','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','query-url','11157093rSWbKW','10oYFqeu','37683503JqABah','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','str','POST','download','path','/smartapi/common/uploadFile','2GwrWcO','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filePath'];a101_0x5f49=function(){return _0x55a479;};return a101_0x5f49();}const fileUpload={'service':'file','command':'upload','description':a101_0x5f4f96(0x1c6),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0xf747c4){const _0x5dd838=a101_0x5f4f96,_0x9bb212=requireDevelopmentUploadFile(_0xf747c4['str']('file'),'File');return{'method':_0x5dd838(0x1d8),'url':_0x5dd838(0x1db),'body':{'appCode':_0xf747c4['appCode'],'multipart':{'file':_0x9bb212}},'description':_0x5dd838(0x1c5)+_0x9bb212[_0x5dd838(0x1da)]+'\x20to\x20development\x20app\x20'+_0xf747c4[_0x5dd838(0x1e3)]};},async 'execute'(_0x26145e){const _0x1e6ebe=a101_0x5f4f96,_0xdfbaa0=requireDevelopmentUploadFile(_0x26145e[_0x1e6ebe(0x1d7)](_0x1e6ebe(0x1ca)),_0x1e6ebe(0x1ce)),_0x5f5239=await uploadDevelopmentFile(_0x26145e['appCode'],_0xdfbaa0[_0x1e6ebe(0x1da)]);return{'ok':!![],'data':_0x5f5239,'message':_0x5f5239['filePath']?'Uploaded\x20file:\x20'+_0x5f5239[_0x1e6ebe(0x1de)]+_0x1e6ebe(0x1d1):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':'file','command':a101_0x5f4f96(0x1d2),'description':a101_0x5f4f96(0x1d6),'risk':a101_0x5f4f96(0x1bf),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x29c556){const _0x4b29c3=a101_0x5f4f96,_0x1836f8=requireFilePath(_0x29c556[_0x4b29c3(0x1d7)](_0x4b29c3(0x1c0))),_0x54a163=await queryDevelopmentFileUrl(_0x1836f8,{'download':_0x29c556[_0x4b29c3(0x1c1)](_0x4b29c3(0x1d9)),'longTerm':_0x29c556[_0x4b29c3(0x1c1)](_0x4b29c3(0x1c3))});return{'ok':!![],'data':_0x54a163};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a104_0x3886cf=a104_0x9ec7;function a104_0x9ec7(_0x5ab153,_0x6e92b7){_0x5ab153=_0x5ab153-0x133;const _0x568bfc=a104_0x568b();let _0x9ec736=_0x568bfc[_0x5ab153];return _0x9ec736;}(function(_0x202ccd,_0x1ab287){const _0x274cd8=a104_0x9ec7,_0x5c287e=_0x202ccd();while(!![]){try{const _0x31abd1=parseInt(_0x274cd8(0x145))/0x1*(-parseInt(_0x274cd8(0x150))/0x2)+-parseInt(_0x274cd8(0x136))/0x3*(-parseInt(_0x274cd8(0x13f))/0x4)+-parseInt(_0x274cd8(0x151))/0x5*(parseInt(_0x274cd8(0x139))/0x6)+-parseInt(_0x274cd8(0x13e))/0x7*(-parseInt(_0x274cd8(0x14e))/0x8)+-parseInt(_0x274cd8(0x140))/0x9+-parseInt(_0x274cd8(0x13d))/0xa+parseInt(_0x274cd8(0x149))/0xb*(parseInt(_0x274cd8(0x14a))/0xc);if(_0x31abd1===_0x1ab287)break;else _0x5c287e['push'](_0x5c287e['shift']());}catch(_0x3f9b57){_0x5c287e['push'](_0x5c287e['shift']());}}}(a104_0x568b,0xc2985));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a104_0x568b(){const _0x474c09=['long-term','appCode','filepath','32liwfmc','Uploaded\x20file:\x20','8238taHxph','467235ONwMIQ','filePath\x20is\x20required.','/smartapi/common/uploadFile','string','filePath','upload','file','File','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','104502OTPtlg','validation','query-url','102lQVIHZ','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','path','12126310kslSAR','199066TBZPjD','76ftMBuW','6805539NMKTaS','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','boolean','Preview:\x20upload\x20','bool','237zETbXE','download','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','\x20to\x20development\x20app\x20','4555067SUNzSJ','132ugoJpm'];a104_0x568b=function(){return _0x474c09;};return a104_0x568b();}const FILE_FLAG={'name':a104_0x3886cf(0x157),'type':a104_0x3886cf(0x154),'required':!![],'description':a104_0x3886cf(0x13a)},FILEPATH_FLAG={'name':a104_0x3886cf(0x14d),'type':a104_0x3886cf(0x154),'required':!![],'description':a104_0x3886cf(0x135)},DOWNLOAD_FLAG={'name':a104_0x3886cf(0x146),'type':a104_0x3886cf(0x142),'description':a104_0x3886cf(0x13b)},LONG_TERM_FLAG={'name':'long-term','type':a104_0x3886cf(0x142),'description':a104_0x3886cf(0x147)};function requireFilePath(_0x97bec5){const _0x47bf99=a104_0x3886cf,_0xcf7ccd=_0x97bec5['trim']();if(!_0xcf7ccd)throw CliErrors[_0x47bf99(0x137)](_0x47bf99(0x152));return _0xcf7ccd;}const fileUpload={'service':'file','command':a104_0x3886cf(0x156),'description':a104_0x3886cf(0x134),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x3f93a8){const _0x2a5542=a104_0x3886cf,_0x3a0894=requireDevelopmentUploadFile(_0x3f93a8['str'](_0x2a5542(0x157)),'File');return{'method':'POST','url':_0x2a5542(0x153),'body':{'appCode':_0x3f93a8[_0x2a5542(0x14c)],'multipart':{'file':_0x3a0894}},'description':_0x2a5542(0x143)+_0x3a0894[_0x2a5542(0x13c)]+_0x2a5542(0x148)+_0x3f93a8[_0x2a5542(0x14c)]};},async 'execute'(_0x149ccd){const _0x39cb7d=a104_0x3886cf,_0x10ef86=requireDevelopmentUploadFile(_0x149ccd['str'](_0x39cb7d(0x157)),_0x39cb7d(0x133)),_0x422253=await uploadDevelopmentFile(_0x149ccd[_0x39cb7d(0x14c)],_0x10ef86[_0x39cb7d(0x13c)]);return{'ok':!![],'data':_0x422253,'message':_0x422253[_0x39cb7d(0x155)]?_0x39cb7d(0x14f)+_0x422253[_0x39cb7d(0x155)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a104_0x3886cf(0x157),'command':a104_0x3886cf(0x138),'description':a104_0x3886cf(0x141),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xf1b3d1){const _0x2577e0=a104_0x3886cf,_0x566823=requireFilePath(_0xf1b3d1['str'](_0x2577e0(0x14d))),_0x43011d=await queryDevelopmentFileUrl(_0x566823,{'download':_0xf1b3d1[_0x2577e0(0x144)](_0x2577e0(0x146)),'longTerm':_0xf1b3d1[_0x2577e0(0x144)](_0x2577e0(0x14b))});return{'ok':!![],'data':_0x43011d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyCurrent: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a105_0x32a9b5=a105_0x2300;function a105_0x4dd7(){const _0x5b8592=['8bndSvF','appCode','62050KMcFec','3ShBPGp','4889962JCEAtZ','3mMHDGs','instant-api-policy','read','6892765fOPywI','policyRelativePath','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','66dJfSFO','revision','Get\x20the\x20current\x20effective\x20Instant\x20API\x20policy','4745772DaOvqL','10iwhHSs','2003676WDKIil','341945ubvvlI','4240737TcTOHa','Current\x20Instant\x20API\x20policy\x20revision\x20'];a105_0x4dd7=function(){return _0x5b8592;};return a105_0x4dd7();}(function(_0x5cc089,_0x37285c){const _0x27480f=a105_0x2300,_0x138a25=_0x5cc089();while(!![]){try{const _0xb99333=parseInt(_0x27480f(0xf9))/0x1*(-parseInt(_0x27480f(0xf8))/0x2)+parseInt(_0x27480f(0xfb))/0x3*(parseInt(_0x27480f(0x106))/0x4)+parseInt(_0x27480f(0x107))/0x5*(-parseInt(_0x27480f(0x101))/0x6)+parseInt(_0x27480f(0xfa))/0x7+parseInt(_0x27480f(0xf6))/0x8*(parseInt(_0x27480f(0x108))/0x9)+-parseInt(_0x27480f(0x105))/0xa*(parseInt(_0x27480f(0xfe))/0xb)+parseInt(_0x27480f(0x104))/0xc;if(_0xb99333===_0x37285c)break;else _0x138a25['push'](_0x138a25['shift']());}catch(_0x58cbc2){_0x138a25['push'](_0x138a25['shift']());}}}(a105_0x4dd7,0x9110e));import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{loadInstantApiPolicyLocalConfig}from'../../core/instant-api-policy/config.js';import{projectCurrentPolicy}from'../../commands/instant-api-policy/shared.js';function a105_0x2300(_0x4a1b7c,_0x4da979){_0x4a1b7c=_0x4a1b7c-0xf6;const _0x4dd70b=a105_0x4dd7();let _0x230051=_0x4dd70b[_0x4a1b7c];return _0x230051;}export const instantApiPolicyCurrent={'service':a105_0x32a9b5(0xfc),'command':'current','description':a105_0x32a9b5(0x103),'risk':a105_0x32a9b5(0xfd),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x1702bf){const _0x4864e0=a105_0x32a9b5,_0x1c604d=loadInstantApiPolicyLocalConfig(_0x1702bf[_0x4864e0(0xf7)]),_0x5a227f=await getCurrentInstantApiPolicy(_0x1702bf[_0x4864e0(0xf7)]);return{'ok':!![],'data':{'appCode':_0x1702bf['appCode'],'configured':_0x5a227f!==null,'filePath':_0x1c604d['policyFilePath'],'relativePath':_0x1c604d[_0x4864e0(0xff)],'policy':projectCurrentPolicy(_0x5a227f)},'message':_0x5a227f?_0x4864e0(0x109)+_0x5a227f[_0x4864e0(0x102)]:_0x4864e0(0x100)+_0x1702bf['appCode']};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyDefinitions: CommandDefinition[];
@@ -0,0 +1 @@
1
+ (function(_0x44b7ba,_0x514b4e){const _0x5425d4=a106_0x2593,_0x252236=_0x44b7ba();while(!![]){try{const _0x3c68ef=-parseInt(_0x5425d4(0x1f7))/0x1*(-parseInt(_0x5425d4(0x1f5))/0x2)+-parseInt(_0x5425d4(0x1ef))/0x3*(parseInt(_0x5425d4(0x1f1))/0x4)+parseInt(_0x5425d4(0x1f0))/0x5*(-parseInt(_0x5425d4(0x1f3))/0x6)+parseInt(_0x5425d4(0x1ed))/0x7+parseInt(_0x5425d4(0x1ee))/0x8*(parseInt(_0x5425d4(0x1f2))/0x9)+parseInt(_0x5425d4(0x1f6))/0xa+parseInt(_0x5425d4(0x1f8))/0xb*(-parseInt(_0x5425d4(0x1f4))/0xc);if(_0x3c68ef===_0x514b4e)break;else _0x252236['push'](_0x252236['shift']());}catch(_0x4d68cd){_0x252236['push'](_0x252236['shift']());}}}(a106_0xd5f9,0xc7b59));import{instantApiPolicyInit}from'../../commands/instant-api-policy/init.js';import{instantApiPolicyCurrent}from'../../commands/instant-api-policy/current.js';function a106_0x2593(_0x3fddbe,_0x4e1701){_0x3fddbe=_0x3fddbe-0x1ed;const _0xd5f9be=a106_0xd5f9();let _0x259399=_0xd5f9be[_0x3fddbe];return _0x259399;}import{instantApiPolicyPull}from'../../commands/instant-api-policy/pull.js';import{instantApiPolicyValidate}from'../../commands/instant-api-policy/validate.js';import{instantApiPolicyPublish}from'../../commands/instant-api-policy/publish.js';function a106_0xd5f9(){const _0x5c48a6=['9150043ALFgkN','2640488kQeKpa','45417vtNTjW','1519690khHQiT','316VjHqZC','36YTnaDy','6pCfNsM','24036ETzWfT','33644gIbCyy','15346440jaTASI','46QAduOK','14377pRIECR'];a106_0xd5f9=function(){return _0x5c48a6;};return a106_0xd5f9();}import{instantApiPolicyRevisions}from'../../commands/instant-api-policy/revisions.js';import{instantApiPolicyRevision}from'../../commands/instant-api-policy/revision.js';import{instantApiPolicyRollback}from'../../commands/instant-api-policy/rollback.js';export const instantApiPolicyDefinitions=[instantApiPolicyInit,instantApiPolicyCurrent,instantApiPolicyPull,instantApiPolicyValidate,instantApiPolicyPublish,instantApiPolicyRevisions,instantApiPolicyRevision,instantApiPolicyRollback];
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyInit: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a107_0x3c0643=a107_0x2d0e;function a107_0x5028(){const _0x25c9ea=['Default\x20action\x20when\x20no\x20dataset/API\x20rule\x20matches','2639028UIXWWz','146215gzixIg','26027460tNrqfQ','2dZiViW','Created','policyFilePath','579609KRaHnq','init','3524792XVmOkc','action','policyRelativePath','deny','52WdEoqn','1568DOtYHU','bool','appCode','str','Kept','608506oypkow','string','force','allow','default-action','Replaced','instant-api-policy','14358RXYObN'];a107_0x5028=function(){return _0x25c9ea;};return a107_0x5028();}(function(_0x594602,_0x6c60f){const _0x1b9356=a107_0x2d0e,_0x4cbae1=_0x594602();while(!![]){try{const _0x45387a=-parseInt(_0x1b9356(0xf7))/0x1*(parseInt(_0x1b9356(0x103))/0x2)+-parseInt(_0x1b9356(0x100))/0x3+-parseInt(_0x1b9356(0x10c))/0x4*(-parseInt(_0x1b9356(0x101))/0x5)+-parseInt(_0x1b9356(0xfe))/0x6*(parseInt(_0x1b9356(0x10d))/0x7)+-parseInt(_0x1b9356(0x108))/0x8+-parseInt(_0x1b9356(0x106))/0x9+parseInt(_0x1b9356(0x102))/0xa;if(_0x45387a===_0x6c60f)break;else _0x4cbae1['push'](_0x4cbae1['shift']());}catch(_0xaef7b1){_0x4cbae1['push'](_0x4cbae1['shift']());}}}(a107_0x5028,0x6ec3b));function a107_0x2d0e(_0x5a64ae,_0x53dc64){_0x5a64ae=_0x5a64ae-0xf4;const _0x50283b=a107_0x5028();let _0x2d0e53=_0x50283b[_0x5a64ae];return _0x2d0e53;}import{createDefaultInstantApiPolicyConfig,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyInit={'service':a107_0x3c0643(0xfd),'command':a107_0x3c0643(0x107),'description':'Create\x20the\x20fixed\x20local\x20Instant\x20API\x20policy\x20file','risk':'write','requiresAuth':![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a107_0x3c0643(0xfb),'type':a107_0x3c0643(0xf8),'enum':['allow',a107_0x3c0643(0x10b)],'default':a107_0x3c0643(0xfa),'description':a107_0x3c0643(0xff)},FORCE_FLAG],async 'validate'(_0x8b352c){requireForceConfirmation(_0x8b352c);},async 'execute'(_0x19d5c3){const _0x9214f7=a107_0x3c0643;requireForceConfirmation(_0x19d5c3);const _0x131971=_0x19d5c3[_0x9214f7(0xf5)]('default-action')===_0x9214f7(0x10b)?_0x9214f7(0x10b):_0x9214f7(0xfa),_0x9d5cb1=loadInstantApiPolicyLocalConfig(_0x19d5c3[_0x9214f7(0xf4)]),_0x4a1a64=createDefaultInstantApiPolicyConfig(_0x19d5c3[_0x9214f7(0xf4)],_0x131971),_0x23014e=await writeInstantApiPolicyConfigFile(_0x9d5cb1,_0x4a1a64,{'force':_0x19d5c3[_0x9214f7(0x10e)](_0x9214f7(0xf9))}),_0x4c7f23={'created':_0x9214f7(0x104),'overwritten':_0x9214f7(0xfc),'unchanged':_0x9214f7(0xf6)}[_0x23014e[_0x9214f7(0x109)]];return{'ok':!![],'data':{'operation':_0x9214f7(0x107),'selector':{'appCode':_0x19d5c3[_0x9214f7(0xf4)]},'filePath':_0x9d5cb1[_0x9214f7(0x105)],'relativePath':_0x9d5cb1[_0x9214f7(0x10a)],'action':_0x23014e['action'],'config':_0x4a1a64},'message':_0x4c7f23+'\x20Instant\x20API\x20policy\x20file\x20for\x20'+_0x19d5c3[_0x9214f7(0xf4)]};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyPublish: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a108_0x3540e1=a108_0x47c1;(function(_0x401360,_0xab8c2d){const _0x3afda6=a108_0x47c1,_0x5c4247=_0x401360();while(!![]){try{const _0x417895=parseInt(_0x3afda6(0xc6))/0x1+-parseInt(_0x3afda6(0xb3))/0x2+-parseInt(_0x3afda6(0xc8))/0x3*(-parseInt(_0x3afda6(0xb2))/0x4)+-parseInt(_0x3afda6(0xbb))/0x5+parseInt(_0x3afda6(0xaf))/0x6+parseInt(_0x3afda6(0xc2))/0x7+-parseInt(_0x3afda6(0xb9))/0x8;if(_0x417895===_0xab8c2d)break;else _0x5c4247['push'](_0x5c4247['shift']());}catch(_0x26688f){_0x5c4247['push'](_0x5c4247['shift']());}}}(a108_0x398d,0x34ab3));import{getCurrentInstantApiPolicy,isPlatformTransportFailure,publishInstantApiPolicy,validateInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a108_0x47c1(_0x25ada6,_0x5a0b2b){_0x25ada6=_0x25ada6-0xa6;const _0x398d14=a108_0x398d();let _0x47c119=_0x398d14[_0x25ada6];return _0x47c119;}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 a108_0x398d(){const _0x58003c=['configHash','766160NELwfz','before','local','validation','config','instant_api_policy_publish_verification_failed','Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20publish.','1498441PTTqXm','expectedRevision','normalizedConfig','cause','119954xIvpwx','appCode','3cWJmPe','policyFilePath','Publish\x20the\x20fixed\x20local\x20policy\x20as\x20a\x20new\x20active\x20revision','all','/publish','instant_api_policy_publish_outcome_unknown','defineProperty','planned','verified','publish','`;\x20do\x20not\x20resubmit\x20automatically.','revision','high-risk-write','Inspect\x20with\x20`','1236804LDXeaX','instant-api-policy','Publish\x20an\x20application-wide\x20Instant\x20API\x20allow,\x20deny,\x20or\x20Backend\x20Function\x20routing\x20policy.','1352152PLPmir','43148EiKdth','Published\x20Instant\x20API\x20policy\x20revision\x20','push','POST','changeSummary','policyRelativePath','3901216zhamQt'];a108_0x398d=function(){return _0x58003c;};return a108_0x398d();}async function preparePublish(_0x5ecac9){const _0x14da1b=a108_0x47c1,{local:_0x79fa39,config:_0x89076b}=await readFixedPolicy(_0x5ecac9),_0x3bf6ac=readChangeSummary(_0x5ecac9),_0x37e7c0=readExpectedRevision(_0x5ecac9),[_0x4338db,_0x45d38f]=await Promise[_0x14da1b(0xcb)]([getCurrentInstantApiPolicy(_0x5ecac9[_0x14da1b(0xc7)]),validateInstantApiPolicy({'appCode':_0x5ecac9['appCode'],'config':_0x89076b})]);return assertExpectedRevision(_0x4338db,_0x37e7c0),{'local':_0x79fa39,'config':_0x89076b,'changeSummary':_0x3bf6ac,'expectedRevision':_0x37e7c0,'before':_0x4338db,'validation':_0x45d38f};}export const instantApiPolicyPublish={'service':a108_0x3540e1(0xb0),'command':'publish','description':a108_0x3540e1(0xca),'risk':a108_0x3540e1(0xad),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':a108_0x3540e1(0xb1),'flags':[CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0x4853c6){readChangeSummary(_0x4853c6),readExpectedRevision(_0x4853c6);},async 'dryRun'(_0x2c078b){const _0x4ccc48=a108_0x3540e1,_0x4aa9f4=await preparePublish(_0x2c078b);return asDryRunResult({'operation':_0x4ccc48(0xaa),'selector':{'appCode':_0x2c078b[_0x4ccc48(0xc7)]},'before':projectCurrentPolicy(_0x4aa9f4[_0x4ccc48(0xbc)]),'after':{'revision':_0x4aa9f4[_0x4ccc48(0xbc)]?_0x4aa9f4[_0x4ccc48(0xbc)][_0x4ccc48(0xac)]+0x1:0x1,'configHash':_0x4aa9f4[_0x4ccc48(0xbe)]['configHash'],'config':_0x4aa9f4[_0x4ccc48(0xbe)][_0x4ccc48(0xc4)]},'filePath':_0x4aa9f4[_0x4ccc48(0xbd)][_0x4ccc48(0xc9)],'relativePath':_0x4aa9f4[_0x4ccc48(0xbd)][_0x4ccc48(0xb8)],'dryRun':!![],'backend':{'method':_0x4ccc48(0xb6),'path':INSTANT_API_POLICY_BASE_PATH+_0x4ccc48(0xcc)},'warnings':expectedRevisionWarnings(_0x4aa9f4['expectedRevision']),'verification':{'status':_0x4ccc48(0xa8),'expectedRevision':_0x4aa9f4[_0x4ccc48(0xc3)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x4ccc48(0xb6),'url':INSTANT_API_POLICY_BASE_PATH+_0x4ccc48(0xcc)});},async 'execute'(_0x35d1a1){const _0x3e4051=a108_0x3540e1,_0x5ec705=await preparePublish(_0x35d1a1);let _0x178f22=![];try{await publishInstantApiPolicy({'appCode':_0x35d1a1[_0x3e4051(0xc7)],'config':_0x5ec705[_0x3e4051(0xbf)],..._0x5ec705[_0x3e4051(0xb7)]?{'changeSummary':_0x5ec705[_0x3e4051(0xb7)]}:{}});}catch(_0x36960d){if(!isPlatformTransportFailure(_0x36960d))throw _0x36960d;_0x178f22=!![];}let _0x589725;try{_0x589725=await getCurrentInstantApiPolicy(_0x35d1a1['appCode']);}catch(_0x33ec27){const _0x59124b=instantApiPolicyError(_0x178f22?_0x3e4051(0xa6):'instant_api_policy_publish_verification_unavailable','The\x20publish\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x3e4051(0xae)+mutationLookupCommand()+_0x3e4051(0xab));Object[_0x3e4051(0xa7)](_0x59124b,_0x3e4051(0xc5),{'value':_0x33ec27,'enumerable':![]});throw _0x59124b;}const _0x12042a=_0x589725&&(_0x5ec705[_0x3e4051(0xbc)]===null||_0x589725['revision']>_0x5ec705[_0x3e4051(0xbc)][_0x3e4051(0xac)]),_0x3d4313=_0x589725?.[_0x3e4051(0xba)]===_0x5ec705[_0x3e4051(0xbe)][_0x3e4051(0xba)];if(!_0x589725||!_0x12042a||!_0x3d4313)throw instantApiPolicyError(_0x178f22?_0x3e4051(0xa6):_0x3e4051(0xc0),_0x3e4051(0xc1),_0x3e4051(0xae)+mutationLookupCommand()+_0x3e4051(0xab));const _0x585269=[...expectedRevisionWarnings(_0x5ec705[_0x3e4051(0xc3)]),RUNTIME_CACHE_WARNING];return _0x178f22&&_0x585269[_0x3e4051(0xb5)]('Publish\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x3e4051(0xaa),'selector':{'appCode':_0x35d1a1[_0x3e4051(0xc7)]},'before':projectCurrentPolicy(_0x5ec705[_0x3e4051(0xbc)]),'after':projectCurrentPolicy(_0x589725),'filePath':_0x5ec705['local']['policyFilePath'],'relativePath':_0x5ec705[_0x3e4051(0xbd)][_0x3e4051(0xb8)],'dryRun':![],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+'/publish'},'warnings':_0x585269,'verification':{'status':_0x3e4051(0xa9),'recoveredAfterUnknownResponse':_0x178f22,'expectedRevision':_0x5ec705[_0x3e4051(0xc3)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x3e4051(0xb4)+_0x589725[_0x3e4051(0xac)]};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyPull: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a109_0x112488=a109_0x30ef;(function(_0x5c79d5,_0x18bab5){const _0x2dace4=a109_0x30ef,_0x175c48=_0x5c79d5();while(!![]){try{const _0x5e5852=parseInt(_0x2dace4(0x1a0))/0x1*(-parseInt(_0x2dace4(0x1a6))/0x2)+-parseInt(_0x2dace4(0x199))/0x3+-parseInt(_0x2dace4(0x1a2))/0x4*(-parseInt(_0x2dace4(0x1af))/0x5)+-parseInt(_0x2dace4(0x1ae))/0x6*(parseInt(_0x2dace4(0x1ad))/0x7)+parseInt(_0x2dace4(0x1ab))/0x8+-parseInt(_0x2dace4(0x1aa))/0x9+-parseInt(_0x2dace4(0x19b))/0xa*(-parseInt(_0x2dace4(0x19e))/0xb);if(_0x5e5852===_0x18bab5)break;else _0x175c48['push'](_0x175c48['shift']());}catch(_0x3b5c2b){_0x175c48['push'](_0x175c48['shift']());}}}(a109_0x2a1d,0x586f7));function a109_0x30ef(_0x1c74dc,_0x4349b0){_0x1c74dc=_0x1c74dc-0x199;const _0x2a1d6b=a109_0x2a1d();let _0x30ef56=_0x2a1d6b[_0x1c74dc];return _0x30ef56;}import{getCurrentInstantApiPolicy}from'../../core/api-client.js';import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,writeInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';function a109_0x2a1d(){const _0x3b1ee3=['bool','pull','113110ofoKUo','action','config','force','3814389FcUYgt','560904jxTcee','write','14vSaXRM','1529826UiSJeS','48680pextil','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','\x20Instant\x20API\x20policy\x20revision\x20','1618098vZudRV','configHash','210YcSTuB','appCode','revision','1073974OzAhoU','Run\x20`rabetbase\x20instant-api-policy\x20init`\x20to\x20create\x20a\x20local\x20policy\x20draft.','9kdJFRY','policyRelativePath','92UdclzV','Kept'];a109_0x2a1d=function(){return _0x3b1ee3;};return a109_0x2a1d();}import{FORCE_FLAG,requireForceConfirmation}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyPull={'service':'instant-api-policy','command':a109_0x112488(0x1a5),'description':'Pull\x20the\x20current\x20effective\x20policy\x20into\x20the\x20fixed\x20local\x20file','risk':a109_0x112488(0x1ac),'requiresAppCode':!![],'structuredErrors':!![],'flags':[FORCE_FLAG],async 'validate'(_0x2f8f98){requireForceConfirmation(_0x2f8f98);},async 'execute'(_0x3157cf){const _0x4a383b=a109_0x112488;requireForceConfirmation(_0x3157cf);const _0x18bece=await getCurrentInstantApiPolicy(_0x3157cf[_0x4a383b(0x19c)]);if(!_0x18bece)throw instantApiPolicyError('instant_api_policy_not_configured',_0x4a383b(0x1b0)+_0x3157cf['appCode']+'.',_0x4a383b(0x19f));const _0x558e1f=loadInstantApiPolicyLocalConfig(_0x3157cf[_0x4a383b(0x19c)]),_0x554141=await writeInstantApiPolicyConfigFile(_0x558e1f,_0x18bece[_0x4a383b(0x1a8)],{'force':_0x3157cf[_0x4a383b(0x1a4)](_0x4a383b(0x1a9))});return{'ok':!![],'data':{'operation':_0x4a383b(0x1a5),'selector':{'appCode':_0x3157cf[_0x4a383b(0x19c)],'revision':_0x18bece[_0x4a383b(0x19d)]},'filePath':_0x558e1f['policyFilePath'],'relativePath':_0x558e1f[_0x4a383b(0x1a1)],'action':_0x554141[_0x4a383b(0x1a7)],'configHash':_0x18bece[_0x4a383b(0x19a)]},'message':(_0x554141[_0x4a383b(0x1a7)]==='unchanged'?_0x4a383b(0x1a3):'Pulled')+_0x4a383b(0x1b1)+_0x18bece[_0x4a383b(0x19d)]};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyRevision: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a110_0x5ecab0=a110_0x4ff4;(function(_0x26d1ee,_0x2bb19a){const _0x4638f0=a110_0x4ff4,_0x2936ed=_0x26d1ee();while(!![]){try{const _0x2c9360=-parseInt(_0x4638f0(0xfa))/0x1*(parseInt(_0x4638f0(0x100))/0x2)+parseInt(_0x4638f0(0xfe))/0x3+parseInt(_0x4638f0(0x103))/0x4+parseInt(_0x4638f0(0xfc))/0x5+-parseInt(_0x4638f0(0xf9))/0x6+parseInt(_0x4638f0(0x102))/0x7*(parseInt(_0x4638f0(0x101))/0x8)+-parseInt(_0x4638f0(0xfb))/0x9;if(_0x2c9360===_0x2bb19a)break;else _0x2936ed['push'](_0x2936ed['shift']());}catch(_0x55c3a6){_0x2936ed['push'](_0x2936ed['shift']());}}}(a110_0x3345,0x92777));function a110_0x3345(){const _0x2d966a=['5476745wrdOzN','instant-api-policy','970284SMqVrr','revision','4fnMBgD','104dVIhPq','319179cAtRop','1765868UamazJ','appCode','6143718WLHQtn','57439UKAcSJ','6428223EbLHhS'];a110_0x3345=function(){return _0x2d966a;};return a110_0x3345();}function a110_0x4ff4(_0x42ebdb,_0x1d5f16){_0x42ebdb=_0x42ebdb-0xf9;const _0x334543=a110_0x3345();let _0x4ff4d6=_0x334543[_0x42ebdb];return _0x4ff4d6;}import{getInstantApiPolicyRevision}from'../../core/api-client.js';import{projectRevisionDetail,readRevision,REVISION_FLAG}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyRevision={'service':a110_0x5ecab0(0xfd),'command':a110_0x5ecab0(0xff),'description':'Get\x20one\x20immutable\x20Instant\x20API\x20policy\x20revision','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[REVISION_FLAG],async 'validate'(_0x3a15cb){readRevision(_0x3a15cb);},async 'execute'(_0x278714){const _0x1f8725=a110_0x5ecab0,_0x26f7b7=readRevision(_0x278714),_0x3ad3c3=await getInstantApiPolicyRevision(_0x278714[_0x1f8725(0x104)],_0x26f7b7);return{'ok':!![],'data':{'revision':projectRevisionDetail(_0x3ad3c3)},'message':'Loaded\x20Instant\x20API\x20policy\x20revision\x20'+_0x26f7b7};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyRevisions: CommandDefinition;
@@ -0,0 +1 @@
1
+ function a111_0x26d7(_0x5cd81d,_0x5ca327){_0x5cd81d=_0x5cd81d-0x1ba;const _0x2eb2ff=a111_0x2eb2();let _0x26d7d0=_0x2eb2ff[_0x5cd81d];return _0x26d7d0;}const a111_0x1f764d=a111_0x26d7;(function(_0x34edc2,_0x49c600){const _0x5c3bd5=a111_0x26d7,_0x3f790b=_0x34edc2();while(!![]){try{const _0x424d39=parseInt(_0x5c3bd5(0x1c1))/0x1+parseInt(_0x5c3bd5(0x1bc))/0x2+parseInt(_0x5c3bd5(0x1bb))/0x3*(-parseInt(_0x5c3bd5(0x1be))/0x4)+parseInt(_0x5c3bd5(0x1c2))/0x5+parseInt(_0x5c3bd5(0x1c0))/0x6+parseInt(_0x5c3bd5(0x1bd))/0x7*(parseInt(_0x5c3bd5(0x1ba))/0x8)+-parseInt(_0x5c3bd5(0x1bf))/0x9*(parseInt(_0x5c3bd5(0x1c3))/0xa);if(_0x424d39===_0x49c600)break;else _0x3f790b['push'](_0x3f790b['shift']());}catch(_0x42c6e7){_0x3f790b['push'](_0x3f790b['shift']());}}}(a111_0x2eb2,0x8a405));import{listInstantApiPolicyRevisions}from'../../core/api-client.js';import{projectRevisionSummary}from'../../commands/instant-api-policy/shared.js';function a111_0x2eb2(){const _0x2845e8=['440SvNloh','37866wLtpWO','295932yxRCuf','4795uIXjpy','328SCMqxd','36QoGEOr','5847078UEjdki','514686yYrowb','4108545GPxTuQ','2238170gYDNay','length','revisions','\x20Instant\x20API\x20policy\x20revision(s)','appCode'];a111_0x2eb2=function(){return _0x2845e8;};return a111_0x2eb2();}export const instantApiPolicyRevisions={'service':'instant-api-policy','command':a111_0x1f764d(0x1c5),'description':'List\x20immutable\x20Instant\x20API\x20policy\x20revisions','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x25220b){const _0x5ba51a=a111_0x1f764d,_0xadb476=await listInstantApiPolicyRevisions(_0x25220b[_0x5ba51a(0x1c7)]);return{'ok':!![],'data':{'appCode':_0x25220b[_0x5ba51a(0x1c7)],'total':_0xadb476[_0x5ba51a(0x1c4)],'revisions':_0xadb476['map'](projectRevisionSummary)},'message':'Found\x20'+_0xadb476['length']+_0x5ba51a(0x1c6)};}};
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyRollback: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a112_0x13df5c=a112_0x25f9;(function(_0x382766,_0x4cc89b){const _0x3e7a91=a112_0x25f9,_0x87970e=_0x382766();while(!![]){try{const _0x17cd5b=-parseInt(_0x3e7a91(0x15f))/0x1+parseInt(_0x3e7a91(0x151))/0x2+-parseInt(_0x3e7a91(0x162))/0x3*(parseInt(_0x3e7a91(0x145))/0x4)+parseInt(_0x3e7a91(0x15b))/0x5*(-parseInt(_0x3e7a91(0x159))/0x6)+-parseInt(_0x3e7a91(0x15d))/0x7+-parseInt(_0x3e7a91(0x161))/0x8+parseInt(_0x3e7a91(0x153))/0x9;if(_0x17cd5b===_0x4cc89b)break;else _0x87970e['push'](_0x87970e['shift']());}catch(_0x1645b8){_0x87970e['push'](_0x87970e['shift']());}}}(a112_0x4cbd,0x4edba));import{getCurrentInstantApiPolicy,getInstantApiPolicyRevision,isPlatformTransportFailure,rollbackInstantApiPolicy}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a112_0x4cbd(){const _0x5725b6=['2460704qytMhc','23043glapkh','changeSummary','high-risk-write','/rollback','defineProperty','132qUyQWm','\x20forward\x20to\x20revision\x20','Instant\x20API\x20policy\x20is\x20not\x20configured\x20for\x20','target','push','instant_api_policy_rollback_verification_failed','appCode','instant-api-policy','rollback','instant_api_policy_not_configured','planned','revision','428642pEefCn','expectedRevision','11158218lbrIkb','instant_api_policy_rollback_verification_unavailable','Inspect\x20with\x20`','cause','instant_api_policy_rollback_outcome_unknown','`;\x20do\x20not\x20resubmit\x20automatically.','12JTVtDT','POST','461015ikxFLT','before','1291052nuPsnL','Restore\x20a\x20historical\x20policy\x20as\x20a\x20new\x20active\x20revision','201218kiZpil','Rolled\x20Instant\x20API\x20policy\x20revision\x20'];a112_0x4cbd=function(){return _0x5725b6;};return a112_0x4cbd();}function a112_0x25f9(_0xa16f22,_0x41b2a4){_0xa16f22=_0xa16f22-0x145;const _0x4cbd56=a112_0x4cbd();let _0x25f900=_0x4cbd56[_0xa16f22];return _0x25f900;}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(_0x966ba8){const _0x2de7c2=a112_0x25f9,_0xce6f34=readRevision(_0x966ba8),_0x4feb1f=readChangeSummary(_0x966ba8),_0x4790d4=readExpectedRevision(_0x966ba8),[_0x20f0f7,_0x36e41c]=await Promise['all']([getCurrentInstantApiPolicy(_0x966ba8[_0x2de7c2(0x14b)]),getInstantApiPolicyRevision(_0x966ba8[_0x2de7c2(0x14b)],_0xce6f34)]);if(!_0x20f0f7)throw instantApiPolicyError(_0x2de7c2(0x14e),_0x2de7c2(0x147)+_0x966ba8[_0x2de7c2(0x14b)]+'.');return assertExpectedRevision(_0x20f0f7,_0x4790d4),{'revision':_0xce6f34,'changeSummary':_0x4feb1f,'expectedRevision':_0x4790d4,'before':_0x20f0f7,'target':_0x36e41c};}export const instantApiPolicyRollback={'service':a112_0x13df5c(0x14c),'command':a112_0x13df5c(0x14d),'description':a112_0x13df5c(0x15e),'risk':a112_0x13df5c(0x164),'requiresAppCode':!![],'structuredErrors':!![],'confirmationDescription':'Restore\x20an\x20application-wide\x20Instant\x20API\x20policy\x20from\x20immutable\x20history\x20as\x20a\x20new\x20revision.','flags':[REVISION_FLAG,CHANGE_SUMMARY_FLAG,EXPECTED_REVISION_FLAG],async 'validate'(_0xb61718){readRevision(_0xb61718),readChangeSummary(_0xb61718),readExpectedRevision(_0xb61718);},async 'dryRun'(_0x459954){const _0x2d1fcc=a112_0x13df5c,_0x5f21c1=await prepareRollback(_0x459954);return asDryRunResult({'operation':_0x2d1fcc(0x14d),'selector':{'appCode':_0x459954[_0x2d1fcc(0x14b)],'sourceRevision':_0x5f21c1[_0x2d1fcc(0x150)]},'before':projectCurrentPolicy(_0x5f21c1[_0x2d1fcc(0x15c)]),'after':{'revision':_0x5f21c1['before']['revision']+0x1,'sourceRevision':projectRevisionDetail(_0x5f21c1['target'])},'dryRun':!![],'backend':{'method':_0x2d1fcc(0x15a),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':expectedRevisionWarnings(_0x5f21c1[_0x2d1fcc(0x152)]),'verification':{'status':_0x2d1fcc(0x14f),'expectedRevision':_0x5f21c1[_0x2d1fcc(0x152)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},{'method':_0x2d1fcc(0x15a),'url':INSTANT_API_POLICY_BASE_PATH+_0x2d1fcc(0x165)});},async 'execute'(_0x217df9){const _0x255193=a112_0x13df5c,_0x14c315=await prepareRollback(_0x217df9);let _0x1fd714=![];try{await rollbackInstantApiPolicy({'appCode':_0x217df9[_0x255193(0x14b)],'revision':_0x14c315[_0x255193(0x150)],..._0x14c315[_0x255193(0x163)]?{'changeSummary':_0x14c315[_0x255193(0x163)]}:{}});}catch(_0x581b1e){if(!isPlatformTransportFailure(_0x581b1e))throw _0x581b1e;_0x1fd714=!![];}let _0x16a4c2;try{_0x16a4c2=await getCurrentInstantApiPolicy(_0x217df9[_0x255193(0x14b)]);}catch(_0x4572e1){const _0x2cfc89=instantApiPolicyError(_0x1fd714?_0x255193(0x157):_0x255193(0x154),'The\x20rollback\x20request\x20was\x20sent,\x20but\x20the\x20current\x20policy\x20could\x20not\x20be\x20verified.',_0x255193(0x155)+mutationLookupCommand()+_0x255193(0x158));Object[_0x255193(0x166)](_0x2cfc89,_0x255193(0x156),{'value':_0x4572e1,'enumerable':![]});throw _0x2cfc89;}const _0x20b085=_0x16a4c2&&_0x16a4c2['revision']>_0x14c315[_0x255193(0x15c)]['revision'],_0x5e32ac=_0x16a4c2?.['configHash']===_0x14c315[_0x255193(0x148)]['configHash'];if(!_0x16a4c2||!_0x20b085||!_0x5e32ac)throw instantApiPolicyError(_0x1fd714?_0x255193(0x157):_0x255193(0x14a),'Current\x20policy\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20rollback.','Inspect\x20with\x20`'+mutationLookupCommand()+_0x255193(0x158));const _0x3f7737=[...expectedRevisionWarnings(_0x14c315[_0x255193(0x152)]),RUNTIME_CACHE_WARNING];return _0x1fd714&&_0x3f7737[_0x255193(0x149)]('Rollback\x20response\x20was\x20unavailable;\x20current-policy\x20readback\x20proved\x20the\x20new\x20revision\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':'rollback','selector':{'appCode':_0x217df9['appCode'],'sourceRevision':_0x14c315[_0x255193(0x150)]},'before':projectCurrentPolicy(_0x14c315[_0x255193(0x15c)]),'after':projectCurrentPolicy(_0x16a4c2),'dryRun':![],'backend':{'method':_0x255193(0x15a),'path':INSTANT_API_POLICY_BASE_PATH+'/rollback'},'warnings':_0x3f7737,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x1fd714,'expectedRevision':_0x14c315[_0x255193(0x152)]??null,'atomicCompareAndSet':![],'lookupCommand':mutationLookupCommand()}},'message':_0x255193(0x160)+_0x14c315[_0x255193(0x150)]+_0x255193(0x146)+_0x16a4c2[_0x255193(0x150)]};}};
@@ -0,0 +1,82 @@
1
+ import type { InstantApiPolicy, InstantApiPolicyConfig, InstantApiPolicyRevision } from "../../core/api-client.js";
2
+ import { loadInstantApiPolicyLocalConfig } from "../../core/instant-api-policy/config.js";
3
+ import type { RuntimeContext } from "../../framework/types.js";
4
+ export declare const INSTANT_API_POLICY_BASE_PATH = "/smartapi/instant-api-policy";
5
+ export declare const RUNTIME_CACHE_WARNING = "Runtime instances may take up to 30 seconds to observe the new active policy.";
6
+ export declare const NON_ATOMIC_EXPECTED_REVISION_WARNING = "--expected-revision is a non-atomic read-before-write assertion; the server mutation contract has no revision predicate.";
7
+ export declare const FORCE_FLAG: {
8
+ name: string;
9
+ type: "boolean";
10
+ default: boolean;
11
+ description: string;
12
+ };
13
+ export declare const CHANGE_SUMMARY_FLAG: {
14
+ name: string;
15
+ type: "string";
16
+ required: boolean;
17
+ description: string;
18
+ };
19
+ export declare const REVISION_FLAG: {
20
+ name: string;
21
+ type: "number";
22
+ required: boolean;
23
+ description: string;
24
+ };
25
+ export declare const EXPECTED_REVISION_FLAG: {
26
+ name: string;
27
+ type: "number";
28
+ required: boolean;
29
+ description: string;
30
+ };
31
+ export declare function requireForceConfirmation(ctx: RuntimeContext): void;
32
+ export declare function readChangeSummary(ctx: RuntimeContext): string | undefined;
33
+ export declare function readRevision(ctx: RuntimeContext): number;
34
+ export declare function readExpectedRevision(ctx: RuntimeContext): number | undefined;
35
+ export declare function assertExpectedRevision(current: InstantApiPolicy | null, expectedRevision: number | undefined): void;
36
+ export declare function readFixedPolicy(ctx: RuntimeContext): Promise<{
37
+ local: ReturnType<typeof loadInstantApiPolicyLocalConfig>;
38
+ config: InstantApiPolicyConfig;
39
+ }>;
40
+ export declare function projectCurrentPolicy(policy: InstantApiPolicy | null): {
41
+ id: number;
42
+ appCode: string;
43
+ revision: number;
44
+ configHash: string;
45
+ enabled: boolean;
46
+ config: InstantApiPolicyConfig;
47
+ createUserId: string | null;
48
+ updateUserId: string | null;
49
+ gmtCreate: string | null;
50
+ gmtModified: string | null;
51
+ } | null;
52
+ export declare function projectRevisionSummary(revision: InstantApiPolicyRevision): {
53
+ id: number;
54
+ policyId: number;
55
+ appCode: string;
56
+ revision: number;
57
+ configHash: string;
58
+ changeType: string;
59
+ changeSummary: string | null;
60
+ operatorId: string | null;
61
+ gmtCreate: string | null;
62
+ version: string;
63
+ defaultAction: string;
64
+ ruleCount: number;
65
+ };
66
+ export declare function projectRevisionDetail(revision: InstantApiPolicyRevision): {
67
+ config: InstantApiPolicyConfig;
68
+ id: number;
69
+ policyId: number;
70
+ appCode: string;
71
+ revision: number;
72
+ configHash: string;
73
+ changeType: string;
74
+ changeSummary: string | null;
75
+ operatorId: string | null;
76
+ gmtCreate: string | null;
77
+ version: string;
78
+ defaultAction: string;
79
+ ruleCount: number;
80
+ };
81
+ export declare function expectedRevisionWarnings(expectedRevision: number | undefined): string[];
82
+ export declare function mutationLookupCommand(): string;
@@ -0,0 +1 @@
1
+ const a113_0x5870d0=a113_0x5193;(function(_0x5018cd,_0x46e6bd){const _0x54d741=a113_0x5193,_0x37b2f0=_0x5018cd();while(!![]){try{const _0x5e966=parseInt(_0x54d741(0x148))/0x1*(-parseInt(_0x54d741(0x159))/0x2)+parseInt(_0x54d741(0x158))/0x3+-parseInt(_0x54d741(0x12d))/0x4*(-parseInt(_0x54d741(0x144))/0x5)+-parseInt(_0x54d741(0x136))/0x6+-parseInt(_0x54d741(0x147))/0x7*(parseInt(_0x54d741(0x12a))/0x8)+parseInt(_0x54d741(0x138))/0x9*(parseInt(_0x54d741(0x139))/0xa)+-parseInt(_0x54d741(0x12f))/0xb;if(_0x5e966===_0x46e6bd)break;else _0x37b2f0['push'](_0x37b2f0['shift']());}catch(_0x52eaef){_0x37b2f0['push'](_0x37b2f0['shift']());}}}(a113_0x2269,0x23902));import{instantApiPolicyError,loadInstantApiPolicyLocalConfig,readInstantApiPolicyConfigFile}from'../../core/instant-api-policy/config.js';export const INSTANT_API_POLICY_BASE_PATH=a113_0x5870d0(0x14e);export const RUNTIME_CACHE_WARNING=a113_0x5870d0(0x152);export const NON_ATOMIC_EXPECTED_REVISION_WARNING=a113_0x5870d0(0x14b);function a113_0x5193(_0x1dc146,_0x2b4005){_0x1dc146=_0x1dc146-0x128;const _0x226921=a113_0x2269();let _0x519354=_0x226921[_0x1dc146];return _0x519354;}export const FORCE_FLAG={'name':'force','type':a113_0x5870d0(0x130),'default':![],'description':'Replace\x20an\x20existing\x20fixed\x20policy\x20file;\x20requires\x20--yes'};export const CHANGE_SUMMARY_FLAG={'name':a113_0x5870d0(0x135),'type':a113_0x5870d0(0x14d),'required':![],'description':'Audit\x20summary\x20for\x20this\x20policy\x20revision\x20(maximum\x202000\x20characters)'};export const REVISION_FLAG={'name':a113_0x5870d0(0x145),'type':'number','required':!![],'description':a113_0x5870d0(0x12b)};export const EXPECTED_REVISION_FLAG={'name':a113_0x5870d0(0x137),'type':a113_0x5870d0(0x131),'required':![],'description':a113_0x5870d0(0x14a)};export function requireForceConfirmation(_0x50d565){const _0x2b2cc1=a113_0x5870d0;if(!_0x50d565['bool'](_0x2b2cc1(0x14f))||_0x50d565[_0x2b2cc1(0x133)](_0x2b2cc1(0x13c)))return;throw instantApiPolicyError(_0x2b2cc1(0x155),_0x2b2cc1(0x143),'Review\x20the\x20existing\x20file,\x20then\x20rerun\x20with\x20--force\x20--yes.');}export function readChangeSummary(_0x46241a){const _0x57ef34=a113_0x5870d0,_0x4e46a1=_0x46241a[_0x57ef34(0x15c)](_0x57ef34(0x135))['trim']();if(!_0x4e46a1)return undefined;if(_0x4e46a1[_0x57ef34(0x129)]>0x7d0)throw instantApiPolicyError('instant_api_policy_change_summary_invalid',_0x57ef34(0x146));return _0x4e46a1;}export function readRevision(_0x4bdffe){const _0x319527=a113_0x5870d0,_0x23d400=_0x4bdffe[_0x319527(0x14c)](_0x319527(0x145),Number[_0x319527(0x142)]);if(!Number[_0x319527(0x15e)](_0x23d400)||_0x23d400<=0x0)throw instantApiPolicyError(_0x319527(0x141),_0x319527(0x156));return _0x23d400;}export function readExpectedRevision(_0x2d66d8){const _0x4069ad=a113_0x5870d0;if(_0x2d66d8[_0x4069ad(0x13e)](_0x4069ad(0x137))===undefined)return undefined;const _0x3f2be3=_0x2d66d8[_0x4069ad(0x14c)]('expected-revision',Number[_0x4069ad(0x142)]);if(!Number[_0x4069ad(0x15e)](_0x3f2be3)||_0x3f2be3<0x0)throw instantApiPolicyError('instant_api_policy_expected_revision_invalid',_0x4069ad(0x13a));return _0x3f2be3;}export function assertExpectedRevision(_0x209905,_0x196a40){const _0x18414d=a113_0x5870d0;if(_0x196a40===undefined)return;const _0x26b2b1=_0x209905?.[_0x18414d(0x145)]??0x0;if(_0x26b2b1!==_0x196a40)throw instantApiPolicyError(_0x18414d(0x15b),_0x18414d(0x154),_0x18414d(0x12c)+_0x196a40+_0x18414d(0x157)+_0x26b2b1+'.\x20Run\x20current\x20and\x20review\x20before\x20retrying.');}export async function readFixedPolicy(_0x2d3b16){const _0x3a0618=a113_0x5870d0,_0x58eeaa=loadInstantApiPolicyLocalConfig(_0x2d3b16[_0x3a0618(0x12e)]),_0x2b6cb3=await readInstantApiPolicyConfigFile(_0x58eeaa);return{'local':_0x58eeaa,'config':_0x2b6cb3};}export function projectCurrentPolicy(_0xa2265b){const _0x5e79f0=a113_0x5870d0;if(!_0xa2265b)return null;return{'id':_0xa2265b['id'],'appCode':_0xa2265b['appCode'],'revision':_0xa2265b[_0x5e79f0(0x145)],'configHash':_0xa2265b['configHash'],'enabled':_0xa2265b[_0x5e79f0(0x15f)],'config':_0xa2265b[_0x5e79f0(0x15a)],'createUserId':_0xa2265b[_0x5e79f0(0x150)]??null,'updateUserId':_0xa2265b[_0x5e79f0(0x13f)]??null,'gmtCreate':_0xa2265b['gmtCreate']??null,'gmtModified':_0xa2265b[_0x5e79f0(0x151)]??null};}export function projectRevisionSummary(_0x9aabec){const _0x18b5af=a113_0x5870d0;return{'id':_0x9aabec['id'],'policyId':_0x9aabec['policyId'],'appCode':_0x9aabec[_0x18b5af(0x12e)],'revision':_0x9aabec[_0x18b5af(0x145)],'configHash':_0x9aabec[_0x18b5af(0x128)],'changeType':_0x9aabec[_0x18b5af(0x153)],'changeSummary':_0x9aabec[_0x18b5af(0x13b)]??null,'operatorId':_0x9aabec[_0x18b5af(0x149)]??null,'gmtCreate':_0x9aabec[_0x18b5af(0x134)]??null,'version':_0x9aabec[_0x18b5af(0x15a)][_0x18b5af(0x140)],'defaultAction':_0x9aabec['config'][_0x18b5af(0x13d)][_0x18b5af(0x15d)],'ruleCount':_0x9aabec[_0x18b5af(0x15a)][_0x18b5af(0x132)]?.[_0x18b5af(0x129)]??0x0};}export function projectRevisionDetail(_0x56f568){const _0x4ba422=a113_0x5870d0;return{...projectRevisionSummary(_0x56f568),'config':_0x56f568[_0x4ba422(0x15a)]};}function a113_0x2269(){const _0x14ed78=['expected-revision','8019VYJSlS','2540WgFpBv','--expected-revision\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','changeSummary','yes','defaults','flag','updateUserId','version','instant_api_policy_revision_invalid','NaN','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20the\x20fixed\x20local\x20policy\x20file.','40QUSUsJ','revision','--change-summary\x20cannot\x20exceed\x202000\x20characters.','14zicmSg','5141sSSncc','operatorId','Non-atomic\x20assertion\x20for\x20the\x20current\x20revision;\x20use\x200\x20when\x20unconfigured','--expected-revision\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20mutation\x20contract\x20has\x20no\x20revision\x20predicate.','num','string','/smartapi/instant-api-policy','force','createUserId','gmtModified','Runtime\x20instances\x20may\x20take\x20up\x20to\x2030\x20seconds\x20to\x20observe\x20the\x20new\x20active\x20policy.','changeType','The\x20current\x20Instant\x20API\x20policy\x20revision\x20changed\x20before\x20mutation.','instant_api_policy_force_confirmation_required','--revision\x20must\x20be\x20a\x20positive\x20safe\x20integer.',';\x20current\x20revision\x20is\x20','861621OnSSZQ','42rapZMd','config','instant_api_policy_revision_mismatch','str','instantApi','isSafeInteger','enabled','configHash','length','473496zrYPXY','Positive\x20published\x20policy\x20revision','Expected\x20revision\x20','142168idPjde','appCode','2090704zlKWbH','boolean','number','rules','bool','gmtCreate','change-summary','1414752YjbjDZ'];a113_0x2269=function(){return _0x14ed78;};return a113_0x2269();}export function expectedRevisionWarnings(_0x304778){return _0x304778===undefined?[]:[NON_ATOMIC_EXPECTED_REVISION_WARNING];}export function mutationLookupCommand(){return'rabetbase\x20instant-api-policy\x20current\x20--format\x20compress';}
@@ -0,0 +1,2 @@
1
+ import type { CommandDefinition } from "../../framework/types.js";
2
+ export declare const instantApiPolicyValidate: CommandDefinition;
@@ -0,0 +1 @@
1
+ const a114_0x158455=a114_0x10e9;(function(_0x43f990,_0x29744d){const _0x4b72f1=a114_0x10e9,_0x21e899=_0x43f990();while(!![]){try{const _0x20ca4b=parseInt(_0x4b72f1(0xda))/0x1*(-parseInt(_0x4b72f1(0xc7))/0x2)+parseInt(_0x4b72f1(0xcf))/0x3*(parseInt(_0x4b72f1(0xd4))/0x4)+-parseInt(_0x4b72f1(0xd0))/0x5*(parseInt(_0x4b72f1(0xd1))/0x6)+-parseInt(_0x4b72f1(0xcd))/0x7*(parseInt(_0x4b72f1(0xd2))/0x8)+parseInt(_0x4b72f1(0xd9))/0x9*(parseInt(_0x4b72f1(0xc6))/0xa)+-parseInt(_0x4b72f1(0xd3))/0xb*(parseInt(_0x4b72f1(0xcb))/0xc)+parseInt(_0x4b72f1(0xca))/0xd;if(_0x20ca4b===_0x29744d)break;else _0x21e899['push'](_0x21e899['shift']());}catch(_0x279375){_0x21e899['push'](_0x21e899['shift']());}}}(a114_0x5677,0xa6d68));import{validateInstantApiPolicy}from'../../core/api-client.js';function a114_0x10e9(_0x21aef2,_0x3a3b8f){_0x21aef2=_0x21aef2-0xc5;const _0x5677a9=a114_0x5677();let _0x10e90f=_0x5677a9[_0x21aef2];return _0x10e90f;}function a114_0x5677(){const _0x4027df=['7JFeegj','read','182510oXfPuU','348614OzmHyN','policyRelativePath','policyFilePath','28600676xHmJET','3398676OPVFvP','/validate','1801303HvJbkl','validate','3672489PWnWnE','35xfjAJO','13878Cvlyjl','32gISlee','22QJKkwz','4DWClaL','appCode','Validate\x20the\x20fixed\x20local\x20policy\x20without\x20publishing','Validated\x20Instant\x20API\x20policy\x20for\x20','instant-api-policy','45xPkYQn'];a114_0x5677=function(){return _0x4027df;};return a114_0x5677();}import{INSTANT_API_POLICY_BASE_PATH,readFixedPolicy}from'../../commands/instant-api-policy/shared.js';export const instantApiPolicyValidate={'service':a114_0x158455(0xd8),'command':a114_0x158455(0xce),'description':a114_0x158455(0xd6),'risk':a114_0x158455(0xc5),'requiresAppCode':!![],'structuredErrors':!![],'flags':[],async 'execute'(_0x26a4a0){const _0x5acef6=a114_0x158455,{local:_0x53f5c3,config:_0x3dc892}=await readFixedPolicy(_0x26a4a0),_0x265394=await validateInstantApiPolicy({'appCode':_0x26a4a0['appCode'],'config':_0x3dc892});return{'ok':!![],'data':{'operation':'validate','selector':{'appCode':_0x26a4a0['appCode']},'filePath':_0x53f5c3[_0x5acef6(0xc9)],'relativePath':_0x53f5c3[_0x5acef6(0xc8)],'valid':_0x265394['valid'],'configHash':_0x265394['configHash'],'normalizedConfig':_0x265394['normalizedConfig'],'backend':{'method':'POST','path':INSTANT_API_POLICY_BASE_PATH+_0x5acef6(0xcc)}},'message':_0x5acef6(0xd7)+_0x26a4a0[_0x5acef6(0xd5)]};}};
@@ -1 +1 @@
1
- function a102_0x59be(){const _0x57dd0e=['282ZlEvDZ','527452SxJaML','63oSGnPR','793105ryLAaq','2100664BRYsNM','3079730cFjhtd','35399560EaKoDC','254009CuqeRY','263487HfwiLV','60jDlBMO'];a102_0x59be=function(){return _0x57dd0e;};return a102_0x59be();}function a102_0x1e99(_0x52567c,_0x3db722){_0x52567c=_0x52567c-0xdf;const _0x59bee3=a102_0x59be();let _0x1e990a=_0x59bee3[_0x52567c];return _0x1e990a;}(function(_0x1c1574,_0x2bda13){const _0x108c76=a102_0x1e99,_0x94243d=_0x1c1574();while(!![]){try{const _0x1afcec=parseInt(_0x108c76(0xe8))/0x1+-parseInt(_0x108c76(0xe0))/0x2+parseInt(_0x108c76(0xe3))/0x3+parseInt(_0x108c76(0xe6))/0x4*(parseInt(_0x108c76(0xe4))/0x5)+-parseInt(_0x108c76(0xe5))/0x6*(parseInt(_0x108c76(0xe2))/0x7)+parseInt(_0x108c76(0xdf))/0x8*(-parseInt(_0x108c76(0xe7))/0x9)+parseInt(_0x108c76(0xe1))/0xa;if(_0x1afcec===_0x2bda13)break;else _0x94243d['push'](_0x94243d['shift']());}catch(_0x48d2d5){_0x94243d['push'](_0x94243d['shift']());}}}(a102_0x59be,0xe0903));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x27a8b2,_0x3a4d7a){const _0x5ad74f=a115_0x3516,_0x22964f=_0x27a8b2();while(!![]){try{const _0x3b8f76=parseInt(_0x5ad74f(0x13a))/0x1*(-parseInt(_0x5ad74f(0x13f))/0x2)+parseInt(_0x5ad74f(0x139))/0x3*(parseInt(_0x5ad74f(0x142))/0x4)+parseInt(_0x5ad74f(0x140))/0x5+-parseInt(_0x5ad74f(0x13c))/0x6+parseInt(_0x5ad74f(0x138))/0x7*(parseInt(_0x5ad74f(0x13b))/0x8)+-parseInt(_0x5ad74f(0x141))/0x9*(parseInt(_0x5ad74f(0x13d))/0xa)+-parseInt(_0x5ad74f(0x13e))/0xb;if(_0x3b8f76===_0x3a4d7a)break;else _0x22964f['push'](_0x22964f['shift']());}catch(_0x535cf7){_0x22964f['push'](_0x22964f['shift']());}}}(a115_0x5e74,0x987cf));function a115_0x3516(_0x3211c6,_0xcf3a63){_0x3211c6=_0x3211c6-0x138;const _0x5e7457=a115_0x5e74();let _0x3516f0=_0x5e7457[_0x3211c6];return _0x3516f0;}import{issueReport}from'../../commands/issue/report.js';function a115_0x5e74(){const _0x3ab426=['3008864IMAfYh','28590kDDAQr','10jpfqWg','9720986oUOBxC','30kFxSPC','4914135GdfxhD','5389902JuJzhP','284120TAFkNy','7DvsyNP','33uSQCIp','1887jIVLvR'];a115_0x5e74=function(){return _0x3ab426;};return a115_0x5e74();}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a103_0x39440a=a103_0x4c1a;(function(_0x43da50,_0x36ef73){const _0x1e3045=a103_0x4c1a,_0x283a79=_0x43da50();while(!![]){try{const _0xd873ce=parseInt(_0x1e3045(0x15b))/0x1+parseInt(_0x1e3045(0x166))/0x2*(-parseInt(_0x1e3045(0x165))/0x3)+-parseInt(_0x1e3045(0x154))/0x4+-parseInt(_0x1e3045(0x153))/0x5+parseInt(_0x1e3045(0x156))/0x6+parseInt(_0x1e3045(0x15e))/0x7+parseInt(_0x1e3045(0x161))/0x8;if(_0xd873ce===_0x36ef73)break;else _0x283a79['push'](_0x283a79['shift']());}catch(_0x44c904){_0x283a79['push'](_0x283a79['shift']());}}}(a103_0x1d93,0x36d1f));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a103_0x39440a(0x169);function a103_0x4c1a(_0x53a58c,_0xdda9d9){_0x53a58c=_0x53a58c-0x14d;const _0x1d93a5=a103_0x1d93();let _0x4c1ae4=_0x1d93a5[_0x53a58c];return _0x4c1ae4;}const NUDGE_SUPPRESSED_CODES=new Set([a103_0x39440a(0x158),a103_0x39440a(0x167),a103_0x39440a(0x162),a103_0x39440a(0x163),'unknown_command',a103_0x39440a(0x16a),a103_0x39440a(0x15c),a103_0x39440a(0x151)]),defaultWriter=_0x370293=>{const _0x687956=a103_0x39440a;process[_0x687956(0x15a)][_0x687956(0x15f)](_0x370293);};export function shouldNudgeForError(_0x9d4a0a,_0x2622ff){const _0xfcfb8a=a103_0x39440a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2622ff[_0xfcfb8a(0x14d)]==='issue'&&_0x2622ff[_0xfcfb8a(0x15d)]==='report')return![];if(_0x9d4a0a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xfcfb8a(0x16e)](_0x9d4a0a[_0xfcfb8a(0x168)]);return!![];}export function printIssueReportNudgeForError(_0x3f16da,_0x207d8a,_0x54a13f=defaultWriter){if(!shouldNudgeForError(_0x3f16da,_0x207d8a))return;const _0xd31435=buildSuggestedTitle(_0x3f16da,_0x207d8a);_0x54a13f(formatNudge(_0xd31435));}function buildSuggestedTitle(_0x40b5d0,_0x26324e){const _0x15f142=a103_0x39440a,_0x54e4de=_0x40b5d0 instanceof Error?_0x40b5d0[_0x15f142(0x16c)]:String(_0x40b5d0),_0x41f74d=_0x54e4de['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x15f142(0x152)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x2741c2=CLI_BIN_NAME+'\x20'+_0x26324e['service']+'\x20'+_0x26324e['command'];return _0x41f74d[_0x15f142(0x155)]>0x0?_0x2741c2+':\x20'+_0x41f74d:_0x2741c2;}function a103_0x1d93(){const _0x2d4c9d=['RABETBASE_DISABLE_ISSUE_NUDGE','flag_missing','\x20bug?\x20Help\x20us\x20fix\x20it:','message','\x20\x20Set\x20','has','join','service','\x22\x20\x5c','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22','network_error','trim','2232470OUhzjD','980876FEczQa','length','794604VxCNRT','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','cancelled','=1\x20to\x20silence\x20this\x20hint.','stderr','146544zsMirL','validation_error','command','1030652KUeroE','write','Hit\x20a\x20','6789872nIYiKm','config_missing','not_in_project','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','1278qTlThe','1684LJzghg','auth_required','code'];a103_0x1d93=function(){return _0x2d4c9d;};return a103_0x1d93();}function formatNudge(_0x1c4fc4){const _0x2c2dc8=a103_0x39440a;return['',_0x2c2dc8(0x160)+CLI_BIN_NAME+_0x2c2dc8(0x16b),'\x20\x20'+CLI_BIN_NAME+_0x2c2dc8(0x14f),_0x2c2dc8(0x150)+_0x1c4fc4+_0x2c2dc8(0x14e),_0x2c2dc8(0x164),_0x2c2dc8(0x157),_0x2c2dc8(0x16d)+NUDGE_OPT_OUT_ENV+_0x2c2dc8(0x159),''][_0x2c2dc8(0x16f)]('\x0a');}
1
+ const a116_0x3f9f06=a116_0x9381;(function(_0x1c3a90,_0x2e0662){const _0x2f0016=a116_0x9381,_0x2211d3=_0x1c3a90();while(!![]){try{const _0x30ebfc=parseInt(_0x2f0016(0x9f))/0x1*(-parseInt(_0x2f0016(0x92))/0x2)+parseInt(_0x2f0016(0x9a))/0x3+parseInt(_0x2f0016(0x93))/0x4+parseInt(_0x2f0016(0x8e))/0x5+parseInt(_0x2f0016(0x9d))/0x6*(-parseInt(_0x2f0016(0xaa))/0x7)+-parseInt(_0x2f0016(0xa7))/0x8+-parseInt(_0x2f0016(0x98))/0x9*(parseInt(_0x2f0016(0x88))/0xa);if(_0x30ebfc===_0x2e0662)break;else _0x2211d3['push'](_0x2211d3['shift']());}catch(_0x519f95){_0x2211d3['push'](_0x2211d3['shift']());}}}(a116_0x5190,0x5ca42));import{CliError}from'../../errors.js';function a116_0x5190(){const _0x106aa5=['8RrRhyx','2685708eideDT','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','stderr','length','issue','5706QfFpxl','\x20bug?\x20Help\x20us\x20fix\x20it:','1940052taZpyo','trim','message','6ZZbyAU','\x20issue\x20report\x20\x5c','72983rXzljI','Hit\x20a\x20','service','auth_required','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','replace','unknown_command','1660384RwfRFW','\x20\x20Set\x20','report','2779693fzUmEA','validation_error','has','=1\x20to\x20silence\x20this\x20hint.','2420MVDeuh','command','not_in_project','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x22\x20\x5c','config_missing','556770SAdfJQ','\x20\x20\x20\x20--title\x20\x22','slice','write'];a116_0x5190=function(){return _0x106aa5;};return a116_0x5190();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a116_0x3f9f06(0xa3);function a116_0x9381(_0x381f14,_0x891038){_0x381f14=_0x381f14-0x86;const _0x519050=a116_0x5190();let _0x9381f1=_0x519050[_0x381f14];return _0x9381f1;}const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a116_0x3f9f06(0xa2),a116_0x3f9f06(0x8d),a116_0x3f9f06(0x8a),a116_0x3f9f06(0xa6),'flag_missing',a116_0x3f9f06(0xab),a116_0x3f9f06(0xa4)]),defaultWriter=_0x3ef1f9=>{const _0x4e039e=a116_0x3f9f06;process[_0x4e039e(0x95)][_0x4e039e(0x91)](_0x3ef1f9);};export function shouldNudgeForError(_0x2a4e91,_0x43db6c){const _0x3691d7=a116_0x3f9f06;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x43db6c['service']===_0x3691d7(0x97)&&_0x43db6c[_0x3691d7(0x89)]===_0x3691d7(0xa9))return![];if(_0x2a4e91 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3691d7(0x86)](_0x2a4e91['code']);return!![];}export function printIssueReportNudgeForError(_0x1d8dbc,_0x35433c,_0x2abe76=defaultWriter){if(!shouldNudgeForError(_0x1d8dbc,_0x35433c))return;const _0x1a717f=buildSuggestedTitle(_0x1d8dbc,_0x35433c);_0x2abe76(formatNudge(_0x1a717f));}function buildSuggestedTitle(_0x6e0e35,_0xbc29eb){const _0x5865db=a116_0x3f9f06,_0x2c7bc6=_0x6e0e35 instanceof Error?_0x6e0e35[_0x5865db(0x9c)]:String(_0x6e0e35),_0x34529e=_0x2c7bc6[_0x5865db(0xa5)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x5865db(0x9b)]()[_0x5865db(0x90)](0x0,0x78)[_0x5865db(0xa5)](/"/g,'\x5c\x22'),_0x24bdac=CLI_BIN_NAME+'\x20'+_0xbc29eb[_0x5865db(0xa1)]+'\x20'+_0xbc29eb[_0x5865db(0x89)];return _0x34529e[_0x5865db(0x96)]>0x0?_0x24bdac+':\x20'+_0x34529e:_0x24bdac;}function formatNudge(_0x4003ac){const _0x404984=a116_0x3f9f06;return['',_0x404984(0xa0)+CLI_BIN_NAME+_0x404984(0x99),'\x20\x20'+CLI_BIN_NAME+_0x404984(0x9e),_0x404984(0x8f)+_0x4003ac+_0x404984(0x8c),_0x404984(0x94),_0x404984(0x8b),_0x404984(0xa8)+NUDGE_OPT_OUT_ENV+_0x404984(0x87),'']['join']('\x0a');}
@@ -1 +1 @@
1
- function a104_0x2e13(){const _0x4b47a9=['redacted\x20','otel://','295737GMWQYL','redactions:\x20','cwd','issue.description_redactions','trim','5152488vjNiUo','sanitize','issue.description_truncated','truncated:\x20original\x20','\x20secret(s):\x20','message','File\x20not\x20found:\x20','223qlggsz','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','apiError','6670644MOzYZv','redactionCount','descriptionSource','127496nbGKTK','Platform\x20issue\x20reported','truncated','inline','\x20bytes','redactionKinds','10YlIOku','issue.description_original_bytes','descriptionFilePath','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated\x20from\x20','POST','One-line\x20issue\x20summary','description-file','str','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Issue\x20description\x20cannot\x20be\x20empty.','length','flagMissing','write','2000710qzhgfd','compress','Failed\x20to\x20report\x20platform\x20issue:\x20','filter','file','issue.description_redaction_kinds','9609300yDzgRN','utf8','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','title','455fwSxJg','string','description','validation','issue.description','originalBytes','join'];a104_0x2e13=function(){return _0x4b47a9;};return a104_0x2e13();}const a104_0x2d6473=a104_0x5947;(function(_0x5cd247,_0x548639){const _0x358d2f=a104_0x5947,_0x5eae3f=_0x5cd247();while(!![]){try{const _0x27653e=parseInt(_0x358d2f(0x104))/0x1+parseInt(_0x358d2f(0x110))/0x2*(parseInt(_0x358d2f(0xf8))/0x3)+-parseInt(_0x358d2f(0xfd))/0x4+parseInt(_0x358d2f(0x11e))/0x5+parseInt(_0x358d2f(0x107))/0x6+parseInt(_0x358d2f(0xef))/0x7*(parseInt(_0x358d2f(0x10a))/0x8)+-parseInt(_0x358d2f(0xeb))/0x9;if(_0x27653e===_0x548639)break;else _0x5eae3f['push'](_0x5eae3f['shift']());}catch(_0x8cda16){_0x5eae3f['push'](_0x5eae3f['shift']());}}}(a104_0x2e13,0xa743d));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';function a104_0x5947(_0x8bf4a7,_0x434991){_0x8bf4a7=_0x8bf4a7-0xe8;const _0x2e13de=a104_0x2e13();let _0x594740=_0x2e13de[_0x8bf4a7];return _0x594740;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a104_0x2d6473(0x117);export const issueReport={'service':'issue','command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a104_0x2d6473(0x11d),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a104_0x2d6473(0x11f),'flags':[{'name':a104_0x2d6473(0xee),'type':a104_0x2d6473(0xf0),'required':!![],'description':a104_0x2d6473(0x116)},{'name':'description','type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a104_0x2d6473(0xf0),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0xe96bee){const _0x10b989=a104_0x2d6473,_0x4a6d17=_0xe96bee[_0x10b989(0x118)](_0x10b989(0xee))[_0x10b989(0xfc)](),_0x1fbea4=_0xe96bee[_0x10b989(0x118)](_0x10b989(0xf1))[_0x10b989(0xfc)](),_0x244668=_0xe96bee['str'](DESCRIPTION_FILE_FLAG)[_0x10b989(0xfc)]();if(!_0x4a6d17)throw CliErrors[_0x10b989(0x11c)](_0x10b989(0xee),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x171177=_0x1fbea4[_0x10b989(0x11b)]>0x0,_0x2e49ea=_0x244668['length']>0x0;if(_0x171177===_0x2e49ea)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x10b989(0x113));if(_0x2e49ea){const _0x3f987c=resolve(process[_0x10b989(0xfa)](),_0x244668);if(!existsSync(_0x3f987c))throw CliErrors[_0x10b989(0xf2)](_0x10b989(0x103)+_0x3f987c);}},async 'dryRun'(_0xd93eed){const _0x3be1d7=a104_0x2d6473,_0x1ee7ae=await prepareIssueReport(_0xd93eed);return{'method':_0x3be1d7(0x115),'url':_0x3be1d7(0xf7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1ee7ae[_0x3be1d7(0xee)],'issue.description':_0x1ee7ae[_0x3be1d7(0xf1)],'issue.description_original_bytes':_0x1ee7ae[_0x3be1d7(0xfe)][_0x3be1d7(0xf4)],'issue.description_truncated':_0x1ee7ae[_0x3be1d7(0xfe)][_0x3be1d7(0x10c)],'issue.description_redactions':_0x1ee7ae[_0x3be1d7(0xfe)]['redactionCount'],'issue.description_redaction_kinds':_0x1ee7ae[_0x3be1d7(0xfe)][_0x3be1d7(0x10f)][_0x3be1d7(0xf5)](',')}},'description':[_0x3be1d7(0xed),'descriptionSource:\x20'+_0x1ee7ae['descriptionSource'],_0x1ee7ae[_0x3be1d7(0x112)]?'descriptionFile:\x20'+_0x1ee7ae[_0x3be1d7(0x112)]:null,_0x1ee7ae[_0x3be1d7(0xfe)]['truncated']?_0x3be1d7(0x100)+_0x1ee7ae['sanitize'][_0x3be1d7(0xf4)]+_0x3be1d7(0x10e):null,_0x1ee7ae['sanitize'][_0x3be1d7(0x108)]>0x0?_0x3be1d7(0xf9)+_0x1ee7ae[_0x3be1d7(0xfe)][_0x3be1d7(0x108)]+'\x20('+_0x1ee7ae[_0x3be1d7(0xfe)][_0x3be1d7(0x10f)][_0x3be1d7(0xf5)](',\x20')+')':null][_0x3be1d7(0xe8)](Boolean)[_0x3be1d7(0xf5)]('\x0a')};},async 'execute'(_0x2da016){const _0x87de2=a104_0x2d6473,_0x37f664=await prepareIssueReport(_0x2da016);try{await sendPlatformIssueCollectLog({'title':_0x37f664['title'],'description':_0x37f664['description'],'sanitize':{'originalBytes':_0x37f664[_0x87de2(0xfe)][_0x87de2(0xf4)],'truncated':_0x37f664[_0x87de2(0xfe)]['truncated'],'redactionCount':_0x37f664[_0x87de2(0xfe)]['redactionCount'],'redactionKinds':_0x37f664[_0x87de2(0xfe)]['redactionKinds']}});}catch(_0x53bc64){throw CliErrors[_0x87de2(0x106)](_0x87de2(0x120)+(_0x53bc64 instanceof Error?_0x53bc64[_0x87de2(0x102)]:String(_0x53bc64)),_0x87de2(0x105));}return{'ok':!![],'message':buildResultMessage(_0x37f664[_0x87de2(0xfe)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x87de2(0xf3),_0x87de2(0x111),_0x87de2(0xff),_0x87de2(0xfb),_0x87de2(0xea)],'issue':{'title':_0x37f664[_0x87de2(0xee)],'descriptionLength':_0x37f664[_0x87de2(0xf1)][_0x87de2(0x11b)],'descriptionSource':_0x37f664[_0x87de2(0x109)],..._0x37f664['descriptionFilePath']?{'descriptionFile':_0x37f664[_0x87de2(0x112)]}:{},'sanitize':{'originalBytes':_0x37f664[_0x87de2(0xfe)]['originalBytes'],'truncated':_0x37f664[_0x87de2(0xfe)][_0x87de2(0x10c)],'redactions':_0x37f664[_0x87de2(0xfe)]['redactionCount'],'redactionKinds':_0x37f664[_0x87de2(0xfe)][_0x87de2(0x10f)]}}}};}};function buildResultMessage(_0x2cf29f){const _0x48e942=a104_0x2d6473,_0x443db8=[];return _0x2cf29f[_0x48e942(0x10c)]&&_0x443db8['push'](_0x48e942(0x114)+_0x2cf29f[_0x48e942(0xf4)]+'\x20bytes'),_0x2cf29f[_0x48e942(0x108)]>0x0&&_0x443db8['push'](_0x48e942(0xf6)+_0x2cf29f[_0x48e942(0x108)]+_0x48e942(0x101)+_0x2cf29f[_0x48e942(0x10f)][_0x48e942(0xf5)](',\x20')),_0x443db8[_0x48e942(0x11b)]===0x0?_0x48e942(0x10b):'Platform\x20issue\x20reported\x20('+_0x443db8[_0x48e942(0xf5)](';\x20')+')';}async function prepareIssueReport(_0x165b95){const _0x34d13a=a104_0x2d6473,_0xced43c=_0x165b95[_0x34d13a(0x118)]('title')[_0x34d13a(0xfc)](),_0x1696fc=_0x165b95[_0x34d13a(0x118)](_0x34d13a(0xf1)),_0x56aeb9=_0x165b95[_0x34d13a(0x118)](DESCRIPTION_FILE_FLAG)[_0x34d13a(0xfc)]();if(!_0x56aeb9){const _0x204478=_0x1696fc;if(!_0x204478[_0x34d13a(0xfc)]())throw CliErrors[_0x34d13a(0xf2)](_0x34d13a(0x11a),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x3142bd=sanitizeIssueDescription(_0x204478);return{'title':_0xced43c,'description':_0x3142bd['description'],'descriptionSource':_0x34d13a(0x10d),'sanitize':_0x3142bd};}const _0x3fa91d=resolve(process['cwd'](),_0x56aeb9),_0x21cc54=await readFile(_0x3fa91d,_0x34d13a(0xec));if(!_0x21cc54[_0x34d13a(0xfc)]())throw CliErrors[_0x34d13a(0xf2)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x3fa91d,_0x34d13a(0x119));const _0x104044=sanitizeIssueDescription(_0x21cc54);return{'title':_0xced43c,'description':_0x104044[_0x34d13a(0xf1)],'descriptionSource':_0x34d13a(0xe9),'descriptionFilePath':_0x3fa91d,'sanitize':_0x104044};}
1
+ function a117_0x3708(_0x522a2f,_0x70267d){_0x522a2f=_0x522a2f-0x1e7;const _0x5cafb4=a117_0x5caf();let _0x37085d=_0x5cafb4[_0x522a2f];return _0x37085d;}const a117_0xc33c98=a117_0x3708;(function(_0x4a7cce,_0x1ab888){const _0x5d9d71=a117_0x3708,_0xdc2e28=_0x4a7cce();while(!![]){try{const _0x3533c0=-parseInt(_0x5d9d71(0x1ff))/0x1*(parseInt(_0x5d9d71(0x206))/0x2)+parseInt(_0x5d9d71(0x213))/0x3+parseInt(_0x5d9d71(0x215))/0x4+-parseInt(_0x5d9d71(0x1f2))/0x5*(parseInt(_0x5d9d71(0x20e))/0x6)+parseInt(_0x5d9d71(0x1ee))/0x7*(-parseInt(_0x5d9d71(0x202))/0x8)+parseInt(_0x5d9d71(0x220))/0x9+-parseInt(_0x5d9d71(0x1e8))/0xa;if(_0x3533c0===_0x1ab888)break;else _0xdc2e28['push'](_0xdc2e28['shift']());}catch(_0x1cec2a){_0xdc2e28['push'](_0xdc2e28['shift']());}}}(a117_0x5caf,0x9de35));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a117_0x5caf(){const _0x61916d=['push','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','trim','description-file','apiError','descriptionSource','142423tRUgiR','issue.description_redaction_kinds','File\x20not\x20found:\x20','56MUjBOt','inline','\x20bytes','compress','4tyBYXL','truncated\x20from\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Platform\x20issue\x20reported\x20(','originalBytes','sanitize','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','descriptionFilePath','84EuhBCS','issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','redactionKinds','descriptionFile:\x20','2233626QhXxmd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','4983540fuUgIi','issue.description_truncated','message','join','descriptionSource:\x20','issue.description_redactions','Platform\x20issue\x20reported','str','issue.description_original_bytes','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','file','1596969dOAtza','issue.title','string','POST','cwd','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','5404290uqtNHc','utf8','redactionCount','description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','One-line\x20issue\x20summary','74172zUGSGD','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','truncated','title','222040GsOXBS','Issue\x20description\x20cannot\x20be\x20empty.','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','validation','write','\x20secret(s):\x20','Issue\x20description\x20file\x20is\x20empty:\x20'];a117_0x5caf=function(){return _0x61916d;};return a117_0x5caf();}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=a117_0xc33c98(0x1fc);export const issueReport={'service':'issue','command':'report','description':a117_0xc33c98(0x225),'risk':a117_0xc33c98(0x1f6),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a117_0xc33c98(0x205),'flags':[{'name':a117_0xc33c98(0x1f1),'type':a117_0xc33c98(0x222),'required':!![],'description':a117_0xc33c98(0x1ed)},{'name':a117_0xc33c98(0x1eb),'type':'string','description':a117_0xc33c98(0x1fa)},{'name':DESCRIPTION_FILE_FLAG,'type':a117_0xc33c98(0x222),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x5acfdc){const _0x2fa5ca=a117_0xc33c98,_0xa722a4=_0x5acfdc[_0x2fa5ca(0x21c)](_0x2fa5ca(0x1f1))[_0x2fa5ca(0x1fb)](),_0x1d2ac6=_0x5acfdc['str'](_0x2fa5ca(0x1eb))['trim'](),_0x3e58dd=_0x5acfdc[_0x2fa5ca(0x21c)](DESCRIPTION_FILE_FLAG)[_0x2fa5ca(0x1fb)]();if(!_0xa722a4)throw CliErrors['flagMissing'](_0x2fa5ca(0x1f1),_0x2fa5ca(0x214));const _0x5439e2=_0x1d2ac6[_0x2fa5ca(0x1e7)]>0x0,_0x3f1333=_0x3e58dd[_0x2fa5ca(0x1e7)]>0x0;if(_0x5439e2===_0x3f1333)throw CliErrors['validation'](_0x2fa5ca(0x208),_0x2fa5ca(0x20c));if(_0x3f1333){const _0x2c5829=resolve(process[_0x2fa5ca(0x224)](),_0x3e58dd);if(!existsSync(_0x2c5829))throw CliErrors[_0x2fa5ca(0x1f5)](_0x2fa5ca(0x201)+_0x2c5829);}},async 'dryRun'(_0x169765){const _0x32e591=a117_0xc33c98,_0x3fdb1b=await prepareIssueReport(_0x169765);return{'method':_0x32e591(0x223),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3fdb1b[_0x32e591(0x1f1)],'issue.description':_0x3fdb1b['description'],'issue.description_original_bytes':_0x3fdb1b['sanitize'][_0x32e591(0x20a)],'issue.description_truncated':_0x3fdb1b[_0x32e591(0x20b)][_0x32e591(0x1f0)],'issue.description_redactions':_0x3fdb1b[_0x32e591(0x20b)]['redactionCount'],'issue.description_redaction_kinds':_0x3fdb1b['sanitize'][_0x32e591(0x211)][_0x32e591(0x218)](',')}},'description':[_0x32e591(0x1ec),_0x32e591(0x219)+_0x3fdb1b[_0x32e591(0x1fe)],_0x3fdb1b[_0x32e591(0x20d)]?_0x32e591(0x212)+_0x3fdb1b[_0x32e591(0x20d)]:null,_0x3fdb1b[_0x32e591(0x20b)]['truncated']?'truncated:\x20original\x20'+_0x3fdb1b[_0x32e591(0x20b)][_0x32e591(0x20a)]+'\x20bytes':null,_0x3fdb1b[_0x32e591(0x20b)][_0x32e591(0x1ea)]>0x0?'redactions:\x20'+_0x3fdb1b[_0x32e591(0x20b)][_0x32e591(0x1ea)]+'\x20('+_0x3fdb1b[_0x32e591(0x20b)][_0x32e591(0x211)][_0x32e591(0x218)](',\x20')+')':null]['filter'](Boolean)[_0x32e591(0x218)]('\x0a')};},async 'execute'(_0x564ea5){const _0x103eaa=a117_0xc33c98,_0x190d7b=await prepareIssueReport(_0x564ea5);try{await sendPlatformIssueCollectLog({'title':_0x190d7b[_0x103eaa(0x1f1)],'description':_0x190d7b['description'],'sanitize':{'originalBytes':_0x190d7b[_0x103eaa(0x20b)][_0x103eaa(0x20a)],'truncated':_0x190d7b['sanitize']['truncated'],'redactionCount':_0x190d7b[_0x103eaa(0x20b)][_0x103eaa(0x1ea)],'redactionKinds':_0x190d7b['sanitize'][_0x103eaa(0x211)]}});}catch(_0x4261c3){throw CliErrors[_0x103eaa(0x1fd)](_0x103eaa(0x210)+(_0x4261c3 instanceof Error?_0x4261c3[_0x103eaa(0x217)]:String(_0x4261c3)),_0x103eaa(0x21e));}return{'ok':!![],'message':buildResultMessage(_0x190d7b[_0x103eaa(0x20b)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x103eaa(0x221),_0x103eaa(0x20f),_0x103eaa(0x21d),_0x103eaa(0x216),_0x103eaa(0x21a),_0x103eaa(0x200)],'issue':{'title':_0x190d7b['title'],'descriptionLength':_0x190d7b[_0x103eaa(0x1eb)]['length'],'descriptionSource':_0x190d7b[_0x103eaa(0x1fe)],..._0x190d7b[_0x103eaa(0x20d)]?{'descriptionFile':_0x190d7b[_0x103eaa(0x20d)]}:{},'sanitize':{'originalBytes':_0x190d7b[_0x103eaa(0x20b)][_0x103eaa(0x20a)],'truncated':_0x190d7b[_0x103eaa(0x20b)][_0x103eaa(0x1f0)],'redactions':_0x190d7b[_0x103eaa(0x20b)][_0x103eaa(0x1ea)],'redactionKinds':_0x190d7b['sanitize']['redactionKinds']}}}};}};function buildResultMessage(_0x498275){const _0x511f89=a117_0xc33c98,_0xe0e220=[];return _0x498275['truncated']&&_0xe0e220[_0x511f89(0x1f9)](_0x511f89(0x207)+_0x498275[_0x511f89(0x20a)]+_0x511f89(0x204)),_0x498275[_0x511f89(0x1ea)]>0x0&&_0xe0e220['push']('redacted\x20'+_0x498275[_0x511f89(0x1ea)]+_0x511f89(0x1f7)+_0x498275[_0x511f89(0x211)][_0x511f89(0x218)](',\x20')),_0xe0e220[_0x511f89(0x1e7)]===0x0?_0x511f89(0x21b):_0x511f89(0x209)+_0xe0e220[_0x511f89(0x218)](';\x20')+')';}async function prepareIssueReport(_0x26c7cc){const _0x47ec20=a117_0xc33c98,_0x1e0f13=_0x26c7cc[_0x47ec20(0x21c)](_0x47ec20(0x1f1))[_0x47ec20(0x1fb)](),_0x5ab7a7=_0x26c7cc[_0x47ec20(0x21c)]('description'),_0xf3deb7=_0x26c7cc['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xf3deb7){const _0x30c6de=_0x5ab7a7;if(!_0x30c6de[_0x47ec20(0x1fb)]())throw CliErrors[_0x47ec20(0x1f5)](_0x47ec20(0x1f3),_0x47ec20(0x1ef));const _0x5599c7=sanitizeIssueDescription(_0x30c6de);return{'title':_0x1e0f13,'description':_0x5599c7[_0x47ec20(0x1eb)],'descriptionSource':_0x47ec20(0x203),'sanitize':_0x5599c7};}const _0x4d57cc=resolve(process['cwd'](),_0xf3deb7),_0x35076d=await readFile(_0x4d57cc,_0x47ec20(0x1e9));if(!_0x35076d[_0x47ec20(0x1fb)]())throw CliErrors[_0x47ec20(0x1f5)](_0x47ec20(0x1f8)+_0x4d57cc,_0x47ec20(0x1f4));const _0x590eec=sanitizeIssueDescription(_0x35076d);return{'title':_0x1e0f13,'description':_0x590eec[_0x47ec20(0x1eb)],'descriptionSource':_0x47ec20(0x21f),'descriptionFilePath':_0x4d57cc,'sanitize':_0x590eec};}