@lovrabet/rabetbase-cli 2.4.3 → 2.4.4

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 +16 -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 +14 -3
  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 a193_0x3875a9=a193_0x227b;(function(_0x478dc8,_0x210e2a){const _0x47e982=a193_0x227b,_0x3f283b=_0x478dc8();while(!![]){try{const _0xa8ddcd=-parseInt(_0x47e982(0x227))/0x1*(parseInt(_0x47e982(0x1fd))/0x2)+parseInt(_0x47e982(0x1f0))/0x3*(parseInt(_0x47e982(0x1f2))/0x4)+parseInt(_0x47e982(0x211))/0x5+-parseInt(_0x47e982(0x209))/0x6+-parseInt(_0x47e982(0x232))/0x7+parseInt(_0x47e982(0x1ff))/0x8*(parseInt(_0x47e982(0x205))/0x9)+parseInt(_0x47e982(0x1f9))/0xa;if(_0xa8ddcd===_0x210e2a)break;else _0x3f283b['push'](_0x3f283b['shift']());}catch(_0x208f3a){_0x3f283b['push'](_0x3f283b['shift']());}}}(a193_0x340e,0xb12a2));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a193_0x340e(){const _0x59b9b4=['isArray','schema:','1355065WBMNHd','fields','sql','boolean','tableName','str','pkField','index_type','toLowerCase','Table\x20\x22','push','length','indexName','read','primary','schemaWarnings','reason','Provide\x20--file\x20or\x20--sql','\x22\x20not\x20found\x20in\x20any\x20dataset','find','valid','isSelectOnly','1OWeiwL','parameters','isDangerous','message','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','columnNames','schemas','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','name','size','split','5070226sEJQyV','dataset','check-indexes','File\x20not\x20found:\x20','from','6peSFfb','trim','2113964MTrfGx','dbtableConfig','SQL\x20schema\x20validation','index_name','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','indexes','type','11489330BqIJEE','validate','unshift','tables','2088986cJRrQH','--check-indexes\x20requires\x20--schemas.','16kAaaXe','bool','columns','map','file','flagMissing','874521UrPPuX','validation','flatMap','get','1060734QOtRCv','string','sqlType','filter','\x22\x20not\x20found\x20or\x20not\x20accessible','index_columns'];a193_0x340e=function(){return _0x59b9b4;};return a193_0x340e();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a193_0x227b(_0x550ad6,_0xfaf8a7){_0x550ad6=_0x550ad6-0x1f0;const _0x340e1f=a193_0x340e();let _0x227b68=_0x340e1f[_0x550ad6];return _0x227b68;}export const sqlValidate={'service':a193_0x3875a9(0x213),'command':a193_0x3875a9(0x1fa),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a193_0x3875a9(0x21e),'flags':[{'name':a193_0x3875a9(0x203),'type':'string','description':a193_0x3875a9(0x22e)},{'name':a193_0x3875a9(0x213),'type':a193_0x3875a9(0x20a),'description':a193_0x3875a9(0x22b)},{'name':a193_0x3875a9(0x22d),'type':a193_0x3875a9(0x20a),'description':a193_0x3875a9(0x1f6)},{'name':a193_0x3875a9(0x234),'type':a193_0x3875a9(0x214),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x4def2f){const _0x21f42=a193_0x3875a9,_0x164bd9=_0x4def2f[_0x21f42(0x216)]('file'),_0x13379b=_0x4def2f[_0x21f42(0x216)]('sql'),_0x592543=_0x4def2f[_0x21f42(0x216)](_0x21f42(0x22d)),_0xcda6fe=_0x4def2f[_0x21f42(0x200)](_0x21f42(0x234));if(!_0x164bd9&&!_0x13379b)throw CliErrors[_0x21f42(0x204)](_0x21f42(0x203),_0x21f42(0x222));if(_0xcda6fe&&!_0x592543)throw CliErrors[_0x21f42(0x206)](_0x21f42(0x1fe));let _0x3226c8;if(_0x164bd9){const _0x463e32=resolve(process['cwd'](),_0x164bd9);if(!existsSync(_0x463e32))throw CliErrors[_0x21f42(0x206)](_0x21f42(0x235)+_0x463e32);_0x3226c8=readFileSync(_0x463e32,'utf-8');}else _0x3226c8=_0x13379b;const _0x576e3c=validateSql(_0x3226c8),_0x195d60={'valid':_0x576e3c[_0x21f42(0x225)],'sqlType':_0x576e3c[_0x21f42(0x20b)][_0x21f42(0x1f8)],'isSelectOnly':_0x576e3c[_0x21f42(0x20b)][_0x21f42(0x226)],'isDangerous':_0x576e3c[_0x21f42(0x20b)][_0x21f42(0x229)],'tables':_0x576e3c[_0x21f42(0x1fc)],'parameters':_0x576e3c[_0x21f42(0x228)],'message':_0x576e3c[_0x21f42(0x22a)]};_0x576e3c[_0x21f42(0x20b)][_0x21f42(0x221)]&&(_0x195d60['reason']=_0x576e3c['sqlType'][_0x21f42(0x221)]);if(_0x592543&&_0x576e3c[_0x21f42(0x225)]){const _0x59421b=_0x592543[_0x21f42(0x231)](',')['map'](_0x3f90a3=>_0x3f90a3[_0x21f42(0x1f1)]())[_0x21f42(0x20c)](Boolean),_0x32760e=[],_0x3e8f6b=[],_0x52c054=filterDbTableBackedDatasets(await listDatasets(_0x4def2f['appCode'])),_0x2968a8=new Map(_0x52c054[_0x21f42(0x202)](_0x28cfbf=>[_0x28cfbf[_0x21f42(0x1f3)]?.[_0x21f42(0x215)]?.['toLowerCase'](),_0x28cfbf]));for(const _0x169b71 of _0x576e3c[_0x21f42(0x1fc)]){const _0x11eb69=_0x2968a8[_0x21f42(0x208)](_0x169b71[_0x21f42(0x219)]());!_0x11eb69&&_0x32760e[_0x21f42(0x21b)](_0x21f42(0x21a)+_0x169b71+_0x21f42(0x223));}for(const _0x354b08 of _0x59421b){let _0xd6d89e;try{_0xd6d89e=await getDatasetDetail(_0x354b08);}catch{_0x32760e[_0x21f42(0x21b)]('Dataset\x20\x22'+_0x354b08+_0x21f42(0x20d));continue;}assertDatasetIsDbTableBacked(_0xd6d89e,_0x21f42(0x1f4));const _0x59a763=Array['isArray'](_0xd6d89e[_0x21f42(0x212)])?_0xd6d89e[_0x21f42(0x212)]:[],_0x484599=new Set(_0x59a763[_0x21f42(0x202)](_0x69a3d3=>_0x69a3d3[_0x21f42(0x22f)]?.[_0x21f42(0x219)]())),_0x427987=_0xd6d89e['dbtableConfig']?.[_0x21f42(0x215)]||_0xd6d89e[_0x21f42(0x215)]||_0x354b08;_0x195d60[_0x21f42(0x210)+_0x427987]={'code':_0x354b08,'tableName':_0x427987,'fieldCount':_0x484599[_0x21f42(0x230)],'fields':Array[_0x21f42(0x236)](_0x484599)};if(_0xcda6fe){const _0x50a3a4=normalizeDatasetIndexes(_0xd6d89e);_0x3e8f6b['push']({'tableName':_0x427987,..._0x50a3a4});}}_0x32760e[_0x21f42(0x21c)]>0x0&&(_0x195d60[_0x21f42(0x220)]=_0x32760e),_0xcda6fe&&(_0x195d60['joinAudit']=auditSqlJoinIndexes(_0x3226c8,_0x3e8f6b));}return{'ok':_0x576e3c[_0x21f42(0x225)],'data':_0x195d60,'message':_0x576e3c[_0x21f42(0x22a)]};}};function normalizeDatasetIndexes(_0x2b2230){const _0x393f68=a193_0x3875a9,_0xd6c8cf=Array[_0x393f68(0x20f)](_0x2b2230?.[_0x393f68(0x233)]?.['indexes'])?_0x2b2230[_0x393f68(0x233)][_0x393f68(0x1f7)]:Array[_0x393f68(0x20f)](_0x2b2230?.['indexes'])?_0x2b2230[_0x393f68(0x1f7)]:[],_0x320fb2=_0xd6c8cf[_0x393f68(0x207)](_0x4ac45d=>{const _0x3662c1=_0x393f68,_0xc5b308=Array[_0x3662c1(0x20f)](_0x4ac45d?.[_0x3662c1(0x20e)])?_0x4ac45d[_0x3662c1(0x20e)]:Array[_0x3662c1(0x20f)](_0x4ac45d?.['columnNames'])?_0x4ac45d[_0x3662c1(0x22c)]:Array[_0x3662c1(0x20f)](_0x4ac45d?.[_0x3662c1(0x201)])?_0x4ac45d[_0x3662c1(0x201)]:[],_0x333b65=_0xc5b308[_0x3662c1(0x20c)](_0x54b178=>typeof _0x54b178===_0x3662c1(0x20a))['map'](_0x2139b0=>_0x2139b0['trim']())[_0x3662c1(0x20c)](Boolean);if(_0x333b65[_0x3662c1(0x21c)]===0x0)return[];const _0x3cd92d=[_0x4ac45d?.[_0x3662c1(0x21d)],_0x4ac45d?.[_0x3662c1(0x1f5)],_0x4ac45d?.['name']][_0x3662c1(0x224)](_0x27769c=>typeof _0x27769c==='string'&&_0x27769c['trim']()),_0x35abd9=[_0x4ac45d?.[_0x3662c1(0x218)],_0x4ac45d?.['type']][_0x3662c1(0x224)](_0x53c18b=>typeof _0x53c18b===_0x3662c1(0x20a)&&_0x53c18b[_0x3662c1(0x1f1)]());return[{..._0x3cd92d?{'name':_0x3cd92d[_0x3662c1(0x1f1)]()}:{},..._0x35abd9?{'type':_0x35abd9[_0x3662c1(0x1f1)]()}:{},'columns':_0x333b65}];}),_0x282a75=[..._0x320fb2],_0x5e658a=typeof _0x2b2230?.[_0x393f68(0x1f3)]?.[_0x393f68(0x217)]===_0x393f68(0x20a)?_0x2b2230[_0x393f68(0x1f3)][_0x393f68(0x217)]['split'](',')['map'](_0xa4f353=>_0xa4f353['trim']())[_0x393f68(0x20c)](Boolean):[];return _0x5e658a[_0x393f68(0x21c)]>0x0&&_0x282a75[_0x393f68(0x1fb)]({'type':_0x393f68(0x21f),'columns':_0x5e658a}),{'indexes':_0x282a75,'metadataAvailable':_0x320fb2['length']>0x0};}
1
+ const a201_0x386770=a201_0x4fdf;function a201_0xed52(){const _0x55b930=['tableName','34121964SdAuTs','pkField','1152993IqtDPm','length','3822917MeVjhF','primary','toLowerCase','4952225TtwGkM','name','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','902hWkbof','1204KTuIhX','schema:','from','reason','--check-indexes\x20requires\x20--schemas.','index_type','trim','sqlType','index_name','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','flagMissing','validation','bool','index_columns','get','isSelectOnly','read','str','type','Provide\x20--file\x20or\x20--sql','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','map','valid','message','8FfVgtM','File\x20not\x20found:\x20','push','columns','sql','cwd','schemaWarnings','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','file','boolean','tables','filter','find','isArray','appCode','isDangerous','dbtableConfig','string','unshift','2088AcBrrV','indexName','check-indexes','Dataset\x20\x22','schemas','indexes','167580jVPmfX','dataset','6mQzTbv','fields','62523emBmoE','SQL\x20schema\x20validation','583pGwmpO','size'];a201_0xed52=function(){return _0x55b930;};return a201_0xed52();}(function(_0x27bf36,_0x429c01){const _0x17a263=a201_0x4fdf,_0x425247=_0x27bf36();while(!![]){try{const _0x17a191=parseInt(_0x17a263(0xe7))/0x1*(parseInt(_0x17a263(0xe6))/0x2)+-parseInt(_0x17a263(0xde))/0x3*(-parseInt(_0x17a263(0xba))/0x4)+parseInt(_0x17a263(0xe3))/0x5+-parseInt(_0x17a263(0xd5))/0x6*(-parseInt(_0x17a263(0xe0))/0x7)+parseInt(_0x17a263(0xcd))/0x8*(parseInt(_0x17a263(0xd7))/0x9)+-parseInt(_0x17a263(0xd3))/0xa*(parseInt(_0x17a263(0xd9))/0xb)+-parseInt(_0x17a263(0xdc))/0xc;if(_0x17a191===_0x429c01)break;else _0x425247['push'](_0x425247['shift']());}catch(_0x527ed2){_0x425247['push'](_0x425247['shift']());}}}(a201_0xed52,0xe2fca));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a201_0x4fdf(_0xd2982,_0x1a7117){_0xd2982=_0xd2982-0xae;const _0xed52a=a201_0xed52();let _0x4fdf75=_0xed52a[_0xd2982];return _0x4fdf75;}import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a201_0x386770(0xbe),'command':'validate','description':a201_0x386770(0xc1),'risk':a201_0x386770(0xb2),'flags':[{'name':a201_0x386770(0xc2),'type':a201_0x386770(0xcb),'description':a201_0x386770(0xb6)},{'name':a201_0x386770(0xbe),'type':a201_0x386770(0xcb),'description':a201_0x386770(0xe5)},{'name':a201_0x386770(0xd1),'type':a201_0x386770(0xcb),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a201_0x386770(0xcf),'type':a201_0x386770(0xc3),'description':a201_0x386770(0xf0)}],async 'execute'(_0x3d5ed2){const _0x4c1999=a201_0x386770,_0x147bd9=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xc2)),_0xa0e350=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xbe)),_0x3d4b5e=_0x3d5ed2[_0x4c1999(0xb3)](_0x4c1999(0xd1)),_0x59a998=_0x3d5ed2[_0x4c1999(0xae)]('check-indexes');if(!_0x147bd9&&!_0xa0e350)throw CliErrors[_0x4c1999(0xf1)](_0x4c1999(0xc2),_0x4c1999(0xb5));if(_0x59a998&&!_0x3d4b5e)throw CliErrors[_0x4c1999(0xf2)](_0x4c1999(0xeb));let _0x59ca1d;if(_0x147bd9){const _0x253b06=resolve(process[_0x4c1999(0xbf)](),_0x147bd9);if(!existsSync(_0x253b06))throw CliErrors[_0x4c1999(0xf2)](_0x4c1999(0xbb)+_0x253b06);_0x59ca1d=readFileSync(_0x253b06,'utf-8');}else _0x59ca1d=_0xa0e350;const _0x4bde87=validateSql(_0x59ca1d),_0x5e29f3={'valid':_0x4bde87['valid'],'sqlType':_0x4bde87[_0x4c1999(0xee)]['type'],'isSelectOnly':_0x4bde87['sqlType'][_0x4c1999(0xb1)],'isDangerous':_0x4bde87[_0x4c1999(0xee)][_0x4c1999(0xc9)],'tables':_0x4bde87[_0x4c1999(0xc4)],'parameters':_0x4bde87['parameters'],'message':_0x4bde87[_0x4c1999(0xb9)]};_0x4bde87[_0x4c1999(0xee)][_0x4c1999(0xea)]&&(_0x5e29f3[_0x4c1999(0xea)]=_0x4bde87['sqlType'][_0x4c1999(0xea)]);if(_0x3d4b5e&&_0x4bde87[_0x4c1999(0xb8)]){const _0x5ee009=_0x3d4b5e['split'](',')['map'](_0x375ef3=>_0x375ef3[_0x4c1999(0xed)]())[_0x4c1999(0xc5)](Boolean),_0x17b682=[],_0x46b0f9=[],_0x1d73c6=filterDbTableBackedDatasets(await listDatasets(_0x3d5ed2[_0x4c1999(0xc8)])),_0x53aae2=new Map(_0x1d73c6[_0x4c1999(0xb7)](_0x11beed=>[_0x11beed['dbtableConfig']?.['tableName']?.['toLowerCase'](),_0x11beed]));for(const _0x386259 of _0x4bde87[_0x4c1999(0xc4)]){const _0x3af334=_0x53aae2[_0x4c1999(0xb0)](_0x386259[_0x4c1999(0xe2)]());!_0x3af334&&_0x17b682[_0x4c1999(0xbc)]('Table\x20\x22'+_0x386259+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x234dc7 of _0x5ee009){let _0xb05f41;try{_0xb05f41=await getDatasetDetail(_0x234dc7);}catch{_0x17b682['push'](_0x4c1999(0xd0)+_0x234dc7+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0xb05f41,_0x4c1999(0xd8));const _0x257441=Array[_0x4c1999(0xc7)](_0xb05f41[_0x4c1999(0xd6)])?_0xb05f41['fields']:[],_0x73c295=new Set(_0x257441['map'](_0x2eacf5=>_0x2eacf5[_0x4c1999(0xe4)]?.[_0x4c1999(0xe2)]())),_0x34beb9=_0xb05f41[_0x4c1999(0xca)]?.[_0x4c1999(0xdb)]||_0xb05f41[_0x4c1999(0xdb)]||_0x234dc7;_0x5e29f3[_0x4c1999(0xe8)+_0x34beb9]={'code':_0x234dc7,'tableName':_0x34beb9,'fieldCount':_0x73c295[_0x4c1999(0xda)],'fields':Array[_0x4c1999(0xe9)](_0x73c295)};if(_0x59a998){const _0x338753=normalizeDatasetIndexes(_0xb05f41);_0x46b0f9[_0x4c1999(0xbc)]({'tableName':_0x34beb9,..._0x338753});}}_0x17b682[_0x4c1999(0xdf)]>0x0&&(_0x5e29f3[_0x4c1999(0xc0)]=_0x17b682),_0x59a998&&(_0x5e29f3['joinAudit']=auditSqlJoinIndexes(_0x59ca1d,_0x46b0f9));}return{'ok':_0x4bde87['valid'],'data':_0x5e29f3,'message':_0x4bde87[_0x4c1999(0xb9)]};}};function normalizeDatasetIndexes(_0xa26d9){const _0x1bbc7f=a201_0x386770,_0x271f1a=Array['isArray'](_0xa26d9?.[_0x1bbc7f(0xd4)]?.['indexes'])?_0xa26d9['dataset'][_0x1bbc7f(0xd2)]:Array[_0x1bbc7f(0xc7)](_0xa26d9?.['indexes'])?_0xa26d9[_0x1bbc7f(0xd2)]:[],_0x28237f=_0x271f1a['flatMap'](_0x5b1eff=>{const _0xfffb2=_0x1bbc7f,_0x46a193=Array[_0xfffb2(0xc7)](_0x5b1eff?.[_0xfffb2(0xaf)])?_0x5b1eff[_0xfffb2(0xaf)]:Array[_0xfffb2(0xc7)](_0x5b1eff?.['columnNames'])?_0x5b1eff['columnNames']:Array[_0xfffb2(0xc7)](_0x5b1eff?.[_0xfffb2(0xbd)])?_0x5b1eff['columns']:[],_0x3b8c3f=_0x46a193[_0xfffb2(0xc5)](_0x35a4fa=>typeof _0x35a4fa===_0xfffb2(0xcb))[_0xfffb2(0xb7)](_0xc964e7=>_0xc964e7[_0xfffb2(0xed)]())[_0xfffb2(0xc5)](Boolean);if(_0x3b8c3f[_0xfffb2(0xdf)]===0x0)return[];const _0x42f127=[_0x5b1eff?.[_0xfffb2(0xce)],_0x5b1eff?.[_0xfffb2(0xef)],_0x5b1eff?.[_0xfffb2(0xe4)]]['find'](_0x538e46=>typeof _0x538e46===_0xfffb2(0xcb)&&_0x538e46[_0xfffb2(0xed)]()),_0x534008=[_0x5b1eff?.[_0xfffb2(0xec)],_0x5b1eff?.[_0xfffb2(0xb4)]][_0xfffb2(0xc6)](_0x340f1f=>typeof _0x340f1f==='string'&&_0x340f1f['trim']());return[{..._0x42f127?{'name':_0x42f127['trim']()}:{},..._0x534008?{'type':_0x534008[_0xfffb2(0xed)]()}:{},'columns':_0x3b8c3f}];}),_0x3c2c6a=[..._0x28237f],_0x3a2c9e=typeof _0xa26d9?.[_0x1bbc7f(0xca)]?.[_0x1bbc7f(0xdd)]===_0x1bbc7f(0xcb)?_0xa26d9[_0x1bbc7f(0xca)][_0x1bbc7f(0xdd)]['split'](',')['map'](_0x43552c=>_0x43552c['trim']())[_0x1bbc7f(0xc5)](Boolean):[];return _0x3a2c9e[_0x1bbc7f(0xdf)]>0x0&&_0x3c2c6a[_0x1bbc7f(0xcc)]({'type':_0x1bbc7f(0xe1),'columns':_0x3a2c9e}),{'indexes':_0x3c2c6a,'metadataAvailable':_0x28237f[_0x1bbc7f(0xdf)]>0x0};}
@@ -1 +1 @@
1
- function a194_0x48a4(_0x37f70b,_0x2848d2){_0x37f70b=_0x37f70b-0x17b;const _0x5551c7=a194_0x5551();let _0x48a49b=_0x5551c7[_0x37f70b];return _0x48a49b;}function a194_0x5551(){const _0x469860=['5619411mTsqKx','529242EjNVHp','3720GgvnMT','22923yyrYsU','4pObApx','300WbnCAS','1207317QVIVZf','1200524jmJafy','11450HDrnAw','6210008PDEgpS'];a194_0x5551=function(){return _0x469860;};return a194_0x5551();}(function(_0x52c4ff,_0x569df5){const _0x252d39=a194_0x48a4,_0x48decf=_0x52c4ff();while(!![]){try{const _0x960413=-parseInt(_0x252d39(0x184))/0x1+parseInt(_0x252d39(0x180))/0x2+-parseInt(_0x252d39(0x17f))/0x3*(parseInt(_0x252d39(0x17d))/0x4)+-parseInt(_0x252d39(0x181))/0x5*(-parseInt(_0x252d39(0x17e))/0x6)+parseInt(_0x252d39(0x183))/0x7+parseInt(_0x252d39(0x182))/0x8+parseInt(_0x252d39(0x17c))/0x9*(-parseInt(_0x252d39(0x17b))/0xa);if(_0x960413===_0x569df5)break;else _0x48decf['push'](_0x48decf['shift']());}catch(_0x1112b7){_0x48decf['push'](_0x48decf['shift']());}}}(a194_0x5551,0x6539d));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ (function(_0x2da987,_0x1f34f5){const _0x1dc56c=a202_0xb757,_0x42e38e=_0x2da987();while(!![]){try{const _0x41294c=-parseInt(_0x1dc56c(0x7d))/0x1+-parseInt(_0x1dc56c(0x7b))/0x2*(parseInt(_0x1dc56c(0x7c))/0x3)+-parseInt(_0x1dc56c(0x79))/0x4+parseInt(_0x1dc56c(0x81))/0x5+parseInt(_0x1dc56c(0x7f))/0x6+-parseInt(_0x1dc56c(0x7a))/0x7+-parseInt(_0x1dc56c(0x80))/0x8*(-parseInt(_0x1dc56c(0x7e))/0x9);if(_0x41294c===_0x1f34f5)break;else _0x42e38e['push'](_0x42e38e['shift']());}catch(_0xade1d5){_0x42e38e['push'](_0x42e38e['shift']());}}}(a202_0xbfa8,0xcf854));function a202_0xb757(_0x12508b,_0x407bac){_0x12508b=_0x12508b-0x79;const _0xbfa8b2=a202_0xbfa8();let _0xb75788=_0xbfa8b2[_0x12508b];return _0xb75788;}import{taskStatus}from'../../commands/task/status.js';function a202_0xbfa8(){const _0x3f7fed=['7088395gRGPNN','1745396GwRPpE','9891966rBsYXT','129730chfMcv','33KlRQAa','590679tOvKNf','9WNbRUC','1706322Hfijpt','18412952SqCYAJ'];a202_0xbfa8=function(){return _0x3f7fed;};return a202_0xbfa8();}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a195_0x38d749=a195_0x4cc5;function a195_0x1b51(){const _0x3f8b95=['taskId','flagMissing','appCode','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','compress','apiError','2877624LheamF','task-id','str','isTerminal','cookie','1895208okZLOK','status','368202hOCiHo','4968250EmSkAT','string','task','trim','887621sWKpwD','1067350fkHTww','2587628qfdWjP'];a195_0x1b51=function(){return _0x3f8b95;};return a195_0x1b51();}(function(_0x265b4a,_0x432346){const _0x52854d=a195_0x4cc5,_0x2bbd79=_0x265b4a();while(!![]){try{const _0x1147c1=parseInt(_0x52854d(0xc8))/0x1+-parseInt(_0x52854d(0xc0))/0x2+parseInt(_0x52854d(0xbb))/0x3+parseInt(_0x52854d(0xc9))/0x4+-parseInt(_0x52854d(0xc3))/0x5+-parseInt(_0x52854d(0xc2))/0x6+-parseInt(_0x52854d(0xc7))/0x7;if(_0x1147c1===_0x432346)break;else _0x2bbd79['push'](_0x2bbd79['shift']());}catch(_0x4ecb7d){_0x2bbd79['push'](_0x2bbd79['shift']());}}}(a195_0x1b51,0x84d29));function a195_0x4cc5(_0x2d1cf2,_0x6ceb76){_0x2d1cf2=_0x2d1cf2-0xb8;const _0x1b511b=a195_0x1b51();let _0x4cc56d=_0x1b511b[_0x2d1cf2];return _0x4cc56d;}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';export const taskStatus={'service':a195_0x38d749(0xc5),'command':a195_0x38d749(0xc1),'description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':'read','defaultOutputFormat':a195_0x38d749(0xb9),'structuredErrors':!![],'flags':[{'name':'task-id','type':a195_0x38d749(0xc4),'required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xbf1a9a){const _0x1f72e2=a195_0x38d749;if(!_0xbf1a9a[_0x1f72e2(0xbd)](_0x1f72e2(0xbc))[_0x1f72e2(0xc6)]())throw CliErrors[_0x1f72e2(0xcb)](_0x1f72e2(0xbc));},async 'execute'(_0x100bb6){const _0x2d6219=a195_0x38d749,_0x1a1795=_0x100bb6[_0x2d6219(0xbd)](_0x2d6219(0xbc))['trim'](),_0x81f8fc=normalizeAsyncTask(await getAsyncTaskStatus(_0x1a1795,_0x100bb6['appCode'],_0x100bb6[_0x2d6219(0xbf)]));if(_0x81f8fc[_0x2d6219(0xca)]!==_0x1a1795)throw CliErrors[_0x2d6219(0xba)](_0x2d6219(0xb8)+_0x1a1795+',\x20received\x20'+_0x81f8fc['taskId']+'.');const _0x2fefa7=buildAsyncTaskStatusCommand(_0x81f8fc[_0x2d6219(0xca)],_0x100bb6[_0x2d6219(0xcc)]);return{'ok':!![],'message':asyncTaskMessage(_0x81f8fc),'data':{'appCode':_0x100bb6[_0x2d6219(0xcc)],..._0x81f8fc,'query':_0x81f8fc[_0x2d6219(0xbe)]?null:{'command':_0x2fefa7}}};}};
1
+ const a203_0x1098f1=a203_0x3b16;(function(_0x28b38f,_0x4de014){const _0x3e1033=a203_0x3b16,_0x47f938=_0x28b38f();while(!![]){try{const _0xebe8bd=-parseInt(_0x3e1033(0x12b))/0x1+-parseInt(_0x3e1033(0x11d))/0x2+-parseInt(_0x3e1033(0x12a))/0x3+parseInt(_0x3e1033(0x11e))/0x4+parseInt(_0x3e1033(0x125))/0x5*(-parseInt(_0x3e1033(0x120))/0x6)+-parseInt(_0x3e1033(0x12c))/0x7*(parseInt(_0x3e1033(0x127))/0x8)+parseInt(_0x3e1033(0x129))/0x9;if(_0xebe8bd===_0x4de014)break;else _0x47f938['push'](_0x47f938['shift']());}catch(_0x25e157){_0x47f938['push'](_0x47f938['shift']());}}}(a203_0x29e6,0xc6c7d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a203_0x3b16(_0x4a5ec2,_0x19b06f){_0x4a5ec2=_0x4a5ec2-0x11b;const _0x29e688=a203_0x29e6();let _0x3b16d2=_0x29e688[_0x4a5ec2];return _0x3b16d2;}import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';function a203_0x29e6(){const _0x4ff036=['str',',\x20received\x20','1695122YByKmj','132684RLKePL','status','54jrmGep','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task','appCode','string','231955goKcDe','isTerminal','401832VPVsMr','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','47663442KRLSKQ','4069050pNJKTi','1240497NTpNXj','91ovTPCj','task-id','compress','read','taskId','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','trim'];a203_0x29e6=function(){return _0x4ff036;};return a203_0x29e6();}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a203_0x1098f1(0x122),'command':a203_0x1098f1(0x11f),'description':a203_0x1098f1(0x121),'risk':a203_0x1098f1(0x12f),'defaultOutputFormat':a203_0x1098f1(0x12e),'structuredErrors':!![],'flags':[{'name':'task-id','type':a203_0x1098f1(0x124),'required':!![],'description':a203_0x1098f1(0x131)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4240ba){const _0x26362a=a203_0x1098f1;if(!_0x4240ba[_0x26362a(0x11b)](_0x26362a(0x12d))['trim']())throw CliErrors['flagMissing'](_0x26362a(0x12d));},async 'execute'(_0xc95163){const _0x9d4da2=a203_0x1098f1,_0x55966b=_0xc95163[_0x9d4da2(0x11b)]('task-id')[_0x9d4da2(0x132)](),_0x442c40=normalizeAsyncTask(await getAsyncTaskStatus(_0x55966b,_0xc95163['appCode'],_0xc95163['cookie']));if(_0x442c40['taskId']!==_0x55966b)throw CliErrors['apiError'](_0x9d4da2(0x128)+_0x55966b+_0x9d4da2(0x11c)+_0x442c40[_0x9d4da2(0x130)]+'.');const _0x2469d3=buildAsyncTaskStatusCommand(_0x442c40[_0x9d4da2(0x130)],_0xc95163[_0x9d4da2(0x123)]);return{'ok':!![],'message':asyncTaskMessage(_0x442c40),'data':{'appCode':_0xc95163[_0x9d4da2(0x123)],..._0x442c40,'query':_0x442c40[_0x9d4da2(0x126)]?null:{'command':_0x2469d3}}};}};
@@ -1 +1 @@
1
- function a196_0x2989(_0x465c2b,_0x1c5230){_0x465c2b=_0x465c2b-0x15d;const _0x1d3ec5=a196_0x1d3e();let _0x298901=_0x1d3ec5[_0x465c2b];return _0x298901;}(function(_0x1a78e1,_0x2fbaed){const _0x917ff2=a196_0x2989,_0x2c20d6=_0x1a78e1();while(!![]){try{const _0x111bd7=-parseInt(_0x917ff2(0x165))/0x1*(parseInt(_0x917ff2(0x15f))/0x2)+-parseInt(_0x917ff2(0x161))/0x3+parseInt(_0x917ff2(0x15d))/0x4+-parseInt(_0x917ff2(0x160))/0x5*(parseInt(_0x917ff2(0x166))/0x6)+-parseInt(_0x917ff2(0x167))/0x7*(parseInt(_0x917ff2(0x164))/0x8)+-parseInt(_0x917ff2(0x163))/0x9+-parseInt(_0x917ff2(0x162))/0xa*(-parseInt(_0x917ff2(0x15e))/0xb);if(_0x111bd7===_0x2fbaed)break;else _0x2c20d6['push'](_0x2c20d6['shift']());}catch(_0x289650){_0x2c20d6['push'](_0x2c20d6['shift']());}}}(a196_0x1d3e,0xf0c6f));function a196_0x1d3e(){const _0x47f34b=['11wyuFnd','34988IjfuGK','325bzhGHT','5872905FvhhQB','80484220rHbUHC','11969082yBZuzD','176DRDAJb','91uQQGYv','179190gCZOFm','415639iytKZq','4259228NqNsBR'];a196_0x1d3e=function(){return _0x47f34b;};return a196_0x1d3e();}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
1
+ function a204_0x4438(_0x17ad35,_0x1eeba5){_0x17ad35=_0x17ad35-0xc2;const _0x49bee9=a204_0x49be();let _0x4438fa=_0x49bee9[_0x17ad35];return _0x4438fa;}(function(_0x1693b8,_0x5df620){const _0x206eec=a204_0x4438,_0x402da4=_0x1693b8();while(!![]){try{const _0x13c1d5=-parseInt(_0x206eec(0xc5))/0x1+parseInt(_0x206eec(0xc3))/0x2*(parseInt(_0x206eec(0xca))/0x3)+parseInt(_0x206eec(0xc4))/0x4*(parseInt(_0x206eec(0xc6))/0x5)+-parseInt(_0x206eec(0xc7))/0x6+parseInt(_0x206eec(0xcc))/0x7*(-parseInt(_0x206eec(0xc8))/0x8)+-parseInt(_0x206eec(0xc9))/0x9*(-parseInt(_0x206eec(0xcb))/0xa)+parseInt(_0x206eec(0xc2))/0xb;if(_0x13c1d5===_0x5df620)break;else _0x402da4['push'](_0x402da4['shift']());}catch(_0x2a5de7){_0x402da4['push'](_0x402da4['shift']());}}}(a204_0x49be,0xee39a));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a204_0x49be(){const _0x49acca=['7kodXsN','1302279Nkaqwi','202802tMMWcR','4hggTKv','1224187pUTAVU','895525NieHZc','2329062gnHvbN','6784048ZYDruC','9OPidzw','39WwkHdE','18204330sVimjY'];a204_0x49be=function(){return _0x49acca;};return a204_0x49be();}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- const a197_0x54549f=a197_0x3e23;function a197_0x3e23(_0xb24196,_0x3af9e){_0xb24196=_0xb24196-0x88;const _0x546fe5=a197_0x546f();let _0x3e232e=_0x546fe5[_0xb24196];return _0x3e232e;}(function(_0x36b59a,_0xc8ded9){const _0x2f2bb0=a197_0x3e23,_0xfcde1f=_0x36b59a();while(!![]){try{const _0x643902=parseInt(_0x2f2bb0(0x95))/0x1*(parseInt(_0x2f2bb0(0x8d))/0x2)+-parseInt(_0x2f2bb0(0x91))/0x3*(parseInt(_0x2f2bb0(0x9a))/0x4)+parseInt(_0x2f2bb0(0x89))/0x5+-parseInt(_0x2f2bb0(0x93))/0x6*(-parseInt(_0x2f2bb0(0x8c))/0x7)+parseInt(_0x2f2bb0(0x96))/0x8+parseInt(_0x2f2bb0(0x9e))/0x9*(parseInt(_0x2f2bb0(0x9b))/0xa)+-parseInt(_0x2f2bb0(0x8b))/0xb*(parseInt(_0x2f2bb0(0x9d))/0xc);if(_0x643902===_0xc8ded9)break;else _0xfcde1f['push'](_0xfcde1f['shift']());}catch(_0x33c38c){_0xfcde1f['push'](_0xfcde1f['shift']());}}}(a197_0x546f,0xc6eb4));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a197_0x546f(){const _0xe8fd4a=['113771ExuPBc','34666AAJMrJ','string','Exact\x20tenant\x20code','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','2323911HwERmc','read','42NBKwwr','Pass\x20--tenant-code\x20<code>.','46mQYgfj','153048HjnSkA','flagMissing','Found\x20','tenant','4KvlcPp','67650CnHhKo','trim','1730568GJZYMu','1332CaKzvw','tenant-code','length','6942685dAZTax','str','132RTpwBU'];a197_0x546f=function(){return _0xe8fd4a;};return a197_0x546f();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a197_0x54549f(0x99),'command':'members-list','description':a197_0x54549f(0x90),'risk':a197_0x54549f(0x92),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a197_0x54549f(0x9f),'type':a197_0x54549f(0x8e),'required':!![],'description':a197_0x54549f(0x8f)}],async 'validate'(_0x3bfde4){const _0x24d94e=a197_0x54549f;if(!_0x3bfde4[_0x24d94e(0x8a)]('tenant-code')[_0x24d94e(0x9c)]())throw CliErrors[_0x24d94e(0x97)](_0x24d94e(0x9f),_0x24d94e(0x94));},async 'execute'(_0x236469){const _0x350bda=a197_0x54549f,_0x29524d=_0x236469[_0x350bda(0x8a)]('tenant-code')[_0x350bda(0x9c)](),_0x48a0e0=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x29524d,_0x48a0e0);const _0x1a9dad=projectTenantMembers(await listTenantDirectoryMembers(_0x29524d));return{'ok':!![],'data':{'tenantCode':_0x29524d,'items':_0x1a9dad,'totalCount':_0x1a9dad[_0x350bda(0x88)]},'message':_0x350bda(0x98)+_0x1a9dad['length']+'\x20tenant\x20member(s)'};}};
1
+ function a205_0x169b(){const _0xb1992c=['read','50868HEILlq','2209260zEdsea','flagMissing','1163110NVNrnz','tenant','Pass\x20--tenant-code\x20<code>.','Exact\x20tenant\x20code','Found\x20','trim','25eWTZNC','tenant-code','10IkqCHw','356892THWZhC','string','3131826NQafKv','str','568ATRhlM','45DnLJsy','108774bvrLQH','392vvnqtl','671EkJwdT','length','\x20tenant\x20member(s)'];a205_0x169b=function(){return _0xb1992c;};return a205_0x169b();}const a205_0x59bc46=a205_0x35b7;(function(_0x314c24,_0x35b1d7){const _0x589bb9=a205_0x35b7,_0xce97a8=_0x314c24();while(!![]){try{const _0x31f5f5=parseInt(_0x589bb9(0xd0))/0x1*(parseInt(_0x589bb9(0xd7))/0x2)+parseInt(_0x589bb9(0xde))/0x3+-parseInt(_0x589bb9(0xdd))/0x4*(parseInt(_0x589bb9(0xce))/0x5)+parseInt(_0x589bb9(0xd3))/0x6+-parseInt(_0x589bb9(0xd8))/0x7*(-parseInt(_0x589bb9(0xd5))/0x8)+-parseInt(_0x589bb9(0xd6))/0x9*(-parseInt(_0x589bb9(0xe0))/0xa)+-parseInt(_0x589bb9(0xd9))/0xb*(parseInt(_0x589bb9(0xd1))/0xc);if(_0x31f5f5===_0x35b1d7)break;else _0xce97a8['push'](_0xce97a8['shift']());}catch(_0x2ea29a){_0xce97a8['push'](_0xce97a8['shift']());}}}(a205_0x169b,0x7c836));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a205_0x35b7(_0x2a8c5c,_0x5974f9){_0x2a8c5c=_0x2a8c5c-0xcb;const _0x169be0=a205_0x169b();let _0x35b7d7=_0x169be0[_0x2a8c5c];return _0x35b7d7;}export const tenantMembersListDefinition={'service':a205_0x59bc46(0xe1),'command':'members-list','description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a205_0x59bc46(0xdc),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a205_0x59bc46(0xcf),'type':a205_0x59bc46(0xd2),'required':!![],'description':a205_0x59bc46(0xcb)}],async 'validate'(_0x476258){const _0xb2983a=a205_0x59bc46;if(!_0x476258['str']('tenant-code')['trim']())throw CliErrors[_0xb2983a(0xdf)](_0xb2983a(0xcf),_0xb2983a(0xe2));},async 'execute'(_0x313b04){const _0x484eaa=a205_0x59bc46,_0x28977f=_0x313b04[_0x484eaa(0xd4)]('tenant-code')[_0x484eaa(0xcd)](),_0x3d2951=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x28977f,_0x3d2951);const _0x14e478=projectTenantMembers(await listTenantDirectoryMembers(_0x28977f));return{'ok':!![],'data':{'tenantCode':_0x28977f,'items':_0x14e478,'totalCount':_0x14e478[_0x484eaa(0xda)]},'message':_0x484eaa(0xcc)+_0x14e478[_0x484eaa(0xda)]+_0x484eaa(0xdb)};}};
@@ -1 +1 @@
1
- (function(_0x56a17b,_0x28c9c9){const _0x4373bd=a198_0x1376,_0x3d4e0f=_0x56a17b();while(!![]){try{const _0x11006c=-parseInt(_0x4373bd(0x86))/0x1+parseInt(_0x4373bd(0x95))/0x2*(-parseInt(_0x4373bd(0x8e))/0x3)+-parseInt(_0x4373bd(0x96))/0x4+parseInt(_0x4373bd(0x91))/0x5*(-parseInt(_0x4373bd(0x8b))/0x6)+-parseInt(_0x4373bd(0x9b))/0x7*(-parseInt(_0x4373bd(0x9a))/0x8)+parseInt(_0x4373bd(0x94))/0x9+parseInt(_0x4373bd(0x8f))/0xa;if(_0x11006c===_0x28c9c9)break;else _0x3d4e0f['push'](_0x3d4e0f['shift']());}catch(_0x39c693){_0x3d4e0f['push'](_0x3d4e0f['shift']());}}}(a198_0x54a3,0x4854f));function a198_0x54a3(){const _0x539e40=['3440412bxobKU','218376hYjbDE','796260zjBiDQ','Tenant\x20\x22','get','displayName','56Ifqvkv','98665UVHZzX','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','validation','MEMBER','role','tenantCode','81951OqbKfm','values','adminFlag','status','some','186kuWaFg','username','sort','12cIkkXx','7920490zgRbSQ','userId','41765UlUPMe','trim','ADMIN'];a198_0x54a3=function(){return _0x539e40;};return a198_0x54a3();}import{CliErrors}from'../../errors.js';function textOrNull(_0x77fc86){const _0x45452b=a198_0x1376,_0x3d91cc=_0x77fc86?.[_0x45452b(0x92)]();return _0x3d91cc?_0x3d91cc:null;}export function projectTenantMembers(_0x537b48){const _0x24b2f4=a198_0x1376,_0x19c42f=new Map();for(const _0x523c7e of _0x537b48){const _0xf726ba=Number(_0x523c7e['userId']);if(!Number['isFinite'](_0xf726ba)||_0xf726ba<=0x0)continue;const _0x330210={'userId':_0xf726ba,'username':textOrNull(_0x523c7e[_0x24b2f4(0x8c)]),'displayName':textOrNull(_0x523c7e['nickname']),'role':_0x523c7e[_0x24b2f4(0x88)]===!![]?'ADMIN':_0x24b2f4(0x9e),'status':textOrNull(_0x523c7e[_0x24b2f4(0x89)])},_0x5e76e8=_0x19c42f[_0x24b2f4(0x98)](_0xf726ba);if(!_0x5e76e8){_0x19c42f['set'](_0xf726ba,_0x330210);continue;}_0x5e76e8[_0x24b2f4(0x8c)]??=_0x330210[_0x24b2f4(0x8c)],_0x5e76e8[_0x24b2f4(0x99)]??=_0x330210[_0x24b2f4(0x99)],_0x5e76e8[_0x24b2f4(0x89)]??=_0x330210[_0x24b2f4(0x89)];if(_0x330210[_0x24b2f4(0x9f)]==='ADMIN')_0x5e76e8[_0x24b2f4(0x9f)]=_0x24b2f4(0x93);}return[..._0x19c42f[_0x24b2f4(0x87)]()][_0x24b2f4(0x8d)]((_0x1d3aa0,_0x3949d7)=>_0x1d3aa0[_0x24b2f4(0x90)]-_0x3949d7[_0x24b2f4(0x90)]);}function a198_0x1376(_0x51c580,_0x40f208){_0x51c580=_0x51c580-0x85;const _0x54a3c5=a198_0x54a3();let _0x137610=_0x54a3c5[_0x51c580];return _0x137610;}export function assertTenantAccessible(_0x148717,_0x541adc){const _0x104609=a198_0x1376;if(_0x541adc[_0x104609(0x8a)](_0x1ac5da=>_0x1ac5da[_0x104609(0x85)]===_0x148717))return;throw CliErrors[_0x104609(0x9d)](_0x104609(0x97)+_0x148717+_0x104609(0x9c),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
1
+ (function(_0x1be548,_0xed1fff){const _0x530172=a206_0x519a,_0x16125e=_0x1be548();while(!![]){try{const _0x4d96a7=-parseInt(_0x530172(0x68))/0x1*(-parseInt(_0x530172(0x7b))/0x2)+-parseInt(_0x530172(0x77))/0x3+parseInt(_0x530172(0x67))/0x4*(parseInt(_0x530172(0x70))/0x5)+-parseInt(_0x530172(0x82))/0x6+-parseInt(_0x530172(0x72))/0x7*(-parseInt(_0x530172(0x7d))/0x8)+parseInt(_0x530172(0x6c))/0x9*(parseInt(_0x530172(0x75))/0xa)+-parseInt(_0x530172(0x83))/0xb*(parseInt(_0x530172(0x6d))/0xc);if(_0x4d96a7===_0xed1fff)break;else _0x16125e['push'](_0x16125e['shift']());}catch(_0x570083){_0x16125e['push'](_0x16125e['shift']());}}}(a206_0x436f,0x39148));import{CliErrors}from'../../errors.js';function textOrNull(_0x5cd255){const _0x3727e3=a206_0x519a,_0x36c341=_0x5cd255?.[_0x3727e3(0x79)]();return _0x36c341?_0x36c341:null;}function a206_0x436f(){const _0x2cbc27=['ADMIN','validation','135370vThszw','isFinite','804108SdgnCS','username','trim','status','7536jYVRuW','displayName','8wMPUCP','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','some','role','userId','1687536yQFIyb','154tYjStb','MEMBER','512emqOLV','107DJMRIo','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','tenantCode','adminFlag','81ykmmCj','24456dfxFyT','set','sort','1700yqPKwU','nickname','1701665ratBCk'];a206_0x436f=function(){return _0x2cbc27;};return a206_0x436f();}function a206_0x519a(_0x1ab47e,_0x5799a4){_0x1ab47e=_0x1ab47e-0x66;const _0x436f0f=a206_0x436f();let _0x519a13=_0x436f0f[_0x1ab47e];return _0x519a13;}export function projectTenantMembers(_0x230c92){const _0x5cb428=a206_0x519a,_0x4dba8f=new Map();for(const _0x148bef of _0x230c92){const _0x120ad3=Number(_0x148bef['userId']);if(!Number[_0x5cb428(0x76)](_0x120ad3)||_0x120ad3<=0x0)continue;const _0x5b8a02={'userId':_0x120ad3,'username':textOrNull(_0x148bef[_0x5cb428(0x78)]),'displayName':textOrNull(_0x148bef[_0x5cb428(0x71)]),'role':_0x148bef[_0x5cb428(0x6b)]===!![]?_0x5cb428(0x73):_0x5cb428(0x66),'status':textOrNull(_0x148bef[_0x5cb428(0x7a)])},_0x229657=_0x4dba8f['get'](_0x120ad3);if(!_0x229657){_0x4dba8f[_0x5cb428(0x6e)](_0x120ad3,_0x5b8a02);continue;}_0x229657[_0x5cb428(0x78)]??=_0x5b8a02[_0x5cb428(0x78)],_0x229657[_0x5cb428(0x7c)]??=_0x5b8a02['displayName'],_0x229657[_0x5cb428(0x7a)]??=_0x5b8a02[_0x5cb428(0x7a)];if(_0x5b8a02[_0x5cb428(0x80)]===_0x5cb428(0x73))_0x229657['role']=_0x5cb428(0x73);}return[..._0x4dba8f['values']()][_0x5cb428(0x6f)]((_0xa2c31c,_0x3a5043)=>_0xa2c31c[_0x5cb428(0x81)]-_0x3a5043[_0x5cb428(0x81)]);}export function assertTenantAccessible(_0x47eaad,_0x2f8798){const _0x2a39e7=a206_0x519a;if(_0x2f8798[_0x2a39e7(0x7f)](_0x5eed1c=>_0x5eed1c[_0x2a39e7(0x6a)]===_0x47eaad))return;throw CliErrors[_0x2a39e7(0x74)]('Tenant\x20\x22'+_0x47eaad+_0x2a39e7(0x69),_0x2a39e7(0x7e));}
@@ -1 +1 @@
1
- const a199_0x10ea0c=a199_0x3c0a;(function(_0x3e222f,_0x185b43){const _0x14290d=a199_0x3c0a,_0x529842=_0x3e222f();while(!![]){try{const _0x1400e2=parseInt(_0x14290d(0x192))/0x1+parseInt(_0x14290d(0x194))/0x2*(parseInt(_0x14290d(0x189))/0x3)+parseInt(_0x14290d(0x193))/0x4*(-parseInt(_0x14290d(0x188))/0x5)+parseInt(_0x14290d(0x185))/0x6+parseInt(_0x14290d(0x18e))/0x7+-parseInt(_0x14290d(0x17f))/0x8+-parseInt(_0x14290d(0x190))/0x9*(parseInt(_0x14290d(0x181))/0xa);if(_0x1400e2===_0x185b43)break;else _0x529842['push'](_0x529842['shift']());}catch(_0x398ae0){_0x529842['push'](_0x529842['shift']());}}}(a199_0x5262,0xb5467));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';function a199_0x3c0a(_0x337a47,_0x28a6cf){_0x337a47=_0x337a47-0x17f;const _0x526261=a199_0x5262();let _0x3c0aee=_0x526261[_0x337a47];return _0x3c0aee;}import{CliErrors}from'../../errors.js';const PROVIDER_ID=a199_0x10ea0c(0x184),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readDingTalkUserId(_0x29e0db){const _0x3ae57e=a199_0x10ea0c,_0x2fd96f=_0x29e0db[_0x3ae57e(0x18d)]('ding-talk-user-id')[_0x3ae57e(0x182)]();if(!_0x2fd96f)throw CliErrors[_0x3ae57e(0x187)](_0x3ae57e(0x18a),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x2fd96f;}function a199_0x5262(){const _0x326461=['apiError','757014fBCyhl','4lOhuud','1129636zIcAEY','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','dingding-sandbox-bind','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','4346808drkGcH','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','650FNkafz','trim','string','dingding-sandbox','8335290gNszjj','POST','validation','2144335SVCxMp','3rBFMgK','--ding-talk-user-id\x20cannot\x20be\x20empty.','user-account','bind','str','2819593BIgRMO','ding-talk-user-id','193725TRwXjL'];a199_0x5262=function(){return _0x326461;};return a199_0x5262();}function buildBindingData(_0x5e61d5,_0x34d233){const _0x3f3a16=a199_0x10ea0c;return{'operation':_0x3f3a16(0x18c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e61d5,'bound':!![]},'dryRun':_0x34d233,'backend':{'method':'POST','path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a199_0x10ea0c(0x18b),'command':a199_0x10ea0c(0x196),'description':a199_0x10ea0c(0x180),'risk':'high-risk-write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a199_0x10ea0c(0x18f),'type':a199_0x10ea0c(0x183),'required':!![],'description':a199_0x10ea0c(0x197)}],async 'validate'(_0x137e94){readDingTalkUserId(_0x137e94);},async 'dryRun'(_0x19f517){const _0x553d35=a199_0x10ea0c,_0x23c656=readDingTalkUserId(_0x19f517);return asDryRunResult(buildBindingData(_0x23c656,!![]),{'method':_0x553d35(0x186),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x4269d8){const _0x30c323=a199_0x10ea0c,_0x339c36=readDingTalkUserId(_0x4269d8),_0x307eab=await bindDingTalkSandboxAccount(_0x339c36);if(_0x307eab!==!![])throw CliErrors[_0x30c323(0x191)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x339c36,![]),'message':_0x30c323(0x195)};}};
1
+ const a207_0x206dab=a207_0x49a2;(function(_0x247f08,_0x1c4533){const _0x5272cd=a207_0x49a2,_0xde15f=_0x247f08();while(!![]){try{const _0x3d9306=parseInt(_0x5272cd(0x151))/0x1+parseInt(_0x5272cd(0x144))/0x2*(parseInt(_0x5272cd(0x147))/0x3)+parseInt(_0x5272cd(0x142))/0x4+-parseInt(_0x5272cd(0x158))/0x5*(parseInt(_0x5272cd(0x153))/0x6)+-parseInt(_0x5272cd(0x146))/0x7+-parseInt(_0x5272cd(0x14d))/0x8*(parseInt(_0x5272cd(0x159))/0x9)+parseInt(_0x5272cd(0x14c))/0xa;if(_0x3d9306===_0x1c4533)break;else _0xde15f['push'](_0xde15f['shift']());}catch(_0x3ce4d1){_0xde15f['push'](_0xde15f['shift']());}}}(a207_0xa6c3,0x2fd53));function a207_0x49a2(_0x47e530,_0x38495b){_0x47e530=_0x47e530-0x141;const _0xa6c34c=a207_0xa6c3();let _0x49a29e=_0xa6c34c[_0x47e530];return _0x49a29e;}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_0x206dab(0x152),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function a207_0xa6c3(){const _0x41ad5d=['POST','321588AvjPuS','dingding-sandbox','14466qVIzMd','string','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','trim','user-account','695XUrmtT','3197241QhxFPU','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','557832KuvVOm','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','2MMXgwF','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','826070qGHsBc','252393XjWuED','ding-talk-user-id','apiError','bind','--ding-talk-user-id\x20cannot\x20be\x20empty.','4591340dXVaKD','8xcGkNI','write','str'];a207_0xa6c3=function(){return _0x41ad5d;};return a207_0xa6c3();}function readDingTalkUserId(_0x4d4f75){const _0x18e5c8=a207_0x206dab,_0x2dc1d1=_0x4d4f75[_0x18e5c8(0x14f)](_0x18e5c8(0x148))[_0x18e5c8(0x156)]();if(!_0x2dc1d1)throw CliErrors['validation'](_0x18e5c8(0x14b),_0x18e5c8(0x15a));return _0x2dc1d1;}function buildBindingData(_0x1cd09d,_0x2b4f78){const _0x2ce9d1=a207_0x206dab;return{'operation':_0x2ce9d1(0x14a),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x1cd09d},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x1cd09d,'bound':!![]},'dryRun':_0x2b4f78,'backend':{'method':_0x2ce9d1(0x150),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a207_0x206dab(0x157),'command':'dingding-sandbox-bind','description':a207_0x206dab(0x141),'risk':a207_0x206dab(0x14e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':a207_0x206dab(0x154),'required':!![],'description':a207_0x206dab(0x143)}],async 'validate'(_0x418f3f){readDingTalkUserId(_0x418f3f);},async 'dryRun'(_0x5a35b6){const _0x21d02b=a207_0x206dab,_0x35ce95=readDingTalkUserId(_0x5a35b6);return asDryRunResult(buildBindingData(_0x35ce95,!![]),{'method':_0x21d02b(0x150),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x461a01){const _0x433b4c=a207_0x206dab,_0x198bc8=readDingTalkUserId(_0x461a01),_0x343505=await bindDingTalkSandboxAccount(_0x198bc8);if(_0x343505!==!![])throw CliErrors[_0x433b4c(0x149)](_0x433b4c(0x155),_0x433b4c(0x145));return{'ok':!![],'data':buildBindingData(_0x198bc8,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
@@ -1 +1 @@
1
- function a200_0x3bba(_0x39ddc8,_0x595711){_0x39ddc8=_0x39ddc8-0x1d4;const _0x5be1a7=a200_0x5be1();let _0x3bba3b=_0x5be1a7[_0x39ddc8];return _0x3bba3b;}(function(_0x11d060,_0x4ca505){const _0x26f05c=a200_0x3bba,_0x88f777=_0x11d060();while(!![]){try{const _0x5c07cd=-parseInt(_0x26f05c(0x1dd))/0x1+parseInt(_0x26f05c(0x1de))/0x2*(parseInt(_0x26f05c(0x1db))/0x3)+parseInt(_0x26f05c(0x1d7))/0x4*(-parseInt(_0x26f05c(0x1d4))/0x5)+parseInt(_0x26f05c(0x1d9))/0x6*(-parseInt(_0x26f05c(0x1d6))/0x7)+parseInt(_0x26f05c(0x1d8))/0x8+parseInt(_0x26f05c(0x1df))/0x9*(-parseInt(_0x26f05c(0x1dc))/0xa)+parseInt(_0x26f05c(0x1da))/0xb*(parseInt(_0x26f05c(0x1d5))/0xc);if(_0x5c07cd===_0x4ca505)break;else _0x88f777['push'](_0x88f777['shift']());}catch(_0x2c6908){_0x88f777['push'](_0x88f777['shift']());}}}(a200_0x5be1,0x73da3));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind];function a200_0x5be1(){const _0x5b4b81=['50OCRfkB','12DSevBs','349034zgbwlx','172060PacLVl','4385536NLtSnd','18PCNpeh','8564017oKtvFN','15ujbYZW','2672840wEWTCD','470698oDPfpa','186204fWZItx','9infhIG'];a200_0x5be1=function(){return _0x5b4b81;};return a200_0x5be1();}
1
+ (function(_0x581eb2,_0x39e5e){const _0x1a15a4=a208_0x3312,_0x140b6a=_0x581eb2();while(!![]){try{const _0x18ca41=parseInt(_0x1a15a4(0x14b))/0x1*(parseInt(_0x1a15a4(0x14e))/0x2)+parseInt(_0x1a15a4(0x152))/0x3+parseInt(_0x1a15a4(0x14f))/0x4*(-parseInt(_0x1a15a4(0x148))/0x5)+parseInt(_0x1a15a4(0x151))/0x6+parseInt(_0x1a15a4(0x14a))/0x7*(parseInt(_0x1a15a4(0x150))/0x8)+parseInt(_0x1a15a4(0x14d))/0x9*(-parseInt(_0x1a15a4(0x147))/0xa)+parseInt(_0x1a15a4(0x14c))/0xb*(-parseInt(_0x1a15a4(0x149))/0xc);if(_0x18ca41===_0x39e5e)break;else _0x140b6a['push'](_0x140b6a['shift']());}catch(_0x3f75c4){_0x140b6a['push'](_0x140b6a['shift']());}}}(a208_0x290b,0x65f8d));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a208_0x3312(_0x7b354b,_0x567456){_0x7b354b=_0x7b354b-0x147;const _0x290ba1=a208_0x290b();let _0x33120d=_0x290ba1[_0x7b354b];return _0x33120d;}export const userAccountDefinitions=[dingTalkSandboxBind];function a208_0x290b(){const _0x5de33c=['14IXqiRF','4daDKMg','8kiNOKO','1776222MIDvQW','1675986jOplks','99670ohkcbO','379815gFgurG','24JAXoRb','4464481UvWLKy','16442hsFpkV','5249552ZXNFMA','144wSFGfM'];a208_0x290b=function(){return _0x5de33c;};return a208_0x290b();}
@@ -1 +1 @@
1
- function a201_0x4314(){const _0x25fcfa=['add','81UZuQaA','983885moSwJu','App\x20profile\x20name','8rrLRQB','86peZuma','2778bWIPbl','24654773lmiMla','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','3462078mmUQzi','write','599730eEQRKd','8134mjoQcj','5134BfPszG','8687656ccGCHW'];a201_0x4314=function(){return _0x25fcfa;};return a201_0x4314();}function a201_0x1fad(_0x382899,_0x2456ca){_0x382899=_0x382899-0x188;const _0x431494=a201_0x4314();let _0x1fad8a=_0x431494[_0x382899];return _0x1fad8a;}const a201_0x1807cd=a201_0x1fad;(function(_0x553f6b,_0x22b42a){const _0x1b9178=a201_0x1fad,_0xcbb96c=_0x553f6b();while(!![]){try{const _0x3f77f3=parseInt(_0x1b9178(0x190))/0x1*(parseInt(_0x1b9178(0x188))/0x2)+-parseInt(_0x1b9178(0x18c))/0x3+parseInt(_0x1b9178(0x196))/0x4*(parseInt(_0x1b9178(0x194))/0x5)+parseInt(_0x1b9178(0x189))/0x6*(-parseInt(_0x1b9178(0x18f))/0x7)+-parseInt(_0x1b9178(0x191))/0x8+-parseInt(_0x1b9178(0x193))/0x9*(-parseInt(_0x1b9178(0x18e))/0xa)+parseInt(_0x1b9178(0x18a))/0xb;if(_0x3f77f3===_0x22b42a)break;else _0xcbb96c['push'](_0xcbb96c['shift']());}catch(_0x13ba1d){_0xcbb96c['push'](_0xcbb96c['shift']());}}}(a201_0x4314,0x96bd3));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a201_0x1807cd(0x192),'description':a201_0x1807cd(0x18b),'risk':a201_0x1807cd(0x18d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a201_0x1807cd(0x195),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x27e505=>validateAppName(_0x27e505,'workspace\x20add'),'execute':_0x839de5=>runAppAdd(_0x839de5,'workspace\x20add')};
1
+ const a209_0x23d2a6=a209_0x5ccb;(function(_0x55e7ad,_0x2aeab8){const _0x34652d=a209_0x5ccb,_0x3ea50c=_0x55e7ad();while(!![]){try{const _0x58407c=-parseInt(_0x34652d(0x172))/0x1*(parseInt(_0x34652d(0x16b))/0x2)+-parseInt(_0x34652d(0x168))/0x3*(-parseInt(_0x34652d(0x176))/0x4)+-parseInt(_0x34652d(0x16a))/0x5+parseInt(_0x34652d(0x175))/0x6+-parseInt(_0x34652d(0x166))/0x7*(parseInt(_0x34652d(0x16c))/0x8)+parseInt(_0x34652d(0x177))/0x9*(parseInt(_0x34652d(0x173))/0xa)+parseInt(_0x34652d(0x174))/0xb*(parseInt(_0x34652d(0x16d))/0xc);if(_0x58407c===_0x2aeab8)break;else _0x3ea50c['push'](_0x3ea50c['shift']());}catch(_0x51b3bf){_0x3ea50c['push'](_0x3ea50c['shift']());}}}(a209_0xc4f9,0x966f0));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a209_0x23d2a6(0x170),'command':a209_0x23d2a6(0x16f),'description':a209_0x23d2a6(0x16e),'risk':a209_0x23d2a6(0x167),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a209_0x23d2a6(0x171),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x1c2001=>validateAppName(_0x1c2001,a209_0x23d2a6(0x169)),'execute':_0xa7b562=>runAppAdd(_0xa7b562,a209_0x23d2a6(0x169))};function a209_0x5ccb(_0x105952,_0x1355ed){_0x105952=_0x105952-0x166;const _0xc4f92f=a209_0xc4f9();let _0x5ccb7a=_0xc4f92f[_0x105952];return _0x5ccb7a;}function a209_0xc4f9(){const _0x1c8ca0=['1040454OMLlFl','28jWvsIL','5066802NoTdtq','70WUXnnb','write','47802URyAcz','workspace\x20add','277115CaLfpF','2qqvpmZ','63880xEyKxF','1165596pAYAta','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','add','workspace','App\x20profile\x20name','1164939uObcuN','10SZCWIm','121lOzoFw'];a209_0xc4f9=function(){return _0x1c8ca0;};return a209_0xc4f9();}
@@ -1 +1 @@
1
- const a202_0x407666=a202_0xcd01;(function(_0x24dc53,_0x34d2c6){const _0x19cbd3=a202_0xcd01,_0x5f3b51=_0x24dc53();while(!![]){try{const _0xd82169=-parseInt(_0x19cbd3(0x117))/0x1+-parseInt(_0x19cbd3(0xe0))/0x2*(-parseInt(_0x19cbd3(0xe4))/0x3)+-parseInt(_0x19cbd3(0xf4))/0x4+parseInt(_0x19cbd3(0x108))/0x5+parseInt(_0x19cbd3(0x10b))/0x6*(-parseInt(_0x19cbd3(0xff))/0x7)+-parseInt(_0x19cbd3(0x100))/0x8*(parseInt(_0x19cbd3(0xe1))/0x9)+parseInt(_0x19cbd3(0x11a))/0xa;if(_0xd82169===_0x34d2c6)break;else _0x5f3b51['push'](_0x5f3b51['shift']());}catch(_0x23fb03){_0x5f3b51['push'](_0x5f3b51['shift']());}}}(a202_0x2bc1,0x24efc));import{CliErrors}from'../../errors.js';function a202_0xcd01(_0xbb8a22,_0x7b26c){_0xbb8a22=_0xbb8a22-0xe0;const _0x2bc1f2=a202_0x2bc1();let _0xcd01e5=_0x2bc1f2[_0xbb8a22];return _0xcd01e5;}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+a202_0x407666(0xe9),SAFE_PROFILE_KEYS=[a202_0x407666(0x106),a202_0x407666(0x104),a202_0x407666(0x113),a202_0x407666(0xec),'pageSize','riskLevel',a202_0x407666(0x112)],workspaceFlags=[{'name':a202_0x407666(0x107),'type':a202_0x407666(0xeb),'description':a202_0x407666(0xf6)},{'name':a202_0x407666(0x106),'type':'string','description':a202_0x407666(0x110)},{'name':a202_0x407666(0x104),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x102),'enum':[...RABETBASE_ENV_VALUES]},{'name':a202_0x407666(0x113),'type':a202_0x407666(0xeb),'description':a202_0x407666(0x115)},{'name':'defaultFormat','type':'string','description':a202_0x407666(0x116),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a202_0x407666(0x10d),'type':a202_0x407666(0xfc),'description':a202_0x407666(0xe3)},{'name':a202_0x407666(0x10e),'type':a202_0x407666(0xeb),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a202_0x407666(0x112),'type':a202_0x407666(0xeb),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0xfe668e){const _0x496871=a202_0x407666;return!!_0xfe668e&&typeof _0xfe668e===_0x496871(0x11b)&&!Array[_0x496871(0xee)](_0xfe668e);}function assertValidAppcode(_0xf7ebde){const _0x9a9e88=a202_0x407666,{valid:_0x47d6e3,message:_0x1b96a2}=validateAppcode(_0xf7ebde);if(!_0x47d6e3)throw CliErrors[_0x9a9e88(0xf8)](_0x9a9e88(0x10f)+_0xf7ebde,_0x1b96a2);}function sanitizeProfile(_0x1487e8){if(!isRecord(_0x1487e8))return{};const _0x559e69={};for(const _0x3203e4 of SAFE_PROFILE_KEYS){if(_0x1487e8[_0x3203e4]!==undefined)_0x559e69[_0x3203e4]=_0x1487e8[_0x3203e4];}return _0x559e69;}function cloneProfile(_0x2557b6){return isRecord(_0x2557b6)?{..._0x2557b6}:{};}function collectWorkspaceProfileOverrides(_0x11718f){const _0x1a3e0c=a202_0x407666,_0x41ce66={},_0x3bd8cd=_0x11718f['str'](_0x1a3e0c(0x104)),_0x19465e=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x113)),_0x2e4d17=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0xe7)),_0x11ddcf=_0x11718f[_0x1a3e0c(0x10c)](_0x1a3e0c(0x10d)),_0x105fc5=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x10e)),_0x31e77a=_0x11718f[_0x1a3e0c(0x10a)](_0x1a3e0c(0x112));if(_0x3bd8cd)_0x41ce66[_0x1a3e0c(0x104)]=_0x3bd8cd;if(_0x19465e)_0x41ce66['apiDir']=_0x19465e;if(_0x2e4d17)_0x41ce66[_0x1a3e0c(0xec)]=_0x2e4d17;if(_0x11ddcf!==undefined&&_0x11ddcf!=='')_0x41ce66[_0x1a3e0c(0x10d)]=Number(_0x11ddcf);if(_0x105fc5)_0x41ce66['riskLevel']=_0x105fc5;if(_0x31e77a)_0x41ce66['locale']=_0x31e77a;return _0x41ce66;}async function validateWorkspaceArgs(_0x1cccc7){const _0x4089f6=a202_0x407666,_0x549026=_0x1cccc7[_0x4089f6(0x10a)](_0x4089f6(0x107))[_0x4089f6(0x103)](),_0x185d0b=_0x1cccc7[_0x4089f6(0x10a)]('appcode')[_0x4089f6(0x103)]();if(!_0x549026&&!_0x185d0b)throw CliErrors[_0x4089f6(0xf8)](_0x4089f6(0x109),'Use\x20`'+CLI_BIN_NAME+_0x4089f6(0xf2)+CLI_BIN_NAME+_0x4089f6(0x119));if(_0x185d0b)assertValidAppcode(_0x185d0b);}function resolveKnownApps(){const _0x46c2b8=a202_0x407666,{config:_0x3050f0,layers:_0xdca036}=readRawConfigWithLayers(),_0x2dac4d=isRecord(_0x3050f0[_0x46c2b8(0xfa)])?_0x3050f0[_0x46c2b8(0xfa)]:{},_0x2a514b=isRecord(_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)])?_0xdca036[_0x46c2b8(0x114)][_0x46c2b8(0xfa)]:{};return{..._0x2a514b,..._0x2dac4d};}async function configureWorkspace(_0x4d738d,_0x484883){const _0x595fde=a202_0x407666,_0x3791b5=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x107))[_0x595fde(0x103)](),_0xfe54e2=_0x4d738d[_0x595fde(0x10a)](_0x595fde(0x106))[_0x595fde(0x103)](),_0x615eb0=_0x3791b5||_0xfe54e2;if(!_0x615eb0)throw CliErrors[_0x595fde(0xf8)]('Missing\x20workspace\x20app\x20selector.',_0x595fde(0xef)+CLI_BIN_NAME+_0x595fde(0xf2)+CLI_BIN_NAME+_0x595fde(0x119));if(_0xfe54e2)assertValidAppcode(_0xfe54e2);const _0x1aebfa=resolveWriteConfigPath(_0x595fde(0xe2)),_0x35779c=readConfigFile(_0x1aebfa),_0x21c7ce=resolveKnownApps(),_0xefea6e=isRecord(_0x35779c[_0x595fde(0xfa)])?{..._0x35779c['apps']}:{},_0x3d8722=cloneProfile(_0xefea6e[_0x615eb0]),_0x1ab3e9=sanitizeProfile(_0x21c7ce[_0x615eb0]),_0x58400a=_0xfe54e2?{}:_0x1ab3e9,_0x30b655=_0xfe54e2||_0x58400a[_0x595fde(0x106)];if(!_0x30b655){const _0x282836=Object[_0x595fde(0xf3)](_0x21c7ce),_0x713559=_0x282836['length']===0x0?_0x595fde(0xef)+CLI_BIN_NAME+'\x20workspace\x20'+_0x484883+_0x595fde(0xfe)+_0x615eb0+_0x595fde(0x101):_0x595fde(0xed)+_0x282836[_0x595fde(0xf5)](',\x20');throw CliErrors[_0x595fde(0xf8)](_0x595fde(0xf1)+_0x615eb0+_0x595fde(0xe5),_0x713559);}assertValidAppcode(String(_0x30b655));const _0x7119da={..._0x58400a,..._0x3d8722,'appcode':String(_0x30b655),...collectWorkspaceProfileOverrides(_0x4d738d)};return _0xefea6e[_0x615eb0]=_0x7119da,_0x35779c['apps']=_0xefea6e,_0x35779c[_0x595fde(0x105)]=_0x615eb0,delete _0x35779c['appcode'],delete _0x35779c[_0x595fde(0x107)],_0x7119da[_0x595fde(0x104)]&&(_0x35779c[_0x595fde(0x104)]=_0x7119da[_0x595fde(0x104)]),writeConfigFile(_0x1aebfa,_0x35779c),{'ok':!![],'message':_0x595fde(0xe6)+(_0x484883===_0x595fde(0xe8)?_0x595fde(0x118):_0x595fde(0xea))+':\x20'+_0x615eb0+_0x595fde(0xfb)+_0x7119da['appcode']+').\x20Config:\x20'+_0x1aebfa+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x595fde(0x111)+_0x484883,'configPath':_0x1aebfa,'app':_0x615eb0,'appcode':_0x7119da[_0x595fde(0x106)],'env':_0x7119da[_0x595fde(0x104)]??null,'credentialsWritten':![]}};}function a202_0x2bc1(){const _0x4011c9=['initialized','\x20workspace\x20use\x20--app\x20<name>`.','795270YyhpbJ','object','39918USVxYQ','31095UkxhNN','project','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','15nesyka','\x22\x20not\x20found.','Workspace\x20','defaultFormat','init','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','updated','string','format','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','isArray','Use\x20`','Initialize\x20the\x20current\x20workspace\x20app\x20binding','App\x20\x22','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','keys','325244lCNxbo','join','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Switch\x20the\x20current\x20workspace\x20app\x20binding','validation','write','apps','\x20(appcode:\x20','number','workspace','\x20--app\x20','28Hpplkx','136pBPQfF','\x20--appcode\x20<code>`.','Target\x20environment','trim','env','defaultApp','appcode','app','1213310VdoutP','Missing\x20workspace\x20app\x20selector.','str','165234pfEwsV','flag','pageSize','riskLevel','Invalid\x20appcode:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','workspace.','locale','apiDir','globalConfig','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','20490mqKIYg'];a202_0x2bc1=function(){return _0x4011c9;};return a202_0x2bc1();}const workspaceInitDefinition={'service':a202_0x407666(0xfd),'command':a202_0x407666(0xe8),'description':a202_0x407666(0xf0),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x15c0d5=>configureWorkspace(_0x15c0d5,a202_0x407666(0xe8))},workspaceUseDefinition={'service':a202_0x407666(0xfd),'command':'use','description':a202_0x407666(0xf7),'risk':a202_0x407666(0xf9),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1c0d4e=>configureWorkspace(_0x1c0d4e,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a210_0x29c2cb=a210_0x340b;(function(_0x4448d4,_0x41edb5){const _0x5b3d1d=a210_0x340b,_0x4d715d=_0x4448d4();while(!![]){try{const _0x55b911=-parseInt(_0x5b3d1d(0x1ac))/0x1*(parseInt(_0x5b3d1d(0x191))/0x2)+-parseInt(_0x5b3d1d(0x19d))/0x3+-parseInt(_0x5b3d1d(0x1a6))/0x4+parseInt(_0x5b3d1d(0x18e))/0x5+parseInt(_0x5b3d1d(0x197))/0x6*(parseInt(_0x5b3d1d(0x19c))/0x7)+parseInt(_0x5b3d1d(0x1be))/0x8+-parseInt(_0x5b3d1d(0x196))/0x9;if(_0x55b911===_0x41edb5)break;else _0x4d715d['push'](_0x4d715d['shift']());}catch(_0x161a69){_0x4d715d['push'](_0x4d715d['shift']());}}}(a210_0x377e,0x2c480));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+a210_0x29c2cb(0x1a7),SAFE_PROFILE_KEYS=[a210_0x29c2cb(0x1a1),a210_0x29c2cb(0x1b7),'apiDir',a210_0x29c2cb(0x199),a210_0x29c2cb(0x194),a210_0x29c2cb(0x193),a210_0x29c2cb(0x192)],workspaceFlags=[{'name':a210_0x29c2cb(0x1b8),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x1aa)},{'name':a210_0x29c2cb(0x1a1),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x1b6)},{'name':a210_0x29c2cb(0x1b7),'type':a210_0x29c2cb(0x1ba),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a210_0x29c2cb(0x1a0),'type':'string','description':a210_0x29c2cb(0x18a)},{'name':a210_0x29c2cb(0x1a9),'type':a210_0x29c2cb(0x1ba),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a210_0x29c2cb(0x194),'type':a210_0x29c2cb(0x18f),'description':a210_0x29c2cb(0x19b)},{'name':a210_0x29c2cb(0x193),'type':a210_0x29c2cb(0x1ba),'description':a210_0x29c2cb(0x18b),'enum':[...RISK_LEVEL_VALUES]},{'name':a210_0x29c2cb(0x192),'type':a210_0x29c2cb(0x1ba),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2ba306){const _0x4a1e29=a210_0x29c2cb;return!!_0x2ba306&&typeof _0x2ba306===_0x4a1e29(0x190)&&!Array[_0x4a1e29(0x19f)](_0x2ba306);}function assertValidAppcode(_0x2de70f){const _0x5daa63=a210_0x29c2cb,{valid:_0x3336e4,message:_0x33cb92}=validateAppcode(_0x2de70f);if(!_0x3336e4)throw CliErrors[_0x5daa63(0x1bd)](_0x5daa63(0x195)+_0x2de70f,_0x33cb92);}function sanitizeProfile(_0x65fa54){if(!isRecord(_0x65fa54))return{};const _0x4d9764={};for(const _0x254807 of SAFE_PROFILE_KEYS){if(_0x65fa54[_0x254807]!==undefined)_0x4d9764[_0x254807]=_0x65fa54[_0x254807];}return _0x4d9764;}function cloneProfile(_0x593094){return isRecord(_0x593094)?{..._0x593094}:{};}function collectWorkspaceProfileOverrides(_0xe032a4){const _0x3d5f20=a210_0x29c2cb,_0x5aef0d={},_0x7b95ea=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x1b7)),_0x61c5c3=_0xe032a4['str'](_0x3d5f20(0x1a0)),_0x22a992=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x1a9)),_0x469d07=_0xe032a4[_0x3d5f20(0x1ad)](_0x3d5f20(0x194)),_0x40b0b9=_0xe032a4[_0x3d5f20(0x19e)](_0x3d5f20(0x193)),_0x1073d7=_0xe032a4['str'](_0x3d5f20(0x192));if(_0x7b95ea)_0x5aef0d['env']=_0x7b95ea;if(_0x61c5c3)_0x5aef0d[_0x3d5f20(0x1a0)]=_0x61c5c3;if(_0x22a992)_0x5aef0d[_0x3d5f20(0x199)]=_0x22a992;if(_0x469d07!==undefined&&_0x469d07!=='')_0x5aef0d[_0x3d5f20(0x194)]=Number(_0x469d07);if(_0x40b0b9)_0x5aef0d[_0x3d5f20(0x193)]=_0x40b0b9;if(_0x1073d7)_0x5aef0d[_0x3d5f20(0x192)]=_0x1073d7;return _0x5aef0d;}async function validateWorkspaceArgs(_0xe47d1e){const _0x34aa3a=a210_0x29c2cb,_0x26bd53=_0xe47d1e[_0x34aa3a(0x19e)](_0x34aa3a(0x1b8))['trim'](),_0x138f89=_0xe47d1e[_0x34aa3a(0x19e)](_0x34aa3a(0x1a1))[_0x34aa3a(0x18c)]();if(!_0x26bd53&&!_0x138f89)throw CliErrors[_0x34aa3a(0x1bd)]('Missing\x20workspace\x20app\x20selector.',_0x34aa3a(0x1b1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x138f89)assertValidAppcode(_0x138f89);}function resolveKnownApps(){const _0x1bad0d=a210_0x29c2cb,{config:_0x39d52f,layers:_0x15fe67}=readRawConfigWithLayers(),_0x4f3221=isRecord(_0x39d52f[_0x1bad0d(0x1a3)])?_0x39d52f[_0x1bad0d(0x1a3)]:{},_0x1e0f51=isRecord(_0x15fe67[_0x1bad0d(0x1b3)]['apps'])?_0x15fe67[_0x1bad0d(0x1b3)][_0x1bad0d(0x1a3)]:{};return{..._0x1e0f51,..._0x4f3221};}function a210_0x340b(_0x32887a,_0xd4f4e1){_0x32887a=_0x32887a-0x189;const _0x377eb6=a210_0x377e();let _0x340b62=_0x377eb6[_0x32887a];return _0x340b62;}async function configureWorkspace(_0x200c9c,_0x40b51e){const _0x2f4ad3=a210_0x29c2cb,_0x939873=_0x200c9c[_0x2f4ad3(0x19e)](_0x2f4ad3(0x1b8))['trim'](),_0x5dde04=_0x200c9c['str'](_0x2f4ad3(0x1a1))['trim'](),_0x472499=_0x939873||_0x5dde04;if(!_0x472499)throw CliErrors[_0x2f4ad3(0x1bd)]('Missing\x20workspace\x20app\x20selector.',_0x2f4ad3(0x1b1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2f4ad3(0x1bb));if(_0x5dde04)assertValidAppcode(_0x5dde04);const _0x3a2afe=resolveWriteConfigPath(_0x2f4ad3(0x1af)),_0x56d616=readConfigFile(_0x3a2afe),_0x3fdab5=resolveKnownApps(),_0x321f05=isRecord(_0x56d616[_0x2f4ad3(0x1a3)])?{..._0x56d616['apps']}:{},_0x474aec=cloneProfile(_0x321f05[_0x472499]),_0x225555=sanitizeProfile(_0x3fdab5[_0x472499]),_0x5cde43=_0x5dde04?{}:_0x225555,_0x4b039d=_0x5dde04||_0x5cde43[_0x2f4ad3(0x1a1)];if(!_0x4b039d){const _0x4e16a6=Object['keys'](_0x3fdab5),_0xe515a6=_0x4e16a6['length']===0x0?_0x2f4ad3(0x1b1)+CLI_BIN_NAME+_0x2f4ad3(0x198)+_0x40b51e+'\x20--app\x20'+_0x472499+_0x2f4ad3(0x1b2):_0x2f4ad3(0x1b4)+_0x4e16a6[_0x2f4ad3(0x1ae)](',\x20');throw CliErrors[_0x2f4ad3(0x1bd)](_0x2f4ad3(0x1ab)+_0x472499+_0x2f4ad3(0x18d),_0xe515a6);}assertValidAppcode(String(_0x4b039d));const _0xea58c6={..._0x5cde43,..._0x474aec,'appcode':String(_0x4b039d),...collectWorkspaceProfileOverrides(_0x200c9c)};return _0x321f05[_0x472499]=_0xea58c6,_0x56d616[_0x2f4ad3(0x1a3)]=_0x321f05,_0x56d616[_0x2f4ad3(0x1b9)]=_0x472499,delete _0x56d616[_0x2f4ad3(0x1a1)],delete _0x56d616[_0x2f4ad3(0x1b8)],_0xea58c6[_0x2f4ad3(0x1b7)]&&(_0x56d616[_0x2f4ad3(0x1b7)]=_0xea58c6[_0x2f4ad3(0x1b7)]),writeConfigFile(_0x3a2afe,_0x56d616),{'ok':!![],'message':_0x2f4ad3(0x1bc)+(_0x40b51e===_0x2f4ad3(0x1b0)?_0x2f4ad3(0x1b5):_0x2f4ad3(0x1a4))+':\x20'+_0x472499+'\x20(appcode:\x20'+_0xea58c6[_0x2f4ad3(0x1a1)]+').\x20Config:\x20'+_0x3a2afe+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x2f4ad3(0x1bf)+_0x40b51e,'configPath':_0x3a2afe,'app':_0x472499,'appcode':_0xea58c6[_0x2f4ad3(0x1a1)],'env':_0xea58c6['env']??null,'credentialsWritten':![]}};}function a210_0x377e(){const _0x3141e7=['API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','trim','\x22\x20not\x20found.','1791070fYLcMm','number','object','356002eeRybY','locale','riskLevel','pageSize','Invalid\x20appcode:\x20','1656459XQPMzj','138WWgFJf','\x20workspace\x20','format','use','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','62167umcChF','730917pvswai','str','isArray','apiDir','appcode','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apps','updated','Switch\x20the\x20current\x20workspace\x20app\x20binding','442996rhZefL','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','write','defaultFormat','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20\x22','1ZarWBe','flag','join','project','init','Use\x20`','\x20--appcode\x20<code>`.','globalConfig','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','initialized','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','env','app','defaultApp','string','\x20workspace\x20use\x20--app\x20<name>`.','Workspace\x20','validation','2682712FrKeKo','workspace.','workspace'];a210_0x377e=function(){return _0x3141e7;};return a210_0x377e();}const workspaceInitDefinition={'service':a210_0x29c2cb(0x189),'command':a210_0x29c2cb(0x1b0),'description':a210_0x29c2cb(0x1a2),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3cbd85=>configureWorkspace(_0x3cbd85,a210_0x29c2cb(0x1b0))},workspaceUseDefinition={'service':a210_0x29c2cb(0x189),'command':a210_0x29c2cb(0x19a),'description':a210_0x29c2cb(0x1a5),'risk':a210_0x29c2cb(0x1a8),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x50de49=>configureWorkspace(_0x50de49,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a203_0x1d9736=a203_0x1a38;function a203_0x3e01(){const _0x3a96cd=['4933352yqAFVI','remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','112236hkWGhL','30zFSQgs','name','980117QypIqV','8782551AqqQin','1542050DtNvbJ','write','10vCZtPS','workspace\x20remove','4499ReynVJ','128382HcJCEC','12gaqELT','26AqpliO','437045EtGCpF'];a203_0x3e01=function(){return _0x3a96cd;};return a203_0x3e01();}(function(_0x3705e3,_0x1fd755){const _0x5f3825=a203_0x1a38,_0x4c38eb=_0x3705e3();while(!![]){try{const _0x28b4f8=-parseInt(_0x5f3825(0x1f1))/0x1+-parseInt(_0x5f3825(0x1fa))/0x2*(-parseInt(_0x5f3825(0x1f8))/0x3)+-parseInt(_0x5f3825(0x1f9))/0x4*(parseInt(_0x5f3825(0x1f3))/0x5)+-parseInt(_0x5f3825(0x1ef))/0x6*(parseInt(_0x5f3825(0x1fb))/0x7)+-parseInt(_0x5f3825(0x1fc))/0x8+-parseInt(_0x5f3825(0x1f2))/0x9*(parseInt(_0x5f3825(0x1f5))/0xa)+-parseInt(_0x5f3825(0x1f7))/0xb*(-parseInt(_0x5f3825(0x1ee))/0xc);if(_0x28b4f8===_0x1fd755)break;else _0x4c38eb['push'](_0x4c38eb['shift']());}catch(_0x166672){_0x4c38eb['push'](_0x4c38eb['shift']());}}}(a203_0x3e01,0x8b915));function a203_0x1a38(_0x193c9e,_0x59b338){_0x193c9e=_0x193c9e-0x1ec;const _0x3e0157=a203_0x3e01();let _0x1a3881=_0x3e0157[_0x193c9e];return _0x1a3881;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a203_0x1d9736(0x1ec),'description':a203_0x1d9736(0x1ed),'risk':a203_0x1d9736(0x1f4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x1d9736(0x1f0),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x10cb7a=>validateAppName(_0x10cb7a,a203_0x1d9736(0x1f6)),'execute':_0x64b3a2=>runAppRemove(_0x64b3a2,a203_0x1d9736(0x1f6))};
1
+ function a211_0x390e(){const _0xd5d02=['6844tTvWoD','85apOrrE','1930kDBBeU','App\x20profile\x20name\x20to\x20remove','7524464nhzbPR','name','5076gcwlSs','remove','workspace','868858dYLrBa','workspace\x20remove','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','131845dyWETv','4289082SciBzN','968808jkwbqn','7YfopVd'];a211_0x390e=function(){return _0xd5d02;};return a211_0x390e();}const a211_0x5418ed=a211_0x2614;(function(_0x4fe105,_0x1245bb){const _0x5ae370=a211_0x2614,_0x59bd11=_0x4fe105();while(!![]){try{const _0x21e790=-parseInt(_0x5ae370(0x132))/0x1+-parseInt(_0x5ae370(0x12f))/0x2+-parseInt(_0x5ae370(0x134))/0x3+parseInt(_0x5ae370(0x126))/0x4*(-parseInt(_0x5ae370(0x127))/0x5)+parseInt(_0x5ae370(0x133))/0x6+parseInt(_0x5ae370(0x125))/0x7*(parseInt(_0x5ae370(0x12a))/0x8)+-parseInt(_0x5ae370(0x12c))/0x9*(parseInt(_0x5ae370(0x128))/0xa);if(_0x21e790===_0x1245bb)break;else _0x59bd11['push'](_0x59bd11['shift']());}catch(_0x25bc9d){_0x59bd11['push'](_0x59bd11['shift']());}}}(a211_0x390e,0x99620));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a211_0x2614(_0x530307,_0x163bc9){_0x530307=_0x530307-0x125;const _0x390ecd=a211_0x390e();let _0x26149a=_0x390ecd[_0x530307];return _0x26149a;}export const workspaceRemoveDefinition={'service':a211_0x5418ed(0x12e),'command':a211_0x5418ed(0x12d),'description':a211_0x5418ed(0x131),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a211_0x5418ed(0x12b),'description':a211_0x5418ed(0x129),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4a1c39=>validateAppName(_0x4a1c39,a211_0x5418ed(0x130)),'execute':_0xb36783=>runAppRemove(_0xb36783,a211_0x5418ed(0x130))};
@@ -1 +1 @@
1
- const a204_0x4f6ea1=a204_0x4da3;(function(_0x446628,_0x425ba8){const _0x59a895=a204_0x4da3,_0x363c99=_0x446628();while(!![]){try{const _0x5148de=-parseInt(_0x59a895(0x1fb))/0x1*(parseInt(_0x59a895(0x216))/0x2)+-parseInt(_0x59a895(0x1fe))/0x3+-parseInt(_0x59a895(0x1ed))/0x4*(-parseInt(_0x59a895(0x1f1))/0x5)+parseInt(_0x59a895(0x1f7))/0x6+-parseInt(_0x59a895(0x20a))/0x7*(parseInt(_0x59a895(0x201))/0x8)+parseInt(_0x59a895(0x1f2))/0x9*(-parseInt(_0x59a895(0x20c))/0xa)+parseInt(_0x59a895(0x1ff))/0xb;if(_0x5148de===_0x425ba8)break;else _0x363c99['push'](_0x363c99['shift']());}catch(_0x131e21){_0x363c99['push'](_0x363c99['shift']());}}}(a204_0x404e,0x47235));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=[a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x213),'format',a204_0x4f6ea1(0x20b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x4f6ea1(0x20d),a204_0x4f6ea1(0x214),'locale',a204_0x4f6ea1(0x1f0),a204_0x4f6ea1(0x1ef),'accessKey',a204_0x4f6ea1(0x211)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2f590c){const _0x4b4735=a204_0x4f6ea1;return[..._0x2f590c][_0x4b4735(0x20e)](',\x20');}function a204_0x4da3(_0x49a047,_0x4a752a){_0x49a047=_0x49a047-0x1ed;const _0x404e9a=a204_0x404e();let _0x4da3cb=_0x404e9a[_0x49a047];return _0x4da3cb;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x52216d){const _0x5b63ca=a204_0x4f6ea1;return TOP_LEVEL_CONFIG_KEYS[_0x5b63ca(0x1f8)](_0x52216d);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x4f6ea1(0x214),'apiDir':a204_0x4f6ea1(0x211),'cookie':'cookie','accessKey':'accessKey','defaultFormat':'format','pageSize':'pageSize','riskLevel':'riskLevel','locale':a204_0x4f6ea1(0x213)};export function getAppProfileFlagDefs(){const _0x59a75b=a204_0x4f6ea1;return[{'name':_0x59a75b(0x214),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x206),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f5)},{'name':_0x59a75b(0x1ef),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x208),'hidden':!![]},{'name':'accessKey','type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1f3),'hidden':!![]},{'name':'defaultFormat','type':_0x59a75b(0x1fd),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x59a75b(0x200),'type':_0x59a75b(0x1f9),'description':_0x59a75b(0x1f6)},{'name':_0x59a75b(0x20b),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x1fa),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x59a75b(0x213),'type':_0x59a75b(0x1fd),'description':_0x59a75b(0x204)}];}export function collectAppProfileOverrides(_0x301c70){const _0x2588e6={};for(const [_0x2ae48b,_0x58ffb8]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x115e6d=_0x301c70(_0x2ae48b);if(!_0x115e6d)continue;_0x2588e6[_0x58ffb8]=_0x58ffb8==='pageSize'?Number(_0x115e6d):_0x115e6d;}return _0x2588e6;}export function buildAppProfileListFields(_0x1cd7a1){const _0x29e6bf=a204_0x4f6ea1;return{'env':_0x1cd7a1['env']??null,'apiDir':_0x1cd7a1[_0x29e6bf(0x211)]??null,'hasCookie':!!_0x1cd7a1[_0x29e6bf(0x1ef)],'hasAccessKey':!!_0x1cd7a1[_0x29e6bf(0x210)],'format':_0x1cd7a1[_0x29e6bf(0x1f0)]??null,'pageSize':_0x1cd7a1[_0x29e6bf(0x200)]??null,'riskLevel':_0x1cd7a1[_0x29e6bf(0x20b)]??null,'locale':_0x1cd7a1[_0x29e6bf(0x213)]??null};}function a204_0x404e(){const _0x1ae14a=['Default\x20page\x20size','45276TOUPQK','has','number','Risk\x20level','29hqYQtI','defaultApp','string','819285JOoUYf','16388845GvFwMW','pageSize','191080ZQCjEo','keys','map','Locale','apps','Target\x20environment','trim','Auth\x20cookie','filter','98bxarUK','riskLevel','2512430DLMMiV','appcode','join','inherit','accessKey','apiDir','length','locale','env','app','27386Qevviw','1076cGNsgr','en-US','cookie','format','925qeDwNE','9DVKANQ','Access\x20key','zh-CN','API\x20directory\x20path'];a204_0x404e=function(){return _0x1ae14a;};return a204_0x404e();}export function buildAppDoctorFields(_0x3375fb,_0x11e410){const _0x527d63=a204_0x4f6ea1;return{'env':{'value':_0x3375fb['env']||_0x11e410['env'],'source':_0x3375fb['env']?_0x527d63(0x215):_0x527d63(0x20f)},'apiDir':{'value':_0x3375fb['apiDir']||_0x11e410[_0x527d63(0x211)],'source':_0x3375fb[_0x527d63(0x211)]?_0x527d63(0x215):'inherit'},'cookie':{'value':_0x3375fb[_0x527d63(0x1ef)]||_0x11e410[_0x527d63(0x1ef)],'source':_0x3375fb[_0x527d63(0x1ef)]?_0x527d63(0x215):'inherit'},'accessKey':{'value':_0x3375fb[_0x527d63(0x210)]||_0x11e410[_0x527d63(0x210)],'source':_0x3375fb[_0x527d63(0x210)]?_0x527d63(0x215):_0x527d63(0x20f)}};}export function buildCanonicalAppConfig(_0x1e4815,_0x4de29c){const _0x262fac=a204_0x4f6ea1,_0x1b80a5=_0x1e4815[_0x262fac(0x203)](_0xc6e898=>String(_0xc6e898||'')[_0x262fac(0x207)]())[_0x262fac(0x209)](Boolean);if(_0x1b80a5['length']===0x0)return{};const _0x1e4b05={};for(const _0x56c652 of _0x1b80a5){_0x1e4b05[_0x56c652]=_0x4de29c?{'appcode':_0x56c652,'env':_0x4de29c}:{'appcode':_0x56c652};}return{'apps':_0x1e4b05,'defaultApp':_0x1b80a5[0x0]};}export function buildCanonicalProjectConfig(_0x5fe24f,_0x54a20c){const _0x45a384=a204_0x4f6ea1,{appCodes:appCodes=[],env:_0x543a7d,metadata:_0x2a3b32}=_0x54a20c,_0x162cef={..._0x5fe24f,..._0x2a3b32||{}};delete _0x162cef[_0x45a384(0x20d)],delete _0x162cef[_0x45a384(0x215)];if(_0x543a7d)_0x162cef[_0x45a384(0x214)]=_0x543a7d;else!_0x162cef['env']&&(_0x162cef['env']=DEFAULT_CONFIG_VALUES[_0x45a384(0x214)]);const _0x378302=buildCanonicalAppConfig(appCodes,_0x162cef['env']);return Object[_0x45a384(0x202)](_0x378302)[_0x45a384(0x212)]>0x0&&(_0x162cef[_0x45a384(0x205)]=_0x378302[_0x45a384(0x205)],_0x162cef[_0x45a384(0x1fc)]=_0x378302['defaultApp']),_0x162cef;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a204_0x4f6ea1(0x1f4),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a204_0x4f6ea1(0x1ee)};export function normalizeLocale(_0x4d1722){if(!_0x4d1722)return null;return LOCALE_MAP[_0x4d1722['toLowerCase']()]??null;}
1
+ const a212_0x2fa449=a212_0x1d67;(function(_0x5cb3a9,_0x3cb6c7){const _0xd33af3=a212_0x1d67,_0x4b04de=_0x5cb3a9();while(!![]){try{const _0x166e07=-parseInt(_0xd33af3(0xfc))/0x1*(-parseInt(_0xd33af3(0xd6))/0x2)+-parseInt(_0xd33af3(0xf8))/0x3+-parseInt(_0xd33af3(0xec))/0x4*(-parseInt(_0xd33af3(0xd7))/0x5)+parseInt(_0xd33af3(0xe6))/0x6*(parseInt(_0xd33af3(0xf6))/0x7)+parseInt(_0xd33af3(0xed))/0x8*(-parseInt(_0xd33af3(0xe4))/0x9)+-parseInt(_0xd33af3(0xd4))/0xa*(-parseInt(_0xd33af3(0xdb))/0xb)+parseInt(_0xd33af3(0xe8))/0xc*(parseInt(_0xd33af3(0xfd))/0xd);if(_0x166e07===_0x3cb6c7)break;else _0x4b04de['push'](_0x4b04de['shift']());}catch(_0x3efb7b){_0x4b04de['push'](_0x4b04de['shift']());}}}(a212_0x376a,0xb1e67));function a212_0x1d67(_0x4e1aca,_0x428b18){_0x4e1aca=_0x4e1aca-0xd3;const _0x376a2e=a212_0x376a();let _0x1d67d5=_0x376a2e[_0x4e1aca];return _0x1d67d5;}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_0x2fa449(0xd5),a212_0x2fa449(0xf4),a212_0x2fa449(0xfa),a212_0x2fa449(0xda),a212_0x2fa449(0xea)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a212_0x2fa449(0xd9),a212_0x2fa449(0xee),a212_0x2fa449(0xfa),a212_0x2fa449(0xda),a212_0x2fa449(0xd5),a212_0x2fa449(0xf4),a212_0x2fa449(0xf0)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x24d713){const _0xd9b13c=a212_0x2fa449;return[..._0x24d713][_0xd9b13c(0xf3)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1af043){const _0x1c319a=a212_0x2fa449;return TOP_LEVEL_CONFIG_KEYS[_0x1c319a(0xef)](_0x1af043);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}function a212_0x376a(){const _0x35ca2c=['apiDir','defaultFormat','defaultApp','join','accessKey','pageSize','7iwGLCa','zh-CN','736944xfSouQ','number','locale','apps','173nsfLpN','382174DjcnTH','Risk\x20level','126460LwUhNq','cookie','674YBVHUC','455800izojQz','filter','appcode','format','165cCzbah','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','length','inherit','entries','Auth\x20cookie','string','map','Config\x20key\x20(','25344hPEPHt','app','1302348XTGtOP','en-US','300qjAKAB','API\x20directory\x20path','riskLevel','trim','20yunPjO','1936zOpRxS','env','has'];a212_0x376a=function(){return _0x35ca2c;};return a212_0x376a();}export function getConfigCommandKeyDescription(){const _0x39f4b2=a212_0x2fa449;return _0x39f4b2(0xe3)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a212_0x2fa449(0xee),'apiDir':a212_0x2fa449(0xf0),'cookie':a212_0x2fa449(0xd5),'accessKey':a212_0x2fa449(0xf4),'defaultFormat':a212_0x2fa449(0xda),'pageSize':a212_0x2fa449(0xf5),'riskLevel':a212_0x2fa449(0xea),'locale':a212_0x2fa449(0xfa)};export function getAppProfileFlagDefs(){const _0x600423=a212_0x2fa449;return[{'name':_0x600423(0xee),'type':_0x600423(0xe1),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x600423(0xf0),'type':_0x600423(0xe1),'description':_0x600423(0xe9)},{'name':_0x600423(0xd5),'type':_0x600423(0xe1),'description':_0x600423(0xe0),'hidden':!![]},{'name':_0x600423(0xf4),'type':_0x600423(0xe1),'description':'Access\x20key','hidden':!![]},{'name':_0x600423(0xf1),'type':_0x600423(0xe1),'description':_0x600423(0xdc),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x600423(0xf9),'description':'Default\x20page\x20size'},{'name':_0x600423(0xea),'type':_0x600423(0xe1),'description':_0x600423(0xd3),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x600423(0xe1),'description':'Locale'}];}export function collectAppProfileOverrides(_0x39afa3){const _0x524548=a212_0x2fa449,_0x3a4c91={};for(const [_0xa6bd27,_0x4462b4]of Object[_0x524548(0xdf)](APP_PROFILE_FLAG_KEY_MAP)){const _0x15f323=_0x39afa3(_0xa6bd27);if(!_0x15f323)continue;_0x3a4c91[_0x4462b4]=_0x4462b4===_0x524548(0xf5)?Number(_0x15f323):_0x15f323;}return _0x3a4c91;}export function buildAppProfileListFields(_0x28f947){const _0x4f6cb5=a212_0x2fa449;return{'env':_0x28f947['env']??null,'apiDir':_0x28f947[_0x4f6cb5(0xf0)]??null,'hasCookie':!!_0x28f947[_0x4f6cb5(0xd5)],'hasAccessKey':!!_0x28f947[_0x4f6cb5(0xf4)],'format':_0x28f947['format']??null,'pageSize':_0x28f947[_0x4f6cb5(0xf5)]??null,'riskLevel':_0x28f947[_0x4f6cb5(0xea)]??null,'locale':_0x28f947[_0x4f6cb5(0xfa)]??null};}export function buildAppDoctorFields(_0x37388f,_0x4f48db){const _0x4654f6=a212_0x2fa449;return{'env':{'value':_0x37388f[_0x4654f6(0xee)]||_0x4f48db[_0x4654f6(0xee)],'source':_0x37388f[_0x4654f6(0xee)]?'app':_0x4654f6(0xde)},'apiDir':{'value':_0x37388f[_0x4654f6(0xf0)]||_0x4f48db[_0x4654f6(0xf0)],'source':_0x37388f[_0x4654f6(0xf0)]?_0x4654f6(0xe5):_0x4654f6(0xde)},'cookie':{'value':_0x37388f[_0x4654f6(0xd5)]||_0x4f48db[_0x4654f6(0xd5)],'source':_0x37388f[_0x4654f6(0xd5)]?_0x4654f6(0xe5):_0x4654f6(0xde)},'accessKey':{'value':_0x37388f[_0x4654f6(0xf4)]||_0x4f48db[_0x4654f6(0xf4)],'source':_0x37388f[_0x4654f6(0xf4)]?'app':_0x4654f6(0xde)}};}export function buildCanonicalAppConfig(_0x5ac995,_0x223fd9){const _0x2c8f82=a212_0x2fa449,_0x22f103=_0x5ac995[_0x2c8f82(0xe2)](_0x426952=>String(_0x426952||'')[_0x2c8f82(0xeb)]())[_0x2c8f82(0xd8)](Boolean);if(_0x22f103[_0x2c8f82(0xdd)]===0x0)return{};const _0x46befc={};for(const _0x1badf4 of _0x22f103){_0x46befc[_0x1badf4]=_0x223fd9?{'appcode':_0x1badf4,'env':_0x223fd9}:{'appcode':_0x1badf4};}return{'apps':_0x46befc,'defaultApp':_0x22f103[0x0]};}export function buildCanonicalProjectConfig(_0x3f9787,_0x501464){const _0x38113c=a212_0x2fa449,{appCodes:appCodes=[],env:_0x28b0a9,metadata:_0x3ddc3a}=_0x501464,_0x36bd47={..._0x3f9787,..._0x3ddc3a||{}};delete _0x36bd47['appcode'],delete _0x36bd47[_0x38113c(0xe5)];if(_0x28b0a9)_0x36bd47[_0x38113c(0xee)]=_0x28b0a9;else!_0x36bd47[_0x38113c(0xee)]&&(_0x36bd47[_0x38113c(0xee)]=DEFAULT_CONFIG_VALUES[_0x38113c(0xee)]);const _0x164eba=buildCanonicalAppConfig(appCodes,_0x36bd47[_0x38113c(0xee)]);return Object['keys'](_0x164eba)[_0x38113c(0xdd)]>0x0&&(_0x36bd47[_0x38113c(0xfb)]=_0x164eba[_0x38113c(0xfb)],_0x36bd47['defaultApp']=_0x164eba[_0x38113c(0xf2)]),_0x36bd47;}const LOCALE_MAP={'zh':a212_0x2fa449(0xf7),'zh-cn':a212_0x2fa449(0xf7),'zh_cn':a212_0x2fa449(0xf7),'en':'en-US','en-us':'en-US','en_us':a212_0x2fa449(0xe7)};export function normalizeLocale(_0x5497fb){if(!_0x5497fb)return null;return LOCALE_MAP[_0x5497fb['toLowerCase']()]??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(_0x15ac27,_0x163ae0){const _0x420143=a205_0x57bb,_0x56e65f=_0x15ac27();while(!![]){try{const _0x7f8436=parseInt(_0x420143(0x118))/0x1+-parseInt(_0x420143(0x11c))/0x2+parseInt(_0x420143(0x11d))/0x3+-parseInt(_0x420143(0x11b))/0x4*(parseInt(_0x420143(0x119))/0x5)+parseInt(_0x420143(0x117))/0x6+parseInt(_0x420143(0x114))/0x7*(-parseInt(_0x420143(0x11a))/0x8)+parseInt(_0x420143(0x116))/0x9*(parseInt(_0x420143(0x115))/0xa);if(_0x7f8436===_0x163ae0)break;else _0x56e65f['push'](_0x56e65f['shift']());}catch(_0x4a133a){_0x56e65f['push'](_0x56e65f['shift']());}}}(a205_0x54bf,0x9dac2));function a205_0x54bf(){const _0x5c4b81=['345191nDcQyn','13663150ONGfER','9WavEqC','1653660JoSDEc','198467gSBHoQ','1554035vfpbUf','88PbCgDM','4ioyEzH','1258580LEKxAc','863922TTMAIi'];a205_0x54bf=function(){return _0x5c4b81;};return a205_0x54bf();}function a205_0x57bb(_0x67ea6e,_0x1987bc){_0x67ea6e=_0x67ea6e-0x114;const _0x54bfbe=a205_0x54bf();let _0x57bbd1=_0x54bfbe[_0x67ea6e];return _0x57bbd1;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
1
+ const a213_0x5a2b96=a213_0x4503;function a213_0x4503(_0x31eff4,_0x6ab30){_0x31eff4=_0x31eff4-0x1b4;const _0x3f7968=a213_0x3f79();let _0x4503dc=_0x3f7968[_0x31eff4];return _0x4503dc;}(function(_0x3966de,_0x5204f2){const _0x5288a0=a213_0x4503,_0x9524ec=_0x3966de();while(!![]){try{const _0x3ed9af=parseInt(_0x5288a0(0x1bc))/0x1*(parseInt(_0x5288a0(0x1bf))/0x2)+parseInt(_0x5288a0(0x1b6))/0x3+-parseInt(_0x5288a0(0x1b4))/0x4+-parseInt(_0x5288a0(0x1b5))/0x5+-parseInt(_0x5288a0(0x1bd))/0x6*(-parseInt(_0x5288a0(0x1b8))/0x7)+parseInt(_0x5288a0(0x1b9))/0x8+-parseInt(_0x5288a0(0x1b7))/0x9*(-parseInt(_0x5288a0(0x1bb))/0xa);if(_0x3ed9af===_0x5204f2)break;else _0x9524ec['push'](_0x9524ec['shift']());}catch(_0x429d53){_0x9524ec['push'](_0x9524ec['shift']());}}}(a213_0x3f79,0xb4e95));function a213_0x3f79(){const _0x282a65=['309465okvMxo','5706nbcItm','115129vLQdFL','48552fHOJZq','https://g.lovrabet.com/dist/rabetbase-cli','6800NCQJnl','17bOkzwH','132qzZMMG','/config/index.json','146088PYFuHS','/templates/projects','3417984iZemzX','2742085eQYAtK'];a213_0x3f79=function(){return _0x282a65;};return a213_0x3f79();}export const RABETBASE_CDN_BASE_URL=a213_0x5a2b96(0x1ba);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a213_0x5a2b96(0x1be);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a213_0x5a2b96(0x1c0);
@@ -1 +1 @@
1
- const a206_0x48fe87=a206_0x1174;(function(_0x4e5cfe,_0x3d4fb5){const _0x2297cc=a206_0x1174,_0x1bbad6=_0x4e5cfe();while(!![]){try{const _0x25cdc6=parseInt(_0x2297cc(0x1e4))/0x1+parseInt(_0x2297cc(0x1da))/0x2+-parseInt(_0x2297cc(0x22d))/0x3+parseInt(_0x2297cc(0x251))/0x4*(parseInt(_0x2297cc(0x216))/0x5)+-parseInt(_0x2297cc(0x254))/0x6+parseInt(_0x2297cc(0x237))/0x7*(-parseInt(_0x2297cc(0x243))/0x8)+parseInt(_0x2297cc(0x232))/0x9;if(_0x25cdc6===_0x3d4fb5)break;else _0x1bbad6['push'](_0x1bbad6['shift']());}catch(_0x389a39){_0x1bbad6['push'](_0x1bbad6['shift']());}}}(a206_0x1dd8,0x69eab));export const CLI_BIN_NAME=a206_0x48fe87(0x1dc);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x48fe87(0x1e7),'meowKey':a206_0x48fe87(0x1e7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x231),'hint':a206_0x48fe87(0x203)},{'name':a206_0x48fe87(0x24f),'meowKey':'app','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e0),'hint':a206_0x48fe87(0x1db)},{'name':a206_0x48fe87(0x1f6),'meowKey':a206_0x48fe87(0x1f6),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x200),'hint':'production\x20|\x20daily'},{'name':a206_0x48fe87(0x23f),'meowKey':a206_0x48fe87(0x23f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f5),'hint':a206_0x48fe87(0x21c)},{'name':'jq','meowKey':'jq','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21a),'hint':a206_0x48fe87(0x202)},{'name':a206_0x48fe87(0x224),'meowKey':'dryRun','type':a206_0x48fe87(0x1ec),'description':'Preview\x20operation\x20without\x20executing'},{'name':a206_0x48fe87(0x20e),'meowKey':a206_0x48fe87(0x20e),'type':a206_0x48fe87(0x1ec),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a206_0x48fe87(0x1f8),'meowKey':a206_0x48fe87(0x223),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1ef)},{'name':a206_0x48fe87(0x1f9),'meowKey':a206_0x48fe87(0x1f9),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x220)},{'name':a206_0x48fe87(0x238),'meowKey':a206_0x48fe87(0x238),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x1d6)},{'name':'ci','meowKey':'ci','type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x208),'hidden':!![]},{'name':'help','meowKey':a206_0x48fe87(0x1f7),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x222)},{'name':'name','meowKey':a206_0x48fe87(0x249),'type':'string','description':a206_0x48fe87(0x20f),'hidden':!![]},{'name':a206_0x48fe87(0x1d7),'meowKey':a206_0x48fe87(0x1d7),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x24d),'hidden':!![]},{'name':a206_0x48fe87(0x226),'meowKey':a206_0x48fe87(0x226),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x20c),'hidden':!![]},{'name':'watch','meowKey':a206_0x48fe87(0x1e8),'type':'boolean','description':a206_0x48fe87(0x210),'hidden':!![]},{'name':a206_0x48fe87(0x201),'meowKey':a206_0x48fe87(0x201),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fd),'hidden':!![]},{'name':a206_0x48fe87(0x242),'meowKey':a206_0x48fe87(0x242),'type':'string','description':a206_0x48fe87(0x24a),'hidden':!![]},{'name':a206_0x48fe87(0x1de),'meowKey':a206_0x48fe87(0x1de),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x21d),'hidden':!![]},{'name':a206_0x48fe87(0x250),'meowKey':'all','type':a206_0x48fe87(0x1ec),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a206_0x48fe87(0x253),'meowKey':a206_0x48fe87(0x1d5),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x24e),'hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fb),'hidden':!![]},{'name':'type','meowKey':a206_0x48fe87(0x1fe),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1e1),'hidden':!![]},{'name':a206_0x48fe87(0x228),'meowKey':'file','type':a206_0x48fe87(0x22c),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':a206_0x48fe87(0x255),'type':'string','description':a206_0x48fe87(0x1d4),'hidden':!![]},{'name':a206_0x48fe87(0x1ea),'meowKey':a206_0x48fe87(0x22f),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x234),'meowKey':a206_0x48fe87(0x234),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x233),'hidden':!![]},{'name':a206_0x48fe87(0x215),'meowKey':a206_0x48fe87(0x212),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':a206_0x48fe87(0x225),'meowKey':a206_0x48fe87(0x225),'type':'string','description':a206_0x48fe87(0x1fc),'hidden':!![]},{'name':'description','meowKey':'description','type':'string','description':a206_0x48fe87(0x230),'hidden':!![]},{'name':a206_0x48fe87(0x20b),'meowKey':a206_0x48fe87(0x1f3),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1ff),'hidden':!![]},{'name':a206_0x48fe87(0x219),'meowKey':'page','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x22a),'hidden':!![]},{'name':'pagesize','meowKey':a206_0x48fe87(0x1e2),'type':a206_0x48fe87(0x22c),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a206_0x48fe87(0x246),'type':'string','description':a206_0x48fe87(0x1ed),'hidden':!![]},{'name':'code','meowKey':a206_0x48fe87(0x248),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23d),'hidden':!![]},{'name':a206_0x48fe87(0x1e9),'meowKey':a206_0x48fe87(0x1e9),'type':'string','description':a206_0x48fe87(0x23b),'hidden':!![]},{'name':'schemas','meowKey':a206_0x48fe87(0x20a),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23a),'hidden':!![]},{'name':'operation','meowKey':a206_0x48fe87(0x213),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x217),'meowKey':'target','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f4),'hidden':!![]},{'name':a206_0x48fe87(0x23c),'meowKey':a206_0x48fe87(0x239),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x241),'hidden':!![]},{'name':'key','meowKey':'key','type':a206_0x48fe87(0x22c),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':a206_0x48fe87(0x22b),'type':'string','description':a206_0x48fe87(0x1dd),'hidden':!![]},{'name':a206_0x48fe87(0x1d8),'meowKey':a206_0x48fe87(0x1d8),'type':a206_0x48fe87(0x22c),'description':'Tags','hidden':!![]},{'name':a206_0x48fe87(0x236),'meowKey':a206_0x48fe87(0x236),'type':'boolean','description':a206_0x48fe87(0x1d9),'hidden':!![]},{'name':a206_0x48fe87(0x20d),'meowKey':a206_0x48fe87(0x207),'type':'string','description':a206_0x48fe87(0x1e5),'hidden':!![]},{'name':'reveal','meowKey':a206_0x48fe87(0x1eb),'type':'boolean','description':a206_0x48fe87(0x244),'hidden':!![]},{'name':a206_0x48fe87(0x211),'meowKey':'force','type':'boolean','description':a206_0x48fe87(0x1e6),'hidden':!![]},{'name':a206_0x48fe87(0x21f),'meowKey':a206_0x48fe87(0x21f),'type':a206_0x48fe87(0x1ec),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':'remote','type':'boolean','description':a206_0x48fe87(0x21e),'hidden':!![]},{'name':a206_0x48fe87(0x1fa),'meowKey':a206_0x48fe87(0x1fa),'type':a206_0x48fe87(0x1ec),'description':a206_0x48fe87(0x209),'hidden':!![]},{'name':a206_0x48fe87(0x204),'meowKey':a206_0x48fe87(0x1ee),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x206),'hidden':!![]},{'name':a206_0x48fe87(0x21b),'meowKey':'label','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x23e),'hidden':!![]},{'name':'parent-id','meowKey':a206_0x48fe87(0x22e),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x229),'hidden':!![]},{'name':a206_0x48fe87(0x252),'meowKey':'sort','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x218),'hidden':!![]},{'name':a206_0x48fe87(0x247),'meowKey':a206_0x48fe87(0x24b),'type':'string','description':a206_0x48fe87(0x235),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x48fe87(0x205),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1df),'hidden':!![]},{'name':a206_0x48fe87(0x24c),'meowKey':'expectedChildrenCount','type':a206_0x48fe87(0x22c),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a206_0x48fe87(0x240),'type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x221),'hidden':!![]},{'name':a206_0x48fe87(0x1f2),'meowKey':'taskId','type':a206_0x48fe87(0x22c),'description':a206_0x48fe87(0x1f1),'hidden':!![]},{'name':a206_0x48fe87(0x245),'meowKey':a206_0x48fe87(0x1f0),'type':'string','description':a206_0x48fe87(0x227),'hidden':!![]},{'name':a206_0x48fe87(0x214),'meowKey':'functionNode','type':a206_0x48fe87(0x22c),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a206_0x48fe87(0x1e7),a206_0x48fe87(0x24f),a206_0x48fe87(0x1f6),a206_0x48fe87(0x23f),'jq',a206_0x48fe87(0x224),a206_0x48fe87(0x20e),a206_0x48fe87(0x1f8),'ci']);function a206_0x1174(_0x4ca893,_0x143076){_0x4ca893=_0x4ca893-0x1d4;const _0x1dd899=a206_0x1dd8();let _0x1174e8=_0x1dd899[_0x4ca893];return _0x1174e8;}function a206_0x1dd8(){const _0x18507c=['expected-count','expectPath','Expected\x20affected\x20count','fromEnv','Alias\x20for\x20--non-interactive','Verbose\x20output','schemas','description-file','Clear','from-env','yes','Name','Watch\x20mode','force','dbId','operation','function-node','db-id','641440VJdTMa','target','Menu\x20sort\x20value','page','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','label','json\x20|\x20pretty\x20|\x20compress','Dataset\x20code','Use\x20remote','confirm','Use\x20global\x20config\x20scope','Comma-separated\x20menu\x20IDs','Show\x20help','nonInteractive','dry-run','dbid','clear','Operation\x20type','file','Parent\x20menu\x20id','Page\x20number','value','string','1624704VPFhOR','parentId','sqlName','Description','Override\x20appcode','940896vzcFFW','SQL\x20name','sqlname','Expected\x20current\x20parent\x20menu\x20id','stdin','14LedBnX','project','skipImports','Schemas','SQL\x20string','skip-imports','Code\x20filter','Menu\x20label','format','menuIds','Skip\x20import\x20generation','params','447096UDbZCh','Reveal\x20sensitive\x20value','operation-type','keyword','expect-parent-id','code','name','JSON\x20params','expectParentId','expected-children-count','Title','Enable\x20BFF\x20save','app','all','12uFKeJd','sort','enable-bff-save','3368850XUmKWA','sqlcode','SQL\x20code','enableBffSave','Use\x20project\x20config\x20scope','title','tags','Read\x20value\x20from\x20stdin','741278aGWgsi','<name>','rabetbase','Config\x20value','datasetcode','Expected\x20current\x20menu\x20path','Select\x20app\x20profile\x20by\x20name','Type\x20filter','pagesize','meowKey','788605SvBTYy','Read\x20value\x20from\x20environment\x20variable','Force\x20overwrite','appcode','watch','sql','sql-name','reveal','boolean','Keyword\x20filter','expectedCount','Force\x20non-interactive\x20mode\x20(CI)','operationType','Asynchronous\x20task\x20ID','task-id','descriptionFile','Target\x20path','Output\x20format','env','help','non-interactive','global','verbose','Record\x20ID','DB\x20ID','Output\x20path','type','Description\x20file','Environment','output','<expr>','<code>'];a206_0x1dd8=function(){return _0x18507c;};return a206_0x1dd8();}export function buildMeowFlags(){const _0x1a26d0=a206_0x48fe87;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x2e1f16=>[_0x2e1f16[_0x1a26d0(0x1e3)],{'type':_0x2e1f16[_0x1a26d0(0x1fe)]}]));}
1
+ const a214_0x55a419=a214_0x4d26;function a214_0x4d26(_0x3ace9e,_0x1624e3){_0x3ace9e=_0x3ace9e-0x1f3;const _0x5426ef=a214_0x5426();let _0x4d2682=_0x5426ef[_0x3ace9e];return _0x4d2682;}(function(_0x2dbe91,_0x4f2756){const _0x1aa193=a214_0x4d26,_0x450370=_0x2dbe91();while(!![]){try{const _0x3bba2a=parseInt(_0x1aa193(0x1f4))/0x1+-parseInt(_0x1aa193(0x22e))/0x2+parseInt(_0x1aa193(0x267))/0x3*(-parseInt(_0x1aa193(0x24e))/0x4)+parseInt(_0x1aa193(0x21c))/0x5*(-parseInt(_0x1aa193(0x1f7))/0x6)+-parseInt(_0x1aa193(0x218))/0x7*(-parseInt(_0x1aa193(0x240))/0x8)+-parseInt(_0x1aa193(0x25f))/0x9*(-parseInt(_0x1aa193(0x235))/0xa)+parseInt(_0x1aa193(0x244))/0xb*(parseInt(_0x1aa193(0x217))/0xc);if(_0x3bba2a===_0x4f2756)break;else _0x450370['push'](_0x450370['shift']());}catch(_0x5e48cd){_0x450370['push'](_0x450370['shift']());}}}(a214_0x5426,0xd255e));export const CLI_BIN_NAME=a214_0x55a419(0x241);export const CLI_DISPLAY_NAME=a214_0x55a419(0x252);export const NPM_PACKAGE_NAME=a214_0x55a419(0x253);function a214_0x5426(){const _0x1cb119=['function-node','description-file','Read\x20value\x20from\x20environment\x20variable','description','sql-name','label','json\x20|\x20pretty\x20|\x20compress','1291340ygZMzK','string','parentId','schemas','DB\x20ID','SQL\x20code','Use\x20project\x20config\x20scope','170ojRoAn','dry-run','descriptionFile','Tags','functionNode','Page\x20number','tags','Expected\x20current\x20child\x20count','confirm','clear','Output\x20path','416viFLnQ','rabetbase','Show\x20help','all','7961129KfALQS','appcode','Expected\x20affected\x20count','Alias\x20for\x20--non-interactive','Name','Description\x20file','pagesize','expected-children-count','JSON\x20params','key','4VoNSHZ','File\x20path','enable-bff-save','Config\x20key','Rabetbase\x20CLI','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','Use\x20global\x20config\x20scope','Skip\x20confirmation\x20for\x20high-risk\x20writes','<name>','db-id','Parent\x20menu\x20id','Force\x20non-interactive\x20mode\x20(CI)','target','type','remote','title','448776dVxFom','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','expectParentId','menuIds','app','Schemas','Environment','code','1913523uMFcYX','parent-id','sql','sqlcode','Asynchronous\x20task\x20ID','Dataset\x20code','file','expectedCount','format','Record\x20ID','Title','operation-type','taskId','Force\x20overwrite','1019627AVYiIa','operation','nonInteractive','12bEgnVG','Menu\x20sort\x20value','project','Code\x20filter','<code>','help','Skip\x20import\x20generation','verbose','map','sqlName','Expected\x20current\x20menu\x20path','Config\x20value','page','Apply\x20to\x20all','name','output','env','Watch\x20mode','Target\x20path','SQL\x20name','Read\x20value\x20from\x20stdin','skip-imports','<expr>','Output\x20format','Operation\x20type','watch','stdin','boolean','reveal','fromEnv','Verbose\x20output','keyword','24OwmJBy','65779OGOtoK','Keyword\x20filter','Clear','Page\x20size','4145980zMyQOU','sort','dbid','sqlname','Enable\x20BFF\x20save','Function\x20node','force','datasetcode','yes','Confirm\x20destructive\x20action','params'];a214_0x5426=function(){return _0x1cb119;};return a214_0x5426();}export const GLOBAL_FLAGS=[{'name':a214_0x55a419(0x245),'meowKey':a214_0x55a419(0x245),'type':'string','description':'Override\x20appcode','hint':a214_0x55a419(0x1fb)},{'name':a214_0x55a419(0x263),'meowKey':a214_0x55a419(0x263),'type':a214_0x55a419(0x22f),'description':'Select\x20app\x20profile\x20by\x20name','hint':a214_0x55a419(0x257)},{'name':'env','meowKey':a214_0x55a419(0x207),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x265),'hint':'production\x20|\x20daily'},{'name':a214_0x55a419(0x26f),'meowKey':'format','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20e),'hint':a214_0x55a419(0x22d)},{'name':'jq','meowKey':'jq','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x260),'hint':a214_0x55a419(0x20d)},{'name':'dry-run','meowKey':'dryRun','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x254)},{'name':'yes','meowKey':'yes','type':'boolean','description':a214_0x55a419(0x256)},{'name':'non-interactive','meowKey':a214_0x55a419(0x1f6),'type':'boolean','description':a214_0x55a419(0x25a)},{'name':'global','meowKey':'global','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x255)},{'name':a214_0x55a419(0x1f9),'meowKey':'project','type':'boolean','description':a214_0x55a419(0x234)},{'name':'ci','meowKey':'ci','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x247),'hidden':!![]},{'name':a214_0x55a419(0x1fc),'meowKey':'help','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x242)},{'name':a214_0x55a419(0x205),'meowKey':'name','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x248),'hidden':!![]},{'name':'title','meowKey':a214_0x55a419(0x25e),'type':'string','description':a214_0x55a419(0x271),'hidden':!![]},{'name':a214_0x55a419(0x23e),'meowKey':a214_0x55a419(0x23e),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x21a),'hidden':!![]},{'name':a214_0x55a419(0x210),'meowKey':a214_0x55a419(0x210),'type':'boolean','description':a214_0x55a419(0x208),'hidden':!![]},{'name':a214_0x55a419(0x206),'meowKey':a214_0x55a419(0x206),'type':'string','description':a214_0x55a419(0x23f),'hidden':!![]},{'name':a214_0x55a419(0x226),'meowKey':a214_0x55a419(0x226),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24c),'hidden':!![]},{'name':a214_0x55a419(0x223),'meowKey':a214_0x55a419(0x223),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26c),'hidden':!![]},{'name':'all','meowKey':a214_0x55a419(0x243),'type':'boolean','description':a214_0x55a419(0x204),'hidden':!![]},{'name':a214_0x55a419(0x250),'meowKey':'enableBffSave','type':'boolean','description':a214_0x55a419(0x220),'hidden':!![]},{'name':'id','meowKey':'id','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x270),'hidden':!![]},{'name':a214_0x55a419(0x25c),'meowKey':a214_0x55a419(0x25c),'type':a214_0x55a419(0x22f),'description':'Type\x20filter','hidden':!![]},{'name':a214_0x55a419(0x26d),'meowKey':a214_0x55a419(0x26d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x24f),'hidden':!![]},{'name':a214_0x55a419(0x26a),'meowKey':a214_0x55a419(0x26a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x233),'hidden':!![]},{'name':a214_0x55a419(0x22b),'meowKey':a214_0x55a419(0x200),'type':a214_0x55a419(0x22f),'description':'SQL\x20name','hidden':!![]},{'name':a214_0x55a419(0x21f),'meowKey':a214_0x55a419(0x21f),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20a),'hidden':!![]},{'name':a214_0x55a419(0x258),'meowKey':'dbId','type':a214_0x55a419(0x22f),'description':'DB\x20ID','hidden':!![]},{'name':a214_0x55a419(0x21e),'meowKey':a214_0x55a419(0x21e),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x232),'hidden':!![]},{'name':a214_0x55a419(0x22a),'meowKey':'description','type':a214_0x55a419(0x22f),'description':'Description','hidden':!![]},{'name':a214_0x55a419(0x228),'meowKey':a214_0x55a419(0x237),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x249),'hidden':!![]},{'name':a214_0x55a419(0x203),'meowKey':a214_0x55a419(0x203),'type':'string','description':a214_0x55a419(0x23a),'hidden':!![]},{'name':a214_0x55a419(0x24a),'meowKey':a214_0x55a419(0x24a),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x21b),'hidden':!![]},{'name':a214_0x55a419(0x216),'meowKey':a214_0x55a419(0x216),'type':'string','description':a214_0x55a419(0x219),'hidden':!![]},{'name':a214_0x55a419(0x266),'meowKey':'code','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1fa),'hidden':!![]},{'name':a214_0x55a419(0x269),'meowKey':a214_0x55a419(0x269),'type':a214_0x55a419(0x22f),'description':'SQL\x20string','hidden':!![]},{'name':a214_0x55a419(0x231),'meowKey':'schemas','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x264),'hidden':!![]},{'name':a214_0x55a419(0x1f5),'meowKey':a214_0x55a419(0x1f5),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x25b),'meowKey':a214_0x55a419(0x25b),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x209),'hidden':!![]},{'name':a214_0x55a419(0x20c),'meowKey':'skipImports','type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1fd),'hidden':!![]},{'name':a214_0x55a419(0x24d),'meowKey':a214_0x55a419(0x24d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x251),'hidden':!![]},{'name':'value','meowKey':'value','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x202),'hidden':!![]},{'name':a214_0x55a419(0x23b),'meowKey':'tags','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x238),'hidden':!![]},{'name':a214_0x55a419(0x211),'meowKey':a214_0x55a419(0x211),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x20b),'hidden':!![]},{'name':'from-env','meowKey':a214_0x55a419(0x214),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x229),'hidden':!![]},{'name':a214_0x55a419(0x213),'meowKey':a214_0x55a419(0x213),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a214_0x55a419(0x222),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x1f3),'hidden':!![]},{'name':a214_0x55a419(0x23d),'meowKey':a214_0x55a419(0x23d),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x225),'hidden':!![]},{'name':a214_0x55a419(0x25d),'meowKey':a214_0x55a419(0x25d),'type':a214_0x55a419(0x212),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a214_0x55a419(0x1fe),'type':a214_0x55a419(0x212),'description':a214_0x55a419(0x215),'hidden':!![]},{'name':'expected-count','meowKey':a214_0x55a419(0x26e),'type':'string','description':a214_0x55a419(0x246),'hidden':!![]},{'name':a214_0x55a419(0x22c),'meowKey':a214_0x55a419(0x22c),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a214_0x55a419(0x268),'meowKey':a214_0x55a419(0x230),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x259),'hidden':!![]},{'name':'sort','meowKey':a214_0x55a419(0x21d),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x1f8),'hidden':!![]},{'name':'expect-parent-id','meowKey':a214_0x55a419(0x261),'type':a214_0x55a419(0x22f),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x201),'hidden':!![]},{'name':a214_0x55a419(0x24b),'meowKey':'expectedChildrenCount','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x23c),'hidden':!![]},{'name':'menu-ids','meowKey':a214_0x55a419(0x262),'type':a214_0x55a419(0x22f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a214_0x55a419(0x273),'type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x26b),'hidden':!![]},{'name':a214_0x55a419(0x272),'meowKey':'operationType','type':a214_0x55a419(0x22f),'description':a214_0x55a419(0x20f),'hidden':!![]},{'name':a214_0x55a419(0x227),'meowKey':a214_0x55a419(0x239),'type':'string','description':a214_0x55a419(0x221),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a214_0x55a419(0x245),'app','env',a214_0x55a419(0x26f),'jq',a214_0x55a419(0x236),a214_0x55a419(0x224),'non-interactive','ci']);export function buildMeowFlags(){const _0x255389=a214_0x55a419;return Object['fromEntries'](GLOBAL_FLAGS[_0x255389(0x1ff)](_0x40b72b=>[_0x40b72b['meowKey'],{'type':_0x40b72b[_0x255389(0x25c)]}]));}
@@ -1 +1 @@
1
- const a207_0x3f8e81=a207_0x13b6;function a207_0x13b6(_0xec3587,_0x3cc591){_0xec3587=_0xec3587-0x139;const _0x5ed4f6=a207_0x5ed4();let _0x13b67a=_0x5ed4f6[_0xec3587];return _0x13b67a;}function a207_0x5ed4(){const _0x179bd8=['970128FJCXCu','14253970xbXfro','776yHwOgh','4602608pEKBvE','13206SuSlXL','11970396UBvzmu','en-US','1NYFbZR','compress','high-risk-write','14wCOtsH','6ZmkOLT','2218562mcIxlP','11Jtzyns','710755FLltsw','260KPhFBc'];a207_0x5ed4=function(){return _0x179bd8;};return a207_0x5ed4();}(function(_0x21f3ae,_0x5b9b5f){const _0x32be6a=a207_0x13b6,_0x1b0aed=_0x21f3ae();while(!![]){try{const _0x287dba=-parseInt(_0x32be6a(0x13d))/0x1*(parseInt(_0x32be6a(0x142))/0x2)+parseInt(_0x32be6a(0x13a))/0x3*(-parseInt(_0x32be6a(0x148))/0x4)+-parseInt(_0x32be6a(0x144))/0x5*(parseInt(_0x32be6a(0x141))/0x6)+-parseInt(_0x32be6a(0x140))/0x7*(-parseInt(_0x32be6a(0x139))/0x8)+-parseInt(_0x32be6a(0x13b))/0x9+-parseInt(_0x32be6a(0x147))/0xa*(-parseInt(_0x32be6a(0x143))/0xb)+-parseInt(_0x32be6a(0x146))/0xc*(-parseInt(_0x32be6a(0x145))/0xd);if(_0x287dba===_0x5b9b5f)break;else _0x1b0aed['push'](_0x1b0aed['shift']());}catch(_0x4fbed8){_0x1b0aed['push'](_0x1b0aed['shift']());}}}(a207_0x5ed4,0xb8ed9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x3f8e81(0x13e),'locale':a207_0x3f8e81(0x13c),'riskLevel':a207_0x3f8e81(0x13f),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x3f8e81(0x13e);
1
+ const a215_0x25c5ed=a215_0x5605;(function(_0x4a2b07,_0x1c0b05){const _0x49e66c=a215_0x5605,_0x3a173a=_0x4a2b07();while(!![]){try{const _0xf936cc=parseInt(_0x49e66c(0x126))/0x1+-parseInt(_0x49e66c(0x128))/0x2*(-parseInt(_0x49e66c(0x123))/0x3)+parseInt(_0x49e66c(0x12a))/0x4+parseInt(_0x49e66c(0x129))/0x5+parseInt(_0x49e66c(0x120))/0x6+-parseInt(_0x49e66c(0x125))/0x7+parseInt(_0x49e66c(0x124))/0x8*(-parseInt(_0x49e66c(0x121))/0x9);if(_0xf936cc===_0x1c0b05)break;else _0x3a173a['push'](_0x3a173a['shift']());}catch(_0x51a29a){_0x3a173a['push'](_0x3a173a['shift']());}}}(a215_0x2854,0x60ed1));function a215_0x5605(_0x3764a2,_0x4564fc){_0x3764a2=_0x3764a2-0x120;const _0x285431=a215_0x2854();let _0x5605d9=_0x285431[_0x3764a2];return _0x5605d9;}import{DEFAULT_API_DIR}from'../constant/paths.js';function a215_0x2854(){const _0x32c46a=['83299UYWCKv','compress','359208pxKyId','3833060Smpirl','601808tJDklF','3180012WuTRMB','72TNumUl','write','3aakZND','1005344LySgze','2153312lTgzcz'];a215_0x2854=function(){return _0x32c46a;};return a215_0x2854();}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a215_0x25c5ed(0x127),'locale':'en-US','riskLevel':a215_0x25c5ed(0x122),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a215_0x25c5ed(0x127);
@@ -1 +1 @@
1
- const a208_0x4b4262=a208_0xf135;(function(_0x214949,_0x1e6487){const _0x5364bb=a208_0xf135,_0x4924c4=_0x214949();while(!![]){try{const _0x13f178=-parseInt(_0x5364bb(0x1d9))/0x1+parseInt(_0x5364bb(0x1cb))/0x2*(-parseInt(_0x5364bb(0x1d1))/0x3)+-parseInt(_0x5364bb(0x1d8))/0x4*(parseInt(_0x5364bb(0x1c9))/0x5)+parseInt(_0x5364bb(0x1d0))/0x6*(-parseInt(_0x5364bb(0x1d6))/0x7)+-parseInt(_0x5364bb(0x1ca))/0x8*(-parseInt(_0x5364bb(0x1dd))/0x9)+parseInt(_0x5364bb(0x1de))/0xa*(-parseInt(_0x5364bb(0x1ce))/0xb)+parseInt(_0x5364bb(0x1d2))/0xc*(parseInt(_0x5364bb(0x1d3))/0xd);if(_0x13f178===_0x1e6487)break;else _0x4924c4['push'](_0x4924c4['shift']());}catch(_0x42f781){_0x4924c4['push'](_0x4924c4['shift']());}}}(a208_0x51aa,0x8fe4e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a208_0x51aa(){const _0x755987=['/app/','runtimeDomain','https://api.lovrabet.com','531OXixHO','470990aultYe','https://runtime.lovrabet.com','trim','/web-app/app/','2535015oepHIJ','57032yNPUFd','46QHtfWv','apiDomain','https://user.lovrabet.com','77AnkOQz','https://daily.lovrabet.com','984PWVjaZ','39429EwcEgF','13476HbwmxV','30979wvfExz','userDomain','https://daily-runtime.lovrabet.com','41909EiykDN','https://user-daily.lovrabet.com','4JiplaG','386477cakXLA'];a208_0x51aa=function(){return _0x755987;};return a208_0x51aa();}export function initDomains(_0x12369d){const _0x66ada9=a208_0xf135;customApiDomain=_0x12369d?.[_0x66ada9(0x1cc)],customUserDomain=_0x12369d?.[_0x66ada9(0x1d4)],customRuntimeDomain=_0x12369d?.[_0x66ada9(0x1db)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x4b4262(0x1cd):a208_0x4b4262(0x1d7));function a208_0xf135(_0x1b6994,_0x581462){_0x1b6994=_0x1b6994-0x1c7;const _0x51aa75=a208_0x51aa();let _0xf13579=_0x51aa75[_0x1b6994];return _0xf13579;}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x4b4262(0x1dc):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a208_0x4b4262(0x1df):a208_0x4b4262(0x1d5));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a208_0x4b4262(0x1cf);export const getAppBaseUrl=_0x1e70c1=>{const _0x3eaddc=a208_0x4b4262,_0x1e6b27=encodeURIComponent(_0x1e70c1[_0x3eaddc(0x1c7)]());return isProduction(getEnv())?getAppDomain()+_0x3eaddc(0x1da)+_0x1e6b27:getAppDomain()+_0x3eaddc(0x1c8)+_0x1e6b27;};
1
+ const a216_0x1d4e75=a216_0x3276;(function(_0x27e564,_0x129904){const _0x311bed=a216_0x3276,_0x1cd044=_0x27e564();while(!![]){try{const _0x187e5a=parseInt(_0x311bed(0x100))/0x1*(-parseInt(_0x311bed(0x108))/0x2)+parseInt(_0x311bed(0x103))/0x3+parseInt(_0x311bed(0x111))/0x4+parseInt(_0x311bed(0x10c))/0x5*(-parseInt(_0x311bed(0x10d))/0x6)+-parseInt(_0x311bed(0x113))/0x7*(parseInt(_0x311bed(0x102))/0x8)+parseInt(_0x311bed(0xfe))/0x9*(-parseInt(_0x311bed(0x109))/0xa)+parseInt(_0x311bed(0x112))/0xb;if(_0x187e5a===_0x129904)break;else _0x1cd044['push'](_0x1cd044['shift']());}catch(_0x330938){_0x1cd044['push'](_0x1cd044['shift']());}}}(a216_0x4275,0x8e920));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a216_0x3276(_0x2c19d4,_0xcc789e){_0x2c19d4=_0x2c19d4-0xfe;const _0x427503=a216_0x4275();let _0x32763d=_0x427503[_0x2c19d4];return _0x32763d;}export function initDomains(_0x237cbf){const _0x1f5041=a216_0x3276;customApiDomain=_0x237cbf?.[_0x1f5041(0x104)],customUserDomain=_0x237cbf?.[_0x1f5041(0x107)],customRuntimeDomain=_0x237cbf?.[_0x1f5041(0x106)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a216_0x1d4e75(0x10a):a216_0x1d4e75(0x10e));function a216_0x4275(){const _0x4fd74a=['465720gwbYbe','9825651jsrGvd','84UXMDdk','2304REIvor','https://app.lovrabet.com','16XqyGoY','/app/','411656gXXOJx','3034872byQatP','apiDomain','https://daily.lovrabet.com','runtimeDomain','userDomain','19636BGnwlK','1230fAlayT','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','455lslpMM','41622aTFALL','https://user-daily.lovrabet.com','https://runtime.lovrabet.com','trim'];a216_0x4275=function(){return _0x4fd74a;};return a216_0x4275();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a216_0x1d4e75(0x10f):a216_0x1d4e75(0x10b));export const getAppDomain=()=>isProduction(getEnv())?a216_0x1d4e75(0xff):a216_0x1d4e75(0x105);export const getAppBaseUrl=_0xa8341b=>{const _0x1e5e6f=a216_0x1d4e75,_0x227bd0=encodeURIComponent(_0xa8341b[_0x1e5e6f(0x110)]());return isProduction(getEnv())?getAppDomain()+_0x1e5e6f(0x101)+_0x227bd0:getAppDomain()+'/web-app/app/'+_0x227bd0;};
@@ -1 +1 @@
1
- function a209_0x3bd4(){const _0x2bc075=['4WxddSa','dev','536aMYFcj','production','daily','4501756RZBUJP','6730932ipMRVE','online','10972056GcMnjN','10UzBpMl','4175712aqvuxZ','63095kjsQji','48391875NDcLde','848143rahMBh'];a209_0x3bd4=function(){return _0x2bc075;};return a209_0x3bd4();}function a209_0xbefe(_0x12617f,_0x5e176a){_0x12617f=_0x12617f-0x102;const _0x3bd4bc=a209_0x3bd4();let _0xbefe48=_0x3bd4bc[_0x12617f];return _0xbefe48;}const a209_0x356b4e=a209_0xbefe;(function(_0xbe622,_0xfd30e1){const _0x15b395=a209_0xbefe,_0x5a6045=_0xbe622();while(!![]){try{const _0x23aaac=-parseInt(_0x15b395(0x107))/0x1*(parseInt(_0x15b395(0x108))/0x2)+-parseInt(_0x15b395(0x104))/0x3+parseInt(_0x15b395(0x10a))/0x4*(-parseInt(_0x15b395(0x105))/0x5)+parseInt(_0x15b395(0x10e))/0x6+parseInt(_0x15b395(0x10d))/0x7+-parseInt(_0x15b395(0x102))/0x8+-parseInt(_0x15b395(0x106))/0x9*(-parseInt(_0x15b395(0x103))/0xa);if(_0x23aaac===_0xfd30e1)break;else _0x5a6045['push'](_0x5a6045['shift']());}catch(_0x17d450){_0x5a6045['push'](_0x5a6045['shift']());}}}(a209_0x3bd4,0xf1fba));export const RABETBASE_ENV_VALUES=[a209_0x356b4e(0x10b),a209_0x356b4e(0x10c)];export function normalizeEnv(_0x43d223){const _0x31cc16=a209_0x356b4e;return _0x43d223===_0x31cc16(0x10f)?_0x31cc16(0x10b):_0x43d223;}export function isProduction(_0x2b8b62){return normalizeEnv(_0x2b8b62)==='production';}export function isDaily(_0x30554f){const _0x2c4139=a209_0x356b4e;return normalizeEnv(_0x30554f)===_0x2c4139(0x10c);}export function isDev(_0x42f39d){const _0x5d2258=a209_0x356b4e,_0x54c4c2=normalizeEnv(_0x42f39d);return _0x54c4c2==='development'||_0x54c4c2===_0x5d2258(0x109);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x3189c1){env=normalizeEnv(_0x3189c1);}
1
+ const a217_0x5b6c91=a217_0x2e9b;function a217_0x597f(){const _0x2d1141=['375884EJldtF','678363MKPpHV','development','124724PEenax','6JzuHwg','209149YfdLNO','18yJEZpl','734810LLIibq','dev','652329ylHQXS','production','daily','1797184DOHxSf'];a217_0x597f=function(){return _0x2d1141;};return a217_0x597f();}(function(_0x36709d,_0x173298){const _0x344428=a217_0x2e9b,_0x1e16dd=_0x36709d();while(!![]){try{const _0x2a9a23=-parseInt(_0x344428(0x8c))/0x1+-parseInt(_0x344428(0x94))/0x2+-parseInt(_0x344428(0x90))/0x3+parseInt(_0x344428(0x97))/0x4+parseInt(_0x344428(0x8e))/0x5+-parseInt(_0x344428(0x8b))/0x6*(-parseInt(_0x344428(0x95))/0x7)+parseInt(_0x344428(0x93))/0x8*(parseInt(_0x344428(0x8d))/0x9);if(_0x2a9a23===_0x173298)break;else _0x1e16dd['push'](_0x1e16dd['shift']());}catch(_0x2ff1de){_0x1e16dd['push'](_0x1e16dd['shift']());}}}(a217_0x597f,0x1acf6));export const RABETBASE_ENV_VALUES=[a217_0x5b6c91(0x91),a217_0x5b6c91(0x92)];function a217_0x2e9b(_0x96bdb5,_0x36ecbe){_0x96bdb5=_0x96bdb5-0x8b;const _0x597fc8=a217_0x597f();let _0x2e9b6c=_0x597fc8[_0x96bdb5];return _0x2e9b6c;}export function normalizeEnv(_0x5184dd){const _0x48696c=a217_0x5b6c91;return _0x5184dd==='online'?_0x48696c(0x91):_0x5184dd;}export function isProduction(_0x19778d){const _0x54ff33=a217_0x5b6c91;return normalizeEnv(_0x19778d)===_0x54ff33(0x91);}export function isDaily(_0x161b9c){return normalizeEnv(_0x161b9c)==='daily';}export function isDev(_0xa1e9db){const _0x553c2d=a217_0x5b6c91,_0xe4a187=normalizeEnv(_0xa1e9db);return _0xe4a187===_0x553c2d(0x96)||_0xe4a187===_0x553c2d(0x8f);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a217_0x5b6c91(0x91));export function getEnv(){return env;}export function initEnv(_0x45f19a){env=normalizeEnv(_0x45f19a);}
@@ -1 +1 @@
1
- const a210_0x35db91=a210_0x96f2;function a210_0x96f2(_0x4af2d1,_0x5ab0f3){_0x4af2d1=_0x4af2d1-0x114;const _0x513e18=a210_0x513e();let _0x96f286=_0x513e18[_0x4af2d1];return _0x96f286;}function a210_0x513e(){const _0x184bdc=['8DWFGkL','4674PloZBG','compress','4tRcmmw','18qpApDt','2593602YktOgG','58902szxUoX','json','1379357vtEjcU','432751QyRkQj','1013700nPQrpK','252aAJHkI','4915285CLiNSX','pretty','20iKYqjQ'];a210_0x513e=function(){return _0x184bdc;};return a210_0x513e();}(function(_0x1e020a,_0x4c9ba2){const _0x391335=a210_0x96f2,_0x1d109f=_0x1e020a();while(!![]){try{const _0x54340d=-parseInt(_0x391335(0x116))/0x1+-parseInt(_0x391335(0x114))/0x2*(parseInt(_0x391335(0x120))/0x3)+-parseInt(_0x391335(0x122))/0x4*(-parseInt(_0x391335(0x11c))/0x5)+-parseInt(_0x391335(0x11a))/0x6+-parseInt(_0x391335(0x118))/0x7*(parseInt(_0x391335(0x11f))/0x8)+parseInt(_0x391335(0x115))/0x9*(-parseInt(_0x391335(0x11e))/0xa)+parseInt(_0x391335(0x119))/0xb*(parseInt(_0x391335(0x11b))/0xc);if(_0x54340d===_0x4c9ba2)break;else _0x1d109f['push'](_0x1d109f['shift']());}catch(_0x3c442d){_0x1d109f['push'](_0x1d109f['shift']());}}}(a210_0x513e,0xc1d51));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a210_0x35db91(0x117),a210_0x35db91(0x11d),a210_0x35db91(0x121)];
1
+ function a218_0x32f2(){const _0x1e8ea5=['json','7418412LFVVwB','1564752wzBVvQ','63CehxDv','10HZlpcd','8109222dPRoTt','45900760efamgT','2716JnAZoM','5KmfCDn','273037ZZraXi','978344ykfLLD'];a218_0x32f2=function(){return _0x1e8ea5;};return a218_0x32f2();}const a218_0x2ecf64=a218_0x5b6b;function a218_0x5b6b(_0x111c15,_0x23ec48){_0x111c15=_0x111c15-0x66;const _0x32f2b8=a218_0x32f2();let _0x5b6bc7=_0x32f2b8[_0x111c15];return _0x5b6bc7;}(function(_0x1c6ef8,_0xe9e805){const _0x442b3a=a218_0x5b6b,_0x3792b8=_0x1c6ef8();while(!![]){try{const _0x128e79=parseInt(_0x442b3a(0x6f))/0x1*(-parseInt(_0x442b3a(0x6a))/0x2)+-parseInt(_0x442b3a(0x69))/0x3*(parseInt(_0x442b3a(0x6d))/0x4)+parseInt(_0x442b3a(0x6e))/0x5*(-parseInt(_0x442b3a(0x6b))/0x6)+-parseInt(_0x442b3a(0x68))/0x7+-parseInt(_0x442b3a(0x70))/0x8+-parseInt(_0x442b3a(0x67))/0x9+parseInt(_0x442b3a(0x6c))/0xa;if(_0x128e79===_0xe9e805)break;else _0x3792b8['push'](_0x3792b8['shift']());}catch(_0x154dd7){_0x3792b8['push'](_0x3792b8['shift']());}}}(a218_0x32f2,0xa8366));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a218_0x2ecf64(0x66),'pretty','compress'];
@@ -1 +1 @@
1
- function a211_0xaa05(_0x32ca32,_0x171e18){_0x32ca32=_0x32ca32-0x182;const _0x4fa6a6=a211_0x4fa6();let _0xaa050e=_0x4fa6a6[_0x32ca32];return _0xaa050e;}(function(_0x5d6c79,_0x3c89f4){const _0x1b8988=a211_0xaa05,_0x8bf578=_0x5d6c79();while(!![]){try{const _0xea5f3b=parseInt(_0x1b8988(0x186))/0x1*(-parseInt(_0x1b8988(0x188))/0x2)+-parseInt(_0x1b8988(0x182))/0x3+parseInt(_0x1b8988(0x18a))/0x4+parseInt(_0x1b8988(0x184))/0x5+parseInt(_0x1b8988(0x183))/0x6*(-parseInt(_0x1b8988(0x187))/0x7)+-parseInt(_0x1b8988(0x18b))/0x8*(-parseInt(_0x1b8988(0x185))/0x9)+-parseInt(_0x1b8988(0x189))/0xa;if(_0xea5f3b===_0x3c89f4)break;else _0x8bf578['push'](_0x8bf578['shift']());}catch(_0x1f3559){_0x8bf578['push'](_0x8bf578['shift']());}}}(a211_0x4fa6,0xe95b6));export const DEFAULT_API_DIR='./src/api';function a211_0x4fa6(){const _0x19794b=['66843ENavbO','8HmIEBZ','7mHLljp','4538shQskK','12812850UXSsJG','7337944RDKuhp','456ojwkvn','2058174uETuPi','6830754kCFUBV','9109795WjOhmW'];a211_0x4fa6=function(){return _0x19794b;};return a211_0x4fa6();}
1
+ const a219_0x22651c=a219_0x9209;(function(_0x3f37e7,_0x2ebc7c){const _0x3d1a3f=a219_0x9209,_0x3e8986=_0x3f37e7();while(!![]){try{const _0x37b1d6=parseInt(_0x3d1a3f(0xf6))/0x1*(parseInt(_0x3d1a3f(0xf5))/0x2)+parseInt(_0x3d1a3f(0xfb))/0x3*(-parseInt(_0x3d1a3f(0xf8))/0x4)+parseInt(_0x3d1a3f(0xf7))/0x5+-parseInt(_0x3d1a3f(0xf2))/0x6+parseInt(_0x3d1a3f(0xf3))/0x7+parseInt(_0x3d1a3f(0xfa))/0x8+-parseInt(_0x3d1a3f(0xf4))/0x9*(parseInt(_0x3d1a3f(0xfc))/0xa);if(_0x37b1d6===_0x2ebc7c)break;else _0x3e8986['push'](_0x3e8986['shift']());}catch(_0x523814){_0x3e8986['push'](_0x3e8986['shift']());}}}(a219_0x5adb,0x8c44b));export const DEFAULT_API_DIR=a219_0x22651c(0xf9);function a219_0x9209(_0x54d38a,_0x43c58a){_0x54d38a=_0x54d38a-0xf2;const _0x5adbfc=a219_0x5adb();let _0x920974=_0x5adbfc[_0x54d38a];return _0x920974;}function a219_0x5adb(){const _0x4614c7=['1086859Yudhzq','2632010jIInvK','1380wEdenn','./src/api','4550496CrtJBc','6882BZqbLv','10jDdHca','3735636kREEZP','4750725yOdYQw','7849557apEAzA','2iBwKeu'];a219_0x5adb=function(){return _0x4614c7;};return a219_0x5adb();}
@@ -1 +1 @@
1
- const a212_0x4cdf9a=a212_0x3480;function a212_0x3480(_0xd9aa17,_0x3066e2){_0xd9aa17=_0xd9aa17-0xd7;const _0x42031e=a212_0x4203();let _0x3480c6=_0x42031e[_0xd9aa17];return _0x3480c6;}function a212_0x4203(){const _0xecfe73=['2915151HdrvJR','380816FpHZRh','4879284TmKJgV','745bmyMTj','603eWfRxH','16JVlbCy','8787702qBdZQJ','read','1532PrYMig','high-risk-write','153910UqXryg','382205hqRknb'];a212_0x4203=function(){return _0xecfe73;};return a212_0x4203();}(function(_0x493363,_0x3a380d){const _0x2eaf5a=a212_0x3480,_0x4f54be=_0x493363();while(!![]){try{const _0x3a55cd=parseInt(_0x2eaf5a(0xd8))/0x1*(parseInt(_0x2eaf5a(0xdd))/0x2)+-parseInt(_0x2eaf5a(0xe1))/0x3+parseInt(_0x2eaf5a(0xda))/0x4*(-parseInt(_0x2eaf5a(0xe0))/0x5)+-parseInt(_0x2eaf5a(0xd7))/0x6+parseInt(_0x2eaf5a(0xdb))/0x7+parseInt(_0x2eaf5a(0xe2))/0x8+parseInt(_0x2eaf5a(0xd9))/0x9*(parseInt(_0x2eaf5a(0xdf))/0xa);if(_0x3a55cd===_0x3a380d)break;else _0x4f54be['push'](_0x4f54be['shift']());}catch(_0x342679){_0x4f54be['push'](_0x4f54be['shift']());}}}(a212_0x4203,0xc6c50));export const RISK_LEVEL_VALUES=[a212_0x4cdf9a(0xdc),'write',a212_0x4cdf9a(0xde)];
1
+ const a220_0x3d6da5=a220_0xeb4e;function a220_0x4484(){const _0x3ad50c=['24eaUOuL','3063072DiJpwq','2684832wrxMNR','723556paXDov','5912613bNMukV','7tbAuib','570vhvhZE','1258378hluZvo','10pXucac','high-risk-write','48WhMXUC','4074YVtLQK','read','132666lycZOj'];a220_0x4484=function(){return _0x3ad50c;};return a220_0x4484();}function a220_0xeb4e(_0xd83a15,_0x28b21b){_0xd83a15=_0xd83a15-0xd9;const _0x4484f6=a220_0x4484();let _0xeb4e7f=_0x4484f6[_0xd83a15];return _0xeb4e7f;}(function(_0x351f79,_0x3af4b4){const _0x1dc6a9=a220_0xeb4e,_0x171d16=_0x351f79();while(!![]){try{const _0x47df35=-parseInt(_0x1dc6a9(0xe4))/0x1+-parseInt(_0x1dc6a9(0xe0))/0x2*(-parseInt(_0x1dc6a9(0xe1))/0x3)+-parseInt(_0x1dc6a9(0xe2))/0x4+-parseInt(_0x1dc6a9(0xd9))/0x5*(parseInt(_0x1dc6a9(0xde))/0x6)+-parseInt(_0x1dc6a9(0xe6))/0x7*(-parseInt(_0x1dc6a9(0xe3))/0x8)+-parseInt(_0x1dc6a9(0xe5))/0x9*(-parseInt(_0x1dc6a9(0xdb))/0xa)+parseInt(_0x1dc6a9(0xda))/0xb*(parseInt(_0x1dc6a9(0xdd))/0xc);if(_0x47df35===_0x3af4b4)break;else _0x171d16['push'](_0x171d16['shift']());}catch(_0x5d9472){_0x171d16['push'](_0x171d16['shift']());}}}(a220_0x4484,0x65187));export const RISK_LEVEL_VALUES=[a220_0x3d6da5(0xdf),'write',a220_0x3d6da5(0xdc)];