@lovrabet/rabetbase-cli 2.4.6-beta.1 → 2.4.6-beta.3

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 (299) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/init/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.d.ts +8 -7
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/types.d.ts +17 -2
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.d.ts +2 -0
  138. package/lib/commands/menu/visibility-update.js +1 -0
  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.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/rules-cdn.js +1 -1
  288. package/lib/utils/sleep.js +1 -1
  289. package/lib/utils/template-replacer.js +1 -1
  290. package/lib/utils/update-notice.js +1 -1
  291. package/lib/utils/version.js +1 -1
  292. package/lib/utils/with-active-cookie.js +1 -1
  293. package/lib/utils/write-cli-side-channel.js +1 -1
  294. package/package.json +1 -1
  295. package/skills/rabetbase/SKILL.md +4 -3
  296. package/skills/rabetbase/references/rabetbase-menu-list.md +3 -1
  297. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +59 -0
  298. package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
  299. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- (function(_0x4c7764,_0x32f550){const _0x48936c=a89_0x119e,_0x2829fb=_0x4c7764();while(!![]){try{const _0x4a1f78=parseInt(_0x48936c(0x12c))/0x1*(parseInt(_0x48936c(0x121))/0x2)+-parseInt(_0x48936c(0x124))/0x3+parseInt(_0x48936c(0x128))/0x4*(parseInt(_0x48936c(0x122))/0x5)+parseInt(_0x48936c(0x125))/0x6*(-parseInt(_0x48936c(0x126))/0x7)+-parseInt(_0x48936c(0x120))/0x8*(-parseInt(_0x48936c(0x129))/0x9)+-parseInt(_0x48936c(0x123))/0xa*(-parseInt(_0x48936c(0x127))/0xb)+-parseInt(_0x48936c(0x12b))/0xc*(-parseInt(_0x48936c(0x12a))/0xd);if(_0x4a1f78===_0x32f550)break;else _0x2829fb['push'](_0x2829fb['shift']());}catch(_0x12054e){_0x2829fb['push'](_0x2829fb['shift']());}}}(a89_0x16ec,0x753bd));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';function a89_0x119e(_0xc604db,_0x456752){_0xc604db=_0xc604db-0x120;const _0x16ec2d=a89_0x16ec();let _0x119e90=_0x16ec2d[_0xc604db];return _0x119e90;}import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';import{dbDelete}from'../../commands/db/delete.js';import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';function a89_0x16ec(){const _0x401e31=['24IYcqhj','433271jKrXXV','1527216DiUdAE','4hkeQdK','10FIaQdG','9170imcghh','2254830fvnzbG','343752zGSWYp','84xfGzeu','2167dSdvFY','818084EtHdWq','9YPmIDs','1769092dvjuVG'];a89_0x16ec=function(){return _0x401e31;};return a89_0x16ec();}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(_0x40a5ca,_0x1cfcf8){const _0x4e5d89=a89_0xe60e,_0x4b3002=_0x40a5ca();while(!![]){try{const _0x3414bf=parseInt(_0x4e5d89(0x103))/0x1+-parseInt(_0x4e5d89(0x109))/0x2*(parseInt(_0x4e5d89(0x108))/0x3)+-parseInt(_0x4e5d89(0x106))/0x4*(-parseInt(_0x4e5d89(0x10b))/0x5)+-parseInt(_0x4e5d89(0x10a))/0x6+parseInt(_0x4e5d89(0x102))/0x7*(parseInt(_0x4e5d89(0x107))/0x8)+-parseInt(_0x4e5d89(0x104))/0x9+-parseInt(_0x4e5d89(0x105))/0xa*(-parseInt(_0x4e5d89(0x101))/0xb);if(_0x3414bf===_0x1cfcf8)break;else _0x4b3002['push'](_0x4b3002['shift']());}catch(_0x2b9ee3){_0x4b3002['push'](_0x4b3002['shift']());}}}(a89_0x1d5b,0x93cf0));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';function a89_0x1d5b(){const _0x24e137=['13810srwWhe','11RINUfI','22253WvQyib','491173Yapcdk','5651658ZIvhIf','9602940DAcpZw','964DOktlU','776vTdDsR','7431JuASAe','742TjsjIr','1638714xfprWZ'];a89_0x1d5b=function(){return _0x24e137;};return a89_0x1d5b();}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';function a89_0xe60e(_0x25f8eb,_0x412d86){_0x25f8eb=_0x25f8eb-0x101;const _0x1d5b5c=a89_0x1d5b();let _0xe60ee6=_0x1d5b5c[_0x25f8eb];return _0xe60ee6;}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_0x6e7c64=a90_0xb9c3;(function(_0x127c27,_0x87b169){const _0x4e7efa=a90_0xb9c3,_0x1c6ce3=_0x127c27();while(!![]){try{const _0xaff8b6=-parseInt(_0x4e7efa(0x1dc))/0x1*(parseInt(_0x4e7efa(0x1db))/0x2)+-parseInt(_0x4e7efa(0x1e6))/0x3*(parseInt(_0x4e7efa(0x1d8))/0x4)+-parseInt(_0x4e7efa(0x1d6))/0x5+-parseInt(_0x4e7efa(0x1e8))/0x6*(parseInt(_0x4e7efa(0x1d3))/0x7)+-parseInt(_0x4e7efa(0x1d2))/0x8+parseInt(_0x4e7efa(0x1e5))/0x9*(-parseInt(_0x4e7efa(0x1dd))/0xa)+parseInt(_0x4e7efa(0x1e4))/0xb;if(_0xaff8b6===_0x87b169)break;else _0x1c6ce3['push'](_0x1c6ce3['shift']());}catch(_0x11f6ab){_0x1c6ce3['push'](_0x1c6ce3['shift']());}}}(a90_0x3361,0x709a0));import{listDatasets,listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a90_0xb9c3(_0x167075,_0x376ef1){_0x167075=_0x167075-0x1d2;const _0x33615a=a90_0x3361();let _0xb9c387=_0x33615a[_0x167075];return _0xb9c387;}import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a90_0x3361(){const _0x18343f=['3915255SpmqEl','\x20database\x20connection(s)','1008212aEvUAT','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Page\x20index\x20(1-based)','1361948VLeTAw','1YGUlDa','250nLzbAP','Page\x20size','datasetDependency','Found\x20','appCode','all','page','39881820YOHrAN','153297vjxsGZ','9JHCmiv','list','642ezgvrC','4053856afGjTI','763JslpSz','number','read'];a90_0x3361=function(){return _0x18343f;};return a90_0x3361();}export const dbList={'service':'db','command':a90_0x6e7c64(0x1e7),'description':'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','risk':a90_0x6e7c64(0x1d5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a90_0x6e7c64(0x1e3),'type':a90_0x6e7c64(0x1d4),'description':a90_0x6e7c64(0x1da),'default':0x1},{'name':'pagesize','type':a90_0x6e7c64(0x1d4),'description':a90_0x6e7c64(0x1de),'default':0x64}],async 'execute'(_0x1267fa){const _0x109f18=a90_0x6e7c64,_0x28830f=_0x1267fa['num'](_0x109f18(0x1e3),0x1)||0x1,_0x47c437=_0x1267fa['num']('pagesize',0x64)||0x64,[{items:_0x4a9b94,paging:_0x3e9bf5},_0x4460d8]=await Promise[_0x109f18(0x1e2)]([listDbLinks(_0x1267fa['appCode'],{'currentPage':_0x28830f,'pageSize':_0x47c437}),listDatasets(_0x1267fa[_0x109f18(0x1e1)],{'source':'DB_TABLE'})]),_0x35243c=_0x4a9b94['map'](_0x4a4e38=>({...sanitizeDbLinkForOutput(_0x4a4e38),'datasetDependency':buildDbDatasetDependency(_0x4a4e38,_0x4460d8)[_0x109f18(0x1df)]})),_0x24b062=_0x3e9bf5?_0x3e9bf5:{'currentPage':_0x28830f,'pageSize':_0x47c437,'rowsOnPage':_0x35243c['length'],'totalCount':null,'note':_0x109f18(0x1d9)};return{'ok':!![],'data':{'connections':_0x35243c,'paging':_0x24b062},'message':_0x109f18(0x1e0)+_0x35243c['length']+_0x109f18(0x1d7)};}};
