@lovrabet/rabetbase-cli 2.3.16-beta.7 → 2.4.1-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 (435) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +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.js +1 -1
  181. package/lib/commands/role/create.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.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +117 -0
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/page/file-system.js +1 -1
  239. package/lib/core/page/hash.js +1 -1
  240. package/lib/core/page/lock.js +1 -1
  241. package/lib/core/sql-index-auditor.js +1 -1
  242. package/lib/core/sql-sync/config.js +1 -1
  243. package/lib/core/sql-sync/file-system.js +1 -1
  244. package/lib/core/sql-sync/hash.js +1 -1
  245. package/lib/core/sql-sync/lock.js +1 -1
  246. package/lib/core/sql-sync/utils.js +1 -1
  247. package/lib/core/sql-validator.js +1 -1
  248. package/lib/errors.js +1 -1
  249. package/lib/framework/build-all-flags.js +1 -1
  250. package/lib/framework/error-output.js +1 -1
  251. package/lib/framework/explicit-yes.js +1 -1
  252. package/lib/framework/flags.js +1 -1
  253. package/lib/framework/help.js +1 -1
  254. package/lib/framework/index.js +1 -1
  255. package/lib/framework/output.js +1 -1
  256. package/lib/framework/response.js +1 -1
  257. package/lib/framework/runner-alias.js +1 -1
  258. package/lib/framework/runner.js +1 -1
  259. package/lib/framework/schema-export.js +1 -1
  260. package/lib/framework/types.js +1 -1
  261. package/lib/generated/build-info.d.ts +4 -4
  262. package/lib/generated/build-info.js +1 -1
  263. package/lib/help.js +1 -1
  264. package/lib/postinstall.d.ts +3 -0
  265. package/lib/postinstall.js +1 -0
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.d.ts +37 -0
  272. package/lib/skills/builtin-skill.js +1 -0
  273. package/lib/skills/main.js +1 -1
  274. package/lib/skills/npx-skills-add.d.ts +4 -2
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/copy-directory.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/rules-cdn.js +1 -1
  300. package/lib/utils/sleep.js +1 -1
  301. package/lib/utils/template-replacer.js +1 -1
  302. package/lib/utils/update-notice.js +1 -1
  303. package/lib/utils/version.js +1 -1
  304. package/lib/utils/with-active-cookie.js +1 -1
  305. package/lib/utils/write-cli-side-channel.js +1 -1
  306. package/package.json +9 -3
  307. package/scripts/postinstall.mjs +24 -0
  308. package/skills/rabetbase/SKILL.md +493 -0
  309. package/skills/rabetbase/guides/backend-function.md +835 -0
  310. package/skills/rabetbase/guides/best-practices.md +137 -0
  311. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  312. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  313. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  314. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  315. package/skills/rabetbase/guides/frontend-development.md +179 -0
  316. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  317. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  318. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  320. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  322. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  323. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  324. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  325. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  332. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  333. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  334. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  335. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  336. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  337. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  338. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  339. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  340. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  341. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  342. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  343. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  344. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  345. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  346. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  347. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  348. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  349. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  350. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  351. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  352. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  353. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  354. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  355. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  357. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  358. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  371. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  372. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  373. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  374. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  375. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  376. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  377. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  378. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  379. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  381. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  382. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  383. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  384. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  385. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  386. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  387. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  389. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  391. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  392. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  393. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  394. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  395. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  396. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  397. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  398. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  401. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  402. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  407. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  408. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  409. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  410. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  411. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  415. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  416. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  418. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  419. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  420. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  421. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  422. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  423. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  424. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  425. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  427. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  428. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  429. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  430. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  431. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  432. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  433. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  434. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  435. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- const a90_0x4b6d12=a90_0x2157;function a90_0x2157(_0xb86f22,_0x10bf44){_0xb86f22=_0xb86f22-0x12b;const _0x3f7dbc=a90_0x3f7d();let _0x21577e=_0x3f7dbc[_0xb86f22];return _0x21577e;}(function(_0x5b8a6a,_0x3e1c87){const _0x1d26fd=a90_0x2157,_0x4c3db9=_0x5b8a6a();while(!![]){try{const _0x30b8d3=parseInt(_0x1d26fd(0x136))/0x1+parseInt(_0x1d26fd(0x12c))/0x2+-parseInt(_0x1d26fd(0x141))/0x3+parseInt(_0x1d26fd(0x12f))/0x4*(parseInt(_0x1d26fd(0x133))/0x5)+-parseInt(_0x1d26fd(0x13f))/0x6*(parseInt(_0x1d26fd(0x13e))/0x7)+parseInt(_0x1d26fd(0x13c))/0x8*(parseInt(_0x1d26fd(0x130))/0x9)+parseInt(_0x1d26fd(0x13d))/0xa;if(_0x30b8d3===_0x3e1c87)break;else _0x4c3db9['push'](_0x4c3db9['shift']());}catch(_0x5b84ed){_0x4c3db9['push'](_0x4c3db9['shift']());}}}(a90_0x3f7d,0xbf641));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a90_0x3f7d(){const _0x170841=['198306yVceBL','error','slice','5dLpNzL','message','Connection\x20OK\x20for\x20db\x20link\x20','391781bkGkjS','read','Connection\x20check\x20finished\x20for\x20db\x20link\x20','object','keys','success','104FeNRfq','5384140pWxFvr','650013KQMmsD','96nYTPrG','code','494637GjChqg','\x20(see\x20data.result)','706980eurCdy','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','length','3457732XsDVzZ'];a90_0x3f7d=function(){return _0x170841;};return a90_0x3f7d();}function summarizeTestConnectResult(_0x5ec473){const _0x3b2a79=a90_0x2157;if(_0x5ec473===!![]||_0x5ec473===![])return{'success':_0x5ec473};if(_0x5ec473===null||_0x5ec473===undefined)return{'type':typeof _0x5ec473};if(typeof _0x5ec473!==_0x3b2a79(0x139))return{'type':typeof _0x5ec473};const _0x276c85=_0x5ec473,_0x571376=[_0x3b2a79(0x13b),_0x3b2a79(0x134),_0x3b2a79(0x140),_0x3b2a79(0x131),'msg','data'],_0x4d595d={};for(const _0x4d51bc of _0x571376){if(_0x4d51bc in _0x276c85)_0x4d595d[_0x4d51bc]=_0x276c85[_0x4d51bc];}return Object[_0x3b2a79(0x13a)](_0x4d595d)[_0x3b2a79(0x12e)]===0x0&&(_0x4d595d[_0x3b2a79(0x13a)]=Object['keys'](_0x276c85)[_0x3b2a79(0x132)](0x0,0x14)),_0x4d595d;}export const dbTest={'service':'db','command':'test','description':a90_0x4b6d12(0x12d),'risk':a90_0x4b6d12(0x137),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x457106){const _0xdbf192=a90_0x4b6d12,_0x22f07b=_0x457106['num']('id'),_0x270faa=await testDbLinkConnect(_0x22f07b),_0x4d97ea=_0x270faa===!![]||typeof _0x270faa===_0xdbf192(0x139)&&_0x270faa!==null&&_0x270faa[_0xdbf192(0x13b)]===!![],_0x44dc87=summarizeTestConnectResult(_0x270faa);return{'ok':!![],'data':{'id':_0x22f07b,'connected':Boolean(_0x4d97ea),'result':_0x44dc87},'message':_0x4d97ea?_0xdbf192(0x135)+_0x22f07b:_0xdbf192(0x138)+_0x22f07b+_0xdbf192(0x12b)};}};
