@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.1-beta.4

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 (309) 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.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/index.js +1 -1
  177. package/lib/commands/project/upgrade.js +1 -1
  178. package/lib/commands/registry.js +1 -1
  179. package/lib/commands/role/delete.js +1 -1
  180. package/lib/commands/role/detail.js +1 -1
  181. package/lib/commands/role/index.js +1 -1
  182. package/lib/commands/role/list.js +1 -1
  183. package/lib/commands/role/shared.js +1 -1
  184. package/lib/commands/role/update.js +1 -1
  185. package/lib/commands/role/user-add.js +1 -1
  186. package/lib/commands/role/user-remove.js +1 -1
  187. package/lib/commands/role/user-resolve.js +1 -1
  188. package/lib/commands/run/index.js +1 -1
  189. package/lib/commands/schema.js +1 -1
  190. package/lib/commands/sql/create.js +1 -1
  191. package/lib/commands/sql/delete.js +1 -1
  192. package/lib/commands/sql/detail.js +1 -1
  193. package/lib/commands/sql/exec.js +1 -1
  194. package/lib/commands/sql/index.js +1 -1
  195. package/lib/commands/sql/list.js +1 -1
  196. package/lib/commands/sql/pull.js +1 -1
  197. package/lib/commands/sql/push.js +1 -1
  198. package/lib/commands/sql/shared.js +1 -1
  199. package/lib/commands/sql/status.js +1 -1
  200. package/lib/commands/sql/validate.js +1 -1
  201. package/lib/commands/task/index.js +1 -1
  202. package/lib/commands/task/status.js +1 -1
  203. package/lib/commands/tenant/index.js +1 -1
  204. package/lib/commands/tenant/members-list.js +1 -1
  205. package/lib/commands/tenant/shared.js +1 -1
  206. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  207. package/lib/commands/user-account/index.js +1 -1
  208. package/lib/commands/workspace/add.js +1 -1
  209. package/lib/commands/workspace/index.js +1 -1
  210. package/lib/commands/workspace/remove.js +1 -1
  211. package/lib/config/deployment-sync.js +1 -1
  212. package/lib/config/domain-config.js +1 -1
  213. package/lib/config/project-routing.js +1 -1
  214. package/lib/config/schema.js +1 -1
  215. package/lib/constant/cdn.js +1 -1
  216. package/lib/constant/cli.js +1 -1
  217. package/lib/constant/defaults.js +1 -1
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.js +1 -1
  223. package/lib/constant/risk.js +1 -1
  224. package/lib/constant/routing-profile.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +0 -16
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/kb-search-client.d.ts +30 -0
  239. package/lib/core/kb-search-client.js +1 -0
  240. package/lib/core/page/file-system.js +1 -1
  241. package/lib/core/page/hash.js +1 -1
  242. package/lib/core/page/lock.js +1 -1
  243. package/lib/core/sql-index-auditor.js +1 -1
  244. package/lib/core/sql-sync/config.js +1 -1
  245. package/lib/core/sql-sync/file-system.js +1 -1
  246. package/lib/core/sql-sync/hash.js +1 -1
  247. package/lib/core/sql-sync/lock.js +1 -1
  248. package/lib/core/sql-sync/utils.js +1 -1
  249. package/lib/core/sql-validator.js +1 -1
  250. package/lib/errors.js +1 -1
  251. package/lib/framework/build-all-flags.js +1 -1
  252. package/lib/framework/error-output.js +1 -1
  253. package/lib/framework/explicit-yes.js +1 -1
  254. package/lib/framework/flags.js +1 -1
  255. package/lib/framework/help.js +1 -1
  256. package/lib/framework/index.js +1 -1
  257. package/lib/framework/output.js +1 -1
  258. package/lib/framework/response.js +1 -1
  259. package/lib/framework/runner-alias.js +1 -1
  260. package/lib/framework/runner.js +1 -1
  261. package/lib/framework/schema-export.js +1 -1
  262. package/lib/framework/types.d.ts +1 -0
  263. package/lib/framework/types.js +1 -1
  264. package/lib/generated/build-info.d.ts +4 -4
  265. package/lib/generated/build-info.js +1 -1
  266. package/lib/help.js +1 -1
  267. package/lib/postinstall.js +1 -1
  268. package/lib/runtime/confirmation.js +1 -1
  269. package/lib/runtime/event.js +1 -1
  270. package/lib/runtime/index.js +1 -1
  271. package/lib/runtime/queue.js +1 -1
  272. package/lib/runtime/resolve.js +1 -1
  273. package/lib/skills/builtin-skill.js +1 -1
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/entity-with-id.js +1 -1
  291. package/lib/utils/file-utils.js +1 -1
  292. package/lib/utils/guides-cdn.js +1 -1
  293. package/lib/utils/http-client.js +1 -1
  294. package/lib/utils/is-non-interactive.js +1 -1
  295. package/lib/utils/logger.js +1 -1
  296. package/lib/utils/params.js +1 -1
  297. package/lib/utils/platform.js +1 -1
  298. package/lib/utils/sleep.js +1 -1
  299. package/lib/utils/template-replacer.js +1 -1
  300. package/lib/utils/update-notice.js +1 -1
  301. package/lib/utils/version.js +1 -1
  302. package/lib/utils/with-active-cookie.js +1 -1
  303. package/lib/utils/write-cli-side-channel.js +1 -1
  304. package/package.json +1 -1
  305. package/skills/rabetbase/SKILL.md +2 -2
  306. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  308. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  309. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a99_0x35902a=a99_0x359f;(function(_0x30ea5f,_0x607a1c){const _0x5a427f=a99_0x359f,_0x2a184c=_0x30ea5f();while(!![]){try{const _0x502c03=parseInt(_0x5a427f(0x1aa))/0x1*(-parseInt(_0x5a427f(0x1a6))/0x2)+-parseInt(_0x5a427f(0x1a7))/0x3*(parseInt(_0x5a427f(0x1ba))/0x4)+-parseInt(_0x5a427f(0x1ad))/0x5*(-parseInt(_0x5a427f(0x1b7))/0x6)+-parseInt(_0x5a427f(0x1a9))/0x7+-parseInt(_0x5a427f(0x1a1))/0x8*(parseInt(_0x5a427f(0x193))/0x9)+parseInt(_0x5a427f(0x18c))/0xa*(parseInt(_0x5a427f(0x1a5))/0xb)+parseInt(_0x5a427f(0x184))/0xc;if(_0x502c03===_0x607a1c)break;else _0x2a184c['push'](_0x2a184c['shift']());}catch(_0x2e6069){_0x2a184c['push'](_0x2a184c['shift']());}}}(a99_0x2c55,0x1ecaa));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';const SYNC_PATH=a99_0x35902a(0x17e),TARGET_ENVS=[a99_0x35902a(0x18f),a99_0x35902a(0x18b),a99_0x35902a(0x191),a99_0x35902a(0x16d)],SYNC_TYPES=[a99_0x35902a(0x17d),a99_0x35902a(0x18a),'sql'],DB_ID_FLAG={'name':a99_0x35902a(0x17f),'type':a99_0x35902a(0x173),'required':!![],'description':a99_0x35902a(0x194)},TARGET_ENV_FLAG={'name':a99_0x35902a(0x1b5),'type':a99_0x35902a(0x1b0),'enum':[...TARGET_ENVS],'description':a99_0x35902a(0x192)},DIRECT_FLAG={'name':a99_0x35902a(0x170),'type':a99_0x35902a(0x19f),'description':a99_0x35902a(0x17b)},TYPE_FLAG={'name':a99_0x35902a(0x17c),'type':a99_0x35902a(0x1b0),'required':!![],'enum':[...SYNC_TYPES],'description':a99_0x35902a(0x19a)},CODES_FLAG={'name':a99_0x35902a(0x175),'type':a99_0x35902a(0x1b0),'required':!![],'description':a99_0x35902a(0x1b8)},CONFIRM_FLAG={'name':a99_0x35902a(0x16e),'type':a99_0x35902a(0x19f),'description':a99_0x35902a(0x18d)};function a99_0x2c55(){const _0x1ea5a2=['Synchronize\x20selected\x20development\x20metadata\x20into\x20one\x20deployment\x20database\x20connection.','bff','test','30iUvIbV','Confirm\x20the\x20target\x20connection\x20and\x20metadata\x20codes','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.','dev','bizCodes','pre','Deployment\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','19017ofWwDq','Base\x20dblink\x20ID\x20for\x20direct\x20or\x20server-side\x20environment-mapped\x20deployment\x20sync','deployment_sync_outcome_unknown','succeeded','\x20item(s).','POST','FAILED','Metadata\x20type\x20to\x20synchronize','action','filter','deployment_sync_partial_failure','bool','boolean','str','24AMWalh','num','includes','--target-env\x20must\x20be\x20one\x20of:\x20','532807jVwrLU','262Jwrdkx','3NoWLOe','appCode','868189ZZrxns','1171WTViFl','Synchronize\x20selected\x20development\x20metadata\x20to\x20a\x20deployment\x20database','--type\x20must\x20be\x20one\x20of:\x20','19535bnBJMe','input','unknown','string','CREATED','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','Choose\x20exactly\x20one\x20target\x20mode:\x20--target-env\x20or\x20--direct.','bizType','target-env','partial_failure','336VSygEV','Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)','deployment_metadata_sync','226360BVtHYK','target_read_api_unavailable','\x20failed\x20item(s).','Dataset\x20sync\x20may\x20commit\x20the\x20target\x20dblink\x20before\x20item\x20synchronization;\x20that\x20dblink\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.','prod','confirm','deployment','direct','data','Deployment\x20sync\x20completed\x20with\x20','number','UPDATED','codes','trim','reduce','defineProperty','not_submitted','--db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','Use\x20the\x20base\x20dblink\x20connection\x20directly,\x20without\x20environment\x20mapping','type','dataset','/smartapi/data-sync/sync','db-id','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','join','Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','length','1228512PHNoEU','validation','\x20deployment\x20metadata\x20item(s).','write','sync'];a99_0x2c55=function(){return _0x1ea5a2;};return a99_0x2c55();}function a99_0x359f(_0x2a11a7,_0x49ad20){_0x2a11a7=_0x2a11a7-0x16a;const _0x2c556c=a99_0x2c55();let _0x359f83=_0x2c556c[_0x2a11a7];return _0x359f83;}export const deploymentSync={'service':a99_0x35902a(0x16f),'command':a99_0x35902a(0x188),'description':a99_0x35902a(0x1ab),'risk':a99_0x35902a(0x187),'structuredErrors':!![],'confirmationDescription':a99_0x35902a(0x189),'flags':[DB_ID_FLAG,TARGET_ENV_FLAG,DIRECT_FLAG,TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54722f){buildSyncPlan(_0x54722f);},async 'dryRun'(_0x51eff4){const _0x40fb55=a99_0x35902a,_0x218e0d=buildSyncPlan(_0x51eff4);return asDryRunResult(buildOutput(_0x218e0d,[],!![],_0x40fb55(0x179)),{'method':_0x40fb55(0x198),'url':SYNC_PATH,'description':'Would\x20synchronize\x20'+_0x218e0d['input'][_0x40fb55(0x190)][_0x40fb55(0x183)]+'\x20'+_0x218e0d[_0x40fb55(0x1ae)][_0x40fb55(0x1b4)]+_0x40fb55(0x197)});},async 'execute'(_0x2bc5a5){const _0x45f4bf=a99_0x35902a,_0x797342=buildSyncPlan(_0x2bc5a5);if(!_0x2bc5a5[_0x45f4bf(0x19e)]('confirm'))throw CliErrors['validation']('--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.',_0x45f4bf(0x1b2));let _0x298d52;try{_0x298d52=(await syncDeploymentMetadata(_0x797342[_0x45f4bf(0x1ae)]))['items'];}catch(_0x408dca){if(!isPlatformTransportFailure(_0x408dca))throw _0x408dca;const _0x2e2758=new CliError(_0x45f4bf(0x195),0x2,_0x45f4bf(0x182),'Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.');attachErrorData(_0x2e2758,buildOutput(_0x797342,[],![],_0x45f4bf(0x1af)));throw _0x2e2758;}const _0x6bddc7=_0x298d52[_0x45f4bf(0x19c)](_0x35ea89=>_0x35ea89[_0x45f4bf(0x19b)]===_0x45f4bf(0x199)),_0x5d4032=_0x6bddc7[_0x45f4bf(0x183)]>0x0?_0x45f4bf(0x1b6):_0x45f4bf(0x196),_0x4fe553=buildOutput(_0x797342,_0x298d52,![],_0x5d4032);if(_0x6bddc7[_0x45f4bf(0x183)]>0x0){const _0x1aa7dc=new CliError(_0x45f4bf(0x19d),0x1,_0x45f4bf(0x172)+_0x6bddc7[_0x45f4bf(0x183)]+'/'+_0x298d52[_0x45f4bf(0x183)]+_0x45f4bf(0x16b),'Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.');attachErrorData(_0x1aa7dc,_0x4fe553);throw _0x1aa7dc;}return{'ok':!![],'data':_0x4fe553,'message':'Synchronized\x20'+_0x298d52[_0x45f4bf(0x183)]+_0x45f4bf(0x186)};}};function buildSyncPlan(_0x12f39b){const _0x3bbeb8=a99_0x35902a,_0x573716=_0x12f39b[_0x3bbeb8(0x1a2)]('db-id');if(!Number['isSafeInteger'](_0x573716)||_0x573716<=0x0)throw CliErrors['validation'](_0x3bbeb8(0x17a));const _0x476c25=_0x12f39b[_0x3bbeb8(0x1a0)](_0x3bbeb8(0x1b5))[_0x3bbeb8(0x176)](),_0x30716f=_0x12f39b[_0x3bbeb8(0x19e)](_0x3bbeb8(0x170));if(Boolean(_0x476c25)===_0x30716f)throw CliErrors[_0x3bbeb8(0x185)](_0x3bbeb8(0x1b3));if(_0x476c25&&!TARGET_ENVS[_0x3bbeb8(0x1a3)](_0x476c25))throw CliErrors[_0x3bbeb8(0x185)](_0x3bbeb8(0x1a4)+TARGET_ENVS[_0x3bbeb8(0x181)](',\x20')+'.');const _0x1a1aae=_0x12f39b[_0x3bbeb8(0x1a0)](_0x3bbeb8(0x17c))[_0x3bbeb8(0x176)]();if(!SYNC_TYPES[_0x3bbeb8(0x1a3)](_0x1a1aae))throw CliErrors[_0x3bbeb8(0x185)](_0x3bbeb8(0x1ac)+SYNC_TYPES[_0x3bbeb8(0x181)](',\x20')+'.');const _0x5a82a5=normalizeCodes(_0x12f39b[_0x3bbeb8(0x1a0)](_0x3bbeb8(0x175)));if(_0x5a82a5[_0x3bbeb8(0x183)]===0x0)throw CliErrors[_0x3bbeb8(0x185)](_0x3bbeb8(0x18e));if(_0x5a82a5['length']>0x64)throw CliErrors[_0x3bbeb8(0x185)]('--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.');const _0x4d4dbc={'appCode':_0x12f39b[_0x3bbeb8(0x1a8)],'dbLinkId':_0x573716,..._0x476c25?{'env':_0x476c25}:{},'bizType':_0x1a1aae,'bizCodes':_0x5a82a5},_0x2a4932=[_0x3bbeb8(0x180),'Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.'];return _0x1a1aae===_0x3bbeb8(0x17d)&&_0x2a4932['unshift'](_0x3bbeb8(0x16c)),{'input':_0x4d4dbc,'selector':{'appCode':_0x12f39b[_0x3bbeb8(0x1a8)],'dbLinkId':_0x573716,'targetMode':_0x476c25?'environment':_0x3bbeb8(0x170),..._0x476c25?{'targetEnv':_0x476c25}:{},'bizType':_0x1a1aae,'bizCodes':_0x5a82a5},'warnings':_0x2a4932};}function normalizeCodes(_0xb559d2){const _0x579e3f=a99_0x35902a;return[...new Set(_0xb559d2['split'](',')['map'](_0x4b9a50=>_0x4b9a50[_0x579e3f(0x176)]())['filter'](Boolean))];}function buildOutput(_0x37abe3,_0x5e2f12,_0x564bc3,_0x2a3616){const _0x361f87=a99_0x35902a,_0xf15db2=_0x2a3616===_0x361f87(0x196)||_0x2a3616===_0x361f87(0x1b6),_0x1845af=_0x5e2f12[_0x361f87(0x177)]((_0x244b29,_0x4bb379)=>{const _0x12c17c=_0x361f87;return _0x244b29[_0x4bb379[_0x12c17c(0x19b)]]=(_0x244b29[_0x4bb379['action']]??0x0)+0x1,_0x244b29;},{});return{'operation':_0x361f87(0x1b9),'selector':_0x37abe3['selector'],'before':null,'after':null,'dryRun':_0x564bc3,'backend':{'submitted':_0x2a3616!==_0x361f87(0x179),'method':_0x361f87(0x198),'path':SYNC_PATH,'outcome':_0x2a3616,'body':_0x37abe3[_0x361f87(0x1ae)]},'summary':{'requested':_0x37abe3[_0x361f87(0x1ae)][_0x361f87(0x190)][_0x361f87(0x183)],'total':_0xf15db2?_0x5e2f12[_0x361f87(0x183)]:_0x37abe3[_0x361f87(0x1ae)][_0x361f87(0x190)]['length'],'created':_0x5e2f12[_0x361f87(0x19c)](_0x4b96c7=>_0x4b96c7['action']===_0x361f87(0x1b1))[_0x361f87(0x183)],'updated':_0x5e2f12[_0x361f87(0x19c)](_0x30d4ba=>_0x30d4ba[_0x361f87(0x19b)]===_0x361f87(0x174))[_0x361f87(0x183)],'failed':_0x5e2f12[_0x361f87(0x19c)](_0xf8c021=>_0xf8c021[_0x361f87(0x19b)]===_0x361f87(0x199))[_0x361f87(0x183)],'byAction':_0x1845af},'items':_0x5e2f12,'verification':{'performed':![],'reason':_0x361f87(0x16a)},'warnings':_0x37abe3['warnings']};}function attachErrorData(_0x3c398f,_0x256a9a){const _0x54c80e=a99_0x35902a;Object[_0x54c80e(0x178)](_0x3c398f,_0x54c80e(0x171),{'value':_0x256a9a,'enumerable':!![]});}
