@lovrabet/rabetbase-cli 2.4.7 → 2.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +13 -3
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +7 -0
  6. package/lib/api/generate-sdk-config-file.js +1 -0
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.d.ts +2 -5
  27. package/lib/commands/app/shared.js +1 -1
  28. package/lib/commands/app-config/delete.js +1 -1
  29. package/lib/commands/app-config/get.js +1 -1
  30. package/lib/commands/app-config/index.js +1 -1
  31. package/lib/commands/app-config/list.js +1 -1
  32. package/lib/commands/app-config/set.js +1 -1
  33. package/lib/commands/app-config/shared.js +1 -1
  34. package/lib/commands/auth/index.js +1 -1
  35. package/lib/commands/bff/create.js +1 -1
  36. package/lib/commands/bff/delete.js +1 -1
  37. package/lib/commands/bff/detail.js +1 -1
  38. package/lib/commands/bff/index.js +1 -1
  39. package/lib/commands/bff/list.js +1 -1
  40. package/lib/commands/bff/pull.js +1 -1
  41. package/lib/commands/bff/push.js +1 -1
  42. package/lib/commands/bff/status.js +1 -1
  43. package/lib/commands/cli-skill/index.js +1 -1
  44. package/lib/commands/cli-update.js +1 -1
  45. package/lib/commands/codegen/index.js +1 -1
  46. package/lib/commands/codegen/sdk.js +1 -1
  47. package/lib/commands/codegen/sql.js +1 -1
  48. package/lib/commands/common/app-registry.js +1 -1
  49. package/lib/commands/common/app-selector.js +1 -1
  50. package/lib/commands/common/async-task.js +1 -1
  51. package/lib/commands/common/dry-run.js +1 -1
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.d.ts +5 -0
  56. package/lib/commands/config/delete.js +1 -0
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.d.ts +12 -0
  60. package/lib/commands/config/init.js +1 -0
  61. package/lib/commands/config/list.js +1 -1
  62. package/lib/commands/config/set.js +1 -1
  63. package/lib/commands/config/shared.js +1 -1
  64. package/lib/commands/dataset/business-group-update.js +1 -1
  65. package/lib/commands/dataset/business-groups.js +1 -1
  66. package/lib/commands/dataset/capability.js +1 -1
  67. package/lib/commands/dataset/delete.js +1 -1
  68. package/lib/commands/dataset/detail.js +1 -1
  69. package/lib/commands/dataset/extend-update.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/doctor.js +1 -1
  101. package/lib/commands/file/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/search.js +1 -1
  112. package/lib/commands/kb/shared.js +1 -1
  113. package/lib/commands/kb/update.js +1 -1
  114. package/lib/commands/logs/index.js +1 -1
  115. package/lib/commands/menu/asset-update.js +1 -1
  116. package/lib/commands/menu/delete.js +1 -1
  117. package/lib/commands/menu/external-link-create.js +1 -1
  118. package/lib/commands/menu/external-link-update.js +1 -1
  119. package/lib/commands/menu/group-create.js +1 -1
  120. package/lib/commands/menu/group-update.js +1 -1
  121. package/lib/commands/menu/index.js +1 -1
  122. package/lib/commands/menu/list.js +1 -1
  123. package/lib/commands/menu/move.js +1 -1
  124. package/lib/commands/menu/regroup-start.js +1 -1
  125. package/lib/commands/menu/rename.js +1 -1
  126. package/lib/commands/menu/shared/compare-table.js +1 -1
  127. package/lib/commands/menu/shared/delete-plan.js +1 -1
  128. package/lib/commands/menu/shared/facts.js +1 -1
  129. package/lib/commands/menu/shared/index.js +1 -1
  130. package/lib/commands/menu/shared/inquirer.js +1 -1
  131. package/lib/commands/menu/shared/local-pages.js +1 -1
  132. package/lib/commands/menu/shared/logic.js +1 -1
  133. package/lib/commands/menu/shared/mutations.js +1 -1
  134. package/lib/commands/menu/shared/service.js +1 -1
  135. package/lib/commands/menu/shared/sync-core.js +1 -1
  136. package/lib/commands/menu/shared/update-core.js +1 -1
  137. package/lib/commands/menu/shared/valid-url.js +1 -1
  138. package/lib/commands/menu/sync.js +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -1
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.js +1 -1
  148. package/lib/commands/page/custom/detail.js +1 -1
  149. package/lib/commands/page/custom/list.js +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -1
  151. package/lib/commands/page/custom/shared.js +1 -1
  152. package/lib/commands/page/custom/syntax.js +1 -1
  153. package/lib/commands/page/custom/template.js +1 -1
  154. package/lib/commands/page/custom/update.js +1 -1
  155. package/lib/commands/page/data-list-status.js +1 -1
  156. package/lib/commands/page/generate-start.js +1 -1
  157. package/lib/commands/page/generate-status.js +1 -1
  158. package/lib/commands/page/index.js +1 -1
  159. package/lib/commands/page/pull.js +1 -1
  160. package/lib/commands/page/push.js +1 -1
  161. package/lib/commands/page/relation-audit.js +1 -1
  162. package/lib/commands/page/restore.js +1 -1
  163. package/lib/commands/page/shared.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  166. package/lib/commands/project/create/format-elapsed.js +1 -1
  167. package/lib/commands/project/create/main.d.ts +1 -0
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.d.ts +6 -2
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.d.ts +2 -2
  181. package/lib/commands/registry.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.d.ts +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/domain-config.d.ts +10 -0
  216. package/lib/config/domain-config.js +1 -0
  217. package/lib/config/schema.d.ts +3 -1
  218. package/lib/config/schema.js +1 -1
  219. package/lib/constant/cdn.js +1 -1
  220. package/lib/constant/cli.js +1 -1
  221. package/lib/constant/defaults.js +1 -1
  222. package/lib/constant/domain.d.ts +23 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/region.d.ts +9 -0
  228. package/lib/constant/region.js +1 -0
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/context/app-resolver.js +1 -1
  231. package/lib/context/auth-resolver.js +1 -1
  232. package/lib/context/config-loader.d.ts +4 -6
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.d.ts +2 -2
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +2 -0
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/page/file-system.js +1 -1
  246. package/lib/core/page/hash.js +1 -1
  247. package/lib/core/page/lock.js +1 -1
  248. package/lib/core/sql-index-auditor.js +1 -1
  249. package/lib/core/sql-sync/config.js +1 -1
  250. package/lib/core/sql-sync/file-system.js +1 -1
  251. package/lib/core/sql-sync/hash.js +1 -1
  252. package/lib/core/sql-sync/lock.js +1 -1
  253. package/lib/core/sql-sync/utils.js +1 -1
  254. package/lib/core/sql-validator.js +1 -1
  255. package/lib/errors.d.ts +11 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.d.ts +2 -2
  262. package/lib/framework/help.js +1 -1
  263. package/lib/framework/index.js +1 -1
  264. package/lib/framework/output.js +1 -1
  265. package/lib/framework/response.js +1 -1
  266. package/lib/framework/runner-alias.js +1 -1
  267. package/lib/framework/runner.js +1 -1
  268. package/lib/framework/schema-export.js +1 -1
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/help.js +1 -1
  273. package/lib/postinstall.js +1 -1
  274. package/lib/runtime/confirmation.js +1 -1
  275. package/lib/runtime/event.js +1 -1
  276. package/lib/runtime/index.js +1 -1
  277. package/lib/runtime/queue.js +1 -1
  278. package/lib/runtime/resolve.js +1 -1
  279. package/lib/skills/builtin-skill.js +1 -1
  280. package/lib/skills/main.js +1 -1
  281. package/lib/skills/npx-skills-add.js +1 -1
  282. package/lib/skills/skill-presence.js +1 -1
  283. package/lib/telemetry/cli-command-trace.js +1 -1
  284. package/lib/telemetry/cli-help-trace.js +1 -1
  285. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  286. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  287. package/lib/telemetry/send-cli-trace-log.js +1 -1
  288. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  289. package/lib/types/index.d.ts +28 -0
  290. package/lib/utils/ai_config.d.ts +1 -2
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -3
  313. package/skills/rabetbase/SKILL.md +33 -28
  314. package/skills/rabetbase/guides/backend-function.md +41 -12
  315. package/skills/rabetbase/guides/bff-creation-workflow.md +6 -4
  316. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  317. package/skills/rabetbase/guides/data-api-guidelines.md +8 -8
  318. package/skills/rabetbase/guides/database-connection-workflow.md +8 -16
  319. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +1 -6
  320. package/skills/rabetbase/guides/sdk-client-generation.md +146 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  322. package/skills/rabetbase/guides/troubleshooting.md +1 -1
  323. package/skills/rabetbase/guides/typescript-sdk.md +46 -10
  324. package/skills/rabetbase/references/rabetbase-api-list.md +4 -4
  325. package/skills/rabetbase/references/rabetbase-api-pull.md +44 -29
  326. package/skills/rabetbase/references/rabetbase-app-list.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-auth-login.md +4 -2
  328. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -1
  329. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -1
  330. package/skills/rabetbase/references/rabetbase-config.md +75 -30
  331. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  332. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  333. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  334. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  335. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  336. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  338. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  339. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  341. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  343. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  344. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  347. package/skills/rabetbase.manifest.json +4 -3
  348. package/templates/README.md +17 -28
  349. package/templates/generate-api/api.ts.tpl +3 -3
  350. package/templates/generate-api/client.ts.tpl +10 -37
  351. package/lib/commands/data/filter.d.ts +0 -7
  352. package/lib/commands/data/filter.js +0 -1
  353. package/lib/commands/data/getOne.d.ts +0 -7
  354. package/lib/commands/data/getOne.js +0 -1
  355. package/lib/commands/data/index.d.ts +0 -8
  356. package/lib/commands/data/index.js +0 -1
  357. package/lib/commands/data/shared.d.ts +0 -33
  358. package/lib/commands/data/shared.js +0 -1
  359. package/lib/commands/init/index.d.ts +0 -11
  360. package/lib/commands/init/index.js +0 -1
  361. package/lib/utils/rules-cdn.d.ts +0 -38
  362. package/lib/utils/rules-cdn.js +0 -1
  363. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  364. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- function a88_0x1537(_0xdce0d7,_0x2a6845){_0xdce0d7=_0xdce0d7-0xb2;const _0x3f314c=a88_0x3f31();let _0x1537b1=_0x3f314c[_0xdce0d7];return _0x1537b1;}const a88_0x39543c=a88_0x1537;(function(_0x2776ac,_0x2860dd){const _0x51d597=a88_0x1537,_0x4db957=_0x2776ac();while(!![]){try{const _0x1f6926=parseInt(_0x51d597(0xb8))/0x1*(-parseInt(_0x51d597(0xba))/0x2)+-parseInt(_0x51d597(0xc5))/0x3*(-parseInt(_0x51d597(0xce))/0x4)+parseInt(_0x51d597(0xc0))/0x5*(parseInt(_0x51d597(0xdf))/0x6)+parseInt(_0x51d597(0xc1))/0x7*(parseInt(_0x51d597(0xe8))/0x8)+parseInt(_0x51d597(0xcb))/0x9*(parseInt(_0x51d597(0xbd))/0xa)+-parseInt(_0x51d597(0xcd))/0xb+-parseInt(_0x51d597(0xc2))/0xc;if(_0x1f6926===_0x2860dd)break;else _0x4db957['push'](_0x4db957['shift']());}catch(_0x4ecad6){_0x4db957['push'](_0x4db957['shift']());}}}(a88_0x3f31,0x35ed4));import{getDbLiveTableDiff,getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a88_0x3f31(){const _0xa85584=['pagesize','4214030yMRmYC','physicalTableCount','read','5pZfqfH','7dAccxn','3858108HeJOTt','summary','\x20row(s).','927UdAdzA','view','totalCount','\x20(db\x20link\x20','bool','page','9wxQrVt','size','3916429cZjqvK','1436GLZUoW','Page\x20index\x20(1-based)','number','DELETED_TABLE','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','diffType','addedColumns','changed-only','fieldDiff','str','filter','\x20of\x20','map','tableList','all','tableName','datasetTableCount','1355370IfLVgx','NEW_TABLE','changed','length','total','diff\x20reads\x20changed\x20tables\x20from\x20the\x20server-managed\x20result;\x20all\x20reads\x20every\x20table\x20from\x20live\x20pagination','table','num','fromEntries','1795056VRCGaF','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','set','Page\x20size','diff','appCode','ALREADY_ANALYZED','1NooeAo','Incomplete\x20db\x20diff\x20pagination:\x20collected\x20','168358iiPmaA','boolean'];a88_0x3f31=function(){return _0xa85584;};return a88_0x3f31();}const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a88_0x39543c(0xe0),'MODIFIED_TABLE',a88_0x39543c(0xd1),a88_0x39543c(0xb7)];export const dbDiff={'service':'db','command':'diff','description':a88_0x39543c(0xd2),'risk':a88_0x39543c(0xbf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x39543c(0xc6),'type':'string','enum':[a88_0x39543c(0xb5),a88_0x39543c(0xdc)],'default':a88_0x39543c(0xb5),'description':a88_0x39543c(0xe4)},{'name':a88_0x39543c(0xe5),'type':'string','description':a88_0x39543c(0xb2)},{'name':a88_0x39543c(0xca),'type':'number','description':a88_0x39543c(0xcf),'default':0x1},{'name':a88_0x39543c(0xbc),'type':a88_0x39543c(0xd0),'description':a88_0x39543c(0xb4),'default':0x14},{'name':'all','type':'boolean','description':'Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)'},{'name':a88_0x39543c(0xd5),'type':a88_0x39543c(0xbb),'description':'Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables'}],async 'execute'(_0x4e5a85){const _0xa76b4=a88_0x39543c,_0x244f10=_0x4e5a85['num']('id'),_0x5ba0db=_0x4e5a85['str'](_0xa76b4(0xc6))||'diff',_0x172f55=_0x4e5a85[_0xa76b4(0xc9)](_0xa76b4(0xdc)),_0x1ec2b2=_0x4e5a85['bool'](_0xa76b4(0xd5)),_0xf8d15c=_0x172f55?0x1:_0x4e5a85[_0xa76b4(0xe6)]('page',0x1)||0x1,_0x389e11=_0x172f55?ALL_PAGE_SIZE:_0x4e5a85[_0xa76b4(0xe6)](_0xa76b4(0xbc),0x14)||0x14,_0x1c4924=_0x4e5a85[_0xa76b4(0xd7)](_0xa76b4(0xe5))||undefined,_0x58358a=_0x5ba0db===_0xa76b4(0xdc)?getDbLiveTableDiff:getDbTableDiff,_0x3c078f=_0x172f55?await getAllDbTableDiff(_0x58358a,_0x4e5a85[_0xa76b4(0xb6)],_0x244f10,_0x1c4924):await _0x58358a(_0x4e5a85[_0xa76b4(0xb6)],_0x244f10,{'pageIndex':_0xf8d15c,'pageSize':_0x389e11,'tableName':_0x1c4924}),_0x583c92=_0x3c078f['tableList'],_0x29dd69=_0x1ec2b2?_0x583c92[_0xa76b4(0xd8)](_0x1c128e=>_0x1c128e['diffType']!==_0xa76b4(0xb7)):_0x583c92,_0x1855ab=Object[_0xa76b4(0xe7)](DIFF_TYPES['map'](_0xcc54b4=>[_0xcc54b4,_0x583c92[_0xa76b4(0xd8)](_0x5cf05e=>_0x5cf05e[_0xa76b4(0xd3)]===_0xcc54b4)[_0xa76b4(0xe2)]])),_0x2e210f=_0x583c92[_0xa76b4(0xd8)](_0x482b8f=>_0x482b8f[_0xa76b4(0xd3)]===_0xa76b4(0xe0)||_0x482b8f[_0xa76b4(0xd3)]==='MODIFIED_TABLE')[_0xa76b4(0xda)](_0x5d177c=>_0x5d177c[_0xa76b4(0xdd)]),_0x16e8ce=_0x583c92['filter'](_0x4cad21=>_0x4cad21[_0xa76b4(0xd3)]===_0xa76b4(0xd1))[_0xa76b4(0xda)](_0x5776e5=>_0x5776e5['tableName']),_0x46e50a=_0x583c92[_0xa76b4(0xd8)](_0x53e1ba=>_0x53e1ba[_0xa76b4(0xd3)]==='MODIFIED_TABLE')[_0xa76b4(0xda)](_0x4d1f99=>({'tableName':_0x4d1f99[_0xa76b4(0xdd)],'addedColumns':_0x4d1f99[_0xa76b4(0xd6)]?.[_0xa76b4(0xd4)]??[],'deletedColumns':_0x4d1f99[_0xa76b4(0xd6)]?.['deletedColumns']??[],'modifiedColumns':_0x4d1f99['fieldDiff']?.['modifiedColumns']??[]}));return{'ok':!![],'data':{'dbLinkId':_0x244f10,'view':_0x5ba0db,'page':_0xf8d15c,'pageSize':_0x389e11,'totalCount':_0x3c078f['totalCount'],...typeof _0x3c078f['physicalTableCount']===_0xa76b4(0xd0)?{'physicalTableCount':_0x3c078f[_0xa76b4(0xbe)]}:{},...typeof _0x3c078f['datasetTableCount']==='number'?{'datasetTableCount':_0x3c078f[_0xa76b4(0xde)]}:{},..._0x3c078f[_0xa76b4(0xc3)]?{'summary':_0x3c078f['summary']}:{},'summaryByType':_0x1855ab,'toAnalyzeTables':_0x2e210f,'deletedTables':_0x16e8ce,'modifiedFieldDiffs':_0x46e50a,'tables':_0x29dd69,'tableList':_0x29dd69},'message':_0x29dd69['length']+'\x20'+(_0x5ba0db===_0xa76b4(0xb5)?_0xa76b4(0xe1):_0xa76b4(0xe3))+'\x20table\x20row(s),\x20total\x20'+_0x3c078f[_0xa76b4(0xc7)]+_0xa76b4(0xc8)+_0x244f10+')'};}};async function getAllDbTableDiff(_0x4c9e4b,_0x16756d,_0x710a28,_0x42e13c){const _0x1deb1b=a88_0x39543c,_0x2edcf1=new Map();let _0x59f926=0x1,_0x590d54=null;while(!![]){_0x590d54=await _0x4c9e4b(_0x16756d,_0x710a28,{'pageIndex':_0x59f926,'pageSize':ALL_PAGE_SIZE,'tableName':_0x42e13c});const _0x1ad10a=_0x2edcf1[_0x1deb1b(0xcc)];for(const _0x41b177 of _0x590d54[_0x1deb1b(0xdb)]){_0x2edcf1[_0x1deb1b(0xb3)](_0x41b177[_0x1deb1b(0xdd)],_0x41b177);}if(_0x2edcf1[_0x1deb1b(0xcc)]>=_0x590d54[_0x1deb1b(0xc7)])break;if(_0x590d54['tableList'][_0x1deb1b(0xe2)]===0x0||_0x2edcf1['size']===_0x1ad10a)throw CliErrors['validation'](_0x1deb1b(0xb9)+_0x2edcf1[_0x1deb1b(0xcc)]+_0x1deb1b(0xd9)+_0x590d54[_0x1deb1b(0xc7)]+_0x1deb1b(0xc4));_0x59f926+=0x1;}return{'totalCount':_0x590d54?.['totalCount']??0x0,...typeof _0x590d54?.[_0x1deb1b(0xbe)]===_0x1deb1b(0xd0)?{'physicalTableCount':_0x590d54[_0x1deb1b(0xbe)]}:{},...typeof _0x590d54?.[_0x1deb1b(0xde)]===_0x1deb1b(0xd0)?{'datasetTableCount':_0x590d54[_0x1deb1b(0xde)]}:{},..._0x590d54?.[_0x1deb1b(0xc3)]?{'summary':_0x590d54['summary']}:{},'tableList':[..._0x2edcf1['values']()]};}
