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

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 (296) 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/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/search.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/menu/visibility-update.js +1 -1
  135. package/lib/commands/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/create.js +1 -1
  143. package/lib/commands/page/custom/detail.js +1 -1
  144. package/lib/commands/page/custom/list.js +1 -1
  145. package/lib/commands/page/custom/publish.js +1 -1
  146. package/lib/commands/page/custom/shared.js +1 -1
  147. package/lib/commands/page/custom/syntax.js +1 -1
  148. package/lib/commands/page/custom/template.js +1 -1
  149. package/lib/commands/page/custom/update.js +1 -1
  150. package/lib/commands/page/data-list-status.js +1 -1
  151. package/lib/commands/page/generate-start.js +1 -1
  152. package/lib/commands/page/generate-status.js +1 -1
  153. package/lib/commands/page/index.js +1 -1
  154. package/lib/commands/page/pull.js +1 -1
  155. package/lib/commands/page/push.js +1 -1
  156. package/lib/commands/page/relation-audit.js +1 -1
  157. package/lib/commands/page/restore.js +1 -1
  158. package/lib/commands/page/shared.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/domain-config.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/region.js +1 -1
  215. package/lib/constant/risk.js +1 -1
  216. package/lib/context/app-resolver.js +1 -1
  217. package/lib/context/auth-resolver.js +1 -1
  218. package/lib/context/config-loader.js +1 -1
  219. package/lib/context.js +1 -1
  220. package/lib/core/alias-resolver.js +1 -1
  221. package/lib/core/api-client.js +1 -1
  222. package/lib/core/bff/config.js +1 -1
  223. package/lib/core/bff/file-system.js +1 -1
  224. package/lib/core/bff/hash.js +1 -1
  225. package/lib/core/bff/lock.js +1 -1
  226. package/lib/core/bff/utils.js +1 -1
  227. package/lib/core/db-resolver.js +1 -1
  228. package/lib/core/page/file-system.js +1 -1
  229. package/lib/core/page/hash.js +1 -1
  230. package/lib/core/page/lock.js +1 -1
  231. package/lib/core/sql-index-auditor.js +1 -1
  232. package/lib/core/sql-sync/config.js +1 -1
  233. package/lib/core/sql-sync/file-system.js +1 -1
  234. package/lib/core/sql-sync/hash.js +1 -1
  235. package/lib/core/sql-sync/lock.js +1 -1
  236. package/lib/core/sql-sync/utils.js +1 -1
  237. package/lib/core/sql-validator.js +1 -1
  238. package/lib/errors.js +1 -1
  239. package/lib/framework/build-all-flags.js +1 -1
  240. package/lib/framework/error-output.js +1 -1
  241. package/lib/framework/explicit-yes.js +1 -1
  242. package/lib/framework/flags.js +1 -1
  243. package/lib/framework/help.js +1 -1
  244. package/lib/framework/index.js +1 -1
  245. package/lib/framework/output.js +1 -1
  246. package/lib/framework/response.js +1 -1
  247. package/lib/framework/runner-alias.js +1 -1
  248. package/lib/framework/runner.js +1 -1
  249. package/lib/framework/schema-export.js +1 -1
  250. package/lib/framework/types.js +1 -1
  251. package/lib/generated/build-info.d.ts +4 -4
  252. package/lib/generated/build-info.js +1 -1
  253. package/lib/help.js +1 -1
  254. package/lib/postinstall.js +1 -1
  255. package/lib/runtime/confirmation.js +1 -1
  256. package/lib/runtime/event.js +1 -1
  257. package/lib/runtime/index.js +1 -1
  258. package/lib/runtime/queue.js +1 -1
  259. package/lib/runtime/resolve.js +1 -1
  260. package/lib/skills/builtin-skill.js +1 -1
  261. package/lib/skills/main.js +1 -1
  262. package/lib/skills/npx-skills-add.js +1 -1
  263. package/lib/skills/skill-presence.js +1 -1
  264. package/lib/telemetry/cli-command-trace.js +1 -1
  265. package/lib/telemetry/cli-help-trace.js +1 -1
  266. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  267. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  268. package/lib/telemetry/send-cli-trace-log.js +1 -1
  269. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  270. package/lib/utils/ai_config.js +1 -1
  271. package/lib/utils/apply-jq-filter.js +1 -1
  272. package/lib/utils/cdn-config.js +1 -1
  273. package/lib/utils/check-sdk-version.js +1 -1
  274. package/lib/utils/cli-version-check.js +1 -1
  275. package/lib/utils/cli-version-policy.js +1 -1
  276. package/lib/utils/config.js +1 -1
  277. package/lib/utils/entity-with-id.js +1 -1
  278. package/lib/utils/file-utils.js +1 -1
  279. package/lib/utils/guides-cdn.js +1 -1
  280. package/lib/utils/http-client.js +1 -1
  281. package/lib/utils/is-non-interactive.js +1 -1
  282. package/lib/utils/logger.js +1 -1
  283. package/lib/utils/params.js +1 -1
  284. package/lib/utils/platform.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +1 -1
  293. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  294. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  295. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  296. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a205_0x45dd9f=a205_0x3a0e;function a205_0x3a0e(_0x1411b3,_0x156c64){_0x1411b3=_0x1411b3-0x17d;const _0x2f47f9=a205_0x2f47();let _0x3a0e97=_0x2f47f9[_0x1411b3];return _0x3a0e97;}(function(_0x150229,_0x2297d6){const _0xba415d=a205_0x3a0e,_0x2b03f9=_0x150229();while(!![]){try{const _0x3568f8=parseInt(_0xba415d(0x1a1))/0x1*(-parseInt(_0xba415d(0x1a6))/0x2)+-parseInt(_0xba415d(0x19b))/0x3+-parseInt(_0xba415d(0x1a4))/0x4+parseInt(_0xba415d(0x18c))/0x5*(parseInt(_0xba415d(0x199))/0x6)+-parseInt(_0xba415d(0x1a9))/0x7+-parseInt(_0xba415d(0x1a2))/0x8*(parseInt(_0xba415d(0x190))/0x9)+parseInt(_0xba415d(0x187))/0xa;if(_0x3568f8===_0x2297d6)break;else _0x2b03f9['push'](_0x2b03f9['shift']());}catch(_0x4e18f9){_0x2b03f9['push'](_0x2b03f9['shift']());}}}(a205_0x2f47,0xc8b84));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a205_0x45dd9f(0x196),a205_0x45dd9f(0x194),a205_0x45dd9f(0x193),'skillDomain','kbDomain','appDomain'];function a205_0x2f47(){const _0x5a14cb=['2302772bEQRVK','pathname','342966TBnAfM','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','cwd','9849630kbTCnV','platformDomain','protocol','str','validation','runtime-domain','Unsupported\x20domain\x20config\x20field(s):\x20','includes','search','filter','\x22\x20is\x20not\x20a\x20valid\x20URL.',':\x20\x22','hash','48462390xqKVFo','isArray','join','trim','string','80zLYUwH','object','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','14895xyVjwU','keys','agentDomain','runtimeDomain','apiDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','userDomain','https:','origin','456528GlWYNH','skillHubDomain','3339990CVITna','length','Allowed\x20fields:\x20','domain-config','api-domain','Invalid\x20','7LgTKRQ','4568ZVnUPk','skill-domain'];a205_0x2f47=function(){return _0x5a14cb;};return a205_0x2f47();}const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a205_0x45dd9f(0x19f),'runtimeDomain':a205_0x45dd9f(0x17f),'skillDomain':a205_0x45dd9f(0x1a3),'kbDomain':'kb-domain','appDomain':'app-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a205_0x45dd9f(0x192),a205_0x45dd9f(0x1aa),a205_0x45dd9f(0x19a)];export function normalizeDomainOrigin(_0x5e5eee,_0x261551){const _0x27963a=a205_0x45dd9f;if(typeof _0x261551!==_0x27963a(0x18b)||!_0x261551[_0x27963a(0x18a)]())throw CliErrors[_0x27963a(0x17e)]('Invalid\x20'+_0x5e5eee+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x2cbfdc;try{_0x2cbfdc=new URL(_0x261551[_0x27963a(0x18a)]());}catch{throw CliErrors[_0x27963a(0x17e)](_0x27963a(0x1a0)+_0x5e5eee+_0x27963a(0x185)+_0x261551+_0x27963a(0x184));}if(_0x2cbfdc[_0x27963a(0x1ab)]!==_0x27963a(0x197)||_0x2cbfdc['username']||_0x2cbfdc['password']||_0x2cbfdc[_0x27963a(0x1a5)]!=='/'&&_0x2cbfdc['pathname']!==''||_0x2cbfdc[_0x27963a(0x182)]||_0x2cbfdc[_0x27963a(0x186)])throw CliErrors[_0x27963a(0x17e)](_0x27963a(0x1a0)+_0x5e5eee+_0x27963a(0x195),_0x27963a(0x18e));return _0x2cbfdc[_0x27963a(0x198)];}export function readDomainConfig(_0x1599a0){const _0x1aeb70=a205_0x45dd9f,_0x5c025f=isAbsolute(_0x1599a0)?_0x1599a0:resolve(process[_0x1aeb70(0x1a8)](),_0x1599a0);if(!existsSync(_0x5c025f))throw CliErrors[_0x1aeb70(0x17e)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x5c025f);let _0x75917a;try{_0x75917a=JSON['parse'](readFileSync(_0x5c025f,'utf8'));}catch{throw CliErrors[_0x1aeb70(0x17e)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x5c025f);}if(!_0x75917a||typeof _0x75917a!==_0x1aeb70(0x18d)||Array[_0x1aeb70(0x188)](_0x75917a))throw CliErrors[_0x1aeb70(0x17e)](_0x1aeb70(0x18f));const _0x5805de=_0x75917a,_0xe418b8=Object['keys'](_0x5805de)[_0x1aeb70(0x183)](_0x5d9794=>!DOMAIN_CONFIG_FIELDS[_0x1aeb70(0x181)](_0x5d9794));if(_0xe418b8[_0x1aeb70(0x19c)]>0x0)throw CliErrors[_0x1aeb70(0x17e)](_0x1aeb70(0x180)+_0xe418b8[_0x1aeb70(0x189)](',\x20'),_0x1aeb70(0x19d)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x4dbfc0={};for(const _0x59097b of DOMAIN_CONFIG_FIELDS){_0x5805de[_0x59097b]!==undefined&&(_0x4dbfc0[_0x59097b]=normalizeDomainOrigin(_0x59097b,_0x5805de[_0x59097b]));}if(Object[_0x1aeb70(0x191)](_0x4dbfc0)[_0x1aeb70(0x19c)]===0x0)throw CliErrors['validation'](_0x1aeb70(0x1a7));return _0x4dbfc0;}export function resolveDomainFlags(_0x2291cf){const _0x4ba764=a205_0x45dd9f,_0x49eced=(_0x2291cf[_0x4ba764(0x17d)](_0x4ba764(0x19e))||'')['trim'](),_0x531060=_0x49eced?readDomainConfig(_0x49eced):{};for(const _0x54324d of DOMAIN_CONFIG_FIELDS){const _0x2a2af2=(_0x2291cf[_0x4ba764(0x17d)](DOMAIN_FLAGS[_0x54324d])||'')['trim']();if(_0x2a2af2)_0x531060[_0x54324d]=normalizeDomainOrigin(_0x54324d,_0x2a2af2);}return _0x531060;}
