@lovrabet/rabetbase-cli 2.4.4-beta.1 → 2.4.5-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 (330) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.d.ts +1 -0
  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/{permit/index.d.ts → dataset/business-groups.d.ts} +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -0
  64. package/lib/commands/dataset/capability.js +1 -1
  65. package/lib/commands/dataset/delete.js +1 -1
  66. package/lib/commands/dataset/detail.js +1 -1
  67. package/lib/commands/dataset/extend-update.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.d.ts +15 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/doctor.js +1 -1
  100. package/lib/commands/file/index.js +1 -1
  101. package/lib/commands/init/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/shared.js +1 -1
  112. package/lib/commands/kb/update.js +1 -1
  113. package/lib/commands/logs/index.js +1 -1
  114. package/lib/commands/menu/asset-update.js +1 -1
  115. package/lib/commands/menu/delete.js +1 -1
  116. package/lib/commands/menu/external-link-create.js +1 -1
  117. package/lib/commands/menu/external-link-update.js +1 -1
  118. package/lib/commands/menu/group-create.js +1 -1
  119. package/lib/commands/menu/group-update.js +1 -1
  120. package/lib/commands/menu/index.js +1 -1
  121. package/lib/commands/menu/list.js +1 -1
  122. package/lib/commands/menu/move.js +1 -1
  123. package/lib/commands/menu/regroup-start.js +1 -1
  124. package/lib/commands/menu/rename.js +1 -1
  125. package/lib/commands/menu/shared/compare-table.js +1 -1
  126. package/lib/commands/menu/shared/delete-plan.js +1 -1
  127. package/lib/commands/menu/shared/facts.js +1 -1
  128. package/lib/commands/menu/shared/index.js +1 -1
  129. package/lib/commands/menu/shared/inquirer.js +1 -1
  130. package/lib/commands/menu/shared/local-pages.js +1 -1
  131. package/lib/commands/menu/shared/logic.js +1 -1
  132. package/lib/commands/menu/shared/mutations.js +1 -1
  133. package/lib/commands/menu/shared/service.js +1 -1
  134. package/lib/commands/menu/shared/sync-core.js +1 -1
  135. package/lib/commands/menu/shared/update-core.js +1 -1
  136. package/lib/commands/menu/shared/valid-url.js +1 -1
  137. package/lib/commands/menu/sync.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/generate-start.js +1 -1
  146. package/lib/commands/page/generate-status.js +1 -1
  147. package/lib/commands/page/index.js +1 -1
  148. package/lib/commands/page/pull.js +1 -1
  149. package/lib/commands/page/push.js +1 -1
  150. package/lib/commands/page/react/create.js +1 -1
  151. package/lib/commands/page/react/detail.js +1 -1
  152. package/lib/commands/page/react/list.js +1 -1
  153. package/lib/commands/page/react/publish.js +1 -1
  154. package/lib/commands/page/react/shared.js +1 -1
  155. package/lib/commands/page/react/syntax.js +1 -1
  156. package/lib/commands/page/react/template.js +1 -1
  157. package/lib/commands/page/react/update.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  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/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.d.ts +15 -17
  181. package/lib/commands/role/shared.js +1 -1
  182. package/lib/commands/role/update.js +1 -1
  183. package/lib/commands/role/user-add.js +1 -1
  184. package/lib/commands/role/user-remove.js +1 -1
  185. package/lib/commands/role/user-resolve.js +1 -1
  186. package/lib/commands/run/index.js +1 -1
  187. package/lib/commands/schema.js +1 -1
  188. package/lib/commands/sql/create.js +1 -1
  189. package/lib/commands/sql/delete.js +1 -1
  190. package/lib/commands/sql/detail.js +1 -1
  191. package/lib/commands/sql/exec.js +1 -1
  192. package/lib/commands/sql/index.js +1 -1
  193. package/lib/commands/sql/list.js +1 -1
  194. package/lib/commands/sql/pull.js +1 -1
  195. package/lib/commands/sql/push.js +1 -1
  196. package/lib/commands/sql/shared.js +1 -1
  197. package/lib/commands/sql/status.js +1 -1
  198. package/lib/commands/sql/validate.js +1 -1
  199. package/lib/commands/task/index.js +1 -1
  200. package/lib/commands/task/status.js +1 -1
  201. package/lib/commands/tenant/index.js +1 -1
  202. package/lib/commands/tenant/members-list.js +1 -1
  203. package/lib/commands/tenant/shared.js +1 -1
  204. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  205. package/lib/commands/user-account/index.js +1 -1
  206. package/lib/commands/workspace/add.js +1 -1
  207. package/lib/commands/workspace/index.js +1 -1
  208. package/lib/commands/workspace/remove.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.d.ts +70 -79
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.js +1 -1
  226. package/lib/core/bff/file-system.d.ts +1 -0
  227. package/lib/core/bff/file-system.js +1 -1
  228. package/lib/core/bff/hash.js +1 -1
  229. package/lib/core/bff/lock.js +1 -1
  230. package/lib/core/bff/utils.js +1 -1
  231. package/lib/core/db-resolver.js +1 -1
  232. package/lib/core/page/file-system.js +1 -1
  233. package/lib/core/page/hash.js +1 -1
  234. package/lib/core/page/lock.js +1 -1
  235. package/lib/core/sql-index-auditor.js +1 -1
  236. package/lib/core/sql-sync/config.js +1 -1
  237. package/lib/core/sql-sync/file-system.js +1 -1
  238. package/lib/core/sql-sync/hash.js +1 -1
  239. package/lib/core/sql-sync/lock.js +1 -1
  240. package/lib/core/sql-sync/utils.js +1 -1
  241. package/lib/core/sql-validator.js +1 -1
  242. package/lib/errors.js +1 -1
  243. package/lib/framework/build-all-flags.js +1 -1
  244. package/lib/framework/error-output.js +1 -1
  245. package/lib/framework/explicit-yes.js +1 -1
  246. package/lib/framework/flags.js +1 -1
  247. package/lib/framework/help.js +1 -1
  248. package/lib/framework/index.js +1 -1
  249. package/lib/framework/output.js +1 -1
  250. package/lib/framework/response.js +1 -1
  251. package/lib/framework/runner-alias.js +1 -1
  252. package/lib/framework/runner.js +1 -1
  253. package/lib/framework/schema-export.js +1 -1
  254. package/lib/framework/types.js +1 -1
  255. package/lib/generated/build-info.d.ts +4 -4
  256. package/lib/generated/build-info.js +1 -1
  257. package/lib/help.js +1 -1
  258. package/lib/postinstall.js +1 -1
  259. package/lib/runtime/confirmation.js +1 -1
  260. package/lib/runtime/event.js +1 -1
  261. package/lib/runtime/index.js +1 -1
  262. package/lib/runtime/queue.js +1 -1
  263. package/lib/runtime/resolve.js +1 -1
  264. package/lib/skills/builtin-skill.js +1 -1
  265. package/lib/skills/main.js +1 -1
  266. package/lib/skills/npx-skills-add.js +1 -1
  267. package/lib/skills/skill-presence.js +1 -1
  268. package/lib/telemetry/cli-command-trace.js +1 -1
  269. package/lib/telemetry/cli-help-trace.js +1 -1
  270. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  271. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  272. package/lib/telemetry/send-cli-trace-log.js +1 -1
  273. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  274. package/lib/utils/ai_config.js +1 -1
  275. package/lib/utils/apply-jq-filter.js +1 -1
  276. package/lib/utils/cdn-config.js +1 -1
  277. package/lib/utils/check-sdk-version.js +1 -1
  278. package/lib/utils/cli-version-check.js +1 -1
  279. package/lib/utils/cli-version-policy.js +1 -1
  280. package/lib/utils/config.js +1 -1
  281. package/lib/utils/entity-with-id.js +1 -1
  282. package/lib/utils/file-utils.js +1 -1
  283. package/lib/utils/guides-cdn.js +1 -1
  284. package/lib/utils/http-client.js +1 -1
  285. package/lib/utils/is-non-interactive.js +1 -1
  286. package/lib/utils/logger.js +1 -1
  287. package/lib/utils/params.js +1 -1
  288. package/lib/utils/platform.js +1 -1
  289. package/lib/utils/rules-cdn.js +1 -1
  290. package/lib/utils/sleep.js +1 -1
  291. package/lib/utils/template-replacer.js +1 -1
  292. package/lib/utils/update-notice.js +1 -1
  293. package/lib/utils/version.js +1 -1
  294. package/lib/utils/with-active-cookie.js +1 -1
  295. package/lib/utils/write-cli-side-channel.js +1 -1
  296. package/package.json +1 -1
  297. package/skills/rabetbase/SKILL.md +18 -24
  298. package/skills/rabetbase/guides/database-connection-workflow.md +6 -2
  299. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +28 -0
  300. package/skills/rabetbase/references/rabetbase-dataset-delete.md +7 -5
  301. package/skills/rabetbase/references/rabetbase-dataset-list.md +6 -6
  302. package/skills/rabetbase/references/rabetbase-dataset-restore.md +5 -5
  303. package/skills/rabetbase/references/rabetbase-db-create.md +3 -0
  304. package/skills/rabetbase/references/rabetbase-db-delete.md +10 -2
  305. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -0
  306. package/skills/rabetbase/references/rabetbase-db-list.md +3 -2
  307. package/skills/rabetbase/references/rabetbase-db-update.md +4 -2
  308. package/skills/rabetbase/references/rabetbase-role-list.md +9 -17
  309. package/skills/rabetbase/references/rabetbase-role-user-add.md +44 -16
  310. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  311. package/skills/rabetbase.manifest.json +4 -7
  312. package/lib/commands/permit/index.js +0 -1
  313. package/lib/commands/permit/page-get.d.ts +0 -2
  314. package/lib/commands/permit/page-get.js +0 -1
  315. package/lib/commands/permit/page-set.d.ts +0 -2
  316. package/lib/commands/permit/page-set.js +0 -1
  317. package/lib/commands/permit/role-apis-set.d.ts +0 -2
  318. package/lib/commands/permit/role-apis-set.js +0 -1
  319. package/lib/commands/permit/role-menus-set.d.ts +0 -2
  320. package/lib/commands/permit/role-menus-set.js +0 -1
  321. package/lib/commands/permit/role-menus.d.ts +0 -2
  322. package/lib/commands/permit/role-menus.js +0 -1
  323. package/lib/commands/permit/shared.d.ts +0 -74
  324. package/lib/commands/permit/shared.js +0 -1
  325. package/lib/commands/role/create.d.ts +0 -2
  326. package/lib/commands/role/create.js +0 -1
  327. package/skills/rabetbase/guides/role-permit-workflow.md +0 -127
  328. package/skills/rabetbase/references/rabetbase-permit-page-set.md +0 -69
  329. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +0 -53
  330. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +0 -57
@@ -1 +1 @@
1
- (function(_0x10d805,_0x759899){const _0x473a2b=a88_0x5703,_0x531613=_0x10d805();while(!![]){try{const _0x579431=parseInt(_0x473a2b(0x105))/0x1+parseInt(_0x473a2b(0x101))/0x2+-parseInt(_0x473a2b(0xfe))/0x3*(parseInt(_0x473a2b(0xfd))/0x4)+-parseInt(_0x473a2b(0x100))/0x5*(-parseInt(_0x473a2b(0x102))/0x6)+parseInt(_0x473a2b(0x104))/0x7+-parseInt(_0x473a2b(0xff))/0x8+-parseInt(_0x473a2b(0x103))/0x9;if(_0x579431===_0x759899)break;else _0x531613['push'](_0x531613['shift']());}catch(_0x46d031){_0x531613['push'](_0x531613['shift']());}}}(a88_0x288a,0x8145c));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';function a88_0x5703(_0x5a2ad9,_0x45d327){_0x5a2ad9=_0x5a2ad9-0xfd;const _0x288a4e=a88_0x288a();let _0x5703a3=_0x288a4e[_0x5a2ad9];return _0x5703a3;}import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a88_0x288a(){const _0x2681d3=['12cIkneu','159309plpbum','1681360QZfmYF','1447930VBwQHB','1204490wGwBBK','18KZFfGk','15870762oBhGMl','6728442EoRNTa','230188FUFxSH'];a88_0x288a=function(){return _0x2681d3;};return a88_0x288a();}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
1
+ function a89_0xf9d3(_0x50c1e7,_0x308355){_0x50c1e7=_0x50c1e7-0x1d9;const _0x154178=a89_0x1541();let _0xf9d35a=_0x154178[_0x50c1e7];return _0xf9d35a;}(function(_0x283321,_0x5d389b){const _0x4ae057=a89_0xf9d3,_0x4e7221=_0x283321();while(!![]){try{const _0x366d7a=-parseInt(_0x4ae057(0x1da))/0x1*(-parseInt(_0x4ae057(0x1df))/0x2)+-parseInt(_0x4ae057(0x1e3))/0x3*(parseInt(_0x4ae057(0x1e0))/0x4)+parseInt(_0x4ae057(0x1e1))/0x5*(parseInt(_0x4ae057(0x1de))/0x6)+-parseInt(_0x4ae057(0x1d9))/0x7+parseInt(_0x4ae057(0x1e2))/0x8*(-parseInt(_0x4ae057(0x1dc))/0x9)+-parseInt(_0x4ae057(0x1db))/0xa+parseInt(_0x4ae057(0x1dd))/0xb;if(_0x366d7a===_0x5d389b)break;else _0x4e7221['push'](_0x4e7221['shift']());}catch(_0x2ebef7){_0x4e7221['push'](_0x4e7221['shift']());}}}(a89_0x1541,0xc8071));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';function a89_0x1541(){const _0x3694f3=['435454Fvfard','12eVZRqE','341125yeRkVF','16yOFgdf','685623ZMIjTa','11120788aZtRtX','7QxvQwL','8039410SWMNJZ','6076476AmsQhB','37209425qJejoY','30OoFobt'];a89_0x1541=function(){return _0x3694f3;};return a89_0x1541();}import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a89_0x2f94c1=a89_0x3b86;function a89_0x3b86(_0x2c28f7,_0x26898f){_0x2c28f7=_0x2c28f7-0x1a3;const _0x22800c=a89_0x2280();let _0x3b86f5=_0x22800c[_0x2c28f7];return _0x3b86f5;}(function(_0x22102d,_0x4dc83d){const _0x3536a7=a89_0x3b86,_0x452b80=_0x22102d();while(!![]){try{const _0x40404d=-parseInt(_0x3536a7(0x1a5))/0x1+-parseInt(_0x3536a7(0x1b2))/0x2+parseInt(_0x3536a7(0x1a9))/0x3*(parseInt(_0x3536a7(0x1b3))/0x4)+-parseInt(_0x3536a7(0x1a4))/0x5+parseInt(_0x3536a7(0x1af))/0x6+-parseInt(_0x3536a7(0x1a8))/0x7+parseInt(_0x3536a7(0x1ad))/0x8;if(_0x40404d===_0x4dc83d)break;else _0x452b80['push'](_0x452b80['shift']());}catch(_0x3e4a55){_0x452b80['push'](_0x452b80['shift']());}}}(a89_0x2280,0x9766c));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a89_0x2280(){const _0x5cacd9=['22523136PpcrSV','Page\x20size','4776708MVhuDh','num','appCode','1804260GLCwxP','1601176ThVvFN','page','length','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Page\x20index\x20(1-based)','4911540MoNPFq','1239451YVjVvP','\x20database\x20connection(s)','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','1874425iCiFuN','3qRWXwf','pagesize','Found\x20','number'];a89_0x2280=function(){return _0x5cacd9;};return a89_0x2280();}export const dbList={'service':'db','command':'list','description':a89_0x2f94c1(0x1a7),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a89_0x2f94c1(0x1b4),'type':a89_0x2f94c1(0x1ac),'description':a89_0x2f94c1(0x1a3),'default':0x1},{'name':a89_0x2f94c1(0x1aa),'type':a89_0x2f94c1(0x1ac),'description':a89_0x2f94c1(0x1ae),'default':0x64}],async 'execute'(_0x4a5243){const _0x3cbb93=a89_0x2f94c1,_0x45032a=_0x4a5243[_0x3cbb93(0x1b0)](_0x3cbb93(0x1b4),0x1)||0x1,_0x506443=_0x4a5243[_0x3cbb93(0x1b0)](_0x3cbb93(0x1aa),0x64)||0x64,{items:_0x3eb732,paging:_0x4d4f88}=await listDbLinks(_0x4a5243[_0x3cbb93(0x1b1)],{'currentPage':_0x45032a,'pageSize':_0x506443}),_0x24aaf1=sanitizeDbLinkList(_0x3eb732),_0x548dfc=_0x4d4f88?_0x4d4f88:{'currentPage':_0x45032a,'pageSize':_0x506443,'rowsOnPage':_0x24aaf1[_0x3cbb93(0x1b5)],'totalCount':null,'note':_0x3cbb93(0x1b6)};return{'ok':!![],'data':{'connections':_0x24aaf1,'paging':_0x548dfc},'message':_0x3cbb93(0x1ab)+_0x24aaf1[_0x3cbb93(0x1b5)]+_0x3cbb93(0x1a6)};}};
1
+ const a90_0x432c3e=a90_0x1888;(function(_0x2df764,_0x31d680){const _0x2dd9a8=a90_0x1888,_0x10e362=_0x2df764();while(!![]){try{const _0x549ab6=parseInt(_0x2dd9a8(0x107))/0x1+parseInt(_0x2dd9a8(0xf9))/0x2+-parseInt(_0x2dd9a8(0xfa))/0x3+parseInt(_0x2dd9a8(0x106))/0x4*(parseInt(_0x2dd9a8(0xf8))/0x5)+-parseInt(_0x2dd9a8(0xf7))/0x6*(-parseInt(_0x2dd9a8(0xf6))/0x7)+parseInt(_0x2dd9a8(0x10a))/0x8*(parseInt(_0x2dd9a8(0x103))/0x9)+-parseInt(_0x2dd9a8(0x10c))/0xa;if(_0x549ab6===_0x31d680)break;else _0x10e362['push'](_0x10e362['shift']());}catch(_0x3f55e3){_0x10e362['push'](_0x10e362['shift']());}}}(a90_0x3cc8,0x3b275));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a90_0x3cc8(){const _0x59948d=['112MHWHoS','36264HTNeCs','1875785BgXESW','104746DLxobg','827244QUazYi','length','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','DB_TABLE','read','map','list','26739cYdZqj','page','datasetDependency','4SXabHs','478969trYtlB','number','all','336aNFLko','appCode','6099440wBEfad','Found\x20','Page\x20size','\x20database\x20connection(s)','Page\x20index\x20(1-based)','num'];a90_0x3cc8=function(){return _0x59948d;};return a90_0x3cc8();}function a90_0x1888(_0x54052d,_0x3eee61){_0x54052d=_0x54052d-0xf4;const _0x3cc804=a90_0x3cc8();let _0x188874=_0x3cc804[_0x54052d];return _0x188874;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a90_0x432c3e(0x102),'description':a90_0x432c3e(0xfc),'risk':a90_0x432c3e(0x100),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a90_0x432c3e(0x104),'type':a90_0x432c3e(0x108),'description':a90_0x432c3e(0xf4),'default':0x1},{'name':a90_0x432c3e(0xfe),'type':a90_0x432c3e(0x108),'description':a90_0x432c3e(0x10e),'default':0x64}],async 'execute'(_0x158b0b){const _0x24e3d1=a90_0x432c3e,_0x369dd2=_0x158b0b[_0x24e3d1(0xf5)](_0x24e3d1(0x104),0x1)||0x1,_0x26cd41=_0x158b0b[_0x24e3d1(0xf5)](_0x24e3d1(0xfe),0x64)||0x64,[{items:_0x485f64,paging:_0x51cf61},_0x150a57]=await Promise[_0x24e3d1(0x109)]([listDbLinks(_0x158b0b[_0x24e3d1(0x10b)],{'currentPage':_0x369dd2,'pageSize':_0x26cd41}),listDatasets(_0x158b0b[_0x24e3d1(0x10b)],{'source':_0x24e3d1(0xff)})]),_0x47f31d=_0x485f64[_0x24e3d1(0x101)](_0x318433=>({...sanitizeDbLinkForOutput(_0x318433),'datasetDependency':buildDbDatasetDependency(_0x318433,_0x150a57)[_0x24e3d1(0x105)]})),_0x4172b4=_0x51cf61?_0x51cf61:{'currentPage':_0x369dd2,'pageSize':_0x26cd41,'rowsOnPage':_0x47f31d[_0x24e3d1(0xfb)],'totalCount':null,'note':_0x24e3d1(0xfd)};return{'ok':!![],'data':{'connections':_0x47f31d,'paging':_0x4172b4},'message':_0x24e3d1(0x10d)+_0x47f31d[_0x24e3d1(0xfb)]+_0x24e3d1(0x10f)};}};
@@ -1,12 +1,26 @@
1
1
  /**
2
2
  * db 子命令共享:输出脱敏(凭据类字段不落盘到 AI 可读 JSON)。
3
3
  */
