@lovrabet/rabetbase-cli 2.5.6 → 2.5.7

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 (395) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.d.ts +2 -0
  132. package/lib/commands/flow/page-list.js +1 -0
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.d.ts +6 -2
  140. package/lib/commands/flow/shared.js +1 -1
  141. package/lib/commands/flow/update.js +1 -1
  142. package/lib/commands/flow/validate.js +1 -1
  143. package/lib/commands/instant-api-policy/current.js +1 -1
  144. package/lib/commands/instant-api-policy/index.js +1 -1
  145. package/lib/commands/instant-api-policy/init.js +1 -1
  146. package/lib/commands/instant-api-policy/publish.js +1 -1
  147. package/lib/commands/instant-api-policy/pull.js +1 -1
  148. package/lib/commands/instant-api-policy/revision.js +1 -1
  149. package/lib/commands/instant-api-policy/revisions.js +1 -1
  150. package/lib/commands/instant-api-policy/rollback.js +1 -1
  151. package/lib/commands/instant-api-policy/shared.js +1 -1
  152. package/lib/commands/instant-api-policy/validate.js +1 -1
  153. package/lib/commands/issue/index.js +1 -1
  154. package/lib/commands/issue/nudge.js +1 -1
  155. package/lib/commands/issue/report.js +1 -1
  156. package/lib/commands/issue/shared.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  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 +26 -6
  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.d.ts +12 -0
  303. package/lib/core/flow-config.js +1 -1
  304. package/lib/core/instant-api-policy/config.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +8 -4
  378. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  379. package/skills/rabetbase/guides/backend-function.md +26 -4
  380. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  381. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  382. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  383. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  384. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  385. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  386. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  387. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  388. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  389. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  390. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  391. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  392. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  393. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  394. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  395. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- const a0_0x514169=a0_0x4fce;function a0_0x33bb(){const _0x1185ca=['3yolIZI','utf8','1455888iloJTR','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','.md\x20(','1170fZgmCf','1ECufLl','✓\x20Generated:\x20','error','Failed\x20to\x20generate\x20docs:\x20','.md','./docs','1236410rieFMn','Waiting\x203\x20seconds...\x0a','name','117240TiWvJU','214786DvMdRu','9gnFTjE','join','tableName','log','311990UnuFmN','datasetCode','Generated\x20docs\x20successfully:\x20','242HoyMyF','4925GuoqbQ','207652dkdgaO','message'];a0_0x33bb=function(){return _0x1185ca;};return a0_0x33bb();}(function(_0x32147c,_0x4cc23a){const _0x46382b=a0_0x4fce,_0x118bd1=_0x32147c();while(!![]){try{const _0x44c830=parseInt(_0x46382b(0x181))/0x1*(parseInt(_0x46382b(0x18b))/0x2)+-parseInt(_0x46382b(0x17b))/0x3*(-parseInt(_0x46382b(0x179))/0x4)+parseInt(_0x46382b(0x178))/0x5*(parseInt(_0x46382b(0x180))/0x6)+parseInt(_0x46382b(0x174))/0x7+-parseInt(_0x46382b(0x17d))/0x8+-parseInt(_0x46382b(0x18c))/0x9*(-parseInt(_0x46382b(0x187))/0xa)+parseInt(_0x46382b(0x177))/0xb*(-parseInt(_0x46382b(0x18a))/0xc);if(_0x44c830===_0x4cc23a)break;else _0x118bd1['push'](_0x118bd1['shift']());}catch(_0x502d47){_0x118bd1['push'](_0x118bd1['shift']());}}}(a0_0x33bb,0x1df2a));import{mkdirSync,writeFileSync}from'node:fs';function a0_0x4fce(_0x2e150e,_0xb72bdc){_0x2e150e=_0x2e150e-0x173;const _0x33bb9c=a0_0x33bb();let _0x4fcecf=_0x33bb9c[_0x2e150e];return _0x4fcecf;}import a0_0x564b34 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x55d2d3){return new Promise(_0x2f6fa8=>setTimeout(_0x2f6fa8,_0x55d2d3));}export async function generateDatasetDocs(_0x5c7a95,_0x14d65f,_0x2880df,_0x354350=a0_0x514169(0x186),_0xb16ab,_0x5688dc){const _0xb53331=a0_0x514169;mkdirSync(_0x354350,{'recursive':!![]});const _0x1b57d8=[],_0x1bd10c=_0x5c7a95['length'];console[_0xb53331(0x173)]('\x0a'+_0x1bd10c+_0xb53331(0x17e));for(let _0x51214f=0x0;_0x51214f<_0x5c7a95['length'];_0x51214f++){const _0x5648fc=_0x5c7a95[_0x51214f],_0x2ff9fa=_0x51214f+0x1,_0x5eab46=_0x5648fc[_0xb53331(0x18e)];try{console[_0xb53331(0x173)]('['+_0x2ff9fa+'/'+_0x1bd10c+']\x20Generating:\x20'+_0x5eab46+_0xb53331(0x17f)+_0x5648fc[_0xb53331(0x189)]+')');if(_0xb16ab)_0xb16ab(_0x2ff9fa,_0x1bd10c,_0x5eab46);const _0xf3d0ed=await fetchDatasetDoc({'appCode':_0x14d65f,'cookie':_0x2880df,'datasetCode':_0x5648fc[_0xb53331(0x175)],'datasetId':_0x5648fc['id'],'enableAI':![],'extraParams':_0x5688dc}),_0x352590=a0_0x564b34[_0xb53331(0x18d)](_0x354350,_0x5eab46+_0xb53331(0x185));writeFileSync(_0x352590,_0xf3d0ed,{'encoding':_0xb53331(0x17c)}),console[_0xb53331(0x173)](_0xb53331(0x182)+_0x5eab46+_0xb53331(0x185)),logger['success']('api-doc',_0xb53331(0x176)+_0x5eab46,undefined,{'datasetCode':_0x5648fc[_0xb53331(0x175)],'datasetName':_0x5648fc[_0xb53331(0x189)],'filePath':_0x352590,'progress':_0x2ff9fa+'/'+_0x1bd10c}),_0x1b57d8['push']({'datasetCode':_0x5648fc[_0xb53331(0x175)],'datasetName':_0x5648fc[_0xb53331(0x189)],'filePath':_0x352590,'success':!![]});if(_0x2ff9fa<_0x1bd10c)await delay(0x1388);}catch(_0x26d9d6){const _0x3e1006=_0x26d9d6 instanceof Error?_0x26d9d6[_0xb53331(0x17a)]:String(_0x26d9d6);console[_0xb53331(0x173)]('✗\x20Failed:\x20'+_0x5eab46+'.md\x20-\x20'+_0x3e1006),logger[_0xb53331(0x183)]('api-doc',_0xb53331(0x184)+_0x5648fc[_0xb53331(0x175)],{'datasetCode':_0x5648fc[_0xb53331(0x175)],'datasetName':_0x5648fc[_0xb53331(0x189)],'error':_0x3e1006,'progress':_0x2ff9fa+'/'+_0x1bd10c}),_0x1b57d8['push']({'datasetCode':_0x5648fc[_0xb53331(0x175)],'datasetName':_0x5648fc['name'],'filePath':'','success':![],'error':_0x3e1006}),_0x2ff9fa<_0x1bd10c&&(console[_0xb53331(0x173)](_0xb53331(0x188)),await delay(0xbb8));}}return _0x1b57d8;}