1
+ const a205_0x4bfc3a=a205_0x2db2;function a205_0x2db2(_0x1e2c74,_0x48ad40){_0x1e2c74=_0x1e2c74-0x1bc;const _0x2aa5d2=a205_0x2aa5();let _0x2db26d=_0x2aa5d2[_0x1e2c74];return _0x2db26d;}(function(_0x32f1f5,_0xb64a76){const _0x28ff50=a205_0x2db2,_0x48a9d1=_0x32f1f5();while(!![]){try{const _0x59f405=-parseInt(_0x28ff50(0x1d5))/0x1*(parseInt(_0x28ff50(0x1df))/0x2)+-parseInt(_0x28ff50(0x1e7))/0x3*(parseInt(_0x28ff50(0x1e5))/0x4)+parseInt(_0x28ff50(0x1be))/0x5*(parseInt(_0x28ff50(0x1ce))/0x6)+parseInt(_0x28ff50(0x1d3))/0x7+-parseInt(_0x28ff50(0x1e6))/0x8*(-parseInt(_0x28ff50(0x1e2))/0x9)+-parseInt(_0x28ff50(0x1c9))/0xa*(-parseInt(_0x28ff50(0x1eb))/0xb)+-parseInt(_0x28ff50(0x1e0))/0xc*(parseInt(_0x28ff50(0x1e8))/0xd);if(_0x59f405===_0xb64a76)break;else _0x48a9d1['push'](_0x48a9d1['shift']());}catch(_0x1912fe){_0x48a9d1['push'](_0x48a9d1['shift']());}}}(a205_0x2aa5,0x5262d));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a205_0x4bfc3a(0x1da),a205_0x4bfc3a(0x1ec),'runtimeDomain','skillDomain',a205_0x4bfc3a(0x1cd),a205_0x4bfc3a(0x1ed)];const DOMAIN_FLAGS={'userDomain':a205_0x4bfc3a(0x1c0),'apiDomain':a205_0x4bfc3a(0x1dd),'runtimeDomain':a205_0x4bfc3a(0x1d9),'skillDomain':'skill-domain','kbDomain':a205_0x4bfc3a(0x1c7),'appDomain':a205_0x4bfc3a(0x1ea)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a205_0x4bfc3a(0x1db),a205_0x4bfc3a(0x1d0),a205_0x4bfc3a(0x1cc)];function a205_0x2aa5(){const _0x25e2fb=['trim','109VSehVx','Invalid\x20','username','Domain\x20config\x20file\x20not\x20found:\x20','runtime-domain','userDomain','agentDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','api-domain','protocol','3508bkWCrn','24fyEfjn','password','3174057Ruxnts','string','origin','332XSLYNg','8GxoaLv','6627RBIjfA','2567591rebhXr','Allowed\x20fields:\x20','app-domain','50237ToVqiE','apiDomain','appDomain','domain-config','parse','\x22\x20is\x20not\x20a\x20valid\x20URL.','69035LMgSUQ','validation','user-domain','str','includes',':\x20\x22','search','isArray',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','kb-domain','keys','760TlVDwq','Invalid\x20domain\x20config\x20JSON:\x20','join','skillHubDomain','kbDomain','126xJNLhf','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','platformDomain','pathname','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','821016rkpLXb'];a205_0x2aa5=function(){return _0x25e2fb;};return a205_0x2aa5();}export function normalizeDomainOrigin(_0x52b523,_0x50e91f){const _0x1fe972=a205_0x4bfc3a;if(typeof _0x50e91f!==_0x1fe972(0x1e3)||!_0x50e91f[_0x1fe972(0x1d4)]())throw CliErrors[_0x1fe972(0x1bf)](_0x1fe972(0x1d6)+_0x52b523+_0x1fe972(0x1c6));let _0x2f399d;try{_0x2f399d=new URL(_0x50e91f[_0x1fe972(0x1d4)]());}catch{throw CliErrors[_0x1fe972(0x1bf)]('Invalid\x20'+_0x52b523+_0x1fe972(0x1c3)+_0x50e91f+_0x1fe972(0x1bd));}if(_0x2f399d[_0x1fe972(0x1de)]!=='https:'||_0x2f399d[_0x1fe972(0x1d7)]||_0x2f399d[_0x1fe972(0x1e1)]||_0x2f399d['pathname']!=='/'&&_0x2f399d[_0x1fe972(0x1d1)]!==''||_0x2f399d[_0x1fe972(0x1c4)]||_0x2f399d['hash'])throw CliErrors[_0x1fe972(0x1bf)](_0x1fe972(0x1d6)+_0x52b523+_0x1fe972(0x1dc),_0x1fe972(0x1cf));return _0x2f399d[_0x1fe972(0x1e4)];}export function readDomainConfig(_0x28e0c0){const _0x498343=a205_0x4bfc3a,_0x5ed7bb=isAbsolute(_0x28e0c0)?_0x28e0c0:resolve(process['cwd'](),_0x28e0c0);if(!existsSync(_0x5ed7bb))throw CliErrors[_0x498343(0x1bf)](_0x498343(0x1d8)+_0x5ed7bb);let _0x55ac1d;try{_0x55ac1d=JSON[_0x498343(0x1bc)](readFileSync(_0x5ed7bb,'utf8'));}catch{throw CliErrors['validation'](_0x498343(0x1ca)+_0x5ed7bb);}if(!_0x55ac1d||typeof _0x55ac1d!=='object'||Array[_0x498343(0x1c5)](_0x55ac1d))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x302b64=_0x55ac1d,_0x570861=Object[_0x498343(0x1c8)](_0x302b64)['filter'](_0x48216d=>!DOMAIN_CONFIG_FIELDS[_0x498343(0x1c2)](_0x48216d));if(_0x570861['length']>0x0)throw CliErrors[_0x498343(0x1bf)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x570861[_0x498343(0x1cb)](',\x20'),_0x498343(0x1e9)+DOMAIN_CONFIG_FIELDS[_0x498343(0x1cb)](',\x20'));const _0x4d85a6={};for(const _0x450eef of DOMAIN_CONFIG_FIELDS){_0x302b64[_0x450eef]!==undefined&&(_0x4d85a6[_0x450eef]=normalizeDomainOrigin(_0x450eef,_0x302b64[_0x450eef]));}if(Object[_0x498343(0x1c8)](_0x4d85a6)['length']===0x0)throw CliErrors[_0x498343(0x1bf)](_0x498343(0x1d2));return _0x4d85a6;}export function resolveDomainFlags(_0xae1b84){const _0x2811fa=a205_0x4bfc3a,_0x284307=(_0xae1b84[_0x2811fa(0x1c1)](_0x2811fa(0x1ee))||'')['trim'](),_0x3fc46b=_0x284307?readDomainConfig(_0x284307):{};for(const _0x481ca8 of DOMAIN_CONFIG_FIELDS){const _0x25d6e1=(_0xae1b84[_0x2811fa(0x1c1)](DOMAIN_FLAGS[_0x481ca8])||'')[_0x2811fa(0x1d4)]();if(_0x25d6e1)_0x3fc46b[_0x481ca8]=normalizeDomainOrigin(_0x481ca8,_0x25d6e1);}return _0x3fc46b;}
@@ -1 +1 @@
1
- const a206_0x1e8581=a206_0x429d;function a206_0x429d(_0x272d97,_0x54f036){_0x272d97=_0x272d97-0x1a0;const _0x215c1b=a206_0x215c();let _0x429dfd=_0x215c1b[_0x272d97];return _0x429dfd;}(function(_0x3b205f,_0x1e2ed7){const _0xa68605=a206_0x429d,_0x181833=_0x3b205f();while(!![]){try{const _0x36e765=-parseInt(_0xa68605(0x1af))/0x1*(-parseInt(_0xa68605(0x1c0))/0x2)+-parseInt(_0xa68605(0x1bc))/0x3+-parseInt(_0xa68605(0x1a7))/0x4*(parseInt(_0xa68605(0x1bf))/0x5)+parseInt(_0xa68605(0x1c2))/0x6+-parseInt(_0xa68605(0x1cf))/0x7*(parseInt(_0xa68605(0x1bd))/0x8)+parseInt(_0xa68605(0x1b7))/0x9*(parseInt(_0xa68605(0x1c7))/0xa)+parseInt(_0xa68605(0x1a2))/0xb;if(_0x36e765===_0x1e2ed7)break;else _0x181833['push'](_0x181833['shift']());}catch(_0x44db36){_0x181833['push'](_0x181833['shift']());}}}(a206_0x215c,0xb5df9));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=[a206_0x1e8581(0x1cc),a206_0x1e8581(0x1cb),'locale',a206_0x1e8581(0x1aa),a206_0x1e8581(0x1a0),'region','userDomain',a206_0x1e8581(0x1ab),'runtimeDomain',a206_0x1e8581(0x1c5),a206_0x1e8581(0x1b1),a206_0x1e8581(0x1ba)];function a206_0x215c(){const _0x44d092=['790FLZGuR','Auth\x20cookie','has','app','accessKey','cookie','appcode','zh-CN','588GtErCz','apps','riskLevel','string','11032406MLAWUt','API\x20directory\x20path','env','locale','pageSize','68380GDlwSP','en-US','number','format','apiDomain','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','toLowerCase','43863uZXjgh','object','kbDomain','defaultFormat','apiDir','Risk\x20level','defaultApp','runtimeDomain','38439RsbZoY','inherit','length','appDomain','region','4252296FIlMST','20928jffOIg','keys','70CvkIQv','2BHuAFK','Config\x20key\x20(','7423446JxNweU','userDomain','Default\x20page\x20size','skillDomain','entries'];a206_0x215c=function(){return _0x44d092;};return a206_0x215c();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x1e8581(0x1cd),'env',a206_0x1e8581(0x1a5),a206_0x1e8581(0x1aa),a206_0x1e8581(0x1cc),a206_0x1e8581(0x1cb),a206_0x1e8581(0x1b3),a206_0x1e8581(0x1bb),a206_0x1e8581(0x1c3),'apiDomain',a206_0x1e8581(0x1b6),a206_0x1e8581(0x1c5),a206_0x1e8581(0x1b1),a206_0x1e8581(0x1ba)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5776de){return[..._0x5776de]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x455e75){const _0x30e507=a206_0x1e8581;return TOP_LEVEL_CONFIG_KEYS[_0x30e507(0x1c9)](_0x455e75);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x185ecf=a206_0x1e8581;return _0x185ecf(0x1c1)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a206_0x1e8581(0x1a4),'apiDir':a206_0x1e8581(0x1b3),'cookie':a206_0x1e8581(0x1cc),'accessKey':a206_0x1e8581(0x1cb),'defaultFormat':a206_0x1e8581(0x1aa),'pageSize':'pageSize','riskLevel':a206_0x1e8581(0x1a0),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x4a45e8=a206_0x1e8581;return[{'name':_0x4a45e8(0x1a4),'type':'string','description':_0x4a45e8(0x1ac),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4a45e8(0x1b3),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1a3)},{'name':_0x4a45e8(0x1cc),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1c8),'hidden':!![]},{'name':_0x4a45e8(0x1cb),'type':_0x4a45e8(0x1a1),'description':'Access\x20key','hidden':!![]},{'name':_0x4a45e8(0x1b2),'type':'string','description':_0x4a45e8(0x1ad),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4a45e8(0x1a6),'type':_0x4a45e8(0x1a9),'description':_0x4a45e8(0x1c4)},{'name':_0x4a45e8(0x1a0),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1b4),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x4a45e8(0x1a1),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x4c0be6){const _0x1fe0d5=a206_0x1e8581,_0x5aec23={};for(const [_0x4ca651,_0x323c5a]of Object[_0x1fe0d5(0x1c6)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2dc678=_0x4c0be6(_0x4ca651);if(!_0x2dc678)continue;_0x5aec23[_0x323c5a]=_0x323c5a===_0x1fe0d5(0x1a6)?Number(_0x2dc678):_0x2dc678;}return _0x5aec23;}export function buildAppProfileListFields(_0x1184af){const _0xbe41dd=a206_0x1e8581;return{'env':_0x1184af[_0xbe41dd(0x1a4)]??null,'apiDir':_0x1184af[_0xbe41dd(0x1b3)]??null,'hasCookie':!!_0x1184af[_0xbe41dd(0x1cc)],'hasAccessKey':!!_0x1184af[_0xbe41dd(0x1cb)],'format':_0x1184af['format']??null,'pageSize':_0x1184af[_0xbe41dd(0x1a6)]??null,'riskLevel':_0x1184af[_0xbe41dd(0x1a0)]??null,'locale':_0x1184af[_0xbe41dd(0x1a5)]??null};}export function buildAppDoctorFields(_0x5943ea,_0x2b463c){const _0x598443=a206_0x1e8581;return{'env':{'value':_0x5943ea[_0x598443(0x1a4)]||_0x2b463c['env'],'source':_0x5943ea[_0x598443(0x1a4)]?_0x598443(0x1ca):_0x598443(0x1b8)},'apiDir':{'value':_0x5943ea['apiDir']||_0x2b463c[_0x598443(0x1b3)],'source':_0x5943ea[_0x598443(0x1b3)]?_0x598443(0x1ca):'inherit'},'cookie':{'value':_0x5943ea['cookie']||_0x2b463c['cookie'],'source':_0x5943ea['cookie']?_0x598443(0x1ca):_0x598443(0x1b8)},'accessKey':{'value':_0x5943ea['accessKey']||_0x2b463c[_0x598443(0x1cb)],'source':_0x5943ea[_0x598443(0x1cb)]?_0x598443(0x1ca):_0x598443(0x1b8)}};}export function buildCanonicalAppConfig(_0x5b5ca9,_0x34b434){const _0x4107a4=a206_0x1e8581,_0x3242a2=_0x5b5ca9['map'](_0x448d51=>String(_0x448d51||'')['trim']())['filter'](Boolean);if(_0x3242a2[_0x4107a4(0x1b9)]===0x0)return{};const _0x2da1fd={};for(const _0x14045f of _0x3242a2){_0x2da1fd[_0x14045f]=_0x34b434?{'appcode':_0x14045f,'env':_0x34b434}:{'appcode':_0x14045f};}return _0x3242a2[_0x4107a4(0x1b9)]>0x1?{'apps':_0x2da1fd,'defaultApp':_0x3242a2[0x0]}:{'apps':_0x2da1fd};}export function normalizeStoredDefaultApp(_0x56727e,_0x3e95e1){const _0x191d27=a206_0x1e8581,_0x44776c=_0x56727e['apps']&&typeof _0x56727e[_0x191d27(0x1d0)]===_0x191d27(0x1b0)?_0x56727e[_0x191d27(0x1d0)]:{},_0x48ce17=Object[_0x191d27(0x1be)](_0x44776c);if(_0x48ce17['length']<=0x1)return delete _0x56727e[_0x191d27(0x1b5)],undefined;const _0x381b67=typeof _0x56727e[_0x191d27(0x1b5)]===_0x191d27(0x1a1)&&_0x44776c[_0x56727e[_0x191d27(0x1b5)]]?_0x56727e['defaultApp']:undefined,_0x5bae57=_0x3e95e1&&_0x44776c[_0x3e95e1]?_0x3e95e1:_0x381b67;if(_0x5bae57)return _0x56727e[_0x191d27(0x1b5)]=_0x5bae57,_0x5bae57;return delete _0x56727e[_0x191d27(0x1b5)],undefined;}export function buildCanonicalProjectConfig(_0x3fe9c6,_0x2cb83d){const _0x108c4c=a206_0x1e8581,{appCodes:appCodes=[],env:_0x476a7f,metadata:_0x249782}=_0x2cb83d,_0x108951={..._0x3fe9c6,..._0x249782||{}};delete _0x108951[_0x108c4c(0x1cd)],delete _0x108951[_0x108c4c(0x1ca)];if(_0x476a7f)_0x108951['env']=_0x476a7f;else!_0x108951[_0x108c4c(0x1a4)]&&(_0x108951[_0x108c4c(0x1a4)]=DEFAULT_CONFIG_VALUES[_0x108c4c(0x1a4)]);const _0x546c29=buildCanonicalAppConfig(appCodes,_0x108951['env']);if(Object[_0x108c4c(0x1be)](_0x546c29)[_0x108c4c(0x1b9)]>0x0){_0x108951[_0x108c4c(0x1d0)]=_0x546c29[_0x108c4c(0x1d0)];if(_0x546c29[_0x108c4c(0x1b5)])_0x108951['defaultApp']=_0x546c29[_0x108c4c(0x1b5)];else delete _0x108951[_0x108c4c(0x1b5)];}return _0x108951;}const LOCALE_MAP={'zh':a206_0x1e8581(0x1ce),'zh-cn':a206_0x1e8581(0x1ce),'zh_cn':a206_0x1e8581(0x1ce),'en':a206_0x1e8581(0x1a8),'en-us':'en-US','en_us':a206_0x1e8581(0x1a8)};export function normalizeLocale(_0x2ee602){const _0x4dd689=a206_0x1e8581;if(!_0x2ee602)return null;return LOCALE_MAP[_0x2ee602[_0x4dd689(0x1ae)]()]??null;}
1
+ const a206_0x392f5e=a206_0x5dcd;(function(_0x2ed2fe,_0x5b319b){const _0x249ac0=a206_0x5dcd,_0x32dcc3=_0x2ed2fe();while(!![]){try{const _0x38d991=-parseInt(_0x249ac0(0x94))/0x1*(parseInt(_0x249ac0(0x86))/0x2)+parseInt(_0x249ac0(0x9d))/0x3+parseInt(_0x249ac0(0x75))/0x4+-parseInt(_0x249ac0(0x8e))/0x5+-parseInt(_0x249ac0(0x85))/0x6+-parseInt(_0x249ac0(0x95))/0x7*(-parseInt(_0x249ac0(0x8c))/0x8)+-parseInt(_0x249ac0(0x74))/0x9*(-parseInt(_0x249ac0(0x8b))/0xa);if(_0x38d991===_0x5b319b)break;else _0x32dcc3['push'](_0x32dcc3['shift']());}catch(_0x1aee33){_0x32dcc3['push'](_0x32dcc3['shift']());}}}(a206_0x348e,0x61a8d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a206_0x348e(){const _0xc8076e=['306sPmsGj','2451020bKGHOF','keys','string','Auth\x20cookie','Config\x20key\x20(','cookie','trim','appcode','defaultApp','zh-CN','en-US','Risk\x20level','Access\x20key','format','length','apiDomain','2739486PilCOh','62pAeUdr','join','number','env','apiDir','259340qqkYEX','8OBnnsX','skillDomain','1927185lBBuDf','userDomain','pageSize','API\x20directory\x20path','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','kbDomain','15877LTEdTU','313670xCemjK','locale','filter','runtimeDomain','Default\x20page\x20size','toLowerCase','inherit','region','584691MNZZzy','accessKey','riskLevel','appDomain','defaultFormat','app','map','apps','has','Target\x20environment'];a206_0x348e=function(){return _0xc8076e;};return a206_0x348e();}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=[a206_0x392f5e(0x7a),a206_0x392f5e(0x6b),a206_0x392f5e(0x96),'format','riskLevel',a206_0x392f5e(0x9c),a206_0x392f5e(0x8f),a206_0x392f5e(0x84),'runtimeDomain',a206_0x392f5e(0x8d),a206_0x392f5e(0x93),a206_0x392f5e(0x6d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x392f5e(0x7c),'env',a206_0x392f5e(0x96),a206_0x392f5e(0x82),'cookie',a206_0x392f5e(0x6b),a206_0x392f5e(0x8a),'region',a206_0x392f5e(0x8f),a206_0x392f5e(0x84),a206_0x392f5e(0x98),a206_0x392f5e(0x8d),a206_0x392f5e(0x93),a206_0x392f5e(0x6d)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x563fe2){const _0x370b19=a206_0x392f5e;return[..._0x563fe2][_0x370b19(0x87)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x24a349){const _0x141f8b=a206_0x392f5e;return TOP_LEVEL_CONFIG_KEYS[_0x141f8b(0x72)](_0x24a349);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x551398=a206_0x392f5e;return _0x551398(0x79)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a206_0x392f5e(0x89),'apiDir':a206_0x392f5e(0x8a),'cookie':a206_0x392f5e(0x7a),'accessKey':a206_0x392f5e(0x6b),'defaultFormat':'format','pageSize':a206_0x392f5e(0x90),'riskLevel':a206_0x392f5e(0x6c),'locale':a206_0x392f5e(0x96)};export function getAppProfileFlagDefs(){const _0x37b0da=a206_0x392f5e;return[{'name':_0x37b0da(0x89),'type':_0x37b0da(0x77),'description':_0x37b0da(0x73),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x37b0da(0x91)},{'name':_0x37b0da(0x7a),'type':'string','description':_0x37b0da(0x78),'hidden':!![]},{'name':'accessKey','type':_0x37b0da(0x77),'description':_0x37b0da(0x81),'hidden':!![]},{'name':_0x37b0da(0x6e),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x37b0da(0x90),'type':_0x37b0da(0x88),'description':_0x37b0da(0x99)},{'name':'riskLevel','type':'string','description':_0x37b0da(0x80),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x37b0da(0x96),'type':'string','description':_0x37b0da(0x92)}];}function a206_0x5dcd(_0x552fe6,_0x56e554){_0x552fe6=_0x552fe6-0x6b;const _0x348efe=a206_0x348e();let _0x5dcd40=_0x348efe[_0x552fe6];return _0x5dcd40;}export function collectAppProfileOverrides(_0x4a6141){const _0x12782f=a206_0x392f5e,_0x46f400={};for(const [_0x42d5d8,_0x25463e]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x526f55=_0x4a6141(_0x42d5d8);if(!_0x526f55)continue;_0x46f400[_0x25463e]=_0x25463e===_0x12782f(0x90)?Number(_0x526f55):_0x526f55;}return _0x46f400;}export function buildAppProfileListFields(_0x768085){const _0x1f7953=a206_0x392f5e;return{'env':_0x768085[_0x1f7953(0x89)]??null,'apiDir':_0x768085[_0x1f7953(0x8a)]??null,'hasCookie':!!_0x768085[_0x1f7953(0x7a)],'hasAccessKey':!!_0x768085[_0x1f7953(0x6b)],'format':_0x768085[_0x1f7953(0x82)]??null,'pageSize':_0x768085['pageSize']??null,'riskLevel':_0x768085[_0x1f7953(0x6c)]??null,'locale':_0x768085[_0x1f7953(0x96)]??null};}export function buildAppDoctorFields(_0x3f1e20,_0x382f0a){const _0x22c487=a206_0x392f5e;return{'env':{'value':_0x3f1e20[_0x22c487(0x89)]||_0x382f0a[_0x22c487(0x89)],'source':_0x3f1e20[_0x22c487(0x89)]?'app':'inherit'},'apiDir':{'value':_0x3f1e20[_0x22c487(0x8a)]||_0x382f0a[_0x22c487(0x8a)],'source':_0x3f1e20['apiDir']?_0x22c487(0x6f):_0x22c487(0x9b)},'cookie':{'value':_0x3f1e20['cookie']||_0x382f0a[_0x22c487(0x7a)],'source':_0x3f1e20['cookie']?_0x22c487(0x6f):_0x22c487(0x9b)},'accessKey':{'value':_0x3f1e20[_0x22c487(0x6b)]||_0x382f0a[_0x22c487(0x6b)],'source':_0x3f1e20[_0x22c487(0x6b)]?_0x22c487(0x6f):_0x22c487(0x9b)}};}export function buildCanonicalAppConfig(_0x31b2d6,_0x5c433d){const _0x36e009=a206_0x392f5e,_0x2ba11a=_0x31b2d6[_0x36e009(0x70)](_0x1da611=>String(_0x1da611||'')[_0x36e009(0x7b)]())[_0x36e009(0x97)](Boolean);if(_0x2ba11a[_0x36e009(0x83)]===0x0)return{};const _0x5a3046={};for(const _0x588fe4 of _0x2ba11a){_0x5a3046[_0x588fe4]=_0x5c433d?{'appcode':_0x588fe4,'env':_0x5c433d}:{'appcode':_0x588fe4};}return _0x2ba11a[_0x36e009(0x83)]>0x1?{'apps':_0x5a3046,'defaultApp':_0x2ba11a[0x0]}:{'apps':_0x5a3046};}export function normalizeStoredDefaultApp(_0x1789df,_0x5ba982){const _0x26a605=a206_0x392f5e,_0x53f31c=_0x1789df[_0x26a605(0x71)]&&typeof _0x1789df['apps']==='object'?_0x1789df[_0x26a605(0x71)]:{},_0x1567be=Object[_0x26a605(0x76)](_0x53f31c);if(_0x1567be['length']<=0x1)return delete _0x1789df['defaultApp'],undefined;const _0x12553e=typeof _0x1789df[_0x26a605(0x7d)]==='string'&&_0x53f31c[_0x1789df[_0x26a605(0x7d)]]?_0x1789df[_0x26a605(0x7d)]:undefined,_0x569392=_0x5ba982&&_0x53f31c[_0x5ba982]?_0x5ba982:_0x12553e;if(_0x569392)return _0x1789df[_0x26a605(0x7d)]=_0x569392,_0x569392;return delete _0x1789df[_0x26a605(0x7d)],undefined;}export function buildCanonicalProjectConfig(_0x320e7c,_0x433878){const _0x3b9118=a206_0x392f5e,{appCodes:appCodes=[],env:_0x31f583,metadata:_0x4922e0}=_0x433878,_0x278fb5={..._0x320e7c,..._0x4922e0||{}};delete _0x278fb5['appcode'],delete _0x278fb5['app'];if(_0x31f583)_0x278fb5[_0x3b9118(0x89)]=_0x31f583;else!_0x278fb5[_0x3b9118(0x89)]&&(_0x278fb5[_0x3b9118(0x89)]=DEFAULT_CONFIG_VALUES['env']);const _0xf38207=buildCanonicalAppConfig(appCodes,_0x278fb5['env']);if(Object[_0x3b9118(0x76)](_0xf38207)[_0x3b9118(0x83)]>0x0){_0x278fb5[_0x3b9118(0x71)]=_0xf38207[_0x3b9118(0x71)];if(_0xf38207[_0x3b9118(0x7d)])_0x278fb5['defaultApp']=_0xf38207[_0x3b9118(0x7d)];else delete _0x278fb5[_0x3b9118(0x7d)];}return _0x278fb5;}const LOCALE_MAP={'zh':a206_0x392f5e(0x7e),'zh-cn':a206_0x392f5e(0x7e),'zh_cn':a206_0x392f5e(0x7e),'en':a206_0x392f5e(0x7f),'en-us':a206_0x392f5e(0x7f),'en_us':a206_0x392f5e(0x7f)};export function normalizeLocale(_0x27014f){const _0x4b34ed=a206_0x392f5e;if(!_0x27014f)return null;return LOCALE_MAP[_0x27014f[_0x4b34ed(0x9a)]()]??null;}
@@ -1 +1 @@
1
- function a207_0x4ef2(_0x58c978,_0x5cd5d5){_0x58c978=_0x58c978-0xbf;const _0x28b571=a207_0x28b5();let _0x4ef2fc=_0x28b571[_0x58c978];return _0x4ef2fc;}const a207_0x3a7988=a207_0x4ef2;(function(_0x1a1cae,_0xdb141c){const _0x1486ce=a207_0x4ef2,_0x3a9334=_0x1a1cae();while(!![]){try{const _0x28086e=-parseInt(_0x1486ce(0xbf))/0x1+-parseInt(_0x1486ce(0xc6))/0x2*(-parseInt(_0x1486ce(0xc3))/0x3)+parseInt(_0x1486ce(0xc1))/0x4*(parseInt(_0x1486ce(0xc0))/0x5)+-parseInt(_0x1486ce(0xc5))/0x6+parseInt(_0x1486ce(0xc8))/0x7+-parseInt(_0x1486ce(0xca))/0x8+-parseInt(_0x1486ce(0xc2))/0x9*(parseInt(_0x1486ce(0xc4))/0xa);if(_0x28086e===_0xdb141c)break;else _0x3a9334['push'](_0x3a9334['shift']());}catch(_0x28ac95){_0x3a9334['push'](_0x3a9334['shift']());}}}(a207_0x28b5,0x8798b));export const RABETBASE_CDN_BASE_URL=a207_0x3a7988(0xc7);function a207_0x28b5(){const _0xa65f40=['71367qOufJj','10LWWPtL','2066304sQpLBR','64vVddNg','https://g.lovrabet.com/dist/rabetbase-cli','7389403nCIPZv','/templates/projects','1087032EYcdip','/config/index.json','73658WNuqsp','90oPMZrM','157252XqQEnL','12736683dnsICb'];a207_0x28b5=function(){return _0xa65f40;};return a207_0x28b5();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x3a7988(0xcb);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a207_0x3a7988(0xc9);
1
+ const a207_0x277949=a207_0x44d8;(function(_0x38db93,_0xa047af){const _0x38c680=a207_0x44d8,_0x2498e0=_0x38db93();while(!![]){try{const _0x9fa8b0=-parseInt(_0x38c680(0xa3))/0x1*(-parseInt(_0x38c680(0xa1))/0x2)+parseInt(_0x38c680(0xa0))/0x3+-parseInt(_0x38c680(0xa9))/0x4*(parseInt(_0x38c680(0xaa))/0x5)+-parseInt(_0x38c680(0xa8))/0x6+-parseInt(_0x38c680(0x9f))/0x7*(parseInt(_0x38c680(0xab))/0x8)+-parseInt(_0x38c680(0xa4))/0x9+-parseInt(_0x38c680(0xa7))/0xa*(-parseInt(_0x38c680(0xac))/0xb);if(_0x9fa8b0===_0xa047af)break;else _0x2498e0['push'](_0x2498e0['shift']());}catch(_0x5c45b3){_0x2498e0['push'](_0x2498e0['shift']());}}}(a207_0x2dab,0xe9c25));export const RABETBASE_CDN_BASE_URL=a207_0x277949(0xa6);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x277949(0xa2);function a207_0x44d8(_0x1117e3,_0x29b687){_0x1117e3=_0x1117e3-0x9f;const _0x2dabd0=a207_0x2dab();let _0x44d888=_0x2dabd0[_0x1117e3];return _0x44d888;}function a207_0x2dab(){const _0x5dbe75=['25riMSsz','11640sFMcVp','11mLZwSj','6986Skwjkz','4786134GDeGvR','58lbKMva','/config/index.json','41957akbiqp','11048571adZXnK','/templates/projects','https://g.lovrabet.com/dist/rabetbase-cli','20914020OTXwRA','1605852dOjvUq','798964SfamDO'];a207_0x2dab=function(){return _0x5dbe75;};return a207_0x2dab();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a207_0x277949(0xa5);
@@ -1 +1 @@
1
- const a208_0xcb46c1=a208_0x5a51;(function(_0x10c274,_0x4a05c5){const _0x46bd60=a208_0x5a51,_0x4560f0=_0x10c274();while(!![]){try{const _0x4b2a0f=parseInt(_0x46bd60(0x11f))/0x1*(parseInt(_0x46bd60(0x1a5))/0x2)+parseInt(_0x46bd60(0x19b))/0x3*(parseInt(_0x46bd60(0x145))/0x4)+parseInt(_0x46bd60(0x136))/0x5*(-parseInt(_0x46bd60(0x179))/0x6)+parseInt(_0x46bd60(0x172))/0x7*(-parseInt(_0x46bd60(0x166))/0x8)+-parseInt(_0x46bd60(0x132))/0x9*(parseInt(_0x46bd60(0x15b))/0xa)+parseInt(_0x46bd60(0x1a6))/0xb*(parseInt(_0x46bd60(0x128))/0xc)+-parseInt(_0x46bd60(0x165))/0xd*(-parseInt(_0x46bd60(0x14c))/0xe);if(_0x4b2a0f===_0x4a05c5)break;else _0x4560f0['push'](_0x4560f0['shift']());}catch(_0x4034e0){_0x4560f0['push'](_0x4560f0['shift']());}}}(a208_0x3763,0xb7930));function a208_0x3763(){const _0x4e084d=['non-interactive','stdin','page','4457630ZLgUao','Keyword\x20filter','expected-count','description-file','Menu\x20label','<expr>','string','Expected\x20current\x20menu\x20path','map','Preview\x20operation\x20without\x20executing','73905VyRJBv','1416mfFYSi','sqlName','Expected\x20affected\x20count','name','dbid','dry-run','Title','parent-id','operation','nonInteractive','Skip\x20import\x20generation','expectParentId','4445DYVJwW','expectedCount','menu-ids','value','json\x20|\x20pretty\x20|\x20compress','Output\x20format','taskId','6522oRIDNH','target','Use\x20project\x20config\x20scope','locale','watch','functionNode','Name','env','Use\x20remote','global','Description\x20file','Target\x20path','from-env','schemas','Operation\x20type','Tags','sql-name','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','force','appcode','key','Schemas','db-id','app','datasetcode','code','sqlcode','Page\x20number','Select\x20app\x20profile\x20by\x20name','skipImports','operation-type','topk','enable-bff-save','Comma-separated\x20menu\x20IDs','273KZcXfj','remote','Code\x20filter','sql','dbId','Read\x20value\x20from\x20stdin','Verbose\x20output','function-node','parentId','project','4teznyo','99muRhqR','tags','label','SQL\x20string','64373wMJjUH','params','reveal','SQL\x20code','Expected\x20current\x20child\x20count','Parent\x20menu\x20id','expectedChildrenCount','Force\x20non-interactive\x20mode\x20(CI)','pagesize','1013076Tdcpse','keyword','Watch\x20mode','clear','file','boolean','verbose','sqlname','fromEntries','title','9FdeazT','fromEnv','@lovrabet/rabetbase-cli','zh-CN\x20|\x20en-US','5685YjbHke','description','Search\x20query','Expected\x20current\x20parent\x20menu\x20id','<name>','Environment','expect-path','Description','Asynchronous\x20task\x20ID','yes','expect-parent-id','Maximum\x20search\x20hits','output','Output\x20path','operationType','1636HGxOdJ','help','File\x20path','Alias\x20for\x20--non-interactive','rabetbase','format','Show\x20help','3990XlyIVk','descriptionFile','enableBffSave','all','task-id','type','SQL\x20name','Use\x20global\x20config\x20scope','query','Apply\x20to\x20all','DB\x20ID','Reveal\x20sensitive\x20value'];a208_0x3763=function(){return _0x4e084d;};return a208_0x3763();}export const CLI_BIN_NAME=a208_0xcb46c1(0x149);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';function a208_0x5a51(_0x4c4b21,_0x574736){_0x4c4b21=_0x4c4b21-0x11d;const _0x37639f=a208_0x3763();let _0x5a514f=_0x37639f[_0x4c4b21];return _0x5a514f;}export const NPM_PACKAGE_NAME=a208_0xcb46c1(0x134);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a208_0xcb46c1(0x18c),'type':a208_0xcb46c1(0x161),'description':'Override\x20appcode','hint':'<code>'},{'name':a208_0xcb46c1(0x190),'meowKey':a208_0xcb46c1(0x190),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x195),'hint':a208_0xcb46c1(0x13a)},{'name':a208_0xcb46c1(0x180),'meowKey':a208_0xcb46c1(0x180),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13b),'hint':'production\x20|\x20daily'},{'name':a208_0xcb46c1(0x14a),'meowKey':'format','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x177),'hint':a208_0xcb46c1(0x176)},{'name':'jq','meowKey':'jq','type':a208_0xcb46c1(0x161),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a208_0xcb46c1(0x160)},{'name':a208_0xcb46c1(0x16b),'meowKey':'dryRun','type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x164)},{'name':'yes','meowKey':a208_0xcb46c1(0x13f),'type':a208_0xcb46c1(0x12d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a208_0xcb46c1(0x158),'meowKey':a208_0xcb46c1(0x16f),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x126)},{'name':a208_0xcb46c1(0x182),'meowKey':a208_0xcb46c1(0x182),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x153)},{'name':a208_0xcb46c1(0x1a4),'meowKey':a208_0xcb46c1(0x1a4),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x17b)},{'name':'ci','meowKey':'ci','type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x148),'hidden':!![]},{'name':a208_0xcb46c1(0x146),'meowKey':a208_0xcb46c1(0x146),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x14b)},{'name':a208_0xcb46c1(0x17c),'meowKey':a208_0xcb46c1(0x17c),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x18a),'hidden':!![],'hint':a208_0xcb46c1(0x135)},{'name':'name','meowKey':a208_0xcb46c1(0x169),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x17f),'hidden':!![]},{'name':a208_0xcb46c1(0x131),'meowKey':'title','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x16c),'hidden':!![]},{'name':a208_0xcb46c1(0x154),'meowKey':'query','type':'string','description':a208_0xcb46c1(0x138),'hidden':!![]},{'name':a208_0xcb46c1(0x198),'meowKey':a208_0xcb46c1(0x198),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x141),'hidden':!![]},{'name':'clear','meowKey':a208_0xcb46c1(0x12b),'type':a208_0xcb46c1(0x12d),'description':'Clear','hidden':!![]},{'name':a208_0xcb46c1(0x17d),'meowKey':a208_0xcb46c1(0x17d),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x12a),'hidden':!![]},{'name':a208_0xcb46c1(0x142),'meowKey':a208_0xcb46c1(0x142),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x143),'hidden':!![]},{'name':'params','meowKey':a208_0xcb46c1(0x120),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a208_0xcb46c1(0x191),'meowKey':a208_0xcb46c1(0x191),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a208_0xcb46c1(0x14f),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x155),'hidden':!![]},{'name':a208_0xcb46c1(0x199),'meowKey':a208_0xcb46c1(0x14e),'type':a208_0xcb46c1(0x12d),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a208_0xcb46c1(0x161),'description':'Record\x20ID','hidden':!![]},{'name':a208_0xcb46c1(0x151),'meowKey':a208_0xcb46c1(0x151),'type':a208_0xcb46c1(0x161),'description':'Type\x20filter','hidden':!![]},{'name':a208_0xcb46c1(0x12c),'meowKey':a208_0xcb46c1(0x12c),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x147),'hidden':!![]},{'name':a208_0xcb46c1(0x193),'meowKey':'sqlcode','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x122),'hidden':!![]},{'name':a208_0xcb46c1(0x189),'meowKey':a208_0xcb46c1(0x167),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x152),'hidden':!![]},{'name':a208_0xcb46c1(0x12f),'meowKey':'sqlname','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x152),'hidden':!![]},{'name':a208_0xcb46c1(0x18f),'meowKey':a208_0xcb46c1(0x19f),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x156),'hidden':!![]},{'name':a208_0xcb46c1(0x16a),'meowKey':a208_0xcb46c1(0x16a),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x156),'hidden':!![]},{'name':a208_0xcb46c1(0x137),'meowKey':a208_0xcb46c1(0x137),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13d),'hidden':!![]},{'name':a208_0xcb46c1(0x15e),'meowKey':a208_0xcb46c1(0x14d),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x183),'hidden':!![]},{'name':a208_0xcb46c1(0x15a),'meowKey':'page','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x194),'hidden':!![]},{'name':a208_0xcb46c1(0x127),'meowKey':a208_0xcb46c1(0x127),'type':a208_0xcb46c1(0x161),'description':'Page\x20size','hidden':!![]},{'name':a208_0xcb46c1(0x129),'meowKey':a208_0xcb46c1(0x129),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x15c),'hidden':!![]},{'name':a208_0xcb46c1(0x192),'meowKey':a208_0xcb46c1(0x192),'type':'string','description':a208_0xcb46c1(0x19d),'hidden':!![]},{'name':a208_0xcb46c1(0x19e),'meowKey':'sql','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x11e),'hidden':!![]},{'name':'schemas','meowKey':a208_0xcb46c1(0x186),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x18e),'hidden':!![]},{'name':a208_0xcb46c1(0x16e),'meowKey':'operation','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x187),'hidden':!![]},{'name':a208_0xcb46c1(0x17a),'meowKey':a208_0xcb46c1(0x17a),'type':'string','description':a208_0xcb46c1(0x184),'hidden':!![]},{'name':'skip-imports','meowKey':a208_0xcb46c1(0x196),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x170),'hidden':!![]},{'name':a208_0xcb46c1(0x18d),'meowKey':a208_0xcb46c1(0x18d),'type':a208_0xcb46c1(0x161),'description':'Config\x20key','hidden':!![]},{'name':a208_0xcb46c1(0x175),'meowKey':'value','type':a208_0xcb46c1(0x161),'description':'Config\x20value','hidden':!![]},{'name':a208_0xcb46c1(0x1a7),'meowKey':'tags','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x188),'hidden':!![]},{'name':a208_0xcb46c1(0x159),'meowKey':a208_0xcb46c1(0x159),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x1a0),'hidden':!![]},{'name':a208_0xcb46c1(0x185),'meowKey':a208_0xcb46c1(0x133),'type':a208_0xcb46c1(0x161),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0xcb46c1(0x121),'meowKey':a208_0xcb46c1(0x121),'type':'boolean','description':a208_0xcb46c1(0x157),'hidden':!![]},{'name':a208_0xcb46c1(0x18b),'meowKey':a208_0xcb46c1(0x18b),'type':a208_0xcb46c1(0x12d),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a208_0xcb46c1(0x19c),'type':'boolean','description':a208_0xcb46c1(0x181),'hidden':!![]},{'name':'verbose','meowKey':a208_0xcb46c1(0x12e),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x1a1),'hidden':!![]},{'name':a208_0xcb46c1(0x15d),'meowKey':a208_0xcb46c1(0x173),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x168),'hidden':!![]},{'name':'label','meowKey':a208_0xcb46c1(0x11d),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x15f),'hidden':!![]},{'name':a208_0xcb46c1(0x16d),'meowKey':a208_0xcb46c1(0x1a3),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x124),'hidden':!![]},{'name':'sort','meowKey':'sort','type':a208_0xcb46c1(0x161),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a208_0xcb46c1(0x140),'meowKey':a208_0xcb46c1(0x171),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x139),'hidden':!![]},{'name':a208_0xcb46c1(0x13c),'meowKey':'expectPath','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x162),'hidden':!![]},{'name':'expected-children-count','meowKey':a208_0xcb46c1(0x125),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x123),'hidden':!![]},{'name':a208_0xcb46c1(0x174),'meowKey':'menuIds','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x19a),'hidden':!![]},{'name':a208_0xcb46c1(0x150),'meowKey':a208_0xcb46c1(0x178),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13e),'hidden':!![]},{'name':a208_0xcb46c1(0x197),'meowKey':a208_0xcb46c1(0x144),'type':'string','description':a208_0xcb46c1(0x187),'hidden':!![]},{'name':a208_0xcb46c1(0x1a2),'meowKey':a208_0xcb46c1(0x17e),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a208_0xcb46c1(0x18c),a208_0xcb46c1(0x190),a208_0xcb46c1(0x180),'format','jq','dry-run',a208_0xcb46c1(0x13f),a208_0xcb46c1(0x158),'ci']);export function buildMeowFlags(){const _0x1cd5b6=a208_0xcb46c1;return Object[_0x1cd5b6(0x130)](GLOBAL_FLAGS[_0x1cd5b6(0x163)](_0x1e0468=>[_0x1e0468['meowKey'],{'type':_0x1e0468[_0x1cd5b6(0x151)]}]));}
1
+ const a208_0x3ffdc2=a208_0x428b;(function(_0x1bf91c,_0x6b6cc1){const _0x572894=a208_0x428b,_0x2dfe9b=_0x1bf91c();while(!![]){try{const _0x508c86=-parseInt(_0x572894(0x1eb))/0x1*(parseInt(_0x572894(0x22a))/0x2)+-parseInt(_0x572894(0x260))/0x3+-parseInt(_0x572894(0x245))/0x4*(-parseInt(_0x572894(0x1e0))/0x5)+parseInt(_0x572894(0x217))/0x6*(-parseInt(_0x572894(0x20b))/0x7)+parseInt(_0x572894(0x236))/0x8+-parseInt(_0x572894(0x23d))/0x9+parseInt(_0x572894(0x23e))/0xa;if(_0x508c86===_0x6b6cc1)break;else _0x2dfe9b['push'](_0x2dfe9b['shift']());}catch(_0x27b015){_0x2dfe9b['push'](_0x2dfe9b['shift']());}}}(a208_0x29ce,0x2a00a));function a208_0x29ce(){const _0x20b63d=['App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','map','Record\x20ID','label','description-file','1454616aZCrgZ','5367650hIcLlC','expect-path','@lovrabet/rabetbase-cli','Output\x20format','expectParentId','appcode','fromEnv','4MqFmhU','menu-ids','Environment','nonInteractive','non-interactive','key','env','Target\x20path','function-node','sql-name','menuIds','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20stdin','Enable\x20Backend\x20Function\x20save','<code>','parent-id','verbose','sql','descriptionFile','expectedChildrenCount','target','Menu\x20label','skip-imports','topk','locale','operation','file','911805YlLkvb','Search\x20query','type','dbid','skipImports','query','Use\x20remote','1677685tsayqn','string','yes','name','Use\x20project\x20config\x20scope','taskId','stdin','fromEntries','SQL\x20name','Keyword\x20filter','value','263137uexCbq','code','Show\x20help','Config\x20key','force','clear','DB\x20ID','expected-count','output','global','rabetbase','Tags','params','SQL\x20string','description','dry-run','page','dryRun','format','Type\x20filter','pagesize','all','datasetcode','Expected\x20current\x20parent\x20menu\x20id','Apply\x20to\x20all','boolean','json\x20|\x20pretty\x20|\x20compress','Expected\x20affected\x20count','Watch\x20mode','keyword','tags','reveal','1181467IuoBoj','Menu\x20sort\x20value','dbId','sqlname','Maximum\x20search\x20hits','confirm','title','Select\x20app\x20profile\x20by\x20name','expectedCount','JSON\x20params','Output\x20path','Dataset\x20code','6ThwPYh','Force\x20overwrite','Reveal\x20sensitive\x20value','Description\x20file','sort','app','operation-type','zh-CN\x20|\x20en-US','Page\x20number','Preview\x20operation\x20without\x20executing','remote','Schemas','help','functionNode','enable-bff-save','production\x20|\x20daily','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20import\x20generation','Name','2QdMpFl','Rabetbase\x20CLI','expectPath','schemas','Operation\x20type','File\x20path','Asynchronous\x20task\x20ID','Comma-separated\x20menu\x20IDs','watch','Code\x20filter','sqlcode','task-id','1577736rTsWJI','Override\x20appcode'];a208_0x29ce=function(){return _0x20b63d;};return a208_0x29ce();}export const CLI_BIN_NAME=a208_0x3ffdc2(0x1f5);export const CLI_DISPLAY_NAME=a208_0x3ffdc2(0x22b);function a208_0x428b(_0x1717ed,_0x324844){_0x1717ed=_0x1717ed-0x1da;const _0x29ce16=a208_0x29ce();let _0x428b01=_0x29ce16[_0x1717ed];return _0x428b01;}export const NPM_PACKAGE_NAME=a208_0x3ffdc2(0x240);export const GLOBAL_FLAGS=[{'name':a208_0x3ffdc2(0x243),'meowKey':a208_0x3ffdc2(0x243),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x237),'hint':a208_0x3ffdc2(0x253)},{'name':a208_0x3ffdc2(0x21c),'meowKey':'app','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x212),'hint':'<name>'},{'name':'env','meowKey':a208_0x3ffdc2(0x24b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x247),'hint':a208_0x3ffdc2(0x226)},{'name':a208_0x3ffdc2(0x1fd),'meowKey':a208_0x3ffdc2(0x1fd),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x241),'hint':a208_0x3ffdc2(0x205)},{'name':'jq','meowKey':'jq','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x250),'hint':'<expr>'},{'name':a208_0x3ffdc2(0x1fa),'meowKey':a208_0x3ffdc2(0x1fc),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x220)},{'name':a208_0x3ffdc2(0x1e2),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a208_0x3ffdc2(0x248),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x227)},{'name':a208_0x3ffdc2(0x1f4),'meowKey':a208_0x3ffdc2(0x1f4),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1e4)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a208_0x3ffdc2(0x223),'meowKey':'help','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1ed)},{'name':a208_0x3ffdc2(0x25d),'meowKey':a208_0x3ffdc2(0x25d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x238),'hidden':!![],'hint':a208_0x3ffdc2(0x21e)},{'name':a208_0x3ffdc2(0x1e3),'meowKey':'name','type':'string','description':a208_0x3ffdc2(0x229),'hidden':!![]},{'name':a208_0x3ffdc2(0x211),'meowKey':a208_0x3ffdc2(0x211),'type':a208_0x3ffdc2(0x1e1),'description':'Title','hidden':!![]},{'name':a208_0x3ffdc2(0x1de),'meowKey':a208_0x3ffdc2(0x1de),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1da),'hidden':!![]},{'name':a208_0x3ffdc2(0x25c),'meowKey':'topk','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x20f),'hidden':!![]},{'name':'clear','meowKey':a208_0x3ffdc2(0x1f0),'type':a208_0x3ffdc2(0x204),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a208_0x3ffdc2(0x232),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x207),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f3),'meowKey':'output','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x215),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f7),'meowKey':'params','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x214),'hidden':!![]},{'name':a208_0x3ffdc2(0x201),'meowKey':a208_0x3ffdc2(0x201),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x216),'hidden':!![]},{'name':'all','meowKey':a208_0x3ffdc2(0x200),'type':'boolean','description':a208_0x3ffdc2(0x203),'hidden':!![]},{'name':a208_0x3ffdc2(0x225),'meowKey':'enableBffSave','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x252),'hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x23a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1db),'meowKey':a208_0x3ffdc2(0x1db),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1fe),'hidden':!![]},{'name':'file','meowKey':a208_0x3ffdc2(0x25f),'type':'string','description':a208_0x3ffdc2(0x22f),'hidden':!![]},{'name':a208_0x3ffdc2(0x234),'meowKey':a208_0x3ffdc2(0x234),'type':a208_0x3ffdc2(0x1e1),'description':'SQL\x20code','hidden':!![]},{'name':a208_0x3ffdc2(0x24e),'meowKey':'sqlName','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'sqlname','meowKey':a208_0x3ffdc2(0x20e),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'db-id','meowKey':a208_0x3ffdc2(0x20d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1dc),'meowKey':a208_0x3ffdc2(0x1dc),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f9),'meowKey':'description','type':a208_0x3ffdc2(0x1e1),'description':'Description','hidden':!![]},{'name':a208_0x3ffdc2(0x23c),'meowKey':a208_0x3ffdc2(0x257),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1fb),'meowKey':a208_0x3ffdc2(0x1fb),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21f),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ff),'meowKey':'pagesize','type':a208_0x3ffdc2(0x1e1),'description':'Page\x20size','hidden':!![]},{'name':a208_0x3ffdc2(0x208),'meowKey':a208_0x3ffdc2(0x208),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e9),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ec),'meowKey':a208_0x3ffdc2(0x1ec),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x233),'hidden':!![]},{'name':a208_0x3ffdc2(0x256),'meowKey':'sql','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f8),'hidden':!![]},{'name':a208_0x3ffdc2(0x22d),'meowKey':a208_0x3ffdc2(0x22d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x222),'hidden':!![]},{'name':'operation','meowKey':a208_0x3ffdc2(0x25e),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a208_0x3ffdc2(0x259),'meowKey':'target','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x24c),'hidden':!![]},{'name':a208_0x3ffdc2(0x25b),'meowKey':a208_0x3ffdc2(0x1dd),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x228),'hidden':!![]},{'name':a208_0x3ffdc2(0x24a),'meowKey':a208_0x3ffdc2(0x24a),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1ee),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ea),'meowKey':a208_0x3ffdc2(0x1ea),'type':a208_0x3ffdc2(0x1e1),'description':'Config\x20value','hidden':!![]},{'name':a208_0x3ffdc2(0x209),'meowKey':a208_0x3ffdc2(0x209),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f6),'hidden':!![]},{'name':a208_0x3ffdc2(0x1e6),'meowKey':'stdin','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x251),'hidden':!![]},{'name':'from-env','meowKey':a208_0x3ffdc2(0x244),'type':a208_0x3ffdc2(0x1e1),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0x3ffdc2(0x20a),'meowKey':a208_0x3ffdc2(0x20a),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x219),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ef),'meowKey':'force','type':'boolean','description':a208_0x3ffdc2(0x218),'hidden':!![]},{'name':a208_0x3ffdc2(0x210),'meowKey':a208_0x3ffdc2(0x210),'type':a208_0x3ffdc2(0x204),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a208_0x3ffdc2(0x221),'meowKey':a208_0x3ffdc2(0x221),'type':'boolean','description':a208_0x3ffdc2(0x1df),'hidden':!![]},{'name':a208_0x3ffdc2(0x255),'meowKey':a208_0x3ffdc2(0x255),'type':a208_0x3ffdc2(0x204),'description':'Verbose\x20output','hidden':!![]},{'name':a208_0x3ffdc2(0x1f2),'meowKey':a208_0x3ffdc2(0x213),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x206),'hidden':!![]},{'name':a208_0x3ffdc2(0x23b),'meowKey':a208_0x3ffdc2(0x23b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x25a),'hidden':!![]},{'name':a208_0x3ffdc2(0x254),'meowKey':'parentId','type':a208_0x3ffdc2(0x1e1),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a208_0x3ffdc2(0x21b),'meowKey':a208_0x3ffdc2(0x21b),'type':'string','description':a208_0x3ffdc2(0x20c),'hidden':!![]},{'name':'expect-parent-id','meowKey':a208_0x3ffdc2(0x242),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x202),'hidden':!![]},{'name':a208_0x3ffdc2(0x23f),'meowKey':a208_0x3ffdc2(0x22c),'type':a208_0x3ffdc2(0x1e1),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a208_0x3ffdc2(0x258),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a208_0x3ffdc2(0x246),'meowKey':a208_0x3ffdc2(0x24f),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x231),'hidden':!![]},{'name':a208_0x3ffdc2(0x235),'meowKey':a208_0x3ffdc2(0x1e5),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x230),'hidden':!![]},{'name':a208_0x3ffdc2(0x21d),'meowKey':'operationType','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x22e),'hidden':!![]},{'name':a208_0x3ffdc2(0x24d),'meowKey':a208_0x3ffdc2(0x224),'type':a208_0x3ffdc2(0x1e1),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a208_0x3ffdc2(0x21c),a208_0x3ffdc2(0x24b),a208_0x3ffdc2(0x1fd),'jq',a208_0x3ffdc2(0x1fa),a208_0x3ffdc2(0x1e2),a208_0x3ffdc2(0x249),'ci']);export function buildMeowFlags(){const _0x213eed=a208_0x3ffdc2;return Object[_0x213eed(0x1e7)](GLOBAL_FLAGS[_0x213eed(0x239)](_0x22fc68=>[_0x22fc68['meowKey'],{'type':_0x22fc68[_0x213eed(0x1db)]}]));}
@@ -1 +1 @@
1
- function a209_0x16ec(_0x492152,_0x2fa1be){_0x492152=_0x492152-0xdc;const _0x3b96d4=a209_0x3b96();let _0x16ecaa=_0x3b96d4[_0x492152];return _0x16ecaa;}const a209_0x58af6f=a209_0x16ec;(function(_0x1981c2,_0x393589){const _0x57d4a1=a209_0x16ec,_0x8b494d=_0x1981c2();while(!![]){try{const _0x43bb74=-parseInt(_0x57d4a1(0xe0))/0x1*(-parseInt(_0x57d4a1(0xdf))/0x2)+-parseInt(_0x57d4a1(0xe8))/0x3+parseInt(_0x57d4a1(0xe4))/0x4*(parseInt(_0x57d4a1(0xe2))/0x5)+parseInt(_0x57d4a1(0xdc))/0x6+-parseInt(_0x57d4a1(0xe9))/0x7+-parseInt(_0x57d4a1(0xe3))/0x8*(-parseInt(_0x57d4a1(0xe5))/0x9)+-parseInt(_0x57d4a1(0xdd))/0xa;if(_0x43bb74===_0x393589)break;else _0x8b494d['push'](_0x8b494d['shift']());}catch(_0x107902){_0x8b494d['push'](_0x8b494d['shift']());}}}(a209_0x3b96,0xbc53f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x58af6f(0xe7),'format':a209_0x58af6f(0xe1),'locale':a209_0x58af6f(0xde),'riskLevel':a209_0x58af6f(0xe6),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a209_0x3b96(){const _0x33dc8a=['6679584ZDEvEk','1994720cZnEma','en-US','234566ObeMcd','7CteTIH','compress','66455HVKmDd','32fQEKFC','236pQKoIX','1843173Ohyeew','write','production','3881619JZUJVM','8910062cXkfgl'];a209_0x3b96=function(){return _0x33dc8a;};return a209_0x3b96();}
1
+ const a209_0x56a855=a209_0x309a;(function(_0x5cedc0,_0x5ef5e6){const _0x25ff0a=a209_0x309a,_0x5db56e=_0x5cedc0();while(!![]){try{const _0xbcfee7=parseInt(_0x25ff0a(0x93))/0x1*(parseInt(_0x25ff0a(0x92))/0x2)+-parseInt(_0x25ff0a(0x9c))/0x3+parseInt(_0x25ff0a(0x96))/0x4+parseInt(_0x25ff0a(0x90))/0x5+-parseInt(_0x25ff0a(0x91))/0x6*(parseInt(_0x25ff0a(0x9a))/0x7)+parseInt(_0x25ff0a(0x97))/0x8*(-parseInt(_0x25ff0a(0x9b))/0x9)+parseInt(_0x25ff0a(0x9d))/0xa;if(_0xbcfee7===_0x5ef5e6)break;else _0x5db56e['push'](_0x5db56e['shift']());}catch(_0xc413e){_0x5db56e['push'](_0x5db56e['shift']());}}}(a209_0x5f02,0xcfbc6));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x56a855(0x99),'format':a209_0x56a855(0x94),'locale':a209_0x56a855(0x98),'riskLevel':a209_0x56a855(0x95),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a209_0x56a855(0x94);function a209_0x309a(_0x1be47e,_0x3582c4){_0x1be47e=_0x1be47e-0x90;const _0x5f0212=a209_0x5f02();let _0x309af2=_0x5f0212[_0x1be47e];return _0x309af2;}function a209_0x5f02(){const _0x2de26f=['production','770980CdyeWi','18ADNVwi','1760619WJEsiO','7332850dLjUsQ','2147865BdQKdI','30aAvloE','17292VdlLKv','97yLaAfl','compress','write','3544764wmbbUd','3597008bXRGbQ','en-US'];a209_0x5f02=function(){return _0x2de26f;};return a209_0x5f02();}
@@ -1 +1 @@
1
- const a210_0x2e405b=a210_0x4a77;(function(_0x4379ad,_0x57a945){const _0x132736=a210_0x4a77,_0x42b4b3=_0x4379ad();while(!![]){try{const _0x3511ea=-parseInt(_0x132736(0x1e8))/0x1+parseInt(_0x132736(0x1e9))/0x2*(parseInt(_0x132736(0x1d7))/0x3)+parseInt(_0x132736(0x1e7))/0x4+parseInt(_0x132736(0x1ea))/0x5+parseInt(_0x132736(0x1c7))/0x6+-parseInt(_0x132736(0x1d4))/0x7*(-parseInt(_0x132736(0x1e3))/0x8)+parseInt(_0x132736(0x1c5))/0x9*(-parseInt(_0x132736(0x1d2))/0xa);if(_0x3511ea===_0x57a945)break;else _0x42b4b3['push'](_0x42b4b3['shift']());}catch(_0x321f6c){_0x42b4b3['push'](_0x42b4b3['shift']());}}}(a210_0x57fa,0xa61b6));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a210_0x57fa(){const _0x4b1f9b=['https://user.lovrabet.ai','skillDomain','user','trim','/app/','https://user.lovrabet.com','https://daily-runtime.lovrabet.ai','app','6456830uCVxuI','https://skills.lovrabet.com','2910348ZmgnaZ','nonProduction','https://daily.lovrabet.ai','3DDbDzZ','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.id','https://daily-runtime.lovrabet.com','hostname','runtimeDomain','https://daily.lovrabet.com','https://app.lovrabet.ai','https://skills-daily.lovrabet.id','https://skills-daily.lovrabet.com','https://skills-daily.lovrabet.ai','https://skills.lovrabet.ai','16rMntOi','https://api.lovrabet.ai','https://runtime.lovrabet.com','https://user-daily.lovrabet.id','402496GDLphW','906156WLcRFb','1205320VvsyiP','5438930lCrEyI','https://user.lovrabet.id','/web-app/app/','https://api.lovrabet.id','global','https://api.lovrabet.com','https://app.lovrabet.com','https://daily-api.lovrabet.ai','appDomain','skill','27hyRCbB','https://runtime.lovrabet.ai','5405886fvCHsQ','kbDomain','https://runtime.lovrabet.id'];a210_0x57fa=function(){return _0x4b1f9b;};return a210_0x57fa();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a210_0x2e405b(0x1cf),'api':a210_0x2e405b(0x1c0),'runtime':a210_0x2e405b(0x1e5),'skill':a210_0x2e405b(0x1d3),'kb':a210_0x2e405b(0x1e5),'app':a210_0x2e405b(0x1c1)},'nonProduction':{'user':a210_0x2e405b(0x1d8),'api':'https://daily-api.lovrabet.com','runtime':a210_0x2e405b(0x1da),'skill':a210_0x2e405b(0x1e0),'kb':'https://daily-runtime.lovrabet.com','app':a210_0x2e405b(0x1dd)}},'id':{'production':{'user':a210_0x2e405b(0x1eb),'api':a210_0x2e405b(0x1be),'runtime':a210_0x2e405b(0x1c9),'skill':'https://skills.lovrabet.id','kb':a210_0x2e405b(0x1c9),'app':'https://app.lovrabet.id'},'nonProduction':{'user':a210_0x2e405b(0x1e6),'api':'https://daily-api.lovrabet.id','runtime':a210_0x2e405b(0x1d9),'skill':a210_0x2e405b(0x1df),'kb':a210_0x2e405b(0x1d9),'app':'https://daily.lovrabet.id'}},'global':{'production':{'user':a210_0x2e405b(0x1ca),'api':a210_0x2e405b(0x1e4),'runtime':a210_0x2e405b(0x1c6),'skill':a210_0x2e405b(0x1e2),'kb':a210_0x2e405b(0x1c6),'app':a210_0x2e405b(0x1de)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a210_0x2e405b(0x1c2),'runtime':a210_0x2e405b(0x1d0),'skill':a210_0x2e405b(0x1e1),'kb':'https://daily-runtime.lovrabet.ai','app':a210_0x2e405b(0x1d6)}}};function getActiveRegionDomains(){const _0x2a5f3f=a210_0x2e405b;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?'production':_0x2a5f3f(0x1d5)];}export function initDomains(_0x553e9d){const _0x18bfe=a210_0x2e405b;customApiDomain=_0x553e9d?.['apiDomain'],customUserDomain=_0x553e9d?.['userDomain'],customRuntimeDomain=_0x553e9d?.[_0x18bfe(0x1dc)],customSkillDomain=_0x553e9d?.[_0x18bfe(0x1cb)],customKbDomain=_0x553e9d?.[_0x18bfe(0x1c8)],customAppDomain=_0x553e9d?.[_0x18bfe(0x1c3)],activeRegion=_0x553e9d?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a210_0x2e405b(0x1cc)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a210_0x2e405b(0x1c4)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a210_0x2e405b(0x1d1)];export const getActiveRegion=()=>activeRegion;function a210_0x4a77(_0x123b61,_0x5c2a6b){_0x123b61=_0x123b61-0x1be;const _0x57fa31=a210_0x57fa();let _0x4a774b=_0x57fa31[_0x123b61];return _0x4a774b;}export function getSdkClientRoutingConfig(){const _0x20f67a=a210_0x2e405b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x20f67a(0x1bf))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x28fdd2=>{const _0x717309=a210_0x2e405b,_0x2bebea=encodeURIComponent(_0x28fdd2[_0x717309(0x1cd)]());return isProduction(getEnv())?getAppDomain()+_0x717309(0x1ce)+_0x2bebea:getAppDomain()+_0x717309(0x1ec)+_0x2bebea;};export const getPublishedAppDomain=_0x5cce04=>{const _0x33d787=a210_0x2e405b,_0x442d4f=new URL(getAppDomain());return _0x442d4f['hostname']=_0x5cce04[_0x33d787(0x1cd)]()+'.'+_0x442d4f[_0x33d787(0x1db)],_0x442d4f['origin'];};
1
+ const a210_0x19f11a=a210_0x4da4;(function(_0x341781,_0x2f2e7b){const _0x4f4570=a210_0x4da4,_0x58dda5=_0x341781();while(!![]){try{const _0x157a28=-parseInt(_0x4f4570(0x164))/0x1+parseInt(_0x4f4570(0x177))/0x2+parseInt(_0x4f4570(0x16e))/0x3*(-parseInt(_0x4f4570(0x16d))/0x4)+-parseInt(_0x4f4570(0x167))/0x5+-parseInt(_0x4f4570(0x16a))/0x6*(parseInt(_0x4f4570(0x174))/0x7)+parseInt(_0x4f4570(0x182))/0x8+parseInt(_0x4f4570(0x179))/0x9;if(_0x157a28===_0x2f2e7b)break;else _0x58dda5['push'](_0x58dda5['shift']());}catch(_0x41a781){_0x58dda5['push'](_0x58dda5['shift']());}}}(a210_0x17b1,0xa3e8b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a210_0x17b1(){const _0x33a8d9=['6926816KrCFoU','userDomain','https://app.lovrabet.ai','https://daily.lovrabet.id','global','https://daily-api.lovrabet.ai','https://runtime.lovrabet.id','https://daily-api.lovrabet.com','https://user.lovrabet.ai','https://user.lovrabet.com','nonProduction','trim','app','https://api.lovrabet.ai','https://daily.lovrabet.com','https://user-daily.lovrabet.id','https://skills-daily.lovrabet.ai','364273qthmYv','skill','https://app.lovrabet.com','5739405wSVWjD','https://skills.lovrabet.ai','https://daily-api.lovrabet.id','552234xOkDWF','https://runtime.lovrabet.com','apiDomain','652YZYuBp','11073pGbjKa','origin','hostname','https://daily-runtime.lovrabet.ai','skillDomain','https://daily.lovrabet.ai','98TovbCD','https://skills-daily.lovrabet.com','/web-app/app/','1855322mOaOws','https://app.lovrabet.id','20521719fJInmY','appDomain','https://api.lovrabet.id','runtimeDomain','https://user.lovrabet.id','user','/app/','runtime','api'];a210_0x17b1=function(){return _0x33a8d9;};return a210_0x17b1();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a210_0x19f11a(0x15c),'api':'https://api.lovrabet.com','runtime':a210_0x19f11a(0x16b),'skill':'https://skills.lovrabet.com','kb':'https://api.lovrabet.com','app':a210_0x19f11a(0x166)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a210_0x19f11a(0x15a),'runtime':'https://daily-runtime.lovrabet.com','skill':a210_0x19f11a(0x175),'kb':a210_0x19f11a(0x15a),'app':a210_0x19f11a(0x161)}},'id':{'production':{'user':a210_0x19f11a(0x17d),'api':a210_0x19f11a(0x17b),'runtime':a210_0x19f11a(0x159),'skill':'https://skills.lovrabet.id','kb':a210_0x19f11a(0x17b),'app':a210_0x19f11a(0x178)},'nonProduction':{'user':a210_0x19f11a(0x162),'api':a210_0x19f11a(0x169),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':a210_0x19f11a(0x169),'app':a210_0x19f11a(0x185)}},'global':{'production':{'user':a210_0x19f11a(0x15b),'api':a210_0x19f11a(0x160),'runtime':'https://runtime.lovrabet.ai','skill':a210_0x19f11a(0x168),'kb':'https://api.lovrabet.ai','app':a210_0x19f11a(0x184)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a210_0x19f11a(0x158),'runtime':a210_0x19f11a(0x171),'skill':a210_0x19f11a(0x163),'kb':a210_0x19f11a(0x158),'app':a210_0x19f11a(0x173)}}};function getActiveRegionDomains(){const _0x424f52=a210_0x19f11a;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?'production':_0x424f52(0x15d)];}export function initDomains(_0x18def2){const _0x4b6f7a=a210_0x19f11a;customApiDomain=_0x18def2?.[_0x4b6f7a(0x16c)],customUserDomain=_0x18def2?.[_0x4b6f7a(0x183)],customRuntimeDomain=_0x18def2?.[_0x4b6f7a(0x17c)],customSkillDomain=_0x18def2?.[_0x4b6f7a(0x172)],customKbDomain=_0x18def2?.['kbDomain'],customAppDomain=_0x18def2?.[_0x4b6f7a(0x17a)],activeRegion=_0x18def2?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a210_0x19f11a(0x17e)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a210_0x19f11a(0x181)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a210_0x19f11a(0x165)];function a210_0x4da4(_0x572bfc,_0x2f5933){_0x572bfc=_0x572bfc-0x158;const _0x17b1cd=a210_0x17b1();let _0x4da44c=_0x17b1cd[_0x572bfc];return _0x4da44c;}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a210_0x19f11a(0x15f)];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x2689d4=a210_0x19f11a;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x2689d4(0x180)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x2689d4(0x186))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3c369b=>{const _0x8d5c20=a210_0x19f11a,_0x5bea72=encodeURIComponent(_0x3c369b[_0x8d5c20(0x15e)]());return isProduction(getEnv())?getAppDomain()+_0x8d5c20(0x17f)+_0x5bea72:getAppDomain()+_0x8d5c20(0x176)+_0x5bea72;};export const getPublishedAppDomain=_0x436923=>{const _0x1f3e27=a210_0x19f11a,_0x1de38f=new URL(getAppDomain());return _0x1de38f[_0x1f3e27(0x170)]=_0x436923[_0x1f3e27(0x15e)]()+'.'+_0x1de38f[_0x1f3e27(0x170)],_0x1de38f[_0x1f3e27(0x16f)];};
@@ -1 +1 @@
1
- const a211_0x28c516=a211_0x2fd2;(function(_0x2d12a1,_0x3f20a6){const _0x36362b=a211_0x2fd2,_0x5c07b5=_0x2d12a1();while(!![]){try{const _0x142598=parseInt(_0x36362b(0xd4))/0x1+parseInt(_0x36362b(0xd2))/0x2+parseInt(_0x36362b(0xca))/0x3*(-parseInt(_0x36362b(0xcc))/0x4)+parseInt(_0x36362b(0xcd))/0x5+parseInt(_0x36362b(0xcb))/0x6+parseInt(_0x36362b(0xce))/0x7+-parseInt(_0x36362b(0xcf))/0x8;if(_0x142598===_0x3f20a6)break;else _0x5c07b5['push'](_0x5c07b5['shift']());}catch(_0x2a6011){_0x5c07b5['push'](_0x5c07b5['shift']());}}}(a211_0x536d,0x9585f));export const RABETBASE_ENV_VALUES=[a211_0x28c516(0xd1),a211_0x28c516(0xd3)];function a211_0x536d(){const _0x1213b9=['20tIjRXE','56770isgcYg','7846944mRGlmJ','10151536zIgsrt','development','production','1210922KBEXKP','daily','153252KHRcfN','446781OisAAI','4409790wRaqyl'];a211_0x536d=function(){return _0x1213b9;};return a211_0x536d();}export function normalizeEnv(_0x82849d){const _0x29745d=a211_0x28c516;return _0x82849d==='online'?_0x29745d(0xd1):_0x82849d;}function a211_0x2fd2(_0xa8770c,_0x4ea593){_0xa8770c=_0xa8770c-0xca;const _0x536d97=a211_0x536d();let _0x2fd2da=_0x536d97[_0xa8770c];return _0x2fd2da;}export function isProduction(_0x1551b6){const _0x39ff35=a211_0x28c516;return normalizeEnv(_0x1551b6)===_0x39ff35(0xd1);}export function isDaily(_0x361cb1){const _0x43fba7=a211_0x28c516;return normalizeEnv(_0x361cb1)===_0x43fba7(0xd3);}export function isDev(_0x1280a2){const _0x5297df=a211_0x28c516,_0x4753fc=normalizeEnv(_0x1280a2);return _0x4753fc===_0x5297df(0xd0)||_0x4753fc==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x41910d){env=normalizeEnv(_0x41910d);}
1
+ const a211_0x2339af=a211_0x4af6;function a211_0xb1b4(){const _0x3f740d=['dev','development','887840HRRlVg','1744984qRoRqy','9170128TPNtap','72051YXpyHq','1629681mRyHxt','282611gvMwQK','production','daily','2jCzwTp','1584246cyrmvI'];a211_0xb1b4=function(){return _0x3f740d;};return a211_0xb1b4();}(function(_0x582063,_0x1855c6){const _0x50e15c=a211_0x4af6,_0x401bed=_0x582063();while(!![]){try{const _0x51c0cf=parseInt(_0x50e15c(0x14f))/0x1+-parseInt(_0x50e15c(0x146))/0x2*(parseInt(_0x50e15c(0x14e))/0x3)+-parseInt(_0x50e15c(0x14b))/0x4+-parseInt(_0x50e15c(0x14a))/0x5+parseInt(_0x50e15c(0x147))/0x6+-parseInt(_0x50e15c(0x14d))/0x7+parseInt(_0x50e15c(0x14c))/0x8;if(_0x51c0cf===_0x1855c6)break;else _0x401bed['push'](_0x401bed['shift']());}catch(_0x2854c9){_0x401bed['push'](_0x401bed['shift']());}}}(a211_0xb1b4,0x80510));export const RABETBASE_ENV_VALUES=[a211_0x2339af(0x150),a211_0x2339af(0x145)];export function normalizeEnv(_0x251592){return _0x251592==='online'?'production':_0x251592;}export function isProduction(_0x2cbd52){const _0x1c8596=a211_0x2339af;return normalizeEnv(_0x2cbd52)===_0x1c8596(0x150);}function a211_0x4af6(_0x194391,_0x492613){_0x194391=_0x194391-0x145;const _0xb1b4ac=a211_0xb1b4();let _0x4af6fa=_0xb1b4ac[_0x194391];return _0x4af6fa;}export function isDaily(_0x47499b){const _0x4bf84b=a211_0x2339af;return normalizeEnv(_0x47499b)===_0x4bf84b(0x145);}export function isDev(_0x1be41b){const _0x2b3ebf=a211_0x2339af,_0x47de19=normalizeEnv(_0x1be41b);return _0x47de19===_0x2b3ebf(0x149)||_0x47de19===_0x2b3ebf(0x148);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a211_0x2339af(0x150));export function getEnv(){return env;}export function initEnv(_0x1c1be6){env=normalizeEnv(_0x1c1be6);}
@@ -1 +1 @@
1
- const a212_0x4370bd=a212_0x477e;(function(_0x31662f,_0x3b845d){const _0x27cacd=a212_0x477e,_0x5b7a41=_0x31662f();while(!![]){try{const _0x28afe6=parseInt(_0x27cacd(0xc6))/0x1*(-parseInt(_0x27cacd(0xcb))/0x2)+-parseInt(_0x27cacd(0xc8))/0x3*(-parseInt(_0x27cacd(0xc2))/0x4)+parseInt(_0x27cacd(0xca))/0x5+parseInt(_0x27cacd(0xc4))/0x6*(-parseInt(_0x27cacd(0xce))/0x7)+parseInt(_0x27cacd(0xc7))/0x8+-parseInt(_0x27cacd(0xc9))/0x9+parseInt(_0x27cacd(0xc3))/0xa*(parseInt(_0x27cacd(0xcc))/0xb);if(_0x28afe6===_0x3b845d)break;else _0x5b7a41['push'](_0x5b7a41['shift']());}catch(_0x4423d8){_0x5b7a41['push'](_0x5b7a41['shift']());}}}(a212_0x2e0b,0x80842));function a212_0x477e(_0x665639,_0x284a2a){_0x665639=_0x665639-0xc2;const _0x2e0bf0=a212_0x2e0b();let _0x477e10=_0x2e0bf0[_0x665639];return _0x477e10;}function a212_0x2e0b(){const _0x59d021=['4mOSibE','40tXTzwz','1152rcoPUt','pretty','1fRtXrB','7565136gjeuKq','1134453bTgSxd','7317207ZFNakC','787565jkDtLl','1257274FewdNy','3265251MwXwPc','compress','25543KdYxXQ'];a212_0x2e0b=function(){return _0x59d021;};return a212_0x2e0b();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a212_0x4370bd(0xc5),a212_0x4370bd(0xcd)];
1
+ const a212_0x335fc3=a212_0x5830;(function(_0x388c10,_0x1f9fbd){const _0x120ae4=a212_0x5830,_0xc4eaf6=_0x388c10();while(!![]){try{const _0x2fc587=parseInt(_0x120ae4(0xc3))/0x1*(-parseInt(_0x120ae4(0xbf))/0x2)+-parseInt(_0x120ae4(0xc1))/0x3+-parseInt(_0x120ae4(0xc5))/0x4*(parseInt(_0x120ae4(0xbe))/0x5)+-parseInt(_0x120ae4(0xc4))/0x6*(-parseInt(_0x120ae4(0xc6))/0x7)+parseInt(_0x120ae4(0xc0))/0x8+parseInt(_0x120ae4(0xbd))/0x9+parseInt(_0x120ae4(0xc7))/0xa*(parseInt(_0x120ae4(0xbc))/0xb);if(_0x2fc587===_0x1f9fbd)break;else _0xc4eaf6['push'](_0xc4eaf6['shift']());}catch(_0x4a2ba7){_0xc4eaf6['push'](_0xc4eaf6['shift']());}}}(a212_0x1d4b,0xbbfbb));function a212_0x1d4b(){const _0x5c90d0=['json','250801CJybOd','1578uxDUtI','4ItoivY','10094oJTypz','9397330FcJfgq','22zCBtmW','2621592DgaHGG','249055thHOWY','6tbsWrq','3130896eKBxLB','4107507OHZJqD'];a212_0x1d4b=function(){return _0x5c90d0;};return a212_0x1d4b();}function a212_0x5830(_0x441ad0,_0xeb6346){_0x441ad0=_0x441ad0-0xbc;const _0x1d4bc5=a212_0x1d4b();let _0x583070=_0x1d4bc5[_0x441ad0];return _0x583070;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a212_0x335fc3(0xc2),'pretty','compress'];
@@ -1 +1 @@
1
- const a213_0x59d641=a213_0x104c;function a213_0x104c(_0x56bd29,_0x3ad23f){_0x56bd29=_0x56bd29-0x1c1;const _0x267d4e=a213_0x267d();let _0x104cea=_0x267d4e[_0x56bd29];return _0x104cea;}(function(_0x461cc6,_0x104b6f){const _0x5e88ee=a213_0x104c,_0x5630b6=_0x461cc6();while(!![]){try{const _0x3e18c4=-parseInt(_0x5e88ee(0x1cb))/0x1+parseInt(_0x5e88ee(0x1c4))/0x2*(-parseInt(_0x5e88ee(0x1c3))/0x3)+-parseInt(_0x5e88ee(0x1c8))/0x4*(-parseInt(_0x5e88ee(0x1c9))/0x5)+-parseInt(_0x5e88ee(0x1c1))/0x6+-parseInt(_0x5e88ee(0x1c6))/0x7*(-parseInt(_0x5e88ee(0x1c5))/0x8)+-parseInt(_0x5e88ee(0x1c2))/0x9+parseInt(_0x5e88ee(0x1c7))/0xa;if(_0x3e18c4===_0x104b6f)break;else _0x5630b6['push'](_0x5630b6['shift']());}catch(_0x23d398){_0x5630b6['push'](_0x5630b6['shift']());}}}(a213_0x267d,0x7bd76));export const DEFAULT_API_DIR=a213_0x59d641(0x1ca);function a213_0x267d(){const _0xf23e=['70391koDUab','984714NgjNWW','6724557zKAWAI','2501742DARjBk','2kMDjNU','3112464PqjQAo','7pwJbip','13969030trJtin','2147560oUweOP','5uxOiay','./src/api'];a213_0x267d=function(){return _0xf23e;};return a213_0x267d();}
1
+ function a213_0x5338(){const _0xb0c786=['1327145SHOxci','7297353tGYZRr','3567137rmqnAT','4GoXWaq','318411uNPxWn','2330tPEeyu','781746hGtNtS','./src/api','25TaGstI','299608woVxtf'];a213_0x5338=function(){return _0xb0c786;};return a213_0x5338();}const a213_0x5ecc90=a213_0x42ee;(function(_0x2315cd,_0x34ed8e){const _0x4c5e92=a213_0x42ee,_0x1d3b29=_0x2315cd();while(!![]){try{const _0x42fe23=-parseInt(_0x4c5e92(0xa3))/0x1*(-parseInt(_0x4c5e92(0xa0))/0x2)+parseInt(_0x4c5e92(0x9f))/0x3+parseInt(_0x4c5e92(0x9e))/0x4*(-parseInt(_0x4c5e92(0xa5))/0x5)+parseInt(_0x4c5e92(0xa1))/0x6+-parseInt(_0x4c5e92(0xa7))/0x7+-parseInt(_0x4c5e92(0xa4))/0x8+parseInt(_0x4c5e92(0xa6))/0x9;if(_0x42fe23===_0x34ed8e)break;else _0x1d3b29['push'](_0x1d3b29['shift']());}catch(_0x2a2126){_0x1d3b29['push'](_0x1d3b29['shift']());}}}(a213_0x5338,0x406db));function a213_0x42ee(_0xab2eb4,_0x29f847){_0xab2eb4=_0xab2eb4-0x9e;const _0x53381f=a213_0x5338();let _0x42eead=_0x53381f[_0xab2eb4];return _0x42eead;}export const DEFAULT_API_DIR=a213_0x5ecc90(0xa2);
@@ -1 +1 @@
1
- (function(_0x3e48a4,_0x456d2c){const _0x5363e3=a214_0x3512,_0x11df4a=_0x3e48a4();while(!![]){try{const _0xb2d6e9=-parseInt(_0x5363e3(0x18b))/0x1+parseInt(_0x5363e3(0x185))/0x2+parseInt(_0x5363e3(0x181))/0x3+-parseInt(_0x5363e3(0x189))/0x4+parseInt(_0x5363e3(0x18a))/0x5*(-parseInt(_0x5363e3(0x184))/0x6)+parseInt(_0x5363e3(0x183))/0x7+-parseInt(_0x5363e3(0x180))/0x8*(-parseInt(_0x5363e3(0x187))/0x9);if(_0xb2d6e9===_0x456d2c)break;else _0x11df4a['push'](_0x11df4a['shift']());}catch(_0x251696){_0x11df4a['push'](_0x11df4a['shift']());}}}(a214_0x1824,0xe9f4a));export const LOVRABET_REGION_VALUES=['cn','id','global'];function a214_0x1824(){const _0x16c3ab=['54CmoPFi','1429854GuWekQ','china','4250529XslyYU','includes','5898260EVlLvR','748255KDfTsl','4404fIIekt','string','8SIfHDp','4561668hEXnbr','indonesia','7534422IQpFpp'];a214_0x1824=function(){return _0x16c3ab;};return a214_0x1824();}export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x1e86ec){const _0x56c13c=a214_0x3512;return typeof _0x1e86ec===_0x56c13c(0x18c)&&LOVRABET_REGION_VALUES[_0x56c13c(0x188)](_0x1e86ec);}function a214_0x3512(_0x4a0b8c,_0x42f9a9){_0x4a0b8c=_0x4a0b8c-0x180;const _0x182465=a214_0x1824();let _0x35126f=_0x182465[_0x4a0b8c];return _0x35126f;}export function isEnabledLovrabetRegion(_0x3b248b){const _0x5b00c8=a214_0x3512;return typeof _0x3b248b==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x5b00c8(0x188)](_0x3b248b);}export function normalizeLovrabetRegion(_0x2bfa2a){const _0x59c52f=a214_0x3512;if(_0x2bfa2a===_0x59c52f(0x186))return'cn';if(_0x2bfa2a===_0x59c52f(0x182))return'id';return isLovrabetRegion(_0x2bfa2a)?_0x2bfa2a:DEFAULT_LOVRABET_REGION;}
1
+ const a214_0x1cd1f7=a214_0x26c4;(function(_0x3f0f5e,_0x1ea9e7){const _0x5af3fe=a214_0x26c4,_0x518890=_0x3f0f5e();while(!![]){try{const _0x18b07c=parseInt(_0x5af3fe(0x182))/0x1*(-parseInt(_0x5af3fe(0x17e))/0x2)+parseInt(_0x5af3fe(0x173))/0x3+-parseInt(_0x5af3fe(0x174))/0x4+-parseInt(_0x5af3fe(0x176))/0x5+parseInt(_0x5af3fe(0x181))/0x6*(-parseInt(_0x5af3fe(0x17f))/0x7)+parseInt(_0x5af3fe(0x178))/0x8*(parseInt(_0x5af3fe(0x17d))/0x9)+parseInt(_0x5af3fe(0x17a))/0xa*(parseInt(_0x5af3fe(0x17b))/0xb);if(_0x18b07c===_0x1ea9e7)break;else _0x518890['push'](_0x518890['shift']());}catch(_0x96d2cb){_0x518890['push'](_0x518890['shift']());}}}(a214_0xef3f,0xd43bd));export const LOVRABET_REGION_VALUES=['cn','id',a214_0x1cd1f7(0x179)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a214_0x26c4(_0x46ae0e,_0x285d10){_0x46ae0e=_0x46ae0e-0x173;const _0xef3ff2=a214_0xef3f();let _0x26c4c8=_0xef3ff2[_0x46ae0e];return _0x26c4c8;}export const DEFAULT_LOVRABET_REGION='cn';function a214_0xef3f(){const _0x336a11=['includes','621pGrnWL','18lleigU','56losyiL','indonesia','456174zaHHBE','14789bujTZb','1045968cFBLVM','3104720sYxfUC','string','8618595TrsTTa','china','82504CWVFqx','global','10OQjJJN','33553168oUcrng'];a214_0xef3f=function(){return _0x336a11;};return a214_0xef3f();}export function isLovrabetRegion(_0x2921ec){const _0x283425=a214_0x1cd1f7;return typeof _0x2921ec===_0x283425(0x175)&&LOVRABET_REGION_VALUES['includes'](_0x2921ec);}export function isEnabledLovrabetRegion(_0x486083){const _0x557dcf=a214_0x1cd1f7;return typeof _0x486083==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x557dcf(0x17c)](_0x486083);}export function normalizeLovrabetRegion(_0x557f2b){const _0x3ce6d1=a214_0x1cd1f7;if(_0x557f2b===_0x3ce6d1(0x177))return'cn';if(_0x557f2b===_0x3ce6d1(0x180))return'id';return isLovrabetRegion(_0x557f2b)?_0x557f2b:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- const a215_0x1c7ce0=a215_0x9650;(function(_0x595110,_0x28a63c){const _0x5b616a=a215_0x9650,_0x5490da=_0x595110();while(!![]){try{const _0x31f82a=parseInt(_0x5b616a(0x9a))/0x1+-parseInt(_0x5b616a(0xa3))/0x2*(-parseInt(_0x5b616a(0x9d))/0x3)+parseInt(_0x5b616a(0x9b))/0x4+parseInt(_0x5b616a(0xa6))/0x5*(-parseInt(_0x5b616a(0xa2))/0x6)+-parseInt(_0x5b616a(0xa5))/0x7+-parseInt(_0x5b616a(0xa0))/0x8+-parseInt(_0x5b616a(0x9c))/0x9*(-parseInt(_0x5b616a(0x9f))/0xa);if(_0x31f82a===_0x28a63c)break;else _0x5490da['push'](_0x5490da['shift']());}catch(_0x4fa9a2){_0x5490da['push'](_0x5490da['shift']());}}}(a215_0x1456,0x4c569));function a215_0x9650(_0x1dcbc1,_0xd551b5){_0x1dcbc1=_0x1dcbc1-0x9a;const _0x1456c2=a215_0x1456();let _0x965071=_0x1456c2[_0x1dcbc1];return _0x965071;}export const RISK_LEVEL_VALUES=[a215_0x1c7ce0(0x9e),a215_0x1c7ce0(0xa1),a215_0x1c7ce0(0xa4)];function a215_0x1456(){const _0x45bb31=['2946727WOwICU','844480FDixeM','438293RwhSly','922380vIIWcV','217629TJdzOa','216354tWBVvQ','read','290OtANwz','2966568IkeuEm','write','12GWpmYg','2glsJwk','high-risk-write'];a215_0x1456=function(){return _0x45bb31;};return a215_0x1456();}
1
+ const a215_0x43e649=a215_0x3c35;(function(_0x120456,_0x170da7){const _0x52315a=a215_0x3c35,_0x1d4166=_0x120456();while(!![]){try{const _0x448270=parseInt(_0x52315a(0x136))/0x1+-parseInt(_0x52315a(0x138))/0x2+-parseInt(_0x52315a(0x13a))/0x3+-parseInt(_0x52315a(0x137))/0x4*(-parseInt(_0x52315a(0x13c))/0x5)+-parseInt(_0x52315a(0x133))/0x6+-parseInt(_0x52315a(0x139))/0x7+parseInt(_0x52315a(0x13d))/0x8*(parseInt(_0x52315a(0x134))/0x9);if(_0x448270===_0x170da7)break;else _0x1d4166['push'](_0x1d4166['shift']());}catch(_0x42b8c0){_0x1d4166['push'](_0x1d4166['shift']());}}}(a215_0x57cf,0xc0f1d));export const RISK_LEVEL_VALUES=['read',a215_0x43e649(0x135),a215_0x43e649(0x13b)];function a215_0x3c35(_0x38f928,_0x28d4fa){_0x38f928=_0x38f928-0x133;const _0x57cf71=a215_0x57cf();let _0x3c35d2=_0x57cf71[_0x38f928];return _0x3c35d2;}function a215_0x57cf(){const _0x71d696=['8641080iEUggk','1037226wbStCC','high-risk-write','19595qngWpa','5152rhVXwc','2560686EEKQZA','15291JXOhRg','write','1027350cnICLq','1432NGSOQJ','1454488XvdXYI'];a215_0x57cf=function(){return _0x71d696;};return a215_0x57cf();}
@@ -1 +1 @@
1
- (function(_0x465305,_0x5dd548){const _0x341e2d=a216_0x4f5d,_0x26b004=_0x465305();while(!![]){try{const _0x938c05=-parseInt(_0x341e2d(0x6b))/0x1+parseInt(_0x341e2d(0x81))/0x2*(-parseInt(_0x341e2d(0x73))/0x3)+parseInt(_0x341e2d(0x8e))/0x4+parseInt(_0x341e2d(0x79))/0x5*(parseInt(_0x341e2d(0x7d))/0x6)+-parseInt(_0x341e2d(0x80))/0x7*(-parseInt(_0x341e2d(0x71))/0x8)+-parseInt(_0x341e2d(0x7f))/0x9*(parseInt(_0x341e2d(0x93))/0xa)+parseInt(_0x341e2d(0x6f))/0xb*(parseInt(_0x341e2d(0x6c))/0xc);if(_0x938c05===_0x5dd548)break;else _0x26b004['push'](_0x26b004['shift']());}catch(_0x567f1b){_0x26b004['push'](_0x26b004['shift']());}}}(a216_0x3a92,0x897b9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x112657){const _0x15f036=a216_0x4f5d;return typeof _0x112657===_0x15f036(0x70)&&_0x112657[_0x15f036(0x8d)]()?_0x112657['trim']():undefined;}function appProfiles(_0x16cabe){const _0x501e07=a216_0x4f5d;return _0x16cabe[_0x501e07(0x6e)]&&typeof _0x16cabe[_0x501e07(0x6e)]==='object'?_0x16cabe['apps']:{};}function a216_0x4f5d(_0x5d1ae9,_0x512119){_0x5d1ae9=_0x5d1ae9-0x65;const _0x3a9204=a216_0x3a92();let _0x4f5d13=_0x3a9204[_0x5d1ae9];return _0x4f5d13;}function resolveDefaultAppName(_0x222dde){const _0x1f8e74=a216_0x4f5d,_0x2979f8=stringConfigValue(_0x222dde[_0x1f8e74(0x6a)]);if(_0x2979f8)return _0x2979f8;const _0x1134f2=Object[_0x1f8e74(0x95)](appProfiles(_0x222dde));return _0x1134f2[_0x1f8e74(0x90)]===0x1?_0x1134f2[0x0]:undefined;}function resolveTopLevelAppCode(_0x12302d){const _0x2f7bc8=a216_0x4f5d;return stringConfigValue(_0x12302d[_0x2f7bc8(0x8c)])||stringConfigValue(_0x12302d[_0x2f7bc8(0x68)]);}function normalizeRiskCeiling(_0x14e713){const _0x35be05=a216_0x4f5d;if(_0x14e713===undefined||_0x14e713===null)return undefined;if(_0x14e713===_0x35be05(0x86)||_0x14e713===_0x35be05(0x65)||_0x14e713===_0x35be05(0x75))return _0x14e713;return _0x35be05(0x86);}function resolveRiskCeiling(..._0x5ab65e){let _0x22a341;for(const _0x2c5d43 of _0x5ab65e){const _0x1237cf=normalizeRiskCeiling(_0x2c5d43);_0x1237cf&&(!_0x22a341||riskLevelOrder(_0x1237cf)<riskLevelOrder(_0x22a341))&&(_0x22a341=_0x1237cf);}return _0x22a341??DEFAULT_CONFIG_VALUES['riskLevel'];}function configuredRiskCeilings(_0x39dea8){const _0x2db313=a216_0x4f5d;return[...Object[_0x2db313(0x96)][_0x2db313(0x87)][_0x2db313(0x94)](_0x39dea8,_0x2db313(0x66))?[_0x39dea8[_0x2db313(0x66)]]:[],...Object[_0x2db313(0x96)][_0x2db313(0x87)]['call'](_0x39dea8,_0x2db313(0x88))?[_0x39dea8['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x4b9635,flags:_0x34398c,layers:_0x38726f,readEnv:_0x3317b3}){const _0x405ec7=a216_0x4f5d,_0x33097c=_0x38726f?.[_0x405ec7(0x91)]??{},_0x20e1a8=_0x38726f?.['globalConfig']??{},_0x583ee0=!!_0x38726f?.[_0x405ec7(0x98)]||Object[_0x405ec7(0x95)](_0x33097c)[_0x405ec7(0x90)]>0x0,_0x4b797b=!_0x583ee0,_0x3b64b8=_0x583ee0?resolveDefaultAppName(_0x33097c):undefined,_0x5d69ca=_0x4b797b?resolveDefaultAppName(_0x20e1a8):undefined,_0x4110c1=stringConfigValue(_0x34398c[_0x405ec7(0x68)]),_0x55af96=_0x3317b3(_0x405ec7(0x6d)),_0x345755={};if(_0x4b9635[_0x405ec7(0x6e)]&&typeof _0x4b9635[_0x405ec7(0x6e)]===_0x405ec7(0x92))for(const [_0x404b22,_0x5a9d86]of Object[_0x405ec7(0x7a)](_0x4b9635[_0x405ec7(0x6e)])){_0x5a9d86&&typeof _0x5a9d86===_0x405ec7(0x92)&&_0x5a9d86[_0x405ec7(0x8c)]&&(_0x345755[_0x404b22]=_0x5a9d86);}const _0x490834=_0x3b64b8||_0x5d69ca||resolveDefaultAppName(_0x4b9635),_0x5d5053=Object[_0x405ec7(0x95)](_0x345755)[_0x405ec7(0x90)]>0x0,_0x40b12b=_0x4110c1||_0x3b64b8||_0x55af96||_0x5d69ca||_0x490834||undefined,_0x1dd0b3=stringConfigValue(_0x34398c['appcode']),_0x54046e=_0x1dd0b3?Object[_0x405ec7(0x7a)](_0x345755)[_0x405ec7(0x84)](([,_0x3de445])=>_0x3de445?.[_0x405ec7(0x8c)]===_0x1dd0b3):undefined,_0x439767=_0x54046e?.[0x0],_0x2c0832=_0x54046e?.[0x1],_0x26cd87=_0x1dd0b3?_0x439767:_0x40b12b;let _0x1ecf48=_0x26cd87&&_0x345755[_0x26cd87]?_0x345755[_0x26cd87]:undefined;_0x1dd0b3&&_0x2c0832&&(_0x1ecf48=_0x2c0832);const _0x5b6cd1=_0x1dd0b3?_0x2c0832??_0x1ecf48:_0x1ecf48,_0x466ca1=!_0x4110c1&&!_0x3b64b8&&_0x55af96&&_0x26cd87===_0x55af96,_0x540d81=_0x4110c1||(_0x466ca1?_0x55af96:undefined)||(_0x1dd0b3?_0x439767:undefined),_0x3f2265=_0x5b6cd1?.[_0x405ec7(0x8c)],_0x57fa1d=_0x583ee0?resolveTopLevelAppCode(_0x33097c):undefined,_0x128c66=_0x4b797b?resolveTopLevelAppCode(_0x20e1a8):undefined,_0x1371f9=_0x4110c1||_0x3b64b8?_0x3f2265:undefined,_0x41b3b1=!_0x4110c1&&!_0x3b64b8?_0x3f2265:undefined,_0x36670f=_0x1dd0b3||_0x1371f9||_0x57fa1d||_0x41b3b1||_0x128c66||undefined,_0x405827=_0x583ee0?stringConfigValue(_0x33097c[_0x405ec7(0x7c)]):undefined,_0x57f4aa=_0x4b797b?stringConfigValue(_0x20e1a8[_0x405ec7(0x7c)]):undefined,_0x2e6ea5=_0x34398c[_0x405ec7(0x7c)]||_0x5b6cd1?.[_0x405ec7(0x7c)]||_0x405827||_0x3317b3(_0x405ec7(0x78))||_0x57f4aa||_0x4b9635['env']||DEFAULT_CONFIG_VALUES[_0x405ec7(0x7c)],_0x7ef87f=_0x5b6cd1?.[_0x405ec7(0x83)]||_0x4b9635[_0x405ec7(0x83)]||DEFAULT_CONFIG_VALUES['locale'],_0x160ed9=_0x3317b3(_0x405ec7(0x76))||_0x5b6cd1?.[_0x405ec7(0x8a)]||_0x4b9635[_0x405ec7(0x8a)]||undefined,_0x28cd4a=_0x3317b3(_0x405ec7(0x97))||_0x5b6cd1?.[_0x405ec7(0x8f)]||_0x4b9635['accessKey']||undefined,_0x5730a9=_0x34398c['format']||_0x3317b3(_0x405ec7(0x72))||_0x5b6cd1?.['format']||_0x4b9635[_0x405ec7(0x7b)],_0x3c7f7c=normalizeLegacyOutputFormat(_0x5730a9),_0x2b62fc=_0x3317b3(_0x405ec7(0x7e))||_0x5b6cd1?.[_0x405ec7(0x89)]||_0x4b9635[_0x405ec7(0x89)],_0x1c3e09=_0x2b62fc?Number(_0x2b62fc)||undefined:undefined,_0x5ccdd7=_0x38726f?[...configuredRiskCeilings(_0x38726f[_0x405ec7(0x74)]),...configuredRiskCeilings(_0x38726f['projectConfig'])]:configuredRiskCeilings(_0x4b9635),_0x54292e=resolveRiskCeiling(..._0x5ccdd7,_0x5b6cd1?.[_0x405ec7(0x88)]),_0x5ca271=resolveRiskCeiling(_0x54292e,_0x3317b3(_0x405ec7(0x8b)),_0x3317b3(_0x405ec7(0x69))),_0x23306a=_0x3317b3(_0x405ec7(0x85)),_0x51491f=_0x23306a==='1'||_0x23306a===_0x405ec7(0x82),_0x122026=_0x5b6cd1?.[_0x405ec7(0x67)]||_0x4b9635[_0x405ec7(0x67)]||DEFAULT_CONFIG_VALUES[_0x405ec7(0x67)],_0x3708da=isDaily(normalizeEnv(String(_0x2e6ea5)))?_0x405ec7(0x77):'production';return{'appCode':typeof _0x36670f==='string'&&_0x36670f[_0x405ec7(0x8d)]()?_0x36670f[_0x405ec7(0x8d)]():undefined,'env':_0x3708da,'locale':_0x7ef87f,'cookie':_0x160ed9,'accessKey':_0x28cd4a,'format':_0x3c7f7c,'pageSize':_0x1c3e09,'riskLevel':_0x5ca271,'verbose':_0x51491f,'apiDir':_0x122026,'apps':_0x345755,'defaultApp':_0x490834,'currentApp':_0x5d5053?_0x26cd87:undefined,'explicitAppName':_0x540d81};}function a216_0x3a92(){const _0x12484b=['MAX_RISK','defaultApp','422831TfckWn','5075724YKprSQ','APP','apps','11cCgAMU','string','3032UjwuBI','FORMAT','1303053CeCxfr','globalConfig','high-risk-write','COOKIE','daily','ENV','3818035yucFsD','entries','format','env','6pTojzk','PAGE_SIZE','4920219gYZSAx','686ylsoNa','2akDRtB','true','locale','find','VERBOSE','read','hasOwnProperty','riskLevel','pageSize','cookie','RISK_LEVEL','appcode','trim','2973104EqUJfg','accessKey','length','projectConfig','object','10WFcriC','call','keys','prototype','ACCESS_KEY','projectPath','write','maxRisk','apiDir','app'];a216_0x3a92=function(){return _0x12484b;};return a216_0x3a92();}
1
+ function a216_0x174c(_0x1ecaa8,_0x4c7776){_0x1ecaa8=_0x1ecaa8-0x107;const _0x9cddf6=a216_0x9cdd();let _0x174c32=_0x9cddf6[_0x1ecaa8];return _0x174c32;}(function(_0x17a483,_0x5df31a){const _0x3a937e=a216_0x174c,_0x13a41e=_0x17a483();while(!![]){try{const _0x10be2c=-parseInt(_0x3a937e(0x12a))/0x1*(parseInt(_0x3a937e(0x128))/0x2)+parseInt(_0x3a937e(0x114))/0x3+parseInt(_0x3a937e(0x12d))/0x4+parseInt(_0x3a937e(0x11b))/0x5+parseInt(_0x3a937e(0x120))/0x6*(parseInt(_0x3a937e(0x12c))/0x7)+parseInt(_0x3a937e(0x12e))/0x8+-parseInt(_0x3a937e(0x11a))/0x9*(parseInt(_0x3a937e(0x112))/0xa);if(_0x10be2c===_0x5df31a)break;else _0x13a41e['push'](_0x13a41e['shift']());}catch(_0x33918c){_0x13a41e['push'](_0x13a41e['shift']());}}}(a216_0x9cdd,0xa9713));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x287e38){const _0x43ffe9=a216_0x174c;return typeof _0x287e38==='string'&&_0x287e38[_0x43ffe9(0x124)]()?_0x287e38['trim']():undefined;}function appProfiles(_0x47ef33){const _0x290e11=a216_0x174c;return _0x47ef33[_0x290e11(0x10a)]&&typeof _0x47ef33[_0x290e11(0x10a)]===_0x290e11(0x131)?_0x47ef33[_0x290e11(0x10a)]:{};}function resolveDefaultAppName(_0x25d1aa){const _0x3485bd=a216_0x174c,_0x1cb9dc=stringConfigValue(_0x25d1aa[_0x3485bd(0x10d)]);if(_0x1cb9dc)return _0x1cb9dc;const _0xb234e3=Object['keys'](appProfiles(_0x25d1aa));return _0xb234e3[_0x3485bd(0x10f)]===0x1?_0xb234e3[0x0]:undefined;}function resolveTopLevelAppCode(_0xa9ff08){const _0x3f68ee=a216_0x174c;return stringConfigValue(_0xa9ff08[_0x3f68ee(0x129)])||stringConfigValue(_0xa9ff08[_0x3f68ee(0x125)]);}function normalizeRiskCeiling(_0x45130c){const _0x4c185e=a216_0x174c;if(_0x45130c===undefined||_0x45130c===null)return undefined;if(_0x45130c===_0x4c185e(0x115)||_0x45130c===_0x4c185e(0x126)||_0x45130c===_0x4c185e(0x111))return _0x45130c;return'read';}function resolveRiskCeiling(..._0x2911b3){const _0x3e77a2=a216_0x174c;let _0x3048ea;for(const _0x3eabc1 of _0x2911b3){const _0x3de06c=normalizeRiskCeiling(_0x3eabc1);_0x3de06c&&(!_0x3048ea||riskLevelOrder(_0x3de06c)<riskLevelOrder(_0x3048ea))&&(_0x3048ea=_0x3de06c);}return _0x3048ea??DEFAULT_CONFIG_VALUES[_0x3e77a2(0x118)];}function configuredRiskCeilings(_0x2ad129){const _0x5e8dd2=a216_0x174c;return[...Object[_0x5e8dd2(0x11d)][_0x5e8dd2(0x116)][_0x5e8dd2(0x10c)](_0x2ad129,_0x5e8dd2(0x132))?[_0x2ad129['maxRisk']]:[],...Object[_0x5e8dd2(0x11d)][_0x5e8dd2(0x116)][_0x5e8dd2(0x10c)](_0x2ad129,_0x5e8dd2(0x118))?[_0x2ad129[_0x5e8dd2(0x118)]]:[]];}function a216_0x9cdd(){const _0x3684b5=['high-risk-write','21220pMvrXZ','env','845772exZhTY','read','hasOwnProperty','projectConfig','riskLevel','MAX_RISK','10674BQSWhw','4336750fkvcCX','APP','prototype','pageSize','COOKIE','92190ohdpwu','entries','locale','production','trim','app','write','PAGE_SIZE','18rueRrV','appcode','24003FRsNjR','ENV','105rgHgDT','3680920gvPDyr','9014200LdvTfn','apiDir','daily','object','maxRisk','FORMAT','keys','find','projectPath','ACCESS_KEY','apps','string','call','defaultApp','format','length','RISK_LEVEL'];a216_0x9cdd=function(){return _0x3684b5;};return a216_0x9cdd();}export function resolveAppConfig({raw:_0x58853f,flags:_0x1c19a4,layers:_0x33368a,readEnv:_0x5d12ee}){const _0x2ae79e=a216_0x174c,_0x3f1597=_0x33368a?.[_0x2ae79e(0x117)]??{},_0x3e4165=_0x33368a?.['globalConfig']??{},_0x1682db=!!_0x33368a?.[_0x2ae79e(0x108)]||Object[_0x2ae79e(0x134)](_0x3f1597)[_0x2ae79e(0x10f)]>0x0,_0x28345d=!_0x1682db,_0x41e225=_0x1682db?resolveDefaultAppName(_0x3f1597):undefined,_0x33dcda=_0x28345d?resolveDefaultAppName(_0x3e4165):undefined,_0x5cbbe6=stringConfigValue(_0x1c19a4[_0x2ae79e(0x125)]),_0xbcc40=_0x5d12ee(_0x2ae79e(0x11c)),_0x562bdb={};if(_0x58853f['apps']&&typeof _0x58853f[_0x2ae79e(0x10a)]===_0x2ae79e(0x131))for(const [_0x43c309,_0x58dd06]of Object[_0x2ae79e(0x121)](_0x58853f[_0x2ae79e(0x10a)])){_0x58dd06&&typeof _0x58dd06===_0x2ae79e(0x131)&&_0x58dd06['appcode']&&(_0x562bdb[_0x43c309]=_0x58dd06);}const _0x59b711=_0x41e225||_0x33dcda||resolveDefaultAppName(_0x58853f),_0x5b0c5e=Object[_0x2ae79e(0x134)](_0x562bdb)[_0x2ae79e(0x10f)]>0x0,_0x240c52=_0x5cbbe6||_0x41e225||_0xbcc40||_0x33dcda||_0x59b711||undefined,_0xfa4ec7=stringConfigValue(_0x1c19a4[_0x2ae79e(0x129)]),_0x16d1b0=_0xfa4ec7?Object[_0x2ae79e(0x121)](_0x562bdb)[_0x2ae79e(0x107)](([,_0x4a1bbb])=>_0x4a1bbb?.[_0x2ae79e(0x129)]===_0xfa4ec7):undefined,_0xec8b5b=_0x16d1b0?.[0x0],_0x3894c8=_0x16d1b0?.[0x1],_0x2dbd8=_0xfa4ec7?_0xec8b5b:_0x240c52;let _0x3ad274=_0x2dbd8&&_0x562bdb[_0x2dbd8]?_0x562bdb[_0x2dbd8]:undefined;_0xfa4ec7&&_0x3894c8&&(_0x3ad274=_0x3894c8);const _0xc2278b=_0xfa4ec7?_0x3894c8??_0x3ad274:_0x3ad274,_0x49f874=!_0x5cbbe6&&!_0x41e225&&_0xbcc40&&_0x2dbd8===_0xbcc40,_0x3423fc=_0x5cbbe6||(_0x49f874?_0xbcc40:undefined)||(_0xfa4ec7?_0xec8b5b:undefined),_0x263747=_0xc2278b?.[_0x2ae79e(0x129)],_0x163bb2=_0x1682db?resolveTopLevelAppCode(_0x3f1597):undefined,_0x39410d=_0x28345d?resolveTopLevelAppCode(_0x3e4165):undefined,_0xd7e11d=_0x5cbbe6||_0x41e225?_0x263747:undefined,_0x4cbbcd=!_0x5cbbe6&&!_0x41e225?_0x263747:undefined,_0x5eb249=_0xfa4ec7||_0xd7e11d||_0x163bb2||_0x4cbbcd||_0x39410d||undefined,_0x5b8bb1=_0x1682db?stringConfigValue(_0x3f1597[_0x2ae79e(0x113)]):undefined,_0x5ee11a=_0x28345d?stringConfigValue(_0x3e4165[_0x2ae79e(0x113)]):undefined,_0x465518=_0x1c19a4[_0x2ae79e(0x113)]||_0xc2278b?.['env']||_0x5b8bb1||_0x5d12ee(_0x2ae79e(0x12b))||_0x5ee11a||_0x58853f['env']||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x113)],_0x3eb82f=_0xc2278b?.['locale']||_0x58853f[_0x2ae79e(0x122)]||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x122)],_0x3936b0=_0x5d12ee(_0x2ae79e(0x11f))||_0xc2278b?.['cookie']||_0x58853f['cookie']||undefined,_0x44796d=_0x5d12ee(_0x2ae79e(0x109))||_0xc2278b?.['accessKey']||_0x58853f['accessKey']||undefined,_0x33411f=_0x1c19a4[_0x2ae79e(0x10e)]||_0x5d12ee(_0x2ae79e(0x133))||_0xc2278b?.[_0x2ae79e(0x10e)]||_0x58853f[_0x2ae79e(0x10e)],_0x15bb3e=normalizeLegacyOutputFormat(_0x33411f),_0x2bfb90=_0x5d12ee(_0x2ae79e(0x127))||_0xc2278b?.[_0x2ae79e(0x11e)]||_0x58853f['pageSize'],_0x4aa81b=_0x2bfb90?Number(_0x2bfb90)||undefined:undefined,_0x2f42e7=_0x33368a?[...configuredRiskCeilings(_0x33368a['globalConfig']),...configuredRiskCeilings(_0x33368a[_0x2ae79e(0x117)])]:configuredRiskCeilings(_0x58853f),_0x20e517=resolveRiskCeiling(..._0x2f42e7,_0xc2278b?.[_0x2ae79e(0x118)]),_0x30da00=resolveRiskCeiling(_0x20e517,_0x5d12ee(_0x2ae79e(0x110)),_0x5d12ee(_0x2ae79e(0x119))),_0xf9af6f=_0x5d12ee('VERBOSE'),_0x4acad1=_0xf9af6f==='1'||_0xf9af6f==='true',_0x252b23=_0xc2278b?.[_0x2ae79e(0x12f)]||_0x58853f[_0x2ae79e(0x12f)]||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x12f)],_0x1f79ae=isDaily(normalizeEnv(String(_0x465518)))?_0x2ae79e(0x130):_0x2ae79e(0x123);return{'appCode':typeof _0x5eb249===_0x2ae79e(0x10b)&&_0x5eb249['trim']()?_0x5eb249[_0x2ae79e(0x124)]():undefined,'env':_0x1f79ae,'locale':_0x3eb82f,'cookie':_0x3936b0,'accessKey':_0x44796d,'format':_0x15bb3e,'pageSize':_0x4aa81b,'riskLevel':_0x30da00,'verbose':_0x4acad1,'apiDir':_0x252b23,'apps':_0x562bdb,'defaultApp':_0x59b711,'currentApp':_0x5b0c5e?_0x2dbd8:undefined,'explicitAppName':_0x3423fc};}
@@ -1 +1 @@
1
- (function(_0x33795d,_0x4f4319){const _0x55bc55=a217_0x47bd,_0x405745=_0x33795d();while(!![]){try{const _0x175d5f=parseInt(_0x55bc55(0x1b9))/0x1*(-parseInt(_0x55bc55(0x1b7))/0x2)+-parseInt(_0x55bc55(0x1b5))/0x3*(parseInt(_0x55bc55(0x1bb))/0x4)+-parseInt(_0x55bc55(0x1bd))/0x5+parseInt(_0x55bc55(0x1b6))/0x6+-parseInt(_0x55bc55(0x1bf))/0x7+-parseInt(_0x55bc55(0x1be))/0x8*(-parseInt(_0x55bc55(0x1b8))/0x9)+parseInt(_0x55bc55(0x1b3))/0xa;if(_0x175d5f===_0x4f4319)break;else _0x405745['push'](_0x405745['shift']());}catch(_0x5560df){_0x405745['push'](_0x405745['shift']());}}}(a217_0x3f28,0x7f4e9));function a217_0x3f28(){const _0x4f6b68=['148696EyOwCo','../auth/get-cookie.js','4657230EnDYsO','6653776fvMtgf','5255992pYoosC','18392510UmLImG','authRequired','24cXpbfx','714936TENPaK','2oqKUvq','9OAvDcH','288986lQCJoT','cookie'];a217_0x3f28=function(){return _0x4f6b68;};return a217_0x3f28();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a217_0x47bd(_0x412dff,_0x54cf45){_0x412dff=_0x412dff-0x1b3;const _0x3f28e0=a217_0x3f28();let _0x47bdd7=_0x3f28e0[_0x412dff];return _0x47bdd7;}export async function buildAuth(_0xe0ea3d){const _0x2e3348=a217_0x47bd,{getCookie:_0x1ba485}=await import(_0x2e3348(0x1bc)),_0x52d7e2=_0xe0ea3d[_0x2e3348(0x1ba)]||_0x1ba485(),_0x3dde82=_0x52d7e2?await getIsSessionValid():![];return{'cookie':_0x52d7e2,'isLoggedIn':_0x3dde82,async 'getOrLogin'(){const _0x23514a=_0x2e3348;if(_0x52d7e2&&_0x3dde82)return _0x52d7e2;throw CliErrors[_0x23514a(0x1b4)]();}};}
1
+ (function(_0x35ea6d,_0x36c747){const _0x40a9cf=a217_0x3701,_0x264b00=_0x35ea6d();while(!![]){try{const _0x274649=-parseInt(_0x40a9cf(0x1f9))/0x1+-parseInt(_0x40a9cf(0x1fb))/0x2+-parseInt(_0x40a9cf(0x1f7))/0x3+parseInt(_0x40a9cf(0x1f8))/0x4*(-parseInt(_0x40a9cf(0x1f1))/0x5)+-parseInt(_0x40a9cf(0x1fa))/0x6+parseInt(_0x40a9cf(0x1f6))/0x7*(-parseInt(_0x40a9cf(0x1f3))/0x8)+parseInt(_0x40a9cf(0x1f4))/0x9;if(_0x274649===_0x36c747)break;else _0x264b00['push'](_0x264b00['shift']());}catch(_0x2050b3){_0x264b00['push'](_0x264b00['shift']());}}}(a217_0x4108,0x3c001));import{getIsSessionValid}from'../auth/is-session-valid.js';function a217_0x3701(_0x29f641,_0x35a663){_0x29f641=_0x29f641-0x1f1;const _0x410892=a217_0x4108();let _0x3701c4=_0x410892[_0x29f641];return _0x3701c4;}import{CliErrors}from'../errors.js';function a217_0x4108(){const _0x1e6912=['187020JGSdhq','cookie','824NMFIkV','18101790hChFom','authRequired','26789mOoLnb','1411356rdjboX','16QIwHNX','196359zZpRRi','1752750VWcbOv','525632xuKTUp'];a217_0x4108=function(){return _0x1e6912;};return a217_0x4108();}export async function buildAuth(_0x48601a){const _0x417d0e=a217_0x3701,{getCookie:_0x1e868f}=await import('../auth/get-cookie.js'),_0xe26d9=_0x48601a[_0x417d0e(0x1f2)]||_0x1e868f(),_0x50948e=_0xe26d9?await getIsSessionValid():![];return{'cookie':_0xe26d9,'isLoggedIn':_0x50948e,async 'getOrLogin'(){const _0x1d4d9b=_0x417d0e;if(_0xe26d9&&_0x50948e)return _0xe26d9;throw CliErrors[_0x1d4d9b(0x1f5)]();}};}
@@ -1 +1 @@
1
- const a218_0x3f5852=a218_0x33e5;(function(_0x127662,_0x4801f5){const _0xf75ab9=a218_0x33e5,_0x30f07d=_0x127662();while(!![]){try{const _0x2d8c3b=-parseInt(_0xf75ab9(0xbd))/0x1*(parseInt(_0xf75ab9(0xa3))/0x2)+parseInt(_0xf75ab9(0xb4))/0x3+parseInt(_0xf75ab9(0xbf))/0x4+-parseInt(_0xf75ab9(0x8c))/0x5+parseInt(_0xf75ab9(0x8f))/0x6*(-parseInt(_0xf75ab9(0x95))/0x7)+parseInt(_0xf75ab9(0x9f))/0x8*(-parseInt(_0xf75ab9(0xa1))/0x9)+-parseInt(_0xf75ab9(0x9e))/0xa*(-parseInt(_0xf75ab9(0x97))/0xb);if(_0x2d8c3b===_0x4801f5)break;else _0x30f07d['push'](_0x30f07d['shift']());}catch(_0x16d975){_0x30f07d['push'](_0x30f07d['shift']());}}}(a218_0x5d00,0x46b1a));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=a218_0x3f5852(0xaf);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2beccd){for(const _0x4be47b of CONFIG_NAMES){const _0x5cdba6=resolve(_0x2beccd,_0x4be47b);if(existsSync(_0x5cdba6))return _0x5cdba6;}return undefined;}export function findProjectRootDirectory(_0x520f58=process[a218_0x3f5852(0xad)]()){let _0x15a26e=resolve(_0x520f58);const {root:_0x14df09}=parse(_0x15a26e),_0x218fe2=homedir();while(!![]){if(resolveConfigPath(_0x15a26e)){if(_0x15a26e===_0x218fe2)break;return _0x15a26e;}if(_0x15a26e===_0x14df09||_0x15a26e===_0x218fe2)break;const _0x17d2bc=dirname(_0x15a26e);if(_0x17d2bc===_0x15a26e)break;_0x15a26e=_0x17d2bc;}return resolve(_0x520f58);}export function getProjectConfigPath(){const _0x450d33=a218_0x3f5852;return resolveConfigPath(process[_0x450d33(0xad)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3f7494){const _0x54ee1a=a218_0x3f5852;if(!existsSync(_0x3f7494))return{'status':_0x54ee1a(0xae)};try{const _0x1d6628=readFileSync(_0x3f7494,{'encoding':_0x54ee1a(0xa9)});if(!_0x1d6628?.[_0x54ee1a(0xa7)]())return{'status':_0x54ee1a(0xa4)};const _0x58d770=JSON['parse'](_0x1d6628);return{'status':'ok','data':_0x58d770};}catch(_0x31978c){return{'status':'error','message':_0x31978c instanceof Error?_0x31978c[_0x54ee1a(0x9c)]:String(_0x31978c)};}}function parseCliConfigJsonFile(_0x453530,_0x46a957,_0x22b8d2){const _0x3e987b=a218_0x3f5852,_0x548269=inspectCliConfigJsonFile(_0x453530);if(_0x548269[_0x3e987b(0x90)]==='missing'||_0x548269[_0x3e987b(0x90)]===_0x3e987b(0xa4))return{};if(_0x548269[_0x3e987b(0x90)]==='ok')return _0x548269[_0x3e987b(0x9b)];return _0x46a957==='warn'&&_0x22b8d2&&console[_0x3e987b(0x96)](CLI_BIN_NAME+':\x20'+_0x22b8d2+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x453530+_0x3e987b(0xba)+_0x548269[_0x3e987b(0x9c)]),{};}function normalizeLegacyConfigShape(_0x3856b7){const _0x1233bb=a218_0x3f5852;if(!_0x3856b7||typeof _0x3856b7!=='object')return{'config':{},'migrated':![]};const _0x449548={..._0x3856b7},_0x3c95c7=_0x449548[_0x1233bb(0x98)]&&typeof _0x449548[_0x1233bb(0x98)]===_0x1233bb(0xa6)?{..._0x449548['apps']}:{},_0x2216c6=Object[_0x1233bb(0xbb)](_0x3c95c7)['length'],_0x2e49ca=_0x449548['appcode']||_0x449548['app'];let _0x108165=![];if(_0x2e49ca&&_0x2216c6===0x0){const _0x27b6bf=typeof _0x449548[_0x1233bb(0xaa)]===_0x1233bb(0x9a)&&_0x449548[_0x1233bb(0xaa)][_0x1233bb(0xa7)]()?_0x449548['defaultApp']:String(_0x2e49ca)[_0x1233bb(0xa7)]();_0x3c95c7[_0x27b6bf]={'appcode':String(_0x2e49ca)[_0x1233bb(0xa7)](),..._0x449548[_0x1233bb(0xbc)]!=null?{'env':_0x449548[_0x1233bb(0xbc)]}:{},..._0x449548['apiDir']!=null?{'apiDir':_0x449548[_0x1233bb(0x8d)]}:{},..._0x449548['cookie']!=null?{'cookie':_0x449548[_0x1233bb(0xac)]}:{},..._0x449548[_0x1233bb(0xa8)]!=null?{'accessKey':_0x449548[_0x1233bb(0xa8)]}:{},..._0x449548[_0x1233bb(0xb7)]!=null?{'format':_0x449548[_0x1233bb(0xb7)]}:{},..._0x449548[_0x1233bb(0xb0)]!=null?{'pageSize':_0x449548[_0x1233bb(0xb0)]}:{},..._0x449548[_0x1233bb(0xb8)]!=null?{'riskLevel':_0x449548[_0x1233bb(0xb8)]}:{},..._0x449548[_0x1233bb(0xb9)]!=null?{'locale':_0x449548[_0x1233bb(0xb9)]}:{}},_0x449548[_0x1233bb(0x98)]=_0x3c95c7,delete _0x449548[_0x1233bb(0xaa)],_0x108165=!![];}return('appcode'in _0x449548||_0x1233bb(0xb2)in _0x449548)&&(delete _0x449548[_0x1233bb(0x92)],delete _0x449548[_0x1233bb(0xb2)],_0x108165=!![]),{'config':_0x449548,'migrated':_0x108165};}function writeNormalizedConfigIfNeeded(_0x5b0a5c,_0x3ecf2f){const _0x3f0814=a218_0x3f5852,_0x22f328=JSON[_0x3f0814(0xab)](_0x3ecf2f,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3f0814(0x93)](_0x5b0a5c)===_0x22f328)return;writeConfigFile(_0x5b0a5c,_0x3ecf2f),normalizedWriteCache[_0x3f0814(0x99)](_0x5b0a5c,_0x22f328);}function a218_0x5d00(){const _0x13da5e=['locale','\x0a\x20\x20','keys','env','43546eFeRZU','appDomain','485184lvSmCt','411845HCBRvb','apiDir','migrated','153390YGaGXv','status','skillDomain','appcode','get','length','21xqEVkW','error','22VPpBHd','apps','set','string','data','message','inherit','3530020IAEbrV','24QLfFhK','apiDomain','582633GUpozk','project','12nmFEoM','empty','Global','object','trim','accessKey','utf8','defaultApp','stringify','cookie','cwd','missing','.rabetbase.json','pageSize','config','app','kbDomain','230439uVnddl','silent','warn','format','riskLevel'];a218_0x5d00=function(){return _0x13da5e;};return a218_0x5d00();}function parseAndNormalizeConfig(_0x5eda0b,_0x28b8ce,_0x3bd4f9){const _0x17b03b=a218_0x3f5852,_0x3102ee=parseCliConfigJsonFile(_0x5eda0b,_0x28b8ce,_0x3bd4f9),_0x575ed7=normalizeLegacyConfigShape(_0x3102ee);if(_0x575ed7[_0x17b03b(0x8e)])try{writeNormalizedConfigIfNeeded(_0x5eda0b,_0x575ed7[_0x17b03b(0xb1)]);}catch{}return _0x575ed7[_0x17b03b(0xb1)];}export function loadRawConfigLayers(_0x47ac5f){const _0x248638=a218_0x3f5852;let _0x49e331={},_0x5551c8={};const _0x2d7040=resolveConfigPath(homedir());_0x2d7040&&(_0x49e331=parseAndNormalizeConfig(_0x2d7040,_0x248638(0xb6),_0x248638(0xa5)));const _0x51de1=_0x47ac5f??findProjectRootDirectory(),_0x566c0d=resolveConfigPath(_0x51de1);return _0x566c0d&&(_0x5551c8=parseAndNormalizeConfig(_0x566c0d,_0x248638(0xb6),'Project')),{'globalPath':_0x2d7040,'projectPath':_0x566c0d,'globalConfig':_0x49e331,'projectConfig':_0x5551c8};}const INHERIT_WHITELIST=[a218_0x3f5852(0xac),a218_0x3f5852(0xa8),a218_0x3f5852(0xb9),a218_0x3f5852(0xb7),a218_0x3f5852(0xb8),'pageSize','region','userDomain',a218_0x3f5852(0xa0),'runtimeDomain',a218_0x3f5852(0x91),a218_0x3f5852(0xb3),a218_0x3f5852(0xbe)];export function mergeRawConfigLayers(_0x4bb468){const _0x11839b=a218_0x3f5852,{globalConfig:_0x77038a,projectConfig:_0x10c06}=_0x4bb468,_0x5ccf7d=!!_0x4bb468['projectPath']||Object[_0x11839b(0xbb)](_0x10c06)[_0x11839b(0x94)]>0x0;if(!_0x5ccf7d)return mergeGlobalOnly(_0x77038a);return mergeProjectFirst(_0x77038a,_0x10c06);}function mergeGlobalOnly(_0x560e15){const _0x5787f4=a218_0x3f5852,_0x4ce2ba={..._0x560e15};delete _0x4ce2ba[_0x5787f4(0x9d)];const _0x1bed70=_0x560e15[_0x5787f4(0x98)]&&typeof _0x560e15[_0x5787f4(0x98)]===_0x5787f4(0xa6)?_0x560e15[_0x5787f4(0x98)]:{};if(Object['keys'](_0x1bed70)['length']>0x0)_0x4ce2ba[_0x5787f4(0x98)]=_0x1bed70;if(_0x560e15[_0x5787f4(0xaa)])_0x4ce2ba[_0x5787f4(0xaa)]=_0x560e15[_0x5787f4(0xaa)];return _0x4ce2ba;}function mergeProjectFirst(_0x38c241,_0x5a20e8){const _0x18344a=a218_0x3f5852,_0x1c7180={..._0x5a20e8};delete _0x1c7180[_0x18344a(0x9d)];for(const _0x3bf6e1 of INHERIT_WHITELIST){!(_0x3bf6e1 in _0x1c7180)&&_0x3bf6e1 in _0x38c241&&(_0x1c7180[_0x3bf6e1]=_0x38c241[_0x3bf6e1]);}const _0x2c529d=_0x5a20e8[_0x18344a(0x98)]&&typeof _0x5a20e8[_0x18344a(0x98)]===_0x18344a(0xa6)?_0x5a20e8[_0x18344a(0x98)]:{};return Object[_0x18344a(0xbb)](_0x2c529d)[_0x18344a(0x94)]>0x0?_0x1c7180[_0x18344a(0x98)]=_0x2c529d:delete _0x1c7180[_0x18344a(0x98)],_0x18344a(0xaa)in _0x5a20e8?_0x1c7180[_0x18344a(0xaa)]=_0x5a20e8[_0x18344a(0xaa)]:delete _0x1c7180[_0x18344a(0xaa)],_0x1c7180;}export function readRawConfigWithLayers(_0x19f470){const _0x31dceb=loadRawConfigLayers(_0x19f470);return{'config':mergeRawConfigLayers(_0x31dceb),'layers':_0x31dceb};}function a218_0x33e5(_0x5b9caa,_0x574062){_0x5b9caa=_0x5b9caa-0x8c;const _0x5d00dd=a218_0x5d00();let _0x33e5e2=_0x5d00dd[_0x5b9caa];return _0x33e5e2;}export function readRawConfig(_0x542998){return mergeRawConfigLayers(loadRawConfigLayers(_0x542998));}export function readConfigFile(_0x4eee4e){const _0x13f98c=a218_0x3f5852;return parseAndNormalizeConfig(_0x4eee4e,_0x13f98c(0xb5));}export function writeConfigFile(_0x404a93,_0x12d91c){const _0x388f26=a218_0x3f5852,_0x3cca92=dirname(_0x404a93);!existsSync(_0x3cca92)&&mkdirSync(_0x3cca92,{'recursive':!![]});const _0x1209fd=_0x404a93+'.tmp';try{writeFileSync(_0x1209fd,JSON[_0x388f26(0xab)](_0x12d91c,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x1209fd,_0x404a93);}catch(_0x572ee5){try{unlinkSync(_0x1209fd);}catch{}throw _0x572ee5;}}export function resolveWriteConfigPath(_0x39e2c8){const _0x36fab0=a218_0x3f5852,_0x4a127f=_0x39e2c8===_0x36fab0(0xa2)?process[_0x36fab0(0xad)]():homedir(),_0x10350d=resolveConfigPath(_0x4a127f);return _0x10350d??resolve(_0x4a127f,NEW_CONFIG_NAME);}
1
+ const a218_0x34181e=a218_0x3ed5;(function(_0x23cf1f,_0x3dc203){const _0x6249ed=a218_0x3ed5,_0x416ee4=_0x23cf1f();while(!![]){try{const _0x224ca9=parseInt(_0x6249ed(0x9d))/0x1*(-parseInt(_0x6249ed(0xad))/0x2)+parseInt(_0x6249ed(0x93))/0x3+parseInt(_0x6249ed(0x8b))/0x4*(parseInt(_0x6249ed(0xaf))/0x5)+-parseInt(_0x6249ed(0x9c))/0x6*(parseInt(_0x6249ed(0x8d))/0x7)+parseInt(_0x6249ed(0x8c))/0x8+-parseInt(_0x6249ed(0x80))/0x9*(-parseInt(_0x6249ed(0xa1))/0xa)+-parseInt(_0x6249ed(0x99))/0xb;if(_0x224ca9===_0x3dc203)break;else _0x416ee4['push'](_0x416ee4['shift']());}catch(_0x245d27){_0x416ee4['push'](_0x416ee4['shift']());}}}(a218_0x265b,0xe3dfa));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=a218_0x34181e(0x94);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2e047c){for(const _0xeeea58 of CONFIG_NAMES){const _0x31cecd=resolve(_0x2e047c,_0xeeea58);if(existsSync(_0x31cecd))return _0x31cecd;}return undefined;}export function findProjectRootDirectory(_0x13c284=process[a218_0x34181e(0x87)]()){let _0x5b5534=resolve(_0x13c284);const {root:_0x1c8851}=parse(_0x5b5534),_0x665e18=homedir();while(!![]){if(resolveConfigPath(_0x5b5534)){if(_0x5b5534===_0x665e18)break;return _0x5b5534;}if(_0x5b5534===_0x1c8851||_0x5b5534===_0x665e18)break;const _0x4bb15f=dirname(_0x5b5534);if(_0x4bb15f===_0x5b5534)break;_0x5b5534=_0x4bb15f;}return resolve(_0x13c284);}export function getProjectConfigPath(){const _0x2b9e10=a218_0x34181e;return resolveConfigPath(process[_0x2b9e10(0x87)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x13bed0){const _0x12b395=a218_0x34181e;if(!existsSync(_0x13bed0))return{'status':_0x12b395(0x89)};try{const _0x2ef8da=readFileSync(_0x13bed0,{'encoding':_0x12b395(0xab)});if(!_0x2ef8da?.[_0x12b395(0xb2)]())return{'status':_0x12b395(0x86)};const _0x5ca8c3=JSON['parse'](_0x2ef8da);return{'status':'ok','data':_0x5ca8c3};}catch(_0x4f9c40){return{'status':_0x12b395(0x8a),'message':_0x4f9c40 instanceof Error?_0x4f9c40[_0x12b395(0xaa)]:String(_0x4f9c40)};}}function parseCliConfigJsonFile(_0x41ef57,_0x4d35ac,_0x52c5dd){const _0x2d8f40=a218_0x34181e,_0xec8c18=inspectCliConfigJsonFile(_0x41ef57);if(_0xec8c18[_0x2d8f40(0xa9)]===_0x2d8f40(0x89)||_0xec8c18[_0x2d8f40(0xa9)]===_0x2d8f40(0x86))return{};if(_0xec8c18['status']==='ok')return _0xec8c18[_0x2d8f40(0x8f)];return _0x4d35ac===_0x2d8f40(0x92)&&_0x52c5dd&&console[_0x2d8f40(0x8a)](CLI_BIN_NAME+':\x20'+_0x52c5dd+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x41ef57+_0x2d8f40(0x90)+_0xec8c18['message']),{};}function a218_0x3ed5(_0x3204cf,_0x5cbe3a){_0x3204cf=_0x3204cf-0x7f;const _0x265bca=a218_0x265b();let _0x3ed5b1=_0x265bca[_0x3204cf];return _0x3ed5b1;}function normalizeLegacyConfigShape(_0x330c36){const _0x34aada=a218_0x34181e;if(!_0x330c36||typeof _0x330c36!==_0x34aada(0xae))return{'config':{},'migrated':![]};const _0x145600={..._0x330c36},_0x306392=_0x145600[_0x34aada(0x83)]&&typeof _0x145600['apps']===_0x34aada(0xae)?{..._0x145600['apps']}:{},_0x3587b9=Object[_0x34aada(0x96)](_0x306392)['length'],_0x21189b=_0x145600['appcode']||_0x145600[_0x34aada(0x98)];let _0xcb5419=![];if(_0x21189b&&_0x3587b9===0x0){const _0x107422=typeof _0x145600[_0x34aada(0xa5)]===_0x34aada(0x81)&&_0x145600[_0x34aada(0xa5)]['trim']()?_0x145600['defaultApp']:String(_0x21189b)[_0x34aada(0xb2)]();_0x306392[_0x107422]={'appcode':String(_0x21189b)['trim'](),..._0x145600[_0x34aada(0x9e)]!=null?{'env':_0x145600[_0x34aada(0x9e)]}:{},..._0x145600[_0x34aada(0x82)]!=null?{'apiDir':_0x145600['apiDir']}:{},..._0x145600[_0x34aada(0x95)]!=null?{'cookie':_0x145600[_0x34aada(0x95)]}:{},..._0x145600[_0x34aada(0xa6)]!=null?{'accessKey':_0x145600[_0x34aada(0xa6)]}:{},..._0x145600[_0x34aada(0xac)]!=null?{'format':_0x145600[_0x34aada(0xac)]}:{},..._0x145600[_0x34aada(0xa7)]!=null?{'pageSize':_0x145600['pageSize']}:{},..._0x145600['riskLevel']!=null?{'riskLevel':_0x145600[_0x34aada(0xb1)]}:{},..._0x145600[_0x34aada(0xa0)]!=null?{'locale':_0x145600['locale']}:{}},_0x145600[_0x34aada(0x83)]=_0x306392,delete _0x145600['defaultApp'],_0xcb5419=!![];}return('appcode'in _0x145600||_0x34aada(0x98)in _0x145600)&&(delete _0x145600['appcode'],delete _0x145600[_0x34aada(0x98)],_0xcb5419=!![]),{'config':_0x145600,'migrated':_0xcb5419};}function writeNormalizedConfigIfNeeded(_0x39413c,_0x52e941){const _0x4ade7f=a218_0x34181e,_0x377a3d=JSON[_0x4ade7f(0xb3)](_0x52e941,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x39413c)===_0x377a3d)return;writeConfigFile(_0x39413c,_0x52e941),normalizedWriteCache[_0x4ade7f(0xa8)](_0x39413c,_0x377a3d);}function parseAndNormalizeConfig(_0x2fca6e,_0x5b92a1,_0x5b9fce){const _0x1c2afc=a218_0x34181e,_0x139ca5=parseCliConfigJsonFile(_0x2fca6e,_0x5b92a1,_0x5b9fce),_0x4e72ce=normalizeLegacyConfigShape(_0x139ca5);if(_0x4e72ce[_0x1c2afc(0x84)])try{writeNormalizedConfigIfNeeded(_0x2fca6e,_0x4e72ce[_0x1c2afc(0xa3)]);}catch{}return _0x4e72ce[_0x1c2afc(0xa3)];}export function loadRawConfigLayers(_0x1c11e4){const _0x175c14=a218_0x34181e;let _0x502949={},_0xd1ec00={};const _0xee63e5=resolveConfigPath(homedir());_0xee63e5&&(_0x502949=parseAndNormalizeConfig(_0xee63e5,_0x175c14(0x92),'Global'));const _0x1c9e3d=_0x1c11e4??findProjectRootDirectory(),_0x1e4f2e=resolveConfigPath(_0x1c9e3d);return _0x1e4f2e&&(_0xd1ec00=parseAndNormalizeConfig(_0x1e4f2e,_0x175c14(0x92),_0x175c14(0x8e))),{'globalPath':_0xee63e5,'projectPath':_0x1e4f2e,'globalConfig':_0x502949,'projectConfig':_0xd1ec00};}const INHERIT_WHITELIST=['cookie','accessKey','locale',a218_0x34181e(0xac),a218_0x34181e(0xb1),a218_0x34181e(0xa7),a218_0x34181e(0x9f),a218_0x34181e(0x85),a218_0x34181e(0x9a),a218_0x34181e(0x9b),'skillDomain',a218_0x34181e(0x91),a218_0x34181e(0xb0)];export function mergeRawConfigLayers(_0x4a5908){const _0x4c9a44=a218_0x34181e,{globalConfig:_0x3163f9,projectConfig:_0x35e7af}=_0x4a5908,_0x609aed=!!_0x4a5908[_0x4c9a44(0x88)]||Object['keys'](_0x35e7af)[_0x4c9a44(0xa2)]>0x0;if(!_0x609aed)return mergeGlobalOnly(_0x3163f9);return mergeProjectFirst(_0x3163f9,_0x35e7af);}function a218_0x265b(){const _0x5999dc=['project','app','1117996aBjYKi','apiDomain','runtimeDomain','10321386byFhIU','102farHaC','env','region','locale','130xixnNc','length','config','.tmp','defaultApp','accessKey','pageSize','set','status','message','utf8','format','16260WftgLq','object','185YHGkUK','appDomain','riskLevel','trim','stringify','inherit','779607ZDLEQL','string','apiDir','apps','migrated','userDomain','empty','cwd','projectPath','missing','error','97228BOyOgE','3327408UztkRs','7OLpNrU','Project','data','\x0a\x20\x20','kbDomain','warn','3429339KwSlQV','.rabetbase.json','cookie','keys'];a218_0x265b=function(){return _0x5999dc;};return a218_0x265b();}function mergeGlobalOnly(_0x1f505d){const _0x1edeaa=a218_0x34181e,_0x3ae3a7={..._0x1f505d};delete _0x3ae3a7['inherit'];const _0x5b01c1=_0x1f505d[_0x1edeaa(0x83)]&&typeof _0x1f505d[_0x1edeaa(0x83)]===_0x1edeaa(0xae)?_0x1f505d[_0x1edeaa(0x83)]:{};if(Object['keys'](_0x5b01c1)[_0x1edeaa(0xa2)]>0x0)_0x3ae3a7[_0x1edeaa(0x83)]=_0x5b01c1;if(_0x1f505d[_0x1edeaa(0xa5)])_0x3ae3a7[_0x1edeaa(0xa5)]=_0x1f505d[_0x1edeaa(0xa5)];return _0x3ae3a7;}function mergeProjectFirst(_0x184b63,_0x17021e){const _0x401d70=a218_0x34181e,_0x3c96f2={..._0x17021e};delete _0x3c96f2[_0x401d70(0x7f)];for(const _0x46b716 of INHERIT_WHITELIST){!(_0x46b716 in _0x3c96f2)&&_0x46b716 in _0x184b63&&(_0x3c96f2[_0x46b716]=_0x184b63[_0x46b716]);}const _0x3f4759=_0x17021e[_0x401d70(0x83)]&&typeof _0x17021e['apps']===_0x401d70(0xae)?_0x17021e['apps']:{};return Object[_0x401d70(0x96)](_0x3f4759)['length']>0x0?_0x3c96f2['apps']=_0x3f4759:delete _0x3c96f2[_0x401d70(0x83)],'defaultApp'in _0x17021e?_0x3c96f2[_0x401d70(0xa5)]=_0x17021e[_0x401d70(0xa5)]:delete _0x3c96f2['defaultApp'],_0x3c96f2;}export function readRawConfigWithLayers(_0x26a615){const _0x5a34a4=loadRawConfigLayers(_0x26a615);return{'config':mergeRawConfigLayers(_0x5a34a4),'layers':_0x5a34a4};}export function readRawConfig(_0x6c543f){return mergeRawConfigLayers(loadRawConfigLayers(_0x6c543f));}export function readConfigFile(_0x557f3e){return parseAndNormalizeConfig(_0x557f3e,'silent');}export function writeConfigFile(_0x511878,_0x3cc6d7){const _0x53ba91=a218_0x34181e,_0x3657c0=dirname(_0x511878);!existsSync(_0x3657c0)&&mkdirSync(_0x3657c0,{'recursive':!![]});const _0x15b99b=_0x511878+_0x53ba91(0xa4);try{writeFileSync(_0x15b99b,JSON[_0x53ba91(0xb3)](_0x3cc6d7,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x15b99b,_0x511878);}catch(_0x434691){try{unlinkSync(_0x15b99b);}catch{}throw _0x434691;}}export function resolveWriteConfigPath(_0x5e5b33){const _0x4cd0e6=a218_0x34181e,_0x12a342=_0x5e5b33===_0x4cd0e6(0x97)?process[_0x4cd0e6(0x87)]():homedir(),_0x2f56a5=resolveConfigPath(_0x12a342);return _0x2f56a5??resolve(_0x12a342,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a219_0x37b6f2=a219_0x33d4;function a219_0x443b(){const _0x313269=['raw','appcode','argv','appDomain','trim','platformDomain','657IBUEPv','./constant/env.js','keys','api.ts','filter','string','merged','app','cwd','env','template_base_url','892722nCSGsC','length','254248lPiTuD','apiDir','./utils/is-non-interactive.js','skillHubDomain','200808QpahDw','userDomain','./constant/domain.js','-api.ts','skillDomain','7hWJbUr','setRawCommand','cookie','runtimeDomain','join','3552625zyczhZ','projectConfig','560764LsheOE','1682958QzubzS','defaultApp','find','object','globalConfig','project','slice','entries','apps','apiDomain','1534346QmmUEy','agentDomain'];a219_0x443b=function(){return _0x313269;};return a219_0x443b();}(function(_0x1c0e6d,_0x2767c6){const _0x36feca=a219_0x33d4,_0x39f750=_0x1c0e6d();while(!![]){try{const _0x2fd7fd=-parseInt(_0x36feca(0xe8))/0x1+-parseInt(_0x36feca(0x103))/0x2+parseInt(_0x36feca(0xe6))/0x3+-parseInt(_0x36feca(0xf8))/0x4+-parseInt(_0x36feca(0xf6))/0x5+-parseInt(_0x36feca(0xf9))/0x6*(-parseInt(_0x36feca(0xf1))/0x7)+parseInt(_0x36feca(0xec))/0x8*(parseInt(_0x36feca(0x10b))/0x9);if(_0x2fd7fd===_0x2767c6)break;else _0x39f750['push'](_0x39f750['shift']());}catch(_0x46cc49){_0x39f750['push'](_0x39f750['shift']());}}}(a219_0x443b,0x836bf));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';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function a219_0x33d4(_0x5d649d,_0x4a1e1a){_0x5d649d=_0x5d649d-0xdf;const _0x443bef=a219_0x443b();let _0x33d464=_0x443bef[_0x5d649d];return _0x33d464;}function env(_0xbd5e30){return process.env[`RABETBASE_${_0xbd5e30}`]||process.env[`LOVRABET_${_0xbd5e30}`]||undefined;}function optionalString(_0xffddf8){const _0x1bebea=a219_0x33d4;return typeof _0xffddf8==='string'&&_0xffddf8['trim']()?_0xffddf8[_0x1bebea(0x109)]():undefined;}export async function createContext(_0x284ef5){const _0x4a5120=a219_0x33d4,{config:_0x440f31,layers:_0x57f3ff}=readRawConfigWithLayers(),_0x521bb9=buildConfig(_0x440f31,_0x284ef5,_0x57f3ff);await initGlobalEnvironment(_0x521bb9);const {getUserDomain:_0x2ea775,getApiDomain:_0x57466c}=await import(_0x4a5120(0xee)),_0x55368b={'apiDomain':_0x57466c(),'userDomain':_0x2ea775()},_0x5634af=await buildAuth(_0x521bb9);logger['setLogPath'](process[_0x4a5120(0xe3)]());const _0x2c4dde=(CLI_BIN_NAME+'\x20'+process[_0x4a5120(0x107)][_0x4a5120(0xff)](0x2)[_0x4a5120(0xf5)]('\x20'))[_0x4a5120(0x109)]();logger[_0x4a5120(0xf2)](_0x2c4dde);const {isNonInteractive:_0x420c9c}=await import(_0x4a5120(0xea)),_0x1e1961=_0x420c9c(_0x284ef5);return{'config':_0x521bb9,'auth':_0x5634af,'logger':logger,'env':_0x55368b,'nonInteractive':_0x1e1961};}export function buildConfigFromFlags(_0xc8b3c5){const {config:_0x4c4bdb,layers:_0x3b0bc6}=readRawConfigWithLayers();return buildConfig(_0x4c4bdb,_0xc8b3c5,_0x3b0bc6);}export async function initGlobalEnvironment(_0x450be1){const _0x56fd6a=a219_0x33d4,{initEnv:_0x3a8792}=await import(_0x56fd6a(0x10c));_0x3a8792(_0x450be1['env']);const {initDomains:_0x3c69e7}=await import(_0x56fd6a(0xee));_0x3c69e7({'region':normalizeLovrabetRegion(_0x450be1[_0x56fd6a(0x105)]?.['region']),'apiDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0x102)]),'userDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0xed)]),'runtimeDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0xf4)]),'skillDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0xf0)])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0xeb)])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.['agentDomain'])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0x10a)]),'kbDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.['kbDomain'])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0x104)])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0x10a)])||optionalString(_0x450be1[_0x56fd6a(0x105)]?.['runtimeDomain']),'appDomain':optionalString(_0x450be1[_0x56fd6a(0x105)]?.[_0x56fd6a(0x108)])});}export function getConfigAppCode(_0x341f18){const _0x73b023=a219_0x33d4,_0x41a1d7=readRawConfig(_0x341f18);if(_0x41a1d7[_0x73b023(0x101)]&&typeof _0x41a1d7[_0x73b023(0x101)]===_0x73b023(0xfc)){const _0x1e6a68=_0x41a1d7[_0x73b023(0xfa)];if(_0x1e6a68)return _0x41a1d7['apps'][_0x1e6a68]?.[_0x73b023(0x106)]?String(_0x41a1d7['apps'][_0x1e6a68]['appcode'])[_0x73b023(0x109)]():undefined;const _0x1e753a=Object['values'](_0x41a1d7[_0x73b023(0x101)]);if(_0x1e753a[_0x73b023(0xe7)]===0x1&&_0x1e753a[0x0]?.['appcode'])return String(_0x1e753a[0x0]['appcode'])[_0x73b023(0x109)]();}const _0x1bb8a9=_0x41a1d7[_0x73b023(0x106)]||_0x41a1d7[_0x73b023(0xe2)];if(typeof _0x1bb8a9!=='string'||_0x1bb8a9['trim']()==='')return undefined;return _0x1bb8a9[_0x73b023(0x109)]();}export function getMultiAppConfigs(_0xf5f027=a219_0x37b6f2(0xfe),_0x275dfd){const _0x1d3170=a219_0x37b6f2,_0x565a93=loadRawConfigLayers(_0x275dfd);let _0x37aae8,_0x54b011;if(_0xf5f027===_0x1d3170(0xe1)){const _0x4efa7d=_0x565a93[_0x1d3170(0xfd)]['apps']&&typeof _0x565a93['globalConfig'][_0x1d3170(0x101)]===_0x1d3170(0xfc)?_0x565a93[_0x1d3170(0xfd)][_0x1d3170(0x101)]:{},_0x4281b5=_0x565a93[_0x1d3170(0xf7)][_0x1d3170(0x101)]&&typeof _0x565a93[_0x1d3170(0xf7)]['apps']==='object'?_0x565a93[_0x1d3170(0xf7)][_0x1d3170(0x101)]:{};_0x37aae8={..._0x4efa7d,..._0x4281b5};const _0x2f720b=readRawConfig(_0x275dfd);_0x54b011=_0x2f720b[_0x1d3170(0xfa)];}else _0x37aae8=_0x565a93[_0x1d3170(0xf7)]['apps'],_0x54b011=_0x565a93['projectConfig'][_0x1d3170(0xfa)];!_0x54b011&&_0x37aae8&&typeof _0x37aae8===_0x1d3170(0xfc)&&Object['keys'](_0x37aae8)[_0x1d3170(0xe7)]===0x1&&(_0x54b011=Object[_0x1d3170(0x10d)](_0x37aae8)[0x0]);if(!_0x37aae8||typeof _0x37aae8!=='object'||Object[_0x1d3170(0x10d)](_0x37aae8)['length']===0x0)return null;return Object[_0x1d3170(0x100)](_0x37aae8)['map'](([_0xb7c3cf,_0x2d556f])=>({'name':_0xb7c3cf,'appcode':_0x2d556f?.[_0x1d3170(0x106)]||'','isDefault':_0xb7c3cf===_0x54b011,'env':_0x2d556f?.[_0x1d3170(0xe4)],'apiDir':_0x2d556f?.[_0x1d3170(0xe9)],'cookie':_0x2d556f?.[_0x1d3170(0xf3)]||undefined}))[_0x1d3170(0xdf)](_0x321335=>_0x321335['appcode']);}export function getTemplateBaseUrl(_0x4fca73){const _0x30423a=a219_0x37b6f2,_0x447308=readRawConfig(_0x4fca73);if(_0x447308[_0x30423a(0xe5)]&&typeof _0x447308[_0x30423a(0xe5)]===_0x30423a(0xe0))return _0x447308[_0x30423a(0xe5)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x4ce234,_0x307651,_0xfe8976){return{...resolveAppConfig({'raw':_0x4ce234,'flags':_0x307651,'layers':_0xfe8976,'readEnv':env}),'raw':_0x4ce234};}export function resolveApiFilePath(_0x4a1eb2,_0x1c826a){const _0x3276b7=a219_0x37b6f2,_0x1128ed=resolve(process[_0x3276b7(0xe3)](),_0x4a1eb2),_0x17d5c5=resolve(_0x1128ed,_0x3276b7(0x10e));if(!_0x1c826a)return _0x17d5c5;const _0x194c44=readRawConfig(),_0x17a045=_0x194c44[_0x3276b7(0x101)]&&typeof _0x194c44[_0x3276b7(0x101)]===_0x3276b7(0xfc)?_0x194c44[_0x3276b7(0x101)]:{},_0x31d918=Object[_0x3276b7(0x100)](_0x17a045)[_0x3276b7(0xfb)](([,_0x402690])=>_0x402690?.['appcode']===_0x1c826a);if(!_0x31d918)return _0x17d5c5;const [_0xcb6bba,_0x292dbd]=_0x31d918,_0x446a05=typeof _0x194c44[_0x3276b7(0xfa)]==='string'?_0x194c44[_0x3276b7(0xfa)]:undefined;if(_0x292dbd?.[_0x3276b7(0xe9)])return _0x17d5c5;if(_0x446a05&&_0xcb6bba!==_0x446a05)return resolve(_0x1128ed,_0xcb6bba+_0x3276b7(0xef));return _0x17d5c5;}
1
+ function a219_0x1050(){const _0x4c7288=['4120iZVDgv','slice','keys','2iBWmTq','entries','globalConfig','cookie','cwd','https://g.lovrabet.com/dist/lovrabet-skill','5806411ZfyURV','setRawCommand','4596LmWzpi','platformDomain','skillDomain','-api.ts','length','replace','join','userDomain','setLogPath','4RJriEv','object','values','string','defaultApp','api.ts','projectConfig','apiDomain','31716wIsLWo','project','raw','map','apps','apiDir','685NUaxst','appDomain','find','appcode','31176JlXyvw','903657oanjgi','env','filter','346885AkfHLs','23419blNLSS','agentDomain','trim','merged','runtimeDomain','kbDomain','region','2593791PWdYuH','template_base_url','argv','216uNIqTf','./constant/domain.js'];a219_0x1050=function(){return _0x4c7288;};return a219_0x1050();}function a219_0x3b3a(_0x295c3f,_0x4d330d){_0x295c3f=_0x295c3f-0x100;const _0x10505e=a219_0x1050();let _0x3b3a44=_0x10505e[_0x295c3f];return _0x3b3a44;}const a219_0x42d1ce=a219_0x3b3a;(function(_0x410c74,_0x7aef64){const _0x11584e=a219_0x3b3a,_0x584d4d=_0x410c74();while(!![]){try{const _0x4c0766=parseInt(_0x11584e(0x12f))/0x1*(-parseInt(_0x11584e(0x10b))/0x2)+-parseInt(_0x11584e(0x103))/0x3*(-parseInt(_0x11584e(0x11c))/0x4)+parseInt(_0x11584e(0x12a))/0x5*(parseInt(_0x11584e(0x12e))/0x6)+parseInt(_0x11584e(0x132))/0x7*(parseInt(_0x11584e(0x106))/0x8)+parseInt(_0x11584e(0x124))/0x9*(-parseInt(_0x11584e(0x108))/0xa)+-parseInt(_0x11584e(0x133))/0xb*(-parseInt(_0x11584e(0x113))/0xc)+-parseInt(_0x11584e(0x111))/0xd;if(_0x4c0766===_0x7aef64)break;else _0x584d4d['push'](_0x584d4d['shift']());}catch(_0x115224){_0x584d4d['push'](_0x584d4d['shift']());}}}(a219_0x1050,0xe27a1));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';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1a4132){return process.env[`RABETBASE_${_0x1a4132}`]||process.env[`LOVRABET_${_0x1a4132}`]||undefined;}function optionalString(_0x8b6d5c){const _0x150123=a219_0x3b3a;return typeof _0x8b6d5c===_0x150123(0x11f)&&_0x8b6d5c['trim']()?_0x8b6d5c['trim']():undefined;}export async function createContext(_0xe54f03){const _0x5b7340=a219_0x3b3a,{config:_0x359ea9,layers:_0x73f667}=readRawConfigWithLayers(),_0xf1b341=buildConfig(_0x359ea9,_0xe54f03,_0x73f667);await initGlobalEnvironment(_0xf1b341);const {getUserDomain:_0x244ab3,getApiDomain:_0x311acc}=await import(_0x5b7340(0x107)),_0x27e88e={'apiDomain':_0x311acc(),'userDomain':_0x244ab3()},_0x384c60=await buildAuth(_0xf1b341);logger[_0x5b7340(0x11b)](process[_0x5b7340(0x10f)]());const _0x3a689c=(CLI_BIN_NAME+'\x20'+process[_0x5b7340(0x105)][_0x5b7340(0x109)](0x2)[_0x5b7340(0x119)]('\x20'))[_0x5b7340(0x135)]();logger[_0x5b7340(0x112)](_0x3a689c);const {isNonInteractive:_0x1aeeca}=await import('./utils/is-non-interactive.js'),_0x20a290=_0x1aeeca(_0xe54f03);return{'config':_0xf1b341,'auth':_0x384c60,'logger':logger,'env':_0x27e88e,'nonInteractive':_0x20a290};}export function buildConfigFromFlags(_0x192ecb){const {config:_0x42bdd6,layers:_0x538f05}=readRawConfigWithLayers();return buildConfig(_0x42bdd6,_0x192ecb,_0x538f05);}export async function initGlobalEnvironment(_0x330dee){const _0x9b57a1=a219_0x3b3a,{initEnv:_0x5359d0}=await import('./constant/env.js');_0x5359d0(_0x330dee['env']);const {initDomains:_0x2b8c0d}=await import(_0x9b57a1(0x107));_0x2b8c0d({'region':normalizeLovrabetRegion(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x102)]),'apiDomain':optionalString(_0x330dee['raw']?.[_0x9b57a1(0x123)]),'userDomain':optionalString(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x11a)]),'runtimeDomain':optionalString(_0x330dee['raw']?.[_0x9b57a1(0x100)]),'skillDomain':optionalString(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x115)])||optionalString(_0x330dee[_0x9b57a1(0x126)]?.['skillHubDomain'])||optionalString(_0x330dee['raw']?.['agentDomain'])||optionalString(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x114)]),'kbDomain':optionalString(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x101)])||optionalString(_0x330dee['raw']?.[_0x9b57a1(0x134)])||optionalString(_0x330dee['raw']?.[_0x9b57a1(0x114)]),'appDomain':optionalString(_0x330dee[_0x9b57a1(0x126)]?.[_0x9b57a1(0x12b)])});}export function getConfigAppCode(_0x5e9a3d){const _0x4951e7=a219_0x3b3a,_0xc2198d=readRawConfig(_0x5e9a3d);if(_0xc2198d[_0x4951e7(0x128)]&&typeof _0xc2198d[_0x4951e7(0x128)]===_0x4951e7(0x11d)){const _0x506c04=_0xc2198d[_0x4951e7(0x120)];if(_0x506c04)return _0xc2198d[_0x4951e7(0x128)][_0x506c04]?.[_0x4951e7(0x12d)]?String(_0xc2198d[_0x4951e7(0x128)][_0x506c04]['appcode'])[_0x4951e7(0x135)]():undefined;const _0x288779=Object[_0x4951e7(0x11e)](_0xc2198d['apps']);if(_0x288779[_0x4951e7(0x117)]===0x1&&_0x288779[0x0]?.[_0x4951e7(0x12d)])return String(_0x288779[0x0][_0x4951e7(0x12d)])[_0x4951e7(0x135)]();}const _0x19e477=_0xc2198d[_0x4951e7(0x12d)]||_0xc2198d['app'];if(typeof _0x19e477!==_0x4951e7(0x11f)||_0x19e477['trim']()==='')return undefined;return _0x19e477[_0x4951e7(0x135)]();}export function getMultiAppConfigs(_0x248b3f=a219_0x42d1ce(0x125),_0x1e8236){const _0x2fbba9=a219_0x42d1ce,_0x5f0cc=loadRawConfigLayers(_0x1e8236);let _0x5edf81,_0x13e9d8;if(_0x248b3f===_0x2fbba9(0x136)){const _0x4716ff=_0x5f0cc[_0x2fbba9(0x10d)]['apps']&&typeof _0x5f0cc[_0x2fbba9(0x10d)][_0x2fbba9(0x128)]===_0x2fbba9(0x11d)?_0x5f0cc[_0x2fbba9(0x10d)][_0x2fbba9(0x128)]:{},_0x1a3092=_0x5f0cc[_0x2fbba9(0x122)][_0x2fbba9(0x128)]&&typeof _0x5f0cc[_0x2fbba9(0x122)][_0x2fbba9(0x128)]==='object'?_0x5f0cc['projectConfig'][_0x2fbba9(0x128)]:{};_0x5edf81={..._0x4716ff,..._0x1a3092};const _0x37677a=readRawConfig(_0x1e8236);_0x13e9d8=_0x37677a[_0x2fbba9(0x120)];}else _0x5edf81=_0x5f0cc[_0x2fbba9(0x122)][_0x2fbba9(0x128)],_0x13e9d8=_0x5f0cc[_0x2fbba9(0x122)][_0x2fbba9(0x120)];!_0x13e9d8&&_0x5edf81&&typeof _0x5edf81===_0x2fbba9(0x11d)&&Object[_0x2fbba9(0x10a)](_0x5edf81)[_0x2fbba9(0x117)]===0x1&&(_0x13e9d8=Object[_0x2fbba9(0x10a)](_0x5edf81)[0x0]);if(!_0x5edf81||typeof _0x5edf81!==_0x2fbba9(0x11d)||Object[_0x2fbba9(0x10a)](_0x5edf81)[_0x2fbba9(0x117)]===0x0)return null;return Object[_0x2fbba9(0x10c)](_0x5edf81)[_0x2fbba9(0x127)](([_0x28989a,_0x3c8112])=>({'name':_0x28989a,'appcode':_0x3c8112?.[_0x2fbba9(0x12d)]||'','isDefault':_0x28989a===_0x13e9d8,'env':_0x3c8112?.[_0x2fbba9(0x130)],'apiDir':_0x3c8112?.['apiDir'],'cookie':_0x3c8112?.[_0x2fbba9(0x10e)]||undefined}))[_0x2fbba9(0x131)](_0xf3bc12=>_0xf3bc12[_0x2fbba9(0x12d)]);}export function getTemplateBaseUrl(_0x3f581e){const _0x4b63bd=a219_0x42d1ce,_0x1b4264=readRawConfig(_0x3f581e);if(_0x1b4264[_0x4b63bd(0x104)]&&typeof _0x1b4264[_0x4b63bd(0x104)]===_0x4b63bd(0x11f))return _0x1b4264[_0x4b63bd(0x104)][_0x4b63bd(0x118)](/\/$/,'');return _0x4b63bd(0x110);}function buildConfig(_0x17a37c,_0x846bc2,_0x413ae6){return{...resolveAppConfig({'raw':_0x17a37c,'flags':_0x846bc2,'layers':_0x413ae6,'readEnv':env}),'raw':_0x17a37c};}export function resolveApiFilePath(_0x5292af,_0xf0050f){const _0x4c726e=a219_0x42d1ce,_0x271055=resolve(process[_0x4c726e(0x10f)](),_0x5292af),_0x4d9738=resolve(_0x271055,_0x4c726e(0x121));if(!_0xf0050f)return _0x4d9738;const _0x53292a=readRawConfig(),_0x334996=_0x53292a[_0x4c726e(0x128)]&&typeof _0x53292a['apps']===_0x4c726e(0x11d)?_0x53292a[_0x4c726e(0x128)]:{},_0x20caaa=Object[_0x4c726e(0x10c)](_0x334996)[_0x4c726e(0x12c)](([,_0x51328e])=>_0x51328e?.[_0x4c726e(0x12d)]===_0xf0050f);if(!_0x20caaa)return _0x4d9738;const [_0x499800,_0x1906e4]=_0x20caaa,_0x369c2a=typeof _0x53292a[_0x4c726e(0x120)]===_0x4c726e(0x11f)?_0x53292a['defaultApp']:undefined;if(_0x1906e4?.[_0x4c726e(0x129)])return _0x4d9738;if(_0x369c2a&&_0x499800!==_0x369c2a)return resolve(_0x271055,_0x499800+_0x4c726e(0x116));return _0x4d9738;}