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

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 (298) 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 +3 -2
  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.manifest.json +4 -3
@@ -1 +1 @@
1
- const a88_0x5cd9d0=a88_0x2435;function a88_0x2435(_0x56ef92,_0xfae70b){_0x56ef92=_0x56ef92-0x79;const _0x349766=a88_0x3497();let _0x2435dd=_0x349766[_0x56ef92];return _0x2435dd;}(function(_0x2e40a4,_0x351fe5){const _0x41daeb=a88_0x2435,_0x1f884f=_0x2e40a4();while(!![]){try{const _0x27f146=parseInt(_0x41daeb(0x9e))/0x1+-parseInt(_0x41daeb(0x98))/0x2+parseInt(_0x41daeb(0x7d))/0x3+-parseInt(_0x41daeb(0xae))/0x4*(-parseInt(_0x41daeb(0xa1))/0x5)+-parseInt(_0x41daeb(0xa9))/0x6*(-parseInt(_0x41daeb(0xa0))/0x7)+parseInt(_0x41daeb(0x9c))/0x8*(parseInt(_0x41daeb(0x7a))/0x9)+-parseInt(_0x41daeb(0x88))/0xa*(parseInt(_0x41daeb(0x95))/0xb);if(_0x27f146===_0x351fe5)break;else _0x1f884f['push'](_0x1f884f['shift']());}catch(_0x2b0f1e){_0x1f884f['push'](_0x1f884f['shift']());}}}(a88_0x3497,0x3d633));import{getDbLiveTableDiff,getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=[a88_0x5cd9d0(0xb1),a88_0x5cd9d0(0x86),a88_0x5cd9d0(0xa8),'ALREADY_ANALYZED'];export const dbDiff={'service':'db','command':a88_0x5cd9d0(0xad),'description':a88_0x5cd9d0(0xa5),'risk':a88_0x5cd9d0(0xa4),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x5cd9d0(0xaf),'type':a88_0x5cd9d0(0x9a),'enum':[a88_0x5cd9d0(0xad),'all'],'default':'diff','description':'diff\x20reads\x20changed\x20tables\x20from\x20the\x20server-managed\x20result;\x20all\x20reads\x20every\x20table\x20from\x20live\x20pagination'},{'name':a88_0x5cd9d0(0x80),'type':a88_0x5cd9d0(0x9a),'description':a88_0x5cd9d0(0x89)},{'name':'page','type':a88_0x5cd9d0(0x94),'description':a88_0x5cd9d0(0x97),'default':0x1},{'name':a88_0x5cd9d0(0x9d),'type':a88_0x5cd9d0(0x94),'description':'Page\x20size','default':0x14},{'name':a88_0x5cd9d0(0xac),'type':'boolean','description':a88_0x5cd9d0(0x92)},{'name':a88_0x5cd9d0(0x7e),'type':a88_0x5cd9d0(0x8f),'description':a88_0x5cd9d0(0xa6)}],async 'execute'(_0x4a60d2){const _0x5ba6f2=a88_0x5cd9d0,_0x30ba39=_0x4a60d2[_0x5ba6f2(0xb0)]('id'),_0x521935=_0x4a60d2['str'](_0x5ba6f2(0xaf))||_0x5ba6f2(0xad),_0x4d23f9=_0x4a60d2[_0x5ba6f2(0x8b)]('all'),_0x43111b=_0x4a60d2['bool'](_0x5ba6f2(0x7e)),_0x5d6348=_0x4d23f9?0x1:_0x4a60d2['num'](_0x5ba6f2(0x85),0x1)||0x1,_0x454b60=_0x4d23f9?ALL_PAGE_SIZE:_0x4a60d2[_0x5ba6f2(0xb0)](_0x5ba6f2(0x9d),0x14)||0x14,_0x52d823=_0x4a60d2[_0x5ba6f2(0xa3)](_0x5ba6f2(0x80))||undefined,_0x301526=_0x521935===_0x5ba6f2(0xac)?getDbLiveTableDiff:getDbTableDiff,_0x54d4a7=_0x4d23f9?await getAllDbTableDiff(_0x301526,_0x4a60d2[_0x5ba6f2(0x90)],_0x30ba39,_0x52d823):await _0x301526(_0x4a60d2[_0x5ba6f2(0x90)],_0x30ba39,{'pageIndex':_0x5d6348,'pageSize':_0x454b60,'tableName':_0x52d823}),_0x590ed8=_0x54d4a7[_0x5ba6f2(0x8c)],_0x5ed282=_0x43111b?_0x590ed8[_0x5ba6f2(0x7f)](_0x54facb=>_0x54facb['diffType']!==_0x5ba6f2(0x99)):_0x590ed8,_0xb90a44=Object['fromEntries'](DIFF_TYPES[_0x5ba6f2(0x8e)](_0x47c043=>[_0x47c043,_0x590ed8[_0x5ba6f2(0x7f)](_0x2e5b90=>_0x2e5b90['diffType']===_0x47c043)[_0x5ba6f2(0x96)]])),_0x57d5f9=_0x590ed8['filter'](_0x5db91a=>_0x5db91a[_0x5ba6f2(0x93)]===_0x5ba6f2(0xb1)||_0x5db91a[_0x5ba6f2(0x93)]===_0x5ba6f2(0x86))[_0x5ba6f2(0x8e)](_0x50b82c=>_0x50b82c[_0x5ba6f2(0xab)]),_0x575416=_0x590ed8[_0x5ba6f2(0x7f)](_0x4e82f3=>_0x4e82f3[_0x5ba6f2(0x93)]===_0x5ba6f2(0xa8))['map'](_0x4d80e0=>_0x4d80e0['tableName']),_0x233cea=_0x590ed8[_0x5ba6f2(0x7f)](_0x3f56c8=>_0x3f56c8[_0x5ba6f2(0x93)]==='MODIFIED_TABLE')[_0x5ba6f2(0x8e)](_0x44da2e=>({'tableName':_0x44da2e[_0x5ba6f2(0xab)],'addedColumns':_0x44da2e[_0x5ba6f2(0x8d)]?.[_0x5ba6f2(0xaa)]??[],'deletedColumns':_0x44da2e[_0x5ba6f2(0x8d)]?.[_0x5ba6f2(0x9b)]??[],'modifiedColumns':_0x44da2e[_0x5ba6f2(0x8d)]?.[_0x5ba6f2(0x7b)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x30ba39,'view':_0x521935,'page':_0x5d6348,'pageSize':_0x454b60,'totalCount':_0x54d4a7[_0x5ba6f2(0x7c)],...typeof _0x54d4a7[_0x5ba6f2(0xa7)]===_0x5ba6f2(0x94)?{'physicalTableCount':_0x54d4a7[_0x5ba6f2(0xa7)]}:{},...typeof _0x54d4a7['datasetTableCount']===_0x5ba6f2(0x94)?{'datasetTableCount':_0x54d4a7[_0x5ba6f2(0x81)]}:{},..._0x54d4a7[_0x5ba6f2(0x9f)]?{'summary':_0x54d4a7['summary']}:{},'summaryByType':_0xb90a44,'toAnalyzeTables':_0x57d5f9,'deletedTables':_0x575416,'modifiedFieldDiffs':_0x233cea,'tables':_0x5ed282,'tableList':_0x5ed282},'message':_0x5ed282[_0x5ba6f2(0x96)]+'\x20'+(_0x521935===_0x5ba6f2(0xad)?_0x5ba6f2(0x82):'total')+_0x5ba6f2(0x84)+_0x54d4a7['totalCount']+_0x5ba6f2(0x87)+_0x30ba39+')'};}};async function getAllDbTableDiff(_0x3c7f7d,_0x224f1e,_0x51973f,_0x530ad3){const _0x1c7dcc=a88_0x5cd9d0,_0x14204c=new Map();let _0xe2959a=0x1,_0x58adbb=null;while(!![]){_0x58adbb=await _0x3c7f7d(_0x224f1e,_0x51973f,{'pageIndex':_0xe2959a,'pageSize':ALL_PAGE_SIZE,'tableName':_0x530ad3});const _0x19a9f8=_0x14204c[_0x1c7dcc(0xa2)];for(const _0x43a168 of _0x58adbb[_0x1c7dcc(0x8c)]){_0x14204c[_0x1c7dcc(0x83)](_0x43a168[_0x1c7dcc(0xab)],_0x43a168);}if(_0x14204c[_0x1c7dcc(0xa2)]>=_0x58adbb['totalCount'])break;if(_0x58adbb[_0x1c7dcc(0x8c)][_0x1c7dcc(0x96)]===0x0||_0x14204c[_0x1c7dcc(0xa2)]===_0x19a9f8)throw CliErrors['validation'](_0x1c7dcc(0x91)+_0x14204c[_0x1c7dcc(0xa2)]+_0x1c7dcc(0x79)+_0x58adbb[_0x1c7dcc(0x7c)]+'\x20row(s).');_0xe2959a+=0x1;}return{'totalCount':_0x58adbb?.[_0x1c7dcc(0x7c)]??0x0,...typeof _0x58adbb?.[_0x1c7dcc(0xa7)]===_0x1c7dcc(0x94)?{'physicalTableCount':_0x58adbb[_0x1c7dcc(0xa7)]}:{},...typeof _0x58adbb?.['datasetTableCount']===_0x1c7dcc(0x94)?{'datasetTableCount':_0x58adbb[_0x1c7dcc(0x81)]}:{},..._0x58adbb?.[_0x1c7dcc(0x9f)]?{'summary':_0x58adbb[_0x1c7dcc(0x9f)]}:{},'tableList':[..._0x14204c[_0x1c7dcc(0x8a)]()]};}function a88_0x3497(){const _0x33de6f=['\x20of\x20','243SaTpiH','modifiedColumns','totalCount','757656TreKiK','changed-only','filter','table','datasetTableCount','changed','set','\x20table\x20row(s),\x20total\x20','page','MODIFIED_TABLE','\x20(db\x20link\x20','60UEavHg','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','values','bool','tableList','fieldDiff','map','boolean','appCode','Incomplete\x20db\x20diff\x20pagination:\x20collected\x20','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','diffType','number','2025111PtNGaL','length','Page\x20index\x20(1-based)','464124htSOwe','ALREADY_ANALYZED','string','deletedColumns','135688bVkSUe','pagesize','332996FGeTkX','summary','7uRFsUZ','2421845pAgLYj','size','str','read','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables','physicalTableCount','DELETED_TABLE','361482uIuRYC','addedColumns','tableName','all','diff','4oInhpo','view','num','NEW_TABLE'];a88_0x3497=function(){return _0x33de6f;};return a88_0x3497();}
1
+ function a88_0x2bbe(_0x2aa62e,_0x2d54cb){_0x2aa62e=_0x2aa62e-0x19a;const _0x5f578b=a88_0x5f57();let _0x2bbec8=_0x5f578b[_0x2aa62e];return _0x2bbec8;}const a88_0x10913b=a88_0x2bbe;function a88_0x5f57(){const _0x3b6b18=['num','2547054IDXKqe','changed','MODIFIED_TABLE','tableName','totalCount','2456650CtKxuD','bool','189064NXBTfq','diff\x20reads\x20changed\x20tables\x20from\x20the\x20server-managed\x20result;\x20all\x20reads\x20every\x20table\x20from\x20live\x20pagination','fieldDiff','pagesize','560880GfIeAX','\x20of\x20','fromEntries','7XbsScr','values','modifiedColumns','length','number','set','1DjnGas','2144010gKBnQr','Fetch\x20and\x20aggregate\x20every\x20page\x20(overrides\x20--page\x20and\x20--pagesize)','all','page','NEW_TABLE','\x20row(s).','datasetTableCount','Page\x20index\x20(1-based)','tableList','filter','table','view','physicalTableCount','Page\x20size','212472dUgcJj','string','391562IHBguE','Incomplete\x20db\x20diff\x20pagination:\x20collected\x20','map','ALREADY_ANALYZED','Compare\x20datasets\x20with\x20physical\x20database\x20tables\x20and\x20show\x20schema\x20drift','boolean','appCode','diff','summary','diffType','189pYfGcX','changed-only','size','DELETED_TABLE','total','str'];a88_0x5f57=function(){return _0x3b6b18;};return a88_0x5f57();}(function(_0x19b795,_0x502140){const _0x38a471=a88_0x2bbe,_0x142818=_0x19b795();while(!![]){try{const _0x560d44=parseInt(_0x38a471(0x1b3))/0x1*(-parseInt(_0x38a471(0x1c4))/0x2)+-parseInt(_0x38a471(0x1c2))/0x3+-parseInt(_0x38a471(0x1aa))/0x4+parseInt(_0x38a471(0x1b4))/0x5+-parseInt(_0x38a471(0x19f))/0x6*(parseInt(_0x38a471(0x1ad))/0x7)+parseInt(_0x38a471(0x1a6))/0x8*(parseInt(_0x38a471(0x1ce))/0x9)+parseInt(_0x38a471(0x1a4))/0xa;if(_0x560d44===_0x502140)break;else _0x142818['push'](_0x142818['shift']());}catch(_0x22c7ce){_0x142818['push'](_0x142818['shift']());}}}(a88_0x5f57,0x52de2));import{getDbLiveTableDiff,getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';const ALL_PAGE_SIZE=0x64,DIFF_TYPES=['NEW_TABLE',a88_0x10913b(0x1a1),a88_0x10913b(0x19b),'ALREADY_ANALYZED'];export const dbDiff={'service':'db','command':'diff','description':a88_0x10913b(0x1c8),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'view','type':a88_0x10913b(0x1c3),'enum':['diff','all'],'default':'diff','description':a88_0x10913b(0x1a7)},{'name':'table','type':a88_0x10913b(0x1c3),'description':'Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)'},{'name':a88_0x10913b(0x1b7),'type':a88_0x10913b(0x1b1),'description':a88_0x10913b(0x1bb),'default':0x1},{'name':a88_0x10913b(0x1a9),'type':a88_0x10913b(0x1b1),'description':a88_0x10913b(0x1c1),'default':0x14},{'name':a88_0x10913b(0x1b6),'type':a88_0x10913b(0x1c9),'description':a88_0x10913b(0x1b5)},{'name':a88_0x10913b(0x1cf),'type':a88_0x10913b(0x1c9),'description':'Exclude\x20ALREADY_ANALYZED\x20rows\x20while\x20keeping\x20deleted\x20tables'}],async 'execute'(_0x5e8b63){const _0x36f792=a88_0x10913b,_0x26f485=_0x5e8b63[_0x36f792(0x19e)]('id'),_0x1ce421=_0x5e8b63[_0x36f792(0x19d)](_0x36f792(0x1bf))||_0x36f792(0x1cb),_0x443550=_0x5e8b63[_0x36f792(0x1a5)](_0x36f792(0x1b6)),_0x56d11d=_0x5e8b63[_0x36f792(0x1a5)]('changed-only'),_0x14b585=_0x443550?0x1:_0x5e8b63[_0x36f792(0x19e)](_0x36f792(0x1b7),0x1)||0x1,_0x482bc3=_0x443550?ALL_PAGE_SIZE:_0x5e8b63[_0x36f792(0x19e)](_0x36f792(0x1a9),0x14)||0x14,_0x25eb8a=_0x5e8b63['str'](_0x36f792(0x1be))||undefined,_0x28929b=_0x1ce421==='all'?getDbLiveTableDiff:getDbTableDiff,_0x4f1b2a=_0x443550?await getAllDbTableDiff(_0x28929b,_0x5e8b63[_0x36f792(0x1ca)],_0x26f485,_0x25eb8a):await _0x28929b(_0x5e8b63[_0x36f792(0x1ca)],_0x26f485,{'pageIndex':_0x14b585,'pageSize':_0x482bc3,'tableName':_0x25eb8a}),_0x44e3f6=_0x4f1b2a['tableList'],_0x187003=_0x56d11d?_0x44e3f6['filter'](_0xfab54f=>_0xfab54f[_0x36f792(0x1cd)]!==_0x36f792(0x1c7)):_0x44e3f6,_0x280762=Object[_0x36f792(0x1ac)](DIFF_TYPES[_0x36f792(0x1c6)](_0x1a9bea=>[_0x1a9bea,_0x44e3f6[_0x36f792(0x1bd)](_0x1cf841=>_0x1cf841[_0x36f792(0x1cd)]===_0x1a9bea)[_0x36f792(0x1b0)]])),_0x3d6b9f=_0x44e3f6[_0x36f792(0x1bd)](_0x5cd87c=>_0x5cd87c[_0x36f792(0x1cd)]===_0x36f792(0x1b8)||_0x5cd87c[_0x36f792(0x1cd)]==='MODIFIED_TABLE')['map'](_0x2b15f1=>_0x2b15f1[_0x36f792(0x1a2)]),_0x5ba033=_0x44e3f6[_0x36f792(0x1bd)](_0x557b63=>_0x557b63[_0x36f792(0x1cd)]===_0x36f792(0x19b))[_0x36f792(0x1c6)](_0x5dc038=>_0x5dc038[_0x36f792(0x1a2)]),_0x164f43=_0x44e3f6[_0x36f792(0x1bd)](_0x501e32=>_0x501e32[_0x36f792(0x1cd)]===_0x36f792(0x1a1))[_0x36f792(0x1c6)](_0x56dde2=>({'tableName':_0x56dde2[_0x36f792(0x1a2)],'addedColumns':_0x56dde2[_0x36f792(0x1a8)]?.['addedColumns']??[],'deletedColumns':_0x56dde2[_0x36f792(0x1a8)]?.['deletedColumns']??[],'modifiedColumns':_0x56dde2[_0x36f792(0x1a8)]?.[_0x36f792(0x1af)]??[]}));return{'ok':!![],'data':{'dbLinkId':_0x26f485,'view':_0x1ce421,'page':_0x14b585,'pageSize':_0x482bc3,'totalCount':_0x4f1b2a[_0x36f792(0x1a3)],...typeof _0x4f1b2a[_0x36f792(0x1c0)]===_0x36f792(0x1b1)?{'physicalTableCount':_0x4f1b2a[_0x36f792(0x1c0)]}:{},...typeof _0x4f1b2a[_0x36f792(0x1ba)]===_0x36f792(0x1b1)?{'datasetTableCount':_0x4f1b2a[_0x36f792(0x1ba)]}:{},..._0x4f1b2a['summary']?{'summary':_0x4f1b2a[_0x36f792(0x1cc)]}:{},'summaryByType':_0x280762,'toAnalyzeTables':_0x3d6b9f,'deletedTables':_0x5ba033,'modifiedFieldDiffs':_0x164f43,'tables':_0x187003,'tableList':_0x187003},'message':_0x187003[_0x36f792(0x1b0)]+'\x20'+(_0x1ce421===_0x36f792(0x1cb)?_0x36f792(0x1a0):_0x36f792(0x19c))+'\x20table\x20row(s),\x20total\x20'+_0x4f1b2a['totalCount']+'\x20(db\x20link\x20'+_0x26f485+')'};}};async function getAllDbTableDiff(_0x113fc4,_0x2491b5,_0x1fc098,_0xced3b6){const _0xb642f5=a88_0x10913b,_0x458b90=new Map();let _0x138ca6=0x1,_0x5a93f3=null;while(!![]){_0x5a93f3=await _0x113fc4(_0x2491b5,_0x1fc098,{'pageIndex':_0x138ca6,'pageSize':ALL_PAGE_SIZE,'tableName':_0xced3b6});const _0x21a474=_0x458b90['size'];for(const _0x1db0b5 of _0x5a93f3[_0xb642f5(0x1bc)]){_0x458b90[_0xb642f5(0x1b2)](_0x1db0b5['tableName'],_0x1db0b5);}if(_0x458b90[_0xb642f5(0x19a)]>=_0x5a93f3[_0xb642f5(0x1a3)])break;if(_0x5a93f3['tableList'][_0xb642f5(0x1b0)]===0x0||_0x458b90['size']===_0x21a474)throw CliErrors['validation'](_0xb642f5(0x1c5)+_0x458b90[_0xb642f5(0x19a)]+_0xb642f5(0x1ab)+_0x5a93f3['totalCount']+_0xb642f5(0x1b9));_0x138ca6+=0x1;}return{'totalCount':_0x5a93f3?.[_0xb642f5(0x1a3)]??0x0,...typeof _0x5a93f3?.[_0xb642f5(0x1c0)]===_0xb642f5(0x1b1)?{'physicalTableCount':_0x5a93f3[_0xb642f5(0x1c0)]}:{},...typeof _0x5a93f3?.['datasetTableCount']===_0xb642f5(0x1b1)?{'datasetTableCount':_0x5a93f3[_0xb642f5(0x1ba)]}:{},..._0x5a93f3?.[_0xb642f5(0x1cc)]?{'summary':_0x5a93f3['summary']}:{},'tableList':[..._0x458b90[_0xb642f5(0x1ae)]()]};}
@@ -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(_0x4ae514,_0xff890d){const _0x48b8e5=a89_0x3f09,_0xb79a13=_0x4ae514();while(!![]){try{const _0x2100b1=parseInt(_0x48b8e5(0x1cc))/0x1+-parseInt(_0x48b8e5(0x1ca))/0x2*(-parseInt(_0x48b8e5(0x1cb))/0x3)+parseInt(_0x48b8e5(0x1c9))/0x4*(-parseInt(_0x48b8e5(0x1cd))/0x5)+-parseInt(_0x48b8e5(0x1d2))/0x6+parseInt(_0x48b8e5(0x1d1))/0x7+parseInt(_0x48b8e5(0x1ce))/0x8*(parseInt(_0x48b8e5(0x1d3))/0x9)+parseInt(_0x48b8e5(0x1cf))/0xa*(-parseInt(_0x48b8e5(0x1d0))/0xb);if(_0x2100b1===_0xff890d)break;else _0xb79a13['push'](_0xb79a13['shift']());}catch(_0x6fc6c1){_0xb79a13['push'](_0xb79a13['shift']());}}}(a89_0x5dfb,0x9792e));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a89_0x5dfb(){const _0x16616d=['1118986fQaCpJ','4056493ltOYnD','4461042MAcYet','27MdPLvB','1014916JvvXSs','497408ixbIML','12cIlCdn','691478stUCkO','5UGlCpm','171656GsxahQ','70ZwNEXM'];a89_0x5dfb=function(){return _0x16616d;};return a89_0x5dfb();}import{dbDelete}from'../../commands/db/delete.js';function a89_0x3f09(_0x5bbf10,_0x1ada0e){_0x5bbf10=_0x5bbf10-0x1c9;const _0x5dfb4b=a89_0x5dfb();let _0x3f097b=_0x5dfb4b[_0x5bbf10];return _0x3f097b;}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeBatchPlan}from'../../commands/db/analyze-batch-plan.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';import{dbDiffRefreshStart}from'../../commands/db/diff-refresh-start.js';import{dbDiffRefreshStatus}from'../../commands/db/diff-refresh-status.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeBatchPlan,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff,dbDiffRefreshStart,dbDiffRefreshStatus];
@@ -1 +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_0x123d12=a90_0x40e1;(function(_0x4f8190,_0x560737){const _0x47eea5=a90_0x40e1,_0x18feb4=_0x4f8190();while(!![]){try{const _0xce9843=-parseInt(_0x47eea5(0x16d))/0x1*(parseInt(_0x47eea5(0x16c))/0x2)+parseInt(_0x47eea5(0x16b))/0x3*(parseInt(_0x47eea5(0x168))/0x4)+parseInt(_0x47eea5(0x15a))/0x5*(-parseInt(_0x47eea5(0x163))/0x6)+parseInt(_0x47eea5(0x157))/0x7*(-parseInt(_0x47eea5(0x159))/0x8)+-parseInt(_0x47eea5(0x16a))/0x9*(parseInt(_0x47eea5(0x162))/0xa)+-parseInt(_0x47eea5(0x158))/0xb+parseInt(_0x47eea5(0x165))/0xc;if(_0xce9843===_0x560737)break;else _0x18feb4['push'](_0x18feb4['shift']());}catch(_0x2fd72f){_0x18feb4['push'](_0x18feb4['shift']());}}}(a90_0x3c60,0x7966d));function a90_0x3c60(){const _0x487cce=['pagesize','5494338ntxIJz','21SPNiKJ','4hTWLJS','246688EQhCfc','length','DB_TABLE','Page\x20size','read','appCode','all','686byfaER','679877vkjIGj','39304QliSjm','330865YZBBaU','list','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','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','Found\x20','\x20database\x20connection(s)','map','Page\x20index\x20(1-based)','10eWEYCB','30rhppCe','num','17882196wppNgI','number','page','562904YrFQec'];a90_0x3c60=function(){return _0x487cce;};return a90_0x3c60();}import{listDatasets,listDbLinks}from'../../core/api-client.js';function a90_0x40e1(_0x225cdf,_0x52f0ca){_0x225cdf=_0x225cdf-0x151;const _0x3c60ed=a90_0x3c60();let _0x40e12f=_0x3c60ed[_0x225cdf];return _0x40e12f;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildDbDatasetDependency,sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a90_0x123d12(0x15b),'description':a90_0x123d12(0x15d),'risk':a90_0x123d12(0x154),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a90_0x123d12(0x167),'type':a90_0x123d12(0x166),'description':a90_0x123d12(0x161),'default':0x1},{'name':a90_0x123d12(0x169),'type':a90_0x123d12(0x166),'description':a90_0x123d12(0x153),'default':0x64}],async 'execute'(_0x3951db){const _0x1b389f=a90_0x123d12,_0x28d95d=_0x3951db['num'](_0x1b389f(0x167),0x1)||0x1,_0x3238b2=_0x3951db[_0x1b389f(0x164)]('pagesize',0x64)||0x64,[{items:_0x5a46e0,paging:_0x48433b},_0x3ade5b]=await Promise[_0x1b389f(0x156)]([listDbLinks(_0x3951db[_0x1b389f(0x155)],{'currentPage':_0x28d95d,'pageSize':_0x3238b2}),listDatasets(_0x3951db['appCode'],{'source':_0x1b389f(0x152)})]),_0x34089f=_0x5a46e0[_0x1b389f(0x160)](_0x11c957=>({...sanitizeDbLinkForOutput(_0x11c957),'datasetDependency':buildDbDatasetDependency(_0x11c957,_0x3ade5b)['datasetDependency']})),_0x2912a6=_0x48433b?_0x48433b:{'currentPage':_0x28d95d,'pageSize':_0x3238b2,'rowsOnPage':_0x34089f[_0x1b389f(0x151)],'totalCount':null,'note':_0x1b389f(0x15c)};return{'ok':!![],'data':{'connections':_0x34089f,'paging':_0x2912a6},'message':_0x1b389f(0x15e)+_0x34089f[_0x1b389f(0x151)]+_0x1b389f(0x15f)};}};
@@ -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(_0x351456,_0xbc1e97){const _0x5d89b3=a91_0x1a66,_0xb878de=_0x351456();while(!![]){try{const _0x2a33f5=-parseInt(_0x5d89b3(0x1c5))/0x1+-parseInt(_0x5d89b3(0x1c0))/0x2+parseInt(_0x5d89b3(0x1ce))/0x3+-parseInt(_0x5d89b3(0x1d0))/0x4*(-parseInt(_0x5d89b3(0x1d5))/0x5)+parseInt(_0x5d89b3(0x1b1))/0x6*(parseInt(_0x5d89b3(0x1d2))/0x7)+parseInt(_0x5d89b3(0x1c7))/0x8*(-parseInt(_0x5d89b3(0x1c2))/0x9)+parseInt(_0x5d89b3(0x1cd))/0xa*(-parseInt(_0x5d89b3(0x1bc))/0xb);if(_0x2a33f5===_0xbc1e97)break;else _0xb878de['push'](_0xb878de['shift']());}catch(_0x19c4b3){_0xb878de['push'](_0xb878de['shift']());}}}(a91_0x5e8c,0x34e40));import{testDbLinkConfigConnect}from'../../core/api-client.js';import{getAppBaseUrl}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function shouldRedactKey(_0x286a41){const _0x27920f=a91_0x1a66,_0x176f0b=_0x286a41[_0x27920f(0x1ca)]();if(_0x176f0b===_0x27920f(0x1b8)||_0x176f0b===_0x27920f(0x1d7)||_0x176f0b==='dbpassword')return!![];if(_0x176f0b[_0x27920f(0x1bb)](_0x27920f(0x1b3))||_0x176f0b['includes'](_0x27920f(0x1b6))||_0x176f0b[_0x27920f(0x1bb)]('credential'))return!![];if(_0x176f0b[_0x27920f(0x1bb)]('privatekey')||_0x176f0b[_0x27920f(0x1bb)](_0x27920f(0x1cb)))return!![];if(_0x176f0b===_0x27920f(0x1b7)||_0x176f0b===_0x27920f(0x1d3)||_0x176f0b===_0x27920f(0x1b5))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2a8cee){const _0x532275=a91_0x1a66,_0x139a53={..._0x2a8cee};delete _0x139a53['hasAvailableDo'];for(const _0x7c4ec3 of Object[_0x532275(0x1d4)](_0x139a53)){if(!shouldRedactKey(_0x7c4ec3))continue;const _0x1a3655=_0x139a53[_0x7c4ec3];_0x1a3655!=null&&String(_0x1a3655)[_0x532275(0x1b4)]>0x0&&(_0x139a53[_0x7c4ec3]=_0x532275(0x1cf));}return _0x139a53;}export function sanitizeDbLinkList(_0x2c0af1){const _0x2831bd=a91_0x1a66;return _0x2c0af1[_0x2831bd(0x1ba)](_0x53a559=>sanitizeDbLinkForOutput(_0x53a559));}function a91_0x5e8c(){const _0xbec5a3=['/data/database','passwd','1280082IdNATS','trim','secret','length','jdbcurl','token','authorization','password','apiError','map','includes','2178cwqVuJ','/data/er?dbId=','code','test','814040SZLFSU','The\x20configuration\x20was\x20not\x20saved.\x20Verify\x20the\x20host,\x20credentials,\x20database\x20name,\x20network,\x20and\x20allowlist,\x20or\x20explicitly\x20pass\x20--skip-connection-test.','18mZyvES','Database\x20connection\x20preflight\x20failed.','tableName','62093NfHoUi','dbtableConfig','293072bdgMDk','isFinite','number','toLowerCase','accesskey','dbId','2650Dmmphz','859377tthWOC','[redacted]','415580XLdOJN','name','7vSYVCE','connectionstring','keys','15qUghae'];a91_0x5e8c=function(){return _0xbec5a3;};return a91_0x5e8c();}function a91_0x1a66(_0x2318b3,_0x384b88){_0x2318b3=_0x2318b3-0x1b1;const _0x5e8c78=a91_0x5e8c();let _0x1a6694=_0x5e8c78[_0x2318b3];return _0x1a6694;}export function buildDbDatasetDependency(_0x1ff3ef,_0x4a3abb){const _0xb0a734=a91_0x1a66,_0x3921db=_0x4a3abb['filter'](_0x46ce14=>Number(_0x46ce14[_0xb0a734(0x1c6)]?.[_0xb0a734(0x1cc)])===Number(_0x1ff3ef['id']))['map'](_0x575eaa=>({'id':_0x575eaa['id'],'code':_0x575eaa[_0xb0a734(0x1be)],'name':_0x575eaa[_0xb0a734(0x1d1)],..._0x575eaa[_0xb0a734(0x1c6)]?.[_0xb0a734(0x1c4)]?{'tableName':_0x575eaa[_0xb0a734(0x1c6)][_0xb0a734(0x1c4)]}:{}}));return{'datasetDependency':{'hasDependencies':_0x3921db[_0xb0a734(0x1b4)]>0x0,'activeDatasetCount':_0x3921db[_0xb0a734(0x1b4)]},'datasets':_0x3921db};}export async function assertDbLinkConnectionPreflight(_0x1d36ab){const _0x981d17=a91_0x1a66,_0x4ee399=await testDbLinkConfigConnect(_0x1d36ab);if(_0x4ee399!==!![])throw CliErrors[_0x981d17(0x1b9)](_0x981d17(0x1c3),_0x981d17(0x1c1));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x29d656){const _0x506fe4=a91_0x1a66,_0x46a927=_0x29d656[_0x506fe4(0x1b2)]();if(!_0x46a927)return![];return DB_URL_PATTERN[_0x506fe4(0x1bf)](_0x46a927);}export function buildDbPageLinks(_0x6152a7,_0x599e89){const _0x395f70=a91_0x1a66,_0x47d13a=_0x6152a7?.[_0x395f70(0x1b2)]();if(!_0x47d13a)return undefined;const _0x28a52d=typeof _0x599e89===_0x395f70(0x1c9)?String(_0x599e89):String(_0x599e89??'')[_0x395f70(0x1b2)]();if(!_0x28a52d)return undefined;const _0x338794=Number(_0x28a52d);if(!Number[_0x395f70(0x1c8)](_0x338794)||_0x338794<=0x0)return undefined;const _0x5404e4=getAppBaseUrl(_0x47d13a),_0x4e1de5=encodeURIComponent(String(_0x338794));return{'databasePage':_0x5404e4+_0x395f70(0x1d6),'erPage':_0x5404e4+_0x395f70(0x1bd)+_0x4e1de5};}
@@ -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
+ const a92_0x3df93b=a92_0x403c;(function(_0x514cc3,_0x32fd40){const _0x54bd45=a92_0x403c,_0x241cfd=_0x514cc3();while(!![]){try{const _0x29b5cc=-parseInt(_0x54bd45(0xbc))/0x1+-parseInt(_0x54bd45(0xbe))/0x2+parseInt(_0x54bd45(0xc9))/0x3*(-parseInt(_0x54bd45(0xc5))/0x4)+parseInt(_0x54bd45(0xc8))/0x5*(-parseInt(_0x54bd45(0xc0))/0x6)+parseInt(_0x54bd45(0xc6))/0x7+-parseInt(_0x54bd45(0xc1))/0x8*(parseInt(_0x54bd45(0xc7))/0x9)+parseInt(_0x54bd45(0xc4))/0xa;if(_0x29b5cc===_0x32fd40)break;else _0x241cfd['push'](_0x241cfd['shift']());}catch(_0x528344){_0x241cfd['push'](_0x241cfd['shift']());}}}(a92_0x20f1,0x8fb15));function a92_0x403c(_0x110ba4,_0x20cfe4){_0x110ba4=_0x110ba4-0xbc;const _0x20f1ac=a92_0x20f1();let _0x403c29=_0x20f1ac[_0x110ba4];return _0x403c29;}function a92_0x20f1(){const _0x4f874d=['552ooDTGD','6092583TEBIog','229626HMqpWu','122645NgSABM','4227YyjidP','\x20table(s)\x20on\x20db\x20link\x20','296364IbWqAa','num','325628BhIsQp','appCode','264FfLHRD','16YiyMfj','tables','length','15021200AREpNw'];a92_0x20f1=function(){return _0x4f874d;};return a92_0x20f1();}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_0x3df93b(0xc2),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a8c3c){const _0x55da21=a92_0x3df93b,_0x2836e4=_0x1a8c3c[_0x55da21(0xbd)]('id'),_0x24e05d=await getDbAllTableList(_0x1a8c3c[_0x55da21(0xbf)],_0x2836e4);return{'ok':!![],'data':{'dbLinkId':_0x2836e4,'total':_0x24e05d[_0x55da21(0xc3)],'tables':_0x24e05d},'message':_0x24e05d[_0x55da21(0xc3)]+_0x55da21(0xca)+_0x2836e4};}};
@@ -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
+ const a93_0x3af825=a93_0x2fc7;(function(_0x17573d,_0x594b0f){const _0x4c314f=a93_0x2fc7,_0x49c9bc=_0x17573d();while(!![]){try{const _0x26b1d3=parseInt(_0x4c314f(0x18f))/0x1*(parseInt(_0x4c314f(0x197))/0x2)+parseInt(_0x4c314f(0x185))/0x3+parseInt(_0x4c314f(0x183))/0x4*(parseInt(_0x4c314f(0x18e))/0x5)+-parseInt(_0x4c314f(0x191))/0x6*(parseInt(_0x4c314f(0x184))/0x7)+-parseInt(_0x4c314f(0x198))/0x8*(parseInt(_0x4c314f(0x195))/0x9)+-parseInt(_0x4c314f(0x18d))/0xa*(parseInt(_0x4c314f(0x180))/0xb)+-parseInt(_0x4c314f(0x17f))/0xc;if(_0x26b1d3===_0x594b0f)break;else _0x49c9bc['push'](_0x49c9bc['shift']());}catch(_0x5eb155){_0x49c9bc['push'](_0x49c9bc['shift']());}}}(a93_0x3a7d,0xce4e4));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a93_0x2fc7(_0x5621f3,_0x38a353){_0x5621f3=_0x5621f3-0x17f;const _0x3a7d6e=a93_0x3a7d();let _0x2fc74e=_0x3a7d6e[_0x5621f3];return _0x2fc74e;}function a93_0x3a7d(){const _0x4f2bfb=['306392OkCzee','2552652yhenmP','11QAAMFR','object','error','4wVndFG','26747tychRg','3817242lABhsQ','slice','keys','message','code','Connection\x20OK\x20for\x20db\x20link\x20','msg','\x20(see\x20data.result)','394990ddCUat','7344035nRCBzg','89uLlhhT','success','1170IYIOnY','test','read','num','297VNWhIJ','data','8202yYBPEr'];a93_0x3a7d=function(){return _0x4f2bfb;};return a93_0x3a7d();}function summarizeTestConnectResult(_0x16a284){const _0x2e24e0=a93_0x2fc7;if(_0x16a284===!![]||_0x16a284===![])return{'success':_0x16a284};if(_0x16a284===null||_0x16a284===undefined)return{'type':typeof _0x16a284};if(typeof _0x16a284!==_0x2e24e0(0x181))return{'type':typeof _0x16a284};const _0x47324c=_0x16a284,_0x138690=[_0x2e24e0(0x190),_0x2e24e0(0x188),_0x2e24e0(0x189),_0x2e24e0(0x182),_0x2e24e0(0x18b),_0x2e24e0(0x196)],_0x1d7520={};for(const _0x36b698 of _0x138690){if(_0x36b698 in _0x47324c)_0x1d7520[_0x36b698]=_0x47324c[_0x36b698];}return Object[_0x2e24e0(0x187)](_0x1d7520)['length']===0x0&&(_0x1d7520[_0x2e24e0(0x187)]=Object[_0x2e24e0(0x187)](_0x47324c)[_0x2e24e0(0x186)](0x0,0x14)),_0x1d7520;}export const dbTest={'service':'db','command':a93_0x3af825(0x192),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a93_0x3af825(0x193),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x429442){const _0x141f46=a93_0x3af825,_0x1290fd=_0x429442[_0x141f46(0x194)]('id'),_0x565708=await testDbLinkConnect(_0x1290fd),_0x5e1e01=_0x565708===!![]||typeof _0x565708===_0x141f46(0x181)&&_0x565708!==null&&_0x565708[_0x141f46(0x190)]===!![],_0x2c0767=summarizeTestConnectResult(_0x565708);return{'ok':!![],'data':{'id':_0x1290fd,'connected':Boolean(_0x5e1e01),'result':_0x2c0767},'message':_0x5e1e01?_0x141f46(0x18a)+_0x1290fd:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x1290fd+_0x141f46(0x18c)};}};
@@ -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_0x5dc744=a94_0x1d3f;(function(_0x234fad,_0x179049){const _0x3d7c2e=a94_0x1d3f,_0x4f965e=_0x234fad();while(!![]){try{const _0x456c8e=parseInt(_0x3d7c2e(0xdf))/0x1+-parseInt(_0x3d7c2e(0xda))/0x2*(parseInt(_0x3d7c2e(0xea))/0x3)+parseInt(_0x3d7c2e(0xf2))/0x4*(parseInt(_0x3d7c2e(0xd6))/0x5)+-parseInt(_0x3d7c2e(0xe2))/0x6+parseInt(_0x3d7c2e(0xed))/0x7+parseInt(_0x3d7c2e(0xf5))/0x8+-parseInt(_0x3d7c2e(0xec))/0x9;if(_0x456c8e===_0x179049)break;else _0x4f965e['push'](_0x4f965e['shift']());}catch(_0x252511){_0x4f965e['push'](_0x4f965e['shift']());}}}(a94_0x4e6b,0x7f77d));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_0x5dc744(0xe5)]);function a94_0x1d3f(_0x218a60,_0x1c29ac){_0x218a60=_0x218a60-0xcd;const _0x4e6b78=a94_0x4e6b();let _0x1d3f7c=_0x4e6b78[_0x218a60];return _0x1d3f7c;}function a94_0x4e6b(){const _0x41d819=['8705979vmCEdB','251349WYZUCY','skip-connection-test','dbname','password','username','4LGrOlJ','dbParam','dbName','7164920Teosoq','str','New\x20connection\x20parameter\x20string','New\x20database\x20name','New\x20host:port','--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','validation','dbparam','string','Updated\x20db\x20link\x20','4534115cDCPvN','Preview\x20the\x20merged\x20database\x20connection\x20update;\x20password\x20redacted','POST','/smartapi/dblink/update','292362yxvEzY','num','dbdesc','update','has','1012481PkcWHd','dbDesc','bool','2905800bEEGIK','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','New\x20username','[redacted]','dburl','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20stored\x20password\x20is\x20masked','New\x20description','trim','18pBfqmn','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.'];a94_0x4e6b=function(){return _0x41d819;};return a94_0x4e6b();}function mergeDbLinkUpdate(_0x2a03ce,_0x3d2a81){const _0x185b34=a94_0x5dc744,_0xc901e={..._0x2a03ce},_0x6b6aa1=_0x3d2a81[_0x185b34(0xcd)](_0x185b34(0xf0));if(_0x6b6aa1&&MASKED_PASSWORD_VALUES[_0x185b34(0xde)](_0x6b6aa1))throw CliErrors[_0x185b34(0xd2)](_0x185b34(0xd1));if(!_0x6b6aa1&&MASKED_PASSWORD_VALUES['has'](String(_0x2a03ce[_0x185b34(0xf0)]??'')))throw CliErrors[_0x185b34(0xd2)](_0x185b34(0xeb));const _0x18f9aa=_0x3d2a81[_0x185b34(0xcd)](_0x185b34(0xef));if(_0x18f9aa)_0xc901e[_0x185b34(0xf4)]=_0x18f9aa;const _0x345046=_0x3d2a81[_0x185b34(0xcd)](_0x185b34(0xe6));if(_0x345046)_0xc901e['dbUrl']=_0x345046[_0x185b34(0xe9)]();const _0x3d41e7=_0x3d2a81[_0x185b34(0xcd)]('username');if(_0x3d41e7)_0xc901e[_0x185b34(0xf1)]=_0x3d41e7;if(_0x6b6aa1)_0xc901e['password']=_0x6b6aa1;const _0x22aca6=_0x3d2a81[_0x185b34(0xcd)](_0x185b34(0xd3));if(_0x22aca6)_0xc901e[_0x185b34(0xf3)]=_0x22aca6;const _0x434e5d=_0x3d2a81[_0x185b34(0xcd)](_0x185b34(0xdc));if(_0x434e5d)_0xc901e[_0x185b34(0xe0)]=_0x434e5d;return _0xc901e;}export const dbUpdate={'service':'db','command':a94_0x5dc744(0xdd),'description':a94_0x5dc744(0xe3),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a94_0x5dc744(0xef),'type':'string','description':a94_0x5dc744(0xcf)},{'name':a94_0x5dc744(0xe6),'type':'string','description':a94_0x5dc744(0xd0)},{'name':a94_0x5dc744(0xf1),'type':a94_0x5dc744(0xd4),'description':a94_0x5dc744(0xe4)},{'name':a94_0x5dc744(0xf0),'type':'string','description':a94_0x5dc744(0xe7)},{'name':a94_0x5dc744(0xd3),'type':'string','description':a94_0x5dc744(0xce)},{'name':a94_0x5dc744(0xdc),'type':a94_0x5dc744(0xd4),'description':a94_0x5dc744(0xe8)},SKIP_CONNECTION_TEST_FLAG],async 'validate'(_0x359f59){const _0x4dbb80=a94_0x5dc744,_0x47dcc0=_0x359f59['str'](_0x4dbb80(0xe6));if(_0x47dcc0&&!validateDbUrl(_0x47dcc0[_0x4dbb80(0xe9)]()))throw CliErrors[_0x4dbb80(0xd2)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x47dcc0+'\x22');},async 'dryRun'(_0x417fea){const _0x59ffe0=a94_0x5dc744,_0x49f35f=_0x417fea[_0x59ffe0(0xdb)]('id'),_0x40b1c7=await getDbLinkInfo(_0x49f35f),_0x19da3a=mergeDbLinkUpdate(_0x40b1c7,_0x417fea),_0x5dbad4=sanitizeDbLinkForOutput(_0x19da3a);return{'method':_0x59ffe0(0xd8),'url':_0x59ffe0(0xd9),'body':_0x5dbad4,'description':_0x59ffe0(0xd7),'connectionPreflight':{'enabled':!_0x417fea['bool']('skip-connection-test'),'executed':![]}};},async 'execute'(_0x4cb8e6){const _0x5529c5=a94_0x5dc744,_0x573e44=_0x4cb8e6[_0x5529c5(0xdb)]('id'),_0x3461e7=await getDbLinkInfo(_0x573e44),_0x1aede5=mergeDbLinkUpdate(_0x3461e7,_0x4cb8e6);!_0x4cb8e6[_0x5529c5(0xe1)](_0x5529c5(0xee))&&await assertDbLinkConnectionPreflight(_0x1aede5);const {id:_0x43aa58,entity:_0x44c905}=normalizeEntityWithIdResponse(await updateDbLink(_0x1aede5));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x44c905),'message':_0x5529c5(0xd5)+(_0x43aa58??_0x573e44)};}};
@@ -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_0x5346(_0x5c5e15,_0x402ed7){_0x5c5e15=_0x5c5e15-0x123;const _0x5109be=a95_0x5109();let _0x534652=_0x5109be[_0x5c5e15];return _0x534652;}const a95_0x242cfd=a95_0x5346;(function(_0x4bcda1,_0x14724a){const _0x402f64=a95_0x5346,_0x3dcf72=_0x4bcda1();while(!![]){try{const _0x4f114e=-parseInt(_0x402f64(0x165))/0x1+-parseInt(_0x402f64(0x141))/0x2*(-parseInt(_0x402f64(0x148))/0x3)+parseInt(_0x402f64(0x142))/0x4+-parseInt(_0x402f64(0x168))/0x5*(-parseInt(_0x402f64(0x177))/0x6)+-parseInt(_0x402f64(0x14a))/0x7+-parseInt(_0x402f64(0x132))/0x8*(parseInt(_0x402f64(0x170))/0x9)+parseInt(_0x402f64(0x131))/0xa*(-parseInt(_0x402f64(0x16f))/0xb);if(_0x4f114e===_0x14724a)break;else _0x3dcf72['push'](_0x3dcf72['shift']());}catch(_0x157a9f){_0x3dcf72['push'](_0x3dcf72['shift']());}}}(a95_0x5109,0x1b65f));import a95_0xb4833e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a95_0x5109(){const _0x3afed9=['Global','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','locale','padEnd','cookie','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20doctor','gray','Project','riskLevel','55489NVomNn','(none)','apiDir','67085TiIKnG','\x20\x20Installed\x20Path:\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','\x20\x20Config\x20JSON','appCode','green','140591sXIKgU','29259VCgMQL','message','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','unknown','18zpFtcS','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','packageVersion','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Package\x20Version:\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','red','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','check','state','10XtFPKB','40JzgfDW','accessKey','(not\x20found)','✗\x20Invalid\x20JSON','version','repeat','✓\x20Valid','skillVersion','installedPath','\x20\x20Merged\x20Config','\x20\x20API\x20Endpoints','(default:\x20','format','currentApp','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','2mSDiRz','704144HeTDsb','\x20\x20Apps','pageSize','slice','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','156441MJguSE','defaultApp','501802lGsgtx','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','doctor','raw','source','✗\x20Not\x20logged\x20in','✓\x20Valid\x20JSON','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20─','reason','\x20\x20Built-in\x20Skill','status','\x20\x20Config\x20Files','current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'];a95_0x5109=function(){return _0x3afed9;};return a95_0x5109();}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(_0x45260d){const _0x4bd9b8=a95_0x5346,_0x43a862=GIT_COMMIT!==_0x4bd9b8(0x176)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4bd9b8(0x145)](0x0,0xa)+')':VERSION,_0x4b0aa1=buildConfigFromFlags({}),_0x1f039b=getCookie();console[_0x4bd9b8(0x179)](),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x17d)](CLI_BIN_NAME+_0x4bd9b8(0x161))),console[_0x4bd9b8(0x179)](a95_0xb4833e['gray']('─'['repeat'](0x32))),console[_0x4bd9b8(0x179)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x43a862),console[_0x4bd9b8(0x179)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4bd9b8(0x136)]),console[_0x4bd9b8(0x179)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4bd9b8(0x147)]+'\x20'+process['arch']);const _0x9adf24=inspectBuiltinSkill();console['log'](),console['log'](a95_0xb4833e[_0x4bd9b8(0x17d)](_0x4bd9b8(0x155))),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x162)]('\x20\x20─'[_0x4bd9b8(0x137)](0x1e)));const _0x304f3e=_0x9adf24['state']===_0x4bd9b8(0x158)?a95_0xb4833e[_0x4bd9b8(0x16e)]('✓\x20'+_0x9adf24[_0x4bd9b8(0x130)]):a95_0xb4833e[_0x4bd9b8(0x125)]('✗\x20'+_0x9adf24[_0x4bd9b8(0x130)]);console[_0x4bd9b8(0x179)](_0x4bd9b8(0x17c)+_0x304f3e),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x123)+_0x9adf24[_0x4bd9b8(0x17e)]),console[_0x4bd9b8(0x179)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x9adf24[_0x4bd9b8(0x139)]||a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x129)))),console['log'](_0x4bd9b8(0x169)+(_0x9adf24[_0x4bd9b8(0x13a)]||a95_0xb4833e['gray']('(not\x20found)')));if(_0x9adf24[_0x4bd9b8(0x154)])console[_0x4bd9b8(0x179)](_0x4bd9b8(0x17f)+_0x9adf24['reason']);_0x9adf24['state']!=='current'&&console[_0x4bd9b8(0x179)](_0x4bd9b8(0x172)+_0x9adf24['repairCommand']);console['log'](),console[_0x4bd9b8(0x179)](a95_0xb4833e['bold'](_0x4bd9b8(0x157))),console['log'](a95_0xb4833e['gray'](_0x4bd9b8(0x153)[_0x4bd9b8(0x137)](0x1e)));const _0x1546e0=getGlobalConfigPath(),_0x181ca2=getProjectConfigPath();console[_0x4bd9b8(0x179)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1546e0||a95_0xb4833e[_0x4bd9b8(0x162)]('(not\x20found)'))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x174)+(_0x181ca2||a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x134)))),console[_0x4bd9b8(0x179)](),console['log'](a95_0xb4833e['bold'](_0x4bd9b8(0x16c))),console[_0x4bd9b8(0x179)](a95_0xb4833e['gray']('\x20\x20─'[_0x4bd9b8(0x137)](0x1e)));const _0x42749a=(_0x4a0b16,_0x305502)=>{const _0x4468b6=_0x4bd9b8;if(!_0x305502){console[_0x4468b6(0x179)]('\x20\x20'+_0x4a0b16[_0x4468b6(0x15e)](0x11)+'\x20'+a95_0xb4833e[_0x4468b6(0x162)]('(no\x20file)'));return;}const _0x174fd4=inspectCliConfigJsonFile(_0x305502);if(_0x174fd4['status']==='ok')console[_0x4468b6(0x179)]('\x20\x20'+_0x4a0b16['padEnd'](0x11)+'\x20'+a95_0xb4833e['green'](_0x4468b6(0x151)));else{if(_0x174fd4[_0x4468b6(0x156)]==='empty')console[_0x4468b6(0x179)]('\x20\x20'+_0x4a0b16[_0x4468b6(0x15e)](0x11)+'\x20'+a95_0xb4833e['yellow'](_0x4468b6(0x12c)));else _0x174fd4[_0x4468b6(0x156)]===_0x4468b6(0x14c)?console[_0x4468b6(0x179)]('\x20\x20'+_0x4a0b16[_0x4468b6(0x15e)](0x11)+'\x20'+a95_0xb4833e['gray']('(missing)')):(console['log']('\x20\x20'+_0x4a0b16[_0x4468b6(0x15e)](0x11)+'\x20'+a95_0xb4833e[_0x4468b6(0x125)](_0x4468b6(0x135))),console['log']('\x20\x20'+''[_0x4468b6(0x15e)](0x11)+'\x20'+a95_0xb4833e[_0x4468b6(0x125)](_0x174fd4[_0x4468b6(0x171)])));}};_0x42749a(_0x4bd9b8(0x15b),_0x1546e0),_0x42749a(_0x4bd9b8(0x163),_0x181ca2),console['log'](),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x17d)](_0x4bd9b8(0x13b))),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x162)]('\x20\x20─'['repeat'](0x1e))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x146)+(_0x4b0aa1[_0x4bd9b8(0x16d)]||a95_0xb4833e['red']('(not\x20set)'))),console['log'](_0x4bd9b8(0x128)+_0x4b0aa1['env']),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x178)+_0x4b0aa1[_0x4bd9b8(0x15d)]),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x16a)+_0x4b0aa1[_0x4bd9b8(0x167)]),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x124)+(_0x4b0aa1['defaultApp']||a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x166)))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x160)+(_0x4b0aa1[_0x4bd9b8(0x13f)]||a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x166)))),console[_0x4bd9b8(0x179)]('\x20\x20explicitAppName:\x20'+(_0x4b0aa1['explicitAppName']||a95_0xb4833e[_0x4bd9b8(0x162)]('(none)'))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x12d)+(_0x4b0aa1['format']||a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x13d)+DEFAULT_CONFIG_VALUES[_0x4bd9b8(0x13e)]+')'))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x126)+(_0x4b0aa1[_0x4bd9b8(0x144)]??a95_0xb4833e[_0x4bd9b8(0x162)]('(default)'))),console['log'](_0x4bd9b8(0x15c)+_0x4b0aa1[_0x4bd9b8(0x164)]),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x17b)+_0x4b0aa1['verbose']),console[_0x4bd9b8(0x179)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b0aa1[_0x4bd9b8(0x15f)]?a95_0xb4833e[_0x4bd9b8(0x16e)](_0x4bd9b8(0x180)+_0x4b0aa1[_0x4bd9b8(0x15f)][_0x4bd9b8(0x12e)]+')'):_0x1f039b?a95_0xb4833e['green']('(set\x20via\x20file,\x20length='+_0x1f039b['length']+')'):a95_0xb4833e[_0x4bd9b8(0x162)]('(none)')));const _0x494ad3=Object['keys'](_0x4b0aa1['apps']);if(_0x494ad3[_0x4bd9b8(0x12e)]>0x0){console['log'](),console[_0x4bd9b8(0x179)](a95_0xb4833e['bold'](_0x4bd9b8(0x143))),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x153)[_0x4bd9b8(0x137)](0x1e)));for(const _0x1fc6fa of _0x494ad3){const _0x7dd5d0=_0x4b0aa1['apps'][_0x1fc6fa],_0x490829=_0x1fc6fa===_0x4b0aa1[_0x4bd9b8(0x149)],_0x2bad26=_0x1fc6fa===_0x4b0aa1[_0x4bd9b8(0x13f)],_0x56a298=_0x2bad26?a95_0xb4833e[_0x4bd9b8(0x16e)]('\x20←\x20current'):'',_0x1fb351=_0x490829?'\x20(default)':'';console['log']('\x20\x20'+_0x1fc6fa+_0x1fb351+_0x56a298),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x152)+_0x7dd5d0[_0x4bd9b8(0x16b)]);const _0xae93a3=buildAppDoctorFields(_0x7dd5d0,{'env':_0x4b0aa1[_0x4bd9b8(0x175)],'apiDir':_0x4b0aa1[_0x4bd9b8(0x14e)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4b0aa1['cookie']||_0x1f039b||undefined,'accessKey':_0x4b0aa1['accessKey']});console['log'](_0x4bd9b8(0x15a)+_0xae93a3['env'][_0x4bd9b8(0x173)]+'\x20\x20'+a95_0xb4833e[_0x4bd9b8(0x162)]('('+_0xae93a3[_0x4bd9b8(0x175)][_0x4bd9b8(0x14f)]+')')),console[_0x4bd9b8(0x179)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0xae93a3[_0x4bd9b8(0x167)][_0x4bd9b8(0x173)]+'\x20\x20'+a95_0xb4833e['gray']('('+_0xae93a3[_0x4bd9b8(0x167)][_0x4bd9b8(0x14f)]+')'));const _0x5b80c9=_0xae93a3[_0x4bd9b8(0x15f)][_0x4bd9b8(0x173)]?a95_0xb4833e[_0x4bd9b8(0x16e)](_0x4bd9b8(0x180)+_0xae93a3['cookie'][_0x4bd9b8(0x173)][_0x4bd9b8(0x12e)]+')'):a95_0xb4833e['gray'](_0x4bd9b8(0x166));console['log'](_0x4bd9b8(0x12b)+_0x5b80c9+'\x20\x20'+a95_0xb4833e['gray']('('+_0xae93a3['cookie'][_0x4bd9b8(0x14f)]+')'));const _0xc939bc=_0xae93a3[_0x4bd9b8(0x133)][_0x4bd9b8(0x173)]?a95_0xb4833e[_0x4bd9b8(0x16e)]('(set,\x20length='+_0xae93a3[_0x4bd9b8(0x133)]['value']['length']+')'):a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x166));console[_0x4bd9b8(0x179)](_0x4bd9b8(0x17a)+_0xc939bc+'\x20\x20'+a95_0xb4833e[_0x4bd9b8(0x162)]('('+_0xae93a3[_0x4bd9b8(0x133)]['source']+')'));}}console[_0x4bd9b8(0x179)](),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x17d)](_0x4bd9b8(0x13c))),console['log'](a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x153)[_0x4bd9b8(0x137)](0x1e))),console[_0x4bd9b8(0x179)](_0x4bd9b8(0x12a)+getApiDomain()),console['log'](_0x4bd9b8(0x159)+getUserDomain()),console[_0x4bd9b8(0x179)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4bd9b8(0x179)](),console['log'](a95_0xb4833e['bold'](_0x4bd9b8(0x127))),console[_0x4bd9b8(0x179)](a95_0xb4833e[_0x4bd9b8(0x162)](_0x4bd9b8(0x153)[_0x4bd9b8(0x137)](0x1e)));if(_0x1f039b){const _0x2bcaf0=await getIsSessionValid();console[_0x4bd9b8(0x179)](_0x4bd9b8(0x14b)+(_0x2bcaf0?a95_0xb4833e['green'](_0x4bd9b8(0x138)):a95_0xb4833e['red']('✗\x20Expired')));}else console[_0x4bd9b8(0x179)](_0x4bd9b8(0x14b)+a95_0xb4833e[_0x4bd9b8(0x125)](_0x4bd9b8(0x150)));return console[_0x4bd9b8(0x179)](),{'ok':!![]};}export const doctorDefinition={'service':a95_0x242cfd(0x14d),'command':a95_0x242cfd(0x12f),'description':a95_0x242cfd(0x140),'risk':'read','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_0x6223fd=a96_0x3ed0;(function(_0x5355e4,_0x434b3d){const _0x33f384=a96_0x3ed0,_0x13545f=_0x5355e4();while(!![]){try{const _0x26303d=parseInt(_0x33f384(0x1f5))/0x1*(-parseInt(_0x33f384(0x206))/0x2)+parseInt(_0x33f384(0x20d))/0x3*(-parseInt(_0x33f384(0x1f7))/0x4)+parseInt(_0x33f384(0x210))/0x5*(-parseInt(_0x33f384(0x216))/0x6)+parseInt(_0x33f384(0x20e))/0x7+-parseInt(_0x33f384(0x207))/0x8+parseInt(_0x33f384(0x218))/0x9*(-parseInt(_0x33f384(0x21a))/0xa)+parseInt(_0x33f384(0x1ff))/0xb;if(_0x26303d===_0x434b3d)break;else _0x13545f['push'](_0x13545f['shift']());}catch(_0x42efcd){_0x13545f['push'](_0x13545f['shift']());}}}(a96_0xaafc,0x3b9f3));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':'file','type':a96_0x6223fd(0x1fa),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a96_0x6223fd(0x1fc),'type':a96_0x6223fd(0x1fa),'required':!![],'description':a96_0x6223fd(0x212)},DOWNLOAD_FLAG={'name':a96_0x6223fd(0x1fb),'type':a96_0x6223fd(0x204),'description':a96_0x6223fd(0x202)},LONG_TERM_FLAG={'name':'long-term','type':'boolean','description':a96_0x6223fd(0x200)};function a96_0x3ed0(_0x5ad339,_0x385197){_0x5ad339=_0x5ad339-0x1f3;const _0xaafc1e=a96_0xaafc();let _0x3ed003=_0xaafc1e[_0x5ad339];return _0x3ed003;}function requireFilePath(_0x4dcb75){const _0x1b2778=a96_0x6223fd,_0x171e05=_0x4dcb75[_0x1b2778(0x217)]();if(!_0x171e05)throw CliErrors[_0x1b2778(0x20b)](_0x1b2778(0x201));return _0x171e05;}const fileUpload={'service':'file','command':a96_0x6223fd(0x1f4),'description':a96_0x6223fd(0x1f8),'risk':a96_0x6223fd(0x1f6),'flags':[FILE_FLAG],async 'dryRun'(_0x5fa7b9){const _0x8f5f83=a96_0x6223fd,_0x4e0d7d=requireDevelopmentUploadFile(_0x5fa7b9['str'](_0x8f5f83(0x203)),_0x8f5f83(0x208));return{'method':_0x8f5f83(0x20f),'url':_0x8f5f83(0x20a),'body':{'appCode':_0x5fa7b9['appCode'],'multipart':{'file':_0x4e0d7d}},'description':_0x8f5f83(0x1f9)+_0x4e0d7d[_0x8f5f83(0x1f3)]+_0x8f5f83(0x211)+_0x5fa7b9[_0x8f5f83(0x214)]};},async 'execute'(_0x1d1023){const _0x5bb348=a96_0x6223fd,_0x46befe=requireDevelopmentUploadFile(_0x1d1023[_0x5bb348(0x215)](_0x5bb348(0x203)),_0x5bb348(0x208)),_0x443faa=await uploadDevelopmentFile(_0x1d1023[_0x5bb348(0x214)],_0x46befe[_0x5bb348(0x1f3)]);return{'ok':!![],'data':_0x443faa,'message':_0x443faa[_0x5bb348(0x213)]?_0x5bb348(0x1fe)+_0x443faa['filePath']+_0x5bb348(0x1fd):_0x5bb348(0x219)};}},fileQueryUrl={'service':a96_0x6223fd(0x203),'command':'query-url','description':a96_0x6223fd(0x20c),'risk':a96_0x6223fd(0x1f6),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x13abca){const _0x52aa42=a96_0x6223fd,_0x283e48=requireFilePath(_0x13abca[_0x52aa42(0x215)](_0x52aa42(0x1fc))),_0x42b273=await queryDevelopmentFileUrl(_0x283e48,{'download':_0x13abca[_0x52aa42(0x205)]('download'),'longTerm':_0x13abca[_0x52aa42(0x205)](_0x52aa42(0x209))});return{'ok':!![],'data':_0x42b273};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a96_0xaafc(){const _0x112384=['trim','9lNxoSW','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','414110UDiAjd','path','upload','13CLPxVJ','read','29604JubhtT','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Preview:\x20upload\x20','string','download','filepath','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file:\x20','9249372QZnxls','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','filePath\x20is\x20required.','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','file','boolean','bool','67684PbVXbm','599416dpMTNa','File','long-term','/smartapi/common/uploadFile','validation','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','66VDiLuG','2215598xxRCSY','POST','107805MBdZBy','\x20to\x20development\x20app\x20','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','filePath','appCode','str','54MeIEHt'];a96_0xaafc=function(){return _0x112384;};return a96_0xaafc();}
@@ -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_0x27e751=a97_0x2e37;(function(_0x10b201,_0x26c61d){const _0x32cd9c=a97_0x2e37,_0x553871=_0x10b201();while(!![]){try{const _0x585425=-parseInt(_0x32cd9c(0x1cb))/0x1+-parseInt(_0x32cd9c(0x1d0))/0x2+parseInt(_0x32cd9c(0x1d7))/0x3+parseInt(_0x32cd9c(0x1b5))/0x4+parseInt(_0x32cd9c(0x1cc))/0x5*(parseInt(_0x32cd9c(0x1af))/0x6)+parseInt(_0x32cd9c(0x1c5))/0x7+parseInt(_0x32cd9c(0x1bb))/0x8*(-parseInt(_0x32cd9c(0x1b0))/0x9);if(_0x585425===_0x26c61d)break;else _0x553871['push'](_0x553871['shift']());}catch(_0x33acd2){_0x553871['push'](_0x553871['shift']());}}}(a97_0x31c9,0xaa95e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x11c432){return{'appCode':_0x11c432,'appName':_0x11c432};}function writeInitConfig(_0x1bb368,_0x2d3169,_0x3da7ac){const _0x51b1a5=a97_0x2e37,_0x9e6806=resolveWriteConfigPath(_0x1bb368),_0xc18c80=buildCanonicalProjectConfig({},{'appCodes':_0x2d3169['map'](_0x4de2ee=>_0x4de2ee[_0x51b1a5(0x1d5)]),'env':_0x3da7ac,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x51b1a5(0x1ac)]()}});writeConfigFile(_0x9e6806,_0xc18c80);const _0x1c371e=_0x1bb368===_0x51b1a5(0x1d1)?_0x51b1a5(0x1d1):'project';console[_0x51b1a5(0x1d3)](_0x51b1a5(0x1c1)+_0x1c371e+_0x51b1a5(0x1d6)),console[_0x51b1a5(0x1d3)](_0x51b1a5(0x1bc)+_0x2d3169[_0x51b1a5(0x1b7)](_0x32d31f=>_0x32d31f[_0x51b1a5(0x1d5)])['join'](',\x20')),console[_0x51b1a5(0x1d3)](_0x51b1a5(0x1ad)+_0xc18c80['defaultApp']),console[_0x51b1a5(0x1d3)]('\x20\x20Env:\x20'+_0xc18c80[_0x51b1a5(0x1ce)]),console[_0x51b1a5(0x1d3)](_0x51b1a5(0x1c7)+_0x9e6806);}async function runSmartInit(_0x3aaf3e){const _0x4f0449=a97_0x2e37,_0x230d3b=process[_0x4f0449(0x1be)](),_0x2abc64=_0x3aaf3e[_0x4f0449(0x1ca)](_0x4f0449(0x1d1))?_0x4f0449(0x1d1):'project',_0x63b3ff=_0x3aaf3e[_0x4f0449(0x1d4)]('env')||_0x4f0449(0x1ba),_0x444b03=_0x3aaf3e[_0x4f0449(0x1d4)](_0x4f0449(0x1c3))||undefined;if(_0x2abc64==='project'){const _0x5c2459=existsSync(resolve(_0x230d3b,NEW_CONFIG_NAME)),_0x2d359b=LEGACY_CONFIG_NAMES[_0x4f0449(0x1bd)](_0x5abcc4=>existsSync(resolve(_0x230d3b,_0x5abcc4)));if(_0x2d359b&&!_0x5c2459)return console['log'](_0x4f0449(0x1bf)),upgradeApp(_0x3aaf3e[_0x4f0449(0x1c8)],{'yes':_0x3aaf3e[_0x4f0449(0x1ca)](_0x4f0449(0x1c0))});if(_0x5c2459)throw CliErrors[_0x4f0449(0x1b2)](_0x4f0449(0x1b6),_0x4f0449(0x1b1)+CLI_BIN_NAME+_0x4f0449(0x1ae));}if(_0x444b03){const _0x40d818=validateAppcode(_0x444b03);if(!_0x40d818[_0x4f0449(0x1b9)])throw CliErrors['validation'](_0x40d818['message']);writeInitConfig(_0x2abc64,[syntheticApp(_0x444b03)],_0x63b3ff);return;}if(_0x3aaf3e[_0x4f0449(0x1c8)])throw CliErrors[_0x4f0449(0x1cd)](_0x4f0449(0x1c3),'Usage:\x20'+CLI_BIN_NAME+_0x4f0449(0x1d2));const _0x2d8475=getCookie(),_0x4a87aa=await selectMultipleApps(_0x2d8475),_0x2005d0=_0x4a87aa===_0x4f0449(0x1d8)?[syntheticApp(await promptCustomAppcode())]:_0x4a87aa;writeInitConfig(_0x2abc64,_0x2005d0,_0x63b3ff);}const initFlags=[{'name':a97_0x27e751(0x1d1),'type':'boolean','description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a97_0x27e751(0x1ce),'type':a97_0x27e751(0x1b4),'description':a97_0x27e751(0x1cf),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a97_0x27e751(0x1c3),'type':a97_0x27e751(0x1b4),'description':a97_0x27e751(0x1c9)},{'name':a97_0x27e751(0x1c0),'type':a97_0x27e751(0x1c6),'description':a97_0x27e751(0x1c4),'default':![]}];export const initDefinitions=[{'service':a97_0x27e751(0x1c2),'command':'run','description':a97_0x27e751(0x1b3),'risk':a97_0x27e751(0x1b8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x35fc93){return await runSmartInit(_0x35fc93),{'ok':!![]};}}];function a97_0x2e37(_0x25e15b,_0x263a44){_0x25e15b=_0x25e15b-0x1ac;const _0x31c91f=a97_0x31c9();let _0x2e3740=_0x31c91f[_0x25e15b];return _0x2e3740;}function a97_0x31c9(){const _0x563f66=['\x20\x20Config:\x20','nonInteractive','App\x20code\x20to\x20initialize\x20with','bool','927367Jwnswj','5QpuFMn','flagMissing','env','Target\x20environment','444252IBDLXA','global','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','log','str','appCode','\x20config','2169186DLCbOH','custom','toLocaleString','\x20\x20Default:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','3887214nBMXYF','14043195TzKgqI','Use\x20`','validation','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','string','5132144XfCGxs','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','map','write','valid','production','8dcLEDm','\x20\x20Apps:\x20','some','cwd','检测到旧配置文件,正在自动升级...\x0a','yes','\x0a✓\x20Successfully\x20initialized\x20','init','appcode','Auto-confirm\x20prompts','5282193JDnQqj','boolean'];a97_0x31c9=function(){return _0x563f66;};return a97_0x31c9();}
@@ -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_0x2009(_0x3b093f,_0x1c3585){_0x3b093f=_0x3b093f-0x106;const _0xdbfaad=a98_0xdbfa();let _0x200997=_0xdbfaad[_0x3b093f];return _0x200997;}(function(_0x448bf1,_0x37008d){const _0x4df6a3=a98_0x2009,_0x399766=_0x448bf1();while(!![]){try{const _0x75d194=parseInt(_0x4df6a3(0x108))/0x1+-parseInt(_0x4df6a3(0x106))/0x2+parseInt(_0x4df6a3(0x10a))/0x3*(parseInt(_0x4df6a3(0x10e))/0x4)+-parseInt(_0x4df6a3(0x10c))/0x5+-parseInt(_0x4df6a3(0x109))/0x6+parseInt(_0x4df6a3(0x10d))/0x7*(-parseInt(_0x4df6a3(0x107))/0x8)+parseInt(_0x4df6a3(0x10b))/0x9;if(_0x75d194===_0x37008d)break;else _0x399766['push'](_0x399766['shift']());}catch(_0x37ff3e){_0x399766['push'](_0x399766['shift']());}}}(a98_0xdbfa,0x4f2f7));function a98_0xdbfa(){const _0x29b1e2=['15098733vaAyfN','2463055JnrBtm','4471439lmpOUI','4ZICPWy','969628WlKyyp','8tkUecT','58818mtmpXm','2190870IxCnEm','1707705CFKcWY'];a98_0xdbfa=function(){return _0x29b1e2;};return a98_0xdbfa();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -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
+ function a99_0x3329(_0x4be0a7,_0xc1d095){_0x4be0a7=_0x4be0a7-0x1a2;const _0x31afbc=a99_0x31af();let _0x332943=_0x31afbc[_0x4be0a7];return _0x332943;}const a99_0x305a0a=a99_0x3329;(function(_0x48b681,_0x462a72){const _0x39ccad=a99_0x3329,_0x410b53=_0x48b681();while(!![]){try{const _0x1fc070=parseInt(_0x39ccad(0x1ba))/0x1*(parseInt(_0x39ccad(0x1b7))/0x2)+parseInt(_0x39ccad(0x1c0))/0x3*(-parseInt(_0x39ccad(0x1bb))/0x4)+parseInt(_0x39ccad(0x1a9))/0x5+-parseInt(_0x39ccad(0x1b3))/0x6+-parseInt(_0x39ccad(0x1bf))/0x7+parseInt(_0x39ccad(0x1b0))/0x8*(parseInt(_0x39ccad(0x1be))/0x9)+parseInt(_0x39ccad(0x1aa))/0xa;if(_0x1fc070===_0x462a72)break;else _0x410b53['push'](_0x410b53['shift']());}catch(_0x5e6a9d){_0x410b53['push'](_0x410b53['shift']());}}}(a99_0x31af,0xa479b));import{CliError}from'../../errors.js';function a99_0x31af(){const _0x40d3e7=['join','54ixXzwP','6250601zwjHAD','3plwqKU','write','=1\x20to\x20silence\x20this\x20hint.','RABETBASE_DISABLE_ISSUE_NUDGE','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','stderr','validation_error','code','command','report','service','\x20issue\x20report\x20\x5c','3500185bbBevS','20175090DHsmVQ','\x20\x20\x20\x20--title\x20\x22','slice','network_error','cancelled','trim','734872aswNcg','not_in_project','length','5697936JEPzmz','\x20bug?\x20Help\x20us\x20fix\x20it:','has','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','302GQHKjG','\x22\x20\x5c','flag_missing','1993gEFDSi','4213412DiPSyp','replace'];a99_0x31af=function(){return _0x40d3e7;};return a99_0x31af();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a99_0x305a0a(0x1c3);const NUDGE_SUPPRESSED_CODES=new Set([a99_0x305a0a(0x1ae),'auth_required','config_missing',a99_0x305a0a(0x1b1),'unknown_command',a99_0x305a0a(0x1b9),a99_0x305a0a(0x1a3),a99_0x305a0a(0x1ad)]),defaultWriter=_0x300ea2=>{const _0xaa1412=a99_0x305a0a;process[_0xaa1412(0x1a2)][_0xaa1412(0x1c1)](_0x300ea2);};export function shouldNudgeForError(_0x54fce0,_0x1f52b4){const _0x2140c1=a99_0x305a0a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1f52b4[_0x2140c1(0x1a7)]==='issue'&&_0x1f52b4[_0x2140c1(0x1a5)]===_0x2140c1(0x1a6))return![];if(_0x54fce0 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2140c1(0x1b5)](_0x54fce0[_0x2140c1(0x1a4)]);return!![];}export function printIssueReportNudgeForError(_0x52b760,_0x1d789e,_0x446969=defaultWriter){if(!shouldNudgeForError(_0x52b760,_0x1d789e))return;const _0x1a4c34=buildSuggestedTitle(_0x52b760,_0x1d789e);_0x446969(formatNudge(_0x1a4c34));}function buildSuggestedTitle(_0x5d61c6,_0x45c9f3){const _0x30c761=a99_0x305a0a,_0x37aaf9=_0x5d61c6 instanceof Error?_0x5d61c6['message']:String(_0x5d61c6),_0x341438=_0x37aaf9[_0x30c761(0x1bc)](/[\r\n]+/g,'\x20')[_0x30c761(0x1bc)](/\s+/g,'\x20')[_0x30c761(0x1af)]()[_0x30c761(0x1ac)](0x0,0x78)[_0x30c761(0x1bc)](/"/g,'\x5c\x22'),_0x3378c0=CLI_BIN_NAME+'\x20'+_0x45c9f3['service']+'\x20'+_0x45c9f3[_0x30c761(0x1a5)];return _0x341438[_0x30c761(0x1b2)]>0x0?_0x3378c0+':\x20'+_0x341438:_0x3378c0;}function formatNudge(_0x57aba0){const _0x5114b3=a99_0x305a0a;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x5114b3(0x1b4),'\x20\x20'+CLI_BIN_NAME+_0x5114b3(0x1a8),_0x5114b3(0x1ab)+_0x57aba0+_0x5114b3(0x1b8),_0x5114b3(0x1c4),_0x5114b3(0x1b6),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x5114b3(0x1c2),''][_0x5114b3(0x1bd)]('\x0a');}
@@ -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_0x5c9a41=a100_0x89bc;(function(_0x321f34,_0x50470e){const _0xc3c442=a100_0x89bc,_0x46b099=_0x321f34();while(!![]){try{const _0x5ba23f=parseInt(_0xc3c442(0xaa))/0x1+-parseInt(_0xc3c442(0x8f))/0x2*(parseInt(_0xc3c442(0x76))/0x3)+-parseInt(_0xc3c442(0xa2))/0x4*(parseInt(_0xc3c442(0x93))/0x5)+-parseInt(_0xc3c442(0x82))/0x6*(parseInt(_0xc3c442(0x77))/0x7)+-parseInt(_0xc3c442(0x9d))/0x8*(-parseInt(_0xc3c442(0x8b))/0x9)+parseInt(_0xc3c442(0x95))/0xa+parseInt(_0xc3c442(0x9e))/0xb*(parseInt(_0xc3c442(0x9a))/0xc);if(_0x5ba23f===_0x50470e)break;else _0x46b099['push'](_0x46b099['shift']());}catch(_0x45fb49){_0x46b099['push'](_0x46b099['shift']());}}}(a100_0x4fde,0xec3ad));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a100_0x5c9a41(0xa5);export const issueReport={'service':a100_0x5c9a41(0x9c),'command':a100_0x5c9a41(0x91),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a100_0x5c9a41(0x75),'flags':[{'name':a100_0x5c9a41(0x87),'type':a100_0x5c9a41(0xa3),'required':!![],'description':a100_0x5c9a41(0xa0)},{'name':'description','type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a100_0x5c9a41(0xa3),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x591a7a){const _0x4e1fab=a100_0x5c9a41,_0x4f04a2=_0x591a7a[_0x4e1fab(0xac)](_0x4e1fab(0x87))['trim'](),_0x203fbd=_0x591a7a[_0x4e1fab(0xac)](_0x4e1fab(0xad))[_0x4e1fab(0xa8)](),_0x197e25=_0x591a7a['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4f04a2)throw CliErrors[_0x4e1fab(0xa4)](_0x4e1fab(0x87),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x198dd8=_0x203fbd['length']>0x0,_0x2648ac=_0x197e25['length']>0x0;if(_0x198dd8===_0x2648ac)throw CliErrors['validation'](_0x4e1fab(0x81),_0x4e1fab(0xa7));if(_0x2648ac){const _0x231836=resolve(process[_0x4e1fab(0x84)](),_0x197e25);if(!existsSync(_0x231836))throw CliErrors['validation'](_0x4e1fab(0x97)+_0x231836);}},async 'dryRun'(_0x27b3f4){const _0x2ee91b=a100_0x5c9a41,_0x1f622c=await prepareIssueReport(_0x27b3f4);return{'method':_0x2ee91b(0x80),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1f622c[_0x2ee91b(0x87)],'issue.description':_0x1f622c['description'],'issue.description_original_bytes':_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x88)],'issue.description_truncated':_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x78)],'issue.description_redactions':_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x94)],'issue.description_redaction_kinds':_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x85)][_0x2ee91b(0x8a)](',')}},'description':[_0x2ee91b(0x90),_0x2ee91b(0x83)+_0x1f622c['descriptionSource'],_0x1f622c[_0x2ee91b(0x7a)]?'descriptionFile:\x20'+_0x1f622c[_0x2ee91b(0x7a)]:null,_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x78)]?_0x2ee91b(0x7e)+_0x1f622c[_0x2ee91b(0x7f)]['originalBytes']+_0x2ee91b(0x7b):null,_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x94)]>0x0?'redactions:\x20'+_0x1f622c[_0x2ee91b(0x7f)][_0x2ee91b(0x94)]+'\x20('+_0x1f622c['sanitize']['redactionKinds']['join'](',\x20')+')':null][_0x2ee91b(0x8d)](Boolean)[_0x2ee91b(0x8a)]('\x0a')};},async 'execute'(_0x470779){const _0x227dd3=a100_0x5c9a41,_0x18d575=await prepareIssueReport(_0x470779);try{await sendPlatformIssueCollectLog({'title':_0x18d575['title'],'description':_0x18d575[_0x227dd3(0xad)],'sanitize':{'originalBytes':_0x18d575[_0x227dd3(0x7f)][_0x227dd3(0x88)],'truncated':_0x18d575['sanitize'][_0x227dd3(0x78)],'redactionCount':_0x18d575[_0x227dd3(0x7f)][_0x227dd3(0x94)],'redactionKinds':_0x18d575[_0x227dd3(0x7f)]['redactionKinds']}});}catch(_0x523128){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x523128 instanceof Error?_0x523128[_0x227dd3(0x99)]:String(_0x523128)),_0x227dd3(0x7d));}return{'ok':!![],'message':buildResultMessage(_0x18d575[_0x227dd3(0x7f)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x227dd3(0x79),_0x227dd3(0x89),_0x227dd3(0xa1),'issue.description_redactions',_0x227dd3(0xab)],'issue':{'title':_0x18d575[_0x227dd3(0x87)],'descriptionLength':_0x18d575[_0x227dd3(0xad)][_0x227dd3(0x92)],'descriptionSource':_0x18d575[_0x227dd3(0x96)],..._0x18d575[_0x227dd3(0x7a)]?{'descriptionFile':_0x18d575['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x18d575[_0x227dd3(0x7f)][_0x227dd3(0x88)],'truncated':_0x18d575[_0x227dd3(0x7f)][_0x227dd3(0x78)],'redactions':_0x18d575[_0x227dd3(0x7f)]['redactionCount'],'redactionKinds':_0x18d575[_0x227dd3(0x7f)]['redactionKinds']}}}};}};function a100_0x89bc(_0x185316,_0x11e6fb){_0x185316=_0x185316-0x75;const _0x4fde79=a100_0x4fde();let _0x89bccf=_0x4fde79[_0x185316];return _0x89bccf;}function buildResultMessage(_0x58f074){const _0x85371=a100_0x5c9a41,_0x423c22=[];return _0x58f074[_0x85371(0x78)]&&_0x423c22[_0x85371(0x7c)](_0x85371(0xa6)+_0x58f074[_0x85371(0x88)]+'\x20bytes'),_0x58f074[_0x85371(0x94)]>0x0&&_0x423c22[_0x85371(0x7c)]('redacted\x20'+_0x58f074[_0x85371(0x94)]+_0x85371(0x8e)+_0x58f074[_0x85371(0x85)][_0x85371(0x8a)](',\x20')),_0x423c22['length']===0x0?_0x85371(0x86):'Platform\x20issue\x20reported\x20('+_0x423c22['join'](';\x20')+')';}function a100_0x4fde(){const _0x9e599d=['28281PLNQOs','validation','One-line\x20issue\x20summary','issue.description_truncated','329296dAncVM','string','flagMissing','description-file','truncated\x20from\x20','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','file','1478226EYyKiV','issue.description_redaction_kinds','str','description','compress','138TrMGeo','511rGFifj','truncated','issue.description','descriptionFilePath','\x20bytes','push','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated:\x20original\x20','sanitize','POST','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','79350jfSpfb','descriptionSource:\x20','cwd','redactionKinds','Platform\x20issue\x20reported','title','originalBytes','issue.description_original_bytes','join','24363MQBQFX','utf8','filter','\x20secret(s):\x20','69196DjvyQk','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','report','length','80svHwyO','redactionCount','15547470NuhXNk','descriptionSource','File\x20not\x20found:\x20','inline','message','6408mfIhGm','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','issue','1288sECPpC'];a100_0x4fde=function(){return _0x9e599d;};return a100_0x4fde();}async function prepareIssueReport(_0x1a4ea6){const _0x6e616a=a100_0x5c9a41,_0x410e3a=_0x1a4ea6[_0x6e616a(0xac)]('title')[_0x6e616a(0xa8)](),_0x55486d=_0x1a4ea6[_0x6e616a(0xac)](_0x6e616a(0xad)),_0x4f9d37=_0x1a4ea6[_0x6e616a(0xac)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4f9d37){const _0x4b7346=_0x55486d;if(!_0x4b7346[_0x6e616a(0xa8)]())throw CliErrors[_0x6e616a(0x9f)]('Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x1b0d44=sanitizeIssueDescription(_0x4b7346);return{'title':_0x410e3a,'description':_0x1b0d44['description'],'descriptionSource':_0x6e616a(0x98),'sanitize':_0x1b0d44};}const _0x16dd32=resolve(process[_0x6e616a(0x84)](),_0x4f9d37),_0x57b6a2=await readFile(_0x16dd32,_0x6e616a(0x8c));if(!_0x57b6a2[_0x6e616a(0xa8)]())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x16dd32,_0x6e616a(0x9b));const _0x435470=sanitizeIssueDescription(_0x57b6a2);return{'title':_0x410e3a,'description':_0x435470[_0x6e616a(0xad)],'descriptionSource':_0x6e616a(0xa9),'descriptionFilePath':_0x16dd32,'sanitize':_0x435470};}
@@ -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_0x313cce=a101_0x5219;(function(_0x124005,_0x4b0bd5){const _0x3c2fac=a101_0x5219,_0x9a74cd=_0x124005();while(!![]){try{const _0x3946ae=parseInt(_0x3c2fac(0x1d7))/0x1*(parseInt(_0x3c2fac(0x1d8))/0x2)+-parseInt(_0x3c2fac(0x1d3))/0x3+-parseInt(_0x3c2fac(0x1d0))/0x4+parseInt(_0x3c2fac(0x1c8))/0x5+parseInt(_0x3c2fac(0x1cd))/0x6+parseInt(_0x3c2fac(0x1c4))/0x7*(parseInt(_0x3c2fac(0x1d6))/0x8)+-parseInt(_0x3c2fac(0x1c0))/0x9;if(_0x3946ae===_0x4b0bd5)break;else _0x9a74cd['push'](_0x9a74cd['shift']());}catch(_0x3b9684){_0x9a74cd['push'](_0x9a74cd['shift']());}}}(a101_0x4090,0xa6a69));function a101_0x4090(){const _0x19132e=['7352pFYTNU','165116Yeiclg','16yasUwJ','pattern','string','push','REDACTED:access-key','label','access-key','__RB_OSS_ID_','byteLength','8704089YBPxLg','description','utf8','restore','5222iOemeE','REDACTED:private-key','from','authorization','952980zMZjMf','toString','max','length','REDACTED:bearer-jwt','4944210xHUDkp','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:cookie','2674160zHEzco','kind','slice','2108613Utsbsx','password','REDACTED:password'];a101_0x4090=function(){return _0x19132e;};return a101_0x4090();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a101_0x313cce(0x1ce),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a101_0x313cce(0x1cf)},{'kind':a101_0x313cce(0x1c7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a101_0x313cce(0x1c5)},{'kind':a101_0x313cce(0x1de),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a101_0x313cce(0x1dc)},{'kind':a101_0x313cce(0x1d4),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a101_0x313cce(0x1d5)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a101_0x313cce(0x1cc)}];export function sanitizeIssueDescription(_0x3409bf){const _0x4b92f8=a101_0x313cce,_0x129e0d=Buffer['byteLength'](_0x3409bf,_0x4b92f8(0x1c2)),_0x193fa0=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x49ae6b=_0x3409bf,_0x14e364=0x0;const _0x20b7a1=[];if(!_0x193fa0){const _0x1007d7=protectOssAccessKeyIds(_0x49ae6b);_0x49ae6b=_0x1007d7[_0x4b92f8(0x1c1)];for(const _0x8b24f0 of REDACTION_RULES){let _0x3017f6=0x0;_0x49ae6b=_0x49ae6b['replace'](_0x8b24f0[_0x4b92f8(0x1d9)],(_0x5497bd,_0x5b0c7c)=>{const _0x27e4bf=_0x4b92f8;_0x3017f6+=0x1;const _0x6cc940=typeof _0x5b0c7c===_0x27e4bf(0x1da)?_0x5b0c7c:'';return _0x6cc940+'['+_0x8b24f0[_0x27e4bf(0x1dd)]+']';}),_0x3017f6>0x0&&(_0x14e364+=_0x3017f6,!_0x20b7a1['includes'](_0x8b24f0[_0x4b92f8(0x1d1)])&&_0x20b7a1[_0x4b92f8(0x1db)](_0x8b24f0[_0x4b92f8(0x1d1)]));}_0x49ae6b=_0x1007d7[_0x4b92f8(0x1c3)](_0x49ae6b);}let _0x766e79=![];if(Buffer['byteLength'](_0x49ae6b,_0x4b92f8(0x1c2))>ISSUE_DESCRIPTION_MAX_BYTES){_0x766e79=!![];const _0x2c1f7a=Buffer[_0x4b92f8(0x1bf)](TRUNCATION_NOTICE,_0x4b92f8(0x1c2)),_0x3d812f=Math[_0x4b92f8(0x1ca)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x2c1f7a);_0x49ae6b=sliceUtf8Bytes(_0x49ae6b,_0x3d812f)+TRUNCATION_NOTICE;}return{'description':_0x49ae6b,'originalBytes':_0x129e0d,'truncated':_0x766e79,'redactionCount':_0x14e364,'redactionKinds':_0x20b7a1};}function protectOssAccessKeyIds(_0x1754cd){const _0x26e76e=[],_0x4b9a91=_0x1754cd['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x10db5c,_0x565f05)=>{const _0x230d0f=a101_0x5219,_0x4a7312=_0x26e76e[_0x230d0f(0x1db)](_0x10db5c[_0x230d0f(0x1d2)](_0x565f05[_0x230d0f(0x1cb)]))-0x1;return _0x565f05+_0x230d0f(0x1df)+_0x4a7312+'__';});return{'description':_0x4b9a91,'restore':_0x98ea89=>_0x98ea89['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x5d7961,_0x21de17,_0x406f06)=>{const _0x380303=_0x26e76e[Number(_0x406f06)];return _0x380303===undefined?_0x5d7961:''+_0x21de17+_0x380303;})};}function a101_0x5219(_0x485dbb,_0x1f706e){_0x485dbb=_0x485dbb-0x1bf;const _0x4090f4=a101_0x4090();let _0x521975=_0x4090f4[_0x485dbb];return _0x521975;}function sliceUtf8Bytes(_0x3ffff2,_0x4c0017){const _0x2f71cb=a101_0x313cce;if(_0x4c0017<=0x0)return'';const _0x12b802=Buffer[_0x2f71cb(0x1c6)](_0x3ffff2,_0x2f71cb(0x1c2));if(_0x12b802[_0x2f71cb(0x1bf)]<=_0x4c0017)return _0x3ffff2;let _0x5891dc=_0x4c0017;while(_0x5891dc>0x0){const _0x4e96c9=_0x12b802[_0x5891dc];if(_0x4e96c9===undefined||(_0x4e96c9&0xc0)!==0x80)break;_0x5891dc-=0x1;}return _0x12b802['subarray'](0x0,_0x5891dc)[_0x2f71cb(0x1c9)](_0x2f71cb(0x1c2));}