@lovrabet/rabetbase-cli 2.5.4-beta.4 → 2.5.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 (388) hide show
  1. package/README.md +8 -2
  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/detail.d.ts +2 -0
  27. package/lib/commands/app/detail.js +1 -0
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/detail.js +1 -1
  79. package/lib/commands/dataset/extend-update.js +1 -1
  80. package/lib/commands/dataset/field-restore.js +1 -1
  81. package/lib/commands/dataset/field-update.js +1 -1
  82. package/lib/commands/dataset/generate.js +1 -1
  83. package/lib/commands/dataset/index.js +1 -1
  84. package/lib/commands/dataset/list.js +1 -1
  85. package/lib/commands/dataset/operations.js +1 -1
  86. package/lib/commands/dataset/relation-audit.js +1 -1
  87. package/lib/commands/dataset/relation-create.js +1 -1
  88. package/lib/commands/dataset/relation-delete.js +1 -1
  89. package/lib/commands/dataset/relation-shared.js +1 -1
  90. package/lib/commands/dataset/relation-update.js +1 -1
  91. package/lib/commands/dataset/relations.js +1 -1
  92. package/lib/commands/dataset/rename.js +1 -1
  93. package/lib/commands/dataset/restore.js +1 -1
  94. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  95. package/lib/commands/db/analysis-batching.js +1 -1
  96. package/lib/commands/db/analyze-batch-plan.js +1 -1
  97. package/lib/commands/db/analyze-cancel.js +1 -1
  98. package/lib/commands/db/analyze-start.js +1 -1
  99. package/lib/commands/db/analyze-status.js +1 -1
  100. package/lib/commands/db/create.js +1 -1
  101. package/lib/commands/db/delete.js +1 -1
  102. package/lib/commands/db/detail.js +1 -1
  103. package/lib/commands/db/diff-refresh-start.js +1 -1
  104. package/lib/commands/db/diff-refresh-status.js +1 -1
  105. package/lib/commands/db/diff.js +1 -1
  106. package/lib/commands/db/index.js +1 -1
  107. package/lib/commands/db/list.js +1 -1
  108. package/lib/commands/db/shared.js +1 -1
  109. package/lib/commands/db/table-diff-shared.js +1 -1
  110. package/lib/commands/db/tables.js +1 -1
  111. package/lib/commands/db/test.js +1 -1
  112. package/lib/commands/db/update.js +1 -1
  113. package/lib/commands/deployment/index.js +1 -1
  114. package/lib/commands/deployment/sync-all.js +1 -1
  115. package/lib/commands/deployment/sync-jobs.js +1 -1
  116. package/lib/commands/deployment/sync-status.js +1 -1
  117. package/lib/commands/doctor.js +1 -1
  118. package/lib/commands/file/index.js +1 -1
  119. package/lib/commands/flow/create.js +1 -1
  120. package/lib/commands/flow/detail.js +1 -1
  121. package/lib/commands/flow/index.js +1 -1
  122. package/lib/commands/flow/list.js +1 -1
  123. package/lib/commands/flow/publish.js +1 -1
  124. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  125. package/lib/commands/flow/runtime-role-list.js +1 -1
  126. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  127. package/lib/commands/flow/runtime-user-search.js +1 -1
  128. package/lib/commands/flow/shared.js +1 -1
  129. package/lib/commands/flow/update.js +1 -1
  130. package/lib/commands/flow/validate.js +1 -1
  131. package/lib/commands/instant-api-policy/current.js +1 -1
  132. package/lib/commands/instant-api-policy/index.js +1 -1
  133. package/lib/commands/instant-api-policy/init.js +1 -1
  134. package/lib/commands/instant-api-policy/publish.js +1 -1
  135. package/lib/commands/instant-api-policy/pull.js +1 -1
  136. package/lib/commands/instant-api-policy/revision.js +1 -1
  137. package/lib/commands/instant-api-policy/revisions.js +1 -1
  138. package/lib/commands/instant-api-policy/rollback.js +1 -1
  139. package/lib/commands/instant-api-policy/shared.js +1 -1
  140. package/lib/commands/instant-api-policy/validate.js +1 -1
  141. package/lib/commands/issue/index.js +1 -1
  142. package/lib/commands/issue/nudge.js +1 -1
  143. package/lib/commands/issue/report.js +1 -1
  144. package/lib/commands/issue/shared.js +1 -1
  145. package/lib/commands/kb/create.js +1 -1
  146. package/lib/commands/kb/delete.js +1 -1
  147. package/lib/commands/kb/detail.js +1 -1
  148. package/lib/commands/kb/index.js +1 -1
  149. package/lib/commands/kb/list.js +1 -1
  150. package/lib/commands/kb/search.js +1 -1
  151. package/lib/commands/kb/shared.js +1 -1
  152. package/lib/commands/kb/update.js +1 -1
  153. package/lib/commands/logs/index.js +1 -1
  154. package/lib/commands/menu/asset-update.js +1 -1
  155. package/lib/commands/menu/delete.js +1 -1
  156. package/lib/commands/menu/external-link-create.js +1 -1
  157. package/lib/commands/menu/external-link-update.js +1 -1
  158. package/lib/commands/menu/group-create.js +1 -1
  159. package/lib/commands/menu/group-update.js +1 -1
  160. package/lib/commands/menu/index.js +1 -1
  161. package/lib/commands/menu/list.js +1 -1
  162. package/lib/commands/menu/move.js +1 -1
  163. package/lib/commands/menu/regroup-start.js +1 -1
  164. package/lib/commands/menu/rename.js +1 -1
  165. package/lib/commands/menu/shared/compare-table.js +1 -1
  166. package/lib/commands/menu/shared/delete-plan.js +1 -1
  167. package/lib/commands/menu/shared/facts.js +1 -1
  168. package/lib/commands/menu/shared/index.js +1 -1
  169. package/lib/commands/menu/shared/inquirer.js +1 -1
  170. package/lib/commands/menu/shared/local-pages.d.ts +1 -1
  171. package/lib/commands/menu/shared/local-pages.js +1 -1
  172. package/lib/commands/menu/shared/logic.d.ts +3 -1
  173. package/lib/commands/menu/shared/logic.js +1 -1
  174. package/lib/commands/menu/shared/mutations.js +1 -1
  175. package/lib/commands/menu/shared/path.d.ts +2 -0
  176. package/lib/commands/menu/shared/path.js +1 -0
  177. package/lib/commands/menu/shared/service.d.ts +6 -1
  178. package/lib/commands/menu/shared/service.js +1 -1
  179. package/lib/commands/menu/shared/subapp-assets.d.ts +28 -0
  180. package/lib/commands/menu/shared/subapp-assets.js +1 -0
  181. package/lib/commands/menu/shared/sync-core.d.ts +2 -1
  182. package/lib/commands/menu/shared/sync-core.js +1 -1
  183. package/lib/commands/menu/shared/types.d.ts +14 -4
  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/subapp-assets-status.d.ts +2 -0
  187. package/lib/commands/menu/subapp-assets-status.js +1 -0
  188. package/lib/commands/menu/subapp-assets-update.d.ts +2 -0
  189. package/lib/commands/menu/subapp-assets-update.js +1 -0
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.d.ts +15 -0
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/skills/builtin-skill.js +1 -1
  338. package/lib/skills/main.js +1 -1
  339. package/lib/skills/npx-skills-add.js +1 -1
  340. package/lib/skills/skill-presence.js +1 -1
  341. package/lib/telemetry/cli-command-trace.js +1 -1
  342. package/lib/telemetry/cli-help-trace.js +1 -1
  343. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  344. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  345. package/lib/telemetry/send-cli-trace-log.js +1 -1
  346. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  347. package/lib/utils/ai_config.js +1 -1
  348. package/lib/utils/apply-jq-filter.js +1 -1
  349. package/lib/utils/cdn-config.js +1 -1
  350. package/lib/utils/check-sdk-version.js +1 -1
  351. package/lib/utils/cli-version-check.js +1 -1
  352. package/lib/utils/cli-version-policy.js +1 -1
  353. package/lib/utils/config.js +1 -1
  354. package/lib/utils/entity-with-id.js +1 -1
  355. package/lib/utils/file-utils.js +1 -1
  356. package/lib/utils/guides-cdn.js +1 -1
  357. package/lib/utils/http-client.js +1 -1
  358. package/lib/utils/is-non-interactive.js +1 -1
  359. package/lib/utils/logger.js +1 -1
  360. package/lib/utils/params.js +1 -1
  361. package/lib/utils/platform.js +1 -1
  362. package/lib/utils/sleep.js +1 -1
  363. package/lib/utils/template-replacer.js +1 -1
  364. package/lib/utils/update-notice.js +1 -1
  365. package/lib/utils/version.js +1 -1
  366. package/lib/utils/with-active-cookie.js +1 -1
  367. package/lib/utils/write-cli-side-channel.js +1 -1
  368. package/package.json +1 -1
  369. package/skills/rabetbase/SKILL.md +21 -12
  370. package/skills/rabetbase/guides/backend-function.md +2 -7
  371. package/skills/rabetbase/guides/bff-creation-workflow.md +24 -23
  372. package/skills/rabetbase/guides/host-frontend-integration.md +62 -0
  373. package/skills/rabetbase/guides/independent-deployment.md +45 -0
  374. package/skills/rabetbase/guides/troubleshooting.md +9 -1
  375. package/skills/rabetbase/references/rabetbase-app-detail.md +31 -0
  376. package/skills/rabetbase/references/rabetbase-bff-detail.md +1 -1
  377. package/skills/rabetbase/references/rabetbase-bff-push.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-data-list-status.md +1 -0
  379. package/skills/rabetbase/references/rabetbase-deployment-sync-all.md +5 -1
  380. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -7
  381. package/skills/rabetbase/references/rabetbase-menu-list.md +2 -2
  382. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-status.md +19 -0
  383. package/skills/rabetbase/references/rabetbase-menu-subapp-assets-update.md +27 -0
  384. package/skills/rabetbase/references/rabetbase-menu-sync.md +40 -14
  385. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  386. package/skills/rabetbase/references/rabetbase-page-generate-start.md +5 -3
  387. package/skills/rabetbase/references/rabetbase-page-generate-status.md +1 -0
  388. package/skills/rabetbase.manifest.json +8 -3
