@lovrabet/rabetbase-cli 2.4.7 → 2.5.0-beta.2

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 (365) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +13 -3
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +7 -0
  6. package/lib/api/generate-sdk-config-file.js +1 -0
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.d.ts +2 -5
  27. package/lib/commands/app/shared.js +1 -1
  28. package/lib/commands/app-config/delete.js +1 -1
  29. package/lib/commands/app-config/get.js +1 -1
  30. package/lib/commands/app-config/index.js +1 -1
  31. package/lib/commands/app-config/list.js +1 -1
  32. package/lib/commands/app-config/set.js +1 -1
  33. package/lib/commands/app-config/shared.js +1 -1
  34. package/lib/commands/auth/index.js +1 -1
  35. package/lib/commands/bff/create.js +1 -1
  36. package/lib/commands/bff/delete.js +1 -1
  37. package/lib/commands/bff/detail.js +1 -1
  38. package/lib/commands/bff/index.js +1 -1
  39. package/lib/commands/bff/list.js +1 -1
  40. package/lib/commands/bff/pull.js +1 -1
  41. package/lib/commands/bff/push.js +1 -1
  42. package/lib/commands/bff/status.js +1 -1
  43. package/lib/commands/cli-skill/index.js +1 -1
  44. package/lib/commands/cli-update.js +1 -1
  45. package/lib/commands/codegen/index.js +1 -1
  46. package/lib/commands/codegen/sdk.js +1 -1
  47. package/lib/commands/codegen/sql.js +1 -1
  48. package/lib/commands/common/app-registry.js +1 -1
  49. package/lib/commands/common/app-selector.js +1 -1
  50. package/lib/commands/common/async-task.js +1 -1
  51. package/lib/commands/common/dry-run.js +1 -1
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.d.ts +5 -0
  56. package/lib/commands/config/delete.js +1 -0
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.d.ts +12 -0
  60. package/lib/commands/config/init.js +1 -0
  61. package/lib/commands/config/list.js +1 -1
  62. package/lib/commands/config/set.js +1 -1
  63. package/lib/commands/config/shared.js +1 -1
  64. package/lib/commands/dataset/business-group-update.js +1 -1
  65. package/lib/commands/dataset/business-groups.js +1 -1
  66. package/lib/commands/dataset/capability.js +1 -1
  67. package/lib/commands/dataset/delete.js +1 -1
  68. package/lib/commands/dataset/detail.js +1 -1
  69. package/lib/commands/dataset/extend-update.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/doctor.js +1 -1
  101. package/lib/commands/file/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/search.js +1 -1
  112. package/lib/commands/kb/shared.js +1 -1
  113. package/lib/commands/kb/update.js +1 -1
  114. package/lib/commands/logs/index.js +1 -1
  115. package/lib/commands/menu/asset-update.js +1 -1
  116. package/lib/commands/menu/delete.js +1 -1
  117. package/lib/commands/menu/external-link-create.js +1 -1
  118. package/lib/commands/menu/external-link-update.js +1 -1
  119. package/lib/commands/menu/group-create.js +1 -1
  120. package/lib/commands/menu/group-update.js +1 -1
  121. package/lib/commands/menu/index.js +1 -1
  122. package/lib/commands/menu/list.js +1 -1
  123. package/lib/commands/menu/move.js +1 -1
  124. package/lib/commands/menu/regroup-start.js +1 -1
  125. package/lib/commands/menu/rename.js +1 -1
  126. package/lib/commands/menu/shared/compare-table.js +1 -1
  127. package/lib/commands/menu/shared/delete-plan.js +1 -1
  128. package/lib/commands/menu/shared/facts.js +1 -1
  129. package/lib/commands/menu/shared/index.js +1 -1
  130. package/lib/commands/menu/shared/inquirer.js +1 -1
  131. package/lib/commands/menu/shared/local-pages.js +1 -1
  132. package/lib/commands/menu/shared/logic.js +1 -1
  133. package/lib/commands/menu/shared/mutations.js +1 -1
  134. package/lib/commands/menu/shared/service.js +1 -1
  135. package/lib/commands/menu/shared/sync-core.js +1 -1
  136. package/lib/commands/menu/shared/update-core.js +1 -1
  137. package/lib/commands/menu/shared/valid-url.js +1 -1
  138. package/lib/commands/menu/sync.js +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -1
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.js +1 -1
  148. package/lib/commands/page/custom/detail.js +1 -1
  149. package/lib/commands/page/custom/list.js +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -1
  151. package/lib/commands/page/custom/shared.js +1 -1
  152. package/lib/commands/page/custom/syntax.js +1 -1
  153. package/lib/commands/page/custom/template.js +1 -1
  154. package/lib/commands/page/custom/update.js +1 -1
  155. package/lib/commands/page/data-list-status.js +1 -1
  156. package/lib/commands/page/generate-start.js +1 -1
  157. package/lib/commands/page/generate-status.js +1 -1
  158. package/lib/commands/page/index.js +1 -1
  159. package/lib/commands/page/pull.js +1 -1
  160. package/lib/commands/page/push.js +1 -1
  161. package/lib/commands/page/relation-audit.js +1 -1
  162. package/lib/commands/page/restore.js +1 -1
  163. package/lib/commands/page/shared.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  166. package/lib/commands/project/create/format-elapsed.js +1 -1
  167. package/lib/commands/project/create/main.d.ts +1 -0
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.d.ts +6 -2
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.d.ts +2 -2
  181. package/lib/commands/registry.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.d.ts +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/domain-config.d.ts +10 -0
  216. package/lib/config/domain-config.js +1 -0
  217. package/lib/config/schema.d.ts +3 -1
  218. package/lib/config/schema.js +1 -1
  219. package/lib/constant/cdn.js +1 -1
  220. package/lib/constant/cli.js +1 -1
  221. package/lib/constant/defaults.js +1 -1
  222. package/lib/constant/domain.d.ts +23 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/region.d.ts +9 -0
  228. package/lib/constant/region.js +1 -0
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/context/app-resolver.js +1 -1
  231. package/lib/context/auth-resolver.js +1 -1
  232. package/lib/context/config-loader.d.ts +4 -6
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.d.ts +2 -2
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +2 -0
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/page/file-system.js +1 -1
  246. package/lib/core/page/hash.js +1 -1
  247. package/lib/core/page/lock.js +1 -1
  248. package/lib/core/sql-index-auditor.js +1 -1
  249. package/lib/core/sql-sync/config.js +1 -1
  250. package/lib/core/sql-sync/file-system.js +1 -1
  251. package/lib/core/sql-sync/hash.js +1 -1
  252. package/lib/core/sql-sync/lock.js +1 -1
  253. package/lib/core/sql-sync/utils.js +1 -1
  254. package/lib/core/sql-validator.js +1 -1
  255. package/lib/errors.d.ts +11 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.d.ts +2 -2
  262. package/lib/framework/help.js +1 -1
  263. package/lib/framework/index.js +1 -1
  264. package/lib/framework/output.js +1 -1
  265. package/lib/framework/response.js +1 -1
  266. package/lib/framework/runner-alias.js +1 -1
  267. package/lib/framework/runner.js +1 -1
  268. package/lib/framework/schema-export.js +1 -1
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/help.js +1 -1
  273. package/lib/postinstall.js +1 -1
  274. package/lib/runtime/confirmation.js +1 -1
  275. package/lib/runtime/event.js +1 -1
  276. package/lib/runtime/index.js +1 -1
  277. package/lib/runtime/queue.js +1 -1
  278. package/lib/runtime/resolve.js +1 -1
  279. package/lib/skills/builtin-skill.js +1 -1
  280. package/lib/skills/main.js +1 -1
  281. package/lib/skills/npx-skills-add.js +1 -1
  282. package/lib/skills/skill-presence.js +1 -1
  283. package/lib/telemetry/cli-command-trace.js +1 -1
  284. package/lib/telemetry/cli-help-trace.js +1 -1
  285. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  286. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  287. package/lib/telemetry/send-cli-trace-log.js +1 -1
  288. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  289. package/lib/types/index.d.ts +28 -0
  290. package/lib/utils/ai_config.d.ts +1 -2
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -3
  313. package/skills/rabetbase/SKILL.md +33 -28
  314. package/skills/rabetbase/guides/backend-function.md +41 -12
  315. package/skills/rabetbase/guides/bff-creation-workflow.md +6 -4
  316. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  317. package/skills/rabetbase/guides/data-api-guidelines.md +8 -8
  318. package/skills/rabetbase/guides/database-connection-workflow.md +8 -16
  319. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +1 -6
  320. package/skills/rabetbase/guides/sdk-client-generation.md +146 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  322. package/skills/rabetbase/guides/troubleshooting.md +1 -1
  323. package/skills/rabetbase/guides/typescript-sdk.md +46 -10
  324. package/skills/rabetbase/references/rabetbase-api-list.md +4 -4
  325. package/skills/rabetbase/references/rabetbase-api-pull.md +44 -29
  326. package/skills/rabetbase/references/rabetbase-app-list.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-auth-login.md +4 -2
  328. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -1
  329. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -1
  330. package/skills/rabetbase/references/rabetbase-config.md +75 -30
  331. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  332. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  334. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  335. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  336. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  337. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  338. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  339. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  340. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  342. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  343. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  344. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  346. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  347. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  348. package/skills/rabetbase.manifest.json +4 -3
  349. package/templates/README.md +17 -28
  350. package/templates/generate-api/api.ts.tpl +3 -3
  351. package/templates/generate-api/client.ts.tpl +10 -37
  352. package/lib/commands/data/filter.d.ts +0 -7
  353. package/lib/commands/data/filter.js +0 -1
  354. package/lib/commands/data/getOne.d.ts +0 -7
  355. package/lib/commands/data/getOne.js +0 -1
  356. package/lib/commands/data/index.d.ts +0 -8
  357. package/lib/commands/data/index.js +0 -1
  358. package/lib/commands/data/shared.d.ts +0 -33
  359. package/lib/commands/data/shared.js +0 -1
  360. package/lib/commands/init/index.d.ts +0 -11
  361. package/lib/commands/init/index.js +0 -1
  362. package/lib/utils/rules-cdn.d.ts +0 -38
  363. package/lib/utils/rules-cdn.js +0 -1
  364. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  365. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- function a205_0x4f67(_0x4a49ff,_0x9c9264){_0x4a49ff=_0x4a49ff-0x125;const _0x576cf9=a205_0x576c();let _0x4f678c=_0x576cf9[_0x4a49ff];return _0x4f678c;}const a205_0x25ce2e=a205_0x4f67;(function(_0x1a593c,_0x3f007e){const _0x36d0a7=a205_0x4f67,_0x40a93a=_0x1a593c();while(!![]){try{const _0x4f88ed=parseInt(_0x36d0a7(0x13f))/0x1+-parseInt(_0x36d0a7(0x134))/0x2*(-parseInt(_0x36d0a7(0x153))/0x3)+-parseInt(_0x36d0a7(0x152))/0x4*(-parseInt(_0x36d0a7(0x150))/0x5)+parseInt(_0x36d0a7(0x132))/0x6*(parseInt(_0x36d0a7(0x13c))/0x7)+parseInt(_0x36d0a7(0x129))/0x8+-parseInt(_0x36d0a7(0x154))/0x9*(parseInt(_0x36d0a7(0x15a))/0xa)+-parseInt(_0x36d0a7(0x146))/0xb*(parseInt(_0x36d0a7(0x138))/0xc);if(_0x4f88ed===_0x3f007e)break;else _0x40a93a['push'](_0x40a93a['shift']());}catch(_0x1be6d8){_0x40a93a['push'](_0x40a93a['shift']());}}}(a205_0x576c,0x7c996));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a205_0x25ce2e(0x141),SAFE_PROFILE_KEYS=['appcode','env',a205_0x25ce2e(0x12b),a205_0x25ce2e(0x12e),a205_0x25ce2e(0x156),a205_0x25ce2e(0x14b),a205_0x25ce2e(0x133)],workspaceFlags=[{'name':a205_0x25ce2e(0x137),'type':a205_0x25ce2e(0x126),'description':a205_0x25ce2e(0x15c)},{'name':a205_0x25ce2e(0x144),'type':a205_0x25ce2e(0x126),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':'env','type':a205_0x25ce2e(0x126),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a205_0x25ce2e(0x12b),'type':a205_0x25ce2e(0x126),'description':a205_0x25ce2e(0x14c)},{'name':a205_0x25ce2e(0x139),'type':a205_0x25ce2e(0x126),'description':a205_0x25ce2e(0x14d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a205_0x25ce2e(0x156),'type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a205_0x25ce2e(0x126),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a205_0x25ce2e(0x133),'type':'string','description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x262648){const _0x5a5824=a205_0x25ce2e;return!!_0x262648&&typeof _0x262648===_0x5a5824(0x128)&&!Array['isArray'](_0x262648);}function assertValidAppcode(_0x1d9b00){const _0x48b64c=a205_0x25ce2e,{valid:_0x1f2b51,message:_0x9c4324}=validateAppcode(_0x1d9b00);if(!_0x1f2b51)throw CliErrors[_0x48b64c(0x127)](_0x48b64c(0x159)+_0x1d9b00,_0x9c4324);}function sanitizeProfile(_0x537fe2){if(!isRecord(_0x537fe2))return{};const _0x3bd11b={};for(const _0x2400c8 of SAFE_PROFILE_KEYS){if(_0x537fe2[_0x2400c8]!==undefined)_0x3bd11b[_0x2400c8]=_0x537fe2[_0x2400c8];}return _0x3bd11b;}function cloneProfile(_0x364e30){return isRecord(_0x364e30)?{..._0x364e30}:{};}function collectWorkspaceProfileOverrides(_0x4316aa){const _0x589176=a205_0x25ce2e,_0x302094={},_0xe2aa99=_0x4316aa[_0x589176(0x13b)](_0x589176(0x149)),_0x3c30fa=_0x4316aa['str']('apiDir'),_0x1d625f=_0x4316aa[_0x589176(0x13b)]('defaultFormat'),_0x43464e=_0x4316aa['flag'](_0x589176(0x156)),_0x1f3b2f=_0x4316aa[_0x589176(0x13b)](_0x589176(0x14b)),_0x16f179=_0x4316aa['str'](_0x589176(0x133));if(_0xe2aa99)_0x302094[_0x589176(0x149)]=_0xe2aa99;if(_0x3c30fa)_0x302094[_0x589176(0x12b)]=_0x3c30fa;if(_0x1d625f)_0x302094[_0x589176(0x12e)]=_0x1d625f;if(_0x43464e!==undefined&&_0x43464e!=='')_0x302094[_0x589176(0x156)]=Number(_0x43464e);if(_0x1f3b2f)_0x302094[_0x589176(0x14b)]=_0x1f3b2f;if(_0x16f179)_0x302094['locale']=_0x16f179;return _0x302094;}async function validateWorkspaceArgs(_0x3d3b6a){const _0x1a3943=a205_0x25ce2e,_0x5dd37b=_0x3d3b6a['str'](_0x1a3943(0x137))['trim'](),_0xd6d423=_0x3d3b6a[_0x1a3943(0x13b)](_0x1a3943(0x144))[_0x1a3943(0x15d)]();if(!_0x5dd37b&&!_0xd6d423)throw CliErrors[_0x1a3943(0x127)](_0x1a3943(0x14f),_0x1a3943(0x148)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x1a3943(0x13a));if(_0xd6d423)assertValidAppcode(_0xd6d423);}function resolveKnownApps(){const _0x232119=a205_0x25ce2e,{config:_0x42d696,layers:_0x51b4b3}=readRawConfigWithLayers(),_0xebfb26=isRecord(_0x42d696[_0x232119(0x155)])?_0x42d696[_0x232119(0x155)]:{},_0x4d9583=isRecord(_0x51b4b3[_0x232119(0x158)][_0x232119(0x155)])?_0x51b4b3[_0x232119(0x158)][_0x232119(0x155)]:{};return{..._0x4d9583,..._0xebfb26};}async function configureWorkspace(_0x396f32,_0x3885ce){const _0x5d86e3=a205_0x25ce2e,_0x4c3158=_0x396f32['str']('app')[_0x5d86e3(0x15d)](),_0x6cc5fd=_0x396f32['str'](_0x5d86e3(0x144))[_0x5d86e3(0x15d)](),_0x763945=_0x4c3158||_0x6cc5fd;if(!_0x763945)throw CliErrors['validation'](_0x5d86e3(0x14f),'Use\x20`'+CLI_BIN_NAME+_0x5d86e3(0x140)+CLI_BIN_NAME+_0x5d86e3(0x13a));if(_0x6cc5fd)assertValidAppcode(_0x6cc5fd);const _0x120c57=resolveWriteConfigPath('project'),_0x53027d=readConfigFile(_0x120c57),_0x4a4a8a=resolveKnownApps(),_0x489bd4=isRecord(_0x53027d['apps'])?{..._0x53027d[_0x5d86e3(0x155)]}:{},_0x44317c=cloneProfile(_0x489bd4[_0x763945]),_0x24ceeb=sanitizeProfile(_0x4a4a8a[_0x763945]),_0xc1df1b=_0x6cc5fd?{}:_0x24ceeb,_0x497086=_0x6cc5fd||_0xc1df1b['appcode'];if(!_0x497086){const _0x12d27e=Object[_0x5d86e3(0x143)](_0x4a4a8a),_0x2e5a67=_0x12d27e[_0x5d86e3(0x15e)]===0x0?_0x5d86e3(0x148)+CLI_BIN_NAME+_0x5d86e3(0x13d)+_0x3885ce+_0x5d86e3(0x157)+_0x763945+'\x20--appcode\x20<code>`.':_0x5d86e3(0x14e)+_0x12d27e[_0x5d86e3(0x147)](',\x20');throw CliErrors[_0x5d86e3(0x127)](_0x5d86e3(0x14a)+_0x763945+_0x5d86e3(0x131),_0x2e5a67);}assertValidAppcode(String(_0x497086));const _0x183c10={..._0xc1df1b,..._0x44317c,'appcode':String(_0x497086),...collectWorkspaceProfileOverrides(_0x396f32)};return _0x489bd4[_0x763945]=_0x183c10,_0x53027d[_0x5d86e3(0x155)]=_0x489bd4,_0x53027d[_0x5d86e3(0x130)]=_0x763945,delete _0x53027d['appcode'],delete _0x53027d['app'],_0x183c10[_0x5d86e3(0x149)]&&(_0x53027d[_0x5d86e3(0x149)]=_0x183c10[_0x5d86e3(0x149)]),writeConfigFile(_0x120c57,_0x53027d),{'ok':!![],'message':_0x5d86e3(0x145)+(_0x3885ce===_0x5d86e3(0x135)?_0x5d86e3(0x12a):_0x5d86e3(0x12c))+':\x20'+_0x763945+_0x5d86e3(0x12d)+_0x183c10[_0x5d86e3(0x144)]+_0x5d86e3(0x125)+_0x120c57+_0x5d86e3(0x15b),'data':{'operation':_0x5d86e3(0x142)+_0x3885ce,'configPath':_0x120c57,'app':_0x763945,'appcode':_0x183c10[_0x5d86e3(0x144)],'env':_0x183c10[_0x5d86e3(0x149)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a205_0x25ce2e(0x13e),'command':a205_0x25ce2e(0x135),'description':a205_0x25ce2e(0x151),'risk':a205_0x25ce2e(0x12f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x135773=>configureWorkspace(_0x135773,a205_0x25ce2e(0x135))},workspaceUseDefinition={'service':a205_0x25ce2e(0x13e),'command':'use','description':a205_0x25ce2e(0x136),'risk':a205_0x25ce2e(0x12f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x129ad1=>configureWorkspace(_0x129ad1,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};function a205_0x576c(){const _0x510e7a=['386727zLGWXR','join','Use\x20`','env','App\x20\x22','riskLevel','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Missing\x20workspace\x20app\x20selector.','517755oGGKju','Initialize\x20the\x20current\x20workspace\x20app\x20binding','16DVZIsV','3drgBmH','7643763uiXEmj','apps','pageSize','\x20--app\x20','globalConfig','Invalid\x20appcode:\x20','10FiGOeC','.\x20Credentials:\x20not\x20written.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','trim','length',').\x20Config:\x20','string','validation','object','3089160kApaLS','initialized','apiDir','updated','\x20(appcode:\x20','format','write','defaultApp','\x22\x20not\x20found.','624sbTHtW','locale','519182YhYcuq','init','Switch\x20the\x20current\x20workspace\x20app\x20binding','app','84segWBy','defaultFormat','\x20workspace\x20use\x20--app\x20<name>`.','str','6986ytZZbA','\x20workspace\x20','workspace','442032cVfvlj','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','workspace.','keys','appcode','Workspace\x20'];a205_0x576c=function(){return _0x510e7a;};return a205_0x576c();}
1
+ const a203_0x4f3750=a203_0x2750;(function(_0x22b9b7,_0x3f73a9){const _0x2c5eb0=a203_0x2750,_0x4257c9=_0x22b9b7();while(!![]){try{const _0x25bbf4=parseInt(_0x2c5eb0(0xda))/0x1*(-parseInt(_0x2c5eb0(0xbe))/0x2)+parseInt(_0x2c5eb0(0xdd))/0x3*(parseInt(_0x2c5eb0(0xe1))/0x4)+parseInt(_0x2c5eb0(0xea))/0x5*(parseInt(_0x2c5eb0(0xba))/0x6)+-parseInt(_0x2c5eb0(0xb9))/0x7+parseInt(_0x2c5eb0(0xcd))/0x8+parseInt(_0x2c5eb0(0xd2))/0x9+parseInt(_0x2c5eb0(0xc6))/0xa*(-parseInt(_0x2c5eb0(0xe0))/0xb);if(_0x25bbf4===_0x3f73a9)break;else _0x4257c9['push'](_0x4257c9['shift']());}catch(_0x243187){_0x4257c9['push'](_0x4257c9['shift']());}}}(a203_0x139b,0x38082));function a203_0x139b(){const _0xab6540=['trim','workspace.','1070752wCROgJ','App\x20\x22','initialized','keys','Initialize\x20the\x20current\x20workspace\x20app\x20binding','684360pWhFHC','globalConfig','Target\x20environment','apps','Workspace\x20','object','.\x20Credentials:\x20not\x20written.','join','9dSmLwf','Use\x20`','validation','333NKTNQU','env','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','46904rhTVVy','6296MriyZL','apiDir','str','\x20workspace\x20use\x20--app\x20<name>`.','init','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','Missing\x20workspace\x20app\x20selector.','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','75385TPSstF','\x20--appcode\x20<code>`.','appcode','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','length','pageSize','riskLevel','use','658021oqHyAN','84toOBYv','locale','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','string','16894goLfDJ','defaultFormat','app','\x20workspace\x20','isArray','\x20(appcode:\x20','\x22\x20not\x20found.','workspace','460HYxemT','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','number','format','write'];a203_0x139b=function(){return _0xab6540;};return a203_0x139b();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a203_0x2750(_0x2a4b68,_0x52f8ed){_0x2a4b68=_0x2a4b68-0xb2;const _0x139bb3=a203_0x139b();let _0x2750ca=_0x139bb3[_0x2a4b68];return _0x2750ca;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a203_0x4f3750(0xb4),SAFE_PROFILE_KEYS=[a203_0x4f3750(0xb3),a203_0x4f3750(0xde),a203_0x4f3750(0xe2),a203_0x4f3750(0xc9),a203_0x4f3750(0xb6),a203_0x4f3750(0xb7),a203_0x4f3750(0xbb)],workspaceFlags=[{'name':a203_0x4f3750(0xc0),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a203_0x4f3750(0xb3),'type':'string','description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':'env','type':a203_0x4f3750(0xbd),'description':a203_0x4f3750(0xd4),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a203_0x4f3750(0xbd),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a203_0x4f3750(0xbf),'type':'string','description':a203_0x4f3750(0xdf),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a203_0x4f3750(0xb6),'type':a203_0x4f3750(0xc8),'description':a203_0x4f3750(0xe9)},{'name':a203_0x4f3750(0xb7),'type':a203_0x4f3750(0xbd),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a203_0x4f3750(0xbb),'type':a203_0x4f3750(0xbd),'description':a203_0x4f3750(0xbc)}];function isRecord(_0xf584e){const _0x4475f9=a203_0x4f3750;return!!_0xf584e&&typeof _0xf584e===_0x4475f9(0xd7)&&!Array[_0x4475f9(0xc2)](_0xf584e);}function assertValidAppcode(_0x3a0fd5){const _0xcce952=a203_0x4f3750,{valid:_0x957c4c,message:_0x193e30}=validateAppcode(_0x3a0fd5);if(!_0x957c4c)throw CliErrors[_0xcce952(0xdc)]('Invalid\x20appcode:\x20'+_0x3a0fd5,_0x193e30);}function sanitizeProfile(_0x105c68){if(!isRecord(_0x105c68))return{};const _0x2d6dab={};for(const _0x9431b4 of SAFE_PROFILE_KEYS){if(_0x105c68[_0x9431b4]!==undefined)_0x2d6dab[_0x9431b4]=_0x105c68[_0x9431b4];}return _0x2d6dab;}function cloneProfile(_0x31f5e1){return isRecord(_0x31f5e1)?{..._0x31f5e1}:{};}function collectWorkspaceProfileOverrides(_0x3569c8){const _0x160e3e=a203_0x4f3750,_0xf5d65c={},_0x52bede=_0x3569c8[_0x160e3e(0xe3)](_0x160e3e(0xde)),_0x35d6c8=_0x3569c8['str'](_0x160e3e(0xe2)),_0x18b7b5=_0x3569c8[_0x160e3e(0xe3)](_0x160e3e(0xbf)),_0x1c9a58=_0x3569c8['flag'](_0x160e3e(0xb6)),_0x47a315=_0x3569c8[_0x160e3e(0xe3)](_0x160e3e(0xb7)),_0x19f111=_0x3569c8[_0x160e3e(0xe3)](_0x160e3e(0xbb));if(_0x52bede)_0xf5d65c[_0x160e3e(0xde)]=_0x52bede;if(_0x35d6c8)_0xf5d65c[_0x160e3e(0xe2)]=_0x35d6c8;if(_0x18b7b5)_0xf5d65c[_0x160e3e(0xc9)]=_0x18b7b5;if(_0x1c9a58!==undefined&&_0x1c9a58!=='')_0xf5d65c[_0x160e3e(0xb6)]=Number(_0x1c9a58);if(_0x47a315)_0xf5d65c[_0x160e3e(0xb7)]=_0x47a315;if(_0x19f111)_0xf5d65c[_0x160e3e(0xbb)]=_0x19f111;return _0xf5d65c;}async function validateWorkspaceArgs(_0x20b55f){const _0x375077=a203_0x4f3750,_0x806fd6=_0x20b55f['str']('app')['trim'](),_0x5c63c5=_0x20b55f[_0x375077(0xe3)](_0x375077(0xb3))['trim']();if(!_0x806fd6&&!_0x5c63c5)throw CliErrors[_0x375077(0xdc)](_0x375077(0xe8),_0x375077(0xdb)+CLI_BIN_NAME+_0x375077(0xc7)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5c63c5)assertValidAppcode(_0x5c63c5);}function resolveKnownApps(){const _0x135247=a203_0x4f3750,{config:_0x3fed89,layers:_0x3fb040}=readRawConfigWithLayers(),_0x1cf175=isRecord(_0x3fed89[_0x135247(0xd5)])?_0x3fed89[_0x135247(0xd5)]:{},_0x4f3d2f=isRecord(_0x3fb040['globalConfig'][_0x135247(0xd5)])?_0x3fb040[_0x135247(0xd3)][_0x135247(0xd5)]:{};return{..._0x4f3d2f,..._0x1cf175};}async function configureWorkspace(_0x48c7ed,_0x4625ab){const _0x2012aa=a203_0x4f3750,_0x9cf643=_0x48c7ed[_0x2012aa(0xe3)](_0x2012aa(0xc0))[_0x2012aa(0xcb)](),_0x5805df=_0x48c7ed[_0x2012aa(0xe3)](_0x2012aa(0xb3))[_0x2012aa(0xcb)](),_0x46962f=_0x9cf643||_0x5805df;if(!_0x46962f)throw CliErrors[_0x2012aa(0xdc)]('Missing\x20workspace\x20app\x20selector.',_0x2012aa(0xdb)+CLI_BIN_NAME+_0x2012aa(0xc7)+CLI_BIN_NAME+_0x2012aa(0xe4));if(_0x5805df)assertValidAppcode(_0x5805df);const _0x1b2552=resolveWriteConfigPath('project'),_0x3bd75b=readConfigFile(_0x1b2552),_0x38ca67=resolveKnownApps(),_0x50e148=isRecord(_0x3bd75b['apps'])?{..._0x3bd75b[_0x2012aa(0xd5)]}:{},_0x2209c5=cloneProfile(_0x50e148[_0x46962f]),_0x5d05d8=sanitizeProfile(_0x38ca67[_0x46962f]),_0x16dec4=_0x5805df?{}:_0x5d05d8,_0x53ed77=_0x5805df||_0x16dec4[_0x2012aa(0xb3)];if(!_0x53ed77){const _0x48a275=Object[_0x2012aa(0xd0)](_0x38ca67),_0x180f27=_0x48a275[_0x2012aa(0xb5)]===0x0?_0x2012aa(0xdb)+CLI_BIN_NAME+_0x2012aa(0xc1)+_0x4625ab+'\x20--app\x20'+_0x46962f+_0x2012aa(0xb2):_0x2012aa(0xe6)+_0x48a275[_0x2012aa(0xd9)](',\x20');throw CliErrors['validation'](_0x2012aa(0xce)+_0x46962f+_0x2012aa(0xc4),_0x180f27);}assertValidAppcode(String(_0x53ed77));const _0x21cf4a={..._0x16dec4,..._0x2209c5,'appcode':String(_0x53ed77),...collectWorkspaceProfileOverrides(_0x48c7ed)};return _0x50e148[_0x46962f]=_0x21cf4a,_0x3bd75b[_0x2012aa(0xd5)]=_0x50e148,normalizeStoredDefaultApp(_0x3bd75b,_0x46962f),delete _0x3bd75b[_0x2012aa(0xb3)],delete _0x3bd75b[_0x2012aa(0xc0)],_0x21cf4a[_0x2012aa(0xde)]&&(_0x3bd75b['env']=_0x21cf4a['env']),writeConfigFile(_0x1b2552,_0x3bd75b),{'ok':!![],'message':_0x2012aa(0xd6)+(_0x4625ab===_0x2012aa(0xe5)?_0x2012aa(0xcf):'updated')+':\x20'+_0x46962f+_0x2012aa(0xc3)+_0x21cf4a[_0x2012aa(0xb3)]+').\x20Config:\x20'+_0x1b2552+_0x2012aa(0xd8),'data':{'operation':_0x2012aa(0xcc)+_0x4625ab,'configPath':_0x1b2552,'app':_0x46962f,'appcode':_0x21cf4a['appcode'],'env':_0x21cf4a[_0x2012aa(0xde)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a203_0x4f3750(0xc5),'command':a203_0x4f3750(0xe5),'description':a203_0x4f3750(0xd1),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x505fa1=>configureWorkspace(_0x505fa1,a203_0x4f3750(0xe5))},workspaceUseDefinition={'service':a203_0x4f3750(0xc5),'command':a203_0x4f3750(0xb8),'description':a203_0x4f3750(0xe7),'risk':a203_0x4f3750(0xca),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1ffe47=>configureWorkspace(_0x1ffe47,a203_0x4f3750(0xb8))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a206_0x35b373=a206_0x2396;function a206_0x2396(_0x128837,_0x390033){_0x128837=_0x128837-0x14a;const _0x3291bb=a206_0x3291();let _0x2396a5=_0x3291bb[_0x128837];return _0x2396a5;}(function(_0x341992,_0x53344a){const _0x27de4f=a206_0x2396,_0xa3f60b=_0x341992();while(!![]){try{const _0x44cf63=parseInt(_0x27de4f(0x157))/0x1*(parseInt(_0x27de4f(0x14f))/0x2)+-parseInt(_0x27de4f(0x14b))/0x3+parseInt(_0x27de4f(0x151))/0x4+-parseInt(_0x27de4f(0x155))/0x5*(parseInt(_0x27de4f(0x14e))/0x6)+-parseInt(_0x27de4f(0x152))/0x7*(parseInt(_0x27de4f(0x159))/0x8)+parseInt(_0x27de4f(0x156))/0x9*(parseInt(_0x27de4f(0x154))/0xa)+-parseInt(_0x27de4f(0x150))/0xb*(-parseInt(_0x27de4f(0x14d))/0xc);if(_0x44cf63===_0x53344a)break;else _0xa3f60b['push'](_0xa3f60b['shift']());}catch(_0x13b1c7){_0xa3f60b['push'](_0xa3f60b['shift']());}}}(a206_0x3291,0x35848));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a206_0x35b373(0x14a),'description':a206_0x35b373(0x14c),'risk':a206_0x35b373(0x158),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a206_0x35b373(0x153),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x5dd976=>validateAppName(_0x5dd976,'workspace\x20remove'),'execute':_0x37b245=>runAppRemove(_0x37b245,'workspace\x20remove')};function a206_0x3291(){const _0x359ec0=['282396UImDsI','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','12osyZBE','34824hwmyBD','22JphTVb','1948507mcxBEq','408040CKruFh','9583OhTbRT','name','190yYzpJT','25KEXmYc','27243rKdZVc','21551QtYflm','write','1352IRVliu','remove'];a206_0x3291=function(){return _0x359ec0;};return a206_0x3291();}
1
+ const a204_0x53edd9=a204_0x208a;(function(_0x2a876e,_0x27c3d8){const _0x35f459=a204_0x208a,_0x236e34=_0x2a876e();while(!![]){try{const _0xbc5aea=-parseInt(_0x35f459(0x71))/0x1+-parseInt(_0x35f459(0x79))/0x2*(parseInt(_0x35f459(0x74))/0x3)+parseInt(_0x35f459(0x7a))/0x4*(parseInt(_0x35f459(0x7c))/0x5)+parseInt(_0x35f459(0x78))/0x6+parseInt(_0x35f459(0x6d))/0x7*(parseInt(_0x35f459(0x7b))/0x8)+parseInt(_0x35f459(0x77))/0x9+-parseInt(_0x35f459(0x6f))/0xa;if(_0xbc5aea===_0x27c3d8)break;else _0x236e34['push'](_0x236e34['shift']());}catch(_0x269820){_0x236e34['push'](_0x236e34['shift']());}}}(a204_0x3a98,0x96361));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a204_0x208a(_0x2ff04d,_0x41fcf8){_0x2ff04d=_0x2ff04d-0x6d;const _0x3a9870=a204_0x3a98();let _0x208a49=_0x3a9870[_0x2ff04d];return _0x208a49;}export const workspaceRemoveDefinition={'service':'workspace','command':a204_0x53edd9(0x73),'description':a204_0x53edd9(0x72),'risk':a204_0x53edd9(0x70),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a204_0x53edd9(0x75),'description':a204_0x53edd9(0x6e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x31ab08=>validateAppName(_0x31ab08,a204_0x53edd9(0x76)),'execute':_0x36d295=>runAppRemove(_0x36d295,a204_0x53edd9(0x76))};function a204_0x3a98(){const _0x1b5c7=['App\x20profile\x20name\x20to\x20remove','23471790ipbAhy','write','7262UXppFW','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','3SJGNhM','name','workspace\x20remove','9397512FjTUIB','2377500GNBEHh','267978KduXLW','666552EgGjUx','5307592xNBpsY','30vaUIHY','7XWrCHo'];a204_0x3a98=function(){return _0x1b5c7;};return a204_0x3a98();}
@@ -0,0 +1,10 @@
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
2
+ export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
3
+ export type DomainConfig = Partial<Record<DomainConfigField, string>>;
4
+ /** Old domain keys accepted only while reading existing configuration. */
5
+ export declare const LEGACY_DOMAIN_CONFIG_FIELDS: readonly ["agentDomain", "platformDomain", "skillHubDomain"];
6
+ export declare function normalizeDomainOrigin(field: DomainConfigField, input: unknown): string;
7
+ export declare function readDomainConfig(filePath: string): DomainConfig;
8
+ export declare function resolveDomainFlags(ctx: {
9
+ str(name: string): string;
10
+ }): DomainConfig;
@@ -0,0 +1 @@
1
+ const a205_0x4bfc3a=a205_0x2db2;function a205_0x2db2(_0x1e2c74,_0x48ad40){_0x1e2c74=_0x1e2c74-0x1bc;const _0x2aa5d2=a205_0x2aa5();let _0x2db26d=_0x2aa5d2[_0x1e2c74];return _0x2db26d;}(function(_0x32f1f5,_0xb64a76){const _0x28ff50=a205_0x2db2,_0x48a9d1=_0x32f1f5();while(!![]){try{const _0x59f405=-parseInt(_0x28ff50(0x1d5))/0x1*(parseInt(_0x28ff50(0x1df))/0x2)+-parseInt(_0x28ff50(0x1e7))/0x3*(parseInt(_0x28ff50(0x1e5))/0x4)+parseInt(_0x28ff50(0x1be))/0x5*(parseInt(_0x28ff50(0x1ce))/0x6)+parseInt(_0x28ff50(0x1d3))/0x7+-parseInt(_0x28ff50(0x1e6))/0x8*(-parseInt(_0x28ff50(0x1e2))/0x9)+-parseInt(_0x28ff50(0x1c9))/0xa*(-parseInt(_0x28ff50(0x1eb))/0xb)+-parseInt(_0x28ff50(0x1e0))/0xc*(parseInt(_0x28ff50(0x1e8))/0xd);if(_0x59f405===_0xb64a76)break;else _0x48a9d1['push'](_0x48a9d1['shift']());}catch(_0x1912fe){_0x48a9d1['push'](_0x48a9d1['shift']());}}}(a205_0x2aa5,0x5262d));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a205_0x4bfc3a(0x1da),a205_0x4bfc3a(0x1ec),'runtimeDomain','skillDomain',a205_0x4bfc3a(0x1cd),a205_0x4bfc3a(0x1ed)];const DOMAIN_FLAGS={'userDomain':a205_0x4bfc3a(0x1c0),'apiDomain':a205_0x4bfc3a(0x1dd),'runtimeDomain':a205_0x4bfc3a(0x1d9),'skillDomain':'skill-domain','kbDomain':a205_0x4bfc3a(0x1c7),'appDomain':a205_0x4bfc3a(0x1ea)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a205_0x4bfc3a(0x1db),a205_0x4bfc3a(0x1d0),a205_0x4bfc3a(0x1cc)];function a205_0x2aa5(){const _0x25e2fb=['trim','109VSehVx','Invalid\x20','username','Domain\x20config\x20file\x20not\x20found:\x20','runtime-domain','userDomain','agentDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','api-domain','protocol','3508bkWCrn','24fyEfjn','password','3174057Ruxnts','string','origin','332XSLYNg','8GxoaLv','6627RBIjfA','2567591rebhXr','Allowed\x20fields:\x20','app-domain','50237ToVqiE','apiDomain','appDomain','domain-config','parse','\x22\x20is\x20not\x20a\x20valid\x20URL.','69035LMgSUQ','validation','user-domain','str','includes',':\x20\x22','search','isArray',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','kb-domain','keys','760TlVDwq','Invalid\x20domain\x20config\x20JSON:\x20','join','skillHubDomain','kbDomain','126xJNLhf','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','platformDomain','pathname','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','821016rkpLXb'];a205_0x2aa5=function(){return _0x25e2fb;};return a205_0x2aa5();}export function normalizeDomainOrigin(_0x52b523,_0x50e91f){const _0x1fe972=a205_0x4bfc3a;if(typeof _0x50e91f!==_0x1fe972(0x1e3)||!_0x50e91f[_0x1fe972(0x1d4)]())throw CliErrors[_0x1fe972(0x1bf)](_0x1fe972(0x1d6)+_0x52b523+_0x1fe972(0x1c6));let _0x2f399d;try{_0x2f399d=new URL(_0x50e91f[_0x1fe972(0x1d4)]());}catch{throw CliErrors[_0x1fe972(0x1bf)]('Invalid\x20'+_0x52b523+_0x1fe972(0x1c3)+_0x50e91f+_0x1fe972(0x1bd));}if(_0x2f399d[_0x1fe972(0x1de)]!=='https:'||_0x2f399d[_0x1fe972(0x1d7)]||_0x2f399d[_0x1fe972(0x1e1)]||_0x2f399d['pathname']!=='/'&&_0x2f399d[_0x1fe972(0x1d1)]!==''||_0x2f399d[_0x1fe972(0x1c4)]||_0x2f399d['hash'])throw CliErrors[_0x1fe972(0x1bf)](_0x1fe972(0x1d6)+_0x52b523+_0x1fe972(0x1dc),_0x1fe972(0x1cf));return _0x2f399d[_0x1fe972(0x1e4)];}export function readDomainConfig(_0x28e0c0){const _0x498343=a205_0x4bfc3a,_0x5ed7bb=isAbsolute(_0x28e0c0)?_0x28e0c0:resolve(process['cwd'](),_0x28e0c0);if(!existsSync(_0x5ed7bb))throw CliErrors[_0x498343(0x1bf)](_0x498343(0x1d8)+_0x5ed7bb);let _0x55ac1d;try{_0x55ac1d=JSON[_0x498343(0x1bc)](readFileSync(_0x5ed7bb,'utf8'));}catch{throw CliErrors['validation'](_0x498343(0x1ca)+_0x5ed7bb);}if(!_0x55ac1d||typeof _0x55ac1d!=='object'||Array[_0x498343(0x1c5)](_0x55ac1d))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x302b64=_0x55ac1d,_0x570861=Object[_0x498343(0x1c8)](_0x302b64)['filter'](_0x48216d=>!DOMAIN_CONFIG_FIELDS[_0x498343(0x1c2)](_0x48216d));if(_0x570861['length']>0x0)throw CliErrors[_0x498343(0x1bf)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x570861[_0x498343(0x1cb)](',\x20'),_0x498343(0x1e9)+DOMAIN_CONFIG_FIELDS[_0x498343(0x1cb)](',\x20'));const _0x4d85a6={};for(const _0x450eef of DOMAIN_CONFIG_FIELDS){_0x302b64[_0x450eef]!==undefined&&(_0x4d85a6[_0x450eef]=normalizeDomainOrigin(_0x450eef,_0x302b64[_0x450eef]));}if(Object[_0x498343(0x1c8)](_0x4d85a6)['length']===0x0)throw CliErrors[_0x498343(0x1bf)](_0x498343(0x1d2));return _0x4d85a6;}export function resolveDomainFlags(_0xae1b84){const _0x2811fa=a205_0x4bfc3a,_0x284307=(_0xae1b84[_0x2811fa(0x1c1)](_0x2811fa(0x1ee))||'')['trim'](),_0x3fc46b=_0x284307?readDomainConfig(_0x284307):{};for(const _0x481ca8 of DOMAIN_CONFIG_FIELDS){const _0x25d6e1=(_0xae1b84[_0x2811fa(0x1c1)](DOMAIN_FLAGS[_0x481ca8])||'')[_0x2811fa(0x1d4)]();if(_0x25d6e1)_0x3fc46b[_0x481ca8]=normalizeDomainOrigin(_0x481ca8,_0x25d6e1);}return _0x3fc46b;}
@@ -1,6 +1,6 @@
1
1
  import type { FlagDef } from "../framework/types.js";
2
2
  export { DEFAULT_CONFIG_VALUES } from "../constant/defaults.js";
3
- export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel"];
3
+ export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain"];
4
4
  export interface ConfigMetadataFields {
5
5
  version?: string;
6
6
  createdAt?: string;
@@ -42,6 +42,8 @@ export declare function buildAppDoctorFields(profile: Record<string, any>, effec
42
42
  };
43
43
  };
44
44
  export declare function buildCanonicalAppConfig(appCodes: string[], env?: string): Record<string, any>;
45
+ /** Persist defaultApp only when it disambiguates two or more apps. */
46
+ export declare function normalizeStoredDefaultApp(config: Record<string, any>, preferredApp?: string): string | undefined;
45
47
  export declare function buildCanonicalProjectConfig(base: Record<string, unknown>, options: {
46
48
  appCodes?: string[];
47
49
  env?: string;
@@ -1 +1 @@
1
- const a207_0x4ff980=a207_0x1de0;(function(_0x28c124,_0x34456d){const _0x33192e=a207_0x1de0,_0xa1b8b0=_0x28c124();while(!![]){try{const _0x26c21c=-parseInt(_0x33192e(0x14e))/0x1*(parseInt(_0x33192e(0x14a))/0x2)+-parseInt(_0x33192e(0x141))/0x3*(-parseInt(_0x33192e(0x150))/0x4)+parseInt(_0x33192e(0x151))/0x5+parseInt(_0x33192e(0x148))/0x6*(parseInt(_0x33192e(0x152))/0x7)+-parseInt(_0x33192e(0x131))/0x8+-parseInt(_0x33192e(0x146))/0x9+parseInt(_0x33192e(0x136))/0xa;if(_0x26c21c===_0x34456d)break;else _0xa1b8b0['push'](_0xa1b8b0['shift']());}catch(_0x37d450){_0xa1b8b0['push'](_0xa1b8b0['shift']());}}}(a207_0x29cb,0xed014));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a207_0x4ff980(0x13e),a207_0x4ff980(0x130),a207_0x4ff980(0x139),a207_0x4ff980(0x147),a207_0x4ff980(0x138)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x4ff980(0x13d),a207_0x4ff980(0x143),a207_0x4ff980(0x139),a207_0x4ff980(0x147),'cookie',a207_0x4ff980(0x130),a207_0x4ff980(0x13b)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x65c3a2){const _0x2b239c=a207_0x4ff980;return[..._0x65c3a2][_0x2b239c(0x14c)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x15b487){const _0x267915=a207_0x4ff980;return TOP_LEVEL_CONFIG_KEYS[_0x267915(0x134)](_0x15b487);}function a207_0x29cb(){const _0x6bceed=['1262643HLBoxe','Auth\x20cookie','env','defaultFormat','filter','9393012exrNme','format','24vnxrSz','apps','547978ZVLGJg','Risk\x20level','join','length','1xNlIaH','app','16NEHieJ','1593405MPQJub','523922QxABNb','entries','zh-CN','inherit','pageSize','toLowerCase','accessKey','1517480CksUdX','defaultApp','en-US','has','string','1765250AYHpZb','Locale','riskLevel','locale','number','apiDir','API\x20directory\x20path','appcode','cookie','Access\x20key','map'];a207_0x29cb=function(){return _0x6bceed;};return a207_0x29cb();}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a207_0x4ff980(0x13b),'cookie':a207_0x4ff980(0x13e),'accessKey':'accessKey','defaultFormat':'format','pageSize':'pageSize','riskLevel':a207_0x4ff980(0x138),'locale':a207_0x4ff980(0x139)};export function getAppProfileFlagDefs(){const _0x187296=a207_0x4ff980;return[{'name':_0x187296(0x143),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x187296(0x13b),'type':_0x187296(0x135),'description':_0x187296(0x13c)},{'name':_0x187296(0x13e),'type':_0x187296(0x135),'description':_0x187296(0x142),'hidden':!![]},{'name':'accessKey','type':_0x187296(0x135),'description':_0x187296(0x13f),'hidden':!![]},{'name':_0x187296(0x144),'type':_0x187296(0x135),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x187296(0x13a),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x187296(0x135),'description':_0x187296(0x14b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x187296(0x139),'type':'string','description':_0x187296(0x137)}];}function a207_0x1de0(_0x5e710a,_0x4dd355){_0x5e710a=_0x5e710a-0x130;const _0x29cb59=a207_0x29cb();let _0x1de031=_0x29cb59[_0x5e710a];return _0x1de031;}export function collectAppProfileOverrides(_0x4741ef){const _0x108d97=a207_0x4ff980,_0x4b07cb={};for(const [_0x28336c,_0x23d7e9]of Object[_0x108d97(0x153)](APP_PROFILE_FLAG_KEY_MAP)){const _0x33b862=_0x4741ef(_0x28336c);if(!_0x33b862)continue;_0x4b07cb[_0x23d7e9]=_0x23d7e9===_0x108d97(0x156)?Number(_0x33b862):_0x33b862;}return _0x4b07cb;}export function buildAppProfileListFields(_0x3cc20e){const _0x3f5fc8=a207_0x4ff980;return{'env':_0x3cc20e['env']??null,'apiDir':_0x3cc20e[_0x3f5fc8(0x13b)]??null,'hasCookie':!!_0x3cc20e[_0x3f5fc8(0x13e)],'hasAccessKey':!!_0x3cc20e[_0x3f5fc8(0x130)],'format':_0x3cc20e[_0x3f5fc8(0x147)]??null,'pageSize':_0x3cc20e['pageSize']??null,'riskLevel':_0x3cc20e[_0x3f5fc8(0x138)]??null,'locale':_0x3cc20e[_0x3f5fc8(0x139)]??null};}export function buildAppDoctorFields(_0x35c0c0,_0x4b9b45){const _0x4a9cb6=a207_0x4ff980;return{'env':{'value':_0x35c0c0[_0x4a9cb6(0x143)]||_0x4b9b45['env'],'source':_0x35c0c0['env']?_0x4a9cb6(0x14f):_0x4a9cb6(0x155)},'apiDir':{'value':_0x35c0c0[_0x4a9cb6(0x13b)]||_0x4b9b45[_0x4a9cb6(0x13b)],'source':_0x35c0c0[_0x4a9cb6(0x13b)]?_0x4a9cb6(0x14f):'inherit'},'cookie':{'value':_0x35c0c0['cookie']||_0x4b9b45[_0x4a9cb6(0x13e)],'source':_0x35c0c0[_0x4a9cb6(0x13e)]?'app':_0x4a9cb6(0x155)},'accessKey':{'value':_0x35c0c0[_0x4a9cb6(0x130)]||_0x4b9b45[_0x4a9cb6(0x130)],'source':_0x35c0c0[_0x4a9cb6(0x130)]?_0x4a9cb6(0x14f):_0x4a9cb6(0x155)}};}export function buildCanonicalAppConfig(_0x1dbf92,_0x6e2e1){const _0x305740=a207_0x4ff980,_0x453441=_0x1dbf92[_0x305740(0x140)](_0x3166b0=>String(_0x3166b0||'')['trim']())[_0x305740(0x145)](Boolean);if(_0x453441[_0x305740(0x14d)]===0x0)return{};const _0x4a5413={};for(const _0x42e49f of _0x453441){_0x4a5413[_0x42e49f]=_0x6e2e1?{'appcode':_0x42e49f,'env':_0x6e2e1}:{'appcode':_0x42e49f};}return{'apps':_0x4a5413,'defaultApp':_0x453441[0x0]};}export function buildCanonicalProjectConfig(_0x14ad8b,_0x51e493){const _0x4c9a24=a207_0x4ff980,{appCodes:appCodes=[],env:_0x42c56a,metadata:_0x15898d}=_0x51e493,_0x2c0bbe={..._0x14ad8b,..._0x15898d||{}};delete _0x2c0bbe['appcode'],delete _0x2c0bbe[_0x4c9a24(0x14f)];if(_0x42c56a)_0x2c0bbe[_0x4c9a24(0x143)]=_0x42c56a;else!_0x2c0bbe['env']&&(_0x2c0bbe['env']=DEFAULT_CONFIG_VALUES[_0x4c9a24(0x143)]);const _0x3fab73=buildCanonicalAppConfig(appCodes,_0x2c0bbe[_0x4c9a24(0x143)]);return Object['keys'](_0x3fab73)['length']>0x0&&(_0x2c0bbe['apps']=_0x3fab73[_0x4c9a24(0x149)],_0x2c0bbe[_0x4c9a24(0x132)]=_0x3fab73[_0x4c9a24(0x132)]),_0x2c0bbe;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a207_0x4ff980(0x154),'en':'en-US','en-us':'en-US','en_us':a207_0x4ff980(0x133)};export function normalizeLocale(_0x45d889){const _0x3fd597=a207_0x4ff980;if(!_0x45d889)return null;return LOCALE_MAP[_0x45d889[_0x3fd597(0x157)]()]??null;}
1
+ const a206_0x392f5e=a206_0x5dcd;(function(_0x2ed2fe,_0x5b319b){const _0x249ac0=a206_0x5dcd,_0x32dcc3=_0x2ed2fe();while(!![]){try{const _0x38d991=-parseInt(_0x249ac0(0x94))/0x1*(parseInt(_0x249ac0(0x86))/0x2)+parseInt(_0x249ac0(0x9d))/0x3+parseInt(_0x249ac0(0x75))/0x4+-parseInt(_0x249ac0(0x8e))/0x5+-parseInt(_0x249ac0(0x85))/0x6+-parseInt(_0x249ac0(0x95))/0x7*(-parseInt(_0x249ac0(0x8c))/0x8)+-parseInt(_0x249ac0(0x74))/0x9*(-parseInt(_0x249ac0(0x8b))/0xa);if(_0x38d991===_0x5b319b)break;else _0x32dcc3['push'](_0x32dcc3['shift']());}catch(_0x1aee33){_0x32dcc3['push'](_0x32dcc3['shift']());}}}(a206_0x348e,0x61a8d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a206_0x348e(){const _0xc8076e=['306sPmsGj','2451020bKGHOF','keys','string','Auth\x20cookie','Config\x20key\x20(','cookie','trim','appcode','defaultApp','zh-CN','en-US','Risk\x20level','Access\x20key','format','length','apiDomain','2739486PilCOh','62pAeUdr','join','number','env','apiDir','259340qqkYEX','8OBnnsX','skillDomain','1927185lBBuDf','userDomain','pageSize','API\x20directory\x20path','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','kbDomain','15877LTEdTU','313670xCemjK','locale','filter','runtimeDomain','Default\x20page\x20size','toLowerCase','inherit','region','584691MNZZzy','accessKey','riskLevel','appDomain','defaultFormat','app','map','apps','has','Target\x20environment'];a206_0x348e=function(){return _0xc8076e;};return a206_0x348e();}import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a206_0x392f5e(0x7a),a206_0x392f5e(0x6b),a206_0x392f5e(0x96),'format','riskLevel',a206_0x392f5e(0x9c),a206_0x392f5e(0x8f),a206_0x392f5e(0x84),'runtimeDomain',a206_0x392f5e(0x8d),a206_0x392f5e(0x93),a206_0x392f5e(0x6d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x392f5e(0x7c),'env',a206_0x392f5e(0x96),a206_0x392f5e(0x82),'cookie',a206_0x392f5e(0x6b),a206_0x392f5e(0x8a),'region',a206_0x392f5e(0x8f),a206_0x392f5e(0x84),a206_0x392f5e(0x98),a206_0x392f5e(0x8d),a206_0x392f5e(0x93),a206_0x392f5e(0x6d)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x563fe2){const _0x370b19=a206_0x392f5e;return[..._0x563fe2][_0x370b19(0x87)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x24a349){const _0x141f8b=a206_0x392f5e;return TOP_LEVEL_CONFIG_KEYS[_0x141f8b(0x72)](_0x24a349);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x551398=a206_0x392f5e;return _0x551398(0x79)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a206_0x392f5e(0x89),'apiDir':a206_0x392f5e(0x8a),'cookie':a206_0x392f5e(0x7a),'accessKey':a206_0x392f5e(0x6b),'defaultFormat':'format','pageSize':a206_0x392f5e(0x90),'riskLevel':a206_0x392f5e(0x6c),'locale':a206_0x392f5e(0x96)};export function getAppProfileFlagDefs(){const _0x37b0da=a206_0x392f5e;return[{'name':_0x37b0da(0x89),'type':_0x37b0da(0x77),'description':_0x37b0da(0x73),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x37b0da(0x91)},{'name':_0x37b0da(0x7a),'type':'string','description':_0x37b0da(0x78),'hidden':!![]},{'name':'accessKey','type':_0x37b0da(0x77),'description':_0x37b0da(0x81),'hidden':!![]},{'name':_0x37b0da(0x6e),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x37b0da(0x90),'type':_0x37b0da(0x88),'description':_0x37b0da(0x99)},{'name':'riskLevel','type':'string','description':_0x37b0da(0x80),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x37b0da(0x96),'type':'string','description':_0x37b0da(0x92)}];}function a206_0x5dcd(_0x552fe6,_0x56e554){_0x552fe6=_0x552fe6-0x6b;const _0x348efe=a206_0x348e();let _0x5dcd40=_0x348efe[_0x552fe6];return _0x5dcd40;}export function collectAppProfileOverrides(_0x4a6141){const _0x12782f=a206_0x392f5e,_0x46f400={};for(const [_0x42d5d8,_0x25463e]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x526f55=_0x4a6141(_0x42d5d8);if(!_0x526f55)continue;_0x46f400[_0x25463e]=_0x25463e===_0x12782f(0x90)?Number(_0x526f55):_0x526f55;}return _0x46f400;}export function buildAppProfileListFields(_0x768085){const _0x1f7953=a206_0x392f5e;return{'env':_0x768085[_0x1f7953(0x89)]??null,'apiDir':_0x768085[_0x1f7953(0x8a)]??null,'hasCookie':!!_0x768085[_0x1f7953(0x7a)],'hasAccessKey':!!_0x768085[_0x1f7953(0x6b)],'format':_0x768085[_0x1f7953(0x82)]??null,'pageSize':_0x768085['pageSize']??null,'riskLevel':_0x768085[_0x1f7953(0x6c)]??null,'locale':_0x768085[_0x1f7953(0x96)]??null};}export function buildAppDoctorFields(_0x3f1e20,_0x382f0a){const _0x22c487=a206_0x392f5e;return{'env':{'value':_0x3f1e20[_0x22c487(0x89)]||_0x382f0a[_0x22c487(0x89)],'source':_0x3f1e20[_0x22c487(0x89)]?'app':'inherit'},'apiDir':{'value':_0x3f1e20[_0x22c487(0x8a)]||_0x382f0a[_0x22c487(0x8a)],'source':_0x3f1e20['apiDir']?_0x22c487(0x6f):_0x22c487(0x9b)},'cookie':{'value':_0x3f1e20['cookie']||_0x382f0a[_0x22c487(0x7a)],'source':_0x3f1e20['cookie']?_0x22c487(0x6f):_0x22c487(0x9b)},'accessKey':{'value':_0x3f1e20[_0x22c487(0x6b)]||_0x382f0a[_0x22c487(0x6b)],'source':_0x3f1e20[_0x22c487(0x6b)]?_0x22c487(0x6f):_0x22c487(0x9b)}};}export function buildCanonicalAppConfig(_0x31b2d6,_0x5c433d){const _0x36e009=a206_0x392f5e,_0x2ba11a=_0x31b2d6[_0x36e009(0x70)](_0x1da611=>String(_0x1da611||'')[_0x36e009(0x7b)]())[_0x36e009(0x97)](Boolean);if(_0x2ba11a[_0x36e009(0x83)]===0x0)return{};const _0x5a3046={};for(const _0x588fe4 of _0x2ba11a){_0x5a3046[_0x588fe4]=_0x5c433d?{'appcode':_0x588fe4,'env':_0x5c433d}:{'appcode':_0x588fe4};}return _0x2ba11a[_0x36e009(0x83)]>0x1?{'apps':_0x5a3046,'defaultApp':_0x2ba11a[0x0]}:{'apps':_0x5a3046};}export function normalizeStoredDefaultApp(_0x1789df,_0x5ba982){const _0x26a605=a206_0x392f5e,_0x53f31c=_0x1789df[_0x26a605(0x71)]&&typeof _0x1789df['apps']==='object'?_0x1789df[_0x26a605(0x71)]:{},_0x1567be=Object[_0x26a605(0x76)](_0x53f31c);if(_0x1567be['length']<=0x1)return delete _0x1789df['defaultApp'],undefined;const _0x12553e=typeof _0x1789df[_0x26a605(0x7d)]==='string'&&_0x53f31c[_0x1789df[_0x26a605(0x7d)]]?_0x1789df[_0x26a605(0x7d)]:undefined,_0x569392=_0x5ba982&&_0x53f31c[_0x5ba982]?_0x5ba982:_0x12553e;if(_0x569392)return _0x1789df[_0x26a605(0x7d)]=_0x569392,_0x569392;return delete _0x1789df[_0x26a605(0x7d)],undefined;}export function buildCanonicalProjectConfig(_0x320e7c,_0x433878){const _0x3b9118=a206_0x392f5e,{appCodes:appCodes=[],env:_0x31f583,metadata:_0x4922e0}=_0x433878,_0x278fb5={..._0x320e7c,..._0x4922e0||{}};delete _0x278fb5['appcode'],delete _0x278fb5['app'];if(_0x31f583)_0x278fb5[_0x3b9118(0x89)]=_0x31f583;else!_0x278fb5[_0x3b9118(0x89)]&&(_0x278fb5[_0x3b9118(0x89)]=DEFAULT_CONFIG_VALUES['env']);const _0xf38207=buildCanonicalAppConfig(appCodes,_0x278fb5['env']);if(Object[_0x3b9118(0x76)](_0xf38207)[_0x3b9118(0x83)]>0x0){_0x278fb5[_0x3b9118(0x71)]=_0xf38207[_0x3b9118(0x71)];if(_0xf38207[_0x3b9118(0x7d)])_0x278fb5['defaultApp']=_0xf38207[_0x3b9118(0x7d)];else delete _0x278fb5[_0x3b9118(0x7d)];}return _0x278fb5;}const LOCALE_MAP={'zh':a206_0x392f5e(0x7e),'zh-cn':a206_0x392f5e(0x7e),'zh_cn':a206_0x392f5e(0x7e),'en':a206_0x392f5e(0x7f),'en-us':a206_0x392f5e(0x7f),'en_us':a206_0x392f5e(0x7f)};export function normalizeLocale(_0x27014f){const _0x4b34ed=a206_0x392f5e;if(!_0x27014f)return null;return LOCALE_MAP[_0x27014f[_0x4b34ed(0x9a)]()]??null;}
@@ -1 +1 @@
1
- const a208_0x3aad63=a208_0x2643;(function(_0x3d6dd4,_0x1674c9){const _0x21e8e0=a208_0x2643,_0x27b99c=_0x3d6dd4();while(!![]){try{const _0x522985=parseInt(_0x21e8e0(0x7c))/0x1+-parseInt(_0x21e8e0(0x83))/0x2+-parseInt(_0x21e8e0(0x7a))/0x3*(parseInt(_0x21e8e0(0x7f))/0x4)+parseInt(_0x21e8e0(0x82))/0x5*(-parseInt(_0x21e8e0(0x7e))/0x6)+-parseInt(_0x21e8e0(0x79))/0x7+-parseInt(_0x21e8e0(0x7d))/0x8+parseInt(_0x21e8e0(0x7b))/0x9*(parseInt(_0x21e8e0(0x80))/0xa);if(_0x522985===_0x1674c9)break;else _0x27b99c['push'](_0x27b99c['shift']());}catch(_0x448f1d){_0x27b99c['push'](_0x27b99c['shift']());}}}(a208_0xadce,0xe1f59));export const RABETBASE_CDN_BASE_URL=a208_0x3aad63(0x84);function a208_0x2643(_0x972313,_0xcd9ca7){_0x972313=_0x972313-0x79;const _0xadce50=a208_0xadce();let _0x26432d=_0xadce50[_0x972313];return _0x26432d;}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x3aad63(0x81);function a208_0xadce(){const _0x24e486=['5669601DgFImQ','30eRZJSM','42202341fDYAyi','1298416PMVIKN','8582040LNBGHU','191346wBCPFT','700012PKFpTf','10uElzbp','/config/index.json','205TkpJTa','243554lbBbpY','https://g.lovrabet.com/dist/rabetbase-cli'];a208_0xadce=function(){return _0x24e486;};return a208_0xadce();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';
1
+ const a207_0x277949=a207_0x44d8;(function(_0x38db93,_0xa047af){const _0x38c680=a207_0x44d8,_0x2498e0=_0x38db93();while(!![]){try{const _0x9fa8b0=-parseInt(_0x38c680(0xa3))/0x1*(-parseInt(_0x38c680(0xa1))/0x2)+parseInt(_0x38c680(0xa0))/0x3+-parseInt(_0x38c680(0xa9))/0x4*(parseInt(_0x38c680(0xaa))/0x5)+-parseInt(_0x38c680(0xa8))/0x6+-parseInt(_0x38c680(0x9f))/0x7*(parseInt(_0x38c680(0xab))/0x8)+-parseInt(_0x38c680(0xa4))/0x9+-parseInt(_0x38c680(0xa7))/0xa*(-parseInt(_0x38c680(0xac))/0xb);if(_0x9fa8b0===_0xa047af)break;else _0x2498e0['push'](_0x2498e0['shift']());}catch(_0x5c45b3){_0x2498e0['push'](_0x2498e0['shift']());}}}(a207_0x2dab,0xe9c25));export const RABETBASE_CDN_BASE_URL=a207_0x277949(0xa6);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x277949(0xa2);function a207_0x44d8(_0x1117e3,_0x29b687){_0x1117e3=_0x1117e3-0x9f;const _0x2dabd0=a207_0x2dab();let _0x44d888=_0x2dabd0[_0x1117e3];return _0x44d888;}function a207_0x2dab(){const _0x5dbe75=['25riMSsz','11640sFMcVp','11mLZwSj','6986Skwjkz','4786134GDeGvR','58lbKMva','/config/index.json','41957akbiqp','11048571adZXnK','/templates/projects','https://g.lovrabet.com/dist/rabetbase-cli','20914020OTXwRA','1605852dOjvUq','798964SfamDO'];a207_0x2dab=function(){return _0x5dbe75;};return a207_0x2dab();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a207_0x277949(0xa5);
@@ -1 +1 @@
1
- const a209_0x11de2d=a209_0x1b88;(function(_0x450b1c,_0x4000d4){const _0x5bdcfb=a209_0x1b88,_0x2418cb=_0x450b1c();while(!![]){try{const _0x2b95fb=parseInt(_0x5bdcfb(0xe5))/0x1*(-parseInt(_0x5bdcfb(0x102))/0x2)+parseInt(_0x5bdcfb(0xc8))/0x3*(parseInt(_0x5bdcfb(0x111))/0x4)+parseInt(_0x5bdcfb(0xdd))/0x5+parseInt(_0x5bdcfb(0xc6))/0x6+parseInt(_0x5bdcfb(0xd7))/0x7+parseInt(_0x5bdcfb(0x10c))/0x8+-parseInt(_0x5bdcfb(0xac))/0x9*(parseInt(_0x5bdcfb(0x110))/0xa);if(_0x2b95fb===_0x4000d4)break;else _0x2418cb['push'](_0x2418cb['shift']());}catch(_0x1c8f2e){_0x2418cb['push'](_0x2418cb['shift']());}}}(a209_0x454f,0xe3806));export const CLI_BIN_NAME=a209_0x11de2d(0xf4);function a209_0x1b88(_0x3d84c0,_0x1f5d49){_0x3d84c0=_0x3d84c0-0x93;const _0x454f25=a209_0x454f();let _0x1b88b8=_0x454f25[_0x3d84c0];return _0x1b88b8;}export const CLI_DISPLAY_NAME=a209_0x11de2d(0xdf);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a209_0x454f(){const _0x3e071a=['verbose','Enable\x20Backend\x20Function\x20save','code','Alias\x20for\x20--non-interactive','parent-id','description-file','nonInteractive','Config\x20key','operation','target','tags','6874587ZqDqSf','clear','enableBffSave','Use\x20remote','Output\x20path','output','schemas','label','parentId','Override\x20appcode','menu-ids','non-interactive','sqlName','params','Function\x20node','appcode','Expected\x20current\x20child\x20count','skipImports','sqlname','db-id','app','fromEnv','value','Description','string','expected-count','8672892EVidmX','Parent\x20menu\x20id','716601gLCtQj','expected-children-count','Select\x20app\x20profile\x20by\x20name','Target\x20path','expectPath','Skip\x20confirmation\x20for\x20high-risk\x20writes','Keyword\x20filter','Description\x20file','project','sql-name','Menu\x20sort\x20value','functionNode','Environment','DB\x20ID','Read\x20value\x20from\x20environment\x20variable','9720270lQFtIs','title','key','dry-run','all','sqlcode','1637890zeUwRN','yes','Rabetbase\x20CLI','expectedChildrenCount','Page\x20size','remote','Apply\x20to\x20all','Search\x20query','3SprtvI','stdin','dryRun','Show\x20help','Tags','Expected\x20affected\x20count','from-env','page','topk','Config\x20value','<code>','SQL\x20name','Code\x20filter','type','description','rabetbase','sql','function-node','reveal','Menu\x20label','Preview\x20operation\x20without\x20executing','format','descriptionFile','Comma-separated\x20menu\x20IDs','skip-imports','query','Skip\x20import\x20generation','Schemas','pagesize','220730vmUPPj','datasetcode','boolean','sort','Watch\x20mode','global','production\x20|\x20daily','Verbose\x20output','name','help','13452952jzFLUr','Operation\x20type','<expr>','dbId','50nDICDM','4BkEoCl','env','enable-bff-save','expect-path','Read\x20value\x20from\x20stdin','Reveal\x20sensitive\x20value','watch','Maximum\x20search\x20hits','operationType','file','json\x20|\x20pretty\x20|\x20compress','SQL\x20string','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','<name>','Force\x20overwrite','task-id','taskId','confirm','Asynchronous\x20task\x20ID'];a209_0x454f=function(){return _0x3e071a;};return a209_0x454f();}export const GLOBAL_FLAGS=[{'name':a209_0x11de2d(0xbb),'meowKey':a209_0x11de2d(0xbb),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xb5),'hint':a209_0x11de2d(0xef)},{'name':'app','meowKey':a209_0x11de2d(0xc0),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xca),'hint':a209_0x11de2d(0x9b)},{'name':'env','meowKey':a209_0x11de2d(0x112),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd4),'hint':a209_0x11de2d(0x108)},{'name':a209_0x11de2d(0xfa),'meowKey':a209_0x11de2d(0xfa),'type':a209_0x11de2d(0xc4),'description':'Output\x20format','hint':a209_0x11de2d(0x97)},{'name':'jq','meowKey':'jq','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x99),'hint':a209_0x11de2d(0x10e)},{'name':a209_0x11de2d(0xda),'meowKey':a209_0x11de2d(0xe7),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xf9)},{'name':a209_0x11de2d(0xde),'meowKey':a209_0x11de2d(0xde),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xcd)},{'name':a209_0x11de2d(0xb7),'meowKey':a209_0x11de2d(0xa7),'type':a209_0x11de2d(0x104),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x11de2d(0x107),'meowKey':a209_0x11de2d(0x107),'type':a209_0x11de2d(0x104),'description':'Use\x20global\x20config\x20scope'},{'name':a209_0x11de2d(0xd0),'meowKey':a209_0x11de2d(0xd0),'type':a209_0x11de2d(0x104),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xa4),'hidden':!![]},{'name':a209_0x11de2d(0x10b),'meowKey':'help','type':'boolean','description':a209_0x11de2d(0xe8)},{'name':a209_0x11de2d(0x10a),'meowKey':a209_0x11de2d(0x10a),'type':a209_0x11de2d(0xc4),'description':'Name','hidden':!![]},{'name':a209_0x11de2d(0xd8),'meowKey':a209_0x11de2d(0xd8),'type':a209_0x11de2d(0xc4),'description':'Title','hidden':!![]},{'name':a209_0x11de2d(0xfe),'meowKey':a209_0x11de2d(0xfe),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe4),'hidden':!![]},{'name':'topk','meowKey':a209_0x11de2d(0xed),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x94),'hidden':!![]},{'name':a209_0x11de2d(0xad),'meowKey':a209_0x11de2d(0xad),'type':a209_0x11de2d(0x104),'description':'Clear','hidden':!![]},{'name':a209_0x11de2d(0x93),'meowKey':a209_0x11de2d(0x93),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x106),'hidden':!![]},{'name':a209_0x11de2d(0xb1),'meowKey':a209_0x11de2d(0xb1),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xb0),'hidden':!![]},{'name':a209_0x11de2d(0xb9),'meowKey':a209_0x11de2d(0xb9),'type':a209_0x11de2d(0xc4),'description':'JSON\x20params','hidden':!![]},{'name':'datasetcode','meowKey':a209_0x11de2d(0x103),'type':a209_0x11de2d(0xc4),'description':'Dataset\x20code','hidden':!![]},{'name':a209_0x11de2d(0xdb),'meowKey':'all','type':'boolean','description':a209_0x11de2d(0xe3),'hidden':!![]},{'name':a209_0x11de2d(0x113),'meowKey':a209_0x11de2d(0xae),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xa2),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x11de2d(0xc4),'description':'Record\x20ID','hidden':!![]},{'name':a209_0x11de2d(0xf2),'meowKey':a209_0x11de2d(0xf2),'type':a209_0x11de2d(0xc4),'description':'Type\x20filter','hidden':!![]},{'name':a209_0x11de2d(0x96),'meowKey':'file','type':a209_0x11de2d(0xc4),'description':'File\x20path','hidden':!![]},{'name':a209_0x11de2d(0xdc),'meowKey':a209_0x11de2d(0xdc),'type':'string','description':'SQL\x20code','hidden':!![]},{'name':a209_0x11de2d(0xd1),'meowKey':a209_0x11de2d(0xb8),'type':a209_0x11de2d(0xc4),'description':'SQL\x20name','hidden':!![]},{'name':a209_0x11de2d(0xbe),'meowKey':a209_0x11de2d(0xbe),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf0),'hidden':!![]},{'name':a209_0x11de2d(0xbf),'meowKey':a209_0x11de2d(0x10f),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd5),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd5),'hidden':!![]},{'name':a209_0x11de2d(0xf3),'meowKey':'description','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xc3),'hidden':!![]},{'name':a209_0x11de2d(0xa6),'meowKey':a209_0x11de2d(0xfb),'type':'string','description':a209_0x11de2d(0xcf),'hidden':!![]},{'name':a209_0x11de2d(0xec),'meowKey':a209_0x11de2d(0xec),'type':a209_0x11de2d(0xc4),'description':'Page\x20number','hidden':!![]},{'name':a209_0x11de2d(0x101),'meowKey':a209_0x11de2d(0x101),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe1),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':'string','description':a209_0x11de2d(0xce),'hidden':!![]},{'name':a209_0x11de2d(0xa3),'meowKey':a209_0x11de2d(0xa3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf1),'hidden':!![]},{'name':a209_0x11de2d(0xf5),'meowKey':a209_0x11de2d(0xf5),'type':'string','description':a209_0x11de2d(0x98),'hidden':!![]},{'name':a209_0x11de2d(0xb2),'meowKey':a209_0x11de2d(0xb2),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x100),'hidden':!![]},{'name':a209_0x11de2d(0xa9),'meowKey':a209_0x11de2d(0xa9),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x10d),'hidden':!![]},{'name':'target','meowKey':a209_0x11de2d(0xaa),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xcb),'hidden':!![]},{'name':a209_0x11de2d(0xfd),'meowKey':a209_0x11de2d(0xbd),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xff),'hidden':!![]},{'name':'key','meowKey':a209_0x11de2d(0xd9),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xa8),'hidden':!![]},{'name':a209_0x11de2d(0xc2),'meowKey':a209_0x11de2d(0xc2),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xee),'hidden':!![]},{'name':a209_0x11de2d(0xab),'meowKey':a209_0x11de2d(0xab),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xe9),'hidden':!![]},{'name':'stdin','meowKey':a209_0x11de2d(0xe6),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x115),'hidden':!![]},{'name':a209_0x11de2d(0xeb),'meowKey':a209_0x11de2d(0xc1),'type':'string','description':a209_0x11de2d(0xd6),'hidden':!![]},{'name':'reveal','meowKey':a209_0x11de2d(0xf7),'type':'boolean','description':a209_0x11de2d(0x116),'hidden':!![]},{'name':'force','meowKey':'force','type':'boolean','description':a209_0x11de2d(0x9c),'hidden':!![]},{'name':a209_0x11de2d(0x9f),'meowKey':'confirm','type':a209_0x11de2d(0x104),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a209_0x11de2d(0xe2),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0xaf),'hidden':!![]},{'name':a209_0x11de2d(0xa1),'meowKey':a209_0x11de2d(0xa1),'type':a209_0x11de2d(0x104),'description':a209_0x11de2d(0x109),'hidden':!![]},{'name':a209_0x11de2d(0xc5),'meowKey':'expectedCount','type':'string','description':a209_0x11de2d(0xea),'hidden':!![]},{'name':a209_0x11de2d(0xb3),'meowKey':a209_0x11de2d(0xb3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xf8),'hidden':!![]},{'name':a209_0x11de2d(0xa5),'meowKey':a209_0x11de2d(0xb4),'type':'string','description':a209_0x11de2d(0xc7),'hidden':!![]},{'name':a209_0x11de2d(0x105),'meowKey':a209_0x11de2d(0x105),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xd2),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a209_0x11de2d(0x114),'meowKey':a209_0x11de2d(0xcc),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x9a),'hidden':!![]},{'name':a209_0x11de2d(0xc9),'meowKey':a209_0x11de2d(0xe0),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xbc),'hidden':!![]},{'name':a209_0x11de2d(0xb6),'meowKey':'menuIds','type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xfc),'hidden':!![]},{'name':a209_0x11de2d(0x9d),'meowKey':a209_0x11de2d(0x9e),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xa0),'hidden':!![]},{'name':'operation-type','meowKey':a209_0x11de2d(0x95),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0x10d),'hidden':!![]},{'name':a209_0x11de2d(0xf6),'meowKey':a209_0x11de2d(0xd3),'type':a209_0x11de2d(0xc4),'description':a209_0x11de2d(0xba),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a209_0x11de2d(0xc0),'env',a209_0x11de2d(0xfa),'jq',a209_0x11de2d(0xda),a209_0x11de2d(0xde),'non-interactive','ci']);export function buildMeowFlags(){const _0x1dde0e=a209_0x11de2d;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x579c48=>[_0x579c48['meowKey'],{'type':_0x579c48[_0x1dde0e(0xf2)]}]));}
1
+ const a208_0x3ffdc2=a208_0x428b;(function(_0x1bf91c,_0x6b6cc1){const _0x572894=a208_0x428b,_0x2dfe9b=_0x1bf91c();while(!![]){try{const _0x508c86=-parseInt(_0x572894(0x1eb))/0x1*(parseInt(_0x572894(0x22a))/0x2)+-parseInt(_0x572894(0x260))/0x3+-parseInt(_0x572894(0x245))/0x4*(-parseInt(_0x572894(0x1e0))/0x5)+parseInt(_0x572894(0x217))/0x6*(-parseInt(_0x572894(0x20b))/0x7)+parseInt(_0x572894(0x236))/0x8+-parseInt(_0x572894(0x23d))/0x9+parseInt(_0x572894(0x23e))/0xa;if(_0x508c86===_0x6b6cc1)break;else _0x2dfe9b['push'](_0x2dfe9b['shift']());}catch(_0x27b015){_0x2dfe9b['push'](_0x2dfe9b['shift']());}}}(a208_0x29ce,0x2a00a));function a208_0x29ce(){const _0x20b63d=['App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','map','Record\x20ID','label','description-file','1454616aZCrgZ','5367650hIcLlC','expect-path','@lovrabet/rabetbase-cli','Output\x20format','expectParentId','appcode','fromEnv','4MqFmhU','menu-ids','Environment','nonInteractive','non-interactive','key','env','Target\x20path','function-node','sql-name','menuIds','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20stdin','Enable\x20Backend\x20Function\x20save','<code>','parent-id','verbose','sql','descriptionFile','expectedChildrenCount','target','Menu\x20label','skip-imports','topk','locale','operation','file','911805YlLkvb','Search\x20query','type','dbid','skipImports','query','Use\x20remote','1677685tsayqn','string','yes','name','Use\x20project\x20config\x20scope','taskId','stdin','fromEntries','SQL\x20name','Keyword\x20filter','value','263137uexCbq','code','Show\x20help','Config\x20key','force','clear','DB\x20ID','expected-count','output','global','rabetbase','Tags','params','SQL\x20string','description','dry-run','page','dryRun','format','Type\x20filter','pagesize','all','datasetcode','Expected\x20current\x20parent\x20menu\x20id','Apply\x20to\x20all','boolean','json\x20|\x20pretty\x20|\x20compress','Expected\x20affected\x20count','Watch\x20mode','keyword','tags','reveal','1181467IuoBoj','Menu\x20sort\x20value','dbId','sqlname','Maximum\x20search\x20hits','confirm','title','Select\x20app\x20profile\x20by\x20name','expectedCount','JSON\x20params','Output\x20path','Dataset\x20code','6ThwPYh','Force\x20overwrite','Reveal\x20sensitive\x20value','Description\x20file','sort','app','operation-type','zh-CN\x20|\x20en-US','Page\x20number','Preview\x20operation\x20without\x20executing','remote','Schemas','help','functionNode','enable-bff-save','production\x20|\x20daily','Force\x20non-interactive\x20mode\x20(CI)','Skip\x20import\x20generation','Name','2QdMpFl','Rabetbase\x20CLI','expectPath','schemas','Operation\x20type','File\x20path','Asynchronous\x20task\x20ID','Comma-separated\x20menu\x20IDs','watch','Code\x20filter','sqlcode','task-id','1577736rTsWJI','Override\x20appcode'];a208_0x29ce=function(){return _0x20b63d;};return a208_0x29ce();}export const CLI_BIN_NAME=a208_0x3ffdc2(0x1f5);export const CLI_DISPLAY_NAME=a208_0x3ffdc2(0x22b);function a208_0x428b(_0x1717ed,_0x324844){_0x1717ed=_0x1717ed-0x1da;const _0x29ce16=a208_0x29ce();let _0x428b01=_0x29ce16[_0x1717ed];return _0x428b01;}export const NPM_PACKAGE_NAME=a208_0x3ffdc2(0x240);export const GLOBAL_FLAGS=[{'name':a208_0x3ffdc2(0x243),'meowKey':a208_0x3ffdc2(0x243),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x237),'hint':a208_0x3ffdc2(0x253)},{'name':a208_0x3ffdc2(0x21c),'meowKey':'app','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x212),'hint':'<name>'},{'name':'env','meowKey':a208_0x3ffdc2(0x24b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x247),'hint':a208_0x3ffdc2(0x226)},{'name':a208_0x3ffdc2(0x1fd),'meowKey':a208_0x3ffdc2(0x1fd),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x241),'hint':a208_0x3ffdc2(0x205)},{'name':'jq','meowKey':'jq','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x250),'hint':'<expr>'},{'name':a208_0x3ffdc2(0x1fa),'meowKey':a208_0x3ffdc2(0x1fc),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x220)},{'name':a208_0x3ffdc2(0x1e2),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a208_0x3ffdc2(0x248),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x227)},{'name':a208_0x3ffdc2(0x1f4),'meowKey':a208_0x3ffdc2(0x1f4),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1e4)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a208_0x3ffdc2(0x223),'meowKey':'help','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x1ed)},{'name':a208_0x3ffdc2(0x25d),'meowKey':a208_0x3ffdc2(0x25d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x238),'hidden':!![],'hint':a208_0x3ffdc2(0x21e)},{'name':a208_0x3ffdc2(0x1e3),'meowKey':'name','type':'string','description':a208_0x3ffdc2(0x229),'hidden':!![]},{'name':a208_0x3ffdc2(0x211),'meowKey':a208_0x3ffdc2(0x211),'type':a208_0x3ffdc2(0x1e1),'description':'Title','hidden':!![]},{'name':a208_0x3ffdc2(0x1de),'meowKey':a208_0x3ffdc2(0x1de),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1da),'hidden':!![]},{'name':a208_0x3ffdc2(0x25c),'meowKey':'topk','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x20f),'hidden':!![]},{'name':'clear','meowKey':a208_0x3ffdc2(0x1f0),'type':a208_0x3ffdc2(0x204),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a208_0x3ffdc2(0x232),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x207),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f3),'meowKey':'output','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x215),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f7),'meowKey':'params','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x214),'hidden':!![]},{'name':a208_0x3ffdc2(0x201),'meowKey':a208_0x3ffdc2(0x201),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x216),'hidden':!![]},{'name':'all','meowKey':a208_0x3ffdc2(0x200),'type':'boolean','description':a208_0x3ffdc2(0x203),'hidden':!![]},{'name':a208_0x3ffdc2(0x225),'meowKey':'enableBffSave','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x252),'hidden':!![]},{'name':'id','meowKey':'id','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x23a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1db),'meowKey':a208_0x3ffdc2(0x1db),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1fe),'hidden':!![]},{'name':'file','meowKey':a208_0x3ffdc2(0x25f),'type':'string','description':a208_0x3ffdc2(0x22f),'hidden':!![]},{'name':a208_0x3ffdc2(0x234),'meowKey':a208_0x3ffdc2(0x234),'type':a208_0x3ffdc2(0x1e1),'description':'SQL\x20code','hidden':!![]},{'name':a208_0x3ffdc2(0x24e),'meowKey':'sqlName','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'sqlname','meowKey':a208_0x3ffdc2(0x20e),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e8),'hidden':!![]},{'name':'db-id','meowKey':a208_0x3ffdc2(0x20d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1dc),'meowKey':a208_0x3ffdc2(0x1dc),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f1),'hidden':!![]},{'name':a208_0x3ffdc2(0x1f9),'meowKey':'description','type':a208_0x3ffdc2(0x1e1),'description':'Description','hidden':!![]},{'name':a208_0x3ffdc2(0x23c),'meowKey':a208_0x3ffdc2(0x257),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21a),'hidden':!![]},{'name':a208_0x3ffdc2(0x1fb),'meowKey':a208_0x3ffdc2(0x1fb),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x21f),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ff),'meowKey':'pagesize','type':a208_0x3ffdc2(0x1e1),'description':'Page\x20size','hidden':!![]},{'name':a208_0x3ffdc2(0x208),'meowKey':a208_0x3ffdc2(0x208),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1e9),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ec),'meowKey':a208_0x3ffdc2(0x1ec),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x233),'hidden':!![]},{'name':a208_0x3ffdc2(0x256),'meowKey':'sql','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f8),'hidden':!![]},{'name':a208_0x3ffdc2(0x22d),'meowKey':a208_0x3ffdc2(0x22d),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x222),'hidden':!![]},{'name':'operation','meowKey':a208_0x3ffdc2(0x25e),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a208_0x3ffdc2(0x259),'meowKey':'target','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x24c),'hidden':!![]},{'name':a208_0x3ffdc2(0x25b),'meowKey':a208_0x3ffdc2(0x1dd),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x228),'hidden':!![]},{'name':a208_0x3ffdc2(0x24a),'meowKey':a208_0x3ffdc2(0x24a),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1ee),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ea),'meowKey':a208_0x3ffdc2(0x1ea),'type':a208_0x3ffdc2(0x1e1),'description':'Config\x20value','hidden':!![]},{'name':a208_0x3ffdc2(0x209),'meowKey':a208_0x3ffdc2(0x209),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x1f6),'hidden':!![]},{'name':a208_0x3ffdc2(0x1e6),'meowKey':'stdin','type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x251),'hidden':!![]},{'name':'from-env','meowKey':a208_0x3ffdc2(0x244),'type':a208_0x3ffdc2(0x1e1),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0x3ffdc2(0x20a),'meowKey':a208_0x3ffdc2(0x20a),'type':a208_0x3ffdc2(0x204),'description':a208_0x3ffdc2(0x219),'hidden':!![]},{'name':a208_0x3ffdc2(0x1ef),'meowKey':'force','type':'boolean','description':a208_0x3ffdc2(0x218),'hidden':!![]},{'name':a208_0x3ffdc2(0x210),'meowKey':a208_0x3ffdc2(0x210),'type':a208_0x3ffdc2(0x204),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a208_0x3ffdc2(0x221),'meowKey':a208_0x3ffdc2(0x221),'type':'boolean','description':a208_0x3ffdc2(0x1df),'hidden':!![]},{'name':a208_0x3ffdc2(0x255),'meowKey':a208_0x3ffdc2(0x255),'type':a208_0x3ffdc2(0x204),'description':'Verbose\x20output','hidden':!![]},{'name':a208_0x3ffdc2(0x1f2),'meowKey':a208_0x3ffdc2(0x213),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x206),'hidden':!![]},{'name':a208_0x3ffdc2(0x23b),'meowKey':a208_0x3ffdc2(0x23b),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x25a),'hidden':!![]},{'name':a208_0x3ffdc2(0x254),'meowKey':'parentId','type':a208_0x3ffdc2(0x1e1),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a208_0x3ffdc2(0x21b),'meowKey':a208_0x3ffdc2(0x21b),'type':'string','description':a208_0x3ffdc2(0x20c),'hidden':!![]},{'name':'expect-parent-id','meowKey':a208_0x3ffdc2(0x242),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x202),'hidden':!![]},{'name':a208_0x3ffdc2(0x23f),'meowKey':a208_0x3ffdc2(0x22c),'type':a208_0x3ffdc2(0x1e1),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a208_0x3ffdc2(0x258),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a208_0x3ffdc2(0x246),'meowKey':a208_0x3ffdc2(0x24f),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x231),'hidden':!![]},{'name':a208_0x3ffdc2(0x235),'meowKey':a208_0x3ffdc2(0x1e5),'type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x230),'hidden':!![]},{'name':a208_0x3ffdc2(0x21d),'meowKey':'operationType','type':a208_0x3ffdc2(0x1e1),'description':a208_0x3ffdc2(0x22e),'hidden':!![]},{'name':a208_0x3ffdc2(0x24d),'meowKey':a208_0x3ffdc2(0x224),'type':a208_0x3ffdc2(0x1e1),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a208_0x3ffdc2(0x21c),a208_0x3ffdc2(0x24b),a208_0x3ffdc2(0x1fd),'jq',a208_0x3ffdc2(0x1fa),a208_0x3ffdc2(0x1e2),a208_0x3ffdc2(0x249),'ci']);export function buildMeowFlags(){const _0x213eed=a208_0x3ffdc2;return Object[_0x213eed(0x1e7)](GLOBAL_FLAGS[_0x213eed(0x239)](_0x22fc68=>[_0x22fc68['meowKey'],{'type':_0x22fc68[_0x213eed(0x1db)]}]));}
@@ -1 +1 @@
1
- const a210_0x898052=a210_0x5783;(function(_0x34c028,_0x1c49e6){const _0x3599b1=a210_0x5783,_0x13927a=_0x34c028();while(!![]){try{const _0x1fcce8=-parseInt(_0x3599b1(0x16e))/0x1*(-parseInt(_0x3599b1(0x173))/0x2)+parseInt(_0x3599b1(0x175))/0x3+-parseInt(_0x3599b1(0x174))/0x4*(parseInt(_0x3599b1(0x179))/0x5)+-parseInt(_0x3599b1(0x172))/0x6*(parseInt(_0x3599b1(0x171))/0x7)+-parseInt(_0x3599b1(0x170))/0x8*(parseInt(_0x3599b1(0x17a))/0x9)+parseInt(_0x3599b1(0x178))/0xa+parseInt(_0x3599b1(0x176))/0xb*(parseInt(_0x3599b1(0x17b))/0xc);if(_0x1fcce8===_0x1c49e6)break;else _0x13927a['push'](_0x13927a['shift']());}catch(_0x31eb27){_0x13927a['push'](_0x13927a['shift']());}}}(a210_0x3a5b,0xbbc5e));import{DEFAULT_API_DIR}from'../constant/paths.js';function a210_0x5783(_0xa7657f,_0x2e9b15){_0xa7657f=_0xa7657f-0x16e;const _0x3a5b56=a210_0x3a5b();let _0x57831e=_0x3a5b56[_0xa7657f];return _0x57831e;}export const DEFAULT_CONFIG_VALUES={'env':'production','format':a210_0x898052(0x177),'locale':a210_0x898052(0x16f),'riskLevel':'write','apiDir':DEFAULT_API_DIR};function a210_0x3a5b(){const _0xc7a3a2=['en-US','4331776KltBht','16079vdyCKS','3204FqFIMo','4LsVveB','116XhaHMY','68610bfrBhm','33rfcZZc','compress','10606180XjyNRL','59105wTKWkW','9JYCzcd','6960372UkNiKO','28208CnBAin'];a210_0x3a5b=function(){return _0xc7a3a2;};return a210_0x3a5b();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ const a209_0x56a855=a209_0x309a;(function(_0x5cedc0,_0x5ef5e6){const _0x25ff0a=a209_0x309a,_0x5db56e=_0x5cedc0();while(!![]){try{const _0xbcfee7=parseInt(_0x25ff0a(0x93))/0x1*(parseInt(_0x25ff0a(0x92))/0x2)+-parseInt(_0x25ff0a(0x9c))/0x3+parseInt(_0x25ff0a(0x96))/0x4+parseInt(_0x25ff0a(0x90))/0x5+-parseInt(_0x25ff0a(0x91))/0x6*(parseInt(_0x25ff0a(0x9a))/0x7)+parseInt(_0x25ff0a(0x97))/0x8*(-parseInt(_0x25ff0a(0x9b))/0x9)+parseInt(_0x25ff0a(0x9d))/0xa;if(_0xbcfee7===_0x5ef5e6)break;else _0x5db56e['push'](_0x5db56e['shift']());}catch(_0xc413e){_0x5db56e['push'](_0x5db56e['shift']());}}}(a209_0x5f02,0xcfbc6));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x56a855(0x99),'format':a209_0x56a855(0x94),'locale':a209_0x56a855(0x98),'riskLevel':a209_0x56a855(0x95),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a209_0x56a855(0x94);function a209_0x309a(_0x1be47e,_0x3582c4){_0x1be47e=_0x1be47e-0x90;const _0x5f0212=a209_0x5f02();let _0x309af2=_0x5f0212[_0x1be47e];return _0x309af2;}function a209_0x5f02(){const _0x2de26f=['production','770980CdyeWi','18ADNVwi','1760619WJEsiO','7332850dLjUsQ','2147865BdQKdI','30aAvloE','17292VdlLKv','97yLaAfl','compress','write','3544764wmbbUd','3597008bXRGbQ','en-US'];a209_0x5f02=function(){return _0x2de26f;};return a209_0x5f02();}
@@ -1,3 +1,4 @@
1
+ import { type LovrabetRegion } from "../constant/region.js";
1
2
  /**
2
3
  * 初始化自定义域名(从 .rabetbase.json 合并配置中读取)。
3
4
  * 未配置的字段传 undefined,回退到默认域名。
@@ -6,9 +7,30 @@ export declare function initDomains(domains?: {
6
7
  apiDomain?: string;
7
8
  userDomain?: string;
8
9
  runtimeDomain?: string;
10
+ skillDomain?: string;
11
+ kbDomain?: string;
12
+ appDomain?: string;
13
+ region?: LovrabetRegion;
9
14
  }): void;
10
15
  export declare const getUserDomain: () => string;
11
16
  export declare const getApiDomain: () => string;
12
17
  export declare const getRuntimeDomain: () => string;
13
- export declare const getAppDomain: () => "https://app.lovrabet.com" | "https://daily.lovrabet.com";
18
+ export declare const getSkillDomain: () => string;
19
+ export declare const getKbDomain: () => string;
20
+ export declare const getAppDomain: () => string;
21
+ export declare const getActiveRegion: () => "global" | "id" | "cn";
22
+ /**
23
+ * 生成到浏览器项目中的 SDK 路由白名单。
24
+ *
25
+ * - 企业独立部署只下发显式 runtimeDomain;
26
+ * - id 下发 region,由 SDK 按 env 解析官方节点;
27
+ * - cn 是 SDK 默认值,无需写入生成文件;
28
+ * - 历史 global 配置不再作为 SDK region 暴露,改为下发当前 env 的完整地址。
29
+ */
30
+ export declare function getSdkClientRoutingConfig(): {
31
+ region?: "id";
32
+ runtimeDomain?: string;
33
+ };
14
34
  export declare const getAppBaseUrl: (appCode: string) => string;
35
+ /** Builds the wildcard host used by published custom pages. */
36
+ export declare const getPublishedAppDomain: (appCode: string) => string;
@@ -1 +1 @@
1
- const a211_0x4d9ff6=a211_0x48f6;function a211_0x48f6(_0x2f75f4,_0x30df84){_0x2f75f4=_0x2f75f4-0x70;const _0x430952=a211_0x4309();let _0x48f6a6=_0x430952[_0x2f75f4];return _0x48f6a6;}(function(_0x420b34,_0x347b22){const _0x1dcd6a=a211_0x48f6,_0x1ae1b5=_0x420b34();while(!![]){try{const _0x8a2a44=-parseInt(_0x1dcd6a(0x85))/0x1+-parseInt(_0x1dcd6a(0x74))/0x2*(-parseInt(_0x1dcd6a(0x78))/0x3)+parseInt(_0x1dcd6a(0x83))/0x4*(-parseInt(_0x1dcd6a(0x71))/0x5)+parseInt(_0x1dcd6a(0x73))/0x6+parseInt(_0x1dcd6a(0x7a))/0x7*(-parseInt(_0x1dcd6a(0x84))/0x8)+-parseInt(_0x1dcd6a(0x7b))/0x9*(parseInt(_0x1dcd6a(0x70))/0xa)+parseInt(_0x1dcd6a(0x77))/0xb;if(_0x8a2a44===_0x347b22)break;else _0x1ae1b5['push'](_0x1ae1b5['shift']());}catch(_0x36ae91){_0x1ae1b5['push'](_0x1ae1b5['shift']());}}}(a211_0x4309,0x6f4cb));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x23d002){const _0x4ef75a=a211_0x48f6;customApiDomain=_0x23d002?.[_0x4ef75a(0x72)],customUserDomain=_0x23d002?.[_0x4ef75a(0x80)],customRuntimeDomain=_0x23d002?.[_0x4ef75a(0x82)];}function a211_0x4309(){const _0x39ac15=['apiDomain','2524500cVnwEf','750BQlxXr','https://daily.lovrabet.com','https://app.lovrabet.com','24826637AsKkOf','1047yMdPFr','https://daily-runtime.lovrabet.com','4233271vOTmjS','1241829ayHVvJ','https://user.lovrabet.com','/app/','/web-app/app/','https://daily-api.lovrabet.com','userDomain','https://api.lovrabet.com','runtimeDomain','112660VSjkVf','8axBAPm','548237FMxrKv','https://runtime.lovrabet.com','40gfNmpG','115eHpOHV'];a211_0x4309=function(){return _0x39ac15;};return a211_0x4309();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x7c):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x81):a211_0x4d9ff6(0x7f));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a211_0x4d9ff6(0x86):a211_0x4d9ff6(0x79));export const getAppDomain=()=>isProduction(getEnv())?a211_0x4d9ff6(0x76):a211_0x4d9ff6(0x75);export const getAppBaseUrl=_0x17b553=>{const _0x4ad2bc=a211_0x4d9ff6,_0x5059a9=encodeURIComponent(_0x17b553['trim']());return isProduction(getEnv())?getAppDomain()+_0x4ad2bc(0x7d)+_0x5059a9:getAppDomain()+_0x4ad2bc(0x7e)+_0x5059a9;};
1
+ const a210_0x19f11a=a210_0x4da4;(function(_0x341781,_0x2f2e7b){const _0x4f4570=a210_0x4da4,_0x58dda5=_0x341781();while(!![]){try{const _0x157a28=-parseInt(_0x4f4570(0x164))/0x1+parseInt(_0x4f4570(0x177))/0x2+parseInt(_0x4f4570(0x16e))/0x3*(-parseInt(_0x4f4570(0x16d))/0x4)+-parseInt(_0x4f4570(0x167))/0x5+-parseInt(_0x4f4570(0x16a))/0x6*(parseInt(_0x4f4570(0x174))/0x7)+parseInt(_0x4f4570(0x182))/0x8+parseInt(_0x4f4570(0x179))/0x9;if(_0x157a28===_0x2f2e7b)break;else _0x58dda5['push'](_0x58dda5['shift']());}catch(_0x41a781){_0x58dda5['push'](_0x58dda5['shift']());}}}(a210_0x17b1,0xa3e8b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a210_0x17b1(){const _0x33a8d9=['6926816KrCFoU','userDomain','https://app.lovrabet.ai','https://daily.lovrabet.id','global','https://daily-api.lovrabet.ai','https://runtime.lovrabet.id','https://daily-api.lovrabet.com','https://user.lovrabet.ai','https://user.lovrabet.com','nonProduction','trim','app','https://api.lovrabet.ai','https://daily.lovrabet.com','https://user-daily.lovrabet.id','https://skills-daily.lovrabet.ai','364273qthmYv','skill','https://app.lovrabet.com','5739405wSVWjD','https://skills.lovrabet.ai','https://daily-api.lovrabet.id','552234xOkDWF','https://runtime.lovrabet.com','apiDomain','652YZYuBp','11073pGbjKa','origin','hostname','https://daily-runtime.lovrabet.ai','skillDomain','https://daily.lovrabet.ai','98TovbCD','https://skills-daily.lovrabet.com','/web-app/app/','1855322mOaOws','https://app.lovrabet.id','20521719fJInmY','appDomain','https://api.lovrabet.id','runtimeDomain','https://user.lovrabet.id','user','/app/','runtime','api'];a210_0x17b1=function(){return _0x33a8d9;};return a210_0x17b1();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a210_0x19f11a(0x15c),'api':'https://api.lovrabet.com','runtime':a210_0x19f11a(0x16b),'skill':'https://skills.lovrabet.com','kb':'https://api.lovrabet.com','app':a210_0x19f11a(0x166)},'nonProduction':{'user':'https://user-daily.lovrabet.com','api':a210_0x19f11a(0x15a),'runtime':'https://daily-runtime.lovrabet.com','skill':a210_0x19f11a(0x175),'kb':a210_0x19f11a(0x15a),'app':a210_0x19f11a(0x161)}},'id':{'production':{'user':a210_0x19f11a(0x17d),'api':a210_0x19f11a(0x17b),'runtime':a210_0x19f11a(0x159),'skill':'https://skills.lovrabet.id','kb':a210_0x19f11a(0x17b),'app':a210_0x19f11a(0x178)},'nonProduction':{'user':a210_0x19f11a(0x162),'api':a210_0x19f11a(0x169),'runtime':'https://daily-runtime.lovrabet.id','skill':'https://skills-daily.lovrabet.id','kb':a210_0x19f11a(0x169),'app':a210_0x19f11a(0x185)}},'global':{'production':{'user':a210_0x19f11a(0x15b),'api':a210_0x19f11a(0x160),'runtime':'https://runtime.lovrabet.ai','skill':a210_0x19f11a(0x168),'kb':'https://api.lovrabet.ai','app':a210_0x19f11a(0x184)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a210_0x19f11a(0x158),'runtime':a210_0x19f11a(0x171),'skill':a210_0x19f11a(0x163),'kb':a210_0x19f11a(0x158),'app':a210_0x19f11a(0x173)}}};function getActiveRegionDomains(){const _0x424f52=a210_0x19f11a;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?'production':_0x424f52(0x15d)];}export function initDomains(_0x18def2){const _0x4b6f7a=a210_0x19f11a;customApiDomain=_0x18def2?.[_0x4b6f7a(0x16c)],customUserDomain=_0x18def2?.[_0x4b6f7a(0x183)],customRuntimeDomain=_0x18def2?.[_0x4b6f7a(0x17c)],customSkillDomain=_0x18def2?.[_0x4b6f7a(0x172)],customKbDomain=_0x18def2?.['kbDomain'],customAppDomain=_0x18def2?.[_0x4b6f7a(0x17a)],activeRegion=_0x18def2?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a210_0x19f11a(0x17e)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a210_0x19f11a(0x181)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a210_0x19f11a(0x165)];function a210_0x4da4(_0x572bfc,_0x2f5933){_0x572bfc=_0x572bfc-0x158;const _0x17b1cd=a210_0x17b1();let _0x4da44c=_0x17b1cd[_0x572bfc];return _0x4da44c;}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a210_0x19f11a(0x15f)];export const getActiveRegion=()=>activeRegion;export function getSdkClientRoutingConfig(){const _0x2689d4=a210_0x19f11a;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x2689d4(0x180)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x2689d4(0x186))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x3c369b=>{const _0x8d5c20=a210_0x19f11a,_0x5bea72=encodeURIComponent(_0x3c369b[_0x8d5c20(0x15e)]());return isProduction(getEnv())?getAppDomain()+_0x8d5c20(0x17f)+_0x5bea72:getAppDomain()+_0x8d5c20(0x176)+_0x5bea72;};export const getPublishedAppDomain=_0x436923=>{const _0x1f3e27=a210_0x19f11a,_0x1de38f=new URL(getAppDomain());return _0x1de38f[_0x1f3e27(0x170)]=_0x436923[_0x1f3e27(0x15e)]()+'.'+_0x1de38f[_0x1f3e27(0x170)],_0x1de38f[_0x1f3e27(0x16f)];};
@@ -1 +1 @@
1
- const a212_0x254c83=a212_0x34c2;(function(_0x463c7a,_0x385ea2){const _0x260e6b=a212_0x34c2,_0x23f5d7=_0x463c7a();while(!![]){try{const _0x2c00ec=-parseInt(_0x260e6b(0xe1))/0x1+-parseInt(_0x260e6b(0xe0))/0x2+-parseInt(_0x260e6b(0xe2))/0x3+parseInt(_0x260e6b(0xe8))/0x4+parseInt(_0x260e6b(0xe3))/0x5*(-parseInt(_0x260e6b(0xdf))/0x6)+parseInt(_0x260e6b(0xe4))/0x7+-parseInt(_0x260e6b(0xdc))/0x8*(-parseInt(_0x260e6b(0xde))/0x9);if(_0x2c00ec===_0x385ea2)break;else _0x23f5d7['push'](_0x23f5d7['shift']());}catch(_0xcb8ece){_0x23f5d7['push'](_0x23f5d7['shift']());}}}(a212_0x5f5c,0xb84c6));function a212_0x5f5c(){const _0x1feb5f=['dev','2978412IrSpXi','1304ZIVxoO','daily','185715mUYnYC','18xRBHdL','2425204HSzsPf','756792naKAvi','2841861khrNBX','2212845WmnCRp','6238162UzFNAZ','production','online'];a212_0x5f5c=function(){return _0x1feb5f;};return a212_0x5f5c();}export const RABETBASE_ENV_VALUES=[a212_0x254c83(0xe5),a212_0x254c83(0xdd)];export function normalizeEnv(_0x339d9f){const _0x274f26=a212_0x254c83;return _0x339d9f===_0x274f26(0xe6)?_0x274f26(0xe5):_0x339d9f;}export function isProduction(_0x3aef1d){return normalizeEnv(_0x3aef1d)==='production';}export function isDaily(_0x1f6370){const _0x353288=a212_0x254c83;return normalizeEnv(_0x1f6370)===_0x353288(0xdd);}export function isDev(_0x4650cf){const _0x27ed65=a212_0x254c83,_0x519f17=normalizeEnv(_0x4650cf);return _0x519f17==='development'||_0x519f17===_0x27ed65(0xe7);}function a212_0x34c2(_0x29a8c3,_0x32189d){_0x29a8c3=_0x29a8c3-0xdc;const _0x5f5ca6=a212_0x5f5c();let _0x34c2c1=_0x5f5ca6[_0x29a8c3];return _0x34c2c1;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x254c83(0xe5));export function getEnv(){return env;}export function initEnv(_0x5b4f48){env=normalizeEnv(_0x5b4f48);}
1
+ const a211_0x2339af=a211_0x4af6;function a211_0xb1b4(){const _0x3f740d=['dev','development','887840HRRlVg','1744984qRoRqy','9170128TPNtap','72051YXpyHq','1629681mRyHxt','282611gvMwQK','production','daily','2jCzwTp','1584246cyrmvI'];a211_0xb1b4=function(){return _0x3f740d;};return a211_0xb1b4();}(function(_0x582063,_0x1855c6){const _0x50e15c=a211_0x4af6,_0x401bed=_0x582063();while(!![]){try{const _0x51c0cf=parseInt(_0x50e15c(0x14f))/0x1+-parseInt(_0x50e15c(0x146))/0x2*(parseInt(_0x50e15c(0x14e))/0x3)+-parseInt(_0x50e15c(0x14b))/0x4+-parseInt(_0x50e15c(0x14a))/0x5+parseInt(_0x50e15c(0x147))/0x6+-parseInt(_0x50e15c(0x14d))/0x7+parseInt(_0x50e15c(0x14c))/0x8;if(_0x51c0cf===_0x1855c6)break;else _0x401bed['push'](_0x401bed['shift']());}catch(_0x2854c9){_0x401bed['push'](_0x401bed['shift']());}}}(a211_0xb1b4,0x80510));export const RABETBASE_ENV_VALUES=[a211_0x2339af(0x150),a211_0x2339af(0x145)];export function normalizeEnv(_0x251592){return _0x251592==='online'?'production':_0x251592;}export function isProduction(_0x2cbd52){const _0x1c8596=a211_0x2339af;return normalizeEnv(_0x2cbd52)===_0x1c8596(0x150);}function a211_0x4af6(_0x194391,_0x492613){_0x194391=_0x194391-0x145;const _0xb1b4ac=a211_0xb1b4();let _0x4af6fa=_0xb1b4ac[_0x194391];return _0x4af6fa;}export function isDaily(_0x47499b){const _0x4bf84b=a211_0x2339af;return normalizeEnv(_0x47499b)===_0x4bf84b(0x145);}export function isDev(_0x1be41b){const _0x2b3ebf=a211_0x2339af,_0x47de19=normalizeEnv(_0x1be41b);return _0x47de19===_0x2b3ebf(0x149)||_0x47de19===_0x2b3ebf(0x148);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a211_0x2339af(0x150));export function getEnv(){return env;}export function initEnv(_0x1c1be6){env=normalizeEnv(_0x1c1be6);}
@@ -1 +1 @@
1
- function a213_0x9d3e(_0x2ec141,_0xb6855c){_0x2ec141=_0x2ec141-0x1e6;const _0x31c653=a213_0x31c6();let _0x9d3ed6=_0x31c653[_0x2ec141];return _0x9d3ed6;}const a213_0x26505c=a213_0x9d3e;(function(_0x4367f5,_0x192e92){const _0x1009da=a213_0x9d3e,_0x40dba9=_0x4367f5();while(!![]){try{const _0x3c1bfa=parseInt(_0x1009da(0x1e6))/0x1*(-parseInt(_0x1009da(0x1ed))/0x2)+parseInt(_0x1009da(0x1e8))/0x3+-parseInt(_0x1009da(0x1ec))/0x4+parseInt(_0x1009da(0x1ea))/0x5+parseInt(_0x1009da(0x1e7))/0x6*(-parseInt(_0x1009da(0x1eb))/0x7)+parseInt(_0x1009da(0x1e9))/0x8+parseInt(_0x1009da(0x1ee))/0x9*(parseInt(_0x1009da(0x1f0))/0xa);if(_0x3c1bfa===_0x192e92)break;else _0x40dba9['push'](_0x40dba9['shift']());}catch(_0x586603){_0x40dba9['push'](_0x40dba9['shift']());}}}(a213_0x31c6,0x2b207));function a213_0x31c6(){const _0x1260f3=['151236YkqsbK','2809432HanGzb','1024235JNSINc','61929kqAnSL','1092096BCSgpD','45572UgAEwq','9RelsyB','pretty','2860950hmZSPu','14qumCMY','84TwDraz'];a213_0x31c6=function(){return _0x1260f3;};return a213_0x31c6();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0x26505c(0x1ef),'compress'];
1
+ const a212_0x335fc3=a212_0x5830;(function(_0x388c10,_0x1f9fbd){const _0x120ae4=a212_0x5830,_0xc4eaf6=_0x388c10();while(!![]){try{const _0x2fc587=parseInt(_0x120ae4(0xc3))/0x1*(-parseInt(_0x120ae4(0xbf))/0x2)+-parseInt(_0x120ae4(0xc1))/0x3+-parseInt(_0x120ae4(0xc5))/0x4*(parseInt(_0x120ae4(0xbe))/0x5)+-parseInt(_0x120ae4(0xc4))/0x6*(-parseInt(_0x120ae4(0xc6))/0x7)+parseInt(_0x120ae4(0xc0))/0x8+parseInt(_0x120ae4(0xbd))/0x9+parseInt(_0x120ae4(0xc7))/0xa*(parseInt(_0x120ae4(0xbc))/0xb);if(_0x2fc587===_0x1f9fbd)break;else _0xc4eaf6['push'](_0xc4eaf6['shift']());}catch(_0x4a2ba7){_0xc4eaf6['push'](_0xc4eaf6['shift']());}}}(a212_0x1d4b,0xbbfbb));function a212_0x1d4b(){const _0x5c90d0=['json','250801CJybOd','1578uxDUtI','4ItoivY','10094oJTypz','9397330FcJfgq','22zCBtmW','2621592DgaHGG','249055thHOWY','6tbsWrq','3130896eKBxLB','4107507OHZJqD'];a212_0x1d4b=function(){return _0x5c90d0;};return a212_0x1d4b();}function a212_0x5830(_0x441ad0,_0xeb6346){_0x441ad0=_0x441ad0-0xbc;const _0x1d4bc5=a212_0x1d4b();let _0x583070=_0x1d4bc5[_0x441ad0];return _0x583070;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a212_0x335fc3(0xc2),'pretty','compress'];
@@ -1 +1 @@
1
- const a214_0x3f8cb5=a214_0x1ac2;(function(_0x8f6047,_0x53de94){const _0x104086=a214_0x1ac2,_0x4ce383=_0x8f6047();while(!![]){try{const _0x49521a=-parseInt(_0x104086(0x6e))/0x1+-parseInt(_0x104086(0x6b))/0x2+parseInt(_0x104086(0x65))/0x3*(-parseInt(_0x104086(0x6d))/0x4)+parseInt(_0x104086(0x64))/0x5+parseInt(_0x104086(0x67))/0x6*(parseInt(_0x104086(0x69))/0x7)+-parseInt(_0x104086(0x6a))/0x8*(-parseInt(_0x104086(0x66))/0x9)+parseInt(_0x104086(0x68))/0xa*(parseInt(_0x104086(0x6c))/0xb);if(_0x49521a===_0x53de94)break;else _0x4ce383['push'](_0x4ce383['shift']());}catch(_0x2ec1a1){_0x4ce383['push'](_0x4ce383['shift']());}}}(a214_0x112f,0xe2aad));function a214_0x1ac2(_0x1ff61a,_0x486bb8){_0x1ff61a=_0x1ff61a-0x64;const _0x112fc3=a214_0x112f();let _0x1ac2f6=_0x112fc3[_0x1ff61a];return _0x1ac2f6;}function a214_0x112f(){const _0x28f7df=['1044044WygSPM','79849jGQoFr','./src/api','7677735YGDets','18WtCaXU','3411qjETwo','204IrGopn','24730xlQmpt','193067FTHWjC','4848kmTOEn','3576028duBkRR','7381NymQne'];a214_0x112f=function(){return _0x28f7df;};return a214_0x112f();}export const DEFAULT_API_DIR=a214_0x3f8cb5(0x6f);
1
+ function a213_0x5338(){const _0xb0c786=['1327145SHOxci','7297353tGYZRr','3567137rmqnAT','4GoXWaq','318411uNPxWn','2330tPEeyu','781746hGtNtS','./src/api','25TaGstI','299608woVxtf'];a213_0x5338=function(){return _0xb0c786;};return a213_0x5338();}const a213_0x5ecc90=a213_0x42ee;(function(_0x2315cd,_0x34ed8e){const _0x4c5e92=a213_0x42ee,_0x1d3b29=_0x2315cd();while(!![]){try{const _0x42fe23=-parseInt(_0x4c5e92(0xa3))/0x1*(-parseInt(_0x4c5e92(0xa0))/0x2)+parseInt(_0x4c5e92(0x9f))/0x3+parseInt(_0x4c5e92(0x9e))/0x4*(-parseInt(_0x4c5e92(0xa5))/0x5)+parseInt(_0x4c5e92(0xa1))/0x6+-parseInt(_0x4c5e92(0xa7))/0x7+-parseInt(_0x4c5e92(0xa4))/0x8+parseInt(_0x4c5e92(0xa6))/0x9;if(_0x42fe23===_0x34ed8e)break;else _0x1d3b29['push'](_0x1d3b29['shift']());}catch(_0x2a2126){_0x1d3b29['push'](_0x1d3b29['shift']());}}}(a213_0x5338,0x406db));function a213_0x42ee(_0xab2eb4,_0x29f847){_0xab2eb4=_0xab2eb4-0x9e;const _0x53381f=a213_0x5338();let _0x42eead=_0x53381f[_0xab2eb4];return _0x42eead;}export const DEFAULT_API_DIR=a213_0x5ecc90(0xa2);
@@ -0,0 +1,9 @@
1
+ export declare const LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
2
+ /** Regions currently available for new CLI configuration. */
3
+ export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
4
+ export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
5
+ export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
6
+ export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
7
+ export declare function isEnabledLovrabetRegion(value: unknown): value is "cn" | "id";
8
+ /** Keeps legacy long names and disabled regions readable; new writes use the enabled list. */
9
+ export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion;
@@ -0,0 +1 @@
1
+ const a214_0x1cd1f7=a214_0x26c4;(function(_0x3f0f5e,_0x1ea9e7){const _0x5af3fe=a214_0x26c4,_0x518890=_0x3f0f5e();while(!![]){try{const _0x18b07c=parseInt(_0x5af3fe(0x182))/0x1*(-parseInt(_0x5af3fe(0x17e))/0x2)+parseInt(_0x5af3fe(0x173))/0x3+-parseInt(_0x5af3fe(0x174))/0x4+-parseInt(_0x5af3fe(0x176))/0x5+parseInt(_0x5af3fe(0x181))/0x6*(-parseInt(_0x5af3fe(0x17f))/0x7)+parseInt(_0x5af3fe(0x178))/0x8*(parseInt(_0x5af3fe(0x17d))/0x9)+parseInt(_0x5af3fe(0x17a))/0xa*(parseInt(_0x5af3fe(0x17b))/0xb);if(_0x18b07c===_0x1ea9e7)break;else _0x518890['push'](_0x518890['shift']());}catch(_0x96d2cb){_0x518890['push'](_0x518890['shift']());}}}(a214_0xef3f,0xd43bd));export const LOVRABET_REGION_VALUES=['cn','id',a214_0x1cd1f7(0x179)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];function a214_0x26c4(_0x46ae0e,_0x285d10){_0x46ae0e=_0x46ae0e-0x173;const _0xef3ff2=a214_0xef3f();let _0x26c4c8=_0xef3ff2[_0x46ae0e];return _0x26c4c8;}export const DEFAULT_LOVRABET_REGION='cn';function a214_0xef3f(){const _0x336a11=['includes','621pGrnWL','18lleigU','56losyiL','indonesia','456174zaHHBE','14789bujTZb','1045968cFBLVM','3104720sYxfUC','string','8618595TrsTTa','china','82504CWVFqx','global','10OQjJJN','33553168oUcrng'];a214_0xef3f=function(){return _0x336a11;};return a214_0xef3f();}export function isLovrabetRegion(_0x2921ec){const _0x283425=a214_0x1cd1f7;return typeof _0x2921ec===_0x283425(0x175)&&LOVRABET_REGION_VALUES['includes'](_0x2921ec);}export function isEnabledLovrabetRegion(_0x486083){const _0x557dcf=a214_0x1cd1f7;return typeof _0x486083==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x557dcf(0x17c)](_0x486083);}export function normalizeLovrabetRegion(_0x557f2b){const _0x3ce6d1=a214_0x1cd1f7;if(_0x557f2b===_0x3ce6d1(0x177))return'cn';if(_0x557f2b===_0x3ce6d1(0x180))return'id';return isLovrabetRegion(_0x557f2b)?_0x557f2b:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- const a215_0xcbdc6b=a215_0x3411;(function(_0x1372eb,_0xa76312){const _0x9b92d2=a215_0x3411,_0x4f00f8=_0x1372eb();while(!![]){try{const _0x15d214=-parseInt(_0x9b92d2(0x144))/0x1*(parseInt(_0x9b92d2(0x142))/0x2)+-parseInt(_0x9b92d2(0x140))/0x3+-parseInt(_0x9b92d2(0x146))/0x4+parseInt(_0x9b92d2(0x143))/0x5*(-parseInt(_0x9b92d2(0x141))/0x6)+-parseInt(_0x9b92d2(0x13f))/0x7+parseInt(_0x9b92d2(0x145))/0x8+parseInt(_0x9b92d2(0x13e))/0x9;if(_0x15d214===_0xa76312)break;else _0x4f00f8['push'](_0x4f00f8['shift']());}catch(_0x59fdea){_0x4f00f8['push'](_0x4f00f8['shift']());}}}(a215_0x14a1,0xddc1b));function a215_0x3411(_0x4c40e8,_0x123927){_0x4c40e8=_0x4c40e8-0x13d;const _0x14a1cf=a215_0x14a1();let _0x341137=_0x14a1cf[_0x4c40e8];return _0x341137;}export const RISK_LEVEL_VALUES=['read',a215_0xcbdc6b(0x13d),'high-risk-write'];function a215_0x14a1(){const _0x165d5a=['41400hxEKHx','81992uPKnjx','write','43518807abuXbd','5517785OAmFux','4326654FDZBAs','2175942AyieQu','527462QzGfbh','5TwiXkN','5ueQNCc'];a215_0x14a1=function(){return _0x165d5a;};return a215_0x14a1();}
1
+ const a215_0x43e649=a215_0x3c35;(function(_0x120456,_0x170da7){const _0x52315a=a215_0x3c35,_0x1d4166=_0x120456();while(!![]){try{const _0x448270=parseInt(_0x52315a(0x136))/0x1+-parseInt(_0x52315a(0x138))/0x2+-parseInt(_0x52315a(0x13a))/0x3+-parseInt(_0x52315a(0x137))/0x4*(-parseInt(_0x52315a(0x13c))/0x5)+-parseInt(_0x52315a(0x133))/0x6+-parseInt(_0x52315a(0x139))/0x7+parseInt(_0x52315a(0x13d))/0x8*(parseInt(_0x52315a(0x134))/0x9);if(_0x448270===_0x170da7)break;else _0x1d4166['push'](_0x1d4166['shift']());}catch(_0x42b8c0){_0x1d4166['push'](_0x1d4166['shift']());}}}(a215_0x57cf,0xc0f1d));export const RISK_LEVEL_VALUES=['read',a215_0x43e649(0x135),a215_0x43e649(0x13b)];function a215_0x3c35(_0x38f928,_0x28d4fa){_0x38f928=_0x38f928-0x133;const _0x57cf71=a215_0x57cf();let _0x3c35d2=_0x57cf71[_0x38f928];return _0x3c35d2;}function a215_0x57cf(){const _0x71d696=['8641080iEUggk','1037226wbStCC','high-risk-write','19595qngWpa','5152rhVXwc','2560686EEKQZA','15291JXOhRg','write','1027350cnICLq','1432NGSOQJ','1454488XvdXYI'];a215_0x57cf=function(){return _0x71d696;};return a215_0x57cf();}
@@ -1 +1 @@
1
- (function(_0x5b5927,_0x1d1fc5){const _0x2ef720=a216_0x1f64,_0x2cf7b0=_0x5b5927();while(!![]){try{const _0x2fa636=parseInt(_0x2ef720(0x187))/0x1+-parseInt(_0x2ef720(0x17d))/0x2*(-parseInt(_0x2ef720(0x18b))/0x3)+parseInt(_0x2ef720(0x18d))/0x4+parseInt(_0x2ef720(0x181))/0x5+parseInt(_0x2ef720(0x16e))/0x6+-parseInt(_0x2ef720(0x195))/0x7+-parseInt(_0x2ef720(0x16f))/0x8*(parseInt(_0x2ef720(0x17b))/0x9);if(_0x2fa636===_0x1d1fc5)break;else _0x2cf7b0['push'](_0x2cf7b0['shift']());}catch(_0x1cca81){_0x2cf7b0['push'](_0x2cf7b0['shift']());}}}(a216_0x1e52,0x25c4f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x2b2b56){const _0x5d37d0=a216_0x1f64;return typeof _0x2b2b56==='string'&&_0x2b2b56[_0x5d37d0(0x196)]()?_0x2b2b56[_0x5d37d0(0x196)]():undefined;}function appProfiles(_0x2ee853){const _0x3ab563=a216_0x1f64;return _0x2ee853[_0x3ab563(0x17c)]&&typeof _0x2ee853[_0x3ab563(0x17c)]===_0x3ab563(0x194)?_0x2ee853[_0x3ab563(0x17c)]:{};}function resolveDefaultAppName(_0x178b89){const _0x3c5937=a216_0x1f64,_0x44295a=stringConfigValue(_0x178b89[_0x3c5937(0x191)]);if(_0x44295a)return _0x44295a;return Object[_0x3c5937(0x190)](appProfiles(_0x178b89))[0x0];}function resolveTopLevelAppCode(_0xbcd8be){const _0x2d72ac=a216_0x1f64;return stringConfigValue(_0xbcd8be[_0x2d72ac(0x18f)])||stringConfigValue(_0xbcd8be[_0x2d72ac(0x19a)]);}function normalizeRiskCeiling(_0x33581b){const _0x1fdbc7=a216_0x1f64;if(_0x33581b===undefined||_0x33581b===null)return undefined;if(_0x33581b===_0x1fdbc7(0x188)||_0x33581b===_0x1fdbc7(0x189)||_0x33581b==='high-risk-write')return _0x33581b;return _0x1fdbc7(0x188);}function resolveRiskCeiling(..._0x1245d8){const _0x4262ef=a216_0x1f64;let _0x38ccc2;for(const _0x25430c of _0x1245d8){const _0x3a00b=normalizeRiskCeiling(_0x25430c);_0x3a00b&&(!_0x38ccc2||riskLevelOrder(_0x3a00b)<riskLevelOrder(_0x38ccc2))&&(_0x38ccc2=_0x3a00b);}return _0x38ccc2??DEFAULT_CONFIG_VALUES[_0x4262ef(0x171)];}function a216_0x1f64(_0x511fc3,_0x1034d6){_0x511fc3=_0x511fc3-0x16e;const _0x1e52a3=a216_0x1e52();let _0x1f647f=_0x1e52a3[_0x511fc3];return _0x1f647f;}function a216_0x1e52(){const _0xce71af=['1196980dGtrZx','maxRisk','appcode','keys','defaultApp','locale','globalConfig','object','1749468eojrur','trim','VERBOSE','apiDir','projectConfig','app','777720iwoMNM','32hKhLGS','length','riskLevel','ACCESS_KEY','production','prototype','hasOwnProperty','FORMAT','COOKIE','accessKey','string','PAGE_SIZE','1074474PIvWrM','apps','349562mVFdNi','env','APP','call','1028240HIbHdI','cookie','format','daily','entries','inherit','72877YlqTUD','read','write','MAX_RISK','3apzkvg','pageSize'];a216_0x1e52=function(){return _0xce71af;};return a216_0x1e52();}function configuredRiskCeilings(_0x280cd5){const _0x924dab=a216_0x1f64;return[...Object[_0x924dab(0x174)][_0x924dab(0x175)][_0x924dab(0x180)](_0x280cd5,_0x924dab(0x18e))?[_0x280cd5['maxRisk']]:[],...Object[_0x924dab(0x174)][_0x924dab(0x175)]['call'](_0x280cd5,_0x924dab(0x171))?[_0x280cd5[_0x924dab(0x171)]]:[]];}export function resolveAppConfig({raw:_0xba9551,flags:_0x453051,layers:_0x274149,readEnv:_0x26839e}){const _0x30190e=a216_0x1f64,_0x29a7c4=_0x274149?.[_0x30190e(0x199)]??{},_0xa5641f=_0x274149?.[_0x30190e(0x193)]??{},_0x196272=Object['keys'](_0x29a7c4)[_0x30190e(0x170)]>0x0,_0x3b7006=!_0x196272||_0x29a7c4[_0x30190e(0x186)]===!![],_0x12b970=_0x196272?resolveDefaultAppName(_0x29a7c4):undefined,_0x5e1c83=_0x3b7006?resolveDefaultAppName(_0xa5641f):undefined,_0x1a345a=stringConfigValue(_0x453051[_0x30190e(0x19a)]),_0x4014ca=_0x26839e(_0x30190e(0x17f)),_0x5127a6={};if(_0xba9551[_0x30190e(0x17c)]&&typeof _0xba9551[_0x30190e(0x17c)]===_0x30190e(0x194))for(const [_0x37e04b,_0x568304]of Object[_0x30190e(0x185)](_0xba9551[_0x30190e(0x17c)])){_0x568304&&typeof _0x568304===_0x30190e(0x194)&&_0x568304[_0x30190e(0x18f)]&&(_0x5127a6[_0x37e04b]=_0x568304);}const _0x420665=_0xba9551[_0x30190e(0x191)]||undefined,_0xc4502=Object[_0x30190e(0x190)](_0x5127a6)[_0x30190e(0x170)]>0x0,_0xb0f40f=_0x1a345a||_0x12b970||_0x4014ca||_0x5e1c83||_0x420665||undefined,_0x1fb256=stringConfigValue(_0x453051['appcode']),_0x4888a5=_0x1fb256?Object[_0x30190e(0x185)](_0x5127a6)['find'](([,_0x6f43b2])=>_0x6f43b2?.[_0x30190e(0x18f)]===_0x1fb256):undefined,_0x4da2ff=_0x4888a5?.[0x0],_0x2b6f60=_0x4888a5?.[0x1],_0x2fcce0=_0x1fb256?_0x4da2ff:_0xb0f40f;let _0x45cf1d=_0x2fcce0&&_0x5127a6[_0x2fcce0]?_0x5127a6[_0x2fcce0]:undefined;_0x1fb256&&_0x2b6f60&&(_0x45cf1d=_0x2b6f60);const _0x31c23a=_0x1fb256?_0x2b6f60??_0x45cf1d:_0x45cf1d,_0x59dc79=!_0x1a345a&&!_0x12b970&&_0x4014ca&&_0x2fcce0===_0x4014ca,_0x4c11c2=_0x1a345a||(_0x59dc79?_0x4014ca:undefined)||(_0x1fb256?_0x4da2ff:undefined),_0x551956=_0x31c23a?.['appcode'],_0x2014c4=_0x196272?resolveTopLevelAppCode(_0x29a7c4):undefined,_0x48643c=_0x3b7006?resolveTopLevelAppCode(_0xa5641f):undefined,_0x448358=_0x1a345a||_0x12b970?_0x551956:undefined,_0x480329=!_0x1a345a&&!_0x12b970?_0x551956:undefined,_0x256299=_0x1fb256||_0x448358||_0x2014c4||_0x480329||_0x48643c||undefined,_0x2d0766=_0x196272?stringConfigValue(_0x29a7c4[_0x30190e(0x17e)]):undefined,_0x41d6c2=_0x3b7006?stringConfigValue(_0xa5641f[_0x30190e(0x17e)]):undefined,_0xceaef9=_0x453051[_0x30190e(0x17e)]||_0x31c23a?.[_0x30190e(0x17e)]||_0x2d0766||_0x26839e('ENV')||_0x41d6c2||_0xba9551['env']||DEFAULT_CONFIG_VALUES[_0x30190e(0x17e)],_0x141df2=_0x31c23a?.[_0x30190e(0x192)]||_0xba9551[_0x30190e(0x192)]||DEFAULT_CONFIG_VALUES[_0x30190e(0x192)],_0x25f42f=_0x26839e(_0x30190e(0x177))||_0x31c23a?.[_0x30190e(0x182)]||_0xba9551['cookie']||undefined,_0x2e12d7=_0x26839e(_0x30190e(0x172))||_0x31c23a?.['accessKey']||_0xba9551[_0x30190e(0x178)]||undefined,_0x178dcf=_0x453051[_0x30190e(0x183)]||_0x26839e(_0x30190e(0x176))||_0x31c23a?.['format']||_0xba9551[_0x30190e(0x183)],_0x815fec=normalizeLegacyOutputFormat(_0x178dcf),_0x9479bf=_0x26839e(_0x30190e(0x17a))||_0x31c23a?.[_0x30190e(0x18c)]||_0xba9551['pageSize'],_0x4a90ca=_0x9479bf?Number(_0x9479bf)||undefined:undefined,_0x49bb97=_0x274149?[...configuredRiskCeilings(_0x274149['globalConfig']),...configuredRiskCeilings(_0x274149[_0x30190e(0x199)])]:configuredRiskCeilings(_0xba9551),_0x1fa586=resolveRiskCeiling(..._0x49bb97,_0x31c23a?.[_0x30190e(0x171)]),_0xf7de84=resolveRiskCeiling(_0x1fa586,_0x26839e('RISK_LEVEL'),_0x26839e(_0x30190e(0x18a))),_0x464c5b=_0x26839e(_0x30190e(0x197)),_0x41a4bb=_0x464c5b==='1'||_0x464c5b==='true',_0x35456e=_0x31c23a?.['apiDir']||_0xba9551['apiDir']||DEFAULT_CONFIG_VALUES[_0x30190e(0x198)],_0x35f55e=isDaily(normalizeEnv(String(_0xceaef9)))?_0x30190e(0x184):_0x30190e(0x173);return{'appCode':typeof _0x256299===_0x30190e(0x179)&&_0x256299[_0x30190e(0x196)]()?_0x256299[_0x30190e(0x196)]():undefined,'env':_0x35f55e,'locale':_0x141df2,'cookie':_0x25f42f,'accessKey':_0x2e12d7,'format':_0x815fec,'pageSize':_0x4a90ca,'riskLevel':_0xf7de84,'verbose':_0x41a4bb,'apiDir':_0x35456e,'apps':_0x5127a6,'defaultApp':_0x420665,'currentApp':_0xc4502?_0x2fcce0:undefined,'explicitAppName':_0x4c11c2};}
1
+ function a216_0x174c(_0x1ecaa8,_0x4c7776){_0x1ecaa8=_0x1ecaa8-0x107;const _0x9cddf6=a216_0x9cdd();let _0x174c32=_0x9cddf6[_0x1ecaa8];return _0x174c32;}(function(_0x17a483,_0x5df31a){const _0x3a937e=a216_0x174c,_0x13a41e=_0x17a483();while(!![]){try{const _0x10be2c=-parseInt(_0x3a937e(0x12a))/0x1*(parseInt(_0x3a937e(0x128))/0x2)+parseInt(_0x3a937e(0x114))/0x3+parseInt(_0x3a937e(0x12d))/0x4+parseInt(_0x3a937e(0x11b))/0x5+parseInt(_0x3a937e(0x120))/0x6*(parseInt(_0x3a937e(0x12c))/0x7)+parseInt(_0x3a937e(0x12e))/0x8+-parseInt(_0x3a937e(0x11a))/0x9*(parseInt(_0x3a937e(0x112))/0xa);if(_0x10be2c===_0x5df31a)break;else _0x13a41e['push'](_0x13a41e['shift']());}catch(_0x33918c){_0x13a41e['push'](_0x13a41e['shift']());}}}(a216_0x9cdd,0xa9713));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x287e38){const _0x43ffe9=a216_0x174c;return typeof _0x287e38==='string'&&_0x287e38[_0x43ffe9(0x124)]()?_0x287e38['trim']():undefined;}function appProfiles(_0x47ef33){const _0x290e11=a216_0x174c;return _0x47ef33[_0x290e11(0x10a)]&&typeof _0x47ef33[_0x290e11(0x10a)]===_0x290e11(0x131)?_0x47ef33[_0x290e11(0x10a)]:{};}function resolveDefaultAppName(_0x25d1aa){const _0x3485bd=a216_0x174c,_0x1cb9dc=stringConfigValue(_0x25d1aa[_0x3485bd(0x10d)]);if(_0x1cb9dc)return _0x1cb9dc;const _0xb234e3=Object['keys'](appProfiles(_0x25d1aa));return _0xb234e3[_0x3485bd(0x10f)]===0x1?_0xb234e3[0x0]:undefined;}function resolveTopLevelAppCode(_0xa9ff08){const _0x3f68ee=a216_0x174c;return stringConfigValue(_0xa9ff08[_0x3f68ee(0x129)])||stringConfigValue(_0xa9ff08[_0x3f68ee(0x125)]);}function normalizeRiskCeiling(_0x45130c){const _0x4c185e=a216_0x174c;if(_0x45130c===undefined||_0x45130c===null)return undefined;if(_0x45130c===_0x4c185e(0x115)||_0x45130c===_0x4c185e(0x126)||_0x45130c===_0x4c185e(0x111))return _0x45130c;return'read';}function resolveRiskCeiling(..._0x2911b3){const _0x3e77a2=a216_0x174c;let _0x3048ea;for(const _0x3eabc1 of _0x2911b3){const _0x3de06c=normalizeRiskCeiling(_0x3eabc1);_0x3de06c&&(!_0x3048ea||riskLevelOrder(_0x3de06c)<riskLevelOrder(_0x3048ea))&&(_0x3048ea=_0x3de06c);}return _0x3048ea??DEFAULT_CONFIG_VALUES[_0x3e77a2(0x118)];}function configuredRiskCeilings(_0x2ad129){const _0x5e8dd2=a216_0x174c;return[...Object[_0x5e8dd2(0x11d)][_0x5e8dd2(0x116)][_0x5e8dd2(0x10c)](_0x2ad129,_0x5e8dd2(0x132))?[_0x2ad129['maxRisk']]:[],...Object[_0x5e8dd2(0x11d)][_0x5e8dd2(0x116)][_0x5e8dd2(0x10c)](_0x2ad129,_0x5e8dd2(0x118))?[_0x2ad129[_0x5e8dd2(0x118)]]:[]];}function a216_0x9cdd(){const _0x3684b5=['high-risk-write','21220pMvrXZ','env','845772exZhTY','read','hasOwnProperty','projectConfig','riskLevel','MAX_RISK','10674BQSWhw','4336750fkvcCX','APP','prototype','pageSize','COOKIE','92190ohdpwu','entries','locale','production','trim','app','write','PAGE_SIZE','18rueRrV','appcode','24003FRsNjR','ENV','105rgHgDT','3680920gvPDyr','9014200LdvTfn','apiDir','daily','object','maxRisk','FORMAT','keys','find','projectPath','ACCESS_KEY','apps','string','call','defaultApp','format','length','RISK_LEVEL'];a216_0x9cdd=function(){return _0x3684b5;};return a216_0x9cdd();}export function resolveAppConfig({raw:_0x58853f,flags:_0x1c19a4,layers:_0x33368a,readEnv:_0x5d12ee}){const _0x2ae79e=a216_0x174c,_0x3f1597=_0x33368a?.[_0x2ae79e(0x117)]??{},_0x3e4165=_0x33368a?.['globalConfig']??{},_0x1682db=!!_0x33368a?.[_0x2ae79e(0x108)]||Object[_0x2ae79e(0x134)](_0x3f1597)[_0x2ae79e(0x10f)]>0x0,_0x28345d=!_0x1682db,_0x41e225=_0x1682db?resolveDefaultAppName(_0x3f1597):undefined,_0x33dcda=_0x28345d?resolveDefaultAppName(_0x3e4165):undefined,_0x5cbbe6=stringConfigValue(_0x1c19a4[_0x2ae79e(0x125)]),_0xbcc40=_0x5d12ee(_0x2ae79e(0x11c)),_0x562bdb={};if(_0x58853f['apps']&&typeof _0x58853f[_0x2ae79e(0x10a)]===_0x2ae79e(0x131))for(const [_0x43c309,_0x58dd06]of Object[_0x2ae79e(0x121)](_0x58853f[_0x2ae79e(0x10a)])){_0x58dd06&&typeof _0x58dd06===_0x2ae79e(0x131)&&_0x58dd06['appcode']&&(_0x562bdb[_0x43c309]=_0x58dd06);}const _0x59b711=_0x41e225||_0x33dcda||resolveDefaultAppName(_0x58853f),_0x5b0c5e=Object[_0x2ae79e(0x134)](_0x562bdb)[_0x2ae79e(0x10f)]>0x0,_0x240c52=_0x5cbbe6||_0x41e225||_0xbcc40||_0x33dcda||_0x59b711||undefined,_0xfa4ec7=stringConfigValue(_0x1c19a4[_0x2ae79e(0x129)]),_0x16d1b0=_0xfa4ec7?Object[_0x2ae79e(0x121)](_0x562bdb)[_0x2ae79e(0x107)](([,_0x4a1bbb])=>_0x4a1bbb?.[_0x2ae79e(0x129)]===_0xfa4ec7):undefined,_0xec8b5b=_0x16d1b0?.[0x0],_0x3894c8=_0x16d1b0?.[0x1],_0x2dbd8=_0xfa4ec7?_0xec8b5b:_0x240c52;let _0x3ad274=_0x2dbd8&&_0x562bdb[_0x2dbd8]?_0x562bdb[_0x2dbd8]:undefined;_0xfa4ec7&&_0x3894c8&&(_0x3ad274=_0x3894c8);const _0xc2278b=_0xfa4ec7?_0x3894c8??_0x3ad274:_0x3ad274,_0x49f874=!_0x5cbbe6&&!_0x41e225&&_0xbcc40&&_0x2dbd8===_0xbcc40,_0x3423fc=_0x5cbbe6||(_0x49f874?_0xbcc40:undefined)||(_0xfa4ec7?_0xec8b5b:undefined),_0x263747=_0xc2278b?.[_0x2ae79e(0x129)],_0x163bb2=_0x1682db?resolveTopLevelAppCode(_0x3f1597):undefined,_0x39410d=_0x28345d?resolveTopLevelAppCode(_0x3e4165):undefined,_0xd7e11d=_0x5cbbe6||_0x41e225?_0x263747:undefined,_0x4cbbcd=!_0x5cbbe6&&!_0x41e225?_0x263747:undefined,_0x5eb249=_0xfa4ec7||_0xd7e11d||_0x163bb2||_0x4cbbcd||_0x39410d||undefined,_0x5b8bb1=_0x1682db?stringConfigValue(_0x3f1597[_0x2ae79e(0x113)]):undefined,_0x5ee11a=_0x28345d?stringConfigValue(_0x3e4165[_0x2ae79e(0x113)]):undefined,_0x465518=_0x1c19a4[_0x2ae79e(0x113)]||_0xc2278b?.['env']||_0x5b8bb1||_0x5d12ee(_0x2ae79e(0x12b))||_0x5ee11a||_0x58853f['env']||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x113)],_0x3eb82f=_0xc2278b?.['locale']||_0x58853f[_0x2ae79e(0x122)]||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x122)],_0x3936b0=_0x5d12ee(_0x2ae79e(0x11f))||_0xc2278b?.['cookie']||_0x58853f['cookie']||undefined,_0x44796d=_0x5d12ee(_0x2ae79e(0x109))||_0xc2278b?.['accessKey']||_0x58853f['accessKey']||undefined,_0x33411f=_0x1c19a4[_0x2ae79e(0x10e)]||_0x5d12ee(_0x2ae79e(0x133))||_0xc2278b?.[_0x2ae79e(0x10e)]||_0x58853f[_0x2ae79e(0x10e)],_0x15bb3e=normalizeLegacyOutputFormat(_0x33411f),_0x2bfb90=_0x5d12ee(_0x2ae79e(0x127))||_0xc2278b?.[_0x2ae79e(0x11e)]||_0x58853f['pageSize'],_0x4aa81b=_0x2bfb90?Number(_0x2bfb90)||undefined:undefined,_0x2f42e7=_0x33368a?[...configuredRiskCeilings(_0x33368a['globalConfig']),...configuredRiskCeilings(_0x33368a[_0x2ae79e(0x117)])]:configuredRiskCeilings(_0x58853f),_0x20e517=resolveRiskCeiling(..._0x2f42e7,_0xc2278b?.[_0x2ae79e(0x118)]),_0x30da00=resolveRiskCeiling(_0x20e517,_0x5d12ee(_0x2ae79e(0x110)),_0x5d12ee(_0x2ae79e(0x119))),_0xf9af6f=_0x5d12ee('VERBOSE'),_0x4acad1=_0xf9af6f==='1'||_0xf9af6f==='true',_0x252b23=_0xc2278b?.[_0x2ae79e(0x12f)]||_0x58853f[_0x2ae79e(0x12f)]||DEFAULT_CONFIG_VALUES[_0x2ae79e(0x12f)],_0x1f79ae=isDaily(normalizeEnv(String(_0x465518)))?_0x2ae79e(0x130):_0x2ae79e(0x123);return{'appCode':typeof _0x5eb249===_0x2ae79e(0x10b)&&_0x5eb249['trim']()?_0x5eb249[_0x2ae79e(0x124)]():undefined,'env':_0x1f79ae,'locale':_0x3eb82f,'cookie':_0x3936b0,'accessKey':_0x44796d,'format':_0x15bb3e,'pageSize':_0x4aa81b,'riskLevel':_0x30da00,'verbose':_0x4acad1,'apiDir':_0x252b23,'apps':_0x562bdb,'defaultApp':_0x59b711,'currentApp':_0x5b0c5e?_0x2dbd8:undefined,'explicitAppName':_0x3423fc};}
@@ -1 +1 @@
1
- function a217_0x4d5b(_0x10825d,_0x26b806){_0x10825d=_0x10825d-0x74;const _0x537e22=a217_0x537e();let _0x4d5b5c=_0x537e22[_0x10825d];return _0x4d5b5c;}(function(_0x58f351,_0x13312b){const _0x5f343d=a217_0x4d5b,_0x12cf83=_0x58f351();while(!![]){try{const _0xa72586=-parseInt(_0x5f343d(0x7d))/0x1+-parseInt(_0x5f343d(0x7c))/0x2*(parseInt(_0x5f343d(0x80))/0x3)+parseInt(_0x5f343d(0x7b))/0x4+parseInt(_0x5f343d(0x76))/0x5+-parseInt(_0x5f343d(0x7f))/0x6+parseInt(_0x5f343d(0x74))/0x7*(parseInt(_0x5f343d(0x77))/0x8)+-parseInt(_0x5f343d(0x78))/0x9*(-parseInt(_0x5f343d(0x7a))/0xa);if(_0xa72586===_0x13312b)break;else _0x12cf83['push'](_0x12cf83['shift']());}catch(_0x210907){_0x12cf83['push'](_0x12cf83['shift']());}}}(a217_0x537e,0x1be61));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a217_0x537e(){const _0xa6ab6=['200hlcLYO','171164qnkllz','authRequired','473784JMZpwR','1083WsOeuM','14777pYfXjb','../auth/get-cookie.js','415950QSAqDA','360pDqbxm','18doBTmL','cookie','255670HxShzs','684728FwvOGD'];a217_0x537e=function(){return _0xa6ab6;};return a217_0x537e();}export async function buildAuth(_0x223c56){const _0x4eca2f=a217_0x4d5b,{getCookie:_0x36ae0b}=await import(_0x4eca2f(0x75)),_0x37255b=_0x223c56[_0x4eca2f(0x79)]||_0x36ae0b(),_0x3c1281=_0x37255b?await getIsSessionValid():![];return{'cookie':_0x37255b,'isLoggedIn':_0x3c1281,async 'getOrLogin'(){const _0x252c73=_0x4eca2f;if(_0x37255b&&_0x3c1281)return _0x37255b;throw CliErrors[_0x252c73(0x7e)]();}};}
1
+ (function(_0x35ea6d,_0x36c747){const _0x40a9cf=a217_0x3701,_0x264b00=_0x35ea6d();while(!![]){try{const _0x274649=-parseInt(_0x40a9cf(0x1f9))/0x1+-parseInt(_0x40a9cf(0x1fb))/0x2+-parseInt(_0x40a9cf(0x1f7))/0x3+parseInt(_0x40a9cf(0x1f8))/0x4*(-parseInt(_0x40a9cf(0x1f1))/0x5)+-parseInt(_0x40a9cf(0x1fa))/0x6+parseInt(_0x40a9cf(0x1f6))/0x7*(-parseInt(_0x40a9cf(0x1f3))/0x8)+parseInt(_0x40a9cf(0x1f4))/0x9;if(_0x274649===_0x36c747)break;else _0x264b00['push'](_0x264b00['shift']());}catch(_0x2050b3){_0x264b00['push'](_0x264b00['shift']());}}}(a217_0x4108,0x3c001));import{getIsSessionValid}from'../auth/is-session-valid.js';function a217_0x3701(_0x29f641,_0x35a663){_0x29f641=_0x29f641-0x1f1;const _0x410892=a217_0x4108();let _0x3701c4=_0x410892[_0x29f641];return _0x3701c4;}import{CliErrors}from'../errors.js';function a217_0x4108(){const _0x1e6912=['187020JGSdhq','cookie','824NMFIkV','18101790hChFom','authRequired','26789mOoLnb','1411356rdjboX','16QIwHNX','196359zZpRRi','1752750VWcbOv','525632xuKTUp'];a217_0x4108=function(){return _0x1e6912;};return a217_0x4108();}export async function buildAuth(_0x48601a){const _0x417d0e=a217_0x3701,{getCookie:_0x1e868f}=await import('../auth/get-cookie.js'),_0xe26d9=_0x48601a[_0x417d0e(0x1f2)]||_0x1e868f(),_0x50948e=_0xe26d9?await getIsSessionValid():![];return{'cookie':_0xe26d9,'isLoggedIn':_0x50948e,async 'getOrLogin'(){const _0x1d4d9b=_0x417d0e;if(_0xe26d9&&_0x50948e)return _0xe26d9;throw CliErrors[_0x1d4d9b(0x1f5)]();}};}
@@ -1,9 +1,7 @@
1
1
  /** 新建配置文件时使用的文件名 */