1
+ const a0_0x538a46=a0_0x5060;(function(_0x414115,_0x3a738f){const _0x53f660=a0_0x5060,_0x353613=_0x414115();while(!![]){try{const _0x5b821a=parseInt(_0x53f660(0x18d))/0x1*(parseInt(_0x53f660(0x187))/0x2)+-parseInt(_0x53f660(0x199))/0x3*(-parseInt(_0x53f660(0x19a))/0x4)+-parseInt(_0x53f660(0x184))/0x5*(parseInt(_0x53f660(0x198))/0x6)+parseInt(_0x53f660(0x190))/0x7*(-parseInt(_0x53f660(0x188))/0x8)+parseInt(_0x53f660(0x18e))/0x9+-parseInt(_0x53f660(0x19d))/0xa*(-parseInt(_0x53f660(0x181))/0xb)+-parseInt(_0x53f660(0x192))/0xc;if(_0x5b821a===_0x3a738f)break;else _0x353613['push'](_0x353613['shift']());}catch(_0x3d77d6){_0x353613['push'](_0x353613['shift']());}}}(a0_0x5cd8,0xceeaa));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x30362a from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';function a0_0x5cd8(){const _0xe1ef83=['.md\x20(','2095802ZzCZzD','5384aglcYv','✓\x20Generated:\x20','Waiting\x203\x20seconds...\x0a','api-doc','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','1zNZOSw','9267768wkYrOF','push','91BmekkX','error','39422208wyimro','join','Failed\x20to\x20generate\x20docs:\x20','tableName',']\x20Generating:\x20','✗\x20Failed:\x20','6PIRrVX','447dZONUm','36776vSYfYQ','message','.md','8422210pvAbMe','name','length','success','11XDHaVU','log','datasetCode','741585TJfdZE','./docs'];a0_0x5cd8=function(){return _0xe1ef83;};return a0_0x5cd8();}import{logger}from'../utils/logger.js';function a0_0x5060(_0x104520,_0x16c64e){_0x104520=_0x104520-0x17e;const _0x5cd84a=a0_0x5cd8();let _0x50603e=_0x5cd84a[_0x104520];return _0x50603e;}export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x276663){return new Promise(_0x4d522d=>setTimeout(_0x4d522d,_0x276663));}export async function generateDatasetDocs(_0x237fca,_0x1fe5b7,_0xf720e4,_0x51f884=a0_0x538a46(0x185),_0x3c72c9,_0xbb8aff){const _0x4df55d=a0_0x538a46;mkdirSync(_0x51f884,{'recursive':!![]});const _0xf77e9c=[],_0x49d9f7=_0x237fca[_0x4df55d(0x17f)];console['log']('\x0a'+_0x49d9f7+_0x4df55d(0x18c));for(let _0x42a1ec=0x0;_0x42a1ec<_0x237fca[_0x4df55d(0x17f)];_0x42a1ec++){const _0x50a33c=_0x237fca[_0x42a1ec],_0x5ed21a=_0x42a1ec+0x1,_0x2a0d6f=_0x50a33c[_0x4df55d(0x195)];try{console[_0x4df55d(0x182)]('['+_0x5ed21a+'/'+_0x49d9f7+_0x4df55d(0x196)+_0x2a0d6f+_0x4df55d(0x186)+_0x50a33c[_0x4df55d(0x17e)]+')');if(_0x3c72c9)_0x3c72c9(_0x5ed21a,_0x49d9f7,_0x2a0d6f);const _0x1cc032=await fetchDatasetDoc({'appCode':_0x1fe5b7,'cookie':_0xf720e4,'datasetCode':_0x50a33c[_0x4df55d(0x183)],'datasetId':_0x50a33c['id'],'enableAI':![],'extraParams':_0xbb8aff}),_0x5978f4=a0_0x30362a[_0x4df55d(0x193)](_0x51f884,_0x2a0d6f+_0x4df55d(0x19c));writeFileSync(_0x5978f4,_0x1cc032,{'encoding':'utf8'}),console[_0x4df55d(0x182)](_0x4df55d(0x189)+_0x2a0d6f+'.md'),logger[_0x4df55d(0x180)](_0x4df55d(0x18b),'Generated\x20docs\x20successfully:\x20'+_0x2a0d6f,undefined,{'datasetCode':_0x50a33c[_0x4df55d(0x183)],'datasetName':_0x50a33c[_0x4df55d(0x17e)],'filePath':_0x5978f4,'progress':_0x5ed21a+'/'+_0x49d9f7}),_0xf77e9c[_0x4df55d(0x18f)]({'datasetCode':_0x50a33c[_0x4df55d(0x183)],'datasetName':_0x50a33c[_0x4df55d(0x17e)],'filePath':_0x5978f4,'success':!![]});if(_0x5ed21a<_0x49d9f7)await delay(0x1388);}catch(_0x2cd907){const _0x5b8b47=_0x2cd907 instanceof Error?_0x2cd907[_0x4df55d(0x19b)]:String(_0x2cd907);console[_0x4df55d(0x182)](_0x4df55d(0x197)+_0x2a0d6f+'.md\x20-\x20'+_0x5b8b47),logger[_0x4df55d(0x191)](_0x4df55d(0x18b),_0x4df55d(0x194)+_0x50a33c['datasetCode'],{'datasetCode':_0x50a33c[_0x4df55d(0x183)],'datasetName':_0x50a33c[_0x4df55d(0x17e)],'error':_0x5b8b47,'progress':_0x5ed21a+'/'+_0x49d9f7}),_0xf77e9c[_0x4df55d(0x18f)]({'datasetCode':_0x50a33c['datasetCode'],'datasetName':_0x50a33c[_0x4df55d(0x17e)],'filePath':'','success':![],'error':_0x5b8b47}),_0x5ed21a<_0x49d9f7&&(console[_0x4df55d(0x182)](_0x4df55d(0x18a)),await delay(0xbb8));}}return _0xf77e9c;}
@@ -1 +1 @@
1
- const a1_0x2f05fc=a1_0x305e;(function(_0x5eda31,_0xb6c64){const _0x7b4abb=a1_0x305e,_0x4acc3c=_0x5eda31();while(!![]){try{const _0x41cdb8=-parseInt(_0x7b4abb(0x137))/0x1*(parseInt(_0x7b4abb(0x13b))/0x2)+parseInt(_0x7b4abb(0x13a))/0x3+parseInt(_0x7b4abb(0x13f))/0x4*(-parseInt(_0x7b4abb(0x132))/0x5)+-parseInt(_0x7b4abb(0x12e))/0x6+parseInt(_0x7b4abb(0x13e))/0x7+parseInt(_0x7b4abb(0x12c))/0x8+-parseInt(_0x7b4abb(0x141))/0x9*(-parseInt(_0x7b4abb(0x134))/0xa);if(_0x41cdb8===_0xb6c64)break;else _0x4acc3c['push'](_0x4acc3c['shift']());}catch(_0x1af597){_0x4acc3c['push'](_0x4acc3c['shift']());}}}(a1_0x1394,0xca368));import a1_0x2ae3b6 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x5c91c6,_0x51f8bc=process[a1_0x2f05fc(0x128)]()){const _0x570eb0=a1_0x2f05fc;return a1_0x2ae3b6[_0x570eb0(0x129)](_0x51f8bc,_0x5c91c6);}function a1_0x305e(_0x197b85,_0x149019){_0x197b85=_0x197b85-0x127;const _0x13946c=a1_0x1394();let _0x305e28=_0x13946c[_0x197b85];return _0x305e28;}function a1_0x1394(){const _0xdfbf8=['filter','get','push','205Cvvcrj','API\x20directory\x20\x22','81030QAPAyp','size','apiGroup','650639osVcDu','normalizedApiDir','validation','3170283iWQdSx','2VfoYPG','some','set','3717329tFkmoJ','19736GHDlRR','name','531BAzLMR','flatMap','map','cwd','resolve','length','add','9703496qmUvKu','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','9585750pGgTsY'];a1_0x1394=function(){return _0xdfbf8;};return a1_0x1394();}function normalizedApiGroup(_0x493922){const _0x407cf5=_0x493922?.['trim']();return _0x407cf5||undefined;}export function resolveApiProfileLayouts(_0xbf02b8,_0x46e471,_0x52d5c9=process[a1_0x2f05fc(0x128)]()){const _0xe44fc6=a1_0x2f05fc,_0x3a188a=_0xbf02b8[_0xe44fc6(0x127)](_0x10b3f1=>{const _0x34b3f1=_0x46e471(_0x10b3f1);return{'app':_0x10b3f1,'outputDir':_0x34b3f1,'normalizedApiDir':normalizeApiDir(_0x34b3f1,_0x52d5c9),'apiGroup':normalizedApiGroup(_0x10b3f1['apiGroup'])};}),_0x21bcbf=new Map();for(const _0x168063 of _0x3a188a){if(!_0x168063[_0xe44fc6(0x136)])continue;const _0x48894c=_0x21bcbf[_0xe44fc6(0x130)](_0x168063[_0xe44fc6(0x136)])??new Set();_0x48894c[_0xe44fc6(0x12b)](_0x168063['normalizedApiDir']),_0x21bcbf[_0xe44fc6(0x13d)](_0x168063[_0xe44fc6(0x136)],_0x48894c);}for(const [_0x19740d,_0xeda124]of _0x21bcbf){if(_0xeda124[_0xe44fc6(0x135)]>0x1)throw CliErrors['validation']('API\x20group\x20\x22'+_0x19740d+'\x22\x20resolves\x20to\x20multiple\x20API\x20directories.',_0xe44fc6(0x12d));}const _0x3acb74=new Map();for(const _0x37138e of _0x3a188a){const _0x4275e5=_0x3acb74['get'](_0x37138e[_0xe44fc6(0x138)])??[];_0x4275e5[_0xe44fc6(0x131)](_0x37138e),_0x3acb74[_0xe44fc6(0x13d)](_0x37138e[_0xe44fc6(0x138)],_0x4275e5);}for(const _0xa055c of _0x3acb74['values']()){const _0x400af3=new Set(_0xa055c[_0xe44fc6(0x142)](_0x42f755=>_0x42f755[_0xe44fc6(0x136)]?[_0x42f755[_0xe44fc6(0x136)]]:[]));if(_0x400af3[_0xe44fc6(0x135)]===0x0)continue;if(_0x400af3[_0xe44fc6(0x135)]>0x1||_0xa055c[_0xe44fc6(0x13c)](_0xb9b44=>!_0xb9b44[_0xe44fc6(0x136)])){const _0xfbd47c=_0xa055c[_0xe44fc6(0x127)](_0x50691a=>_0x50691a['app'][_0xe44fc6(0x140)])['join'](',\x20');throw CliErrors[_0xe44fc6(0x139)](_0xe44fc6(0x133)+_0xa055c[0x0]['outputDir']+'\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20'+_0xfbd47c+'.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.');}}return _0x3a188a;}export function getRegistryGroup(_0x141d06,_0x1859a6){const _0x25a308=a1_0x2f05fc;if(_0x1859a6['apiGroup'])return _0x141d06[_0x25a308(0x12f)](_0x478542=>_0x478542[_0x25a308(0x136)]===_0x1859a6[_0x25a308(0x136)]);const _0x551e0b=_0x141d06[_0x25a308(0x12f)](_0x119782=>_0x119782[_0x25a308(0x138)]===_0x1859a6[_0x25a308(0x138)]);return _0x551e0b[_0x25a308(0x12a)]===0x1?_0x551e0b:undefined;}
1
+ const a1_0x495a8f=a1_0xa98a;function a1_0xa98a(_0x232e81,_0x3add5e){_0x232e81=_0x232e81-0x1ac;const _0x58f90b=a1_0x58f9();let _0xa98aaa=_0x58f90b[_0x232e81];return _0xa98aaa;}(function(_0x2f51d4,_0x362928){const _0x366c0d=a1_0xa98a,_0x45f920=_0x2f51d4();while(!![]){try{const _0x3b1a6b=parseInt(_0x366c0d(0x1b5))/0x1+-parseInt(_0x366c0d(0x1af))/0x2+parseInt(_0x366c0d(0x1b4))/0x3*(-parseInt(_0x366c0d(0x1c1))/0x4)+-parseInt(_0x366c0d(0x1c6))/0x5+parseInt(_0x366c0d(0x1bf))/0x6*(parseInt(_0x366c0d(0x1ae))/0x7)+-parseInt(_0x366c0d(0x1b0))/0x8+parseInt(_0x366c0d(0x1c2))/0x9;if(_0x3b1a6b===_0x362928)break;else _0x45f920['push'](_0x45f920['shift']());}catch(_0x18f005){_0x45f920['push'](_0x45f920['shift']());}}}(a1_0x58f9,0x3177a));import a1_0x503d4d from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x2e8966,_0x40c5a2=process[a1_0x495a8f(0x1b3)]()){return a1_0x503d4d['resolve'](_0x40c5a2,_0x2e8966);}function normalizedApiGroup(_0x3abe2c){const _0x49078a=a1_0x495a8f,_0xdb46f6=_0x3abe2c?.[_0x49078a(0x1be)]();return _0xdb46f6||undefined;}export function resolveApiProfileLayouts(_0x4bafee,_0x71fbea,_0x3b0caf=process['cwd']()){const _0x2e6f72=a1_0x495a8f,_0x2282d9=_0x4bafee[_0x2e6f72(0x1b2)](_0x131cf1=>{const _0x2c5b60=_0x2e6f72,_0xa794c6=_0x71fbea(_0x131cf1);return{'app':_0x131cf1,'outputDir':_0xa794c6,'normalizedApiDir':normalizeApiDir(_0xa794c6,_0x3b0caf),'apiGroup':normalizedApiGroup(_0x131cf1[_0x2c5b60(0x1c0)])};}),_0x57c33f=new Map();for(const _0x59373f of _0x2282d9){if(!_0x59373f[_0x2e6f72(0x1c0)])continue;const _0x1029d9=_0x57c33f[_0x2e6f72(0x1bd)](_0x59373f[_0x2e6f72(0x1c0)])??new Set();_0x1029d9['add'](_0x59373f[_0x2e6f72(0x1bc)]),_0x57c33f[_0x2e6f72(0x1bb)](_0x59373f['apiGroup'],_0x1029d9);}for(const [_0x376444,_0x132256]of _0x57c33f){if(_0x132256[_0x2e6f72(0x1b1)]>0x1)throw CliErrors[_0x2e6f72(0x1ca)](_0x2e6f72(0x1c8)+_0x376444+_0x2e6f72(0x1c9),_0x2e6f72(0x1c5));}const _0xe217b0=new Map();for(const _0x3ebf12 of _0x2282d9){const _0x12a1e1=_0xe217b0[_0x2e6f72(0x1bd)](_0x3ebf12['normalizedApiDir'])??[];_0x12a1e1[_0x2e6f72(0x1ba)](_0x3ebf12),_0xe217b0['set'](_0x3ebf12[_0x2e6f72(0x1bc)],_0x12a1e1);}for(const _0x2bf357 of _0xe217b0[_0x2e6f72(0x1c4)]()){const _0x532164=new Set(_0x2bf357['flatMap'](_0x409de3=>_0x409de3[_0x2e6f72(0x1c0)]?[_0x409de3['apiGroup']]:[]));if(_0x532164[_0x2e6f72(0x1b1)]===0x0)continue;if(_0x532164[_0x2e6f72(0x1b1)]>0x1||_0x2bf357[_0x2e6f72(0x1b8)](_0x54854c=>!_0x54854c['apiGroup'])){const _0x4623cf=_0x2bf357[_0x2e6f72(0x1b2)](_0x3da401=>_0x3da401[_0x2e6f72(0x1b7)]['name'])[_0x2e6f72(0x1c3)](',\x20');throw CliErrors[_0x2e6f72(0x1ca)]('API\x20directory\x20\x22'+_0x2bf357[0x0][_0x2e6f72(0x1c7)]+_0x2e6f72(0x1b9),_0x2e6f72(0x1ac)+_0x4623cf+_0x2e6f72(0x1ad));}}return _0x2282d9;}function a1_0x58f9(){const _0x177daf=['outputDir','API\x20group\x20\x22','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','validation','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','21ERZBkm','403864DABahJ','876168xwFWlI','size','map','cwd','48pSUctK','85010IkmgIy','length','app','some','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','push','set','normalizedApiDir','get','trim','584166PIxXnW','apiGroup','27768LJuJTc','4442229rPlSpi','join','values','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','1227655HExycw'];a1_0x58f9=function(){return _0x177daf;};return a1_0x58f9();}export function getRegistryGroup(_0x7c3a5a,_0x748076){const _0x272e5c=a1_0x495a8f;if(_0x748076[_0x272e5c(0x1c0)])return _0x7c3a5a['filter'](_0x51baf4=>_0x51baf4[_0x272e5c(0x1c0)]===_0x748076['apiGroup']);const _0x901b0b=_0x7c3a5a['filter'](_0x425148=>_0x425148[_0x272e5c(0x1bc)]===_0x748076[_0x272e5c(0x1bc)]);return _0x901b0b[_0x272e5c(0x1b6)]===0x1?_0x901b0b:undefined;}
@@ -1 +1 @@
1
- function a2_0x5c34(_0xad8c07,_0x14f9e1){_0xad8c07=_0xad8c07-0x1c7;var _0x1bf273=a2_0x1bf2();var _0x5c34d4=_0x1bf273[_0xad8c07];return _0x5c34d4;}(function(_0x4489b8,_0x52f1ed){var _0x147bb7=a2_0x5c34,_0x2726b3=_0x4489b8();while(!![]){try{var _0x4ebf46=parseInt(_0x147bb7(0x1cd))/0x1*(-parseInt(_0x147bb7(0x1cc))/0x2)+-parseInt(_0x147bb7(0x1c7))/0x3+-parseInt(_0x147bb7(0x1d0))/0x4*(parseInt(_0x147bb7(0x1ca))/0x5)+-parseInt(_0x147bb7(0x1cf))/0x6*(parseInt(_0x147bb7(0x1cb))/0x7)+-parseInt(_0x147bb7(0x1ce))/0x8+parseInt(_0x147bb7(0x1c9))/0x9+parseInt(_0x147bb7(0x1c8))/0xa;if(_0x4ebf46===_0x52f1ed)break;else _0x2726b3['push'](_0x2726b3['shift']());}catch(_0x4849be){_0x2726b3['push'](_0x2726b3['shift']());}}}(a2_0x1bf2,0xe6641));export{fetchModelList}from'../core/api-client.js';function a2_0x1bf2(){var _0x414598=['2034555PFgKwV','63504950XmtDIu','3433986eiMQKg','2635280jmRKFE','112FNOZUl','2yLaKtw','1650703SuAcyW','11002560JTiaIX','583914oGDzFQ','4tYExXV'];a2_0x1bf2=function(){return _0x414598;};return a2_0x1bf2();}
1
+ (function(_0x16e6ca,_0x259efd){var _0xe07c3d=a2_0x2be9,_0x229a79=_0x16e6ca();while(!![]){try{var _0x5eb7a2=-parseInt(_0xe07c3d(0x1df))/0x1*(parseInt(_0xe07c3d(0x1e2))/0x2)+parseInt(_0xe07c3d(0x1dc))/0x3+-parseInt(_0xe07c3d(0x1de))/0x4*(parseInt(_0xe07c3d(0x1e4))/0x5)+parseInt(_0xe07c3d(0x1e0))/0x6*(parseInt(_0xe07c3d(0x1db))/0x7)+parseInt(_0xe07c3d(0x1dd))/0x8+-parseInt(_0xe07c3d(0x1e3))/0x9+-parseInt(_0xe07c3d(0x1e1))/0xa;if(_0x5eb7a2===_0x259efd)break;else _0x229a79['push'](_0x229a79['shift']());}catch(_0x4f9142){_0x229a79['push'](_0x229a79['shift']());}}}(a2_0x6e55,0x87c2d));export{fetchModelList}from'../core/api-client.js';function a2_0x2be9(_0x10c4d3,_0x3e1a43){_0x10c4d3=_0x10c4d3-0x1db;var _0x6e5577=a2_0x6e55();var _0x2be900=_0x6e5577[_0x10c4d3];return _0x2be900;}function a2_0x6e55(){var _0x443591=['695UCCNhE','6577602wmQHSu','16029430qVtPXg','818TnTZaN','2337804kgRzAt','25LuiHxE','7hiOksv','2909661AGCnYK','5954736pigUkT','85972LMSSwZ'];a2_0x6e55=function(){return _0x443591;};return a2_0x6e55();}
@@ -1 +1 @@
1
- (function(_0x1c5550,_0x302965){const _0x1c2c84=a3_0xf673,_0x190d6d=_0x1c5550();while(!![]){try{const _0x4e118a=-parseInt(_0x1c2c84(0x97))/0x1*(parseInt(_0x1c2c84(0x85))/0x2)+parseInt(_0x1c2c84(0xa0))/0x3*(parseInt(_0x1c2c84(0xa1))/0x4)+-parseInt(_0x1c2c84(0x9e))/0x5*(-parseInt(_0x1c2c84(0x83))/0x6)+parseInt(_0x1c2c84(0xb3))/0x7+parseInt(_0x1c2c84(0xab))/0x8+-parseInt(_0x1c2c84(0xb6))/0x9*(parseInt(_0x1c2c84(0xb7))/0xa)+-parseInt(_0x1c2c84(0xb4))/0xb;if(_0x4e118a===_0x302965)break;else _0x190d6d['push'](_0x190d6d['shift']());}catch(_0x637e8d){_0x190d6d['push'](_0x190d6d['shift']());}}}(a3_0x4d4f,0xbfb45));function a3_0xf673(_0x2bdb0d,_0x158536){_0x2bdb0d=_0x2bdb0d-0x7b;const _0x4d4fb6=a3_0x4d4f();let _0xf67351=_0x4d4fb6[_0x2bdb0d];return _0xf67351;}import a3_0x3568a7 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x483805 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a3_0x4d4f(){const _0x5758d4=['refreshed','modelRuntime','18186bWRKxG',',\x20env:\x20','2sLYPfM','API\x20scaffold\x20written.','-client','replaceApiContent','name','APP_','missing','preserved','none','overwritten','CONFIG_NAMES.DEFAULT','typescript','basename','api','action','join','LOVRABET_RUNTIME_DOMAIN','length','815681eMhKYD','init-api','includes','overwriteTypescript','templates/generate-api','key','replace','845ilcOHV','existed','138YHmVSw','119036chkfSZ','scaffoldMode','stringify','-api','client','created','test','../..','tableName','Please\x20configure\x20app\x20code\x20first\x20via\x20`','7469352IrKzyB','modelProfile','api.ts.tpl','client.ts.tpl','runtimeDomain','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','toUpperCase','path','3010588FNEcTt','3507669epYfpP','success','45NeFtiQ','2650250ERiVPs','default','map','.ts','utf8','alias','LOVRABET'];a3_0x4d4f=function(){return _0x5758d4;};return a3_0x4d4f();}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(_0x500ee6,_0x1579ad){const _0x142ae9=a3_0xf673;if(!_0x1579ad)return _0x500ee6?_0x142ae9(0x8c):_0x142ae9(0x8b);return _0x500ee6?_0x142ae9(0x8e):_0x142ae9(0xa6);}export async function generateApiFile(_0x32e338,_0x53bca9,_0x4bde8d,_0x51ac0e,_0x3fd37e,_0xe515b4,_0x1045a4,_0x23af61={},_0x3931e7={}){const _0x21dd2c=a3_0xf673;if(!_0x4bde8d)throw new Error(_0x21dd2c(0xaa)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x19f607=_0x51ac0e&&!_0x1045a4,_0x43e020=!!_0x3931e7[_0x21dd2c(0xac)],_0x10313c=_0x43e020||_0x19f607,_0x5e533c=_0x1045a4||_0x4bde8d,_0x15453c=_0x43e020||_0x19f607?_0x21dd2c(0x7b):_0x5e533c,_0x2538f2=_0x43e020||_0x19f607?_0x21dd2c(0x8f):JSON[_0x21dd2c(0xa3)](_0x5e533c),_0x5c031a=!isProduction(_0x3fd37e),_0x56a6da=_0x5c031a?_0x21dd2c(0x84)+JSON[_0x21dd2c(0xa3)](_0x3fd37e):'',_0x2e8d5b='{\x20apiConfigName:\x20'+_0x2538f2+_0x56a6da+',\x20...LOVRABET_SDK_CONFIG\x20}',_0x5a31bb=_0x43e020?'':_0x53bca9,_0x4eb48d=_0x5a31bb?_0x5a31bb+_0x21dd2c(0xa4):'api',_0x4bdc55=_0x5a31bb?_0x5a31bb+_0x21dd2c(0x87):_0x21dd2c(0xa5),_0x59ca28=_0x5a31bb&&!/^app-[a-f0-9]+$/i[_0x21dd2c(0xa7)](_0x5a31bb)?_0x5a31bb[_0x21dd2c(0x9d)](/-/g,'_')[_0x21dd2c(0xb1)]():_0x21dd2c(0x80),_0x1798ff=/^\d/[_0x21dd2c(0xa7)](_0x59ca28)?_0x21dd2c(0x8a)+_0x59ca28:_0x59ca28,_0x4b280a=_0x32e338[_0x21dd2c(0x7c)](_0x5a3e9f=>({'datasetCode':_0x5a3e9f['datasetCode'],'tableName':_0x5a3e9f[_0x21dd2c(0xa9)],'name':_0x5a3e9f[_0x21dd2c(0x89)]||'','alias':_0x5a3e9f[_0x21dd2c(0x7f)]||_0x5a3e9f[_0x21dd2c(0x9c)]})),_0x31f954=fileURLToPath(import.meta.url),_0x3d037a=a3_0x483805['resolve'](a3_0x483805['dirname'](_0x31f954),_0x21dd2c(0xa8)),_0x3e8385=a3_0x483805[_0x21dd2c(0x94)](_0x3d037a,_0x21dd2c(0x9b)),_0x536b3f=a3_0x483805['join'](_0x3e8385,_0x21dd2c(0xad)),_0x38116d=a3_0x483805[_0x21dd2c(0x94)](_0x3e8385,_0x21dd2c(0xae)),_0x38413d=_0xe515b4;mkdirSync(_0x38413d,{'recursive':!![]});const _0x5bb52b=_0x43e020?{}:_0x23af61,_0x41dccc=await generateSdkConfigFile(_0x38413d,_0x5bb52b,_0x5a31bb),_0x15e5e1=a3_0x483805[_0x21dd2c(0x91)](_0x41dccc,_0x21dd2c(0x7d)),_0x2a63d2=a3_0x483805['join'](_0x38413d,_0x4eb48d+_0x21dd2c(0x7d)),_0x14a172=a3_0x483805[_0x21dd2c(0x94)](_0x38413d,_0x4bdc55+'.ts'),_0x53714a=_0x3931e7[_0x21dd2c(0x9a)]===!![],_0x211088=existsSync(_0x2a63d2),_0x3c9caa=existsSync(_0x14a172),_0x44b7a2=_0x3931e7[_0x21dd2c(0xa2)]??(_0x53714a?_0x21dd2c(0x9d):'missing'),_0x135668=_0x44b7a2===_0x21dd2c(0x9d)||_0x44b7a2===_0x21dd2c(0x8b)&&!_0x211088,_0x1c3a23=_0x44b7a2==='replace'||_0x44b7a2===_0x21dd2c(0x8b)&&!_0x3c9caa,_0x1452cf=_0x3931e7[_0x21dd2c(0xac)]?updateModelRegistry({'outputDir':_0x38413d,'profileName':_0x3931e7[_0x21dd2c(0xac)][_0x21dd2c(0x89)],'defaultProfile':_0x3931e7[_0x21dd2c(0xac)]['defaultName'],'appCode':_0x4bde8d,'runtimeDomain':_0x3931e7[_0x21dd2c(0xac)][_0x21dd2c(0xaf)],'models':_0x4b280a,'allowEmptyReplacement':_0x3931e7['allowEmptyModelReplacement']===!![]}):undefined,_0x298793=_0x1452cf?a3_0x483805[_0x21dd2c(0x94)](_0x38413d,MODEL_RUNTIME_FILE_NAME):undefined,_0x2c3411=_0x298793?existsSync(_0x298793):![],_0x40ddc1=_0x43e020&&_0x44b7a2!==_0x21dd2c(0x8d)?await renderModelRegistryScaffold(_0x38413d):undefined;_0x298793&&_0x40ddc1&&writeFileSync(_0x298793,_0x40ddc1[_0x21dd2c(0x82)],_0x21dd2c(0x7e));const _0x47eb08=_0x4b280a[0x0]?.[_0x21dd2c(0x7f)];if(_0x135668){const _0x1ec00f=_0x40ddc1?.[_0x21dd2c(0x92)]??readFileSync(_0x536b3f,_0x21dd2c(0x7e)),_0x5c5ac2=_0x43e020?_0x1ec00f:TemplateReplacer[_0x21dd2c(0x88)](_0x1ec00f,_0x4bde8d,_0x4b280a,_0x47eb08,_0x4eb48d,_0x2538f2,undefined,_0x1798ff);writeFileSync(_0x2a63d2,await a3_0x3568a7['format'](_0x5c5ac2,{'parser':_0x21dd2c(0x90)}),{'encoding':_0x21dd2c(0x7e)});}if(_0x1c3a23){const _0x163d92=_0x40ddc1?.[_0x21dd2c(0xa5)]??readFileSync(_0x38116d,'utf8'),_0x5b06bd=_0x43e020?_0x163d92:TemplateReplacer[_0x21dd2c(0x88)](_0x163d92,_0x4bde8d,_0x4b280a,_0x47eb08,_0x4eb48d,_0x2538f2,_0x2e8d5b,_0x1798ff,_0x15e5e1);writeFileSync(_0x14a172,await a3_0x3568a7['format'](_0x5b06bd,{'parser':_0x21dd2c(0x90)}),{'encoding':'utf8'});}const _0x564c52=_0x4b280a[_0x21dd2c(0x96)],_0x5cd3b1={'api':{'path':_0x2a63d2,'action':fileAction(_0x211088,_0x135668)},'client':{'path':_0x14a172,'action':fileAction(_0x3c9caa,_0x1c3a23)},'sdkConfig':{'path':_0x41dccc,'action':_0x21dd2c(0x81)},..._0x1452cf?{'modelRegistry':{'path':_0x1452cf[_0x21dd2c(0xb2)],'action':_0x1452cf[_0x21dd2c(0x9f)]?_0x21dd2c(0x81):'created'},'modelRuntime':{'path':_0x298793,'action':_0x40ddc1?_0x2c3411?_0x21dd2c(0x81):_0x21dd2c(0xa6):_0x2c3411?_0x21dd2c(0x8c):_0x21dd2c(0x8b)}}:{}},_0x349a3f=existsSync(_0x2a63d2)&&readFileSync(_0x2a63d2,_0x21dd2c(0x7e))[_0x21dd2c(0x99)](MODEL_REGISTRY_FILE_NAME['replace'](_0x21dd2c(0x7d),'')),_0x2630b6=existsSync(_0x14a172)&&readFileSync(_0x14a172,'utf8')[_0x21dd2c(0x99)](_0x21dd2c(0x95)),_0x29f475=_0x43e020?!_0x349a3f||!_0x2630b6||!existsSync(_0x298793):![],_0x5d3f3d=_0x43e020?_0x29f475:_0x5cd3b1[_0x21dd2c(0x92)][_0x21dd2c(0x93)]===_0x21dd2c(0x8c)||_0x5cd3b1[_0x21dd2c(0xa5)]['action']===_0x21dd2c(0x8c);return logger[_0x21dd2c(0xb5)](_0x21dd2c(0x98),_0x5d3f3d?a3_0x483805[_0x21dd2c(0x91)](_0x41dccc)+_0x21dd2c(0xb0):_0x43e020?'Model\x20facts\x20refreshed.':_0x21dd2c(0x86),undefined,{'apiFile':_0x2a63d2,'clientFile':_0x14a172,'sdkConfig':_0x41dccc,'modelCount':_0x564c52,'configName':_0x15453c,'isDefaultConfig':_0x10313c,'needsAgentMerge':_0x5d3f3d,'needsProjectUpgrade':_0x29f475,'files':_0x5cd3b1}),{'appCode':_0x4bde8d,'modelCount':_0x564c52,'models':_0x4b280a,'apiFilePath':_0x2a63d2,'clientFilePath':_0x14a172,'sdkConfigPath':_0x41dccc,'modelRegistryPath':_0x1452cf?.[_0x21dd2c(0xb2)],'modelRuntimePath':_0x298793,'modelProfile':_0x3931e7[_0x21dd2c(0xac)]?.[_0x21dd2c(0x89)],'configName':_0x15453c,'isDefaultConfig':_0x10313c,'sdkRouting':_0x5bb52b,'files':_0x5cd3b1,'needsAgentMerge':_0x5d3f3d,'needsProjectUpgrade':_0x29f475};}
1
+ (function(_0x1e1e80,_0x192f49){const _0x153e4b=a3_0x2db7,_0x14d602=_0x1e1e80();while(!![]){try{const _0x1f4e64=-parseInt(_0x153e4b(0x7d))/0x1+parseInt(_0x153e4b(0xa7))/0x2+-parseInt(_0x153e4b(0x80))/0x3+parseInt(_0x153e4b(0x97))/0x4+parseInt(_0x153e4b(0x94))/0x5*(parseInt(_0x153e4b(0xad))/0x6)+parseInt(_0x153e4b(0xa9))/0x7*(-parseInt(_0x153e4b(0xb3))/0x8)+-parseInt(_0x153e4b(0x7e))/0x9;if(_0x1f4e64===_0x192f49)break;else _0x14d602['push'](_0x14d602['shift']());}catch(_0xaa77a3){_0x14d602['push'](_0x14d602['shift']());}}}(a3_0x2c12,0x92f7a));function a3_0x2db7(_0x3397ef,_0x39e295){_0x3397ef=_0x3397ef-0x7d;const _0x2c125e=a3_0x2c12();let _0x2db79a=_0x2c125e[_0x3397ef];return _0x2db79a;}import a3_0x155692 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';function a3_0x2c12(){const _0x465682=['preserved','key','CONFIG_NAMES.DEFAULT','client','80JfiYal','modelProfile','length','1408980hJKOAe','Model\x20facts\x20refreshed.','utf8','typescript','format','API\x20scaffold\x20written.','none','defaultName','{\x20apiConfigName:\x20','templates/generate-api','../..','name','path','refreshed','api','test','1519440MWRrWT','LOVRABET','7FzvXes','allowEmptyModelReplacement','scaffoldMode','existed','308670ckwRhn','join','action','runtimeDomain','basename','APP_','5431032MNGhND','.ts','alias','modelRuntime','success','toUpperCase','2734QgaTWs','108657EtdrXb','overwriteTypescript','1918263jytnCe','tableName','init-api',',\x20env:\x20','client.ts.tpl','default','stringify','\x20config\x20set\x20app\x20<value>`','created','replace','-client','datasetCode','missing','includes','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','map'];a3_0x2c12=function(){return _0x465682;};return a3_0x2c12();}import a3_0x3b38d1 from'node:path';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(_0x4025e0,_0x1a6cb8){const _0x3d6d94=a3_0x2db7;if(!_0x1a6cb8)return _0x4025e0?_0x3d6d94(0x90):_0x3d6d94(0x8c);return _0x4025e0?'overwritten':'created';}export async function generateApiFile(_0xe8d34a,_0x5dda54,_0x11890d,_0x61988f,_0x225677,_0x4e6e25,_0x136a90,_0x1ec513={},_0x3b23c7={}){const _0x203f56=a3_0x2db7;if(!_0x11890d)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x203f56(0x87));const _0xdcd9f4=_0x61988f&&!_0x136a90,_0x80b26d=!!_0x3b23c7[_0x203f56(0x95)],_0x39a03c=_0x80b26d||_0xdcd9f4,_0x3f7c6b=_0x136a90||_0x11890d,_0x210793=_0x80b26d||_0xdcd9f4?_0x203f56(0x85):_0x3f7c6b,_0x3aa295=_0x80b26d||_0xdcd9f4?_0x203f56(0x92):JSON[_0x203f56(0x86)](_0x3f7c6b),_0x5331e3=!isProduction(_0x225677),_0x12c99f=_0x5331e3?_0x203f56(0x83)+JSON[_0x203f56(0x86)](_0x225677):'',_0x3df997=_0x203f56(0x9f)+_0x3aa295+_0x12c99f+',\x20...LOVRABET_SDK_CONFIG\x20}',_0x454100=_0x80b26d?'':_0x5dda54,_0x1f6e34=_0x454100?_0x454100+'-api':_0x203f56(0xa5),_0x2a3d91=_0x454100?_0x454100+_0x203f56(0x8a):'client',_0xe57dd0=_0x454100&&!/^app-[a-f0-9]+$/i[_0x203f56(0xa6)](_0x454100)?_0x454100[_0x203f56(0x89)](/-/g,'_')[_0x203f56(0xb8)]():_0x203f56(0xa8),_0x501c3d=/^\d/[_0x203f56(0xa6)](_0xe57dd0)?_0x203f56(0xb2)+_0xe57dd0:_0xe57dd0,_0x136a6e=_0xe8d34a[_0x203f56(0x8f)](_0x247990=>({'datasetCode':_0x247990[_0x203f56(0x8b)],'tableName':_0x247990[_0x203f56(0x81)],'name':_0x247990[_0x203f56(0xa2)]||'','alias':_0x247990[_0x203f56(0xb5)]||_0x247990[_0x203f56(0x91)]})),_0x2ec91e=fileURLToPath(import.meta.url),_0xd79bb6=a3_0x3b38d1['resolve'](a3_0x3b38d1['dirname'](_0x2ec91e),_0x203f56(0xa1)),_0x4b57f6=a3_0x3b38d1['join'](_0xd79bb6,_0x203f56(0xa0)),_0x48113f=a3_0x3b38d1[_0x203f56(0xae)](_0x4b57f6,'api.ts.tpl'),_0x571b83=a3_0x3b38d1[_0x203f56(0xae)](_0x4b57f6,_0x203f56(0x84)),_0x49d10e=_0x4e6e25;mkdirSync(_0x49d10e,{'recursive':!![]});const _0x959acb=_0x80b26d?{}:_0x1ec513,_0x5a3355=await generateSdkConfigFile(_0x49d10e,_0x959acb,_0x454100),_0x2f565d=a3_0x3b38d1[_0x203f56(0xb1)](_0x5a3355,_0x203f56(0xb4)),_0x3f5040=a3_0x3b38d1[_0x203f56(0xae)](_0x49d10e,_0x1f6e34+_0x203f56(0xb4)),_0x959c85=a3_0x3b38d1[_0x203f56(0xae)](_0x49d10e,_0x2a3d91+_0x203f56(0xb4)),_0x1cef9d=_0x3b23c7[_0x203f56(0x7f)]===!![],_0x1f9828=existsSync(_0x3f5040),_0x1ffaa7=existsSync(_0x959c85),_0x2fcc7b=_0x3b23c7[_0x203f56(0xab)]??(_0x1cef9d?_0x203f56(0x89):_0x203f56(0x8c)),_0x9a2c96=_0x2fcc7b===_0x203f56(0x89)||_0x2fcc7b===_0x203f56(0x8c)&&!_0x1f9828,_0xcba1f3=_0x2fcc7b===_0x203f56(0x89)||_0x2fcc7b===_0x203f56(0x8c)&&!_0x1ffaa7,_0x43cc47=_0x3b23c7['modelProfile']?updateModelRegistry({'outputDir':_0x49d10e,'profileName':_0x3b23c7[_0x203f56(0x95)][_0x203f56(0xa2)],'defaultProfile':_0x3b23c7['modelProfile'][_0x203f56(0x9e)],'appCode':_0x11890d,'runtimeDomain':_0x3b23c7['modelProfile'][_0x203f56(0xb0)],'models':_0x136a6e,'allowEmptyReplacement':_0x3b23c7[_0x203f56(0xaa)]===!![]}):undefined,_0x590e4a=_0x43cc47?a3_0x3b38d1[_0x203f56(0xae)](_0x49d10e,MODEL_RUNTIME_FILE_NAME):undefined,_0x3934b7=_0x590e4a?existsSync(_0x590e4a):![],_0x43b7c5=_0x80b26d&&_0x2fcc7b!==_0x203f56(0x9d)?await renderModelRegistryScaffold(_0x49d10e):undefined;_0x590e4a&&_0x43b7c5&&writeFileSync(_0x590e4a,_0x43b7c5[_0x203f56(0xb6)],_0x203f56(0x99));const _0x582c07=_0x136a6e[0x0]?.[_0x203f56(0xb5)];if(_0x9a2c96){const _0x547e96=_0x43b7c5?.['api']??readFileSync(_0x48113f,_0x203f56(0x99)),_0x5e8b45=_0x80b26d?_0x547e96:TemplateReplacer['replaceApiContent'](_0x547e96,_0x11890d,_0x136a6e,_0x582c07,_0x1f6e34,_0x3aa295,undefined,_0x501c3d);writeFileSync(_0x3f5040,await a3_0x155692[_0x203f56(0x9b)](_0x5e8b45,{'parser':_0x203f56(0x9a)}),{'encoding':_0x203f56(0x99)});}if(_0xcba1f3){const _0xdcc805=_0x43b7c5?.[_0x203f56(0x93)]??readFileSync(_0x571b83,_0x203f56(0x99)),_0x1f5a15=_0x80b26d?_0xdcc805:TemplateReplacer['replaceApiContent'](_0xdcc805,_0x11890d,_0x136a6e,_0x582c07,_0x1f6e34,_0x3aa295,_0x3df997,_0x501c3d,_0x2f565d);writeFileSync(_0x959c85,await a3_0x155692[_0x203f56(0x9b)](_0x1f5a15,{'parser':_0x203f56(0x9a)}),{'encoding':_0x203f56(0x99)});}const _0x11010e=_0x136a6e[_0x203f56(0x96)],_0x3d5296={'api':{'path':_0x3f5040,'action':fileAction(_0x1f9828,_0x9a2c96)},'client':{'path':_0x959c85,'action':fileAction(_0x1ffaa7,_0xcba1f3)},'sdkConfig':{'path':_0x5a3355,'action':_0x203f56(0xa4)},..._0x43cc47?{'modelRegistry':{'path':_0x43cc47[_0x203f56(0xa3)],'action':_0x43cc47[_0x203f56(0xac)]?_0x203f56(0xa4):_0x203f56(0x88)},'modelRuntime':{'path':_0x590e4a,'action':_0x43b7c5?_0x3934b7?'refreshed':'created':_0x3934b7?'preserved':'missing'}}:{}},_0x50ee01=existsSync(_0x3f5040)&&readFileSync(_0x3f5040,_0x203f56(0x99))[_0x203f56(0x8d)](MODEL_REGISTRY_FILE_NAME[_0x203f56(0x89)](_0x203f56(0xb4),'')),_0x327124=existsSync(_0x959c85)&&readFileSync(_0x959c85,'utf8')['includes']('LOVRABET_RUNTIME_DOMAIN'),_0x1e5a6d=_0x80b26d?!_0x50ee01||!_0x327124||!existsSync(_0x590e4a):![],_0x7fae6a=_0x80b26d?_0x1e5a6d:_0x3d5296[_0x203f56(0xa5)][_0x203f56(0xaf)]==='preserved'||_0x3d5296['client']['action']===_0x203f56(0x90);return logger[_0x203f56(0xb7)](_0x203f56(0x82),_0x7fae6a?a3_0x3b38d1[_0x203f56(0xb1)](_0x5a3355)+_0x203f56(0x8e):_0x80b26d?_0x203f56(0x98):_0x203f56(0x9c),undefined,{'apiFile':_0x3f5040,'clientFile':_0x959c85,'sdkConfig':_0x5a3355,'modelCount':_0x11010e,'configName':_0x210793,'isDefaultConfig':_0x39a03c,'needsAgentMerge':_0x7fae6a,'needsProjectUpgrade':_0x1e5a6d,'files':_0x3d5296}),{'appCode':_0x11890d,'modelCount':_0x11010e,'models':_0x136a6e,'apiFilePath':_0x3f5040,'clientFilePath':_0x959c85,'sdkConfigPath':_0x5a3355,'modelRegistryPath':_0x43cc47?.[_0x203f56(0xa3)],'modelRuntimePath':_0x590e4a,'modelProfile':_0x3b23c7[_0x203f56(0x95)]?.['name'],'configName':_0x210793,'isDefaultConfig':_0x39a03c,'sdkRouting':_0x959acb,'files':_0x3d5296,'needsAgentMerge':_0x7fae6a,'needsProjectUpgrade':_0x1e5a6d};}
@@ -1 +1 @@
1
- (function(_0x4d7769,_0x2dcef0){const _0x3b312a=a4_0x17a8,_0x2368cd=_0x4d7769();while(!![]){try{const _0x4f63e6=parseInt(_0x3b312a(0x9a))/0x1*(parseInt(_0x3b312a(0x9b))/0x2)+-parseInt(_0x3b312a(0x9f))/0x3+-parseInt(_0x3b312a(0x9e))/0x4*(-parseInt(_0x3b312a(0xa1))/0x5)+parseInt(_0x3b312a(0x94))/0x6*(parseInt(_0x3b312a(0x99))/0x7)+parseInt(_0x3b312a(0x9c))/0x8+-parseInt(_0x3b312a(0xa5))/0x9*(-parseInt(_0x3b312a(0x98))/0xa)+-parseInt(_0x3b312a(0x90))/0xb*(parseInt(_0x3b312a(0x9d))/0xc);if(_0x4f63e6===_0x2dcef0)break;else _0x2368cd['push'](_0x2368cd['shift']());}catch(_0x33ed6d){_0x2368cd['push'](_0x2368cd['shift']());}}}(a4_0x58c5,0xcfe15));function a4_0x17a8(_0x4cdb4b,_0x14ef83){_0x4cdb4b=_0x4cdb4b-0x8d;const _0x58c542=a4_0x58c5();let _0x17a8af=_0x58c542[_0x4cdb4b];return _0x17a8af;}import{mkdirSync,writeFileSync}from'node:fs';import a4_0x39107b from'node:path';import a4_0x2cf483 from'prettier';export const SDK_CONFIG_FILE_NAME='sdk-config.ts';export function getSdkConfigFileName(_0x4cfa2a=''){const _0xf60ab1=a4_0x17a8;return _0x4cfa2a?_0x4cfa2a+_0xf60ab1(0x92):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0xa98d55,_0xe1b123={},_0x1eeffc=''){const _0x1294cb=a4_0x17a8,_0x4b77f7=[];_0xe1b123[_0x1294cb(0xa4)]&&_0x4b77f7['push'](_0x1294cb(0x95)+JSON[_0x1294cb(0x97)](_0xe1b123[_0x1294cb(0xa4)]));const _0x28bd15=_0x4b77f7[_0x1294cb(0xa2)]>0x0?_0x1294cb(0x8f)+_0x4b77f7[_0x1294cb(0x8e)](',\x0a\x20\x20')+_0x1294cb(0x93):'{}',_0x4e363a=_0x1294cb(0x91)+_0x28bd15+_0x1294cb(0x96);mkdirSync(_0xa98d55,{'recursive':!![]});const _0x135525=a4_0x39107b['join'](_0xa98d55,getSdkConfigFileName(_0x1eeffc));return writeFileSync(_0x135525,await a4_0x2cf483[_0x1294cb(0x8d)](_0x4e363a,{'parser':_0x1294cb(0xa3)}),_0x1294cb(0xa0)),_0x135525;}function a4_0x58c5(){const _0xb4c2f=['7248QxvmtJ','206ovJyVX','5448736DQnHOu','31314264DKQItA','8KjfHGK','3282795QAfpyj','utf8','3593015hwFNpd','length','typescript','runtimeDomain','3115332cRSIDw','format','join','{\x0a\x20\x20','11JnbnyF','/**\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','-sdk-config.ts',',\x0a}','6jzVeBO','runtimeDomain:\x20','\x20as\x20const;\x0a','stringify','10jrPLXU','9409918zfAuEL'];a4_0x58c5=function(){return _0xb4c2f;};return a4_0x58c5();}
1
+ function a4_0x4496(){const _0x15e970=['stringify','\x20as\x20const;\x0a','7ERfusZ','3ywAvmn',',\x0a}',',\x0a\x20\x20','30339uwIkiA','join','4657424cuHGYT','4222602iXoxaU','{\x0a\x20\x20','10pYxlBn','24030127FPfuIF','runtimeDomain:\x20','typescript','runtimeDomain','12234fCihHE','2545qSUfqW','-sdk-config.ts','/**\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','5495384bDPUoE','push','format','sdk-config.ts','896418hJcZRI'];a4_0x4496=function(){return _0x15e970;};return a4_0x4496();}const a4_0x2de5aa=a4_0x302e;(function(_0x564892,_0x27f7f7){const _0xb6bbbf=a4_0x302e,_0x259200=_0x564892();while(!![]){try{const _0x5be228=-parseInt(_0xb6bbbf(0x13a))/0x1+parseInt(_0xb6bbbf(0x14c))/0x2+-parseInt(_0xb6bbbf(0x137))/0x3*(-parseInt(_0xb6bbbf(0x13c))/0x4)+parseInt(_0xb6bbbf(0x145))/0x5*(parseInt(_0xb6bbbf(0x144))/0x6)+parseInt(_0xb6bbbf(0x136))/0x7*(parseInt(_0xb6bbbf(0x148))/0x8)+parseInt(_0xb6bbbf(0x13d))/0x9*(-parseInt(_0xb6bbbf(0x13f))/0xa)+-parseInt(_0xb6bbbf(0x140))/0xb;if(_0x5be228===_0x27f7f7)break;else _0x259200['push'](_0x259200['shift']());}catch(_0x5b32e2){_0x259200['push'](_0x259200['shift']());}}}(a4_0x4496,0x9f7d1));import{mkdirSync,writeFileSync}from'node:fs';import a4_0x24bd82 from'node:path';import a4_0x23dee1 from'prettier';export const SDK_CONFIG_FILE_NAME=a4_0x2de5aa(0x14b);function a4_0x302e(_0x19823a,_0x490ae3){_0x19823a=_0x19823a-0x135;const _0x449600=a4_0x4496();let _0x302ee0=_0x449600[_0x19823a];return _0x302ee0;}export function getSdkConfigFileName(_0x2456ad=''){const _0x1d0e78=a4_0x2de5aa;return _0x2456ad?_0x2456ad+_0x1d0e78(0x146):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x4596e2,_0x55365a={},_0x576077=''){const _0x330f98=a4_0x2de5aa,_0x3b763e=[];_0x55365a[_0x330f98(0x143)]&&_0x3b763e[_0x330f98(0x149)](_0x330f98(0x141)+JSON[_0x330f98(0x14d)](_0x55365a['runtimeDomain']));const _0x36f436=_0x3b763e['length']>0x0?_0x330f98(0x13e)+_0x3b763e[_0x330f98(0x13b)](_0x330f98(0x139))+_0x330f98(0x138):'{}',_0x1c56d7=_0x330f98(0x147)+_0x36f436+_0x330f98(0x135);mkdirSync(_0x4596e2,{'recursive':!![]});const _0x40257b=a4_0x24bd82['join'](_0x4596e2,getSdkConfigFileName(_0x576077));return writeFileSync(_0x40257b,await a4_0x23dee1[_0x330f98(0x14a)](_0x1c56d7,{'parser':_0x330f98(0x142)}),'utf8'),_0x40257b;}
@@ -1 +1 @@
1
- (function(_0x520504,_0x1b6d89){const _0xca81bc=a5_0x2cda,_0x3442f5=_0x520504();while(!![]){try{const _0x2e8ca5=-parseInt(_0xca81bc(0xe8))/0x1*(parseInt(_0xca81bc(0xe1))/0x2)+-parseInt(_0xca81bc(0xdb))/0x3+-parseInt(_0xca81bc(0xe0))/0x4*(parseInt(_0xca81bc(0xe2))/0x5)+-parseInt(_0xca81bc(0xde))/0x6*(parseInt(_0xca81bc(0xda))/0x7)+parseInt(_0xca81bc(0xd7))/0x8*(parseInt(_0xca81bc(0xdf))/0x9)+-parseInt(_0xca81bc(0xe6))/0xa+-parseInt(_0xca81bc(0xf0))/0xb*(-parseInt(_0xca81bc(0xe5))/0xc);if(_0x2e8ca5===_0x1b6d89)break;else _0x3442f5['push'](_0x3442f5['shift']());}catch(_0xc3355d){_0x3442f5['push'](_0x3442f5['shift']());}}}(a5_0x547a,0x520d8));function a5_0x547a(){const _0x4afbb8=['some','138JfFxOF','27HdKSqD','8GuCqqU','98vuBGha','386390VQXwNy','map','push','3486012HaPBtA','3711530sUzaFA','registerModels','5225OSzKfQ','Generated\x20by\x20Rabetbase\x20CLI','length','endsWith','lovrabetClient','match','includes','test','66rteExr','replace','281016kCWMch','matchAll','MODELS_CONFIG','92309klrgfS','1281792FRUgAB','@lovrabet/sdk'];a5_0x547a=function(){return _0x4afbb8;};return a5_0x547a();}export function parseLegacyApiModels(_0x1a04f6){const _0x58a663=a5_0x2cda,_0x1c230b=[],_0x229b93=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x56cd4d;while((_0x56cd4d=_0x229b93['exec'](_0x1a04f6))!==null){_0x1c230b[_0x58a663(0xe4)]({'datasetCode':_0x56cd4d[0x1],'tableName':_0x56cd4d[0x2],'name':_0x56cd4d[0x3],'alias':_0x56cd4d[0x4]});}return _0x1c230b;}function a5_0x2cda(_0x547293,_0x396edb){_0x547293=_0x547293-0xd6;const _0x547a5b=a5_0x547a();let _0x2cda50=_0x547a5b[_0x547293];return _0x2cda50;}export function parseLegacyApiAppCode(_0x361699){const _0x3a6a1f=a5_0x2cda;return _0x361699[_0x3a6a1f(0xed)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x1f7e35){const _0xa6923d=a5_0x2cda;return _0x1f7e35[_0xa6923d(0xd6)](/\/\*[\s\S]*?\*\//g,'')[_0xa6923d(0xd6)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x4c55ac){const _0x1c9957=a5_0x2cda;if(!_0x4c55ac['includes'](_0x1c9957(0xe9)))return![];const _0xf0c103=stripComments(_0x4c55ac),_0x246e6b=[..._0xf0c103[_0x1c9957(0xd8)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x1c9957(0xe3)](_0x2351c1=>_0x2351c1[0x1]);if(_0x246e6b[_0x1c9957(0xea)]!==0x1||_0x246e6b[0x0]!=='@lovrabet/sdk')return![];const _0x32b23f=[..._0xf0c103[_0x1c9957(0xd8)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x1c9957(0xe3)](_0x26a652=>_0x26a652[0x1]);if(_0x32b23f['length']!==0x2||!_0x32b23f[_0x1c9957(0xdd)](_0x2367c7=>_0x2367c7[_0x1c9957(0xeb)]('APP_CODE'))||!_0x32b23f[_0x1c9957(0xdd)](_0x449b33=>_0x449b33['endsWith'](_0x1c9957(0xd9))))return![];const _0x1026ee=[..._0xf0c103[_0x1c9957(0xd8)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x1c9957(0xe3)](_0x13c24b=>_0x13c24b[0x1]);return _0x1026ee[_0x1c9957(0xea)]===0x1&&_0x1026ee[0x0]===_0x1c9957(0xe7);}export function isLegacyGeneratedClientScaffold(_0x49c242){const _0x1aacf4=a5_0x2cda;if(!_0x49c242[_0x1aacf4(0xee)](_0x1aacf4(0xe9)))return![];const _0x2ed994=stripComments(_0x49c242),_0x2c3ec5=[..._0x2ed994[_0x1aacf4(0xd8)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x1aacf4(0xe3)](_0x57e8f9=>_0x57e8f9[0x1]);if(_0x2c3ec5[_0x1aacf4(0xdd)](_0xf0d063=>_0xf0d063!==_0x1aacf4(0xdc)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x1aacf4(0xef)](_0xf0d063??'')))return![];const _0x33920f=[..._0x2ed994['matchAll'](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)]['map'](_0x4ed438=>_0x4ed438[0x1]);return _0x33920f['length']===0x1&&_0x33920f[0x0]===_0x1aacf4(0xec);}
1
+ function a5_0x9d40(){const _0x1e1a27=['20BJgnMg','endsWith','lovrabetClient','892856jLtawz','1912284XryQKd','1221148FAHDsS','replace','Generated\x20by\x20Rabetbase\x20CLI','push','22674eUeoYT','length','matchAll','includes','9EVqApY','324mexuhc','exec','MODELS_CONFIG','APP_CODE','registerModels','25135700PuHVpW','238392zTpZzH','map','some','10161655jiLjNp','match'];a5_0x9d40=function(){return _0x1e1a27;};return a5_0x9d40();}(function(_0x492061,_0x3dce97){const _0x67fd5b=a5_0x2f09,_0x561c5b=_0x492061();while(!![]){try{const _0x4d478c=parseInt(_0x67fd5b(0x13f))/0x1+parseInt(_0x67fd5b(0x13e))/0x2+-parseInt(_0x67fd5b(0x143))/0x3*(parseInt(_0x67fd5b(0x148))/0x4)+parseInt(_0x67fd5b(0x13a))/0x5*(parseInt(_0x67fd5b(0x14e))/0x6)+parseInt(_0x67fd5b(0x138))/0x7+parseInt(_0x67fd5b(0x13d))/0x8*(parseInt(_0x67fd5b(0x147))/0x9)+-parseInt(_0x67fd5b(0x14d))/0xa;if(_0x4d478c===_0x3dce97)break;else _0x561c5b['push'](_0x561c5b['shift']());}catch(_0x4e6b4f){_0x561c5b['push'](_0x561c5b['shift']());}}}(a5_0x9d40,0xbce5a));export function parseLegacyApiModels(_0x354771){const _0x4ba525=a5_0x2f09,_0x51b99d=[],_0x165f48=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x45af9b;while((_0x45af9b=_0x165f48[_0x4ba525(0x149)](_0x354771))!==null){_0x51b99d[_0x4ba525(0x142)]({'datasetCode':_0x45af9b[0x1],'tableName':_0x45af9b[0x2],'name':_0x45af9b[0x3],'alias':_0x45af9b[0x4]});}return _0x51b99d;}export function parseLegacyApiAppCode(_0x4fd8c7){const _0x3dbb06=a5_0x2f09;return _0x4fd8c7[_0x3dbb06(0x139)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x4e2e37){const _0x161be9=a5_0x2f09;return _0x4e2e37[_0x161be9(0x140)](/\/\*[\s\S]*?\*\//g,'')[_0x161be9(0x140)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x1b6e8d){const _0x2058b8=a5_0x2f09;if(!_0x1b6e8d['includes'](_0x2058b8(0x141)))return![];const _0x5e23e0=stripComments(_0x1b6e8d),_0x436903=[..._0x5e23e0[_0x2058b8(0x145)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x2058b8(0x136)](_0x18f55c=>_0x18f55c[0x1]);if(_0x436903[_0x2058b8(0x144)]!==0x1||_0x436903[0x0]!=='@lovrabet/sdk')return![];const _0x59c2fc=[..._0x5e23e0[_0x2058b8(0x145)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x2058b8(0x136)](_0x4c4cb5=>_0x4c4cb5[0x1]);if(_0x59c2fc[_0x2058b8(0x144)]!==0x2||!_0x59c2fc[_0x2058b8(0x137)](_0x2ab8e0=>_0x2ab8e0[_0x2058b8(0x13b)](_0x2058b8(0x14b)))||!_0x59c2fc[_0x2058b8(0x137)](_0x249e64=>_0x249e64[_0x2058b8(0x13b)](_0x2058b8(0x14a))))return![];const _0x1a466e=[..._0x5e23e0[_0x2058b8(0x145)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x2058b8(0x136)](_0x49a5f2=>_0x49a5f2[0x1]);return _0x1a466e[_0x2058b8(0x144)]===0x1&&_0x1a466e[0x0]===_0x2058b8(0x14c);}function a5_0x2f09(_0x277bc1,_0x106020){_0x277bc1=_0x277bc1-0x136;const _0x9d4033=a5_0x9d40();let _0x2f0966=_0x9d4033[_0x277bc1];return _0x2f0966;}export function isLegacyGeneratedClientScaffold(_0x7bbd17){const _0x192be6=a5_0x2f09;if(!_0x7bbd17[_0x192be6(0x146)](_0x192be6(0x141)))return![];const _0x1aadae=stripComments(_0x7bbd17),_0x306a46=[..._0x1aadae[_0x192be6(0x145)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x192be6(0x136)](_0x4a8884=>_0x4a8884[0x1]);if(_0x306a46[_0x192be6(0x137)](_0xff5a94=>_0xff5a94!=='@lovrabet/sdk'&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/['test'](_0xff5a94??'')))return![];const _0x1da0db=[..._0x1aadae[_0x192be6(0x145)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x192be6(0x136)](_0x50e596=>_0x50e596[0x1]);return _0x1da0db['length']===0x1&&_0x1da0db[0x0]===_0x192be6(0x13c);}
@@ -1 +1 @@
1
- const a6_0x27ab91=a6_0xac6b;(function(_0x364a0b,_0x25e149){const _0x11a0cf=a6_0xac6b,_0xa6c66=_0x364a0b();while(!![]){try{const _0x4e44e7=-parseInt(_0x11a0cf(0xfc))/0x1+-parseInt(_0x11a0cf(0xbf))/0x2*(-parseInt(_0x11a0cf(0xf8))/0x3)+parseInt(_0x11a0cf(0xf5))/0x4+parseInt(_0x11a0cf(0xf0))/0x5+-parseInt(_0x11a0cf(0xe8))/0x6*(parseInt(_0x11a0cf(0xe0))/0x7)+-parseInt(_0x11a0cf(0xbd))/0x8*(-parseInt(_0x11a0cf(0xf4))/0x9)+parseInt(_0x11a0cf(0xee))/0xa;if(_0x4e44e7===_0x25e149)break;else _0xa6c66['push'](_0xa6c66['shift']());}catch(_0x399265){_0xa6c66['push'](_0xa6c66['shift']());}}}(a6_0x5950,0x18e4e));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x1c6142 from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x27ab91(0xe5);export const MODEL_RUNTIME_FILE_NAME=a6_0x27ab91(0xdb);export const MODEL_REGISTRY_VERSION_MARKER=a6_0x27ab91(0xc6);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x27ab91(0xfa),REGISTRY_START='/*\x20rabetbase-model-registry:start\x20*/',REGISTRY_END=a6_0x27ab91(0xb7);function emptyRegistry(_0x56b052){return{'defaultProfile':_0x56b052,'profiles':{},'models':[]};}function extractRegistryJson(_0x160d1a){const _0x30f653=a6_0x27ab91,_0x467490=_0x160d1a[_0x30f653(0xc1)](REGISTRY_START),_0x22362e=_0x160d1a[_0x30f653(0xc1)](REGISTRY_END);if(_0x467490<0x0||_0x22362e<=_0x467490)return undefined;return _0x160d1a['slice'](_0x467490+REGISTRY_START[_0x30f653(0xe1)],_0x22362e)[_0x30f653(0xc5)]()[_0x30f653(0xe3)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x30f653(0xe3)](/;$/,'');}function migrateLegacyRegistry(_0x5d8830){const _0xb4d186=a6_0x27ab91,_0x21357e=emptyRegistry(_0x5d8830[_0xb4d186(0xea)]);for(const [_0x1a4dd2,_0x14d7b6]of Object[_0xb4d186(0xbb)](_0x5d8830['profiles'])){_0x21357e[_0xb4d186(0xd7)][_0x1a4dd2]={'appCode':_0x14d7b6['appCode'],'runtimeDomain':_0x14d7b6[_0xb4d186(0xce)]},mergeProfileModels(_0x21357e,_0x1a4dd2,_0x14d7b6[_0xb4d186(0xdd)]);}return _0x21357e;}function generatedObjectLiteralToJson(_0x52a7a3){const _0x422a50=a6_0x27ab91;let _0x2d0c87='',_0x9c20db,_0x54509a=![],_0x3628d0;for(let _0x2da1e9=0x0;_0x2da1e9<_0x52a7a3[_0x422a50(0xe1)];_0x2da1e9++){const _0x5c91b5=_0x52a7a3[_0x2da1e9];if(_0x9c20db){_0x2d0c87+=_0x5c91b5;if(_0x54509a)_0x54509a=![];else{if(_0x5c91b5==='\x5c')_0x54509a=!![];else{if(_0x5c91b5===_0x9c20db)_0x9c20db=undefined;}}continue;}if(_0x5c91b5==='\x22'){_0x9c20db=_0x5c91b5,_0x2d0c87+=_0x5c91b5,_0x3628d0=_0x422a50(0xbe);continue;}if(_0x5c91b5===','){let _0x14076a=_0x2da1e9+0x1;while(/\s/[_0x422a50(0xde)](_0x52a7a3[_0x14076a]??''))_0x14076a++;if(_0x52a7a3[_0x14076a]==='}'||_0x52a7a3[_0x14076a]===']')continue;_0x2d0c87+=_0x5c91b5,_0x3628d0=',';continue;}if(_0x5c91b5==='{'||_0x5c91b5==='['){_0x2d0c87+=_0x5c91b5,_0x3628d0=_0x5c91b5;continue;}if(_0x5c91b5==='}'||_0x5c91b5===']'){_0x2d0c87+=_0x5c91b5,_0x3628d0=_0x5c91b5;continue;}if((_0x3628d0==='{'||_0x3628d0===',')&&/[A-Za-z_$]/[_0x422a50(0xde)](_0x5c91b5)){let _0x281d88=_0x2da1e9+0x1;while(/[A-Za-z0-9_$]/['test'](_0x52a7a3[_0x281d88]??''))_0x281d88++;let _0xe52443=_0x281d88;while(/\s/[_0x422a50(0xde)](_0x52a7a3[_0xe52443]??''))_0xe52443++;if(_0x52a7a3[_0xe52443]===':'){_0x2d0c87+=JSON['stringify'](_0x52a7a3[_0x422a50(0xf2)](_0x2da1e9,_0x281d88)),_0x2da1e9=_0x281d88-0x1,_0x3628d0=_0x422a50(0xc7);continue;}}_0x2d0c87+=_0x5c91b5;if(!/\s/[_0x422a50(0xde)](_0x5c91b5)&&_0x5c91b5!==':')_0x3628d0='value';}return _0x2d0c87;}function a6_0xac6b(_0x28f917,_0x4fcd87){_0x28f917=_0x28f917-0xb4;const _0x595025=a6_0x5950();let _0xac6bb5=_0x595025[_0x28f917];return _0xac6bb5;}function parseGeneratedRegistryJson(_0x804d52){const _0x3ae337=a6_0x27ab91;try{return JSON[_0x3ae337(0xf1)](_0x804d52);}catch{return JSON[_0x3ae337(0xf1)](generatedObjectLiteralToJson(_0x804d52));}}function normalizeModelEntries(_0x3b70b2,_0x40c36a){const _0x43d243=a6_0x27ab91,_0x4777ae=Object[_0x43d243(0xe2)](_0x3b70b2),_0x1f2aac=[];for(const _0x1e6bdb of _0x40c36a){if(!_0x1e6bdb||typeof _0x1e6bdb!==_0x43d243(0xdc)||Array[_0x43d243(0xf6)](_0x1e6bdb))return undefined;const _0x177f04=_0x1e6bdb;if(typeof _0x177f04[_0x43d243(0xf7)]!==_0x43d243(0xb5)||typeof _0x177f04[_0x43d243(0xd3)]!==_0x43d243(0xb5)||typeof _0x177f04['name']!=='string')return undefined;let _0x592fe5;if(typeof _0x177f04[_0x43d243(0xd8)]===_0x43d243(0xb5)&&_0x177f04[_0x43d243(0xc4)]===undefined)_0x592fe5=Object[_0x43d243(0xfd)](_0x4777ae['map'](_0x3d21a1=>[_0x3d21a1,_0x177f04['datasetCode']]));else{if(_0x177f04['datasetCode']===undefined&&_0x177f04[_0x43d243(0xc4)]&&typeof _0x177f04['datasetCodes']==='object'&&!Array[_0x43d243(0xf6)](_0x177f04['datasetCodes'])&&Object[_0x43d243(0xe4)](_0x177f04[_0x43d243(0xc4)])[_0x43d243(0xec)](_0x29b777=>typeof _0x29b777===_0x43d243(0xb5)))_0x592fe5={..._0x177f04[_0x43d243(0xc4)]};else return undefined;}_0x1f2aac[_0x43d243(0xd0)]({'alias':_0x177f04[_0x43d243(0xf7)],'tableName':_0x177f04[_0x43d243(0xd3)],'name':_0x177f04[_0x43d243(0xd2)],'datasetCodes':_0x592fe5});}return _0x1f2aac;}export function parseModelRegistry(_0x57a625){const _0x291fc4=a6_0x27ab91,_0x4ffc39=extractRegistryJson(_0x57a625);if(!_0x4ffc39)return undefined;try{const _0x5c1bf8=parseGeneratedRegistryJson(_0x4ffc39);if(typeof _0x5c1bf8[_0x291fc4(0xea)]!==_0x291fc4(0xb5)||!_0x5c1bf8[_0x291fc4(0xd7)]||typeof _0x5c1bf8['profiles']!=='object')return undefined;if(_0x5c1bf8[_0x291fc4(0xf3)]===_0x291fc4(0xed))return migrateLegacyRegistry(_0x5c1bf8);if(!(_0x5c1bf8[_0x291fc4(0xf3)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x5c1bf8[_0x291fc4(0xf3)]===undefined&&_0x57a625[_0x291fc4(0xca)](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x291fc4(0xf6)](_0x5c1bf8['models']))return undefined;const _0x17151a=_0x5c1bf8[_0x291fc4(0xd7)],_0x6e748c=normalizeModelEntries(_0x17151a,_0x5c1bf8[_0x291fc4(0xdd)]);if(!_0x6e748c)return undefined;return{'defaultProfile':_0x5c1bf8[_0x291fc4(0xea)],'profiles':_0x17151a,'models':_0x6e748c};}catch{return undefined;}}export function readModelRegistry(_0x3c3a65){if(!existsSync(_0x3c3a65))return undefined;try{return parseModelRegistry(readFileSync(_0x3c3a65,'utf8'));}catch{return undefined;}}function registrySource(_0x432e46){const _0x10a0d1=a6_0x27ab91,_0x1f9f9f=Object[_0x10a0d1(0xe2)](_0x432e46[_0x10a0d1(0xd7)]),_0x1423c1=_0x432e46[_0x10a0d1(0xdd)][_0x10a0d1(0xd9)](_0x51e51f=>{const _0x5215b4=_0x10a0d1,_0x29a70b=_0x1f9f9f[_0x5215b4(0xd9)](_0x32515a=>_0x51e51f['datasetCodes'][_0x32515a]),_0x42b117=_0x29a70b[0x0],_0x46f81a=_0x42b117!==undefined&&_0x29a70b[_0x5215b4(0xec)](_0x38e87d=>_0x38e87d===_0x42b117),_0x400d1d={'alias':_0x51e51f['alias'],'tableName':_0x51e51f['tableName'],'name':_0x51e51f[_0x5215b4(0xd2)]};return _0x46f81a?{..._0x400d1d,'datasetCode':_0x42b117}:{..._0x400d1d,'datasetCodes':_0x51e51f[_0x5215b4(0xc4)]};}),_0x1c4284=JSON['stringify']({'defaultProfile':_0x432e46['defaultProfile'],'profiles':_0x432e46[_0x10a0d1(0xd7)],'models':_0x1423c1},null,0x2)['split']('\x0a')['map'](_0x3251d3=>'\x20\x20'+_0x3251d3)[_0x10a0d1(0xcd)]('\x0a');return'/**\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'+MODEL_REGISTRY_VERSION_MARKER+_0x10a0d1(0xba)+REGISTRY_START+'\x0a'+_0x1c4284+_0x10a0d1(0xd6)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x82745e,_0xc6d19a,_0x2368e5){const _0x22ac2b=a6_0x27ab91,_0x3c4c10=_0x2368e5['map'](_0xe10bcc=>({..._0xe10bcc,'alias':_0xe10bcc[_0x22ac2b(0xf7)]||_0xe10bcc[_0x22ac2b(0xd3)]})),_0x5c980c=new Map(),_0x1a9de3=new Map();for(const _0x2bcfff of _0x3c4c10){const _0x28702a=_0x5c980c[_0x22ac2b(0xcf)](_0x2bcfff[_0x22ac2b(0xf7)]);if(_0x28702a&&_0x28702a!==_0x2bcfff[_0x22ac2b(0xd3)])throw new Error(_0x22ac2b(0xd5)+_0x2bcfff['alias']+_0x22ac2b(0xbc)+_0x28702a+'\x22\x20and\x20\x22'+_0x2bcfff['tableName']+_0x22ac2b(0xf9)+_0xc6d19a+'\x22.');const _0x38d270=_0x1a9de3[_0x22ac2b(0xcf)](_0x2bcfff[_0x22ac2b(0xd3)]);if(_0x38d270&&_0x38d270!==_0x2bcfff['alias'])throw new Error(_0x22ac2b(0xef)+_0x2bcfff[_0x22ac2b(0xd3)]+_0x22ac2b(0xb9)+_0x38d270+_0x22ac2b(0xe7)+_0x2bcfff[_0x22ac2b(0xf7)]+_0x22ac2b(0xf9)+_0xc6d19a+'\x22.');_0x5c980c[_0x22ac2b(0xb4)](_0x2bcfff[_0x22ac2b(0xf7)],_0x2bcfff[_0x22ac2b(0xd3)]),_0x1a9de3[_0x22ac2b(0xb4)](_0x2bcfff[_0x22ac2b(0xd3)],_0x2bcfff[_0x22ac2b(0xf7)]);const _0x3e6b4f=_0x82745e[_0x22ac2b(0xdd)][_0x22ac2b(0xb6)](_0x64f400=>_0x64f400[_0x22ac2b(0xf7)]===_0x2bcfff[_0x22ac2b(0xf7)]);if(_0x3e6b4f&&_0x3e6b4f['tableName']!==_0x2bcfff[_0x22ac2b(0xd3)])throw new Error(_0x22ac2b(0xd5)+_0x2bcfff['alias']+_0x22ac2b(0xcb)+_0x3e6b4f[_0x22ac2b(0xd3)]+_0x22ac2b(0xeb)+_0x2bcfff[_0x22ac2b(0xd3)]+_0x22ac2b(0xf9)+_0xc6d19a+'\x22.');const _0x4cf321=_0x82745e[_0x22ac2b(0xdd)][_0x22ac2b(0xb6)](_0x7e4150=>_0x7e4150[_0x22ac2b(0xd3)]===_0x2bcfff[_0x22ac2b(0xd3)]);if(_0x4cf321&&_0x4cf321['alias']!==_0x2bcfff[_0x22ac2b(0xf7)])throw new Error(_0x22ac2b(0xef)+_0x2bcfff[_0x22ac2b(0xd3)]+_0x22ac2b(0xe6)+_0x4cf321[_0x22ac2b(0xf7)]+'\x22\x20in\x20the\x20registry\x20but\x20\x22'+_0x2bcfff[_0x22ac2b(0xf7)]+'\x22\x20in\x20profile\x20\x22'+_0xc6d19a+'\x22.');}for(const _0x16b5d4 of _0x82745e['models']){delete _0x16b5d4[_0x22ac2b(0xc4)][_0xc6d19a];}for(const _0x4616f1 of _0x3c4c10){let _0x5ede2d=_0x82745e[_0x22ac2b(0xdd)][_0x22ac2b(0xb6)](_0x51e21a=>_0x51e21a[_0x22ac2b(0xf7)]===_0x4616f1[_0x22ac2b(0xf7)]);!_0x5ede2d&&(_0x5ede2d={'alias':_0x4616f1[_0x22ac2b(0xf7)],'tableName':_0x4616f1[_0x22ac2b(0xd3)],'name':_0x4616f1[_0x22ac2b(0xd2)],'datasetCodes':{}},_0x82745e['models'][_0x22ac2b(0xd0)](_0x5ede2d)),(_0xc6d19a===_0x82745e['defaultProfile']||!_0x5ede2d[_0x22ac2b(0xc4)][_0x82745e[_0x22ac2b(0xea)]])&&(_0x5ede2d[_0x22ac2b(0xf7)]=_0x4616f1[_0x22ac2b(0xf7)],_0x5ede2d[_0x22ac2b(0xd3)]=_0x4616f1[_0x22ac2b(0xd3)],_0x5ede2d[_0x22ac2b(0xd2)]=_0x4616f1[_0x22ac2b(0xd2)]),_0x5ede2d[_0x22ac2b(0xc4)][_0xc6d19a]=_0x4616f1['datasetCode'];}_0x82745e['models']=_0x82745e[_0x22ac2b(0xdd)]['filter'](_0x42e2e7=>Object[_0x22ac2b(0xe2)](_0x42e2e7[_0x22ac2b(0xc4)])[_0x22ac2b(0xe1)]>0x0);}function a6_0x5950(){const _0x1f9d2f=['now','datasetCodes','trim','/*\x20rabetbase-model-registry:v2\x20*/','key','filter','profileName','includes','\x22\x20maps\x20to\x20table\x20\x22','pid','join','runtimeDomain','get','push','NOT-SET','name','tableName','flatMap','Model\x20alias\x20\x22','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','profiles','datasetCode','map','.tmp','model-runtime.ts','object','models','test','\x22\x20with\x20an\x20empty\x20result.\x20','147oQlmEK','length','keys','replace','values','models.generated.ts','\x22\x20maps\x20to\x20alias\x20\x22','\x22\x20and\x20\x22','30936PLvLmo','allowEmptyReplacement','defaultProfile','\x22\x20in\x20the\x20registry\x20but\x20\x22','every','lovrabet-model-registry/v1','365680pKkgYH','Table\x20\x22','78605wrqkJy','parse','slice','protocol','9thjvqI','496788PrJnFT','isArray','alias','129lgFhFu','\x22\x20in\x20profile\x20\x22','lovrabet-model-registry/v2','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','161093eeKcII','fromEntries','set','string','find','/*\x20rabetbase-model-registry:end\x20*/','Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','entries','\x22\x20maps\x20to\x20both\x20\x22','477256MQcbgy','value','6288ZYzrfz','appCode','indexOf','utf8'];a6_0x5950=function(){return _0x1f9d2f;};return a6_0x5950();}function removeUnboundProfiles(_0x491111){const _0x134471=a6_0x27ab91,_0x3fc97d=Object[_0x134471(0xbb)](_0x491111['profiles'])['filter'](([,_0x3c0bd1])=>_0x3c0bd1[_0x134471(0xc0)]===_0x134471(0xd1))['map'](([_0x47a441])=>_0x47a441);if(_0x3fc97d[_0x134471(0xe1)]===0x0)return;for(const _0xca665 of _0x3fc97d){delete _0x491111[_0x134471(0xd7)][_0xca665];for(const _0xac2bcb of _0x491111['models']){delete _0xac2bcb[_0x134471(0xc4)][_0xca665];}}_0x491111[_0x134471(0xdd)]=_0x491111['models'][_0x134471(0xc8)](_0x257292=>Object[_0x134471(0xe2)](_0x257292['datasetCodes'])[_0x134471(0xe1)]>0x0);}export function getProfileModels(_0x5539fa,_0x2ead72){const _0x392294=a6_0x27ab91;return _0x5539fa[_0x392294(0xdd)][_0x392294(0xd4)](_0x27ff91=>{const _0x1fe59e=_0x392294,_0x2623f4=_0x27ff91[_0x1fe59e(0xc4)][_0x2ead72];return _0x2623f4?[{'datasetCode':_0x2623f4,'tableName':_0x27ff91[_0x1fe59e(0xd3)],'name':_0x27ff91[_0x1fe59e(0xd2)],'alias':_0x27ff91[_0x1fe59e(0xf7)]}]:[];});}export function updateModelRegistry(_0x5c945e){const _0x3bd53d=a6_0x27ab91,_0xe3db5a=a6_0x1c6142[_0x3bd53d(0xcd)](_0x5c945e['outputDir'],MODEL_REGISTRY_FILE_NAME),_0x102bc0=existsSync(_0xe3db5a),_0x1edae9=readModelRegistry(_0xe3db5a);if(_0x102bc0&&!_0x1edae9)throw new Error(MODEL_REGISTRY_FILE_NAME+_0x3bd53d(0xfb));const _0x38e10b=_0x1edae9??emptyRegistry(_0x5c945e[_0x3bd53d(0xea)]);if(_0x5c945e['appCode']!=='NOT-SET')removeUnboundProfiles(_0x38e10b);const _0x43f694=_0x1edae9?getProfileModels(_0x1edae9,_0x5c945e[_0x3bd53d(0xc9)])[_0x3bd53d(0xe1)]:0x0;if(_0x43f694>0x0&&_0x5c945e['models'][_0x3bd53d(0xe1)]===0x0&&!_0x5c945e[_0x3bd53d(0xe9)])throw new Error('Refusing\x20to\x20replace\x20'+_0x43f694+'\x20model(s)\x20in\x20profile\x20\x22'+_0x5c945e['profileName']+_0x3bd53d(0xdf)+_0x3bd53d(0xb8));_0x38e10b[_0x3bd53d(0xea)]=_0x5c945e[_0x3bd53d(0xea)],_0x38e10b[_0x3bd53d(0xd7)][_0x5c945e[_0x3bd53d(0xc9)]]={'appCode':_0x5c945e[_0x3bd53d(0xc0)],'runtimeDomain':_0x5c945e[_0x3bd53d(0xce)]},mergeProfileModels(_0x38e10b,_0x5c945e[_0x3bd53d(0xc9)],_0x5c945e[_0x3bd53d(0xdd)]),mkdirSync(_0x5c945e['outputDir'],{'recursive':!![]});const _0x3f5315=_0xe3db5a+'.'+process[_0x3bd53d(0xcc)]+'.'+Date[_0x3bd53d(0xc3)]()+_0x3bd53d(0xda);try{writeFileSync(_0x3f5315,registrySource(_0x38e10b),{'encoding':_0x3bd53d(0xc2),'mode':0x1a4}),renameSync(_0x3f5315,_0xe3db5a);}catch(_0x4c31d8){try{unlinkSync(_0x3f5315);}catch{}throw _0x4c31d8;}return{'path':_0xe3db5a,'registry':_0x38e10b,'existed':_0x102bc0};}
1
+ const a6_0x563c69=a6_0x518d;(function(_0x161b4f,_0x2a1ff4){const _0x4df016=a6_0x518d,_0x124fbe=_0x161b4f();while(!![]){try{const _0x1212cf=parseInt(_0x4df016(0x1e4))/0x1*(-parseInt(_0x4df016(0x1e1))/0x2)+-parseInt(_0x4df016(0x1de))/0x3+parseInt(_0x4df016(0x1df))/0x4+parseInt(_0x4df016(0x1c8))/0x5*(parseInt(_0x4df016(0x1c3))/0x6)+-parseInt(_0x4df016(0x1e7))/0x7+-parseInt(_0x4df016(0x1c4))/0x8+parseInt(_0x4df016(0x1dc))/0x9*(parseInt(_0x4df016(0x1f3))/0xa);if(_0x1212cf===_0x2a1ff4)break;else _0x124fbe['push'](_0x124fbe['shift']());}catch(_0x4c176c){_0x124fbe['push'](_0x124fbe['shift']());}}}(a6_0x47df,0xb25d4));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x22aeea from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x563c69(0x1d8);export const MODEL_RUNTIME_FILE_NAME=a6_0x563c69(0x1b2);export const MODEL_REGISTRY_VERSION_MARKER=a6_0x563c69(0x1c9);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x563c69(0x1e2),REGISTRY_START=a6_0x563c69(0x1cc),REGISTRY_END='/*\x20rabetbase-model-registry:end\x20*/';function emptyRegistry(_0x44e20a){return{'defaultProfile':_0x44e20a,'profiles':{},'models':[]};}function extractRegistryJson(_0x32cfe1){const _0x4b804f=a6_0x563c69,_0x3f291a=_0x32cfe1[_0x4b804f(0x1f0)](REGISTRY_START),_0x10a7fb=_0x32cfe1[_0x4b804f(0x1f0)](REGISTRY_END);if(_0x3f291a<0x0||_0x10a7fb<=_0x3f291a)return undefined;return _0x32cfe1['slice'](_0x3f291a+REGISTRY_START[_0x4b804f(0x1be)],_0x10a7fb)['trim']()[_0x4b804f(0x1b6)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x4b804f(0x1b6)](/;$/,'');}function migrateLegacyRegistry(_0x55f8c2){const _0x4a5c00=a6_0x563c69,_0x1ac264=emptyRegistry(_0x55f8c2[_0x4a5c00(0x1d9)]);for(const [_0x53e92b,_0x4b9fb3]of Object[_0x4a5c00(0x1da)](_0x55f8c2[_0x4a5c00(0x1d4)])){_0x1ac264[_0x4a5c00(0x1d4)][_0x53e92b]={'appCode':_0x4b9fb3[_0x4a5c00(0x1bc)],'runtimeDomain':_0x4b9fb3[_0x4a5c00(0x1ce)]},mergeProfileModels(_0x1ac264,_0x53e92b,_0x4b9fb3[_0x4a5c00(0x1cd)]);}return _0x1ac264;}function a6_0x518d(_0x2c13fd,_0xd0eea4){_0x2c13fd=_0x2c13fd-0x1ac;const _0x47df45=a6_0x47df();let _0x518d14=_0x47df45[_0x2c13fd];return _0x518d14;}function generatedObjectLiteralToJson(_0x4adce0){const _0x59c1d4=a6_0x563c69;let _0x2226bf='',_0x12177d,_0x53b7d0=![],_0x352bcc;for(let _0x32f70c=0x0;_0x32f70c<_0x4adce0[_0x59c1d4(0x1be)];_0x32f70c++){const _0x59c2fd=_0x4adce0[_0x32f70c];if(_0x12177d){_0x2226bf+=_0x59c2fd;if(_0x53b7d0)_0x53b7d0=![];else{if(_0x59c2fd==='\x5c')_0x53b7d0=!![];else{if(_0x59c2fd===_0x12177d)_0x12177d=undefined;}}continue;}if(_0x59c2fd==='\x22'){_0x12177d=_0x59c2fd,_0x2226bf+=_0x59c2fd,_0x352bcc='value';continue;}if(_0x59c2fd===','){let _0x5ea6c1=_0x32f70c+0x1;while(/\s/['test'](_0x4adce0[_0x5ea6c1]??''))_0x5ea6c1++;if(_0x4adce0[_0x5ea6c1]==='}'||_0x4adce0[_0x5ea6c1]===']')continue;_0x2226bf+=_0x59c2fd,_0x352bcc=',';continue;}if(_0x59c2fd==='{'||_0x59c2fd==='['){_0x2226bf+=_0x59c2fd,_0x352bcc=_0x59c2fd;continue;}if(_0x59c2fd==='}'||_0x59c2fd===']'){_0x2226bf+=_0x59c2fd,_0x352bcc=_0x59c2fd;continue;}if((_0x352bcc==='{'||_0x352bcc===',')&&/[A-Za-z_$]/[_0x59c1d4(0x1d1)](_0x59c2fd)){let _0x3a5c0c=_0x32f70c+0x1;while(/[A-Za-z0-9_$]/[_0x59c1d4(0x1d1)](_0x4adce0[_0x3a5c0c]??''))_0x3a5c0c++;let _0x4c9ac4=_0x3a5c0c;while(/\s/['test'](_0x4adce0[_0x4c9ac4]??''))_0x4c9ac4++;if(_0x4adce0[_0x4c9ac4]===':'){_0x2226bf+=JSON[_0x59c1d4(0x1e9)](_0x4adce0[_0x59c1d4(0x1d0)](_0x32f70c,_0x3a5c0c)),_0x32f70c=_0x3a5c0c-0x1,_0x352bcc='key';continue;}}_0x2226bf+=_0x59c2fd;if(!/\s/['test'](_0x59c2fd)&&_0x59c2fd!==':')_0x352bcc='value';}return _0x2226bf;}function parseGeneratedRegistryJson(_0x391460){const _0x13624f=a6_0x563c69;try{return JSON[_0x13624f(0x1d2)](_0x391460);}catch{return JSON['parse'](generatedObjectLiteralToJson(_0x391460));}}function normalizeModelEntries(_0x190773,_0x27707a){const _0xa397f8=a6_0x563c69,_0x26205b=Object[_0xa397f8(0x1f4)](_0x190773),_0x143c28=[];for(const _0x42c672 of _0x27707a){if(!_0x42c672||typeof _0x42c672!==_0xa397f8(0x1ed)||Array['isArray'](_0x42c672))return undefined;const _0x394a51=_0x42c672;if(typeof _0x394a51[_0xa397f8(0x1b0)]!==_0xa397f8(0x1d6)||typeof _0x394a51['tableName']!==_0xa397f8(0x1d6)||typeof _0x394a51['name']!=='string')return undefined;let _0x47e84f;if(typeof _0x394a51[_0xa397f8(0x1eb)]===_0xa397f8(0x1d6)&&_0x394a51[_0xa397f8(0x1af)]===undefined)_0x47e84f=Object[_0xa397f8(0x1dd)](_0x26205b[_0xa397f8(0x1e0)](_0x8c3ab7=>[_0x8c3ab7,_0x394a51[_0xa397f8(0x1eb)]]));else{if(_0x394a51[_0xa397f8(0x1eb)]===undefined&&_0x394a51[_0xa397f8(0x1af)]&&typeof _0x394a51['datasetCodes']==='object'&&!Array[_0xa397f8(0x1ec)](_0x394a51[_0xa397f8(0x1af)])&&Object[_0xa397f8(0x1b9)](_0x394a51[_0xa397f8(0x1af)])[_0xa397f8(0x1bb)](_0x5159e0=>typeof _0x5159e0===_0xa397f8(0x1d6)))_0x47e84f={..._0x394a51[_0xa397f8(0x1af)]};else return undefined;}_0x143c28[_0xa397f8(0x1b4)]({'alias':_0x394a51['alias'],'tableName':_0x394a51['tableName'],'name':_0x394a51[_0xa397f8(0x1b5)],'datasetCodes':_0x47e84f});}return _0x143c28;}export function parseModelRegistry(_0x1c087d){const _0x5696fd=a6_0x563c69,_0x330aba=extractRegistryJson(_0x1c087d);if(!_0x330aba)return undefined;try{const _0x430e63=parseGeneratedRegistryJson(_0x330aba);if(typeof _0x430e63['defaultProfile']!==_0x5696fd(0x1d6)||!_0x430e63[_0x5696fd(0x1d4)]||typeof _0x430e63[_0x5696fd(0x1d4)]!=='object')return undefined;if(_0x430e63[_0x5696fd(0x1ee)]===_0x5696fd(0x1cb))return migrateLegacyRegistry(_0x430e63);if(!(_0x430e63[_0x5696fd(0x1ee)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x430e63[_0x5696fd(0x1ee)]===undefined&&_0x1c087d[_0x5696fd(0x1c2)](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x5696fd(0x1ec)](_0x430e63[_0x5696fd(0x1cd)]))return undefined;const _0x3777bf=_0x430e63['profiles'],_0x4264e5=normalizeModelEntries(_0x3777bf,_0x430e63['models']);if(!_0x4264e5)return undefined;return{'defaultProfile':_0x430e63['defaultProfile'],'profiles':_0x3777bf,'models':_0x4264e5};}catch{return undefined;}}export function readModelRegistry(_0x5d4c3d){const _0x3a1b0b=a6_0x563c69;if(!existsSync(_0x5d4c3d))return undefined;try{return parseModelRegistry(readFileSync(_0x5d4c3d,_0x3a1b0b(0x1f2)));}catch{return undefined;}}function a6_0x47df(){const _0x316361=['4179755NIDvkK','/*\x20rabetbase-model-registry:v2\x20*/','outputDir','lovrabet-model-registry/v1','/*\x20rabetbase-model-registry:start\x20*/','models','runtimeDomain','profileName','slice','test','parse','\x22\x20maps\x20to\x20table\x20\x22','profiles','tableName','string','\x20model(s)\x20in\x20profile\x20\x22','models.generated.ts','defaultProfile','entries','now','14738913xOLkOp','fromEntries','3114588EpybMT','1366072BLrbPV','map','34wNtriZ','lovrabet-model-registry/v2','Model\x20alias\x20\x22','33349ZwQLUQ','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','Refusing\x20to\x20replace\x20','8403941FyVosW','join','stringify','Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.','datasetCode','isArray','object','protocol','NOT-SET','indexOf','filter','utf8','20EBouZk','keys','/**\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','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','\x22\x20and\x20\x22','datasetCodes','alias','Table\x20\x22','model-runtime.ts','\x22\x20with\x20an\x20empty\x20result.\x20','push','name','replace','pid','set','values','flatMap','every','appCode','\x22\x20in\x20profile\x20\x22','length','\x22\x20maps\x20to\x20both\x20\x22','find','\x22\x20in\x20the\x20registry\x20but\x20\x22','includes','6gylKwQ','7332088EEViNp','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','get','.tmp'];a6_0x47df=function(){return _0x316361;};return a6_0x47df();}function registrySource(_0x1e6bd5){const _0x4c87e3=a6_0x563c69,_0x3573c1=Object[_0x4c87e3(0x1f4)](_0x1e6bd5[_0x4c87e3(0x1d4)]),_0x4f8226=_0x1e6bd5[_0x4c87e3(0x1cd)][_0x4c87e3(0x1e0)](_0x463cfa=>{const _0x1a582f=_0x4c87e3,_0x41e25b=_0x3573c1[_0x1a582f(0x1e0)](_0x1efe66=>_0x463cfa[_0x1a582f(0x1af)][_0x1efe66]),_0x3030e1=_0x41e25b[0x0],_0x3e7f91=_0x3030e1!==undefined&&_0x41e25b['every'](_0x35eca0=>_0x35eca0===_0x3030e1),_0x3ec0c5={'alias':_0x463cfa[_0x1a582f(0x1b0)],'tableName':_0x463cfa[_0x1a582f(0x1d5)],'name':_0x463cfa[_0x1a582f(0x1b5)]};return _0x3e7f91?{..._0x3ec0c5,'datasetCode':_0x3030e1}:{..._0x3ec0c5,'datasetCodes':_0x463cfa[_0x1a582f(0x1af)]};}),_0x530bee=JSON[_0x4c87e3(0x1e9)]({'defaultProfile':_0x1e6bd5[_0x4c87e3(0x1d9)],'profiles':_0x1e6bd5[_0x4c87e3(0x1d4)],'models':_0x4f8226},null,0x2)['split']('\x0a')[_0x4c87e3(0x1e0)](_0x4791e0=>'\x20\x20'+_0x4791e0)[_0x4c87e3(0x1e8)]('\x0a');return _0x4c87e3(0x1ac)+MODEL_REGISTRY_VERSION_MARKER+_0x4c87e3(0x1ad)+REGISTRY_START+'\x0a'+_0x530bee+_0x4c87e3(0x1e5)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x33bd4e,_0x4af7eb,_0x36baf0){const _0x53d4ac=a6_0x563c69,_0x3f07fc=_0x36baf0[_0x53d4ac(0x1e0)](_0x344a8f=>({..._0x344a8f,'alias':_0x344a8f[_0x53d4ac(0x1b0)]||_0x344a8f[_0x53d4ac(0x1d5)]})),_0x36da73=new Map(),_0x5209e1=new Map();for(const _0x149329 of _0x3f07fc){const _0x1f67f1=_0x36da73[_0x53d4ac(0x1c6)](_0x149329['alias']);if(_0x1f67f1&&_0x1f67f1!==_0x149329[_0x53d4ac(0x1d5)])throw new Error(_0x53d4ac(0x1e3)+_0x149329[_0x53d4ac(0x1b0)]+_0x53d4ac(0x1bf)+_0x1f67f1+_0x53d4ac(0x1ae)+_0x149329[_0x53d4ac(0x1d5)]+_0x53d4ac(0x1bd)+_0x4af7eb+'\x22.');const _0x465ca4=_0x5209e1[_0x53d4ac(0x1c6)](_0x149329[_0x53d4ac(0x1d5)]);if(_0x465ca4&&_0x465ca4!==_0x149329[_0x53d4ac(0x1b0)])throw new Error('Table\x20\x22'+_0x149329[_0x53d4ac(0x1d5)]+'\x22\x20maps\x20to\x20both\x20aliases\x20\x22'+_0x465ca4+'\x22\x20and\x20\x22'+_0x149329[_0x53d4ac(0x1b0)]+_0x53d4ac(0x1bd)+_0x4af7eb+'\x22.');_0x36da73[_0x53d4ac(0x1b8)](_0x149329[_0x53d4ac(0x1b0)],_0x149329[_0x53d4ac(0x1d5)]),_0x5209e1[_0x53d4ac(0x1b8)](_0x149329[_0x53d4ac(0x1d5)],_0x149329[_0x53d4ac(0x1b0)]);const _0x4171b=_0x33bd4e[_0x53d4ac(0x1cd)][_0x53d4ac(0x1c0)](_0x144a67=>_0x144a67['alias']===_0x149329[_0x53d4ac(0x1b0)]);if(_0x4171b&&_0x4171b['tableName']!==_0x149329[_0x53d4ac(0x1d5)])throw new Error('Model\x20alias\x20\x22'+_0x149329[_0x53d4ac(0x1b0)]+_0x53d4ac(0x1d3)+_0x4171b['tableName']+_0x53d4ac(0x1c1)+_0x149329['tableName']+_0x53d4ac(0x1bd)+_0x4af7eb+'\x22.');const _0xc43478=_0x33bd4e[_0x53d4ac(0x1cd)]['find'](_0x96f6fb=>_0x96f6fb[_0x53d4ac(0x1d5)]===_0x149329['tableName']);if(_0xc43478&&_0xc43478['alias']!==_0x149329[_0x53d4ac(0x1b0)])throw new Error(_0x53d4ac(0x1b1)+_0x149329[_0x53d4ac(0x1d5)]+'\x22\x20maps\x20to\x20alias\x20\x22'+_0xc43478[_0x53d4ac(0x1b0)]+_0x53d4ac(0x1c1)+_0x149329[_0x53d4ac(0x1b0)]+_0x53d4ac(0x1bd)+_0x4af7eb+'\x22.');}for(const _0x4fb8be of _0x33bd4e[_0x53d4ac(0x1cd)]){delete _0x4fb8be[_0x53d4ac(0x1af)][_0x4af7eb];}for(const _0xd9300c of _0x3f07fc){let _0x4e4a3d=_0x33bd4e[_0x53d4ac(0x1cd)][_0x53d4ac(0x1c0)](_0xe36038=>_0xe36038['alias']===_0xd9300c[_0x53d4ac(0x1b0)]);!_0x4e4a3d&&(_0x4e4a3d={'alias':_0xd9300c[_0x53d4ac(0x1b0)],'tableName':_0xd9300c[_0x53d4ac(0x1d5)],'name':_0xd9300c[_0x53d4ac(0x1b5)],'datasetCodes':{}},_0x33bd4e[_0x53d4ac(0x1cd)]['push'](_0x4e4a3d)),(_0x4af7eb===_0x33bd4e['defaultProfile']||!_0x4e4a3d[_0x53d4ac(0x1af)][_0x33bd4e[_0x53d4ac(0x1d9)]])&&(_0x4e4a3d['alias']=_0xd9300c[_0x53d4ac(0x1b0)],_0x4e4a3d[_0x53d4ac(0x1d5)]=_0xd9300c[_0x53d4ac(0x1d5)],_0x4e4a3d['name']=_0xd9300c[_0x53d4ac(0x1b5)]),_0x4e4a3d['datasetCodes'][_0x4af7eb]=_0xd9300c[_0x53d4ac(0x1eb)];}_0x33bd4e['models']=_0x33bd4e[_0x53d4ac(0x1cd)][_0x53d4ac(0x1f1)](_0x20553d=>Object[_0x53d4ac(0x1f4)](_0x20553d['datasetCodes'])[_0x53d4ac(0x1be)]>0x0);}function removeUnboundProfiles(_0x11e138){const _0x16a854=a6_0x563c69,_0x2e8197=Object[_0x16a854(0x1da)](_0x11e138[_0x16a854(0x1d4)])[_0x16a854(0x1f1)](([,_0x560b3b])=>_0x560b3b['appCode']===_0x16a854(0x1ef))[_0x16a854(0x1e0)](([_0x2ae7e6])=>_0x2ae7e6);if(_0x2e8197[_0x16a854(0x1be)]===0x0)return;for(const _0x215b35 of _0x2e8197){delete _0x11e138[_0x16a854(0x1d4)][_0x215b35];for(const _0x47601d of _0x11e138[_0x16a854(0x1cd)]){delete _0x47601d['datasetCodes'][_0x215b35];}}_0x11e138[_0x16a854(0x1cd)]=_0x11e138[_0x16a854(0x1cd)][_0x16a854(0x1f1)](_0x4d5204=>Object[_0x16a854(0x1f4)](_0x4d5204['datasetCodes'])[_0x16a854(0x1be)]>0x0);}export function getProfileModels(_0x30b959,_0x358059){const _0x1b155b=a6_0x563c69;return _0x30b959['models'][_0x1b155b(0x1ba)](_0x74da91=>{const _0x3600c5=_0x1b155b,_0x35fd86=_0x74da91[_0x3600c5(0x1af)][_0x358059];return _0x35fd86?[{'datasetCode':_0x35fd86,'tableName':_0x74da91[_0x3600c5(0x1d5)],'name':_0x74da91[_0x3600c5(0x1b5)],'alias':_0x74da91[_0x3600c5(0x1b0)]}]:[];});}export function updateModelRegistry(_0x3b1649){const _0x3bece2=a6_0x563c69,_0xe2b8cb=a6_0x22aeea['join'](_0x3b1649[_0x3bece2(0x1ca)],MODEL_REGISTRY_FILE_NAME),_0x4c2970=existsSync(_0xe2b8cb),_0xcdb4bf=readModelRegistry(_0xe2b8cb);if(_0x4c2970&&!_0xcdb4bf)throw new Error(MODEL_REGISTRY_FILE_NAME+_0x3bece2(0x1c5));const _0x1a159a=_0xcdb4bf??emptyRegistry(_0x3b1649[_0x3bece2(0x1d9)]);if(_0x3b1649[_0x3bece2(0x1bc)]!=='NOT-SET')removeUnboundProfiles(_0x1a159a);const _0xd9a8bb=_0xcdb4bf?getProfileModels(_0xcdb4bf,_0x3b1649[_0x3bece2(0x1cf)])[_0x3bece2(0x1be)]:0x0;if(_0xd9a8bb>0x0&&_0x3b1649[_0x3bece2(0x1cd)][_0x3bece2(0x1be)]===0x0&&!_0x3b1649['allowEmptyReplacement'])throw new Error(_0x3bece2(0x1e6)+_0xd9a8bb+_0x3bece2(0x1d7)+_0x3b1649['profileName']+_0x3bece2(0x1b3)+_0x3bece2(0x1ea));_0x1a159a[_0x3bece2(0x1d9)]=_0x3b1649[_0x3bece2(0x1d9)],_0x1a159a[_0x3bece2(0x1d4)][_0x3b1649['profileName']]={'appCode':_0x3b1649[_0x3bece2(0x1bc)],'runtimeDomain':_0x3b1649[_0x3bece2(0x1ce)]},mergeProfileModels(_0x1a159a,_0x3b1649['profileName'],_0x3b1649[_0x3bece2(0x1cd)]),mkdirSync(_0x3b1649[_0x3bece2(0x1ca)],{'recursive':!![]});const _0x32a5e0=_0xe2b8cb+'.'+process[_0x3bece2(0x1b7)]+'.'+Date[_0x3bece2(0x1db)]()+_0x3bece2(0x1c7);try{writeFileSync(_0x32a5e0,registrySource(_0x1a159a),{'encoding':_0x3bece2(0x1f2),'mode':0x1a4}),renameSync(_0x32a5e0,_0xe2b8cb);}catch(_0x112c6a){try{unlinkSync(_0x32a5e0);}catch{}throw _0x112c6a;}return{'path':_0xe2b8cb,'registry':_0x1a159a,'existed':_0x4c2970};}
@@ -1 +1 @@
1
- (function(_0x36d9d7,_0x2c5182){const _0x19958b=a7_0x2983,_0x83228a=_0x36d9d7();while(!![]){try{const _0x2ce122=parseInt(_0x19958b(0x192))/0x1+-parseInt(_0x19958b(0x197))/0x2+-parseInt(_0x19958b(0x186))/0x3+parseInt(_0x19958b(0x18c))/0x4*(-parseInt(_0x19958b(0x198))/0x5)+parseInt(_0x19958b(0x18e))/0x6*(-parseInt(_0x19958b(0x191))/0x7)+-parseInt(_0x19958b(0x184))/0x8*(parseInt(_0x19958b(0x187))/0x9)+parseInt(_0x19958b(0x188))/0xa;if(_0x2ce122===_0x2c5182)break;else _0x83228a['push'](_0x83228a['shift']());}catch(_0x416688){_0x83228a['push'](_0x83228a['shift']());}}}(a7_0x1feb,0x27f3f));import{readFileSync}from'node:fs';import a7_0x5bd9da from'node:path';import{fileURLToPath}from'node:url';import a7_0x418748 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function a7_0x1feb(){const _0x3646be=['relative','12796hSNEgO','96027WWjDue','resolve','{ProjectRoutingImport}','format','typescript','91826LQlbhb','56800opKsxH','join','startsWith','183576bRxdlH','../../templates/generate-api','84465eRQOar','45YmYilY','4046230unkdqE','replace','model-runtime.ts.tpl','dirname','20VWBjJP','utf8','300wTICIY','profile-client.ts.tpl'];a7_0x1feb=function(){return _0x3646be;};return a7_0x1feb();}function relativeImport(_0x5cf9f4,_0x86756e){const _0x20dcab=a7_0x2983;let _0x378c59=a7_0x5bd9da[_0x20dcab(0x190)](_0x5cf9f4,_0x86756e)['replace'](/\\/g,'/');if(!_0x378c59[_0x20dcab(0x183)]('.'))_0x378c59='./'+_0x378c59;return _0x378c59;}function a7_0x2983(_0x6fa1c4,_0x31f10e){_0x6fa1c4=_0x6fa1c4-0x182;const _0x1feb0e=a7_0x1feb();let _0x298374=_0x1feb0e[_0x6fa1c4];return _0x298374;}export async function renderModelRegistryScaffold(_0x10ac69,_0x53b382=process['cwd']()){const _0x272f17=a7_0x2983,_0xa15883=fileURLToPath(import.meta.url),_0x571fad=a7_0x5bd9da[_0x272f17(0x193)](a7_0x5bd9da[_0x272f17(0x18b)](_0xa15883),_0x272f17(0x185)),_0x31e974=relativeImport(a7_0x5bd9da['resolve'](_0x10ac69),a7_0x5bd9da['resolve'](_0x53b382,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x10592d=readFileSync(a7_0x5bd9da[_0x272f17(0x182)](_0x571fad,'profile-api.ts.tpl'),'utf8')[_0x272f17(0x189)](_0x272f17(0x194),_0x31e974),[_0x41a124,_0x310d65,_0x519e88]=await Promise['all']([a7_0x418748[_0x272f17(0x195)](_0x10592d,{'parser':_0x272f17(0x196)}),a7_0x418748[_0x272f17(0x195)](readFileSync(a7_0x5bd9da[_0x272f17(0x182)](_0x571fad,_0x272f17(0x18f)),_0x272f17(0x18d)),{'parser':'typescript'}),a7_0x418748['format'](readFileSync(a7_0x5bd9da[_0x272f17(0x182)](_0x571fad,_0x272f17(0x18a)),_0x272f17(0x18d)),{'parser':_0x272f17(0x196)})]);return{'api':_0x41a124,'client':_0x310d65,'modelRuntime':_0x519e88};}
1
+ (function(_0x2adfeb,_0x24a9dd){const _0x373a4a=a7_0x4222,_0x3ed63a=_0x2adfeb();while(!![]){try{const _0x299ddf=parseInt(_0x373a4a(0xf8))/0x1*(parseInt(_0x373a4a(0xfa))/0x2)+parseInt(_0x373a4a(0xf3))/0x3+-parseInt(_0x373a4a(0xef))/0x4+parseInt(_0x373a4a(0xf5))/0x5*(-parseInt(_0x373a4a(0x101))/0x6)+-parseInt(_0x373a4a(0xf7))/0x7*(-parseInt(_0x373a4a(0xed))/0x8)+parseInt(_0x373a4a(0xfb))/0x9+parseInt(_0x373a4a(0xf1))/0xa*(parseInt(_0x373a4a(0xee))/0xb);if(_0x299ddf===_0x24a9dd)break;else _0x3ed63a['push'](_0x3ed63a['shift']());}catch(_0x4c619f){_0x3ed63a['push'](_0x3ed63a['shift']());}}}(a7_0x42cc,0x2cf2c));import{readFileSync}from'node:fs';import a7_0x24ccd8 from'node:path';function a7_0x4222(_0x4c1258,_0x712595){_0x4c1258=_0x4c1258-0xec;const _0x42cc69=a7_0x42cc();let _0x422260=_0x42cc69[_0x4c1258];return _0x422260;}import{fileURLToPath}from'node:url';import a7_0x4f92b4 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x142e4c,_0x5e61e6){const _0x5904e4=a7_0x4222;let _0x3ecd89=a7_0x24ccd8[_0x5904e4(0xff)](_0x142e4c,_0x5e61e6)[_0x5904e4(0xf4)](/\\/g,'/');if(!_0x3ecd89[_0x5904e4(0xec)]('.'))_0x3ecd89='./'+_0x3ecd89;return _0x3ecd89;}function a7_0x42cc(){const _0x34ac76=['join','1701798JUSnMP','model-runtime.ts.tpl','format','startsWith','90224eJIicY','171897QyVpfE','1111484zkdDls','{ProjectRoutingImport}','70oiGQyk','typescript','210516jDqFMz','replace','5ARiavq','dirname','119EvGqaj','139jLUzPn','utf8','1334IsjyBn','2534508pNrqtS','all','resolve','profile-client.ts.tpl','relative'];a7_0x42cc=function(){return _0x34ac76;};return a7_0x42cc();}export async function renderModelRegistryScaffold(_0x5e69b8,_0x5b349c=process['cwd']()){const _0xe6b2cc=a7_0x4222,_0x555d14=fileURLToPath(import.meta.url),_0x3cccaf=a7_0x24ccd8[_0xe6b2cc(0xfd)](a7_0x24ccd8[_0xe6b2cc(0xf6)](_0x555d14),'../../templates/generate-api'),_0x11845d=relativeImport(a7_0x24ccd8[_0xe6b2cc(0xfd)](_0x5e69b8),a7_0x24ccd8[_0xe6b2cc(0xfd)](_0x5b349c,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x500257=readFileSync(a7_0x24ccd8[_0xe6b2cc(0x100)](_0x3cccaf,'profile-api.ts.tpl'),'utf8')[_0xe6b2cc(0xf4)](_0xe6b2cc(0xf0),_0x11845d),[_0x50a33a,_0x1a4ff0,_0x31479b]=await Promise[_0xe6b2cc(0xfc)]([a7_0x4f92b4[_0xe6b2cc(0x103)](_0x500257,{'parser':_0xe6b2cc(0xf2)}),a7_0x4f92b4['format'](readFileSync(a7_0x24ccd8[_0xe6b2cc(0x100)](_0x3cccaf,_0xe6b2cc(0xfe)),_0xe6b2cc(0xf9)),{'parser':_0xe6b2cc(0xf2)}),a7_0x4f92b4[_0xe6b2cc(0x103)](readFileSync(a7_0x24ccd8[_0xe6b2cc(0x100)](_0x3cccaf,_0xe6b2cc(0x102)),_0xe6b2cc(0xf9)),{'parser':_0xe6b2cc(0xf2)})]);return{'api':_0x50a33a,'client':_0x1a4ff0,'modelRuntime':_0x31479b};}
@@ -1 +1 @@
1
- (function(_0x5a05f2,_0x512f43){const _0x56c952=a8_0x348e,_0x136f78=_0x5a05f2();while(!![]){try{const _0x6662a7=-parseInt(_0x56c952(0x1c1))/0x1*(parseInt(_0x56c952(0x1c9))/0x2)+-parseInt(_0x56c952(0x1d8))/0x3+parseInt(_0x56c952(0x1db))/0x4*(parseInt(_0x56c952(0x1dd))/0x5)+-parseInt(_0x56c952(0x1d6))/0x6+parseInt(_0x56c952(0x1c8))/0x7+parseInt(_0x56c952(0x1c4))/0x8+parseInt(_0x56c952(0x1d0))/0x9*(parseInt(_0x56c952(0x1ce))/0xa);if(_0x6662a7===_0x512f43)break;else _0x136f78['push'](_0x136f78['shift']());}catch(_0x1c398e){_0x136f78['push'](_0x136f78['shift']());}}}(a8_0x1691,0xaeec7));function a8_0x348e(_0x5064bd,_0x255ed5){_0x5064bd=_0x5064bd-0x1c1;const _0x16917a=a8_0x1691();let _0x348e37=_0x16917a[_0x5064bd];return _0x348e37;}import{existsSync}from'node:fs';import a8_0x644046 from'node:path';import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';function a8_0x1691(){const _0x3ec2d9=['appCode','Run\x20`','`\x20first.','defaultProfile','8121066oZfAET','apiDir','422439CklRpi','profiles','AppCode\x20\x22','83108UrIxyG','join','10FeYxMn','validation','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','\x20api\x20pull\x20--app\x20','730126Agnwnm','appcode','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','5465368qeWjsQ','map','\x22\x20is\x20missing\x20from\x20','resolve','3993192shDMsN','2niYDfl','entries','defaultApp','Model\x20profile\x20\x22','cwd','140OTGVeK','-api.ts','1057986zydjyq','length'];a8_0x1691=function(){return _0x3ec2d9;};return a8_0x1691();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x44243d,_0x434148,_0x29f1a9){const _0x54ef38=a8_0x348e,_0xa3f9d4=a8_0x644046[_0x54ef38(0x1c7)](process[_0x54ef38(0x1cd)](),_0x44243d),_0x1783ea=a8_0x644046[_0x54ef38(0x1c7)](_0xa3f9d4,'api.ts'),_0x37dabc=a8_0x644046[_0x54ef38(0x1c7)](_0xa3f9d4,MODEL_REGISTRY_FILE_NAME),_0xfa29d=readModelRegistry(_0x37dabc);if(_0xfa29d){const _0xef4e31=_0x434148?Object[_0x54ef38(0x1ca)](_0xfa29d['profiles'])['filter'](([,_0x5b2a78])=>_0x5b2a78[_0x54ef38(0x1d2)]===_0x434148):[];if(_0x29f1a9){if(_0xfa29d[_0x54ef38(0x1d9)][_0x29f1a9])return{'filePath':_0x37dabc,'profileName':_0x29f1a9};if(_0xef4e31[_0x54ef38(0x1d1)]>0x0)throw CliErrors[_0x54ef38(0x1de)](_0x54ef38(0x1cc)+_0x29f1a9+_0x54ef38(0x1c6)+MODEL_REGISTRY_FILE_NAME+'.',_0x54ef38(0x1d3)+CLI_BIN_NAME+_0x54ef38(0x1e0)+_0x29f1a9+_0x54ef38(0x1d4));}else{if(_0xef4e31[_0x54ef38(0x1d1)]===0x1)return{'filePath':_0x37dabc,'profileName':_0xef4e31[0x0][0x0]};if(_0xef4e31[_0x54ef38(0x1d1)]>0x1)throw new Error(_0x54ef38(0x1da)+_0x434148+_0x54ef38(0x1df)+_0xef4e31[_0x54ef38(0x1c5)](([_0x40115c])=>_0x40115c)[_0x54ef38(0x1dc)](',\x20')+'.\x20'+_0x54ef38(0x1c3));if(_0xfa29d['profiles'][_0xfa29d['defaultProfile']]&&!_0x434148)return{'filePath':_0x37dabc,'profileName':_0xfa29d[_0x54ef38(0x1d5)]};}}if(!_0x434148&&!_0x29f1a9)return{'filePath':_0x1783ea};const _0x56e9c5=readRawConfig(),_0x2d0443=_0x56e9c5['apps']&&typeof _0x56e9c5['apps']==='object'?_0x56e9c5['apps']:{},_0x56dbee=_0x29f1a9&&_0x2d0443[_0x29f1a9]?[_0x29f1a9,_0x2d0443[_0x29f1a9]]:Object[_0x54ef38(0x1ca)](_0x2d0443)['find'](([,_0x52f6b4])=>_0x52f6b4?.[_0x54ef38(0x1c2)]===_0x434148);if(!_0x56dbee)return{'filePath':_0x1783ea};const [_0x3b328d,_0x49a607]=_0x56dbee,_0x4a748b=typeof _0x56e9c5['defaultApp']==='string'?_0x56e9c5[_0x54ef38(0x1cb)]:undefined;if(_0x49a607?.[_0x54ef38(0x1d7)])return{'filePath':_0x1783ea};if(_0x4a748b&&_0x3b328d!==_0x4a748b){const _0x57ca77=a8_0x644046[_0x54ef38(0x1c7)](_0xa3f9d4,_0x3b328d+_0x54ef38(0x1cf));if(existsSync(_0x57ca77))return{'filePath':_0x57ca77};}return{'filePath':_0x1783ea};}
1
+ (function(_0x4e211a,_0x2117ec){const _0x4ab2ee=a8_0x3f0b,_0x152bf2=_0x4e211a();while(!![]){try{const _0x2ad6dc=-parseInt(_0x4ab2ee(0xd9))/0x1*(parseInt(_0x4ab2ee(0xf0))/0x2)+-parseInt(_0x4ab2ee(0xed))/0x3*(parseInt(_0x4ab2ee(0xde))/0x4)+parseInt(_0x4ab2ee(0xe1))/0x5+-parseInt(_0x4ab2ee(0xf6))/0x6*(parseInt(_0x4ab2ee(0xe0))/0x7)+-parseInt(_0x4ab2ee(0xe2))/0x8+parseInt(_0x4ab2ee(0xf2))/0x9+parseInt(_0x4ab2ee(0xe9))/0xa;if(_0x2ad6dc===_0x2117ec)break;else _0x152bf2['push'](_0x152bf2['shift']());}catch(_0x5dd5f0){_0x152bf2['push'](_0x152bf2['shift']());}}}(a8_0x56ed,0x3cfaa));import{existsSync}from'node:fs';import a8_0x1b7bac from'node:path';import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';function a8_0x3f0b(_0x349860,_0x39d0b1){_0x349860=_0x349860-0xd9;const _0x56ed24=a8_0x56ed();let _0x3f0b7d=_0x56ed24[_0x349860];return _0x3f0b7d;}function a8_0x56ed(){const _0x14a3de=['profiles','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','object','4GWIvNh','resolve','5873mOFBij','523135rNzIDv','1450176kdsGeY','AppCode\x20\x22','filter','apiDir','-api.ts','length','Model\x20profile\x20\x22','5541380lQSxlz','validation','string','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','755847yYmbUT','entries','apps','55634ejULhT','appCode','3894309hJNHKj','api.ts','`\x20first.','map','534qFyHMc','join','12sliQzn','defaultApp'];a8_0x56ed=function(){return _0x14a3de;};return a8_0x56ed();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x5d9726,_0x1be4aa,_0x321ad7){const _0x3b5e9c=a8_0x3f0b,_0x3eb1c9=a8_0x1b7bac['resolve'](process['cwd'](),_0x5d9726),_0x45b5f9=a8_0x1b7bac[_0x3b5e9c(0xdf)](_0x3eb1c9,_0x3b5e9c(0xf3)),_0x5256a6=a8_0x1b7bac[_0x3b5e9c(0xdf)](_0x3eb1c9,MODEL_REGISTRY_FILE_NAME),_0x318987=readModelRegistry(_0x5256a6);if(_0x318987){const _0x20fa66=_0x1be4aa?Object[_0x3b5e9c(0xee)](_0x318987[_0x3b5e9c(0xdb)])[_0x3b5e9c(0xe4)](([,_0x47fec9])=>_0x47fec9[_0x3b5e9c(0xf1)]===_0x1be4aa):[];if(_0x321ad7){if(_0x318987[_0x3b5e9c(0xdb)][_0x321ad7])return{'filePath':_0x5256a6,'profileName':_0x321ad7};if(_0x20fa66['length']>0x0)throw CliErrors[_0x3b5e9c(0xea)](_0x3b5e9c(0xe8)+_0x321ad7+'\x22\x20is\x20missing\x20from\x20'+MODEL_REGISTRY_FILE_NAME+'.','Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull\x20--app\x20'+_0x321ad7+_0x3b5e9c(0xf4));}else{if(_0x20fa66[_0x3b5e9c(0xe7)]===0x1)return{'filePath':_0x5256a6,'profileName':_0x20fa66[0x0][0x0]};if(_0x20fa66['length']>0x1)throw new Error(_0x3b5e9c(0xe3)+_0x1be4aa+_0x3b5e9c(0xec)+_0x20fa66[_0x3b5e9c(0xf5)](([_0x2bd279])=>_0x2bd279)[_0x3b5e9c(0xf7)](',\x20')+'.\x20'+_0x3b5e9c(0xdc));if(_0x318987[_0x3b5e9c(0xdb)][_0x318987['defaultProfile']]&&!_0x1be4aa)return{'filePath':_0x5256a6,'profileName':_0x318987['defaultProfile']};}}if(!_0x1be4aa&&!_0x321ad7)return{'filePath':_0x45b5f9};const _0x5b2e1d=readRawConfig(),_0x9ec5d4=_0x5b2e1d['apps']&&typeof _0x5b2e1d[_0x3b5e9c(0xef)]===_0x3b5e9c(0xdd)?_0x5b2e1d[_0x3b5e9c(0xef)]:{},_0x3e9c21=_0x321ad7&&_0x9ec5d4[_0x321ad7]?[_0x321ad7,_0x9ec5d4[_0x321ad7]]:Object['entries'](_0x9ec5d4)['find'](([,_0xaeed4a])=>_0xaeed4a?.['appcode']===_0x1be4aa);if(!_0x3e9c21)return{'filePath':_0x45b5f9};const [_0x30a893,_0x1c7a77]=_0x3e9c21,_0x5eedb5=typeof _0x5b2e1d[_0x3b5e9c(0xda)]===_0x3b5e9c(0xeb)?_0x5b2e1d['defaultApp']:undefined;if(_0x1c7a77?.[_0x3b5e9c(0xe5)])return{'filePath':_0x45b5f9};if(_0x5eedb5&&_0x30a893!==_0x5eedb5){const _0x3dbfab=a8_0x1b7bac[_0x3b5e9c(0xdf)](_0x3eb1c9,_0x30a893+_0x3b5e9c(0xe6));if(existsSync(_0x3dbfab))return{'filePath':_0x3dbfab};}return{'filePath':_0x45b5f9};}
@@ -1 +1 @@
1
- (function(_0x5e96c5,_0x331ad7){const _0x56acac=a9_0x3c66,_0x544a7b=_0x5e96c5();while(!![]){try{const _0x2f96fa=-parseInt(_0x56acac(0x1b9))/0x1+parseInt(_0x56acac(0x1cb))/0x2+-parseInt(_0x56acac(0x1c1))/0x3+parseInt(_0x56acac(0x1bb))/0x4*(parseInt(_0x56acac(0x1c7))/0x5)+parseInt(_0x56acac(0x1ca))/0x6*(parseInt(_0x56acac(0x1bf))/0x7)+-parseInt(_0x56acac(0x1c6))/0x8+-parseInt(_0x56acac(0x1be))/0x9;if(_0x2f96fa===_0x331ad7)break;else _0x544a7b['push'](_0x544a7b['shift']());}catch(_0xd0f668){_0x544a7b['push'](_0x544a7b['shift']());}}}(a9_0x4fc5,0x1e1b3));import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';function a9_0x3c66(_0x4e1b2a,_0x164dec){_0x4e1b2a=_0x4e1b2a-0x1b8;const _0x4fc5de=a9_0x4fc5();let _0x3c66dd=_0x4fc5de[_0x4e1b2a];return _0x3c66dd;}import a9_0x5b7f13 from'ora';function a9_0x4fc5(){const _0x214645=['212408duYrcz','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','29145VkjXTd','autoYes','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','stop','validation','203080lVfttj','5zTIZTo','*\x20Login\x20successful!','nonInteractive','42QsgRWA','98372zkWjcN','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','212218juClkh','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','953164tEbPpM','!\x20Login\x20failed.','log','1163268mflQmb'];a9_0x4fc5=function(){return _0x214645;};return a9_0x4fc5();}export async function runAuthServer(_0x31bf43){const _0x786a7d=a9_0x3c66,_0x2c2cad=await getIsSessionValid();if(_0x2c2cad){console[_0x786a7d(0x1bd)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x31bf43?.[_0x786a7d(0x1c9)]&&!_0x31bf43['autoYes'])throw CliErrors[_0x786a7d(0x1c5)](_0x786a7d(0x1c0),'Run\x20`'+CLI_BIN_NAME+_0x786a7d(0x1ba));const _0x4387da=_0x31bf43?.[_0x786a7d(0x1c2)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x4387da)return;if(_0x31bf43?.[_0x786a7d(0x1c9)]){console[_0x786a7d(0x1bd)](_0x786a7d(0x1c3));const _0x4b2941=await authServer({'silent':![],'openBrowser':![]});_0x4b2941?console['log'](_0x786a7d(0x1c8)):console['log'](_0x786a7d(0x1bc));return;}const _0x25e9bb=a9_0x5b7f13(_0x786a7d(0x1b8))['start'](),_0x422fe9=await authServer({'silent':!![],'openBrowser':!![]});_0x25e9bb[_0x786a7d(0x1c4)](),_0x422fe9?console['log'](_0x786a7d(0x1c8)):console[_0x786a7d(0x1bd)](_0x786a7d(0x1bc));}
1
+ (function(_0x4a3c60,_0xd1c02d){const _0x1b5a30=a9_0x41da,_0x454c57=_0x4a3c60();while(!![]){try{const _0x291fc6=-parseInt(_0x1b5a30(0xd4))/0x1+-parseInt(_0x1b5a30(0xd8))/0x2+-parseInt(_0x1b5a30(0xdd))/0x3+-parseInt(_0x1b5a30(0xe1))/0x4*(-parseInt(_0x1b5a30(0xda))/0x5)+-parseInt(_0x1b5a30(0xd1))/0x6*(-parseInt(_0x1b5a30(0xd7))/0x7)+-parseInt(_0x1b5a30(0xd9))/0x8+parseInt(_0x1b5a30(0xd5))/0x9*(parseInt(_0x1b5a30(0xe0))/0xa);if(_0x291fc6===_0xd1c02d)break;else _0x454c57['push'](_0x454c57['shift']());}catch(_0x220cc9){_0x454c57['push'](_0x454c57['shift']());}}}(a9_0x1567,0x9c3d1));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_0x1567(){const _0x1b663a=['507148RCHlqG','log','3250326ExcIbt','start','*\x20Login\x20successful!','894638ZUSHnV','18498159nLBDRt','nonInteractive','7AqAUxD','2271204oTbZaE','3115448oLgWYD','45SInXPt','autoYes','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','2035593AzmXcC','!\x20Login\x20failed.','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','10pMCvDJ'];a9_0x1567=function(){return _0x1b663a;};return a9_0x1567();}function a9_0x41da(_0x38405b,_0x1e2df3){_0x38405b=_0x38405b-0xd1;const _0x15674e=a9_0x1567();let _0x41daa4=_0x15674e[_0x38405b];return _0x41daa4;}import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x6a809a from'ora';export async function runAuthServer(_0x3f4961){const _0x2c35f2=a9_0x41da,_0x35e618=await getIsSessionValid();if(_0x35e618){console[_0x2c35f2(0xe2)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x3f4961?.[_0x2c35f2(0xd6)]&&!_0x3f4961[_0x2c35f2(0xdb)])throw CliErrors['validation']('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','Run\x20`'+CLI_BIN_NAME+_0x2c35f2(0xdf));const _0x2a0e5c=_0x3f4961?.[_0x2c35f2(0xdb)]?!![]:await confirm({'message':'No\x20valid\x20session.\x20Login\x20now?','default':!![]});if(!_0x2a0e5c)return;if(_0x3f4961?.[_0x2c35f2(0xd6)]){console[_0x2c35f2(0xe2)](_0x2c35f2(0xdc));const _0x4daca3=await authServer({'silent':![],'openBrowser':![]});_0x4daca3?console[_0x2c35f2(0xe2)]('*\x20Login\x20successful!'):console['log'](_0x2c35f2(0xde));return;}const _0x300b59=a9_0x6a809a('Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.')[_0x2c35f2(0xd2)](),_0x52ed77=await authServer({'silent':!![],'openBrowser':!![]});_0x300b59['stop'](),_0x52ed77?console[_0x2c35f2(0xe2)](_0x2c35f2(0xd3)):console[_0x2c35f2(0xe2)](_0x2c35f2(0xde));}
@@ -1 +1 @@
1
- const a10_0x5e36ad=a10_0x46d4;(function(_0xc09806,_0x9f74c0){const _0xf3bed9=a10_0x46d4,_0x2d1567=_0xc09806();while(!![]){try{const _0x1a78c4=parseInt(_0xf3bed9(0x150))/0x1+parseInt(_0xf3bed9(0x142))/0x2+-parseInt(_0xf3bed9(0x130))/0x3*(parseInt(_0xf3bed9(0x136))/0x4)+parseInt(_0xf3bed9(0x151))/0x5+-parseInt(_0xf3bed9(0x135))/0x6+-parseInt(_0xf3bed9(0x15d))/0x7+-parseInt(_0xf3bed9(0x15c))/0x8*(parseInt(_0xf3bed9(0x132))/0x9);if(_0x1a78c4===_0x9f74c0)break;else _0x2d1567['push'](_0x2d1567['shift']());}catch(_0x46091e){_0x2d1567['push'](_0x2d1567['shift']());}}}(a10_0x4f4c,0xa0424));import{writeFileSync}from'node:fs';function a10_0x46d4(_0x2a131c,_0x1fa24c){_0x2a131c=_0x2a131c-0x12e;const _0x4f4c53=a10_0x4f4c();let _0x46d4a1=_0x4f4c53[_0x2a131c];return _0x46d4a1;}import a10_0x171ac4 from'node:http';import a10_0x2e8e1a from'node:https';function a10_0x4f4c(){const _0x2641ef=['776nzZbYB','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','createServer','json','end','address','writeHead','close','win32','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','/sign-in?redirect=','timeoutMs','1752332zMvOTe','open\x20\x22','🔐\x20Starting\x20login\x20service...','utf-8','/api/auth/get-session','then','listen','origin','silent','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','127.0.0.1','session','isAuth','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','1036318pNMXUM','6543525EzGNle','darwin','certificateUrl','log','Auth\x20server\x20error:','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','xdg-open\x20\x22','user','📍\x20Login\x20URL:','error','cmd\x20/c\x20start\x20\x22\x22\x20\x22','188376yJJEvN','7016261jZnBvm','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','local','4839mSAhLN','object','342EuRSLS','port','openBrowser','2128428LRCFsZ'];a10_0x4f4c=function(){return _0x2641ef;};return a10_0x4f4c();}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(_0x3be894){const _0x11b3b8=a10_0x46d4;if(!_0x3be894)return getProjectDomainRoutingManifest()[_0x11b3b8(0x12f)];const _0x130d2c=getOfficialRoutingProfile(_0x3be894),_0x4f5152=getOfficialRoutingCdn(_0x3be894);return{'origin':_0x130d2c['local'][_0x11b3b8(0x149)],'certificateUrl':_0x4f5152['lovrabet']+'/cert/lovrabet-dev.json'};}function withPort(_0x372df0,_0x52704f){const _0x31630f=a10_0x46d4,_0x23f744=new URL(_0x372df0);return _0x23f744[_0x31630f(0x133)]=String(_0x52704f),_0x23f744[_0x31630f(0x149)];}export async function authServer(_0x122ddf){const _0x5b44e2=a10_0x46d4,_0x5bc3ce=_0x122ddf?.[_0x5b44e2(0x14a)]||![],_0x2cfe84=_0x122ddf?.[_0x5b44e2(0x134)]??!![],_0x17c226=_0x122ddf?.[_0x5b44e2(0x141)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x52cc2e=resolveAuthCallbackRouting(),_0x28d852=_0x52cc2e['certificateUrl']?await(await fetch(_0x52cc2e[_0x5b44e2(0x153)]))['json']():undefined;return new Promise(async(_0x47a8d3,_0x367d6a)=>{const _0x3bbc30=_0x5b44e2;let _0x424dba=0x0,_0x294c6f=![],_0x126f59;const _0x579c84=async(_0x2ad70c,_0x2d3c02)=>{const _0x52555c=a10_0x46d4,_0x16e318=getUserDomain(),_0x12eed4=_0x2ad70c['headers']['cookie']||'',_0x29214f=await fetch(_0x16e318+_0x52555c(0x146),{'headers':{'cookie':_0x12eed4}})[_0x52555c(0x147)](_0x5b1078=>_0x5b1078[_0x52555c(0x139)]()),_0x504e4c=_0x29214f&&_0x29214f[_0x52555c(0x14d)]&&_0x29214f[_0x52555c(0x158)];if(_0x504e4c){writeFileSync(cookieFile,_0x12eed4,_0x52555c(0x145));const _0x539d83=buildLoginSuccessHtml();_0x2d3c02[_0x52555c(0x13c)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x2d3c02[_0x52555c(0x13a)](_0x539d83),_0x73cb36(!![]);}else{const _0x17463c=encodeURIComponent(withPort(_0x52cc2e['origin'],_0x424dba));_0x2d3c02[_0x52555c(0x13c)](0x12e,{'location':_0x16e318+_0x52555c(0x140)+_0x17463c}),_0x2d3c02['end']();return;}},_0x1f321f=_0x28d852?a10_0x2e8e1a[_0x3bbc30(0x138)](_0x28d852,_0x579c84):a10_0x171ac4['createServer'](_0x579c84);function _0x73cb36(_0x43c96c){const _0x4b7387=_0x3bbc30;if(_0x294c6f)return;_0x294c6f=!![],_0x126f59&&clearTimeout(_0x126f59),_0x1f321f[_0x4b7387(0x13d)](),_0x47a8d3(_0x43c96c);}_0x1f321f[_0x3bbc30(0x148)](0x0,_0x3bbc30(0x14c),()=>{const _0x451b27=_0x3bbc30,_0x36ff18=_0x1f321f[_0x451b27(0x13b)]();_0x424dba=typeof _0x36ff18===_0x451b27(0x131)&&_0x36ff18?_0x36ff18[_0x451b27(0x133)]:Number(_0x36ff18);const _0xc7c7f2=withPort(_0x52cc2e['origin'],_0x424dba);_0x126f59=setTimeout(()=>{const _0x5077ff=_0x451b27;!_0x5bc3ce&&console[_0x5077ff(0x154)](_0x5077ff(0x137)),_0x73cb36(![]);},_0x17c226);!_0x5bc3ce&&(console[_0x451b27(0x154)](_0x451b27(0x144)),console[_0x451b27(0x154)](_0x451b27(0x159),_0xc7c7f2),_0x2cfe84?(console['log']('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x451b27(0x154)](''),console['log'](_0x451b27(0x14f))):console['log'](_0x451b27(0x156)),console[_0x451b27(0x154)](''));if(!_0x2cfe84)return;openInBrowser(_0xc7c7f2)[_0x451b27(0x147)](_0x29ac4c=>{const _0x1593f9=_0x451b27;!_0x5bc3ce&&(_0x29ac4c?console[_0x1593f9(0x154)](_0x1593f9(0x14b)):(console[_0x1593f9(0x154)](_0x1593f9(0x12e)),console['log']('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0xc7c7f2)),console[_0x1593f9(0x154)](''));})['catch'](()=>{const _0x36d704=_0x451b27;!_0x5bc3ce&&(console[_0x36d704(0x154)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console['log'](_0x36d704(0x13f),_0xc7c7f2),console[_0x36d704(0x154)](''));});}),_0x1f321f['on'](_0x3bbc30(0x15a),_0x26793c=>{const _0x6866cc=_0x3bbc30;if(_0x294c6f)return;_0x294c6f=!![],_0x126f59&&clearTimeout(_0x126f59),!_0x5bc3ce&&console['error'](_0x6866cc(0x155),_0x26793c),_0x1f321f[_0x6866cc(0x13d)](),_0x367d6a(_0x26793c);});});}function openInBrowser(_0x1fb257){return new Promise(_0x4d3c3b=>{const _0x1acecd=a10_0x46d4,_0x472ea1=process['platform'];let _0x320a9c;if(_0x472ea1===_0x1acecd(0x13e))_0x320a9c=_0x1acecd(0x15b)+_0x1fb257+'\x22';else _0x472ea1===_0x1acecd(0x152)?_0x320a9c=_0x1acecd(0x143)+_0x1fb257+'\x22':_0x320a9c=_0x1acecd(0x157)+_0x1fb257+'\x22';exec(_0x320a9c,_0x42cb53=>{_0x42cb53?_0x4d3c3b(![]):_0x4d3c3b(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x5e36ad(0x154)](a10_0x5e36ad(0x14e),isAuth);}
1
+ const a10_0x52f43c=a10_0x162f;(function(_0x5ae6cd,_0x5ae211){const _0x8bcba2=a10_0x162f,_0x2eba91=_0x5ae6cd();while(!![]){try{const _0x5e12d7=parseInt(_0x8bcba2(0xd8))/0x1*(-parseInt(_0x8bcba2(0xb9))/0x2)+parseInt(_0x8bcba2(0xe3))/0x3+-parseInt(_0x8bcba2(0xbb))/0x4+-parseInt(_0x8bcba2(0xc5))/0x5*(parseInt(_0x8bcba2(0xce))/0x6)+parseInt(_0x8bcba2(0xe4))/0x7*(parseInt(_0x8bcba2(0xc1))/0x8)+-parseInt(_0x8bcba2(0xde))/0x9+parseInt(_0x8bcba2(0xd1))/0xa;if(_0x5e12d7===_0x5ae211)break;else _0x2eba91['push'](_0x2eba91['shift']());}catch(_0x2efdd5){_0x2eba91['push'](_0x2eba91['shift']());}}}(a10_0xf2e9,0x2fade));import{writeFileSync}from'node:fs';function a10_0x162f(_0x5a2664,_0xdc29f4){_0x5a2664=_0x5a2664-0xb7;const _0xf2e93c=a10_0xf2e9();let _0x162f0b=_0xf2e93c[_0x5a2664];return _0x162f0b;}import a10_0x5d4865 from'node:http';import a10_0x484088 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(_0x55d8ec){const _0x210ee5=a10_0x162f;if(!_0x55d8ec)return getProjectDomainRoutingManifest()[_0x210ee5(0xd4)];const _0x4dd085=getOfficialRoutingProfile(_0x55d8ec),_0x40aa7b=getOfficialRoutingCdn(_0x55d8ec);return{'origin':_0x4dd085[_0x210ee5(0xd4)][_0x210ee5(0xdf)],'certificateUrl':_0x40aa7b['lovrabet']+_0x210ee5(0xcf)};}function a10_0xf2e9(){const _0x38c73f=['24lplNjY','/cert/lovrabet-dev.json','💡\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','6592960gdwVIC','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','error','local','then','utf-8','platform','3755OBuvtW','Auth\x20server\x20error:','cmd\x20/c\x20start\x20\x22\x22\x20\x22','session','close','text/html;\x20charset=utf-8','721791OTJNxU','origin','user','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','openBrowser','208560xWEeZo','280cbPsDw','xdg-open\x20\x22','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','127.0.0.1','/sign-in?redirect=','132TIzZDm','open\x20\x22','1536644ixBIEU','writeHead','isAuth','json','🔐\x20Starting\x20login\x20service...','darwin','66952uTFszW','createServer','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','log','195115roshqE','silent','headers','end','/api/auth/get-session','timeoutMs','certificateUrl','port','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:'];a10_0xf2e9=function(){return _0x38c73f;};return a10_0xf2e9();}function withPort(_0x191ca2,_0x3e2da1){const _0x32f45d=new URL(_0x191ca2);return _0x32f45d['port']=String(_0x3e2da1),_0x32f45d['origin'];}export async function authServer(_0x16989a){const _0x35c8d4=a10_0x162f,_0x491333=_0x16989a?.[_0x35c8d4(0xc6)]||![],_0x17d148=_0x16989a?.[_0x35c8d4(0xe2)]??!![],_0x707e87=_0x16989a?.[_0x35c8d4(0xca)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x37d728=resolveAuthCallbackRouting(),_0x2cd012=_0x37d728[_0x35c8d4(0xcb)]?await(await fetch(_0x37d728[_0x35c8d4(0xcb)]))['json']():undefined;return new Promise(async(_0xf5d6ab,_0xd9bb51)=>{const _0xf1afca=_0x35c8d4;let _0x50a218=0x0,_0x240e3b=![],_0x5a1425;const _0x1ccc32=async(_0x311005,_0x5b860e)=>{const _0x2ab40=a10_0x162f,_0x451f41=getUserDomain(),_0x3e1428=_0x311005[_0x2ab40(0xc7)]['cookie']||'',_0x2e14de=await fetch(_0x451f41+_0x2ab40(0xc9),{'headers':{'cookie':_0x3e1428}})[_0x2ab40(0xd5)](_0x5bdb9f=>_0x5bdb9f[_0x2ab40(0xbe)]()),_0x372024=_0x2e14de&&_0x2e14de[_0x2ab40(0xdb)]&&_0x2e14de[_0x2ab40(0xe0)];if(_0x372024){writeFileSync(cookieFile,_0x3e1428,_0x2ab40(0xd6));const _0x1763dd=buildLoginSuccessHtml();_0x5b860e[_0x2ab40(0xbc)](0xc8,{'Content-Type':_0x2ab40(0xdd)}),_0x5b860e[_0x2ab40(0xc8)](_0x1763dd),_0x300536(!![]);}else{const _0x56bb01=encodeURIComponent(withPort(_0x37d728[_0x2ab40(0xdf)],_0x50a218));_0x5b860e['writeHead'](0x12e,{'location':_0x451f41+_0x2ab40(0xb8)+_0x56bb01}),_0x5b860e['end']();return;}},_0x54ba3e=_0x2cd012?a10_0x484088[_0xf1afca(0xc2)](_0x2cd012,_0x1ccc32):a10_0x5d4865[_0xf1afca(0xc2)](_0x1ccc32);function _0x300536(_0x53bfda){const _0x359a7e=_0xf1afca;if(_0x240e3b)return;_0x240e3b=!![],_0x5a1425&&clearTimeout(_0x5a1425),_0x54ba3e[_0x359a7e(0xdc)](),_0xf5d6ab(_0x53bfda);}_0x54ba3e['listen'](0x0,_0xf1afca(0xb7),()=>{const _0x423bb7=_0xf1afca,_0x314bb7=_0x54ba3e['address']();_0x50a218=typeof _0x314bb7==='object'&&_0x314bb7?_0x314bb7[_0x423bb7(0xcc)]:Number(_0x314bb7);const _0x398b03=withPort(_0x37d728[_0x423bb7(0xdf)],_0x50a218);_0x5a1425=setTimeout(()=>{const _0x267ec1=_0x423bb7;!_0x491333&&console[_0x267ec1(0xc4)]('!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.'),_0x300536(![]);},_0x707e87);!_0x491333&&(console[_0x423bb7(0xc4)](_0x423bb7(0xbf)),console['log']('📍\x20Login\x20URL:',_0x398b03),_0x17d148?(console[_0x423bb7(0xc4)](_0x423bb7(0xe6)),console[_0x423bb7(0xc4)](''),console['log'](_0x423bb7(0xd2))):console[_0x423bb7(0xc4)](_0x423bb7(0xd0)),console[_0x423bb7(0xc4)](''));if(!_0x17d148)return;openInBrowser(_0x398b03)[_0x423bb7(0xd5)](_0x416af0=>{const _0x49893f=_0x423bb7;!_0x491333&&(_0x416af0?console['log'](_0x49893f(0xc3)):(console['log'](_0x49893f(0xe1)),console[_0x49893f(0xc4)](_0x49893f(0xcd),_0x398b03)),console[_0x49893f(0xc4)](''));})['catch'](()=>{const _0x89b905=_0x423bb7;!_0x491333&&(console[_0x89b905(0xc4)](_0x89b905(0xe1)),console[_0x89b905(0xc4)](_0x89b905(0xcd),_0x398b03),console[_0x89b905(0xc4)](''));});}),_0x54ba3e['on'](_0xf1afca(0xd3),_0x521bb6=>{const _0x5e4870=_0xf1afca;if(_0x240e3b)return;_0x240e3b=!![],_0x5a1425&&clearTimeout(_0x5a1425),!_0x491333&&console[_0x5e4870(0xd3)](_0x5e4870(0xd9),_0x521bb6),_0x54ba3e[_0x5e4870(0xdc)](),_0xd9bb51(_0x521bb6);});});}function openInBrowser(_0x115bc1){return new Promise(_0x39d482=>{const _0x5f624b=a10_0x162f,_0x43137a=process[_0x5f624b(0xd7)];let _0x3f9116;if(_0x43137a==='win32')_0x3f9116=_0x5f624b(0xda)+_0x115bc1+'\x22';else _0x43137a===_0x5f624b(0xc0)?_0x3f9116=_0x5f624b(0xba)+_0x115bc1+'\x22':_0x3f9116=_0x5f624b(0xe5)+_0x115bc1+'\x22';exec(_0x3f9116,_0x2f3596=>{_0x2f3596?_0x39d482(![]):_0x39d482(!![]);});});}if(import.meta.main){const isAuth=await authServer();console['log'](a10_0x52f43c(0xbd),isAuth);}
@@ -1 +1 @@
1
- const a11_0x498044=a11_0x27e0;function a11_0x27e0(_0x556cdb,_0x2388ad){_0x556cdb=_0x556cdb-0xac;const _0x14f511=a11_0x14f5();let _0x27e048=_0x14f511[_0x556cdb];return _0x27e048;}(function(_0x5c0d8a,_0x49f75c){const _0x3e93b8=a11_0x27e0,_0x3e5b04=_0x5c0d8a();while(!![]){try{const _0x10ae20=-parseInt(_0x3e93b8(0xaf))/0x1*(-parseInt(_0x3e93b8(0xae))/0x2)+-parseInt(_0x3e93b8(0xb2))/0x3*(parseInt(_0x3e93b8(0xac))/0x4)+parseInt(_0x3e93b8(0xb1))/0x5+-parseInt(_0x3e93b8(0xb3))/0x6+parseInt(_0x3e93b8(0xb5))/0x7+parseInt(_0x3e93b8(0xb4))/0x8*(-parseInt(_0x3e93b8(0xad))/0x9)+parseInt(_0x3e93b8(0xb7))/0xa;if(_0x10ae20===_0x49f75c)break;else _0x3e5b04['push'](_0x3e5b04['shift']());}catch(_0x1af928){_0x3e5b04['push'](_0x3e5b04['shift']());}}}(a11_0x14f5,0x70738));function a11_0x14f5(){const _0x329ad3=['1861655xiuIra','3StaZPV','5424936RGZHGa','1194184uUNFEX','3991015MoKMdG','cookie','11723300QNAcXH','2978164uucOeP','18rxDdrz','3686uQdqsz','159REmKQZ','.lovrabet'];a11_0x14f5=function(){return _0x329ad3;};return a11_0x14f5();}import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a11_0x498044(0xb0));export const cookieFile=join(configDir,a11_0x498044(0xb6));mkdirSync(configDir,{'recursive':!![]});
1
+ function a11_0x3039(){const _0x20b547=['310884xkdNim','18MzmsRT','.lovrabet','1784888rATYkz','28728fPufrf','42gPGzPS','545028LMKGUk','66245xfSdvs','cookie','40dQxlVt','998sdTQhU','611ChkgLb','37471HVbMgr','12RMlVwK','201rCZzOF'];a11_0x3039=function(){return _0x20b547;};return a11_0x3039();}const a11_0x212a25=a11_0x3ccd;(function(_0x8c0290,_0x1352d7){const _0x395810=a11_0x3ccd,_0x914f86=_0x8c0290();while(!![]){try{const _0x35fff7=-parseInt(_0x395810(0xce))/0x1*(-parseInt(_0x395810(0xca))/0x2)+-parseInt(_0x395810(0xcd))/0x3*(parseInt(_0x395810(0xcf))/0x4)+parseInt(_0x395810(0xc7))/0x5*(parseInt(_0x395810(0xc5))/0x6)+parseInt(_0x395810(0xcc))/0x7+parseInt(_0x395810(0xd2))/0x8*(parseInt(_0x395810(0xd0))/0x9)+-parseInt(_0x395810(0xc9))/0xa*(parseInt(_0x395810(0xc6))/0xb)+-parseInt(_0x395810(0xd3))/0xc*(-parseInt(_0x395810(0xcb))/0xd);if(_0x35fff7===_0x1352d7)break;else _0x914f86['push'](_0x914f86['shift']());}catch(_0x208f2c){_0x914f86['push'](_0x914f86['shift']());}}}(a11_0x3039,0x3c8fb));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a11_0x212a25(0xd1));function a11_0x3ccd(_0xbf584a,_0x5e10ea){_0xbf584a=_0xbf584a-0xc5;const _0x3039a1=a11_0x3039();let _0x3ccdb6=_0x3039a1[_0xbf584a];return _0x3ccdb6;}export const cookieFile=join(configDir,a11_0x212a25(0xc8));mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x2ebac9,_0x3176d9){var _0x29dd34=a12_0x5b6c,_0x5ebe60=_0x2ebac9();while(!![]){try{var _0x1b64af=-parseInt(_0x29dd34(0x101))/0x1+parseInt(_0x29dd34(0xff))/0x2+-parseInt(_0x29dd34(0xfa))/0x3+parseInt(_0x29dd34(0xfb))/0x4+-parseInt(_0x29dd34(0x100))/0x5+-parseInt(_0x29dd34(0xfc))/0x6*(-parseInt(_0x29dd34(0xfd))/0x7)+parseInt(_0x29dd34(0xfe))/0x8;if(_0x1b64af===_0x3176d9)break;else _0x5ebe60['push'](_0x5ebe60['shift']());}catch(_0x2bc807){_0x5ebe60['push'](_0x5ebe60['shift']());}}}(a12_0x5248,0xea526));import{readFileSync}from'node:fs';function a12_0x5248(){var _0x257339=['3424104qoEvqa','426524MgLqry','47970mtJkxP','819kNYibN','3810632BcUJnB','2859614nFZKyX','2872765LmAWST','272479hjGILV'];a12_0x5248=function(){return _0x257339;};return a12_0x5248();}import{cookieFile}from'../auth/constant.js';function a12_0x5b6c(_0x3fc5a0,_0x5a13e2){_0x3fc5a0=_0x3fc5a0-0xfa;var _0x5248e9=a12_0x5248();var _0x5b6c2a=_0x5248e9[_0x3fc5a0];return _0x5b6c2a;}export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
1
+ (function(_0x1a8de7,_0x393e28){var _0x54efc2=a12_0x3d39,_0x4e5037=_0x1a8de7();while(!![]){try{var _0x5eaad6=parseInt(_0x54efc2(0x141))/0x1+-parseInt(_0x54efc2(0x148))/0x2*(-parseInt(_0x54efc2(0x146))/0x3)+parseInt(_0x54efc2(0x14a))/0x4*(-parseInt(_0x54efc2(0x149))/0x5)+-parseInt(_0x54efc2(0x144))/0x6*(-parseInt(_0x54efc2(0x147))/0x7)+-parseInt(_0x54efc2(0x13f))/0x8*(parseInt(_0x54efc2(0x145))/0x9)+parseInt(_0x54efc2(0x142))/0xa+-parseInt(_0x54efc2(0x140))/0xb*(parseInt(_0x54efc2(0x13e))/0xc);if(_0x5eaad6===_0x393e28)break;else _0x4e5037['push'](_0x4e5037['shift']());}catch(_0x526800){_0x4e5037['push'](_0x4e5037['shift']());}}}(a12_0x2ac9,0x33db4));function a12_0x3d39(_0x494af7,_0x59568d){_0x494af7=_0x494af7-0x13e;var _0x2ac932=a12_0x2ac9();var _0x3d39d5=_0x2ac932[_0x494af7];return _0x3d39d5;}import{readFileSync}from'node:fs';function a12_0x2ac9(){var _0x43e955=['90008vPBzVy','5XSjaTe','332308FKHVgb','19644vmVrbB','8VomMLh','5995DuXgPD','184822ePRKHO','4214930LjzHgF','utf-8','144nGONxd','83097KjoAgw','15fJjDNh','106617LWwjsG'];a12_0x2ac9=function(){return _0x43e955;};return a12_0x2ac9();}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x4a51c7=a12_0x3d39;try{return readFileSync(cookieFile,_0x4a51c7(0x143));}catch{}return'';}
@@ -1 +1 @@
1
- function a13_0x5047(){const _0x5b1131=['84PONBVs','7664240rbFJPh','json','utf-8','6528879qiFGYA','192765NzoaDo','/api/auth/get-session','736482YxmIha','15513759Fhjsns','session','238494WVhMAm','2awodND','3663112svuVtt'];a13_0x5047=function(){return _0x5b1131;};return a13_0x5047();}(function(_0x43401d,_0x5701dc){const _0x5674fc=a13_0x4042,_0x1080de=_0x43401d();while(!![]){try{const _0x36f4f8=parseInt(_0x5674fc(0xd2))/0x1+parseInt(_0x5674fc(0xd3))/0x2*(-parseInt(_0x5674fc(0xcf))/0x3)+parseInt(_0x5674fc(0xd4))/0x4+-parseInt(_0x5674fc(0xcd))/0x5*(parseInt(_0x5674fc(0xd5))/0x6)+parseInt(_0x5674fc(0xcc))/0x7+parseInt(_0x5674fc(0xc9))/0x8+-parseInt(_0x5674fc(0xd0))/0x9;if(_0x36f4f8===_0x5701dc)break;else _0x1080de['push'](_0x1080de['shift']());}catch(_0x30140d){_0x1080de['push'](_0x1080de['shift']());}}}(a13_0x5047,0x82dcc));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a13_0x4042(_0x1568d3,_0x224e9a){_0x1568d3=_0x1568d3-0xc9;const _0x504751=a13_0x5047();let _0x404237=_0x504751[_0x1568d3];return _0x404237;}export async function getSessionUserInfo(){const _0x5a25a3=a13_0x4042;try{if(!existsSync(cookieFile))return null;const _0x3f92b8=readFileSync(cookieFile,_0x5a25a3(0xcb)),_0x278e76=await fetch(getUserDomain()+_0x5a25a3(0xce),{'headers':{'cookie':_0x3f92b8}});if(!_0x278e76['ok'])return null;const _0x58674f=await _0x278e76[_0x5a25a3(0xca)]();if(!_0x58674f[_0x5a25a3(0xd1)]||!_0x58674f['user'])return null;return _0x58674f;}catch{return null;}}
1
+ (function(_0x1f72e6,_0x2907f6){const _0x17d2b2=a13_0xf0a2,_0x5eec37=_0x1f72e6();while(!![]){try{const _0x1ba1d9=parseInt(_0x17d2b2(0x164))/0x1*(parseInt(_0x17d2b2(0x167))/0x2)+-parseInt(_0x17d2b2(0x165))/0x3*(-parseInt(_0x17d2b2(0x163))/0x4)+parseInt(_0x17d2b2(0x16a))/0x5*(parseInt(_0x17d2b2(0x161))/0x6)+-parseInt(_0x17d2b2(0x168))/0x7*(-parseInt(_0x17d2b2(0x15e))/0x8)+parseInt(_0x17d2b2(0x166))/0x9+parseInt(_0x17d2b2(0x16c))/0xa*(parseInt(_0x17d2b2(0x160))/0xb)+parseInt(_0x17d2b2(0x15f))/0xc*(-parseInt(_0x17d2b2(0x169))/0xd);if(_0x1ba1d9===_0x2907f6)break;else _0x5eec37['push'](_0x5eec37['shift']());}catch(_0x419ccd){_0x5eec37['push'](_0x5eec37['shift']());}}}(a13_0x4a28,0xa2510));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a13_0xf0a2(_0x4afdae,_0x52ddee){_0x4afdae=_0x4afdae-0x15d;const _0x4a283e=a13_0x4a28();let _0xf0a2ec=_0x4a283e[_0x4afdae];return _0xf0a2ec;}function a13_0x4a28(){const _0x1ec603=['889176qlgQNC','13HzkxDv','6sTpvfq','2344626JOmuDT','200298pfmqmj','3787kPlcrw','114985kFPCtj','425vKmXhe','utf-8','167470OLlUej','/api/auth/get-session','7688wUGaFQ','4620HVTmzu','319jilbEr','74652xLnnPl','user'];a13_0x4a28=function(){return _0x1ec603;};return a13_0x4a28();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x1ff5e6=a13_0xf0a2;try{if(!existsSync(cookieFile))return null;const _0x284aee=readFileSync(cookieFile,_0x1ff5e6(0x16b)),_0x8d4041=await fetch(getUserDomain()+_0x1ff5e6(0x15d),{'headers':{'cookie':_0x284aee}});if(!_0x8d4041['ok'])return null;const _0x14e7d9=await _0x8d4041['json']();if(!_0x14e7d9['session']||!_0x14e7d9[_0x1ff5e6(0x162)])return null;return _0x14e7d9;}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x2bdc62,_0xed6728){const _0x846657=a14_0x422a,_0x44f92f=_0x2bdc62();while(!![]){try{const _0x51d699=parseInt(_0x846657(0xb4))/0x1*(parseInt(_0x846657(0xb1))/0x2)+parseInt(_0x846657(0xbd))/0x3*(-parseInt(_0x846657(0xb3))/0x4)+-parseInt(_0x846657(0xba))/0x5*(parseInt(_0x846657(0xbc))/0x6)+parseInt(_0x846657(0xb8))/0x7+parseInt(_0x846657(0xb2))/0x8+parseInt(_0x846657(0xb6))/0x9+-parseInt(_0x846657(0xb0))/0xa;if(_0x51d699===_0xed6728)break;else _0x44f92f['push'](_0x44f92f['shift']());}catch(_0x38f4ae){_0x44f92f['push'](_0x44f92f['shift']());}}}(a14_0x49cf,0x3bb6e));import{existsSync,readFileSync}from'node:fs';function a14_0x49cf(){const _0x402465=['5155vSaYpC','/api/auth/get-session','1542iWstDY','1299xQRxIM','2771780DULTpn','193406ZPZojU','3581048gAXGjx','3152byVSyQ','4XvRpER','json','1903185PTFdbp','then','574217gieRni','user'];a14_0x49cf=function(){return _0x402465;};return a14_0x49cf();}import{getUserDomain}from'../constant/domain.js';function a14_0x422a(_0x372923,_0x2b3e19){_0x372923=_0x372923-0xb0;const _0x49cf3b=a14_0x49cf();let _0x422ab5=_0x49cf3b[_0x372923];return _0x422ab5;}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0xbcf0c0=a14_0x422a;try{if(!existsSync(cookieFile))return![];const _0x4d04c2=readFileSync(cookieFile,'utf-8'),_0x5dbcbe=await fetch(getUserDomain()+_0xbcf0c0(0xbb),{'headers':{'cookie':_0x4d04c2}})[_0xbcf0c0(0xb7)](_0xe2e805=>_0xe2e805[_0xbcf0c0(0xb5)]());return _0x5dbcbe&&_0x5dbcbe['session']&&_0x5dbcbe[_0xbcf0c0(0xb9)];}catch{}return![];}
1
+ function a14_0x36df(_0x4f1198,_0x7e6225){_0x4f1198=_0x4f1198-0x144;const _0x4e2db5=a14_0x4e2d();let _0x36df09=_0x4e2db5[_0x4f1198];return _0x36df09;}(function(_0x549036,_0x22580e){const _0x433e62=a14_0x36df,_0x5dbfd5=_0x549036();while(!![]){try{const _0x414caa=parseInt(_0x433e62(0x14c))/0x1+-parseInt(_0x433e62(0x153))/0x2+-parseInt(_0x433e62(0x144))/0x3*(-parseInt(_0x433e62(0x149))/0x4)+parseInt(_0x433e62(0x154))/0x5*(parseInt(_0x433e62(0x145))/0x6)+-parseInt(_0x433e62(0x151))/0x7*(-parseInt(_0x433e62(0x14e))/0x8)+-parseInt(_0x433e62(0x150))/0x9*(-parseInt(_0x433e62(0x14f))/0xa)+-parseInt(_0x433e62(0x148))/0xb*(parseInt(_0x433e62(0x14d))/0xc);if(_0x414caa===_0x22580e)break;else _0x5dbfd5['push'](_0x5dbfd5['shift']());}catch(_0x15b62f){_0x5dbfd5['push'](_0x5dbfd5['shift']());}}}(a14_0x4e2d,0xbb6d9));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x3149bb=a14_0x36df;try{if(!existsSync(cookieFile))return![];const _0x1e8a00=readFileSync(cookieFile,_0x3149bb(0x152)),_0x102881=await fetch(getUserDomain()+_0x3149bb(0x14a),{'headers':{'cookie':_0x1e8a00}})[_0x3149bb(0x147)](_0x2ea706=>_0x2ea706['json']());return _0x102881&&_0x102881[_0x3149bb(0x14b)]&&_0x102881[_0x3149bb(0x146)];}catch{}return![];}function a14_0x4e2d(){const _0x5d6ca2=['then','23640287jfXdII','309836gYKPBG','/api/auth/get-session','session','1221768cLAvsd','12pddilw','1352OpWVSp','12851180qDPNyF','9qXLRBg','43162ogqQot','utf-8','1892404OoCZFl','5mvXdYS','3Uvcplp','1419750fnicpP','user'];a14_0x4e2d=function(){return _0x5d6ca2;};return a14_0x4e2d();}
@@ -1 +1 @@
1
- function a15_0x5634(_0x107f56,_0x182568){_0x107f56=_0x107f56-0x15b;const _0x12816b=a15_0x1281();let _0x5634cd=_0x12816b[_0x107f56];return _0x5634cd;}(function(_0x2ec95a,_0x1cc059){const _0xceffbd=a15_0x5634,_0x2ed71c=_0x2ec95a();while(!![]){try{const _0x282e9f=parseInt(_0xceffbd(0x15f))/0x1*(-parseInt(_0xceffbd(0x161))/0x2)+parseInt(_0xceffbd(0x15d))/0x3*(-parseInt(_0xceffbd(0x15e))/0x4)+parseInt(_0xceffbd(0x15b))/0x5*(parseInt(_0xceffbd(0x163))/0x6)+-parseInt(_0xceffbd(0x160))/0x7*(parseInt(_0xceffbd(0x15c))/0x8)+-parseInt(_0xceffbd(0x162))/0x9+parseInt(_0xceffbd(0x168))/0xa*(parseInt(_0xceffbd(0x166))/0xb)+-parseInt(_0xceffbd(0x167))/0xc*(-parseInt(_0xceffbd(0x165))/0xd);if(_0x282e9f===_0x1cc059)break;else _0x2ed71c['push'](_0x2ed71c['shift']());}catch(_0x50bfa6){_0x2ed71c['push'](_0x2ed71c['shift']());}}}(a15_0x1281,0x91993));function a15_0x1281(){const _0x57f8d9=['1166PHfkfK','348HDrrYP','53030hzpCpL','</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>','10cnljNa','1043200TlztDu','2821923NBPJfy','4OsVfFE','1yWyuEl','35IqAxSz','2271194fqCvyc','1521531cWOeVT','1748868sCKkoi','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','1052818fASNrT'];a15_0x1281=function(){return _0x57f8d9;};return a15_0x1281();}export function buildLoginSuccessHtml(){const _0x401224=a15_0x5634,_0x3ddbec=_0x401224(0x164);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>'+_0x3ddbec+_0x401224(0x169);}
1
+ function a15_0x3f3e(){const _0x4895be=['</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>','<!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>','2060030qzTyGP','29210nysbHV','6oLnXxY','690815CRayiP','200604jjNciX','611084EMSFNR','16eMqEiV','2826lkQHDe','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','5120qzLZLM','3486050DvFMPb'];a15_0x3f3e=function(){return _0x4895be;};return a15_0x3f3e();}(function(_0x110d90,_0x50acc6){const _0x54bc01=a15_0x1335,_0x316be1=_0x110d90();while(!![]){try{const _0x5de613=-parseInt(_0x54bc01(0x9b))/0x1*(parseInt(_0x54bc01(0xa3))/0x2)+-parseInt(_0x54bc01(0xa6))/0x3+parseInt(_0x54bc01(0xa7))/0x4+-parseInt(_0x54bc01(0xa5))/0x5*(parseInt(_0x54bc01(0xa4))/0x6)+parseInt(_0x54bc01(0xa2))/0x7+parseInt(_0x54bc01(0x9e))/0x8*(-parseInt(_0x54bc01(0x9c))/0x9)+parseInt(_0x54bc01(0x9f))/0xa;if(_0x5de613===_0x50acc6)break;else _0x316be1['push'](_0x316be1['shift']());}catch(_0x4109a1){_0x316be1['push'](_0x316be1['shift']());}}}(a15_0x3f3e,0x2615b));function a15_0x1335(_0x423adf,_0x10efe8){_0x423adf=_0x423adf-0x9b;const _0x3f3e1d=a15_0x3f3e();let _0x133520=_0x3f3e1d[_0x423adf];return _0x133520;}export function buildLoginSuccessHtml(){const _0x26e2f3=a15_0x1335,_0x182cdc=_0x26e2f3(0x9d);return _0x26e2f3(0xa1)+_0x182cdc+_0x26e2f3(0xa0);}
@@ -1 +1 @@
1
- (function(_0x5e5802,_0x5a1b32){var _0x457bcb=a16_0x3815,_0x2106dc=_0x5e5802();while(!![]){try{var _0xd99ef8=parseInt(_0x457bcb(0xfe))/0x1+parseInt(_0x457bcb(0x100))/0x2*(parseInt(_0x457bcb(0xf6))/0x3)+parseInt(_0x457bcb(0xff))/0x4*(parseInt(_0x457bcb(0xfb))/0x5)+-parseInt(_0x457bcb(0xf9))/0x6+-parseInt(_0x457bcb(0xf8))/0x7*(parseInt(_0x457bcb(0xfc))/0x8)+-parseInt(_0x457bcb(0xf7))/0x9+-parseInt(_0x457bcb(0x101))/0xa*(-parseInt(_0x457bcb(0xfa))/0xb);if(_0xd99ef8===_0x5a1b32)break;else _0x2106dc['push'](_0x2106dc['shift']());}catch(_0x3ec8f0){_0x2106dc['push'](_0x2106dc['shift']());}}}(a16_0x2849,0x6bec8));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a16_0x3815(_0x2ce148,_0x3223bb){_0x2ce148=_0x2ce148-0xf6;var _0x2849be=a16_0x2849();var _0x3815af=_0x2849be[_0x2ce148];return _0x3815af;}function a16_0x2849(){var _0x107491=['4626720ioypeC','1991qjFbAM','35wHCGJM','488FdeOOD','log','12424bLFIjP','105348HmKIuq','112856cKCoUV','42670tgqWGQ','!\x20Not\x20logged\x20in','18SHxmYv','443709rAeZPF','5187fDQATN'];a16_0x2849=function(){return _0x107491;};return a16_0x2849();}export function logout(){var _0x5e5b65=a16_0x3815;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5e5b65(0xfd)]('✓\x20Logged\x20out')):console[_0x5e5b65(0xfd)](_0x5e5b65(0x102));}
1
+ function a16_0x2fbd(){var _0x501a74=['7478400mVmidJ','✓\x20Logged\x20out','11Sascsz','log','9027732ofnQdj','7NClHAL','865936hxpSPf','10TKklMo','2BNwRhJ','656057vUPSwJ','15vcpJnt','274840wcRjKt','915270NQUbFj','5111091HlbQVY'];a16_0x2fbd=function(){return _0x501a74;};return a16_0x2fbd();}(function(_0x13052e,_0x2fccf3){var _0x14e906=a16_0x2578,_0x2639a1=_0x13052e();while(!![]){try{var _0x3bb566=parseInt(_0x14e906(0xf4))/0x1*(-parseInt(_0x14e906(0xf3))/0x2)+parseInt(_0x14e906(0xf5))/0x3*(parseInt(_0x14e906(0xf6))/0x4)+-parseInt(_0x14e906(0xf2))/0x5*(-parseInt(_0x14e906(0xf7))/0x6)+-parseInt(_0x14e906(0xf0))/0x7*(parseInt(_0x14e906(0xf1))/0x8)+parseInt(_0x14e906(0xf8))/0x9+-parseInt(_0x14e906(0xf9))/0xa+parseInt(_0x14e906(0xfb))/0xb*(parseInt(_0x14e906(0xef))/0xc);if(_0x3bb566===_0x2fccf3)break;else _0x2639a1['push'](_0x2639a1['shift']());}catch(_0x47d53a){_0x2639a1['push'](_0x2639a1['shift']());}}}(a16_0x2fbd,0x6f807));function a16_0x2578(_0x3fd55c,_0x1e9db4){_0x3fd55c=_0x3fd55c-0xee;var _0x2fbd7e=a16_0x2fbd();var _0x257815=_0x2fbd7e[_0x3fd55c];return _0x257815;}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x339ecb=a16_0x2578;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x339ecb(0xee)](_0x339ecb(0xfa))):console[_0x339ecb(0xee)]('!\x20Not\x20logged\x20in');}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a17_0xfb11e5=a17_0x32ac;function a17_0x32ac(_0xb64dbf,_0x128699){_0xb64dbf=_0xb64dbf-0x1e1;const _0x329231=a17_0x3292();let _0x32ac03=_0x329231[_0xb64dbf];return _0x32ac03;}(function(_0x50274d,_0x28f826){const _0x2f27c6=a17_0x32ac,_0x3d1ef9=_0x50274d();while(!![]){try{const _0xda1bc=-parseInt(_0x2f27c6(0x1e4))/0x1+-parseInt(_0x2f27c6(0x1e5))/0x2+parseInt(_0x2f27c6(0x1e3))/0x3+parseInt(_0x2f27c6(0x1e6))/0x4+-parseInt(_0x2f27c6(0x1e2))/0x5+parseInt(_0x2f27c6(0x1e1))/0x6+-parseInt(_0x2f27c6(0x1e8))/0x7;if(_0xda1bc===_0x28f826)break;else _0x3d1ef9['push'](_0x3d1ef9['shift']());}catch(_0x2b1e3c){_0x3d1ef9['push'](_0x3d1ef9['shift']());}}}(a17_0x3292,0xc7d24));function a17_0x3292(){const _0x32bfb8=['6328637PTArdO','7884570BSylNF','4290710XWMcQO','777765orsrjM','89790zOQZqq','134232xXTjZG','4657028IyxhIe','boolean'];a17_0x3292=function(){return _0x32bfb8;};return a17_0x3292();}export const dynamicCliFlags={'enableBffSave':{'type':a17_0xfb11e5(0x1e7)}};
1
+ function a17_0x3ce9(_0x24e70a,_0x59447e){_0x24e70a=_0x24e70a-0x134;const _0x460fa6=a17_0x460f();let _0x3ce99d=_0x460fa6[_0x24e70a];return _0x3ce99d;}(function(_0x334480,_0x518877){const _0x35a4bf=a17_0x3ce9,_0x421ebb=_0x334480();while(!![]){try{const _0x16d25f=-parseInt(_0x35a4bf(0x135))/0x1*(parseInt(_0x35a4bf(0x13b))/0x2)+-parseInt(_0x35a4bf(0x13a))/0x3+parseInt(_0x35a4bf(0x139))/0x4+parseInt(_0x35a4bf(0x134))/0x5*(-parseInt(_0x35a4bf(0x138))/0x6)+parseInt(_0x35a4bf(0x13d))/0x7*(-parseInt(_0x35a4bf(0x136))/0x8)+parseInt(_0x35a4bf(0x13c))/0x9+parseInt(_0x35a4bf(0x137))/0xa;if(_0x16d25f===_0x518877)break;else _0x421ebb['push'](_0x421ebb['shift']());}catch(_0x878c3d){_0x421ebb['push'](_0x421ebb['shift']());}}}(a17_0x460f,0x3a4c1));function a17_0x460f(){const _0xe5546a=['1081136NXGsvl','386460AGWFBQ','661982teqKrl','2724003Vleasf','4151gAEiaz','20ixkHyu','1lvXmNq','1592mCJLgX','5276960YSjMKx','426066EaQmHy'];a17_0x460f=function(){return _0xe5546a;};return a17_0x460f();}export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};