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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  251. package/lib/commands/user-account/feishu-bind.js +1 -0
  252. package/lib/commands/user-account/index.js +1 -1
  253. package/lib/commands/workspace/add.js +1 -1
  254. package/lib/commands/workspace/index.js +1 -1
  255. package/lib/commands/workspace/remove.js +1 -1
  256. package/lib/config/domain-config.d.ts +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.js +1 -1
  260. package/lib/config/schema.d.ts +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.d.ts +4 -0
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.d.ts +1 -1
  271. package/lib/constant/region.js +1 -1
  272. package/lib/constant/risk.js +1 -1
  273. package/lib/constant/routing-profile.d.ts +14 -1
  274. package/lib/constant/routing-profile.js +1 -1
  275. package/lib/context/app-resolver.d.ts +1 -0
  276. package/lib/context/app-resolver.js +1 -1
  277. package/lib/context/auth-resolver.js +1 -1
  278. package/lib/context/config-loader.js +1 -1
  279. package/lib/context.js +1 -1
  280. package/lib/core/alias-resolver.js +1 -1
  281. package/lib/core/api-client.d.ts +2 -0
  282. package/lib/core/api-client.js +1 -1
  283. package/lib/core/bff/config.js +1 -1
  284. package/lib/core/bff/file-system.js +1 -1
  285. package/lib/core/bff/hash.js +1 -1
  286. package/lib/core/bff/hook-directory.js +1 -1
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/utils.js +1 -1
  289. package/lib/core/cross-db-relation.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.js +1 -1
  292. package/lib/core/instant-api-policy/config.js +1 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.js +1 -1
  305. package/lib/errors.js +1 -1
  306. package/lib/framework/build-all-flags.js +1 -1
  307. package/lib/framework/error-output.js +1 -1
  308. package/lib/framework/explicit-yes.js +1 -1
  309. package/lib/framework/flags.js +1 -1
  310. package/lib/framework/help.js +1 -1
  311. package/lib/framework/index.js +1 -1
  312. package/lib/framework/output.js +1 -1
  313. package/lib/framework/response.js +1 -1
  314. package/lib/framework/runner-alias.js +1 -1
  315. package/lib/framework/runner.js +1 -1
  316. package/lib/framework/schema-export.js +1 -1
  317. package/lib/framework/supported-flags.js +1 -1
  318. package/lib/framework/types.js +1 -1
  319. package/lib/generated/build-info.d.ts +4 -4
  320. package/lib/generated/build-info.js +1 -1
  321. package/lib/generated/official-routing.d.ts +15 -3
  322. package/lib/generated/official-routing.js +1 -1
  323. package/lib/generated/routing-contract.d.ts +2 -2
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.d.ts +5 -0
  335. package/lib/skills/npx-skills-add.js +1 -1
  336. package/lib/skills/skill-presence.js +1 -1
  337. package/lib/telemetry/cli-command-trace.js +1 -1
  338. package/lib/telemetry/cli-help-trace.js +1 -1
  339. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  340. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  341. package/lib/telemetry/send-cli-trace-log.js +1 -1
  342. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.js +1 -1
  350. package/lib/utils/entity-with-id.js +1 -1
  351. package/lib/utils/file-utils.js +1 -1
  352. package/lib/utils/guides-cdn.js +1 -1
  353. package/lib/utils/http-client.js +1 -1
  354. package/lib/utils/is-non-interactive.js +1 -1
  355. package/lib/utils/logger.js +1 -1
  356. package/lib/utils/params.js +1 -1
  357. package/lib/utils/platform.js +1 -1
  358. package/lib/utils/sleep.js +1 -1
  359. package/lib/utils/template-replacer.js +1 -1
  360. package/lib/utils/update-notice.js +1 -1
  361. package/lib/utils/version.js +1 -1
  362. package/lib/utils/with-active-cookie.js +1 -1
  363. package/lib/utils/write-cli-side-channel.js +1 -1
  364. package/package.json +1 -1
  365. package/skills/rabetbase/SKILL.md +4 -3
  366. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  367. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  368. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  369. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  370. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  371. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  372. package/skills/rabetbase.manifest.json +3 -3
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a269_0x21092a=a269_0x3ab3;(function(_0x3ca360,_0x1c79cd){const _0x5b7334=a269_0x3ab3,_0x14ff92=_0x3ca360();while(!![]){try{const _0x4a7d32=parseInt(_0x5b7334(0x18e))/0x1*(-parseInt(_0x5b7334(0x175))/0x2)+parseInt(_0x5b7334(0x17d))/0x3*(-parseInt(_0x5b7334(0x19e))/0x4)+parseInt(_0x5b7334(0x185))/0x5*(parseInt(_0x5b7334(0x194))/0x6)+parseInt(_0x5b7334(0x16b))/0x7*(parseInt(_0x5b7334(0x19b))/0x8)+-parseInt(_0x5b7334(0x195))/0x9*(-parseInt(_0x5b7334(0x161))/0xa)+-parseInt(_0x5b7334(0x17c))/0xb+parseInt(_0x5b7334(0x170))/0xc;if(_0x4a7d32===_0x1c79cd)break;else _0x14ff92['push'](_0x14ff92['shift']());}catch(_0x35528c){_0x14ff92['push'](_0x14ff92['shift']());}}}(a269_0x1cb7,0x2ab0c));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a269_0x1cb7(){const _0x2c4d97=['merged','./constant/domain.js','globalConfig','entries','1210644YZgkJz','18IhXVYI','template_base_url','platformDomain','runtimeDomain','projectConfig','env','136dQIIfi','skillDomain','setRawCommand','1275092jOiIDA','./constant/env.js','routingConfig','apiDir','production','join','currentApp','length','https://g.lovrabet.com/dist/lovrabet-skill','configuredRegion','cwd','apiDomain','hasOwnProperty','doctor','defaultApp','705290kirnIP','argv','config','trim','localDomain','certificateDomain','agentDomain','regionConfiguredValue','object','app','79429CCeIbG','string','name','skillHubDomain','slice','4365732kmAojX','project','raw','region','source','116806bNdevl','appDomain','regionLocation','daily','filePath','routing','call','1895267mChkyH','3SeoSlj','userDomain','global','regionSource','apiGroup','cdn','targetEnv','setLogPath','5yJtDZL','prototype','kbDomain','map','apps','appcode','domains','app\x20profile\x20\x22','project\x20Rabetbase\x20configuration','4wtIccf','Rabetbase\x20configuration'];a269_0x1cb7=function(){return _0x2c4d97;};return a269_0x1cb7();}import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1e71fb){return process.env[`RABETBASE_${_0x1e71fb}`]||process.env[`LOVRABET_${_0x1e71fb}`]||undefined;}function optionalString(_0x4e64fd){const _0x40e59f=a269_0x3ab3;return typeof _0x4e64fd==='string'&&_0x4e64fd[_0x40e59f(0x164)]()?_0x4e64fd[_0x40e59f(0x164)]():undefined;}export function isRoutingRecoveryService(_0xf0cf91){const _0x1648cc=a269_0x3ab3;return _0xf0cf91===_0x1648cc(0x163)||_0xf0cf91===_0x1648cc(0x15f);}export async function createContext(_0x1b1c7c){const _0x4f4e81=a269_0x3ab3,{config:_0x58a8ca,layers:_0x2b4398}=readRawConfigWithLayers(),_0x115ad4=buildConfig(_0x58a8ca,_0x1b1c7c,_0x2b4398);await initGlobalEnvironment(_0x115ad4);const {getUserDomain:_0x24d061,getApiDomain:_0x4e7c29}=await import(_0x4f4e81(0x191)),_0x29cb9f={'apiDomain':_0x4e7c29(),'userDomain':_0x24d061()},_0x5b8544=await buildAuth(_0x115ad4);logger[_0x4f4e81(0x184)](process[_0x4f4e81(0x1a8)]());const _0x1d3e1a=(CLI_BIN_NAME+'\x20'+process[_0x4f4e81(0x162)][_0x4f4e81(0x16f)](0x2)[_0x4f4e81(0x1a3)]('\x20'))[_0x4f4e81(0x164)]();logger[_0x4f4e81(0x19d)](_0x1d3e1a);const {isNonInteractive:_0x21ef17}=await import('./utils/is-non-interactive.js'),_0x50984d=_0x21ef17(_0x1b1c7c);return{'config':_0x115ad4,'auth':_0x5b8544,'logger':logger,'env':_0x29cb9f,'nonInteractive':_0x50984d};}export function buildConfigFromFlags(_0x38ba46){const {config:_0x534927,layers:_0x570a51}=readRawConfigWithLayers();return buildConfig(_0x534927,_0x38ba46,_0x570a51);}export async function initGlobalEnvironment(_0x35e249){const _0x266c09=a269_0x3ab3,_0x23af50=_0x35e249['regionSource']===_0x266c09(0x16a)&&_0x35e249[_0x266c09(0x1a4)]?_0x266c09(0x18c)+_0x35e249['currentApp']+'\x22':_0x35e249[_0x266c09(0x180)]==='project'?_0x266c09(0x18d):_0x35e249[_0x266c09(0x180)]===_0x266c09(0x17f)?'global\x20Rabetbase\x20configuration':_0x266c09(0x18f);await initConfiguredEnvironment({'raw':_0x35e249[_0x266c09(0x172)],'configuredRegion':_0x35e249[_0x266c09(0x168)]??_0x35e249['raw']?.[_0x266c09(0x173)]??_0x35e249[_0x266c09(0x173)],'regionLocation':_0x23af50,'targetEnv':_0x35e249[_0x266c09(0x19a)]});}async function initConfiguredEnvironment(_0x3246e7){const _0x3fb2c4=a269_0x3ab3,_0x4aef04=resolveConfiguredRegion(_0x3246e7[_0x3fb2c4(0x1a7)],_0x3246e7[_0x3fb2c4(0x177)]),_0x547c41=resolveEnterpriseRoutingManifest(_0x3246e7['raw']?.[_0x3fb2c4(0x17a)]),_0x5046cc={'region':_0x4aef04,'apiDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x15d)]:optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x15d)]),'userDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['userDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x17e)]),'runtimeDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['runtimeDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.['runtimeDomain']),'skillDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x19c)]:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x19c)])||optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x16e)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x167)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x197)]),'kbDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['kbDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x187)])||optionalString(_0x3246e7['raw']?.[_0x3fb2c4(0x167)])||optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.['platformDomain']),'appDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['appDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x176)]),'localDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)][_0x3fb2c4(0x165)]:optionalString(_0x3246e7['raw']?.['localDomain']),'certificateDomain':_0x547c41?_0x547c41[_0x3fb2c4(0x18b)]['certificateDomain']:optionalString(_0x3246e7[_0x3fb2c4(0x172)]?.[_0x3fb2c4(0x166)]),'cdn':_0x547c41?.[_0x3fb2c4(0x182)]},{initEnv:_0x2629a6}=await import(_0x3fb2c4(0x19f)),{initDomains:_0x4a35a9}=await import('./constant/domain.js');_0x2629a6(_0x3246e7[_0x3fb2c4(0x183)]),_0x4a35a9(_0x5046cc);}function a269_0x3ab3(_0xe8da39,_0x2d25bf){_0xe8da39=_0xe8da39-0x15d;const _0x1cb722=a269_0x1cb7();let _0x3ab3b8=_0x1cb722[_0xe8da39];return _0x3ab3b8;}export async function initMultiAppEnvironment(_0x492858){const _0x49c6c5=a269_0x3ab3;await initConfiguredEnvironment({'raw':_0x492858[_0x49c6c5(0x1a0)],'configuredRegion':_0x492858[_0x49c6c5(0x173)],'regionLocation':'app\x20profile\x20\x22'+_0x492858[_0x49c6c5(0x16d)]+'\x22','targetEnv':_0x492858[_0x49c6c5(0x19a)]===_0x49c6c5(0x178)?_0x49c6c5(0x178):_0x49c6c5(0x1a2)});}export function getConfigAppCode(_0x29c533){const _0x19f977=a269_0x3ab3,_0x13baeb=readRawConfig(_0x29c533);if(_0x13baeb[_0x19f977(0x189)]&&typeof _0x13baeb[_0x19f977(0x189)]===_0x19f977(0x169)){const _0x2208bc=_0x13baeb[_0x19f977(0x160)];if(_0x2208bc)return _0x13baeb[_0x19f977(0x189)][_0x2208bc]?.[_0x19f977(0x18a)]?String(_0x13baeb[_0x19f977(0x189)][_0x2208bc]['appcode'])[_0x19f977(0x164)]():undefined;const _0x1b078d=Object['values'](_0x13baeb[_0x19f977(0x189)]);if(_0x1b078d['length']===0x1&&_0x1b078d[0x0]?.['appcode'])return String(_0x1b078d[0x0][_0x19f977(0x18a)])[_0x19f977(0x164)]();}const _0x35ef8d=_0x13baeb['appcode']||_0x13baeb[_0x19f977(0x16a)];if(typeof _0x35ef8d!==_0x19f977(0x16c)||_0x35ef8d['trim']()==='')return undefined;return _0x35ef8d[_0x19f977(0x164)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain','userDomain',a269_0x21092a(0x198),'skillDomain',a269_0x21092a(0x16e),a269_0x21092a(0x187),a269_0x21092a(0x167),a269_0x21092a(0x197),a269_0x21092a(0x176),a269_0x21092a(0x165),'certificateDomain'];function pickConnectionRoutingConfig(_0x15c6ce,_0x197345){const _0x364f9d={'region':_0x197345};for(const _0x19c958 of CONNECTION_ROUTING_KEYS){if(_0x15c6ce[_0x19c958]!==undefined)_0x364f9d[_0x19c958]=_0x15c6ce[_0x19c958];}return _0x364f9d;}export function getMultiAppConfigs(_0x2cc484=a269_0x21092a(0x171),_0x504182){const _0x40b83a=a269_0x21092a,_0x31c8dd=loadRawConfigLayers(_0x504182);let _0x2a8cd3,_0x1fd00c;const _0x4e24da=mergeRawConfigLayers(_0x31c8dd),_0x47987f=_0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]&&typeof _0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]==='object'?_0x31c8dd[_0x40b83a(0x192)][_0x40b83a(0x189)]:{},_0x105784=_0x31c8dd[_0x40b83a(0x199)]['apps']&&typeof _0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)]===_0x40b83a(0x169)?_0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)]:{};_0x2cc484===_0x40b83a(0x190)?(_0x2a8cd3={..._0x47987f,..._0x105784},_0x1fd00c=_0x4e24da[_0x40b83a(0x160)]):(_0x2a8cd3=_0x31c8dd[_0x40b83a(0x199)][_0x40b83a(0x189)],_0x1fd00c=_0x31c8dd[_0x40b83a(0x199)]['defaultApp']);!_0x1fd00c&&_0x2a8cd3&&typeof _0x2a8cd3==='object'&&Object['keys'](_0x2a8cd3)[_0x40b83a(0x1a5)]===0x1&&(_0x1fd00c=Object['keys'](_0x2a8cd3)[0x0]);if(!_0x2a8cd3||typeof _0x2a8cd3!=='object'||Object['keys'](_0x2a8cd3)[_0x40b83a(0x1a5)]===0x0)return null;return Object[_0x40b83a(0x193)](_0x2a8cd3)[_0x40b83a(0x188)](([_0xe60f5f,_0x2f9998])=>{const _0x586a4d=_0x40b83a,_0x4aae9f=_0x2cc484===_0x586a4d(0x171)||Object[_0x586a4d(0x186)][_0x586a4d(0x15e)][_0x586a4d(0x17b)](_0x105784,_0xe60f5f),_0x4640ca=_0x4aae9f?_0x4e24da:_0x31c8dd[_0x586a4d(0x192)],_0x59924d=resolveEffectiveRegion({'appRegion':_0x2f9998?.[_0x586a4d(0x173)],'projectRegion':_0x4aae9f?_0x31c8dd[_0x586a4d(0x199)][_0x586a4d(0x173)]:undefined,'globalRegion':_0x31c8dd['globalConfig'][_0x586a4d(0x173)],'mergedRegion':_0x4640ca['region'],'appName':_0xe60f5f});return{'name':_0xe60f5f,'appcode':_0x2f9998?.['appcode']||'','apiGroup':optionalString(_0x2f9998?.[_0x586a4d(0x181)]),'isDefault':_0xe60f5f===_0x1fd00c,'region':_0x59924d[_0x586a4d(0x173)],'regionSource':_0x59924d[_0x586a4d(0x174)],'env':_0x2f9998?.['env'],'apiDir':optionalString(_0x2f9998?.[_0x586a4d(0x1a1)])||optionalString(_0x4640ca['apiDir']),'cookie':_0x2f9998?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4640ca,_0x59924d['region'])};})['filter'](_0x3300cf=>_0x3300cf[_0x40b83a(0x18a)]);}export function getTemplateBaseUrl(_0x4500ed){const _0x321257=a269_0x21092a,_0x60a993=readRawConfig(_0x4500ed);if(_0x60a993['template_base_url']&&typeof _0x60a993[_0x321257(0x196)]===_0x321257(0x16c))return _0x60a993['template_base_url']['replace'](/\/$/,'');return _0x321257(0x1a6);}function buildConfig(_0x51f228,_0x46dd1c,_0x25662a){return{...resolveAppConfig({'raw':_0x51f228,'flags':_0x46dd1c,'layers':_0x25662a,'readEnv':env}),'raw':_0x51f228};}export function resolveApiFilePath(_0x5893fe,_0x461a0d,_0xd2499a){const _0x3bd078=a269_0x21092a;return resolveApiModelSource(_0x5893fe,_0x461a0d,_0xd2499a)[_0x3bd078(0x179)];}
1
+ const a270_0x58b889=a270_0x20b2;(function(_0x253342,_0x688a43){const _0x5195eb=a270_0x20b2,_0x50919a=_0x253342();while(!![]){try{const _0x53b840=-parseInt(_0x5195eb(0x1b6))/0x1+-parseInt(_0x5195eb(0x1df))/0x2*(parseInt(_0x5195eb(0x1cb))/0x3)+parseInt(_0x5195eb(0x1af))/0x4+parseInt(_0x5195eb(0x1da))/0x5+-parseInt(_0x5195eb(0x1a4))/0x6*(-parseInt(_0x5195eb(0x1d0))/0x7)+-parseInt(_0x5195eb(0x1a6))/0x8*(parseInt(_0x5195eb(0x19f))/0x9)+parseInt(_0x5195eb(0x1aa))/0xa;if(_0x53b840===_0x688a43)break;else _0x50919a['push'](_0x50919a['shift']());}catch(_0x37e0c2){_0x50919a['push'](_0x50919a['shift']());}}}(a270_0x21a4,0xaf6b6));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{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x22bb01){return process.env[`RABETBASE_${_0x22bb01}`]||process.env[`LOVRABET_${_0x22bb01}`]||undefined;}function optionalString(_0x35832a){const _0x1ce2eb=a270_0x20b2;return typeof _0x35832a==='string'&&_0x35832a[_0x1ce2eb(0x1e1)]()?_0x35832a['trim']():undefined;}export function isRoutingRecoveryService(_0x2ba312){const _0x135d4b=a270_0x20b2;return _0x2ba312===_0x135d4b(0x1b1)||_0x2ba312===_0x135d4b(0x1e3);}export async function createContext(_0x1c27fe){const _0x5e4a0c=a270_0x20b2,{config:_0x477218,layers:_0x463a2e}=readRawConfigWithLayers(),_0x53fa42=buildConfig(_0x477218,_0x1c27fe,_0x463a2e);await initGlobalEnvironment(_0x53fa42);const {getUserDomain:_0x4ec12a,getApiDomain:_0xa8cef8}=await import(_0x5e4a0c(0x1b3)),_0x35c583={'apiDomain':_0xa8cef8(),'userDomain':_0x4ec12a()},_0x3da7dd=await buildAuth(_0x53fa42);logger[_0x5e4a0c(0x1cd)](process[_0x5e4a0c(0x1b5)]());const _0x31b7b5=(CLI_BIN_NAME+'\x20'+process[_0x5e4a0c(0x1c1)]['slice'](0x2)['join']('\x20'))[_0x5e4a0c(0x1e1)]();logger[_0x5e4a0c(0x1d3)](_0x31b7b5);const {isNonInteractive:_0x68a3f7}=await import('./utils/is-non-interactive.js'),_0x3dd1bc=_0x68a3f7(_0x1c27fe);return{'config':_0x53fa42,'auth':_0x3da7dd,'logger':logger,'env':_0x35c583,'nonInteractive':_0x3dd1bc};}export function buildConfigFromFlags(_0x206cb4){const {config:_0x48f05f,layers:_0x28d936}=readRawConfigWithLayers();return buildConfig(_0x48f05f,_0x206cb4,_0x28d936);}function a270_0x21a4(){const _0x457e27=['4592696NNePEk','project\x20Rabetbase\x20configuration','config','object','./constant/domain.js','currentApp','cwd','1040701CNIWvU','regionLocation','global\x20Rabetbase\x20configuration','regionSource','platformDomain','map','globalConfig','cdn','apiDir','routing','apps','argv','app\x20profile\x20\x22','daily','userDomain','env','region','apiDomain','project','routingConfig','filter','804PqBzsg','targetEnv','setLogPath','length','certificateDomain','7196lPyIxR','replace','entries','setRawCommand','merged','runtimeDomain','global','kbServiceDomain','Rabetbase\x20configuration','production','3476935HkHCYF','skillHubDomain','name','domains','call','8730oAhjTd','keys','trim','defaultApp','doctor','apiGroup','skillDomain','agentDomain','source','appcode','regionConfiguredValue','some','9TbkPyY','projectConfig','configuredRegion','raw','appDomain','4242bjEhgm','prototype','6745720CHepRa','app','./constant/env.js','localDomain','12018970KGRKJV','hasOwnProperty','string','template_base_url','kbDomain'];a270_0x21a4=function(){return _0x457e27;};return a270_0x21a4();}export async function initGlobalEnvironment(_0x20598f){const _0x1c2fac=a270_0x20b2,_0x4efc3d=_0x20598f['regionSource']===_0x1c2fac(0x1a7)&&_0x20598f[_0x1c2fac(0x1b4)]?_0x1c2fac(0x1c2)+_0x20598f[_0x1c2fac(0x1b4)]+'\x22':_0x20598f['regionSource']===_0x1c2fac(0x1c8)?_0x1c2fac(0x1b0):_0x20598f[_0x1c2fac(0x1b9)]===_0x1c2fac(0x1d6)?_0x1c2fac(0x1b8):_0x1c2fac(0x1d8);await initConfiguredEnvironment({'raw':_0x20598f[_0x1c2fac(0x1a2)],'configuredRegion':_0x20598f[_0x1c2fac(0x19d)]??_0x20598f[_0x1c2fac(0x1a2)]?.[_0x1c2fac(0x1c6)]??_0x20598f[_0x1c2fac(0x1c6)],'regionLocation':_0x4efc3d,'targetEnv':_0x20598f[_0x1c2fac(0x1c5)]});}async function initConfiguredEnvironment(_0x1c9de3){const _0x5644b2=a270_0x20b2,_0x5baa36=resolveConfiguredRegion(_0x1c9de3[_0x5644b2(0x1a1)],_0x1c9de3[_0x5644b2(0x1b7)]),_0xa6354a=resolveEnterpriseRoutingManifest(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1bf)]),_0x55f6f5={'region':_0x5baa36,'apiDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['apiDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['apiDomain']),'userDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1c4)]:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1c4)]),'runtimeDomain':_0xa6354a?_0xa6354a['domains'][_0x5644b2(0x1d5)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1d5)]),'skillDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['skillDomain']:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e5)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1db)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1ae)]:optionalString(_0x1c9de3['raw']?.['kbDomain'])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.[_0x5644b2(0x1e6)])||optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['platformDomain']),'kbServiceDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['kbServiceDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1d7)]),'appDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a3)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['appDomain']),'localDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)][_0x5644b2(0x1a9)]:optionalString(_0x1c9de3[_0x5644b2(0x1a2)]?.['localDomain']),'certificateDomain':_0xa6354a?_0xa6354a[_0x5644b2(0x1dd)]['certificateDomain']:optionalString(_0x1c9de3['raw']?.[_0x5644b2(0x1cf)]),'cdn':_0xa6354a?.[_0x5644b2(0x1bd)],'allowOfficialKbServiceDefault':!(_0xa6354a!==undefined||[_0x5644b2(0x1c7),_0x5644b2(0x1c4),_0x5644b2(0x1d5),_0x5644b2(0x1e5),_0x5644b2(0x1db),_0x5644b2(0x1ae),_0x5644b2(0x1d7),_0x5644b2(0x1e6),_0x5644b2(0x1ba),'appDomain','localDomain',_0x5644b2(0x1cf)][_0x5644b2(0x19e)](_0x9b978c=>Object['prototype'][_0x5644b2(0x1ab)][_0x5644b2(0x1de)](_0x1c9de3[_0x5644b2(0x1a2)]??{},_0x9b978c)))},{initEnv:_0x3a0044}=await import(_0x5644b2(0x1a8)),{initDomains:_0x510942}=await import(_0x5644b2(0x1b3));_0x3a0044(_0x1c9de3[_0x5644b2(0x1cc)]),_0x510942(_0x55f6f5);}function a270_0x20b2(_0xa9e3c9,_0x3978f4){_0xa9e3c9=_0xa9e3c9-0x19c;const _0x21a4cc=a270_0x21a4();let _0x20b2a2=_0x21a4cc[_0xa9e3c9];return _0x20b2a2;}export async function initMultiAppEnvironment(_0x365ae2){const _0x6275c9=a270_0x20b2;await initConfiguredEnvironment({'raw':_0x365ae2[_0x6275c9(0x1c9)],'configuredRegion':_0x365ae2['region'],'regionLocation':_0x6275c9(0x1c2)+_0x365ae2[_0x6275c9(0x1dc)]+'\x22','targetEnv':_0x365ae2[_0x6275c9(0x1c5)]==='daily'?_0x6275c9(0x1c3):_0x6275c9(0x1d9)});}export function getConfigAppCode(_0x21db43){const _0x332cff=a270_0x20b2,_0x1ecbaa=readRawConfig(_0x21db43);if(_0x1ecbaa[_0x332cff(0x1c0)]&&typeof _0x1ecbaa[_0x332cff(0x1c0)]===_0x332cff(0x1b2)){const _0xdec3cf=_0x1ecbaa[_0x332cff(0x1e2)];if(_0xdec3cf)return _0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf]?.[_0x332cff(0x19c)]?String(_0x1ecbaa[_0x332cff(0x1c0)][_0xdec3cf][_0x332cff(0x19c)])[_0x332cff(0x1e1)]():undefined;const _0x5bc4bb=Object['values'](_0x1ecbaa[_0x332cff(0x1c0)]);if(_0x5bc4bb[_0x332cff(0x1ce)]===0x1&&_0x5bc4bb[0x0]?.[_0x332cff(0x19c)])return String(_0x5bc4bb[0x0][_0x332cff(0x19c)])['trim']();}const _0x435b09=_0x1ecbaa[_0x332cff(0x19c)]||_0x1ecbaa['app'];if(typeof _0x435b09!=='string'||_0x435b09[_0x332cff(0x1e1)]()==='')return undefined;return _0x435b09['trim']();}const CONNECTION_ROUTING_KEYS=[a270_0x58b889(0x1bf),a270_0x58b889(0x1c7),'userDomain',a270_0x58b889(0x1d5),a270_0x58b889(0x1e5),a270_0x58b889(0x1db),a270_0x58b889(0x1ae),'kbServiceDomain',a270_0x58b889(0x1e6),'platformDomain',a270_0x58b889(0x1a3),'localDomain','certificateDomain'];function withAppProfileRouting(_0x1d688b,_0x39a585){const _0x1ddef7=a270_0x58b889;if(!_0x39a585||_0x39a585[_0x1ddef7(0x1d7)]===undefined)return _0x1d688b;return{..._0x1d688b,'kbServiceDomain':_0x39a585['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28143e,_0x416f35){const _0x2871f3={'region':_0x416f35};for(const _0x2abd4e of CONNECTION_ROUTING_KEYS){if(_0x28143e[_0x2abd4e]!==undefined)_0x2871f3[_0x2abd4e]=_0x28143e[_0x2abd4e];}return _0x2871f3;}export function getMultiAppConfigs(_0xbb9722=a270_0x58b889(0x1c8),_0x54ed57){const _0x211081=a270_0x58b889,_0x4a9fcd=loadRawConfigLayers(_0x54ed57);let _0x347b35,_0x9fe3d9;const _0x34601f=mergeRawConfigLayers(_0x4a9fcd),_0x288e83=_0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1bc)][_0x211081(0x1c0)]==='object'?_0x4a9fcd['globalConfig'][_0x211081(0x1c0)]:{},_0xbb9c5=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]&&typeof _0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]===_0x211081(0x1b2)?_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)]:{};_0xbb9722===_0x211081(0x1d4)?(_0x347b35={..._0x288e83,..._0xbb9c5},_0x9fe3d9=_0x34601f[_0x211081(0x1e2)]):(_0x347b35=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1c0)],_0x9fe3d9=_0x4a9fcd[_0x211081(0x1a0)][_0x211081(0x1e2)]);!_0x9fe3d9&&_0x347b35&&typeof _0x347b35===_0x211081(0x1b2)&&Object['keys'](_0x347b35)[_0x211081(0x1ce)]===0x1&&(_0x9fe3d9=Object[_0x211081(0x1e0)](_0x347b35)[0x0]);if(!_0x347b35||typeof _0x347b35!==_0x211081(0x1b2)||Object[_0x211081(0x1e0)](_0x347b35)['length']===0x0)return null;return Object[_0x211081(0x1d2)](_0x347b35)[_0x211081(0x1bb)](([_0x5d65cb,_0xb9495b])=>{const _0x4c8af8=_0x211081,_0x63aa4f=_0xbb9722===_0x4c8af8(0x1c8)||Object[_0x4c8af8(0x1a5)]['hasOwnProperty'][_0x4c8af8(0x1de)](_0xbb9c5,_0x5d65cb),_0x117509=withAppProfileRouting(_0x63aa4f?_0x34601f:_0x4a9fcd[_0x4c8af8(0x1bc)],_0xb9495b),_0x54fedf=resolveEffectiveRegion({'appRegion':_0xb9495b?.[_0x4c8af8(0x1c6)],'projectRegion':_0x63aa4f?_0x4a9fcd[_0x4c8af8(0x1a0)][_0x4c8af8(0x1c6)]:undefined,'globalRegion':_0x4a9fcd[_0x4c8af8(0x1bc)][_0x4c8af8(0x1c6)],'mergedRegion':_0x117509[_0x4c8af8(0x1c6)],'appName':_0x5d65cb});return{'name':_0x5d65cb,'appcode':_0xb9495b?.['appcode']||'','apiGroup':optionalString(_0xb9495b?.[_0x4c8af8(0x1e4)]),'isDefault':_0x5d65cb===_0x9fe3d9,'region':_0x54fedf[_0x4c8af8(0x1c6)],'regionSource':_0x54fedf[_0x4c8af8(0x1e7)],'env':_0xb9495b?.['env'],'apiDir':optionalString(_0xb9495b?.['apiDir'])||optionalString(_0x117509[_0x4c8af8(0x1be)]),'cookie':_0xb9495b?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x117509,_0x54fedf[_0x4c8af8(0x1c6)])};})[_0x211081(0x1ca)](_0x4bf0e2=>_0x4bf0e2['appcode']);}export function getTemplateBaseUrl(_0x45a843){const _0x520b27=a270_0x58b889,_0x14f9f6=readRawConfig(_0x45a843);if(_0x14f9f6[_0x520b27(0x1ad)]&&typeof _0x14f9f6['template_base_url']===_0x520b27(0x1ac))return _0x14f9f6[_0x520b27(0x1ad)][_0x520b27(0x1d1)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x27ced8,_0x4b3140,_0x4d6a16){const _0x208a9e=a270_0x58b889,_0xbd82c3=resolveAppConfig({'raw':_0x27ced8,'flags':_0x4b3140,'layers':_0x4d6a16,'readEnv':env}),_0x4fd88b=_0xbd82c3[_0x208a9e(0x1b4)]?_0xbd82c3[_0x208a9e(0x1c0)][_0xbd82c3['currentApp']]:undefined;return{..._0xbd82c3,'raw':withAppProfileRouting(_0x27ced8,_0x4fd88b)};}export function resolveApiFilePath(_0x4cd631,_0x3eb4db,_0x40ae6d){return resolveApiModelSource(_0x4cd631,_0x3eb4db,_0x40ae6d)['filePath'];}
@@ -1 +1 @@
1
- function a270_0x1200(){const _0x1be354=['filter','index','datasetCode','has','6buNfrT','slice','flatMap','add','3677008EXgrtv','stringify','exec','1431729nmAXie','startsWith','.js','defaultProfile','.mjs','utf-8','push','get','alias','852076KGEYuF','size','.ts','1857532zcRtqV','name','.mts','source','.jsx','set','.cts','.tsx','11ozMIHp','3263827ixGXaM','1NLBxBn','isFile','tableName','2529828YVOvyK','8773510QpGMnK','10decDki','map'];a270_0x1200=function(){return _0x1be354;};return a270_0x1200();}const a270_0x7220d4=a270_0x12b8;(function(_0x417fa8,_0x534e39){const _0x46ee4e=a270_0x12b8,_0x4b28b3=_0x417fa8();while(!![]){try{const _0x43ec86=-parseInt(_0x46ee4e(0xba))/0x1*(-parseInt(_0x46ee4e(0xd8))/0x2)+-parseInt(_0x46ee4e(0xcc))/0x3+-parseInt(_0x46ee4e(0xd5))/0x4*(parseInt(_0x46ee4e(0xbf))/0x5)+parseInt(_0x46ee4e(0xc5))/0x6*(parseInt(_0x46ee4e(0xb9))/0x7)+-parseInt(_0x46ee4e(0xc9))/0x8+-parseInt(_0x46ee4e(0xbd))/0x9+-parseInt(_0x46ee4e(0xbe))/0xa*(-parseInt(_0x46ee4e(0xb8))/0xb);if(_0x43ec86===_0x534e39)break;else _0x4b28b3['push'](_0x4b28b3['shift']());}catch(_0x5d372b){_0x4b28b3['push'](_0x4b28b3['shift']());}}}(a270_0x1200,0x9969b));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a270_0x7220d4(0xd7),a270_0x7220d4(0xb7),a270_0x7220d4(0xda),a270_0x7220d4(0xb6),a270_0x7220d4(0xce),a270_0x7220d4(0xb4),a270_0x7220d4(0xd0),'.cjs'],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a270_0x7220d4(0xd7),a270_0x7220d4(0xb7)],'.jsx':[a270_0x7220d4(0xb7)],'.mjs':[a270_0x7220d4(0xda)],'.cjs':[a270_0x7220d4(0xb6)]};function a270_0x12b8(_0x2b879e,_0x3c2866){_0x2b879e=_0x2b879e-0xb4;const _0x12001d=a270_0x1200();let _0x12b8b5=_0x12001d[_0x2b879e];return _0x12b8b5;}function parseApiFile(_0xea1a99){const _0x4db725=a270_0x7220d4;return parseLegacyApiModels(_0xea1a99)[_0x4db725(0xc7)](_0x28e30e=>_0x28e30e[_0x4db725(0xd4)]?[{'alias':_0x28e30e[_0x4db725(0xd4)],'datasetCode':_0x28e30e[_0x4db725(0xc3)],'tableName':_0x28e30e[_0x4db725(0xbc)],'name':_0x28e30e[_0x4db725(0xd9)]}]:[]);}function isWithinRoot(_0x52721c,_0x341a91){const _0x46c526=a270_0x7220d4,_0x52456a=relative(_0x52721c,_0x341a91);return _0x52456a===''||!_0x52456a[_0x46c526(0xcd)]('..')&&!isAbsolute(_0x52456a);}function resolveExistingFile(_0x577c73){const _0x224cfd=a270_0x7220d4;if(!existsSync(_0x577c73))return undefined;try{return statSync(_0x577c73)[_0x224cfd(0xbb)]()?realpathSync(_0x577c73):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x508450){const _0x17cf62=a270_0x7220d4,_0x112ad6=extname(_0x508450);if(!_0x112ad6)return[...SOURCE_FILE_EXTENSIONS[_0x17cf62(0xc0)](_0x4e41e7=>''+_0x508450+_0x4e41e7),...SOURCE_FILE_EXTENSIONS['map'](_0x4542c0=>resolve(_0x508450,_0x17cf62(0xc2)+_0x4542c0))];const _0x4c8fa1=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x112ad6];if(!_0x4c8fa1)return[_0x508450];const _0x5321ea=_0x508450[_0x17cf62(0xc6)](0x0,-_0x112ad6['length']);return[..._0x4c8fa1['map'](_0x4c0cad=>''+_0x5321ea+_0x4c0cad),_0x508450];}function resolveLocalReexport(_0x404575,_0x5ae735,_0xfabc4f){const _0x1afd70=a270_0x7220d4;if(!_0x5ae735[_0x1afd70(0xcd)]('./')&&!_0x5ae735[_0x1afd70(0xcd)]('../'))return undefined;const _0x5e475a=resolve(dirname(_0x404575),_0x5ae735);if(!isWithinRoot(_0xfabc4f,_0x5e475a))return undefined;for(const _0x572f6c of reexportCandidatePaths(_0x5e475a)){const _0x1964ec=resolveExistingFile(_0x572f6c);if(_0x1964ec&&isWithinRoot(_0xfabc4f,_0x1964ec))return _0x1964ec;}return undefined;}function parseApiFileTree(_0x4ca4f7,_0x3e0ae1,_0xe5c8e7,_0x28ec46){const _0x156e7d=a270_0x7220d4,_0x1e0d2d=resolveExistingFile(_0x4ca4f7);if(!_0x1e0d2d)return[];const _0x50afa9=_0xe5c8e7[_0x156e7d(0xd3)](_0x1e0d2d);if(_0x50afa9!==undefined&&_0x50afa9<=_0x28ec46)return[];_0xe5c8e7[_0x156e7d(0xb5)](_0x1e0d2d,_0x28ec46);const _0x28ba63=readFileSync(_0x1e0d2d,_0x156e7d(0xd1)),_0x140195=parseApiFile(_0x28ba63);if(_0x28ec46>=MAX_LOCAL_REEXPORT_DEPTH)return _0x140195;const _0x13336f=new RegExp(LOCAL_REEXPORT_RE[_0x156e7d(0xdb)],LOCAL_REEXPORT_RE['flags']);let _0x2018ef;while((_0x2018ef=_0x13336f[_0x156e7d(0xcb)](_0x28ba63))!==null){const _0x354d95=resolveLocalReexport(_0x1e0d2d,_0x2018ef[0x1],_0x3e0ae1);_0x354d95&&_0x140195[_0x156e7d(0xd2)](...parseApiFileTree(_0x354d95,_0x3e0ae1,_0xe5c8e7,_0x28ec46+0x1));}return _0x140195;}function aliasProjectRoot(_0x488c03){const _0x4b0c60=findProjectRootDirectory(dirname(_0x488c03));try{return realpathSync(_0x4b0c60);}catch{return _0x4b0c60;}}function uniqueAliasEntries(_0x23fd99){const _0x338a7c=a270_0x7220d4,_0x12c067=new Set();return _0x23fd99[_0x338a7c(0xc1)](_0x54d7f8=>{const _0x3fd599=_0x338a7c,_0x2bb2a8=JSON[_0x3fd599(0xca)](_0x54d7f8);if(_0x12c067[_0x3fd599(0xc4)](_0x2bb2a8))return![];return _0x12c067[_0x3fd599(0xc8)](_0x2bb2a8),!![];});}export function loadAliasMap(_0x45ea56,_0x2b0c8b,_0x2498cc,_0x5a06dc){const _0x567e70=a270_0x7220d4,_0x51dbe2=resolve(_0x2498cc??resolve(process['cwd'](),_0x45ea56,'api.ts')),_0x13355a=_0x5a06dc?_0x51dbe2+'#'+_0x5a06dc:_0x51dbe2;if(cache[_0x567e70(0xc4)](_0x13355a))return cache[_0x567e70(0xd3)](_0x13355a);if(!existsSync(_0x51dbe2))return cache['set'](_0x13355a,[]),[];try{if(_0x51dbe2['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x50c819=readModelRegistry(_0x51dbe2),_0x135548=_0x5a06dc??_0x50c819?.[_0x567e70(0xcf)],_0x317f78=_0x135548&&_0x50c819?getProfileModels(_0x50c819,_0x135548):[],_0x3fdcaa=uniqueAliasEntries(_0x317f78[_0x567e70(0xc7)](_0x54ef10=>_0x54ef10[_0x567e70(0xd4)]?[{'alias':_0x54ef10[_0x567e70(0xd4)],'datasetCode':_0x54ef10[_0x567e70(0xc3)],'tableName':_0x54ef10[_0x567e70(0xbc)],'name':_0x54ef10[_0x567e70(0xd9)]}]:[]));return cache['set'](_0x13355a,_0x3fdcaa),_0x3fdcaa;}const _0x1739af=uniqueAliasEntries(parseApiFileTree(_0x51dbe2,aliasProjectRoot(_0x51dbe2),new Map(),0x0));return cache[_0x567e70(0xb5)](_0x13355a,_0x1739af),_0x1739af;}catch{return cache[_0x567e70(0xb5)](_0x13355a,[]),[];}}export function resolveAlias(_0x3ac946,_0x5ca865,_0x423a34,_0x5260c9,_0x5d9e45){const _0x2206f8=a270_0x7220d4;if(!_0x5ca865)return undefined;const _0x32b78b=loadAliasMap(_0x3ac946,_0x423a34,_0x5260c9,_0x5d9e45),_0x4f80af=new Set(_0x32b78b[_0x2206f8(0xc1)](_0x1be8fb=>_0x1be8fb['alias']===_0x5ca865)['map'](_0x3e65=>_0x3e65[_0x2206f8(0xc3)]));return _0x4f80af[_0x2206f8(0xd6)]===0x1?[..._0x4f80af][0x0]:undefined;}export function listAliases(_0xe650e,_0x5d9887,_0x43314f,_0x163e59){return loadAliasMap(_0xe650e,_0x5d9887,_0x43314f,_0x163e59);}
1
+ const a271_0x334f50=a271_0x1d8b;(function(_0x5bf2d0,_0x5e7fcb){const _0x2f45f7=a271_0x1d8b,_0x256bee=_0x5bf2d0();while(!![]){try{const _0x1ae05d=-parseInt(_0x2f45f7(0xe0))/0x1+-parseInt(_0x2f45f7(0xe1))/0x2*(-parseInt(_0x2f45f7(0xf8))/0x3)+-parseInt(_0x2f45f7(0xf6))/0x4+parseInt(_0x2f45f7(0x102))/0x5+-parseInt(_0x2f45f7(0xef))/0x6*(-parseInt(_0x2f45f7(0xe8))/0x7)+parseInt(_0x2f45f7(0xdc))/0x8+parseInt(_0x2f45f7(0xf7))/0x9;if(_0x1ae05d===_0x5e7fcb)break;else _0x256bee['push'](_0x256bee['shift']());}catch(_0x5e7281){_0x256bee['push'](_0x256bee['shift']());}}}(a271_0x2603,0xb6c66));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';function a271_0x2603(){const _0x5d8892=['utf-8','flatMap','size','6OhoRAV','flags','.ts','cwd','../','.cts','tableName','2171580JHLjIb','3709035BAQnWS','42387kLehvR','source','api.ts','length','map','alias','set','.js','startsWith','push','66725FOlAez','get','.mjs','datasetCode','stringify','endsWith','9266960SqWELh','filter','.mts','add','1102049jwuwOp','18paZCOU','index','isFile','.jsx','.cjs','has','name','4778193kEwoyF','.tsx','exec','defaultProfile'];a271_0x2603=function(){return _0x5d8892;};return a271_0x2603();}import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a271_0x334f50(0xf1),a271_0x334f50(0xe9),'.mts',a271_0x334f50(0xf4),a271_0x334f50(0xff),a271_0x334f50(0xe4),a271_0x334f50(0x104),a271_0x334f50(0xe5)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a271_0x334f50(0xf1),a271_0x334f50(0xe9)],'.jsx':[a271_0x334f50(0xe9)],'.mjs':[a271_0x334f50(0xde)],'.cjs':[a271_0x334f50(0xf4)]};function parseApiFile(_0x953211){const _0x4ed449=a271_0x334f50;return parseLegacyApiModels(_0x953211)[_0x4ed449(0xed)](_0x15f053=>_0x15f053[_0x4ed449(0xfd)]?[{'alias':_0x15f053[_0x4ed449(0xfd)],'datasetCode':_0x15f053[_0x4ed449(0x105)],'tableName':_0x15f053[_0x4ed449(0xf5)],'name':_0x15f053[_0x4ed449(0xe7)]}]:[]);}function isWithinRoot(_0x2bece4,_0x19278f){const _0x48a050=a271_0x334f50,_0x922ec=relative(_0x2bece4,_0x19278f);return _0x922ec===''||!_0x922ec[_0x48a050(0x100)]('..')&&!isAbsolute(_0x922ec);}function resolveExistingFile(_0x142c75){const _0x872024=a271_0x334f50;if(!existsSync(_0x142c75))return undefined;try{return statSync(_0x142c75)[_0x872024(0xe3)]()?realpathSync(_0x142c75):undefined;}catch{return undefined;}}function a271_0x1d8b(_0x2d9e40,_0x1a742d){_0x2d9e40=_0x2d9e40-0xdc;const _0x260390=a271_0x2603();let _0x1d8bc9=_0x260390[_0x2d9e40];return _0x1d8bc9;}function reexportCandidatePaths(_0x52c2fc){const _0x68a0f1=a271_0x334f50,_0x549523=extname(_0x52c2fc);if(!_0x549523)return[...SOURCE_FILE_EXTENSIONS['map'](_0x2e9d3c=>''+_0x52c2fc+_0x2e9d3c),...SOURCE_FILE_EXTENSIONS[_0x68a0f1(0xfc)](_0x4d215c=>resolve(_0x52c2fc,_0x68a0f1(0xe2)+_0x4d215c))];const _0x224167=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x549523];if(!_0x224167)return[_0x52c2fc];const _0x540fe2=_0x52c2fc['slice'](0x0,-_0x549523[_0x68a0f1(0xfb)]);return[..._0x224167[_0x68a0f1(0xfc)](_0x1b4b18=>''+_0x540fe2+_0x1b4b18),_0x52c2fc];}function resolveLocalReexport(_0x1ab732,_0x289693,_0x30ec75){const _0x24bc1d=a271_0x334f50;if(!_0x289693[_0x24bc1d(0x100)]('./')&&!_0x289693['startsWith'](_0x24bc1d(0xf3)))return undefined;const _0x512cc4=resolve(dirname(_0x1ab732),_0x289693);if(!isWithinRoot(_0x30ec75,_0x512cc4))return undefined;for(const _0x513286 of reexportCandidatePaths(_0x512cc4)){const _0x6982e1=resolveExistingFile(_0x513286);if(_0x6982e1&&isWithinRoot(_0x30ec75,_0x6982e1))return _0x6982e1;}return undefined;}function parseApiFileTree(_0x10da5f,_0x1a67ff,_0x22950a,_0x2051e4){const _0x4cc39c=a271_0x334f50,_0x4c073c=resolveExistingFile(_0x10da5f);if(!_0x4c073c)return[];const _0x2c7b01=_0x22950a[_0x4cc39c(0x103)](_0x4c073c);if(_0x2c7b01!==undefined&&_0x2c7b01<=_0x2051e4)return[];_0x22950a['set'](_0x4c073c,_0x2051e4);const _0x1650b1=readFileSync(_0x4c073c,_0x4cc39c(0xec)),_0x2dd53a=parseApiFile(_0x1650b1);if(_0x2051e4>=MAX_LOCAL_REEXPORT_DEPTH)return _0x2dd53a;const _0x15b98c=new RegExp(LOCAL_REEXPORT_RE[_0x4cc39c(0xf9)],LOCAL_REEXPORT_RE[_0x4cc39c(0xf0)]);let _0x59dca4;while((_0x59dca4=_0x15b98c[_0x4cc39c(0xea)](_0x1650b1))!==null){const _0xb56aa5=resolveLocalReexport(_0x4c073c,_0x59dca4[0x1],_0x1a67ff);_0xb56aa5&&_0x2dd53a[_0x4cc39c(0x101)](...parseApiFileTree(_0xb56aa5,_0x1a67ff,_0x22950a,_0x2051e4+0x1));}return _0x2dd53a;}function aliasProjectRoot(_0x57f682){const _0x26247f=findProjectRootDirectory(dirname(_0x57f682));try{return realpathSync(_0x26247f);}catch{return _0x26247f;}}function uniqueAliasEntries(_0x215222){const _0x3e2e2c=a271_0x334f50,_0x2c1399=new Set();return _0x215222[_0x3e2e2c(0xdd)](_0x4ea6eb=>{const _0xef4fae=_0x3e2e2c,_0x5e5ce5=JSON[_0xef4fae(0x106)](_0x4ea6eb);if(_0x2c1399[_0xef4fae(0xe6)](_0x5e5ce5))return![];return _0x2c1399[_0xef4fae(0xdf)](_0x5e5ce5),!![];});}export function loadAliasMap(_0x409aa2,_0x88c52b,_0x6a9a6b,_0x27bb1f){const _0x122b41=a271_0x334f50,_0x507826=resolve(_0x6a9a6b??resolve(process[_0x122b41(0xf2)](),_0x409aa2,_0x122b41(0xfa))),_0x215ab3=_0x27bb1f?_0x507826+'#'+_0x27bb1f:_0x507826;if(cache[_0x122b41(0xe6)](_0x215ab3))return cache[_0x122b41(0x103)](_0x215ab3);if(!existsSync(_0x507826))return cache[_0x122b41(0xfe)](_0x215ab3,[]),[];try{if(_0x507826[_0x122b41(0x107)](MODEL_REGISTRY_FILE_NAME)){const _0x1760f5=readModelRegistry(_0x507826),_0x41cb41=_0x27bb1f??_0x1760f5?.[_0x122b41(0xeb)],_0xe0ff1a=_0x41cb41&&_0x1760f5?getProfileModels(_0x1760f5,_0x41cb41):[],_0x302d80=uniqueAliasEntries(_0xe0ff1a['flatMap'](_0x5b82d8=>_0x5b82d8[_0x122b41(0xfd)]?[{'alias':_0x5b82d8['alias'],'datasetCode':_0x5b82d8[_0x122b41(0x105)],'tableName':_0x5b82d8[_0x122b41(0xf5)],'name':_0x5b82d8[_0x122b41(0xe7)]}]:[]));return cache[_0x122b41(0xfe)](_0x215ab3,_0x302d80),_0x302d80;}const _0x1d5abf=uniqueAliasEntries(parseApiFileTree(_0x507826,aliasProjectRoot(_0x507826),new Map(),0x0));return cache[_0x122b41(0xfe)](_0x215ab3,_0x1d5abf),_0x1d5abf;}catch{return cache[_0x122b41(0xfe)](_0x215ab3,[]),[];}}export function resolveAlias(_0x4364c6,_0xccdc54,_0x450ab1,_0x170b8,_0x4054a1){const _0x50dfcf=a271_0x334f50;if(!_0xccdc54)return undefined;const _0x38c55c=loadAliasMap(_0x4364c6,_0x450ab1,_0x170b8,_0x4054a1),_0x25905a=new Set(_0x38c55c[_0x50dfcf(0xdd)](_0x2c96af=>_0x2c96af[_0x50dfcf(0xfd)]===_0xccdc54)[_0x50dfcf(0xfc)](_0x261392=>_0x261392[_0x50dfcf(0x105)]));return _0x25905a[_0x50dfcf(0xee)]===0x1?[..._0x25905a][0x0]:undefined;}export function listAliases(_0x2320aa,_0x36d4c1,_0x16a6aa,_0x28cf08){return loadAliasMap(_0x2320aa,_0x36d4c1,_0x16a6aa,_0x28cf08);}
@@ -57,6 +57,8 @@ export declare function recognizeDevelopmentOcr(appCode: string, input: {
57
57
  }): Promise<DevelopmentOcrResponse>;
58
58
  export declare const DING_TALK_SANDBOX_BIND_PATH = "/smartapi/user-accounts/cli/dingding-sandbox/bind";
59
59
  export declare function bindDingTalkSandboxAccount(dingTalkUserId: string): Promise<boolean>;
60
+ export declare const FEISHU_BIND_PATH = "/smartapi/user-accounts/cli/feishu/bind";
61
+ export declare function bindFeishuAccount(openId: string): Promise<boolean>;
60
62
  export interface PlatformFetchOptions {
61
63
  method?: "GET" | "POST";
62
64
  body?: Record<string, any>;