@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) 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/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.d.ts +2 -0
  87. package/lib/commands/db/diff-refresh-start.js +1 -0
  88. package/lib/commands/db/diff-refresh-status.d.ts +2 -0
  89. package/lib/commands/db/diff-refresh-status.js +1 -0
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  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/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/notification/config-create.d.ts +2 -0
  137. package/lib/commands/notification/config-create.js +1 -0
  138. package/lib/commands/notification/config-delete.d.ts +2 -0
  139. package/lib/commands/notification/config-delete.js +1 -0
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.d.ts +2 -0
  142. package/lib/commands/notification/config-update.js +1 -0
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.d.ts +97 -0
  145. package/lib/commands/notification/shared.js +1 -0
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/generate-start.js +1 -1
  148. package/lib/commands/page/generate-status.js +1 -1
  149. package/lib/commands/page/index.js +1 -1
  150. package/lib/commands/page/pull.js +1 -1
  151. package/lib/commands/page/push.js +1 -1
  152. package/lib/commands/page/react/create.js +1 -1
  153. package/lib/commands/page/react/detail.js +1 -1
  154. package/lib/commands/page/react/list.js +1 -1
  155. package/lib/commands/page/react/publish.js +1 -1
  156. package/lib/commands/page/react/shared.js +1 -1
  157. package/lib/commands/page/react/syntax.js +1 -1
  158. package/lib/commands/page/react/template.js +1 -1
  159. package/lib/commands/page/react/update.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/standard-page-status.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/permit/index.js +1 -1
  166. package/lib/commands/permit/page-get.js +1 -1
  167. package/lib/commands/permit/page-set.js +1 -1
  168. package/lib/commands/permit/role-apis-set.js +1 -1
  169. package/lib/commands/permit/role-menus-set.js +1 -1
  170. package/lib/commands/permit/role-menus.js +1 -1
  171. package/lib/commands/permit/shared.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.d.ts +1 -0
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
  177. package/lib/commands/project/create/materialize-project-template.js +1 -0
  178. package/lib/commands/project/create/project-name.d.ts +2 -0
  179. package/lib/commands/project/create/project-name.js +1 -0
  180. package/lib/commands/project/create/project-template-archive.d.ts +6 -0
  181. package/lib/commands/project/create/project-template-archive.js +1 -0
  182. package/lib/commands/project/create/project-template-path.d.ts +1 -3
  183. package/lib/commands/project/create/project-template-path.js +1 -1
  184. package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/index.js +1 -1
  189. package/lib/commands/project/upgrade.js +1 -1
  190. package/lib/commands/registry.js +1 -1
  191. package/lib/commands/role/create.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/run/index.js +1 -1
  202. package/lib/commands/schema.js +1 -1
  203. package/lib/commands/sql/create.js +1 -1
  204. package/lib/commands/sql/delete.js +1 -1
  205. package/lib/commands/sql/detail.js +1 -1
  206. package/lib/commands/sql/exec.js +1 -1
  207. package/lib/commands/sql/index.js +1 -1
  208. package/lib/commands/sql/list.js +1 -1
  209. package/lib/commands/sql/pull.js +1 -1
  210. package/lib/commands/sql/push.js +1 -1
  211. package/lib/commands/sql/shared.js +1 -1
  212. package/lib/commands/sql/status.js +1 -1
  213. package/lib/commands/sql/validate.js +1 -1
  214. package/lib/commands/task/index.js +1 -1
  215. package/lib/commands/task/status.js +1 -1
  216. package/lib/commands/tenant/index.js +1 -1
  217. package/lib/commands/tenant/members-list.js +1 -1
  218. package/lib/commands/tenant/shared.js +1 -1
  219. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  220. package/lib/commands/user-account/index.js +1 -1
  221. package/lib/commands/workspace/add.js +1 -1
  222. package/lib/commands/workspace/index.js +1 -1
  223. package/lib/commands/workspace/remove.js +1 -1
  224. package/lib/config/schema.js +1 -1
  225. package/lib/constant/cdn.d.ts +2 -0
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.js +1 -1
  230. package/lib/constant/env.js +1 -1
  231. package/lib/constant/output.js +1 -1
  232. package/lib/constant/paths.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/context/app-resolver.js +1 -1
  235. package/lib/context/auth-resolver.js +1 -1
  236. package/lib/context/config-loader.js +1 -1
  237. package/lib/context.d.ts +1 -1
  238. package/lib/context.js +1 -1
  239. package/lib/core/alias-resolver.js +1 -1
  240. package/lib/core/api-client.d.ts +29 -2
  241. package/lib/core/api-client.js +1 -1
  242. package/lib/core/bff/config.js +1 -1
  243. package/lib/core/bff/file-system.js +1 -1
  244. package/lib/core/bff/hash.js +1 -1
  245. package/lib/core/bff/lock.js +1 -1
  246. package/lib/core/bff/utils.js +1 -1
  247. package/lib/core/db-resolver.js +1 -1
  248. package/lib/core/page/file-system.js +1 -1
  249. package/lib/core/page/hash.js +1 -1
  250. package/lib/core/page/lock.js +1 -1
  251. package/lib/core/sql-index-auditor.js +1 -1
  252. package/lib/core/sql-sync/config.js +1 -1
  253. package/lib/core/sql-sync/file-system.js +1 -1
  254. package/lib/core/sql-sync/hash.js +1 -1
  255. package/lib/core/sql-sync/lock.js +1 -1
  256. package/lib/core/sql-sync/utils.js +1 -1
  257. package/lib/core/sql-validator.js +1 -1
  258. package/lib/errors.js +1 -1
  259. package/lib/framework/build-all-flags.js +1 -1
  260. package/lib/framework/error-output.js +1 -1
  261. package/lib/framework/explicit-yes.js +1 -1
  262. package/lib/framework/flags.js +1 -1
  263. package/lib/framework/help.js +1 -1
  264. package/lib/framework/index.js +1 -1
  265. package/lib/framework/output.js +1 -1
  266. package/lib/framework/response.js +1 -1
  267. package/lib/framework/runner-alias.js +1 -1
  268. package/lib/framework/runner.js +1 -1
  269. package/lib/framework/schema-export.js +1 -1
  270. package/lib/framework/types.js +1 -1
  271. package/lib/generated/build-info.d.ts +4 -4
  272. package/lib/generated/build-info.js +1 -1
  273. package/lib/help.js +1 -1
  274. package/lib/postinstall.js +1 -1
  275. package/lib/runtime/confirmation.js +1 -1
  276. package/lib/runtime/event.js +1 -1
  277. package/lib/runtime/index.js +1 -1
  278. package/lib/runtime/queue.js +1 -1
  279. package/lib/runtime/resolve.js +1 -1
  280. package/lib/skills/builtin-skill.js +1 -1
  281. package/lib/skills/main.js +1 -1
  282. package/lib/skills/npx-skills-add.js +1 -1
  283. package/lib/skills/skill-presence.js +1 -1
  284. package/lib/telemetry/cli-command-trace.js +1 -1
  285. package/lib/telemetry/cli-help-trace.js +1 -1
  286. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  287. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  288. package/lib/telemetry/send-cli-trace-log.js +1 -1
  289. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  290. package/lib/utils/ai_config.js +1 -1
  291. package/lib/utils/apply-jq-filter.js +1 -1
  292. package/lib/utils/cdn-config.js +1 -1
  293. package/lib/utils/check-sdk-version.js +1 -1
  294. package/lib/utils/cli-version-check.js +1 -1
  295. package/lib/utils/cli-version-policy.d.ts +13 -0
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/rules-cdn.js +1 -1
  307. package/lib/utils/sleep.js +1 -1
  308. package/lib/utils/template-replacer.js +1 -1
  309. package/lib/utils/update-notice.js +1 -1
  310. package/lib/utils/version.js +1 -1
  311. package/lib/utils/with-active-cookie.js +1 -1
  312. package/lib/utils/write-cli-side-channel.js +1 -1
  313. package/package.json +9 -4
  314. package/skills/rabetbase/SKILL.md +33 -22
  315. package/skills/rabetbase/guides/backend-function.md +5 -3
  316. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
  317. package/skills/rabetbase/guides/conflict-detection.md +2 -2
  318. package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +22 -4
  320. package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
  321. package/skills/rabetbase/guides/sql-mybatis.md +2 -2
  322. package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
  323. package/skills/rabetbase/knowledge/react-page/generation-standards.md +24 -2
  324. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  325. package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
  326. package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
  327. package/skills/rabetbase/references/rabetbase-config.md +2 -2
  328. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  329. package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
  330. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
  331. package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
  332. package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-kb.md +5 -3
  334. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
  335. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
  336. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
  337. package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
  338. package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
  339. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
  343. package/skills/rabetbase/references/rabetbase-run.md +1 -1
  344. package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
  345. package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
  346. package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
  347. package/skills/rabetbase.manifest.json +5 -5
  348. package/templates/README.md +14 -2
  349. package/lib/commands/project/create/non-interactive.d.ts +0 -9
  350. package/lib/commands/project/create/non-interactive.js +0 -1
  351. package/lib/utils/copy-directory.d.ts +0 -1
  352. package/lib/utils/copy-directory.js +0 -1
  353. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
  354. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
  355. package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
  356. package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
  357. package/templates/projects/sub-app-react-demo/README.md +0 -246
  358. package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
  359. package/templates/projects/sub-app-react-demo/index.html +0 -27
  360. package/templates/projects/sub-app-react-demo/package.json +0 -34
  361. package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
  362. package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
  363. package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
  364. package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
  365. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
  366. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
  367. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
  368. package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
  369. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
  370. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
  371. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
  372. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
  373. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
  374. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
  375. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
  376. package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
  377. package/templates/projects/sub-app-react-demo/src/style.css +0 -108
  378. package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
  379. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
  380. package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
  381. package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
