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

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 (329) hide show
  1. package/README.md +4 -4
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.d.ts +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/business-groups.js +1 -1
  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.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/init/index.js +1 -1
  101. package/lib/commands/issue/index.js +1 -1
  102. package/lib/commands/issue/nudge.js +1 -1
  103. package/lib/commands/issue/report.js +1 -1
  104. package/lib/commands/issue/shared.js +1 -1
  105. package/lib/commands/kb/create.js +1 -1
  106. package/lib/commands/kb/delete.js +1 -1
  107. package/lib/commands/kb/detail.js +1 -1
  108. package/lib/commands/kb/index.js +1 -1
  109. package/lib/commands/kb/list.js +1 -1
  110. package/lib/commands/kb/search.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/menu/visibility-update.js +1 -1
  139. package/lib/commands/notification/config-create.js +1 -1
  140. package/lib/commands/notification/config-delete.js +1 -1
  141. package/lib/commands/notification/config-list.js +1 -1
  142. package/lib/commands/notification/config-update.js +1 -1
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.js +1 -1
  145. package/lib/commands/ocr/index.js +1 -1
  146. package/lib/commands/page/create.js +1 -1
  147. package/lib/commands/page/custom/detail.js +1 -1
  148. package/lib/commands/page/custom/list.js +1 -1
  149. package/lib/commands/page/custom/publish.js +1 -1
  150. package/lib/commands/page/custom/shared.js +1 -1
  151. package/lib/commands/page/custom/syntax.js +1 -1
  152. package/lib/commands/page/custom/template.js +1 -1
  153. package/lib/commands/page/custom/update.js +1 -1
  154. package/lib/commands/page/data-list-status.js +1 -1
  155. package/lib/commands/page/generate-start.js +1 -1
  156. package/lib/commands/page/generate-status.js +1 -1
  157. package/lib/commands/page/index.js +1 -1
  158. package/lib/commands/page/pull.js +1 -1
  159. package/lib/commands/page/push.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/sync.js +1 -1
  164. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  165. package/lib/commands/project/create/format-elapsed.js +1 -1
  166. package/lib/commands/project/create/main.js +1 -1
  167. package/lib/commands/project/create/materialize-project-template.js +1 -1
  168. package/lib/commands/project/create/project-name.js +1 -1
  169. package/lib/commands/project/create/project-template-archive.js +1 -1
  170. package/lib/commands/project/create/project-template-path.js +1 -1
  171. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  172. package/lib/commands/project/create/use-format-code.js +1 -1
  173. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  174. package/lib/commands/project/index.js +1 -1
  175. package/lib/commands/project/upgrade.js +1 -1
  176. package/lib/commands/registry.js +1 -1
  177. package/lib/commands/role/delete.js +1 -1
  178. package/lib/commands/role/detail.js +1 -1
  179. package/lib/commands/role/index.js +1 -1
  180. package/lib/commands/role/list.js +1 -1
  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 +1 -1
  224. package/lib/core/api-client.js +1 -1
  225. package/lib/core/bff/config.d.ts +1 -1
  226. package/lib/core/bff/config.js +1 -1
  227. package/lib/core/bff/file-system.d.ts +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.d.ts +1 -1
  230. package/lib/core/bff/hash.js +1 -1
  231. package/lib/core/bff/lock.d.ts +2 -2
  232. package/lib/core/bff/lock.js +1 -1
  233. package/lib/core/bff/types.d.ts +1 -1
  234. package/lib/core/bff/utils.d.ts +2 -2
  235. package/lib/core/bff/utils.js +1 -1
  236. package/lib/core/db-resolver.js +1 -1
  237. package/lib/core/page/file-system.js +1 -1
  238. package/lib/core/page/hash.js +1 -1
  239. package/lib/core/page/lock.js +1 -1
  240. package/lib/core/sql-index-auditor.js +1 -1
  241. package/lib/core/sql-sync/config.js +1 -1
  242. package/lib/core/sql-sync/file-system.js +1 -1
  243. package/lib/core/sql-sync/hash.js +1 -1
  244. package/lib/core/sql-sync/lock.js +1 -1
  245. package/lib/core/sql-sync/utils.js +1 -1
  246. package/lib/core/sql-validator.js +1 -1
  247. package/lib/errors.js +1 -1
  248. package/lib/framework/build-all-flags.js +1 -1
  249. package/lib/framework/error-output.js +1 -1
  250. package/lib/framework/explicit-yes.js +1 -1
  251. package/lib/framework/flags.js +1 -1
  252. package/lib/framework/help.js +1 -1
  253. package/lib/framework/index.js +1 -1
  254. package/lib/framework/output.js +1 -1
  255. package/lib/framework/response.js +1 -1
  256. package/lib/framework/runner-alias.js +1 -1
  257. package/lib/framework/runner.js +1 -1
  258. package/lib/framework/schema-export.js +1 -1
  259. package/lib/framework/types.js +1 -1
  260. package/lib/generated/build-info.d.ts +4 -4
  261. package/lib/generated/build-info.js +1 -1
  262. package/lib/help.js +1 -1
  263. package/lib/postinstall.js +1 -1
  264. package/lib/runtime/confirmation.js +1 -1
  265. package/lib/runtime/event.js +1 -1
  266. package/lib/runtime/index.js +1 -1
  267. package/lib/runtime/queue.js +1 -1
  268. package/lib/runtime/resolve.js +1 -1
  269. package/lib/skills/builtin-skill.js +1 -1
  270. package/lib/skills/main.js +1 -1
  271. package/lib/skills/npx-skills-add.js +1 -1
  272. package/lib/skills/skill-presence.js +1 -1
  273. package/lib/telemetry/cli-command-trace.js +1 -1
  274. package/lib/telemetry/cli-help-trace.js +1 -1
  275. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  276. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  277. package/lib/telemetry/send-cli-trace-log.js +1 -1
  278. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  279. package/lib/utils/ai_config.js +1 -1
  280. package/lib/utils/apply-jq-filter.js +1 -1
  281. package/lib/utils/cdn-config.js +1 -1
  282. package/lib/utils/check-sdk-version.js +1 -1
  283. package/lib/utils/cli-version-check.js +1 -1
  284. package/lib/utils/cli-version-policy.js +1 -1
  285. package/lib/utils/config.js +1 -1
  286. package/lib/utils/entity-with-id.js +1 -1
  287. package/lib/utils/file-utils.js +1 -1
  288. package/lib/utils/guides-cdn.js +1 -1
  289. package/lib/utils/http-client.js +1 -1
  290. package/lib/utils/is-non-interactive.js +1 -1
  291. package/lib/utils/logger.js +1 -1
  292. package/lib/utils/params.js +1 -1
  293. package/lib/utils/platform.js +1 -1
  294. package/lib/utils/rules-cdn.js +1 -1
  295. package/lib/utils/sleep.js +1 -1
  296. package/lib/utils/template-replacer.js +1 -1
  297. package/lib/utils/update-notice.js +1 -1
  298. package/lib/utils/version.js +1 -1
  299. package/lib/utils/with-active-cookie.js +1 -1
  300. package/lib/utils/write-cli-side-channel.js +1 -1
  301. package/package.json +2 -2
  302. package/sidecar/flags.json +1 -1
  303. package/skills/rabetbase/SKILL.md +28 -28
  304. package/skills/rabetbase/guides/backend-function.md +30 -30
  305. package/skills/rabetbase/guides/best-practices.md +8 -8
  306. package/skills/rabetbase/guides/bff-creation-workflow.md +16 -16
  307. package/skills/rabetbase/guides/conflict-detection.md +3 -3
  308. package/skills/rabetbase/guides/custom-page-workflow.md +8 -8
  309. package/skills/rabetbase/guides/data-api-guidelines.md +6 -6
  310. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +8 -8
  311. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -2
  312. package/skills/rabetbase/guides/troubleshooting.md +6 -6
  313. package/skills/rabetbase/guides/typescript-sdk.md +10 -10
  314. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +1 -1
  315. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +10 -10
  316. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  317. package/skills/rabetbase/references/rabetbase-bff-create.md +3 -3
  318. package/skills/rabetbase/references/rabetbase-bff-delete.md +1 -1
  319. package/skills/rabetbase/references/rabetbase-bff-detail.md +4 -4
  320. package/skills/rabetbase/references/rabetbase-bff-list.md +8 -8
  321. package/skills/rabetbase/references/rabetbase-bff-pull.md +1 -1
  322. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -3
  323. package/skills/rabetbase/references/rabetbase-bff-status.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -3
  325. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-notification-config-list.md +3 -3
  327. package/skills/rabetbase.manifest.json +3 -3
  328. package/templates/rules/lovrabet_rules.mdc.tpl +7 -7
  329. package/templates/skill/SKILL.md.tpl +12 -12
