@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.4

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 (393) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.d.ts +22 -0
  3. package/lib/api/api-group.js +1 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +18 -2
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/api/generate-sdk-config-file.js +1 -1
  8. package/lib/api/legacy-api-file.d.ts +11 -0
  9. package/lib/api/legacy-api-file.js +1 -0
  10. package/lib/api/model-registry-file.d.ts +36 -0
  11. package/lib/api/model-registry-file.js +1 -0
  12. package/lib/api/model-registry-scaffold.d.ts +7 -0
  13. package/lib/api/model-registry-scaffold.js +1 -0
  14. package/lib/api/model-source.d.ts +6 -0
  15. package/lib/api/model-source.js +1 -0
  16. package/lib/auth/auth-server-ui.js +1 -1
  17. package/lib/auth/auth-server.js +1 -1
  18. package/lib/auth/constant.js +1 -1
  19. package/lib/auth/get-cookie.js +1 -1
  20. package/lib/auth/get-session-user.js +1 -1
  21. package/lib/auth/is-session-valid.js +1 -1
  22. package/lib/auth/login-success-html.js +1 -1
  23. package/lib/auth/logout.js +1 -1
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.js +1 -1
  26. package/lib/commands/api/generate.js +1 -1
  27. package/lib/commands/api/index.js +1 -1
  28. package/lib/commands/api/list.js +1 -1
  29. package/lib/commands/api/pull.js +1 -1
  30. package/lib/commands/api/shared.js +1 -1
  31. package/lib/commands/app/index.js +1 -1
  32. package/lib/commands/app/list.js +1 -1
  33. package/lib/commands/app/members-list.js +1 -1
  34. package/lib/commands/app/remote-directory.js +1 -1
  35. package/lib/commands/app/shared.js +1 -1
  36. package/lib/commands/app-config/delete.js +1 -1
  37. package/lib/commands/app-config/get.js +1 -1
  38. package/lib/commands/app-config/index.js +1 -1
  39. package/lib/commands/app-config/list.js +1 -1
  40. package/lib/commands/app-config/set.js +1 -1
  41. package/lib/commands/app-config/shared.js +1 -1
  42. package/lib/commands/auth/index.js +1 -1
  43. package/lib/commands/bff/create.js +1 -1
  44. package/lib/commands/bff/delete.js +1 -1
  45. package/lib/commands/bff/detail.js +1 -1
  46. package/lib/commands/bff/index.js +1 -1
  47. package/lib/commands/bff/list.js +1 -1
  48. package/lib/commands/bff/logs.js +1 -1
  49. package/lib/commands/bff/pull.js +1 -1
  50. package/lib/commands/bff/push.js +1 -1
  51. package/lib/commands/bff/status.js +1 -1
  52. package/lib/commands/cli-skill/index.js +1 -1
  53. package/lib/commands/cli-update.js +1 -1
  54. package/lib/commands/codegen/index.js +1 -1
  55. package/lib/commands/codegen/sdk.js +1 -1
  56. package/lib/commands/codegen/sql.js +1 -1
  57. package/lib/commands/common/app-registry.js +1 -1
  58. package/lib/commands/common/app-selector.js +1 -1
  59. package/lib/commands/common/async-task.js +1 -1
  60. package/lib/commands/common/dry-run.js +1 -1
  61. package/lib/commands/common/flags.d.ts +7 -0
  62. package/lib/commands/common/flags.js +1 -1
  63. package/lib/commands/common/local-file.js +1 -1
  64. package/lib/commands/common/validate.js +1 -1
  65. package/lib/commands/config/delete.js +1 -1
  66. package/lib/commands/config/get.js +1 -1
  67. package/lib/commands/config/index.js +1 -1
  68. package/lib/commands/config/init.js +1 -1
  69. package/lib/commands/config/list.js +1 -1
  70. package/lib/commands/config/set.js +1 -1
  71. package/lib/commands/config/shared.js +1 -1
  72. package/lib/commands/dataset/batch-design.js +1 -1
  73. package/lib/commands/dataset/business-group-update.js +1 -1
  74. package/lib/commands/dataset/business-groups.js +1 -1
  75. package/lib/commands/dataset/capability.js +1 -1
  76. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  77. package/lib/commands/dataset/cross-relation-create.js +1 -0
  78. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  80. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-list.js +1 -0
  82. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  83. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  84. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  85. package/lib/commands/dataset/cross-relation-update.js +1 -0
  86. package/lib/commands/dataset/delete.js +1 -1
  87. package/lib/commands/dataset/detail.js +1 -1
  88. package/lib/commands/dataset/extend-update.js +1 -1
  89. package/lib/commands/dataset/field-restore.js +1 -1
  90. package/lib/commands/dataset/field-update.js +1 -1
  91. package/lib/commands/dataset/generate.js +1 -1
  92. package/lib/commands/dataset/index.js +1 -1
  93. package/lib/commands/dataset/list.js +1 -1
  94. package/lib/commands/dataset/operations.js +1 -1
  95. package/lib/commands/dataset/relation-audit.js +1 -1
  96. package/lib/commands/dataset/relation-create.js +1 -1
  97. package/lib/commands/dataset/relation-delete.js +1 -1
  98. package/lib/commands/dataset/relation-shared.js +1 -1
  99. package/lib/commands/dataset/relation-update.js +1 -1
  100. package/lib/commands/dataset/relations.js +1 -1
  101. package/lib/commands/dataset/rename.js +1 -1
  102. package/lib/commands/dataset/restore.js +1 -1
  103. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  104. package/lib/commands/db/analysis-batching.js +1 -1
  105. package/lib/commands/db/analyze-batch-plan.js +1 -1
  106. package/lib/commands/db/analyze-cancel.js +1 -1
  107. package/lib/commands/db/analyze-start.js +1 -1
  108. package/lib/commands/db/analyze-status.js +1 -1
  109. package/lib/commands/db/create.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/service.js +1 -1
  183. package/lib/commands/menu/shared/sync-core.js +1 -1
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/sync.js +1 -1
  187. package/lib/commands/menu/visibility-update.js +1 -1
  188. package/lib/commands/notification/config-create.js +1 -1
  189. package/lib/commands/notification/config-delete.js +1 -1
  190. package/lib/commands/notification/config-list.js +1 -1
  191. package/lib/commands/notification/config-update.js +1 -1
  192. package/lib/commands/notification/index.js +1 -1
  193. package/lib/commands/notification/shared.js +1 -1
  194. package/lib/commands/ocr/index.js +1 -1
  195. package/lib/commands/page/create.js +1 -1
  196. package/lib/commands/page/custom/detail.js +1 -1
  197. package/lib/commands/page/custom/list.js +1 -1
  198. package/lib/commands/page/custom/publish.js +1 -1
  199. package/lib/commands/page/custom/shared.js +1 -1
  200. package/lib/commands/page/custom/syntax.js +1 -1
  201. package/lib/commands/page/custom/update.js +1 -1
  202. package/lib/commands/page/data-list-status.js +1 -1
  203. package/lib/commands/page/generate-start.js +1 -1
  204. package/lib/commands/page/generate-status.js +1 -1
  205. package/lib/commands/page/index.js +1 -1
  206. package/lib/commands/page/pull.js +1 -1
  207. package/lib/commands/page/push.js +1 -1
  208. package/lib/commands/page/relation-audit.js +1 -1
  209. package/lib/commands/page/restore.js +1 -1
  210. package/lib/commands/page/shared.js +1 -1
  211. package/lib/commands/page/sync.js +1 -1
  212. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  213. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  214. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  215. package/lib/commands/project/create/format-elapsed.js +1 -1
  216. package/lib/commands/project/create/main.js +1 -1
  217. package/lib/commands/project/create/materialize-project-template.js +1 -1
  218. package/lib/commands/project/create/project-name.js +1 -1
  219. package/lib/commands/project/create/project-template-archive.js +1 -1
  220. package/lib/commands/project/create/project-template-path.js +1 -1
  221. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  222. package/lib/commands/project/create/use-format-code.js +1 -1
  223. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  224. package/lib/commands/project/domain-routing-sync.js +1 -1
  225. package/lib/commands/project/index.js +1 -1
  226. package/lib/commands/project/upgrade.d.ts +30 -1
  227. package/lib/commands/project/upgrade.js +1 -1
  228. package/lib/commands/registry.js +1 -1
  229. package/lib/commands/role/delete.js +1 -1
  230. package/lib/commands/role/detail.js +1 -1
  231. package/lib/commands/role/index.js +1 -1
  232. package/lib/commands/role/list.js +1 -1
  233. package/lib/commands/role/shared.js +1 -1
  234. package/lib/commands/role/update.js +1 -1
  235. package/lib/commands/role/user-add.js +1 -1
  236. package/lib/commands/role/user-remove.js +1 -1
  237. package/lib/commands/role/user-resolve.js +1 -1
  238. package/lib/commands/rule/get.js +1 -1
  239. package/lib/commands/rule/index.js +1 -1
  240. package/lib/commands/rule/list.js +1 -1
  241. package/lib/commands/rule/set.js +1 -1
  242. package/lib/commands/rule/shared.js +1 -1
  243. package/lib/commands/run/index.js +1 -1
  244. package/lib/commands/schema.js +1 -1
  245. package/lib/commands/sql/create.js +1 -1
  246. package/lib/commands/sql/delete.js +1 -1
  247. package/lib/commands/sql/detail.js +1 -1
  248. package/lib/commands/sql/exec.js +1 -1
  249. package/lib/commands/sql/index.js +1 -1
  250. package/lib/commands/sql/list.js +1 -1
  251. package/lib/commands/sql/pull.js +1 -1
  252. package/lib/commands/sql/push.js +1 -1
  253. package/lib/commands/sql/shared.js +1 -1
  254. package/lib/commands/sql/status.js +1 -1
  255. package/lib/commands/sql/validate.js +1 -1
  256. package/lib/commands/task/index.js +1 -1
  257. package/lib/commands/task/status.js +1 -1
  258. package/lib/commands/tenant/index.js +1 -1
  259. package/lib/commands/tenant/members-list.js +1 -1
  260. package/lib/commands/tenant/shared.js +1 -1
  261. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  262. package/lib/commands/user-account/index.js +1 -1
  263. package/lib/commands/workspace/add.js +1 -1
  264. package/lib/commands/workspace/index.js +1 -1
  265. package/lib/commands/workspace/remove.js +1 -1
  266. package/lib/config/domain-config.js +1 -1
  267. package/lib/config/project-domain-routing.js +1 -1
  268. package/lib/config/region-config.js +1 -1
  269. package/lib/config/schema.js +1 -1
  270. package/lib/constant/cdn.d.ts +5 -3
  271. package/lib/constant/cdn.js +1 -1
  272. package/lib/constant/cli.js +1 -1
  273. package/lib/constant/defaults.js +1 -1
  274. package/lib/constant/domain.js +1 -1
  275. package/lib/constant/env.js +1 -1
  276. package/lib/constant/output.js +1 -1
  277. package/lib/constant/paths.js +1 -1
  278. package/lib/constant/region.js +1 -1
  279. package/lib/constant/risk.js +1 -1
  280. package/lib/constant/routing-profile.js +1 -1
  281. package/lib/context/app-resolver.d.ts +2 -0
  282. package/lib/context/app-resolver.js +1 -1
  283. package/lib/context/auth-resolver.js +1 -1
  284. package/lib/context/config-loader.js +1 -1
  285. package/lib/context.d.ts +2 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.d.ts +13 -17
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.d.ts +6 -0
  290. package/lib/core/api-client.js +1 -1
  291. package/lib/core/bff/config.js +1 -1
  292. package/lib/core/bff/file-system.js +1 -1
  293. package/lib/core/bff/hash.js +1 -1
  294. package/lib/core/bff/hook-directory.js +1 -1
  295. package/lib/core/bff/lock.js +1 -1
  296. package/lib/core/bff/utils.js +1 -1
  297. package/lib/core/cross-db-relation.d.ts +41 -0
  298. package/lib/core/cross-db-relation.js +1 -0
  299. package/lib/core/db-resolver.js +1 -1
  300. package/lib/core/flow-config.js +1 -1
  301. package/lib/core/instant-api-policy/config.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.d.ts +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.js +1 -1
  332. package/lib/generated/routing-contract.js +1 -1
  333. package/lib/help.js +1 -1
  334. package/lib/postinstall.js +1 -1
  335. package/lib/runtime/confirmation.js +1 -1
  336. package/lib/runtime/event.js +1 -1
  337. package/lib/runtime/index.js +1 -1
  338. package/lib/runtime/queue.js +1 -1
  339. package/lib/runtime/resolve.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.d.ts +0 -10
  343. package/lib/skills/npx-skills-add.js +1 -1
  344. package/lib/skills/skill-presence.js +1 -1
  345. package/lib/telemetry/cli-command-trace.js +1 -1
  346. package/lib/telemetry/cli-help-trace.js +1 -1
  347. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  348. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  349. package/lib/telemetry/send-cli-trace-log.js +1 -1
  350. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  351. package/lib/types/index.d.ts +11 -1
  352. package/lib/utils/ai_config.js +1 -1
  353. package/lib/utils/apply-jq-filter.js +1 -1
  354. package/lib/utils/cdn-config.js +1 -1
  355. package/lib/utils/check-sdk-version.js +1 -1
  356. package/lib/utils/cli-version-check.js +1 -1
  357. package/lib/utils/cli-version-policy.d.ts +19 -0
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +6 -1
  375. package/skills/rabetbase/SKILL.md +16 -10
  376. package/skills/rabetbase/guides/backend-function.md +5 -1
  377. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  378. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  379. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  380. package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
  381. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  382. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  383. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  384. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  385. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  386. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +64 -0
  387. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  388. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  389. package/skills/rabetbase.manifest.json +5 -3
  390. package/templates/README.md +46 -6
  391. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  392. package/templates/generate-api/profile-api.ts.tpl +21 -0
  393. package/templates/generate-api/profile-client.ts.tpl +14 -0
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a258_0x25662d=a258_0x5880;(function(_0x126891,_0x1e5eeb){const _0x653858=a258_0x5880,_0x215d23=_0x126891();while(!![]){try{const _0x261382=parseInt(_0x653858(0x1a7))/0x1+parseInt(_0x653858(0x1aa))/0x2*(parseInt(_0x653858(0x1ae))/0x3)+-parseInt(_0x653858(0x18b))/0x4+parseInt(_0x653858(0x1ba))/0x5+-parseInt(_0x653858(0x190))/0x6*(-parseInt(_0x653858(0x1ad))/0x7)+-parseInt(_0x653858(0x1b3))/0x8*(parseInt(_0x653858(0x1a8))/0x9)+parseInt(_0x653858(0x1a3))/0xa*(-parseInt(_0x653858(0x189))/0xb);if(_0x261382===_0x1e5eeb)break;else _0x215d23['push'](_0x215d23['shift']());}catch(_0x363c54){_0x215d23['push'](_0x215d23['shift']());}}}(a258_0x458c,0xc893d));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';function a258_0x458c(){const _0x592ac9=['392904iDChHB','userDomain','cwd','regionSource','production','raw','app','1243060FcDbCi','targetEnv','project\x20Rabetbase\x20configuration','appDomain','template_base_url','length','certificateDomain','name','defaultApp','keys','object','setLogPath','string','appcode','cookie','argv','skillDomain','domains','api.ts','slice','env','globalConfig','routing','Rabetbase\x20configuration','skillHubDomain','global\x20Rabetbase\x20configuration','values','11tDxjxx','hasOwnProperty','664276llTzmC','join','https://g.lovrabet.com/dist/lovrabet-skill','agentDomain','runtimeDomain','79626dsNOlK','currentApp','source','prototype','projectConfig','doctor','apiDir','region','apps','project','trim','./constant/domain.js','merged','platformDomain','localDomain','kbDomain','app\x20profile\x20\x22','daily','global','16183190FEQRXL','configuredRegion','./constant/env.js','regionLocation','1495965AQvEJh','117ZMorAb','./utils/is-non-interactive.js','10WooRDI','find','replace','420zQjCEI','422151hQrfbH','entries','call','apiDomain','setRawCommand'];a258_0x458c=function(){return _0x592ac9;};return a258_0x458c();}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';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x256ba7){return process.env[`RABETBASE_${_0x256ba7}`]||process.env[`LOVRABET_${_0x256ba7}`]||undefined;}function optionalString(_0x56bba7){const _0x2f39c4=a258_0x5880;return typeof _0x56bba7===_0x2f39c4(0x17a)&&_0x56bba7[_0x2f39c4(0x19a)]()?_0x56bba7['trim']():undefined;}export function isRoutingRecoveryService(_0x84b1cf){const _0xbfa591=a258_0x5880;return _0x84b1cf==='config'||_0x84b1cf===_0xbfa591(0x195);}export async function createContext(_0x273bec){const _0x221583=a258_0x5880,{config:_0x56bd69,layers:_0x19a853}=readRawConfigWithLayers(),_0x3a2fe8=buildConfig(_0x56bd69,_0x273bec,_0x19a853);await initGlobalEnvironment(_0x3a2fe8);const {getUserDomain:_0xd89414,getApiDomain:_0x51bf0a}=await import(_0x221583(0x19b)),_0x464589={'apiDomain':_0x51bf0a(),'userDomain':_0xd89414()},_0x1ee919=await buildAuth(_0x3a2fe8);logger[_0x221583(0x1c5)](process[_0x221583(0x1b5)]());const _0x3471b0=(CLI_BIN_NAME+'\x20'+process[_0x221583(0x17d)][_0x221583(0x181)](0x2)[_0x221583(0x18c)]('\x20'))['trim']();logger[_0x221583(0x1b2)](_0x3471b0);const {isNonInteractive:_0x405e2a}=await import(_0x221583(0x1a9)),_0x6b63ee=_0x405e2a(_0x273bec);return{'config':_0x3a2fe8,'auth':_0x1ee919,'logger':logger,'env':_0x464589,'nonInteractive':_0x6b63ee};}export function buildConfigFromFlags(_0x56215a){const {config:_0x57fdec,layers:_0x5b46ea}=readRawConfigWithLayers();return buildConfig(_0x57fdec,_0x56215a,_0x5b46ea);}export async function initGlobalEnvironment(_0x3ee606){const _0x2a0b78=a258_0x5880,_0x57ebac=_0x3ee606[_0x2a0b78(0x1b6)]===_0x2a0b78(0x1b9)&&_0x3ee606[_0x2a0b78(0x191)]?'app\x20profile\x20\x22'+_0x3ee606[_0x2a0b78(0x191)]+'\x22':_0x3ee606['regionSource']==='project'?_0x2a0b78(0x1bc):_0x3ee606[_0x2a0b78(0x1b6)]===_0x2a0b78(0x1a2)?_0x2a0b78(0x187):_0x2a0b78(0x185);await initConfiguredEnvironment({'raw':_0x3ee606[_0x2a0b78(0x1b8)],'configuredRegion':_0x3ee606['regionConfiguredValue']??_0x3ee606[_0x2a0b78(0x1b8)]?.[_0x2a0b78(0x197)]??_0x3ee606['region'],'regionLocation':_0x57ebac,'targetEnv':_0x3ee606[_0x2a0b78(0x182)]});}async function initConfiguredEnvironment(_0x5c8846){const _0x2f92d2=a258_0x5880,_0xfbb48e=resolveConfiguredRegion(_0x5c8846[_0x2f92d2(0x1a4)],_0x5c8846[_0x2f92d2(0x1a6)]),_0x25f1fb=resolveEnterpriseRoutingManifest(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x184)]),_0x2d4a25={'region':_0xfbb48e,'apiDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)]['apiDomain']:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x1b1)]),'userDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)]['userDomain']:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x1b4)]),'runtimeDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)][_0x2f92d2(0x18f)]:optionalString(_0x5c8846['raw']?.[_0x2f92d2(0x18f)]),'skillDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)][_0x2f92d2(0x17e)]:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.['skillDomain'])||optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x186)])||optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.['agentDomain'])||optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x19d)]),'kbDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)]['kbDomain']:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.['kbDomain'])||optionalString(_0x5c8846['raw']?.['agentDomain'])||optionalString(_0x5c8846['raw']?.[_0x2f92d2(0x19d)]),'appDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)][_0x2f92d2(0x1bd)]:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.['appDomain']),'localDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)][_0x2f92d2(0x19e)]:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x19e)]),'certificateDomain':_0x25f1fb?_0x25f1fb[_0x2f92d2(0x17f)][_0x2f92d2(0x1c0)]:optionalString(_0x5c8846[_0x2f92d2(0x1b8)]?.[_0x2f92d2(0x1c0)]),'cdn':_0x25f1fb?.['cdn']},{initEnv:_0x4a7395}=await import(_0x2f92d2(0x1a5)),{initDomains:_0x58d6c1}=await import(_0x2f92d2(0x19b));_0x4a7395(_0x5c8846[_0x2f92d2(0x1bb)]),_0x58d6c1(_0x2d4a25);}export async function initMultiAppEnvironment(_0x1032d0){const _0x2da189=a258_0x5880;await initConfiguredEnvironment({'raw':_0x1032d0['routingConfig'],'configuredRegion':_0x1032d0[_0x2da189(0x197)],'regionLocation':_0x2da189(0x1a0)+_0x1032d0[_0x2da189(0x1c1)]+'\x22','targetEnv':_0x1032d0[_0x2da189(0x182)]===_0x2da189(0x1a1)?_0x2da189(0x1a1):_0x2da189(0x1b7)});}export function getConfigAppCode(_0x4b1700){const _0x58e9f3=a258_0x5880,_0xe34182=readRawConfig(_0x4b1700);if(_0xe34182[_0x58e9f3(0x198)]&&typeof _0xe34182[_0x58e9f3(0x198)]==='object'){const _0xca3443=_0xe34182[_0x58e9f3(0x1c2)];if(_0xca3443)return _0xe34182['apps'][_0xca3443]?.[_0x58e9f3(0x17b)]?String(_0xe34182[_0x58e9f3(0x198)][_0xca3443][_0x58e9f3(0x17b)])[_0x58e9f3(0x19a)]():undefined;const _0x310250=Object[_0x58e9f3(0x188)](_0xe34182[_0x58e9f3(0x198)]);if(_0x310250[_0x58e9f3(0x1bf)]===0x1&&_0x310250[0x0]?.['appcode'])return String(_0x310250[0x0][_0x58e9f3(0x17b)])[_0x58e9f3(0x19a)]();}const _0x364975=_0xe34182[_0x58e9f3(0x17b)]||_0xe34182[_0x58e9f3(0x1b9)];if(typeof _0x364975!==_0x58e9f3(0x17a)||_0x364975['trim']()==='')return undefined;return _0x364975['trim']();}const CONNECTION_ROUTING_KEYS=['routing',a258_0x25662d(0x1b1),a258_0x25662d(0x1b4),a258_0x25662d(0x18f),a258_0x25662d(0x17e),a258_0x25662d(0x186),a258_0x25662d(0x19f),a258_0x25662d(0x18e),a258_0x25662d(0x19d),a258_0x25662d(0x1bd),a258_0x25662d(0x19e),'certificateDomain'];function pickConnectionRoutingConfig(_0x5de954,_0x253766){const _0x338d09={'region':_0x253766};for(const _0x567be1 of CONNECTION_ROUTING_KEYS){if(_0x5de954[_0x567be1]!==undefined)_0x338d09[_0x567be1]=_0x5de954[_0x567be1];}return _0x338d09;}function a258_0x5880(_0x172188,_0x39f28e){_0x172188=_0x172188-0x17a;const _0x458cac=a258_0x458c();let _0x588085=_0x458cac[_0x172188];return _0x588085;}export function getMultiAppConfigs(_0x346114=a258_0x25662d(0x199),_0x34d603){const _0x4823f2=a258_0x25662d,_0x49a70c=loadRawConfigLayers(_0x34d603);let _0x542932,_0x2933bf;const _0x133c8e=mergeRawConfigLayers(_0x49a70c),_0x31b090=_0x49a70c[_0x4823f2(0x183)][_0x4823f2(0x198)]&&typeof _0x49a70c['globalConfig'][_0x4823f2(0x198)]==='object'?_0x49a70c[_0x4823f2(0x183)][_0x4823f2(0x198)]:{},_0x12476f=_0x49a70c[_0x4823f2(0x194)][_0x4823f2(0x198)]&&typeof _0x49a70c['projectConfig'][_0x4823f2(0x198)]===_0x4823f2(0x1c4)?_0x49a70c[_0x4823f2(0x194)][_0x4823f2(0x198)]:{};_0x346114===_0x4823f2(0x19c)?(_0x542932={..._0x31b090,..._0x12476f},_0x2933bf=_0x133c8e[_0x4823f2(0x1c2)]):(_0x542932=_0x49a70c[_0x4823f2(0x194)][_0x4823f2(0x198)],_0x2933bf=_0x49a70c[_0x4823f2(0x194)][_0x4823f2(0x1c2)]);!_0x2933bf&&_0x542932&&typeof _0x542932===_0x4823f2(0x1c4)&&Object[_0x4823f2(0x1c3)](_0x542932)[_0x4823f2(0x1bf)]===0x1&&(_0x2933bf=Object[_0x4823f2(0x1c3)](_0x542932)[0x0]);if(!_0x542932||typeof _0x542932!==_0x4823f2(0x1c4)||Object[_0x4823f2(0x1c3)](_0x542932)[_0x4823f2(0x1bf)]===0x0)return null;return Object[_0x4823f2(0x1af)](_0x542932)['map'](([_0x46dccb,_0x50e4ca])=>{const _0x74720f=_0x4823f2,_0x2027f=_0x346114===_0x74720f(0x199)||Object[_0x74720f(0x193)][_0x74720f(0x18a)][_0x74720f(0x1b0)](_0x12476f,_0x46dccb),_0x14bc2b=_0x2027f?_0x133c8e:_0x49a70c['globalConfig'],_0x3f60fa=resolveEffectiveRegion({'appRegion':_0x50e4ca?.['region'],'projectRegion':_0x2027f?_0x49a70c[_0x74720f(0x194)][_0x74720f(0x197)]:undefined,'globalRegion':_0x49a70c[_0x74720f(0x183)][_0x74720f(0x197)],'mergedRegion':_0x14bc2b[_0x74720f(0x197)],'appName':_0x46dccb});return{'name':_0x46dccb,'appcode':_0x50e4ca?.[_0x74720f(0x17b)]||'','isDefault':_0x46dccb===_0x2933bf,'region':_0x3f60fa[_0x74720f(0x197)],'regionSource':_0x3f60fa[_0x74720f(0x192)],'env':_0x50e4ca?.[_0x74720f(0x182)],'apiDir':_0x50e4ca?.[_0x74720f(0x196)],'cookie':_0x50e4ca?.[_0x74720f(0x17c)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x14bc2b,_0x3f60fa['region'])};})['filter'](_0x4d5558=>_0x4d5558[_0x4823f2(0x17b)]);}export function getTemplateBaseUrl(_0x378306){const _0xd073c7=a258_0x25662d,_0x45fa33=readRawConfig(_0x378306);if(_0x45fa33[_0xd073c7(0x1be)]&&typeof _0x45fa33[_0xd073c7(0x1be)]==='string')return _0x45fa33[_0xd073c7(0x1be)][_0xd073c7(0x1ac)](/\/$/,'');return _0xd073c7(0x18d);}function buildConfig(_0x5a356d,_0x1bfa8a,_0x535c5f){return{...resolveAppConfig({'raw':_0x5a356d,'flags':_0x1bfa8a,'layers':_0x535c5f,'readEnv':env}),'raw':_0x5a356d};}export function resolveApiFilePath(_0x576fc8,_0x2c21ea){const _0x44c2a1=a258_0x25662d,_0x35ae75=resolve(process[_0x44c2a1(0x1b5)](),_0x576fc8),_0x4cc349=resolve(_0x35ae75,_0x44c2a1(0x180));if(!_0x2c21ea)return _0x4cc349;const _0x41fa34=readRawConfig(),_0x502d71=_0x41fa34['apps']&&typeof _0x41fa34[_0x44c2a1(0x198)]===_0x44c2a1(0x1c4)?_0x41fa34[_0x44c2a1(0x198)]:{},_0x2bdcf0=Object[_0x44c2a1(0x1af)](_0x502d71)[_0x44c2a1(0x1ab)](([,_0x53cc9b])=>_0x53cc9b?.[_0x44c2a1(0x17b)]===_0x2c21ea);if(!_0x2bdcf0)return _0x4cc349;const [_0x41b36a,_0x3c661e]=_0x2bdcf0,_0x4087ea=typeof _0x41fa34[_0x44c2a1(0x1c2)]==='string'?_0x41fa34[_0x44c2a1(0x1c2)]:undefined;if(_0x3c661e?.['apiDir'])return _0x4cc349;if(_0x4087ea&&_0x41b36a!==_0x4087ea)return resolve(_0x35ae75,_0x41b36a+'-api.ts');return _0x4cc349;}
1
+ function a269_0x2264(){const _0x44ed3c=['7268952zCRZxT','kbDomain','name','slice','routingConfig','./utils/is-non-interactive.js','apps','values','string','apiDir','107705pehagX','trim','apiGroup','skillHubDomain','length','project','cdn','appDomain','./constant/domain.js','certificateDomain','platformDomain','apiDomain','global\x20Rabetbase\x20configuration','272850NdCMTZ','keys','doctor','map','object','globalConfig','skillDomain','regionSource','env','app','filter','./constant/env.js','region','612LsYkGY','cookie','agentDomain','runtimeDomain','merged','join','defaultApp','domains','project\x20Rabetbase\x20configuration','configuredRegion','filePath','projectConfig','userDomain','setLogPath','raw','appcode','382518sbnTcH','12EzQEuc','3072678ixzHep','production','hasOwnProperty','4941702yMMOSn','replace','Rabetbase\x20configuration','call','source','setRawCommand','localDomain','2031zmAvfK','entries'];a269_0x2264=function(){return _0x44ed3c;};return a269_0x2264();}const a269_0x191503=a269_0x5014;(function(_0x132bb1,_0x1cf7df){const _0x1ec712=a269_0x5014,_0x205f3b=_0x132bb1();while(!![]){try{const _0x109e08=parseInt(_0x1ec712(0xa6))/0x1+-parseInt(_0x1ec712(0x89))/0x2+-parseInt(_0x1ec712(0xb2))/0x3*(-parseInt(_0x1ec712(0x96))/0x4)+-parseInt(_0x1ec712(0xbe))/0x5*(-parseInt(_0x1ec712(0xa7))/0x6)+parseInt(_0x1ec712(0xa8))/0x7+-parseInt(_0x1ec712(0xb4))/0x8+parseInt(_0x1ec712(0xab))/0x9;if(_0x109e08===_0x1cf7df)break;else _0x205f3b['push'](_0x205f3b['shift']());}catch(_0x4d3e84){_0x205f3b['push'](_0x205f3b['shift']());}}}(a269_0x2264,0x73469));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(_0x28c4de){return process.env[`RABETBASE_${_0x28c4de}`]||process.env[`LOVRABET_${_0x28c4de}`]||undefined;}function optionalString(_0x309147){const _0x3bd9d0=a269_0x5014;return typeof _0x309147===_0x3bd9d0(0xbc)&&_0x309147[_0x3bd9d0(0xbf)]()?_0x309147[_0x3bd9d0(0xbf)]():undefined;}export function isRoutingRecoveryService(_0x1042e5){const _0x3fc863=a269_0x5014;return _0x1042e5==='config'||_0x1042e5===_0x3fc863(0x8b);}export async function createContext(_0x1905ee){const _0x55df5e=a269_0x5014,{config:_0x5bc3c3,layers:_0xbd0a54}=readRawConfigWithLayers(),_0xb2ecd9=buildConfig(_0x5bc3c3,_0x1905ee,_0xbd0a54);await initGlobalEnvironment(_0xb2ecd9);const {getUserDomain:_0x1bda17,getApiDomain:_0x1b390f}=await import(_0x55df5e(0xc6)),_0x52a339={'apiDomain':_0x1b390f(),'userDomain':_0x1bda17()},_0x3e4d7e=await buildAuth(_0xb2ecd9);logger[_0x55df5e(0xa3)](process['cwd']());const _0x3cff74=(CLI_BIN_NAME+'\x20'+process['argv'][_0x55df5e(0xb7)](0x2)[_0x55df5e(0x9b)]('\x20'))['trim']();logger[_0x55df5e(0xb0)](_0x3cff74);const {isNonInteractive:_0x2d477b}=await import(_0x55df5e(0xb9)),_0x54fb5f=_0x2d477b(_0x1905ee);return{'config':_0xb2ecd9,'auth':_0x3e4d7e,'logger':logger,'env':_0x52a339,'nonInteractive':_0x54fb5f};}export function buildConfigFromFlags(_0x152775){const {config:_0x3fda32,layers:_0x2cc5b1}=readRawConfigWithLayers();return buildConfig(_0x3fda32,_0x152775,_0x2cc5b1);}export async function initGlobalEnvironment(_0x3735bc){const _0x115377=a269_0x5014,_0x51851e=_0x3735bc['regionSource']==='app'&&_0x3735bc['currentApp']?'app\x20profile\x20\x22'+_0x3735bc['currentApp']+'\x22':_0x3735bc['regionSource']===_0x115377(0xc3)?_0x115377(0x9e):_0x3735bc[_0x115377(0x90)]==='global'?_0x115377(0x88):_0x115377(0xad);await initConfiguredEnvironment({'raw':_0x3735bc[_0x115377(0xa4)],'configuredRegion':_0x3735bc['regionConfiguredValue']??_0x3735bc['raw']?.[_0x115377(0x95)]??_0x3735bc[_0x115377(0x95)],'regionLocation':_0x51851e,'targetEnv':_0x3735bc['env']});}async function initConfiguredEnvironment(_0xe42a2b){const _0x1fd923=a269_0x5014,_0x4252b9=resolveConfiguredRegion(_0xe42a2b[_0x1fd923(0x9f)],_0xe42a2b['regionLocation']),_0x9f7621=resolveEnterpriseRoutingManifest(_0xe42a2b[_0x1fd923(0xa4)]?.['routing']),_0x3fc60e={'region':_0x4252b9,'apiDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0x87)]:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0x87)]),'userDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0xa2)]:optionalString(_0xe42a2b['raw']?.[_0x1fd923(0xa2)]),'runtimeDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)]['runtimeDomain']:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.['runtimeDomain']),'skillDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)]['skillDomain']:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0x8f)])||optionalString(_0xe42a2b['raw']?.[_0x1fd923(0xc1)])||optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.['agentDomain'])||optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0x86)]),'kbDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0xb5)]:optionalString(_0xe42a2b['raw']?.[_0x1fd923(0xb5)])||optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0x98)])||optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0x86)]),'appDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0xc5)]:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0xc5)]),'localDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0xb1)]:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.['localDomain']),'certificateDomain':_0x9f7621?_0x9f7621[_0x1fd923(0x9d)][_0x1fd923(0xc7)]:optionalString(_0xe42a2b[_0x1fd923(0xa4)]?.[_0x1fd923(0xc7)]),'cdn':_0x9f7621?.[_0x1fd923(0xc4)]},{initEnv:_0x346d5d}=await import(_0x1fd923(0x94)),{initDomains:_0x3f36a8}=await import(_0x1fd923(0xc6));_0x346d5d(_0xe42a2b['targetEnv']),_0x3f36a8(_0x3fc60e);}export async function initMultiAppEnvironment(_0x54491a){const _0x234e03=a269_0x5014;await initConfiguredEnvironment({'raw':_0x54491a[_0x234e03(0xb8)],'configuredRegion':_0x54491a[_0x234e03(0x95)],'regionLocation':'app\x20profile\x20\x22'+_0x54491a[_0x234e03(0xb6)]+'\x22','targetEnv':_0x54491a[_0x234e03(0x91)]==='daily'?'daily':_0x234e03(0xa9)});}function a269_0x5014(_0x4f2843,_0x943475){_0x4f2843=_0x4f2843-0x86;const _0x2264d6=a269_0x2264();let _0x501416=_0x2264d6[_0x4f2843];return _0x501416;}export function getConfigAppCode(_0x317099){const _0x4c4e87=a269_0x5014,_0x5d3590=readRawConfig(_0x317099);if(_0x5d3590[_0x4c4e87(0xba)]&&typeof _0x5d3590[_0x4c4e87(0xba)]===_0x4c4e87(0x8d)){const _0x29e984=_0x5d3590[_0x4c4e87(0x9c)];if(_0x29e984)return _0x5d3590['apps'][_0x29e984]?.['appcode']?String(_0x5d3590[_0x4c4e87(0xba)][_0x29e984]['appcode'])['trim']():undefined;const _0x5ac4ed=Object[_0x4c4e87(0xbb)](_0x5d3590[_0x4c4e87(0xba)]);if(_0x5ac4ed[_0x4c4e87(0xc2)]===0x1&&_0x5ac4ed[0x0]?.[_0x4c4e87(0xa5)])return String(_0x5ac4ed[0x0][_0x4c4e87(0xa5)])[_0x4c4e87(0xbf)]();}const _0x2aefde=_0x5d3590['appcode']||_0x5d3590[_0x4c4e87(0x92)];if(typeof _0x2aefde!==_0x4c4e87(0xbc)||_0x2aefde[_0x4c4e87(0xbf)]()==='')return undefined;return _0x2aefde[_0x4c4e87(0xbf)]();}const CONNECTION_ROUTING_KEYS=['routing',a269_0x191503(0x87),a269_0x191503(0xa2),a269_0x191503(0x99),'skillDomain','skillHubDomain',a269_0x191503(0xb5),'agentDomain',a269_0x191503(0x86),a269_0x191503(0xc5),a269_0x191503(0xb1),'certificateDomain'];function pickConnectionRoutingConfig(_0x56d0ba,_0x36810b){const _0x322824={'region':_0x36810b};for(const _0xcef6c9 of CONNECTION_ROUTING_KEYS){if(_0x56d0ba[_0xcef6c9]!==undefined)_0x322824[_0xcef6c9]=_0x56d0ba[_0xcef6c9];}return _0x322824;}export function getMultiAppConfigs(_0x26b556='project',_0x4db8fa){const _0x2ebd9f=a269_0x191503,_0x588f94=loadRawConfigLayers(_0x4db8fa);let _0x295a8a,_0x303e92;const _0x576019=mergeRawConfigLayers(_0x588f94),_0x33bcd4=_0x588f94[_0x2ebd9f(0x8e)][_0x2ebd9f(0xba)]&&typeof _0x588f94[_0x2ebd9f(0x8e)]['apps']===_0x2ebd9f(0x8d)?_0x588f94[_0x2ebd9f(0x8e)][_0x2ebd9f(0xba)]:{},_0x15e6a8=_0x588f94[_0x2ebd9f(0xa1)][_0x2ebd9f(0xba)]&&typeof _0x588f94[_0x2ebd9f(0xa1)]['apps']===_0x2ebd9f(0x8d)?_0x588f94[_0x2ebd9f(0xa1)]['apps']:{};_0x26b556===_0x2ebd9f(0x9a)?(_0x295a8a={..._0x33bcd4,..._0x15e6a8},_0x303e92=_0x576019[_0x2ebd9f(0x9c)]):(_0x295a8a=_0x588f94['projectConfig'][_0x2ebd9f(0xba)],_0x303e92=_0x588f94[_0x2ebd9f(0xa1)][_0x2ebd9f(0x9c)]);!_0x303e92&&_0x295a8a&&typeof _0x295a8a===_0x2ebd9f(0x8d)&&Object['keys'](_0x295a8a)[_0x2ebd9f(0xc2)]===0x1&&(_0x303e92=Object['keys'](_0x295a8a)[0x0]);if(!_0x295a8a||typeof _0x295a8a!==_0x2ebd9f(0x8d)||Object[_0x2ebd9f(0x8a)](_0x295a8a)[_0x2ebd9f(0xc2)]===0x0)return null;return Object[_0x2ebd9f(0xb3)](_0x295a8a)[_0x2ebd9f(0x8c)](([_0x1d9bca,_0x127d4f])=>{const _0x534e26=_0x2ebd9f,_0x48f25d=_0x26b556===_0x534e26(0xc3)||Object['prototype'][_0x534e26(0xaa)][_0x534e26(0xae)](_0x15e6a8,_0x1d9bca),_0x446097=_0x48f25d?_0x576019:_0x588f94[_0x534e26(0x8e)],_0x1a95ab=resolveEffectiveRegion({'appRegion':_0x127d4f?.[_0x534e26(0x95)],'projectRegion':_0x48f25d?_0x588f94[_0x534e26(0xa1)]['region']:undefined,'globalRegion':_0x588f94[_0x534e26(0x8e)][_0x534e26(0x95)],'mergedRegion':_0x446097[_0x534e26(0x95)],'appName':_0x1d9bca});return{'name':_0x1d9bca,'appcode':_0x127d4f?.[_0x534e26(0xa5)]||'','apiGroup':optionalString(_0x127d4f?.[_0x534e26(0xc0)]),'isDefault':_0x1d9bca===_0x303e92,'region':_0x1a95ab['region'],'regionSource':_0x1a95ab[_0x534e26(0xaf)],'env':_0x127d4f?.['env'],'apiDir':optionalString(_0x127d4f?.['apiDir'])||optionalString(_0x446097[_0x534e26(0xbd)]),'cookie':_0x127d4f?.[_0x534e26(0x97)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x446097,_0x1a95ab[_0x534e26(0x95)])};})[_0x2ebd9f(0x93)](_0x41ce4c=>_0x41ce4c[_0x2ebd9f(0xa5)]);}export function getTemplateBaseUrl(_0x14034d){const _0x12f6fa=a269_0x191503,_0x1fa6a7=readRawConfig(_0x14034d);if(_0x1fa6a7['template_base_url']&&typeof _0x1fa6a7['template_base_url']===_0x12f6fa(0xbc))return _0x1fa6a7['template_base_url'][_0x12f6fa(0xac)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x3a1834,_0x3d8669,_0x27fa58){return{...resolveAppConfig({'raw':_0x3a1834,'flags':_0x3d8669,'layers':_0x27fa58,'readEnv':env}),'raw':_0x3a1834};}export function resolveApiFilePath(_0xb7b04c,_0x16a2f0,_0x33a8fb){const _0x3c0af5=a269_0x191503;return resolveApiModelSource(_0xb7b04c,_0x16a2f0,_0x33a8fb)[_0x3c0af5(0xa0)];}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * 通用数据集别名解析层
3
3
  *