@@ -1 +1 @@
1
- const a190_0xd762b3=a190_0x542c;(function(_0x16b404,_0x4a207b){const _0x28d724=a190_0x542c,_0x106c10=_0x16b404();while(!![]){try{const _0x5afb65=-parseInt(_0x28d724(0x9c))/0x1*(parseInt(_0x28d724(0xbd))/0x2)+-parseInt(_0x28d724(0xb6))/0x3+-parseInt(_0x28d724(0xd3))/0x4*(parseInt(_0x28d724(0xbe))/0x5)+-parseInt(_0x28d724(0xd0))/0x6+parseInt(_0x28d724(0xcf))/0x7+parseInt(_0x28d724(0x9d))/0x8+parseInt(_0x28d724(0xbb))/0x9;if(_0x5afb65===_0x4a207b)break;else _0x106c10['push'](_0x106c10['shift']());}catch(_0x1bc91b){_0x106c10['push'](_0x106c10['shift']());}}}(a190_0x11a0,0x73bb6));function a190_0x11a0(){const _0x2267a7=['remoteId','filter','catch','86585bJkNLG','2633304qhyDkm','get','dbName','force','dbDirectory','has','lockFilePath','No\x20local\x20SQL\x20files\x20found.','mode','\x20failed','sqls','appCode','bool','Local\x20directory\x20\x22','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','validation','sqlRootDir','str','hash','isFinite','exec','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','Push\x20local\x20SQL\x20files\x20to\x20remote','POST','2214276WzHrKw','push','Local\x20SQL\x20not\x20found:\x20','.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.','\x20SQL\x20file(s)','21525390azZHAU','high-risk-write','8RWmkww','35tRaVnH','sqlConfig','dbId','message','sqlName','version','length','filePath','sqlCode','trashDir','sqlRoot','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','unchanged','projectRoot','relativePath','sqlcode','Push\x20complete:\x20','537138VusDUf','2808480JDbgMV','path','join','440604wAFiBt','\x20skipped,\x20','/smartapi/custom/updateUserCustomSql','set','sql','toISOString','map','boolean','replace','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first'];a190_0x11a0=function(){return _0x2267a7;};return a190_0x11a0();}import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';function a190_0x542c(_0x5dc49b,_0x3830a8){_0x5dc49b=_0x5dc49b-0x91;const _0x11a0f0=a190_0x11a0();let _0x542cce=_0x11a0f0[_0x5dc49b];return _0x542cce;}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{getDbName,listDatabases}from'../../core/db-resolver.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x5a0f5b,_0x300377,_0x20481f){const _0x8ed3fa=a190_0x542c,_0x264d5c=await scanLocalSqlQueries(_0x5a0f5b),_0x22097d=new Map();for(const _0xa9798b of _0x264d5c){if(_0x20481f&&_0xa9798b[_0x8ed3fa(0xc6)]!==_0x20481f)continue;const _0x2205b1=_0x22097d[_0x8ed3fa(0x9e)](_0xa9798b[_0x8ed3fa(0xc6)])??[];_0x2205b1['push'](_0xa9798b),_0x22097d[_0x8ed3fa(0x92)](_0xa9798b['sqlCode'],_0x2205b1);}if(_0x20481f&&!_0x22097d[_0x8ed3fa(0xa2)](_0x20481f))throw CliErrors[_0x8ed3fa(0xad)](_0x8ed3fa(0xb8)+_0x20481f);const _0x3619b3=[];for(const [_0x15a87b,_0x5292db]of _0x22097d['entries']()){if(_0x5292db[_0x8ed3fa(0xc4)]===0x1){_0x3619b3[_0x8ed3fa(0xb7)](_0x5292db[0x0]);continue;}const _0x400ba4=_0x300377[_0x8ed3fa(0xa7)][_0x15a87b],_0xe5a91=_0x400ba4?.[_0x8ed3fa(0xd1)],_0x58cb86=_0xe5a91?_0x5292db[_0x8ed3fa(0x9a)](_0x15d6ba=>_0x15d6ba['relativePath']!==_0xe5a91):_0x5292db;if(_0x400ba4&&_0x58cb86[_0x8ed3fa(0xc4)]===0x1){_0x3619b3[_0x8ed3fa(0xb7)](_0x58cb86[0x0]);continue;}throw CliErrors['validation'](_0x8ed3fa(0xb3)+_0x15a87b+_0x8ed3fa(0xb9));}return _0x3619b3;}export const sqlPush={'service':a190_0xd762b3(0x93),'command':'push','description':a190_0xd762b3(0xb4),'risk':a190_0xd762b3(0xbc),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a190_0xd762b3(0xa0),'type':a190_0xd762b3(0x96),'description':a190_0xd762b3(0xc9)}],async 'dryRun'(_0xbb2831){const _0x574b9c=a190_0xd762b3,_0x3b9da7=loadSqlProjectConfig(_0xbb2831[_0x574b9c(0xa8)]),_0x4d01d9=await readSqlLockFile(_0x3b9da7[_0x574b9c(0xa3)]),{appLock:_0x5155c6}=ensureSqlLockScope(_0x4d01d9??createEmptySqlLock(),_0xbb2831['appCode'],_0x3b9da7['sqlRoot'],_0x574b9c(0xb7)),_0x20cb52=await getTargetSqlQueries(_0x3b9da7,_0x5155c6,_0xbb2831[_0x574b9c(0xaf)](_0x574b9c(0xcd))||undefined),_0xc2d414=[];for(const _0x4667a7 of _0x20cb52){const _0x57beab=await computeSqlFileHash(_0x4667a7[_0x574b9c(0xc5)]),_0x7db53c=_0x5155c6[_0x574b9c(0xa7)][_0x4667a7['sqlCode']],_0x153b0a=!!_0x7db53c&&(_0x7db53c[_0x574b9c(0xd1)]!==_0x4667a7[_0x574b9c(0xcc)]||!!_0x4667a7['sqlName']&&_0x7db53c[_0x574b9c(0xc2)]!==_0x4667a7[_0x574b9c(0xc2)]);if(!_0xbb2831[_0x574b9c(0xa9)](_0x574b9c(0xa0))&&_0x7db53c&&_0x7db53c[_0x574b9c(0xb0)]===_0x57beab&&!_0x153b0a)continue;_0xc2d414[_0x574b9c(0xb7)](_0x4667a7[_0x574b9c(0xc6)]);}return{'method':_0x574b9c(0xb5),'url':_0x574b9c(0x91),'body':{'sqlCodes':_0xc2d414,'appCode':_0xbb2831[_0x574b9c(0xa8)]},'description':'Would\x20push\x20'+_0xc2d414[_0x574b9c(0xc4)]+_0x574b9c(0xba)};},async 'execute'(_0x298a69){const _0x219dd8=a190_0xd762b3,_0x2a3168=loadSqlProjectConfig(_0x298a69[_0x219dd8(0xa8)]),_0x4a3309=await readSqlLockFile(_0x2a3168[_0x219dd8(0xa3)]),{lockData:_0x1b538c,appLock:_0x414c84}=ensureSqlLockScope(_0x4a3309??createEmptySqlLock(),_0x298a69[_0x219dd8(0xa8)],_0x2a3168[_0x219dd8(0xc8)],_0x219dd8(0xb7)),_0x24ff3a=await getTargetSqlQueries(_0x2a3168,_0x414c84,_0x298a69[_0x219dd8(0xaf)](_0x219dd8(0xcd))||undefined);if(_0x24ff3a[_0x219dd8(0xc4)]===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x219dd8(0xa4)};const _0x137453=[],_0x2d5d5e=[],_0x42e154=[];for(const _0x530248 of _0x24ff3a){const _0x23e1c4=_0x414c84['sqls'][_0x530248['sqlCode']];if(!_0x23e1c4){_0x42e154[_0x219dd8(0xb7)]({'sqlCode':_0x530248[_0x219dd8(0xc6)],'error':_0x219dd8(0x98)});continue;}try{const _0x10ecf0=await computeSqlFileHash(_0x530248[_0x219dd8(0xc5)]),_0xfa05a0=_0x23e1c4['path']!==_0x530248[_0x219dd8(0xcc)]||!!_0x530248[_0x219dd8(0xc2)]&&_0x23e1c4[_0x219dd8(0xc2)]!==_0x530248[_0x219dd8(0xc2)];if(!_0x298a69[_0x219dd8(0xa9)](_0x219dd8(0xa0))&&_0x23e1c4[_0x219dd8(0xb0)]===_0x10ecf0&&!_0xfa05a0){_0x2d5d5e['push']({'sqlCode':_0x530248[_0x219dd8(0xc6)],'reason':_0x219dd8(0xca)});continue;}if(_0x23e1c4[_0x219dd8(0xc3)]==null){_0x42e154['push']({'sqlCode':_0x530248['sqlCode'],'error':_0x219dd8(0xab)});continue;}const _0x4d32ba=await readFile(_0x530248[_0x219dd8(0xc5)],'utf8'),_0x1176b4=stripLocalSqlMetadata(_0x4d32ba,_0x530248[_0x219dd8(0xa5)]),_0x478cd5=_0x530248[_0x219dd8(0xc2)]||_0x23e1c4[_0x219dd8(0xc2)],_0xd15489=await resolveTargetDbBinding(_0x298a69[_0x219dd8(0xa8)],_0x530248,_0x23e1c4),_0x568b85=await updateSqlQuery({'id':_0x23e1c4[_0x219dd8(0x99)],'appCode':_0x298a69['appCode'],'sqlCode':_0x530248[_0x219dd8(0xc6)],'sqlName':_0x478cd5,'dbId':_0xd15489[_0x219dd8(0xc0)],'version':_0x23e1c4[_0x219dd8(0xc3)],'sqlContent':_0x1176b4,'sqlConfig':_0x23e1c4[_0x219dd8(0xbf)]??undefined}),_0xd6b118=_0x568b85[_0x219dd8(0xc0)]?await getDbName(_0x298a69['appCode'],Number(_0x568b85['dbId']))[_0x219dd8(0x9b)](()=>_0xd15489[_0x219dd8(0x9f)]):_0xd15489['dbName'];_0x414c84['sqls'][_0x530248[_0x219dd8(0xc6)]]={...buildSqlLockEntry(_0x568b85,_0x1176b4,_0x10ecf0,{'dbName':_0xd6b118}),'path':_0x530248[_0x219dd8(0xcc)],'mode':_0x23e1c4[_0x219dd8(0xa5)]},await archivePreviousSqlFileIfNeeded(_0x2a3168,_0x23e1c4['path'],_0x530248[_0x219dd8(0xcc)]),_0x137453[_0x219dd8(0xb7)]({'sqlCode':_0x530248['sqlCode'],'remoteId':_0x23e1c4[_0x219dd8(0x99)]});}catch(_0x21d1e2){_0x42e154['push']({'sqlCode':_0x530248[_0x219dd8(0xc6)],'error':_0x21d1e2 instanceof Error?_0x21d1e2[_0x219dd8(0xc1)]:String(_0x21d1e2)});}}return _0x414c84['lastSync']=new Date()[_0x219dd8(0x94)](),await writeSqlLockFile(_0x2a3168[_0x219dd8(0xa3)],_0x1b538c),{'ok':_0x42e154[_0x219dd8(0xc4)]===0x0,'data':{'pushed':_0x137453,'skipped':_0x2d5d5e,'failed':_0x42e154},'message':_0x219dd8(0xce)+_0x137453[_0x219dd8(0xc4)]+'\x20pushed,\x20'+_0x2d5d5e[_0x219dd8(0xc4)]+_0x219dd8(0xd4)+_0x42e154[_0x219dd8(0xc4)]+_0x219dd8(0xa6)};}};async function archivePreviousSqlFileIfNeeded(_0x3cd53d,_0x557eb2,_0x4cca88){const _0x26e2f7=a190_0xd762b3;if(!_0x557eb2||_0x557eb2===_0x4cca88)return;const _0x3fde4e=join(_0x3cd53d['sqlRootDir'],_0x557eb2);if(!await fileExists(_0x3fde4e))return;const _0x54082b=await moveToTrash(_0x3cd53d[_0x26e2f7(0xcb)],_0x3cd53d[_0x26e2f7(0xc7)],_0x3fde4e);await cleanupEmptyDirectories(dirname(_0x3fde4e),_0x3cd53d[_0x26e2f7(0xae)]),void _0x54082b;}async function moveToTrash(_0x6d2806,_0x3e30ff,_0x598337){const _0x50c5ea=a190_0xd762b3,_0x279d73=new Date()[_0x50c5ea(0x94)]()[_0x50c5ea(0x97)](/[:.]/g,'-'),_0x15f5dd=relative(_0x6d2806,_0x598337),_0x1985a7=join(_0x3e30ff,_0x279d73,_0x15f5dd);return await mkdir(dirname(_0x1985a7),{'recursive':!![]}),await rename(_0x598337,_0x1985a7),_0x1985a7;}async function cleanupEmptyDirectories(_0x44f9c4,_0x3e0b6a){const _0x478d6e=a190_0xd762b3;let _0x43caed=resolve(_0x44f9c4);const _0x29d620=resolve(_0x3e0b6a);while(_0x43caed['startsWith'](''+_0x29d620+sep)||_0x43caed===_0x29d620){if(_0x43caed===_0x29d620)return;try{const _0x5eafee=await readdir(_0x43caed);if(_0x5eafee[_0x478d6e(0xc4)]>0x0)return;await rmdir(_0x43caed);}catch{return;}_0x43caed=dirname(_0x43caed);}}async function resolveTargetDbBinding(_0x515a9a,_0x577de5,_0x5a9003){const _0x5a1dcc=a190_0xd762b3,_0x406fa1=_0x577de5[_0x5a1dcc(0xa1)];if(!_0x406fa1)return{'dbId':_0x5a9003[_0x5a1dcc(0xc0)],'dbName':_0x5a9003[_0x5a1dcc(0x9f)]};const _0x3fee55=buildDbDirectoryName(_0x5a9003[_0x5a1dcc(0x9f)],_0x5a9003[_0x5a1dcc(0xc0)]);if(_0x406fa1===_0x3fee55)return{'dbId':_0x5a9003[_0x5a1dcc(0xc0)],'dbName':_0x5a9003[_0x5a1dcc(0x9f)]};const _0x54fe62=parseExplicitDbDirectory(_0x406fa1);if(_0x54fe62!=null)return{'dbId':_0x54fe62,'dbName':await getDbName(_0x515a9a,_0x54fe62)[_0x5a1dcc(0x9b)](()=>undefined)};const _0x1f77db=await listDatabases(_0x515a9a),_0x1e71b5=_0x1f77db['filter'](_0x681517=>buildDbDirectoryName(_0x681517[_0x5a1dcc(0x9f)],_0x681517[_0x5a1dcc(0xc0)])===_0x406fa1);if(_0x1e71b5['length']===0x1)return{'dbId':_0x1e71b5[0x0]['dbId'],'dbName':_0x1e71b5[0x0]['dbName']};if(_0x1e71b5[_0x5a1dcc(0xc4)]===0x0)throw CliErrors[_0x5a1dcc(0xad)]('No\x20database\x20matches\x20local\x20directory\x20\x22'+_0x406fa1+'\x22\x20for\x20sqlCode\x20'+_0x577de5[_0x5a1dcc(0xc6)]+'.');const _0x3df86a=_0x1e71b5[_0x5a1dcc(0x95)](_0x3ce5f4=>_0x3ce5f4[_0x5a1dcc(0x9f)]+'\x20('+_0x3ce5f4[_0x5a1dcc(0xc0)]+')')[_0x5a1dcc(0xd2)](',\x20');throw CliErrors[_0x5a1dcc(0xad)](_0x5a1dcc(0xaa)+_0x406fa1+_0x5a1dcc(0xac)+_0x577de5[_0x5a1dcc(0xc6)]+':\x20'+_0x3df86a);}function parseExplicitDbDirectory(_0x266f38){const _0x3ffe94=a190_0xd762b3,_0x240d47=/^db-(\d+)$/[_0x3ffe94(0xb2)](_0x266f38);if(!_0x240d47)return null;const _0x52d28a=Number(_0x240d47[0x1]);return Number[_0x3ffe94(0xb1)](_0x52d28a)&&_0x52d28a>0x0?_0x52d28a:null;}
1
+ const a198_0x3a3914=a198_0x3075;(function(_0x4003f0,_0x5ea444){const _0x5c86b6=a198_0x3075,_0x4b26d8=_0x4003f0();while(!![]){try{const _0x4008c7=-parseInt(_0x5c86b6(0x1d0))/0x1*(-parseInt(_0x5c86b6(0x194))/0x2)+-parseInt(_0x5c86b6(0x1be))/0x3+-parseInt(_0x5c86b6(0x190))/0x4*(parseInt(_0x5c86b6(0x1af))/0x5)+parseInt(_0x5c86b6(0x19f))/0x6+-parseInt(_0x5c86b6(0x197))/0x7*(-parseInt(_0x5c86b6(0x196))/0x8)+-parseInt(_0x5c86b6(0x1b6))/0x9*(parseInt(_0x5c86b6(0x1ca))/0xa)+parseInt(_0x5c86b6(0x1a1))/0xb*(parseInt(_0x5c86b6(0x1a2))/0xc);if(_0x4008c7===_0x5ea444)break;else _0x4b26d8['push'](_0x4b26d8['shift']());}catch(_0x33c9b6){_0x4b26d8['push'](_0x4b26d8['shift']());}}}(a198_0x20fc,0x3c7e1));import{mkdir,readFile,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{updateSqlQuery}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{getDbName,listDatabases}from'../../core/db-resolver.js';function a198_0x20fc(){const _0xc18e1e=['validation','write','dbDirectory','Local\x20SQL\x20not\x20found:\x20','243EoGKQF','utf8','No\x20local\x20SQL\x20files\x20found.','path','relativePath','force','\x20skipped,\x20','toISOString','517044upXpsJ','length','\x20pushed,\x20','sqlRoot','sqlcode','trashDir','get','lockFilePath','sqlCode','replace','sql','Push\x20local\x20SQL\x20files\x20to\x20remote','139010SNeHgs','sqlRootDir','missing\x20remote\x20version;\x20run\x20`rabetbase\x20sql\x20pull`\x20to\x20refresh\x20version\x20info\x20first','dbId','filter','startsWith','1JTAwIS','lastSync','has','70044BuvpGZ','sqlName','\x22\x20for\x20sqlCode\x20','/smartapi/custom/updateUserCustomSql','218872TmBDrb','local\x20SQL\x20is\x20not\x20tracked\x20by\x20sql.lock.json;\x20use\x20`rabetbase\x20sql\x20create`\x20or\x20`rabetbase\x20sql\x20pull`\x20first','8WWGPmI','2706844WGJNNO','\x20failed','sqls','version','\x22\x20matches\x20multiple\x20databases\x20for\x20sqlCode\x20','Would\x20push\x20','\x20SQL\x20file(s)','Multiple\x20local\x20SQL\x20files\x20found\x20for\x20sqlCode\x20','366882RRFkQU','catch','6279746lopDPR','12PzGlmH','unchanged','remoteId','mode','filePath','exec','Force\x20push\x20even\x20if\x20local\x20hash\x20matches\x20lock','appCode','push','POST','Local\x20directory\x20\x22','sqlConfig','boolean','95LshpEl','dbName','bool'];a198_0x20fc=function(){return _0xc18e1e;};return a198_0x20fc();}function a198_0x3075(_0xd30f0e,_0x38ddca){_0xd30f0e=_0xd30f0e-0x190;const _0x20fce2=a198_0x20fc();let _0x30754c=_0x20fce2[_0xd30f0e];return _0x30754c;}import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile,writeSqlLockFile}from'../../core/sql-sync/lock.js';import{fileExists}from'../../core/bff/file-system.js';import{CliErrors}from'../../errors.js';import{SQLCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildSqlLockEntry,stripLocalSqlMetadata}from'./shared.js';import{buildDbDirectoryName}from'../../core/sql-sync/utils.js';async function getTargetSqlQueries(_0x3f5e86,_0x169c6f,_0x390510){const _0x55626e=a198_0x3075,_0x2ec9df=await scanLocalSqlQueries(_0x3f5e86),_0x18d4d8=new Map();for(const _0x588a98 of _0x2ec9df){if(_0x390510&&_0x588a98[_0x55626e(0x1c6)]!==_0x390510)continue;const _0x2afcb6=_0x18d4d8[_0x55626e(0x1c4)](_0x588a98[_0x55626e(0x1c6)])??[];_0x2afcb6['push'](_0x588a98),_0x18d4d8['set'](_0x588a98['sqlCode'],_0x2afcb6);}if(_0x390510&&!_0x18d4d8[_0x55626e(0x1d2)](_0x390510))throw CliErrors[_0x55626e(0x1b2)](_0x55626e(0x1b5)+_0x390510);const _0x45457f=[];for(const [_0x459ef7,_0x34cfbc]of _0x18d4d8['entries']()){if(_0x34cfbc['length']===0x1){_0x45457f[_0x55626e(0x1aa)](_0x34cfbc[0x0]);continue;}const _0x1aa85b=_0x169c6f['sqls'][_0x459ef7],_0x4da362=_0x1aa85b?.[_0x55626e(0x1b9)],_0x1e3525=_0x4da362?_0x34cfbc['filter'](_0x28a49a=>_0x28a49a[_0x55626e(0x1ba)]!==_0x4da362):_0x34cfbc;if(_0x1aa85b&&_0x1e3525[_0x55626e(0x1bf)]===0x1){_0x45457f[_0x55626e(0x1aa)](_0x1e3525[0x0]);continue;}throw CliErrors['validation'](_0x55626e(0x19e)+_0x459ef7+'.\x20Keep\x20only\x20one\x20file\x20under\x20its\x20sqlCode\x20directory\x20before\x20pushing.');}return _0x45457f;}export const sqlPush={'service':a198_0x3a3914(0x1c8),'command':a198_0x3a3914(0x1aa),'description':a198_0x3a3914(0x1c9),'risk':a198_0x3a3914(0x1b3),'flags':[SQLCODE_FLAG_OPTIONAL,{'name':a198_0x3a3914(0x1bb),'type':a198_0x3a3914(0x1ae),'description':a198_0x3a3914(0x1a8)}],async 'dryRun'(_0xcf2cb1){const _0x3501d8=a198_0x3a3914,_0x2a4b95=loadSqlProjectConfig(_0xcf2cb1['appCode']),_0x5c82ca=await readSqlLockFile(_0x2a4b95[_0x3501d8(0x1c5)]),{appLock:_0x2265c1}=ensureSqlLockScope(_0x5c82ca??createEmptySqlLock(),_0xcf2cb1[_0x3501d8(0x1a9)],_0x2a4b95[_0x3501d8(0x1c1)],_0x3501d8(0x1aa)),_0x2fc523=await getTargetSqlQueries(_0x2a4b95,_0x2265c1,_0xcf2cb1['str'](_0x3501d8(0x1c2))||undefined),_0x541f39=[];for(const _0x387ec4 of _0x2fc523){const _0x198b17=await computeSqlFileHash(_0x387ec4[_0x3501d8(0x1a6)]),_0x127050=_0x2265c1['sqls'][_0x387ec4[_0x3501d8(0x1c6)]],_0x4e25ac=!!_0x127050&&(_0x127050[_0x3501d8(0x1b9)]!==_0x387ec4[_0x3501d8(0x1ba)]||!!_0x387ec4[_0x3501d8(0x191)]&&_0x127050[_0x3501d8(0x191)]!==_0x387ec4[_0x3501d8(0x191)]);if(!_0xcf2cb1[_0x3501d8(0x1b1)](_0x3501d8(0x1bb))&&_0x127050&&_0x127050['hash']===_0x198b17&&!_0x4e25ac)continue;_0x541f39['push'](_0x387ec4[_0x3501d8(0x1c6)]);}return{'method':_0x3501d8(0x1ab),'url':_0x3501d8(0x193),'body':{'sqlCodes':_0x541f39,'appCode':_0xcf2cb1[_0x3501d8(0x1a9)]},'description':_0x3501d8(0x19c)+_0x541f39['length']+_0x3501d8(0x19d)};},async 'execute'(_0x285737){const _0x19f1c7=a198_0x3a3914,_0x13f683=loadSqlProjectConfig(_0x285737['appCode']),_0x4203bd=await readSqlLockFile(_0x13f683[_0x19f1c7(0x1c5)]),{lockData:_0x7dc3e7,appLock:_0x367b82}=ensureSqlLockScope(_0x4203bd??createEmptySqlLock(),_0x285737[_0x19f1c7(0x1a9)],_0x13f683[_0x19f1c7(0x1c1)],'push'),_0x301235=await getTargetSqlQueries(_0x13f683,_0x367b82,_0x285737['str']('sqlcode')||undefined);if(_0x301235['length']===0x0)return{'ok':!![],'data':{'pushed':[],'skipped':[],'failed':[]},'message':_0x19f1c7(0x1b8)};const _0x4fd794=[],_0xc58feb=[],_0x303e22=[];for(const _0x266771 of _0x301235){const _0x4ff441=_0x367b82[_0x19f1c7(0x199)][_0x266771[_0x19f1c7(0x1c6)]];if(!_0x4ff441){_0x303e22[_0x19f1c7(0x1aa)]({'sqlCode':_0x266771['sqlCode'],'error':_0x19f1c7(0x195)});continue;}try{const _0x3947a0=await computeSqlFileHash(_0x266771[_0x19f1c7(0x1a6)]),_0x1356b9=_0x4ff441[_0x19f1c7(0x1b9)]!==_0x266771[_0x19f1c7(0x1ba)]||!!_0x266771[_0x19f1c7(0x191)]&&_0x4ff441[_0x19f1c7(0x191)]!==_0x266771['sqlName'];if(!_0x285737[_0x19f1c7(0x1b1)](_0x19f1c7(0x1bb))&&_0x4ff441['hash']===_0x3947a0&&!_0x1356b9){_0xc58feb['push']({'sqlCode':_0x266771[_0x19f1c7(0x1c6)],'reason':_0x19f1c7(0x1a3)});continue;}if(_0x4ff441[_0x19f1c7(0x19a)]==null){_0x303e22[_0x19f1c7(0x1aa)]({'sqlCode':_0x266771['sqlCode'],'error':_0x19f1c7(0x1cc)});continue;}const _0x35a31c=await readFile(_0x266771[_0x19f1c7(0x1a6)],_0x19f1c7(0x1b7)),_0x5711ed=stripLocalSqlMetadata(_0x35a31c,_0x266771['mode']),_0x5e6284=_0x266771[_0x19f1c7(0x191)]||_0x4ff441[_0x19f1c7(0x191)],_0x31ef14=await resolveTargetDbBinding(_0x285737['appCode'],_0x266771,_0x4ff441),_0x2c274e=await updateSqlQuery({'id':_0x4ff441[_0x19f1c7(0x1a4)],'appCode':_0x285737[_0x19f1c7(0x1a9)],'sqlCode':_0x266771['sqlCode'],'sqlName':_0x5e6284,'dbId':_0x31ef14[_0x19f1c7(0x1cd)],'version':_0x4ff441['version'],'sqlContent':_0x5711ed,'sqlConfig':_0x4ff441[_0x19f1c7(0x1ad)]??undefined}),_0x1ac859=_0x2c274e[_0x19f1c7(0x1cd)]?await getDbName(_0x285737[_0x19f1c7(0x1a9)],Number(_0x2c274e[_0x19f1c7(0x1cd)]))['catch'](()=>_0x31ef14[_0x19f1c7(0x1b0)]):_0x31ef14['dbName'];_0x367b82[_0x19f1c7(0x199)][_0x266771['sqlCode']]={...buildSqlLockEntry(_0x2c274e,_0x5711ed,_0x3947a0,{'dbName':_0x1ac859}),'path':_0x266771[_0x19f1c7(0x1ba)],'mode':_0x4ff441[_0x19f1c7(0x1a5)]},await archivePreviousSqlFileIfNeeded(_0x13f683,_0x4ff441[_0x19f1c7(0x1b9)],_0x266771[_0x19f1c7(0x1ba)]),_0x4fd794[_0x19f1c7(0x1aa)]({'sqlCode':_0x266771[_0x19f1c7(0x1c6)],'remoteId':_0x4ff441['remoteId']});}catch(_0x3da25c){_0x303e22[_0x19f1c7(0x1aa)]({'sqlCode':_0x266771[_0x19f1c7(0x1c6)],'error':_0x3da25c instanceof Error?_0x3da25c['message']:String(_0x3da25c)});}}return _0x367b82[_0x19f1c7(0x1d1)]=new Date()[_0x19f1c7(0x1bd)](),await writeSqlLockFile(_0x13f683[_0x19f1c7(0x1c5)],_0x7dc3e7),{'ok':_0x303e22[_0x19f1c7(0x1bf)]===0x0,'data':{'pushed':_0x4fd794,'skipped':_0xc58feb,'failed':_0x303e22},'message':'Push\x20complete:\x20'+_0x4fd794[_0x19f1c7(0x1bf)]+_0x19f1c7(0x1c0)+_0xc58feb[_0x19f1c7(0x1bf)]+_0x19f1c7(0x1bc)+_0x303e22['length']+_0x19f1c7(0x198)};}};async function archivePreviousSqlFileIfNeeded(_0x307ae4,_0x3ffe9a,_0x24804f){const _0x951c68=a198_0x3a3914;if(!_0x3ffe9a||_0x3ffe9a===_0x24804f)return;const _0x1ac22f=join(_0x307ae4[_0x951c68(0x1cb)],_0x3ffe9a);if(!await fileExists(_0x1ac22f))return;const _0x194586=await moveToTrash(_0x307ae4['projectRoot'],_0x307ae4[_0x951c68(0x1c3)],_0x1ac22f);await cleanupEmptyDirectories(dirname(_0x1ac22f),_0x307ae4['sqlRootDir']),void _0x194586;}async function moveToTrash(_0x6e05,_0x5d0384,_0x5ea9c4){const _0x1af636=a198_0x3a3914,_0x301244=new Date()[_0x1af636(0x1bd)]()[_0x1af636(0x1c7)](/[:.]/g,'-'),_0x10d78d=relative(_0x6e05,_0x5ea9c4),_0x133f22=join(_0x5d0384,_0x301244,_0x10d78d);return await mkdir(dirname(_0x133f22),{'recursive':!![]}),await rename(_0x5ea9c4,_0x133f22),_0x133f22;}async function cleanupEmptyDirectories(_0x371cf1,_0x34a1b1){const _0x260579=a198_0x3a3914;let _0x145d27=resolve(_0x371cf1);const _0x5d91c9=resolve(_0x34a1b1);while(_0x145d27[_0x260579(0x1cf)](''+_0x5d91c9+sep)||_0x145d27===_0x5d91c9){if(_0x145d27===_0x5d91c9)return;try{const _0x2d77e5=await readdir(_0x145d27);if(_0x2d77e5[_0x260579(0x1bf)]>0x0)return;await rmdir(_0x145d27);}catch{return;}_0x145d27=dirname(_0x145d27);}}async function resolveTargetDbBinding(_0x403e45,_0x182e34,_0x29688f){const _0x3258f2=a198_0x3a3914,_0x4f7d7b=_0x182e34[_0x3258f2(0x1b4)];if(!_0x4f7d7b)return{'dbId':_0x29688f[_0x3258f2(0x1cd)],'dbName':_0x29688f[_0x3258f2(0x1b0)]};const _0x8d9f34=buildDbDirectoryName(_0x29688f[_0x3258f2(0x1b0)],_0x29688f[_0x3258f2(0x1cd)]);if(_0x4f7d7b===_0x8d9f34)return{'dbId':_0x29688f['dbId'],'dbName':_0x29688f[_0x3258f2(0x1b0)]};const _0x572168=parseExplicitDbDirectory(_0x4f7d7b);if(_0x572168!=null)return{'dbId':_0x572168,'dbName':await getDbName(_0x403e45,_0x572168)[_0x3258f2(0x1a0)](()=>undefined)};const _0x276395=await listDatabases(_0x403e45),_0x1ca79b=_0x276395[_0x3258f2(0x1ce)](_0x1df8da=>buildDbDirectoryName(_0x1df8da[_0x3258f2(0x1b0)],_0x1df8da['dbId'])===_0x4f7d7b);if(_0x1ca79b['length']===0x1)return{'dbId':_0x1ca79b[0x0][_0x3258f2(0x1cd)],'dbName':_0x1ca79b[0x0][_0x3258f2(0x1b0)]};if(_0x1ca79b['length']===0x0)throw CliErrors[_0x3258f2(0x1b2)]('No\x20database\x20matches\x20local\x20directory\x20\x22'+_0x4f7d7b+_0x3258f2(0x192)+_0x182e34[_0x3258f2(0x1c6)]+'.');const _0x462ef4=_0x1ca79b['map'](_0x4ba436=>_0x4ba436[_0x3258f2(0x1b0)]+'\x20('+_0x4ba436[_0x3258f2(0x1cd)]+')')['join'](',\x20');throw CliErrors[_0x3258f2(0x1b2)](_0x3258f2(0x1ac)+_0x4f7d7b+_0x3258f2(0x19b)+_0x182e34['sqlCode']+':\x20'+_0x462ef4);}function parseExplicitDbDirectory(_0x2a4435){const _0xe0b13a=a198_0x3a3914,_0xb540bc=/^db-(\d+)$/[_0xe0b13a(0x1a7)](_0x2a4435);if(!_0xb540bc)return null;const _0xc76b2f=Number(_0xb540bc[0x1]);return Number['isFinite'](_0xc76b2f)&&_0xc76b2f>0x0?_0xc76b2f:null;}
@@ -1 +1 @@
1
- const a191_0x2923d2=a191_0x2224;(function(_0x112f6e,_0x42a51c){const _0x242d1f=a191_0x2224,_0x516a18=_0x112f6e();while(!![]){try{const _0x40795b=-parseInt(_0x242d1f(0x1a4))/0x1+-parseInt(_0x242d1f(0x1c2))/0x2*(parseInt(_0x242d1f(0x1c4))/0x3)+-parseInt(_0x242d1f(0x1c9))/0x4+-parseInt(_0x242d1f(0x1a7))/0x5+parseInt(_0x242d1f(0x1ad))/0x6*(-parseInt(_0x242d1f(0x1c8))/0x7)+-parseInt(_0x242d1f(0x1bd))/0x8+parseInt(_0x242d1f(0x1c5))/0x9;if(_0x40795b===_0x42a51c)break;else _0x516a18['push'](_0x516a18['shift']());}catch(_0x37cb95){_0x516a18['push'](_0x516a18['shift']());}}}(a191_0x3d7f,0xabc3a));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR=a191_0x2923d2(0x1a8);export function buildSqlLockEntry(_0x1bddbd,_0x3e3d15,_0x7adb13,_0x282112){const _0x272ff8=a191_0x2923d2,_0x258341=detectSqlMode(_0x3e3d15);return{'path':buildSqlRelativePath(_0x1bddbd[_0x272ff8(0x1c6)],_0x1bddbd[_0x272ff8(0x1b3)],_0x282112?.[_0x272ff8(0x1b6)],_0x258341,_0x1bddbd[_0x272ff8(0x1ba)]),'hash':_0x7adb13,'remoteId':_0x1bddbd['id'],'version':_0x1bddbd['version'],'dbId':Number(_0x1bddbd[_0x272ff8(0x1ba)]),'dbName':_0x282112?.['dbName'],'sqlName':_0x1bddbd['sqlName'],'sqlConfig':_0x1bddbd['sqlConfig']??undefined,'mode':_0x258341};}export function cloneSqlLockData(_0x5af817){const _0x1a3f65=a191_0x2923d2;return{'apps':Object[_0x1a3f65(0x1a6)](Object[_0x1a3f65(0x1a3)](_0x5af817[_0x1a3f65(0x1ab)])[_0x1a3f65(0x1b0)](([_0x5db0d0,_0x41330b])=>[_0x5db0d0,{'sqlRoot':_0x41330b[_0x1a3f65(0x1bf)],'lastSync':_0x41330b['lastSync'],'sqls':{..._0x41330b[_0x1a3f65(0x1b1)]}}]))};}function a191_0x3d7f(){const _0x30e782=['sqlCode','trimStart','132713MoXIlb','3694584OOkEjT','question','entries','604855iDxnOC','sqlContent','fromEntries','4927620xjwJzh','.rabetbase/sql','trim','\x20-->','apps','description','78iZeiit','filter','mode','map','sqls','stdin','sqlName','join','mybatisXml','dbName','replace','test','endsWith','dbId','syncedAt','--\x20@lovrabet.','903976hiccsn','path','sqlRoot','\x20[y/N]\x20','toLowerCase','2RowDZq','length','1440618NgnNmS','36515169lBAouS'];a191_0x3d7f=function(){return _0x30e782;};return a191_0x3d7f();}export function ensureRemoteSqlContent(_0x2568b7){const _0x3bd383=a191_0x2923d2;return _0x2568b7[_0x3bd383(0x1a5)]??'';}export function buildLocalSqlFileContent(_0x725794,_0x43a672,_0x330723){const _0x1b09dd=a191_0x2923d2,_0x37dab4=_0x330723?.[_0x1b09dd(0x1af)]??detectSqlMode(_0x43a672),_0x293139=stripLocalSqlMetadata(_0x43a672,_0x37dab4)['trim'](),_0x496c7f=[...buildMetadataHeaderLines({'sqlCode':_0x725794[_0x1b09dd(0x1c6)],'sqlName':_0x725794['sqlName'],'dbId':_0x725794[_0x1b09dd(0x1ba)],'dbName':_0x330723?.[_0x1b09dd(0x1b6)],'mode':_0x37dab4,'syncedAt':_0x330723?.[_0x1b09dd(0x1bb)],'description':_0x330723?.['description']},_0x37dab4),'',_0x293139],_0x2833f6=_0x496c7f[_0x1b09dd(0x1b4)]('\x0a');return _0x2833f6[_0x1b09dd(0x1b9)]('\x0a')?_0x2833f6:_0x2833f6+'\x0a';}export function stripLocalSqlMetadata(_0x51d7ae,_0x19fc44){const _0xb933e7=a191_0x2923d2,_0x51fa29=_0x51d7ae[_0xb933e7(0x1b7)](/\r\n/g,'\x0a')['split']('\x0a'),_0x4870b9=[];let _0x125443=0x0;if(_0x19fc44===_0xb933e7(0x1b5))while(_0x125443<_0x51fa29['length']){const _0x1f58df=_0x51fa29[_0x125443]??'';if(/^\s*<!--\s*@lovrabet\./[_0xb933e7(0x1b8)](_0x1f58df)){_0x125443++;continue;}if(_0x1f58df[_0xb933e7(0x1a9)]()===''&&_0x125443>0x0){_0x125443++;continue;}break;}else while(_0x125443<_0x51fa29[_0xb933e7(0x1c3)]){const _0x3e462c=_0x51fa29[_0x125443]??'';if(/^\s*--\s*@lovrabet\./[_0xb933e7(0x1b8)](_0x3e462c)){_0x125443++;continue;}if(_0x3e462c[_0xb933e7(0x1a9)]()===''&&_0x125443>0x0){_0x125443++;continue;}break;}for(;_0x125443<_0x51fa29[_0xb933e7(0x1c3)];_0x125443++){_0x4870b9['push'](_0x51fa29[_0x125443]);}return _0x4870b9['join']('\x0a')[_0xb933e7(0x1c7)]();}export function resolveSqlMode(_0x17c45c,_0x27e8bc){const _0x4ef1c8=a191_0x2923d2;if(_0x27e8bc?.['mode'])return _0x27e8bc[_0x4ef1c8(0x1af)];return detectSqlMode(_0x17c45c);}export function resolveSqlFileName(_0xdc2574,_0x2a61e3,_0x4ed810){const _0xf21d77=a191_0x2923d2;if(_0x4ed810?.[_0xf21d77(0x1be)])return _0x4ed810['path'];if(_0x4ed810?.[_0xf21d77(0x1b3)]||_0x4ed810?.[_0xf21d77(0x1b6)])return buildSqlRelativePath(_0xdc2574,_0x4ed810?.[_0xf21d77(0x1b3)],_0x4ed810?.[_0xf21d77(0x1b6)],resolveSqlMode(_0x2a61e3,_0x4ed810),_0x4ed810?.[_0xf21d77(0x1ba)]);return buildDefaultSqlFileName(_0xdc2574,resolveSqlMode(_0x2a61e3,_0x4ed810));}export function resolveSqlLocalDir(_0x14a3c8,_0x382727){return join(_0x14a3c8,SQL_LOCAL_REL_DIR,_0x382727);}export async function confirmForceOverwrite(_0x2ca30f){const _0x5c3d5f=a191_0x2923d2,_0x3f8705=createInterface({'input':process[_0x5c3d5f(0x1b2)],'output':process['stderr']}),_0x15a860=await new Promise(_0x21e0a0=>{const _0x39cc62=_0x5c3d5f;_0x3f8705[_0x39cc62(0x1a2)](_0x2ca30f+_0x39cc62(0x1c0),_0x21e0a0);});return _0x3f8705['close'](),['y','yes']['includes'](_0x15a860['trim']()[_0x5c3d5f(0x1c1)]());}function a191_0x2224(_0x2b80ce,_0x38ef1a){_0x2b80ce=_0x2b80ce-0x1a2;const _0x3d7f3e=a191_0x3d7f();let _0x22246e=_0x3d7f3e[_0x2b80ce];return _0x22246e;}export function findSqlLockScope(_0x47a2b6,_0x11845e){const _0xdd3552=a191_0x2923d2;return _0x47a2b6[_0xdd3552(0x1ab)][_0x11845e];}function buildMetadataHeaderLines(_0x517df9,_0x158843){const _0x2dcfea=a191_0x2923d2,_0x3e8c01=[[_0x2dcfea(0x1c6),_0x517df9[_0x2dcfea(0x1c6)]],[_0x2dcfea(0x1b3),_0x517df9['sqlName']],[_0x2dcfea(0x1ba),_0x517df9['dbId']],[_0x2dcfea(0x1b6),_0x517df9['dbName']],['mode',_0x517df9[_0x2dcfea(0x1af)]],[_0x2dcfea(0x1bb),_0x517df9[_0x2dcfea(0x1bb)]],[_0x2dcfea(0x1ac),_0x517df9[_0x2dcfea(0x1ac)]]];if(_0x158843==='mybatisXml')return _0x3e8c01[_0x2dcfea(0x1ae)](([,_0x500d2e])=>_0x500d2e!==undefined&&_0x500d2e!==null&&String(_0x500d2e)[_0x2dcfea(0x1a9)]()!=='')['map'](([_0x1e7f9b,_0x3524ba])=>'<!--\x20@lovrabet.'+_0x1e7f9b+':\x20'+String(_0x3524ba)+_0x2dcfea(0x1aa));return _0x3e8c01[_0x2dcfea(0x1ae)](([,_0x2b20af])=>_0x2b20af!==undefined&&_0x2b20af!==null&&String(_0x2b20af)[_0x2dcfea(0x1a9)]()!=='')[_0x2dcfea(0x1b0)](([_0x2f5e2c,_0xb28bdd])=>_0x2dcfea(0x1bc)+_0x2f5e2c+':\x20'+String(_0xb28bdd));}
1
+ const a199_0x31d501=a199_0x8875;(function(_0x3a0e13,_0x5b599b){const _0x486215=a199_0x8875,_0xe7500=_0x3a0e13();while(!![]){try{const _0x154add=parseInt(_0x486215(0xfe))/0x1+-parseInt(_0x486215(0xfd))/0x2+-parseInt(_0x486215(0xfb))/0x3*(parseInt(_0x486215(0x10d))/0x4)+parseInt(_0x486215(0xfa))/0x5*(parseInt(_0x486215(0x119))/0x6)+-parseInt(_0x486215(0xf5))/0x7+parseInt(_0x486215(0x100))/0x8+-parseInt(_0x486215(0x10f))/0x9*(-parseInt(_0x486215(0xf1))/0xa);if(_0x154add===_0x5b599b)break;else _0xe7500['push'](_0xe7500['shift']());}catch(_0x2b38e3){_0xe7500['push'](_0xe7500['shift']());}}}(a199_0x1824,0xcfaad));function a199_0x8875(_0x53c981,_0x3a7134){_0x53c981=_0x53c981-0xf1;const _0x18244d=a199_0x1824();let _0x887553=_0x18244d[_0x53c981];return _0x887553;}import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR=a199_0x31d501(0x10b);export function buildSqlLockEntry(_0x4ae059,_0x4cfc58,_0x1c2f16,_0x48cec3){const _0x14390d=a199_0x31d501,_0x5950da=detectSqlMode(_0x4cfc58);return{'path':buildSqlRelativePath(_0x4ae059[_0x14390d(0x117)],_0x4ae059[_0x14390d(0x110)],_0x48cec3?.[_0x14390d(0xff)],_0x5950da,_0x4ae059['dbId']),'hash':_0x1c2f16,'remoteId':_0x4ae059['id'],'version':_0x4ae059[_0x14390d(0x113)],'dbId':Number(_0x4ae059[_0x14390d(0xf4)]),'dbName':_0x48cec3?.[_0x14390d(0xff)],'sqlName':_0x4ae059[_0x14390d(0x110)],'sqlConfig':_0x4ae059['sqlConfig']??undefined,'mode':_0x5950da};}export function cloneSqlLockData(_0xfedd7c){const _0xfbe808=a199_0x31d501;return{'apps':Object[_0xfbe808(0x107)](Object['entries'](_0xfedd7c[_0xfbe808(0xf2)])[_0xfbe808(0xf6)](([_0x3ec3cc,_0xac5f9])=>[_0x3ec3cc,{'sqlRoot':_0xac5f9[_0xfbe808(0x108)],'lastSync':_0xac5f9[_0xfbe808(0xfc)],'sqls':{..._0xac5f9['sqls']}}]))};}export function ensureRemoteSqlContent(_0x3428f3){return _0x3428f3['sqlContent']??'';}function a199_0x1824(){const _0x460e95=['version','\x20-->','mybatisXml','length','sqlCode','<!--\x20@lovrabet.','24jYjTpR','path','yes','6354410vmWiYk','apps','push','dbId','7835485bRzRzh','map','replace','join','description','557565qTghJO','194124yPjVGB','lastSync','1789110nThDll','1512129ZNzTdL','dbName','13038088UNQCtP','stderr','mode','\x20[y/N]\x20','split','syncedAt','trim','fromEntries','sqlRoot','trimStart','stdin','.rabetbase/sql','test','84JoTwxT','question','9HrBmbZ','sqlName','filter','toLowerCase'];a199_0x1824=function(){return _0x460e95;};return a199_0x1824();}export function buildLocalSqlFileContent(_0x5901f4,_0x440683,_0x51d651){const _0x4207d9=a199_0x31d501,_0x1c3df4=_0x51d651?.[_0x4207d9(0x102)]??detectSqlMode(_0x440683),_0x59cf68=stripLocalSqlMetadata(_0x440683,_0x1c3df4)['trim'](),_0x60f002=[...buildMetadataHeaderLines({'sqlCode':_0x5901f4[_0x4207d9(0x117)],'sqlName':_0x5901f4[_0x4207d9(0x110)],'dbId':_0x5901f4[_0x4207d9(0xf4)],'dbName':_0x51d651?.['dbName'],'mode':_0x1c3df4,'syncedAt':_0x51d651?.[_0x4207d9(0x105)],'description':_0x51d651?.['description']},_0x1c3df4),'',_0x59cf68],_0xe5a10f=_0x60f002['join']('\x0a');return _0xe5a10f['endsWith']('\x0a')?_0xe5a10f:_0xe5a10f+'\x0a';}export function stripLocalSqlMetadata(_0x19ee3b,_0x127cbe){const _0x3c7977=a199_0x31d501,_0x4ef3d2=_0x19ee3b[_0x3c7977(0xf7)](/\r\n/g,'\x0a')[_0x3c7977(0x104)]('\x0a'),_0x3130db=[];let _0x57e0e1=0x0;if(_0x127cbe===_0x3c7977(0x115))while(_0x57e0e1<_0x4ef3d2[_0x3c7977(0x116)]){const _0x5ac6fe=_0x4ef3d2[_0x57e0e1]??'';if(/^\s*<!--\s*@lovrabet\./[_0x3c7977(0x10c)](_0x5ac6fe)){_0x57e0e1++;continue;}if(_0x5ac6fe['trim']()===''&&_0x57e0e1>0x0){_0x57e0e1++;continue;}break;}else while(_0x57e0e1<_0x4ef3d2[_0x3c7977(0x116)]){const _0x325616=_0x4ef3d2[_0x57e0e1]??'';if(/^\s*--\s*@lovrabet\./['test'](_0x325616)){_0x57e0e1++;continue;}if(_0x325616[_0x3c7977(0x106)]()===''&&_0x57e0e1>0x0){_0x57e0e1++;continue;}break;}for(;_0x57e0e1<_0x4ef3d2[_0x3c7977(0x116)];_0x57e0e1++){_0x3130db[_0x3c7977(0xf3)](_0x4ef3d2[_0x57e0e1]);}return _0x3130db[_0x3c7977(0xf8)]('\x0a')[_0x3c7977(0x109)]();}export function resolveSqlMode(_0x20fd0f,_0x5685ec){if(_0x5685ec?.['mode'])return _0x5685ec['mode'];return detectSqlMode(_0x20fd0f);}export function resolveSqlFileName(_0x51380b,_0xc434a,_0x392eb5){const _0x7bb3ab=a199_0x31d501;if(_0x392eb5?.[_0x7bb3ab(0x11a)])return _0x392eb5[_0x7bb3ab(0x11a)];if(_0x392eb5?.['sqlName']||_0x392eb5?.[_0x7bb3ab(0xff)])return buildSqlRelativePath(_0x51380b,_0x392eb5?.[_0x7bb3ab(0x110)],_0x392eb5?.[_0x7bb3ab(0xff)],resolveSqlMode(_0xc434a,_0x392eb5),_0x392eb5?.[_0x7bb3ab(0xf4)]);return buildDefaultSqlFileName(_0x51380b,resolveSqlMode(_0xc434a,_0x392eb5));}export function resolveSqlLocalDir(_0x1d0116,_0x2c601a){return join(_0x1d0116,SQL_LOCAL_REL_DIR,_0x2c601a);}export async function confirmForceOverwrite(_0x2faaa3){const _0x2d8378=a199_0x31d501,_0x54ec86=createInterface({'input':process[_0x2d8378(0x10a)],'output':process[_0x2d8378(0x101)]}),_0x4ca052=await new Promise(_0x5245e6=>{const _0x1edd52=_0x2d8378;_0x54ec86[_0x1edd52(0x10e)](_0x2faaa3+_0x1edd52(0x103),_0x5245e6);});return _0x54ec86['close'](),['y',_0x2d8378(0x11b)]['includes'](_0x4ca052[_0x2d8378(0x106)]()[_0x2d8378(0x112)]());}export function findSqlLockScope(_0x5c871b,_0x408130){return _0x5c871b['apps'][_0x408130];}function buildMetadataHeaderLines(_0x230fcf,_0x37a272){const _0x5bae9a=a199_0x31d501,_0x3717fd=[[_0x5bae9a(0x117),_0x230fcf[_0x5bae9a(0x117)]],[_0x5bae9a(0x110),_0x230fcf[_0x5bae9a(0x110)]],[_0x5bae9a(0xf4),_0x230fcf[_0x5bae9a(0xf4)]],['dbName',_0x230fcf[_0x5bae9a(0xff)]],[_0x5bae9a(0x102),_0x230fcf[_0x5bae9a(0x102)]],[_0x5bae9a(0x105),_0x230fcf[_0x5bae9a(0x105)]],[_0x5bae9a(0xf9),_0x230fcf[_0x5bae9a(0xf9)]]];if(_0x37a272==='mybatisXml')return _0x3717fd[_0x5bae9a(0x111)](([,_0x4da029])=>_0x4da029!==undefined&&_0x4da029!==null&&String(_0x4da029)[_0x5bae9a(0x106)]()!=='')[_0x5bae9a(0xf6)](([_0x3962e1,_0x15a03f])=>_0x5bae9a(0x118)+_0x3962e1+':\x20'+String(_0x15a03f)+_0x5bae9a(0x114));return _0x3717fd[_0x5bae9a(0x111)](([,_0x3d195b])=>_0x3d195b!==undefined&&_0x3d195b!==null&&String(_0x3d195b)[_0x5bae9a(0x106)]()!=='')[_0x5bae9a(0xf6)](([_0x47715b,_0x571a8c])=>'--\x20@lovrabet.'+_0x47715b+':\x20'+String(_0x571a8c));}
@@ -1 +1 @@
1
- const a192_0x5376a4=a192_0x23fe;(function(_0x5a55d1,_0x20c646){const _0x4ba6f6=a192_0x23fe,_0x30f1fa=_0x5a55d1();while(!![]){try{const _0x4fba4b=parseInt(_0x4ba6f6(0x1aa))/0x1+-parseInt(_0x4ba6f6(0x1b1))/0x2*(-parseInt(_0x4ba6f6(0x1bc))/0x3)+-parseInt(_0x4ba6f6(0x1b3))/0x4+-parseInt(_0x4ba6f6(0x1b8))/0x5*(parseInt(_0x4ba6f6(0x1a5))/0x6)+parseInt(_0x4ba6f6(0x1c4))/0x7+-parseInt(_0x4ba6f6(0x1ac))/0x8+parseInt(_0x4ba6f6(0x1ae))/0x9;if(_0x4fba4b===_0x20c646)break;else _0x30f1fa['push'](_0x30f1fa['shift']());}catch(_0x16face){_0x30f1fa['push'](_0x30f1fa['shift']());}}}(a192_0x20a2,0x4127d));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';function a192_0x20a2(){const _0x549e42=['1273853Gocjdu','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','length','remote','lockKey','filePath','1722uWIqoR','sqlCode','read','path','keys','167793dcVRat','sqls','807864JsaZCv','has','7162767VEyrJf','sqlName','boolean','97982tTjjFs','paging','2099024yKCiXG','totalCount','status','sql','appCode','6115bDhhOg','\x20missing,\x20','sqlRoot','relativePath','6rsBYJx','tableData','push','map','bool','All\x20SQL\x20queries\x20are\x20in\x20sync.','\x20remote-only','hash'];a192_0x20a2=function(){return _0x549e42;};return a192_0x20a2();}import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a192_0x23fe(_0x253697,_0x7bc9d7){_0x253697=_0x253697-0x1a0;const _0x20a25a=a192_0x20a2();let _0x23fec5=_0x20a25a[_0x253697];return _0x23fec5;}async function fetchAllSqlCodes(_0x2033d4){const _0x16eb50=a192_0x23fe,_0x3339a2=[];let _0x55a383=0x1;while(!![]){const _0x4cacff=await listSqlQueries(_0x2033d4,{'currentPage':_0x55a383,'pageSize':PAGE_SIZE}),_0x2abf79=_0x4cacff[_0x16eb50(0x1bd)]??[];_0x3339a2['push'](..._0x2abf79['map'](_0x2fbc02=>_0x2fbc02[_0x16eb50(0x1a6)]));if(_0x2abf79['length']===0x0)break;const _0x1b934b=_0x4cacff[_0x16eb50(0x1b2)]?.[_0x16eb50(0x1b4)];if(_0x1b934b!=null?_0x3339a2[_0x16eb50(0x1a1)]>=_0x1b934b:_0x2abf79[_0x16eb50(0x1a1)]<PAGE_SIZE)break;_0x55a383++;}return _0x3339a2;}export const sqlStatus={'service':a192_0x5376a4(0x1b6),'command':a192_0x5376a4(0x1b5),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a192_0x5376a4(0x1a7),'flags':[{'name':a192_0x5376a4(0x1a2),'type':a192_0x5376a4(0x1b0),'description':a192_0x5376a4(0x1a0)}],async 'execute'(_0x300041){const _0x5778f0=a192_0x5376a4,_0x20d156=loadSqlProjectConfig(_0x300041[_0x5778f0(0x1b7)]),_0x27dec5=await readSqlLockFile(_0x20d156['lockFilePath']),{appLock:_0x16c9b7}=ensureSqlLockScope(_0x27dec5??createEmptySqlLock(),_0x20d156[_0x5778f0(0x1b7)],_0x20d156[_0x5778f0(0x1ba)],_0x5778f0(0x1b5)),_0xad9c53=await scanLocalSqlQueries(_0x20d156),_0x38acc3=[],_0x305e0c=[],_0xbb10a2=[],_0x48ccc9=[],_0x3897db=new Set(_0xad9c53[_0x5778f0(0x1bf)](_0x303c82=>_0x303c82[_0x5778f0(0x1a3)]));for(const _0x365b3b of _0xad9c53){const _0x4cf5ff=await computeSqlFileHash(_0x365b3b[_0x5778f0(0x1a4)]),_0x7c889b=_0x16c9b7['sqls'][_0x365b3b[_0x5778f0(0x1a3)]],_0x1976cc=!!_0x7c889b&&_0x7c889b[_0x5778f0(0x1a8)]!==_0x365b3b[_0x5778f0(0x1bb)],_0x5be835=!!_0x7c889b&&!!_0x365b3b[_0x5778f0(0x1af)]&&_0x7c889b['sqlName']!==_0x365b3b[_0x5778f0(0x1af)];if(!_0x7c889b)_0x38acc3[_0x5778f0(0x1be)](_0x365b3b[_0x5778f0(0x1a3)]);else _0x7c889b[_0x5778f0(0x1c3)]!==_0x4cf5ff||_0x1976cc||_0x5be835?_0x305e0c[_0x5778f0(0x1be)](_0x365b3b[_0x5778f0(0x1a3)]):_0xbb10a2[_0x5778f0(0x1be)](_0x365b3b[_0x5778f0(0x1a3)]);}for(const _0x2184df of Object[_0x5778f0(0x1a9)](_0x16c9b7['sqls'])){!_0x3897db[_0x5778f0(0x1ad)](_0x2184df)&&_0x48ccc9[_0x5778f0(0x1be)](_0x2184df);}const _0x3ed3da=[];if(_0x300041[_0x5778f0(0x1c0)](_0x5778f0(0x1a2))){const _0x3007b1=await fetchAllSqlCodes(_0x300041['appCode']);for(const _0x277192 of _0x3007b1){!_0x3897db['has'](_0x277192)&&!_0x16c9b7[_0x5778f0(0x1ab)][_0x277192]&&_0x3ed3da[_0x5778f0(0x1be)](_0x277192);}}const _0x35e830=_0x38acc3['length']===0x0&&_0x305e0c[_0x5778f0(0x1a1)]===0x0&&_0x48ccc9[_0x5778f0(0x1a1)]===0x0&&_0x3ed3da[_0x5778f0(0x1a1)]===0x0;return{'ok':!![],'data':{'added':_0x38acc3,'modified':_0x305e0c,'missing':_0x48ccc9,'unchanged':_0xbb10a2,'remoteOnly':_0x3ed3da},'message':_0x35e830?_0x5778f0(0x1c1):_0x38acc3[_0x5778f0(0x1a1)]+'\x20added,\x20'+_0x305e0c[_0x5778f0(0x1a1)]+'\x20modified,\x20'+_0x48ccc9['length']+_0x5778f0(0x1b9)+_0xbb10a2[_0x5778f0(0x1a1)]+'\x20unchanged'+(_0x3ed3da['length']>0x0?',\x20'+_0x3ed3da[_0x5778f0(0x1a1)]+_0x5778f0(0x1c2):'')};}};
1
+ const a200_0x1dcb87=a200_0x2004;(function(_0x3d66f1,_0x950c76){const _0x23466f=a200_0x2004,_0x253a22=_0x3d66f1();while(!![]){try{const _0x217f9d=-parseInt(_0x23466f(0x88))/0x1+parseInt(_0x23466f(0x82))/0x2+-parseInt(_0x23466f(0x75))/0x3+-parseInt(_0x23466f(0x90))/0x4+-parseInt(_0x23466f(0x84))/0x5+-parseInt(_0x23466f(0x83))/0x6+-parseInt(_0x23466f(0x8e))/0x7*(-parseInt(_0x23466f(0x7f))/0x8);if(_0x217f9d===_0x950c76)break;else _0x253a22['push'](_0x253a22['shift']());}catch(_0x5be1dd){_0x253a22['push'](_0x253a22['shift']());}}}(a200_0x2d39,0xb9729));function a200_0x2d39(){const _0x9fdd45=['\x20unchanged','hash','totalCount','3467946aHxuCx','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','status','length','has','path','sqls','push','sqlName','tableData','104184idQxUr','appCode','sqlRoot','1841498WZBtDr','4972170zjXAKj','552730miVZgl','\x20modified,\x20','map','remote','1113443hoRmkw','All\x20SQL\x20queries\x20are\x20in\x20sync.','lockKey','sql','read','boolean','2212QeVZCA','\x20added,\x20','4271032HxhwzM','sqlCode','paging','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','bool','relativePath'];a200_0x2d39=function(){return _0x9fdd45;};return a200_0x2d39();}import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';function a200_0x2004(_0x4df51d,_0x886584){_0x4df51d=_0x4df51d-0x6d;const _0x2d396e=a200_0x2d39();let _0x200431=_0x2d396e[_0x4df51d];return _0x200431;}import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x1adc17){const _0x509edb=a200_0x2004,_0x1f2f29=[];let _0xee969b=0x1;while(!![]){const _0x49d721=await listSqlQueries(_0x1adc17,{'currentPage':_0xee969b,'pageSize':PAGE_SIZE}),_0x5b9383=_0x49d721[_0x509edb(0x7e)]??[];_0x1f2f29['push'](..._0x5b9383['map'](_0x26af24=>_0x26af24[_0x509edb(0x6d)]));if(_0x5b9383['length']===0x0)break;const _0x27e8d7=_0x49d721[_0x509edb(0x6e)]?.[_0x509edb(0x74)];if(_0x27e8d7!=null?_0x1f2f29['length']>=_0x27e8d7:_0x5b9383[_0x509edb(0x78)]<PAGE_SIZE)break;_0xee969b++;}return _0x1f2f29;}export const sqlStatus={'service':a200_0x1dcb87(0x8b),'command':a200_0x1dcb87(0x77),'description':a200_0x1dcb87(0x6f),'risk':a200_0x1dcb87(0x8c),'flags':[{'name':a200_0x1dcb87(0x87),'type':a200_0x1dcb87(0x8d),'description':a200_0x1dcb87(0x76)}],async 'execute'(_0x4e47aa){const _0x283119=a200_0x1dcb87,_0x14953c=loadSqlProjectConfig(_0x4e47aa[_0x283119(0x80)]),_0x5cd7ba=await readSqlLockFile(_0x14953c['lockFilePath']),{appLock:_0x356945}=ensureSqlLockScope(_0x5cd7ba??createEmptySqlLock(),_0x14953c[_0x283119(0x80)],_0x14953c[_0x283119(0x81)],_0x283119(0x77)),_0xe87fa=await scanLocalSqlQueries(_0x14953c),_0x1a4991=[],_0x28768a=[],_0x3130b1=[],_0x407ed7=[],_0x2446bf=new Set(_0xe87fa[_0x283119(0x86)](_0x2bd170=>_0x2bd170[_0x283119(0x8a)]));for(const _0x1ab385 of _0xe87fa){const _0xe90d89=await computeSqlFileHash(_0x1ab385['filePath']),_0x18b080=_0x356945['sqls'][_0x1ab385[_0x283119(0x8a)]],_0x5b5ff9=!!_0x18b080&&_0x18b080[_0x283119(0x7a)]!==_0x1ab385[_0x283119(0x71)],_0x4e43be=!!_0x18b080&&!!_0x1ab385['sqlName']&&_0x18b080['sqlName']!==_0x1ab385[_0x283119(0x7d)];if(!_0x18b080)_0x1a4991[_0x283119(0x7c)](_0x1ab385[_0x283119(0x8a)]);else _0x18b080[_0x283119(0x73)]!==_0xe90d89||_0x5b5ff9||_0x4e43be?_0x28768a[_0x283119(0x7c)](_0x1ab385[_0x283119(0x8a)]):_0x3130b1['push'](_0x1ab385[_0x283119(0x8a)]);}for(const _0x54fca6 of Object['keys'](_0x356945[_0x283119(0x7b)])){!_0x2446bf[_0x283119(0x79)](_0x54fca6)&&_0x407ed7['push'](_0x54fca6);}const _0x4d0d6d=[];if(_0x4e47aa[_0x283119(0x70)](_0x283119(0x87))){const _0x4ad60b=await fetchAllSqlCodes(_0x4e47aa[_0x283119(0x80)]);for(const _0x169a00 of _0x4ad60b){!_0x2446bf[_0x283119(0x79)](_0x169a00)&&!_0x356945['sqls'][_0x169a00]&&_0x4d0d6d[_0x283119(0x7c)](_0x169a00);}}const _0x380c1f=_0x1a4991['length']===0x0&&_0x28768a[_0x283119(0x78)]===0x0&&_0x407ed7[_0x283119(0x78)]===0x0&&_0x4d0d6d['length']===0x0;return{'ok':!![],'data':{'added':_0x1a4991,'modified':_0x28768a,'missing':_0x407ed7,'unchanged':_0x3130b1,'remoteOnly':_0x4d0d6d},'message':_0x380c1f?_0x283119(0x89):_0x1a4991[_0x283119(0x78)]+_0x283119(0x8f)+_0x28768a[_0x283119(0x78)]+_0x283119(0x85)+_0x407ed7[_0x283119(0x78)]+'\x20missing,\x20'+_0x3130b1[_0x283119(0x78)]+_0x283119(0x72)+(_0x4d0d6d[_0x283119(0x78)]>0x0?',\x20'+_0x4d0d6d[_0x283119(0x78)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- function a193_0x1dd9(_0x8ced03,_0x5378cc){_0x8ced03=_0x8ced03-0x19c;const _0x27f32c=a193_0x27f3();let _0x1dd978=_0x27f32c[_0x8ced03];return _0x1dd978;}const a193_0x503fb4=a193_0x1dd9;(function(_0x2a7ecf,_0x1a7d4e){const _0xc20214=a193_0x1dd9,_0x2f5957=_0x2a7ecf();while(!![]){try{const _0xc581f7=parseInt(_0xc20214(0x19d))/0x1+-parseInt(_0xc20214(0x1c2))/0x2*(-parseInt(_0xc20214(0x1d1))/0x3)+parseInt(_0xc20214(0x1c6))/0x4+parseInt(_0xc20214(0x1e1))/0x5+-parseInt(_0xc20214(0x1cd))/0x6+parseInt(_0xc20214(0x1b0))/0x7*(-parseInt(_0xc20214(0x1ac))/0x8)+-parseInt(_0xc20214(0x1ca))/0x9*(parseInt(_0xc20214(0x1aa))/0xa);if(_0xc581f7===_0x1a7d4e)break;else _0x2f5957['push'](_0x2f5957['shift']());}catch(_0x5ebf36){_0x2f5957['push'](_0x2f5957['shift']());}}}(a193_0x27f3,0xb0a9c));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a193_0x27f3(){const _0x3d90e7=['size','929051fRhYAE','columnNames','bool','parameters','Table\x20\x22','index_type','cwd','Provide\x20--file\x20or\x20--sql','tables','isSelectOnly','file','Dataset\x20\x22','schemas','51010RizkbV','from','4486128PuSHVf','primary','fields','boolean','14tRklZk','File\x20not\x20found:\x20','sql','joinAudit','sqlType','indexName','type','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','SQL\x20schema\x20validation','push','length','index_columns','get','indexes','isDangerous','unshift','dbtableConfig','1391448USoBoA','index_name','validate','tableName','773828dlwVwO','\x22\x20not\x20found\x20in\x20any\x20dataset','split','validation','225kqsLQs','appCode','isArray','3467268wbdPhq','flatMap','pkField','toLowerCase','6uxGOJs','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','--check-indexes\x20requires\x20--schemas.','\x22\x20not\x20found\x20or\x20not\x20accessible','valid','string','map','filter','message','str','trim','name','columns','schemaWarnings','read','reason','182955vvbRaz','find'];a193_0x27f3=function(){return _0x3d90e7;};return a193_0x27f3();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':'sql','command':a193_0x503fb4(0x1c4),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a193_0x503fb4(0x1df),'flags':[{'name':a193_0x503fb4(0x1a7),'type':a193_0x503fb4(0x1d6),'description':a193_0x503fb4(0x1b7)},{'name':'sql','type':a193_0x503fb4(0x1d6),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a193_0x503fb4(0x1a9),'type':a193_0x503fb4(0x1d6),'description':a193_0x503fb4(0x1d2)},{'name':'check-indexes','type':a193_0x503fb4(0x1af),'description':a193_0x503fb4(0x1b8)}],async 'execute'(_0x44a6e1){const _0x1a5043=a193_0x503fb4,_0x485a88=_0x44a6e1[_0x1a5043(0x1da)](_0x1a5043(0x1a7)),_0x4464df=_0x44a6e1[_0x1a5043(0x1da)](_0x1a5043(0x1b2)),_0x46811b=_0x44a6e1[_0x1a5043(0x1da)]('schemas'),_0x3c8d7d=_0x44a6e1[_0x1a5043(0x19f)]('check-indexes');if(!_0x485a88&&!_0x4464df)throw CliErrors['flagMissing'](_0x1a5043(0x1a7),_0x1a5043(0x1a4));if(_0x3c8d7d&&!_0x46811b)throw CliErrors[_0x1a5043(0x1c9)](_0x1a5043(0x1d3));let _0x186cbb;if(_0x485a88){const _0x1ff881=resolve(process[_0x1a5043(0x1a3)](),_0x485a88);if(!existsSync(_0x1ff881))throw CliErrors[_0x1a5043(0x1c9)](_0x1a5043(0x1b1)+_0x1ff881);_0x186cbb=readFileSync(_0x1ff881,'utf-8');}else _0x186cbb=_0x4464df;const _0x1f05c4=validateSql(_0x186cbb),_0x2fdb9f={'valid':_0x1f05c4[_0x1a5043(0x1d5)],'sqlType':_0x1f05c4['sqlType'][_0x1a5043(0x1b6)],'isSelectOnly':_0x1f05c4[_0x1a5043(0x1b4)][_0x1a5043(0x1a6)],'isDangerous':_0x1f05c4['sqlType'][_0x1a5043(0x1bf)],'tables':_0x1f05c4[_0x1a5043(0x1a5)],'parameters':_0x1f05c4[_0x1a5043(0x1a0)],'message':_0x1f05c4['message']};_0x1f05c4['sqlType']['reason']&&(_0x2fdb9f['reason']=_0x1f05c4[_0x1a5043(0x1b4)][_0x1a5043(0x1e0)]);if(_0x46811b&&_0x1f05c4['valid']){const _0x5d9c8d=_0x46811b[_0x1a5043(0x1c8)](',')[_0x1a5043(0x1d7)](_0xdd7411=>_0xdd7411[_0x1a5043(0x1db)]())[_0x1a5043(0x1d8)](Boolean),_0x2e25ec=[],_0x139db5=[],_0x425872=filterDbTableBackedDatasets(await listDatasets(_0x44a6e1[_0x1a5043(0x1cb)])),_0x3f2a8f=new Map(_0x425872[_0x1a5043(0x1d7)](_0xb8d732=>[_0xb8d732[_0x1a5043(0x1c1)]?.[_0x1a5043(0x1c5)]?.[_0x1a5043(0x1d0)](),_0xb8d732]));for(const _0x2fa044 of _0x1f05c4[_0x1a5043(0x1a5)]){const _0x3277f2=_0x3f2a8f[_0x1a5043(0x1bd)](_0x2fa044['toLowerCase']());!_0x3277f2&&_0x2e25ec['push'](_0x1a5043(0x1a1)+_0x2fa044+_0x1a5043(0x1c7));}for(const _0x266ccf of _0x5d9c8d){let _0x142bbc;try{_0x142bbc=await getDatasetDetail(_0x266ccf);}catch{_0x2e25ec[_0x1a5043(0x1ba)](_0x1a5043(0x1a8)+_0x266ccf+_0x1a5043(0x1d4));continue;}assertDatasetIsDbTableBacked(_0x142bbc,_0x1a5043(0x1b9));const _0x23deaf=Array['isArray'](_0x142bbc[_0x1a5043(0x1ae)])?_0x142bbc['fields']:[],_0x47d02f=new Set(_0x23deaf[_0x1a5043(0x1d7)](_0x252bff=>_0x252bff['name']?.[_0x1a5043(0x1d0)]())),_0x316121=_0x142bbc['dbtableConfig']?.[_0x1a5043(0x1c5)]||_0x142bbc[_0x1a5043(0x1c5)]||_0x266ccf;_0x2fdb9f['schema:'+_0x316121]={'code':_0x266ccf,'tableName':_0x316121,'fieldCount':_0x47d02f[_0x1a5043(0x19c)],'fields':Array[_0x1a5043(0x1ab)](_0x47d02f)};if(_0x3c8d7d){const _0x440e1=normalizeDatasetIndexes(_0x142bbc);_0x139db5[_0x1a5043(0x1ba)]({'tableName':_0x316121,..._0x440e1});}}_0x2e25ec['length']>0x0&&(_0x2fdb9f[_0x1a5043(0x1de)]=_0x2e25ec),_0x3c8d7d&&(_0x2fdb9f[_0x1a5043(0x1b3)]=auditSqlJoinIndexes(_0x186cbb,_0x139db5));}return{'ok':_0x1f05c4['valid'],'data':_0x2fdb9f,'message':_0x1f05c4[_0x1a5043(0x1d9)]};}};function normalizeDatasetIndexes(_0x532271){const _0x121a4d=a193_0x503fb4,_0x32faed=Array[_0x121a4d(0x1cc)](_0x532271?.['dataset']?.['indexes'])?_0x532271['dataset'][_0x121a4d(0x1be)]:Array[_0x121a4d(0x1cc)](_0x532271?.[_0x121a4d(0x1be)])?_0x532271[_0x121a4d(0x1be)]:[],_0x24a234=_0x32faed[_0x121a4d(0x1ce)](_0x2c5e82=>{const _0x12fd95=_0x121a4d,_0x329f30=Array['isArray'](_0x2c5e82?.[_0x12fd95(0x1bc)])?_0x2c5e82[_0x12fd95(0x1bc)]:Array['isArray'](_0x2c5e82?.[_0x12fd95(0x19e)])?_0x2c5e82[_0x12fd95(0x19e)]:Array[_0x12fd95(0x1cc)](_0x2c5e82?.['columns'])?_0x2c5e82[_0x12fd95(0x1dd)]:[],_0xc7f556=_0x329f30[_0x12fd95(0x1d8)](_0x4c16ca=>typeof _0x4c16ca===_0x12fd95(0x1d6))[_0x12fd95(0x1d7)](_0x1410aa=>_0x1410aa['trim']())[_0x12fd95(0x1d8)](Boolean);if(_0xc7f556[_0x12fd95(0x1bb)]===0x0)return[];const _0x38e948=[_0x2c5e82?.[_0x12fd95(0x1b5)],_0x2c5e82?.[_0x12fd95(0x1c3)],_0x2c5e82?.[_0x12fd95(0x1dc)]][_0x12fd95(0x1e2)](_0x1bc9f6=>typeof _0x1bc9f6===_0x12fd95(0x1d6)&&_0x1bc9f6[_0x12fd95(0x1db)]()),_0xffd1b5=[_0x2c5e82?.[_0x12fd95(0x1a2)],_0x2c5e82?.['type']][_0x12fd95(0x1e2)](_0x14bcb1=>typeof _0x14bcb1===_0x12fd95(0x1d6)&&_0x14bcb1[_0x12fd95(0x1db)]());return[{..._0x38e948?{'name':_0x38e948[_0x12fd95(0x1db)]()}:{},..._0xffd1b5?{'type':_0xffd1b5['trim']()}:{},'columns':_0xc7f556}];}),_0x599a37=[..._0x24a234],_0x1a7fee=typeof _0x532271?.[_0x121a4d(0x1c1)]?.[_0x121a4d(0x1cf)]===_0x121a4d(0x1d6)?_0x532271[_0x121a4d(0x1c1)]['pkField']['split'](',')[_0x121a4d(0x1d7)](_0x4471d1=>_0x4471d1['trim']())['filter'](Boolean):[];return _0x1a7fee['length']>0x0&&_0x599a37[_0x121a4d(0x1c0)]({'type':_0x121a4d(0x1ad),'columns':_0x1a7fee}),{'indexes':_0x599a37,'metadataAvailable':_0x24a234[_0x121a4d(0x1bb)]>0x0};}
1
+ const a201_0x23a3a0=a201_0x34e0;(function(_0x3272a7,_0xc87d66){const _0x3f409d=a201_0x34e0,_0x3f5906=_0x3272a7();while(!![]){try{const _0x5c6c9e=-parseInt(_0x3f409d(0x176))/0x1+-parseInt(_0x3f409d(0x172))/0x2*(parseInt(_0x3f409d(0x18e))/0x3)+-parseInt(_0x3f409d(0x165))/0x4+-parseInt(_0x3f409d(0x158))/0x5+parseInt(_0x3f409d(0x167))/0x6*(parseInt(_0x3f409d(0x16e))/0x7)+-parseInt(_0x3f409d(0x188))/0x8*(parseInt(_0x3f409d(0x177))/0x9)+parseInt(_0x3f409d(0x154))/0xa*(parseInt(_0x3f409d(0x18a))/0xb);if(_0x5c6c9e===_0xc87d66)break;else _0x3f5906['push'](_0x3f5906['shift']());}catch(_0x2768c5){_0x3f5906['push'](_0x3f5906['shift']());}}}(a201_0x23df,0x58d93));import{readFileSync,existsSync}from'node:fs';function a201_0x34e0(_0xb2996,_0x347a03){_0xb2996=_0xb2996-0x151;const _0x23dfa3=a201_0x23df();let _0x34e090=_0x23dfa3[_0xb2996];return _0x34e090;}import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a201_0x23df(){const _0x2719ad=['333221tOnEtm','parameters','--check-indexes\x20requires\x20--schemas.','push','2GWuppq','validation','reason','file','602995MSigvB','9zZCdNc','check-indexes','toLowerCase','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','string','dataset','type','utf-8','isDangerous','tableName','length','sql','read','cwd','\x22\x20not\x20found\x20or\x20not\x20accessible','filter','File\x20not\x20found:\x20','3690784MkGwfE','index_type','110vPOOsF','indexName','trim','indexes','1543803GHrvFj','schemaWarnings','joinAudit','isArray','primary','dbtableConfig','valid','split','Table\x20\x22','\x22\x20not\x20found\x20in\x20any\x20dataset','index_columns','1790330rXrRgm','appCode','tables','fields','2092435QulDve','index_name','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','sqlType','boolean','schema:','schemas','validate','name','find','size','SQL\x20schema\x20validation','381672uEdnCB','flatMap','84EMmfoY','message','columnNames','pkField','map','Dataset\x20\x22','str'];a201_0x23df=function(){return _0x2719ad;};return a201_0x23df();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a201_0x23a3a0(0x182),'command':a201_0x23a3a0(0x160),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a201_0x23a3a0(0x183),'flags':[{'name':a201_0x23a3a0(0x175),'type':a201_0x23a3a0(0x17b),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':a201_0x23a3a0(0x17b),'description':a201_0x23a3a0(0x15b)},{'name':a201_0x23a3a0(0x15f),'type':a201_0x23a3a0(0x17b),'description':a201_0x23a3a0(0x17a)},{'name':a201_0x23a3a0(0x178),'type':a201_0x23a3a0(0x15d),'description':a201_0x23a3a0(0x15a)}],async 'execute'(_0x2b41a7){const _0x4aeca6=a201_0x23a3a0,_0xafb977=_0x2b41a7[_0x4aeca6(0x16d)](_0x4aeca6(0x175)),_0x22954e=_0x2b41a7[_0x4aeca6(0x16d)](_0x4aeca6(0x182)),_0x39fa8c=_0x2b41a7['str'](_0x4aeca6(0x15f)),_0x49224d=_0x2b41a7['bool'](_0x4aeca6(0x178));if(!_0xafb977&&!_0x22954e)throw CliErrors['flagMissing'](_0x4aeca6(0x175),'Provide\x20--file\x20or\x20--sql');if(_0x49224d&&!_0x39fa8c)throw CliErrors[_0x4aeca6(0x173)](_0x4aeca6(0x170));let _0x416f4c;if(_0xafb977){const _0x574eb6=resolve(process[_0x4aeca6(0x184)](),_0xafb977);if(!existsSync(_0x574eb6))throw CliErrors[_0x4aeca6(0x173)](_0x4aeca6(0x187)+_0x574eb6);_0x416f4c=readFileSync(_0x574eb6,_0x4aeca6(0x17e));}else _0x416f4c=_0x22954e;const _0x5e93a1=validateSql(_0x416f4c),_0x3d0a3c={'valid':_0x5e93a1['valid'],'sqlType':_0x5e93a1[_0x4aeca6(0x15c)][_0x4aeca6(0x17d)],'isSelectOnly':_0x5e93a1[_0x4aeca6(0x15c)]['isSelectOnly'],'isDangerous':_0x5e93a1['sqlType'][_0x4aeca6(0x17f)],'tables':_0x5e93a1['tables'],'parameters':_0x5e93a1[_0x4aeca6(0x16f)],'message':_0x5e93a1[_0x4aeca6(0x168)]};_0x5e93a1['sqlType']['reason']&&(_0x3d0a3c[_0x4aeca6(0x174)]=_0x5e93a1[_0x4aeca6(0x15c)][_0x4aeca6(0x174)]);if(_0x39fa8c&&_0x5e93a1[_0x4aeca6(0x194)]){const _0x50512c=_0x39fa8c[_0x4aeca6(0x195)](',')[_0x4aeca6(0x16b)](_0x5ebb2a=>_0x5ebb2a[_0x4aeca6(0x18c)]())[_0x4aeca6(0x186)](Boolean),_0x54d276=[],_0x50faa9=[],_0x48d67a=filterDbTableBackedDatasets(await listDatasets(_0x2b41a7[_0x4aeca6(0x155)])),_0x39a144=new Map(_0x48d67a[_0x4aeca6(0x16b)](_0x2607e8=>[_0x2607e8[_0x4aeca6(0x193)]?.['tableName']?.[_0x4aeca6(0x179)](),_0x2607e8]));for(const _0x41451d of _0x5e93a1[_0x4aeca6(0x156)]){const _0x3db4c7=_0x39a144['get'](_0x41451d[_0x4aeca6(0x179)]());!_0x3db4c7&&_0x54d276[_0x4aeca6(0x171)](_0x4aeca6(0x151)+_0x41451d+_0x4aeca6(0x152));}for(const _0xae6b1a of _0x50512c){let _0x5d1631;try{_0x5d1631=await getDatasetDetail(_0xae6b1a);}catch{_0x54d276[_0x4aeca6(0x171)](_0x4aeca6(0x16c)+_0xae6b1a+_0x4aeca6(0x185));continue;}assertDatasetIsDbTableBacked(_0x5d1631,_0x4aeca6(0x164));const _0x4dec7b=Array[_0x4aeca6(0x191)](_0x5d1631[_0x4aeca6(0x157)])?_0x5d1631[_0x4aeca6(0x157)]:[],_0x5bd2f7=new Set(_0x4dec7b[_0x4aeca6(0x16b)](_0x122648=>_0x122648[_0x4aeca6(0x161)]?.[_0x4aeca6(0x179)]())),_0x540471=_0x5d1631[_0x4aeca6(0x193)]?.[_0x4aeca6(0x180)]||_0x5d1631[_0x4aeca6(0x180)]||_0xae6b1a;_0x3d0a3c[_0x4aeca6(0x15e)+_0x540471]={'code':_0xae6b1a,'tableName':_0x540471,'fieldCount':_0x5bd2f7[_0x4aeca6(0x163)],'fields':Array['from'](_0x5bd2f7)};if(_0x49224d){const _0x467953=normalizeDatasetIndexes(_0x5d1631);_0x50faa9['push']({'tableName':_0x540471,..._0x467953});}}_0x54d276[_0x4aeca6(0x181)]>0x0&&(_0x3d0a3c[_0x4aeca6(0x18f)]=_0x54d276),_0x49224d&&(_0x3d0a3c[_0x4aeca6(0x190)]=auditSqlJoinIndexes(_0x416f4c,_0x50faa9));}return{'ok':_0x5e93a1[_0x4aeca6(0x194)],'data':_0x3d0a3c,'message':_0x5e93a1['message']};}};function normalizeDatasetIndexes(_0x5e1563){const _0x371ebf=a201_0x23a3a0,_0x474b6d=Array[_0x371ebf(0x191)](_0x5e1563?.[_0x371ebf(0x17c)]?.[_0x371ebf(0x18d)])?_0x5e1563[_0x371ebf(0x17c)]['indexes']:Array['isArray'](_0x5e1563?.[_0x371ebf(0x18d)])?_0x5e1563[_0x371ebf(0x18d)]:[],_0x1b1399=_0x474b6d[_0x371ebf(0x166)](_0x161329=>{const _0x282b78=_0x371ebf,_0x409d4c=Array[_0x282b78(0x191)](_0x161329?.[_0x282b78(0x153)])?_0x161329[_0x282b78(0x153)]:Array[_0x282b78(0x191)](_0x161329?.['columnNames'])?_0x161329[_0x282b78(0x169)]:Array[_0x282b78(0x191)](_0x161329?.['columns'])?_0x161329['columns']:[],_0x4bae64=_0x409d4c[_0x282b78(0x186)](_0xa40f9b=>typeof _0xa40f9b===_0x282b78(0x17b))[_0x282b78(0x16b)](_0x28c20a=>_0x28c20a['trim']())[_0x282b78(0x186)](Boolean);if(_0x4bae64[_0x282b78(0x181)]===0x0)return[];const _0x382d43=[_0x161329?.[_0x282b78(0x18b)],_0x161329?.[_0x282b78(0x159)],_0x161329?.[_0x282b78(0x161)]][_0x282b78(0x162)](_0x50240d=>typeof _0x50240d===_0x282b78(0x17b)&&_0x50240d[_0x282b78(0x18c)]()),_0x4232bd=[_0x161329?.[_0x282b78(0x189)],_0x161329?.[_0x282b78(0x17d)]]['find'](_0x35c861=>typeof _0x35c861===_0x282b78(0x17b)&&_0x35c861[_0x282b78(0x18c)]());return[{..._0x382d43?{'name':_0x382d43[_0x282b78(0x18c)]()}:{},..._0x4232bd?{'type':_0x4232bd[_0x282b78(0x18c)]()}:{},'columns':_0x4bae64}];}),_0x25470e=[..._0x1b1399],_0x491515=typeof _0x5e1563?.[_0x371ebf(0x193)]?.[_0x371ebf(0x16a)]===_0x371ebf(0x17b)?_0x5e1563[_0x371ebf(0x193)][_0x371ebf(0x16a)][_0x371ebf(0x195)](',')[_0x371ebf(0x16b)](_0x2dc34b=>_0x2dc34b[_0x371ebf(0x18c)]())[_0x371ebf(0x186)](Boolean):[];return _0x491515[_0x371ebf(0x181)]>0x0&&_0x25470e['unshift']({'type':_0x371ebf(0x192),'columns':_0x491515}),{'indexes':_0x25470e,'metadataAvailable':_0x1b1399[_0x371ebf(0x181)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x89058,_0x506bf8){const _0x1c9b6c=a194_0x105f,_0x147824=_0x89058();while(!![]){try{const _0x4371da=parseInt(_0x1c9b6c(0x94))/0x1+-parseInt(_0x1c9b6c(0x95))/0x2*(-parseInt(_0x1c9b6c(0x90))/0x3)+parseInt(_0x1c9b6c(0x97))/0x4*(-parseInt(_0x1c9b6c(0x8f))/0x5)+parseInt(_0x1c9b6c(0x96))/0x6+-parseInt(_0x1c9b6c(0x92))/0x7+parseInt(_0x1c9b6c(0x91))/0x8+-parseInt(_0x1c9b6c(0x93))/0x9;if(_0x4371da===_0x506bf8)break;else _0x147824['push'](_0x147824['shift']());}catch(_0x15ed2a){_0x147824['push'](_0x147824['shift']());}}}(a194_0x497c,0x864c0));function a194_0x497c(){const _0x2c51b1=['276525ELitTR','1122070QYwRZK','4672680xPIfxE','108ACWWcn','18755qqaHwz','3xzGNkf','937960EHsIIp','5074027ZOUEQo','3216303GhcNnt'];a194_0x497c=function(){return _0x2c51b1;};return a194_0x497c();}import{taskStatus}from'../../commands/task/status.js';function a194_0x105f(_0x534a52,_0x509a8a){_0x534a52=_0x534a52-0x8f;const _0x497ce6=a194_0x497c();let _0x105f2e=_0x497ce6[_0x534a52];return _0x105f2e;}export const taskDefinitions=[taskStatus];
1
+ function a202_0x587c(){const _0xbfc685=['54GYicWz','3554VHkJlX','295888vZMouL','639006ADdrHi','1725910MQAsKJ','45970PlzrIr','636pjqFMl','13NEiHvn','48vPcLnG','2041782geoTxk','7GlZExQ','8734EYSMrg'];a202_0x587c=function(){return _0xbfc685;};return a202_0x587c();}(function(_0x509180,_0x49dca6){const _0x1b0a32=a202_0x43fd,_0x5e520=_0x509180();while(!![]){try{const _0x5d8b9f=-parseInt(_0x1b0a32(0x1ac))/0x1*(parseInt(_0x1b0a32(0x1b2))/0x2)+parseInt(_0x1b0a32(0x1a8))/0x3+parseInt(_0x1b0a32(0x1ad))/0x4*(-parseInt(_0x1b0a32(0x1aa))/0x5)+parseInt(_0x1b0a32(0x1ae))/0x6*(-parseInt(_0x1b0a32(0x1af))/0x7)+parseInt(_0x1b0a32(0x1a7))/0x8*(parseInt(_0x1b0a32(0x1b1))/0x9)+parseInt(_0x1b0a32(0x1a9))/0xa+parseInt(_0x1b0a32(0x1b0))/0xb*(parseInt(_0x1b0a32(0x1ab))/0xc);if(_0x5d8b9f===_0x49dca6)break;else _0x5e520['push'](_0x5e520['shift']());}catch(_0x31aca3){_0x5e520['push'](_0x5e520['shift']());}}}(a202_0x587c,0x2aef9));function a202_0x43fd(_0x19715b,_0x58dbe6){_0x19715b=_0x19715b-0x1a7;const _0x587c9a=a202_0x587c();let _0x43fdce=_0x587c9a[_0x19715b];return _0x43fdce;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a195_0x13fb39=a195_0x5940;(function(_0x5e9995,_0x1a3f36){const _0x4ee79d=a195_0x5940,_0xd50e83=_0x5e9995();while(!![]){try{const _0xf991d6=-parseInt(_0x4ee79d(0x1b1))/0x1+-parseInt(_0x4ee79d(0x1bb))/0x2+parseInt(_0x4ee79d(0x1bc))/0x3+-parseInt(_0x4ee79d(0x1ba))/0x4*(parseInt(_0x4ee79d(0x1b4))/0x5)+parseInt(_0x4ee79d(0x1b5))/0x6+-parseInt(_0x4ee79d(0x1b6))/0x7*(parseInt(_0x4ee79d(0x1c5))/0x8)+-parseInt(_0x4ee79d(0x1ae))/0x9*(-parseInt(_0x4ee79d(0x1bd))/0xa);if(_0xf991d6===_0x1a3f36)break;else _0xd50e83['push'](_0xd50e83['shift']());}catch(_0x58eded){_0xd50e83['push'](_0xd50e83['shift']());}}}(a195_0x28e9,0xf1767));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a195_0x28e9(){const _0x449026=['isTerminal','32kxehkz','appCode','str','9jryZuF','trim','read','81466intXID','string','task-id','1503150ONeeMk','3366306SPQSrI','1418592CGlrES','task','status','flagMissing','24xatYzp','2744220pXmdgO','102429qEodaD','44618170RKWQQI','taskId','compress','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20',',\x20received\x20','cookie','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'];a195_0x28e9=function(){return _0x449026;};return a195_0x28e9();}function a195_0x5940(_0x13a1a2,_0x162546){_0x13a1a2=_0x13a1a2-0x1ac;const _0x28e928=a195_0x28e9();let _0x594027=_0x28e928[_0x13a1a2];return _0x594027;}export const taskStatus={'service':a195_0x13fb39(0x1b7),'command':a195_0x13fb39(0x1b8),'description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':a195_0x13fb39(0x1b0),'defaultOutputFormat':a195_0x13fb39(0x1bf),'structuredErrors':!![],'flags':[{'name':a195_0x13fb39(0x1b3),'type':a195_0x13fb39(0x1b2),'required':!![],'description':a195_0x13fb39(0x1c3)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc28aab){const _0x3e7bf3=a195_0x13fb39;if(!_0xc28aab[_0x3e7bf3(0x1ad)]('task-id')[_0x3e7bf3(0x1af)]())throw CliErrors[_0x3e7bf3(0x1b9)](_0x3e7bf3(0x1b3));},async 'execute'(_0x563e43){const _0x274bf=a195_0x13fb39,_0x1fc893=_0x563e43['str'](_0x274bf(0x1b3))['trim'](),_0x5c6afb=normalizeAsyncTask(await getAsyncTaskStatus(_0x1fc893,_0x563e43['appCode'],_0x563e43[_0x274bf(0x1c2)]));if(_0x5c6afb['taskId']!==_0x1fc893)throw CliErrors['apiError'](_0x274bf(0x1c0)+_0x1fc893+_0x274bf(0x1c1)+_0x5c6afb[_0x274bf(0x1be)]+'.');const _0x107883=buildAsyncTaskStatusCommand(_0x5c6afb[_0x274bf(0x1be)],_0x563e43['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x5c6afb),'data':{'appCode':_0x563e43[_0x274bf(0x1ac)],..._0x5c6afb,'query':_0x5c6afb[_0x274bf(0x1c4)]?null:{'command':_0x107883}}};}};
1
+ const a203_0x4eb350=a203_0x36d2;(function(_0x390143,_0x5b22dc){const _0x545ec7=a203_0x36d2,_0x3208d1=_0x390143();while(!![]){try{const _0xbda5ce=-parseInt(_0x545ec7(0x10e))/0x1*(-parseInt(_0x545ec7(0x10d))/0x2)+-parseInt(_0x545ec7(0xfb))/0x3+parseInt(_0x545ec7(0x101))/0x4+-parseInt(_0x545ec7(0xf6))/0x5+-parseInt(_0x545ec7(0x106))/0x6*(-parseInt(_0x545ec7(0xfd))/0x7)+parseInt(_0x545ec7(0xff))/0x8+-parseInt(_0x545ec7(0xfa))/0x9*(-parseInt(_0x545ec7(0x104))/0xa);if(_0xbda5ce===_0x5b22dc)break;else _0x3208d1['push'](_0x3208d1['shift']());}catch(_0x1ac072){_0x3208d1['push'](_0x3208d1['shift']());}}}(a203_0x10cc,0xb7efd));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a203_0x36d2(_0x12e2e0,_0x3b68a3){_0x12e2e0=_0x12e2e0-0xf6;const _0x10cc59=a203_0x10cc();let _0x36d270=_0x10cc59[_0x12e2e0];return _0x36d270;}function a203_0x10cc(){const _0x59e7e3=['apiError','45zAyVKn','485703iurJAK','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','476BdgxYn',',\x20received\x20','6722672YqKwvb','appCode','1092900LxNWWZ','compress','cookie','1404290sxBlif','status','4878WIiPsb','trim','isTerminal','task','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','str','taskId','2ohsHIQ','23294QuGBZw','4894880ROXkmB','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id'];a203_0x10cc=function(){return _0x59e7e3;};return a203_0x10cc();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a203_0x4eb350(0x109),'command':a203_0x4eb350(0x105),'description':a203_0x4eb350(0xf7),'risk':'read','defaultOutputFormat':a203_0x4eb350(0x102),'structuredErrors':!![],'flags':[{'name':a203_0x4eb350(0xf8),'type':'string','required':!![],'description':a203_0x4eb350(0xfc)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x56d225){const _0x16bba4=a203_0x4eb350;if(!_0x56d225['str'](_0x16bba4(0xf8))[_0x16bba4(0x107)]())throw CliErrors['flagMissing'](_0x16bba4(0xf8));},async 'execute'(_0x481eb5){const _0x24c4fd=a203_0x4eb350,_0x588d98=_0x481eb5[_0x24c4fd(0x10b)](_0x24c4fd(0xf8))[_0x24c4fd(0x107)](),_0x13116c=normalizeAsyncTask(await getAsyncTaskStatus(_0x588d98,_0x481eb5[_0x24c4fd(0x100)],_0x481eb5[_0x24c4fd(0x103)]));if(_0x13116c[_0x24c4fd(0x10c)]!==_0x588d98)throw CliErrors[_0x24c4fd(0xf9)](_0x24c4fd(0x10a)+_0x588d98+_0x24c4fd(0xfe)+_0x13116c[_0x24c4fd(0x10c)]+'.');const _0x4d1a44=buildAsyncTaskStatusCommand(_0x13116c[_0x24c4fd(0x10c)],_0x481eb5[_0x24c4fd(0x100)]);return{'ok':!![],'message':asyncTaskMessage(_0x13116c),'data':{'appCode':_0x481eb5[_0x24c4fd(0x100)],..._0x13116c,'query':_0x13116c[_0x24c4fd(0x108)]?null:{'command':_0x4d1a44}}};}};
@@ -1 +1 @@
1
- (function(_0x49f709,_0x2410ce){const _0x9a7dea=a196_0x1119,_0x432be3=_0x49f709();while(!![]){try{const _0x22f850=-parseInt(_0x9a7dea(0x6d))/0x1*(parseInt(_0x9a7dea(0x75))/0x2)+parseInt(_0x9a7dea(0x72))/0x3+parseInt(_0x9a7dea(0x6e))/0x4+-parseInt(_0x9a7dea(0x73))/0x5+parseInt(_0x9a7dea(0x71))/0x6*(-parseInt(_0x9a7dea(0x6f))/0x7)+-parseInt(_0x9a7dea(0x74))/0x8*(-parseInt(_0x9a7dea(0x70))/0x9)+-parseInt(_0x9a7dea(0x6b))/0xa*(-parseInt(_0x9a7dea(0x6c))/0xb);if(_0x22f850===_0x2410ce)break;else _0x432be3['push'](_0x432be3['shift']());}catch(_0x476c20){_0x432be3['push'](_0x432be3['shift']());}}}(a196_0x2ed9,0x44a24));function a196_0x2ed9(){const _0x46953c=['288gMYbUc','6PhdQuD','412383qaQvYI','1958605wpavpc','118728tlFvrr','25420VqvwOs','3060790PUThQE','11RqpBzC','1ZUMYul','1197076YgVcXL','3725162juvqZE'];a196_0x2ed9=function(){return _0x46953c;};return a196_0x2ed9();}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a196_0x1119(_0x2edf02,_0xa41f7e){_0x2edf02=_0x2edf02-0x6b;const _0x2ed92f=a196_0x2ed9();let _0x1119e9=_0x2ed92f[_0x2edf02];return _0x1119e9;}export const tenantDefinitions=[tenantMembersListDefinition];
1
+ (function(_0x260b15,_0x290d9e){const _0x5759b3=a204_0x2906,_0x30748a=_0x260b15();while(!![]){try{const _0x5300aa=parseInt(_0x5759b3(0x19f))/0x1*(parseInt(_0x5759b3(0x19b))/0x2)+-parseInt(_0x5759b3(0x19c))/0x3*(parseInt(_0x5759b3(0x199))/0x4)+-parseInt(_0x5759b3(0x19a))/0x5+-parseInt(_0x5759b3(0x1a0))/0x6*(-parseInt(_0x5759b3(0x198))/0x7)+-parseInt(_0x5759b3(0x19e))/0x8+parseInt(_0x5759b3(0x19d))/0x9+parseInt(_0x5759b3(0x197))/0xa;if(_0x5300aa===_0x290d9e)break;else _0x30748a['push'](_0x30748a['shift']());}catch(_0xb9bb57){_0x30748a['push'](_0x30748a['shift']());}}}(a204_0x2721,0xe817f));function a204_0x2721(){const _0x57b0b1=['10851327KrEkQc','10810024YdlCco','1VWPxPK','96PjdXJb','16673570lzjyiW','449617Xnicea','680DHrVPR','8672605fjuKrW','1581366RQYSwr','11559daFZsR'];a204_0x2721=function(){return _0x57b0b1;};return a204_0x2721();}function a204_0x2906(_0x37a553,_0x5acb09){_0x37a553=_0x37a553-0x197;const _0x272166=a204_0x2721();let _0x290663=_0x272166[_0x37a553];return _0x290663;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- const a197_0x4f9a24=a197_0x5889;(function(_0x5b358f,_0x634d7b){const _0x4b49a2=a197_0x5889,_0x22c13a=_0x5b358f();while(!![]){try{const _0x79c2f6=-parseInt(_0x4b49a2(0x1ec))/0x1*(parseInt(_0x4b49a2(0x1d8))/0x2)+-parseInt(_0x4b49a2(0x1d9))/0x3*(-parseInt(_0x4b49a2(0x1dc))/0x4)+-parseInt(_0x4b49a2(0x1de))/0x5*(parseInt(_0x4b49a2(0x1dd))/0x6)+parseInt(_0x4b49a2(0x1db))/0x7*(parseInt(_0x4b49a2(0x1ea))/0x8)+-parseInt(_0x4b49a2(0x1e3))/0x9+-parseInt(_0x4b49a2(0x1e9))/0xa+-parseInt(_0x4b49a2(0x1df))/0xb*(-parseInt(_0x4b49a2(0x1e4))/0xc);if(_0x79c2f6===_0x634d7b)break;else _0x22c13a['push'](_0x22c13a['shift']());}catch(_0x55674f){_0x22c13a['push'](_0x22c13a['shift']());}}}(a197_0x5503,0xc5b63));function a197_0x5889(_0x55a05f,_0x2fbe0f){_0x55a05f=_0x55a05f-0x1d8;const _0x5503f2=a197_0x5503();let _0x58896e=_0x5503f2[_0x55a05f];return _0x58896e;}import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a197_0x5503(){const _0xcfba87=['3472640ytrHlt','45172193AcGmMS','trim','read','Found\x20','3943458pgMgmS','12LYStfv','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','members-list','flagMissing','length','14170930ArMfRQ','616WofLPC','Pass\x20--tenant-code\x20<code>.','1gjvuha','string','2449618WaXDIm','3VukPBq','tenant-code','100121PpFDYm','284212CPHbdC','12usFxnV'];a197_0x5503=function(){return _0xcfba87;};return a197_0x5503();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':'tenant','command':a197_0x4f9a24(0x1e6),'description':a197_0x4f9a24(0x1e5),'risk':a197_0x4f9a24(0x1e1),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a197_0x4f9a24(0x1ed),'required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x4b207c){const _0x204084=a197_0x4f9a24;if(!_0x4b207c['str'](_0x204084(0x1da))[_0x204084(0x1e0)]())throw CliErrors[_0x204084(0x1e7)](_0x204084(0x1da),_0x204084(0x1eb));},async 'execute'(_0x31000c){const _0x6f78ba=a197_0x4f9a24,_0x4ab953=_0x31000c['str'](_0x6f78ba(0x1da))[_0x6f78ba(0x1e0)](),_0x43c0c2=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x4ab953,_0x43c0c2);const _0x466741=projectTenantMembers(await listTenantDirectoryMembers(_0x4ab953));return{'ok':!![],'data':{'tenantCode':_0x4ab953,'items':_0x466741,'totalCount':_0x466741[_0x6f78ba(0x1e8)]},'message':_0x6f78ba(0x1e2)+_0x466741['length']+'\x20tenant\x20member(s)'};}};
1
+ const a205_0x2653fb=a205_0x14fa;(function(_0xa2f03,_0x28771a){const _0x1a9a99=a205_0x14fa,_0x1eb197=_0xa2f03();while(!![]){try{const _0x53cd7a=-parseInt(_0x1a9a99(0x143))/0x1+-parseInt(_0x1a9a99(0x151))/0x2*(parseInt(_0x1a9a99(0x149))/0x3)+parseInt(_0x1a9a99(0x13f))/0x4*(parseInt(_0x1a9a99(0x142))/0x5)+-parseInt(_0x1a9a99(0x14e))/0x6+parseInt(_0x1a9a99(0x14b))/0x7*(parseInt(_0x1a9a99(0x13e))/0x8)+-parseInt(_0x1a9a99(0x146))/0x9*(-parseInt(_0x1a9a99(0x150))/0xa)+-parseInt(_0x1a9a99(0x152))/0xb*(parseInt(_0x1a9a99(0x147))/0xc);if(_0x53cd7a===_0x28771a)break;else _0x1eb197['push'](_0x1eb197['shift']());}catch(_0x3f3215){_0x1eb197['push'](_0x1eb197['shift']());}}}(a205_0x3939,0xae737));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a205_0x14fa(_0x47c3de,_0x7bdfd8){_0x47c3de=_0x47c3de-0x13d;const _0x3939b5=a205_0x3939();let _0x14fa25=_0x3939b5[_0x47c3de];return _0x14fa25;}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a205_0x3939(){const _0x3f1e03=['81QtSLfD','1572yEzHYt','tenant-code','3nDqCyZ','length','1675709bGRmSM','Pass\x20--tenant-code\x20<code>.','members-list','4809930PugjNE','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','1337170aMxWNy','1442256zcAhnV','30833KZCuVx','str','32BoQjKo','52604pqGkbT','tenant','flagMissing','415mPlTym','648007FOOZvp','Found\x20','Exact\x20tenant\x20code'];a205_0x3939=function(){return _0x3f1e03;};return a205_0x3939();}export const tenantMembersListDefinition={'service':a205_0x2653fb(0x140),'command':a205_0x2653fb(0x14d),'description':a205_0x2653fb(0x14f),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a205_0x2653fb(0x148),'type':'string','required':!![],'description':a205_0x2653fb(0x145)}],async 'validate'(_0x229c84){const _0x40acf9=a205_0x2653fb;if(!_0x229c84[_0x40acf9(0x13d)](_0x40acf9(0x148))['trim']())throw CliErrors[_0x40acf9(0x141)](_0x40acf9(0x148),_0x40acf9(0x14c));},async 'execute'(_0x191ff8){const _0x1ce295=a205_0x2653fb,_0x41d5d3=_0x191ff8[_0x1ce295(0x13d)](_0x1ce295(0x148))['trim'](),_0x93650a=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x41d5d3,_0x93650a);const _0x4aa015=projectTenantMembers(await listTenantDirectoryMembers(_0x41d5d3));return{'ok':!![],'data':{'tenantCode':_0x41d5d3,'items':_0x4aa015,'totalCount':_0x4aa015[_0x1ce295(0x14a)]},'message':_0x1ce295(0x144)+_0x4aa015['length']+'\x20tenant\x20member(s)'};}};
@@ -1 +1 @@
1
- (function(_0x5e7000,_0x2223b2){const _0x1544db=a198_0x3b46,_0x4846e2=_0x5e7000();while(!![]){try{const _0x324f96=-parseInt(_0x1544db(0x115))/0x1*(parseInt(_0x1544db(0x11b))/0x2)+parseInt(_0x1544db(0x122))/0x3+-parseInt(_0x1544db(0x11f))/0x4*(parseInt(_0x1544db(0x118))/0x5)+parseInt(_0x1544db(0x123))/0x6+parseInt(_0x1544db(0x12b))/0x7+-parseInt(_0x1544db(0x127))/0x8+parseInt(_0x1544db(0x11c))/0x9;if(_0x324f96===_0x2223b2)break;else _0x4846e2['push'](_0x4846e2['shift']());}catch(_0x5b8004){_0x4846e2['push'](_0x4846e2['shift']());}}}(a198_0x1ba1,0x3937d));import{CliErrors}from'../../errors.js';function textOrNull(_0x33e24d){const _0x2fffee=a198_0x3b46,_0x17ec01=_0x33e24d?.[_0x2fffee(0x126)]();return _0x17ec01?_0x17ec01:null;}function a198_0x3b46(_0x1cd09b,_0x26f3d0){_0x1cd09b=_0x1cd09b-0x111;const _0x1ba1dd=a198_0x1ba1();let _0x3b46ff=_0x1ba1dd[_0x1cd09b];return _0x3b46ff;}export function projectTenantMembers(_0x4a0877){const _0x55fbb1=a198_0x3b46,_0x2c33bf=new Map();for(const _0x2e2a29 of _0x4a0877){const _0x5f4b96=Number(_0x2e2a29[_0x55fbb1(0x12a)]);if(!Number[_0x55fbb1(0x128)](_0x5f4b96)||_0x5f4b96<=0x0)continue;const _0xfe1064={'userId':_0x5f4b96,'username':textOrNull(_0x2e2a29[_0x55fbb1(0x11a)]),'displayName':textOrNull(_0x2e2a29['nickname']),'role':_0x2e2a29[_0x55fbb1(0x111)]===!![]?_0x55fbb1(0x119):'MEMBER','status':textOrNull(_0x2e2a29['status'])},_0x15f930=_0x2c33bf[_0x55fbb1(0x11e)](_0x5f4b96);if(!_0x15f930){_0x2c33bf['set'](_0x5f4b96,_0xfe1064);continue;}_0x15f930[_0x55fbb1(0x11a)]??=_0xfe1064[_0x55fbb1(0x11a)],_0x15f930['displayName']??=_0xfe1064[_0x55fbb1(0x121)],_0x15f930[_0x55fbb1(0x116)]??=_0xfe1064[_0x55fbb1(0x116)];if(_0xfe1064['role']==='ADMIN')_0x15f930[_0x55fbb1(0x129)]=_0x55fbb1(0x119);}return[..._0x2c33bf[_0x55fbb1(0x112)]()][_0x55fbb1(0x11d)]((_0x277715,_0x511115)=>_0x277715[_0x55fbb1(0x12a)]-_0x511115[_0x55fbb1(0x12a)]);}function a198_0x1ba1(){const _0x5d3529=['userId','1494269rWyTyw','adminFlag','values','some','validation','4006czFyxU','status','tenantCode','126235hmpBHW','ADMIN','username','226hEqftz','4547448lhgoMj','sort','get','48DbDyAY','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','displayName','935454rguoYa','1798788CETJyy','Tenant\x20\x22','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','trim','2722784vTiKpq','isFinite','role'];a198_0x1ba1=function(){return _0x5d3529;};return a198_0x1ba1();}export function assertTenantAccessible(_0x1c6184,_0x4e84f6){const _0x5aa0bf=a198_0x3b46;if(_0x4e84f6[_0x5aa0bf(0x113)](_0xf9a510=>_0xf9a510[_0x5aa0bf(0x117)]===_0x1c6184))return;throw CliErrors[_0x5aa0bf(0x114)](_0x5aa0bf(0x124)+_0x1c6184+_0x5aa0bf(0x125),_0x5aa0bf(0x120));}
1
+ (function(_0x5b0896,_0x27ea57){const _0x2efafb=a206_0x47fd,_0xf119e8=_0x5b0896();while(!![]){try{const _0x4f715c=-parseInt(_0x2efafb(0x1e4))/0x1*(parseInt(_0x2efafb(0x1e2))/0x2)+parseInt(_0x2efafb(0x1dc))/0x3*(parseInt(_0x2efafb(0x1eb))/0x4)+parseInt(_0x2efafb(0x1e6))/0x5+parseInt(_0x2efafb(0x1f5))/0x6*(parseInt(_0x2efafb(0x1f3))/0x7)+-parseInt(_0x2efafb(0x1e5))/0x8*(-parseInt(_0x2efafb(0x1ee))/0x9)+-parseInt(_0x2efafb(0x1e1))/0xa*(-parseInt(_0x2efafb(0x1f4))/0xb)+-parseInt(_0x2efafb(0x1f6))/0xc;if(_0x4f715c===_0x27ea57)break;else _0xf119e8['push'](_0xf119e8['shift']());}catch(_0x485e4a){_0xf119e8['push'](_0xf119e8['shift']());}}}(a206_0x4afb,0x80934));import{CliErrors}from'../../errors.js';function a206_0x47fd(_0x2b8f50,_0xefa7d0){_0x2b8f50=_0x2b8f50-0x1db;const _0x4afb3f=a206_0x4afb();let _0x47fdf4=_0x4afb3f[_0x2b8f50];return _0x47fdf4;}function textOrNull(_0x124421){const _0x4b845e=a206_0x47fd,_0x5e8b8b=_0x124421?.[_0x4b845e(0x1ea)]();return _0x5e8b8b?_0x5e8b8b:null;}export function projectTenantMembers(_0x57c763){const _0x3b49d3=a206_0x47fd,_0x85e9c7=new Map();for(const _0x124355 of _0x57c763){const _0x42c1bf=Number(_0x124355['userId']);if(!Number[_0x3b49d3(0x1de)](_0x42c1bf)||_0x42c1bf<=0x0)continue;const _0x314024={'userId':_0x42c1bf,'username':textOrNull(_0x124355['username']),'displayName':textOrNull(_0x124355[_0x3b49d3(0x1db)]),'role':_0x124355[_0x3b49d3(0x1df)]===!![]?_0x3b49d3(0x1e7):_0x3b49d3(0x1ec),'status':textOrNull(_0x124355[_0x3b49d3(0x1f1)])},_0x1cce3e=_0x85e9c7['get'](_0x42c1bf);if(!_0x1cce3e){_0x85e9c7['set'](_0x42c1bf,_0x314024);continue;}_0x1cce3e[_0x3b49d3(0x1ed)]??=_0x314024[_0x3b49d3(0x1ed)],_0x1cce3e[_0x3b49d3(0x1f2)]??=_0x314024['displayName'],_0x1cce3e[_0x3b49d3(0x1f1)]??=_0x314024[_0x3b49d3(0x1f1)];if(_0x314024['role']==='ADMIN')_0x1cce3e['role']=_0x3b49d3(0x1e7);}return[..._0x85e9c7[_0x3b49d3(0x1e3)]()][_0x3b49d3(0x1e9)]((_0x2bbd26,_0x3abaee)=>_0x2bbd26['userId']-_0x3abaee[_0x3b49d3(0x1f0)]);}export function assertTenantAccessible(_0x55d389,_0x423ba9){const _0x4bbe52=a206_0x47fd;if(_0x423ba9[_0x4bbe52(0x1e8)](_0x775f9e=>_0x775f9e[_0x4bbe52(0x1ef)]===_0x55d389))return;throw CliErrors[_0x4bbe52(0x1e0)](_0x4bbe52(0x1dd)+_0x55d389+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x4bbe52(0x1f7));}function a206_0x4afb(){const _0x1b8bc9=['4963iovuii','11iDvzUl','138soZvDq','27232908DkWcVO','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','nickname','1922562XBvdmf','Tenant\x20\x22','isFinite','adminFlag','validation','7305370epMiGh','30qABudj','values','2994hThOdZ','48xSrEHR','3498415ajvyoT','ADMIN','some','sort','trim','4WJCfaS','MEMBER','username','1130373qDFADj','tenantCode','userId','status','displayName'];a206_0x4afb=function(){return _0x1b8bc9;};return a206_0x4afb();}
@@ -1 +1 @@
1
- const a199_0x239b97=a199_0x1041;function a199_0x466b(){const _0x18c839=['534aFvBNa','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','222470wMhJKh','bind','POST','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','48643vwPgoF','183357QbMqVQ','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','validation','dingding-sandbox','trim','763880CfbNfU','2123RNuKeR','high-risk-write','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','3xzHOeg','585500qduhLo','apiError','5199844nWMGzl','--ding-talk-user-id\x20cannot\x20be\x20empty.','1375720OztxwF','216BCNLml','str'];a199_0x466b=function(){return _0x18c839;};return a199_0x466b();}function a199_0x1041(_0x325be1,_0x1da568){_0x325be1=_0x325be1-0x14b;const _0x466b31=a199_0x466b();let _0x104111=_0x466b31[_0x325be1];return _0x104111;}(function(_0x314e76,_0xf619b){const _0x3ce416=a199_0x1041,_0x162afa=_0x314e76();while(!![]){try{const _0x2c6754=-parseInt(_0x3ce416(0x153))/0x1+parseInt(_0x3ce416(0x157))/0x2*(-parseInt(_0x3ce416(0x152))/0x3)+-parseInt(_0x3ce416(0x155))/0x4+parseInt(_0x3ce416(0x14d))/0x5+-parseInt(_0x3ce416(0x15a))/0x6*(parseInt(_0x3ce416(0x160))/0x7)+parseInt(_0x3ce416(0x158))/0x8*(-parseInt(_0x3ce416(0x161))/0x9)+-parseInt(_0x3ce416(0x15c))/0xa*(-parseInt(_0x3ce416(0x14e))/0xb);if(_0x2c6754===_0xf619b)break;else _0x162afa['push'](_0x162afa['shift']());}catch(_0x482810){_0x162afa['push'](_0x162afa['shift']());}}}(a199_0x466b,0xac052));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x239b97(0x14b),CURRENT_BINDING_WARNING=a199_0x239b97(0x162);function readDingTalkUserId(_0x165f4e){const _0x25b2ae=a199_0x239b97,_0x46767c=_0x165f4e[_0x25b2ae(0x159)]('ding-talk-user-id')[_0x25b2ae(0x14c)]();if(!_0x46767c)throw CliErrors[_0x25b2ae(0x163)](_0x25b2ae(0x156),_0x25b2ae(0x15b));return _0x46767c;}function buildBindingData(_0x4d78d5,_0x17eb06){const _0x34d793=a199_0x239b97;return{'operation':_0x34d793(0x15d),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4d78d5,'bound':!![]},'dryRun':_0x17eb06,'backend':{'method':_0x34d793(0x15e),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':'user-account','command':'dingding-sandbox-bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':a199_0x239b97(0x14f),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':'string','required':!![],'description':a199_0x239b97(0x151)}],async 'validate'(_0x4d44d7){readDingTalkUserId(_0x4d44d7);},async 'dryRun'(_0x1ed96e){const _0x23cc96=readDingTalkUserId(_0x1ed96e);return asDryRunResult(buildBindingData(_0x23cc96,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x53a9c2){const _0x4a2b65=a199_0x239b97,_0x44aa87=readDingTalkUserId(_0x53a9c2),_0x1cee5f=await bindDingTalkSandboxAccount(_0x44aa87);if(_0x1cee5f!==!![])throw CliErrors[_0x4a2b65(0x154)](_0x4a2b65(0x15f),_0x4a2b65(0x150));return{'ok':!![],'data':buildBindingData(_0x44aa87,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
1
+ const a207_0x48d4e1=a207_0x351d;(function(_0x5500b2,_0x31dbd6){const _0xc000ee=a207_0x351d,_0x4d5197=_0x5500b2();while(!![]){try{const _0x1c502b=-parseInt(_0xc000ee(0xe0))/0x1+-parseInt(_0xc000ee(0xe2))/0x2+-parseInt(_0xc000ee(0xe8))/0x3+parseInt(_0xc000ee(0xdd))/0x4*(parseInt(_0xc000ee(0xea))/0x5)+-parseInt(_0xc000ee(0xdf))/0x6+parseInt(_0xc000ee(0xf4))/0x7*(-parseInt(_0xc000ee(0xf3))/0x8)+parseInt(_0xc000ee(0xe3))/0x9*(parseInt(_0xc000ee(0xe6))/0xa);if(_0x1c502b===_0x31dbd6)break;else _0x4d5197['push'](_0x4d5197['shift']());}catch(_0x401ac6){_0x4d5197['push'](_0x4d5197['shift']());}}}(a207_0x1123,0xeebd8));function a207_0x351d(_0x17593e,_0x45768c){_0x17593e=_0x17593e-0xdd;const _0x1123c0=a207_0x1123();let _0x351d3c=_0x1123c0[_0x17593e];return _0x351d3c;}import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a207_0x48d4e1(0xee),CURRENT_BINDING_WARNING=a207_0x48d4e1(0xde);function readDingTalkUserId(_0x486936){const _0x105e95=a207_0x48d4e1,_0x3900b3=_0x486936['str']('ding-talk-user-id')[_0x105e95(0xec)]();if(!_0x3900b3)throw CliErrors['validation'](_0x105e95(0xef),_0x105e95(0xf1));return _0x3900b3;}function buildBindingData(_0x3b5291,_0x8b7d23){const _0x186e33=a207_0x48d4e1;return{'operation':_0x186e33(0xeb),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x3b5291},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x3b5291,'bound':!![]},'dryRun':_0x8b7d23,'backend':{'method':_0x186e33(0xf0),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a207_0x1123(){const _0x4ed185=['--ding-talk-user-id\x20cannot\x20be\x20empty.','POST','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','string','31384NgdYKq','2065xubpsf','367436DeGLGI','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','1563096yUCpEi','1087644viqCDo','dingding-sandbox-bind','270404dXevnJ','18ZhGbKT','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','24191240LBjqBB','ding-talk-user-id','5312625yUAUXq','user-account','30nQDGOn','bind','trim','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','dingding-sandbox'];a207_0x1123=function(){return _0x4ed185;};return a207_0x1123();}export const dingTalkSandboxBind={'service':a207_0x48d4e1(0xe9),'command':a207_0x48d4e1(0xe1),'description':a207_0x48d4e1(0xe5),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a207_0x48d4e1(0xe7),'type':a207_0x48d4e1(0xf2),'required':!![],'description':a207_0x48d4e1(0xe4)}],async 'validate'(_0x9aa685){readDingTalkUserId(_0x9aa685);},async 'dryRun'(_0x5a2b95){const _0x15a4ad=a207_0x48d4e1,_0x5740ee=readDingTalkUserId(_0x5a2b95);return asDryRunResult(buildBindingData(_0x5740ee,!![]),{'method':_0x15a4ad(0xf0),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x3483af){const _0x3020c0=a207_0x48d4e1,_0x1bd542=readDingTalkUserId(_0x3483af),_0x426001=await bindDingTalkSandboxAccount(_0x1bd542);if(_0x426001!==!![])throw CliErrors['apiError']('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x3020c0(0xed));return{'ok':!![],'data':buildBindingData(_0x1bd542,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
@@ -1 +1 @@
1
- function a200_0x58bb(){const _0x1598cd=['4556881gKMmOW','1755738lcvZIh','2867385BuIERu','1956222vkKWzV','158708hpRAGx','4759638EoYxgZ','8tTXaRe','104006qXXCSy'];a200_0x58bb=function(){return _0x1598cd;};return a200_0x58bb();}(function(_0x563185,_0x205dbc){const _0x4a8d8c=a200_0x3dc4,_0x3ce3b7=_0x563185();while(!![]){try{const _0x57df30=-parseInt(_0x4a8d8c(0x8e))/0x1+parseInt(_0x4a8d8c(0x90))/0x2+-parseInt(_0x4a8d8c(0x8a))/0x3+-parseInt(_0x4a8d8c(0x8b))/0x4+parseInt(_0x4a8d8c(0x91))/0x5+-parseInt(_0x4a8d8c(0x8c))/0x6+-parseInt(_0x4a8d8c(0x8f))/0x7*(-parseInt(_0x4a8d8c(0x8d))/0x8);if(_0x57df30===_0x205dbc)break;else _0x3ce3b7['push'](_0x3ce3b7['shift']());}catch(_0x4a678b){_0x3ce3b7['push'](_0x3ce3b7['shift']());}}}(a200_0x58bb,0x7d513));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a200_0x3dc4(_0x25c558,_0x48e119){_0x25c558=_0x25c558-0x8a;const _0x58bb19=a200_0x58bb();let _0x3dc4ca=_0x58bb19[_0x25c558];return _0x3dc4ca;}export const userAccountDefinitions=[dingTalkSandboxBind];
1
+ function a208_0x57fa(){const _0x3dca3a=['2023820QlqCcF','109230VVaOcH','9Htopty','4VKyFSt','541573yPpXXI','2931580OiFpFS','8864464KbaplA','49538203GDTCSS','455kBWlcR','3864003gzGXhJ','10VxHHeg'];a208_0x57fa=function(){return _0x3dca3a;};return a208_0x57fa();}function a208_0x43a3(_0x2e2d5a,_0x2468b8){_0x2e2d5a=_0x2e2d5a-0x18a;const _0x57faf3=a208_0x57fa();let _0x43a3bc=_0x57faf3[_0x2e2d5a];return _0x43a3bc;}(function(_0x551e22,_0x473571){const _0x16ce2f=a208_0x43a3,_0x28a778=_0x551e22();while(!![]){try{const _0x1899d9=-parseInt(_0x16ce2f(0x190))/0x1+parseInt(_0x16ce2f(0x18c))/0x2+-parseInt(_0x16ce2f(0x18a))/0x3+-parseInt(_0x16ce2f(0x18f))/0x4*(parseInt(_0x16ce2f(0x191))/0x5)+-parseInt(_0x16ce2f(0x18d))/0x6*(parseInt(_0x16ce2f(0x194))/0x7)+-parseInt(_0x16ce2f(0x192))/0x8*(parseInt(_0x16ce2f(0x18e))/0x9)+parseInt(_0x16ce2f(0x18b))/0xa*(parseInt(_0x16ce2f(0x193))/0xb);if(_0x1899d9===_0x473571)break;else _0x28a778['push'](_0x28a778['shift']());}catch(_0x8b4ddf){_0x28a778['push'](_0x28a778['shift']());}}}(a208_0x57fa,0xc54ae));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];
@@ -1 +1 @@
1
- function a201_0x261b(_0x5e6474,_0x172e12){_0x5e6474=_0x5e6474-0x182;const _0x5c11ab=a201_0x5c11();let _0x261bdc=_0x5c11ab[_0x5e6474];return _0x261bdc;}const a201_0x138eb4=a201_0x261b;(function(_0x28df36,_0x419b3d){const _0x3a2982=a201_0x261b,_0x544bb2=_0x28df36();while(!![]){try{const _0x187dc6=parseInt(_0x3a2982(0x18b))/0x1+-parseInt(_0x3a2982(0x189))/0x2*(-parseInt(_0x3a2982(0x183))/0x3)+parseInt(_0x3a2982(0x18d))/0x4+parseInt(_0x3a2982(0x18a))/0x5*(parseInt(_0x3a2982(0x184))/0x6)+parseInt(_0x3a2982(0x18f))/0x7+parseInt(_0x3a2982(0x188))/0x8+-parseInt(_0x3a2982(0x185))/0x9;if(_0x187dc6===_0x419b3d)break;else _0x544bb2['push'](_0x544bb2['shift']());}catch(_0x1b71ab){_0x544bb2['push'](_0x544bb2['shift']());}}}(a201_0x5c11,0x46ff4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x138eb4(0x182),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a201_0x138eb4(0x18e),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a201_0x138eb4(0x18c),'description':a201_0x138eb4(0x186),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3ef0e9=>validateAppName(_0x3ef0e9,a201_0x138eb4(0x187)),'execute':_0xd7baaa=>runAppAdd(_0xd7baaa,'workspace\x20add')};function a201_0x5c11(){const _0x4c36b0=['11286558iIZpHu','App\x20profile\x20name','workspace\x20add','2081176YnAjfD','1116338zeVKcI','85LlFZOc','147043OQjpqD','name','205700jEBFkz','write','2930690Qlhajl','add','3aMLtUC','38616vTsNyg'];a201_0x5c11=function(){return _0x4c36b0;};return a201_0x5c11();}
1
+ const a209_0x5ef7ba=a209_0x3461;(function(_0x32faa8,_0x27350){const _0x1c626f=a209_0x3461,_0x5d2a6b=_0x32faa8();while(!![]){try{const _0x20c4c7=-parseInt(_0x1c626f(0x6a))/0x1*(-parseInt(_0x1c626f(0x67))/0x2)+-parseInt(_0x1c626f(0x68))/0x3*(-parseInt(_0x1c626f(0x69))/0x4)+-parseInt(_0x1c626f(0x6d))/0x5*(parseInt(_0x1c626f(0x6c))/0x6)+parseInt(_0x1c626f(0x74))/0x7+-parseInt(_0x1c626f(0x73))/0x8+parseInt(_0x1c626f(0x71))/0x9+-parseInt(_0x1c626f(0x72))/0xa;if(_0x20c4c7===_0x27350)break;else _0x5d2a6b['push'](_0x5d2a6b['shift']());}catch(_0x4ca56d){_0x5d2a6b['push'](_0x5d2a6b['shift']());}}}(a209_0x10ca,0x72b2a));function a209_0x10ca(){const _0x216824=['Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','122AHMYhz','2913yvQnqw','1284zeZDeh','3569EGGqTR','workspace','3633702brlaps','5buMPfk','workspace\x20add','name','add','6800814nJfwCo','8037730tGxgKl','2124192aWNcXA','6017690XtgmPW','write'];a209_0x10ca=function(){return _0x216824;};return a209_0x10ca();}function a209_0x3461(_0x44860b,_0x249ab1){_0x44860b=_0x44860b-0x67;const _0x10ca10=a209_0x10ca();let _0x3461c4=_0x10ca10[_0x44860b];return _0x3461c4;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a209_0x5ef7ba(0x6b),'command':a209_0x5ef7ba(0x70),'description':a209_0x5ef7ba(0x76),'risk':a209_0x5ef7ba(0x75),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a209_0x5ef7ba(0x6f),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4b32b6=>validateAppName(_0x4b32b6,a209_0x5ef7ba(0x6e)),'execute':_0x245945=>runAppAdd(_0x245945,a209_0x5ef7ba(0x6e))};
@@ -1 +1 @@
1
- const a202_0x28f3a4=a202_0x36c6;(function(_0x5a7f9f,_0x4760c8){const _0x37a498=a202_0x36c6,_0x8fe42e=_0x5a7f9f();while(!![]){try{const _0x5d3a10=-parseInt(_0x37a498(0x17e))/0x1*(parseInt(_0x37a498(0x187))/0x2)+-parseInt(_0x37a498(0x19d))/0x3*(-parseInt(_0x37a498(0x19e))/0x4)+-parseInt(_0x37a498(0x184))/0x5+-parseInt(_0x37a498(0x1a1))/0x6*(parseInt(_0x37a498(0x190))/0x7)+-parseInt(_0x37a498(0x181))/0x8+parseInt(_0x37a498(0x195))/0x9*(parseInt(_0x37a498(0x19c))/0xa)+-parseInt(_0x37a498(0x1a3))/0xb*(-parseInt(_0x37a498(0x170))/0xc);if(_0x5d3a10===_0x4760c8)break;else _0x8fe42e['push'](_0x8fe42e['shift']());}catch(_0x834181){_0x8fe42e['push'](_0x8fe42e['shift']());}}}(a202_0x33df,0x4b9cc));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a202_0x28f3a4(0x186),'env',a202_0x28f3a4(0x1a7),a202_0x28f3a4(0x185),a202_0x28f3a4(0x18e),a202_0x28f3a4(0x18a),'locale'],workspaceFlags=[{'name':'app','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17d)},{'name':a202_0x28f3a4(0x186),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x1a2)},{'name':a202_0x28f3a4(0x1a5),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x17f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x28f3a4(0x1a7),'type':a202_0x28f3a4(0x197),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a202_0x28f3a4(0x188),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x28f3a4(0x18e),'type':a202_0x28f3a4(0x196),'description':a202_0x28f3a4(0x18c)},{'name':'riskLevel','type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x189),'enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x28f3a4(0x18f),'type':a202_0x28f3a4(0x197),'description':a202_0x28f3a4(0x182)}];function isRecord(_0x311aec){const _0xeee61f=a202_0x28f3a4;return!!_0x311aec&&typeof _0x311aec===_0xeee61f(0x198)&&!Array[_0xeee61f(0x178)](_0x311aec);}function assertValidAppcode(_0x3d2205){const _0x1968b1=a202_0x28f3a4,{valid:_0x60ec4d,message:_0x19df6f}=validateAppcode(_0x3d2205);if(!_0x60ec4d)throw CliErrors[_0x1968b1(0x17c)]('Invalid\x20appcode:\x20'+_0x3d2205,_0x19df6f);}function sanitizeProfile(_0x4af8db){if(!isRecord(_0x4af8db))return{};const _0x249810={};for(const _0x244c30 of SAFE_PROFILE_KEYS){if(_0x4af8db[_0x244c30]!==undefined)_0x249810[_0x244c30]=_0x4af8db[_0x244c30];}return _0x249810;}function cloneProfile(_0x29f9b1){return isRecord(_0x29f9b1)?{..._0x29f9b1}:{};}function collectWorkspaceProfileOverrides(_0x33ba32){const _0x354526=a202_0x28f3a4,_0x19f9f8={},_0x59bee6=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a5)),_0x45a568=_0x33ba32[_0x354526(0x18d)](_0x354526(0x1a7)),_0x2b5212=_0x33ba32['str'](_0x354526(0x188)),_0x337c02=_0x33ba32[_0x354526(0x183)](_0x354526(0x18e)),_0x1cbd52=_0x33ba32[_0x354526(0x18d)]('riskLevel'),_0x4488b9=_0x33ba32[_0x354526(0x18d)]('locale');if(_0x59bee6)_0x19f9f8[_0x354526(0x1a5)]=_0x59bee6;if(_0x45a568)_0x19f9f8['apiDir']=_0x45a568;if(_0x2b5212)_0x19f9f8[_0x354526(0x185)]=_0x2b5212;if(_0x337c02!==undefined&&_0x337c02!=='')_0x19f9f8[_0x354526(0x18e)]=Number(_0x337c02);if(_0x1cbd52)_0x19f9f8[_0x354526(0x18a)]=_0x1cbd52;if(_0x4488b9)_0x19f9f8[_0x354526(0x18f)]=_0x4488b9;return _0x19f9f8;}async function validateWorkspaceArgs(_0x4e8d8e){const _0x3a9395=a202_0x28f3a4,_0x3c7da9=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x16f))['trim'](),_0x22e4eb=_0x4e8d8e[_0x3a9395(0x18d)](_0x3a9395(0x186))[_0x3a9395(0x173)]();if(!_0x3c7da9&&!_0x22e4eb)throw CliErrors[_0x3a9395(0x17c)](_0x3a9395(0x191),_0x3a9395(0x172)+CLI_BIN_NAME+_0x3a9395(0x193)+CLI_BIN_NAME+_0x3a9395(0x176));if(_0x22e4eb)assertValidAppcode(_0x22e4eb);}function a202_0x36c6(_0x24437f,_0x26f977){_0x24437f=_0x24437f-0x16e;const _0x33df6a=a202_0x33df();let _0x36c6b2=_0x33df6a[_0x24437f];return _0x36c6b2;}function resolveKnownApps(){const _0x49f6ca=a202_0x28f3a4,{config:_0x4cca36,layers:_0x33fe31}=readRawConfigWithLayers(),_0x3a3462=isRecord(_0x4cca36[_0x49f6ca(0x192)])?_0x4cca36['apps']:{},_0x4b3c36=isRecord(_0x33fe31['globalConfig'][_0x49f6ca(0x192)])?_0x33fe31['globalConfig'][_0x49f6ca(0x192)]:{};return{..._0x4b3c36,..._0x3a3462};}async function configureWorkspace(_0x3cdafe,_0x217331){const _0x391ca5=a202_0x28f3a4,_0x26894e=_0x3cdafe[_0x391ca5(0x18d)](_0x391ca5(0x16f))[_0x391ca5(0x173)](),_0x4e4c81=_0x3cdafe['str'](_0x391ca5(0x186))[_0x391ca5(0x173)](),_0x204f33=_0x26894e||_0x4e4c81;if(!_0x204f33)throw CliErrors[_0x391ca5(0x17c)](_0x391ca5(0x191),_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x193)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x4e4c81)assertValidAppcode(_0x4e4c81);const _0x42144b=resolveWriteConfigPath(_0x391ca5(0x1a4)),_0x567e1f=readConfigFile(_0x42144b),_0x385875=resolveKnownApps(),_0x2318e0=isRecord(_0x567e1f[_0x391ca5(0x192)])?{..._0x567e1f[_0x391ca5(0x192)]}:{},_0x1c2749=cloneProfile(_0x2318e0[_0x204f33]),_0x22241c=sanitizeProfile(_0x385875[_0x204f33]),_0x406bb1=_0x4e4c81?{}:_0x22241c,_0x5e89de=_0x4e4c81||_0x406bb1[_0x391ca5(0x186)];if(!_0x5e89de){const _0x43e975=Object[_0x391ca5(0x177)](_0x385875),_0x4e3d5e=_0x43e975[_0x391ca5(0x179)]===0x0?_0x391ca5(0x172)+CLI_BIN_NAME+_0x391ca5(0x194)+_0x217331+_0x391ca5(0x17a)+_0x204f33+'\x20--appcode\x20<code>`.':_0x391ca5(0x18b)+_0x43e975[_0x391ca5(0x19b)](',\x20');throw CliErrors[_0x391ca5(0x17c)]('App\x20\x22'+_0x204f33+'\x22\x20not\x20found.',_0x4e3d5e);}assertValidAppcode(String(_0x5e89de));const _0x3dbf37={..._0x406bb1,..._0x1c2749,'appcode':String(_0x5e89de),...collectWorkspaceProfileOverrides(_0x3cdafe)};return _0x2318e0[_0x204f33]=_0x3dbf37,_0x567e1f[_0x391ca5(0x192)]=_0x2318e0,_0x567e1f[_0x391ca5(0x17b)]=_0x204f33,delete _0x567e1f[_0x391ca5(0x186)],delete _0x567e1f[_0x391ca5(0x16f)],_0x3dbf37['env']&&(_0x567e1f[_0x391ca5(0x1a5)]=_0x3dbf37[_0x391ca5(0x1a5)]),writeConfigFile(_0x42144b,_0x567e1f),{'ok':!![],'message':'Workspace\x20'+(_0x217331==='init'?_0x391ca5(0x180):'updated')+':\x20'+_0x204f33+_0x391ca5(0x19f)+_0x3dbf37['appcode']+_0x391ca5(0x19a)+_0x42144b+_0x391ca5(0x171),'data':{'operation':_0x391ca5(0x1a0)+_0x217331,'configPath':_0x42144b,'app':_0x204f33,'appcode':_0x3dbf37[_0x391ca5(0x186)],'env':_0x3dbf37[_0x391ca5(0x1a5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a202_0x28f3a4(0x16e),'risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x421645=>configureWorkspace(_0x421645,a202_0x28f3a4(0x175))},workspaceUseDefinition={'service':a202_0x28f3a4(0x174),'command':a202_0x28f3a4(0x1a6),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a202_0x28f3a4(0x199),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e6eda=>configureWorkspace(_0x5e6eda,a202_0x28f3a4(0x1a6))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a202_0x33df(){const _0x2ba5af=['447100CyYfCS','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','str','pageSize','locale','28NwWUWl','Missing\x20workspace\x20app\x20selector.','apps','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20','14967cKfyWP','number','string','object','write',').\x20Config:\x20','join','2960dmPluj','3wxwubJ','774804wNLNlW','\x20(appcode:\x20','workspace.','635790kEcWiW','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4994SQhjZw','project','env','use','apiDir','Initialize\x20the\x20current\x20workspace\x20app\x20binding','app','37548YrsQlF','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','workspace','init','\x20workspace\x20use\x20--app\x20<name>`.','keys','isArray','length','\x20--app\x20','defaultApp','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2cUgjyR','Target\x20environment','initialized','3742472VdPHUd','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','2290190JehVsY','format','appcode'];a202_0x33df=function(){return _0x2ba5af;};return a202_0x33df();}export{WORKSPACE_USAGE};
1
+ const a210_0xd00145=a210_0x24ad;(function(_0xeca789,_0x85c46a){const _0x3cc89a=a210_0x24ad,_0x379ff6=_0xeca789();while(!![]){try{const _0x5ac4a8=-parseInt(_0x3cc89a(0x18b))/0x1*(parseInt(_0x3cc89a(0x1aa))/0x2)+parseInt(_0x3cc89a(0x1a9))/0x3+parseInt(_0x3cc89a(0x1bf))/0x4*(parseInt(_0x3cc89a(0x19b))/0x5)+-parseInt(_0x3cc89a(0x1a3))/0x6+parseInt(_0x3cc89a(0x1a7))/0x7*(parseInt(_0x3cc89a(0x196))/0x8)+parseInt(_0x3cc89a(0x1ab))/0x9*(parseInt(_0x3cc89a(0x1bb))/0xa)+parseInt(_0x3cc89a(0x193))/0xb;if(_0x5ac4a8===_0x85c46a)break;else _0x379ff6['push'](_0x379ff6['shift']());}catch(_0xd2d675){_0x379ff6['push'](_0x379ff6['shift']());}}}(a210_0x5508,0x3919d));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';function a210_0x24ad(_0x4cd4ec,_0x5508a7){_0x4cd4ec=_0x4cd4ec-0x18b;const _0x550836=a210_0x5508();let _0x24ad99=_0x550836[_0x4cd4ec];return _0x24ad99;}import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=['appcode',a210_0xd00145(0x1a8),a210_0xd00145(0x18c),'format',a210_0xd00145(0x1b9),a210_0xd00145(0x1ac),a210_0xd00145(0x1b8)],workspaceFlags=[{'name':a210_0xd00145(0x194),'type':'string','description':a210_0xd00145(0x1a1)},{'name':a210_0xd00145(0x198),'type':'string','description':a210_0xd00145(0x1a2)},{'name':'env','type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1ae),'enum':[...RABETBASE_ENV_VALUES]},{'name':a210_0xd00145(0x18c),'type':'string','description':a210_0xd00145(0x19e)},{'name':a210_0xd00145(0x1c4),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a210_0xd00145(0x1b9),'type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a210_0xd00145(0x1ac),'type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1ba),'enum':[...RISK_LEVEL_VALUES]},{'name':a210_0xd00145(0x1b8),'type':a210_0xd00145(0x19f),'description':a210_0xd00145(0x1be)}];function isRecord(_0x392fec){const _0x5e2348=a210_0xd00145;return!!_0x392fec&&typeof _0x392fec==='object'&&!Array[_0x5e2348(0x1b4)](_0x392fec);}function assertValidAppcode(_0x5a5a43){const _0x30c2ab=a210_0xd00145,{valid:_0x4c08a4,message:_0x36db5a}=validateAppcode(_0x5a5a43);if(!_0x4c08a4)throw CliErrors['validation'](_0x30c2ab(0x1b2)+_0x5a5a43,_0x36db5a);}function sanitizeProfile(_0x2d3f3f){if(!isRecord(_0x2d3f3f))return{};const _0x3e37f7={};for(const _0x21f4ad of SAFE_PROFILE_KEYS){if(_0x2d3f3f[_0x21f4ad]!==undefined)_0x3e37f7[_0x21f4ad]=_0x2d3f3f[_0x21f4ad];}return _0x3e37f7;}function cloneProfile(_0x3e3519){return isRecord(_0x3e3519)?{..._0x3e3519}:{};}function collectWorkspaceProfileOverrides(_0x34c58e){const _0x6bb08b=a210_0xd00145,_0x28e8f6={},_0x3c6fdf=_0x34c58e[_0x6bb08b(0x192)](_0x6bb08b(0x1a8)),_0x15530d=_0x34c58e['str'](_0x6bb08b(0x18c)),_0x249f90=_0x34c58e[_0x6bb08b(0x192)](_0x6bb08b(0x1c4)),_0x4f4361=_0x34c58e[_0x6bb08b(0x1bc)]('pageSize'),_0xe80eb8=_0x34c58e['str'](_0x6bb08b(0x1ac)),_0x41871f=_0x34c58e['str']('locale');if(_0x3c6fdf)_0x28e8f6[_0x6bb08b(0x1a8)]=_0x3c6fdf;if(_0x15530d)_0x28e8f6[_0x6bb08b(0x18c)]=_0x15530d;if(_0x249f90)_0x28e8f6[_0x6bb08b(0x1bd)]=_0x249f90;if(_0x4f4361!==undefined&&_0x4f4361!=='')_0x28e8f6[_0x6bb08b(0x1b9)]=Number(_0x4f4361);if(_0xe80eb8)_0x28e8f6[_0x6bb08b(0x1ac)]=_0xe80eb8;if(_0x41871f)_0x28e8f6[_0x6bb08b(0x1b8)]=_0x41871f;return _0x28e8f6;}async function validateWorkspaceArgs(_0x2b903d){const _0x6c063d=a210_0xd00145,_0x18225c=_0x2b903d['str']('app')[_0x6c063d(0x1af)](),_0x45198c=_0x2b903d[_0x6c063d(0x192)](_0x6c063d(0x198))['trim']();if(!_0x18225c&&!_0x45198c)throw CliErrors[_0x6c063d(0x1a6)]('Missing\x20workspace\x20app\x20selector.',_0x6c063d(0x1a4)+CLI_BIN_NAME+_0x6c063d(0x1c2)+CLI_BIN_NAME+_0x6c063d(0x1a5));if(_0x45198c)assertValidAppcode(_0x45198c);}function resolveKnownApps(){const _0xaeafc7=a210_0xd00145,{config:_0x3add6b,layers:_0x59f03f}=readRawConfigWithLayers(),_0x23f93b=isRecord(_0x3add6b[_0xaeafc7(0x18e)])?_0x3add6b[_0xaeafc7(0x18e)]:{},_0x1f61bb=isRecord(_0x59f03f['globalConfig']['apps'])?_0x59f03f[_0xaeafc7(0x1ad)][_0xaeafc7(0x18e)]:{};return{..._0x1f61bb,..._0x23f93b};}async function configureWorkspace(_0x522c48,_0x37555e){const _0x2f6abf=a210_0xd00145,_0x2035dc=_0x522c48['str'](_0x2f6abf(0x194))[_0x2f6abf(0x1af)](),_0x120b9d=_0x522c48['str'](_0x2f6abf(0x198))[_0x2f6abf(0x1af)](),_0x215aee=_0x2035dc||_0x120b9d;if(!_0x215aee)throw CliErrors['validation'](_0x2f6abf(0x19c),_0x2f6abf(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2f6abf(0x1a5));if(_0x120b9d)assertValidAppcode(_0x120b9d);const _0x850364=resolveWriteConfigPath(_0x2f6abf(0x197)),_0x4290ed=readConfigFile(_0x850364),_0x588788=resolveKnownApps(),_0x3fd0b2=isRecord(_0x4290ed['apps'])?{..._0x4290ed[_0x2f6abf(0x18e)]}:{},_0x41fd93=cloneProfile(_0x3fd0b2[_0x215aee]),_0x2b9df5=sanitizeProfile(_0x588788[_0x215aee]),_0x34e90b=_0x120b9d?{}:_0x2b9df5,_0x92b430=_0x120b9d||_0x34e90b[_0x2f6abf(0x198)];if(!_0x92b430){const _0x4e5657=Object['keys'](_0x588788),_0x4521e8=_0x4e5657['length']===0x0?_0x2f6abf(0x1a4)+CLI_BIN_NAME+'\x20workspace\x20'+_0x37555e+'\x20--app\x20'+_0x215aee+_0x2f6abf(0x191):_0x2f6abf(0x1b7)+_0x4e5657[_0x2f6abf(0x1b3)](',\x20');throw CliErrors[_0x2f6abf(0x1a6)](_0x2f6abf(0x18f)+_0x215aee+_0x2f6abf(0x1b6),_0x4521e8);}assertValidAppcode(String(_0x92b430));const _0x30854c={..._0x34e90b,..._0x41fd93,'appcode':String(_0x92b430),...collectWorkspaceProfileOverrides(_0x522c48)};return _0x3fd0b2[_0x215aee]=_0x30854c,_0x4290ed[_0x2f6abf(0x18e)]=_0x3fd0b2,_0x4290ed[_0x2f6abf(0x19a)]=_0x215aee,delete _0x4290ed['appcode'],delete _0x4290ed['app'],_0x30854c[_0x2f6abf(0x1a8)]&&(_0x4290ed[_0x2f6abf(0x1a8)]=_0x30854c[_0x2f6abf(0x1a8)]),writeConfigFile(_0x850364,_0x4290ed),{'ok':!![],'message':_0x2f6abf(0x1b5)+(_0x37555e===_0x2f6abf(0x1c3)?_0x2f6abf(0x199):_0x2f6abf(0x18d))+':\x20'+_0x215aee+_0x2f6abf(0x1b0)+_0x30854c['appcode']+').\x20Config:\x20'+_0x850364+_0x2f6abf(0x1a0),'data':{'operation':_0x2f6abf(0x1c1)+_0x37555e,'configPath':_0x850364,'app':_0x215aee,'appcode':_0x30854c[_0x2f6abf(0x198)],'env':_0x30854c[_0x2f6abf(0x1a8)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a210_0xd00145(0x1c0),'command':a210_0xd00145(0x1c3),'description':a210_0xd00145(0x195),'risk':a210_0xd00145(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4dc183=>configureWorkspace(_0x4dc183,a210_0xd00145(0x1c3))},workspaceUseDefinition={'service':'workspace','command':a210_0xd00145(0x1b1),'description':a210_0xd00145(0x19d),'risk':a210_0xd00145(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2e89d7=>configureWorkspace(_0x2e89d7,a210_0xd00145(0x1b1))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a210_0x5508(){const _0x46525f=['riskLevel','globalConfig','Target\x20environment','trim','\x20(appcode:\x20','use','Invalid\x20appcode:\x20','join','isArray','Workspace\x20','\x22\x20not\x20found.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','locale','pageSize','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','66890rVDoaW','flag','format','Locale\x20for\x20this\x20workspace\x20app\x20profile','68KJHrEO','workspace','workspace.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','defaultFormat','450611TvNjZy','apiDir','updated','apps','App\x20\x22','write','\x20--appcode\x20<code>`.','str','1123639kzgryM','app','Initialize\x20the\x20current\x20workspace\x20app\x20binding','365624tzngNP','project','appcode','initialized','defaultApp','64910rlCpVV','Missing\x20workspace\x20app\x20selector.','Switch\x20the\x20current\x20workspace\x20app\x20binding','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','string','.\x20Credentials:\x20not\x20written.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','2446140zljePo','Use\x20`','\x20workspace\x20use\x20--app\x20<name>`.','validation','35bnVUgn','env','1000407gGmdWY','2JeTJHC','279dgAGCs'];a210_0x5508=function(){return _0x46525f;};return a210_0x5508();}export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a203_0x52fa35=a203_0x49bb;(function(_0x4fd376,_0x47ab41){const _0x217ec6=a203_0x49bb,_0x3afbe3=_0x4fd376();while(!![]){try{const _0x46f86e=-parseInt(_0x217ec6(0x1d2))/0x1+-parseInt(_0x217ec6(0x1dc))/0x2*(-parseInt(_0x217ec6(0x1d0))/0x3)+-parseInt(_0x217ec6(0x1d4))/0x4+parseInt(_0x217ec6(0x1d1))/0x5*(parseInt(_0x217ec6(0x1db))/0x6)+parseInt(_0x217ec6(0x1cf))/0x7*(-parseInt(_0x217ec6(0x1cd))/0x8)+-parseInt(_0x217ec6(0x1de))/0x9*(parseInt(_0x217ec6(0x1dd))/0xa)+parseInt(_0x217ec6(0x1d3))/0xb*(parseInt(_0x217ec6(0x1d7))/0xc);if(_0x46f86e===_0x47ab41)break;else _0x3afbe3['push'](_0x3afbe3['shift']());}catch(_0x3070e9){_0x3afbe3['push'](_0x3afbe3['shift']());}}}(a203_0x183f,0xd70ba));function a203_0x49bb(_0x446ae2,_0x53ea95){_0x446ae2=_0x446ae2-0x1cd;const _0x183fdd=a203_0x183f();let _0x49bba5=_0x183fdd[_0x446ae2];return _0x49bba5;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a203_0x52fa35(0x1d5),'command':a203_0x52fa35(0x1d9),'description':a203_0x52fa35(0x1ce),'risk':a203_0x52fa35(0x1d8),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x52fa35(0x1d6),'description':a203_0x52fa35(0x1da),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xc7075e=>validateAppName(_0xc7075e,'workspace\x20remove'),'execute':_0x48904b=>runAppRemove(_0x48904b,'workspace\x20remove')};function a203_0x183f(){const _0x24ec07=['2316kZvrkD','15220lYfhkW','3204jcoZwU','1752oWQNTv','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','42245veHcYG','2055aooUUu','6835ELfKiD','1380346EdzjMn','43510742dXScPN','3715696JeQrRS','workspace','name','12axuNKf','write','remove','App\x20profile\x20name\x20to\x20remove','1338NpSoNZ'];a203_0x183f=function(){return _0x24ec07;};return a203_0x183f();}
1
+ function a211_0x3ac4(){const _0x6c46c7=['2121488ilaRPG','App\x20profile\x20name\x20to\x20remove','1048748INBFOB','10447758HTKcRd','14NMPZnR','268280oUYgDp','workspace\x20remove','697749VzqfPc','3187530rwVKIb','write','3WsAQCw','workspace','remove','name','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','860370zFxXCV'];a211_0x3ac4=function(){return _0x6c46c7;};return a211_0x3ac4();}function a211_0x52a2(_0x33437d,_0x20df4f){_0x33437d=_0x33437d-0xc7;const _0x3ac4d7=a211_0x3ac4();let _0x52a23f=_0x3ac4d7[_0x33437d];return _0x52a23f;}const a211_0x41d914=a211_0x52a2;(function(_0xbac371,_0x12b3ec){const _0x23c2a0=a211_0x52a2,_0x1bca62=_0xbac371();while(!![]){try{const _0xa95c9e=parseInt(_0x23c2a0(0xd2))/0x1+-parseInt(_0x23c2a0(0xcd))/0x2+parseInt(_0x23c2a0(0xd5))/0x3*(-parseInt(_0x23c2a0(0xcb))/0x4)+parseInt(_0x23c2a0(0xca))/0x5+-parseInt(_0x23c2a0(0xd3))/0x6+parseInt(_0x23c2a0(0xcf))/0x7*(parseInt(_0x23c2a0(0xd0))/0x8)+parseInt(_0x23c2a0(0xce))/0x9;if(_0xa95c9e===_0x12b3ec)break;else _0x1bca62['push'](_0x1bca62['shift']());}catch(_0x41203d){_0x1bca62['push'](_0x1bca62['shift']());}}}(a211_0x3ac4,0x7cf0a));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a211_0x41d914(0xd6),'command':a211_0x41d914(0xc7),'description':a211_0x41d914(0xc9),'risk':a211_0x41d914(0xd4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a211_0x41d914(0xc8),'description':a211_0x41d914(0xcc),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3e06b1=>validateAppName(_0x3e06b1,a211_0x41d914(0xd1)),'execute':_0x1a8f1e=>runAppRemove(_0x1a8f1e,'workspace\x20remove')};
@@ -1 +1 @@
1
- const a204_0x28961a=a204_0x14d8;(function(_0x3edb20,_0x31cf3b){const _0x551f4e=a204_0x14d8,_0x1d6b0e=_0x3edb20();while(!![]){try{const _0x5ae69c=-parseInt(_0x551f4e(0x160))/0x1+-parseInt(_0x551f4e(0x166))/0x2+-parseInt(_0x551f4e(0x155))/0x3+parseInt(_0x551f4e(0x14b))/0x4*(parseInt(_0x551f4e(0x14a))/0x5)+-parseInt(_0x551f4e(0x141))/0x6+parseInt(_0x551f4e(0x151))/0x7+-parseInt(_0x551f4e(0x163))/0x8*(-parseInt(_0x551f4e(0x13e))/0x9);if(_0x5ae69c===_0x31cf3b)break;else _0x1d6b0e['push'](_0x1d6b0e['shift']());}catch(_0xc1a17b){_0x1d6b0e['push'](_0x1d6b0e['shift']());}}}(a204_0x7889,0xdea1c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a204_0x14d8(_0x3fc665,_0x233ae2){_0x3fc665=_0x3fc665-0x13e;const _0x7889aa=a204_0x7889();let _0x14d853=_0x7889aa[_0x3fc665];return _0x14d853;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a204_0x28961a(0x15e),a204_0x28961a(0x15d),'format',a204_0x28961a(0x165)];function a204_0x7889(){const _0x35e976=['Default\x20page\x20size','appcode','15gWzVto','1425756kyRiPz','trim','entries','API\x20directory\x20path','app','cookie','2673419aFsCbD','string','keys','join','4917072riLwxK','has','apiDir','map','pageSize','apps','en-US','number','locale','accessKey','Access\x20key','228170OBepvl','defaultFormat','env','24YUBKRf','Risk\x20level','riskLevel','1583804kkhtpk','inherit','9169749btinIr','length','Target\x20environment','5620926WbTror','Auth\x20cookie','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','format','Locale','Config\x20key\x20(','zh-CN'];a204_0x7889=function(){return _0x35e976;};return a204_0x7889();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x28961a(0x149),a204_0x28961a(0x162),'locale',a204_0x28961a(0x144),a204_0x28961a(0x150),a204_0x28961a(0x15e),a204_0x28961a(0x157)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x56c219){const _0x46d374=a204_0x28961a;return[..._0x56c219][_0x46d374(0x154)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x30df11){const _0x5e0dfe=a204_0x28961a;return TOP_LEVEL_CONFIG_KEYS[_0x5e0dfe(0x156)](_0x30df11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x353ad8=a204_0x28961a;return _0x353ad8(0x146)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a204_0x28961a(0x157),'cookie':a204_0x28961a(0x150),'accessKey':a204_0x28961a(0x15e),'defaultFormat':a204_0x28961a(0x144),'pageSize':a204_0x28961a(0x159),'riskLevel':a204_0x28961a(0x165),'locale':a204_0x28961a(0x15d)};export function getAppProfileFlagDefs(){const _0x2ad085=a204_0x28961a;return[{'name':_0x2ad085(0x162),'type':_0x2ad085(0x152),'description':_0x2ad085(0x140),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2ad085(0x157),'type':_0x2ad085(0x152),'description':_0x2ad085(0x14e)},{'name':_0x2ad085(0x150),'type':'string','description':_0x2ad085(0x142),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x2ad085(0x15f),'hidden':!![]},{'name':_0x2ad085(0x161),'type':_0x2ad085(0x152),'description':_0x2ad085(0x143),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2ad085(0x159),'type':_0x2ad085(0x15c),'description':_0x2ad085(0x148)},{'name':'riskLevel','type':_0x2ad085(0x152),'description':_0x2ad085(0x164),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2ad085(0x15d),'type':_0x2ad085(0x152),'description':_0x2ad085(0x145)}];}export function collectAppProfileOverrides(_0x1ca8b3){const _0x361d30=a204_0x28961a,_0x1cc1d7={};for(const [_0x50d075,_0x4f5a00]of Object[_0x361d30(0x14d)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21b1af=_0x1ca8b3(_0x50d075);if(!_0x21b1af)continue;_0x1cc1d7[_0x4f5a00]=_0x4f5a00==='pageSize'?Number(_0x21b1af):_0x21b1af;}return _0x1cc1d7;}export function buildAppProfileListFields(_0x27d141){const _0x4f2261=a204_0x28961a;return{'env':_0x27d141[_0x4f2261(0x162)]??null,'apiDir':_0x27d141['apiDir']??null,'hasCookie':!!_0x27d141['cookie'],'hasAccessKey':!!_0x27d141[_0x4f2261(0x15e)],'format':_0x27d141[_0x4f2261(0x144)]??null,'pageSize':_0x27d141['pageSize']??null,'riskLevel':_0x27d141[_0x4f2261(0x165)]??null,'locale':_0x27d141['locale']??null};}export function buildAppDoctorFields(_0x3862c7,_0x23582f){const _0x476d82=a204_0x28961a;return{'env':{'value':_0x3862c7[_0x476d82(0x162)]||_0x23582f['env'],'source':_0x3862c7[_0x476d82(0x162)]?_0x476d82(0x14f):_0x476d82(0x167)},'apiDir':{'value':_0x3862c7['apiDir']||_0x23582f[_0x476d82(0x157)],'source':_0x3862c7[_0x476d82(0x157)]?_0x476d82(0x14f):_0x476d82(0x167)},'cookie':{'value':_0x3862c7[_0x476d82(0x150)]||_0x23582f[_0x476d82(0x150)],'source':_0x3862c7[_0x476d82(0x150)]?_0x476d82(0x14f):_0x476d82(0x167)},'accessKey':{'value':_0x3862c7[_0x476d82(0x15e)]||_0x23582f[_0x476d82(0x15e)],'source':_0x3862c7['accessKey']?_0x476d82(0x14f):_0x476d82(0x167)}};}export function buildCanonicalAppConfig(_0x522998,_0x35b9e2){const _0x206294=a204_0x28961a,_0x3c9f7b=_0x522998[_0x206294(0x158)](_0x2971b6=>String(_0x2971b6||'')[_0x206294(0x14c)]())['filter'](Boolean);if(_0x3c9f7b['length']===0x0)return{};const _0x5127e8={};for(const _0x2f1a64 of _0x3c9f7b){_0x5127e8[_0x2f1a64]=_0x35b9e2?{'appcode':_0x2f1a64,'env':_0x35b9e2}:{'appcode':_0x2f1a64};}return{'apps':_0x5127e8,'defaultApp':_0x3c9f7b[0x0]};}export function buildCanonicalProjectConfig(_0x370d2d,_0xd6cf0f){const _0x1afbbc=a204_0x28961a,{appCodes:appCodes=[],env:_0x23c732,metadata:_0x1cc524}=_0xd6cf0f,_0xcc87ea={..._0x370d2d,..._0x1cc524||{}};delete _0xcc87ea['appcode'],delete _0xcc87ea['app'];if(_0x23c732)_0xcc87ea[_0x1afbbc(0x162)]=_0x23c732;else!_0xcc87ea[_0x1afbbc(0x162)]&&(_0xcc87ea[_0x1afbbc(0x162)]=DEFAULT_CONFIG_VALUES['env']);const _0x58c9b0=buildCanonicalAppConfig(appCodes,_0xcc87ea[_0x1afbbc(0x162)]);return Object[_0x1afbbc(0x153)](_0x58c9b0)[_0x1afbbc(0x13f)]>0x0&&(_0xcc87ea['apps']=_0x58c9b0[_0x1afbbc(0x15a)],_0xcc87ea['defaultApp']=_0x58c9b0['defaultApp']),_0xcc87ea;}const LOCALE_MAP={'zh':a204_0x28961a(0x147),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a204_0x28961a(0x15b),'en-us':a204_0x28961a(0x15b),'en_us':a204_0x28961a(0x15b)};export function normalizeLocale(_0x2dce2d){if(!_0x2dce2d)return null;return LOCALE_MAP[_0x2dce2d['toLowerCase']()]??null;}
1
+ const a212_0x22c27c=a212_0x156b;(function(_0x2ac414,_0x5a1e05){const _0x2f0e6c=a212_0x156b,_0x2cbdd1=_0x2ac414();while(!![]){try{const _0x5081d3=parseInt(_0x2f0e6c(0xb3))/0x1+parseInt(_0x2f0e6c(0xaa))/0x2+parseInt(_0x2f0e6c(0xba))/0x3+parseInt(_0x2f0e6c(0xb8))/0x4*(parseInt(_0x2f0e6c(0xb9))/0x5)+parseInt(_0x2f0e6c(0xa8))/0x6*(-parseInt(_0x2f0e6c(0xb6))/0x7)+-parseInt(_0x2f0e6c(0xa4))/0x8+-parseInt(_0x2f0e6c(0xc6))/0x9;if(_0x5081d3===_0x5a1e05)break;else _0x2cbdd1['push'](_0x2cbdd1['shift']());}catch(_0x2f2192){_0x2cbdd1['push'](_0x2cbdd1['shift']());}}}(a212_0x5204,0xdd2cf));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a212_0x22c27c(0xbc),a212_0x22c27c(0xb7),a212_0x22c27c(0xbf),a212_0x22c27c(0xb4),a212_0x22c27c(0xbe)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a212_0x22c27c(0xb0),'env',a212_0x22c27c(0xbf),'format',a212_0x22c27c(0xbc),a212_0x22c27c(0xb7),'apiDir']);function a212_0x156b(_0x20c30b,_0x448710){_0x20c30b=_0x20c30b-0xa4;const _0x5204f0=a212_0x5204();let _0x156b3f=_0x5204f0[_0x20c30b];return _0x156b3f;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x28133d){const _0x440554=a212_0x22c27c;return[..._0x28133d][_0x440554(0xa9)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3fc498){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3fc498);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a212_0x22c27c(0xa6),'apiDir':a212_0x22c27c(0xae),'cookie':a212_0x22c27c(0xbc),'accessKey':a212_0x22c27c(0xb7),'defaultFormat':'format','pageSize':a212_0x22c27c(0xbd),'riskLevel':'riskLevel','locale':a212_0x22c27c(0xbf)};export function getAppProfileFlagDefs(){const _0x29a1c4=a212_0x22c27c;return[{'name':'env','type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xc3),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x29a1c4(0xae),'type':'string','description':_0x29a1c4(0xc5)},{'name':_0x29a1c4(0xbc),'type':'string','description':_0x29a1c4(0xac),'hidden':!![]},{'name':'accessKey','type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xb5),'hidden':!![]},{'name':'defaultFormat','type':'string','description':_0x29a1c4(0xc1),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x29a1c4(0xbd),'type':_0x29a1c4(0xc8),'description':_0x29a1c4(0xc4)},{'name':_0x29a1c4(0xbe),'type':'string','description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x29a1c4(0xbf),'type':_0x29a1c4(0xb2),'description':_0x29a1c4(0xab)}];}function a212_0x5204(){const _0x5a8d40=['801592TlDiiT','Locale','Auth\x20cookie','toLowerCase','apiDir','apps','appcode','app','string','1548026qpfRFj','format','Access\x20key','49KyzCkd','accessKey','1512404VriIOP','5NYbQOw','2333229RdbWMj','entries','cookie','pageSize','riskLevel','locale','keys','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','inherit','Target\x20environment','Default\x20page\x20size','API\x20directory\x20path','9892890EExOiF','length','number','en-US','6286080nnbfEY','defaultApp','env','zh-CN','268938bQAwgi','join'];a212_0x5204=function(){return _0x5a8d40;};return a212_0x5204();}export function collectAppProfileOverrides(_0x165c18){const _0x5d25ca=a212_0x22c27c,_0x268de8={};for(const [_0x2176a7,_0x2bede7]of Object[_0x5d25ca(0xbb)](APP_PROFILE_FLAG_KEY_MAP)){const _0x395a21=_0x165c18(_0x2176a7);if(!_0x395a21)continue;_0x268de8[_0x2bede7]=_0x2bede7===_0x5d25ca(0xbd)?Number(_0x395a21):_0x395a21;}return _0x268de8;}export function buildAppProfileListFields(_0x51e1c8){const _0x5b9993=a212_0x22c27c;return{'env':_0x51e1c8[_0x5b9993(0xa6)]??null,'apiDir':_0x51e1c8[_0x5b9993(0xae)]??null,'hasCookie':!!_0x51e1c8[_0x5b9993(0xbc)],'hasAccessKey':!!_0x51e1c8['accessKey'],'format':_0x51e1c8[_0x5b9993(0xb4)]??null,'pageSize':_0x51e1c8[_0x5b9993(0xbd)]??null,'riskLevel':_0x51e1c8['riskLevel']??null,'locale':_0x51e1c8[_0x5b9993(0xbf)]??null};}export function buildAppDoctorFields(_0x7a149b,_0x5bce79){const _0x378048=a212_0x22c27c;return{'env':{'value':_0x7a149b[_0x378048(0xa6)]||_0x5bce79['env'],'source':_0x7a149b[_0x378048(0xa6)]?'app':_0x378048(0xc2)},'apiDir':{'value':_0x7a149b[_0x378048(0xae)]||_0x5bce79[_0x378048(0xae)],'source':_0x7a149b['apiDir']?'app':'inherit'},'cookie':{'value':_0x7a149b[_0x378048(0xbc)]||_0x5bce79[_0x378048(0xbc)],'source':_0x7a149b['cookie']?_0x378048(0xb1):'inherit'},'accessKey':{'value':_0x7a149b[_0x378048(0xb7)]||_0x5bce79[_0x378048(0xb7)],'source':_0x7a149b[_0x378048(0xb7)]?_0x378048(0xb1):_0x378048(0xc2)}};}export function buildCanonicalAppConfig(_0x387572,_0x25dc7b){const _0xb7191e=a212_0x22c27c,_0x2d5d64=_0x387572['map'](_0x1442f3=>String(_0x1442f3||'')['trim']())['filter'](Boolean);if(_0x2d5d64[_0xb7191e(0xc7)]===0x0)return{};const _0x5ac3ec={};for(const _0x1dd24d of _0x2d5d64){_0x5ac3ec[_0x1dd24d]=_0x25dc7b?{'appcode':_0x1dd24d,'env':_0x25dc7b}:{'appcode':_0x1dd24d};}return{'apps':_0x5ac3ec,'defaultApp':_0x2d5d64[0x0]};}export function buildCanonicalProjectConfig(_0x4c1d5a,_0x50635a){const _0x1de4f7=a212_0x22c27c,{appCodes:appCodes=[],env:_0x559525,metadata:_0x5562e4}=_0x50635a,_0x25344c={..._0x4c1d5a,..._0x5562e4||{}};delete _0x25344c[_0x1de4f7(0xb0)],delete _0x25344c[_0x1de4f7(0xb1)];if(_0x559525)_0x25344c[_0x1de4f7(0xa6)]=_0x559525;else!_0x25344c['env']&&(_0x25344c[_0x1de4f7(0xa6)]=DEFAULT_CONFIG_VALUES[_0x1de4f7(0xa6)]);const _0x19c3a7=buildCanonicalAppConfig(appCodes,_0x25344c[_0x1de4f7(0xa6)]);return Object[_0x1de4f7(0xc0)](_0x19c3a7)[_0x1de4f7(0xc7)]>0x0&&(_0x25344c[_0x1de4f7(0xaf)]=_0x19c3a7[_0x1de4f7(0xaf)],_0x25344c['defaultApp']=_0x19c3a7[_0x1de4f7(0xa5)]),_0x25344c;}const LOCALE_MAP={'zh':a212_0x22c27c(0xa7),'zh-cn':a212_0x22c27c(0xa7),'zh_cn':a212_0x22c27c(0xa7),'en':a212_0x22c27c(0xc9),'en-us':a212_0x22c27c(0xc9),'en_us':a212_0x22c27c(0xc9)};export function normalizeLocale(_0x26c9d6){const _0x386218=a212_0x22c27c;if(!_0x26c9d6)return null;return LOCALE_MAP[_0x26c9d6[_0x386218(0xad)]()]??null;}
@@ -1 +1,3 @@
1
+ export declare const RABETBASE_CDN_BASE_URL = "https://g.lovrabet.com/dist/rabetbase-cli";
1
2
  export declare const CLI_VERSION_POLICY_URL = "https://g.lovrabet.com/dist/rabetbase-cli/config/index.json";
3
+ export declare const PROJECT_TEMPLATE_ASSET_BASE_URL = "https://g.lovrabet.com/dist/rabetbase-cli/templates/projects";
@@ -1 +1 @@
1
- function a205_0x4df2(_0x525d11,_0x32609e){_0x525d11=_0x525d11-0x9b;const _0x4f79ba=a205_0x4f79();let _0x4df256=_0x4f79ba[_0x525d11];return _0x4df256;}const a205_0x10097a=a205_0x4df2;(function(_0x48193b,_0x48d51b){const _0x1054c0=a205_0x4df2,_0x549ad7=_0x48193b();while(!![]){try{const _0x1d2558=-parseInt(_0x1054c0(0xa0))/0x1+parseInt(_0x1054c0(0x9b))/0x2*(parseInt(_0x1054c0(0x9e))/0x3)+parseInt(_0x1054c0(0xa5))/0x4+parseInt(_0x1054c0(0xa3))/0x5*(-parseInt(_0x1054c0(0xa1))/0x6)+parseInt(_0x1054c0(0xa4))/0x7+-parseInt(_0x1054c0(0xa2))/0x8*(parseInt(_0x1054c0(0x9c))/0x9)+parseInt(_0x1054c0(0x9f))/0xa;if(_0x1d2558===_0x48d51b)break;else _0x549ad7['push'](_0x549ad7['shift']());}catch(_0x22cabf){_0x549ad7['push'](_0x549ad7['shift']());}}}(a205_0x4f79,0x85b19));function a205_0x4f79(){const _0x3b951f=['169648bBwviF','5113915KXflQR','5129929RcziKY','765592EsMAmu','358zenvqR','351arPJbz','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3531uHrEUT','20671720YwXrBl','804674tdZkWQ','6HMBhxq'];a205_0x4f79=function(){return _0x3b951f;};return a205_0x4f79();}export const CLI_VERSION_POLICY_URL=a205_0x10097a(0x9d);
1
+ const a213_0xb7846e=a213_0x46aa;(function(_0x5d4ac6,_0xa1e4d4){const _0x5a1561=a213_0x46aa,_0x127a06=_0x5d4ac6();while(!![]){try{const _0x85f7f7=-parseInt(_0x5a1561(0xed))/0x1+-parseInt(_0x5a1561(0xe6))/0x2+parseInt(_0x5a1561(0xe8))/0x3*(parseInt(_0x5a1561(0xec))/0x4)+parseInt(_0x5a1561(0xeb))/0x5*(parseInt(_0x5a1561(0xef))/0x6)+parseInt(_0x5a1561(0xe9))/0x7*(parseInt(_0x5a1561(0xee))/0x8)+-parseInt(_0x5a1561(0xe7))/0x9+-parseInt(_0x5a1561(0xe5))/0xa;if(_0x85f7f7===_0xa1e4d4)break;else _0x127a06['push'](_0x127a06['shift']());}catch(_0x2c6087){_0x127a06['push'](_0x127a06['shift']());}}}(a213_0x5cf3,0xd9e9c));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';function a213_0x5cf3(){const _0x3be1a7=['/templates/projects','5698070jfvjjG','75056sCjIgp','7602966YshUvT','271587EaHtIo','7833dwZqew','/config/index.json','405XuLzWz','32WpYkHD','186814mJeiRX','5448mCfkkW','77424NBkFRS'];a213_0x5cf3=function(){return _0x3be1a7;};return a213_0x5cf3();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a213_0xb7846e(0xea);function a213_0x46aa(_0x3493c7,_0x4a1f30){_0x3493c7=_0x3493c7-0xe4;const _0x5cf380=a213_0x5cf3();let _0x46aa25=_0x5cf380[_0x3493c7];return _0x46aa25;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a213_0xb7846e(0xe4);