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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) 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/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.d.ts +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-restore.d.ts +107 -0
  67. package/lib/commands/dataset/field-restore.js +1 -0
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  82. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/table-diff-shared.js +1 -1
  98. package/lib/commands/db/tables.js +1 -1
  99. package/lib/commands/db/test.js +1 -1
  100. package/lib/commands/db/update.js +1 -1
  101. package/lib/commands/deployment/auto-sync.d.ts +28 -0
  102. package/lib/commands/deployment/auto-sync.js +1 -0
  103. package/lib/commands/deployment/index.d.ts +2 -0
  104. package/lib/commands/deployment/index.js +1 -0
  105. package/lib/commands/deployment/sync.d.ts +2 -0
  106. package/lib/commands/deployment/sync.js +1 -0
  107. package/lib/commands/doctor.js +1 -1
  108. package/lib/commands/file/index.js +1 -1
  109. package/lib/commands/issue/index.js +1 -1
  110. package/lib/commands/issue/nudge.js +1 -1
  111. package/lib/commands/issue/report.js +1 -1
  112. package/lib/commands/issue/shared.js +1 -1
  113. package/lib/commands/kb/create.js +1 -1
  114. package/lib/commands/kb/delete.js +1 -1
  115. package/lib/commands/kb/detail.js +1 -1
  116. package/lib/commands/kb/index.js +1 -1
  117. package/lib/commands/kb/list.js +1 -1
  118. package/lib/commands/kb/search.js +1 -1
  119. package/lib/commands/kb/shared.js +1 -1
  120. package/lib/commands/kb/update.js +1 -1
  121. package/lib/commands/logs/index.js +1 -1
  122. package/lib/commands/menu/asset-update.js +1 -1
  123. package/lib/commands/menu/delete.js +1 -1
  124. package/lib/commands/menu/external-link-create.js +1 -1
  125. package/lib/commands/menu/external-link-update.js +1 -1
  126. package/lib/commands/menu/group-create.js +1 -1
  127. package/lib/commands/menu/group-update.js +1 -1
  128. package/lib/commands/menu/index.js +1 -1
  129. package/lib/commands/menu/list.js +1 -1
  130. package/lib/commands/menu/move.js +1 -1
  131. package/lib/commands/menu/regroup-start.js +1 -1
  132. package/lib/commands/menu/rename.js +1 -1
  133. package/lib/commands/menu/shared/compare-table.js +1 -1
  134. package/lib/commands/menu/shared/delete-plan.js +1 -1
  135. package/lib/commands/menu/shared/facts.js +1 -1
  136. package/lib/commands/menu/shared/index.js +1 -1
  137. package/lib/commands/menu/shared/inquirer.js +1 -1
  138. package/lib/commands/menu/shared/local-pages.js +1 -1
  139. package/lib/commands/menu/shared/logic.js +1 -1
  140. package/lib/commands/menu/shared/mutations.js +1 -1
  141. package/lib/commands/menu/shared/service.js +1 -1
  142. package/lib/commands/menu/shared/sync-core.js +1 -1
  143. package/lib/commands/menu/shared/update-core.js +1 -1
  144. package/lib/commands/menu/shared/valid-url.js +1 -1
  145. package/lib/commands/menu/sync.js +1 -1
  146. package/lib/commands/menu/visibility-update.js +1 -1
  147. package/lib/commands/notification/config-create.js +1 -1
  148. package/lib/commands/notification/config-delete.js +1 -1
  149. package/lib/commands/notification/config-list.js +1 -1
  150. package/lib/commands/notification/config-update.js +1 -1
  151. package/lib/commands/notification/index.js +1 -1
  152. package/lib/commands/notification/shared.js +1 -1
  153. package/lib/commands/ocr/index.js +1 -1
  154. package/lib/commands/page/create.js +1 -1
  155. package/lib/commands/page/custom/detail.js +1 -1
  156. package/lib/commands/page/custom/list.js +1 -1
  157. package/lib/commands/page/custom/publish.js +1 -1
  158. package/lib/commands/page/custom/shared.js +1 -1
  159. package/lib/commands/page/custom/syntax.js +1 -1
  160. package/lib/commands/page/custom/template.js +1 -1
  161. package/lib/commands/page/custom/update.js +1 -1
  162. package/lib/commands/page/data-list-status.js +1 -1
  163. package/lib/commands/page/generate-start.js +1 -1
  164. package/lib/commands/page/generate-status.js +1 -1
  165. package/lib/commands/page/index.js +1 -1
  166. package/lib/commands/page/pull.js +1 -1
  167. package/lib/commands/page/push.js +1 -1
  168. package/lib/commands/page/relation-audit.js +1 -1
  169. package/lib/commands/page/restore.js +1 -1
  170. package/lib/commands/page/shared.js +1 -1
  171. package/lib/commands/page/sync.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.js +1 -1
  175. package/lib/commands/project/create/materialize-project-template.js +1 -1
  176. package/lib/commands/project/create/project-name.js +1 -1
  177. package/lib/commands/project/create/project-template-archive.js +1 -1
  178. package/lib/commands/project/create/project-template-path.js +1 -1
  179. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  180. package/lib/commands/project/create/use-format-code.js +1 -1
  181. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  182. package/lib/commands/project/index.js +1 -1
  183. package/lib/commands/project/upgrade.js +1 -1
  184. package/lib/commands/registry.js +1 -1
  185. package/lib/commands/role/delete.js +1 -1
  186. package/lib/commands/role/detail.js +1 -1
  187. package/lib/commands/role/index.js +1 -1
  188. package/lib/commands/role/list.js +1 -1
  189. package/lib/commands/role/shared.js +1 -1
  190. package/lib/commands/role/update.js +1 -1
  191. package/lib/commands/role/user-add.js +1 -1
  192. package/lib/commands/role/user-remove.js +1 -1
  193. package/lib/commands/role/user-resolve.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.d.ts +10 -0
  218. package/lib/config/deployment-sync.js +1 -0
  219. package/lib/config/domain-config.d.ts +1 -1
  220. package/lib/config/domain-config.js +1 -1
  221. package/lib/config/project-routing.js +1 -1
  222. package/lib/config/schema.d.ts +1 -1
  223. package/lib/config/schema.js +1 -1
  224. package/lib/constant/cdn.js +1 -1
  225. package/lib/constant/cli.js +1 -1
  226. package/lib/constant/defaults.js +1 -1
  227. package/lib/constant/domain.d.ts +2 -0
  228. package/lib/constant/domain.js +1 -1
  229. package/lib/constant/env.js +1 -1
  230. package/lib/constant/output.js +1 -1
  231. package/lib/constant/paths.js +1 -1
  232. package/lib/constant/region.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/constant/routing-profile.js +1 -1
  235. package/lib/context/app-resolver.d.ts +2 -0
  236. package/lib/context/app-resolver.js +1 -1
  237. package/lib/context/auth-resolver.js +1 -1
  238. package/lib/context/config-loader.js +1 -1
  239. package/lib/context.js +1 -1
  240. package/lib/core/alias-resolver.js +1 -1
  241. package/lib/core/api-client.d.ts +35 -16
  242. package/lib/core/api-client.js +1 -1
  243. package/lib/core/bff/config.js +1 -1
  244. package/lib/core/bff/file-system.js +1 -1
  245. package/lib/core/bff/hash.js +1 -1
  246. package/lib/core/bff/lock.js +1 -1
  247. package/lib/core/bff/utils.js +1 -1
  248. package/lib/core/db-resolver.js +1 -1
  249. package/lib/core/kb-search-client.d.ts +30 -0
  250. package/lib/core/kb-search-client.js +1 -0
  251. package/lib/core/page/file-system.js +1 -1
  252. package/lib/core/page/hash.js +1 -1
  253. package/lib/core/page/lock.js +1 -1
  254. package/lib/core/sql-index-auditor.js +1 -1
  255. package/lib/core/sql-sync/config.js +1 -1
  256. package/lib/core/sql-sync/file-system.js +1 -1
  257. package/lib/core/sql-sync/hash.js +1 -1
  258. package/lib/core/sql-sync/lock.js +1 -1
  259. package/lib/core/sql-sync/utils.js +1 -1
  260. package/lib/core/sql-validator.js +1 -1
  261. package/lib/errors.js +1 -1
  262. package/lib/framework/build-all-flags.js +1 -1
  263. package/lib/framework/error-output.js +1 -1
  264. package/lib/framework/explicit-yes.js +1 -1
  265. package/lib/framework/flags.js +1 -1
  266. package/lib/framework/help.js +1 -1
  267. package/lib/framework/index.js +1 -1
  268. package/lib/framework/output.js +1 -1
  269. package/lib/framework/response.js +1 -1
  270. package/lib/framework/runner-alias.js +1 -1
  271. package/lib/framework/runner.js +1 -1
  272. package/lib/framework/schema-export.js +1 -1
  273. package/lib/framework/types.d.ts +5 -0
  274. package/lib/framework/types.js +1 -1
  275. package/lib/generated/build-info.d.ts +4 -4
  276. package/lib/generated/build-info.js +1 -1
  277. package/lib/help.js +1 -1
  278. package/lib/postinstall.js +1 -1
  279. package/lib/runtime/confirmation.js +1 -1
  280. package/lib/runtime/event.js +1 -1
  281. package/lib/runtime/index.js +1 -1
  282. package/lib/runtime/queue.js +1 -1
  283. package/lib/runtime/resolve.js +1 -1
  284. package/lib/skills/builtin-skill.js +1 -1
  285. package/lib/skills/main.js +1 -1
  286. package/lib/skills/npx-skills-add.js +1 -1
  287. package/lib/skills/skill-presence.js +1 -1
  288. package/lib/telemetry/cli-command-trace.js +1 -1
  289. package/lib/telemetry/cli-help-trace.js +1 -1
  290. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  291. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  292. package/lib/telemetry/send-cli-trace-log.js +1 -1
  293. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  294. package/lib/utils/ai_config.js +1 -1
  295. package/lib/utils/apply-jq-filter.js +1 -1
  296. package/lib/utils/cdn-config.js +1 -1
  297. package/lib/utils/check-sdk-version.js +1 -1
  298. package/lib/utils/cli-version-check.js +1 -1
  299. package/lib/utils/cli-version-policy.js +1 -1
  300. package/lib/utils/config.js +1 -1
  301. package/lib/utils/entity-with-id.js +1 -1
  302. package/lib/utils/file-utils.js +1 -1
  303. package/lib/utils/guides-cdn.js +1 -1
  304. package/lib/utils/http-client.js +1 -1
  305. package/lib/utils/is-non-interactive.js +1 -1
  306. package/lib/utils/logger.js +1 -1
  307. package/lib/utils/params.js +1 -1
  308. package/lib/utils/platform.js +1 -1
  309. package/lib/utils/sleep.js +1 -1
  310. package/lib/utils/template-replacer.js +1 -1
  311. package/lib/utils/update-notice.js +1 -1
  312. package/lib/utils/version.js +1 -1
  313. package/lib/utils/with-active-cookie.js +1 -1
  314. package/lib/utils/write-cli-side-channel.js +1 -1
  315. package/package.json +1 -1
  316. package/skills/rabetbase/SKILL.md +12 -6
  317. package/skills/rabetbase/references/rabetbase-config.md +4 -1
  318. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  319. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  320. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  321. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  322. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  323. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  324. package/skills/rabetbase/references/rabetbase-init.md +2 -0
  325. package/skills/rabetbase/references/rabetbase-kb.md +7 -7
  326. package/skills/rabetbase.manifest.json +6 -3