1
+ const a87_0x4ad1c4=a87_0x5067;(function(_0x401b72,_0x158bb6){const _0x18497c=a87_0x5067,_0x32115c=_0x401b72();while(!![]){try{const _0x3ef5e3=parseInt(_0x18497c(0x1db))/0x1+parseInt(_0x18497c(0x1ee))/0x2*(parseInt(_0x18497c(0x1ef))/0x3)+-parseInt(_0x18497c(0x205))/0x4*(-parseInt(_0x18497c(0x1ea))/0x5)+parseInt(_0x18497c(0x1d6))/0x6*(parseInt(_0x18497c(0x207))/0x7)+parseInt(_0x18497c(0x1e7))/0x8*(parseInt(_0x18497c(0x1f4))/0x9)+parseInt(_0x18497c(0x1e0))/0xa+-parseInt(_0x18497c(0x1fe))/0xb*(parseInt(_0x18497c(0x1fa))/0xc);if(_0x3ef5e3===_0x158bb6)break;else _0x32115c['push'](_0x32115c['shift']());}catch(_0x2698fd){_0x32115c['push'](_0x32115c['shift']());}}}(a87_0x371e,0xdadf5));import{getDbLiveTableDiff,getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a87_0x371e(){const _0x1e45c8=['number','physicalTableCount','MODIFIED_TABLE','diff','272344xupGFc','view','str','\x20(db\x20link\x20','deletedColumns','8502360jyZggl','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','Incomplete\x20db\x20diff\x20pagination:\x20collected\x20','set','changed','string','num','2167496mPiLsQ','DELETED_TABLE','filter','10qYAEbA','datasetTableCount','changed-only','Page\x20size','1073534jZKUcz','3lyKsAx','\x20of\x20','summary','fieldDiff','values','54LNAdFk','tableList','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','size','appCode','page','12ihNjKH','table','tableName','\x20row(s).','46508726oIgrTE','\x20table\x20row(s),\x20total\x20','diffType','totalCount','diff\x20reads\x20changed\x20tables\x20from\x20the\x20server-managed\x20result;\x20all\x20reads\x20every\x20table\x20from\x20live\x20pagination','modifiedColumns','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','2090372axRkIK','ALREADY_ANALYZED','2780442nElMVU','length','all','NEW_TABLE','boolean','map','Page\x20index\x20(1-based)','12XBshSm'];a87_0x371e=function(){return _0x1e45c8;};return a87_0x371e();}function a87_0x5067(_0x41cc36,_0x212331){_0x41cc36=_0x41cc36-0x1d0;const _0x371e1e=a87_0x371e();let _0x506736=_0x371e1e[_0x41cc36];return _0x506736;}const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a87_0x4ad1c4(0x1d2),a87_0x4ad1c4(0x1d9),a87_0x4ad1c4(0x1e8),a87_0x4ad1c4(0x206)];export const dbDiff={'service':'db','command':a87_0x4ad1c4(0x1da),'description':a87_0x4ad1c4(0x1e1),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a87_0x4ad1c4(0x1dc),'type':a87_0x4ad1c4(0x1e5),'enum':[a87_0x4ad1c4(0x1da),'all'],'default':a87_0x4ad1c4(0x1da),'description':a87_0x4ad1c4(0x202)},{'name':a87_0x4ad1c4(0x1fb),'type':'string','description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a87_0x4ad1c4(0x1f9),'type':a87_0x4ad1c4(0x1d7),'description':a87_0x4ad1c4(0x1d5),'default':0x1},{'name':'pagesize','type':a87_0x4ad1c4(0x1d7),'description':a87_0x4ad1c4(0x1ed),'default':0x14},{'name':a87_0x4ad1c4(0x1d1),'type':a87_0x4ad1c4(0x1d3),'description':a87_0x4ad1c4(0x204)},{'name':a87_0x4ad1c4(0x1ec),'type':'boolean','description':a87_0x4ad1c4(0x1f6)}],async 'execute'(_0x58a13e){const _0x58af63=a87_0x4ad1c4,_0x7c80ce=_0x58a13e[_0x58af63(0x1e6)]('id'),_0x5dd4b4=_0x58a13e[_0x58af63(0x1dd)](_0x58af63(0x1dc))||_0x58af63(0x1da),_0x3a48ef=_0x58a13e['bool'](_0x58af63(0x1d1)),_0x3106ee=_0x58a13e['bool'](_0x58af63(0x1ec)),_0x37946e=_0x3a48ef?0x1:_0x58a13e[_0x58af63(0x1e6)](_0x58af63(0x1f9),0x1)||0x1,_0x3bfdee=_0x3a48ef?ALL_PAGE_SIZE:_0x58a13e[_0x58af63(0x1e6)]('pagesize',0x14)||0x14,_0x12609c=_0x58a13e[_0x58af63(0x1dd)](_0x58af63(0x1fb))||undefined,_0x387b7d=_0x5dd4b4===_0x58af63(0x1d1)?getDbLiveTableDiff:getDbTableDiff,_0x6a2a9b=_0x3a48ef?await getAllDbTableDiff(_0x387b7d,_0x58a13e[_0x58af63(0x1f8)],_0x7c80ce,_0x12609c):await _0x387b7d(_0x58a13e[_0x58af63(0x1f8)],_0x7c80ce,{'pageIndex':_0x37946e,'pageSize':_0x3bfdee,'tableName':_0x12609c}),_0x5f1219=_0x6a2a9b[_0x58af63(0x1f5)],_0x319544=_0x3106ee?_0x5f1219[_0x58af63(0x1e9)](_0x31f580=>_0x31f580['diffType']!==_0x58af63(0x206)):_0x5f1219,_0x463912=Object['fromEntries'](DIFF_TYPES['map'](_0x8521ef=>[_0x8521ef,_0x5f1219[_0x58af63(0x1e9)](_0x1848b4=>_0x1848b4[_0x58af63(0x200)]===_0x8521ef)[_0x58af63(0x1d0)]])),_0x421cc9=_0x5f1219[_0x58af63(0x1e9)](_0x35ebf3=>_0x35ebf3['diffType']===_0x58af63(0x1d2)||_0x35ebf3[_0x58af63(0x200)]===_0x58af63(0x1d9))['map'](_0xf951bb=>_0xf951bb['tableName']),_0x534173=_0x5f1219[_0x58af63(0x1e9)](_0x2c262c=>_0x2c262c[_0x58af63(0x200)]==='DELETED_TABLE')[_0x58af63(0x1d4)](_0xdecaa3=>_0xdecaa3[_0x58af63(0x1fc)]),_0x582221=_0x5f1219['filter'](_0x11ce81=>_0x11ce81[_0x58af63(0x200)]===_0x58af63(0x1d9))[_0x58af63(0x1d4)](_0x40989e=>({'tableName':_0x40989e[_0x58af63(0x1fc)],'addedColumns':_0x40989e[_0x58af63(0x1f2)]?.['addedColumns']??[],'deletedColumns':_0x40989e[_0x58af63(0x1f2)]?.[_0x58af63(0x1df)]??[],'modifiedColumns':_0x40989e['fieldDiff']?.[_0x58af63(0x203)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x7c80ce,'view':_0x5dd4b4,'page':_0x37946e,'pageSize':_0x3bfdee,'totalCount':_0x6a2a9b[_0x58af63(0x201)],...typeof _0x6a2a9b['physicalTableCount']==='number'?{'physicalTableCount':_0x6a2a9b['physicalTableCount']}:{},...typeof _0x6a2a9b['datasetTableCount']==='number'?{'datasetTableCount':_0x6a2a9b[_0x58af63(0x1eb)]}:{},..._0x6a2a9b[_0x58af63(0x1f1)]?{'summary':_0x6a2a9b[_0x58af63(0x1f1)]}:{},'summaryByType':_0x463912,'toAnalyzeTables':_0x421cc9,'deletedTables':_0x534173,'modifiedFieldDiffs':_0x582221,'tables':_0x319544,'tableList':_0x319544},'message':_0x319544[_0x58af63(0x1d0)]+'\x20'+(_0x5dd4b4===_0x58af63(0x1da)?_0x58af63(0x1e4):'total')+_0x58af63(0x1ff)+_0x6a2a9b[_0x58af63(0x201)]+_0x58af63(0x1de)+_0x7c80ce+')'};}};async function getAllDbTableDiff(_0x53c911,_0x548022,_0x5e1e3c,_0x35e2ac){const _0x31ccaf=a87_0x4ad1c4,_0x1a5d62=new Map();let _0x32306c=0x1,_0x29a4cb=null;while(!![]){_0x29a4cb=await _0x53c911(_0x548022,_0x5e1e3c,{'pageIndex':_0x32306c,'pageSize':ALL_PAGE_SIZE,'tableName':_0x35e2ac});const _0x41e5f6=_0x1a5d62[_0x31ccaf(0x1f7)];for(const _0x45cb64 of _0x29a4cb[_0x31ccaf(0x1f5)]){_0x1a5d62[_0x31ccaf(0x1e3)](_0x45cb64[_0x31ccaf(0x1fc)],_0x45cb64);}if(_0x1a5d62['size']>=_0x29a4cb[_0x31ccaf(0x201)])break;if(_0x29a4cb[_0x31ccaf(0x1f5)][_0x31ccaf(0x1d0)]===0x0||_0x1a5d62['size']===_0x41e5f6)throw CliErrors['validation'](_0x31ccaf(0x1e2)+_0x1a5d62[_0x31ccaf(0x1f7)]+_0x31ccaf(0x1f0)+_0x29a4cb[_0x31ccaf(0x201)]+_0x31ccaf(0x1fd));_0x32306c+=0x1;}return{'totalCount':_0x29a4cb?.['totalCount']??0x0,...typeof _0x29a4cb?.[_0x31ccaf(0x1d8)]===_0x31ccaf(0x1d7)?{'physicalTableCount':_0x29a4cb[_0x31ccaf(0x1d8)]}:{},...typeof _0x29a4cb?.[_0x31ccaf(0x1eb)]==='number'?{'datasetTableCount':_0x29a4cb['datasetTableCount']}:{},..._0x29a4cb?.[_0x31ccaf(0x1f1)]?{'summary':_0x29a4cb['summary']}:{},'tableList':[..._0x1a5d62[_0x31ccaf(0x1f3)]()]};}
@@ -1 +1 @@
1
- (function(_0x38e977,_0x4cbe4b){const _0x25cc16=a89_0x3aa8,_0x39f2bd=_0x38e977();while(!![]){try{const _0x573c92=parseInt(_0x25cc16(0x169))/0x1+parseInt(_0x25cc16(0x16e))/0x2+parseInt(_0x25cc16(0x16c))/0x3*(parseInt(_0x25cc16(0x16d))/0x4)+-parseInt(_0x25cc16(0x16f))/0x5+parseInt(_0x25cc16(0x170))/0x6+-parseInt(_0x25cc16(0x16a))/0x7+parseInt(_0x25cc16(0x171))/0x8*(-parseInt(_0x25cc16(0x16b))/0x9);if(_0x573c92===_0x4cbe4b)break;else _0x39f2bd['push'](_0x39f2bd['shift']());}catch(_0xdd7361){_0x39f2bd['push'](_0x39f2bd['shift']());}}}(a89_0x1f8f,0x75ca6));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';function a89_0x1f8f(){const _0x281ce0=['143690CzoMpQ','2092176YxaNII','8JMRbYa','881325ZTNSar','5670952sKhxXR','4452417bDVPcg','3BsAeOf','339052ivQhHH','1002546ZikJXX'];a89_0x1f8f=function(){return _0x281ce0;};return a89_0x1f8f();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a89_0x3aa8(_0x4d152c,_0x136bd6){_0x4d152c=_0x4d152c-0x169;const _0x1f8ff1=a89_0x1f8f();let _0x3aa846=_0x1f8ff1[_0x4d152c];return _0x3aa846;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ (function(_0x154263,_0x52da85){const _0x4d13a4=a88_0x5647,_0x464cbf=_0x154263();while(!![]){try{const _0x3cf713=-parseInt(_0x4d13a4(0x1bb))/0x1*(-parseInt(_0x4d13a4(0x1b3))/0x2)+parseInt(_0x4d13a4(0x1b5))/0x3+parseInt(_0x4d13a4(0x1b7))/0x4*(-parseInt(_0x4d13a4(0x1b1))/0x5)+parseInt(_0x4d13a4(0x1b8))/0x6*(-parseInt(_0x4d13a4(0x1ba))/0x7)+parseInt(_0x4d13a4(0x1b9))/0x8+-parseInt(_0x4d13a4(0x1b6))/0x9*(parseInt(_0x4d13a4(0x1b2))/0xa)+parseInt(_0x4d13a4(0x1b4))/0xb;if(_0x3cf713===_0x52da85)break;else _0x464cbf['push'](_0x464cbf['shift']());}catch(_0x258903){_0x464cbf['push'](_0x464cbf['shift']());}}}(a88_0xd6c6,0x8fd6f));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a88_0x5647(_0x506ce1,_0x1baebc){_0x506ce1=_0x506ce1-0x1b1;const _0xd6c642=a88_0xd6c6();let _0x564717=_0xd6c642[_0x506ce1];return _0x564717;}import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';function a88_0xd6c6(){const _0x3fd568=['7627jVXaBj','897490VYseNS','33030UMNJiv','116aqIjdT','14524785LIJGgz','759759PkodRz','2259GGkWsJ','4RdFDrc','132rvnwsd','992944JSJNna','172599nDYBDl'];a88_0xd6c6=function(){return _0x3fd568;};return a88_0xd6c6();}import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a90_0x48e6b4=a90_0x2d4f;(function(_0x128866,_0x132ae8){const _0x193501=a90_0x2d4f,_0x901bc7=_0x128866();while(!![]){try{const _0xc3b7b0=-parseInt(_0x193501(0x192))/0x1*(parseInt(_0x193501(0x197))/0x2)+parseInt(_0x193501(0x19a))/0x3*(-parseInt(_0x193501(0x196))/0x4)+parseInt(_0x193501(0x1a8))/0x5*(-parseInt(_0x193501(0x1a4))/0x6)+parseInt(_0x193501(0x198))/0x7+parseInt(_0x193501(0x1a0))/0x8*(-parseInt(_0x193501(0x1a7))/0x9)+-parseInt(_0x193501(0x18f))/0xa*(parseInt(_0x193501(0x193))/0xb)+parseInt(_0x193501(0x19b))/0xc*(parseInt(_0x193501(0x19d))/0xd);if(_0xc3b7b0===_0x132ae8)break;else _0x901bc7['push'](_0x901bc7['shift']());}catch(_0x56ac2a){_0x901bc7['push'](_0x901bc7['shift']());}}}(a90_0x4d25,0x210cb));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a90_0x4d25(){const _0x5d199c=['9qEcFkI','2549294FbpasJ','pagesize','all','5144CRPnCB','1588wlnccM','750729UmDIWc','page','453lYnUuL','1272TgEMBR','DB_TABLE','75439djKSGB','datasetDependency','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','88OJnTct','map','list','length','6ZJYTuD','number','Found\x20','72972PzJDuz','323600zXlCII','read','appCode','10ZAGkWK','Page\x20index\x20(1-based)','Page\x20size'];a90_0x4d25=function(){return _0x5d199c;};return a90_0x4d25();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a90_0x2d4f(_0x401af2,_0x9779d8){_0x401af2=_0x401af2-0x18e;const _0x4d252b=a90_0x4d25();let _0x2d4f0a=_0x4d252b[_0x401af2];return _0x2d4f0a;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a90_0x48e6b4(0x1a2),'description':a90_0x48e6b4(0x19f),'risk':a90_0x48e6b4(0x1a9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a90_0x48e6b4(0x199),'type':'number','description':a90_0x48e6b4(0x190),'default':0x1},{'name':a90_0x48e6b4(0x194),'type':a90_0x48e6b4(0x1a5),'description':a90_0x48e6b4(0x191),'default':0x64}],async 'execute'(_0x2393c1){const _0x5cdff1=a90_0x48e6b4,_0x463fd3=_0x2393c1['num']('page',0x1)||0x1,_0x2ca74b=_0x2393c1['num'](_0x5cdff1(0x194),0x64)||0x64,[{items:_0x2311b2,paging:_0x1e0470},_0x5defd4]=await Promise[_0x5cdff1(0x195)]([listDbLinks(_0x2393c1[_0x5cdff1(0x18e)],{'currentPage':_0x463fd3,'pageSize':_0x2ca74b}),listDatasets(_0x2393c1[_0x5cdff1(0x18e)],{'source':_0x5cdff1(0x19c)})]),_0x7df19e=_0x2311b2[_0x5cdff1(0x1a1)](_0x1efa18=>({...sanitizeDbLinkForOutput(_0x1efa18),'datasetDependency':buildDbDatasetDependency(_0x1efa18,_0x5defd4)[_0x5cdff1(0x19e)]})),_0x50e5e8=_0x1e0470?_0x1e0470:{'currentPage':_0x463fd3,'pageSize':_0x2ca74b,'rowsOnPage':_0x7df19e[_0x5cdff1(0x1a3)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x7df19e,'paging':_0x50e5e8},'message':_0x5cdff1(0x1a6)+_0x7df19e[_0x5cdff1(0x1a3)]+'\x20database\x20connection(s)'};}};
1
+ function a89_0x1141(){const _0x34c1e0=['172ypTOqC','appCode','length','all','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','Page\x20index\x20(1-based)','datasetDependency','page','6noHLmJ','read','Found\x20','number','559310VVUrfO','Page\x20size','DB_TABLE','1012312Ldhkoy','1074FsnNcH','num','3323aWxUpG','\x20database\x20connection(s)','4266245WaOVlA','map','20377082hKraZH','pagesize','86493NxqHXq','946984csnODd','207iqvvvz','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'];a89_0x1141=function(){return _0x34c1e0;};return a89_0x1141();}const a89_0x263f6d=a89_0x45ba;(function(_0x3df5fb,_0x5d0e1d){const _0x9f7f3e=a89_0x45ba,_0x1f98ed=_0x3df5fb();while(!![]){try{const _0x4387f2=-parseInt(_0x9f7f3e(0x1f7))/0x1*(parseInt(_0x9f7f3e(0x1f5))/0x2)+-parseInt(_0x9f7f3e(0x1e1))/0x3*(-parseInt(_0x9f7f3e(0x1e5))/0x4)+parseInt(_0x9f7f3e(0x1dd))/0x5+parseInt(_0x9f7f3e(0x1ed))/0x6*(parseInt(_0x9f7f3e(0x1f4))/0x7)+-parseInt(_0x9f7f3e(0x1e2))/0x8+-parseInt(_0x9f7f3e(0x1e3))/0x9*(parseInt(_0x9f7f3e(0x1f1))/0xa)+parseInt(_0x9f7f3e(0x1df))/0xb;if(_0x4387f2===_0x5d0e1d)break;else _0x1f98ed['push'](_0x1f98ed['shift']());}catch(_0xf983bf){_0x1f98ed['push'](_0x1f98ed['shift']());}}}(a89_0x1141,0xdbed7));function a89_0x45ba(_0x4b31e2,_0x5604e9){_0x4b31e2=_0x4b31e2-0x1dd;const _0x114154=a89_0x1141();let _0x45ba18=_0x114154[_0x4b31e2];return _0x45ba18;}import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a89_0x263f6d(0x1e9),'risk':a89_0x263f6d(0x1ee),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a89_0x263f6d(0x1ec),'type':a89_0x263f6d(0x1f0),'description':a89_0x263f6d(0x1ea),'default':0x1},{'name':a89_0x263f6d(0x1e0),'type':'number','description':a89_0x263f6d(0x1f2),'default':0x64}],async 'execute'(_0x76ea61){const _0x5274d9=a89_0x263f6d,_0x52f2ce=_0x76ea61[_0x5274d9(0x1f6)]('page',0x1)||0x1,_0x49eeea=_0x76ea61['num']('pagesize',0x64)||0x64,[{items:_0x81e5cc,paging:_0x1a8a8d},_0x924682]=await Promise[_0x5274d9(0x1e8)]([listDbLinks(_0x76ea61[_0x5274d9(0x1e6)],{'currentPage':_0x52f2ce,'pageSize':_0x49eeea}),listDatasets(_0x76ea61['appCode'],{'source':_0x5274d9(0x1f3)})]),_0x16e5dd=_0x81e5cc[_0x5274d9(0x1de)](_0x11dc83=>({...sanitizeDbLinkForOutput(_0x11dc83),'datasetDependency':buildDbDatasetDependency(_0x11dc83,_0x924682)[_0x5274d9(0x1eb)]})),_0x59f352=_0x1a8a8d?_0x1a8a8d:{'currentPage':_0x52f2ce,'pageSize':_0x49eeea,'rowsOnPage':_0x16e5dd[_0x5274d9(0x1e7)],'totalCount':null,'note':_0x5274d9(0x1e4)};return{'ok':!![],'data':{'connections':_0x16e5dd,'paging':_0x59f352},'message':_0x5274d9(0x1ef)+_0x16e5dd[_0x5274d9(0x1e7)]+_0x5274d9(0x1f8)};}};
@@ -1 +1 @@
1
- (function(_0x21358a,_0x38dcc1){const _0xc2957c=a91_0x1e9b,_0x2dd9cc=_0x21358a();while(!![]){try{const _0x3ff96c=parseInt(_0xc2957c(0x182))/0x1*(parseInt(_0xc2957c(0x18c))/0x2)+-parseInt(_0xc2957c(0x18d))/0x3+parseInt(_0xc2957c(0x199))/0x4*(parseInt(_0xc2957c(0x196))/0x5)+-parseInt(_0xc2957c(0x185))/0x6*(parseInt(_0xc2957c(0x192))/0x7)+-parseInt(_0xc2957c(0x194))/0x8*(parseInt(_0xc2957c(0x195))/0x9)+parseInt(_0xc2957c(0x19d))/0xa*(parseInt(_0xc2957c(0x197))/0xb)+-parseInt(_0xc2957c(0x17f))/0xc;if(_0x3ff96c===_0x38dcc1)break;else _0x2dd9cc['push'](_0x2dd9cc['shift']());}catch(_0xb55602){_0x2dd9cc['push'](_0x2dd9cc['shift']());}}}(a91_0xe19b,0xd4d7c));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x27e060){const _0x53839e=a91_0x1e9b,_0x36458c=_0x27e060[_0x53839e(0x183)]();if(_0x36458c===_0x53839e(0x190)||_0x36458c==='passwd'||_0x36458c===_0x53839e(0x19b))return!![];if(_0x36458c[_0x53839e(0x19a)](_0x53839e(0x181))||_0x36458c[_0x53839e(0x19a)](_0x53839e(0x188))||_0x36458c['includes'](_0x53839e(0x19c)))return!![];if(_0x36458c['includes']('privatekey')||_0x36458c['includes']('accesskey'))return!![];if(_0x36458c==='authorization'||_0x36458c==='connectionstring'||_0x36458c==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x54db5e){const _0x18825e=a91_0x1e9b,_0x2a00c9={..._0x54db5e};delete _0x2a00c9['hasAvailableDo'];for(const _0x453073 of Object['keys'](_0x2a00c9)){if(!shouldRedactKey(_0x453073))continue;const _0x3940e8=_0x2a00c9[_0x453073];_0x3940e8!=null&&String(_0x3940e8)[_0x18825e(0x187)]>0x0&&(_0x2a00c9[_0x453073]='[redacted]');}return _0x2a00c9;}export function sanitizeDbLinkList(_0x221c0d){const _0x51dfd4=a91_0x1e9b;return _0x221c0d[_0x51dfd4(0x19f)](_0xcc67e9=>sanitizeDbLinkForOutput(_0xcc67e9));}export function buildDbDatasetDependency(_0x4b59c4,_0x1f727f){const _0x140a6d=a91_0x1e9b,_0x4ee05c=_0x1f727f[_0x140a6d(0x18f)](_0x36ec47=>Number(_0x36ec47[_0x140a6d(0x19e)]?.[_0x140a6d(0x17e)])===Number(_0x4b59c4['id']))['map'](_0x23f260=>({'id':_0x23f260['id'],'code':_0x23f260['code'],'name':_0x23f260[_0x140a6d(0x18b)],..._0x23f260['dbtableConfig']?.[_0x140a6d(0x18e)]?{'tableName':_0x23f260[_0x140a6d(0x19e)][_0x140a6d(0x18e)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4ee05c[_0x140a6d(0x187)]>0x0,'activeDatasetCount':_0x4ee05c[_0x140a6d(0x187)]},'datasets':_0x4ee05c};}export async function assertDbLinkConnectionPreflight(_0x5cda46){const _0x125ca3=a91_0x1e9b,_0x21cb73=await testDbLinkConfigConnect(_0x5cda46);if(_0x21cb73!==!![])throw CliErrors['apiError'](_0x125ca3(0x186),_0x125ca3(0x180));}function a91_0x1e9b(_0x2bb04d,_0x1b74a8){_0x2bb04d=_0x2bb04d-0x17e;const _0xe19b48=a91_0xe19b();let _0x1e9b60=_0xe19b48[_0x2bb04d];return _0x1e9b60;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a91_0xe19b(){const _0x2f02c0=['612WGnehk','16210hMOYFc','44KBbspl','isFinite','416OukbMC','includes','dbpassword','credential','3089630SXbJjZ','dbtableConfig','map','dbId','6816000TEGrvs','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','secret','585581QRCBoA','toLowerCase','trim','588Ojryxj','Database\x20connection\x20preflight\x20failed.','length','token','/data/database','number','name','4cWbLdr','2565456kZHPwm','tableName','filter','password','test','13237rfsHeR','/data/er?dbId=','31048qcnvDj'];a91_0xe19b=function(){return _0x2f02c0;};return a91_0xe19b();}export function validateDbUrl(_0x5c6ebf){const _0x2c6578=a91_0x1e9b,_0x1cfe91=_0x5c6ebf[_0x2c6578(0x184)]();if(!_0x1cfe91)return![];return DB_URL_PATTERN[_0x2c6578(0x191)](_0x1cfe91);}export function buildDbPageLinks(_0x23cb11,_0x14d854){const _0x3ed96d=a91_0x1e9b,_0x1f5b9a=_0x23cb11?.[_0x3ed96d(0x184)]();if(!_0x1f5b9a)return undefined;const _0x144ff1=typeof _0x14d854===_0x3ed96d(0x18a)?String(_0x14d854):String(_0x14d854??'')[_0x3ed96d(0x184)]();if(!_0x144ff1)return undefined;const _0x1fd818=Number(_0x144ff1);if(!Number[_0x3ed96d(0x198)](_0x1fd818)||_0x1fd818<=0x0)return undefined;const _0x2f18b0=getAppBaseUrl(_0x1f5b9a),_0x102a03=encodeURIComponent(String(_0x1fd818));return{'databasePage':_0x2f18b0+_0x3ed96d(0x189),'erPage':_0x2f18b0+_0x3ed96d(0x193)+_0x102a03};}
1
+ (function(_0x2ffb6d,_0x46fdf1){const _0xf15808=a90_0x7cfe,_0x32c2f8=_0x2ffb6d();while(!![]){try{const _0x1fa874=parseInt(_0xf15808(0x106))/0x1+parseInt(_0xf15808(0xf4))/0x2+-parseInt(_0xf15808(0x10c))/0x3+-parseInt(_0xf15808(0xfb))/0x4+-parseInt(_0xf15808(0xf7))/0x5+parseInt(_0xf15808(0x102))/0x6+parseInt(_0xf15808(0x108))/0x7;if(_0x1fa874===_0x46fdf1)break;else _0x32c2f8['push'](_0x32c2f8['shift']());}catch(_0x451d63){_0x32c2f8['push'](_0x32c2f8['shift']());}}}(a90_0x46f4,0x1fd3b));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x4d9fd3){const _0x325e10=a90_0x7cfe,_0x2a4350=_0x4d9fd3['toLowerCase']();if(_0x2a4350===_0x325e10(0x110)||_0x2a4350===_0x325e10(0x112)||_0x2a4350===_0x325e10(0x100))return!![];if(_0x2a4350[_0x325e10(0x10b)]('secret')||_0x2a4350[_0x325e10(0x10b)](_0x325e10(0xfe))||_0x2a4350[_0x325e10(0x10b)](_0x325e10(0x111)))return!![];if(_0x2a4350[_0x325e10(0x10b)](_0x325e10(0xf5))||_0x2a4350[_0x325e10(0x10b)](_0x325e10(0xfc)))return!![];if(_0x2a4350==='authorization'||_0x2a4350===_0x325e10(0xf8)||_0x2a4350===_0x325e10(0x10e))return!![];return![];}export function sanitizeDbLinkForOutput(_0x181ace){const _0x5382ac=a90_0x7cfe,_0x2bd9ef={..._0x181ace};delete _0x2bd9ef['hasAvailableDo'];for(const _0x5ea36a of Object[_0x5382ac(0xf2)](_0x2bd9ef)){if(!shouldRedactKey(_0x5ea36a))continue;const _0x32c237=_0x2bd9ef[_0x5ea36a];_0x32c237!=null&&String(_0x32c237)[_0x5382ac(0x10a)]>0x0&&(_0x2bd9ef[_0x5ea36a]='[redacted]');}return _0x2bd9ef;}function a90_0x7cfe(_0x4e009b,_0xb087b8){_0x4e009b=_0x4e009b-0xf1;const _0x46f447=a90_0x46f4();let _0x7cfe32=_0x46f447[_0x4e009b];return _0x7cfe32;}function a90_0x46f4(){const _0x18c709=['isFinite','dbpassword','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','146988WnPUOt','tableName','/data/database','name','63431fGTOjf','map','2330027BDmfkA','filter','length','includes','721200wYTUdp','dbtableConfig','jdbcurl','apiError','password','credential','passwd','code','keys','dbId','404430LjCMwY','privatekey','test','688390kLkWLH','connectionstring','/data/er?dbId=','number','458256jfAKmO','accesskey','trim','token'];a90_0x46f4=function(){return _0x18c709;};return a90_0x46f4();}export function sanitizeDbLinkList(_0x22893c){const _0x338c72=a90_0x7cfe;return _0x22893c[_0x338c72(0x107)](_0x5b2b67=>sanitizeDbLinkForOutput(_0x5b2b67));}export function buildDbDatasetDependency(_0x42b219,_0x48222b){const _0x29306d=a90_0x7cfe,_0x2bbfa5=_0x48222b[_0x29306d(0x109)](_0x54be61=>Number(_0x54be61[_0x29306d(0x10d)]?.[_0x29306d(0xf3)])===Number(_0x42b219['id']))['map'](_0x1b2f40=>({'id':_0x1b2f40['id'],'code':_0x1b2f40[_0x29306d(0xf1)],'name':_0x1b2f40[_0x29306d(0x105)],..._0x1b2f40[_0x29306d(0x10d)]?.['tableName']?{'tableName':_0x1b2f40['dbtableConfig'][_0x29306d(0x103)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x2bbfa5[_0x29306d(0x10a)]>0x0,'activeDatasetCount':_0x2bbfa5[_0x29306d(0x10a)]},'datasets':_0x2bbfa5};}export async function assertDbLinkConnectionPreflight(_0x30e50a){const _0x17e64f=a90_0x7cfe,_0x482d93=await testDbLinkConfigConnect(_0x30e50a);if(_0x482d93!==!![])throw CliErrors[_0x17e64f(0x10f)]('Database\x20connection\x20preflight\x20failed.',_0x17e64f(0x101));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x1a2fc2){const _0xd8dddb=a90_0x7cfe,_0x5d347f=_0x1a2fc2[_0xd8dddb(0xfd)]();if(!_0x5d347f)return![];return DB_URL_PATTERN[_0xd8dddb(0xf6)](_0x5d347f);}export function buildDbPageLinks(_0x4758a1,_0x4269a1){const _0x1549e8=a90_0x7cfe,_0x5af187=_0x4758a1?.[_0x1549e8(0xfd)]();if(!_0x5af187)return undefined;const _0x1d0cbe=typeof _0x4269a1===_0x1549e8(0xfa)?String(_0x4269a1):String(_0x4269a1??'')['trim']();if(!_0x1d0cbe)return undefined;const _0x452d36=Number(_0x1d0cbe);if(!Number[_0x1549e8(0xff)](_0x452d36)||_0x452d36<=0x0)return undefined;const _0x1508d8=getAppBaseUrl(_0x5af187),_0x17d855=encodeURIComponent(String(_0x452d36));return{'databasePage':_0x1508d8+_0x1549e8(0x104),'erPage':_0x1508d8+_0x1549e8(0xf9)+_0x17d855};}
@@ -1 +1 @@
1
- function a92_0x380b(){const _0x14aad3=['399820XTHgOq','2346688EsDyfO','1727810CgFUMN','length','344bNrgvZ','150234tlSdeQ','appCode','26NykInv','27dnOLXm','\x20table(s)\x20on\x20db\x20link\x20','30CCPdOI','1554333lkwscm','19957JIGGpV','tables','545076ZDkzUy','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','num'];a92_0x380b=function(){return _0x14aad3;};return a92_0x380b();}const a92_0x1f062c=a92_0x5b1d;(function(_0x155708,_0x1b3d5d){const _0x4fc5c5=a92_0x5b1d,_0x4e22df=_0x155708();while(!![]){try{const _0x47e43b=-parseInt(_0x4fc5c5(0xdf))/0x1+-parseInt(_0x4fc5c5(0xd8))/0x2*(parseInt(_0x4fc5c5(0xd6))/0x3)+parseInt(_0x4fc5c5(0xe3))/0x4+-parseInt(_0x4fc5c5(0xe2))/0x5*(-parseInt(_0x4fc5c5(0xdb))/0x6)+-parseInt(_0x4fc5c5(0xdd))/0x7*(parseInt(_0x4fc5c5(0xe6))/0x8)+parseInt(_0x4fc5c5(0xd9))/0x9*(parseInt(_0x4fc5c5(0xe4))/0xa)+parseInt(_0x4fc5c5(0xdc))/0xb;if(_0x47e43b===_0x1b3d5d)break;else _0x4e22df['push'](_0x4e22df['shift']());}catch(_0x410faa){_0x4e22df['push'](_0x4e22df['shift']());}}}(a92_0x380b,0x4ff1f));function a92_0x5b1d(_0x49c31d,_0x3f6b66){_0x49c31d=_0x49c31d-0xd6;const _0x380b3f=a92_0x380b();let _0x5b1d3b=_0x380b3f[_0x49c31d];return _0x5b1d3b;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a92_0x1f062c(0xde),'description':a92_0x1f062c(0xe0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x598872){const _0x22c661=a92_0x1f062c,_0x2646e1=_0x598872[_0x22c661(0xe1)]('id'),_0x550ad5=await getDbAllTableList(_0x598872[_0x22c661(0xd7)],_0x2646e1);return{'ok':!![],'data':{'dbLinkId':_0x2646e1,'total':_0x550ad5[_0x22c661(0xe5)],'tables':_0x550ad5},'message':_0x550ad5[_0x22c661(0xe5)]+_0x22c661(0xda)+_0x2646e1};}};
1
+ const a91_0x215337=a91_0x514f;function a91_0x3d04(){const _0x196efd=['length','appCode','1100124gACoYY','14488ouoRku','1107528YdHhts','80uRSNUQ','6050166Lahrfz','read','2300600vHXANO','177BejMFq','\x20table(s)\x20on\x20db\x20link\x20','tables','985536xnUJPL','19292kRJmSq','4683hGLRgc'];a91_0x3d04=function(){return _0x196efd;};return a91_0x3d04();}(function(_0x28c9d9,_0xe0450b){const _0x10fabd=a91_0x514f,_0x5045d7=_0x28c9d9();while(!![]){try{const _0x169ea6=parseInt(_0x10fabd(0x100))/0x1+-parseInt(_0x10fabd(0x109))/0x2*(-parseInt(_0x10fabd(0x105))/0x3)+parseInt(_0x10fabd(0x108))/0x4+-parseInt(_0x10fabd(0x104))/0x5+-parseInt(_0x10fabd(0x102))/0x6+-parseInt(_0x10fabd(0x10a))/0x7*(-parseInt(_0x10fabd(0xff))/0x8)+parseInt(_0x10fabd(0xfe))/0x9*(-parseInt(_0x10fabd(0x101))/0xa);if(_0x169ea6===_0xe0450b)break;else _0x5045d7['push'](_0x5045d7['shift']());}catch(_0x5ede8e){_0x5045d7['push'](_0x5045d7['shift']());}}}(a91_0x3d04,0xa8058));function a91_0x514f(_0x57fa40,_0x4ca805){_0x57fa40=_0x57fa40-0xfe;const _0x3d04cd=a91_0x3d04();let _0x514f1d=_0x3d04cd[_0x57fa40];return _0x514f1d;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a91_0x215337(0x107),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a91_0x215337(0x103),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x41a28a){const _0x1ef11d=a91_0x215337,_0x5f4df5=_0x41a28a['num']('id'),_0x107555=await getDbAllTableList(_0x41a28a[_0x1ef11d(0x10c)],_0x5f4df5);return{'ok':!![],'data':{'dbLinkId':_0x5f4df5,'total':_0x107555[_0x1ef11d(0x10b)],'tables':_0x107555},'message':_0x107555[_0x1ef11d(0x10b)]+_0x1ef11d(0x106)+_0x5f4df5};}};
@@ -1 +1 @@
1
- const a93_0x2b3bf3=a93_0x61ad;(function(_0x5ddb0a,_0x12fd67){const _0x58480f=a93_0x61ad,_0x58d1c0=_0x5ddb0a();while(!![]){try{const _0x1042c4=parseInt(_0x58480f(0x1ea))/0x1+parseInt(_0x58480f(0x1eb))/0x2+-parseInt(_0x58480f(0x1ee))/0x3*(parseInt(_0x58480f(0x1e1))/0x4)+-parseInt(_0x58480f(0x1e8))/0x5*(parseInt(_0x58480f(0x1e0))/0x6)+parseInt(_0x58480f(0x1df))/0x7+parseInt(_0x58480f(0x1e6))/0x8+-parseInt(_0x58480f(0x1e4))/0x9;if(_0x1042c4===_0x12fd67)break;else _0x58d1c0['push'](_0x58d1c0['shift']());}catch(_0x38649e){_0x58d1c0['push'](_0x58d1c0['shift']());}}}(a93_0x5328,0x5489d));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a93_0x61ad(_0xe62809,_0x51b2e4){_0xe62809=_0xe62809-0x1dd;const _0x5328e3=a93_0x5328();let _0x61ad28=_0x5328e3[_0xe62809];return _0x61ad28;}function summarizeTestConnectResult(_0x565927){const _0x313f78=a93_0x61ad;if(_0x565927===!![]||_0x565927===![])return{'success':_0x565927};if(_0x565927===null||_0x565927===undefined)return{'type':typeof _0x565927};if(typeof _0x565927!=='object')return{'type':typeof _0x565927};const _0x22a27a=_0x565927,_0x8ae1d=['success',_0x313f78(0x1ed),_0x313f78(0x1e7),_0x313f78(0x1dd),'msg','data'],_0x3f0137={};for(const _0x491dbc of _0x8ae1d){if(_0x491dbc in _0x22a27a)_0x3f0137[_0x491dbc]=_0x22a27a[_0x491dbc];}return Object[_0x313f78(0x1e9)](_0x3f0137)['length']===0x0&&(_0x3f0137[_0x313f78(0x1e9)]=Object['keys'](_0x22a27a)[_0x313f78(0x1e2)](0x0,0x14)),_0x3f0137;}function a93_0x5328(){const _0x179a57=['num','error','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','4765684NNPcjd','48936VVtkqm','103664olwzhT','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2705949pCnVbR','\x20(see\x20data.result)','1864208UHNsJT','code','355kWulkC','keys','494346dKdQEI','827780htkLoW','Connection\x20OK\x20for\x20db\x20link\x20','message','69AgdZBR','read','test'];a93_0x5328=function(){return _0x179a57;};return a93_0x5328();}export const dbTest={'service':'db','command':a93_0x2b3bf3(0x1f0),'description':a93_0x2b3bf3(0x1de),'risk':a93_0x2b3bf3(0x1ef),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x303406){const _0x1f3ccf=a93_0x2b3bf3,_0x4f9e0e=_0x303406[_0x1f3ccf(0x1f1)]('id'),_0x4061c8=await testDbLinkConnect(_0x4f9e0e),_0x1bac0b=_0x4061c8===!![]||typeof _0x4061c8==='object'&&_0x4061c8!==null&&_0x4061c8['success']===!![],_0x46f05e=summarizeTestConnectResult(_0x4061c8);return{'ok':!![],'data':{'id':_0x4f9e0e,'connected':Boolean(_0x1bac0b),'result':_0x46f05e},'message':_0x1bac0b?_0x1f3ccf(0x1ec)+_0x4f9e0e:_0x1f3ccf(0x1e3)+_0x4f9e0e+_0x1f3ccf(0x1e5)};}};
1
+ const a92_0x535770=a92_0x52c5;function a92_0x52c5(_0x3655ed,_0x1567e5){_0x3655ed=_0x3655ed-0x1df;const _0x3b896d=a92_0x3b89();let _0x52c589=_0x3b896d[_0x3655ed];return _0x52c589;}(function(_0x33dc43,_0x59e79d){const _0x1c8bf0=a92_0x52c5,_0x170236=_0x33dc43();while(!![]){try{const _0x3e603d=-parseInt(_0x1c8bf0(0x1e6))/0x1*(-parseInt(_0x1c8bf0(0x1eb))/0x2)+-parseInt(_0x1c8bf0(0x1e3))/0x3+-parseInt(_0x1c8bf0(0x1df))/0x4+-parseInt(_0x1c8bf0(0x1f1))/0x5*(parseInt(_0x1c8bf0(0x1f0))/0x6)+parseInt(_0x1c8bf0(0x1e2))/0x7+parseInt(_0x1c8bf0(0x1ea))/0x8*(-parseInt(_0x1c8bf0(0x1e9))/0x9)+parseInt(_0x1c8bf0(0x1ec))/0xa*(parseInt(_0x1c8bf0(0x1ef))/0xb);if(_0x3e603d===_0x59e79d)break;else _0x170236['push'](_0x170236['shift']());}catch(_0x586916){_0x170236['push'](_0x170236['shift']());}}}(a92_0x3b89,0xd4cfe));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x46a950){const _0x43bcfa=a92_0x52c5;if(_0x46a950===!![]||_0x46a950===![])return{'success':_0x46a950};if(_0x46a950===null||_0x46a950===undefined)return{'type':typeof _0x46a950};if(typeof _0x46a950!=='object')return{'type':typeof _0x46a950};const _0x1d3fbb=_0x46a950,_0x3d2ef9=['success',_0x43bcfa(0x1e1),_0x43bcfa(0x1e7),'error','msg',_0x43bcfa(0x1e0)],_0x538995={};for(const _0x292a59 of _0x3d2ef9){if(_0x292a59 in _0x1d3fbb)_0x538995[_0x292a59]=_0x1d3fbb[_0x292a59];}return Object['keys'](_0x538995)['length']===0x0&&(_0x538995[_0x43bcfa(0x1e8)]=Object[_0x43bcfa(0x1e8)](_0x1d3fbb)['slice'](0x0,0x14)),_0x538995;}function a92_0x3b89(){const _0x59b8fd=['20lKlnyI','230HDcYcr','Connection\x20check\x20finished\x20for\x20db\x20link\x20','\x20(see\x20data.result)','439681iheIna','93966RiLjcL','55gQlYmn','Connection\x20OK\x20for\x20db\x20link\x20','read','1064840lIXnhs','data','message','10874577bTeZXH','4735932dztsQk','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','num','142778CPamCc','code','keys','9106389MOfGrm','8MgzudH'];a92_0x3b89=function(){return _0x59b8fd;};return a92_0x3b89();}export const dbTest={'service':'db','command':'test','description':a92_0x535770(0x1e4),'risk':a92_0x535770(0x1f3),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1c4d40){const _0x802cde=a92_0x535770,_0x411ee0=_0x1c4d40[_0x802cde(0x1e5)]('id'),_0x2a8ee3=await testDbLinkConnect(_0x411ee0),_0x177542=_0x2a8ee3===!![]||typeof _0x2a8ee3==='object'&&_0x2a8ee3!==null&&_0x2a8ee3['success']===!![],_0x29037b=summarizeTestConnectResult(_0x2a8ee3);return{'ok':!![],'data':{'id':_0x411ee0,'connected':Boolean(_0x177542),'result':_0x29037b},'message':_0x177542?_0x802cde(0x1f2)+_0x411ee0:_0x802cde(0x1ed)+_0x411ee0+_0x802cde(0x1ee)};}};
@@ -1 +1 @@
1
- function a94_0x37b8(_0x556f76,_0x5ea3b9){_0x556f76=_0x556f76-0x15b;const _0x1391bf=a94_0x1391();let _0x37b8b4=_0x1391bf[_0x556f76];return _0x37b8b4;}const a94_0x3cfd4a=a94_0x37b8;function a94_0x1391(){const _0x45ae15=['New\x20host:port','dbparam','17586792EwlDtl','/smartapi/dblink/update','trim','New\x20connection\x20parameter\x20string','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','1083644inkACK','11461848mPUZxz','dburl','24JikcKg','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbName','write','num','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','1583099XyuluN','validation','username','update','has','[redacted]','POST','str','bool','6YYgwVN','string','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbDesc','2419928EYCCSZ','******','password','New\x20description','dbname','skip-connection-test','dbParam','dbdesc','117295XdCKbm','11576334bJsHOw','New\x20database\x20name'];a94_0x1391=function(){return _0x45ae15;};return a94_0x1391();}(function(_0x2fee7e,_0x556602){const _0x40a742=a94_0x37b8,_0x37272a=_0x2fee7e();while(!![]){try{const _0xd0cc47=parseInt(_0x40a742(0x177))/0x1+-parseInt(_0x40a742(0x16e))/0x2+-parseInt(_0x40a742(0x180))/0x3*(parseInt(_0x40a742(0x15c))/0x4)+-parseInt(_0x40a742(0x164))/0x5*(parseInt(_0x40a742(0x171))/0x6)+parseInt(_0x40a742(0x165))/0x7+parseInt(_0x40a742(0x16f))/0x8+-parseInt(_0x40a742(0x169))/0x9;if(_0xd0cc47===_0x556602)break;else _0x37272a['push'](_0x37272a['shift']());}catch(_0x44ee67){_0x37272a['push'](_0x37272a['shift']());}}}(a94_0x1391,0xd45fa));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a94_0x3cfd4a(0x15d),a94_0x3cfd4a(0x17c)]);function mergeDbLinkUpdate(_0x2e004a,_0x33a44e){const _0xe21d7f=a94_0x3cfd4a,_0x230333={..._0x2e004a},_0x4f3018=_0x33a44e['str'](_0xe21d7f(0x15e));if(_0x4f3018&&MASKED_PASSWORD_VALUES[_0xe21d7f(0x17b)](_0x4f3018))throw CliErrors[_0xe21d7f(0x178)](_0xe21d7f(0x16d));if(!_0x4f3018&&MASKED_PASSWORD_VALUES[_0xe21d7f(0x17b)](String(_0x2e004a[_0xe21d7f(0x15e)]??'')))throw CliErrors['validation']('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x357dd4=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x160));if(_0x357dd4)_0x230333[_0xe21d7f(0x173)]=_0x357dd4;const _0x16972d=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x170));if(_0x16972d)_0x230333['dbUrl']=_0x16972d['trim']();const _0x2dad45=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x179));if(_0x2dad45)_0x230333[_0xe21d7f(0x179)]=_0x2dad45;if(_0x4f3018)_0x230333[_0xe21d7f(0x15e)]=_0x4f3018;const _0x46b31b=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x168));if(_0x46b31b)_0x230333[_0xe21d7f(0x162)]=_0x46b31b;const _0xdbad67=_0x33a44e['str']('dbdesc');if(_0xdbad67)_0x230333[_0xe21d7f(0x15b)]=_0xdbad67;return _0x230333;}export const dbUpdate={'service':'db','command':a94_0x3cfd4a(0x17a),'description':a94_0x3cfd4a(0x176),'risk':a94_0x3cfd4a(0x174),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x3cfd4a(0x160),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x166)},{'name':'dburl','type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x167)},{'name':a94_0x3cfd4a(0x179),'type':a94_0x3cfd4a(0x181),'description':'New\x20username'},{'name':a94_0x3cfd4a(0x15e),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x182)},{'name':a94_0x3cfd4a(0x168),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x16c)},{'name':a94_0x3cfd4a(0x163),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x15f)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4b8fe8){const _0x317f0c=a94_0x3cfd4a,_0x16c289=_0x4b8fe8[_0x317f0c(0x17e)](_0x317f0c(0x170));if(_0x16c289&&!validateDbUrl(_0x16c289[_0x317f0c(0x16b)]()))throw CliErrors[_0x317f0c(0x178)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x16c289+'\x22');},async 'dryRun'(_0x1f72dc){const _0x4c3ec0=a94_0x3cfd4a,_0x3c928e=_0x1f72dc[_0x4c3ec0(0x175)]('id'),_0x56533f=await getDbLinkInfo(_0x3c928e),_0x3dcecc=mergeDbLinkUpdate(_0x56533f,_0x1f72dc),_0x7fb5b8=sanitizeDbLinkForOutput(_0x3dcecc);return{'method':_0x4c3ec0(0x17d),'url':_0x4c3ec0(0x16a),'body':_0x7fb5b8,'description':_0x4c3ec0(0x172),'connectionPreflight':{'enabled':!_0x1f72dc[_0x4c3ec0(0x17f)](_0x4c3ec0(0x161)),'executed':![]}};},async 'execute'(_0x49707f){const _0x2f9e81=a94_0x3cfd4a,_0x2dd408=_0x49707f[_0x2f9e81(0x175)]('id'),_0x37456c=await getDbLinkInfo(_0x2dd408),_0xe1a2ad=mergeDbLinkUpdate(_0x37456c,_0x49707f);!_0x49707f[_0x2f9e81(0x17f)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0xe1a2ad);const {id:_0x25b417,entity:_0x5004b0}=normalizeEntityWithIdResponse(await updateDbLink(_0xe1a2ad));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5004b0),'message':'Updated\x20db\x20link\x20'+(_0x25b417??_0x2dd408)};}};
1
+ const a93_0x311885=a93_0x3bc7;(function(_0x5ab5f0,_0x457ac4){const _0x2d66f0=a93_0x3bc7,_0x4455d0=_0x5ab5f0();while(!![]){try{const _0x19de33=-parseInt(_0x2d66f0(0x179))/0x1*(parseInt(_0x2d66f0(0x17a))/0x2)+parseInt(_0x2d66f0(0x165))/0x3+parseInt(_0x2d66f0(0x171))/0x4+parseInt(_0x2d66f0(0x188))/0x5+-parseInt(_0x2d66f0(0x176))/0x6+parseInt(_0x2d66f0(0x16d))/0x7+-parseInt(_0x2d66f0(0x172))/0x8;if(_0x19de33===_0x457ac4)break;else _0x4455d0['push'](_0x4455d0['shift']());}catch(_0x26f6db){_0x4455d0['push'](_0x4455d0['shift']());}}}(a93_0x190c,0xe2549));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a93_0x190c(){const _0x2ccc83=['New\x20host:port','dbParam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','str','has','6918460zvdnCc','New\x20username','1903713RCWcgQ','dbdesc','******','dburl','/smartapi/dblink/update','dbparam','num','update','3431645XhfOeF','password','New\x20database\x20name','bool','5878568gacucZ','9498376DrbzCU','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','validation','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','5052564XfbpTF','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','25YOeFHu','81736MpUuRS','New\x20description','write','dbname','skip-connection-test','trim','string','username','[redacted]'];a93_0x190c=function(){return _0x2ccc83;};return a93_0x190c();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a93_0x311885(0x167),a93_0x311885(0x182)]);function a93_0x3bc7(_0x47a5c1,_0x5dabd5){_0x47a5c1=_0x47a5c1-0x164;const _0x190c36=a93_0x190c();let _0x3bc78a=_0x190c36[_0x47a5c1];return _0x3bc78a;}function mergeDbLinkUpdate(_0x3bc002,_0x3abbcb){const _0x2020e4=a93_0x311885,_0xce6cda={..._0x3bc002},_0x13b435=_0x3abbcb[_0x2020e4(0x186)](_0x2020e4(0x16e));if(_0x13b435&&MASKED_PASSWORD_VALUES[_0x2020e4(0x187)](_0x13b435))throw CliErrors[_0x2020e4(0x174)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x13b435&&MASKED_PASSWORD_VALUES[_0x2020e4(0x187)](String(_0x3bc002[_0x2020e4(0x16e)]??'')))throw CliErrors[_0x2020e4(0x174)](_0x2020e4(0x173));const _0x37ca0a=_0x3abbcb[_0x2020e4(0x186)](_0x2020e4(0x17d));if(_0x37ca0a)_0xce6cda['dbName']=_0x37ca0a;const _0x2c225d=_0x3abbcb['str'](_0x2020e4(0x168));if(_0x2c225d)_0xce6cda['dbUrl']=_0x2c225d[_0x2020e4(0x17f)]();const _0x14a1f5=_0x3abbcb[_0x2020e4(0x186)](_0x2020e4(0x181));if(_0x14a1f5)_0xce6cda['username']=_0x14a1f5;if(_0x13b435)_0xce6cda['password']=_0x13b435;const _0x3cbf30=_0x3abbcb['str'](_0x2020e4(0x16a));if(_0x3cbf30)_0xce6cda[_0x2020e4(0x184)]=_0x3cbf30;const _0x3d3872=_0x3abbcb['str'](_0x2020e4(0x166));if(_0x3d3872)_0xce6cda['dbDesc']=_0x3d3872;return _0xce6cda;}export const dbUpdate={'service':'db','command':a93_0x311885(0x16c),'description':a93_0x311885(0x175),'risk':a93_0x311885(0x17c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a93_0x311885(0x17d),'type':a93_0x311885(0x180),'description':a93_0x311885(0x16f)},{'name':'dburl','type':a93_0x311885(0x180),'description':a93_0x311885(0x183)},{'name':a93_0x311885(0x181),'type':a93_0x311885(0x180),'description':a93_0x311885(0x164)},{'name':'password','type':a93_0x311885(0x180),'description':a93_0x311885(0x178)},{'name':a93_0x311885(0x16a),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':'string','description':a93_0x311885(0x17b)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x948d2){const _0x177046=a93_0x311885,_0x4c6ca1=_0x948d2[_0x177046(0x186)]('dburl');if(_0x4c6ca1&&!validateDbUrl(_0x4c6ca1['trim']()))throw CliErrors[_0x177046(0x174)](_0x177046(0x185)+_0x4c6ca1+'\x22');},async 'dryRun'(_0xcf0e06){const _0xb56d87=a93_0x311885,_0x38b3fa=_0xcf0e06[_0xb56d87(0x16b)]('id'),_0x38d161=await getDbLinkInfo(_0x38b3fa),_0x36878a=mergeDbLinkUpdate(_0x38d161,_0xcf0e06),_0x2e63b0=sanitizeDbLinkForOutput(_0x36878a);return{'method':'POST','url':_0xb56d87(0x169),'body':_0x2e63b0,'description':_0xb56d87(0x177),'connectionPreflight':{'enabled':!_0xcf0e06[_0xb56d87(0x170)](_0xb56d87(0x17e)),'executed':![]}};},async 'execute'(_0x866f0c){const _0x4f1e42=a93_0x311885,_0x30a5d4=_0x866f0c[_0x4f1e42(0x16b)]('id'),_0x2b1258=await getDbLinkInfo(_0x30a5d4),_0x20367c=mergeDbLinkUpdate(_0x2b1258,_0x866f0c);!_0x866f0c[_0x4f1e42(0x170)](_0x4f1e42(0x17e))&&await assertDbLinkConnectionPreflight(_0x20367c);const {id:_0x134b1c,entity:_0x307262}=normalizeEntityWithIdResponse(await updateDbLink(_0x20367c));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x307262),'message':'Updated\x20db\x20link\x20'+(_0x134b1c??_0x30a5d4)};}};
@@ -1 +1 @@
1
- const a95_0x545fa7=a95_0x2b8c;(function(_0x47e780,_0x1f3990){const _0x1f427b=a95_0x2b8c,_0x2953e5=_0x47e780();while(!![]){try{const _0x277fda=-parseInt(_0x1f427b(0xc7))/0x1*(parseInt(_0x1f427b(0xf8))/0x2)+-parseInt(_0x1f427b(0x100))/0x3*(-parseInt(_0x1f427b(0xfd))/0x4)+-parseInt(_0x1f427b(0xfc))/0x5+-parseInt(_0x1f427b(0x106))/0x6+-parseInt(_0x1f427b(0x114))/0x7+-parseInt(_0x1f427b(0xda))/0x8+parseInt(_0x1f427b(0xe5))/0x9;if(_0x277fda===_0x1f3990)break;else _0x2953e5['push'](_0x2953e5['shift']());}catch(_0xc0bcff){_0x2953e5['push'](_0x2953e5['shift']());}}}(a95_0x2664,0x85573));import a95_0x4242e6 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a95_0x2b8c(_0x3087ba,_0x4614bf){_0x3087ba=_0x3087ba-0xc6;const _0x26645e=a95_0x2664();let _0x2b8cd4=_0x26645e[_0x3087ba];return _0x2b8cd4;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}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(_0x12c7c5){const _0xcf25b2=a95_0x2b8c,_0x1b34ba=GIT_COMMIT!==_0xcf25b2(0x118)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xcf25b2(0xeb)](0x0,0xa)+')':VERSION,_0x37e811=buildConfigFromFlags({}),_0x5144dc=getCookie();console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6[_0xcf25b2(0xf1)](CLI_BIN_NAME+'\x20doctor')),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('─'[_0xcf25b2(0xdf)](0x32))),console[_0xcf25b2(0x119)](_0xcf25b2(0xd7)+_0x1b34ba),console[_0xcf25b2(0x119)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0xcf25b2(0x119)](_0xcf25b2(0xd1)+process[_0xcf25b2(0xec)]+'\x20'+process['arch']);const _0x4ac9dc=inspectBuiltinSkill();console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xf1)]('\x20\x20Built-in\x20Skill')),console[_0xcf25b2(0x119)](a95_0x4242e6['gray'](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));const _0x3aff4a=_0x4ac9dc[_0xcf25b2(0x10a)]===_0xcf25b2(0xf6)?a95_0x4242e6['green']('✓\x20'+_0x4ac9dc[_0xcf25b2(0x10a)]):a95_0x4242e6[_0xcf25b2(0xea)]('✗\x20'+_0x4ac9dc[_0xcf25b2(0x10a)]);console[_0xcf25b2(0x119)](_0xcf25b2(0xca)+_0x3aff4a),console[_0xcf25b2(0x119)](_0xcf25b2(0xe7)+_0x4ac9dc['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x4ac9dc[_0xcf25b2(0x10d)]||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xd3)))),console[_0xcf25b2(0x119)](_0xcf25b2(0xd6)+(_0x4ac9dc['installedPath']||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xf9))));if(_0x4ac9dc[_0xcf25b2(0xcd)])console[_0xcf25b2(0x119)](_0xcf25b2(0x108)+_0x4ac9dc[_0xcf25b2(0xcd)]);_0x4ac9dc[_0xcf25b2(0x10a)]!==_0xcf25b2(0xf6)&&console[_0xcf25b2(0x119)](_0xcf25b2(0xd4)+_0x4ac9dc['repairCommand']);console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6[_0xcf25b2(0xf1)](_0xcf25b2(0xe3))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));const _0xb0a6c3=getGlobalConfigPath(),_0x471c0a=getProjectConfigPath();console[_0xcf25b2(0x119)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb0a6c3||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xf9)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x471c0a||a95_0x4242e6['gray'](_0xcf25b2(0xf9)))),console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6['bold'](_0xcf25b2(0xe0))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('\x20\x20─'[_0xcf25b2(0xdf)](0x1e)));const _0x749538=(_0x208570,_0x106e33)=>{const _0x4249a5=_0xcf25b2;if(!_0x106e33){console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xce)](_0x4249a5(0x102)));return;}const _0x17f2f9=inspectCliConfigJsonFile(_0x106e33);if(_0x17f2f9[_0x4249a5(0xd2)]==='ok')console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0x110)](_0x4249a5(0xc8)));else{if(_0x17f2f9[_0x4249a5(0xd2)]===_0x4249a5(0xed))console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xff)](_0x4249a5(0x101)));else _0x17f2f9[_0x4249a5(0xd2)]===_0x4249a5(0x115)?console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xce)](_0x4249a5(0x109))):(console['log']('\x20\x20'+_0x208570['padEnd'](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xea)]('✗\x20Invalid\x20JSON')),console[_0x4249a5(0x119)]('\x20\x20'+''[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xea)](_0x17f2f9['message'])));}};_0x749538(_0xcf25b2(0x112),_0xb0a6c3),_0x749538('Project',_0x471c0a),console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6['bold']('\x20\x20Merged\x20Config')),console['log'](a95_0x4242e6['gray'](_0xcf25b2(0x10e)['repeat'](0x1e))),console[_0xcf25b2(0x119)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xe2)]||a95_0x4242e6[_0xcf25b2(0xea)](_0xcf25b2(0xd9)))),console[_0xcf25b2(0x119)](_0xcf25b2(0x10c)+_0x37e811[_0xcf25b2(0xf7)]),console[_0xcf25b2(0x119)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x37e811['locale']),console['log'](_0xcf25b2(0xe6)+_0x37e811['apiDir']),console['log'](_0xcf25b2(0xcc)+(_0x37e811['defaultApp']||a95_0x4242e6['gray'](_0xcf25b2(0x107)))),console['log'](_0xcf25b2(0x105)+(_0x37e811[_0xcf25b2(0x117)]||a95_0x4242e6['gray'](_0xcf25b2(0x107)))),console[_0xcf25b2(0x119)](_0xcf25b2(0xfb)+(_0x37e811[_0xcf25b2(0xd5)]||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x107)))),console[_0xcf25b2(0x119)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xf0)]||a95_0x4242e6['gray'](_0xcf25b2(0xf5)+DEFAULT_CONFIG_VALUES[_0xcf25b2(0xf0)]+')'))),console[_0xcf25b2(0x119)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811['pageSize']??a95_0x4242e6[_0xcf25b2(0xce)]('(default)'))),console[_0xcf25b2(0x119)](_0xcf25b2(0xe1)+_0x37e811[_0xcf25b2(0xef)]),console[_0xcf25b2(0x119)](_0xcf25b2(0xfa)+_0x37e811[_0xcf25b2(0x104)]),console[_0xcf25b2(0x119)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xf2)]?a95_0x4242e6['green'](_0xcf25b2(0xc9)+_0x37e811['cookie']['length']+')'):_0x5144dc?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xdc)+_0x5144dc[_0xcf25b2(0xd0)]+')'):a95_0x4242e6['gray'](_0xcf25b2(0x107))));const _0x4c3618=Object[_0xcf25b2(0xf4)](_0x37e811[_0xcf25b2(0x113)]);if(_0x4c3618[_0xcf25b2(0xd0)]>0x0){console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6['bold']('\x20\x20Apps')),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));for(const _0x5e385e of _0x4c3618){const _0x45d45e=_0x37e811['apps'][_0x5e385e],_0x2b2b6a=_0x5e385e===_0x37e811[_0xcf25b2(0x103)],_0x3f7f13=_0x5e385e===_0x37e811[_0xcf25b2(0x117)],_0x22c281=_0x3f7f13?a95_0x4242e6['green']('\x20←\x20current'):'',_0x234820=_0x2b2b6a?_0xcf25b2(0xde):'';console[_0xcf25b2(0x119)]('\x20\x20'+_0x5e385e+_0x234820+_0x22c281),console[_0xcf25b2(0x119)](_0xcf25b2(0x111)+_0x45d45e[_0xcf25b2(0x116)]);const _0x4532be=buildAppDoctorFields(_0x45d45e,{'env':_0x37e811['env'],'apiDir':_0x37e811['raw'][_0xcf25b2(0x10b)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x37e811[_0xcf25b2(0xf2)]||_0x5144dc||undefined,'accessKey':_0x37e811[_0xcf25b2(0x11e)]});console['log'](_0xcf25b2(0xe4)+_0x4532be[_0xcf25b2(0xf7)][_0xcf25b2(0xdd)]+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0xf7)][_0xcf25b2(0x11c)]+')')),console[_0xcf25b2(0x119)](_0xcf25b2(0xcb)+_0x4532be['apiDir'][_0xcf25b2(0xdd)]+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0x10b)][_0xcf25b2(0x11c)]+')'));const _0x40739c=_0x4532be[_0xcf25b2(0xf2)]['value']?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xc9)+_0x4532be[_0xcf25b2(0xf2)][_0xcf25b2(0xdd)][_0xcf25b2(0xd0)]+')'):a95_0x4242e6[_0xcf25b2(0xce)]('(none)');console['log'](_0xcf25b2(0xdb)+_0x40739c+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0xf2)]['source']+')'));const _0x24fd58=_0x4532be['accessKey'][_0xcf25b2(0xdd)]?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xc9)+_0x4532be[_0xcf25b2(0x11e)][_0xcf25b2(0xdd)][_0xcf25b2(0xd0)]+')'):a95_0x4242e6['gray'](_0xcf25b2(0x107));console[_0xcf25b2(0x119)](_0xcf25b2(0x10f)+_0x24fd58+'\x20\x20'+a95_0x4242e6['gray']('('+_0x4532be[_0xcf25b2(0x11e)][_0xcf25b2(0x11c)]+')'));}}console['log'](),console['log'](a95_0x4242e6['bold'](_0xcf25b2(0x11d))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('\x20\x20─'['repeat'](0x1e))),console[_0xcf25b2(0x119)](_0xcf25b2(0xc6)+getApiDomain()),console[_0xcf25b2(0x119)](_0xcf25b2(0xf3)+getUserDomain()),console[_0xcf25b2(0x119)](_0xcf25b2(0xcf)+getRuntimeDomain()),console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xf1)](_0xcf25b2(0x11b))),console['log'](a95_0x4242e6['gray'](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));if(_0x5144dc){const _0x4ef0bb=await getIsSessionValid();console[_0xcf25b2(0x119)](_0xcf25b2(0xd8)+(_0x4ef0bb?a95_0x4242e6['green'](_0xcf25b2(0xe8)):a95_0x4242e6[_0xcf25b2(0xea)](_0xcf25b2(0xee))));}else console[_0xcf25b2(0x119)](_0xcf25b2(0xd8)+a95_0x4242e6[_0xcf25b2(0xea)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}function a95_0x2664(){const _0x533fb1=['padEnd','yellow','2017221xvzbVw','⚠\x20Empty\x20(treated\x20as\x20{})','(no\x20file)','defaultApp','verbose','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','5630958jaHqRZ','(none)','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','state','apiDir','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20─','\x20\x20\x20\x20accessKey:\x20\x20','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Global','apps','2095800xkZVvm','missing','appcode','currentApp','unknown','log','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','source','\x20\x20API\x20Endpoints','accessKey','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','13woadPN','✓\x20Valid\x20JSON','(set,\x20length=','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','reason','gray','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','status','(unknown)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Installed\x20Path:\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','7278080enhzoC','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','value','\x20(default)','repeat','\x20\x20Config\x20JSON','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appCode','\x20\x20Config\x20Files','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','28008441NZnfPo','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','✓\x20Valid','read','red','slice','platform','empty','✗\x20Expired','riskLevel','format','bold','cookie','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','keys','(default:\x20','current','env','49030HOSqQr','(not\x20found)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','3859725XfkVwp','4akttxf'];a95_0x2664=function(){return _0x533fb1;};return a95_0x2664();}export const doctorDefinition={'service':'doctor','command':'check','description':a95_0x545fa7(0x11a),'risk':a95_0x545fa7(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a94_0x29d02e=a94_0x19eb;(function(_0x55bec7,_0x25eb51){const _0x1e9319=a94_0x19eb,_0x4ef8cf=_0x55bec7();while(!![]){try{const _0x815ec4=-parseInt(_0x1e9319(0x155))/0x1*(-parseInt(_0x1e9319(0x17f))/0x2)+parseInt(_0x1e9319(0x130))/0x3*(parseInt(_0x1e9319(0x161))/0x4)+-parseInt(_0x1e9319(0x185))/0x5+parseInt(_0x1e9319(0x14d))/0x6+-parseInt(_0x1e9319(0x168))/0x7+parseInt(_0x1e9319(0x13b))/0x8*(parseInt(_0x1e9319(0x124))/0x9)+parseInt(_0x1e9319(0x139))/0xa*(-parseInt(_0x1e9319(0x17d))/0xb);if(_0x815ec4===_0x25eb51)break;else _0x4ef8cf['push'](_0x4ef8cf['shift']());}catch(_0x88def2){_0x4ef8cf['push'](_0x4ef8cf['shift']());}}}(a94_0x30bf,0xf3908));import a94_0x4c0e14 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a94_0x30bf(){const _0x1e1ec0=['\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','6420844FHmnWz','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','prototype','3828979ojnkwk','⚠\x20Empty\x20(treated\x20as\x20{})','\x20+\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20Config\x20JSON','bold','defaultApp','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20kbDomain:\x20\x20\x20\x20\x20\x20\x20\x20','version','projectConfig','source','padEnd','call','green','read','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','filter','13838YrAcJp','installedPath','46rIWxjv','\x20\x20Repair\x20project:\x20\x20\x20','accessKey','\x20\x20runtimeDomain:\x20\x20\x20','state','\x20\x20Config\x20Files','8374475vHiTiI','(unknown)','slice','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','\x20doctor','\x20\x20Apps','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appDomain:\x20\x20\x20\x20\x20\x20\x20','apiDir','(missing)','appCode','36DpVPYj','cookie','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','status','platform','yellow','\x20\x20Package\x20Version:\x20','repairCommand','includes','\x20\x20─','empty','locale','3UIuiwK','(set\x20via\x20file,\x20length=','message','✓\x20Valid','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','Global','currentApp','13930XRVjju','(not\x20found)','3072896JqaCmA','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','value','arch','length','log','format','\x20\x20Legacy\x20inherit:\x20\x20\x20','check','\x20\x20Auth','inherit','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','project','4227468ZPQtkP','(no\x20file)','✓\x20Valid\x20JSON','\x20←\x20current','current','(default)','repeat','reason','48943yRTAND','ignored\x20in\x20','apps','\x20\x20Merged\x20Config','global','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','gray','appcode','pageSize','globalConfig'];a94_0x30bf=function(){return _0x1e1ec0;};return a94_0x30bf();}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(_0x4496c2){const _0x473c03=a94_0x19eb,_0x179772=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x473c03(0x187)](0x0,0xa)+')':VERSION,_0x2cb15d=buildConfigFromFlags({}),_0x1dbc59=getCookie();console[_0x473c03(0x144)](),console['log'](a94_0x4c0e14[_0x473c03(0x16e)](CLI_BIN_NAME+_0x473c03(0x11d))),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x15c)]('─'['repeat'](0x32))),console[_0x473c03(0x144)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x179772),console[_0x473c03(0x144)](_0x473c03(0x17a)+process[_0x473c03(0x173)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x473c03(0x128)]+'\x20'+process[_0x473c03(0x142)]);const _0x5e9440=inspectBuiltinSkill();console[_0x473c03(0x144)](),console['log'](a94_0x4c0e14['bold']('\x20\x20Built-in\x20Skill')),console['log'](a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x12d)['repeat'](0x1e)));const _0x1cb48b=_0x5e9440['state']===_0x473c03(0x151)?a94_0x4c0e14['green']('✓\x20'+_0x5e9440['state']):a94_0x4c0e14[_0x473c03(0x165)]('✗\x20'+_0x5e9440[_0x473c03(0x183)]);console[_0x473c03(0x144)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1cb48b),console[_0x473c03(0x144)](_0x473c03(0x12a)+_0x5e9440[_0x473c03(0x135)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x5e9440['skillVersion']||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x186)))),console[_0x473c03(0x144)](_0x473c03(0x170)+(_0x5e9440[_0x473c03(0x17e)]||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x13a))));if(_0x5e9440['reason'])console[_0x473c03(0x144)](_0x473c03(0x162)+_0x5e9440[_0x473c03(0x154)]);_0x5e9440['state']!==_0x473c03(0x151)&&console[_0x473c03(0x144)](_0x473c03(0x188)+_0x5e9440[_0x473c03(0x12b)]);console[_0x473c03(0x144)](),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x16e)](_0x473c03(0x184))),console[_0x473c03(0x144)](a94_0x4c0e14['gray'](_0x473c03(0x12d)[_0x473c03(0x153)](0x1e)));const _0x57c99f=getGlobalConfigPath(),_0x47983c=getProjectConfigPath();console[_0x473c03(0x144)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x57c99f||a94_0x4c0e14['gray']('(not\x20found)'))),console[_0x473c03(0x144)](_0x473c03(0x13f)+(_0x47983c||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x13a)))),console[_0x473c03(0x144)](),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x16e)](_0x473c03(0x16d))),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x12d)['repeat'](0x1e)));const _0x17374f=(_0x1416cd,_0x51d051)=>{const _0x5f509d=_0x473c03;if(!_0x51d051){console[_0x5f509d(0x144)]('\x20\x20'+_0x1416cd[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14[_0x5f509d(0x15c)](_0x5f509d(0x14e)));return;}const _0x75aa9=inspectCliConfigJsonFile(_0x51d051);if(_0x75aa9['status']==='ok')console['log']('\x20\x20'+_0x1416cd[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14['green'](_0x5f509d(0x14f)));else{if(_0x75aa9['status']===_0x5f509d(0x12e))console[_0x5f509d(0x144)]('\x20\x20'+_0x1416cd[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14['yellow'](_0x5f509d(0x169)));else _0x75aa9[_0x5f509d(0x127)]==='missing'?console['log']('\x20\x20'+_0x1416cd[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14[_0x5f509d(0x15c)](_0x5f509d(0x122))):(console[_0x5f509d(0x144)]('\x20\x20'+_0x1416cd[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14[_0x5f509d(0x165)]('✗\x20Invalid\x20JSON')),console[_0x5f509d(0x144)]('\x20\x20'+''[_0x5f509d(0x176)](0x11)+'\x20'+a94_0x4c0e14['red'](_0x75aa9[_0x5f509d(0x132)])));}};_0x17374f(_0x473c03(0x137),_0x57c99f),_0x17374f('Project',_0x47983c);const _0x419999=loadRawConfigLayers(),_0x14327d=[Object[_0x473c03(0x167)]['hasOwnProperty'][_0x473c03(0x177)](_0x419999[_0x473c03(0x15f)],_0x473c03(0x149))?_0x473c03(0x159):null,Object['prototype']['hasOwnProperty'][_0x473c03(0x177)](_0x419999[_0x473c03(0x174)],_0x473c03(0x149))?_0x473c03(0x14c):null][_0x473c03(0x17c)](Boolean);_0x14327d[_0x473c03(0x143)]>0x0&&(console[_0x473c03(0x144)](_0x473c03(0x146)+a94_0x4c0e14[_0x473c03(0x129)](_0x473c03(0x156)+_0x14327d[_0x473c03(0x11c)](_0x473c03(0x16a))+'\x20config')),_0x14327d['includes'](_0x473c03(0x14c))&&console[_0x473c03(0x144)](_0x473c03(0x180)+CLI_BIN_NAME+'\x20config\x20delete\x20inherit'),_0x14327d[_0x473c03(0x12c)](_0x473c03(0x159))&&console[_0x473c03(0x144)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));console[_0x473c03(0x144)](),console['log'](a94_0x4c0e14[_0x473c03(0x16e)](_0x473c03(0x158))),console[_0x473c03(0x144)](a94_0x4c0e14['gray']('\x20\x20─'[_0x473c03(0x153)](0x1e))),console[_0x473c03(0x144)](_0x473c03(0x15a)+(_0x2cb15d[_0x473c03(0x123)]||a94_0x4c0e14['red']('(not\x20set)'))),console[_0x473c03(0x144)](_0x473c03(0x134)+_0x2cb15d[_0x473c03(0x163)]),console[_0x473c03(0x144)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0x2cb15d[_0x473c03(0x12f)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2cb15d['apiDir']),console[_0x473c03(0x144)](_0x473c03(0x14a)+(_0x2cb15d[_0x473c03(0x16f)]||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x15b)))),console[_0x473c03(0x144)](_0x473c03(0x14b)+(_0x2cb15d['currentApp']||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x15b)))),console[_0x473c03(0x144)]('\x20\x20explicitAppName:\x20'+(_0x2cb15d['explicitAppName']||a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x15b)))),console[_0x473c03(0x144)](_0x473c03(0x11f)+(_0x2cb15d[_0x473c03(0x145)]||a94_0x4c0e14[_0x473c03(0x15c)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x473c03(0x145)]+')'))),console[_0x473c03(0x144)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2cb15d[_0x473c03(0x15e)]??a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x152)))),console['log'](_0x473c03(0x160)+_0x2cb15d[_0x473c03(0x140)]),console[_0x473c03(0x144)](_0x473c03(0x164)+_0x2cb15d['verbose']),console[_0x473c03(0x144)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2cb15d[_0x473c03(0x125)]?a94_0x4c0e14[_0x473c03(0x178)]('(set,\x20length='+_0x2cb15d[_0x473c03(0x125)][_0x473c03(0x143)]+')'):_0x1dbc59?a94_0x4c0e14[_0x473c03(0x178)](_0x473c03(0x131)+_0x1dbc59[_0x473c03(0x143)]+')'):a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x15b))));const _0x98ae9d=Object['keys'](_0x2cb15d['apps']);if(_0x98ae9d[_0x473c03(0x143)]>0x0){console[_0x473c03(0x144)](),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x16e)](_0x473c03(0x11e))),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x12d)[_0x473c03(0x153)](0x1e)));for(const _0x5e41eb of _0x98ae9d){const _0xb0adc3=_0x2cb15d[_0x473c03(0x157)][_0x5e41eb],_0x371546=_0x5e41eb===_0x2cb15d[_0x473c03(0x16f)],_0x362ac8=_0x5e41eb===_0x2cb15d[_0x473c03(0x138)],_0x3f3117=_0x362ac8?a94_0x4c0e14['green'](_0x473c03(0x150)):'',_0x33ebdc=_0x371546?_0x473c03(0x16c):'';console['log']('\x20\x20'+_0x5e41eb+_0x33ebdc+_0x3f3117),console[_0x473c03(0x144)](_0x473c03(0x126)+_0xb0adc3[_0x473c03(0x15d)]);const _0x596853=buildAppDoctorFields(_0xb0adc3,{'env':_0x2cb15d[_0x473c03(0x163)],'apiDir':_0x2cb15d['raw'][_0x473c03(0x121)]||DEFAULT_CONFIG_VALUES[_0x473c03(0x121)],'cookie':_0x2cb15d['cookie']||_0x1dbc59||undefined,'accessKey':_0x2cb15d['accessKey']});console[_0x473c03(0x144)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x596853[_0x473c03(0x163)][_0x473c03(0x141)]+'\x20\x20'+a94_0x4c0e14[_0x473c03(0x15c)]('('+_0x596853[_0x473c03(0x163)][_0x473c03(0x175)]+')')),console['log'](_0x473c03(0x13d)+_0x596853['apiDir'][_0x473c03(0x141)]+'\x20\x20'+a94_0x4c0e14[_0x473c03(0x15c)]('('+_0x596853[_0x473c03(0x121)][_0x473c03(0x175)]+')'));const _0x198cc2=_0x596853['cookie'][_0x473c03(0x141)]?a94_0x4c0e14['green']('(set,\x20length='+_0x596853[_0x473c03(0x125)][_0x473c03(0x141)][_0x473c03(0x143)]+')'):a94_0x4c0e14[_0x473c03(0x15c)]('(none)');console[_0x473c03(0x144)](_0x473c03(0x13c)+_0x198cc2+'\x20\x20'+a94_0x4c0e14[_0x473c03(0x15c)]('('+_0x596853[_0x473c03(0x125)][_0x473c03(0x175)]+')'));const _0x3596e7=_0x596853[_0x473c03(0x181)]['value']?a94_0x4c0e14['green'](_0x473c03(0x13e)+_0x596853[_0x473c03(0x181)][_0x473c03(0x141)]['length']+')'):a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x15b));console[_0x473c03(0x144)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3596e7+'\x20\x20'+a94_0x4c0e14[_0x473c03(0x15c)]('('+_0x596853[_0x473c03(0x181)][_0x473c03(0x175)]+')'));}}console[_0x473c03(0x144)](),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x16e)]('\x20\x20API\x20Endpoints')),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x15c)](_0x473c03(0x12d)[_0x473c03(0x153)](0x1e))),console['log'](_0x473c03(0x16b)+getActiveRegion()),console[_0x473c03(0x144)](_0x473c03(0x166)+getApiDomain()),console[_0x473c03(0x144)](_0x473c03(0x136)+getUserDomain()),console[_0x473c03(0x144)](_0x473c03(0x182)+getRuntimeDomain()),console[_0x473c03(0x144)](_0x473c03(0x17b)+getSkillDomain()),console[_0x473c03(0x144)](_0x473c03(0x172)+getKbDomain()),console[_0x473c03(0x144)](_0x473c03(0x120)+getAppDomain()),console['log'](),console[_0x473c03(0x144)](a94_0x4c0e14[_0x473c03(0x16e)](_0x473c03(0x148))),console[_0x473c03(0x144)](a94_0x4c0e14['gray']('\x20\x20─'[_0x473c03(0x153)](0x1e)));if(_0x1dbc59){const _0x5906e1=await getIsSessionValid();console[_0x473c03(0x144)](_0x473c03(0x171)+(_0x5906e1?a94_0x4c0e14[_0x473c03(0x178)](_0x473c03(0x133)):a94_0x4c0e14[_0x473c03(0x165)]('✗\x20Expired')));}else console[_0x473c03(0x144)](_0x473c03(0x171)+a94_0x4c0e14[_0x473c03(0x165)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}function a94_0x19eb(_0x29c701,_0x403afc){_0x29c701=_0x29c701-0x11c;const _0x30bf29=a94_0x30bf();let _0x19eb8f=_0x30bf29[_0x29c701];return _0x19eb8f;}export const doctorDefinition={'service':'doctor','command':a94_0x29d02e(0x147),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a94_0x29d02e(0x179),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a96_0x146e35=a96_0x2cf3;function a96_0x10f6(){const _0x217bf2=['3822Ryezby','filePath\x20is\x20required.','long-term','684072tTNhYj','path','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','434USpfbG','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','132wQoQnY','124dwuXTg','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','appCode','222266ttbvvO','filepath','File','13614OaNosz','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','7602ainKKX','90Syfujv','384IqIzxx','validation','Preview:\x20upload\x20','4712FnWmSO','file','str','1099585QygzYE','/smartapi/common/uploadFile','3763DRhbaj','string','\x20to\x20development\x20app\x20','POST','bool','Path\x20to\x20the\x20local\x20file\x20to\x20upload','6EOAMdL'];a96_0x10f6=function(){return _0x217bf2;};return a96_0x10f6();}function a96_0x2cf3(_0x81958b,_0xb18cd3){_0x81958b=_0x81958b-0x6e;const _0x10f643=a96_0x10f6();let _0x2cf352=_0x10f643[_0x81958b];return _0x2cf352;}(function(_0xa498fc,_0xc11e72){const _0x2cda4f=a96_0x2cf3,_0x151399=_0xa498fc();while(!![]){try{const _0x9632d3=-parseInt(_0x2cda4f(0x7f))/0x1*(parseInt(_0x2cda4f(0x77))/0x2)+-parseInt(_0x2cda4f(0x73))/0x3*(parseInt(_0x2cda4f(0x91))/0x4)+parseInt(_0x2cda4f(0x7d))/0x5*(parseInt(_0x2cda4f(0x85))/0x6)+-parseInt(_0x2cda4f(0x75))/0x7*(-parseInt(_0x2cda4f(0x7a))/0x8)+parseInt(_0x2cda4f(0x89))/0x9*(parseInt(_0x2cda4f(0x76))/0xa)+-parseInt(_0x2cda4f(0x70))/0xb*(parseInt(_0x2cda4f(0x90))/0xc)+parseInt(_0x2cda4f(0x86))/0xd*(parseInt(_0x2cda4f(0x8c))/0xe);if(_0x9632d3===_0xc11e72)break;else _0x151399['push'](_0x151399['shift']());}catch(_0x5c97a8){_0x151399['push'](_0x151399['shift']());}}}(a96_0x10f6,0x72175));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':a96_0x146e35(0x7b),'type':a96_0x146e35(0x80),'required':!![],'description':a96_0x146e35(0x84)},FILEPATH_FLAG={'name':a96_0x146e35(0x71),'type':'string','required':!![],'description':a96_0x146e35(0x8b)},DOWNLOAD_FLAG={'name':a96_0x146e35(0x8f),'type':'boolean','description':a96_0x146e35(0x74)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x184b2d){const _0x47733c=a96_0x146e35,_0x2e4967=_0x184b2d['trim']();if(!_0x2e4967)throw CliErrors[_0x47733c(0x78)](_0x47733c(0x87));return _0x2e4967;}const fileUpload={'service':a96_0x146e35(0x7b),'command':'upload','description':a96_0x146e35(0x8d),'risk':a96_0x146e35(0x6e),'flags':[FILE_FLAG],async 'dryRun'(_0x152192){const _0x4c4d4e=a96_0x146e35,_0x59d1f4=requireDevelopmentUploadFile(_0x152192[_0x4c4d4e(0x7c)](_0x4c4d4e(0x7b)),_0x4c4d4e(0x72));return{'method':_0x4c4d4e(0x82),'url':_0x4c4d4e(0x7e),'body':{'appCode':_0x152192['appCode'],'multipart':{'file':_0x59d1f4}},'description':_0x4c4d4e(0x79)+_0x59d1f4[_0x4c4d4e(0x8a)]+_0x4c4d4e(0x81)+_0x152192[_0x4c4d4e(0x6f)]};},async 'execute'(_0x5451a3){const _0x200ea2=a96_0x146e35,_0x981e1f=requireDevelopmentUploadFile(_0x5451a3['str'](_0x200ea2(0x7b)),_0x200ea2(0x72)),_0x5207a2=await uploadDevelopmentFile(_0x5451a3[_0x200ea2(0x6f)],_0x981e1f[_0x200ea2(0x8a)]);return{'ok':!![],'data':_0x5207a2,'message':_0x5207a2['filePath']?'Uploaded\x20file:\x20'+_0x5207a2['filePath']+_0x200ea2(0x8e):_0x200ea2(0x92)};}},fileQueryUrl={'service':a96_0x146e35(0x7b),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x560bf8){const _0x3d71b5=a96_0x146e35,_0xfdf0c4=requireFilePath(_0x560bf8[_0x3d71b5(0x7c)](_0x3d71b5(0x71))),_0x19e3ed=await queryDevelopmentFileUrl(_0xfdf0c4,{'download':_0x560bf8[_0x3d71b5(0x83)](_0x3d71b5(0x8f)),'longTerm':_0x560bf8[_0x3d71b5(0x83)](_0x3d71b5(0x88))});return{'ok':!![],'data':_0x19e3ed};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a95_0x4072bf=a95_0x36c7;(function(_0x2cba46,_0x3cccd4){const _0x4cdfec=a95_0x36c7,_0x4fdcbd=_0x2cba46();while(!![]){try{const _0x16e610=-parseInt(_0x4cdfec(0x1a3))/0x1*(-parseInt(_0x4cdfec(0x18a))/0x2)+-parseInt(_0x4cdfec(0x19c))/0x3+parseInt(_0x4cdfec(0x19e))/0x4+-parseInt(_0x4cdfec(0x19f))/0x5*(parseInt(_0x4cdfec(0x18e))/0x6)+-parseInt(_0x4cdfec(0x188))/0x7+parseInt(_0x4cdfec(0x196))/0x8*(-parseInt(_0x4cdfec(0x199))/0x9)+-parseInt(_0x4cdfec(0x1aa))/0xa*(-parseInt(_0x4cdfec(0x1a5))/0xb);if(_0x16e610===_0x3cccd4)break;else _0x4fdcbd['push'](_0x4fdcbd['shift']());}catch(_0x28cdb8){_0x4fdcbd['push'](_0x4fdcbd['shift']());}}}(a95_0x1e52,0x3b58c));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a95_0x36c7(_0x3cb01b,_0x43b124){_0x3cb01b=_0x3cb01b-0x186;const _0x1e521e=a95_0x1e52();let _0x36c771=_0x1e521e[_0x3cb01b];return _0x36c771;}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':'file','type':a95_0x4072bf(0x1a1),'required':!![],'description':a95_0x4072bf(0x198)},FILEPATH_FLAG={'name':a95_0x4072bf(0x186),'type':a95_0x4072bf(0x1a1),'required':!![],'description':a95_0x4072bf(0x191)},DOWNLOAD_FLAG={'name':a95_0x4072bf(0x193),'type':'boolean','description':a95_0x4072bf(0x1a2)},LONG_TERM_FLAG={'name':a95_0x4072bf(0x190),'type':'boolean','description':a95_0x4072bf(0x19d)};function requireFilePath(_0x2ba62c){const _0x5b022c=a95_0x4072bf,_0x47e346=_0x2ba62c[_0x5b022c(0x195)]();if(!_0x47e346)throw CliErrors[_0x5b022c(0x189)](_0x5b022c(0x1a6));return _0x47e346;}const fileUpload={'service':a95_0x4072bf(0x18d),'command':a95_0x4072bf(0x197),'description':a95_0x4072bf(0x192),'risk':a95_0x4072bf(0x19b),'flags':[FILE_FLAG],async 'dryRun'(_0x18e286){const _0x14aef1=a95_0x4072bf,_0x317c9=requireDevelopmentUploadFile(_0x18e286['str'](_0x14aef1(0x18d)),_0x14aef1(0x1ab));return{'method':_0x14aef1(0x1a7),'url':_0x14aef1(0x1a8),'body':{'appCode':_0x18e286[_0x14aef1(0x194)],'multipart':{'file':_0x317c9}},'description':_0x14aef1(0x187)+_0x317c9[_0x14aef1(0x18f)]+'\x20to\x20development\x20app\x20'+_0x18e286[_0x14aef1(0x194)]};},async 'execute'(_0x31b11c){const _0x112424=a95_0x4072bf,_0x2d4d5c=requireDevelopmentUploadFile(_0x31b11c[_0x112424(0x1a0)]('file'),_0x112424(0x1ab)),_0x2a0478=await uploadDevelopmentFile(_0x31b11c[_0x112424(0x194)],_0x2d4d5c[_0x112424(0x18f)]);return{'ok':!![],'data':_0x2a0478,'message':_0x2a0478[_0x112424(0x19a)]?_0x112424(0x1a9)+_0x2a0478[_0x112424(0x19a)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x112424(0x18c)};}},fileQueryUrl={'service':a95_0x4072bf(0x18d),'command':'query-url','description':a95_0x4072bf(0x1a4),'risk':a95_0x4072bf(0x19b),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x150b04){const _0x384810=a95_0x4072bf,_0x51245d=requireFilePath(_0x150b04[_0x384810(0x1a0)](_0x384810(0x186))),_0x1abdf9=await queryDevelopmentFileUrl(_0x51245d,{'download':_0x150b04[_0x384810(0x18b)](_0x384810(0x193)),'longTerm':_0x150b04[_0x384810(0x18b)](_0x384810(0x190))});return{'ok':!![],'data':_0x1abdf9};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a95_0x1e52(){const _0x5ea2c6=['/smartapi/common/uploadFile','Uploaded\x20file:\x20','34360IVmypw','File','filepath','Preview:\x20upload\x20','1566838puBGQT','validation','127814MyssUc','bool','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','file','417246dgzgQW','path','long-term','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','download','appCode','trim','923992SKtINt','upload','Path\x20to\x20the\x20local\x20file\x20to\x20upload','27DWmAQj','filePath','read','1272966MrdFVC','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','948160pDuKQc','20gfKWFV','str','string','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','7SVZZHz','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','2662SSfDwe','filePath\x20is\x20required.','POST'];a95_0x1e52=function(){return _0x5ea2c6;};return a95_0x1e52();}
@@ -1 +1 @@
1
- (function(_0x4477bc,_0x16d87d){const _0x27816e=a98_0x6570,_0x41c870=_0x4477bc();while(!![]){try{const _0x2b46e8=-parseInt(_0x27816e(0x1d6))/0x1*(parseInt(_0x27816e(0x1d8))/0x2)+parseInt(_0x27816e(0x1d4))/0x3+-parseInt(_0x27816e(0x1d9))/0x4*(parseInt(_0x27816e(0x1d5))/0x5)+parseInt(_0x27816e(0x1da))/0x6*(-parseInt(_0x27816e(0x1d7))/0x7)+-parseInt(_0x27816e(0x1db))/0x8+-parseInt(_0x27816e(0x1dd))/0x9+parseInt(_0x27816e(0x1dc))/0xa;if(_0x2b46e8===_0x16d87d)break;else _0x41c870['push'](_0x41c870['shift']());}catch(_0x33d9c3){_0x41c870['push'](_0x41c870['shift']());}}}(a98_0x5039,0xb4b91));function a98_0x5039(){const _0x3676d5=['606890NgcwdP','17yapAgS','7441Nkilba','149854KjZnse','20PhIiRF','60EKWdfc','6915720rIEWFD','36366130TqzitU','12536424MmPdmT','3756924wMAxtn'];a98_0x5039=function(){return _0x3676d5;};return a98_0x5039();}function a98_0x6570(_0x42d708,_0x8fabf7){_0x42d708=_0x42d708-0x1d4;const _0x50392f=a98_0x5039();let _0x65702d=_0x50392f[_0x42d708];return _0x65702d;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a96_0x196c(_0x57205e,_0x1fbb92){_0x57205e=_0x57205e-0x140;const _0x1f6d06=a96_0x1f6d();let _0x196c14=_0x1f6d06[_0x57205e];return _0x196c14;}(function(_0x2f70d9,_0x83951f){const _0x3cd792=a96_0x196c,_0x33b641=_0x2f70d9();while(!![]){try{const _0xc3a84e=parseInt(_0x3cd792(0x149))/0x1*(-parseInt(_0x3cd792(0x147))/0x2)+-parseInt(_0x3cd792(0x141))/0x3+parseInt(_0x3cd792(0x14b))/0x4*(-parseInt(_0x3cd792(0x148))/0x5)+parseInt(_0x3cd792(0x145))/0x6*(parseInt(_0x3cd792(0x140))/0x7)+parseInt(_0x3cd792(0x144))/0x8+parseInt(_0x3cd792(0x143))/0x9*(parseInt(_0x3cd792(0x142))/0xa)+parseInt(_0x3cd792(0x14a))/0xb*(parseInt(_0x3cd792(0x146))/0xc);if(_0xc3a84e===_0x83951f)break;else _0x33b641['push'](_0x33b641['shift']());}catch(_0x422f27){_0x33b641['push'](_0x33b641['shift']());}}}(a96_0x1f6d,0x1ca19));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a96_0x1f6d(){const _0x175825=['22avMQpa','16XcrZCm','238EOhoKa','149871IxHSYC','16760qPYKOC','792fAVCqi','1139728uoOVzP','636HzFCwp','1426044UQgBDx','10ZpbhDk','214715AKavGI','38446sncSJw'];a96_0x1f6d=function(){return _0x175825;};return a96_0x1f6d();}
@@ -1 +1 @@
1
- const a99_0x55bf5a=a99_0x4c41;(function(_0x45ab59,_0x193fe5){const _0x285c7f=a99_0x4c41,_0x23c025=_0x45ab59();while(!![]){try{const _0x2c792d=parseInt(_0x285c7f(0x81))/0x1*(-parseInt(_0x285c7f(0x7f))/0x2)+-parseInt(_0x285c7f(0x82))/0x3+-parseInt(_0x285c7f(0x75))/0x4*(-parseInt(_0x285c7f(0x89))/0x5)+parseInt(_0x285c7f(0x8d))/0x6*(-parseInt(_0x285c7f(0x88))/0x7)+parseInt(_0x285c7f(0x83))/0x8*(-parseInt(_0x285c7f(0x77))/0x9)+-parseInt(_0x285c7f(0x8c))/0xa+parseInt(_0x285c7f(0x71))/0xb;if(_0x2c792d===_0x193fe5)break;else _0x23c025['push'](_0x23c025['shift']());}catch(_0x50932a){_0x23c025['push'](_0x23c025['shift']());}}}(a99_0x139d,0x552e9));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a99_0x4c41(_0x3feb4f,_0x4c0ae8){_0x3feb4f=_0x3feb4f-0x6f;const _0x139ddb=a99_0x139d();let _0x4c41f4=_0x139ddb[_0x3feb4f];return _0x4c41f4;}export const NUDGE_OPT_OUT_ENV=a99_0x55bf5a(0x74);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x55bf5a(0x7d),a99_0x55bf5a(0x87),a99_0x55bf5a(0x79),'not_in_project','unknown_command',a99_0x55bf5a(0x8b),a99_0x55bf5a(0x78),a99_0x55bf5a(0x80)]),defaultWriter=_0x12f4f8=>{const _0x4847f7=a99_0x55bf5a;process[_0x4847f7(0x6f)]['write'](_0x12f4f8);};export function shouldNudgeForError(_0x1df1dd,_0x320a9d){const _0x1bf3d6=a99_0x55bf5a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x320a9d[_0x1bf3d6(0x84)]==='issue'&&_0x320a9d[_0x1bf3d6(0x7c)]==='report')return![];if(_0x1df1dd instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1bf3d6(0x8f)](_0x1df1dd[_0x1bf3d6(0x76)]);return!![];}function a99_0x139d(){const _0xc128a5=['\x22\x20\x5c','has','stderr','\x20bug?\x20Help\x20us\x20fix\x20it:','16684745StzgnB','\x20\x20Set\x20','message','RABETBASE_DISABLE_ISSUE_NUDGE','28lCRnbr','code','1017VQzhXM','validation_error','config_missing','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','slice','command','cancelled','=1\x20to\x20silence\x20this\x20hint.','40FNGtCN','network_error','20952aIgekZ','494556atvwjp','15312YinRmX','service','replace','join','auth_required','7tfsACP','451530ZjWgJK','trim','flag_missing','6299050kMTCSb','2219718OLnSbK'];a99_0x139d=function(){return _0xc128a5;};return a99_0x139d();}export function printIssueReportNudgeForError(_0x89277,_0x230ed2,_0x1874ff=defaultWriter){if(!shouldNudgeForError(_0x89277,_0x230ed2))return;const _0x501f07=buildSuggestedTitle(_0x89277,_0x230ed2);_0x1874ff(formatNudge(_0x501f07));}function buildSuggestedTitle(_0x44cbd8,_0x472ada){const _0x5e606b=a99_0x55bf5a,_0x93ea2f=_0x44cbd8 instanceof Error?_0x44cbd8[_0x5e606b(0x73)]:String(_0x44cbd8),_0x49b087=_0x93ea2f[_0x5e606b(0x85)](/[\r\n]+/g,'\x20')[_0x5e606b(0x85)](/\s+/g,'\x20')[_0x5e606b(0x8a)]()[_0x5e606b(0x7b)](0x0,0x78)[_0x5e606b(0x85)](/"/g,'\x5c\x22'),_0x1cfae9=CLI_BIN_NAME+'\x20'+_0x472ada[_0x5e606b(0x84)]+'\x20'+_0x472ada[_0x5e606b(0x7c)];return _0x49b087['length']>0x0?_0x1cfae9+':\x20'+_0x49b087:_0x1cfae9;}function formatNudge(_0x1c5209){const _0x41c370=a99_0x55bf5a;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x41c370(0x70),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22'+_0x1c5209+_0x41c370(0x8e),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x41c370(0x7a),_0x41c370(0x72)+NUDGE_OPT_OUT_ENV+_0x41c370(0x7e),''][_0x41c370(0x86)]('\x0a');}
1
+ const a97_0x556497=a97_0x59e9;(function(_0x589666,_0x30f12f){const _0x3890f8=a97_0x59e9,_0x53b87e=_0x589666();while(!![]){try{const _0x20036e=parseInt(_0x3890f8(0x128))/0x1*(-parseInt(_0x3890f8(0x11e))/0x2)+-parseInt(_0x3890f8(0x135))/0x3+parseInt(_0x3890f8(0x13b))/0x4+-parseInt(_0x3890f8(0x12c))/0x5*(parseInt(_0x3890f8(0x12b))/0x6)+-parseInt(_0x3890f8(0x11d))/0x7+-parseInt(_0x3890f8(0x124))/0x8+-parseInt(_0x3890f8(0x121))/0x9*(-parseInt(_0x3890f8(0x11b))/0xa);if(_0x20036e===_0x30f12f)break;else _0x53b87e['push'](_0x53b87e['shift']());}catch(_0x1a4b32){_0x53b87e['push'](_0x53b87e['shift']());}}}(a97_0x3181,0x38888));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x3181(){const _0x3ac1d5=['join','issue','command','=1\x20to\x20silence\x20this\x20hint.','message','flag_missing','\x20issue\x20report\x20\x5c','write','1045917aMrLTu','\x22\x20\x5c','has','Hit\x20a\x20','service','report','1162972iZsomB','code','3221270CdwbUH','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','3087679CAGCiv','6GCSTVl','\x20\x20\x20\x20--title\x20\x22','slice','45inbWCP','validation_error','stderr','3144224MzWIvT','replace','\x20bug?\x20Help\x20us\x20fix\x20it:','network_error','126641CLMAmQ','cancelled','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','6mlsKNt','535655EPqdvF'];a97_0x3181=function(){return _0x3ac1d5;};return a97_0x3181();}export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';const NUDGE_SUPPRESSED_CODES=new Set([a97_0x556497(0x129),'auth_required','config_missing','not_in_project','unknown_command',a97_0x556497(0x132),a97_0x556497(0x122),a97_0x556497(0x127)]),defaultWriter=_0x2bf13e=>{const _0x55ea6e=a97_0x556497;process[_0x55ea6e(0x123)][_0x55ea6e(0x134)](_0x2bf13e);};export function shouldNudgeForError(_0x171e37,_0x4edd5d){const _0x32bae8=a97_0x556497;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4edd5d[_0x32bae8(0x139)]===_0x32bae8(0x12e)&&_0x4edd5d[_0x32bae8(0x12f)]===_0x32bae8(0x13a))return![];if(_0x171e37 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x32bae8(0x137)](_0x171e37[_0x32bae8(0x11a)]);return!![];}export function printIssueReportNudgeForError(_0x4ba575,_0x241fc5,_0x384d0e=defaultWriter){if(!shouldNudgeForError(_0x4ba575,_0x241fc5))return;const _0x5e144c=buildSuggestedTitle(_0x4ba575,_0x241fc5);_0x384d0e(formatNudge(_0x5e144c));}function buildSuggestedTitle(_0x222fcb,_0x29ed81){const _0x3b786e=a97_0x556497,_0x23cfd8=_0x222fcb instanceof Error?_0x222fcb[_0x3b786e(0x131)]:String(_0x222fcb),_0x1e33c8=_0x23cfd8[_0x3b786e(0x125)](/[\r\n]+/g,'\x20')[_0x3b786e(0x125)](/\s+/g,'\x20')['trim']()[_0x3b786e(0x120)](0x0,0x78)[_0x3b786e(0x125)](/"/g,'\x5c\x22'),_0xc57066=CLI_BIN_NAME+'\x20'+_0x29ed81['service']+'\x20'+_0x29ed81[_0x3b786e(0x12f)];return _0x1e33c8['length']>0x0?_0xc57066+':\x20'+_0x1e33c8:_0xc57066;}function a97_0x59e9(_0x1451e1,_0x771a4a){_0x1451e1=_0x1451e1-0x11a;const _0x318190=a97_0x3181();let _0x59e97d=_0x318190[_0x1451e1];return _0x59e97d;}function formatNudge(_0xd4d0dc){const _0x252144=a97_0x556497;return['',_0x252144(0x138)+CLI_BIN_NAME+_0x252144(0x126),'\x20\x20'+CLI_BIN_NAME+_0x252144(0x133),_0x252144(0x11f)+_0xd4d0dc+_0x252144(0x136),_0x252144(0x11c),_0x252144(0x12a),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x252144(0x130),''][_0x252144(0x12d)]('\x0a');}
@@ -1 +1 @@
1
- const a100_0xbecb13=a100_0x5df4;(function(_0x1256e1,_0x115215){const _0x2b4fe1=a100_0x5df4,_0x33992d=_0x1256e1();while(!![]){try{const _0x4dff4c=parseInt(_0x2b4fe1(0x16f))/0x1+parseInt(_0x2b4fe1(0x19b))/0x2*(parseInt(_0x2b4fe1(0x199))/0x3)+-parseInt(_0x2b4fe1(0x16c))/0x4*(parseInt(_0x2b4fe1(0x18d))/0x5)+parseInt(_0x2b4fe1(0x176))/0x6+-parseInt(_0x2b4fe1(0x16a))/0x7+parseInt(_0x2b4fe1(0x16b))/0x8*(-parseInt(_0x2b4fe1(0x171))/0x9)+-parseInt(_0x2b4fe1(0x17d))/0xa*(-parseInt(_0x2b4fe1(0x1a5))/0xb);if(_0x4dff4c===_0x115215)break;else _0x33992d['push'](_0x33992d['shift']());}catch(_0x2d6538){_0x33992d['push'](_0x33992d['shift']());}}}(a100_0x443d,0xa0fac));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a100_0x443d(){const _0x45b720=['join','Issue\x20description\x20file\x20is\x20empty:\x20','message','issue.description_truncated','truncated','issue.description','issue.description_redactions','apiError','validation','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','1180nNIzqf','Platform\x20issue\x20reported\x20(','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','trim','push','length','redactionKinds','\x20bytes','One-line\x20issue\x20summary','Issue\x20description\x20cannot\x20be\x20empty.','Failed\x20to\x20report\x20platform\x20issue:\x20','inline','1773bWFqnx','descriptionFilePath','2158LJaOAy','string','truncated:\x20original\x20','otel://','title','issue.title','truncated\x20from\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','POST','issue.description_redaction_kinds','477543bYGfYv','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','originalBytes','file','1828869CEXwsW','14600rtkJFW','19756bcZXTs','Platform\x20issue\x20reported','cwd','19424nfrSro','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','6111CGqaIa','redacted\x20','sanitize','\x20secret(s):\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','6372144wlbmqk','str','description','compress','filter','descriptionSource','write','370btKFyf','issue','descriptionSource:\x20','redactionCount','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.'];a100_0x443d=function(){return _0x45b720;};return a100_0x443d();}function a100_0x5df4(_0x3f52c0,_0x590488){_0x3f52c0=_0x3f52c0-0x169;const _0x443d7f=a100_0x443d();let _0x5df45d=_0x443d7f[_0x3f52c0];return _0x5df45d;}export const issueReport={'service':a100_0xbecb13(0x17e),'command':'report','description':a100_0xbecb13(0x181),'risk':a100_0xbecb13(0x17c),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0xbecb13(0x179),'flags':[{'name':a100_0xbecb13(0x19f),'type':'string','required':!![],'description':a100_0xbecb13(0x195)},{'name':a100_0xbecb13(0x178),'type':a100_0xbecb13(0x19c),'description':a100_0xbecb13(0x18c)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0xbecb13(0x19c),'description':a100_0xbecb13(0x170)}],async 'validate'(_0x2391a6){const _0x182033=a100_0xbecb13,_0x1da7fa=_0x2391a6[_0x182033(0x177)](_0x182033(0x19f))[_0x182033(0x190)](),_0x567ac7=_0x2391a6[_0x182033(0x177)](_0x182033(0x178))[_0x182033(0x190)](),_0x223be8=_0x2391a6['str'](DESCRIPTION_FILE_FLAG)[_0x182033(0x190)]();if(!_0x1da7fa)throw CliErrors['flagMissing']('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3883e3=_0x567ac7[_0x182033(0x192)]>0x0,_0x448057=_0x223be8[_0x182033(0x192)]>0x0;if(_0x3883e3===_0x448057)throw CliErrors[_0x182033(0x18b)](_0x182033(0x1a2),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x448057){const _0x54c68d=resolve(process[_0x182033(0x16e)](),_0x223be8);if(!existsSync(_0x54c68d))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x54c68d);}},async 'dryRun'(_0x3d7b50){const _0xd5f771=a100_0xbecb13,_0x367410=await prepareIssueReport(_0x3d7b50);return{'method':_0xd5f771(0x1a3),'url':_0xd5f771(0x19e)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x367410['title'],'issue.description':_0x367410[_0xd5f771(0x178)],'issue.description_original_bytes':_0x367410[_0xd5f771(0x173)][_0xd5f771(0x1a7)],'issue.description_truncated':_0x367410['sanitize'][_0xd5f771(0x187)],'issue.description_redactions':_0x367410['sanitize'][_0xd5f771(0x180)],'issue.description_redaction_kinds':_0x367410[_0xd5f771(0x173)][_0xd5f771(0x193)][_0xd5f771(0x183)](',')}},'description':[_0xd5f771(0x1a6),_0xd5f771(0x17f)+_0x367410[_0xd5f771(0x17b)],_0x367410[_0xd5f771(0x19a)]?'descriptionFile:\x20'+_0x367410[_0xd5f771(0x19a)]:null,_0x367410[_0xd5f771(0x173)][_0xd5f771(0x187)]?_0xd5f771(0x19d)+_0x367410[_0xd5f771(0x173)]['originalBytes']+_0xd5f771(0x194):null,_0x367410[_0xd5f771(0x173)][_0xd5f771(0x180)]>0x0?'redactions:\x20'+_0x367410['sanitize'][_0xd5f771(0x180)]+'\x20('+_0x367410['sanitize']['redactionKinds'][_0xd5f771(0x183)](',\x20')+')':null][_0xd5f771(0x17a)](Boolean)[_0xd5f771(0x183)]('\x0a')};},async 'execute'(_0x30ca86){const _0x1c73d2=a100_0xbecb13,_0x3f9d1a=await prepareIssueReport(_0x30ca86);try{await sendPlatformIssueCollectLog({'title':_0x3f9d1a['title'],'description':_0x3f9d1a[_0x1c73d2(0x178)],'sanitize':{'originalBytes':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x1a7)],'truncated':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x187)],'redactionCount':_0x3f9d1a['sanitize'][_0x1c73d2(0x180)],'redactionKinds':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x193)]}});}catch(_0x420562){throw CliErrors[_0x1c73d2(0x18a)](_0x1c73d2(0x197)+(_0x420562 instanceof Error?_0x420562[_0x1c73d2(0x185)]:String(_0x420562)),_0x1c73d2(0x18f));}return{'ok':!![],'message':buildResultMessage(_0x3f9d1a[_0x1c73d2(0x173)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1c73d2(0x1a0),_0x1c73d2(0x188),'issue.description_original_bytes',_0x1c73d2(0x186),_0x1c73d2(0x189),_0x1c73d2(0x1a4)],'issue':{'title':_0x3f9d1a[_0x1c73d2(0x19f)],'descriptionLength':_0x3f9d1a[_0x1c73d2(0x178)][_0x1c73d2(0x192)],'descriptionSource':_0x3f9d1a[_0x1c73d2(0x17b)],..._0x3f9d1a['descriptionFilePath']?{'descriptionFile':_0x3f9d1a[_0x1c73d2(0x19a)]}:{},'sanitize':{'originalBytes':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x1a7)],'truncated':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x187)],'redactions':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x180)],'redactionKinds':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x193)]}}}};}};function buildResultMessage(_0x4fd7b4){const _0x87426=a100_0xbecb13,_0x386023=[];return _0x4fd7b4[_0x87426(0x187)]&&_0x386023['push'](_0x87426(0x1a1)+_0x4fd7b4[_0x87426(0x1a7)]+_0x87426(0x194)),_0x4fd7b4['redactionCount']>0x0&&_0x386023[_0x87426(0x191)](_0x87426(0x172)+_0x4fd7b4[_0x87426(0x180)]+_0x87426(0x174)+_0x4fd7b4[_0x87426(0x193)][_0x87426(0x183)](',\x20')),_0x386023[_0x87426(0x192)]===0x0?_0x87426(0x16d):_0x87426(0x18e)+_0x386023[_0x87426(0x183)](';\x20')+')';}async function prepareIssueReport(_0x5e70a7){const _0x28e7a4=a100_0xbecb13,_0x15a571=_0x5e70a7[_0x28e7a4(0x177)](_0x28e7a4(0x19f))[_0x28e7a4(0x190)](),_0x578c76=_0x5e70a7[_0x28e7a4(0x177)](_0x28e7a4(0x178)),_0x24d04e=_0x5e70a7[_0x28e7a4(0x177)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x24d04e){const _0x4fc73c=_0x578c76;if(!_0x4fc73c[_0x28e7a4(0x190)]())throw CliErrors[_0x28e7a4(0x18b)](_0x28e7a4(0x196),_0x28e7a4(0x175));const _0x28cc08=sanitizeIssueDescription(_0x4fc73c);return{'title':_0x15a571,'description':_0x28cc08[_0x28e7a4(0x178)],'descriptionSource':_0x28e7a4(0x198),'sanitize':_0x28cc08};}const _0x34ed4e=resolve(process[_0x28e7a4(0x16e)](),_0x24d04e),_0x10354d=await readFile(_0x34ed4e,'utf8');if(!_0x10354d['trim']())throw CliErrors[_0x28e7a4(0x18b)](_0x28e7a4(0x184)+_0x34ed4e,_0x28e7a4(0x182));const _0x575c43=sanitizeIssueDescription(_0x10354d);return{'title':_0x15a571,'description':_0x575c43[_0x28e7a4(0x178)],'descriptionSource':_0x28e7a4(0x169),'descriptionFilePath':_0x34ed4e,'sanitize':_0x575c43};}
1
+ const a98_0x475e5d=a98_0x4506;(function(_0x4ebc72,_0x5e410b){const _0x17aaec=a98_0x4506,_0x7562c3=_0x4ebc72();while(!![]){try{const _0x317840=-parseInt(_0x17aaec(0x9f))/0x1+parseInt(_0x17aaec(0xb8))/0x2*(-parseInt(_0x17aaec(0xb2))/0x3)+-parseInt(_0x17aaec(0xce))/0x4*(-parseInt(_0x17aaec(0xb9))/0x5)+parseInt(_0x17aaec(0xd2))/0x6+parseInt(_0x17aaec(0xad))/0x7*(parseInt(_0x17aaec(0xb6))/0x8)+-parseInt(_0x17aaec(0xc4))/0x9+-parseInt(_0x17aaec(0xab))/0xa;if(_0x317840===_0x5e410b)break;else _0x7562c3['push'](_0x7562c3['shift']());}catch(_0x3e699b){_0x7562c3['push'](_0x7562c3['shift']());}}}(a98_0x2e94,0x1b3c5));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a98_0x2e94(){const _0x51101f=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','validation','truncated','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','write','file','str','132604mQIuVN','join','descriptionSource','string','948594oNiIsa','cwd','One-line\x20issue\x20summary','File\x20not\x20found:\x20','\x20bytes','redactionCount','42277shNqca','utf8','report','title','apiError','\x20secret(s):\x20','issue.description_redactions','POST','descriptionFile:\x20','otel://','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','sanitize','614520fQjyMO','filter','30457KWqexo','trim','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated\x20from\x20','Issue\x20description\x20cannot\x20be\x20empty.','197871swOykr','Platform\x20issue\x20reported','Issue\x20description\x20file\x20is\x20empty:\x20','descriptionFilePath','296smcfoA','issue.description_truncated','2ngZFyw','15xrOwqP','push','redactions:\x20','description','redactionKinds','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','truncated:\x20original\x20','issue.title','length','originalBytes','descriptionSource:\x20','1235664ZxgESi','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.'];a98_0x2e94=function(){return _0x51101f;};return a98_0x2e94();}import{resolve}from'node:path';function a98_0x4506(_0x223c9d,_0x5ac6f0){_0x223c9d=_0x223c9d-0x9b;const _0x2e94bd=a98_0x2e94();let _0x450638=_0x2e94bd[_0x223c9d];return _0x450638;}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':'issue','command':a98_0x475e5d(0xa1),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a98_0x475e5d(0xcb),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a98_0x475e5d(0xa2),'type':a98_0x475e5d(0xd1),'required':!![],'description':a98_0x475e5d(0x9b)},{'name':a98_0x475e5d(0xbc),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a98_0x475e5d(0xc5)}],async 'validate'(_0x1c1890){const _0x1a59a0=a98_0x475e5d,_0x81d3d5=_0x1c1890[_0x1a59a0(0xcd)]('title')[_0x1a59a0(0xae)](),_0x124f16=_0x1c1890[_0x1a59a0(0xcd)]('description')[_0x1a59a0(0xae)](),_0x16d791=_0x1c1890[_0x1a59a0(0xcd)](DESCRIPTION_FILE_FLAG)[_0x1a59a0(0xae)]();if(!_0x81d3d5)throw CliErrors['flagMissing'](_0x1a59a0(0xa2),_0x1a59a0(0xbe));const _0x2de3f9=_0x124f16[_0x1a59a0(0xc1)]>0x0,_0x1f3036=_0x16d791[_0x1a59a0(0xc1)]>0x0;if(_0x2de3f9===_0x1f3036)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x1a59a0(0xaf));if(_0x1f3036){const _0x1d85cd=resolve(process[_0x1a59a0(0xd3)](),_0x16d791);if(!existsSync(_0x1d85cd))throw CliErrors[_0x1a59a0(0xc8)](_0x1a59a0(0x9c)+_0x1d85cd);}},async 'dryRun'(_0x3774dc){const _0x436b1b=a98_0x475e5d,_0x349a5d=await prepareIssueReport(_0x3774dc);return{'method':_0x436b1b(0xa6),'url':_0x436b1b(0xa8)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x349a5d[_0x436b1b(0xa2)],'issue.description':_0x349a5d[_0x436b1b(0xbc)],'issue.description_original_bytes':_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0xc2)],'issue.description_truncated':_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0xc9)],'issue.description_redactions':_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0x9e)],'issue.description_redaction_kinds':_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0xbd)][_0x436b1b(0xcf)](',')}},'description':[_0x436b1b(0xa9),_0x436b1b(0xc3)+_0x349a5d['descriptionSource'],_0x349a5d[_0x436b1b(0xb5)]?_0x436b1b(0xa7)+_0x349a5d[_0x436b1b(0xb5)]:null,_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0xc9)]?_0x436b1b(0xbf)+_0x349a5d['sanitize'][_0x436b1b(0xc2)]+_0x436b1b(0x9d):null,_0x349a5d['sanitize'][_0x436b1b(0x9e)]>0x0?_0x436b1b(0xbb)+_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0x9e)]+'\x20('+_0x349a5d[_0x436b1b(0xaa)][_0x436b1b(0xbd)]['join'](',\x20')+')':null][_0x436b1b(0xac)](Boolean)[_0x436b1b(0xcf)]('\x0a')};},async 'execute'(_0x50cde6){const _0x1654d2=a98_0x475e5d,_0x4508a2=await prepareIssueReport(_0x50cde6);try{await sendPlatformIssueCollectLog({'title':_0x4508a2[_0x1654d2(0xa2)],'description':_0x4508a2[_0x1654d2(0xbc)],'sanitize':{'originalBytes':_0x4508a2['sanitize'][_0x1654d2(0xc2)],'truncated':_0x4508a2[_0x1654d2(0xaa)]['truncated'],'redactionCount':_0x4508a2[_0x1654d2(0xaa)]['redactionCount'],'redactionKinds':_0x4508a2['sanitize'][_0x1654d2(0xbd)]}});}catch(_0x4750a6){throw CliErrors[_0x1654d2(0xa3)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x4750a6 instanceof Error?_0x4750a6['message']:String(_0x4750a6)),_0x1654d2(0xc6));}return{'ok':!![],'message':buildResultMessage(_0x4508a2[_0x1654d2(0xaa)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1654d2(0xc0),'issue.description','issue.description_original_bytes',_0x1654d2(0xb7),_0x1654d2(0xa5),'issue.description_redaction_kinds'],'issue':{'title':_0x4508a2[_0x1654d2(0xa2)],'descriptionLength':_0x4508a2['description']['length'],'descriptionSource':_0x4508a2[_0x1654d2(0xd0)],..._0x4508a2[_0x1654d2(0xb5)]?{'descriptionFile':_0x4508a2[_0x1654d2(0xb5)]}:{},'sanitize':{'originalBytes':_0x4508a2['sanitize'][_0x1654d2(0xc2)],'truncated':_0x4508a2['sanitize'][_0x1654d2(0xc9)],'redactions':_0x4508a2[_0x1654d2(0xaa)][_0x1654d2(0x9e)],'redactionKinds':_0x4508a2[_0x1654d2(0xaa)]['redactionKinds']}}}};}};function buildResultMessage(_0x3a99d6){const _0x2ea055=a98_0x475e5d,_0x5c1b80=[];return _0x3a99d6[_0x2ea055(0xc9)]&&_0x5c1b80['push'](_0x2ea055(0xb0)+_0x3a99d6['originalBytes']+_0x2ea055(0x9d)),_0x3a99d6[_0x2ea055(0x9e)]>0x0&&_0x5c1b80[_0x2ea055(0xba)]('redacted\x20'+_0x3a99d6[_0x2ea055(0x9e)]+_0x2ea055(0xa4)+_0x3a99d6['redactionKinds'][_0x2ea055(0xcf)](',\x20')),_0x5c1b80[_0x2ea055(0xc1)]===0x0?_0x2ea055(0xb3):'Platform\x20issue\x20reported\x20('+_0x5c1b80['join'](';\x20')+')';}async function prepareIssueReport(_0x2026f4){const _0x630cda=a98_0x475e5d,_0x271bbb=_0x2026f4['str'](_0x630cda(0xa2))['trim'](),_0x10bd90=_0x2026f4[_0x630cda(0xcd)]('description'),_0x3b4491=_0x2026f4[_0x630cda(0xcd)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x3b4491){const _0x39ac49=_0x10bd90;if(!_0x39ac49[_0x630cda(0xae)]())throw CliErrors[_0x630cda(0xc8)](_0x630cda(0xb1),_0x630cda(0xca));const _0x114f31=sanitizeIssueDescription(_0x39ac49);return{'title':_0x271bbb,'description':_0x114f31['description'],'descriptionSource':'inline','sanitize':_0x114f31};}const _0x458679=resolve(process[_0x630cda(0xd3)](),_0x3b4491),_0xc78896=await readFile(_0x458679,_0x630cda(0xa0));if(!_0xc78896[_0x630cda(0xae)]())throw CliErrors[_0x630cda(0xc8)](_0x630cda(0xb4)+_0x458679,_0x630cda(0xc7));const _0x44f24b=sanitizeIssueDescription(_0xc78896);return{'title':_0x271bbb,'description':_0x44f24b['description'],'descriptionSource':_0x630cda(0xcc),'descriptionFilePath':_0x458679,'sanitize':_0x44f24b};}
@@ -1 +1 @@
1
- const a101_0x14909d=a101_0xb207;(function(_0x49b9b4,_0x5b7f3b){const _0x5cdcfc=a101_0xb207,_0x2f31c3=_0x49b9b4();while(!![]){try{const _0x13c53b=-parseInt(_0x5cdcfc(0x192))/0x1+parseInt(_0x5cdcfc(0x196))/0x2+-parseInt(_0x5cdcfc(0x1ad))/0x3*(-parseInt(_0x5cdcfc(0x193))/0x4)+-parseInt(_0x5cdcfc(0x191))/0x5*(parseInt(_0x5cdcfc(0x19e))/0x6)+-parseInt(_0x5cdcfc(0x1b0))/0x7*(-parseInt(_0x5cdcfc(0x1aa))/0x8)+-parseInt(_0x5cdcfc(0x19c))/0x9*(-parseInt(_0x5cdcfc(0x1af))/0xa)+-parseInt(_0x5cdcfc(0x1b2))/0xb*(parseInt(_0x5cdcfc(0x199))/0xc);if(_0x13c53b===_0x5b7f3b)break;else _0x2f31c3['push'](_0x2f31c3['shift']());}catch(_0x37d742){_0x2f31c3['push'](_0x2f31c3['shift']());}}}(a101_0x5b33,0x3df9a));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a101_0x14909d(0x1ab),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a101_0x14909d(0x1b3)},{'kind':a101_0x14909d(0x1a5),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a101_0x14909d(0x194),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0x14909d(0x1b1)},{'kind':a101_0x14909d(0x19b),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a101_0x14909d(0x1a1)},{'kind':a101_0x14909d(0x19d),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x14909d(0x1a2)},{'kind':a101_0x14909d(0x1a0),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0x14909d(0x1a8)}];export function sanitizeIssueDescription(_0x31d5b8){const _0x11640b=a101_0x14909d,_0x577b5a=Buffer['byteLength'](_0x31d5b8,_0x11640b(0x19f)),_0x3f8d4c=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xcac992=_0x31d5b8,_0x54c928=0x0;const _0x2a97d1=[];if(!_0x3f8d4c){const _0x444c96=protectOssAccessKeyIds(_0xcac992);_0xcac992=_0x444c96['description'];for(const _0x591413 of REDACTION_RULES){let _0x570395=0x0;_0xcac992=_0xcac992[_0x11640b(0x1a9)](_0x591413[_0x11640b(0x1a3)],(_0x4b3bb2,_0x57bea9)=>{const _0x2d5ec0=_0x11640b;_0x570395+=0x1;const _0x287111=typeof _0x57bea9==='string'?_0x57bea9:'';return _0x287111+'['+_0x591413[_0x2d5ec0(0x197)]+']';}),_0x570395>0x0&&(_0x54c928+=_0x570395,!_0x2a97d1[_0x11640b(0x1ae)](_0x591413[_0x11640b(0x19a)])&&_0x2a97d1[_0x11640b(0x1ac)](_0x591413['kind']));}_0xcac992=_0x444c96[_0x11640b(0x1a6)](_0xcac992);}let _0x5605db=![];if(Buffer[_0x11640b(0x198)](_0xcac992,_0x11640b(0x19f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x5605db=!![];const _0x42177a=Buffer[_0x11640b(0x198)](TRUNCATION_NOTICE,_0x11640b(0x19f)),_0x1c0175=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x42177a);_0xcac992=sliceUtf8Bytes(_0xcac992,_0x1c0175)+TRUNCATION_NOTICE;}return{'description':_0xcac992,'originalBytes':_0x577b5a,'truncated':_0x5605db,'redactionCount':_0x54c928,'redactionKinds':_0x2a97d1};}function a101_0xb207(_0x61a1eb,_0x11eef1){_0x61a1eb=_0x61a1eb-0x191;const _0x5b33db=a101_0x5b33();let _0xb207af=_0x5b33db[_0x61a1eb];return _0xb207af;}function protectOssAccessKeyIds(_0x3f1730){const _0x45a542=a101_0x14909d,_0x5b462f=[],_0x1e2e81=_0x3f1730[_0x45a542(0x1a9)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x3a7cfe,_0x3a4ef1)=>{const _0x106747=_0x45a542,_0x335d51=_0x5b462f[_0x106747(0x1ac)](_0x3a7cfe[_0x106747(0x1a7)](_0x3a4ef1[_0x106747(0x195)]))-0x1;return _0x3a4ef1+'__RB_OSS_ID_'+_0x335d51+'__';});return{'description':_0x1e2e81,'restore':_0x22d5a8=>_0x22d5a8[_0x45a542(0x1a9)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x208f63,_0xbb6c8a,_0x25189a)=>{const _0xa86db4=_0x5b462f[Number(_0x25189a)];return _0xa86db4===undefined?_0x208f63:''+_0xbb6c8a+_0xa86db4;})};}function sliceUtf8Bytes(_0x559fef,_0x11bd2a){const _0x2b5f19=a101_0x14909d;if(_0x11bd2a<=0x0)return'';const _0x47ef2a=Buffer['from'](_0x559fef,_0x2b5f19(0x19f));if(_0x47ef2a[_0x2b5f19(0x198)]<=_0x11bd2a)return _0x559fef;let _0x1f6b30=_0x11bd2a;while(_0x1f6b30>0x0){const _0x23a85c=_0x47ef2a[_0x1f6b30];if(_0x23a85c===undefined||(_0x23a85c&0xc0)!==0x80)break;_0x1f6b30-=0x1;}return _0x47ef2a['subarray'](0x0,_0x1f6b30)[_0x2b5f19(0x1a4)]('utf8');}function a101_0x5b33(){const _0x2b75cf=['access-key','9ebQDjf','password','102HqdAme','utf8','bearer-jwt','REDACTED:access-key','REDACTED:password','pattern','toString','authorization','restore','slice','REDACTED:bearer-jwt','replace','63016DoilSI','cookie','push','6dbYYCT','includes','4663050qMkZLE','21pmDesp','REDACTED:private-key','19283LDvnfL','REDACTED:cookie','38175VoDTCx','396083ACnPqa','228032JlqXBm','private-key','length','397130srfwQf','label','byteLength','156rbKyJp','kind'];a101_0x5b33=function(){return _0x2b75cf;};return a101_0x5b33();}
1
+ const a99_0x467194=a99_0x45cd;(function(_0x5fba97,_0x87e2ea){const _0x42891c=a99_0x45cd,_0x3993e0=_0x5fba97();while(!![]){try{const _0x47823a=parseInt(_0x42891c(0xbf))/0x1*(parseInt(_0x42891c(0xbe))/0x2)+parseInt(_0x42891c(0xbd))/0x3+-parseInt(_0x42891c(0xc8))/0x4*(-parseInt(_0x42891c(0xc0))/0x5)+parseInt(_0x42891c(0xb1))/0x6+parseInt(_0x42891c(0xc6))/0x7+-parseInt(_0x42891c(0xb8))/0x8+-parseInt(_0x42891c(0xad))/0x9;if(_0x47823a===_0x87e2ea)break;else _0x3993e0['push'](_0x3993e0['shift']());}catch(_0x1e07f4){_0x3993e0['push'](_0x3993e0['shift']());}}}(a99_0x669b,0xaf08c));function a99_0x669b(){const _0x52d83a=['REDACTED:private-key','label','slice','434292Obypfe','REDACTED:password','REDACTED:authorization','REDACTED:access-key','max','cookie','REDACTED:cookie','7258104UHnsFd','from','byteLength','REDACTED:bearer-jwt','push','3858996LHwEAE','121718sXWXxh','1plznRF','5YQChrU','string','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','access-key','subarray','utf8','3525865GGRFCf','pattern','569588TZyAST','includes','restore','private-key','length','replace','description','kind','3973158shCklV'];a99_0x669b=function(){return _0x52d83a;};return a99_0x669b();}function a99_0x45cd(_0x2d8164,_0x113692){_0x2d8164=_0x2d8164-0xac;const _0x669b11=a99_0x669b();let _0x45cd73=_0x669b11[_0x2d8164];return _0x45cd73;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a99_0x467194(0xc2),REDACTION_RULES=[{'kind':a99_0x467194(0xb6),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a99_0x467194(0xb7)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a99_0x467194(0xb3)},{'kind':a99_0x467194(0xcb),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a99_0x467194(0xae)},{'kind':a99_0x467194(0xc3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a99_0x467194(0xb4)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a99_0x467194(0xb2)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a99_0x467194(0xbb)}];export function sanitizeIssueDescription(_0x199c65){const _0x5e19f5=a99_0x467194,_0x42805e=Buffer[_0x5e19f5(0xba)](_0x199c65,_0x5e19f5(0xc5)),_0x53ad14=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x406b6a=_0x199c65,_0x3ad462=0x0;const _0x3ce84e=[];if(!_0x53ad14){const _0x16bd18=protectOssAccessKeyIds(_0x406b6a);_0x406b6a=_0x16bd18[_0x5e19f5(0xce)];for(const _0x264bf3 of REDACTION_RULES){let _0x2f6888=0x0;_0x406b6a=_0x406b6a[_0x5e19f5(0xcd)](_0x264bf3[_0x5e19f5(0xc7)],(_0x214111,_0x4fa140)=>{const _0x34c928=_0x5e19f5;_0x2f6888+=0x1;const _0x32da8e=typeof _0x4fa140===_0x34c928(0xc1)?_0x4fa140:'';return _0x32da8e+'['+_0x264bf3[_0x34c928(0xaf)]+']';}),_0x2f6888>0x0&&(_0x3ad462+=_0x2f6888,!_0x3ce84e[_0x5e19f5(0xc9)](_0x264bf3[_0x5e19f5(0xac)])&&_0x3ce84e[_0x5e19f5(0xbc)](_0x264bf3[_0x5e19f5(0xac)]));}_0x406b6a=_0x16bd18[_0x5e19f5(0xca)](_0x406b6a);}let _0x24f56e=![];if(Buffer[_0x5e19f5(0xba)](_0x406b6a,_0x5e19f5(0xc5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x24f56e=!![];const _0x41bcb3=Buffer[_0x5e19f5(0xba)](TRUNCATION_NOTICE,_0x5e19f5(0xc5)),_0x405098=Math[_0x5e19f5(0xb5)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x41bcb3);_0x406b6a=sliceUtf8Bytes(_0x406b6a,_0x405098)+TRUNCATION_NOTICE;}return{'description':_0x406b6a,'originalBytes':_0x42805e,'truncated':_0x24f56e,'redactionCount':_0x3ad462,'redactionKinds':_0x3ce84e};}function protectOssAccessKeyIds(_0x38019e){const _0x22f71b=a99_0x467194,_0x3c8013=[],_0x303d28=_0x38019e[_0x22f71b(0xcd)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x51f1f1,_0x3f4d7c)=>{const _0x49fe1e=_0x22f71b,_0x1e259d=_0x3c8013['push'](_0x51f1f1[_0x49fe1e(0xb0)](_0x3f4d7c[_0x49fe1e(0xcc)]))-0x1;return _0x3f4d7c+'__RB_OSS_ID_'+_0x1e259d+'__';});return{'description':_0x303d28,'restore':_0x340aee=>_0x340aee[_0x22f71b(0xcd)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x1c0127,_0xf1df3d,_0x1c8193)=>{const _0x59fcb8=_0x3c8013[Number(_0x1c8193)];return _0x59fcb8===undefined?_0x1c0127:''+_0xf1df3d+_0x59fcb8;})};}function sliceUtf8Bytes(_0xd6f86d,_0x318fdf){const _0x41836b=a99_0x467194;if(_0x318fdf<=0x0)return'';const _0x5100cc=Buffer[_0x41836b(0xb9)](_0xd6f86d,_0x41836b(0xc5));if(_0x5100cc[_0x41836b(0xba)]<=_0x318fdf)return _0xd6f86d;let _0x3b5f83=_0x318fdf;while(_0x3b5f83>0x0){const _0x470303=_0x5100cc[_0x3b5f83];if(_0x470303===undefined||(_0x470303&0xc0)!==0x80)break;_0x3b5f83-=0x1;}return _0x5100cc[_0x41836b(0xc4)](0x0,_0x3b5f83)['toString'](_0x41836b(0xc5));}
@@ -1 +1 @@
1
- const a102_0x5e48a6=a102_0x5d3f;function a102_0x5b86(){const _0x6ae321=['title','3952719VhjziM','Created\x20company\x20knowledge\x20base\x20','11252885TSjCkS','2JKwEgN','13257wTyXfp','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','kb_verification_failed','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','kb_file_required','\x20--format\x20compress','str','Company\x20knowledge\x20base\x20','write','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','trim','byteSize','POST','stringify','--file\x20is\x20required.','file','contentHash','rabetbase\x20kb\x20list\x20--title\x20','231751msVwUt','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','company','5084HkFNAh','9417204bNkPbp','Knowledge-base\x20title','10htXgmO','22344839IUDNAN','kb_title_required','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','rabetbase\x20kb\x20detail\x20--id\x20','appCode','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','\x20--format\x20compress`\x20before\x20choosing\x20update.','create','kb_already_exists','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','content','kb_create_outcome_unknown','8912rOUvhp','4585cjJRTm','\x20with\x20title\x20'];a102_0x5b86=function(){return _0x6ae321;};return a102_0x5b86();}(function(_0x7f85ec,_0x3b6756){const _0x226ebd=a102_0x5d3f,_0x1a3371=_0x7f85ec();while(!![]){try{const _0x33202c=-parseInt(_0x226ebd(0xb7))/0x1+-parseInt(_0x226ebd(0xa3))/0x2*(parseInt(_0x226ebd(0xa0))/0x3)+parseInt(_0x226ebd(0xba))/0x4*(-parseInt(_0x226ebd(0xcb))/0x5)+parseInt(_0x226ebd(0xbb))/0x6+parseInt(_0x226ebd(0xa2))/0x7+-parseInt(_0x226ebd(0xca))/0x8*(parseInt(_0x226ebd(0xa4))/0x9)+-parseInt(_0x226ebd(0xbd))/0xa*(-parseInt(_0x226ebd(0xbe))/0xb);if(_0x33202c===_0x3b6756)break;else _0x1a3371['push'](_0x1a3371['shift']());}catch(_0x5753aa){_0x1a3371['push'](_0x1a3371['shift']());}}}(a102_0x5b86,0xd02cd));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 a102_0x5d3f(_0x1280dd,_0x225594){_0x1280dd=_0x1280dd-0x9f;const _0x5b865b=a102_0x5b86();let _0x5d3fb9=_0x5b865b[_0x1280dd];return _0x5d3fb9;}function readCreateInput(_0x2f4e6e){const _0x5027a8=a102_0x5d3f,_0x25d869=_0x2f4e6e[_0x5027a8(0xab)]('title')[_0x5027a8(0xaf)]();if(!_0x25d869)throw kbError(_0x5027a8(0xbf),'--title\x20is\x20required.');const _0x3eafaa=_0x2f4e6e[_0x5027a8(0xab)](_0x5027a8(0xb4))['trim']();if(!_0x3eafaa)throw kbError(_0x5027a8(0xa9),_0x5027a8(0xb3),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x25d869,'file':_0x3eafaa};}async function prepareCreate(_0x4a38a4){const _0x57eec6=a102_0x5d3f,_0x2cc226=readCreateInput(_0x4a38a4),_0x57946d=await readKbFile(_0x2cc226[_0x57eec6(0xb4)]),_0x2b9496=await fetchAllCompanyKnowledgeBases(_0x4a38a4,{'title':_0x2cc226['title']}),_0x5b3397=findExactCompanyKnowledgeBases(_0x2b9496,_0x4a38a4[_0x57eec6(0xc2)],_0x2cc226['title']);if(_0x5b3397['length']>0x0)throw kbError(_0x57eec6(0xc6),_0x57eec6(0xa5)+_0x4a38a4['appCode']+_0x57eec6(0xcc)+_0x2cc226[_0x57eec6(0x9f)]+'.',_0x57eec6(0xc7)+_0x5b3397[0x0]['id']+_0x57eec6(0xc4));return{..._0x2cc226,'content':_0x57946d};}function plannedAfter(_0x29561a,_0x2c67ea){const _0x52721a=a102_0x5d3f;return{'scope':_0x52721a(0xb9),'appCode':_0x29561a[_0x52721a(0xc2)],'title':_0x2c67ea[_0x52721a(0x9f)],'contentByteSize':_0x2c67ea['content'][_0x52721a(0xb0)],'contentHash':_0x2c67ea['content'][_0x52721a(0xb5)]};}function verifyCreatedState(_0x6f1163,_0x15b555,_0xe416){const _0x129e9e=a102_0x5d3f;assertCompanyKnowledgeBase(_0xe416,_0x6f1163['appCode'],_0xe416['id']);const _0x1d1733=inspectKbContent(_0xe416[_0x129e9e(0xc8)]);if(_0xe416['title']!==_0x15b555[_0x129e9e(0x9f)]||_0x1d1733[_0x129e9e(0xb5)]!==_0x15b555[_0x129e9e(0xc8)]['contentHash'])throw kbError(_0x129e9e(0xa6),_0x129e9e(0xac)+_0xe416['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x129e9e(0xa7)+_0xe416['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0xe416);}export const kbCreate={'service':'kb','command':a102_0x5e48a6(0xc5),'description':a102_0x5e48a6(0xc0),'risk':a102_0x5e48a6(0xad),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a102_0x5e48a6(0x9f),'type':'string','required':!![],'description':a102_0x5e48a6(0xbc)},{'name':a102_0x5e48a6(0xb4),'type':'string','required':!![],'description':a102_0x5e48a6(0xb8)}],async 'validate'(_0xac1099){readCreateInput(_0xac1099);},async 'dryRun'(_0x1cc688){const _0x2a2773=a102_0x5e48a6,_0x5b1988=await prepareCreate(_0x1cc688);return asDryRunResult({'operation':_0x2a2773(0xc5),'selector':{'scope':_0x2a2773(0xb9),'appCode':_0x1cc688[_0x2a2773(0xc2)],'title':_0x5b1988[_0x2a2773(0x9f)]},'before':null,'after':plannedAfter(_0x1cc688,_0x5b1988),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x2a2773(0xb6)+JSON[_0x2a2773(0xb2)](_0x5b1988[_0x2a2773(0x9f)])+_0x2a2773(0xaa)}},{'method':_0x2a2773(0xb1),'url':CREATE_PATH});},async 'execute'(_0xb71a76){const _0x241315=a102_0x5e48a6,_0x5c0c39=await prepareCreate(_0xb71a76);let _0x57d375,_0x2567a1=![];try{const _0x2f754a=await createEnterpriseKnowledgeBase(_0xb71a76['cookie'],{'appCode':_0xb71a76[_0x241315(0xc2)],'title':_0x5c0c39['title'],'content':_0x5c0c39[_0x241315(0xc8)][_0x241315(0xc8)]});assertCompanyKnowledgeBase(_0x2f754a,_0xb71a76[_0x241315(0xc2)],_0x2f754a['id']),_0x57d375=_0x2f754a['id'];}catch(_0x5553dc){if(!isPlatformTransportFailure(_0x5553dc))throw _0x5553dc;_0x2567a1=!![];}if(_0x57d375===undefined){const _0x25fd57=await verifyKbMutationReadback(_0x241315(0xc5),!![],()=>fetchAllCompanyKnowledgeBases(_0xb71a76,{'title':_0x5c0c39[_0x241315(0x9f)]})),_0x23c036=findExactCompanyKnowledgeBases(_0x25fd57,_0xb71a76[_0x241315(0xc2)],_0x5c0c39['title']);if(_0x23c036['length']!==0x1)throw kbError(_0x241315(0xc9),_0x241315(0xae)+_0x23c036['length']+'.',_0x241315(0xc3));_0x57d375=_0x23c036[0x0]['id'];}const _0x239d90=await verifyKbMutationReadback(_0x241315(0xc5),_0x2567a1,()=>requireKb(_0xb71a76,_0x57d375)),_0x3e45be=verifyCreatedState(_0xb71a76,_0x5c0c39,_0x239d90),_0x2ff0c4=_0x2567a1?[_0x241315(0xa8)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x3e45be['id'],'scope':'company','appCode':_0x3e45be[_0x241315(0xc2)]},'before':null,'after':_0x3e45be,'dryRun':![],'backend':{'method':_0x241315(0xb1),'path':CREATE_PATH},'warnings':_0x2ff0c4,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2567a1,'lookupCommand':_0x241315(0xc1)+_0x3e45be['id']+_0x241315(0xaa)}},'message':_0x241315(0xa1)+_0x3e45be['id']+'\x20for\x20'+_0x3e45be[_0x241315(0xc2)]};}};
1
+ const a100_0x54a8b4=a100_0x12ae;function a100_0x22ec(){const _0x51dd83=['/admin/knowledge-base/create','POST','string','\x20with\x20title\x20','appCode','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','content','1575768jxYNpS','str','17331600svqAlc','9836zWyjqA','\x20--format\x20compress','kb_verification_failed','rabetbase\x20kb\x20list\x20--title\x20','\x20--format\x20compress`\x20before\x20choosing\x20update.','5495260kFeEnB','write','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','create','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','339ANZnct','contentHash','4IuQCsn','2965823eTNGdB','trim','Created\x20company\x20knowledge\x20base\x20','kb_already_exists','1360965IFEwFR','company','length','18jOnFAo','\x20for\x20','rabetbase\x20kb\x20detail\x20--id\x20','126818qDpqve','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','12YGBGSn','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge\x20base\x20','--title\x20is\x20required.','--file\x20is\x20required.','file','title','cookie','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.'];a100_0x22ec=function(){return _0x51dd83;};return a100_0x22ec();}(function(_0x663fb4,_0x54539e){const _0x5adbb5=a100_0x12ae,_0x383588=_0x663fb4();while(!![]){try{const _0x4dd8c8=-parseInt(_0x5adbb5(0x1b7))/0x1*(parseInt(_0x5adbb5(0x192))/0x2)+-parseInt(_0x5adbb5(0x1b5))/0x3*(-parseInt(_0x5adbb5(0x1ab))/0x4)+parseInt(_0x5adbb5(0x1bc))/0x5+parseInt(_0x5adbb5(0x194))/0x6*(parseInt(_0x5adbb5(0x1b8))/0x7)+parseInt(_0x5adbb5(0x1a8))/0x8*(parseInt(_0x5adbb5(0x18f))/0x9)+parseInt(_0x5adbb5(0x1b0))/0xa+-parseInt(_0x5adbb5(0x1aa))/0xb;if(_0x4dd8c8===_0x54539e)break;else _0x383588['push'](_0x383588['shift']());}catch(_0x4f0201){_0x383588['push'](_0x383588['shift']());}}}(a100_0x22ec,0x7ceb6));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=a100_0x54a8b4(0x19d);function readCreateInput(_0x509e51){const _0x3f5ce4=a100_0x54a8b4,_0x2ca658=_0x509e51[_0x3f5ce4(0x1a9)](_0x3f5ce4(0x19a))[_0x3f5ce4(0x1b9)]();if(!_0x2ca658)throw kbError('kb_title_required',_0x3f5ce4(0x197));const _0x553a4d=_0x509e51['str'](_0x3f5ce4(0x199))['trim']();if(!_0x553a4d)throw kbError('kb_file_required',_0x3f5ce4(0x198),_0x3f5ce4(0x1a2));return{'title':_0x2ca658,'file':_0x553a4d};}async function prepareCreate(_0x1f2308){const _0x924991=a100_0x54a8b4,_0x29423e=readCreateInput(_0x1f2308),_0x34ac01=await readKbFile(_0x29423e[_0x924991(0x199)]),_0x38e974=await fetchAllCompanyKnowledgeBases(_0x1f2308,{'title':_0x29423e[_0x924991(0x19a)]}),_0x5a6fd9=findExactCompanyKnowledgeBases(_0x38e974,_0x1f2308['appCode'],_0x29423e[_0x924991(0x19a)]);if(_0x5a6fd9[_0x924991(0x1be)]>0x0)throw kbError(_0x924991(0x1bb),_0x924991(0x193)+_0x1f2308[_0x924991(0x1a1)]+_0x924991(0x1a0)+_0x29423e[_0x924991(0x19a)]+'.',_0x924991(0x1b4)+_0x5a6fd9[0x0]['id']+_0x924991(0x1af));return{..._0x29423e,'content':_0x34ac01};}function a100_0x12ae(_0x3c5dbb,_0x5af2b2){_0x3c5dbb=_0x3c5dbb-0x18f;const _0x22ec30=a100_0x22ec();let _0x12ae1c=_0x22ec30[_0x3c5dbb];return _0x12ae1c;}function plannedAfter(_0xc1638a,_0x30c11d){const _0x526321=a100_0x54a8b4;return{'scope':_0x526321(0x1bd),'appCode':_0xc1638a[_0x526321(0x1a1)],'title':_0x30c11d['title'],'contentByteSize':_0x30c11d[_0x526321(0x1a7)]['byteSize'],'contentHash':_0x30c11d[_0x526321(0x1a7)][_0x526321(0x1b6)]};}function verifyCreatedState(_0x307252,_0x90339f,_0x112c19){const _0x20bf2c=a100_0x54a8b4;assertCompanyKnowledgeBase(_0x112c19,_0x307252[_0x20bf2c(0x1a1)],_0x112c19['id']);const _0x12cff1=inspectKbContent(_0x112c19[_0x20bf2c(0x1a7)]);if(_0x112c19[_0x20bf2c(0x19a)]!==_0x90339f[_0x20bf2c(0x19a)]||_0x12cff1[_0x20bf2c(0x1b6)]!==_0x90339f[_0x20bf2c(0x1a7)][_0x20bf2c(0x1b6)])throw kbError(_0x20bf2c(0x1ad),_0x20bf2c(0x196)+_0x112c19['id']+_0x20bf2c(0x1b2),_0x20bf2c(0x195)+_0x112c19['id']+_0x20bf2c(0x19c));return projectKb(_0x112c19);}export const kbCreate={'service':'kb','command':'create','description':a100_0x54a8b4(0x1a3),'risk':a100_0x54a8b4(0x1b1),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a100_0x54a8b4(0x19a),'type':a100_0x54a8b4(0x19f),'required':!![],'description':'Knowledge-base\x20title'},{'name':a100_0x54a8b4(0x199),'type':a100_0x54a8b4(0x19f),'required':!![],'description':a100_0x54a8b4(0x1a5)}],async 'validate'(_0x4ea156){readCreateInput(_0x4ea156);},async 'dryRun'(_0x23d3ae){const _0x378e18=a100_0x54a8b4,_0x556f8b=await prepareCreate(_0x23d3ae);return asDryRunResult({'operation':'create','selector':{'scope':_0x378e18(0x1bd),'appCode':_0x23d3ae[_0x378e18(0x1a1)],'title':_0x556f8b[_0x378e18(0x19a)]},'before':null,'after':plannedAfter(_0x23d3ae,_0x556f8b),'dryRun':!![],'backend':{'method':_0x378e18(0x19e),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x378e18(0x1ae)+JSON['stringify'](_0x556f8b[_0x378e18(0x19a)])+_0x378e18(0x1ac)}},{'method':_0x378e18(0x19e),'url':CREATE_PATH});},async 'execute'(_0x418a59){const _0x381733=a100_0x54a8b4,_0x115367=await prepareCreate(_0x418a59);let _0x35ad76,_0x21df29=![];try{const _0x77a13d=await createEnterpriseKnowledgeBase(_0x418a59[_0x381733(0x19b)],{'appCode':_0x418a59[_0x381733(0x1a1)],'title':_0x115367[_0x381733(0x19a)],'content':_0x115367['content'][_0x381733(0x1a7)]});assertCompanyKnowledgeBase(_0x77a13d,_0x418a59['appCode'],_0x77a13d['id']),_0x35ad76=_0x77a13d['id'];}catch(_0x22b07a){if(!isPlatformTransportFailure(_0x22b07a))throw _0x22b07a;_0x21df29=!![];}if(_0x35ad76===undefined){const _0x422636=await verifyKbMutationReadback(_0x381733(0x1b3),!![],()=>fetchAllCompanyKnowledgeBases(_0x418a59,{'title':_0x115367['title']})),_0x4d94dc=findExactCompanyKnowledgeBases(_0x422636,_0x418a59['appCode'],_0x115367['title']);if(_0x4d94dc[_0x381733(0x1be)]!==0x1)throw kbError('kb_create_outcome_unknown',_0x381733(0x1a4)+_0x4d94dc[_0x381733(0x1be)]+'.',_0x381733(0x1a6));_0x35ad76=_0x4d94dc[0x0]['id'];}const _0x40d0e3=await verifyKbMutationReadback(_0x381733(0x1b3),_0x21df29,()=>requireKb(_0x418a59,_0x35ad76)),_0x441e75=verifyCreatedState(_0x418a59,_0x115367,_0x40d0e3),_0xef8dd8=_0x21df29?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x381733(0x1b3),'selector':{'id':_0x441e75['id'],'scope':'company','appCode':_0x441e75['appCode']},'before':null,'after':_0x441e75,'dryRun':![],'backend':{'method':_0x381733(0x19e),'path':CREATE_PATH},'warnings':_0xef8dd8,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x21df29,'lookupCommand':_0x381733(0x191)+_0x441e75['id']+_0x381733(0x1ac)}},'message':_0x381733(0x1ba)+_0x441e75['id']+_0x381733(0x190)+_0x441e75[_0x381733(0x1a1)]};}};