4
- * 从 `rabetbase api pull` 生成的 api.ts 中提取 alias → datasetCode 映射。
5
- * --alias 参数接受 api.ts 中定义的 alias 名称,解析为对应的 datasetCode。
4
+ * 从 `rabetbase api pull` 生成的模型注册表或旧式 api.ts 中提取 alias → datasetCode 映射。
5
+ * --alias 参数接受生成模型中定义的 alias 名称,解析为对应的 datasetCode。
6
6
  *
7
- * 无 api.ts 时(CI 环境未 pull)返回 undefined,由调用方报错。
7
+ * 无生成模型事实时(CI 环境未 pull)返回 undefined,由调用方报错。
8
8
  */
9
9
  export interface AliasEntry {
10
10
  alias: string;
@@ -13,19 +13,15 @@ export interface AliasEntry {
13
13
  name: string;
14
14
  }
15
15
  /**
16
- * 加载并缓存指定 api 文件的别名映射。
16
+ * 加载并缓存指定模型事实文件的别名映射。
17
17
  *
18
- * @param apiDir api 目录(用于默认路径兜底)
19
- * @param appCode (已废弃,保留签名兼容)不再用于内部路径解析
20
- * @param resolvedFilePath 已解析好的 api.ts 绝对/相对路径;
21
- * 多应用场景由调用方通过 resolveApiFilePath() 传入
18
+ * @param apiDir api 目录(用于默认路径兜底)
19
+ * @param appCode (已废弃,保留签名兼容)不再用于内部路径解析
20
+ * @param resolvedFilePath 已解析好的模型注册表或兼容 api.ts 路径
21
+ * @param profileName 模型注册表中的目标 profile
22
22
  */
23
- export declare function loadAliasMap(apiDir: string, appCode?: string, resolvedFilePath?: string): AliasEntry[];
24
- /**
25
- * 通过 alias 名称解析 datasetCode。
26
- */
27
- export declare function resolveAlias(apiDir: string, alias: string, appCode?: string, resolvedFilePath?: string): string | undefined;
28
- /**
29
- * 列出所有可用的别名(用于 help、补全、错误提示等场景)
30
- */
31
- export declare function listAliases(apiDir: string, appCode?: string, resolvedFilePath?: string): AliasEntry[];
23
+ export declare function loadAliasMap(apiDir: string, appCode?: string, resolvedFilePath?: string, profileName?: string): AliasEntry[];
24
+ /** 通过 alias 名称解析 datasetCode。 */
25
+ export declare function resolveAlias(apiDir: string, alias: string, appCode?: string, resolvedFilePath?: string, profileName?: string): string | undefined;
26
+ /** 列出所有可用的别名(用于 help、补全、错误提示等场景)。 */
27
+ export declare function listAliases(apiDir: string, appCode?: string, resolvedFilePath?: string, profileName?: string): AliasEntry[];
@@ -1 +1 @@
1
- const a259_0x20d828=a259_0x133e;(function(_0x32a7cf,_0x410820){const _0x13b34b=a259_0x133e,_0xb30680=_0x32a7cf();while(!![]){try{const _0x594ebd=-parseInt(_0x13b34b(0x78))/0x1*(parseInt(_0x13b34b(0x72))/0x2)+-parseInt(_0x13b34b(0x83))/0x3*(-parseInt(_0x13b34b(0x8d))/0x4)+parseInt(_0x13b34b(0x76))/0x5+-parseInt(_0x13b34b(0x7e))/0x6*(parseInt(_0x13b34b(0x8a))/0x7)+parseInt(_0x13b34b(0x7b))/0x8+-parseInt(_0x13b34b(0x86))/0x9*(-parseInt(_0x13b34b(0x77))/0xa)+-parseInt(_0x13b34b(0x75))/0xb;if(_0x594ebd===_0x410820)break;else _0xb30680['push'](_0xb30680['shift']());}catch(_0x47b1f6){_0xb30680['push'](_0xb30680['shift']());}}}(a259_0x2daa,0x84cc1));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a259_0x20d828(0x71),a259_0x20d828(0x85),a259_0x20d828(0x7d),a259_0x20d828(0x7a),a259_0x20d828(0x88),a259_0x20d828(0x73),a259_0x20d828(0x74),a259_0x20d828(0x6c)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a259_0x20d828(0x71),a259_0x20d828(0x85)],'.jsx':['.tsx'],'.mjs':['.mts'],'.cjs':[a259_0x20d828(0x7a)]};function parseApiFile(_0x27992d){const _0x48ecdf=a259_0x20d828,_0x396de9=[],_0x280860=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4b7f79;while((_0x4b7f79=_0x280860[_0x48ecdf(0x82)](_0x27992d))!==null){_0x396de9[_0x48ecdf(0x81)]({'datasetCode':_0x4b7f79[0x1],'tableName':_0x4b7f79[0x2],'name':_0x4b7f79[0x3],'alias':_0x4b7f79[0x4]});}return _0x396de9;}function isWithinRoot(_0x4eb188,_0x25fdf0){const _0x4036d6=a259_0x20d828,_0x131dfc=relative(_0x4eb188,_0x25fdf0);return _0x131dfc===''||!_0x131dfc[_0x4036d6(0x7c)]('..')&&!isAbsolute(_0x131dfc);}function resolveExistingFile(_0x4e3bb7){const _0x36ab39=a259_0x20d828;if(!existsSync(_0x4e3bb7))return undefined;try{return statSync(_0x4e3bb7)[_0x36ab39(0x80)]()?realpathSync(_0x4e3bb7):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x108ec0){const _0x1d4f75=a259_0x20d828,_0x49d3d7=extname(_0x108ec0);if(!_0x49d3d7)return[...SOURCE_FILE_EXTENSIONS[_0x1d4f75(0x6e)](_0x490b81=>''+_0x108ec0+_0x490b81),...SOURCE_FILE_EXTENSIONS['map'](_0x54ccd5=>resolve(_0x108ec0,'index'+_0x54ccd5))];const _0x5d009b=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x49d3d7];if(!_0x5d009b)return[_0x108ec0];const _0x5144bf=_0x108ec0[_0x1d4f75(0x8b)](0x0,-_0x49d3d7[_0x1d4f75(0x8f)]);return[..._0x5d009b[_0x1d4f75(0x6e)](_0x550bb9=>''+_0x5144bf+_0x550bb9),_0x108ec0];}function resolveLocalReexport(_0x56c2f7,_0x52bc57,_0x3c3928){const _0x57a0ff=a259_0x20d828;if(!_0x52bc57['startsWith']('./')&&!_0x52bc57[_0x57a0ff(0x7c)](_0x57a0ff(0x87)))return undefined;const _0xc5ec6b=resolve(dirname(_0x56c2f7),_0x52bc57);if(!isWithinRoot(_0x3c3928,_0xc5ec6b))return undefined;for(const _0x4cb472 of reexportCandidatePaths(_0xc5ec6b)){const _0x21425e=resolveExistingFile(_0x4cb472);if(_0x21425e&&isWithinRoot(_0x3c3928,_0x21425e))return _0x21425e;}return undefined;}function parseApiFileTree(_0x347653,_0x309b59,_0x12ccc7,_0x107375){const _0x58e83c=a259_0x20d828,_0x4afe21=resolveExistingFile(_0x347653);if(!_0x4afe21)return[];const _0x2a4f83=_0x12ccc7[_0x58e83c(0x89)](_0x4afe21);if(_0x2a4f83!==undefined&&_0x2a4f83<=_0x107375)return[];_0x12ccc7[_0x58e83c(0x8e)](_0x4afe21,_0x107375);const _0x36b0e0=readFileSync(_0x4afe21,'utf-8'),_0x384a9b=parseApiFile(_0x36b0e0);if(_0x107375>=MAX_LOCAL_REEXPORT_DEPTH)return _0x384a9b;const _0x46c587=new RegExp(LOCAL_REEXPORT_RE[_0x58e83c(0x6a)],LOCAL_REEXPORT_RE[_0x58e83c(0x7f)]);let _0x27bde6;while((_0x27bde6=_0x46c587[_0x58e83c(0x82)](_0x36b0e0))!==null){const _0x3893e0=resolveLocalReexport(_0x4afe21,_0x27bde6[0x1],_0x309b59);_0x3893e0&&_0x384a9b[_0x58e83c(0x81)](...parseApiFileTree(_0x3893e0,_0x309b59,_0x12ccc7,_0x107375+0x1));}return _0x384a9b;}function aliasProjectRoot(_0x100718){const _0x3c4950=findProjectRootDirectory(dirname(_0x100718));try{return realpathSync(_0x3c4950);}catch{return _0x3c4950;}}function a259_0x2daa(){const _0x1d75e8=['api.ts','.tsx','568638zUnWve','../','.js','get','70odcZWz','slice','stringify','4pgvANt','set','length','has','source','add','.cjs','cwd','map','datasetCode','alias','.ts','5164cxeAAG','.jsx','.mjs','14433716LdTsSq','4414040sQeHpZ','10uPeEKP','39nnCEcr','size','.cts','4866776WzGgdz','startsWith','.mts','323832iqOiHb','flags','isFile','push','exec','2826522OUiBnn'];a259_0x2daa=function(){return _0x1d75e8;};return a259_0x2daa();}function uniqueAliasEntries(_0x1ccbb7){const _0x5d4c13=new Set();return _0x1ccbb7['filter'](_0x27e79a=>{const _0x47b63c=a259_0x133e,_0x45cff5=JSON[_0x47b63c(0x8c)](_0x27e79a);if(_0x5d4c13[_0x47b63c(0x90)](_0x45cff5))return![];return _0x5d4c13[_0x47b63c(0x6b)](_0x45cff5),!![];});}export function loadAliasMap(_0x39520e,_0x2d0043,_0x565462){const _0x5c9448=a259_0x20d828,_0x1ec09e=resolve(_0x565462??resolve(process[_0x5c9448(0x6d)](),_0x39520e,_0x5c9448(0x84)));if(cache[_0x5c9448(0x90)](_0x1ec09e))return cache[_0x5c9448(0x89)](_0x1ec09e);if(!existsSync(_0x1ec09e))return cache[_0x5c9448(0x8e)](_0x1ec09e,[]),[];try{const _0x38a259=uniqueAliasEntries(parseApiFileTree(_0x1ec09e,aliasProjectRoot(_0x1ec09e),new Map(),0x0));return cache[_0x5c9448(0x8e)](_0x1ec09e,_0x38a259),_0x38a259;}catch{return cache['set'](_0x1ec09e,[]),[];}}export function resolveAlias(_0x50bcbe,_0x1fb8b7,_0x82d6c1,_0x1146e3){const _0x3abf14=a259_0x20d828;if(!_0x1fb8b7)return undefined;const _0x269b6e=loadAliasMap(_0x50bcbe,_0x82d6c1,_0x1146e3),_0x15bc2e=new Set(_0x269b6e['filter'](_0x569706=>_0x569706[_0x3abf14(0x70)]===_0x1fb8b7)['map'](_0x3b44a6=>_0x3b44a6[_0x3abf14(0x6f)]));return _0x15bc2e[_0x3abf14(0x79)]===0x1?[..._0x15bc2e][0x0]:undefined;}function a259_0x133e(_0x1bf9d6,_0x2ff35f){_0x1bf9d6=_0x1bf9d6-0x6a;const _0x2daabe=a259_0x2daa();let _0x133ee0=_0x2daabe[_0x1bf9d6];return _0x133ee0;}export function listAliases(_0x3291ff,_0x416e9c,_0x5254e8){return loadAliasMap(_0x3291ff,_0x416e9c,_0x5254e8);}
1
+ const a270_0x259b4f=a270_0x405a;(function(_0x120f3d,_0x4fc4d4){const _0x18f65d=a270_0x405a,_0xe782fe=_0x120f3d();while(!![]){try{const _0xc19872=-parseInt(_0x18f65d(0x118))/0x1*(parseInt(_0x18f65d(0x106))/0x2)+-parseInt(_0x18f65d(0x109))/0x3+-parseInt(_0x18f65d(0xf9))/0x4+-parseInt(_0x18f65d(0x107))/0x5*(parseInt(_0x18f65d(0xf8))/0x6)+-parseInt(_0x18f65d(0x114))/0x7+parseInt(_0x18f65d(0x11d))/0x8*(-parseInt(_0x18f65d(0xf5))/0x9)+parseInt(_0x18f65d(0x10d))/0xa;if(_0xc19872===_0x4fc4d4)break;else _0xe782fe['push'](_0xe782fe['shift']());}catch(_0x511d19){_0xe782fe['push'](_0xe782fe['shift']());}}}(a270_0x3804,0xbc215));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_0x259b4f(0x11a),a270_0x259b4f(0x11c),a270_0x259b4f(0x113),'.cts',a270_0x259b4f(0x11e),a270_0x259b4f(0x10c),a270_0x259b4f(0xfa),a270_0x259b4f(0x10b)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts',a270_0x259b4f(0x11c)],'.jsx':[a270_0x259b4f(0x11c)],'.mjs':['.mts'],'.cjs':[a270_0x259b4f(0x10a)]};function parseApiFile(_0x16e36f){const _0x8d9d05=a270_0x259b4f;return parseLegacyApiModels(_0x16e36f)[_0x8d9d05(0x116)](_0x58c5fb=>_0x58c5fb[_0x8d9d05(0x10e)]?[{'alias':_0x58c5fb[_0x8d9d05(0x10e)],'datasetCode':_0x58c5fb[_0x8d9d05(0xf7)],'tableName':_0x58c5fb[_0x8d9d05(0x110)],'name':_0x58c5fb[_0x8d9d05(0xfe)]}]:[]);}function a270_0x405a(_0x3d1d8f,_0x1fcfbb){_0x3d1d8f=_0x3d1d8f-0xf5;const _0x38047f=a270_0x3804();let _0x405ad1=_0x38047f[_0x3d1d8f];return _0x405ad1;}function isWithinRoot(_0x15a4b5,_0x511f27){const _0x3d22a2=a270_0x259b4f,_0x3238f6=relative(_0x15a4b5,_0x511f27);return _0x3238f6===''||!_0x3238f6[_0x3d22a2(0x105)]('..')&&!isAbsolute(_0x3238f6);}function resolveExistingFile(_0x49783d){const _0x53803c=a270_0x259b4f;if(!existsSync(_0x49783d))return undefined;try{return statSync(_0x49783d)[_0x53803c(0x117)]()?realpathSync(_0x49783d):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x1b1061){const _0x42fe69=a270_0x259b4f,_0x57ecc1=extname(_0x1b1061);if(!_0x57ecc1)return[...SOURCE_FILE_EXTENSIONS[_0x42fe69(0xfc)](_0x3049c6=>''+_0x1b1061+_0x3049c6),...SOURCE_FILE_EXTENSIONS['map'](_0xbe28a6=>resolve(_0x1b1061,_0x42fe69(0xfb)+_0xbe28a6))];const _0x2232c8=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x57ecc1];if(!_0x2232c8)return[_0x1b1061];const _0x257d12=_0x1b1061['slice'](0x0,-_0x57ecc1[_0x42fe69(0x104)]);return[..._0x2232c8[_0x42fe69(0xfc)](_0x2437dc=>''+_0x257d12+_0x2437dc),_0x1b1061];}function resolveLocalReexport(_0x437006,_0x3457b9,_0x3f8449){const _0x4b5ff4=a270_0x259b4f;if(!_0x3457b9[_0x4b5ff4(0x105)]('./')&&!_0x3457b9[_0x4b5ff4(0x105)](_0x4b5ff4(0x100)))return undefined;const _0x28064f=resolve(dirname(_0x437006),_0x3457b9);if(!isWithinRoot(_0x3f8449,_0x28064f))return undefined;for(const _0x21c0ba of reexportCandidatePaths(_0x28064f)){const _0x1c98c5=resolveExistingFile(_0x21c0ba);if(_0x1c98c5&&isWithinRoot(_0x3f8449,_0x1c98c5))return _0x1c98c5;}return undefined;}function parseApiFileTree(_0x130af4,_0x5d0238,_0x5badde,_0x745994){const _0x53801e=a270_0x259b4f,_0xba4b03=resolveExistingFile(_0x130af4);if(!_0xba4b03)return[];const _0x336d9d=_0x5badde[_0x53801e(0xfd)](_0xba4b03);if(_0x336d9d!==undefined&&_0x336d9d<=_0x745994)return[];_0x5badde[_0x53801e(0x108)](_0xba4b03,_0x745994);const _0x5f4d4b=readFileSync(_0xba4b03,_0x53801e(0x115)),_0x12661d=parseApiFile(_0x5f4d4b);if(_0x745994>=MAX_LOCAL_REEXPORT_DEPTH)return _0x12661d;const _0x1c1d53=new RegExp(LOCAL_REEXPORT_RE[_0x53801e(0x10f)],LOCAL_REEXPORT_RE[_0x53801e(0x11b)]);let _0x9e331a;while((_0x9e331a=_0x1c1d53[_0x53801e(0xf6)](_0x5f4d4b))!==null){const _0x42714f=resolveLocalReexport(_0xba4b03,_0x9e331a[0x1],_0x5d0238);_0x42714f&&_0x12661d[_0x53801e(0x101)](...parseApiFileTree(_0x42714f,_0x5d0238,_0x5badde,_0x745994+0x1));}return _0x12661d;}function aliasProjectRoot(_0x32860f){const _0x14263e=findProjectRootDirectory(dirname(_0x32860f));try{return realpathSync(_0x14263e);}catch{return _0x14263e;}}function uniqueAliasEntries(_0x4dc889){const _0x9e36b=new Set();return _0x4dc889['filter'](_0x2715c6=>{const _0x36ba3e=a270_0x405a,_0x24043f=JSON['stringify'](_0x2715c6);if(_0x9e36b[_0x36ba3e(0xff)](_0x24043f))return![];return _0x9e36b[_0x36ba3e(0x111)](_0x24043f),!![];});}export function loadAliasMap(_0x261aa2,_0x25ca9f,_0x14d3b0,_0x68a8cf){const _0x175e18=a270_0x259b4f,_0x2efee6=resolve(_0x14d3b0??resolve(process[_0x175e18(0x103)](),_0x261aa2,_0x175e18(0x102))),_0x36bfb2=_0x68a8cf?_0x2efee6+'#'+_0x68a8cf:_0x2efee6;if(cache['has'](_0x36bfb2))return cache[_0x175e18(0xfd)](_0x36bfb2);if(!existsSync(_0x2efee6))return cache[_0x175e18(0x108)](_0x36bfb2,[]),[];try{if(_0x2efee6[_0x175e18(0x119)](MODEL_REGISTRY_FILE_NAME)){const _0x3475b2=readModelRegistry(_0x2efee6),_0x386671=_0x68a8cf??_0x3475b2?.['defaultProfile'],_0x56b9ef=_0x386671&&_0x3475b2?getProfileModels(_0x3475b2,_0x386671):[],_0x4331ee=uniqueAliasEntries(_0x56b9ef['flatMap'](_0x7dfd82=>_0x7dfd82[_0x175e18(0x10e)]?[{'alias':_0x7dfd82[_0x175e18(0x10e)],'datasetCode':_0x7dfd82[_0x175e18(0xf7)],'tableName':_0x7dfd82['tableName'],'name':_0x7dfd82[_0x175e18(0xfe)]}]:[]));return cache[_0x175e18(0x108)](_0x36bfb2,_0x4331ee),_0x4331ee;}const _0x5b0326=uniqueAliasEntries(parseApiFileTree(_0x2efee6,aliasProjectRoot(_0x2efee6),new Map(),0x0));return cache['set'](_0x36bfb2,_0x5b0326),_0x5b0326;}catch{return cache[_0x175e18(0x108)](_0x36bfb2,[]),[];}}function a270_0x3804(){const _0x1b5778=['.ts','flags','.tsx','520VbwEyl','.js','91503dmMdpR','exec','datasetCode','30vXzuEt','4151540gcojWU','.mjs','index','map','get','name','has','../','push','api.ts','cwd','length','startsWith','2534078CtqXdu','1319345qAfxFl','set','2908647yRpBej','.cts','.cjs','.jsx','61385080dSwvxl','alias','source','tableName','add','size','.mts','792778NkaWjU','utf-8','flatMap','isFile','1qLGidC','endsWith'];a270_0x3804=function(){return _0x1b5778;};return a270_0x3804();}export function resolveAlias(_0x42eaf1,_0x225e29,_0x4fa35f,_0x13309c,_0x1b21ba){const _0x2fa975=a270_0x259b4f;if(!_0x225e29)return undefined;const _0x295810=loadAliasMap(_0x42eaf1,_0x4fa35f,_0x13309c,_0x1b21ba),_0x266c0b=new Set(_0x295810['filter'](_0xc9e33c=>_0xc9e33c[_0x2fa975(0x10e)]===_0x225e29)[_0x2fa975(0xfc)](_0x81fe6c=>_0x81fe6c['datasetCode']));return _0x266c0b[_0x2fa975(0x112)]===0x1?[..._0x266c0b][0x0]:undefined;}export function listAliases(_0x14700c,_0x3bdac9,_0xa44f8e,_0x109243){return loadAliasMap(_0x14700c,_0x3bdac9,_0xa44f8e,_0x109243);}
@@ -5,6 +5,7 @@
5
5
  * 统一认证、超时、错误处理;命令层通过导出函数调用。