@@ -1 +1 @@
1
- (function(_0x5ccba5,_0x20d232){const _0x8dce99=a89_0xe416,_0x1c48b0=_0x5ccba5();while(!![]){try{const _0x45fdd0=parseInt(_0x8dce99(0xcf))/0x1*(-parseInt(_0x8dce99(0xd1))/0x2)+parseInt(_0x8dce99(0xd0))/0x3*(parseInt(_0x8dce99(0xd2))/0x4)+-parseInt(_0x8dce99(0xd6))/0x5*(parseInt(_0x8dce99(0xd4))/0x6)+-parseInt(_0x8dce99(0xda))/0x7+parseInt(_0x8dce99(0xd8))/0x8+-parseInt(_0x8dce99(0xd7))/0x9*(-parseInt(_0x8dce99(0xd5))/0xa)+-parseInt(_0x8dce99(0xd3))/0xb*(-parseInt(_0x8dce99(0xd9))/0xc);if(_0x45fdd0===_0x20d232)break;else _0x1c48b0['push'](_0x1c48b0['shift']());}catch(_0x314ff9){_0x1c48b0['push'](_0x1c48b0['shift']());}}}(a89_0x14c5,0xd9cc1));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';function a89_0xe416(_0x52a121,_0x23221d){_0x52a121=_0x52a121-0xcf;const _0x14c5b7=a89_0x14c5();let _0xe41655=_0x14c5b7[_0x52a121];return _0xe41655;}import{dbDelete}from'../../commands/db/delete.js';function a89_0x14c5(){const _0x5a8f16=['7699452MRhNVV','7470435HWoaMn','325933xHdKdx','3ofykwq','6QqSGGc','660684LIeWKu','33iDZUex','10423326KoDWJo','10bCUrCT','5EgUvWr','13150197UkuRIf','8985240JXSWXh'];a89_0x14c5=function(){return _0x5a8f16;};return a89_0x14c5();}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';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(_0x38e977,_0x4cbe4b){const _0x25cc16=a89_0x3aa8,_0x39f2bd=_0x38e977();while(!![]){try{const _0x573c92=parseInt(_0x25cc16(0x169))/0x1+parseInt(_0x25cc16(0x16e))/0x2+parseInt(_0x25cc16(0x16c))/0x3*(parseInt(_0x25cc16(0x16d))/0x4)+-parseInt(_0x25cc16(0x16f))/0x5+parseInt(_0x25cc16(0x170))/0x6+-parseInt(_0x25cc16(0x16a))/0x7+parseInt(_0x25cc16(0x171))/0x8*(-parseInt(_0x25cc16(0x16b))/0x9);if(_0x573c92===_0x4cbe4b)break;else _0x39f2bd['push'](_0x39f2bd['shift']());}catch(_0xdd7361){_0x39f2bd['push'](_0x39f2bd['shift']());}}}(a89_0x1f8f,0x75ca6));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';function a89_0x1f8f(){const _0x281ce0=['143690CzoMpQ','2092176YxaNII','8JMRbYa','881325ZTNSar','5670952sKhxXR','4452417bDVPcg','3BsAeOf','339052ivQhHH','1002546ZikJXX'];a89_0x1f8f=function(){return _0x281ce0;};return a89_0x1f8f();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a89_0x3aa8(_0x4d152c,_0x136bd6){_0x4d152c=_0x4d152c-0x169;const _0x1f8ff1=a89_0x1f8f();let _0x3aa846=_0x1f8ff1[_0x4d152c];return _0x3aa846;}import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +1 @@
1
- const a90_0x3bffb4=a90_0x1777;(function(_0x5d112e,_0x4f1477){const _0x3f588d=a90_0x1777,_0x1d7a24=_0x5d112e();while(!![]){try{const _0x4a0ad5=parseInt(_0x3f588d(0x116))/0x1*(-parseInt(_0x3f588d(0x122))/0x2)+-parseInt(_0x3f588d(0x124))/0x3+-parseInt(_0x3f588d(0x123))/0x4+parseInt(_0x3f588d(0x129))/0x5+-parseInt(_0x3f588d(0x11f))/0x6+parseInt(_0x3f588d(0x11b))/0x7+parseInt(_0x3f588d(0x120))/0x8;if(_0x4a0ad5===_0x4f1477)break;else _0x1d7a24['push'](_0x1d7a24['shift']());}catch(_0x156d47){_0x1d7a24['push'](_0x1d7a24['shift']());}}}(a90_0x12ea,0x7bbc5));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a90_0x1777(_0x425c67,_0x4a71fc){_0x425c67=_0x425c67-0x112;const _0x12eaf7=a90_0x12ea();let _0x1777a7=_0x12eaf7[_0x425c67];return _0x1777a7;}function a90_0x12ea(){const _0x23e6af=['2259820mqrOhI','2999865UDLaij','Found\x20','read','length','\x20database\x20connection(s)','2421280wPTaaA','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','map','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode','305tfxaOO','Page\x20index\x20(1-based)','pagesize','number','Page\x20size','6627271ylOheh','num','all','page','425598nczBPd','12439840ISaNep','datasetDependency','5530xOiyQC'];a90_0x12ea=function(){return _0x23e6af;};return a90_0x12ea();}export const dbList={'service':'db','command':'list','description':a90_0x3bffb4(0x112),'risk':a90_0x3bffb4(0x126),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a90_0x3bffb4(0x119),'description':a90_0x3bffb4(0x117),'default':0x1},{'name':a90_0x3bffb4(0x118),'type':a90_0x3bffb4(0x119),'description':a90_0x3bffb4(0x11a),'default':0x64}],async 'execute'(_0x1c9d24){const _0x58eaa0=a90_0x3bffb4,_0x3ce15b=_0x1c9d24['num'](_0x58eaa0(0x11e),0x1)||0x1,_0x2d039a=_0x1c9d24[_0x58eaa0(0x11c)](_0x58eaa0(0x118),0x64)||0x64,[{items:_0x3d9efe,paging:_0x3b3cad},_0x1c2ffc]=await Promise[_0x58eaa0(0x11d)]([listDbLinks(_0x1c9d24[_0x58eaa0(0x115)],{'currentPage':_0x3ce15b,'pageSize':_0x2d039a}),listDatasets(_0x1c9d24[_0x58eaa0(0x115)],{'source':'DB_TABLE'})]),_0x48df2d=_0x3d9efe[_0x58eaa0(0x113)](_0x6b61ac=>({...sanitizeDbLinkForOutput(_0x6b61ac),'datasetDependency':buildDbDatasetDependency(_0x6b61ac,_0x1c2ffc)[_0x58eaa0(0x121)]})),_0x1229af=_0x3b3cad?_0x3b3cad:{'currentPage':_0x3ce15b,'pageSize':_0x2d039a,'rowsOnPage':_0x48df2d[_0x58eaa0(0x127)],'totalCount':null,'note':_0x58eaa0(0x114)};return{'ok':!![],'data':{'connections':_0x48df2d,'paging':_0x1229af},'message':_0x58eaa0(0x125)+_0x48df2d[_0x58eaa0(0x127)]+_0x58eaa0(0x128)};}};
1
+ const a90_0x48e6b4=a90_0x2d4f;(function(_0x128866,_0x132ae8){const _0x193501=a90_0x2d4f,_0x901bc7=_0x128866();while(!![]){try{const _0xc3b7b0=-parseInt(_0x193501(0x192))/0x1*(parseInt(_0x193501(0x197))/0x2)+parseInt(_0x193501(0x19a))/0x3*(-parseInt(_0x193501(0x196))/0x4)+parseInt(_0x193501(0x1a8))/0x5*(-parseInt(_0x193501(0x1a4))/0x6)+parseInt(_0x193501(0x198))/0x7+parseInt(_0x193501(0x1a0))/0x8*(-parseInt(_0x193501(0x1a7))/0x9)+-parseInt(_0x193501(0x18f))/0xa*(parseInt(_0x193501(0x193))/0xb)+parseInt(_0x193501(0x19b))/0xc*(parseInt(_0x193501(0x19d))/0xd);if(_0xc3b7b0===_0x132ae8)break;else _0x901bc7['push'](_0x901bc7['shift']());}catch(_0x56ac2a){_0x901bc7['push'](_0x901bc7['shift']());}}}(a90_0x4d25,0x210cb));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a90_0x4d25(){const _0x5d199c=['9qEcFkI','2549294FbpasJ','pagesize','all','5144CRPnCB','1588wlnccM','750729UmDIWc','page','453lYnUuL','1272TgEMBR','DB_TABLE','75439djKSGB','datasetDependency','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','88OJnTct','map','list','length','6ZJYTuD','number','Found\x20','72972PzJDuz','323600zXlCII','read','appCode','10ZAGkWK','Page\x20index\x20(1-based)','Page\x20size'];a90_0x4d25=function(){return _0x5d199c;};return a90_0x4d25();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a90_0x2d4f(_0x401af2,_0x9779d8){_0x401af2=_0x401af2-0x18e;const _0x4d252b=a90_0x4d25();let _0x2d4f0a=_0x4d252b[_0x401af2];return _0x2d4f0a;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a90_0x48e6b4(0x1a2),'description':a90_0x48e6b4(0x19f),'risk':a90_0x48e6b4(0x1a9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a90_0x48e6b4(0x199),'type':'number','description':a90_0x48e6b4(0x190),'default':0x1},{'name':a90_0x48e6b4(0x194),'type':a90_0x48e6b4(0x1a5),'description':a90_0x48e6b4(0x191),'default':0x64}],async 'execute'(_0x2393c1){const _0x5cdff1=a90_0x48e6b4,_0x463fd3=_0x2393c1['num']('page',0x1)||0x1,_0x2ca74b=_0x2393c1['num'](_0x5cdff1(0x194),0x64)||0x64,[{items:_0x2311b2,paging:_0x1e0470},_0x5defd4]=await Promise[_0x5cdff1(0x195)]([listDbLinks(_0x2393c1[_0x5cdff1(0x18e)],{'currentPage':_0x463fd3,'pageSize':_0x2ca74b}),listDatasets(_0x2393c1[_0x5cdff1(0x18e)],{'source':_0x5cdff1(0x19c)})]),_0x7df19e=_0x2311b2[_0x5cdff1(0x1a1)](_0x1efa18=>({...sanitizeDbLinkForOutput(_0x1efa18),'datasetDependency':buildDbDatasetDependency(_0x1efa18,_0x5defd4)[_0x5cdff1(0x19e)]})),_0x50e5e8=_0x1e0470?_0x1e0470:{'currentPage':_0x463fd3,'pageSize':_0x2ca74b,'rowsOnPage':_0x7df19e[_0x5cdff1(0x1a3)],'totalCount':null,'note':'Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'};return{'ok':!![],'data':{'connections':_0x7df19e,'paging':_0x50e5e8},'message':_0x5cdff1(0x1a6)+_0x7df19e[_0x5cdff1(0x1a3)]+'\x20database\x20connection(s)'};}};
@@ -1 +1 @@
1
- (function(_0x3cb42d,_0x39f070){const _0x2ae1cd=a91_0x148b,_0x3fcd7f=_0x3cb42d();while(!![]){try{const _0x25501c=-parseInt(_0x2ae1cd(0x1b9))/0x1+-parseInt(_0x2ae1cd(0x1c2))/0x2+parseInt(_0x2ae1cd(0x1cd))/0x3*(-parseInt(_0x2ae1cd(0x1b7))/0x4)+-parseInt(_0x2ae1cd(0x1c9))/0x5+parseInt(_0x2ae1cd(0x1bf))/0x6+parseInt(_0x2ae1cd(0x1b6))/0x7*(-parseInt(_0x2ae1cd(0x1d6))/0x8)+parseInt(_0x2ae1cd(0x1c4))/0x9;if(_0x25501c===_0x39f070)break;else _0x3fcd7f['push'](_0x3fcd7f['shift']());}catch(_0x256fc6){_0x3fcd7f['push'](_0x3fcd7f['shift']());}}}(a91_0x26ae,0x54d60));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x321024){const _0x3d7423=a91_0x148b,_0x442a37=_0x321024[_0x3d7423(0x1bc)]();if(_0x442a37===_0x3d7423(0x1c1)||_0x442a37===_0x3d7423(0x1d3)||_0x442a37===_0x3d7423(0x1c7))return!![];if(_0x442a37[_0x3d7423(0x1be)]('secret')||_0x442a37[_0x3d7423(0x1be)]('token')||_0x442a37[_0x3d7423(0x1be)](_0x3d7423(0x1c6)))return!![];if(_0x442a37[_0x3d7423(0x1be)]('privatekey')||_0x442a37['includes'](_0x3d7423(0x1d4)))return!![];if(_0x442a37===_0x3d7423(0x1cc)||_0x442a37===_0x3d7423(0x1bd)||_0x442a37===_0x3d7423(0x1b5))return!![];return![];}function a91_0x26ae(){const _0x34e351=['filter','keys','trim','passwd','accesskey','hasAvailableDo','216248eLTpCD','/data/er?dbId=','jdbcurl','133AsFrhQ','200vKVTdz','[redacted]','154045WlvmtK','/data/database','apiError','toLowerCase','connectionstring','includes','308916hqexZM','tableName','password','888032KHTqHa','dbId','20164455ubLxbO','length','credential','dbpassword','number','3115965YcUvuh','dbtableConfig','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','authorization','12579HekYbR','code','map'];a91_0x26ae=function(){return _0x34e351;};return a91_0x26ae();}export function sanitizeDbLinkForOutput(_0x234697){const _0x4d66ee=a91_0x148b,_0x382b9a={..._0x234697};delete _0x382b9a[_0x4d66ee(0x1d5)];for(const _0x34df88 of Object[_0x4d66ee(0x1d1)](_0x382b9a)){if(!shouldRedactKey(_0x34df88))continue;const _0x264594=_0x382b9a[_0x34df88];_0x264594!=null&&String(_0x264594)[_0x4d66ee(0x1c5)]>0x0&&(_0x382b9a[_0x34df88]=_0x4d66ee(0x1b8));}return _0x382b9a;}export function sanitizeDbLinkList(_0x149e24){return _0x149e24['map'](_0x1093fb=>sanitizeDbLinkForOutput(_0x1093fb));}function a91_0x148b(_0x3cdff6,_0x1489f4){_0x3cdff6=_0x3cdff6-0x1b4;const _0x26ae2d=a91_0x26ae();let _0x148b41=_0x26ae2d[_0x3cdff6];return _0x148b41;}export function buildDbDatasetDependency(_0x594c31,_0x2c5058){const _0x47bae4=a91_0x148b,_0x16459a=_0x2c5058[_0x47bae4(0x1d0)](_0x5e6d8c=>Number(_0x5e6d8c[_0x47bae4(0x1ca)]?.[_0x47bae4(0x1c3)])===Number(_0x594c31['id']))[_0x47bae4(0x1cf)](_0x245e95=>({'id':_0x245e95['id'],'code':_0x245e95[_0x47bae4(0x1ce)],'name':_0x245e95['name'],..._0x245e95[_0x47bae4(0x1ca)]?.[_0x47bae4(0x1c0)]?{'tableName':_0x245e95[_0x47bae4(0x1ca)][_0x47bae4(0x1c0)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x16459a[_0x47bae4(0x1c5)]>0x0,'activeDatasetCount':_0x16459a[_0x47bae4(0x1c5)]},'datasets':_0x16459a};}export async function assertDbLinkConnectionPreflight(_0x4fbd4d){const _0x22c1e6=a91_0x148b,_0x3f8e0a=await testDbLinkConfigConnect(_0x4fbd4d);if(_0x3f8e0a!==!![])throw CliErrors[_0x22c1e6(0x1bb)]('Database\x20connection\x20preflight\x20failed.',_0x22c1e6(0x1cb));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x199a82){const _0x7476f3=a91_0x148b,_0x2609e6=_0x199a82[_0x7476f3(0x1d2)]();if(!_0x2609e6)return![];return DB_URL_PATTERN['test'](_0x2609e6);}export function buildDbPageLinks(_0x312d8f,_0x98853c){const _0x4f7490=a91_0x148b,_0xeed7e4=_0x312d8f?.[_0x4f7490(0x1d2)]();if(!_0xeed7e4)return undefined;const _0x2867d7=typeof _0x98853c===_0x4f7490(0x1c8)?String(_0x98853c):String(_0x98853c??'')[_0x4f7490(0x1d2)]();if(!_0x2867d7)return undefined;const _0x386fcf=Number(_0x2867d7);if(!Number['isFinite'](_0x386fcf)||_0x386fcf<=0x0)return undefined;const _0x121e6a=getAppBaseUrl(_0xeed7e4),_0xba2197=encodeURIComponent(String(_0x386fcf));return{'databasePage':_0x121e6a+_0x4f7490(0x1ba),'erPage':_0x121e6a+_0x4f7490(0x1b4)+_0xba2197};}
1
+ (function(_0x21358a,_0x38dcc1){const _0xc2957c=a91_0x1e9b,_0x2dd9cc=_0x21358a();while(!![]){try{const _0x3ff96c=parseInt(_0xc2957c(0x182))/0x1*(parseInt(_0xc2957c(0x18c))/0x2)+-parseInt(_0xc2957c(0x18d))/0x3+parseInt(_0xc2957c(0x199))/0x4*(parseInt(_0xc2957c(0x196))/0x5)+-parseInt(_0xc2957c(0x185))/0x6*(parseInt(_0xc2957c(0x192))/0x7)+-parseInt(_0xc2957c(0x194))/0x8*(parseInt(_0xc2957c(0x195))/0x9)+parseInt(_0xc2957c(0x19d))/0xa*(parseInt(_0xc2957c(0x197))/0xb)+-parseInt(_0xc2957c(0x17f))/0xc;if(_0x3ff96c===_0x38dcc1)break;else _0x2dd9cc['push'](_0x2dd9cc['shift']());}catch(_0xb55602){_0x2dd9cc['push'](_0x2dd9cc['shift']());}}}(a91_0xe19b,0xd4d7c));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x27e060){const _0x53839e=a91_0x1e9b,_0x36458c=_0x27e060[_0x53839e(0x183)]();if(_0x36458c===_0x53839e(0x190)||_0x36458c==='passwd'||_0x36458c===_0x53839e(0x19b))return!![];if(_0x36458c[_0x53839e(0x19a)](_0x53839e(0x181))||_0x36458c[_0x53839e(0x19a)](_0x53839e(0x188))||_0x36458c['includes'](_0x53839e(0x19c)))return!![];if(_0x36458c['includes']('privatekey')||_0x36458c['includes']('accesskey'))return!![];if(_0x36458c==='authorization'||_0x36458c==='connectionstring'||_0x36458c==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x54db5e){const _0x18825e=a91_0x1e9b,_0x2a00c9={..._0x54db5e};delete _0x2a00c9['hasAvailableDo'];for(const _0x453073 of Object['keys'](_0x2a00c9)){if(!shouldRedactKey(_0x453073))continue;const _0x3940e8=_0x2a00c9[_0x453073];_0x3940e8!=null&&String(_0x3940e8)[_0x18825e(0x187)]>0x0&&(_0x2a00c9[_0x453073]='[redacted]');}return _0x2a00c9;}export function sanitizeDbLinkList(_0x221c0d){const _0x51dfd4=a91_0x1e9b;return _0x221c0d[_0x51dfd4(0x19f)](_0xcc67e9=>sanitizeDbLinkForOutput(_0xcc67e9));}export function buildDbDatasetDependency(_0x4b59c4,_0x1f727f){const _0x140a6d=a91_0x1e9b,_0x4ee05c=_0x1f727f[_0x140a6d(0x18f)](_0x36ec47=>Number(_0x36ec47[_0x140a6d(0x19e)]?.[_0x140a6d(0x17e)])===Number(_0x4b59c4['id']))['map'](_0x23f260=>({'id':_0x23f260['id'],'code':_0x23f260['code'],'name':_0x23f260[_0x140a6d(0x18b)],..._0x23f260['dbtableConfig']?.[_0x140a6d(0x18e)]?{'tableName':_0x23f260[_0x140a6d(0x19e)][_0x140a6d(0x18e)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x4ee05c[_0x140a6d(0x187)]>0x0,'activeDatasetCount':_0x4ee05c[_0x140a6d(0x187)]},'datasets':_0x4ee05c};}export async function assertDbLinkConnectionPreflight(_0x5cda46){const _0x125ca3=a91_0x1e9b,_0x21cb73=await testDbLinkConfigConnect(_0x5cda46);if(_0x21cb73!==!![])throw CliErrors['apiError'](_0x125ca3(0x186),_0x125ca3(0x180));}function a91_0x1e9b(_0x2bb04d,_0x1b74a8){_0x2bb04d=_0x2bb04d-0x17e;const _0xe19b48=a91_0xe19b();let _0x1e9b60=_0xe19b48[_0x2bb04d];return _0x1e9b60;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a91_0xe19b(){const _0x2f02c0=['612WGnehk','16210hMOYFc','44KBbspl','isFinite','416OukbMC','includes','dbpassword','credential','3089630SXbJjZ','dbtableConfig','map','dbId','6816000TEGrvs','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','secret','585581QRCBoA','toLowerCase','trim','588Ojryxj','Database\x20connection\x20preflight\x20failed.','length','token','/data/database','number','name','4cWbLdr','2565456kZHPwm','tableName','filter','password','test','13237rfsHeR','/data/er?dbId=','31048qcnvDj'];a91_0xe19b=function(){return _0x2f02c0;};return a91_0xe19b();}export function validateDbUrl(_0x5c6ebf){const _0x2c6578=a91_0x1e9b,_0x1cfe91=_0x5c6ebf[_0x2c6578(0x184)]();if(!_0x1cfe91)return![];return DB_URL_PATTERN[_0x2c6578(0x191)](_0x1cfe91);}export function buildDbPageLinks(_0x23cb11,_0x14d854){const _0x3ed96d=a91_0x1e9b,_0x1f5b9a=_0x23cb11?.[_0x3ed96d(0x184)]();if(!_0x1f5b9a)return undefined;const _0x144ff1=typeof _0x14d854===_0x3ed96d(0x18a)?String(_0x14d854):String(_0x14d854??'')[_0x3ed96d(0x184)]();if(!_0x144ff1)return undefined;const _0x1fd818=Number(_0x144ff1);if(!Number[_0x3ed96d(0x198)](_0x1fd818)||_0x1fd818<=0x0)return undefined;const _0x2f18b0=getAppBaseUrl(_0x1f5b9a),_0x102a03=encodeURIComponent(String(_0x1fd818));return{'databasePage':_0x2f18b0+_0x3ed96d(0x189),'erPage':_0x2f18b0+_0x3ed96d(0x193)+_0x102a03};}
@@ -1 +1 @@
1
- const a92_0xfbfac1=a92_0x49b0;(function(_0x4e8b4f,_0x4b49d1){const _0x3a0e1a=a92_0x49b0,_0x53ac78=_0x4e8b4f();while(!![]){try{const _0x1a4cc8=parseInt(_0x3a0e1a(0x9e))/0x1+-parseInt(_0x3a0e1a(0x9c))/0x2*(-parseInt(_0x3a0e1a(0xa1))/0x3)+-parseInt(_0x3a0e1a(0xa6))/0x4*(parseInt(_0x3a0e1a(0x99))/0x5)+-parseInt(_0x3a0e1a(0xa4))/0x6+-parseInt(_0x3a0e1a(0xa2))/0x7*(-parseInt(_0x3a0e1a(0xa3))/0x8)+parseInt(_0x3a0e1a(0xa5))/0x9+-parseInt(_0x3a0e1a(0x97))/0xa;if(_0x1a4cc8===_0x4b49d1)break;else _0x53ac78['push'](_0x53ac78['shift']());}catch(_0x50a553){_0x53ac78['push'](_0x53ac78['shift']());}}}(a92_0x339c,0x51585));import{getDbAllTableList}from'../../core/api-client.js';function a92_0x49b0(_0x439fcd,_0x170504){_0x439fcd=_0x439fcd-0x96;const _0x339cba=a92_0x339c();let _0x49b096=_0x339cba[_0x439fcd];return _0x49b096;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a92_0xfbfac1(0x9a),'description':a92_0xfbfac1(0x96),'risk':a92_0xfbfac1(0x98),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x16aeac){const _0x5a7ce9=a92_0xfbfac1,_0x5f5597=_0x16aeac[_0x5a7ce9(0x9b)]('id'),_0x5a6a7c=await getDbAllTableList(_0x16aeac[_0x5a7ce9(0x9f)],_0x5f5597);return{'ok':!![],'data':{'dbLinkId':_0x5f5597,'total':_0x5a6a7c[_0x5a7ce9(0x9d)],'tables':_0x5a6a7c},'message':_0x5a6a7c['length']+_0x5a7ce9(0xa0)+_0x5f5597};}};function a92_0x339c(){const _0x27f22b=['758286PtxJuq','5386734LtTCQM','64CjmJcj','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','10887430HZTsXp','read','124795fSRlll','tables','num','2JboOYH','length','368844ikzsEh','appCode','\x20table(s)\x20on\x20db\x20link\x20','1887153lTeknb','14WCdNcb','1404944OdIKYD'];a92_0x339c=function(){return _0x27f22b;};return a92_0x339c();}
1
+ function a92_0x380b(){const _0x14aad3=['399820XTHgOq','2346688EsDyfO','1727810CgFUMN','length','344bNrgvZ','150234tlSdeQ','appCode','26NykInv','27dnOLXm','\x20table(s)\x20on\x20db\x20link\x20','30CCPdOI','1554333lkwscm','19957JIGGpV','tables','545076ZDkzUy','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','num'];a92_0x380b=function(){return _0x14aad3;};return a92_0x380b();}const a92_0x1f062c=a92_0x5b1d;(function(_0x155708,_0x1b3d5d){const _0x4fc5c5=a92_0x5b1d,_0x4e22df=_0x155708();while(!![]){try{const _0x47e43b=-parseInt(_0x4fc5c5(0xdf))/0x1+-parseInt(_0x4fc5c5(0xd8))/0x2*(parseInt(_0x4fc5c5(0xd6))/0x3)+parseInt(_0x4fc5c5(0xe3))/0x4+-parseInt(_0x4fc5c5(0xe2))/0x5*(-parseInt(_0x4fc5c5(0xdb))/0x6)+-parseInt(_0x4fc5c5(0xdd))/0x7*(parseInt(_0x4fc5c5(0xe6))/0x8)+parseInt(_0x4fc5c5(0xd9))/0x9*(parseInt(_0x4fc5c5(0xe4))/0xa)+parseInt(_0x4fc5c5(0xdc))/0xb;if(_0x47e43b===_0x1b3d5d)break;else _0x4e22df['push'](_0x4e22df['shift']());}catch(_0x410faa){_0x4e22df['push'](_0x4e22df['shift']());}}}(a92_0x380b,0x4ff1f));function a92_0x5b1d(_0x49c31d,_0x3f6b66){_0x49c31d=_0x49c31d-0xd6;const _0x380b3f=a92_0x380b();let _0x5b1d3b=_0x380b3f[_0x49c31d];return _0x5b1d3b;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a92_0x1f062c(0xde),'description':a92_0x1f062c(0xe0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x598872){const _0x22c661=a92_0x1f062c,_0x2646e1=_0x598872[_0x22c661(0xe1)]('id'),_0x550ad5=await getDbAllTableList(_0x598872[_0x22c661(0xd7)],_0x2646e1);return{'ok':!![],'data':{'dbLinkId':_0x2646e1,'total':_0x550ad5[_0x22c661(0xe5)],'tables':_0x550ad5},'message':_0x550ad5[_0x22c661(0xe5)]+_0x22c661(0xda)+_0x2646e1};}};
@@ -1 +1 @@
1
- const a93_0x23c384=a93_0x3a75;function a93_0x3a75(_0x739d6e,_0x42a556){_0x739d6e=_0x739d6e-0x96;const _0x29ff52=a93_0x29ff();let _0x3a75e9=_0x29ff52[_0x739d6e];return _0x3a75e9;}(function(_0x13e821,_0x2302de){const _0x1212e1=a93_0x3a75,_0x424cc5=_0x13e821();while(!![]){try{const _0x167054=-parseInt(_0x1212e1(0x96))/0x1+parseInt(_0x1212e1(0xa8))/0x2+-parseInt(_0x1212e1(0x99))/0x3+-parseInt(_0x1212e1(0x9c))/0x4*(parseInt(_0x1212e1(0x9e))/0x5)+parseInt(_0x1212e1(0xa1))/0x6*(parseInt(_0x1212e1(0x97))/0x7)+-parseInt(_0x1212e1(0xaf))/0x8*(parseInt(_0x1212e1(0xa6))/0x9)+parseInt(_0x1212e1(0x9d))/0xa*(parseInt(_0x1212e1(0x9f))/0xb);if(_0x167054===_0x2302de)break;else _0x424cc5['push'](_0x424cc5['shift']());}catch(_0x3d093c){_0x424cc5['push'](_0x424cc5['shift']());}}}(a93_0x29ff,0x2af33));import{testDbLinkConnect}from'../../core/api-client.js';function a93_0x29ff(){const _0x41d8d2=['read','612HkvlLY','length','548918PgOdSq','code','message','msg','keys','Connection\x20check\x20finished\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','40144xdmdsM','slice','256383sjrwGO','7YRfFJZ','data','839385defOpw','num','error','92804UAMYbL','8130020FQBZYs','10QyfyCO','11JqpAfP','success','73596vsVqcf','object','Connection\x20OK\x20for\x20db\x20link\x20','test'];a93_0x29ff=function(){return _0x41d8d2;};return a93_0x29ff();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x13a98c){const _0x57d35e=a93_0x3a75;if(_0x13a98c===!![]||_0x13a98c===![])return{'success':_0x13a98c};if(_0x13a98c===null||_0x13a98c===undefined)return{'type':typeof _0x13a98c};if(typeof _0x13a98c!==_0x57d35e(0xa2))return{'type':typeof _0x13a98c};const _0x444ac3=_0x13a98c,_0x48ebfa=[_0x57d35e(0xa0),_0x57d35e(0xaa),_0x57d35e(0xa9),_0x57d35e(0x9b),_0x57d35e(0xab),_0x57d35e(0x98)],_0x21d995={};for(const _0x4609eb of _0x48ebfa){if(_0x4609eb in _0x444ac3)_0x21d995[_0x4609eb]=_0x444ac3[_0x4609eb];}return Object[_0x57d35e(0xac)](_0x21d995)[_0x57d35e(0xa7)]===0x0&&(_0x21d995['keys']=Object[_0x57d35e(0xac)](_0x444ac3)[_0x57d35e(0xb0)](0x0,0x14)),_0x21d995;}export const dbTest={'service':'db','command':a93_0x23c384(0xa4),'description':a93_0x23c384(0xae),'risk':a93_0x23c384(0xa5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3aedf0){const _0xcdd655=a93_0x23c384,_0x377b2e=_0x3aedf0[_0xcdd655(0x9a)]('id'),_0x236de9=await testDbLinkConnect(_0x377b2e),_0x3bb05b=_0x236de9===!![]||typeof _0x236de9===_0xcdd655(0xa2)&&_0x236de9!==null&&_0x236de9[_0xcdd655(0xa0)]===!![],_0x1daa30=summarizeTestConnectResult(_0x236de9);return{'ok':!![],'data':{'id':_0x377b2e,'connected':Boolean(_0x3bb05b),'result':_0x1daa30},'message':_0x3bb05b?_0xcdd655(0xa3)+_0x377b2e:_0xcdd655(0xad)+_0x377b2e+'\x20(see\x20data.result)'};}};
1
+ const a93_0x2b3bf3=a93_0x61ad;(function(_0x5ddb0a,_0x12fd67){const _0x58480f=a93_0x61ad,_0x58d1c0=_0x5ddb0a();while(!![]){try{const _0x1042c4=parseInt(_0x58480f(0x1ea))/0x1+parseInt(_0x58480f(0x1eb))/0x2+-parseInt(_0x58480f(0x1ee))/0x3*(parseInt(_0x58480f(0x1e1))/0x4)+-parseInt(_0x58480f(0x1e8))/0x5*(parseInt(_0x58480f(0x1e0))/0x6)+parseInt(_0x58480f(0x1df))/0x7+parseInt(_0x58480f(0x1e6))/0x8+-parseInt(_0x58480f(0x1e4))/0x9;if(_0x1042c4===_0x12fd67)break;else _0x58d1c0['push'](_0x58d1c0['shift']());}catch(_0x38649e){_0x58d1c0['push'](_0x58d1c0['shift']());}}}(a93_0x5328,0x5489d));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a93_0x61ad(_0xe62809,_0x51b2e4){_0xe62809=_0xe62809-0x1dd;const _0x5328e3=a93_0x5328();let _0x61ad28=_0x5328e3[_0xe62809];return _0x61ad28;}function summarizeTestConnectResult(_0x565927){const _0x313f78=a93_0x61ad;if(_0x565927===!![]||_0x565927===![])return{'success':_0x565927};if(_0x565927===null||_0x565927===undefined)return{'type':typeof _0x565927};if(typeof _0x565927!=='object')return{'type':typeof _0x565927};const _0x22a27a=_0x565927,_0x8ae1d=['success',_0x313f78(0x1ed),_0x313f78(0x1e7),_0x313f78(0x1dd),'msg','data'],_0x3f0137={};for(const _0x491dbc of _0x8ae1d){if(_0x491dbc in _0x22a27a)_0x3f0137[_0x491dbc]=_0x22a27a[_0x491dbc];}return Object[_0x313f78(0x1e9)](_0x3f0137)['length']===0x0&&(_0x3f0137[_0x313f78(0x1e9)]=Object['keys'](_0x22a27a)[_0x313f78(0x1e2)](0x0,0x14)),_0x3f0137;}function a93_0x5328(){const _0x179a57=['num','error','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','4765684NNPcjd','48936VVtkqm','103664olwzhT','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','2705949pCnVbR','\x20(see\x20data.result)','1864208UHNsJT','code','355kWulkC','keys','494346dKdQEI','827780htkLoW','Connection\x20OK\x20for\x20db\x20link\x20','message','69AgdZBR','read','test'];a93_0x5328=function(){return _0x179a57;};return a93_0x5328();}export const dbTest={'service':'db','command':a93_0x2b3bf3(0x1f0),'description':a93_0x2b3bf3(0x1de),'risk':a93_0x2b3bf3(0x1ef),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x303406){const _0x1f3ccf=a93_0x2b3bf3,_0x4f9e0e=_0x303406[_0x1f3ccf(0x1f1)]('id'),_0x4061c8=await testDbLinkConnect(_0x4f9e0e),_0x1bac0b=_0x4061c8===!![]||typeof _0x4061c8==='object'&&_0x4061c8!==null&&_0x4061c8['success']===!![],_0x46f05e=summarizeTestConnectResult(_0x4061c8);return{'ok':!![],'data':{'id':_0x4f9e0e,'connected':Boolean(_0x1bac0b),'result':_0x46f05e},'message':_0x1bac0b?_0x1f3ccf(0x1ec)+_0x4f9e0e:_0x1f3ccf(0x1e3)+_0x4f9e0e+_0x1f3ccf(0x1e5)};}};
@@ -1 +1 @@
1
- const a94_0x502195=a94_0x3f3b;(function(_0x22ee53,_0x175f5d){const _0x5e6067=a94_0x3f3b,_0x519840=_0x22ee53();while(!![]){try{const _0x3f8aa9=parseInt(_0x5e6067(0x122))/0x1*(-parseInt(_0x5e6067(0x137))/0x2)+parseInt(_0x5e6067(0x120))/0x3+-parseInt(_0x5e6067(0x134))/0x4+parseInt(_0x5e6067(0x135))/0x5+parseInt(_0x5e6067(0x129))/0x6+parseInt(_0x5e6067(0x132))/0x7*(-parseInt(_0x5e6067(0x139))/0x8)+parseInt(_0x5e6067(0x142))/0x9;if(_0x3f8aa9===_0x175f5d)break;else _0x519840['push'](_0x519840['shift']());}catch(_0x3d7f9e){_0x519840['push'](_0x519840['shift']());}}}(a94_0x1c63,0x6c6a8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a94_0x502195(0x12d),a94_0x502195(0x127)]);function mergeDbLinkUpdate(_0x5a7a71,_0x36159a){const _0x48ac7f=a94_0x502195,_0x1cb908={..._0x5a7a71},_0x1b811f=_0x36159a[_0x48ac7f(0x123)]('password');if(_0x1b811f&&MASKED_PASSWORD_VALUES[_0x48ac7f(0x138)](_0x1b811f))throw CliErrors['validation']('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x1b811f&&MASKED_PASSWORD_VALUES[_0x48ac7f(0x138)](String(_0x5a7a71['password']??'')))throw CliErrors[_0x48ac7f(0x130)](_0x48ac7f(0x13d));const _0x164f8a=_0x36159a[_0x48ac7f(0x123)]('dbname');if(_0x164f8a)_0x1cb908[_0x48ac7f(0x141)]=_0x164f8a;const _0x23f835=_0x36159a['str'](_0x48ac7f(0x12e));if(_0x23f835)_0x1cb908[_0x48ac7f(0x126)]=_0x23f835[_0x48ac7f(0x13c)]();const _0x3503de=_0x36159a[_0x48ac7f(0x123)]('username');if(_0x3503de)_0x1cb908[_0x48ac7f(0x13a)]=_0x3503de;if(_0x1b811f)_0x1cb908[_0x48ac7f(0x133)]=_0x1b811f;const _0x2e1f17=_0x36159a[_0x48ac7f(0x123)](_0x48ac7f(0x125));if(_0x2e1f17)_0x1cb908[_0x48ac7f(0x13b)]=_0x2e1f17;const _0x202037=_0x36159a[_0x48ac7f(0x123)](_0x48ac7f(0x121));if(_0x202037)_0x1cb908[_0x48ac7f(0x136)]=_0x202037;return _0x1cb908;}function a94_0x1c63(){const _0x408ad6=['dbName','8822214dhgejp','write','New\x20database\x20name','1390455GarEQy','dbdesc','817043GNTCrs','str','update','dbparam','dbUrl','[redacted]','Updated\x20db\x20link\x20','3459960pPRJyt','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','POST','string','******','dburl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','validation','skip-connection-test','5082049scpuCI','password','1700684PFJzjW','1959510izswVx','dbDesc','2Xvaiqv','has','8eKZtUe','username','dbParam','trim','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','num','dbname','bool'];a94_0x1c63=function(){return _0x408ad6;};return a94_0x1c63();}function a94_0x3f3b(_0x5c07e2,_0xc723f3){_0x5c07e2=_0x5c07e2-0x11e;const _0x1c632f=a94_0x1c63();let _0x3f3b9e=_0x1c632f[_0x5c07e2];return _0x3f3b9e;}export const dbUpdate={'service':'db','command':a94_0x502195(0x124),'description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a94_0x502195(0x11e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x502195(0x13f),'type':a94_0x502195(0x12c),'description':a94_0x502195(0x11f)},{'name':a94_0x502195(0x12e),'type':a94_0x502195(0x12c),'description':'New\x20host:port'},{'name':a94_0x502195(0x13a),'type':a94_0x502195(0x12c),'description':'New\x20username'},{'name':a94_0x502195(0x133),'type':a94_0x502195(0x12c),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a94_0x502195(0x125),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':'string','description':'New\x20description'},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4bbc36){const _0x33d8bb=a94_0x502195,_0x1be399=_0x4bbc36[_0x33d8bb(0x123)](_0x33d8bb(0x12e));if(_0x1be399&&!validateDbUrl(_0x1be399[_0x33d8bb(0x13c)]()))throw CliErrors[_0x33d8bb(0x130)](_0x33d8bb(0x12f)+_0x1be399+'\x22');},async 'dryRun'(_0x47dae1){const _0x2b381d=a94_0x502195,_0x54771e=_0x47dae1[_0x2b381d(0x13e)]('id'),_0x47abfd=await getDbLinkInfo(_0x54771e),_0x281552=mergeDbLinkUpdate(_0x47abfd,_0x47dae1),_0x2b3a82=sanitizeDbLinkForOutput(_0x281552);return{'method':_0x2b381d(0x12b),'url':'/smartapi/dblink/update','body':_0x2b3a82,'description':_0x2b381d(0x12a),'connectionPreflight':{'enabled':!_0x47dae1[_0x2b381d(0x140)](_0x2b381d(0x131)),'executed':![]}};},async 'execute'(_0x4e74bd){const _0x42454f=a94_0x502195,_0x979e1c=_0x4e74bd[_0x42454f(0x13e)]('id'),_0x1bb2a7=await getDbLinkInfo(_0x979e1c),_0x3a005e=mergeDbLinkUpdate(_0x1bb2a7,_0x4e74bd);!_0x4e74bd['bool'](_0x42454f(0x131))&&await assertDbLinkConnectionPreflight(_0x3a005e);const {id:_0x16e7c7,entity:_0x4aa32c}=normalizeEntityWithIdResponse(await updateDbLink(_0x3a005e));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4aa32c),'message':_0x42454f(0x128)+(_0x16e7c7??_0x979e1c)};}};
1
+ function a94_0x37b8(_0x556f76,_0x5ea3b9){_0x556f76=_0x556f76-0x15b;const _0x1391bf=a94_0x1391();let _0x37b8b4=_0x1391bf[_0x556f76];return _0x37b8b4;}const a94_0x3cfd4a=a94_0x37b8;function a94_0x1391(){const _0x45ae15=['New\x20host:port','dbparam','17586792EwlDtl','/smartapi/dblink/update','trim','New\x20connection\x20parameter\x20string','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','1083644inkACK','11461848mPUZxz','dburl','24JikcKg','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','dbName','write','num','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','1583099XyuluN','validation','username','update','has','[redacted]','POST','str','bool','6YYgwVN','string','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbDesc','2419928EYCCSZ','******','password','New\x20description','dbname','skip-connection-test','dbParam','dbdesc','117295XdCKbm','11576334bJsHOw','New\x20database\x20name'];a94_0x1391=function(){return _0x45ae15;};return a94_0x1391();}(function(_0x2fee7e,_0x556602){const _0x40a742=a94_0x37b8,_0x37272a=_0x2fee7e();while(!![]){try{const _0xd0cc47=parseInt(_0x40a742(0x177))/0x1+-parseInt(_0x40a742(0x16e))/0x2+-parseInt(_0x40a742(0x180))/0x3*(parseInt(_0x40a742(0x15c))/0x4)+-parseInt(_0x40a742(0x164))/0x5*(parseInt(_0x40a742(0x171))/0x6)+parseInt(_0x40a742(0x165))/0x7+parseInt(_0x40a742(0x16f))/0x8+-parseInt(_0x40a742(0x169))/0x9;if(_0xd0cc47===_0x556602)break;else _0x37272a['push'](_0x37272a['shift']());}catch(_0x44ee67){_0x37272a['push'](_0x37272a['shift']());}}}(a94_0x1391,0xd45fa));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG,SKIP_CONNECTION_TEST_FLAG}from'../../commands/common/flags.js';import{assertDbLinkConnectionPreflight,sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';const MASKED_PASSWORD_VALUES=new Set([a94_0x3cfd4a(0x15d),a94_0x3cfd4a(0x17c)]);function mergeDbLinkUpdate(_0x2e004a,_0x33a44e){const _0xe21d7f=a94_0x3cfd4a,_0x230333={..._0x2e004a},_0x4f3018=_0x33a44e['str'](_0xe21d7f(0x15e));if(_0x4f3018&&MASKED_PASSWORD_VALUES[_0xe21d7f(0x17b)](_0x4f3018))throw CliErrors[_0xe21d7f(0x178)](_0xe21d7f(0x16d));if(!_0x4f3018&&MASKED_PASSWORD_VALUES[_0xe21d7f(0x17b)](String(_0x2e004a[_0xe21d7f(0x15e)]??'')))throw CliErrors['validation']('The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.');const _0x357dd4=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x160));if(_0x357dd4)_0x230333[_0xe21d7f(0x173)]=_0x357dd4;const _0x16972d=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x170));if(_0x16972d)_0x230333['dbUrl']=_0x16972d['trim']();const _0x2dad45=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x179));if(_0x2dad45)_0x230333[_0xe21d7f(0x179)]=_0x2dad45;if(_0x4f3018)_0x230333[_0xe21d7f(0x15e)]=_0x4f3018;const _0x46b31b=_0x33a44e[_0xe21d7f(0x17e)](_0xe21d7f(0x168));if(_0x46b31b)_0x230333[_0xe21d7f(0x162)]=_0x46b31b;const _0xdbad67=_0x33a44e['str']('dbdesc');if(_0xdbad67)_0x230333[_0xe21d7f(0x15b)]=_0xdbad67;return _0x230333;}export const dbUpdate={'service':'db','command':a94_0x3cfd4a(0x17a),'description':a94_0x3cfd4a(0x176),'risk':a94_0x3cfd4a(0x174),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x3cfd4a(0x160),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x166)},{'name':'dburl','type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x167)},{'name':a94_0x3cfd4a(0x179),'type':a94_0x3cfd4a(0x181),'description':'New\x20username'},{'name':a94_0x3cfd4a(0x15e),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x182)},{'name':a94_0x3cfd4a(0x168),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x16c)},{'name':a94_0x3cfd4a(0x163),'type':a94_0x3cfd4a(0x181),'description':a94_0x3cfd4a(0x15f)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x4b8fe8){const _0x317f0c=a94_0x3cfd4a,_0x16c289=_0x4b8fe8[_0x317f0c(0x17e)](_0x317f0c(0x170));if(_0x16c289&&!validateDbUrl(_0x16c289[_0x317f0c(0x16b)]()))throw CliErrors[_0x317f0c(0x178)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x16c289+'\x22');},async 'dryRun'(_0x1f72dc){const _0x4c3ec0=a94_0x3cfd4a,_0x3c928e=_0x1f72dc[_0x4c3ec0(0x175)]('id'),_0x56533f=await getDbLinkInfo(_0x3c928e),_0x3dcecc=mergeDbLinkUpdate(_0x56533f,_0x1f72dc),_0x7fb5b8=sanitizeDbLinkForOutput(_0x3dcecc);return{'method':_0x4c3ec0(0x17d),'url':_0x4c3ec0(0x16a),'body':_0x7fb5b8,'description':_0x4c3ec0(0x172),'connectionPreflight':{'enabled':!_0x1f72dc[_0x4c3ec0(0x17f)](_0x4c3ec0(0x161)),'executed':![]}};},async 'execute'(_0x49707f){const _0x2f9e81=a94_0x3cfd4a,_0x2dd408=_0x49707f[_0x2f9e81(0x175)]('id'),_0x37456c=await getDbLinkInfo(_0x2dd408),_0xe1a2ad=mergeDbLinkUpdate(_0x37456c,_0x49707f);!_0x49707f[_0x2f9e81(0x17f)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0xe1a2ad);const {id:_0x25b417,entity:_0x5004b0}=normalizeEntityWithIdResponse(await updateDbLink(_0xe1a2ad));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x5004b0),'message':'Updated\x20db\x20link\x20'+(_0x25b417??_0x2dd408)};}};
@@ -1 +1 @@
1
- function a95_0x5a1f(_0x381e3c,_0x30734b){_0x381e3c=_0x381e3c-0x1a1;const _0x3e5224=a95_0x3e52();let _0x5a1f1d=_0x3e5224[_0x381e3c];return _0x5a1f1d;}const a95_0x51a993=a95_0x5a1f;(function(_0x5f13f7,_0x2dc659){const _0x179a28=a95_0x5a1f,_0x3e5284=_0x5f13f7();while(!![]){try{const _0x2047a0=-parseInt(_0x179a28(0x1bb))/0x1*(-parseInt(_0x179a28(0x1df))/0x2)+-parseInt(_0x179a28(0x1c8))/0x3+parseInt(_0x179a28(0x1a1))/0x4*(parseInt(_0x179a28(0x203))/0x5)+-parseInt(_0x179a28(0x1e8))/0x6+parseInt(_0x179a28(0x1fe))/0x7+-parseInt(_0x179a28(0x1ab))/0x8+-parseInt(_0x179a28(0x1e2))/0x9;if(_0x2047a0===_0x2dc659)break;else _0x3e5284['push'](_0x3e5284['shift']());}catch(_0x173a34){_0x3e5284['push'](_0x3e5284['shift']());}}}(a95_0x3e52,0xada3e));import a95_0x4b57c8 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a95_0x3e52(){const _0x333ba2=['current','status','✓\x20Valid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','read','(not\x20set)','check','repeat','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','9683681ODHacj','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','(set,\x20length=','\x20\x20Auth','5dnmiZW','5057512gubMpn','\x20\x20Apps','green','✗\x20Expired','(default:\x20','keys','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1133952iuFoBI','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','accessKey','reason','env','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Skill\x20Version:\x20\x20\x20','(set\x20via\x20file,\x20length=','\x20\x20Config\x20Files','(no\x20file)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','unknown','cookie','\x20\x20Built-in\x20Skill','repairCommand','101eOKDqL','apiDir','source','explicitAppName','✓\x20Valid','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','✗\x20Invalid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','823452ycpfyx','\x20\x20API\x20Endpoints','red','\x20\x20runtimeDomain:\x20\x20\x20','message','slice','appcode','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20─','(missing)','padEnd','(none)','log','platform','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','state','locale','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','apps','format','8402wIggZr','\x20(default)','arch','15211890ZMnoad','bold','riskLevel','\x20\x20Package\x20Version:\x20','empty','currentApp','1526364dQgYMi','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','pageSize','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Merged\x20Config','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a95_0x3e52=function(){return _0x333ba2;};return a95_0x3e52();}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';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x653ca0){const _0x113a41=a95_0x5a1f,_0x34e877=GIT_COMMIT!==_0x113a41(0x1b7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x113a41(0x1cd)](0x0,0xa)+')':VERSION,_0x28af5d=buildConfigFromFlags({}),_0x230a84=getCookie();console[_0x113a41(0x1d5)](),console[_0x113a41(0x1d5)](a95_0x4b57c8['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1c5)]('─'['repeat'](0x32))),console[_0x113a41(0x1d5)](_0x113a41(0x1ac)+_0x34e877),console[_0x113a41(0x1d5)](_0x113a41(0x1aa)+process[_0x113a41(0x1d8)]),console[_0x113a41(0x1d5)](_0x113a41(0x1ec)+process[_0x113a41(0x1d6)]+'\x20'+process[_0x113a41(0x1e1)]);const _0x585f8b=inspectBuiltinSkill();console['log'](),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1e3)](_0x113a41(0x1b9))),console['log'](a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d1)[_0x113a41(0x1fc)](0x1e)));const _0x58ad4b=_0x585f8b[_0x113a41(0x1d9)]===_0x113a41(0x1f5)?a95_0x4b57c8[_0x113a41(0x1a3)]('✓\x20'+_0x585f8b['state']):a95_0x4b57c8[_0x113a41(0x1ca)]('✗\x20'+_0x585f8b[_0x113a41(0x1d9)]);console[_0x113a41(0x1d5)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58ad4b),console[_0x113a41(0x1d5)](_0x113a41(0x1e5)+_0x585f8b['packageVersion']),console[_0x113a41(0x1d5)](_0x113a41(0x1b2)+(_0x585f8b['skillVersion']||a95_0x4b57c8['gray']('(unknown)'))),console[_0x113a41(0x1d5)]('\x20\x20Installed\x20Path:\x20\x20'+(_0x585f8b['installedPath']||a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1f3))));if(_0x585f8b[_0x113a41(0x1af)])console[_0x113a41(0x1d5)](_0x113a41(0x1c3)+_0x585f8b[_0x113a41(0x1af)]);_0x585f8b[_0x113a41(0x1d9)]!==_0x113a41(0x1f5)&&console[_0x113a41(0x1d5)](_0x113a41(0x1f4)+_0x585f8b[_0x113a41(0x1ba)]);console['log'](),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1e3)](_0x113a41(0x1b4))),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d1)['repeat'](0x1e)));const _0x3996f2=getGlobalConfigPath(),_0x47bf9b=getProjectConfigPath();console[_0x113a41(0x1d5)](_0x113a41(0x1e9)+(_0x3996f2||a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1f3)))),console[_0x113a41(0x1d5)](_0x113a41(0x1ff)+(_0x47bf9b||a95_0x4b57c8['gray'](_0x113a41(0x1f3)))),console[_0x113a41(0x1d5)](),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1e3)]('\x20\x20Config\x20JSON')),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1c5)]('\x20\x20─'[_0x113a41(0x1fc)](0x1e)));const _0x45300e=(_0x248a0e,_0x133bb3)=>{const _0x1334a5=_0x113a41;if(!_0x133bb3){console[_0x1334a5(0x1d5)]('\x20\x20'+_0x248a0e[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8[_0x1334a5(0x1c5)](_0x1334a5(0x1b5)));return;}const _0x17a56f=inspectCliConfigJsonFile(_0x133bb3);if(_0x17a56f['status']==='ok')console[_0x1334a5(0x1d5)]('\x20\x20'+_0x248a0e[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8[_0x1334a5(0x1a3)](_0x1334a5(0x1f7)));else{if(_0x17a56f[_0x1334a5(0x1f6)]===_0x1334a5(0x1e6))console[_0x1334a5(0x1d5)]('\x20\x20'+_0x248a0e[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8['yellow'](_0x1334a5(0x1f8)));else _0x17a56f['status']==='missing'?console[_0x1334a5(0x1d5)]('\x20\x20'+_0x248a0e[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8[_0x1334a5(0x1c5)](_0x1334a5(0x1d2))):(console[_0x1334a5(0x1d5)]('\x20\x20'+_0x248a0e[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8['red'](_0x1334a5(0x1c6))),console[_0x1334a5(0x1d5)]('\x20\x20'+''[_0x1334a5(0x1d3)](0x11)+'\x20'+a95_0x4b57c8[_0x1334a5(0x1ca)](_0x17a56f[_0x1334a5(0x1cc)])));}};_0x45300e('Global',_0x3996f2),_0x45300e(_0x113a41(0x1f0),_0x47bf9b),console[_0x113a41(0x1d5)](),console['log'](a95_0x4b57c8['bold'](_0x113a41(0x1ee))),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1c5)]('\x20\x20─'[_0x113a41(0x1fc)](0x1e))),console[_0x113a41(0x1d5)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28af5d[_0x113a41(0x1ad)]||a95_0x4b57c8['red'](_0x113a41(0x1fa)))),console[_0x113a41(0x1d5)](_0x113a41(0x1f2)+_0x28af5d[_0x113a41(0x1b0)]),console[_0x113a41(0x1d5)](_0x113a41(0x1d7)+_0x28af5d[_0x113a41(0x1da)]),console[_0x113a41(0x1d5)](_0x113a41(0x1a7)+_0x28af5d[_0x113a41(0x1bc)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x28af5d[_0x113a41(0x1a9)]||a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d4)))),console[_0x113a41(0x1d5)](_0x113a41(0x1a8)+(_0x28af5d[_0x113a41(0x1e7)]||a95_0x4b57c8['gray'](_0x113a41(0x1d4)))),console[_0x113a41(0x1d5)]('\x20\x20explicitAppName:\x20'+(_0x28af5d[_0x113a41(0x1be)]||a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d4)))),console[_0x113a41(0x1d5)](_0x113a41(0x1c4)+(_0x28af5d[_0x113a41(0x1de)]||a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1a5)+DEFAULT_CONFIG_VALUES[_0x113a41(0x1de)]+')'))),console[_0x113a41(0x1d5)](_0x113a41(0x1cf)+(_0x28af5d[_0x113a41(0x1eb)]??a95_0x4b57c8[_0x113a41(0x1c5)]('(default)'))),console[_0x113a41(0x1d5)](_0x113a41(0x1c0)+_0x28af5d[_0x113a41(0x1e4)]),console['log'](_0x113a41(0x1ef)+_0x28af5d['verbose']),console[_0x113a41(0x1d5)](_0x113a41(0x1fd)+(_0x28af5d[_0x113a41(0x1b8)]?a95_0x4b57c8[_0x113a41(0x1a3)]('(set,\x20length='+_0x28af5d[_0x113a41(0x1b8)][_0x113a41(0x1ea)]+')'):_0x230a84?a95_0x4b57c8['green'](_0x113a41(0x1b3)+_0x230a84[_0x113a41(0x1ea)]+')'):a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d4))));const _0x338818=Object[_0x113a41(0x1a6)](_0x28af5d[_0x113a41(0x1dd)]);if(_0x338818['length']>0x0){console[_0x113a41(0x1d5)](),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1e3)](_0x113a41(0x1a2))),console['log'](a95_0x4b57c8[_0x113a41(0x1c5)]('\x20\x20─'[_0x113a41(0x1fc)](0x1e)));for(const _0x234a2d of _0x338818){const _0x56f4dd=_0x28af5d[_0x113a41(0x1dd)][_0x234a2d],_0xb46822=_0x234a2d===_0x28af5d[_0x113a41(0x1a9)],_0x166135=_0x234a2d===_0x28af5d[_0x113a41(0x1e7)],_0x10aa20=_0x166135?a95_0x4b57c8['green'](_0x113a41(0x1c1)):'',_0x406ea9=_0xb46822?_0x113a41(0x1e0):'';console[_0x113a41(0x1d5)]('\x20\x20'+_0x234a2d+_0x406ea9+_0x10aa20),console[_0x113a41(0x1d5)](_0x113a41(0x1d0)+_0x56f4dd[_0x113a41(0x1ce)]);const _0x1c65a9=buildAppDoctorFields(_0x56f4dd,{'env':_0x28af5d[_0x113a41(0x1b0)],'apiDir':_0x28af5d['raw']['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x28af5d[_0x113a41(0x1b8)]||_0x230a84||undefined,'accessKey':_0x28af5d[_0x113a41(0x1ae)]});console['log'](_0x113a41(0x1b1)+_0x1c65a9[_0x113a41(0x1b0)][_0x113a41(0x1f1)]+'\x20\x20'+a95_0x4b57c8['gray']('('+_0x1c65a9[_0x113a41(0x1b0)][_0x113a41(0x1bd)]+')')),console[_0x113a41(0x1d5)](_0x113a41(0x1b6)+_0x1c65a9[_0x113a41(0x1bc)][_0x113a41(0x1f1)]+'\x20\x20'+a95_0x4b57c8['gray']('('+_0x1c65a9[_0x113a41(0x1bc)][_0x113a41(0x1bd)]+')'));const _0x50751c=_0x1c65a9[_0x113a41(0x1b8)][_0x113a41(0x1f1)]?a95_0x4b57c8[_0x113a41(0x1a3)](_0x113a41(0x201)+_0x1c65a9[_0x113a41(0x1b8)][_0x113a41(0x1f1)][_0x113a41(0x1ea)]+')'):a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d4));console[_0x113a41(0x1d5)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x50751c+'\x20\x20'+a95_0x4b57c8[_0x113a41(0x1c5)]('('+_0x1c65a9[_0x113a41(0x1b8)][_0x113a41(0x1bd)]+')'));const _0x46839e=_0x1c65a9[_0x113a41(0x1ae)][_0x113a41(0x1f1)]?a95_0x4b57c8['green'](_0x113a41(0x201)+_0x1c65a9[_0x113a41(0x1ae)]['value']['length']+')'):a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d4));console[_0x113a41(0x1d5)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x46839e+'\x20\x20'+a95_0x4b57c8['gray']('('+_0x1c65a9[_0x113a41(0x1ae)][_0x113a41(0x1bd)]+')'));}}console['log'](),console[_0x113a41(0x1d5)](a95_0x4b57c8['bold'](_0x113a41(0x1c9))),console['log'](a95_0x4b57c8[_0x113a41(0x1c5)](_0x113a41(0x1d1)[_0x113a41(0x1fc)](0x1e))),console['log'](_0x113a41(0x1c7)+getApiDomain()),console[_0x113a41(0x1d5)](_0x113a41(0x1c2)+getUserDomain()),console['log'](_0x113a41(0x1cb)+getRuntimeDomain()),console[_0x113a41(0x1d5)](),console[_0x113a41(0x1d5)](a95_0x4b57c8[_0x113a41(0x1e3)](_0x113a41(0x202))),console[_0x113a41(0x1d5)](a95_0x4b57c8['gray'](_0x113a41(0x1d1)[_0x113a41(0x1fc)](0x1e)));if(_0x230a84){const _0x44fed9=await getIsSessionValid();console[_0x113a41(0x1d5)](_0x113a41(0x1db)+(_0x44fed9?a95_0x4b57c8['green'](_0x113a41(0x1bf)):a95_0x4b57c8[_0x113a41(0x1ca)](_0x113a41(0x1a4))));}else console['log'](_0x113a41(0x1db)+a95_0x4b57c8[_0x113a41(0x1ca)](_0x113a41(0x200)));return console[_0x113a41(0x1d5)](),{'ok':!![]};}export const doctorDefinition={'service':a95_0x51a993(0x1dc),'command':a95_0x51a993(0x1fb),'description':a95_0x51a993(0x1ed),'risk':a95_0x51a993(0x1f9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a95_0x545fa7=a95_0x2b8c;(function(_0x47e780,_0x1f3990){const _0x1f427b=a95_0x2b8c,_0x2953e5=_0x47e780();while(!![]){try{const _0x277fda=-parseInt(_0x1f427b(0xc7))/0x1*(parseInt(_0x1f427b(0xf8))/0x2)+-parseInt(_0x1f427b(0x100))/0x3*(-parseInt(_0x1f427b(0xfd))/0x4)+-parseInt(_0x1f427b(0xfc))/0x5+-parseInt(_0x1f427b(0x106))/0x6+-parseInt(_0x1f427b(0x114))/0x7+-parseInt(_0x1f427b(0xda))/0x8+parseInt(_0x1f427b(0xe5))/0x9;if(_0x277fda===_0x1f3990)break;else _0x2953e5['push'](_0x2953e5['shift']());}catch(_0xc0bcff){_0x2953e5['push'](_0x2953e5['shift']());}}}(a95_0x2664,0x85573));import a95_0x4242e6 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a95_0x2b8c(_0x3087ba,_0x4614bf){_0x3087ba=_0x3087ba-0xc6;const _0x26645e=a95_0x2664();let _0x2b8cd4=_0x26645e[_0x3087ba];return _0x2b8cd4;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x12c7c5){const _0xcf25b2=a95_0x2b8c,_0x1b34ba=GIT_COMMIT!==_0xcf25b2(0x118)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xcf25b2(0xeb)](0x0,0xa)+')':VERSION,_0x37e811=buildConfigFromFlags({}),_0x5144dc=getCookie();console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6[_0xcf25b2(0xf1)](CLI_BIN_NAME+'\x20doctor')),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('─'[_0xcf25b2(0xdf)](0x32))),console[_0xcf25b2(0x119)](_0xcf25b2(0xd7)+_0x1b34ba),console[_0xcf25b2(0x119)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0xcf25b2(0x119)](_0xcf25b2(0xd1)+process[_0xcf25b2(0xec)]+'\x20'+process['arch']);const _0x4ac9dc=inspectBuiltinSkill();console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xf1)]('\x20\x20Built-in\x20Skill')),console[_0xcf25b2(0x119)](a95_0x4242e6['gray'](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));const _0x3aff4a=_0x4ac9dc[_0xcf25b2(0x10a)]===_0xcf25b2(0xf6)?a95_0x4242e6['green']('✓\x20'+_0x4ac9dc[_0xcf25b2(0x10a)]):a95_0x4242e6[_0xcf25b2(0xea)]('✗\x20'+_0x4ac9dc[_0xcf25b2(0x10a)]);console[_0xcf25b2(0x119)](_0xcf25b2(0xca)+_0x3aff4a),console[_0xcf25b2(0x119)](_0xcf25b2(0xe7)+_0x4ac9dc['packageVersion']),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x4ac9dc[_0xcf25b2(0x10d)]||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xd3)))),console[_0xcf25b2(0x119)](_0xcf25b2(0xd6)+(_0x4ac9dc['installedPath']||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xf9))));if(_0x4ac9dc[_0xcf25b2(0xcd)])console[_0xcf25b2(0x119)](_0xcf25b2(0x108)+_0x4ac9dc[_0xcf25b2(0xcd)]);_0x4ac9dc[_0xcf25b2(0x10a)]!==_0xcf25b2(0xf6)&&console[_0xcf25b2(0x119)](_0xcf25b2(0xd4)+_0x4ac9dc['repairCommand']);console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6[_0xcf25b2(0xf1)](_0xcf25b2(0xe3))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));const _0xb0a6c3=getGlobalConfigPath(),_0x471c0a=getProjectConfigPath();console[_0xcf25b2(0x119)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xb0a6c3||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0xf9)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x471c0a||a95_0x4242e6['gray'](_0xcf25b2(0xf9)))),console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6['bold'](_0xcf25b2(0xe0))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('\x20\x20─'[_0xcf25b2(0xdf)](0x1e)));const _0x749538=(_0x208570,_0x106e33)=>{const _0x4249a5=_0xcf25b2;if(!_0x106e33){console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xce)](_0x4249a5(0x102)));return;}const _0x17f2f9=inspectCliConfigJsonFile(_0x106e33);if(_0x17f2f9[_0x4249a5(0xd2)]==='ok')console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0x110)](_0x4249a5(0xc8)));else{if(_0x17f2f9[_0x4249a5(0xd2)]===_0x4249a5(0xed))console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xff)](_0x4249a5(0x101)));else _0x17f2f9[_0x4249a5(0xd2)]===_0x4249a5(0x115)?console[_0x4249a5(0x119)]('\x20\x20'+_0x208570[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xce)](_0x4249a5(0x109))):(console['log']('\x20\x20'+_0x208570['padEnd'](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xea)]('✗\x20Invalid\x20JSON')),console[_0x4249a5(0x119)]('\x20\x20'+''[_0x4249a5(0xfe)](0x11)+'\x20'+a95_0x4242e6[_0x4249a5(0xea)](_0x17f2f9['message'])));}};_0x749538(_0xcf25b2(0x112),_0xb0a6c3),_0x749538('Project',_0x471c0a),console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6['bold']('\x20\x20Merged\x20Config')),console['log'](a95_0x4242e6['gray'](_0xcf25b2(0x10e)['repeat'](0x1e))),console[_0xcf25b2(0x119)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xe2)]||a95_0x4242e6[_0xcf25b2(0xea)](_0xcf25b2(0xd9)))),console[_0xcf25b2(0x119)](_0xcf25b2(0x10c)+_0x37e811[_0xcf25b2(0xf7)]),console[_0xcf25b2(0x119)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x37e811['locale']),console['log'](_0xcf25b2(0xe6)+_0x37e811['apiDir']),console['log'](_0xcf25b2(0xcc)+(_0x37e811['defaultApp']||a95_0x4242e6['gray'](_0xcf25b2(0x107)))),console['log'](_0xcf25b2(0x105)+(_0x37e811[_0xcf25b2(0x117)]||a95_0x4242e6['gray'](_0xcf25b2(0x107)))),console[_0xcf25b2(0x119)](_0xcf25b2(0xfb)+(_0x37e811[_0xcf25b2(0xd5)]||a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x107)))),console[_0xcf25b2(0x119)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xf0)]||a95_0x4242e6['gray'](_0xcf25b2(0xf5)+DEFAULT_CONFIG_VALUES[_0xcf25b2(0xf0)]+')'))),console[_0xcf25b2(0x119)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811['pageSize']??a95_0x4242e6[_0xcf25b2(0xce)]('(default)'))),console[_0xcf25b2(0x119)](_0xcf25b2(0xe1)+_0x37e811[_0xcf25b2(0xef)]),console[_0xcf25b2(0x119)](_0xcf25b2(0xfa)+_0x37e811[_0xcf25b2(0x104)]),console[_0xcf25b2(0x119)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x37e811[_0xcf25b2(0xf2)]?a95_0x4242e6['green'](_0xcf25b2(0xc9)+_0x37e811['cookie']['length']+')'):_0x5144dc?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xdc)+_0x5144dc[_0xcf25b2(0xd0)]+')'):a95_0x4242e6['gray'](_0xcf25b2(0x107))));const _0x4c3618=Object[_0xcf25b2(0xf4)](_0x37e811[_0xcf25b2(0x113)]);if(_0x4c3618[_0xcf25b2(0xd0)]>0x0){console[_0xcf25b2(0x119)](),console['log'](a95_0x4242e6['bold']('\x20\x20Apps')),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));for(const _0x5e385e of _0x4c3618){const _0x45d45e=_0x37e811['apps'][_0x5e385e],_0x2b2b6a=_0x5e385e===_0x37e811[_0xcf25b2(0x103)],_0x3f7f13=_0x5e385e===_0x37e811[_0xcf25b2(0x117)],_0x22c281=_0x3f7f13?a95_0x4242e6['green']('\x20←\x20current'):'',_0x234820=_0x2b2b6a?_0xcf25b2(0xde):'';console[_0xcf25b2(0x119)]('\x20\x20'+_0x5e385e+_0x234820+_0x22c281),console[_0xcf25b2(0x119)](_0xcf25b2(0x111)+_0x45d45e[_0xcf25b2(0x116)]);const _0x4532be=buildAppDoctorFields(_0x45d45e,{'env':_0x37e811['env'],'apiDir':_0x37e811['raw'][_0xcf25b2(0x10b)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x37e811[_0xcf25b2(0xf2)]||_0x5144dc||undefined,'accessKey':_0x37e811[_0xcf25b2(0x11e)]});console['log'](_0xcf25b2(0xe4)+_0x4532be[_0xcf25b2(0xf7)][_0xcf25b2(0xdd)]+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0xf7)][_0xcf25b2(0x11c)]+')')),console[_0xcf25b2(0x119)](_0xcf25b2(0xcb)+_0x4532be['apiDir'][_0xcf25b2(0xdd)]+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0x10b)][_0xcf25b2(0x11c)]+')'));const _0x40739c=_0x4532be[_0xcf25b2(0xf2)]['value']?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xc9)+_0x4532be[_0xcf25b2(0xf2)][_0xcf25b2(0xdd)][_0xcf25b2(0xd0)]+')'):a95_0x4242e6[_0xcf25b2(0xce)]('(none)');console['log'](_0xcf25b2(0xdb)+_0x40739c+'\x20\x20'+a95_0x4242e6[_0xcf25b2(0xce)]('('+_0x4532be[_0xcf25b2(0xf2)]['source']+')'));const _0x24fd58=_0x4532be['accessKey'][_0xcf25b2(0xdd)]?a95_0x4242e6[_0xcf25b2(0x110)](_0xcf25b2(0xc9)+_0x4532be[_0xcf25b2(0x11e)][_0xcf25b2(0xdd)][_0xcf25b2(0xd0)]+')'):a95_0x4242e6['gray'](_0xcf25b2(0x107));console[_0xcf25b2(0x119)](_0xcf25b2(0x10f)+_0x24fd58+'\x20\x20'+a95_0x4242e6['gray']('('+_0x4532be[_0xcf25b2(0x11e)][_0xcf25b2(0x11c)]+')'));}}console['log'](),console['log'](a95_0x4242e6['bold'](_0xcf25b2(0x11d))),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xce)]('\x20\x20─'['repeat'](0x1e))),console[_0xcf25b2(0x119)](_0xcf25b2(0xc6)+getApiDomain()),console[_0xcf25b2(0x119)](_0xcf25b2(0xf3)+getUserDomain()),console[_0xcf25b2(0x119)](_0xcf25b2(0xcf)+getRuntimeDomain()),console[_0xcf25b2(0x119)](),console[_0xcf25b2(0x119)](a95_0x4242e6[_0xcf25b2(0xf1)](_0xcf25b2(0x11b))),console['log'](a95_0x4242e6['gray'](_0xcf25b2(0x10e)[_0xcf25b2(0xdf)](0x1e)));if(_0x5144dc){const _0x4ef0bb=await getIsSessionValid();console[_0xcf25b2(0x119)](_0xcf25b2(0xd8)+(_0x4ef0bb?a95_0x4242e6['green'](_0xcf25b2(0xe8)):a95_0x4242e6[_0xcf25b2(0xea)](_0xcf25b2(0xee))));}else console[_0xcf25b2(0x119)](_0xcf25b2(0xd8)+a95_0x4242e6[_0xcf25b2(0xea)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}function a95_0x2664(){const _0x533fb1=['padEnd','yellow','2017221xvzbVw','⚠\x20Empty\x20(treated\x20as\x20{})','(no\x20file)','defaultApp','verbose','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','5630958jaHqRZ','(none)','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','state','apiDir','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20\x20─','\x20\x20\x20\x20accessKey:\x20\x20','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Global','apps','2095800xkZVvm','missing','appcode','currentApp','unknown','log','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Auth','source','\x20\x20API\x20Endpoints','accessKey','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','13woadPN','✓\x20Valid\x20JSON','(set,\x20length=','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','reason','gray','\x20\x20runtimeDomain:\x20\x20\x20','length','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','status','(unknown)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20Installed\x20Path:\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','7278080enhzoC','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','value','\x20(default)','repeat','\x20\x20Config\x20JSON','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appCode','\x20\x20Config\x20Files','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','28008441NZnfPo','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','✓\x20Valid','read','red','slice','platform','empty','✗\x20Expired','riskLevel','format','bold','cookie','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','keys','(default:\x20','current','env','49030HOSqQr','(not\x20found)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','3859725XfkVwp','4akttxf'];a95_0x2664=function(){return _0x533fb1;};return a95_0x2664();}export const doctorDefinition={'service':'doctor','command':'check','description':a95_0x545fa7(0x11a),'risk':a95_0x545fa7(0xe9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a96_0x4bfd(){const _0x217419=['path','3731508oNtXOl','17008xdvcIw','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','long-term','3858FIvsMS','filepath','Preview:\x20upload\x20','8260YnKIks','\x20to\x20development\x20app\x20','filePath\x20is\x20required.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','read','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','validation','download','1715914ChzRMu','file','File','bool','trim','appCode','61569340jLKlZR','Uploaded\x20file:\x20','8JlhQIw','str','upload','3054480RZocJJ','655UBQgJF','boolean','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','/smartapi/common/uploadFile','16614846aIMqlc','filePath','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references'];a96_0x4bfd=function(){return _0x217419;};return a96_0x4bfd();}const a96_0x4351b4=a96_0x360d;(function(_0x17770f,_0x414e1f){const _0x34d24b=a96_0x360d,_0x3be531=_0x17770f();while(!![]){try{const _0x4a66a3=-parseInt(_0x34d24b(0xf6))/0x1+-parseInt(_0x34d24b(0xdd))/0x2+parseInt(_0x34d24b(0xe6))/0x3+parseInt(_0x34d24b(0xe7))/0x4*(-parseInt(_0x34d24b(0xde))/0x5)+-parseInt(_0x34d24b(0xeb))/0x6*(parseInt(_0x34d24b(0xee))/0x7)+-parseInt(_0x34d24b(0xda))/0x8*(parseInt(_0x34d24b(0xe2))/0x9)+parseInt(_0x34d24b(0xd8))/0xa;if(_0x4a66a3===_0x414e1f)break;else _0x3be531['push'](_0x3be531['shift']());}catch(_0x40b75e){_0x3be531['push'](_0x3be531['shift']());}}}(a96_0x4bfd,0xf31ba));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a96_0x4351b4(0xf7),'type':a96_0x4351b4(0xe9),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a96_0x4351b4(0xec),'type':a96_0x4351b4(0xe9),'required':!![],'description':a96_0x4351b4(0xe0)},DOWNLOAD_FLAG={'name':a96_0x4351b4(0xf5),'type':a96_0x4351b4(0xdf),'description':a96_0x4351b4(0xf3)},LONG_TERM_FLAG={'name':a96_0x4351b4(0xea),'type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x1ee947){const _0x515d47=a96_0x4351b4,_0xaf821b=_0x1ee947[_0x515d47(0xd6)]();if(!_0xaf821b)throw CliErrors[_0x515d47(0xf4)](_0x515d47(0xf0));return _0xaf821b;}function a96_0x360d(_0x225988,_0x1a5dff){_0x225988=_0x225988-0xd4;const _0x4bfd6d=a96_0x4bfd();let _0x360d58=_0x4bfd6d[_0x225988];return _0x360d58;}const fileUpload={'service':'file','command':a96_0x4351b4(0xdc),'description':a96_0x4351b4(0xe4),'risk':a96_0x4351b4(0xf2),'flags':[FILE_FLAG],async 'dryRun'(_0x1e0557){const _0x3c61d7=a96_0x4351b4,_0x3871eb=requireDevelopmentUploadFile(_0x1e0557[_0x3c61d7(0xdb)](_0x3c61d7(0xf7)),_0x3c61d7(0xd4));return{'method':'POST','url':_0x3c61d7(0xe1),'body':{'appCode':_0x1e0557[_0x3c61d7(0xd7)],'multipart':{'file':_0x3871eb}},'description':_0x3c61d7(0xed)+_0x3871eb[_0x3c61d7(0xe5)]+_0x3c61d7(0xef)+_0x1e0557[_0x3c61d7(0xd7)]};},async 'execute'(_0x47bd36){const _0x22448b=a96_0x4351b4,_0x5b007c=requireDevelopmentUploadFile(_0x47bd36[_0x22448b(0xdb)](_0x22448b(0xf7)),'File'),_0x12f872=await uploadDevelopmentFile(_0x47bd36[_0x22448b(0xd7)],_0x5b007c[_0x22448b(0xe5)]);return{'ok':!![],'data':_0x12f872,'message':_0x12f872[_0x22448b(0xe3)]?_0x22448b(0xd9)+_0x12f872[_0x22448b(0xe3)]+_0x22448b(0xe8):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a96_0x4351b4(0xf7),'command':'query-url','description':a96_0x4351b4(0xf1),'risk':a96_0x4351b4(0xf2),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x1c17cf){const _0x31c7e1=a96_0x4351b4,_0x3f5eb7=requireFilePath(_0x1c17cf[_0x31c7e1(0xdb)](_0x31c7e1(0xec))),_0x340bce=await queryDevelopmentFileUrl(_0x3f5eb7,{'download':_0x1c17cf[_0x31c7e1(0xd5)]('download'),'longTerm':_0x1c17cf[_0x31c7e1(0xd5)]('long-term')});return{'ok':!![],'data':_0x340bce};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a96_0x146e35=a96_0x2cf3;function a96_0x10f6(){const _0x217bf2=['3822Ryezby','filePath\x20is\x20required.','long-term','684072tTNhYj','path','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','434USpfbG','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','download','132wQoQnY','124dwuXTg','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','read','appCode','222266ttbvvO','filepath','File','13614OaNosz','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','7602ainKKX','90Syfujv','384IqIzxx','validation','Preview:\x20upload\x20','4712FnWmSO','file','str','1099585QygzYE','/smartapi/common/uploadFile','3763DRhbaj','string','\x20to\x20development\x20app\x20','POST','bool','Path\x20to\x20the\x20local\x20file\x20to\x20upload','6EOAMdL'];a96_0x10f6=function(){return _0x217bf2;};return a96_0x10f6();}function a96_0x2cf3(_0x81958b,_0xb18cd3){_0x81958b=_0x81958b-0x6e;const _0x10f643=a96_0x10f6();let _0x2cf352=_0x10f643[_0x81958b];return _0x2cf352;}(function(_0xa498fc,_0xc11e72){const _0x2cda4f=a96_0x2cf3,_0x151399=_0xa498fc();while(!![]){try{const _0x9632d3=-parseInt(_0x2cda4f(0x7f))/0x1*(parseInt(_0x2cda4f(0x77))/0x2)+-parseInt(_0x2cda4f(0x73))/0x3*(parseInt(_0x2cda4f(0x91))/0x4)+parseInt(_0x2cda4f(0x7d))/0x5*(parseInt(_0x2cda4f(0x85))/0x6)+-parseInt(_0x2cda4f(0x75))/0x7*(-parseInt(_0x2cda4f(0x7a))/0x8)+parseInt(_0x2cda4f(0x89))/0x9*(parseInt(_0x2cda4f(0x76))/0xa)+-parseInt(_0x2cda4f(0x70))/0xb*(parseInt(_0x2cda4f(0x90))/0xc)+parseInt(_0x2cda4f(0x86))/0xd*(parseInt(_0x2cda4f(0x8c))/0xe);if(_0x9632d3===_0xc11e72)break;else _0x151399['push'](_0x151399['shift']());}catch(_0x5c97a8){_0x151399['push'](_0x151399['shift']());}}}(a96_0x10f6,0x72175));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a96_0x146e35(0x7b),'type':a96_0x146e35(0x80),'required':!![],'description':a96_0x146e35(0x84)},FILEPATH_FLAG={'name':a96_0x146e35(0x71),'type':'string','required':!![],'description':a96_0x146e35(0x8b)},DOWNLOAD_FLAG={'name':a96_0x146e35(0x8f),'type':'boolean','description':a96_0x146e35(0x74)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x184b2d){const _0x47733c=a96_0x146e35,_0x2e4967=_0x184b2d['trim']();if(!_0x2e4967)throw CliErrors[_0x47733c(0x78)](_0x47733c(0x87));return _0x2e4967;}const fileUpload={'service':a96_0x146e35(0x7b),'command':'upload','description':a96_0x146e35(0x8d),'risk':a96_0x146e35(0x6e),'flags':[FILE_FLAG],async 'dryRun'(_0x152192){const _0x4c4d4e=a96_0x146e35,_0x59d1f4=requireDevelopmentUploadFile(_0x152192[_0x4c4d4e(0x7c)](_0x4c4d4e(0x7b)),_0x4c4d4e(0x72));return{'method':_0x4c4d4e(0x82),'url':_0x4c4d4e(0x7e),'body':{'appCode':_0x152192['appCode'],'multipart':{'file':_0x59d1f4}},'description':_0x4c4d4e(0x79)+_0x59d1f4[_0x4c4d4e(0x8a)]+_0x4c4d4e(0x81)+_0x152192[_0x4c4d4e(0x6f)]};},async 'execute'(_0x5451a3){const _0x200ea2=a96_0x146e35,_0x981e1f=requireDevelopmentUploadFile(_0x5451a3['str'](_0x200ea2(0x7b)),_0x200ea2(0x72)),_0x5207a2=await uploadDevelopmentFile(_0x5451a3[_0x200ea2(0x6f)],_0x981e1f[_0x200ea2(0x8a)]);return{'ok':!![],'data':_0x5207a2,'message':_0x5207a2['filePath']?'Uploaded\x20file:\x20'+_0x5207a2['filePath']+_0x200ea2(0x8e):_0x200ea2(0x92)};}},fileQueryUrl={'service':a96_0x146e35(0x7b),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x560bf8){const _0x3d71b5=a96_0x146e35,_0xfdf0c4=requireFilePath(_0x560bf8[_0x3d71b5(0x7c)](_0x3d71b5(0x71))),_0x19e3ed=await queryDevelopmentFileUrl(_0xfdf0c4,{'download':_0x560bf8[_0x3d71b5(0x83)](_0x3d71b5(0x8f)),'longTerm':_0x560bf8[_0x3d71b5(0x83)](_0x3d71b5(0x88))});return{'ok':!![],'data':_0x19e3ed};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a97_0x16f640=a97_0xa59a;(function(_0x35364d,_0x3cf91d){const _0x3e4fc3=a97_0xa59a,_0x449e61=_0x35364d();while(!![]){try{const _0x1a3576=parseInt(_0x3e4fc3(0xf7))/0x1*(parseInt(_0x3e4fc3(0xdb))/0x2)+-parseInt(_0x3e4fc3(0xce))/0x3*(parseInt(_0x3e4fc3(0xf2))/0x4)+-parseInt(_0x3e4fc3(0xd1))/0x5+-parseInt(_0x3e4fc3(0xed))/0x6+parseInt(_0x3e4fc3(0xf0))/0x7+parseInt(_0x3e4fc3(0xda))/0x8*(parseInt(_0x3e4fc3(0xdf))/0x9)+-parseInt(_0x3e4fc3(0xf4))/0xa*(parseInt(_0x3e4fc3(0xe7))/0xb);if(_0x1a3576===_0x3cf91d)break;else _0x449e61['push'](_0x449e61['shift']());}catch(_0x5107e5){_0x449e61['push'](_0x449e61['shift']());}}}(a97_0x2cfe,0xb5ffc));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';function a97_0x2cfe(){const _0x9012db=['2023794KcgcBy','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','\x20\x20Default:\x20','6998628LpeIHA','nonInteractive','112NyJbpK','run','1346180jbYLYB','Target\x20environment','\x0a✓\x20Successfully\x20initialized\x20','563aslSnP','cwd','project','some','map','validation','73581NpdraA','Use\x20`','global','3065765cfuHnE','message','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','appcode','defaultApp','valid','custom','str','\x20config','104wExbca','5098NRmtvL','flagMissing','write','\x20\x20Config:\x20','989019BPEQaj','appCode','toLocaleString','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Write\x20to\x20global\x20config\x20instead\x20of\x20project','boolean','production','log','121ZNXYbI','env','string','bool','Auto-confirm\x20prompts','检测到旧配置文件,正在自动升级...\x0a'];a97_0x2cfe=function(){return _0x9012db;};return a97_0x2cfe();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x5f4f09){return{'appCode':_0x5f4f09,'appName':_0x5f4f09};}function writeInitConfig(_0x5ee204,_0x38381f,_0x3b8f34){const _0x141dab=a97_0xa59a,_0x3456fe=resolveWriteConfigPath(_0x5ee204),_0xd7c094=buildCanonicalProjectConfig({},{'appCodes':_0x38381f[_0x141dab(0xcc)](_0x397ccb=>_0x397ccb[_0x141dab(0xe0)]),'env':_0x3b8f34,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x141dab(0xe1)]()}});writeConfigFile(_0x3456fe,_0xd7c094);const _0x4ac281=_0x5ee204===_0x141dab(0xd0)?_0x141dab(0xd0):_0x141dab(0xca);console[_0x141dab(0xe6)](_0x141dab(0xf6)+_0x4ac281+_0x141dab(0xd9)),console['log']('\x20\x20Apps:\x20'+_0x38381f[_0x141dab(0xcc)](_0x49063b=>_0x49063b[_0x141dab(0xe0)])['join'](',\x20')),console[_0x141dab(0xe6)](_0x141dab(0xef)+_0xd7c094[_0x141dab(0xd5)]),console[_0x141dab(0xe6)]('\x20\x20Env:\x20'+_0xd7c094[_0x141dab(0xe8)]),console['log'](_0x141dab(0xde)+_0x3456fe);}function a97_0xa59a(_0xc6f20c,_0xf07fcb){_0xc6f20c=_0xc6f20c-0xc9;const _0x2cfe98=a97_0x2cfe();let _0xa59aa5=_0x2cfe98[_0xc6f20c];return _0xa59aa5;}async function runSmartInit(_0x2aff46){const _0x3dac51=a97_0xa59a,_0x28640d=process[_0x3dac51(0xc9)](),_0x2a2088=_0x2aff46['bool'](_0x3dac51(0xd0))?_0x3dac51(0xd0):_0x3dac51(0xca),_0x28b7d8=_0x2aff46[_0x3dac51(0xd8)](_0x3dac51(0xe8))||_0x3dac51(0xe5),_0x1251d7=_0x2aff46['str'](_0x3dac51(0xd4))||undefined;if(_0x2a2088===_0x3dac51(0xca)){const _0x45d181=existsSync(resolve(_0x28640d,NEW_CONFIG_NAME)),_0x2dd1ae=LEGACY_CONFIG_NAMES[_0x3dac51(0xcb)](_0x2e9835=>existsSync(resolve(_0x28640d,_0x2e9835)));if(_0x2dd1ae&&!_0x45d181)return console[_0x3dac51(0xe6)](_0x3dac51(0xec)),upgradeApp(_0x2aff46[_0x3dac51(0xf1)],{'yes':_0x2aff46[_0x3dac51(0xea)]('yes')});if(_0x45d181)throw CliErrors[_0x3dac51(0xcd)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x3dac51(0xcf)+CLI_BIN_NAME+_0x3dac51(0xe2));}if(_0x1251d7){const _0x266f3f=validateAppcode(_0x1251d7);if(!_0x266f3f[_0x3dac51(0xd6)])throw CliErrors[_0x3dac51(0xcd)](_0x266f3f[_0x3dac51(0xd2)]);writeInitConfig(_0x2a2088,[syntheticApp(_0x1251d7)],_0x28b7d8);return;}if(_0x2aff46['nonInteractive'])throw CliErrors[_0x3dac51(0xdc)](_0x3dac51(0xd4),'Usage:\x20'+CLI_BIN_NAME+_0x3dac51(0xee));const _0x1b4ea5=getCookie(),_0x4524a3=await selectMultipleApps(_0x1b4ea5),_0x516c6f=_0x4524a3===_0x3dac51(0xd7)?[syntheticApp(await promptCustomAppcode())]:_0x4524a3;writeInitConfig(_0x2a2088,_0x516c6f,_0x28b7d8);}const initFlags=[{'name':a97_0x16f640(0xd0),'type':a97_0x16f640(0xe4),'description':a97_0x16f640(0xe3),'default':![]},{'name':a97_0x16f640(0xe8),'type':a97_0x16f640(0xe9),'description':a97_0x16f640(0xf5),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x16f640(0xd4),'type':a97_0x16f640(0xe9),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':'yes','type':'boolean','description':a97_0x16f640(0xeb),'default':![]}];export const initDefinitions=[{'service':'init','command':a97_0x16f640(0xf3),'description':a97_0x16f640(0xd3),'risk':a97_0x16f640(0xdd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x49d6bb){return await runSmartInit(_0x49d6bb),{'ok':!![]};}}];
1
+ const a97_0x410534=a97_0x512c;(function(_0x1c2a54,_0x5bb9fe){const _0x258165=a97_0x512c,_0xb80989=_0x1c2a54();while(!![]){try{const _0x145e5d=parseInt(_0x258165(0x9b))/0x1*(parseInt(_0x258165(0x9e))/0x2)+-parseInt(_0x258165(0x7f))/0x3+parseInt(_0x258165(0x9f))/0x4+parseInt(_0x258165(0xa0))/0x5+parseInt(_0x258165(0x84))/0x6*(parseInt(_0x258165(0x88))/0x7)+parseInt(_0x258165(0x91))/0x8*(-parseInt(_0x258165(0x76))/0x9)+parseInt(_0x258165(0xa2))/0xa*(-parseInt(_0x258165(0x8f))/0xb);if(_0x145e5d===_0x5bb9fe)break;else _0xb80989['push'](_0xb80989['shift']());}catch(_0x49d930){_0xb80989['push'](_0xb80989['shift']());}}}(a97_0x59da,0x7cc4c));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';function a97_0x59da(){const _0x36bcc0=['1688074BXsnLV','1102736DbsxSk','916530WWycfp','map','34930UDDQvN','\x20\x20Apps:\x20','Target\x20environment','run','\x0a✓\x20Successfully\x20initialized\x20','defaultApp','string','9HGzKbt','bool','env','Auto-confirm\x20prompts','validation','\x20\x20Env:\x20','valid','str','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','1390605EkDlIK','\x20config','project','nonInteractive','boolean','6KemIQZ','appcode','toLocaleString','\x20\x20Default:\x20','3426101pTMpYD','Write\x20to\x20global\x20config\x20instead\x20of\x20project','Usage:\x20','custom','cwd','global','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','902NgtYca','yes','4251656lqdDSm','检测到旧配置文件,正在自动升级...\x0a','\x20\x20Config:\x20','log','production','App\x20code\x20to\x20initialize\x20with','Use\x20`','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','init','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','1OYFZup','some','appCode'];a97_0x59da=function(){return _0x36bcc0;};return a97_0x59da();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a97_0x512c(_0x8d6569,_0x3c07c7){_0x8d6569=_0x8d6569-0x70;const _0x59dab6=a97_0x59da();let _0x512ceb=_0x59dab6[_0x8d6569];return _0x512ceb;}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(_0x38433e){return{'appCode':_0x38433e,'appName':_0x38433e};}function writeInitConfig(_0x4f8a07,_0x36f494,_0x980e8c){const _0x11e441=a97_0x512c,_0x4607e3=resolveWriteConfigPath(_0x4f8a07),_0x273058=buildCanonicalProjectConfig({},{'appCodes':_0x36f494[_0x11e441(0xa1)](_0x5991d7=>_0x5991d7[_0x11e441(0x9d)]),'env':_0x980e8c,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x11e441(0x86)]()}});writeConfigFile(_0x4607e3,_0x273058);const _0x3a635c=_0x4f8a07===_0x11e441(0x8d)?'global':_0x11e441(0x81);console[_0x11e441(0x94)](_0x11e441(0x73)+_0x3a635c+_0x11e441(0x80)),console['log'](_0x11e441(0x70)+_0x36f494['map'](_0x5e1fcb=>_0x5e1fcb[_0x11e441(0x9d)])['join'](',\x20')),console[_0x11e441(0x94)](_0x11e441(0x87)+_0x273058[_0x11e441(0x74)]),console[_0x11e441(0x94)](_0x11e441(0x7b)+_0x273058[_0x11e441(0x78)]),console['log'](_0x11e441(0x93)+_0x4607e3);}async function runSmartInit(_0x5fcad2){const _0x331cab=a97_0x512c,_0x4a5c39=process[_0x331cab(0x8c)](),_0x20ef66=_0x5fcad2[_0x331cab(0x77)](_0x331cab(0x8d))?'global':_0x331cab(0x81),_0x1342b6=_0x5fcad2[_0x331cab(0x7d)]('env')||_0x331cab(0x95),_0x1cd282=_0x5fcad2[_0x331cab(0x7d)](_0x331cab(0x85))||undefined;if(_0x20ef66==='project'){const _0x3b31db=existsSync(resolve(_0x4a5c39,NEW_CONFIG_NAME)),_0x10e645=LEGACY_CONFIG_NAMES[_0x331cab(0x9c)](_0x39085c=>existsSync(resolve(_0x4a5c39,_0x39085c)));if(_0x10e645&&!_0x3b31db)return console[_0x331cab(0x94)](_0x331cab(0x92)),upgradeApp(_0x5fcad2[_0x331cab(0x82)],{'yes':_0x5fcad2[_0x331cab(0x77)](_0x331cab(0x90))});if(_0x3b31db)throw CliErrors[_0x331cab(0x7a)](_0x331cab(0x7e),_0x331cab(0x97)+CLI_BIN_NAME+_0x331cab(0x9a));}if(_0x1cd282){const _0x418791=validateAppcode(_0x1cd282);if(!_0x418791[_0x331cab(0x7c)])throw CliErrors[_0x331cab(0x7a)](_0x418791['message']);writeInitConfig(_0x20ef66,[syntheticApp(_0x1cd282)],_0x1342b6);return;}if(_0x5fcad2[_0x331cab(0x82)])throw CliErrors['flagMissing'](_0x331cab(0x85),_0x331cab(0x8a)+CLI_BIN_NAME+_0x331cab(0x8e));const _0x2d8eaa=getCookie(),_0x556009=await selectMultipleApps(_0x2d8eaa),_0xd96763=_0x556009===_0x331cab(0x8b)?[syntheticApp(await promptCustomAppcode())]:_0x556009;writeInitConfig(_0x20ef66,_0xd96763,_0x1342b6);}const initFlags=[{'name':a97_0x410534(0x8d),'type':'boolean','description':a97_0x410534(0x89),'default':![]},{'name':a97_0x410534(0x78),'type':a97_0x410534(0x75),'description':a97_0x410534(0x71),'default':a97_0x410534(0x95),'enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x410534(0x85),'type':a97_0x410534(0x75),'description':a97_0x410534(0x96)},{'name':a97_0x410534(0x90),'type':a97_0x410534(0x83),'description':a97_0x410534(0x79),'default':![]}];export const initDefinitions=[{'service':a97_0x410534(0x99),'command':a97_0x410534(0x72),'description':a97_0x410534(0x98),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2ed9e0){return await runSmartInit(_0x2ed9e0),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x491746,_0x32024e){const _0x4c6663=a98_0x433d,_0x193779=_0x491746();while(!![]){try{const _0xa8d6e7=-parseInt(_0x4c6663(0xc5))/0x1*(-parseInt(_0x4c6663(0xc6))/0x2)+-parseInt(_0x4c6663(0xc2))/0x3+-parseInt(_0x4c6663(0xbf))/0x4*(parseInt(_0x4c6663(0xc1))/0x5)+-parseInt(_0x4c6663(0xc3))/0x6*(-parseInt(_0x4c6663(0xbe))/0x7)+parseInt(_0x4c6663(0xc0))/0x8*(-parseInt(_0x4c6663(0xc9))/0x9)+-parseInt(_0x4c6663(0xc8))/0xa*(-parseInt(_0x4c6663(0xc4))/0xb)+-parseInt(_0x4c6663(0xc7))/0xc*(-parseInt(_0x4c6663(0xbd))/0xd);if(_0xa8d6e7===_0x32024e)break;else _0x193779['push'](_0x193779['shift']());}catch(_0x5acbe9){_0x193779['push'](_0x193779['shift']());}}}(a98_0x32c2,0xc4a33));function a98_0x32c2(){const _0xd5a4c7=['2GwyoJz','1443790sMPlhr','12uIOqta','140EnUAWj','9088353cyfHmB','8560292cRPCmd','7iLTlPJ','4LTAhcS','8uULFLM','2949805AvGDjD','1363626hhVigS','3200754FyHJAy','176011lRWQEn'];a98_0x32c2=function(){return _0xd5a4c7;};return a98_0x32c2();}function a98_0x433d(_0x2489e8,_0x2c9a41){_0x2489e8=_0x2489e8-0xbd;const _0x32c26b=a98_0x32c2();let _0x433d34=_0x32c26b[_0x2489e8];return _0x433d34;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x4477bc,_0x16d87d){const _0x27816e=a98_0x6570,_0x41c870=_0x4477bc();while(!![]){try{const _0x2b46e8=-parseInt(_0x27816e(0x1d6))/0x1*(parseInt(_0x27816e(0x1d8))/0x2)+parseInt(_0x27816e(0x1d4))/0x3+-parseInt(_0x27816e(0x1d9))/0x4*(parseInt(_0x27816e(0x1d5))/0x5)+parseInt(_0x27816e(0x1da))/0x6*(-parseInt(_0x27816e(0x1d7))/0x7)+-parseInt(_0x27816e(0x1db))/0x8+-parseInt(_0x27816e(0x1dd))/0x9+parseInt(_0x27816e(0x1dc))/0xa;if(_0x2b46e8===_0x16d87d)break;else _0x41c870['push'](_0x41c870['shift']());}catch(_0x33d9c3){_0x41c870['push'](_0x41c870['shift']());}}}(a98_0x5039,0xb4b91));function a98_0x5039(){const _0x3676d5=['606890NgcwdP','17yapAgS','7441Nkilba','149854KjZnse','20PhIiRF','60EKWdfc','6915720rIEWFD','36366130TqzitU','12536424MmPdmT','3756924wMAxtn'];a98_0x5039=function(){return _0x3676d5;};return a98_0x5039();}function a98_0x6570(_0x42d708,_0x8fabf7){_0x42d708=_0x42d708-0x1d4;const _0x50392f=a98_0x5039();let _0x65702d=_0x50392f[_0x42d708];return _0x65702d;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a99_0x39bdef=a99_0x61d6;(function(_0x470fb0,_0x2be548){const _0xde1778=a99_0x61d6,_0x9df90c=_0x470fb0();while(!![]){try{const _0x430aa6=-parseInt(_0xde1778(0xd5))/0x1+-parseInt(_0xde1778(0xeb))/0x2*(-parseInt(_0xde1778(0xdb))/0x3)+parseInt(_0xde1778(0xe1))/0x4+parseInt(_0xde1778(0xe7))/0x5+-parseInt(_0xde1778(0xd0))/0x6+-parseInt(_0xde1778(0xe3))/0x7*(-parseInt(_0xde1778(0xd8))/0x8)+parseInt(_0xde1778(0xed))/0x9*(parseInt(_0xde1778(0xd3))/0xa);if(_0x430aa6===_0x2be548)break;else _0x9df90c['push'](_0x9df90c['shift']());}catch(_0x9b0a79){_0x9df90c['push'](_0x9df90c['shift']());}}}(a99_0x33d7,0xd114c));import{CliError}from'../../errors.js';function a99_0x33d7(){const _0x4fb154=['replace','write','RABETBASE_DISABLE_ISSUE_NUDGE','4835948RBQrWN','=1\x20to\x20silence\x20this\x20hint.','2912yTtZhO','slice','auth_required','\x20\x20Set\x20','2898095xvOqkA','config_missing','message','issue','16HLZzbJ','unknown_command','8946153KRRftK','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','has','cancelled','Hit\x20a\x20','\x20\x20\x20\x20--title\x20\x22','\x22\x20\x5c','5797152RCMygR','join','command','10dFNmVp','service','1696747rCxbsE','not_in_project','network_error','2392zIYqua','\x20issue\x20report\x20\x5c','stderr','229623TPhtXD','\x20bug?\x20Help\x20us\x20fix\x20it:','flag_missing'];a99_0x33d7=function(){return _0x4fb154;};return a99_0x33d7();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a99_0x39bdef(0xe0);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x39bdef(0xf0),a99_0x39bdef(0xe5),a99_0x39bdef(0xe8),a99_0x39bdef(0xd6),a99_0x39bdef(0xec),a99_0x39bdef(0xdd),'validation_error',a99_0x39bdef(0xd7)]),defaultWriter=_0x1c320a=>{const _0xbc01d2=a99_0x39bdef;process[_0xbc01d2(0xda)][_0xbc01d2(0xdf)](_0x1c320a);};function a99_0x61d6(_0x547b75,_0x39e28f){_0x547b75=_0x547b75-0xce;const _0x33d718=a99_0x33d7();let _0x61d6d5=_0x33d718[_0x547b75];return _0x61d6d5;}export function shouldNudgeForError(_0x2cf05c,_0x21c800){const _0x222410=a99_0x39bdef;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x21c800[_0x222410(0xd4)]===_0x222410(0xea)&&_0x21c800[_0x222410(0xd2)]==='report')return![];if(_0x2cf05c instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x222410(0xef)](_0x2cf05c['code']);return!![];}export function printIssueReportNudgeForError(_0x1c7f98,_0x3acede,_0xc61f8e=defaultWriter){if(!shouldNudgeForError(_0x1c7f98,_0x3acede))return;const _0x188f9b=buildSuggestedTitle(_0x1c7f98,_0x3acede);_0xc61f8e(formatNudge(_0x188f9b));}function buildSuggestedTitle(_0x1bbae4,_0xe88e45){const _0x3fc59e=a99_0x39bdef,_0x8fe610=_0x1bbae4 instanceof Error?_0x1bbae4[_0x3fc59e(0xe9)]:String(_0x1bbae4),_0xd717b6=_0x8fe610[_0x3fc59e(0xde)](/[\r\n]+/g,'\x20')[_0x3fc59e(0xde)](/\s+/g,'\x20')['trim']()[_0x3fc59e(0xe4)](0x0,0x78)[_0x3fc59e(0xde)](/"/g,'\x5c\x22'),_0x1e325a=CLI_BIN_NAME+'\x20'+_0xe88e45[_0x3fc59e(0xd4)]+'\x20'+_0xe88e45[_0x3fc59e(0xd2)];return _0xd717b6['length']>0x0?_0x1e325a+':\x20'+_0xd717b6:_0x1e325a;}function formatNudge(_0xf02e92){const _0x46e25b=a99_0x39bdef;return['',_0x46e25b(0xf1)+CLI_BIN_NAME+_0x46e25b(0xdc),'\x20\x20'+CLI_BIN_NAME+_0x46e25b(0xd9),_0x46e25b(0xce)+_0xf02e92+_0x46e25b(0xcf),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x46e25b(0xee),_0x46e25b(0xe6)+NUDGE_OPT_OUT_ENV+_0x46e25b(0xe2),''][_0x46e25b(0xd1)]('\x0a');}
1
+ const a99_0x55bf5a=a99_0x4c41;(function(_0x45ab59,_0x193fe5){const _0x285c7f=a99_0x4c41,_0x23c025=_0x45ab59();while(!![]){try{const _0x2c792d=parseInt(_0x285c7f(0x81))/0x1*(-parseInt(_0x285c7f(0x7f))/0x2)+-parseInt(_0x285c7f(0x82))/0x3+-parseInt(_0x285c7f(0x75))/0x4*(-parseInt(_0x285c7f(0x89))/0x5)+parseInt(_0x285c7f(0x8d))/0x6*(-parseInt(_0x285c7f(0x88))/0x7)+parseInt(_0x285c7f(0x83))/0x8*(-parseInt(_0x285c7f(0x77))/0x9)+-parseInt(_0x285c7f(0x8c))/0xa+parseInt(_0x285c7f(0x71))/0xb;if(_0x2c792d===_0x193fe5)break;else _0x23c025['push'](_0x23c025['shift']());}catch(_0x50932a){_0x23c025['push'](_0x23c025['shift']());}}}(a99_0x139d,0x552e9));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a99_0x4c41(_0x3feb4f,_0x4c0ae8){_0x3feb4f=_0x3feb4f-0x6f;const _0x139ddb=a99_0x139d();let _0x4c41f4=_0x139ddb[_0x3feb4f];return _0x4c41f4;}export const NUDGE_OPT_OUT_ENV=a99_0x55bf5a(0x74);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x55bf5a(0x7d),a99_0x55bf5a(0x87),a99_0x55bf5a(0x79),'not_in_project','unknown_command',a99_0x55bf5a(0x8b),a99_0x55bf5a(0x78),a99_0x55bf5a(0x80)]),defaultWriter=_0x12f4f8=>{const _0x4847f7=a99_0x55bf5a;process[_0x4847f7(0x6f)]['write'](_0x12f4f8);};export function shouldNudgeForError(_0x1df1dd,_0x320a9d){const _0x1bf3d6=a99_0x55bf5a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x320a9d[_0x1bf3d6(0x84)]==='issue'&&_0x320a9d[_0x1bf3d6(0x7c)]==='report')return![];if(_0x1df1dd instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1bf3d6(0x8f)](_0x1df1dd[_0x1bf3d6(0x76)]);return!![];}function a99_0x139d(){const _0xc128a5=['\x22\x20\x5c','has','stderr','\x20bug?\x20Help\x20us\x20fix\x20it:','16684745StzgnB','\x20\x20Set\x20','message','RABETBASE_DISABLE_ISSUE_NUDGE','28lCRnbr','code','1017VQzhXM','validation_error','config_missing','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','slice','command','cancelled','=1\x20to\x20silence\x20this\x20hint.','40FNGtCN','network_error','20952aIgekZ','494556atvwjp','15312YinRmX','service','replace','join','auth_required','7tfsACP','451530ZjWgJK','trim','flag_missing','6299050kMTCSb','2219718OLnSbK'];a99_0x139d=function(){return _0xc128a5;};return a99_0x139d();}export function printIssueReportNudgeForError(_0x89277,_0x230ed2,_0x1874ff=defaultWriter){if(!shouldNudgeForError(_0x89277,_0x230ed2))return;const _0x501f07=buildSuggestedTitle(_0x89277,_0x230ed2);_0x1874ff(formatNudge(_0x501f07));}function buildSuggestedTitle(_0x44cbd8,_0x472ada){const _0x5e606b=a99_0x55bf5a,_0x93ea2f=_0x44cbd8 instanceof Error?_0x44cbd8[_0x5e606b(0x73)]:String(_0x44cbd8),_0x49b087=_0x93ea2f[_0x5e606b(0x85)](/[\r\n]+/g,'\x20')[_0x5e606b(0x85)](/\s+/g,'\x20')[_0x5e606b(0x8a)]()[_0x5e606b(0x7b)](0x0,0x78)[_0x5e606b(0x85)](/"/g,'\x5c\x22'),_0x1cfae9=CLI_BIN_NAME+'\x20'+_0x472ada[_0x5e606b(0x84)]+'\x20'+_0x472ada[_0x5e606b(0x7c)];return _0x49b087['length']>0x0?_0x1cfae9+':\x20'+_0x49b087:_0x1cfae9;}function formatNudge(_0x1c5209){const _0x41c370=a99_0x55bf5a;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x41c370(0x70),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22'+_0x1c5209+_0x41c370(0x8e),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x41c370(0x7a),_0x41c370(0x72)+NUDGE_OPT_OUT_ENV+_0x41c370(0x7e),''][_0x41c370(0x86)]('\x0a');}
@@ -1 +1 @@
1
- const a100_0xe1521d=a100_0x2148;function a100_0x2148(_0x305f32,_0x58df9f){_0x305f32=_0x305f32-0x67;const _0x3e9bdc=a100_0x3e9b();let _0x21485c=_0x3e9bdc[_0x305f32];return _0x21485c;}(function(_0x546666,_0x264ae3){const _0x5903b2=a100_0x2148,_0x66ea85=_0x546666();while(!![]){try{const _0x5c6e42=-parseInt(_0x5903b2(0xa3))/0x1*(parseInt(_0x5903b2(0x7c))/0x2)+-parseInt(_0x5903b2(0x95))/0x3+-parseInt(_0x5903b2(0x83))/0x4+parseInt(_0x5903b2(0x90))/0x5+parseInt(_0x5903b2(0x68))/0x6+parseInt(_0x5903b2(0xa4))/0x7+parseInt(_0x5903b2(0x92))/0x8;if(_0x5c6e42===_0x264ae3)break;else _0x66ea85['push'](_0x66ea85['shift']());}catch(_0x1475e3){_0x66ea85['push'](_0x66ea85['shift']());}}}(a100_0x3e9b,0x583b5));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a100_0x3e9b(){const _0x21bf2a=['utf8','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','string','report','inline','validation','apiError','File\x20not\x20found:\x20','flagMissing','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','\x20bytes','sanitize','descriptionFilePath','descriptionFile:\x20','34DDVnZF','POST','issue.description_redactions','description','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_original_bytes','title','1028832WGDAYF','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_truncated','redactionCount','length','file','redactionKinds','push','Issue\x20description\x20file\x20is\x20empty:\x20','filter','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','cwd','440590gLlBIw','message','7359168sZtJST','write','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','576045iJqIKP','join','issue.description_redaction_kinds','Platform\x20issue\x20reported','truncated:\x20original\x20','otel://','str','compress','truncated','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionSource','One-line\x20issue\x20summary','trim','issue.description','23737pkoyYo','300174IODECh','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','979518KVGjSp','issue.title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','originalBytes','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue'];a100_0x3e9b=function(){return _0x21bf2a;};return a100_0x3e9b();}import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a100_0xe1521d(0x6d),'command':a100_0xe1521d(0x71),'description':a100_0xe1521d(0x8d),'risk':a100_0xe1521d(0x93),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0xe1521d(0x9c),'flags':[{'name':a100_0xe1521d(0x82),'type':'string','required':!![],'description':a100_0xe1521d(0xa0)},{'name':'description','type':'string','description':a100_0xe1521d(0x67)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0xe1521d(0x70),'description':a100_0xe1521d(0x94)}],async 'validate'(_0x29b835){const _0x5e5207=a100_0xe1521d,_0x3742e8=_0x29b835[_0x5e5207(0x9b)]('title')[_0x5e5207(0xa1)](),_0x4c1dfa=_0x29b835[_0x5e5207(0x9b)](_0x5e5207(0x7f))[_0x5e5207(0xa1)](),_0x5c100d=_0x29b835['str'](DESCRIPTION_FILE_FLAG)[_0x5e5207(0xa1)]();if(!_0x3742e8)throw CliErrors[_0x5e5207(0x76)]('title',_0x5e5207(0x6a));const _0x1ccd06=_0x4c1dfa[_0x5e5207(0x87)]>0x0,_0x276495=_0x5c100d[_0x5e5207(0x87)]>0x0;if(_0x1ccd06===_0x276495)throw CliErrors[_0x5e5207(0x73)](_0x5e5207(0x84),_0x5e5207(0x6c));if(_0x276495){const _0x1828cc=resolve(process[_0x5e5207(0x8f)](),_0x5c100d);if(!existsSync(_0x1828cc))throw CliErrors[_0x5e5207(0x73)](_0x5e5207(0x75)+_0x1828cc);}},async 'dryRun'(_0x2a593c){const _0x5e589f=a100_0xe1521d,_0x135616=await prepareIssueReport(_0x2a593c);return{'method':_0x5e589f(0x7d),'url':_0x5e589f(0x9a)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x135616[_0x5e589f(0x82)],'issue.description':_0x135616['description'],'issue.description_original_bytes':_0x135616[_0x5e589f(0x79)]['originalBytes'],'issue.description_truncated':_0x135616[_0x5e589f(0x79)]['truncated'],'issue.description_redactions':_0x135616[_0x5e589f(0x79)][_0x5e589f(0x86)],'issue.description_redaction_kinds':_0x135616['sanitize'][_0x5e589f(0x89)][_0x5e589f(0x96)](',')}},'description':[_0x5e589f(0x6f),'descriptionSource:\x20'+_0x135616[_0x5e589f(0x9f)],_0x135616[_0x5e589f(0x7a)]?_0x5e589f(0x7b)+_0x135616[_0x5e589f(0x7a)]:null,_0x135616[_0x5e589f(0x79)][_0x5e589f(0x9d)]?_0x5e589f(0x99)+_0x135616[_0x5e589f(0x79)]['originalBytes']+_0x5e589f(0x78):null,_0x135616[_0x5e589f(0x79)][_0x5e589f(0x86)]>0x0?'redactions:\x20'+_0x135616['sanitize'][_0x5e589f(0x86)]+'\x20('+_0x135616[_0x5e589f(0x79)][_0x5e589f(0x89)][_0x5e589f(0x96)](',\x20')+')':null][_0x5e589f(0x8c)](Boolean)['join']('\x0a')};},async 'execute'(_0xc45e1c){const _0xab0334=a100_0xe1521d,_0x57cb04=await prepareIssueReport(_0xc45e1c);try{await sendPlatformIssueCollectLog({'title':_0x57cb04[_0xab0334(0x82)],'description':_0x57cb04[_0xab0334(0x7f)],'sanitize':{'originalBytes':_0x57cb04['sanitize']['originalBytes'],'truncated':_0x57cb04['sanitize']['truncated'],'redactionCount':_0x57cb04['sanitize'][_0xab0334(0x86)],'redactionKinds':_0x57cb04[_0xab0334(0x79)][_0xab0334(0x89)]}});}catch(_0x1072d7){throw CliErrors[_0xab0334(0x74)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x1072d7 instanceof Error?_0x1072d7[_0xab0334(0x91)]:String(_0x1072d7)),_0xab0334(0x8e));}return{'ok':!![],'message':buildResultMessage(_0x57cb04[_0xab0334(0x79)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xab0334(0x69),_0xab0334(0xa2),_0xab0334(0x81),_0xab0334(0x85),_0xab0334(0x7e),_0xab0334(0x97)],'issue':{'title':_0x57cb04[_0xab0334(0x82)],'descriptionLength':_0x57cb04[_0xab0334(0x7f)][_0xab0334(0x87)],'descriptionSource':_0x57cb04['descriptionSource'],..._0x57cb04[_0xab0334(0x7a)]?{'descriptionFile':_0x57cb04[_0xab0334(0x7a)]}:{},'sanitize':{'originalBytes':_0x57cb04['sanitize']['originalBytes'],'truncated':_0x57cb04[_0xab0334(0x79)]['truncated'],'redactions':_0x57cb04['sanitize']['redactionCount'],'redactionKinds':_0x57cb04['sanitize'][_0xab0334(0x89)]}}}};}};function buildResultMessage(_0x249af7){const _0x2c6503=a100_0xe1521d,_0x1bb906=[];return _0x249af7[_0x2c6503(0x9d)]&&_0x1bb906[_0x2c6503(0x8a)]('truncated\x20from\x20'+_0x249af7[_0x2c6503(0x6b)]+'\x20bytes'),_0x249af7[_0x2c6503(0x86)]>0x0&&_0x1bb906[_0x2c6503(0x8a)]('redacted\x20'+_0x249af7[_0x2c6503(0x86)]+'\x20secret(s):\x20'+_0x249af7['redactionKinds']['join'](',\x20')),_0x1bb906[_0x2c6503(0x87)]===0x0?_0x2c6503(0x98):'Platform\x20issue\x20reported\x20('+_0x1bb906[_0x2c6503(0x96)](';\x20')+')';}async function prepareIssueReport(_0x3e9cfe){const _0x40181b=a100_0xe1521d,_0x4b27b8=_0x3e9cfe[_0x40181b(0x9b)](_0x40181b(0x82))['trim'](),_0x4a8ee8=_0x3e9cfe[_0x40181b(0x9b)](_0x40181b(0x7f)),_0x55c9da=_0x3e9cfe[_0x40181b(0x9b)](DESCRIPTION_FILE_FLAG)[_0x40181b(0xa1)]();if(!_0x55c9da){const _0x3c3e35=_0x4a8ee8;if(!_0x3c3e35[_0x40181b(0xa1)]())throw CliErrors[_0x40181b(0x73)](_0x40181b(0x80),_0x40181b(0x77));const _0x528ff6=sanitizeIssueDescription(_0x3c3e35);return{'title':_0x4b27b8,'description':_0x528ff6[_0x40181b(0x7f)],'descriptionSource':_0x40181b(0x72),'sanitize':_0x528ff6};}const _0x4f4f64=resolve(process[_0x40181b(0x8f)](),_0x55c9da),_0xfe630e=await readFile(_0x4f4f64,_0x40181b(0x6e));if(!_0xfe630e[_0x40181b(0xa1)]())throw CliErrors[_0x40181b(0x73)](_0x40181b(0x8b)+_0x4f4f64,_0x40181b(0x9e));const _0x2160d8=sanitizeIssueDescription(_0xfe630e);return{'title':_0x4b27b8,'description':_0x2160d8[_0x40181b(0x7f)],'descriptionSource':_0x40181b(0x88),'descriptionFilePath':_0x4f4f64,'sanitize':_0x2160d8};}
1
+ const a100_0xbecb13=a100_0x5df4;(function(_0x1256e1,_0x115215){const _0x2b4fe1=a100_0x5df4,_0x33992d=_0x1256e1();while(!![]){try{const _0x4dff4c=parseInt(_0x2b4fe1(0x16f))/0x1+parseInt(_0x2b4fe1(0x19b))/0x2*(parseInt(_0x2b4fe1(0x199))/0x3)+-parseInt(_0x2b4fe1(0x16c))/0x4*(parseInt(_0x2b4fe1(0x18d))/0x5)+parseInt(_0x2b4fe1(0x176))/0x6+-parseInt(_0x2b4fe1(0x16a))/0x7+parseInt(_0x2b4fe1(0x16b))/0x8*(-parseInt(_0x2b4fe1(0x171))/0x9)+-parseInt(_0x2b4fe1(0x17d))/0xa*(-parseInt(_0x2b4fe1(0x1a5))/0xb);if(_0x4dff4c===_0x115215)break;else _0x33992d['push'](_0x33992d['shift']());}catch(_0x2d6538){_0x33992d['push'](_0x33992d['shift']());}}}(a100_0x443d,0xa0fac));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a100_0x443d(){const _0x45b720=['join','Issue\x20description\x20file\x20is\x20empty:\x20','message','issue.description_truncated','truncated','issue.description','issue.description_redactions','apiError','validation','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','1180nNIzqf','Platform\x20issue\x20reported\x20(','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','trim','push','length','redactionKinds','\x20bytes','One-line\x20issue\x20summary','Issue\x20description\x20cannot\x20be\x20empty.','Failed\x20to\x20report\x20platform\x20issue:\x20','inline','1773bWFqnx','descriptionFilePath','2158LJaOAy','string','truncated:\x20original\x20','otel://','title','issue.title','truncated\x20from\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','POST','issue.description_redaction_kinds','477543bYGfYv','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','originalBytes','file','1828869CEXwsW','14600rtkJFW','19756bcZXTs','Platform\x20issue\x20reported','cwd','19424nfrSro','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','6111CGqaIa','redacted\x20','sanitize','\x20secret(s):\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','6372144wlbmqk','str','description','compress','filter','descriptionSource','write','370btKFyf','issue','descriptionSource:\x20','redactionCount','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.'];a100_0x443d=function(){return _0x45b720;};return a100_0x443d();}function a100_0x5df4(_0x3f52c0,_0x590488){_0x3f52c0=_0x3f52c0-0x169;const _0x443d7f=a100_0x443d();let _0x5df45d=_0x443d7f[_0x3f52c0];return _0x5df45d;}export const issueReport={'service':a100_0xbecb13(0x17e),'command':'report','description':a100_0xbecb13(0x181),'risk':a100_0xbecb13(0x17c),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0xbecb13(0x179),'flags':[{'name':a100_0xbecb13(0x19f),'type':'string','required':!![],'description':a100_0xbecb13(0x195)},{'name':a100_0xbecb13(0x178),'type':a100_0xbecb13(0x19c),'description':a100_0xbecb13(0x18c)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0xbecb13(0x19c),'description':a100_0xbecb13(0x170)}],async 'validate'(_0x2391a6){const _0x182033=a100_0xbecb13,_0x1da7fa=_0x2391a6[_0x182033(0x177)](_0x182033(0x19f))[_0x182033(0x190)](),_0x567ac7=_0x2391a6[_0x182033(0x177)](_0x182033(0x178))[_0x182033(0x190)](),_0x223be8=_0x2391a6['str'](DESCRIPTION_FILE_FLAG)[_0x182033(0x190)]();if(!_0x1da7fa)throw CliErrors['flagMissing']('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3883e3=_0x567ac7[_0x182033(0x192)]>0x0,_0x448057=_0x223be8[_0x182033(0x192)]>0x0;if(_0x3883e3===_0x448057)throw CliErrors[_0x182033(0x18b)](_0x182033(0x1a2),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x448057){const _0x54c68d=resolve(process[_0x182033(0x16e)](),_0x223be8);if(!existsSync(_0x54c68d))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x54c68d);}},async 'dryRun'(_0x3d7b50){const _0xd5f771=a100_0xbecb13,_0x367410=await prepareIssueReport(_0x3d7b50);return{'method':_0xd5f771(0x1a3),'url':_0xd5f771(0x19e)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x367410['title'],'issue.description':_0x367410[_0xd5f771(0x178)],'issue.description_original_bytes':_0x367410[_0xd5f771(0x173)][_0xd5f771(0x1a7)],'issue.description_truncated':_0x367410['sanitize'][_0xd5f771(0x187)],'issue.description_redactions':_0x367410['sanitize'][_0xd5f771(0x180)],'issue.description_redaction_kinds':_0x367410[_0xd5f771(0x173)][_0xd5f771(0x193)][_0xd5f771(0x183)](',')}},'description':[_0xd5f771(0x1a6),_0xd5f771(0x17f)+_0x367410[_0xd5f771(0x17b)],_0x367410[_0xd5f771(0x19a)]?'descriptionFile:\x20'+_0x367410[_0xd5f771(0x19a)]:null,_0x367410[_0xd5f771(0x173)][_0xd5f771(0x187)]?_0xd5f771(0x19d)+_0x367410[_0xd5f771(0x173)]['originalBytes']+_0xd5f771(0x194):null,_0x367410[_0xd5f771(0x173)][_0xd5f771(0x180)]>0x0?'redactions:\x20'+_0x367410['sanitize'][_0xd5f771(0x180)]+'\x20('+_0x367410['sanitize']['redactionKinds'][_0xd5f771(0x183)](',\x20')+')':null][_0xd5f771(0x17a)](Boolean)[_0xd5f771(0x183)]('\x0a')};},async 'execute'(_0x30ca86){const _0x1c73d2=a100_0xbecb13,_0x3f9d1a=await prepareIssueReport(_0x30ca86);try{await sendPlatformIssueCollectLog({'title':_0x3f9d1a['title'],'description':_0x3f9d1a[_0x1c73d2(0x178)],'sanitize':{'originalBytes':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x1a7)],'truncated':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x187)],'redactionCount':_0x3f9d1a['sanitize'][_0x1c73d2(0x180)],'redactionKinds':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x193)]}});}catch(_0x420562){throw CliErrors[_0x1c73d2(0x18a)](_0x1c73d2(0x197)+(_0x420562 instanceof Error?_0x420562[_0x1c73d2(0x185)]:String(_0x420562)),_0x1c73d2(0x18f));}return{'ok':!![],'message':buildResultMessage(_0x3f9d1a[_0x1c73d2(0x173)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1c73d2(0x1a0),_0x1c73d2(0x188),'issue.description_original_bytes',_0x1c73d2(0x186),_0x1c73d2(0x189),_0x1c73d2(0x1a4)],'issue':{'title':_0x3f9d1a[_0x1c73d2(0x19f)],'descriptionLength':_0x3f9d1a[_0x1c73d2(0x178)][_0x1c73d2(0x192)],'descriptionSource':_0x3f9d1a[_0x1c73d2(0x17b)],..._0x3f9d1a['descriptionFilePath']?{'descriptionFile':_0x3f9d1a[_0x1c73d2(0x19a)]}:{},'sanitize':{'originalBytes':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x1a7)],'truncated':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x187)],'redactions':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x180)],'redactionKinds':_0x3f9d1a[_0x1c73d2(0x173)][_0x1c73d2(0x193)]}}}};}};function buildResultMessage(_0x4fd7b4){const _0x87426=a100_0xbecb13,_0x386023=[];return _0x4fd7b4[_0x87426(0x187)]&&_0x386023['push'](_0x87426(0x1a1)+_0x4fd7b4[_0x87426(0x1a7)]+_0x87426(0x194)),_0x4fd7b4['redactionCount']>0x0&&_0x386023[_0x87426(0x191)](_0x87426(0x172)+_0x4fd7b4[_0x87426(0x180)]+_0x87426(0x174)+_0x4fd7b4[_0x87426(0x193)][_0x87426(0x183)](',\x20')),_0x386023[_0x87426(0x192)]===0x0?_0x87426(0x16d):_0x87426(0x18e)+_0x386023[_0x87426(0x183)](';\x20')+')';}async function prepareIssueReport(_0x5e70a7){const _0x28e7a4=a100_0xbecb13,_0x15a571=_0x5e70a7[_0x28e7a4(0x177)](_0x28e7a4(0x19f))[_0x28e7a4(0x190)](),_0x578c76=_0x5e70a7[_0x28e7a4(0x177)](_0x28e7a4(0x178)),_0x24d04e=_0x5e70a7[_0x28e7a4(0x177)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x24d04e){const _0x4fc73c=_0x578c76;if(!_0x4fc73c[_0x28e7a4(0x190)]())throw CliErrors[_0x28e7a4(0x18b)](_0x28e7a4(0x196),_0x28e7a4(0x175));const _0x28cc08=sanitizeIssueDescription(_0x4fc73c);return{'title':_0x15a571,'description':_0x28cc08[_0x28e7a4(0x178)],'descriptionSource':_0x28e7a4(0x198),'sanitize':_0x28cc08};}const _0x34ed4e=resolve(process[_0x28e7a4(0x16e)](),_0x24d04e),_0x10354d=await readFile(_0x34ed4e,'utf8');if(!_0x10354d['trim']())throw CliErrors[_0x28e7a4(0x18b)](_0x28e7a4(0x184)+_0x34ed4e,_0x28e7a4(0x182));const _0x575c43=sanitizeIssueDescription(_0x10354d);return{'title':_0x15a571,'description':_0x575c43[_0x28e7a4(0x178)],'descriptionSource':_0x28e7a4(0x169),'descriptionFilePath':_0x34ed4e,'sanitize':_0x575c43};}
@@ -1 +1 @@
1
- const a101_0xc20778=a101_0x3310;(function(_0xa4f0c4,_0x8115a4){const _0x22b073=a101_0x3310,_0x3e8c9e=_0xa4f0c4();while(!![]){try{const _0x18835e=-parseInt(_0x22b073(0x1c4))/0x1*(parseInt(_0x22b073(0x1dc))/0x2)+parseInt(_0x22b073(0x1d7))/0x3*(parseInt(_0x22b073(0x1c8))/0x4)+-parseInt(_0x22b073(0x1d0))/0x5*(parseInt(_0x22b073(0x1ca))/0x6)+parseInt(_0x22b073(0x1cb))/0x7+parseInt(_0x22b073(0x1e5))/0x8+parseInt(_0x22b073(0x1e7))/0x9+-parseInt(_0x22b073(0x1d4))/0xa;if(_0x18835e===_0x8115a4)break;else _0x3e8c9e['push'](_0x3e8c9e['shift']());}catch(_0x39df64){_0x3e8c9e['push'](_0x3e8c9e['shift']());}}}(a101_0x4202,0xa04f1));function a101_0x4202(){const _0x232038=['REDACTED:private-key','1126368hGiRyR','bearer-jwt','6744105dsLSGz','494947DGOyIl','restore','description','length','550860YHLnNe','REDACTED:bearer-jwt','12036AsDoje','5813731sDnikS','string','private-key','from','utf8','1240mWgCxn','REDACTED:password','password','byteLength','13110490blrEMD','access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','27CsAqKN','REDACTED:authorization','authorization','slice','label','2JNkOok','toString','max','__RB_OSS_ID_','push','kind','replace','cookie'];a101_0x4202=function(){return _0x232038;};return a101_0x4202();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a101_0xc20778(0x1d6),REDACTION_RULES=[{'kind':a101_0xc20778(0x1e3),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a101_0xc20778(0x1d9),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a101_0xc20778(0x1d8)},{'kind':a101_0xc20778(0x1cd),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0xc20778(0x1e4)},{'kind':a101_0xc20778(0x1d5),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a101_0xc20778(0x1d2),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0xc20778(0x1d1)},{'kind':a101_0xc20778(0x1e6),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0xc20778(0x1c9)}];export function sanitizeIssueDescription(_0x158b72){const _0x636482=a101_0xc20778,_0x565d50=Buffer['byteLength'](_0x158b72,_0x636482(0x1cf)),_0x5af1dd=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x5d90dd=_0x158b72,_0x30c2d6=0x0;const _0x52e91d=[];if(!_0x5af1dd){const _0x271393=protectOssAccessKeyIds(_0x5d90dd);_0x5d90dd=_0x271393[_0x636482(0x1c6)];for(const _0x49d6c2 of REDACTION_RULES){let _0x33a1f3=0x0;_0x5d90dd=_0x5d90dd['replace'](_0x49d6c2['pattern'],(_0x7edf67,_0x410021)=>{const _0x2fd957=_0x636482;_0x33a1f3+=0x1;const _0xe860c0=typeof _0x410021===_0x2fd957(0x1cc)?_0x410021:'';return _0xe860c0+'['+_0x49d6c2[_0x2fd957(0x1db)]+']';}),_0x33a1f3>0x0&&(_0x30c2d6+=_0x33a1f3,!_0x52e91d['includes'](_0x49d6c2[_0x636482(0x1e1)])&&_0x52e91d[_0x636482(0x1e0)](_0x49d6c2['kind']));}_0x5d90dd=_0x271393[_0x636482(0x1c5)](_0x5d90dd);}let _0x10fd0c=![];if(Buffer[_0x636482(0x1d3)](_0x5d90dd,_0x636482(0x1cf))>ISSUE_DESCRIPTION_MAX_BYTES){_0x10fd0c=!![];const _0x5065c7=Buffer['byteLength'](TRUNCATION_NOTICE,_0x636482(0x1cf)),_0x426a5a=Math[_0x636482(0x1de)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5065c7);_0x5d90dd=sliceUtf8Bytes(_0x5d90dd,_0x426a5a)+TRUNCATION_NOTICE;}return{'description':_0x5d90dd,'originalBytes':_0x565d50,'truncated':_0x10fd0c,'redactionCount':_0x30c2d6,'redactionKinds':_0x52e91d};}function a101_0x3310(_0x4bdbea,_0x2e4351){_0x4bdbea=_0x4bdbea-0x1c4;const _0x4202e2=a101_0x4202();let _0x331006=_0x4202e2[_0x4bdbea];return _0x331006;}function protectOssAccessKeyIds(_0x1c57a2){const _0x152d54=a101_0xc20778,_0x213042=[],_0x171313=_0x1c57a2[_0x152d54(0x1e2)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4831ce,_0x5bda16)=>{const _0x5d9eae=_0x152d54,_0x2b36e6=_0x213042[_0x5d9eae(0x1e0)](_0x4831ce[_0x5d9eae(0x1da)](_0x5bda16[_0x5d9eae(0x1c7)]))-0x1;return _0x5bda16+_0x5d9eae(0x1df)+_0x2b36e6+'__';});return{'description':_0x171313,'restore':_0x24e6dc=>_0x24e6dc[_0x152d54(0x1e2)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x26abf5,_0x2edcba,_0x4cfc42)=>{const _0x11d22f=_0x213042[Number(_0x4cfc42)];return _0x11d22f===undefined?_0x26abf5:''+_0x2edcba+_0x11d22f;})};}function sliceUtf8Bytes(_0x254172,_0x24d64f){const _0x156c36=a101_0xc20778;if(_0x24d64f<=0x0)return'';const _0x235866=Buffer[_0x156c36(0x1ce)](_0x254172,'utf8');if(_0x235866[_0x156c36(0x1d3)]<=_0x24d64f)return _0x254172;let _0x287217=_0x24d64f;while(_0x287217>0x0){const _0x49fdc2=_0x235866[_0x287217];if(_0x49fdc2===undefined||(_0x49fdc2&0xc0)!==0x80)break;_0x287217-=0x1;}return _0x235866['subarray'](0x0,_0x287217)[_0x156c36(0x1dd)](_0x156c36(0x1cf));}
1
+ const a101_0x14909d=a101_0xb207;(function(_0x49b9b4,_0x5b7f3b){const _0x5cdcfc=a101_0xb207,_0x2f31c3=_0x49b9b4();while(!![]){try{const _0x13c53b=-parseInt(_0x5cdcfc(0x192))/0x1+parseInt(_0x5cdcfc(0x196))/0x2+-parseInt(_0x5cdcfc(0x1ad))/0x3*(-parseInt(_0x5cdcfc(0x193))/0x4)+-parseInt(_0x5cdcfc(0x191))/0x5*(parseInt(_0x5cdcfc(0x19e))/0x6)+-parseInt(_0x5cdcfc(0x1b0))/0x7*(-parseInt(_0x5cdcfc(0x1aa))/0x8)+-parseInt(_0x5cdcfc(0x19c))/0x9*(-parseInt(_0x5cdcfc(0x1af))/0xa)+-parseInt(_0x5cdcfc(0x1b2))/0xb*(parseInt(_0x5cdcfc(0x199))/0xc);if(_0x13c53b===_0x5b7f3b)break;else _0x2f31c3['push'](_0x2f31c3['shift']());}catch(_0x37d742){_0x2f31c3['push'](_0x2f31c3['shift']());}}}(a101_0x5b33,0x3df9a));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a101_0x14909d(0x1ab),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a101_0x14909d(0x1b3)},{'kind':a101_0x14909d(0x1a5),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a101_0x14909d(0x194),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0x14909d(0x1b1)},{'kind':a101_0x14909d(0x19b),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a101_0x14909d(0x1a1)},{'kind':a101_0x14909d(0x19d),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x14909d(0x1a2)},{'kind':a101_0x14909d(0x1a0),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0x14909d(0x1a8)}];export function sanitizeIssueDescription(_0x31d5b8){const _0x11640b=a101_0x14909d,_0x577b5a=Buffer['byteLength'](_0x31d5b8,_0x11640b(0x19f)),_0x3f8d4c=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xcac992=_0x31d5b8,_0x54c928=0x0;const _0x2a97d1=[];if(!_0x3f8d4c){const _0x444c96=protectOssAccessKeyIds(_0xcac992);_0xcac992=_0x444c96['description'];for(const _0x591413 of REDACTION_RULES){let _0x570395=0x0;_0xcac992=_0xcac992[_0x11640b(0x1a9)](_0x591413[_0x11640b(0x1a3)],(_0x4b3bb2,_0x57bea9)=>{const _0x2d5ec0=_0x11640b;_0x570395+=0x1;const _0x287111=typeof _0x57bea9==='string'?_0x57bea9:'';return _0x287111+'['+_0x591413[_0x2d5ec0(0x197)]+']';}),_0x570395>0x0&&(_0x54c928+=_0x570395,!_0x2a97d1[_0x11640b(0x1ae)](_0x591413[_0x11640b(0x19a)])&&_0x2a97d1[_0x11640b(0x1ac)](_0x591413['kind']));}_0xcac992=_0x444c96[_0x11640b(0x1a6)](_0xcac992);}let _0x5605db=![];if(Buffer[_0x11640b(0x198)](_0xcac992,_0x11640b(0x19f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x5605db=!![];const _0x42177a=Buffer[_0x11640b(0x198)](TRUNCATION_NOTICE,_0x11640b(0x19f)),_0x1c0175=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x42177a);_0xcac992=sliceUtf8Bytes(_0xcac992,_0x1c0175)+TRUNCATION_NOTICE;}return{'description':_0xcac992,'originalBytes':_0x577b5a,'truncated':_0x5605db,'redactionCount':_0x54c928,'redactionKinds':_0x2a97d1};}function a101_0xb207(_0x61a1eb,_0x11eef1){_0x61a1eb=_0x61a1eb-0x191;const _0x5b33db=a101_0x5b33();let _0xb207af=_0x5b33db[_0x61a1eb];return _0xb207af;}function protectOssAccessKeyIds(_0x3f1730){const _0x45a542=a101_0x14909d,_0x5b462f=[],_0x1e2e81=_0x3f1730[_0x45a542(0x1a9)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x3a7cfe,_0x3a4ef1)=>{const _0x106747=_0x45a542,_0x335d51=_0x5b462f[_0x106747(0x1ac)](_0x3a7cfe[_0x106747(0x1a7)](_0x3a4ef1[_0x106747(0x195)]))-0x1;return _0x3a4ef1+'__RB_OSS_ID_'+_0x335d51+'__';});return{'description':_0x1e2e81,'restore':_0x22d5a8=>_0x22d5a8[_0x45a542(0x1a9)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x208f63,_0xbb6c8a,_0x25189a)=>{const _0xa86db4=_0x5b462f[Number(_0x25189a)];return _0xa86db4===undefined?_0x208f63:''+_0xbb6c8a+_0xa86db4;})};}function sliceUtf8Bytes(_0x559fef,_0x11bd2a){const _0x2b5f19=a101_0x14909d;if(_0x11bd2a<=0x0)return'';const _0x47ef2a=Buffer['from'](_0x559fef,_0x2b5f19(0x19f));if(_0x47ef2a[_0x2b5f19(0x198)]<=_0x11bd2a)return _0x559fef;let _0x1f6b30=_0x11bd2a;while(_0x1f6b30>0x0){const _0x23a85c=_0x47ef2a[_0x1f6b30];if(_0x23a85c===undefined||(_0x23a85c&0xc0)!==0x80)break;_0x1f6b30-=0x1;}return _0x47ef2a['subarray'](0x0,_0x1f6b30)[_0x2b5f19(0x1a4)]('utf8');}function a101_0x5b33(){const _0x2b75cf=['access-key','9ebQDjf','password','102HqdAme','utf8','bearer-jwt','REDACTED:access-key','REDACTED:password','pattern','toString','authorization','restore','slice','REDACTED:bearer-jwt','replace','63016DoilSI','cookie','push','6dbYYCT','includes','4663050qMkZLE','21pmDesp','REDACTED:private-key','19283LDvnfL','REDACTED:cookie','38175VoDTCx','396083ACnPqa','228032JlqXBm','private-key','length','397130srfwQf','label','byteLength','156rbKyJp','kind'];a101_0x5b33=function(){return _0x2b75cf;};return a101_0x5b33();}
@@ -1 +1 @@
1
- const a102_0x31f046=a102_0x1cea;function a102_0x1cea(_0x15ab72,_0x354863){_0x15ab72=_0x15ab72-0xdb;const _0x18abbb=a102_0x18ab();let _0x1ceab1=_0x18abbb[_0x15ab72];return _0x1ceab1;}(function(_0x5d9007,_0x5161e5){const _0xdfbbc1=a102_0x1cea,_0x17e718=_0x5d9007();while(!![]){try{const _0x431171=-parseInt(_0xdfbbc1(0x104))/0x1*(-parseInt(_0xdfbbc1(0xe4))/0x2)+-parseInt(_0xdfbbc1(0xdf))/0x3+parseInt(_0xdfbbc1(0xef))/0x4+-parseInt(_0xdfbbc1(0xe3))/0x5*(parseInt(_0xdfbbc1(0xde))/0x6)+-parseInt(_0xdfbbc1(0xfa))/0x7*(-parseInt(_0xdfbbc1(0xe6))/0x8)+parseInt(_0xdfbbc1(0xdc))/0x9*(parseInt(_0xdfbbc1(0xf1))/0xa)+parseInt(_0xdfbbc1(0xfc))/0xb*(-parseInt(_0xdfbbc1(0x10a))/0xc);if(_0x431171===_0x5161e5)break;else _0x17e718['push'](_0x17e718['shift']());}catch(_0x10c456){_0x17e718['push'](_0x17e718['shift']());}}}(a102_0x18ab,0xddcb5));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=a102_0x31f046(0xe0);function readCreateInput(_0x2440b0){const _0x3cc05c=a102_0x31f046,_0x2188df=_0x2440b0[_0x3cc05c(0xf8)](_0x3cc05c(0xfb))['trim']();if(!_0x2188df)throw kbError('kb_title_required',_0x3cc05c(0xeb));const _0x3e1343=_0x2440b0[_0x3cc05c(0xf8)](_0x3cc05c(0xff))[_0x3cc05c(0x105)]();if(!_0x3e1343)throw kbError(_0x3cc05c(0xee),_0x3cc05c(0x107),_0x3cc05c(0xf7));return{'title':_0x2188df,'file':_0x3e1343};}async function prepareCreate(_0x5ae32b){const _0x7bf051=a102_0x31f046,_0x2cad73=readCreateInput(_0x5ae32b),_0x41fa2c=await readKbFile(_0x2cad73[_0x7bf051(0xff)]),_0x50c362=await fetchAllCompanyKnowledgeBases(_0x5ae32b,{'title':_0x2cad73[_0x7bf051(0xfb)]}),_0x37304f=findExactCompanyKnowledgeBases(_0x50c362,_0x5ae32b[_0x7bf051(0xfd)],_0x2cad73[_0x7bf051(0xfb)]);if(_0x37304f[_0x7bf051(0x108)]>0x0)throw kbError('kb_already_exists',_0x7bf051(0x106)+_0x5ae32b[_0x7bf051(0xfd)]+'\x20with\x20title\x20'+_0x2cad73[_0x7bf051(0xfb)]+'.',_0x7bf051(0xf4)+_0x37304f[0x0]['id']+'\x20--format\x20compress`\x20before\x20choosing\x20update.');return{..._0x2cad73,'content':_0x41fa2c};}function plannedAfter(_0x53eb8e,_0x554794){const _0x59a814=a102_0x31f046;return{'scope':_0x59a814(0xe8),'appCode':_0x53eb8e['appCode'],'title':_0x554794[_0x59a814(0xfb)],'contentByteSize':_0x554794[_0x59a814(0xe5)]['byteSize'],'contentHash':_0x554794['content'][_0x59a814(0xf5)]};}function verifyCreatedState(_0x21e096,_0x1b33be,_0x5ed1c5){const _0x2b05b7=a102_0x31f046;assertCompanyKnowledgeBase(_0x5ed1c5,_0x21e096['appCode'],_0x5ed1c5['id']);const _0x11ed9e=inspectKbContent(_0x5ed1c5[_0x2b05b7(0xe5)]);if(_0x5ed1c5[_0x2b05b7(0xfb)]!==_0x1b33be[_0x2b05b7(0xfb)]||_0x11ed9e[_0x2b05b7(0xf5)]!==_0x1b33be['content']['contentHash'])throw kbError(_0x2b05b7(0xf0),_0x2b05b7(0xdd)+_0x5ed1c5['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x2b05b7(0x102)+_0x5ed1c5['id']+_0x2b05b7(0x10b));return projectKb(_0x5ed1c5);}function a102_0x18ab(){const _0x348fe1=['trim','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','--file\x20is\x20required.','length','string','12RgWEzm','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','POST','135RGGUlR','Company\x20knowledge\x20base\x20','1011378DhwmRl','493176MdebEO','/admin/knowledge-base/create','kb_create_outcome_unknown','write','50jMmqjq','996aVdSPX','content','14099472XuMDhM','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','company','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','stringify','--title\x20is\x20required.','Created\x20company\x20knowledge\x20base\x20','\x20--format\x20compress','kb_file_required','3833188feeEjY','kb_verification_failed','414620VrPOeL','cookie','rabetbase\x20kb\x20list\x20--title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','contentHash','create','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','str','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','7ulKBkD','title','10353596unqaNX','appCode','Knowledge-base\x20title','file','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20for\x20','717YFwgoe'];a102_0x18ab=function(){return _0x348fe1;};return a102_0x18ab();}export const kbCreate={'service':'kb','command':'create','description':a102_0x31f046(0xe7),'risk':a102_0x31f046(0xe2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a102_0x31f046(0xfb),'type':a102_0x31f046(0x109),'required':!![],'description':a102_0x31f046(0xfe)},{'name':a102_0x31f046(0xff),'type':a102_0x31f046(0x109),'required':!![],'description':a102_0x31f046(0xf9)}],async 'validate'(_0x19af24){readCreateInput(_0x19af24);},async 'dryRun'(_0x5ac74c){const _0x2b6742=a102_0x31f046,_0x48da5c=await prepareCreate(_0x5ac74c);return asDryRunResult({'operation':_0x2b6742(0xf6),'selector':{'scope':_0x2b6742(0xe8),'appCode':_0x5ac74c['appCode'],'title':_0x48da5c[_0x2b6742(0xfb)]},'before':null,'after':plannedAfter(_0x5ac74c,_0x48da5c),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x2b6742(0xf3)+JSON[_0x2b6742(0xea)](_0x48da5c[_0x2b6742(0xfb)])+_0x2b6742(0xed)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x3e7dae){const _0x343019=a102_0x31f046,_0x274706=await prepareCreate(_0x3e7dae);let _0x3ffb7a,_0x523ee7=![];try{const _0x1928c4=await createEnterpriseKnowledgeBase(_0x3e7dae[_0x343019(0xf2)],{'appCode':_0x3e7dae['appCode'],'title':_0x274706[_0x343019(0xfb)],'content':_0x274706['content'][_0x343019(0xe5)]});assertCompanyKnowledgeBase(_0x1928c4,_0x3e7dae[_0x343019(0xfd)],_0x1928c4['id']),_0x3ffb7a=_0x1928c4['id'];}catch(_0x18a471){if(!isPlatformTransportFailure(_0x18a471))throw _0x18a471;_0x523ee7=!![];}if(_0x3ffb7a===undefined){const _0x57768b=await verifyKbMutationReadback(_0x343019(0xf6),!![],()=>fetchAllCompanyKnowledgeBases(_0x3e7dae,{'title':_0x274706[_0x343019(0xfb)]})),_0x2171ad=findExactCompanyKnowledgeBases(_0x57768b,_0x3e7dae[_0x343019(0xfd)],_0x274706[_0x343019(0xfb)]);if(_0x2171ad[_0x343019(0x108)]!==0x1)throw kbError(_0x343019(0xe1),_0x343019(0xe9)+_0x2171ad['length']+'.',_0x343019(0x100));_0x3ffb7a=_0x2171ad[0x0]['id'];}const _0x37b814=await verifyKbMutationReadback(_0x343019(0xf6),_0x523ee7,()=>requireKb(_0x3e7dae,_0x3ffb7a)),_0x8f60f5=verifyCreatedState(_0x3e7dae,_0x274706,_0x37b814),_0xd6054d=_0x523ee7?[_0x343019(0x101)]:[];return{'ok':!![],'data':{'operation':_0x343019(0xf6),'selector':{'id':_0x8f60f5['id'],'scope':_0x343019(0xe8),'appCode':_0x8f60f5[_0x343019(0xfd)]},'before':null,'after':_0x8f60f5,'dryRun':![],'backend':{'method':_0x343019(0xdb),'path':CREATE_PATH},'warnings':_0xd6054d,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x523ee7,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x8f60f5['id']+_0x343019(0xed)}},'message':_0x343019(0xec)+_0x8f60f5['id']+_0x343019(0x103)+_0x8f60f5[_0x343019(0xfd)]};}};
1
+ const a102_0x5e48a6=a102_0x5d3f;function a102_0x5b86(){const _0x6ae321=['title','3952719VhjziM','Created\x20company\x20knowledge\x20base\x20','11252885TSjCkS','2JKwEgN','13257wTyXfp','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','kb_verification_failed','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','kb_file_required','\x20--format\x20compress','str','Company\x20knowledge\x20base\x20','write','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','trim','byteSize','POST','stringify','--file\x20is\x20required.','file','contentHash','rabetbase\x20kb\x20list\x20--title\x20','231751msVwUt','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','company','5084HkFNAh','9417204bNkPbp','Knowledge-base\x20title','10htXgmO','22344839IUDNAN','kb_title_required','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','rabetbase\x20kb\x20detail\x20--id\x20','appCode','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','\x20--format\x20compress`\x20before\x20choosing\x20update.','create','kb_already_exists','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','content','kb_create_outcome_unknown','8912rOUvhp','4585cjJRTm','\x20with\x20title\x20'];a102_0x5b86=function(){return _0x6ae321;};return a102_0x5b86();}(function(_0x7f85ec,_0x3b6756){const _0x226ebd=a102_0x5d3f,_0x1a3371=_0x7f85ec();while(!![]){try{const _0x33202c=-parseInt(_0x226ebd(0xb7))/0x1+-parseInt(_0x226ebd(0xa3))/0x2*(parseInt(_0x226ebd(0xa0))/0x3)+parseInt(_0x226ebd(0xba))/0x4*(-parseInt(_0x226ebd(0xcb))/0x5)+parseInt(_0x226ebd(0xbb))/0x6+parseInt(_0x226ebd(0xa2))/0x7+-parseInt(_0x226ebd(0xca))/0x8*(parseInt(_0x226ebd(0xa4))/0x9)+-parseInt(_0x226ebd(0xbd))/0xa*(-parseInt(_0x226ebd(0xbe))/0xb);if(_0x33202c===_0x3b6756)break;else _0x1a3371['push'](_0x1a3371['shift']());}catch(_0x5753aa){_0x1a3371['push'](_0x1a3371['shift']());}}}(a102_0x5b86,0xd02cd));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH='/admin/knowledge-base/create';function a102_0x5d3f(_0x1280dd,_0x225594){_0x1280dd=_0x1280dd-0x9f;const _0x5b865b=a102_0x5b86();let _0x5d3fb9=_0x5b865b[_0x1280dd];return _0x5d3fb9;}function readCreateInput(_0x2f4e6e){const _0x5027a8=a102_0x5d3f,_0x25d869=_0x2f4e6e[_0x5027a8(0xab)]('title')[_0x5027a8(0xaf)]();if(!_0x25d869)throw kbError(_0x5027a8(0xbf),'--title\x20is\x20required.');const _0x3eafaa=_0x2f4e6e[_0x5027a8(0xab)](_0x5027a8(0xb4))['trim']();if(!_0x3eafaa)throw kbError(_0x5027a8(0xa9),_0x5027a8(0xb3),'Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.');return{'title':_0x25d869,'file':_0x3eafaa};}async function prepareCreate(_0x4a38a4){const _0x57eec6=a102_0x5d3f,_0x2cc226=readCreateInput(_0x4a38a4),_0x57946d=await readKbFile(_0x2cc226[_0x57eec6(0xb4)]),_0x2b9496=await fetchAllCompanyKnowledgeBases(_0x4a38a4,{'title':_0x2cc226['title']}),_0x5b3397=findExactCompanyKnowledgeBases(_0x2b9496,_0x4a38a4[_0x57eec6(0xc2)],_0x2cc226['title']);if(_0x5b3397['length']>0x0)throw kbError(_0x57eec6(0xc6),_0x57eec6(0xa5)+_0x4a38a4['appCode']+_0x57eec6(0xcc)+_0x2cc226[_0x57eec6(0x9f)]+'.',_0x57eec6(0xc7)+_0x5b3397[0x0]['id']+_0x57eec6(0xc4));return{..._0x2cc226,'content':_0x57946d};}function plannedAfter(_0x29561a,_0x2c67ea){const _0x52721a=a102_0x5d3f;return{'scope':_0x52721a(0xb9),'appCode':_0x29561a[_0x52721a(0xc2)],'title':_0x2c67ea[_0x52721a(0x9f)],'contentByteSize':_0x2c67ea['content'][_0x52721a(0xb0)],'contentHash':_0x2c67ea['content'][_0x52721a(0xb5)]};}function verifyCreatedState(_0x6f1163,_0x15b555,_0xe416){const _0x129e9e=a102_0x5d3f;assertCompanyKnowledgeBase(_0xe416,_0x6f1163['appCode'],_0xe416['id']);const _0x1d1733=inspectKbContent(_0xe416[_0x129e9e(0xc8)]);if(_0xe416['title']!==_0x15b555[_0x129e9e(0x9f)]||_0x1d1733[_0x129e9e(0xb5)]!==_0x15b555[_0x129e9e(0xc8)]['contentHash'])throw kbError(_0x129e9e(0xa6),_0x129e9e(0xac)+_0xe416['id']+'\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.',_0x129e9e(0xa7)+_0xe416['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0xe416);}export const kbCreate={'service':'kb','command':a102_0x5e48a6(0xc5),'description':a102_0x5e48a6(0xc0),'risk':a102_0x5e48a6(0xad),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a102_0x5e48a6(0x9f),'type':'string','required':!![],'description':a102_0x5e48a6(0xbc)},{'name':a102_0x5e48a6(0xb4),'type':'string','required':!![],'description':a102_0x5e48a6(0xb8)}],async 'validate'(_0xac1099){readCreateInput(_0xac1099);},async 'dryRun'(_0x1cc688){const _0x2a2773=a102_0x5e48a6,_0x5b1988=await prepareCreate(_0x1cc688);return asDryRunResult({'operation':_0x2a2773(0xc5),'selector':{'scope':_0x2a2773(0xb9),'appCode':_0x1cc688[_0x2a2773(0xc2)],'title':_0x5b1988[_0x2a2773(0x9f)]},'before':null,'after':plannedAfter(_0x1cc688,_0x5b1988),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x2a2773(0xb6)+JSON[_0x2a2773(0xb2)](_0x5b1988[_0x2a2773(0x9f)])+_0x2a2773(0xaa)}},{'method':_0x2a2773(0xb1),'url':CREATE_PATH});},async 'execute'(_0xb71a76){const _0x241315=a102_0x5e48a6,_0x5c0c39=await prepareCreate(_0xb71a76);let _0x57d375,_0x2567a1=![];try{const _0x2f754a=await createEnterpriseKnowledgeBase(_0xb71a76['cookie'],{'appCode':_0xb71a76[_0x241315(0xc2)],'title':_0x5c0c39['title'],'content':_0x5c0c39[_0x241315(0xc8)][_0x241315(0xc8)]});assertCompanyKnowledgeBase(_0x2f754a,_0xb71a76[_0x241315(0xc2)],_0x2f754a['id']),_0x57d375=_0x2f754a['id'];}catch(_0x5553dc){if(!isPlatformTransportFailure(_0x5553dc))throw _0x5553dc;_0x2567a1=!![];}if(_0x57d375===undefined){const _0x25fd57=await verifyKbMutationReadback(_0x241315(0xc5),!![],()=>fetchAllCompanyKnowledgeBases(_0xb71a76,{'title':_0x5c0c39[_0x241315(0x9f)]})),_0x23c036=findExactCompanyKnowledgeBases(_0x25fd57,_0xb71a76[_0x241315(0xc2)],_0x5c0c39['title']);if(_0x23c036['length']!==0x1)throw kbError(_0x241315(0xc9),_0x241315(0xae)+_0x23c036['length']+'.',_0x241315(0xc3));_0x57d375=_0x23c036[0x0]['id'];}const _0x239d90=await verifyKbMutationReadback(_0x241315(0xc5),_0x2567a1,()=>requireKb(_0xb71a76,_0x57d375)),_0x3e45be=verifyCreatedState(_0xb71a76,_0x5c0c39,_0x239d90),_0x2ff0c4=_0x2567a1?[_0x241315(0xa8)]:[];return{'ok':!![],'data':{'operation':'create','selector':{'id':_0x3e45be['id'],'scope':'company','appCode':_0x3e45be[_0x241315(0xc2)]},'before':null,'after':_0x3e45be,'dryRun':![],'backend':{'method':_0x241315(0xb1),'path':CREATE_PATH},'warnings':_0x2ff0c4,'verification':{'status':'verified','recoveredAfterUnknownResponse':_0x2567a1,'lookupCommand':_0x241315(0xc1)+_0x3e45be['id']+_0x241315(0xaa)}},'message':_0x241315(0xa1)+_0x3e45be['id']+'\x20for\x20'+_0x3e45be[_0x241315(0xc2)]};}};