@@ -1 +1 @@
1
- (function(_0xcb6cbf,_0xed26d5){const _0x5d1ecb=a200_0xafc6,_0x188bf0=_0xcb6cbf();while(!![]){try{const _0x3bb89c=-parseInt(_0x5d1ecb(0x9e))/0x1+-parseInt(_0x5d1ecb(0xa3))/0x2+-parseInt(_0x5d1ecb(0x8f))/0x3+parseInt(_0x5d1ecb(0x9d))/0x4+parseInt(_0x5d1ecb(0x95))/0x5*(parseInt(_0x5d1ecb(0x9a))/0x6)+parseInt(_0x5d1ecb(0xa0))/0x7*(-parseInt(_0x5d1ecb(0x8b))/0x8)+parseInt(_0x5d1ecb(0x96))/0x9*(parseInt(_0x5d1ecb(0x8d))/0xa);if(_0x3bb89c===_0xed26d5)break;else _0x188bf0['push'](_0x188bf0['shift']());}catch(_0x589b77){_0x188bf0['push'](_0x188bf0['shift']());}}}(a200_0x3cc1,0x74ad8));function a200_0x3cc1(){const _0x542521=['\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','12TAzaoq','set','some','2047572gXAdFd','723087bQVduo','validation','6162625SPXFhw','trim','userId','1209318rmCjPF','tenantCode','get','nickname','8PXSFNH','role','140890ehwxua','adminFlag','1506021ysLOSt','username','ADMIN','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','status','displayName','2076220izFuHq','1179XvdizE','Tenant\x20\x22','isFinite'];a200_0x3cc1=function(){return _0x542521;};return a200_0x3cc1();}function a200_0xafc6(_0x28aaa3,_0x57e2ac){_0x28aaa3=_0x28aaa3-0x8a;const _0x3cc101=a200_0x3cc1();let _0xafc630=_0x3cc101[_0x28aaa3];return _0xafc630;}import{CliErrors}from'../../errors.js';function textOrNull(_0x26a45a){const _0x653b03=a200_0xafc6,_0x40c502=_0x26a45a?.[_0x653b03(0xa1)]();return _0x40c502?_0x40c502:null;}export function projectTenantMembers(_0x5d4a97){const _0x5913a3=a200_0xafc6,_0x117e5d=new Map();for(const _0xbbc34d of _0x5d4a97){const _0x283ea8=Number(_0xbbc34d[_0x5913a3(0xa2)]);if(!Number[_0x5913a3(0x98)](_0x283ea8)||_0x283ea8<=0x0)continue;const _0x3721a3={'userId':_0x283ea8,'username':textOrNull(_0xbbc34d[_0x5913a3(0x90)]),'displayName':textOrNull(_0xbbc34d[_0x5913a3(0x8a)]),'role':_0xbbc34d[_0x5913a3(0x8e)]===!![]?'ADMIN':'MEMBER','status':textOrNull(_0xbbc34d[_0x5913a3(0x93)])},_0x39c691=_0x117e5d[_0x5913a3(0xa5)](_0x283ea8);if(!_0x39c691){_0x117e5d[_0x5913a3(0x9b)](_0x283ea8,_0x3721a3);continue;}_0x39c691[_0x5913a3(0x90)]??=_0x3721a3[_0x5913a3(0x90)],_0x39c691[_0x5913a3(0x94)]??=_0x3721a3[_0x5913a3(0x94)],_0x39c691['status']??=_0x3721a3['status'];if(_0x3721a3[_0x5913a3(0x8c)]==='ADMIN')_0x39c691[_0x5913a3(0x8c)]=_0x5913a3(0x91);}return[..._0x117e5d['values']()]['sort']((_0x8d7b34,_0xdf11e)=>_0x8d7b34['userId']-_0xdf11e['userId']);}export function assertTenantAccessible(_0x404909,_0x5a2b43){const _0x3b1ebc=a200_0xafc6;if(_0x5a2b43[_0x3b1ebc(0x9c)](_0x570630=>_0x570630[_0x3b1ebc(0xa4)]===_0x404909))return;throw CliErrors[_0x3b1ebc(0x9f)](_0x3b1ebc(0x97)+_0x404909+_0x3b1ebc(0x99),_0x3b1ebc(0x92));}
1
+ function a205_0x4b89(_0x393109,_0x4bf208){_0x393109=_0x393109-0x17d;const _0xb0db7a=a205_0xb0db();let _0x4b89a9=_0xb0db7a[_0x393109];return _0x4b89a9;}(function(_0x1ba793,_0x5672e5){const _0xaf1eb1=a205_0x4b89,_0x4e4044=_0x1ba793();while(!![]){try{const _0x12b134=parseInt(_0xaf1eb1(0x190))/0x1+parseInt(_0xaf1eb1(0x18c))/0x2+-parseInt(_0xaf1eb1(0x18d))/0x3+-parseInt(_0xaf1eb1(0x196))/0x4+-parseInt(_0xaf1eb1(0x180))/0x5*(-parseInt(_0xaf1eb1(0x186))/0x6)+parseInt(_0xaf1eb1(0x17d))/0x7+-parseInt(_0xaf1eb1(0x181))/0x8;if(_0x12b134===_0x5672e5)break;else _0x4e4044['push'](_0x4e4044['shift']());}catch(_0x3688c6){_0x4e4044['push'](_0x4e4044['shift']());}}}(a205_0xb0db,0xf1fb6));import{CliErrors}from'../../errors.js';function a205_0xb0db(){const _0x2fdbf6=['154506AMpWpl','sort','Tenant\x20\x22','ADMIN','values','MEMBER','2175106tDLpOE','3122679rVerUx','username','status','1027237AVDSZv','adminFlag','userId','some','validation','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','7539664bbRSqD','7912387ZeoEyM','get','role','255FNZgOR','5131720lUWiJw','isFinite','set','displayName','tenantCode'];a205_0xb0db=function(){return _0x2fdbf6;};return a205_0xb0db();}function textOrNull(_0x52fa4f){const _0x408007=_0x52fa4f?.['trim']();return _0x408007?_0x408007:null;}export function projectTenantMembers(_0xd8f5f0){const _0x54d863=a205_0x4b89,_0x3e461c=new Map();for(const _0x3ffc80 of _0xd8f5f0){const _0x2a402d=Number(_0x3ffc80[_0x54d863(0x192)]);if(!Number[_0x54d863(0x182)](_0x2a402d)||_0x2a402d<=0x0)continue;const _0x2b2d70={'userId':_0x2a402d,'username':textOrNull(_0x3ffc80[_0x54d863(0x18e)]),'displayName':textOrNull(_0x3ffc80['nickname']),'role':_0x3ffc80[_0x54d863(0x191)]===!![]?_0x54d863(0x189):_0x54d863(0x18b),'status':textOrNull(_0x3ffc80[_0x54d863(0x18f)])},_0x21725d=_0x3e461c[_0x54d863(0x17e)](_0x2a402d);if(!_0x21725d){_0x3e461c[_0x54d863(0x183)](_0x2a402d,_0x2b2d70);continue;}_0x21725d['username']??=_0x2b2d70[_0x54d863(0x18e)],_0x21725d[_0x54d863(0x184)]??=_0x2b2d70[_0x54d863(0x184)],_0x21725d[_0x54d863(0x18f)]??=_0x2b2d70[_0x54d863(0x18f)];if(_0x2b2d70[_0x54d863(0x17f)]===_0x54d863(0x189))_0x21725d[_0x54d863(0x17f)]=_0x54d863(0x189);}return[..._0x3e461c[_0x54d863(0x18a)]()][_0x54d863(0x187)]((_0x30efe1,_0x3a8815)=>_0x30efe1[_0x54d863(0x192)]-_0x3a8815['userId']);}export function assertTenantAccessible(_0x4af66f,_0x286037){const _0x1687c6=a205_0x4b89;if(_0x286037[_0x1687c6(0x193)](_0x384f56=>_0x384f56[_0x1687c6(0x185)]===_0x4af66f))return;throw CliErrors[_0x1687c6(0x194)](_0x1687c6(0x188)+_0x4af66f+_0x1687c6(0x195),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
@@ -1 +1 @@
1
- const a201_0x22bf28=a201_0x7358;(function(_0x6f1d42,_0x35606d){const _0x1b00da=a201_0x7358,_0x191a12=_0x6f1d42();while(!![]){try{const _0x54dae8=-parseInt(_0x1b00da(0xbb))/0x1*(parseInt(_0x1b00da(0xb6))/0x2)+parseInt(_0x1b00da(0xaf))/0x3+-parseInt(_0x1b00da(0xb4))/0x4+parseInt(_0x1b00da(0xbe))/0x5*(parseInt(_0x1b00da(0xc6))/0x6)+parseInt(_0x1b00da(0xb0))/0x7+-parseInt(_0x1b00da(0xc4))/0x8*(-parseInt(_0x1b00da(0xb1))/0x9)+-parseInt(_0x1b00da(0xba))/0xa;if(_0x54dae8===_0x35606d)break;else _0x191a12['push'](_0x191a12['shift']());}catch(_0x211fa6){_0x191a12['push'](_0x191a12['shift']());}}}(a201_0x5870,0x93332));import{asDryRunResult}from'../../commands/common/dry-run.js';function a201_0x7358(_0x5603d8,_0xd70329){_0x5603d8=_0x5603d8-0xad;const _0x58700e=a201_0x5870();let _0x735884=_0x58700e[_0x5603d8];return _0x735884;}function a201_0x5870(){const _0x4a5ce1=['837204lvobMm','trim','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','2021385ReEHgm','7564907TFshbV','9ShZXCZ','dingding-sandbox-bind','ding-talk-user-id','1686420ZbrYjR','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','236970ycOneB','--ding-talk-user-id\x20cannot\x20be\x20empty.','string','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','10249760KShAug','6aZYYCw','dingtalk','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','30xYVoNj','validation','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','POST','1349768xQoSsH','str'];a201_0x5870=function(){return _0x4a5ce1;};return a201_0x5870();}import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a201_0x22bf28(0xbc),CURRENT_BINDING_WARNING=a201_0x22bf28(0xb9);function readDingTalkUserId(_0x29aae5){const _0x3efc62=a201_0x22bf28,_0x2b5f7c=_0x29aae5[_0x3efc62(0xc5)]('ding-talk-user-id')[_0x3efc62(0xad)]();if(!_0x2b5f7c)throw CliErrors[_0x3efc62(0xbf)](_0x3efc62(0xb7),_0x3efc62(0xae));return _0x2b5f7c;}function buildBindingData(_0x4a0028,_0x3391da){const _0x5b39a1=a201_0x22bf28;return{'operation':'bind','selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4a0028},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x4a0028,'bound':!![]},'dryRun':_0x3391da,'backend':{'method':_0x5b39a1(0xc3),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':'user-account','command':a201_0x22bf28(0xb2),'description':a201_0x22bf28(0xc0),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a201_0x22bf28(0xb3),'type':a201_0x22bf28(0xb8),'required':!![],'description':a201_0x22bf28(0xc1)}],async 'validate'(_0xcf44c6){readDingTalkUserId(_0xcf44c6);},async 'dryRun'(_0x2c6a6d){const _0x46da3d=readDingTalkUserId(_0x2c6a6d);return asDryRunResult(buildBindingData(_0x46da3d,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x235351){const _0x1e8f2e=a201_0x22bf28,_0x2f9dd0=readDingTalkUserId(_0x235351),_0x385ede=await bindDingTalkSandboxAccount(_0x2f9dd0);if(_0x385ede!==!![])throw CliErrors['apiError'](_0x1e8f2e(0xc2),_0x1e8f2e(0xb5));return{'ok':!![],'data':buildBindingData(_0x2f9dd0,![]),'message':_0x1e8f2e(0xbd)};}};
1
+ const a206_0xb86a4b=a206_0xbbf6;(function(_0x1182cd,_0x459921){const _0x44b9c5=a206_0xbbf6,_0x2bb2e1=_0x1182cd();while(!![]){try{const _0x53a3c7=parseInt(_0x44b9c5(0x204))/0x1+-parseInt(_0x44b9c5(0x1fa))/0x2*(parseInt(_0x44b9c5(0x1f4))/0x3)+parseInt(_0x44b9c5(0x1fd))/0x4+parseInt(_0x44b9c5(0x209))/0x5*(-parseInt(_0x44b9c5(0x20d))/0x6)+parseInt(_0x44b9c5(0x1f7))/0x7*(-parseInt(_0x44b9c5(0x207))/0x8)+-parseInt(_0x44b9c5(0x1f6))/0x9*(-parseInt(_0x44b9c5(0x1f3))/0xa)+parseInt(_0x44b9c5(0x206))/0xb*(parseInt(_0x44b9c5(0x1f8))/0xc);if(_0x53a3c7===_0x459921)break;else _0x2bb2e1['push'](_0x2bb2e1['shift']());}catch(_0x4aee55){_0x2bb2e1['push'](_0x2bb2e1['shift']());}}}(a206_0xf5b9,0x44f11));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=a206_0xb86a4b(0x1f9),CURRENT_BINDING_WARNING=a206_0xb86a4b(0x1fc);function readDingTalkUserId(_0x2c7106){const _0x1f2c48=a206_0xb86a4b,_0x17def4=_0x2c7106[_0x1f2c48(0x203)](_0x1f2c48(0x208))[_0x1f2c48(0x20a)]();if(!_0x17def4)throw CliErrors[_0x1f2c48(0x1fb)]('--ding-talk-user-id\x20cannot\x20be\x20empty.',_0x1f2c48(0x202));return _0x17def4;}function a206_0xbbf6(_0x40920d,_0x17ab7b){_0x40920d=_0x40920d-0x1f3;const _0xf5b93=a206_0xf5b9();let _0xbbf631=_0xf5b93[_0x40920d];return _0xbbf631;}function buildBindingData(_0x261dcd,_0x59dd82){const _0x47d4f1=a206_0xb86a4b;return{'operation':_0x47d4f1(0x20c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd,'bound':!![]},'dryRun':_0x59dd82,'backend':{'method':_0x47d4f1(0x200),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0xb86a4b(0x201),'command':a206_0xb86a4b(0x1f5),'description':a206_0xb86a4b(0x20b),'risk':a206_0xb86a4b(0x20e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0xb86a4b(0x208),'type':'string','required':!![],'description':a206_0xb86a4b(0x1fe)}],async 'validate'(_0x181f02){readDingTalkUserId(_0x181f02);},async 'dryRun'(_0x451d76){const _0x20efcc=a206_0xb86a4b,_0x63c1df=readDingTalkUserId(_0x451d76);return asDryRunResult(buildBindingData(_0x63c1df,!![]),{'method':_0x20efcc(0x200),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x24dafa){const _0x1e6581=a206_0xb86a4b,_0x11e6b7=readDingTalkUserId(_0x24dafa),_0x14eacc=await bindDingTalkSandboxAccount(_0x11e6b7);if(_0x14eacc!==!![])throw CliErrors['apiError'](_0x1e6581(0x1ff),_0x1e6581(0x205));return{'ok':!![],'data':buildBindingData(_0x11e6b7,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};function a206_0xf5b9(){const _0x3fadb3=['ding-talk-user-id','95GjbTIs','trim','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','bind','111666rgTchZ','write','2240lVYvgs','9EqgxGx','dingding-sandbox-bind','15354BCubEx','448iapvcI','13836Hyaarb','dingtalk','119722xBLzkN','validation','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','701448rrsCNz','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','POST','user-account','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','str','151921DJGvjB','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','4642oQRcTr','47552yoUnMb'];a206_0xf5b9=function(){return _0x3fadb3;};return a206_0xf5b9();}
@@ -1 +1 @@
1
- (function(_0x41edb3,_0x5659e7){const _0x24cb16=a202_0x3eec,_0x58cc45=_0x41edb3();while(!![]){try{const _0x562e41=parseInt(_0x24cb16(0x15d))/0x1+-parseInt(_0x24cb16(0x15b))/0x2*(parseInt(_0x24cb16(0x15e))/0x3)+-parseInt(_0x24cb16(0x158))/0x4+parseInt(_0x24cb16(0x159))/0x5+parseInt(_0x24cb16(0x157))/0x6+-parseInt(_0x24cb16(0x15a))/0x7+parseInt(_0x24cb16(0x15c))/0x8;if(_0x562e41===_0x5659e7)break;else _0x58cc45['push'](_0x58cc45['shift']());}catch(_0x14c1a0){_0x58cc45['push'](_0x58cc45['shift']());}}}(a202_0x204c,0xdfe6c));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a202_0x3eec(_0x333952,_0x412ef0){_0x333952=_0x333952-0x157;const _0x204c0b=a202_0x204c();let _0x3eecc8=_0x204c0b[_0x333952];return _0x3eecc8;}function a202_0x204c(){const _0x1b002b=['2700025lqyjxv','5026063MFXcCk','2078huWMLU','11070464zDrcaC','1045995ZJDDSy','3225EDGaAE','1328478rnmdnp','1756748QCqFVX'];a202_0x204c=function(){return _0x1b002b;};return a202_0x204c();}export const userAccountDefinitions=[dingTalkSandboxBind];
1
+ (function(_0x5d8d27,_0x34e156){const _0x151484=a207_0xbf6f,_0x174611=_0x5d8d27();while(!![]){try{const _0x3dae33=-parseInt(_0x151484(0x87))/0x1*(parseInt(_0x151484(0x8d))/0x2)+-parseInt(_0x151484(0x8c))/0x3*(-parseInt(_0x151484(0x8a))/0x4)+-parseInt(_0x151484(0x85))/0x5*(-parseInt(_0x151484(0x88))/0x6)+-parseInt(_0x151484(0x81))/0x7*(parseInt(_0x151484(0x84))/0x8)+parseInt(_0x151484(0x80))/0x9*(parseInt(_0x151484(0x83))/0xa)+parseInt(_0x151484(0x8b))/0xb*(-parseInt(_0x151484(0x82))/0xc)+parseInt(_0x151484(0x89))/0xd*(parseInt(_0x151484(0x86))/0xe);if(_0x3dae33===_0x34e156)break;else _0x174611['push'](_0x174611['shift']());}catch(_0x584998){_0x174611['push'](_0x174611['shift']());}}}(a207_0x2ca5,0x21a05));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0xbf6f(_0x23582f,_0x41197d){_0x23582f=_0x23582f-0x80;const _0x2ca5ad=a207_0x2ca5();let _0xbf6fea=_0x2ca5ad[_0x23582f];return _0xbf6fea;}function a207_0x2ca5(){const _0x5ebbd1=['1864AInusM','1277565WLICCs','120134FyfTCG','3ozCeqw','6gMqvDw','117ICMRGm','868OgbYTE','77CzwVUT','3507IOMQBN','170842KMBRUD','9VLkocW','2422UkCWbR','430800XFpiAC','1394990Wgrymt'];a207_0x2ca5=function(){return _0x5ebbd1;};return a207_0x2ca5();}export const userAccountDefinitions=[dingTalkSandboxBind];
@@ -1 +1 @@
1
- const a203_0x1c34a1=a203_0x22d1;(function(_0x23a311,_0x2cafc1){const _0x33b8bf=a203_0x22d1,_0x55cebf=_0x23a311();while(!![]){try{const _0x3fb029=-parseInt(_0x33b8bf(0x116))/0x1+-parseInt(_0x33b8bf(0x118))/0x2*(-parseInt(_0x33b8bf(0x111))/0x3)+parseInt(_0x33b8bf(0x117))/0x4+-parseInt(_0x33b8bf(0x11b))/0x5+-parseInt(_0x33b8bf(0x11a))/0x6+parseInt(_0x33b8bf(0x113))/0x7+parseInt(_0x33b8bf(0x10d))/0x8*(-parseInt(_0x33b8bf(0x115))/0x9);if(_0x3fb029===_0x2cafc1)break;else _0x55cebf['push'](_0x55cebf['shift']());}catch(_0x563e84){_0x55cebf['push'](_0x55cebf['shift']());}}}(a203_0x323b,0xa9890));function a203_0x323b(){const _0x5f1023=['450689FeMlQN','3810000axYFrz','2GFvbFd','write','2519874PfBMgN','2674530hjwoRD','539584OSLyPO','add','name','workspace','3744531hoUWcv','App\x20profile\x20name','8737911tXQNDS','workspace\x20add','180SROszH'];a203_0x323b=function(){return _0x5f1023;};return a203_0x323b();}function a203_0x22d1(_0x2acb71,_0x2bd77f){_0x2acb71=_0x2acb71-0x10d;const _0x323b17=a203_0x323b();let _0x22d135=_0x323b17[_0x2acb71];return _0x22d135;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a203_0x1c34a1(0x110),'command':a203_0x1c34a1(0x10e),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a203_0x1c34a1(0x119),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a203_0x1c34a1(0x10f),'description':a203_0x1c34a1(0x112),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3d93ff=>validateAppName(_0x3d93ff,a203_0x1c34a1(0x114)),'execute':_0x5467b2=>runAppAdd(_0x5467b2,a203_0x1c34a1(0x114))};
1
+ const a208_0x298892=a208_0x4f44;function a208_0x2782(){const _0x488d24=['472284ZyGzBT','6LZVmYk','28ASoyEp','workspace\x20add','520055oiBimX','name','App\x20profile\x20name','536562vGTBbg','1030808SeUmng','workspace','1206317wlGOup','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','10698660NpTFGB','write','119589GuDuEc'];a208_0x2782=function(){return _0x488d24;};return a208_0x2782();}(function(_0x15e2ac,_0x5a2e36){const _0x8dc395=a208_0x4f44,_0xe6bae0=_0x15e2ac();while(!![]){try{const _0xb703f=-parseInt(_0x8dc395(0x192))/0x1+-parseInt(_0x8dc395(0x18a))/0x2+-parseInt(_0x8dc395(0x191))/0x3+-parseInt(_0x8dc395(0x194))/0x4*(-parseInt(_0x8dc395(0x187))/0x5)+-parseInt(_0x8dc395(0x193))/0x6*(parseInt(_0x8dc395(0x18d))/0x7)+-parseInt(_0x8dc395(0x18b))/0x8+parseInt(_0x8dc395(0x18f))/0x9;if(_0xb703f===_0x5a2e36)break;else _0xe6bae0['push'](_0xe6bae0['shift']());}catch(_0x5da27d){_0xe6bae0['push'](_0xe6bae0['shift']());}}}(a208_0x2782,0xcbe87));function a208_0x4f44(_0x2bf1d4,_0xd095fb){_0x2bf1d4=_0x2bf1d4-0x186;const _0x2782ac=a208_0x2782();let _0x4f44ae=_0x2782ac[_0x2bf1d4];return _0x4f44ae;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a208_0x298892(0x18c),'command':'add','description':a208_0x298892(0x18e),'risk':a208_0x298892(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x298892(0x188),'description':a208_0x298892(0x189),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xb4cd4f=>validateAppName(_0xb4cd4f,a208_0x298892(0x186)),'execute':_0x3b6acd=>runAppAdd(_0x3b6acd,a208_0x298892(0x186))};
@@ -1 +1 @@
1
- const a204_0x58ca5b=a204_0x43ca;(function(_0x314d09,_0x17b397){const _0x185a27=a204_0x43ca,_0x30a74c=_0x314d09();while(!![]){try{const _0x11bd16=-parseInt(_0x185a27(0xa7))/0x1*(parseInt(_0x185a27(0xaf))/0x2)+parseInt(_0x185a27(0x87))/0x3+parseInt(_0x185a27(0xa6))/0x4+-parseInt(_0x185a27(0x7d))/0x5+parseInt(_0x185a27(0xb0))/0x6*(parseInt(_0x185a27(0x88))/0x7)+parseInt(_0x185a27(0xab))/0x8*(parseInt(_0x185a27(0x9d))/0x9)+-parseInt(_0x185a27(0x93))/0xa*(parseInt(_0x185a27(0x85))/0xb);if(_0x11bd16===_0x17b397)break;else _0x30a74c['push'](_0x30a74c['shift']());}catch(_0x3f4a42){_0x30a74c['push'](_0x30a74c['shift']());}}}(a204_0x34ca,0x6bff2));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';function a204_0x34ca(){const _0x3ba0e8=['workspace','1024045jmSGrI','keys','app','defaultFormat','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','pageSize','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','22nXFDyB','env','2299926fIEEOw','7noQEMk','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Target\x20environment','flag','Missing\x20workspace\x20app\x20selector.','\x20--app\x20','appcode','join','\x20workspace\x20use\x20--app\x20<name>`.','updated','object','5401260xYLIZj','locale','Workspace\x20','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x22\x20not\x20found.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','apiDir','Invalid\x20appcode:\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','1539gxStXc','App\x20\x22','string','validation','length',').\x20Config:\x20','Use\x20`','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','format','3538360jdWTDd','19212faenhr','apps','\x20workspace\x20','str','14984NgfxJi','isArray','globalConfig','write','86Kgxjud','3492096ppnmqn','project','trim','init','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'];a204_0x34ca=function(){return _0x3ba0e8;};return a204_0x34ca();}import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a204_0x58ca5b(0x96),SAFE_PROFILE_KEYS=[a204_0x58ca5b(0x8e),a204_0x58ca5b(0x86),'apiDir',a204_0x58ca5b(0xa5),a204_0x58ca5b(0x83),a204_0x58ca5b(0x81),a204_0x58ca5b(0x94)],workspaceFlags=[{'name':a204_0x58ca5b(0x7f),'type':a204_0x58ca5b(0x9f),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a204_0x58ca5b(0x8e),'type':a204_0x58ca5b(0x9f),'description':a204_0x58ca5b(0x99)},{'name':a204_0x58ca5b(0x86),'type':a204_0x58ca5b(0x9f),'description':a204_0x58ca5b(0x8a),'enum':[...RABETBASE_ENV_VALUES]},{'name':a204_0x58ca5b(0x9a),'type':a204_0x58ca5b(0x9f),'description':a204_0x58ca5b(0x89)},{'name':'defaultFormat','type':a204_0x58ca5b(0x9f),'description':a204_0x58ca5b(0x84),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a204_0x58ca5b(0x83),'type':'number','description':a204_0x58ca5b(0xa4)},{'name':a204_0x58ca5b(0x81),'type':'string','description':a204_0x58ca5b(0x9c),'enum':[...RISK_LEVEL_VALUES]},{'name':a204_0x58ca5b(0x94),'type':'string','description':a204_0x58ca5b(0x7b)}];function a204_0x43ca(_0x408d70,_0x12e99b){_0x408d70=_0x408d70-0x79;const _0x34cacb=a204_0x34ca();let _0x43ca61=_0x34cacb[_0x408d70];return _0x43ca61;}function isRecord(_0x5903c2){const _0x44b46d=a204_0x58ca5b;return!!_0x5903c2&&typeof _0x5903c2===_0x44b46d(0x92)&&!Array[_0x44b46d(0xac)](_0x5903c2);}function assertValidAppcode(_0x424fb3){const _0x150be2=a204_0x58ca5b,{valid:_0x32a8b8,message:_0x4fe69d}=validateAppcode(_0x424fb3);if(!_0x32a8b8)throw CliErrors[_0x150be2(0xa0)](_0x150be2(0x9b)+_0x424fb3,_0x4fe69d);}function sanitizeProfile(_0xff2be6){if(!isRecord(_0xff2be6))return{};const _0x3b080e={};for(const _0x5233ba of SAFE_PROFILE_KEYS){if(_0xff2be6[_0x5233ba]!==undefined)_0x3b080e[_0x5233ba]=_0xff2be6[_0x5233ba];}return _0x3b080e;}function cloneProfile(_0x3fade8){return isRecord(_0x3fade8)?{..._0x3fade8}:{};}function collectWorkspaceProfileOverrides(_0x9baffa){const _0x24b2f7=a204_0x58ca5b,_0x46dfb4={},_0x404203=_0x9baffa['str']('env'),_0x77e80d=_0x9baffa[_0x24b2f7(0xaa)](_0x24b2f7(0x9a)),_0xde5cd=_0x9baffa[_0x24b2f7(0xaa)](_0x24b2f7(0x80)),_0x28da98=_0x9baffa[_0x24b2f7(0x8b)](_0x24b2f7(0x83)),_0x238238=_0x9baffa[_0x24b2f7(0xaa)](_0x24b2f7(0x81)),_0xd505d5=_0x9baffa[_0x24b2f7(0xaa)]('locale');if(_0x404203)_0x46dfb4[_0x24b2f7(0x86)]=_0x404203;if(_0x77e80d)_0x46dfb4[_0x24b2f7(0x9a)]=_0x77e80d;if(_0xde5cd)_0x46dfb4[_0x24b2f7(0xa5)]=_0xde5cd;if(_0x28da98!==undefined&&_0x28da98!=='')_0x46dfb4[_0x24b2f7(0x83)]=Number(_0x28da98);if(_0x238238)_0x46dfb4[_0x24b2f7(0x81)]=_0x238238;if(_0xd505d5)_0x46dfb4[_0x24b2f7(0x94)]=_0xd505d5;return _0x46dfb4;}async function validateWorkspaceArgs(_0x186d7d){const _0x5c6c60=a204_0x58ca5b,_0x53791d=_0x186d7d['str'](_0x5c6c60(0x7f))[_0x5c6c60(0x79)](),_0xed62af=_0x186d7d[_0x5c6c60(0xaa)](_0x5c6c60(0x8e))[_0x5c6c60(0x79)]();if(!_0x53791d&&!_0xed62af)throw CliErrors['validation'](_0x5c6c60(0x8c),_0x5c6c60(0xa3)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0xed62af)assertValidAppcode(_0xed62af);}function resolveKnownApps(){const _0x40ca51=a204_0x58ca5b,{config:_0x3228f9,layers:_0x444e2e}=readRawConfigWithLayers(),_0x1a04d6=isRecord(_0x3228f9[_0x40ca51(0xa8)])?_0x3228f9[_0x40ca51(0xa8)]:{},_0x4133dd=isRecord(_0x444e2e['globalConfig'][_0x40ca51(0xa8)])?_0x444e2e[_0x40ca51(0xad)][_0x40ca51(0xa8)]:{};return{..._0x4133dd,..._0x1a04d6};}async function configureWorkspace(_0x321e63,_0x2513e0){const _0x273eac=a204_0x58ca5b,_0x49a7b8=_0x321e63[_0x273eac(0xaa)]('app')[_0x273eac(0x79)](),_0x551023=_0x321e63[_0x273eac(0xaa)]('appcode')[_0x273eac(0x79)](),_0x54ec93=_0x49a7b8||_0x551023;if(!_0x54ec93)throw CliErrors['validation'](_0x273eac(0x8c),'Use\x20`'+CLI_BIN_NAME+_0x273eac(0x98)+CLI_BIN_NAME+_0x273eac(0x90));if(_0x551023)assertValidAppcode(_0x551023);const _0x4cb1fd=resolveWriteConfigPath(_0x273eac(0xb1)),_0x14e320=readConfigFile(_0x4cb1fd),_0x4b4569=resolveKnownApps(),_0x36313d=isRecord(_0x14e320[_0x273eac(0xa8)])?{..._0x14e320[_0x273eac(0xa8)]}:{},_0x5bc63d=cloneProfile(_0x36313d[_0x54ec93]),_0x135929=sanitizeProfile(_0x4b4569[_0x54ec93]),_0x27c3c9=_0x551023?{}:_0x135929,_0x44b3c0=_0x551023||_0x27c3c9['appcode'];if(!_0x44b3c0){const _0xcdb82c=Object[_0x273eac(0x7e)](_0x4b4569),_0x350539=_0xcdb82c[_0x273eac(0xa1)]===0x0?_0x273eac(0xa3)+CLI_BIN_NAME+_0x273eac(0xa9)+_0x2513e0+_0x273eac(0x8d)+_0x54ec93+'\x20--appcode\x20<code>`.':_0x273eac(0x82)+_0xcdb82c[_0x273eac(0x8f)](',\x20');throw CliErrors['validation'](_0x273eac(0x9e)+_0x54ec93+_0x273eac(0x97),_0x350539);}assertValidAppcode(String(_0x44b3c0));const _0xe41043={..._0x27c3c9,..._0x5bc63d,'appcode':String(_0x44b3c0),...collectWorkspaceProfileOverrides(_0x321e63)};return _0x36313d[_0x54ec93]=_0xe41043,_0x14e320[_0x273eac(0xa8)]=_0x36313d,normalizeStoredDefaultApp(_0x14e320,_0x54ec93),delete _0x14e320[_0x273eac(0x8e)],delete _0x14e320[_0x273eac(0x7f)],_0xe41043[_0x273eac(0x86)]&&(_0x14e320['env']=_0xe41043['env']),writeConfigFile(_0x4cb1fd,_0x14e320),{'ok':!![],'message':_0x273eac(0x95)+(_0x2513e0===_0x273eac(0x7a)?'initialized':_0x273eac(0x91))+':\x20'+_0x54ec93+'\x20(appcode:\x20'+_0xe41043[_0x273eac(0x8e)]+_0x273eac(0xa2)+_0x4cb1fd+'.\x20Credentials:\x20not\x20written.','data':{'operation':'workspace.'+_0x2513e0,'configPath':_0x4cb1fd,'app':_0x54ec93,'appcode':_0xe41043['appcode'],'env':_0xe41043[_0x273eac(0x86)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a204_0x58ca5b(0x7c),'command':a204_0x58ca5b(0x7a),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a204_0x58ca5b(0xae),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x89cf40=>configureWorkspace(_0x89cf40,'init')},workspaceUseDefinition={'service':'workspace','command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a204_0x58ca5b(0xae),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e664c=>configureWorkspace(_0x5e664c,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a209_0x469172=a209_0x45c8;(function(_0x1c5dea,_0x5a1fe3){const _0x10214d=a209_0x45c8,_0x289663=_0x1c5dea();while(!![]){try{const _0x43f97c=parseInt(_0x10214d(0x1ca))/0x1*(parseInt(_0x10214d(0x1cb))/0x2)+parseInt(_0x10214d(0x1b5))/0x3*(parseInt(_0x10214d(0x1c1))/0x4)+-parseInt(_0x10214d(0x1a7))/0x5*(-parseInt(_0x10214d(0x19e))/0x6)+-parseInt(_0x10214d(0x192))/0x7+parseInt(_0x10214d(0x197))/0x8+-parseInt(_0x10214d(0x1ad))/0x9*(-parseInt(_0x10214d(0x1ba))/0xa)+-parseInt(_0x10214d(0x1a3))/0xb*(parseInt(_0x10214d(0x1b9))/0xc);if(_0x43f97c===_0x5a1fe3)break;else _0x289663['push'](_0x289663['shift']());}catch(_0x346b8a){_0x289663['push'](_0x289663['shift']());}}}(a209_0x1743,0xc000b));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';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a209_0x469172(0x199),SAFE_PROFILE_KEYS=[a209_0x469172(0x1bc),a209_0x469172(0x19b),a209_0x469172(0x1a6),a209_0x469172(0x1c8),a209_0x469172(0x1b4),a209_0x469172(0x1ae),a209_0x469172(0x1ac),a209_0x469172(0x1c2)],workspaceFlags=[{'name':'app','type':a209_0x469172(0x1c9),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a209_0x469172(0x1c9),'description':a209_0x469172(0x19c)},{'name':a209_0x469172(0x19b),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1a2),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x469172(0x1a6),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1b3)},{'name':a209_0x469172(0x19d),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a209_0x469172(0x1c6),'description':a209_0x469172(0x191)},{'name':a209_0x469172(0x1ae),'type':a209_0x469172(0x1c9),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a209_0x469172(0x1ac),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1c5)},...getDeploymentSyncProfileFlagDefs()];function isRecord(_0x4f0d31){const _0x1f83bc=a209_0x469172;return!!_0x4f0d31&&typeof _0x4f0d31===_0x1f83bc(0x19f)&&!Array[_0x1f83bc(0x198)](_0x4f0d31);}function assertValidAppcode(_0x59358b){const _0x2785ff=a209_0x469172,{valid:_0x21b9f8,message:_0x3a29b4}=validateAppcode(_0x59358b);if(!_0x21b9f8)throw CliErrors[_0x2785ff(0x1bf)](_0x2785ff(0x1c0)+_0x59358b,_0x3a29b4);}function a209_0x1743(){const _0x566ad1=['isArray','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',').\x20Config:\x20','env','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','defaultFormat','6dEuiuN','object','workspace.','use','Target\x20environment','386661kKKlJH','.\x20Credentials:\x20not\x20written.','trim','apiDir','7783235tiBylN','\x20--appcode\x20<code>`.','workspace','updated','app','locale','3222927YcpKER','riskLevel','Missing\x20workspace\x20app\x20selector.','Workspace\x20','initialized','str','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','pageSize','2775IreNsQ','globalConfig','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apps','1296JrrdPS','20NgdNFa','Use\x20`','appcode','write','\x20(appcode:\x20','validation','Invalid\x20appcode:\x20','6788PNYqhu','deploymentSync','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','number','\x20--app\x20','format','string','859642eRlvGi','2jKwpWW','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','7643139UmSXMu','\x22\x20not\x20found.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','7779264tcrkjf'];a209_0x1743=function(){return _0x566ad1;};return a209_0x1743();}function sanitizeProfile(_0x13569d){if(!isRecord(_0x13569d))return{};const _0x3eee79={};for(const _0x2186f5 of SAFE_PROFILE_KEYS){if(_0x13569d[_0x2186f5]!==undefined)_0x3eee79[_0x2186f5]=_0x13569d[_0x2186f5];}return _0x3eee79;}function cloneProfile(_0x53c854){return isRecord(_0x53c854)?{..._0x53c854}:{};}function collectWorkspaceProfileOverrides(_0x185855){const _0x39717f=a209_0x469172,_0x210c40={},_0x38f8c7=_0x185855[_0x39717f(0x1b2)]('env'),_0x5c22bf=_0x185855[_0x39717f(0x1b2)]('apiDir'),_0x366694=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x19d)),_0x14bfa7=_0x185855['flag'](_0x39717f(0x1b4)),_0x139b7b=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x1ae)),_0x18c8f1=_0x185855[_0x39717f(0x1b2)]('locale');if(_0x38f8c7)_0x210c40[_0x39717f(0x19b)]=_0x38f8c7;if(_0x5c22bf)_0x210c40[_0x39717f(0x1a6)]=_0x5c22bf;if(_0x366694)_0x210c40[_0x39717f(0x1c8)]=_0x366694;if(_0x14bfa7!==undefined&&_0x14bfa7!=='')_0x210c40[_0x39717f(0x1b4)]=Number(_0x14bfa7);if(_0x139b7b)_0x210c40[_0x39717f(0x1ae)]=_0x139b7b;if(_0x18c8f1)_0x210c40[_0x39717f(0x1ac)]=_0x18c8f1;const _0xc78fa9=collectDeploymentSyncProfile(_0x5e5254=>_0x185855[_0x39717f(0x1b2)](_0x5e5254));if(_0xc78fa9)_0x210c40['deploymentSync']=_0xc78fa9;return _0x210c40;}async function validateWorkspaceArgs(_0x2477fd){const _0x5c20a3=a209_0x469172,_0x11187c=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1ab))[_0x5c20a3(0x1a5)](),_0x206867=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1bc))[_0x5c20a3(0x1a5)]();if(!_0x11187c&&!_0x206867)throw CliErrors[_0x5c20a3(0x1bf)](_0x5c20a3(0x1af),_0x5c20a3(0x1bb)+CLI_BIN_NAME+_0x5c20a3(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x206867)assertValidAppcode(_0x206867);}function a209_0x45c8(_0x4925d1,_0xbf1d6a){_0x4925d1=_0x4925d1-0x191;const _0x1743ab=a209_0x1743();let _0x45c8b9=_0x1743ab[_0x4925d1];return _0x45c8b9;}function resolveKnownApps(){const _0x614c9e=a209_0x469172,{config:_0x2f4468,layers:_0x443d40}=readRawConfigWithLayers(),_0xf00b80=isRecord(_0x2f4468[_0x614c9e(0x1b8)])?_0x2f4468[_0x614c9e(0x1b8)]:{},_0x1a0302=isRecord(_0x443d40[_0x614c9e(0x1b6)]['apps'])?_0x443d40[_0x614c9e(0x1b6)][_0x614c9e(0x1b8)]:{};return{..._0x1a0302,..._0xf00b80};}async function configureWorkspace(_0x53fa7f,_0x2d204d){const _0x57dce8=a209_0x469172,_0x2dcf8f=_0x53fa7f[_0x57dce8(0x1b2)]('app')[_0x57dce8(0x1a5)](),_0x36f1f5=_0x53fa7f[_0x57dce8(0x1b2)](_0x57dce8(0x1bc))[_0x57dce8(0x1a5)](),_0x3b4201=_0x2dcf8f||_0x36f1f5;if(!_0x3b4201)throw CliErrors[_0x57dce8(0x1bf)](_0x57dce8(0x1af),_0x57dce8(0x1bb)+CLI_BIN_NAME+_0x57dce8(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x36f1f5)assertValidAppcode(_0x36f1f5);const _0x1f7501=resolveWriteConfigPath('project'),_0x23d012=readConfigFile(_0x1f7501),_0x1eda55=resolveKnownApps(),_0x104550=isRecord(_0x23d012[_0x57dce8(0x1b8)])?{..._0x23d012['apps']}:{},_0x43afa7=cloneProfile(_0x104550[_0x3b4201]),_0x2672cc=sanitizeProfile(_0x1eda55[_0x3b4201]),_0x5cc13e=_0x36f1f5?{}:_0x2672cc,_0x50b66b=_0x36f1f5||_0x5cc13e['appcode'];if(!_0x50b66b){const _0x421553=Object['keys'](_0x1eda55),_0x504edc=_0x421553['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x57dce8(0x1c4)+_0x2d204d+_0x57dce8(0x1c7)+_0x3b4201+_0x57dce8(0x1a8):_0x57dce8(0x194)+_0x421553['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x3b4201+_0x57dce8(0x193),_0x504edc);}assertValidAppcode(String(_0x50b66b));const _0x1a1234={..._0x5cc13e,..._0x43afa7,'appcode':String(_0x50b66b),...collectWorkspaceProfileOverrides(_0x53fa7f)};return _0x104550[_0x3b4201]=_0x1a1234,_0x23d012[_0x57dce8(0x1b8)]=_0x104550,normalizeStoredDefaultApp(_0x23d012,_0x3b4201),delete _0x23d012[_0x57dce8(0x1bc)],delete _0x23d012[_0x57dce8(0x1ab)],_0x1a1234[_0x57dce8(0x19b)]&&(_0x23d012[_0x57dce8(0x19b)]=_0x1a1234[_0x57dce8(0x19b)]),writeConfigFile(_0x1f7501,_0x23d012),{'ok':!![],'message':_0x57dce8(0x1b0)+(_0x2d204d===_0x57dce8(0x196)?_0x57dce8(0x1b1):_0x57dce8(0x1aa))+':\x20'+_0x3b4201+_0x57dce8(0x1be)+_0x1a1234[_0x57dce8(0x1bc)]+_0x57dce8(0x19a)+_0x1f7501+_0x57dce8(0x1a4),'data':{'operation':_0x57dce8(0x1a0)+_0x2d204d,'configPath':_0x1f7501,'app':_0x3b4201,'appcode':_0x1a1234[_0x57dce8(0x1bc)],'env':_0x1a1234['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a209_0x469172(0x1a9),'command':'init','description':a209_0x469172(0x1b7),'risk':a209_0x469172(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4bb5f6=>configureWorkspace(_0x4bb5f6,a209_0x469172(0x196))},workspaceUseDefinition={'service':a209_0x469172(0x1a9),'command':'use','description':a209_0x469172(0x1c3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xcb9edb=>configureWorkspace(_0xcb9edb,a209_0x469172(0x1a1))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a205_0x4152a2=a205_0x30eb;(function(_0x31c5c,_0x7712fa){const _0x4ee33a=a205_0x30eb,_0x52ae99=_0x31c5c();while(!![]){try{const _0x44e165=parseInt(_0x4ee33a(0x1ab))/0x1+parseInt(_0x4ee33a(0x1a2))/0x2+-parseInt(_0x4ee33a(0x1ad))/0x3*(parseInt(_0x4ee33a(0x1a7))/0x4)+parseInt(_0x4ee33a(0x1a4))/0x5+-parseInt(_0x4ee33a(0x1a3))/0x6*(-parseInt(_0x4ee33a(0x1ac))/0x7)+parseInt(_0x4ee33a(0x1aa))/0x8+-parseInt(_0x4ee33a(0x1a9))/0x9;if(_0x44e165===_0x7712fa)break;else _0x52ae99['push'](_0x52ae99['shift']());}catch(_0x354a38){_0x52ae99['push'](_0x52ae99['shift']());}}}(a205_0x2295,0x54184));function a205_0x2295(){const _0x1c0f19=['1304994fhfDUD','342ZrJNpJ','3214715WNVKgF','name','remove','436szIuOX','workspace\x20remove','15074163OiskbU','631408YauZMe','304075FLTMfK','76510ODIzSz','7764zCkGmw','workspace'];a205_0x2295=function(){return _0x1c0f19;};return a205_0x2295();}function a205_0x30eb(_0x13824,_0x3e50c0){_0x13824=_0x13824-0x1a1;const _0x22951b=a205_0x2295();let _0x30ebc7=_0x22951b[_0x13824];return _0x30ebc7;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a205_0x4152a2(0x1a1),'command':a205_0x4152a2(0x1a6),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a205_0x4152a2(0x1a5),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x30b214=>validateAppName(_0x30b214,a205_0x4152a2(0x1a8)),'execute':_0x3bb83d=>runAppRemove(_0x3bb83d,'workspace\x20remove')};
1
+ function a210_0xfc76(_0x2dc9b7,_0x48335b){_0x2dc9b7=_0x2dc9b7-0xcb;const _0x3b8e10=a210_0x3b8e();let _0xfc7676=_0x3b8e10[_0x2dc9b7];return _0xfc7676;}const a210_0x3f14f0=a210_0xfc76;function a210_0x3b8e(){const _0x52754e=['4750UhlSOg','35ILiwzn','remove','70551inBdhL','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','552AYdSOe','write','8150mseLJk','workspace\x20remove','4xhwBGu','333174JXKlSv','3727867WmfEAA','1199418cSldwX','3447DyTEUN','184YcDeKO'];a210_0x3b8e=function(){return _0x52754e;};return a210_0x3b8e();}(function(_0x13ba22,_0x1e562d){const _0x1bfb80=a210_0xfc76,_0x3b162a=_0x13ba22();while(!![]){try{const _0x2cca80=parseInt(_0x1bfb80(0xcd))/0x1+parseInt(_0x1bfb80(0xd3))/0x2*(-parseInt(_0x1bfb80(0xd4))/0x3)+-parseInt(_0x1bfb80(0xcf))/0x4*(parseInt(_0x1bfb80(0xd9))/0x5)+-parseInt(_0x1bfb80(0xd6))/0x6+parseInt(_0x1bfb80(0xcb))/0x7*(-parseInt(_0x1bfb80(0xd8))/0x8)+parseInt(_0x1bfb80(0xd7))/0x9*(parseInt(_0x1bfb80(0xd1))/0xa)+parseInt(_0x1bfb80(0xd5))/0xb;if(_0x2cca80===_0x1e562d)break;else _0x3b162a['push'](_0x3b162a['shift']());}catch(_0x2fb846){_0x3b162a['push'](_0x3b162a['shift']());}}}(a210_0x3b8e,0x291a7));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a210_0x3f14f0(0xcc),'description':a210_0x3f14f0(0xce),'risk':a210_0x3f14f0(0xd0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x53ccbd=>validateAppName(_0x53ccbd,a210_0x3f14f0(0xd2)),'execute':_0x26316e=>runAppRemove(_0x26316e,a210_0x3f14f0(0xd2))};
@@ -0,0 +1,10 @@
1
+ import type { FlagDef } from "../framework/types.js";
2
+ export declare const AUTO_DEPLOYMENT_TARGET_ENVS: readonly ["dev", "test", "pre"];
3
+ export type AutoDeploymentTargetEnv = typeof AUTO_DEPLOYMENT_TARGET_ENVS[number];
4
+ export interface DeploymentSyncProfile {
5
+ dbLinkId: number;
6
+ targetEnv: AutoDeploymentTargetEnv;
7
+ }
8
+ export declare function getDeploymentSyncProfileFlagDefs(): FlagDef[];
9
+ export declare function collectDeploymentSyncProfile(getFlagValue: (name: string) => string): DeploymentSyncProfile | undefined;
10
+ export declare function validateDeploymentSyncProfile(value: unknown): DeploymentSyncProfile;
@@ -0,0 +1 @@
1
+ const a211_0x505755=a211_0x3a5d;(function(_0xea7ebb,_0xaf1e9c){const _0x8de9ec=a211_0x3a5d,_0x3a185c=_0xea7ebb();while(!![]){try{const _0x14dc81=-parseInt(_0x8de9ec(0xa1))/0x1+-parseInt(_0x8de9ec(0xb7))/0x2*(parseInt(_0x8de9ec(0xa6))/0x3)+parseInt(_0x8de9ec(0xb4))/0x4+parseInt(_0x8de9ec(0xaa))/0x5+-parseInt(_0x8de9ec(0xa0))/0x6+parseInt(_0x8de9ec(0xae))/0x7+-parseInt(_0x8de9ec(0xb0))/0x8;if(_0x14dc81===_0xaf1e9c)break;else _0x3a185c['push'](_0x3a185c['shift']());}catch(_0x2ce8a7){_0x3a185c['push'](_0x3a185c['shift']());}}}(a211_0x3f8c,0x7f74a));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=['dev',a211_0x505755(0xb3),a211_0x505755(0xaf)];export function getDeploymentSyncProfileFlagDefs(){const _0x3576b8=a211_0x505755;return[{'name':_0x3576b8(0xa5),'type':_0x3576b8(0xa7),'description':_0x3576b8(0xb1)},{'name':_0x3576b8(0xb2),'type':'string','enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x3576b8(0x9f)}];}export function collectDeploymentSyncProfile(_0x322581){const _0x228a8a=a211_0x505755,_0x2b2702=_0x322581('deployment-db-id')[_0x228a8a(0x9e)](),_0x1deea7=_0x322581(_0x228a8a(0xb2))[_0x228a8a(0x9e)]();if(!_0x2b2702&&!_0x1deea7)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x2b2702?Number(_0x2b2702):undefined,'targetEnv':_0x1deea7||undefined});}function a211_0x3f8c(){const _0x155b60=['object','validation','deployment-db-id','6pSdyjG','number','isArray','join','2097915gsRSbq','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','string','4640468KRFAHR','pre','100120wUZNdG','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','deployment-target-env','test','2590460CpObXj','includes','targetEnv','26426CtsDJi','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','trim','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','3915654ThnKkn','516514jPMEKe','--deployment-target-env\x20must\x20be\x20one\x20of:\x20'];a211_0x3f8c=function(){return _0x155b60;};return a211_0x3f8c();}function a211_0x3a5d(_0x591e1b,_0x5317d6){_0x591e1b=_0x591e1b-0x9d;const _0x3f8cf8=a211_0x3f8c();let _0x3a5d3e=_0x3f8cf8[_0x591e1b];return _0x3a5d3e;}export function validateDeploymentSyncProfile(_0x493eca){const _0x297809=a211_0x505755;if(!_0x493eca||typeof _0x493eca!==_0x297809(0xa3)||Array[_0x297809(0xa8)](_0x493eca))throw CliErrors[_0x297809(0xa4)](_0x297809(0xab));const _0x5d6600=_0x493eca,_0x499c71=Number(_0x5d6600['dbLinkId']);if(!Number['isSafeInteger'](_0x499c71)||_0x499c71<=0x0)throw CliErrors[_0x297809(0xa4)](_0x297809(0x9d));const _0x4b3672=typeof _0x5d6600[_0x297809(0xb6)]===_0x297809(0xad)?_0x5d6600[_0x297809(0xb6)][_0x297809(0x9e)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xb5)](_0x4b3672))throw CliErrors['validation'](_0x297809(0xa2)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xa9)](',\x20')+'.',_0x297809(0xac));return{'dbLinkId':_0x499c71,'targetEnv':_0x4b3672};}
@@ -1,4 +1,4 @@
1
- export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
2
2
  export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
3
3
  export type DomainConfig = Partial<Record<DomainConfigField, string>>;
4
4
  /** Old domain keys accepted only while reading existing configuration. */
@@ -1 +1 @@
1
- const a206_0x47406f=a206_0x18bf;function a206_0x18bf(_0x277e60,_0x160473){_0x277e60=_0x277e60-0xc7;const _0x14c217=a206_0x14c2();let _0x18bf27=_0x14c217[_0x277e60];return _0x18bf27;}(function(_0x33e958,_0x49ff9f){const _0x1ad445=a206_0x18bf,_0x1b17e9=_0x33e958();while(!![]){try{const _0x519ee6=parseInt(_0x1ad445(0xda))/0x1*(-parseInt(_0x1ad445(0xd1))/0x2)+parseInt(_0x1ad445(0xf8))/0x3+parseInt(_0x1ad445(0xed))/0x4+parseInt(_0x1ad445(0xfa))/0x5+-parseInt(_0x1ad445(0xe0))/0x6+parseInt(_0x1ad445(0xe9))/0x7+-parseInt(_0x1ad445(0xd9))/0x8*(parseInt(_0x1ad445(0xdb))/0x9);if(_0x519ee6===_0x49ff9f)break;else _0x1b17e9['push'](_0x1b17e9['shift']());}catch(_0x161786){_0x1b17e9['push'](_0x1b17e9['shift']());}}}(a206_0x14c2,0x61fe9));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain','apiDomain','runtimeDomain','skillDomain',a206_0x47406f(0xcb),'appDomain',a206_0x47406f(0xf2),a206_0x47406f(0xf1)];const DOMAIN_FLAGS={'userDomain':a206_0x47406f(0xfb),'apiDomain':a206_0x47406f(0xf0),'runtimeDomain':a206_0x47406f(0xdc),'skillDomain':a206_0x47406f(0xe7),'kbDomain':a206_0x47406f(0xf6),'appDomain':a206_0x47406f(0xf3),'localDomain':a206_0x47406f(0xce),'certificateDomain':a206_0x47406f(0xeb)};function a206_0x14c2(){const _0x4534af=['object','hash','string','273696iCLAie','platformDomain','domain-config','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','password','isArray','parse','skill-domain','Invalid\x20','3030419emTomj','https:','certificate-domain','str','2559980qNHbwD','pathname','filter','api-domain','certificateDomain','localDomain','app-domain','cwd','Domain\x20config\x20file\x20not\x20found:\x20','kb-domain','trim','92073IweVUK','skillHubDomain','3861070PrGTGm','user-domain','origin','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','agentDomain',':\x20\x22','kbDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','keys','local-domain','length',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','8TrcTLG','username','validation','Invalid\x20domain\x20config\x20JSON:\x20','join','includes','Unsupported\x20domain\x20config\x20field(s):\x20','Allowed\x20fields:\x20','49144FkeumB','7053yIRCNE','2052aDvqVU','runtime-domain'];a206_0x14c2=function(){return _0x4534af;};return a206_0x14c2();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x47406f(0xc9),a206_0x47406f(0xe1),a206_0x47406f(0xf9)];export function normalizeDomainOrigin(_0x21a8ff,_0x2e0cc2){const _0x1ddcc0=a206_0x47406f;if(typeof _0x2e0cc2!==_0x1ddcc0(0xdf)||!_0x2e0cc2[_0x1ddcc0(0xf7)]())throw CliErrors[_0x1ddcc0(0xd3)](_0x1ddcc0(0xe8)+_0x21a8ff+_0x1ddcc0(0xd0));let _0x28716e;try{_0x28716e=new URL(_0x2e0cc2['trim']());}catch{throw CliErrors[_0x1ddcc0(0xd3)](_0x1ddcc0(0xe8)+_0x21a8ff+_0x1ddcc0(0xca)+_0x2e0cc2+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x28716e['protocol']!==_0x1ddcc0(0xea)||_0x28716e[_0x1ddcc0(0xd2)]||_0x28716e[_0x1ddcc0(0xe4)]||_0x28716e[_0x1ddcc0(0xee)]!=='/'&&_0x28716e[_0x1ddcc0(0xee)]!==''||_0x28716e['search']||_0x28716e[_0x1ddcc0(0xde)])throw CliErrors[_0x1ddcc0(0xd3)](_0x1ddcc0(0xe8)+_0x21a8ff+_0x1ddcc0(0xcc),_0x1ddcc0(0xe3));return _0x28716e[_0x1ddcc0(0xc7)];}export function readDomainConfig(_0x496087){const _0x12f5f5=a206_0x47406f,_0x18e78d=isAbsolute(_0x496087)?_0x496087:resolve(process[_0x12f5f5(0xf4)](),_0x496087);if(!existsSync(_0x18e78d))throw CliErrors['validation'](_0x12f5f5(0xf5)+_0x18e78d);let _0x525ee7;try{_0x525ee7=JSON[_0x12f5f5(0xe6)](readFileSync(_0x18e78d,'utf8'));}catch{throw CliErrors[_0x12f5f5(0xd3)](_0x12f5f5(0xd4)+_0x18e78d);}if(!_0x525ee7||typeof _0x525ee7!==_0x12f5f5(0xdd)||Array[_0x12f5f5(0xe5)](_0x525ee7))throw CliErrors[_0x12f5f5(0xd3)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x3337a7=_0x525ee7,_0x326fe4=Object['keys'](_0x3337a7)[_0x12f5f5(0xef)](_0x1108f0=>!DOMAIN_CONFIG_FIELDS[_0x12f5f5(0xd6)](_0x1108f0));if(_0x326fe4['length']>0x0)throw CliErrors[_0x12f5f5(0xd3)](_0x12f5f5(0xd7)+_0x326fe4[_0x12f5f5(0xd5)](',\x20'),_0x12f5f5(0xd8)+DOMAIN_CONFIG_FIELDS[_0x12f5f5(0xd5)](',\x20'));const _0x48e515={};for(const _0x213072 of DOMAIN_CONFIG_FIELDS){_0x3337a7[_0x213072]!==undefined&&(_0x48e515[_0x213072]=normalizeDomainOrigin(_0x213072,_0x3337a7[_0x213072]));}if(Object[_0x12f5f5(0xcd)](_0x48e515)[_0x12f5f5(0xcf)]===0x0)throw CliErrors[_0x12f5f5(0xd3)](_0x12f5f5(0xc8));return _0x48e515;}export function resolveDomainFlags(_0x255998){const _0xad7347=a206_0x47406f,_0x1bc70f=(_0x255998[_0xad7347(0xec)](_0xad7347(0xe2))||'')['trim'](),_0x7905a7=_0x1bc70f?readDomainConfig(_0x1bc70f):{};for(const _0x2cfad0 of DOMAIN_CONFIG_FIELDS){const _0x45ba61=(_0x255998['str'](DOMAIN_FLAGS[_0x2cfad0])||'')['trim']();if(_0x45ba61)_0x7905a7[_0x2cfad0]=normalizeDomainOrigin(_0x2cfad0,_0x45ba61);}return _0x7905a7;}
1
+ const a212_0x15538a=a212_0x2762;(function(_0x1117fd,_0xbc0e5a){const _0x157bd0=a212_0x2762,_0x262dd5=_0x1117fd();while(!![]){try{const _0x453426=parseInt(_0x157bd0(0x1d0))/0x1+parseInt(_0x157bd0(0x1ef))/0x2*(parseInt(_0x157bd0(0x1d5))/0x3)+parseInt(_0x157bd0(0x1cf))/0x4*(parseInt(_0x157bd0(0x1dc))/0x5)+parseInt(_0x157bd0(0x1e3))/0x6*(parseInt(_0x157bd0(0x1f5))/0x7)+parseInt(_0x157bd0(0x1e0))/0x8+parseInt(_0x157bd0(0x1db))/0x9*(parseInt(_0x157bd0(0x1d7))/0xa)+-parseInt(_0x157bd0(0x1dd))/0xb;if(_0x453426===_0xbc0e5a)break;else _0x262dd5['push'](_0x262dd5['shift']());}catch(_0xfe98b9){_0x262dd5['push'](_0x262dd5['shift']());}}}(a212_0x3b70,0xbf6c6));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a212_0x15538a(0x1c6),a212_0x15538a(0x1ea),a212_0x15538a(0x1ca),a212_0x15538a(0x1f4),'kbSearchDomain',a212_0x15538a(0x1ee),'localDomain',a212_0x15538a(0x1ce)];const DOMAIN_FLAGS={'userDomain':a212_0x15538a(0x1e6),'apiDomain':a212_0x15538a(0x1d6),'runtimeDomain':'runtime-domain','skillDomain':a212_0x15538a(0x1f0),'kbDomain':'kb-domain','kbSearchDomain':a212_0x15538a(0x1df),'appDomain':'app-domain','localDomain':a212_0x15538a(0x1de),'certificateDomain':a212_0x15538a(0x1cd)};function a212_0x3b70(){const _0x36ea2d=['213lwIXVe','api-domain','119230OpnNGS','validation','https:','parse','819hoKFgM','230450IShLum','36556245FWnIvs','local-domain','kb-search-domain','8087344HQvwvY','isArray','agentDomain','6bwIelM','platformDomain','username','user-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','skillHubDomain','Invalid\x20','runtimeDomain','password','length','keys','appDomain','17764udQjfI','skill-domain',':\x20\x22','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Allowed\x20fields:\x20','kbDomain','663236kzFyrb','string','Invalid\x20domain\x20config\x20JSON:\x20','domain-config','apiDomain','hash','trim','join','skillDomain','Domain\x20config\x20file\x20not\x20found:\x20','includes','certificate-domain','certificateDomain','28uJoSuo','963454jEeMeK','str','origin',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol'];a212_0x3b70=function(){return _0x36ea2d;};return a212_0x3b70();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x15538a(0x1e2),a212_0x15538a(0x1e4),a212_0x15538a(0x1e8)];export function normalizeDomainOrigin(_0xbdb5f9,_0x31686a){const _0x2acd9c=a212_0x15538a;if(typeof _0x31686a!==_0x2acd9c(0x1f6)||!_0x31686a[_0x2acd9c(0x1c8)]())throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x30e329;try{_0x30e329=new URL(_0x31686a[_0x2acd9c(0x1c8)]());}catch{throw CliErrors[_0x2acd9c(0x1d8)]('Invalid\x20'+_0xbdb5f9+_0x2acd9c(0x1f1)+_0x31686a+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x30e329[_0x2acd9c(0x1d4)]!==_0x2acd9c(0x1d9)||_0x30e329[_0x2acd9c(0x1e5)]||_0x30e329[_0x2acd9c(0x1eb)]||_0x30e329['pathname']!=='/'&&_0x30e329['pathname']!==''||_0x30e329['search']||_0x30e329[_0x2acd9c(0x1c7)])throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+_0x2acd9c(0x1d3),_0x2acd9c(0x1e7));return _0x30e329[_0x2acd9c(0x1d2)];}export function readDomainConfig(_0x4cd9e2){const _0x1d301a=a212_0x15538a,_0x4bb350=isAbsolute(_0x4cd9e2)?_0x4cd9e2:resolve(process['cwd'](),_0x4cd9e2);if(!existsSync(_0x4bb350))throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1cb)+_0x4bb350);let _0x3ddd66;try{_0x3ddd66=JSON[_0x1d301a(0x1da)](readFileSync(_0x4bb350,'utf8'));}catch{throw CliErrors['validation'](_0x1d301a(0x1f7)+_0x4bb350);}if(!_0x3ddd66||typeof _0x3ddd66!=='object'||Array[_0x1d301a(0x1e1)](_0x3ddd66))throw CliErrors[_0x1d301a(0x1d8)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x261e6d=_0x3ddd66,_0x213d82=Object[_0x1d301a(0x1ed)](_0x261e6d)['filter'](_0x316946=>!DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1cc)](_0x316946));if(_0x213d82[_0x1d301a(0x1ec)]>0x0)throw CliErrors[_0x1d301a(0x1d8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x213d82[_0x1d301a(0x1c9)](',\x20'),_0x1d301a(0x1f3)+DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1c9)](',\x20'));const _0x55ab02={};for(const _0x3d8e40 of DOMAIN_CONFIG_FIELDS){_0x261e6d[_0x3d8e40]!==undefined&&(_0x55ab02[_0x3d8e40]=normalizeDomainOrigin(_0x3d8e40,_0x261e6d[_0x3d8e40]));}if(Object[_0x1d301a(0x1ed)](_0x55ab02)[_0x1d301a(0x1ec)]===0x0)throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1f2));return _0x55ab02;}function a212_0x2762(_0xb719b8,_0x5755f1){_0xb719b8=_0xb719b8-0x1c5;const _0x3b70d8=a212_0x3b70();let _0x2762d7=_0x3b70d8[_0xb719b8];return _0x2762d7;}export function resolveDomainFlags(_0x5bd2e4){const _0x162c0b=a212_0x15538a,_0x3da20e=(_0x5bd2e4[_0x162c0b(0x1d1)](_0x162c0b(0x1c5))||'')[_0x162c0b(0x1c8)](),_0x3b0737=_0x3da20e?readDomainConfig(_0x3da20e):{};for(const _0x5af01b of DOMAIN_CONFIG_FIELDS){const _0x22ff24=(_0x5bd2e4[_0x162c0b(0x1d1)](DOMAIN_FLAGS[_0x5af01b])||'')[_0x162c0b(0x1c8)]();if(_0x22ff24)_0x3b0737[_0x5af01b]=normalizeDomainOrigin(_0x5af01b,_0x22ff24);}return _0x3b0737;}
@@ -1 +1 @@
1
- const a207_0x43a76a=a207_0x4eea;(function(_0x5ac74d,_0x4a3291){const _0x457e7d=a207_0x4eea,_0x6af5aa=_0x5ac74d();while(!![]){try{const _0x1ed872=parseInt(_0x457e7d(0x143))/0x1+parseInt(_0x457e7d(0x145))/0x2*(parseInt(_0x457e7d(0x13e))/0x3)+-parseInt(_0x457e7d(0x138))/0x4+parseInt(_0x457e7d(0x148))/0x5*(parseInt(_0x457e7d(0x139))/0x6)+parseInt(_0x457e7d(0x137))/0x7*(parseInt(_0x457e7d(0x141))/0x8)+-parseInt(_0x457e7d(0x13d))/0x9+-parseInt(_0x457e7d(0x147))/0xa*(parseInt(_0x457e7d(0x149))/0xb);if(_0x1ed872===_0x4a3291)break;else _0x6af5aa['push'](_0x6af5aa['shift']());}catch(_0x3c5314){_0x6af5aa['push'](_0x6af5aa['shift']());}}}(a207_0x1b3e,0x1e877));import{writeFileSync}from'node:fs';import{join}from'node:path';function a207_0x4eea(_0x19cd90,_0x2cb4a8){_0x19cd90=_0x19cd90-0x135;const _0x1b3ee0=a207_0x1b3e();let _0x4eeacc=_0x1b3ee0[_0x19cd90];return _0x4eeacc;}import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';function a207_0x1b3e(){const _0x386100=['lovrabet-project-routing/v1','stringify','497lsAZdj','918872MzgcYT','6RFrUUL','utf8','independent','official','195588kmYquP','26949XYeuuP','assets','rabetbase.routing.json','7568apiQpl','http://localhost','228163aLxWOg','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','52Yhlnpr','/cert/lovrabet-dev.json','887440wcmriz','1012930vlQvqY','44AdVPGx'];a207_0x1b3e=function(){return _0x386100;};return a207_0x1b3e();}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_ROUTING_FILE_NAME=a207_0x43a76a(0x140);export const PROJECT_ROUTING_PROTOCOL=a207_0x43a76a(0x135);export function getProjectRoutingManifest(){const _0xe43a24=a207_0x43a76a,_0x525fe6=getActiveRegion(),_0x242106=isIndependentDeployment(),_0x12469e=getOfficialRoutingProfile(_0x525fe6),_0x389956=getLocalDomain(),_0x39e0d1=getCertificateDomain();if(!!_0x389956!==!!_0x39e0d1)throw new Error(_0xe43a24(0x144));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x242106?_0xe43a24(0x13b):_0xe43a24(0x13c),'region':_0x242106?null:_0x525fe6,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x12469e[_0xe43a24(0x13f)],'local':_0x389956&&_0x39e0d1?{'origin':_0x389956,'certificateUrl':_0x39e0d1+_0xe43a24(0x146)}:_0x242106?{'origin':_0xe43a24(0x142)}:_0x12469e['local']};}export function writeProjectRoutingManifest(_0x483c09){const _0x509b04=a207_0x43a76a,_0x263ea7=getProjectRoutingManifest(),_0xe1f04c=join(_0x483c09,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0xe1f04c,JSON[_0x509b04(0x136)](_0x263ea7,null,0x2)+'\x0a',_0x509b04(0x13a)),{'path':_0xe1f04c,'manifest':_0x263ea7};}
1
+ (function(_0x447964,_0x181a70){const _0x278ee3=a213_0x34cf,_0x30d1eb=_0x447964();while(!![]){try{const _0x2cb940=parseInt(_0x278ee3(0xe6))/0x1*(parseInt(_0x278ee3(0xe0))/0x2)+-parseInt(_0x278ee3(0xea))/0x3+parseInt(_0x278ee3(0xde))/0x4*(-parseInt(_0x278ee3(0xdd))/0x5)+parseInt(_0x278ee3(0xe9))/0x6*(parseInt(_0x278ee3(0xe2))/0x7)+-parseInt(_0x278ee3(0xeb))/0x8*(parseInt(_0x278ee3(0xe8))/0x9)+parseInt(_0x278ee3(0xdc))/0xa+parseInt(_0x278ee3(0xdb))/0xb;if(_0x2cb940===_0x181a70)break;else _0x30d1eb['push'](_0x30d1eb['shift']());}catch(_0x389a25){_0x30d1eb['push'](_0x30d1eb['shift']());}}}(a213_0x2eed,0x20bbc));import{writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';function a213_0x2eed(){const _0x544df5=['421998Nbohja','466521UqgAMm','8YCAeBd','assets','stringify','196559AjhQUp','2648510AdeVxZ','60ETePFT','29180WDLPXn','/cert/lovrabet-dev.json','22patUeT','local','7XzMcDS','independent','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','utf8','16457vmTPhr','http://localhost','1412613KFwaPy'];a213_0x2eed=function(){return _0x544df5;};return a213_0x2eed();}export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';export const PROJECT_ROUTING_PROTOCOL='lovrabet-project-routing/v1';export function getProjectRoutingManifest(){const _0x247cd4=a213_0x34cf,_0x59a678=getActiveRegion(),_0x376cdb=isIndependentDeployment(),_0x227ab8=getOfficialRoutingProfile(_0x59a678),_0x2d631d=getLocalDomain(),_0x58f713=getCertificateDomain();if(!!_0x2d631d!==!!_0x58f713)throw new Error(_0x247cd4(0xe4));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x376cdb?_0x247cd4(0xe3):'official','region':_0x376cdb?null:_0x59a678,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x227ab8[_0x247cd4(0xd9)],'local':_0x2d631d&&_0x58f713?{'origin':_0x2d631d,'certificateUrl':_0x58f713+_0x247cd4(0xdf)}:_0x376cdb?{'origin':_0x247cd4(0xe7)}:_0x227ab8[_0x247cd4(0xe1)]};}function a213_0x34cf(_0x49693b,_0x59bb45){_0x49693b=_0x49693b-0xd9;const _0x2eed8b=a213_0x2eed();let _0x34cf27=_0x2eed8b[_0x49693b];return _0x34cf27;}export function writeProjectRoutingManifest(_0xe16ffb){const _0x349d53=a213_0x34cf,_0x41c63b=getProjectRoutingManifest(),_0x1011b6=join(_0xe16ffb,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x1011b6,JSON[_0x349d53(0xda)](_0x41c63b,null,0x2)+'\x0a',_0x349d53(0xe5)),{'path':_0x1011b6,'manifest':_0x41c63b};}
@@ -1,6 +1,6 @@
1
1
  import type { FlagDef } from "../framework/types.js";
2
2
  export { DEFAULT_CONFIG_VALUES } from "../constant/defaults.js";
3
- export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
3
+ export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
4
4
  export interface ConfigMetadataFields {
5
5
  version?: string;
6
6
  createdAt?: string;
@@ -1 +1 @@
1
- const a208_0xabd620=a208_0x6a67;(function(_0x26048e,_0x4d0d7d){const _0x3c7590=a208_0x6a67,_0x5421f8=_0x26048e();while(!![]){try{const _0x624f45=-parseInt(_0x3c7590(0x1ad))/0x1+-parseInt(_0x3c7590(0x192))/0x2*(-parseInt(_0x3c7590(0x1a4))/0x3)+parseInt(_0x3c7590(0x19d))/0x4*(-parseInt(_0x3c7590(0x1b6))/0x5)+-parseInt(_0x3c7590(0x1a1))/0x6+parseInt(_0x3c7590(0x1b0))/0x7+parseInt(_0x3c7590(0x18d))/0x8*(parseInt(_0x3c7590(0x1af))/0x9)+parseInt(_0x3c7590(0x1ac))/0xa;if(_0x624f45===_0x4d0d7d)break;else _0x5421f8['push'](_0x5421f8['shift']());}catch(_0x35c72c){_0x5421f8['push'](_0x5421f8['shift']());}}}(a208_0x2de4,0xa2d0b));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';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a208_0xabd620(0x1a2),'accessKey','locale',a208_0xabd620(0x1b3),a208_0xabd620(0x191),'region',a208_0xabd620(0x1b2),a208_0xabd620(0x1b5),'runtimeDomain',a208_0xabd620(0x196),a208_0xabd620(0x1bb),a208_0xabd620(0x18e),a208_0xabd620(0x1a3),a208_0xabd620(0x19f)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a208_0xabd620(0x1b7),'locale',a208_0xabd620(0x1b3),a208_0xabd620(0x1a2),'accessKey','apiDir',a208_0xabd620(0x1aa),a208_0xabd620(0x1b2),a208_0xabd620(0x1b5),'runtimeDomain',a208_0xabd620(0x196),a208_0xabd620(0x1bb),'appDomain',a208_0xabd620(0x1a3),a208_0xabd620(0x19f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x474d2a){return[..._0x474d2a]['join'](',\x20');}function a208_0x2de4(){const _0x1f3b6a=['279ibpLak','4261124LyoIQX','defaultApp','userDomain','format','accessKey','apiDomain','685LUHXCh','env','entries','trim','Target\x20environment','kbDomain','apps','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','118056AGBGcE','appDomain','inherit','keys','riskLevel','22YEnTKP','Config\x20key\x20(','length','map','skillDomain','locale','app','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Risk\x20level','pageSize','has','31972HmziIa','filter','certificateDomain','Default\x20page\x20size','2567808FtXYsJ','cookie','localDomain','35583peyxrA','string','toLowerCase','zh-CN','en-US','defaultFormat','region','apiDir','18112980DzfWFE','818068rmqfAJ','Auth\x20cookie'];a208_0x2de4=function(){return _0x1f3b6a;};return a208_0x2de4();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x7a535c){const _0x53fd21=a208_0xabd620;return TOP_LEVEL_CONFIG_KEYS[_0x53fd21(0x19c)](_0x7a535c);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x38e8ee=a208_0xabd620;return _0x38e8ee(0x193)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a208_0xabd620(0x1b7),'apiDir':a208_0xabd620(0x1ab),'cookie':a208_0xabd620(0x1a2),'accessKey':'accessKey','defaultFormat':'format','pageSize':a208_0xabd620(0x19b),'riskLevel':a208_0xabd620(0x191),'locale':a208_0xabd620(0x197)};export function getAppProfileFlagDefs(){const _0x4b7ac3=a208_0xabd620;return[{'name':_0x4b7ac3(0x1b7),'type':_0x4b7ac3(0x1a5),'description':_0x4b7ac3(0x1ba),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4b7ac3(0x1ab),'type':'string','description':'API\x20directory\x20path'},{'name':_0x4b7ac3(0x1a2),'type':_0x4b7ac3(0x1a5),'description':_0x4b7ac3(0x1ae),'hidden':!![]},{'name':_0x4b7ac3(0x1b4),'type':_0x4b7ac3(0x1a5),'description':'Access\x20key','hidden':!![]},{'name':_0x4b7ac3(0x1a9),'type':_0x4b7ac3(0x1a5),'description':_0x4b7ac3(0x199),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x4b7ac3(0x1a0)},{'name':_0x4b7ac3(0x191),'type':_0x4b7ac3(0x1a5),'description':_0x4b7ac3(0x19a),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x4b7ac3(0x197),'type':'string','description':_0x4b7ac3(0x18c)}];}export function collectAppProfileOverrides(_0x5a5745){const _0x358bfc=a208_0xabd620,_0x38eb58={};for(const [_0x3f5f59,_0x1bc58b]of Object[_0x358bfc(0x1b8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x3d22dd=_0x5a5745(_0x3f5f59);if(!_0x3d22dd)continue;_0x38eb58[_0x1bc58b]=_0x1bc58b==='pageSize'?Number(_0x3d22dd):_0x3d22dd;}return _0x38eb58;}export function buildAppProfileListFields(_0x4704b5){const _0x59a60b=a208_0xabd620;return{'env':_0x4704b5[_0x59a60b(0x1b7)]??null,'apiDir':_0x4704b5['apiDir']??null,'hasCookie':!!_0x4704b5[_0x59a60b(0x1a2)],'hasAccessKey':!!_0x4704b5['accessKey'],'format':_0x4704b5[_0x59a60b(0x1b3)]??null,'pageSize':_0x4704b5[_0x59a60b(0x19b)]??null,'riskLevel':_0x4704b5['riskLevel']??null,'locale':_0x4704b5[_0x59a60b(0x197)]??null};}export function buildAppDoctorFields(_0x1f7d2b,_0x146911){const _0x5d6ff1=a208_0xabd620;return{'env':{'value':_0x1f7d2b[_0x5d6ff1(0x1b7)]||_0x146911[_0x5d6ff1(0x1b7)],'source':_0x1f7d2b[_0x5d6ff1(0x1b7)]?'app':'inherit'},'apiDir':{'value':_0x1f7d2b[_0x5d6ff1(0x1ab)]||_0x146911[_0x5d6ff1(0x1ab)],'source':_0x1f7d2b['apiDir']?_0x5d6ff1(0x198):_0x5d6ff1(0x18f)},'cookie':{'value':_0x1f7d2b[_0x5d6ff1(0x1a2)]||_0x146911[_0x5d6ff1(0x1a2)],'source':_0x1f7d2b[_0x5d6ff1(0x1a2)]?_0x5d6ff1(0x198):'inherit'},'accessKey':{'value':_0x1f7d2b[_0x5d6ff1(0x1b4)]||_0x146911[_0x5d6ff1(0x1b4)],'source':_0x1f7d2b['accessKey']?_0x5d6ff1(0x198):'inherit'}};}export function buildCanonicalAppConfig(_0x1f17b8,_0x305c93){const _0x17802c=a208_0xabd620,_0x224816=_0x1f17b8[_0x17802c(0x195)](_0x27fa8a=>String(_0x27fa8a||'')[_0x17802c(0x1b9)]())[_0x17802c(0x19e)](Boolean);if(_0x224816[_0x17802c(0x194)]===0x0)return{};const _0x2c2ffa={};for(const _0x138c6f of _0x224816){_0x2c2ffa[_0x138c6f]=_0x305c93?{'appcode':_0x138c6f,'env':_0x305c93}:{'appcode':_0x138c6f};}return _0x224816['length']>0x1?{'apps':_0x2c2ffa,'defaultApp':_0x224816[0x0]}:{'apps':_0x2c2ffa};}function a208_0x6a67(_0x5b78ca,_0x2484cd){_0x5b78ca=_0x5b78ca-0x18c;const _0x2de48d=a208_0x2de4();let _0x6a6721=_0x2de48d[_0x5b78ca];return _0x6a6721;}export function normalizeStoredDefaultApp(_0x543ce6,_0x4bb1a3){const _0x209a4f=a208_0xabd620,_0x112270=_0x543ce6[_0x209a4f(0x1bc)]&&typeof _0x543ce6[_0x209a4f(0x1bc)]==='object'?_0x543ce6['apps']:{},_0x402630=Object['keys'](_0x112270);if(_0x402630[_0x209a4f(0x194)]<=0x1)return delete _0x543ce6['defaultApp'],undefined;const _0x1c05d3=typeof _0x543ce6['defaultApp']==='string'&&_0x112270[_0x543ce6[_0x209a4f(0x1b1)]]?_0x543ce6['defaultApp']:undefined,_0x1aa7a5=_0x4bb1a3&&_0x112270[_0x4bb1a3]?_0x4bb1a3:_0x1c05d3;if(_0x1aa7a5)return _0x543ce6['defaultApp']=_0x1aa7a5,_0x1aa7a5;return delete _0x543ce6[_0x209a4f(0x1b1)],undefined;}export function buildCanonicalProjectConfig(_0x25c42c,_0x1598e3){const _0x43c488=a208_0xabd620,{appCodes:appCodes=[],env:_0x3de822,metadata:_0x2de40b}=_0x1598e3,_0x1f9202={..._0x25c42c,..._0x2de40b||{}};delete _0x1f9202['appcode'],delete _0x1f9202[_0x43c488(0x198)];if(_0x3de822)_0x1f9202['env']=_0x3de822;else!_0x1f9202['env']&&(_0x1f9202[_0x43c488(0x1b7)]=DEFAULT_CONFIG_VALUES[_0x43c488(0x1b7)]);const _0x5c773e=buildCanonicalAppConfig(appCodes,_0x1f9202[_0x43c488(0x1b7)]);if(Object[_0x43c488(0x190)](_0x5c773e)['length']>0x0){_0x1f9202['apps']=_0x5c773e['apps'];if(_0x5c773e[_0x43c488(0x1b1)])_0x1f9202['defaultApp']=_0x5c773e[_0x43c488(0x1b1)];else delete _0x1f9202[_0x43c488(0x1b1)];}return _0x1f9202;}const LOCALE_MAP={'zh':a208_0xabd620(0x1a7),'zh-cn':a208_0xabd620(0x1a7),'zh_cn':a208_0xabd620(0x1a7),'en':a208_0xabd620(0x1a8),'en-us':a208_0xabd620(0x1a8),'en_us':'en-US'};export function normalizeLocale(_0x3422d0){const _0x17d33e=a208_0xabd620;if(!_0x3422d0)return null;return LOCALE_MAP[_0x3422d0[_0x17d33e(0x1a6)]()]??null;}
1
+ const a214_0x5cf831=a214_0x59af;function a214_0x59af(_0x2f39e1,_0x5831a9){_0x2f39e1=_0x2f39e1-0x1b6;const _0x50dd13=a214_0x50dd();let _0x59afd6=_0x50dd13[_0x2f39e1];return _0x59afd6;}(function(_0x239883,_0x36af06){const _0x58ecaf=a214_0x59af,_0x23846c=_0x239883();while(!![]){try{const _0x1ecc85=parseInt(_0x58ecaf(0x1db))/0x1*(-parseInt(_0x58ecaf(0x1d8))/0x2)+-parseInt(_0x58ecaf(0x1bb))/0x3+-parseInt(_0x58ecaf(0x1d3))/0x4*(-parseInt(_0x58ecaf(0x1cf))/0x5)+-parseInt(_0x58ecaf(0x1b6))/0x6*(parseInt(_0x58ecaf(0x1ce))/0x7)+parseInt(_0x58ecaf(0x1d0))/0x8+parseInt(_0x58ecaf(0x1e6))/0x9+parseInt(_0x58ecaf(0x1d7))/0xa*(parseInt(_0x58ecaf(0x1e2))/0xb);if(_0x1ecc85===_0x36af06)break;else _0x23846c['push'](_0x23846c['shift']());}catch(_0x2f4b4a){_0x23846c['push'](_0x23846c['shift']());}}}(a214_0x50dd,0x976c3));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';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey','locale',a214_0x5cf831(0x1d1),a214_0x5cf831(0x1d2),a214_0x5cf831(0x1c4),a214_0x5cf831(0x1cc),a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain','appDomain',a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x5cf831(0x1ba),'env',a214_0x5cf831(0x1dc),a214_0x5cf831(0x1d1),a214_0x5cf831(0x1e5),a214_0x5cf831(0x1cd),a214_0x5cf831(0x1e4),a214_0x5cf831(0x1c4),'userDomain',a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain',a214_0x5cf831(0x1c1),a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25bb66){const _0x17bc2a=a214_0x5cf831;return[..._0x25bb66][_0x17bc2a(0x1d4)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x360e3e){const _0x325086=a214_0x5cf831;return TOP_LEVEL_CONFIG_KEYS[_0x325086(0x1bf)](_0x360e3e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3a76e2=a214_0x5cf831;return _0x3a76e2(0x1e7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a214_0x5cf831(0x1be),'apiDir':a214_0x5cf831(0x1e4),'cookie':a214_0x5cf831(0x1e5),'accessKey':a214_0x5cf831(0x1cd),'defaultFormat':a214_0x5cf831(0x1d1),'pageSize':a214_0x5cf831(0x1eb),'riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x120f6c=a214_0x5cf831;return[{'name':_0x120f6c(0x1be),'type':_0x120f6c(0x1e8),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x120f6c(0x1e4),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c5)},{'name':_0x120f6c(0x1e5),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c0),'hidden':!![]},{'name':_0x120f6c(0x1cd),'type':'string','description':_0x120f6c(0x1c3),'hidden':!![]},{'name':'defaultFormat','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c8),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x120f6c(0x1eb),'type':_0x120f6c(0x1dd),'description':_0x120f6c(0x1d6)},{'name':'riskLevel','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1cb),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1e1)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0xf1e87f){const _0x5c28bd=a214_0x5cf831,_0x3717dc={};for(const [_0x403b6f,_0x4ada63]of Object[_0x5c28bd(0x1ca)](APP_PROFILE_FLAG_KEY_MAP)){const _0x49d61d=_0xf1e87f(_0x403b6f);if(!_0x49d61d)continue;_0x3717dc[_0x4ada63]=_0x4ada63===_0x5c28bd(0x1eb)?Number(_0x49d61d):_0x49d61d;}const _0x326371=collectDeploymentSyncProfile(_0xf1e87f);if(_0x326371)_0x3717dc[_0x5c28bd(0x1ea)]=_0x326371;return _0x3717dc;}function a214_0x50dd(){const _0x3dca2a=['10EueKmj','1787768PvOYBe','format','riskLevel','2046804pGgFbW','join','filter','Default\x20page\x20size','10axKfLR','2ComoAt','skillDomain','certificateDomain','755215xmxZyh','locale','number','kbDomain','keys','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','13555003LGqRzu','apps','apiDir','cookie','500697bgHzax','Config\x20key\x20(','string','apiDomain','deploymentSync','pageSize','6nbwsRl','inherit','en-US','app','appcode','2678382GnvuMg','toLowerCase','runtimeDomain','env','has','Auth\x20cookie','appDomain','trim','Access\x20key','region','API\x20directory\x20path','localDomain','zh-CN','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','length','entries','Risk\x20level','userDomain','accessKey','1865801wDEjhj'];a214_0x50dd=function(){return _0x3dca2a;};return a214_0x50dd();}export function buildAppProfileListFields(_0x330a95){const _0xba7299=a214_0x5cf831;return{'env':_0x330a95[_0xba7299(0x1be)]??null,'apiDir':_0x330a95['apiDir']??null,'hasCookie':!!_0x330a95[_0xba7299(0x1e5)],'hasAccessKey':!!_0x330a95['accessKey'],'format':_0x330a95['format']??null,'pageSize':_0x330a95[_0xba7299(0x1eb)]??null,'riskLevel':_0x330a95[_0xba7299(0x1d2)]??null,'locale':_0x330a95[_0xba7299(0x1dc)]??null,'deploymentSync':_0x330a95[_0xba7299(0x1ea)]??null};}export function buildAppDoctorFields(_0x36f353,_0x30f4a7){const _0x11425d=a214_0x5cf831;return{'env':{'value':_0x36f353[_0x11425d(0x1be)]||_0x30f4a7[_0x11425d(0x1be)],'source':_0x36f353[_0x11425d(0x1be)]?'app':'inherit'},'apiDir':{'value':_0x36f353[_0x11425d(0x1e4)]||_0x30f4a7[_0x11425d(0x1e4)],'source':_0x36f353['apiDir']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'cookie':{'value':_0x36f353[_0x11425d(0x1e5)]||_0x30f4a7['cookie'],'source':_0x36f353['cookie']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'accessKey':{'value':_0x36f353[_0x11425d(0x1cd)]||_0x30f4a7[_0x11425d(0x1cd)],'source':_0x36f353[_0x11425d(0x1cd)]?'app':_0x11425d(0x1b7)}};}export function buildCanonicalAppConfig(_0x5b4c4c,_0x1e035b){const _0x40a698=a214_0x5cf831,_0x4c4e59=_0x5b4c4c['map'](_0x386c81=>String(_0x386c81||'')[_0x40a698(0x1c2)]())[_0x40a698(0x1d5)](Boolean);if(_0x4c4e59[_0x40a698(0x1c9)]===0x0)return{};const _0x163088={};for(const _0xef67c0 of _0x4c4e59){_0x163088[_0xef67c0]=_0x1e035b?{'appcode':_0xef67c0,'env':_0x1e035b}:{'appcode':_0xef67c0};}return _0x4c4e59[_0x40a698(0x1c9)]>0x1?{'apps':_0x163088,'defaultApp':_0x4c4e59[0x0]}:{'apps':_0x163088};}export function normalizeStoredDefaultApp(_0x42384a,_0x24517f){const _0x49b73f=a214_0x5cf831,_0x313e5e=_0x42384a[_0x49b73f(0x1e3)]&&typeof _0x42384a['apps']==='object'?_0x42384a[_0x49b73f(0x1e3)]:{},_0x18f967=Object['keys'](_0x313e5e);if(_0x18f967[_0x49b73f(0x1c9)]<=0x1)return delete _0x42384a[_0x49b73f(0x1e0)],undefined;const _0x34e793=typeof _0x42384a[_0x49b73f(0x1e0)]===_0x49b73f(0x1e8)&&_0x313e5e[_0x42384a[_0x49b73f(0x1e0)]]?_0x42384a[_0x49b73f(0x1e0)]:undefined,_0x2f6787=_0x24517f&&_0x313e5e[_0x24517f]?_0x24517f:_0x34e793;if(_0x2f6787)return _0x42384a[_0x49b73f(0x1e0)]=_0x2f6787,_0x2f6787;return delete _0x42384a['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x882260,_0x2d0620){const _0x28f7f3=a214_0x5cf831,{appCodes:appCodes=[],env:_0x4bddc7,metadata:_0x9e2d12}=_0x2d0620,_0x5da6c2={..._0x882260,..._0x9e2d12||{}};delete _0x5da6c2[_0x28f7f3(0x1ba)],delete _0x5da6c2[_0x28f7f3(0x1b9)];if(_0x4bddc7)_0x5da6c2[_0x28f7f3(0x1be)]=_0x4bddc7;else!_0x5da6c2[_0x28f7f3(0x1be)]&&(_0x5da6c2['env']=DEFAULT_CONFIG_VALUES['env']);const _0x1d0f71=buildCanonicalAppConfig(appCodes,_0x5da6c2['env']);if(Object[_0x28f7f3(0x1df)](_0x1d0f71)['length']>0x0){_0x5da6c2['apps']=_0x1d0f71[_0x28f7f3(0x1e3)];if(_0x1d0f71[_0x28f7f3(0x1e0)])_0x5da6c2['defaultApp']=_0x1d0f71[_0x28f7f3(0x1e0)];else delete _0x5da6c2[_0x28f7f3(0x1e0)];}return _0x5da6c2;}const LOCALE_MAP={'zh':a214_0x5cf831(0x1c7),'zh-cn':a214_0x5cf831(0x1c7),'zh_cn':a214_0x5cf831(0x1c7),'en':a214_0x5cf831(0x1b8),'en-us':a214_0x5cf831(0x1b8),'en_us':a214_0x5cf831(0x1b8)};export function normalizeLocale(_0x4e0c57){const _0xf9d877=a214_0x5cf831;if(!_0x4e0c57)return null;return LOCALE_MAP[_0x4e0c57[_0xf9d877(0x1bc)]()]??null;}
@@ -1 +1 @@
1
- const a209_0x2039f5=a209_0x5f58;function a209_0x5f58(_0x2836f5,_0xb57d9e){_0x2836f5=_0x2836f5-0xf5;const _0x2eb772=a209_0x2eb7();let _0x5f585b=_0x2eb772[_0x2836f5];return _0x5f585b;}(function(_0x2c5df7,_0x12e85f){const _0xd47ff6=a209_0x5f58,_0x3749b3=_0x2c5df7();while(!![]){try{const _0x5798f5=parseInt(_0xd47ff6(0xf9))/0x1*(parseInt(_0xd47ff6(0x101))/0x2)+-parseInt(_0xd47ff6(0xfb))/0x3*(parseInt(_0xd47ff6(0xf8))/0x4)+parseInt(_0xd47ff6(0xf7))/0x5*(-parseInt(_0xd47ff6(0xf5))/0x6)+-parseInt(_0xd47ff6(0xfc))/0x7+-parseInt(_0xd47ff6(0xfa))/0x8+-parseInt(_0xd47ff6(0x100))/0x9*(-parseInt(_0xd47ff6(0xf6))/0xa)+-parseInt(_0xd47ff6(0x102))/0xb*(-parseInt(_0xd47ff6(0xff))/0xc);if(_0x5798f5===_0x12e85f)break;else _0x3749b3['push'](_0x3749b3['shift']());}catch(_0x24573e){_0x3749b3['push'](_0x3749b3['shift']());}}}(a209_0x2eb7,0xcbd19));export const RABETBASE_CDN_BASE_URL=a209_0x2039f5(0xfe);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a209_0x2039f5(0xfd);function a209_0x2eb7(){const _0x224817=['https://g.lovrabet.com/dist/rabetbase-cli','2448HHXgLI','72YyyFdE','376754tJNPzR','78562rgcwgN','167844OOcTdY','163140vtGOON','25coDWrP','32804KqbiMh','6qysPCs','1560784ggIyre','219Imosna','6644820BHwcLX','/config/index.json'];a209_0x2eb7=function(){return _0x224817;};return a209_0x2eb7();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
1
+ function a215_0x4581(){const _0x534c22=['4729398NRNNRp','1823814jQpgSg','917922IQtmTq','374375gYlUeE','4bEYtaD','/templates/projects','/config/index.json','6164949nfZcIO','https://g.lovrabet.com/dist/rabetbase-cli','1691830HIAajn','2869570ULDQns','4fjfRDx','8daktuU'];a215_0x4581=function(){return _0x534c22;};return a215_0x4581();}const a215_0x23cf2c=a215_0x133f;(function(_0x19d336,_0x22aaa8){const _0xa62420=a215_0x133f,_0x30b184=_0x19d336();while(!![]){try{const _0x5ebb5a=-parseInt(_0xa62420(0x181))/0x1+parseInt(_0xa62420(0x182))/0x2*(-parseInt(_0xa62420(0x180))/0x3)+parseInt(_0xa62420(0x189))/0x4*(parseInt(_0xa62420(0x187))/0x5)+parseInt(_0xa62420(0x18b))/0x6+parseInt(_0xa62420(0x185))/0x7*(parseInt(_0xa62420(0x18a))/0x8)+-parseInt(_0xa62420(0x18c))/0x9+-parseInt(_0xa62420(0x188))/0xa;if(_0x5ebb5a===_0x22aaa8)break;else _0x30b184['push'](_0x30b184['shift']());}catch(_0x1a3d98){_0x30b184['push'](_0x30b184['shift']());}}}(a215_0x4581,0x81bb4));export const RABETBASE_CDN_BASE_URL=a215_0x23cf2c(0x186);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x184);function a215_0x133f(_0x5df91b,_0x2abb78){_0x5df91b=_0x5df91b-0x180;const _0x458189=a215_0x4581();let _0x133fe9=_0x458189[_0x5df91b];return _0x133fe9;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x183);
@@ -1 +1 @@
1
- const a210_0x2609dc=a210_0x53d4;(function(_0x288504,_0x22d835){const _0xe1d59=a210_0x53d4,_0x156858=_0x288504();while(!![]){try{const _0x4449b5=-parseInt(_0xe1d59(0x9d))/0x1*(-parseInt(_0xe1d59(0xa3))/0x2)+parseInt(_0xe1d59(0xb6))/0x3*(-parseInt(_0xe1d59(0x10f))/0x4)+-parseInt(_0xe1d59(0xdc))/0x5*(parseInt(_0xe1d59(0xf3))/0x6)+parseInt(_0xe1d59(0x105))/0x7*(parseInt(_0xe1d59(0xde))/0x8)+-parseInt(_0xe1d59(0xc6))/0x9*(parseInt(_0xe1d59(0x93))/0xa)+parseInt(_0xe1d59(0xef))/0xb*(-parseInt(_0xe1d59(0xe7))/0xc)+parseInt(_0xe1d59(0xee))/0xd*(parseInt(_0xe1d59(0xf1))/0xe);if(_0x4449b5===_0x22d835)break;else _0x156858['push'](_0x156858['shift']());}catch(_0x41dd0e){_0x156858['push'](_0x156858['shift']());}}}(a210_0xb20c,0x9b0af));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a210_0x2609dc(0xbd);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a210_0x2609dc(0xe1),'description':'Override\x20appcode','hint':a210_0x2609dc(0xa5)},{'name':'app','meowKey':a210_0x2609dc(0xc0),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a210_0x2609dc(0x10e)},{'name':a210_0x2609dc(0xbe),'meowKey':a210_0x2609dc(0xbe),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb5),'hint':a210_0x2609dc(0xff)},{'name':a210_0x2609dc(0xac),'meowKey':a210_0x2609dc(0xac),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb2),'hint':a210_0x2609dc(0xa4)},{'name':'jq','meowKey':'jq','type':a210_0x2609dc(0xe1),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a210_0x2609dc(0xb4)},{'name':'dry-run','meowKey':a210_0x2609dc(0xf8),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xb3)},{'name':a210_0x2609dc(0xd5),'meowKey':a210_0x2609dc(0xd5),'type':'boolean','description':a210_0x2609dc(0xe9)},{'name':a210_0x2609dc(0xf6),'meowKey':'nonInteractive','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xd7)},{'name':a210_0x2609dc(0xf9),'meowKey':a210_0x2609dc(0xf9),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xc4)},{'name':a210_0x2609dc(0xae),'meowKey':a210_0x2609dc(0xae),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a210_0x2609dc(0xb1),'hidden':!![]},{'name':a210_0x2609dc(0xc8),'meowKey':a210_0x2609dc(0xc8),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xf7)},{'name':a210_0x2609dc(0xe3),'meowKey':a210_0x2609dc(0xe3),'type':a210_0x2609dc(0xe1),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a210_0x2609dc(0xd2)},{'name':a210_0x2609dc(0x9e),'meowKey':a210_0x2609dc(0x9e),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x10b),'hidden':!![]},{'name':a210_0x2609dc(0x99),'meowKey':a210_0x2609dc(0x99),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xec),'hidden':!![]},{'name':a210_0x2609dc(0x9a),'meowKey':'query','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x96),'hidden':!![]},{'name':a210_0x2609dc(0xad),'meowKey':a210_0x2609dc(0xad),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x110),'hidden':!![]},{'name':a210_0x2609dc(0xaa),'meowKey':a210_0x2609dc(0xaa),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xe6),'hidden':!![]},{'name':a210_0x2609dc(0x92),'meowKey':'watch','type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':a210_0x2609dc(0xc9),'meowKey':a210_0x2609dc(0xc9),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xe5),'hidden':!![]},{'name':a210_0x2609dc(0xd8),'meowKey':a210_0x2609dc(0xd8),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb9),'hidden':!![]},{'name':'datasetcode','meowKey':a210_0x2609dc(0xcd),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a210_0x2609dc(0xbf),'meowKey':'all','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xcb),'hidden':!![]},{'name':a210_0x2609dc(0xfb),'meowKey':'enableBffSave','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xd9),'hidden':!![]},{'name':'id','meowKey':'id','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x9c),'hidden':!![]},{'name':a210_0x2609dc(0xa8),'meowKey':a210_0x2609dc(0xa8),'type':a210_0x2609dc(0xe1),'description':'Type\x20filter','hidden':!![]},{'name':a210_0x2609dc(0xa1),'meowKey':a210_0x2609dc(0xa1),'type':a210_0x2609dc(0xe1),'description':'File\x20path','hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a210_0x2609dc(0xe1),'description':'SQL\x20code','hidden':!![]},{'name':'sql-name','meowKey':a210_0x2609dc(0x8d),'type':'string','description':a210_0x2609dc(0x111),'hidden':!![]},{'name':a210_0x2609dc(0xaf),'meowKey':a210_0x2609dc(0xaf),'type':'string','description':a210_0x2609dc(0x111),'hidden':!![]},{'name':a210_0x2609dc(0xb7),'meowKey':'dbId','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x112),'hidden':!![]},{'name':a210_0x2609dc(0xcc),'meowKey':'dbid','type':a210_0x2609dc(0xe1),'description':'DB\x20ID','hidden':!![]},{'name':a210_0x2609dc(0xfd),'meowKey':a210_0x2609dc(0xfd),'type':'string','description':a210_0x2609dc(0xce),'hidden':!![]},{'name':a210_0x2609dc(0x100),'meowKey':a210_0x2609dc(0xdb),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xbb),'hidden':!![]},{'name':a210_0x2609dc(0xd6),'meowKey':a210_0x2609dc(0xd6),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xdf),'hidden':!![]},{'name':a210_0x2609dc(0x9b),'meowKey':a210_0x2609dc(0x9b),'type':'string','description':a210_0x2609dc(0xc5),'hidden':!![]},{'name':a210_0x2609dc(0xeb),'meowKey':a210_0x2609dc(0xeb),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xbc),'hidden':!![]},{'name':a210_0x2609dc(0x10c),'meowKey':a210_0x2609dc(0x10c),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a210_0x2609dc(0x107),'type':a210_0x2609dc(0xe1),'description':'SQL\x20string','hidden':!![]},{'name':a210_0x2609dc(0xe2),'meowKey':a210_0x2609dc(0xe2),'type':a210_0x2609dc(0xe1),'description':'Schemas','hidden':!![]},{'name':a210_0x2609dc(0xca),'meowKey':'operation','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xd3),'hidden':!![]},{'name':'target','meowKey':a210_0x2609dc(0xda),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xe0),'hidden':!![]},{'name':a210_0x2609dc(0xa6),'meowKey':a210_0x2609dc(0xf5),'type':'boolean','description':a210_0x2609dc(0xdd),'hidden':!![]},{'name':a210_0x2609dc(0xc2),'meowKey':a210_0x2609dc(0xc2),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xfa),'hidden':!![]},{'name':a210_0x2609dc(0x94),'meowKey':a210_0x2609dc(0x94),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x91),'hidden':!![]},{'name':a210_0x2609dc(0x8f),'meowKey':a210_0x2609dc(0x8f),'type':'string','description':a210_0x2609dc(0x10a),'hidden':!![]},{'name':a210_0x2609dc(0x90),'meowKey':a210_0x2609dc(0x90),'type':a210_0x2609dc(0xea),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a210_0x2609dc(0xf2),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x106),'hidden':!![]},{'name':a210_0x2609dc(0x98),'meowKey':a210_0x2609dc(0x98),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xf0),'hidden':!![]},{'name':a210_0x2609dc(0xa2),'meowKey':a210_0x2609dc(0xa2),'type':a210_0x2609dc(0xea),'description':'Force\x20overwrite','hidden':!![]},{'name':a210_0x2609dc(0xd4),'meowKey':a210_0x2609dc(0xd4),'type':a210_0x2609dc(0xea),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a210_0x2609dc(0xc7),'meowKey':a210_0x2609dc(0xc7),'type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0x101),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':a210_0x2609dc(0xea),'description':a210_0x2609dc(0xba),'hidden':!![]},{'name':a210_0x2609dc(0xa9),'meowKey':a210_0x2609dc(0xe4),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xed),'hidden':!![]},{'name':a210_0x2609dc(0xd1),'meowKey':'label','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x9f),'hidden':!![]},{'name':a210_0x2609dc(0xfe),'meowKey':a210_0x2609dc(0x10d),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a210_0x2609dc(0x95),'meowKey':'sort','type':'string','description':a210_0x2609dc(0xc3),'hidden':!![]},{'name':a210_0x2609dc(0x109),'meowKey':a210_0x2609dc(0xf4),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xa0),'hidden':!![]},{'name':a210_0x2609dc(0x103),'meowKey':a210_0x2609dc(0xc1),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0x8e),'hidden':!![]},{'name':a210_0x2609dc(0x102),'meowKey':'expectedChildrenCount','type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a210_0x2609dc(0xfc),'meowKey':'menuIds','type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xa7),'hidden':!![]},{'name':'task-id','meowKey':a210_0x2609dc(0xd0),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xab),'hidden':!![]},{'name':a210_0x2609dc(0xcf),'meowKey':a210_0x2609dc(0x108),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xd3),'hidden':!![]},{'name':'function-node','meowKey':a210_0x2609dc(0xb8),'type':a210_0x2609dc(0xe1),'description':a210_0x2609dc(0xb0),'hidden':!![]}];function a210_0xb20c(){const _0x3ee1ae=['Read\x20value\x20from\x20environment\x20variable','sql','operationType','expect-parent-id','Tags','Name','code','parentId','<name>','908AvCwUl','Maximum\x20search\x20hits','SQL\x20name','DB\x20ID','sqlName','Expected\x20current\x20menu\x20path','tags','stdin','Config\x20value','watch','269130WukSBO','value','sort','Search\x20query','appcode','reveal','title','query','pagesize','Record\x20ID','5PYVfVU','name','Menu\x20label','Expected\x20current\x20parent\x20menu\x20id','file','force','124170zuKLcu','json\x20|\x20pretty\x20|\x20compress','<code>','skip-imports','Comma-separated\x20menu\x20IDs','type','expected-count','clear','Asynchronous\x20task\x20ID','format','topk','project','sqlname','Function\x20node','Alias\x20for\x20--non-interactive','Output\x20format','Preview\x20operation\x20without\x20executing','<expr>','Environment','1329CNwdjE','db-id','functionNode','JSON\x20params','Verbose\x20output','Description\x20file','Keyword\x20filter','@lovrabet/rabetbase-cli','env','all','app','expectPath','key','Menu\x20sort\x20value','Use\x20global\x20config\x20scope','Page\x20size','135PGTPaU','remote','help','output','operation','Apply\x20to\x20all','dbid','datasetcode','Description','operation-type','taskId','label','zh-CN\x20|\x20en-US','Operation\x20type','confirm','yes','page','Force\x20non-interactive\x20mode\x20(CI)','params','Enable\x20Backend\x20Function\x20save','target','descriptionFile','125VTCcCk','Skip\x20import\x20generation','3417832nBlgWm','Page\x20number','Target\x20path','string','schemas','locale','expectedCount','Output\x20path','Clear','108KNFQaD','dry-run','Skip\x20confirmation\x20for\x20high-risk\x20writes','boolean','keyword','Title','Expected\x20affected\x20count','13YelRZm','49071hZpVNj','Reveal\x20sensitive\x20value','11742934hcbjXb','fromEnv','95274wVyvVE','expectParentId','skipImports','non-interactive','Show\x20help','dryRun','global','Config\x20key','enable-bff-save','menu-ids','description','parent-id','production\x20|\x20daily','description-file','Use\x20remote','expected-children-count','expect-path','map','7kbTwlC'];a210_0xb20c=function(){return _0x3ee1ae;};return a210_0xb20c();}export const PIPELINE_FLAG_NAMES=new Set([a210_0x2609dc(0x97),a210_0x2609dc(0xc0),a210_0x2609dc(0xbe),a210_0x2609dc(0xac),'jq',a210_0x2609dc(0xe8),'yes',a210_0x2609dc(0xf6),'ci']);function a210_0x53d4(_0x11fe91,_0x1d7a56){_0x11fe91=_0x11fe91-0x8d;const _0xb20caf=a210_0xb20c();let _0x53d493=_0xb20caf[_0x11fe91];return _0x53d493;}export function buildMeowFlags(){const _0x4e646a=a210_0x2609dc;return Object['fromEntries'](GLOBAL_FLAGS[_0x4e646a(0x104)](_0x438bb8=>[_0x438bb8['meowKey'],{'type':_0x438bb8[_0x4e646a(0xa8)]}]));}
1
+ const a216_0x2143f3=a216_0x5b5d;(function(_0x31b8eb,_0x5b56e8){const _0x212bbc=a216_0x5b5d,_0x5ee4d1=_0x31b8eb();while(!![]){try{const _0x13506a=parseInt(_0x212bbc(0xfe))/0x1*(parseInt(_0x212bbc(0xe5))/0x2)+-parseInt(_0x212bbc(0x164))/0x3+parseInt(_0x212bbc(0x121))/0x4+-parseInt(_0x212bbc(0x14b))/0x5*(parseInt(_0x212bbc(0x12a))/0x6)+-parseInt(_0x212bbc(0xde))/0x7*(-parseInt(_0x212bbc(0x155))/0x8)+-parseInt(_0x212bbc(0x106))/0x9+parseInt(_0x212bbc(0xe2))/0xa*(parseInt(_0x212bbc(0x102))/0xb);if(_0x13506a===_0x5b56e8)break;else _0x5ee4d1['push'](_0x5ee4d1['shift']());}catch(_0x1b977c){_0x5ee4d1['push'](_0x5ee4d1['shift']());}}}(a216_0x22ef,0x7e17b));function a216_0x22ef(){const _0xcbf66=['target','description-file','dryRun','7CLrZdQ','Maximum\x20search\x20hits','targetEnv','appcode','670vwGgTH','Watch\x20mode','sql-name','2JKRXVz','Schemas','operation','sqlcode','global','expectPath','functionNode','Description\x20file','env','Tags','expected-count','boolean','zh-CN\x20|\x20en-US','Confirm\x20destructive\x20action','skipImports','output','dry-run','page','confirm','JSON\x20params','Asynchronous\x20task\x20ID','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','topk','sqlname','target-env','473461qLsDNV','Force\x20non-interactive\x20mode\x20(CI)','dbId','title','5093ObXTQm','Use\x20global\x20config\x20scope','value','DB\x20ID','8682633AfZjuc','parentId','Menu\x20sort\x20value','map','SQL\x20string','pagesize','Comma-separated\x20metadata\x20codes','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Operation\x20type','stdin','<expr>','yes','query','Select\x20app\x20profile\x20by\x20name','nonInteractive','code','Target\x20connection\x20environment','operation-type','remote','help','keyword','Description','Record\x20ID','format','Use\x20project\x20config\x20scope','production\x20|\x20daily','<name>','3402200CeYMwz','non-interactive','descriptionFile','app','Force\x20overwrite','datasetcode','Config\x20key','Rabetbase\x20CLI','Read\x20value\x20from\x20environment\x20variable','1902nIyXPP','Menu\x20label','task-id','expectParentId','Config\x20value','Show\x20help','expect-path','Title','menuIds','rabetbase','expect-parent-id','all','Page\x20number','@lovrabet/rabetbase-cli','watch','description','locale','sql','enable-bff-save','Alias\x20for\x20--non-interactive','fromEnv','force','sort','project','Preview\x20operation\x20without\x20executing','meowKey','verbose','taskId','type','File\x20path','Enable\x20Backend\x20Function\x20save','Name','Expected\x20current\x20parent\x20menu\x20id','13385qdNauE','dbid','Reveal\x20sensitive\x20value','Skip\x20import\x20generation','Use\x20remote','Environment','SQL\x20code','label','file','expectedCount','8026328MTlbTt','codes','key','direct','expected-children-count','reveal','json\x20|\x20pretty\x20|\x20compress','tags','Keyword\x20filter','operationType','menu-ids','params','Dataset\x20code','Skip\x20confirmation\x20for\x20high-risk\x20writes','expectedChildrenCount','85506WeMkQY','schemas','Apply\x20to\x20all','string','Page\x20size','parent-id','name','Search\x20query','SQL\x20name','sqlName'];a216_0x22ef=function(){return _0xcbf66;};return a216_0x22ef();}export const CLI_BIN_NAME=a216_0x2143f3(0x133);export const CLI_DISPLAY_NAME=a216_0x2143f3(0x128);export const NPM_PACKAGE_NAME=a216_0x2143f3(0x137);export const GLOBAL_FLAGS=[{'name':a216_0x2143f3(0xe1),'meowKey':a216_0x2143f3(0xe1),'type':a216_0x2143f3(0x167),'description':'Override\x20appcode','hint':'<code>'},{'name':a216_0x2143f3(0x124),'meowKey':'app','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x113),'hint':a216_0x2143f3(0x120)},{'name':a216_0x2143f3(0xed),'meowKey':'env','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x150),'hint':a216_0x2143f3(0x11f)},{'name':'format','meowKey':a216_0x2143f3(0x11d),'type':'string','description':'Output\x20format','hint':a216_0x2143f3(0x15b)},{'name':'jq','meowKey':'jq','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10d),'hint':a216_0x2143f3(0x110)},{'name':a216_0x2143f3(0xf5),'meowKey':a216_0x2143f3(0xdd),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x142)},{'name':a216_0x2143f3(0x111),'meowKey':a216_0x2143f3(0x111),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x162)},{'name':a216_0x2143f3(0x122),'meowKey':a216_0x2143f3(0x114),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xff)},{'name':a216_0x2143f3(0xe9),'meowKey':a216_0x2143f3(0xe9),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x103)},{'name':a216_0x2143f3(0x141),'meowKey':'project','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x11e)},{'name':'ci','meowKey':'ci','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x13d),'hidden':!![]},{'name':a216_0x2143f3(0x119),'meowKey':a216_0x2143f3(0x119),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x12f)},{'name':a216_0x2143f3(0x13a),'meowKey':a216_0x2143f3(0x13a),'type':'string','description':a216_0x2143f3(0xfa),'hidden':!![],'hint':a216_0x2143f3(0xf1)},{'name':a216_0x2143f3(0x16a),'meowKey':'name','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x149),'hidden':!![]},{'name':'title','meowKey':a216_0x2143f3(0x101),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x131),'hidden':!![]},{'name':a216_0x2143f3(0x112),'meowKey':a216_0x2143f3(0x112),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd8),'hidden':!![]},{'name':a216_0x2143f3(0xfb),'meowKey':a216_0x2143f3(0xfb),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xdf),'hidden':!![]},{'name':'clear','meowKey':'clear','type':a216_0x2143f3(0xf0),'description':'Clear','hidden':!![]},{'name':a216_0x2143f3(0x138),'meowKey':a216_0x2143f3(0x138),'type':'boolean','description':a216_0x2143f3(0xe3),'hidden':!![]},{'name':a216_0x2143f3(0xf4),'meowKey':a216_0x2143f3(0xf4),'type':a216_0x2143f3(0x167),'description':'Output\x20path','hidden':!![]},{'name':a216_0x2143f3(0x160),'meowKey':a216_0x2143f3(0x160),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf8),'hidden':!![]},{'name':a216_0x2143f3(0x126),'meowKey':a216_0x2143f3(0x126),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x161),'hidden':!![]},{'name':a216_0x2143f3(0x135),'meowKey':'all','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x166),'hidden':!![]},{'name':a216_0x2143f3(0x13c),'meowKey':'enableBffSave','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x148),'hidden':!![]},{'name':'id','meowKey':'id','type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11c),'hidden':!![]},{'name':a216_0x2143f3(0x146),'meowKey':'type','type':a216_0x2143f3(0x167),'description':'Type\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x153),'meowKey':a216_0x2143f3(0x153),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x147),'hidden':!![]},{'name':a216_0x2143f3(0xe8),'meowKey':a216_0x2143f3(0xe8),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x151),'hidden':!![]},{'name':a216_0x2143f3(0xe4),'meowKey':a216_0x2143f3(0xda),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':a216_0x2143f3(0xfc),'meowKey':a216_0x2143f3(0xfc),'type':'string','description':a216_0x2143f3(0xd9),'hidden':!![]},{'name':'db-id','meowKey':a216_0x2143f3(0x100),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x105),'hidden':!![]},{'name':a216_0x2143f3(0x14c),'meowKey':a216_0x2143f3(0x14c),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a216_0x2143f3(0x139),'meowKey':a216_0x2143f3(0x139),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x11b),'hidden':!![]},{'name':a216_0x2143f3(0xdc),'meowKey':a216_0x2143f3(0x123),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xec),'hidden':!![]},{'name':a216_0x2143f3(0xf6),'meowKey':a216_0x2143f3(0xf6),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x136),'hidden':!![]},{'name':a216_0x2143f3(0x10b),'meowKey':a216_0x2143f3(0x10b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x168),'hidden':!![]},{'name':'keyword','meowKey':a216_0x2143f3(0x11a),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x15d),'hidden':!![]},{'name':a216_0x2143f3(0x115),'meowKey':a216_0x2143f3(0x115),'type':a216_0x2143f3(0x167),'description':'Code\x20filter','hidden':!![]},{'name':a216_0x2143f3(0x13b),'meowKey':a216_0x2143f3(0x13b),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10a),'hidden':!![]},{'name':a216_0x2143f3(0x165),'meowKey':a216_0x2143f3(0x165),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xe6),'hidden':!![]},{'name':a216_0x2143f3(0xe7),'meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a216_0x2143f3(0xdb),'meowKey':'target','type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':a216_0x2143f3(0xf3),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14e),'hidden':!![]},{'name':'key','meowKey':a216_0x2143f3(0x157),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x127),'hidden':!![]},{'name':'value','meowKey':a216_0x2143f3(0x104),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12e),'hidden':!![]},{'name':a216_0x2143f3(0x15c),'meowKey':a216_0x2143f3(0x15c),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xee),'hidden':!![]},{'name':a216_0x2143f3(0x10f),'meowKey':a216_0x2143f3(0x10f),'type':a216_0x2143f3(0xf0),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a216_0x2143f3(0x13e),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x129),'hidden':!![]},{'name':a216_0x2143f3(0x15a),'meowKey':'reveal','type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14d),'hidden':!![]},{'name':a216_0x2143f3(0x13f),'meowKey':a216_0x2143f3(0x13f),'type':'boolean','description':a216_0x2143f3(0x125),'hidden':!![]},{'name':a216_0x2143f3(0xf7),'meowKey':a216_0x2143f3(0xf7),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0xf2),'hidden':!![]},{'name':a216_0x2143f3(0x118),'meowKey':a216_0x2143f3(0x118),'type':a216_0x2143f3(0xf0),'description':a216_0x2143f3(0x14f),'hidden':!![]},{'name':a216_0x2143f3(0x144),'meowKey':a216_0x2143f3(0x144),'type':a216_0x2143f3(0xf0),'description':'Verbose\x20output','hidden':!![]},{'name':a216_0x2143f3(0xef),'meowKey':a216_0x2143f3(0x154),'type':a216_0x2143f3(0x167),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a216_0x2143f3(0x152),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x12b),'hidden':!![]},{'name':a216_0x2143f3(0x169),'meowKey':a216_0x2143f3(0x107),'type':a216_0x2143f3(0x167),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a216_0x2143f3(0x140),'meowKey':a216_0x2143f3(0x140),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x108),'hidden':!![]},{'name':a216_0x2143f3(0x134),'meowKey':a216_0x2143f3(0x12d),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x14a),'hidden':!![]},{'name':a216_0x2143f3(0x130),'meowKey':a216_0x2143f3(0xea),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a216_0x2143f3(0x159),'meowKey':a216_0x2143f3(0x163),'type':a216_0x2143f3(0x167),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a216_0x2143f3(0x15f),'meowKey':a216_0x2143f3(0x132),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a216_0x2143f3(0x12c),'meowKey':a216_0x2143f3(0x145),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0xf9),'hidden':!![]},{'name':a216_0x2143f3(0x117),'meowKey':a216_0x2143f3(0x15e),'type':'string','description':a216_0x2143f3(0x10e),'hidden':!![]},{'name':'function-node','meowKey':a216_0x2143f3(0xeb),'type':a216_0x2143f3(0x167),'description':'Function\x20node','hidden':!![]},{'name':a216_0x2143f3(0xfd),'meowKey':a216_0x2143f3(0xe0),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x116),'hidden':!![]},{'name':a216_0x2143f3(0x158),'meowKey':a216_0x2143f3(0x158),'type':a216_0x2143f3(0xf0),'description':'Use\x20the\x20base\x20database\x20connection','hidden':!![]},{'name':a216_0x2143f3(0x156),'meowKey':a216_0x2143f3(0x156),'type':a216_0x2143f3(0x167),'description':a216_0x2143f3(0x10c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a216_0x2143f3(0xe1),a216_0x2143f3(0x124),a216_0x2143f3(0xed),'format','jq',a216_0x2143f3(0xf5),'yes','non-interactive','ci']);function a216_0x5b5d(_0x37e3a2,_0x2d52ae){_0x37e3a2=_0x37e3a2-0xd8;const _0x22ef7d=a216_0x22ef();let _0x5b5d1a=_0x22ef7d[_0x37e3a2];return _0x5b5d1a;}export function buildMeowFlags(){const _0x265a9b=a216_0x2143f3;return Object['fromEntries'](GLOBAL_FLAGS[_0x265a9b(0x109)](_0x515cb0=>[_0x515cb0[_0x265a9b(0x143)],{'type':_0x515cb0[_0x265a9b(0x146)]}]));}
@@ -1 +1 @@
1
- function a211_0x2d4a(_0x3fe811,_0x50cedb){_0x3fe811=_0x3fe811-0x116;const _0x178785=a211_0x1787();let _0x2d4a95=_0x178785[_0x3fe811];return _0x2d4a95;}const a211_0xa13a88=a211_0x2d4a;function a211_0x1787(){const _0x59c4f1=['en-US','production','5887ShRxGg','6744xKKRlP','1036itIZpZ','14338180ksrxkg','1128690svpXrZ','630avjgqW','1198719rQZzKP','2404PUtMQx','1052hawEzY','2194272lesQJi','compress'];a211_0x1787=function(){return _0x59c4f1;};return a211_0x1787();}(function(_0x2b195e,_0x3e5cc7){const _0x184f4c=a211_0x2d4a,_0x1a0a64=_0x2b195e();while(!![]){try{const _0xf428f5=parseInt(_0x184f4c(0x116))/0x1*(parseInt(_0x184f4c(0x11c))/0x2)+-parseInt(_0x184f4c(0x11d))/0x3+-parseInt(_0x184f4c(0x11b))/0x4*(parseInt(_0x184f4c(0x119))/0x5)+-parseInt(_0x184f4c(0x118))/0x6+-parseInt(_0x184f4c(0x121))/0x7*(parseInt(_0x184f4c(0x122))/0x8)+parseInt(_0x184f4c(0x11a))/0x9+parseInt(_0x184f4c(0x117))/0xa;if(_0xf428f5===_0x3e5cc7)break;else _0x1a0a64['push'](_0x1a0a64['shift']());}catch(_0x559c72){_0x1a0a64['push'](_0x1a0a64['shift']());}}}(a211_0x1787,0x638a5));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a211_0xa13a88(0x120),'format':a211_0xa13a88(0x11e),'locale':a211_0xa13a88(0x11f),'riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a217_0x5755(_0x4b6558,_0x565df3){_0x4b6558=_0x4b6558-0x1c9;const _0x2580cb=a217_0x2580();let _0x575594=_0x2580cb[_0x4b6558];return _0x575594;}const a217_0x56de83=a217_0x5755;(function(_0x2eb88b,_0x3b0f2e){const _0x4b1e1b=a217_0x5755,_0x591988=_0x2eb88b();while(!![]){try{const _0x510305=parseInt(_0x4b1e1b(0x1d2))/0x1*(parseInt(_0x4b1e1b(0x1d5))/0x2)+-parseInt(_0x4b1e1b(0x1c9))/0x3+-parseInt(_0x4b1e1b(0x1ca))/0x4*(-parseInt(_0x4b1e1b(0x1d7))/0x5)+-parseInt(_0x4b1e1b(0x1d3))/0x6+parseInt(_0x4b1e1b(0x1cb))/0x7*(parseInt(_0x4b1e1b(0x1ce))/0x8)+parseInt(_0x4b1e1b(0x1cf))/0x9+parseInt(_0x4b1e1b(0x1d0))/0xa*(-parseInt(_0x4b1e1b(0x1d4))/0xb);if(_0x510305===_0x3b0f2e)break;else _0x591988['push'](_0x591988['shift']());}catch(_0x54849f){_0x591988['push'](_0x591988['shift']());}}}(a217_0x2580,0xc9137));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a217_0x56de83(0x1d1),'format':'compress','locale':a217_0x56de83(0x1d6),'riskLevel':a217_0x56de83(0x1cd),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a217_0x56de83(0x1cc);function a217_0x2580(){const _0x1976b9=['1155642TxcifF','3205084tknadZ','346444qSMrCS','compress','write','184QaFIXr','3279051WJMrya','9353420yDnFpt','production','852227MKXSFA','5267514jNLPgj','22ofQnnh','2MHlvmD','en-US','10bQiOEN'];a217_0x2580=function(){return _0x1976b9;};return a217_0x2580();}
@@ -9,6 +9,7 @@ export declare function initDomains(domains?: {
9
9
  runtimeDomain?: string;
10
10
  skillDomain?: string;
11
11
  kbDomain?: string;
12
+ kbSearchDomain?: string;
12
13
  appDomain?: string;
13
14
  localDomain?: string;
14
15
  certificateDomain?: string;
@@ -19,6 +20,7 @@ export declare const getApiDomain: () => string;
19
20
  export declare const getRuntimeDomain: () => string;
20
21
  export declare const getSkillDomain: () => string;
21
22
  export declare const getKbDomain: () => string;
23
+ export declare function getKbSearchDomain(): string;
22
24
  export declare const getAppDomain: () => string;
23
25
  export declare const getActiveRegion: () => "global" | "id" | "cn";
24
26
  export declare const getLocalDomain: () => string | undefined;
@@ -1 +1 @@
1
- const a212_0x4cc35c=a212_0x2799;(function(_0x46e352,_0x52dc69){const _0x5d133f=a212_0x2799,_0x5b92c9=_0x46e352();while(!![]){try{const _0x5a8551=parseInt(_0x5d133f(0x107))/0x1*(-parseInt(_0x5d133f(0xf7))/0x2)+-parseInt(_0x5d133f(0xf1))/0x3+-parseInt(_0x5d133f(0xfb))/0x4*(-parseInt(_0x5d133f(0xf4))/0x5)+-parseInt(_0x5d133f(0x100))/0x6*(-parseInt(_0x5d133f(0xf9))/0x7)+-parseInt(_0x5d133f(0xf6))/0x8*(-parseInt(_0x5d133f(0xf8))/0x9)+-parseInt(_0x5d133f(0xff))/0xa+parseInt(_0x5d133f(0x102))/0xb*(parseInt(_0x5d133f(0xf2))/0xc);if(_0x5a8551===_0x52dc69)break;else _0x5b92c9['push'](_0x5b92c9['shift']());}catch(_0x47d9b8){_0x5b92c9['push'](_0x5b92c9['shift']());}}}(a212_0x3227,0xcb2ad));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x5f38c3=a212_0x2799,_0x50beac=getOfficialRoutingProfile(activeRegion);return _0x50beac[_0x5f38c3(0xf3)][isProduction(getEnv())?_0x5f38c3(0x10e):_0x5f38c3(0x106)];}export function initDomains(_0x3500fc){const _0xdc1821=a212_0x2799;customApiDomain=_0x3500fc?.[_0xdc1821(0x10c)],customUserDomain=_0x3500fc?.['userDomain'],customRuntimeDomain=_0x3500fc?.['runtimeDomain'],customSkillDomain=_0x3500fc?.[_0xdc1821(0xfc)],customKbDomain=_0x3500fc?.[_0xdc1821(0x105)],customAppDomain=_0x3500fc?.[_0xdc1821(0xfa)],customLocalDomain=_0x3500fc?.[_0xdc1821(0x10d)],customCertificateDomain=_0x3500fc?.[_0xdc1821(0xfe)],activeRegion=_0x3500fc?.[_0xdc1821(0xfd)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a212_0x4cc35c(0x103)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a212_0x4cc35c(0x10b)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a212_0x4cc35c(0x104)];function a212_0x3227(){const _0x372994=['13007550IlnQJv','3307626jRdqsV','origin','15874969UqflgO','user','skill','kbDomain','preview','1iRpbSx','/web-app/app/','/app/','trim','api','apiDomain','localDomain','primary','3986982AiqYOR','24wqgdqb','serviceDomains','8395eMGISK','runtime','639416AsRdWE','2023786flJqsv','27DXBLwt','14ryekHg','appDomain','584nZeBNY','skillDomain','region','certificateDomain'];a212_0x3227=function(){return _0x372994;};return a212_0x3227();}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x32d7a2=a212_0x4cc35c;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x32d7a2(0xf5)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion==='global')return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x1a1b8e=>{const _0x21d021=a212_0x4cc35c,_0x29a45a=encodeURIComponent(_0x1a1b8e[_0x21d021(0x10a)]());return isProduction(getEnv())?getAppDomain()+_0x21d021(0x109)+_0x29a45a:getAppDomain()+_0x21d021(0x108)+_0x29a45a;};function a212_0x2799(_0x2b7272,_0x32d66c){_0x2b7272=_0x2b7272-0xf1;const _0x32270b=a212_0x3227();let _0x27999c=_0x32270b[_0x2b7272];return _0x27999c;}export const getPublishedAppDomain=_0x3c01e6=>{const _0x392f4e=a212_0x4cc35c,_0x1ccc9f=new URL(getAppDomain());return _0x1ccc9f['hostname']=_0x3c01e6[_0x392f4e(0x10a)]()+'.'+_0x1ccc9f['hostname'],_0x1ccc9f[_0x392f4e(0x101)];};
1
+ const a218_0x2969bd=a218_0x54f3;(function(_0x57e07d,_0x39bcac){const _0x86db0a=a218_0x54f3,_0x2c1921=_0x57e07d();while(!![]){try{const _0x5a9ab3=-parseInt(_0x86db0a(0x126))/0x1*(-parseInt(_0x86db0a(0x12b))/0x2)+parseInt(_0x86db0a(0x130))/0x3+parseInt(_0x86db0a(0x137))/0x4*(-parseInt(_0x86db0a(0x131))/0x5)+parseInt(_0x86db0a(0x132))/0x6+parseInt(_0x86db0a(0x123))/0x7+-parseInt(_0x86db0a(0x134))/0x8*(-parseInt(_0x86db0a(0x11f))/0x9)+-parseInt(_0x86db0a(0x12a))/0xa;if(_0x5a9ab3===_0x39bcac)break;else _0x2c1921['push'](_0x2c1921['shift']());}catch(_0x1127f1){_0x2c1921['push'](_0x2c1921['shift']());}}}(a218_0x3306,0xbd08b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';function a218_0x54f3(_0x272155,_0x40f5fb){_0x272155=_0x272155-0x11b;const _0x330600=a218_0x3306();let _0x54f32b=_0x330600[_0x272155];return _0x54f32b;}import{CliErrors}from'../errors.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbSearchDomain,customAppDomain,customLocalDomain,customCertificateDomain,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x36b823=a218_0x54f3,_0x5f4152=getOfficialRoutingProfile(activeRegion);return _0x5f4152[_0x36b823(0x11c)][isProduction(getEnv())?_0x36b823(0x12e):'preview'];}export function initDomains(_0x3fc56d){const _0x8996d=a218_0x54f3;customApiDomain=_0x3fc56d?.['apiDomain'],customUserDomain=_0x3fc56d?.['userDomain'],customRuntimeDomain=_0x3fc56d?.[_0x8996d(0x11e)],customSkillDomain=_0x3fc56d?.[_0x8996d(0x12f)],customKbDomain=_0x3fc56d?.[_0x8996d(0x129)],customKbSearchDomain=_0x3fc56d?.['kbSearchDomain'],customAppDomain=_0x3fc56d?.[_0x8996d(0x122)],customLocalDomain=_0x3fc56d?.['localDomain'],customCertificateDomain=_0x3fc56d?.[_0x8996d(0x139)],activeRegion=_0x3fc56d?.[_0x8996d(0x121)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a218_0x2969bd(0x120)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a218_0x2969bd(0x133)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a218_0x2969bd(0x136)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export function getKbSearchDomain(){const _0x47b2d1=a218_0x2969bd;if(customKbSearchDomain)return customKbSearchDomain;if(activeRegion==='cn')return isProduction(getEnv())?_0x47b2d1(0x12c):_0x47b2d1(0x11d);throw CliErrors[_0x47b2d1(0x135)]('Knowledge\x20search\x20is\x20not\x20registered\x20for\x20region\x20\x22'+activeRegion+'\x22.',_0x47b2d1(0x13a));}export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a218_0x2969bd(0x11b)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customKbSearchDomain||customAppDomain||customLocalDomain||customCertificateDomain);}function a218_0x3306(){const _0x44f24b=['trim','/web-app/app/','33tFuRSo','/app/','hostname','kbDomain','5344070nvYIew','69226qAQjIv','https://kb-service.lovrabet.com','origin','primary','skillDomain','635334SwjHcK','10ZPuFwS','2119602dqUOlD','api','169320wsVqml','validation','runtime','3056512JMQXQG','global','certificateDomain','Configure\x20an\x20explicit\x20kbSearchDomain\x20for\x20an\x20independent\x20deployment.','app','serviceDomains','https://kb-service-daily.lovrabet.com','runtimeDomain','117TtPvEv','user','region','appDomain','5981689NQhirk'];a218_0x3306=function(){return _0x44f24b;};return a218_0x3306();}export function getSdkClientRoutingConfig(){const _0x3c3b5e=a218_0x2969bd;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x3c3b5e(0x136)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x3c3b5e(0x138))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x555e54=>{const _0x5454d0=a218_0x2969bd,_0x5a5b7a=encodeURIComponent(_0x555e54[_0x5454d0(0x124)]());return isProduction(getEnv())?getAppDomain()+_0x5454d0(0x127)+_0x5a5b7a:getAppDomain()+_0x5454d0(0x125)+_0x5a5b7a;};export const getPublishedAppDomain=_0x3deb5f=>{const _0x486943=a218_0x2969bd,_0x4e097e=new URL(getAppDomain());return _0x4e097e[_0x486943(0x128)]=_0x3deb5f[_0x486943(0x124)]()+'.'+_0x4e097e['hostname'],_0x4e097e[_0x486943(0x12d)];};
@@ -1 +1 @@
1
- function a213_0x407d(){const _0x5c6ce9=['online','21GpFLBf','daily','127590ljXfAp','14284NdAOzL','11XyTpTB','dev','70VRECjl','12LnCRlU','2115940nNspeQ','1986864wvRDIK','production','9368796kQbUdz','4464299UceZDT','18dEXJST','development','8407PCiguc'];a213_0x407d=function(){return _0x5c6ce9;};return a213_0x407d();}const a213_0x15948c=a213_0x4532;(function(_0x392744,_0x4fd2c8){const _0x4808a1=a213_0x4532,_0x4a5d31=_0x392744();while(!![]){try{const _0x13464e=-parseInt(_0x4808a1(0x104))/0x1*(-parseInt(_0x4808a1(0x10c))/0x2)+parseInt(_0x4808a1(0x106))/0x3*(-parseInt(_0x4808a1(0x109))/0x4)+-parseInt(_0x4808a1(0x108))/0x5*(-parseInt(_0x4808a1(0x10d))/0x6)+parseInt(_0x4808a1(0x101))/0x7+-parseInt(_0x4808a1(0x10f))/0x8+-parseInt(_0x4808a1(0x102))/0x9*(-parseInt(_0x4808a1(0x10e))/0xa)+parseInt(_0x4808a1(0x10a))/0xb*(-parseInt(_0x4808a1(0x111))/0xc);if(_0x13464e===_0x4fd2c8)break;else _0x4a5d31['push'](_0x4a5d31['shift']());}catch(_0x266fdf){_0x4a5d31['push'](_0x4a5d31['shift']());}}}(a213_0x407d,0x55f8a));export const RABETBASE_ENV_VALUES=[a213_0x15948c(0x110),a213_0x15948c(0x107)];function a213_0x4532(_0x2183a9,_0x5c47ed){_0x2183a9=_0x2183a9-0x101;const _0x407d41=a213_0x407d();let _0x453247=_0x407d41[_0x2183a9];return _0x453247;}export function normalizeEnv(_0xa6d06c){const _0x5b6d9c=a213_0x15948c;return _0xa6d06c===_0x5b6d9c(0x105)?_0x5b6d9c(0x110):_0xa6d06c;}export function isProduction(_0x4267de){const _0x102b07=a213_0x15948c;return normalizeEnv(_0x4267de)===_0x102b07(0x110);}export function isDaily(_0x5e8582){const _0x1901a7=a213_0x15948c;return normalizeEnv(_0x5e8582)===_0x1901a7(0x107);}export function isDev(_0x5dea04){const _0xe3dfe5=a213_0x15948c,_0x375508=normalizeEnv(_0x5dea04);return _0x375508===_0xe3dfe5(0x103)||_0x375508===_0xe3dfe5(0x10b);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a213_0x15948c(0x110));export function getEnv(){return env;}export function initEnv(_0x171997){env=normalizeEnv(_0x171997);}
1
+ const a219_0xc8a83b=a219_0x5bf4;(function(_0x2f466b,_0x243bd6){const _0x31dac8=a219_0x5bf4,_0x31225a=_0x2f466b();while(!![]){try{const _0x552b19=parseInt(_0x31dac8(0x1e8))/0x1+-parseInt(_0x31dac8(0x1e0))/0x2+parseInt(_0x31dac8(0x1e5))/0x3*(parseInt(_0x31dac8(0x1dd))/0x4)+-parseInt(_0x31dac8(0x1e9))/0x5*(parseInt(_0x31dac8(0x1e6))/0x6)+-parseInt(_0x31dac8(0x1e7))/0x7*(-parseInt(_0x31dac8(0x1dc))/0x8)+-parseInt(_0x31dac8(0x1ea))/0x9*(parseInt(_0x31dac8(0x1e3))/0xa)+-parseInt(_0x31dac8(0x1df))/0xb*(parseInt(_0x31dac8(0x1e1))/0xc);if(_0x552b19===_0x243bd6)break;else _0x31225a['push'](_0x31225a['shift']());}catch(_0x88c91f){_0x31225a['push'](_0x31225a['shift']());}}}(a219_0x327f,0x451ac));export const RABETBASE_ENV_VALUES=[a219_0xc8a83b(0x1eb),a219_0xc8a83b(0x1e2)];export function normalizeEnv(_0x19f154){const _0x15ef6c=a219_0xc8a83b;return _0x19f154===_0x15ef6c(0x1e4)?_0x15ef6c(0x1eb):_0x19f154;}export function isProduction(_0x2f80e3){const _0x1c7d26=a219_0xc8a83b;return normalizeEnv(_0x2f80e3)===_0x1c7d26(0x1eb);}export function isDaily(_0x83e976){const _0x264eef=a219_0xc8a83b;return normalizeEnv(_0x83e976)===_0x264eef(0x1e2);}export function isDev(_0xf391df){const _0x4fbfd9=a219_0xc8a83b,_0x248195=normalizeEnv(_0xf391df);return _0x248195===_0x4fbfd9(0x1de)||_0x248195==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a219_0xc8a83b(0x1eb));export function getEnv(){return env;}function a219_0x327f(){const _0x3bc276=['135TYfJsE','production','152UBDpZc','172vBOuZV','development','33KzXzEB','941336uVKpie','303192XBidsN','daily','37820AjsNIo','online','27624rEKZbr','165234LCmnWD','65254CIzTvn','340725DBhJri','5bANqjX'];a219_0x327f=function(){return _0x3bc276;};return a219_0x327f();}function a219_0x5bf4(_0x2d8590,_0x451a65){_0x2d8590=_0x2d8590-0x1dc;const _0x327f40=a219_0x327f();let _0x5bf41f=_0x327f40[_0x2d8590];return _0x5bf41f;}export function initEnv(_0xc97205){env=normalizeEnv(_0xc97205);}
@@ -1 +1 @@
1
- const a214_0x377e75=a214_0x47dd;(function(_0x31926c,_0x166aca){const _0x53df47=a214_0x47dd,_0x28bfc5=_0x31926c();while(!![]){try{const _0x34c4bf=-parseInt(_0x53df47(0x117))/0x1+-parseInt(_0x53df47(0x114))/0x2*(parseInt(_0x53df47(0x11c))/0x3)+parseInt(_0x53df47(0x111))/0x4*(-parseInt(_0x53df47(0x11b))/0x5)+-parseInt(_0x53df47(0x116))/0x6*(-parseInt(_0x53df47(0x11e))/0x7)+-parseInt(_0x53df47(0x11a))/0x8*(parseInt(_0x53df47(0x115))/0x9)+-parseInt(_0x53df47(0x118))/0xa*(parseInt(_0x53df47(0x11d))/0xb)+parseInt(_0x53df47(0x112))/0xc*(parseInt(_0x53df47(0x119))/0xd);if(_0x34c4bf===_0x166aca)break;else _0x28bfc5['push'](_0x28bfc5['shift']());}catch(_0x323410){_0x28bfc5['push'](_0x28bfc5['shift']());}}}(a214_0x10ca,0x86332));function a214_0x47dd(_0x2bafd9,_0x2cd609){_0x2bafd9=_0x2bafd9-0x111;const _0x10ca3e=a214_0x10ca();let _0x47ddee=_0x10ca3e[_0x2bafd9];return _0x47ddee;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a214_0x377e75(0x113),'compress'];function a214_0x10ca(){const _0x45aa09=['4182114QDjyCs','78201mesBpm','3680530hWtlmY','13klxoSn','3652104mwTwbZ','1887615QFCEFr','89283btgZnY','22pcBDlc','7USkyFv','4ONEkpM','24797580rQZdoh','pretty','38oMFNVs','9IdttzB'];a214_0x10ca=function(){return _0x45aa09;};return a214_0x10ca();}
1
+ const a220_0x3bd8a5=a220_0x4b32;(function(_0x38310a,_0x5ac712){const _0x655bf4=a220_0x4b32,_0x51e138=_0x38310a();while(!![]){try{const _0x143bad=parseInt(_0x655bf4(0x7b))/0x1+-parseInt(_0x655bf4(0x81))/0x2*(-parseInt(_0x655bf4(0x7e))/0x3)+parseInt(_0x655bf4(0x77))/0x4+-parseInt(_0x655bf4(0x84))/0x5*(-parseInt(_0x655bf4(0x7f))/0x6)+-parseInt(_0x655bf4(0x76))/0x7*(parseInt(_0x655bf4(0x78))/0x8)+-parseInt(_0x655bf4(0x83))/0x9*(-parseInt(_0x655bf4(0x79))/0xa)+-parseInt(_0x655bf4(0x82))/0xb*(parseInt(_0x655bf4(0x7c))/0xc);if(_0x143bad===_0x5ac712)break;else _0x51e138['push'](_0x51e138['shift']());}catch(_0x194d45){_0x51e138['push'](_0x51e138['shift']());}}}(a220_0x4e63,0xc4ee0));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a220_0x3bd8a5(0x7d),a220_0x3bd8a5(0x7a),a220_0x3bd8a5(0x80)];function a220_0x4b32(_0x2a5148,_0x3b3daa){_0x2a5148=_0x2a5148-0x76;const _0x4e63f9=a220_0x4e63();let _0x4b32eb=_0x4e63f9[_0x2a5148];return _0x4b32eb;}function a220_0x4e63(){const _0x4848f4=['113710DjZJqU','pretty','1552983JyIHtr','411876afbtge','json','21IUjgtA','6dCdfit','compress','59308PVxcAR','99JmxmMb','45boRoOO','203275iBufxO','16135LrrmLC','1695160xNCCTH','4048bRBwRK'];a220_0x4e63=function(){return _0x4848f4;};return a220_0x4e63();}
@@ -1 +1 @@
1
- function a215_0x1eae(){const _0x41aff3=['203135xtiSYT','377940xVrmbd','5BSdYgA','261284tHeuQb','./src/api','9IXUPJI','51927gTuZQu','478674MYFEUg','441483dujtcP','2293744teUcdA'];a215_0x1eae=function(){return _0x41aff3;};return a215_0x1eae();}const a215_0xeb694=a215_0x58d1;(function(_0x2e9ab2,_0x331e9c){const _0x354627=a215_0x58d1,_0x5af433=_0x2e9ab2();while(!![]){try{const _0x12923f=-parseInt(_0x354627(0x11e))/0x1+parseInt(_0x354627(0x11b))/0x2+parseInt(_0x354627(0x11a))/0x3+-parseInt(_0x354627(0x121))/0x4*(parseInt(_0x354627(0x120))/0x5)+-parseInt(_0x354627(0x11f))/0x6+-parseInt(_0x354627(0x11c))/0x7+-parseInt(_0x354627(0x11d))/0x8*(-parseInt(_0x354627(0x123))/0x9);if(_0x12923f===_0x331e9c)break;else _0x5af433['push'](_0x5af433['shift']());}catch(_0x46d906){_0x5af433['push'](_0x5af433['shift']());}}}(a215_0x1eae,0x24571));function a215_0x58d1(_0x3e684d,_0x4c8639){_0x3e684d=_0x3e684d-0x11a;const _0x1eaef8=a215_0x1eae();let _0x58d1fb=_0x1eaef8[_0x3e684d];return _0x58d1fb;}export const DEFAULT_API_DIR=a215_0xeb694(0x122);
1
+ function a221_0x1788(_0x489cfc,_0x54e294){_0x489cfc=_0x489cfc-0x127;const _0x20dff3=a221_0x20df();let _0x178823=_0x20dff3[_0x489cfc];return _0x178823;}function a221_0x20df(){const _0x1b1e1f=['319847KxZIXD','13221DMPLTy','474kbSSpe','540741DZysvJ','./src/api','322730hjuMZn','408DCAfLZ','78466dcbqJg','33278heUVsL','1592840FBXKXy','6tNgBcJ','3940jhiQRB','8ZMnloI'];a221_0x20df=function(){return _0x1b1e1f;};return a221_0x20df();}const a221_0x7358c6=a221_0x1788;(function(_0x4a11a0,_0xd4146b){const _0x2b5394=a221_0x1788,_0x31562e=_0x4a11a0();while(!![]){try{const _0x10406b=-parseInt(_0x2b5394(0x130))/0x1*(parseInt(_0x2b5394(0x12d))/0x2)+parseInt(_0x2b5394(0x129))/0x3*(parseInt(_0x2b5394(0x132))/0x4)+parseInt(_0x2b5394(0x12b))/0x5+parseInt(_0x2b5394(0x128))/0x6*(-parseInt(_0x2b5394(0x12e))/0x7)+parseInt(_0x2b5394(0x12f))/0x8+parseInt(_0x2b5394(0x127))/0x9*(-parseInt(_0x2b5394(0x131))/0xa)+-parseInt(_0x2b5394(0x133))/0xb*(-parseInt(_0x2b5394(0x12c))/0xc);if(_0x10406b===_0xd4146b)break;else _0x31562e['push'](_0x31562e['shift']());}catch(_0x5323b1){_0x31562e['push'](_0x31562e['shift']());}}}(a221_0x20df,0x67465));export const DEFAULT_API_DIR=a221_0x7358c6(0x12a);
@@ -1 +1 @@
1
- const a216_0x25a12a=a216_0x5f24;function a216_0x32ea(){const _0x530cd7=['8866860uLNNix','2105560fNvZzU','182686BUZEnN','10BGxFib','294240EAZkrJ','9803532auzMfB','string','72Qhmnqn','8500545ybAcRq','includes','china','global','indonesia','65715wTqQaE'];a216_0x32ea=function(){return _0x530cd7;};return a216_0x32ea();}function a216_0x5f24(_0x2139a6,_0x5bb690){_0x2139a6=_0x2139a6-0xc4;const _0x32ea79=a216_0x32ea();let _0x5f24c4=_0x32ea79[_0x2139a6];return _0x5f24c4;}(function(_0x5c834b,_0x5765c3){const _0x3e2066=a216_0x5f24,_0x250459=_0x5c834b();while(!![]){try{const _0x555049=parseInt(_0x3e2066(0xcc))/0x1*(parseInt(_0x3e2066(0xcb))/0x2)+parseInt(_0x3e2066(0xc7))/0x3+parseInt(_0x3e2066(0xc9))/0x4+parseInt(_0x3e2066(0xc8))/0x5+-parseInt(_0x3e2066(0xcd))/0x6+parseInt(_0x3e2066(0xca))/0x7*(-parseInt(_0x3e2066(0xcf))/0x8)+-parseInt(_0x3e2066(0xd0))/0x9;if(_0x555049===_0x5765c3)break;else _0x250459['push'](_0x250459['shift']());}catch(_0x4b89a1){_0x250459['push'](_0x250459['shift']());}}}(a216_0x32ea,0xef266));export const LOVRABET_REGION_VALUES=['cn','id',a216_0x25a12a(0xc5)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x36fa86){const _0x3d9287=a216_0x25a12a;return typeof _0x36fa86===_0x3d9287(0xce)&&LOVRABET_REGION_VALUES[_0x3d9287(0xd1)](_0x36fa86);}export function isEnabledLovrabetRegion(_0x501e4d){const _0x3d3ed3=a216_0x25a12a;return typeof _0x501e4d===_0x3d3ed3(0xce)&&ENABLED_LOVRABET_REGION_VALUES[_0x3d3ed3(0xd1)](_0x501e4d);}export function normalizeLovrabetRegion(_0x50e673){const _0x19566f=a216_0x25a12a;if(_0x50e673===_0x19566f(0xc4))return'cn';if(_0x50e673===_0x19566f(0xc6))return'id';return isLovrabetRegion(_0x50e673)?_0x50e673:DEFAULT_LOVRABET_REGION;}
1
+ (function(_0x4538ac,_0xc5d2c0){const _0x491b6c=a222_0x2a4f,_0x21c04c=_0x4538ac();while(!![]){try{const _0x286bdd=-parseInt(_0x491b6c(0x82))/0x1+-parseInt(_0x491b6c(0x7d))/0x2*(-parseInt(_0x491b6c(0x7e))/0x3)+parseInt(_0x491b6c(0x7f))/0x4+-parseInt(_0x491b6c(0x85))/0x5*(parseInt(_0x491b6c(0x80))/0x6)+-parseInt(_0x491b6c(0x83))/0x7+-parseInt(_0x491b6c(0x7c))/0x8+parseInt(_0x491b6c(0x86))/0x9;if(_0x286bdd===_0xc5d2c0)break;else _0x21c04c['push'](_0x21c04c['shift']());}catch(_0x2963dd){_0x21c04c['push'](_0x21c04c['shift']());}}}(a222_0x2252,0x8582d));export const LOVRABET_REGION_VALUES=['cn','id','global'];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a222_0x2a4f(_0x49e5a9,_0x490ae5){_0x49e5a9=_0x49e5a9-0x7c;const _0x2252f1=a222_0x2252();let _0x2a4fc9=_0x2252f1[_0x49e5a9];return _0x2a4fc9;}export const DEFAULT_LOVRABET_REGION='cn';function a222_0x2252(){const _0x476ddf=['4230oozXUK','20414871fjYMRK','2973776ZifIpg','390428TIfpfW','3uQzVec','2347452rnJbEN','6420GsEeCf','includes','471635xoPgSI','5284706eQzejQ','string'];a222_0x2252=function(){return _0x476ddf;};return a222_0x2252();}export function isLovrabetRegion(_0xc8bc74){const _0xad6a00=a222_0x2a4f;return typeof _0xc8bc74===_0xad6a00(0x84)&&LOVRABET_REGION_VALUES[_0xad6a00(0x81)](_0xc8bc74);}export function isEnabledLovrabetRegion(_0x37fdd5){const _0x3b32a1=a222_0x2a4f;return typeof _0x37fdd5===_0x3b32a1(0x84)&&ENABLED_LOVRABET_REGION_VALUES[_0x3b32a1(0x81)](_0x37fdd5);}export function normalizeLovrabetRegion(_0x3ef909){if(_0x3ef909==='china')return'cn';if(_0x3ef909==='indonesia')return'id';return isLovrabetRegion(_0x3ef909)?_0x3ef909:DEFAULT_LOVRABET_REGION;}