1
+ const a90_0x38d53b=a90_0x1ad9;(function(_0x1c6b37,_0x57b3f0){const _0x35cd4d=a90_0x1ad9,_0x39ee1a=_0x1c6b37();while(!![]){try{const _0x1e99a7=parseInt(_0x35cd4d(0x17b))/0x1*(parseInt(_0x35cd4d(0x180))/0x2)+parseInt(_0x35cd4d(0x183))/0x3*(parseInt(_0x35cd4d(0x189))/0x4)+-parseInt(_0x35cd4d(0x184))/0x5+parseInt(_0x35cd4d(0x18b))/0x6*(parseInt(_0x35cd4d(0x182))/0x7)+parseInt(_0x35cd4d(0x17d))/0x8+parseInt(_0x35cd4d(0x17c))/0x9+-parseInt(_0x35cd4d(0x176))/0xa*(parseInt(_0x35cd4d(0x179))/0xb);if(_0x1e99a7===_0x57b3f0)break;else _0x39ee1a['push'](_0x39ee1a['shift']());}catch(_0x3e1393){_0x39ee1a['push'](_0x39ee1a['shift']());}}}(a90_0x1e35,0x66246));import{listDatasets,listDbLinks}from'../../core/api-client.js';function a90_0x1ad9(_0x3e7430,_0x567c3){_0x3e7430=_0x3e7430-0x175;const _0x1e3552=a90_0x1e35();let _0x1ad93a=_0x1e3552[_0x3e7430];return _0x1ad93a;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a90_0x38d53b(0x18d),'description':a90_0x38d53b(0x185),'risk':a90_0x38d53b(0x18f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a90_0x38d53b(0x178),'description':a90_0x38d53b(0x18a),'default':0x1},{'name':'pagesize','type':a90_0x38d53b(0x178),'description':a90_0x38d53b(0x17e),'default':0x64}],async 'execute'(_0xe21694){const _0x5988df=a90_0x38d53b,_0x5ce413=_0xe21694[_0x5988df(0x17f)]('page',0x1)||0x1,_0x21293b=_0xe21694[_0x5988df(0x17f)](_0x5988df(0x186),0x64)||0x64,[{items:_0x340c75,paging:_0x48234a},_0x48491c]=await Promise[_0x5988df(0x18e)]([listDbLinks(_0xe21694[_0x5988df(0x188)],{'currentPage':_0x5ce413,'pageSize':_0x21293b}),listDatasets(_0xe21694['appCode'],{'source':_0x5988df(0x190)})]),_0x3eecbd=_0x340c75[_0x5988df(0x177)](_0x13db8c=>({...sanitizeDbLinkForOutput(_0x13db8c),'datasetDependency':buildDbDatasetDependency(_0x13db8c,_0x48491c)[_0x5988df(0x181)]})),_0x5a7025=_0x48234a?_0x48234a:{'currentPage':_0x5ce413,'pageSize':_0x21293b,'rowsOnPage':_0x3eecbd['length'],'totalCount':null,'note':_0x5988df(0x18c)};return{'ok':!![],'data':{'connections':_0x3eecbd,'paging':_0x5a7025},'message':_0x5988df(0x17a)+_0x3eecbd[_0x5988df(0x187)]+_0x5988df(0x175)};}};function a90_0x1e35(){const _0x4a9c81=['list','all','read','DB_TABLE','\x20database\x20connection(s)','2190QpzLGA','map','number','89595reIVhB','Found\x20','1277gyxovQ','4238730mZjORg','2830848LEgVZa','Page\x20size','num','34KbaRNT','datasetDependency','21evtXDm','3ozaUJu','133545KtxtdD','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','pagesize','length','appCode','3091388aIbaly','Page\x20index\x20(1-based)','1218912wosxHh','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only'];a90_0x1e35=function(){return _0x4a9c81;};return a90_0x1e35();}
@@ -1 +1 @@
1
- (function(_0x1410c5,_0x17bbe2){const _0x5ade99=a91_0x1244,_0x451f89=_0x1410c5();while(!![]){try{const _0x51bfb4=-parseInt(_0x5ade99(0x142))/0x1*(parseInt(_0x5ade99(0x140))/0x2)+-parseInt(_0x5ade99(0x13f))/0x3*(parseInt(_0x5ade99(0x148))/0x4)+-parseInt(_0x5ade99(0x149))/0x5*(-parseInt(_0x5ade99(0x146))/0x6)+-parseInt(_0x5ade99(0x13a))/0x7*(-parseInt(_0x5ade99(0x138))/0x8)+parseInt(_0x5ade99(0x13c))/0x9*(-parseInt(_0x5ade99(0x132))/0xa)+-parseInt(_0x5ade99(0x14f))/0xb+parseInt(_0x5ade99(0x137))/0xc;if(_0x51bfb4===_0x17bbe2)break;else _0x451f89['push'](_0x451f89['shift']());}catch(_0x5f30f9){_0x451f89['push'](_0x451f89['shift']());}}}(a91_0x43c6,0x85865));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x1b801b){const _0x1719b6=a91_0x1244,_0x27ab21=_0x1b801b[_0x1719b6(0x14d)]();if(_0x27ab21==='password'||_0x27ab21===_0x1719b6(0x135)||_0x27ab21===_0x1719b6(0x134))return!![];if(_0x27ab21[_0x1719b6(0x139)](_0x1719b6(0x14e))||_0x27ab21[_0x1719b6(0x139)](_0x1719b6(0x13e))||_0x27ab21[_0x1719b6(0x139)](_0x1719b6(0x14c)))return!![];if(_0x27ab21[_0x1719b6(0x139)]('privatekey')||_0x27ab21['includes'](_0x1719b6(0x130)))return!![];if(_0x27ab21===_0x1719b6(0x147)||_0x27ab21===_0x1719b6(0x145)||_0x27ab21==='jdbcurl')return!![];return![];}export function sanitizeDbLinkForOutput(_0x4a8b64){const _0x3a0b64=a91_0x1244,_0x1079a8={..._0x4a8b64};delete _0x1079a8[_0x3a0b64(0x150)];for(const _0x51beff of Object[_0x3a0b64(0x143)](_0x1079a8)){if(!shouldRedactKey(_0x51beff))continue;const _0xbef47d=_0x1079a8[_0x51beff];_0xbef47d!=null&&String(_0xbef47d)['length']>0x0&&(_0x1079a8[_0x51beff]=_0x3a0b64(0x136));}return _0x1079a8;}export function sanitizeDbLinkList(_0x2d7663){const _0x178e39=a91_0x1244;return _0x2d7663[_0x178e39(0x14a)](_0x259fd2=>sanitizeDbLinkForOutput(_0x259fd2));}export function buildDbDatasetDependency(_0x234dae,_0x2cb13e){const _0x548d48=a91_0x1244,_0x5b631a=_0x2cb13e['filter'](_0x15e20d=>Number(_0x15e20d[_0x548d48(0x151)]?.['dbId'])===Number(_0x234dae['id']))['map'](_0x7f78=>({'id':_0x7f78['id'],'code':_0x7f78[_0x548d48(0x14b)],'name':_0x7f78[_0x548d48(0x144)],..._0x7f78['dbtableConfig']?.[_0x548d48(0x133)]?{'tableName':_0x7f78[_0x548d48(0x151)][_0x548d48(0x133)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x5b631a['length']>0x0,'activeDatasetCount':_0x5b631a['length']},'datasets':_0x5b631a};}export async function assertDbLinkConnectionPreflight(_0x515d05){const _0x444dd6=a91_0x1244,_0x3c3bdd=await testDbLinkConfigConnect(_0x515d05);if(_0x3c3bdd!==!![])throw CliErrors[_0x444dd6(0x141)]('Database\x20connection\x20preflight\x20failed.','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.');}function a91_0x43c6(){const _0x1749ce=['1820536CJxxGV','includes','14poQSgG','/data/database','1251qfCTvk','trim','token','3cltfCM','606XiKsxt','apiError','1413qyJYxi','keys','name','connectionstring','12ZMNewR','authorization','4308264iwzzyw','1239190hEgRve','map','code','credential','toLowerCase','secret','6242236eDnNZg','hasAvailableDo','dbtableConfig','accesskey','/data/er?dbId=','21380kSSDTa','tableName','dbpassword','passwd','[redacted]','23591640QhFMwC'];a91_0x43c6=function(){return _0x1749ce;};return a91_0x43c6();}function a91_0x1244(_0x4b1d64,_0x1eb0e8){_0x4b1d64=_0x4b1d64-0x130;const _0x43c6a3=a91_0x43c6();let _0x124448=_0x43c6a3[_0x4b1d64];return _0x124448;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x59ce00){const _0x4f996b=a91_0x1244,_0x5ca86c=_0x59ce00[_0x4f996b(0x13d)]();if(!_0x5ca86c)return![];return DB_URL_PATTERN['test'](_0x5ca86c);}export function buildDbPageLinks(_0x4bc3cc,_0x790b59){const _0x17a010=a91_0x1244,_0x469f35=_0x4bc3cc?.[_0x17a010(0x13d)]();if(!_0x469f35)return undefined;const _0x2a89f2=typeof _0x790b59==='number'?String(_0x790b59):String(_0x790b59??'')[_0x17a010(0x13d)]();if(!_0x2a89f2)return undefined;const _0x1a469a=Number(_0x2a89f2);if(!Number['isFinite'](_0x1a469a)||_0x1a469a<=0x0)return undefined;const _0x10a5ae=getAppBaseUrl(_0x469f35),_0x292e37=encodeURIComponent(String(_0x1a469a));return{'databasePage':_0x10a5ae+_0x17a010(0x13b),'erPage':_0x10a5ae+_0x17a010(0x131)+_0x292e37};}
1
+ (function(_0x18757f,_0x5597bb){const _0x2bdf03=a91_0xd39c,_0x194931=_0x18757f();while(!![]){try{const _0x4df305=parseInt(_0x2bdf03(0x1da))/0x1+parseInt(_0x2bdf03(0x1e6))/0x2*(-parseInt(_0x2bdf03(0x1ed))/0x3)+-parseInt(_0x2bdf03(0x1dc))/0x4+parseInt(_0x2bdf03(0x1d7))/0x5+parseInt(_0x2bdf03(0x1df))/0x6+-parseInt(_0x2bdf03(0x1f3))/0x7*(-parseInt(_0x2bdf03(0x1f0))/0x8)+-parseInt(_0x2bdf03(0x1e2))/0x9*(parseInt(_0x2bdf03(0x1de))/0xa);if(_0x4df305===_0x5597bb)break;else _0x194931['push'](_0x194931['shift']());}catch(_0x17091a){_0x194931['push'](_0x194931['shift']());}}}(a91_0x426a,0x8ce29));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0xd2c158){const _0x34f3e3=a91_0xd39c,_0x2c3dd3=_0xd2c158[_0x34f3e3(0x1f7)]();if(_0x2c3dd3===_0x34f3e3(0x1d8)||_0x2c3dd3===_0x34f3e3(0x1f8)||_0x2c3dd3===_0x34f3e3(0x1e5))return!![];if(_0x2c3dd3[_0x34f3e3(0x1eb)](_0x34f3e3(0x1f9))||_0x2c3dd3[_0x34f3e3(0x1eb)]('token')||_0x2c3dd3[_0x34f3e3(0x1eb)](_0x34f3e3(0x1f6)))return!![];if(_0x2c3dd3[_0x34f3e3(0x1eb)]('privatekey')||_0x2c3dd3['includes']('accesskey'))return!![];if(_0x2c3dd3===_0x34f3e3(0x1ec)||_0x2c3dd3==='connectionstring'||_0x2c3dd3===_0x34f3e3(0x1f1))return!![];return![];}export function sanitizeDbLinkForOutput(_0x15296c){const _0x3badd4=a91_0xd39c,_0x32de4a={..._0x15296c};delete _0x32de4a['hasAvailableDo'];for(const _0x3214b4 of Object[_0x3badd4(0x1ee)](_0x32de4a)){if(!shouldRedactKey(_0x3214b4))continue;const _0xc3ff35=_0x32de4a[_0x3214b4];_0xc3ff35!=null&&String(_0xc3ff35)[_0x3badd4(0x1e4)]>0x0&&(_0x32de4a[_0x3214b4]=_0x3badd4(0x1e3));}return _0x32de4a;}export function sanitizeDbLinkList(_0xfc544e){const _0x5c2170=a91_0xd39c;return _0xfc544e[_0x5c2170(0x1f2)](_0x372343=>sanitizeDbLinkForOutput(_0x372343));}function a91_0xd39c(_0x47d813,_0x3fb173){_0x47d813=_0x47d813-0x1d7;const _0x426a61=a91_0x426a();let _0xd39cc5=_0x426a61[_0x47d813];return _0xd39cc5;}export function buildDbDatasetDependency(_0x9fb409,_0x2c703f){const _0x176726=a91_0xd39c,_0x316b24=_0x2c703f[_0x176726(0x1e9)](_0x372a59=>Number(_0x372a59[_0x176726(0x1f4)]?.['dbId'])===Number(_0x9fb409['id']))[_0x176726(0x1f2)](_0x5c1a12=>({'id':_0x5c1a12['id'],'code':_0x5c1a12['code'],'name':_0x5c1a12[_0x176726(0x1ef)],..._0x5c1a12[_0x176726(0x1f4)]?.[_0x176726(0x1dd)]?{'tableName':_0x5c1a12[_0x176726(0x1f4)][_0x176726(0x1dd)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x316b24[_0x176726(0x1e4)]>0x0,'activeDatasetCount':_0x316b24[_0x176726(0x1e4)]},'datasets':_0x316b24};}export async function assertDbLinkConnectionPreflight(_0x5be9e8){const _0x13a8f9=a91_0xd39c,_0x446d8c=await testDbLinkConfigConnect(_0x5be9e8);if(_0x446d8c!==!![])throw CliErrors[_0x13a8f9(0x1e1)](_0x13a8f9(0x1e0),_0x13a8f9(0x1e8));}function a91_0x426a(){const _0x30f175=['[redacted]','length','dbpassword','122oEyprd','number','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','filter','trim','includes','authorization','30813CScQey','keys','name','8YSxLFg','jdbcurl','map','989807AfZAyF','dbtableConfig','/data/er?dbId=','credential','toLowerCase','passwd','secret','4748710tFekAo','password','test','803598xxeqoi','isFinite','2525252kytLKY','tableName','166030AoUekc','5119998AuHMwD','Database\x20connection\x20preflight\x20failed.','apiError','495rWvWTH'];a91_0x426a=function(){return _0x30f175;};return a91_0x426a();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3ccc21){const _0x176581=a91_0xd39c,_0x827464=_0x3ccc21[_0x176581(0x1ea)]();if(!_0x827464)return![];return DB_URL_PATTERN[_0x176581(0x1d9)](_0x827464);}export function buildDbPageLinks(_0x4489f7,_0x25cd08){const _0x350bc9=a91_0xd39c,_0x3a4ac9=_0x4489f7?.['trim']();if(!_0x3a4ac9)return undefined;const _0x4927ba=typeof _0x25cd08===_0x350bc9(0x1e7)?String(_0x25cd08):String(_0x25cd08??'')[_0x350bc9(0x1ea)]();if(!_0x4927ba)return undefined;const _0x242e3a=Number(_0x4927ba);if(!Number[_0x350bc9(0x1db)](_0x242e3a)||_0x242e3a<=0x0)return undefined;const _0x1fb5f4=getAppBaseUrl(_0x3a4ac9),_0x56cdb8=encodeURIComponent(String(_0x242e3a));return{'databasePage':_0x1fb5f4+'/data/database','erPage':_0x1fb5f4+_0x350bc9(0x1f5)+_0x56cdb8};}
@@ -1 +1 @@
1
- const a92_0x2c353d=a92_0x54ef;(function(_0x198f87,_0x17ab71){const _0x2ac061=a92_0x54ef,_0x8259c4=_0x198f87();while(!![]){try{const _0x4d586a=parseInt(_0x2ac061(0x196))/0x1+parseInt(_0x2ac061(0x190))/0x2*(-parseInt(_0x2ac061(0x195))/0x3)+-parseInt(_0x2ac061(0x197))/0x4+parseInt(_0x2ac061(0x192))/0x5*(parseInt(_0x2ac061(0x19d))/0x6)+-parseInt(_0x2ac061(0x18f))/0x7*(-parseInt(_0x2ac061(0x191))/0x8)+parseInt(_0x2ac061(0x19e))/0x9*(parseInt(_0x2ac061(0x198))/0xa)+parseInt(_0x2ac061(0x193))/0xb*(parseInt(_0x2ac061(0x199))/0xc);if(_0x4d586a===_0x17ab71)break;else _0x8259c4['push'](_0x8259c4['shift']());}catch(_0xabb28b){_0x8259c4['push'](_0x8259c4['shift']());}}}(a92_0xb101,0xcf789));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_0x2c353d(0x19c),'description':a92_0x2c353d(0x19b),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xf5fbfc){const _0x3cc53e=a92_0x2c353d,_0x47e357=_0xf5fbfc[_0x3cc53e(0x194)]('id'),_0x37237f=await getDbAllTableList(_0xf5fbfc[_0x3cc53e(0x18e)],_0x47e357);return{'ok':!![],'data':{'dbLinkId':_0x47e357,'total':_0x37237f[_0x3cc53e(0x18d)],'tables':_0x37237f},'message':_0x37237f[_0x3cc53e(0x18d)]+_0x3cc53e(0x19a)+_0x47e357};}};function a92_0x54ef(_0x2f73ce,_0x463d2f){_0x2f73ce=_0x2f73ce-0x18d;const _0xb10193=a92_0xb101();let _0x54eff2=_0xb10193[_0x2f73ce];return _0x54eff2;}function a92_0xb101(){const _0x5dc6a8=['15588kFBpak','1521diOPMF','length','appCode','7021630iztXyC','1028uZvzQY','8AyeKPJ','1790uEFcFs','11xMwWlO','num','4425mRzfWQ','457092pFKmlX','4771580SONVgf','15290RPYUvM','1826148ZBSuMD','\x20table(s)\x20on\x20db\x20link\x20','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','tables'];a92_0xb101=function(){return _0x5dc6a8;};return a92_0xb101();}
1
+ function a92_0x50a6(_0xc8bfa0,_0x359569){_0xc8bfa0=_0xc8bfa0-0x145;const _0x2bc09b=a92_0x2bc0();let _0x50a604=_0x2bc09b[_0xc8bfa0];return _0x50a604;}const a92_0x560f11=a92_0x50a6;(function(_0x4df47d,_0x978b58){const _0x5523d6=a92_0x50a6,_0x42608a=_0x4df47d();while(!![]){try{const _0x3a4db1=parseInt(_0x5523d6(0x14a))/0x1+parseInt(_0x5523d6(0x148))/0x2+parseInt(_0x5523d6(0x147))/0x3*(parseInt(_0x5523d6(0x149))/0x4)+-parseInt(_0x5523d6(0x145))/0x5*(-parseInt(_0x5523d6(0x152))/0x6)+parseInt(_0x5523d6(0x14b))/0x7+parseInt(_0x5523d6(0x146))/0x8+-parseInt(_0x5523d6(0x14e))/0x9;if(_0x3a4db1===_0x978b58)break;else _0x42608a['push'](_0x42608a['shift']());}catch(_0x2ee17a){_0x42608a['push'](_0x42608a['shift']());}}}(a92_0x2bc0,0x4f161));import{getDbAllTableList}from'../../core/api-client.js';function a92_0x2bc0(){const _0x2e0058=['17559153uAuWMt','tables','length','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','138hNAmvu','28445AUWGny','3729584JaNacH','12663CaNMOo','695614FfIkUp','532AQHSDu','243077lmSysC','3679424BQuyTs','num','appCode'];a92_0x2bc0=function(){return _0x2e0058;};return a92_0x2bc0();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a92_0x560f11(0x14f),'description':a92_0x560f11(0x151),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x52e750){const _0x5f5493=a92_0x560f11,_0x58d7ff=_0x52e750[_0x5f5493(0x14c)]('id'),_0x2f5742=await getDbAllTableList(_0x52e750[_0x5f5493(0x14d)],_0x58d7ff);return{'ok':!![],'data':{'dbLinkId':_0x58d7ff,'total':_0x2f5742['length'],'tables':_0x2f5742},'message':_0x2f5742[_0x5f5493(0x150)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x58d7ff};}};
@@ -1 +1 @@
1
- const a93_0x2a475d=a93_0xc7ca;function a93_0x4c71(){const _0x55bef0=['Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','Connection\x20OK\x20for\x20db\x20link\x20','322976tJPJcj','slice','error','49465iWEmge','code','9133cWLoBe','851319nkATFM','success','20dTAAce','729162vywBru','msg','486174wGDQmb','test','data','Connection\x20check\x20finished\x20for\x20db\x20link\x20','message','116ISsaac','7tqzzyV','4074411UvRjUR','46OYxPLz','keys'];a93_0x4c71=function(){return _0x55bef0;};return a93_0x4c71();}(function(_0x5aae2c,_0x192600){const _0x44150c=a93_0xc7ca,_0x3416c5=_0x5aae2c();while(!![]){try{const _0x6dcfa9=parseInt(_0x44150c(0x10d))/0x1*(-parseInt(_0x44150c(0x104))/0x2)+-parseInt(_0x44150c(0x113))/0x3+-parseInt(_0x44150c(0x101))/0x4*(-parseInt(_0x44150c(0x10b))/0x5)+parseInt(_0x44150c(0x111))/0x6+parseInt(_0x44150c(0x102))/0x7*(-parseInt(_0x44150c(0x108))/0x8)+parseInt(_0x44150c(0x10e))/0x9*(-parseInt(_0x44150c(0x110))/0xa)+parseInt(_0x44150c(0x103))/0xb;if(_0x6dcfa9===_0x192600)break;else _0x3416c5['push'](_0x3416c5['shift']());}catch(_0x1c262d){_0x3416c5['push'](_0x3416c5['shift']());}}}(a93_0x4c71,0x2b402));import{testDbLinkConnect}from'../../core/api-client.js';function a93_0xc7ca(_0x2d5247,_0x527cde){_0x2d5247=_0x2d5247-0xfe;const _0x4c71c5=a93_0x4c71();let _0xc7ca07=_0x4c71c5[_0x2d5247];return _0xc7ca07;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x1bd9ff){const _0x192e10=a93_0xc7ca;if(_0x1bd9ff===!![]||_0x1bd9ff===![])return{'success':_0x1bd9ff};if(_0x1bd9ff===null||_0x1bd9ff===undefined)return{'type':typeof _0x1bd9ff};if(typeof _0x1bd9ff!=='object')return{'type':typeof _0x1bd9ff};const _0x435371=_0x1bd9ff,_0x2105bd=[_0x192e10(0x10f),_0x192e10(0x100),_0x192e10(0x10c),_0x192e10(0x10a),_0x192e10(0x112),_0x192e10(0xfe)],_0x4138f2={};for(const _0x24c07b of _0x2105bd){if(_0x24c07b in _0x435371)_0x4138f2[_0x24c07b]=_0x435371[_0x24c07b];}return Object[_0x192e10(0x105)](_0x4138f2)['length']===0x0&&(_0x4138f2['keys']=Object['keys'](_0x435371)[_0x192e10(0x109)](0x0,0x14)),_0x4138f2;}export const dbTest={'service':'db','command':a93_0x2a475d(0x114),'description':a93_0x2a475d(0x106),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x378e0f){const _0x53f8fc=a93_0x2a475d,_0x5f299e=_0x378e0f['num']('id'),_0x2660e0=await testDbLinkConnect(_0x5f299e),_0x1c1786=_0x2660e0===!![]||typeof _0x2660e0==='object'&&_0x2660e0!==null&&_0x2660e0[_0x53f8fc(0x10f)]===!![],_0x5ee76c=summarizeTestConnectResult(_0x2660e0);return{'ok':!![],'data':{'id':_0x5f299e,'connected':Boolean(_0x1c1786),'result':_0x5ee76c},'message':_0x1c1786?_0x53f8fc(0x107)+_0x5f299e:_0x53f8fc(0xff)+_0x5f299e+'\x20(see\x20data.result)'};}};
1
+ function a93_0x2c30(_0xb39223,_0x259fe5){_0xb39223=_0xb39223-0x19f;const _0x295790=a93_0x2957();let _0x2c3072=_0x295790[_0xb39223];return _0x2c3072;}const a93_0x510963=a93_0x2c30;(function(_0x56910f,_0x48eb92){const _0x36d6c2=a93_0x2c30,_0x36ea82=_0x56910f();while(!![]){try{const _0x1228bd=-parseInt(_0x36d6c2(0x1aa))/0x1+parseInt(_0x36d6c2(0x1ac))/0x2+-parseInt(_0x36d6c2(0x1b4))/0x3+parseInt(_0x36d6c2(0x1ae))/0x4+-parseInt(_0x36d6c2(0x1b0))/0x5*(-parseInt(_0x36d6c2(0x1a4))/0x6)+-parseInt(_0x36d6c2(0x1a7))/0x7+-parseInt(_0x36d6c2(0x1ab))/0x8*(-parseInt(_0x36d6c2(0x1b2))/0x9);if(_0x1228bd===_0x48eb92)break;else _0x36ea82['push'](_0x36ea82['shift']());}catch(_0x3f7f4b){_0x36ea82['push'](_0x36ea82['shift']());}}}(a93_0x2957,0xf3218));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x44dbed){const _0x4913e7=a93_0x2c30;if(_0x44dbed===!![]||_0x44dbed===![])return{'success':_0x44dbed};if(_0x44dbed===null||_0x44dbed===undefined)return{'type':typeof _0x44dbed};if(typeof _0x44dbed!=='object')return{'type':typeof _0x44dbed};const _0x146075=_0x44dbed,_0x3355ce=[_0x4913e7(0x1a6),'message',_0x4913e7(0x1b3),_0x4913e7(0x1af),_0x4913e7(0x1ad),_0x4913e7(0x1a1)],_0x20d8c4={};for(const _0x57db46 of _0x3355ce){if(_0x57db46 in _0x146075)_0x20d8c4[_0x57db46]=_0x146075[_0x57db46];}return Object[_0x4913e7(0x1a0)](_0x20d8c4)[_0x4913e7(0x1a5)]===0x0&&(_0x20d8c4[_0x4913e7(0x1a0)]=Object[_0x4913e7(0x1a0)](_0x146075)[_0x4913e7(0x1b1)](0x0,0x14)),_0x20d8c4;}function a93_0x2957(){const _0x3cac5b=['10827ajozYt','code','5882985frZiMo','read','object','num','keys','data','Connection\x20OK\x20for\x20db\x20link\x20','\x20(see\x20data.result)','4148616HOgZsW','length','success','10650444LKQgwy','Connection\x20check\x20finished\x20for\x20db\x20link\x20','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','725400suWpOe','9336zVSNEO','2933440tvhWDG','msg','6566776PopQLl','error','5nezqgJ','slice'];a93_0x2957=function(){return _0x3cac5b;};return a93_0x2957();}export const dbTest={'service':'db','command':'test','description':a93_0x510963(0x1a9),'risk':a93_0x510963(0x1b5),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x229aef){const _0x58e0c5=a93_0x510963,_0x432590=_0x229aef[_0x58e0c5(0x19f)]('id'),_0x498c2b=await testDbLinkConnect(_0x432590),_0xe35894=_0x498c2b===!![]||typeof _0x498c2b===_0x58e0c5(0x1b6)&&_0x498c2b!==null&&_0x498c2b[_0x58e0c5(0x1a6)]===!![],_0x567f71=summarizeTestConnectResult(_0x498c2b);return{'ok':!![],'data':{'id':_0x432590,'connected':Boolean(_0xe35894),'result':_0x567f71},'message':_0xe35894?_0x58e0c5(0x1a2)+_0x432590:_0x58e0c5(0x1a8)+_0x432590+_0x58e0c5(0x1a3)};}};
@@ -1 +1 @@
1
- const a94_0x47d6c2=a94_0x3e4c;function a94_0x3e4c(_0x15f9aa,_0x521937){_0x15f9aa=_0x15f9aa-0xca;const _0x201bf3=a94_0x201b();let _0x3e4cf9=_0x201bf3[_0x15f9aa];return _0x3e4cf9;}(function(_0x3fad00,_0x421a22){const _0x29aa6f=a94_0x3e4c,_0x563de7=_0x3fad00();while(!![]){try{const _0x29edf1=-parseInt(_0x29aa6f(0xe0))/0x1+parseInt(_0x29aa6f(0xe3))/0x2*(-parseInt(_0x29aa6f(0xd4))/0x3)+parseInt(_0x29aa6f(0xee))/0x4+-parseInt(_0x29aa6f(0xde))/0x5*(-parseInt(_0x29aa6f(0xd2))/0x6)+parseInt(_0x29aa6f(0xe5))/0x7*(-parseInt(_0x29aa6f(0xe1))/0x8)+-parseInt(_0x29aa6f(0xeb))/0x9+-parseInt(_0x29aa6f(0xd7))/0xa*(-parseInt(_0x29aa6f(0xd3))/0xb);if(_0x29edf1===_0x421a22)break;else _0x563de7['push'](_0x563de7['shift']());}catch(_0x36c4fc){_0x563de7['push'](_0x563de7['shift']());}}}(a94_0x201b,0xc1182));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_0x47d6c2(0xcd),a94_0x47d6c2(0xd5)]);function mergeDbLinkUpdate(_0x167d28,_0x96fd90){const _0x489c61=a94_0x47d6c2,_0x2271e3={..._0x167d28},_0x762545=_0x96fd90[_0x489c61(0xea)](_0x489c61(0xcb));if(_0x762545&&MASKED_PASSWORD_VALUES[_0x489c61(0xd9)](_0x762545))throw CliErrors[_0x489c61(0xef)](_0x489c61(0xdc));if(!_0x762545&&MASKED_PASSWORD_VALUES['has'](String(_0x167d28[_0x489c61(0xcb)]??'')))throw CliErrors[_0x489c61(0xef)](_0x489c61(0xe7));const _0x3023a3=_0x96fd90[_0x489c61(0xea)]('dbname');if(_0x3023a3)_0x2271e3[_0x489c61(0xd0)]=_0x3023a3;const _0x5e53aa=_0x96fd90[_0x489c61(0xea)]('dburl');if(_0x5e53aa)_0x2271e3[_0x489c61(0xdb)]=_0x5e53aa[_0x489c61(0xda)]();const _0x1cda7e=_0x96fd90['str'](_0x489c61(0xe4));if(_0x1cda7e)_0x2271e3[_0x489c61(0xe4)]=_0x1cda7e;if(_0x762545)_0x2271e3[_0x489c61(0xcb)]=_0x762545;const _0x4e3083=_0x96fd90[_0x489c61(0xea)]('dbparam');if(_0x4e3083)_0x2271e3['dbParam']=_0x4e3083;const _0x2545bf=_0x96fd90['str'](_0x489c61(0xd1));if(_0x2545bf)_0x2271e3['dbDesc']=_0x2545bf;return _0x2271e3;}export const dbUpdate={'service':'db','command':'update','description':'Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','risk':a94_0x47d6c2(0xca),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x47d6c2(0xf1),'type':'string','description':a94_0x47d6c2(0xf0)},{'name':a94_0x47d6c2(0xd6),'type':a94_0x47d6c2(0xec),'description':'New\x20host:port'},{'name':'username','type':'string','description':a94_0x47d6c2(0xe2)},{'name':a94_0x47d6c2(0xcb),'type':a94_0x47d6c2(0xec),'description':'Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked'},{'name':a94_0x47d6c2(0xcf),'type':a94_0x47d6c2(0xec),'description':a94_0x47d6c2(0xdf)},{'name':'dbdesc','type':a94_0x47d6c2(0xec),'description':a94_0x47d6c2(0xe6)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0xe6ccf4){const _0x584efb=a94_0x47d6c2,_0x6550f3=_0xe6ccf4[_0x584efb(0xea)]('dburl');if(_0x6550f3&&!validateDbUrl(_0x6550f3[_0x584efb(0xda)]()))throw CliErrors[_0x584efb(0xef)](_0x584efb(0xe8)+_0x6550f3+'\x22');},async 'dryRun'(_0x486c48){const _0x43e84a=a94_0x47d6c2,_0x587d3c=_0x486c48['num']('id'),_0xe6904d=await getDbLinkInfo(_0x587d3c),_0x3f6fc3=mergeDbLinkUpdate(_0xe6904d,_0x486c48),_0x9ac213=sanitizeDbLinkForOutput(_0x3f6fc3);return{'method':_0x43e84a(0xce),'url':_0x43e84a(0xe9),'body':_0x9ac213,'description':_0x43e84a(0xcc),'connectionPreflight':{'enabled':!_0x486c48[_0x43e84a(0xed)](_0x43e84a(0xdd)),'executed':![]}};},async 'execute'(_0x1ef74d){const _0x3f04e4=a94_0x47d6c2,_0x197a81=_0x1ef74d[_0x3f04e4(0xd8)]('id'),_0x5321fd=await getDbLinkInfo(_0x197a81),_0xef6cbc=mergeDbLinkUpdate(_0x5321fd,_0x1ef74d);!_0x1ef74d[_0x3f04e4(0xed)](_0x3f04e4(0xdd))&&await assertDbLinkConnectionPreflight(_0xef6cbc);const {id:_0x2bdfd3,entity:_0x129675}=normalizeEntityWithIdResponse(await updateDbLink(_0xef6cbc));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x129675),'message':'Updated\x20db\x20link\x20'+(_0x2bdfd3??_0x197a81)};}};function a94_0x201b(){const _0x209594=['10fKuYAr','num','has','trim','dbUrl','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','skip-connection-test','3878720eddNlT','New\x20connection\x20parameter\x20string','37747cNUmGE','8IjUQMK','New\x20username','64qwNfXz','username','7301175laJvwf','New\x20description','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','/smartapi/dblink/update','str','6096879GMeLSw','string','bool','3732380cIgXSA','validation','New\x20database\x20name','dbname','write','password','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','******','POST','dbparam','dbName','dbdesc','6KzjNDW','16517490lxxZIW','61998xWSnhZ','[redacted]','dburl'];a94_0x201b=function(){return _0x209594;};return a94_0x201b();}
1
+ const a94_0xc0a5e5=a94_0x4910;(function(_0x1a90f3,_0x27e675){const _0x2de292=a94_0x4910,_0x5e59e0=_0x1a90f3();while(!![]){try{const _0x1fe167=parseInt(_0x2de292(0xd0))/0x1*(parseInt(_0x2de292(0xcd))/0x2)+-parseInt(_0x2de292(0xc0))/0x3+parseInt(_0x2de292(0xc7))/0x4*(-parseInt(_0x2de292(0xe0))/0x5)+-parseInt(_0x2de292(0xc8))/0x6*(-parseInt(_0x2de292(0xc4))/0x7)+-parseInt(_0x2de292(0xd6))/0x8+-parseInt(_0x2de292(0xcb))/0x9+parseInt(_0x2de292(0xc2))/0xa;if(_0x1fe167===_0x27e675)break;else _0x5e59e0['push'](_0x5e59e0['shift']());}catch(_0x3df78b){_0x5e59e0['push'](_0x5e59e0['shift']());}}}(a94_0x1114,0xe003c));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a94_0x4910(_0x52a7bb,_0x45a8de){_0x52a7bb=_0x52a7bb-0xbf;const _0x111429=a94_0x1114();let _0x491009=_0x111429[_0x52a7bb];return _0x491009;}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_0xc0a5e5(0xe1),a94_0xc0a5e5(0xcc)]);function mergeDbLinkUpdate(_0x359e20,_0x5a07b0){const _0x3ff89e=a94_0xc0a5e5,_0x4305f1={..._0x359e20},_0x4add9c=_0x5a07b0[_0x3ff89e(0xc1)]('password');if(_0x4add9c&&MASKED_PASSWORD_VALUES['has'](_0x4add9c))throw CliErrors[_0x3ff89e(0xdb)]('--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.');if(!_0x4add9c&&MASKED_PASSWORD_VALUES[_0x3ff89e(0xe5)](String(_0x359e20[_0x3ff89e(0xd5)]??'')))throw CliErrors[_0x3ff89e(0xdb)](_0x3ff89e(0xc9));const _0x5bc398=_0x5a07b0[_0x3ff89e(0xc1)]('dbname');if(_0x5bc398)_0x4305f1['dbName']=_0x5bc398;const _0x3009ba=_0x5a07b0[_0x3ff89e(0xc1)](_0x3ff89e(0xe3));if(_0x3009ba)_0x4305f1[_0x3ff89e(0xd8)]=_0x3009ba[_0x3ff89e(0xdd)]();const _0xdd3364=_0x5a07b0[_0x3ff89e(0xc1)](_0x3ff89e(0xdf));if(_0xdd3364)_0x4305f1[_0x3ff89e(0xdf)]=_0xdd3364;if(_0x4add9c)_0x4305f1[_0x3ff89e(0xd5)]=_0x4add9c;const _0x234bc1=_0x5a07b0[_0x3ff89e(0xc1)](_0x3ff89e(0xe2));if(_0x234bc1)_0x4305f1['dbParam']=_0x234bc1;const _0x33d042=_0x5a07b0['str']('dbdesc');if(_0x33d042)_0x4305f1[_0x3ff89e(0xd3)]=_0x33d042;return _0x4305f1;}function a94_0x1114(){const _0x2652a5=['str','17868420hQQAqR','New\x20username','49161yRhDEg','Updated\x20db\x20link\x20','write','4TQkXRu','1518etnhKn','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','num','10205739QvKOpc','[redacted]','1382VHOdgb','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','dbdesc','2141TeHkrm','update','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','dbDesc','string','password','9997384LDhXxP','New\x20database\x20name','dbUrl','New\x20connection\x20parameter\x20string','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','validation','New\x20host:port','trim','bool','username','4132815iSyEap','******','dbparam','dburl','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','has','New\x20description','2745963OhwIQk'];a94_0x1114=function(){return _0x2652a5;};return a94_0x1114();}export const dbUpdate={'service':'db','command':a94_0xc0a5e5(0xd1),'description':a94_0xc0a5e5(0xd2),'risk':a94_0xc0a5e5(0xc6),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a94_0xc0a5e5(0xd7)},{'name':'dburl','type':'string','description':a94_0xc0a5e5(0xdc)},{'name':a94_0xc0a5e5(0xdf),'type':a94_0xc0a5e5(0xd4),'description':a94_0xc0a5e5(0xc3)},{'name':'password','type':a94_0xc0a5e5(0xd4),'description':a94_0xc0a5e5(0xce)},{'name':'dbparam','type':a94_0xc0a5e5(0xd4),'description':a94_0xc0a5e5(0xd9)},{'name':a94_0xc0a5e5(0xcf),'type':'string','description':a94_0xc0a5e5(0xbf)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x1aa7c6){const _0x2e667=a94_0xc0a5e5,_0x1a0c10=_0x1aa7c6[_0x2e667(0xc1)]('dburl');if(_0x1a0c10&&!validateDbUrl(_0x1a0c10[_0x2e667(0xdd)]()))throw CliErrors['validation'](_0x2e667(0xe4)+_0x1a0c10+'\x22');},async 'dryRun'(_0x4677ab){const _0x2c3ca4=a94_0xc0a5e5,_0x420453=_0x4677ab['num']('id'),_0x27cf12=await getDbLinkInfo(_0x420453),_0x5d1485=mergeDbLinkUpdate(_0x27cf12,_0x4677ab),_0x4c3077=sanitizeDbLinkForOutput(_0x5d1485);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x4c3077,'description':_0x2c3ca4(0xda),'connectionPreflight':{'enabled':!_0x4677ab['bool']('skip-connection-test'),'executed':![]}};},async 'execute'(_0x1e7433){const _0x4d6ca4=a94_0xc0a5e5,_0x1c09de=_0x1e7433[_0x4d6ca4(0xca)]('id'),_0x55bb01=await getDbLinkInfo(_0x1c09de),_0x97d1ad=mergeDbLinkUpdate(_0x55bb01,_0x1e7433);!_0x1e7433[_0x4d6ca4(0xde)]('skip-connection-test')&&await assertDbLinkConnectionPreflight(_0x97d1ad);const {id:_0x4e7f0c,entity:_0x52b739}=normalizeEntityWithIdResponse(await updateDbLink(_0x97d1ad));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x52b739),'message':_0x4d6ca4(0xc5)+(_0x4e7f0c??_0x1c09de)};}};
@@ -1 +1 @@
1
- const a95_0x53b86d=a95_0x12f8;(function(_0x38074a,_0x40c4e0){const _0x15cf84=a95_0x12f8,_0x336dfe=_0x38074a();while(!![]){try{const _0x352fcc=-parseInt(_0x15cf84(0x147))/0x1+-parseInt(_0x15cf84(0x141))/0x2*(-parseInt(_0x15cf84(0x18e))/0x3)+-parseInt(_0x15cf84(0x184))/0x4*(parseInt(_0x15cf84(0x171))/0x5)+-parseInt(_0x15cf84(0x168))/0x6*(parseInt(_0x15cf84(0x15c))/0x7)+-parseInt(_0x15cf84(0x18a))/0x8+parseInt(_0x15cf84(0x167))/0x9+parseInt(_0x15cf84(0x166))/0xa;if(_0x352fcc===_0x40c4e0)break;else _0x336dfe['push'](_0x336dfe['shift']());}catch(_0x3fcb0d){_0x336dfe['push'](_0x336dfe['shift']());}}}(a95_0x1837,0x7fdf5));import a95_0xb9232d from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x3dd1bd){const _0x4b28e6=a95_0x12f8,_0x30d40e=GIT_COMMIT!==_0x4b28e6(0x16c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x31f5e3=buildConfigFromFlags({}),_0x2e0093=getCookie();console[_0x4b28e6(0x161)](),console[_0x4b28e6(0x161)](a95_0xb9232d['bold'](CLI_BIN_NAME+_0x4b28e6(0x183))),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x14a)]('─'['repeat'](0x32))),console[_0x4b28e6(0x161)](_0x4b28e6(0x182)+_0x30d40e),console[_0x4b28e6(0x161)](_0x4b28e6(0x14f)+process[_0x4b28e6(0x186)]),console[_0x4b28e6(0x161)](_0x4b28e6(0x152)+process['platform']+'\x20'+process[_0x4b28e6(0x16a)]);const _0x89c993=inspectBuiltinSkill();console[_0x4b28e6(0x161)](),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x17a)](_0x4b28e6(0x17c))),console['log'](a95_0xb9232d['gray'](_0x4b28e6(0x162)[_0x4b28e6(0x163)](0x1e)));const _0x39a2b8=_0x89c993[_0x4b28e6(0x18d)]===_0x4b28e6(0x176)?a95_0xb9232d[_0x4b28e6(0x150)]('✓\x20'+_0x89c993[_0x4b28e6(0x18d)]):a95_0xb9232d[_0x4b28e6(0x143)]('✗\x20'+_0x89c993['state']);console['log'](_0x4b28e6(0x17d)+_0x39a2b8),console[_0x4b28e6(0x161)]('\x20\x20Package\x20Version:\x20'+_0x89c993[_0x4b28e6(0x157)]),console[_0x4b28e6(0x161)](_0x4b28e6(0x188)+(_0x89c993['skillVersion']||a95_0xb9232d['gray'](_0x4b28e6(0x175)))),console[_0x4b28e6(0x161)](_0x4b28e6(0x15e)+(_0x89c993[_0x4b28e6(0x13c)]||a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x158))));if(_0x89c993[_0x4b28e6(0x177)])console[_0x4b28e6(0x161)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x89c993[_0x4b28e6(0x177)]);_0x89c993[_0x4b28e6(0x18d)]!==_0x4b28e6(0x176)&&console[_0x4b28e6(0x161)](_0x4b28e6(0x13e)+_0x89c993['repairCommand']);console[_0x4b28e6(0x161)](),console['log'](a95_0xb9232d[_0x4b28e6(0x17a)](_0x4b28e6(0x15b))),console['log'](a95_0xb9232d['gray'](_0x4b28e6(0x162)[_0x4b28e6(0x163)](0x1e)));const _0x4f3f2c=getGlobalConfigPath(),_0x4389fc=getProjectConfigPath();console[_0x4b28e6(0x161)](_0x4b28e6(0x189)+(_0x4f3f2c||a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x158)))),console[_0x4b28e6(0x161)](_0x4b28e6(0x156)+(_0x4389fc||a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x158)))),console[_0x4b28e6(0x161)](),console[_0x4b28e6(0x161)](a95_0xb9232d['bold'](_0x4b28e6(0x153))),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x162)['repeat'](0x1e)));const _0x2814a7=(_0xa4713f,_0x5e8209)=>{const _0x1f04ff=_0x4b28e6;if(!_0x5e8209){console['log']('\x20\x20'+_0xa4713f['padEnd'](0x11)+'\x20'+a95_0xb9232d[_0x1f04ff(0x14a)](_0x1f04ff(0x151)));return;}const _0xb46943=inspectCliConfigJsonFile(_0x5e8209);if(_0xb46943[_0x1f04ff(0x140)]==='ok')console['log']('\x20\x20'+_0xa4713f[_0x1f04ff(0x142)](0x11)+'\x20'+a95_0xb9232d[_0x1f04ff(0x150)]('✓\x20Valid\x20JSON'));else{if(_0xb46943[_0x1f04ff(0x140)]===_0x1f04ff(0x132))console[_0x1f04ff(0x161)]('\x20\x20'+_0xa4713f[_0x1f04ff(0x142)](0x11)+'\x20'+a95_0xb9232d[_0x1f04ff(0x133)](_0x1f04ff(0x155)));else _0xb46943[_0x1f04ff(0x140)]==='missing'?console[_0x1f04ff(0x161)]('\x20\x20'+_0xa4713f[_0x1f04ff(0x142)](0x11)+'\x20'+a95_0xb9232d['gray'](_0x1f04ff(0x139))):(console[_0x1f04ff(0x161)]('\x20\x20'+_0xa4713f[_0x1f04ff(0x142)](0x11)+'\x20'+a95_0xb9232d[_0x1f04ff(0x143)](_0x1f04ff(0x170))),console['log']('\x20\x20'+''[_0x1f04ff(0x142)](0x11)+'\x20'+a95_0xb9232d['red'](_0xb46943[_0x1f04ff(0x15f)])));}};_0x2814a7(_0x4b28e6(0x185),_0x4f3f2c),_0x2814a7(_0x4b28e6(0x14e),_0x4389fc),console[_0x4b28e6(0x161)](),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x17a)](_0x4b28e6(0x146))),console['log'](a95_0xb9232d[_0x4b28e6(0x14a)]('\x20\x20─'[_0x4b28e6(0x163)](0x1e))),console[_0x4b28e6(0x161)](_0x4b28e6(0x15a)+(_0x31f5e3[_0x4b28e6(0x174)]||a95_0xb9232d['red'](_0x4b28e6(0x14d)))),console[_0x4b28e6(0x161)](_0x4b28e6(0x135)+_0x31f5e3[_0x4b28e6(0x154)]),console[_0x4b28e6(0x161)](_0x4b28e6(0x172)+_0x31f5e3['locale']),console[_0x4b28e6(0x161)](_0x4b28e6(0x134)+_0x31f5e3['apiDir']),console[_0x4b28e6(0x161)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x31f5e3[_0x4b28e6(0x16e)]||a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x180)))),console[_0x4b28e6(0x161)](_0x4b28e6(0x15d)+(_0x31f5e3[_0x4b28e6(0x181)]||a95_0xb9232d['gray']('(none)'))),console['log']('\x20\x20explicitAppName:\x20'+(_0x31f5e3[_0x4b28e6(0x13f)]||a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x180)))),console[_0x4b28e6(0x161)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31f5e3['format']||a95_0xb9232d['gray'](_0x4b28e6(0x159)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x4b28e6(0x161)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x31f5e3[_0x4b28e6(0x178)]??a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x173)))),console[_0x4b28e6(0x161)](_0x4b28e6(0x18c)+_0x31f5e3[_0x4b28e6(0x14c)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x31f5e3[_0x4b28e6(0x136)]),console[_0x4b28e6(0x161)](_0x4b28e6(0x137)+(_0x31f5e3[_0x4b28e6(0x16d)]?a95_0xb9232d[_0x4b28e6(0x150)](_0x4b28e6(0x164)+_0x31f5e3[_0x4b28e6(0x16d)][_0x4b28e6(0x179)]+')'):_0x2e0093?a95_0xb9232d['green'](_0x4b28e6(0x160)+_0x2e0093['length']+')'):a95_0xb9232d['gray'](_0x4b28e6(0x180))));const _0x31ba61=Object[_0x4b28e6(0x16b)](_0x31f5e3['apps']);if(_0x31ba61[_0x4b28e6(0x179)]>0x0){console['log'](),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x17a)](_0x4b28e6(0x145))),console['log'](a95_0xb9232d['gray'](_0x4b28e6(0x162)[_0x4b28e6(0x163)](0x1e)));for(const _0x32e59b of _0x31ba61){const _0x5b1fbd=_0x31f5e3['apps'][_0x32e59b],_0x1a5a40=_0x32e59b===_0x31f5e3[_0x4b28e6(0x16e)],_0x238008=_0x32e59b===_0x31f5e3[_0x4b28e6(0x181)],_0x41c800=_0x238008?a95_0xb9232d[_0x4b28e6(0x150)]('\x20←\x20current'):'',_0x5f1d63=_0x1a5a40?_0x4b28e6(0x187):'';console[_0x4b28e6(0x161)]('\x20\x20'+_0x32e59b+_0x5f1d63+_0x41c800),console[_0x4b28e6(0x161)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x5b1fbd[_0x4b28e6(0x17e)]);const _0x86602=buildAppDoctorFields(_0x5b1fbd,{'env':_0x31f5e3['env'],'apiDir':_0x31f5e3['raw'][_0x4b28e6(0x16f)]||DEFAULT_CONFIG_VALUES[_0x4b28e6(0x16f)],'cookie':_0x31f5e3['cookie']||_0x2e0093||undefined,'accessKey':_0x31f5e3[_0x4b28e6(0x13a)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x86602[_0x4b28e6(0x154)][_0x4b28e6(0x13b)]+'\x20\x20'+a95_0xb9232d[_0x4b28e6(0x14a)]('('+_0x86602[_0x4b28e6(0x154)][_0x4b28e6(0x149)]+')')),console[_0x4b28e6(0x161)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x86602['apiDir'][_0x4b28e6(0x13b)]+'\x20\x20'+a95_0xb9232d[_0x4b28e6(0x14a)]('('+_0x86602['apiDir'][_0x4b28e6(0x149)]+')'));const _0x13c77a=_0x86602[_0x4b28e6(0x16d)][_0x4b28e6(0x13b)]?a95_0xb9232d[_0x4b28e6(0x150)](_0x4b28e6(0x164)+_0x86602['cookie'][_0x4b28e6(0x13b)][_0x4b28e6(0x179)]+')'):a95_0xb9232d['gray'](_0x4b28e6(0x180));console[_0x4b28e6(0x161)](_0x4b28e6(0x13d)+_0x13c77a+'\x20\x20'+a95_0xb9232d[_0x4b28e6(0x14a)]('('+_0x86602['cookie']['source']+')'));const _0x4d714a=_0x86602['accessKey']['value']?a95_0xb9232d[_0x4b28e6(0x150)]('(set,\x20length='+_0x86602[_0x4b28e6(0x13a)][_0x4b28e6(0x13b)][_0x4b28e6(0x179)]+')'):a95_0xb9232d[_0x4b28e6(0x14a)]('(none)');console[_0x4b28e6(0x161)](_0x4b28e6(0x14b)+_0x4d714a+'\x20\x20'+a95_0xb9232d['gray']('('+_0x86602[_0x4b28e6(0x13a)][_0x4b28e6(0x149)]+')'));}}console[_0x4b28e6(0x161)](),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x17a)](_0x4b28e6(0x138))),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x14a)](_0x4b28e6(0x162)['repeat'](0x1e))),console['log'](_0x4b28e6(0x17b)+getApiDomain()),console[_0x4b28e6(0x161)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x4b28e6(0x161)](_0x4b28e6(0x169)+getRuntimeDomain()),console['log'](),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x17a)]('\x20\x20Auth')),console[_0x4b28e6(0x161)](a95_0xb9232d[_0x4b28e6(0x14a)]('\x20\x20─'[_0x4b28e6(0x163)](0x1e)));if(_0x2e0093){const _0x50dcec=await getIsSessionValid();console['log'](_0x4b28e6(0x18b)+(_0x50dcec?a95_0xb9232d[_0x4b28e6(0x150)](_0x4b28e6(0x17f)):a95_0xb9232d[_0x4b28e6(0x143)]('✗\x20Expired')));}else console['log'](_0x4b28e6(0x18b)+a95_0xb9232d[_0x4b28e6(0x143)](_0x4b28e6(0x165)));return console[_0x4b28e6(0x161)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a95_0x53b86d(0x148),'risk':a95_0x53b86d(0x144),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a95_0x12f8(_0x5dea58,_0x572725){_0x5dea58=_0x5dea58-0x132;const _0x18371b=a95_0x1837();let _0x12f8b3=_0x18371b[_0x5dea58];return _0x12f8b3;}function a95_0x1837(){const _0x7e1db5=['accessKey','value','installedPath','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','status','30JZqDJC','padEnd','red','read','\x20\x20Apps','\x20\x20Merged\x20Config','218379yBMAZh','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','source','gray','\x20\x20\x20\x20accessKey:\x20\x20','riskLevel','(not\x20set)','Project','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','(no\x20file)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','env','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','packageVersion','(not\x20found)','(default:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','134603TTYZTv','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','message','(set\x20via\x20file,\x20length=','log','\x20\x20─','repeat','(set,\x20length=','✗\x20Not\x20logged\x20in','7836110wEbHqM','4865454FqWlTp','114qHWpUt','\x20\x20runtimeDomain:\x20\x20\x20','arch','keys','unknown','cookie','defaultApp','apiDir','✗\x20Invalid\x20JSON','95AiJzcK','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','appCode','(unknown)','current','reason','pageSize','length','bold','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Built-in\x20Skill','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','✓\x20Valid','(none)','currentApp','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20doctor','105348kxlPUo','Global','version','\x20(default)','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1049512BPDUPx','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','state','82974bgvMyT','empty','yellow','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','(missing)'];a95_0x1837=function(){return _0x7e1db5;};return a95_0x1837();}
1
+ function a95_0x28e1(){const _0x19f9ad=['(no\x20file)','\x20←\x20current','4907727tRMnnA','arch','appcode','490586buKvOS','337615JyoLEf','233427XPDPec','installedPath','16qcEsSu','repeat','366244UnDmbG','(set\x20via\x20file,\x20length=','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','keys','\x20\x20API\x20Endpoints','\x20\x20Installed\x20Path:\x20\x20','✓\x20Valid\x20JSON','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','unknown','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','Global','length','doctor','explicitAppName','platform','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','appCode','green','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','36eDsALi','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1652588Knanfo','(missing)','\x20\x20Apps','message','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','defaultApp','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','log','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','pageSize','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✗\x20Expired','riskLevel','\x20\x20Auth','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','skillVersion','\x20doctor','raw','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(not\x20found)','(default)','apiDir','\x20\x20Package\x20Version:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','currentApp','format','current','✗\x20Invalid\x20JSON','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(none)','\x20\x20─','cookie','(not\x20set)','\x20\x20Config\x20Files','\x20\x20explicitAppName:\x20','\x20\x20\x20\x20accessKey:\x20\x20','read','2731456XjMnqm','reason','(set,\x20length=','packageVersion','value','empty','source','verbose','red','check','state','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey'];a95_0x28e1=function(){return _0x19f9ad;};return a95_0x28e1();}const a95_0x2117eb=a95_0x1294;(function(_0x4d5222,_0x4a657e){const _0x38afff=a95_0x1294,_0x4aa37=_0x4d5222();while(!![]){try{const _0x5a1558=parseInt(_0x38afff(0x101))/0x1+parseInt(_0x38afff(0x107))/0x2+parseInt(_0x38afff(0x103))/0x3+-parseInt(_0x38afff(0x152))/0x4+parseInt(_0x38afff(0x102))/0x5*(-parseInt(_0x38afff(0x121))/0x6)+-parseInt(_0x38afff(0x125))/0x7+parseInt(_0x38afff(0x105))/0x8*(parseInt(_0x38afff(0xfe))/0x9);if(_0x5a1558===_0x4a657e)break;else _0x4aa37['push'](_0x4aa37['shift']());}catch(_0x2e3135){_0x4aa37['push'](_0x4aa37['shift']());}}}(a95_0x28e1,0x7e795));import a95_0x373e90 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a95_0x1294(_0x2eb1b0,_0xff801c){_0x2eb1b0=_0x2eb1b0-0xf5;const _0x28e1d0=a95_0x28e1();let _0x129486=_0x28e1d0[_0x2eb1b0];return _0x129486;}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(_0x5c1ca2){const _0x5c86fc=a95_0x1294,_0x5318e8=GIT_COMMIT!==_0x5c86fc(0x112)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x4ff775=buildConfigFromFlags({}),_0x3edb80=getCookie();console[_0x5c86fc(0x12d)](),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x12f)](CLI_BIN_NAME+_0x5c86fc(0x138))),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x13a)]('─'[_0x5c86fc(0x106)](0x32))),console[_0x5c86fc(0x12d)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x5318e8),console['log'](_0x5c86fc(0x11b)+process['version']),console[_0x5c86fc(0x12d)](_0x5c86fc(0x136)+process[_0x5c86fc(0x119)]+'\x20'+process[_0x5c86fc(0xff)]);const _0x50dea1=inspectBuiltinSkill();console[_0x5c86fc(0x12d)](),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x12f)]('\x20\x20Built-in\x20Skill')),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x13a)]('\x20\x20─'[_0x5c86fc(0x106)](0x1e)));const _0x2b6aa1=_0x50dea1['state']===_0x5c86fc(0x147)?a95_0x373e90[_0x5c86fc(0x11e)]('✓\x20'+_0x50dea1['state']):a95_0x373e90[_0x5c86fc(0xf7)]('✗\x20'+_0x50dea1[_0x5c86fc(0xf9)]);console[_0x5c86fc(0x12d)]('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2b6aa1),console[_0x5c86fc(0x12d)](_0x5c86fc(0x140)+_0x50dea1[_0x5c86fc(0x155)]),console[_0x5c86fc(0x12d)](_0x5c86fc(0x109)+(_0x50dea1[_0x5c86fc(0x137)]||a95_0x373e90[_0x5c86fc(0x13a)]('(unknown)'))),console['log'](_0x5c86fc(0x10e)+(_0x50dea1[_0x5c86fc(0x104)]||a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x13d))));if(_0x50dea1[_0x5c86fc(0x153)])console[_0x5c86fc(0x12d)](_0x5c86fc(0x12e)+_0x50dea1[_0x5c86fc(0x153)]);_0x50dea1[_0x5c86fc(0xf9)]!=='current'&&console[_0x5c86fc(0x12d)](_0x5c86fc(0xfa)+_0x50dea1['repairCommand']);console[_0x5c86fc(0x12d)](),console['log'](a95_0x373e90[_0x5c86fc(0x12f)](_0x5c86fc(0x14e))),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14b)[_0x5c86fc(0x106)](0x1e)));const _0x1fb178=getGlobalConfigPath(),_0x254077=getProjectConfigPath();console[_0x5c86fc(0x12d)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1fb178||a95_0x373e90[_0x5c86fc(0x13a)]('(not\x20found)'))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x13b)+(_0x254077||a95_0x373e90[_0x5c86fc(0x13a)]('(not\x20found)'))),console[_0x5c86fc(0x12d)](),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x12f)]('\x20\x20Config\x20JSON')),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14b)[_0x5c86fc(0x106)](0x1e)));const _0x32d965=(_0x341bea,_0xef8209)=>{const _0x3b6dc2=_0x5c86fc;if(!_0xef8209){console[_0x3b6dc2(0x12d)]('\x20\x20'+_0x341bea['padEnd'](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0x13a)](_0x3b6dc2(0xfc)));return;}const _0x16b006=inspectCliConfigJsonFile(_0xef8209);if(_0x16b006[_0x3b6dc2(0x114)]==='ok')console['log']('\x20\x20'+_0x341bea[_0x3b6dc2(0x123)](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0x11e)](_0x3b6dc2(0x10f)));else{if(_0x16b006['status']===_0x3b6dc2(0x157))console['log']('\x20\x20'+_0x341bea[_0x3b6dc2(0x123)](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0x111)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x16b006['status']==='missing'?console[_0x3b6dc2(0x12d)]('\x20\x20'+_0x341bea[_0x3b6dc2(0x123)](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0x13a)](_0x3b6dc2(0x126))):(console[_0x3b6dc2(0x12d)]('\x20\x20'+_0x341bea[_0x3b6dc2(0x123)](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0xf7)](_0x3b6dc2(0x148))),console[_0x3b6dc2(0x12d)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a95_0x373e90[_0x3b6dc2(0xf7)](_0x16b006[_0x3b6dc2(0x128)])));}};_0x32d965(_0x5c86fc(0x115),_0x1fb178),_0x32d965('Project',_0x254077),console['log'](),console['log'](a95_0x373e90['bold']('\x20\x20Merged\x20Config')),console[_0x5c86fc(0x12d)](a95_0x373e90['gray'](_0x5c86fc(0x14b)['repeat'](0x1e))),console['log'](_0x5c86fc(0x122)+(_0x4ff775[_0x5c86fc(0x11d)]||a95_0x373e90[_0x5c86fc(0xf7)](_0x5c86fc(0x14d)))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x131)+_0x4ff775['env']),console[_0x5c86fc(0x12d)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4ff775[_0x5c86fc(0x11c)]),console[_0x5c86fc(0x12d)](_0x5c86fc(0x143)+_0x4ff775[_0x5c86fc(0x13f)]),console[_0x5c86fc(0x12d)](_0x5c86fc(0x120)+(_0x4ff775[_0x5c86fc(0x12a)]||a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14a)))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x132)+(_0x4ff775[_0x5c86fc(0x145)]||a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14a)))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x14f)+(_0x4ff775[_0x5c86fc(0x118)]||a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14a)))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x12b)+(_0x4ff775[_0x5c86fc(0x146)]||a95_0x373e90['gray'](_0x5c86fc(0x144)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x11f)+(_0x4ff775[_0x5c86fc(0x130)]??a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x13e)))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x11a)+_0x4ff775[_0x5c86fc(0x134)]),console[_0x5c86fc(0x12d)](_0x5c86fc(0x141)+_0x4ff775[_0x5c86fc(0xf6)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ff775[_0x5c86fc(0x14c)]?a95_0x373e90[_0x5c86fc(0x11e)](_0x5c86fc(0x154)+_0x4ff775[_0x5c86fc(0x14c)][_0x5c86fc(0x116)]+')'):_0x3edb80?a95_0x373e90[_0x5c86fc(0x11e)](_0x5c86fc(0x108)+_0x3edb80['length']+')'):a95_0x373e90['gray']('(none)')));const _0x446fa1=Object[_0x5c86fc(0x10c)](_0x4ff775['apps']);if(_0x446fa1[_0x5c86fc(0x116)]>0x0){console[_0x5c86fc(0x12d)](),console['log'](a95_0x373e90[_0x5c86fc(0x12f)](_0x5c86fc(0x127))),console[_0x5c86fc(0x12d)](a95_0x373e90['gray'](_0x5c86fc(0x14b)[_0x5c86fc(0x106)](0x1e)));for(const _0x1651ea of _0x446fa1){const _0x3b7cb1=_0x4ff775['apps'][_0x1651ea],_0x1e9940=_0x1651ea===_0x4ff775[_0x5c86fc(0x12a)],_0x1b3deb=_0x1651ea===_0x4ff775[_0x5c86fc(0x145)],_0x3fa5f5=_0x1b3deb?a95_0x373e90['green'](_0x5c86fc(0xfd)):'',_0x5de389=_0x1e9940?'\x20(default)':'';console['log']('\x20\x20'+_0x1651ea+_0x5de389+_0x3fa5f5),console[_0x5c86fc(0x12d)](_0x5c86fc(0x13c)+_0x3b7cb1[_0x5c86fc(0x100)]);const _0x205f83=buildAppDoctorFields(_0x3b7cb1,{'env':_0x4ff775[_0x5c86fc(0x12c)],'apiDir':_0x4ff775[_0x5c86fc(0x139)][_0x5c86fc(0x13f)]||DEFAULT_CONFIG_VALUES[_0x5c86fc(0x13f)],'cookie':_0x4ff775['cookie']||_0x3edb80||undefined,'accessKey':_0x4ff775[_0x5c86fc(0xfb)]});console[_0x5c86fc(0x12d)](_0x5c86fc(0x124)+_0x205f83[_0x5c86fc(0x12c)]['value']+'\x20\x20'+a95_0x373e90[_0x5c86fc(0x13a)]('('+_0x205f83['env'][_0x5c86fc(0xf5)]+')')),console[_0x5c86fc(0x12d)](_0x5c86fc(0x10b)+_0x205f83['apiDir'][_0x5c86fc(0x156)]+'\x20\x20'+a95_0x373e90[_0x5c86fc(0x13a)]('('+_0x205f83['apiDir'][_0x5c86fc(0xf5)]+')'));const _0x16de6c=_0x205f83[_0x5c86fc(0x14c)]['value']?a95_0x373e90[_0x5c86fc(0x11e)](_0x5c86fc(0x154)+_0x205f83[_0x5c86fc(0x14c)][_0x5c86fc(0x156)][_0x5c86fc(0x116)]+')'):a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14a));console[_0x5c86fc(0x12d)](_0x5c86fc(0x149)+_0x16de6c+'\x20\x20'+a95_0x373e90[_0x5c86fc(0x13a)]('('+_0x205f83[_0x5c86fc(0x14c)][_0x5c86fc(0xf5)]+')'));const _0x7f898f=_0x205f83[_0x5c86fc(0xfb)][_0x5c86fc(0x156)]?a95_0x373e90[_0x5c86fc(0x11e)](_0x5c86fc(0x154)+_0x205f83[_0x5c86fc(0xfb)][_0x5c86fc(0x156)]['length']+')'):a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14a));console[_0x5c86fc(0x12d)](_0x5c86fc(0x150)+_0x7f898f+'\x20\x20'+a95_0x373e90[_0x5c86fc(0x13a)]('('+_0x205f83['accessKey'][_0x5c86fc(0xf5)]+')'));}}console[_0x5c86fc(0x12d)](),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x12f)](_0x5c86fc(0x10d))),console['log'](a95_0x373e90['gray'](_0x5c86fc(0x14b)[_0x5c86fc(0x106)](0x1e))),console[_0x5c86fc(0x12d)](_0x5c86fc(0x10a)+getApiDomain()),console[_0x5c86fc(0x12d)](_0x5c86fc(0x110)+getUserDomain()),console['log'](_0x5c86fc(0x142)+getRuntimeDomain()),console[_0x5c86fc(0x12d)](),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x12f)](_0x5c86fc(0x135))),console[_0x5c86fc(0x12d)](a95_0x373e90[_0x5c86fc(0x13a)](_0x5c86fc(0x14b)[_0x5c86fc(0x106)](0x1e)));if(_0x3edb80){const _0x4373b9=await getIsSessionValid();console[_0x5c86fc(0x12d)](_0x5c86fc(0x113)+(_0x4373b9?a95_0x373e90['green']('✓\x20Valid'):a95_0x373e90[_0x5c86fc(0xf7)](_0x5c86fc(0x133))));}else console[_0x5c86fc(0x12d)](_0x5c86fc(0x113)+a95_0x373e90[_0x5c86fc(0xf7)]('✗\x20Not\x20logged\x20in'));return console[_0x5c86fc(0x12d)](),{'ok':!![]};}export const doctorDefinition={'service':a95_0x2117eb(0x117),'command':a95_0x2117eb(0xf8),'description':a95_0x2117eb(0x129),'risk':a95_0x2117eb(0x151),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a96_0x1149fc=a96_0x2146;function a96_0x2146(_0x59f447,_0x5f2af3){_0x59f447=_0x59f447-0x185;const _0x1c4513=a96_0x1c45();let _0x21465d=_0x1c4513[_0x59f447];return _0x21465d;}(function(_0x4a0cd4,_0x2f6bee){const _0x2f0473=a96_0x2146,_0x385f18=_0x4a0cd4();while(!![]){try{const _0x59a2ea=-parseInt(_0x2f0473(0x1a0))/0x1+-parseInt(_0x2f0473(0x187))/0x2+parseInt(_0x2f0473(0x185))/0x3*(parseInt(_0x2f0473(0x19e))/0x4)+-parseInt(_0x2f0473(0x18d))/0x5+-parseInt(_0x2f0473(0x190))/0x6*(-parseInt(_0x2f0473(0x198))/0x7)+parseInt(_0x2f0473(0x1a2))/0x8*(-parseInt(_0x2f0473(0x194))/0x9)+parseInt(_0x2f0473(0x188))/0xa;if(_0x59a2ea===_0x2f6bee)break;else _0x385f18['push'](_0x385f18['shift']());}catch(_0x2cbc00){_0x385f18['push'](_0x385f18['shift']());}}}(a96_0x1c45,0xf27af));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a96_0x1c45(){const _0x2dc473=['891006KUZnqc','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','filepath','read','6495516GfcVHo','\x20to\x20development\x20app\x20','file','path','7JtGNNi','string','appCode','Preview:\x20upload\x20','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','4vwNPEm','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','1217573ufugjf','filePath\x20is\x20required.','8KLMSNF','download','validation','boolean','query-url','2504133nuJoAE','upload','1010144GzmCGa','29718470VZxpcN','bool','str','Path\x20to\x20the\x20local\x20file\x20to\x20upload','long-term','2587455aEpEvr','filePath','File'];a96_0x1c45=function(){return _0x2dc473;};return a96_0x1c45();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a96_0x1149fc(0x196),'type':a96_0x1149fc(0x199),'required':!![],'description':a96_0x1149fc(0x18b)},FILEPATH_FLAG={'name':a96_0x1149fc(0x192),'type':'string','required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':'download','type':a96_0x1149fc(0x1a5),'description':a96_0x1149fc(0x19c)},LONG_TERM_FLAG={'name':a96_0x1149fc(0x18c),'type':'boolean','description':a96_0x1149fc(0x19d)};function requireFilePath(_0x49dd58){const _0x5db005=a96_0x1149fc,_0x582f3a=_0x49dd58['trim']();if(!_0x582f3a)throw CliErrors[_0x5db005(0x1a4)](_0x5db005(0x1a1));return _0x582f3a;}const fileUpload={'service':a96_0x1149fc(0x196),'command':a96_0x1149fc(0x186),'description':a96_0x1149fc(0x191),'risk':a96_0x1149fc(0x193),'flags':[FILE_FLAG],async 'dryRun'(_0x3a9bf0){const _0x2af827=a96_0x1149fc,_0x3ddaa7=requireDevelopmentUploadFile(_0x3a9bf0['str'](_0x2af827(0x196)),_0x2af827(0x18f));return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0x3a9bf0[_0x2af827(0x19a)],'multipart':{'file':_0x3ddaa7}},'description':_0x2af827(0x19b)+_0x3ddaa7['path']+_0x2af827(0x195)+_0x3a9bf0[_0x2af827(0x19a)]};},async 'execute'(_0x5b7182){const _0x43a197=a96_0x1149fc,_0x14432c=requireDevelopmentUploadFile(_0x5b7182[_0x43a197(0x18a)](_0x43a197(0x196)),'File'),_0x1a5f3d=await uploadDevelopmentFile(_0x5b7182['appCode'],_0x14432c[_0x43a197(0x197)]);return{'ok':!![],'data':_0x1a5f3d,'message':_0x1a5f3d[_0x43a197(0x18e)]?'Uploaded\x20file:\x20'+_0x1a5f3d[_0x43a197(0x18e)]+'.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.':_0x43a197(0x19f)};}},fileQueryUrl={'service':'file','command':a96_0x1149fc(0x1a6),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':a96_0x1149fc(0x193),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x21bf47){const _0x401819=a96_0x1149fc,_0x28119d=requireFilePath(_0x21bf47['str']('filepath')),_0x2e0d74=await queryDevelopmentFileUrl(_0x28119d,{'download':_0x21bf47['bool'](_0x401819(0x1a3)),'longTerm':_0x21bf47[_0x401819(0x189)](_0x401819(0x18c))});return{'ok':!![],'data':_0x2e0d74};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
1
+ const a96_0x2335d0=a96_0x3217;function a96_0x3217(_0x391946,_0x5b1986){_0x391946=_0x391946-0xf1;const _0x3a4c59=a96_0x3a4c();let _0x3217cd=_0x3a4c59[_0x391946];return _0x3217cd;}(function(_0xb40503,_0xe271be){const _0x39c64d=a96_0x3217,_0x3df907=_0xb40503();while(!![]){try{const _0x2cfc68=parseInt(_0x39c64d(0x107))/0x1*(-parseInt(_0x39c64d(0xfb))/0x2)+parseInt(_0x39c64d(0x111))/0x3*(-parseInt(_0x39c64d(0x113))/0x4)+-parseInt(_0x39c64d(0x10f))/0x5*(-parseInt(_0x39c64d(0x103))/0x6)+-parseInt(_0x39c64d(0xfe))/0x7*(-parseInt(_0x39c64d(0x10c))/0x8)+-parseInt(_0x39c64d(0x104))/0x9+-parseInt(_0x39c64d(0x102))/0xa*(parseInt(_0x39c64d(0xf3))/0xb)+parseInt(_0x39c64d(0x10d))/0xc;if(_0x2cfc68===_0xe271be)break;else _0x3df907['push'](_0x3df907['shift']());}catch(_0x1a691d){_0x3df907['push'](_0x3df907['shift']());}}}(a96_0x3a4c,0x6a94c));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_0x2335d0(0xfd),'type':a96_0x2335d0(0xf8),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a96_0x2335d0(0xfc),'type':'string','required':!![],'description':a96_0x2335d0(0x105)},DOWNLOAD_FLAG={'name':'download','type':'boolean','description':a96_0x2335d0(0xff)},LONG_TERM_FLAG={'name':a96_0x2335d0(0x10a),'type':a96_0x2335d0(0x110),'description':a96_0x2335d0(0xf4)};function requireFilePath(_0x172cbe){const _0x1f851b=a96_0x2335d0,_0xb3704d=_0x172cbe[_0x1f851b(0xf5)]();if(!_0xb3704d)throw CliErrors[_0x1f851b(0xf9)](_0x1f851b(0xf6));return _0xb3704d;}const fileUpload={'service':a96_0x2335d0(0xfd),'command':'upload','description':a96_0x2335d0(0x112),'risk':a96_0x2335d0(0x106),'flags':[FILE_FLAG],async 'dryRun'(_0x3b85ad){const _0x29c428=a96_0x2335d0,_0x1f89db=requireDevelopmentUploadFile(_0x3b85ad[_0x29c428(0x114)](_0x29c428(0xfd)),'File');return{'method':'POST','url':'/smartapi/common/uploadFile','body':{'appCode':_0x3b85ad['appCode'],'multipart':{'file':_0x1f89db}},'description':_0x29c428(0x10b)+_0x1f89db['path']+'\x20to\x20development\x20app\x20'+_0x3b85ad[_0x29c428(0xfa)]};},async 'execute'(_0x563159){const _0x239e6=a96_0x2335d0,_0xfd2f4f=requireDevelopmentUploadFile(_0x563159[_0x239e6(0x114)](_0x239e6(0xfd)),_0x239e6(0x109)),_0x10bf5e=await uploadDevelopmentFile(_0x563159[_0x239e6(0xfa)],_0xfd2f4f[_0x239e6(0x108)]);return{'ok':!![],'data':_0x10bf5e,'message':_0x10bf5e[_0x239e6(0x100)]?_0x239e6(0x101)+_0x10bf5e[_0x239e6(0x100)]+_0x239e6(0xf1):_0x239e6(0xf7)};}},fileQueryUrl={'service':a96_0x2335d0(0xfd),'command':'query-url','description':a96_0x2335d0(0xf2),'risk':a96_0x2335d0(0x106),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x3fad26){const _0x29f016=a96_0x2335d0,_0x421c15=requireFilePath(_0x3fad26['str']('filepath')),_0x5bfc24=await queryDevelopmentFileUrl(_0x421c15,{'download':_0x3fad26[_0x29f016(0x10e)]('download'),'longTerm':_0x3fad26[_0x29f016(0x10e)](_0x29f016(0x10a))});return{'ok':!![],'data':_0x5bfc24};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a96_0x3a4c(){const _0x23483d=['filePath','Uploaded\x20file:\x20','1700ERUCgR','3132kVtGIj','1226781dtnHiN','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','read','5072AOIYzw','path','File','long-term','Preview:\x20upload\x20','6649360WmoBWW','19279044yRcosA','bool','4060JNaWos','boolean','2584434zMcSea','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','4DNWhlE','str','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','50017JTiHvE','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','trim','filePath\x20is\x20required.','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','validation','appCode','258UhApsf','filepath','file','7vaZNTP','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'];a96_0x3a4c=function(){return _0x23483d;};return a96_0x3a4c();}
@@ -1 +1 @@
1
- const a97_0x29dab0=a97_0x6c38;(function(_0x77d826,_0x1e408d){const _0x1ac73e=a97_0x6c38,_0x333482=_0x77d826();while(!![]){try{const _0xfeb98b=parseInt(_0x1ac73e(0xfe))/0x1+parseInt(_0x1ac73e(0xe3))/0x2+-parseInt(_0x1ac73e(0x102))/0x3+-parseInt(_0x1ac73e(0xe8))/0x4*(-parseInt(_0x1ac73e(0xee))/0x5)+-parseInt(_0x1ac73e(0xfa))/0x6+-parseInt(_0x1ac73e(0xe1))/0x7+-parseInt(_0x1ac73e(0xe7))/0x8*(-parseInt(_0x1ac73e(0xe4))/0x9);if(_0xfeb98b===_0x1e408d)break;else _0x333482['push'](_0x333482['shift']());}catch(_0x2cbdaa){_0x333482['push'](_0x333482['shift']());}}}(a97_0x78d6,0xe3a95));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';function a97_0x6c38(_0x306b2d,_0x4f0734){_0x306b2d=_0x306b2d-0xd8;const _0x78d650=a97_0x78d6();let _0x6c38b7=_0x78d650[_0x306b2d];return _0x6c38b7;}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(_0x539cff){return{'appCode':_0x539cff,'appName':_0x539cff};}function writeInitConfig(_0x35fdd1,_0x40bfe0,_0x3ab793){const _0x314bed=a97_0x6c38,_0x32b4f8=resolveWriteConfigPath(_0x35fdd1),_0x117dd1=buildCanonicalProjectConfig({},{'appCodes':_0x40bfe0[_0x314bed(0xf7)](_0x2dbe59=>_0x2dbe59[_0x314bed(0xde)]),'env':_0x3ab793,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x314bed(0xe2)]()}});writeConfigFile(_0x32b4f8,_0x117dd1);const _0x4dc5ed=_0x35fdd1===_0x314bed(0xf0)?_0x314bed(0xf0):_0x314bed(0xff);console[_0x314bed(0xda)](_0x314bed(0xf2)+_0x4dc5ed+_0x314bed(0xdc)),console[_0x314bed(0xda)](_0x314bed(0x100)+_0x40bfe0['map'](_0x3493e4=>_0x3493e4['appCode'])[_0x314bed(0xdd)](',\x20')),console[_0x314bed(0xda)](_0x314bed(0xef)+_0x117dd1[_0x314bed(0xf1)]),console[_0x314bed(0xda)](_0x314bed(0xfb)+_0x117dd1[_0x314bed(0xf9)]),console[_0x314bed(0xda)](_0x314bed(0xf4)+_0x32b4f8);}function a97_0x78d6(){const _0x56c742=['valid','env','5807940uGBuwZ','\x20\x20Env:\x20','run','appcode','1091573ltihzz','project','\x20\x20Apps:\x20','boolean','4325700VrzCqS','App\x20code\x20to\x20initialize\x20with','message','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','cwd','\x20config','join','appCode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','nonInteractive','1822688xMMlxU','toLocaleString','3114012lQvEPp','62793uBClzy','yes','string','960ljJkVT','16708DDrlOV','Auto-confirm\x20prompts','检测到旧配置文件,正在自动升级...\x0a','init','Usage:\x20','validation','140OilwLQ','\x20\x20Default:\x20','global','defaultApp','\x0a✓\x20Successfully\x20initialized\x20','str','\x20\x20Config:\x20','production','Target\x20environment','map'];a97_0x78d6=function(){return _0x56c742;};return a97_0x78d6();}async function runSmartInit(_0xf57aac){const _0x5a89f0=a97_0x6c38,_0x599977=process[_0x5a89f0(0xdb)](),_0x5b0e12=_0xf57aac['bool'](_0x5a89f0(0xf0))?_0x5a89f0(0xf0):_0x5a89f0(0xff),_0x3ac7f1=_0xf57aac['str'](_0x5a89f0(0xf9))||'production',_0x4779b8=_0xf57aac[_0x5a89f0(0xf3)]('appcode')||undefined;if(_0x5b0e12===_0x5a89f0(0xff)){const _0x293cc5=existsSync(resolve(_0x599977,NEW_CONFIG_NAME)),_0xe03308=LEGACY_CONFIG_NAMES['some'](_0x1d6ccb=>existsSync(resolve(_0x599977,_0x1d6ccb)));if(_0xe03308&&!_0x293cc5)return console[_0x5a89f0(0xda)](_0x5a89f0(0xea)),upgradeApp(_0xf57aac[_0x5a89f0(0xe0)],{'yes':_0xf57aac['bool'](_0x5a89f0(0xe5))});if(_0x293cc5)throw CliErrors[_0x5a89f0(0xed)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x4779b8){const _0x1a0dd9=validateAppcode(_0x4779b8);if(!_0x1a0dd9[_0x5a89f0(0xf8)])throw CliErrors[_0x5a89f0(0xed)](_0x1a0dd9[_0x5a89f0(0xd8)]);writeInitConfig(_0x5b0e12,[syntheticApp(_0x4779b8)],_0x3ac7f1);return;}if(_0xf57aac[_0x5a89f0(0xe0)])throw CliErrors['flagMissing'](_0x5a89f0(0xfd),_0x5a89f0(0xec)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x491019=getCookie(),_0x5a90fb=await selectMultipleApps(_0x491019),_0x5b7147=_0x5a90fb==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x5a90fb;writeInitConfig(_0x5b0e12,_0x5b7147,_0x3ac7f1);}const initFlags=[{'name':a97_0x29dab0(0xf0),'type':a97_0x29dab0(0x101),'description':a97_0x29dab0(0xd9),'default':![]},{'name':a97_0x29dab0(0xf9),'type':a97_0x29dab0(0xe6),'description':a97_0x29dab0(0xf6),'default':a97_0x29dab0(0xf5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x29dab0(0xfd),'type':a97_0x29dab0(0xe6),'description':a97_0x29dab0(0x103)},{'name':'yes','type':'boolean','description':a97_0x29dab0(0xe9),'default':![]}];export const initDefinitions=[{'service':a97_0x29dab0(0xeb),'command':a97_0x29dab0(0xfc),'description':a97_0x29dab0(0xdf),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x316bce){return await runSmartInit(_0x316bce),{'ok':!![]};}}];
1
+ const a97_0x2caf88=a97_0x14b0;(function(_0x6a5130,_0x3911df){const _0x132fbc=a97_0x14b0,_0x5cd940=_0x6a5130();while(!![]){try{const _0x4d28ce=-parseInt(_0x132fbc(0x181))/0x1+-parseInt(_0x132fbc(0x190))/0x2*(parseInt(_0x132fbc(0x169))/0x3)+parseInt(_0x132fbc(0x191))/0x4*(parseInt(_0x132fbc(0x172))/0x5)+parseInt(_0x132fbc(0x176))/0x6*(parseInt(_0x132fbc(0x16b))/0x7)+parseInt(_0x132fbc(0x178))/0x8+parseInt(_0x132fbc(0x17f))/0x9+parseInt(_0x132fbc(0x163))/0xa*(-parseInt(_0x132fbc(0x173))/0xb);if(_0x4d28ce===_0x3911df)break;else _0x5cd940['push'](_0x5cd940['shift']());}catch(_0x4c930b){_0x5cd940['push'](_0x5cd940['shift']());}}}(a97_0x5891,0x22b4f));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a97_0x5891(){const _0x37f09f=['65CkgQGg','517SgKteU','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','production','1269228ymeyoB','string','1170944jjpWiI','defaultApp','\x20\x20Apps:\x20','validation','valid','write','init','1230156vnFguz','message','91295bwWXLm','env','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','appcode','Usage:\x20','nonInteractive','join','log','global','toLocaleString','project','\x20\x20Env:\x20','map','some','262EjbyxS','39412LDTkzR','yes','Write\x20to\x20global\x20config\x20instead\x20of\x20project','62690yrHZFz','\x20\x20Default:\x20','\x20config','\x0a✓\x20Successfully\x20initialized\x20','cwd','custom','2166kxslVA','检测到旧配置文件,正在自动升级...\x0a','7GKNNnH','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Auto-confirm\x20prompts','appCode','str','boolean'];a97_0x5891=function(){return _0x37f09f;};return a97_0x5891();}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';function a97_0x14b0(_0x5bc40c,_0x467b2d){_0x5bc40c=_0x5bc40c-0x161;const _0x589143=a97_0x5891();let _0x14b008=_0x589143[_0x5bc40c];return _0x14b008;}import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x8c3763){return{'appCode':_0x8c3763,'appName':_0x8c3763};}function writeInitConfig(_0x5ca4dc,_0xd304d,_0x4fe74b){const _0x20b3f=a97_0x14b0,_0x84c475=resolveWriteConfigPath(_0x5ca4dc),_0x192568=buildCanonicalProjectConfig({},{'appCodes':_0xd304d[_0x20b3f(0x18e)](_0x1a5778=>_0x1a5778[_0x20b3f(0x16f)]),'env':_0x4fe74b,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x20b3f(0x18b)]()}});writeConfigFile(_0x84c475,_0x192568);const _0xbbea4d=_0x5ca4dc===_0x20b3f(0x18a)?_0x20b3f(0x18a):'project';console[_0x20b3f(0x189)](_0x20b3f(0x166)+_0xbbea4d+_0x20b3f(0x165)),console[_0x20b3f(0x189)](_0x20b3f(0x17a)+_0xd304d[_0x20b3f(0x18e)](_0x5cb766=>_0x5cb766[_0x20b3f(0x16f)])[_0x20b3f(0x188)](',\x20')),console[_0x20b3f(0x189)](_0x20b3f(0x164)+_0x192568[_0x20b3f(0x179)]),console['log'](_0x20b3f(0x18d)+_0x192568[_0x20b3f(0x182)]),console[_0x20b3f(0x189)]('\x20\x20Config:\x20'+_0x84c475);}async function runSmartInit(_0x10d03e){const _0x2413f9=a97_0x14b0,_0x49d259=process[_0x2413f9(0x167)](),_0xf3e394=_0x10d03e['bool'](_0x2413f9(0x18a))?_0x2413f9(0x18a):_0x2413f9(0x18c),_0x1a05e2=_0x10d03e[_0x2413f9(0x170)](_0x2413f9(0x182))||_0x2413f9(0x175),_0x1b20d1=_0x10d03e[_0x2413f9(0x170)](_0x2413f9(0x185))||undefined;if(_0xf3e394===_0x2413f9(0x18c)){const _0x4db1e6=existsSync(resolve(_0x49d259,NEW_CONFIG_NAME)),_0x5161be=LEGACY_CONFIG_NAMES[_0x2413f9(0x18f)](_0x119ea2=>existsSync(resolve(_0x49d259,_0x119ea2)));if(_0x5161be&&!_0x4db1e6)return console[_0x2413f9(0x189)](_0x2413f9(0x16a)),upgradeApp(_0x10d03e[_0x2413f9(0x187)],{'yes':_0x10d03e[_0x2413f9(0x16c)](_0x2413f9(0x161))});if(_0x4db1e6)throw CliErrors['validation'](_0x2413f9(0x183),'Use\x20`'+CLI_BIN_NAME+_0x2413f9(0x174));}if(_0x1b20d1){const _0x1863a2=validateAppcode(_0x1b20d1);if(!_0x1863a2[_0x2413f9(0x17c)])throw CliErrors[_0x2413f9(0x17b)](_0x1863a2[_0x2413f9(0x180)]);writeInitConfig(_0xf3e394,[syntheticApp(_0x1b20d1)],_0x1a05e2);return;}if(_0x10d03e[_0x2413f9(0x187)])throw CliErrors['flagMissing'](_0x2413f9(0x185),_0x2413f9(0x186)+CLI_BIN_NAME+_0x2413f9(0x184));const _0x21c4c1=getCookie(),_0x15da68=await selectMultipleApps(_0x21c4c1),_0x45d062=_0x15da68===_0x2413f9(0x168)?[syntheticApp(await promptCustomAppcode())]:_0x15da68;writeInitConfig(_0xf3e394,_0x45d062,_0x1a05e2);}const initFlags=[{'name':a97_0x2caf88(0x18a),'type':'boolean','description':a97_0x2caf88(0x162),'default':![]},{'name':a97_0x2caf88(0x182),'type':'string','description':'Target\x20environment','default':a97_0x2caf88(0x175),'enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x2caf88(0x185),'type':a97_0x2caf88(0x177),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a97_0x2caf88(0x161),'type':a97_0x2caf88(0x171),'description':a97_0x2caf88(0x16e),'default':![]}];export const initDefinitions=[{'service':a97_0x2caf88(0x17e),'command':'run','description':a97_0x2caf88(0x16d),'risk':a97_0x2caf88(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5cb767){return await runSmartInit(_0x5cb767),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a98_0x4a30(){const _0x644957=['1321652zStjsX','2504QpSNak','2SkleER','83727ImdUne','953571mdGabK','469118JGdfjm','5411Vpbwug','2165070sfwYuZ','10XuyWvE','5588020IKffAP'];a98_0x4a30=function(){return _0x644957;};return a98_0x4a30();}(function(_0x13b91e,_0x299bb3){const _0x2a9358=a98_0x34a0,_0x53c527=_0x13b91e();while(!![]){try{const _0x199f31=parseInt(_0x2a9358(0x120))/0x1+parseInt(_0x2a9358(0x127))/0x2*(-parseInt(_0x2a9358(0x11f))/0x3)+parseInt(_0x2a9358(0x125))/0x4*(parseInt(_0x2a9358(0x123))/0x5)+parseInt(_0x2a9358(0x122))/0x6+parseInt(_0x2a9358(0x121))/0x7*(-parseInt(_0x2a9358(0x126))/0x8)+-parseInt(_0x2a9358(0x11e))/0x9+-parseInt(_0x2a9358(0x124))/0xa;if(_0x199f31===_0x299bb3)break;else _0x53c527['push'](_0x53c527['shift']());}catch(_0xd57087){_0x53c527['push'](_0x53c527['shift']());}}}(a98_0x4a30,0x5897e));import{issueReport}from'../../commands/issue/report.js';function a98_0x34a0(_0x54e21e,_0x5c41bc){_0x54e21e=_0x54e21e-0x11e;const _0x4a3017=a98_0x4a30();let _0x34a0c7=_0x4a3017[_0x54e21e];return _0x34a0c7;}export const issueDefinitions=[issueReport];
1
+ function a98_0x3fbe(_0x13ecd6,_0x9a13a){_0x13ecd6=_0x13ecd6-0x125;const _0x624289=a98_0x6242();let _0x3fbeb8=_0x624289[_0x13ecd6];return _0x3fbeb8;}(function(_0x30bcf9,_0x4cc7b4){const _0x5cddc8=a98_0x3fbe,_0x1d02fe=_0x30bcf9();while(!![]){try{const _0x4bd276=-parseInt(_0x5cddc8(0x12c))/0x1*(-parseInt(_0x5cddc8(0x12b))/0x2)+-parseInt(_0x5cddc8(0x12e))/0x3*(-parseInt(_0x5cddc8(0x125))/0x4)+-parseInt(_0x5cddc8(0x12f))/0x5+-parseInt(_0x5cddc8(0x12d))/0x6*(parseInt(_0x5cddc8(0x12a))/0x7)+-parseInt(_0x5cddc8(0x130))/0x8*(parseInt(_0x5cddc8(0x126))/0x9)+parseInt(_0x5cddc8(0x127))/0xa*(parseInt(_0x5cddc8(0x128))/0xb)+parseInt(_0x5cddc8(0x129))/0xc;if(_0x4bd276===_0x4cc7b4)break;else _0x1d02fe['push'](_0x1d02fe['shift']());}catch(_0x26581a){_0x1d02fe['push'](_0x1d02fe['shift']());}}}(a98_0x6242,0xdc9a3));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a98_0x6242(){const _0x24e391=['59120LoFJLa','902jgHzow','10978920LAcpwR','41783XziwKZ','10420zMpwVr','247HTFBtE','258IGtFdr','6EjCUqC','2249890QpvASh','488kCxqvV','786316iknMAs','216810nxWlpH'];a98_0x6242=function(){return _0x24e391;};return a98_0x6242();}
@@ -1 +1 @@
1
- const a99_0x1f8d3b=a99_0x3897;(function(_0x52193f,_0x4c8303){const _0x165472=a99_0x3897,_0x18a080=_0x52193f();while(!![]){try{const _0x3ed404=-parseInt(_0x165472(0x183))/0x1+parseInt(_0x165472(0x188))/0x2*(-parseInt(_0x165472(0x198))/0x3)+-parseInt(_0x165472(0x190))/0x4+-parseInt(_0x165472(0x187))/0x5*(parseInt(_0x165472(0x19a))/0x6)+parseInt(_0x165472(0x18a))/0x7*(-parseInt(_0x165472(0x194))/0x8)+parseInt(_0x165472(0x18d))/0x9+parseInt(_0x165472(0x18f))/0xa*(parseInt(_0x165472(0x186))/0xb);if(_0x3ed404===_0x4c8303)break;else _0x18a080['push'](_0x18a080['shift']());}catch(_0x4ba440){_0x18a080['push'](_0x18a080['shift']());}}}(a99_0x5705,0xddcd1));function a99_0x3897(_0x5850ab,_0x22d528){_0x5850ab=_0x5850ab-0x17f;const _0x570547=a99_0x5705();let _0x38972b=_0x570547[_0x5850ab];return _0x38972b;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV='RABETBASE_DISABLE_ISSUE_NUDGE';function a99_0x5705(){const _0x265a10=['250626tcKITl','\x20bug?\x20Help\x20us\x20fix\x20it:','length','slice','write','code','replace','stderr','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x22\x20\x5c','\x20\x20Set\x20','unknown_command','trim','network_error','469889kyPXON','has','validation_error','25802546ngEPQd','205lTWEPo','3200258zdEBYA','message','7ouJnub','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','flag_missing','7489170EuVijn','command','20WhYPwr','2834788sfvmaA','=1\x20to\x20silence\x20this\x20hint.','cancelled','report','989432vPirRd','\x20\x20\x20\x20--title\x20\x22','service','config_missing','3UKvpZx','auth_required'];a99_0x5705=function(){return _0x265a10;};return a99_0x5705();}const NUDGE_SUPPRESSED_CODES=new Set([a99_0x1f8d3b(0x192),a99_0x1f8d3b(0x199),a99_0x1f8d3b(0x197),'not_in_project',a99_0x1f8d3b(0x180),a99_0x1f8d3b(0x18c),a99_0x1f8d3b(0x185),a99_0x1f8d3b(0x182)]),defaultWriter=_0x137d6e=>{const _0x38e01c=a99_0x1f8d3b;process[_0x38e01c(0x1a1)][_0x38e01c(0x19e)](_0x137d6e);};export function shouldNudgeForError(_0x4b308a,_0x3a0192){const _0x48119e=a99_0x1f8d3b;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3a0192[_0x48119e(0x196)]==='issue'&&_0x3a0192[_0x48119e(0x18e)]===_0x48119e(0x193))return![];if(_0x4b308a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x48119e(0x184)](_0x4b308a[_0x48119e(0x19f)]);return!![];}export function printIssueReportNudgeForError(_0x3c9f8f,_0x12e384,_0xc241f5=defaultWriter){if(!shouldNudgeForError(_0x3c9f8f,_0x12e384))return;const _0x31cf62=buildSuggestedTitle(_0x3c9f8f,_0x12e384);_0xc241f5(formatNudge(_0x31cf62));}function buildSuggestedTitle(_0x3b0a78,_0x372903){const _0x240797=a99_0x1f8d3b,_0x455702=_0x3b0a78 instanceof Error?_0x3b0a78[_0x240797(0x189)]:String(_0x3b0a78),_0x5aff13=_0x455702[_0x240797(0x1a0)](/[\r\n]+/g,'\x20')[_0x240797(0x1a0)](/\s+/g,'\x20')[_0x240797(0x181)]()[_0x240797(0x19d)](0x0,0x78)[_0x240797(0x1a0)](/"/g,'\x5c\x22'),_0x299646=CLI_BIN_NAME+'\x20'+_0x372903['service']+'\x20'+_0x372903[_0x240797(0x18e)];return _0x5aff13[_0x240797(0x19c)]>0x0?_0x299646+':\x20'+_0x5aff13:_0x299646;}function formatNudge(_0x1c5234){const _0x571209=a99_0x1f8d3b;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x571209(0x19b),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x571209(0x195)+_0x1c5234+_0x571209(0x1a3),_0x571209(0x1a2),_0x571209(0x18b),_0x571209(0x17f)+NUDGE_OPT_OUT_ENV+_0x571209(0x191),'']['join']('\x0a');}
1
+ const a99_0x2b4bd6=a99_0x1776;(function(_0x5f56ac,_0x3eb91f){const _0xb2c795=a99_0x1776,_0x2482b3=_0x5f56ac();while(!![]){try{const _0x3d47e6=parseInt(_0xb2c795(0x149))/0x1+parseInt(_0xb2c795(0x143))/0x2+-parseInt(_0xb2c795(0x14f))/0x3*(parseInt(_0xb2c795(0x152))/0x4)+parseInt(_0xb2c795(0x151))/0x5*(parseInt(_0xb2c795(0x144))/0x6)+parseInt(_0xb2c795(0x156))/0x7*(parseInt(_0xb2c795(0x148))/0x8)+-parseInt(_0xb2c795(0x14a))/0x9*(-parseInt(_0xb2c795(0x155))/0xa)+-parseInt(_0xb2c795(0x14e))/0xb;if(_0x3d47e6===_0x3eb91f)break;else _0x2482b3['push'](_0x2482b3['shift']());}catch(_0x1902c2){_0x2482b3['push'](_0x2482b3['shift']());}}}(a99_0x4319,0x3e9e5));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a99_0x2b4bd6(0x13e);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x2b4bd6(0x154),a99_0x2b4bd6(0x142),a99_0x2b4bd6(0x14d),a99_0x2b4bd6(0x141),a99_0x2b4bd6(0x14b),'flag_missing','validation_error',a99_0x2b4bd6(0x158)]),defaultWriter=_0x4b7b4d=>{const _0x327c78=a99_0x2b4bd6;process[_0x327c78(0x147)][_0x327c78(0x14c)](_0x4b7b4d);};export function shouldNudgeForError(_0xf0c2be,_0x21c8d2){const _0xc37f0d=a99_0x2b4bd6;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x21c8d2[_0xc37f0d(0x15a)]===_0xc37f0d(0x140)&&_0x21c8d2['command']===_0xc37f0d(0x13d))return![];if(_0xf0c2be instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0xf0c2be[_0xc37f0d(0x146)]);return!![];}export function printIssueReportNudgeForError(_0x3b38a4,_0x57121a,_0x161c7e=defaultWriter){if(!shouldNudgeForError(_0x3b38a4,_0x57121a))return;const _0x4eb730=buildSuggestedTitle(_0x3b38a4,_0x57121a);_0x161c7e(formatNudge(_0x4eb730));}function buildSuggestedTitle(_0x163e4b,_0x10ed8f){const _0x1a3693=a99_0x2b4bd6,_0x482229=_0x163e4b instanceof Error?_0x163e4b['message']:String(_0x163e4b),_0x3875e6=_0x482229[_0x1a3693(0x159)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1a3693(0x13c)]()[_0x1a3693(0x13b)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x5219f3=CLI_BIN_NAME+'\x20'+_0x10ed8f[_0x1a3693(0x15a)]+'\x20'+_0x10ed8f[_0x1a3693(0x15b)];return _0x3875e6[_0x1a3693(0x13f)]>0x0?_0x5219f3+':\x20'+_0x3875e6:_0x5219f3;}function a99_0x1776(_0xf4e580,_0x443da1){_0xf4e580=_0xf4e580-0x138;const _0x4319ad=a99_0x4319();let _0x1776a0=_0x4319ad[_0xf4e580];return _0x1776a0;}function formatNudge(_0x52b93b){const _0x379a06=a99_0x2b4bd6;return['',_0x379a06(0x145)+CLI_BIN_NAME+_0x379a06(0x157),'\x20\x20'+CLI_BIN_NAME+_0x379a06(0x150),'\x20\x20\x20\x20--title\x20\x22'+_0x52b93b+_0x379a06(0x153),_0x379a06(0x138),_0x379a06(0x13a),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x379a06(0x15c),''][_0x379a06(0x139)]('\x0a');}function a99_0x4319(){const _0x2516cd=['4EqWAnx','\x22\x20\x5c','cancelled','10IejpYj','40453bxphOi','\x20bug?\x20Help\x20us\x20fix\x20it:','network_error','replace','service','command','=1\x20to\x20silence\x20this\x20hint.','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','join','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','slice','trim','report','RABETBASE_DISABLE_ISSUE_NUDGE','length','issue','not_in_project','auth_required','781006ywCcAD','232746xvmejh','Hit\x20a\x20','code','stderr','616EtEDue','349977sVhUpo','725049gwvowD','unknown_command','write','config_missing','16164060iGieOu','16713HZQIdn','\x20issue\x20report\x20\x5c','60EXzjWd'];a99_0x4319=function(){return _0x2516cd;};return a99_0x4319();}
@@ -1 +1 @@
1
- const a100_0x5abc78=a100_0x116d;function a100_0x116d(_0x176347,_0x229c97){_0x176347=_0x176347-0x1b8;const _0x1d76ac=a100_0x1d76();let _0x116de8=_0x1d76ac[_0x176347];return _0x116de8;}(function(_0x447353,_0x3f37d3){const _0x475f03=a100_0x116d,_0x3548e5=_0x447353();while(!![]){try{const _0x1b46ca=-parseInt(_0x475f03(0x1d0))/0x1+-parseInt(_0x475f03(0x1ef))/0x2+-parseInt(_0x475f03(0x1bc))/0x3*(-parseInt(_0x475f03(0x1ba))/0x4)+-parseInt(_0x475f03(0x1df))/0x5*(parseInt(_0x475f03(0x1c2))/0x6)+-parseInt(_0x475f03(0x1f4))/0x7*(-parseInt(_0x475f03(0x1e1))/0x8)+-parseInt(_0x475f03(0x1ed))/0x9+parseInt(_0x475f03(0x1ea))/0xa;if(_0x1b46ca===_0x3f37d3)break;else _0x3548e5['push'](_0x3548e5['shift']());}catch(_0x5f0685){_0x3548e5['push'](_0x3548e5['shift']());}}}(a100_0x1d76,0x74d8c));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a100_0x1d76(){const _0x5b3c4b=['title','length','Failed\x20to\x20report\x20platform\x20issue:\x20','description','compress','61595uKVaOE','redactions:\x20','51592OfDlRy','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','redacted\x20','description-file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','POST','One-line\x20issue\x20summary','cwd','15371620kAsWxT','message','otel://','37323ABVasa','Platform\x20issue\x20reported','555140eLJrRL','str','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','report','287vrTEZt','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','inline','Issue\x20description\x20file\x20is\x20empty:\x20','filter','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','21088JoJmTB','write','324XpmWFX','string','validation','issue.description_redaction_kinds','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','360KshMXj','descriptionSource','utf8','issue.description_original_bytes','flagMissing','File\x20not\x20found:\x20','descriptionFilePath','originalBytes','issue.description_truncated','issue.title','descriptionFile:\x20','truncated','\x20secret(s):\x20','redactionKinds','871486GLfisA','redactionCount','join','file','trim','issue.description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','push','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'];a100_0x1d76=function(){return _0x5b3c4b;};return a100_0x1d76();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a100_0x5abc78(0x1e5);export const issueReport={'service':'issue','command':a100_0x5abc78(0x1f3),'description':a100_0x5abc78(0x1c0),'risk':a100_0x5abc78(0x1bb),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0x5abc78(0x1de),'flags':[{'name':a100_0x5abc78(0x1da),'type':a100_0x5abc78(0x1bd),'required':!![],'description':a100_0x5abc78(0x1e8)},{'name':a100_0x5abc78(0x1dd),'type':a100_0x5abc78(0x1bd),'description':a100_0x5abc78(0x1d9)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0x5abc78(0x1bd),'description':a100_0x5abc78(0x1d7)}],async 'validate'(_0x599c31){const _0x27a95f=a100_0x5abc78,_0x194ec2=_0x599c31[_0x27a95f(0x1f0)](_0x27a95f(0x1da))['trim'](),_0x5363a9=_0x599c31[_0x27a95f(0x1f0)]('description')['trim'](),_0x32b6fa=_0x599c31[_0x27a95f(0x1f0)](DESCRIPTION_FILE_FLAG)[_0x27a95f(0x1d4)]();if(!_0x194ec2)throw CliErrors[_0x27a95f(0x1c6)](_0x27a95f(0x1da),_0x27a95f(0x1c1));const _0x55cd43=_0x5363a9[_0x27a95f(0x1db)]>0x0,_0x1bae1a=_0x32b6fa[_0x27a95f(0x1db)]>0x0;if(_0x55cd43===_0x1bae1a)throw CliErrors['validation'](_0x27a95f(0x1f5),_0x27a95f(0x1f1));if(_0x1bae1a){const _0x4cc781=resolve(process[_0x27a95f(0x1e9)](),_0x32b6fa);if(!existsSync(_0x4cc781))throw CliErrors['validation'](_0x27a95f(0x1c7)+_0x4cc781);}},async 'dryRun'(_0x3dbd44){const _0x203f92=a100_0x5abc78,_0x31da3a=await prepareIssueReport(_0x3dbd44);return{'method':_0x203f92(0x1e7),'url':_0x203f92(0x1ec)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x31da3a[_0x203f92(0x1da)],'issue.description':_0x31da3a[_0x203f92(0x1dd)],'issue.description_original_bytes':_0x31da3a[_0x203f92(0x1e2)]['originalBytes'],'issue.description_truncated':_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1cd)],'issue.description_redactions':_0x31da3a[_0x203f92(0x1e2)]['redactionCount'],'issue.description_redaction_kinds':_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1cf)]['join'](',')}},'description':[_0x203f92(0x1d6),'descriptionSource:\x20'+_0x31da3a['descriptionSource'],_0x31da3a[_0x203f92(0x1c8)]?_0x203f92(0x1cc)+_0x31da3a[_0x203f92(0x1c8)]:null,_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1cd)]?'truncated:\x20original\x20'+_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1c9)]+'\x20bytes':null,_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1d1)]>0x0?_0x203f92(0x1e0)+_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1d1)]+'\x20('+_0x31da3a[_0x203f92(0x1e2)][_0x203f92(0x1cf)]['join'](',\x20')+')':null][_0x203f92(0x1b8)](Boolean)[_0x203f92(0x1d2)]('\x0a')};},async 'execute'(_0x253654){const _0x1be326=a100_0x5abc78,_0xbcffd1=await prepareIssueReport(_0x253654);try{await sendPlatformIssueCollectLog({'title':_0xbcffd1[_0x1be326(0x1da)],'description':_0xbcffd1[_0x1be326(0x1dd)],'sanitize':{'originalBytes':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1c9)],'truncated':_0xbcffd1['sanitize'][_0x1be326(0x1cd)],'redactionCount':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1d1)],'redactionKinds':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1cf)]}});}catch(_0x3ef53e){throw CliErrors['apiError'](_0x1be326(0x1dc)+(_0x3ef53e instanceof Error?_0x3ef53e[_0x1be326(0x1eb)]:String(_0x3ef53e)),_0x1be326(0x1f2));}return{'ok':!![],'message':buildResultMessage(_0xbcffd1[_0x1be326(0x1e2)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1be326(0x1cb),_0x1be326(0x1d5),_0x1be326(0x1c5),_0x1be326(0x1ca),'issue.description_redactions',_0x1be326(0x1bf)],'issue':{'title':_0xbcffd1[_0x1be326(0x1da)],'descriptionLength':_0xbcffd1['description']['length'],'descriptionSource':_0xbcffd1[_0x1be326(0x1c3)],..._0xbcffd1[_0x1be326(0x1c8)]?{'descriptionFile':_0xbcffd1[_0x1be326(0x1c8)]}:{},'sanitize':{'originalBytes':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1c9)],'truncated':_0xbcffd1[_0x1be326(0x1e2)]['truncated'],'redactions':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1d1)],'redactionKinds':_0xbcffd1[_0x1be326(0x1e2)][_0x1be326(0x1cf)]}}}};}};function buildResultMessage(_0xb3c64c){const _0x490b22=a100_0x5abc78,_0x1afdea=[];return _0xb3c64c['truncated']&&_0x1afdea[_0x490b22(0x1d8)]('truncated\x20from\x20'+_0xb3c64c[_0x490b22(0x1c9)]+'\x20bytes'),_0xb3c64c['redactionCount']>0x0&&_0x1afdea[_0x490b22(0x1d8)](_0x490b22(0x1e4)+_0xb3c64c[_0x490b22(0x1d1)]+_0x490b22(0x1ce)+_0xb3c64c[_0x490b22(0x1cf)]['join'](',\x20')),_0x1afdea[_0x490b22(0x1db)]===0x0?_0x490b22(0x1ee):'Platform\x20issue\x20reported\x20('+_0x1afdea[_0x490b22(0x1d2)](';\x20')+')';}async function prepareIssueReport(_0x2af37c){const _0x4a04d2=a100_0x5abc78,_0x3a91d5=_0x2af37c[_0x4a04d2(0x1f0)]('title')[_0x4a04d2(0x1d4)](),_0x49dba3=_0x2af37c['str'](_0x4a04d2(0x1dd)),_0xf772e3=_0x2af37c[_0x4a04d2(0x1f0)](DESCRIPTION_FILE_FLAG)[_0x4a04d2(0x1d4)]();if(!_0xf772e3){const _0x1be9c7=_0x49dba3;if(!_0x1be9c7[_0x4a04d2(0x1d4)]())throw CliErrors[_0x4a04d2(0x1be)](_0x4a04d2(0x1e3),_0x4a04d2(0x1b9));const _0x50f4a8=sanitizeIssueDescription(_0x1be9c7);return{'title':_0x3a91d5,'description':_0x50f4a8[_0x4a04d2(0x1dd)],'descriptionSource':_0x4a04d2(0x1f6),'sanitize':_0x50f4a8};}const _0x181d38=resolve(process['cwd'](),_0xf772e3),_0x5e3e8d=await readFile(_0x181d38,_0x4a04d2(0x1c4));if(!_0x5e3e8d[_0x4a04d2(0x1d4)]())throw CliErrors[_0x4a04d2(0x1be)](_0x4a04d2(0x1f7)+_0x181d38,_0x4a04d2(0x1e6));const _0x5b67b1=sanitizeIssueDescription(_0x5e3e8d);return{'title':_0x3a91d5,'description':_0x5b67b1['description'],'descriptionSource':_0x4a04d2(0x1d3),'descriptionFilePath':_0x181d38,'sanitize':_0x5b67b1};}
1
+ const a100_0x2568dc=a100_0x10e2;(function(_0x94a22c,_0x4f832f){const _0x17e139=a100_0x10e2,_0x1310a9=_0x94a22c();while(!![]){try{const _0x4563b1=parseInt(_0x17e139(0xff))/0x1*(-parseInt(_0x17e139(0x11a))/0x2)+parseInt(_0x17e139(0x112))/0x3+-parseInt(_0x17e139(0x106))/0x4+-parseInt(_0x17e139(0x11d))/0x5*(-parseInt(_0x17e139(0x123))/0x6)+parseInt(_0x17e139(0x12a))/0x7+-parseInt(_0x17e139(0xf4))/0x8*(parseInt(_0x17e139(0xf7))/0x9)+parseInt(_0x17e139(0x116))/0xa*(parseInt(_0x17e139(0x121))/0xb);if(_0x4563b1===_0x4f832f)break;else _0x1310a9['push'](_0x1310a9['shift']());}catch(_0x278570){_0x1310a9['push'](_0x1310a9['shift']());}}}(a100_0x1427,0x568a6));import{existsSync}from'node:fs';function a100_0x1427(){const _0xf473d=['file','\x20secret(s):\x20','apiError','originalBytes','1411964FqQTVV','redactionCount','redacted\x20','issue.description_redaction_kinds','descriptionFilePath','write','join','redactions:\x20','str','issue','title','truncated:\x20original\x20','947268bOcquu','description','filter','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','2940870VhwIPd','truncated','redactionKinds','descriptionFile:\x20','26FRMzXg','sanitize','cwd','792730AoAvWa','\x20bytes','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue.description_truncated','22spDuVA','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','24HPIOJG','string','descriptionSource:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported','Failed\x20to\x20report\x20platform\x20issue:\x20','One-line\x20issue\x20summary','1015189DyxYmQ','descriptionSource','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','8fGAwlF','length','POST','2817513uaNZEh','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','push','validation','message','inline','50971ZgUKyJ','trim','issue.title'];a100_0x1427=function(){return _0xf473d;};return a100_0x1427();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a100_0x10e2(_0x1654ee,_0x4a14cc){_0x1654ee=_0x1654ee-0xf4;const _0x142786=a100_0x1427();let _0x10e24b=_0x142786[_0x1654ee];return _0x10e24b;}const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a100_0x2568dc(0x10f),'command':'report','description':a100_0x2568dc(0xf8),'risk':a100_0x2568dc(0x10b),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a100_0x2568dc(0x110),'type':'string','required':!![],'description':a100_0x2568dc(0x129)},{'name':'description','type':a100_0x2568dc(0x124),'description':a100_0x2568dc(0xf9)},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0x2568dc(0x124),'description':a100_0x2568dc(0x126)}],async 'validate'(_0x307777){const _0x3330e6=a100_0x2568dc,_0x2e207d=_0x307777[_0x3330e6(0x10e)](_0x3330e6(0x110))[_0x3330e6(0x100)](),_0x2b35c8=_0x307777[_0x3330e6(0x10e)](_0x3330e6(0x113))[_0x3330e6(0x100)](),_0x22eefd=_0x307777[_0x3330e6(0x10e)](DESCRIPTION_FILE_FLAG)[_0x3330e6(0x100)]();if(!_0x2e207d)throw CliErrors['flagMissing']('title',_0x3330e6(0x11f));const _0x507000=_0x2b35c8[_0x3330e6(0xf5)]>0x0,_0x3f40fe=_0x22eefd['length']>0x0;if(_0x507000===_0x3f40fe)throw CliErrors[_0x3330e6(0xfc)](_0x3330e6(0x115),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x3f40fe){const _0x399a92=resolve(process[_0x3330e6(0x11c)](),_0x22eefd);if(!existsSync(_0x399a92))throw CliErrors[_0x3330e6(0xfc)]('File\x20not\x20found:\x20'+_0x399a92);}},async 'dryRun'(_0x29510b){const _0x2e2e5b=a100_0x2568dc,_0x43133c=await prepareIssueReport(_0x29510b);return{'method':_0x2e2e5b(0xf6),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x43133c[_0x2e2e5b(0x110)],'issue.description':_0x43133c[_0x2e2e5b(0x113)],'issue.description_original_bytes':_0x43133c['sanitize'][_0x2e2e5b(0x105)],'issue.description_truncated':_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x117)],'issue.description_redactions':_0x43133c[_0x2e2e5b(0x11b)]['redactionCount'],'issue.description_redaction_kinds':_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x118)][_0x2e2e5b(0x10c)](',')}},'description':[_0x2e2e5b(0x12c),_0x2e2e5b(0x125)+_0x43133c[_0x2e2e5b(0x12b)],_0x43133c['descriptionFilePath']?_0x2e2e5b(0x119)+_0x43133c[_0x2e2e5b(0x10a)]:null,_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x117)]?_0x2e2e5b(0x111)+_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x105)]+_0x2e2e5b(0x11e):null,_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x107)]>0x0?_0x2e2e5b(0x10d)+_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x107)]+'\x20('+_0x43133c[_0x2e2e5b(0x11b)][_0x2e2e5b(0x118)][_0x2e2e5b(0x10c)](',\x20')+')':null][_0x2e2e5b(0x114)](Boolean)['join']('\x0a')};},async 'execute'(_0x244457){const _0x231c60=a100_0x2568dc,_0x22fbf0=await prepareIssueReport(_0x244457);try{await sendPlatformIssueCollectLog({'title':_0x22fbf0[_0x231c60(0x110)],'description':_0x22fbf0[_0x231c60(0x113)],'sanitize':{'originalBytes':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x105)],'truncated':_0x22fbf0['sanitize']['truncated'],'redactionCount':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x107)],'redactionKinds':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x118)]}});}catch(_0x43bdc4){throw CliErrors[_0x231c60(0x104)](_0x231c60(0x128)+(_0x43bdc4 instanceof Error?_0x43bdc4[_0x231c60(0xfd)]:String(_0x43bdc4)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x22fbf0[_0x231c60(0x11b)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x231c60(0x101),'issue.description','issue.description_original_bytes',_0x231c60(0x120),'issue.description_redactions',_0x231c60(0x109)],'issue':{'title':_0x22fbf0['title'],'descriptionLength':_0x22fbf0[_0x231c60(0x113)]['length'],'descriptionSource':_0x22fbf0['descriptionSource'],..._0x22fbf0[_0x231c60(0x10a)]?{'descriptionFile':_0x22fbf0[_0x231c60(0x10a)]}:{},'sanitize':{'originalBytes':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x105)],'truncated':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x117)],'redactions':_0x22fbf0[_0x231c60(0x11b)]['redactionCount'],'redactionKinds':_0x22fbf0[_0x231c60(0x11b)][_0x231c60(0x118)]}}}};}};function buildResultMessage(_0x239be6){const _0x3170ae=a100_0x2568dc,_0x498d8a=[];return _0x239be6['truncated']&&_0x498d8a[_0x3170ae(0xfb)]('truncated\x20from\x20'+_0x239be6[_0x3170ae(0x105)]+_0x3170ae(0x11e)),_0x239be6[_0x3170ae(0x107)]>0x0&&_0x498d8a['push'](_0x3170ae(0x108)+_0x239be6[_0x3170ae(0x107)]+_0x3170ae(0x103)+_0x239be6[_0x3170ae(0x118)][_0x3170ae(0x10c)](',\x20')),_0x498d8a[_0x3170ae(0xf5)]===0x0?_0x3170ae(0x127):'Platform\x20issue\x20reported\x20('+_0x498d8a['join'](';\x20')+')';}async function prepareIssueReport(_0x235d47){const _0x30cdf2=a100_0x2568dc,_0x11fda7=_0x235d47['str']('title')[_0x30cdf2(0x100)](),_0x4f87a4=_0x235d47[_0x30cdf2(0x10e)](_0x30cdf2(0x113)),_0x547521=_0x235d47[_0x30cdf2(0x10e)](DESCRIPTION_FILE_FLAG)[_0x30cdf2(0x100)]();if(!_0x547521){const _0x5876da=_0x4f87a4;if(!_0x5876da[_0x30cdf2(0x100)]())throw CliErrors[_0x30cdf2(0xfc)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x30cdf2(0xfa));const _0x478d0b=sanitizeIssueDescription(_0x5876da);return{'title':_0x11fda7,'description':_0x478d0b[_0x30cdf2(0x113)],'descriptionSource':_0x30cdf2(0xfe),'sanitize':_0x478d0b};}const _0x284e03=resolve(process[_0x30cdf2(0x11c)](),_0x547521),_0x44bfe9=await readFile(_0x284e03,'utf8');if(!_0x44bfe9['trim']())throw CliErrors[_0x30cdf2(0xfc)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x284e03,_0x30cdf2(0x122));const _0x4bb7df=sanitizeIssueDescription(_0x44bfe9);return{'title':_0x11fda7,'description':_0x4bb7df[_0x30cdf2(0x113)],'descriptionSource':_0x30cdf2(0x102),'descriptionFilePath':_0x284e03,'sanitize':_0x4bb7df};}
@@ -1 +1 @@
1
- function a101_0x5266(){const _0x46f026=['cookie','private-key','4BNCJEY','13376124isYBvI','pattern','utf8','11ztqprw','8394910ZDnqEl','includes','label','length','REDACTED:bearer-jwt','toString','password','kind','__RB_OSS_ID_','push','3541896GgQJLZ','3265LqQbat','1635474PapukM','REDACTED:private-key','REDACTED:cookie','access-key','386GyRDSh','authorization','14GkZkGa','byteLength','replace','restore','bearer-jwt','33024XCafyB','REDACTED:authorization','3209865SqxKnC','801ZZqfZp','REDACTED:password','string'];a101_0x5266=function(){return _0x46f026;};return a101_0x5266();}const a101_0x9aa550=a101_0x2f59;(function(_0x342998,_0x3227a4){const _0x2e1038=a101_0x2f59,_0x233cc5=_0x342998();while(!![]){try{const _0x3b1833=-parseInt(_0x2e1038(0xeb))/0x1*(parseInt(_0x2e1038(0xf0))/0x2)+-parseInt(_0x2e1038(0xec))/0x3+parseInt(_0x2e1038(0xff))/0x4*(parseInt(_0x2e1038(0xf9))/0x5)+parseInt(_0x2e1038(0xea))/0x6*(-parseInt(_0x2e1038(0xf2))/0x7)+-parseInt(_0x2e1038(0xf7))/0x8*(-parseInt(_0x2e1038(0xfa))/0x9)+parseInt(_0x2e1038(0xe0))/0xa+parseInt(_0x2e1038(0x103))/0xb*(parseInt(_0x2e1038(0x100))/0xc);if(_0x3b1833===_0x3227a4)break;else _0x233cc5['push'](_0x233cc5['shift']());}catch(_0x463d74){_0x233cc5['push'](_0x233cc5['shift']());}}}(a101_0x5266,0x9456e));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a101_0x9aa550(0xfd),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a101_0x9aa550(0xee)},{'kind':a101_0x9aa550(0xf1),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a101_0x9aa550(0xf8)},{'kind':a101_0x9aa550(0xfe),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0x9aa550(0xed)},{'kind':a101_0x9aa550(0xef),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a101_0x9aa550(0xe6),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x9aa550(0xfb)},{'kind':a101_0x9aa550(0xf6),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0x9aa550(0xe4)}];export function sanitizeIssueDescription(_0x1340e8){const _0x44f312=a101_0x9aa550,_0x15c409=Buffer[_0x44f312(0xf3)](_0x1340e8,_0x44f312(0x102)),_0x1c8498=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2fbd7e=_0x1340e8,_0x173329=0x0;const _0x22239b=[];if(!_0x1c8498){const _0x3e213c=protectOssAccessKeyIds(_0x2fbd7e);_0x2fbd7e=_0x3e213c['description'];for(const _0x24d9d7 of REDACTION_RULES){let _0x27aea3=0x0;_0x2fbd7e=_0x2fbd7e[_0x44f312(0xf4)](_0x24d9d7[_0x44f312(0x101)],(_0x5f3161,_0x198677)=>{const _0x2a595b=_0x44f312;_0x27aea3+=0x1;const _0x488c07=typeof _0x198677===_0x2a595b(0xfc)?_0x198677:'';return _0x488c07+'['+_0x24d9d7[_0x2a595b(0xe2)]+']';}),_0x27aea3>0x0&&(_0x173329+=_0x27aea3,!_0x22239b[_0x44f312(0xe1)](_0x24d9d7[_0x44f312(0xe7)])&&_0x22239b[_0x44f312(0xe9)](_0x24d9d7[_0x44f312(0xe7)]));}_0x2fbd7e=_0x3e213c[_0x44f312(0xf5)](_0x2fbd7e);}let _0x5a97d6=![];if(Buffer[_0x44f312(0xf3)](_0x2fbd7e,_0x44f312(0x102))>ISSUE_DESCRIPTION_MAX_BYTES){_0x5a97d6=!![];const _0x3aba81=Buffer['byteLength'](TRUNCATION_NOTICE,_0x44f312(0x102)),_0x1d39fc=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3aba81);_0x2fbd7e=sliceUtf8Bytes(_0x2fbd7e,_0x1d39fc)+TRUNCATION_NOTICE;}return{'description':_0x2fbd7e,'originalBytes':_0x15c409,'truncated':_0x5a97d6,'redactionCount':_0x173329,'redactionKinds':_0x22239b};}function a101_0x2f59(_0x19a522,_0x23998e){_0x19a522=_0x19a522-0xe0;const _0x526657=a101_0x5266();let _0x2f5906=_0x526657[_0x19a522];return _0x2f5906;}function protectOssAccessKeyIds(_0xf84ffa){const _0x29e23b=a101_0x9aa550,_0x5b9607=[],_0x42e38f=_0xf84ffa[_0x29e23b(0xf4)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x544822,_0x589223)=>{const _0x3f6cb6=_0x29e23b,_0x586610=_0x5b9607['push'](_0x544822['slice'](_0x589223[_0x3f6cb6(0xe3)]))-0x1;return _0x589223+_0x3f6cb6(0xe8)+_0x586610+'__';});return{'description':_0x42e38f,'restore':_0x2b4799=>_0x2b4799[_0x29e23b(0xf4)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x252340,_0x5cde18,_0x5685c9)=>{const _0x2f29bc=_0x5b9607[Number(_0x5685c9)];return _0x2f29bc===undefined?_0x252340:''+_0x5cde18+_0x2f29bc;})};}function sliceUtf8Bytes(_0x43f68a,_0xe4beef){const _0x2b7565=a101_0x9aa550;if(_0xe4beef<=0x0)return'';const _0x429336=Buffer['from'](_0x43f68a,_0x2b7565(0x102));if(_0x429336[_0x2b7565(0xf3)]<=_0xe4beef)return _0x43f68a;let _0x1b8fec=_0xe4beef;while(_0x1b8fec>0x0){const _0x4e2c33=_0x429336[_0x1b8fec];if(_0x4e2c33===undefined||(_0x4e2c33&0xc0)!==0x80)break;_0x1b8fec-=0x1;}return _0x429336['subarray'](0x0,_0x1b8fec)[_0x2b7565(0xe5)](_0x2b7565(0x102));}
1
+ const a101_0x4e37dd=a101_0x5a63;function a101_0x5a63(_0x303da1,_0x117dce){_0x303da1=_0x303da1-0x74;const _0x479588=a101_0x4795();let _0x5a63b5=_0x479588[_0x303da1];return _0x5a63b5;}(function(_0x44cc38,_0x2e6309){const _0xcdf6d5=a101_0x5a63,_0x148cd0=_0x44cc38();while(!![]){try{const _0x457730=-parseInt(_0xcdf6d5(0x98))/0x1+-parseInt(_0xcdf6d5(0x77))/0x2*(-parseInt(_0xcdf6d5(0x90))/0x3)+-parseInt(_0xcdf6d5(0x91))/0x4*(parseInt(_0xcdf6d5(0x89))/0x5)+-parseInt(_0xcdf6d5(0x8b))/0x6+-parseInt(_0xcdf6d5(0x97))/0x7*(parseInt(_0xcdf6d5(0x86))/0x8)+parseInt(_0xcdf6d5(0x95))/0x9+parseInt(_0xcdf6d5(0x7d))/0xa*(parseInt(_0xcdf6d5(0x8d))/0xb);if(_0x457730===_0x2e6309)break;else _0x148cd0['push'](_0x148cd0['shift']());}catch(_0x369036){_0x148cd0['push'](_0x148cd0['shift']());}}}(a101_0x4795,0x1e7f7));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a101_0x4e37dd(0x8a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a101_0x4e37dd(0x80),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a101_0x4e37dd(0x7f)},{'kind':a101_0x4e37dd(0x7c),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0x4e37dd(0x79)},{'kind':a101_0x4e37dd(0x85),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a101_0x4e37dd(0x94)},{'kind':a101_0x4e37dd(0x8f),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x4e37dd(0x76)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x49a04c){const _0x597edd=a101_0x4e37dd,_0x2ef132=Buffer['byteLength'](_0x49a04c,_0x597edd(0x7a)),_0x2bcf35=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3fe565=_0x49a04c,_0x15567b=0x0;const _0x44f35f=[];if(!_0x2bcf35){const _0x12718f=protectOssAccessKeyIds(_0x3fe565);_0x3fe565=_0x12718f[_0x597edd(0x7b)];for(const _0x57cbee of REDACTION_RULES){let _0x49a373=0x0;_0x3fe565=_0x3fe565[_0x597edd(0x75)](_0x57cbee['pattern'],(_0x3a34be,_0x32e092)=>{const _0x249cb7=_0x597edd;_0x49a373+=0x1;const _0x2305e4=typeof _0x32e092===_0x249cb7(0x93)?_0x32e092:'';return _0x2305e4+'['+_0x57cbee[_0x249cb7(0x83)]+']';}),_0x49a373>0x0&&(_0x15567b+=_0x49a373,!_0x44f35f[_0x597edd(0x84)](_0x57cbee[_0x597edd(0x88)])&&_0x44f35f[_0x597edd(0x87)](_0x57cbee[_0x597edd(0x88)]));}_0x3fe565=_0x12718f[_0x597edd(0x7e)](_0x3fe565);}let _0x1580dc=![];if(Buffer[_0x597edd(0x82)](_0x3fe565,_0x597edd(0x7a))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1580dc=!![];const _0x5131cb=Buffer[_0x597edd(0x82)](TRUNCATION_NOTICE,'utf8'),_0x30e097=Math[_0x597edd(0x96)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5131cb);_0x3fe565=sliceUtf8Bytes(_0x3fe565,_0x30e097)+TRUNCATION_NOTICE;}return{'description':_0x3fe565,'originalBytes':_0x2ef132,'truncated':_0x1580dc,'redactionCount':_0x15567b,'redactionKinds':_0x44f35f};}function a101_0x4795(){const _0x342de6=['22vAWjEQ','length','password','3OQUgXX','296nFAPhL','__RB_OSS_ID_','string','REDACTED:access-key','636372mbqXGd','max','7ncKTbl','105031MuLtYu','toString','replace','REDACTED:password','87452jIgQYI','from','REDACTED:private-key','utf8','description','private-key','2063080pVvoFt','restore','REDACTED:authorization','authorization','subarray','byteLength','label','includes','access-key','1072616vfXRqG','push','kind','6980SzQPER','cookie','358314iWwgBA','slice'];a101_0x4795=function(){return _0x342de6;};return a101_0x4795();}function protectOssAccessKeyIds(_0x42e006){const _0x1742d6=a101_0x4e37dd,_0x139d27=[],_0x1a39b2=_0x42e006[_0x1742d6(0x75)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2077f5,_0x53b6fc)=>{const _0x46dc54=_0x1742d6,_0x33f646=_0x139d27[_0x46dc54(0x87)](_0x2077f5[_0x46dc54(0x8c)](_0x53b6fc[_0x46dc54(0x8e)]))-0x1;return _0x53b6fc+_0x46dc54(0x92)+_0x33f646+'__';});return{'description':_0x1a39b2,'restore':_0x2073b3=>_0x2073b3[_0x1742d6(0x75)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x196c09,_0x40731b,_0x3b828b)=>{const _0x24fe3f=_0x139d27[Number(_0x3b828b)];return _0x24fe3f===undefined?_0x196c09:''+_0x40731b+_0x24fe3f;})};}function sliceUtf8Bytes(_0x2a1121,_0x16391a){const _0x26a3fd=a101_0x4e37dd;if(_0x16391a<=0x0)return'';const _0x3e6476=Buffer[_0x26a3fd(0x78)](_0x2a1121,_0x26a3fd(0x7a));if(_0x3e6476['byteLength']<=_0x16391a)return _0x2a1121;let _0x18c88d=_0x16391a;while(_0x18c88d>0x0){const _0x491d7e=_0x3e6476[_0x18c88d];if(_0x491d7e===undefined||(_0x491d7e&0xc0)!==0x80)break;_0x18c88d-=0x1;}return _0x3e6476[_0x26a3fd(0x81)](0x0,_0x18c88d)[_0x26a3fd(0x74)](_0x26a3fd(0x7a));}
@@ -1 +1 @@
1
- function a102_0x108f(_0x4ac126,_0x1bf2ab){_0x4ac126=_0x4ac126-0x1cd;const _0x431e23=a102_0x431e();let _0x108f6e=_0x431e23[_0x4ac126];return _0x108f6e;}function a102_0x431e(){const _0x3e0e98=['rabetbase\x20kb\x20detail\x20--id\x20','\x20for\x20','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','create','kb_create_outcome_unknown','trim','1131516nkynro','string','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','3107811tsnOdg','kb_verification_failed','--file\x20is\x20required.','title','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','--title\x20is\x20required.','473499UmbcCU','appCode','content','\x20--format\x20compress`\x20before\x20choosing\x20update.','byteSize','\x20with\x20title\x20','kb_title_required','rabetbase\x20kb\x20list\x20--title\x20','1541466XfELCK','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','length','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','contentHash','6741426wklktR','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','Knowledge-base\x20title','kb_already_exists','\x20--format\x20compress','3070835GtBTKL','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','str','kb_file_required','80eHehLu','company','file','write','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','Company\x20knowledge\x20base\x20','314pMORYQ','verified','4141hsKnNo','UTF-8\x20text\x20or\x20Markdown\x20content\x20file'];a102_0x431e=function(){return _0x3e0e98;};return a102_0x431e();}const a102_0x55449a=a102_0x108f;(function(_0x6a7064,_0x523a75){const _0x525eb8=a102_0x108f,_0x4a1321=_0x6a7064();while(!![]){try{const _0x7e890a=-parseInt(_0x525eb8(0x1fc))/0x1*(-parseInt(_0x525eb8(0x1fa))/0x2)+-parseInt(_0x525eb8(0x1de))/0x3+-parseInt(_0x525eb8(0x1d5))/0x4+-parseInt(_0x525eb8(0x1f0))/0x5+-parseInt(_0x525eb8(0x1eb))/0x6+parseInt(_0x525eb8(0x1d8))/0x7+-parseInt(_0x525eb8(0x1f4))/0x8*(-parseInt(_0x525eb8(0x1e6))/0x9);if(_0x7e890a===_0x523a75)break;else _0x4a1321['push'](_0x4a1321['shift']());}catch(_0x5a52c8){_0x4a1321['push'](_0x4a1321['shift']());}}}(a102_0x431e,0x996b0));import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH='/admin/knowledge-base/create';function readCreateInput(_0x123829){const _0x61c381=a102_0x108f,_0x32e745=_0x123829[_0x61c381(0x1f2)](_0x61c381(0x1db))[_0x61c381(0x1d4)]();if(!_0x32e745)throw kbError(_0x61c381(0x1e4),_0x61c381(0x1dd));const _0x529541=_0x123829[_0x61c381(0x1f2)](_0x61c381(0x1f6))[_0x61c381(0x1d4)]();if(!_0x529541)throw kbError(_0x61c381(0x1f3),_0x61c381(0x1da),_0x61c381(0x1f1));return{'title':_0x32e745,'file':_0x529541};}async function prepareCreate(_0x136d90){const _0x5b6d10=a102_0x108f,_0x1ec6af=readCreateInput(_0x136d90),_0xcb0f37=await readKbFile(_0x1ec6af[_0x5b6d10(0x1f6)]),_0x337aae=await fetchAllCompanyKnowledgeBases(_0x136d90,{'title':_0x1ec6af['title']}),_0x1bc089=findExactCompanyKnowledgeBases(_0x337aae,_0x136d90[_0x5b6d10(0x1df)],_0x1ec6af[_0x5b6d10(0x1db)]);if(_0x1bc089[_0x5b6d10(0x1e8)]>0x0)throw kbError(_0x5b6d10(0x1ee),_0x5b6d10(0x1e7)+_0x136d90[_0x5b6d10(0x1df)]+_0x5b6d10(0x1e3)+_0x1ec6af['title']+'.',_0x5b6d10(0x1e9)+_0x1bc089[0x0]['id']+_0x5b6d10(0x1e1));return{..._0x1ec6af,'content':_0xcb0f37};}function plannedAfter(_0x56f0b3,_0xcf2067){const _0x145113=a102_0x108f;return{'scope':_0x145113(0x1f5),'appCode':_0x56f0b3['appCode'],'title':_0xcf2067[_0x145113(0x1db)],'contentByteSize':_0xcf2067[_0x145113(0x1e0)][_0x145113(0x1e2)],'contentHash':_0xcf2067[_0x145113(0x1e0)][_0x145113(0x1ea)]};}function verifyCreatedState(_0x82793c,_0x365170,_0x3b6d9d){const _0x52a309=a102_0x108f;assertCompanyKnowledgeBase(_0x3b6d9d,_0x82793c[_0x52a309(0x1df)],_0x3b6d9d['id']);const _0x37d7c9=inspectKbContent(_0x3b6d9d['content']);if(_0x3b6d9d[_0x52a309(0x1db)]!==_0x365170[_0x52a309(0x1db)]||_0x37d7c9[_0x52a309(0x1ea)]!==_0x365170[_0x52a309(0x1e0)]['contentHash'])throw kbError(_0x52a309(0x1d9),_0x52a309(0x1f9)+_0x3b6d9d['id']+_0x52a309(0x1dc),_0x52a309(0x1f8)+_0x3b6d9d['id']+_0x52a309(0x1ec));return projectKb(_0x3b6d9d);}export const kbCreate={'service':'kb','command':a102_0x55449a(0x1d2),'description':a102_0x55449a(0x1d7),'risk':a102_0x55449a(0x1f7),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a102_0x55449a(0x1db),'type':a102_0x55449a(0x1d6),'required':!![],'description':a102_0x55449a(0x1ed)},{'name':a102_0x55449a(0x1f6),'type':a102_0x55449a(0x1d6),'required':!![],'description':a102_0x55449a(0x1cd)}],async 'validate'(_0x5f03f4){readCreateInput(_0x5f03f4);},async 'dryRun'(_0x1e16ff){const _0x4655e2=a102_0x55449a,_0x20ea21=await prepareCreate(_0x1e16ff);return asDryRunResult({'operation':_0x4655e2(0x1d2),'selector':{'scope':'company','appCode':_0x1e16ff[_0x4655e2(0x1df)],'title':_0x20ea21[_0x4655e2(0x1db)]},'before':null,'after':plannedAfter(_0x1e16ff,_0x20ea21),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x4655e2(0x1e5)+JSON['stringify'](_0x20ea21[_0x4655e2(0x1db)])+_0x4655e2(0x1ef)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x545a9a){const _0x541b83=a102_0x55449a,_0x3403ad=await prepareCreate(_0x545a9a);let _0x298d6f,_0x32955a=![];try{const _0x491298=await createEnterpriseKnowledgeBase(_0x545a9a['cookie'],{'appCode':_0x545a9a['appCode'],'title':_0x3403ad[_0x541b83(0x1db)],'content':_0x3403ad[_0x541b83(0x1e0)][_0x541b83(0x1e0)]});assertCompanyKnowledgeBase(_0x491298,_0x545a9a[_0x541b83(0x1df)],_0x491298['id']),_0x298d6f=_0x491298['id'];}catch(_0x47a30b){if(!isPlatformTransportFailure(_0x47a30b))throw _0x47a30b;_0x32955a=!![];}if(_0x298d6f===undefined){const _0x3d55af=await verifyKbMutationReadback(_0x541b83(0x1d2),!![],()=>fetchAllCompanyKnowledgeBases(_0x545a9a,{'title':_0x3403ad['title']})),_0x23dd7b=findExactCompanyKnowledgeBases(_0x3d55af,_0x545a9a[_0x541b83(0x1df)],_0x3403ad[_0x541b83(0x1db)]);if(_0x23dd7b[_0x541b83(0x1e8)]!==0x1)throw kbError(_0x541b83(0x1d3),_0x541b83(0x1d1)+_0x23dd7b[_0x541b83(0x1e8)]+'.',_0x541b83(0x1d0));_0x298d6f=_0x23dd7b[0x0]['id'];}const _0x1aa57a=await verifyKbMutationReadback(_0x541b83(0x1d2),_0x32955a,()=>requireKb(_0x545a9a,_0x298d6f)),_0x1557fb=verifyCreatedState(_0x545a9a,_0x3403ad,_0x1aa57a),_0x510c0e=_0x32955a?['Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.']:[];return{'ok':!![],'data':{'operation':_0x541b83(0x1d2),'selector':{'id':_0x1557fb['id'],'scope':'company','appCode':_0x1557fb[_0x541b83(0x1df)]},'before':null,'after':_0x1557fb,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x510c0e,'verification':{'status':_0x541b83(0x1fb),'recoveredAfterUnknownResponse':_0x32955a,'lookupCommand':_0x541b83(0x1ce)+_0x1557fb['id']+_0x541b83(0x1ef)}},'message':'Created\x20company\x20knowledge\x20base\x20'+_0x1557fb['id']+_0x541b83(0x1cf)+_0x1557fb['appCode']};}};
1
+ const a102_0x146dde=a102_0x142f;(function(_0x386e7e,_0x3711f5){const _0x121c9c=a102_0x142f,_0x267f00=_0x386e7e();while(!![]){try{const _0x75bd39=-parseInt(_0x121c9c(0x14a))/0x1*(-parseInt(_0x121c9c(0x13d))/0x2)+parseInt(_0x121c9c(0x11b))/0x3+-parseInt(_0x121c9c(0x124))/0x4*(parseInt(_0x121c9c(0x12c))/0x5)+parseInt(_0x121c9c(0x149))/0x6+parseInt(_0x121c9c(0x12e))/0x7*(parseInt(_0x121c9c(0x11a))/0x8)+-parseInt(_0x121c9c(0x137))/0x9*(parseInt(_0x121c9c(0x13a))/0xa)+-parseInt(_0x121c9c(0x127))/0xb;if(_0x75bd39===_0x3711f5)break;else _0x267f00['push'](_0x267f00['shift']());}catch(_0x298c29){_0x267f00['push'](_0x267f00['shift']());}}}(a102_0x5892,0xad286));function a102_0x142f(_0xbb78b6,_0x180bea){_0xbb78b6=_0xbb78b6-0x119;const _0x589210=a102_0x5892();let _0x142ffc=_0x589210[_0xbb78b6];return _0x142ffc;}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_0x146dde(0x11d);function readCreateInput(_0x324523){const _0xa20f3=a102_0x146dde,_0x16e7a6=_0x324523['str']('title')[_0xa20f3(0x146)]();if(!_0x16e7a6)throw kbError(_0xa20f3(0x122),'--title\x20is\x20required.');const _0x5213ef=_0x324523[_0xa20f3(0x12b)]('file')[_0xa20f3(0x146)]();if(!_0x5213ef)throw kbError(_0xa20f3(0x13e),_0xa20f3(0x123),_0xa20f3(0x140));return{'title':_0x16e7a6,'file':_0x5213ef};}async function prepareCreate(_0xa3bc8){const _0x4fbc1f=a102_0x146dde,_0x54bc9c=readCreateInput(_0xa3bc8),_0x37d49f=await readKbFile(_0x54bc9c['file']),_0x20ac46=await fetchAllCompanyKnowledgeBases(_0xa3bc8,{'title':_0x54bc9c[_0x4fbc1f(0x125)]}),_0x103cde=findExactCompanyKnowledgeBases(_0x20ac46,_0xa3bc8['appCode'],_0x54bc9c[_0x4fbc1f(0x125)]);if(_0x103cde[_0x4fbc1f(0x13f)]>0x0)throw kbError(_0x4fbc1f(0x136),_0x4fbc1f(0x138)+_0xa3bc8[_0x4fbc1f(0x148)]+_0x4fbc1f(0x130)+_0x54bc9c['title']+'.','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20'+_0x103cde[0x0]['id']+_0x4fbc1f(0x141));return{..._0x54bc9c,'content':_0x37d49f};}function plannedAfter(_0x5a4786,_0x83ee44){const _0x128b37=a102_0x146dde;return{'scope':_0x128b37(0x13c),'appCode':_0x5a4786[_0x128b37(0x148)],'title':_0x83ee44[_0x128b37(0x125)],'contentByteSize':_0x83ee44['content']['byteSize'],'contentHash':_0x83ee44[_0x128b37(0x131)]['contentHash']};}function a102_0x5892(){const _0x398554=['\x20--format\x20compress','948136MTQBwR','stringify','\x20with\x20title\x20','content','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','kb_create_outcome_unknown','POST','kb_verification_failed','kb_already_exists','18rTyVxj','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','rabetbase\x20kb\x20list\x20--title\x20','2099730bAzXdR','create','company','1563222QxiauT','kb_file_required','length','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','\x20--format\x20compress`\x20before\x20choosing\x20update.','\x20for\x20','write','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','string','trim','contentHash','appCode','2136696PPhIQj','1bMPTRx','Created\x20company\x20knowledge\x20base\x20','24MVUADb','2272230sAkGDf','Company\x20knowledge\x20base\x20','/admin/knowledge-base/create','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','file','cookie','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','kb_title_required','--file\x20is\x20required.','3890792qggAfX','title','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','2195413aLurav','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','verified','Knowledge-base\x20title','str','5dmtjFs'];a102_0x5892=function(){return _0x398554;};return a102_0x5892();}function verifyCreatedState(_0x33a987,_0x59ed18,_0x3151ea){const _0x50a634=a102_0x146dde;assertCompanyKnowledgeBase(_0x3151ea,_0x33a987[_0x50a634(0x148)],_0x3151ea['id']);const _0x254090=inspectKbContent(_0x3151ea[_0x50a634(0x131)]);if(_0x3151ea[_0x50a634(0x125)]!==_0x59ed18[_0x50a634(0x125)]||_0x254090['contentHash']!==_0x59ed18[_0x50a634(0x131)][_0x50a634(0x147)])throw kbError(_0x50a634(0x135),_0x50a634(0x11c)+_0x3151ea['id']+_0x50a634(0x121),_0x50a634(0x11e)+_0x3151ea['id']+'\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.');return projectKb(_0x3151ea);}export const kbCreate={'service':'kb','command':'create','description':a102_0x146dde(0x144),'risk':a102_0x146dde(0x143),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'title','type':'string','required':!![],'description':a102_0x146dde(0x12a)},{'name':a102_0x146dde(0x11f),'type':a102_0x146dde(0x145),'required':!![],'description':a102_0x146dde(0x128)}],async 'validate'(_0xb0331){readCreateInput(_0xb0331);},async 'dryRun'(_0x16b190){const _0x1c60a3=a102_0x146dde,_0x3abcd4=await prepareCreate(_0x16b190);return asDryRunResult({'operation':_0x1c60a3(0x13b),'selector':{'scope':_0x1c60a3(0x13c),'appCode':_0x16b190['appCode'],'title':_0x3abcd4[_0x1c60a3(0x125)]},'before':null,'after':plannedAfter(_0x16b190,_0x3abcd4),'dryRun':!![],'backend':{'method':_0x1c60a3(0x134),'path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x1c60a3(0x139)+JSON[_0x1c60a3(0x12f)](_0x3abcd4[_0x1c60a3(0x125)])+_0x1c60a3(0x12d)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x582f31){const _0x15c20a=a102_0x146dde,_0x4de0b9=await prepareCreate(_0x582f31);let _0x1a0172,_0x52c82a=![];try{const _0x5f1ac4=await createEnterpriseKnowledgeBase(_0x582f31[_0x15c20a(0x120)],{'appCode':_0x582f31['appCode'],'title':_0x4de0b9[_0x15c20a(0x125)],'content':_0x4de0b9[_0x15c20a(0x131)][_0x15c20a(0x131)]});assertCompanyKnowledgeBase(_0x5f1ac4,_0x582f31[_0x15c20a(0x148)],_0x5f1ac4['id']),_0x1a0172=_0x5f1ac4['id'];}catch(_0xbab261){if(!isPlatformTransportFailure(_0xbab261))throw _0xbab261;_0x52c82a=!![];}if(_0x1a0172===undefined){const _0x56b1b3=await verifyKbMutationReadback('create',!![],()=>fetchAllCompanyKnowledgeBases(_0x582f31,{'title':_0x4de0b9[_0x15c20a(0x125)]})),_0x4d231d=findExactCompanyKnowledgeBases(_0x56b1b3,_0x582f31[_0x15c20a(0x148)],_0x4de0b9['title']);if(_0x4d231d[_0x15c20a(0x13f)]!==0x1)throw kbError(_0x15c20a(0x133),'Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20'+_0x4d231d[_0x15c20a(0x13f)]+'.',_0x15c20a(0x126));_0x1a0172=_0x4d231d[0x0]['id'];}const _0xdee207=await verifyKbMutationReadback(_0x15c20a(0x13b),_0x52c82a,()=>requireKb(_0x582f31,_0x1a0172)),_0x30bccb=verifyCreatedState(_0x582f31,_0x4de0b9,_0xdee207),_0x5aa733=_0x52c82a?[_0x15c20a(0x132)]:[];return{'ok':!![],'data':{'operation':_0x15c20a(0x13b),'selector':{'id':_0x30bccb['id'],'scope':'company','appCode':_0x30bccb[_0x15c20a(0x148)]},'before':null,'after':_0x30bccb,'dryRun':![],'backend':{'method':_0x15c20a(0x134),'path':CREATE_PATH},'warnings':_0x5aa733,'verification':{'status':_0x15c20a(0x129),'recoveredAfterUnknownResponse':_0x52c82a,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x30bccb['id']+_0x15c20a(0x12d)}},'message':_0x15c20a(0x119)+_0x30bccb['id']+_0x15c20a(0x142)+_0x30bccb['appCode']};}};