@lovrabet/rabetbase-cli 2.5.8-beta.2 โ†’ 2.5.9-beta.1

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 (384) hide show
  1. package/README.md +6 -6
  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.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.d.ts +8 -5
  162. package/lib/commands/kb/shared.js +1 -1
  163. package/lib/commands/kb/update.js +1 -1
  164. package/lib/commands/logs/index.js +1 -1
  165. package/lib/commands/menu/asset-update.js +1 -1
  166. package/lib/commands/menu/delete.js +1 -1
  167. package/lib/commands/menu/external-link-create.js +1 -1
  168. package/lib/commands/menu/external-link-update.js +1 -1
  169. package/lib/commands/menu/group-create.js +1 -1
  170. package/lib/commands/menu/group-update.js +1 -1
  171. package/lib/commands/menu/index.js +1 -1
  172. package/lib/commands/menu/list.js +1 -1
  173. package/lib/commands/menu/move.js +1 -1
  174. package/lib/commands/menu/regroup-start.js +1 -1
  175. package/lib/commands/menu/rename.js +1 -1
  176. package/lib/commands/menu/shared/compare-table.js +1 -1
  177. package/lib/commands/menu/shared/delete-plan.js +1 -1
  178. package/lib/commands/menu/shared/facts.js +1 -1
  179. package/lib/commands/menu/shared/index.js +1 -1
  180. package/lib/commands/menu/shared/inquirer.js +1 -1
  181. package/lib/commands/menu/shared/local-pages.js +1 -1
  182. package/lib/commands/menu/shared/logic.js +1 -1
  183. package/lib/commands/menu/shared/mutations.js +1 -1
  184. package/lib/commands/menu/shared/path.js +1 -1
  185. package/lib/commands/menu/shared/service.js +1 -1
  186. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  187. package/lib/commands/menu/shared/sync-core.js +1 -1
  188. package/lib/commands/menu/shared/update-core.js +1 -1
  189. package/lib/commands/menu/shared/valid-url.js +1 -1
  190. package/lib/commands/menu/subapp-assets-status.js +1 -1
  191. package/lib/commands/menu/subapp-assets-update.js +1 -1
  192. package/lib/commands/menu/sync.js +1 -1
  193. package/lib/commands/menu/visibility-update.js +1 -1
  194. package/lib/commands/notification/config-create.js +1 -1
  195. package/lib/commands/notification/config-delete.js +1 -1
  196. package/lib/commands/notification/config-list.js +1 -1
  197. package/lib/commands/notification/config-update.js +1 -1
  198. package/lib/commands/notification/index.js +1 -1
  199. package/lib/commands/notification/shared.js +1 -1
  200. package/lib/commands/ocr/index.js +1 -1
  201. package/lib/commands/page/create.js +1 -1
  202. package/lib/commands/page/custom/detail.js +1 -1
  203. package/lib/commands/page/custom/list.js +1 -1
  204. package/lib/commands/page/custom/publish.js +1 -1
  205. package/lib/commands/page/custom/shared.js +1 -1
  206. package/lib/commands/page/custom/syntax.js +1 -1
  207. package/lib/commands/page/custom/update.js +1 -1
  208. package/lib/commands/page/data-list-status.js +1 -1
  209. package/lib/commands/page/generate-start.js +1 -1
  210. package/lib/commands/page/generate-status.js +1 -1
  211. package/lib/commands/page/index.js +1 -1
  212. package/lib/commands/page/pull.js +1 -1
  213. package/lib/commands/page/push.js +1 -1
  214. package/lib/commands/page/relation-audit.js +1 -1
  215. package/lib/commands/page/restore.js +1 -1
  216. package/lib/commands/page/shared.js +1 -1
  217. package/lib/commands/page/sync.js +1 -1
  218. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  219. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  220. package/lib/commands/project/create/format-elapsed.js +1 -1
  221. package/lib/commands/project/create/main.js +1 -1
  222. package/lib/commands/project/create/materialize-project-template.js +1 -1
  223. package/lib/commands/project/create/project-name.js +1 -1
  224. package/lib/commands/project/create/project-template-archive.js +1 -1
  225. package/lib/commands/project/create/project-template-path.js +1 -1
  226. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  227. package/lib/commands/project/create/use-format-code.js +1 -1
  228. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  229. package/lib/commands/project/domain-routing-sync.js +1 -1
  230. package/lib/commands/project/index.js +1 -1
  231. package/lib/commands/project/upgrade.js +1 -1
  232. package/lib/commands/registry.js +1 -1
  233. package/lib/commands/role/delete.js +1 -1
  234. package/lib/commands/role/detail.js +1 -1
  235. package/lib/commands/role/index.js +1 -1
  236. package/lib/commands/role/list.js +1 -1
  237. package/lib/commands/role/shared.js +1 -1
  238. package/lib/commands/role/update.js +1 -1
  239. package/lib/commands/role/user-add.js +1 -1
  240. package/lib/commands/role/user-remove.js +1 -1
  241. package/lib/commands/role/user-resolve.js +1 -1
  242. package/lib/commands/rule/get.js +1 -1
  243. package/lib/commands/rule/index.js +1 -1
  244. package/lib/commands/rule/list.js +1 -1
  245. package/lib/commands/rule/set.js +1 -1
  246. package/lib/commands/rule/shared.d.ts +5 -3
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +14 -11
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.js +1 -1
  303. package/lib/core/instant-api-policy/config.js +1 -1
  304. package/lib/core/kb-management-client.d.ts +2 -2
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +3 -1
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +1 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-kb.md +17 -15
  381. package/skills/rabetbase/references/rabetbase-rule.md +8 -6
  382. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  383. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  384. package/skills/rabetbase.manifest.json +3 -3
package/README.md CHANGED
@@ -149,10 +149,10 @@ exclusive.
149
149
  React and Ant Design. `cdn.lovrabet` is the HTTPS origin for Lovrabet-owned
150
150
  assets. Independent deployments declare both explicitly.
151
151
 
152
- Company knowledge management and V2 search use `kbServiceDomain` with the developer
152
+ Company knowledge management, app rules, and search use `kbServiceDomain` with the developer
153
153
  Cookie. Management requires a trusted HTTPS origin, rejects redirects, and sends
154
- `X-CSRF-Token: kb-browser-v1` on create/update/delete. App rules continue to use
155
- `kbDomain`. Management JSON requests are limited to 32 MiB; oversized input is
154
+ `X-CSRF-Token: kb-browser-v1` on create/update/delete. App rules use the same
155
+ `kbServiceDomain` and require a developer Cookie. Management JSON requests are limited to 32 MiB; oversized input is
156
156
  rejected without truncation. A missing independent-deployment `kbServiceDomain`
157
157
  must be configured before management commands can run.
158
158
 
@@ -295,12 +295,12 @@ Important options:
295
295
 
296
296
  Licensed under the terms in `LICENSE`.
297
297
 
298
- ### Direct knowledge search (V2)
298
+ ### Direct knowledge search
299
299
 
300
- `rabetbase kb search` calls KB Service V2 directly. Official Mainland China and Indonesia connections resolve the endpoint automatically; independent deployments use their configured `kbServiceDomain`:
300
+ `rabetbase kb search` calls the unified KB Service directly. Official Mainland China and Indonesia connections resolve the endpoint automatically; independent deployments use their configured `kbServiceDomain`:
301
301
 
302
302
  ```sh
303
303
  rabetbase kb search --appcode app-xxxxx --query "business rules" --format json
304
304
  ```
305
305
 
