@lovrabet/rabetbase-cli 2.5.0-beta.5 → 2.5.0-beta.6

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 (294) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/table-diff-shared.js +1 -1
  93. package/lib/commands/db/tables.js +1 -1
  94. package/lib/commands/db/test.js +1 -1
  95. package/lib/commands/db/update.js +1 -1
  96. package/lib/commands/doctor.js +1 -1
  97. package/lib/commands/file/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -1
  103. package/lib/commands/kb/delete.js +1 -1
  104. package/lib/commands/kb/detail.js +1 -1
  105. package/lib/commands/kb/index.js +1 -1
  106. package/lib/commands/kb/list.js +1 -1
  107. package/lib/commands/kb/search.js +1 -1
  108. package/lib/commands/kb/shared.js +1 -1
  109. package/lib/commands/kb/update.js +1 -1
  110. package/lib/commands/logs/index.js +1 -1
  111. package/lib/commands/menu/asset-update.js +1 -1
  112. package/lib/commands/menu/delete.js +1 -1
  113. package/lib/commands/menu/external-link-create.js +1 -1
  114. package/lib/commands/menu/external-link-update.js +1 -1
  115. package/lib/commands/menu/group-create.js +1 -1
  116. package/lib/commands/menu/group-update.js +1 -1
  117. package/lib/commands/menu/index.js +1 -1
  118. package/lib/commands/menu/list.js +1 -1
  119. package/lib/commands/menu/move.js +1 -1
  120. package/lib/commands/menu/regroup-start.js +1 -1
  121. package/lib/commands/menu/rename.js +1 -1
  122. package/lib/commands/menu/shared/compare-table.js +1 -1
  123. package/lib/commands/menu/shared/delete-plan.js +1 -1
  124. package/lib/commands/menu/shared/facts.js +1 -1
  125. package/lib/commands/menu/shared/index.js +1 -1
  126. package/lib/commands/menu/shared/inquirer.js +1 -1
  127. package/lib/commands/menu/shared/local-pages.js +1 -1
  128. package/lib/commands/menu/shared/logic.js +1 -1
  129. package/lib/commands/menu/shared/mutations.js +1 -1
  130. package/lib/commands/menu/shared/service.js +1 -1
  131. package/lib/commands/menu/shared/sync-core.js +1 -1
  132. package/lib/commands/menu/shared/update-core.js +1 -1
  133. package/lib/commands/menu/shared/valid-url.js +1 -1
  134. package/lib/commands/menu/sync.js +1 -1
  135. package/lib/commands/menu/visibility-update.js +1 -1
  136. package/lib/commands/notification/config-create.js +1 -1
  137. package/lib/commands/notification/config-delete.js +1 -1
  138. package/lib/commands/notification/config-list.js +1 -1
  139. package/lib/commands/notification/config-update.js +1 -1
  140. package/lib/commands/notification/index.js +1 -1
  141. package/lib/commands/notification/shared.js +1 -1
  142. package/lib/commands/ocr/index.js +1 -1
  143. package/lib/commands/page/create.js +1 -1
  144. package/lib/commands/page/custom/detail.js +1 -1
  145. package/lib/commands/page/custom/list.js +1 -1
  146. package/lib/commands/page/custom/publish.js +1 -1
  147. package/lib/commands/page/custom/shared.js +1 -1
  148. package/lib/commands/page/custom/syntax.js +1 -1
  149. package/lib/commands/page/custom/template.js +1 -1
  150. package/lib/commands/page/custom/update.js +1 -1
  151. package/lib/commands/page/data-list-status.js +1 -1
  152. package/lib/commands/page/generate-start.js +1 -1
  153. package/lib/commands/page/generate-status.js +1 -1
  154. package/lib/commands/page/index.js +1 -1
  155. package/lib/commands/page/pull.js +1 -1
  156. package/lib/commands/page/push.js +1 -1
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.js +1 -1
  160. package/lib/commands/page/sync.js +1 -1
  161. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  162. package/lib/commands/project/create/format-elapsed.js +1 -1
  163. package/lib/commands/project/create/main.js +1 -1
  164. package/lib/commands/project/create/materialize-project-template.js +1 -1
  165. package/lib/commands/project/create/project-name.js +1 -1
  166. package/lib/commands/project/create/project-template-archive.js +1 -1
  167. package/lib/commands/project/create/project-template-path.js +1 -1
  168. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  169. package/lib/commands/project/create/use-format-code.js +1 -1
  170. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  171. package/lib/commands/project/index.js +1 -1
  172. package/lib/commands/project/upgrade.js +1 -1
  173. package/lib/commands/registry.js +1 -1
  174. package/lib/commands/role/delete.js +1 -1
  175. package/lib/commands/role/detail.js +1 -1
  176. package/lib/commands/role/index.js +1 -1
  177. package/lib/commands/role/list.js +1 -1
  178. package/lib/commands/role/shared.js +1 -1
  179. package/lib/commands/role/update.js +1 -1
  180. package/lib/commands/role/user-add.js +1 -1
  181. package/lib/commands/role/user-remove.js +1 -1
  182. package/lib/commands/role/user-resolve.js +1 -1
  183. package/lib/commands/run/index.js +1 -1
  184. package/lib/commands/schema.js +1 -1
  185. package/lib/commands/sql/create.js +1 -1
  186. package/lib/commands/sql/delete.js +1 -1
  187. package/lib/commands/sql/detail.js +1 -1
  188. package/lib/commands/sql/exec.js +1 -1
  189. package/lib/commands/sql/index.js +1 -1
  190. package/lib/commands/sql/list.js +1 -1
  191. package/lib/commands/sql/pull.js +1 -1
  192. package/lib/commands/sql/push.js +1 -1
  193. package/lib/commands/sql/shared.js +1 -1
  194. package/lib/commands/sql/status.js +1 -1
  195. package/lib/commands/sql/validate.js +1 -1
  196. package/lib/commands/task/index.js +1 -1
  197. package/lib/commands/task/status.js +1 -1
  198. package/lib/commands/tenant/index.js +1 -1
  199. package/lib/commands/tenant/members-list.js +1 -1
  200. package/lib/commands/tenant/shared.js +1 -1
  201. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  202. package/lib/commands/user-account/index.js +1 -1
  203. package/lib/commands/workspace/add.js +1 -1
  204. package/lib/commands/workspace/index.js +1 -1
  205. package/lib/commands/workspace/remove.js +1 -1
  206. package/lib/config/domain-config.js +1 -1
  207. package/lib/config/schema.js +1 -1
  208. package/lib/constant/cdn.js +1 -1
  209. package/lib/constant/cli.js +1 -1
  210. package/lib/constant/defaults.js +1 -1
  211. package/lib/constant/domain.js +1 -1
  212. package/lib/constant/env.js +1 -1
  213. package/lib/constant/output.js +1 -1
  214. package/lib/constant/paths.js +1 -1
  215. package/lib/constant/region.js +1 -1
  216. package/lib/constant/risk.js +1 -1
  217. package/lib/context/app-resolver.js +1 -1
  218. package/lib/context/auth-resolver.js +1 -1
  219. package/lib/context/config-loader.js +1 -1
  220. package/lib/context.js +1 -1
  221. package/lib/core/alias-resolver.js +1 -1
  222. package/lib/core/api-client.js +1 -1
  223. package/lib/core/bff/config.js +1 -1
  224. package/lib/core/bff/file-system.js +1 -1
  225. package/lib/core/bff/hash.js +1 -1
  226. package/lib/core/bff/lock.js +1 -1
  227. package/lib/core/bff/utils.js +1 -1
  228. package/lib/core/db-resolver.js +1 -1
  229. package/lib/core/page/file-system.js +1 -1
  230. package/lib/core/page/hash.js +1 -1
  231. package/lib/core/page/lock.js +1 -1
  232. package/lib/core/sql-index-auditor.js +1 -1
  233. package/lib/core/sql-sync/config.js +1 -1
  234. package/lib/core/sql-sync/file-system.js +1 -1
  235. package/lib/core/sql-sync/hash.js +1 -1
  236. package/lib/core/sql-sync/lock.js +1 -1
  237. package/lib/core/sql-sync/utils.js +1 -1
  238. package/lib/core/sql-validator.js +1 -1
  239. package/lib/errors.js +1 -1
  240. package/lib/framework/build-all-flags.js +1 -1
  241. package/lib/framework/error-output.js +1 -1
  242. package/lib/framework/explicit-yes.js +1 -1
  243. package/lib/framework/flags.js +1 -1
  244. package/lib/framework/help.js +1 -1
  245. package/lib/framework/index.js +1 -1
  246. package/lib/framework/output.js +1 -1
  247. package/lib/framework/response.js +1 -1
  248. package/lib/framework/runner-alias.js +1 -1
  249. package/lib/framework/runner.js +1 -1
  250. package/lib/framework/schema-export.js +1 -1
  251. package/lib/framework/types.js +1 -1
  252. package/lib/generated/build-info.d.ts +4 -4
  253. package/lib/generated/build-info.js +1 -1
  254. package/lib/help.js +1 -1
  255. package/lib/postinstall.js +1 -1
  256. package/lib/runtime/confirmation.js +1 -1
  257. package/lib/runtime/event.js +1 -1
  258. package/lib/runtime/index.js +1 -1
  259. package/lib/runtime/queue.js +1 -1
  260. package/lib/runtime/resolve.js +1 -1
  261. package/lib/skills/builtin-skill.js +1 -1
  262. package/lib/skills/main.js +1 -1
  263. package/lib/skills/npx-skills-add.js +1 -1
  264. package/lib/skills/skill-presence.js +1 -1
  265. package/lib/telemetry/cli-command-trace.js +1 -1
  266. package/lib/telemetry/cli-help-trace.js +1 -1
  267. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  268. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  269. package/lib/telemetry/send-cli-trace-log.js +1 -1
  270. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  271. package/lib/utils/ai_config.js +1 -1
  272. package/lib/utils/apply-jq-filter.js +1 -1
  273. package/lib/utils/cdn-config.js +1 -1
  274. package/lib/utils/check-sdk-version.js +1 -1
  275. package/lib/utils/cli-version-check.js +1 -1
  276. package/lib/utils/cli-version-policy.js +1 -1
  277. package/lib/utils/config.js +1 -1
  278. package/lib/utils/entity-with-id.js +1 -1
  279. package/lib/utils/file-utils.js +1 -1
  280. package/lib/utils/guides-cdn.js +1 -1
  281. package/lib/utils/http-client.js +1 -1
  282. package/lib/utils/is-non-interactive.js +1 -1
  283. package/lib/utils/logger.js +1 -1
  284. package/lib/utils/params.js +1 -1
  285. package/lib/utils/platform.js +1 -1
  286. package/lib/utils/sleep.js +1 -1
  287. package/lib/utils/template-replacer.js +1 -1
  288. package/lib/utils/update-notice.js +1 -1
  289. package/lib/utils/version.js +1 -1
  290. package/lib/utils/with-active-cookie.js +1 -1
  291. package/lib/utils/write-cli-side-channel.js +1 -1
  292. package/package.json +1 -1
  293. package/skills/rabetbase/SKILL.md +2 -2
  294. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a206_0x1fdc(){const _0x439be4=['validation','apiDomain','protocol','includes','246486OCEsUb','object','skill-domain','pathname','length','hash','api-domain','runtime-domain','keys','join','\x22\x20is\x20not\x20a\x20valid\x20URL.','cwd','Invalid\x20','domain-config','userDomain','agentDomain','utf8','Unsupported\x20domain\x20config\x20field(s):\x20','1332924hKWcVf','kb-domain',':\x20\x22','20nfKcXY','isArray','trim','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','password','skillDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','https:','154495UfFMEC','skillHubDomain','search','799351YWodGj','1DLheWV','str',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','username','6129774Bqaddz','parse','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','270312WquuMF','Invalid\x20domain\x20config\x20JSON:\x20','filter','996036MVpOPo'];a206_0x1fdc=function(){return _0x439be4;};return a206_0x1fdc();}const a206_0x1a9564=a206_0x1ce8;(function(_0x2ecf62,_0x7398ea){const _0x374900=a206_0x1ce8,_0x49001e=_0x2ecf62();while(!![]){try{const _0x207903=parseInt(_0x374900(0xd2))/0x1*(parseInt(_0x374900(0xdc))/0x2)+parseInt(_0x374900(0xe1))/0x3*(-parseInt(_0x374900(0xf6))/0x4)+parseInt(_0x374900(0xce))/0x5+-parseInt(_0x374900(0xf3))/0x6+-parseInt(_0x374900(0xd1))/0x7+-parseInt(_0x374900(0xd9))/0x8+parseInt(_0x374900(0xd6))/0x9;if(_0x207903===_0x7398ea)break;else _0x49001e['push'](_0x49001e['shift']());}catch(_0x1e4bf0){_0x49001e['push'](_0x49001e['shift']());}}}(a206_0x1fdc,0x68c01));import{existsSync,readFileSync}from'node:fs';function a206_0x1ce8(_0x136591,_0x2cef52){_0x136591=_0x136591-0xc9;const _0x1fdce8=a206_0x1fdc();let _0x1ce842=_0x1fdce8[_0x136591];return _0x1ce842;}import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x1a9564(0xef),a206_0x1a9564(0xde),'runtimeDomain',a206_0x1a9564(0xcb),'kbDomain','appDomain'];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a206_0x1a9564(0xe7),'runtimeDomain':a206_0x1a9564(0xe8),'skillDomain':a206_0x1a9564(0xe3),'kbDomain':a206_0x1a9564(0xf4),'appDomain':'app-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x1a9564(0xf0),'platformDomain',a206_0x1a9564(0xcf)];export function normalizeDomainOrigin(_0x2a6cc4,_0x6d77fd){const _0x5bf7ab=a206_0x1a9564;if(typeof _0x6d77fd!=='string'||!_0x6d77fd['trim']())throw CliErrors[_0x5bf7ab(0xdd)](_0x5bf7ab(0xed)+_0x2a6cc4+_0x5bf7ab(0xd4));let _0x3ecbf1;try{_0x3ecbf1=new URL(_0x6d77fd[_0x5bf7ab(0xf8)]());}catch{throw CliErrors['validation']('Invalid\x20'+_0x2a6cc4+_0x5bf7ab(0xf5)+_0x6d77fd+_0x5bf7ab(0xeb));}if(_0x3ecbf1[_0x5bf7ab(0xdf)]!==_0x5bf7ab(0xcd)||_0x3ecbf1[_0x5bf7ab(0xd5)]||_0x3ecbf1[_0x5bf7ab(0xca)]||_0x3ecbf1[_0x5bf7ab(0xe4)]!=='/'&&_0x3ecbf1[_0x5bf7ab(0xe4)]!==''||_0x3ecbf1[_0x5bf7ab(0xd0)]||_0x3ecbf1[_0x5bf7ab(0xe6)])throw CliErrors['validation'](_0x5bf7ab(0xed)+_0x2a6cc4+_0x5bf7ab(0xcc),_0x5bf7ab(0xd8));return _0x3ecbf1['origin'];}export function readDomainConfig(_0x1b1753){const _0x40db8f=a206_0x1a9564,_0x1ea95d=isAbsolute(_0x1b1753)?_0x1b1753:resolve(process[_0x40db8f(0xec)](),_0x1b1753);if(!existsSync(_0x1ea95d))throw CliErrors[_0x40db8f(0xdd)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x1ea95d);let _0xedcecb;try{_0xedcecb=JSON[_0x40db8f(0xd7)](readFileSync(_0x1ea95d,_0x40db8f(0xf1)));}catch{throw CliErrors['validation'](_0x40db8f(0xda)+_0x1ea95d);}if(!_0xedcecb||typeof _0xedcecb!==_0x40db8f(0xe2)||Array[_0x40db8f(0xf7)](_0xedcecb))throw CliErrors[_0x40db8f(0xdd)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x519800=_0xedcecb,_0x161061=Object[_0x40db8f(0xe9)](_0x519800)[_0x40db8f(0xdb)](_0x22ed8c=>!DOMAIN_CONFIG_FIELDS[_0x40db8f(0xe0)](_0x22ed8c));if(_0x161061[_0x40db8f(0xe5)]>0x0)throw CliErrors[_0x40db8f(0xdd)](_0x40db8f(0xf2)+_0x161061[_0x40db8f(0xea)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x40db8f(0xea)](',\x20'));const _0x412cdf={};for(const _0x106f9f of DOMAIN_CONFIG_FIELDS){_0x519800[_0x106f9f]!==undefined&&(_0x412cdf[_0x106f9f]=normalizeDomainOrigin(_0x106f9f,_0x519800[_0x106f9f]));}if(Object['keys'](_0x412cdf)[_0x40db8f(0xe5)]===0x0)throw CliErrors[_0x40db8f(0xdd)](_0x40db8f(0xc9));return _0x412cdf;}export function resolveDomainFlags(_0x38bd9a){const _0x411b3c=a206_0x1a9564,_0x3f4dae=(_0x38bd9a[_0x411b3c(0xd3)](_0x411b3c(0xee))||'')[_0x411b3c(0xf8)](),_0xc34403=_0x3f4dae?readDomainConfig(_0x3f4dae):{};for(const _0xf3e691 of DOMAIN_CONFIG_FIELDS){const _0x190a35=(_0x38bd9a['str'](DOMAIN_FLAGS[_0xf3e691])||'')[_0x411b3c(0xf8)]();if(_0x190a35)_0xc34403[_0xf3e691]=normalizeDomainOrigin(_0xf3e691,_0x190a35);}return _0xc34403;}
1
+ const a206_0x205d99=a206_0x56c5;function a206_0x56c5(_0x294140,_0x4a55f1){_0x294140=_0x294140-0x169;const _0x26467e=a206_0x2646();let _0x56c59d=_0x26467e[_0x294140];return _0x56c59d;}(function(_0x1927e4,_0x3eaa34){const _0x265915=a206_0x56c5,_0xa229f2=_0x1927e4();while(!![]){try{const _0x33f12f=parseInt(_0x265915(0x18e))/0x1*(parseInt(_0x265915(0x18b))/0x2)+-parseInt(_0x265915(0x192))/0x3*(parseInt(_0x265915(0x198))/0x4)+-parseInt(_0x265915(0x171))/0x5+-parseInt(_0x265915(0x18a))/0x6+parseInt(_0x265915(0x188))/0x7*(parseInt(_0x265915(0x173))/0x8)+parseInt(_0x265915(0x193))/0x9+parseInt(_0x265915(0x196))/0xa;if(_0x33f12f===_0x3eaa34)break;else _0xa229f2['push'](_0xa229f2['shift']());}catch(_0xd5309e){_0xa229f2['push'](_0xa229f2['shift']());}}}(a206_0x2646,0x6205e));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a206_0x2646(){const _0x2ec86a=['https:','userDomain','91PHdBbT','skill-domain','798540EYFIeF','353204cFjgLD','user-domain','str','1JdEoZJ','Domain\x20config\x20file\x20not\x20found:\x20','hash','Invalid\x20','706692LPaDqE','2658627uCvCjJ','agentDomain','string','8089630ajNChV','appDomain','12JIfHHM','keys','validation','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','password','pathname','origin','Allowed\x20fields:\x20','app-domain','1834665CbJlCJ','parse','201384bIWgdl','join','filter','api-domain','kbDomain','skillDomain','trim','kb-domain','runtime-domain','search','includes','utf8','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20domain\x20config\x20JSON:\x20','Unsupported\x20domain\x20config\x20field(s):\x20','username','isArray','object'];a206_0x2646=function(){return _0x2ec86a;};return a206_0x2646();}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x187),'apiDomain','runtimeDomain',a206_0x205d99(0x178),a206_0x205d99(0x177),a206_0x205d99(0x197)];const DOMAIN_FLAGS={'userDomain':a206_0x205d99(0x18c),'apiDomain':a206_0x205d99(0x176),'runtimeDomain':a206_0x205d99(0x17b),'skillDomain':a206_0x205d99(0x189),'kbDomain':a206_0x205d99(0x17a),'appDomain':a206_0x205d99(0x170)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x194),a206_0x205d99(0x17f),'skillHubDomain'];export function normalizeDomainOrigin(_0x2efdf4,_0x565b33){const _0x555ac5=a206_0x205d99;if(typeof _0x565b33!==_0x555ac5(0x195)||!_0x565b33[_0x555ac5(0x179)]())throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+_0x555ac5(0x180));let _0x5a4f6a;try{_0x5a4f6a=new URL(_0x565b33[_0x555ac5(0x179)]());}catch{throw CliErrors['validation'](_0x555ac5(0x191)+_0x2efdf4+':\x20\x22'+_0x565b33+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5a4f6a['protocol']!==_0x555ac5(0x186)||_0x5a4f6a[_0x555ac5(0x183)]||_0x5a4f6a[_0x555ac5(0x16c)]||_0x5a4f6a[_0x555ac5(0x16d)]!=='/'&&_0x5a4f6a[_0x555ac5(0x16d)]!==''||_0x5a4f6a[_0x555ac5(0x17c)]||_0x5a4f6a[_0x555ac5(0x190)])throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x555ac5(0x16b));return _0x5a4f6a[_0x555ac5(0x16e)];}export function readDomainConfig(_0x3776d8){const _0x42db63=a206_0x205d99,_0x1e4e82=isAbsolute(_0x3776d8)?_0x3776d8:resolve(process['cwd'](),_0x3776d8);if(!existsSync(_0x1e4e82))throw CliErrors['validation'](_0x42db63(0x18f)+_0x1e4e82);let _0x1f87f6;try{_0x1f87f6=JSON[_0x42db63(0x172)](readFileSync(_0x1e4e82,_0x42db63(0x17e)));}catch{throw CliErrors[_0x42db63(0x16a)](_0x42db63(0x181)+_0x1e4e82);}if(!_0x1f87f6||typeof _0x1f87f6!==_0x42db63(0x185)||Array[_0x42db63(0x184)](_0x1f87f6))throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0xb8f6ee=_0x1f87f6,_0x49208e=Object['keys'](_0xb8f6ee)[_0x42db63(0x175)](_0x447050=>!DOMAIN_CONFIG_FIELDS[_0x42db63(0x17d)](_0x447050));if(_0x49208e['length']>0x0)throw CliErrors['validation'](_0x42db63(0x182)+_0x49208e[_0x42db63(0x174)](',\x20'),_0x42db63(0x16f)+DOMAIN_CONFIG_FIELDS[_0x42db63(0x174)](',\x20'));const _0x85a0f7={};for(const _0x504c3d of DOMAIN_CONFIG_FIELDS){_0xb8f6ee[_0x504c3d]!==undefined&&(_0x85a0f7[_0x504c3d]=normalizeDomainOrigin(_0x504c3d,_0xb8f6ee[_0x504c3d]));}if(Object[_0x42db63(0x169)](_0x85a0f7)['length']===0x0)throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x85a0f7;}export function resolveDomainFlags(_0x15d6fa){const _0x2e37ef=a206_0x205d99,_0x22dfd1=(_0x15d6fa['str']('domain-config')||'')[_0x2e37ef(0x179)](),_0x3e2423=_0x22dfd1?readDomainConfig(_0x22dfd1):{};for(const _0x1e0960 of DOMAIN_CONFIG_FIELDS){const _0x4a159b=(_0x15d6fa[_0x2e37ef(0x18d)](DOMAIN_FLAGS[_0x1e0960])||'')[_0x2e37ef(0x179)]();if(_0x4a159b)_0x3e2423[_0x1e0960]=normalizeDomainOrigin(_0x1e0960,_0x4a159b);}return _0x3e2423;}
@@ -1 +1 @@
1
- const a207_0x3c02bd=a207_0x15b5;(function(_0x58d49e,_0x151a06){const _0x500ff3=a207_0x15b5,_0x307c22=_0x58d49e();while(!![]){try{const _0x5c9de1=parseInt(_0x500ff3(0x166))/0x1+-parseInt(_0x500ff3(0x17c))/0x2+-parseInt(_0x500ff3(0x15a))/0x3+-parseInt(_0x500ff3(0x170))/0x4*(parseInt(_0x500ff3(0x173))/0x5)+-parseInt(_0x500ff3(0x161))/0x6+-parseInt(_0x500ff3(0x157))/0x7*(-parseInt(_0x500ff3(0x168))/0x8)+parseInt(_0x500ff3(0x165))/0x9;if(_0x5c9de1===_0x151a06)break;else _0x307c22['push'](_0x307c22['shift']());}catch(_0x23c0aa){_0x307c22['push'](_0x307c22['shift']());}}}(a207_0x4f4c,0xa7ace));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=['cookie',a207_0x3c02bd(0x169),a207_0x3c02bd(0x164),a207_0x3c02bd(0x171),a207_0x3c02bd(0x16d),a207_0x3c02bd(0x17b),a207_0x3c02bd(0x159),a207_0x3c02bd(0x15c),a207_0x3c02bd(0x179),a207_0x3c02bd(0x15b),a207_0x3c02bd(0x17e),'appDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x3c02bd(0x160),a207_0x3c02bd(0x17d),a207_0x3c02bd(0x164),a207_0x3c02bd(0x171),'cookie',a207_0x3c02bd(0x169),a207_0x3c02bd(0x16b),a207_0x3c02bd(0x17b),a207_0x3c02bd(0x159),a207_0x3c02bd(0x15c),a207_0x3c02bd(0x179),'skillDomain',a207_0x3c02bd(0x17e),a207_0x3c02bd(0x17f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5055a9){const _0xd84411=a207_0x3c02bd;return[..._0x5055a9][_0xd84411(0x182)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x58313b){return TOP_LEVEL_CONFIG_KEYS['has'](_0x58313b);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x5906b0=a207_0x3c02bd;return _0x5906b0(0x16c)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x3c02bd(0x17d),'apiDir':a207_0x3c02bd(0x16b),'cookie':a207_0x3c02bd(0x172),'accessKey':'accessKey','defaultFormat':a207_0x3c02bd(0x171),'pageSize':a207_0x3c02bd(0x181),'riskLevel':a207_0x3c02bd(0x16d),'locale':a207_0x3c02bd(0x164)};export function getAppProfileFlagDefs(){const _0x49795b=a207_0x3c02bd;return[{'name':_0x49795b(0x17d),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x49795b(0x16b),'type':_0x49795b(0x15f),'description':_0x49795b(0x15e)},{'name':'cookie','type':_0x49795b(0x15f),'description':_0x49795b(0x158),'hidden':!![]},{'name':_0x49795b(0x169),'type':_0x49795b(0x15f),'description':_0x49795b(0x17a),'hidden':!![]},{'name':'defaultFormat','type':_0x49795b(0x15f),'description':_0x49795b(0x16a),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x49795b(0x156),'description':_0x49795b(0x178)},{'name':_0x49795b(0x16d),'type':_0x49795b(0x15f),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x49795b(0x164),'type':_0x49795b(0x15f),'description':_0x49795b(0x16f)}];}export function collectAppProfileOverrides(_0x42ef6b){const _0x26cc76={};for(const [_0x1d1f7d,_0xdf4b63]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x570466=_0x42ef6b(_0x1d1f7d);if(!_0x570466)continue;_0x26cc76[_0xdf4b63]=_0xdf4b63==='pageSize'?Number(_0x570466):_0x570466;}return _0x26cc76;}export function buildAppProfileListFields(_0x4a2ab4){const _0x175fd9=a207_0x3c02bd;return{'env':_0x4a2ab4[_0x175fd9(0x17d)]??null,'apiDir':_0x4a2ab4[_0x175fd9(0x16b)]??null,'hasCookie':!!_0x4a2ab4[_0x175fd9(0x172)],'hasAccessKey':!!_0x4a2ab4['accessKey'],'format':_0x4a2ab4[_0x175fd9(0x171)]??null,'pageSize':_0x4a2ab4['pageSize']??null,'riskLevel':_0x4a2ab4[_0x175fd9(0x16d)]??null,'locale':_0x4a2ab4[_0x175fd9(0x164)]??null};}export function buildAppDoctorFields(_0x2836f7,_0x1a8415){const _0x1b0bcc=a207_0x3c02bd;return{'env':{'value':_0x2836f7[_0x1b0bcc(0x17d)]||_0x1a8415[_0x1b0bcc(0x17d)],'source':_0x2836f7['env']?_0x1b0bcc(0x176):'inherit'},'apiDir':{'value':_0x2836f7[_0x1b0bcc(0x16b)]||_0x1a8415[_0x1b0bcc(0x16b)],'source':_0x2836f7['apiDir']?'app':'inherit'},'cookie':{'value':_0x2836f7[_0x1b0bcc(0x172)]||_0x1a8415[_0x1b0bcc(0x172)],'source':_0x2836f7[_0x1b0bcc(0x172)]?'app':'inherit'},'accessKey':{'value':_0x2836f7['accessKey']||_0x1a8415[_0x1b0bcc(0x169)],'source':_0x2836f7[_0x1b0bcc(0x169)]?_0x1b0bcc(0x176):'inherit'}};}export function buildCanonicalAppConfig(_0x103231,_0x405e50){const _0x539693=a207_0x3c02bd,_0x22cc88=_0x103231['map'](_0x5ea634=>String(_0x5ea634||'')[_0x539693(0x163)]())[_0x539693(0x175)](Boolean);if(_0x22cc88[_0x539693(0x174)]===0x0)return{};const _0x5baaf5={};for(const _0x4c9aa2 of _0x22cc88){_0x5baaf5[_0x4c9aa2]=_0x405e50?{'appcode':_0x4c9aa2,'env':_0x405e50}:{'appcode':_0x4c9aa2};}return _0x22cc88['length']>0x1?{'apps':_0x5baaf5,'defaultApp':_0x22cc88[0x0]}:{'apps':_0x5baaf5};}export function normalizeStoredDefaultApp(_0x2457f5,_0x2d9cd3){const _0x53c3e5=a207_0x3c02bd,_0xd25fdd=_0x2457f5[_0x53c3e5(0x16e)]&&typeof _0x2457f5['apps']===_0x53c3e5(0x177)?_0x2457f5[_0x53c3e5(0x16e)]:{},_0x19600e=Object['keys'](_0xd25fdd);if(_0x19600e[_0x53c3e5(0x174)]<=0x1)return delete _0x2457f5[_0x53c3e5(0x167)],undefined;const _0x13b727=typeof _0x2457f5[_0x53c3e5(0x167)]===_0x53c3e5(0x15f)&&_0xd25fdd[_0x2457f5[_0x53c3e5(0x167)]]?_0x2457f5[_0x53c3e5(0x167)]:undefined,_0x5240a1=_0x2d9cd3&&_0xd25fdd[_0x2d9cd3]?_0x2d9cd3:_0x13b727;if(_0x5240a1)return _0x2457f5[_0x53c3e5(0x167)]=_0x5240a1,_0x5240a1;return delete _0x2457f5[_0x53c3e5(0x167)],undefined;}export function buildCanonicalProjectConfig(_0x2b4daa,_0x1b914c){const _0x3166b8=a207_0x3c02bd,{appCodes:appCodes=[],env:_0x250580,metadata:_0x234c1e}=_0x1b914c,_0x4d0cb0={..._0x2b4daa,..._0x234c1e||{}};delete _0x4d0cb0[_0x3166b8(0x160)],delete _0x4d0cb0[_0x3166b8(0x176)];if(_0x250580)_0x4d0cb0[_0x3166b8(0x17d)]=_0x250580;else!_0x4d0cb0[_0x3166b8(0x17d)]&&(_0x4d0cb0[_0x3166b8(0x17d)]=DEFAULT_CONFIG_VALUES['env']);const _0x1a9a34=buildCanonicalAppConfig(appCodes,_0x4d0cb0[_0x3166b8(0x17d)]);if(Object[_0x3166b8(0x15d)](_0x1a9a34)['length']>0x0){_0x4d0cb0['apps']=_0x1a9a34['apps'];if(_0x1a9a34['defaultApp'])_0x4d0cb0['defaultApp']=_0x1a9a34[_0x3166b8(0x167)];else delete _0x4d0cb0[_0x3166b8(0x167)];}return _0x4d0cb0;}function a207_0x15b5(_0x36492e,_0x2c742d){_0x36492e=_0x36492e-0x156;const _0x4f4cd7=a207_0x4f4c();let _0x15b529=_0x4f4cd7[_0x36492e];return _0x15b529;}const LOCALE_MAP={'zh':a207_0x3c02bd(0x162),'zh-cn':a207_0x3c02bd(0x162),'zh_cn':a207_0x3c02bd(0x162),'en':a207_0x3c02bd(0x180),'en-us':a207_0x3c02bd(0x180),'en_us':a207_0x3c02bd(0x180)};function a207_0x4f4c(){const _0x432f53=['Auth\x20cookie','userDomain','2087247dnLBWM','skillDomain','apiDomain','keys','API\x20directory\x20path','string','appcode','4481142STKWLh','zh-CN','trim','locale','15684336YmznKr','1227727KhkGQq','defaultApp','77400ezxCba','accessKey','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','apiDir','Config\x20key\x20(','riskLevel','apps','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','562652TsFgmN','format','cookie','45WIBaAR','length','filter','app','object','Default\x20page\x20size','runtimeDomain','Access\x20key','region','1336670ceFIky','env','kbDomain','appDomain','en-US','pageSize','join','number','791smrtUv'];a207_0x4f4c=function(){return _0x432f53;};return a207_0x4f4c();}export function normalizeLocale(_0x1c8516){if(!_0x1c8516)return null;return LOCALE_MAP[_0x1c8516['toLowerCase']()]??null;}
1
+ const a207_0x52f151=a207_0x3d05;(function(_0x40f810,_0xf437ae){const _0x1324d6=a207_0x3d05,_0x3b1e1c=_0x40f810();while(!![]){try{const _0x52875a=parseInt(_0x1324d6(0x147))/0x1*(parseInt(_0x1324d6(0x125))/0x2)+parseInt(_0x1324d6(0x143))/0x3+parseInt(_0x1324d6(0x12c))/0x4+-parseInt(_0x1324d6(0x117))/0x5+parseInt(_0x1324d6(0x118))/0x6*(-parseInt(_0x1324d6(0x144))/0x7)+parseInt(_0x1324d6(0x13f))/0x8*(-parseInt(_0x1324d6(0x13b))/0x9)+parseInt(_0x1324d6(0x123))/0xa*(parseInt(_0x1324d6(0x149))/0xb);if(_0x52875a===_0xf437ae)break;else _0x3b1e1c['push'](_0x3b1e1c['shift']());}catch(_0x8bf19){_0x3b1e1c['push'](_0x3b1e1c['shift']());}}}(a207_0xf787,0xf08ad));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=[a207_0x52f151(0x136),a207_0x52f151(0x13a),'locale',a207_0x52f151(0x134),a207_0x52f151(0x119),a207_0x52f151(0x11c),'userDomain',a207_0x52f151(0x124),a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x52f151(0x146),a207_0x52f151(0x12f),'locale','format',a207_0x52f151(0x136),a207_0x52f151(0x13a),a207_0x52f151(0x122),a207_0x52f151(0x11c),a207_0x52f151(0x138),'apiDomain',a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4727c0){const _0x580475=a207_0x52f151;return[..._0x4727c0][_0x580475(0x145)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3b2234){const _0x5e848c=a207_0x52f151;return TOP_LEVEL_CONFIG_KEYS[_0x5e848c(0x133)](_0x3b2234);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bc39c=a207_0x52f151;return _0x4bc39c(0x126)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x52f151(0x12f),'apiDir':a207_0x52f151(0x122),'cookie':a207_0x52f151(0x136),'accessKey':a207_0x52f151(0x13a),'defaultFormat':a207_0x52f151(0x134),'pageSize':a207_0x52f151(0x11d),'riskLevel':'riskLevel','locale':a207_0x52f151(0x137)};export function getAppProfileFlagDefs(){const _0x48cd07=a207_0x52f151;return[{'name':_0x48cd07(0x12f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x128),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x48cd07(0x122),'type':'string','description':_0x48cd07(0x131)},{'name':_0x48cd07(0x136),'type':'string','description':_0x48cd07(0x121),'hidden':!![]},{'name':'accessKey','type':_0x48cd07(0x11e),'description':_0x48cd07(0x120),'hidden':!![]},{'name':_0x48cd07(0x11f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x12d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x48cd07(0x11d),'type':_0x48cd07(0x140),'description':_0x48cd07(0x115)},{'name':_0x48cd07(0x119),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x13d),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x48cd07(0x11e),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x58af32){const _0x33ef7a=a207_0x52f151,_0x44bf34={};for(const [_0x1c0c60,_0x31d2b9]of Object[_0x33ef7a(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x25fbbe=_0x58af32(_0x1c0c60);if(!_0x25fbbe)continue;_0x44bf34[_0x31d2b9]=_0x31d2b9===_0x33ef7a(0x11d)?Number(_0x25fbbe):_0x25fbbe;}return _0x44bf34;}export function buildAppProfileListFields(_0x29fd39){const _0x2dd677=a207_0x52f151;return{'env':_0x29fd39[_0x2dd677(0x12f)]??null,'apiDir':_0x29fd39[_0x2dd677(0x122)]??null,'hasCookie':!!_0x29fd39[_0x2dd677(0x136)],'hasAccessKey':!!_0x29fd39['accessKey'],'format':_0x29fd39[_0x2dd677(0x134)]??null,'pageSize':_0x29fd39['pageSize']??null,'riskLevel':_0x29fd39['riskLevel']??null,'locale':_0x29fd39[_0x2dd677(0x137)]??null};}export function buildAppDoctorFields(_0x2c104a,_0x19937e){const _0xdae8aa=a207_0x52f151;return{'env':{'value':_0x2c104a[_0xdae8aa(0x12f)]||_0x19937e[_0xdae8aa(0x12f)],'source':_0x2c104a[_0xdae8aa(0x12f)]?_0xdae8aa(0x135):_0xdae8aa(0x141)},'apiDir':{'value':_0x2c104a['apiDir']||_0x19937e['apiDir'],'source':_0x2c104a['apiDir']?_0xdae8aa(0x135):'inherit'},'cookie':{'value':_0x2c104a['cookie']||_0x19937e['cookie'],'source':_0x2c104a[_0xdae8aa(0x136)]?_0xdae8aa(0x135):'inherit'},'accessKey':{'value':_0x2c104a[_0xdae8aa(0x13a)]||_0x19937e[_0xdae8aa(0x13a)],'source':_0x2c104a[_0xdae8aa(0x13a)]?_0xdae8aa(0x135):_0xdae8aa(0x141)}};}export function buildCanonicalAppConfig(_0x5e2442,_0x145cdd){const _0x54be2c=a207_0x52f151,_0x444098=_0x5e2442[_0x54be2c(0x129)](_0x4c75bb=>String(_0x4c75bb||'')['trim']())[_0x54be2c(0x12b)](Boolean);if(_0x444098[_0x54be2c(0x130)]===0x0)return{};const _0x3e2c20={};for(const _0x52167e of _0x444098){_0x3e2c20[_0x52167e]=_0x145cdd?{'appcode':_0x52167e,'env':_0x145cdd}:{'appcode':_0x52167e};}return _0x444098[_0x54be2c(0x130)]>0x1?{'apps':_0x3e2c20,'defaultApp':_0x444098[0x0]}:{'apps':_0x3e2c20};}export function normalizeStoredDefaultApp(_0x55dd19,_0x342cda){const _0x1979f3=a207_0x52f151,_0x569ea2=_0x55dd19[_0x1979f3(0x139)]&&typeof _0x55dd19[_0x1979f3(0x139)]===_0x1979f3(0x11b)?_0x55dd19['apps']:{},_0x2dbbc4=Object[_0x1979f3(0x116)](_0x569ea2);if(_0x2dbbc4[_0x1979f3(0x130)]<=0x1)return delete _0x55dd19[_0x1979f3(0x12a)],undefined;const _0x5e68a9=typeof _0x55dd19[_0x1979f3(0x12a)]===_0x1979f3(0x11e)&&_0x569ea2[_0x55dd19[_0x1979f3(0x12a)]]?_0x55dd19[_0x1979f3(0x12a)]:undefined,_0xd22bf0=_0x342cda&&_0x569ea2[_0x342cda]?_0x342cda:_0x5e68a9;if(_0xd22bf0)return _0x55dd19[_0x1979f3(0x12a)]=_0xd22bf0,_0xd22bf0;return delete _0x55dd19[_0x1979f3(0x12a)],undefined;}export function buildCanonicalProjectConfig(_0x56dab2,_0x377003){const _0x3be176=a207_0x52f151,{appCodes:appCodes=[],env:_0x208c09,metadata:_0x3fba28}=_0x377003,_0x532a85={..._0x56dab2,..._0x3fba28||{}};delete _0x532a85[_0x3be176(0x146)],delete _0x532a85[_0x3be176(0x135)];if(_0x208c09)_0x532a85['env']=_0x208c09;else!_0x532a85['env']&&(_0x532a85[_0x3be176(0x12f)]=DEFAULT_CONFIG_VALUES[_0x3be176(0x12f)]);const _0x2c8f35=buildCanonicalAppConfig(appCodes,_0x532a85[_0x3be176(0x12f)]);if(Object[_0x3be176(0x116)](_0x2c8f35)[_0x3be176(0x130)]>0x0){_0x532a85[_0x3be176(0x139)]=_0x2c8f35[_0x3be176(0x139)];if(_0x2c8f35[_0x3be176(0x12a)])_0x532a85[_0x3be176(0x12a)]=_0x2c8f35[_0x3be176(0x12a)];else delete _0x532a85['defaultApp'];}return _0x532a85;}function a207_0x3d05(_0x43d9d9,_0x49a5ca){_0x43d9d9=_0x43d9d9-0x115;const _0xf78790=a207_0xf787();let _0x3d05a6=_0xf78790[_0x43d9d9];return _0x3d05a6;}const LOCALE_MAP={'zh':a207_0x52f151(0x142),'zh-cn':a207_0x52f151(0x142),'zh_cn':'zh-CN','en':'en-US','en-us':a207_0x52f151(0x132),'en_us':a207_0x52f151(0x132)};function a207_0xf787(){const _0x212ec8=['Target\x20environment','map','defaultApp','filter','698412FMvTnQ','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','entries','env','length','API\x20directory\x20path','en-US','has','format','app','cookie','locale','userDomain','apps','accessKey','14813343GykhMc','toLowerCase','Risk\x20level','kbDomain','8Wglltg','number','inherit','zh-CN','5399892bDVLrw','104279cpKzFo','join','appcode','183ahFRni','appDomain','24559744LcxoQS','Default\x20page\x20size','keys','3474700RmIvlZ','534MuNYWU','riskLevel','skillDomain','object','region','pageSize','string','defaultFormat','Access\x20key','Auth\x20cookie','apiDir','10YVHGco','apiDomain','4860EkXLci','Config\x20key\x20(','runtimeDomain'];a207_0xf787=function(){return _0x212ec8;};return a207_0xf787();}export function normalizeLocale(_0xc2b9ef){const _0x353596=a207_0x52f151;if(!_0xc2b9ef)return null;return LOCALE_MAP[_0xc2b9ef[_0x353596(0x13c)]()]??null;}
@@ -1 +1 @@
1
- const a208_0x644901=a208_0x3235;(function(_0x40912d,_0x19a7e5){const _0x123aa2=a208_0x3235,_0x23b086=_0x40912d();while(!![]){try{const _0x18fa95=parseInt(_0x123aa2(0x146))/0x1+parseInt(_0x123aa2(0x14b))/0x2*(-parseInt(_0x123aa2(0x14a))/0x3)+parseInt(_0x123aa2(0x144))/0x4+-parseInt(_0x123aa2(0x147))/0x5+parseInt(_0x123aa2(0x14c))/0x6*(-parseInt(_0x123aa2(0x14d))/0x7)+parseInt(_0x123aa2(0x14e))/0x8*(-parseInt(_0x123aa2(0x149))/0x9)+parseInt(_0x123aa2(0x14f))/0xa;if(_0x18fa95===_0x19a7e5)break;else _0x23b086['push'](_0x23b086['shift']());}catch(_0x3a9a09){_0x23b086['push'](_0x23b086['shift']());}}}(a208_0x53e9,0x3881b));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';function a208_0x53e9(){const _0x40e85a=['1478880jDfXAF','/config/index.json','675UnadNG','3TyvXwL','169514nKvSEf','85812CkDMnV','91gvUNdv','16040ytMlEK','1423290YKiLYc','1745596aYfUzj','/templates/projects','369557IjBRSx'];a208_0x53e9=function(){return _0x40e85a;};return a208_0x53e9();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x644901(0x148);function a208_0x3235(_0x2ee05e,_0x3efee6){_0x2ee05e=_0x2ee05e-0x144;const _0x53e9a=a208_0x53e9();let _0x323570=_0x53e9a[_0x2ee05e];return _0x323570;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x644901(0x145);
1
+ const a208_0x34d771=a208_0x1ed1;(function(_0x403294,_0x26e52b){const _0x5ee16a=a208_0x1ed1,_0x4a7e91=_0x403294();while(!![]){try{const _0x52e866=parseInt(_0x5ee16a(0x188))/0x1*(parseInt(_0x5ee16a(0x18a))/0x2)+-parseInt(_0x5ee16a(0x18e))/0x3+parseInt(_0x5ee16a(0x189))/0x4+-parseInt(_0x5ee16a(0x18c))/0x5+-parseInt(_0x5ee16a(0x18b))/0x6+parseInt(_0x5ee16a(0x190))/0x7+parseInt(_0x5ee16a(0x18f))/0x8;if(_0x52e866===_0x26e52b)break;else _0x4a7e91['push'](_0x4a7e91['shift']());}catch(_0x39cc6d){_0x4a7e91['push'](_0x4a7e91['shift']());}}}(a208_0x34f6,0x7bd12));function a208_0x1ed1(_0x55a8f9,_0x5d19dd){_0x55a8f9=_0x55a8f9-0x187;const _0x34f609=a208_0x34f6();let _0x1ed1c6=_0x34f609[_0x55a8f9];return _0x1ed1c6;}export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x18d);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x187);function a208_0x34f6(){const _0x336306=['/config/index.json','1102461liUPwq','11126520tygqqg','656796GXXqgj','/templates/projects','252897WZYipj','438272pVneEk','2kYUEtK','2607768dEvxbS','2689195LDgNsn'];a208_0x34f6=function(){return _0x336306;};return a208_0x34f6();}
@@ -1 +1 @@
1
- const a209_0x198bee=a209_0x53a6;(function(_0x404620,_0x3e3d15){const _0x1ebdb2=a209_0x53a6,_0x1ee0f5=_0x404620();while(!![]){try{const _0x538459=-parseInt(_0x1ebdb2(0x14b))/0x1*(parseInt(_0x1ebdb2(0x176))/0x2)+parseInt(_0x1ebdb2(0x163))/0x3*(-parseInt(_0x1ebdb2(0x167))/0x4)+-parseInt(_0x1ebdb2(0x117))/0x5*(-parseInt(_0x1ebdb2(0x132))/0x6)+-parseInt(_0x1ebdb2(0x12e))/0x7+-parseInt(_0x1ebdb2(0x15c))/0x8+parseInt(_0x1ebdb2(0x13d))/0x9*(-parseInt(_0x1ebdb2(0x18d))/0xa)+-parseInt(_0x1ebdb2(0x158))/0xb*(-parseInt(_0x1ebdb2(0x128))/0xc);if(_0x538459===_0x3e3d15)break;else _0x1ee0f5['push'](_0x1ee0f5['shift']());}catch(_0x22abec){_0x1ee0f5['push'](_0x1ee0f5['shift']());}}}(a209_0x5872,0xad707));function a209_0x53a6(_0x322e3f,_0x1f6d32){_0x322e3f=_0x322e3f-0x10b;const _0x587245=a209_0x5872();let _0x53a61c=_0x587245[_0x322e3f];return _0x53a61c;}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a209_0x198bee(0x17c);export const NPM_PACKAGE_NAME=a209_0x198bee(0x12c);export const GLOBAL_FLAGS=[{'name':a209_0x198bee(0x129),'meowKey':a209_0x198bee(0x129),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x15e),'hint':'<code>'},{'name':'app','meowKey':a209_0x198bee(0x17d),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x18b),'hint':a209_0x198bee(0x14c)},{'name':a209_0x198bee(0x17a),'meowKey':a209_0x198bee(0x17a),'type':'string','description':'Environment','hint':a209_0x198bee(0x193)},{'name':a209_0x198bee(0x17f),'meowKey':a209_0x198bee(0x17f),'type':a209_0x198bee(0x12f),'description':'Output\x20format','hint':a209_0x198bee(0x121)},{'name':'jq','meowKey':'jq','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x14f),'hint':'<expr>'},{'name':a209_0x198bee(0x183),'meowKey':a209_0x198bee(0x161),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13b)},{'name':'yes','meowKey':a209_0x198bee(0x124),'type':'boolean','description':a209_0x198bee(0x157)},{'name':'non-interactive','meowKey':a209_0x198bee(0x14e),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a209_0x198bee(0x116),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x133)},{'name':a209_0x198bee(0x11b),'meowKey':'project','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x191)},{'name':'ci','meowKey':'ci','type':a209_0x198bee(0x16d),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x198bee(0x15a),'meowKey':'help','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x112)},{'name':a209_0x198bee(0x174),'meowKey':a209_0x198bee(0x174),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x169),'hidden':!![],'hint':a209_0x198bee(0x16a)},{'name':a209_0x198bee(0x17b),'meowKey':'name','type':'string','description':a209_0x198bee(0x151),'hidden':!![]},{'name':'title','meowKey':a209_0x198bee(0x114),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x110),'hidden':!![]},{'name':a209_0x198bee(0x12a),'meowKey':'query','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x156),'hidden':!![]},{'name':a209_0x198bee(0x125),'meowKey':a209_0x198bee(0x125),'type':a209_0x198bee(0x12f),'description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a209_0x198bee(0x175),'meowKey':a209_0x198bee(0x175),'type':a209_0x198bee(0x16d),'description':'Clear','hidden':!![]},{'name':a209_0x198bee(0x11c),'meowKey':'watch','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x178),'hidden':!![]},{'name':a209_0x198bee(0x18a),'meowKey':a209_0x198bee(0x18a),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x195),'hidden':!![]},{'name':a209_0x198bee(0x171),'meowKey':a209_0x198bee(0x171),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x170),'hidden':!![]},{'name':'datasetcode','meowKey':a209_0x198bee(0x12b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x168),'hidden':!![]},{'name':a209_0x198bee(0x164),'meowKey':a209_0x198bee(0x164),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x127),'hidden':!![]},{'name':a209_0x198bee(0x138),'meowKey':a209_0x198bee(0x15f),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x134),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x119),'hidden':!![]},{'name':'type','meowKey':a209_0x198bee(0x159),'type':'string','description':'Type\x20filter','hidden':!![]},{'name':a209_0x198bee(0x181),'meowKey':a209_0x198bee(0x181),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x11d),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x17e),'hidden':!![]},{'name':a209_0x198bee(0x187),'meowKey':a209_0x198bee(0x148),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x145),'hidden':!![]},{'name':a209_0x198bee(0x18c),'meowKey':a209_0x198bee(0x18c),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x145),'hidden':!![]},{'name':a209_0x198bee(0x143),'meowKey':a209_0x198bee(0x118),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x135),'hidden':!![]},{'name':a209_0x198bee(0x182),'meowKey':'dbid','type':'string','description':a209_0x198bee(0x135),'hidden':!![]},{'name':a209_0x198bee(0x10d),'meowKey':'description','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x13c),'hidden':!![]},{'name':a209_0x198bee(0x113),'meowKey':a209_0x198bee(0x172),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x111),'hidden':!![]},{'name':a209_0x198bee(0x15d),'meowKey':a209_0x198bee(0x15d),'type':'string','description':a209_0x198bee(0x16b),'hidden':!![]},{'name':a209_0x198bee(0x140),'meowKey':'pagesize','type':a209_0x198bee(0x12f),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x162),'hidden':!![]},{'name':'code','meowKey':a209_0x198bee(0x186),'type':'string','description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a209_0x198bee(0x190),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x180),'hidden':!![]},{'name':a209_0x198bee(0x123),'meowKey':a209_0x198bee(0x123),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x173),'hidden':!![]},{'name':a209_0x198bee(0x177),'meowKey':a209_0x198bee(0x177),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x153),'hidden':!![]},{'name':'target','meowKey':a209_0x198bee(0x15b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x14a),'hidden':!![]},{'name':'skip-imports','meowKey':a209_0x198bee(0x149),'type':a209_0x198bee(0x16d),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a209_0x198bee(0x142),'meowKey':a209_0x198bee(0x142),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a209_0x198bee(0x16f),'meowKey':'value','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x139),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x150),'hidden':!![]},{'name':a209_0x198bee(0x12d),'meowKey':a209_0x198bee(0x12d),'type':'boolean','description':a209_0x198bee(0x14d),'hidden':!![]},{'name':a209_0x198bee(0x192),'meowKey':a209_0x198bee(0x120),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x131),'hidden':!![]},{'name':a209_0x198bee(0x147),'meowKey':'reveal','type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x188),'hidden':!![]},{'name':a209_0x198bee(0x165),'meowKey':'force','type':'boolean','description':a209_0x198bee(0x194),'hidden':!![]},{'name':a209_0x198bee(0x16e),'meowKey':a209_0x198bee(0x16e),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13a),'hidden':!![]},{'name':'remote','meowKey':a209_0x198bee(0x16c),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13f),'hidden':!![]},{'name':a209_0x198bee(0x160),'meowKey':a209_0x198bee(0x160),'type':a209_0x198bee(0x16d),'description':a209_0x198bee(0x13e),'hidden':!![]},{'name':a209_0x198bee(0x130),'meowKey':'expectedCount','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x152),'hidden':!![]},{'name':a209_0x198bee(0x115),'meowKey':a209_0x198bee(0x115),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x185),'hidden':!![]},{'name':'parent-id','meowKey':a209_0x198bee(0x184),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x11a),'hidden':!![]},{'name':a209_0x198bee(0x10f),'meowKey':a209_0x198bee(0x10f),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x146),'hidden':!![]},{'name':a209_0x198bee(0x11e),'meowKey':a209_0x198bee(0x126),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x10e),'hidden':!![]},{'name':a209_0x198bee(0x141),'meowKey':'expectPath','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x18e),'hidden':!![]},{'name':a209_0x198bee(0x122),'meowKey':a209_0x198bee(0x10c),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x154),'hidden':!![]},{'name':'menu-ids','meowKey':a209_0x198bee(0x144),'type':a209_0x198bee(0x12f),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a209_0x198bee(0x136),'meowKey':a209_0x198bee(0x10b),'type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x137),'hidden':!![]},{'name':a209_0x198bee(0x189),'meowKey':a209_0x198bee(0x11f),'type':'string','description':a209_0x198bee(0x153),'hidden':!![]},{'name':'function-node','meowKey':'functionNode','type':a209_0x198bee(0x12f),'description':a209_0x198bee(0x155),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x198bee(0x129),a209_0x198bee(0x17d),'env',a209_0x198bee(0x17f),'jq',a209_0x198bee(0x183),a209_0x198bee(0x124),'non-interactive','ci']);function a209_0x5872(){const _0x299a2c=['menuIds','SQL\x20name','Menu\x20sort\x20value','reveal','sqlName','skipImports','Target\x20path','237173VrldKC','<name>','Read\x20value\x20from\x20stdin','nonInteractive','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Tags','Name','Expected\x20affected\x20count','Operation\x20type','Expected\x20current\x20child\x20count','Function\x20node','Search\x20query','Skip\x20confirmation\x20for\x20high-risk\x20writes','187adoQeC','type','help','target','3687008XYbXOd','page','Override\x20appcode','enableBffSave','verbose','dryRun','Keyword\x20filter','6KGWOMh','all','force','map','1199292tdqtPR','Dataset\x20code','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','zh-CN\x20|\x20en-US','Page\x20number','remote','boolean','confirm','value','JSON\x20params','params','descriptionFile','Schemas','locale','clear','4IfwqrI','operation','Watch\x20mode','fromEntries','env','name','Rabetbase\x20CLI','app','SQL\x20code','format','SQL\x20string','file','dbid','dry-run','parentId','Menu\x20label','code','sql-name','Reveal\x20sensitive\x20value','operation-type','output','Select\x20app\x20profile\x20by\x20name','sqlname','5970650vGbBoV','Expected\x20current\x20menu\x20path','meowKey','sql','Use\x20project\x20config\x20scope','from-env','production\x20|\x20daily','Force\x20overwrite','Output\x20path','taskId','expectedChildrenCount','description','Expected\x20current\x20parent\x20menu\x20id','sort','Title','Description\x20file','Show\x20help','description-file','title','label','global','10445UqthLJ','dbId','Record\x20ID','Parent\x20menu\x20id','project','watch','File\x20path','expect-parent-id','operationType','fromEnv','json\x20|\x20pretty\x20|\x20compress','expected-children-count','schemas','yes','topk','expectParentId','Apply\x20to\x20all','2230104Jhjmik','appcode','query','datasetcode','@lovrabet/rabetbase-cli','stdin','4353776RtvgPX','string','expected-count','Read\x20value\x20from\x20environment\x20variable','876CbBvIm','Use\x20global\x20config\x20scope','Enable\x20Backend\x20Function\x20save','DB\x20ID','task-id','Asynchronous\x20task\x20ID','enable-bff-save','Config\x20value','Confirm\x20destructive\x20action','Preview\x20operation\x20without\x20executing','Description','9yYVOEf','Verbose\x20output','Use\x20remote','pagesize','expect-path','key','db-id'];a209_0x5872=function(){return _0x299a2c;};return a209_0x5872();}export function buildMeowFlags(){const _0x33960f=a209_0x198bee;return Object[_0x33960f(0x179)](GLOBAL_FLAGS[_0x33960f(0x166)](_0x54641c=>[_0x54641c[_0x33960f(0x18f)],{'type':_0x54641c[_0x33960f(0x159)]}]));}
1
+ function a209_0x5acb(_0x2e2c6d,_0x3c5e6c){_0x2e2c6d=_0x2e2c6d-0xc3;const _0x427f61=a209_0x427f();let _0x5acb39=_0x427f61[_0x2e2c6d];return _0x5acb39;}const a209_0x3fd0b7=a209_0x5acb;(function(_0x516fa1,_0x5db4e5){const _0x276b05=a209_0x5acb,_0x272e5a=_0x516fa1();while(!![]){try{const _0x10bedc=-parseInt(_0x276b05(0xee))/0x1*(-parseInt(_0x276b05(0xf8))/0x2)+-parseInt(_0x276b05(0x130))/0x3*(parseInt(_0x276b05(0xf4))/0x4)+-parseInt(_0x276b05(0x11f))/0x5*(parseInt(_0x276b05(0x13d))/0x6)+-parseInt(_0x276b05(0xd2))/0x7*(-parseInt(_0x276b05(0xec))/0x8)+parseInt(_0x276b05(0xcf))/0x9*(parseInt(_0x276b05(0xd9))/0xa)+-parseInt(_0x276b05(0xde))/0xb+-parseInt(_0x276b05(0x119))/0xc;if(_0x10bedc===_0x5db4e5)break;else _0x272e5a['push'](_0x272e5a['shift']());}catch(_0x245837){_0x272e5a['push'](_0x272e5a['shift']());}}}(a209_0x427f,0xc0ccd));export const CLI_BIN_NAME=a209_0x3fd0b7(0xf6);export const CLI_DISPLAY_NAME=a209_0x3fd0b7(0x102);export const NPM_PACKAGE_NAME=a209_0x3fd0b7(0x111);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a209_0x3fd0b7(0xcb),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x110),'hint':a209_0x3fd0b7(0xcc)},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a209_0x3fd0b7(0xe9)},{'name':a209_0x3fd0b7(0x148),'meowKey':'env','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x125),'hint':a209_0x3fd0b7(0x11d)},{'name':'format','meowKey':a209_0x3fd0b7(0x11e),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x14c),'hint':a209_0x3fd0b7(0x13e)},{'name':'jq','meowKey':'jq','type':a209_0x3fd0b7(0xeb),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a209_0x3fd0b7(0x116)},{'name':a209_0x3fd0b7(0x129),'meowKey':a209_0x3fd0b7(0xea),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x114)},{'name':'yes','meowKey':a209_0x3fd0b7(0x108),'type':a209_0x3fd0b7(0x137),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a209_0x3fd0b7(0x141),'meowKey':a209_0x3fd0b7(0x11c),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13b)},{'name':a209_0x3fd0b7(0xe7),'meowKey':a209_0x3fd0b7(0xe7),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a209_0x3fd0b7(0x10a),'meowKey':a209_0x3fd0b7(0x10a),'type':a209_0x3fd0b7(0x137),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x3fd0b7(0x14f),'meowKey':'help','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13a)},{'name':'locale','meowKey':a209_0x3fd0b7(0xe3),'type':'string','description':a209_0x3fd0b7(0xc5),'hidden':!![],'hint':a209_0x3fd0b7(0xed)},{'name':a209_0x3fd0b7(0x101),'meowKey':a209_0x3fd0b7(0x101),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe2),'hidden':!![]},{'name':a209_0x3fd0b7(0xfb),'meowKey':'title','type':a209_0x3fd0b7(0xeb),'description':'Title','hidden':!![]},{'name':a209_0x3fd0b7(0xfa),'meowKey':a209_0x3fd0b7(0xfa),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x107),'hidden':!![]},{'name':a209_0x3fd0b7(0xe4),'meowKey':'topk','type':'string','description':a209_0x3fd0b7(0x113),'hidden':!![]},{'name':a209_0x3fd0b7(0xc3),'meowKey':a209_0x3fd0b7(0xc3),'type':a209_0x3fd0b7(0x137),'description':'Clear','hidden':!![]},{'name':a209_0x3fd0b7(0xf2),'meowKey':a209_0x3fd0b7(0xf2),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xd0),'hidden':!![]},{'name':a209_0x3fd0b7(0xff),'meowKey':a209_0x3fd0b7(0xff),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x100),'hidden':!![]},{'name':a209_0x3fd0b7(0x127),'meowKey':a209_0x3fd0b7(0x127),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x133),'hidden':!![]},{'name':a209_0x3fd0b7(0x10d),'meowKey':a209_0x3fd0b7(0x10d),'type':'string','description':a209_0x3fd0b7(0xc8),'hidden':!![]},{'name':a209_0x3fd0b7(0xfd),'meowKey':a209_0x3fd0b7(0xfd),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x12a),'hidden':!![]},{'name':a209_0x3fd0b7(0x13c),'meowKey':a209_0x3fd0b7(0xf3),'type':'boolean','description':a209_0x3fd0b7(0xce),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a209_0x3fd0b7(0x143),'hidden':!![]},{'name':a209_0x3fd0b7(0xe6),'meowKey':'type','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xef),'hidden':!![]},{'name':'file','meowKey':a209_0x3fd0b7(0x128),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x117),'hidden':!![]},{'name':a209_0x3fd0b7(0x14b),'meowKey':a209_0x3fd0b7(0x14b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x120),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xcd),'hidden':!![]},{'name':a209_0x3fd0b7(0xda),'meowKey':a209_0x3fd0b7(0xda),'type':a209_0x3fd0b7(0xeb),'description':'SQL\x20name','hidden':!![]},{'name':a209_0x3fd0b7(0xd7),'meowKey':a209_0x3fd0b7(0x14d),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0x144),'meowKey':'dbid','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0xd1),'meowKey':a209_0x3fd0b7(0xd1),'type':'string','description':'Description','hidden':!![]},{'name':a209_0x3fd0b7(0xe8),'meowKey':a209_0x3fd0b7(0x105),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc4),'hidden':!![]},{'name':a209_0x3fd0b7(0xf5),'meowKey':a209_0x3fd0b7(0xf5),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x138),'hidden':!![]},{'name':a209_0x3fd0b7(0x106),'meowKey':a209_0x3fd0b7(0x106),'type':'string','description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a209_0x3fd0b7(0xd6),'type':'string','description':a209_0x3fd0b7(0x12f),'hidden':!![]},{'name':a209_0x3fd0b7(0x145),'meowKey':'code','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x149),'hidden':!![]},{'name':'sql','meowKey':a209_0x3fd0b7(0x104),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x103),'hidden':!![]},{'name':'schemas','meowKey':a209_0x3fd0b7(0x136),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe1),'hidden':!![]},{'name':a209_0x3fd0b7(0xdd),'meowKey':a209_0x3fd0b7(0xdd),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x13f),'hidden':!![]},{'name':'target','meowKey':a209_0x3fd0b7(0xdc),'type':'string','description':a209_0x3fd0b7(0x12c),'hidden':!![]},{'name':a209_0x3fd0b7(0x123),'meowKey':'skipImports','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xc7),'hidden':!![]},{'name':'key','meowKey':'key','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x10e),'hidden':!![]},{'name':a209_0x3fd0b7(0x12b),'meowKey':a209_0x3fd0b7(0x12b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd5),'hidden':!![]},{'name':a209_0x3fd0b7(0xd8),'meowKey':a209_0x3fd0b7(0xd8),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x132),'hidden':!![]},{'name':a209_0x3fd0b7(0x115),'meowKey':a209_0x3fd0b7(0x115),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x10f),'hidden':!![]},{'name':a209_0x3fd0b7(0x121),'meowKey':a209_0x3fd0b7(0x12e),'type':a209_0x3fd0b7(0xeb),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a209_0x3fd0b7(0x142),'meowKey':'reveal','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x14a),'hidden':!![]},{'name':'force','meowKey':a209_0x3fd0b7(0x150),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x146),'hidden':!![]},{'name':a209_0x3fd0b7(0x140),'meowKey':'confirm','type':a209_0x3fd0b7(0x137),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a209_0x3fd0b7(0xdf),'meowKey':'remote','type':'boolean','description':a209_0x3fd0b7(0xc6),'hidden':!![]},{'name':a209_0x3fd0b7(0xf7),'meowKey':'verbose','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x147),'hidden':!![]},{'name':a209_0x3fd0b7(0x109),'meowKey':'expectedCount','type':a209_0x3fd0b7(0xeb),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a209_0x3fd0b7(0xca),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd3),'hidden':!![]},{'name':a209_0x3fd0b7(0xfc),'meowKey':a209_0x3fd0b7(0xd4),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x112),'hidden':!![]},{'name':a209_0x3fd0b7(0xe0),'meowKey':a209_0x3fd0b7(0xe0),'type':a209_0x3fd0b7(0xeb),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a209_0x3fd0b7(0xdb),'meowKey':a209_0x3fd0b7(0x10c),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x126),'hidden':!![]},{'name':a209_0x3fd0b7(0xe5),'meowKey':a209_0x3fd0b7(0xf9),'type':'string','description':a209_0x3fd0b7(0x11b),'hidden':!![]},{'name':a209_0x3fd0b7(0x118),'meowKey':'expectedChildrenCount','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x11a),'hidden':!![]},{'name':a209_0x3fd0b7(0x122),'meowKey':a209_0x3fd0b7(0xf1),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x12d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xfe),'hidden':!![]},{'name':a209_0x3fd0b7(0xf0),'meowKey':a209_0x3fd0b7(0x139),'type':a209_0x3fd0b7(0xeb),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x3fd0b7(0x124),'meowKey':a209_0x3fd0b7(0x135),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x134),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x3fd0b7(0xcb),'app',a209_0x3fd0b7(0x148),a209_0x3fd0b7(0x11e),'jq',a209_0x3fd0b7(0x129),a209_0x3fd0b7(0x108),a209_0x3fd0b7(0x141),'ci']);function a209_0x427f(){const _0x440d5e=['Expected\x20current\x20child\x20count','Expected\x20current\x20menu\x20path','nonInteractive','production\x20|\x20daily','format','65QnBblO','SQL\x20code','from-env','menu-ids','skip-imports','function-node','Environment','Expected\x20current\x20parent\x20menu\x20id','params','file','dry-run','Apply\x20to\x20all','value','Target\x20path','Comma-separated\x20menu\x20IDs','fromEnv','Keyword\x20filter','1246803JpHSBH','meowKey','Tags','JSON\x20params','Function\x20node','functionNode','schemas','boolean','Page\x20number','operationType','Show\x20help','Force\x20non-interactive\x20mode\x20(CI)','enable-bff-save','329370XPuDer','json\x20|\x20pretty\x20|\x20compress','Operation\x20type','confirm','non-interactive','reveal','Record\x20ID','dbid','code','Force\x20overwrite','Verbose\x20output','env','Code\x20filter','Reveal\x20sensitive\x20value','sqlcode','Output\x20format','dbId','fromEntries','help','force','clear','Description\x20file','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Use\x20remote','Skip\x20import\x20generation','Dataset\x20code','DB\x20ID','label','appcode','<code>','SQL\x20name','Enable\x20Backend\x20Function\x20save','9xQlEsa','Watch\x20mode','description','287VMahxc','Menu\x20label','parentId','Config\x20value','keyword','db-id','tags','12950760PRijJV','sqlname','expect-parent-id','target','operation','2828551zanRpv','remote','sort','Schemas','Name','locale','topk','expect-path','type','global','description-file','<name>','dryRun','string','244072XPILRK','zh-CN\x20|\x20en-US','917771lsljyM','Type\x20filter','operation-type','menuIds','watch','enableBffSave','4ZiEknw','page','rabetbase','verbose','2wChafn','expectPath','query','title','parent-id','all','Asynchronous\x20task\x20ID','output','Output\x20path','name','Rabetbase\x20CLI','SQL\x20string','sql','descriptionFile','pagesize','Search\x20query','yes','expected-count','project','map','expectParentId','datasetcode','Config\x20key','Read\x20value\x20from\x20stdin','Override\x20appcode','@lovrabet/rabetbase-cli','Parent\x20menu\x20id','Maximum\x20search\x20hits','Preview\x20operation\x20without\x20executing','stdin','<expr>','File\x20path','expected-children-count','15451560rtuVAT'];a209_0x427f=function(){return _0x440d5e;};return a209_0x427f();}export function buildMeowFlags(){const _0x10afd3=a209_0x3fd0b7;return Object[_0x10afd3(0x14e)](GLOBAL_FLAGS[_0x10afd3(0x10b)](_0x42a9a0=>[_0x42a9a0[_0x10afd3(0x131)],{'type':_0x42a9a0[_0x10afd3(0xe6)]}]));}
@@ -1 +1 @@
1
- function a210_0x1e02(){const _0x49ae10=['2AurlPk','43038TMBYsN','371rmPdky','893060zWYujp','4tFNnjE','799347aUJvSi','830210XjFBab','27XItLqo','12597480EWCkbT','70420kkLcpg','write','production','99752DhBKcq','33FCQptp'];a210_0x1e02=function(){return _0x49ae10;};return a210_0x1e02();}const a210_0x18725f=a210_0x1933;function a210_0x1933(_0x3d3dfd,_0x106f5c){_0x3d3dfd=_0x3d3dfd-0x110;const _0x1e024e=a210_0x1e02();let _0x19334b=_0x1e024e[_0x3d3dfd];return _0x19334b;}(function(_0x3bf6fe,_0x3172a1){const _0x387886=a210_0x1933,_0x504c87=_0x3bf6fe();while(!![]){try{const _0x5bc5e1=-parseInt(_0x387886(0x11c))/0x1+-parseInt(_0x387886(0x113))/0x2*(parseInt(_0x387886(0x118))/0x3)+parseInt(_0x387886(0x117))/0x4*(parseInt(_0x387886(0x116))/0x5)+parseInt(_0x387886(0x114))/0x6*(-parseInt(_0x387886(0x115))/0x7)+parseInt(_0x387886(0x111))/0x8*(-parseInt(_0x387886(0x11a))/0x9)+-parseInt(_0x387886(0x119))/0xa*(parseInt(_0x387886(0x112))/0xb)+parseInt(_0x387886(0x11b))/0xc;if(_0x5bc5e1===_0x3172a1)break;else _0x504c87['push'](_0x504c87['shift']());}catch(_0x1a9c09){_0x504c87['push'](_0x504c87['shift']());}}}(a210_0x1e02,0x36e7e));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a210_0x18725f(0x110),'format':'compress','locale':'en-US','riskLevel':a210_0x18725f(0x11d),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a210_0x11519e=a210_0x201d;function a210_0x55b3(){const _0x242316=['write','compress','619419nFFIlS','2785734tXtGIh','33384vsWGOx','en-US','10RdvCcY','4LIMgBb','295382ZTOamm','7MRpNLg','355MTEWRs','2902141mrKdBS','2970728EqxLTI','production','1536188BVfQSy'];a210_0x55b3=function(){return _0x242316;};return a210_0x55b3();}(function(_0xb15d74,_0x518fb1){const _0x39e308=a210_0x201d,_0x88166=_0xb15d74();while(!![]){try{const _0x1848b4=-parseInt(_0x39e308(0xd1))/0x1+-parseInt(_0x39e308(0xd0))/0x2*(parseInt(_0x39e308(0xcb))/0x3)+parseInt(_0x39e308(0xc8))/0x4+-parseInt(_0x39e308(0xd3))/0x5*(parseInt(_0x39e308(0xcd))/0x6)+parseInt(_0x39e308(0xd2))/0x7*(parseInt(_0x39e308(0xd5))/0x8)+parseInt(_0x39e308(0xcc))/0x9+parseInt(_0x39e308(0xcf))/0xa*(parseInt(_0x39e308(0xd4))/0xb);if(_0x1848b4===_0x518fb1)break;else _0x88166['push'](_0x88166['shift']());}catch(_0x366fca){_0x88166['push'](_0x88166['shift']());}}}(a210_0x55b3,0x3705d));import{DEFAULT_API_DIR}from'../constant/paths.js';function a210_0x201d(_0x319b5d,_0x36d33d){_0x319b5d=_0x319b5d-0xc7;const _0x55b303=a210_0x55b3();let _0x201de6=_0x55b303[_0x319b5d];return _0x201de6;}export const DEFAULT_CONFIG_VALUES={'env':a210_0x11519e(0xc7),'format':a210_0x11519e(0xca),'locale':a210_0x11519e(0xce),'riskLevel':a210_0x11519e(0xc9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a211_0x20af5a=a211_0x54bd;(function(_0x485e5c,_0x467ce5){const _0x473614=a211_0x54bd,_0x14bd11=_0x485e5c();while(!![]){try{const _0x2d58e5=parseInt(_0x473614(0x17f))/0x1*(-parseInt(_0x473614(0x1a7))/0x2)+-parseInt(_0x473614(0x180))/0x3*(parseInt(_0x473614(0x19c))/0x4)+parseInt(_0x473614(0x185))/0x5+parseInt(_0x473614(0x1a9))/0x6*(-parseInt(_0x473614(0x1ae))/0x7)+parseInt(_0x473614(0x192))/0x8+-parseInt(_0x473614(0x18a))/0x9+parseInt(_0x473614(0x198))/0xa;if(_0x2d58e5===_0x467ce5)break;else _0x14bd11['push'](_0x14bd11['shift']());}catch(_0x268a00){_0x14bd11['push'](_0x14bd11['shift']());}}}(a211_0x59b2,0x75706));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_0x20af5a(0x194),'api':a211_0x20af5a(0x1a5),'runtime':a211_0x20af5a(0x18d),'skill':a211_0x20af5a(0x19a),'kb':a211_0x20af5a(0x1a5),'app':a211_0x20af5a(0x1b2)},'nonProduction':{'user':a211_0x20af5a(0x187),'api':'https://daily-api.lovrabet.com','runtime':a211_0x20af5a(0x1a0),'skill':a211_0x20af5a(0x182),'kb':a211_0x20af5a(0x193),'app':a211_0x20af5a(0x19d)}},'id':{'production':{'user':a211_0x20af5a(0x184),'api':'https://api.lovrabet.id','runtime':a211_0x20af5a(0x1b0),'skill':a211_0x20af5a(0x1a4),'kb':a211_0x20af5a(0x1af),'app':a211_0x20af5a(0x189)},'nonProduction':{'user':'https://user-daily.lovrabet.id','api':a211_0x20af5a(0x1a3),'runtime':a211_0x20af5a(0x1aa),'skill':'https://skills-daily.lovrabet.id','kb':a211_0x20af5a(0x1a3),'app':a211_0x20af5a(0x199)}},'global':{'production':{'user':a211_0x20af5a(0x1a8),'api':a211_0x20af5a(0x190),'runtime':a211_0x20af5a(0x181),'skill':'https://skills.lovrabet.ai','kb':a211_0x20af5a(0x190),'app':'https://app.lovrabet.ai'},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a211_0x20af5a(0x188),'runtime':'https://daily-runtime.lovrabet.ai','skill':a211_0x20af5a(0x191),'kb':'https://daily-api.lovrabet.ai','app':a211_0x20af5a(0x183)}}};function getActiveRegionDomains(){const _0x35a9f9=a211_0x20af5a;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x35a9f9(0x1a1):_0x35a9f9(0x1a2)];}export function initDomains(_0x380087){const _0x4f689a=a211_0x20af5a;customApiDomain=_0x380087?.[_0x4f689a(0x1a6)],customUserDomain=_0x380087?.[_0x4f689a(0x197)],customRuntimeDomain=_0x380087?.[_0x4f689a(0x19e)],customSkillDomain=_0x380087?.[_0x4f689a(0x186)],customKbDomain=_0x380087?.[_0x4f689a(0x18b)],customAppDomain=_0x380087?.[_0x4f689a(0x19b)],activeRegion=_0x380087?.[_0x4f689a(0x196)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a211_0x20af5a(0x19f)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x20af5a(0x18c)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x20af5a(0x1ac)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a211_0x20af5a(0x1ab)];export const getActiveRegion=()=>activeRegion;function a211_0x59b2(){const _0x5a7ce7=['https://user.lovrabet.com','trim','region','userDomain','5989250MECPDe','https://daily.lovrabet.id','https://skills.lovrabet.com','appDomain','135668saafeh','https://daily.lovrabet.com','runtimeDomain','api','https://daily-runtime.lovrabet.com','production','nonProduction','https://daily-api.lovrabet.id','https://skills.lovrabet.id','https://api.lovrabet.com','apiDomain','377328LDPvMK','https://user.lovrabet.ai','919626bWKXja','https://daily-runtime.lovrabet.id','app','skill','origin','21bHmVrp','https://api.lovrabet.id','https://runtime.lovrabet.id','/web-app/app/','https://app.lovrabet.com','1eZNXyb','51lSjSwx','https://runtime.lovrabet.ai','https://skills-daily.lovrabet.com','https://daily.lovrabet.ai','https://user.lovrabet.id','4438230kNhTKz','skillDomain','https://user-daily.lovrabet.com','https://daily-api.lovrabet.ai','https://app.lovrabet.id','2703321YKTDHd','kbDomain','runtime','https://runtime.lovrabet.com','hostname','global','https://api.lovrabet.ai','https://skills-daily.lovrabet.ai','4159152AcXrBV','https://daily-api.lovrabet.com'];a211_0x59b2=function(){return _0x5a7ce7;};return a211_0x59b2();}export function getSdkClientRoutingConfig(){const _0x311990=a211_0x20af5a;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x311990(0x18c)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x311990(0x18f))return{'runtimeDomain':getRuntimeDomain()};return{};}function a211_0x54bd(_0x32f043,_0x4500d1){_0x32f043=_0x32f043-0x17f;const _0x59b2ef=a211_0x59b2();let _0x54bd2e=_0x59b2ef[_0x32f043];return _0x54bd2e;}export const getAppBaseUrl=_0x22eb4f=>{const _0x425444=a211_0x20af5a,_0xe9a214=encodeURIComponent(_0x22eb4f[_0x425444(0x195)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0xe9a214:getAppDomain()+_0x425444(0x1b1)+_0xe9a214;};export const getPublishedAppDomain=_0x5db205=>{const _0x49ba65=a211_0x20af5a,_0x118d74=new URL(getAppDomain());return _0x118d74[_0x49ba65(0x18e)]=_0x5db205[_0x49ba65(0x195)]()+'.'+_0x118d74[_0x49ba65(0x18e)],_0x118d74[_0x49ba65(0x1ad)];};
1
+ const a211_0x392f83=a211_0x4b50;(function(_0x27b6d2,_0x1eec1f){const _0x40b9aa=a211_0x4b50,_0x321a7a=_0x27b6d2();while(!![]){try{const _0x8eefc8=parseInt(_0x40b9aa(0x1d0))/0x1+parseInt(_0x40b9aa(0x1d1))/0x2*(-parseInt(_0x40b9aa(0x1dc))/0x3)+parseInt(_0x40b9aa(0x1da))/0x4+parseInt(_0x40b9aa(0x1b4))/0x5+-parseInt(_0x40b9aa(0x1b0))/0x6+-parseInt(_0x40b9aa(0x1d9))/0x7+parseInt(_0x40b9aa(0x1c0))/0x8*(parseInt(_0x40b9aa(0x1d2))/0x9);if(_0x8eefc8===_0x1eec1f)break;else _0x321a7a['push'](_0x321a7a['shift']());}catch(_0x227847){_0x321a7a['push'](_0x321a7a['shift']());}}}(a211_0x4548,0xb78cc));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_0x392f83(0x1b1),'api':'https://api.lovrabet.com','runtime':a211_0x392f83(0x1cd),'skill':'https://skills.lovrabet.com','kb':a211_0x392f83(0x1ba),'app':a211_0x392f83(0x1c8)},'nonProduction':{'user':a211_0x392f83(0x1d7),'api':a211_0x392f83(0x1b8),'runtime':a211_0x392f83(0x1b9),'skill':a211_0x392f83(0x1d6),'kb':'https://daily-api.lovrabet.com','app':a211_0x392f83(0x1d8)}},'id':{'production':{'user':a211_0x392f83(0x1c5),'api':a211_0x392f83(0x1c4),'runtime':'https://runtime.lovrabet.id','skill':a211_0x392f83(0x1c2),'kb':a211_0x392f83(0x1c4),'app':a211_0x392f83(0x1cf)},'nonProduction':{'user':a211_0x392f83(0x1c1),'api':a211_0x392f83(0x1d3),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':'https://daily-api.lovrabet.id','app':a211_0x392f83(0x1db)}},'global':{'production':{'user':a211_0x392f83(0x1bc),'api':a211_0x392f83(0x1c6),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a211_0x392f83(0x1c6),'app':a211_0x392f83(0x1d5)},'nonProduction':{'user':a211_0x392f83(0x1bf),'api':a211_0x392f83(0x1be),'runtime':a211_0x392f83(0x1c7),'skill':a211_0x392f83(0x1cc),'kb':'https://daily-api.lovrabet.ai','app':a211_0x392f83(0x1ce)}}};function a211_0x4b50(_0x53d23f,_0x26075b){_0x53d23f=_0x53d23f-0x1b0;const _0x45488e=a211_0x4548();let _0x4b5012=_0x45488e[_0x53d23f];return _0x4b5012;}function getActiveRegionDomains(){const _0x316f21=a211_0x392f83;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x316f21(0x1bd):_0x316f21(0x1ca)];}export function initDomains(_0x29069a){const _0x54ddb8=a211_0x392f83;customApiDomain=_0x29069a?.[_0x54ddb8(0x1b3)],customUserDomain=_0x29069a?.[_0x54ddb8(0x1b5)],customRuntimeDomain=_0x29069a?.[_0x54ddb8(0x1cb)],customSkillDomain=_0x29069a?.[_0x54ddb8(0x1dd)],customKbDomain=_0x29069a?.['kbDomain'],customAppDomain=_0x29069a?.[_0x54ddb8(0x1b2)],activeRegion=_0x29069a?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a211_0x392f83(0x1c9)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x392f83(0x1d4)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x392f83(0x1bb)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x215678=a211_0x392f83;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x215678(0x1d4)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion==='global')return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x5bfd07=>{const _0x19fd59=a211_0x392f83,_0x41dd5f=encodeURIComponent(_0x5bfd07[_0x19fd59(0x1b7)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x41dd5f:getAppDomain()+'/web-app/app/'+_0x41dd5f;};function a211_0x4548(){const _0x34023f=['https://daily-api.lovrabet.id','runtime','https://app.lovrabet.ai','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','https://daily.lovrabet.com','9313675jIzwyv','2161740cjoIXL','https://daily.lovrabet.id','1997277POZkoL','skillDomain','6474894HolJbb','https://user.lovrabet.com','appDomain','apiDomain','2891985JdlxMb','userDomain','hostname','trim','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','skill','https://user.lovrabet.ai','production','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.ai','4097768wlPQNC','https://user-daily.lovrabet.id','https://skills.lovrabet.id','origin','https://api.lovrabet.id','https://user.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://app.lovrabet.com','api','nonProduction','runtimeDomain','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.com','https://daily.lovrabet.ai','https://app.lovrabet.id','1325296nbGatZ','4aPFPHC','36qjJeFG'];a211_0x4548=function(){return _0x34023f;};return a211_0x4548();}export const getPublishedAppDomain=_0x5ae015=>{const _0x6f3022=a211_0x392f83,_0x27e3f4=new URL(getAppDomain());return _0x27e3f4['hostname']=_0x5ae015[_0x6f3022(0x1b7)]()+'.'+_0x27e3f4[_0x6f3022(0x1b6)],_0x27e3f4[_0x6f3022(0x1c3)];};
@@ -1 +1 @@
1
- function a212_0x597f(_0x524fff,_0x46df68){_0x524fff=_0x524fff-0x14a;const _0x5193b7=a212_0x5193();let _0x597f6d=_0x5193b7[_0x524fff];return _0x597f6d;}const a212_0x282beb=a212_0x597f;(function(_0x14e347,_0x38aa25){const _0xb3266d=a212_0x597f,_0x21f2f4=_0x14e347();while(!![]){try{const _0x3a156b=parseInt(_0xb3266d(0x156))/0x1+parseInt(_0xb3266d(0x153))/0x2+-parseInt(_0xb3266d(0x14d))/0x3*(parseInt(_0xb3266d(0x151))/0x4)+-parseInt(_0xb3266d(0x150))/0x5*(-parseInt(_0xb3266d(0x157))/0x6)+parseInt(_0xb3266d(0x14c))/0x7*(parseInt(_0xb3266d(0x154))/0x8)+parseInt(_0xb3266d(0x14a))/0x9+-parseInt(_0xb3266d(0x14e))/0xa;if(_0x3a156b===_0x38aa25)break;else _0x21f2f4['push'](_0x21f2f4['shift']());}catch(_0x29e202){_0x21f2f4['push'](_0x21f2f4['shift']());}}}(a212_0x5193,0xd1c80));export const RABETBASE_ENV_VALUES=[a212_0x282beb(0x152),a212_0x282beb(0x155)];export function normalizeEnv(_0x50aaa1){const _0x4501d3=a212_0x282beb;return _0x50aaa1==='online'?_0x4501d3(0x152):_0x50aaa1;}export function isProduction(_0x53d3f0){const _0x2c5086=a212_0x282beb;return normalizeEnv(_0x53d3f0)===_0x2c5086(0x152);}export function isDaily(_0x4a0347){return normalizeEnv(_0x4a0347)==='daily';}function a212_0x5193(){const _0x3616cf=['726eFFHAN','5900337gXKFoJ','dev','35fWkHxj','9903RWyGKg','10259950ClzcAr','development','29245EyMmzz','76dxBkHJ','production','580936wcxzHc','226832pcbEIv','daily','152418ClfOJa'];a212_0x5193=function(){return _0x3616cf;};return a212_0x5193();}export function isDev(_0x1d433d){const _0x59d8a8=a212_0x282beb,_0x4ee411=normalizeEnv(_0x1d433d);return _0x4ee411===_0x59d8a8(0x14f)||_0x4ee411===_0x59d8a8(0x14b);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x282beb(0x152));export function getEnv(){return env;}export function initEnv(_0x5d93ea){env=normalizeEnv(_0x5d93ea);}
1
+ const a212_0xb04b08=a212_0x2cf5;function a212_0x1b49(){const _0xd6de7a=['online','415886xFnvFg','development','222388RfAnKg','613120OxyTmS','3TinSnT','production','523954MvZxjK','1110780fcNXLB','15342czrlBN','dev','1025880uFAeyD','daily','217ZweuZF'];a212_0x1b49=function(){return _0xd6de7a;};return a212_0x1b49();}(function(_0x37c6f3,_0x1b2811){const _0xe3cb8=a212_0x2cf5,_0x24e797=_0x37c6f3();while(!![]){try{const _0x4262a1=-parseInt(_0xe3cb8(0x1cb))/0x1+parseInt(_0xe3cb8(0x1d1))/0x2+-parseInt(_0xe3cb8(0x1cf))/0x3*(-parseInt(_0xe3cb8(0x1cd))/0x4)+parseInt(_0xe3cb8(0x1d5))/0x5+-parseInt(_0xe3cb8(0x1d3))/0x6*(parseInt(_0xe3cb8(0x1d7))/0x7)+parseInt(_0xe3cb8(0x1ce))/0x8+parseInt(_0xe3cb8(0x1d2))/0x9;if(_0x4262a1===_0x1b2811)break;else _0x24e797['push'](_0x24e797['shift']());}catch(_0x556146){_0x24e797['push'](_0x24e797['shift']());}}}(a212_0x1b49,0x37949));export const RABETBASE_ENV_VALUES=['production',a212_0xb04b08(0x1d6)];export function normalizeEnv(_0x44e746){const _0x34b6b1=a212_0xb04b08;return _0x44e746===_0x34b6b1(0x1ca)?_0x34b6b1(0x1d0):_0x44e746;}export function isProduction(_0x22d167){return normalizeEnv(_0x22d167)==='production';}export function isDaily(_0x1fb166){const _0x1a49e0=a212_0xb04b08;return normalizeEnv(_0x1fb166)===_0x1a49e0(0x1d6);}export function isDev(_0x396463){const _0x57847a=a212_0xb04b08,_0x4278f6=normalizeEnv(_0x396463);return _0x4278f6===_0x57847a(0x1cc)||_0x4278f6===_0x57847a(0x1d4);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0xb04b08(0x1d0));function a212_0x2cf5(_0x1c51ae,_0x2260eb){_0x1c51ae=_0x1c51ae-0x1ca;const _0x1b490f=a212_0x1b49();let _0x2cf5d4=_0x1b490f[_0x1c51ae];return _0x2cf5d4;}export function getEnv(){return env;}export function initEnv(_0x2d2a89){env=normalizeEnv(_0x2d2a89);}
@@ -1 +1 @@
1
- const a213_0xe29eb1=a213_0x454e;function a213_0x454e(_0x57d33f,_0x1bab59){_0x57d33f=_0x57d33f-0x114;const _0x5445eb=a213_0x5445();let _0x454e95=_0x5445eb[_0x57d33f];return _0x454e95;}(function(_0x465fd6,_0x1e6fc6){const _0x3333fb=a213_0x454e,_0x297169=_0x465fd6();while(!![]){try{const _0x1c8ee0=parseInt(_0x3333fb(0x119))/0x1+parseInt(_0x3333fb(0x11e))/0x2+parseInt(_0x3333fb(0x117))/0x3+parseInt(_0x3333fb(0x118))/0x4+parseInt(_0x3333fb(0x115))/0x5+parseInt(_0x3333fb(0x114))/0x6*(-parseInt(_0x3333fb(0x11b))/0x7)+-parseInt(_0x3333fb(0x11d))/0x8*(parseInt(_0x3333fb(0x116))/0x9);if(_0x1c8ee0===_0x1e6fc6)break;else _0x297169['push'](_0x297169['shift']());}catch(_0x240fcd){_0x297169['push'](_0x297169['shift']());}}}(a213_0x5445,0x6ba38));function a213_0x5445(){const _0x522a8b=['1750344enCgTF','6jusryu','3346135LyhyUb','2176731LCZjyp','1896342LsDkAJ','2890460IHRpJk','347438ARATEV','compress','1016603rCFkqc','pretty','88BaXwFp'];a213_0x5445=function(){return _0x522a8b;};return a213_0x5445();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0xe29eb1(0x11c),a213_0xe29eb1(0x11a)];
1
+ const a213_0x171061=a213_0x1482;(function(_0x431d94,_0x32e28d){const _0x4afa22=a213_0x1482,_0x2e4db8=_0x431d94();while(!![]){try{const _0x219fbe=-parseInt(_0x4afa22(0x168))/0x1+parseInt(_0x4afa22(0x167))/0x2+parseInt(_0x4afa22(0x164))/0x3*(-parseInt(_0x4afa22(0x169))/0x4)+-parseInt(_0x4afa22(0x163))/0x5*(parseInt(_0x4afa22(0x16b))/0x6)+parseInt(_0x4afa22(0x16a))/0x7+-parseInt(_0x4afa22(0x16d))/0x8+-parseInt(_0x4afa22(0x165))/0x9*(-parseInt(_0x4afa22(0x16e))/0xa);if(_0x219fbe===_0x32e28d)break;else _0x2e4db8['push'](_0x2e4db8['shift']());}catch(_0x57df3e){_0x2e4db8['push'](_0x2e4db8['shift']());}}}(a213_0x14ad,0x48e6d));function a213_0x14ad(){const _0x40ef82=['1765080DYhXlc','17220LxMmiD','json','5ORcQVW','3RxLtAA','7173iMtboe','compress','570650pldhKY','322344kRpKKi','1771676mNCURv','769181oazUej','2898834hXvhAX','pretty'];a213_0x14ad=function(){return _0x40ef82;};return a213_0x14ad();}function a213_0x1482(_0x37553e,_0x3445ae){_0x37553e=_0x37553e-0x162;const _0x14ad37=a213_0x14ad();let _0x148260=_0x14ad37[_0x37553e];return _0x148260;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a213_0x171061(0x162),a213_0x171061(0x16c),a213_0x171061(0x166)];
@@ -1 +1 @@
1
- const a214_0x5a1f07=a214_0x51f6;(function(_0x5a4801,_0x207441){const _0x24683b=a214_0x51f6,_0x561487=_0x5a4801();while(!![]){try{const _0x575ab8=parseInt(_0x24683b(0xc8))/0x1+-parseInt(_0x24683b(0xcc))/0x2+-parseInt(_0x24683b(0xca))/0x3+parseInt(_0x24683b(0xce))/0x4+-parseInt(_0x24683b(0xd0))/0x5*(-parseInt(_0x24683b(0xcf))/0x6)+parseInt(_0x24683b(0xcb))/0x7+-parseInt(_0x24683b(0xcd))/0x8;if(_0x575ab8===_0x207441)break;else _0x561487['push'](_0x561487['shift']());}catch(_0x1b81bf){_0x561487['push'](_0x561487['shift']());}}}(a214_0x4c0c,0xd0b07));function a214_0x51f6(_0x5ca416,_0x49cf0b){_0x5ca416=_0x5ca416-0xc8;const _0x4c0caa=a214_0x4c0c();let _0x51f6a2=_0x4c0caa[_0x5ca416];return _0x51f6a2;}export const DEFAULT_API_DIR=a214_0x5a1f07(0xc9);function a214_0x4c0c(){const _0x28cae3=['2291846uDxgRx','15766368mLRowR','5387904ffTDHF','1259694iAenou','35HmXwnE','510137nkUaaI','./src/api','2862396OgBiJw','11192202uPMmfN'];a214_0x4c0c=function(){return _0x28cae3;};return a214_0x4c0c();}
1
+ function a214_0x102c(){const _0x1fe9ff=['90yqkMId','65022MvVVNP','16vVQDbV','7644FPSyvw','1019029AoNECe','1043vbcyzQ','884930YYwAGM','52672QRBPyz','4qvPwND','496UcgVrk','138177luxoKT','35373NYLwsL','3285768ydaxgZ'];a214_0x102c=function(){return _0x1fe9ff;};return a214_0x102c();}(function(_0x5d3372,_0x48fe53){const _0x23a547=a214_0xcf25,_0x270920=_0x5d3372();while(!![]){try{const _0xb719fc=parseInt(_0x23a547(0xa0))/0x1*(-parseInt(_0x23a547(0x98))/0x2)+parseInt(_0x23a547(0x9d))/0x3*(parseInt(_0x23a547(0x99))/0x4)+parseInt(_0x23a547(0x97))/0x5+parseInt(_0x23a547(0x9f))/0x6*(parseInt(_0x23a547(0x96))/0x7)+parseInt(_0x23a547(0x9a))/0x8*(parseInt(_0x23a547(0x9b))/0x9)+parseInt(_0x23a547(0x9e))/0xa*(-parseInt(_0x23a547(0x95))/0xb)+parseInt(_0x23a547(0xa1))/0xc*(-parseInt(_0x23a547(0x9c))/0xd);if(_0xb719fc===_0x48fe53)break;else _0x270920['push'](_0x270920['shift']());}catch(_0xaedf8e){_0x270920['push'](_0x270920['shift']());}}}(a214_0x102c,0xcfa05));function a214_0xcf25(_0x555129,_0x3d2fa4){_0x555129=_0x555129-0x95;const _0x102c5c=a214_0x102c();let _0xcf253=_0x102c5c[_0x555129];return _0xcf253;}export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- const a215_0x3a924b=a215_0x25fd;(function(_0x200ee4,_0x2d2829){const _0x37e257=a215_0x25fd,_0x5de000=_0x200ee4();while(!![]){try{const _0x430dc1=-parseInt(_0x37e257(0x89))/0x1*(parseInt(_0x37e257(0x90))/0x2)+-parseInt(_0x37e257(0x96))/0x3+-parseInt(_0x37e257(0x8b))/0x4*(parseInt(_0x37e257(0x8a))/0x5)+parseInt(_0x37e257(0x8e))/0x6*(parseInt(_0x37e257(0x92))/0x7)+-parseInt(_0x37e257(0x8d))/0x8+parseInt(_0x37e257(0x8c))/0x9+parseInt(_0x37e257(0x95))/0xa;if(_0x430dc1===_0x2d2829)break;else _0x5de000['push'](_0x5de000['shift']());}catch(_0x31bcdd){_0x5de000['push'](_0x5de000['shift']());}}}(a215_0x3c69,0x30f26));function a215_0x3c69(){const _0x447d29=['global','7080070aqgdYf','1082799HtTFZJ','380615RcZwhV','5gYcXpx','460892MAswiI','1222344jGBtIz','1212952RQSsfV','2190318JcBDxa','indonesia','2enqgaI','includes','7NENWUm','string'];a215_0x3c69=function(){return _0x447d29;};return a215_0x3c69();}export const LOVRABET_REGION_VALUES=['cn','id',a215_0x3a924b(0x94)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a215_0x25fd(_0x5b4055,_0x2108ea){_0x5b4055=_0x5b4055-0x89;const _0x3c691d=a215_0x3c69();let _0x25fd02=_0x3c691d[_0x5b4055];return _0x25fd02;}export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x53103e){const _0x5d8eb5=a215_0x3a924b;return typeof _0x53103e===_0x5d8eb5(0x93)&&LOVRABET_REGION_VALUES[_0x5d8eb5(0x91)](_0x53103e);}export function isEnabledLovrabetRegion(_0x4b6e1d){const _0x285f4b=a215_0x3a924b;return typeof _0x4b6e1d===_0x285f4b(0x93)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x4b6e1d);}export function normalizeLovrabetRegion(_0x3b2356){const _0x5b19ef=a215_0x3a924b;if(_0x3b2356==='china')return'cn';if(_0x3b2356===_0x5b19ef(0x8f))return'id';return isLovrabetRegion(_0x3b2356)?_0x3b2356:DEFAULT_LOVRABET_REGION;}
1
+ const a215_0x439990=a215_0x47e3;function a215_0xbda9(){const _0x45b04e=['39Twabjc','2295544qyrAzy','170lQMygI','477014jTKWaK','62074hJZDdq','indonesia','includes','62514RVqnnz','2796092gEWeLs','string','3422461tgVtiW','global','19487466sRXdxK'];a215_0xbda9=function(){return _0x45b04e;};return a215_0xbda9();}(function(_0x2ba1ab,_0x13c040){const _0x35e8c7=a215_0x47e3,_0x57150e=_0x2ba1ab();while(!![]){try{const _0xb8661b=-parseInt(_0x35e8c7(0x1bd))/0x1+parseInt(_0x35e8c7(0x1be))/0x2*(-parseInt(_0x35e8c7(0x1ba))/0x3)+-parseInt(_0x35e8c7(0x1c2))/0x4+-parseInt(_0x35e8c7(0x1bc))/0x5*(parseInt(_0x35e8c7(0x1c1))/0x6)+parseInt(_0x35e8c7(0x1b7))/0x7+-parseInt(_0x35e8c7(0x1bb))/0x8+parseInt(_0x35e8c7(0x1b9))/0x9;if(_0xb8661b===_0x13c040)break;else _0x57150e['push'](_0x57150e['shift']());}catch(_0x40f032){_0x57150e['push'](_0x57150e['shift']());}}}(a215_0xbda9,0x69d52));export const LOVRABET_REGION_VALUES=['cn','id',a215_0x439990(0x1b8)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x5ded4a){const _0x55fdb6=a215_0x439990;return typeof _0x5ded4a===_0x55fdb6(0x1c3)&&LOVRABET_REGION_VALUES[_0x55fdb6(0x1c0)](_0x5ded4a);}export function isEnabledLovrabetRegion(_0x377fcc){const _0x129b31=a215_0x439990;return typeof _0x377fcc===_0x129b31(0x1c3)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x377fcc);}function a215_0x47e3(_0x26d381,_0x4c2286){_0x26d381=_0x26d381-0x1b7;const _0xbda99d=a215_0xbda9();let _0x47e3e8=_0xbda99d[_0x26d381];return _0x47e3e8;}export function normalizeLovrabetRegion(_0x3af531){const _0x17d6c6=a215_0x439990;if(_0x3af531==='china')return'cn';if(_0x3af531===_0x17d6c6(0x1bf))return'id';return isLovrabetRegion(_0x3af531)?_0x3af531:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- const a216_0x2a0df9=a216_0x4e42;(function(_0x762cc,_0x51ed57){const _0x3b29d6=a216_0x4e42,_0x22d2a1=_0x762cc();while(!![]){try{const _0x2f1069=parseInt(_0x3b29d6(0x1f5))/0x1*(parseInt(_0x3b29d6(0x1f6))/0x2)+-parseInt(_0x3b29d6(0x1fb))/0x3+parseInt(_0x3b29d6(0x1fd))/0x4+-parseInt(_0x3b29d6(0x1fc))/0x5*(parseInt(_0x3b29d6(0x1f9))/0x6)+parseInt(_0x3b29d6(0x1ff))/0x7+parseInt(_0x3b29d6(0x1f7))/0x8+parseInt(_0x3b29d6(0x1fe))/0x9;if(_0x2f1069===_0x51ed57)break;else _0x22d2a1['push'](_0x22d2a1['shift']());}catch(_0x1bb7d4){_0x22d2a1['push'](_0x22d2a1['shift']());}}}(a216_0x5866,0xb9b8e));function a216_0x4e42(_0x1987f2,_0x36d8f8){_0x1987f2=_0x1987f2-0x1f4;const _0x58663a=a216_0x5866();let _0x4e42ff=_0x58663a[_0x1987f2];return _0x4e42ff;}function a216_0x5866(){const _0x77734c=['3049476FjIPTr','8097948rYuVso','2035551vHpaFh','read','270RZlMmR','8222uMTjpu','822696ORSuti','write','174LwdAux','high-risk-write','4300134idGQgI','167525PovxdE'];a216_0x5866=function(){return _0x77734c;};return a216_0x5866();}export const RISK_LEVEL_VALUES=[a216_0x2a0df9(0x1f4),a216_0x2a0df9(0x1f8),a216_0x2a0df9(0x1fa)];
1
+ function a216_0x1ffb(){const _0x5a4554=['1380827chKDCd','19352pMsoFB','389078NPArGv','568kiiPLY','write','18CVdqpr','high-risk-write','22070mKqUmn','24039JEMZVr','3DVJJjp','1397UgSRAl','1915YpiUzS','708464JOEjsA'];a216_0x1ffb=function(){return _0x5a4554;};return a216_0x1ffb();}const a216_0x4221b4=a216_0x859d;(function(_0x9fc755,_0x462fbf){const _0x20ff35=a216_0x859d,_0x29b94f=_0x9fc755();while(!![]){try{const _0x4c4744=parseInt(_0x20ff35(0x9e))/0x1+parseInt(_0x20ff35(0x9f))/0x2+parseInt(_0x20ff35(0xa6))/0x3*(parseInt(_0x20ff35(0xa9))/0x4)+parseInt(_0x20ff35(0xa8))/0x5*(parseInt(_0x20ff35(0xa2))/0x6)+-parseInt(_0x20ff35(0xaa))/0x7+parseInt(_0x20ff35(0xa0))/0x8*(parseInt(_0x20ff35(0xa5))/0x9)+-parseInt(_0x20ff35(0xa4))/0xa*(parseInt(_0x20ff35(0xa7))/0xb);if(_0x4c4744===_0x462fbf)break;else _0x29b94f['push'](_0x29b94f['shift']());}catch(_0x1f6158){_0x29b94f['push'](_0x29b94f['shift']());}}}(a216_0x1ffb,0x19737));function a216_0x859d(_0x457bed,_0x120524){_0x457bed=_0x457bed-0x9e;const _0x1ffb8=a216_0x1ffb();let _0x859d2f=_0x1ffb8[_0x457bed];return _0x859d2f;}export const RISK_LEVEL_VALUES=['read',a216_0x4221b4(0xa1),a216_0x4221b4(0xa3)];
@@ -1 +1 @@
1
- (function(_0x8dc6e4,_0x5c37f8){const _0x45fa1c=a217_0x5aea,_0x58e41=_0x8dc6e4();while(!![]){try{const _0x2c6b88=-parseInt(_0x45fa1c(0x197))/0x1+-parseInt(_0x45fa1c(0x192))/0x2*(parseInt(_0x45fa1c(0x19c))/0x3)+parseInt(_0x45fa1c(0x19e))/0x4*(-parseInt(_0x45fa1c(0x185))/0x5)+parseInt(_0x45fa1c(0x17c))/0x6*(-parseInt(_0x45fa1c(0x186))/0x7)+parseInt(_0x45fa1c(0x194))/0x8*(parseInt(_0x45fa1c(0x17d))/0x9)+parseInt(_0x45fa1c(0x18a))/0xa+parseInt(_0x45fa1c(0x189))/0xb;if(_0x2c6b88===_0x5c37f8)break;else _0x58e41['push'](_0x58e41['shift']());}catch(_0x181bf7){_0x58e41['push'](_0x58e41['shift']());}}}(a217_0x11bf,0x88b89));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x3c6e54){const _0xa17e0c=a217_0x5aea;return typeof _0x3c6e54===_0xa17e0c(0x188)&&_0x3c6e54['trim']()?_0x3c6e54['trim']():undefined;}function a217_0x5aea(_0x2149dc,_0x1003c2){_0x2149dc=_0x2149dc-0x17a;const _0x11bf19=a217_0x11bf();let _0x5aea51=_0x11bf19[_0x2149dc];return _0x5aea51;}function appProfiles(_0x31807e){const _0x5486bc=a217_0x5aea;return _0x31807e[_0x5486bc(0x19b)]&&typeof _0x31807e[_0x5486bc(0x19b)]===_0x5486bc(0x190)?_0x31807e[_0x5486bc(0x19b)]:{};}function a217_0x11bf(){const _0x2bb157=['string','27769093AgbSEO','5611730njKLCZ','trim','projectConfig','read','appcode','write','object','app','66igvyBp','production','488XdZRSZ','high-risk-write','projectPath','429218ekHHIa','length','apiDir','PAGE_SIZE','apps','75351ysSEYd','riskLevel','2154812mOAwCn','entries','globalConfig','ACCESS_KEY','cookie','pageSize','RISK_LEVEL','2288994ZgpzNU','28233sfyyhJ','accessKey','locale','defaultApp','env','find','VERBOSE','format','10SFaAiW','7BUIrlt','keys'];a217_0x11bf=function(){return _0x2bb157;};return a217_0x11bf();}function resolveDefaultAppName(_0x76f7cd){const _0x1efba0=a217_0x5aea,_0x176180=stringConfigValue(_0x76f7cd[_0x1efba0(0x180)]);if(_0x176180)return _0x176180;const _0x18cf61=Object[_0x1efba0(0x187)](appProfiles(_0x76f7cd));return _0x18cf61[_0x1efba0(0x198)]===0x1?_0x18cf61[0x0]:undefined;}function resolveTopLevelAppCode(_0x2abed5){const _0xfbb0e9=a217_0x5aea;return stringConfigValue(_0x2abed5['appcode'])||stringConfigValue(_0x2abed5[_0xfbb0e9(0x191)]);}function normalizeRiskCeiling(_0x3ec655){const _0x2e6e18=a217_0x5aea;if(_0x3ec655===undefined||_0x3ec655===null)return undefined;if(_0x3ec655==='read'||_0x3ec655===_0x2e6e18(0x18f)||_0x3ec655===_0x2e6e18(0x195))return _0x3ec655;return _0x2e6e18(0x18d);}function resolveRiskCeiling(..._0x2f9a04){const _0x328ee7=a217_0x5aea;let _0x3822d8;for(const _0x4577a5 of _0x2f9a04){const _0x5c410f=normalizeRiskCeiling(_0x4577a5);_0x5c410f&&(!_0x3822d8||riskLevelOrder(_0x5c410f)<riskLevelOrder(_0x3822d8))&&(_0x3822d8=_0x5c410f);}return _0x3822d8??DEFAULT_CONFIG_VALUES[_0x328ee7(0x19d)];}export function resolveAppConfig({raw:_0x19378c,flags:_0x59c6b6,layers:_0x3aca4b,readEnv:_0x17e84a}){const _0x2e0bee=a217_0x5aea,_0x385061=_0x3aca4b?.['projectConfig']??{},_0x2f8cf1=_0x3aca4b?.[_0x2e0bee(0x1a0)]??{},_0xf8e056=!!_0x3aca4b?.[_0x2e0bee(0x196)]||Object[_0x2e0bee(0x187)](_0x385061)[_0x2e0bee(0x198)]>0x0,_0x43c837=!_0xf8e056,_0x3b4464=_0xf8e056?resolveDefaultAppName(_0x385061):undefined,_0x3eba3c=_0x43c837?resolveDefaultAppName(_0x2f8cf1):undefined,_0x4551e4=stringConfigValue(_0x59c6b6[_0x2e0bee(0x191)]),_0x528184=_0x17e84a('APP'),_0x5cb5c5={};if(_0x19378c[_0x2e0bee(0x19b)]&&typeof _0x19378c[_0x2e0bee(0x19b)]===_0x2e0bee(0x190))for(const [_0x32a151,_0x119947]of Object['entries'](_0x19378c['apps'])){_0x119947&&typeof _0x119947===_0x2e0bee(0x190)&&_0x119947['appcode']&&(_0x5cb5c5[_0x32a151]=_0x119947);}const _0x2862e6=_0x3b4464||_0x3eba3c||resolveDefaultAppName(_0x19378c),_0x5dbd59=Object[_0x2e0bee(0x187)](_0x5cb5c5)[_0x2e0bee(0x198)]>0x0,_0x73805a=_0x4551e4||_0x3b4464||_0x528184||_0x3eba3c||_0x2862e6||undefined,_0x672ec7=stringConfigValue(_0x59c6b6['appcode']),_0xd7678=_0x672ec7?Object[_0x2e0bee(0x19f)](_0x5cb5c5)[_0x2e0bee(0x182)](([,_0x55b762])=>_0x55b762?.[_0x2e0bee(0x18e)]===_0x672ec7):undefined,_0x1a3c30=_0xd7678?.[0x0],_0x31e70d=_0xd7678?.[0x1],_0x308d4a=_0x672ec7?_0x1a3c30:_0x73805a;let _0x156a60=_0x308d4a&&_0x5cb5c5[_0x308d4a]?_0x5cb5c5[_0x308d4a]:undefined;_0x672ec7&&_0x31e70d&&(_0x156a60=_0x31e70d);const _0x18a4bd=_0x672ec7?_0x31e70d??_0x156a60:_0x156a60,_0x48ac3a=!_0x4551e4&&!_0x3b4464&&_0x528184&&_0x308d4a===_0x528184,_0x47d31c=_0x4551e4||(_0x48ac3a?_0x528184:undefined)||(_0x672ec7?_0x1a3c30:undefined),_0x2ab39b=_0x18a4bd?.[_0x2e0bee(0x18e)],_0x1def53=_0xf8e056?resolveTopLevelAppCode(_0x385061):undefined,_0x17bf31=_0x43c837?resolveTopLevelAppCode(_0x2f8cf1):undefined,_0x437705=_0x4551e4||_0x3b4464?_0x2ab39b:undefined,_0x4e82da=!_0x4551e4&&!_0x3b4464?_0x2ab39b:undefined,_0x3fc1fa=_0x672ec7||_0x437705||_0x1def53||_0x4e82da||_0x17bf31||undefined,_0x593b2=_0xf8e056?stringConfigValue(_0x385061[_0x2e0bee(0x181)]):undefined,_0x4a7a91=_0x43c837?stringConfigValue(_0x2f8cf1[_0x2e0bee(0x181)]):undefined,_0x12e44a=_0x59c6b6['env']||_0x18a4bd?.['env']||_0x593b2||_0x17e84a('ENV')||_0x4a7a91||_0x19378c[_0x2e0bee(0x181)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x181)],_0x22722b=_0x18a4bd?.[_0x2e0bee(0x17f)]||_0x19378c[_0x2e0bee(0x17f)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x17f)],_0x22b808=_0x17e84a('COOKIE')||_0x18a4bd?.[_0x2e0bee(0x1a2)]||_0x19378c[_0x2e0bee(0x1a2)]||undefined,_0x5075c0=_0x17e84a(_0x2e0bee(0x1a1))||_0x18a4bd?.[_0x2e0bee(0x17e)]||_0x19378c[_0x2e0bee(0x17e)]||undefined,_0x40b2f0=_0x59c6b6['format']||_0x17e84a('FORMAT')||_0x18a4bd?.[_0x2e0bee(0x184)]||_0x19378c['format'],_0x3593bb=normalizeLegacyOutputFormat(_0x40b2f0),_0x1a5875=_0x17e84a(_0x2e0bee(0x19a))||_0x18a4bd?.[_0x2e0bee(0x17a)]||_0x19378c[_0x2e0bee(0x17a)],_0x492fa7=_0x1a5875?Number(_0x1a5875)||undefined:undefined,_0xd134ca=_0x3aca4b?[_0x3aca4b['globalConfig'][_0x2e0bee(0x19d)],_0x3aca4b[_0x2e0bee(0x18c)]['riskLevel']]:[_0x19378c[_0x2e0bee(0x19d)]],_0x535123=resolveRiskCeiling(..._0xd134ca,_0x18a4bd?.[_0x2e0bee(0x19d)]),_0x46296d=resolveRiskCeiling(_0x535123,_0x17e84a(_0x2e0bee(0x17b))),_0x207786=_0x17e84a(_0x2e0bee(0x183)),_0x2f2fd1=_0x207786==='1'||_0x207786==='true',_0x1c4936=_0x18a4bd?.[_0x2e0bee(0x199)]||_0x19378c[_0x2e0bee(0x199)]||DEFAULT_CONFIG_VALUES[_0x2e0bee(0x199)],_0x231ca5=isDaily(normalizeEnv(String(_0x12e44a)))?'daily':_0x2e0bee(0x193);return{'appCode':typeof _0x3fc1fa===_0x2e0bee(0x188)&&_0x3fc1fa['trim']()?_0x3fc1fa[_0x2e0bee(0x18b)]():undefined,'env':_0x231ca5,'locale':_0x22722b,'cookie':_0x22b808,'accessKey':_0x5075c0,'format':_0x3593bb,'pageSize':_0x492fa7,'riskLevel':_0x46296d,'verbose':_0x2f2fd1,'apiDir':_0x1c4936,'apps':_0x5cb5c5,'defaultApp':_0x2862e6,'currentApp':_0x5dbd59?_0x308d4a:undefined,'explicitAppName':_0x47d31c};}
1
+ (function(_0xfeba6e,_0x8a8121){const _0x37d3b9=a217_0x4e46,_0x59be9a=_0xfeba6e();while(!![]){try{const _0x2b4693=-parseInt(_0x37d3b9(0xc0))/0x1*(parseInt(_0x37d3b9(0xc9))/0x2)+parseInt(_0x37d3b9(0xca))/0x3+-parseInt(_0x37d3b9(0xd7))/0x4*(parseInt(_0x37d3b9(0xbf))/0x5)+parseInt(_0x37d3b9(0xdd))/0x6+parseInt(_0x37d3b9(0xe1))/0x7+-parseInt(_0x37d3b9(0xba))/0x8*(parseInt(_0x37d3b9(0xe2))/0x9)+parseInt(_0x37d3b9(0xcc))/0xa*(parseInt(_0x37d3b9(0xdb))/0xb);if(_0x2b4693===_0x8a8121)break;else _0x59be9a['push'](_0x59be9a['shift']());}catch(_0x3d20bf){_0x59be9a['push'](_0x59be9a['shift']());}}}(a217_0x5c89,0xaf8cf));function a217_0x5c89(){const _0x4b462e=['entries','length','PAGE_SIZE','projectConfig','string','2053894IXPnOa','690726MGKFRY','ACCESS_KEY','1590mgenzE','APP','app','high-risk-write','apiDir','find','locale','globalConfig','keys','true','read','1730276maEuOu','format','defaultApp','FORMAT','216689hjbsSC','accessKey','3713748DGzTGz','env','production','cookie','1366512ULPfzZ','3398544dYxedD','trim','RISK_LEVEL','pageSize','24EdBVCq','riskLevel','object','apps','daily','15KdTuKj','1WothXf','VERBOSE','write','appcode'];a217_0x5c89=function(){return _0x4b462e;};return a217_0x5c89();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a217_0x4e46(_0x1d0253,_0x54f4aa){_0x1d0253=_0x1d0253-0xb8;const _0x5c89f6=a217_0x5c89();let _0x4e469e=_0x5c89f6[_0x1d0253];return _0x4e469e;}function stringConfigValue(_0x1b9aa1){const _0x37bfe5=a217_0x4e46;return typeof _0x1b9aa1===_0x37bfe5(0xc8)&&_0x1b9aa1[_0x37bfe5(0xe3)]()?_0x1b9aa1['trim']():undefined;}function appProfiles(_0x387c1c){const _0x226873=a217_0x4e46;return _0x387c1c[_0x226873(0xbd)]&&typeof _0x387c1c[_0x226873(0xbd)]===_0x226873(0xbc)?_0x387c1c[_0x226873(0xbd)]:{};}function resolveDefaultAppName(_0x5d9ec5){const _0x49b104=a217_0x4e46,_0x27e1b8=stringConfigValue(_0x5d9ec5[_0x49b104(0xd9)]);if(_0x27e1b8)return _0x27e1b8;const _0x359b56=Object[_0x49b104(0xd4)](appProfiles(_0x5d9ec5));return _0x359b56[_0x49b104(0xc5)]===0x1?_0x359b56[0x0]:undefined;}function resolveTopLevelAppCode(_0x42918a){const _0x432174=a217_0x4e46;return stringConfigValue(_0x42918a['appcode'])||stringConfigValue(_0x42918a[_0x432174(0xce)]);}function normalizeRiskCeiling(_0x43c75e){const _0x1f85a5=a217_0x4e46;if(_0x43c75e===undefined||_0x43c75e===null)return undefined;if(_0x43c75e===_0x1f85a5(0xd6)||_0x43c75e===_0x1f85a5(0xc2)||_0x43c75e===_0x1f85a5(0xcf))return _0x43c75e;return _0x1f85a5(0xd6);}function resolveRiskCeiling(..._0x4126d5){const _0x3b87bf=a217_0x4e46;let _0x3f00b3;for(const _0xa2840e of _0x4126d5){const _0x39f109=normalizeRiskCeiling(_0xa2840e);_0x39f109&&(!_0x3f00b3||riskLevelOrder(_0x39f109)<riskLevelOrder(_0x3f00b3))&&(_0x3f00b3=_0x39f109);}return _0x3f00b3??DEFAULT_CONFIG_VALUES[_0x3b87bf(0xbb)];}export function resolveAppConfig({raw:_0x37240d,flags:_0x22f03d,layers:_0x1d3caf,readEnv:_0x8fde53}){const _0x197cac=a217_0x4e46,_0x58819d=_0x1d3caf?.['projectConfig']??{},_0x9f93c4=_0x1d3caf?.[_0x197cac(0xd3)]??{},_0x138fe0=!!_0x1d3caf?.['projectPath']||Object[_0x197cac(0xd4)](_0x58819d)[_0x197cac(0xc5)]>0x0,_0x2faad7=!_0x138fe0,_0x5066df=_0x138fe0?resolveDefaultAppName(_0x58819d):undefined,_0x51a92f=_0x2faad7?resolveDefaultAppName(_0x9f93c4):undefined,_0x446336=stringConfigValue(_0x22f03d[_0x197cac(0xce)]),_0xa426c4=_0x8fde53(_0x197cac(0xcd)),_0x2bb0c2={};if(_0x37240d[_0x197cac(0xbd)]&&typeof _0x37240d[_0x197cac(0xbd)]===_0x197cac(0xbc))for(const [_0x3479b0,_0x4a1677]of Object[_0x197cac(0xc4)](_0x37240d[_0x197cac(0xbd)])){_0x4a1677&&typeof _0x4a1677===_0x197cac(0xbc)&&_0x4a1677[_0x197cac(0xc3)]&&(_0x2bb0c2[_0x3479b0]=_0x4a1677);}const _0x5d9d86=_0x5066df||_0x51a92f||resolveDefaultAppName(_0x37240d),_0x453e0c=Object[_0x197cac(0xd4)](_0x2bb0c2)[_0x197cac(0xc5)]>0x0,_0x116011=_0x446336||_0x5066df||_0xa426c4||_0x51a92f||_0x5d9d86||undefined,_0x3a4ff2=stringConfigValue(_0x22f03d['appcode']),_0x4a98e1=_0x3a4ff2?Object[_0x197cac(0xc4)](_0x2bb0c2)[_0x197cac(0xd1)](([,_0x5de7e8])=>_0x5de7e8?.[_0x197cac(0xc3)]===_0x3a4ff2):undefined,_0x2d022f=_0x4a98e1?.[0x0],_0x5ae249=_0x4a98e1?.[0x1],_0x44e1af=_0x3a4ff2?_0x2d022f:_0x116011;let _0x5730f6=_0x44e1af&&_0x2bb0c2[_0x44e1af]?_0x2bb0c2[_0x44e1af]:undefined;_0x3a4ff2&&_0x5ae249&&(_0x5730f6=_0x5ae249);const _0x136918=_0x3a4ff2?_0x5ae249??_0x5730f6:_0x5730f6,_0x2e55f4=!_0x446336&&!_0x5066df&&_0xa426c4&&_0x44e1af===_0xa426c4,_0x4f2298=_0x446336||(_0x2e55f4?_0xa426c4:undefined)||(_0x3a4ff2?_0x2d022f:undefined),_0x26cd9b=_0x136918?.[_0x197cac(0xc3)],_0x591841=_0x138fe0?resolveTopLevelAppCode(_0x58819d):undefined,_0x39dace=_0x2faad7?resolveTopLevelAppCode(_0x9f93c4):undefined,_0x40ddae=_0x446336||_0x5066df?_0x26cd9b:undefined,_0x78aaca=!_0x446336&&!_0x5066df?_0x26cd9b:undefined,_0x30a832=_0x3a4ff2||_0x40ddae||_0x591841||_0x78aaca||_0x39dace||undefined,_0x17a891=_0x138fe0?stringConfigValue(_0x58819d[_0x197cac(0xde)]):undefined,_0x2f04bf=_0x2faad7?stringConfigValue(_0x9f93c4[_0x197cac(0xde)]):undefined,_0x1ec201=_0x22f03d['env']||_0x136918?.['env']||_0x17a891||_0x8fde53('ENV')||_0x2f04bf||_0x37240d[_0x197cac(0xde)]||DEFAULT_CONFIG_VALUES['env'],_0x3b4e66=_0x136918?.[_0x197cac(0xd2)]||_0x37240d[_0x197cac(0xd2)]||DEFAULT_CONFIG_VALUES[_0x197cac(0xd2)],_0x43a641=_0x8fde53('COOKIE')||_0x136918?.[_0x197cac(0xe0)]||_0x37240d[_0x197cac(0xe0)]||undefined,_0x5e2b5b=_0x8fde53(_0x197cac(0xcb))||_0x136918?.[_0x197cac(0xdc)]||_0x37240d[_0x197cac(0xdc)]||undefined,_0x456eee=_0x22f03d['format']||_0x8fde53(_0x197cac(0xda))||_0x136918?.['format']||_0x37240d[_0x197cac(0xd8)],_0x956e2e=normalizeLegacyOutputFormat(_0x456eee),_0x295aba=_0x8fde53(_0x197cac(0xc6))||_0x136918?.['pageSize']||_0x37240d[_0x197cac(0xb9)],_0x3ddb2a=_0x295aba?Number(_0x295aba)||undefined:undefined,_0x41ffb6=_0x1d3caf?[_0x1d3caf['globalConfig'][_0x197cac(0xbb)],_0x1d3caf[_0x197cac(0xc7)][_0x197cac(0xbb)]]:[_0x37240d[_0x197cac(0xbb)]],_0x867d31=resolveRiskCeiling(..._0x41ffb6,_0x136918?.[_0x197cac(0xbb)]),_0x321475=resolveRiskCeiling(_0x867d31,_0x8fde53(_0x197cac(0xb8))),_0x1a6052=_0x8fde53(_0x197cac(0xc1)),_0x20ab63=_0x1a6052==='1'||_0x1a6052===_0x197cac(0xd5),_0xdafa3d=_0x136918?.[_0x197cac(0xd0)]||_0x37240d['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2c0b1e=isDaily(normalizeEnv(String(_0x1ec201)))?_0x197cac(0xbe):_0x197cac(0xdf);return{'appCode':typeof _0x30a832===_0x197cac(0xc8)&&_0x30a832[_0x197cac(0xe3)]()?_0x30a832[_0x197cac(0xe3)]():undefined,'env':_0x2c0b1e,'locale':_0x3b4e66,'cookie':_0x43a641,'accessKey':_0x5e2b5b,'format':_0x956e2e,'pageSize':_0x3ddb2a,'riskLevel':_0x321475,'verbose':_0x20ab63,'apiDir':_0xdafa3d,'apps':_0x2bb0c2,'defaultApp':_0x5d9d86,'currentApp':_0x453e0c?_0x44e1af:undefined,'explicitAppName':_0x4f2298};}
@@ -1 +1 @@
1
- function a218_0x5739(){const _0x2ef09a=['cookie','500961hLFRAZ','4242TgNCWq','260235tOddsq','50qugTNd','341MaxBjK','14929260OMcNap','186388JMfXvx','../auth/get-cookie.js','99PgnOEc','89704vqKzGv','2oRMOoM','authRequired','173830MtzlHK','133xrebLN'];a218_0x5739=function(){return _0x2ef09a;};return a218_0x5739();}(function(_0x40c49a,_0xea6269){const _0x44990e=a218_0x15a9,_0x23bd24=_0x40c49a();while(!![]){try{const _0x22d0c8=-parseInt(_0x44990e(0x1c7))/0x1*(parseInt(_0x44990e(0x1cf))/0x2)+parseInt(_0x44990e(0x1c5))/0x3+parseInt(_0x44990e(0x1cb))/0x4*(-parseInt(_0x44990e(0x1c8))/0x5)+-parseInt(_0x44990e(0x1c6))/0x6*(-parseInt(_0x44990e(0x1c3))/0x7)+parseInt(_0x44990e(0x1ce))/0x8*(parseInt(_0x44990e(0x1cd))/0x9)+-parseInt(_0x44990e(0x1c2))/0xa*(parseInt(_0x44990e(0x1c9))/0xb)+parseInt(_0x44990e(0x1ca))/0xc;if(_0x22d0c8===_0xea6269)break;else _0x23bd24['push'](_0x23bd24['shift']());}catch(_0x1c5fcc){_0x23bd24['push'](_0x23bd24['shift']());}}}(a218_0x5739,0x450a6));function a218_0x15a9(_0x50ff7e,_0x260ed4){_0x50ff7e=_0x50ff7e-0x1c2;const _0x57391e=a218_0x5739();let _0x15a91d=_0x57391e[_0x50ff7e];return _0x15a91d;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x3c46e0){const _0x5aa24d=a218_0x15a9,{getCookie:_0x4a87fd}=await import(_0x5aa24d(0x1cc)),_0x1d5dd9=_0x3c46e0[_0x5aa24d(0x1c4)]||_0x4a87fd(),_0x421ca9=_0x1d5dd9?await getIsSessionValid():![];return{'cookie':_0x1d5dd9,'isLoggedIn':_0x421ca9,async 'getOrLogin'(){const _0x4a7985=_0x5aa24d;if(_0x1d5dd9&&_0x421ca9)return _0x1d5dd9;throw CliErrors[_0x4a7985(0x1d0)]();}};}
1
+ function a218_0x3417(_0x1f9b33,_0x47bdef){_0x1f9b33=_0x1f9b33-0x11e;const _0x54e06d=a218_0x54e0();let _0x3417bd=_0x54e06d[_0x1f9b33];return _0x3417bd;}(function(_0x49a892,_0xde122f){const _0x4a5b62=a218_0x3417,_0x3b1627=_0x49a892();while(!![]){try{const _0xa5c7a5=-parseInt(_0x4a5b62(0x122))/0x1*(-parseInt(_0x4a5b62(0x129))/0x2)+-parseInt(_0x4a5b62(0x12b))/0x3+parseInt(_0x4a5b62(0x121))/0x4*(parseInt(_0x4a5b62(0x128))/0x5)+parseInt(_0x4a5b62(0x120))/0x6*(-parseInt(_0x4a5b62(0x11f))/0x7)+-parseInt(_0x4a5b62(0x124))/0x8*(-parseInt(_0x4a5b62(0x126))/0x9)+-parseInt(_0x4a5b62(0x11e))/0xa*(-parseInt(_0x4a5b62(0x12c))/0xb)+parseInt(_0x4a5b62(0x127))/0xc;if(_0xa5c7a5===_0xde122f)break;else _0x3b1627['push'](_0x3b1627['shift']());}catch(_0x220202){_0x3b1627['push'](_0x3b1627['shift']());}}}(a218_0x54e0,0x7972f));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a218_0x54e0(){const _0x2a9154=['22850FGEFuu','60226jRBLUX','../auth/get-cookie.js','2829336MTBiwU','3079714Xrajka','10urZDvS','28QKtEaU','1434102NWyPbU','752xbavwA','9fRRvwk','cookie','41304uOHJNA','authRequired','54HrpLHk','11466072wPxSeh'];a218_0x54e0=function(){return _0x2a9154;};return a218_0x54e0();}export async function buildAuth(_0x36ff5a){const _0x46af83=a218_0x3417,{getCookie:_0x418935}=await import(_0x46af83(0x12a)),_0x1b4044=_0x36ff5a[_0x46af83(0x123)]||_0x418935(),_0x148ca0=_0x1b4044?await getIsSessionValid():![];return{'cookie':_0x1b4044,'isLoggedIn':_0x148ca0,async 'getOrLogin'(){const _0x4907f1=_0x46af83;if(_0x1b4044&&_0x148ca0)return _0x1b4044;throw CliErrors[_0x4907f1(0x125)]();}};}
@@ -1 +1 @@
1
- const a219_0x3d0db5=a219_0x1070;(function(_0x2c75b8,_0x22c164){const _0x404003=a219_0x1070,_0x428067=_0x2c75b8();while(!![]){try{const _0x40ea37=parseInt(_0x404003(0x91))/0x1+-parseInt(_0x404003(0x8b))/0x2*(parseInt(_0x404003(0xb0))/0x3)+parseInt(_0x404003(0x8a))/0x4*(-parseInt(_0x404003(0xad))/0x5)+-parseInt(_0x404003(0xa2))/0x6+parseInt(_0x404003(0xa8))/0x7+-parseInt(_0x404003(0xa3))/0x8+parseInt(_0x404003(0xb9))/0x9*(parseInt(_0x404003(0xa9))/0xa);if(_0x40ea37===_0x22c164)break;else _0x428067['push'](_0x428067['shift']());}catch(_0x2542e3){_0x428067['push'](_0x428067['shift']());}}}(a219_0x27d8,0xba645));function a219_0x27d8(){const _0x44ddfc=['65xIMHYW','riskLevel','accessKey','93rbWZRz','Project','Global','keys','length','trim','pageSize','missing','object','2128419pyLSfP','error','utf8','cookie','format','303452JqUkQu','37226mImgey','parse','\x0a\x20\x20','locale','defaultApp','stringify','242152jjwKhM','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','region','empty','project','apps','appDomain','warn','app','status','apiDir','userDomain','appcode','set','runtimeDomain','string','migrated','798546KKGjhX','8966952EXJzaC','kbDomain','projectPath','env','silent','1848756RJxlxT','130hfbLfv','cwd','inherit','config'];a219_0x27d8=function(){return _0x44ddfc;};return a219_0x27d8();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5de59f){for(const _0x27aea1 of CONFIG_NAMES){const _0x48d447=resolve(_0x5de59f,_0x27aea1);if(existsSync(_0x48d447))return _0x48d447;}return undefined;}export function findProjectRootDirectory(_0x4c443f=process[a219_0x3d0db5(0xaa)]()){let _0x278cf5=resolve(_0x4c443f);const {root:_0x4f96e3}=parse(_0x278cf5),_0x13f244=homedir();while(!![]){if(resolveConfigPath(_0x278cf5)){if(_0x278cf5===_0x13f244)break;return _0x278cf5;}if(_0x278cf5===_0x4f96e3||_0x278cf5===_0x13f244)break;const _0x2f723a=dirname(_0x278cf5);if(_0x2f723a===_0x278cf5)break;_0x278cf5=_0x2f723a;}return resolve(_0x4c443f);}export function getProjectConfigPath(){const _0x5be738=a219_0x3d0db5;return resolveConfigPath(process[_0x5be738(0xaa)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x4a1007){const _0x4c3427=a219_0x3d0db5;if(!existsSync(_0x4a1007))return{'status':_0x4c3427(0xb7)};try{const _0xb66e30=readFileSync(_0x4a1007,{'encoding':_0x4c3427(0xbb)});if(!_0xb66e30?.[_0x4c3427(0xb5)]())return{'status':_0x4c3427(0x94)};const _0x32da76=JSON[_0x4c3427(0x8c)](_0xb66e30);return{'status':'ok','data':_0x32da76};}catch(_0x44dbfa){return{'status':_0x4c3427(0xba),'message':_0x44dbfa instanceof Error?_0x44dbfa['message']:String(_0x44dbfa)};}}function parseCliConfigJsonFile(_0x55de39,_0x45627f,_0x5df1ef){const _0xfbbed5=a219_0x3d0db5,_0x592f69=inspectCliConfigJsonFile(_0x55de39);if(_0x592f69[_0xfbbed5(0x9a)]===_0xfbbed5(0xb7)||_0x592f69[_0xfbbed5(0x9a)]===_0xfbbed5(0x94))return{};if(_0x592f69[_0xfbbed5(0x9a)]==='ok')return _0x592f69['data'];return _0x45627f===_0xfbbed5(0x98)&&_0x5df1ef&&console[_0xfbbed5(0xba)](CLI_BIN_NAME+':\x20'+_0x5df1ef+_0xfbbed5(0x92)+_0x55de39+_0xfbbed5(0x8d)+_0x592f69['message']),{};}function normalizeLegacyConfigShape(_0x24557d){const _0x503d36=a219_0x3d0db5;if(!_0x24557d||typeof _0x24557d!=='object')return{'config':{},'migrated':![]};const _0x1c30f3={..._0x24557d},_0x2b54f0=_0x1c30f3[_0x503d36(0x96)]&&typeof _0x1c30f3[_0x503d36(0x96)]===_0x503d36(0xb8)?{..._0x1c30f3['apps']}:{},_0x5f2825=Object[_0x503d36(0xb3)](_0x2b54f0)['length'],_0x533fcc=_0x1c30f3[_0x503d36(0x9d)]||_0x1c30f3[_0x503d36(0x99)];let _0x57db0f=![];if(_0x533fcc&&_0x5f2825===0x0){const _0x17a67c=typeof _0x1c30f3[_0x503d36(0x8f)]===_0x503d36(0xa0)&&_0x1c30f3[_0x503d36(0x8f)][_0x503d36(0xb5)]()?_0x1c30f3[_0x503d36(0x8f)]:String(_0x533fcc)[_0x503d36(0xb5)]();_0x2b54f0[_0x17a67c]={'appcode':String(_0x533fcc)[_0x503d36(0xb5)](),..._0x1c30f3[_0x503d36(0xa6)]!=null?{'env':_0x1c30f3[_0x503d36(0xa6)]}:{},..._0x1c30f3[_0x503d36(0x9b)]!=null?{'apiDir':_0x1c30f3[_0x503d36(0x9b)]}:{},..._0x1c30f3[_0x503d36(0xbc)]!=null?{'cookie':_0x1c30f3[_0x503d36(0xbc)]}:{},..._0x1c30f3[_0x503d36(0xaf)]!=null?{'accessKey':_0x1c30f3[_0x503d36(0xaf)]}:{},..._0x1c30f3['format']!=null?{'format':_0x1c30f3[_0x503d36(0x89)]}:{},..._0x1c30f3[_0x503d36(0xb6)]!=null?{'pageSize':_0x1c30f3[_0x503d36(0xb6)]}:{},..._0x1c30f3[_0x503d36(0xae)]!=null?{'riskLevel':_0x1c30f3['riskLevel']}:{},..._0x1c30f3[_0x503d36(0x8e)]!=null?{'locale':_0x1c30f3[_0x503d36(0x8e)]}:{}},_0x1c30f3['apps']=_0x2b54f0,delete _0x1c30f3[_0x503d36(0x8f)],_0x57db0f=!![];}return(_0x503d36(0x9d)in _0x1c30f3||_0x503d36(0x99)in _0x1c30f3)&&(delete _0x1c30f3[_0x503d36(0x9d)],delete _0x1c30f3[_0x503d36(0x99)],_0x57db0f=!![]),{'config':_0x1c30f3,'migrated':_0x57db0f};}function writeNormalizedConfigIfNeeded(_0x1d5b69,_0x3af383){const _0x1e95c6=a219_0x3d0db5,_0x155f3b=JSON[_0x1e95c6(0x90)](_0x3af383,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x1d5b69)===_0x155f3b)return;writeConfigFile(_0x1d5b69,_0x3af383),normalizedWriteCache[_0x1e95c6(0x9e)](_0x1d5b69,_0x155f3b);}function parseAndNormalizeConfig(_0x2a8c54,_0x15f969,_0x5ebcc3){const _0x3671d6=a219_0x3d0db5,_0x24a101=parseCliConfigJsonFile(_0x2a8c54,_0x15f969,_0x5ebcc3),_0x4ed309=normalizeLegacyConfigShape(_0x24a101);if(_0x4ed309[_0x3671d6(0xa1)])try{writeNormalizedConfigIfNeeded(_0x2a8c54,_0x4ed309[_0x3671d6(0xac)]);}catch{}return _0x4ed309[_0x3671d6(0xac)];}function a219_0x1070(_0x3d9312,_0x536072){_0x3d9312=_0x3d9312-0x89;const _0x27d848=a219_0x27d8();let _0x10701d=_0x27d848[_0x3d9312];return _0x10701d;}export function loadRawConfigLayers(_0x34ec6d){const _0x41db2c=a219_0x3d0db5;let _0x48d116={},_0x1fbce4={};const _0x6ae3e5=resolveConfigPath(homedir());_0x6ae3e5&&(_0x48d116=parseAndNormalizeConfig(_0x6ae3e5,'warn',_0x41db2c(0xb2)));const _0x298fd6=_0x34ec6d??findProjectRootDirectory(),_0x31f675=resolveConfigPath(_0x298fd6);return _0x31f675&&(_0x1fbce4=parseAndNormalizeConfig(_0x31f675,_0x41db2c(0x98),_0x41db2c(0xb1))),{'globalPath':_0x6ae3e5,'projectPath':_0x31f675,'globalConfig':_0x48d116,'projectConfig':_0x1fbce4};}const INHERIT_WHITELIST=['cookie',a219_0x3d0db5(0xaf),a219_0x3d0db5(0x8e),a219_0x3d0db5(0x89),a219_0x3d0db5(0xae),a219_0x3d0db5(0xb6),a219_0x3d0db5(0x93),a219_0x3d0db5(0x9c),'apiDomain',a219_0x3d0db5(0x9f),'skillDomain',a219_0x3d0db5(0xa4),a219_0x3d0db5(0x97)];export function mergeRawConfigLayers(_0x305f46){const _0x16530c=a219_0x3d0db5,{globalConfig:_0x5e461e,projectConfig:_0x30f231}=_0x305f46,_0x544f43=!!_0x305f46[_0x16530c(0xa5)]||Object['keys'](_0x30f231)['length']>0x0;if(!_0x544f43)return mergeGlobalOnly(_0x5e461e);return mergeProjectFirst(_0x5e461e,_0x30f231);}function mergeGlobalOnly(_0x59add9){const _0x319118=a219_0x3d0db5,_0x2b4435={..._0x59add9};delete _0x2b4435['inherit'];const _0x3f6997=_0x59add9[_0x319118(0x96)]&&typeof _0x59add9['apps']===_0x319118(0xb8)?_0x59add9[_0x319118(0x96)]:{};if(Object['keys'](_0x3f6997)[_0x319118(0xb4)]>0x0)_0x2b4435[_0x319118(0x96)]=_0x3f6997;if(_0x59add9[_0x319118(0x8f)])_0x2b4435[_0x319118(0x8f)]=_0x59add9[_0x319118(0x8f)];return _0x2b4435;}function mergeProjectFirst(_0x29aa7b,_0x2a3596){const _0x22fbac=a219_0x3d0db5,_0x5985a1={..._0x2a3596};delete _0x5985a1[_0x22fbac(0xab)];for(const _0x59b190 of INHERIT_WHITELIST){!(_0x59b190 in _0x5985a1)&&_0x59b190 in _0x29aa7b&&(_0x5985a1[_0x59b190]=_0x29aa7b[_0x59b190]);}const _0x41a4a4=_0x2a3596['apps']&&typeof _0x2a3596[_0x22fbac(0x96)]==='object'?_0x2a3596[_0x22fbac(0x96)]:{};return Object[_0x22fbac(0xb3)](_0x41a4a4)[_0x22fbac(0xb4)]>0x0?_0x5985a1[_0x22fbac(0x96)]=_0x41a4a4:delete _0x5985a1['apps'],_0x22fbac(0x8f)in _0x2a3596?_0x5985a1['defaultApp']=_0x2a3596['defaultApp']:delete _0x5985a1[_0x22fbac(0x8f)],_0x5985a1;}export function readRawConfigWithLayers(_0x5c0131){const _0x5cf182=loadRawConfigLayers(_0x5c0131);return{'config':mergeRawConfigLayers(_0x5cf182),'layers':_0x5cf182};}export function readRawConfig(_0x1a618a){return mergeRawConfigLayers(loadRawConfigLayers(_0x1a618a));}export function readConfigFile(_0x92ddf){const _0x43cbb6=a219_0x3d0db5;return parseAndNormalizeConfig(_0x92ddf,_0x43cbb6(0xa7));}export function writeConfigFile(_0x1f0832,_0x44d96e){const _0x11d799=a219_0x3d0db5,_0x2059d7=dirname(_0x1f0832);!existsSync(_0x2059d7)&&mkdirSync(_0x2059d7,{'recursive':!![]});const _0x434c0b=_0x1f0832+'.tmp';try{writeFileSync(_0x434c0b,JSON[_0x11d799(0x90)](_0x44d96e,null,0x2)+'\x0a',{'encoding':_0x11d799(0xbb),'mode':0x180}),renameSync(_0x434c0b,_0x1f0832);}catch(_0x1c512b){try{unlinkSync(_0x434c0b);}catch{}throw _0x1c512b;}}export function resolveWriteConfigPath(_0xf45982){const _0x2d9b98=a219_0x3d0db5,_0x2054bf=_0xf45982===_0x2d9b98(0x95)?process[_0x2d9b98(0xaa)]():homedir(),_0x5512c1=resolveConfigPath(_0x2054bf);return _0x5512c1??resolve(_0x2054bf,NEW_CONFIG_NAME);}
1
+ const a219_0x2386f7=a219_0x4cfb;(function(_0x3dfdbd,_0x4f4c8e){const _0x5680c6=a219_0x4cfb,_0x25b716=_0x3dfdbd();while(!![]){try{const _0x555acb=-parseInt(_0x5680c6(0x142))/0x1+parseInt(_0x5680c6(0x11e))/0x2*(-parseInt(_0x5680c6(0x11f))/0x3)+-parseInt(_0x5680c6(0x148))/0x4*(-parseInt(_0x5680c6(0x12d))/0x5)+parseInt(_0x5680c6(0x13b))/0x6*(-parseInt(_0x5680c6(0x149))/0x7)+-parseInt(_0x5680c6(0x147))/0x8+parseInt(_0x5680c6(0x12a))/0x9+parseInt(_0x5680c6(0x137))/0xa*(parseInt(_0x5680c6(0x146))/0xb);if(_0x555acb===_0x4f4c8e)break;else _0x25b716['push'](_0x25b716['shift']());}catch(_0x1ac4d1){_0x25b716['push'](_0x25b716['shift']());}}}(a219_0x2c80,0x1b9d7));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a219_0x2386f7(0x135);export const CONFIG_NAMES=[NEW_CONFIG_NAME];function a219_0x2c80(){const _0x10f265=['264738TMxjnb','app','locale','riskLevel','apps','kbDomain','\x0a\x20\x20','67312MUJojo','silent','appcode','defaultApp','7062AafUYF','1503856LFECig','13204PRnkAH','35FahHGd','pageSize','missing','Project','keys','migrated','cookie','cwd','skillDomain','projectPath','Global','126658wmBtfG','9kbztwY','empty','warn','length','utf8','env','get','accessKey','stringify','config','appDomain','261540NEApgV','status','message','5kYTpJV','format','error','.tmp','data','parse','inherit','trim','.rabetbase.json','set','11630txmOIU','apiDomain','object','string'];a219_0x2c80=function(){return _0x10f265;};return a219_0x2c80();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x21ee6d){for(const _0x3c522a of CONFIG_NAMES){const _0x8746ac=resolve(_0x21ee6d,_0x3c522a);if(existsSync(_0x8746ac))return _0x8746ac;}return undefined;}export function findProjectRootDirectory(_0x33fd98=process[a219_0x2386f7(0x11a)]()){let _0x2ff05b=resolve(_0x33fd98);const {root:_0x4b850c}=parse(_0x2ff05b),_0x40fe12=homedir();while(!![]){if(resolveConfigPath(_0x2ff05b)){if(_0x2ff05b===_0x40fe12)break;return _0x2ff05b;}if(_0x2ff05b===_0x4b850c||_0x2ff05b===_0x40fe12)break;const _0x82bd18=dirname(_0x2ff05b);if(_0x82bd18===_0x2ff05b)break;_0x2ff05b=_0x82bd18;}return resolve(_0x33fd98);}export function getProjectConfigPath(){const _0xc9f308=a219_0x2386f7;return resolveConfigPath(process[_0xc9f308(0x11a)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x22ff83){const _0x3796e0=a219_0x2386f7;if(!existsSync(_0x22ff83))return{'status':'missing'};try{const _0xfc6ab5=readFileSync(_0x22ff83,{'encoding':'utf8'});if(!_0xfc6ab5?.['trim']())return{'status':_0x3796e0(0x120)};const _0x243cf5=JSON[_0x3796e0(0x132)](_0xfc6ab5);return{'status':'ok','data':_0x243cf5};}catch(_0x5ca72e){return{'status':'error','message':_0x5ca72e instanceof Error?_0x5ca72e[_0x3796e0(0x12c)]:String(_0x5ca72e)};}}function parseCliConfigJsonFile(_0x22ba52,_0x4c146d,_0x1607eb){const _0x24372a=a219_0x2386f7,_0x11e6d1=inspectCliConfigJsonFile(_0x22ba52);if(_0x11e6d1[_0x24372a(0x12b)]===_0x24372a(0x14b)||_0x11e6d1['status']===_0x24372a(0x120))return{};if(_0x11e6d1[_0x24372a(0x12b)]==='ok')return _0x11e6d1[_0x24372a(0x131)];return _0x4c146d===_0x24372a(0x121)&&_0x1607eb&&console[_0x24372a(0x12f)](CLI_BIN_NAME+':\x20'+_0x1607eb+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x22ba52+_0x24372a(0x141)+_0x11e6d1[_0x24372a(0x12c)]),{};}function a219_0x4cfb(_0x3b3b33,_0x48fafc){_0x3b3b33=_0x3b3b33-0x117;const _0x2c8052=a219_0x2c80();let _0x4cfb05=_0x2c8052[_0x3b3b33];return _0x4cfb05;}function normalizeLegacyConfigShape(_0x1d6a09){const _0x46bc78=a219_0x2386f7;if(!_0x1d6a09||typeof _0x1d6a09!==_0x46bc78(0x139))return{'config':{},'migrated':![]};const _0x2e6ff1={..._0x1d6a09},_0x500c6d=_0x2e6ff1[_0x46bc78(0x13f)]&&typeof _0x2e6ff1[_0x46bc78(0x13f)]==='object'?{..._0x2e6ff1['apps']}:{},_0x11f453=Object[_0x46bc78(0x117)](_0x500c6d)[_0x46bc78(0x122)],_0x4f48fb=_0x2e6ff1['appcode']||_0x2e6ff1[_0x46bc78(0x13c)];let _0x12d7a0=![];if(_0x4f48fb&&_0x11f453===0x0){const _0x3b1e7e=typeof _0x2e6ff1[_0x46bc78(0x145)]===_0x46bc78(0x13a)&&_0x2e6ff1[_0x46bc78(0x145)]['trim']()?_0x2e6ff1['defaultApp']:String(_0x4f48fb)['trim']();_0x500c6d[_0x3b1e7e]={'appcode':String(_0x4f48fb)[_0x46bc78(0x134)](),..._0x2e6ff1['env']!=null?{'env':_0x2e6ff1[_0x46bc78(0x124)]}:{},..._0x2e6ff1['apiDir']!=null?{'apiDir':_0x2e6ff1['apiDir']}:{},..._0x2e6ff1['cookie']!=null?{'cookie':_0x2e6ff1[_0x46bc78(0x119)]}:{},..._0x2e6ff1[_0x46bc78(0x126)]!=null?{'accessKey':_0x2e6ff1[_0x46bc78(0x126)]}:{},..._0x2e6ff1[_0x46bc78(0x12e)]!=null?{'format':_0x2e6ff1['format']}:{},..._0x2e6ff1[_0x46bc78(0x14a)]!=null?{'pageSize':_0x2e6ff1[_0x46bc78(0x14a)]}:{},..._0x2e6ff1[_0x46bc78(0x13e)]!=null?{'riskLevel':_0x2e6ff1['riskLevel']}:{},..._0x2e6ff1['locale']!=null?{'locale':_0x2e6ff1['locale']}:{}},_0x2e6ff1[_0x46bc78(0x13f)]=_0x500c6d,delete _0x2e6ff1['defaultApp'],_0x12d7a0=!![];}return(_0x46bc78(0x144)in _0x2e6ff1||'app'in _0x2e6ff1)&&(delete _0x2e6ff1[_0x46bc78(0x144)],delete _0x2e6ff1[_0x46bc78(0x13c)],_0x12d7a0=!![]),{'config':_0x2e6ff1,'migrated':_0x12d7a0};}function writeNormalizedConfigIfNeeded(_0x2b9f0d,_0x212a98){const _0x5b8257=a219_0x2386f7,_0xc3b825=JSON[_0x5b8257(0x127)](_0x212a98,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5b8257(0x125)](_0x2b9f0d)===_0xc3b825)return;writeConfigFile(_0x2b9f0d,_0x212a98),normalizedWriteCache[_0x5b8257(0x136)](_0x2b9f0d,_0xc3b825);}function parseAndNormalizeConfig(_0x312e63,_0x19a162,_0x3439f1){const _0x22a00e=a219_0x2386f7,_0x4484ee=parseCliConfigJsonFile(_0x312e63,_0x19a162,_0x3439f1),_0x45d7df=normalizeLegacyConfigShape(_0x4484ee);if(_0x45d7df[_0x22a00e(0x118)])try{writeNormalizedConfigIfNeeded(_0x312e63,_0x45d7df[_0x22a00e(0x128)]);}catch{}return _0x45d7df['config'];}export function loadRawConfigLayers(_0x36a5b8){const _0x5d67aa=a219_0x2386f7;let _0x50c396={},_0x216123={};const _0x53ff69=resolveConfigPath(homedir());_0x53ff69&&(_0x50c396=parseAndNormalizeConfig(_0x53ff69,_0x5d67aa(0x121),_0x5d67aa(0x11d)));const _0xd08feb=_0x36a5b8??findProjectRootDirectory(),_0x149f33=resolveConfigPath(_0xd08feb);return _0x149f33&&(_0x216123=parseAndNormalizeConfig(_0x149f33,_0x5d67aa(0x121),_0x5d67aa(0x14c))),{'globalPath':_0x53ff69,'projectPath':_0x149f33,'globalConfig':_0x50c396,'projectConfig':_0x216123};}const INHERIT_WHITELIST=[a219_0x2386f7(0x119),a219_0x2386f7(0x126),a219_0x2386f7(0x13d),a219_0x2386f7(0x12e),a219_0x2386f7(0x13e),a219_0x2386f7(0x14a),'region','userDomain',a219_0x2386f7(0x138),'runtimeDomain',a219_0x2386f7(0x11b),a219_0x2386f7(0x140),a219_0x2386f7(0x129)];export function mergeRawConfigLayers(_0x5b6284){const _0x157141=a219_0x2386f7,{globalConfig:_0x5d7b01,projectConfig:_0x1606b0}=_0x5b6284,_0x5a2067=!!_0x5b6284[_0x157141(0x11c)]||Object[_0x157141(0x117)](_0x1606b0)['length']>0x0;if(!_0x5a2067)return mergeGlobalOnly(_0x5d7b01);return mergeProjectFirst(_0x5d7b01,_0x1606b0);}function mergeGlobalOnly(_0x44114a){const _0x18a613=a219_0x2386f7,_0xad7141={..._0x44114a};delete _0xad7141[_0x18a613(0x133)];const _0x133313=_0x44114a[_0x18a613(0x13f)]&&typeof _0x44114a[_0x18a613(0x13f)]===_0x18a613(0x139)?_0x44114a[_0x18a613(0x13f)]:{};if(Object['keys'](_0x133313)[_0x18a613(0x122)]>0x0)_0xad7141[_0x18a613(0x13f)]=_0x133313;if(_0x44114a['defaultApp'])_0xad7141['defaultApp']=_0x44114a['defaultApp'];return _0xad7141;}function mergeProjectFirst(_0x3fcb25,_0x3da275){const _0x5655e4=a219_0x2386f7,_0x2678d1={..._0x3da275};delete _0x2678d1[_0x5655e4(0x133)];for(const _0x156cd0 of INHERIT_WHITELIST){!(_0x156cd0 in _0x2678d1)&&_0x156cd0 in _0x3fcb25&&(_0x2678d1[_0x156cd0]=_0x3fcb25[_0x156cd0]);}const _0x2345d0=_0x3da275['apps']&&typeof _0x3da275[_0x5655e4(0x13f)]===_0x5655e4(0x139)?_0x3da275[_0x5655e4(0x13f)]:{};return Object[_0x5655e4(0x117)](_0x2345d0)['length']>0x0?_0x2678d1[_0x5655e4(0x13f)]=_0x2345d0:delete _0x2678d1[_0x5655e4(0x13f)],'defaultApp'in _0x3da275?_0x2678d1[_0x5655e4(0x145)]=_0x3da275[_0x5655e4(0x145)]:delete _0x2678d1[_0x5655e4(0x145)],_0x2678d1;}export function readRawConfigWithLayers(_0x1f2c44){const _0x40385a=loadRawConfigLayers(_0x1f2c44);return{'config':mergeRawConfigLayers(_0x40385a),'layers':_0x40385a};}export function readRawConfig(_0x4f9b14){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f9b14));}export function readConfigFile(_0x1103fd){const _0x4ae683=a219_0x2386f7;return parseAndNormalizeConfig(_0x1103fd,_0x4ae683(0x143));}export function writeConfigFile(_0x13ec75,_0x2735ad){const _0x537f31=a219_0x2386f7,_0x4320d4=dirname(_0x13ec75);!existsSync(_0x4320d4)&&mkdirSync(_0x4320d4,{'recursive':!![]});const _0x1a72e2=_0x13ec75+_0x537f31(0x130);try{writeFileSync(_0x1a72e2,JSON[_0x537f31(0x127)](_0x2735ad,null,0x2)+'\x0a',{'encoding':_0x537f31(0x123),'mode':0x180}),renameSync(_0x1a72e2,_0x13ec75);}catch(_0x3ccbaf){try{unlinkSync(_0x1a72e2);}catch{}throw _0x3ccbaf;}}export function resolveWriteConfigPath(_0x58217f){const _0x3f88a2=a219_0x2386f7,_0x20f27d=_0x58217f==='project'?process[_0x3f88a2(0x11a)]():homedir(),_0x15a3ad=resolveConfigPath(_0x20f27d);return _0x15a3ad??resolve(_0x20f27d,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a220_0x56dd8b=a220_0x2af5;(function(_0x244dbd,_0x33c055){const _0x31d9c3=a220_0x2af5,_0x6b2b0e=_0x244dbd();while(!![]){try{const _0x66c1bf=parseInt(_0x31d9c3(0x12d))/0x1*(-parseInt(_0x31d9c3(0x122))/0x2)+-parseInt(_0x31d9c3(0x12f))/0x3+-parseInt(_0x31d9c3(0x11b))/0x4*(parseInt(_0x31d9c3(0x117))/0x5)+parseInt(_0x31d9c3(0x137))/0x6+parseInt(_0x31d9c3(0x12b))/0x7+parseInt(_0x31d9c3(0x12c))/0x8*(parseInt(_0x31d9c3(0x127))/0x9)+parseInt(_0x31d9c3(0x120))/0xa*(parseInt(_0x31d9c3(0x11c))/0xb);if(_0x66c1bf===_0x33c055)break;else _0x6b2b0e['push'](_0x6b2b0e['shift']());}catch(_0x5a4d9d){_0x6b2b0e['push'](_0x6b2b0e['shift']());}}}(a220_0x44e1,0xb46e4));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a220_0x44e1(){const _0xe24663=['apiDir','join','filter','skillHubDomain','replace','argv','./constant/domain.js','string','project','raw','template_base_url','apps','apiDomain','keys','agentDomain','object','defaultApp','values','252275WoAKSa','cwd','https://g.lovrabet.com/dist/lovrabet-skill','skillDomain','8yqiPFc','36861xtGWOA','projectConfig','./constant/env.js','setRawCommand','2630lxwHlR','slice','79678iErlrZ','app','platformDomain','appDomain','merged','794961hisKIz','trim','env','kbDomain','3434102zsvSot','104kEbkOe','25EMDyAM','api.ts','4276590DwnVJL','userDomain','appcode','entries','-api.ts','./utils/is-non-interactive.js','map','length','4447698DzuQZD'];a220_0x44e1=function(){return _0xe24663;};return a220_0x44e1();}import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x218838){return process.env[`RABETBASE_${_0x218838}`]||process.env[`LOVRABET_${_0x218838}`]||undefined;}function optionalString(_0x1bc634){const _0x313d25=a220_0x2af5;return typeof _0x1bc634===_0x313d25(0x10c)&&_0x1bc634['trim']()?_0x1bc634[_0x313d25(0x128)]():undefined;}export async function createContext(_0x3d5288){const _0x4fba48=a220_0x2af5,{config:_0x36d118,layers:_0x2ce624}=readRawConfigWithLayers(),_0x46cd38=buildConfig(_0x36d118,_0x3d5288,_0x2ce624);await initGlobalEnvironment(_0x46cd38);const {getUserDomain:_0x3a5ccf,getApiDomain:_0x115507}=await import(_0x4fba48(0x10b)),_0x3f36b8={'apiDomain':_0x115507(),'userDomain':_0x3a5ccf()},_0x54e4db=await buildAuth(_0x46cd38);logger['setLogPath'](process[_0x4fba48(0x118)]());const _0x4456b6=(CLI_BIN_NAME+'\x20'+process[_0x4fba48(0x10a)][_0x4fba48(0x121)](0x2)[_0x4fba48(0x139)]('\x20'))[_0x4fba48(0x128)]();logger[_0x4fba48(0x11f)](_0x4456b6);const {isNonInteractive:_0x33d1a1}=await import(_0x4fba48(0x134)),_0x3c07ce=_0x33d1a1(_0x3d5288);return{'config':_0x46cd38,'auth':_0x54e4db,'logger':logger,'env':_0x3f36b8,'nonInteractive':_0x3c07ce};}export function buildConfigFromFlags(_0x5ec468){const {config:_0x450ca4,layers:_0x160a0a}=readRawConfigWithLayers();return buildConfig(_0x450ca4,_0x5ec468,_0x160a0a);}function a220_0x2af5(_0x3d5b5e,_0x5bc91d){_0x3d5b5e=_0x3d5b5e-0x10a;const _0x44e105=a220_0x44e1();let _0x2af5bc=_0x44e105[_0x3d5b5e];return _0x2af5bc;}export async function initGlobalEnvironment(_0x24c832){const _0x2818b3=a220_0x2af5,{initEnv:_0x30ee78}=await import(_0x2818b3(0x11e));_0x30ee78(_0x24c832[_0x2818b3(0x129)]);const {initDomains:_0xfe6da5}=await import(_0x2818b3(0x10b));_0xfe6da5({'region':normalizeLovrabetRegion(_0x24c832[_0x2818b3(0x10e)]?.['region']),'apiDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x111)]),'userDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x130)]),'runtimeDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.['runtimeDomain']),'skillDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x11a)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x13b)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x113)])||optionalString(_0x24c832['raw']?.['platformDomain']),'kbDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x12a)])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.['agentDomain'])||optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x124)]),'appDomain':optionalString(_0x24c832[_0x2818b3(0x10e)]?.[_0x2818b3(0x125)])});}export function getConfigAppCode(_0xc60920){const _0x56f128=a220_0x2af5,_0x10ffe3=readRawConfig(_0xc60920);if(_0x10ffe3[_0x56f128(0x110)]&&typeof _0x10ffe3[_0x56f128(0x110)]===_0x56f128(0x114)){const _0x5ba513=_0x10ffe3['defaultApp'];if(_0x5ba513)return _0x10ffe3['apps'][_0x5ba513]?.[_0x56f128(0x131)]?String(_0x10ffe3['apps'][_0x5ba513][_0x56f128(0x131)])[_0x56f128(0x128)]():undefined;const _0x4ba6ed=Object[_0x56f128(0x116)](_0x10ffe3[_0x56f128(0x110)]);if(_0x4ba6ed['length']===0x1&&_0x4ba6ed[0x0]?.['appcode'])return String(_0x4ba6ed[0x0][_0x56f128(0x131)])['trim']();}const _0x49e139=_0x10ffe3[_0x56f128(0x131)]||_0x10ffe3[_0x56f128(0x123)];if(typeof _0x49e139!==_0x56f128(0x10c)||_0x49e139[_0x56f128(0x128)]()==='')return undefined;return _0x49e139[_0x56f128(0x128)]();}export function getMultiAppConfigs(_0x4fb02d=a220_0x56dd8b(0x10d),_0x3e6040){const _0x371dd4=a220_0x56dd8b,_0x233d39=loadRawConfigLayers(_0x3e6040);let _0x98fb3e,_0x136401;if(_0x4fb02d===_0x371dd4(0x126)){const _0x23f74b=_0x233d39['globalConfig'][_0x371dd4(0x110)]&&typeof _0x233d39['globalConfig'][_0x371dd4(0x110)]==='object'?_0x233d39['globalConfig'][_0x371dd4(0x110)]:{},_0x4a2882=_0x233d39[_0x371dd4(0x11d)]['apps']&&typeof _0x233d39[_0x371dd4(0x11d)][_0x371dd4(0x110)]===_0x371dd4(0x114)?_0x233d39['projectConfig']['apps']:{};_0x98fb3e={..._0x23f74b,..._0x4a2882};const _0x265e97=readRawConfig(_0x3e6040);_0x136401=_0x265e97[_0x371dd4(0x115)];}else _0x98fb3e=_0x233d39['projectConfig']['apps'],_0x136401=_0x233d39[_0x371dd4(0x11d)][_0x371dd4(0x115)];!_0x136401&&_0x98fb3e&&typeof _0x98fb3e==='object'&&Object[_0x371dd4(0x112)](_0x98fb3e)[_0x371dd4(0x136)]===0x1&&(_0x136401=Object[_0x371dd4(0x112)](_0x98fb3e)[0x0]);if(!_0x98fb3e||typeof _0x98fb3e!==_0x371dd4(0x114)||Object[_0x371dd4(0x112)](_0x98fb3e)[_0x371dd4(0x136)]===0x0)return null;return Object['entries'](_0x98fb3e)[_0x371dd4(0x135)](([_0x48306c,_0x51d5f7])=>({'name':_0x48306c,'appcode':_0x51d5f7?.['appcode']||'','isDefault':_0x48306c===_0x136401,'env':_0x51d5f7?.[_0x371dd4(0x129)],'apiDir':_0x51d5f7?.[_0x371dd4(0x138)],'cookie':_0x51d5f7?.['cookie']||undefined}))[_0x371dd4(0x13a)](_0x1ca28f=>_0x1ca28f[_0x371dd4(0x131)]);}export function getTemplateBaseUrl(_0x52d996){const _0xf70caf=a220_0x56dd8b,_0xaea4=readRawConfig(_0x52d996);if(_0xaea4['template_base_url']&&typeof _0xaea4['template_base_url']===_0xf70caf(0x10c))return _0xaea4[_0xf70caf(0x10f)][_0xf70caf(0x13c)](/\/$/,'');return _0xf70caf(0x119);}function buildConfig(_0x4a3f15,_0x28626b,_0x54138f){return{...resolveAppConfig({'raw':_0x4a3f15,'flags':_0x28626b,'layers':_0x54138f,'readEnv':env}),'raw':_0x4a3f15};}export function resolveApiFilePath(_0x47b6d4,_0x35f4a9){const _0x3238e5=a220_0x56dd8b,_0x19ba32=resolve(process[_0x3238e5(0x118)](),_0x47b6d4),_0x21591a=resolve(_0x19ba32,_0x3238e5(0x12e));if(!_0x35f4a9)return _0x21591a;const _0x25d9b2=readRawConfig(),_0x547a74=_0x25d9b2[_0x3238e5(0x110)]&&typeof _0x25d9b2['apps']===_0x3238e5(0x114)?_0x25d9b2[_0x3238e5(0x110)]:{},_0x3130d7=Object[_0x3238e5(0x132)](_0x547a74)['find'](([,_0x28db71])=>_0x28db71?.[_0x3238e5(0x131)]===_0x35f4a9);if(!_0x3130d7)return _0x21591a;const [_0x5a09b3,_0x3e300d]=_0x3130d7,_0x27160b=typeof _0x25d9b2[_0x3238e5(0x115)]===_0x3238e5(0x10c)?_0x25d9b2[_0x3238e5(0x115)]:undefined;if(_0x3e300d?.[_0x3238e5(0x138)])return _0x21591a;if(_0x27160b&&_0x5a09b3!==_0x27160b)return resolve(_0x19ba32,_0x5a09b3+_0x3238e5(0x133));return _0x21591a;}
1
+ const a220_0xd7d89=a220_0xb93a;(function(_0xe6b426,_0x5c1d0b){const _0x48a56d=a220_0xb93a,_0x2bf791=_0xe6b426();while(!![]){try{const _0x2048a0=parseInt(_0x48a56d(0x16d))/0x1*(parseInt(_0x48a56d(0x164))/0x2)+parseInt(_0x48a56d(0x169))/0x3*(-parseInt(_0x48a56d(0x16a))/0x4)+-parseInt(_0x48a56d(0x16b))/0x5+parseInt(_0x48a56d(0x156))/0x6*(parseInt(_0x48a56d(0x15d))/0x7)+parseInt(_0x48a56d(0x151))/0x8*(parseInt(_0x48a56d(0x158))/0x9)+parseInt(_0x48a56d(0x163))/0xa*(parseInt(_0x48a56d(0x152))/0xb)+parseInt(_0x48a56d(0x14c))/0xc*(parseInt(_0x48a56d(0x14e))/0xd);if(_0x2048a0===_0x5c1d0b)break;else _0x2bf791['push'](_0x2bf791['shift']());}catch(_0x1f3a8f){_0x2bf791['push'](_0x2bf791['shift']());}}}(a220_0x4480,0xec558));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';function a220_0x4480(){const _0x46b57a=['object','10dCufdZ','38eIyOoz','length','setRawCommand','platformDomain','https://g.lovrabet.com/dist/lovrabet-skill','3VRPNkC','6877932wCYhGA','8577705kMhiHD','kbDomain','2521OjYzRR','region','merged','-api.ts','apiDir','env','skillHubDomain','./constant/domain.js','cookie','trim','api.ts','projectConfig','defaultApp','slice','apps','globalConfig','48JYBHof','./constant/env.js','5326061ZxIKnm','entries','template_base_url','1192qjuXFV','2692217SWOltv','project','agentDomain','runtimeDomain','6gjiBKs','keys','90855iaOBwN','cwd','raw','replace','string','6772213piaKKo','map','appcode','setLogPath','apiDomain'];a220_0x4480=function(){return _0x46b57a;};return a220_0x4480();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x294feb){return process.env[`RABETBASE_${_0x294feb}`]||process.env[`LOVRABET_${_0x294feb}`]||undefined;}function optionalString(_0x4d2549){const _0x39fc30=a220_0xb93a;return typeof _0x4d2549===_0x39fc30(0x15c)&&_0x4d2549[_0x39fc30(0x176)]()?_0x4d2549[_0x39fc30(0x176)]():undefined;}export async function createContext(_0x2697b7){const _0x5601f6=a220_0xb93a,{config:_0x1c8fa0,layers:_0x3844b9}=readRawConfigWithLayers(),_0x81d968=buildConfig(_0x1c8fa0,_0x2697b7,_0x3844b9);await initGlobalEnvironment(_0x81d968);const {getUserDomain:_0x2f7e9a,getApiDomain:_0x9e5ce3}=await import(_0x5601f6(0x174)),_0x50fe82={'apiDomain':_0x9e5ce3(),'userDomain':_0x2f7e9a()},_0x2af498=await buildAuth(_0x81d968);logger[_0x5601f6(0x160)](process['cwd']());const _0x55c49a=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5601f6(0x149)](0x2)['join']('\x20'))['trim']();logger[_0x5601f6(0x166)](_0x55c49a);const {isNonInteractive:_0x5b1e60}=await import('./utils/is-non-interactive.js'),_0x89f67d=_0x5b1e60(_0x2697b7);return{'config':_0x81d968,'auth':_0x2af498,'logger':logger,'env':_0x50fe82,'nonInteractive':_0x89f67d};}export function buildConfigFromFlags(_0x326aa8){const {config:_0x1e03e6,layers:_0x4e338b}=readRawConfigWithLayers();return buildConfig(_0x1e03e6,_0x326aa8,_0x4e338b);}export async function initGlobalEnvironment(_0x16d60f){const _0x2b78fe=a220_0xb93a,{initEnv:_0x56ff91}=await import(_0x2b78fe(0x14d));_0x56ff91(_0x16d60f[_0x2b78fe(0x172)]);const {initDomains:_0x165912}=await import(_0x2b78fe(0x174));_0x165912({'region':normalizeLovrabetRegion(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x16e)]),'apiDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x161)]),'userDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['userDomain']),'runtimeDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x155)]),'skillDomain':optionalString(_0x16d60f['raw']?.['skillDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x173)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['agentDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'kbDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x16c)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x154)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'appDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['appDomain'])});}function a220_0xb93a(_0x30d8dd,_0x413985){_0x30d8dd=_0x30d8dd-0x146;const _0x448074=a220_0x4480();let _0xb93a80=_0x448074[_0x30d8dd];return _0xb93a80;}export function getConfigAppCode(_0x5dc32e){const _0x4073bb=a220_0xb93a,_0x566124=readRawConfig(_0x5dc32e);if(_0x566124[_0x4073bb(0x14a)]&&typeof _0x566124['apps']==='object'){const _0x24509c=_0x566124[_0x4073bb(0x148)];if(_0x24509c)return _0x566124[_0x4073bb(0x14a)][_0x24509c]?.[_0x4073bb(0x15f)]?String(_0x566124[_0x4073bb(0x14a)][_0x24509c][_0x4073bb(0x15f)])['trim']():undefined;const _0x5bbbfa=Object['values'](_0x566124[_0x4073bb(0x14a)]);if(_0x5bbbfa['length']===0x1&&_0x5bbbfa[0x0]?.['appcode'])return String(_0x5bbbfa[0x0][_0x4073bb(0x15f)])['trim']();}const _0x2d0d9a=_0x566124[_0x4073bb(0x15f)]||_0x566124['app'];if(typeof _0x2d0d9a!==_0x4073bb(0x15c)||_0x2d0d9a[_0x4073bb(0x176)]()==='')return undefined;return _0x2d0d9a[_0x4073bb(0x176)]();}export function getMultiAppConfigs(_0x42ae32=a220_0xd7d89(0x153),_0x1f133d){const _0x4883e5=a220_0xd7d89,_0x1bcb71=loadRawConfigLayers(_0x1f133d);let _0xc4a82f,_0x7c122a;if(_0x42ae32===_0x4883e5(0x16f)){const _0x2171a6=_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]&&typeof _0x1bcb71['globalConfig']['apps']==='object'?_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]:{},_0x5b9dae=_0x1bcb71['projectConfig'][_0x4883e5(0x14a)]&&typeof _0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]===_0x4883e5(0x162)?_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]:{};_0xc4a82f={..._0x2171a6,..._0x5b9dae};const _0x953d74=readRawConfig(_0x1f133d);_0x7c122a=_0x953d74[_0x4883e5(0x148)];}else _0xc4a82f=_0x1bcb71[_0x4883e5(0x147)]['apps'],_0x7c122a=_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x148)];!_0x7c122a&&_0xc4a82f&&typeof _0xc4a82f===_0x4883e5(0x162)&&Object[_0x4883e5(0x157)](_0xc4a82f)[_0x4883e5(0x165)]===0x1&&(_0x7c122a=Object[_0x4883e5(0x157)](_0xc4a82f)[0x0]);if(!_0xc4a82f||typeof _0xc4a82f!==_0x4883e5(0x162)||Object['keys'](_0xc4a82f)[_0x4883e5(0x165)]===0x0)return null;return Object[_0x4883e5(0x14f)](_0xc4a82f)[_0x4883e5(0x15e)](([_0x3220a0,_0x3e9049])=>({'name':_0x3220a0,'appcode':_0x3e9049?.[_0x4883e5(0x15f)]||'','isDefault':_0x3220a0===_0x7c122a,'env':_0x3e9049?.[_0x4883e5(0x172)],'apiDir':_0x3e9049?.[_0x4883e5(0x171)],'cookie':_0x3e9049?.[_0x4883e5(0x175)]||undefined}))['filter'](_0x5da412=>_0x5da412[_0x4883e5(0x15f)]);}export function getTemplateBaseUrl(_0x352d60){const _0x55606f=a220_0xd7d89,_0x32c60b=readRawConfig(_0x352d60);if(_0x32c60b[_0x55606f(0x150)]&&typeof _0x32c60b[_0x55606f(0x150)]===_0x55606f(0x15c))return _0x32c60b[_0x55606f(0x150)][_0x55606f(0x15b)](/\/$/,'');return _0x55606f(0x168);}function buildConfig(_0x830925,_0x3cc0a1,_0x14b4b6){return{...resolveAppConfig({'raw':_0x830925,'flags':_0x3cc0a1,'layers':_0x14b4b6,'readEnv':env}),'raw':_0x830925};}export function resolveApiFilePath(_0xde82c0,_0x289497){const _0x4a9409=a220_0xd7d89,_0x5683c4=resolve(process[_0x4a9409(0x159)](),_0xde82c0),_0x40cc3b=resolve(_0x5683c4,_0x4a9409(0x146));if(!_0x289497)return _0x40cc3b;const _0x112f61=readRawConfig(),_0x5d7cd3=_0x112f61[_0x4a9409(0x14a)]&&typeof _0x112f61[_0x4a9409(0x14a)]===_0x4a9409(0x162)?_0x112f61[_0x4a9409(0x14a)]:{},_0x2723e0=Object[_0x4a9409(0x14f)](_0x5d7cd3)['find'](([,_0x9dd737])=>_0x9dd737?.['appcode']===_0x289497);if(!_0x2723e0)return _0x40cc3b;const [_0x3bffe3,_0x1b8d5f]=_0x2723e0,_0x45f3c9=typeof _0x112f61[_0x4a9409(0x148)]===_0x4a9409(0x15c)?_0x112f61[_0x4a9409(0x148)]:undefined;if(_0x1b8d5f?.['apiDir'])return _0x40cc3b;if(_0x45f3c9&&_0x3bffe3!==_0x45f3c9)return resolve(_0x5683c4,_0x3bffe3+_0x4a9409(0x170));return _0x40cc3b;}