4
- import type { DbLinkInfo } from "../../core/api-client.js";
4
+ import { type DatasetItem, type DbLinkInfo } from "../../core/api-client.js";
5
5
  /**
6
6
  * 单条连接信息脱敏后返回(避免把明文凭据回传给 agent)。
7
7
  */
8
8
  export declare function sanitizeDbLinkForOutput(link: DbLinkInfo | Record<string, unknown>): Record<string, unknown>;
9
9
  export declare function sanitizeDbLinkList(items: DbLinkInfo[]): Record<string, unknown>[];
10
+ export interface DbDatasetDependencyResult {
11
+ datasetDependency: {
12
+ hasDependencies: boolean;
13
+ activeDatasetCount: number;
14
+ };
15
+ datasets: Array<{
16
+ id: number;
17
+ code: string;
18
+ name: string;
19
+ tableName?: string;
20
+ }>;
21
+ }
22
+ export declare function buildDbDatasetDependency(link: Pick<DbLinkInfo, "id">, datasets: DatasetItem[]): DbDatasetDependencyResult;
23
+ export declare function assertDbLinkConnectionPreflight(payload: DbLinkInfo): Promise<void>;
10
24
  export declare function validateDbUrl(dbUrl: string): boolean;
11
25
  export interface DbPageLinks {
12
26
  databasePage: string;
@@ -1 +1 @@
1
- (function(_0x48a7fa,_0x355916){const _0x4da504=a90_0x2c2b,_0x398f04=_0x48a7fa();while(!![]){try{const _0x307106=parseInt(_0x4da504(0x189))/0x1*(-parseInt(_0x4da504(0x18a))/0x2)+-parseInt(_0x4da504(0x195))/0x3+-parseInt(_0x4da504(0x192))/0x4+parseInt(_0x4da504(0x190))/0x5+parseInt(_0x4da504(0x17f))/0x6*(parseInt(_0x4da504(0x180))/0x7)+parseInt(_0x4da504(0x181))/0x8+parseInt(_0x4da504(0x18d))/0x9*(parseInt(_0x4da504(0x182))/0xa);if(_0x307106===_0x355916)break;else _0x398f04['push'](_0x398f04['shift']());}catch(_0x3654a4){_0x398f04['push'](_0x398f04['shift']());}}}(a90_0x386d,0x63a7a));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x10dc47){const _0x27cf54=a90_0x2c2b,_0x1d1fd1=_0x10dc47['toLowerCase']();if(_0x1d1fd1===_0x27cf54(0x187)||_0x1d1fd1===_0x27cf54(0x17c)||_0x1d1fd1===_0x27cf54(0x17a))return!![];if(_0x1d1fd1[_0x27cf54(0x18f)](_0x27cf54(0x185))||_0x1d1fd1[_0x27cf54(0x18f)](_0x27cf54(0x17b))||_0x1d1fd1[_0x27cf54(0x18f)](_0x27cf54(0x18e)))return!![];if(_0x1d1fd1['includes'](_0x27cf54(0x17d))||_0x1d1fd1[_0x27cf54(0x18f)](_0x27cf54(0x191)))return!![];if(_0x1d1fd1===_0x27cf54(0x194)||_0x1d1fd1===_0x27cf54(0x184)||_0x1d1fd1===_0x27cf54(0x18c))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2f4018){const _0x11a0fc=a90_0x2c2b,_0x354d9e={..._0x2f4018};for(const _0x22da7a of Object[_0x11a0fc(0x188)](_0x354d9e)){if(!shouldRedactKey(_0x22da7a))continue;const _0x41f0e7=_0x354d9e[_0x22da7a];_0x41f0e7!=null&&String(_0x41f0e7)['length']>0x0&&(_0x354d9e[_0x22da7a]='[redacted]');}return _0x354d9e;}function a90_0x2c2b(_0x47e885,_0x2fada4){_0x47e885=_0x47e885-0x17a;const _0x386d7d=a90_0x386d();let _0x2c2b7b=_0x386d7d[_0x47e885];return _0x2c2b7b;}export function sanitizeDbLinkList(_0x13afc2){const _0x5bd7fd=a90_0x2c2b;return _0x13afc2[_0x5bd7fd(0x183)](_0x5a3b6b=>sanitizeDbLinkForOutput(_0x5a3b6b));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x11c6af){const _0x4d351d=a90_0x2c2b,_0x23f1c6=_0x11c6af[_0x4d351d(0x193)]();if(!_0x23f1c6)return![];return DB_URL_PATTERN['test'](_0x23f1c6);}export function buildDbPageLinks(_0x121d65,_0xb93bce){const _0x366426=a90_0x2c2b,_0x211cfd=_0x121d65?.[_0x366426(0x193)]();if(!_0x211cfd)return undefined;const _0x107903=typeof _0xb93bce===_0x366426(0x186)?String(_0xb93bce):String(_0xb93bce??'')['trim']();if(!_0x107903)return undefined;const _0x187998=Number(_0x107903);if(!Number[_0x366426(0x17e)](_0x187998)||_0x187998<=0x0)return undefined;const _0x164469=getAppBaseUrl(_0x211cfd),_0x4bc2de=encodeURIComponent(String(_0x187998));return{'databasePage':_0x164469+'/data/database','erPage':_0x164469+_0x366426(0x18b)+_0x4bc2de};}function a90_0x386d(){const _0x15ce48=['accesskey','791276bTTnbH','trim','authorization','2261283kKKXmx','dbpassword','token','passwd','privatekey','isFinite','60mWGRyw','550900pRKzkt','2205520QsuLTv','40muyCAP','map','connectionstring','secret','number','password','keys','770061AliXbJ','2iIxFPF','/data/er?dbId=','jdbcurl','597177ajnBrQ','credential','includes','4008625DAqtnW'];a90_0x386d=function(){return _0x15ce48;};return a90_0x386d();}
1
+ (function(_0x10d0da,_0x53e787){const _0x166b66=a91_0x2efc,_0x1fabbb=_0x10d0da();while(!![]){try{const _0xbee220=-parseInt(_0x166b66(0x146))/0x1*(-parseInt(_0x166b66(0x157))/0x2)+parseInt(_0x166b66(0x167))/0x3*(-parseInt(_0x166b66(0x166))/0x4)+-parseInt(_0x166b66(0x155))/0x5*(-parseInt(_0x166b66(0x14b))/0x6)+parseInt(_0x166b66(0x14d))/0x7+parseInt(_0x166b66(0x162))/0x8+parseInt(_0x166b66(0x15c))/0x9+-parseInt(_0x166b66(0x163))/0xa;if(_0xbee220===_0x53e787)break;else _0x1fabbb['push'](_0x1fabbb['shift']());}catch(_0x2e4326){_0x1fabbb['push'](_0x1fabbb['shift']());}}}(a91_0x20ae,0xcb70e));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x2eb7fb){const _0x5ef475=a91_0x2efc,_0x5bfeb0=_0x2eb7fb[_0x5ef475(0x15d)]();if(_0x5bfeb0==='password'||_0x5bfeb0===_0x5ef475(0x156)||_0x5bfeb0===_0x5ef475(0x15a))return!![];if(_0x5bfeb0[_0x5ef475(0x147)]('secret')||_0x5bfeb0[_0x5ef475(0x147)]('token')||_0x5bfeb0[_0x5ef475(0x147)](_0x5ef475(0x145)))return!![];if(_0x5bfeb0['includes'](_0x5ef475(0x158))||_0x5bfeb0['includes'](_0x5ef475(0x153)))return!![];if(_0x5bfeb0==='authorization'||_0x5bfeb0===_0x5ef475(0x14e)||_0x5bfeb0===_0x5ef475(0x151))return!![];return![];}export function sanitizeDbLinkForOutput(_0x57c73a){const _0x3070f3=a91_0x2efc,_0x19df4f={..._0x57c73a};delete _0x19df4f[_0x3070f3(0x165)];for(const _0x5d723b of Object[_0x3070f3(0x14f)](_0x19df4f)){if(!shouldRedactKey(_0x5d723b))continue;const _0x59f9ed=_0x19df4f[_0x5d723b];_0x59f9ed!=null&&String(_0x59f9ed)['length']>0x0&&(_0x19df4f[_0x5d723b]='[redacted]');}return _0x19df4f;}export function sanitizeDbLinkList(_0x10f837){const _0x4f74a4=a91_0x2efc;return _0x10f837[_0x4f74a4(0x152)](_0x333b37=>sanitizeDbLinkForOutput(_0x333b37));}export function buildDbDatasetDependency(_0x37ba64,_0x1c27dc){const _0x287ab5=a91_0x2efc,_0x4487a1=_0x1c27dc[_0x287ab5(0x15e)](_0x491c51=>Number(_0x491c51[_0x287ab5(0x14c)]?.[_0x287ab5(0x159)])===Number(_0x37ba64['id']))[_0x287ab5(0x152)](_0x5a672d=>({'id':_0x5a672d['id'],'code':_0x5a672d[_0x287ab5(0x14a)],'name':_0x5a672d[_0x287ab5(0x15f)],..._0x5a672d[_0x287ab5(0x14c)]?.[_0x287ab5(0x149)]?{'tableName':_0x5a672d[_0x287ab5(0x14c)][_0x287ab5(0x149)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4487a1[_0x287ab5(0x150)]>0x0,'activeDatasetCount':_0x4487a1[_0x287ab5(0x150)]},'datasets':_0x4487a1};}export async function assertDbLinkConnectionPreflight(_0xbf09e2){const _0x326b90=a91_0x2efc,_0x14861f=await testDbLinkConfigConnect(_0xbf09e2);if(_0x14861f!==!![])throw CliErrors[_0x326b90(0x161)]('Database\x20connection\x20preflight\x20failed.',_0x326b90(0x160));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x264419){const _0x31ed1b=a91_0x2efc,_0x546de3=_0x264419[_0x31ed1b(0x15b)]();if(!_0x546de3)return![];return DB_URL_PATTERN[_0x31ed1b(0x154)](_0x546de3);}function a91_0x2efc(_0x10e380,_0x23f40b){_0x10e380=_0x10e380-0x145;const _0x20ae42=a91_0x20ae();let _0x2efc3e=_0x20ae42[_0x10e380];return _0x2efc3e;}function a91_0x20ae(){const _0xa744fc=['hasAvailableDo','220dQopId','69072IZMvTF','credential','2IKqwtL','includes','number','tableName','code','9208074LddwjJ','dbtableConfig','10369975acHkjt','connectionstring','keys','length','jdbcurl','map','accesskey','test','5hYzGwW','passwd','340766gDcQby','privatekey','dbId','dbpassword','trim','5870853dfPQvj','toLowerCase','filter','name','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','apiError','4587688pinhxJ','24830340RjIgox','/data/database'];a91_0x20ae=function(){return _0xa744fc;};return a91_0x20ae();}export function buildDbPageLinks(_0x69e4e1,_0x47c725){const _0x3c0fdb=a91_0x2efc,_0x140384=_0x69e4e1?.[_0x3c0fdb(0x15b)]();if(!_0x140384)return undefined;const _0x5eda4c=typeof _0x47c725===_0x3c0fdb(0x148)?String(_0x47c725):String(_0x47c725??'')[_0x3c0fdb(0x15b)]();if(!_0x5eda4c)return undefined;const _0xa61708=Number(_0x5eda4c);if(!Number['isFinite'](_0xa61708)||_0xa61708<=0x0)return undefined;const _0x3a10e0=getAppBaseUrl(_0x140384),_0x4f46ae=encodeURIComponent(String(_0xa61708));return{'databasePage':_0x3a10e0+_0x3c0fdb(0x164),'erPage':_0x3a10e0+'/data/er?dbId='+_0x4f46ae};}
@@ -1 +1 @@
1
- const a91_0x49ff6b=a91_0x2562;(function(_0x2a4498,_0x1622ad){const _0x2a66f2=a91_0x2562,_0x491b61=_0x2a4498();while(!![]){try{const _0x4509b5=parseInt(_0x2a66f2(0x15e))/0x1+parseInt(_0x2a66f2(0x153))/0x2+-parseInt(_0x2a66f2(0x152))/0x3*(-parseInt(_0x2a66f2(0x159))/0x4)+-parseInt(_0x2a66f2(0x15f))/0x5+-parseInt(_0x2a66f2(0x156))/0x6*(-parseInt(_0x2a66f2(0x15c))/0x7)+parseInt(_0x2a66f2(0x15b))/0x8*(-parseInt(_0x2a66f2(0x155))/0x9)+-parseInt(_0x2a66f2(0x160))/0xa*(parseInt(_0x2a66f2(0x158))/0xb);if(_0x4509b5===_0x1622ad)break;else _0x491b61['push'](_0x491b61['shift']());}catch(_0x1f39d8){_0x491b61['push'](_0x491b61['shift']());}}}(a91_0x4783,0xe1135));import{getDbAllTableList}from'../../core/api-client.js';function a91_0x2562(_0x3fe103,_0x424455){_0x3fe103=_0x3fe103-0x151;const _0x478380=a91_0x4783();let _0x2562b1=_0x478380[_0x3fe103];return _0x2562b1;}function a91_0x4783(){const _0x37e1f8=['55eEkMzh','7260508mfSVIv','appCode','9496Nchjll','1345295YZVYtD','read','1557179yVSlXh','1031345cFFXiU','4395740YamArS','tables','length','3ViFzgs','40646qwPfUe','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1962ImkUFC','6rHraKR','num'];a91_0x4783=function(){return _0x37e1f8;};return a91_0x4783();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a91_0x49ff6b(0x161),'description':a91_0x49ff6b(0x154),'risk':a91_0x49ff6b(0x15d),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4fc8b1){const _0x334cc2=a91_0x49ff6b,_0x7a1a87=_0x4fc8b1[_0x334cc2(0x157)]('id'),_0x3fb00c=await getDbAllTableList(_0x4fc8b1[_0x334cc2(0x15a)],_0x7a1a87);return{'ok':!![],'data':{'dbLinkId':_0x7a1a87,'total':_0x3fb00c['length'],'tables':_0x3fb00c},'message':_0x3fb00c[_0x334cc2(0x151)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x7a1a87};}};
1
+ function a92_0xe152(_0x476a64,_0x35dc4b){_0x476a64=_0x476a64-0xd9;const _0x42dfc7=a92_0x42df();let _0xe15216=_0x42dfc7[_0x476a64];return _0xe15216;}const a92_0x52b6a5=a92_0xe152;(function(_0x581648,_0x3915f4){const _0x4fd045=a92_0xe152,_0x5b585d=_0x581648();while(!![]){try{const _0x471e0d=parseInt(_0x4fd045(0xe4))/0x1*(-parseInt(_0x4fd045(0xdf))/0x2)+-parseInt(_0x4fd045(0xe6))/0x3*(-parseInt(_0x4fd045(0xe5))/0x4)+-parseInt(_0x4fd045(0xe2))/0x5*(parseInt(_0x4fd045(0xe1))/0x6)+-parseInt(_0x4fd045(0xe9))/0x7+-parseInt(_0x4fd045(0xdc))/0x8*(parseInt(_0x4fd045(0xea))/0x9)+-parseInt(_0x4fd045(0xdd))/0xa*(-parseInt(_0x4fd045(0xe8))/0xb)+parseInt(_0x4fd045(0xd9))/0xc;if(_0x471e0d===_0x3915f4)break;else _0x5b585d['push'](_0x5b585d['shift']());}catch(_0x9aeaee){_0x5b585d['push'](_0x5b585d['shift']());}}}(a92_0x42df,0x2ef41));import{getDbAllTableList}from'../../core/api-client.js';function a92_0x42df(){const _0x3b2e53=['40HsnoPo','length','384398SBabrp','\x20table(s)\x20on\x20db\x20link\x20','12mTOdpx','707485TopArq','num','1gqfFag','379244kiOIpa','3ldjgqQ','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','73634OKkNaY','2210978zvsNyB','122895pryPDG','14110152PvGCfW','tables','appCode','184ptXUfZ'];a92_0x42df=function(){return _0x3b2e53;};return a92_0x42df();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a92_0x52b6a5(0xda),'description':a92_0x52b6a5(0xe7),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x28adf5){const _0x4b3392=a92_0x52b6a5,_0x3960ed=_0x28adf5[_0x4b3392(0xe3)]('id'),_0x50b50a=await getDbAllTableList(_0x28adf5[_0x4b3392(0xdb)],_0x3960ed);return{'ok':!![],'data':{'dbLinkId':_0x3960ed,'total':_0x50b50a[_0x4b3392(0xde)],'tables':_0x50b50a},'message':_0x50b50a['length']+_0x4b3392(0xe0)+_0x3960ed};}};
@@ -1 +1 @@
1
- const a92_0x1a2849=a92_0x13c8;(function(_0x1c515a,_0x46e42c){const _0xf84e56=a92_0x13c8,_0x561b71=_0x1c515a();while(!![]){try{const _0x10bc50=parseInt(_0xf84e56(0x1bd))/0x1*(-parseInt(_0xf84e56(0x1c1))/0x2)+parseInt(_0xf84e56(0x1b1))/0x3*(parseInt(_0xf84e56(0x1af))/0x4)+-parseInt(_0xf84e56(0x1c2))/0x5+-parseInt(_0xf84e56(0x1ad))/0x6*(parseInt(_0xf84e56(0x1c0))/0x7)+parseInt(_0xf84e56(0x1b9))/0x8+parseInt(_0xf84e56(0x1be))/0x9+-parseInt(_0xf84e56(0x1b7))/0xa;if(_0x10bc50===_0x46e42c)break;else _0x561b71['push'](_0x561b71['shift']());}catch(_0x5af4ca){_0x561b71['push'](_0x561b71['shift']());}}}(a92_0x2f7b,0x9f438));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x5f3d7b){const _0x548fb3=a92_0x13c8;if(_0x5f3d7b===!![]||_0x5f3d7b===![])return{'success':_0x5f3d7b};if(_0x5f3d7b===null||_0x5f3d7b===undefined)return{'type':typeof _0x5f3d7b};if(typeof _0x5f3d7b!==_0x548fb3(0x1b8))return{'type':typeof _0x5f3d7b};const _0x26caed=_0x5f3d7b,_0x27ad11=['success',_0x548fb3(0x1ac),_0x548fb3(0x1bf),_0x548fb3(0x1ab),_0x548fb3(0x1b6),_0x548fb3(0x1b2)],_0x37b016={};for(const _0x4aa283 of _0x27ad11){if(_0x4aa283 in _0x26caed)_0x37b016[_0x4aa283]=_0x26caed[_0x4aa283];}return Object['keys'](_0x37b016)[_0x548fb3(0x1b3)]===0x0&&(_0x37b016['keys']=Object[_0x548fb3(0x1b0)](_0x26caed)[_0x548fb3(0x1bb)](0x0,0x14)),_0x37b016;}function a92_0x13c8(_0x3d7407,_0xe25efc){_0x3d7407=_0x3d7407-0x1ab;const _0x2f7baa=a92_0x2f7b();let _0x13c89e=_0x2f7baa[_0x3d7407];return _0x13c89e;}function a92_0x2f7b(){const _0x1291e5=['slice','test','211zPQtVh','8783982taLsrI','code','11263EKObup','178whUkXw','1385845MJngxC','error','message','1170KJoLvO','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','31844aqvrtn','keys','183MLniFv','data','length','Connection\x20check\x20finished\x20for\x20db\x20link\x20','\x20(see\x20data.result)','msg','14778060sNkkoR','object','10225872VGrqQP','num'];a92_0x2f7b=function(){return _0x1291e5;};return a92_0x2f7b();}export const dbTest={'service':'db','command':a92_0x1a2849(0x1bc),'description':a92_0x1a2849(0x1ae),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3fbf50){const _0x1a0ae9=a92_0x1a2849,_0x416ee3=_0x3fbf50[_0x1a0ae9(0x1ba)]('id'),_0x4a0718=await testDbLinkConnect(_0x416ee3),_0x4ced0a=_0x4a0718===!![]||typeof _0x4a0718==='object'&&_0x4a0718!==null&&_0x4a0718['success']===!![],_0x502b22=summarizeTestConnectResult(_0x4a0718);return{'ok':!![],'data':{'id':_0x416ee3,'connected':Boolean(_0x4ced0a),'result':_0x502b22},'message':_0x4ced0a?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x416ee3:_0x1a0ae9(0x1b4)+_0x416ee3+_0x1a0ae9(0x1b5)};}};
1
+ function a93_0x1ba6(_0x3a7cb4,_0x16ccfa){_0x3a7cb4=_0x3a7cb4-0x15b;const _0x522330=a93_0x5223();let _0x1ba6fa=_0x522330[_0x3a7cb4];return _0x1ba6fa;}const a93_0x572e63=a93_0x1ba6;(function(_0x24ed23,_0x19d1bb){const _0x5d117b=a93_0x1ba6,_0x1a3ae4=_0x24ed23();while(!![]){try{const _0x3fbca4=parseInt(_0x5d117b(0x171))/0x1*(parseInt(_0x5d117b(0x15f))/0x2)+-parseInt(_0x5d117b(0x15c))/0x3+-parseInt(_0x5d117b(0x16b))/0x4*(-parseInt(_0x5d117b(0x169))/0x5)+parseInt(_0x5d117b(0x164))/0x6*(parseInt(_0x5d117b(0x15d))/0x7)+-parseInt(_0x5d117b(0x163))/0x8+parseInt(_0x5d117b(0x168))/0x9*(parseInt(_0x5d117b(0x162))/0xa)+-parseInt(_0x5d117b(0x166))/0xb;if(_0x3fbca4===_0x19d1bb)break;else _0x1a3ae4['push'](_0x1a3ae4['shift']());}catch(_0x150154){_0x1a3ae4['push'](_0x1a3ae4['shift']());}}}(a93_0x5223,0xd3179));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x34e9e9){const _0x419b28=a93_0x1ba6;if(_0x34e9e9===!![]||_0x34e9e9===![])return{'success':_0x34e9e9};if(_0x34e9e9===null||_0x34e9e9===undefined)return{'type':typeof _0x34e9e9};if(typeof _0x34e9e9!==_0x419b28(0x15b))return{'type':typeof _0x34e9e9};const _0x39c348=_0x34e9e9,_0x302139=[_0x419b28(0x165),'message',_0x419b28(0x15e),'error',_0x419b28(0x161),_0x419b28(0x167)],_0x4957ef={};for(const _0x9ac554 of _0x302139){if(_0x9ac554 in _0x39c348)_0x4957ef[_0x9ac554]=_0x39c348[_0x9ac554];}return Object[_0x419b28(0x16c)](_0x4957ef)['length']===0x0&&(_0x4957ef[_0x419b28(0x16c)]=Object[_0x419b28(0x16c)](_0x39c348)['slice'](0x0,0x14)),_0x4957ef;}export const dbTest={'service':'db','command':a93_0x572e63(0x16f),'description':a93_0x572e63(0x160),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3ac37b){const _0x4e8716=a93_0x572e63,_0x3c9eee=_0x3ac37b[_0x4e8716(0x16a)]('id'),_0x1f29c6=await testDbLinkConnect(_0x3c9eee),_0x599614=_0x1f29c6===!![]||typeof _0x1f29c6==='object'&&_0x1f29c6!==null&&_0x1f29c6[_0x4e8716(0x165)]===!![],_0x3318eb=summarizeTestConnectResult(_0x1f29c6);return{'ok':!![],'data':{'id':_0x3c9eee,'connected':Boolean(_0x599614),'result':_0x3318eb},'message':_0x599614?_0x4e8716(0x170)+_0x3c9eee:_0x4e8716(0x16d)+_0x3c9eee+_0x4e8716(0x16e)};}};function a93_0x5223(){const _0x5259c0=['Connection\x20OK\x20for\x20db\x20link\x20','2rOwAlX','object','2657304uyqCks','14BElYno','code','883070rCqTUl','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','msg','24960RuGfXH','8662976hAbSGI','2279946nHJzWc','success','4118444pfKMau','data','3870LkNJAn','2456725FjNyab','num','4EUMjqx','keys','Connection\x20check\x20finished\x20for\x20db\x20link\x20','\x20(see\x20data.result)','test'];a93_0x5223=function(){return _0x5259c0;};return a93_0x5223();}
@@ -1 +1 @@
1
- const a93_0x47375b=a93_0x1da1;(function(_0x288f5c,_0x42c408){const _0x12dd3a=a93_0x1da1,_0x4d251f=_0x288f5c();while(!![]){try{const _0x243c64=parseInt(_0x12dd3a(0xd9))/0x1*(parseInt(_0x12dd3a(0xe2))/0x2)+parseInt(_0x12dd3a(0xd4))/0x3*(parseInt(_0x12dd3a(0xdb))/0x4)+-parseInt(_0x12dd3a(0xf1))/0x5*(parseInt(_0x12dd3a(0xf2))/0x6)+-parseInt(_0x12dd3a(0xda))/0x7*(parseInt(_0x12dd3a(0xee))/0x8)+-parseInt(_0x12dd3a(0xec))/0x9+parseInt(_0x12dd3a(0xcd))/0xa*(-parseInt(_0x12dd3a(0xf0))/0xb)+parseInt(_0x12dd3a(0xce))/0xc*(parseInt(_0x12dd3a(0xe6))/0xd);if(_0x243c64===_0x42c408)break;else _0x4d251f['push'](_0x4d251f['shift']());}catch(_0x81d076){_0x4d251f['push'](_0x4d251f['shift']());}}}(a93_0x3110,0xb8480));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';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******',a93_0x47375b(0xde)]);function mergeDbLinkUpdate(_0x317445,_0x400195){const _0x42f7b8=a93_0x47375b,_0x15f1a0={..._0x317445},_0x57192f=_0x400195['str'](_0x42f7b8(0xef));if(_0x57192f&&MASKED_PASSWORD_VALUES['has'](_0x57192f))throw CliErrors[_0x42f7b8(0xf3)](_0x42f7b8(0xd2));if(!_0x57192f&&MASKED_PASSWORD_VALUES[_0x42f7b8(0xd7)](String(_0x317445[_0x42f7b8(0xef)]??'')))throw CliErrors[_0x42f7b8(0xf3)](_0x42f7b8(0xed));const _0x4d43b4=_0x400195[_0x42f7b8(0xe4)](_0x42f7b8(0xf5));if(_0x4d43b4)_0x15f1a0[_0x42f7b8(0xd5)]=_0x4d43b4;const _0xa9452d=_0x400195[_0x42f7b8(0xe4)](_0x42f7b8(0xd6));if(_0xa9452d)_0x15f1a0[_0x42f7b8(0xe8)]=_0xa9452d[_0x42f7b8(0xe1)]();const _0x3c3c58=_0x400195[_0x42f7b8(0xe4)](_0x42f7b8(0xf4));if(_0x3c3c58)_0x15f1a0[_0x42f7b8(0xf4)]=_0x3c3c58;if(_0x57192f)_0x15f1a0['password']=_0x57192f;const _0x2790f4=_0x400195[_0x42f7b8(0xe4)](_0x42f7b8(0xdd));if(_0x2790f4)_0x15f1a0[_0x42f7b8(0xd0)]=_0x2790f4;const _0x567a14=_0x400195['str'](_0x42f7b8(0xe9));if(_0x567a14)_0x15f1a0[_0x42f7b8(0xe5)]=_0x567a14;return _0x15f1a0;}function a93_0x3110(){const _0x591ef5=['174VEUkuj','New\x20username','str','dbDesc','325wbyXvZ','string','dbUrl','dbdesc','num','update','2056914peDwGj','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','189296TjPMaX','password','11869vZaqRv','235HyMmfo','191274vSgIze','validation','username','dbname','Updated\x20db\x20link\x20','12580JRvJjA','791472osyKKh','POST','dbParam','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','New\x20host:port','3183GJPvfz','dbName','dburl','has','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','13974dizsGz','14dikCJZ','3852COXEeb','write','dbparam','[redacted]','New\x20connection\x20parameter\x20string','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','trim'];a93_0x3110=function(){return _0x591ef5;};return a93_0x3110();}function a93_0x1da1(_0x4cb121,_0x559691){_0x4cb121=_0x4cb121-0xcc;const _0x311009=a93_0x3110();let _0x1da149=_0x311009[_0x4cb121];return _0x1da149;}export const dbUpdate={'service':'db','command':a93_0x47375b(0xeb),'description':a93_0x47375b(0xe0),'risk':a93_0x47375b(0xdc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a93_0x47375b(0xf5),'type':a93_0x47375b(0xe7),'description':'New\x20database\x20name'},{'name':'dburl','type':a93_0x47375b(0xe7),'description':a93_0x47375b(0xd3)},{'name':a93_0x47375b(0xf4),'type':a93_0x47375b(0xe7),'description':a93_0x47375b(0xe3)},{'name':a93_0x47375b(0xef),'type':a93_0x47375b(0xe7),'description':a93_0x47375b(0xd8)},{'name':a93_0x47375b(0xdd),'type':a93_0x47375b(0xe7),'description':a93_0x47375b(0xdf)},{'name':a93_0x47375b(0xe9),'type':a93_0x47375b(0xe7),'description':'New\x20description'}],async 'validate'(_0x5a8a1e){const _0x5e2e77=a93_0x47375b,_0x1c3097=_0x5a8a1e[_0x5e2e77(0xe4)](_0x5e2e77(0xd6));if(_0x1c3097&&!validateDbUrl(_0x1c3097['trim']()))throw CliErrors[_0x5e2e77(0xf3)](_0x5e2e77(0xd1)+_0x1c3097+'\x22');},async 'dryRun'(_0x15c2a9){const _0x4e4823=a93_0x47375b,_0x378ed2=_0x15c2a9[_0x4e4823(0xea)]('id'),_0xe06155=await getDbLinkInfo(_0x378ed2),_0x2a4a37=mergeDbLinkUpdate(_0xe06155,_0x15c2a9),_0x5da24d=sanitizeDbLinkForOutput(_0x2a4a37);return{'method':_0x4e4823(0xcf),'url':'/smartapi/dblink/update','body':_0x5da24d,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x16bbe3){const _0x289732=a93_0x47375b,_0x27003d=_0x16bbe3[_0x289732(0xea)]('id'),_0x34289a=await getDbLinkInfo(_0x27003d),_0x2887e9=mergeDbLinkUpdate(_0x34289a,_0x16bbe3),{id:_0x461123,entity:_0x12777c}=normalizeEntityWithIdResponse(await updateDbLink(_0x2887e9));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x12777c),'message':_0x289732(0xcc)+(_0x461123??_0x27003d)};}};
1
+ const a94_0x4aecc4=a94_0x1a1c;(function(_0x19ffe5,_0x1215b2){const _0x16fb8d=a94_0x1a1c,_0x4e27c0=_0x19ffe5();while(!![]){try{const _0x379e9f=parseInt(_0x16fb8d(0x155))/0x1+parseInt(_0x16fb8d(0x168))/0x2+-parseInt(_0x16fb8d(0x173))/0x3+-parseInt(_0x16fb8d(0x156))/0x4*(parseInt(_0x16fb8d(0x15e))/0x5)+parseInt(_0x16fb8d(0x15f))/0x6*(-parseInt(_0x16fb8d(0x178))/0x7)+parseInt(_0x16fb8d(0x16b))/0x8+parseInt(_0x16fb8d(0x163))/0x9*(parseInt(_0x16fb8d(0x16a))/0xa);if(_0x379e9f===_0x1215b2)break;else _0x4e27c0['push'](_0x4e27c0['shift']());}catch(_0x13acd7){_0x4e27c0['push'](_0x4e27c0['shift']());}}}(a94_0x5962,0xd765f));function a94_0x5962(){const _0x163d1b=['dbName','trim','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','9YkGLKv','username','skip-connection-test','string','New\x20connection\x20parameter\x20string','762736XCHPWR','password','13734970bTGdgj','7021120yqghhD','write','dbparam','has','/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.','num','Updated\x20db\x20link\x20','4381839qyJKyr','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbUrl','New\x20username','bool','3541076UFInEn','dburl','New\x20description','POST','1127562xVCgSP','37580ZCVnKG','update','str','validation','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbdesc','dbname','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','485IicKMB','6uPBhOQ'];a94_0x5962=function(){return _0x163d1b;};return a94_0x5962();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';function a94_0x1a1c(_0x27692b,_0x15f76c){_0x27692b=_0x27692b-0x153;const _0x59627f=a94_0x5962();let _0x1a1ce3=_0x59627f[_0x27692b];return _0x1a1ce3;}import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set(['******','[redacted]']);function mergeDbLinkUpdate(_0x10fd98,_0x1415d3){const _0x2d3a2f=a94_0x1a1c,_0x41ef92={..._0x10fd98},_0x133664=_0x1415d3['str'](_0x2d3a2f(0x169));if(_0x133664&&MASKED_PASSWORD_VALUES[_0x2d3a2f(0x16e)](_0x133664))throw CliErrors[_0x2d3a2f(0x159)](_0x2d3a2f(0x15d));if(!_0x133664&&MASKED_PASSWORD_VALUES[_0x2d3a2f(0x16e)](String(_0x10fd98['password']??'')))throw CliErrors[_0x2d3a2f(0x159)](_0x2d3a2f(0x170));const _0x130611=_0x1415d3[_0x2d3a2f(0x158)](_0x2d3a2f(0x15c));if(_0x130611)_0x41ef92[_0x2d3a2f(0x160)]=_0x130611;const _0x35bcde=_0x1415d3[_0x2d3a2f(0x158)](_0x2d3a2f(0x179));if(_0x35bcde)_0x41ef92[_0x2d3a2f(0x175)]=_0x35bcde[_0x2d3a2f(0x161)]();const _0x131762=_0x1415d3['str'](_0x2d3a2f(0x164));if(_0x131762)_0x41ef92['username']=_0x131762;if(_0x133664)_0x41ef92[_0x2d3a2f(0x169)]=_0x133664;const _0x5d4c1f=_0x1415d3[_0x2d3a2f(0x158)](_0x2d3a2f(0x16d));if(_0x5d4c1f)_0x41ef92['dbParam']=_0x5d4c1f;const _0x2a9d9a=_0x1415d3[_0x2d3a2f(0x158)](_0x2d3a2f(0x15b));if(_0x2a9d9a)_0x41ef92['dbDesc']=_0x2a9d9a;return _0x41ef92;}export const dbUpdate={'service':'db','command':a94_0x4aecc4(0x157),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a94_0x4aecc4(0x16c),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x4aecc4(0x15c),'type':a94_0x4aecc4(0x166),'description':'New\x20database\x20name'},{'name':a94_0x4aecc4(0x179),'type':a94_0x4aecc4(0x166),'description':'New\x20host:port'},{'name':a94_0x4aecc4(0x164),'type':'string','description':a94_0x4aecc4(0x176)},{'name':'password','type':a94_0x4aecc4(0x166),'description':a94_0x4aecc4(0x15a)},{'name':a94_0x4aecc4(0x16d),'type':a94_0x4aecc4(0x166),'description':a94_0x4aecc4(0x167)},{'name':a94_0x4aecc4(0x15b),'type':a94_0x4aecc4(0x166),'description':a94_0x4aecc4(0x153)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x6af37b){const _0x117c07=a94_0x4aecc4,_0x178b7c=_0x6af37b[_0x117c07(0x158)](_0x117c07(0x179));if(_0x178b7c&&!validateDbUrl(_0x178b7c[_0x117c07(0x161)]()))throw CliErrors[_0x117c07(0x159)](_0x117c07(0x174)+_0x178b7c+'\x22');},async 'dryRun'(_0x13b515){const _0xf1b119=a94_0x4aecc4,_0x14b46a=_0x13b515[_0xf1b119(0x171)]('id'),_0x2ba7dc=await getDbLinkInfo(_0x14b46a),_0x51f4d9=mergeDbLinkUpdate(_0x2ba7dc,_0x13b515),_0x19b950=sanitizeDbLinkForOutput(_0x51f4d9);return{'method':_0xf1b119(0x154),'url':_0xf1b119(0x16f),'body':_0x19b950,'description':_0xf1b119(0x162),'connectionPreflight':{'enabled':!_0x13b515[_0xf1b119(0x177)](_0xf1b119(0x165)),'executed':![]}};},async 'execute'(_0x5c6d5d){const _0x4dfa37=a94_0x4aecc4,_0x1933ad=_0x5c6d5d[_0x4dfa37(0x171)]('id'),_0x29731a=await getDbLinkInfo(_0x1933ad),_0x5349ca=mergeDbLinkUpdate(_0x29731a,_0x5c6d5d);!_0x5c6d5d[_0x4dfa37(0x177)](_0x4dfa37(0x165))&&await assertDbLinkConnectionPreflight(_0x5349ca);const {id:_0x28afbd,entity:_0x23b8a3}=normalizeEntityWithIdResponse(await updateDbLink(_0x5349ca));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x23b8a3),'message':_0x4dfa37(0x172)+(_0x28afbd??_0x1933ad)};}};
@@ -1 +1 @@
1
- const a94_0x17e1a4=a94_0x5333;(function(_0x2bc52b,_0x4a2212){const _0x50b133=a94_0x5333,_0x595870=_0x2bc52b();while(!![]){try{const _0x3c12c2=-parseInt(_0x50b133(0x128))/0x1+parseInt(_0x50b133(0x151))/0x2+-parseInt(_0x50b133(0x15e))/0x3*(-parseInt(_0x50b133(0x144))/0x4)+parseInt(_0x50b133(0x146))/0x5+-parseInt(_0x50b133(0x124))/0x6+-parseInt(_0x50b133(0x12e))/0x7+parseInt(_0x50b133(0x168))/0x8*(parseInt(_0x50b133(0x166))/0x9);if(_0x3c12c2===_0x4a2212)break;else _0x595870['push'](_0x595870['shift']());}catch(_0x4607b3){_0x595870['push'](_0x595870['shift']());}}}(a94_0x4703,0x5d667));import a94_0xc199d7 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';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a94_0x5333(_0x3535ea,_0x2c2a42){_0x3535ea=_0x3535ea-0x108;const _0x4703e0=a94_0x4703();let _0x5333cc=_0x4703e0[_0x3535ea];return _0x5333cc;}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a94_0x4703(){const _0x54339f=['(not\x20found)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','gray','keys','length','(unknown)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','raw','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','4fgwfLO','value','2493445nTtbTd','source','cookie','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','(no\x20file)','skillVersion','riskLevel','✓\x20Valid','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','1300430FJvKcS','empty','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Invalid\x20JSON','locale','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','read','apps','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','packageVersion','format','accessKey','296343ybcOTD','appCode','installedPath','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','✗\x20Expired','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20←\x20current','3789711NbULIm','state','8ytcTaz','unknown','red','\x20doctor','check','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','verbose','bold','(default:\x20','\x20\x20Config\x20JSON','\x20(default)','\x20\x20Apps','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20\x20\x20accessKey:\x20\x20','(set,\x20length=','current','(missing)','\x20\x20Auth','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20explicitAppName:\x20','\x20\x20Built-in\x20Skill','currentApp','3216102EnhFHZ','✗\x20Not\x20logged\x20in','status','apiDir','179443ZKEAta','slice','platform','green','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','3995159woWELK','version','appcode','defaultApp','\x20\x20─','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','repeat','\x20\x20Installed\x20Path:\x20\x20','reason','Project'];a94_0x4703=function(){return _0x54339f;};return a94_0x4703();}async function execute(_0x118834){const _0x29f15c=a94_0x5333,_0x25fbc3=GIT_COMMIT!==_0x29f15c(0x169)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x29f15c(0x129)](0x0,0xa)+')':VERSION,_0x3e9e5a=buildConfigFromFlags({}),_0x3c1bfb=getCookie();console['log'](),console['log'](a94_0xc199d7[_0x29f15c(0x10e)](CLI_BIN_NAME+_0x29f15c(0x16b))),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)]('─'['repeat'](0x32))),console[_0x29f15c(0x162)](_0x29f15c(0x13b)+_0x25fbc3),console[_0x29f15c(0x162)](_0x29f15c(0x113)+process[_0x29f15c(0x12f)]),console[_0x29f15c(0x162)](_0x29f15c(0x109)+process[_0x29f15c(0x12a)]+'\x20'+process['arch']);const _0x3ade2a=inspectBuiltinSkill();console[_0x29f15c(0x162)](),console[_0x29f15c(0x162)](a94_0xc199d7['bold'](_0x29f15c(0x122))),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x132)['repeat'](0x1e)));const _0x3d0acd=_0x3ade2a['state']===_0x29f15c(0x11d)?a94_0xc199d7[_0x29f15c(0x12b)]('✓\x20'+_0x3ade2a[_0x29f15c(0x167)]):a94_0xc199d7[_0x29f15c(0x16a)]('✗\x20'+_0x3ade2a[_0x29f15c(0x167)]);console[_0x29f15c(0x162)](_0x29f15c(0x159)+_0x3d0acd),console[_0x29f15c(0x162)](_0x29f15c(0x116)+_0x3ade2a[_0x29f15c(0x15b)]),console[_0x29f15c(0x162)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3ade2a[_0x29f15c(0x14c)]||a94_0xc199d7['gray'](_0x29f15c(0x13f)))),console['log'](_0x29f15c(0x136)+(_0x3ade2a[_0x29f15c(0x160)]||a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x139))));if(_0x3ade2a['reason'])console['log'](_0x29f15c(0x118)+_0x3ade2a[_0x29f15c(0x137)]);_0x3ade2a[_0x29f15c(0x167)]!==_0x29f15c(0x11d)&&console[_0x29f15c(0x162)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ade2a[_0x29f15c(0x10a)]);console['log'](),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x10e)]('\x20\x20Config\x20Files')),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x132)[_0x29f15c(0x135)](0x1e)));const _0x360919=getGlobalConfigPath(),_0x2f510f=getProjectConfigPath();console[_0x29f15c(0x162)](_0x29f15c(0x133)+(_0x360919||a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x139)))),console['log'](_0x29f15c(0x143)+(_0x2f510f||a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x139)))),console[_0x29f15c(0x162)](),console[_0x29f15c(0x162)](a94_0xc199d7['bold'](_0x29f15c(0x110))),console[_0x29f15c(0x162)](a94_0xc199d7['gray']('\x20\x20─'[_0x29f15c(0x135)](0x1e)));const _0x16d272=(_0x13553f,_0x1f007c)=>{const _0x15b192=_0x29f15c;if(!_0x1f007c){console[_0x15b192(0x162)]('\x20\x20'+_0x13553f[_0x15b192(0x114)](0x11)+'\x20'+a94_0xc199d7['gray'](_0x15b192(0x14b)));return;}const _0x7bbcc9=inspectCliConfigJsonFile(_0x1f007c);if(_0x7bbcc9[_0x15b192(0x126)]==='ok')console[_0x15b192(0x162)]('\x20\x20'+_0x13553f[_0x15b192(0x114)](0x11)+'\x20'+a94_0xc199d7['green'](_0x15b192(0x14a)));else{if(_0x7bbcc9[_0x15b192(0x126)]===_0x15b192(0x152))console[_0x15b192(0x162)]('\x20\x20'+_0x13553f['padEnd'](0x11)+'\x20'+a94_0xc199d7['yellow'](_0x15b192(0x120)));else _0x7bbcc9['status']==='missing'?console['log']('\x20\x20'+_0x13553f[_0x15b192(0x114)](0x11)+'\x20'+a94_0xc199d7[_0x15b192(0x13c)](_0x15b192(0x11e))):(console['log']('\x20\x20'+_0x13553f['padEnd'](0x11)+'\x20'+a94_0xc199d7['red'](_0x15b192(0x154))),console['log']('\x20\x20'+''[_0x15b192(0x114)](0x11)+'\x20'+a94_0xc199d7[_0x15b192(0x16a)](_0x7bbcc9[_0x15b192(0x11a)])));}};_0x16d272(_0x29f15c(0x134),_0x360919),_0x16d272(_0x29f15c(0x138),_0x2f510f),console['log'](),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x10e)]('\x20\x20Merged\x20Config')),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x132)['repeat'](0x1e))),console[_0x29f15c(0x162)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e9e5a[_0x29f15c(0x15f)]||a94_0xc199d7[_0x29f15c(0x16a)](_0x29f15c(0x150)))),console[_0x29f15c(0x162)](_0x29f15c(0x115)+_0x3e9e5a[_0x29f15c(0x10c)]),console[_0x29f15c(0x162)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9e5a[_0x29f15c(0x155)]),console[_0x29f15c(0x162)](_0x29f15c(0x10b)+_0x3e9e5a[_0x29f15c(0x127)]),console[_0x29f15c(0x162)](_0x29f15c(0x12c)+(_0x3e9e5a[_0x29f15c(0x131)]||a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x15a)))),console[_0x29f15c(0x162)](_0x29f15c(0x156)+(_0x3e9e5a[_0x29f15c(0x123)]||a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x15a)))),console[_0x29f15c(0x162)](_0x29f15c(0x121)+(_0x3e9e5a['explicitAppName']||a94_0xc199d7['gray']('(none)'))),console['log'](_0x29f15c(0x14f)+(_0x3e9e5a[_0x29f15c(0x15c)]||a94_0xc199d7['gray'](_0x29f15c(0x10f)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x29f15c(0x119)+(_0x3e9e5a['pageSize']??a94_0xc199d7[_0x29f15c(0x13c)]('(default)'))),console['log'](_0x29f15c(0x12d)+_0x3e9e5a[_0x29f15c(0x14d)]),console[_0x29f15c(0x162)](_0x29f15c(0x140)+_0x3e9e5a[_0x29f15c(0x10d)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e9e5a[_0x29f15c(0x148)]?a94_0xc199d7[_0x29f15c(0x12b)](_0x29f15c(0x11c)+_0x3e9e5a[_0x29f15c(0x148)][_0x29f15c(0x13e)]+')'):_0x3c1bfb?a94_0xc199d7[_0x29f15c(0x12b)](_0x29f15c(0x141)+_0x3c1bfb[_0x29f15c(0x13e)]+')'):a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x15a))));const _0x2c35f7=Object[_0x29f15c(0x13d)](_0x3e9e5a[_0x29f15c(0x158)]);if(_0x2c35f7[_0x29f15c(0x13e)]>0x0){console[_0x29f15c(0x162)](),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x10e)](_0x29f15c(0x112))),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x132)[_0x29f15c(0x135)](0x1e)));for(const _0x2d959a of _0x2c35f7){const _0x386279=_0x3e9e5a[_0x29f15c(0x158)][_0x2d959a],_0x5a5262=_0x2d959a===_0x3e9e5a[_0x29f15c(0x131)],_0x2f72ed=_0x2d959a===_0x3e9e5a[_0x29f15c(0x123)],_0x47b8d2=_0x2f72ed?a94_0xc199d7[_0x29f15c(0x12b)](_0x29f15c(0x165)):'',_0x4c34b8=_0x5a5262?_0x29f15c(0x111):'';console[_0x29f15c(0x162)]('\x20\x20'+_0x2d959a+_0x4c34b8+_0x47b8d2),console[_0x29f15c(0x162)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x386279[_0x29f15c(0x130)]);const _0xf0a9c4=buildAppDoctorFields(_0x386279,{'env':_0x3e9e5a[_0x29f15c(0x10c)],'apiDir':_0x3e9e5a[_0x29f15c(0x142)][_0x29f15c(0x127)]||DEFAULT_CONFIG_VALUES[_0x29f15c(0x127)],'cookie':_0x3e9e5a['cookie']||_0x3c1bfb||undefined,'accessKey':_0x3e9e5a[_0x29f15c(0x15d)]});console[_0x29f15c(0x162)](_0x29f15c(0x117)+_0xf0a9c4[_0x29f15c(0x10c)][_0x29f15c(0x145)]+'\x20\x20'+a94_0xc199d7[_0x29f15c(0x13c)]('('+_0xf0a9c4['env']['source']+')')),console['log'](_0x29f15c(0x164)+_0xf0a9c4[_0x29f15c(0x127)][_0x29f15c(0x145)]+'\x20\x20'+a94_0xc199d7[_0x29f15c(0x13c)]('('+_0xf0a9c4[_0x29f15c(0x127)][_0x29f15c(0x147)]+')'));const _0x3cc760=_0xf0a9c4[_0x29f15c(0x148)][_0x29f15c(0x145)]?a94_0xc199d7[_0x29f15c(0x12b)]('(set,\x20length='+_0xf0a9c4[_0x29f15c(0x148)][_0x29f15c(0x145)][_0x29f15c(0x13e)]+')'):a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x15a));console[_0x29f15c(0x162)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x3cc760+'\x20\x20'+a94_0xc199d7['gray']('('+_0xf0a9c4[_0x29f15c(0x148)]['source']+')'));const _0x3a0a14=_0xf0a9c4[_0x29f15c(0x15d)][_0x29f15c(0x145)]?a94_0xc199d7['green'](_0x29f15c(0x11c)+_0xf0a9c4[_0x29f15c(0x15d)][_0x29f15c(0x145)][_0x29f15c(0x13e)]+')'):a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x15a));console['log'](_0x29f15c(0x11b)+_0x3a0a14+'\x20\x20'+a94_0xc199d7['gray']('('+_0xf0a9c4[_0x29f15c(0x15d)][_0x29f15c(0x147)]+')'));}}console[_0x29f15c(0x162)](),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x10e)]('\x20\x20API\x20Endpoints')),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)]('\x20\x20─'[_0x29f15c(0x135)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x29f15c(0x162)](_0x29f15c(0x149)+getUserDomain()),console['log'](_0x29f15c(0x153)+getRuntimeDomain()),console['log'](),console[_0x29f15c(0x162)](a94_0xc199d7['bold'](_0x29f15c(0x11f))),console[_0x29f15c(0x162)](a94_0xc199d7[_0x29f15c(0x13c)](_0x29f15c(0x132)['repeat'](0x1e)));if(_0x3c1bfb){const _0x1be000=await getIsSessionValid();console[_0x29f15c(0x162)](_0x29f15c(0x161)+(_0x1be000?a94_0xc199d7['green'](_0x29f15c(0x14e)):a94_0xc199d7[_0x29f15c(0x16a)](_0x29f15c(0x163))));}else console[_0x29f15c(0x162)](_0x29f15c(0x161)+a94_0xc199d7[_0x29f15c(0x16a)](_0x29f15c(0x125)));return console[_0x29f15c(0x162)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a94_0x17e1a4(0x108),'description':a94_0x17e1a4(0x13a),'risk':a94_0x17e1a4(0x157),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a95_0x80492c=a95_0x21b1;(function(_0x55edf2,_0x1a20c8){const _0x33122f=a95_0x21b1,_0x1b48f7=_0x55edf2();while(!![]){try{const _0x4f23db=-parseInt(_0x33122f(0x137))/0x1+parseInt(_0x33122f(0x18f))/0x2*(-parseInt(_0x33122f(0x174))/0x3)+parseInt(_0x33122f(0x148))/0x4*(-parseInt(_0x33122f(0x177))/0x5)+-parseInt(_0x33122f(0x16e))/0x6*(parseInt(_0x33122f(0x18b))/0x7)+parseInt(_0x33122f(0x14c))/0x8*(parseInt(_0x33122f(0x16d))/0x9)+parseInt(_0x33122f(0x138))/0xa*(parseInt(_0x33122f(0x18e))/0xb)+parseInt(_0x33122f(0x155))/0xc*(parseInt(_0x33122f(0x17c))/0xd);if(_0x4f23db===_0x1a20c8)break;else _0x1b48f7['push'](_0x1b48f7['shift']());}catch(_0x82ea6b){_0x1b48f7['push'](_0x1b48f7['shift']());}}}(a95_0x124f,0xd5044));import a95_0x1956d5 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';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a95_0x124f(){const _0x7f95b6=['⚠\x20Empty\x20(treated\x20as\x20{})','repeat','gray','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','padEnd','apps','\x20←\x20current','bold','(no\x20file)','9MpcWgu','6EIhtMn','status','(set\x20via\x20file,\x20length=','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','39GoeoBf','red','\x20\x20Built-in\x20Skill','14585UVhQSJ','apiDir','✗\x20Invalid\x20JSON','packageVersion','cookie','10379993qmKyXQ','(not\x20set)','\x20\x20Package\x20Version:\x20','state','format','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','appCode','doctor','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','env','current','11805619GTVFzZ','\x20\x20Apps','\x20\x20Auth','11FqczwX','58342HhIPwD','\x20\x20Config\x20JSON','unknown','\x20(default)','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','(missing)','raw','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','missing','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','riskLevel','accessKey','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','1024788YiNUBp','13132390BoDxKL','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','installedPath','\x20doctor','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','platform','length','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','Global','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','appcode','currentApp','752RCgbYC','✓\x20Valid\x20JSON','(none)','verbose','12810232hUGLFh','\x20\x20Merged\x20Config','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(not\x20found)','skillVersion','green','yellow','slice','empty','24ovFJVc','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20Installed\x20Path:\x20\x20','log','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','Project','version','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','value'];a95_0x124f=function(){return _0x7f95b6;};return a95_0x124f();}import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x4c89d1){const _0x606d31=a95_0x21b1,_0x120d89=GIT_COMMIT!==_0x606d31(0x191)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x606d31(0x153)](0x0,0xa)+')':VERSION,_0xbf1e3d=buildConfigFromFlags({}),_0x720cff=getCookie();console['log'](),console[_0x606d31(0x159)](a95_0x1956d5['bold'](CLI_BIN_NAME+_0x606d31(0x13b))),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x164)]('─'['repeat'](0x32))),console[_0x606d31(0x159)](_0x606d31(0x160)+_0x120d89),console[_0x606d31(0x159)](_0x606d31(0x166)+process[_0x606d31(0x15e)]),console[_0x606d31(0x159)](_0x606d31(0x165)+process[_0x606d31(0x140)]+'\x20'+process['arch']);const _0x2428cd=inspectBuiltinSkill();console[_0x606d31(0x159)](),console['log'](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x176))),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x164)]('\x20\x20─'[_0x606d31(0x163)](0x1e)));const _0x13dac4=_0x2428cd[_0x606d31(0x17f)]==='current'?a95_0x1956d5[_0x606d31(0x151)]('✓\x20'+_0x2428cd[_0x606d31(0x17f)]):a95_0x1956d5[_0x606d31(0x175)]('✗\x20'+_0x2428cd['state']);console[_0x606d31(0x159)](_0x606d31(0x142)+_0x13dac4),console['log'](_0x606d31(0x17e)+_0x2428cd[_0x606d31(0x17a)]),console[_0x606d31(0x159)](_0x606d31(0x13c)+(_0x2428cd[_0x606d31(0x150)]||a95_0x1956d5['gray'](_0x606d31(0x188)))),console[_0x606d31(0x159)](_0x606d31(0x158)+(_0x2428cd[_0x606d31(0x13a)]||a95_0x1956d5[_0x606d31(0x164)]('(not\x20found)')));if(_0x2428cd[_0x606d31(0x184)])console[_0x606d31(0x159)](_0x606d31(0x15b)+_0x2428cd[_0x606d31(0x184)]);_0x2428cd[_0x606d31(0x17f)]!==_0x606d31(0x18a)&&console['log'](_0x606d31(0x12d)+_0x2428cd['repairCommand']);console[_0x606d31(0x159)](),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x133))),console[_0x606d31(0x159)](a95_0x1956d5['gray'](_0x606d31(0x13f)[_0x606d31(0x163)](0x1e)));const _0x3fbc4b=getGlobalConfigPath(),_0x4eb657=getProjectConfigPath();console[_0x606d31(0x159)](_0x606d31(0x15f)+(_0x3fbc4b||a95_0x1956d5['gray']('(not\x20found)'))),console[_0x606d31(0x159)](_0x606d31(0x171)+(_0x4eb657||a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x14f)))),console[_0x606d31(0x159)](),console['log'](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x190))),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x164)]('\x20\x20─'[_0x606d31(0x163)](0x1e)));const _0x13f178=(_0xce474a,_0x66bb07)=>{const _0x1b1d3c=_0x606d31;if(!_0x66bb07){console[_0x1b1d3c(0x159)]('\x20\x20'+_0xce474a['padEnd'](0x11)+'\x20'+a95_0x1956d5['gray'](_0x1b1d3c(0x16c)));return;}const _0x443701=inspectCliConfigJsonFile(_0x66bb07);if(_0x443701['status']==='ok')console[_0x1b1d3c(0x159)]('\x20\x20'+_0xce474a['padEnd'](0x11)+'\x20'+a95_0x1956d5[_0x1b1d3c(0x151)](_0x1b1d3c(0x149)));else{if(_0x443701['status']===_0x1b1d3c(0x154))console[_0x1b1d3c(0x159)]('\x20\x20'+_0xce474a[_0x1b1d3c(0x168)](0x11)+'\x20'+a95_0x1956d5[_0x1b1d3c(0x152)](_0x1b1d3c(0x162)));else _0x443701[_0x1b1d3c(0x16f)]===_0x1b1d3c(0x131)?console['log']('\x20\x20'+_0xce474a[_0x1b1d3c(0x168)](0x11)+'\x20'+a95_0x1956d5[_0x1b1d3c(0x164)](_0x1b1d3c(0x194))):(console[_0x1b1d3c(0x159)]('\x20\x20'+_0xce474a[_0x1b1d3c(0x168)](0x11)+'\x20'+a95_0x1956d5[_0x1b1d3c(0x175)](_0x1b1d3c(0x179))),console[_0x1b1d3c(0x159)]('\x20\x20'+''[_0x1b1d3c(0x168)](0x11)+'\x20'+a95_0x1956d5[_0x1b1d3c(0x175)](_0x443701['message'])));}};_0x13f178(_0x606d31(0x144),_0x3fbc4b),_0x13f178(_0x606d31(0x15d),_0x4eb657),console[_0x606d31(0x159)](),console['log'](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x14d))),console['log'](a95_0x1956d5['gray']('\x20\x20─'[_0x606d31(0x163)](0x1e))),console['log']('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbf1e3d[_0x606d31(0x185)]||a95_0x1956d5['red'](_0x606d31(0x17d)))),console['log'](_0x606d31(0x173)+_0xbf1e3d[_0x606d31(0x189)]),console[_0x606d31(0x159)](_0x606d31(0x13d)+_0xbf1e3d['locale']),console[_0x606d31(0x159)](_0x606d31(0x139)+_0xbf1e3d['apiDir']),console['log'](_0x606d31(0x132)+(_0xbf1e3d['defaultApp']||a95_0x1956d5[_0x606d31(0x164)]('(none)'))),console['log'](_0x606d31(0x193)+(_0xbf1e3d[_0x606d31(0x147)]||a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x14a)))),console[_0x606d31(0x159)]('\x20\x20explicitAppName:\x20'+(_0xbf1e3d['explicitAppName']||a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x14a)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbf1e3d[_0x606d31(0x180)]||a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x157)+DEFAULT_CONFIG_VALUES[_0x606d31(0x180)]+')'))),console[_0x606d31(0x159)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xbf1e3d['pageSize']??a95_0x1956d5[_0x606d31(0x164)]('(default)'))),console[_0x606d31(0x159)](_0x606d31(0x13e)+_0xbf1e3d[_0x606d31(0x134)]),console[_0x606d31(0x159)](_0x606d31(0x183)+_0xbf1e3d[_0x606d31(0x14b)]),console[_0x606d31(0x159)](_0x606d31(0x181)+(_0xbf1e3d[_0x606d31(0x17b)]?a95_0x1956d5[_0x606d31(0x151)](_0x606d31(0x172)+_0xbf1e3d['cookie'][_0x606d31(0x141)]+')'):_0x720cff?a95_0x1956d5[_0x606d31(0x151)](_0x606d31(0x170)+_0x720cff['length']+')'):a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x14a))));const _0x599339=Object['keys'](_0xbf1e3d[_0x606d31(0x169)]);if(_0x599339[_0x606d31(0x141)]>0x0){console['log'](),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x18c))),console['log'](a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x13f)['repeat'](0x1e)));for(const _0x55aa6b of _0x599339){const _0x4cb0a5=_0xbf1e3d[_0x606d31(0x169)][_0x55aa6b],_0xaa6c6c=_0x55aa6b===_0xbf1e3d['defaultApp'],_0x2f53ce=_0x55aa6b===_0xbf1e3d['currentApp'],_0x1e6b97=_0x2f53ce?a95_0x1956d5['green'](_0x606d31(0x16a)):'',_0xcb6efa=_0xaa6c6c?_0x606d31(0x192):'';console[_0x606d31(0x159)]('\x20\x20'+_0x55aa6b+_0xcb6efa+_0x1e6b97),console['log'](_0x606d31(0x145)+_0x4cb0a5[_0x606d31(0x146)]);const _0x1843f1=buildAppDoctorFields(_0x4cb0a5,{'env':_0xbf1e3d[_0x606d31(0x189)],'apiDir':_0xbf1e3d[_0x606d31(0x195)][_0x606d31(0x178)]||DEFAULT_CONFIG_VALUES[_0x606d31(0x178)],'cookie':_0xbf1e3d[_0x606d31(0x17b)]||_0x720cff||undefined,'accessKey':_0xbf1e3d[_0x606d31(0x135)]});console[_0x606d31(0x159)](_0x606d31(0x156)+_0x1843f1[_0x606d31(0x189)][_0x606d31(0x161)]+'\x20\x20'+a95_0x1956d5['gray']('('+_0x1843f1[_0x606d31(0x189)][_0x606d31(0x182)]+')')),console[_0x606d31(0x159)](_0x606d31(0x14e)+_0x1843f1[_0x606d31(0x178)][_0x606d31(0x161)]+'\x20\x20'+a95_0x1956d5['gray']('('+_0x1843f1['apiDir']['source']+')'));const _0x54b402=_0x1843f1[_0x606d31(0x17b)][_0x606d31(0x161)]?a95_0x1956d5[_0x606d31(0x151)]('(set,\x20length='+_0x1843f1[_0x606d31(0x17b)][_0x606d31(0x161)]['length']+')'):a95_0x1956d5['gray']('(none)');console[_0x606d31(0x159)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x54b402+'\x20\x20'+a95_0x1956d5[_0x606d31(0x164)]('('+_0x1843f1[_0x606d31(0x17b)][_0x606d31(0x182)]+')'));const _0x41e709=_0x1843f1[_0x606d31(0x135)][_0x606d31(0x161)]?a95_0x1956d5[_0x606d31(0x151)](_0x606d31(0x172)+_0x1843f1[_0x606d31(0x135)]['value']['length']+')'):a95_0x1956d5[_0x606d31(0x164)]('(none)');console[_0x606d31(0x159)](_0x606d31(0x12e)+_0x41e709+'\x20\x20'+a95_0x1956d5[_0x606d31(0x164)]('('+_0x1843f1[_0x606d31(0x135)][_0x606d31(0x182)]+')'));}}console[_0x606d31(0x159)](),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x143))),console['log'](a95_0x1956d5[_0x606d31(0x164)](_0x606d31(0x13f)[_0x606d31(0x163)](0x1e))),console[_0x606d31(0x159)](_0x606d31(0x15a)+getApiDomain()),console[_0x606d31(0x159)](_0x606d31(0x12f)+getUserDomain()),console[_0x606d31(0x159)](_0x606d31(0x130)+getRuntimeDomain()),console['log'](),console[_0x606d31(0x159)](a95_0x1956d5[_0x606d31(0x16b)](_0x606d31(0x18d))),console[_0x606d31(0x159)](a95_0x1956d5['gray'](_0x606d31(0x13f)[_0x606d31(0x163)](0x1e)));if(_0x720cff){const _0x5eb458=await getIsSessionValid();console['log'](_0x606d31(0x187)+(_0x5eb458?a95_0x1956d5[_0x606d31(0x151)]('✓\x20Valid'):a95_0x1956d5['red'](_0x606d31(0x15c))));}else console['log'](_0x606d31(0x187)+a95_0x1956d5['red'](_0x606d31(0x167)));return console[_0x606d31(0x159)](),{'ok':!![]};}function a95_0x21b1(_0x482b71,_0x567531){_0x482b71=_0x482b71-0x12d;const _0x124fbe=a95_0x124f();let _0x21b1e0=_0x124fbe[_0x482b71];return _0x21b1e0;}export const doctorDefinition={'service':a95_0x80492c(0x186),'command':'check','description':a95_0x80492c(0x136),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a95_0x41d0(_0x4686f3,_0x260472){_0x4686f3=_0x4686f3-0xbd;const _0x2627a4=a95_0x2627();let _0x41d0bf=_0x2627a4[_0x4686f3];return _0x41d0bf;}const a95_0x19fbbc=a95_0x41d0;(function(_0x5bd41d,_0x219217){const _0x4008a9=a95_0x41d0,_0x4bb5d0=_0x5bd41d();while(!![]){try{const _0x2ff4a2=parseInt(_0x4008a9(0xdd))/0x1+-parseInt(_0x4008a9(0xc4))/0x2*(parseInt(_0x4008a9(0xcf))/0x3)+parseInt(_0x4008a9(0xcd))/0x4+-parseInt(_0x4008a9(0xc3))/0x5*(parseInt(_0x4008a9(0xe0))/0x6)+-parseInt(_0x4008a9(0xc5))/0x7*(parseInt(_0x4008a9(0xc1))/0x8)+-parseInt(_0x4008a9(0xdc))/0x9*(-parseInt(_0x4008a9(0xc9))/0xa)+parseInt(_0x4008a9(0xd1))/0xb;if(_0x2ff4a2===_0x219217)break;else _0x4bb5d0['push'](_0x4bb5d0['shift']());}catch(_0x581854){_0x4bb5d0['push'](_0x4bb5d0['shift']());}}}(a95_0x2627,0x74c1b));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':a95_0x19fbbc(0xbf),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a95_0x19fbbc(0xd7),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a95_0x19fbbc(0xd3),'description':a95_0x19fbbc(0xce)},LONG_TERM_FLAG={'name':a95_0x19fbbc(0xd9),'type':'boolean','description':a95_0x19fbbc(0xda)};function a95_0x2627(){const _0x3ba319=['\x20to\x20development\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','20ZluDhR','filePath\x20is\x20required.','str','File','2694840GPjkhh','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','45jrzmEv','download','16791302EYTyoP','filePath','boolean','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','appCode','string','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','long-term','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','bool','40410SuVnvd','409903cEDuMh','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','POST','6rhTtPg','path','Preview:\x20upload\x20','/smartapi/common/uploadFile','file','trim','35872ZNrKCu','filepath','4177975WmqALS','51470uMMSNx','1435BsENeo','Uploaded\x20file:\x20'];a95_0x2627=function(){return _0x3ba319;};return a95_0x2627();}function requireFilePath(_0x231c0c){const _0x1d3398=a95_0x19fbbc,_0x3da3c2=_0x231c0c[_0x1d3398(0xc0)]();if(!_0x3da3c2)throw CliErrors['validation'](_0x1d3398(0xca));return _0x3da3c2;}const fileUpload={'service':a95_0x19fbbc(0xbf),'command':'upload','description':a95_0x19fbbc(0xde),'risk':'read','flags':[FILE_FLAG],async 'dryRun'(_0x3420bd){const _0x3eab82=a95_0x19fbbc,_0x353eb5=requireDevelopmentUploadFile(_0x3420bd['str'](_0x3eab82(0xbf)),_0x3eab82(0xcc));return{'method':_0x3eab82(0xdf),'url':_0x3eab82(0xbe),'body':{'appCode':_0x3420bd[_0x3eab82(0xd6)],'multipart':{'file':_0x353eb5}},'description':_0x3eab82(0xbd)+_0x353eb5[_0x3eab82(0xe1)]+_0x3eab82(0xc7)+_0x3420bd[_0x3eab82(0xd6)]};},async 'execute'(_0x5cc94f){const _0xe379c2=a95_0x19fbbc,_0x35281f=requireDevelopmentUploadFile(_0x5cc94f[_0xe379c2(0xcb)](_0xe379c2(0xbf)),'File'),_0x1a1f34=await uploadDevelopmentFile(_0x5cc94f[_0xe379c2(0xd6)],_0x35281f['path']);return{'ok':!![],'data':_0x1a1f34,'message':_0x1a1f34[_0xe379c2(0xd2)]?_0xe379c2(0xc6)+_0x1a1f34[_0xe379c2(0xd2)]+_0xe379c2(0xc8):_0xe379c2(0xd4)};}},fileQueryUrl={'service':a95_0x19fbbc(0xbf),'command':'query-url','description':a95_0x19fbbc(0xd8),'risk':a95_0x19fbbc(0xd5),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x32953f){const _0x5d677c=a95_0x19fbbc,_0x3bf6e4=requireFilePath(_0x32953f[_0x5d677c(0xcb)](_0x5d677c(0xc2))),_0x121463=await queryDevelopmentFileUrl(_0x3bf6e4,{'download':_0x32953f[_0x5d677c(0xdb)](_0x5d677c(0xd0)),'longTerm':_0x32953f['bool'](_0x5d677c(0xd9))});return{'ok':!![],'data':_0x121463};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a96_0x186325=a96_0x3cba;function a96_0x3cba(_0x561c6f,_0x246534){_0x561c6f=_0x561c6f-0x98;const _0x59a100=a96_0x59a1();let _0x3cbab0=_0x59a100[_0x561c6f];return _0x3cbab0;}(function(_0x5bdac1,_0x168fde){const _0x12bfda=a96_0x3cba,_0x429ae8=_0x5bdac1();while(!![]){try{const _0x3ba823=parseInt(_0x12bfda(0xb5))/0x1*(-parseInt(_0x12bfda(0x9e))/0x2)+-parseInt(_0x12bfda(0xb0))/0x3+-parseInt(_0x12bfda(0xa0))/0x4*(parseInt(_0x12bfda(0xa2))/0x5)+-parseInt(_0x12bfda(0xad))/0x6+-parseInt(_0x12bfda(0xa8))/0x7+parseInt(_0x12bfda(0xa4))/0x8+parseInt(_0x12bfda(0xae))/0x9*(parseInt(_0x12bfda(0xb2))/0xa);if(_0x3ba823===_0x168fde)break;else _0x429ae8['push'](_0x429ae8['shift']());}catch(_0x1f4b76){_0x429ae8['push'](_0x429ae8['shift']());}}}(a96_0x59a1,0x54a0a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';function a96_0x59a1(){const _0x1c7d68=['path','query-url','/smartapi/common/uploadFile','3595656YYTVfR','18682929bsjdbs','bool','2049828BgChRU','filepath','10frRZyC','str','read','80209ajXdhD','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','appCode','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','File','Uploaded\x20file:\x20','POST','string','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','long-term','trim','boolean','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','10ZMqNYM','Preview:\x20upload\x20','1012ZKobqL','download','8585yzfQoj','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','5413416HldNLK','\x20to\x20development\x20app\x20','file','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','2015482wtRyWT','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a96_0x59a1=function(){return _0x1c7d68;};return a96_0x59a1();}import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a96_0x186325(0xa6),'type':a96_0x186325(0x98),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a96_0x186325(0xb1),'type':'string','required':!![],'description':a96_0x186325(0xb6)},DOWNLOAD_FLAG={'name':a96_0x186325(0xa1),'type':a96_0x186325(0x9c),'description':a96_0x186325(0xa7)},LONG_TERM_FLAG={'name':a96_0x186325(0x9a),'type':a96_0x186325(0x9c),'description':a96_0x186325(0x99)};function requireFilePath(_0xb0c888){const _0x11b0c8=a96_0x186325,_0x5fccb0=_0xb0c888[_0x11b0c8(0x9b)]();if(!_0x5fccb0)throw CliErrors['validation']('filePath\x20is\x20required.');return _0x5fccb0;}const fileUpload={'service':a96_0x186325(0xa6),'command':'upload','description':a96_0x186325(0xa3),'risk':a96_0x186325(0xb4),'flags':[FILE_FLAG],async 'dryRun'(_0xc79f58){const _0x3be5b7=a96_0x186325,_0x271636=requireDevelopmentUploadFile(_0xc79f58[_0x3be5b7(0xb3)](_0x3be5b7(0xa6)),'File');return{'method':_0x3be5b7(0xbb),'url':_0x3be5b7(0xac),'body':{'appCode':_0xc79f58[_0x3be5b7(0xb7)],'multipart':{'file':_0x271636}},'description':_0x3be5b7(0x9f)+_0x271636[_0x3be5b7(0xaa)]+_0x3be5b7(0xa5)+_0xc79f58[_0x3be5b7(0xb7)]};},async 'execute'(_0x36fa7a){const _0xdf46e6=a96_0x186325,_0x9001a4=requireDevelopmentUploadFile(_0x36fa7a[_0xdf46e6(0xb3)](_0xdf46e6(0xa6)),_0xdf46e6(0xb9)),_0x817eb4=await uploadDevelopmentFile(_0x36fa7a[_0xdf46e6(0xb7)],_0x9001a4['path']);return{'ok':!![],'data':_0x817eb4,'message':_0x817eb4['filePath']?_0xdf46e6(0xba)+_0x817eb4['filePath']+_0xdf46e6(0xa9):_0xdf46e6(0xb8)};}},fileQueryUrl={'service':a96_0x186325(0xa6),'command':a96_0x186325(0xab),'description':a96_0x186325(0x9d),'risk':a96_0x186325(0xb4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x592826){const _0x26e55d=a96_0x186325,_0x2c4346=requireFilePath(_0x592826[_0x26e55d(0xb3)](_0x26e55d(0xb1))),_0x4757a9=await queryDevelopmentFileUrl(_0x2c4346,{'download':_0x592826[_0x26e55d(0xaf)](_0x26e55d(0xa1)),'longTerm':_0x592826[_0x26e55d(0xaf)]('long-term')});return{'ok':!![],'data':_0x4757a9};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a96_0xf06580=a96_0x5daa;function a96_0x5daa(_0x2d78c7,_0x1164c0){_0x2d78c7=_0x2d78c7-0x1e9;const _0x2c3766=a96_0x2c37();let _0x5daaf8=_0x2c3766[_0x2d78c7];return _0x5daaf8;}(function(_0x117d1b,_0x5117aa){const _0x5c2253=a96_0x5daa,_0x1a3f22=_0x117d1b();while(!![]){try{const _0x525d49=-parseInt(_0x5c2253(0x1f4))/0x1*(parseInt(_0x5c2253(0x209))/0x2)+parseInt(_0x5c2253(0x1e9))/0x3*(parseInt(_0x5c2253(0x1fc))/0x4)+parseInt(_0x5c2253(0x1f1))/0x5+-parseInt(_0x5c2253(0x20f))/0x6+-parseInt(_0x5c2253(0x203))/0x7+parseInt(_0x5c2253(0x204))/0x8+parseInt(_0x5c2253(0x1f9))/0x9;if(_0x525d49===_0x5117aa)break;else _0x1a3f22['push'](_0x1a3f22['shift']());}catch(_0x2717f4){_0x1a3f22['push'](_0x1a3f22['shift']());}}}(a96_0x2c37,0xe183c));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';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(_0x285e90){return{'appCode':_0x285e90,'appName':_0x285e90};}function a96_0x2c37(){const _0xa95195=['2870616aXFglx','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','custom','\x20\x20Config:\x20','appCode','defaultApp','\x20\x20Apps:\x20','\x20config','606867SHBsmv','Usage:\x20','log','boolean','bool','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','yes','2571995xEUxdK','join','run','1274267vSdNMY','production','App\x20code\x20to\x20initialize\x20with','env','write','26404758nUtBUI','global','init','12JbAqGK','some','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appcode','\x0a✓\x20Successfully\x20initialized\x20','Target\x20environment','检测到旧配置文件,正在自动升级...\x0a','12071773GQlIGQ','2766576hcIpHm','\x20\x20Default:\x20','map','string','str','2ulqzUY','validation','nonInteractive','cwd','project','\x20\x20Env:\x20'];a96_0x2c37=function(){return _0xa95195;};return a96_0x2c37();}function writeInitConfig(_0x32ad06,_0xc9f935,_0x42fb26){const _0x325699=a96_0x5daa,_0x14b280=resolveWriteConfigPath(_0x32ad06),_0x10278e=buildCanonicalProjectConfig({},{'appCodes':_0xc9f935[_0x325699(0x206)](_0x7aa05c=>_0x7aa05c[_0x325699(0x213)]),'env':_0x42fb26,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x14b280,_0x10278e);const _0x4cda6a=_0x32ad06==='global'?_0x325699(0x1fa):_0x325699(0x20d);console[_0x325699(0x1eb)](_0x325699(0x200)+_0x4cda6a+_0x325699(0x216)),console[_0x325699(0x1eb)](_0x325699(0x215)+_0xc9f935['map'](_0x3243d9=>_0x3243d9[_0x325699(0x213)])[_0x325699(0x1f2)](',\x20')),console[_0x325699(0x1eb)](_0x325699(0x205)+_0x10278e[_0x325699(0x214)]),console[_0x325699(0x1eb)](_0x325699(0x20e)+_0x10278e[_0x325699(0x1f7)]),console[_0x325699(0x1eb)](_0x325699(0x212)+_0x14b280);}async function runSmartInit(_0x5cf598){const _0x17ec3b=a96_0x5daa,_0x5b47a7=process[_0x17ec3b(0x20c)](),_0x20215c=_0x5cf598[_0x17ec3b(0x1ed)](_0x17ec3b(0x1fa))?_0x17ec3b(0x1fa):_0x17ec3b(0x20d),_0xd746a=_0x5cf598[_0x17ec3b(0x208)]('env')||_0x17ec3b(0x1f5),_0x4a8fd8=_0x5cf598[_0x17ec3b(0x208)](_0x17ec3b(0x1ff))||undefined;if(_0x20215c===_0x17ec3b(0x20d)){const _0x358222=existsSync(resolve(_0x5b47a7,NEW_CONFIG_NAME)),_0x3b0a89=LEGACY_CONFIG_NAMES[_0x17ec3b(0x1fd)](_0x121f70=>existsSync(resolve(_0x5b47a7,_0x121f70)));if(_0x3b0a89&&!_0x358222)return console['log'](_0x17ec3b(0x202)),upgradeApp(_0x5cf598[_0x17ec3b(0x20b)],{'yes':_0x5cf598[_0x17ec3b(0x1ed)]('yes')});if(_0x358222)throw CliErrors[_0x17ec3b(0x20a)](_0x17ec3b(0x210),'Use\x20`'+CLI_BIN_NAME+_0x17ec3b(0x1fe));}if(_0x4a8fd8){const _0x180dbf=validateAppcode(_0x4a8fd8);if(!_0x180dbf['valid'])throw CliErrors[_0x17ec3b(0x20a)](_0x180dbf['message']);writeInitConfig(_0x20215c,[syntheticApp(_0x4a8fd8)],_0xd746a);return;}if(_0x5cf598[_0x17ec3b(0x20b)])throw CliErrors['flagMissing'](_0x17ec3b(0x1ff),_0x17ec3b(0x1ea)+CLI_BIN_NAME+_0x17ec3b(0x1ee));const _0x18cc70=getCookie(),_0x14557c=await selectMultipleApps(_0x18cc70),_0x1be403=_0x14557c===_0x17ec3b(0x211)?[syntheticApp(await promptCustomAppcode())]:_0x14557c;writeInitConfig(_0x20215c,_0x1be403,_0xd746a);}const initFlags=[{'name':a96_0xf06580(0x1fa),'type':a96_0xf06580(0x1ec),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':'env','type':a96_0xf06580(0x207),'description':a96_0xf06580(0x201),'default':a96_0xf06580(0x1f5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a96_0xf06580(0x1ff),'type':a96_0xf06580(0x207),'description':a96_0xf06580(0x1f6)},{'name':a96_0xf06580(0x1f0),'type':a96_0xf06580(0x1ec),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a96_0xf06580(0x1fb),'command':a96_0xf06580(0x1f3),'description':a96_0xf06580(0x1ef),'risk':a96_0xf06580(0x1f8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4d7fa3){return await runSmartInit(_0x4d7fa3),{'ok':!![]};}}];
1
+ const a97_0x1bf9c9=a97_0x184d;(function(_0x1beaad,_0x8ab85f){const _0x1c6621=a97_0x184d,_0x671d04=_0x1beaad();while(!![]){try{const _0x8d6969=-parseInt(_0x1c6621(0xa5))/0x1+parseInt(_0x1c6621(0xa8))/0x2*(-parseInt(_0x1c6621(0xb7))/0x3)+parseInt(_0x1c6621(0xae))/0x4+parseInt(_0x1c6621(0x9b))/0x5+parseInt(_0x1c6621(0xb5))/0x6*(-parseInt(_0x1c6621(0xa7))/0x7)+parseInt(_0x1c6621(0xa9))/0x8*(parseInt(_0x1c6621(0x98))/0x9)+parseInt(_0x1c6621(0x9d))/0xa;if(_0x8d6969===_0x8ab85f)break;else _0x671d04['push'](_0x671d04['shift']());}catch(_0x2ff052){_0x671d04['push'](_0x671d04['shift']());}}}(a97_0x214b,0xe80e7));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';import{CLI_BIN_NAME}from'../../constant/cli.js';function a97_0x184d(_0x53ad4c,_0x5ebaf7){_0x53ad4c=_0x53ad4c-0x95;const _0x214b61=a97_0x214b();let _0x184d91=_0x214b61[_0x53ad4c];return _0x184d91;}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(_0x9dfdeb){return{'appCode':_0x9dfdeb,'appName':_0x9dfdeb};}function writeInitConfig(_0x47383a,_0x2ece23,_0x224a30){const _0x11d061=a97_0x184d,_0x316e9b=resolveWriteConfigPath(_0x47383a),_0x5a8bab=buildCanonicalProjectConfig({},{'appCodes':_0x2ece23[_0x11d061(0x9a)](_0x11cd8c=>_0x11cd8c[_0x11d061(0xac)]),'env':_0x224a30,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x316e9b,_0x5a8bab);const _0x4e7905=_0x47383a===_0x11d061(0xb1)?_0x11d061(0xb1):_0x11d061(0xa3);console[_0x11d061(0xb9)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x4e7905+_0x11d061(0xaa)),console[_0x11d061(0xb9)](_0x11d061(0xbe)+_0x2ece23[_0x11d061(0x9a)](_0x508850=>_0x508850[_0x11d061(0xac)])[_0x11d061(0x96)](',\x20')),console[_0x11d061(0xb9)](_0x11d061(0xbc)+_0x5a8bab[_0x11d061(0x99)]),console[_0x11d061(0xb9)](_0x11d061(0xb2)+_0x5a8bab[_0x11d061(0xb3)]),console[_0x11d061(0xb9)](_0x11d061(0xc0)+_0x316e9b);}async function runSmartInit(_0x31351a){const _0x316653=a97_0x184d,_0x359fd6=process['cwd'](),_0x3c1efd=_0x31351a[_0x316653(0x97)](_0x316653(0xb1))?_0x316653(0xb1):'project',_0x410d0f=_0x31351a[_0x316653(0xa4)](_0x316653(0xb3))||_0x316653(0xc3),_0x52e598=_0x31351a[_0x316653(0xa4)](_0x316653(0xb4))||undefined;if(_0x3c1efd==='project'){const _0x246cba=existsSync(resolve(_0x359fd6,NEW_CONFIG_NAME)),_0x99ebb9=LEGACY_CONFIG_NAMES[_0x316653(0xbf)](_0x16b27d=>existsSync(resolve(_0x359fd6,_0x16b27d)));if(_0x99ebb9&&!_0x246cba)return console[_0x316653(0xb9)](_0x316653(0x9f)),upgradeApp(_0x31351a[_0x316653(0xb0)],{'yes':_0x31351a[_0x316653(0x97)](_0x316653(0xaf))});if(_0x246cba)throw CliErrors[_0x316653(0xc1)](_0x316653(0x9e),'Use\x20`'+CLI_BIN_NAME+_0x316653(0xbb));}if(_0x52e598){const _0x359c03=validateAppcode(_0x52e598);if(!_0x359c03[_0x316653(0xa0)])throw CliErrors['validation'](_0x359c03['message']);writeInitConfig(_0x3c1efd,[syntheticApp(_0x52e598)],_0x410d0f);return;}if(_0x31351a[_0x316653(0xb0)])throw CliErrors[_0x316653(0xa2)](_0x316653(0xb4),_0x316653(0xad)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x3f2c85=getCookie(),_0x5f1c16=await selectMultipleApps(_0x3f2c85),_0x1be5a2=_0x5f1c16===_0x316653(0xb8)?[syntheticApp(await promptCustomAppcode())]:_0x5f1c16;writeInitConfig(_0x3c1efd,_0x1be5a2,_0x410d0f);}function a97_0x214b(){const _0x41b851=['9104334TtOycQ','string','14139xZYYal','custom','log','Target\x20environment','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20\x20Default:\x20','run','\x20\x20Apps:\x20','some','\x20\x20Config:\x20','validation','Auto-confirm\x20prompts','production','write','join','bool','214533rbYLxD','defaultApp','map','4068785RgjShr','init','4122530yOjuqg','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','检测到旧配置文件,正在自动升级...\x0a','valid','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','flagMissing','project','str','228800DUaScS','App\x20code\x20to\x20initialize\x20with','7sjBcZS','74ZHcInh','488QzWoAj','\x20config','boolean','appCode','Usage:\x20','764024kZuiJE','yes','nonInteractive','global','\x20\x20Env:\x20','env','appcode'];a97_0x214b=function(){return _0x41b851;};return a97_0x214b();}const initFlags=[{'name':a97_0x1bf9c9(0xb1),'type':a97_0x1bf9c9(0xab),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a97_0x1bf9c9(0xb3),'type':a97_0x1bf9c9(0xb6),'description':a97_0x1bf9c9(0xba),'default':a97_0x1bf9c9(0xc3),'enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x1bf9c9(0xb4),'type':a97_0x1bf9c9(0xb6),'description':a97_0x1bf9c9(0xa6)},{'name':a97_0x1bf9c9(0xaf),'type':a97_0x1bf9c9(0xab),'description':a97_0x1bf9c9(0xc2),'default':![]}];export const initDefinitions=[{'service':a97_0x1bf9c9(0x9c),'command':a97_0x1bf9c9(0xbd),'description':a97_0x1bf9c9(0xa1),'risk':a97_0x1bf9c9(0x95),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2c6e00){return await runSmartInit(_0x2c6e00),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x13490d,_0x1bc015){const _0x5a279d=a97_0xc3eb,_0x3fa300=_0x13490d();while(!![]){try{const _0x4eada1=parseInt(_0x5a279d(0x1d2))/0x1+-parseInt(_0x5a279d(0x1ce))/0x2+-parseInt(_0x5a279d(0x1d1))/0x3*(-parseInt(_0x5a279d(0x1cc))/0x4)+-parseInt(_0x5a279d(0x1d3))/0x5+parseInt(_0x5a279d(0x1cb))/0x6*(-parseInt(_0x5a279d(0x1cd))/0x7)+parseInt(_0x5a279d(0x1d5))/0x8*(-parseInt(_0x5a279d(0x1d0))/0x9)+parseInt(_0x5a279d(0x1cf))/0xa*(parseInt(_0x5a279d(0x1d4))/0xb);if(_0x4eada1===_0x1bc015)break;else _0x3fa300['push'](_0x3fa300['shift']());}catch(_0xbcf4bc){_0x3fa300['push'](_0x3fa300['shift']());}}}(a97_0x11db,0x3737d));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a97_0xc3eb(_0x4690f7,_0x51b18e){_0x4690f7=_0x4690f7-0x1cb;const _0x11db83=a97_0x11db();let _0xc3eb4d=_0x11db83[_0x4690f7];return _0xc3eb4d;}function a97_0x11db(){const _0x4fdb56=['23274EmLGkO','3xgDdFX','20861qMSetX','1674245kEgOWJ','66mNGXSx','496TzzFEj','824490kidrOi','1037732JzbIvb','14wGvJZR','534552DCZCvz','1638610unfhKW'];a97_0x11db=function(){return _0x4fdb56;};return a97_0x11db();}
1
+ (function(_0x205bd9,_0x29c67e){const _0x48137e=a98_0x11c6,_0xce3597=_0x205bd9();while(!![]){try{const _0x5200c7=-parseInt(_0x48137e(0xdd))/0x1+parseInt(_0x48137e(0xdc))/0x2+parseInt(_0x48137e(0xd9))/0x3+parseInt(_0x48137e(0xd6))/0x4*(parseInt(_0x48137e(0xd3))/0x5)+-parseInt(_0x48137e(0xd8))/0x6*(-parseInt(_0x48137e(0xda))/0x7)+parseInt(_0x48137e(0xdb))/0x8*(-parseInt(_0x48137e(0xd5))/0x9)+-parseInt(_0x48137e(0xd7))/0xa*(parseInt(_0x48137e(0xd4))/0xb);if(_0x5200c7===_0x29c67e)break;else _0xce3597['push'](_0xce3597['shift']());}catch(_0x50c5b6){_0xce3597['push'](_0xce3597['shift']());}}}(a98_0x3e9e,0x9711e));function a98_0x3e9e(){const _0x56100b=['336388tkTPNA','170GeRSbc','1661EEvXek','387YmlOUx','55040cePxEy','144940ZFdTUz','5160FFvMSL','3615111LrKjJP','8463AZIQDy','80776HlhWeM','1730636xecOMw'];a98_0x3e9e=function(){return _0x56100b;};return a98_0x3e9e();}import{issueReport}from'../../commands/issue/report.js';function a98_0x11c6(_0x32b1e9,_0x1f7dc4){_0x32b1e9=_0x32b1e9-0xd3;const _0x3e9ed9=a98_0x3e9e();let _0x11c6ea=_0x3e9ed9[_0x32b1e9];return _0x11c6ea;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a98_0x5e8035=a98_0x3194;(function(_0x10f430,_0x30d4c8){const _0x269710=a98_0x3194,_0x28ee33=_0x10f430();while(!![]){try{const _0x257ae0=parseInt(_0x269710(0x114))/0x1+-parseInt(_0x269710(0x122))/0x2*(parseInt(_0x269710(0x111))/0x3)+-parseInt(_0x269710(0x112))/0x4*(parseInt(_0x269710(0x110))/0x5)+-parseInt(_0x269710(0x11f))/0x6+parseInt(_0x269710(0x113))/0x7*(-parseInt(_0x269710(0x11d))/0x8)+parseInt(_0x269710(0x117))/0x9+parseInt(_0x269710(0x123))/0xa*(parseInt(_0x269710(0x11e))/0xb);if(_0x257ae0===_0x30d4c8)break;else _0x28ee33['push'](_0x28ee33['shift']());}catch(_0x35fc61){_0x28ee33['push'](_0x28ee33['shift']());}}}(a98_0x5ebc,0x8c90f));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a98_0x5e8035(0x120);function a98_0x3194(_0x3f035b,_0x10005b){_0x3f035b=_0x3f035b-0x101;const _0x5ebc33=a98_0x5ebc();let _0x319420=_0x5ebc33[_0x3f035b];return _0x319420;}const NUDGE_SUPPRESSED_CODES=new Set([a98_0x5e8035(0x119),a98_0x5e8035(0x106),'config_missing',a98_0x5e8035(0x10a),a98_0x5e8035(0x11a),a98_0x5e8035(0x108),a98_0x5e8035(0x105),a98_0x5e8035(0x10c)]),defaultWriter=_0x3a4999=>{const _0x10f250=a98_0x5e8035;process[_0x10f250(0x121)][_0x10f250(0x101)](_0x3a4999);};export function shouldNudgeForError(_0x499185,_0x27b1c2){const _0x120597=a98_0x5e8035;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x27b1c2['service']==='issue'&&_0x27b1c2[_0x120597(0x10d)]===_0x120597(0x102))return![];if(_0x499185 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x120597(0x103)](_0x499185['code']);return!![];}export function printIssueReportNudgeForError(_0x4389be,_0x5be47b,_0x56c5ff=defaultWriter){if(!shouldNudgeForError(_0x4389be,_0x5be47b))return;const _0x3f395f=buildSuggestedTitle(_0x4389be,_0x5be47b);_0x56c5ff(formatNudge(_0x3f395f));}function buildSuggestedTitle(_0x58f4b1,_0x39d95){const _0x27d02b=a98_0x5e8035,_0x51f554=_0x58f4b1 instanceof Error?_0x58f4b1['message']:String(_0x58f4b1),_0x11950d=_0x51f554[_0x27d02b(0x109)](/[\r\n]+/g,'\x20')[_0x27d02b(0x109)](/\s+/g,'\x20')[_0x27d02b(0x115)]()[_0x27d02b(0x11b)](0x0,0x78)[_0x27d02b(0x109)](/"/g,'\x5c\x22'),_0x2f2c21=CLI_BIN_NAME+'\x20'+_0x39d95[_0x27d02b(0x118)]+'\x20'+_0x39d95[_0x27d02b(0x10d)];return _0x11950d[_0x27d02b(0x104)]>0x0?_0x2f2c21+':\x20'+_0x11950d:_0x2f2c21;}function a98_0x5ebc(){const _0x285dcc=['join','flag_missing','replace','not_in_project','\x20\x20Set\x20','network_error','command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20\x20\x20--title\x20\x22','5WxiNJo','3mVlkLP','2587884BQuOhe','683669PUQTwW','1077838CIBhnk','trim','\x20issue\x20report\x20\x5c','1591371YdYVdH','service','cancelled','unknown_command','slice','Hit\x20a\x20','88ANtyiw','474760qJeEam','2668674ZDiobH','RABETBASE_DISABLE_ISSUE_NUDGE','stderr','2032182ADijIL','580zIgyVS','write','report','has','length','validation_error','auth_required'];a98_0x5ebc=function(){return _0x285dcc;};return a98_0x5ebc();}function formatNudge(_0x2efd54){const _0x5f2509=a98_0x5e8035;return['',_0x5f2509(0x11c)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5f2509(0x116),_0x5f2509(0x10f)+_0x2efd54+'\x22\x20\x5c',_0x5f2509(0x10e),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x5f2509(0x10b)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x5f2509(0x107)]('\x0a');}
1
+ const a99_0x4815c6=a99_0x1514;function a99_0x1514(_0x3ee7ab,_0x46caf9){_0x3ee7ab=_0x3ee7ab-0x7a;const _0xa0734c=a99_0xa073();let _0x1514c6=_0xa0734c[_0x3ee7ab];return _0x1514c6;}(function(_0x4f4f51,_0x277d5c){const _0x4f241b=a99_0x1514,_0x42b005=_0x4f4f51();while(!![]){try{const _0x4357a4=-parseInt(_0x4f241b(0x91))/0x1*(parseInt(_0x4f241b(0x86))/0x2)+parseInt(_0x4f241b(0x7f))/0x3*(-parseInt(_0x4f241b(0x9b))/0x4)+-parseInt(_0x4f241b(0x94))/0x5+-parseInt(_0x4f241b(0x96))/0x6*(parseInt(_0x4f241b(0x84))/0x7)+parseInt(_0x4f241b(0x8a))/0x8*(parseInt(_0x4f241b(0x92))/0x9)+-parseInt(_0x4f241b(0x7a))/0xa*(parseInt(_0x4f241b(0x8f))/0xb)+parseInt(_0x4f241b(0x90))/0xc;if(_0x4357a4===_0x277d5c)break;else _0x42b005['push'](_0x42b005['shift']());}catch(_0x29c648){_0x42b005['push'](_0x42b005['shift']());}}}(a99_0xa073,0xde4fb));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a99_0x4815c6(0x95);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x4815c6(0x8d),'auth_required','config_missing',a99_0x4815c6(0x99),'unknown_command',a99_0x4815c6(0x97),a99_0x4815c6(0x7d),a99_0x4815c6(0x82)]),defaultWriter=_0x384700=>{const _0x5de0c1=a99_0x4815c6;process[_0x5de0c1(0x98)][_0x5de0c1(0x8e)](_0x384700);};export function shouldNudgeForError(_0x5328cc,_0x24ca2e){const _0x2ba0c2=a99_0x4815c6;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x24ca2e[_0x2ba0c2(0x89)]===_0x2ba0c2(0x93)&&_0x24ca2e[_0x2ba0c2(0x7e)]===_0x2ba0c2(0x9a))return![];if(_0x5328cc instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x5328cc[_0x2ba0c2(0x87)]);return!![];}export function printIssueReportNudgeForError(_0x4f2223,_0x437b27,_0x56f5b7=defaultWriter){if(!shouldNudgeForError(_0x4f2223,_0x437b27))return;const _0x2ffe82=buildSuggestedTitle(_0x4f2223,_0x437b27);_0x56f5b7(formatNudge(_0x2ffe82));}function buildSuggestedTitle(_0x4877e9,_0x1e7430){const _0x1d10d9=a99_0x4815c6,_0x35098c=_0x4877e9 instanceof Error?_0x4877e9[_0x1d10d9(0x8c)]:String(_0x4877e9),_0x121792=_0x35098c[_0x1d10d9(0x7c)](/[\r\n]+/g,'\x20')[_0x1d10d9(0x7c)](/\s+/g,'\x20')['trim']()[_0x1d10d9(0x80)](0x0,0x78)[_0x1d10d9(0x7c)](/"/g,'\x5c\x22'),_0x38d78a=CLI_BIN_NAME+'\x20'+_0x1e7430[_0x1d10d9(0x89)]+'\x20'+_0x1e7430[_0x1d10d9(0x7e)];return _0x121792['length']>0x0?_0x38d78a+':\x20'+_0x121792:_0x38d78a;}function formatNudge(_0x5b4fc6){const _0x382db6=a99_0x4815c6;return['',_0x382db6(0x83)+CLI_BIN_NAME+_0x382db6(0x81),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x382db6(0x88)+_0x5b4fc6+'\x22\x20\x5c',_0x382db6(0x8b),_0x382db6(0x9c),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x382db6(0x7b),''][_0x382db6(0x85)]('\x0a');}function a99_0xa073(){const _0x436b09=['slice','\x20bug?\x20Help\x20us\x20fix\x20it:','network_error','Hit\x20a\x20','3080iySGtx','join','1867522SOgTQG','code','\x20\x20\x20\x20--title\x20\x22','service','3475112NATArl','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','message','cancelled','write','40711nUXvlM','78205296tfiPtU','1rCXgzP','9HgAHil','issue','6338460toDzOO','RABETBASE_DISABLE_ISSUE_NUDGE','24576xbdlIb','flag_missing','stderr','not_in_project','report','5291696jOxACp','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1930svfjmm','=1\x20to\x20silence\x20this\x20hint.','replace','validation_error','command','3OTwgPL'];a99_0xa073=function(){return _0x436b09;};return a99_0xa073();}
@@ -1 +1 @@
1
- const a99_0x498d12=a99_0x1115;(function(_0x402fad,_0x4950b3){const _0x514d4c=a99_0x1115,_0x18a734=_0x402fad();while(!![]){try{const _0x57fb70=-parseInt(_0x514d4c(0x1a4))/0x1*(-parseInt(_0x514d4c(0x18d))/0x2)+-parseInt(_0x514d4c(0x1a8))/0x3*(parseInt(_0x514d4c(0x19b))/0x4)+parseInt(_0x514d4c(0x17d))/0x5+parseInt(_0x514d4c(0x18c))/0x6+-parseInt(_0x514d4c(0x1a3))/0x7*(-parseInt(_0x514d4c(0x194))/0x8)+-parseInt(_0x514d4c(0x196))/0x9*(parseInt(_0x514d4c(0x179))/0xa)+-parseInt(_0x514d4c(0x199))/0xb;if(_0x57fb70===_0x4950b3)break;else _0x18a734['push'](_0x18a734['shift']());}catch(_0x5f2958){_0x18a734['push'](_0x18a734['shift']());}}}(a99_0x215e,0xbb7e2));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a99_0x498d12(0x195);function a99_0x1115(_0x53cfab,_0x76125){_0x53cfab=_0x53cfab-0x176;const _0x215eb3=a99_0x215e();let _0x1115d5=_0x215eb3[_0x53cfab];return _0x1115d5;}export const issueReport={'service':a99_0x498d12(0x176),'command':'report','description':a99_0x498d12(0x184),'risk':a99_0x498d12(0x17c),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a99_0x498d12(0x18a),'flags':[{'name':a99_0x498d12(0x193),'type':a99_0x498d12(0x181),'required':!![],'description':a99_0x498d12(0x19a)},{'name':'description','type':a99_0x498d12(0x181),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a99_0x498d12(0x181),'description':a99_0x498d12(0x19c)}],async 'validate'(_0x39640f){const _0x11d409=a99_0x498d12,_0x2c313a=_0x39640f[_0x11d409(0x19f)]('title')[_0x11d409(0x198)](),_0x18233e=_0x39640f[_0x11d409(0x19f)](_0x11d409(0x182))['trim'](),_0x7a5814=_0x39640f[_0x11d409(0x19f)](DESCRIPTION_FILE_FLAG)[_0x11d409(0x198)]();if(!_0x2c313a)throw CliErrors[_0x11d409(0x188)](_0x11d409(0x193),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x443de4=_0x18233e[_0x11d409(0x185)]>0x0,_0x3b418d=_0x7a5814[_0x11d409(0x185)]>0x0;if(_0x443de4===_0x3b418d)throw CliErrors[_0x11d409(0x1b0)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x11d409(0x1ac));if(_0x3b418d){const _0x41c523=resolve(process[_0x11d409(0x1ad)](),_0x7a5814);if(!existsSync(_0x41c523))throw CliErrors['validation'](_0x11d409(0x1a0)+_0x41c523);}},async 'dryRun'(_0x1d4725){const _0x127351=a99_0x498d12,_0x262098=await prepareIssueReport(_0x1d4725);return{'method':_0x127351(0x1aa),'url':_0x127351(0x190)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x262098[_0x127351(0x193)],'issue.description':_0x262098[_0x127351(0x182)],'issue.description_original_bytes':_0x262098[_0x127351(0x178)][_0x127351(0x189)],'issue.description_truncated':_0x262098[_0x127351(0x178)][_0x127351(0x177)],'issue.description_redactions':_0x262098[_0x127351(0x178)][_0x127351(0x19d)],'issue.description_redaction_kinds':_0x262098[_0x127351(0x178)][_0x127351(0x1a1)]['join'](',')}},'description':[_0x127351(0x1a2),_0x127351(0x183)+_0x262098[_0x127351(0x1ae)],_0x262098['descriptionFilePath']?_0x127351(0x19e)+_0x262098['descriptionFilePath']:null,_0x262098[_0x127351(0x178)][_0x127351(0x177)]?_0x127351(0x1a6)+_0x262098['sanitize']['originalBytes']+_0x127351(0x17b):null,_0x262098[_0x127351(0x178)][_0x127351(0x19d)]>0x0?_0x127351(0x191)+_0x262098[_0x127351(0x178)][_0x127351(0x19d)]+'\x20('+_0x262098[_0x127351(0x178)][_0x127351(0x1a1)][_0x127351(0x186)](',\x20')+')':null][_0x127351(0x17a)](Boolean)['join']('\x0a')};},async 'execute'(_0x527054){const _0x24b993=a99_0x498d12,_0xcb2f70=await prepareIssueReport(_0x527054);try{await sendPlatformIssueCollectLog({'title':_0xcb2f70[_0x24b993(0x193)],'description':_0xcb2f70[_0x24b993(0x182)],'sanitize':{'originalBytes':_0xcb2f70[_0x24b993(0x178)][_0x24b993(0x189)],'truncated':_0xcb2f70[_0x24b993(0x178)][_0x24b993(0x177)],'redactionCount':_0xcb2f70['sanitize'][_0x24b993(0x19d)],'redactionKinds':_0xcb2f70['sanitize']['redactionKinds']}});}catch(_0xea2297){throw CliErrors['apiError'](_0x24b993(0x1a5)+(_0xea2297 instanceof Error?_0xea2297[_0x24b993(0x18f)]:String(_0xea2297)),_0x24b993(0x18b));}return{'ok':!![],'message':buildResultMessage(_0xcb2f70[_0x24b993(0x178)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description',_0x24b993(0x1af),_0x24b993(0x18e),'issue.description_redactions',_0x24b993(0x1a7)],'issue':{'title':_0xcb2f70[_0x24b993(0x193)],'descriptionLength':_0xcb2f70[_0x24b993(0x182)][_0x24b993(0x185)],'descriptionSource':_0xcb2f70[_0x24b993(0x1ae)],..._0xcb2f70[_0x24b993(0x17f)]?{'descriptionFile':_0xcb2f70[_0x24b993(0x17f)]}:{},'sanitize':{'originalBytes':_0xcb2f70[_0x24b993(0x178)][_0x24b993(0x189)],'truncated':_0xcb2f70[_0x24b993(0x178)][_0x24b993(0x177)],'redactions':_0xcb2f70['sanitize']['redactionCount'],'redactionKinds':_0xcb2f70['sanitize'][_0x24b993(0x1a1)]}}}};}};function buildResultMessage(_0x5d531f){const _0x493110=a99_0x498d12,_0x3543e7=[];return _0x5d531f[_0x493110(0x177)]&&_0x3543e7[_0x493110(0x1ab)]('truncated\x20from\x20'+_0x5d531f[_0x493110(0x189)]+_0x493110(0x17b)),_0x5d531f[_0x493110(0x19d)]>0x0&&_0x3543e7[_0x493110(0x1ab)]('redacted\x20'+_0x5d531f[_0x493110(0x19d)]+'\x20secret(s):\x20'+_0x5d531f[_0x493110(0x1a1)]['join'](',\x20')),_0x3543e7[_0x493110(0x185)]===0x0?_0x493110(0x17e):_0x493110(0x1a9)+_0x3543e7[_0x493110(0x186)](';\x20')+')';}async function prepareIssueReport(_0x32cf69){const _0x2456ec=a99_0x498d12,_0x4290f8=_0x32cf69[_0x2456ec(0x19f)](_0x2456ec(0x193))[_0x2456ec(0x198)](),_0x2c52f5=_0x32cf69[_0x2456ec(0x19f)](_0x2456ec(0x182)),_0x42aa57=_0x32cf69['str'](DESCRIPTION_FILE_FLAG)[_0x2456ec(0x198)]();if(!_0x42aa57){const _0xae8f38=_0x2c52f5;if(!_0xae8f38[_0x2456ec(0x198)]())throw CliErrors[_0x2456ec(0x1b0)](_0x2456ec(0x187),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x500a25=sanitizeIssueDescription(_0xae8f38);return{'title':_0x4290f8,'description':_0x500a25[_0x2456ec(0x182)],'descriptionSource':'inline','sanitize':_0x500a25};}const _0x588521=resolve(process[_0x2456ec(0x1ad)](),_0x42aa57),_0x47cd81=await readFile(_0x588521,_0x2456ec(0x197));if(!_0x47cd81[_0x2456ec(0x198)]())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x588521,_0x2456ec(0x192));const _0x4eb4b=sanitizeIssueDescription(_0x47cd81);return{'title':_0x4290f8,'description':_0x4eb4b[_0x2456ec(0x182)],'descriptionSource':_0x2456ec(0x180),'descriptionFilePath':_0x588521,'sanitize':_0x4eb4b};}function a99_0x215e(){const _0x3efe30=['redactionCount','descriptionFile:\x20','str','File\x20not\x20found:\x20','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','7Pdqzvs','697001pGqNiw','Failed\x20to\x20report\x20platform\x20issue:\x20','truncated:\x20original\x20','issue.description_redaction_kinds','3231QhGLAz','Platform\x20issue\x20reported\x20(','POST','push','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','cwd','descriptionSource','issue.description_original_bytes','validation','issue','truncated','sanitize','30PVyykx','filter','\x20bytes','write','5440185tbKJyO','Platform\x20issue\x20reported','descriptionFilePath','file','string','description','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','join','Issue\x20description\x20cannot\x20be\x20empty.','flagMissing','originalBytes','compress','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','5845974nnetFt','2URgKvc','issue.description_truncated','message','otel://','redactions:\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','title','5792672dOxuFL','description-file','2661453xGiiAc','utf8','trim','3442901FnZDFf','One-line\x20issue\x20summary','5628hLkmGC','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'];a99_0x215e=function(){return _0x3efe30;};return a99_0x215e();}
1
+ const a100_0x63c061=a100_0x18f1;(function(_0x710dac,_0x3cb977){const _0x31ba5d=a100_0x18f1,_0x522384=_0x710dac();while(!![]){try{const _0x40979b=parseInt(_0x31ba5d(0x13d))/0x1+-parseInt(_0x31ba5d(0x12a))/0x2*(parseInt(_0x31ba5d(0x12f))/0x3)+parseInt(_0x31ba5d(0x156))/0x4*(-parseInt(_0x31ba5d(0x14a))/0x5)+parseInt(_0x31ba5d(0x14e))/0x6+parseInt(_0x31ba5d(0x129))/0x7+-parseInt(_0x31ba5d(0x138))/0x8+-parseInt(_0x31ba5d(0x130))/0x9*(-parseInt(_0x31ba5d(0x148))/0xa);if(_0x40979b===_0x3cb977)break;else _0x522384['push'](_0x522384['shift']());}catch(_0x7ae71d){_0x522384['push'](_0x522384['shift']());}}}(a100_0x50d6,0x509ed));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 a100_0x50d6(){const _0x3cd476=['truncated\x20from\x20','string','compress','issue.description_redaction_kinds','1279892PMERBb','redactionCount','sanitize','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Issue\x20description\x20file\x20is\x20empty:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','apiError','originalBytes','issue.description_original_bytes','flagMissing','description','1204833gTcEYl','321256oEoLhP','join','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactions:\x20','truncated','6JKCvjL','91503XntQwB','inline','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','utf8','Platform\x20issue\x20reported\x20(','issue.description_redactions','descriptionFilePath','message','302136EdeLjB','descriptionSource','descriptionSource:\x20','length','One-line\x20issue\x20summary','128693RNJQaX','push','title','validation','redactionKinds','description-file','str','issue.description_truncated','write','descriptionFile:\x20','filter','120XKyPAC','truncated:\x20original\x20','5QIbCPp','\x20bytes','trim','Platform\x20issue\x20reported','3518406gqTcuo','otel://','\x20secret(s):\x20','cwd'];a100_0x50d6=function(){return _0x3cd476;};return a100_0x50d6();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a100_0x63c061(0x142);export const issueReport={'service':'issue','command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a100_0x63c061(0x145),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0x63c061(0x154),'flags':[{'name':a100_0x63c061(0x13f),'type':'string','required':!![],'description':a100_0x63c061(0x13c)},{'name':a100_0x63c061(0x128),'type':a100_0x63c061(0x153),'description':a100_0x63c061(0x159)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0x63c061(0x153),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x3cb7eb){const _0x3160c2=a100_0x63c061,_0x568852=_0x3cb7eb[_0x3160c2(0x143)]('title')[_0x3160c2(0x14c)](),_0x569a71=_0x3cb7eb[_0x3160c2(0x143)](_0x3160c2(0x128))[_0x3160c2(0x14c)](),_0x26ebb2=_0x3cb7eb[_0x3160c2(0x143)](DESCRIPTION_FILE_FLAG)[_0x3160c2(0x14c)]();if(!_0x568852)throw CliErrors[_0x3160c2(0x127)](_0x3160c2(0x13f),_0x3160c2(0x15b));const _0x1a5654=_0x569a71[_0x3160c2(0x13b)]>0x0,_0x4f3ba6=_0x26ebb2[_0x3160c2(0x13b)]>0x0;if(_0x1a5654===_0x4f3ba6)throw CliErrors[_0x3160c2(0x140)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x4f3ba6){const _0x56dc45=resolve(process[_0x3160c2(0x151)](),_0x26ebb2);if(!existsSync(_0x56dc45))throw CliErrors[_0x3160c2(0x140)]('File\x20not\x20found:\x20'+_0x56dc45);}},async 'dryRun'(_0x5c2631){const _0x519c8c=a100_0x63c061,_0x11370a=await prepareIssueReport(_0x5c2631);return{'method':'POST','url':_0x519c8c(0x14f)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x11370a[_0x519c8c(0x13f)],'issue.description':_0x11370a[_0x519c8c(0x128)],'issue.description_original_bytes':_0x11370a['sanitize'][_0x519c8c(0x15d)],'issue.description_truncated':_0x11370a['sanitize'][_0x519c8c(0x12e)],'issue.description_redactions':_0x11370a[_0x519c8c(0x158)]['redactionCount'],'issue.description_redaction_kinds':_0x11370a[_0x519c8c(0x158)][_0x519c8c(0x141)][_0x519c8c(0x12b)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x519c8c(0x13a)+_0x11370a[_0x519c8c(0x139)],_0x11370a[_0x519c8c(0x136)]?_0x519c8c(0x146)+_0x11370a['descriptionFilePath']:null,_0x11370a[_0x519c8c(0x158)]['truncated']?_0x519c8c(0x149)+_0x11370a['sanitize'][_0x519c8c(0x15d)]+_0x519c8c(0x14b):null,_0x11370a[_0x519c8c(0x158)][_0x519c8c(0x157)]>0x0?_0x519c8c(0x12d)+_0x11370a[_0x519c8c(0x158)][_0x519c8c(0x157)]+'\x20('+_0x11370a[_0x519c8c(0x158)][_0x519c8c(0x141)][_0x519c8c(0x12b)](',\x20')+')':null][_0x519c8c(0x147)](Boolean)[_0x519c8c(0x12b)]('\x0a')};},async 'execute'(_0x1cc812){const _0x42d6b4=a100_0x63c061,_0x4abb62=await prepareIssueReport(_0x1cc812);try{await sendPlatformIssueCollectLog({'title':_0x4abb62[_0x42d6b4(0x13f)],'description':_0x4abb62[_0x42d6b4(0x128)],'sanitize':{'originalBytes':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x15d)],'truncated':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x12e)],'redactionCount':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x157)],'redactionKinds':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x141)]}});}catch(_0x4c485d){throw CliErrors[_0x42d6b4(0x15c)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x4c485d instanceof Error?_0x4c485d[_0x42d6b4(0x137)]:String(_0x4c485d)),_0x42d6b4(0x12c));}return{'ok':!![],'message':buildResultMessage(_0x4abb62[_0x42d6b4(0x158)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description',_0x42d6b4(0x126),_0x42d6b4(0x144),_0x42d6b4(0x135),_0x42d6b4(0x155)],'issue':{'title':_0x4abb62['title'],'descriptionLength':_0x4abb62['description']['length'],'descriptionSource':_0x4abb62[_0x42d6b4(0x139)],..._0x4abb62[_0x42d6b4(0x136)]?{'descriptionFile':_0x4abb62[_0x42d6b4(0x136)]}:{},'sanitize':{'originalBytes':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x15d)],'truncated':_0x4abb62[_0x42d6b4(0x158)][_0x42d6b4(0x12e)],'redactions':_0x4abb62['sanitize'][_0x42d6b4(0x157)],'redactionKinds':_0x4abb62['sanitize'][_0x42d6b4(0x141)]}}}};}};function buildResultMessage(_0x48d73d){const _0x334ee7=a100_0x63c061,_0x4a5b09=[];return _0x48d73d[_0x334ee7(0x12e)]&&_0x4a5b09[_0x334ee7(0x13e)](_0x334ee7(0x152)+_0x48d73d[_0x334ee7(0x15d)]+'\x20bytes'),_0x48d73d[_0x334ee7(0x157)]>0x0&&_0x4a5b09[_0x334ee7(0x13e)]('redacted\x20'+_0x48d73d['redactionCount']+_0x334ee7(0x150)+_0x48d73d['redactionKinds'][_0x334ee7(0x12b)](',\x20')),_0x4a5b09[_0x334ee7(0x13b)]===0x0?_0x334ee7(0x14d):_0x334ee7(0x134)+_0x4a5b09[_0x334ee7(0x12b)](';\x20')+')';}function a100_0x18f1(_0x4798f8,_0x3f750c){_0x4798f8=_0x4798f8-0x126;const _0x50d65f=a100_0x50d6();let _0x18f182=_0x50d65f[_0x4798f8];return _0x18f182;}async function prepareIssueReport(_0x4492de){const _0x2bf623=a100_0x63c061,_0x564dbc=_0x4492de[_0x2bf623(0x143)](_0x2bf623(0x13f))[_0x2bf623(0x14c)](),_0x49cbf7=_0x4492de[_0x2bf623(0x143)]('description'),_0x879627=_0x4492de[_0x2bf623(0x143)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x879627){const _0x28f427=_0x49cbf7;if(!_0x28f427[_0x2bf623(0x14c)]())throw CliErrors[_0x2bf623(0x140)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x2bf623(0x132));const _0x46cbf5=sanitizeIssueDescription(_0x28f427);return{'title':_0x564dbc,'description':_0x46cbf5['description'],'descriptionSource':_0x2bf623(0x131),'sanitize':_0x46cbf5};}const _0x435b1d=resolve(process[_0x2bf623(0x151)](),_0x879627),_0x525d03=await readFile(_0x435b1d,_0x2bf623(0x133));if(!_0x525d03[_0x2bf623(0x14c)]())throw CliErrors['validation'](_0x2bf623(0x15a)+_0x435b1d,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x56b6de=sanitizeIssueDescription(_0x525d03);return{'title':_0x564dbc,'description':_0x56b6de[_0x2bf623(0x128)],'descriptionSource':'file','descriptionFilePath':_0x435b1d,'sanitize':_0x56b6de};}
@@ -1 +1 @@
1
- const a100_0x2dbff0=a100_0x5176;function a100_0x36d6(){const _0x2fc42f=['33894XetAVa','2842407bEybSd','utf8','168sdeWfm','authorization','length','6099100AeAQfa','__RB_OSS_ID_','219972hujMnj','945774FJKGrB','REDACTED:bearer-jwt','kind','24aLvDGJ','from','label','description','push','1GTRPdJ','replace','string','REDACTED:cookie','1227168SMUiYX','restore','byteLength','password','11gmJWJu','1044110aZfrzK','REDACTED:private-key','cookie','subarray','44hCtZyt','REDACTED:access-key','private-key','includes','access-key'];a100_0x36d6=function(){return _0x2fc42f;};return a100_0x36d6();}(function(_0x20c007,_0x17c512){const _0x4e71a3=a100_0x5176,_0x129dda=_0x20c007();while(!![]){try{const _0x3f137e=-parseInt(_0x4e71a3(0x1e9))/0x1*(-parseInt(_0x4e71a3(0x1e1))/0x2)+parseInt(_0x4e71a3(0x1e0))/0x3*(parseInt(_0x4e71a3(0x1f6))/0x4)+-parseInt(_0x4e71a3(0x1f2))/0x5*(parseInt(_0x4e71a3(0x1e4))/0x6)+-parseInt(_0x4e71a3(0x1fb))/0x7*(parseInt(_0x4e71a3(0x1db))/0x8)+-parseInt(_0x4e71a3(0x1fc))/0x9+-parseInt(_0x4e71a3(0x1de))/0xa*(-parseInt(_0x4e71a3(0x1f1))/0xb)+-parseInt(_0x4e71a3(0x1ed))/0xc;if(_0x3f137e===_0x17c512)break;else _0x129dda['push'](_0x129dda['shift']());}catch(_0x10b71d){_0x129dda['push'](_0x129dda['shift']());}}}(a100_0x36d6,0x82720));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a100_0x2dbff0(0x1f4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a100_0x2dbff0(0x1ec)},{'kind':a100_0x2dbff0(0x1dc),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a100_0x2dbff0(0x1f8),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a100_0x2dbff0(0x1f3)},{'kind':a100_0x2dbff0(0x1fa),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a100_0x2dbff0(0x1f7)},{'kind':a100_0x2dbff0(0x1f0),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a100_0x2dbff0(0x1e2)}];export function sanitizeIssueDescription(_0x2a442f){const _0x50de83=a100_0x2dbff0,_0x4c8686=Buffer[_0x50de83(0x1ef)](_0x2a442f,_0x50de83(0x1da)),_0x38abb6=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x22e79a=_0x2a442f,_0x27c1ba=0x0;const _0x1d6081=[];if(!_0x38abb6){const _0x580b7a=protectOssAccessKeyIds(_0x22e79a);_0x22e79a=_0x580b7a[_0x50de83(0x1e7)];for(const _0x388883 of REDACTION_RULES){let _0x1421fe=0x0;_0x22e79a=_0x22e79a[_0x50de83(0x1ea)](_0x388883['pattern'],(_0xcf544e,_0xe54f93)=>{const _0x2ad326=_0x50de83;_0x1421fe+=0x1;const _0x47853a=typeof _0xe54f93===_0x2ad326(0x1eb)?_0xe54f93:'';return _0x47853a+'['+_0x388883[_0x2ad326(0x1e6)]+']';}),_0x1421fe>0x0&&(_0x27c1ba+=_0x1421fe,!_0x1d6081[_0x50de83(0x1f9)](_0x388883[_0x50de83(0x1e3)])&&_0x1d6081[_0x50de83(0x1e8)](_0x388883[_0x50de83(0x1e3)]));}_0x22e79a=_0x580b7a[_0x50de83(0x1ee)](_0x22e79a);}let _0x5ba43f=![];if(Buffer['byteLength'](_0x22e79a,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x5ba43f=!![];const _0x4f0558=Buffer['byteLength'](TRUNCATION_NOTICE,_0x50de83(0x1da)),_0x3c36f8=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x4f0558);_0x22e79a=sliceUtf8Bytes(_0x22e79a,_0x3c36f8)+TRUNCATION_NOTICE;}return{'description':_0x22e79a,'originalBytes':_0x4c8686,'truncated':_0x5ba43f,'redactionCount':_0x27c1ba,'redactionKinds':_0x1d6081};}function protectOssAccessKeyIds(_0x5b3c40){const _0x5106fb=[],_0x21cbbf=_0x5b3c40['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xf15813,_0x5b02f0)=>{const _0x1b279e=a100_0x5176,_0x2f331c=_0x5106fb[_0x1b279e(0x1e8)](_0xf15813['slice'](_0x5b02f0[_0x1b279e(0x1dd)]))-0x1;return _0x5b02f0+_0x1b279e(0x1df)+_0x2f331c+'__';});return{'description':_0x21cbbf,'restore':_0x30ed52=>_0x30ed52['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x408a27,_0x4e86fe,_0x4f207e)=>{const _0x5b4ece=_0x5106fb[Number(_0x4f207e)];return _0x5b4ece===undefined?_0x408a27:''+_0x4e86fe+_0x5b4ece;})};}function a100_0x5176(_0x13d112,_0xc0ee6f){_0x13d112=_0x13d112-0x1da;const _0x36d6ec=a100_0x36d6();let _0x5176ff=_0x36d6ec[_0x13d112];return _0x5176ff;}function sliceUtf8Bytes(_0x185908,_0x55bb95){const _0x4ad4c4=a100_0x2dbff0;if(_0x55bb95<=0x0)return'';const _0x284381=Buffer[_0x4ad4c4(0x1e5)](_0x185908,_0x4ad4c4(0x1da));if(_0x284381[_0x4ad4c4(0x1ef)]<=_0x55bb95)return _0x185908;let _0xd3a304=_0x55bb95;while(_0xd3a304>0x0){const _0x2ad1f8=_0x284381[_0xd3a304];if(_0x2ad1f8===undefined||(_0x2ad1f8&0xc0)!==0x80)break;_0xd3a304-=0x1;}return _0x284381[_0x4ad4c4(0x1f5)](0x0,_0xd3a304)['toString'](_0x4ad4c4(0x1da));}
1
+ const a101_0x36c7c0=a101_0x3967;(function(_0x573ff5,_0x2f4b00){const _0x5bfe48=a101_0x3967,_0x148a2d=_0x573ff5();while(!![]){try{const _0x2107d1=parseInt(_0x5bfe48(0x1cc))/0x1+parseInt(_0x5bfe48(0x1b5))/0x2*(parseInt(_0x5bfe48(0x1c6))/0x3)+parseInt(_0x5bfe48(0x1b1))/0x4+parseInt(_0x5bfe48(0x1b3))/0x5+parseInt(_0x5bfe48(0x1ae))/0x6*(parseInt(_0x5bfe48(0x1b4))/0x7)+parseInt(_0x5bfe48(0x1b7))/0x8+parseInt(_0x5bfe48(0x1c7))/0x9*(-parseInt(_0x5bfe48(0x1bc))/0xa);if(_0x2107d1===_0x2f4b00)break;else _0x148a2d['push'](_0x148a2d['shift']());}catch(_0x24656f){_0x148a2d['push'](_0x148a2d['shift']());}}}(a101_0x3222,0xf2a12));function a101_0x3222(){const _0x13d235=['REDACTED:access-key','919712DretrT','replace','6WjzQAq','push','authorization','1979632NAswEt','includes','5619305lCxBxu','4867429DQMckp','12kIhOxI','max','4401944nNbpKT','REDACTED:password','REDACTED:cookie','slice','access-key','12409730byavCo','byteLength','kind','REDACTED:authorization','REDACTED:bearer-jwt','password','restore','string','length','toString','466329VooiqJ','27BVmfPO','subarray','utf8','description'];a101_0x3222=function(){return _0x13d235;};return a101_0x3222();}function a101_0x3967(_0x4a63af,_0x5f50de){_0x4a63af=_0x4a63af-0x1ad;const _0x322296=a101_0x3222();let _0x39676d=_0x322296[_0x4a63af];return _0x39676d;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a101_0x36c7c0(0x1b9)},{'kind':a101_0x36c7c0(0x1b0),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a101_0x36c7c0(0x1bf)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a101_0x36c7c0(0x1bb),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a101_0x36c7c0(0x1cb)},{'kind':a101_0x36c7c0(0x1c1),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x36c7c0(0x1b8)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0x36c7c0(0x1c0)}];export function sanitizeIssueDescription(_0x28cf7d){const _0x22348d=a101_0x36c7c0,_0x3fc843=Buffer[_0x22348d(0x1bd)](_0x28cf7d,'utf8'),_0x3b6a1a=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x4d214c=_0x28cf7d,_0x3fdc84=0x0;const _0x4d3f8a=[];if(!_0x3b6a1a){const _0x5f2d0a=protectOssAccessKeyIds(_0x4d214c);_0x4d214c=_0x5f2d0a[_0x22348d(0x1ca)];for(const _0x485db9 of REDACTION_RULES){let _0x47c0de=0x0;_0x4d214c=_0x4d214c[_0x22348d(0x1ad)](_0x485db9['pattern'],(_0x3930ac,_0x5ce233)=>{const _0x39d52b=_0x22348d;_0x47c0de+=0x1;const _0x252d28=typeof _0x5ce233===_0x39d52b(0x1c3)?_0x5ce233:'';return _0x252d28+'['+_0x485db9['label']+']';}),_0x47c0de>0x0&&(_0x3fdc84+=_0x47c0de,!_0x4d3f8a[_0x22348d(0x1b2)](_0x485db9[_0x22348d(0x1be)])&&_0x4d3f8a[_0x22348d(0x1af)](_0x485db9[_0x22348d(0x1be)]));}_0x4d214c=_0x5f2d0a[_0x22348d(0x1c2)](_0x4d214c);}let _0x403097=![];if(Buffer['byteLength'](_0x4d214c,_0x22348d(0x1c9))>ISSUE_DESCRIPTION_MAX_BYTES){_0x403097=!![];const _0x251d8a=Buffer[_0x22348d(0x1bd)](TRUNCATION_NOTICE,'utf8'),_0x135c7a=Math[_0x22348d(0x1b6)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x251d8a);_0x4d214c=sliceUtf8Bytes(_0x4d214c,_0x135c7a)+TRUNCATION_NOTICE;}return{'description':_0x4d214c,'originalBytes':_0x3fc843,'truncated':_0x403097,'redactionCount':_0x3fdc84,'redactionKinds':_0x4d3f8a};}function protectOssAccessKeyIds(_0x171d0e){const _0x62f9f4=a101_0x36c7c0,_0x5a02fb=[],_0x516edc=_0x171d0e[_0x62f9f4(0x1ad)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0xa54067,_0x36cfec)=>{const _0x98731d=_0x62f9f4,_0x4db4a3=_0x5a02fb['push'](_0xa54067[_0x98731d(0x1ba)](_0x36cfec[_0x98731d(0x1c4)]))-0x1;return _0x36cfec+'__RB_OSS_ID_'+_0x4db4a3+'__';});return{'description':_0x516edc,'restore':_0x3a437b=>_0x3a437b[_0x62f9f4(0x1ad)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x401189,_0x2e8761,_0x3e9bcc)=>{const _0x2f3837=_0x5a02fb[Number(_0x3e9bcc)];return _0x2f3837===undefined?_0x401189:''+_0x2e8761+_0x2f3837;})};}function sliceUtf8Bytes(_0x5f1a47,_0x42185c){const _0x30495d=a101_0x36c7c0;if(_0x42185c<=0x0)return'';const _0x540f3d=Buffer['from'](_0x5f1a47,_0x30495d(0x1c9));if(_0x540f3d[_0x30495d(0x1bd)]<=_0x42185c)return _0x5f1a47;let _0xa0428f=_0x42185c;while(_0xa0428f>0x0){const _0x3c528d=_0x540f3d[_0xa0428f];if(_0x3c528d===undefined||(_0x3c528d&0xc0)!==0x80)break;_0xa0428f-=0x1;}return _0x540f3d[_0x30495d(0x1c8)](0x0,_0xa0428f)[_0x30495d(0x1c5)](_0x30495d(0x1c9));}
@@ -1 +1 @@
1
- const a101_0xfa4b3f=a101_0x2662;function a101_0x3ea0(){const _0x56df98=['Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','length','str','Knowledge-base\x20title','appCode','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','/admin/knowledge-base/create','file','\x20for\x20','POST','195695QjWYJf','78xzjtSE','3336522MKIOKD','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','contentHash','Company\x20knowledge\x20base\x20','--file\x20is\x20required.','title','kb_verification_failed','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','kb_create_outcome_unknown','company','21472236TwukcU','Created\x20company\x20knowledge\x20base\x20','kb_title_required','string','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','create','kb_already_exists','verified','content','--title\x20is\x20required.','\x20--format\x20compress`\x20before\x20choosing\x20update.','3580176VlneVO','kb_file_required','rabetbase\x20kb\x20detail\x20--id\x20','57754QBZwBZ','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','32tlGSEz','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','\x20--format\x20compress','rabetbase\x20kb\x20list\x20--title\x20','1132023RVLFCo','6552432aMcKvp','byteSize','trim'];a101_0x3ea0=function(){return _0x56df98;};return a101_0x3ea0();}(function(_0x2b0406,_0x2b448d){const _0x1cf0fc=a101_0x2662,_0x33d000=_0x2b0406();while(!![]){try{const _0x33d62d=parseInt(_0x1cf0fc(0x11b))/0x1*(-parseInt(_0x1cf0fc(0x119))/0x2)+parseInt(_0x1cf0fc(0x11f))/0x3+-parseInt(_0x1cf0fc(0x144))/0x4+parseInt(_0x1cf0fc(0x12d))/0x5*(-parseInt(_0x1cf0fc(0x12e))/0x6)+-parseInt(_0x1cf0fc(0x12f))/0x7+parseInt(_0x1cf0fc(0x120))/0x8+parseInt(_0x1cf0fc(0x139))/0x9;if(_0x33d62d===_0x2b448d)break;else _0x33d000['push'](_0x33d000['shift']());}catch(_0x5dd845){_0x33d000['push'](_0x33d000['shift']());}}}(a101_0x3ea0,0xbdda6));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a101_0xfa4b3f(0x129);function a101_0x2662(_0x20805e,_0x2db957){_0x20805e=_0x20805e-0x118;const _0x3ea0d8=a101_0x3ea0();let _0x26629b=_0x3ea0d8[_0x20805e];return _0x26629b;}function readCreateInput(_0x1dc8a7){const _0xc09ba5=a101_0xfa4b3f,_0x5f47cc=_0x1dc8a7[_0xc09ba5(0x125)](_0xc09ba5(0x134))[_0xc09ba5(0x122)]();if(!_0x5f47cc)throw kbError(_0xc09ba5(0x13b),_0xc09ba5(0x142));const _0x19efce=_0x1dc8a7['str'](_0xc09ba5(0x12a))[_0xc09ba5(0x122)]();if(!_0x19efce)throw kbError(_0xc09ba5(0x145),_0xc09ba5(0x133),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x5f47cc,'file':_0x19efce};}async function prepareCreate(_0x6c05b5){const _0x5761c8=a101_0xfa4b3f,_0x59ec69=readCreateInput(_0x6c05b5),_0x1c87c5=await readKbFile(_0x59ec69[_0x5761c8(0x12a)]),_0x4f3919=await fetchAllCompanyKnowledgeBases(_0x6c05b5,{'title':_0x59ec69[_0x5761c8(0x134)]}),_0x2c0afb=findExactCompanyKnowledgeBases(_0x4f3919,_0x6c05b5[_0x5761c8(0x127)],_0x59ec69[_0x5761c8(0x134)]);if(_0x2c0afb[_0x5761c8(0x124)]>0x0)throw kbError(_0x5761c8(0x13f),_0x5761c8(0x11a)+_0x6c05b5[_0x5761c8(0x127)]+'\x20with\x20title\x20'+_0x59ec69[_0x5761c8(0x134)]+'.',_0x5761c8(0x128)+_0x2c0afb[0x0]['id']+_0x5761c8(0x143));return{..._0x59ec69,'content':_0x1c87c5};}function plannedAfter(_0x39eca6,_0x4acf9e){const _0x327aba=a101_0xfa4b3f;return{'scope':_0x327aba(0x138),'appCode':_0x39eca6[_0x327aba(0x127)],'title':_0x4acf9e['title'],'contentByteSize':_0x4acf9e['content'][_0x327aba(0x121)],'contentHash':_0x4acf9e[_0x327aba(0x141)][_0x327aba(0x131)]};}function verifyCreatedState(_0x5202cc,_0x2d7405,_0x3a925e){const _0x2af11a=a101_0xfa4b3f;assertCompanyKnowledgeBase(_0x3a925e,_0x5202cc[_0x2af11a(0x127)],_0x3a925e['id']);const _0x3fbc65=inspectKbContent(_0x3a925e[_0x2af11a(0x141)]);if(_0x3a925e[_0x2af11a(0x134)]!==_0x2d7405[_0x2af11a(0x134)]||_0x3fbc65[_0x2af11a(0x131)]!==_0x2d7405[_0x2af11a(0x141)][_0x2af11a(0x131)])throw kbError(_0x2af11a(0x135),_0x2af11a(0x132)+_0x3a925e['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x2af11a(0x123)+_0x3a925e['id']+_0x2af11a(0x11c));return projectKb(_0x3a925e);}export const kbCreate={'service':'kb','command':a101_0xfa4b3f(0x13e),'description':a101_0xfa4b3f(0x13d),'risk':'write','requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':a101_0xfa4b3f(0x13c),'required':!![],'description':a101_0xfa4b3f(0x126)},{'name':a101_0xfa4b3f(0x12a),'type':a101_0xfa4b3f(0x13c),'required':!![],'description':a101_0xfa4b3f(0x136)}],async 'validate'(_0x4c8326){readCreateInput(_0x4c8326);},async 'dryRun'(_0x298b43){const _0x4db39e=a101_0xfa4b3f,_0x47b13d=await prepareCreate(_0x298b43);return asDryRunResult({'operation':_0x4db39e(0x13e),'selector':{'scope':_0x4db39e(0x138),'appCode':_0x298b43[_0x4db39e(0x127)],'title':_0x47b13d[_0x4db39e(0x134)]},'before':null,'after':plannedAfter(_0x298b43,_0x47b13d),'dryRun':!![],'backend':{'method':_0x4db39e(0x12c),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x4db39e(0x11e)+JSON['stringify'](_0x47b13d[_0x4db39e(0x134)])+_0x4db39e(0x11d)}},{'method':_0x4db39e(0x12c),'url':CREATE_PATH});},async 'execute'(_0x49badc){const _0x3723c2=a101_0xfa4b3f,_0x2856f8=await prepareCreate(_0x49badc);let _0x5d7536,_0x3b20fc=![];try{const _0x29095a=await createEnterpriseKnowledgeBase(_0x49badc['cookie'],{'appCode':_0x49badc['appCode'],'title':_0x2856f8[_0x3723c2(0x134)],'content':_0x2856f8[_0x3723c2(0x141)][_0x3723c2(0x141)]});assertCompanyKnowledgeBase(_0x29095a,_0x49badc[_0x3723c2(0x127)],_0x29095a['id']),_0x5d7536=_0x29095a['id'];}catch(_0xc4c6c5){if(!isPlatformTransportFailure(_0xc4c6c5))throw _0xc4c6c5;_0x3b20fc=!![];}if(_0x5d7536===undefined){const _0x517ffe=await verifyKbMutationReadback(_0x3723c2(0x13e),!![],()=>fetchAllCompanyKnowledgeBases(_0x49badc,{'title':_0x2856f8[_0x3723c2(0x134)]})),_0x5352cc=findExactCompanyKnowledgeBases(_0x517ffe,_0x49badc['appCode'],_0x2856f8[_0x3723c2(0x134)]);if(_0x5352cc[_0x3723c2(0x124)]!==0x1)throw kbError(_0x3723c2(0x137),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x5352cc[_0x3723c2(0x124)]+'.',_0x3723c2(0x130));_0x5d7536=_0x5352cc[0x0]['id'];}const _0x40b89b=await verifyKbMutationReadback(_0x3723c2(0x13e),_0x3b20fc,()=>requireKb(_0x49badc,_0x5d7536)),_0x441361=verifyCreatedState(_0x49badc,_0x2856f8,_0x40b89b),_0x3aaaa7=_0x3b20fc?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x441361['id'],'scope':_0x3723c2(0x138),'appCode':_0x441361[_0x3723c2(0x127)]},'before':null,'after':_0x441361,'dryRun':![],'backend':{'method':_0x3723c2(0x12c),'path':CREATE_PATH},'warnings':_0x3aaaa7,'verification':{'status':_0x3723c2(0x140),'recoveredAfterUnknownResponse':_0x3b20fc,'lookupCommand':_0x3723c2(0x118)+_0x441361['id']+'\x20--format\x20compress'}},'message':_0x3723c2(0x13a)+_0x441361['id']+_0x3723c2(0x12b)+_0x441361[_0x3723c2(0x127)]};}};
1
+ const a102_0x3683f6=a102_0x5004;(function(_0x2b0cc6,_0x5082a0){const _0x22102e=a102_0x5004,_0x481451=_0x2b0cc6();while(!![]){try{const _0x4c8bde=-parseInt(_0x22102e(0x167))/0x1+parseInt(_0x22102e(0x180))/0x2*(parseInt(_0x22102e(0x15d))/0x3)+-parseInt(_0x22102e(0x170))/0x4*(-parseInt(_0x22102e(0x15c))/0x5)+-parseInt(_0x22102e(0x17c))/0x6+-parseInt(_0x22102e(0x163))/0x7*(-parseInt(_0x22102e(0x169))/0x8)+-parseInt(_0x22102e(0x175))/0x9*(parseInt(_0x22102e(0x16a))/0xa)+parseInt(_0x22102e(0x177))/0xb;if(_0x4c8bde===_0x5082a0)break;else _0x481451['push'](_0x481451['shift']());}catch(_0x3e57f5){_0x481451['push'](_0x481451['shift']());}}}(a102_0x3dcd,0xa1257));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH='/admin/knowledge-base/create';function a102_0x5004(_0xa6e807,_0x1b2264){_0xa6e807=_0xa6e807-0x15c;const _0x3dcd9f=a102_0x3dcd();let _0x50043f=_0x3dcd9f[_0xa6e807];return _0x50043f;}function readCreateInput(_0x6b6122){const _0x4ce440=a102_0x5004,_0x58f9a9=_0x6b6122[_0x4ce440(0x181)](_0x4ce440(0x179))[_0x4ce440(0x173)]();if(!_0x58f9a9)throw kbError(_0x4ce440(0x185),_0x4ce440(0x187));const _0x4fd158=_0x6b6122[_0x4ce440(0x181)]('file')[_0x4ce440(0x173)]();if(!_0x4fd158)throw kbError('kb_file_required','--file\x20is\x20required.',_0x4ce440(0x183));return{'title':_0x58f9a9,'file':_0x4fd158};}async function prepareCreate(_0x1b8187){const _0x1be2fb=a102_0x5004,_0x390d97=readCreateInput(_0x1b8187),_0x18fc1c=await readKbFile(_0x390d97['file']),_0x512b7a=await fetchAllCompanyKnowledgeBases(_0x1b8187,{'title':_0x390d97[_0x1be2fb(0x179)]}),_0x1b8373=findExactCompanyKnowledgeBases(_0x512b7a,_0x1b8187[_0x1be2fb(0x171)],_0x390d97[_0x1be2fb(0x179)]);if(_0x1b8373[_0x1be2fb(0x15f)]>0x0)throw kbError(_0x1be2fb(0x17f),'Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20'+_0x1b8187[_0x1be2fb(0x171)]+_0x1be2fb(0x165)+_0x390d97['title']+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x1b8373[0x0]['id']+'\x20--format\x20compress`\x20before\x20choosing\x20update.');return{..._0x390d97,'content':_0x18fc1c};}function plannedAfter(_0x3d808,_0x538b88){const _0x16d0b3=a102_0x5004;return{'scope':_0x16d0b3(0x15e),'appCode':_0x3d808['appCode'],'title':_0x538b88[_0x16d0b3(0x179)],'contentByteSize':_0x538b88['content'][_0x16d0b3(0x172)],'contentHash':_0x538b88[_0x16d0b3(0x16b)][_0x16d0b3(0x161)]};}function verifyCreatedState(_0x4bf0a0,_0x29fbaf,_0x897695){const _0x5c47f6=a102_0x5004;assertCompanyKnowledgeBase(_0x897695,_0x4bf0a0[_0x5c47f6(0x171)],_0x897695['id']);const _0x440315=inspectKbContent(_0x897695[_0x5c47f6(0x16b)]);if(_0x897695[_0x5c47f6(0x179)]!==_0x29fbaf['title']||_0x440315[_0x5c47f6(0x161)]!==_0x29fbaf[_0x5c47f6(0x16b)][_0x5c47f6(0x161)])throw kbError(_0x5c47f6(0x166),_0x5c47f6(0x168)+_0x897695['id']+_0x5c47f6(0x188),_0x5c47f6(0x182)+_0x897695['id']+_0x5c47f6(0x17e));return projectKb(_0x897695);}function a102_0x3dcd(){const _0x3a4819=['file','6583507BgclME','rabetbase\x20kb\x20detail\x20--id\x20','\x20with\x20title\x20','kb_verification_failed','683442PkzIqz','Company\x20knowledge\x20base\x20','8AUBqfG','10ryFfEA','content','POST','Created\x20company\x20knowledge\x20base\x20','stringify','kb_create_outcome_unknown','34148KaBiAY','appCode','byteSize','trim','\x20--format\x20compress','6790077XMuKoX','string','4517502BdozYi','create','title','cookie','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','7777992TclknT','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','kb_already_exists','1283306rjvrKz','str','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','kb_title_required','write','--title\x20is\x20required.','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','445foewTy','6ZDHblj','company','length','rabetbase\x20kb\x20list\x20--title\x20','contentHash'];a102_0x3dcd=function(){return _0x3a4819;};return a102_0x3dcd();}export const kbCreate={'service':'kb','command':a102_0x3683f6(0x178),'description':'Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','risk':a102_0x3683f6(0x186),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a102_0x3683f6(0x179),'type':a102_0x3683f6(0x176),'required':!![],'description':'Knowledge-base\x20title'},{'name':a102_0x3683f6(0x162),'type':a102_0x3683f6(0x176),'required':!![],'description':a102_0x3683f6(0x184)}],async 'validate'(_0x5ade93){readCreateInput(_0x5ade93);},async 'dryRun'(_0x28299b){const _0x44b142=a102_0x3683f6,_0x33af1d=await prepareCreate(_0x28299b);return asDryRunResult({'operation':_0x44b142(0x178),'selector':{'scope':_0x44b142(0x15e),'appCode':_0x28299b[_0x44b142(0x171)],'title':_0x33af1d[_0x44b142(0x179)]},'before':null,'after':plannedAfter(_0x28299b,_0x33af1d),'dryRun':!![],'backend':{'method':_0x44b142(0x16c),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x44b142(0x160)+JSON[_0x44b142(0x16e)](_0x33af1d[_0x44b142(0x179)])+_0x44b142(0x174)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x3e2e3b){const _0x3f1566=a102_0x3683f6,_0x3c0935=await prepareCreate(_0x3e2e3b);let _0x4d5629,_0x11333d=![];try{const _0x10d052=await createEnterpriseKnowledgeBase(_0x3e2e3b[_0x3f1566(0x17a)],{'appCode':_0x3e2e3b['appCode'],'title':_0x3c0935[_0x3f1566(0x179)],'content':_0x3c0935[_0x3f1566(0x16b)]['content']});assertCompanyKnowledgeBase(_0x10d052,_0x3e2e3b[_0x3f1566(0x171)],_0x10d052['id']),_0x4d5629=_0x10d052['id'];}catch(_0x17bf9f){if(!isPlatformTransportFailure(_0x17bf9f))throw _0x17bf9f;_0x11333d=!![];}if(_0x4d5629===undefined){const _0xe01a9a=await verifyKbMutationReadback(_0x3f1566(0x178),!![],()=>fetchAllCompanyKnowledgeBases(_0x3e2e3b,{'title':_0x3c0935[_0x3f1566(0x179)]})),_0x45570c=findExactCompanyKnowledgeBases(_0xe01a9a,_0x3e2e3b['appCode'],_0x3c0935[_0x3f1566(0x179)]);if(_0x45570c['length']!==0x1)throw kbError(_0x3f1566(0x16f),_0x3f1566(0x17d)+_0x45570c[_0x3f1566(0x15f)]+'.',_0x3f1566(0x17b));_0x4d5629=_0x45570c[0x0]['id'];}const _0x357887=await verifyKbMutationReadback(_0x3f1566(0x178),_0x11333d,()=>requireKb(_0x3e2e3b,_0x4d5629)),_0x3a4bc4=verifyCreatedState(_0x3e2e3b,_0x3c0935,_0x357887),_0x1f6268=_0x11333d?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x3f1566(0x178),'selector':{'id':_0x3a4bc4['id'],'scope':'company','appCode':_0x3a4bc4[_0x3f1566(0x171)]},'before':null,'after':_0x3a4bc4,'dryRun':![],'backend':{'method':_0x3f1566(0x16c),'path':CREATE_PATH},'warnings':_0x1f6268,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x11333d,'lookupCommand':_0x3f1566(0x164)+_0x3a4bc4['id']+_0x3f1566(0x174)}},'message':_0x3f1566(0x16d)+_0x3a4bc4['id']+'\x20for\x20'+_0x3a4bc4['appCode']};}};