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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/README.md +28 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/table-diff-shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/search.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/menu/visibility-update.js +1 -1
  137. package/lib/commands/notification/config-create.js +1 -1
  138. package/lib/commands/notification/config-delete.js +1 -1
  139. package/lib/commands/notification/config-list.js +1 -1
  140. package/lib/commands/notification/config-update.js +1 -1
  141. package/lib/commands/notification/index.js +1 -1
  142. package/lib/commands/notification/shared.js +1 -1
  143. package/lib/commands/ocr/index.js +1 -1
  144. package/lib/commands/page/create.js +1 -1
  145. package/lib/commands/page/custom/detail.js +1 -1
  146. package/lib/commands/page/custom/list.js +1 -1
  147. package/lib/commands/page/custom/publish.js +1 -1
  148. package/lib/commands/page/custom/shared.js +1 -1
  149. package/lib/commands/page/custom/syntax.js +1 -1
  150. package/lib/commands/page/custom/template.js +1 -1
  151. package/lib/commands/page/custom/update.js +1 -1
  152. package/lib/commands/page/data-list-status.js +1 -1
  153. package/lib/commands/page/generate-start.js +1 -1
  154. package/lib/commands/page/generate-status.js +1 -1
  155. package/lib/commands/page/index.js +1 -1
  156. package/lib/commands/page/pull.js +1 -1
  157. package/lib/commands/page/push.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/sync.js +1 -1
  162. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  163. package/lib/commands/project/create/format-elapsed.js +1 -1
  164. package/lib/commands/project/create/main.js +1 -1
  165. package/lib/commands/project/create/materialize-project-template.js +1 -1
  166. package/lib/commands/project/create/project-name.js +1 -1
  167. package/lib/commands/project/create/project-template-archive.js +1 -1
  168. package/lib/commands/project/create/project-template-path.js +1 -1
  169. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  170. package/lib/commands/project/create/use-format-code.js +1 -1
  171. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  172. package/lib/commands/project/index.js +1 -1
  173. package/lib/commands/project/upgrade.js +1 -1
  174. package/lib/commands/registry.js +1 -1
  175. package/lib/commands/role/delete.js +1 -1
  176. package/lib/commands/role/detail.js +1 -1
  177. package/lib/commands/role/index.js +1 -1
  178. package/lib/commands/role/list.js +1 -1
  179. package/lib/commands/role/shared.js +1 -1
  180. package/lib/commands/role/update.js +1 -1
  181. package/lib/commands/role/user-add.js +1 -1
  182. package/lib/commands/role/user-remove.js +1 -1
  183. package/lib/commands/role/user-resolve.js +1 -1
  184. package/lib/commands/run/index.js +1 -1
  185. package/lib/commands/schema.js +1 -1
  186. package/lib/commands/sql/create.js +1 -1
  187. package/lib/commands/sql/delete.js +1 -1
  188. package/lib/commands/sql/detail.js +1 -1
  189. package/lib/commands/sql/exec.js +1 -1
  190. package/lib/commands/sql/index.js +1 -1
  191. package/lib/commands/sql/list.js +1 -1
  192. package/lib/commands/sql/pull.js +1 -1
  193. package/lib/commands/sql/push.js +1 -1
  194. package/lib/commands/sql/shared.js +1 -1
  195. package/lib/commands/sql/status.js +1 -1
  196. package/lib/commands/sql/validate.js +1 -1
  197. package/lib/commands/task/index.js +1 -1
  198. package/lib/commands/task/status.js +1 -1
  199. package/lib/commands/tenant/index.js +1 -1
  200. package/lib/commands/tenant/members-list.js +1 -1
  201. package/lib/commands/tenant/shared.js +1 -1
  202. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  203. package/lib/commands/user-account/index.js +1 -1
  204. package/lib/commands/workspace/add.js +1 -1
  205. package/lib/commands/workspace/index.js +1 -1
  206. package/lib/commands/workspace/remove.js +1 -1
  207. package/lib/config/domain-config.js +1 -1
  208. package/lib/config/schema.js +1 -1
  209. package/lib/constant/cdn.js +1 -1
  210. package/lib/constant/cli.js +1 -1
  211. package/lib/constant/defaults.js +1 -1
  212. package/lib/constant/domain.js +1 -1
  213. package/lib/constant/env.js +1 -1
  214. package/lib/constant/output.js +1 -1
  215. package/lib/constant/paths.js +1 -1
  216. package/lib/constant/region.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/sleep.js +1 -1
  288. package/lib/utils/template-replacer.js +1 -1
  289. package/lib/utils/update-notice.js +1 -1
  290. package/lib/utils/version.js +1 -1
  291. package/lib/utils/with-active-cookie.js +1 -1
  292. package/lib/utils/write-cli-side-channel.js +1 -1
  293. package/package.json +1 -1
  294. package/skills/rabetbase/SKILL.md +2 -2
  295. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a206_0x3671(_0x726a83,_0x949108){_0x726a83=_0x726a83-0x141;const _0x328a4c=a206_0x328a();let _0x3671c0=_0x328a4c[_0x726a83];return _0x3671c0;}const a206_0x451368=a206_0x3671;(function(_0xf4f70,_0x423297){const _0x3759b1=a206_0x3671,_0x154019=_0xf4f70();while(!![]){try{const _0x52b5d1=parseInt(_0x3759b1(0x142))/0x1*(parseInt(_0x3759b1(0x164))/0x2)+parseInt(_0x3759b1(0x14b))/0x3+-parseInt(_0x3759b1(0x167))/0x4*(-parseInt(_0x3759b1(0x171))/0x5)+parseInt(_0x3759b1(0x153))/0x6+-parseInt(_0x3759b1(0x152))/0x7+-parseInt(_0x3759b1(0x150))/0x8*(parseInt(_0x3759b1(0x159))/0x9)+parseInt(_0x3759b1(0x151))/0xa;if(_0x52b5d1===_0x423297)break;else _0x154019['push'](_0x154019['shift']());}catch(_0x5b9fa0){_0x154019['push'](_0x154019['shift']());}}}(a206_0x328a,0x6b5fd));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x451368(0x157),a206_0x451368(0x172),a206_0x451368(0x165),'skillDomain',a206_0x451368(0x158),a206_0x451368(0x166)];const DOMAIN_FLAGS={'userDomain':a206_0x451368(0x15c),'apiDomain':a206_0x451368(0x146),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a206_0x451368(0x14a),'appDomain':a206_0x451368(0x15e)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x451368(0x16a),'platformDomain','skillHubDomain'];export function normalizeDomainOrigin(_0xb5bd36,_0x36ed86){const _0x534f99=a206_0x451368;if(typeof _0x36ed86!==_0x534f99(0x14e)||!_0x36ed86[_0x534f99(0x170)]())throw CliErrors[_0x534f99(0x147)]('Invalid\x20'+_0xb5bd36+_0x534f99(0x15a));let _0x3c5283;try{_0x3c5283=new URL(_0x36ed86['trim']());}catch{throw CliErrors[_0x534f99(0x147)](_0x534f99(0x14d)+_0xb5bd36+_0x534f99(0x14c)+_0x36ed86+_0x534f99(0x168));}if(_0x3c5283[_0x534f99(0x149)]!=='https:'||_0x3c5283[_0x534f99(0x14f)]||_0x3c5283[_0x534f99(0x160)]||_0x3c5283[_0x534f99(0x16b)]!=='/'&&_0x3c5283[_0x534f99(0x16b)]!==''||_0x3c5283[_0x534f99(0x148)]||_0x3c5283[_0x534f99(0x16e)])throw CliErrors[_0x534f99(0x147)]('Invalid\x20'+_0xb5bd36+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x534f99(0x169));return _0x3c5283[_0x534f99(0x145)];}export function readDomainConfig(_0x1efdee){const _0x49cfb5=a206_0x451368,_0x2fcb7a=isAbsolute(_0x1efdee)?_0x1efdee:resolve(process[_0x49cfb5(0x162)](),_0x1efdee);if(!existsSync(_0x2fcb7a))throw CliErrors['validation'](_0x49cfb5(0x143)+_0x2fcb7a);let _0x3d1adc;try{_0x3d1adc=JSON[_0x49cfb5(0x16f)](readFileSync(_0x2fcb7a,_0x49cfb5(0x15b)));}catch{throw CliErrors[_0x49cfb5(0x147)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x2fcb7a);}if(!_0x3d1adc||typeof _0x3d1adc!==_0x49cfb5(0x154)||Array[_0x49cfb5(0x144)](_0x3d1adc))throw CliErrors[_0x49cfb5(0x147)](_0x49cfb5(0x156));const _0x3bb009=_0x3d1adc,_0x235c6a=Object[_0x49cfb5(0x163)](_0x3bb009)[_0x49cfb5(0x155)](_0x485eea=>!DOMAIN_CONFIG_FIELDS['includes'](_0x485eea));if(_0x235c6a[_0x49cfb5(0x15d)]>0x0)throw CliErrors[_0x49cfb5(0x147)](_0x49cfb5(0x16d)+_0x235c6a['join'](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS[_0x49cfb5(0x161)](',\x20'));const _0x5d27f5={};for(const _0x309b14 of DOMAIN_CONFIG_FIELDS){_0x3bb009[_0x309b14]!==undefined&&(_0x5d27f5[_0x309b14]=normalizeDomainOrigin(_0x309b14,_0x3bb009[_0x309b14]));}if(Object['keys'](_0x5d27f5)[_0x49cfb5(0x15d)]===0x0)throw CliErrors[_0x49cfb5(0x147)](_0x49cfb5(0x15f));return _0x5d27f5;}export function resolveDomainFlags(_0x5e7f0a){const _0x98e4fc=a206_0x451368,_0x20b8da=(_0x5e7f0a[_0x98e4fc(0x16c)](_0x98e4fc(0x141))||'')[_0x98e4fc(0x170)](),_0x247ccd=_0x20b8da?readDomainConfig(_0x20b8da):{};for(const _0x1ab520 of DOMAIN_CONFIG_FIELDS){const _0x1b0f69=(_0x5e7f0a[_0x98e4fc(0x16c)](DOMAIN_FLAGS[_0x1ab520])||'')[_0x98e4fc(0x170)]();if(_0x1b0f69)_0x247ccd[_0x1ab520]=normalizeDomainOrigin(_0x1ab520,_0x1b0f69);}return _0x247ccd;}function a206_0x328a(){const _0x4b49ad=['kb-domain','520311doUDKI',':\x20\x22','Invalid\x20','string','username','139448ReccRK','1563090aNroLV','486066WWZooO','1782354VffOAZ','object','filter','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','userDomain','kbDomain','369EyXzip',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','utf8','user-domain','length','app-domain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','password','join','cwd','keys','50jObDuE','runtimeDomain','appDomain','1416nrtEez','\x22\x20is\x20not\x20a\x20valid\x20URL.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','agentDomain','pathname','str','Unsupported\x20domain\x20config\x20field(s):\x20','hash','parse','trim','4355JVJDzv','apiDomain','domain-config','11551tNPHLm','Domain\x20config\x20file\x20not\x20found:\x20','isArray','origin','api-domain','validation','search','protocol'];a206_0x328a=function(){return _0x4b49ad;};return a206_0x328a();}
1
+ const a206_0x205d99=a206_0x56c5;function a206_0x56c5(_0x294140,_0x4a55f1){_0x294140=_0x294140-0x169;const _0x26467e=a206_0x2646();let _0x56c59d=_0x26467e[_0x294140];return _0x56c59d;}(function(_0x1927e4,_0x3eaa34){const _0x265915=a206_0x56c5,_0xa229f2=_0x1927e4();while(!![]){try{const _0x33f12f=parseInt(_0x265915(0x18e))/0x1*(parseInt(_0x265915(0x18b))/0x2)+-parseInt(_0x265915(0x192))/0x3*(parseInt(_0x265915(0x198))/0x4)+-parseInt(_0x265915(0x171))/0x5+-parseInt(_0x265915(0x18a))/0x6+parseInt(_0x265915(0x188))/0x7*(parseInt(_0x265915(0x173))/0x8)+parseInt(_0x265915(0x193))/0x9+parseInt(_0x265915(0x196))/0xa;if(_0x33f12f===_0x3eaa34)break;else _0xa229f2['push'](_0xa229f2['shift']());}catch(_0xd5309e){_0xa229f2['push'](_0xa229f2['shift']());}}}(a206_0x2646,0x6205e));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a206_0x2646(){const _0x2ec86a=['https:','userDomain','91PHdBbT','skill-domain','798540EYFIeF','353204cFjgLD','user-domain','str','1JdEoZJ','Domain\x20config\x20file\x20not\x20found:\x20','hash','Invalid\x20','706692LPaDqE','2658627uCvCjJ','agentDomain','string','8089630ajNChV','appDomain','12JIfHHM','keys','validation','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','password','pathname','origin','Allowed\x20fields:\x20','app-domain','1834665CbJlCJ','parse','201384bIWgdl','join','filter','api-domain','kbDomain','skillDomain','trim','kb-domain','runtime-domain','search','includes','utf8','platformDomain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','Invalid\x20domain\x20config\x20JSON:\x20','Unsupported\x20domain\x20config\x20field(s):\x20','username','isArray','object'];a206_0x2646=function(){return _0x2ec86a;};return a206_0x2646();}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x187),'apiDomain','runtimeDomain',a206_0x205d99(0x178),a206_0x205d99(0x177),a206_0x205d99(0x197)];const DOMAIN_FLAGS={'userDomain':a206_0x205d99(0x18c),'apiDomain':a206_0x205d99(0x176),'runtimeDomain':a206_0x205d99(0x17b),'skillDomain':a206_0x205d99(0x189),'kbDomain':a206_0x205d99(0x17a),'appDomain':a206_0x205d99(0x170)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a206_0x205d99(0x194),a206_0x205d99(0x17f),'skillHubDomain'];export function normalizeDomainOrigin(_0x2efdf4,_0x565b33){const _0x555ac5=a206_0x205d99;if(typeof _0x565b33!==_0x555ac5(0x195)||!_0x565b33[_0x555ac5(0x179)]())throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+_0x555ac5(0x180));let _0x5a4f6a;try{_0x5a4f6a=new URL(_0x565b33[_0x555ac5(0x179)]());}catch{throw CliErrors['validation'](_0x555ac5(0x191)+_0x2efdf4+':\x20\x22'+_0x565b33+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5a4f6a['protocol']!==_0x555ac5(0x186)||_0x5a4f6a[_0x555ac5(0x183)]||_0x5a4f6a[_0x555ac5(0x16c)]||_0x5a4f6a[_0x555ac5(0x16d)]!=='/'&&_0x5a4f6a[_0x555ac5(0x16d)]!==''||_0x5a4f6a[_0x555ac5(0x17c)]||_0x5a4f6a[_0x555ac5(0x190)])throw CliErrors[_0x555ac5(0x16a)](_0x555ac5(0x191)+_0x2efdf4+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x555ac5(0x16b));return _0x5a4f6a[_0x555ac5(0x16e)];}export function readDomainConfig(_0x3776d8){const _0x42db63=a206_0x205d99,_0x1e4e82=isAbsolute(_0x3776d8)?_0x3776d8:resolve(process['cwd'](),_0x3776d8);if(!existsSync(_0x1e4e82))throw CliErrors['validation'](_0x42db63(0x18f)+_0x1e4e82);let _0x1f87f6;try{_0x1f87f6=JSON[_0x42db63(0x172)](readFileSync(_0x1e4e82,_0x42db63(0x17e)));}catch{throw CliErrors[_0x42db63(0x16a)](_0x42db63(0x181)+_0x1e4e82);}if(!_0x1f87f6||typeof _0x1f87f6!==_0x42db63(0x185)||Array[_0x42db63(0x184)](_0x1f87f6))throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0xb8f6ee=_0x1f87f6,_0x49208e=Object['keys'](_0xb8f6ee)[_0x42db63(0x175)](_0x447050=>!DOMAIN_CONFIG_FIELDS[_0x42db63(0x17d)](_0x447050));if(_0x49208e['length']>0x0)throw CliErrors['validation'](_0x42db63(0x182)+_0x49208e[_0x42db63(0x174)](',\x20'),_0x42db63(0x16f)+DOMAIN_CONFIG_FIELDS[_0x42db63(0x174)](',\x20'));const _0x85a0f7={};for(const _0x504c3d of DOMAIN_CONFIG_FIELDS){_0xb8f6ee[_0x504c3d]!==undefined&&(_0x85a0f7[_0x504c3d]=normalizeDomainOrigin(_0x504c3d,_0xb8f6ee[_0x504c3d]));}if(Object[_0x42db63(0x169)](_0x85a0f7)['length']===0x0)throw CliErrors[_0x42db63(0x16a)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x85a0f7;}export function resolveDomainFlags(_0x15d6fa){const _0x2e37ef=a206_0x205d99,_0x22dfd1=(_0x15d6fa['str']('domain-config')||'')[_0x2e37ef(0x179)](),_0x3e2423=_0x22dfd1?readDomainConfig(_0x22dfd1):{};for(const _0x1e0960 of DOMAIN_CONFIG_FIELDS){const _0x4a159b=(_0x15d6fa[_0x2e37ef(0x18d)](DOMAIN_FLAGS[_0x1e0960])||'')[_0x2e37ef(0x179)]();if(_0x4a159b)_0x3e2423[_0x1e0960]=normalizeDomainOrigin(_0x1e0960,_0x4a159b);}return _0x3e2423;}
@@ -1 +1 @@
1
- const a207_0x4371f7=a207_0x2dd4;(function(_0x433934,_0x5b2834){const _0x17e376=a207_0x2dd4,_0xc25b8e=_0x433934();while(!![]){try{const _0x5ee0cd=parseInt(_0x17e376(0x1e1))/0x1+-parseInt(_0x17e376(0x1e2))/0x2+parseInt(_0x17e376(0x1b6))/0x3+-parseInt(_0x17e376(0x1b1))/0x4+-parseInt(_0x17e376(0x1e0))/0x5*(-parseInt(_0x17e376(0x1dc))/0x6)+-parseInt(_0x17e376(0x1bb))/0x7*(-parseInt(_0x17e376(0x1bf))/0x8)+parseInt(_0x17e376(0x1de))/0x9*(-parseInt(_0x17e376(0x1d0))/0xa);if(_0x5ee0cd===_0x5b2834)break;else _0xc25b8e['push'](_0xc25b8e['shift']());}catch(_0x3ad149){_0xc25b8e['push'](_0xc25b8e['shift']());}}}(a207_0x328a,0xf23fd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a207_0x4371f7(0x1d6),'accessKey',a207_0x4371f7(0x1c0),a207_0x4371f7(0x1cf),a207_0x4371f7(0x1db),a207_0x4371f7(0x1c1),a207_0x4371f7(0x1d1),'apiDomain',a207_0x4371f7(0x1d4),a207_0x4371f7(0x1b4),a207_0x4371f7(0x1b5),a207_0x4371f7(0x1cd)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x4371f7(0x1d5),a207_0x4371f7(0x1c9),'locale',a207_0x4371f7(0x1cf),a207_0x4371f7(0x1d6),a207_0x4371f7(0x1c2),a207_0x4371f7(0x1dd),a207_0x4371f7(0x1c1),a207_0x4371f7(0x1d1),a207_0x4371f7(0x1df),a207_0x4371f7(0x1d4),a207_0x4371f7(0x1b4),'kbDomain',a207_0x4371f7(0x1cd)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x3e5dbb){const _0x4f9013=a207_0x4371f7;return[..._0x3e5dbb][_0x4f9013(0x1b0)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1048ea){const _0x2f94b8=a207_0x4371f7;return TOP_LEVEL_CONFIG_KEYS[_0x2f94b8(0x1e3)](_0x1048ea);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1e3f7e=a207_0x4371f7;return _0x1e3f7e(0x1c6)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x4371f7(0x1c9),'apiDir':a207_0x4371f7(0x1dd),'cookie':'cookie','accessKey':a207_0x4371f7(0x1c2),'defaultFormat':a207_0x4371f7(0x1cf),'pageSize':a207_0x4371f7(0x1d8),'riskLevel':a207_0x4371f7(0x1db),'locale':a207_0x4371f7(0x1c0)};export function getAppProfileFlagDefs(){const _0x10e94c=a207_0x4371f7;return[{'name':_0x10e94c(0x1c9),'type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1c4),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1b9)},{'name':_0x10e94c(0x1d6),'type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1b2),'hidden':!![]},{'name':_0x10e94c(0x1c2),'type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1da),'hidden':!![]},{'name':_0x10e94c(0x1b8),'type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1c5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x10e94c(0x1c7),'description':_0x10e94c(0x1ba)},{'name':_0x10e94c(0x1db),'type':_0x10e94c(0x1d9),'description':_0x10e94c(0x1b3),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x10e94c(0x1c0),'type':_0x10e94c(0x1d9),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x127714){const _0x3cc1bc=a207_0x4371f7,_0x3a10f8={};for(const [_0x21489b,_0x3859d7]of Object[_0x3cc1bc(0x1d7)](APP_PROFILE_FLAG_KEY_MAP)){const _0x10f187=_0x127714(_0x21489b);if(!_0x10f187)continue;_0x3a10f8[_0x3859d7]=_0x3859d7==='pageSize'?Number(_0x10f187):_0x10f187;}return _0x3a10f8;}export function buildAppProfileListFields(_0x104fe5){const _0x3fa30a=a207_0x4371f7;return{'env':_0x104fe5['env']??null,'apiDir':_0x104fe5[_0x3fa30a(0x1dd)]??null,'hasCookie':!!_0x104fe5['cookie'],'hasAccessKey':!!_0x104fe5[_0x3fa30a(0x1c2)],'format':_0x104fe5[_0x3fa30a(0x1cf)]??null,'pageSize':_0x104fe5['pageSize']??null,'riskLevel':_0x104fe5['riskLevel']??null,'locale':_0x104fe5['locale']??null};}export function buildAppDoctorFields(_0x506910,_0x424d6b){const _0x48d09c=a207_0x4371f7;return{'env':{'value':_0x506910[_0x48d09c(0x1c9)]||_0x424d6b[_0x48d09c(0x1c9)],'source':_0x506910[_0x48d09c(0x1c9)]?'app':_0x48d09c(0x1c8)},'apiDir':{'value':_0x506910[_0x48d09c(0x1dd)]||_0x424d6b['apiDir'],'source':_0x506910[_0x48d09c(0x1dd)]?_0x48d09c(0x1cb):_0x48d09c(0x1c8)},'cookie':{'value':_0x506910[_0x48d09c(0x1d6)]||_0x424d6b[_0x48d09c(0x1d6)],'source':_0x506910['cookie']?_0x48d09c(0x1cb):_0x48d09c(0x1c8)},'accessKey':{'value':_0x506910[_0x48d09c(0x1c2)]||_0x424d6b[_0x48d09c(0x1c2)],'source':_0x506910[_0x48d09c(0x1c2)]?'app':_0x48d09c(0x1c8)}};}export function buildCanonicalAppConfig(_0x1f03fb,_0x502d60){const _0x3b9574=a207_0x4371f7,_0x25b2f5=_0x1f03fb[_0x3b9574(0x1ca)](_0x26dec8=>String(_0x26dec8||'')[_0x3b9574(0x1b7)]())['filter'](Boolean);if(_0x25b2f5[_0x3b9574(0x1bd)]===0x0)return{};const _0x47e29d={};for(const _0x5379d0 of _0x25b2f5){_0x47e29d[_0x5379d0]=_0x502d60?{'appcode':_0x5379d0,'env':_0x502d60}:{'appcode':_0x5379d0};}return _0x25b2f5[_0x3b9574(0x1bd)]>0x1?{'apps':_0x47e29d,'defaultApp':_0x25b2f5[0x0]}:{'apps':_0x47e29d};}export function normalizeStoredDefaultApp(_0x492b4b,_0x383452){const _0x59e347=a207_0x4371f7,_0x1f6377=_0x492b4b[_0x59e347(0x1bc)]&&typeof _0x492b4b[_0x59e347(0x1bc)]===_0x59e347(0x1d2)?_0x492b4b[_0x59e347(0x1bc)]:{},_0x54ccb8=Object['keys'](_0x1f6377);if(_0x54ccb8[_0x59e347(0x1bd)]<=0x1)return delete _0x492b4b[_0x59e347(0x1c3)],undefined;const _0x3986cb=typeof _0x492b4b[_0x59e347(0x1c3)]===_0x59e347(0x1d9)&&_0x1f6377[_0x492b4b[_0x59e347(0x1c3)]]?_0x492b4b[_0x59e347(0x1c3)]:undefined,_0x4e0cd2=_0x383452&&_0x1f6377[_0x383452]?_0x383452:_0x3986cb;if(_0x4e0cd2)return _0x492b4b[_0x59e347(0x1c3)]=_0x4e0cd2,_0x4e0cd2;return delete _0x492b4b[_0x59e347(0x1c3)],undefined;}export function buildCanonicalProjectConfig(_0x4e5f8e,_0x219bc9){const _0x1a31cf=a207_0x4371f7,{appCodes:appCodes=[],env:_0x49d7e7,metadata:_0x2c3837}=_0x219bc9,_0x43c996={..._0x4e5f8e,..._0x2c3837||{}};delete _0x43c996['appcode'],delete _0x43c996['app'];if(_0x49d7e7)_0x43c996['env']=_0x49d7e7;else!_0x43c996[_0x1a31cf(0x1c9)]&&(_0x43c996[_0x1a31cf(0x1c9)]=DEFAULT_CONFIG_VALUES[_0x1a31cf(0x1c9)]);const _0x25c422=buildCanonicalAppConfig(appCodes,_0x43c996[_0x1a31cf(0x1c9)]);if(Object[_0x1a31cf(0x1d3)](_0x25c422)['length']>0x0){_0x43c996[_0x1a31cf(0x1bc)]=_0x25c422[_0x1a31cf(0x1bc)];if(_0x25c422['defaultApp'])_0x43c996[_0x1a31cf(0x1c3)]=_0x25c422['defaultApp'];else delete _0x43c996[_0x1a31cf(0x1c3)];}return _0x43c996;}const LOCALE_MAP={'zh':a207_0x4371f7(0x1cc),'zh-cn':'zh-CN','zh_cn':a207_0x4371f7(0x1cc),'en':'en-US','en-us':a207_0x4371f7(0x1be),'en_us':a207_0x4371f7(0x1be)};export function normalizeLocale(_0x9e0f01){const _0x4bb01c=a207_0x4371f7;if(!_0x9e0f01)return null;return LOCALE_MAP[_0x9e0f01[_0x4bb01c(0x1ce)]()]??null;}function a207_0x2dd4(_0x15e76e,_0x157111){_0x15e76e=_0x15e76e-0x1b0;const _0x328a02=a207_0x328a();let _0x2dd4f5=_0x328a02[_0x15e76e];return _0x2dd4f5;}function a207_0x328a(){const _0x4ba6d2=['9wKWgXQ','apiDomain','2347960neoirx','787776SXLowJ','307364iHshub','has','join','3221972DylbZR','Auth\x20cookie','Risk\x20level','skillDomain','kbDomain','1738119uPCtRW','trim','defaultFormat','API\x20directory\x20path','Default\x20page\x20size','5203156yYnZsi','apps','length','en-US','8CYIzUo','locale','region','accessKey','defaultApp','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','Config\x20key\x20(','number','inherit','env','map','app','zh-CN','appDomain','toLowerCase','format','20373970gPNren','userDomain','object','keys','runtimeDomain','appcode','cookie','entries','pageSize','string','Access\x20key','riskLevel','24pdaaHW','apiDir'];a207_0x328a=function(){return _0x4ba6d2;};return a207_0x328a();}
1
+ const a207_0x52f151=a207_0x3d05;(function(_0x40f810,_0xf437ae){const _0x1324d6=a207_0x3d05,_0x3b1e1c=_0x40f810();while(!![]){try{const _0x52875a=parseInt(_0x1324d6(0x147))/0x1*(parseInt(_0x1324d6(0x125))/0x2)+parseInt(_0x1324d6(0x143))/0x3+parseInt(_0x1324d6(0x12c))/0x4+-parseInt(_0x1324d6(0x117))/0x5+parseInt(_0x1324d6(0x118))/0x6*(-parseInt(_0x1324d6(0x144))/0x7)+parseInt(_0x1324d6(0x13f))/0x8*(-parseInt(_0x1324d6(0x13b))/0x9)+parseInt(_0x1324d6(0x123))/0xa*(parseInt(_0x1324d6(0x149))/0xb);if(_0x52875a===_0xf437ae)break;else _0x3b1e1c['push'](_0x3b1e1c['shift']());}catch(_0x8bf19){_0x3b1e1c['push'](_0x3b1e1c['shift']());}}}(a207_0xf787,0xf08ad));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a207_0x52f151(0x136),a207_0x52f151(0x13a),'locale',a207_0x52f151(0x134),a207_0x52f151(0x119),a207_0x52f151(0x11c),'userDomain',a207_0x52f151(0x124),a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x52f151(0x146),a207_0x52f151(0x12f),'locale','format',a207_0x52f151(0x136),a207_0x52f151(0x13a),a207_0x52f151(0x122),a207_0x52f151(0x11c),a207_0x52f151(0x138),'apiDomain',a207_0x52f151(0x127),a207_0x52f151(0x11a),a207_0x52f151(0x13e),a207_0x52f151(0x148)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4727c0){const _0x580475=a207_0x52f151;return[..._0x4727c0][_0x580475(0x145)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3b2234){const _0x5e848c=a207_0x52f151;return TOP_LEVEL_CONFIG_KEYS[_0x5e848c(0x133)](_0x3b2234);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4bc39c=a207_0x52f151;return _0x4bc39c(0x126)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x52f151(0x12f),'apiDir':a207_0x52f151(0x122),'cookie':a207_0x52f151(0x136),'accessKey':a207_0x52f151(0x13a),'defaultFormat':a207_0x52f151(0x134),'pageSize':a207_0x52f151(0x11d),'riskLevel':'riskLevel','locale':a207_0x52f151(0x137)};export function getAppProfileFlagDefs(){const _0x48cd07=a207_0x52f151;return[{'name':_0x48cd07(0x12f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x128),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x48cd07(0x122),'type':'string','description':_0x48cd07(0x131)},{'name':_0x48cd07(0x136),'type':'string','description':_0x48cd07(0x121),'hidden':!![]},{'name':'accessKey','type':_0x48cd07(0x11e),'description':_0x48cd07(0x120),'hidden':!![]},{'name':_0x48cd07(0x11f),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x12d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x48cd07(0x11d),'type':_0x48cd07(0x140),'description':_0x48cd07(0x115)},{'name':_0x48cd07(0x119),'type':_0x48cd07(0x11e),'description':_0x48cd07(0x13d),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x48cd07(0x11e),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x58af32){const _0x33ef7a=a207_0x52f151,_0x44bf34={};for(const [_0x1c0c60,_0x31d2b9]of Object[_0x33ef7a(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x25fbbe=_0x58af32(_0x1c0c60);if(!_0x25fbbe)continue;_0x44bf34[_0x31d2b9]=_0x31d2b9===_0x33ef7a(0x11d)?Number(_0x25fbbe):_0x25fbbe;}return _0x44bf34;}export function buildAppProfileListFields(_0x29fd39){const _0x2dd677=a207_0x52f151;return{'env':_0x29fd39[_0x2dd677(0x12f)]??null,'apiDir':_0x29fd39[_0x2dd677(0x122)]??null,'hasCookie':!!_0x29fd39[_0x2dd677(0x136)],'hasAccessKey':!!_0x29fd39['accessKey'],'format':_0x29fd39[_0x2dd677(0x134)]??null,'pageSize':_0x29fd39['pageSize']??null,'riskLevel':_0x29fd39['riskLevel']??null,'locale':_0x29fd39[_0x2dd677(0x137)]??null};}export function buildAppDoctorFields(_0x2c104a,_0x19937e){const _0xdae8aa=a207_0x52f151;return{'env':{'value':_0x2c104a[_0xdae8aa(0x12f)]||_0x19937e[_0xdae8aa(0x12f)],'source':_0x2c104a[_0xdae8aa(0x12f)]?_0xdae8aa(0x135):_0xdae8aa(0x141)},'apiDir':{'value':_0x2c104a['apiDir']||_0x19937e['apiDir'],'source':_0x2c104a['apiDir']?_0xdae8aa(0x135):'inherit'},'cookie':{'value':_0x2c104a['cookie']||_0x19937e['cookie'],'source':_0x2c104a[_0xdae8aa(0x136)]?_0xdae8aa(0x135):'inherit'},'accessKey':{'value':_0x2c104a[_0xdae8aa(0x13a)]||_0x19937e[_0xdae8aa(0x13a)],'source':_0x2c104a[_0xdae8aa(0x13a)]?_0xdae8aa(0x135):_0xdae8aa(0x141)}};}export function buildCanonicalAppConfig(_0x5e2442,_0x145cdd){const _0x54be2c=a207_0x52f151,_0x444098=_0x5e2442[_0x54be2c(0x129)](_0x4c75bb=>String(_0x4c75bb||'')['trim']())[_0x54be2c(0x12b)](Boolean);if(_0x444098[_0x54be2c(0x130)]===0x0)return{};const _0x3e2c20={};for(const _0x52167e of _0x444098){_0x3e2c20[_0x52167e]=_0x145cdd?{'appcode':_0x52167e,'env':_0x145cdd}:{'appcode':_0x52167e};}return _0x444098[_0x54be2c(0x130)]>0x1?{'apps':_0x3e2c20,'defaultApp':_0x444098[0x0]}:{'apps':_0x3e2c20};}export function normalizeStoredDefaultApp(_0x55dd19,_0x342cda){const _0x1979f3=a207_0x52f151,_0x569ea2=_0x55dd19[_0x1979f3(0x139)]&&typeof _0x55dd19[_0x1979f3(0x139)]===_0x1979f3(0x11b)?_0x55dd19['apps']:{},_0x2dbbc4=Object[_0x1979f3(0x116)](_0x569ea2);if(_0x2dbbc4[_0x1979f3(0x130)]<=0x1)return delete _0x55dd19[_0x1979f3(0x12a)],undefined;const _0x5e68a9=typeof _0x55dd19[_0x1979f3(0x12a)]===_0x1979f3(0x11e)&&_0x569ea2[_0x55dd19[_0x1979f3(0x12a)]]?_0x55dd19[_0x1979f3(0x12a)]:undefined,_0xd22bf0=_0x342cda&&_0x569ea2[_0x342cda]?_0x342cda:_0x5e68a9;if(_0xd22bf0)return _0x55dd19[_0x1979f3(0x12a)]=_0xd22bf0,_0xd22bf0;return delete _0x55dd19[_0x1979f3(0x12a)],undefined;}export function buildCanonicalProjectConfig(_0x56dab2,_0x377003){const _0x3be176=a207_0x52f151,{appCodes:appCodes=[],env:_0x208c09,metadata:_0x3fba28}=_0x377003,_0x532a85={..._0x56dab2,..._0x3fba28||{}};delete _0x532a85[_0x3be176(0x146)],delete _0x532a85[_0x3be176(0x135)];if(_0x208c09)_0x532a85['env']=_0x208c09;else!_0x532a85['env']&&(_0x532a85[_0x3be176(0x12f)]=DEFAULT_CONFIG_VALUES[_0x3be176(0x12f)]);const _0x2c8f35=buildCanonicalAppConfig(appCodes,_0x532a85[_0x3be176(0x12f)]);if(Object[_0x3be176(0x116)](_0x2c8f35)[_0x3be176(0x130)]>0x0){_0x532a85[_0x3be176(0x139)]=_0x2c8f35[_0x3be176(0x139)];if(_0x2c8f35[_0x3be176(0x12a)])_0x532a85[_0x3be176(0x12a)]=_0x2c8f35[_0x3be176(0x12a)];else delete _0x532a85['defaultApp'];}return _0x532a85;}function a207_0x3d05(_0x43d9d9,_0x49a5ca){_0x43d9d9=_0x43d9d9-0x115;const _0xf78790=a207_0xf787();let _0x3d05a6=_0xf78790[_0x43d9d9];return _0x3d05a6;}const LOCALE_MAP={'zh':a207_0x52f151(0x142),'zh-cn':a207_0x52f151(0x142),'zh_cn':'zh-CN','en':'en-US','en-us':a207_0x52f151(0x132),'en_us':a207_0x52f151(0x132)};function a207_0xf787(){const _0x212ec8=['Target\x20environment','map','defaultApp','filter','698412FMvTnQ','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','entries','env','length','API\x20directory\x20path','en-US','has','format','app','cookie','locale','userDomain','apps','accessKey','14813343GykhMc','toLowerCase','Risk\x20level','kbDomain','8Wglltg','number','inherit','zh-CN','5399892bDVLrw','104279cpKzFo','join','appcode','183ahFRni','appDomain','24559744LcxoQS','Default\x20page\x20size','keys','3474700RmIvlZ','534MuNYWU','riskLevel','skillDomain','object','region','pageSize','string','defaultFormat','Access\x20key','Auth\x20cookie','apiDir','10YVHGco','apiDomain','4860EkXLci','Config\x20key\x20(','runtimeDomain'];a207_0xf787=function(){return _0x212ec8;};return a207_0xf787();}export function normalizeLocale(_0xc2b9ef){const _0x353596=a207_0x52f151;if(!_0xc2b9ef)return null;return LOCALE_MAP[_0xc2b9ef[_0x353596(0x13c)]()]??null;}
@@ -1 +1 @@
1
- const a208_0x884078=a208_0x4b4a;(function(_0xdb4975,_0x20ae78){const _0x195e12=a208_0x4b4a,_0x36605e=_0xdb4975();while(!![]){try{const _0x3540ea=-parseInt(_0x195e12(0x1fb))/0x1*(-parseInt(_0x195e12(0x1fc))/0x2)+-parseInt(_0x195e12(0x1f5))/0x3+-parseInt(_0x195e12(0x1f3))/0x4*(parseInt(_0x195e12(0x1f1))/0x5)+parseInt(_0x195e12(0x1f9))/0x6+parseInt(_0x195e12(0x1fd))/0x7*(parseInt(_0x195e12(0x1f6))/0x8)+parseInt(_0x195e12(0x1f7))/0x9*(parseInt(_0x195e12(0x1f0))/0xa)+-parseInt(_0x195e12(0x1fa))/0xb*(-parseInt(_0x195e12(0x1f8))/0xc);if(_0x3540ea===_0x20ae78)break;else _0x36605e['push'](_0x36605e['shift']());}catch(_0x4d8d6a){_0x36605e['push'](_0x36605e['shift']());}}}(a208_0x1ae1,0x570b3));function a208_0x4b4a(_0x3e435,_0x781793){_0x3e435=_0x3e435-0x1f0;const _0x1ae193=a208_0x1ae1();let _0x4b4a06=_0x1ae193[_0x3e435];return _0x4b4a06;}export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x884078(0x1f4);function a208_0x1ae1(){const _0x16d4ad=['3229350tkmWdQ','319zvYSBc','29066vtpMGl','4YFjacC','7QyxuzW','130sOSNeE','5uMfyzs','/templates/projects','36092BbUlOK','/config/index.json','1817475gkYGzY','1729224XbqSfj','36063HRlkQI','44184aHCRVp'];a208_0x1ae1=function(){return _0x16d4ad;};return a208_0x1ae1();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x884078(0x1f2);
1
+ const a208_0x34d771=a208_0x1ed1;(function(_0x403294,_0x26e52b){const _0x5ee16a=a208_0x1ed1,_0x4a7e91=_0x403294();while(!![]){try{const _0x52e866=parseInt(_0x5ee16a(0x188))/0x1*(parseInt(_0x5ee16a(0x18a))/0x2)+-parseInt(_0x5ee16a(0x18e))/0x3+parseInt(_0x5ee16a(0x189))/0x4+-parseInt(_0x5ee16a(0x18c))/0x5+-parseInt(_0x5ee16a(0x18b))/0x6+parseInt(_0x5ee16a(0x190))/0x7+parseInt(_0x5ee16a(0x18f))/0x8;if(_0x52e866===_0x26e52b)break;else _0x4a7e91['push'](_0x4a7e91['shift']());}catch(_0x39cc6d){_0x4a7e91['push'](_0x4a7e91['shift']());}}}(a208_0x34f6,0x7bd12));function a208_0x1ed1(_0x55a8f9,_0x5d19dd){_0x55a8f9=_0x55a8f9-0x187;const _0x34f609=a208_0x34f6();let _0x1ed1c6=_0x34f609[_0x55a8f9];return _0x1ed1c6;}export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x18d);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a208_0x34d771(0x187);function a208_0x34f6(){const _0x336306=['/config/index.json','1102461liUPwq','11126520tygqqg','656796GXXqgj','/templates/projects','252897WZYipj','438272pVneEk','2kYUEtK','2607768dEvxbS','2689195LDgNsn'];a208_0x34f6=function(){return _0x336306;};return a208_0x34f6();}
@@ -1 +1 @@
1
- const a209_0x37c4c5=a209_0x1955;function a209_0x28dc(){const _0x29f461=['skip-imports','Override\x20appcode','tags','13306URKkvo','appcode','Environment','name','title','verbose','Read\x20value\x20from\x20environment\x20variable','type','Parent\x20menu\x20id','json\x20|\x20pretty\x20|\x20compress','expectedCount','Title','watch','description','map','sqlcode','sqlname','Select\x20app\x20profile\x20by\x20name','sql-name','4520037OpltCz','taskId','Expected\x20current\x20menu\x20path','Search\x20query','code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','clear','locale','operation','Confirm\x20destructive\x20action','Tags','rabetbase','Output\x20path','app','Target\x20path','help','fromEnv','DB\x20ID','target','Schemas','SQL\x20code','non-interactive','Maximum\x20search\x20hits','Watch\x20mode','string','10STsGJl','yes','Type\x20filter','project','dry-run','Reveal\x20sensitive\x20value','13711632XQHxkz','Rabetbase\x20CLI','parent-id','SQL\x20name','stdin','221QowXct','SQL\x20string','query','file','expectedChildrenCount','Use\x20project\x20config\x20scope','reveal','dbid','3650244XdZUsq','Expected\x20affected\x20count','boolean','Config\x20key','Function\x20node','env','Config\x20value','Description\x20file','format','operation-type','2451670TOAHnK','keyword','all','datasetcode','<expr>','File\x20path','pagesize','output','production\x20|\x20daily','Clear','dryRun','label','Asynchronous\x20task\x20ID','schemas','function-node','dbId','Use\x20remote','<name>','sqlName','sort','params','@lovrabet/rabetbase-cli','JSON\x20params','375571sbOWCY','46712NBFnal','<code>','page','functionNode','Keyword\x20filter','key','confirm','Menu\x20label','expect-parent-id','42jbfSns','sql','Menu\x20sort\x20value','Operation\x20type','meowKey','force','enableBffSave','skipImports','topk','Skip\x20confirmation\x20for\x20high-risk\x20writes','Verbose\x20output','5GmjgcN','remote','Name','Code\x20filter','603GyelME','132XCjyCF','parentId','value'];a209_0x28dc=function(){return _0x29f461;};return a209_0x28dc();}(function(_0x2bb2d1,_0x163b5c){const _0x4867f9=a209_0x1955,_0x804992=_0x2bb2d1();while(!![]){try{const _0x25a140=parseInt(_0x4867f9(0x14e))/0x1*(parseInt(_0x4867f9(0x117))/0x2)+-parseInt(_0x4867f9(0x12a))/0x3+parseInt(_0x4867f9(0xd6))/0x4*(parseInt(_0x4867f9(0x10c))/0x5)+parseInt(_0x4867f9(0x101))/0x6*(-parseInt(_0x4867f9(0xf7))/0x7)+-parseInt(_0x4867f9(0xf8))/0x8*(parseInt(_0x4867f9(0x110))/0x9)+parseInt(_0x4867f9(0x143))/0xa*(-parseInt(_0x4867f9(0x149))/0xb)+parseInt(_0x4867f9(0x111))/0xc*(parseInt(_0x4867f9(0xe0))/0xd);if(_0x25a140===_0x163b5c)break;else _0x804992['push'](_0x804992['shift']());}catch(_0x1a0766){_0x804992['push'](_0x804992['shift']());}}}(a209_0x28dc,0xe4dad));function a209_0x1955(_0x4d2b61,_0x5e0d76){_0x4d2b61=_0x4d2b61-0xd4;const _0x28dc29=a209_0x28dc();let _0x195562=_0x28dc29[_0x4d2b61];return _0x195562;}export const CLI_BIN_NAME=a209_0x37c4c5(0x135);export const CLI_DISPLAY_NAME=a209_0x37c4c5(0x14a);export const NPM_PACKAGE_NAME=a209_0x37c4c5(0xf5);export const GLOBAL_FLAGS=[{'name':a209_0x37c4c5(0x118),'meowKey':'appcode','type':'string','description':a209_0x37c4c5(0x115),'hint':a209_0x37c4c5(0xf9)},{'name':a209_0x37c4c5(0x137),'meowKey':a209_0x37c4c5(0x137),'type':'string','description':a209_0x37c4c5(0x128),'hint':a209_0x37c4c5(0xf1)},{'name':a209_0x37c4c5(0xdb),'meowKey':a209_0x37c4c5(0xdb),'type':'string','description':a209_0x37c4c5(0x119),'hint':a209_0x37c4c5(0xe8)},{'name':a209_0x37c4c5(0xde),'meowKey':a209_0x37c4c5(0xde),'type':'string','description':'Output\x20format','hint':a209_0x37c4c5(0x120)},{'name':'jq','meowKey':'jq','type':'string','description':a209_0x37c4c5(0x12f),'hint':a209_0x37c4c5(0xe4)},{'name':a209_0x37c4c5(0x147),'meowKey':a209_0x37c4c5(0xea),'type':a209_0x37c4c5(0xd8),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a209_0x37c4c5(0x144),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x10a)},{'name':a209_0x37c4c5(0x13f),'meowKey':'nonInteractive','type':a209_0x37c4c5(0xd8),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':'global','type':a209_0x37c4c5(0xd8),'description':'Use\x20global\x20config\x20scope'},{'name':a209_0x37c4c5(0x146),'meowKey':a209_0x37c4c5(0x146),'type':'boolean','description':a209_0x37c4c5(0x153)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x37c4c5(0x139),'meowKey':a209_0x37c4c5(0x139),'type':'boolean','description':'Show\x20help'},{'name':a209_0x37c4c5(0x131),'meowKey':a209_0x37c4c5(0x131),'type':a209_0x37c4c5(0x142),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a209_0x37c4c5(0x11a),'meowKey':a209_0x37c4c5(0x11a),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x10e),'hidden':!![]},{'name':'title','meowKey':a209_0x37c4c5(0x11b),'type':'string','description':a209_0x37c4c5(0x122),'hidden':!![]},{'name':a209_0x37c4c5(0x150),'meowKey':a209_0x37c4c5(0x150),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x12d),'hidden':!![]},{'name':a209_0x37c4c5(0x109),'meowKey':a209_0x37c4c5(0x109),'type':'string','description':a209_0x37c4c5(0x140),'hidden':!![]},{'name':a209_0x37c4c5(0x130),'meowKey':a209_0x37c4c5(0x130),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0xe9),'hidden':!![]},{'name':a209_0x37c4c5(0x123),'meowKey':a209_0x37c4c5(0x123),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x141),'hidden':!![]},{'name':a209_0x37c4c5(0xe7),'meowKey':'output','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x136),'hidden':!![]},{'name':a209_0x37c4c5(0xf4),'meowKey':a209_0x37c4c5(0xf4),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xf6),'hidden':!![]},{'name':a209_0x37c4c5(0xe3),'meowKey':a209_0x37c4c5(0xe3),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a209_0x37c4c5(0xe2),'type':a209_0x37c4c5(0xd8),'description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a209_0x37c4c5(0x107),'type':'boolean','description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x37c4c5(0x142),'description':'Record\x20ID','hidden':!![]},{'name':a209_0x37c4c5(0x11e),'meowKey':a209_0x37c4c5(0x11e),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x145),'hidden':!![]},{'name':a209_0x37c4c5(0x151),'meowKey':'file','type':'string','description':a209_0x37c4c5(0xe5),'hidden':!![]},{'name':a209_0x37c4c5(0x126),'meowKey':a209_0x37c4c5(0x126),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13e),'hidden':!![]},{'name':a209_0x37c4c5(0x129),'meowKey':a209_0x37c4c5(0xf2),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x14c),'hidden':!![]},{'name':a209_0x37c4c5(0x127),'meowKey':a209_0x37c4c5(0x127),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a209_0x37c4c5(0xef),'type':a209_0x37c4c5(0x142),'description':'DB\x20ID','hidden':!![]},{'name':a209_0x37c4c5(0xd5),'meowKey':a209_0x37c4c5(0xd5),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13b),'hidden':!![]},{'name':a209_0x37c4c5(0x124),'meowKey':a209_0x37c4c5(0x124),'type':a209_0x37c4c5(0x142),'description':'Description','hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xdd),'hidden':!![]},{'name':'page','meowKey':a209_0x37c4c5(0xfa),'type':'string','description':'Page\x20number','hidden':!![]},{'name':a209_0x37c4c5(0xe6),'meowKey':'pagesize','type':a209_0x37c4c5(0x142),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a209_0x37c4c5(0xe1),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xfc),'hidden':!![]},{'name':a209_0x37c4c5(0x12e),'meowKey':'code','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x10f),'hidden':!![]},{'name':a209_0x37c4c5(0x102),'meowKey':a209_0x37c4c5(0x102),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x14f),'hidden':!![]},{'name':a209_0x37c4c5(0xed),'meowKey':'schemas','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x13d),'hidden':!![]},{'name':a209_0x37c4c5(0x132),'meowKey':'operation','type':'string','description':a209_0x37c4c5(0x104),'hidden':!![]},{'name':'target','meowKey':a209_0x37c4c5(0x13c),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x138),'hidden':!![]},{'name':a209_0x37c4c5(0x114),'meowKey':a209_0x37c4c5(0x108),'type':'boolean','description':'Skip\x20import\x20generation','hidden':!![]},{'name':a209_0x37c4c5(0xfd),'meowKey':a209_0x37c4c5(0xfd),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xd9),'hidden':!![]},{'name':a209_0x37c4c5(0x113),'meowKey':a209_0x37c4c5(0x113),'type':'string','description':a209_0x37c4c5(0xdc),'hidden':!![]},{'name':a209_0x37c4c5(0x116),'meowKey':a209_0x37c4c5(0x116),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x134),'hidden':!![]},{'name':a209_0x37c4c5(0x14d),'meowKey':'stdin','type':a209_0x37c4c5(0xd8),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a209_0x37c4c5(0x13a),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x11d),'hidden':!![]},{'name':a209_0x37c4c5(0xd4),'meowKey':'reveal','type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x148),'hidden':!![]},{'name':a209_0x37c4c5(0x106),'meowKey':a209_0x37c4c5(0x106),'type':a209_0x37c4c5(0xd8),'description':'Force\x20overwrite','hidden':!![]},{'name':a209_0x37c4c5(0xfe),'meowKey':'confirm','type':'boolean','description':a209_0x37c4c5(0x133),'hidden':!![]},{'name':a209_0x37c4c5(0x10d),'meowKey':a209_0x37c4c5(0x10d),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0xf0),'hidden':!![]},{'name':a209_0x37c4c5(0x11c),'meowKey':a209_0x37c4c5(0x11c),'type':a209_0x37c4c5(0xd8),'description':a209_0x37c4c5(0x10b),'hidden':!![]},{'name':'expected-count','meowKey':a209_0x37c4c5(0x121),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xd7),'hidden':!![]},{'name':a209_0x37c4c5(0xeb),'meowKey':'label','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xff),'hidden':!![]},{'name':a209_0x37c4c5(0x14b),'meowKey':a209_0x37c4c5(0x112),'type':'string','description':a209_0x37c4c5(0x11f),'hidden':!![]},{'name':a209_0x37c4c5(0xf3),'meowKey':a209_0x37c4c5(0xf3),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x103),'hidden':!![]},{'name':a209_0x37c4c5(0x100),'meowKey':'expectParentId','type':a209_0x37c4c5(0x142),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x12c),'hidden':!![]},{'name':'expected-children-count','meowKey':a209_0x37c4c5(0x152),'type':a209_0x37c4c5(0x142),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a209_0x37c4c5(0x12b),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xec),'hidden':!![]},{'name':a209_0x37c4c5(0xdf),'meowKey':'operationType','type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0x104),'hidden':!![]},{'name':a209_0x37c4c5(0xee),'meowKey':a209_0x37c4c5(0xfb),'type':a209_0x37c4c5(0x142),'description':a209_0x37c4c5(0xda),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a209_0x37c4c5(0x137),a209_0x37c4c5(0xdb),a209_0x37c4c5(0xde),'jq',a209_0x37c4c5(0x147),a209_0x37c4c5(0x144),a209_0x37c4c5(0x13f),'ci']);export function buildMeowFlags(){const _0x4ae69c=a209_0x37c4c5;return Object['fromEntries'](GLOBAL_FLAGS[_0x4ae69c(0x125)](_0x1faacb=>[_0x1faacb[_0x4ae69c(0x105)],{'type':_0x1faacb[_0x4ae69c(0x11e)]}]));}
1
+ function a209_0x5acb(_0x2e2c6d,_0x3c5e6c){_0x2e2c6d=_0x2e2c6d-0xc3;const _0x427f61=a209_0x427f();let _0x5acb39=_0x427f61[_0x2e2c6d];return _0x5acb39;}const a209_0x3fd0b7=a209_0x5acb;(function(_0x516fa1,_0x5db4e5){const _0x276b05=a209_0x5acb,_0x272e5a=_0x516fa1();while(!![]){try{const _0x10bedc=-parseInt(_0x276b05(0xee))/0x1*(-parseInt(_0x276b05(0xf8))/0x2)+-parseInt(_0x276b05(0x130))/0x3*(parseInt(_0x276b05(0xf4))/0x4)+-parseInt(_0x276b05(0x11f))/0x5*(parseInt(_0x276b05(0x13d))/0x6)+-parseInt(_0x276b05(0xd2))/0x7*(-parseInt(_0x276b05(0xec))/0x8)+parseInt(_0x276b05(0xcf))/0x9*(parseInt(_0x276b05(0xd9))/0xa)+-parseInt(_0x276b05(0xde))/0xb+-parseInt(_0x276b05(0x119))/0xc;if(_0x10bedc===_0x5db4e5)break;else _0x272e5a['push'](_0x272e5a['shift']());}catch(_0x245837){_0x272e5a['push'](_0x272e5a['shift']());}}}(a209_0x427f,0xc0ccd));export const CLI_BIN_NAME=a209_0x3fd0b7(0xf6);export const CLI_DISPLAY_NAME=a209_0x3fd0b7(0x102);export const NPM_PACKAGE_NAME=a209_0x3fd0b7(0x111);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a209_0x3fd0b7(0xcb),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x110),'hint':a209_0x3fd0b7(0xcc)},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a209_0x3fd0b7(0xe9)},{'name':a209_0x3fd0b7(0x148),'meowKey':'env','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x125),'hint':a209_0x3fd0b7(0x11d)},{'name':'format','meowKey':a209_0x3fd0b7(0x11e),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x14c),'hint':a209_0x3fd0b7(0x13e)},{'name':'jq','meowKey':'jq','type':a209_0x3fd0b7(0xeb),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a209_0x3fd0b7(0x116)},{'name':a209_0x3fd0b7(0x129),'meowKey':a209_0x3fd0b7(0xea),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x114)},{'name':'yes','meowKey':a209_0x3fd0b7(0x108),'type':a209_0x3fd0b7(0x137),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a209_0x3fd0b7(0x141),'meowKey':a209_0x3fd0b7(0x11c),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13b)},{'name':a209_0x3fd0b7(0xe7),'meowKey':a209_0x3fd0b7(0xe7),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':a209_0x3fd0b7(0x10a),'meowKey':a209_0x3fd0b7(0x10a),'type':a209_0x3fd0b7(0x137),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a209_0x3fd0b7(0x14f),'meowKey':'help','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x13a)},{'name':'locale','meowKey':a209_0x3fd0b7(0xe3),'type':'string','description':a209_0x3fd0b7(0xc5),'hidden':!![],'hint':a209_0x3fd0b7(0xed)},{'name':a209_0x3fd0b7(0x101),'meowKey':a209_0x3fd0b7(0x101),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe2),'hidden':!![]},{'name':a209_0x3fd0b7(0xfb),'meowKey':'title','type':a209_0x3fd0b7(0xeb),'description':'Title','hidden':!![]},{'name':a209_0x3fd0b7(0xfa),'meowKey':a209_0x3fd0b7(0xfa),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x107),'hidden':!![]},{'name':a209_0x3fd0b7(0xe4),'meowKey':'topk','type':'string','description':a209_0x3fd0b7(0x113),'hidden':!![]},{'name':a209_0x3fd0b7(0xc3),'meowKey':a209_0x3fd0b7(0xc3),'type':a209_0x3fd0b7(0x137),'description':'Clear','hidden':!![]},{'name':a209_0x3fd0b7(0xf2),'meowKey':a209_0x3fd0b7(0xf2),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xd0),'hidden':!![]},{'name':a209_0x3fd0b7(0xff),'meowKey':a209_0x3fd0b7(0xff),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x100),'hidden':!![]},{'name':a209_0x3fd0b7(0x127),'meowKey':a209_0x3fd0b7(0x127),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x133),'hidden':!![]},{'name':a209_0x3fd0b7(0x10d),'meowKey':a209_0x3fd0b7(0x10d),'type':'string','description':a209_0x3fd0b7(0xc8),'hidden':!![]},{'name':a209_0x3fd0b7(0xfd),'meowKey':a209_0x3fd0b7(0xfd),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x12a),'hidden':!![]},{'name':a209_0x3fd0b7(0x13c),'meowKey':a209_0x3fd0b7(0xf3),'type':'boolean','description':a209_0x3fd0b7(0xce),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a209_0x3fd0b7(0x143),'hidden':!![]},{'name':a209_0x3fd0b7(0xe6),'meowKey':'type','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xef),'hidden':!![]},{'name':'file','meowKey':a209_0x3fd0b7(0x128),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x117),'hidden':!![]},{'name':a209_0x3fd0b7(0x14b),'meowKey':a209_0x3fd0b7(0x14b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x120),'hidden':!![]},{'name':'sql-name','meowKey':'sqlName','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xcd),'hidden':!![]},{'name':a209_0x3fd0b7(0xda),'meowKey':a209_0x3fd0b7(0xda),'type':a209_0x3fd0b7(0xeb),'description':'SQL\x20name','hidden':!![]},{'name':a209_0x3fd0b7(0xd7),'meowKey':a209_0x3fd0b7(0x14d),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0x144),'meowKey':'dbid','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc9),'hidden':!![]},{'name':a209_0x3fd0b7(0xd1),'meowKey':a209_0x3fd0b7(0xd1),'type':'string','description':'Description','hidden':!![]},{'name':a209_0x3fd0b7(0xe8),'meowKey':a209_0x3fd0b7(0x105),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xc4),'hidden':!![]},{'name':a209_0x3fd0b7(0xf5),'meowKey':a209_0x3fd0b7(0xf5),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x138),'hidden':!![]},{'name':a209_0x3fd0b7(0x106),'meowKey':a209_0x3fd0b7(0x106),'type':'string','description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a209_0x3fd0b7(0xd6),'type':'string','description':a209_0x3fd0b7(0x12f),'hidden':!![]},{'name':a209_0x3fd0b7(0x145),'meowKey':'code','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x149),'hidden':!![]},{'name':'sql','meowKey':a209_0x3fd0b7(0x104),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x103),'hidden':!![]},{'name':'schemas','meowKey':a209_0x3fd0b7(0x136),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xe1),'hidden':!![]},{'name':a209_0x3fd0b7(0xdd),'meowKey':a209_0x3fd0b7(0xdd),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x13f),'hidden':!![]},{'name':'target','meowKey':a209_0x3fd0b7(0xdc),'type':'string','description':a209_0x3fd0b7(0x12c),'hidden':!![]},{'name':a209_0x3fd0b7(0x123),'meowKey':'skipImports','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0xc7),'hidden':!![]},{'name':'key','meowKey':'key','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x10e),'hidden':!![]},{'name':a209_0x3fd0b7(0x12b),'meowKey':a209_0x3fd0b7(0x12b),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd5),'hidden':!![]},{'name':a209_0x3fd0b7(0xd8),'meowKey':a209_0x3fd0b7(0xd8),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x132),'hidden':!![]},{'name':a209_0x3fd0b7(0x115),'meowKey':a209_0x3fd0b7(0x115),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x10f),'hidden':!![]},{'name':a209_0x3fd0b7(0x121),'meowKey':a209_0x3fd0b7(0x12e),'type':a209_0x3fd0b7(0xeb),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a209_0x3fd0b7(0x142),'meowKey':'reveal','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x14a),'hidden':!![]},{'name':'force','meowKey':a209_0x3fd0b7(0x150),'type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x146),'hidden':!![]},{'name':a209_0x3fd0b7(0x140),'meowKey':'confirm','type':a209_0x3fd0b7(0x137),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a209_0x3fd0b7(0xdf),'meowKey':'remote','type':'boolean','description':a209_0x3fd0b7(0xc6),'hidden':!![]},{'name':a209_0x3fd0b7(0xf7),'meowKey':'verbose','type':a209_0x3fd0b7(0x137),'description':a209_0x3fd0b7(0x147),'hidden':!![]},{'name':a209_0x3fd0b7(0x109),'meowKey':'expectedCount','type':a209_0x3fd0b7(0xeb),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a209_0x3fd0b7(0xca),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xd3),'hidden':!![]},{'name':a209_0x3fd0b7(0xfc),'meowKey':a209_0x3fd0b7(0xd4),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x112),'hidden':!![]},{'name':a209_0x3fd0b7(0xe0),'meowKey':a209_0x3fd0b7(0xe0),'type':a209_0x3fd0b7(0xeb),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a209_0x3fd0b7(0xdb),'meowKey':a209_0x3fd0b7(0x10c),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x126),'hidden':!![]},{'name':a209_0x3fd0b7(0xe5),'meowKey':a209_0x3fd0b7(0xf9),'type':'string','description':a209_0x3fd0b7(0x11b),'hidden':!![]},{'name':a209_0x3fd0b7(0x118),'meowKey':'expectedChildrenCount','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x11a),'hidden':!![]},{'name':a209_0x3fd0b7(0x122),'meowKey':a209_0x3fd0b7(0xf1),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x12d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0xfe),'hidden':!![]},{'name':a209_0x3fd0b7(0xf0),'meowKey':a209_0x3fd0b7(0x139),'type':a209_0x3fd0b7(0xeb),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x3fd0b7(0x124),'meowKey':a209_0x3fd0b7(0x135),'type':a209_0x3fd0b7(0xeb),'description':a209_0x3fd0b7(0x134),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x3fd0b7(0xcb),'app',a209_0x3fd0b7(0x148),a209_0x3fd0b7(0x11e),'jq',a209_0x3fd0b7(0x129),a209_0x3fd0b7(0x108),a209_0x3fd0b7(0x141),'ci']);function a209_0x427f(){const _0x440d5e=['Expected\x20current\x20child\x20count','Expected\x20current\x20menu\x20path','nonInteractive','production\x20|\x20daily','format','65QnBblO','SQL\x20code','from-env','menu-ids','skip-imports','function-node','Environment','Expected\x20current\x20parent\x20menu\x20id','params','file','dry-run','Apply\x20to\x20all','value','Target\x20path','Comma-separated\x20menu\x20IDs','fromEnv','Keyword\x20filter','1246803JpHSBH','meowKey','Tags','JSON\x20params','Function\x20node','functionNode','schemas','boolean','Page\x20number','operationType','Show\x20help','Force\x20non-interactive\x20mode\x20(CI)','enable-bff-save','329370XPuDer','json\x20|\x20pretty\x20|\x20compress','Operation\x20type','confirm','non-interactive','reveal','Record\x20ID','dbid','code','Force\x20overwrite','Verbose\x20output','env','Code\x20filter','Reveal\x20sensitive\x20value','sqlcode','Output\x20format','dbId','fromEntries','help','force','clear','Description\x20file','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','Use\x20remote','Skip\x20import\x20generation','Dataset\x20code','DB\x20ID','label','appcode','<code>','SQL\x20name','Enable\x20Backend\x20Function\x20save','9xQlEsa','Watch\x20mode','description','287VMahxc','Menu\x20label','parentId','Config\x20value','keyword','db-id','tags','12950760PRijJV','sqlname','expect-parent-id','target','operation','2828551zanRpv','remote','sort','Schemas','Name','locale','topk','expect-path','type','global','description-file','<name>','dryRun','string','244072XPILRK','zh-CN\x20|\x20en-US','917771lsljyM','Type\x20filter','operation-type','menuIds','watch','enableBffSave','4ZiEknw','page','rabetbase','verbose','2wChafn','expectPath','query','title','parent-id','all','Asynchronous\x20task\x20ID','output','Output\x20path','name','Rabetbase\x20CLI','SQL\x20string','sql','descriptionFile','pagesize','Search\x20query','yes','expected-count','project','map','expectParentId','datasetcode','Config\x20key','Read\x20value\x20from\x20stdin','Override\x20appcode','@lovrabet/rabetbase-cli','Parent\x20menu\x20id','Maximum\x20search\x20hits','Preview\x20operation\x20without\x20executing','stdin','<expr>','File\x20path','expected-children-count','15451560rtuVAT'];a209_0x427f=function(){return _0x440d5e;};return a209_0x427f();}export function buildMeowFlags(){const _0x10afd3=a209_0x3fd0b7;return Object[_0x10afd3(0x14e)](GLOBAL_FLAGS[_0x10afd3(0x10b)](_0x42a9a0=>[_0x42a9a0[_0x10afd3(0x131)],{'type':_0x42a9a0[_0x10afd3(0xe6)]}]));}
@@ -1 +1 @@
1
- const a210_0x4e5ab6=a210_0x797a;(function(_0x57101c,_0x1e8fe4){const _0x32e976=a210_0x797a,_0x3fa6fb=_0x57101c();while(!![]){try{const _0x1f73fe=parseInt(_0x32e976(0x112))/0x1+parseInt(_0x32e976(0x113))/0x2+-parseInt(_0x32e976(0x10a))/0x3*(-parseInt(_0x32e976(0x10d))/0x4)+-parseInt(_0x32e976(0x114))/0x5+parseInt(_0x32e976(0x115))/0x6+parseInt(_0x32e976(0x10c))/0x7*(parseInt(_0x32e976(0x10f))/0x8)+-parseInt(_0x32e976(0x111))/0x9;if(_0x1f73fe===_0x1e8fe4)break;else _0x3fa6fb['push'](_0x3fa6fb['shift']());}catch(_0x5822c9){_0x3fa6fb['push'](_0x3fa6fb['shift']());}}}(a210_0x3b3a,0x84280));function a210_0x797a(_0x30afff,_0x1df11e){_0x30afff=_0x30afff-0x10a;const _0x3b3a04=a210_0x3b3a();let _0x797a75=_0x3b3a04[_0x30afff];return _0x797a75;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a210_0x4e5ab6(0x110),'format':'compress','locale':a210_0x4e5ab6(0x10e),'riskLevel':a210_0x4e5ab6(0x10b),'apiDir':DEFAULT_API_DIR};function a210_0x3b3a(){const _0x335123=['compress','3NJrKym','write','49dGidyx','3141392YLZKwa','en-US','336728MaftgM','production','8754948oKYEiw','338440GUlhXR','335314lGvury','3812430IQRhAF','4142928kZVWhz'];a210_0x3b3a=function(){return _0x335123;};return a210_0x3b3a();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a210_0x4e5ab6(0x116);
1
+ const a210_0x11519e=a210_0x201d;function a210_0x55b3(){const _0x242316=['write','compress','619419nFFIlS','2785734tXtGIh','33384vsWGOx','en-US','10RdvCcY','4LIMgBb','295382ZTOamm','7MRpNLg','355MTEWRs','2902141mrKdBS','2970728EqxLTI','production','1536188BVfQSy'];a210_0x55b3=function(){return _0x242316;};return a210_0x55b3();}(function(_0xb15d74,_0x518fb1){const _0x39e308=a210_0x201d,_0x88166=_0xb15d74();while(!![]){try{const _0x1848b4=-parseInt(_0x39e308(0xd1))/0x1+-parseInt(_0x39e308(0xd0))/0x2*(parseInt(_0x39e308(0xcb))/0x3)+parseInt(_0x39e308(0xc8))/0x4+-parseInt(_0x39e308(0xd3))/0x5*(parseInt(_0x39e308(0xcd))/0x6)+parseInt(_0x39e308(0xd2))/0x7*(parseInt(_0x39e308(0xd5))/0x8)+parseInt(_0x39e308(0xcc))/0x9+parseInt(_0x39e308(0xcf))/0xa*(parseInt(_0x39e308(0xd4))/0xb);if(_0x1848b4===_0x518fb1)break;else _0x88166['push'](_0x88166['shift']());}catch(_0x366fca){_0x88166['push'](_0x88166['shift']());}}}(a210_0x55b3,0x3705d));import{DEFAULT_API_DIR}from'../constant/paths.js';function a210_0x201d(_0x319b5d,_0x36d33d){_0x319b5d=_0x319b5d-0xc7;const _0x55b303=a210_0x55b3();let _0x201de6=_0x55b303[_0x319b5d];return _0x201de6;}export const DEFAULT_CONFIG_VALUES={'env':a210_0x11519e(0xc7),'format':a210_0x11519e(0xca),'locale':a210_0x11519e(0xce),'riskLevel':a210_0x11519e(0xc9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a211_0x1b0b8b=a211_0x31aa;(function(_0x468979,_0x224202){const _0x8db296=a211_0x31aa,_0x31f25d=_0x468979();while(!![]){try{const _0x104b70=-parseInt(_0x8db296(0x1e6))/0x1+-parseInt(_0x8db296(0x1e7))/0x2+parseInt(_0x8db296(0x1ec))/0x3*(-parseInt(_0x8db296(0x1f4))/0x4)+parseInt(_0x8db296(0x1e1))/0x5*(-parseInt(_0x8db296(0x1d2))/0x6)+parseInt(_0x8db296(0x1e2))/0x7*(-parseInt(_0x8db296(0x1f1))/0x8)+-parseInt(_0x8db296(0x1ff))/0x9+parseInt(_0x8db296(0x1da))/0xa;if(_0x104b70===_0x224202)break;else _0x31f25d['push'](_0x31f25d['shift']());}catch(_0x36c223){_0x31f25d['push'](_0x31f25d['shift']());}}}(a211_0x4688,0x8b091));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a211_0x4688(){const _0xcd92ea=['appDomain','hostname','https://user.lovrabet.ai','32138630khLuAF','https://user.lovrabet.id','runtime','https://daily-runtime.lovrabet.id','https://daily.lovrabet.com','app','https://skills-daily.lovrabet.id','35eJzJpC','21ZxbNiF','https://skills-daily.lovrabet.com','https://api.lovrabet.ai','https://daily-runtime.lovrabet.com','58177kbekmA','38464OUCVye','https://skills.lovrabet.id','https://user-daily.lovrabet.com','https://user-daily.lovrabet.ai','https://user-daily.lovrabet.id','2151RzXWPx','https://daily-runtime.lovrabet.ai','https://api.lovrabet.id','https://daily.lovrabet.id','https://app.lovrabet.com','796584nEjfXl','https://user.lovrabet.com','userDomain','3992BxlstE','https://skills.lovrabet.ai','trim','https://daily-api.lovrabet.id','https://daily-api.lovrabet.com','apiDomain','runtimeDomain','nonProduction','skill','https://skills.lovrabet.com','https://daily-api.lovrabet.ai','6893676oNyxjv','skillDomain','https://api.lovrabet.com','674328wkTgHG','https://app.lovrabet.ai','kbDomain','https://skills-daily.lovrabet.ai','user'];a211_0x4688=function(){return _0xcd92ea;};return a211_0x4688();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a211_0x1b0b8b(0x1f2),'api':a211_0x1b0b8b(0x1d1),'runtime':'https://runtime.lovrabet.com','skill':a211_0x1b0b8b(0x1fd),'kb':'https://api.lovrabet.com','app':a211_0x1b0b8b(0x1f0)},'nonProduction':{'user':a211_0x1b0b8b(0x1e9),'api':'https://daily-api.lovrabet.com','runtime':a211_0x1b0b8b(0x1e5),'skill':a211_0x1b0b8b(0x1e3),'kb':a211_0x1b0b8b(0x1f8),'app':a211_0x1b0b8b(0x1de)}},'id':{'production':{'user':a211_0x1b0b8b(0x1db),'api':'https://api.lovrabet.id','runtime':'https://runtime.lovrabet.id','skill':a211_0x1b0b8b(0x1e8),'kb':a211_0x1b0b8b(0x1ee),'app':'https://app.lovrabet.id'},'nonProduction':{'user':a211_0x1b0b8b(0x1eb),'api':a211_0x1b0b8b(0x1f7),'runtime':a211_0x1b0b8b(0x1dd),'skill':a211_0x1b0b8b(0x1e0),'kb':a211_0x1b0b8b(0x1f7),'app':a211_0x1b0b8b(0x1ef)}},'global':{'production':{'user':a211_0x1b0b8b(0x1d9),'api':a211_0x1b0b8b(0x1e4),'runtime':'https://runtime.lovrabet.ai','skill':a211_0x1b0b8b(0x1f5),'kb':a211_0x1b0b8b(0x1e4),'app':a211_0x1b0b8b(0x1d3)},'nonProduction':{'user':a211_0x1b0b8b(0x1ea),'api':'https://daily-api.lovrabet.ai','runtime':a211_0x1b0b8b(0x1ed),'skill':a211_0x1b0b8b(0x1d5),'kb':a211_0x1b0b8b(0x1fe),'app':'https://daily.lovrabet.ai'}}};function getActiveRegionDomains(){const _0x25dbb7=a211_0x1b0b8b;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?'production':_0x25dbb7(0x1fb)];}export function initDomains(_0x254fe0){const _0x27d858=a211_0x1b0b8b;customApiDomain=_0x254fe0?.[_0x27d858(0x1f9)],customUserDomain=_0x254fe0?.[_0x27d858(0x1f3)],customRuntimeDomain=_0x254fe0?.[_0x27d858(0x1fa)],customSkillDomain=_0x254fe0?.[_0x27d858(0x200)],customKbDomain=_0x254fe0?.[_0x27d858(0x1d4)],customAppDomain=_0x254fe0?.[_0x27d858(0x1d7)],activeRegion=_0x254fe0?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a211_0x1b0b8b(0x1d6)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x1b0b8b(0x1dc)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x1b0b8b(0x1fc)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a211_0x1b0b8b(0x1df)];export const getActiveRegion=()=>activeRegion;function a211_0x31aa(_0x19adcc,_0x1cef6a){_0x19adcc=_0x19adcc-0x1d1;const _0x46883e=a211_0x4688();let _0x31aaa9=_0x46883e[_0x19adcc];return _0x31aaa9;}export function getSdkClientRoutingConfig(){const _0x39d597=a211_0x1b0b8b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x39d597(0x1dc)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion==='global')return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x1216ee=>{const _0x4d803d=a211_0x1b0b8b,_0x34147c=encodeURIComponent(_0x1216ee[_0x4d803d(0x1f6)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x34147c:getAppDomain()+'/web-app/app/'+_0x34147c;};export const getPublishedAppDomain=_0x2758bd=>{const _0x9e46af=a211_0x1b0b8b,_0x242b8f=new URL(getAppDomain());return _0x242b8f[_0x9e46af(0x1d8)]=_0x2758bd[_0x9e46af(0x1f6)]()+'.'+_0x242b8f[_0x9e46af(0x1d8)],_0x242b8f['origin'];};
1
+ const a211_0x392f83=a211_0x4b50;(function(_0x27b6d2,_0x1eec1f){const _0x40b9aa=a211_0x4b50,_0x321a7a=_0x27b6d2();while(!![]){try{const _0x8eefc8=parseInt(_0x40b9aa(0x1d0))/0x1+parseInt(_0x40b9aa(0x1d1))/0x2*(-parseInt(_0x40b9aa(0x1dc))/0x3)+parseInt(_0x40b9aa(0x1da))/0x4+parseInt(_0x40b9aa(0x1b4))/0x5+-parseInt(_0x40b9aa(0x1b0))/0x6+-parseInt(_0x40b9aa(0x1d9))/0x7+parseInt(_0x40b9aa(0x1c0))/0x8*(parseInt(_0x40b9aa(0x1d2))/0x9);if(_0x8eefc8===_0x1eec1f)break;else _0x321a7a['push'](_0x321a7a['shift']());}catch(_0x227847){_0x321a7a['push'](_0x321a7a['shift']());}}}(a211_0x4548,0xb78cc));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a211_0x392f83(0x1b1),'api':'https://api.lovrabet.com','runtime':a211_0x392f83(0x1cd),'skill':'https://skills.lovrabet.com','kb':a211_0x392f83(0x1ba),'app':a211_0x392f83(0x1c8)},'nonProduction':{'user':a211_0x392f83(0x1d7),'api':a211_0x392f83(0x1b8),'runtime':a211_0x392f83(0x1b9),'skill':a211_0x392f83(0x1d6),'kb':'https://daily-api.lovrabet.com','app':a211_0x392f83(0x1d8)}},'id':{'production':{'user':a211_0x392f83(0x1c5),'api':a211_0x392f83(0x1c4),'runtime':'https://runtime.lovrabet.id','skill':a211_0x392f83(0x1c2),'kb':a211_0x392f83(0x1c4),'app':a211_0x392f83(0x1cf)},'nonProduction':{'user':a211_0x392f83(0x1c1),'api':a211_0x392f83(0x1d3),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':'https://daily-api.lovrabet.id','app':a211_0x392f83(0x1db)}},'global':{'production':{'user':a211_0x392f83(0x1bc),'api':a211_0x392f83(0x1c6),'runtime':'https://runtime.lovrabet.ai','skill':'https://skills.lovrabet.ai','kb':a211_0x392f83(0x1c6),'app':a211_0x392f83(0x1d5)},'nonProduction':{'user':a211_0x392f83(0x1bf),'api':a211_0x392f83(0x1be),'runtime':a211_0x392f83(0x1c7),'skill':a211_0x392f83(0x1cc),'kb':'https://daily-api.lovrabet.ai','app':a211_0x392f83(0x1ce)}}};function a211_0x4b50(_0x53d23f,_0x26075b){_0x53d23f=_0x53d23f-0x1b0;const _0x45488e=a211_0x4548();let _0x4b5012=_0x45488e[_0x53d23f];return _0x4b5012;}function getActiveRegionDomains(){const _0x316f21=a211_0x392f83;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?_0x316f21(0x1bd):_0x316f21(0x1ca)];}export function initDomains(_0x29069a){const _0x54ddb8=a211_0x392f83;customApiDomain=_0x29069a?.[_0x54ddb8(0x1b3)],customUserDomain=_0x29069a?.[_0x54ddb8(0x1b5)],customRuntimeDomain=_0x29069a?.[_0x54ddb8(0x1cb)],customSkillDomain=_0x29069a?.[_0x54ddb8(0x1dd)],customKbDomain=_0x29069a?.['kbDomain'],customAppDomain=_0x29069a?.[_0x54ddb8(0x1b2)],activeRegion=_0x29069a?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a211_0x392f83(0x1c9)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a211_0x392f83(0x1d4)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a211_0x392f83(0x1bb)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()['app'];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x215678=a211_0x392f83;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x215678(0x1d4)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion==='global')return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x5bfd07=>{const _0x19fd59=a211_0x392f83,_0x41dd5f=encodeURIComponent(_0x5bfd07[_0x19fd59(0x1b7)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x41dd5f:getAppDomain()+'/web-app/app/'+_0x41dd5f;};function a211_0x4548(){const _0x34023f=['https://daily-api.lovrabet.id','runtime','https://app.lovrabet.ai','https://skills-daily.lovrabet.com','https://user-daily.lovrabet.com','https://daily.lovrabet.com','9313675jIzwyv','2161740cjoIXL','https://daily.lovrabet.id','1997277POZkoL','skillDomain','6474894HolJbb','https://user.lovrabet.com','appDomain','apiDomain','2891985JdlxMb','userDomain','hostname','trim','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','https://api.lovrabet.com','skill','https://user.lovrabet.ai','production','https://daily-api.lovrabet.ai','https://user-daily.lovrabet.ai','4097768wlPQNC','https://user-daily.lovrabet.id','https://skills.lovrabet.id','origin','https://api.lovrabet.id','https://user.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.ai','https://app.lovrabet.com','api','nonProduction','runtimeDomain','https://skills-daily.lovrabet.ai','https://runtime.lovrabet.com','https://daily.lovrabet.ai','https://app.lovrabet.id','1325296nbGatZ','4aPFPHC','36qjJeFG'];a211_0x4548=function(){return _0x34023f;};return a211_0x4548();}export const getPublishedAppDomain=_0x5ae015=>{const _0x6f3022=a211_0x392f83,_0x27e3f4=new URL(getAppDomain());return _0x27e3f4['hostname']=_0x5ae015[_0x6f3022(0x1b7)]()+'.'+_0x27e3f4[_0x6f3022(0x1b6)],_0x27e3f4[_0x6f3022(0x1c3)];};
@@ -1 +1 @@
1
- const a212_0x5467b4=a212_0x4cb3;(function(_0x15cf1e,_0x28df50){const _0x5139b8=a212_0x4cb3,_0x15ce13=_0x15cf1e();while(!![]){try{const _0x1bae73=parseInt(_0x5139b8(0x78))/0x1*(parseInt(_0x5139b8(0x77))/0x2)+parseInt(_0x5139b8(0x7c))/0x3+parseInt(_0x5139b8(0x74))/0x4+-parseInt(_0x5139b8(0x75))/0x5*(parseInt(_0x5139b8(0x76))/0x6)+-parseInt(_0x5139b8(0x72))/0x7+-parseInt(_0x5139b8(0x7a))/0x8*(-parseInt(_0x5139b8(0x7d))/0x9)+parseInt(_0x5139b8(0x7b))/0xa;if(_0x1bae73===_0x28df50)break;else _0x15ce13['push'](_0x15ce13['shift']());}catch(_0x2f3716){_0x15ce13['push'](_0x15ce13['shift']());}}}(a212_0x3ce5,0xe9ea8));export const RABETBASE_ENV_VALUES=[a212_0x5467b4(0x73),'daily'];function a212_0x3ce5(){const _0x229e7c=['3034224KaIxMj','1878296pUJKfE','production','157572FgWwwc','565KySVdY','84882MCXnHD','130748NGHLnD','4GWpDAK','dev','32DgcjHt','6858590LzodUv','1469301BXiKKP'];a212_0x3ce5=function(){return _0x229e7c;};return a212_0x3ce5();}export function normalizeEnv(_0x52be07){const _0x5927ee=a212_0x5467b4;return _0x52be07==='online'?_0x5927ee(0x73):_0x52be07;}export function isProduction(_0x7a75e8){const _0x15c6ff=a212_0x5467b4;return normalizeEnv(_0x7a75e8)===_0x15c6ff(0x73);}export function isDaily(_0x1914bd){return normalizeEnv(_0x1914bd)==='daily';}export function isDev(_0x4d92a6){const _0x3c998e=a212_0x5467b4,_0x5af3af=normalizeEnv(_0x4d92a6);return _0x5af3af==='development'||_0x5af3af===_0x3c998e(0x79);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x5467b4(0x73));export function getEnv(){return env;}function a212_0x4cb3(_0x52ebf2,_0x4c0897){_0x52ebf2=_0x52ebf2-0x72;const _0x3ce538=a212_0x3ce5();let _0x4cb36a=_0x3ce538[_0x52ebf2];return _0x4cb36a;}export function initEnv(_0x2c7906){env=normalizeEnv(_0x2c7906);}
1
+ const a212_0xb04b08=a212_0x2cf5;function a212_0x1b49(){const _0xd6de7a=['online','415886xFnvFg','development','222388RfAnKg','613120OxyTmS','3TinSnT','production','523954MvZxjK','1110780fcNXLB','15342czrlBN','dev','1025880uFAeyD','daily','217ZweuZF'];a212_0x1b49=function(){return _0xd6de7a;};return a212_0x1b49();}(function(_0x37c6f3,_0x1b2811){const _0xe3cb8=a212_0x2cf5,_0x24e797=_0x37c6f3();while(!![]){try{const _0x4262a1=-parseInt(_0xe3cb8(0x1cb))/0x1+parseInt(_0xe3cb8(0x1d1))/0x2+-parseInt(_0xe3cb8(0x1cf))/0x3*(-parseInt(_0xe3cb8(0x1cd))/0x4)+parseInt(_0xe3cb8(0x1d5))/0x5+-parseInt(_0xe3cb8(0x1d3))/0x6*(parseInt(_0xe3cb8(0x1d7))/0x7)+parseInt(_0xe3cb8(0x1ce))/0x8+parseInt(_0xe3cb8(0x1d2))/0x9;if(_0x4262a1===_0x1b2811)break;else _0x24e797['push'](_0x24e797['shift']());}catch(_0x556146){_0x24e797['push'](_0x24e797['shift']());}}}(a212_0x1b49,0x37949));export const RABETBASE_ENV_VALUES=['production',a212_0xb04b08(0x1d6)];export function normalizeEnv(_0x44e746){const _0x34b6b1=a212_0xb04b08;return _0x44e746===_0x34b6b1(0x1ca)?_0x34b6b1(0x1d0):_0x44e746;}export function isProduction(_0x22d167){return normalizeEnv(_0x22d167)==='production';}export function isDaily(_0x1fb166){const _0x1a49e0=a212_0xb04b08;return normalizeEnv(_0x1fb166)===_0x1a49e0(0x1d6);}export function isDev(_0x396463){const _0x57847a=a212_0xb04b08,_0x4278f6=normalizeEnv(_0x396463);return _0x4278f6===_0x57847a(0x1cc)||_0x4278f6===_0x57847a(0x1d4);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0xb04b08(0x1d0));function a212_0x2cf5(_0x1c51ae,_0x2260eb){_0x1c51ae=_0x1c51ae-0x1ca;const _0x1b490f=a212_0x1b49();let _0x2cf5d4=_0x1b490f[_0x1c51ae];return _0x2cf5d4;}export function getEnv(){return env;}export function initEnv(_0x2d2a89){env=normalizeEnv(_0x2d2a89);}
@@ -1 +1 @@
1
- const a213_0x1197c6=a213_0x20cc;(function(_0x5b21c0,_0x37e4f4){const _0x26aa9a=a213_0x20cc,_0x151931=_0x5b21c0();while(!![]){try{const _0x54d8fb=-parseInt(_0x26aa9a(0x161))/0x1+-parseInt(_0x26aa9a(0x15c))/0x2*(-parseInt(_0x26aa9a(0x155))/0x3)+parseInt(_0x26aa9a(0x15a))/0x4*(-parseInt(_0x26aa9a(0x156))/0x5)+-parseInt(_0x26aa9a(0x15d))/0x6*(-parseInt(_0x26aa9a(0x160))/0x7)+-parseInt(_0x26aa9a(0x15f))/0x8*(-parseInt(_0x26aa9a(0x15b))/0x9)+-parseInt(_0x26aa9a(0x162))/0xa+-parseInt(_0x26aa9a(0x157))/0xb*(parseInt(_0x26aa9a(0x15e))/0xc);if(_0x54d8fb===_0x37e4f4)break;else _0x151931['push'](_0x151931['shift']());}catch(_0x15b75b){_0x151931['push'](_0x151931['shift']());}}}(a213_0x5ce8,0xbc897));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a213_0x1197c6(0x158),a213_0x1197c6(0x159),'compress'];function a213_0x20cc(_0x16d8ee,_0x5b814a){_0x16d8ee=_0x16d8ee-0x155;const _0x5ce860=a213_0x5ce8();let _0x20ccf6=_0x5ce860[_0x16d8ee];return _0x20ccf6;}function a213_0x5ce8(){const _0x27ae75=['json','pretty','56508fRFrWd','55143jnzsib','2QsieHI','29772FnwAVO','206196kpUbMg','952odkybi','1855xOsFyX','368690iWxFwU','1058470eOmmvK','3924537UCgGim','210CitlEo','968cOYhgI'];a213_0x5ce8=function(){return _0x27ae75;};return a213_0x5ce8();}
1
+ const a213_0x171061=a213_0x1482;(function(_0x431d94,_0x32e28d){const _0x4afa22=a213_0x1482,_0x2e4db8=_0x431d94();while(!![]){try{const _0x219fbe=-parseInt(_0x4afa22(0x168))/0x1+parseInt(_0x4afa22(0x167))/0x2+parseInt(_0x4afa22(0x164))/0x3*(-parseInt(_0x4afa22(0x169))/0x4)+-parseInt(_0x4afa22(0x163))/0x5*(parseInt(_0x4afa22(0x16b))/0x6)+parseInt(_0x4afa22(0x16a))/0x7+-parseInt(_0x4afa22(0x16d))/0x8+-parseInt(_0x4afa22(0x165))/0x9*(-parseInt(_0x4afa22(0x16e))/0xa);if(_0x219fbe===_0x32e28d)break;else _0x2e4db8['push'](_0x2e4db8['shift']());}catch(_0x57df3e){_0x2e4db8['push'](_0x2e4db8['shift']());}}}(a213_0x14ad,0x48e6d));function a213_0x14ad(){const _0x40ef82=['1765080DYhXlc','17220LxMmiD','json','5ORcQVW','3RxLtAA','7173iMtboe','compress','570650pldhKY','322344kRpKKi','1771676mNCURv','769181oazUej','2898834hXvhAX','pretty'];a213_0x14ad=function(){return _0x40ef82;};return a213_0x14ad();}function a213_0x1482(_0x37553e,_0x3445ae){_0x37553e=_0x37553e-0x162;const _0x14ad37=a213_0x14ad();let _0x148260=_0x14ad37[_0x37553e];return _0x148260;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a213_0x171061(0x162),a213_0x171061(0x16c),a213_0x171061(0x166)];
@@ -1 +1 @@
1
- (function(_0x4db5cb,_0x1350d9){const _0x3ab968=a214_0x1902,_0x66737a=_0x4db5cb();while(!![]){try{const _0xc3aed7=parseInt(_0x3ab968(0x9b))/0x1+parseInt(_0x3ab968(0xa0))/0x2+parseInt(_0x3ab968(0x99))/0x3+parseInt(_0x3ab968(0x9d))/0x4*(-parseInt(_0x3ab968(0x9f))/0x5)+parseInt(_0x3ab968(0x9e))/0x6+-parseInt(_0x3ab968(0xa1))/0x7+parseInt(_0x3ab968(0x9a))/0x8*(-parseInt(_0x3ab968(0x9c))/0x9);if(_0xc3aed7===_0x1350d9)break;else _0x66737a['push'](_0x66737a['shift']());}catch(_0x4a2004){_0x66737a['push'](_0x66737a['shift']());}}}(a214_0x6759,0xf0ee1));function a214_0x6759(){const _0x35d151=['64lDbBwD','1590079bfqQzM','2283165YhYdGF','4YXsbza','11569086bQHzrw','4667765esHoqt','2140904Pslpqr','5250371KNbjyx','333669cRseJJ'];a214_0x6759=function(){return _0x35d151;};return a214_0x6759();}function a214_0x1902(_0x34e7b0,_0x3f7fea){_0x34e7b0=_0x34e7b0-0x99;const _0x675912=a214_0x6759();let _0x190203=_0x675912[_0x34e7b0];return _0x190203;}export const DEFAULT_API_DIR='./src/api';
1
+ function a214_0x102c(){const _0x1fe9ff=['90yqkMId','65022MvVVNP','16vVQDbV','7644FPSyvw','1019029AoNECe','1043vbcyzQ','884930YYwAGM','52672QRBPyz','4qvPwND','496UcgVrk','138177luxoKT','35373NYLwsL','3285768ydaxgZ'];a214_0x102c=function(){return _0x1fe9ff;};return a214_0x102c();}(function(_0x5d3372,_0x48fe53){const _0x23a547=a214_0xcf25,_0x270920=_0x5d3372();while(!![]){try{const _0xb719fc=parseInt(_0x23a547(0xa0))/0x1*(-parseInt(_0x23a547(0x98))/0x2)+parseInt(_0x23a547(0x9d))/0x3*(parseInt(_0x23a547(0x99))/0x4)+parseInt(_0x23a547(0x97))/0x5+parseInt(_0x23a547(0x9f))/0x6*(parseInt(_0x23a547(0x96))/0x7)+parseInt(_0x23a547(0x9a))/0x8*(parseInt(_0x23a547(0x9b))/0x9)+parseInt(_0x23a547(0x9e))/0xa*(-parseInt(_0x23a547(0x95))/0xb)+parseInt(_0x23a547(0xa1))/0xc*(-parseInt(_0x23a547(0x9c))/0xd);if(_0xb719fc===_0x48fe53)break;else _0x270920['push'](_0x270920['shift']());}catch(_0xaedf8e){_0x270920['push'](_0x270920['shift']());}}}(a214_0x102c,0xcfa05));function a214_0xcf25(_0x555129,_0x3d2fa4){_0x555129=_0x555129-0x95;const _0x102c5c=a214_0x102c();let _0xcf253=_0x102c5c[_0x555129];return _0xcf253;}export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- (function(_0x22051a,_0x1b95d6){const _0x5aaf4a=a215_0x470d,_0x1ee175=_0x22051a();while(!![]){try{const _0x359c06=-parseInt(_0x5aaf4a(0x75))/0x1*(parseInt(_0x5aaf4a(0x73))/0x2)+-parseInt(_0x5aaf4a(0x77))/0x3*(-parseInt(_0x5aaf4a(0x74))/0x4)+parseInt(_0x5aaf4a(0x70))/0x5+-parseInt(_0x5aaf4a(0x71))/0x6+parseInt(_0x5aaf4a(0x72))/0x7+parseInt(_0x5aaf4a(0x6f))/0x8+parseInt(_0x5aaf4a(0x76))/0x9*(-parseInt(_0x5aaf4a(0x7a))/0xa);if(_0x359c06===_0x1b95d6)break;else _0x1ee175['push'](_0x1ee175['shift']());}catch(_0x4401e5){_0x1ee175['push'](_0x1ee175['shift']());}}}(a215_0x5ddd,0xe2933));export const LOVRABET_REGION_VALUES=['cn','id','global'];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';function a215_0x470d(_0x367b38,_0x20ac96){_0x367b38=_0x367b38-0x6d;const _0x5ddd2e=a215_0x5ddd();let _0x470dc9=_0x5ddd2e[_0x367b38];return _0x470dc9;}export function isLovrabetRegion(_0x281b6e){const _0x131f92=a215_0x470d;return typeof _0x281b6e===_0x131f92(0x6e)&&LOVRABET_REGION_VALUES[_0x131f92(0x79)](_0x281b6e);}export function isEnabledLovrabetRegion(_0xcfb447){const _0x3e41ea=a215_0x470d;return typeof _0xcfb447===_0x3e41ea(0x6e)&&ENABLED_LOVRABET_REGION_VALUES[_0x3e41ea(0x79)](_0xcfb447);}export function normalizeLovrabetRegion(_0x5d0c3d){const _0x47765a=a215_0x470d;if(_0x5d0c3d===_0x47765a(0x6d))return'cn';if(_0x5d0c3d===_0x47765a(0x78))return'id';return isLovrabetRegion(_0x5d0c3d)?_0x5d0c3d:DEFAULT_LOVRABET_REGION;}function a215_0x5ddd(){const _0x4e1256=['4448910GyWpVt','2686302vmSEmo','11121285cZGOga','710422mtZmED','163304LfjkZr','2TyUXOl','10819485IHJEuX','75jmymOE','indonesia','includes','20FSSBAP','china','string','7930664piheFH'];a215_0x5ddd=function(){return _0x4e1256;};return a215_0x5ddd();}
1
+ const a215_0x439990=a215_0x47e3;function a215_0xbda9(){const _0x45b04e=['39Twabjc','2295544qyrAzy','170lQMygI','477014jTKWaK','62074hJZDdq','indonesia','includes','62514RVqnnz','2796092gEWeLs','string','3422461tgVtiW','global','19487466sRXdxK'];a215_0xbda9=function(){return _0x45b04e;};return a215_0xbda9();}(function(_0x2ba1ab,_0x13c040){const _0x35e8c7=a215_0x47e3,_0x57150e=_0x2ba1ab();while(!![]){try{const _0xb8661b=-parseInt(_0x35e8c7(0x1bd))/0x1+parseInt(_0x35e8c7(0x1be))/0x2*(-parseInt(_0x35e8c7(0x1ba))/0x3)+-parseInt(_0x35e8c7(0x1c2))/0x4+-parseInt(_0x35e8c7(0x1bc))/0x5*(parseInt(_0x35e8c7(0x1c1))/0x6)+parseInt(_0x35e8c7(0x1b7))/0x7+-parseInt(_0x35e8c7(0x1bb))/0x8+parseInt(_0x35e8c7(0x1b9))/0x9;if(_0xb8661b===_0x13c040)break;else _0x57150e['push'](_0x57150e['shift']());}catch(_0x40f032){_0x57150e['push'](_0x57150e['shift']());}}}(a215_0xbda9,0x69d52));export const LOVRABET_REGION_VALUES=['cn','id',a215_0x439990(0x1b8)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x5ded4a){const _0x55fdb6=a215_0x439990;return typeof _0x5ded4a===_0x55fdb6(0x1c3)&&LOVRABET_REGION_VALUES[_0x55fdb6(0x1c0)](_0x5ded4a);}export function isEnabledLovrabetRegion(_0x377fcc){const _0x129b31=a215_0x439990;return typeof _0x377fcc===_0x129b31(0x1c3)&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x377fcc);}function a215_0x47e3(_0x26d381,_0x4c2286){_0x26d381=_0x26d381-0x1b7;const _0xbda99d=a215_0xbda9();let _0x47e3e8=_0xbda99d[_0x26d381];return _0x47e3e8;}export function normalizeLovrabetRegion(_0x3af531){const _0x17d6c6=a215_0x439990;if(_0x3af531==='china')return'cn';if(_0x3af531===_0x17d6c6(0x1bf))return'id';return isLovrabetRegion(_0x3af531)?_0x3af531:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- function a216_0x3aa5(){const _0x2b48de=['5kMvhEy','write','5451696mFAWzl','72OeRwpd','14835964lGVCLl','88aTgiSI','306467NVCfbN','high-risk-write','17652ZSrhXM','1710530visukQ','read','21543GDCczj','8111052vwUvsS','88MSKtxx'];a216_0x3aa5=function(){return _0x2b48de;};return a216_0x3aa5();}function a216_0x4055(_0x240602,_0x23bd08){_0x240602=_0x240602-0x138;const _0x3aa5c6=a216_0x3aa5();let _0x405511=_0x3aa5c6[_0x240602];return _0x405511;}const a216_0x31fd29=a216_0x4055;(function(_0x8c9f49,_0x2077ae){const _0x17107e=a216_0x4055,_0xc1f7d1=_0x8c9f49();while(!![]){try{const _0x4afa82=-parseInt(_0x17107e(0x13c))/0x1+parseInt(_0x17107e(0x13e))/0x2*(parseInt(_0x17107e(0x139))/0x3)+parseInt(_0x17107e(0x141))/0x4+parseInt(_0x17107e(0x13f))/0x5*(-parseInt(_0x17107e(0x13d))/0x6)+parseInt(_0x17107e(0x145))/0x7*(parseInt(_0x17107e(0x144))/0x8)+parseInt(_0x17107e(0x142))/0x9*(-parseInt(_0x17107e(0x13a))/0xa)+parseInt(_0x17107e(0x143))/0xb;if(_0x4afa82===_0x2077ae)break;else _0xc1f7d1['push'](_0xc1f7d1['shift']());}catch(_0x352d84){_0xc1f7d1['push'](_0xc1f7d1['shift']());}}}(a216_0x3aa5,0xad6b6));export const RISK_LEVEL_VALUES=[a216_0x31fd29(0x13b),a216_0x31fd29(0x140),a216_0x31fd29(0x138)];
1
+ function a216_0x1ffb(){const _0x5a4554=['1380827chKDCd','19352pMsoFB','389078NPArGv','568kiiPLY','write','18CVdqpr','high-risk-write','22070mKqUmn','24039JEMZVr','3DVJJjp','1397UgSRAl','1915YpiUzS','708464JOEjsA'];a216_0x1ffb=function(){return _0x5a4554;};return a216_0x1ffb();}const a216_0x4221b4=a216_0x859d;(function(_0x9fc755,_0x462fbf){const _0x20ff35=a216_0x859d,_0x29b94f=_0x9fc755();while(!![]){try{const _0x4c4744=parseInt(_0x20ff35(0x9e))/0x1+parseInt(_0x20ff35(0x9f))/0x2+parseInt(_0x20ff35(0xa6))/0x3*(parseInt(_0x20ff35(0xa9))/0x4)+parseInt(_0x20ff35(0xa8))/0x5*(parseInt(_0x20ff35(0xa2))/0x6)+-parseInt(_0x20ff35(0xaa))/0x7+parseInt(_0x20ff35(0xa0))/0x8*(parseInt(_0x20ff35(0xa5))/0x9)+-parseInt(_0x20ff35(0xa4))/0xa*(parseInt(_0x20ff35(0xa7))/0xb);if(_0x4c4744===_0x462fbf)break;else _0x29b94f['push'](_0x29b94f['shift']());}catch(_0x1f6158){_0x29b94f['push'](_0x29b94f['shift']());}}}(a216_0x1ffb,0x19737));function a216_0x859d(_0x457bed,_0x120524){_0x457bed=_0x457bed-0x9e;const _0x1ffb8=a216_0x1ffb();let _0x859d2f=_0x1ffb8[_0x457bed];return _0x859d2f;}export const RISK_LEVEL_VALUES=['read',a216_0x4221b4(0xa1),a216_0x4221b4(0xa3)];
@@ -1 +1 @@
1
- function a217_0xc39f(){const _0x15a615=['apiDir','2432521gSYlBJ','env','format','3377LpfuYK','pageSize','PAGE_SIZE','120200TEVHof','133514UFhqlW','object','write','length','apps','high-risk-write','11gVXqWM','trim','riskLevel','VERBOSE','projectPath','find','19212gxldtO','6259590ImgzlE','keys','1635670XXZbeD','1421320lfMvdj','app','RISK_LEVEL','cookie','globalConfig','entries','369ErnpXx','12zqhECN','accessKey','appcode','ACCESS_KEY','3bhZIuB','APP','locale'];a217_0xc39f=function(){return _0x15a615;};return a217_0xc39f();}(function(_0x2af0cb,_0x49d16e){const _0xce88b9=a217_0x2fe1,_0x54befc=_0x2af0cb();while(!![]){try{const _0x48edd7=-parseInt(_0xce88b9(0x197))/0x1*(parseInt(_0xce88b9(0x191))/0x2)+-parseInt(_0xce88b9(0x1ac))/0x3*(-parseInt(_0xce88b9(0x1a1))/0x4)+-parseInt(_0xce88b9(0x1a0))/0x5*(-parseInt(_0xce88b9(0x1a8))/0x6)+-parseInt(_0xce88b9(0x1b0))/0x7+parseInt(_0xce88b9(0x190))/0x8*(parseInt(_0xce88b9(0x1a7))/0x9)+-parseInt(_0xce88b9(0x19e))/0xa+-parseInt(_0xce88b9(0x1b3))/0xb*(-parseInt(_0xce88b9(0x19d))/0xc);if(_0x48edd7===_0x49d16e)break;else _0x54befc['push'](_0x54befc['shift']());}catch(_0x2ffa46){_0x54befc['push'](_0x54befc['shift']());}}}(a217_0xc39f,0x63efd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a217_0x2fe1(_0x1cc05c,_0x410625){_0x1cc05c=_0x1cc05c-0x18f;const _0xc39f91=a217_0xc39f();let _0x2fe16f=_0xc39f91[_0x1cc05c];return _0x2fe16f;}function stringConfigValue(_0x534ef6){const _0x4aa16e=a217_0x2fe1;return typeof _0x534ef6==='string'&&_0x534ef6[_0x4aa16e(0x198)]()?_0x534ef6[_0x4aa16e(0x198)]():undefined;}function appProfiles(_0x44a6c5){const _0x3c2a30=a217_0x2fe1;return _0x44a6c5[_0x3c2a30(0x195)]&&typeof _0x44a6c5[_0x3c2a30(0x195)]===_0x3c2a30(0x192)?_0x44a6c5[_0x3c2a30(0x195)]:{};}function resolveDefaultAppName(_0x2b02c8){const _0x3b8267=a217_0x2fe1,_0x24ce4f=stringConfigValue(_0x2b02c8['defaultApp']);if(_0x24ce4f)return _0x24ce4f;const _0x3410db=Object[_0x3b8267(0x19f)](appProfiles(_0x2b02c8));return _0x3410db[_0x3b8267(0x194)]===0x1?_0x3410db[0x0]:undefined;}function resolveTopLevelAppCode(_0x158a8a){const _0x318f91=a217_0x2fe1;return stringConfigValue(_0x158a8a['appcode'])||stringConfigValue(_0x158a8a[_0x318f91(0x1a2)]);}function normalizeRiskCeiling(_0x148671){const _0x1d4176=a217_0x2fe1;if(_0x148671===undefined||_0x148671===null)return undefined;if(_0x148671==='read'||_0x148671===_0x1d4176(0x193)||_0x148671===_0x1d4176(0x196))return _0x148671;return'read';}function resolveRiskCeiling(..._0x5989be){const _0x4404fe=a217_0x2fe1;let _0x316076;for(const _0x42cdfe of _0x5989be){const _0x2738a0=normalizeRiskCeiling(_0x42cdfe);_0x2738a0&&(!_0x316076||riskLevelOrder(_0x2738a0)<riskLevelOrder(_0x316076))&&(_0x316076=_0x2738a0);}return _0x316076??DEFAULT_CONFIG_VALUES[_0x4404fe(0x199)];}export function resolveAppConfig({raw:_0x2b0a41,flags:_0xe4ceb0,layers:_0x1e2b3b,readEnv:_0x3d03d7}){const _0x328647=a217_0x2fe1,_0x3707ae=_0x1e2b3b?.['projectConfig']??{},_0x722aed=_0x1e2b3b?.[_0x328647(0x1a5)]??{},_0xf94185=!!_0x1e2b3b?.[_0x328647(0x19b)]||Object[_0x328647(0x19f)](_0x3707ae)[_0x328647(0x194)]>0x0,_0x2acaa7=!_0xf94185,_0x3bb330=_0xf94185?resolveDefaultAppName(_0x3707ae):undefined,_0x47ef0d=_0x2acaa7?resolveDefaultAppName(_0x722aed):undefined,_0x5cb69a=stringConfigValue(_0xe4ceb0['app']),_0x395db4=_0x3d03d7(_0x328647(0x1ad)),_0x2d07a6={};if(_0x2b0a41[_0x328647(0x195)]&&typeof _0x2b0a41['apps']===_0x328647(0x192))for(const [_0x5451d9,_0x10c8c5]of Object[_0x328647(0x1a6)](_0x2b0a41[_0x328647(0x195)])){_0x10c8c5&&typeof _0x10c8c5===_0x328647(0x192)&&_0x10c8c5[_0x328647(0x1aa)]&&(_0x2d07a6[_0x5451d9]=_0x10c8c5);}const _0x4cbb86=_0x3bb330||_0x47ef0d||resolveDefaultAppName(_0x2b0a41),_0x142486=Object[_0x328647(0x19f)](_0x2d07a6)[_0x328647(0x194)]>0x0,_0x2185f3=_0x5cb69a||_0x3bb330||_0x395db4||_0x47ef0d||_0x4cbb86||undefined,_0x1feb33=stringConfigValue(_0xe4ceb0[_0x328647(0x1aa)]),_0x1fbd0e=_0x1feb33?Object['entries'](_0x2d07a6)[_0x328647(0x19c)](([,_0x2e9a0e])=>_0x2e9a0e?.[_0x328647(0x1aa)]===_0x1feb33):undefined,_0x3d6140=_0x1fbd0e?.[0x0],_0x303c5b=_0x1fbd0e?.[0x1],_0x17bac7=_0x1feb33?_0x3d6140:_0x2185f3;let _0x1613eb=_0x17bac7&&_0x2d07a6[_0x17bac7]?_0x2d07a6[_0x17bac7]:undefined;_0x1feb33&&_0x303c5b&&(_0x1613eb=_0x303c5b);const _0x39d503=_0x1feb33?_0x303c5b??_0x1613eb:_0x1613eb,_0x440ee7=!_0x5cb69a&&!_0x3bb330&&_0x395db4&&_0x17bac7===_0x395db4,_0x35d597=_0x5cb69a||(_0x440ee7?_0x395db4:undefined)||(_0x1feb33?_0x3d6140:undefined),_0x59ee2e=_0x39d503?.[_0x328647(0x1aa)],_0x508eb1=_0xf94185?resolveTopLevelAppCode(_0x3707ae):undefined,_0x5a1d57=_0x2acaa7?resolveTopLevelAppCode(_0x722aed):undefined,_0x17aea4=_0x5cb69a||_0x3bb330?_0x59ee2e:undefined,_0x205a59=!_0x5cb69a&&!_0x3bb330?_0x59ee2e:undefined,_0x12f2e8=_0x1feb33||_0x17aea4||_0x508eb1||_0x205a59||_0x5a1d57||undefined,_0x5ed4a9=_0xf94185?stringConfigValue(_0x3707ae[_0x328647(0x1b1)]):undefined,_0x49fbb9=_0x2acaa7?stringConfigValue(_0x722aed['env']):undefined,_0xdd3195=_0xe4ceb0[_0x328647(0x1b1)]||_0x39d503?.[_0x328647(0x1b1)]||_0x5ed4a9||_0x3d03d7('ENV')||_0x49fbb9||_0x2b0a41[_0x328647(0x1b1)]||DEFAULT_CONFIG_VALUES[_0x328647(0x1b1)],_0x260448=_0x39d503?.[_0x328647(0x1ae)]||_0x2b0a41[_0x328647(0x1ae)]||DEFAULT_CONFIG_VALUES['locale'],_0x47b535=_0x3d03d7('COOKIE')||_0x39d503?.['cookie']||_0x2b0a41[_0x328647(0x1a4)]||undefined,_0x1af228=_0x3d03d7(_0x328647(0x1ab))||_0x39d503?.[_0x328647(0x1a9)]||_0x2b0a41[_0x328647(0x1a9)]||undefined,_0x18ef8f=_0xe4ceb0[_0x328647(0x1b2)]||_0x3d03d7('FORMAT')||_0x39d503?.[_0x328647(0x1b2)]||_0x2b0a41[_0x328647(0x1b2)],_0x329193=normalizeLegacyOutputFormat(_0x18ef8f),_0x775d6=_0x3d03d7(_0x328647(0x18f))||_0x39d503?.[_0x328647(0x1b4)]||_0x2b0a41['pageSize'],_0x1307df=_0x775d6?Number(_0x775d6)||undefined:undefined,_0x2485ea=_0x1e2b3b?[_0x1e2b3b[_0x328647(0x1a5)][_0x328647(0x199)],_0x1e2b3b['projectConfig']['riskLevel']]:[_0x2b0a41[_0x328647(0x199)]],_0x11d475=resolveRiskCeiling(..._0x2485ea,_0x39d503?.[_0x328647(0x199)]),_0x48b35f=resolveRiskCeiling(_0x11d475,_0x3d03d7(_0x328647(0x1a3))),_0x5d5cef=_0x3d03d7(_0x328647(0x19a)),_0x23e51f=_0x5d5cef==='1'||_0x5d5cef==='true',_0xfbb91b=_0x39d503?.[_0x328647(0x1af)]||_0x2b0a41[_0x328647(0x1af)]||DEFAULT_CONFIG_VALUES[_0x328647(0x1af)],_0x545775=isDaily(normalizeEnv(String(_0xdd3195)))?'daily':'production';return{'appCode':typeof _0x12f2e8==='string'&&_0x12f2e8['trim']()?_0x12f2e8[_0x328647(0x198)]():undefined,'env':_0x545775,'locale':_0x260448,'cookie':_0x47b535,'accessKey':_0x1af228,'format':_0x329193,'pageSize':_0x1307df,'riskLevel':_0x48b35f,'verbose':_0x23e51f,'apiDir':_0xfbb91b,'apps':_0x2d07a6,'defaultApp':_0x4cbb86,'currentApp':_0x142486?_0x17bac7:undefined,'explicitAppName':_0x35d597};}
1
+ (function(_0xfeba6e,_0x8a8121){const _0x37d3b9=a217_0x4e46,_0x59be9a=_0xfeba6e();while(!![]){try{const _0x2b4693=-parseInt(_0x37d3b9(0xc0))/0x1*(parseInt(_0x37d3b9(0xc9))/0x2)+parseInt(_0x37d3b9(0xca))/0x3+-parseInt(_0x37d3b9(0xd7))/0x4*(parseInt(_0x37d3b9(0xbf))/0x5)+parseInt(_0x37d3b9(0xdd))/0x6+parseInt(_0x37d3b9(0xe1))/0x7+-parseInt(_0x37d3b9(0xba))/0x8*(parseInt(_0x37d3b9(0xe2))/0x9)+parseInt(_0x37d3b9(0xcc))/0xa*(parseInt(_0x37d3b9(0xdb))/0xb);if(_0x2b4693===_0x8a8121)break;else _0x59be9a['push'](_0x59be9a['shift']());}catch(_0x3d20bf){_0x59be9a['push'](_0x59be9a['shift']());}}}(a217_0x5c89,0xaf8cf));function a217_0x5c89(){const _0x4b462e=['entries','length','PAGE_SIZE','projectConfig','string','2053894IXPnOa','690726MGKFRY','ACCESS_KEY','1590mgenzE','APP','app','high-risk-write','apiDir','find','locale','globalConfig','keys','true','read','1730276maEuOu','format','defaultApp','FORMAT','216689hjbsSC','accessKey','3713748DGzTGz','env','production','cookie','1366512ULPfzZ','3398544dYxedD','trim','RISK_LEVEL','pageSize','24EdBVCq','riskLevel','object','apps','daily','15KdTuKj','1WothXf','VERBOSE','write','appcode'];a217_0x5c89=function(){return _0x4b462e;};return a217_0x5c89();}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a217_0x4e46(_0x1d0253,_0x54f4aa){_0x1d0253=_0x1d0253-0xb8;const _0x5c89f6=a217_0x5c89();let _0x4e469e=_0x5c89f6[_0x1d0253];return _0x4e469e;}function stringConfigValue(_0x1b9aa1){const _0x37bfe5=a217_0x4e46;return typeof _0x1b9aa1===_0x37bfe5(0xc8)&&_0x1b9aa1[_0x37bfe5(0xe3)]()?_0x1b9aa1['trim']():undefined;}function appProfiles(_0x387c1c){const _0x226873=a217_0x4e46;return _0x387c1c[_0x226873(0xbd)]&&typeof _0x387c1c[_0x226873(0xbd)]===_0x226873(0xbc)?_0x387c1c[_0x226873(0xbd)]:{};}function resolveDefaultAppName(_0x5d9ec5){const _0x49b104=a217_0x4e46,_0x27e1b8=stringConfigValue(_0x5d9ec5[_0x49b104(0xd9)]);if(_0x27e1b8)return _0x27e1b8;const _0x359b56=Object[_0x49b104(0xd4)](appProfiles(_0x5d9ec5));return _0x359b56[_0x49b104(0xc5)]===0x1?_0x359b56[0x0]:undefined;}function resolveTopLevelAppCode(_0x42918a){const _0x432174=a217_0x4e46;return stringConfigValue(_0x42918a['appcode'])||stringConfigValue(_0x42918a[_0x432174(0xce)]);}function normalizeRiskCeiling(_0x43c75e){const _0x1f85a5=a217_0x4e46;if(_0x43c75e===undefined||_0x43c75e===null)return undefined;if(_0x43c75e===_0x1f85a5(0xd6)||_0x43c75e===_0x1f85a5(0xc2)||_0x43c75e===_0x1f85a5(0xcf))return _0x43c75e;return _0x1f85a5(0xd6);}function resolveRiskCeiling(..._0x4126d5){const _0x3b87bf=a217_0x4e46;let _0x3f00b3;for(const _0xa2840e of _0x4126d5){const _0x39f109=normalizeRiskCeiling(_0xa2840e);_0x39f109&&(!_0x3f00b3||riskLevelOrder(_0x39f109)<riskLevelOrder(_0x3f00b3))&&(_0x3f00b3=_0x39f109);}return _0x3f00b3??DEFAULT_CONFIG_VALUES[_0x3b87bf(0xbb)];}export function resolveAppConfig({raw:_0x37240d,flags:_0x22f03d,layers:_0x1d3caf,readEnv:_0x8fde53}){const _0x197cac=a217_0x4e46,_0x58819d=_0x1d3caf?.['projectConfig']??{},_0x9f93c4=_0x1d3caf?.[_0x197cac(0xd3)]??{},_0x138fe0=!!_0x1d3caf?.['projectPath']||Object[_0x197cac(0xd4)](_0x58819d)[_0x197cac(0xc5)]>0x0,_0x2faad7=!_0x138fe0,_0x5066df=_0x138fe0?resolveDefaultAppName(_0x58819d):undefined,_0x51a92f=_0x2faad7?resolveDefaultAppName(_0x9f93c4):undefined,_0x446336=stringConfigValue(_0x22f03d[_0x197cac(0xce)]),_0xa426c4=_0x8fde53(_0x197cac(0xcd)),_0x2bb0c2={};if(_0x37240d[_0x197cac(0xbd)]&&typeof _0x37240d[_0x197cac(0xbd)]===_0x197cac(0xbc))for(const [_0x3479b0,_0x4a1677]of Object[_0x197cac(0xc4)](_0x37240d[_0x197cac(0xbd)])){_0x4a1677&&typeof _0x4a1677===_0x197cac(0xbc)&&_0x4a1677[_0x197cac(0xc3)]&&(_0x2bb0c2[_0x3479b0]=_0x4a1677);}const _0x5d9d86=_0x5066df||_0x51a92f||resolveDefaultAppName(_0x37240d),_0x453e0c=Object[_0x197cac(0xd4)](_0x2bb0c2)[_0x197cac(0xc5)]>0x0,_0x116011=_0x446336||_0x5066df||_0xa426c4||_0x51a92f||_0x5d9d86||undefined,_0x3a4ff2=stringConfigValue(_0x22f03d['appcode']),_0x4a98e1=_0x3a4ff2?Object[_0x197cac(0xc4)](_0x2bb0c2)[_0x197cac(0xd1)](([,_0x5de7e8])=>_0x5de7e8?.[_0x197cac(0xc3)]===_0x3a4ff2):undefined,_0x2d022f=_0x4a98e1?.[0x0],_0x5ae249=_0x4a98e1?.[0x1],_0x44e1af=_0x3a4ff2?_0x2d022f:_0x116011;let _0x5730f6=_0x44e1af&&_0x2bb0c2[_0x44e1af]?_0x2bb0c2[_0x44e1af]:undefined;_0x3a4ff2&&_0x5ae249&&(_0x5730f6=_0x5ae249);const _0x136918=_0x3a4ff2?_0x5ae249??_0x5730f6:_0x5730f6,_0x2e55f4=!_0x446336&&!_0x5066df&&_0xa426c4&&_0x44e1af===_0xa426c4,_0x4f2298=_0x446336||(_0x2e55f4?_0xa426c4:undefined)||(_0x3a4ff2?_0x2d022f:undefined),_0x26cd9b=_0x136918?.[_0x197cac(0xc3)],_0x591841=_0x138fe0?resolveTopLevelAppCode(_0x58819d):undefined,_0x39dace=_0x2faad7?resolveTopLevelAppCode(_0x9f93c4):undefined,_0x40ddae=_0x446336||_0x5066df?_0x26cd9b:undefined,_0x78aaca=!_0x446336&&!_0x5066df?_0x26cd9b:undefined,_0x30a832=_0x3a4ff2||_0x40ddae||_0x591841||_0x78aaca||_0x39dace||undefined,_0x17a891=_0x138fe0?stringConfigValue(_0x58819d[_0x197cac(0xde)]):undefined,_0x2f04bf=_0x2faad7?stringConfigValue(_0x9f93c4[_0x197cac(0xde)]):undefined,_0x1ec201=_0x22f03d['env']||_0x136918?.['env']||_0x17a891||_0x8fde53('ENV')||_0x2f04bf||_0x37240d[_0x197cac(0xde)]||DEFAULT_CONFIG_VALUES['env'],_0x3b4e66=_0x136918?.[_0x197cac(0xd2)]||_0x37240d[_0x197cac(0xd2)]||DEFAULT_CONFIG_VALUES[_0x197cac(0xd2)],_0x43a641=_0x8fde53('COOKIE')||_0x136918?.[_0x197cac(0xe0)]||_0x37240d[_0x197cac(0xe0)]||undefined,_0x5e2b5b=_0x8fde53(_0x197cac(0xcb))||_0x136918?.[_0x197cac(0xdc)]||_0x37240d[_0x197cac(0xdc)]||undefined,_0x456eee=_0x22f03d['format']||_0x8fde53(_0x197cac(0xda))||_0x136918?.['format']||_0x37240d[_0x197cac(0xd8)],_0x956e2e=normalizeLegacyOutputFormat(_0x456eee),_0x295aba=_0x8fde53(_0x197cac(0xc6))||_0x136918?.['pageSize']||_0x37240d[_0x197cac(0xb9)],_0x3ddb2a=_0x295aba?Number(_0x295aba)||undefined:undefined,_0x41ffb6=_0x1d3caf?[_0x1d3caf['globalConfig'][_0x197cac(0xbb)],_0x1d3caf[_0x197cac(0xc7)][_0x197cac(0xbb)]]:[_0x37240d[_0x197cac(0xbb)]],_0x867d31=resolveRiskCeiling(..._0x41ffb6,_0x136918?.[_0x197cac(0xbb)]),_0x321475=resolveRiskCeiling(_0x867d31,_0x8fde53(_0x197cac(0xb8))),_0x1a6052=_0x8fde53(_0x197cac(0xc1)),_0x20ab63=_0x1a6052==='1'||_0x1a6052===_0x197cac(0xd5),_0xdafa3d=_0x136918?.[_0x197cac(0xd0)]||_0x37240d['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2c0b1e=isDaily(normalizeEnv(String(_0x1ec201)))?_0x197cac(0xbe):_0x197cac(0xdf);return{'appCode':typeof _0x30a832===_0x197cac(0xc8)&&_0x30a832[_0x197cac(0xe3)]()?_0x30a832[_0x197cac(0xe3)]():undefined,'env':_0x2c0b1e,'locale':_0x3b4e66,'cookie':_0x43a641,'accessKey':_0x5e2b5b,'format':_0x956e2e,'pageSize':_0x3ddb2a,'riskLevel':_0x321475,'verbose':_0x20ab63,'apiDir':_0xdafa3d,'apps':_0x2bb0c2,'defaultApp':_0x5d9d86,'currentApp':_0x453e0c?_0x44e1af:undefined,'explicitAppName':_0x4f2298};}
@@ -1 +1 @@
1
- (function(_0x88ea8,_0x407eba){const _0x548cd4=a218_0x540c,_0x596846=_0x88ea8();while(!![]){try{const _0xc19b8f=parseInt(_0x548cd4(0xa5))/0x1*(parseInt(_0x548cd4(0xa1))/0x2)+-parseInt(_0x548cd4(0xa0))/0x3+-parseInt(_0x548cd4(0xa2))/0x4*(-parseInt(_0x548cd4(0xa8))/0x5)+parseInt(_0x548cd4(0xa6))/0x6*(-parseInt(_0x548cd4(0xa7))/0x7)+parseInt(_0x548cd4(0x9e))/0x8+-parseInt(_0x548cd4(0xa9))/0x9*(parseInt(_0x548cd4(0xaa))/0xa)+parseInt(_0x548cd4(0xa3))/0xb*(parseInt(_0x548cd4(0x9f))/0xc);if(_0xc19b8f===_0x407eba)break;else _0x596846['push'](_0x596846['shift']());}catch(_0x143652){_0x596846['push'](_0x596846['shift']());}}}(a218_0x3e59,0x801d2));import{getIsSessionValid}from'../auth/is-session-valid.js';function a218_0x3e59(){const _0x1508a6=['cookie','657080jkmDqS','12XmKsKS','1139178fTdoMR','1055666FuoDtE','52rjQbky','13288154pyKrZo','authRequired','1wluwdB','976740ZToiCg','14jzyCEl','61170cxRwNh','108mvAanI','622470wvnlka'];a218_0x3e59=function(){return _0x1508a6;};return a218_0x3e59();}import{CliErrors}from'../errors.js';function a218_0x540c(_0x5f0ee5,_0x47d773){_0x5f0ee5=_0x5f0ee5-0x9d;const _0x3e5945=a218_0x3e59();let _0x540c47=_0x3e5945[_0x5f0ee5];return _0x540c47;}export async function buildAuth(_0x3431a6){const _0x453f6e=a218_0x540c,{getCookie:_0x3c0096}=await import('../auth/get-cookie.js'),_0x589e99=_0x3431a6[_0x453f6e(0x9d)]||_0x3c0096(),_0x10da4d=_0x589e99?await getIsSessionValid():![];return{'cookie':_0x589e99,'isLoggedIn':_0x10da4d,async 'getOrLogin'(){const _0x11a06b=_0x453f6e;if(_0x589e99&&_0x10da4d)return _0x589e99;throw CliErrors[_0x11a06b(0xa4)]();}};}
1
+ function a218_0x3417(_0x1f9b33,_0x47bdef){_0x1f9b33=_0x1f9b33-0x11e;const _0x54e06d=a218_0x54e0();let _0x3417bd=_0x54e06d[_0x1f9b33];return _0x3417bd;}(function(_0x49a892,_0xde122f){const _0x4a5b62=a218_0x3417,_0x3b1627=_0x49a892();while(!![]){try{const _0xa5c7a5=-parseInt(_0x4a5b62(0x122))/0x1*(-parseInt(_0x4a5b62(0x129))/0x2)+-parseInt(_0x4a5b62(0x12b))/0x3+parseInt(_0x4a5b62(0x121))/0x4*(parseInt(_0x4a5b62(0x128))/0x5)+parseInt(_0x4a5b62(0x120))/0x6*(-parseInt(_0x4a5b62(0x11f))/0x7)+-parseInt(_0x4a5b62(0x124))/0x8*(-parseInt(_0x4a5b62(0x126))/0x9)+-parseInt(_0x4a5b62(0x11e))/0xa*(-parseInt(_0x4a5b62(0x12c))/0xb)+parseInt(_0x4a5b62(0x127))/0xc;if(_0xa5c7a5===_0xde122f)break;else _0x3b1627['push'](_0x3b1627['shift']());}catch(_0x220202){_0x3b1627['push'](_0x3b1627['shift']());}}}(a218_0x54e0,0x7972f));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a218_0x54e0(){const _0x2a9154=['22850FGEFuu','60226jRBLUX','../auth/get-cookie.js','2829336MTBiwU','3079714Xrajka','10urZDvS','28QKtEaU','1434102NWyPbU','752xbavwA','9fRRvwk','cookie','41304uOHJNA','authRequired','54HrpLHk','11466072wPxSeh'];a218_0x54e0=function(){return _0x2a9154;};return a218_0x54e0();}export async function buildAuth(_0x36ff5a){const _0x46af83=a218_0x3417,{getCookie:_0x418935}=await import(_0x46af83(0x12a)),_0x1b4044=_0x36ff5a[_0x46af83(0x123)]||_0x418935(),_0x148ca0=_0x1b4044?await getIsSessionValid():![];return{'cookie':_0x1b4044,'isLoggedIn':_0x148ca0,async 'getOrLogin'(){const _0x4907f1=_0x46af83;if(_0x1b4044&&_0x148ca0)return _0x1b4044;throw CliErrors[_0x4907f1(0x125)]();}};}
@@ -1 +1 @@
1
- const a219_0x1be40b=a219_0x5086;(function(_0x172d3d,_0x3326c9){const _0x7bff3f=a219_0x5086,_0xf19278=_0x172d3d();while(!![]){try{const _0x5b0d27=-parseInt(_0x7bff3f(0x10b))/0x1*(-parseInt(_0x7bff3f(0xe3))/0x2)+parseInt(_0x7bff3f(0xfc))/0x3*(-parseInt(_0x7bff3f(0xe9))/0x4)+-parseInt(_0x7bff3f(0x106))/0x5*(parseInt(_0x7bff3f(0xff))/0x6)+parseInt(_0x7bff3f(0x105))/0x7*(parseInt(_0x7bff3f(0x104))/0x8)+parseInt(_0x7bff3f(0x102))/0x9+parseInt(_0x7bff3f(0xed))/0xa+parseInt(_0x7bff3f(0xef))/0xb*(-parseInt(_0x7bff3f(0x109))/0xc);if(_0x5b0d27===_0x3326c9)break;else _0xf19278['push'](_0xf19278['shift']());}catch(_0x29f5ff){_0xf19278['push'](_0xf19278['shift']());}}}(a219_0x1f73,0xe3593));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a219_0x1f73(){const _0x2dab32=['3433900kGPIsM','defaultApp','44bpPrvV','parse','.rabetbase.json','cwd','locale','.tmp','migrated','projectPath','Project','appDomain','data','\x0a\x20\x20','status','12xiMcND','error','message','10158vtaOjz','format','config','6125598medbjr','stringify','4272pztYUK','19054tlfNnP','2490NavKTl','length','trim','4638408CxMlWO','env','88123pFeRVj','riskLevel','pageSize','kbDomain','apps','appcode','object','apiDir','missing','accessKey','22Gbxlqs','keys','string','cookie','apiDomain','silent','126444fSaUNC','utf8','empty','inherit'];a219_0x1f73=function(){return _0x2dab32;};return a219_0x1f73();}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a219_0x1be40b(0xf1);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x47e28f){for(const _0x472051 of CONFIG_NAMES){const _0x1e1e23=resolve(_0x47e28f,_0x472051);if(existsSync(_0x1e1e23))return _0x1e1e23;}return undefined;}export function findProjectRootDirectory(_0x585bc1=process[a219_0x1be40b(0xf2)]()){let _0x51df28=resolve(_0x585bc1);const {root:_0x2bd5db}=parse(_0x51df28),_0x103c6d=homedir();while(!![]){if(resolveConfigPath(_0x51df28)){if(_0x51df28===_0x103c6d)break;return _0x51df28;}if(_0x51df28===_0x2bd5db||_0x51df28===_0x103c6d)break;const _0x75d8a1=dirname(_0x51df28);if(_0x75d8a1===_0x51df28)break;_0x51df28=_0x75d8a1;}return resolve(_0x585bc1);}export function getProjectConfigPath(){const _0x532035=a219_0x1be40b;return resolveConfigPath(process[_0x532035(0xf2)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x146fa2){const _0x277d46=a219_0x1be40b;if(!existsSync(_0x146fa2))return{'status':_0x277d46(0xe1)};try{const _0x3dbcf6=readFileSync(_0x146fa2,{'encoding':'utf8'});if(!_0x3dbcf6?.[_0x277d46(0x108)]())return{'status':'empty'};const _0x29ebdb=JSON[_0x277d46(0xf0)](_0x3dbcf6);return{'status':'ok','data':_0x29ebdb};}catch(_0x545608){return{'status':'error','message':_0x545608 instanceof Error?_0x545608[_0x277d46(0xfe)]:String(_0x545608)};}}function parseCliConfigJsonFile(_0x46da55,_0x37943d,_0x32c368){const _0xa47138=a219_0x1be40b,_0x4f2b6d=inspectCliConfigJsonFile(_0x46da55);if(_0x4f2b6d[_0xa47138(0xfb)]===_0xa47138(0xe1)||_0x4f2b6d[_0xa47138(0xfb)]===_0xa47138(0xeb))return{};if(_0x4f2b6d[_0xa47138(0xfb)]==='ok')return _0x4f2b6d[_0xa47138(0xf9)];return _0x37943d==='warn'&&_0x32c368&&console[_0xa47138(0xfd)](CLI_BIN_NAME+':\x20'+_0x32c368+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x46da55+_0xa47138(0xfa)+_0x4f2b6d[_0xa47138(0xfe)]),{};}function normalizeLegacyConfigShape(_0x2638d0){const _0x2c11a9=a219_0x1be40b;if(!_0x2638d0||typeof _0x2638d0!==_0x2c11a9(0xdf))return{'config':{},'migrated':![]};const _0x413bdc={..._0x2638d0},_0x8d7cd4=_0x413bdc['apps']&&typeof _0x413bdc[_0x2c11a9(0xdd)]===_0x2c11a9(0xdf)?{..._0x413bdc[_0x2c11a9(0xdd)]}:{},_0x4a0ef0=Object[_0x2c11a9(0xe4)](_0x8d7cd4)['length'],_0x549fed=_0x413bdc[_0x2c11a9(0xde)]||_0x413bdc['app'];let _0x33eee1=![];if(_0x549fed&&_0x4a0ef0===0x0){const _0x45e591=typeof _0x413bdc[_0x2c11a9(0xee)]===_0x2c11a9(0xe5)&&_0x413bdc['defaultApp']['trim']()?_0x413bdc[_0x2c11a9(0xee)]:String(_0x549fed)[_0x2c11a9(0x108)]();_0x8d7cd4[_0x45e591]={'appcode':String(_0x549fed)[_0x2c11a9(0x108)](),..._0x413bdc['env']!=null?{'env':_0x413bdc[_0x2c11a9(0x10a)]}:{},..._0x413bdc['apiDir']!=null?{'apiDir':_0x413bdc[_0x2c11a9(0xe0)]}:{},..._0x413bdc[_0x2c11a9(0xe6)]!=null?{'cookie':_0x413bdc[_0x2c11a9(0xe6)]}:{},..._0x413bdc[_0x2c11a9(0xe2)]!=null?{'accessKey':_0x413bdc[_0x2c11a9(0xe2)]}:{},..._0x413bdc[_0x2c11a9(0x100)]!=null?{'format':_0x413bdc['format']}:{},..._0x413bdc[_0x2c11a9(0xdb)]!=null?{'pageSize':_0x413bdc[_0x2c11a9(0xdb)]}:{},..._0x413bdc['riskLevel']!=null?{'riskLevel':_0x413bdc[_0x2c11a9(0x10c)]}:{},..._0x413bdc[_0x2c11a9(0xf3)]!=null?{'locale':_0x413bdc[_0x2c11a9(0xf3)]}:{}},_0x413bdc[_0x2c11a9(0xdd)]=_0x8d7cd4,delete _0x413bdc[_0x2c11a9(0xee)],_0x33eee1=!![];}return(_0x2c11a9(0xde)in _0x413bdc||'app'in _0x413bdc)&&(delete _0x413bdc[_0x2c11a9(0xde)],delete _0x413bdc['app'],_0x33eee1=!![]),{'config':_0x413bdc,'migrated':_0x33eee1};}function writeNormalizedConfigIfNeeded(_0x588f1f,_0x2750a0){const _0x4546ab=JSON['stringify'](_0x2750a0,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x588f1f)===_0x4546ab)return;writeConfigFile(_0x588f1f,_0x2750a0),normalizedWriteCache['set'](_0x588f1f,_0x4546ab);}function parseAndNormalizeConfig(_0x34733f,_0x3437bf,_0x49b715){const _0xc4ee=a219_0x1be40b,_0x37c00a=parseCliConfigJsonFile(_0x34733f,_0x3437bf,_0x49b715),_0x338248=normalizeLegacyConfigShape(_0x37c00a);if(_0x338248[_0xc4ee(0xf5)])try{writeNormalizedConfigIfNeeded(_0x34733f,_0x338248[_0xc4ee(0x101)]);}catch{}return _0x338248[_0xc4ee(0x101)];}export function loadRawConfigLayers(_0x169d53){const _0x2ae62a=a219_0x1be40b;let _0x44904a={},_0x550837={};const _0x387ee1=resolveConfigPath(homedir());_0x387ee1&&(_0x44904a=parseAndNormalizeConfig(_0x387ee1,'warn','Global'));const _0x163a84=_0x169d53??findProjectRootDirectory(),_0x2b561c=resolveConfigPath(_0x163a84);return _0x2b561c&&(_0x550837=parseAndNormalizeConfig(_0x2b561c,'warn',_0x2ae62a(0xf7))),{'globalPath':_0x387ee1,'projectPath':_0x2b561c,'globalConfig':_0x44904a,'projectConfig':_0x550837};}const INHERIT_WHITELIST=[a219_0x1be40b(0xe6),a219_0x1be40b(0xe2),a219_0x1be40b(0xf3),a219_0x1be40b(0x100),a219_0x1be40b(0x10c),a219_0x1be40b(0xdb),'region','userDomain',a219_0x1be40b(0xe7),'runtimeDomain','skillDomain',a219_0x1be40b(0xdc),a219_0x1be40b(0xf8)];export function mergeRawConfigLayers(_0x277939){const _0x2c3921=a219_0x1be40b,{globalConfig:_0x21cfdb,projectConfig:_0x5e5c03}=_0x277939,_0x26b2a1=!!_0x277939[_0x2c3921(0xf6)]||Object[_0x2c3921(0xe4)](_0x5e5c03)[_0x2c3921(0x107)]>0x0;if(!_0x26b2a1)return mergeGlobalOnly(_0x21cfdb);return mergeProjectFirst(_0x21cfdb,_0x5e5c03);}function mergeGlobalOnly(_0x469c06){const _0x19e0c5=a219_0x1be40b,_0x1fecdb={..._0x469c06};delete _0x1fecdb[_0x19e0c5(0xec)];const _0x2aa59e=_0x469c06[_0x19e0c5(0xdd)]&&typeof _0x469c06[_0x19e0c5(0xdd)]===_0x19e0c5(0xdf)?_0x469c06[_0x19e0c5(0xdd)]:{};if(Object[_0x19e0c5(0xe4)](_0x2aa59e)['length']>0x0)_0x1fecdb[_0x19e0c5(0xdd)]=_0x2aa59e;if(_0x469c06[_0x19e0c5(0xee)])_0x1fecdb[_0x19e0c5(0xee)]=_0x469c06[_0x19e0c5(0xee)];return _0x1fecdb;}function mergeProjectFirst(_0x336033,_0x24940a){const _0x33d331=a219_0x1be40b,_0x45de55={..._0x24940a};delete _0x45de55[_0x33d331(0xec)];for(const _0x4100e1 of INHERIT_WHITELIST){!(_0x4100e1 in _0x45de55)&&_0x4100e1 in _0x336033&&(_0x45de55[_0x4100e1]=_0x336033[_0x4100e1]);}const _0x4d9ae8=_0x24940a[_0x33d331(0xdd)]&&typeof _0x24940a[_0x33d331(0xdd)]===_0x33d331(0xdf)?_0x24940a[_0x33d331(0xdd)]:{};return Object['keys'](_0x4d9ae8)[_0x33d331(0x107)]>0x0?_0x45de55['apps']=_0x4d9ae8:delete _0x45de55[_0x33d331(0xdd)],'defaultApp'in _0x24940a?_0x45de55[_0x33d331(0xee)]=_0x24940a[_0x33d331(0xee)]:delete _0x45de55['defaultApp'],_0x45de55;}export function readRawConfigWithLayers(_0x3235c4){const _0x5aec60=loadRawConfigLayers(_0x3235c4);return{'config':mergeRawConfigLayers(_0x5aec60),'layers':_0x5aec60};}export function readRawConfig(_0xae26f9){return mergeRawConfigLayers(loadRawConfigLayers(_0xae26f9));}export function readConfigFile(_0x147e5e){const _0x128f3a=a219_0x1be40b;return parseAndNormalizeConfig(_0x147e5e,_0x128f3a(0xe8));}export function writeConfigFile(_0x4336e4,_0x26fee3){const _0x2e4928=a219_0x1be40b,_0x304aad=dirname(_0x4336e4);!existsSync(_0x304aad)&&mkdirSync(_0x304aad,{'recursive':!![]});const _0x500d3a=_0x4336e4+_0x2e4928(0xf4);try{writeFileSync(_0x500d3a,JSON[_0x2e4928(0x103)](_0x26fee3,null,0x2)+'\x0a',{'encoding':_0x2e4928(0xea),'mode':0x180}),renameSync(_0x500d3a,_0x4336e4);}catch(_0xe2f6b4){try{unlinkSync(_0x500d3a);}catch{}throw _0xe2f6b4;}}function a219_0x5086(_0x704926,_0x8b57ce){_0x704926=_0x704926-0xdb;const _0x1f73fd=a219_0x1f73();let _0x508693=_0x1f73fd[_0x704926];return _0x508693;}export function resolveWriteConfigPath(_0x10cafe){const _0x7cff45=a219_0x1be40b,_0x23f9ab=_0x10cafe==='project'?process[_0x7cff45(0xf2)]():homedir(),_0x239bec=resolveConfigPath(_0x23f9ab);return _0x239bec??resolve(_0x23f9ab,NEW_CONFIG_NAME);}
1
+ const a219_0x2386f7=a219_0x4cfb;(function(_0x3dfdbd,_0x4f4c8e){const _0x5680c6=a219_0x4cfb,_0x25b716=_0x3dfdbd();while(!![]){try{const _0x555acb=-parseInt(_0x5680c6(0x142))/0x1+parseInt(_0x5680c6(0x11e))/0x2*(-parseInt(_0x5680c6(0x11f))/0x3)+-parseInt(_0x5680c6(0x148))/0x4*(-parseInt(_0x5680c6(0x12d))/0x5)+parseInt(_0x5680c6(0x13b))/0x6*(-parseInt(_0x5680c6(0x149))/0x7)+-parseInt(_0x5680c6(0x147))/0x8+parseInt(_0x5680c6(0x12a))/0x9+parseInt(_0x5680c6(0x137))/0xa*(parseInt(_0x5680c6(0x146))/0xb);if(_0x555acb===_0x4f4c8e)break;else _0x25b716['push'](_0x25b716['shift']());}catch(_0x1ac4d1){_0x25b716['push'](_0x25b716['shift']());}}}(a219_0x2c80,0x1b9d7));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a219_0x2386f7(0x135);export const CONFIG_NAMES=[NEW_CONFIG_NAME];function a219_0x2c80(){const _0x10f265=['264738TMxjnb','app','locale','riskLevel','apps','kbDomain','\x0a\x20\x20','67312MUJojo','silent','appcode','defaultApp','7062AafUYF','1503856LFECig','13204PRnkAH','35FahHGd','pageSize','missing','Project','keys','migrated','cookie','cwd','skillDomain','projectPath','Global','126658wmBtfG','9kbztwY','empty','warn','length','utf8','env','get','accessKey','stringify','config','appDomain','261540NEApgV','status','message','5kYTpJV','format','error','.tmp','data','parse','inherit','trim','.rabetbase.json','set','11630txmOIU','apiDomain','object','string'];a219_0x2c80=function(){return _0x10f265;};return a219_0x2c80();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x21ee6d){for(const _0x3c522a of CONFIG_NAMES){const _0x8746ac=resolve(_0x21ee6d,_0x3c522a);if(existsSync(_0x8746ac))return _0x8746ac;}return undefined;}export function findProjectRootDirectory(_0x33fd98=process[a219_0x2386f7(0x11a)]()){let _0x2ff05b=resolve(_0x33fd98);const {root:_0x4b850c}=parse(_0x2ff05b),_0x40fe12=homedir();while(!![]){if(resolveConfigPath(_0x2ff05b)){if(_0x2ff05b===_0x40fe12)break;return _0x2ff05b;}if(_0x2ff05b===_0x4b850c||_0x2ff05b===_0x40fe12)break;const _0x82bd18=dirname(_0x2ff05b);if(_0x82bd18===_0x2ff05b)break;_0x2ff05b=_0x82bd18;}return resolve(_0x33fd98);}export function getProjectConfigPath(){const _0xc9f308=a219_0x2386f7;return resolveConfigPath(process[_0xc9f308(0x11a)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x22ff83){const _0x3796e0=a219_0x2386f7;if(!existsSync(_0x22ff83))return{'status':'missing'};try{const _0xfc6ab5=readFileSync(_0x22ff83,{'encoding':'utf8'});if(!_0xfc6ab5?.['trim']())return{'status':_0x3796e0(0x120)};const _0x243cf5=JSON[_0x3796e0(0x132)](_0xfc6ab5);return{'status':'ok','data':_0x243cf5};}catch(_0x5ca72e){return{'status':'error','message':_0x5ca72e instanceof Error?_0x5ca72e[_0x3796e0(0x12c)]:String(_0x5ca72e)};}}function parseCliConfigJsonFile(_0x22ba52,_0x4c146d,_0x1607eb){const _0x24372a=a219_0x2386f7,_0x11e6d1=inspectCliConfigJsonFile(_0x22ba52);if(_0x11e6d1[_0x24372a(0x12b)]===_0x24372a(0x14b)||_0x11e6d1['status']===_0x24372a(0x120))return{};if(_0x11e6d1[_0x24372a(0x12b)]==='ok')return _0x11e6d1[_0x24372a(0x131)];return _0x4c146d===_0x24372a(0x121)&&_0x1607eb&&console[_0x24372a(0x12f)](CLI_BIN_NAME+':\x20'+_0x1607eb+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x22ba52+_0x24372a(0x141)+_0x11e6d1[_0x24372a(0x12c)]),{};}function a219_0x4cfb(_0x3b3b33,_0x48fafc){_0x3b3b33=_0x3b3b33-0x117;const _0x2c8052=a219_0x2c80();let _0x4cfb05=_0x2c8052[_0x3b3b33];return _0x4cfb05;}function normalizeLegacyConfigShape(_0x1d6a09){const _0x46bc78=a219_0x2386f7;if(!_0x1d6a09||typeof _0x1d6a09!==_0x46bc78(0x139))return{'config':{},'migrated':![]};const _0x2e6ff1={..._0x1d6a09},_0x500c6d=_0x2e6ff1[_0x46bc78(0x13f)]&&typeof _0x2e6ff1[_0x46bc78(0x13f)]==='object'?{..._0x2e6ff1['apps']}:{},_0x11f453=Object[_0x46bc78(0x117)](_0x500c6d)[_0x46bc78(0x122)],_0x4f48fb=_0x2e6ff1['appcode']||_0x2e6ff1[_0x46bc78(0x13c)];let _0x12d7a0=![];if(_0x4f48fb&&_0x11f453===0x0){const _0x3b1e7e=typeof _0x2e6ff1[_0x46bc78(0x145)]===_0x46bc78(0x13a)&&_0x2e6ff1[_0x46bc78(0x145)]['trim']()?_0x2e6ff1['defaultApp']:String(_0x4f48fb)['trim']();_0x500c6d[_0x3b1e7e]={'appcode':String(_0x4f48fb)[_0x46bc78(0x134)](),..._0x2e6ff1['env']!=null?{'env':_0x2e6ff1[_0x46bc78(0x124)]}:{},..._0x2e6ff1['apiDir']!=null?{'apiDir':_0x2e6ff1['apiDir']}:{},..._0x2e6ff1['cookie']!=null?{'cookie':_0x2e6ff1[_0x46bc78(0x119)]}:{},..._0x2e6ff1[_0x46bc78(0x126)]!=null?{'accessKey':_0x2e6ff1[_0x46bc78(0x126)]}:{},..._0x2e6ff1[_0x46bc78(0x12e)]!=null?{'format':_0x2e6ff1['format']}:{},..._0x2e6ff1[_0x46bc78(0x14a)]!=null?{'pageSize':_0x2e6ff1[_0x46bc78(0x14a)]}:{},..._0x2e6ff1[_0x46bc78(0x13e)]!=null?{'riskLevel':_0x2e6ff1['riskLevel']}:{},..._0x2e6ff1['locale']!=null?{'locale':_0x2e6ff1['locale']}:{}},_0x2e6ff1[_0x46bc78(0x13f)]=_0x500c6d,delete _0x2e6ff1['defaultApp'],_0x12d7a0=!![];}return(_0x46bc78(0x144)in _0x2e6ff1||'app'in _0x2e6ff1)&&(delete _0x2e6ff1[_0x46bc78(0x144)],delete _0x2e6ff1[_0x46bc78(0x13c)],_0x12d7a0=!![]),{'config':_0x2e6ff1,'migrated':_0x12d7a0};}function writeNormalizedConfigIfNeeded(_0x2b9f0d,_0x212a98){const _0x5b8257=a219_0x2386f7,_0xc3b825=JSON[_0x5b8257(0x127)](_0x212a98,null,0x2)+'\x0a';if(normalizedWriteCache[_0x5b8257(0x125)](_0x2b9f0d)===_0xc3b825)return;writeConfigFile(_0x2b9f0d,_0x212a98),normalizedWriteCache[_0x5b8257(0x136)](_0x2b9f0d,_0xc3b825);}function parseAndNormalizeConfig(_0x312e63,_0x19a162,_0x3439f1){const _0x22a00e=a219_0x2386f7,_0x4484ee=parseCliConfigJsonFile(_0x312e63,_0x19a162,_0x3439f1),_0x45d7df=normalizeLegacyConfigShape(_0x4484ee);if(_0x45d7df[_0x22a00e(0x118)])try{writeNormalizedConfigIfNeeded(_0x312e63,_0x45d7df[_0x22a00e(0x128)]);}catch{}return _0x45d7df['config'];}export function loadRawConfigLayers(_0x36a5b8){const _0x5d67aa=a219_0x2386f7;let _0x50c396={},_0x216123={};const _0x53ff69=resolveConfigPath(homedir());_0x53ff69&&(_0x50c396=parseAndNormalizeConfig(_0x53ff69,_0x5d67aa(0x121),_0x5d67aa(0x11d)));const _0xd08feb=_0x36a5b8??findProjectRootDirectory(),_0x149f33=resolveConfigPath(_0xd08feb);return _0x149f33&&(_0x216123=parseAndNormalizeConfig(_0x149f33,_0x5d67aa(0x121),_0x5d67aa(0x14c))),{'globalPath':_0x53ff69,'projectPath':_0x149f33,'globalConfig':_0x50c396,'projectConfig':_0x216123};}const INHERIT_WHITELIST=[a219_0x2386f7(0x119),a219_0x2386f7(0x126),a219_0x2386f7(0x13d),a219_0x2386f7(0x12e),a219_0x2386f7(0x13e),a219_0x2386f7(0x14a),'region','userDomain',a219_0x2386f7(0x138),'runtimeDomain',a219_0x2386f7(0x11b),a219_0x2386f7(0x140),a219_0x2386f7(0x129)];export function mergeRawConfigLayers(_0x5b6284){const _0x157141=a219_0x2386f7,{globalConfig:_0x5d7b01,projectConfig:_0x1606b0}=_0x5b6284,_0x5a2067=!!_0x5b6284[_0x157141(0x11c)]||Object[_0x157141(0x117)](_0x1606b0)['length']>0x0;if(!_0x5a2067)return mergeGlobalOnly(_0x5d7b01);return mergeProjectFirst(_0x5d7b01,_0x1606b0);}function mergeGlobalOnly(_0x44114a){const _0x18a613=a219_0x2386f7,_0xad7141={..._0x44114a};delete _0xad7141[_0x18a613(0x133)];const _0x133313=_0x44114a[_0x18a613(0x13f)]&&typeof _0x44114a[_0x18a613(0x13f)]===_0x18a613(0x139)?_0x44114a[_0x18a613(0x13f)]:{};if(Object['keys'](_0x133313)[_0x18a613(0x122)]>0x0)_0xad7141[_0x18a613(0x13f)]=_0x133313;if(_0x44114a['defaultApp'])_0xad7141['defaultApp']=_0x44114a['defaultApp'];return _0xad7141;}function mergeProjectFirst(_0x3fcb25,_0x3da275){const _0x5655e4=a219_0x2386f7,_0x2678d1={..._0x3da275};delete _0x2678d1[_0x5655e4(0x133)];for(const _0x156cd0 of INHERIT_WHITELIST){!(_0x156cd0 in _0x2678d1)&&_0x156cd0 in _0x3fcb25&&(_0x2678d1[_0x156cd0]=_0x3fcb25[_0x156cd0]);}const _0x2345d0=_0x3da275['apps']&&typeof _0x3da275[_0x5655e4(0x13f)]===_0x5655e4(0x139)?_0x3da275[_0x5655e4(0x13f)]:{};return Object[_0x5655e4(0x117)](_0x2345d0)['length']>0x0?_0x2678d1[_0x5655e4(0x13f)]=_0x2345d0:delete _0x2678d1[_0x5655e4(0x13f)],'defaultApp'in _0x3da275?_0x2678d1[_0x5655e4(0x145)]=_0x3da275[_0x5655e4(0x145)]:delete _0x2678d1[_0x5655e4(0x145)],_0x2678d1;}export function readRawConfigWithLayers(_0x1f2c44){const _0x40385a=loadRawConfigLayers(_0x1f2c44);return{'config':mergeRawConfigLayers(_0x40385a),'layers':_0x40385a};}export function readRawConfig(_0x4f9b14){return mergeRawConfigLayers(loadRawConfigLayers(_0x4f9b14));}export function readConfigFile(_0x1103fd){const _0x4ae683=a219_0x2386f7;return parseAndNormalizeConfig(_0x1103fd,_0x4ae683(0x143));}export function writeConfigFile(_0x13ec75,_0x2735ad){const _0x537f31=a219_0x2386f7,_0x4320d4=dirname(_0x13ec75);!existsSync(_0x4320d4)&&mkdirSync(_0x4320d4,{'recursive':!![]});const _0x1a72e2=_0x13ec75+_0x537f31(0x130);try{writeFileSync(_0x1a72e2,JSON[_0x537f31(0x127)](_0x2735ad,null,0x2)+'\x0a',{'encoding':_0x537f31(0x123),'mode':0x180}),renameSync(_0x1a72e2,_0x13ec75);}catch(_0x3ccbaf){try{unlinkSync(_0x1a72e2);}catch{}throw _0x3ccbaf;}}export function resolveWriteConfigPath(_0x58217f){const _0x3f88a2=a219_0x2386f7,_0x20f27d=_0x58217f==='project'?process[_0x3f88a2(0x11a)]():homedir(),_0x15a3ad=resolveConfigPath(_0x20f27d);return _0x15a3ad??resolve(_0x20f27d,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a220_0x4368da=a220_0x1387;(function(_0x48baca,_0x12315d){const _0x12fe40=a220_0x1387,_0x1939f3=_0x48baca();while(!![]){try{const _0x179f9e=parseInt(_0x12fe40(0xb2))/0x1+parseInt(_0x12fe40(0x8a))/0x2*(-parseInt(_0x12fe40(0xa7))/0x3)+parseInt(_0x12fe40(0x9c))/0x4+-parseInt(_0x12fe40(0x8c))/0x5+parseInt(_0x12fe40(0xb7))/0x6+-parseInt(_0x12fe40(0xb9))/0x7+parseInt(_0x12fe40(0x9a))/0x8*(parseInt(_0x12fe40(0xa5))/0x9);if(_0x179f9e===_0x12315d)break;else _0x1939f3['push'](_0x1939f3['shift']());}catch(_0x7c6ed3){_0x1939f3['push'](_0x1939f3['shift']());}}}(a220_0x4284,0xc0e11));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(_0x550714){return process.env[`RABETBASE_${_0x550714}`]||process.env[`LOVRABET_${_0x550714}`]||undefined;}function optionalString(_0x42ad9e){const _0x4ab2bf=a220_0x1387;return typeof _0x42ad9e===_0x4ab2bf(0x8e)&&_0x42ad9e[_0x4ab2bf(0xa8)]()?_0x42ad9e[_0x4ab2bf(0xa8)]():undefined;}export async function createContext(_0x33992d){const _0x42c2f3=a220_0x1387,{config:_0x28a5d8,layers:_0x525662}=readRawConfigWithLayers(),_0x30738a=buildConfig(_0x28a5d8,_0x33992d,_0x525662);await initGlobalEnvironment(_0x30738a);const {getUserDomain:_0x4d1acb,getApiDomain:_0x22a636}=await import(_0x42c2f3(0xa1)),_0x3b48ba={'apiDomain':_0x22a636(),'userDomain':_0x4d1acb()},_0x216797=await buildAuth(_0x30738a);logger['setLogPath'](process[_0x42c2f3(0x90)]());const _0x38312b=(CLI_BIN_NAME+'\x20'+process[_0x42c2f3(0xaf)]['slice'](0x2)[_0x42c2f3(0xa3)]('\x20'))[_0x42c2f3(0xa8)]();logger[_0x42c2f3(0xaa)](_0x38312b);const {isNonInteractive:_0x3d388a}=await import(_0x42c2f3(0x8b)),_0xc284d1=_0x3d388a(_0x33992d);return{'config':_0x30738a,'auth':_0x216797,'logger':logger,'env':_0x3b48ba,'nonInteractive':_0xc284d1};}export function buildConfigFromFlags(_0x599888){const {config:_0x3bf888,layers:_0x411a80}=readRawConfigWithLayers();return buildConfig(_0x3bf888,_0x599888,_0x411a80);}function a220_0x4284(){const _0x48c60a=['https://g.lovrabet.com/dist/lovrabet-skill','apps','./constant/domain.js','appcode','join','project','2134872bVrqJC','./constant/env.js','1506BYnRiW','trim','map','setRawCommand','api.ts','app','apiDomain','skillDomain','argv','values','userDomain','862641aUnfNP','runtimeDomain','appDomain','projectConfig','region','4130394pREaTb','template_base_url','3517619giNNUN','entries','3074RUcorU','./utils/is-non-interactive.js','6714685shOTNS','keys','string','agentDomain','cwd','kbDomain','env','globalConfig','merged','length','defaultApp','raw','platformDomain','apiDir','56zdvYpr','object','782260dQmUza','find','cookie'];a220_0x4284=function(){return _0x48c60a;};return a220_0x4284();}export async function initGlobalEnvironment(_0x4d7334){const _0x1d5dd7=a220_0x1387,{initEnv:_0x226ea0}=await import(_0x1d5dd7(0xa6));_0x226ea0(_0x4d7334['env']);const {initDomains:_0x3e8954}=await import(_0x1d5dd7(0xa1));_0x3e8954({'region':normalizeLovrabetRegion(_0x4d7334['raw']?.[_0x1d5dd7(0xb6)]),'apiDomain':optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.[_0x1d5dd7(0xad)]),'userDomain':optionalString(_0x4d7334['raw']?.[_0x1d5dd7(0xb1)]),'runtimeDomain':optionalString(_0x4d7334['raw']?.[_0x1d5dd7(0xb3)]),'skillDomain':optionalString(_0x4d7334['raw']?.[_0x1d5dd7(0xae)])||optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.['skillHubDomain'])||optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.[_0x1d5dd7(0x8f)])||optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.[_0x1d5dd7(0x98)]),'kbDomain':optionalString(_0x4d7334['raw']?.[_0x1d5dd7(0x91)])||optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.[_0x1d5dd7(0x8f)])||optionalString(_0x4d7334[_0x1d5dd7(0x97)]?.[_0x1d5dd7(0x98)]),'appDomain':optionalString(_0x4d7334['raw']?.[_0x1d5dd7(0xb4)])});}export function getConfigAppCode(_0x34df31){const _0x2abfa3=a220_0x1387,_0x517ad8=readRawConfig(_0x34df31);if(_0x517ad8[_0x2abfa3(0xa0)]&&typeof _0x517ad8[_0x2abfa3(0xa0)]===_0x2abfa3(0x9b)){const _0x51bed7=_0x517ad8[_0x2abfa3(0x96)];if(_0x51bed7)return _0x517ad8[_0x2abfa3(0xa0)][_0x51bed7]?.[_0x2abfa3(0xa2)]?String(_0x517ad8['apps'][_0x51bed7][_0x2abfa3(0xa2)])[_0x2abfa3(0xa8)]():undefined;const _0x5c9204=Object[_0x2abfa3(0xb0)](_0x517ad8[_0x2abfa3(0xa0)]);if(_0x5c9204[_0x2abfa3(0x95)]===0x1&&_0x5c9204[0x0]?.['appcode'])return String(_0x5c9204[0x0]['appcode'])['trim']();}const _0x59b7d3=_0x517ad8[_0x2abfa3(0xa2)]||_0x517ad8[_0x2abfa3(0xac)];if(typeof _0x59b7d3!==_0x2abfa3(0x8e)||_0x59b7d3['trim']()==='')return undefined;return _0x59b7d3[_0x2abfa3(0xa8)]();}export function getMultiAppConfigs(_0x49a9c2=a220_0x4368da(0xa4),_0x426ef0){const _0x5c5a87=a220_0x4368da,_0x578d49=loadRawConfigLayers(_0x426ef0);let _0x25fe83,_0x514839;if(_0x49a9c2===_0x5c5a87(0x94)){const _0x475c85=_0x578d49['globalConfig'][_0x5c5a87(0xa0)]&&typeof _0x578d49[_0x5c5a87(0x93)][_0x5c5a87(0xa0)]===_0x5c5a87(0x9b)?_0x578d49['globalConfig']['apps']:{},_0x2d1903=_0x578d49[_0x5c5a87(0xb5)]['apps']&&typeof _0x578d49[_0x5c5a87(0xb5)]['apps']===_0x5c5a87(0x9b)?_0x578d49[_0x5c5a87(0xb5)][_0x5c5a87(0xa0)]:{};_0x25fe83={..._0x475c85,..._0x2d1903};const _0x471109=readRawConfig(_0x426ef0);_0x514839=_0x471109[_0x5c5a87(0x96)];}else _0x25fe83=_0x578d49[_0x5c5a87(0xb5)][_0x5c5a87(0xa0)],_0x514839=_0x578d49[_0x5c5a87(0xb5)][_0x5c5a87(0x96)];!_0x514839&&_0x25fe83&&typeof _0x25fe83===_0x5c5a87(0x9b)&&Object[_0x5c5a87(0x8d)](_0x25fe83)['length']===0x1&&(_0x514839=Object[_0x5c5a87(0x8d)](_0x25fe83)[0x0]);if(!_0x25fe83||typeof _0x25fe83!==_0x5c5a87(0x9b)||Object['keys'](_0x25fe83)['length']===0x0)return null;return Object[_0x5c5a87(0xba)](_0x25fe83)[_0x5c5a87(0xa9)](([_0xf98a10,_0x57273e])=>({'name':_0xf98a10,'appcode':_0x57273e?.['appcode']||'','isDefault':_0xf98a10===_0x514839,'env':_0x57273e?.[_0x5c5a87(0x92)],'apiDir':_0x57273e?.[_0x5c5a87(0x99)],'cookie':_0x57273e?.[_0x5c5a87(0x9e)]||undefined}))['filter'](_0x351f08=>_0x351f08[_0x5c5a87(0xa2)]);}export function getTemplateBaseUrl(_0x4c6eff){const _0x4c1b8f=a220_0x4368da,_0x23790=readRawConfig(_0x4c6eff);if(_0x23790[_0x4c1b8f(0xb8)]&&typeof _0x23790[_0x4c1b8f(0xb8)]===_0x4c1b8f(0x8e))return _0x23790[_0x4c1b8f(0xb8)]['replace'](/\/$/,'');return _0x4c1b8f(0x9f);}function buildConfig(_0x198bd5,_0xca4229,_0x2028f9){return{...resolveAppConfig({'raw':_0x198bd5,'flags':_0xca4229,'layers':_0x2028f9,'readEnv':env}),'raw':_0x198bd5};}function a220_0x1387(_0x9b9e16,_0x13ebf0){_0x9b9e16=_0x9b9e16-0x8a;const _0x428416=a220_0x4284();let _0x1387ea=_0x428416[_0x9b9e16];return _0x1387ea;}export function resolveApiFilePath(_0x19e56c,_0x4afe66){const _0x20a23b=a220_0x4368da,_0x1b58cb=resolve(process[_0x20a23b(0x90)](),_0x19e56c),_0x2e63e9=resolve(_0x1b58cb,_0x20a23b(0xab));if(!_0x4afe66)return _0x2e63e9;const _0x2f84d3=readRawConfig(),_0x44b192=_0x2f84d3[_0x20a23b(0xa0)]&&typeof _0x2f84d3[_0x20a23b(0xa0)]===_0x20a23b(0x9b)?_0x2f84d3['apps']:{},_0x47b7c5=Object[_0x20a23b(0xba)](_0x44b192)[_0x20a23b(0x9d)](([,_0x3b6b79])=>_0x3b6b79?.['appcode']===_0x4afe66);if(!_0x47b7c5)return _0x2e63e9;const [_0x41cc14,_0x50aa5d]=_0x47b7c5,_0x2c7745=typeof _0x2f84d3['defaultApp']===_0x20a23b(0x8e)?_0x2f84d3['defaultApp']:undefined;if(_0x50aa5d?.[_0x20a23b(0x99)])return _0x2e63e9;if(_0x2c7745&&_0x41cc14!==_0x2c7745)return resolve(_0x1b58cb,_0x41cc14+'-api.ts');return _0x2e63e9;}
1
+ const a220_0xd7d89=a220_0xb93a;(function(_0xe6b426,_0x5c1d0b){const _0x48a56d=a220_0xb93a,_0x2bf791=_0xe6b426();while(!![]){try{const _0x2048a0=parseInt(_0x48a56d(0x16d))/0x1*(parseInt(_0x48a56d(0x164))/0x2)+parseInt(_0x48a56d(0x169))/0x3*(-parseInt(_0x48a56d(0x16a))/0x4)+-parseInt(_0x48a56d(0x16b))/0x5+parseInt(_0x48a56d(0x156))/0x6*(parseInt(_0x48a56d(0x15d))/0x7)+parseInt(_0x48a56d(0x151))/0x8*(parseInt(_0x48a56d(0x158))/0x9)+parseInt(_0x48a56d(0x163))/0xa*(parseInt(_0x48a56d(0x152))/0xb)+parseInt(_0x48a56d(0x14c))/0xc*(parseInt(_0x48a56d(0x14e))/0xd);if(_0x2048a0===_0x5c1d0b)break;else _0x2bf791['push'](_0x2bf791['shift']());}catch(_0x1f3a8f){_0x2bf791['push'](_0x2bf791['shift']());}}}(a220_0x4480,0xec558));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';function a220_0x4480(){const _0x46b57a=['object','10dCufdZ','38eIyOoz','length','setRawCommand','platformDomain','https://g.lovrabet.com/dist/lovrabet-skill','3VRPNkC','6877932wCYhGA','8577705kMhiHD','kbDomain','2521OjYzRR','region','merged','-api.ts','apiDir','env','skillHubDomain','./constant/domain.js','cookie','trim','api.ts','projectConfig','defaultApp','slice','apps','globalConfig','48JYBHof','./constant/env.js','5326061ZxIKnm','entries','template_base_url','1192qjuXFV','2692217SWOltv','project','agentDomain','runtimeDomain','6gjiBKs','keys','90855iaOBwN','cwd','raw','replace','string','6772213piaKKo','map','appcode','setLogPath','apiDomain'];a220_0x4480=function(){return _0x46b57a;};return a220_0x4480();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x294feb){return process.env[`RABETBASE_${_0x294feb}`]||process.env[`LOVRABET_${_0x294feb}`]||undefined;}function optionalString(_0x4d2549){const _0x39fc30=a220_0xb93a;return typeof _0x4d2549===_0x39fc30(0x15c)&&_0x4d2549[_0x39fc30(0x176)]()?_0x4d2549[_0x39fc30(0x176)]():undefined;}export async function createContext(_0x2697b7){const _0x5601f6=a220_0xb93a,{config:_0x1c8fa0,layers:_0x3844b9}=readRawConfigWithLayers(),_0x81d968=buildConfig(_0x1c8fa0,_0x2697b7,_0x3844b9);await initGlobalEnvironment(_0x81d968);const {getUserDomain:_0x2f7e9a,getApiDomain:_0x9e5ce3}=await import(_0x5601f6(0x174)),_0x50fe82={'apiDomain':_0x9e5ce3(),'userDomain':_0x2f7e9a()},_0x2af498=await buildAuth(_0x81d968);logger[_0x5601f6(0x160)](process['cwd']());const _0x55c49a=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5601f6(0x149)](0x2)['join']('\x20'))['trim']();logger[_0x5601f6(0x166)](_0x55c49a);const {isNonInteractive:_0x5b1e60}=await import('./utils/is-non-interactive.js'),_0x89f67d=_0x5b1e60(_0x2697b7);return{'config':_0x81d968,'auth':_0x2af498,'logger':logger,'env':_0x50fe82,'nonInteractive':_0x89f67d};}export function buildConfigFromFlags(_0x326aa8){const {config:_0x1e03e6,layers:_0x4e338b}=readRawConfigWithLayers();return buildConfig(_0x1e03e6,_0x326aa8,_0x4e338b);}export async function initGlobalEnvironment(_0x16d60f){const _0x2b78fe=a220_0xb93a,{initEnv:_0x56ff91}=await import(_0x2b78fe(0x14d));_0x56ff91(_0x16d60f[_0x2b78fe(0x172)]);const {initDomains:_0x165912}=await import(_0x2b78fe(0x174));_0x165912({'region':normalizeLovrabetRegion(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x16e)]),'apiDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x161)]),'userDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['userDomain']),'runtimeDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x155)]),'skillDomain':optionalString(_0x16d60f['raw']?.['skillDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x173)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['agentDomain'])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'kbDomain':optionalString(_0x16d60f['raw']?.[_0x2b78fe(0x16c)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x154)])||optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.[_0x2b78fe(0x167)]),'appDomain':optionalString(_0x16d60f[_0x2b78fe(0x15a)]?.['appDomain'])});}function a220_0xb93a(_0x30d8dd,_0x413985){_0x30d8dd=_0x30d8dd-0x146;const _0x448074=a220_0x4480();let _0xb93a80=_0x448074[_0x30d8dd];return _0xb93a80;}export function getConfigAppCode(_0x5dc32e){const _0x4073bb=a220_0xb93a,_0x566124=readRawConfig(_0x5dc32e);if(_0x566124[_0x4073bb(0x14a)]&&typeof _0x566124['apps']==='object'){const _0x24509c=_0x566124[_0x4073bb(0x148)];if(_0x24509c)return _0x566124[_0x4073bb(0x14a)][_0x24509c]?.[_0x4073bb(0x15f)]?String(_0x566124[_0x4073bb(0x14a)][_0x24509c][_0x4073bb(0x15f)])['trim']():undefined;const _0x5bbbfa=Object['values'](_0x566124[_0x4073bb(0x14a)]);if(_0x5bbbfa['length']===0x1&&_0x5bbbfa[0x0]?.['appcode'])return String(_0x5bbbfa[0x0][_0x4073bb(0x15f)])['trim']();}const _0x2d0d9a=_0x566124[_0x4073bb(0x15f)]||_0x566124['app'];if(typeof _0x2d0d9a!==_0x4073bb(0x15c)||_0x2d0d9a[_0x4073bb(0x176)]()==='')return undefined;return _0x2d0d9a[_0x4073bb(0x176)]();}export function getMultiAppConfigs(_0x42ae32=a220_0xd7d89(0x153),_0x1f133d){const _0x4883e5=a220_0xd7d89,_0x1bcb71=loadRawConfigLayers(_0x1f133d);let _0xc4a82f,_0x7c122a;if(_0x42ae32===_0x4883e5(0x16f)){const _0x2171a6=_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]&&typeof _0x1bcb71['globalConfig']['apps']==='object'?_0x1bcb71[_0x4883e5(0x14b)][_0x4883e5(0x14a)]:{},_0x5b9dae=_0x1bcb71['projectConfig'][_0x4883e5(0x14a)]&&typeof _0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]===_0x4883e5(0x162)?_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x14a)]:{};_0xc4a82f={..._0x2171a6,..._0x5b9dae};const _0x953d74=readRawConfig(_0x1f133d);_0x7c122a=_0x953d74[_0x4883e5(0x148)];}else _0xc4a82f=_0x1bcb71[_0x4883e5(0x147)]['apps'],_0x7c122a=_0x1bcb71[_0x4883e5(0x147)][_0x4883e5(0x148)];!_0x7c122a&&_0xc4a82f&&typeof _0xc4a82f===_0x4883e5(0x162)&&Object[_0x4883e5(0x157)](_0xc4a82f)[_0x4883e5(0x165)]===0x1&&(_0x7c122a=Object[_0x4883e5(0x157)](_0xc4a82f)[0x0]);if(!_0xc4a82f||typeof _0xc4a82f!==_0x4883e5(0x162)||Object['keys'](_0xc4a82f)[_0x4883e5(0x165)]===0x0)return null;return Object[_0x4883e5(0x14f)](_0xc4a82f)[_0x4883e5(0x15e)](([_0x3220a0,_0x3e9049])=>({'name':_0x3220a0,'appcode':_0x3e9049?.[_0x4883e5(0x15f)]||'','isDefault':_0x3220a0===_0x7c122a,'env':_0x3e9049?.[_0x4883e5(0x172)],'apiDir':_0x3e9049?.[_0x4883e5(0x171)],'cookie':_0x3e9049?.[_0x4883e5(0x175)]||undefined}))['filter'](_0x5da412=>_0x5da412[_0x4883e5(0x15f)]);}export function getTemplateBaseUrl(_0x352d60){const _0x55606f=a220_0xd7d89,_0x32c60b=readRawConfig(_0x352d60);if(_0x32c60b[_0x55606f(0x150)]&&typeof _0x32c60b[_0x55606f(0x150)]===_0x55606f(0x15c))return _0x32c60b[_0x55606f(0x150)][_0x55606f(0x15b)](/\/$/,'');return _0x55606f(0x168);}function buildConfig(_0x830925,_0x3cc0a1,_0x14b4b6){return{...resolveAppConfig({'raw':_0x830925,'flags':_0x3cc0a1,'layers':_0x14b4b6,'readEnv':env}),'raw':_0x830925};}export function resolveApiFilePath(_0xde82c0,_0x289497){const _0x4a9409=a220_0xd7d89,_0x5683c4=resolve(process[_0x4a9409(0x159)](),_0xde82c0),_0x40cc3b=resolve(_0x5683c4,_0x4a9409(0x146));if(!_0x289497)return _0x40cc3b;const _0x112f61=readRawConfig(),_0x5d7cd3=_0x112f61[_0x4a9409(0x14a)]&&typeof _0x112f61[_0x4a9409(0x14a)]===_0x4a9409(0x162)?_0x112f61[_0x4a9409(0x14a)]:{},_0x2723e0=Object[_0x4a9409(0x14f)](_0x5d7cd3)['find'](([,_0x9dd737])=>_0x9dd737?.['appcode']===_0x289497);if(!_0x2723e0)return _0x40cc3b;const [_0x3bffe3,_0x1b8d5f]=_0x2723e0,_0x45f3c9=typeof _0x112f61[_0x4a9409(0x148)]===_0x4a9409(0x15c)?_0x112f61[_0x4a9409(0x148)]:undefined;if(_0x1b8d5f?.['apiDir'])return _0x40cc3b;if(_0x45f3c9&&_0x3bffe3!==_0x45f3c9)return resolve(_0x5683c4,_0x3bffe3+_0x4a9409(0x170));return _0x40cc3b;}