2
2
  export declare const NEW_CONFIG_NAME = ".rabetbase.json";
3
- /** 按优先级排列的配置文件名:新名 > 旧名 > 更旧的名 */
4
- export declare const CONFIG_NAMES: readonly [".rabetbase.json", ".lovrabet.json", ".lovrabetrc"];
5
- /** 旧配置文件名(用于升级检测),不含新名 */
6
- export declare const LEGACY_CONFIG_NAMES: (".lovrabet.json" | ".lovrabetrc")[];
3
+ /** Rabetbase 唯一识别的配置文件名;不读取 Lovrabet Runtime CLI 配置。 */
4
+ export declare const CONFIG_NAMES: readonly [".rabetbase.json"];
7
5
  /** 全局 / 项目各一份原始 JSON(未合并),供 readRawConfig 与 app list 来源标注共用 */
8
6
  export interface RawConfigLayers {
9
7
  globalPath: string | undefined;
@@ -28,7 +26,7 @@ export type CliConfigJsonInspect = {
28
26
  */
29
27
  export declare function resolveConfigPath(base: string): string | undefined;
30
28
  /**
31
- * 从 startDir 起向父目录查找,直到出现项目配置文件(CONFIG_NAMES 任一)。
29
+ * 从 startDir 起向父目录查找,直到出现 .rabetbase.json。
32
30
  * 找不到则回退为 startDir。
33
31
  */
34
32
  export declare function findProjectRootDirectory(startDir?: string): string;
@@ -56,6 +54,6 @@ export declare function readConfigFile(filePath: string): Record<string, any>;
56
54
  export declare function writeConfigFile(filePath: string, data: Record<string, any>): void;
57
55
  /**
58
56
  * 确定应写入的配置文件路径。
59
- * 如果已存在旧文件则原地更新;否则用新名 .rabetbase.json
57
+ * 始终写入 .rabetbase.json,不读取或更新 Lovrabet Runtime CLI 配置。
60
58
  */
61
59
  export declare function resolveWriteConfigPath(scope: "project" | "global"): string;