1
+ const a99_0xda22cb=a99_0x4757;(function(_0x4ede25,_0x386084){const _0x298889=a99_0x4757,_0x864aff=_0x4ede25();while(!![]){try{const _0x3bd34e=parseInt(_0x298889(0xd2))/0x1+-parseInt(_0x298889(0x9e))/0x2+parseInt(_0x298889(0xb0))/0x3*(-parseInt(_0x298889(0x8d))/0x4)+parseInt(_0x298889(0xad))/0x5*(parseInt(_0x298889(0xac))/0x6)+-parseInt(_0x298889(0x81))/0x7*(-parseInt(_0x298889(0xc5))/0x8)+-parseInt(_0x298889(0x8e))/0x9*(-parseInt(_0x298889(0x8f))/0xa)+parseInt(_0x298889(0x88))/0xb;if(_0x3bd34e===_0x386084)break;else _0x864aff['push'](_0x864aff['shift']());}catch(_0x23608f){_0x864aff['push'](_0x864aff['shift']());}}}(a99_0x5486,0xca4f5));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{isPlatformTransportFailure,syncDeploymentMetadata}from'../../core/api-client.js';import{CliError,CliErrors}from'../../errors.js';function a99_0x4757(_0x4e6dda,_0x5f647b){_0x4e6dda=_0x4e6dda-0x80;const _0x548601=a99_0x5486();let _0x47575d=_0x548601[_0x4e6dda];return _0x47575d;}const SYNC_PATH=a99_0xda22cb(0xa1),TARGET_ENVS=[a99_0xda22cb(0xbe),a99_0xda22cb(0x95),a99_0xda22cb(0xd4),a99_0xda22cb(0x9f)],SYNC_TYPES=['dataset','bff','sql'],DB_ID_FLAG={'name':a99_0xda22cb(0xcf),'type':a99_0xda22cb(0xbc),'required':!![],'description':a99_0xda22cb(0xcb)},TARGET_ENV_FLAG={'name':'target-env','type':a99_0xda22cb(0xcd),'enum':[...TARGET_ENVS],'description':'Deployment\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping'},DIRECT_FLAG={'name':a99_0xda22cb(0xbd),'type':a99_0xda22cb(0x92),'description':a99_0xda22cb(0xb6)},TYPE_FLAG={'name':a99_0xda22cb(0xc2),'type':a99_0xda22cb(0xcd),'required':!![],'enum':[...SYNC_TYPES],'description':a99_0xda22cb(0x96)},CODES_FLAG={'name':a99_0xda22cb(0xa3),'type':a99_0xda22cb(0xcd),'required':!![],'description':'Comma-separated\x20Dataset,\x20Backend\x20Function,\x20or\x20SQL\x20codes\x20(maximum\x20100)'},CONFIRM_FLAG={'name':a99_0xda22cb(0x84),'type':'boolean','description':a99_0xda22cb(0xd0)};export const deploymentSync={'service':a99_0xda22cb(0x87),'command':a99_0xda22cb(0xc3),'description':a99_0xda22cb(0xa9),'risk':a99_0xda22cb(0xcc),'structuredErrors':!![],'confirmationDescription':a99_0xda22cb(0x93),'flags':[DB_ID_FLAG,TARGET_ENV_FLAG,DIRECT_FLAG,TYPE_FLAG,CODES_FLAG,CONFIRM_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x540d26){buildSyncPlan(_0x540d26);},async 'dryRun'(_0x6a7a26){const _0x2c9d6c=a99_0xda22cb,_0x14f38f=buildSyncPlan(_0x6a7a26);return asDryRunResult(buildOutput(_0x14f38f,[],!![],'not_submitted'),{'method':_0x2c9d6c(0x82),'url':SYNC_PATH,'description':_0x2c9d6c(0xb9)+_0x14f38f['input'][_0x2c9d6c(0xc8)][_0x2c9d6c(0xb5)]+'\x20'+_0x14f38f['input']['bizType']+_0x2c9d6c(0x86)});},async 'execute'(_0x213754){const _0x1e5345=a99_0xda22cb,_0x49007d=buildSyncPlan(_0x213754);if(!_0x213754[_0x1e5345(0xca)]('confirm'))throw CliErrors[_0x1e5345(0x8a)](_0x1e5345(0xc9),_0x1e5345(0xb7));let _0x1a18a0;try{_0x1a18a0=(await syncDeploymentMetadata(_0x49007d[_0x1e5345(0xaf)]))[_0x1e5345(0xba)];}catch(_0x2f8970){if(!isPlatformTransportFailure(_0x2f8970))throw _0x2f8970;const _0x394d0b=new CliError(_0x1e5345(0xa0),0x2,_0x1e5345(0xc0),_0x1e5345(0xd1));attachErrorData(_0x394d0b,buildOutput(_0x49007d,[],![],_0x1e5345(0xbf)));throw _0x394d0b;}const _0x305945=_0x1a18a0[_0x1e5345(0xb3)](_0x25c0a2=>_0x25c0a2[_0x1e5345(0x90)]==='FAILED'),_0x3897a3=_0x305945[_0x1e5345(0xb5)]>0x0?_0x1e5345(0xa8):'succeeded',_0x57c16c=buildOutput(_0x49007d,_0x1a18a0,![],_0x3897a3);if(_0x305945[_0x1e5345(0xb5)]>0x0){const _0x98eafd=new CliError('deployment_sync_partial_failure',0x1,_0x1e5345(0xab)+_0x305945[_0x1e5345(0xb5)]+'/'+_0x1a18a0[_0x1e5345(0xb5)]+_0x1e5345(0xb8),'Review\x20data.items\x20with\x20--format\x20json\x20or\x20--format\x20compress\x20before\x20deciding\x20whether\x20to\x20retry\x20failed\x20codes.');attachErrorData(_0x98eafd,_0x57c16c);throw _0x98eafd;}return{'ok':!![],'data':_0x57c16c,'message':_0x1e5345(0xa2)+_0x1a18a0[_0x1e5345(0xb5)]+_0x1e5345(0xc4)};}};function buildSyncPlan(_0x49ae35){const _0x394cb9=a99_0xda22cb,_0x3d2960=_0x49ae35['num'](_0x394cb9(0xcf));if(!Number[_0x394cb9(0x98)](_0x3d2960)||_0x3d2960<=0x0)throw CliErrors[_0x394cb9(0x8a)](_0x394cb9(0x99));const _0x12181c=_0x49ae35[_0x394cb9(0x85)](_0x394cb9(0xc7))[_0x394cb9(0x89)](),_0x2e1b4e=_0x49ae35[_0x394cb9(0xca)](_0x394cb9(0xbd));if(Boolean(_0x12181c)===_0x2e1b4e)throw CliErrors[_0x394cb9(0x8a)](_0x394cb9(0x91));if(_0x12181c&&!TARGET_ENVS[_0x394cb9(0xc1)](_0x12181c))throw CliErrors[_0x394cb9(0x8a)](_0x394cb9(0xa6)+TARGET_ENVS[_0x394cb9(0xd3)](',\x20')+'.');const _0x7f242a=_0x49ae35[_0x394cb9(0x85)](_0x394cb9(0xc2))[_0x394cb9(0x89)]();if(!SYNC_TYPES['includes'](_0x7f242a))throw CliErrors[_0x394cb9(0x8a)](_0x394cb9(0x8b)+SYNC_TYPES['join'](',\x20')+'.');const _0x103757=normalizeCodes(_0x49ae35[_0x394cb9(0x85)](_0x394cb9(0xa3)));if(_0x103757[_0x394cb9(0xb5)]===0x0)throw CliErrors[_0x394cb9(0x8a)](_0x394cb9(0xbb));if(_0x103757[_0x394cb9(0xb5)]>0x64)throw CliErrors['validation'](_0x394cb9(0x83));const _0x2107eb={'appCode':_0x49ae35[_0x394cb9(0x9c)],'dbLinkId':_0x3d2960,..._0x12181c?{'env':_0x12181c}:{},'bizType':_0x7f242a,'bizCodes':_0x103757},_0x1e7495=[_0x394cb9(0x94),_0x394cb9(0x97)];return _0x7f242a===_0x394cb9(0x8c)&&_0x1e7495['unshift'](_0x394cb9(0xb2)),{'input':_0x2107eb,'selector':{'appCode':_0x49ae35[_0x394cb9(0x9c)],'dbLinkId':_0x3d2960,'targetMode':_0x12181c?_0x394cb9(0xaa):_0x394cb9(0xbd),..._0x12181c?{'targetEnv':_0x12181c}:{},'bizType':_0x7f242a,'bizCodes':_0x103757},'warnings':_0x1e7495};}function a99_0x5486(){const _0x3e9f6c=['filter','defineProperty','length','Use\x20the\x20base\x20dblink\x20connection\x20directly,\x20without\x20environment\x20mapping','Run\x20with\x20--dry-run\x20first,\x20verify\x20the\x20target\x20and\x20codes,\x20then\x20add\x20--confirm.','\x20failed\x20item(s).','Would\x20synchronize\x20','items','--codes\x20must\x20contain\x20at\x20least\x20one\x20non-blank\x20code.','number','direct','dev','unknown','Deployment\x20sync\x20response\x20was\x20unavailable;\x20the\x20target\x20outcome\x20is\x20unknown.','includes','type','sync','\x20deployment\x20metadata\x20item(s).','8GgOYPt','FAILED','target-env','bizCodes','--confirm\x20is\x20required\x20to\x20synchronize\x20deployment\x20metadata.','bool','Base\x20dblink\x20ID\x20for\x20direct\x20or\x20server-side\x20environment-mapped\x20deployment\x20sync','write','string','map','db-id','Confirm\x20the\x20target\x20connection\x20and\x20metadata\x20codes','Inspect\x20the\x20target\x20database\x20before\x20retrying.\x20Do\x20not\x20resubmit\x20automatically.','328739xFgGKj','join','pre','reduce','4396763NhIPnk','POST','--codes\x20supports\x20at\x20most\x20100\x20unique\x20codes.','confirm','str','\x20item(s).','deployment','2971155tCbkqb','trim','validation','--type\x20must\x20be\x20one\x20of:\x20','dataset','3550988hvaioy','2061riuDpT','23610lIMpVv','action','Choose\x20exactly\x20one\x20target\x20mode:\x20--target-env\x20or\x20--direct.','boolean','Synchronize\x20selected\x20development\x20metadata\x20into\x20one\x20deployment\x20database\x20connection.','Target\x20state\x20is\x20not\x20read\x20back\x20because\x20no\x20target\x20metadata\x20read\x20API\x20is\x20available.','test','Metadata\x20type\x20to\x20synchronize','Do\x20not\x20retry\x20automatically\x20when\x20the\x20request\x20outcome\x20is\x20unknown.','isSafeInteger','--db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','data','succeeded','appCode','warnings','2115470cpBISp','prod','deployment_sync_outcome_unknown','/smartapi/data-sync/sync','Synchronized\x20','codes','UPDATED','not_submitted','--target-env\x20must\x20be\x20one\x20of:\x20','split','partial_failure','Synchronize\x20selected\x20development\x20metadata\x20to\x20a\x20deployment\x20database','environment','Deployment\x20sync\x20completed\x20with\x20','2013042qQekkS','15dcZCDr','selector','input','3AFiDaX','CREATED','Dataset\x20sync\x20may\x20commit\x20the\x20target\x20dblink\x20before\x20item\x20synchronization;\x20that\x20dblink\x20change\x20is\x20not\x20rolled\x20back\x20when\x20later\x20items\x20fail.'];a99_0x5486=function(){return _0x3e9f6c;};return a99_0x5486();}function normalizeCodes(_0x2e464a){const _0x384b44=a99_0xda22cb;return[...new Set(_0x2e464a[_0x384b44(0xa7)](',')[_0x384b44(0xce)](_0x497795=>_0x497795[_0x384b44(0x89)]())[_0x384b44(0xb3)](Boolean))];}function buildOutput(_0xdd7842,_0x289f12,_0x4ca507,_0x254dc8){const _0x2fc632=a99_0xda22cb,_0x102385=_0x254dc8===_0x2fc632(0x9b)||_0x254dc8===_0x2fc632(0xa8),_0x306b92=_0x289f12[_0x2fc632(0x80)]((_0x4a5abb,_0x1e662f)=>{const _0x1dd42b=_0x2fc632;return _0x4a5abb[_0x1e662f['action']]=(_0x4a5abb[_0x1e662f[_0x1dd42b(0x90)]]??0x0)+0x1,_0x4a5abb;},{});return{'operation':'deployment_metadata_sync','selector':_0xdd7842[_0x2fc632(0xae)],'before':null,'after':null,'dryRun':_0x4ca507,'backend':{'submitted':_0x254dc8!==_0x2fc632(0xa5),'method':_0x2fc632(0x82),'path':SYNC_PATH,'outcome':_0x254dc8,'body':_0xdd7842['input']},'summary':{'requested':_0xdd7842[_0x2fc632(0xaf)][_0x2fc632(0xc8)]['length'],'total':_0x102385?_0x289f12[_0x2fc632(0xb5)]:_0xdd7842[_0x2fc632(0xaf)][_0x2fc632(0xc8)][_0x2fc632(0xb5)],'created':_0x289f12[_0x2fc632(0xb3)](_0x5499a5=>_0x5499a5[_0x2fc632(0x90)]===_0x2fc632(0xb1))['length'],'updated':_0x289f12[_0x2fc632(0xb3)](_0x26e865=>_0x26e865['action']===_0x2fc632(0xa4))['length'],'failed':_0x289f12[_0x2fc632(0xb3)](_0x144e03=>_0x144e03['action']===_0x2fc632(0xc6))['length'],'byAction':_0x306b92},'items':_0x289f12,'verification':{'performed':![],'reason':'target_read_api_unavailable'},'warnings':_0xdd7842[_0x2fc632(0x9d)]};}function attachErrorData(_0x39b849,_0x16f55e){const _0x4f2937=a99_0xda22cb;Object[_0x4f2937(0xb4)](_0x39b849,_0x4f2937(0x9a),{'value':_0x16f55e,'enumerable':!![]});}
@@ -1 +1 @@
1
- function a100_0x4363(){const _0x256cda=['\x20\x20Package\x20Version:\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','cookie','\x20\x20Apps','⚠\x20Empty\x20(treated\x20as\x20{})','✗\x20Not\x20logged\x20in','Project','1121310CTimAE','\x20\x20Auth','\x20\x20Config\x20JSON','7XFpVNk','Global','apiDir','status','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','repeat','empty','\x20config','check','message','locale','length','appcode','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1445HzFwxE','raw','join','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','log','installedPath','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','bold','ignored\x20in\x20','7OpozQO','format','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','inherit','global','skillVersion','195534gCecBP','\x20\x20Legacy\x20inherit:\x20\x20\x20','gray','unknown','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1677744OhiTTI','4487384uyyhYC','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','call','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','green','globalConfig','\x20doctor','40EZnBzH','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','packageVersion','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','source','(not\x20found)','\x20\x20Config\x20Files','\x20config\x20delete\x20inherit\x20--global','\x20\x20Skill\x20Version:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','appCode','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','slice','accessKey','\x20+\x20','\x20config\x20delete\x20inherit','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','prototype','platform','(default)','✓\x20Valid\x20JSON','project','defaultApp','\x20(default)','✓\x20Valid','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','(default:\x20','11iAABOK','\x20\x20API\x20Endpoints','repairCommand','apps','reason','hasOwnProperty','padEnd','38918WkLUJE','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','(missing)','\x20\x20Built-in\x20Skill','projectConfig','state','missing','yellow','12966kIwMbY','keys','env','10308612PwEKXZ','current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','includes','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a100_0x4363=function(){return _0x256cda;};return a100_0x4363();}const a100_0x214dba=a100_0x110a;(function(_0x18ccf0,_0x316d83){const _0x5bef9c=a100_0x110a,_0x49e012=_0x18ccf0();while(!![]){try{const _0x48f5ee=-parseInt(_0x5bef9c(0x1a7))/0x1*(parseInt(_0x5bef9c(0x1e7))/0x2)+parseInt(_0x5bef9c(0x1ae))/0x3+-parseInt(_0x5bef9c(0x1b3))/0x4+-parseInt(_0x5bef9c(0x19d))/0x5*(-parseInt(_0x5bef9c(0x1f4))/0x6)+-parseInt(_0x5bef9c(0x18e))/0x7*(-parseInt(_0x5bef9c(0x1b4))/0x8)+parseInt(_0x5bef9c(0x18b))/0x9*(parseInt(_0x5bef9c(0x1bc))/0xa)+parseInt(_0x5bef9c(0x1e0))/0xb*(-parseInt(_0x5bef9c(0x17e))/0xc);if(_0x48f5ee===_0x316d83)break;else _0x49e012['push'](_0x49e012['shift']());}catch(_0x704f1b){_0x49e012['push'](_0x49e012['shift']());}}}(a100_0x4363,0x519d2));import a100_0x3c71a8 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';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,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';function a100_0x110a(_0x16b822,_0x5d1b36){_0x16b822=_0x16b822-0x17d;const _0x4363b2=a100_0x4363();let _0x110a91=_0x4363b2[_0x16b822];return _0x110a91;}async function execute(_0x403e99){const _0x410775=a100_0x110a,_0x6d988f=GIT_COMMIT!==_0x410775(0x1b1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x410775(0x1cb)](0x0,0xa)+')':VERSION,_0x5052b4=buildConfigFromFlags({}),_0x4500e2=getCookie();console[_0x410775(0x1a2)](),console['log'](a100_0x3c71a8[_0x410775(0x1a5)](CLI_BIN_NAME+_0x410775(0x1bb))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)]('─'[_0x410775(0x194)](0x32))),console[_0x410775(0x1a2)](_0x410775(0x1aa)+_0x6d988f),console[_0x410775(0x1a2)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x410775(0x1a2)](_0x410775(0x1d0)+process[_0x410775(0x1d2)]+'\x20'+process['arch']);const _0x130e96=inspectBuiltinSkill();console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8['bold'](_0x410775(0x1ef))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)['repeat'](0x1e)));const _0xdf2b9c=_0x130e96[_0x410775(0x1f1)]==='current'?a100_0x3c71a8[_0x410775(0x1b9)]('✓\x20'+_0x130e96['state']):a100_0x3c71a8['red']('✗\x20'+_0x130e96[_0x410775(0x1f1)]);console[_0x410775(0x1a2)](_0x410775(0x1eb)+_0xdf2b9c),console[_0x410775(0x1a2)](_0x410775(0x184)+_0x130e96[_0x410775(0x1be)]),console[_0x410775(0x1a2)](_0x410775(0x1c7)+(_0x130e96[_0x410775(0x1ad)]||a100_0x3c71a8[_0x410775(0x1b0)]('(unknown)'))),console[_0x410775(0x1a2)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x130e96[_0x410775(0x1a3)]||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c4))));if(_0x130e96['reason'])console['log'](_0x410775(0x1e8)+_0x130e96[_0x410775(0x1e4)]);_0x130e96[_0x410775(0x1f1)]!==_0x410775(0x17f)&&console['log'](_0x410775(0x1ea)+_0x130e96[_0x410775(0x1e2)]);console['log'](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x1c5))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));const _0x2db1ca=getGlobalConfigPath(),_0x493676=getProjectConfigPath();console[_0x410775(0x1a2)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2db1ca||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c4)))),console[_0x410775(0x1a2)](_0x410775(0x1bf)+(_0x493676||a100_0x3c71a8['gray'](_0x410775(0x1c4)))),console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x18d))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)]('\x20\x20─'[_0x410775(0x194)](0x1e)));const _0x4cdd98=(_0x4c5f5f,_0x2ffc1b)=>{const _0x9d0012=_0x410775;if(!_0x2ffc1b){console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b0)](_0x9d0012(0x193)));return;}const _0x1bb2d9=inspectCliConfigJsonFile(_0x2ffc1b);if(_0x1bb2d9[_0x9d0012(0x191)]==='ok')console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b9)](_0x9d0012(0x1d4)));else{if(_0x1bb2d9[_0x9d0012(0x191)]===_0x9d0012(0x195))console[_0x9d0012(0x1a2)]('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1f3)](_0x9d0012(0x188)));else _0x1bb2d9['status']===_0x9d0012(0x1f2)?console['log']('\x20\x20'+_0x4c5f5f[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1b0)](_0x9d0012(0x1ee))):(console['log']('\x20\x20'+_0x4c5f5f['padEnd'](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1e9)](_0x9d0012(0x1dc))),console[_0x9d0012(0x1a2)]('\x20\x20'+''[_0x9d0012(0x1e6)](0x11)+'\x20'+a100_0x3c71a8[_0x9d0012(0x1e9)](_0x1bb2d9[_0x9d0012(0x198)])));}};_0x4cdd98(_0x410775(0x18f),_0x2db1ca),_0x4cdd98(_0x410775(0x18a),_0x493676);const _0x2a5627=loadRawConfigLayers(),_0x12faf4=[Object[_0x410775(0x1d1)][_0x410775(0x1e5)][_0x410775(0x1b6)](_0x2a5627[_0x410775(0x1ba)],_0x410775(0x1ab))?_0x410775(0x1ac):null,Object[_0x410775(0x1d1)]['hasOwnProperty'][_0x410775(0x1b6)](_0x2a5627[_0x410775(0x1f0)],'inherit')?_0x410775(0x1d5):null]['filter'](Boolean);_0x12faf4['length']>0x0&&(console[_0x410775(0x1a2)](_0x410775(0x1af)+a100_0x3c71a8['yellow'](_0x410775(0x1a6)+_0x12faf4[_0x410775(0x19f)](_0x410775(0x1cd))+_0x410775(0x196))),_0x12faf4[_0x410775(0x182)](_0x410775(0x1d5))&&console['log'](_0x410775(0x1da)+CLI_BIN_NAME+_0x410775(0x1ce)),_0x12faf4[_0x410775(0x182)](_0x410775(0x1ac))&&console[_0x410775(0x1a2)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+_0x410775(0x1c6)));console['log'](),console['log'](a100_0x3c71a8['bold']('\x20\x20Merged\x20Config')),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)[_0x410775(0x194)](0x1e))),console['log'](_0x410775(0x1dd)+(_0x5052b4[_0x410775(0x1c9)]||a100_0x3c71a8[_0x410775(0x1e9)]('(not\x20set)'))),console[_0x410775(0x1a2)](_0x410775(0x1a9)+_0x5052b4[_0x410775(0x17d)]),console['log'](_0x410775(0x1b5)+_0x5052b4[_0x410775(0x199)]),console[_0x410775(0x1a2)](_0x410775(0x1db)+_0x5052b4['apiDir']),console[_0x410775(0x1a2)](_0x410775(0x1c1)+(_0x5052b4[_0x410775(0x1d6)]||a100_0x3c71a8[_0x410775(0x1b0)]('(none)'))),console[_0x410775(0x1a2)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5052b4[_0x410775(0x181)]||a100_0x3c71a8['gray'](_0x410775(0x1de)))),console[_0x410775(0x1a2)]('\x20\x20explicitAppName:\x20'+(_0x5052b4['explicitAppName']||a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1de)))),console[_0x410775(0x1a2)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5052b4['format']||a100_0x3c71a8['gray'](_0x410775(0x1df)+DEFAULT_CONFIG_VALUES[_0x410775(0x1a8)]+')'))),console[_0x410775(0x1a2)](_0x410775(0x192)+(_0x5052b4['pageSize']??a100_0x3c71a8['gray'](_0x410775(0x1d3)))),console[_0x410775(0x1a2)](_0x410775(0x1b7)+_0x5052b4['riskLevel']),console[_0x410775(0x1a2)](_0x410775(0x180)+_0x5052b4['verbose']),console[_0x410775(0x1a2)](_0x410775(0x1b2)+(_0x5052b4[_0x410775(0x186)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x5052b4[_0x410775(0x186)]['length']+')'):_0x4500e2?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1c2)+_0x4500e2[_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)]('(none)')));const _0x1f0ecc=Object[_0x410775(0x1f5)](_0x5052b4['apps']);if(_0x1f0ecc[_0x410775(0x19a)]>0x0){console[_0x410775(0x1a2)](),console['log'](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x187))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));for(const _0x2d8868 of _0x1f0ecc){const _0x3beea1=_0x5052b4[_0x410775(0x1e3)][_0x2d8868],_0x2a0fd1=_0x2d8868===_0x5052b4[_0x410775(0x1d6)],_0x1569de=_0x2d8868===_0x5052b4['currentApp'],_0x155fc0=_0x1569de?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1b8)):'',_0x4b6c00=_0x2a0fd1?_0x410775(0x1d7):'';console[_0x410775(0x1a2)]('\x20\x20'+_0x2d8868+_0x4b6c00+_0x155fc0),console[_0x410775(0x1a2)](_0x410775(0x1ca)+_0x3beea1[_0x410775(0x19b)]);const _0x4fe1f4=buildAppDoctorFields(_0x3beea1,{'env':_0x5052b4[_0x410775(0x17d)],'apiDir':_0x5052b4[_0x410775(0x19e)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x410775(0x190)],'cookie':_0x5052b4[_0x410775(0x186)]||_0x4500e2||undefined,'accessKey':_0x5052b4[_0x410775(0x1cc)]});console['log'](_0x410775(0x19c)+_0x4fe1f4[_0x410775(0x17d)][_0x410775(0x1ed)]+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x17d)][_0x410775(0x1c3)]+')')),console['log'](_0x410775(0x1a0)+_0x4fe1f4['apiDir'][_0x410775(0x1ed)]+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x190)][_0x410775(0x1c3)]+')'));const _0x5cc2ec=_0x4fe1f4[_0x410775(0x186)][_0x410775(0x1ed)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x4fe1f4[_0x410775(0x186)]['value'][_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1de));console['log'](_0x410775(0x1a4)+_0x5cc2ec+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x186)][_0x410775(0x1c3)]+')'));const _0x2e545d=_0x4fe1f4[_0x410775(0x1cc)][_0x410775(0x1ed)]?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1ec)+_0x4fe1f4['accessKey'][_0x410775(0x1ed)][_0x410775(0x19a)]+')'):a100_0x3c71a8[_0x410775(0x1b0)]('(none)');console[_0x410775(0x1a2)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x2e545d+'\x20\x20'+a100_0x3c71a8[_0x410775(0x1b0)]('('+_0x4fe1f4[_0x410775(0x1cc)][_0x410775(0x1c3)]+')'));}}console[_0x410775(0x1a2)](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x1e1))),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1b0)](_0x410775(0x1c0)[_0x410775(0x194)](0x1e))),console['log'](_0x410775(0x1d9)+getActiveRegion()),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x410775(0x1a2)](_0x410775(0x1bd)+getUserDomain()),console[_0x410775(0x1a2)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x410775(0x1a2)](_0x410775(0x185)+getSkillDomain()),console[_0x410775(0x1a2)](_0x410775(0x1a1)+getKbDomain()),console[_0x410775(0x1a2)](_0x410775(0x1cf)+getAppDomain()),console['log'](),console[_0x410775(0x1a2)](a100_0x3c71a8[_0x410775(0x1a5)](_0x410775(0x18c))),console[_0x410775(0x1a2)](a100_0x3c71a8['gray'](_0x410775(0x1c0)[_0x410775(0x194)](0x1e)));if(_0x4500e2){const _0x18c1c1=await getIsSessionValid();console[_0x410775(0x1a2)](_0x410775(0x183)+(_0x18c1c1?a100_0x3c71a8[_0x410775(0x1b9)](_0x410775(0x1d8)):a100_0x3c71a8[_0x410775(0x1e9)]('✗\x20Expired')));}else console['log'](_0x410775(0x183)+a100_0x3c71a8[_0x410775(0x1e9)](_0x410775(0x189)));return console[_0x410775(0x1a2)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a100_0x214dba(0x197),'description':a100_0x214dba(0x1c8),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a100_0x3b26c2=a100_0x5f45;(function(_0x1e3e83,_0x3978e9){const _0x5e7c00=a100_0x5f45,_0x50c550=_0x1e3e83();while(!![]){try{const _0x2d5aa5=-parseInt(_0x5e7c00(0x163))/0x1*(parseInt(_0x5e7c00(0x160))/0x2)+-parseInt(_0x5e7c00(0x146))/0x3*(parseInt(_0x5e7c00(0x136))/0x4)+-parseInt(_0x5e7c00(0x161))/0x5*(-parseInt(_0x5e7c00(0x17c))/0x6)+-parseInt(_0x5e7c00(0x12f))/0x7+-parseInt(_0x5e7c00(0x12c))/0x8*(-parseInt(_0x5e7c00(0x138))/0x9)+parseInt(_0x5e7c00(0x18f))/0xa+-parseInt(_0x5e7c00(0x173))/0xb*(-parseInt(_0x5e7c00(0x15e))/0xc);if(_0x2d5aa5===_0x3978e9)break;else _0x50c550['push'](_0x50c550['shift']());}catch(_0x71f4b8){_0x50c550['push'](_0x50c550['shift']());}}}(a100_0x5865,0x8d64a));import a100_0x1ab77c from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a100_0x5865(){const _0x32d1ea=['\x20\x20Repair\x20global:\x20\x20\x20\x20','repeat','riskLevel','source','length','3048900jiELcz','(not\x20found)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','project','(set\x20via\x20file,\x20length=','installedPath','\x20\x20Package\x20Version:\x20','green','\x20\x20API\x20Endpoints','explicitAppName','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','value','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','accessKey','call','(set,\x20length=','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','12vBLsRD','\x20\x20Skill\x20Version:\x20\x20\x20','166ZtyLIK','3100jHcVnf','env','6897wXIKyU','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','status','✗\x20Expired','skillVersion','packageVersion','pageSize','(default:\x20','includes','\x20\x20Installed\x20Path:\x20\x20','padEnd','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','9901573FUJUDJ','state','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','cookie','version','global','defaultApp','globalConfig','8064cmiMTm','unknown','\x20\x20Legacy\x20inherit:\x20\x20\x20','prototype','yellow','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20+\x20','(unknown)','inherit','empty','\x20config','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','read','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','ignored\x20in\x20','slice','bold','1298690ZxHFuE','apiDir','(missing)','(none)','raw','red','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','keys','\x20\x20Built-in\x20Skill','gray','projectConfig','Global','6296YeienZ','\x20config\x20delete\x20inherit','\x20\x20Merged\x20Config','1476160UWtOaq','\x20\x20skillDomain:\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','filter','\x20←\x20current','log','verbose','4XbRyoT','format','5895SqPilS','\x20doctor','\x20\x20Config\x20Files','\x20\x20explicitAppName:\x20','reason','platform','current','arch','\x20config\x20delete\x20inherit\x20--global'];a100_0x5865=function(){return _0x32d1ea;};return a100_0x5865();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getActiveRegion,getApiDomain,getAppDomain,getKbDomain,getSkillDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,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';async function execute(_0xca1930){const _0x3d02e7=a100_0x5f45,_0x56e0cf=GIT_COMMIT!==_0x3d02e7(0x17d)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3d02e7(0x18d)](0x0,0xa)+')':VERSION,_0x3aff25=buildConfigFromFlags({}),_0x67504f=getCookie();console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x18e)](CLI_BIN_NAME+_0x3d02e7(0x139))),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x129)]('─'[_0x3d02e7(0x142)](0x32))),console[_0x3d02e7(0x134)](_0x3d02e7(0x158)+_0x56e0cf),console[_0x3d02e7(0x134)](_0x3d02e7(0x181)+process[_0x3d02e7(0x178)]),console['log'](_0x3d02e7(0x148)+process[_0x3d02e7(0x13d)]+'\x20'+process[_0x3d02e7(0x13f)]);const _0x2cafd0=inspectBuiltinSkill();console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x18e)](_0x3d02e7(0x128))),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x155)[_0x3d02e7(0x142)](0x1e)));const _0x5ed701=_0x2cafd0[_0x3d02e7(0x174)]==='current'?a100_0x1ab77c[_0x3d02e7(0x14d)]('✓\x20'+_0x2cafd0[_0x3d02e7(0x174)]):a100_0x1ab77c[_0x3d02e7(0x194)]('✗\x20'+_0x2cafd0[_0x3d02e7(0x174)]);console[_0x3d02e7(0x134)](_0x3d02e7(0x154)+_0x5ed701),console[_0x3d02e7(0x134)](_0x3d02e7(0x14c)+_0x2cafd0[_0x3d02e7(0x16a)]),console[_0x3d02e7(0x134)](_0x3d02e7(0x15f)+(_0x2cafd0[_0x3d02e7(0x169)]||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x184)))),console[_0x3d02e7(0x134)](_0x3d02e7(0x16e)+(_0x2cafd0[_0x3d02e7(0x14b)]||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x147))));if(_0x2cafd0[_0x3d02e7(0x13c)])console[_0x3d02e7(0x134)](_0x3d02e7(0x151)+_0x2cafd0[_0x3d02e7(0x13c)]);_0x2cafd0[_0x3d02e7(0x174)]!==_0x3d02e7(0x13e)&&console['log']('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2cafd0['repairCommand']);console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x18e)](_0x3d02e7(0x13a))),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x155)[_0x3d02e7(0x142)](0x1e)));const _0x377b9a=getGlobalConfigPath(),_0x5a1d30=getProjectConfigPath();console[_0x3d02e7(0x134)](_0x3d02e7(0x153)+(_0x377b9a||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x147)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5a1d30||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x147)))),console[_0x3d02e7(0x134)](),console['log'](a100_0x1ab77c[_0x3d02e7(0x18e)](_0x3d02e7(0x176))),console['log'](a100_0x1ab77c[_0x3d02e7(0x129)]('\x20\x20─'['repeat'](0x1e)));const _0x1f9a2c=(_0x3c1c2c,_0x1dde74)=>{const _0x2a663e=_0x3d02e7;if(!_0x1dde74){console['log']('\x20\x20'+_0x3c1c2c[_0x2a663e(0x16f)](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x129)]('(no\x20file)'));return;}const _0x4d4200=inspectCliConfigJsonFile(_0x1dde74);if(_0x4d4200[_0x2a663e(0x167)]==='ok')console[_0x2a663e(0x134)]('\x20\x20'+_0x3c1c2c[_0x2a663e(0x16f)](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x14d)](_0x2a663e(0x131)));else{if(_0x4d4200[_0x2a663e(0x167)]===_0x2a663e(0x186))console[_0x2a663e(0x134)]('\x20\x20'+_0x3c1c2c['padEnd'](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x180)](_0x2a663e(0x126)));else _0x4d4200[_0x2a663e(0x167)]==='missing'?console[_0x2a663e(0x134)]('\x20\x20'+_0x3c1c2c[_0x2a663e(0x16f)](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x129)](_0x2a663e(0x191))):(console[_0x2a663e(0x134)]('\x20\x20'+_0x3c1c2c[_0x2a663e(0x16f)](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x194)](_0x2a663e(0x152))),console[_0x2a663e(0x134)]('\x20\x20'+''[_0x2a663e(0x16f)](0x11)+'\x20'+a100_0x1ab77c[_0x2a663e(0x194)](_0x4d4200['message'])));}};_0x1f9a2c(_0x3d02e7(0x12b),_0x377b9a),_0x1f9a2c(_0x3d02e7(0x189),_0x5a1d30);const _0x679c17=loadRawConfigLayers(),_0x566853=[Object[_0x3d02e7(0x17f)]['hasOwnProperty'][_0x3d02e7(0x15a)](_0x679c17[_0x3d02e7(0x17b)],_0x3d02e7(0x185))?_0x3d02e7(0x179):null,Object['prototype']['hasOwnProperty'][_0x3d02e7(0x15a)](_0x679c17[_0x3d02e7(0x12a)],_0x3d02e7(0x185))?_0x3d02e7(0x149):null][_0x3d02e7(0x132)](Boolean);_0x566853[_0x3d02e7(0x145)]>0x0&&(console[_0x3d02e7(0x134)](_0x3d02e7(0x17e)+a100_0x1ab77c[_0x3d02e7(0x180)](_0x3d02e7(0x18c)+_0x566853['join'](_0x3d02e7(0x183))+_0x3d02e7(0x187))),_0x566853[_0x3d02e7(0x16d)](_0x3d02e7(0x149))&&console[_0x3d02e7(0x134)](_0x3d02e7(0x15c)+CLI_BIN_NAME+_0x3d02e7(0x12d)),_0x566853['includes'](_0x3d02e7(0x179))&&console['log'](_0x3d02e7(0x141)+CLI_BIN_NAME+_0x3d02e7(0x140)));console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x18e)](_0x3d02e7(0x12e))),console['log'](a100_0x1ab77c['gray'](_0x3d02e7(0x155)[_0x3d02e7(0x142)](0x1e))),console[_0x3d02e7(0x134)](_0x3d02e7(0x175)+(_0x3aff25['appCode']||a100_0x1ab77c[_0x3d02e7(0x194)]('(not\x20set)'))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3aff25[_0x3d02e7(0x162)]),console[_0x3d02e7(0x134)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x3aff25['locale']),console[_0x3d02e7(0x134)](_0x3d02e7(0x157)+_0x3aff25[_0x3d02e7(0x190)]),console[_0x3d02e7(0x134)](_0x3d02e7(0x15d)+(_0x3aff25[_0x3d02e7(0x17a)]||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x192)))),console[_0x3d02e7(0x134)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x3aff25[_0x3d02e7(0x125)]||a100_0x1ab77c[_0x3d02e7(0x129)]('(none)'))),console[_0x3d02e7(0x134)](_0x3d02e7(0x13b)+(_0x3aff25[_0x3d02e7(0x14f)]||a100_0x1ab77c[_0x3d02e7(0x129)]('(none)'))),console['log'](_0x3d02e7(0x170)+(_0x3aff25['format']||a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x16c)+DEFAULT_CONFIG_VALUES[_0x3d02e7(0x137)]+')'))),console[_0x3d02e7(0x134)](_0x3d02e7(0x164)+(_0x3aff25[_0x3d02e7(0x16b)]??a100_0x1ab77c['gray']('(default)'))),console[_0x3d02e7(0x134)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3aff25[_0x3d02e7(0x143)]),console['log'](_0x3d02e7(0x165)+_0x3aff25[_0x3d02e7(0x135)]),console['log'](_0x3d02e7(0x182)+(_0x3aff25['cookie']?a100_0x1ab77c['green'](_0x3d02e7(0x15b)+_0x3aff25[_0x3d02e7(0x177)]['length']+')'):_0x67504f?a100_0x1ab77c['green'](_0x3d02e7(0x14a)+_0x67504f['length']+')'):a100_0x1ab77c['gray']('(none)')));const _0x491e16=Object[_0x3d02e7(0x127)](_0x3aff25[_0x3d02e7(0x171)]);if(_0x491e16[_0x3d02e7(0x145)]>0x0){console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x18e)]('\x20\x20Apps')),console['log'](a100_0x1ab77c['gray'](_0x3d02e7(0x155)[_0x3d02e7(0x142)](0x1e)));for(const _0x4323e4 of _0x491e16){const _0x5e361d=_0x3aff25[_0x3d02e7(0x171)][_0x4323e4],_0x1e5ced=_0x4323e4===_0x3aff25[_0x3d02e7(0x17a)],_0xe5c04d=_0x4323e4===_0x3aff25[_0x3d02e7(0x125)],_0x1791c1=_0xe5c04d?a100_0x1ab77c[_0x3d02e7(0x14d)](_0x3d02e7(0x133)):'',_0x12eb2b=_0x1e5ced?'\x20(default)':'';console[_0x3d02e7(0x134)]('\x20\x20'+_0x4323e4+_0x12eb2b+_0x1791c1),console[_0x3d02e7(0x134)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x5e361d['appcode']);const _0x11c6b6=buildAppDoctorFields(_0x5e361d,{'env':_0x3aff25['env'],'apiDir':_0x3aff25[_0x3d02e7(0x193)][_0x3d02e7(0x190)]||DEFAULT_CONFIG_VALUES[_0x3d02e7(0x190)],'cookie':_0x3aff25[_0x3d02e7(0x177)]||_0x67504f||undefined,'accessKey':_0x3aff25[_0x3d02e7(0x159)]});console[_0x3d02e7(0x134)](_0x3d02e7(0x172)+_0x11c6b6[_0x3d02e7(0x162)][_0x3d02e7(0x156)]+'\x20\x20'+a100_0x1ab77c[_0x3d02e7(0x129)]('('+_0x11c6b6[_0x3d02e7(0x162)]['source']+')')),console[_0x3d02e7(0x134)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x11c6b6[_0x3d02e7(0x190)][_0x3d02e7(0x156)]+'\x20\x20'+a100_0x1ab77c[_0x3d02e7(0x129)]('('+_0x11c6b6[_0x3d02e7(0x190)][_0x3d02e7(0x144)]+')'));const _0x511e11=_0x11c6b6['cookie'][_0x3d02e7(0x156)]?a100_0x1ab77c[_0x3d02e7(0x14d)](_0x3d02e7(0x15b)+_0x11c6b6[_0x3d02e7(0x177)][_0x3d02e7(0x156)][_0x3d02e7(0x145)]+')'):a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x192));console[_0x3d02e7(0x134)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x511e11+'\x20\x20'+a100_0x1ab77c[_0x3d02e7(0x129)]('('+_0x11c6b6['cookie']['source']+')'));const _0x3d2696=_0x11c6b6['accessKey'][_0x3d02e7(0x156)]?a100_0x1ab77c[_0x3d02e7(0x14d)](_0x3d02e7(0x15b)+_0x11c6b6[_0x3d02e7(0x159)][_0x3d02e7(0x156)][_0x3d02e7(0x145)]+')'):a100_0x1ab77c[_0x3d02e7(0x129)]('(none)');console[_0x3d02e7(0x134)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3d2696+'\x20\x20'+a100_0x1ab77c[_0x3d02e7(0x129)]('('+_0x11c6b6[_0x3d02e7(0x159)][_0x3d02e7(0x144)]+')'));}}console[_0x3d02e7(0x134)](),console[_0x3d02e7(0x134)](a100_0x1ab77c['bold'](_0x3d02e7(0x14e))),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x129)]('\x20\x20─'[_0x3d02e7(0x142)](0x1e))),console['log'](_0x3d02e7(0x150)+getActiveRegion()),console[_0x3d02e7(0x134)](_0x3d02e7(0x18b)+getApiDomain()),console[_0x3d02e7(0x134)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x3d02e7(0x134)](_0x3d02e7(0x166)+getRuntimeDomain()),console['log'](_0x3d02e7(0x130)+getSkillDomain()),console[_0x3d02e7(0x134)]('\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20'+getKbDomain()),console[_0x3d02e7(0x134)]('\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20'+getAppDomain()),console[_0x3d02e7(0x134)](),console['log'](a100_0x1ab77c[_0x3d02e7(0x18e)]('\x20\x20Auth')),console[_0x3d02e7(0x134)](a100_0x1ab77c[_0x3d02e7(0x129)](_0x3d02e7(0x155)[_0x3d02e7(0x142)](0x1e)));if(_0x67504f){const _0x17dad6=await getIsSessionValid();console['log'](_0x3d02e7(0x188)+(_0x17dad6?a100_0x1ab77c['green']('✓\x20Valid'):a100_0x1ab77c['red'](_0x3d02e7(0x168))));}else console[_0x3d02e7(0x134)](_0x3d02e7(0x188)+a100_0x1ab77c[_0x3d02e7(0x194)]('✗\x20Not\x20logged\x20in'));return console[_0x3d02e7(0x134)](),{'ok':!![]};}function a100_0x5f45(_0x45a4ca,_0x37e9f2){_0x45a4ca=_0x45a4ca-0x125;const _0x586530=a100_0x5865();let _0x5f459e=_0x586530[_0x45a4ca];return _0x5f459e;}export const doctorDefinition={'service':'doctor','command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a100_0x3b26c2(0x18a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a101_0x3baf43=a101_0xa929;function a101_0x1237(){const _0x40d2b5=['filePath','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','5DoWKyl','validation','bool','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','2570CiGuMN','678967NwBbJj','800457rdBLDP','688044ZFCzrS','string','query-url','File','read','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','long-term','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','6900058LsUOkj','filepath','appCode','POST','1530840YVBrOe','file','59823LFtHnV','2jtaIrO','\x20to\x20development\x20app\x20','boolean','5000262whXyRl','trim','/smartapi/common/uploadFile','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','str','path','upload','7TdcyTc'];a101_0x1237=function(){return _0x40d2b5;};return a101_0x1237();}(function(_0x4389ac,_0x427cf0){const _0x367ad7=a101_0xa929,_0x85c246=_0x4389ac();while(!![]){try{const _0x3266a2=-parseInt(_0x367ad7(0x17e))/0x1*(parseInt(_0x367ad7(0x18f))/0x2)+-parseInt(_0x367ad7(0x17f))/0x3+-parseInt(_0x367ad7(0x180))/0x4*(-parseInt(_0x367ad7(0x178))/0x5)+parseInt(_0x367ad7(0x192))/0x6*(-parseInt(_0x367ad7(0x175))/0x7)+parseInt(_0x367ad7(0x18c))/0x8+-parseInt(_0x367ad7(0x18e))/0x9*(-parseInt(_0x367ad7(0x17d))/0xa)+parseInt(_0x367ad7(0x188))/0xb;if(_0x3266a2===_0x427cf0)break;else _0x85c246['push'](_0x85c246['shift']());}catch(_0x147032){_0x85c246['push'](_0x85c246['shift']());}}}(a101_0x1237,0xe08d0));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a101_0xa929(_0xf8097c,_0x5be90c){_0xf8097c=_0xf8097c-0x175;const _0x1237ff=a101_0x1237();let _0xa929b5=_0x1237ff[_0xf8097c];return _0xa929b5;}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a101_0x3baf43(0x181),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':'string','required':!![],'description':a101_0x3baf43(0x17b)},DOWNLOAD_FLAG={'name':a101_0x3baf43(0x17c),'type':a101_0x3baf43(0x191),'description':a101_0x3baf43(0x185)},LONG_TERM_FLAG={'name':a101_0x3baf43(0x186),'type':a101_0x3baf43(0x191),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x42126c){const _0x2ebaf1=a101_0x3baf43,_0x39a500=_0x42126c[_0x2ebaf1(0x193)]();if(!_0x39a500)throw CliErrors[_0x2ebaf1(0x179)]('filePath\x20is\x20required.');return _0x39a500;}const fileUpload={'service':a101_0x3baf43(0x18d),'command':a101_0x3baf43(0x198),'description':a101_0x3baf43(0x187),'risk':a101_0x3baf43(0x184),'flags':[FILE_FLAG],async 'dryRun'(_0x41339f){const _0x2d2b6c=a101_0x3baf43,_0xd8287b=requireDevelopmentUploadFile(_0x41339f[_0x2d2b6c(0x196)](_0x2d2b6c(0x18d)),'File');return{'method':_0x2d2b6c(0x18b),'url':_0x2d2b6c(0x194),'body':{'appCode':_0x41339f[_0x2d2b6c(0x18a)],'multipart':{'file':_0xd8287b}},'description':'Preview:\x20upload\x20'+_0xd8287b[_0x2d2b6c(0x197)]+_0x2d2b6c(0x190)+_0x41339f[_0x2d2b6c(0x18a)]};},async 'execute'(_0x586205){const _0x106941=a101_0x3baf43,_0x5bf32e=requireDevelopmentUploadFile(_0x586205['str'](_0x106941(0x18d)),_0x106941(0x183)),_0x23ecb2=await uploadDevelopmentFile(_0x586205[_0x106941(0x18a)],_0x5bf32e[_0x106941(0x197)]);return{'ok':!![],'data':_0x23ecb2,'message':_0x23ecb2['filePath']?'Uploaded\x20file:\x20'+_0x23ecb2[_0x106941(0x176)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x106941(0x177)};}},fileQueryUrl={'service':a101_0x3baf43(0x18d),'command':a101_0x3baf43(0x182),'description':a101_0x3baf43(0x195),'risk':a101_0x3baf43(0x184),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x3f2a8b){const _0x2093db=a101_0x3baf43,_0xcb9a5e=requireFilePath(_0x3f2a8b['str'](_0x2093db(0x189))),_0x1d40c4=await queryDevelopmentFileUrl(_0xcb9a5e,{'download':_0x3f2a8b[_0x2093db(0x17a)](_0x2093db(0x17c)),'longTerm':_0x3f2a8b[_0x2093db(0x17a)]('long-term')});return{'ok':!![],'data':_0x1d40c4};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ function a101_0x293b(){const _0x1d8cdb=['string','938932pUUJNs','20grMopG','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Uploaded\x20file:\x20','file','Preview:\x20upload\x20','str','6KoxBHg','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','appCode','path','filePath\x20is\x20required.','1145675lESudg','12719dAdGba','long-term','download','5832UBjCDP','1336437NRFvPD','trim','POST','boolean','843414CWdoaw','validation','read','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','upload','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','869996sDbmXM','1874250msqJPf','/smartapi/common/uploadFile','bool','File','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a101_0x293b=function(){return _0x1d8cdb;};return a101_0x293b();}const a101_0x4507ba=a101_0x5b92;(function(_0x54ac15,_0x20be17){const _0x4fd0c3=a101_0x5b92,_0xca3390=_0x54ac15();while(!![]){try{const _0x4238cb=-parseInt(_0x4fd0c3(0x1cf))/0x1+parseInt(_0x4fd0c3(0x1bc))/0x2+parseInt(_0x4fd0c3(0x1ca))/0x3*(-parseInt(_0x4fd0c3(0x1c3))/0x4)+parseInt(_0x4fd0c3(0x1bd))/0x5+-parseInt(_0x4fd0c3(0x1b6))/0x6+parseInt(_0x4fd0c3(0x1d0))/0x7*(parseInt(_0x4fd0c3(0x1d3))/0x8)+-parseInt(_0x4fd0c3(0x1d4))/0x9*(-parseInt(_0x4fd0c3(0x1c4))/0xa);if(_0x4238cb===_0x20be17)break;else _0xca3390['push'](_0xca3390['shift']());}catch(_0x11f14c){_0xca3390['push'](_0xca3390['shift']());}}}(a101_0x293b,0xa4f85));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_0x4507ba(0x1c7),'type':a101_0x4507ba(0x1c2),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a101_0x4507ba(0x1c2),'required':!![],'description':a101_0x4507ba(0x1c5)},DOWNLOAD_FLAG={'name':a101_0x4507ba(0x1d2),'type':a101_0x4507ba(0x1b5),'description':a101_0x4507ba(0x1bb)},LONG_TERM_FLAG={'name':a101_0x4507ba(0x1d1),'type':a101_0x4507ba(0x1b5),'description':a101_0x4507ba(0x1b9)};function a101_0x5b92(_0x462f70,_0x318603){_0x462f70=_0x462f70-0x1b4;const _0x293b50=a101_0x293b();let _0x5b92dd=_0x293b50[_0x462f70];return _0x5b92dd;}function requireFilePath(_0x2bc24b){const _0x586dca=a101_0x4507ba,_0x305e80=_0x2bc24b[_0x586dca(0x1d5)]();if(!_0x305e80)throw CliErrors[_0x586dca(0x1b7)](_0x586dca(0x1ce));return _0x305e80;}const fileUpload={'service':a101_0x4507ba(0x1c7),'command':a101_0x4507ba(0x1ba),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a101_0x4507ba(0x1b8),'flags':[FILE_FLAG],async 'dryRun'(_0x539e95){const _0x3d2e2b=a101_0x4507ba,_0xdc410c=requireDevelopmentUploadFile(_0x539e95[_0x3d2e2b(0x1c9)]('file'),_0x3d2e2b(0x1c0));return{'method':_0x3d2e2b(0x1b4),'url':_0x3d2e2b(0x1be),'body':{'appCode':_0x539e95[_0x3d2e2b(0x1cc)],'multipart':{'file':_0xdc410c}},'description':_0x3d2e2b(0x1c8)+_0xdc410c[_0x3d2e2b(0x1cd)]+'\x20to\x20development\x20app\x20'+_0x539e95[_0x3d2e2b(0x1cc)]};},async 'execute'(_0x2dd8c3){const _0x2d9e16=a101_0x4507ba,_0x474e80=requireDevelopmentUploadFile(_0x2dd8c3[_0x2d9e16(0x1c9)](_0x2d9e16(0x1c7)),_0x2d9e16(0x1c0)),_0x3513e2=await uploadDevelopmentFile(_0x2dd8c3['appCode'],_0x474e80[_0x2d9e16(0x1cd)]);return{'ok':!![],'data':_0x3513e2,'message':_0x3513e2['filePath']?_0x2d9e16(0x1c6)+_0x3513e2['filePath']+_0x2d9e16(0x1c1):_0x2d9e16(0x1cb)};}},fileQueryUrl={'service':'file','command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a101_0x4507ba(0x1b8),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1efae8){const _0x3bb598=a101_0x4507ba,_0x5201dc=requireFilePath(_0x1efae8['str']('filepath')),_0x3d7474=await queryDevelopmentFileUrl(_0x5201dc,{'download':_0x1efae8[_0x3bb598(0x1bf)](_0x3bb598(0x1d2)),'longTerm':_0x1efae8[_0x3bb598(0x1bf)](_0x3bb598(0x1d1))});return{'ok':!![],'data':_0x3d7474};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- function a102_0x4f44(){const _0x2b8365=['848061QTFhTe','6330FtjPpp','6168kZEUZy','854180nUbPTJ','4mCSXgc','3776472ridHhd','3199dOtWLf','183269Fvoneo','12jKjLvT','669600ZBMyIo'];a102_0x4f44=function(){return _0x2b8365;};return a102_0x4f44();}(function(_0x40002b,_0x215280){const _0x19a3d4=a102_0x2352,_0x1166e1=_0x40002b();while(!![]){try{const _0x3ec254=parseInt(_0x19a3d4(0x7f))/0x1+parseInt(_0x19a3d4(0x83))/0x2+-parseInt(_0x19a3d4(0x82))/0x3*(parseInt(_0x19a3d4(0x86))/0x4)+-parseInt(_0x19a3d4(0x85))/0x5*(parseInt(_0x19a3d4(0x80))/0x6)+-parseInt(_0x19a3d4(0x88))/0x7*(-parseInt(_0x19a3d4(0x84))/0x8)+parseInt(_0x19a3d4(0x87))/0x9+-parseInt(_0x19a3d4(0x81))/0xa;if(_0x3ec254===_0x215280)break;else _0x1166e1['push'](_0x1166e1['shift']());}catch(_0xcba183){_0x1166e1['push'](_0x1166e1['shift']());}}}(a102_0x4f44,0x4133e));import{issueReport}from'../../commands/issue/report.js';function a102_0x2352(_0x217bd2,_0x332d62){_0x217bd2=_0x217bd2-0x7f;const _0x4f4438=a102_0x4f44();let _0x23522c=_0x4f4438[_0x217bd2];return _0x23522c;}export const issueDefinitions=[issueReport];
1
+ (function(_0x3d0863,_0x22a578){const _0x1a95ec=a102_0x2704,_0x1d4fe5=_0x3d0863();while(!![]){try{const _0x5e0f33=parseInt(_0x1a95ec(0x7d))/0x1+parseInt(_0x1a95ec(0x80))/0x2*(parseInt(_0x1a95ec(0x7c))/0x3)+parseInt(_0x1a95ec(0x7e))/0x4+parseInt(_0x1a95ec(0x7a))/0x5*(-parseInt(_0x1a95ec(0x81))/0x6)+-parseInt(_0x1a95ec(0x82))/0x7+-parseInt(_0x1a95ec(0x7b))/0x8+-parseInt(_0x1a95ec(0x7f))/0x9;if(_0x5e0f33===_0x22a578)break;else _0x1d4fe5['push'](_0x1d4fe5['shift']());}catch(_0x1e0744){_0x1d4fe5['push'](_0x1d4fe5['shift']());}}}(a102_0x33ca,0x85f28));import{issueReport}from'../../commands/issue/report.js';function a102_0x33ca(){const _0x163a7a=['2pWaYIN','6UbOquA','617988gSmEIM','1160255tVJJVB','6624576cRDRKB','2114499lDDxLS','186882aQLGXe','4251252luFzss','2317257janFxf'];a102_0x33ca=function(){return _0x163a7a;};return a102_0x33ca();}function a102_0x2704(_0x4d57ac,_0x2d1009){_0x4d57ac=_0x4d57ac-0x7a;const _0x33cac1=a102_0x33ca();let _0x270412=_0x33cac1[_0x4d57ac];return _0x270412;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a103_0x36ac45=a103_0x58f6;function a103_0x4383(){const _0x5cbe33=['flag_missing','Hit\x20a\x20','write','join','has','message','code','slice','replace','\x20issue\x20report\x20\x5c','1miyHtk','auth_required','2120xiujPu','config_missing','\x20\x20Set\x20','609nSHjBt','5227880QlMDYr','issue','\x20bug?\x20Help\x20us\x20fix\x20it:','command','stderr','1999322sevSdE','1151073xLanWU','length','\x22\x20\x5c','5499040OZVMts','network_error','RABETBASE_DISABLE_ISSUE_NUDGE','service','\x20\x20\x20\x20--title\x20\x22','unknown_command','validation_error','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','12683412kFAvyI','12568wCFAwL','cancelled','not_in_project','38244doJYHQ','=1\x20to\x20silence\x20this\x20hint.'];a103_0x4383=function(){return _0x5cbe33;};return a103_0x4383();}(function(_0x319e29,_0x39330e){const _0x1b96b7=a103_0x58f6,_0x571346=_0x319e29();while(!![]){try{const _0x1ae21f=-parseInt(_0x1b96b7(0x1f5))/0x1*(-parseInt(_0x1b96b7(0x200))/0x2)+parseInt(_0x1b96b7(0x201))/0x3+parseInt(_0x1b96b7(0x20d))/0x4*(-parseInt(_0x1b96b7(0x1f7))/0x5)+parseInt(_0x1b96b7(0x210))/0x6*(-parseInt(_0x1b96b7(0x1fa))/0x7)+-parseInt(_0x1b96b7(0x1fb))/0x8+parseInt(_0x1b96b7(0x20c))/0x9+parseInt(_0x1b96b7(0x204))/0xa;if(_0x1ae21f===_0x39330e)break;else _0x571346['push'](_0x571346['shift']());}catch(_0x2011fc){_0x571346['push'](_0x571346['shift']());}}}(a103_0x4383,0xc3df5));import{CliError}from'../../errors.js';function a103_0x58f6(_0x205a02,_0x4be5da){_0x205a02=_0x205a02-0x1eb;const _0x4383b6=a103_0x4383();let _0x58f68f=_0x4383b6[_0x205a02];return _0x58f68f;}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a103_0x36ac45(0x206);const NUDGE_SUPPRESSED_CODES=new Set([a103_0x36ac45(0x20e),a103_0x36ac45(0x1f6),a103_0x36ac45(0x1f8),a103_0x36ac45(0x20f),a103_0x36ac45(0x209),a103_0x36ac45(0x1eb),a103_0x36ac45(0x20a),a103_0x36ac45(0x205)]),defaultWriter=_0x4bffe9=>{const _0x511a00=a103_0x36ac45;process[_0x511a00(0x1ff)][_0x511a00(0x1ed)](_0x4bffe9);};export function shouldNudgeForError(_0x2a083f,_0x25626f){const _0x5348e1=a103_0x36ac45;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x25626f[_0x5348e1(0x207)]===_0x5348e1(0x1fc)&&_0x25626f['command']==='report')return![];if(_0x2a083f instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5348e1(0x1ef)](_0x2a083f[_0x5348e1(0x1f1)]);return!![];}export function printIssueReportNudgeForError(_0x168548,_0x5608de,_0x2c5d34=defaultWriter){if(!shouldNudgeForError(_0x168548,_0x5608de))return;const _0x62eaf4=buildSuggestedTitle(_0x168548,_0x5608de);_0x2c5d34(formatNudge(_0x62eaf4));}function buildSuggestedTitle(_0x4d8552,_0x1a3b51){const _0xdd4f2e=a103_0x36ac45,_0x45d470=_0x4d8552 instanceof Error?_0x4d8552[_0xdd4f2e(0x1f0)]:String(_0x4d8552),_0x4018e2=_0x45d470[_0xdd4f2e(0x1f3)](/[\r\n]+/g,'\x20')[_0xdd4f2e(0x1f3)](/\s+/g,'\x20')['trim']()[_0xdd4f2e(0x1f2)](0x0,0x78)[_0xdd4f2e(0x1f3)](/"/g,'\x5c\x22'),_0x2afed3=CLI_BIN_NAME+'\x20'+_0x1a3b51[_0xdd4f2e(0x207)]+'\x20'+_0x1a3b51[_0xdd4f2e(0x1fe)];return _0x4018e2[_0xdd4f2e(0x202)]>0x0?_0x2afed3+':\x20'+_0x4018e2:_0x2afed3;}function formatNudge(_0x21a560){const _0x3ee43b=a103_0x36ac45;return['',_0x3ee43b(0x1ec)+CLI_BIN_NAME+_0x3ee43b(0x1fd),'\x20\x20'+CLI_BIN_NAME+_0x3ee43b(0x1f4),_0x3ee43b(0x208)+_0x21a560+_0x3ee43b(0x203),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x3ee43b(0x20b),_0x3ee43b(0x1f9)+NUDGE_OPT_OUT_ENV+_0x3ee43b(0x211),''][_0x3ee43b(0x1ee)]('\x0a');}
1
+ const a103_0x4ddccb=a103_0x4975;(function(_0x2e5619,_0x298d3c){const _0x58c6f3=a103_0x4975,_0x3f9d14=_0x2e5619();while(!![]){try{const _0x5c2c07=parseInt(_0x58c6f3(0xa3))/0x1+parseInt(_0x58c6f3(0xad))/0x2+-parseInt(_0x58c6f3(0xbd))/0x3+parseInt(_0x58c6f3(0xa6))/0x4+-parseInt(_0x58c6f3(0xc2))/0x5*(parseInt(_0x58c6f3(0xb9))/0x6)+-parseInt(_0x58c6f3(0xbc))/0x7*(-parseInt(_0x58c6f3(0xb4))/0x8)+-parseInt(_0x58c6f3(0xbe))/0x9;if(_0x5c2c07===_0x298d3c)break;else _0x3f9d14['push'](_0x3f9d14['shift']());}catch(_0x5c729e){_0x3f9d14['push'](_0x3f9d14['shift']());}}}(a103_0x572b,0x8b0f5));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a103_0x4ddccb(0xa2),a103_0x4ddccb(0xae),a103_0x4ddccb(0xa7),a103_0x4ddccb(0xa1),a103_0x4ddccb(0xa8),a103_0x4ddccb(0xb7),a103_0x4ddccb(0xb3),a103_0x4ddccb(0xb5)]),defaultWriter=_0x8a6a58=>{const _0x4a1ac2=a103_0x4ddccb;process[_0x4a1ac2(0xba)][_0x4a1ac2(0xac)](_0x8a6a58);};export function shouldNudgeForError(_0x2f8509,_0x22efaa){const _0x5df7af=a103_0x4ddccb;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x22efaa[_0x5df7af(0xbf)]===_0x5df7af(0xaf)&&_0x22efaa[_0x5df7af(0xb1)]==='report')return![];if(_0x2f8509 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5df7af(0xc1)](_0x2f8509[_0x5df7af(0xaa)]);return!![];}function a103_0x4975(_0x4eaaaa,_0x5a1e4d){_0x4eaaaa=_0x4eaaaa-0x9f;const _0x572b09=a103_0x572b();let _0x4975b5=_0x572b09[_0x4eaaaa];return _0x4975b5;}export function printIssueReportNudgeForError(_0x4f37b2,_0x51bf56,_0xd996a3=defaultWriter){if(!shouldNudgeForError(_0x4f37b2,_0x51bf56))return;const _0x43b4d5=buildSuggestedTitle(_0x4f37b2,_0x51bf56);_0xd996a3(formatNudge(_0x43b4d5));}function buildSuggestedTitle(_0x505a10,_0xe7a30d){const _0x2e1017=a103_0x4ddccb,_0x38e3eb=_0x505a10 instanceof Error?_0x505a10[_0x2e1017(0xab)]:String(_0x505a10),_0x235283=_0x38e3eb[_0x2e1017(0xb0)](/[\r\n]+/g,'\x20')[_0x2e1017(0xb0)](/\s+/g,'\x20')['trim']()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x2f4f8c=CLI_BIN_NAME+'\x20'+_0xe7a30d['service']+'\x20'+_0xe7a30d[_0x2e1017(0xb1)];return _0x235283[_0x2e1017(0xa0)]>0x0?_0x2f4f8c+':\x20'+_0x235283:_0x2f4f8c;}function a103_0x572b(){const _0x49d62a=['join','validation_error','3944raVTOJ','network_error','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','flag_missing','\x22\x20\x5c','846GCqphw','stderr','\x20\x20Set\x20','14938szFCwB','72270fHScbm','24681006ynwFzs','service','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','has','15845XAmbWN','\x20\x20\x20\x20--title\x20\x22','length','not_in_project','cancelled','726529MrHDVk','\x20issue\x20report\x20\x5c','Hit\x20a\x20','3602884nfSZVd','config_missing','unknown_command','=1\x20to\x20silence\x20this\x20hint.','code','message','write','2207060OPbHnX','auth_required','issue','replace','command'];a103_0x572b=function(){return _0x49d62a;};return a103_0x572b();}function formatNudge(_0x564e55){const _0x1936f6=a103_0x4ddccb;return['',_0x1936f6(0xa5)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x1936f6(0xa4),_0x1936f6(0x9f)+_0x564e55+_0x1936f6(0xb8),_0x1936f6(0xb6),_0x1936f6(0xc0),_0x1936f6(0xbb)+NUDGE_OPT_OUT_ENV+_0x1936f6(0xa9),''][_0x1936f6(0xb2)]('\x0a');}
@@ -1 +1 @@
1
- const a104_0x1009a0=a104_0x5545;(function(_0x21768a,_0x2fed5d){const _0x529f02=a104_0x5545,_0x21cf4f=_0x21768a();while(!![]){try{const _0x170486=-parseInt(_0x529f02(0xed))/0x1+parseInt(_0x529f02(0xd7))/0x2+parseInt(_0x529f02(0xf0))/0x3*(-parseInt(_0x529f02(0xf6))/0x4)+-parseInt(_0x529f02(0x100))/0x5+parseInt(_0x529f02(0xf1))/0x6*(parseInt(_0x529f02(0xd9))/0x7)+-parseInt(_0x529f02(0xde))/0x8+parseInt(_0x529f02(0xfc))/0x9*(parseInt(_0x529f02(0x106))/0xa);if(_0x170486===_0x2fed5d)break;else _0x21cf4f['push'](_0x21cf4f['shift']());}catch(_0x47d464){_0x21cf4f['push'](_0x21cf4f['shift']());}}}(a104_0x57ff,0xe2150));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_0x57ff(){const _0x588e3f=['filter','trim','message','push','20aiXADo','str','join','originalBytes','truncated','descriptionSource:\x20','18SqPfwM','\x20secret(s):\x20','\x20bytes','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','8034525HhJkiR','redactions:\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Platform\x20issue\x20reported\x20(','description','utf8','12354880jKCJNq','descriptionFilePath','redactionKinds','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','File\x20not\x20found:\x20','cwd','validation','descriptionSource','descriptionFile:\x20','flagMissing','length','One-line\x20issue\x20summary','issue.description_redaction_kinds','string','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated:\x20original\x20','1923044MBcIEm','Issue\x20description\x20cannot\x20be\x20empty.','7RWlOIs','truncated\x20from\x20','title','sanitize','issue.title','4875968vgYaDc','POST','issue','compress','otel://','inline','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','report','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','write','Failed\x20to\x20report\x20platform\x20issue:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','description-file','Issue\x20description\x20file\x20is\x20empty:\x20','issue.description_original_bytes','551327EKdfTx','issue.description_redactions','redactionCount','179997PAKzaa','3367542RhKQWf'];a104_0x57ff=function(){return _0x588e3f;};return a104_0x57ff();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a104_0x1009a0(0xea);export const issueReport={'service':a104_0x1009a0(0xe0),'command':a104_0x1009a0(0xe5),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a104_0x1009a0(0xe7),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a104_0x1009a0(0xe1),'flags':[{'name':a104_0x1009a0(0xdb),'type':a104_0x1009a0(0xd4),'required':!![],'description':a104_0x1009a0(0xd2)},{'name':'description','type':a104_0x1009a0(0xd4),'description':a104_0x1009a0(0xd5)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a104_0x1009a0(0xe4)}],async 'validate'(_0x4bf03a){const _0x4bae62=a104_0x1009a0,_0xc8a803=_0x4bf03a[_0x4bae62(0xf7)]('title')[_0x4bae62(0xf3)](),_0x3d6f41=_0x4bf03a[_0x4bae62(0xf7)]('description')['trim'](),_0x10189e=_0x4bf03a['str'](DESCRIPTION_FILE_FLAG)[_0x4bae62(0xf3)]();if(!_0xc8a803)throw CliErrors[_0x4bae62(0xd0)](_0x4bae62(0xdb),_0x4bae62(0xff));const _0x2d8b8a=_0x3d6f41[_0x4bae62(0xd1)]>0x0,_0x577e53=_0x10189e[_0x4bae62(0xd1)]>0x0;if(_0x2d8b8a===_0x577e53)throw CliErrors[_0x4bae62(0xcd)](_0x4bae62(0x102),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x577e53){const _0x1ba5f2=resolve(process[_0x4bae62(0xcc)](),_0x10189e);if(!existsSync(_0x1ba5f2))throw CliErrors[_0x4bae62(0xcd)](_0x4bae62(0xcb)+_0x1ba5f2);}},async 'dryRun'(_0xc00944){const _0x4f1f57=a104_0x1009a0,_0x2903a4=await prepareIssueReport(_0xc00944);return{'method':_0x4f1f57(0xdf),'url':_0x4f1f57(0xe2)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2903a4[_0x4f1f57(0xdb)],'issue.description':_0x2903a4[_0x4f1f57(0x104)],'issue.description_original_bytes':_0x2903a4['sanitize'][_0x4f1f57(0xf9)],'issue.description_truncated':_0x2903a4['sanitize'][_0x4f1f57(0xfa)],'issue.description_redactions':_0x2903a4[_0x4f1f57(0xdc)][_0x4f1f57(0xef)],'issue.description_redaction_kinds':_0x2903a4['sanitize'][_0x4f1f57(0xc9)][_0x4f1f57(0xf8)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x4f1f57(0xfb)+_0x2903a4['descriptionSource'],_0x2903a4[_0x4f1f57(0x107)]?_0x4f1f57(0xcf)+_0x2903a4[_0x4f1f57(0x107)]:null,_0x2903a4[_0x4f1f57(0xdc)][_0x4f1f57(0xfa)]?_0x4f1f57(0xd6)+_0x2903a4['sanitize'][_0x4f1f57(0xf9)]+_0x4f1f57(0xfe):null,_0x2903a4[_0x4f1f57(0xdc)][_0x4f1f57(0xef)]>0x0?_0x4f1f57(0x101)+_0x2903a4[_0x4f1f57(0xdc)][_0x4f1f57(0xef)]+'\x20('+_0x2903a4[_0x4f1f57(0xdc)]['redactionKinds']['join'](',\x20')+')':null][_0x4f1f57(0xf2)](Boolean)[_0x4f1f57(0xf8)]('\x0a')};},async 'execute'(_0x2e4a0d){const _0x2dac61=a104_0x1009a0,_0x120927=await prepareIssueReport(_0x2e4a0d);try{await sendPlatformIssueCollectLog({'title':_0x120927[_0x2dac61(0xdb)],'description':_0x120927[_0x2dac61(0x104)],'sanitize':{'originalBytes':_0x120927[_0x2dac61(0xdc)][_0x2dac61(0xf9)],'truncated':_0x120927[_0x2dac61(0xdc)][_0x2dac61(0xfa)],'redactionCount':_0x120927[_0x2dac61(0xdc)][_0x2dac61(0xef)],'redactionKinds':_0x120927['sanitize'][_0x2dac61(0xc9)]}});}catch(_0x457de7){throw CliErrors['apiError'](_0x2dac61(0xe8)+(_0x457de7 instanceof Error?_0x457de7[_0x2dac61(0xf4)]:String(_0x457de7)),_0x2dac61(0xe9));}return{'ok':!![],'message':buildResultMessage(_0x120927['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2dac61(0xdd),'issue.description',_0x2dac61(0xec),'issue.description_truncated',_0x2dac61(0xee),_0x2dac61(0xd3)],'issue':{'title':_0x120927[_0x2dac61(0xdb)],'descriptionLength':_0x120927[_0x2dac61(0x104)]['length'],'descriptionSource':_0x120927[_0x2dac61(0xce)],..._0x120927['descriptionFilePath']?{'descriptionFile':_0x120927[_0x2dac61(0x107)]}:{},'sanitize':{'originalBytes':_0x120927[_0x2dac61(0xdc)][_0x2dac61(0xf9)],'truncated':_0x120927[_0x2dac61(0xdc)][_0x2dac61(0xfa)],'redactions':_0x120927['sanitize']['redactionCount'],'redactionKinds':_0x120927['sanitize'][_0x2dac61(0xc9)]}}}};}};function a104_0x5545(_0x53f040,_0x27dff8){_0x53f040=_0x53f040-0xc9;const _0x57ff5f=a104_0x57ff();let _0x5545ba=_0x57ff5f[_0x53f040];return _0x5545ba;}function buildResultMessage(_0x3b7582){const _0x36c6e3=a104_0x1009a0,_0x231579=[];return _0x3b7582[_0x36c6e3(0xfa)]&&_0x231579[_0x36c6e3(0xf5)](_0x36c6e3(0xda)+_0x3b7582['originalBytes']+_0x36c6e3(0xfe)),_0x3b7582['redactionCount']>0x0&&_0x231579[_0x36c6e3(0xf5)]('redacted\x20'+_0x3b7582['redactionCount']+_0x36c6e3(0xfd)+_0x3b7582['redactionKinds']['join'](',\x20')),_0x231579['length']===0x0?'Platform\x20issue\x20reported':_0x36c6e3(0x103)+_0x231579['join'](';\x20')+')';}async function prepareIssueReport(_0xcf43a3){const _0x2eb3fe=a104_0x1009a0,_0x221703=_0xcf43a3[_0x2eb3fe(0xf7)](_0x2eb3fe(0xdb))['trim'](),_0xcdd31f=_0xcf43a3[_0x2eb3fe(0xf7)]('description'),_0x335109=_0xcf43a3['str'](DESCRIPTION_FILE_FLAG)[_0x2eb3fe(0xf3)]();if(!_0x335109){const _0x386b78=_0xcdd31f;if(!_0x386b78[_0x2eb3fe(0xf3)]())throw CliErrors[_0x2eb3fe(0xcd)](_0x2eb3fe(0xd8),_0x2eb3fe(0xe6));const _0x42034b=sanitizeIssueDescription(_0x386b78);return{'title':_0x221703,'description':_0x42034b[_0x2eb3fe(0x104)],'descriptionSource':_0x2eb3fe(0xe3),'sanitize':_0x42034b};}const _0x3bd371=resolve(process['cwd'](),_0x335109),_0x20f01a=await readFile(_0x3bd371,_0x2eb3fe(0x105));if(!_0x20f01a[_0x2eb3fe(0xf3)]())throw CliErrors[_0x2eb3fe(0xcd)](_0x2eb3fe(0xeb)+_0x3bd371,_0x2eb3fe(0xca));const _0x26d5f8=sanitizeIssueDescription(_0x20f01a);return{'title':_0x221703,'description':_0x26d5f8['description'],'descriptionSource':'file','descriptionFilePath':_0x3bd371,'sanitize':_0x26d5f8};}
1
+ const a104_0xc28fea=a104_0x2014;(function(_0x3c3730,_0xcbacde){const _0x17f8f2=a104_0x2014,_0x8492d5=_0x3c3730();while(!![]){try{const _0xd79b36=parseInt(_0x17f8f2(0x21d))/0x1*(parseInt(_0x17f8f2(0x21b))/0x2)+-parseInt(_0x17f8f2(0x208))/0x3+-parseInt(_0x17f8f2(0x1f3))/0x4+-parseInt(_0x17f8f2(0x1f2))/0x5*(-parseInt(_0x17f8f2(0x1fd))/0x6)+-parseInt(_0x17f8f2(0x1fb))/0x7*(-parseInt(_0x17f8f2(0x205))/0x8)+-parseInt(_0x17f8f2(0x1f8))/0x9+-parseInt(_0x17f8f2(0x1ee))/0xa;if(_0xd79b36===_0xcbacde)break;else _0x8492d5['push'](_0x8492d5['shift']());}catch(_0x2ac6fd){_0x8492d5['push'](_0x8492d5['shift']());}}}(a104_0x4ca4,0x59b1c));function a104_0x2014(_0x31b2a1,_0x5f165d){_0x31b2a1=_0x31b2a1-0x1e8;const _0x4ca4d1=a104_0x4ca4();let _0x201484=_0x4ca4d1[_0x31b2a1];return _0x201484;}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_0x4ca4(){const _0x1842ef=['descriptionSource:\x20','flagMissing','truncated','Platform\x20issue\x20reported\x20(','title','descriptionFile:\x20','inline','description','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated:\x20original\x20','528640pGxKvd','redactionKinds','truncated\x20from\x20','issue','231970gJPtZH','1406988yPbGpV','string','POST','\x20bytes','push','3918888QbAAGr','descriptionFilePath','originalBytes','21OgkCve','sanitize','42NwqXMQ','File\x20not\x20found:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','issue.description_redaction_kinds','apiError','description-file','issue.description_truncated','Failed\x20to\x20report\x20platform\x20issue:\x20','1702448WqJZsP','\x20secret(s):\x20','filter','1156272QUuQga','trim','Platform\x20issue\x20reported','issue.description','cwd','otel://','validation','issue.description_original_bytes','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','redactionCount','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','join','redacted\x20','message','length','str','redactions:\x20','One-line\x20issue\x20summary','write','419786RyjryT','issue.description_redactions','3ZoauXx','utf8','descriptionSource'];a104_0x4ca4=function(){return _0x1842ef;};return a104_0x4ca4();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a104_0xc28fea(0x202);export const issueReport={'service':a104_0xc28fea(0x1f1),'command':'report','description':a104_0xc28fea(0x1ec),'risk':a104_0xc28fea(0x21a),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a104_0xc28fea(0x1e8),'type':'string','required':!![],'description':a104_0xc28fea(0x219)},{'name':'description','type':a104_0xc28fea(0x1f4),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a104_0xc28fea(0x1f4),'description':a104_0xc28fea(0x210)}],async 'validate'(_0x2198cb){const _0x1ea7d5=a104_0xc28fea,_0x37d64b=_0x2198cb[_0x1ea7d5(0x217)](_0x1ea7d5(0x1e8))[_0x1ea7d5(0x209)](),_0x24d564=_0x2198cb[_0x1ea7d5(0x217)]('description')[_0x1ea7d5(0x209)](),_0x3f47f9=_0x2198cb[_0x1ea7d5(0x217)](DESCRIPTION_FILE_FLAG)[_0x1ea7d5(0x209)]();if(!_0x37d64b)throw CliErrors[_0x1ea7d5(0x221)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x24d064=_0x24d564[_0x1ea7d5(0x216)]>0x0,_0x4590d6=_0x3f47f9['length']>0x0;if(_0x24d064===_0x4590d6)throw CliErrors[_0x1ea7d5(0x20e)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x4590d6){const _0x29282d=resolve(process[_0x1ea7d5(0x20c)](),_0x3f47f9);if(!existsSync(_0x29282d))throw CliErrors['validation'](_0x1ea7d5(0x1fe)+_0x29282d);}},async 'dryRun'(_0x5c5b8a){const _0x320b4c=a104_0xc28fea,_0x4dfc2e=await prepareIssueReport(_0x5c5b8a);return{'method':_0x320b4c(0x1f5),'url':_0x320b4c(0x20d)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4dfc2e[_0x320b4c(0x1e8)],'issue.description':_0x4dfc2e[_0x320b4c(0x1eb)],'issue.description_original_bytes':_0x4dfc2e['sanitize'][_0x320b4c(0x1fa)],'issue.description_truncated':_0x4dfc2e['sanitize'][_0x320b4c(0x222)],'issue.description_redactions':_0x4dfc2e['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x4dfc2e[_0x320b4c(0x1fc)][_0x320b4c(0x1ef)][_0x320b4c(0x213)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x320b4c(0x220)+_0x4dfc2e[_0x320b4c(0x21f)],_0x4dfc2e[_0x320b4c(0x1f9)]?_0x320b4c(0x1e9)+_0x4dfc2e[_0x320b4c(0x1f9)]:null,_0x4dfc2e[_0x320b4c(0x1fc)][_0x320b4c(0x222)]?_0x320b4c(0x1ed)+_0x4dfc2e[_0x320b4c(0x1fc)][_0x320b4c(0x1fa)]+_0x320b4c(0x1f6):null,_0x4dfc2e[_0x320b4c(0x1fc)]['redactionCount']>0x0?_0x320b4c(0x218)+_0x4dfc2e[_0x320b4c(0x1fc)][_0x320b4c(0x211)]+'\x20('+_0x4dfc2e[_0x320b4c(0x1fc)][_0x320b4c(0x1ef)][_0x320b4c(0x213)](',\x20')+')':null][_0x320b4c(0x207)](Boolean)[_0x320b4c(0x213)]('\x0a')};},async 'execute'(_0x3dde94){const _0x3d8e29=a104_0xc28fea,_0x11bf18=await prepareIssueReport(_0x3dde94);try{await sendPlatformIssueCollectLog({'title':_0x11bf18[_0x3d8e29(0x1e8)],'description':_0x11bf18[_0x3d8e29(0x1eb)],'sanitize':{'originalBytes':_0x11bf18['sanitize'][_0x3d8e29(0x1fa)],'truncated':_0x11bf18[_0x3d8e29(0x1fc)]['truncated'],'redactionCount':_0x11bf18[_0x3d8e29(0x1fc)][_0x3d8e29(0x211)],'redactionKinds':_0x11bf18[_0x3d8e29(0x1fc)]['redactionKinds']}});}catch(_0x532b85){throw CliErrors[_0x3d8e29(0x201)](_0x3d8e29(0x204)+(_0x532b85 instanceof Error?_0x532b85[_0x3d8e29(0x215)]:String(_0x532b85)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x11bf18[_0x3d8e29(0x1fc)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x3d8e29(0x20b),_0x3d8e29(0x20f),_0x3d8e29(0x203),_0x3d8e29(0x21c),_0x3d8e29(0x200)],'issue':{'title':_0x11bf18[_0x3d8e29(0x1e8)],'descriptionLength':_0x11bf18[_0x3d8e29(0x1eb)]['length'],'descriptionSource':_0x11bf18[_0x3d8e29(0x21f)],..._0x11bf18[_0x3d8e29(0x1f9)]?{'descriptionFile':_0x11bf18['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x11bf18['sanitize']['originalBytes'],'truncated':_0x11bf18[_0x3d8e29(0x1fc)]['truncated'],'redactions':_0x11bf18[_0x3d8e29(0x1fc)][_0x3d8e29(0x211)],'redactionKinds':_0x11bf18[_0x3d8e29(0x1fc)][_0x3d8e29(0x1ef)]}}}};}};function buildResultMessage(_0x326733){const _0x49b258=a104_0xc28fea,_0xc7602d=[];return _0x326733[_0x49b258(0x222)]&&_0xc7602d[_0x49b258(0x1f7)](_0x49b258(0x1f0)+_0x326733[_0x49b258(0x1fa)]+_0x49b258(0x1f6)),_0x326733[_0x49b258(0x211)]>0x0&&_0xc7602d['push'](_0x49b258(0x214)+_0x326733['redactionCount']+_0x49b258(0x206)+_0x326733[_0x49b258(0x1ef)]['join'](',\x20')),_0xc7602d[_0x49b258(0x216)]===0x0?_0x49b258(0x20a):_0x49b258(0x223)+_0xc7602d[_0x49b258(0x213)](';\x20')+')';}async function prepareIssueReport(_0x1450f0){const _0x4c84fc=a104_0xc28fea,_0x1ae294=_0x1450f0[_0x4c84fc(0x217)](_0x4c84fc(0x1e8))[_0x4c84fc(0x209)](),_0x5caca6=_0x1450f0[_0x4c84fc(0x217)]('description'),_0x11d917=_0x1450f0['str'](DESCRIPTION_FILE_FLAG)[_0x4c84fc(0x209)]();if(!_0x11d917){const _0x38ef3c=_0x5caca6;if(!_0x38ef3c[_0x4c84fc(0x209)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x4c84fc(0x212));const _0x5bfaf3=sanitizeIssueDescription(_0x38ef3c);return{'title':_0x1ae294,'description':_0x5bfaf3[_0x4c84fc(0x1eb)],'descriptionSource':_0x4c84fc(0x1ea),'sanitize':_0x5bfaf3};}const _0x36778f=resolve(process[_0x4c84fc(0x20c)](),_0x11d917),_0x34685f=await readFile(_0x36778f,_0x4c84fc(0x21e));if(!_0x34685f['trim']())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x36778f,_0x4c84fc(0x1ff));const _0x43e96e=sanitizeIssueDescription(_0x34685f);return{'title':_0x1ae294,'description':_0x43e96e[_0x4c84fc(0x1eb)],'descriptionSource':'file','descriptionFilePath':_0x36778f,'sanitize':_0x43e96e};}
@@ -1 +1 @@
1
- const a105_0x1e092d=a105_0x56aa;(function(_0x201145,_0x606a1f){const _0x21225d=a105_0x56aa,_0x458b01=_0x201145();while(!![]){try{const _0x3e02ca=-parseInt(_0x21225d(0x1e6))/0x1+-parseInt(_0x21225d(0x1f7))/0x2*(-parseInt(_0x21225d(0x1fb))/0x3)+-parseInt(_0x21225d(0x1ff))/0x4+parseInt(_0x21225d(0x201))/0x5+-parseInt(_0x21225d(0x1e4))/0x6+parseInt(_0x21225d(0x1fc))/0x7*(parseInt(_0x21225d(0x1f3))/0x8)+parseInt(_0x21225d(0x1f0))/0x9*(parseInt(_0x21225d(0x1ea))/0xa);if(_0x3e02ca===_0x606a1f)break;else _0x458b01['push'](_0x458b01['shift']());}catch(_0x5b1a3c){_0x458b01['push'](_0x458b01['shift']());}}}(a105_0xef01,0x43752));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a105_0x1e092d(0x1f2),REDACTION_RULES=[{'kind':a105_0x1e092d(0x1e8),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a105_0x1e092d(0x1e1)},{'kind':a105_0x1e092d(0x1ed),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a105_0x1e092d(0x1e2),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a105_0x1e092d(0x202)},{'kind':a105_0x1e092d(0x1ef),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a105_0x1e092d(0x1f1)},{'kind':a105_0x1e092d(0x1ee),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a105_0x1e092d(0x1f6)},{'kind':a105_0x1e092d(0x1fe),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a105_0x1e092d(0x1fd)}];export function sanitizeIssueDescription(_0x524536){const _0x3c02d5=a105_0x1e092d,_0x37f82b=Buffer[_0x3c02d5(0x1f9)](_0x524536,_0x3c02d5(0x205)),_0x222b00=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x37eafb=_0x524536,_0x2a1c8e=0x0;const _0x33f6d8=[];if(!_0x222b00){const _0x414fca=protectOssAccessKeyIds(_0x37eafb);_0x37eafb=_0x414fca[_0x3c02d5(0x1f5)];for(const _0x61a0a7 of REDACTION_RULES){let _0x20bb9f=0x0;_0x37eafb=_0x37eafb[_0x3c02d5(0x203)](_0x61a0a7[_0x3c02d5(0x204)],(_0x15c562,_0x235383)=>{const _0x2468fb=_0x3c02d5;_0x20bb9f+=0x1;const _0x5cb562=typeof _0x235383===_0x2468fb(0x1ec)?_0x235383:'';return _0x5cb562+'['+_0x61a0a7[_0x2468fb(0x1f4)]+']';}),_0x20bb9f>0x0&&(_0x2a1c8e+=_0x20bb9f,!_0x33f6d8[_0x3c02d5(0x1e3)](_0x61a0a7[_0x3c02d5(0x1e0)])&&_0x33f6d8['push'](_0x61a0a7[_0x3c02d5(0x1e0)]));}_0x37eafb=_0x414fca[_0x3c02d5(0x206)](_0x37eafb);}let _0x806124=![];if(Buffer[_0x3c02d5(0x1f9)](_0x37eafb,_0x3c02d5(0x205))>ISSUE_DESCRIPTION_MAX_BYTES){_0x806124=!![];const _0x14351e=Buffer[_0x3c02d5(0x1f9)](TRUNCATION_NOTICE,_0x3c02d5(0x205)),_0x17c363=Math[_0x3c02d5(0x1fa)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x14351e);_0x37eafb=sliceUtf8Bytes(_0x37eafb,_0x17c363)+TRUNCATION_NOTICE;}return{'description':_0x37eafb,'originalBytes':_0x37f82b,'truncated':_0x806124,'redactionCount':_0x2a1c8e,'redactionKinds':_0x33f6d8};}function a105_0x56aa(_0x28487b,_0x121b8b){_0x28487b=_0x28487b-0x1e0;const _0xef0126=a105_0xef01();let _0x56aa52=_0xef0126[_0x28487b];return _0x56aa52;}function a105_0xef01(){const _0x1e0404=['label','description','REDACTED:password','548wvlogy','slice','byteLength','max','2076XfVeRB','623THbeeK','REDACTED:bearer-jwt','bearer-jwt','2053640VVBatB','length','843590QGjdKD','REDACTED:private-key','replace','pattern','utf8','restore','kind','REDACTED:cookie','private-key','includes','48984wYWWJj','from','311909qMFTUo','push','cookie','__RB_OSS_ID_','40gMQhKg','toString','string','authorization','password','access-key','1203984MGllwV','REDACTED:access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','19448KpjYrH'];a105_0xef01=function(){return _0x1e0404;};return a105_0xef01();}function protectOssAccessKeyIds(_0x2c5269){const _0x295bb7=a105_0x1e092d,_0x4dde18=[],_0x199a4d=_0x2c5269[_0x295bb7(0x203)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xd16351,_0x1bc1fc)=>{const _0x45cea6=_0x295bb7,_0x4e2845=_0x4dde18[_0x45cea6(0x1e7)](_0xd16351[_0x45cea6(0x1f8)](_0x1bc1fc[_0x45cea6(0x200)]))-0x1;return _0x1bc1fc+_0x45cea6(0x1e9)+_0x4e2845+'__';});return{'description':_0x199a4d,'restore':_0xd840a4=>_0xd840a4[_0x295bb7(0x203)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x33d7e5,_0x578b3b,_0x52228a)=>{const _0x30aeee=_0x4dde18[Number(_0x52228a)];return _0x30aeee===undefined?_0x33d7e5:''+_0x578b3b+_0x30aeee;})};}function sliceUtf8Bytes(_0x55e29d,_0x2ebd5e){const _0x5760f9=a105_0x1e092d;if(_0x2ebd5e<=0x0)return'';const _0x5b5eaf=Buffer[_0x5760f9(0x1e5)](_0x55e29d,_0x5760f9(0x205));if(_0x5b5eaf[_0x5760f9(0x1f9)]<=_0x2ebd5e)return _0x55e29d;let _0x23b990=_0x2ebd5e;while(_0x23b990>0x0){const _0x792ef7=_0x5b5eaf[_0x23b990];if(_0x792ef7===undefined||(_0x792ef7&0xc0)!==0x80)break;_0x23b990-=0x1;}return _0x5b5eaf['subarray'](0x0,_0x23b990)[_0x5760f9(0x1eb)](_0x5760f9(0x205));}
1
+ function a105_0x3cd5(){const _0x534f5b=['\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','1369984tYgdgp','push','REDACTED:access-key','restore','2163390YjdGUU','cookie','1668696ARsICV','kind','4506sDqwzG','REDACTED:authorization','REDACTED:private-key','REDACTED:cookie','32TobZhs','59872EMJByO','from','string','slice','password','description','byteLength','pattern','__RB_OSS_ID_','2759960QLbdnd','replace','1140979kbJGwf','utf8','81LetqWz','max','REDACTED:bearer-jwt'];a105_0x3cd5=function(){return _0x534f5b;};return a105_0x3cd5();}const a105_0x29f521=a105_0x39f4;(function(_0x57e0df,_0x41d029){const _0x4c3811=a105_0x39f4,_0x2c50eb=_0x57e0df();while(!![]){try{const _0x3b261c=-parseInt(_0x4c3811(0x1bd))/0x1*(-parseInt(_0x4c3811(0x1c1))/0x2)+-parseInt(_0x4c3811(0x1bb))/0x3+parseInt(_0x4c3811(0x1b5))/0x4+parseInt(_0x4c3811(0x1cb))/0x5+-parseInt(_0x4c3811(0x1b9))/0x6+parseInt(_0x4c3811(0x1cd))/0x7+parseInt(_0x4c3811(0x1c2))/0x8*(parseInt(_0x4c3811(0x1b1))/0x9);if(_0x3b261c===_0x41d029)break;else _0x2c50eb['push'](_0x2c50eb['shift']());}catch(_0x5643c0){_0x2c50eb['push'](_0x2c50eb['shift']());}}}(a105_0x3cd5,0x4464c));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a105_0x29f521(0x1b4),REDACTION_RULES=[{'kind':a105_0x29f521(0x1ba),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a105_0x29f521(0x1c0)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a105_0x29f521(0x1be)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a105_0x29f521(0x1bf)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a105_0x29f521(0x1b7)},{'kind':a105_0x29f521(0x1c6),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a105_0x29f521(0x1b3)}];export function sanitizeIssueDescription(_0x134b72){const _0x46f95f=a105_0x29f521,_0x343901=Buffer[_0x46f95f(0x1c8)](_0x134b72,_0x46f95f(0x1ce)),_0x322f62=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x127fd2=_0x134b72,_0x1ed2c7=0x0;const _0x2525a7=[];if(!_0x322f62){const _0x249f03=protectOssAccessKeyIds(_0x127fd2);_0x127fd2=_0x249f03[_0x46f95f(0x1c7)];for(const _0x2f146c of REDACTION_RULES){let _0x1701e3=0x0;_0x127fd2=_0x127fd2[_0x46f95f(0x1cc)](_0x2f146c[_0x46f95f(0x1c9)],(_0x43aea7,_0x97fa01)=>{const _0xfae9a8=_0x46f95f;_0x1701e3+=0x1;const _0x512d11=typeof _0x97fa01===_0xfae9a8(0x1c4)?_0x97fa01:'';return _0x512d11+'['+_0x2f146c['label']+']';}),_0x1701e3>0x0&&(_0x1ed2c7+=_0x1701e3,!_0x2525a7['includes'](_0x2f146c[_0x46f95f(0x1bc)])&&_0x2525a7[_0x46f95f(0x1b6)](_0x2f146c[_0x46f95f(0x1bc)]));}_0x127fd2=_0x249f03[_0x46f95f(0x1b8)](_0x127fd2);}let _0x4d738a=![];if(Buffer[_0x46f95f(0x1c8)](_0x127fd2,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x4d738a=!![];const _0x166013=Buffer['byteLength'](TRUNCATION_NOTICE,_0x46f95f(0x1ce)),_0x4ac23a=Math[_0x46f95f(0x1b2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x166013);_0x127fd2=sliceUtf8Bytes(_0x127fd2,_0x4ac23a)+TRUNCATION_NOTICE;}return{'description':_0x127fd2,'originalBytes':_0x343901,'truncated':_0x4d738a,'redactionCount':_0x1ed2c7,'redactionKinds':_0x2525a7};}function protectOssAccessKeyIds(_0x26d643){const _0x45f570=a105_0x29f521,_0x181970=[],_0x58c475=_0x26d643[_0x45f570(0x1cc)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x3cf8e2,_0x250eeb)=>{const _0x57cbef=_0x45f570,_0x59dff1=_0x181970[_0x57cbef(0x1b6)](_0x3cf8e2[_0x57cbef(0x1c5)](_0x250eeb['length']))-0x1;return _0x250eeb+_0x57cbef(0x1ca)+_0x59dff1+'__';});return{'description':_0x58c475,'restore':_0x4f89d1=>_0x4f89d1['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x44e9b9,_0x570cfa,_0xcbc272)=>{const _0x30bc6a=_0x181970[Number(_0xcbc272)];return _0x30bc6a===undefined?_0x44e9b9:''+_0x570cfa+_0x30bc6a;})};}function a105_0x39f4(_0x59e479,_0x3d712d){_0x59e479=_0x59e479-0x1b1;const _0x3cd5b1=a105_0x3cd5();let _0x39f47=_0x3cd5b1[_0x59e479];return _0x39f47;}function sliceUtf8Bytes(_0x76defd,_0x23d93c){const _0x24ef5f=a105_0x29f521;if(_0x23d93c<=0x0)return'';const _0x2ff10a=Buffer[_0x24ef5f(0x1c3)](_0x76defd,_0x24ef5f(0x1ce));if(_0x2ff10a[_0x24ef5f(0x1c8)]<=_0x23d93c)return _0x76defd;let _0x33c86a=_0x23d93c;while(_0x33c86a>0x0){const _0x38924e=_0x2ff10a[_0x33c86a];if(_0x38924e===undefined||(_0x38924e&0xc0)!==0x80)break;_0x33c86a-=0x1;}return _0x2ff10a['subarray'](0x0,_0x33c86a)['toString'](_0x24ef5f(0x1ce));}
@@ -1 +1 @@
1
- function a106_0xc171(_0x219b48,_0x485bbf){_0x219b48=_0x219b48-0x1a4;const _0x239841=a106_0x2398();let _0xc1715c=_0x239841[_0x219b48];return _0xc1715c;}const a106_0x81f9c7=a106_0xc171;function a106_0x2398(){const _0x561f37=['kb_already_exists','cookie','str','15300zRlbHK','70HlwCiH','stringify','POST','\x20--format\x20compress','trim','create','kb_file_required','string','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','verified','byteSize','/admin/knowledge-base/create','42QnUOap','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','2871711gfbRzU','7279846kMjgEo','219288jehkTr','2666744gjlXSN','appCode','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','2210GcnRYl','kb_verification_failed','4067916LKGFPc','file','--title\x20is\x20required.','Company\x20knowledge\x20base\x20','content','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','title','30085kGXBAF','Knowledge-base\x20title','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','write','kb_create_outcome_unknown','company','\x20--format\x20compress`\x20before\x20choosing\x20update.','\x20for\x20','contentHash','length','--file\x20is\x20required.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'];a106_0x2398=function(){return _0x561f37;};return a106_0x2398();}(function(_0xf1c77a,_0x4dce4c){const _0x455aa4=a106_0xc171,_0x48072b=_0xf1c77a();while(!![]){try{const _0x1f2227=-parseInt(_0x455aa4(0x1ab))/0x1*(parseInt(_0x455aa4(0x1c7))/0x2)+-parseInt(_0x455aa4(0x1ca))/0x3+parseInt(_0x455aa4(0x1a4))/0x4+parseInt(_0x455aa4(0x1bb))/0x5*(-parseInt(_0x455aa4(0x1cc))/0x6)+parseInt(_0x455aa4(0x1cb))/0x7+parseInt(_0x455aa4(0x1cd))/0x8+-parseInt(_0x455aa4(0x1ba))/0x9*(-parseInt(_0x455aa4(0x1d0))/0xa);if(_0x1f2227===_0x4dce4c)break;else _0x48072b['push'](_0x48072b['shift']());}catch(_0x209f3f){_0x48072b['push'](_0x48072b['shift']());}}}(a106_0x2398,0xa26da));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a106_0x81f9c7(0x1c6);function readCreateInput(_0x409367){const _0x48255e=a106_0x81f9c7,_0x32fb3a=_0x409367[_0x48255e(0x1b9)]('title')[_0x48255e(0x1bf)]();if(!_0x32fb3a)throw kbError('kb_title_required',_0x48255e(0x1a6));const _0x281ed5=_0x409367[_0x48255e(0x1b9)](_0x48255e(0x1a5))[_0x48255e(0x1bf)]();if(!_0x281ed5)throw kbError(_0x48255e(0x1c1),_0x48255e(0x1b5),_0x48255e(0x1c3));return{'title':_0x32fb3a,'file':_0x281ed5};}async function prepareCreate(_0x14e70a){const _0xbe58a2=a106_0x81f9c7,_0x3f4c7c=readCreateInput(_0x14e70a),_0x16e2dd=await readKbFile(_0x3f4c7c['file']),_0x15fcc2=await fetchAllCompanyKnowledgeBases(_0x14e70a,{'title':_0x3f4c7c[_0xbe58a2(0x1aa)]}),_0x5a8cad=findExactCompanyKnowledgeBases(_0x15fcc2,_0x14e70a[_0xbe58a2(0x1ce)],_0x3f4c7c[_0xbe58a2(0x1aa)]);if(_0x5a8cad[_0xbe58a2(0x1b4)]>0x0)throw kbError(_0xbe58a2(0x1b7),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x14e70a[_0xbe58a2(0x1ce)]+'\x20with\x20title\x20'+_0x3f4c7c[_0xbe58a2(0x1aa)]+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x5a8cad[0x0]['id']+_0xbe58a2(0x1b1));return{..._0x3f4c7c,'content':_0x16e2dd};}function plannedAfter(_0x128dc4,_0x237ac6){const _0x3954ea=a106_0x81f9c7;return{'scope':_0x3954ea(0x1b0),'appCode':_0x128dc4[_0x3954ea(0x1ce)],'title':_0x237ac6[_0x3954ea(0x1aa)],'contentByteSize':_0x237ac6[_0x3954ea(0x1a8)][_0x3954ea(0x1c5)],'contentHash':_0x237ac6[_0x3954ea(0x1a8)]['contentHash']};}function verifyCreatedState(_0x5d303b,_0x309757,_0x348710){const _0x24f1d1=a106_0x81f9c7;assertCompanyKnowledgeBase(_0x348710,_0x5d303b['appCode'],_0x348710['id']);const _0x6eb9c6=inspectKbContent(_0x348710[_0x24f1d1(0x1a8)]);if(_0x348710[_0x24f1d1(0x1aa)]!==_0x309757['title']||_0x6eb9c6[_0x24f1d1(0x1b3)]!==_0x309757[_0x24f1d1(0x1a8)][_0x24f1d1(0x1b3)])throw kbError(_0x24f1d1(0x1d1),_0x24f1d1(0x1a7)+_0x348710['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x24f1d1(0x1ad)+_0x348710['id']+_0x24f1d1(0x1c8));return projectKb(_0x348710);}export const kbCreate={'service':'kb','command':a106_0x81f9c7(0x1c0),'description':a106_0x81f9c7(0x1a9),'risk':a106_0x81f9c7(0x1ae),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a106_0x81f9c7(0x1aa),'type':a106_0x81f9c7(0x1c2),'required':!![],'description':a106_0x81f9c7(0x1ac)},{'name':a106_0x81f9c7(0x1a5),'type':a106_0x81f9c7(0x1c2),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x3b9694){readCreateInput(_0x3b9694);},async 'dryRun'(_0x102b45){const _0x195fb9=a106_0x81f9c7,_0x3e374e=await prepareCreate(_0x102b45);return asDryRunResult({'operation':_0x195fb9(0x1c0),'selector':{'scope':_0x195fb9(0x1b0),'appCode':_0x102b45[_0x195fb9(0x1ce)],'title':_0x3e374e['title']},'before':null,'after':plannedAfter(_0x102b45,_0x3e374e),'dryRun':!![],'backend':{'method':_0x195fb9(0x1bd),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':'rabetbase\x20kb\x20list\x20--title\x20'+JSON[_0x195fb9(0x1bc)](_0x3e374e[_0x195fb9(0x1aa)])+_0x195fb9(0x1be)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x52fd8d){const _0x65297c=a106_0x81f9c7,_0x2ec709=await prepareCreate(_0x52fd8d);let _0x5e82c0,_0x2533dd=![];try{const _0x34a365=await createEnterpriseKnowledgeBase(_0x52fd8d[_0x65297c(0x1b8)],{'appCode':_0x52fd8d[_0x65297c(0x1ce)],'title':_0x2ec709['title'],'content':_0x2ec709[_0x65297c(0x1a8)][_0x65297c(0x1a8)]});assertCompanyKnowledgeBase(_0x34a365,_0x52fd8d['appCode'],_0x34a365['id']),_0x5e82c0=_0x34a365['id'];}catch(_0x2c4f0c){if(!isPlatformTransportFailure(_0x2c4f0c))throw _0x2c4f0c;_0x2533dd=!![];}if(_0x5e82c0===undefined){const _0x467478=await verifyKbMutationReadback(_0x65297c(0x1c0),!![],()=>fetchAllCompanyKnowledgeBases(_0x52fd8d,{'title':_0x2ec709[_0x65297c(0x1aa)]})),_0x4dd6b0=findExactCompanyKnowledgeBases(_0x467478,_0x52fd8d[_0x65297c(0x1ce)],_0x2ec709[_0x65297c(0x1aa)]);if(_0x4dd6b0['length']!==0x1)throw kbError(_0x65297c(0x1af),_0x65297c(0x1b6)+_0x4dd6b0[_0x65297c(0x1b4)]+'.',_0x65297c(0x1cf));_0x5e82c0=_0x4dd6b0[0x0]['id'];}const _0x3c15f7=await verifyKbMutationReadback('create',_0x2533dd,()=>requireKb(_0x52fd8d,_0x5e82c0)),_0x7fa3=verifyCreatedState(_0x52fd8d,_0x2ec709,_0x3c15f7),_0x4e8eb2=_0x2533dd?[_0x65297c(0x1c9)]:[];return{'ok':!![],'data':{'operation':_0x65297c(0x1c0),'selector':{'id':_0x7fa3['id'],'scope':_0x65297c(0x1b0),'appCode':_0x7fa3[_0x65297c(0x1ce)]},'before':null,'after':_0x7fa3,'dryRun':![],'backend':{'method':_0x65297c(0x1bd),'path':CREATE_PATH},'warnings':_0x4e8eb2,'verification':{'status':_0x65297c(0x1c4),'recoveredAfterUnknownResponse':_0x2533dd,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x7fa3['id']+_0x65297c(0x1be)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x7fa3['id']+_0x65297c(0x1b2)+_0x7fa3[_0x65297c(0x1ce)]};}};
1
+ const a106_0x4ac322=a106_0x3070;(function(_0x1e42fb,_0x44e657){const _0x102b15=a106_0x3070,_0x2e1c4b=_0x1e42fb();while(!![]){try{const _0x163cb6=-parseInt(_0x102b15(0xcf))/0x1+-parseInt(_0x102b15(0xd1))/0x2+parseInt(_0x102b15(0xe8))/0x3*(parseInt(_0x102b15(0xdf))/0x4)+-parseInt(_0x102b15(0xee))/0x5+-parseInt(_0x102b15(0xeb))/0x6+parseInt(_0x102b15(0xe1))/0x7+parseInt(_0x102b15(0xdc))/0x8;if(_0x163cb6===_0x44e657)break;else _0x2e1c4b['push'](_0x2e1c4b['shift']());}catch(_0x3a8aac){_0x2e1c4b['push'](_0x2e1c4b['shift']());}}}(a106_0x2343,0x6c488));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH='/admin/knowledge-base/create';function readCreateInput(_0x419dac){const _0x4529ef=a106_0x3070,_0x1b90a0=_0x419dac[_0x4529ef(0xe3)](_0x4529ef(0xea))[_0x4529ef(0xce)]();if(!_0x1b90a0)throw kbError(_0x4529ef(0xe7),_0x4529ef(0xd0));const _0x102824=_0x419dac[_0x4529ef(0xe3)](_0x4529ef(0xd6))[_0x4529ef(0xce)]();if(!_0x102824)throw kbError(_0x4529ef(0xf5),_0x4529ef(0xf0),_0x4529ef(0xf7));return{'title':_0x1b90a0,'file':_0x102824};}async function prepareCreate(_0x5647f6){const _0x93f3ab=a106_0x3070,_0xf36528=readCreateInput(_0x5647f6),_0x24e36b=await readKbFile(_0xf36528['file']),_0x10ea1e=await fetchAllCompanyKnowledgeBases(_0x5647f6,{'title':_0xf36528[_0x93f3ab(0xea)]}),_0x2f6b06=findExactCompanyKnowledgeBases(_0x10ea1e,_0x5647f6[_0x93f3ab(0xd4)],_0xf36528[_0x93f3ab(0xea)]);if(_0x2f6b06[_0x93f3ab(0xda)]>0x0)throw kbError(_0x93f3ab(0xf6),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x5647f6[_0x93f3ab(0xd4)]+_0x93f3ab(0xef)+_0xf36528[_0x93f3ab(0xea)]+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x2f6b06[0x0]['id']+_0x93f3ab(0xe2));return{..._0xf36528,'content':_0x24e36b};}function plannedAfter(_0x57ef2a,_0x13083c){const _0x57b46c=a106_0x3070;return{'scope':_0x57b46c(0xf3),'appCode':_0x57ef2a[_0x57b46c(0xd4)],'title':_0x13083c[_0x57b46c(0xea)],'contentByteSize':_0x13083c[_0x57b46c(0xd2)][_0x57b46c(0xe0)],'contentHash':_0x13083c[_0x57b46c(0xd2)][_0x57b46c(0xd5)]};}function a106_0x3070(_0x5aea2f,_0xc3ef20){_0x5aea2f=_0x5aea2f-0xcd;const _0x234359=a106_0x2343();let _0x30707d=_0x234359[_0x5aea2f];return _0x30707d;}function a106_0x2343(){const _0x585ed7=['\x20with\x20title\x20','--file\x20is\x20required.','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','stringify','company','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','kb_file_required','kb_already_exists','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','string','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','trim','699439VOwVaL','--title\x20is\x20required.','177746TqlPBA','content','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','appCode','contentHash','file','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','\x20--format\x20compress','length','Created\x20company\x20knowledge\x20base\x20','11528184wtUIrK','rabetbase\x20kb\x20list\x20--title\x20','create','4hLPeUw','byteSize','1242836cmsykX','\x20--format\x20compress`\x20before\x20choosing\x20update.','str','\x20for\x20','Company\x20knowledge\x20base\x20','Knowledge-base\x20title','kb_title_required','2021241qgKQIA','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','title','1048278aSJdHq','verified','POST','4428825eGgTDy'];a106_0x2343=function(){return _0x585ed7;};return a106_0x2343();}function verifyCreatedState(_0x3961b1,_0xab4676,_0xdcc2db){const _0x25740c=a106_0x3070;assertCompanyKnowledgeBase(_0xdcc2db,_0x3961b1['appCode'],_0xdcc2db['id']);const _0x5a9ef6=inspectKbContent(_0xdcc2db[_0x25740c(0xd2)]);if(_0xdcc2db[_0x25740c(0xea)]!==_0xab4676[_0x25740c(0xea)]||_0x5a9ef6[_0x25740c(0xd5)]!==_0xab4676[_0x25740c(0xd2)][_0x25740c(0xd5)])throw kbError('kb_verification_failed',_0x25740c(0xe5)+_0xdcc2db['id']+_0x25740c(0xf4),_0x25740c(0xcd)+_0xdcc2db['id']+_0x25740c(0xf1));return projectKb(_0xdcc2db);}export const kbCreate={'service':'kb','command':a106_0x4ac322(0xde),'description':a106_0x4ac322(0xd7),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a106_0x4ac322(0xea),'type':a106_0x4ac322(0xf8),'required':!![],'description':a106_0x4ac322(0xe6)},{'name':'file','type':a106_0x4ac322(0xf8),'required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x420ce7){readCreateInput(_0x420ce7);},async 'dryRun'(_0x5e870b){const _0x31fa6f=a106_0x4ac322,_0x43a43e=await prepareCreate(_0x5e870b);return asDryRunResult({'operation':_0x31fa6f(0xde),'selector':{'scope':_0x31fa6f(0xf3),'appCode':_0x5e870b[_0x31fa6f(0xd4)],'title':_0x43a43e[_0x31fa6f(0xea)]},'before':null,'after':plannedAfter(_0x5e870b,_0x43a43e),'dryRun':!![],'backend':{'method':_0x31fa6f(0xed),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x31fa6f(0xdd)+JSON[_0x31fa6f(0xf2)](_0x43a43e[_0x31fa6f(0xea)])+_0x31fa6f(0xd9)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x5941d0){const _0x5a79b2=a106_0x4ac322,_0x36124b=await prepareCreate(_0x5941d0);let _0x454510,_0x2f23c0=![];try{const _0x1e7ed0=await createEnterpriseKnowledgeBase(_0x5941d0['cookie'],{'appCode':_0x5941d0[_0x5a79b2(0xd4)],'title':_0x36124b[_0x5a79b2(0xea)],'content':_0x36124b[_0x5a79b2(0xd2)][_0x5a79b2(0xd2)]});assertCompanyKnowledgeBase(_0x1e7ed0,_0x5941d0['appCode'],_0x1e7ed0['id']),_0x454510=_0x1e7ed0['id'];}catch(_0x17f7f1){if(!isPlatformTransportFailure(_0x17f7f1))throw _0x17f7f1;_0x2f23c0=!![];}if(_0x454510===undefined){const _0x214588=await verifyKbMutationReadback(_0x5a79b2(0xde),!![],()=>fetchAllCompanyKnowledgeBases(_0x5941d0,{'title':_0x36124b[_0x5a79b2(0xea)]})),_0x4ac6a7=findExactCompanyKnowledgeBases(_0x214588,_0x5941d0[_0x5a79b2(0xd4)],_0x36124b[_0x5a79b2(0xea)]);if(_0x4ac6a7[_0x5a79b2(0xda)]!==0x1)throw kbError('kb_create_outcome_unknown',_0x5a79b2(0xd3)+_0x4ac6a7[_0x5a79b2(0xda)]+'.',_0x5a79b2(0xd8));_0x454510=_0x4ac6a7[0x0]['id'];}const _0x1d3a04=await verifyKbMutationReadback(_0x5a79b2(0xde),_0x2f23c0,()=>requireKb(_0x5941d0,_0x454510)),_0x6b3e22=verifyCreatedState(_0x5941d0,_0x36124b,_0x1d3a04),_0x51cd52=_0x2f23c0?[_0x5a79b2(0xe9)]:[];return{'ok':!![],'data':{'operation':_0x5a79b2(0xde),'selector':{'id':_0x6b3e22['id'],'scope':_0x5a79b2(0xf3),'appCode':_0x6b3e22['appCode']},'before':null,'after':_0x6b3e22,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x51cd52,'verification':{'status':_0x5a79b2(0xec),'recoveredAfterUnknownResponse':_0x2f23c0,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x6b3e22['id']+_0x5a79b2(0xd9)}},'message':_0x5a79b2(0xdb)+_0x6b3e22['id']+_0x5a79b2(0xe4)+_0x6b3e22[_0x5a79b2(0xd4)]};}};
@@ -1 +1 @@
1
- const a107_0x54a100=a107_0x281f;(function(_0x271784,_0x33391f){const _0x4b1c3b=a107_0x281f,_0x1cf72e=_0x271784();while(!![]){try{const _0x1aba5a=parseInt(_0x4b1c3b(0x1e7))/0x1+parseInt(_0x4b1c3b(0x1f4))/0x2+parseInt(_0x4b1c3b(0x1ee))/0x3+-parseInt(_0x4b1c3b(0x1e0))/0x4*(parseInt(_0x4b1c3b(0x1fa))/0x5)+-parseInt(_0x4b1c3b(0x1f9))/0x6*(-parseInt(_0x4b1c3b(0x1de))/0x7)+-parseInt(_0x4b1c3b(0x200))/0x8*(parseInt(_0x4b1c3b(0x1ff))/0x9)+-parseInt(_0x4b1c3b(0x1e8))/0xa;if(_0x1aba5a===_0x33391f)break;else _0x1cf72e['push'](_0x1cf72e['shift']());}catch(_0x2f0c6e){_0x1cf72e['push'](_0x1cf72e['shift']());}}}(a107_0x25c7,0xa866d));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a107_0x25c7(){const _0x3bf16e=['\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','1063242pImjlQ','\x20--format\x20compress','number','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','unshift','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','2752420YjdqSE','company','\x20remains\x20readable\x20after\x20delete.','kb_expected_version_invalid','delete','4964322fUwSoM','5WmvwEo','Soft-deleted\x20company\x20knowledge\x20base\x20','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','isSafeInteger','Company\x20knowledge\x20base\x20','9APJKFk','9888392QWLaqx','flag','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','no_op','appCode','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','verified','cookie','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','7iLbuEt','snapshotHash','943412YBuuuO','already_absent','kb_delete_outcome_unknown','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','expected-version','Company\x20knowledge-base\x20id','rabetbase\x20kb\x20detail\x20--id\x20','21060YgAqwq','4173960wAPZez','kb_verification_failed','POST','/admin/knowledge-base/delete'];a107_0x25c7=function(){return _0x3bf16e;};return a107_0x25c7();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a107_0x54a100(0x1eb),RAG_WARNING=a107_0x54a100(0x1f3),NON_ATOMIC_WARNING=a107_0x54a100(0x1ed);function a107_0x281f(_0x58559c,_0x389ebc){_0x58559c=_0x58559c-0x1d7;const _0x25c7c8=a107_0x25c7();let _0x281fdc=_0x25c7c8[_0x58559c];return _0x281fdc;}function readExpectedVersion(_0x4063b3){const _0x3f8417=a107_0x54a100,_0x296d00=_0x4063b3[_0x3f8417(0x201)](_0x3f8417(0x1e4));if(_0x296d00===undefined)return undefined;const _0x11d408=Number(_0x296d00);if(!Number[_0x3f8417(0x1fd)](_0x11d408)||_0x11d408<0x0)throw kbError(_0x3f8417(0x1f7),_0x3f8417(0x1f1));return _0x11d408;}function noOpData(_0x24efe0,_0xf1dc06,_0xa947ad){const _0x6a5471=a107_0x54a100;return{'operation':_0x6a5471(0x1d8),'selector':{'id':_0xf1dc06,'scope':'company','appCode':_0x24efe0['appCode']},'before':null,'after':null,'dryRun':_0xa947ad,'deleteCalled':![],'backend':{'method':_0x6a5471(0x1ea),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x6a5471(0x1e1),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a107_0x54a100(0x1f8),'description':a107_0x54a100(0x1fc),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a107_0x54a100(0x1f0),'required':!![],'description':a107_0x54a100(0x1e5)},{'name':a107_0x54a100(0x1e4),'type':'number','required':![],'description':a107_0x54a100(0x1dd)}],async 'validate'(_0x4a8edd){readKbId(_0x4a8edd),readExpectedVersion(_0x4a8edd),requireKbExplicitYes(_0x4a8edd);},async 'dryRun'(_0x2ff8e1){const _0x3afc89=a107_0x54a100,_0x125c57=readKbId(_0x2ff8e1),_0x27d67e=readExpectedVersion(_0x2ff8e1),_0x6d9827=await getKbOrNull(_0x2ff8e1,_0x125c57);if(!_0x6d9827)return asDryRunResult(noOpData(_0x2ff8e1,_0x125c57,!![]),{'method':_0x3afc89(0x1ea),'url':DELETE_PATH});assertExpectedKbVersion(_0x6d9827,_0x27d67e);const _0x14b97f=projectKb(_0x6d9827),_0x41ff08=[RAG_WARNING];if(_0x27d67e!==undefined)_0x41ff08['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x3afc89(0x1f8),'selector':{'id':_0x14b97f['id'],'scope':_0x3afc89(0x1f5),'appCode':_0x14b97f['appCode']},'before':_0x14b97f,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x3afc89(0x1ea),'path':DELETE_PATH},'warnings':_0x41ff08,'verification':{'expectedVersion':_0x27d67e??null,'atomicCompareAndSet':![],'snapshotHash':_0x14b97f[_0x3afc89(0x1df)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x14b97f['id']+'\x20--format\x20compress'}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x48e711){const _0x217c9e=a107_0x54a100;requireKbExplicitYes(_0x48e711);const _0x27f6f9=readKbId(_0x48e711),_0x459207=readExpectedVersion(_0x48e711),_0x56b88f=await getKbOrNull(_0x48e711,_0x27f6f9);if(!_0x56b88f)return{'ok':!![],'data':noOpData(_0x48e711,_0x27f6f9,![]),'message':_0x217c9e(0x1fe)+_0x27f6f9+_0x217c9e(0x1e3)};assertExpectedKbVersion(_0x56b88f,_0x459207);const _0x556c10=projectKb(_0x56b88f);let _0xbfd400=![];try{await deleteEnterpriseKnowledgeBase(_0x48e711[_0x217c9e(0x1dc)],_0x27f6f9);}catch(_0xd6ea91){if(!isPlatformTransportFailure(_0xd6ea91))throw _0xd6ea91;_0xbfd400=!![];}const _0x2dc322=await verifyKbMutationReadback('delete',_0xbfd400,()=>getKbOrNull(_0x48e711,_0x27f6f9));if(_0x2dc322)throw kbError(_0xbfd400?_0x217c9e(0x1e2):_0x217c9e(0x1e9),'Company\x20knowledge\x20base\x20'+_0x27f6f9+_0x217c9e(0x1f6),_0x217c9e(0x1da)+_0x27f6f9+_0x217c9e(0x1ec));const _0x340e7e=[RAG_WARNING];if(_0x459207!==undefined)_0x340e7e['unshift'](NON_ATOMIC_WARNING);return _0xbfd400&&_0x340e7e[_0x217c9e(0x1f2)](_0x217c9e(0x1d7)),{'ok':!![],'data':{'operation':'delete','selector':{'id':_0x556c10['id'],'scope':_0x217c9e(0x1f5),'appCode':_0x556c10[_0x217c9e(0x1d9)]},'before':_0x556c10,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x217c9e(0x1ea),'path':DELETE_PATH},'warnings':_0x340e7e,'verification':{'status':_0x217c9e(0x1db),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0xbfd400,'lookupCommand':_0x217c9e(0x1e6)+_0x556c10['id']+_0x217c9e(0x1ef)}},'message':_0x217c9e(0x1fb)+_0x556c10['id']};}};
1
+ const a107_0x5b178b=a107_0x52d5;(function(_0xa4e41d,_0x9a7372){const _0x4d8ae1=a107_0x52d5,_0x324aae=_0xa4e41d();while(!![]){try{const _0x53f32d=-parseInt(_0x4d8ae1(0xda))/0x1*(parseInt(_0x4d8ae1(0xe9))/0x2)+-parseInt(_0x4d8ae1(0xe0))/0x3+-parseInt(_0x4d8ae1(0xe1))/0x4*(-parseInt(_0x4d8ae1(0xe6))/0x5)+parseInt(_0x4d8ae1(0xc8))/0x6*(parseInt(_0x4d8ae1(0xd5))/0x7)+parseInt(_0x4d8ae1(0xdc))/0x8+-parseInt(_0x4d8ae1(0xde))/0x9*(-parseInt(_0x4d8ae1(0xd1))/0xa)+-parseInt(_0x4d8ae1(0xd0))/0xb*(parseInt(_0x4d8ae1(0xe3))/0xc);if(_0x53f32d===_0x9a7372)break;else _0x324aae['push'](_0x324aae['shift']());}catch(_0x276923){_0x324aae['push'](_0x324aae['shift']());}}}(a107_0x40b5,0x3439d));function a107_0x40b5(){const _0x434e33=['729999VuBubF','8fnHgUf','number','5172giPnGv','company','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','139985AXATGO','rabetbase\x20kb\x20detail\x20--id\x20','kb_verification_failed','4ssNbYc','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','delete','verified','Company\x20knowledge\x20base\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','41172xfKthy','appCode','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','POST','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','flag','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','kb_delete_outcome_unknown','8272dReLMj','20ALhOLZ','expected-version','\x20--format\x20compress','Company\x20knowledge-base\x20id','427nGWybO','no_op','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','unshift','\x20remains\x20readable\x20after\x20delete.','82196SuqYVR','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','2098992BygdwN','already_absent','939618mJWhld','high-risk-write'];a107_0x40b5=function(){return _0x434e33;};return a107_0x40b5();}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';function a107_0x52d5(_0x4bd2db,_0x206e70){_0x4bd2db=_0x4bd2db-0xc6;const _0x40b524=a107_0x40b5();let _0x52d564=_0x40b524[_0x4bd2db];return _0x52d564;}const DELETE_PATH='/admin/knowledge-base/delete',RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING=a107_0x5b178b(0xd7);function readExpectedVersion(_0x256b9a){const _0x36862c=a107_0x5b178b,_0x57d539=_0x256b9a[_0x36862c(0xcd)](_0x36862c(0xd2));if(_0x57d539===undefined)return undefined;const _0x289e15=Number(_0x57d539);if(!Number['isSafeInteger'](_0x289e15)||_0x289e15<0x0)throw kbError('kb_expected_version_invalid',_0x36862c(0xe5));return _0x289e15;}function noOpData(_0x57adf9,_0x33a98b,_0x58e6f3){const _0x3e567d=a107_0x5b178b;return{'operation':_0x3e567d(0xd6),'selector':{'id':_0x33a98b,'scope':_0x3e567d(0xe4),'appCode':_0x57adf9['appCode']},'before':null,'after':null,'dryRun':_0x58e6f3,'deleteCalled':![],'backend':{'method':_0x3e567d(0xcb),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x3e567d(0xdd),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a107_0x5b178b(0xeb),'description':a107_0x5b178b(0xcc),'risk':a107_0x5b178b(0xdf),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a107_0x5b178b(0xe2),'required':!![],'description':a107_0x5b178b(0xd4)},{'name':'expected-version','type':a107_0x5b178b(0xe2),'required':![],'description':a107_0x5b178b(0xdb)}],async 'validate'(_0x4dd975){readKbId(_0x4dd975),readExpectedVersion(_0x4dd975),requireKbExplicitYes(_0x4dd975);},async 'dryRun'(_0x2f28f8){const _0x3e8f69=a107_0x5b178b,_0x142e69=readKbId(_0x2f28f8),_0x1334af=readExpectedVersion(_0x2f28f8),_0x4ab55f=await getKbOrNull(_0x2f28f8,_0x142e69);if(!_0x4ab55f)return asDryRunResult(noOpData(_0x2f28f8,_0x142e69,!![]),{'method':_0x3e8f69(0xcb),'url':DELETE_PATH});assertExpectedKbVersion(_0x4ab55f,_0x1334af);const _0x526b5c=projectKb(_0x4ab55f),_0x19580c=[RAG_WARNING];if(_0x1334af!==undefined)_0x19580c['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':'delete','selector':{'id':_0x526b5c['id'],'scope':_0x3e8f69(0xe4),'appCode':_0x526b5c[_0x3e8f69(0xc9)]},'before':_0x526b5c,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x19580c,'verification':{'expectedVersion':_0x1334af??null,'atomicCompareAndSet':![],'snapshotHash':_0x526b5c['snapshotHash'],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x526b5c['id']+_0x3e8f69(0xd3)}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x1fee6e){const _0x35fa50=a107_0x5b178b;requireKbExplicitYes(_0x1fee6e);const _0x3081cf=readKbId(_0x1fee6e),_0x2b86f4=readExpectedVersion(_0x1fee6e),_0x185024=await getKbOrNull(_0x1fee6e,_0x3081cf);if(!_0x185024)return{'ok':!![],'data':noOpData(_0x1fee6e,_0x3081cf,![]),'message':_0x35fa50(0xc6)+_0x3081cf+_0x35fa50(0xea)};assertExpectedKbVersion(_0x185024,_0x2b86f4);const _0x3da740=projectKb(_0x185024);let _0x2d73de=![];try{await deleteEnterpriseKnowledgeBase(_0x1fee6e['cookie'],_0x3081cf);}catch(_0x396686){if(!isPlatformTransportFailure(_0x396686))throw _0x396686;_0x2d73de=!![];}const _0x930dd=await verifyKbMutationReadback(_0x35fa50(0xeb),_0x2d73de,()=>getKbOrNull(_0x1fee6e,_0x3081cf));if(_0x930dd)throw kbError(_0x2d73de?_0x35fa50(0xcf):_0x35fa50(0xe8),_0x35fa50(0xc6)+_0x3081cf+_0x35fa50(0xd9),_0x35fa50(0xca)+_0x3081cf+_0x35fa50(0xc7));const _0x25059d=[RAG_WARNING];if(_0x2b86f4!==undefined)_0x25059d[_0x35fa50(0xd8)](NON_ATOMIC_WARNING);return _0x2d73de&&_0x25059d[_0x35fa50(0xd8)](_0x35fa50(0xce)),{'ok':!![],'data':{'operation':_0x35fa50(0xeb),'selector':{'id':_0x3da740['id'],'scope':_0x35fa50(0xe4),'appCode':_0x3da740[_0x35fa50(0xc9)]},'before':_0x3da740,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x25059d,'verification':{'status':_0x35fa50(0xec),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x2d73de,'lookupCommand':_0x35fa50(0xe7)+_0x3da740['id']+'\x20--format\x20compress'}},'message':'Soft-deleted\x20company\x20knowledge\x20base\x20'+_0x3da740['id']};}};
@@ -1 +1 @@
1
- const a108_0x22b632=a108_0x13ef;function a108_0x13ef(_0x381513,_0x4a4b7f){_0x381513=_0x381513-0x1a4;const _0x21057b=a108_0x2105();let _0x13ef90=_0x21057b[_0x381513];return _0x13ef90;}(function(_0x3cac98,_0x2c28b7){const _0x1ab862=a108_0x13ef,_0xb287df=_0x3cac98();while(!![]){try{const _0xf2c917=-parseInt(_0x1ab862(0x1b3))/0x1*(-parseInt(_0x1ab862(0x1ab))/0x2)+-parseInt(_0x1ab862(0x1b2))/0x3*(-parseInt(_0x1ab862(0x1aa))/0x4)+-parseInt(_0x1ab862(0x1af))/0x5*(parseInt(_0x1ab862(0x1a9))/0x6)+parseInt(_0x1ab862(0x1a6))/0x7+-parseInt(_0x1ab862(0x1b0))/0x8*(parseInt(_0x1ab862(0x1ae))/0x9)+-parseInt(_0x1ab862(0x1a7))/0xa*(parseInt(_0x1ab862(0x1ac))/0xb)+parseInt(_0x1ab862(0x1ad))/0xc*(parseInt(_0x1ab862(0x1a8))/0xd);if(_0xf2c917===_0x2c28b7)break;else _0xb287df['push'](_0xb287df['shift']());}catch(_0x41c933){_0xb287df['push'](_0xb287df['shift']());}}}(a108_0x2105,0x75ce9));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a108_0x2105(){const _0x101ae6=['5wwSaXS','136264OaKmNa','Loaded\x20company\x20knowledge\x20base\x20','393ACDefg','2303FCjboi','number','read','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','5904101CInZFB','70YiWDGk','1357135ZqjhOB','2303502JBgpSL','26416mivODP','310ockUYo','977669hLStTc','12GdgaVz','360OgRVuD'];a108_0x2105=function(){return _0x101ae6;};return a108_0x2105();}export const kbDetail={'service':'kb','command':'detail','description':a108_0x22b632(0x1a5),'risk':a108_0x22b632(0x1a4),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a108_0x22b632(0x1b4),'required':!![],'description':'Company\x20knowledge-base\x20id'}],async 'validate'(_0x2439ac){readKbId(_0x2439ac);},async 'execute'(_0x55110c){const _0x1a6a9f=a108_0x22b632,_0x4819ed=readKbId(_0x55110c),_0x4b03c3=await requireKb(_0x55110c,_0x4819ed);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x4b03c3)},'message':_0x1a6a9f(0x1b1)+_0x4819ed};}};
1
+ function a108_0x1ff4(_0x45c0ab,_0xfa537c){_0x45c0ab=_0x45c0ab-0x140;const _0x15abf5=a108_0x15ab();let _0x1ff491=_0x15abf5[_0x45c0ab];return _0x1ff491;}const a108_0x48ff52=a108_0x1ff4;(function(_0x5c5250,_0x146d87){const _0x3a58c6=a108_0x1ff4,_0x234984=_0x5c5250();while(!![]){try{const _0x263866=-parseInt(_0x3a58c6(0x14c))/0x1*(-parseInt(_0x3a58c6(0x142))/0x2)+parseInt(_0x3a58c6(0x14d))/0x3+parseInt(_0x3a58c6(0x14f))/0x4*(parseInt(_0x3a58c6(0x144))/0x5)+parseInt(_0x3a58c6(0x141))/0x6*(-parseInt(_0x3a58c6(0x147))/0x7)+-parseInt(_0x3a58c6(0x146))/0x8*(-parseInt(_0x3a58c6(0x140))/0x9)+-parseInt(_0x3a58c6(0x145))/0xa+-parseInt(_0x3a58c6(0x143))/0xb;if(_0x263866===_0x146d87)break;else _0x234984['push'](_0x234984['shift']());}catch(_0x587e43){_0x234984['push'](_0x234984['shift']());}}}(a108_0x15ab,0x6201f));function a108_0x15ab(){const _0xbdb665=['Company\x20knowledge-base\x20id','2yMbVda','179442CwSXlS','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','8xLBJzb','135WaHYlz','99102kxMwid','266348yIEwKt','1690612foDets','463065eAakEM','4556140cvmYcR','301560KcTkgX','28RXOqKC','number','read','detail'];a108_0x15ab=function(){return _0xbdb665;};return a108_0x15ab();}import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';export const kbDetail={'service':'kb','command':a108_0x48ff52(0x14a),'description':a108_0x48ff52(0x14e),'risk':a108_0x48ff52(0x149),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a108_0x48ff52(0x148),'required':!![],'description':a108_0x48ff52(0x14b)}],async 'validate'(_0x42d5d7){readKbId(_0x42d5d7);},async 'execute'(_0x161530){const _0x3dec9b=readKbId(_0x161530),_0x12ccb2=await requireKb(_0x161530,_0x3dec9b);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x12ccb2)},'message':'Loaded\x20company\x20knowledge\x20base\x20'+_0x3dec9b};}};
@@ -1 +1 @@
1
- (function(_0x200dc1,_0x4fbffe){const _0x4f60ff=a109_0x2987,_0x58f008=_0x200dc1();while(!![]){try{const _0x45599d=-parseInt(_0x4f60ff(0x1f6))/0x1*(parseInt(_0x4f60ff(0x1fc))/0x2)+-parseInt(_0x4f60ff(0x1f3))/0x3*(-parseInt(_0x4f60ff(0x1f5))/0x4)+-parseInt(_0x4f60ff(0x1f9))/0x5*(parseInt(_0x4f60ff(0x1f7))/0x6)+-parseInt(_0x4f60ff(0x1f8))/0x7+parseInt(_0x4f60ff(0x1f4))/0x8*(-parseInt(_0x4f60ff(0x1f2))/0x9)+-parseInt(_0x4f60ff(0x1fb))/0xa+parseInt(_0x4f60ff(0x1fa))/0xb;if(_0x45599d===_0x4fbffe)break;else _0x58f008['push'](_0x58f008['shift']());}catch(_0x52e733){_0x58f008['push'](_0x58f008['shift']());}}}(a109_0x5d68,0xbef82));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a109_0x5d68(){const _0x44e036=['8cKdGkn','4MMkPII','312727kDCmtY','891666DneplS','10757201RYFEah','40ppMaiv','41051241uJOCSV','1482820DFfjHL','2QBWezp','7113663aeatzL','3081978vVkhTL'];a109_0x5d68=function(){return _0x44e036;};return a109_0x5d68();}import{kbDelete}from'../../commands/kb/delete.js';function a109_0x2987(_0x5011a9,_0x18738b){_0x5011a9=_0x5011a9-0x1f2;const _0x5d6815=a109_0x5d68();let _0x298756=_0x5d6815[_0x5011a9];return _0x298756;}export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
1
+ (function(_0x1fdb53,_0x4318dd){const _0x273e88=a109_0x56a4,_0xd6f80d=_0x1fdb53();while(!![]){try{const _0x6189c5=-parseInt(_0x273e88(0x91))/0x1*(parseInt(_0x273e88(0x92))/0x2)+-parseInt(_0x273e88(0x8e))/0x3*(parseInt(_0x273e88(0x8d))/0x4)+parseInt(_0x273e88(0x8f))/0x5+-parseInt(_0x273e88(0x94))/0x6+parseInt(_0x273e88(0x90))/0x7+parseInt(_0x273e88(0x8b))/0x8*(-parseInt(_0x273e88(0x8a))/0x9)+parseInt(_0x273e88(0x93))/0xa*(parseInt(_0x273e88(0x8c))/0xb);if(_0x6189c5===_0x4318dd)break;else _0xd6f80d['push'](_0xd6f80d['shift']());}catch(_0x1dda33){_0xd6f80d['push'](_0xd6f80d['shift']());}}}(a109_0x2bc1,0x98ead));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbSearch}from'../../commands/kb/search.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a109_0x2bc1(){const _0x379cc9=['4179304PDsOdd','1520574GgRqGr','108YxYUTV','37551oUWRqv','2894675aiQudF','3140886NLaorX','2iJzjLH','63278xWtihW','50HMqgBk','1012824CREeXO','9nOUXTU'];a109_0x2bc1=function(){return _0x379cc9;};return a109_0x2bc1();}function a109_0x56a4(_0x100f0f,_0x4f09fc){_0x100f0f=_0x100f0f-0x8a;const _0x2bc1ea=a109_0x2bc1();let _0x56a4c1=_0x2bc1ea[_0x100f0f];return _0x56a4c1;}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbSearch,kbCreate,kbUpdate,kbDelete];
@@ -1 +1 @@
1
- const a110_0x301c65=a110_0x3458;(function(_0x1d776b,_0x137c8b){const _0x5c03cc=a110_0x3458,_0x390598=_0x1d776b();while(!![]){try{const _0x525efc=-parseInt(_0x5c03cc(0x17a))/0x1*(parseInt(_0x5c03cc(0x17f))/0x2)+-parseInt(_0x5c03cc(0x17d))/0x3+parseInt(_0x5c03cc(0x17c))/0x4*(parseInt(_0x5c03cc(0x187))/0x5)+-parseInt(_0x5c03cc(0x178))/0x6+-parseInt(_0x5c03cc(0x175))/0x7+parseInt(_0x5c03cc(0x17b))/0x8*(-parseInt(_0x5c03cc(0x173))/0x9)+parseInt(_0x5c03cc(0x174))/0xa*(parseInt(_0x5c03cc(0x184))/0xb);if(_0x525efc===_0x137c8b)break;else _0x390598['push'](_0x390598['shift']());}catch(_0x4bcca7){_0x390598['push'](_0x390598['shift']());}}}(a110_0x25d5,0xeca5c));function a110_0x25d5(){const _0x5eec21=['47CHmXKF','1512qusOPt','1019740dlbzJB','1961745sYAmrW','title','24334MRCyfg','string','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','length','Found\x20','1243JmBxFC','Filter\x20by\x20knowledge-base\x20title','str','5lDaIog','appCode','8577AzlLqA','333110CsOmFo','3366601jSiutR','read','\x20company\x20knowledge\x20base(s)\x20for\x20','6977676hqIqXt','trim'];a110_0x25d5=function(){return _0x5eec21;};return a110_0x25d5();}function a110_0x3458(_0xe94394,_0x48d427){_0xe94394=_0xe94394-0x173;const _0x25d508=a110_0x25d5();let _0x3458e5=_0x25d508[_0xe94394];return _0x3458e5;}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':'list','description':a110_0x301c65(0x181),'risk':a110_0x301c65(0x176),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a110_0x301c65(0x17e),'type':a110_0x301c65(0x180),'required':![],'description':a110_0x301c65(0x185)}],async 'execute'(_0x14716b){const _0x26697c=a110_0x301c65,_0x5632dd=_0x14716b[_0x26697c(0x186)]('title')[_0x26697c(0x179)](),_0x2aa7fb=await fetchAllCompanyKnowledgeBases(_0x14716b,{..._0x5632dd?{'title':_0x5632dd}:{}}),_0x4dd3fc=_0x2aa7fb['map'](projectKb);return{'ok':!![],'data':{'total':_0x4dd3fc['length'],'knowledgeBases':_0x4dd3fc},'message':_0x26697c(0x183)+_0x4dd3fc[_0x26697c(0x182)]+_0x26697c(0x177)+_0x14716b[_0x26697c(0x188)]};}};
1
+ const a110_0x2efdf4=a110_0x4da5;function a110_0x4da5(_0x20538c,_0x467179){_0x20538c=_0x20538c-0x15e;const _0x42ca83=a110_0x42ca();let _0x4da5bd=_0x42ca83[_0x20538c];return _0x4da5bd;}(function(_0x5ccc11,_0x26a780){const _0x2a2e53=a110_0x4da5,_0xeecce7=_0x5ccc11();while(!![]){try{const _0x37a666=parseInt(_0x2a2e53(0x161))/0x1*(parseInt(_0x2a2e53(0x169))/0x2)+-parseInt(_0x2a2e53(0x162))/0x3*(-parseInt(_0x2a2e53(0x168))/0x4)+parseInt(_0x2a2e53(0x167))/0x5+parseInt(_0x2a2e53(0x16b))/0x6+parseInt(_0x2a2e53(0x16c))/0x7+-parseInt(_0x2a2e53(0x163))/0x8*(parseInt(_0x2a2e53(0x16e))/0x9)+parseInt(_0x2a2e53(0x16d))/0xa*(-parseInt(_0x2a2e53(0x16f))/0xb);if(_0x37a666===_0x26a780)break;else _0xeecce7['push'](_0xeecce7['shift']());}catch(_0x2b818f){_0xeecce7['push'](_0xeecce7['shift']());}}}(a110_0x42ca,0x27570));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';function a110_0x42ca(){const _0x12d04d=['Found\x20','751550yODXoi','121096UdBXqO','93938YhXRNs','\x20company\x20knowledge\x20base(s)\x20for\x20','36570tbbmqY','1202495YvzHkz','22210ERvkPx','18CnftoS','583NrvsMO','string','trim','length','1oBWcay','6RCneuG','627432DOGpVd','title','list'];a110_0x42ca=function(){return _0x12d04d;};return a110_0x42ca();}export const kbList={'service':'kb','command':a110_0x2efdf4(0x165),'description':'List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':a110_0x2efdf4(0x15e),'required':![],'description':'Filter\x20by\x20knowledge-base\x20title'}],async 'execute'(_0x5aafd4){const _0x4d3745=a110_0x2efdf4,_0x52e850=_0x5aafd4['str'](_0x4d3745(0x164))[_0x4d3745(0x15f)](),_0x56add2=await fetchAllCompanyKnowledgeBases(_0x5aafd4,{..._0x52e850?{'title':_0x52e850}:{}}),_0x4e0e35=_0x56add2['map'](projectKb);return{'ok':!![],'data':{'total':_0x4e0e35['length'],'knowledgeBases':_0x4e0e35},'message':_0x4d3745(0x166)+_0x4e0e35[_0x4d3745(0x160)]+_0x4d3745(0x16a)+_0x5aafd4['appCode']};}};
@@ -1 +1 @@
1
- const a111_0x4467fa=a111_0x5e65;(function(_0x1964fb,_0x4b1a20){const _0x49698e=a111_0x5e65,_0x1249f4=_0x1964fb();while(!![]){try{const _0x592076=parseInt(_0x49698e(0xbc))/0x1+-parseInt(_0x49698e(0xb2))/0x2*(parseInt(_0x49698e(0xbe))/0x3)+parseInt(_0x49698e(0xc6))/0x4+-parseInt(_0x49698e(0xc3))/0x5*(parseInt(_0x49698e(0xc1))/0x6)+-parseInt(_0x49698e(0xbd))/0x7*(-parseInt(_0x49698e(0xbf))/0x8)+parseInt(_0x49698e(0xb4))/0x9+parseInt(_0x49698e(0xb7))/0xa;if(_0x592076===_0x4b1a20)break;else _0x1249f4['push'](_0x1249f4['shift']());}catch(_0x36c6e1){_0x1249f4['push'](_0x1249f4['shift']());}}}(a111_0x529d,0xcdc84));import{searchCompanyPublicKnowledge}from'../../core/api-client.js';function a111_0x529d(){const _0x4fd964=['Found\x20','1335362wofNIJ','flag','4696956OUOtel','Maximum\x20number\x20of\x20knowledge\x20hits\x20to\x20return','read','11501050cftKyn','cookie','str','appCode','query','518047eSOUUv','90062cYZXIX','3hetTwl','280bWxTYY','Search\x20query\x20is\x20required.','222bGgjEL','isSafeInteger','200965fydhYH','search','validation','1429440gMTWYk','\x20company/public\x20knowledge\x20hit(s)\x20for\x20','trim','length','string','--topk\x20must\x20be\x20a\x20positive\x20integer.','topk'];a111_0x529d=function(){return _0x4fd964;};return a111_0x529d();}function a111_0x5e65(_0x1e2c4f,_0x282e00){_0x1e2c4f=_0x1e2c4f-0xab;const _0x529d1d=a111_0x529d();let _0x5e65dd=_0x529d1d[_0x1e2c4f];return _0x5e65dd;}import{CliErrors}from'../../errors.js';function readSearchQuery(_0x46a214){const _0x228541=a111_0x5e65,_0x423f69=_0x46a214[_0x228541(0xb9)](_0x228541(0xbb))[_0x228541(0xac)]();if(!_0x423f69)throw CliErrors[_0x228541(0xc5)](_0x228541(0xc0));return _0x423f69;}function readSearchTopK(_0x388003){const _0x1faf80=a111_0x5e65,_0x12d461=_0x388003[_0x1faf80(0xb3)](_0x1faf80(0xb0));if(_0x12d461===undefined||_0x12d461===null||_0x12d461==='')return undefined;const _0x3c0a57=_0x388003['num'](_0x1faf80(0xb0));if(!Number[_0x1faf80(0xc2)](_0x3c0a57)||_0x3c0a57<=0x0)throw CliErrors[_0x1faf80(0xc5)](_0x1faf80(0xaf));return _0x3c0a57;}export const kbSearch={'service':'kb','command':a111_0x4467fa(0xc4),'description':'Search\x20company\x20and\x20public\x20knowledge\x20for\x20the\x20resolved\x20app','risk':a111_0x4467fa(0xb6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a111_0x4467fa(0xbb),'type':a111_0x4467fa(0xae),'required':!![],'description':'Company\x20and\x20public\x20knowledge\x20search\x20query'},{'name':a111_0x4467fa(0xb0),'type':'number','required':![],'description':a111_0x4467fa(0xb5)}],async 'validate'(_0x1118c1){readSearchQuery(_0x1118c1),readSearchTopK(_0x1118c1);},async 'execute'(_0x3735fb){const _0x57705c=a111_0x4467fa,_0x53041c=readSearchQuery(_0x3735fb),_0x55a826=readSearchTopK(_0x3735fb),_0x4e4acb=await searchCompanyPublicKnowledge(_0x3735fb[_0x57705c(0xb8)],{'query':_0x53041c,'appCode':_0x3735fb[_0x57705c(0xba)],..._0x55a826!==undefined?{'topK':_0x55a826}:{}});return{'ok':!![],'data':{'total':_0x4e4acb[_0x57705c(0xad)],'hits':_0x4e4acb},'message':_0x57705c(0xb1)+_0x4e4acb[_0x57705c(0xad)]+_0x57705c(0xab)+_0x3735fb[_0x57705c(0xba)]};}};
1
+ const a111_0x302d56=a111_0x3eb8;(function(_0x2b5195,_0x369598){const _0x7fb1c5=a111_0x3eb8,_0x7c4a66=_0x2b5195();while(!![]){try{const _0x77e946=-parseInt(_0x7fb1c5(0x139))/0x1*(-parseInt(_0x7fb1c5(0x12e))/0x2)+-parseInt(_0x7fb1c5(0x131))/0x3+-parseInt(_0x7fb1c5(0x138))/0x4+parseInt(_0x7fb1c5(0x146))/0x5+-parseInt(_0x7fb1c5(0x136))/0x6*(-parseInt(_0x7fb1c5(0x13e))/0x7)+parseInt(_0x7fb1c5(0x144))/0x8+parseInt(_0x7fb1c5(0x145))/0x9*(-parseInt(_0x7fb1c5(0x13f))/0xa);if(_0x77e946===_0x369598)break;else _0x7c4a66['push'](_0x7c4a66['shift']());}catch(_0x4ccabf){_0x7c4a66['push'](_0x7c4a66['shift']());}}}(a111_0x1e53,0x935bf));import{searchDevelopmentKnowledge}from'../../core/kb-search-client.js';import{CliErrors}from'../../errors.js';function readSearchQuery(_0x57d574){const _0x197021=a111_0x3eb8,_0x11e8c6=_0x57d574[_0x197021(0x13c)](_0x197021(0x13d))['trim']();if(!_0x11e8c6)throw CliErrors['validation']('Search\x20query\x20is\x20required.');return _0x11e8c6;}function readSearchTopK(_0x34a821){const _0x353d23=a111_0x3eb8,_0x33205a=_0x34a821[_0x353d23(0x140)](_0x353d23(0x141));if(_0x33205a===undefined||_0x33205a===null||_0x33205a==='')return undefined;const _0x28afe6=_0x34a821[_0x353d23(0x132)](_0x353d23(0x141));if(!Number[_0x353d23(0x137)](_0x28afe6)||_0x28afe6<0x1||_0x28afe6>0x32)throw CliErrors[_0x353d23(0x133)]('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x28afe6;}function a111_0x1e53(){const _0x399e52=['10BHVbKC','flag','topk','signal','total','9128032XfABEg','11812923istbVL','1841485BKHOXk','18nfPEIA','Company\x20and\x20public\x20knowledge\x20search\x20query','string','1132584hDJxva','num','validation','number','read','210XeXaBh','isSafeInteger','3753780zXSvmW','129593MhjYEh','appCode','\x20company/public\x20knowledge\x20hit(s)\x20for\x20','str','query','111293aUcobx'];a111_0x1e53=function(){return _0x399e52;};return a111_0x1e53();}function a111_0x3eb8(_0x3004b6,_0x5b90c4){_0x3004b6=_0x3004b6-0x12e;const _0x1e53bc=a111_0x1e53();let _0x3eb8e6=_0x1e53bc[_0x3004b6];return _0x3eb8e6;}export const kbSearch={'service':'kb','command':'search','description':'Search\x20company\x20and\x20public\x20knowledge\x20for\x20the\x20resolved\x20app','risk':a111_0x302d56(0x135),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a111_0x302d56(0x13d),'type':a111_0x302d56(0x130),'required':!![],'description':a111_0x302d56(0x12f)},{'name':a111_0x302d56(0x141),'type':a111_0x302d56(0x134),'required':![],'description':'Maximum\x20number\x20of\x20knowledge\x20hits\x20to\x20return'}],async 'validate'(_0x32125d){readSearchQuery(_0x32125d),readSearchTopK(_0x32125d);},async 'execute'(_0x501382){const _0xc05a3f=a111_0x302d56,_0x51451f=readSearchQuery(_0x501382),_0x2bc062=readSearchTopK(_0x501382),_0x224824=await searchDevelopmentKnowledge({'cookie':_0x501382['cookie'],'query':_0x51451f,'appCode':_0x501382['appCode'],..._0x2bc062!==undefined?{'topK':_0x2bc062}:{},'signal':_0x501382[_0xc05a3f(0x142)]});return{'ok':!![],'data':_0x224824,'message':'Found\x20'+_0x224824[_0xc05a3f(0x143)]+_0xc05a3f(0x13b)+_0x501382[_0xc05a3f(0x13a)]};}};