306
- V2 sends the current developer Cookie directly to `/v2/development/apps/{appCode}/knowledge/search` and returns public/company knowledge. `--kb-service-url` can override the trusted HTTPS origin for one request without persisting it. Global has no registered KB endpoint and does not borrow another region's address. Missing routes fail closed; redirects and switching endpoints after request failures are disabled. KB management commands keep their existing `kbDomain` routing. See [KB workflow](skills/rabetbase/references/rabetbase-kb.md).
306
+ Search sends the current developer Cookie directly to `/api/knowledge-base/search` and returns public/company knowledge. `--kb-service-url` can override the trusted HTTPS origin for one request without persisting it. Global has no registered KB endpoint and does not borrow another region's address. Missing routes fail closed; redirects and switching endpoints after request failures are disabled. Management and rule commands use the same trusted `kbServiceDomain`. Wire Result document IDs are decoded losslessly into strings; updates, deletes, and rule writes use server-side version compare-and-set. Company management uses `/api/knowledge-base/company/{operation}`; app rules use `/api/knowledge-base/company/rules/{operation}` and retain their app-owned `scope=rules` VO. All knowledge calls use POST JSON with appCode and document IDs in the body and scope selected by the path (no body.scope), without a protocol header; Result/VO responses are retained. Search sends explicit public/company scopes and preserves the existing development output profile. See [KB workflow](skills/rabetbase/references/rabetbase-kb.md).
@@ -1 +1 @@
1
- const a0_0x297126=a0_0x853c;function a0_0x853c(_0xf73362,_0x514bc3){_0xf73362=_0xf73362-0x1bd;const _0x395521=a0_0x3955();let _0x853c9f=_0x395521[_0xf73362];return _0x853c9f;}(function(_0x2e9a5f,_0x3af64d){const _0x5f1490=a0_0x853c,_0x4d98a5=_0x2e9a5f();while(!![]){try{const _0x171350=-parseInt(_0x5f1490(0x1c9))/0x1+-parseInt(_0x5f1490(0x1c4))/0x2+parseInt(_0x5f1490(0x1c5))/0x3+parseInt(_0x5f1490(0x1c0))/0x4*(-parseInt(_0x5f1490(0x1d6))/0x5)+parseInt(_0x5f1490(0x1bd))/0x6*(-parseInt(_0x5f1490(0x1cf))/0x7)+-parseInt(_0x5f1490(0x1c1))/0x8*(parseInt(_0x5f1490(0x1c8))/0x9)+-parseInt(_0x5f1490(0x1c6))/0xa*(-parseInt(_0x5f1490(0x1d3))/0xb);if(_0x171350===_0x3af64d)break;else _0x4d98a5['push'](_0x4d98a5['shift']());}catch(_0x1991bd){_0x4d98a5['push'](_0x4d98a5['shift']());}}}(a0_0x3955,0xb7c8b));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x299db0 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';function a0_0x3955(){const _0x23cf34=['Failed\x20to\x20generate\x20docs:\x20','datasetCode','log','4368063CIJniD','tableName','.md','push','11OzftHX','length','โœ“\x20Generated:\x20','1668085hAMYGj','.md\x20-\x20','api-doc','6vCvgqw','name','โœ—\x20Failed:\x20','12VWsNXJ','250568CaDUbA','success','./docs','2076506VjjSgL','1679328aqwdgH','48505740cMNrYK','message','144jdCrfK','1493322OogZQN','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','utf8'];a0_0x3955=function(){return _0x23cf34;};return a0_0x3955();}export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x323869){return new Promise(_0x51169b=>setTimeout(_0x51169b,_0x323869));}export async function generateDatasetDocs(_0x498ba4,_0x883d77,_0x1c08ea,_0xd25858=a0_0x297126(0x1c3),_0x5717fd,_0x24bd59){const _0x4e6446=a0_0x297126;mkdirSync(_0xd25858,{'recursive':!![]});const _0x113208=[],_0xadafb8=_0x498ba4[_0x4e6446(0x1d4)];console['log']('\x0a'+_0xadafb8+_0x4e6446(0x1ca));for(let _0x46751b=0x0;_0x46751b<_0x498ba4[_0x4e6446(0x1d4)];_0x46751b++){const _0x3b925b=_0x498ba4[_0x46751b],_0x56121e=_0x46751b+0x1,_0x3b34e3=_0x3b925b[_0x4e6446(0x1d0)];try{console[_0x4e6446(0x1ce)]('['+_0x56121e+'/'+_0xadafb8+']\x20Generating:\x20'+_0x3b34e3+'.md\x20('+_0x3b925b[_0x4e6446(0x1be)]+')');if(_0x5717fd)_0x5717fd(_0x56121e,_0xadafb8,_0x3b34e3);const _0x7b8cd=await fetchDatasetDoc({'appCode':_0x883d77,'cookie':_0x1c08ea,'datasetCode':_0x3b925b[_0x4e6446(0x1cd)],'datasetId':_0x3b925b['id'],'enableAI':![],'extraParams':_0x24bd59}),_0xc0f05d=a0_0x299db0['join'](_0xd25858,_0x3b34e3+_0x4e6446(0x1d1));writeFileSync(_0xc0f05d,_0x7b8cd,{'encoding':_0x4e6446(0x1cb)}),console[_0x4e6446(0x1ce)](_0x4e6446(0x1d5)+_0x3b34e3+_0x4e6446(0x1d1)),logger[_0x4e6446(0x1c2)](_0x4e6446(0x1d8),'Generated\x20docs\x20successfully:\x20'+_0x3b34e3,undefined,{'datasetCode':_0x3b925b['datasetCode'],'datasetName':_0x3b925b[_0x4e6446(0x1be)],'filePath':_0xc0f05d,'progress':_0x56121e+'/'+_0xadafb8}),_0x113208[_0x4e6446(0x1d2)]({'datasetCode':_0x3b925b[_0x4e6446(0x1cd)],'datasetName':_0x3b925b['name'],'filePath':_0xc0f05d,'success':!![]});if(_0x56121e<_0xadafb8)await delay(0x1388);}catch(_0x563bf6){const _0x453c6d=_0x563bf6 instanceof Error?_0x563bf6[_0x4e6446(0x1c7)]:String(_0x563bf6);console['log'](_0x4e6446(0x1bf)+_0x3b34e3+_0x4e6446(0x1d7)+_0x453c6d),logger['error'](_0x4e6446(0x1d8),_0x4e6446(0x1cc)+_0x3b925b[_0x4e6446(0x1cd)],{'datasetCode':_0x3b925b[_0x4e6446(0x1cd)],'datasetName':_0x3b925b[_0x4e6446(0x1be)],'error':_0x453c6d,'progress':_0x56121e+'/'+_0xadafb8}),_0x113208[_0x4e6446(0x1d2)]({'datasetCode':_0x3b925b[_0x4e6446(0x1cd)],'datasetName':_0x3b925b[_0x4e6446(0x1be)],'filePath':'','success':![],'error':_0x453c6d}),_0x56121e<_0xadafb8&&(console[_0x4e6446(0x1ce)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x113208;}
1
+ function a0_0x4b9a(_0x59d66a,_0x1ea5e0){_0x59d66a=_0x59d66a-0x1ec;const _0xd6cae5=a0_0xd6ca();let _0x4b9a7e=_0xd6cae5[_0x59d66a];return _0x4b9a7e;}const a0_0x4350b6=a0_0x4b9a;(function(_0x4a875d,_0x5a7537){const _0x39c6a6=a0_0x4b9a,_0x3a0cac=_0x4a875d();while(!![]){try{const _0xa8694a=-parseInt(_0x39c6a6(0x1f4))/0x1+parseInt(_0x39c6a6(0x1ff))/0x2*(parseInt(_0x39c6a6(0x209))/0x3)+parseInt(_0x39c6a6(0x204))/0x4+parseInt(_0x39c6a6(0x1f6))/0x5+parseInt(_0x39c6a6(0x207))/0x6*(-parseInt(_0x39c6a6(0x1f9))/0x7)+-parseInt(_0x39c6a6(0x203))/0x8+-parseInt(_0x39c6a6(0x1f2))/0x9;if(_0xa8694a===_0x5a7537)break;else _0x3a0cac['push'](_0x3a0cac['shift']());}catch(_0x3055a1){_0x3a0cac['push'](_0x3a0cac['shift']());}}}(a0_0xd6ca,0x8cd2d));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x137114 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function a0_0xd6ca(){const _0x5c2d19=['datasetCode','5694yHHITA','โœ“\x20Generated:\x20','18ZNrQLZ',']\x20Generating:\x20','./docs','utf8','api-doc','join','.md\x20-\x20','3575223yBeHKc','error','254541PEhavF','Generated\x20docs\x20successfully:\x20','1669845RmBeXS','success','โœ—\x20Failed:\x20','133XbsxeE','.md','length','message','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','log','101256yRUYUt','Failed\x20to\x20generate\x20docs:\x20','push','name','2121176elmthP','3496168qEPCfi','.md\x20('];a0_0xd6ca=function(){return _0x5c2d19;};return a0_0xd6ca();}function delay(_0x5ec5b8){return new Promise(_0x58edf1=>setTimeout(_0x58edf1,_0x5ec5b8));}export async function generateDatasetDocs(_0xe71fa1,_0x1034b1,_0x5aa092,_0x36ff1c=a0_0x4350b6(0x1ed),_0x5e7484,_0x48c79b){const _0x203a45=a0_0x4350b6;mkdirSync(_0x36ff1c,{'recursive':!![]});const _0xb5e195=[],_0x23b893=_0xe71fa1[_0x203a45(0x1fb)];console[_0x203a45(0x1fe)]('\x0a'+_0x23b893+_0x203a45(0x1fd));for(let _0x8ceda=0x0;_0x8ceda<_0xe71fa1[_0x203a45(0x1fb)];_0x8ceda++){const _0x5a355e=_0xe71fa1[_0x8ceda],_0xf867d=_0x8ceda+0x1,_0x598a8f=_0x5a355e['tableName'];try{console['log']('['+_0xf867d+'/'+_0x23b893+_0x203a45(0x1ec)+_0x598a8f+_0x203a45(0x205)+_0x5a355e[_0x203a45(0x202)]+')');if(_0x5e7484)_0x5e7484(_0xf867d,_0x23b893,_0x598a8f);const _0x137e56=await fetchDatasetDoc({'appCode':_0x1034b1,'cookie':_0x5aa092,'datasetCode':_0x5a355e['datasetCode'],'datasetId':_0x5a355e['id'],'enableAI':![],'extraParams':_0x48c79b}),_0x555067=a0_0x137114[_0x203a45(0x1f0)](_0x36ff1c,_0x598a8f+'.md');writeFileSync(_0x555067,_0x137e56,{'encoding':_0x203a45(0x1ee)}),console[_0x203a45(0x1fe)](_0x203a45(0x208)+_0x598a8f+_0x203a45(0x1fa)),logger[_0x203a45(0x1f7)](_0x203a45(0x1ef),_0x203a45(0x1f5)+_0x598a8f,undefined,{'datasetCode':_0x5a355e[_0x203a45(0x206)],'datasetName':_0x5a355e[_0x203a45(0x202)],'filePath':_0x555067,'progress':_0xf867d+'/'+_0x23b893}),_0xb5e195['push']({'datasetCode':_0x5a355e[_0x203a45(0x206)],'datasetName':_0x5a355e[_0x203a45(0x202)],'filePath':_0x555067,'success':!![]});if(_0xf867d<_0x23b893)await delay(0x1388);}catch(_0x101d34){const _0x4b11a8=_0x101d34 instanceof Error?_0x101d34[_0x203a45(0x1fc)]:String(_0x101d34);console[_0x203a45(0x1fe)](_0x203a45(0x1f8)+_0x598a8f+_0x203a45(0x1f1)+_0x4b11a8),logger[_0x203a45(0x1f3)]('api-doc',_0x203a45(0x200)+_0x5a355e[_0x203a45(0x206)],{'datasetCode':_0x5a355e[_0x203a45(0x206)],'datasetName':_0x5a355e[_0x203a45(0x202)],'error':_0x4b11a8,'progress':_0xf867d+'/'+_0x23b893}),_0xb5e195[_0x203a45(0x201)]({'datasetCode':_0x5a355e['datasetCode'],'datasetName':_0x5a355e[_0x203a45(0x202)],'filePath':'','success':![],'error':_0x4b11a8}),_0xf867d<_0x23b893&&(console[_0x203a45(0x1fe)]('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0xb5e195;}
@@ -1 +1 @@
1
- const a1_0x1554a2=a1_0x5b43;(function(_0x42b5ce,_0x4a2b5e){const _0x15b5b7=a1_0x5b43,_0x51117f=_0x42b5ce();while(!![]){try{const _0x3bd005=-parseInt(_0x15b5b7(0xa6))/0x1*(-parseInt(_0x15b5b7(0x9c))/0x2)+parseInt(_0x15b5b7(0x8c))/0x3*(parseInt(_0x15b5b7(0xa3))/0x4)+-parseInt(_0x15b5b7(0x9a))/0x5*(parseInt(_0x15b5b7(0x85))/0x6)+parseInt(_0x15b5b7(0x96))/0x7*(parseInt(_0x15b5b7(0x9e))/0x8)+-parseInt(_0x15b5b7(0xa0))/0x9*(-parseInt(_0x15b5b7(0x87))/0xa)+parseInt(_0x15b5b7(0x8b))/0xb*(-parseInt(_0x15b5b7(0x8f))/0xc)+-parseInt(_0x15b5b7(0x9d))/0xd;if(_0x3bd005===_0x4a2b5e)break;else _0x51117f['push'](_0x51117f['shift']());}catch(_0x1f361a){_0x51117f['push'](_0x51117f['shift']());}}}(a1_0xced8,0x313be));import a1_0x49a9a0 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x5e068c,_0x4c87ef=process[a1_0x1554a2(0x8d)]()){const _0x1f91ea=a1_0x1554a2;return a1_0x49a9a0[_0x1f91ea(0x8a)](_0x4c87ef,_0x5e068c);}function a1_0x5b43(_0x3dd75b,_0x2a076a){_0x3dd75b=_0x3dd75b-0x81;const _0xced817=a1_0xced8();let _0x5b43c2=_0xced817[_0x3dd75b];return _0x5b43c2;}function normalizedApiGroup(_0x46b9b5){const _0x1a75f0=a1_0x1554a2,_0x28d11b=_0x46b9b5?.[_0x1a75f0(0x91)]();return _0x28d11b||undefined;}export function resolveApiProfileLayouts(_0x7da22b,_0x5bafd8,_0x385a26=process['cwd']()){const _0x5c1f71=a1_0x1554a2,_0x31e118=_0x7da22b[_0x5c1f71(0x83)](_0x5bea75=>{const _0xafeeec=_0x5c1f71,_0x8e69be=_0x5bafd8(_0x5bea75);return{'app':_0x5bea75,'outputDir':_0x8e69be,'normalizedApiDir':normalizeApiDir(_0x8e69be,_0x385a26),'apiGroup':normalizedApiGroup(_0x5bea75[_0xafeeec(0x9b)])};}),_0x4b1a45=new Map();for(const _0x5e0628 of _0x31e118){if(!_0x5e0628[_0x5c1f71(0x9b)])continue;const _0x176e48=_0x4b1a45['get'](_0x5e0628[_0x5c1f71(0x9b)])??new Set();_0x176e48[_0x5c1f71(0x9f)](_0x5e0628[_0x5c1f71(0x94)]),_0x4b1a45['set'](_0x5e0628[_0x5c1f71(0x9b)],_0x176e48);}for(const [_0x1b3260,_0x3e74f2]of _0x4b1a45){if(_0x3e74f2[_0x5c1f71(0x89)]>0x1)throw CliErrors[_0x5c1f71(0xa5)](_0x5c1f71(0x98)+_0x1b3260+_0x5c1f71(0x99),_0x5c1f71(0x82));}const _0x1db964=new Map();for(const _0x5b4b0d of _0x31e118){const _0x45c197=_0x1db964[_0x5c1f71(0x93)](_0x5b4b0d[_0x5c1f71(0x94)])??[];_0x45c197[_0x5c1f71(0x88)](_0x5b4b0d),_0x1db964[_0x5c1f71(0x92)](_0x5b4b0d[_0x5c1f71(0x94)],_0x45c197);}for(const _0x4b2806 of _0x1db964[_0x5c1f71(0x84)]()){const _0x11b452=new Set(_0x4b2806[_0x5c1f71(0xa2)](_0x5884a4=>_0x5884a4['apiGroup']?[_0x5884a4['apiGroup']]:[]));if(_0x11b452[_0x5c1f71(0x89)]===0x0)continue;if(_0x11b452[_0x5c1f71(0x89)]>0x1||_0x4b2806[_0x5c1f71(0x86)](_0xea1329=>!_0xea1329[_0x5c1f71(0x9b)])){const _0x4a2efb=_0x4b2806[_0x5c1f71(0x83)](_0x526498=>_0x526498['app'][_0x5c1f71(0x8e)])[_0x5c1f71(0x97)](',\x20');throw CliErrors[_0x5c1f71(0xa5)](_0x5c1f71(0x90)+_0x4b2806[0x0][_0x5c1f71(0xa1)]+'\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.',_0x5c1f71(0x95)+_0x4a2efb+_0x5c1f71(0x81));}}return _0x31e118;}export function getRegistryGroup(_0x504793,_0x58505c){const _0x34c8ec=a1_0x1554a2;if(_0x58505c[_0x34c8ec(0x9b)])return _0x504793[_0x34c8ec(0xa4)](_0x403ece=>_0x403ece['apiGroup']===_0x58505c[_0x34c8ec(0x9b)]);const _0xcada74=_0x504793[_0x34c8ec(0xa4)](_0x2766f6=>_0x2766f6[_0x34c8ec(0x94)]===_0x58505c['normalizedApiDir']);return _0xcada74['length']===0x1?_0xcada74:undefined;}function a1_0xced8(){const _0x2887b2=['size','resolve','253APHLsr','1671IVmLJj','cwd','name','82404YwrqCa','API\x20directory\x20\x22','trim','set','get','normalizedApiDir','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','1260882yfbniT','join','API\x20group\x20\x22','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','15hfOjZi','apiGroup','836nSPVqy','11143639TjEpfB','16DKmJlH','add','27uWszBL','outputDir','flatMap','2476Khyvfu','filter','validation','505rwUuQP','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','map','values','19176kunKzE','some','1034230OpHXxp','push'];a1_0xced8=function(){return _0x2887b2;};return a1_0xced8();}
1
+ const a1_0x461b34=a1_0x5b52;function a1_0x5b52(_0x2e8f41,_0x4785a4){_0x2e8f41=_0x2e8f41-0x96;const _0x5b10a8=a1_0x5b10();let _0x5b5201=_0x5b10a8[_0x2e8f41];return _0x5b5201;}(function(_0x43bd2f,_0x2e3efc){const _0x4b9e74=a1_0x5b52,_0x3e66e1=_0x43bd2f();while(!![]){try{const _0x2f5bfa=parseInt(_0x4b9e74(0x9d))/0x1+parseInt(_0x4b9e74(0xb0))/0x2*(-parseInt(_0x4b9e74(0xa0))/0x3)+parseInt(_0x4b9e74(0x9a))/0x4*(parseInt(_0x4b9e74(0xb1))/0x5)+-parseInt(_0x4b9e74(0xab))/0x6+parseInt(_0x4b9e74(0xa7))/0x7+parseInt(_0x4b9e74(0x9b))/0x8*(parseInt(_0x4b9e74(0xa1))/0x9)+-parseInt(_0x4b9e74(0xa3))/0xa;if(_0x2f5bfa===_0x2e3efc)break;else _0x3e66e1['push'](_0x3e66e1['shift']());}catch(_0x1cafca){_0x3e66e1['push'](_0x3e66e1['shift']());}}}(a1_0x5b10,0xa0ec5));import a1_0x2781f7 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x4f1c28,_0x544de8=process[a1_0x461b34(0xa4)]()){const _0x4892dd=a1_0x461b34;return a1_0x2781f7[_0x4892dd(0xac)](_0x544de8,_0x4f1c28);}function normalizedApiGroup(_0x597306){const _0x588a0a=a1_0x461b34,_0x2a6720=_0x597306?.[_0x588a0a(0x9f)]();return _0x2a6720||undefined;}function a1_0x5b10(){const _0x527082=['normalizedApiDir','2343565LEinAM','values','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','map','1014042ulyprI','resolve','validation','apiGroup','join','758246lKblDe','5vRjhfp','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','some','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','name','get','size','set','filter','3132604nGZFqz','392afzoul','API\x20directory\x20\x22','99557fZmOzG','flatMap','trim','3hqfLeK','15381DTfHox','length','939730ApWFxi','cwd','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.'];a1_0x5b10=function(){return _0x527082;};return a1_0x5b10();}export function resolveApiProfileLayouts(_0x4af7d0,_0x4f4006,_0x4c9774=process['cwd']()){const _0x31c9c6=a1_0x461b34,_0x264625=_0x4af7d0[_0x31c9c6(0xaa)](_0x49a97b=>{const _0x265f3c=_0x31c9c6,_0x33322c=_0x4f4006(_0x49a97b);return{'app':_0x49a97b,'outputDir':_0x33322c,'normalizedApiDir':normalizeApiDir(_0x33322c,_0x4c9774),'apiGroup':normalizedApiGroup(_0x49a97b[_0x265f3c(0xae)])};}),_0x3c9356=new Map();for(const _0x1ff527 of _0x264625){if(!_0x1ff527[_0x31c9c6(0xae)])continue;const _0x3e3e90=_0x3c9356[_0x31c9c6(0x96)](_0x1ff527[_0x31c9c6(0xae)])??new Set();_0x3e3e90['add'](_0x1ff527[_0x31c9c6(0xa6)]),_0x3c9356[_0x31c9c6(0x98)](_0x1ff527['apiGroup'],_0x3e3e90);}for(const [_0x3495eb,_0x2f13c1]of _0x3c9356){if(_0x2f13c1[_0x31c9c6(0x97)]>0x1)throw CliErrors[_0x31c9c6(0xad)]('API\x20group\x20\x22'+_0x3495eb+_0x31c9c6(0xb4),_0x31c9c6(0xa5));}const _0x12e41f=new Map();for(const _0x5e2126 of _0x264625){const _0x36f79f=_0x12e41f[_0x31c9c6(0x96)](_0x5e2126['normalizedApiDir'])??[];_0x36f79f['push'](_0x5e2126),_0x12e41f[_0x31c9c6(0x98)](_0x5e2126['normalizedApiDir'],_0x36f79f);}for(const _0x4943c2 of _0x12e41f[_0x31c9c6(0xa8)]()){const _0x3d1fb7=new Set(_0x4943c2[_0x31c9c6(0x9e)](_0x38d7e1=>_0x38d7e1[_0x31c9c6(0xae)]?[_0x38d7e1[_0x31c9c6(0xae)]]:[]));if(_0x3d1fb7[_0x31c9c6(0x97)]===0x0)continue;if(_0x3d1fb7[_0x31c9c6(0x97)]>0x1||_0x4943c2[_0x31c9c6(0xb3)](_0x17450e=>!_0x17450e['apiGroup'])){const _0x153238=_0x4943c2['map'](_0x154cf6=>_0x154cf6['app'][_0x31c9c6(0xb5)])[_0x31c9c6(0xaf)](',\x20');throw CliErrors[_0x31c9c6(0xad)](_0x31c9c6(0x9c)+_0x4943c2[0x0]['outputDir']+'\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.',_0x31c9c6(0xb2)+_0x153238+_0x31c9c6(0xa9));}}return _0x264625;}export function getRegistryGroup(_0x5a927c,_0x560b56){const _0x5483af=a1_0x461b34;if(_0x560b56[_0x5483af(0xae)])return _0x5a927c[_0x5483af(0x99)](_0x479c1a=>_0x479c1a[_0x5483af(0xae)]===_0x560b56[_0x5483af(0xae)]);const _0x245f4a=_0x5a927c['filter'](_0x4905c0=>_0x4905c0[_0x5483af(0xa6)]===_0x560b56[_0x5483af(0xa6)]);return _0x245f4a[_0x5483af(0xa2)]===0x1?_0x245f4a:undefined;}
@@ -1 +1 @@
1
- function a2_0x5a23(_0x2079f6,_0xfd7db2){_0x2079f6=_0x2079f6-0x134;var _0x2bb37a=a2_0x2bb3();var _0x5a2334=_0x2bb37a[_0x2079f6];return _0x5a2334;}function a2_0x2bb3(){var _0x4559e1=['1047550UZrLCS','895464xMgNRr','9640mbEafa','287EyrcJp','3163950SxjpiR','236544JnDyRN','3141MbvPxa','1006AGCDqp','3ACygjO','710855EOGHZa'];a2_0x2bb3=function(){return _0x4559e1;};return a2_0x2bb3();}(function(_0xb0ab74,_0x1f3a0a){var _0xf9c127=a2_0x5a23,_0x264ac3=_0xb0ab74();while(!![]){try{var _0x36373b=-parseInt(_0xf9c127(0x138))/0x1*(-parseInt(_0xf9c127(0x13c))/0x2)+-parseInt(_0xf9c127(0x13d))/0x3*(-parseInt(_0xf9c127(0x136))/0x4)+parseInt(_0xf9c127(0x134))/0x5+-parseInt(_0xf9c127(0x13a))/0x6+-parseInt(_0xf9c127(0x135))/0x7+parseInt(_0xf9c127(0x137))/0x8*(-parseInt(_0xf9c127(0x13b))/0x9)+parseInt(_0xf9c127(0x139))/0xa;if(_0x36373b===_0x1f3a0a)break;else _0x264ac3['push'](_0x264ac3['shift']());}catch(_0x11878a){_0x264ac3['push'](_0x264ac3['shift']());}}}(a2_0x2bb3,0x35056));export{fetchModelList}from'../core/api-client.js';
1
+ function a2_0x5773(_0x37f69d,_0x5dc620){_0x37f69d=_0x37f69d-0x65;var _0x270ef9=a2_0x270e();var _0x5773e6=_0x270ef9[_0x37f69d];return _0x5773e6;}function a2_0x270e(){var _0x495600=['413928YdLCPu','2919498KQsfgD','22GCqhwN','788432gfgCDz','64274pxQHTe','3896028NkOeBu','84hzbEXX','1113318pTVRON','5CGXHrQ','11707250zhOYhB'];a2_0x270e=function(){return _0x495600;};return a2_0x270e();}(function(_0x539efc,_0x27ca13){var _0x3eb3f4=a2_0x5773,_0x358adb=_0x539efc();while(!![]){try{var _0x217f8a=parseInt(_0x3eb3f4(0x6c))/0x1*(parseInt(_0x3eb3f4(0x6a))/0x2)+parseInt(_0x3eb3f4(0x65))/0x3+-parseInt(_0x3eb3f4(0x6d))/0x4+parseInt(_0x3eb3f4(0x66))/0x5*(parseInt(_0x3eb3f4(0x69))/0x6)+-parseInt(_0x3eb3f4(0x6e))/0x7*(parseInt(_0x3eb3f4(0x6b))/0x8)+parseInt(_0x3eb3f4(0x68))/0x9+parseInt(_0x3eb3f4(0x67))/0xa;if(_0x217f8a===_0x27ca13)break;else _0x358adb['push'](_0x358adb['shift']());}catch(_0x35b913){_0x358adb['push'](_0x358adb['shift']());}}}(a2_0x270e,0x9887d));export{fetchModelList}from'../core/api-client.js';
@@ -1 +1 @@
1
- (function(_0x3d907f,_0xa0e16){const _0x39cfcc=a3_0x2122,_0x659f92=_0x3d907f();while(!![]){try{const _0x4e8275=parseInt(_0x39cfcc(0xe0))/0x1*(parseInt(_0x39cfcc(0xf5))/0x2)+parseInt(_0x39cfcc(0xef))/0x3+parseInt(_0x39cfcc(0x115))/0x4+-parseInt(_0x39cfcc(0xfc))/0x5+-parseInt(_0x39cfcc(0x10f))/0x6+parseInt(_0x39cfcc(0x107))/0x7*(parseInt(_0x39cfcc(0xf8))/0x8)+-parseInt(_0x39cfcc(0xee))/0x9;if(_0x4e8275===_0xa0e16)break;else _0x659f92['push'](_0x659f92['shift']());}catch(_0x307cb4){_0x659f92['push'](_0x659f92['shift']());}}}(a3_0x2229,0xc10c6));import a3_0x4b2040 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x16f003 from'node:path';function a3_0x2229(){const _0x41524c=['preserved','typescript','key','action','default','missing','replaceApiContent','30266217gJzGXd','4534062elNdlw','name','APP_','includes','test',',\x20env:\x20','128726mxWoNP','stringify','datasetCode','1520NgTmiZ','modelProfile','Please\x20configure\x20app\x20code\x20first\x20via\x20`','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','1729190ZqbvGp','format','none','refreshed','api.ts.tpl','client','defaultName','API\x20scaffold\x20written.','alias','basename','modelRuntime','51513cjjwkR','toUpperCase','LOVRABET','path','overwriteTypescript','resolve','Model\x20facts\x20refreshed.','api','1250754TMeQLc','{\x20apiConfigName:\x20','-client','overwritten','.ts','\x20config\x20set\x20app\x20<value>`','2816804SAPPpq','scaffoldMode','created','utf8','runtimeDomain','templates/generate-api','17lsUHSo','LOVRABET_RUNTIME_DOMAIN','map','dirname','existed','replace','join'];a3_0x2229=function(){return _0x41524c;};return a3_0x2229();}import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0x102ffc,_0x23a091){const _0x10ed23=a3_0x2122;if(!_0x23a091)return _0x102ffc?_0x10ed23(0xe7):_0x10ed23(0xec);return _0x102ffc?_0x10ed23(0x112):_0x10ed23(0x117);}function a3_0x2122(_0x3a2a06,_0x4dc6ab){_0x3a2a06=_0x3a2a06-0xdd;const _0x2229a3=a3_0x2229();let _0x2122a0=_0x2229a3[_0x3a2a06];return _0x2122a0;}export async function generateApiFile(_0x5cfb2d,_0x1d3be1,_0x345972,_0xde870b,_0x54ad6e,_0xb95165,_0x14ae07,_0x3dca28={},_0x35f76d={}){const _0x30adb5=a3_0x2122;if(!_0x345972)throw new Error(_0x30adb5(0xfa)+CLI_BIN_NAME+_0x30adb5(0x114));const _0x117999=_0xde870b&&!_0x14ae07,_0x32962b=!!_0x35f76d[_0x30adb5(0xf9)],_0x539570=_0x32962b||_0x117999,_0x33399f=_0x14ae07||_0x345972,_0x4d61d4=_0x32962b||_0x117999?_0x30adb5(0xeb):_0x33399f,_0x3e2838=_0x32962b||_0x117999?'CONFIG_NAMES.DEFAULT':JSON[_0x30adb5(0xf6)](_0x33399f),_0x11621a=!isProduction(_0x54ad6e),_0x172fbe=_0x11621a?_0x30adb5(0xf4)+JSON[_0x30adb5(0xf6)](_0x54ad6e):'',_0x19b585=_0x30adb5(0x110)+_0x3e2838+_0x172fbe+',\x20...LOVRABET_SDK_CONFIG\x20}',_0x3cd1f1=_0x32962b?'':_0x1d3be1,_0x1ac68e=_0x3cd1f1?_0x3cd1f1+'-api':_0x30adb5(0x10e),_0x87dc48=_0x3cd1f1?_0x3cd1f1+_0x30adb5(0x111):_0x30adb5(0x101),_0x1d4edb=_0x3cd1f1&&!/^app-[a-f0-9]+$/i['test'](_0x3cd1f1)?_0x3cd1f1[_0x30adb5(0xe5)](/-/g,'_')[_0x30adb5(0x108)]():_0x30adb5(0x109),_0x5796ae=/^\d/[_0x30adb5(0xf3)](_0x1d4edb)?_0x30adb5(0xf1)+_0x1d4edb:_0x1d4edb,_0x47500c=_0x5cfb2d[_0x30adb5(0xe2)](_0x361313=>({'datasetCode':_0x361313[_0x30adb5(0xf7)],'tableName':_0x361313['tableName'],'name':_0x361313[_0x30adb5(0xf0)]||'','alias':_0x361313[_0x30adb5(0x104)]||_0x361313[_0x30adb5(0xe9)]})),_0x38cc59=fileURLToPath(import.meta.url),_0x3f29d2=a3_0x16f003[_0x30adb5(0x10c)](a3_0x16f003[_0x30adb5(0xe3)](_0x38cc59),'../..'),_0x5672ec=a3_0x16f003[_0x30adb5(0xe6)](_0x3f29d2,_0x30adb5(0xdf)),_0x1c9a69=a3_0x16f003[_0x30adb5(0xe6)](_0x5672ec,_0x30adb5(0x100)),_0x69c028=a3_0x16f003[_0x30adb5(0xe6)](_0x5672ec,'client.ts.tpl'),_0x3cf4e6=_0xb95165;mkdirSync(_0x3cf4e6,{'recursive':!![]});const _0x3325f7=_0x32962b?{}:_0x3dca28,_0x52c8d5=await generateSdkConfigFile(_0x3cf4e6,_0x3325f7,_0x3cd1f1),_0x2e805e=a3_0x16f003['basename'](_0x52c8d5,_0x30adb5(0x113)),_0x14ecc4=a3_0x16f003['join'](_0x3cf4e6,_0x1ac68e+_0x30adb5(0x113)),_0x47d07e=a3_0x16f003['join'](_0x3cf4e6,_0x87dc48+_0x30adb5(0x113)),_0x52b60b=_0x35f76d[_0x30adb5(0x10b)]===!![],_0x1fa7e5=existsSync(_0x14ecc4),_0x3153dc=existsSync(_0x47d07e),_0x18ab4a=_0x35f76d[_0x30adb5(0x116)]??(_0x52b60b?_0x30adb5(0xe5):'missing'),_0x298cf9=_0x18ab4a===_0x30adb5(0xe5)||_0x18ab4a===_0x30adb5(0xec)&&!_0x1fa7e5,_0x264819=_0x18ab4a===_0x30adb5(0xe5)||_0x18ab4a===_0x30adb5(0xec)&&!_0x3153dc,_0x37c3a1=_0x35f76d[_0x30adb5(0xf9)]?updateModelRegistry({'outputDir':_0x3cf4e6,'profileName':_0x35f76d[_0x30adb5(0xf9)]['name'],'defaultProfile':_0x35f76d[_0x30adb5(0xf9)][_0x30adb5(0x102)],'appCode':_0x345972,'runtimeDomain':_0x35f76d[_0x30adb5(0xf9)][_0x30adb5(0xde)],'models':_0x47500c,'allowEmptyReplacement':_0x35f76d['allowEmptyModelReplacement']===!![]}):undefined,_0x4fe148=_0x37c3a1?a3_0x16f003[_0x30adb5(0xe6)](_0x3cf4e6,MODEL_RUNTIME_FILE_NAME):undefined,_0x214d0b=_0x4fe148?existsSync(_0x4fe148):![],_0x18055a=_0x32962b&&_0x18ab4a!==_0x30adb5(0xfe)?await renderModelRegistryScaffold(_0x3cf4e6):undefined;_0x4fe148&&_0x18055a&&writeFileSync(_0x4fe148,_0x18055a[_0x30adb5(0x106)],_0x30adb5(0xdd));const _0x1514b9=_0x47500c[0x0]?.[_0x30adb5(0x104)];if(_0x298cf9){const _0x1f01ff=_0x18055a?.[_0x30adb5(0x10e)]??readFileSync(_0x1c9a69,_0x30adb5(0xdd)),_0x152716=_0x32962b?_0x1f01ff:TemplateReplacer[_0x30adb5(0xed)](_0x1f01ff,_0x345972,_0x47500c,_0x1514b9,_0x1ac68e,_0x3e2838,undefined,_0x5796ae);writeFileSync(_0x14ecc4,await a3_0x4b2040[_0x30adb5(0xfd)](_0x152716,{'parser':_0x30adb5(0xe8)}),{'encoding':_0x30adb5(0xdd)});}if(_0x264819){const _0x3b8e17=_0x18055a?.['client']??readFileSync(_0x69c028,_0x30adb5(0xdd)),_0xb1f040=_0x32962b?_0x3b8e17:TemplateReplacer[_0x30adb5(0xed)](_0x3b8e17,_0x345972,_0x47500c,_0x1514b9,_0x1ac68e,_0x3e2838,_0x19b585,_0x5796ae,_0x2e805e);writeFileSync(_0x47d07e,await a3_0x4b2040['format'](_0xb1f040,{'parser':'typescript'}),{'encoding':_0x30adb5(0xdd)});}const _0xacea96=_0x47500c['length'],_0x2d1b7b={'api':{'path':_0x14ecc4,'action':fileAction(_0x1fa7e5,_0x298cf9)},'client':{'path':_0x47d07e,'action':fileAction(_0x3153dc,_0x264819)},'sdkConfig':{'path':_0x52c8d5,'action':_0x30adb5(0xff)},..._0x37c3a1?{'modelRegistry':{'path':_0x37c3a1[_0x30adb5(0x10a)],'action':_0x37c3a1[_0x30adb5(0xe4)]?_0x30adb5(0xff):'created'},'modelRuntime':{'path':_0x4fe148,'action':_0x18055a?_0x214d0b?_0x30adb5(0xff):_0x30adb5(0x117):_0x214d0b?_0x30adb5(0xe7):_0x30adb5(0xec)}}:{}},_0x798047=existsSync(_0x14ecc4)&&readFileSync(_0x14ecc4,_0x30adb5(0xdd))['includes'](MODEL_REGISTRY_FILE_NAME[_0x30adb5(0xe5)](_0x30adb5(0x113),'')),_0x50dc6b=existsSync(_0x47d07e)&&readFileSync(_0x47d07e,_0x30adb5(0xdd))[_0x30adb5(0xf2)](_0x30adb5(0xe1)),_0x1a7106=_0x32962b?!_0x798047||!_0x50dc6b||!existsSync(_0x4fe148):![],_0x190c11=_0x32962b?_0x1a7106:_0x2d1b7b['api'][_0x30adb5(0xea)]==='preserved'||_0x2d1b7b['client']['action']===_0x30adb5(0xe7);return logger['success']('init-api',_0x190c11?a3_0x16f003[_0x30adb5(0x105)](_0x52c8d5)+_0x30adb5(0xfb):_0x32962b?_0x30adb5(0x10d):_0x30adb5(0x103),undefined,{'apiFile':_0x14ecc4,'clientFile':_0x47d07e,'sdkConfig':_0x52c8d5,'modelCount':_0xacea96,'configName':_0x4d61d4,'isDefaultConfig':_0x539570,'needsAgentMerge':_0x190c11,'needsProjectUpgrade':_0x1a7106,'files':_0x2d1b7b}),{'appCode':_0x345972,'modelCount':_0xacea96,'models':_0x47500c,'apiFilePath':_0x14ecc4,'clientFilePath':_0x47d07e,'sdkConfigPath':_0x52c8d5,'modelRegistryPath':_0x37c3a1?.[_0x30adb5(0x10a)],'modelRuntimePath':_0x4fe148,'modelProfile':_0x35f76d['modelProfile']?.[_0x30adb5(0xf0)],'configName':_0x4d61d4,'isDefaultConfig':_0x539570,'sdkRouting':_0x3325f7,'files':_0x2d1b7b,'needsAgentMerge':_0x190c11,'needsProjectUpgrade':_0x1a7106};}
1
+ function a3_0x5b02(){const _0x781d5c=['init-api','join','\x20config\x20set\x20app\x20<value>`','LOVRABET','toUpperCase','typescript','runtimeDomain','stringify','overwriteTypescript','api.ts.tpl','4852815suaRSm','resolve','utf8','APP_','{\x20apiConfigName:\x20','270644PlYLjv','name','alias','3741966pFbyyx',',\x20...LOVRABET_SDK_CONFIG\x20}','2179246OVskVB','existed','replace','includes','overwritten','created','test','defaultName','action','default','length','client','../..','preserved',',\x20env:\x20','.ts','scaffoldMode','basename','client.ts.tpl','dirname','246463nhbsjH','Please\x20configure\x20app\x20code\x20first\x20via\x20`','refreshed','modelRuntime','5352504nwETsK','api','3553732GDLouQ','tableName','LOVRABET_RUNTIME_DOMAIN','modelProfile','datasetCode','key','none','missing','40NZjLfI','format','path'];a3_0x5b02=function(){return _0x781d5c;};return a3_0x5b02();}(function(_0x5f33ec,_0x2d80fc){const _0xd5a933=a3_0x356c,_0xbc8bb9=_0x5f33ec();while(!![]){try{const _0x1772ee=parseInt(_0xd5a933(0x89))/0x1+parseInt(_0xd5a933(0x8e))/0x2+-parseInt(_0xd5a933(0x8c))/0x3+parseInt(_0xd5a933(0xa8))/0x4+-parseInt(_0xd5a933(0xbd))/0x5+parseInt(_0xd5a933(0xa6))/0x6+-parseInt(_0xd5a933(0xa2))/0x7*(parseInt(_0xd5a933(0xb0))/0x8);if(_0x1772ee===_0x2d80fc)break;else _0xbc8bb9['push'](_0xbc8bb9['shift']());}catch(_0x130fe6){_0xbc8bb9['push'](_0xbc8bb9['shift']());}}}(a3_0x5b02,0xb6566));import a3_0x2cef94 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x305a89 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a3_0x356c(_0xa43305,_0x14d3d1){_0xa43305=_0xa43305-0x89;const _0x5b0209=a3_0x5b02();let _0x356c4d=_0x5b0209[_0xa43305];return _0x356c4d;}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0x4e40d9,_0x703271){const _0x50aacc=a3_0x356c;if(!_0x703271)return _0x4e40d9?_0x50aacc(0x9b):_0x50aacc(0xaf);return _0x4e40d9?_0x50aacc(0x92):_0x50aacc(0x93);}export async function generateApiFile(_0x516226,_0x1c1a11,_0x30eafc,_0x38c396,_0x4adeca,_0x33d041,_0x119f8c,_0x35b4e0={},_0xf5bf18={}){const _0x1545e0=a3_0x356c;if(!_0x30eafc)throw new Error(_0x1545e0(0xa3)+CLI_BIN_NAME+_0x1545e0(0xb5));const _0x23de56=_0x38c396&&!_0x119f8c,_0x4491ff=!!_0xf5bf18[_0x1545e0(0xab)],_0x4d60bb=_0x4491ff||_0x23de56,_0x328966=_0x119f8c||_0x30eafc,_0xd9519f=_0x4491ff||_0x23de56?_0x1545e0(0x97):_0x328966,_0x1a6bed=_0x4491ff||_0x23de56?'CONFIG_NAMES.DEFAULT':JSON[_0x1545e0(0xba)](_0x328966),_0x5f0f96=!isProduction(_0x4adeca),_0x520d45=_0x5f0f96?_0x1545e0(0x9c)+JSON[_0x1545e0(0xba)](_0x4adeca):'',_0xf96ffd=_0x1545e0(0xc1)+_0x1a6bed+_0x520d45+_0x1545e0(0x8d),_0x5b15bd=_0x4491ff?'':_0x1c1a11,_0xa21ddb=_0x5b15bd?_0x5b15bd+'-api':_0x1545e0(0xa7),_0x2dc85d=_0x5b15bd?_0x5b15bd+'-client':'client',_0x2f1d3f=_0x5b15bd&&!/^app-[a-f0-9]+$/i[_0x1545e0(0x94)](_0x5b15bd)?_0x5b15bd[_0x1545e0(0x90)](/-/g,'_')[_0x1545e0(0xb7)]():_0x1545e0(0xb6),_0x2ceef4=/^\d/['test'](_0x2f1d3f)?_0x1545e0(0xc0)+_0x2f1d3f:_0x2f1d3f,_0x44d428=_0x516226['map'](_0x1713dc=>({'datasetCode':_0x1713dc[_0x1545e0(0xac)],'tableName':_0x1713dc[_0x1545e0(0xa9)],'name':_0x1713dc[_0x1545e0(0x8a)]||'','alias':_0x1713dc[_0x1545e0(0x8b)]||_0x1713dc[_0x1545e0(0xad)]})),_0x14f1e3=fileURLToPath(import.meta.url),_0x1e2ea9=a3_0x305a89[_0x1545e0(0xbe)](a3_0x305a89[_0x1545e0(0xa1)](_0x14f1e3),_0x1545e0(0x9a)),_0x471fdf=a3_0x305a89[_0x1545e0(0xb4)](_0x1e2ea9,'templates/generate-api'),_0x121a22=a3_0x305a89['join'](_0x471fdf,_0x1545e0(0xbc)),_0x2c0acd=a3_0x305a89[_0x1545e0(0xb4)](_0x471fdf,_0x1545e0(0xa0)),_0x3892b4=_0x33d041;mkdirSync(_0x3892b4,{'recursive':!![]});const _0x1ceebf=_0x4491ff?{}:_0x35b4e0,_0x2dba55=await generateSdkConfigFile(_0x3892b4,_0x1ceebf,_0x5b15bd),_0x3f4f34=a3_0x305a89[_0x1545e0(0x9f)](_0x2dba55,'.ts'),_0x315808=a3_0x305a89['join'](_0x3892b4,_0xa21ddb+_0x1545e0(0x9d)),_0x255589=a3_0x305a89['join'](_0x3892b4,_0x2dc85d+_0x1545e0(0x9d)),_0x35b553=_0xf5bf18[_0x1545e0(0xbb)]===!![],_0x37efea=existsSync(_0x315808),_0x37ebc=existsSync(_0x255589),_0x342dba=_0xf5bf18[_0x1545e0(0x9e)]??(_0x35b553?_0x1545e0(0x90):'missing'),_0x534807=_0x342dba===_0x1545e0(0x90)||_0x342dba==='missing'&&!_0x37efea,_0x1c80e1=_0x342dba===_0x1545e0(0x90)||_0x342dba===_0x1545e0(0xaf)&&!_0x37ebc,_0x10f2e0=_0xf5bf18[_0x1545e0(0xab)]?updateModelRegistry({'outputDir':_0x3892b4,'profileName':_0xf5bf18[_0x1545e0(0xab)][_0x1545e0(0x8a)],'defaultProfile':_0xf5bf18[_0x1545e0(0xab)][_0x1545e0(0x95)],'appCode':_0x30eafc,'runtimeDomain':_0xf5bf18['modelProfile'][_0x1545e0(0xb9)],'models':_0x44d428,'allowEmptyReplacement':_0xf5bf18['allowEmptyModelReplacement']===!![]}):undefined,_0x14d210=_0x10f2e0?a3_0x305a89['join'](_0x3892b4,MODEL_RUNTIME_FILE_NAME):undefined,_0x37c8de=_0x14d210?existsSync(_0x14d210):![],_0x521200=_0x4491ff&&_0x342dba!==_0x1545e0(0xae)?await renderModelRegistryScaffold(_0x3892b4):undefined;_0x14d210&&_0x521200&&writeFileSync(_0x14d210,_0x521200[_0x1545e0(0xa5)],_0x1545e0(0xbf));const _0x36958a=_0x44d428[0x0]?.[_0x1545e0(0x8b)];if(_0x534807){const _0x169e72=_0x521200?.[_0x1545e0(0xa7)]??readFileSync(_0x121a22,_0x1545e0(0xbf)),_0x334c39=_0x4491ff?_0x169e72:TemplateReplacer['replaceApiContent'](_0x169e72,_0x30eafc,_0x44d428,_0x36958a,_0xa21ddb,_0x1a6bed,undefined,_0x2ceef4);writeFileSync(_0x315808,await a3_0x2cef94[_0x1545e0(0xb1)](_0x334c39,{'parser':'typescript'}),{'encoding':'utf8'});}if(_0x1c80e1){const _0x3ae752=_0x521200?.[_0x1545e0(0x99)]??readFileSync(_0x2c0acd,'utf8'),_0xf8c13c=_0x4491ff?_0x3ae752:TemplateReplacer['replaceApiContent'](_0x3ae752,_0x30eafc,_0x44d428,_0x36958a,_0xa21ddb,_0x1a6bed,_0xf96ffd,_0x2ceef4,_0x3f4f34);writeFileSync(_0x255589,await a3_0x2cef94['format'](_0xf8c13c,{'parser':_0x1545e0(0xb8)}),{'encoding':_0x1545e0(0xbf)});}const _0x5a2d6d=_0x44d428[_0x1545e0(0x98)],_0x5e119a={'api':{'path':_0x315808,'action':fileAction(_0x37efea,_0x534807)},'client':{'path':_0x255589,'action':fileAction(_0x37ebc,_0x1c80e1)},'sdkConfig':{'path':_0x2dba55,'action':'refreshed'},..._0x10f2e0?{'modelRegistry':{'path':_0x10f2e0['path'],'action':_0x10f2e0[_0x1545e0(0x8f)]?_0x1545e0(0xa4):_0x1545e0(0x93)},'modelRuntime':{'path':_0x14d210,'action':_0x521200?_0x37c8de?_0x1545e0(0xa4):_0x1545e0(0x93):_0x37c8de?_0x1545e0(0x9b):_0x1545e0(0xaf)}}:{}},_0xa95ee4=existsSync(_0x315808)&&readFileSync(_0x315808,_0x1545e0(0xbf))['includes'](MODEL_REGISTRY_FILE_NAME['replace'](_0x1545e0(0x9d),'')),_0x52fd1c=existsSync(_0x255589)&&readFileSync(_0x255589,_0x1545e0(0xbf))[_0x1545e0(0x91)](_0x1545e0(0xaa)),_0x2e3693=_0x4491ff?!_0xa95ee4||!_0x52fd1c||!existsSync(_0x14d210):![],_0x9f03f3=_0x4491ff?_0x2e3693:_0x5e119a[_0x1545e0(0xa7)][_0x1545e0(0x96)]===_0x1545e0(0x9b)||_0x5e119a[_0x1545e0(0x99)]['action']===_0x1545e0(0x9b);return logger['success'](_0x1545e0(0xb3),_0x9f03f3?a3_0x305a89[_0x1545e0(0x9f)](_0x2dba55)+'\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.':_0x4491ff?'Model\x20facts\x20refreshed.':'API\x20scaffold\x20written.',undefined,{'apiFile':_0x315808,'clientFile':_0x255589,'sdkConfig':_0x2dba55,'modelCount':_0x5a2d6d,'configName':_0xd9519f,'isDefaultConfig':_0x4d60bb,'needsAgentMerge':_0x9f03f3,'needsProjectUpgrade':_0x2e3693,'files':_0x5e119a}),{'appCode':_0x30eafc,'modelCount':_0x5a2d6d,'models':_0x44d428,'apiFilePath':_0x315808,'clientFilePath':_0x255589,'sdkConfigPath':_0x2dba55,'modelRegistryPath':_0x10f2e0?.[_0x1545e0(0xb2)],'modelRuntimePath':_0x14d210,'modelProfile':_0xf5bf18[_0x1545e0(0xab)]?.[_0x1545e0(0x8a)],'configName':_0xd9519f,'isDefaultConfig':_0x4d60bb,'sdkRouting':_0x1ceebf,'files':_0x5e119a,'needsAgentMerge':_0x9f03f3,'needsProjectUpgrade':_0x2e3693};}
@@ -1 +1 @@
1
- function a4_0x3641(_0xd6c002,_0x288cee){_0xd6c002=_0xd6c002-0xf4;const _0x582ae6=a4_0x582a();let _0x364141=_0x582ae6[_0xd6c002];return _0x364141;}const a4_0x2cd26e=a4_0x3641;(function(_0x4ae6fd,_0x44086c){const _0x1b396f=a4_0x3641,_0x557095=_0x4ae6fd();while(!![]){try{const _0xf893f4=-parseInt(_0x1b396f(0x104))/0x1*(parseInt(_0x1b396f(0x10c))/0x2)+-parseInt(_0x1b396f(0xfa))/0x3*(parseInt(_0x1b396f(0xff))/0x4)+parseInt(_0x1b396f(0x105))/0x5*(parseInt(_0x1b396f(0x107))/0x6)+parseInt(_0x1b396f(0xfb))/0x7*(parseInt(_0x1b396f(0x10b))/0x8)+-parseInt(_0x1b396f(0xf6))/0x9*(-parseInt(_0x1b396f(0xf9))/0xa)+-parseInt(_0x1b396f(0x10d))/0xb+parseInt(_0x1b396f(0x100))/0xc*(parseInt(_0x1b396f(0x102))/0xd);if(_0xf893f4===_0x44086c)break;else _0x557095['push'](_0x557095['shift']());}catch(_0x528e2e){_0x557095['push'](_0x557095['shift']());}}}(a4_0x582a,0x68a8a));function a4_0x582a(){const _0x39fe0f=['{\x0a\x20\x20','runtimeDomain','76944oyFXwL','10978CmzrgH','8879222LZqTZf','length','join','sdk-config.ts','70236wjhRaY','\x20as\x20const;\x0a','runtimeDomain:\x20','600MdwmeP','481827DHElwt','329ALHxop','typescript','stringify',',\x0a\x20\x20','16TbEkSV','768wuDoYT','/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20','215878hBNKMU','format','71AIMWFy','1424845vyBawA','utf8','6oeMqVK','-sdk-config.ts'];a4_0x582a=function(){return _0x39fe0f;};return a4_0x582a();}import{mkdirSync,writeFileSync}from'node:fs';import a4_0x13305f from'node:path';import a4_0x159c72 from'prettier';export const SDK_CONFIG_FILE_NAME=a4_0x2cd26e(0xf5);export function getSdkConfigFileName(_0xffe4e0=''){const _0x15a47c=a4_0x2cd26e;return _0xffe4e0?_0xffe4e0+_0x15a47c(0x108):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x10993e,_0x21984f={},_0x9ad8be=''){const _0x46254d=a4_0x2cd26e,_0x4109dd=[];_0x21984f[_0x46254d(0x10a)]&&_0x4109dd['push'](_0x46254d(0xf8)+JSON[_0x46254d(0xfd)](_0x21984f[_0x46254d(0x10a)]));const _0x5f21be=_0x4109dd[_0x46254d(0x10e)]>0x0?_0x46254d(0x109)+_0x4109dd[_0x46254d(0xf4)](_0x46254d(0xfe))+',\x0a}':'{}',_0x50ca6b=_0x46254d(0x101)+_0x5f21be+_0x46254d(0xf7);mkdirSync(_0x10993e,{'recursive':!![]});const _0x13cdd9=a4_0x13305f['join'](_0x10993e,getSdkConfigFileName(_0x9ad8be));return writeFileSync(_0x13cdd9,await a4_0x159c72[_0x46254d(0x103)](_0x50ca6b,{'parser':_0x46254d(0xfc)}),_0x46254d(0x106)),_0x13cdd9;}
1
+ const a4_0x417bdc=a4_0x37a7;(function(_0x440aea,_0x59b36e){const _0x519243=a4_0x37a7,_0x4198b4=_0x440aea();while(!![]){try{const _0x2f02b3=-parseInt(_0x519243(0x104))/0x1*(-parseInt(_0x519243(0x10f))/0x2)+-parseInt(_0x519243(0xff))/0x3+parseInt(_0x519243(0x102))/0x4+parseInt(_0x519243(0x114))/0x5*(-parseInt(_0x519243(0x103))/0x6)+parseInt(_0x519243(0x106))/0x7+parseInt(_0x519243(0x108))/0x8*(parseInt(_0x519243(0x10b))/0x9)+-parseInt(_0x519243(0x115))/0xa;if(_0x2f02b3===_0x59b36e)break;else _0x4198b4['push'](_0x4198b4['shift']());}catch(_0x52f1d5){_0x4198b4['push'](_0x4198b4['shift']());}}}(a4_0x5b85,0xdb5cb));import{mkdirSync,writeFileSync}from'node:fs';import a4_0xe420ae from'node:path';import a4_0x4eeb82 from'prettier';function a4_0x5b85(){const _0x98ccfa=['\x20as\x20const;\x0a','length',',\x0a}','138335kOSIvS','9144250AEhlEc','1005282iyTgsy','runtimeDomain','stringify','1402584QMbVzN','96BvBIMB','1cKeBzz','runtimeDomain:\x20','160356aXElgi','format','2045864aYMdeO',',\x0a\x20\x20','join','63dFhPJT','push','/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20','{\x0a\x20\x20','854026Xaezhf','sdk-config.ts'];a4_0x5b85=function(){return _0x98ccfa;};return a4_0x5b85();}export const SDK_CONFIG_FILE_NAME=a4_0x417bdc(0x110);export function getSdkConfigFileName(_0x986788=''){return _0x986788?_0x986788+'-sdk-config.ts':SDK_CONFIG_FILE_NAME;}function a4_0x37a7(_0x2a9b10,_0x362b8d){_0x2a9b10=_0x2a9b10-0xff;const _0x5b85d8=a4_0x5b85();let _0x37a73a=_0x5b85d8[_0x2a9b10];return _0x37a73a;}export async function generateSdkConfigFile(_0x3fcaf3,_0x34983f={},_0x3ab92d=''){const _0x37f4d1=a4_0x417bdc,_0x178c95=[];_0x34983f[_0x37f4d1(0x100)]&&_0x178c95[_0x37f4d1(0x10c)](_0x37f4d1(0x105)+JSON[_0x37f4d1(0x101)](_0x34983f[_0x37f4d1(0x100)]));const _0x3bd6b5=_0x178c95[_0x37f4d1(0x112)]>0x0?_0x37f4d1(0x10e)+_0x178c95['join'](_0x37f4d1(0x109))+_0x37f4d1(0x113):'{}',_0x3ea1b8=_0x37f4d1(0x10d)+_0x3bd6b5+_0x37f4d1(0x111);mkdirSync(_0x3fcaf3,{'recursive':!![]});const _0x215de1=a4_0xe420ae[_0x37f4d1(0x10a)](_0x3fcaf3,getSdkConfigFileName(_0x3ab92d));return writeFileSync(_0x215de1,await a4_0x4eeb82[_0x37f4d1(0x107)](_0x3ea1b8,{'parser':'typescript'}),'utf8'),_0x215de1;}
@@ -1 +1 @@
1
- (function(_0x1b8907,_0xb9109a){const _0x4290cf=a5_0x3624,_0x12ab78=_0x1b8907();while(!![]){try{const _0x21e572=-parseInt(_0x4290cf(0xce))/0x1*(parseInt(_0x4290cf(0xdf))/0x2)+parseInt(_0x4290cf(0xdb))/0x3+-parseInt(_0x4290cf(0xd8))/0x4+-parseInt(_0x4290cf(0xd6))/0x5*(-parseInt(_0x4290cf(0xe3))/0x6)+-parseInt(_0x4290cf(0xe0))/0x7+-parseInt(_0x4290cf(0xd5))/0x8*(-parseInt(_0x4290cf(0xe5))/0x9)+parseInt(_0x4290cf(0xcd))/0xa;if(_0x21e572===_0xb9109a)break;else _0x12ab78['push'](_0x12ab78['shift']());}catch(_0x1ba8a6){_0x12ab78['push'](_0x12ab78['shift']());}}}(a5_0x8bf1,0x6cca0));export function parseLegacyApiModels(_0x3903cc){const _0x528eef=a5_0x3624,_0xad1f07=[],_0x53d86e=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x29c6c8;while((_0x29c6c8=_0x53d86e[_0x528eef(0xdd)](_0x3903cc))!==null){_0xad1f07['push']({'datasetCode':_0x29c6c8[0x1],'tableName':_0x29c6c8[0x2],'name':_0x29c6c8[0x3],'alias':_0x29c6c8[0x4]});}return _0xad1f07;}function a5_0x8bf1(){const _0x7d170a=['MODELS_CONFIG','matchAll','1319136BeQeBt','APP_CODE','exec','@lovrabet/sdk','668EkTnhk','689626WLoMKE','some','Generated\x20by\x20Rabetbase\x20CLI','837462Xoyqyn','test','54BwFXzB','1681000sFVTVG','607AcoNHu','match','map','lovrabetClient','endsWith','replace','length','555688WkrLHh','10GmVCGG','includes','2227504ALJltV'];a5_0x8bf1=function(){return _0x7d170a;};return a5_0x8bf1();}export function parseLegacyApiAppCode(_0x58e8d9){const _0x370ab9=a5_0x3624;return _0x58e8d9[_0x370ab9(0xcf)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function a5_0x3624(_0x4c1d56,_0x327120){_0x4c1d56=_0x4c1d56-0xcd;const _0x8bf12f=a5_0x8bf1();let _0x3624f7=_0x8bf12f[_0x4c1d56];return _0x3624f7;}function stripComments(_0x3aa180){const _0x104899=a5_0x3624;return _0x3aa180['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x104899(0xd3)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x8aa220){const _0x5d5027=a5_0x3624;if(!_0x8aa220[_0x5d5027(0xd7)](_0x5d5027(0xe2)))return![];const _0x304daa=stripComments(_0x8aa220),_0x187013=[..._0x304daa['matchAll'](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)]['map'](_0x40537b=>_0x40537b[0x1]);if(_0x187013[_0x5d5027(0xd4)]!==0x1||_0x187013[0x0]!==_0x5d5027(0xde))return![];const _0x3e987c=[..._0x304daa[_0x5d5027(0xda)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x5d5027(0xd0)](_0x54e3ab=>_0x54e3ab[0x1]);if(_0x3e987c[_0x5d5027(0xd4)]!==0x2||!_0x3e987c[_0x5d5027(0xe1)](_0x2a73fc=>_0x2a73fc[_0x5d5027(0xd2)](_0x5d5027(0xdc)))||!_0x3e987c[_0x5d5027(0xe1)](_0x40226d=>_0x40226d[_0x5d5027(0xd2)](_0x5d5027(0xd9))))return![];const _0x362708=[..._0x304daa[_0x5d5027(0xda)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x5d5027(0xd0)](_0x21ec2a=>_0x21ec2a[0x1]);return _0x362708['length']===0x1&&_0x362708[0x0]==='registerModels';}export function isLegacyGeneratedClientScaffold(_0x4de3d5){const _0x51b532=a5_0x3624;if(!_0x4de3d5[_0x51b532(0xd7)](_0x51b532(0xe2)))return![];const _0x41296a=stripComments(_0x4de3d5),_0x5757e1=[..._0x41296a[_0x51b532(0xda)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x51b532(0xd0)](_0xd7c009=>_0xd7c009[0x1]);if(_0x5757e1['some'](_0x18d0fe=>_0x18d0fe!==_0x51b532(0xde)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x51b532(0xe4)](_0x18d0fe??'')))return![];const _0x1afed8=[..._0x41296a['matchAll'](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)]['map'](_0x125070=>_0x125070[0x1]);return _0x1afed8[_0x51b532(0xd4)]===0x1&&_0x1afed8[0x0]===_0x51b532(0xd1);}
1
+ (function(_0x47993b,_0x4efda0){const _0x411e0a=a5_0x1feb,_0x533689=_0x47993b();while(!![]){try{const _0x463994=parseInt(_0x411e0a(0x1a1))/0x1*(parseInt(_0x411e0a(0x18e))/0x2)+-parseInt(_0x411e0a(0x19d))/0x3+parseInt(_0x411e0a(0x1a0))/0x4*(parseInt(_0x411e0a(0x190))/0x5)+-parseInt(_0x411e0a(0x194))/0x6*(parseInt(_0x411e0a(0x19a))/0x7)+-parseInt(_0x411e0a(0x1a3))/0x8+parseInt(_0x411e0a(0x191))/0x9+parseInt(_0x411e0a(0x192))/0xa;if(_0x463994===_0x4efda0)break;else _0x533689['push'](_0x533689['shift']());}catch(_0x1f5619){_0x533689['push'](_0x533689['shift']());}}}(a5_0x349b,0xd56ab));export function parseLegacyApiModels(_0xd22908){const _0x319cf5=a5_0x1feb,_0x5d6017=[],_0x41bcf8=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x4163d2;while((_0x4163d2=_0x41bcf8[_0x319cf5(0x19b)](_0xd22908))!==null){_0x5d6017[_0x319cf5(0x193)]({'datasetCode':_0x4163d2[0x1],'tableName':_0x4163d2[0x2],'name':_0x4163d2[0x3],'alias':_0x4163d2[0x4]});}return _0x5d6017;}function a5_0x349b(){const _0x130ffc=['APP_CODE','@lovrabet/sdk','replace','Generated\x20by\x20Rabetbase\x20CLI','includes','3362275YPNCtc','exec','MODELS_CONFIG','3148140FskwMm','length','test','35172vpIIzQ','759691KwdJYr','map','6608344HHAgaC','matchAll','endsWith','2DrugRI','some','540JbNOXa','8581212RtDzIS','5671000FaLorz','push','6jSOIUJ'];a5_0x349b=function(){return _0x130ffc;};return a5_0x349b();}export function parseLegacyApiAppCode(_0x5389f2){return _0x5389f2['match'](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x51383d){const _0x4389d3=a5_0x1feb;return _0x51383d[_0x4389d3(0x197)](/\/\*[\s\S]*?\*\//g,'')[_0x4389d3(0x197)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x53ab79){const _0x41a8d6=a5_0x1feb;if(!_0x53ab79[_0x41a8d6(0x199)](_0x41a8d6(0x198)))return![];const _0x2af63f=stripComments(_0x53ab79),_0x1a5ab4=[..._0x2af63f[_0x41a8d6(0x1a4)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x41a8d6(0x1a2)](_0x279993=>_0x279993[0x1]);if(_0x1a5ab4[_0x41a8d6(0x19e)]!==0x1||_0x1a5ab4[0x0]!==_0x41a8d6(0x196))return![];const _0x506e67=[..._0x2af63f['matchAll'](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x41a8d6(0x1a2)](_0x214ba4=>_0x214ba4[0x1]);if(_0x506e67[_0x41a8d6(0x19e)]!==0x2||!_0x506e67['some'](_0x316451=>_0x316451[_0x41a8d6(0x1a5)](_0x41a8d6(0x195)))||!_0x506e67[_0x41a8d6(0x18f)](_0x20e828=>_0x20e828['endsWith'](_0x41a8d6(0x19c))))return![];const _0x3cace1=[..._0x2af63f[_0x41a8d6(0x1a4)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x41a8d6(0x1a2)](_0xd5eba6=>_0xd5eba6[0x1]);return _0x3cace1[_0x41a8d6(0x19e)]===0x1&&_0x3cace1[0x0]==='registerModels';}function a5_0x1feb(_0x470c8a,_0x454477){_0x470c8a=_0x470c8a-0x18e;const _0x349b55=a5_0x349b();let _0x1feb6f=_0x349b55[_0x470c8a];return _0x1feb6f;}export function isLegacyGeneratedClientScaffold(_0x583dfe){const _0x344d92=a5_0x1feb;if(!_0x583dfe[_0x344d92(0x199)]('Generated\x20by\x20Rabetbase\x20CLI'))return![];const _0x53eda5=stripComments(_0x583dfe),_0x5ab613=[..._0x53eda5[_0x344d92(0x1a4)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x344d92(0x1a2)](_0x5282ec=>_0x5282ec[0x1]);if(_0x5ab613[_0x344d92(0x18f)](_0x1b5fa3=>_0x1b5fa3!==_0x344d92(0x196)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x344d92(0x19f)](_0x1b5fa3??'')))return![];const _0x1d8133=[..._0x53eda5['matchAll'](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x344d92(0x1a2)](_0x4b519d=>_0x4b519d[0x1]);return _0x1d8133['length']===0x1&&_0x1d8133[0x0]==='lovrabetClient';}
@@ -1 +1 @@
1
- const a6_0x2156d9=a6_0x2e7c;(function(_0x5aebe7,_0x495625){const _0x3fda45=a6_0x2e7c,_0xf8a6e0=_0x5aebe7();while(!![]){try{const _0x2169da=parseInt(_0x3fda45(0xdf))/0x1+parseInt(_0x3fda45(0xe2))/0x2+parseInt(_0x3fda45(0xde))/0x3+-parseInt(_0x3fda45(0xf6))/0x4*(-parseInt(_0x3fda45(0xff))/0x5)+-parseInt(_0x3fda45(0xd9))/0x6*(parseInt(_0x3fda45(0xe5))/0x7)+parseInt(_0x3fda45(0x102))/0x8+-parseInt(_0x3fda45(0xe7))/0x9;if(_0x2169da===_0x495625)break;else _0xf8a6e0['push'](_0xf8a6e0['shift']());}catch(_0x433584){_0xf8a6e0['push'](_0xf8a6e0['shift']());}}}(a6_0x4ece,0xa7227));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x104df6 from'node:path';export const MODEL_REGISTRY_FILE_NAME='models.generated.ts';export const MODEL_RUNTIME_FILE_NAME=a6_0x2156d9(0xfb);function a6_0x2e7c(_0xdc89b7,_0x25ccaf){_0xdc89b7=_0xdc89b7-0xc7;const _0x4ecea1=a6_0x4ece();let _0x2e7cfe=_0x4ecea1[_0xdc89b7];return _0x2e7cfe;}export const MODEL_REGISTRY_VERSION_MARKER=a6_0x2156d9(0xcc);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x2156d9(0xdc),REGISTRY_START=a6_0x2156d9(0xdb),REGISTRY_END=a6_0x2156d9(0xdd);function emptyRegistry(_0x5372da){return{'defaultProfile':_0x5372da,'profiles':{},'models':[]};}function a6_0x4ece(){const _0x1bfebf=['17761617DwRhuF','key','tableName','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','find','keys','test','datasetCodes','defaultProfile','trim','datasetCode','filter','NOT-SET','\x22\x20and\x20\x22','length','68VKIGlL','replace','Model\x20alias\x20\x22','parse','split','model-runtime.ts','join','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','allowEmptyReplacement','193030EIraTs','map','outputDir','6793824NdwbCv','profileName','stringify','every','set','models','alias','name','\x22\x20maps\x20to\x20table\x20\x22','utf8','\x22\x20with\x20an\x20empty\x20result.\x20','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','entries','/*\x20rabetbase-model-registry:v2\x20*/','isArray','Table\x20\x22','object','protocol','appCode','\x22\x20maps\x20to\x20both\x20\x22','profiles','\x22\x20in\x20profile\x20\x22','values','lovrabet-model-registry/v1','slice','string','216570bcStpy','.tmp','/*\x20rabetbase-model-registry:start\x20*/','lovrabet-model-registry/v2','/*\x20rabetbase-model-registry:end\x20*/','2400735ejYmMH','384234JzvXsz','\x22\x20maps\x20to\x20alias\x20\x22','/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a','297124LLRpGw','fromEntries','\x22\x20in\x20the\x20registry\x20but\x20\x22','35cXZiFE','push'];a6_0x4ece=function(){return _0x1bfebf;};return a6_0x4ece();}function extractRegistryJson(_0x2cb51f){const _0x3d71d7=a6_0x2156d9,_0x3dcc83=_0x2cb51f['indexOf'](REGISTRY_START),_0x32d0fa=_0x2cb51f['indexOf'](REGISTRY_END);if(_0x3dcc83<0x0||_0x32d0fa<=_0x3dcc83)return undefined;return _0x2cb51f[_0x3d71d7(0xd7)](_0x3dcc83+REGISTRY_START[_0x3d71d7(0xf5)],_0x32d0fa)[_0x3d71d7(0xf0)]()[_0x3d71d7(0xf7)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x3d71d7(0xf7)](/;$/,'');}function migrateLegacyRegistry(_0x2b1fcd){const _0x2f562f=a6_0x2156d9,_0x59e22d=emptyRegistry(_0x2b1fcd[_0x2f562f(0xef)]);for(const [_0x508399,_0x46a87e]of Object[_0x2f562f(0xcb)](_0x2b1fcd['profiles'])){_0x59e22d[_0x2f562f(0xd3)][_0x508399]={'appCode':_0x46a87e[_0x2f562f(0xd1)],'runtimeDomain':_0x46a87e['runtimeDomain']},mergeProfileModels(_0x59e22d,_0x508399,_0x46a87e[_0x2f562f(0x107)]);}return _0x59e22d;}function generatedObjectLiteralToJson(_0x2687d5){const _0x5ed523=a6_0x2156d9;let _0x235a1d='',_0x54cdd7,_0x1408d4=![],_0x1aaf36;for(let _0x34bc3d=0x0;_0x34bc3d<_0x2687d5[_0x5ed523(0xf5)];_0x34bc3d++){const _0x1b52fa=_0x2687d5[_0x34bc3d];if(_0x54cdd7){_0x235a1d+=_0x1b52fa;if(_0x1408d4)_0x1408d4=![];else{if(_0x1b52fa==='\x5c')_0x1408d4=!![];else{if(_0x1b52fa===_0x54cdd7)_0x54cdd7=undefined;}}continue;}if(_0x1b52fa==='\x22'){_0x54cdd7=_0x1b52fa,_0x235a1d+=_0x1b52fa,_0x1aaf36='value';continue;}if(_0x1b52fa===','){let _0xe29936=_0x34bc3d+0x1;while(/\s/[_0x5ed523(0xed)](_0x2687d5[_0xe29936]??''))_0xe29936++;if(_0x2687d5[_0xe29936]==='}'||_0x2687d5[_0xe29936]===']')continue;_0x235a1d+=_0x1b52fa,_0x1aaf36=',';continue;}if(_0x1b52fa==='{'||_0x1b52fa==='['){_0x235a1d+=_0x1b52fa,_0x1aaf36=_0x1b52fa;continue;}if(_0x1b52fa==='}'||_0x1b52fa===']'){_0x235a1d+=_0x1b52fa,_0x1aaf36=_0x1b52fa;continue;}if((_0x1aaf36==='{'||_0x1aaf36===',')&&/[A-Za-z_$]/[_0x5ed523(0xed)](_0x1b52fa)){let _0x2dde48=_0x34bc3d+0x1;while(/[A-Za-z0-9_$]/[_0x5ed523(0xed)](_0x2687d5[_0x2dde48]??''))_0x2dde48++;let _0x7d236c=_0x2dde48;while(/\s/[_0x5ed523(0xed)](_0x2687d5[_0x7d236c]??''))_0x7d236c++;if(_0x2687d5[_0x7d236c]===':'){_0x235a1d+=JSON[_0x5ed523(0x104)](_0x2687d5['slice'](_0x34bc3d,_0x2dde48)),_0x34bc3d=_0x2dde48-0x1,_0x1aaf36=_0x5ed523(0xe8);continue;}}_0x235a1d+=_0x1b52fa;if(!/\s/['test'](_0x1b52fa)&&_0x1b52fa!==':')_0x1aaf36='value';}return _0x235a1d;}function parseGeneratedRegistryJson(_0x10fb7c){const _0x339d52=a6_0x2156d9;try{return JSON[_0x339d52(0xf9)](_0x10fb7c);}catch{return JSON[_0x339d52(0xf9)](generatedObjectLiteralToJson(_0x10fb7c));}}function normalizeModelEntries(_0x3ba0e8,_0x3019f9){const _0x59f9bb=a6_0x2156d9,_0x986faf=Object[_0x59f9bb(0xec)](_0x3ba0e8),_0x3dc5c3=[];for(const _0x21fcf5 of _0x3019f9){if(!_0x21fcf5||typeof _0x21fcf5!=='object'||Array[_0x59f9bb(0xcd)](_0x21fcf5))return undefined;const _0x44c383=_0x21fcf5;if(typeof _0x44c383[_0x59f9bb(0x108)]!=='string'||typeof _0x44c383[_0x59f9bb(0xe9)]!=='string'||typeof _0x44c383['name']!==_0x59f9bb(0xd8))return undefined;let _0x1c668f;if(typeof _0x44c383['datasetCode']===_0x59f9bb(0xd8)&&_0x44c383[_0x59f9bb(0xee)]===undefined)_0x1c668f=Object[_0x59f9bb(0xe3)](_0x986faf[_0x59f9bb(0x100)](_0x31f022=>[_0x31f022,_0x44c383[_0x59f9bb(0xf1)]]));else{if(_0x44c383['datasetCode']===undefined&&_0x44c383[_0x59f9bb(0xee)]&&typeof _0x44c383[_0x59f9bb(0xee)]===_0x59f9bb(0xcf)&&!Array['isArray'](_0x44c383[_0x59f9bb(0xee)])&&Object[_0x59f9bb(0xd5)](_0x44c383[_0x59f9bb(0xee)])[_0x59f9bb(0x105)](_0x12d180=>typeof _0x12d180===_0x59f9bb(0xd8)))_0x1c668f={..._0x44c383[_0x59f9bb(0xee)]};else return undefined;}_0x3dc5c3[_0x59f9bb(0xe6)]({'alias':_0x44c383[_0x59f9bb(0x108)],'tableName':_0x44c383[_0x59f9bb(0xe9)],'name':_0x44c383[_0x59f9bb(0x109)],'datasetCodes':_0x1c668f});}return _0x3dc5c3;}export function parseModelRegistry(_0xf60eb4){const _0x33a958=a6_0x2156d9,_0x5173a5=extractRegistryJson(_0xf60eb4);if(!_0x5173a5)return undefined;try{const _0xe01a45=parseGeneratedRegistryJson(_0x5173a5);if(typeof _0xe01a45[_0x33a958(0xef)]!==_0x33a958(0xd8)||!_0xe01a45['profiles']||typeof _0xe01a45['profiles']!==_0x33a958(0xcf))return undefined;if(_0xe01a45[_0x33a958(0xd0)]===_0x33a958(0xd6))return migrateLegacyRegistry(_0xe01a45);if(!(_0xe01a45[_0x33a958(0xd0)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0xe01a45['protocol']===undefined&&_0xf60eb4['includes'](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x33a958(0xcd)](_0xe01a45[_0x33a958(0x107)]))return undefined;const _0x468979=_0xe01a45[_0x33a958(0xd3)],_0x874a5a=normalizeModelEntries(_0x468979,_0xe01a45['models']);if(!_0x874a5a)return undefined;return{'defaultProfile':_0xe01a45[_0x33a958(0xef)],'profiles':_0x468979,'models':_0x874a5a};}catch{return undefined;}}export function readModelRegistry(_0x1898bb){const _0x2d5dee=a6_0x2156d9;if(!existsSync(_0x1898bb))return undefined;try{return parseModelRegistry(readFileSync(_0x1898bb,_0x2d5dee(0xc8)));}catch{return undefined;}}function registrySource(_0x5c9430){const _0x3f4393=a6_0x2156d9,_0xbd4df6=Object['keys'](_0x5c9430[_0x3f4393(0xd3)]),_0x46dd0c=_0x5c9430['models'][_0x3f4393(0x100)](_0x159357=>{const _0x7fdff1=_0x3f4393,_0x2bce74=_0xbd4df6['map'](_0x586f4c=>_0x159357[_0x7fdff1(0xee)][_0x586f4c]),_0x549d48=_0x2bce74[0x0],_0x3d8279=_0x549d48!==undefined&&_0x2bce74[_0x7fdff1(0x105)](_0x21632b=>_0x21632b===_0x549d48),_0x4b9875={'alias':_0x159357[_0x7fdff1(0x108)],'tableName':_0x159357[_0x7fdff1(0xe9)],'name':_0x159357[_0x7fdff1(0x109)]};return _0x3d8279?{..._0x4b9875,'datasetCode':_0x549d48}:{..._0x4b9875,'datasetCodes':_0x159357[_0x7fdff1(0xee)]};}),_0x2b2946=JSON[_0x3f4393(0x104)]({'defaultProfile':_0x5c9430[_0x3f4393(0xef)],'profiles':_0x5c9430[_0x3f4393(0xd3)],'models':_0x46dd0c},null,0x2)[_0x3f4393(0xfa)]('\x0a')[_0x3f4393(0x100)](_0x358cd5=>'\x20\x20'+_0x358cd5)['join']('\x0a');return _0x3f4393(0xe1)+MODEL_REGISTRY_VERSION_MARKER+_0x3f4393(0xfd)+REGISTRY_START+'\x0a'+_0x2b2946+'\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a'+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x33f833,_0x210465,_0x44291f){const _0x3f49ca=a6_0x2156d9,_0x46bdb4=_0x44291f[_0x3f49ca(0x100)](_0x47fc97=>({..._0x47fc97,'alias':_0x47fc97[_0x3f49ca(0x108)]||_0x47fc97[_0x3f49ca(0xe9)]})),_0x26b4ab=new Map(),_0x477ebd=new Map();for(const _0x34b12d of _0x46bdb4){const _0x2355aa=_0x26b4ab['get'](_0x34b12d[_0x3f49ca(0x108)]);if(_0x2355aa&&_0x2355aa!==_0x34b12d[_0x3f49ca(0xe9)])throw new Error('Model\x20alias\x20\x22'+_0x34b12d[_0x3f49ca(0x108)]+_0x3f49ca(0xd2)+_0x2355aa+_0x3f49ca(0xf4)+_0x34b12d['tableName']+_0x3f49ca(0xd4)+_0x210465+'\x22.');const _0xe9bda0=_0x477ebd['get'](_0x34b12d[_0x3f49ca(0xe9)]);if(_0xe9bda0&&_0xe9bda0!==_0x34b12d['alias'])throw new Error(_0x3f49ca(0xce)+_0x34b12d['tableName']+_0x3f49ca(0xea)+_0xe9bda0+_0x3f49ca(0xf4)+_0x34b12d[_0x3f49ca(0x108)]+_0x3f49ca(0xd4)+_0x210465+'\x22.');_0x26b4ab['set'](_0x34b12d['alias'],_0x34b12d[_0x3f49ca(0xe9)]),_0x477ebd[_0x3f49ca(0x106)](_0x34b12d['tableName'],_0x34b12d[_0x3f49ca(0x108)]);const _0x11037c=_0x33f833[_0x3f49ca(0x107)][_0x3f49ca(0xeb)](_0xa7c757=>_0xa7c757[_0x3f49ca(0x108)]===_0x34b12d[_0x3f49ca(0x108)]);if(_0x11037c&&_0x11037c[_0x3f49ca(0xe9)]!==_0x34b12d[_0x3f49ca(0xe9)])throw new Error(_0x3f49ca(0xf8)+_0x34b12d[_0x3f49ca(0x108)]+_0x3f49ca(0xc7)+_0x11037c[_0x3f49ca(0xe9)]+'\x22\x20in\x20the\x20registry\x20but\x20\x22'+_0x34b12d[_0x3f49ca(0xe9)]+_0x3f49ca(0xd4)+_0x210465+'\x22.');const _0x2f970f=_0x33f833[_0x3f49ca(0x107)][_0x3f49ca(0xeb)](_0x2e4d43=>_0x2e4d43[_0x3f49ca(0xe9)]===_0x34b12d[_0x3f49ca(0xe9)]);if(_0x2f970f&&_0x2f970f[_0x3f49ca(0x108)]!==_0x34b12d[_0x3f49ca(0x108)])throw new Error(_0x3f49ca(0xce)+_0x34b12d[_0x3f49ca(0xe9)]+_0x3f49ca(0xe0)+_0x2f970f['alias']+_0x3f49ca(0xe4)+_0x34b12d[_0x3f49ca(0x108)]+_0x3f49ca(0xd4)+_0x210465+'\x22.');}for(const _0x5b077b of _0x33f833[_0x3f49ca(0x107)]){delete _0x5b077b[_0x3f49ca(0xee)][_0x210465];}for(const _0x57fec1 of _0x46bdb4){let _0x316fe0=_0x33f833[_0x3f49ca(0x107)]['find'](_0x856abf=>_0x856abf[_0x3f49ca(0x108)]===_0x57fec1['alias']);!_0x316fe0&&(_0x316fe0={'alias':_0x57fec1[_0x3f49ca(0x108)],'tableName':_0x57fec1['tableName'],'name':_0x57fec1[_0x3f49ca(0x109)],'datasetCodes':{}},_0x33f833[_0x3f49ca(0x107)][_0x3f49ca(0xe6)](_0x316fe0)),(_0x210465===_0x33f833[_0x3f49ca(0xef)]||!_0x316fe0['datasetCodes'][_0x33f833['defaultProfile']])&&(_0x316fe0[_0x3f49ca(0x108)]=_0x57fec1['alias'],_0x316fe0[_0x3f49ca(0xe9)]=_0x57fec1[_0x3f49ca(0xe9)],_0x316fe0['name']=_0x57fec1[_0x3f49ca(0x109)]),_0x316fe0[_0x3f49ca(0xee)][_0x210465]=_0x57fec1[_0x3f49ca(0xf1)];}_0x33f833[_0x3f49ca(0x107)]=_0x33f833['models']['filter'](_0x58559f=>Object[_0x3f49ca(0xec)](_0x58559f[_0x3f49ca(0xee)])[_0x3f49ca(0xf5)]>0x0);}function removeUnboundProfiles(_0x5d994f){const _0x751a9e=a6_0x2156d9,_0x261209=Object['entries'](_0x5d994f[_0x751a9e(0xd3)])[_0x751a9e(0xf2)](([,_0x4a0b5c])=>_0x4a0b5c[_0x751a9e(0xd1)]===_0x751a9e(0xf3))[_0x751a9e(0x100)](([_0x25ae80])=>_0x25ae80);if(_0x261209[_0x751a9e(0xf5)]===0x0)return;for(const _0x37b001 of _0x261209){delete _0x5d994f[_0x751a9e(0xd3)][_0x37b001];for(const _0x54a3db of _0x5d994f[_0x751a9e(0x107)]){delete _0x54a3db[_0x751a9e(0xee)][_0x37b001];}}_0x5d994f[_0x751a9e(0x107)]=_0x5d994f['models'][_0x751a9e(0xf2)](_0x7ab791=>Object[_0x751a9e(0xec)](_0x7ab791['datasetCodes'])[_0x751a9e(0xf5)]>0x0);}export function getProfileModels(_0x2688fa,_0x1b5d75){const _0x2490fb=a6_0x2156d9;return _0x2688fa[_0x2490fb(0x107)]['flatMap'](_0x5adae4=>{const _0x2cdff3=_0x2490fb,_0x511b31=_0x5adae4[_0x2cdff3(0xee)][_0x1b5d75];return _0x511b31?[{'datasetCode':_0x511b31,'tableName':_0x5adae4[_0x2cdff3(0xe9)],'name':_0x5adae4['name'],'alias':_0x5adae4[_0x2cdff3(0x108)]}]:[];});}export function updateModelRegistry(_0x1e51fc){const _0x4aa5c7=a6_0x2156d9,_0xa98454=a6_0x104df6[_0x4aa5c7(0xfc)](_0x1e51fc[_0x4aa5c7(0x101)],MODEL_REGISTRY_FILE_NAME),_0x5de7f2=existsSync(_0xa98454),_0x45c6f4=readModelRegistry(_0xa98454);if(_0x5de7f2&&!_0x45c6f4)throw new Error(MODEL_REGISTRY_FILE_NAME+_0x4aa5c7(0xca));const _0x3ec0d4=_0x45c6f4??emptyRegistry(_0x1e51fc[_0x4aa5c7(0xef)]);if(_0x1e51fc['appCode']!=='NOT-SET')removeUnboundProfiles(_0x3ec0d4);const _0x21b587=_0x45c6f4?getProfileModels(_0x45c6f4,_0x1e51fc[_0x4aa5c7(0x103)])['length']:0x0;if(_0x21b587>0x0&&_0x1e51fc[_0x4aa5c7(0x107)][_0x4aa5c7(0xf5)]===0x0&&!_0x1e51fc[_0x4aa5c7(0xfe)])throw new Error('Refusing\x20to\x20replace\x20'+_0x21b587+'\x20model(s)\x20in\x20profile\x20\x22'+_0x1e51fc[_0x4aa5c7(0x103)]+_0x4aa5c7(0xc9)+'Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.');_0x3ec0d4[_0x4aa5c7(0xef)]=_0x1e51fc['defaultProfile'],_0x3ec0d4[_0x4aa5c7(0xd3)][_0x1e51fc[_0x4aa5c7(0x103)]]={'appCode':_0x1e51fc[_0x4aa5c7(0xd1)],'runtimeDomain':_0x1e51fc['runtimeDomain']},mergeProfileModels(_0x3ec0d4,_0x1e51fc[_0x4aa5c7(0x103)],_0x1e51fc[_0x4aa5c7(0x107)]),mkdirSync(_0x1e51fc['outputDir'],{'recursive':!![]});const _0x398646=_0xa98454+'.'+process['pid']+'.'+Date['now']()+_0x4aa5c7(0xda);try{writeFileSync(_0x398646,registrySource(_0x3ec0d4),{'encoding':_0x4aa5c7(0xc8),'mode':0x1a4}),renameSync(_0x398646,_0xa98454);}catch(_0x2c5c07){try{unlinkSync(_0x398646);}catch{}throw _0x2c5c07;}return{'path':_0xa98454,'registry':_0x3ec0d4,'existed':_0x5de7f2};}
1
+ function a6_0x3f55(){const _0x3c6fa4=['/*\x20rabetbase-model-registry:v2\x20*/','6398VGYJiP','Model\x20alias\x20\x22','profiles','find','\x22\x20and\x20\x22','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','alias','test','210Uovgem','outputDir','allowEmptyReplacement','261vNogJJ','4848BdlhGy','join','entries','\x22\x20in\x20profile\x20\x22','indexOf','slice','object','defaultProfile','lovrabet-model-registry/v2','profileName','486370nNEZcQ','appCode','/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a','\x22\x20in\x20the\x20registry\x20but\x20\x22','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','value','length','split','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','3jTSgGY','3723668zjnoZu','filter','flatMap','models','models.generated.ts','23160tzqKds','set','875EgqtHN','protocol','replace','.tmp','trim','every','stringify','35542xqRMig','fromEntries','datasetCode','parse','\x22\x20maps\x20to\x20both\x20\x22','datasetCodes','isArray','keys','map','tableName','246851IQGkAz','get','runtimeDomain','name','string','utf8','push','NOT-SET','34XWNzKA','444jamPjP','52770bgPfPM'];a6_0x3f55=function(){return _0x3c6fa4;};return a6_0x3f55();}const a6_0x3ec527=a6_0x40f6;(function(_0xe5f129,_0x2d0b77){const _0x5073dc=a6_0x40f6,_0x5d0d75=_0xe5f129();while(!![]){try{const _0x1bcf5c=parseInt(_0x5073dc(0x113))/0x1*(-parseInt(_0x5073dc(0x103))/0x2)+-parseInt(_0x5073dc(0x126))/0x3*(parseInt(_0x5073dc(0x127))/0x4)+-parseInt(_0x5073dc(0x105))/0x5*(-parseInt(_0x5073dc(0x10f))/0x6)+parseInt(_0x5073dc(0x12e))/0x7*(parseInt(_0x5073dc(0x12c))/0x8)+parseInt(_0x5073dc(0x112))/0x9*(parseInt(_0x5073dc(0x11d))/0xa)+-parseInt(_0x5073dc(0xfb))/0xb*(-parseInt(_0x5073dc(0x104))/0xc)+-parseInt(_0x5073dc(0xf1))/0xd*(parseInt(_0x5073dc(0x107))/0xe);if(_0x1bcf5c===_0x2d0b77)break;else _0x5d0d75['push'](_0x5d0d75['shift']());}catch(_0x492960){_0x5d0d75['push'](_0x5d0d75['shift']());}}}(a6_0x3f55,0xad2a4));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0xffc5aa from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x3ec527(0x12b);export const MODEL_RUNTIME_FILE_NAME='model-runtime.ts';export const MODEL_REGISTRY_VERSION_MARKER=a6_0x3ec527(0x106);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x3ec527(0x11b),REGISTRY_START='/*\x20rabetbase-model-registry:start\x20*/',REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x5f0ea7){return{'defaultProfile':_0x5f0ea7,'profiles':{},'models':[]};}function extractRegistryJson(_0x163047){const _0x144740=a6_0x3ec527,_0x277ecd=_0x163047[_0x144740(0x117)](REGISTRY_START),_0x591842=_0x163047['indexOf'](REGISTRY_END);if(_0x277ecd<0x0||_0x591842<=_0x277ecd)return undefined;return _0x163047[_0x144740(0x118)](_0x277ecd+REGISTRY_START['length'],_0x591842)[_0x144740(0xee)]()[_0x144740(0x130)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x144740(0x130)](/;$/,'');}function migrateLegacyRegistry(_0x48c2b0){const _0x43643b=a6_0x3ec527,_0xd0e0a8=emptyRegistry(_0x48c2b0[_0x43643b(0x11a)]);for(const [_0x24d43a,_0x429e66]of Object[_0x43643b(0x115)](_0x48c2b0[_0x43643b(0x109)])){_0xd0e0a8[_0x43643b(0x109)][_0x24d43a]={'appCode':_0x429e66['appCode'],'runtimeDomain':_0x429e66['runtimeDomain']},mergeProfileModels(_0xd0e0a8,_0x24d43a,_0x429e66['models']);}return _0xd0e0a8;}function a6_0x40f6(_0x30c426,_0x40fd35){_0x30c426=_0x30c426-0xee;const _0x3f55b0=a6_0x3f55();let _0x40f612=_0x3f55b0[_0x30c426];return _0x40f612;}function generatedObjectLiteralToJson(_0x5e3844){const _0x7a3e01=a6_0x3ec527;let _0x3a1839='',_0x133694,_0x229077=![],_0x3b17c3;for(let _0x4db474=0x0;_0x4db474<_0x5e3844[_0x7a3e01(0x123)];_0x4db474++){const _0x4ef3dd=_0x5e3844[_0x4db474];if(_0x133694){_0x3a1839+=_0x4ef3dd;if(_0x229077)_0x229077=![];else{if(_0x4ef3dd==='\x5c')_0x229077=!![];else{if(_0x4ef3dd===_0x133694)_0x133694=undefined;}}continue;}if(_0x4ef3dd==='\x22'){_0x133694=_0x4ef3dd,_0x3a1839+=_0x4ef3dd,_0x3b17c3=_0x7a3e01(0x122);continue;}if(_0x4ef3dd===','){let _0x24ae51=_0x4db474+0x1;while(/\s/[_0x7a3e01(0x10e)](_0x5e3844[_0x24ae51]??''))_0x24ae51++;if(_0x5e3844[_0x24ae51]==='}'||_0x5e3844[_0x24ae51]===']')continue;_0x3a1839+=_0x4ef3dd,_0x3b17c3=',';continue;}if(_0x4ef3dd==='{'||_0x4ef3dd==='['){_0x3a1839+=_0x4ef3dd,_0x3b17c3=_0x4ef3dd;continue;}if(_0x4ef3dd==='}'||_0x4ef3dd===']'){_0x3a1839+=_0x4ef3dd,_0x3b17c3=_0x4ef3dd;continue;}if((_0x3b17c3==='{'||_0x3b17c3===',')&&/[A-Za-z_$]/[_0x7a3e01(0x10e)](_0x4ef3dd)){let _0x256369=_0x4db474+0x1;while(/[A-Za-z0-9_$]/[_0x7a3e01(0x10e)](_0x5e3844[_0x256369]??''))_0x256369++;let _0x2ce8bf=_0x256369;while(/\s/[_0x7a3e01(0x10e)](_0x5e3844[_0x2ce8bf]??''))_0x2ce8bf++;if(_0x5e3844[_0x2ce8bf]===':'){_0x3a1839+=JSON[_0x7a3e01(0xf0)](_0x5e3844[_0x7a3e01(0x118)](_0x4db474,_0x256369)),_0x4db474=_0x256369-0x1,_0x3b17c3='key';continue;}}_0x3a1839+=_0x4ef3dd;if(!/\s/[_0x7a3e01(0x10e)](_0x4ef3dd)&&_0x4ef3dd!==':')_0x3b17c3='value';}return _0x3a1839;}function parseGeneratedRegistryJson(_0x207ce8){const _0x349027=a6_0x3ec527;try{return JSON[_0x349027(0xf4)](_0x207ce8);}catch{return JSON[_0x349027(0xf4)](generatedObjectLiteralToJson(_0x207ce8));}}function normalizeModelEntries(_0x451c53,_0x4ca9ae){const _0x2d4c25=a6_0x3ec527,_0x1655fd=Object[_0x2d4c25(0xf8)](_0x451c53),_0x1572c7=[];for(const _0x18e2de of _0x4ca9ae){if(!_0x18e2de||typeof _0x18e2de!=='object'||Array['isArray'](_0x18e2de))return undefined;const _0x4d3378=_0x18e2de;if(typeof _0x4d3378[_0x2d4c25(0x10d)]!=='string'||typeof _0x4d3378[_0x2d4c25(0xfa)]!==_0x2d4c25(0xff)||typeof _0x4d3378[_0x2d4c25(0xfe)]!==_0x2d4c25(0xff))return undefined;let _0x4cc205;if(typeof _0x4d3378[_0x2d4c25(0xf3)]===_0x2d4c25(0xff)&&_0x4d3378['datasetCodes']===undefined)_0x4cc205=Object[_0x2d4c25(0xf2)](_0x1655fd['map'](_0x135c7d=>[_0x135c7d,_0x4d3378[_0x2d4c25(0xf3)]]));else{if(_0x4d3378[_0x2d4c25(0xf3)]===undefined&&_0x4d3378[_0x2d4c25(0xf6)]&&typeof _0x4d3378['datasetCodes']===_0x2d4c25(0x119)&&!Array['isArray'](_0x4d3378[_0x2d4c25(0xf6)])&&Object['values'](_0x4d3378[_0x2d4c25(0xf6)])[_0x2d4c25(0xef)](_0x323ba9=>typeof _0x323ba9===_0x2d4c25(0xff)))_0x4cc205={..._0x4d3378[_0x2d4c25(0xf6)]};else return undefined;}_0x1572c7[_0x2d4c25(0x101)]({'alias':_0x4d3378[_0x2d4c25(0x10d)],'tableName':_0x4d3378[_0x2d4c25(0xfa)],'name':_0x4d3378[_0x2d4c25(0xfe)],'datasetCodes':_0x4cc205});}return _0x1572c7;}export function parseModelRegistry(_0x401db2){const _0x4b404f=a6_0x3ec527,_0x256c65=extractRegistryJson(_0x401db2);if(!_0x256c65)return undefined;try{const _0x4656ce=parseGeneratedRegistryJson(_0x256c65);if(typeof _0x4656ce[_0x4b404f(0x11a)]!==_0x4b404f(0xff)||!_0x4656ce[_0x4b404f(0x109)]||typeof _0x4656ce[_0x4b404f(0x109)]!==_0x4b404f(0x119))return undefined;if(_0x4656ce[_0x4b404f(0x12f)]==='lovrabet-model-registry/v1')return migrateLegacyRegistry(_0x4656ce);if(!(_0x4656ce['protocol']===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x4656ce['protocol']===undefined&&_0x401db2['includes'](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x4b404f(0xf7)](_0x4656ce[_0x4b404f(0x12a)]))return undefined;const _0x292b4f=_0x4656ce[_0x4b404f(0x109)],_0x37e55d=normalizeModelEntries(_0x292b4f,_0x4656ce[_0x4b404f(0x12a)]);if(!_0x37e55d)return undefined;return{'defaultProfile':_0x4656ce[_0x4b404f(0x11a)],'profiles':_0x292b4f,'models':_0x37e55d};}catch{return undefined;}}export function readModelRegistry(_0x52abc9){if(!existsSync(_0x52abc9))return undefined;try{return parseModelRegistry(readFileSync(_0x52abc9,'utf8'));}catch{return undefined;}}function registrySource(_0x2f20e6){const _0xbcd43c=a6_0x3ec527,_0x326cfc=Object['keys'](_0x2f20e6[_0xbcd43c(0x109)]),_0x48b96a=_0x2f20e6[_0xbcd43c(0x12a)][_0xbcd43c(0xf9)](_0x10d3ae=>{const _0x165a54=_0xbcd43c,_0x4d05c9=_0x326cfc[_0x165a54(0xf9)](_0xc33756=>_0x10d3ae[_0x165a54(0xf6)][_0xc33756]),_0xe81e4=_0x4d05c9[0x0],_0xe46335=_0xe81e4!==undefined&&_0x4d05c9['every'](_0x39d653=>_0x39d653===_0xe81e4),_0x4b5ac2={'alias':_0x10d3ae[_0x165a54(0x10d)],'tableName':_0x10d3ae['tableName'],'name':_0x10d3ae[_0x165a54(0xfe)]};return _0xe46335?{..._0x4b5ac2,'datasetCode':_0xe81e4}:{..._0x4b5ac2,'datasetCodes':_0x10d3ae[_0x165a54(0xf6)]};}),_0x543f1c=JSON['stringify']({'defaultProfile':_0x2f20e6[_0xbcd43c(0x11a)],'profiles':_0x2f20e6[_0xbcd43c(0x109)],'models':_0x48b96a},null,0x2)[_0xbcd43c(0x124)]('\x0a')['map'](_0x29a0ed=>'\x20\x20'+_0x29a0ed)[_0xbcd43c(0x114)]('\x0a');return _0xbcd43c(0x11f)+MODEL_REGISTRY_VERSION_MARKER+_0xbcd43c(0x121)+REGISTRY_START+'\x0a'+_0x543f1c+'\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a'+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x3fe06c,_0x3270ad,_0x30b633){const _0x588327=a6_0x3ec527,_0xbb1f72=_0x30b633[_0x588327(0xf9)](_0xdf178a=>({..._0xdf178a,'alias':_0xdf178a[_0x588327(0x10d)]||_0xdf178a['tableName']})),_0x37ea0e=new Map(),_0x241997=new Map();for(const _0x17fce5 of _0xbb1f72){const _0x31ea67=_0x37ea0e[_0x588327(0xfc)](_0x17fce5[_0x588327(0x10d)]);if(_0x31ea67&&_0x31ea67!==_0x17fce5[_0x588327(0xfa)])throw new Error(_0x588327(0x108)+_0x17fce5[_0x588327(0x10d)]+_0x588327(0xf5)+_0x31ea67+_0x588327(0x10b)+_0x17fce5[_0x588327(0xfa)]+_0x588327(0x116)+_0x3270ad+'\x22.');const _0x39b896=_0x241997[_0x588327(0xfc)](_0x17fce5['tableName']);if(_0x39b896&&_0x39b896!==_0x17fce5['alias'])throw new Error('Table\x20\x22'+_0x17fce5[_0x588327(0xfa)]+_0x588327(0x125)+_0x39b896+_0x588327(0x10b)+_0x17fce5['alias']+_0x588327(0x116)+_0x3270ad+'\x22.');_0x37ea0e[_0x588327(0x12d)](_0x17fce5[_0x588327(0x10d)],_0x17fce5[_0x588327(0xfa)]),_0x241997[_0x588327(0x12d)](_0x17fce5[_0x588327(0xfa)],_0x17fce5[_0x588327(0x10d)]);const _0x1cd4ff=_0x3fe06c['models'][_0x588327(0x10a)](_0x3b48c7=>_0x3b48c7[_0x588327(0x10d)]===_0x17fce5[_0x588327(0x10d)]);if(_0x1cd4ff&&_0x1cd4ff['tableName']!==_0x17fce5['tableName'])throw new Error(_0x588327(0x108)+_0x17fce5[_0x588327(0x10d)]+'\x22\x20maps\x20to\x20table\x20\x22'+_0x1cd4ff[_0x588327(0xfa)]+_0x588327(0x120)+_0x17fce5[_0x588327(0xfa)]+_0x588327(0x116)+_0x3270ad+'\x22.');const _0x327a0a=_0x3fe06c[_0x588327(0x12a)][_0x588327(0x10a)](_0x59674e=>_0x59674e[_0x588327(0xfa)]===_0x17fce5['tableName']);if(_0x327a0a&&_0x327a0a[_0x588327(0x10d)]!==_0x17fce5[_0x588327(0x10d)])throw new Error('Table\x20\x22'+_0x17fce5[_0x588327(0xfa)]+'\x22\x20maps\x20to\x20alias\x20\x22'+_0x327a0a['alias']+_0x588327(0x120)+_0x17fce5['alias']+_0x588327(0x116)+_0x3270ad+'\x22.');}for(const _0x45c04c of _0x3fe06c['models']){delete _0x45c04c[_0x588327(0xf6)][_0x3270ad];}for(const _0x1a723a of _0xbb1f72){let _0x4d3e80=_0x3fe06c['models'][_0x588327(0x10a)](_0x359dfb=>_0x359dfb['alias']===_0x1a723a[_0x588327(0x10d)]);!_0x4d3e80&&(_0x4d3e80={'alias':_0x1a723a[_0x588327(0x10d)],'tableName':_0x1a723a[_0x588327(0xfa)],'name':_0x1a723a['name'],'datasetCodes':{}},_0x3fe06c[_0x588327(0x12a)][_0x588327(0x101)](_0x4d3e80)),(_0x3270ad===_0x3fe06c[_0x588327(0x11a)]||!_0x4d3e80[_0x588327(0xf6)][_0x3fe06c['defaultProfile']])&&(_0x4d3e80[_0x588327(0x10d)]=_0x1a723a['alias'],_0x4d3e80[_0x588327(0xfa)]=_0x1a723a['tableName'],_0x4d3e80[_0x588327(0xfe)]=_0x1a723a[_0x588327(0xfe)]),_0x4d3e80[_0x588327(0xf6)][_0x3270ad]=_0x1a723a['datasetCode'];}_0x3fe06c[_0x588327(0x12a)]=_0x3fe06c[_0x588327(0x12a)][_0x588327(0x128)](_0xe33f25=>Object[_0x588327(0xf8)](_0xe33f25['datasetCodes'])['length']>0x0);}function removeUnboundProfiles(_0x1061d2){const _0x38f9f0=a6_0x3ec527,_0x8dc340=Object['entries'](_0x1061d2['profiles'])[_0x38f9f0(0x128)](([,_0x25faf7])=>_0x25faf7['appCode']===_0x38f9f0(0x102))[_0x38f9f0(0xf9)](([_0x3f6fed])=>_0x3f6fed);if(_0x8dc340[_0x38f9f0(0x123)]===0x0)return;for(const _0x1287f0 of _0x8dc340){delete _0x1061d2[_0x38f9f0(0x109)][_0x1287f0];for(const _0xb9f515 of _0x1061d2[_0x38f9f0(0x12a)]){delete _0xb9f515[_0x38f9f0(0xf6)][_0x1287f0];}}_0x1061d2[_0x38f9f0(0x12a)]=_0x1061d2[_0x38f9f0(0x12a)][_0x38f9f0(0x128)](_0x5987c8=>Object[_0x38f9f0(0xf8)](_0x5987c8['datasetCodes'])['length']>0x0);}export function getProfileModels(_0x241bb8,_0x3f103d){const _0x1f44e0=a6_0x3ec527;return _0x241bb8[_0x1f44e0(0x12a)][_0x1f44e0(0x129)](_0x6e9d29=>{const _0x4a9526=_0x1f44e0,_0x21a9a9=_0x6e9d29['datasetCodes'][_0x3f103d];return _0x21a9a9?[{'datasetCode':_0x21a9a9,'tableName':_0x6e9d29['tableName'],'name':_0x6e9d29['name'],'alias':_0x6e9d29[_0x4a9526(0x10d)]}]:[];});}export function updateModelRegistry(_0x104e71){const _0xa5c0bb=a6_0x3ec527,_0x4556f2=a6_0xffc5aa['join'](_0x104e71['outputDir'],MODEL_REGISTRY_FILE_NAME),_0xf4944b=existsSync(_0x4556f2),_0x43745f=readModelRegistry(_0x4556f2);if(_0xf4944b&&!_0x43745f)throw new Error(MODEL_REGISTRY_FILE_NAME+_0xa5c0bb(0x10c));const _0x520387=_0x43745f??emptyRegistry(_0x104e71['defaultProfile']);if(_0x104e71['appCode']!=='NOT-SET')removeUnboundProfiles(_0x520387);const _0x3fa8de=_0x43745f?getProfileModels(_0x43745f,_0x104e71[_0xa5c0bb(0x11c)])['length']:0x0;if(_0x3fa8de>0x0&&_0x104e71[_0xa5c0bb(0x12a)]['length']===0x0&&!_0x104e71[_0xa5c0bb(0x111)])throw new Error('Refusing\x20to\x20replace\x20'+_0x3fa8de+'\x20model(s)\x20in\x20profile\x20\x22'+_0x104e71[_0xa5c0bb(0x11c)]+'\x22\x20with\x20an\x20empty\x20result.\x20'+'Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.');_0x520387[_0xa5c0bb(0x11a)]=_0x104e71[_0xa5c0bb(0x11a)],_0x520387['profiles'][_0x104e71[_0xa5c0bb(0x11c)]]={'appCode':_0x104e71[_0xa5c0bb(0x11e)],'runtimeDomain':_0x104e71[_0xa5c0bb(0xfd)]},mergeProfileModels(_0x520387,_0x104e71['profileName'],_0x104e71[_0xa5c0bb(0x12a)]),mkdirSync(_0x104e71[_0xa5c0bb(0x110)],{'recursive':!![]});const _0x4ea2b0=_0x4556f2+'.'+process['pid']+'.'+Date['now']()+_0xa5c0bb(0x131);try{writeFileSync(_0x4ea2b0,registrySource(_0x520387),{'encoding':_0xa5c0bb(0x100),'mode':0x1a4}),renameSync(_0x4ea2b0,_0x4556f2);}catch(_0x32cca3){try{unlinkSync(_0x4ea2b0);}catch{}throw _0x32cca3;}return{'path':_0x4556f2,'registry':_0x520387,'existed':_0xf4944b};}
@@ -1 +1 @@
1
- const a7_0x21340e=a7_0xed32;function a7_0x41c6(){const _0x1091d9=['profile-api.ts.tpl','startsWith','{ProjectRoutingImport}','join','../../templates/generate-api','9CpNrjn','all','resolve','1645GfmTxR','utf8','303897zNSUDy','4QXMyAI','13280553dqMJQD','12738mBWono','18cmxqdk','4242850ncGDna','relative','replace','81712nwbfng','cwd','205235cRiTbU','85932hkBbth','profile-client.ts.tpl','format','typescript'];a7_0x41c6=function(){return _0x1091d9;};return a7_0x41c6();}(function(_0x123078,_0x4b9956){const _0x34e12d=a7_0xed32,_0xa6a42d=_0x123078();while(!![]){try{const _0x411261=parseInt(_0x34e12d(0xc6))/0x1+-parseInt(_0x34e12d(0xd1))/0x2*(-parseInt(_0x34e12d(0xca))/0x3)+-parseInt(_0x34e12d(0xc7))/0x4*(-parseInt(_0x34e12d(0xd0))/0x5)+-parseInt(_0x34e12d(0xc9))/0x6*(-parseInt(_0x34e12d(0xc4))/0x7)+-parseInt(_0x34e12d(0xce))/0x8*(parseInt(_0x34e12d(0xc1))/0x9)+parseInt(_0x34e12d(0xcb))/0xa+-parseInt(_0x34e12d(0xc8))/0xb;if(_0x411261===_0x4b9956)break;else _0xa6a42d['push'](_0xa6a42d['shift']());}catch(_0x2e83cf){_0xa6a42d['push'](_0xa6a42d['shift']());}}}(a7_0x41c6,0x4b4a9));import{readFileSync}from'node:fs';import a7_0x1ad74f from'node:path';import{fileURLToPath}from'node:url';function a7_0xed32(_0x6bbf09,_0x29fe69){_0x6bbf09=_0x6bbf09-0xc0;const _0x41c6c6=a7_0x41c6();let _0xed32a0=_0x41c6c6[_0x6bbf09];return _0xed32a0;}import a7_0x27e9d5 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x16d3cd,_0x7df859){const _0x3b1dc1=a7_0xed32;let _0x5c81f0=a7_0x1ad74f[_0x3b1dc1(0xcc)](_0x16d3cd,_0x7df859)['replace'](/\\/g,'/');if(!_0x5c81f0[_0x3b1dc1(0xd6)]('.'))_0x5c81f0='./'+_0x5c81f0;return _0x5c81f0;}export async function renderModelRegistryScaffold(_0x225664,_0x240706=process[a7_0x21340e(0xcf)]()){const _0xc4272b=a7_0x21340e,_0x471af3=fileURLToPath(import.meta.url),_0x2c6904=a7_0x1ad74f[_0xc4272b(0xc3)](a7_0x1ad74f['dirname'](_0x471af3),_0xc4272b(0xc0)),_0x3bcccb=relativeImport(a7_0x1ad74f[_0xc4272b(0xc3)](_0x225664),a7_0x1ad74f[_0xc4272b(0xc3)](_0x240706,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x196863=readFileSync(a7_0x1ad74f[_0xc4272b(0xd8)](_0x2c6904,_0xc4272b(0xd5)),_0xc4272b(0xc5))[_0xc4272b(0xcd)](_0xc4272b(0xd7),_0x3bcccb),[_0x14ab81,_0x397685,_0x17736a]=await Promise[_0xc4272b(0xc2)]([a7_0x27e9d5[_0xc4272b(0xd3)](_0x196863,{'parser':'typescript'}),a7_0x27e9d5['format'](readFileSync(a7_0x1ad74f[_0xc4272b(0xd8)](_0x2c6904,_0xc4272b(0xd2)),_0xc4272b(0xc5)),{'parser':_0xc4272b(0xd4)}),a7_0x27e9d5[_0xc4272b(0xd3)](readFileSync(a7_0x1ad74f[_0xc4272b(0xd8)](_0x2c6904,'model-runtime.ts.tpl'),_0xc4272b(0xc5)),{'parser':_0xc4272b(0xd4)})]);return{'api':_0x14ab81,'client':_0x397685,'modelRuntime':_0x17736a};}
1
+ (function(_0x5102e2,_0x5080a1){const _0x3d6e7a=a7_0x3634,_0x2e5f16=_0x5102e2();while(!![]){try{const _0x2bcee2=parseInt(_0x3d6e7a(0x109))/0x1*(parseInt(_0x3d6e7a(0x10c))/0x2)+parseInt(_0x3d6e7a(0x10d))/0x3*(-parseInt(_0x3d6e7a(0x110))/0x4)+parseInt(_0x3d6e7a(0x100))/0x5+parseInt(_0x3d6e7a(0xfe))/0x6+parseInt(_0x3d6e7a(0x111))/0x7*(-parseInt(_0x3d6e7a(0xfd))/0x8)+parseInt(_0x3d6e7a(0x102))/0x9*(-parseInt(_0x3d6e7a(0x101))/0xa)+parseInt(_0x3d6e7a(0x10e))/0xb*(parseInt(_0x3d6e7a(0xff))/0xc);if(_0x2bcee2===_0x5080a1)break;else _0x2e5f16['push'](_0x2e5f16['shift']());}catch(_0x898dd0){_0x2e5f16['push'](_0x2e5f16['shift']());}}}(a7_0x1182,0xde925));function a7_0x3634(_0x5f131d,_0x1aa318){_0x5f131d=_0x5f131d-0xfd;const _0x11824b=a7_0x1182();let _0x36342b=_0x11824b[_0x5f131d];return _0x36342b;}import{readFileSync}from'node:fs';import a7_0x490c70 from'node:path';import{fileURLToPath}from'node:url';import a7_0x45bdad from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x5c97ef,_0x63b3b8){const _0x2a7837=a7_0x3634;let _0x573f14=a7_0x490c70[_0x2a7837(0x106)](_0x5c97ef,_0x63b3b8)['replace'](/\\/g,'/');if(!_0x573f14['startsWith']('.'))_0x573f14='./'+_0x573f14;return _0x573f14;}export async function renderModelRegistryScaffold(_0x36be81,_0xf866a0=process['cwd']()){const _0x14f898=a7_0x3634,_0x344341=fileURLToPath(import.meta.url),_0x46e255=a7_0x490c70[_0x14f898(0x107)](a7_0x490c70[_0x14f898(0x10f)](_0x344341),_0x14f898(0x113)),_0x4af531=relativeImport(a7_0x490c70[_0x14f898(0x107)](_0x36be81),a7_0x490c70[_0x14f898(0x107)](_0xf866a0,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x55b580=readFileSync(a7_0x490c70[_0x14f898(0x10b)](_0x46e255,_0x14f898(0x104)),_0x14f898(0x103))[_0x14f898(0x108)]('{ProjectRoutingImport}',_0x4af531),[_0x292047,_0x8ee133,_0x492a2f]=await Promise[_0x14f898(0x114)]([a7_0x45bdad[_0x14f898(0x112)](_0x55b580,{'parser':_0x14f898(0x10a)}),a7_0x45bdad['format'](readFileSync(a7_0x490c70[_0x14f898(0x10b)](_0x46e255,'profile-client.ts.tpl'),_0x14f898(0x103)),{'parser':_0x14f898(0x10a)}),a7_0x45bdad['format'](readFileSync(a7_0x490c70[_0x14f898(0x10b)](_0x46e255,_0x14f898(0x105)),_0x14f898(0x103)),{'parser':_0x14f898(0x10a)})]);return{'api':_0x292047,'client':_0x8ee133,'modelRuntime':_0x492a2f};}function a7_0x1182(){const _0x233a61=['replace','2023uNahAK','typescript','join','1410rHFEOK','1275273JmIQGf','55aqSvmx','dirname','4bWmXVn','175vbPExD','format','../../templates/generate-api','all','532648MOImyD','1338720BFkhWl','271812OsMNyz','6556065lEHoXh','65940gkgElg','99RAritN','utf8','profile-api.ts.tpl','model-runtime.ts.tpl','relative','resolve'];a7_0x1182=function(){return _0x233a61;};return a7_0x1182();}
@@ -1 +1 @@
1
- (function(_0x437cbb,_0x32ac19){const _0x23ee04=a8_0xaeb3,_0x598090=_0x437cbb();while(!![]){try{const _0x4667f3=-parseInt(_0x23ee04(0x121))/0x1+-parseInt(_0x23ee04(0x109))/0x2*(parseInt(_0x23ee04(0x104))/0x3)+-parseInt(_0x23ee04(0x102))/0x4+parseInt(_0x23ee04(0x11c))/0x5*(parseInt(_0x23ee04(0x119))/0x6)+-parseInt(_0x23ee04(0x112))/0x7+-parseInt(_0x23ee04(0x103))/0x8+-parseInt(_0x23ee04(0x111))/0x9*(-parseInt(_0x23ee04(0x10b))/0xa);if(_0x4667f3===_0x32ac19)break;else _0x598090['push'](_0x598090['shift']());}catch(_0xf613a5){_0x598090['push'](_0x598090['shift']());}}}(a8_0xd7d2,0xda707));import{existsSync}from'node:fs';function a8_0xd7d2(){const _0x266a8b=['length','map','145iunbqS','cwd','defaultProfile','appcode','defaultApp','1762648MPkxaD','-api.ts','api.ts','274076NxDldK','4786824BIHaKx','21MJArIT','\x22\x20is\x20missing\x20from\x20','find','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','Model\x20profile\x20\x22','98024AufmTL','Run\x20`','1480WwegwH','filter','resolve','join','`\x20first.','apiDir','236889Wqsizb','1901536WVFixG','apps','AppCode\x20\x22','appCode','validation','profiles','entries','8994gprVbQ'];a8_0xd7d2=function(){return _0x266a8b;};return a8_0xd7d2();}import a8_0x5a90b1 from'node:path';import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';import{CliErrors}from'../errors.js';function a8_0xaeb3(_0x228e60,_0x3a8c52){_0x228e60=_0x228e60-0x101;const _0xd7d2a1=a8_0xd7d2();let _0xaeb3c7=_0xd7d2a1[_0x228e60];return _0xaeb3c7;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x468cba,_0x342944,_0x56f6e3){const _0xda3aa4=a8_0xaeb3,_0x3a4267=a8_0x5a90b1[_0xda3aa4(0x10d)](process[_0xda3aa4(0x11d)](),_0x468cba),_0x4ca758=a8_0x5a90b1[_0xda3aa4(0x10d)](_0x3a4267,_0xda3aa4(0x101)),_0x3e75b8=a8_0x5a90b1[_0xda3aa4(0x10d)](_0x3a4267,MODEL_REGISTRY_FILE_NAME),_0x506368=readModelRegistry(_0x3e75b8);if(_0x506368){const _0x409cfb=_0x342944?Object[_0xda3aa4(0x118)](_0x506368[_0xda3aa4(0x117)])[_0xda3aa4(0x10c)](([,_0x544cd9])=>_0x544cd9[_0xda3aa4(0x115)]===_0x342944):[];if(_0x56f6e3){if(_0x506368[_0xda3aa4(0x117)][_0x56f6e3])return{'filePath':_0x3e75b8,'profileName':_0x56f6e3};if(_0x409cfb[_0xda3aa4(0x11a)]>0x0)throw CliErrors[_0xda3aa4(0x116)](_0xda3aa4(0x108)+_0x56f6e3+_0xda3aa4(0x105)+MODEL_REGISTRY_FILE_NAME+'.',_0xda3aa4(0x10a)+CLI_BIN_NAME+'\x20api\x20pull\x20--app\x20'+_0x56f6e3+_0xda3aa4(0x10f));}else{if(_0x409cfb['length']===0x1)return{'filePath':_0x3e75b8,'profileName':_0x409cfb[0x0][0x0]};if(_0x409cfb['length']>0x1)throw new Error(_0xda3aa4(0x114)+_0x342944+'\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20'+_0x409cfb[_0xda3aa4(0x11b)](([_0x4cef02])=>_0x4cef02)[_0xda3aa4(0x10e)](',\x20')+'.\x20'+_0xda3aa4(0x107));if(_0x506368[_0xda3aa4(0x117)][_0x506368[_0xda3aa4(0x11e)]]&&!_0x342944)return{'filePath':_0x3e75b8,'profileName':_0x506368[_0xda3aa4(0x11e)]};}}if(!_0x342944&&!_0x56f6e3)return{'filePath':_0x4ca758};const _0x5c1e2b=readRawConfig(),_0x295691=_0x5c1e2b[_0xda3aa4(0x113)]&&typeof _0x5c1e2b['apps']==='object'?_0x5c1e2b['apps']:{},_0x387297=_0x56f6e3&&_0x295691[_0x56f6e3]?[_0x56f6e3,_0x295691[_0x56f6e3]]:Object['entries'](_0x295691)[_0xda3aa4(0x106)](([,_0x2135cf])=>_0x2135cf?.[_0xda3aa4(0x11f)]===_0x342944);if(!_0x387297)return{'filePath':_0x4ca758};const [_0x33586a,_0x24e3ad]=_0x387297,_0x34ae56=typeof _0x5c1e2b['defaultApp']==='string'?_0x5c1e2b[_0xda3aa4(0x120)]:undefined;if(_0x24e3ad?.[_0xda3aa4(0x110)])return{'filePath':_0x4ca758};if(_0x34ae56&&_0x33586a!==_0x34ae56){const _0x458221=a8_0x5a90b1[_0xda3aa4(0x10d)](_0x3a4267,_0x33586a+_0xda3aa4(0x122));if(existsSync(_0x458221))return{'filePath':_0x458221};}return{'filePath':_0x4ca758};}
1
+ (function(_0x380c2a,_0x310346){const _0x2db009=a8_0x3531,_0x24a5e9=_0x380c2a();while(!![]){try{const _0x1c46e7=-parseInt(_0x2db009(0xd9))/0x1+-parseInt(_0x2db009(0xd0))/0x2+parseInt(_0x2db009(0xd3))/0x3*(-parseInt(_0x2db009(0xc7))/0x4)+parseInt(_0x2db009(0xd6))/0x5*(parseInt(_0x2db009(0xcc))/0x6)+-parseInt(_0x2db009(0xcf))/0x7+-parseInt(_0x2db009(0xda))/0x8*(-parseInt(_0x2db009(0xc9))/0x9)+-parseInt(_0x2db009(0xc1))/0xa*(-parseInt(_0x2db009(0xbc))/0xb);if(_0x1c46e7===_0x310346)break;else _0x24a5e9['push'](_0x24a5e9['shift']());}catch(_0x3b0d72){_0x24a5e9['push'](_0x24a5e9['shift']());}}}(a8_0x51fd,0xa1241));import{existsSync}from'node:fs';import a8_0x4a7352 from'node:path';function a8_0x3531(_0x3dd14,_0x5a915a){_0x3dd14=_0x3dd14-0xbc;const _0x51fd2f=a8_0x51fd();let _0x3531b3=_0x51fd2f[_0x3dd14];return _0x3531b3;}import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';import{CliErrors}from'../errors.js';function a8_0x51fd(){const _0x94cc8e=['22693VXGdTQ','apps','profiles','defaultProfile','filter','15370wESLmK','entries','\x20api\x20pull\x20--app\x20','map','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','length','4115532lgBnLA','resolve','25821dbfwHm','string','-api.ts','1364472IUNOoW','defaultApp','`\x20first.','789726wIvQyz','2444956lomFQY','Run\x20`','appCode','3KserGr','api.ts','\x22\x20is\x20missing\x20from\x20','20SBrrJO','join','find','1303001bKjUIJ','688MRglbT'];a8_0x51fd=function(){return _0x94cc8e;};return a8_0x51fd();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x482296,_0x52be73,_0x2ce2d3){const _0x4e41b3=a8_0x3531,_0x7d7c6e=a8_0x4a7352[_0x4e41b3(0xc8)](process['cwd'](),_0x482296),_0x5682b4=a8_0x4a7352[_0x4e41b3(0xc8)](_0x7d7c6e,_0x4e41b3(0xd4)),_0x5ddf9c=a8_0x4a7352['resolve'](_0x7d7c6e,MODEL_REGISTRY_FILE_NAME),_0x536207=readModelRegistry(_0x5ddf9c);if(_0x536207){const _0x5f5dc6=_0x52be73?Object[_0x4e41b3(0xc2)](_0x536207[_0x4e41b3(0xbe)])[_0x4e41b3(0xc0)](([,_0x3825f3])=>_0x3825f3[_0x4e41b3(0xd2)]===_0x52be73):[];if(_0x2ce2d3){if(_0x536207[_0x4e41b3(0xbe)][_0x2ce2d3])return{'filePath':_0x5ddf9c,'profileName':_0x2ce2d3};if(_0x5f5dc6[_0x4e41b3(0xc6)]>0x0)throw CliErrors['validation']('Model\x20profile\x20\x22'+_0x2ce2d3+_0x4e41b3(0xd5)+MODEL_REGISTRY_FILE_NAME+'.',_0x4e41b3(0xd1)+CLI_BIN_NAME+_0x4e41b3(0xc3)+_0x2ce2d3+_0x4e41b3(0xce));}else{if(_0x5f5dc6[_0x4e41b3(0xc6)]===0x1)return{'filePath':_0x5ddf9c,'profileName':_0x5f5dc6[0x0][0x0]};if(_0x5f5dc6[_0x4e41b3(0xc6)]>0x1)throw new Error('AppCode\x20\x22'+_0x52be73+'\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20'+_0x5f5dc6[_0x4e41b3(0xc4)](([_0x57e0a2])=>_0x57e0a2)[_0x4e41b3(0xd7)](',\x20')+'.\x20'+_0x4e41b3(0xc5));if(_0x536207['profiles'][_0x536207[_0x4e41b3(0xbf)]]&&!_0x52be73)return{'filePath':_0x5ddf9c,'profileName':_0x536207[_0x4e41b3(0xbf)]};}}if(!_0x52be73&&!_0x2ce2d3)return{'filePath':_0x5682b4};const _0x55ca29=readRawConfig(),_0x3e0bda=_0x55ca29['apps']&&typeof _0x55ca29[_0x4e41b3(0xbd)]==='object'?_0x55ca29[_0x4e41b3(0xbd)]:{},_0x413eea=_0x2ce2d3&&_0x3e0bda[_0x2ce2d3]?[_0x2ce2d3,_0x3e0bda[_0x2ce2d3]]:Object[_0x4e41b3(0xc2)](_0x3e0bda)[_0x4e41b3(0xd8)](([,_0x1406e2])=>_0x1406e2?.['appcode']===_0x52be73);if(!_0x413eea)return{'filePath':_0x5682b4};const [_0x3bb3d1,_0xed05b]=_0x413eea,_0x5a7091=typeof _0x55ca29['defaultApp']===_0x4e41b3(0xca)?_0x55ca29[_0x4e41b3(0xcd)]:undefined;if(_0xed05b?.['apiDir'])return{'filePath':_0x5682b4};if(_0x5a7091&&_0x3bb3d1!==_0x5a7091){const _0x4399c1=a8_0x4a7352[_0x4e41b3(0xc8)](_0x7d7c6e,_0x3bb3d1+_0x4e41b3(0xcb));if(existsSync(_0x4399c1))return{'filePath':_0x4399c1};}return{'filePath':_0x5682b4};}
@@ -1 +1 @@
1
- (function(_0x543111,_0x648a7b){const _0x2978d7=a9_0x56eb,_0x37f139=_0x543111();while(!![]){try{const _0x16071d=parseInt(_0x2978d7(0x153))/0x1*(parseInt(_0x2978d7(0x154))/0x2)+parseInt(_0x2978d7(0x144))/0x3+parseInt(_0x2978d7(0x142))/0x4+parseInt(_0x2978d7(0x143))/0x5*(-parseInt(_0x2978d7(0x150))/0x6)+-parseInt(_0x2978d7(0x156))/0x7+-parseInt(_0x2978d7(0x14f))/0x8*(-parseInt(_0x2978d7(0x157))/0x9)+-parseInt(_0x2978d7(0x158))/0xa*(parseInt(_0x2978d7(0x155))/0xb);if(_0x16071d===_0x648a7b)break;else _0x37f139['push'](_0x37f139['shift']());}catch(_0x44c8e0){_0x37f139['push'](_0x37f139['shift']());}}}(a9_0x403d,0xad547));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a9_0x56eb(_0x1ad35c,_0x42556e){_0x1ad35c=_0x1ad35c-0x142;const _0x403d13=a9_0x403d();let _0x56ebf4=_0x403d13[_0x1ad35c];return _0x56ebf4;}import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x41e591 from'ora';export async function runAuthServer(_0x4b6bbf){const _0x46e7af=a9_0x56eb,_0x1d072f=await getIsSessionValid();if(_0x1d072f){console[_0x46e7af(0x147)]('โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x4b6bbf?.[_0x46e7af(0x145)]&&!_0x4b6bbf['autoYes'])throw CliErrors[_0x46e7af(0x146)](_0x46e7af(0x14e),_0x46e7af(0x151)+CLI_BIN_NAME+_0x46e7af(0x14b));const _0xe4b70f=_0x4b6bbf?.[_0x46e7af(0x149)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0xe4b70f)return;if(_0x4b6bbf?.['nonInteractive']){console[_0x46e7af(0x147)](_0x46e7af(0x148));const _0x44f1b9=await authServer({'silent':![],'openBrowser':![]});_0x44f1b9?console[_0x46e7af(0x147)](_0x46e7af(0x14d)):console['log']('!\x20Login\x20failed.');return;}const _0x2c7a1e=a9_0x41e591(_0x46e7af(0x159))[_0x46e7af(0x14a)](),_0x3baaef=await authServer({'silent':!![],'openBrowser':!![]});_0x2c7a1e[_0x46e7af(0x14c)](),_0x3baaef?console[_0x46e7af(0x147)](_0x46e7af(0x14d)):console[_0x46e7af(0x147)](_0x46e7af(0x152));}function a9_0x403d(){const _0x5edcda=['\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','stop','*\x20Login\x20successful!','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','8rbWyTF','6jgMgKc','Run\x20`','!\x20Login\x20failed.','1129368dNlBoD','2yBRyZs','11yOUxex','3311742iCDTDf','5389677frJcQc','14185810Zvejue','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','5007552xdcrWE','4667210hmpBbS','1664937iMmggo','nonInteractive','validation','log','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','autoYes','start'];a9_0x403d=function(){return _0x5edcda;};return a9_0x403d();}
1
+ (function(_0x5491af,_0x312675){const _0x3f6798=a9_0x5ef8,_0x51cafb=_0x5491af();while(!![]){try{const _0x56a69a=-parseInt(_0x3f6798(0x146))/0x1+-parseInt(_0x3f6798(0x14d))/0x2+parseInt(_0x3f6798(0x148))/0x3+parseInt(_0x3f6798(0x14c))/0x4+-parseInt(_0x3f6798(0x14a))/0x5+-parseInt(_0x3f6798(0x144))/0x6*(-parseInt(_0x3f6798(0x143))/0x7)+parseInt(_0x3f6798(0x141))/0x8;if(_0x56a69a===_0x312675)break;else _0x51cafb['push'](_0x51cafb['shift']());}catch(_0x594ab1){_0x51cafb['push'](_0x51cafb['shift']());}}}(a9_0x20a6,0x57ca9));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a9_0x5ef8(_0x188ae6,_0x1bd286){_0x188ae6=_0x188ae6-0x13e;const _0x20a652=a9_0x20a6();let _0x5ef8cc=_0x20a652[_0x188ae6];return _0x5ef8cc;}import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x272371 from'ora';export async function runAuthServer(_0x548b60){const _0x1da257=a9_0x5ef8,_0x470ee2=await getIsSessionValid();if(_0x470ee2){console[_0x1da257(0x14b)](_0x1da257(0x14f));return;}if(_0x548b60?.[_0x1da257(0x13e)]&&!_0x548b60[_0x1da257(0x145)])throw CliErrors[_0x1da257(0x14e)]('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','Run\x20`'+CLI_BIN_NAME+_0x1da257(0x142));const _0x108a49=_0x548b60?.['autoYes']?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x108a49)return;if(_0x548b60?.[_0x1da257(0x13e)]){console[_0x1da257(0x14b)]('Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.');const _0x3fdebd=await authServer({'silent':![],'openBrowser':![]});_0x3fdebd?console[_0x1da257(0x14b)]('*\x20Login\x20successful!'):console[_0x1da257(0x14b)](_0x1da257(0x149));return;}const _0x908f58=a9_0x272371(_0x1da257(0x140))[_0x1da257(0x147)](),_0x8ef341=await authServer({'silent':!![],'openBrowser':!![]});_0x908f58['stop'](),_0x8ef341?console[_0x1da257(0x14b)](_0x1da257(0x13f)):console[_0x1da257(0x14b)](_0x1da257(0x149));}function a9_0x20a6(){const _0x4414d5=['Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','6105168gwXxBa','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','133JhuZwC','82524tFinST','autoYes','73522tscSMT','start','770670yLZxbp','!\x20Login\x20failed.','2114940QGseKB','log','1034300zRKGzm','1367668wgxYGe','validation','โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','nonInteractive','*\x20Login\x20successful!'];a9_0x20a6=function(){return _0x4414d5;};return a9_0x20a6();}
@@ -1 +1 @@
1
- const a10_0x143041=a10_0x32fb;(function(_0x402275,_0x3a2f56){const _0xe24d2b=a10_0x32fb,_0x20f30c=_0x402275();while(!![]){try{const _0x109110=-parseInt(_0xe24d2b(0x176))/0x1*(parseInt(_0xe24d2b(0x179))/0x2)+-parseInt(_0xe24d2b(0x167))/0x3*(-parseInt(_0xe24d2b(0x191))/0x4)+-parseInt(_0xe24d2b(0x17f))/0x5+parseInt(_0xe24d2b(0x17d))/0x6+-parseInt(_0xe24d2b(0x195))/0x7*(-parseInt(_0xe24d2b(0x192))/0x8)+-parseInt(_0xe24d2b(0x187))/0x9+parseInt(_0xe24d2b(0x16b))/0xa;if(_0x109110===_0x3a2f56)break;else _0x20f30c['push'](_0x20f30c['shift']());}catch(_0x2476c1){_0x20f30c['push'](_0x20f30c['shift']());}}}(a10_0x5334,0x1f137));import{writeFileSync}from'node:fs';import a10_0x214051 from'node:http';import a10_0x3df279 from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0xb22c48){const _0x1ffdf1=a10_0x32fb;if(!_0xb22c48)return getProjectDomainRoutingManifest()[_0x1ffdf1(0x16d)];const _0x24854e=getOfficialRoutingProfile(_0xb22c48),_0x43c4ea=getOfficialRoutingCdn(_0xb22c48);return{'origin':_0x24854e[_0x1ffdf1(0x16d)][_0x1ffdf1(0x17b)],'certificateUrl':_0x43c4ea['lovrabet']+'/cert/lovrabet-dev.json'};}function withPort(_0x5a636f,_0x18ea06){const _0x1416eb=a10_0x32fb,_0x3bedec=new URL(_0x5a636f);return _0x3bedec[_0x1416eb(0x164)]=String(_0x18ea06),_0x3bedec[_0x1416eb(0x17b)];}export async function authServer(_0x4891b5){const _0x52966b=a10_0x32fb,_0x2cba13=_0x4891b5?.[_0x52966b(0x186)]||![],_0x4beb56=_0x4891b5?.[_0x52966b(0x189)]??!![],_0x349c3c=_0x4891b5?.[_0x52966b(0x168)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x3d7ce8=resolveAuthCallbackRouting(),_0x368de5=_0x3d7ce8['certificateUrl']?await(await fetch(_0x3d7ce8[_0x52966b(0x18a)]))[_0x52966b(0x181)]():undefined;return new Promise(async(_0x51e728,_0x52d2f4)=>{const _0x3bd66f=_0x52966b;let _0x26a066=0x0,_0x4568e3=![],_0x19c57e;const _0x3aac76=async(_0x156424,_0xcb7ff6)=>{const _0x374649=a10_0x32fb,_0x4513d9=getUserDomain(),_0x1b7625=_0x156424[_0x374649(0x188)][_0x374649(0x174)]||'',_0x561078=await fetch(_0x4513d9+_0x374649(0x194),{'headers':{'cookie':_0x1b7625}})[_0x374649(0x193)](_0x3658fd=>_0x3658fd[_0x374649(0x181)]()),_0x5eb58b=_0x561078&&_0x561078[_0x374649(0x178)]&&_0x561078[_0x374649(0x185)];if(_0x5eb58b){writeFileSync(cookieFile,_0x1b7625,_0x374649(0x18c));const _0x42d0e2=buildLoginSuccessHtml();_0xcb7ff6[_0x374649(0x18f)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0xcb7ff6[_0x374649(0x18e)](_0x42d0e2),_0x47f109(!![]);}else{const _0x32402a=encodeURIComponent(withPort(_0x3d7ce8[_0x374649(0x17b)],_0x26a066));_0xcb7ff6[_0x374649(0x18f)](0x12e,{'location':_0x4513d9+_0x374649(0x17e)+_0x32402a}),_0xcb7ff6[_0x374649(0x18e)]();return;}},_0x4d705d=_0x368de5?a10_0x3df279[_0x3bd66f(0x175)](_0x368de5,_0x3aac76):a10_0x214051[_0x3bd66f(0x175)](_0x3aac76);function _0x47f109(_0x46cbe0){if(_0x4568e3)return;_0x4568e3=!![],_0x19c57e&&clearTimeout(_0x19c57e),_0x4d705d['close'](),_0x51e728(_0x46cbe0);}_0x4d705d[_0x3bd66f(0x16a)](0x0,'127.0.0.1',()=>{const _0x130563=_0x3bd66f,_0x53b93a=_0x4d705d[_0x130563(0x170)]();_0x26a066=typeof _0x53b93a===_0x130563(0x16c)&&_0x53b93a?_0x53b93a['port']:Number(_0x53b93a);const _0x4010df=withPort(_0x3d7ce8[_0x130563(0x17b)],_0x26a066);_0x19c57e=setTimeout(()=>{const _0x1786a2=_0x130563;!_0x2cba13&&console[_0x1786a2(0x166)](_0x1786a2(0x182)),_0x47f109(![]);},_0x349c3c);!_0x2cba13&&(console[_0x130563(0x166)](_0x130563(0x16e)),console[_0x130563(0x166)]('๐Ÿ“\x20Login\x20URL:',_0x4010df),_0x4beb56?(console[_0x130563(0x166)](_0x130563(0x171)),console['log'](''),console[_0x130563(0x166)]('๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.')):console['log'](_0x130563(0x16f)),console[_0x130563(0x166)](''));if(!_0x4beb56)return;openInBrowser(_0x4010df)[_0x130563(0x193)](_0x49429f=>{const _0x16bbce=_0x130563;!_0x2cba13&&(_0x49429f?console[_0x16bbce(0x166)](_0x16bbce(0x17a)):(console[_0x16bbce(0x166)](_0x16bbce(0x17c)),console['log']('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x4010df)),console[_0x16bbce(0x166)](''));})[_0x130563(0x184)](()=>{const _0xb3647c=_0x130563;!_0x2cba13&&(console[_0xb3647c(0x166)]('โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console['log'](_0xb3647c(0x173),_0x4010df),console[_0xb3647c(0x166)](''));});}),_0x4d705d['on'](_0x3bd66f(0x18b),_0xb57a0d=>{const _0x406976=_0x3bd66f;if(_0x4568e3)return;_0x4568e3=!![],_0x19c57e&&clearTimeout(_0x19c57e),!_0x2cba13&&console['error'](_0x406976(0x183),_0xb57a0d),_0x4d705d[_0x406976(0x169)](),_0x52d2f4(_0xb57a0d);});});}function a10_0x32fb(_0x3397ba,_0x1af199){_0x3397ba=_0x3397ba-0x164;const _0x533491=a10_0x5334();let _0x32fb9f=_0x533491[_0x3397ba];return _0x32fb9f;}function a10_0x5334(){const _0x2d406a=['271500umgcWh','/sign-in?redirect=','302535muHTdE','cmd\x20/c\x20start\x20\x22\x22\x20\x22','json','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','Auth\x20server\x20error:','catch','user','silent','1422954GEqiHR','headers','openBrowser','certificateUrl','error','utf-8','xdg-open\x20\x22','end','writeHead','win32','450512iOnLLe','1235448wwlEKo','then','/api/auth/get-session','7wZodzS','port','platform','log','6CQydoi','timeoutMs','close','listen','423010xMPWHU','object','local','๐Ÿ”\x20Starting\x20login\x20service...','๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','address','๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...','darwin','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','cookie','createServer','13482jaXnTG','isAuth','session','18dhdVeD','โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','origin','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically'];a10_0x5334=function(){return _0x2d406a;};return a10_0x5334();}function openInBrowser(_0x2cab6c){return new Promise(_0x1e686c=>{const _0x561d32=a10_0x32fb,_0x2ce7e4=process[_0x561d32(0x165)];let _0x1eede7;if(_0x2ce7e4===_0x561d32(0x190))_0x1eede7=_0x561d32(0x180)+_0x2cab6c+'\x22';else _0x2ce7e4===_0x561d32(0x172)?_0x1eede7='open\x20\x22'+_0x2cab6c+'\x22':_0x1eede7=_0x561d32(0x18d)+_0x2cab6c+'\x22';exec(_0x1eede7,_0x37245c=>{_0x37245c?_0x1e686c(![]):_0x1e686c(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x143041(0x166)](a10_0x143041(0x177),isAuth);}
1
+ const a10_0x5bd3ea=a10_0x5d31;(function(_0x3922d4,_0xfeba7f){const _0x2ee961=a10_0x5d31,_0x1fe8f9=_0x3922d4();while(!![]){try{const _0x45a306=parseInt(_0x2ee961(0x221))/0x1+parseInt(_0x2ee961(0x200))/0x2*(-parseInt(_0x2ee961(0x1f5))/0x3)+parseInt(_0x2ee961(0x20a))/0x4*(-parseInt(_0x2ee961(0x202))/0x5)+parseInt(_0x2ee961(0x216))/0x6*(-parseInt(_0x2ee961(0x225))/0x7)+-parseInt(_0x2ee961(0x1fb))/0x8+parseInt(_0x2ee961(0x1f6))/0x9*(-parseInt(_0x2ee961(0x215))/0xa)+-parseInt(_0x2ee961(0x1fe))/0xb*(-parseInt(_0x2ee961(0x1fd))/0xc);if(_0x45a306===_0xfeba7f)break;else _0x1fe8f9['push'](_0x1fe8f9['shift']());}catch(_0x34d2d4){_0x1fe8f9['push'](_0x1fe8f9['shift']());}}}(a10_0x5b08,0x18706));import{writeFileSync}from'node:fs';import a10_0x203388 from'node:http';import a10_0x1ef4f5 from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';import{exec}from'node:child_process';function a10_0x5d31(_0x246cf5,_0x5c96a4){_0x246cf5=_0x246cf5-0x1f4;const _0x5b08e1=a10_0x5b08();let _0x5d3100=_0x5b08e1[_0x246cf5];return _0x5d3100;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';function a10_0x5b08(){const _0x5231c1=['darwin','๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','headers','log','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','cookie','text/html;\x20charset=utf-8','924YlVGmv','timeoutMs','isAuth','/cert/lovrabet-dev.json','error','cmd\x20/c\x20start\x20\x22\x22\x20\x22','๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','then','platform','xdg-open\x20\x22','user','909610SYIEtj','463506ItgJlt','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically','session','/sign-in?redirect=','๐Ÿ“\x20Login\x20URL:','listen','open\x20\x22','local','createServer','Auth\x20server\x20error:','close','77727GAUdAS','127.0.0.1','/api/auth/get-session','object','7KhuzjW','port','origin','3Htxcod','18ZovYli','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...','certificateUrl','win32','624088WhLKZe','json','7284336SKRrex','11BnDDPp','๐Ÿ”\x20Starting\x20login\x20service...','253774sakJpz','lovrabet','2610sopKQh'];a10_0x5b08=function(){return _0x5231c1;};return a10_0x5b08();}export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0x4fa2c0){const _0x11c73a=a10_0x5d31;if(!_0x4fa2c0)return getProjectDomainRoutingManifest()[_0x11c73a(0x21d)];const _0x132659=getOfficialRoutingProfile(_0x4fa2c0),_0x26608f=getOfficialRoutingCdn(_0x4fa2c0);return{'origin':_0x132659[_0x11c73a(0x21d)][_0x11c73a(0x1f4)],'certificateUrl':_0x26608f[_0x11c73a(0x201)]+_0x11c73a(0x20d)};}function withPort(_0x536a68,_0x1be609){const _0x44fc98=a10_0x5d31,_0x14950e=new URL(_0x536a68);return _0x14950e[_0x44fc98(0x226)]=String(_0x1be609),_0x14950e['origin'];}export async function authServer(_0x568b01){const _0x128577=a10_0x5d31,_0x1dd4d9=_0x568b01?.['silent']||![],_0x421eb9=_0x568b01?.['openBrowser']??!![],_0x3333eb=_0x568b01?.[_0x128577(0x20b)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x7b6ffc=resolveAuthCallbackRouting(),_0x27395b=_0x7b6ffc[_0x128577(0x1f9)]?await(await fetch(_0x7b6ffc[_0x128577(0x1f9)]))[_0x128577(0x1fc)]():undefined;return new Promise(async(_0x504097,_0x15e223)=>{const _0x43257b=_0x128577;let _0x1478d1=0x0,_0x215bd7=![],_0x5a53b9;const _0x37f2ea=async(_0x57da25,_0x3f06ca)=>{const _0xb7f6e2=a10_0x5d31,_0x15bc5e=getUserDomain(),_0x1ad0c6=_0x57da25[_0xb7f6e2(0x205)][_0xb7f6e2(0x208)]||'',_0x4be881=await fetch(_0x15bc5e+_0xb7f6e2(0x223),{'headers':{'cookie':_0x1ad0c6}})['then'](_0x2e72f4=>_0x2e72f4[_0xb7f6e2(0x1fc)]()),_0xfa1a33=_0x4be881&&_0x4be881[_0xb7f6e2(0x218)]&&_0x4be881[_0xb7f6e2(0x214)];if(_0xfa1a33){writeFileSync(cookieFile,_0x1ad0c6,'utf-8');const _0x28aa48=buildLoginSuccessHtml();_0x3f06ca['writeHead'](0xc8,{'Content-Type':_0xb7f6e2(0x209)}),_0x3f06ca['end'](_0x28aa48),_0x4a1572(!![]);}else{const _0x38070c=encodeURIComponent(withPort(_0x7b6ffc[_0xb7f6e2(0x1f4)],_0x1478d1));_0x3f06ca['writeHead'](0x12e,{'location':_0x15bc5e+_0xb7f6e2(0x219)+_0x38070c}),_0x3f06ca['end']();return;}},_0x3bfebe=_0x27395b?a10_0x1ef4f5[_0x43257b(0x21e)](_0x27395b,_0x37f2ea):a10_0x203388['createServer'](_0x37f2ea);function _0x4a1572(_0x59a6b8){if(_0x215bd7)return;_0x215bd7=!![],_0x5a53b9&&clearTimeout(_0x5a53b9),_0x3bfebe['close'](),_0x504097(_0x59a6b8);}_0x3bfebe[_0x43257b(0x21b)](0x0,_0x43257b(0x222),()=>{const _0x3f673e=_0x43257b,_0xe8cb58=_0x3bfebe['address']();_0x1478d1=typeof _0xe8cb58===_0x3f673e(0x224)&&_0xe8cb58?_0xe8cb58[_0x3f673e(0x226)]:Number(_0xe8cb58);const _0x361949=withPort(_0x7b6ffc['origin'],_0x1478d1);_0x5a53b9=setTimeout(()=>{const _0x5e08bc=_0x3f673e;!_0x1dd4d9&&console[_0x5e08bc(0x206)](_0x5e08bc(0x207)),_0x4a1572(![]);},_0x3333eb);!_0x1dd4d9&&(console['log'](_0x3f673e(0x1ff)),console[_0x3f673e(0x206)](_0x3f673e(0x21a),_0x361949),_0x421eb9?(console[_0x3f673e(0x206)](_0x3f673e(0x1f8)),console[_0x3f673e(0x206)](''),console[_0x3f673e(0x206)](_0x3f673e(0x204))):console[_0x3f673e(0x206)](_0x3f673e(0x210)),console[_0x3f673e(0x206)](''));if(!_0x421eb9)return;openInBrowser(_0x361949)[_0x3f673e(0x211)](_0x34cf58=>{const _0x7301bc=_0x3f673e;!_0x1dd4d9&&(_0x34cf58?console[_0x7301bc(0x206)]('โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0x7301bc(0x206)](_0x7301bc(0x217)),console['log'](_0x7301bc(0x1f7),_0x361949)),console[_0x7301bc(0x206)](''));})['catch'](()=>{const _0x2ca7b9=_0x3f673e;!_0x1dd4d9&&(console[_0x2ca7b9(0x206)](_0x2ca7b9(0x217)),console[_0x2ca7b9(0x206)]('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x361949),console[_0x2ca7b9(0x206)](''));});}),_0x3bfebe['on'](_0x43257b(0x20e),_0x42eeab=>{const _0x5deb0e=_0x43257b;if(_0x215bd7)return;_0x215bd7=!![],_0x5a53b9&&clearTimeout(_0x5a53b9),!_0x1dd4d9&&console['error'](_0x5deb0e(0x21f),_0x42eeab),_0x3bfebe[_0x5deb0e(0x220)](),_0x15e223(_0x42eeab);});});}function openInBrowser(_0x528069){return new Promise(_0x3f3a12=>{const _0x52e428=a10_0x5d31,_0x284896=process[_0x52e428(0x212)];let _0x491bdd;if(_0x284896===_0x52e428(0x1fa))_0x491bdd=_0x52e428(0x20f)+_0x528069+'\x22';else _0x284896===_0x52e428(0x203)?_0x491bdd=_0x52e428(0x21c)+_0x528069+'\x22':_0x491bdd=_0x52e428(0x213)+_0x528069+'\x22';exec(_0x491bdd,_0x565a10=>{_0x565a10?_0x3f3a12(![]):_0x3f3a12(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x5bd3ea(0x206)](a10_0x5bd3ea(0x20c),isAuth);}
@@ -1 +1 @@
1
- const a11_0x3e66a7=a11_0x2ee1;(function(_0x43a243,_0x214fa2){const _0x477bc8=a11_0x2ee1,_0x3b5264=_0x43a243();while(!![]){try{const _0x4cdcdb=parseInt(_0x477bc8(0xf8))/0x1*(parseInt(_0x477bc8(0xf9))/0x2)+parseInt(_0x477bc8(0xf5))/0x3+parseInt(_0x477bc8(0xf6))/0x4+-parseInt(_0x477bc8(0xfc))/0x5+parseInt(_0x477bc8(0xfa))/0x6*(-parseInt(_0x477bc8(0xfb))/0x7)+-parseInt(_0x477bc8(0xf4))/0x8+parseInt(_0x477bc8(0xfd))/0x9;if(_0x4cdcdb===_0x214fa2)break;else _0x3b5264['push'](_0x3b5264['shift']());}catch(_0x1e0799){_0x3b5264['push'](_0x3b5264['shift']());}}}(a11_0x2d22,0xa25ee));import{mkdirSync}from'node:fs';function a11_0x2d22(){const _0x1a5ffa=['2422464BPguSN','1864287nYMfXM','322292TgFkFB','cookie','2927orOWsl','52naNldq','150XgdJij','220367DjNiCR','61810lMETae','8902449mkqjNj'];a11_0x2d22=function(){return _0x1a5ffa;};return a11_0x2d22();}import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),'.lovrabet');function a11_0x2ee1(_0x5b57af,_0x5cc105){_0x5b57af=_0x5b57af-0xf4;const _0x2d22c5=a11_0x2d22();let _0x2ee148=_0x2d22c5[_0x5b57af];return _0x2ee148;}export const cookieFile=join(configDir,a11_0x3e66a7(0xf7));mkdirSync(configDir,{'recursive':!![]});
1
+ function a11_0x2abf(){const _0x3cf5ab=['28TEHpEN','466230mvIEkm','337361yhFpKE','54iDYelp','67242WqLktI','3eYaFXK','2945100LFeXVL','33ypzEau','cookie','636056ALONVB','562024vBxqpj','470222KDSNBH'];a11_0x2abf=function(){return _0x3cf5ab;};return a11_0x2abf();}const a11_0x4e7400=a11_0x16a9;(function(_0x243a66,_0x57257b){const _0xd379d6=a11_0x16a9,_0x2b621a=_0x243a66();while(!![]){try{const _0x286477=-parseInt(_0xd379d6(0x125))/0x1+parseInt(_0xd379d6(0x122))/0x2*(parseInt(_0xd379d6(0x128))/0x3)+-parseInt(_0xd379d6(0x121))/0x4+parseInt(_0xd379d6(0x124))/0x5+parseInt(_0xd379d6(0x127))/0x6*(parseInt(_0xd379d6(0x123))/0x7)+-parseInt(_0xd379d6(0x120))/0x8*(parseInt(_0xd379d6(0x126))/0x9)+-parseInt(_0xd379d6(0x129))/0xa*(-parseInt(_0xd379d6(0x12a))/0xb);if(_0x286477===_0x57257b)break;else _0x2b621a['push'](_0x2b621a['shift']());}catch(_0xf191d1){_0x2b621a['push'](_0x2b621a['shift']());}}}(a11_0x2abf,0x49aee));function a11_0x16a9(_0x40f5c0,_0x395489){_0x40f5c0=_0x40f5c0-0x11f;const _0x2abff8=a11_0x2abf();let _0x16a905=_0x2abff8[_0x40f5c0];return _0x16a905;}import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),'.lovrabet');export const cookieFile=join(configDir,a11_0x4e7400(0x11f));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x215ae2,_0x3df0fc){var _0x2bcf38=a12_0x2e43,_0x174747=_0x215ae2();while(!![]){try{var _0x15f601=-parseInt(_0x2bcf38(0x18f))/0x1*(-parseInt(_0x2bcf38(0x18c))/0x2)+parseInt(_0x2bcf38(0x195))/0x3+-parseInt(_0x2bcf38(0x18e))/0x4+parseInt(_0x2bcf38(0x190))/0x5*(parseInt(_0x2bcf38(0x191))/0x6)+-parseInt(_0x2bcf38(0x194))/0x7+-parseInt(_0x2bcf38(0x197))/0x8*(-parseInt(_0x2bcf38(0x193))/0x9)+parseInt(_0x2bcf38(0x192))/0xa*(-parseInt(_0x2bcf38(0x18d))/0xb);if(_0x15f601===_0x3df0fc)break;else _0x174747['push'](_0x174747['shift']());}catch(_0x5f1d81){_0x174747['push'](_0x174747['shift']());}}}(a12_0x7862,0x97f37));function a12_0x7862(){var _0x3f66af=['2LOUpau','153857JvrZGq','593648TSsQOi','229651RzDMqI','1805hqJeMS','2994dCdSpp','910sTZOoo','9rZVqWI','454209vRpVQI','3204024QvYfRt','utf-8','5045672rogHii'];a12_0x7862=function(){return _0x3f66af;};return a12_0x7862();}import{readFileSync}from'node:fs';function a12_0x2e43(_0x5cf267,_0x550a35){_0x5cf267=_0x5cf267-0x18c;var _0x786283=a12_0x7862();var _0x2e4384=_0x786283[_0x5cf267];return _0x2e4384;}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x29bb0b=a12_0x2e43;try{return readFileSync(cookieFile,_0x29bb0b(0x196));}catch{}return'';}
1
+ function a12_0x2532(){var _0x302dae=['70iyLgtj','240BZisRl','35586towjtT','963046CnsaBh','4332832UnjkCF','utf-8','11iBpkxF','13721240nnMthG','7691202ucQGfr','720600sqjgzb','8kCDWDq','16659HlaMGg'];a12_0x2532=function(){return _0x302dae;};return a12_0x2532();}function a12_0x3fd4(_0x394b42,_0x53a1f5){_0x394b42=_0x394b42-0x183;var _0x2532c3=a12_0x2532();var _0x3fd43e=_0x2532c3[_0x394b42];return _0x3fd43e;}(function(_0x4cf923,_0x51dbab){var _0x72b896=a12_0x3fd4,_0xf78b4d=_0x4cf923();while(!![]){try{var _0x21ac46=parseInt(_0x72b896(0x18a))/0x1+parseInt(_0x72b896(0x184))/0x2+-parseInt(_0x72b896(0x18c))/0x3*(-parseInt(_0x72b896(0x18e))/0x4)+parseInt(_0x72b896(0x18d))/0x5*(parseInt(_0x72b896(0x183))/0x6)+-parseInt(_0x72b896(0x185))/0x7+-parseInt(_0x72b896(0x18b))/0x8*(-parseInt(_0x72b896(0x189))/0x9)+-parseInt(_0x72b896(0x188))/0xa*(parseInt(_0x72b896(0x187))/0xb);if(_0x21ac46===_0x51dbab)break;else _0xf78b4d['push'](_0xf78b4d['shift']());}catch(_0x56f52d){_0xf78b4d['push'](_0xf78b4d['shift']());}}}(a12_0x2532,0x75a17));import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x35fab2=a12_0x3fd4;try{return readFileSync(cookieFile,_0x35fab2(0x186));}catch{}return'';}
@@ -1 +1 @@
1
- function a13_0x3f90(){const _0x2944ba=['2021532uWHOPa','1373934rLxwcH','1696LCZMIn','22ilYlfY','1052748bDeDWC','utf-8','5OTdYqt','41544DnheCy','4272420CAgWNa','161024QQQeYf','user','14KdMmWH','4FBTDMA','11001990rvdNll','/api/auth/get-session'];a13_0x3f90=function(){return _0x2944ba;};return a13_0x3f90();}(function(_0x3e7c23,_0x43e7c2){const _0x918f9e=a13_0x2db8,_0x3d908b=_0x3e7c23();while(!![]){try{const _0x336709=-parseInt(_0x918f9e(0x136))/0x1*(parseInt(_0x918f9e(0x139))/0x2)+parseInt(_0x918f9e(0x130))/0x3*(parseInt(_0x918f9e(0x13c))/0x4)+parseInt(_0x918f9e(0x138))/0x5+parseInt(_0x918f9e(0x131))/0x6*(-parseInt(_0x918f9e(0x13b))/0x7)+-parseInt(_0x918f9e(0x132))/0x8*(-parseInt(_0x918f9e(0x137))/0x9)+-parseInt(_0x918f9e(0x12e))/0xa+-parseInt(_0x918f9e(0x133))/0xb*(-parseInt(_0x918f9e(0x134))/0xc);if(_0x336709===_0x43e7c2)break;else _0x3d908b['push'](_0x3d908b['shift']());}catch(_0x477e92){_0x3d908b['push'](_0x3d908b['shift']());}}}(a13_0x3f90,0xb02e9));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a13_0x2db8(_0x1fdc21,_0x5778f7){_0x1fdc21=_0x1fdc21-0x12e;const _0x3f9015=a13_0x3f90();let _0x2db820=_0x3f9015[_0x1fdc21];return _0x2db820;}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x4839ce=a13_0x2db8;try{if(!existsSync(cookieFile))return null;const _0x20e292=readFileSync(cookieFile,_0x4839ce(0x135)),_0x7fad6c=await fetch(getUserDomain()+_0x4839ce(0x12f),{'headers':{'cookie':_0x20e292}});if(!_0x7fad6c['ok'])return null;const _0x4b1f22=await _0x7fad6c['json']();if(!_0x4b1f22['session']||!_0x4b1f22[_0x4839ce(0x13a)])return null;return _0x4b1f22;}catch{return null;}}
1
+ (function(_0x1457a4,_0x1882d8){const _0x783da1=a13_0x2d1e,_0x2273bd=_0x1457a4();while(!![]){try{const _0x53fe1=-parseInt(_0x783da1(0x19a))/0x1*(-parseInt(_0x783da1(0x19e))/0x2)+-parseInt(_0x783da1(0x197))/0x3*(parseInt(_0x783da1(0x19d))/0x4)+parseInt(_0x783da1(0x19f))/0x5*(parseInt(_0x783da1(0x198))/0x6)+-parseInt(_0x783da1(0x199))/0x7+parseInt(_0x783da1(0x193))/0x8+parseInt(_0x783da1(0x19c))/0x9*(-parseInt(_0x783da1(0x195))/0xa)+parseInt(_0x783da1(0x192))/0xb;if(_0x53fe1===_0x1882d8)break;else _0x2273bd['push'](_0x2273bd['shift']());}catch(_0x541029){_0x2273bd['push'](_0x2273bd['shift']());}}}(a13_0x292a,0x2c14d));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a13_0x2d1e(_0x23508e,_0x54610b){_0x23508e=_0x23508e-0x191;const _0x292a76=a13_0x292a();let _0x2d1eaf=_0x292a76[_0x23508e];return _0x2d1eaf;}import{cookieFile}from'../auth/constant.js';function a13_0x292a(){const _0x1ba696=['5yUeYee','utf-8','5685416CgXObq','1223840PLoIaw','/api/auth/get-session','2113230MCTjdL','json','28131UlGrKV','970026LmiwUV','1750028XsXvED','23tbbusq','session','9ArPKru','112YdZdQh','6342tLVZYs'];a13_0x292a=function(){return _0x1ba696;};return a13_0x292a();}export async function getSessionUserInfo(){const _0x5a2107=a13_0x2d1e;try{if(!existsSync(cookieFile))return null;const _0x4c6152=readFileSync(cookieFile,_0x5a2107(0x191)),_0x3a18b2=await fetch(getUserDomain()+_0x5a2107(0x194),{'headers':{'cookie':_0x4c6152}});if(!_0x3a18b2['ok'])return null;const _0x111838=await _0x3a18b2[_0x5a2107(0x196)]();if(!_0x111838[_0x5a2107(0x19b)]||!_0x111838['user'])return null;return _0x111838;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x58fdcb,_0x424b85){const _0x324c56=a14_0x128b,_0x4f0a09=_0x58fdcb();while(!![]){try{const _0x1339f3=parseInt(_0x324c56(0x135))/0x1*(parseInt(_0x324c56(0x12c))/0x2)+parseInt(_0x324c56(0x12d))/0x3*(-parseInt(_0x324c56(0x139))/0x4)+parseInt(_0x324c56(0x138))/0x5*(-parseInt(_0x324c56(0x12f))/0x6)+-parseInt(_0x324c56(0x132))/0x7*(-parseInt(_0x324c56(0x134))/0x8)+-parseInt(_0x324c56(0x136))/0x9*(-parseInt(_0x324c56(0x131))/0xa)+-parseInt(_0x324c56(0x133))/0xb*(parseInt(_0x324c56(0x137))/0xc)+parseInt(_0x324c56(0x12e))/0xd;if(_0x1339f3===_0x424b85)break;else _0x4f0a09['push'](_0x4f0a09['shift']());}catch(_0x32b6b1){_0x4f0a09['push'](_0x4f0a09['shift']());}}}(a14_0x3d08,0x6314a));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a14_0x3d08(){const _0x5f03bb=['8TNpHoE','utf-8','then','/api/auth/get-session','2upSwTp','739491qDNVpC','6158815zzkISU','12iYePbX','json','60bJXLpZ','7gJJIkH','519882QuMWET','4864864fBdkNs','458915dXSRVi','794313EkqEOL','180OtIdxP','1156405ZgYByw'];a14_0x3d08=function(){return _0x5f03bb;};return a14_0x3d08();}function a14_0x128b(_0x532e81,_0x3037dd){_0x532e81=_0x532e81-0x12b;const _0x3d0804=a14_0x3d08();let _0x128b4e=_0x3d0804[_0x532e81];return _0x128b4e;}export async function getIsSessionValid(){const _0x29b759=a14_0x128b;try{if(!existsSync(cookieFile))return![];const _0x37cb86=readFileSync(cookieFile,_0x29b759(0x13a)),_0x386fef=await fetch(getUserDomain()+_0x29b759(0x12b),{'headers':{'cookie':_0x37cb86}})[_0x29b759(0x13b)](_0x3f2c84=>_0x3f2c84[_0x29b759(0x130)]());return _0x386fef&&_0x386fef['session']&&_0x386fef['user'];}catch{}return![];}
1
+ (function(_0x2ad6e8,_0x583f2b){const _0x38ef7d=a14_0x4d43,_0xdecd76=_0x2ad6e8();while(!![]){try{const _0x121a5e=parseInt(_0x38ef7d(0x1ce))/0x1*(-parseInt(_0x38ef7d(0x1c7))/0x2)+-parseInt(_0x38ef7d(0x1d7))/0x3*(parseInt(_0x38ef7d(0x1cf))/0x4)+parseInt(_0x38ef7d(0x1d0))/0x5*(-parseInt(_0x38ef7d(0x1cc))/0x6)+-parseInt(_0x38ef7d(0x1d2))/0x7*(parseInt(_0x38ef7d(0x1d3))/0x8)+parseInt(_0x38ef7d(0x1d6))/0x9+parseInt(_0x38ef7d(0x1ca))/0xa*(-parseInt(_0x38ef7d(0x1d5))/0xb)+parseInt(_0x38ef7d(0x1c9))/0xc*(parseInt(_0x38ef7d(0x1cd))/0xd);if(_0x121a5e===_0x583f2b)break;else _0xdecd76['push'](_0xdecd76['shift']());}catch(_0x31c4a8){_0xdecd76['push'](_0xdecd76['shift']());}}}(a14_0x40c2,0x3404d));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a14_0x40c2(){const _0x4cebff=['872952xwuVID','session','11PfqzoB','1706229wMtJyN','18KnJrJp','328eGnOLL','then','6729336zBemAo','2523280piDAJl','utf-8','2103366jaStDC','26lUOIHY','2230qOplqR','13560FjAClw','5uHviuG','json','7QewiGg'];a14_0x40c2=function(){return _0x4cebff;};return a14_0x40c2();}function a14_0x4d43(_0x4fca04,_0x1ab5a3){_0x4fca04=_0x4fca04-0x1c7;const _0x40c251=a14_0x40c2();let _0x4d434e=_0x40c251[_0x4fca04];return _0x4d434e;}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x3b1618=a14_0x4d43;try{if(!existsSync(cookieFile))return![];const _0x38b571=readFileSync(cookieFile,_0x3b1618(0x1cb)),_0x1f364c=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x38b571}})[_0x3b1618(0x1c8)](_0x28e40e=>_0x28e40e[_0x3b1618(0x1d1)]());return _0x1f364c&&_0x1f364c[_0x3b1618(0x1d4)]&&_0x1f364c['user'];}catch{}return![];}
@@ -1 +1 @@
1
- function a15_0x237c(_0x3f687e,_0x594c71){_0x3f687e=_0x3f687e-0x1d2;const _0x17dcf8=a15_0x17dc();let _0x237c1b=_0x17dcf8[_0x3f687e];return _0x237c1b;}function a15_0x17dc(){const _0x58543c=['8aIQMcO','31092PslcGP','88hWabeR','32vVkdFY','192820QETNlo','253080yMgNdz','1910340BPHDJI','177180jMkDZf','104291ulcayX','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','21GIqaiZ','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','249224JzpJsp'];a15_0x17dc=function(){return _0x58543c;};return a15_0x17dc();}(function(_0x4cf492,_0x404390){const _0x447b9f=a15_0x237c,_0x2de4b7=_0x4cf492();while(!![]){try{const _0x1ebbc8=parseInt(_0x447b9f(0x1d4))/0x1+parseInt(_0x447b9f(0x1dc))/0x2*(parseInt(_0x447b9f(0x1da))/0x3)+parseInt(_0x447b9f(0x1d9))/0x4*(parseInt(_0x447b9f(0x1d3))/0x5)+parseInt(_0x447b9f(0x1de))/0x6+parseInt(_0x447b9f(0x1d6))/0x7*(parseInt(_0x447b9f(0x1d8))/0x8)+-parseInt(_0x447b9f(0x1d2))/0x9+-parseInt(_0x447b9f(0x1dd))/0xa*(parseInt(_0x447b9f(0x1db))/0xb);if(_0x1ebbc8===_0x404390)break;else _0x2de4b7['push'](_0x2de4b7['shift']());}catch(_0x2b02b4){_0x2de4b7['push'](_0x2de4b7['shift']());}}}(a15_0x17dc,0x1ae1e));export function buildLoginSuccessHtml(){const _0xb95d8f=a15_0x237c,_0xc6bd7a=_0xb95d8f(0x1d5);return'<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>'+_0xc6bd7a+_0xb95d8f(0x1d7);}
1
+ (function(_0x448a5d,_0x236c65){const _0xab968f=a15_0x5e43,_0x32380f=_0x448a5d();while(!![]){try{const _0xa2dd51=-parseInt(_0xab968f(0x18d))/0x1*(-parseInt(_0xab968f(0x189))/0x2)+parseInt(_0xab968f(0x18e))/0x3+parseInt(_0xab968f(0x191))/0x4+parseInt(_0xab968f(0x188))/0x5*(parseInt(_0xab968f(0x192))/0x6)+parseInt(_0xab968f(0x194))/0x7*(-parseInt(_0xab968f(0x18c))/0x8)+parseInt(_0xab968f(0x18a))/0x9*(-parseInt(_0xab968f(0x193))/0xa)+-parseInt(_0xab968f(0x18b))/0xb*(parseInt(_0xab968f(0x190))/0xc);if(_0xa2dd51===_0x236c65)break;else _0x32380f['push'](_0x32380f['shift']());}catch(_0xb433){_0x32380f['push'](_0x32380f['shift']());}}}(a15_0x15dd,0x32503));function a15_0x15dd(){const _0xe4e4ac=['748662BKKgAU','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','85044hIjTzl','768444UnpmMd','6DVIYaI','3859980mAuDKW','203SJOxLX','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','277580reLRcT','651298NysGFG','9XFkrlV','286zHaWWJ','12824bpnFmx','1ohLMBS'];a15_0x15dd=function(){return _0xe4e4ac;};return a15_0x15dd();}function a15_0x5e43(_0x42a8d6,_0x510dc5){_0x42a8d6=_0x42a8d6-0x188;const _0x15dd07=a15_0x15dd();let _0x5e435a=_0x15dd07[_0x42a8d6];return _0x5e435a;}export function buildLoginSuccessHtml(){const _0x2ae025=a15_0x5e43,_0x171d31='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x2ae025(0x18f)+_0x171d31+_0x2ae025(0x195);}