1
+ function a90_0x36c7(){const _0x111a4d=['slice','11410CBPdCW','78thgvJt','1311627UtLkyU','88gEnIqB','num','read','test','length','data','code','success','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','27jHVdxf','error','msg','186teevBP','3431816xBVNEf','message','Connection\x20check\x20finished\x20for\x20db\x20link\x20','349839dJyxyI','997764kxiKHd','286jhxYnO','object','16528bkqZQM','keys','1051420mAZSop','796sjLDCH'];a90_0x36c7=function(){return _0x111a4d;};return a90_0x36c7();}const a90_0x3b4605=a90_0x2ab7;function a90_0x2ab7(_0x3f41dc,_0x525e16){_0x3f41dc=_0x3f41dc-0xb1;const _0x36c787=a90_0x36c7();let _0x2ab739=_0x36c787[_0x3f41dc];return _0x2ab739;}(function(_0x32522c,_0x2a5684){const _0x101220=a90_0x2ab7,_0x1c66d9=_0x32522c();while(!![]){try{const _0x594352=-parseInt(_0x101220(0xbf))/0x1+parseInt(_0x101220(0xb8))/0x2*(-parseInt(_0x101220(0xcc))/0x3)+parseInt(_0x101220(0xbb))/0x4*(parseInt(_0x101220(0xbd))/0x5)+parseInt(_0x101220(0xbe))/0x6*(parseInt(_0x101220(0xb4))/0x7)+parseInt(_0x101220(0xb1))/0x8*(-parseInt(_0x101220(0xc9))/0x9)+parseInt(_0x101220(0xba))/0xa*(parseInt(_0x101220(0xc0))/0xb)+parseInt(_0x101220(0xb5))/0xc*(parseInt(_0x101220(0xb6))/0xd);if(_0x594352===_0x2a5684)break;else _0x1c66d9['push'](_0x1c66d9['shift']());}catch(_0x4f03cc){_0x1c66d9['push'](_0x1c66d9['shift']());}}}(a90_0x36c7,0xa1edf));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x404147){const _0x32b3f1=a90_0x2ab7;if(_0x404147===!![]||_0x404147===![])return{'success':_0x404147};if(_0x404147===null||_0x404147===undefined)return{'type':typeof _0x404147};if(typeof _0x404147!==_0x32b3f1(0xb7))return{'type':typeof _0x404147};const _0x11934c=_0x404147,_0x1a7b7f=['success',_0x32b3f1(0xb2),_0x32b3f1(0xc6),_0x32b3f1(0xca),_0x32b3f1(0xcb),_0x32b3f1(0xc5)],_0x316f98={};for(const _0x232b8e of _0x1a7b7f){if(_0x232b8e in _0x11934c)_0x316f98[_0x232b8e]=_0x11934c[_0x232b8e];}return Object['keys'](_0x316f98)[_0x32b3f1(0xc4)]===0x0&&(_0x316f98[_0x32b3f1(0xb9)]=Object['keys'](_0x11934c)[_0x32b3f1(0xbc)](0x0,0x14)),_0x316f98;}export const dbTest={'service':'db','command':a90_0x3b4605(0xc3),'description':a90_0x3b4605(0xc8),'risk':a90_0x3b4605(0xc2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2b771a){const _0x3d3b84=a90_0x3b4605,_0x40d9fc=_0x2b771a[_0x3d3b84(0xc1)]('id'),_0x52e7d8=await testDbLinkConnect(_0x40d9fc),_0x3f3a40=_0x52e7d8===!![]||typeof _0x52e7d8===_0x3d3b84(0xb7)&&_0x52e7d8!==null&&_0x52e7d8[_0x3d3b84(0xc7)]===!![],_0x2d8f46=summarizeTestConnectResult(_0x52e7d8);return{'ok':!![],'data':{'id':_0x40d9fc,'connected':Boolean(_0x3f3a40),'result':_0x2d8f46},'message':_0x3f3a40?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x40d9fc:_0x3d3b84(0xb3)+_0x40d9fc+'\x20(see\x20data.result)'};}};
@@ -1 +1 @@
1
- function a91_0x5da5(_0xdcf85e,_0x2c4386){_0xdcf85e=_0xdcf85e-0x8d;const _0x1243b2=a91_0x1243();let _0x5da552=_0x1243b2[_0xdcf85e];return _0x5da552;}const a91_0x3703e0=a91_0x5da5;(function(_0x4ba800,_0x882b65){const _0x47dc6f=a91_0x5da5,_0x272575=_0x4ba800();while(!![]){try{const _0x3fde35=-parseInt(_0x47dc6f(0xac))/0x1*(parseInt(_0x47dc6f(0x96))/0x2)+-parseInt(_0x47dc6f(0x94))/0x3+parseInt(_0x47dc6f(0x97))/0x4+parseInt(_0x47dc6f(0x9b))/0x5+-parseInt(_0x47dc6f(0xa5))/0x6*(parseInt(_0x47dc6f(0x9c))/0x7)+parseInt(_0x47dc6f(0xa8))/0x8*(-parseInt(_0x47dc6f(0x9e))/0x9)+parseInt(_0x47dc6f(0x9d))/0xa;if(_0x3fde35===_0x882b65)break;else _0x272575['push'](_0x272575['shift']());}catch(_0x25b0f1){_0x272575['push'](_0x272575['shift']());}}}(a91_0x1243,0x7d212));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a91_0x1243(){const _0x3d9a3a=['New\x20description','2132576mYMrtk','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','string','956237YyARKG','validation','str','dburl','update','write','dbname','password','New\x20database\x20name','trim','/smartapi/dblink/update','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbparam','New\x20connection\x20parameter\x20string','2953146JFOqkX','username','2iTiXhq','2374500bEOrAS','dbdesc','num','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','3429105Yjrxzm','2979613FlVvzH','23990780DrEjBW','27XCDdue','dbName','dbDesc','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','[redacted]','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20host:port','6ORbvzW','has'];a91_0x1243=function(){return _0x3d9a3a;};return a91_0x1243();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a91_0x3703e0(0xa2)]);function mergeDbLinkUpdate(_0x2d1309,_0x4c2590){const _0x154aad=a91_0x3703e0,_0x8dc219={..._0x2d1309},_0x113a09=_0x4c2590['str']('password');if(_0x113a09&&MASKED_PASSWORD_VALUES[_0x154aad(0xa6)](_0x113a09))throw CliErrors[_0x154aad(0xad)](_0x154aad(0x9a));if(!_0x113a09&&MASKED_PASSWORD_VALUES[_0x154aad(0xa6)](String(_0x2d1309['password']??'')))throw CliErrors['validation'](_0x154aad(0x91));const _0x47ce78=_0x4c2590[_0x154aad(0xae)](_0x154aad(0xb2));if(_0x47ce78)_0x8dc219[_0x154aad(0x9f)]=_0x47ce78;const _0xc41693=_0x4c2590[_0x154aad(0xae)](_0x154aad(0xaf));if(_0xc41693)_0x8dc219['dbUrl']=_0xc41693['trim']();const _0x7e6ad1=_0x4c2590[_0x154aad(0xae)](_0x154aad(0x95));if(_0x7e6ad1)_0x8dc219[_0x154aad(0x95)]=_0x7e6ad1;if(_0x113a09)_0x8dc219[_0x154aad(0x8d)]=_0x113a09;const _0xbf0c25=_0x4c2590[_0x154aad(0xae)](_0x154aad(0x92));if(_0xbf0c25)_0x8dc219['dbParam']=_0xbf0c25;const _0x1a7b6a=_0x4c2590[_0x154aad(0xae)](_0x154aad(0x98));if(_0x1a7b6a)_0x8dc219[_0x154aad(0xa0)]=_0x1a7b6a;return _0x8dc219;}export const dbUpdate={'service':'db','command':a91_0x3703e0(0xb0),'description':a91_0x3703e0(0xa1),'risk':a91_0x3703e0(0xb1),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0x3703e0(0xb2),'type':a91_0x3703e0(0xab),'description':a91_0x3703e0(0x8e)},{'name':a91_0x3703e0(0xaf),'type':a91_0x3703e0(0xab),'description':a91_0x3703e0(0xa4)},{'name':'username','type':a91_0x3703e0(0xab),'description':a91_0x3703e0(0xaa)},{'name':'password','type':a91_0x3703e0(0xab),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password'},{'name':a91_0x3703e0(0x92),'type':'string','description':a91_0x3703e0(0x93)},{'name':a91_0x3703e0(0x98),'type':a91_0x3703e0(0xab),'description':a91_0x3703e0(0xa7)}],async 'validate'(_0x47164e){const _0x1acc9b=a91_0x3703e0,_0x448d75=_0x47164e[_0x1acc9b(0xae)](_0x1acc9b(0xaf));if(_0x448d75&&!validateDbUrl(_0x448d75[_0x1acc9b(0x8f)]()))throw CliErrors[_0x1acc9b(0xad)](_0x1acc9b(0xa9)+_0x448d75+'\x22');},async 'dryRun'(_0x1b39b5){const _0x395cc5=a91_0x3703e0,_0x318e18=_0x1b39b5[_0x395cc5(0x99)]('id'),_0x5ba948=await getDbLinkInfo(_0x318e18),_0x57e700=mergeDbLinkUpdate(_0x5ba948,_0x1b39b5),_0x5d44d9=sanitizeDbLinkForOutput(_0x57e700);return{'method':'POST','url':_0x395cc5(0x90),'body':_0x5d44d9,'description':_0x395cc5(0xa3)};},async 'execute'(_0x4be262){const _0x3d39dc=_0x4be262['num']('id'),_0x590961=await getDbLinkInfo(_0x3d39dc),_0x283bbf=mergeDbLinkUpdate(_0x590961,_0x4be262),{id:_0x2b0229,entity:_0x4324ea}=normalizeEntityWithIdResponse(await updateDbLink(_0x283bbf));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4324ea),'message':'Updated\x20db\x20link\x20'+(_0x2b0229??_0x3d39dc)};}};
1
+ const a91_0xbd74a2=a91_0x5f48;(function(_0x44488e,_0x228b5e){const _0x5c4ce2=a91_0x5f48,_0xc127a7=_0x44488e();while(!![]){try{const _0x3fecbd=parseInt(_0x5c4ce2(0x1ca))/0x1*(parseInt(_0x5c4ce2(0x1bf))/0x2)+-parseInt(_0x5c4ce2(0x1cc))/0x3+-parseInt(_0x5c4ce2(0x1de))/0x4*(-parseInt(_0x5c4ce2(0x1bc))/0x5)+parseInt(_0x5c4ce2(0x1c5))/0x6*(parseInt(_0x5c4ce2(0x1d9))/0x7)+-parseInt(_0x5c4ce2(0x1ce))/0x8*(-parseInt(_0x5c4ce2(0x1d8))/0x9)+parseInt(_0x5c4ce2(0x1b9))/0xa+-parseInt(_0x5c4ce2(0x1da))/0xb;if(_0x3fecbd===_0x228b5e)break;else _0xc127a7['push'](_0xc127a7['shift']());}catch(_0x56badf){_0xc127a7['push'](_0xc127a7['shift']());}}}(a91_0xcd78,0xb76e8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a91_0xcd78(){const _0xdc9bb0=['Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','1671720dMneFm','dburl','New\x20description','5612950Yagotv','******','Updated\x20db\x20link\x20','5HQcacB','[redacted]','username','694GoQayy','New\x20database\x20name','dbparam','update','dbName','POST','425130cnNrCt','dbUrl','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','str','dbname','207Pxquox','has','3596244mhYBDJ','validation','16YPrDyl','trim','/smartapi/dblink/update','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','string','write','num','New\x20username','password','dbdesc','3466737OFldHB','91cJDnDs','8717181WCwgsu','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password'];a91_0xcd78=function(){return _0xdc9bb0;};return a91_0xcd78();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a91_0x5f48(_0x25e63b,_0x134263){_0x25e63b=_0x25e63b-0x1b9;const _0xcd785b=a91_0xcd78();let _0x5f4885=_0xcd785b[_0x25e63b];return _0x5f4885;}const MASKED_PASSWORD_VALUES=new Set([a91_0xbd74a2(0x1ba),a91_0xbd74a2(0x1bd)]);function mergeDbLinkUpdate(_0x24f99d,_0xf7275){const _0x546cb8=a91_0xbd74a2,_0x4e6a4e={..._0x24f99d},_0x28de35=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1d6));if(_0x28de35&&MASKED_PASSWORD_VALUES[_0x546cb8(0x1cb)](_0x28de35))throw CliErrors[_0x546cb8(0x1cd)](_0x546cb8(0x1d1));if(!_0x28de35&&MASKED_PASSWORD_VALUES[_0x546cb8(0x1cb)](String(_0x24f99d[_0x546cb8(0x1d6)]??'')))throw CliErrors[_0x546cb8(0x1cd)](_0x546cb8(0x1db));const _0x300515=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1c9));if(_0x300515)_0x4e6a4e[_0x546cb8(0x1c3)]=_0x300515;const _0x2c16f5=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1df));if(_0x2c16f5)_0x4e6a4e[_0x546cb8(0x1c6)]=_0x2c16f5['trim']();const _0x1049d7=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1be));if(_0x1049d7)_0x4e6a4e['username']=_0x1049d7;if(_0x28de35)_0x4e6a4e['password']=_0x28de35;const _0x2b8e15=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1c1));if(_0x2b8e15)_0x4e6a4e['dbParam']=_0x2b8e15;const _0x413453=_0xf7275[_0x546cb8(0x1c8)](_0x546cb8(0x1d7));if(_0x413453)_0x4e6a4e['dbDesc']=_0x413453;return _0x4e6a4e;}export const dbUpdate={'service':'db','command':a91_0xbd74a2(0x1c2),'description':a91_0xbd74a2(0x1dd),'risk':a91_0xbd74a2(0x1d3),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a91_0xbd74a2(0x1c9),'type':a91_0xbd74a2(0x1d2),'description':a91_0xbd74a2(0x1c0)},{'name':'dburl','type':a91_0xbd74a2(0x1d2),'description':'New\x20host:port'},{'name':'username','type':a91_0xbd74a2(0x1d2),'description':a91_0xbd74a2(0x1d5)},{'name':'password','type':a91_0xbd74a2(0x1d2),'description':a91_0xbd74a2(0x1dc)},{'name':a91_0xbd74a2(0x1c1),'type':a91_0xbd74a2(0x1d2),'description':'New\x20connection\x20parameter\x20string'},{'name':a91_0xbd74a2(0x1d7),'type':a91_0xbd74a2(0x1d2),'description':a91_0xbd74a2(0x1e0)}],async 'validate'(_0x5ec964){const _0x383349=a91_0xbd74a2,_0x17e10f=_0x5ec964[_0x383349(0x1c8)](_0x383349(0x1df));if(_0x17e10f&&!validateDbUrl(_0x17e10f[_0x383349(0x1cf)]()))throw CliErrors['validation']('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x17e10f+'\x22');},async 'dryRun'(_0x18a57f){const _0x208307=a91_0xbd74a2,_0x36af1e=_0x18a57f[_0x208307(0x1d4)]('id'),_0x1f544b=await getDbLinkInfo(_0x36af1e),_0x1aa5ad=mergeDbLinkUpdate(_0x1f544b,_0x18a57f),_0x42e761=sanitizeDbLinkForOutput(_0x1aa5ad);return{'method':_0x208307(0x1c4),'url':_0x208307(0x1d0),'body':_0x42e761,'description':_0x208307(0x1c7)};},async 'execute'(_0x4b483c){const _0x496a99=a91_0xbd74a2,_0x4932c2=_0x4b483c[_0x496a99(0x1d4)]('id'),_0x4b6de1=await getDbLinkInfo(_0x4932c2),_0x541be3=mergeDbLinkUpdate(_0x4b6de1,_0x4b483c),{id:_0x59963c,entity:_0x5f18c0}=normalizeEntityWithIdResponse(await updateDbLink(_0x541be3));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5f18c0),'message':_0x496a99(0x1bb)+(_0x59963c??_0x4932c2)};}};
@@ -1 +1 @@
1
- const a92_0x130a3d=a92_0x3e51;(function(_0x548d47,_0x1bb246){const _0x35ecf3=a92_0x3e51,_0x4afc49=_0x548d47();while(!![]){try{const _0x5e7ad1=-parseInt(_0x35ecf3(0x171))/0x1+parseInt(_0x35ecf3(0x131))/0x2*(parseInt(_0x35ecf3(0x175))/0x3)+parseInt(_0x35ecf3(0x165))/0x4+parseInt(_0x35ecf3(0x177))/0x5+parseInt(_0x35ecf3(0x164))/0x6+-parseInt(_0x35ecf3(0x169))/0x7+parseInt(_0x35ecf3(0x17f))/0x8*(-parseInt(_0x35ecf3(0x17c))/0x9);if(_0x5e7ad1===_0x1bb246)break;else _0x4afc49['push'](_0x4afc49['shift']());}catch(_0x3ddb9e){_0x4afc49['push'](_0x4afc49['shift']());}}}(a92_0x523b,0x67170));import a92_0x19714f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a92_0x3e51(_0x2bacee,_0x6d16d){_0x2bacee=_0x2bacee-0x131;const _0x523baf=a92_0x523b();let _0x3e51d5=_0x523baf[_0x2bacee];return _0x3e51d5;}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';function a92_0x523b(){const _0xd90e00=['source','3RpMmFZ','repeat','1913425jWBBld','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','accessKey','\x20\x20Config\x20JSON','153TkQYhZ','Global','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','177496jobrdZ','✗\x20Expired','761182CcPFkw','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','gray','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','version','explicitAppName','riskLevel','\x20doctor','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','locale','(default:\x20','pageSize','(set,\x20length=','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','padEnd','appcode','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','log','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','env','appCode','✗\x20Invalid\x20JSON','check','\x20\x20Merged\x20Config','green','status','(default)','read','\x20\x20\x20\x20accessKey:\x20\x20','Project','(missing)','apiDir','\x20\x20Apps','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(no\x20file)','format','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','defaultApp','\x20\x20Auth','\x20←\x20current','(not\x20found)','1912794SZGaRa','753552qZghkk','length','apps','bold','2482872KKWcIK','currentApp','message','\x20\x20Config\x20Files','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','116332ObIONs','keys','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a92_0x523b=function(){return _0xd90e00;};return a92_0x523b();}async function execute(_0x853939){const _0x2127f2=a92_0x3e51,_0x3857e5=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x415dd2=buildConfigFromFlags({}),_0x15514f=getCookie();console['log'](),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x168)](CLI_BIN_NAME+_0x2127f2(0x13b))),console[_0x2127f2(0x149)](a92_0x19714f['gray']('─'['repeat'](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x3857e5),console[_0x2127f2(0x149)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x2127f2(0x138)]),console[_0x2127f2(0x149)](_0x2127f2(0x133)+process['platform']+'\x20'+process['arch']),console[_0x2127f2(0x149)](),console['log'](a92_0x19714f[_0x2127f2(0x168)](_0x2127f2(0x16c))),console['log'](a92_0x19714f['gray'](_0x2127f2(0x134)[_0x2127f2(0x176)](0x1e)));const _0x286821=getGlobalConfigPath(),_0x18d860=getProjectConfigPath();console['log'](_0x2127f2(0x17e)+(_0x286821||a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x163)))),console[_0x2127f2(0x149)](_0x2127f2(0x143)+(_0x18d860||a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x163)))),console[_0x2127f2(0x149)](),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x168)](_0x2127f2(0x17b))),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x135)]('\x20\x20─'[_0x2127f2(0x176)](0x1e)));const _0x581801=(_0x45952e,_0x3a0033)=>{const _0x3c2c7c=_0x2127f2;if(!_0x3a0033){console[_0x3c2c7c(0x149)]('\x20\x20'+_0x45952e[_0x3c2c7c(0x146)](0x11)+'\x20'+a92_0x19714f['gray'](_0x3c2c7c(0x15b)));return;}const _0x5b89c2=inspectCliConfigJsonFile(_0x3a0033);if(_0x5b89c2[_0x3c2c7c(0x152)]==='ok')console[_0x3c2c7c(0x149)]('\x20\x20'+_0x45952e['padEnd'](0x11)+'\x20'+a92_0x19714f[_0x3c2c7c(0x151)](_0x3c2c7c(0x16e)));else{if(_0x5b89c2['status']==='empty')console[_0x3c2c7c(0x149)]('\x20\x20'+_0x45952e[_0x3c2c7c(0x146)](0x11)+'\x20'+a92_0x19714f['yellow'](_0x3c2c7c(0x136)));else _0x5b89c2[_0x3c2c7c(0x152)]===_0x3c2c7c(0x179)?console[_0x3c2c7c(0x149)]('\x20\x20'+_0x45952e[_0x3c2c7c(0x146)](0x11)+'\x20'+a92_0x19714f[_0x3c2c7c(0x135)](_0x3c2c7c(0x157))):(console[_0x3c2c7c(0x149)]('\x20\x20'+_0x45952e[_0x3c2c7c(0x146)](0x11)+'\x20'+a92_0x19714f[_0x3c2c7c(0x170)](_0x3c2c7c(0x14e))),console[_0x3c2c7c(0x149)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x19714f[_0x3c2c7c(0x170)](_0x5b89c2[_0x3c2c7c(0x16b)])));}};_0x581801(_0x2127f2(0x17d),_0x286821),_0x581801(_0x2127f2(0x156),_0x18d860),console[_0x2127f2(0x149)](),console['log'](a92_0x19714f['bold'](_0x2127f2(0x150))),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x134)[_0x2127f2(0x176)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x415dd2[_0x2127f2(0x14d)]||a92_0x19714f[_0x2127f2(0x170)]('(not\x20set)'))),console[_0x2127f2(0x149)](_0x2127f2(0x173)+_0x415dd2['env']),console[_0x2127f2(0x149)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x415dd2[_0x2127f2(0x13f)]),console[_0x2127f2(0x149)](_0x2127f2(0x13d)+_0x415dd2[_0x2127f2(0x158)]),console[_0x2127f2(0x149)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x415dd2[_0x2127f2(0x160)]||a92_0x19714f['gray'](_0x2127f2(0x15e)))),console[_0x2127f2(0x149)](_0x2127f2(0x145)+(_0x415dd2[_0x2127f2(0x16a)]||a92_0x19714f['gray'](_0x2127f2(0x15e)))),console['log'](_0x2127f2(0x14b)+(_0x415dd2[_0x2127f2(0x139)]||a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x15e)))),console[_0x2127f2(0x149)](_0x2127f2(0x14a)+(_0x415dd2[_0x2127f2(0x15c)]||a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x140)+DEFAULT_CONFIG_VALUES[_0x2127f2(0x15c)]+')'))),console[_0x2127f2(0x149)](_0x2127f2(0x137)+(_0x415dd2[_0x2127f2(0x141)]??a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x153)))),console[_0x2127f2(0x149)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x415dd2[_0x2127f2(0x13a)]),console[_0x2127f2(0x149)](_0x2127f2(0x16f)+_0x415dd2['verbose']),console[_0x2127f2(0x149)](_0x2127f2(0x16d)+(_0x415dd2[_0x2127f2(0x144)]?a92_0x19714f['green'](_0x2127f2(0x142)+_0x415dd2[_0x2127f2(0x144)][_0x2127f2(0x166)]+')'):_0x15514f?a92_0x19714f[_0x2127f2(0x151)]('(set\x20via\x20file,\x20length='+_0x15514f[_0x2127f2(0x166)]+')'):a92_0x19714f['gray']('(none)')));const _0xcefe4e=Object[_0x2127f2(0x172)](_0x415dd2[_0x2127f2(0x167)]);if(_0xcefe4e[_0x2127f2(0x166)]>0x0){console[_0x2127f2(0x149)](),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x168)](_0x2127f2(0x159))),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x134)[_0x2127f2(0x176)](0x1e)));for(const _0x233151 of _0xcefe4e){const _0x43165a=_0x415dd2[_0x2127f2(0x167)][_0x233151],_0x392a90=_0x233151===_0x415dd2['defaultApp'],_0x50fc75=_0x233151===_0x415dd2[_0x2127f2(0x16a)],_0x48582b=_0x50fc75?a92_0x19714f[_0x2127f2(0x151)](_0x2127f2(0x162)):'',_0x1a913c=_0x392a90?'\x20(default)':'';console['log']('\x20\x20'+_0x233151+_0x1a913c+_0x48582b),console[_0x2127f2(0x149)](_0x2127f2(0x15f)+_0x43165a[_0x2127f2(0x147)]);const _0xfcec9a=buildAppDoctorFields(_0x43165a,{'env':_0x415dd2[_0x2127f2(0x14c)],'apiDir':_0x415dd2['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x2127f2(0x158)],'cookie':_0x415dd2[_0x2127f2(0x144)]||_0x15514f||undefined,'accessKey':_0x415dd2[_0x2127f2(0x17a)]});console[_0x2127f2(0x149)](_0x2127f2(0x15d)+_0xfcec9a['env'][_0x2127f2(0x13e)]+'\x20\x20'+a92_0x19714f[_0x2127f2(0x135)]('('+_0xfcec9a['env'][_0x2127f2(0x174)]+')')),console['log'](_0x2127f2(0x15a)+_0xfcec9a[_0x2127f2(0x158)][_0x2127f2(0x13e)]+'\x20\x20'+a92_0x19714f['gray']('('+_0xfcec9a['apiDir']['source']+')'));const _0x2835cd=_0xfcec9a[_0x2127f2(0x144)][_0x2127f2(0x13e)]?a92_0x19714f[_0x2127f2(0x151)](_0x2127f2(0x142)+_0xfcec9a[_0x2127f2(0x144)][_0x2127f2(0x13e)][_0x2127f2(0x166)]+')'):a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x15e));console['log'](_0x2127f2(0x148)+_0x2835cd+'\x20\x20'+a92_0x19714f[_0x2127f2(0x135)]('('+_0xfcec9a[_0x2127f2(0x144)][_0x2127f2(0x174)]+')'));const _0x3497ed=_0xfcec9a[_0x2127f2(0x17a)][_0x2127f2(0x13e)]?a92_0x19714f[_0x2127f2(0x151)](_0x2127f2(0x142)+_0xfcec9a[_0x2127f2(0x17a)]['value'][_0x2127f2(0x166)]+')'):a92_0x19714f[_0x2127f2(0x135)]('(none)');console[_0x2127f2(0x149)](_0x2127f2(0x155)+_0x3497ed+'\x20\x20'+a92_0x19714f['gray']('('+_0xfcec9a[_0x2127f2(0x17a)][_0x2127f2(0x174)]+')'));}}console['log'](),console['log'](a92_0x19714f[_0x2127f2(0x168)]('\x20\x20API\x20Endpoints')),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x135)](_0x2127f2(0x134)[_0x2127f2(0x176)](0x1e))),console[_0x2127f2(0x149)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x2127f2(0x149)](_0x2127f2(0x13c)+getUserDomain()),console[_0x2127f2(0x149)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2127f2(0x149)](),console[_0x2127f2(0x149)](a92_0x19714f[_0x2127f2(0x168)](_0x2127f2(0x161))),console[_0x2127f2(0x149)](a92_0x19714f['gray'](_0x2127f2(0x134)[_0x2127f2(0x176)](0x1e)));if(_0x15514f){const _0x3218a3=await getIsSessionValid();console['log'](_0x2127f2(0x178)+(_0x3218a3?a92_0x19714f['green']('✓\x20Valid'):a92_0x19714f[_0x2127f2(0x170)](_0x2127f2(0x180))));}else console[_0x2127f2(0x149)](_0x2127f2(0x178)+a92_0x19714f['red']('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a92_0x130a3d(0x14f),'description':a92_0x130a3d(0x132),'risk':a92_0x130a3d(0x154),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a92_0x133e14=a92_0x30bb;(function(_0x250db8,_0x2122c6){const _0x591f6a=a92_0x30bb,_0xb2c41b=_0x250db8();while(!![]){try{const _0xe7bdde=parseInt(_0x591f6a(0x159))/0x1*(-parseInt(_0x591f6a(0x15b))/0x2)+parseInt(_0x591f6a(0x15e))/0x3*(parseInt(_0x591f6a(0x12f))/0x4)+parseInt(_0x591f6a(0x150))/0x5*(-parseInt(_0x591f6a(0x180))/0x6)+-parseInt(_0x591f6a(0x13d))/0x7*(parseInt(_0x591f6a(0x17c))/0x8)+-parseInt(_0x591f6a(0x169))/0x9+-parseInt(_0x591f6a(0x14c))/0xa+parseInt(_0x591f6a(0x141))/0xb;if(_0xe7bdde===_0x2122c6)break;else _0xb2c41b['push'](_0xb2c41b['shift']());}catch(_0x5d3f00){_0xb2c41b['push'](_0xb2c41b['shift']());}}}(a92_0x4f0b,0x2c447));import a92_0x23c810 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 a92_0x4f0b(){const _0x3aa04b=['status','bold','✗\x20Not\x20logged\x20in','check','2506725WBhWAC','env','explicitAppName','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','locale','\x20\x20Built-in\x20Skill','\x20\x20─','empty','\x20(default)','\x20←\x20current','log','red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','cookie','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','744XbIzYu','packageVersion','(default:\x20','verbose','234AzTDXl','accessKey','appCode','(none)','(default)','✗\x20Invalid\x20JSON','doctor','apps','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','defaultApp','(set,\x20length=','19556ypBNIP','message','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','length','source','gray','repairCommand','(missing)','padEnd','yellow','repeat','23198NsjXBn','skillVersion','(not\x20found)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','13574088CUllaf','reason','(set\x20via\x20file,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','missing','arch','unknown','\x20\x20Installed\x20Path:\x20\x20','2244020bylxoj','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','green','pageSize','31345IJYSXV','✓\x20Valid\x20JSON','(no\x20file)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','314854eSgQnT','format','2laUKfq','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appcode','195weGNft','✓\x20Valid','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','version'];a92_0x4f0b=function(){return _0x3aa04b;};return a92_0x4f0b();}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';function a92_0x30bb(_0xec365,_0x35f464){_0xec365=_0xec365-0x129;const _0x4f0bb8=a92_0x4f0b();let _0x30bb40=_0x4f0bb8[_0xec365];return _0x30bb40;}async function execute(_0x411adb){const _0xc116b0=a92_0x30bb,_0xadd8ba=GIT_COMMIT!==_0xc116b0(0x14a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0xeee2bc=buildConfigFromFlags({}),_0x15b875=getCookie();console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](CLI_BIN_NAME+'\x20doctor')),console['log'](a92_0x23c810[_0xc116b0(0x137)]('─'[_0xc116b0(0x13c)](0x32))),console[_0xc116b0(0x175)](_0xc116b0(0x17a)+_0xadd8ba),console[_0xc116b0(0x175)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xc116b0(0x164)]),console['log']('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0xc116b0(0x149)]);const _0x2db84d=inspectBuiltinSkill();console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x170))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x514c3f=_0x2db84d['state']===_0xc116b0(0x154)?a92_0x23c810[_0xc116b0(0x14e)]('✓\x20'+_0x2db84d[_0xc116b0(0x12a)]):a92_0x23c810[_0xc116b0(0x176)]('✗\x20'+_0x2db84d['state']);console[_0xc116b0(0x175)](_0xc116b0(0x133)+_0x514c3f),console[_0xc116b0(0x175)]('\x20\x20Package\x20Version:\x20'+_0x2db84d[_0xc116b0(0x17d)]),console[_0xc116b0(0x175)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x2db84d[_0xc116b0(0x13e)]||a92_0x23c810[_0xc116b0(0x137)]('(unknown)'))),console['log'](_0xc116b0(0x14b)+(_0x2db84d['installedPath']||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f))));if(_0x2db84d[_0xc116b0(0x142)])console['log'](_0xc116b0(0x129)+_0x2db84d['reason']);_0x2db84d[_0xc116b0(0x12a)]!==_0xc116b0(0x154)&&console['log'](_0xc116b0(0x131)+_0x2db84d[_0xc116b0(0x138)]);console[_0xc116b0(0x175)](),console['log'](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x132))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x196cbd=getGlobalConfigPath(),_0x40766e=getProjectConfigPath();console[_0xc116b0(0x175)](_0xc116b0(0x162)+(_0x196cbd||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f)))),console[_0xc116b0(0x175)](_0xc116b0(0x153)+(_0x40766e||a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x13f)))),console['log'](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)]('\x20\x20Config\x20JSON')),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)['repeat'](0x1e)));const _0x30530f=(_0x3e49df,_0x49ee86)=>{const _0x3f66ff=_0xc116b0;if(!_0x49ee86){console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810['gray'](_0x3f66ff(0x152)));return;}const _0x151a5f=inspectCliConfigJsonFile(_0x49ee86);if(_0x151a5f[_0x3f66ff(0x165)]==='ok')console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x14e)](_0x3f66ff(0x151)));else{if(_0x151a5f[_0x3f66ff(0x165)]===_0x3f66ff(0x172))console[_0x3f66ff(0x175)]('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x13b)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x151a5f[_0x3f66ff(0x165)]===_0x3f66ff(0x148)?console['log']('\x20\x20'+_0x3e49df[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x137)](_0x3f66ff(0x139))):(console[_0x3f66ff(0x175)]('\x20\x20'+_0x3e49df['padEnd'](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x176)](_0x3f66ff(0x185))),console[_0x3f66ff(0x175)]('\x20\x20'+''[_0x3f66ff(0x13a)](0x11)+'\x20'+a92_0x23c810[_0x3f66ff(0x176)](_0x151a5f[_0x3f66ff(0x130)])));}};_0x30530f('Global',_0x196cbd),_0x30530f('Project',_0x40766e),console['log'](),console['log'](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x12c))),console[_0xc116b0(0x175)](a92_0x23c810['gray'](_0xc116b0(0x171)[_0xc116b0(0x13c)](0x1e))),console[_0xc116b0(0x175)](_0xc116b0(0x12b)+(_0xeee2bc[_0xc116b0(0x182)]||a92_0x23c810['red']('(not\x20set)'))),console[_0xc116b0(0x175)](_0xc116b0(0x144)+_0xeee2bc[_0xc116b0(0x16a)]),console['log'](_0xc116b0(0x146)+_0xeee2bc[_0xc116b0(0x16f)]),console[_0xc116b0(0x175)](_0xc116b0(0x177)+_0xeee2bc['apiDir']),console['log'](_0xc116b0(0x14d)+(_0xeee2bc[_0xc116b0(0x12d)]||a92_0x23c810[_0xc116b0(0x137)]('(none)'))),console['log'](_0xc116b0(0x156)+(_0xeee2bc[_0xc116b0(0x17b)]||a92_0x23c810['gray']('(none)'))),console[_0xc116b0(0x175)](_0xc116b0(0x161)+(_0xeee2bc[_0xc116b0(0x16b)]||a92_0x23c810[_0xc116b0(0x137)]('(none)'))),console[_0xc116b0(0x175)](_0xc116b0(0x16d)+(_0xeee2bc[_0xc116b0(0x15a)]||a92_0x23c810['gray'](_0xc116b0(0x17e)+DEFAULT_CONFIG_VALUES[_0xc116b0(0x15a)]+')'))),console['log'](_0xc116b0(0x160)+(_0xeee2bc[_0xc116b0(0x14f)]??a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x184)))),console[_0xc116b0(0x175)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0xeee2bc['riskLevel']),console[_0xc116b0(0x175)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xeee2bc[_0xc116b0(0x17f)]),console[_0xc116b0(0x175)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xeee2bc[_0xc116b0(0x179)]?a92_0x23c810['green'](_0xc116b0(0x12e)+_0xeee2bc[_0xc116b0(0x179)][_0xc116b0(0x135)]+')'):_0x15b875?a92_0x23c810['green'](_0xc116b0(0x143)+_0x15b875[_0xc116b0(0x135)]+')'):a92_0x23c810['gray'](_0xc116b0(0x183))));const _0x28ffd2=Object['keys'](_0xeee2bc[_0xc116b0(0x187)]);if(_0x28ffd2[_0xc116b0(0x135)]>0x0){console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)]('\x20\x20Apps')),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x171)[_0xc116b0(0x13c)](0x1e)));for(const _0x4aa224 of _0x28ffd2){const _0x32a869=_0xeee2bc[_0xc116b0(0x187)][_0x4aa224],_0x3931d4=_0x4aa224===_0xeee2bc[_0xc116b0(0x12d)],_0x4f3f24=_0x4aa224===_0xeee2bc[_0xc116b0(0x17b)],_0x24e06c=_0x4f3f24?a92_0x23c810[_0xc116b0(0x14e)](_0xc116b0(0x174)):'',_0xf3d3bd=_0x3931d4?_0xc116b0(0x173):'';console[_0xc116b0(0x175)]('\x20\x20'+_0x4aa224+_0xf3d3bd+_0x24e06c),console[_0xc116b0(0x175)](_0xc116b0(0x16c)+_0x32a869[_0xc116b0(0x15d)]);const _0x1d66f3=buildAppDoctorFields(_0x32a869,{'env':_0xeee2bc['env'],'apiDir':_0xeee2bc[_0xc116b0(0x163)]['apiDir']||DEFAULT_CONFIG_VALUES[_0xc116b0(0x16e)],'cookie':_0xeee2bc[_0xc116b0(0x179)]||_0x15b875||undefined,'accessKey':_0xeee2bc['accessKey']});console[_0xc116b0(0x175)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d66f3[_0xc116b0(0x16a)][_0xc116b0(0x134)]+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3['env'][_0xc116b0(0x136)]+')')),console[_0xc116b0(0x175)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x1d66f3[_0xc116b0(0x16e)][_0xc116b0(0x134)]+'\x20\x20'+a92_0x23c810['gray']('('+_0x1d66f3['apiDir']['source']+')'));const _0x290ced=_0x1d66f3[_0xc116b0(0x179)]['value']?a92_0x23c810['green']('(set,\x20length='+_0x1d66f3[_0xc116b0(0x179)][_0xc116b0(0x134)][_0xc116b0(0x135)]+')'):a92_0x23c810['gray'](_0xc116b0(0x183));console[_0xc116b0(0x175)](_0xc116b0(0x15c)+_0x290ced+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3['cookie'][_0xc116b0(0x136)]+')'));const _0x3f5281=_0x1d66f3[_0xc116b0(0x181)][_0xc116b0(0x134)]?a92_0x23c810[_0xc116b0(0x14e)]('(set,\x20length='+_0x1d66f3[_0xc116b0(0x181)][_0xc116b0(0x134)][_0xc116b0(0x135)]+')'):a92_0x23c810[_0xc116b0(0x137)](_0xc116b0(0x183));console[_0xc116b0(0x175)](_0xc116b0(0x147)+_0x3f5281+'\x20\x20'+a92_0x23c810[_0xc116b0(0x137)]('('+_0x1d66f3[_0xc116b0(0x181)]['source']+')'));}}console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x178))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)]('\x20\x20─'[_0xc116b0(0x13c)](0x1e))),console[_0xc116b0(0x175)](_0xc116b0(0x140)+getApiDomain()),console[_0xc116b0(0x175)](_0xc116b0(0x158)+getUserDomain()),console[_0xc116b0(0x175)](_0xc116b0(0x157)+getRuntimeDomain()),console[_0xc116b0(0x175)](),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x166)](_0xc116b0(0x145))),console[_0xc116b0(0x175)](a92_0x23c810[_0xc116b0(0x137)]('\x20\x20─'[_0xc116b0(0x13c)](0x1e)));if(_0x15b875){const _0x180f2b=await getIsSessionValid();console[_0xc116b0(0x175)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x180f2b?a92_0x23c810[_0xc116b0(0x14e)](_0xc116b0(0x15f)):a92_0x23c810[_0xc116b0(0x176)]('✗\x20Expired')));}else console[_0xc116b0(0x175)](_0xc116b0(0x155)+a92_0x23c810[_0xc116b0(0x176)](_0xc116b0(0x167)));return console[_0xc116b0(0x175)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x133e14(0x186),'command':a92_0x133e14(0x168),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a93_0x4df8(_0x15d051,_0x19807f){_0x15d051=_0x15d051-0xc4;const _0xf8969d=a93_0xf896();let _0x4df8e9=_0xf8969d[_0x15d051];return _0x4df8e9;}const a93_0x33818d=a93_0x4df8;(function(_0x3cd34a,_0x3b970c){const _0x485a64=a93_0x4df8,_0x2c9da5=_0x3cd34a();while(!![]){try{const _0x1d40e1=parseInt(_0x485a64(0xc9))/0x1+-parseInt(_0x485a64(0xe8))/0x2+-parseInt(_0x485a64(0xd5))/0x3+parseInt(_0x485a64(0xe0))/0x4+-parseInt(_0x485a64(0xdb))/0x5+-parseInt(_0x485a64(0xd4))/0x6+parseInt(_0x485a64(0xd6))/0x7*(parseInt(_0x485a64(0xe2))/0x8);if(_0x1d40e1===_0x3b970c)break;else _0x2c9da5['push'](_0x2c9da5['shift']());}catch(_0x5b92f2){_0x2c9da5['push'](_0x2c9da5['shift']());}}}(a93_0xf896,0xb7e43));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':a93_0x33818d(0xdf),'type':a93_0x33818d(0xd8),'required':!![],'description':a93_0x33818d(0xd9)},FILEPATH_FLAG={'name':a93_0x33818d(0xc6),'type':a93_0x33818d(0xd8),'required':!![],'description':a93_0x33818d(0xd1)},DOWNLOAD_FLAG={'name':a93_0x33818d(0xe7),'type':a93_0x33818d(0xe4),'description':a93_0x33818d(0xd3)},LONG_TERM_FLAG={'name':a93_0x33818d(0xce),'type':a93_0x33818d(0xe4),'description':a93_0x33818d(0xc7)};function requireFilePath(_0x9e10d8){const _0x42fcb5=a93_0x33818d,_0x3eaeb2=_0x9e10d8[_0x42fcb5(0xc4)]();if(!_0x3eaeb2)throw CliErrors[_0x42fcb5(0xd7)](_0x42fcb5(0xda));return _0x3eaeb2;}function a93_0xf896(){const _0x1423d2=['filePath\x20is\x20required.','5420860fGBLUA','Uploaded\x20file:\x20','str','filePath','file','919848DhrEqN','read','1688ACzxhG','POST','boolean','\x20to\x20development\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','2878822HWDIvD','trim','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','filepath','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','bool','1041033kWuABU','path','File','Preview:\x20upload\x20','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term','appCode','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','4625952DDeXac','2272986eklnlP','117257aAyZBd','validation','string','Path\x20to\x20the\x20local\x20file\x20to\x20upload'];a93_0xf896=function(){return _0x1423d2;};return a93_0xf896();}const fileUpload={'service':'file','command':'upload','description':a93_0x33818d(0xd0),'risk':a93_0x33818d(0xe1),'flags':[FILE_FLAG],async 'dryRun'(_0x428a25){const _0xf8e28e=a93_0x33818d,_0x19dae0=requireDevelopmentUploadFile(_0x428a25[_0xf8e28e(0xdd)](_0xf8e28e(0xdf)),_0xf8e28e(0xcb));return{'method':_0xf8e28e(0xe3),'url':_0xf8e28e(0xd2),'body':{'appCode':_0x428a25[_0xf8e28e(0xcf)],'multipart':{'file':_0x19dae0}},'description':_0xf8e28e(0xcc)+_0x19dae0[_0xf8e28e(0xca)]+_0xf8e28e(0xe5)+_0x428a25['appCode']};},async 'execute'(_0x23808f){const _0x43483b=a93_0x33818d,_0x2a6817=requireDevelopmentUploadFile(_0x23808f[_0x43483b(0xdd)](_0x43483b(0xdf)),'File'),_0x3a50aa=await uploadDevelopmentFile(_0x23808f[_0x43483b(0xcf)],_0x2a6817[_0x43483b(0xca)]);return{'ok':!![],'data':_0x3a50aa,'message':_0x3a50aa[_0x43483b(0xde)]?_0x43483b(0xdc)+_0x3a50aa[_0x43483b(0xde)]+_0x43483b(0xe6):_0x43483b(0xcd)};}},fileQueryUrl={'service':'file','command':'query-url','description':a93_0x33818d(0xc5),'risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x8fbe4e){const _0x5513fc=a93_0x33818d,_0x2f6843=requireFilePath(_0x8fbe4e[_0x5513fc(0xdd)]('filepath')),_0x27af59=await queryDevelopmentFileUrl(_0x2f6843,{'download':_0x8fbe4e[_0x5513fc(0xc8)](_0x5513fc(0xe7)),'longTerm':_0x8fbe4e[_0x5513fc(0xc8)]('long-term')});return{'ok':!![],'data':_0x27af59};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a93_0x1948b0=a93_0x4e65;(function(_0x56f757,_0x499158){const _0x50dd06=a93_0x4e65,_0x4b709d=_0x56f757();while(!![]){try{const _0x5b3400=parseInt(_0x50dd06(0xe7))/0x1*(-parseInt(_0x50dd06(0xee))/0x2)+parseInt(_0x50dd06(0xfe))/0x3+-parseInt(_0x50dd06(0xe4))/0x4*(parseInt(_0x50dd06(0xff))/0x5)+parseInt(_0x50dd06(0xdf))/0x6+parseInt(_0x50dd06(0xe9))/0x7*(parseInt(_0x50dd06(0xfa))/0x8)+-parseInt(_0x50dd06(0xe3))/0x9*(-parseInt(_0x50dd06(0xea))/0xa)+-parseInt(_0x50dd06(0xde))/0xb;if(_0x5b3400===_0x499158)break;else _0x4b709d['push'](_0x4b709d['shift']());}catch(_0x49d3f9){_0x4b709d['push'](_0x4b709d['shift']());}}}(a93_0x5a21,0x6a50a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a93_0x5a21(){const _0x3dbdb8=['file','download','\x20to\x20development\x20app\x20','448566yQwYvz','trim','File','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Preview:\x20upload\x20','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','string','POST','str','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','boolean','8wZEOfW','long-term','filepath','filePath','81861pvdfvl','20eZdJcm','upload','bool','query-url','path','1684650UbgjCz','4427028Rpcjxy','/smartapi/common/uploadFile','read','appCode','13131NDEkuI','814564fFrNfW','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','3PUUngA','Uploaded\x20file:\x20','4447709lptDZe','4630CkDwqh'];a93_0x5a21=function(){return _0x3dbdb8;};return a93_0x5a21();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x1948b0(0xeb),'type':a93_0x1948b0(0xf5),'required':!![],'description':a93_0x1948b0(0xf1)},FILEPATH_FLAG={'name':a93_0x1948b0(0xfc),'type':a93_0x1948b0(0xf5),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a93_0x1948b0(0xec),'type':'boolean','description':a93_0x1948b0(0xf2)},LONG_TERM_FLAG={'name':a93_0x1948b0(0xfb),'type':a93_0x1948b0(0xf9),'description':a93_0x1948b0(0xe5)};function requireFilePath(_0x4fe2cc){const _0x858361=a93_0x1948b0,_0x3ed847=_0x4fe2cc[_0x858361(0xef)]();if(!_0x3ed847)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x3ed847;}function a93_0x4e65(_0x33cf6c,_0x3d8bf2){_0x33cf6c=_0x33cf6c-0xde;const _0x5a2198=a93_0x5a21();let _0x4e6545=_0x5a2198[_0x33cf6c];return _0x4e6545;}const fileUpload={'service':'file','command':a93_0x1948b0(0x100),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x17502e){const _0x3f0366=a93_0x1948b0,_0x4360b=requireDevelopmentUploadFile(_0x17502e[_0x3f0366(0xf7)]('file'),_0x3f0366(0xf0));return{'method':_0x3f0366(0xf6),'url':_0x3f0366(0xe0),'body':{'appCode':_0x17502e['appCode'],'multipart':{'file':_0x4360b}},'description':_0x3f0366(0xf3)+_0x4360b[_0x3f0366(0x103)]+_0x3f0366(0xed)+_0x17502e[_0x3f0366(0xe2)]};},async 'execute'(_0x5b6217){const _0x32b13c=a93_0x1948b0,_0x4f129b=requireDevelopmentUploadFile(_0x5b6217['str'](_0x32b13c(0xeb)),_0x32b13c(0xf0)),_0x589eeb=await uploadDevelopmentFile(_0x5b6217['appCode'],_0x4f129b['path']);return{'ok':!![],'data':_0x589eeb,'message':_0x589eeb[_0x32b13c(0xfd)]?_0x32b13c(0xe8)+_0x589eeb[_0x32b13c(0xfd)]+_0x32b13c(0xe6):_0x32b13c(0xf8)};}},fileQueryUrl={'service':a93_0x1948b0(0xeb),'command':a93_0x1948b0(0x102),'description':a93_0x1948b0(0xf4),'risk':a93_0x1948b0(0xe1),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x21be2b){const _0x1ebc40=a93_0x1948b0,_0x6b8b19=requireFilePath(_0x21be2b['str'](_0x1ebc40(0xfc))),_0x28468b=await queryDevelopmentFileUrl(_0x6b8b19,{'download':_0x21be2b[_0x1ebc40(0x101)]('download'),'longTerm':_0x21be2b[_0x1ebc40(0x101)](_0x1ebc40(0xfb))});return{'ok':!![],'data':_0x28468b};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a94_0x18fc21=a94_0x5343;(function(_0x57fdaf,_0x4ad7b5){const _0x3b98ac=a94_0x5343,_0x30341a=_0x57fdaf();while(!![]){try{const _0x253ea5=parseInt(_0x3b98ac(0x86))/0x1+parseInt(_0x3b98ac(0x70))/0x2*(-parseInt(_0x3b98ac(0x79))/0x3)+parseInt(_0x3b98ac(0x6b))/0x4*(-parseInt(_0x3b98ac(0x93))/0x5)+parseInt(_0x3b98ac(0x83))/0x6*(-parseInt(_0x3b98ac(0x85))/0x7)+parseInt(_0x3b98ac(0x6e))/0x8+parseInt(_0x3b98ac(0x88))/0x9+-parseInt(_0x3b98ac(0x87))/0xa;if(_0x253ea5===_0x4ad7b5)break;else _0x30341a['push'](_0x30341a['shift']());}catch(_0x6e9c49){_0x30341a['push'](_0x30341a['shift']());}}}(a94_0x469f,0xc4621));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a94_0x469f(){const _0xa25804=['appCode','\x20\x20Apps:\x20','boolean','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','Target\x20environment','24yTCbVu','yes','\x0a✓\x20Successfully\x20initialized\x20','Usage:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','init','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','env','write','validation','2139642dgqcgA','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','7pVFBFV','591251uDlNYn','7256640ANurdd','10088541TjtGel','project','\x20\x20Env:\x20','bool','App\x20code\x20to\x20initialize\x20with','\x20\x20Config:\x20','Use\x20`','join','appcode','Auto-confirm\x20prompts','Write\x20to\x20global\x20config\x20instead\x20of\x20project','4927745hbkcTp','str','\x20\x20Default:\x20','message','global','defaultApp','nonInteractive','production','4ZCwoyD','log','custom','11045352Hsqkds','string','55166LOSNsa','检测到旧配置文件,正在自动升级...\x0a','map'];a94_0x469f=function(){return _0xa25804;};return a94_0x469f();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x337993){return{'appCode':_0x337993,'appName':_0x337993};}function a94_0x5343(_0x3acaf0,_0x4d23a0){_0x3acaf0=_0x3acaf0-0x6b;const _0x469fa7=a94_0x469f();let _0x53437a=_0x469fa7[_0x3acaf0];return _0x53437a;}function writeInitConfig(_0x5ae18d,_0x24efc5,_0x2762a0){const _0x1e51c9=a94_0x5343,_0x357059=resolveWriteConfigPath(_0x5ae18d),_0x6c9b15=buildCanonicalProjectConfig({},{'appCodes':_0x24efc5[_0x1e51c9(0x72)](_0x3c5630=>_0x3c5630['appCode']),'env':_0x2762a0,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x357059,_0x6c9b15);const _0x1b2554=_0x5ae18d===_0x1e51c9(0x97)?_0x1e51c9(0x97):_0x1e51c9(0x89);console[_0x1e51c9(0x6c)](_0x1e51c9(0x7b)+_0x1b2554+'\x20config'),console[_0x1e51c9(0x6c)](_0x1e51c9(0x74)+_0x24efc5[_0x1e51c9(0x72)](_0x1d1502=>_0x1d1502[_0x1e51c9(0x73)])[_0x1e51c9(0x8f)](',\x20')),console[_0x1e51c9(0x6c)](_0x1e51c9(0x95)+_0x6c9b15[_0x1e51c9(0x98)]),console['log'](_0x1e51c9(0x8a)+_0x6c9b15[_0x1e51c9(0x80)]),console[_0x1e51c9(0x6c)](_0x1e51c9(0x8d)+_0x357059);}async function runSmartInit(_0xc2ef2a){const _0x4b62c5=a94_0x5343,_0x361912=process['cwd'](),_0x44f9d0=_0xc2ef2a['bool'](_0x4b62c5(0x97))?_0x4b62c5(0x97):'project',_0x162a6d=_0xc2ef2a[_0x4b62c5(0x94)](_0x4b62c5(0x80))||_0x4b62c5(0x9a),_0x200905=_0xc2ef2a[_0x4b62c5(0x94)](_0x4b62c5(0x90))||undefined;if(_0x44f9d0===_0x4b62c5(0x89)){const _0x1bf915=existsSync(resolve(_0x361912,NEW_CONFIG_NAME)),_0x26c959=LEGACY_CONFIG_NAMES[_0x4b62c5(0x77)](_0x49651a=>existsSync(resolve(_0x361912,_0x49651a)));if(_0x26c959&&!_0x1bf915)return console[_0x4b62c5(0x6c)](_0x4b62c5(0x71)),upgradeApp(_0xc2ef2a[_0x4b62c5(0x99)],{'yes':_0xc2ef2a[_0x4b62c5(0x8b)](_0x4b62c5(0x7a))});if(_0x1bf915)throw CliErrors[_0x4b62c5(0x82)](_0x4b62c5(0x84),_0x4b62c5(0x8e)+CLI_BIN_NAME+_0x4b62c5(0x7f));}if(_0x200905){const _0x43b625=validateAppcode(_0x200905);if(!_0x43b625['valid'])throw CliErrors[_0x4b62c5(0x82)](_0x43b625[_0x4b62c5(0x96)]);writeInitConfig(_0x44f9d0,[syntheticApp(_0x200905)],_0x162a6d);return;}if(_0xc2ef2a[_0x4b62c5(0x99)])throw CliErrors['flagMissing'](_0x4b62c5(0x90),_0x4b62c5(0x7c)+CLI_BIN_NAME+_0x4b62c5(0x7d));const _0x594605=getCookie(),_0x46a730=await selectMultipleApps(_0x594605),_0x57cd5b=_0x46a730===_0x4b62c5(0x6d)?[syntheticApp(await promptCustomAppcode())]:_0x46a730;writeInitConfig(_0x44f9d0,_0x57cd5b,_0x162a6d);}const initFlags=[{'name':a94_0x18fc21(0x97),'type':'boolean','description':a94_0x18fc21(0x92),'default':![]},{'name':a94_0x18fc21(0x80),'type':'string','description':a94_0x18fc21(0x78),'default':a94_0x18fc21(0x9a),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x18fc21(0x90),'type':a94_0x18fc21(0x6f),'description':a94_0x18fc21(0x8c)},{'name':a94_0x18fc21(0x7a),'type':a94_0x18fc21(0x75),'description':a94_0x18fc21(0x91),'default':![]}];export const initDefinitions=[{'service':a94_0x18fc21(0x7e),'command':'run','description':a94_0x18fc21(0x76),'risk':a94_0x18fc21(0x81),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1b1a42){return await runSmartInit(_0x1b1a42),{'ok':!![]};}}];
1
+ const a94_0x28b22b=a94_0x5923;(function(_0xb4732c,_0x3fb187){const _0x20501e=a94_0x5923,_0x1eeaa3=_0xb4732c();while(!![]){try{const _0x1e1caf=parseInt(_0x20501e(0x1b0))/0x1*(parseInt(_0x20501e(0x1cb))/0x2)+-parseInt(_0x20501e(0x1c8))/0x3*(-parseInt(_0x20501e(0x1c7))/0x4)+-parseInt(_0x20501e(0x1a8))/0x5+parseInt(_0x20501e(0x1a9))/0x6*(parseInt(_0x20501e(0x1c4))/0x7)+-parseInt(_0x20501e(0x1b9))/0x8+-parseInt(_0x20501e(0x1af))/0x9+parseInt(_0x20501e(0x1a7))/0xa;if(_0x1e1caf===_0x3fb187)break;else _0x1eeaa3['push'](_0x1eeaa3['shift']());}catch(_0x452115){_0x1eeaa3['push'](_0x1eeaa3['shift']());}}}(a94_0x2ea5,0x40139));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a94_0x2ea5(){const _0x1247c3=['custom','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','921051KhrYuH','541SPvJGZ','appCode','string','检测到旧配置文件,正在自动升级...\x0a','yes','valid','project','boolean','Use\x20`','41840OydYRQ','\x20\x20Config:\x20','validation','App\x20code\x20to\x20initialize\x20with','env','map','Usage:\x20','\x20\x20Env:\x20','str','Target\x20environment','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','850654UbxSSL','cwd','appcode','8SYnJKR','75252kevhIj','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','join','1940jtArko','log','flagMissing','Write\x20to\x20global\x20config\x20instead\x20of\x20project','toLocaleString','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','init','1712790IZNYfO','2488565khEQoM','6QOpPvQ','nonInteractive','production','global'];a94_0x2ea5=function(){return _0x1247c3;};return a94_0x2ea5();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a94_0x5923(_0xc49ee8,_0x552443){_0xc49ee8=_0xc49ee8-0x1a5;const _0x2ea505=a94_0x2ea5();let _0x592356=_0x2ea505[_0xc49ee8];return _0x592356;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0xbdd77){return{'appCode':_0xbdd77,'appName':_0xbdd77};}function writeInitConfig(_0x1587fa,_0x1f6229,_0x3b61ed){const _0x54ed2d=a94_0x5923,_0x405b78=resolveWriteConfigPath(_0x1587fa),_0x1d1798=buildCanonicalProjectConfig({},{'appCodes':_0x1f6229[_0x54ed2d(0x1be)](_0x182f69=>_0x182f69[_0x54ed2d(0x1b1)]),'env':_0x3b61ed,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x54ed2d(0x1cf)]()}});writeConfigFile(_0x405b78,_0x1d1798);const _0x59a986=_0x1587fa===_0x54ed2d(0x1ac)?_0x54ed2d(0x1ac):_0x54ed2d(0x1b6);console[_0x54ed2d(0x1cc)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x59a986+'\x20config'),console['log']('\x20\x20Apps:\x20'+_0x1f6229[_0x54ed2d(0x1be)](_0x494f4a=>_0x494f4a[_0x54ed2d(0x1b1)])[_0x54ed2d(0x1ca)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x1d1798['defaultApp']),console[_0x54ed2d(0x1cc)](_0x54ed2d(0x1c0)+_0x1d1798[_0x54ed2d(0x1bd)]),console[_0x54ed2d(0x1cc)](_0x54ed2d(0x1ba)+_0x405b78);}async function runSmartInit(_0x2677ab){const _0x28f308=a94_0x5923,_0x25002f=process[_0x28f308(0x1c5)](),_0x5cc76f=_0x2677ab['bool'](_0x28f308(0x1ac))?_0x28f308(0x1ac):'project',_0x84ffc6=_0x2677ab[_0x28f308(0x1c1)](_0x28f308(0x1bd))||_0x28f308(0x1ab),_0x12e98c=_0x2677ab[_0x28f308(0x1c1)](_0x28f308(0x1c6))||undefined;if(_0x5cc76f===_0x28f308(0x1b6)){const _0x31f86c=existsSync(resolve(_0x25002f,NEW_CONFIG_NAME)),_0x5edcfd=LEGACY_CONFIG_NAMES['some'](_0x1a9bbe=>existsSync(resolve(_0x25002f,_0x1a9bbe)));if(_0x5edcfd&&!_0x31f86c)return console[_0x28f308(0x1cc)](_0x28f308(0x1b3)),upgradeApp(_0x2677ab[_0x28f308(0x1aa)],{'yes':_0x2677ab['bool'](_0x28f308(0x1b4))});if(_0x31f86c)throw CliErrors[_0x28f308(0x1bb)](_0x28f308(0x1ae),_0x28f308(0x1b8)+CLI_BIN_NAME+_0x28f308(0x1c9));}if(_0x12e98c){const _0x26bb7d=validateAppcode(_0x12e98c);if(!_0x26bb7d[_0x28f308(0x1b5)])throw CliErrors[_0x28f308(0x1bb)](_0x26bb7d['message']);writeInitConfig(_0x5cc76f,[syntheticApp(_0x12e98c)],_0x84ffc6);return;}if(_0x2677ab[_0x28f308(0x1aa)])throw CliErrors[_0x28f308(0x1cd)](_0x28f308(0x1c6),_0x28f308(0x1bf)+CLI_BIN_NAME+_0x28f308(0x1a5));const _0x48234c=getCookie(),_0x50223e=await selectMultipleApps(_0x48234c),_0x209410=_0x50223e===_0x28f308(0x1ad)?[syntheticApp(await promptCustomAppcode())]:_0x50223e;writeInitConfig(_0x5cc76f,_0x209410,_0x84ffc6);}const initFlags=[{'name':a94_0x28b22b(0x1ac),'type':a94_0x28b22b(0x1b7),'description':a94_0x28b22b(0x1ce),'default':![]},{'name':a94_0x28b22b(0x1bd),'type':a94_0x28b22b(0x1b2),'description':a94_0x28b22b(0x1c2),'default':a94_0x28b22b(0x1ab),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x28b22b(0x1c6),'type':a94_0x28b22b(0x1b2),'description':a94_0x28b22b(0x1bc)},{'name':a94_0x28b22b(0x1b4),'type':a94_0x28b22b(0x1b7),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x28b22b(0x1a6),'command':'run','description':a94_0x28b22b(0x1c3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2f2ef0){return await runSmartInit(_0x2f2ef0),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x500a25,_0x539efa){const _0x39b887=a95_0x3742,_0x415513=_0x500a25();while(!![]){try{const _0x32d226=-parseInt(_0x39b887(0x1f4))/0x1*(parseInt(_0x39b887(0x1ef))/0x2)+-parseInt(_0x39b887(0x1f3))/0x3*(parseInt(_0x39b887(0x1e9))/0x4)+parseInt(_0x39b887(0x1f2))/0x5*(-parseInt(_0x39b887(0x1f0))/0x6)+parseInt(_0x39b887(0x1ee))/0x7*(-parseInt(_0x39b887(0x1eb))/0x8)+-parseInt(_0x39b887(0x1ed))/0x9+-parseInt(_0x39b887(0x1ea))/0xa*(-parseInt(_0x39b887(0x1ec))/0xb)+parseInt(_0x39b887(0x1f1))/0xc;if(_0x32d226===_0x539efa)break;else _0x415513['push'](_0x415513['shift']());}catch(_0x30e7e9){_0x415513['push'](_0x415513['shift']());}}}(a95_0x356a,0xaf7b9));import{issueReport}from'../../commands/issue/report.js';function a95_0x3742(_0x1cd1f8,_0x52adbf){_0x1cd1f8=_0x1cd1f8-0x1e9;const _0x356a6f=a95_0x356a();let _0x37420e=_0x356a6f[_0x1cd1f8];return _0x37420e;}function a95_0x356a(){const _0x1e3c26=['3099LpwJPc','11bleZyt','4304uxVJLJ','8950MGRhvy','8VREIGZ','3740plYZHT','6432570YCuomd','3595711whAYTM','79072KbBGyv','185676iDaaUc','53125488ohnbig','200FIuYAO'];a95_0x356a=function(){return _0x1e3c26;};return a95_0x356a();}export const issueDefinitions=[issueReport];
1
+ function a95_0x4347(){const _0x430491=['161IYXmOw','8630604nhwSKQ','4096080hXfKsp','351928QMrZIO','5092zEZCBO','238583GflIzo','1302BPBnTV','951775EYpGdl','2143288IiYcDk'];a95_0x4347=function(){return _0x430491;};return a95_0x4347();}(function(_0x3a043b,_0x574bb0){const _0x2d292c=a95_0x3715,_0x2709fb=_0x3a043b();while(!![]){try{const _0x33d5e0=parseInt(_0x2d292c(0x67))/0x1+-parseInt(_0x2d292c(0x6a))/0x2+-parseInt(_0x2d292c(0x68))/0x3*(-parseInt(_0x2d292c(0x6f))/0x4)+parseInt(_0x2d292c(0x69))/0x5+parseInt(_0x2d292c(0x6d))/0x6+-parseInt(_0x2d292c(0x6b))/0x7*(-parseInt(_0x2d292c(0x6e))/0x8)+-parseInt(_0x2d292c(0x6c))/0x9;if(_0x33d5e0===_0x574bb0)break;else _0x2709fb['push'](_0x2709fb['shift']());}catch(_0x2a2dd2){_0x2709fb['push'](_0x2709fb['shift']());}}}(a95_0x4347,0x9d8ad));import{issueReport}from'../../commands/issue/report.js';function a95_0x3715(_0x293030,_0x15f2fa){_0x293030=_0x293030-0x67;const _0x4347d8=a95_0x4347();let _0x371558=_0x4347d8[_0x293030];return _0x371558;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a96_0x5132d5=a96_0x11ea;(function(_0x51f07d,_0x59c51d){const _0x1d2412=a96_0x11ea,_0x582b5d=_0x51f07d();while(!![]){try{const _0x3fe26a=parseInt(_0x1d2412(0x1e6))/0x1*(parseInt(_0x1d2412(0x1dd))/0x2)+-parseInt(_0x1d2412(0x1e9))/0x3+-parseInt(_0x1d2412(0x1e8))/0x4*(parseInt(_0x1d2412(0x1e0))/0x5)+parseInt(_0x1d2412(0x1de))/0x6*(parseInt(_0x1d2412(0x1da))/0x7)+parseInt(_0x1d2412(0x1cd))/0x8*(-parseInt(_0x1d2412(0x1d1))/0x9)+parseInt(_0x1d2412(0x1d2))/0xa+parseInt(_0x1d2412(0x1e7))/0xb;if(_0x3fe26a===_0x59c51d)break;else _0x582b5d['push'](_0x582b5d['shift']());}catch(_0x20b1e2){_0x582b5d['push'](_0x582b5d['shift']());}}}(a96_0x10b0,0xaec57));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x5132d5(0x1e3);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a96_0x5132d5(0x1d6),'config_missing','not_in_project','unknown_command',a96_0x5132d5(0x1e5),a96_0x5132d5(0x1c9),a96_0x5132d5(0x1cc)]),defaultWriter=_0xcf516d=>{const _0x1e244d=a96_0x5132d5;process[_0x1e244d(0x1d4)][_0x1e244d(0x1cf)](_0xcf516d);};export function shouldNudgeForError(_0x5e78c6,_0x238c7f){const _0x964679=a96_0x5132d5;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x238c7f[_0x964679(0x1c8)]==='issue'&&_0x238c7f[_0x964679(0x1dc)]===_0x964679(0x1e1))return![];if(_0x5e78c6 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x964679(0x1cb)](_0x5e78c6[_0x964679(0x1db)]);return!![];}export function printIssueReportNudgeForError(_0x3e4aa8,_0x1cad75,_0x912cf5=defaultWriter){if(!shouldNudgeForError(_0x3e4aa8,_0x1cad75))return;const _0xdb8813=buildSuggestedTitle(_0x3e4aa8,_0x1cad75);_0x912cf5(formatNudge(_0xdb8813));}function a96_0x11ea(_0xc5e353,_0x31600e){_0xc5e353=_0xc5e353-0x1c8;const _0x10b059=a96_0x10b0();let _0x11eacc=_0x10b059[_0xc5e353];return _0x11eacc;}function buildSuggestedTitle(_0x3ca021,_0xd54cec){const _0x33b640=a96_0x5132d5,_0x17641f=_0x3ca021 instanceof Error?_0x3ca021['message']:String(_0x3ca021),_0x5472b8=_0x17641f[_0x33b640(0x1d0)](/[\r\n]+/g,'\x20')[_0x33b640(0x1d0)](/\s+/g,'\x20')[_0x33b640(0x1d5)]()[_0x33b640(0x1d9)](0x0,0x78)[_0x33b640(0x1d0)](/"/g,'\x5c\x22'),_0x2fa775=CLI_BIN_NAME+'\x20'+_0xd54cec[_0x33b640(0x1c8)]+'\x20'+_0xd54cec[_0x33b640(0x1dc)];return _0x5472b8['length']>0x0?_0x2fa775+':\x20'+_0x5472b8:_0x2fa775;}function a96_0x10b0(){const _0x148241=['12398830LKucAs','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','stderr','trim','auth_required','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x22\x20\x5c','slice','3388YDOKAm','code','command','6388JOFasi','654QbLbZB','\x20issue\x20report\x20\x5c','795185wuTfdo','report','\x20bug?\x20Help\x20us\x20fix\x20it:','RABETBASE_DISABLE_ISSUE_NUDGE','Hit\x20a\x20','flag_missing','172GXTHeU','6459343UQvGBw','24Aeoatd','1638399nciicQ','service','validation_error','\x20\x20\x20\x20--title\x20\x22','has','network_error','16ieEKcv','join','write','replace','958509fIwnsM'];a96_0x10b0=function(){return _0x148241;};return a96_0x10b0();}function formatNudge(_0x49e703){const _0x265d76=a96_0x5132d5;return['',_0x265d76(0x1e4)+CLI_BIN_NAME+_0x265d76(0x1e2),'\x20\x20'+CLI_BIN_NAME+_0x265d76(0x1df),_0x265d76(0x1ca)+_0x49e703+_0x265d76(0x1d8),_0x265d76(0x1d3),_0x265d76(0x1d7),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x265d76(0x1ce)]('\x0a');}
1
+ function a96_0x56bb(){const _0x122ad1=['56017HECoiX','RABETBASE_DISABLE_ISSUE_NUDGE','86787htkUmG','8VbeHet','4SNEjIV','config_missing','service','write','stderr','215230qHINrI','cancelled','\x20bug?\x20Help\x20us\x20fix\x20it:','command','\x20\x20Set\x20','\x22\x20\x5c','12gpFvng','code','flag_missing','2506pplwds','length','4481554LWSeAy','slice','413819vafwYU','72yMSIxj','not_in_project','replace','\x20\x20\x20\x20--title\x20\x22','162caEhCo','unknown_command','=1\x20to\x20silence\x20this\x20hint.','12SZgctF','validation_error','report','285583RAMWgq','923245LxfUpP','Hit\x20a\x20','join','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20issue\x20report\x20\x5c'];a96_0x56bb=function(){return _0x122ad1;};return a96_0x56bb();}const a96_0x19333d=a96_0x2f5c;(function(_0x1a6881,_0x4dbf35){const _0x3da691=a96_0x2f5c,_0x109324=_0x1a6881();while(!![]){try{const _0x359172=parseInt(_0x3da691(0x140))/0x1*(-parseInt(_0x3da691(0x14a))/0x2)+parseInt(_0x3da691(0x148))/0x3*(-parseInt(_0x3da691(0x149))/0x4)+parseInt(_0x3da691(0x141))/0x5*(parseInt(_0x3da691(0x12e))/0x6)+-parseInt(_0x3da691(0x135))/0x7*(-parseInt(_0x3da691(0x136))/0x8)+-parseInt(_0x3da691(0x13a))/0x9*(-parseInt(_0x3da691(0x128))/0xa)+-parseInt(_0x3da691(0x133))/0xb*(-parseInt(_0x3da691(0x13d))/0xc)+parseInt(_0x3da691(0x146))/0xd*(-parseInt(_0x3da691(0x131))/0xe);if(_0x359172===_0x4dbf35)break;else _0x109324['push'](_0x109324['shift']());}catch(_0x368a81){_0x109324['push'](_0x109324['shift']());}}}(a96_0x56bb,0x483a4));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x19333d(0x147);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x19333d(0x129),'auth_required',a96_0x19333d(0x14b),a96_0x19333d(0x137),a96_0x19333d(0x13b),a96_0x19333d(0x130),a96_0x19333d(0x13e),'network_error']),defaultWriter=_0x4d2a89=>{const _0x91bd3c=a96_0x19333d;process[_0x91bd3c(0x14e)][_0x91bd3c(0x14d)](_0x4d2a89);};export function shouldNudgeForError(_0x3ddd57,_0x415b49){const _0x5288a4=a96_0x19333d;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x415b49[_0x5288a4(0x14c)]==='issue'&&_0x415b49[_0x5288a4(0x12b)]===_0x5288a4(0x13f))return![];if(_0x3ddd57 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x3ddd57[_0x5288a4(0x12f)]);return!![];}function a96_0x2f5c(_0x3df040,_0x515c27){_0x3df040=_0x3df040-0x128;const _0x56bb55=a96_0x56bb();let _0x2f5c3a=_0x56bb55[_0x3df040];return _0x2f5c3a;}export function printIssueReportNudgeForError(_0x357336,_0x40883a,_0x5ebc59=defaultWriter){if(!shouldNudgeForError(_0x357336,_0x40883a))return;const _0x4ee650=buildSuggestedTitle(_0x357336,_0x40883a);_0x5ebc59(formatNudge(_0x4ee650));}function buildSuggestedTitle(_0x37d329,_0x28dedc){const _0x34c94d=a96_0x19333d,_0x408260=_0x37d329 instanceof Error?_0x37d329['message']:String(_0x37d329),_0x4dc113=_0x408260['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')['trim']()[_0x34c94d(0x134)](0x0,0x78)[_0x34c94d(0x138)](/"/g,'\x5c\x22'),_0x5f34a5=CLI_BIN_NAME+'\x20'+_0x28dedc['service']+'\x20'+_0x28dedc[_0x34c94d(0x12b)];return _0x4dc113[_0x34c94d(0x132)]>0x0?_0x5f34a5+':\x20'+_0x4dc113:_0x5f34a5;}function formatNudge(_0x42526f){const _0x25696a=a96_0x19333d;return['',_0x25696a(0x142)+CLI_BIN_NAME+_0x25696a(0x12a),'\x20\x20'+CLI_BIN_NAME+_0x25696a(0x145),_0x25696a(0x139)+_0x42526f+_0x25696a(0x12d),_0x25696a(0x144),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x25696a(0x12c)+NUDGE_OPT_OUT_ENV+_0x25696a(0x13c),''][_0x25696a(0x143)]('\x0a');}
@@ -1 +1 @@
1
- const a97_0x200a79=a97_0x4b30;(function(_0x5a8058,_0x573fcb){const _0x4a8dc3=a97_0x4b30,_0x507670=_0x5a8058();while(!![]){try{const _0x13a678=-parseInt(_0x4a8dc3(0xc3))/0x1+parseInt(_0x4a8dc3(0xb6))/0x2+-parseInt(_0x4a8dc3(0xd5))/0x3+parseInt(_0x4a8dc3(0xdb))/0x4*(-parseInt(_0x4a8dc3(0xc6))/0x5)+-parseInt(_0x4a8dc3(0xb1))/0x6+-parseInt(_0x4a8dc3(0xd7))/0x7+-parseInt(_0x4a8dc3(0xc1))/0x8*(-parseInt(_0x4a8dc3(0xc4))/0x9);if(_0x13a678===_0x573fcb)break;else _0x507670['push'](_0x507670['shift']());}catch(_0x222ce2){_0x507670['push'](_0x507670['shift']());}}}(a97_0x3f30,0xa4bc4));function a97_0x4b30(_0x5a0308,_0x43f09f){_0x5a0308=_0x5a0308-0xaf;const _0x3f30b8=a97_0x3f30();let _0x4b30ae=_0x3f30b8[_0x5a0308];return _0x4b30ae;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a97_0x3f30(){const _0x3d5c37=['cwd','\x20bytes','length','str','apiError','Failed\x20to\x20report\x20platform\x20issue:\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','File\x20not\x20found:\x20','trim','issue.description_redactions','descriptionFile:\x20','description','One-line\x20issue\x20summary','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Issue\x20description\x20cannot\x20be\x20empty.','5308128vBJLwG','Platform\x20issue\x20reported\x20(','redactionCount','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','truncated:\x20original\x20','579108GXGWaF','descriptionSource','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','string','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_original_bytes','truncated','issue.title','file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','issue','686728xfzzOF','compress','855609hmHdEz','369dSkBCO','validation','35ZSuFBv','issue.description_redaction_kinds','redactions:\x20','POST','truncated\x20from\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','join','write','originalBytes','descriptionFilePath','sanitize','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','utf8','title','descriptionSource:\x20','835836RiGEkC','redactionKinds','937888QxHuhq','flagMissing','issue.description_truncated','push','560792ZgoGrE','description-file','issue.description'];a97_0x3f30=function(){return _0x3d5c37;};return a97_0x3f30();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0x200a79(0xdc);export const issueReport={'service':a97_0x200a79(0xc0),'command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a97_0x200a79(0xcd),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x200a79(0xc2),'flags':[{'name':a97_0x200a79(0xd3),'type':a97_0x200a79(0xb9),'required':!![],'description':a97_0x200a79(0xea)},{'name':a97_0x200a79(0xe9),'type':a97_0x200a79(0xb9),'description':a97_0x200a79(0xb4)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a97_0x200a79(0xaf)}],async 'validate'(_0xd9713a){const _0x517a3e=a97_0x200a79,_0x47c1d2=_0xd9713a[_0x517a3e(0xe1)](_0x517a3e(0xd3))['trim'](),_0x448a96=_0xd9713a[_0x517a3e(0xe1)]('description')[_0x517a3e(0xe6)](),_0x239193=_0xd9713a['str'](DESCRIPTION_FILE_FLAG)[_0x517a3e(0xe6)]();if(!_0x47c1d2)throw CliErrors[_0x517a3e(0xd8)](_0x517a3e(0xd3),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x42cedc=_0x448a96[_0x517a3e(0xe0)]>0x0,_0x4cdc13=_0x239193[_0x517a3e(0xe0)]>0x0;if(_0x42cedc===_0x4cdc13)throw CliErrors[_0x517a3e(0xc5)](_0x517a3e(0xba),_0x517a3e(0xd1));if(_0x4cdc13){const _0x5d5ee2=resolve(process[_0x517a3e(0xde)](),_0x239193);if(!existsSync(_0x5d5ee2))throw CliErrors[_0x517a3e(0xc5)](_0x517a3e(0xe5)+_0x5d5ee2);}},async 'dryRun'(_0x5670cc){const _0x463d51=a97_0x200a79,_0x398032=await prepareIssueReport(_0x5670cc);return{'method':_0x463d51(0xc9),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x398032[_0x463d51(0xd3)],'issue.description':_0x398032[_0x463d51(0xe9)],'issue.description_original_bytes':_0x398032['sanitize'][_0x463d51(0xce)],'issue.description_truncated':_0x398032[_0x463d51(0xd0)]['truncated'],'issue.description_redactions':_0x398032[_0x463d51(0xd0)][_0x463d51(0xb3)],'issue.description_redaction_kinds':_0x398032['sanitize'][_0x463d51(0xd6)][_0x463d51(0xcc)](',')}},'description':[_0x463d51(0xe4),_0x463d51(0xd4)+_0x398032['descriptionSource'],_0x398032[_0x463d51(0xcf)]?_0x463d51(0xe8)+_0x398032[_0x463d51(0xcf)]:null,_0x398032['sanitize'][_0x463d51(0xbc)]?_0x463d51(0xb5)+_0x398032[_0x463d51(0xd0)][_0x463d51(0xce)]+_0x463d51(0xdf):null,_0x398032['sanitize'][_0x463d51(0xb3)]>0x0?_0x463d51(0xc8)+_0x398032[_0x463d51(0xd0)][_0x463d51(0xb3)]+'\x20('+_0x398032['sanitize'][_0x463d51(0xd6)][_0x463d51(0xcc)](',\x20')+')':null]['filter'](Boolean)[_0x463d51(0xcc)]('\x0a')};},async 'execute'(_0x491329){const _0x1d2c80=a97_0x200a79,_0x3d4c81=await prepareIssueReport(_0x491329);try{await sendPlatformIssueCollectLog({'title':_0x3d4c81[_0x1d2c80(0xd3)],'description':_0x3d4c81[_0x1d2c80(0xe9)],'sanitize':{'originalBytes':_0x3d4c81[_0x1d2c80(0xd0)][_0x1d2c80(0xce)],'truncated':_0x3d4c81[_0x1d2c80(0xd0)][_0x1d2c80(0xbc)],'redactionCount':_0x3d4c81['sanitize'][_0x1d2c80(0xb3)],'redactionKinds':_0x3d4c81[_0x1d2c80(0xd0)]['redactionKinds']}});}catch(_0x5c8a65){throw CliErrors[_0x1d2c80(0xe2)](_0x1d2c80(0xe3)+(_0x5c8a65 instanceof Error?_0x5c8a65['message']:String(_0x5c8a65)),_0x1d2c80(0xcb));}return{'ok':!![],'message':buildResultMessage(_0x3d4c81[_0x1d2c80(0xd0)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1d2c80(0xbd),_0x1d2c80(0xdd),_0x1d2c80(0xbb),_0x1d2c80(0xd9),_0x1d2c80(0xe7),_0x1d2c80(0xc7)],'issue':{'title':_0x3d4c81[_0x1d2c80(0xd3)],'descriptionLength':_0x3d4c81['description'][_0x1d2c80(0xe0)],'descriptionSource':_0x3d4c81[_0x1d2c80(0xb7)],..._0x3d4c81[_0x1d2c80(0xcf)]?{'descriptionFile':_0x3d4c81[_0x1d2c80(0xcf)]}:{},'sanitize':{'originalBytes':_0x3d4c81[_0x1d2c80(0xd0)][_0x1d2c80(0xce)],'truncated':_0x3d4c81[_0x1d2c80(0xd0)]['truncated'],'redactions':_0x3d4c81[_0x1d2c80(0xd0)][_0x1d2c80(0xb3)],'redactionKinds':_0x3d4c81[_0x1d2c80(0xd0)]['redactionKinds']}}}};}};function buildResultMessage(_0x33644f){const _0x2599e4=a97_0x200a79,_0x9afd5e=[];return _0x33644f['truncated']&&_0x9afd5e[_0x2599e4(0xda)](_0x2599e4(0xca)+_0x33644f[_0x2599e4(0xce)]+_0x2599e4(0xdf)),_0x33644f[_0x2599e4(0xb3)]>0x0&&_0x9afd5e[_0x2599e4(0xda)]('redacted\x20'+_0x33644f['redactionCount']+'\x20secret(s):\x20'+_0x33644f[_0x2599e4(0xd6)][_0x2599e4(0xcc)](',\x20')),_0x9afd5e[_0x2599e4(0xe0)]===0x0?'Platform\x20issue\x20reported':_0x2599e4(0xb2)+_0x9afd5e[_0x2599e4(0xcc)](';\x20')+')';}async function prepareIssueReport(_0x2b3706){const _0x11fdc6=a97_0x200a79,_0x3a6acb=_0x2b3706[_0x11fdc6(0xe1)](_0x11fdc6(0xd3))[_0x11fdc6(0xe6)](),_0x1ed1e1=_0x2b3706[_0x11fdc6(0xe1)]('description'),_0x36def5=_0x2b3706[_0x11fdc6(0xe1)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x36def5){const _0x53a1f9=_0x1ed1e1;if(!_0x53a1f9[_0x11fdc6(0xe6)]())throw CliErrors[_0x11fdc6(0xc5)](_0x11fdc6(0xb0),_0x11fdc6(0xb8));const _0x462a0e=sanitizeIssueDescription(_0x53a1f9);return{'title':_0x3a6acb,'description':_0x462a0e[_0x11fdc6(0xe9)],'descriptionSource':'inline','sanitize':_0x462a0e};}const _0x155f86=resolve(process[_0x11fdc6(0xde)](),_0x36def5),_0x3eda8a=await readFile(_0x155f86,_0x11fdc6(0xd2));if(!_0x3eda8a[_0x11fdc6(0xe6)]())throw CliErrors[_0x11fdc6(0xc5)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x155f86,_0x11fdc6(0xbf));const _0x1e7644=sanitizeIssueDescription(_0x3eda8a);return{'title':_0x3a6acb,'description':_0x1e7644['description'],'descriptionSource':_0x11fdc6(0xbe),'descriptionFilePath':_0x155f86,'sanitize':_0x1e7644};}
1
+ const a97_0x450281=a97_0xa931;(function(_0x323695,_0x2508f9){const _0x2ade05=a97_0xa931,_0x552c99=_0x323695();while(!![]){try{const _0x142721=-parseInt(_0x2ade05(0xc2))/0x1*(-parseInt(_0x2ade05(0xa4))/0x2)+-parseInt(_0x2ade05(0x92))/0x3+-parseInt(_0x2ade05(0x87))/0x4*(parseInt(_0x2ade05(0x8c))/0x5)+parseInt(_0x2ade05(0xb6))/0x6*(parseInt(_0x2ade05(0xa1))/0x7)+-parseInt(_0x2ade05(0xaf))/0x8+-parseInt(_0x2ade05(0x89))/0x9+parseInt(_0x2ade05(0xc6))/0xa;if(_0x142721===_0x2508f9)break;else _0x552c99['push'](_0x552c99['shift']());}catch(_0x455f01){_0x552c99['push'](_0x552c99['shift']());}}}(a97_0x24f1,0x6c2a9));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';function a97_0x24f1(){const _0x5dcbe6=['validation','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','title','issue','filter','179BxOqmj','truncated','message','POST','3531280mRxnJd','flagMissing','Failed\x20to\x20report\x20platform\x20issue:\x20','truncated\x20from\x20','descriptionSource:\x20','redacted\x20','15896qKtZaG','compress','2417796gGTRwt','join','str','80EDNbHM','otel://','descriptionSource','description','trim','write','608283ilFaKd','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionFile:\x20','redactionCount','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','description-file','issue.description_redaction_kinds','\x20secret(s):\x20','inline','descriptionFilePath','redactionKinds','report','Platform\x20issue\x20reported\x20(','apiError','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','4075414pmGOFh','issue.description_original_bytes','Issue\x20description\x20cannot\x20be\x20empty.','3044MSrleY','cwd','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','\x20bytes','sanitize','One-line\x20issue\x20summary','issue.description','issue.title','originalBytes','truncated:\x20original\x20','redactions:\x20','1837840euqTZj','file','issue.description_truncated','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','utf8','push','string','6BouTsQ','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue.description_redactions','length','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Issue\x20description\x20file\x20is\x20empty:\x20'];a97_0x24f1=function(){return _0x5dcbe6;};return a97_0x24f1();}const DESCRIPTION_FILE_FLAG=a97_0x450281(0x97);function a97_0xa931(_0x1d2367,_0x3a1122){_0x1d2367=_0x1d2367-0x85;const _0x24f13a=a97_0x24f1();let _0xa93144=_0x24f13a[_0x1d2367];return _0xa93144;}export const issueReport={'service':a97_0x450281(0xc0),'command':a97_0x450281(0x9d),'description':a97_0x450281(0xb7),'risk':a97_0x450281(0x91),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x450281(0x88),'flags':[{'name':'title','type':a97_0x450281(0xb5),'required':!![],'description':a97_0x450281(0xa9)},{'name':a97_0x450281(0x8f),'type':a97_0x450281(0xb5),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x450281(0xb5),'description':a97_0x450281(0xbd)}],async 'validate'(_0x120974){const _0x300758=a97_0x450281,_0x16c1be=_0x120974['str'](_0x300758(0xbf))[_0x300758(0x90)](),_0x4b6c70=_0x120974[_0x300758(0x8b)](_0x300758(0x8f))[_0x300758(0x90)](),_0x194c11=_0x120974[_0x300758(0x8b)](DESCRIPTION_FILE_FLAG)[_0x300758(0x90)]();if(!_0x16c1be)throw CliErrors[_0x300758(0xc7)]('title',_0x300758(0xba));const _0x4e7692=_0x4b6c70[_0x300758(0xb9)]>0x0,_0x35c9bb=_0x194c11[_0x300758(0xb9)]>0x0;if(_0x4e7692===_0x35c9bb)throw CliErrors['validation'](_0x300758(0x96),_0x300758(0xa6));if(_0x35c9bb){const _0x5c3157=resolve(process[_0x300758(0xa5)](),_0x194c11);if(!existsSync(_0x5c3157))throw CliErrors[_0x300758(0xbc)]('File\x20not\x20found:\x20'+_0x5c3157);}},async 'dryRun'(_0x38b31f){const _0x11c5a4=a97_0x450281,_0x47dd92=await prepareIssueReport(_0x38b31f);return{'method':_0x11c5a4(0xc5),'url':_0x11c5a4(0x8d)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x47dd92[_0x11c5a4(0xbf)],'issue.description':_0x47dd92[_0x11c5a4(0x8f)],'issue.description_original_bytes':_0x47dd92['sanitize']['originalBytes'],'issue.description_truncated':_0x47dd92[_0x11c5a4(0xa8)]['truncated'],'issue.description_redactions':_0x47dd92[_0x11c5a4(0xa8)][_0x11c5a4(0x95)],'issue.description_redaction_kinds':_0x47dd92[_0x11c5a4(0xa8)][_0x11c5a4(0x9c)][_0x11c5a4(0x8a)](',')}},'description':[_0x11c5a4(0xb2),_0x11c5a4(0x85)+_0x47dd92[_0x11c5a4(0x8e)],_0x47dd92[_0x11c5a4(0x9b)]?_0x11c5a4(0x94)+_0x47dd92[_0x11c5a4(0x9b)]:null,_0x47dd92[_0x11c5a4(0xa8)][_0x11c5a4(0xc3)]?_0x11c5a4(0xad)+_0x47dd92[_0x11c5a4(0xa8)][_0x11c5a4(0xac)]+_0x11c5a4(0xa7):null,_0x47dd92[_0x11c5a4(0xa8)]['redactionCount']>0x0?_0x11c5a4(0xae)+_0x47dd92[_0x11c5a4(0xa8)][_0x11c5a4(0x95)]+'\x20('+_0x47dd92['sanitize'][_0x11c5a4(0x9c)][_0x11c5a4(0x8a)](',\x20')+')':null][_0x11c5a4(0xc1)](Boolean)[_0x11c5a4(0x8a)]('\x0a')};},async 'execute'(_0x27f8c0){const _0x5226bb=a97_0x450281,_0x438fbc=await prepareIssueReport(_0x27f8c0);try{await sendPlatformIssueCollectLog({'title':_0x438fbc['title'],'description':_0x438fbc['description'],'sanitize':{'originalBytes':_0x438fbc[_0x5226bb(0xa8)][_0x5226bb(0xac)],'truncated':_0x438fbc[_0x5226bb(0xa8)][_0x5226bb(0xc3)],'redactionCount':_0x438fbc['sanitize'][_0x5226bb(0x95)],'redactionKinds':_0x438fbc['sanitize'][_0x5226bb(0x9c)]}});}catch(_0x3056f2){throw CliErrors[_0x5226bb(0x9f)](_0x5226bb(0xc8)+(_0x3056f2 instanceof Error?_0x3056f2[_0x5226bb(0xc4)]:String(_0x3056f2)),_0x5226bb(0xa0));}return{'ok':!![],'message':buildResultMessage(_0x438fbc[_0x5226bb(0xa8)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x5226bb(0xab),_0x5226bb(0xaa),_0x5226bb(0xa2),_0x5226bb(0xb1),_0x5226bb(0xb8),_0x5226bb(0x98)],'issue':{'title':_0x438fbc['title'],'descriptionLength':_0x438fbc[_0x5226bb(0x8f)]['length'],'descriptionSource':_0x438fbc[_0x5226bb(0x8e)],..._0x438fbc['descriptionFilePath']?{'descriptionFile':_0x438fbc[_0x5226bb(0x9b)]}:{},'sanitize':{'originalBytes':_0x438fbc[_0x5226bb(0xa8)][_0x5226bb(0xac)],'truncated':_0x438fbc[_0x5226bb(0xa8)]['truncated'],'redactions':_0x438fbc[_0x5226bb(0xa8)]['redactionCount'],'redactionKinds':_0x438fbc[_0x5226bb(0xa8)]['redactionKinds']}}}};}};function buildResultMessage(_0x4a9ce6){const _0x3fae82=a97_0x450281,_0x201671=[];return _0x4a9ce6[_0x3fae82(0xc3)]&&_0x201671[_0x3fae82(0xb4)](_0x3fae82(0xc9)+_0x4a9ce6['originalBytes']+_0x3fae82(0xa7)),_0x4a9ce6[_0x3fae82(0x95)]>0x0&&_0x201671['push'](_0x3fae82(0x86)+_0x4a9ce6[_0x3fae82(0x95)]+_0x3fae82(0x99)+_0x4a9ce6[_0x3fae82(0x9c)][_0x3fae82(0x8a)](',\x20')),_0x201671['length']===0x0?'Platform\x20issue\x20reported':_0x3fae82(0x9e)+_0x201671[_0x3fae82(0x8a)](';\x20')+')';}async function prepareIssueReport(_0xcd0269){const _0xf825ae=a97_0x450281,_0x356a22=_0xcd0269[_0xf825ae(0x8b)](_0xf825ae(0xbf))[_0xf825ae(0x90)](),_0x338e38=_0xcd0269[_0xf825ae(0x8b)]('description'),_0x35ecc0=_0xcd0269[_0xf825ae(0x8b)](DESCRIPTION_FILE_FLAG)[_0xf825ae(0x90)]();if(!_0x35ecc0){const _0x308da5=_0x338e38;if(!_0x308da5[_0xf825ae(0x90)]())throw CliErrors['validation'](_0xf825ae(0xa3),_0xf825ae(0xbe));const _0x30d932=sanitizeIssueDescription(_0x308da5);return{'title':_0x356a22,'description':_0x30d932['description'],'descriptionSource':_0xf825ae(0x9a),'sanitize':_0x30d932};}const _0x340881=resolve(process['cwd'](),_0x35ecc0),_0x1728e0=await readFile(_0x340881,_0xf825ae(0xb3));if(!_0x1728e0[_0xf825ae(0x90)]())throw CliErrors['validation'](_0xf825ae(0xbb)+_0x340881,_0xf825ae(0x93));const _0x4532db=sanitizeIssueDescription(_0x1728e0);return{'title':_0x356a22,'description':_0x4532db[_0xf825ae(0x8f)],'descriptionSource':_0xf825ae(0xb0),'descriptionFilePath':_0x340881,'sanitize':_0x4532db};}
@@ -1 +1 @@
1
- const a98_0x1d1513=a98_0x56fd;(function(_0x48ae63,_0x364cfe){const _0x2d6bde=a98_0x56fd,_0x522ca7=_0x48ae63();while(!![]){try{const _0x563c84=parseInt(_0x2d6bde(0x1ae))/0x1+-parseInt(_0x2d6bde(0x19b))/0x2*(-parseInt(_0x2d6bde(0x1a3))/0x3)+parseInt(_0x2d6bde(0x19c))/0x4+-parseInt(_0x2d6bde(0x1ad))/0x5*(parseInt(_0x2d6bde(0x1aa))/0x6)+-parseInt(_0x2d6bde(0x1b6))/0x7+parseInt(_0x2d6bde(0x192))/0x8+-parseInt(_0x2d6bde(0x19f))/0x9;if(_0x563c84===_0x364cfe)break;else _0x522ca7['push'](_0x522ca7['shift']());}catch(_0x37e82a){_0x522ca7['push'](_0x522ca7['shift']());}}}(a98_0x1a9f,0x4a26d));function a98_0x56fd(_0x2909bb,_0x5227d8){_0x2909bb=_0x2909bb-0x191;const _0x1a9f89=a98_0x1a9f();let _0x56fdc5=_0x1a9f89[_0x2909bb];return _0x56fdc5;}function a98_0x1a9f(){const _0xaf5592=['388437PTBsCV','slice','__RB_OSS_ID_','description','kind','string','bearer-jwt','24AKhECG','REDACTED:bearer-jwt','toString','491170LYSnLF','158893MiLNNw','password','from','byteLength','utf8','pattern','label','private-key','751128UBOhGX','max','3960632DDPSWE','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:authorization','REDACTED:access-key','cookie','replace','subarray','REDACTED:password','REDACTED:cookie','2smIJPG','2112304MEzGwA','push','REDACTED:private-key','4568058NfvVmP','access-key','includes','length'];a98_0x1a9f=function(){return _0xaf5592;};return a98_0x1a9f();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x1d1513(0x193),REDACTION_RULES=[{'kind':a98_0x1d1513(0x196),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x1d1513(0x19a)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x1d1513(0x194)},{'kind':a98_0x1d1513(0x1b5),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x1d1513(0x19e)},{'kind':a98_0x1d1513(0x1a0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x1d1513(0x195)},{'kind':a98_0x1d1513(0x1af),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x1d1513(0x199)},{'kind':a98_0x1d1513(0x1a9),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x1d1513(0x1ab)}];export function sanitizeIssueDescription(_0x3e8f26){const _0x2fdf59=a98_0x1d1513,_0xf613b9=Buffer[_0x2fdf59(0x1b1)](_0x3e8f26,'utf8'),_0x1561c6=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2c1921=_0x3e8f26,_0x4d4ef0=0x0;const _0x4d36c7=[];if(!_0x1561c6){const _0x4ea113=protectOssAccessKeyIds(_0x2c1921);_0x2c1921=_0x4ea113[_0x2fdf59(0x1a6)];for(const _0x1b403e of REDACTION_RULES){let _0x244917=0x0;_0x2c1921=_0x2c1921[_0x2fdf59(0x197)](_0x1b403e[_0x2fdf59(0x1b3)],(_0x934137,_0x24d27c)=>{const _0x535f45=_0x2fdf59;_0x244917+=0x1;const _0x19f6ee=typeof _0x24d27c===_0x535f45(0x1a8)?_0x24d27c:'';return _0x19f6ee+'['+_0x1b403e[_0x535f45(0x1b4)]+']';}),_0x244917>0x0&&(_0x4d4ef0+=_0x244917,!_0x4d36c7[_0x2fdf59(0x1a1)](_0x1b403e['kind'])&&_0x4d36c7[_0x2fdf59(0x19d)](_0x1b403e[_0x2fdf59(0x1a7)]));}_0x2c1921=_0x4ea113['restore'](_0x2c1921);}let _0x249bdf=![];if(Buffer[_0x2fdf59(0x1b1)](_0x2c1921,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x249bdf=!![];const _0x3f77d8=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x1a2b52=Math[_0x2fdf59(0x191)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3f77d8);_0x2c1921=sliceUtf8Bytes(_0x2c1921,_0x1a2b52)+TRUNCATION_NOTICE;}return{'description':_0x2c1921,'originalBytes':_0xf613b9,'truncated':_0x249bdf,'redactionCount':_0x4d4ef0,'redactionKinds':_0x4d36c7};}function protectOssAccessKeyIds(_0x381e8d){const _0x21f79f=a98_0x1d1513,_0x289e56=[],_0x278d46=_0x381e8d['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x34a536,_0xafb2ed)=>{const _0x591328=a98_0x56fd,_0x53f893=_0x289e56[_0x591328(0x19d)](_0x34a536[_0x591328(0x1a4)](_0xafb2ed[_0x591328(0x1a2)]))-0x1;return _0xafb2ed+_0x591328(0x1a5)+_0x53f893+'__';});return{'description':_0x278d46,'restore':_0x3e75de=>_0x3e75de[_0x21f79f(0x197)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x4c5ea4,_0x37affd,_0x53fcb1)=>{const _0x1b957c=_0x289e56[Number(_0x53fcb1)];return _0x1b957c===undefined?_0x4c5ea4:''+_0x37affd+_0x1b957c;})};}function sliceUtf8Bytes(_0x43ee1d,_0x5b00eb){const _0x45420f=a98_0x1d1513;if(_0x5b00eb<=0x0)return'';const _0x3dd44b=Buffer[_0x45420f(0x1b0)](_0x43ee1d,_0x45420f(0x1b2));if(_0x3dd44b[_0x45420f(0x1b1)]<=_0x5b00eb)return _0x43ee1d;let _0x34dfcd=_0x5b00eb;while(_0x34dfcd>0x0){const _0x95545d=_0x3dd44b[_0x34dfcd];if(_0x95545d===undefined||(_0x95545d&0xc0)!==0x80)break;_0x34dfcd-=0x1;}return _0x3dd44b[_0x45420f(0x198)](0x0,_0x34dfcd)[_0x45420f(0x1ac)](_0x45420f(0x1b2));}
1
+ const a98_0x3ebc3b=a98_0x42ff;(function(_0x4b0170,_0x207d05){const _0x19aa40=a98_0x42ff,_0x4fb2fc=_0x4b0170();while(!![]){try{const _0x315d39=parseInt(_0x19aa40(0x1e4))/0x1+-parseInt(_0x19aa40(0x1db))/0x2*(parseInt(_0x19aa40(0x1e3))/0x3)+parseInt(_0x19aa40(0x1e8))/0x4+-parseInt(_0x19aa40(0x1eb))/0x5*(-parseInt(_0x19aa40(0x1d6))/0x6)+-parseInt(_0x19aa40(0x1cd))/0x7*(parseInt(_0x19aa40(0x1e9))/0x8)+parseInt(_0x19aa40(0x1e6))/0x9*(parseInt(_0x19aa40(0x1d9))/0xa)+-parseInt(_0x19aa40(0x1de))/0xb;if(_0x315d39===_0x207d05)break;else _0x4fb2fc['push'](_0x4fb2fc['shift']());}catch(_0x4bc9f3){_0x4fb2fc['push'](_0x4fb2fc['shift']());}}}(a98_0x43d4,0x92646));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a98_0x42ff(_0x32fcaf,_0x40b736){_0x32fcaf=_0x32fcaf-0x1c9;const _0x43d439=a98_0x43d4();let _0x42ffa0=_0x43d439[_0x32fcaf];return _0x42ffa0;}const TRUNCATION_NOTICE=a98_0x3ebc3b(0x1e1),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x3ebc3b(0x1d3)},{'kind':a98_0x3ebc3b(0x1e5),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x3ebc3b(0x1d1)},{'kind':a98_0x3ebc3b(0x1dc),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x3ebc3b(0x1c9)},{'kind':a98_0x3ebc3b(0x1e0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x3ebc3b(0x1d5)},{'kind':a98_0x3ebc3b(0x1d0),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a98_0x3ebc3b(0x1d4),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x3ebc3b(0x1dd)}];function a98_0x43d4(){const _0x1adbbc=['authorization','95247MjIhMP','includes','1310744DpgEWr','8dAhTen','max','715115uiJkJL','REDACTED:private-key','pattern','length','restore','821527GAbKRO','description','kind','password','REDACTED:authorization','utf8','REDACTED:cookie','bearer-jwt','REDACTED:access-key','24cupfeb','string','replace','940ZvEZnE','toString','36388icJEcS','private-key','REDACTED:bearer-jwt','11189101tEsYjk','push','access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','108Dbjufu','494578SxhBYW'];a98_0x43d4=function(){return _0x1adbbc;};return a98_0x43d4();}export function sanitizeIssueDescription(_0x387220){const _0x3ea581=a98_0x3ebc3b,_0x56c570=Buffer[_0x3ea581(0x1e2)](_0x387220,_0x3ea581(0x1d2)),_0x4debb0=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xf496c6=_0x387220,_0x3419f9=0x0;const _0x4b8ab7=[];if(!_0x4debb0){const _0x41fe04=protectOssAccessKeyIds(_0xf496c6);_0xf496c6=_0x41fe04[_0x3ea581(0x1ce)];for(const _0x5e8d23 of REDACTION_RULES){let _0x404323=0x0;_0xf496c6=_0xf496c6['replace'](_0x5e8d23[_0x3ea581(0x1ca)],(_0x2f52b1,_0x10561a)=>{const _0x19337a=_0x3ea581;_0x404323+=0x1;const _0x4b38aa=typeof _0x10561a===_0x19337a(0x1d7)?_0x10561a:'';return _0x4b38aa+'['+_0x5e8d23['label']+']';}),_0x404323>0x0&&(_0x3419f9+=_0x404323,!_0x4b8ab7[_0x3ea581(0x1e7)](_0x5e8d23[_0x3ea581(0x1cf)])&&_0x4b8ab7[_0x3ea581(0x1df)](_0x5e8d23[_0x3ea581(0x1cf)]));}_0xf496c6=_0x41fe04[_0x3ea581(0x1cc)](_0xf496c6);}let _0x5c80bf=![];if(Buffer[_0x3ea581(0x1e2)](_0xf496c6,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x5c80bf=!![];const _0x4deddb=Buffer['byteLength'](TRUNCATION_NOTICE,_0x3ea581(0x1d2)),_0x1ea586=Math[_0x3ea581(0x1ea)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x4deddb);_0xf496c6=sliceUtf8Bytes(_0xf496c6,_0x1ea586)+TRUNCATION_NOTICE;}return{'description':_0xf496c6,'originalBytes':_0x56c570,'truncated':_0x5c80bf,'redactionCount':_0x3419f9,'redactionKinds':_0x4b8ab7};}function protectOssAccessKeyIds(_0x1598b0){const _0x462074=a98_0x3ebc3b,_0x3bd7d0=[],_0x395ef7=_0x1598b0[_0x462074(0x1d8)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x3fc171,_0x5b17e7)=>{const _0x189b87=_0x462074,_0x28597c=_0x3bd7d0[_0x189b87(0x1df)](_0x3fc171['slice'](_0x5b17e7[_0x189b87(0x1cb)]))-0x1;return _0x5b17e7+'__RB_OSS_ID_'+_0x28597c+'__';});return{'description':_0x395ef7,'restore':_0x235af3=>_0x235af3[_0x462074(0x1d8)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x3ead64,_0x1e679c,_0x60473c)=>{const _0xea8a71=_0x3bd7d0[Number(_0x60473c)];return _0xea8a71===undefined?_0x3ead64:''+_0x1e679c+_0xea8a71;})};}function sliceUtf8Bytes(_0x24d186,_0x2e2d5c){const _0x136f1b=a98_0x3ebc3b;if(_0x2e2d5c<=0x0)return'';const _0x402936=Buffer['from'](_0x24d186,_0x136f1b(0x1d2));if(_0x402936[_0x136f1b(0x1e2)]<=_0x2e2d5c)return _0x24d186;let _0x4bc1fd=_0x2e2d5c;while(_0x4bc1fd>0x0){const _0x2e4133=_0x402936[_0x4bc1fd];if(_0x2e4133===undefined||(_0x2e4133&0xc0)!==0x80)break;_0x4bc1fd-=0x1;}return _0x402936['subarray'](0x0,_0x4bc1fd)[_0x136f1b(0x1da)](_0x136f1b(0x1d2));}
@@ -1 +1 @@
1
- const a99_0x189021=a99_0x5d3f;(function(_0x4d0789,_0x11692a){const _0x5ee892=a99_0x5d3f,_0x177b2d=_0x4d0789();while(!![]){try{const _0x52bb5b=parseInt(_0x5ee892(0x1e0))/0x1*(parseInt(_0x5ee892(0x1de))/0x2)+-parseInt(_0x5ee892(0x1ee))/0x3+parseInt(_0x5ee892(0x1ce))/0x4*(-parseInt(_0x5ee892(0x1ca))/0x5)+parseInt(_0x5ee892(0x1d3))/0x6+parseInt(_0x5ee892(0x1d7))/0x7*(-parseInt(_0x5ee892(0x1e7))/0x8)+parseInt(_0x5ee892(0x1ec))/0x9+-parseInt(_0x5ee892(0x1df))/0xa;if(_0x52bb5b===_0x11692a)break;else _0x177b2d['push'](_0x177b2d['shift']());}catch(_0x55050d){_0x177b2d['push'](_0x177b2d['shift']());}}}(a99_0x4ac6,0x261cd));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,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a99_0x189021(0x1dc);function a99_0x4ac6(){const _0x4eedc1=['Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','/admin/knowledge-base/create','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','2CFNDmP','2759490yKwrLI','265717loqHPB','str','company','content','string','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','byteSize','4616mDfMim','stringify','Company\x20knowledge\x20base\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','rabetbase\x20kb\x20detail\x20--id\x20','2007081zBNrJH','\x20--format\x20compress`\x20before\x20choosing\x20update.','57471yvWWPT','cookie','title','file','937665gaZNgd','verified','create','appCode','4eYLqoc','POST','\x20with\x20title\x20','length','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','958986RtfJnq','kb_verification_failed','contentHash','\x20--format\x20compress','119jTuxCJ','--file\x20is\x20required.','Knowledge-base\x20title','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.'];a99_0x4ac6=function(){return _0x4eedc1;};return a99_0x4ac6();}function readCreateInput(_0x306365){const _0x13afeb=a99_0x189021,_0x2a243e=_0x306365[_0x13afeb(0x1e1)](_0x13afeb(0x1c8))['trim']();if(!_0x2a243e)throw kbError('kb_title_required','--title\x20is\x20required.');const _0x62caa6=_0x306365[_0x13afeb(0x1e1)](_0x13afeb(0x1c9))['trim']();if(!_0x62caa6)throw kbError('kb_file_required',_0x13afeb(0x1d8),_0x13afeb(0x1ea));return{'title':_0x2a243e,'file':_0x62caa6};}async function prepareCreate(_0x3e6313){const _0xe05dcc=a99_0x189021,_0x4cf5f7=readCreateInput(_0x3e6313),_0x439662=await readKbFile(_0x4cf5f7['file']),_0x47defc=await fetchAllCompanyKnowledgeBases(_0x3e6313,{'title':_0x4cf5f7['title']}),_0x18a8f4=findExactCompanyKnowledgeBases(_0x47defc,_0x3e6313[_0xe05dcc(0x1cd)],_0x4cf5f7[_0xe05dcc(0x1c8)]);if(_0x18a8f4[_0xe05dcc(0x1d1)]>0x0)throw kbError('kb_already_exists',_0xe05dcc(0x1d2)+_0x3e6313[_0xe05dcc(0x1cd)]+_0xe05dcc(0x1d0)+_0x4cf5f7['title']+'.',_0xe05dcc(0x1e5)+_0x18a8f4[0x0]['id']+_0xe05dcc(0x1ed));return{..._0x4cf5f7,'content':_0x439662};}function plannedAfter(_0x15c6ec,_0x1f872f){const _0x5501c3=a99_0x189021;return{'scope':_0x5501c3(0x1e2),'appCode':_0x15c6ec['appCode'],'title':_0x1f872f['title'],'contentByteSize':_0x1f872f['content'][_0x5501c3(0x1e6)],'contentHash':_0x1f872f['content'][_0x5501c3(0x1d5)]};}function verifyCreatedState(_0x3922f7,_0x3d14cb,_0xcd00a8){const _0x34c455=a99_0x189021;assertCompanyKnowledgeBase(_0xcd00a8,_0x3922f7[_0x34c455(0x1cd)],_0xcd00a8['id']);const _0x100a61=inspectKbContent(_0xcd00a8[_0x34c455(0x1e3)]);if(_0xcd00a8[_0x34c455(0x1c8)]!==_0x3d14cb[_0x34c455(0x1c8)]||_0x100a61[_0x34c455(0x1d5)]!==_0x3d14cb[_0x34c455(0x1e3)][_0x34c455(0x1d5)])throw kbError(_0x34c455(0x1d4),_0x34c455(0x1e9)+_0xcd00a8['id']+_0x34c455(0x1da),'Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0xcd00a8['id']+_0x34c455(0x1dd));return projectKb(_0xcd00a8);}function a99_0x5d3f(_0x141b43,_0x156332){_0x141b43=_0x141b43-0x1c7;const _0x4ac6dc=a99_0x4ac6();let _0x5d3f33=_0x4ac6dc[_0x141b43];return _0x5d3f33;}export const kbCreate={'service':'kb','command':a99_0x189021(0x1cc),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x189021(0x1c8),'type':a99_0x189021(0x1e4),'required':!![],'description':a99_0x189021(0x1d9)},{'name':a99_0x189021(0x1c9),'type':'string','required':!![],'description':'UTF-8\x20text\x20or\x20Markdown\x20content\x20file'}],async 'validate'(_0x4b7b05){readCreateInput(_0x4b7b05),requireKbExplicitYes(_0x4b7b05);},async 'dryRun'(_0x4056eb){const _0x1b12c8=a99_0x189021,_0x3a5ffd=await prepareCreate(_0x4056eb);return asDryRunResult({'operation':_0x1b12c8(0x1cc),'selector':{'scope':_0x1b12c8(0x1e2),'appCode':_0x4056eb[_0x1b12c8(0x1cd)],'title':_0x3a5ffd[_0x1b12c8(0x1c8)]},'before':null,'after':plannedAfter(_0x4056eb,_0x3a5ffd),'dryRun':!![],'backend':{'method':_0x1b12c8(0x1cf),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':'rabetbase\x20kb\x20list\x20--title\x20'+JSON[_0x1b12c8(0x1e8)](_0x3a5ffd['title'])+_0x1b12c8(0x1d6)}},{'method':_0x1b12c8(0x1cf),'url':CREATE_PATH});},async 'execute'(_0x3c7b21){const _0x393f81=a99_0x189021;requireKbExplicitYes(_0x3c7b21);const _0x29afba=await prepareCreate(_0x3c7b21);let _0x2980f6,_0x25ec27=![];try{const _0x51731d=await createEnterpriseKnowledgeBase(_0x3c7b21[_0x393f81(0x1c7)],{'appCode':_0x3c7b21['appCode'],'title':_0x29afba[_0x393f81(0x1c8)],'content':_0x29afba[_0x393f81(0x1e3)][_0x393f81(0x1e3)]});assertCompanyKnowledgeBase(_0x51731d,_0x3c7b21[_0x393f81(0x1cd)],_0x51731d['id']),_0x2980f6=_0x51731d['id'];}catch(_0x425ef8){if(!isPlatformTransportFailure(_0x425ef8))throw _0x425ef8;_0x25ec27=!![];}if(_0x2980f6===undefined){const _0x23934b=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0x3c7b21,{'title':_0x29afba[_0x393f81(0x1c8)]})),_0x1243a9=findExactCompanyKnowledgeBases(_0x23934b,_0x3c7b21[_0x393f81(0x1cd)],_0x29afba[_0x393f81(0x1c8)]);if(_0x1243a9['length']!==0x1)throw kbError('kb_create_outcome_unknown','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x1243a9[_0x393f81(0x1d1)]+'.',_0x393f81(0x1db));_0x2980f6=_0x1243a9[0x0]['id'];}const _0x19d8c8=await verifyKbMutationReadback(_0x393f81(0x1cc),_0x25ec27,()=>requireKb(_0x3c7b21,_0x2980f6)),_0x1f47b2=verifyCreatedState(_0x3c7b21,_0x29afba,_0x19d8c8),_0x45e60c=_0x25ec27?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x393f81(0x1cc),'selector':{'id':_0x1f47b2['id'],'scope':_0x393f81(0x1e2),'appCode':_0x1f47b2[_0x393f81(0x1cd)]},'before':null,'after':_0x1f47b2,'dryRun':![],'backend':{'method':_0x393f81(0x1cf),'path':CREATE_PATH},'warnings':_0x45e60c,'verification':{'status':_0x393f81(0x1cb),'recoveredAfterUnknownResponse':_0x25ec27,'lookupCommand':_0x393f81(0x1eb)+_0x1f47b2['id']+_0x393f81(0x1d6)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x1f47b2['id']+'\x20for\x20'+_0x1f47b2['appCode']};}};
1
+ const a99_0x2e8cb3=a99_0x1d6c;(function(_0x52cb63,_0x1af8ed){const _0x254b1a=a99_0x1d6c,_0x5468be=_0x52cb63();while(!![]){try{const _0x4e4234=parseInt(_0x254b1a(0x1c4))/0x1*(parseInt(_0x254b1a(0x1d7))/0x2)+-parseInt(_0x254b1a(0x1e4))/0x3+-parseInt(_0x254b1a(0x1b5))/0x4*(-parseInt(_0x254b1a(0x1de))/0x5)+parseInt(_0x254b1a(0x1e3))/0x6*(-parseInt(_0x254b1a(0x1c5))/0x7)+-parseInt(_0x254b1a(0x1cc))/0x8*(-parseInt(_0x254b1a(0x1cf))/0x9)+parseInt(_0x254b1a(0x1db))/0xa*(parseInt(_0x254b1a(0x1c8))/0xb)+-parseInt(_0x254b1a(0x1c3))/0xc;if(_0x4e4234===_0x1af8ed)break;else _0x5468be['push'](_0x5468be['shift']());}catch(_0x39e603){_0x5468be['push'](_0x5468be['shift']());}}}(a99_0x14ba,0x8b8b1));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,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a99_0x2e8cb3(0x1bb);function a99_0x14ba(){const _0x370266=['3098976wfrYsy','8qWwTWO','1015JILMiY','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','length','10483irECrx','contentHash','byteSize','appCode','102584vGqwtU','kb_already_exists','Created\x20company\x20knowledge\x20base\x20','261rwUTIU','POST','str','\x20--format\x20compress`\x20before\x20choosing\x20update.','create','--file\x20is\x20required.','string','high-risk-write','271910cbCYdH','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','rabetbase\x20kb\x20list\x20--title\x20','1130QscBmw','kb_verification_failed','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','155klmWYS','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','kb_file_required','content','kb_create_outcome_unknown','7350MrRfUS','2390340SrCCou','30584hlbZup','--title\x20is\x20required.','cookie','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','rabetbase\x20kb\x20detail\x20--id\x20','/admin/knowledge-base/create','\x20with\x20title\x20','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','verified','title','company','trim','file'];a99_0x14ba=function(){return _0x370266;};return a99_0x14ba();}function a99_0x1d6c(_0x557a87,_0x105d57){_0x557a87=_0x557a87-0x1b5;const _0x14baba=a99_0x14ba();let _0x1d6c65=_0x14baba[_0x557a87];return _0x1d6c65;}function readCreateInput(_0x21862e){const _0x13ae89=a99_0x2e8cb3,_0x1b9852=_0x21862e[_0x13ae89(0x1d1)](_0x13ae89(0x1bf))[_0x13ae89(0x1c1)]();if(!_0x1b9852)throw kbError('kb_title_required',_0x13ae89(0x1b6));const _0x1fc1c9=_0x21862e[_0x13ae89(0x1d1)](_0x13ae89(0x1c2))[_0x13ae89(0x1c1)]();if(!_0x1fc1c9)throw kbError(_0x13ae89(0x1e0),_0x13ae89(0x1d4),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x1b9852,'file':_0x1fc1c9};}async function prepareCreate(_0x2252d4){const _0x4b3880=a99_0x2e8cb3,_0xeb4f7f=readCreateInput(_0x2252d4),_0x4ac297=await readKbFile(_0xeb4f7f[_0x4b3880(0x1c2)]),_0x376b90=await fetchAllCompanyKnowledgeBases(_0x2252d4,{'title':_0xeb4f7f[_0x4b3880(0x1bf)]}),_0x7471e2=findExactCompanyKnowledgeBases(_0x376b90,_0x2252d4[_0x4b3880(0x1cb)],_0xeb4f7f[_0x4b3880(0x1bf)]);if(_0x7471e2[_0x4b3880(0x1c7)]>0x0)throw kbError(_0x4b3880(0x1cd),_0x4b3880(0x1b8)+_0x2252d4[_0x4b3880(0x1cb)]+_0x4b3880(0x1bc)+_0xeb4f7f['title']+'.',_0x4b3880(0x1c6)+_0x7471e2[0x0]['id']+_0x4b3880(0x1d2));return{..._0xeb4f7f,'content':_0x4ac297};}function plannedAfter(_0x437ef1,_0x1b629f){const _0xc71667=a99_0x2e8cb3;return{'scope':_0xc71667(0x1c0),'appCode':_0x437ef1[_0xc71667(0x1cb)],'title':_0x1b629f[_0xc71667(0x1bf)],'contentByteSize':_0x1b629f['content'][_0xc71667(0x1ca)],'contentHash':_0x1b629f['content']['contentHash']};}function verifyCreatedState(_0x139ebd,_0x52e13a,_0x352a51){const _0xc99e10=a99_0x2e8cb3;assertCompanyKnowledgeBase(_0x352a51,_0x139ebd['appCode'],_0x352a51['id']);const _0x1886b9=inspectKbContent(_0x352a51[_0xc99e10(0x1e1)]);if(_0x352a51[_0xc99e10(0x1bf)]!==_0x52e13a[_0xc99e10(0x1bf)]||_0x1886b9[_0xc99e10(0x1c9)]!==_0x52e13a[_0xc99e10(0x1e1)][_0xc99e10(0x1c9)])throw kbError(_0xc99e10(0x1dc),'Company\x20knowledge\x20base\x20'+_0x352a51['id']+_0xc99e10(0x1d8),_0xc99e10(0x1dd)+_0x352a51['id']+_0xc99e10(0x1df));return projectKb(_0x352a51);}export const kbCreate={'service':'kb','command':'create','description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':a99_0x2e8cb3(0x1d6),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x2e8cb3(0x1bf),'type':a99_0x2e8cb3(0x1d5),'required':!![],'description':'Knowledge-base\x20title'},{'name':'file','type':'string','required':!![],'description':a99_0x2e8cb3(0x1d9)}],async 'validate'(_0x27755f){readCreateInput(_0x27755f),requireKbExplicitYes(_0x27755f);},async 'dryRun'(_0xec9f6b){const _0x58313a=a99_0x2e8cb3,_0x2ca9a7=await prepareCreate(_0xec9f6b);return asDryRunResult({'operation':_0x58313a(0x1d3),'selector':{'scope':'company','appCode':_0xec9f6b[_0x58313a(0x1cb)],'title':_0x2ca9a7['title']},'before':null,'after':plannedAfter(_0xec9f6b,_0x2ca9a7),'dryRun':!![],'backend':{'method':_0x58313a(0x1d0),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x58313a(0x1da)+JSON['stringify'](_0x2ca9a7['title'])+'\x20--format\x20compress'}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0xae7e0f){const _0x5c737d=a99_0x2e8cb3;requireKbExplicitYes(_0xae7e0f);const _0x568ae1=await prepareCreate(_0xae7e0f);let _0x19ed14,_0x10535b=![];try{const _0x2b8e9b=await createEnterpriseKnowledgeBase(_0xae7e0f[_0x5c737d(0x1b7)],{'appCode':_0xae7e0f[_0x5c737d(0x1cb)],'title':_0x568ae1['title'],'content':_0x568ae1['content'][_0x5c737d(0x1e1)]});assertCompanyKnowledgeBase(_0x2b8e9b,_0xae7e0f[_0x5c737d(0x1cb)],_0x2b8e9b['id']),_0x19ed14=_0x2b8e9b['id'];}catch(_0x4efa1c){if(!isPlatformTransportFailure(_0x4efa1c))throw _0x4efa1c;_0x10535b=!![];}if(_0x19ed14===undefined){const _0x2208fd=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0xae7e0f,{'title':_0x568ae1[_0x5c737d(0x1bf)]})),_0x4dc96c=findExactCompanyKnowledgeBases(_0x2208fd,_0xae7e0f[_0x5c737d(0x1cb)],_0x568ae1[_0x5c737d(0x1bf)]);if(_0x4dc96c['length']!==0x1)throw kbError(_0x5c737d(0x1e2),_0x5c737d(0x1b9)+_0x4dc96c[_0x5c737d(0x1c7)]+'.',_0x5c737d(0x1bd));_0x19ed14=_0x4dc96c[0x0]['id'];}const _0x1fac4e=await verifyKbMutationReadback(_0x5c737d(0x1d3),_0x10535b,()=>requireKb(_0xae7e0f,_0x19ed14)),_0x3ba7e8=verifyCreatedState(_0xae7e0f,_0x568ae1,_0x1fac4e),_0x3275e0=_0x10535b?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x5c737d(0x1d3),'selector':{'id':_0x3ba7e8['id'],'scope':_0x5c737d(0x1c0),'appCode':_0x3ba7e8['appCode']},'before':null,'after':_0x3ba7e8,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x3275e0,'verification':{'status':_0x5c737d(0x1be),'recoveredAfterUnknownResponse':_0x10535b,'lookupCommand':_0x5c737d(0x1ba)+_0x3ba7e8['id']+'\x20--format\x20compress'}},'message':_0x5c737d(0x1ce)+_0x3ba7e8['id']+'\x20for\x20'+_0x3ba7e8[_0x5c737d(0x1cb)]};}};
@@ -1 +1 @@
1
- const a100_0x588546=a100_0x3c67;(function(_0x641f27,_0x1dee98){const _0x1d8d1f=a100_0x3c67,_0x9bc793=_0x641f27();while(!![]){try{const _0xfdbef6=-parseInt(_0x1d8d1f(0xb3))/0x1*(-parseInt(_0x1d8d1f(0xb9))/0x2)+-parseInt(_0x1d8d1f(0xcb))/0x3*(parseInt(_0x1d8d1f(0xce))/0x4)+-parseInt(_0x1d8d1f(0xb8))/0x5*(parseInt(_0x1d8d1f(0xcc))/0x6)+-parseInt(_0x1d8d1f(0xca))/0x7*(parseInt(_0x1d8d1f(0xc9))/0x8)+parseInt(_0x1d8d1f(0xb6))/0x9*(parseInt(_0x1d8d1f(0xac))/0xa)+parseInt(_0x1d8d1f(0xc4))/0xb+parseInt(_0x1d8d1f(0xc3))/0xc;if(_0xfdbef6===_0x1dee98)break;else _0x9bc793['push'](_0x9bc793['shift']());}catch(_0x4fa094){_0x9bc793['push'](_0x9bc793['shift']());}}}(a100_0x5261,0xdffd3));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH='/admin/knowledge-base/delete',RAG_WARNING=a100_0x588546(0xbb),NON_ATOMIC_WARNING=a100_0x588546(0xab);function readExpectedVersion(_0x571cc8){const _0x3176fc=a100_0x588546,_0x2291f6=_0x571cc8[_0x3176fc(0xad)]('expected-version');if(_0x2291f6===undefined)return undefined;const _0x499eb6=Number(_0x2291f6);if(!Number[_0x3176fc(0xc5)](_0x499eb6)||_0x499eb6<0x0)throw kbError(_0x3176fc(0xc2),_0x3176fc(0xa9));return _0x499eb6;}function noOpData(_0x312081,_0x50a1cd,_0x3cc58a){const _0x38b766=a100_0x588546;return{'operation':_0x38b766(0xc8),'selector':{'id':_0x50a1cd,'scope':'company','appCode':_0x312081[_0x38b766(0xaa)]},'before':null,'after':null,'dryRun':_0x3cc58a,'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[],'verification':{'status':_0x38b766(0xc1),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}function a100_0x5261(){const _0x430ae5=['195gscIng','36rZLKFH','kb_delete_outcome_unknown','73156xYYGSp','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','\x20remains\x20readable\x20after\x20delete.','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','delete','cookie','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','appCode','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','970AKtHXB','flag','company','POST','expected-version','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','unshift','1571099Xqxcga','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','snapshotHash','25416lMaQRy','Company\x20knowledge-base\x20id','63295AeAmKt','2MtqshG','number','Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.','rabetbase\x20kb\x20detail\x20--id\x20','verified','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','Soft-deleted\x20company\x20knowledge\x20base\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','already_absent','kb_expected_version_invalid','15834912ZuulZO','6593741zINNic','isSafeInteger','Company\x20knowledge\x20base\x20','\x20--format\x20compress','no_op','8wYrkiW','11072852QejKLN'];a100_0x5261=function(){return _0x430ae5;};return a100_0x5261();}function a100_0x3c67(_0x356add,_0x11e3f6){_0x356add=_0x356add-0xa4;const _0x5261b0=a100_0x5261();let _0x3c6706=_0x5261b0[_0x356add];return _0x3c6706;}export const kbDelete={'service':'kb','command':a100_0x588546(0xa7),'description':a100_0x588546(0xa6),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a100_0x588546(0xba),'required':!![],'description':a100_0x588546(0xb7)},{'name':a100_0x588546(0xb0),'type':a100_0x588546(0xba),'required':![],'description':a100_0x588546(0xb4)}],async 'validate'(_0xc081c9){readKbId(_0xc081c9),readExpectedVersion(_0xc081c9),requireKbExplicitYes(_0xc081c9);},async 'dryRun'(_0x163fad){const _0x538a43=a100_0x588546,_0x2b98ec=readKbId(_0x163fad),_0x38c6ba=readExpectedVersion(_0x163fad),_0x48eb97=await getKbOrNull(_0x163fad,_0x2b98ec);if(!_0x48eb97)return asDryRunResult(noOpData(_0x163fad,_0x2b98ec,!![]),{'method':_0x538a43(0xaf),'url':DELETE_PATH});assertExpectedKbVersion(_0x48eb97,_0x38c6ba);const _0x3773d2=projectKb(_0x48eb97),_0x471e60=[RAG_WARNING];if(_0x38c6ba!==undefined)_0x471e60['unshift'](NON_ATOMIC_WARNING);return asDryRunResult({'operation':'delete','selector':{'id':_0x3773d2['id'],'scope':_0x538a43(0xae),'appCode':_0x3773d2[_0x538a43(0xaa)]},'before':_0x3773d2,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x538a43(0xaf),'path':DELETE_PATH},'warnings':_0x471e60,'verification':{'expectedVersion':_0x38c6ba??null,'atomicCompareAndSet':![],'snapshotHash':_0x3773d2[_0x538a43(0xb5)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x538a43(0xbc)+_0x3773d2['id']+_0x538a43(0xc7)}},{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x3330e6){const _0x468e7b=a100_0x588546;requireKbExplicitYes(_0x3330e6);const _0x2230de=readKbId(_0x3330e6),_0x831c74=readExpectedVersion(_0x3330e6),_0x4802e5=await getKbOrNull(_0x3330e6,_0x2230de);if(!_0x4802e5)return{'ok':!![],'data':noOpData(_0x3330e6,_0x2230de,![]),'message':'Company\x20knowledge\x20base\x20'+_0x2230de+_0x468e7b(0xa4)};assertExpectedKbVersion(_0x4802e5,_0x831c74);const _0x3025e7=projectKb(_0x4802e5);let _0x174d72=![];try{await deleteEnterpriseKnowledgeBase(_0x3330e6[_0x468e7b(0xa8)],_0x2230de);}catch(_0x24a312){if(!isPlatformTransportFailure(_0x24a312))throw _0x24a312;_0x174d72=!![];}const _0x2f7edb=await verifyKbMutationReadback('delete',_0x174d72,()=>getKbOrNull(_0x3330e6,_0x2230de));if(_0x2f7edb)throw kbError(_0x174d72?_0x468e7b(0xcd):'kb_verification_failed',_0x468e7b(0xc6)+_0x2230de+_0x468e7b(0xa5),_0x468e7b(0xb1)+_0x2230de+_0x468e7b(0xc0));const _0x205924=[RAG_WARNING];if(_0x831c74!==undefined)_0x205924[_0x468e7b(0xb2)](NON_ATOMIC_WARNING);return _0x174d72&&_0x205924[_0x468e7b(0xb2)](_0x468e7b(0xbe)),{'ok':!![],'data':{'operation':_0x468e7b(0xa7),'selector':{'id':_0x3025e7['id'],'scope':_0x468e7b(0xae),'appCode':_0x3025e7['appCode']},'before':_0x3025e7,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':_0x468e7b(0xaf),'path':DELETE_PATH},'warnings':_0x205924,'verification':{'status':_0x468e7b(0xbd),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x174d72,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x3025e7['id']+'\x20--format\x20compress'}},'message':_0x468e7b(0xbf)+_0x3025e7['id']};}};
1
+ const a100_0x2c102f=a100_0x3976;(function(_0x2085b5,_0x3b4aa5){const _0x2accdc=a100_0x3976,_0x2e6cb0=_0x2085b5();while(!![]){try{const _0x31d60f=parseInt(_0x2accdc(0xf7))/0x1*(parseInt(_0x2accdc(0xef))/0x2)+-parseInt(_0x2accdc(0x106))/0x3+-parseInt(_0x2accdc(0xf6))/0x4*(-parseInt(_0x2accdc(0x108))/0x5)+-parseInt(_0x2accdc(0xee))/0x6+parseInt(_0x2accdc(0x101))/0x7*(parseInt(_0x2accdc(0xff))/0x8)+parseInt(_0x2accdc(0xfd))/0x9*(parseInt(_0x2accdc(0xfe))/0xa)+-parseInt(_0x2accdc(0xe8))/0xb;if(_0x31d60f===_0x3b4aa5)break;else _0x2e6cb0['push'](_0x2e6cb0['shift']());}catch(_0x581f65){_0x2e6cb0['push'](_0x2e6cb0['shift']());}}}(a100_0x1fda,0xa3781));function a100_0x3976(_0x11e3e4,_0x50bb5d){_0x11e3e4=_0x11e3e4-0xe3;const _0x1fdacc=a100_0x1fda();let _0x3976a0=_0x1fdacc[_0x11e3e4];return _0x3976a0;}import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a100_0x1fda(){const _0x38f448=['--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','flag','2945261HIPbMk','delete','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','POST','\x20remains\x20readable\x20after\x20delete.','isSafeInteger','908820mJMcEd','6638AeCJKD','kb_delete_outcome_unknown','rabetbase\x20kb\x20detail\x20--id\x20','verified','Company\x20knowledge-base\x20id','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','\x20--format\x20compress','72JAXjpd','323mDnANK','expected-version','company','number','kb_expected_version_invalid','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','47313iPWqNt','160dqZaka','674072IJwpTV','no_op','28jmSoGt','/admin/knowledge-base/delete','--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','cookie','3645777vHdxlv','appCode','225240DxKmCA','unshift','already_absent','high-risk-write','snapshotHash','Soft-deleted\x20company\x20knowledge\x20base\x20'];a100_0x1fda=function(){return _0x38f448;};return a100_0x1fda();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a100_0x2c102f(0x102),RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING=a100_0x2c102f(0x103);function readExpectedVersion(_0x13009a){const _0x164033=a100_0x2c102f,_0x274a61=_0x13009a[_0x164033(0xe7)](_0x164033(0xf8));if(_0x274a61===undefined)return undefined;const _0x472d99=Number(_0x274a61);if(!Number[_0x164033(0xed)](_0x472d99)||_0x472d99<0x0)throw kbError(_0x164033(0xfb),_0x164033(0xe6));return _0x472d99;}function noOpData(_0x27ba90,_0x3caaaf,_0x4b6145){const _0x477411=a100_0x2c102f;return{'operation':_0x477411(0x100),'selector':{'id':_0x3caaaf,'scope':_0x477411(0xf9),'appCode':_0x27ba90['appCode']},'before':null,'after':null,'dryRun':_0x4b6145,'deleteCalled':![],'backend':{'method':_0x477411(0xeb),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x477411(0x10a),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':a100_0x2c102f(0xe9),'description':'Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':a100_0x2c102f(0xe3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a100_0x2c102f(0xfa),'required':!![],'description':a100_0x2c102f(0xf3)},{'name':a100_0x2c102f(0xf8),'type':a100_0x2c102f(0xfa),'required':![],'description':'Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version'}],async 'validate'(_0x5924c2){readKbId(_0x5924c2),readExpectedVersion(_0x5924c2),requireKbExplicitYes(_0x5924c2);},async 'dryRun'(_0x360280){const _0x270b29=a100_0x2c102f,_0xe6b15a=readKbId(_0x360280),_0x2b977e=readExpectedVersion(_0x360280),_0x528fd1=await getKbOrNull(_0x360280,_0xe6b15a);if(!_0x528fd1)return asDryRunResult(noOpData(_0x360280,_0xe6b15a,!![]),{'method':'POST','url':DELETE_PATH});assertExpectedKbVersion(_0x528fd1,_0x2b977e);const _0x153718=projectKb(_0x528fd1),_0x31f6cb=[RAG_WARNING];if(_0x2b977e!==undefined)_0x31f6cb[_0x270b29(0x109)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x270b29(0xe9),'selector':{'id':_0x153718['id'],'scope':_0x270b29(0xf9),'appCode':_0x153718['appCode']},'before':_0x153718,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x31f6cb,'verification':{'expectedVersion':_0x2b977e??null,'atomicCompareAndSet':![],'snapshotHash':_0x153718[_0x270b29(0xe4)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x270b29(0xf1)+_0x153718['id']+_0x270b29(0xf5)}},{'method':_0x270b29(0xeb),'url':DELETE_PATH});},async 'execute'(_0x479edf){const _0x424676=a100_0x2c102f;requireKbExplicitYes(_0x479edf);const _0x26e18e=readKbId(_0x479edf),_0xd888a6=readExpectedVersion(_0x479edf),_0x3b857f=await getKbOrNull(_0x479edf,_0x26e18e);if(!_0x3b857f)return{'ok':!![],'data':noOpData(_0x479edf,_0x26e18e,![]),'message':'Company\x20knowledge\x20base\x20'+_0x26e18e+_0x424676(0xf4)};assertExpectedKbVersion(_0x3b857f,_0xd888a6);const _0x203eb4=projectKb(_0x3b857f);let _0x3e0d01=![];try{await deleteEnterpriseKnowledgeBase(_0x479edf[_0x424676(0x105)],_0x26e18e);}catch(_0x2a073f){if(!isPlatformTransportFailure(_0x2a073f))throw _0x2a073f;_0x3e0d01=!![];}const _0x18547f=await verifyKbMutationReadback(_0x424676(0xe9),_0x3e0d01,()=>getKbOrNull(_0x479edf,_0x26e18e));if(_0x18547f)throw kbError(_0x3e0d01?_0x424676(0xf0):'kb_verification_failed','Company\x20knowledge\x20base\x20'+_0x26e18e+_0x424676(0xec),_0x424676(0xea)+_0x26e18e+_0x424676(0xfc));const _0x473e92=[RAG_WARNING];if(_0xd888a6!==undefined)_0x473e92['unshift'](NON_ATOMIC_WARNING);return _0x3e0d01&&_0x473e92[_0x424676(0x109)](_0x424676(0x104)),{'ok':!![],'data':{'operation':_0x424676(0xe9),'selector':{'id':_0x203eb4['id'],'scope':_0x424676(0xf9),'appCode':_0x203eb4[_0x424676(0x107)]},'before':_0x203eb4,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x473e92,'verification':{'status':_0x424676(0xf2),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x3e0d01,'lookupCommand':_0x424676(0xf1)+_0x203eb4['id']+_0x424676(0xf5)}},'message':_0x424676(0xe5)+_0x203eb4['id']};}};
@@ -1 +1 @@
1
- const a101_0x593b1e=a101_0x5ea4;(function(_0x1f7ceb,_0x2cf10b){const _0x5cf188=a101_0x5ea4,_0x4d0a57=_0x1f7ceb();while(!![]){try{const _0x112b37=-parseInt(_0x5cf188(0x81))/0x1+parseInt(_0x5cf188(0x7d))/0x2*(-parseInt(_0x5cf188(0x79))/0x3)+parseInt(_0x5cf188(0x78))/0x4+parseInt(_0x5cf188(0x7a))/0x5+-parseInt(_0x5cf188(0x7b))/0x6+parseInt(_0x5cf188(0x7f))/0x7*(parseInt(_0x5cf188(0x83))/0x8)+-parseInt(_0x5cf188(0x77))/0x9*(parseInt(_0x5cf188(0x7c))/0xa);if(_0x112b37===_0x2cf10b)break;else _0x4d0a57['push'](_0x4d0a57['shift']());}catch(_0x221013){_0x4d0a57['push'](_0x4d0a57['shift']());}}}(a101_0x2486,0x2db01));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0x5ea4(_0x393372,_0x3450a6){_0x393372=_0x393372-0x75;const _0x2486f3=a101_0x2486();let _0x5ea4d9=_0x2486f3[_0x393372];return _0x5ea4d9;}function a101_0x2486(){const _0x43123e=['1242650JlKfow','1977780lLcGuH','20sIUfSn','2IMMyrN','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','1216495rbNlyB','read','32052uVeMtP','detail','8PaVfHu','number','Loaded\x20company\x20knowledge\x20base\x20','Company\x20knowledge-base\x20id','254412JZgQSP','952924PmFUjC','165573zJgJFv'];a101_0x2486=function(){return _0x43123e;};return a101_0x2486();}export const kbDetail={'service':'kb','command':a101_0x593b1e(0x82),'description':a101_0x593b1e(0x7e),'risk':a101_0x593b1e(0x80),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a101_0x593b1e(0x84),'required':!![],'description':a101_0x593b1e(0x76)}],async 'validate'(_0xe45d86){readKbId(_0xe45d86);},async 'execute'(_0x196621){const _0x45a0d4=a101_0x593b1e,_0x15f46c=readKbId(_0x196621),_0x11b392=await requireKb(_0x196621,_0x15f46c);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x11b392)},'message':_0x45a0d4(0x75)+_0x15f46c};}};
1
+ const a101_0x56b1bb=a101_0x4a64;(function(_0x4af450,_0x3af446){const _0x20c907=a101_0x4a64,_0x59bdc7=_0x4af450();while(!![]){try{const _0x2ff356=-parseInt(_0x20c907(0x19a))/0x1*(-parseInt(_0x20c907(0x199))/0x2)+parseInt(_0x20c907(0x195))/0x3+parseInt(_0x20c907(0x193))/0x4+parseInt(_0x20c907(0x196))/0x5+parseInt(_0x20c907(0x197))/0x6+parseInt(_0x20c907(0x192))/0x7*(parseInt(_0x20c907(0x194))/0x8)+-parseInt(_0x20c907(0x19c))/0x9;if(_0x2ff356===_0x3af446)break;else _0x59bdc7['push'](_0x59bdc7['shift']());}catch(_0x2ec632){_0x59bdc7['push'](_0x59bdc7['shift']());}}}(a101_0x4b3b,0x3be67));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0x4a64(_0xede4f4,_0x31dacd){_0xede4f4=_0xede4f4-0x191;const _0x4b3b95=a101_0x4b3b();let _0x4a64e9=_0x4b3b95[_0xede4f4];return _0x4a64e9;}function a101_0x4b3b(){const _0x146e24=['553fKNwhi','909200YsGSZY','41416EgumMN','1136715ULocqo','1138795YShkBi','158220gfNrYS','detail','790186xeiidD','1XFOFzO','Company\x20knowledge-base\x20id','12771531ICFwak','number'];a101_0x4b3b=function(){return _0x146e24;};return a101_0x4b3b();}export const kbDetail={'service':'kb','command':a101_0x56b1bb(0x198),'description':'Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','risk':'read','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a101_0x56b1bb(0x191),'required':!![],'description':a101_0x56b1bb(0x19b)}],async 'validate'(_0x17deed){readKbId(_0x17deed);},async 'execute'(_0x24bda0){const _0x21eef4=readKbId(_0x24bda0),_0x512cbe=await requireKb(_0x24bda0,_0x21eef4);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x512cbe)},'message':'Loaded\x20company\x20knowledge\x20base\x20'+_0x21eef4};}};
@@ -1 +1 @@
1
- (function(_0x4211c0,_0x275c97){const _0x58cced=a102_0x5d78,_0x4c94bf=_0x4211c0();while(!![]){try{const _0x2d63f9=parseInt(_0x58cced(0x74))/0x1*(parseInt(_0x58cced(0x73))/0x2)+-parseInt(_0x58cced(0x71))/0x3*(parseInt(_0x58cced(0x75))/0x4)+parseInt(_0x58cced(0x6e))/0x5+parseInt(_0x58cced(0x6d))/0x6+-parseInt(_0x58cced(0x72))/0x7+parseInt(_0x58cced(0x70))/0x8*(-parseInt(_0x58cced(0x6f))/0x9)+parseInt(_0x58cced(0x77))/0xa*(parseInt(_0x58cced(0x76))/0xb);if(_0x2d63f9===_0x275c97)break;else _0x4c94bf['push'](_0x4c94bf['shift']());}catch(_0x4fdf88){_0x4c94bf['push'](_0x4c94bf['shift']());}}}(a102_0x5e36,0xcc4ec));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';import{kbDelete}from'../../commands/kb/delete.js';function a102_0x5d78(_0x800f6,_0x1a958d){_0x800f6=_0x800f6-0x6d;const _0x5e36fb=a102_0x5e36();let _0x5d7860=_0x5e36fb[_0x800f6];return _0x5d7860;}export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];function a102_0x5e36(){const _0xa6f6f1=['5823672LQsQko','194226hyJFSt','6157683FsIfCu','313714jGxzhw','1STAlFV','8OMltHq','5918LkLiNf','20330euMNGY','2957190lTPeGh','4152400MLbBEQ','9RDoGbK'];a102_0x5e36=function(){return _0xa6f6f1;};return a102_0x5e36();}
1
+ (function(_0x25c94a,_0x274fc0){const _0x52a431=a102_0x4d70,_0x4f986f=_0x25c94a();while(!![]){try{const _0x213de0=parseInt(_0x52a431(0x1c5))/0x1*(-parseInt(_0x52a431(0x1c9))/0x2)+-parseInt(_0x52a431(0x1c8))/0x3*(-parseInt(_0x52a431(0x1c2))/0x4)+-parseInt(_0x52a431(0x1c7))/0x5*(-parseInt(_0x52a431(0x1c4))/0x6)+parseInt(_0x52a431(0x1c3))/0x7+-parseInt(_0x52a431(0x1bf))/0x8*(parseInt(_0x52a431(0x1c0))/0x9)+parseInt(_0x52a431(0x1c6))/0xa*(parseInt(_0x52a431(0x1ca))/0xb)+-parseInt(_0x52a431(0x1be))/0xc*(parseInt(_0x52a431(0x1c1))/0xd);if(_0x213de0===_0x274fc0)break;else _0x4f986f['push'](_0x4f986f['shift']());}catch(_0x1d49e0){_0x4f986f['push'](_0x4f986f['shift']());}}}(a102_0x9481,0xe3483));import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';function a102_0x9481(){const _0x3b05cb=['905neVBzm','3zzEtGH','8htYojF','11AARtoM','132pJlasV','1973096lfeMas','36xXNMvs','492934Mogqtc','2931932mRPgVw','6365576FtyDbz','2742fGNiqN','127958edduhc','11213570OaHZGs'];a102_0x9481=function(){return _0x3b05cb;};return a102_0x9481();}import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';import{kbDelete}from'../../commands/kb/delete.js';function a102_0x4d70(_0x45e597,_0x28c2c2){_0x45e597=_0x45e597-0x1be;const _0x94810f=a102_0x9481();let _0x4d7046=_0x94810f[_0x45e597];return _0x4d7046;}export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];
@@ -1 +1 @@
1
- const a103_0x14687a=a103_0x56fe;(function(_0x6a9e87,_0x241b33){const _0x1840d3=a103_0x56fe,_0x1e095c=_0x6a9e87();while(!![]){try{const _0x43f84f=-parseInt(_0x1840d3(0x1b4))/0x1*(parseInt(_0x1840d3(0x1b8))/0x2)+parseInt(_0x1840d3(0x1b6))/0x3+parseInt(_0x1840d3(0x1b5))/0x4*(-parseInt(_0x1840d3(0x1c6))/0x5)+parseInt(_0x1840d3(0x1ba))/0x6+-parseInt(_0x1840d3(0x1b7))/0x7+-parseInt(_0x1840d3(0x1c7))/0x8*(parseInt(_0x1840d3(0x1bf))/0x9)+parseInt(_0x1840d3(0x1c1))/0xa*(parseInt(_0x1840d3(0x1b3))/0xb);if(_0x43f84f===_0x241b33)break;else _0x1e095c['push'](_0x1e095c['shift']());}catch(_0x6525a1){_0x1e095c['push'](_0x1e095c['shift']());}}}(a103_0x2a79,0xc6236));function a103_0x56fe(_0x26baba,_0x589162){_0x26baba=_0x26baba-0x1b3;const _0x2a79c7=a103_0x2a79();let _0x56fee0=_0x2a79c7[_0x26baba];return _0x56fee0;}import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':a103_0x14687a(0x1c8),'description':a103_0x14687a(0x1be),'risk':a103_0x14687a(0x1bc),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a103_0x14687a(0x1bb),'type':a103_0x14687a(0x1c4),'required':![],'description':a103_0x14687a(0x1c0)}],async 'execute'(_0x21ccd4){const _0x55070e=a103_0x14687a,_0x511872=_0x21ccd4[_0x55070e(0x1b9)]('title')[_0x55070e(0x1c2)](),_0x30d77a=await fetchAllCompanyKnowledgeBases(_0x21ccd4,{..._0x511872?{'title':_0x511872}:{}}),_0x11c9e0=_0x30d77a[_0x55070e(0x1bd)](projectKb);return{'ok':!![],'data':{'total':_0x11c9e0[_0x55070e(0x1c9)],'knowledgeBases':_0x11c9e0},'message':_0x55070e(0x1c3)+_0x11c9e0['length']+'\x20company\x20knowledge\x20base(s)\x20for\x20'+_0x21ccd4[_0x55070e(0x1c5)]};}};function a103_0x2a79(){const _0x2c50d0=['60TZVsfW','trim','Found\x20','string','appCode','5uFevFv','9891768HOelvf','list','length','4346331EfzSBD','778WkDDte','6477404bosoZY','1698981lPwJLv','1308573FeeEPd','1292FTCQYd','str','8519220EzcrgU','title','read','map','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','9XfWWdu','Filter\x20by\x20knowledge-base\x20title'];a103_0x2a79=function(){return _0x2c50d0;};return a103_0x2a79();}
1
+ const a103_0x545360=a103_0x37d3;function a103_0x37d3(_0x5ea5bd,_0xa59182){_0x5ea5bd=_0x5ea5bd-0xf2;const _0x159405=a103_0x1594();let _0x37d396=_0x159405[_0x5ea5bd];return _0x37d396;}(function(_0x52195c,_0x15255a){const _0x2f2329=a103_0x37d3,_0x6aa8ae=_0x52195c();while(!![]){try{const _0x5980b9=-parseInt(_0x2f2329(0xf9))/0x1+parseInt(_0x2f2329(0x107))/0x2*(parseInt(_0x2f2329(0x105))/0x3)+parseInt(_0x2f2329(0x100))/0x4*(parseInt(_0x2f2329(0xf8))/0x5)+-parseInt(_0x2f2329(0xfc))/0x6*(-parseInt(_0x2f2329(0xfe))/0x7)+-parseInt(_0x2f2329(0xf7))/0x8*(parseInt(_0x2f2329(0xf4))/0x9)+parseInt(_0x2f2329(0xf2))/0xa*(parseInt(_0x2f2329(0xf5))/0xb)+-parseInt(_0x2f2329(0x103))/0xc*(-parseInt(_0x2f2329(0xfd))/0xd);if(_0x5980b9===_0x15255a)break;else _0x6aa8ae['push'](_0x6aa8ae['shift']());}catch(_0x2c63dc){_0x6aa8ae['push'](_0x6aa8ae['shift']());}}}(a103_0x1594,0x562aa));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':'list','description':'List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','risk':a103_0x545360(0x102),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':a103_0x545360(0x101),'required':![],'description':a103_0x545360(0x106)}],async 'execute'(_0x1ec19d){const _0x5dcb13=a103_0x545360,_0x1cb448=_0x1ec19d[_0x5dcb13(0xfb)](_0x5dcb13(0xf6))[_0x5dcb13(0xfa)](),_0x417c0b=await fetchAllCompanyKnowledgeBases(_0x1ec19d,{..._0x1cb448?{'title':_0x1cb448}:{}}),_0x2e85ce=_0x417c0b[_0x5dcb13(0xff)](projectKb);return{'ok':!![],'data':{'total':_0x2e85ce[_0x5dcb13(0xf3)],'knowledgeBases':_0x2e85ce},'message':'Found\x20'+_0x2e85ce['length']+_0x5dcb13(0x104)+_0x1ec19d['appCode']};}};function a103_0x1594(){const _0x596afc=['77RKDTYF','map','4xkUeWE','string','read','24BPyQwb','\x20company\x20knowledge\x20base(s)\x20for\x20','167781uqJFwt','Filter\x20by\x20knowledge-base\x20title','6MOgMUd','29480fhdHED','length','1457865WbRVpm','902JsfETO','title','8dMESOb','655285SLufYi','504368jaiQxt','trim','str','10518jnUrHy','2986321NWUgNe'];a103_0x1594=function(){return _0x596afc;};return a103_0x1594();}