6
6
  */
7
7
  import type { Paging } from "../framework/response.js";
8
+ import { type CrossDbRelationDetail, type CrossDbRelationMutation, type CrossDbRelationQuery, type CrossDbRelationSource } from "../core/cross-db-relation.js";
8
9
  import type { FetchDocOptions, FetchModelListResult } from "../types/index.js";
9
10
  export declare function setActiveCookie(cookie: string): void;
10
11
  export declare function clearActiveCookie(): void;
@@ -966,6 +967,11 @@ export interface ErBusinessGroupSummary {
966
967
  }
967
968
  export declare function getErRelationDetail(appCode: string, relationId: number): Promise<ErRelationDetail | null>;
968
969
  export declare function createErRelation(payload: ErRelationMutationPayload): Promise<boolean>;
970
+ /** Cookie-authenticated POST query. Reject incomplete facts rather than treating them as absence. */
971
+ export declare function queryCrossDbRelations(payload: CrossDbRelationQuery): Promise<CrossDbRelationDetail[]>;
972
+ export declare function createCrossDbRelation(payload: Omit<CrossDbRelationMutation, "fromDblinkId">): Promise<true>;
973
+ export declare function updateCrossDbRelation(payload: CrossDbRelationMutation): Promise<true>;
974
+ export declare function deleteCrossDbRelation(payload: CrossDbRelationSource): Promise<true>;
969
975
  export declare function updateErRelation(payload: ErRelationMutationPayload): Promise<boolean>;
970
976
  export declare function deleteErRelation(payload: ErRelationDeletePayload): Promise<boolean>;
971
977
  export declare function updateErBusinessGroup(payload: ErBusinessGroupUpdatePayload): Promise<boolean>;