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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) 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.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/search.js +1 -1
  110. package/lib/commands/kb/shared.js +1 -1
  111. package/lib/commands/kb/update.js +1 -1
  112. package/lib/commands/logs/index.js +1 -1
  113. package/lib/commands/menu/asset-update.js +1 -1
  114. package/lib/commands/menu/delete.js +1 -1
  115. package/lib/commands/menu/external-link-create.js +1 -1
  116. package/lib/commands/menu/external-link-update.js +1 -1
  117. package/lib/commands/menu/group-create.js +1 -1
  118. package/lib/commands/menu/group-update.js +1 -1
  119. package/lib/commands/menu/index.js +1 -1
  120. package/lib/commands/menu/list.js +1 -1
  121. package/lib/commands/menu/move.js +1 -1
  122. package/lib/commands/menu/regroup-start.js +1 -1
  123. package/lib/commands/menu/rename.js +1 -1
  124. package/lib/commands/menu/shared/compare-table.js +1 -1
  125. package/lib/commands/menu/shared/delete-plan.js +1 -1
  126. package/lib/commands/menu/shared/facts.js +1 -1
  127. package/lib/commands/menu/shared/index.js +1 -1
  128. package/lib/commands/menu/shared/inquirer.js +1 -1
  129. package/lib/commands/menu/shared/local-pages.js +1 -1
  130. package/lib/commands/menu/shared/logic.js +1 -1
  131. package/lib/commands/menu/shared/mutations.js +1 -1
  132. package/lib/commands/menu/shared/service.js +1 -1
  133. package/lib/commands/menu/shared/sync-core.js +1 -1
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/create.js +1 -1
  146. package/lib/commands/page/custom/detail.js +1 -1
  147. package/lib/commands/page/custom/list.js +1 -1
  148. package/lib/commands/page/custom/publish.js +1 -1
  149. package/lib/commands/page/custom/shared.js +1 -1
  150. package/lib/commands/page/custom/syntax.js +1 -1
  151. package/lib/commands/page/custom/template.js +1 -1
  152. package/lib/commands/page/custom/update.js +1 -1
  153. package/lib/commands/page/data-list-status.js +1 -1
  154. package/lib/commands/page/generate-start.js +1 -1
  155. package/lib/commands/page/generate-status.js +1 -1
  156. package/lib/commands/page/index.js +1 -1
  157. package/lib/commands/page/pull.js +1 -1
  158. package/lib/commands/page/push.js +1 -1
  159. package/lib/commands/page/relation-audit.js +1 -1
  160. package/lib/commands/page/restore.js +1 -1
  161. package/lib/commands/page/shared.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.js +1 -1
  181. package/lib/commands/role/update.js +1 -1
  182. package/lib/commands/role/user-add.js +1 -1
  183. package/lib/commands/role/user-remove.js +1 -1
  184. package/lib/commands/role/user-resolve.js +1 -1
  185. package/lib/commands/run/index.js +1 -1
  186. package/lib/commands/schema.js +1 -1
  187. package/lib/commands/sql/create.js +1 -1
  188. package/lib/commands/sql/delete.js +1 -1
  189. package/lib/commands/sql/detail.js +1 -1
  190. package/lib/commands/sql/exec.js +1 -1
  191. package/lib/commands/sql/index.js +1 -1
  192. package/lib/commands/sql/list.js +1 -1
  193. package/lib/commands/sql/pull.js +1 -1
  194. package/lib/commands/sql/push.js +1 -1
  195. package/lib/commands/sql/shared.js +1 -1
  196. package/lib/commands/sql/status.js +1 -1
  197. package/lib/commands/sql/validate.js +1 -1
  198. package/lib/commands/task/index.js +1 -1
  199. package/lib/commands/task/status.js +1 -1
  200. package/lib/commands/tenant/index.js +1 -1
  201. package/lib/commands/tenant/members-list.js +1 -1
  202. package/lib/commands/tenant/shared.js +1 -1
  203. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  204. package/lib/commands/user-account/index.js +1 -1
  205. package/lib/commands/workspace/add.js +1 -1
  206. package/lib/commands/workspace/index.js +1 -1
  207. package/lib/commands/workspace/remove.js +1 -1
  208. package/lib/config/domain-config.d.ts +1 -1
  209. package/lib/config/domain-config.js +1 -1
  210. package/lib/config/project-routing.d.ts +30 -0
  211. package/lib/config/project-routing.js +1 -0
  212. package/lib/config/schema.d.ts +1 -1
  213. package/lib/config/schema.js +1 -1
  214. package/lib/constant/cdn.js +1 -1
  215. package/lib/constant/cli.js +1 -1
  216. package/lib/constant/defaults.js +1 -1
  217. package/lib/constant/domain.d.ts +7 -2
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.d.ts +2 -2
  223. package/lib/constant/region.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/constant/routing-profile.d.ts +115 -0
  226. package/lib/constant/routing-profile.js +1 -0
  227. package/lib/context/app-resolver.js +1 -1
  228. package/lib/context/auth-resolver.js +1 -1
  229. package/lib/context/config-loader.js +1 -1
  230. package/lib/context.js +1 -1
  231. package/lib/core/alias-resolver.js +1 -1
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.js +1 -1
  266. package/lib/runtime/confirmation.js +1 -1
  267. package/lib/runtime/event.js +1 -1
  268. package/lib/runtime/index.js +1 -1
  269. package/lib/runtime/queue.js +1 -1
  270. package/lib/runtime/resolve.js +1 -1
  271. package/lib/skills/builtin-skill.js +1 -1
  272. package/lib/skills/main.js +1 -1
  273. package/lib/skills/npx-skills-add.js +1 -1
  274. package/lib/skills/skill-presence.js +1 -1
  275. package/lib/telemetry/cli-command-trace.js +1 -1
  276. package/lib/telemetry/cli-help-trace.js +1 -1
  277. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  278. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  279. package/lib/telemetry/send-cli-trace-log.js +1 -1
  280. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  281. package/lib/utils/ai_config.js +1 -1
  282. package/lib/utils/apply-jq-filter.js +1 -1
  283. package/lib/utils/cdn-config.js +1 -1
  284. package/lib/utils/check-sdk-version.js +1 -1
  285. package/lib/utils/cli-version-check.js +1 -1
  286. package/lib/utils/cli-version-policy.js +1 -1
  287. package/lib/utils/config.js +1 -1
  288. package/lib/utils/entity-with-id.js +1 -1
  289. package/lib/utils/file-utils.js +1 -1
  290. package/lib/utils/guides-cdn.js +1 -1
  291. package/lib/utils/http-client.js +1 -1
  292. package/lib/utils/is-non-interactive.js +1 -1
  293. package/lib/utils/logger.js +1 -1
  294. package/lib/utils/params.js +1 -1
  295. package/lib/utils/platform.js +1 -1
  296. package/lib/utils/sleep.js +1 -1
  297. package/lib/utils/template-replacer.js +1 -1
  298. package/lib/utils/update-notice.js +1 -1
  299. package/lib/utils/version.js +1 -1
  300. package/lib/utils/with-active-cookie.js +1 -1
  301. package/lib/utils/write-cli-side-channel.js +1 -1
  302. package/package.json +1 -2
  303. package/skills/rabetbase/SKILL.md +10 -5
  304. package/skills/rabetbase/guides/frontend-development.md +2 -0
  305. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  306. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  307. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  308. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  309. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  310. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  311. package/skills/rabetbase.manifest.json +3 -3
  312. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- const a206_0x229324=a206_0x4e72;(function(_0x1f715d,_0x2c31e3){const _0x2ec5a1=a206_0x4e72,_0x47d28c=_0x1f715d();while(!![]){try{const _0x11025f=-parseInt(_0x2ec5a1(0xe0))/0x1+-parseInt(_0x2ec5a1(0xe3))/0x2+parseInt(_0x2ec5a1(0xd6))/0x3+parseInt(_0x2ec5a1(0xd8))/0x4+-parseInt(_0x2ec5a1(0xd1))/0x5*(-parseInt(_0x2ec5a1(0xd9))/0x6)+-parseInt(_0x2ec5a1(0xec))/0x7*(-parseInt(_0x2ec5a1(0xf7))/0x8)+parseInt(_0x2ec5a1(0xde))/0x9*(-parseInt(_0x2ec5a1(0xe8))/0xa);if(_0x11025f===_0x2c31e3)break;else _0x47d28c['push'](_0x47d28c['shift']());}catch(_0x1ff500){_0x47d28c['push'](_0x47d28c['shift']());}}}(a206_0x36bc,0xc2888));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x229324(0xcb),'apiDomain',a206_0x229324(0xca),a206_0x229324(0xe5),a206_0x229324(0xe7),a206_0x229324(0xef)];function a206_0x36bc(){const _0x1d1e57=['string','2155930wddIOR','origin','filter','search','hash','3908136HyDxvX','pathname','4441736pAgVof','18NKjRSL','str','Invalid\x20domain\x20config\x20JSON:\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','utf8','110079VzIMkd',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','673095SMoPYL','Allowed\x20fields:\x20','domain-config','1810324SQkkXz','Domain\x20config\x20file\x20not\x20found:\x20','skillDomain','trim','kbDomain','2190yEpEyJ','join','keys','Invalid\x20','377146lQMHcZ','skillHubDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','appDomain','agentDomain','isArray','user-domain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','protocol','length','validation','200heiXyV','runtimeDomain','userDomain','\x22\x20is\x20not\x20a\x20valid\x20URL.','https:','includes','skill-domain'];a206_0x36bc=function(){return _0x1d1e57;};return a206_0x36bc();}const DOMAIN_FLAGS={'userDomain':a206_0x229324(0xf2),'apiDomain':'api-domain','runtimeDomain':'runtime-domain','skillDomain':a206_0x229324(0xcf),'kbDomain':'kb-domain','appDomain':'app-domain'};function a206_0x4e72(_0x28ce74,_0x1ae9c3){_0x28ce74=_0x28ce74-0xca;const _0x36bc3b=a206_0x36bc();let _0x4e72a9=_0x36bc3b[_0x28ce74];return _0x4e72a9;}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x229324(0xf0),'platformDomain',a206_0x229324(0xed)];export function normalizeDomainOrigin(_0x4716fc,_0x468fff){const _0x50e0f2=a206_0x229324;if(typeof _0x468fff!==_0x50e0f2(0xd0)||!_0x468fff['trim']())throw CliErrors['validation'](_0x50e0f2(0xeb)+_0x4716fc+_0x50e0f2(0xdf));let _0x1995fe;try{_0x1995fe=new URL(_0x468fff[_0x50e0f2(0xe6)]());}catch{throw CliErrors['validation'](_0x50e0f2(0xeb)+_0x4716fc+':\x20\x22'+_0x468fff+_0x50e0f2(0xcc));}if(_0x1995fe[_0x50e0f2(0xf4)]!==_0x50e0f2(0xcd)||_0x1995fe['username']||_0x1995fe['password']||_0x1995fe[_0x50e0f2(0xd7)]!=='/'&&_0x1995fe[_0x50e0f2(0xd7)]!==''||_0x1995fe[_0x50e0f2(0xd4)]||_0x1995fe[_0x50e0f2(0xd5)])throw CliErrors[_0x50e0f2(0xf6)](_0x50e0f2(0xeb)+_0x4716fc+_0x50e0f2(0xdc),_0x50e0f2(0xee));return _0x1995fe[_0x50e0f2(0xd2)];}export function readDomainConfig(_0x382890){const _0x45e835=a206_0x229324,_0x38c53d=isAbsolute(_0x382890)?_0x382890:resolve(process['cwd'](),_0x382890);if(!existsSync(_0x38c53d))throw CliErrors[_0x45e835(0xf6)](_0x45e835(0xe4)+_0x38c53d);let _0x183184;try{_0x183184=JSON['parse'](readFileSync(_0x38c53d,_0x45e835(0xdd)));}catch{throw CliErrors[_0x45e835(0xf6)](_0x45e835(0xdb)+_0x38c53d);}if(!_0x183184||typeof _0x183184!=='object'||Array[_0x45e835(0xf1)](_0x183184))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x147ab8=_0x183184,_0x1e4df3=Object['keys'](_0x147ab8)[_0x45e835(0xd3)](_0x5322ed=>!DOMAIN_CONFIG_FIELDS[_0x45e835(0xce)](_0x5322ed));if(_0x1e4df3[_0x45e835(0xf5)]>0x0)throw CliErrors['validation']('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x1e4df3[_0x45e835(0xe9)](',\x20'),_0x45e835(0xe1)+DOMAIN_CONFIG_FIELDS[_0x45e835(0xe9)](',\x20'));const _0x4140c2={};for(const _0x5dc1d8 of DOMAIN_CONFIG_FIELDS){_0x147ab8[_0x5dc1d8]!==undefined&&(_0x4140c2[_0x5dc1d8]=normalizeDomainOrigin(_0x5dc1d8,_0x147ab8[_0x5dc1d8]));}if(Object[_0x45e835(0xea)](_0x4140c2)['length']===0x0)throw CliErrors[_0x45e835(0xf6)](_0x45e835(0xf3));return _0x4140c2;}export function resolveDomainFlags(_0x14af31){const _0x1dd971=a206_0x229324,_0x507e80=(_0x14af31[_0x1dd971(0xda)](_0x1dd971(0xe2))||'')['trim'](),_0x475f4f=_0x507e80?readDomainConfig(_0x507e80):{};for(const _0x55801e of DOMAIN_CONFIG_FIELDS){const _0x2ef865=(_0x14af31[_0x1dd971(0xda)](DOMAIN_FLAGS[_0x55801e])||'')['trim']();if(_0x2ef865)_0x475f4f[_0x55801e]=normalizeDomainOrigin(_0x55801e,_0x2ef865);}return _0x475f4f;}
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;}
@@ -0,0 +1,30 @@
1
+ import type { LovrabetRegion } from "../constant/region.js";
2
+ export declare const PROJECT_ROUTING_FILE_NAME = "rabetbase.routing.json";
3
+ export declare const PROJECT_ROUTING_PROTOCOL = "lovrabet-project-routing/v1";
4
+ export type ProjectAssetRouting = {
5
+ strategy: "cdn";
6
+ origin: string;
7
+ } | {
8
+ strategy: "bundle";
9
+ };
10
+ export interface ProjectRoutingManifest {
11
+ protocol: typeof PROJECT_ROUTING_PROTOCOL;
12
+ mode: "official" | "independent";
13
+ region: LovrabetRegion | null;
14
+ domains: {
15
+ user: string;
16
+ app: string;
17
+ runtime: string;
18
+ };
19
+ assets: ProjectAssetRouting;
20
+ local: {
21
+ origin: string;
22
+ certificateUrl?: string;
23
+ };
24
+ }
25
+ /** Resolves only public, final routing facts for generated browser projects. */
26
+ export declare function getProjectRoutingManifest(): ProjectRoutingManifest;
27
+ export declare function writeProjectRoutingManifest(projectRoot: string): {
28
+ path: string;
29
+ manifest: ProjectRoutingManifest;
30
+ };
@@ -0,0 +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,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"];
3
+ export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
4
4
  export interface ConfigMetadataFields {
5
5
  version?: string;
6
6
  createdAt?: string;
@@ -1 +1 @@
1
- const a207_0x4b43f6=a207_0x5894;(function(_0x792fac,_0x1f873d){const _0x50f6c8=a207_0x5894,_0x220f46=_0x792fac();while(!![]){try{const _0x22ab16=-parseInt(_0x50f6c8(0x155))/0x1+parseInt(_0x50f6c8(0x172))/0x2*(-parseInt(_0x50f6c8(0x14f))/0x3)+parseInt(_0x50f6c8(0x178))/0x4+parseInt(_0x50f6c8(0x168))/0x5*(parseInt(_0x50f6c8(0x167))/0x6)+parseInt(_0x50f6c8(0x179))/0x7*(-parseInt(_0x50f6c8(0x170))/0x8)+parseInt(_0x50f6c8(0x160))/0x9*(parseInt(_0x50f6c8(0x16b))/0xa)+parseInt(_0x50f6c8(0x174))/0xb;if(_0x22ab16===_0x1f873d)break;else _0x220f46['push'](_0x220f46['shift']());}catch(_0x1639ce){_0x220f46['push'](_0x220f46['shift']());}}}(a207_0x4507,0x6568c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a207_0x5894(_0x56b7de,_0x5d5bef){_0x56b7de=_0x56b7de-0x149;const _0x4507f7=a207_0x4507();let _0x589441=_0x4507f7[_0x56b7de];return _0x589441;}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=[a207_0x4b43f6(0x169),a207_0x4b43f6(0x166),a207_0x4b43f6(0x165),a207_0x4b43f6(0x164),'riskLevel','region',a207_0x4b43f6(0x171),a207_0x4b43f6(0x176),'runtimeDomain',a207_0x4b43f6(0x14c),'kbDomain','appDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x4b43f6(0x14d),a207_0x4b43f6(0x159),'locale',a207_0x4b43f6(0x164),a207_0x4b43f6(0x169),a207_0x4b43f6(0x166),a207_0x4b43f6(0x15f),a207_0x4b43f6(0x16c),a207_0x4b43f6(0x171),a207_0x4b43f6(0x176),a207_0x4b43f6(0x14b),'skillDomain',a207_0x4b43f6(0x16a),a207_0x4b43f6(0x15a)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0xd891a7){const _0x13ea8e=a207_0x4b43f6;return[..._0xd891a7][_0x13ea8e(0x149)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x50dc20){const _0x6f726a=a207_0x4b43f6;return TOP_LEVEL_CONFIG_KEYS[_0x6f726a(0x154)](_0x50dc20);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x4b43f6(0x159),'apiDir':a207_0x4b43f6(0x15f),'cookie':'cookie','accessKey':a207_0x4b43f6(0x166),'defaultFormat':a207_0x4b43f6(0x164),'pageSize':a207_0x4b43f6(0x151),'riskLevel':a207_0x4b43f6(0x173),'locale':a207_0x4b43f6(0x165)};export function getAppProfileFlagDefs(){const _0x5fd3c0=a207_0x4b43f6;return[{'name':_0x5fd3c0(0x159),'type':_0x5fd3c0(0x163),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5fd3c0(0x15f),'type':_0x5fd3c0(0x163),'description':_0x5fd3c0(0x162)},{'name':_0x5fd3c0(0x169),'type':_0x5fd3c0(0x163),'description':_0x5fd3c0(0x156),'hidden':!![]},{'name':_0x5fd3c0(0x166),'type':'string','description':_0x5fd3c0(0x15e),'hidden':!![]},{'name':'defaultFormat','type':'string','description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x5fd3c0(0x15d),'description':'Default\x20page\x20size'},{'name':_0x5fd3c0(0x173),'type':'string','description':_0x5fd3c0(0x15b),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x5fd3c0(0x163),'description':_0x5fd3c0(0x158)}];}export function collectAppProfileOverrides(_0x20c49b){const _0x3ad4ca=a207_0x4b43f6,_0x269560={};for(const [_0x17a2c4,_0x550ae3]of Object[_0x3ad4ca(0x152)](APP_PROFILE_FLAG_KEY_MAP)){const _0x35b146=_0x20c49b(_0x17a2c4);if(!_0x35b146)continue;_0x269560[_0x550ae3]=_0x550ae3===_0x3ad4ca(0x151)?Number(_0x35b146):_0x35b146;}return _0x269560;}function a207_0x4507(){const _0x13afac=['toLowerCase','pageSize','entries','keys','has','806649zZMGrd','Auth\x20cookie','apps','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','env','appDomain','Risk\x20level','defaultApp','number','Access\x20key','apiDir','2831373htrolD','zh-CN','API\x20directory\x20path','string','format','locale','accessKey','12XgqcQD','2022620XDCKIq','cookie','kbDomain','10DdWwnh','region','app','map','object','3133528bFdVou','userDomain','18DxoXvK','riskLevel','4548258uJLPbt','inherit','apiDomain','length','715064PRNGuQ','7IWQNSH','join','filter','runtimeDomain','skillDomain','appcode','en-US','34059bdlhKS'];a207_0x4507=function(){return _0x13afac;};return a207_0x4507();}export function buildAppProfileListFields(_0x3dad04){const _0x288d7b=a207_0x4b43f6;return{'env':_0x3dad04[_0x288d7b(0x159)]??null,'apiDir':_0x3dad04['apiDir']??null,'hasCookie':!!_0x3dad04[_0x288d7b(0x169)],'hasAccessKey':!!_0x3dad04[_0x288d7b(0x166)],'format':_0x3dad04[_0x288d7b(0x164)]??null,'pageSize':_0x3dad04[_0x288d7b(0x151)]??null,'riskLevel':_0x3dad04['riskLevel']??null,'locale':_0x3dad04['locale']??null};}export function buildAppDoctorFields(_0x1d2b2d,_0x33d57f){const _0x4ccd4b=a207_0x4b43f6;return{'env':{'value':_0x1d2b2d[_0x4ccd4b(0x159)]||_0x33d57f[_0x4ccd4b(0x159)],'source':_0x1d2b2d[_0x4ccd4b(0x159)]?_0x4ccd4b(0x16d):_0x4ccd4b(0x175)},'apiDir':{'value':_0x1d2b2d[_0x4ccd4b(0x15f)]||_0x33d57f[_0x4ccd4b(0x15f)],'source':_0x1d2b2d[_0x4ccd4b(0x15f)]?_0x4ccd4b(0x16d):_0x4ccd4b(0x175)},'cookie':{'value':_0x1d2b2d[_0x4ccd4b(0x169)]||_0x33d57f['cookie'],'source':_0x1d2b2d[_0x4ccd4b(0x169)]?_0x4ccd4b(0x16d):'inherit'},'accessKey':{'value':_0x1d2b2d[_0x4ccd4b(0x166)]||_0x33d57f[_0x4ccd4b(0x166)],'source':_0x1d2b2d[_0x4ccd4b(0x166)]?'app':_0x4ccd4b(0x175)}};}export function buildCanonicalAppConfig(_0x2b1b28,_0x3e27e8){const _0xb93f6b=a207_0x4b43f6,_0xfb7a38=_0x2b1b28[_0xb93f6b(0x16e)](_0x47b7f5=>String(_0x47b7f5||'')['trim']())[_0xb93f6b(0x14a)](Boolean);if(_0xfb7a38['length']===0x0)return{};const _0x12fc79={};for(const _0x3f41ed of _0xfb7a38){_0x12fc79[_0x3f41ed]=_0x3e27e8?{'appcode':_0x3f41ed,'env':_0x3e27e8}:{'appcode':_0x3f41ed};}return _0xfb7a38[_0xb93f6b(0x177)]>0x1?{'apps':_0x12fc79,'defaultApp':_0xfb7a38[0x0]}:{'apps':_0x12fc79};}export function normalizeStoredDefaultApp(_0xe65bc2,_0x32c45c){const _0x10c1dc=a207_0x4b43f6,_0x212793=_0xe65bc2['apps']&&typeof _0xe65bc2['apps']===_0x10c1dc(0x16f)?_0xe65bc2[_0x10c1dc(0x157)]:{},_0x312ec3=Object[_0x10c1dc(0x153)](_0x212793);if(_0x312ec3[_0x10c1dc(0x177)]<=0x1)return delete _0xe65bc2[_0x10c1dc(0x15c)],undefined;const _0x1915f7=typeof _0xe65bc2[_0x10c1dc(0x15c)]===_0x10c1dc(0x163)&&_0x212793[_0xe65bc2[_0x10c1dc(0x15c)]]?_0xe65bc2[_0x10c1dc(0x15c)]:undefined,_0x28301a=_0x32c45c&&_0x212793[_0x32c45c]?_0x32c45c:_0x1915f7;if(_0x28301a)return _0xe65bc2[_0x10c1dc(0x15c)]=_0x28301a,_0x28301a;return delete _0xe65bc2[_0x10c1dc(0x15c)],undefined;}export function buildCanonicalProjectConfig(_0x27e9e6,_0x511985){const _0x3dbf93=a207_0x4b43f6,{appCodes:appCodes=[],env:_0x4a00a0,metadata:_0x41cb91}=_0x511985,_0x99db6b={..._0x27e9e6,..._0x41cb91||{}};delete _0x99db6b[_0x3dbf93(0x14d)],delete _0x99db6b[_0x3dbf93(0x16d)];if(_0x4a00a0)_0x99db6b['env']=_0x4a00a0;else!_0x99db6b[_0x3dbf93(0x159)]&&(_0x99db6b[_0x3dbf93(0x159)]=DEFAULT_CONFIG_VALUES['env']);const _0x30a8f9=buildCanonicalAppConfig(appCodes,_0x99db6b[_0x3dbf93(0x159)]);if(Object[_0x3dbf93(0x153)](_0x30a8f9)[_0x3dbf93(0x177)]>0x0){_0x99db6b[_0x3dbf93(0x157)]=_0x30a8f9[_0x3dbf93(0x157)];if(_0x30a8f9[_0x3dbf93(0x15c)])_0x99db6b[_0x3dbf93(0x15c)]=_0x30a8f9[_0x3dbf93(0x15c)];else delete _0x99db6b['defaultApp'];}return _0x99db6b;}const LOCALE_MAP={'zh':a207_0x4b43f6(0x161),'zh-cn':a207_0x4b43f6(0x161),'zh_cn':a207_0x4b43f6(0x161),'en':'en-US','en-us':a207_0x4b43f6(0x14e),'en_us':'en-US'};export function normalizeLocale(_0x2eb129){const _0xe33a09=a207_0x4b43f6;if(!_0x2eb129)return null;return LOCALE_MAP[_0x2eb129[_0xe33a09(0x150)]()]??null;}
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 +1 @@
1
- const a208_0x30f1ba=a208_0x4c97;function a208_0x232d(){const _0x382dcb=['1280OGLvHC','8605WGfJnp','1269748XHfTaD','55551WofSEQ','3QpXmWi','2sVoeBY','/templates/projects','20986QFDbvJ','3874VdBCAG','472149wbXlKY','/config/index.json','10HgwNIR','11196XHlchR','4617547zlMyoD','1578TXVEwB'];a208_0x232d=function(){return _0x382dcb;};return a208_0x232d();}(function(_0xade291,_0x1f87bd){const _0x266968=a208_0x4c97,_0x2774fb=_0xade291();while(!![]){try{const _0x31f02d=-parseInt(_0x266968(0x17d))/0x1*(parseInt(_0x266968(0x17f))/0x2)+-parseInt(_0x266968(0x17e))/0x3*(parseInt(_0x266968(0x17c))/0x4)+-parseInt(_0x266968(0x18a))/0x5*(-parseInt(_0x266968(0x188))/0x6)+parseInt(_0x266968(0x181))/0x7*(-parseInt(_0x266968(0x189))/0x8)+-parseInt(_0x266968(0x183))/0x9+-parseInt(_0x266968(0x185))/0xa*(-parseInt(_0x266968(0x187))/0xb)+-parseInt(_0x266968(0x186))/0xc*(-parseInt(_0x266968(0x182))/0xd);if(_0x31f02d===_0x1f87bd)break;else _0x2774fb['push'](_0x2774fb['shift']());}catch(_0x3656bc){_0x2774fb['push'](_0x2774fb['shift']());}}}(a208_0x232d,0x3be39));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x30f1ba(0x184);function a208_0x4c97(_0x387469,_0x116d1a){_0x387469=_0x387469-0x17c;const _0x232d69=a208_0x232d();let _0x4c9753=_0x232d69[_0x387469];return _0x4c9753;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x30f1ba(0x180);
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 +1 @@
1
- const a209_0x797d78=a209_0x42a7;(function(_0x101d27,_0x19e11a){const _0x5d9037=a209_0x42a7,_0x14bc19=_0x101d27();while(!![]){try{const _0x2342d9=parseInt(_0x5d9037(0x1c2))/0x1+-parseInt(_0x5d9037(0x1bd))/0x2+-parseInt(_0x5d9037(0x228))/0x3*(parseInt(_0x5d9037(0x1de))/0x4)+parseInt(_0x5d9037(0x220))/0x5+-parseInt(_0x5d9037(0x20a))/0x6+-parseInt(_0x5d9037(0x218))/0x7+parseInt(_0x5d9037(0x1ef))/0x8*(parseInt(_0x5d9037(0x1f0))/0x9);if(_0x2342d9===_0x19e11a)break;else _0x14bc19['push'](_0x14bc19['shift']());}catch(_0xc9f620){_0x14bc19['push'](_0x14bc19['shift']());}}}(a209_0x3c3a,0xcdbc9));function a209_0x42a7(_0x340c4f,_0x3e8ce8){_0x340c4f=_0x340c4f-0x1a8;const _0x3c3a51=a209_0x3c3a();let _0x42a755=_0x3c3a51[_0x340c4f];return _0x42a755;}export const CLI_BIN_NAME=a209_0x797d78(0x1b7);export const CLI_DISPLAY_NAME=a209_0x797d78(0x1fe);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a209_0x797d78(0x210),'meowKey':'appcode','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1d0),'hint':a209_0x797d78(0x1c3)},{'name':'app','meowKey':a209_0x797d78(0x1f5),'type':a209_0x797d78(0x202),'description':'Select\x20app\x20profile\x20by\x20name','hint':a209_0x797d78(0x1fa)},{'name':a209_0x797d78(0x1b8),'meowKey':a209_0x797d78(0x1b8),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1eb),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':'format','type':a209_0x797d78(0x202),'description':'Output\x20format','hint':a209_0x797d78(0x1d1)},{'name':'jq','meowKey':'jq','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x20e),'hint':a209_0x797d78(0x20f)},{'name':a209_0x797d78(0x1da),'meowKey':a209_0x797d78(0x1f6),'type':a209_0x797d78(0x1d7),'description':'Preview\x20operation\x20without\x20executing'},{'name':a209_0x797d78(0x222),'meowKey':a209_0x797d78(0x222),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x208)},{'name':a209_0x797d78(0x1d6),'meowKey':a209_0x797d78(0x211),'type':a209_0x797d78(0x1d7),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a209_0x797d78(0x1d8),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a209_0x797d78(0x207),'type':'boolean','description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a209_0x797d78(0x205),'type':'boolean','description':'Show\x20help'},{'name':'locale','meowKey':a209_0x797d78(0x1cd),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1a8),'hidden':!![],'hint':a209_0x797d78(0x217)},{'name':'name','meowKey':a209_0x797d78(0x1f3),'type':a209_0x797d78(0x202),'description':'Name','hidden':!![]},{'name':'title','meowKey':a209_0x797d78(0x21f),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x221),'hidden':!![]},{'name':'query','meowKey':a209_0x797d78(0x21e),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x21c),'hidden':!![]},{'name':a209_0x797d78(0x206),'meowKey':a209_0x797d78(0x206),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x223),'hidden':!![]},{'name':'clear','meowKey':a209_0x797d78(0x1b2),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1d2),'hidden':!![]},{'name':a209_0x797d78(0x1ae),'meowKey':'watch','type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1dc),'hidden':!![]},{'name':a209_0x797d78(0x21b),'meowKey':'output','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1ca),'hidden':!![]},{'name':a209_0x797d78(0x1af),'meowKey':a209_0x797d78(0x1af),'type':a209_0x797d78(0x202),'description':'JSON\x20params','hidden':!![]},{'name':a209_0x797d78(0x20c),'meowKey':'datasetcode','type':a209_0x797d78(0x202),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a209_0x797d78(0x1b6),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x224),'hidden':!![]},{'name':a209_0x797d78(0x1cb),'meowKey':a209_0x797d78(0x1d3),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1db),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1e3),'hidden':!![]},{'name':a209_0x797d78(0x1d4),'meowKey':a209_0x797d78(0x1d4),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x216),'hidden':!![]},{'name':a209_0x797d78(0x1d5),'meowKey':a209_0x797d78(0x1d5),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1b9),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1bb),'hidden':!![]},{'name':a209_0x797d78(0x1e6),'meowKey':a209_0x797d78(0x1e0),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x209),'hidden':!![]},{'name':a209_0x797d78(0x1ff),'meowKey':a209_0x797d78(0x1ff),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x209),'hidden':!![]},{'name':a209_0x797d78(0x203),'meowKey':a209_0x797d78(0x1bf),'type':a209_0x797d78(0x202),'description':'DB\x20ID','hidden':!![]},{'name':a209_0x797d78(0x1b3),'meowKey':a209_0x797d78(0x1b3),'type':a209_0x797d78(0x202),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a209_0x797d78(0x1fb),'type':'string','description':a209_0x797d78(0x1ad),'hidden':!![]},{'name':a209_0x797d78(0x1c6),'meowKey':a209_0x797d78(0x1f9),'type':a209_0x797d78(0x202),'description':'Description\x20file','hidden':!![]},{'name':a209_0x797d78(0x1be),'meowKey':'page','type':'string','description':a209_0x797d78(0x1e8),'hidden':!![]},{'name':a209_0x797d78(0x1bc),'meowKey':a209_0x797d78(0x1bc),'type':a209_0x797d78(0x202),'description':'Page\x20size','hidden':!![]},{'name':a209_0x797d78(0x1ec),'meowKey':a209_0x797d78(0x1ec),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1dd),'hidden':!![]},{'name':'code','meowKey':a209_0x797d78(0x20b),'type':'string','description':a209_0x797d78(0x201),'hidden':!![]},{'name':a209_0x797d78(0x1ee),'meowKey':a209_0x797d78(0x1ee),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x225),'hidden':!![]},{'name':a209_0x797d78(0x1e2),'meowKey':a209_0x797d78(0x1e2),'type':a209_0x797d78(0x202),'description':'Schemas','hidden':!![]},{'name':a209_0x797d78(0x1ce),'meowKey':a209_0x797d78(0x1ce),'type':a209_0x797d78(0x202),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x797d78(0x20d),'meowKey':'target','type':a209_0x797d78(0x202),'description':'Target\x20path','hidden':!![]},{'name':a209_0x797d78(0x1f7),'meowKey':a209_0x797d78(0x1ea),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1e4),'hidden':!![]},{'name':a209_0x797d78(0x1c1),'meowKey':'key','type':a209_0x797d78(0x202),'description':'Config\x20key','hidden':!![]},{'name':'value','meowKey':'value','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x226),'hidden':!![]},{'name':a209_0x797d78(0x1ba),'meowKey':a209_0x797d78(0x1ba),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x219),'hidden':!![]},{'name':a209_0x797d78(0x1c7),'meowKey':a209_0x797d78(0x1c7),'type':a209_0x797d78(0x1d7),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a209_0x797d78(0x1ed),'meowKey':a209_0x797d78(0x1d9),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1f2),'hidden':!![]},{'name':'reveal','meowKey':a209_0x797d78(0x212),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1aa),'hidden':!![]},{'name':a209_0x797d78(0x204),'meowKey':'force','type':'boolean','description':a209_0x797d78(0x1ab),'hidden':!![]},{'name':a209_0x797d78(0x1fc),'meowKey':a209_0x797d78(0x1fc),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1b5),'hidden':!![]},{'name':a209_0x797d78(0x1df),'meowKey':a209_0x797d78(0x1df),'type':a209_0x797d78(0x1d7),'description':a209_0x797d78(0x1e7),'hidden':!![]},{'name':a209_0x797d78(0x1cf),'meowKey':a209_0x797d78(0x1cf),'type':'boolean','description':a209_0x797d78(0x215),'hidden':!![]},{'name':'expected-count','meowKey':a209_0x797d78(0x22a),'type':'string','description':a209_0x797d78(0x1b0),'hidden':!![]},{'name':a209_0x797d78(0x1b1),'meowKey':a209_0x797d78(0x1b1),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1c4),'hidden':!![]},{'name':a209_0x797d78(0x1c0),'meowKey':a209_0x797d78(0x1b4),'type':a209_0x797d78(0x202),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a209_0x797d78(0x1e5),'meowKey':a209_0x797d78(0x1e5),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1f1),'hidden':!![]},{'name':'expect-parent-id','meowKey':a209_0x797d78(0x1e9),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x227),'hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1c9),'hidden':!![]},{'name':a209_0x797d78(0x21d),'meowKey':a209_0x797d78(0x1fd),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1ac),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a209_0x797d78(0x202),'description':a209_0x797d78(0x1f8),'hidden':!![]},{'name':a209_0x797d78(0x214),'meowKey':a209_0x797d78(0x1c8),'type':'string','description':a209_0x797d78(0x1a9),'hidden':!![]},{'name':a209_0x797d78(0x1cc),'meowKey':a209_0x797d78(0x21a),'type':a209_0x797d78(0x202),'description':a209_0x797d78(0x200),'hidden':!![]},{'name':a209_0x797d78(0x1f4),'meowKey':a209_0x797d78(0x229),'type':a209_0x797d78(0x202),'description':'Function\x20node','hidden':!![]}];function a209_0x3c3a(){const _0x49b1fc=['parentId','Confirm\x20destructive\x20action','all','rabetbase','env','File\x20path','tags','SQL\x20code','pagesize','86902bVyYMa','page','dbId','parent-id','key','800134XtxjQI','<code>','Menu\x20label','map','description-file','stdin','taskId','Expected\x20current\x20menu\x20path','Output\x20path','enable-bff-save','operation-type','locale','operation','verbose','Override\x20appcode','json\x20|\x20pretty\x20|\x20compress','Clear','enableBffSave','type','file','non-interactive','boolean','global','fromEnv','dry-run','Enable\x20Backend\x20Function\x20save','Watch\x20mode','Keyword\x20filter','1689972HqNLIm','remote','sqlName','meowKey','schemas','Record\x20ID','Skip\x20import\x20generation','sort','sql-name','Use\x20remote','Page\x20number','expectParentId','skipImports','Environment','keyword','from-env','sql','1408QlcprS','84114mlUQVE','Menu\x20sort\x20value','Read\x20value\x20from\x20environment\x20variable','name','function-node','app','dryRun','skip-imports','Comma-separated\x20menu\x20IDs','descriptionFile','<name>','description','confirm','expectedChildrenCount','Rabetbase\x20CLI','sqlname','Operation\x20type','Code\x20filter','string','db-id','force','help','topk','project','Skip\x20confirmation\x20for\x20high-risk\x20writes','SQL\x20name','3327882XmhZPb','code','datasetcode','target','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','<expr>','appcode','nonInteractive','reveal','fromEntries','task-id','Verbose\x20output','Type\x20filter','zh-CN\x20|\x20en-US','10895605esJZQv','Tags','operationType','output','Search\x20query','expected-children-count','query','title','4873865DudbKv','Title','yes','Maximum\x20search\x20hits','Apply\x20to\x20all','SQL\x20string','Config\x20value','Expected\x20current\x20parent\x20menu\x20id','3Mdukeg','functionNode','expectedCount','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','Force\x20overwrite','Expected\x20current\x20child\x20count','Description','watch','params','Expected\x20affected\x20count','label','clear','dbid'];a209_0x3c3a=function(){return _0x49b1fc;};return a209_0x3c3a();}export const PIPELINE_FLAG_NAMES=new Set([a209_0x797d78(0x210),a209_0x797d78(0x1f5),a209_0x797d78(0x1b8),'format','jq',a209_0x797d78(0x1da),a209_0x797d78(0x222),a209_0x797d78(0x1d6),'ci']);export function buildMeowFlags(){const _0x56d53a=a209_0x797d78;return Object[_0x56d53a(0x213)](GLOBAL_FLAGS[_0x56d53a(0x1c5)](_0x1df42f=>[_0x1df42f[_0x56d53a(0x1e1)],{'type':_0x1df42f[_0x56d53a(0x1d4)]}]));}
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 +1 @@
1
- const a210_0x3861c9=a210_0x3eb1;function a210_0x3eb1(_0x14744e,_0x246cac){_0x14744e=_0x14744e-0x193;const _0x1ca8e8=a210_0x1ca8();let _0x3eb18c=_0x1ca8e8[_0x14744e];return _0x3eb18c;}function a210_0x1ca8(){const _0x227450=['en-US','46981040JNvNFF','2141190ChVino','4YJhavy','3090692wVGxNT','compress','4158141dsqcwI','2263618pbrjJL','production','1637480zwMMCv','1879248wIDbqC'];a210_0x1ca8=function(){return _0x227450;};return a210_0x1ca8();}(function(_0x5568a7,_0x23fcf9){const _0x5bae0e=a210_0x3eb1,_0x18cd38=_0x5568a7();while(!![]){try{const _0x4ba8db=-parseInt(_0x5bae0e(0x19a))/0x1+-parseInt(_0x5bae0e(0x195))/0x2+-parseInt(_0x5bae0e(0x197))/0x3*(parseInt(_0x5bae0e(0x194))/0x4)+-parseInt(_0x5bae0e(0x193))/0x5+parseInt(_0x5bae0e(0x19b))/0x6+-parseInt(_0x5bae0e(0x198))/0x7+parseInt(_0x5bae0e(0x19d))/0x8;if(_0x4ba8db===_0x23fcf9)break;else _0x18cd38['push'](_0x18cd38['shift']());}catch(_0x4531b3){_0x18cd38['push'](_0x18cd38['shift']());}}}(a210_0x1ca8,0xd3449));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a210_0x3861c9(0x199),'format':a210_0x3861c9(0x196),'locale':a210_0x3861c9(0x19c),'riskLevel':'write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a210_0x3861c9(0x196);
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';
@@ -10,6 +10,8 @@ export declare function initDomains(domains?: {
10
10
  skillDomain?: string;
11
11
  kbDomain?: string;
12
12
  appDomain?: string;
13
+ localDomain?: string;
14
+ certificateDomain?: string;
13
15
  region?: LovrabetRegion;
14
16
  }): void;