@@ -1 +1 @@
1
- (function(_0x4e0bbe,_0x3fb961){const _0x51f758=a267_0x22f9,_0x4f00a4=_0x4e0bbe();while(!![]){try{const _0x2205f5=-parseInt(_0x51f758(0x17e))/0x1+-parseInt(_0x51f758(0x18d))/0x2+parseInt(_0x51f758(0x1a2))/0x3*(parseInt(_0x51f758(0x19b))/0x4)+-parseInt(_0x51f758(0x182))/0x5+-parseInt(_0x51f758(0x18e))/0x6*(parseInt(_0x51f758(0x1a4))/0x7)+-parseInt(_0x51f758(0x186))/0x8+-parseInt(_0x51f758(0x185))/0x9*(-parseInt(_0x51f758(0x198))/0xa);if(_0x2205f5===_0x3fb961)break;else _0x4f00a4['push'](_0x4f00a4['shift']());}catch(_0x4aa739){_0x4f00a4['push'](_0x4f00a4['shift']());}}}(a267_0x3b30,0x5da79));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function a267_0x3b30(){const _0x3a41ee=['entries','trim','format','166369ZsQjiy','accessKey','region','ENV','3801625YTVuRU','daily','locale','161460Rcyetv','3889216qzcFrM','projectConfig','keys','apps','pageSize','filter','globalConfig','1217552rgxldc','102UuHLST','VERBOSE','length','write','PAGE_SIZE','defaultApp','COOKIE','projectPath','true','FORMAT','1420awDLwS','string','value','99124ejPaOC','object','ACCESS_KEY','read','source','appcode','riskLevel','6fhoOzN','env','78981RKzZWt'];a267_0x3b30=function(){return _0x3a41ee;};return a267_0x3b30();}function stringConfigValue(_0x646f41){const _0x585b1b=a267_0x22f9;return typeof _0x646f41===_0x585b1b(0x199)&&_0x646f41['trim']()?_0x646f41['trim']():undefined;}function appProfiles(_0x3c2aec){const _0x576bf2=a267_0x22f9;return _0x3c2aec[_0x576bf2(0x189)]&&typeof _0x3c2aec['apps']===_0x576bf2(0x19c)?_0x3c2aec['apps']:{};}function resolveDefaultAppName(_0x3dfb70){const _0x2ec735=a267_0x22f9,_0xa64caa=stringConfigValue(_0x3dfb70[_0x2ec735(0x193)]);if(_0xa64caa)return _0xa64caa;const _0xc2866=Object[_0x2ec735(0x188)](appProfiles(_0x3dfb70));return _0xc2866[_0x2ec735(0x190)]===0x1?_0xc2866[0x0]:undefined;}function a267_0x22f9(_0x5e8aa1,_0x14c7df){_0x5e8aa1=_0x5e8aa1-0x17d;const _0x3b30ee=a267_0x3b30();let _0x22f99a=_0x3b30ee[_0x5e8aa1];return _0x22f99a;}function resolveTopLevelAppCode(_0x26ad44){const _0x23968d=a267_0x22f9;return stringConfigValue(_0x26ad44[_0x23968d(0x1a0)])||stringConfigValue(_0x26ad44['app']);}function normalizeRiskCeiling(_0x5100db){const _0x338602=a267_0x22f9;if(_0x5100db===undefined||_0x5100db===null)return undefined;if(_0x5100db==='read'||_0x5100db===_0x338602(0x191)||_0x5100db==='high-risk-write')return _0x5100db;return _0x338602(0x19e);}function resolveRiskCeiling(..._0x53ce95){let _0xffa565;for(const _0xf38fdf of _0x53ce95){const _0x4d831a=normalizeRiskCeiling(_0xf38fdf);_0x4d831a&&(!_0xffa565||riskLevelOrder(_0x4d831a)<riskLevelOrder(_0xffa565))&&(_0xffa565=_0x4d831a);}return _0xffa565??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x37a72e,flags:_0xe9763c,layers:_0x55ee46,readEnv:_0x125e21}){const _0x596f24=a267_0x22f9,_0x1994a1=_0x55ee46?.[_0x596f24(0x187)]??{},_0x2ecb99=_0x55ee46?.[_0x596f24(0x18c)]??{},_0x5e6e88=!!_0x55ee46?.[_0x596f24(0x195)]||Object[_0x596f24(0x188)](_0x1994a1)[_0x596f24(0x190)]>0x0,_0x45ca79=!_0x5e6e88,_0x4ce411=_0x5e6e88?resolveDefaultAppName(_0x1994a1):undefined,_0x44d784=_0x45ca79?resolveDefaultAppName(_0x2ecb99):undefined,_0x35e747=stringConfigValue(_0xe9763c['app']),_0x215355=_0x125e21('APP'),_0x2a7a73={};if(_0x37a72e[_0x596f24(0x189)]&&typeof _0x37a72e[_0x596f24(0x189)]===_0x596f24(0x19c))for(const [_0x230f02,_0x4af43e]of Object[_0x596f24(0x1a5)](_0x37a72e[_0x596f24(0x189)])){_0x4af43e&&typeof _0x4af43e==='object'&&_0x4af43e[_0x596f24(0x1a0)]&&(_0x2a7a73[_0x230f02]=_0x4af43e);}const _0xacffa9=_0x4ce411||_0x44d784||resolveDefaultAppName(_0x37a72e),_0x193dd0=Object['keys'](_0x2a7a73)[_0x596f24(0x190)]>0x0,_0x421145=_0x35e747||_0x4ce411||_0x215355||_0x44d784||_0xacffa9||undefined,_0xf2c117=stringConfigValue(_0xe9763c[_0x596f24(0x1a0)]),_0x4a51c6=_0xf2c117?Object[_0x596f24(0x1a5)](_0x2a7a73)[_0x596f24(0x18b)](([,_0x1a0ced])=>_0x1a0ced?.[_0x596f24(0x1a0)]===_0xf2c117):[],_0x1484ff=_0x35e747&&_0x2a7a73[_0x35e747]?.[_0x596f24(0x1a0)]===_0xf2c117?[_0x35e747,_0x2a7a73[_0x35e747]]:undefined,_0xec6c6c=_0x1484ff??(_0x4a51c6['length']===0x1?_0x4a51c6[0x0]:undefined),_0xc14265=_0xec6c6c?.[0x0],_0x25dc2c=_0xec6c6c?.[0x1],_0x5dca3a=_0xf2c117?_0xc14265:_0x421145;let _0x3439b1=_0x5dca3a&&_0x2a7a73[_0x5dca3a]?_0x2a7a73[_0x5dca3a]:undefined;_0xf2c117&&_0x25dc2c&&(_0x3439b1=_0x25dc2c);const _0x4d9893=_0xf2c117?_0x25dc2c??_0x3439b1:_0x3439b1,_0x75a8d2=!_0x35e747&&!_0x4ce411&&_0x215355&&_0x5dca3a===_0x215355,_0x5cc380=_0x35e747||(_0x75a8d2?_0x215355:undefined)||(_0xf2c117?_0xc14265:undefined),_0x30e14a=_0x4d9893?.[_0x596f24(0x1a0)],_0x4b78f9=_0x5e6e88?resolveTopLevelAppCode(_0x1994a1):undefined,_0x14d121=_0x45ca79?resolveTopLevelAppCode(_0x2ecb99):undefined,_0x23aab7=_0x35e747||_0x4ce411?_0x30e14a:undefined,_0x21d9ca=!_0x35e747&&!_0x4ce411?_0x30e14a:undefined,_0x17a780=_0xf2c117||_0x23aab7||_0x4b78f9||_0x21d9ca||_0x14d121||undefined,_0x4b5407=_0x5e6e88?stringConfigValue(_0x1994a1[_0x596f24(0x1a3)]):undefined,_0x124858=_0x45ca79?stringConfigValue(_0x2ecb99[_0x596f24(0x1a3)]):undefined,_0x1c40af=_0xe9763c[_0x596f24(0x1a3)]||_0x4d9893?.[_0x596f24(0x1a3)]||_0x4b5407||_0x125e21(_0x596f24(0x181))||_0x124858||_0x37a72e[_0x596f24(0x1a3)]||DEFAULT_CONFIG_VALUES[_0x596f24(0x1a3)],_0x14c51b=_0x4d9893?.['locale']||_0x37a72e['locale']||DEFAULT_CONFIG_VALUES[_0x596f24(0x184)],_0xc56f25=_0x125e21(_0x596f24(0x194))||_0x4d9893?.['cookie']||_0x37a72e['cookie']||undefined,_0x2f0cc2=_0x125e21(_0x596f24(0x19d))||_0x4d9893?.[_0x596f24(0x17f)]||_0x37a72e[_0x596f24(0x17f)]||undefined,_0x3bee0a=_0xe9763c[_0x596f24(0x17d)]||_0x125e21(_0x596f24(0x197))||_0x4d9893?.[_0x596f24(0x17d)]||_0x37a72e[_0x596f24(0x17d)],_0x175ea2=normalizeLegacyOutputFormat(_0x3bee0a),_0x364720=_0x125e21(_0x596f24(0x192))||_0x4d9893?.[_0x596f24(0x18a)]||_0x37a72e['pageSize'],_0x24bd42=_0x364720?Number(_0x364720)||undefined:undefined,_0x28cd57=_0x55ee46?[_0x55ee46[_0x596f24(0x18c)][_0x596f24(0x1a1)],_0x55ee46[_0x596f24(0x187)][_0x596f24(0x1a1)]]:[_0x37a72e[_0x596f24(0x1a1)]],_0x51627f=resolveRiskCeiling(..._0x28cd57,_0x4d9893?.[_0x596f24(0x1a1)]),_0x254b8c=resolveRiskCeiling(_0x51627f,_0x125e21('RISK_LEVEL')),_0x3513f9=_0x125e21(_0x596f24(0x18f)),_0x2519ee=_0x3513f9==='1'||_0x3513f9===_0x596f24(0x196),_0x55a653=_0x4d9893?.['apiDir']||_0x37a72e['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x3ba9a6=selectConfiguredRegion({'appRegion':_0x4d9893?.[_0x596f24(0x180)],'projectRegion':_0x5e6e88?_0x1994a1[_0x596f24(0x180)]:undefined,'globalRegion':_0x5e6e88||_0x45ca79?_0x2ecb99[_0x596f24(0x180)]:undefined,'mergedRegion':_0x37a72e['region']}),_0x12a9f1=normalizeLovrabetRegion(_0x3ba9a6['value'])??DEFAULT_LOVRABET_REGION,_0x4fac60=isDaily(normalizeEnv(String(_0x1c40af)))?_0x596f24(0x183):'production';return{'appCode':typeof _0x17a780===_0x596f24(0x199)&&_0x17a780[_0x596f24(0x1a6)]()?_0x17a780[_0x596f24(0x1a6)]():undefined,'region':_0x12a9f1,'regionConfiguredValue':_0x3ba9a6[_0x596f24(0x19a)],'regionSource':_0x3ba9a6[_0x596f24(0x19f)],'env':_0x4fac60,'locale':_0x14c51b,'cookie':_0xc56f25,'accessKey':_0x2f0cc2,'format':_0x175ea2,'pageSize':_0x24bd42,'riskLevel':_0x254b8c,'verbose':_0x2519ee,'apiDir':_0x55a653,'apps':_0x2a7a73,'defaultApp':_0xacffa9,'currentApp':_0x193dd0?_0x5dca3a:undefined,'explicitAppName':_0x5cc380};}
1
+ (function(_0x2cc0c5,_0x51f48d){const _0x1ab38a=a272_0x3eb8,_0x4e97b7=_0x2cc0c5();while(!![]){try{const _0x50b1df=parseInt(_0x1ab38a(0xc3))/0x1*(-parseInt(_0x1ab38a(0xd4))/0x2)+-parseInt(_0x1ab38a(0xec))/0x3*(-parseInt(_0x1ab38a(0xc4))/0x4)+-parseInt(_0x1ab38a(0xd1))/0x5*(parseInt(_0x1ab38a(0xed))/0x6)+-parseInt(_0x1ab38a(0xe7))/0x7*(parseInt(_0x1ab38a(0xe6))/0x8)+parseInt(_0x1ab38a(0xda))/0x9+parseInt(_0x1ab38a(0xd6))/0xa*(parseInt(_0x1ab38a(0xeb))/0xb)+parseInt(_0x1ab38a(0xc9))/0xc*(parseInt(_0x1ab38a(0xc7))/0xd);if(_0x50b1df===_0x51f48d)break;else _0x4e97b7['push'](_0x4e97b7['shift']());}catch(_0x3ed814){_0x4e97b7['push'](_0x4e97b7['shift']());}}}(a272_0x52f0,0x5bb33));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x1673a3){const _0x5db491=a272_0x3eb8;return typeof _0x1673a3===_0x5db491(0xcc)&&_0x1673a3[_0x5db491(0xcb)]()?_0x1673a3['trim']():undefined;}function appProfiles(_0x24ff92){const _0x4fe45a=a272_0x3eb8;return _0x24ff92[_0x4fe45a(0xee)]&&typeof _0x24ff92[_0x4fe45a(0xee)]==='object'?_0x24ff92['apps']:{};}function a272_0x52f0(){const _0x18173a=['apiDir','format','6215697ROLfPv','production','filter','keys','projectPath','cookie','read','riskLevel','write','globalConfig','value','projectConfig','3416MXpnbm','3346kLeHBk','length','object','app','11bhFxec','570378wYGGgr','6JNemhL','apps','accessKey','9HOKrnD','4tCrBga','PAGE_SIZE','pageSize','13KUQcFB','high-risk-write','6735768JtPkgW','source','trim','string','ACCESS_KEY','entries','env','true','2286605EArbKl','defaultApp','region','153246eJXbSo','appcode','2845640xdWjDq','locale'];a272_0x52f0=function(){return _0x18173a;};return a272_0x52f0();}function resolveDefaultAppName(_0x8f3e99){const _0x3f4b7f=a272_0x3eb8,_0x1547d4=stringConfigValue(_0x8f3e99[_0x3f4b7f(0xd2)]);if(_0x1547d4)return _0x1547d4;const _0xee7c8c=Object['keys'](appProfiles(_0x8f3e99));return _0xee7c8c['length']===0x1?_0xee7c8c[0x0]:undefined;}function resolveTopLevelAppCode(_0x5b6b6a){const _0x1439d1=a272_0x3eb8;return stringConfigValue(_0x5b6b6a[_0x1439d1(0xd5)])||stringConfigValue(_0x5b6b6a[_0x1439d1(0xea)]);}function a272_0x3eb8(_0x218c4e,_0x255d71){_0x218c4e=_0x218c4e-0xc3;const _0x52f0d8=a272_0x52f0();let _0x3eb84c=_0x52f0d8[_0x218c4e];return _0x3eb84c;}function normalizeRiskCeiling(_0x199ac2){const _0xe5fd2=a272_0x3eb8;if(_0x199ac2===undefined||_0x199ac2===null)return undefined;if(_0x199ac2===_0xe5fd2(0xe0)||_0x199ac2===_0xe5fd2(0xe2)||_0x199ac2===_0xe5fd2(0xc8))return _0x199ac2;return'read';}function resolveRiskCeiling(..._0x389d63){const _0xe27d70=a272_0x3eb8;let _0x756648;for(const _0xac0856 of _0x389d63){const _0xada713=normalizeRiskCeiling(_0xac0856);_0xada713&&(!_0x756648||riskLevelOrder(_0xada713)<riskLevelOrder(_0x756648))&&(_0x756648=_0xada713);}return _0x756648??DEFAULT_CONFIG_VALUES[_0xe27d70(0xe1)];}export function resolveAppConfig({raw:_0x153b41,flags:_0x31f5be,layers:_0x2820ac,readEnv:_0x1d09e4}){const _0x2ca5b3=a272_0x3eb8,_0x4cd646=_0x2820ac?.[_0x2ca5b3(0xe5)]??{},_0x2c90fd=_0x2820ac?.[_0x2ca5b3(0xe3)]??{},_0x387d39=!!_0x2820ac?.[_0x2ca5b3(0xde)]||Object['keys'](_0x4cd646)[_0x2ca5b3(0xe8)]>0x0,_0x1087c1=!_0x387d39,_0x1e42ec=_0x387d39?resolveDefaultAppName(_0x4cd646):undefined,_0x372c92=_0x1087c1?resolveDefaultAppName(_0x2c90fd):undefined,_0x58ae1d=stringConfigValue(_0x31f5be[_0x2ca5b3(0xea)]),_0x48fbf2=_0x1d09e4('APP'),_0x2bc3f0={};if(_0x153b41[_0x2ca5b3(0xee)]&&typeof _0x153b41[_0x2ca5b3(0xee)]===_0x2ca5b3(0xe9))for(const [_0x52f287,_0x421769]of Object[_0x2ca5b3(0xce)](_0x153b41[_0x2ca5b3(0xee)])){_0x421769&&typeof _0x421769===_0x2ca5b3(0xe9)&&_0x421769[_0x2ca5b3(0xd5)]&&(_0x2bc3f0[_0x52f287]=_0x421769);}const _0x11f7ca=_0x1e42ec||_0x372c92||resolveDefaultAppName(_0x153b41),_0x21acb9=Object[_0x2ca5b3(0xdd)](_0x2bc3f0)[_0x2ca5b3(0xe8)]>0x0,_0x6cd265=_0x58ae1d||_0x1e42ec||_0x48fbf2||_0x372c92||_0x11f7ca||undefined,_0xad51d1=stringConfigValue(_0x31f5be[_0x2ca5b3(0xd5)]),_0x2b4511=_0xad51d1?Object[_0x2ca5b3(0xce)](_0x2bc3f0)[_0x2ca5b3(0xdc)](([,_0x33356e])=>_0x33356e?.[_0x2ca5b3(0xd5)]===_0xad51d1):[],_0x1e2de6=_0x58ae1d&&_0x2bc3f0[_0x58ae1d]?.[_0x2ca5b3(0xd5)]===_0xad51d1?[_0x58ae1d,_0x2bc3f0[_0x58ae1d]]:undefined,_0x17499d=_0x1e2de6??(_0x2b4511['length']===0x1?_0x2b4511[0x0]:undefined),_0x28b01c=_0x17499d?.[0x0],_0x2690ea=_0x17499d?.[0x1],_0x303192=_0xad51d1?_0x28b01c:_0x6cd265;let _0x142687=_0x303192&&_0x2bc3f0[_0x303192]?_0x2bc3f0[_0x303192]:undefined;_0xad51d1&&_0x2690ea&&(_0x142687=_0x2690ea);const _0x25c592=_0xad51d1?_0x2690ea??_0x142687:_0x142687,_0x46d12b=!_0x58ae1d&&!_0x1e42ec&&_0x48fbf2&&_0x303192===_0x48fbf2,_0xabcb44=_0x58ae1d||(_0x46d12b?_0x48fbf2:undefined)||(_0xad51d1?_0x28b01c:undefined),_0x300750=_0x25c592?.['appcode'],_0x5a7871=_0x387d39?resolveTopLevelAppCode(_0x4cd646):undefined,_0x45d0b0=_0x1087c1?resolveTopLevelAppCode(_0x2c90fd):undefined,_0x278fc4=_0x58ae1d||_0x1e42ec?_0x300750:undefined,_0x5a9b51=!_0x58ae1d&&!_0x1e42ec?_0x300750:undefined,_0x17f7b3=_0xad51d1||_0x278fc4||_0x5a7871||_0x5a9b51||_0x45d0b0||undefined,_0x208627=_0x387d39?stringConfigValue(_0x4cd646[_0x2ca5b3(0xcf)]):undefined,_0x244815=_0x1087c1?stringConfigValue(_0x2c90fd[_0x2ca5b3(0xcf)]):undefined,_0x564891=_0x31f5be[_0x2ca5b3(0xcf)]||_0x25c592?.[_0x2ca5b3(0xcf)]||_0x208627||_0x1d09e4('ENV')||_0x244815||_0x153b41[_0x2ca5b3(0xcf)]||DEFAULT_CONFIG_VALUES[_0x2ca5b3(0xcf)],_0x30b2a1=_0x25c592?.[_0x2ca5b3(0xd7)]||_0x153b41['locale']||DEFAULT_CONFIG_VALUES[_0x2ca5b3(0xd7)],_0x4b9feb=_0x1d09e4('COOKIE')||_0x25c592?.[_0x2ca5b3(0xdf)]||_0x153b41[_0x2ca5b3(0xdf)]||undefined,_0x69df25=_0x1d09e4(_0x2ca5b3(0xcd))||_0x25c592?.['accessKey']||_0x153b41[_0x2ca5b3(0xef)]||undefined,_0x4bcfcd=_0x31f5be[_0x2ca5b3(0xd9)]||_0x1d09e4('FORMAT')||_0x25c592?.['format']||_0x153b41['format'],_0x59d1b7=normalizeLegacyOutputFormat(_0x4bcfcd),_0x33a044=_0x1d09e4(_0x2ca5b3(0xc5))||_0x25c592?.[_0x2ca5b3(0xc6)]||_0x153b41['pageSize'],_0x7ffe6e=_0x33a044?Number(_0x33a044)||undefined:undefined,_0x3a3cca=_0x2820ac?[_0x2820ac[_0x2ca5b3(0xe3)][_0x2ca5b3(0xe1)],_0x2820ac[_0x2ca5b3(0xe5)][_0x2ca5b3(0xe1)]]:[_0x153b41[_0x2ca5b3(0xe1)]],_0x432cb5=resolveRiskCeiling(..._0x3a3cca,_0x25c592?.[_0x2ca5b3(0xe1)]),_0x3cbdf3=resolveRiskCeiling(_0x432cb5,_0x1d09e4('RISK_LEVEL')),_0xf33dd3=_0x1d09e4('VERBOSE'),_0x4d5c74=_0xf33dd3==='1'||_0xf33dd3===_0x2ca5b3(0xd0),_0x357aa5=_0x25c592?.['apiDir']||_0x153b41[_0x2ca5b3(0xd8)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x32a3cb=selectConfiguredRegion({'appRegion':_0x25c592?.['region'],'projectRegion':_0x387d39?_0x4cd646[_0x2ca5b3(0xd3)]:undefined,'globalRegion':_0x387d39||_0x1087c1?_0x2c90fd[_0x2ca5b3(0xd3)]:undefined,'mergedRegion':_0x153b41[_0x2ca5b3(0xd3)]}),_0x1f1cfb=normalizeLovrabetRegion(_0x32a3cb['value'])??DEFAULT_LOVRABET_REGION,_0x312a3e=isDaily(normalizeEnv(String(_0x564891)))?'daily':_0x2ca5b3(0xdb);return{'appCode':typeof _0x17f7b3===_0x2ca5b3(0xcc)&&_0x17f7b3[_0x2ca5b3(0xcb)]()?_0x17f7b3[_0x2ca5b3(0xcb)]():undefined,'region':_0x1f1cfb,'regionConfiguredValue':_0x32a3cb[_0x2ca5b3(0xe4)],'regionSource':_0x32a3cb[_0x2ca5b3(0xca)],'env':_0x312a3e,'locale':_0x30b2a1,'cookie':_0x4b9feb,'accessKey':_0x69df25,'format':_0x59d1b7,'pageSize':_0x7ffe6e,'riskLevel':_0x3cbdf3,'verbose':_0x4d5c74,'apiDir':_0x357aa5,'apps':_0x2bc3f0,'defaultApp':_0x11f7ca,'currentApp':_0x21acb9?_0x303192:undefined,'explicitAppName':_0xabcb44};}
@@ -1 +1 @@
1
- (function(_0x1795e6,_0x436a88){const _0x76caf7=a268_0x58ca,_0x56c86b=_0x1795e6();while(!![]){try{const _0x4b4acc=parseInt(_0x76caf7(0xe5))/0x1*(-parseInt(_0x76caf7(0xec))/0x2)+-parseInt(_0x76caf7(0xe9))/0x3+-parseInt(_0x76caf7(0xe2))/0x4+parseInt(_0x76caf7(0xea))/0x5+parseInt(_0x76caf7(0xe4))/0x6*(-parseInt(_0x76caf7(0xe7))/0x7)+-parseInt(_0x76caf7(0xe6))/0x8+-parseInt(_0x76caf7(0xeb))/0x9*(-parseInt(_0x76caf7(0xe3))/0xa);if(_0x4b4acc===_0x436a88)break;else _0x56c86b['push'](_0x56c86b['shift']());}catch(_0x3615d7){_0x56c86b['push'](_0x56c86b['shift']());}}}(a268_0x3a45,0xbf2ef));import{getIsSessionValid}from'../auth/is-session-valid.js';function a268_0x3a45(){const _0x57480a=['../auth/get-cookie.js','4388628eDDqyK','2894495xUodER','45vlKTZj','2GGjLrv','1444528IkagHz','10209100MrhUgp','483714KqAzAw','1153340XwqjQF','4419928tHlbPw','119OCavnx'];a268_0x3a45=function(){return _0x57480a;};return a268_0x3a45();}function a268_0x58ca(_0x46e3e2,_0x183e07){_0x46e3e2=_0x46e3e2-0xe2;const _0x3a45da=a268_0x3a45();let _0x58ca4b=_0x3a45da[_0x46e3e2];return _0x58ca4b;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1eb9ff){const _0x290582=a268_0x58ca,{getCookie:_0xe1ada7}=await import(_0x290582(0xe8)),_0x551d14=_0x1eb9ff['cookie']||_0xe1ada7(),_0x42118e=_0x551d14?await getIsSessionValid():![];return{'cookie':_0x551d14,'isLoggedIn':_0x42118e,async 'getOrLogin'(){if(_0x551d14&&_0x42118e)return _0x551d14;throw CliErrors['authRequired']();}};}
1
+ (function(_0x22dd1e,_0x1c7231){const _0x5883cd=a273_0x31b3,_0xeb0816=_0x22dd1e();while(!![]){try{const _0x1993d5=parseInt(_0x5883cd(0x19d))/0x1*(parseInt(_0x5883cd(0x19c))/0x2)+-parseInt(_0x5883cd(0x19b))/0x3*(-parseInt(_0x5883cd(0x199))/0x4)+parseInt(_0x5883cd(0x195))/0x5+parseInt(_0x5883cd(0x1a0))/0x6+-parseInt(_0x5883cd(0x194))/0x7+-parseInt(_0x5883cd(0x196))/0x8*(-parseInt(_0x5883cd(0x19a))/0x9)+-parseInt(_0x5883cd(0x19e))/0xa;if(_0x1993d5===_0x1c7231)break;else _0xeb0816['push'](_0xeb0816['shift']());}catch(_0x70dc8b){_0xeb0816['push'](_0xeb0816['shift']());}}}(a273_0x3c52,0x953de));function a273_0x31b3(_0x25482f,_0x429fb6){_0x25482f=_0x25482f-0x194;const _0x3c5245=a273_0x3c52();let _0x31b378=_0x3c5245[_0x25482f];return _0x31b378;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a273_0x3c52(){const _0x7a77e0=['20604570mQBCLq','../auth/get-cookie.js','4879146CqDCBy','6507900SLrJeI','5645950LWhnQE','128sfeDmI','authRequired','cookie','1468OjVWiP','274788MbJMNl','5208UIPaXY','9788DVPvTh','109RnwnAD'];a273_0x3c52=function(){return _0x7a77e0;};return a273_0x3c52();}export async function buildAuth(_0x1c9661){const _0x1d157a=a273_0x31b3,{getCookie:_0x33c445}=await import(_0x1d157a(0x19f)),_0x9f3a84=_0x1c9661[_0x1d157a(0x198)]||_0x33c445(),_0x5a9584=_0x9f3a84?await getIsSessionValid():![];return{'cookie':_0x9f3a84,'isLoggedIn':_0x5a9584,async 'getOrLogin'(){const _0x44c8f6=_0x1d157a;if(_0x9f3a84&&_0x5a9584)return _0x9f3a84;throw CliErrors[_0x44c8f6(0x197)]();}};}
@@ -1 +1 @@
1
- const a269_0x874071=a269_0x2c3d;(function(_0x4b52d1,_0x154280){const _0x6ece1=a269_0x2c3d,_0xe6ec95=_0x4b52d1();while(!![]){try{const _0x178619=parseInt(_0x6ece1(0xa8))/0x1+parseInt(_0x6ece1(0x89))/0x2+-parseInt(_0x6ece1(0x76))/0x3+parseInt(_0x6ece1(0xa5))/0x4+-parseInt(_0x6ece1(0x86))/0x5*(parseInt(_0x6ece1(0x80))/0x6)+parseInt(_0x6ece1(0x7a))/0x7*(-parseInt(_0x6ece1(0x91))/0x8)+parseInt(_0x6ece1(0x83))/0x9*(-parseInt(_0x6ece1(0x97))/0xa);if(_0x178619===_0x154280)break;else _0xe6ec95['push'](_0xe6ec95['shift']());}catch(_0x985fec){_0xe6ec95['push'](_0xe6ec95['shift']());}}}(a269_0x23dc,0x3a1b7));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2ddc01){for(const _0x161f69 of CONFIG_NAMES){const _0x2fafcb=resolve(_0x2ddc01,_0x161f69);if(existsSync(_0x2fafcb))return _0x2fafcb;}return undefined;}function a269_0x23dc(){const _0x1ee89f=['app','kbDomain','project','error','1544164KsqawD','utf8','appDomain','432219cycRSS','cwd','region','empty','617979foAUHi','inherit','set','string','43946yOAWTI','silent','config','\x0a\x20\x20','accessKey','apiDir','1092NVEnAJ','appcode','.tmp','54HTDucg','migrated','defaultApp','11920eJxuBa','format','status','547160wZQJMH','missing','pageSize','userDomain','warn','cookie','message','apiDomain','16eaappE','length','apps','Project','object','certificateDomain','335660EUlxUn','data','riskLevel','trim','stringify','runtimeDomain','keys','routing','parse','locale'];a269_0x23dc=function(){return _0x1ee89f;};return a269_0x23dc();}export function findProjectRootDirectory(_0x324a23=process[a269_0x874071(0xa9)]()){let _0x306f85=resolve(_0x324a23);const {root:_0x27afb6}=parse(_0x306f85),_0x321b1d=homedir();while(!![]){if(resolveConfigPath(_0x306f85)){if(_0x306f85===_0x321b1d)break;return _0x306f85;}if(_0x306f85===_0x27afb6||_0x306f85===_0x321b1d)break;const _0x2753fc=dirname(_0x306f85);if(_0x2753fc===_0x306f85)break;_0x306f85=_0x2753fc;}return resolve(_0x324a23);}export function getProjectConfigPath(){const _0x2d58ba=a269_0x874071;return resolveConfigPath(process[_0x2d58ba(0xa9)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x348de4){const _0x19c4b1=a269_0x874071;if(!existsSync(_0x348de4))return{'status':_0x19c4b1(0x8a)};try{const _0x36cff4=readFileSync(_0x348de4,{'encoding':_0x19c4b1(0xa6)});if(!_0x36cff4?.[_0x19c4b1(0x9a)]())return{'status':_0x19c4b1(0xab)};const _0x556069=JSON[_0x19c4b1(0x9f)](_0x36cff4);return{'status':'ok','data':_0x556069};}catch(_0x518ed5){return{'status':_0x19c4b1(0xa4),'message':_0x518ed5 instanceof Error?_0x518ed5[_0x19c4b1(0x8f)]:String(_0x518ed5)};}}function parseCliConfigJsonFile(_0x24abac,_0xa48b8,_0x57ae5c){const _0x60929c=a269_0x874071,_0x2fa498=inspectCliConfigJsonFile(_0x24abac);if(_0x2fa498[_0x60929c(0x88)]==='missing'||_0x2fa498[_0x60929c(0x88)]===_0x60929c(0xab))return{};if(_0x2fa498[_0x60929c(0x88)]==='ok')return _0x2fa498[_0x60929c(0x98)];return _0xa48b8===_0x60929c(0x8d)&&_0x57ae5c&&console[_0x60929c(0xa4)](CLI_BIN_NAME+':\x20'+_0x57ae5c+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x24abac+_0x60929c(0x7d)+_0x2fa498['message']),{};}function normalizeLegacyConfigShape(_0x57df31){const _0x5a2814=a269_0x874071;if(!_0x57df31||typeof _0x57df31!==_0x5a2814(0x95))return{'config':{},'migrated':![]};const _0x27708d={..._0x57df31},_0x58bab3=_0x27708d[_0x5a2814(0x93)]&&typeof _0x27708d[_0x5a2814(0x93)]==='object'?{..._0x27708d[_0x5a2814(0x93)]}:{},_0x1b4ea0=Object[_0x5a2814(0x9d)](_0x58bab3)[_0x5a2814(0x92)],_0x2878d5=_0x27708d[_0x5a2814(0x81)]||_0x27708d[_0x5a2814(0xa1)];let _0xa4bcff=![];if(_0x2878d5&&_0x1b4ea0===0x0){const _0x20505a=typeof _0x27708d[_0x5a2814(0x85)]===_0x5a2814(0x79)&&_0x27708d[_0x5a2814(0x85)][_0x5a2814(0x9a)]()?_0x27708d[_0x5a2814(0x85)]:String(_0x2878d5)[_0x5a2814(0x9a)]();_0x58bab3[_0x20505a]={'appcode':String(_0x2878d5)[_0x5a2814(0x9a)](),..._0x27708d['env']!=null?{'env':_0x27708d['env']}:{},..._0x27708d[_0x5a2814(0x7f)]!=null?{'apiDir':_0x27708d[_0x5a2814(0x7f)]}:{},..._0x27708d['cookie']!=null?{'cookie':_0x27708d[_0x5a2814(0x8e)]}:{},..._0x27708d[_0x5a2814(0x7e)]!=null?{'accessKey':_0x27708d['accessKey']}:{},..._0x27708d[_0x5a2814(0x87)]!=null?{'format':_0x27708d[_0x5a2814(0x87)]}:{},..._0x27708d[_0x5a2814(0x8b)]!=null?{'pageSize':_0x27708d['pageSize']}:{},..._0x27708d[_0x5a2814(0x99)]!=null?{'riskLevel':_0x27708d[_0x5a2814(0x99)]}:{},..._0x27708d[_0x5a2814(0xa0)]!=null?{'locale':_0x27708d['locale']}:{}},_0x27708d[_0x5a2814(0x93)]=_0x58bab3,delete _0x27708d[_0x5a2814(0x85)],_0xa4bcff=!![];}return(_0x5a2814(0x81)in _0x27708d||_0x5a2814(0xa1)in _0x27708d)&&(delete _0x27708d[_0x5a2814(0x81)],delete _0x27708d[_0x5a2814(0xa1)],_0xa4bcff=!![]),{'config':_0x27708d,'migrated':_0xa4bcff};}function writeNormalizedConfigIfNeeded(_0x84cf2b,_0x26bd42){const _0xb394a9=a269_0x874071,_0x159473=JSON[_0xb394a9(0x9b)](normalizeConfigForWrite(_0x26bd42),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x84cf2b)===_0x159473)return;writeConfigFile(_0x84cf2b,_0x26bd42),normalizedWriteCache[_0xb394a9(0x78)](_0x84cf2b,_0x159473);}function parseAndNormalizeConfig(_0x2fcf6e,_0x14dd9d,_0x1d8ec1){const _0x3ce18=a269_0x874071,_0x13ff05=parseCliConfigJsonFile(_0x2fcf6e,_0x14dd9d,_0x1d8ec1),_0x1aa8d2=normalizeLegacyConfigShape(_0x13ff05);if(_0x1aa8d2[_0x3ce18(0x84)])try{writeNormalizedConfigIfNeeded(_0x2fcf6e,_0x1aa8d2[_0x3ce18(0x7c)]);}catch{}return _0x1aa8d2[_0x3ce18(0x7c)];}export function loadRawConfigLayers(_0x1fa3ef){const _0x26f99c=a269_0x874071;let _0x2eb7a2={},_0x467e65={};const _0x445c57=resolveConfigPath(homedir());_0x445c57&&(_0x2eb7a2=parseAndNormalizeConfig(_0x445c57,'warn','Global'));const _0x5cbc6a=_0x1fa3ef??findProjectRootDirectory(),_0x53281f=resolveConfigPath(_0x5cbc6a);return _0x53281f&&(_0x467e65=parseAndNormalizeConfig(_0x53281f,_0x26f99c(0x8d),_0x26f99c(0x94))),{'globalPath':_0x445c57,'projectPath':_0x53281f,'globalConfig':_0x2eb7a2,'projectConfig':_0x467e65};}const INHERIT_WHITELIST=[a269_0x874071(0x8e),a269_0x874071(0x7e),'locale','format',a269_0x874071(0x99),a269_0x874071(0x8b),a269_0x874071(0xaa),a269_0x874071(0x9e),a269_0x874071(0x8c),a269_0x874071(0x90),a269_0x874071(0x9c),'skillDomain',a269_0x874071(0xa2),'kbServiceDomain',a269_0x874071(0xa7),'localDomain',a269_0x874071(0x96)];export function mergeRawConfigLayers(_0x1388b4){const _0x5baeea=a269_0x874071,{globalConfig:_0x1936a9,projectConfig:_0x2aeb11}=_0x1388b4,_0x5f317d=!!_0x1388b4['projectPath']||Object[_0x5baeea(0x9d)](_0x2aeb11)[_0x5baeea(0x92)]>0x0;if(!_0x5f317d)return mergeGlobalOnly(_0x1936a9);return mergeProjectFirst(_0x1936a9,_0x2aeb11);}function mergeGlobalOnly(_0x366f82){const _0x70559c=a269_0x874071,_0x384a8c={..._0x366f82};delete _0x384a8c[_0x70559c(0x77)];const _0x54d012=_0x366f82['apps']&&typeof _0x366f82[_0x70559c(0x93)]===_0x70559c(0x95)?_0x366f82[_0x70559c(0x93)]:{};if(Object[_0x70559c(0x9d)](_0x54d012)[_0x70559c(0x92)]>0x0)_0x384a8c['apps']=_0x54d012;if(_0x366f82[_0x70559c(0x85)])_0x384a8c[_0x70559c(0x85)]=_0x366f82[_0x70559c(0x85)];return _0x384a8c;}function a269_0x2c3d(_0x1352b5,_0x2c24ff){_0x1352b5=_0x1352b5-0x76;const _0x23dc47=a269_0x23dc();let _0x2c3dfd=_0x23dc47[_0x1352b5];return _0x2c3dfd;}function mergeProjectFirst(_0xe50ab5,_0x3b79af){const _0x21e97c=a269_0x874071,_0x247ad5={..._0x3b79af};delete _0x247ad5[_0x21e97c(0x77)];for(const _0x1a53be of INHERIT_WHITELIST){!(_0x1a53be in _0x247ad5)&&_0x1a53be in _0xe50ab5&&(_0x247ad5[_0x1a53be]=_0xe50ab5[_0x1a53be]);}const _0x4c77ef=_0x3b79af[_0x21e97c(0x93)]&&typeof _0x3b79af[_0x21e97c(0x93)]===_0x21e97c(0x95)?_0x3b79af[_0x21e97c(0x93)]:{};return Object[_0x21e97c(0x9d)](_0x4c77ef)[_0x21e97c(0x92)]>0x0?_0x247ad5[_0x21e97c(0x93)]=_0x4c77ef:delete _0x247ad5[_0x21e97c(0x93)],_0x21e97c(0x85)in _0x3b79af?_0x247ad5['defaultApp']=_0x3b79af[_0x21e97c(0x85)]:delete _0x247ad5[_0x21e97c(0x85)],_0x247ad5;}export function readRawConfigWithLayers(_0x15cc43){const _0x256b69=loadRawConfigLayers(_0x15cc43);return{'config':mergeRawConfigLayers(_0x256b69),'layers':_0x256b69};}export function readRawConfig(_0x272f48){return mergeRawConfigLayers(loadRawConfigLayers(_0x272f48));}export function readConfigFile(_0x480f64){const _0x1858ae=a269_0x874071;return parseAndNormalizeConfig(_0x480f64,_0x1858ae(0x7b));}export function writeConfigFile(_0x125a76,_0x38d9d4){const _0x4ebb4f=a269_0x874071,_0x141823=dirname(_0x125a76);!existsSync(_0x141823)&&mkdirSync(_0x141823,{'recursive':!![]});const _0x1d9c6b=_0x125a76+_0x4ebb4f(0x82);try{const _0x5e795e=normalizeConfigForWrite(_0x38d9d4);writeFileSync(_0x1d9c6b,JSON[_0x4ebb4f(0x9b)](_0x5e795e,null,0x2)+'\x0a',{'encoding':_0x4ebb4f(0xa6),'mode':0x180}),renameSync(_0x1d9c6b,_0x125a76);}catch(_0x119609){try{unlinkSync(_0x1d9c6b);}catch{}throw _0x119609;}}export function resolveWriteConfigPath(_0x1c0cbc){const _0x5ba37d=a269_0x874071,_0x1760e6=_0x1c0cbc===_0x5ba37d(0xa3)?process[_0x5ba37d(0xa9)]():homedir(),_0x3416af=resolveConfigPath(_0x1760e6);return _0x3416af??resolve(_0x1760e6,NEW_CONFIG_NAME);}
1
+ const a274_0x4906f0=a274_0x50b2;(function(_0x515c8d,_0x20cbc0){const _0x16bf3f=a274_0x50b2,_0x3923db=_0x515c8d();while(!![]){try{const _0xabb144=parseInt(_0x16bf3f(0x123))/0x1*(parseInt(_0x16bf3f(0x116))/0x2)+-parseInt(_0x16bf3f(0x11e))/0x3*(parseInt(_0x16bf3f(0x105))/0x4)+-parseInt(_0x16bf3f(0x103))/0x5+-parseInt(_0x16bf3f(0x122))/0x6*(parseInt(_0x16bf3f(0x102))/0x7)+parseInt(_0x16bf3f(0x106))/0x8*(parseInt(_0x16bf3f(0xfb))/0x9)+parseInt(_0x16bf3f(0xfd))/0xa*(parseInt(_0x16bf3f(0x119))/0xb)+-parseInt(_0x16bf3f(0x127))/0xc*(-parseInt(_0x16bf3f(0x101))/0xd);if(_0xabb144===_0x20cbc0)break;else _0x3923db['push'](_0x3923db['shift']());}catch(_0x433d73){_0x3923db['push'](_0x3923db['shift']());}}}(a274_0x4c11,0x871e5));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a274_0x50b2(_0x4d357f,_0xa3b4ee){_0x4d357f=_0x4d357f-0xf0;const _0x4c1158=a274_0x4c11();let _0x50b2ab=_0x4c1158[_0x4d357f];return _0x50b2ab;}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a274_0x4906f0(0x126);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x509cae){for(const _0x5613c8 of CONFIG_NAMES){const _0x1909f3=resolve(_0x509cae,_0x5613c8);if(existsSync(_0x1909f3))return _0x1909f3;}return undefined;}export function findProjectRootDirectory(_0x490e7a=process[a274_0x4906f0(0x108)]()){let _0x190e15=resolve(_0x490e7a);const {root:_0x3d9728}=parse(_0x190e15),_0x3c711b=homedir();while(!![]){if(resolveConfigPath(_0x190e15)){if(_0x190e15===_0x3c711b)break;return _0x190e15;}if(_0x190e15===_0x3d9728||_0x190e15===_0x3c711b)break;const _0x22852b=dirname(_0x190e15);if(_0x22852b===_0x190e15)break;_0x190e15=_0x22852b;}return resolve(_0x490e7a);}export function getProjectConfigPath(){const _0x205f85=a274_0x4906f0;return resolveConfigPath(process[_0x205f85(0x108)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x53f990){const _0x2c6bbe=a274_0x4906f0;if(!existsSync(_0x53f990))return{'status':_0x2c6bbe(0xf9)};try{const _0x29f00f=readFileSync(_0x53f990,{'encoding':_0x2c6bbe(0x118)});if(!_0x29f00f?.['trim']())return{'status':_0x2c6bbe(0xf1)};const _0x2d6c3c=JSON['parse'](_0x29f00f);return{'status':'ok','data':_0x2d6c3c};}catch(_0x86d816){return{'status':_0x2c6bbe(0x11b),'message':_0x86d816 instanceof Error?_0x86d816[_0x2c6bbe(0x121)]:String(_0x86d816)};}}function parseCliConfigJsonFile(_0x246390,_0x54d062,_0x3b9896){const _0x1bcc74=a274_0x4906f0,_0x2f5a12=inspectCliConfigJsonFile(_0x246390);if(_0x2f5a12[_0x1bcc74(0x100)]===_0x1bcc74(0xf9)||_0x2f5a12[_0x1bcc74(0x100)]===_0x1bcc74(0xf1))return{};if(_0x2f5a12[_0x1bcc74(0x100)]==='ok')return _0x2f5a12[_0x1bcc74(0x10c)];return _0x54d062===_0x1bcc74(0xf3)&&_0x3b9896&&console[_0x1bcc74(0x11b)](CLI_BIN_NAME+':\x20'+_0x3b9896+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x246390+_0x1bcc74(0x104)+_0x2f5a12[_0x1bcc74(0x121)]),{};}function normalizeLegacyConfigShape(_0x4c0bd1){const _0x4dd686=a274_0x4906f0;if(!_0x4c0bd1||typeof _0x4c0bd1!==_0x4dd686(0x107))return{'config':{},'migrated':![]};const _0xa7cbe4={..._0x4c0bd1},_0x250521=_0xa7cbe4['apps']&&typeof _0xa7cbe4[_0x4dd686(0x128)]===_0x4dd686(0x107)?{..._0xa7cbe4['apps']}:{},_0xa78b74=Object[_0x4dd686(0x11a)](_0x250521)[_0x4dd686(0x11d)],_0x4e5277=_0xa7cbe4['appcode']||_0xa7cbe4[_0x4dd686(0x125)];let _0x5040f9=![];if(_0x4e5277&&_0xa78b74===0x0){const _0x4fb721=typeof _0xa7cbe4['defaultApp']==='string'&&_0xa7cbe4['defaultApp']['trim']()?_0xa7cbe4[_0x4dd686(0x117)]:String(_0x4e5277)['trim']();_0x250521[_0x4fb721]={'appcode':String(_0x4e5277)[_0x4dd686(0x114)](),..._0xa7cbe4[_0x4dd686(0x120)]!=null?{'env':_0xa7cbe4[_0x4dd686(0x120)]}:{},..._0xa7cbe4['apiDir']!=null?{'apiDir':_0xa7cbe4[_0x4dd686(0x109)]}:{},..._0xa7cbe4[_0x4dd686(0xf0)]!=null?{'cookie':_0xa7cbe4[_0x4dd686(0xf0)]}:{},..._0xa7cbe4[_0x4dd686(0xf2)]!=null?{'accessKey':_0xa7cbe4[_0x4dd686(0xf2)]}:{},..._0xa7cbe4['format']!=null?{'format':_0xa7cbe4[_0x4dd686(0xf8)]}:{},..._0xa7cbe4[_0x4dd686(0x11f)]!=null?{'pageSize':_0xa7cbe4[_0x4dd686(0x11f)]}:{},..._0xa7cbe4['riskLevel']!=null?{'riskLevel':_0xa7cbe4[_0x4dd686(0xf5)]}:{},..._0xa7cbe4[_0x4dd686(0x11c)]!=null?{'locale':_0xa7cbe4['locale']}:{}},_0xa7cbe4['apps']=_0x250521,delete _0xa7cbe4['defaultApp'],_0x5040f9=!![];}return(_0x4dd686(0xf6)in _0xa7cbe4||_0x4dd686(0x125)in _0xa7cbe4)&&(delete _0xa7cbe4[_0x4dd686(0xf6)],delete _0xa7cbe4[_0x4dd686(0x125)],_0x5040f9=!![]),{'config':_0xa7cbe4,'migrated':_0x5040f9};}function writeNormalizedConfigIfNeeded(_0x2ddb85,_0x4f7299){const _0x440dde=a274_0x4906f0,_0x566c50=JSON['stringify'](normalizeConfigForWrite(_0x4f7299),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2ddb85)===_0x566c50)return;writeConfigFile(_0x2ddb85,_0x4f7299),normalizedWriteCache[_0x440dde(0xff)](_0x2ddb85,_0x566c50);}function parseAndNormalizeConfig(_0x29eba4,_0x5d15a6,_0x2d5363){const _0x4d2837=a274_0x4906f0,_0x411715=parseCliConfigJsonFile(_0x29eba4,_0x5d15a6,_0x2d5363),_0x1428f1=normalizeLegacyConfigShape(_0x411715);if(_0x1428f1[_0x4d2837(0xfe)])try{writeNormalizedConfigIfNeeded(_0x29eba4,_0x1428f1[_0x4d2837(0xf7)]);}catch{}return _0x1428f1[_0x4d2837(0xf7)];}export function loadRawConfigLayers(_0x2e582e){const _0x13253c=a274_0x4906f0;let _0x27ca21={},_0x2eefbb={};const _0x1e7d31=resolveConfigPath(homedir());_0x1e7d31&&(_0x27ca21=parseAndNormalizeConfig(_0x1e7d31,_0x13253c(0xf3),_0x13253c(0x10b)));const _0x377d3b=_0x2e582e??findProjectRootDirectory(),_0x46abb4=resolveConfigPath(_0x377d3b);return _0x46abb4&&(_0x2eefbb=parseAndNormalizeConfig(_0x46abb4,_0x13253c(0xf3),_0x13253c(0x10a))),{'globalPath':_0x1e7d31,'projectPath':_0x46abb4,'globalConfig':_0x27ca21,'projectConfig':_0x2eefbb};}const INHERIT_WHITELIST=['cookie',a274_0x4906f0(0xf2),a274_0x4906f0(0x11c),a274_0x4906f0(0xf8),a274_0x4906f0(0xf5),a274_0x4906f0(0x11f),a274_0x4906f0(0x115),a274_0x4906f0(0xfc),a274_0x4906f0(0x10f),a274_0x4906f0(0xf4),'runtimeDomain',a274_0x4906f0(0x113),a274_0x4906f0(0x10e),a274_0x4906f0(0x112),a274_0x4906f0(0x110),a274_0x4906f0(0x111),'certificateDomain'];export function mergeRawConfigLayers(_0x3ff82e){const _0x18b77f=a274_0x4906f0,{globalConfig:_0x344a5f,projectConfig:_0x2208dc}=_0x3ff82e,_0x387197=!!_0x3ff82e['projectPath']||Object['keys'](_0x2208dc)[_0x18b77f(0x11d)]>0x0;if(!_0x387197)return mergeGlobalOnly(_0x344a5f);return mergeProjectFirst(_0x344a5f,_0x2208dc);}function mergeGlobalOnly(_0xf0978b){const _0x42eb05=a274_0x4906f0,_0x51247f={..._0xf0978b};delete _0x51247f[_0x42eb05(0x124)];const _0x89d405=_0xf0978b[_0x42eb05(0x128)]&&typeof _0xf0978b[_0x42eb05(0x128)]==='object'?_0xf0978b[_0x42eb05(0x128)]:{};if(Object[_0x42eb05(0x11a)](_0x89d405)[_0x42eb05(0x11d)]>0x0)_0x51247f['apps']=_0x89d405;if(_0xf0978b[_0x42eb05(0x117)])_0x51247f[_0x42eb05(0x117)]=_0xf0978b[_0x42eb05(0x117)];return _0x51247f;}function mergeProjectFirst(_0x2fdff2,_0x263697){const _0x228c53=a274_0x4906f0,_0x36e4bf={..._0x263697};delete _0x36e4bf[_0x228c53(0x124)];for(const _0xc2e74b of INHERIT_WHITELIST){!(_0xc2e74b in _0x36e4bf)&&_0xc2e74b in _0x2fdff2&&(_0x36e4bf[_0xc2e74b]=_0x2fdff2[_0xc2e74b]);}const _0x317a87=_0x263697[_0x228c53(0x128)]&&typeof _0x263697[_0x228c53(0x128)]===_0x228c53(0x107)?_0x263697['apps']:{};return Object['keys'](_0x317a87)[_0x228c53(0x11d)]>0x0?_0x36e4bf[_0x228c53(0x128)]=_0x317a87:delete _0x36e4bf[_0x228c53(0x128)],_0x228c53(0x117)in _0x263697?_0x36e4bf[_0x228c53(0x117)]=_0x263697['defaultApp']:delete _0x36e4bf[_0x228c53(0x117)],_0x36e4bf;}export function readRawConfigWithLayers(_0x34fdfc){const _0x1b3cf4=loadRawConfigLayers(_0x34fdfc);return{'config':mergeRawConfigLayers(_0x1b3cf4),'layers':_0x1b3cf4};}export function readRawConfig(_0x4a6c16){return mergeRawConfigLayers(loadRawConfigLayers(_0x4a6c16));}export function readConfigFile(_0x40f4b3){return parseAndNormalizeConfig(_0x40f4b3,'silent');}export function writeConfigFile(_0x293299,_0x287d7a){const _0x22c37c=a274_0x4906f0,_0x4fd475=dirname(_0x293299);!existsSync(_0x4fd475)&&mkdirSync(_0x4fd475,{'recursive':!![]});const _0x14a060=_0x293299+_0x22c37c(0xfa);try{const _0x5734c6=normalizeConfigForWrite(_0x287d7a);writeFileSync(_0x14a060,JSON[_0x22c37c(0x10d)](_0x5734c6,null,0x2)+'\x0a',{'encoding':_0x22c37c(0x118),'mode':0x180}),renameSync(_0x14a060,_0x293299);}catch(_0x52c7c0){try{unlinkSync(_0x14a060);}catch{}throw _0x52c7c0;}}function a274_0x4c11(){const _0x319838=['format','missing','.tmp','333OZloNH','routing','2330vXehee','migrated','set','status','783562nwNUOK','21UfkgmQ','5156150QncTTF','\x0a\x20\x20','4XitCXY','70288DWqxKR','object','cwd','apiDir','Project','Global','data','stringify','kbDomain','userDomain','appDomain','localDomain','kbServiceDomain','skillDomain','trim','region','154CMarfc','defaultApp','utf8','2332JFZfSs','keys','error','locale','length','1784241fzRpdp','pageSize','env','message','576726TbIlTG','12313dQMsCb','inherit','app','.rabetbase.json','228uJgjFq','apps','cookie','empty','accessKey','warn','apiDomain','riskLevel','appcode','config'];a274_0x4c11=function(){return _0x319838;};return a274_0x4c11();}export function resolveWriteConfigPath(_0x4ce145){const _0x41049a=a274_0x4906f0,_0x7f567c=_0x4ce145==='project'?process[_0x41049a(0x108)]():homedir(),_0x3cbbdc=resolveConfigPath(_0x7f567c);return _0x3cbbdc??resolve(_0x7f567c,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a270_0xdc89d9=a270_0x4921;(function(_0x1729da,_0x465aca){const _0x26f1bd=a270_0x4921,_0x542f8f=_0x1729da();while(!![]){try{const _0x18e41f=parseInt(_0x26f1bd(0x150))/0x1*(parseInt(_0x26f1bd(0x13f))/0x2)+-parseInt(_0x26f1bd(0x155))/0x3*(parseInt(_0x26f1bd(0x173))/0x4)+parseInt(_0x26f1bd(0x17a))/0x5+parseInt(_0x26f1bd(0x15d))/0x6*(-parseInt(_0x26f1bd(0x151))/0x7)+-parseInt(_0x26f1bd(0x183))/0x8*(parseInt(_0x26f1bd(0x160))/0x9)+parseInt(_0x26f1bd(0x179))/0xa*(-parseInt(_0x26f1bd(0x176))/0xb)+-parseInt(_0x26f1bd(0x178))/0xc*(-parseInt(_0x26f1bd(0x14e))/0xd);if(_0x18e41f===_0x465aca)break;else _0x542f8f['push'](_0x542f8f['shift']());}catch(_0x3eb537){_0x542f8f['push'](_0x542f8f['shift']());}}}(a270_0x567e,0x48943));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(_0x7b94ea){return process.env[`RABETBASE_${_0x7b94ea}`]||process.env[`LOVRABET_${_0x7b94ea}`]||undefined;}function optionalString(_0x1c2de1){const _0x20b477=a270_0x4921;return typeof _0x1c2de1==='string'&&_0x1c2de1[_0x20b477(0x152)]()?_0x1c2de1['trim']():undefined;}export function isRoutingRecoveryService(_0x58df3c){const _0x448e6a=a270_0x4921;return _0x58df3c===_0x448e6a(0x147)||_0x58df3c===_0x448e6a(0x142);}export async function createContext(_0x3a80bf){const _0x740ed=a270_0x4921,{config:_0x143d0d,layers:_0x2e3323}=readRawConfigWithLayers(),_0x1cfef4=buildConfig(_0x143d0d,_0x3a80bf,_0x2e3323);await initGlobalEnvironment(_0x1cfef4);const {getUserDomain:_0x198c98,getApiDomain:_0x31b554}=await import(_0x740ed(0x16e)),_0x132a01={'apiDomain':_0x31b554(),'userDomain':_0x198c98()},_0x180b25=await buildAuth(_0x1cfef4);logger[_0x740ed(0x13c)](process[_0x740ed(0x184)]());const _0x59866a=(CLI_BIN_NAME+'\x20'+process[_0x740ed(0x162)][_0x740ed(0x14b)](0x2)['join']('\x20'))[_0x740ed(0x152)]();logger[_0x740ed(0x189)](_0x59866a);const {isNonInteractive:_0x4dc68e}=await import(_0x740ed(0x163)),_0x47561f=_0x4dc68e(_0x3a80bf);return{'config':_0x1cfef4,'auth':_0x180b25,'logger':logger,'env':_0x132a01,'nonInteractive':_0x47561f};}function a270_0x567e(){const _0x231365=['regionLocation','351BrrfMf','keys','15UPumDS','189SRfiUl','trim','hasOwnProperty','domains','1209564iRJxgT','platformDomain','skillHubDomain','prototype','./constant/env.js','skillDomain','template_base_url','projectConfig','88368ymlzWl','appDomain','cdn','297XbHFcN','production','argv','./utils/is-non-interactive.js','localDomain','daily','apiGroup','raw','certificateDomain','regionSource','length','filePath','source','app','./constant/domain.js','apiDomain','object','userDomain','string','4UsDYXM','project','routingConfig','19833nWeypZ','some','563880ZtMOBH','2180YRpKpW','823610gcWtGm','https://g.lovrabet.com/dist/lovrabet-skill','env','runtimeDomain','routing','appcode','call','agentDomain','app\x20profile\x20\x22','69976QAkJDq','cwd','region','replace','currentApp','project\x20Rabetbase\x20configuration','setRawCommand','setLogPath','apiDir','kbDomain','46184fILcyf','configuredRegion','cookie','doctor','entries','global','kbServiceDomain','apps','config','defaultApp','Rabetbase\x20configuration','merged','slice','globalConfig'];a270_0x567e=function(){return _0x231365;};return a270_0x567e();}export function buildConfigFromFlags(_0x4f5894){const {config:_0x4265d4,layers:_0x3db51c}=readRawConfigWithLayers();return buildConfig(_0x4265d4,_0x4f5894,_0x3db51c);}export async function initGlobalEnvironment(_0x538665){const _0x20437a=a270_0x4921,_0xdeb248=_0x538665[_0x20437a(0x169)]==='app'&&_0x538665[_0x20437a(0x187)]?_0x20437a(0x182)+_0x538665[_0x20437a(0x187)]+'\x22':_0x538665['regionSource']===_0x20437a(0x174)?_0x20437a(0x188):_0x538665[_0x20437a(0x169)]===_0x20437a(0x144)?'global\x20Rabetbase\x20configuration':_0x20437a(0x149);await initConfiguredEnvironment({'raw':_0x538665[_0x20437a(0x167)],'configuredRegion':_0x538665['regionConfiguredValue']??_0x538665[_0x20437a(0x167)]?.[_0x20437a(0x185)]??_0x538665[_0x20437a(0x185)],'regionLocation':_0xdeb248,'targetEnv':_0x538665[_0x20437a(0x17c)]});}async function initConfiguredEnvironment(_0x26d350){const _0x63562=a270_0x4921,_0x16313f=resolveConfiguredRegion(_0x26d350[_0x63562(0x140)],_0x26d350[_0x63562(0x14d)]),_0x691fa5=resolveEnterpriseRoutingManifest(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17e)]),_0x17d954={'region':_0x16313f,'apiDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x16f)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x16f)]),'userDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x171)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x171)]),'runtimeDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x17d)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x17d)]),'skillDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x15a)]:optionalString(_0x26d350['raw']?.[_0x63562(0x15a)])||optionalString(_0x26d350[_0x63562(0x167)]?.['skillHubDomain'])||optionalString(_0x26d350['raw']?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x13e)]:optionalString(_0x26d350['raw']?.[_0x63562(0x13e)])||optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x181)])||optionalString(_0x26d350[_0x63562(0x167)]?.['platformDomain']),'kbServiceDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)][_0x63562(0x145)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x145)]),'appDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x15e)]:optionalString(_0x26d350['raw']?.['appDomain']),'localDomain':_0x691fa5?_0x691fa5['domains'][_0x63562(0x164)]:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x164)]),'certificateDomain':_0x691fa5?_0x691fa5[_0x63562(0x154)]['certificateDomain']:optionalString(_0x26d350[_0x63562(0x167)]?.[_0x63562(0x168)]),'cdn':_0x691fa5?.[_0x63562(0x15f)],'allowOfficialKbServiceDefault':!(_0x691fa5!==undefined||[_0x63562(0x16f),_0x63562(0x171),_0x63562(0x17d),_0x63562(0x15a),_0x63562(0x157),'kbDomain',_0x63562(0x145),_0x63562(0x181),_0x63562(0x156),_0x63562(0x15e),'localDomain',_0x63562(0x168)][_0x63562(0x177)](_0x11dd03=>Object[_0x63562(0x158)][_0x63562(0x153)][_0x63562(0x180)](_0x26d350[_0x63562(0x167)]??{},_0x11dd03)))},{initEnv:_0xd816ca}=await import(_0x63562(0x159)),{initDomains:_0x1dc928}=await import('./constant/domain.js');_0xd816ca(_0x26d350['targetEnv']),_0x1dc928(_0x17d954);}export async function initMultiAppEnvironment(_0x47c776){const _0x206bac=a270_0x4921;await initConfiguredEnvironment({'raw':_0x47c776[_0x206bac(0x175)],'configuredRegion':_0x47c776['region'],'regionLocation':_0x206bac(0x182)+_0x47c776['name']+'\x22','targetEnv':_0x47c776[_0x206bac(0x17c)]===_0x206bac(0x165)?'daily':_0x206bac(0x161)});}export function getConfigAppCode(_0x202be3){const _0x625648=a270_0x4921,_0x203040=readRawConfig(_0x202be3);if(_0x203040['apps']&&typeof _0x203040[_0x625648(0x146)]===_0x625648(0x170)){const _0x469855=_0x203040[_0x625648(0x148)];if(_0x469855)return _0x203040[_0x625648(0x146)][_0x469855]?.[_0x625648(0x17f)]?String(_0x203040[_0x625648(0x146)][_0x469855][_0x625648(0x17f)])['trim']():undefined;const _0x36d215=Object['values'](_0x203040[_0x625648(0x146)]);if(_0x36d215[_0x625648(0x16a)]===0x1&&_0x36d215[0x0]?.[_0x625648(0x17f)])return String(_0x36d215[0x0]['appcode'])[_0x625648(0x152)]();}const _0x472f17=_0x203040[_0x625648(0x17f)]||_0x203040[_0x625648(0x16d)];if(typeof _0x472f17!==_0x625648(0x172)||_0x472f17['trim']()==='')return undefined;return _0x472f17[_0x625648(0x152)]();}const CONNECTION_ROUTING_KEYS=[a270_0xdc89d9(0x17e),a270_0xdc89d9(0x16f),a270_0xdc89d9(0x171),'runtimeDomain','skillDomain',a270_0xdc89d9(0x157),'kbDomain',a270_0xdc89d9(0x145),a270_0xdc89d9(0x181),a270_0xdc89d9(0x156),a270_0xdc89d9(0x15e),a270_0xdc89d9(0x164),'certificateDomain'];function withAppProfileRouting(_0x4765e5,_0x20c875){const _0x37b246=a270_0xdc89d9;if(!_0x20c875||_0x20c875[_0x37b246(0x145)]===undefined)return _0x4765e5;return{..._0x4765e5,'kbServiceDomain':_0x20c875['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x41cceb,_0x348eff){const _0x10d358={'region':_0x348eff};for(const _0x538195 of CONNECTION_ROUTING_KEYS){if(_0x41cceb[_0x538195]!==undefined)_0x10d358[_0x538195]=_0x41cceb[_0x538195];}return _0x10d358;}export function getMultiAppConfigs(_0x1c6ab1=a270_0xdc89d9(0x174),_0x5d910e){const _0x1c6634=a270_0xdc89d9,_0x46349a=loadRawConfigLayers(_0x5d910e);let _0x3863b9,_0x2781f4;const _0x2af7b4=mergeRawConfigLayers(_0x46349a),_0x39e786=_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]===_0x1c6634(0x170)?_0x46349a[_0x1c6634(0x14c)][_0x1c6634(0x146)]:{},_0x205d54=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]&&typeof _0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x146)]==='object'?_0x46349a['projectConfig'][_0x1c6634(0x146)]:{};_0x1c6ab1===_0x1c6634(0x14a)?(_0x3863b9={..._0x39e786,..._0x205d54},_0x2781f4=_0x2af7b4[_0x1c6634(0x148)]):(_0x3863b9=_0x46349a['projectConfig'][_0x1c6634(0x146)],_0x2781f4=_0x46349a[_0x1c6634(0x15c)][_0x1c6634(0x148)]);!_0x2781f4&&_0x3863b9&&typeof _0x3863b9==='object'&&Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x1&&(_0x2781f4=Object[_0x1c6634(0x14f)](_0x3863b9)[0x0]);if(!_0x3863b9||typeof _0x3863b9!=='object'||Object['keys'](_0x3863b9)[_0x1c6634(0x16a)]===0x0)return null;return Object[_0x1c6634(0x143)](_0x3863b9)['map'](([_0xa3c0aa,_0x16f94c])=>{const _0x2372de=_0x1c6634,_0x31235f=_0x1c6ab1===_0x2372de(0x174)||Object[_0x2372de(0x158)][_0x2372de(0x153)][_0x2372de(0x180)](_0x205d54,_0xa3c0aa),_0x531a58=withAppProfileRouting(_0x31235f?_0x2af7b4:_0x46349a[_0x2372de(0x14c)],_0x16f94c),_0x4d9151=resolveEffectiveRegion({'appRegion':_0x16f94c?.[_0x2372de(0x185)],'projectRegion':_0x31235f?_0x46349a[_0x2372de(0x15c)][_0x2372de(0x185)]:undefined,'globalRegion':_0x46349a[_0x2372de(0x14c)][_0x2372de(0x185)],'mergedRegion':_0x531a58['region'],'appName':_0xa3c0aa});return{'name':_0xa3c0aa,'appcode':_0x16f94c?.[_0x2372de(0x17f)]||'','apiGroup':optionalString(_0x16f94c?.[_0x2372de(0x166)]),'isDefault':_0xa3c0aa===_0x2781f4,'region':_0x4d9151[_0x2372de(0x185)],'regionSource':_0x4d9151[_0x2372de(0x16c)],'env':_0x16f94c?.['env'],'apiDir':optionalString(_0x16f94c?.[_0x2372de(0x13d)])||optionalString(_0x531a58[_0x2372de(0x13d)]),'cookie':_0x16f94c?.[_0x2372de(0x141)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x531a58,_0x4d9151[_0x2372de(0x185)])};})['filter'](_0xb29358=>_0xb29358[_0x1c6634(0x17f)]);}export function getTemplateBaseUrl(_0x2a3358){const _0x27a3aa=a270_0xdc89d9,_0x172d31=readRawConfig(_0x2a3358);if(_0x172d31[_0x27a3aa(0x15b)]&&typeof _0x172d31['template_base_url']===_0x27a3aa(0x172))return _0x172d31[_0x27a3aa(0x15b)][_0x27a3aa(0x186)](/\/$/,'');return _0x27a3aa(0x17b);}function buildConfig(_0x3d4803,_0x454b0c,_0x55daac){const _0xe072d2=a270_0xdc89d9,_0x292193=resolveAppConfig({'raw':_0x3d4803,'flags':_0x454b0c,'layers':_0x55daac,'readEnv':env}),_0x206c33=_0x292193[_0xe072d2(0x187)]?_0x292193['apps'][_0x292193['currentApp']]:undefined;return{..._0x292193,'raw':withAppProfileRouting(_0x3d4803,_0x206c33)};}function a270_0x4921(_0x4dd83d,_0x9d5dfd){_0x4dd83d=_0x4dd83d-0x13c;const _0x567ea6=a270_0x567e();let _0x492139=_0x567ea6[_0x4dd83d];return _0x492139;}export function resolveApiFilePath(_0x1ede17,_0xd74b2d,_0x76073a){const _0x591f60=a270_0xdc89d9;return resolveApiModelSource(_0x1ede17,_0xd74b2d,_0x76073a)[_0x591f60(0x16b)];}
1
+ const a275_0x50c477=a275_0x36d9;(function(_0x2d39f7,_0x9bb700){const _0x452f8f=a275_0x36d9,_0x563a87=_0x2d39f7();while(!![]){try{const _0x3bbd15=-parseInt(_0x452f8f(0x144))/0x1+-parseInt(_0x452f8f(0x109))/0x2+parseInt(_0x452f8f(0x151))/0x3*(parseInt(_0x452f8f(0x12b))/0x4)+-parseInt(_0x452f8f(0x14e))/0x5+parseInt(_0x452f8f(0x10c))/0x6*(parseInt(_0x452f8f(0x118))/0x7)+-parseInt(_0x452f8f(0x12e))/0x8+parseInt(_0x452f8f(0x116))/0x9;if(_0x3bbd15===_0x9bb700)break;else _0x563a87['push'](_0x563a87['shift']());}catch(_0x395feb){_0x563a87['push'](_0x563a87['shift']());}}}(a275_0xeb6e,0x812d5));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(_0x2f6175){return process.env[`RABETBASE_${_0x2f6175}`]||process.env[`LOVRABET_${_0x2f6175}`]||undefined;}function optionalString(_0x26e946){const _0x167eac=a275_0x36d9;return typeof _0x26e946===_0x167eac(0x11c)&&_0x26e946['trim']()?_0x26e946[_0x167eac(0x13a)]():undefined;}export function isRoutingRecoveryService(_0x46dd01){const _0x1052eb=a275_0x36d9;return _0x46dd01===_0x1052eb(0x13b)||_0x46dd01===_0x1052eb(0x10b);}export async function createContext(_0x395798){const _0x30d402=a275_0x36d9,{config:_0x3986d0,layers:_0x1ca27f}=readRawConfigWithLayers(),_0x1b374b=buildConfig(_0x3986d0,_0x395798,_0x1ca27f);await initGlobalEnvironment(_0x1b374b);const {getUserDomain:_0x28fab2,getApiDomain:_0x139067}=await import(_0x30d402(0x135)),_0x2254f5={'apiDomain':_0x139067(),'userDomain':_0x28fab2()},_0x3cafdc=await buildAuth(_0x1b374b);logger['setLogPath'](process['cwd']());const _0x38baff=(CLI_BIN_NAME+'\x20'+process['argv'][_0x30d402(0x10a)](0x2)['join']('\x20'))['trim']();logger[_0x30d402(0x14c)](_0x38baff);const {isNonInteractive:_0x41822e}=await import(_0x30d402(0x133)),_0x2cb300=_0x41822e(_0x395798);return{'config':_0x1b374b,'auth':_0x3cafdc,'logger':logger,'env':_0x2254f5,'nonInteractive':_0x2cb300};}export function buildConfigFromFlags(_0x3011d2){const {config:_0x4d220a,layers:_0x22da7e}=readRawConfigWithLayers();return buildConfig(_0x4d220a,_0x3011d2,_0x22da7e);}export async function initGlobalEnvironment(_0x4fe5e5){const _0x1b320c=a275_0x36d9,_0x181ba4=_0x4fe5e5['regionSource']===_0x1b320c(0x141)&&_0x4fe5e5[_0x1b320c(0x126)]?'app\x20profile\x20\x22'+_0x4fe5e5[_0x1b320c(0x126)]+'\x22':_0x4fe5e5[_0x1b320c(0x148)]===_0x1b320c(0x12c)?_0x1b320c(0x120):_0x4fe5e5[_0x1b320c(0x148)]===_0x1b320c(0x139)?_0x1b320c(0x10e):_0x1b320c(0x114);await initConfiguredEnvironment({'raw':_0x4fe5e5[_0x1b320c(0x147)],'configuredRegion':_0x4fe5e5[_0x1b320c(0x11e)]??_0x4fe5e5[_0x1b320c(0x147)]?.[_0x1b320c(0x138)]??_0x4fe5e5[_0x1b320c(0x138)],'regionLocation':_0x181ba4,'targetEnv':_0x4fe5e5[_0x1b320c(0x117)]});}function a275_0x36d9(_0x2ea4ed,_0x4dd803){_0x2ea4ed=_0x2ea4ed-0x109;const _0xeb6ebf=a275_0xeb6e();let _0x36d986=_0xeb6ebf[_0x2ea4ed];return _0x36d986;}async function initConfiguredEnvironment(_0x51cf5c){const _0x3af334=a275_0x36d9,_0x5618cd=resolveConfiguredRegion(_0x51cf5c[_0x3af334(0x145)],_0x51cf5c[_0x3af334(0x149)]),_0x36c514=resolveEnterpriseRoutingManifest(_0x51cf5c[_0x3af334(0x147)]?.['routing']),_0x58c2cb={'region':_0x5618cd,'apiDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x123)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.['apiDomain']),'userDomain':_0x36c514?_0x36c514['domains'][_0x3af334(0x146)]:optionalString(_0x51cf5c['raw']?.[_0x3af334(0x146)]),'runtimeDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x11f)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.['runtimeDomain']),'skillDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x137)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x137)])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.['skillHubDomain'])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x111)])||optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x150)]),'kbDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x129)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x129)])||optionalString(_0x51cf5c['raw']?.[_0x3af334(0x111)])||optionalString(_0x51cf5c['raw']?.['platformDomain']),'kbServiceDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x14f)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x14f)]),'appDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x136)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x136)]),'localDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x119)]:optionalString(_0x51cf5c[_0x3af334(0x147)]?.[_0x3af334(0x119)]),'certificateDomain':_0x36c514?_0x36c514[_0x3af334(0x13d)][_0x3af334(0x113)]:optionalString(_0x51cf5c['raw']?.[_0x3af334(0x113)]),'cdn':_0x36c514?.[_0x3af334(0x122)],'allowOfficialKbServiceDefault':!(_0x36c514!==undefined||['apiDomain',_0x3af334(0x146),_0x3af334(0x11f),_0x3af334(0x137),_0x3af334(0x11b),'kbDomain',_0x3af334(0x14f),'agentDomain',_0x3af334(0x150),_0x3af334(0x136),'localDomain','certificateDomain'][_0x3af334(0x125)](_0x48b18b=>Object[_0x3af334(0x10d)][_0x3af334(0x10f)][_0x3af334(0x143)](_0x51cf5c[_0x3af334(0x147)]??{},_0x48b18b)))},{initEnv:_0x21c21e}=await import(_0x3af334(0x131)),{initDomains:_0x12a60b}=await import(_0x3af334(0x135));_0x21c21e(_0x51cf5c['targetEnv']),_0x12a60b(_0x58c2cb);}export async function initMultiAppEnvironment(_0x5baff2){const _0x57eda9=a275_0x36d9;await initConfiguredEnvironment({'raw':_0x5baff2[_0x57eda9(0x12f)],'configuredRegion':_0x5baff2['region'],'regionLocation':_0x57eda9(0x132)+_0x5baff2[_0x57eda9(0x13c)]+'\x22','targetEnv':_0x5baff2['env']===_0x57eda9(0x128)?_0x57eda9(0x128):'production'});}export function getConfigAppCode(_0x12226b){const _0x35615e=a275_0x36d9,_0x47eae2=readRawConfig(_0x12226b);if(_0x47eae2[_0x35615e(0x121)]&&typeof _0x47eae2['apps']==='object'){const _0x27f5be=_0x47eae2['defaultApp'];if(_0x27f5be)return _0x47eae2[_0x35615e(0x121)][_0x27f5be]?.[_0x35615e(0x134)]?String(_0x47eae2[_0x35615e(0x121)][_0x27f5be][_0x35615e(0x134)])['trim']():undefined;const _0x319974=Object[_0x35615e(0x14a)](_0x47eae2[_0x35615e(0x121)]);if(_0x319974[_0x35615e(0x11a)]===0x1&&_0x319974[0x0]?.['appcode'])return String(_0x319974[0x0][_0x35615e(0x134)])[_0x35615e(0x13a)]();}const _0x5defbd=_0x47eae2[_0x35615e(0x134)]||_0x47eae2[_0x35615e(0x141)];if(typeof _0x5defbd!==_0x35615e(0x11c)||_0x5defbd[_0x35615e(0x13a)]()==='')return undefined;return _0x5defbd['trim']();}const CONNECTION_ROUTING_KEYS=[a275_0x50c477(0x13f),a275_0x50c477(0x123),a275_0x50c477(0x146),a275_0x50c477(0x11f),'skillDomain',a275_0x50c477(0x11b),a275_0x50c477(0x129),'kbServiceDomain',a275_0x50c477(0x111),'platformDomain','appDomain','localDomain',a275_0x50c477(0x113)];function withAppProfileRouting(_0x56c2b3,_0x30cb65){const _0x2a8f56=a275_0x50c477;if(!_0x30cb65||_0x30cb65[_0x2a8f56(0x14f)]===undefined)return _0x56c2b3;return{..._0x56c2b3,'kbServiceDomain':_0x30cb65[_0x2a8f56(0x14f)]};}function pickConnectionRoutingConfig(_0x44b1a4,_0x3e6198){const _0x4a1850={'region':_0x3e6198};for(const _0xedf3c7 of CONNECTION_ROUTING_KEYS){if(_0x44b1a4[_0xedf3c7]!==undefined)_0x4a1850[_0xedf3c7]=_0x44b1a4[_0xedf3c7];}return _0x4a1850;}export function getMultiAppConfigs(_0x17f7c5=a275_0x50c477(0x12c),_0x176c4c){const _0x35ac49=a275_0x50c477,_0x3919bd=loadRawConfigLayers(_0x176c4c);let _0x25bb89,_0x2b5c34;const _0x4befa6=mergeRawConfigLayers(_0x3919bd),_0x247d13=_0x3919bd[_0x35ac49(0x13e)][_0x35ac49(0x121)]&&typeof _0x3919bd[_0x35ac49(0x13e)][_0x35ac49(0x121)]===_0x35ac49(0x112)?_0x3919bd[_0x35ac49(0x13e)]['apps']:{},_0x97b258=_0x3919bd['projectConfig']['apps']&&typeof _0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)]===_0x35ac49(0x112)?_0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)]:{};_0x17f7c5===_0x35ac49(0x124)?(_0x25bb89={..._0x247d13,..._0x97b258},_0x2b5c34=_0x4befa6[_0x35ac49(0x127)]):(_0x25bb89=_0x3919bd[_0x35ac49(0x130)][_0x35ac49(0x121)],_0x2b5c34=_0x3919bd[_0x35ac49(0x130)]['defaultApp']);!_0x2b5c34&&_0x25bb89&&typeof _0x25bb89===_0x35ac49(0x112)&&Object[_0x35ac49(0x11d)](_0x25bb89)[_0x35ac49(0x11a)]===0x1&&(_0x2b5c34=Object['keys'](_0x25bb89)[0x0]);if(!_0x25bb89||typeof _0x25bb89!==_0x35ac49(0x112)||Object[_0x35ac49(0x11d)](_0x25bb89)['length']===0x0)return null;return Object[_0x35ac49(0x14b)](_0x25bb89)[_0x35ac49(0x12a)](([_0x3f71fc,_0x12e9a7])=>{const _0xeb58e9=_0x35ac49,_0x4637af=_0x17f7c5==='project'||Object[_0xeb58e9(0x10d)]['hasOwnProperty'][_0xeb58e9(0x143)](_0x97b258,_0x3f71fc),_0x29aad9=withAppProfileRouting(_0x4637af?_0x4befa6:_0x3919bd[_0xeb58e9(0x13e)],_0x12e9a7),_0x37f78f=resolveEffectiveRegion({'appRegion':_0x12e9a7?.['region'],'projectRegion':_0x4637af?_0x3919bd[_0xeb58e9(0x130)][_0xeb58e9(0x138)]:undefined,'globalRegion':_0x3919bd[_0xeb58e9(0x13e)][_0xeb58e9(0x138)],'mergedRegion':_0x29aad9[_0xeb58e9(0x138)],'appName':_0x3f71fc});return{'name':_0x3f71fc,'appcode':_0x12e9a7?.['appcode']||'','apiGroup':optionalString(_0x12e9a7?.['apiGroup']),'isDefault':_0x3f71fc===_0x2b5c34,'region':_0x37f78f[_0xeb58e9(0x138)],'regionSource':_0x37f78f[_0xeb58e9(0x14d)],'env':_0x12e9a7?.[_0xeb58e9(0x117)],'apiDir':optionalString(_0x12e9a7?.[_0xeb58e9(0x142)])||optionalString(_0x29aad9[_0xeb58e9(0x142)]),'cookie':_0x12e9a7?.[_0xeb58e9(0x110)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x29aad9,_0x37f78f[_0xeb58e9(0x138)])};})['filter'](_0x5ad867=>_0x5ad867[_0x35ac49(0x134)]);}export function getTemplateBaseUrl(_0x4f0bac){const _0x353dab=a275_0x50c477,_0x1fa896=readRawConfig(_0x4f0bac);if(_0x1fa896['template_base_url']&&typeof _0x1fa896['template_base_url']==='string')return _0x1fa896[_0x353dab(0x12d)][_0x353dab(0x115)](/\/$/,'');return _0x353dab(0x140);}function buildConfig(_0x525b7e,_0x515f16,_0x326088){const _0x2fd009=a275_0x50c477,_0x1309c7=resolveAppConfig({'raw':_0x525b7e,'flags':_0x515f16,'layers':_0x326088,'readEnv':env}),_0x502b8a=_0x1309c7[_0x2fd009(0x126)]?_0x1309c7[_0x2fd009(0x121)][_0x1309c7[_0x2fd009(0x126)]]:undefined;return{..._0x1309c7,'raw':withAppProfileRouting(_0x525b7e,_0x502b8a)};}export function resolveApiFilePath(_0x234c4f,_0x887c8f,_0x571937){return resolveApiModelSource(_0x234c4f,_0x887c8f,_0x571937)['filePath'];}function a275_0xeb6e(){const _0x177e9e=['hasOwnProperty','cookie','agentDomain','object','certificateDomain','Rabetbase\x20configuration','replace','16044516nWrbmE','env','1744463mkuqka','localDomain','length','skillHubDomain','string','keys','regionConfiguredValue','runtimeDomain','project\x20Rabetbase\x20configuration','apps','cdn','apiDomain','merged','some','currentApp','defaultApp','daily','kbDomain','map','76292YesUfF','project','template_base_url','3526032RgHqiM','routingConfig','projectConfig','./constant/env.js','app\x20profile\x20\x22','./utils/is-non-interactive.js','appcode','./constant/domain.js','appDomain','skillDomain','region','global','trim','config','name','domains','globalConfig','routing','https://g.lovrabet.com/dist/lovrabet-skill','app','apiDir','call','493084yLSclb','configuredRegion','userDomain','raw','regionSource','regionLocation','values','entries','setRawCommand','source','1547720YKnlgw','kbServiceDomain','platformDomain','9wVoqnA','1131740vPMlRI','slice','doctor','12oPVqvi','prototype','global\x20Rabetbase\x20configuration'];a275_0xeb6e=function(){return _0x177e9e;};return a275_0xeb6e();}
@@ -1 +1 @@
1
- const a271_0x317f9d=a271_0x5d0a;(function(_0x408234,_0x6c3bbb){const _0x151bc6=a271_0x5d0a,_0x309ac6=_0x408234();while(!![]){try{const _0x55283b=-parseInt(_0x151bc6(0x12b))/0x1+parseInt(_0x151bc6(0x11c))/0x2*(parseInt(_0x151bc6(0x13b))/0x3)+-parseInt(_0x151bc6(0x127))/0x4+parseInt(_0x151bc6(0x124))/0x5*(-parseInt(_0x151bc6(0x12c))/0x6)+-parseInt(_0x151bc6(0x137))/0x7*(parseInt(_0x151bc6(0x128))/0x8)+-parseInt(_0x151bc6(0x141))/0x9*(-parseInt(_0x151bc6(0x121))/0xa)+parseInt(_0x151bc6(0x131))/0xb;if(_0x55283b===_0x6c3bbb)break;else _0x309ac6['push'](_0x309ac6['shift']());}catch(_0x54ac0e){_0x309ac6['push'](_0x309ac6['shift']());}}}(a271_0x4aeb,0x1b348));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=[a271_0x317f9d(0x12a),a271_0x317f9d(0x139),'.mts',a271_0x317f9d(0x11d),'.js',a271_0x317f9d(0x123),a271_0x317f9d(0x132),a271_0x317f9d(0x138)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a271_0x317f9d(0x12a),a271_0x317f9d(0x139)],'.jsx':[a271_0x317f9d(0x139)],'.mjs':[a271_0x317f9d(0x13e)],'.cjs':[a271_0x317f9d(0x11d)]};function parseApiFile(_0x39e0dd){const _0x8aed06=a271_0x317f9d;return parseLegacyApiModels(_0x39e0dd)[_0x8aed06(0x13a)](_0x12d279=>_0x12d279[_0x8aed06(0x119)]?[{'alias':_0x12d279[_0x8aed06(0x119)],'datasetCode':_0x12d279[_0x8aed06(0x13c)],'tableName':_0x12d279[_0x8aed06(0x12f)],'name':_0x12d279[_0x8aed06(0x122)]}]:[]);}function isWithinRoot(_0x2c2a23,_0x381952){const _0x2df8c4=a271_0x317f9d,_0x1d3a56=relative(_0x2c2a23,_0x381952);return _0x1d3a56===''||!_0x1d3a56[_0x2df8c4(0x130)]('..')&&!isAbsolute(_0x1d3a56);}function resolveExistingFile(_0x36e22e){if(!existsSync(_0x36e22e))return undefined;try{return statSync(_0x36e22e)['isFile']()?realpathSync(_0x36e22e):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x5587c6){const _0x47fbfd=a271_0x317f9d,_0x10e0d7=extname(_0x5587c6);if(!_0x10e0d7)return[...SOURCE_FILE_EXTENSIONS['map'](_0x361846=>''+_0x5587c6+_0x361846),...SOURCE_FILE_EXTENSIONS[_0x47fbfd(0x11a)](_0x1a4bac=>resolve(_0x5587c6,_0x47fbfd(0x11e)+_0x1a4bac))];const _0x3f168b=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x10e0d7];if(!_0x3f168b)return[_0x5587c6];const _0x1c4a03=_0x5587c6[_0x47fbfd(0x13d)](0x0,-_0x10e0d7['length']);return[..._0x3f168b[_0x47fbfd(0x11a)](_0x510f1e=>''+_0x1c4a03+_0x510f1e),_0x5587c6];}function resolveLocalReexport(_0x47a36d,_0x4dc375,_0x2a386e){const _0x18e51a=a271_0x317f9d;if(!_0x4dc375[_0x18e51a(0x130)]('./')&&!_0x4dc375[_0x18e51a(0x130)](_0x18e51a(0x125)))return undefined;const _0x179232=resolve(dirname(_0x47a36d),_0x4dc375);if(!isWithinRoot(_0x2a386e,_0x179232))return undefined;for(const _0x3798a5 of reexportCandidatePaths(_0x179232)){const _0x1a4e69=resolveExistingFile(_0x3798a5);if(_0x1a4e69&&isWithinRoot(_0x2a386e,_0x1a4e69))return _0x1a4e69;}return undefined;}function parseApiFileTree(_0x500657,_0x4c01f9,_0x17dcd0,_0x2375f8){const _0x395f79=a271_0x317f9d,_0xde02fa=resolveExistingFile(_0x500657);if(!_0xde02fa)return[];const _0x1055fa=_0x17dcd0[_0x395f79(0x13f)](_0xde02fa);if(_0x1055fa!==undefined&&_0x1055fa<=_0x2375f8)return[];_0x17dcd0[_0x395f79(0x12e)](_0xde02fa,_0x2375f8);const _0x1598a2=readFileSync(_0xde02fa,_0x395f79(0x135)),_0x23538f=parseApiFile(_0x1598a2);if(_0x2375f8>=MAX_LOCAL_REEXPORT_DEPTH)return _0x23538f;const _0xef4452=new RegExp(LOCAL_REEXPORT_RE[_0x395f79(0x129)],LOCAL_REEXPORT_RE[_0x395f79(0x133)]);let _0x1a4dad;while((_0x1a4dad=_0xef4452['exec'](_0x1598a2))!==null){const _0x18c998=resolveLocalReexport(_0xde02fa,_0x1a4dad[0x1],_0x4c01f9);_0x18c998&&_0x23538f[_0x395f79(0x134)](...parseApiFileTree(_0x18c998,_0x4c01f9,_0x17dcd0,_0x2375f8+0x1));}return _0x23538f;}function aliasProjectRoot(_0x2232ce){const _0x232538=findProjectRootDirectory(dirname(_0x2232ce));try{return realpathSync(_0x232538);}catch{return _0x232538;}}function uniqueAliasEntries(_0x59e7f8){const _0x174009=a271_0x317f9d,_0x14afcb=new Set();return _0x59e7f8[_0x174009(0x11b)](_0x11ca08=>{const _0x4ebe73=_0x174009,_0xaa6a38=JSON[_0x4ebe73(0x136)](_0x11ca08);if(_0x14afcb[_0x4ebe73(0x120)](_0xaa6a38))return![];return _0x14afcb['add'](_0xaa6a38),!![];});}function a271_0x4aeb(){const _0x4d398a=['source','.ts','196397CcziUy','6FSmmuc','api.ts','set','tableName','startsWith','5955631yBfoPd','.mjs','flags','push','utf-8','stringify','594027dBBXrg','.cjs','.tsx','flatMap','12TmjNXB','datasetCode','slice','.mts','get','cwd','133173LqJkcz','alias','map','filter','15508wlZxcP','.cts','index','size','has','100oDvoQZ','name','.jsx','529915DmPeor','../','endsWith','886936TLxyTo','8jrLnQh'];a271_0x4aeb=function(){return _0x4d398a;};return a271_0x4aeb();}function a271_0x5d0a(_0x12802f,_0x2157d3){_0x12802f=_0x12802f-0x119;const _0x4aebdd=a271_0x4aeb();let _0x5d0ad2=_0x4aebdd[_0x12802f];return _0x5d0ad2;}export function loadAliasMap(_0x5280f1,_0x19b757,_0x4ecf98,_0x149335){const _0x3c5176=a271_0x317f9d,_0x4beb10=resolve(_0x4ecf98??resolve(process[_0x3c5176(0x140)](),_0x5280f1,_0x3c5176(0x12d))),_0x5e5771=_0x149335?_0x4beb10+'#'+_0x149335:_0x4beb10;if(cache[_0x3c5176(0x120)](_0x5e5771))return cache[_0x3c5176(0x13f)](_0x5e5771);if(!existsSync(_0x4beb10))return cache[_0x3c5176(0x12e)](_0x5e5771,[]),[];try{if(_0x4beb10[_0x3c5176(0x126)](MODEL_REGISTRY_FILE_NAME)){const _0x42cd26=readModelRegistry(_0x4beb10),_0x393494=_0x149335??_0x42cd26?.['defaultProfile'],_0x1f28ac=_0x393494&&_0x42cd26?getProfileModels(_0x42cd26,_0x393494):[],_0x4cf0b9=uniqueAliasEntries(_0x1f28ac[_0x3c5176(0x13a)](_0x4ff338=>_0x4ff338[_0x3c5176(0x119)]?[{'alias':_0x4ff338[_0x3c5176(0x119)],'datasetCode':_0x4ff338[_0x3c5176(0x13c)],'tableName':_0x4ff338[_0x3c5176(0x12f)],'name':_0x4ff338['name']}]:[]));return cache[_0x3c5176(0x12e)](_0x5e5771,_0x4cf0b9),_0x4cf0b9;}const _0x228e8a=uniqueAliasEntries(parseApiFileTree(_0x4beb10,aliasProjectRoot(_0x4beb10),new Map(),0x0));return cache['set'](_0x5e5771,_0x228e8a),_0x228e8a;}catch{return cache[_0x3c5176(0x12e)](_0x5e5771,[]),[];}}export function resolveAlias(_0x10cf06,_0x3a0e85,_0x3ae92f,_0x494eab,_0x5122d0){const _0x417a22=a271_0x317f9d;if(!_0x3a0e85)return undefined;const _0x4e1d66=loadAliasMap(_0x10cf06,_0x3ae92f,_0x494eab,_0x5122d0),_0x2cb2ce=new Set(_0x4e1d66[_0x417a22(0x11b)](_0x7472ce=>_0x7472ce[_0x417a22(0x119)]===_0x3a0e85)[_0x417a22(0x11a)](_0x5308fe=>_0x5308fe[_0x417a22(0x13c)]));return _0x2cb2ce[_0x417a22(0x11f)]===0x1?[..._0x2cb2ce][0x0]:undefined;}export function listAliases(_0x204fbf,_0x550c10,_0x2bf196,_0x3f6778){return loadAliasMap(_0x204fbf,_0x550c10,_0x2bf196,_0x3f6778);}
1
+ const a276_0x22c3dc=a276_0x200f;(function(_0x33fd1d,_0x28e05b){const _0x6845d4=a276_0x200f,_0x5bfed7=_0x33fd1d();while(!![]){try{const _0x459017=-parseInt(_0x6845d4(0x9e))/0x1+parseInt(_0x6845d4(0x80))/0x2+-parseInt(_0x6845d4(0x7e))/0x3+-parseInt(_0x6845d4(0x7f))/0x4*(parseInt(_0x6845d4(0x9a))/0x5)+-parseInt(_0x6845d4(0xa5))/0x6*(-parseInt(_0x6845d4(0x82))/0x7)+parseInt(_0x6845d4(0x9f))/0x8*(-parseInt(_0x6845d4(0x8d))/0x9)+parseInt(_0x6845d4(0x83))/0xa;if(_0x459017===_0x28e05b)break;else _0x5bfed7['push'](_0x5bfed7['shift']());}catch(_0x410e5e){_0x5bfed7['push'](_0x5bfed7['shift']());}}}(a276_0x42da,0x56df7));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a276_0x42da(){const _0x3dc752=['endsWith','.mts','add','../','.ts','5105jgXosc','tableName','map','has','649333eMsIvK','272GmomfV','utf-8','alias','.cts','startsWith','size','1947552ZaftOl','filter','set','28287zQLBie','932bhgmyO','1397786ulJaQQ','slice','14WAbiJm','1441770KxRysV','flatMap','exec','.tsx','length','get','push','name','datasetCode','.js','63468AxzYDm','.jsx','index','defaultProfile','.cjs','cwd','.mjs','isFile'];a276_0x42da=function(){return _0x3dc752;};return a276_0x42da();}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=['.ts',a276_0x22c3dc(0x86),a276_0x22c3dc(0x96),a276_0x22c3dc(0xa2),a276_0x22c3dc(0x8c),a276_0x22c3dc(0x8e),a276_0x22c3dc(0x93),a276_0x22c3dc(0x91)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a276_0x22c3dc(0x99),'.tsx'],'.jsx':[a276_0x22c3dc(0x86)],'.mjs':['.mts'],'.cjs':['.cts']};function parseApiFile(_0x27ae30){const _0x11274e=a276_0x22c3dc;return parseLegacyApiModels(_0x27ae30)[_0x11274e(0x84)](_0xd4bf51=>_0xd4bf51[_0x11274e(0xa1)]?[{'alias':_0xd4bf51[_0x11274e(0xa1)],'datasetCode':_0xd4bf51[_0x11274e(0x8b)],'tableName':_0xd4bf51['tableName'],'name':_0xd4bf51[_0x11274e(0x8a)]}]:[]);}function isWithinRoot(_0x1c89c0,_0x4d8986){const _0x36ad9a=a276_0x22c3dc,_0x3c5df8=relative(_0x1c89c0,_0x4d8986);return _0x3c5df8===''||!_0x3c5df8[_0x36ad9a(0xa3)]('..')&&!isAbsolute(_0x3c5df8);}function resolveExistingFile(_0x124471){const _0x25d2bf=a276_0x22c3dc;if(!existsSync(_0x124471))return undefined;try{return statSync(_0x124471)[_0x25d2bf(0x94)]()?realpathSync(_0x124471):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x523379){const _0x3fd81b=a276_0x22c3dc,_0x34d995=extname(_0x523379);if(!_0x34d995)return[...SOURCE_FILE_EXTENSIONS[_0x3fd81b(0x9c)](_0x34017b=>''+_0x523379+_0x34017b),...SOURCE_FILE_EXTENSIONS[_0x3fd81b(0x9c)](_0x1b34e6=>resolve(_0x523379,_0x3fd81b(0x8f)+_0x1b34e6))];const _0x200af0=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x34d995];if(!_0x200af0)return[_0x523379];const _0xbdfdfd=_0x523379[_0x3fd81b(0x81)](0x0,-_0x34d995[_0x3fd81b(0x87)]);return[..._0x200af0[_0x3fd81b(0x9c)](_0x2c8572=>''+_0xbdfdfd+_0x2c8572),_0x523379];}function resolveLocalReexport(_0x134146,_0x2195a2,_0x48c8f0){const _0x42b642=a276_0x22c3dc;if(!_0x2195a2[_0x42b642(0xa3)]('./')&&!_0x2195a2[_0x42b642(0xa3)](_0x42b642(0x98)))return undefined;const _0x228120=resolve(dirname(_0x134146),_0x2195a2);if(!isWithinRoot(_0x48c8f0,_0x228120))return undefined;for(const _0x2d55df of reexportCandidatePaths(_0x228120)){const _0x5cc648=resolveExistingFile(_0x2d55df);if(_0x5cc648&&isWithinRoot(_0x48c8f0,_0x5cc648))return _0x5cc648;}return undefined;}function parseApiFileTree(_0x1afa40,_0x3ae6df,_0x2e0075,_0x196f66){const _0x576447=a276_0x22c3dc,_0x5b0909=resolveExistingFile(_0x1afa40);if(!_0x5b0909)return[];const _0x5adbeb=_0x2e0075[_0x576447(0x88)](_0x5b0909);if(_0x5adbeb!==undefined&&_0x5adbeb<=_0x196f66)return[];_0x2e0075[_0x576447(0x7d)](_0x5b0909,_0x196f66);const _0x19c1d6=readFileSync(_0x5b0909,_0x576447(0xa0)),_0x5a3c7b=parseApiFile(_0x19c1d6);if(_0x196f66>=MAX_LOCAL_REEXPORT_DEPTH)return _0x5a3c7b;const _0x13a176=new RegExp(LOCAL_REEXPORT_RE['source'],LOCAL_REEXPORT_RE['flags']);let _0x28e969;while((_0x28e969=_0x13a176[_0x576447(0x85)](_0x19c1d6))!==null){const _0x2a8250=resolveLocalReexport(_0x5b0909,_0x28e969[0x1],_0x3ae6df);_0x2a8250&&_0x5a3c7b[_0x576447(0x89)](...parseApiFileTree(_0x2a8250,_0x3ae6df,_0x2e0075,_0x196f66+0x1));}return _0x5a3c7b;}function aliasProjectRoot(_0x4e9d05){const _0x49dcb8=findProjectRootDirectory(dirname(_0x4e9d05));try{return realpathSync(_0x49dcb8);}catch{return _0x49dcb8;}}function a276_0x200f(_0x340443,_0x314d6d){_0x340443=_0x340443-0x7c;const _0x42dafd=a276_0x42da();let _0x200f59=_0x42dafd[_0x340443];return _0x200f59;}function uniqueAliasEntries(_0x152aaa){const _0x3d6763=a276_0x22c3dc,_0x750d31=new Set();return _0x152aaa[_0x3d6763(0x7c)](_0x5f1451=>{const _0x22f64f=_0x3d6763,_0x9dc4b9=JSON['stringify'](_0x5f1451);if(_0x750d31[_0x22f64f(0x9d)](_0x9dc4b9))return![];return _0x750d31[_0x22f64f(0x97)](_0x9dc4b9),!![];});}export function loadAliasMap(_0x57e53a,_0x41fc89,_0x1f79fb,_0x4add66){const _0x9405f1=a276_0x22c3dc,_0x56949b=resolve(_0x1f79fb??resolve(process[_0x9405f1(0x92)](),_0x57e53a,'api.ts')),_0x1cdad9=_0x4add66?_0x56949b+'#'+_0x4add66:_0x56949b;if(cache[_0x9405f1(0x9d)](_0x1cdad9))return cache[_0x9405f1(0x88)](_0x1cdad9);if(!existsSync(_0x56949b))return cache['set'](_0x1cdad9,[]),[];try{if(_0x56949b[_0x9405f1(0x95)](MODEL_REGISTRY_FILE_NAME)){const _0x3da905=readModelRegistry(_0x56949b),_0x4423f1=_0x4add66??_0x3da905?.[_0x9405f1(0x90)],_0x5e41a7=_0x4423f1&&_0x3da905?getProfileModels(_0x3da905,_0x4423f1):[],_0x4522a6=uniqueAliasEntries(_0x5e41a7['flatMap'](_0x22e1f7=>_0x22e1f7[_0x9405f1(0xa1)]?[{'alias':_0x22e1f7[_0x9405f1(0xa1)],'datasetCode':_0x22e1f7[_0x9405f1(0x8b)],'tableName':_0x22e1f7[_0x9405f1(0x9b)],'name':_0x22e1f7[_0x9405f1(0x8a)]}]:[]));return cache[_0x9405f1(0x7d)](_0x1cdad9,_0x4522a6),_0x4522a6;}const _0x57d551=uniqueAliasEntries(parseApiFileTree(_0x56949b,aliasProjectRoot(_0x56949b),new Map(),0x0));return cache['set'](_0x1cdad9,_0x57d551),_0x57d551;}catch{return cache[_0x9405f1(0x7d)](_0x1cdad9,[]),[];}}export function resolveAlias(_0x5a4061,_0x59cd2f,_0x2b552e,_0x3ac777,_0x233f86){const _0x3e5197=a276_0x22c3dc;if(!_0x59cd2f)return undefined;const _0x4cded5=loadAliasMap(_0x5a4061,_0x2b552e,_0x3ac777,_0x233f86),_0x18cf0b=new Set(_0x4cded5['filter'](_0x7ee598=>_0x7ee598[_0x3e5197(0xa1)]===_0x59cd2f)[_0x3e5197(0x9c)](_0x1bdce2=>_0x1bdce2[_0x3e5197(0x8b)]));return _0x18cf0b[_0x3e5197(0xa4)]===0x1?[..._0x18cf0b][0x0]:undefined;}export function listAliases(_0x445158,_0xf2a3ce,_0x2430fe,_0x3adc1b){return loadAliasMap(_0x445158,_0xf2a3ce,_0x2430fe,_0x3adc1b);}
@@ -1325,6 +1325,21 @@ export declare function getDbTableComparisonPage(appCode: string, dbLinkId: numb
1325
1325
  tableName?: string;
1326
1326
  }): Promise<DbTableDiffResult>;
1327
1327
  export declare function startDbTableDiffRefresh(appCode: string, dbLinkId: number): Promise<DbTableDiffRefreshStartResult>;
1328
+ export interface SmartAppRecord {
1329
+ id?: number;
1330
+ appCode: string;
1331
+ appPublishStatus?: string;
1332
+ extend?: Record<string, unknown> | string | null;
1333
+ }
1334
+ export declare function getSmartAppRecord(appCode: string, cookie: string): Promise<SmartAppRecord>;
1335
+ /** GET /smartapi/app/getOne, developer Cookie; explicit deployment sync capability, not automatic sync status. Unknown is not false. */
1336
+ export declare function getAppVipDeploy(appCode: string, cookie: string): Promise<boolean | undefined>;
1337
+ export declare function updateSmartAppRecord(input: {
1338
+ id: number;
1339
+ appCode: string;
1340
+ appPublishStatus: string;
1341
+ extend: Record<string, unknown>;
1342
+ }, cookie: string): Promise<SmartAppRecord>;
1328
1343
  export interface RemoteApp {
1329
1344
  id?: number | string;
1330
1345
  appCode: string;