15
17
  export declare const getUserDomain: () => string;
@@ -19,13 +21,16 @@ export declare const getSkillDomain: () => string;
19
21
  export declare const getKbDomain: () => string;
20
22
  export declare const getAppDomain: () => string;
21
23
  export declare const getActiveRegion: () => "global" | "id" | "cn";
24
+ export declare const getLocalDomain: () => string | undefined;
25
+ export declare const getCertificateDomain: () => string | undefined;
26
+ export declare function isIndependentDeployment(): boolean;
22
27
  /**
23
28
  * 生成到浏览器项目中的 SDK 路由白名单。
24
29
  *
25
30
  * - 企业独立部署只下发显式 runtimeDomain;
26
- * - id 下发 region,由 SDK 按 env 解析官方节点;
31
+ * - ID 下发 region,由 SDK 1.5.3+ 解析官方 Runtime Domain;
27
32
  * - cn 是 SDK 默认值,无需写入生成文件;
28
- * - 历史 global 配置不再作为 SDK region 暴露,改为下发当前 env 的完整地址。
33
+ * - Global 在 SDK 原生支持前下发当前完整地址。
29
34
  */
30
35
  export declare function getSdkClientRoutingConfig(): {
31
36
  region?: "id";
@@ -1 +1 @@
1
- const a211_0x2cb812=a211_0x17aa;(function(_0x2c2e7b,_0xb22d02){const _0x122b6c=a211_0x17aa,_0x5abdbb=_0x2c2e7b();while(!![]){try{const _0x31a82e=-parseInt(_0x122b6c(0x197))/0x1*(parseInt(_0x122b6c(0x1ab))/0x2)+parseInt(_0x122b6c(0x1b9))/0x3*(-parseInt(_0x122b6c(0x1af))/0x4)+-parseInt(_0x122b6c(0x199))/0x5+parseInt(_0x122b6c(0x1aa))/0x6+parseInt(_0x122b6c(0x1bd))/0x7*(-parseInt(_0x122b6c(0x1c4))/0x8)+parseInt(_0x122b6c(0x1c9))/0x9*(parseInt(_0x122b6c(0x1b4))/0xa)+parseInt(_0x122b6c(0x19a))/0xb;if(_0x31a82e===_0xb22d02)break;else _0x5abdbb['push'](_0x5abdbb['shift']());}catch(_0x419f64){_0x5abdbb['push'](_0x5abdbb['shift']());}}}(a211_0x11ed,0x6a8bd));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a211_0x2cb812(0x1ae),'api':'https://api.lovrabet.com','runtime':a211_0x2cb812(0x1bf),'skill':a211_0x2cb812(0x1a4),'kb':a211_0x2cb812(0x1c1),'app':a211_0x2cb812(0x1b0)},'nonProduction':{'user':a211_0x2cb812(0x1a5),'api':a211_0x2cb812(0x1a6),'runtime':'https://daily-runtime.lovrabet.com','skill':a211_0x2cb812(0x1c5),'kb':a211_0x2cb812(0x1a6),'app':'https://daily.lovrabet.com'}},'id':{'production':{'user':a211_0x2cb812(0x1a0),'api':'https://api.lovrabet.id','runtime':a211_0x2cb812(0x1ba),'skill':'https://skills.lovrabet.id','kb':a211_0x2cb812(0x1c3),'app':a211_0x2cb812(0x1b6)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':'https://daily-api.lovrabet.id','runtime':a211_0x2cb812(0x1a8),'skill':a211_0x2cb812(0x1a2),'kb':a211_0x2cb812(0x1a9),'app':'https://daily.lovrabet.id'}},'global':{'production':{'user':a211_0x2cb812(0x1a7),'api':'https://api.lovrabet.ai','runtime':a211_0x2cb812(0x19f),'skill':a211_0x2cb812(0x1c8),'kb':a211_0x2cb812(0x1be),'app':a211_0x2cb812(0x1b2)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a211_0x2cb812(0x1c7),'runtime':a211_0x2cb812(0x1a3),'skill':a211_0x2cb812(0x19e),'kb':a211_0x2cb812(0x1c7),'app':a211_0x2cb812(0x1b8)}}};function getActiveRegionDomains(){const _0x2199a4=a211_0x2cb812;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x2199a4(0x19d):'nonProduction'];}export function initDomains(_0x4b454e){const _0x2ab528=a211_0x2cb812;customApiDomain=_0x4b454e?.[_0x2ab528(0x19b)],customUserDomain=_0x4b454e?.[_0x2ab528(0x1b5)],customRuntimeDomain=_0x4b454e?.['runtimeDomain'],customSkillDomain=_0x4b454e?.['skillDomain'],customKbDomain=_0x4b454e?.[_0x2ab528(0x19c)],customAppDomain=_0x4b454e?.[_0x2ab528(0x1a1)],activeRegion=_0x4b454e?.[_0x2ab528(0x1b1)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a211_0x2cb812(0x1bb)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x2cb812(0x1c6)];function a211_0x17aa(_0x33e1ad,_0x45fada){_0x33e1ad=_0x33e1ad-0x197;const _0x11ed02=a211_0x11ed();let _0x17aaf4=_0x11ed02[_0x33e1ad];return _0x17aaf4;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x2cb812(0x1ad)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a211_0x2cb812(0x198)];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0xd9f839=a211_0x2cb812;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0xd9f839(0x1c6)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0xd9f839(0x1b3))return{'runtimeDomain':getRuntimeDomain()};return{};}function a211_0x11ed(){const _0x23caea=['14888148YkNuhX','apiDomain','kbDomain','production','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.ai','https://user.lovrabet.id','appDomain','https://skills-daily.lovrabet.id','https://daily-runtime.lovrabet.ai','https://skills.lovrabet.com','https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','https://user.lovrabet.ai','https://daily-runtime.lovrabet.id','https://daily-api.lovrabet.id','3296874xAUsHc','1089076WXlKmd','origin','skill','https://user.lovrabet.com','12VvJFKB','https://app.lovrabet.com','region','https://app.lovrabet.ai','global','1420hjwmUV','userDomain','https://app.lovrabet.id','hostname','https://daily.lovrabet.ai','629985dmmeyM','https://runtime.lovrabet.id','user','trim','35IcfBeP','https://api.lovrabet.ai','https://runtime.lovrabet.com','/web-app/app/','https://api.lovrabet.com','/app/','https://api.lovrabet.id','428872xofGMZ','https://skills-daily.lovrabet.com','runtime','https://daily-api.lovrabet.ai','https://skills.lovrabet.ai','49770oyVBwh','1JeITxA','app','4046130KydMNJ'];a211_0x11ed=function(){return _0x23caea;};return a211_0x11ed();}export const getAppBaseUrl=_0x70b203=>{const _0x3cf76c=a211_0x2cb812,_0x25f470=encodeURIComponent(_0x70b203['trim']());return isProduction(getEnv())?getAppDomain()+_0x3cf76c(0x1c2)+_0x25f470:getAppDomain()+_0x3cf76c(0x1c0)+_0x25f470;};export const getPublishedAppDomain=_0x328e55=>{const _0x575cde=a211_0x2cb812,_0x509e0b=new URL(getAppDomain());return _0x509e0b[_0x575cde(0x1b7)]=_0x328e55[_0x575cde(0x1bc)]()+'.'+_0x509e0b['hostname'],_0x509e0b[_0x575cde(0x1ac)];};
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 +1 @@
1
- const a212_0x3d30b1=a212_0x1c6b;(function(_0x12c51f,_0x591234){const _0x29ad05=a212_0x1c6b,_0x23a600=_0x12c51f();while(!![]){try{const _0x187a51=parseInt(_0x29ad05(0xa3))/0x1*(parseInt(_0x29ad05(0xaa))/0x2)+parseInt(_0x29ad05(0xab))/0x3*(parseInt(_0x29ad05(0xa8))/0x4)+parseInt(_0x29ad05(0xa0))/0x5+parseInt(_0x29ad05(0xa9))/0x6+-parseInt(_0x29ad05(0xac))/0x7*(parseInt(_0x29ad05(0x9f))/0x8)+parseInt(_0x29ad05(0x9e))/0x9+-parseInt(_0x29ad05(0xa4))/0xa;if(_0x187a51===_0x591234)break;else _0x23a600['push'](_0x23a600['shift']());}catch(_0x5c8702){_0x23a600['push'](_0x23a600['shift']());}}}(a212_0xe0b6,0x785fb));function a212_0x1c6b(_0x3588ca,_0x593758){_0x3588ca=_0x3588ca-0x9e;const _0xe0b632=a212_0xe0b6();let _0x1c6b6a=_0xe0b632[_0x3588ca];return _0x1c6b6a;}export const RABETBASE_ENV_VALUES=[a212_0x3d30b1(0xa1),a212_0x3d30b1(0xa7)];export function normalizeEnv(_0x5a5323){const _0x20518c=a212_0x3d30b1;return _0x5a5323===_0x20518c(0xa5)?_0x20518c(0xa1):_0x5a5323;}export function isProduction(_0x1652fd){const _0x2c5c41=a212_0x3d30b1;return normalizeEnv(_0x1652fd)===_0x2c5c41(0xa1);}export function isDaily(_0x488a93){const _0x17665a=a212_0x3d30b1;return normalizeEnv(_0x488a93)===_0x17665a(0xa7);}function a212_0xe0b6(){const _0x1b1ace=['online','dev','daily','8nQAyXm','5590650YOaeBd','179134vPLAzw','550014vvrgHS','1143023xBenLF','723825iEeSUP','48ASLxvp','4514615CkwOyq','production','development','5ULFiQv','12568490LGtGWy'];a212_0xe0b6=function(){return _0x1b1ace;};return a212_0xe0b6();}export function isDev(_0x35093e){const _0x5bb3bb=a212_0x3d30b1,_0x48d327=normalizeEnv(_0x35093e);return _0x48d327===_0x5bb3bb(0xa2)||_0x48d327===_0x5bb3bb(0xa6);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x3d30b1(0xa1));export function getEnv(){return env;}export function initEnv(_0x4b4d03){env=normalizeEnv(_0x4b4d03);}
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 +1 @@
1
- const a213_0x488213=a213_0x4a6e;(function(_0x229325,_0x5b831f){const _0x21592b=a213_0x4a6e,_0x1863ab=_0x229325();while(!![]){try{const _0x5b01cf=-parseInt(_0x21592b(0x146))/0x1*(parseInt(_0x21592b(0x148))/0x2)+parseInt(_0x21592b(0x149))/0x3+-parseInt(_0x21592b(0x142))/0x4*(-parseInt(_0x21592b(0x140))/0x5)+-parseInt(_0x21592b(0x144))/0x6*(parseInt(_0x21592b(0x141))/0x7)+parseInt(_0x21592b(0x147))/0x8+parseInt(_0x21592b(0x143))/0x9+parseInt(_0x21592b(0x145))/0xa;if(_0x5b01cf===_0x5b831f)break;else _0x1863ab['push'](_0x1863ab['shift']());}catch(_0x463660){_0x1863ab['push'](_0x1863ab['shift']());}}}(a213_0x4edf,0x8b633));function a213_0x4a6e(_0x555c00,_0x4d0d5e){_0x555c00=_0x555c00-0x13f;const _0x4edfbb=a213_0x4edf();let _0x4a6e09=_0x4edfbb[_0x555c00];return _0x4a6e09;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a213_0x488213(0x13f),a213_0x488213(0x14a),'compress'];function a213_0x4edf(){const _0x3509d1=['1754435LMKXMs','3997reDkhC','4AvFsST','2365029KIyoAc','8838PiYhyQ','12310760XVOKwf','14578lROpiM','4321368SiKNos','134pStzbu','11475ZiZslN','pretty','json'];a213_0x4edf=function(){return _0x3509d1;};return a213_0x4edf();}
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 +1 @@
1
- const a214_0x505b36=a214_0x3f9d;function a214_0x18cb(){const _0x13f65d=['13feaZcH','11wwaylE','40LGceYV','5851530yRwQhJ','14JNuzwZ','24994kxjdLk','2471499fGptKm','3625YSJsjl','84200pFZDhB','2DHckpV','4614qJsiMG','123117aIrHkQ','./src/api','8167812Fksbmy'];a214_0x18cb=function(){return _0x13f65d;};return a214_0x18cb();}(function(_0x34ca82,_0x144821){const _0x5e3245=a214_0x3f9d,_0x4942ec=_0x34ca82();while(!![]){try{const _0x2913c4=-parseInt(_0x5e3245(0xba))/0x1*(parseInt(_0x5e3245(0xb6))/0x2)+parseInt(_0x5e3245(0xbc))/0x3*(-parseInt(_0x5e3245(0xc1))/0x4)+-parseInt(_0x5e3245(0xb8))/0x5*(-parseInt(_0x5e3245(0xbb))/0x6)+-parseInt(_0x5e3245(0xb5))/0x7*(-parseInt(_0x5e3245(0xb9))/0x8)+parseInt(_0x5e3245(0xb7))/0x9+-parseInt(_0x5e3245(0xb4))/0xa*(-parseInt(_0x5e3245(0xc0))/0xb)+parseInt(_0x5e3245(0xbe))/0xc*(-parseInt(_0x5e3245(0xbf))/0xd);if(_0x2913c4===_0x144821)break;else _0x4942ec['push'](_0x4942ec['shift']());}catch(_0x400200){_0x4942ec['push'](_0x4942ec['shift']());}}}(a214_0x18cb,0x4eb00));function a214_0x3f9d(_0x266ade,_0x58effe){_0x266ade=_0x266ade-0xb4;const _0x18cb1e=a214_0x18cb();let _0x3f9d1c=_0x18cb1e[_0x266ade];return _0x3f9d1c;}export const DEFAULT_API_DIR=a214_0x505b36(0xbd);
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);
@@ -4,6 +4,6 @@ export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
4
4
  export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
5
5
  export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
6
6
  export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
7
- export declare function isEnabledLovrabetRegion(value: unknown): value is "cn" | "id";
8
- /** Keeps legacy long names and disabled regions readable; new writes use the enabled list. */
7
+ export declare function isEnabledLovrabetRegion(value: unknown): value is LovrabetRegion;
8
+ /** Keeps legacy long names readable; new writes use canonical short values. */
9
9
  export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion;
@@ -1 +1 @@
1
- function a215_0x6d4d(_0x79ebf3,_0x3089ee){_0x79ebf3=_0x79ebf3-0x6a;const _0x1c2c3c=a215_0x1c2c();let _0x6d4dda=_0x1c2c3c[_0x79ebf3];return _0x6d4dda;}const a215_0x5ea670=a215_0x6d4d;(function(_0x1d1ad7,_0xb4f39c){const _0x47dd48=a215_0x6d4d,_0x56e4c5=_0x1d1ad7();while(!![]){try{const _0x5b2295=parseInt(_0x47dd48(0x6b))/0x1*(-parseInt(_0x47dd48(0x74))/0x2)+-parseInt(_0x47dd48(0x79))/0x3*(-parseInt(_0x47dd48(0x71))/0x4)+parseInt(_0x47dd48(0x6f))/0x5*(parseInt(_0x47dd48(0x73))/0x6)+parseInt(_0x47dd48(0x78))/0x7+parseInt(_0x47dd48(0x70))/0x8+parseInt(_0x47dd48(0x77))/0x9*(-parseInt(_0x47dd48(0x6d))/0xa)+parseInt(_0x47dd48(0x7a))/0xb*(-parseInt(_0x47dd48(0x6e))/0xc);if(_0x5b2295===_0xb4f39c)break;else _0x56e4c5['push'](_0x56e4c5['shift']());}catch(_0x1380b6){_0x56e4c5['push'](_0x56e4c5['shift']());}}}(a215_0x1c2c,0x5152c));export const LOVRABET_REGION_VALUES=['cn','id',a215_0x5ea670(0x6c)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x1b5f17){return typeof _0x1b5f17==='string'&&LOVRABET_REGION_VALUES['includes'](_0x1b5f17);}export function isEnabledLovrabetRegion(_0x416b4c){const _0x5ae7bc=a215_0x5ea670;return typeof _0x416b4c===_0x5ae7bc(0x75)&&ENABLED_LOVRABET_REGION_VALUES[_0x5ae7bc(0x6a)](_0x416b4c);}export function normalizeLovrabetRegion(_0x355c2a){const _0x5a011c=a215_0x5ea670;if(_0x355c2a===_0x5a011c(0x72))return'cn';if(_0x355c2a===_0x5a011c(0x76))return'id';return isLovrabetRegion(_0x355c2a)?_0x355c2a:DEFAULT_LOVRABET_REGION;}function a215_0x1c2c(){const _0x11f495=['includes','13iIxqhV','global','2620rUsSop','179736kWVthq','635kmEDZF','1216240fGspgb','478444mSXWFv','china','6288RFCSqW','31478rvsruV','string','indonesia','3933SNkfEd','1941940VJXyly','3gQpXuQ','22tjgDaa'];a215_0x1c2c=function(){return _0x11f495;};return a215_0x1c2c();}
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 +1 @@
1
- const a216_0x50fdb9=a216_0x34f3;(function(_0xbeedc9,_0x133fb8){const _0x438827=a216_0x34f3,_0x53b935=_0xbeedc9();while(!![]){try{const _0x348385=parseInt(_0x438827(0x19d))/0x1+-parseInt(_0x438827(0x19e))/0x2+parseInt(_0x438827(0x19f))/0x3+parseInt(_0x438827(0x19c))/0x4*(-parseInt(_0x438827(0x194))/0x5)+-parseInt(_0x438827(0x198))/0x6+parseInt(_0x438827(0x195))/0x7+parseInt(_0x438827(0x197))/0x8*(-parseInt(_0x438827(0x196))/0x9);if(_0x348385===_0x133fb8)break;else _0x53b935['push'](_0x53b935['shift']());}catch(_0x49249a){_0x53b935['push'](_0x53b935['shift']());}}}(a216_0x454b,0x5ac57));function a216_0x34f3(_0x368518,_0x577336){_0x368518=_0x368518-0x194;const _0x454b65=a216_0x454b();let _0x34f38e=_0x454b65[_0x368518];return _0x34f38e;}export const RISK_LEVEL_VALUES=[a216_0x50fdb9(0x19a),a216_0x50fdb9(0x19b),a216_0x50fdb9(0x199)];function a216_0x454b(){const _0x16de83=['3580360DJdUJU','1577160JGatwN','8XJuKHh','455532ZYjNoE','high-risk-write','read','write','4qoAqYx','379728BISQfA','202736eeDQNE','1170594mKutMR','2785385iBhbJC'];a216_0x454b=function(){return _0x16de83;};return a216_0x454b();}
1
+ function a217_0x52d7(_0x505571,_0x143700){_0x505571=_0x505571-0xdc;const _0x2a0e48=a217_0x2a0e();let _0x52d742=_0x2a0e48[_0x505571];return _0x52d742;}function a217_0x2a0e(){const _0x3b5c5c=['1915XBdiyY','94678enjaMb','10xEpKbZ','454102WhDHDe','411304Bsuqyn','1011609FFcZzx','write','1796fkxMfu','129904HMnZHt','high-risk-write','181782DisGkb','3fTYhWB','7JYSEil'];a217_0x2a0e=function(){return _0x3b5c5c;};return a217_0x2a0e();}const a217_0x504e7b=a217_0x52d7;(function(_0x27abb2,_0x205ebb){const _0x19c691=a217_0x52d7,_0x373853=_0x27abb2();while(!![]){try{const _0x5050fc=parseInt(_0x19c691(0xdf))/0x1+-parseInt(_0x19c691(0xe5))/0x2*(parseInt(_0x19c691(0xe2))/0x3)+-parseInt(_0x19c691(0xde))/0x4*(-parseInt(_0x19c691(0xe4))/0x5)+-parseInt(_0x19c691(0xe1))/0x6*(parseInt(_0x19c691(0xe3))/0x7)+parseInt(_0x19c691(0xe8))/0x8+parseInt(_0x19c691(0xdc))/0x9*(-parseInt(_0x19c691(0xe6))/0xa)+-parseInt(_0x19c691(0xe7))/0xb;if(_0x5050fc===_0x205ebb)break;else _0x373853['push'](_0x373853['shift']());}catch(_0x251d05){_0x373853['push'](_0x373853['shift']());}}}(a217_0x2a0e,0x1dc6d));export const RISK_LEVEL_VALUES=['read',a217_0x504e7b(0xdd),a217_0x504e7b(0xe0)];
@@ -0,0 +1,115 @@
1
+ import type { LovrabetRegion } from "../constant/region.js";
2
+ export interface LovrabetServiceDomains {
3
+ user: string;
4
+ api: string;
5
+ runtime: string;
6
+ skill: string;
7
+ kb: string;
8
+ app: string;
9
+ }
10
+ export interface OfficialRoutingProfile {
11
+ label: string;
12
+ serviceDomains: {
13
+ primary: LovrabetServiceDomains;
14
+ preview: LovrabetServiceDomains;
15
+ };
16
+ assets: {
17
+ strategy: "cdn";
18
+ origin: string;
19
+ };
20
+ local: {
21
+ origin: string;
22
+ certificateUrl: string;
23
+ };
24
+ }
25
+ /** Single source of truth for every official Lovrabet routing profile. */
26
+ export declare const OFFICIAL_ROUTING_PROFILES: {
27
+ readonly cn: {
28
+ readonly label: "Mainland China";
29
+ readonly serviceDomains: {
30
+ readonly primary: {
31
+ readonly user: "https://user.lovrabet.com";
32
+ readonly api: "https://api.lovrabet.com";
33
+ readonly runtime: "https://runtime.lovrabet.com";
34
+ readonly skill: "https://skills.lovrabet.com";
35
+ readonly kb: "https://api.lovrabet.com";
36
+ readonly app: "https://app.lovrabet.com";
37
+ };
38
+ readonly preview: {
39
+ readonly user: "https://user-daily.lovrabet.com";
40
+ readonly api: "https://daily-api.lovrabet.com";
41
+ readonly runtime: "https://daily-runtime.lovrabet.com";
42
+ readonly skill: "https://skills-daily.lovrabet.com";
43
+ readonly kb: "https://daily-api.lovrabet.com";
44
+ readonly app: "https://daily.lovrabet.com";
45
+ };
46
+ };
47
+ readonly assets: {
48
+ readonly strategy: "cdn";
49
+ readonly origin: "https://g.alicdn.com";
50
+ };
51
+ readonly local: {
52
+ readonly origin: "https://dev.lovrabet.com";
53
+ readonly certificateUrl: "https://g.lovrabet.com/cert/lovrabet-dev.json";
54
+ };
55
+ };
56
+ readonly id: {
57
+ readonly label: "Indonesia";
58
+ readonly serviceDomains: {
59
+ readonly primary: {
60
+ readonly user: "https://user.lovrabet.id";
61
+ readonly api: "https://api.lovrabet.id";
62
+ readonly runtime: "https://runtime.lovrabet.id";
63
+ readonly skill: "https://skills.lovrabet.id";
64
+ readonly kb: "https://api.lovrabet.id";
65
+ readonly app: "https://app.lovrabet.id";
66
+ };
67
+ readonly preview: {
68
+ readonly user: "https://user-daily.lovrabet.id";
69
+ readonly api: "https://daily-api.lovrabet.id";
70
+ readonly runtime: "https://daily-runtime.lovrabet.id";
71
+ readonly skill: "https://skills-daily.lovrabet.id";
72
+ readonly kb: "https://daily-api.lovrabet.id";
73
+ readonly app: "https://daily.lovrabet.id";
74
+ };
75
+ };
76
+ readonly assets: {
77
+ readonly strategy: "cdn";
78
+ readonly origin: "https://g.alicdn.com";
79
+ };
80
+ readonly local: {
81
+ readonly origin: "https://dev.lovrabet.id";
82
+ readonly certificateUrl: "https://g.lovrabet.id/cert/lovrabet-dev.json";
83
+ };
84
+ };
85
+ readonly global: {
86
+ readonly label: "Global";
87
+ readonly serviceDomains: {
88
+ readonly primary: {
89
+ readonly user: "https://user.lovrabet.ai";
90
+ readonly api: "https://api.lovrabet.ai";
91
+ readonly runtime: "https://runtime.lovrabet.ai";
92
+ readonly skill: "https://skills.lovrabet.ai";
93
+ readonly kb: "https://api.lovrabet.ai";
94
+ readonly app: "https://app.lovrabet.ai";
95
+ };
96
+ readonly preview: {
97
+ readonly user: "https://user-daily.lovrabet.ai";
98
+ readonly api: "https://daily-api.lovrabet.ai";
99
+ readonly runtime: "https://daily-runtime.lovrabet.ai";
100
+ readonly skill: "https://skills-daily.lovrabet.ai";
101
+ readonly kb: "https://daily-api.lovrabet.ai";
102
+ readonly app: "https://daily.lovrabet.ai";
103
+ };
104
+ };
105
+ readonly assets: {
106
+ readonly strategy: "cdn";
107
+ readonly origin: "https://g.alicdn.com";
108
+ };
109
+ readonly local: {
110
+ readonly origin: "https://dev.lovrabet.ai";
111
+ readonly certificateUrl: "https://g.lovrabet.ai/cert/lovrabet-dev.json";
112
+ };
113
+ };
114
+ };
115
+ export declare function getOfficialRoutingProfile(region: LovrabetRegion): OfficialRoutingProfile;
@@ -0,0 +1 @@
1
+ const a218_0x1467e4=a218_0x3e30;(function(_0x1d816f,_0x9812fe){const _0x4e5d85=a218_0x3e30,_0x169cfb=_0x1d816f();while(!![]){try{const _0x191cd2=-parseInt(_0x4e5d85(0xa6))/0x1*(parseInt(_0x4e5d85(0xa3))/0x2)+parseInt(_0x4e5d85(0x88))/0x3+parseInt(_0x4e5d85(0x8a))/0x4*(-parseInt(_0x4e5d85(0x86))/0x5)+parseInt(_0x4e5d85(0x91))/0x6+parseInt(_0x4e5d85(0x9f))/0x7*(-parseInt(_0x4e5d85(0xad))/0x8)+parseInt(_0x4e5d85(0x9b))/0x9+-parseInt(_0x4e5d85(0x94))/0xa*(parseInt(_0x4e5d85(0x9d))/0xb);if(_0x191cd2===_0x9812fe)break;else _0x169cfb['push'](_0x169cfb['shift']());}catch(_0x23ec06){_0x169cfb['push'](_0x169cfb['shift']());}}}(a218_0x405b,0xa4f89));export const OFFICIAL_ROUTING_PROFILES={'cn':{'label':a218_0x1467e4(0xa0),'serviceDomains':{'primary':{'user':a218_0x1467e4(0x92),'api':a218_0x1467e4(0xa5),'runtime':a218_0x1467e4(0xa2),'skill':'https://skills.lovrabet.com','kb':a218_0x1467e4(0xa5),'app':a218_0x1467e4(0xab)},'preview':{'user':a218_0x1467e4(0x90),'api':a218_0x1467e4(0xa9),'runtime':a218_0x1467e4(0x99),'skill':a218_0x1467e4(0x93),'kb':a218_0x1467e4(0xa9),'app':'https://daily.lovrabet.com'}},'assets':{'strategy':a218_0x1467e4(0x98),'origin':a218_0x1467e4(0x87)},'local':{'origin':'https://dev.lovrabet.com','certificateUrl':a218_0x1467e4(0x89)}},'id':{'label':'Indonesia','serviceDomains':{'primary':{'user':a218_0x1467e4(0xa8),'api':'https://api.lovrabet.id','runtime':'https://runtime.lovrabet.id','skill':a218_0x1467e4(0xaa),'kb':'https://api.lovrabet.id','app':'https://app.lovrabet.id'},'preview':{'user':'https://user-daily.lovrabet.id','api':a218_0x1467e4(0x97),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':'https://daily-api.lovrabet.id','app':a218_0x1467e4(0x9e)}},'assets':{'strategy':a218_0x1467e4(0x98),'origin':a218_0x1467e4(0x87)},'local':{'origin':a218_0x1467e4(0x96),'certificateUrl':'https://g.lovrabet.id/cert/lovrabet-dev.json'}},'global':{'label':a218_0x1467e4(0xa7),'serviceDomains':{'primary':{'user':a218_0x1467e4(0x8f),'api':'https://api.lovrabet.ai','runtime':a218_0x1467e4(0xa4),'skill':a218_0x1467e4(0x8c),'kb':a218_0x1467e4(0x8e),'app':a218_0x1467e4(0xac)},'preview':{'user':a218_0x1467e4(0xa1),'api':'https://daily-api.lovrabet.ai','runtime':a218_0x1467e4(0x9a),'skill':a218_0x1467e4(0x95),'kb':a218_0x1467e4(0x8b),'app':a218_0x1467e4(0x8d)}},'assets':{'strategy':a218_0x1467e4(0x98),'origin':a218_0x1467e4(0x87)},'local':{'origin':'https://dev.lovrabet.ai','certificateUrl':a218_0x1467e4(0x9c)}}};function a218_0x405b(){const _0x24a3c9=['https://user.lovrabet.com','https://skills-daily.lovrabet.com','2808670TWjcZn','https://skills-daily.lovrabet.ai','https://dev.lovrabet.id','https://daily-api.lovrabet.id','cdn','https://daily-runtime.lovrabet.com','https://daily-runtime.lovrabet.ai','5908950EzlfsC','https://g.lovrabet.ai/cert/lovrabet-dev.json','11MMkVip','https://daily.lovrabet.id','3353ZSsUUd','Mainland\x20China','https://user-daily.lovrabet.ai','https://runtime.lovrabet.com','4cpjmIJ','https://runtime.lovrabet.ai','https://api.lovrabet.com','37951fuCeqm','Global','https://user.lovrabet.id','https://daily-api.lovrabet.com','https://skills.lovrabet.id','https://app.lovrabet.com','https://app.lovrabet.ai','2424dFRwda','10435PqOmCi','https://g.alicdn.com','3411855SLKbaz','https://g.lovrabet.com/cert/lovrabet-dev.json','1676hDIwtX','https://daily-api.lovrabet.ai','https://skills.lovrabet.ai','https://daily.lovrabet.ai','https://api.lovrabet.ai','https://user.lovrabet.ai','https://user-daily.lovrabet.com','1549470ZrxDXB'];a218_0x405b=function(){return _0x24a3c9;};return a218_0x405b();}function a218_0x3e30(_0x430fe4,_0x1c32cb){_0x430fe4=_0x430fe4-0x86;const _0x405be4=a218_0x405b();let _0x3e30c6=_0x405be4[_0x430fe4];return _0x3e30c6;}export function getOfficialRoutingProfile(_0x182886){return OFFICIAL_ROUTING_PROFILES[_0x182886];}