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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) 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-detail.md +1 -1
  332. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  333. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  334. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  335. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  336. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  338. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  339. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  341. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  343. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  344. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  347. package/skills/rabetbase.manifest.json +4 -3
  348. package/templates/README.md +17 -28
  349. package/templates/generate-api/api.ts.tpl +3 -3
  350. package/templates/generate-api/client.ts.tpl +10 -37
  351. package/lib/commands/data/filter.d.ts +0 -7
  352. package/lib/commands/data/filter.js +0 -1
  353. package/lib/commands/data/getOne.d.ts +0 -7
  354. package/lib/commands/data/getOne.js +0 -1
  355. package/lib/commands/data/index.d.ts +0 -8
  356. package/lib/commands/data/index.js +0 -1
  357. package/lib/commands/data/shared.d.ts +0 -33
  358. package/lib/commands/data/shared.js +0 -1
  359. package/lib/commands/init/index.d.ts +0 -11
  360. package/lib/commands/init/index.js +0 -1
  361. package/lib/utils/rules-cdn.d.ts +0 -38
  362. package/lib/utils/rules-cdn.js +0 -1
  363. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  364. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- const a205_0x1d7bf1=a205_0x4468;(function(_0x1cc962,_0x59d576){const _0x4def37=a205_0x4468,_0x3b0293=_0x1cc962();while(!![]){try{const _0x2db487=-parseInt(_0x4def37(0x166))/0x1+parseInt(_0x4def37(0x170))/0x2*(-parseInt(_0x4def37(0x174))/0x3)+parseInt(_0x4def37(0x16e))/0x4*(parseInt(_0x4def37(0x145))/0x5)+-parseInt(_0x4def37(0x139))/0x6+parseInt(_0x4def37(0x171))/0x7*(parseInt(_0x4def37(0x15a))/0x8)+parseInt(_0x4def37(0x169))/0x9+parseInt(_0x4def37(0x148))/0xa*(parseInt(_0x4def37(0x146))/0xb);if(_0x2db487===_0x59d576)break;else _0x3b0293['push'](_0x3b0293['shift']());}catch(_0x47389e){_0x3b0293['push'](_0x3b0293['shift']());}}}(a205_0x5d4e,0xa56ee));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_0x1d7bf1(0x158),SAFE_PROFILE_KEYS=[a205_0x1d7bf1(0x142),a205_0x1d7bf1(0x143),'apiDir','format',a205_0x1d7bf1(0x14a),'riskLevel','locale'],workspaceFlags=[{'name':a205_0x1d7bf1(0x14d),'type':'string','description':a205_0x1d7bf1(0x172)},{'name':'appcode','type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x14f)},{'name':a205_0x1d7bf1(0x143),'type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x13d),'enum':[...RABETBASE_ENV_VALUES]},{'name':a205_0x1d7bf1(0x16a),'type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x15b)},{'name':a205_0x1d7bf1(0x15c),'type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x164),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a205_0x1d7bf1(0x14a),'type':'number','description':a205_0x1d7bf1(0x13c)},{'name':a205_0x1d7bf1(0x13e),'type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x150),'enum':[...RISK_LEVEL_VALUES]},{'name':a205_0x1d7bf1(0x140),'type':a205_0x1d7bf1(0x16f),'description':a205_0x1d7bf1(0x14b)}];function isRecord(_0x4fecc0){const _0x202437=a205_0x1d7bf1;return!!_0x4fecc0&&typeof _0x4fecc0===_0x202437(0x161)&&!Array[_0x202437(0x15f)](_0x4fecc0);}function assertValidAppcode(_0xb7bfa4){const _0x264817=a205_0x1d7bf1,{valid:_0x2a2525,message:_0x3d62b5}=validateAppcode(_0xb7bfa4);if(!_0x2a2525)throw CliErrors['validation'](_0x264817(0x167)+_0xb7bfa4,_0x3d62b5);}function sanitizeProfile(_0x472c81){if(!isRecord(_0x472c81))return{};const _0x5ec7a2={};for(const _0xc57d67 of SAFE_PROFILE_KEYS){if(_0x472c81[_0xc57d67]!==undefined)_0x5ec7a2[_0xc57d67]=_0x472c81[_0xc57d67];}return _0x5ec7a2;}function cloneProfile(_0x4daa7a){return isRecord(_0x4daa7a)?{..._0x4daa7a}:{};}function collectWorkspaceProfileOverrides(_0x13368e){const _0xb7cc21=a205_0x1d7bf1,_0x180231={},_0x17e8b3=_0x13368e[_0xb7cc21(0x157)]('env'),_0x2cd02a=_0x13368e[_0xb7cc21(0x157)](_0xb7cc21(0x16a)),_0x1c251c=_0x13368e[_0xb7cc21(0x157)](_0xb7cc21(0x15c)),_0x370489=_0x13368e[_0xb7cc21(0x156)](_0xb7cc21(0x14a)),_0x68b470=_0x13368e[_0xb7cc21(0x157)](_0xb7cc21(0x13e)),_0x32faf3=_0x13368e[_0xb7cc21(0x157)](_0xb7cc21(0x140));if(_0x17e8b3)_0x180231[_0xb7cc21(0x143)]=_0x17e8b3;if(_0x2cd02a)_0x180231[_0xb7cc21(0x16a)]=_0x2cd02a;if(_0x1c251c)_0x180231[_0xb7cc21(0x16c)]=_0x1c251c;if(_0x370489!==undefined&&_0x370489!=='')_0x180231['pageSize']=Number(_0x370489);if(_0x68b470)_0x180231['riskLevel']=_0x68b470;if(_0x32faf3)_0x180231['locale']=_0x32faf3;return _0x180231;}async function validateWorkspaceArgs(_0x1d7eef){const _0x3c458a=a205_0x1d7bf1,_0x21c340=_0x1d7eef[_0x3c458a(0x157)](_0x3c458a(0x14d))[_0x3c458a(0x149)](),_0x211349=_0x1d7eef[_0x3c458a(0x157)](_0x3c458a(0x142))[_0x3c458a(0x149)]();if(!_0x21c340&&!_0x211349)throw CliErrors[_0x3c458a(0x152)](_0x3c458a(0x162),_0x3c458a(0x15e)+CLI_BIN_NAME+_0x3c458a(0x160)+CLI_BIN_NAME+_0x3c458a(0x16b));if(_0x211349)assertValidAppcode(_0x211349);}function a205_0x5d4e(){const _0xe9d6ad=['1089710SQmSXE','trim','pageSize','Locale\x20for\x20this\x20workspace\x20app\x20profile','workspace.','app','use','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile',').\x20Config:\x20','validation','write','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','App\x20\x22','flag','str','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','keys','32HcxEYj','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','defaultFormat','join','Use\x20`','isArray','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','object','Missing\x20workspace\x20app\x20selector.','workspace','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','init','1005978qqPWSv','Invalid\x20appcode:\x20','\x20(appcode:\x20','957456jAtqwG','apiDir','\x20workspace\x20use\x20--app\x20<name>`.','format','Workspace\x20','1537468oZxnAU','string','6196oJROVz','2320304eWuAvf','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apps','783fWoeJN','1866870jcFwFr','length','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','Target\x20environment','riskLevel','globalConfig','locale','updated','appcode','env','project','15TKDYma','22QoUVhx','\x20--app\x20'];a205_0x5d4e=function(){return _0xe9d6ad;};return a205_0x5d4e();}function resolveKnownApps(){const _0x44b931=a205_0x1d7bf1,{config:_0x5c9f65,layers:_0x4551ae}=readRawConfigWithLayers(),_0x421cb2=isRecord(_0x5c9f65[_0x44b931(0x173)])?_0x5c9f65[_0x44b931(0x173)]:{},_0xfa0a6e=isRecord(_0x4551ae['globalConfig'][_0x44b931(0x173)])?_0x4551ae[_0x44b931(0x13f)][_0x44b931(0x173)]:{};return{..._0xfa0a6e,..._0x421cb2};}function a205_0x4468(_0x46bfc2,_0x11330f){_0x46bfc2=_0x46bfc2-0x139;const _0x5d4ebd=a205_0x5d4e();let _0x446833=_0x5d4ebd[_0x46bfc2];return _0x446833;}async function configureWorkspace(_0x3e9e47,_0x207743){const _0x554b04=a205_0x1d7bf1,_0x491e83=_0x3e9e47[_0x554b04(0x157)](_0x554b04(0x14d))['trim'](),_0x593143=_0x3e9e47['str'](_0x554b04(0x142))[_0x554b04(0x149)](),_0x55d1cd=_0x491e83||_0x593143;if(!_0x55d1cd)throw CliErrors[_0x554b04(0x152)]('Missing\x20workspace\x20app\x20selector.',_0x554b04(0x15e)+CLI_BIN_NAME+_0x554b04(0x160)+CLI_BIN_NAME+_0x554b04(0x16b));if(_0x593143)assertValidAppcode(_0x593143);const _0x391d37=resolveWriteConfigPath(_0x554b04(0x144)),_0x214d03=readConfigFile(_0x391d37),_0x52ad60=resolveKnownApps(),_0x3cef65=isRecord(_0x214d03['apps'])?{..._0x214d03['apps']}:{},_0x2a1125=cloneProfile(_0x3cef65[_0x55d1cd]),_0xa07829=sanitizeProfile(_0x52ad60[_0x55d1cd]),_0x41f277=_0x593143?{}:_0xa07829,_0x5367e2=_0x593143||_0x41f277[_0x554b04(0x142)];if(!_0x5367e2){const _0xf4d122=Object[_0x554b04(0x159)](_0x52ad60),_0x28759d=_0xf4d122[_0x554b04(0x13a)]===0x0?_0x554b04(0x15e)+CLI_BIN_NAME+'\x20workspace\x20'+_0x207743+_0x554b04(0x147)+_0x55d1cd+'\x20--appcode\x20<code>`.':_0x554b04(0x154)+_0xf4d122[_0x554b04(0x15d)](',\x20');throw CliErrors[_0x554b04(0x152)](_0x554b04(0x155)+_0x55d1cd+'\x22\x20not\x20found.',_0x28759d);}assertValidAppcode(String(_0x5367e2));const _0x5a40fc={..._0x41f277,..._0x2a1125,'appcode':String(_0x5367e2),...collectWorkspaceProfileOverrides(_0x3e9e47)};return _0x3cef65[_0x55d1cd]=_0x5a40fc,_0x214d03[_0x554b04(0x173)]=_0x3cef65,_0x214d03['defaultApp']=_0x55d1cd,delete _0x214d03[_0x554b04(0x142)],delete _0x214d03[_0x554b04(0x14d)],_0x5a40fc[_0x554b04(0x143)]&&(_0x214d03[_0x554b04(0x143)]=_0x5a40fc[_0x554b04(0x143)]),writeConfigFile(_0x391d37,_0x214d03),{'ok':!![],'message':_0x554b04(0x16d)+(_0x207743===_0x554b04(0x165)?'initialized':_0x554b04(0x141))+':\x20'+_0x55d1cd+_0x554b04(0x168)+_0x5a40fc[_0x554b04(0x142)]+_0x554b04(0x151)+_0x391d37+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x554b04(0x14c)+_0x207743,'configPath':_0x391d37,'app':_0x55d1cd,'appcode':_0x5a40fc[_0x554b04(0x142)],'env':_0x5a40fc['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a205_0x1d7bf1(0x13b),'risk':a205_0x1d7bf1(0x153),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x47acf0=>configureWorkspace(_0x47acf0,a205_0x1d7bf1(0x165))},workspaceUseDefinition={'service':a205_0x1d7bf1(0x163),'command':a205_0x1d7bf1(0x14e),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a205_0x1d7bf1(0x153),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5bb50f=>configureWorkspace(_0x5bb50f,a205_0x1d7bf1(0x14e))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a203_0x5bd0f8=a203_0xa225;(function(_0x511b87,_0x2e79a1){const _0x4b3bab=a203_0xa225,_0x22df60=_0x511b87();while(!![]){try{const _0x3379d7=parseInt(_0x4b3bab(0x11c))/0x1+parseInt(_0x4b3bab(0x142))/0x2*(-parseInt(_0x4b3bab(0x12f))/0x3)+parseInt(_0x4b3bab(0x12b))/0x4*(-parseInt(_0x4b3bab(0x123))/0x5)+parseInt(_0x4b3bab(0x133))/0x6+parseInt(_0x4b3bab(0x11f))/0x7+-parseInt(_0x4b3bab(0x122))/0x8+parseInt(_0x4b3bab(0x134))/0x9*(parseInt(_0x4b3bab(0x131))/0xa);if(_0x3379d7===_0x2e79a1)break;else _0x22df60['push'](_0x22df60['shift']());}catch(_0x95e64d){_0x22df60['push'](_0x22df60['shift']());}}}(a203_0x4c7d,0x762d4));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';import{normalizeStoredDefaultApp}from'../../config/schema.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=['appcode','env','apiDir',a203_0x5bd0f8(0x149),a203_0x5bd0f8(0x125),a203_0x5bd0f8(0x14b),a203_0x5bd0f8(0x13c)],workspaceFlags=[{'name':a203_0x5bd0f8(0x143),'type':a203_0x5bd0f8(0x116),'description':a203_0x5bd0f8(0x148)},{'name':a203_0x5bd0f8(0x12c),'type':a203_0x5bd0f8(0x116),'description':a203_0x5bd0f8(0x118)},{'name':'env','type':a203_0x5bd0f8(0x116),'description':a203_0x5bd0f8(0x14c),'enum':[...RABETBASE_ENV_VALUES]},{'name':a203_0x5bd0f8(0x121),'type':a203_0x5bd0f8(0x116),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':'string','description':a203_0x5bd0f8(0x129),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a203_0x5bd0f8(0x139),'description':a203_0x5bd0f8(0x11d)},{'name':'riskLevel','type':a203_0x5bd0f8(0x116),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a203_0x5bd0f8(0x13c),'type':'string','description':a203_0x5bd0f8(0x135)}];function isRecord(_0x130cbf){const _0x22f252=a203_0x5bd0f8;return!!_0x130cbf&&typeof _0x130cbf===_0x22f252(0x14a)&&!Array['isArray'](_0x130cbf);}function assertValidAppcode(_0x53f7b1){const _0x3907cc=a203_0x5bd0f8,{valid:_0x32e7b6,message:_0x53d8fe}=validateAppcode(_0x53f7b1);if(!_0x32e7b6)throw CliErrors[_0x3907cc(0x147)](_0x3907cc(0x13d)+_0x53f7b1,_0x53d8fe);}function a203_0xa225(_0x397e09,_0x4dc131){_0x397e09=_0x397e09-0x116;const _0x4c7dca=a203_0x4c7d();let _0xa225bd=_0x4c7dca[_0x397e09];return _0xa225bd;}function sanitizeProfile(_0x34d093){if(!isRecord(_0x34d093))return{};const _0x2e0a81={};for(const _0x1ce5d8 of SAFE_PROFILE_KEYS){if(_0x34d093[_0x1ce5d8]!==undefined)_0x2e0a81[_0x1ce5d8]=_0x34d093[_0x1ce5d8];}return _0x2e0a81;}function a203_0x4c7d(){const _0x5884d5=['Missing\x20workspace\x20app\x20selector.','pageSize','str','.\x20Credentials:\x20not\x20written.','\x20--appcode\x20<code>`.','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','\x20--app\x20','3308eWePXH','appcode','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','defaultFormat','12TqcvpL','\x20workspace\x20','10fBIAaJ','init','798126ojDYRG','8951598kCZzAo','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','project','length',').\x20Config:\x20','number','workspace','\x20workspace\x20use\x20--app\x20<name>`.','locale','Invalid\x20appcode:\x20','use','\x22\x20not\x20found.','initialized','keys','288458wdlinZ','app','Workspace\x20','apps','write','validation','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','format','object','riskLevel','Target\x20environment','string','env','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','trim','\x20(appcode:\x20','Use\x20`','398164XXcEwY','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','flag','3449292ZxHgGn','workspace.','apiDir','442704uHhhVn','5455RVcJSp'];a203_0x4c7d=function(){return _0x5884d5;};return a203_0x4c7d();}function cloneProfile(_0x133b36){return isRecord(_0x133b36)?{..._0x133b36}:{};}function collectWorkspaceProfileOverrides(_0x11b1fb){const _0x17be56=a203_0x5bd0f8,_0x2b88c7={},_0x155dcd=_0x11b1fb[_0x17be56(0x126)](_0x17be56(0x117)),_0x23a00a=_0x11b1fb[_0x17be56(0x126)](_0x17be56(0x121)),_0x37c06f=_0x11b1fb[_0x17be56(0x126)](_0x17be56(0x12e)),_0x48b658=_0x11b1fb[_0x17be56(0x11e)]('pageSize'),_0xafdb76=_0x11b1fb['str'](_0x17be56(0x14b)),_0x4fccf9=_0x11b1fb['str'](_0x17be56(0x13c));if(_0x155dcd)_0x2b88c7[_0x17be56(0x117)]=_0x155dcd;if(_0x23a00a)_0x2b88c7['apiDir']=_0x23a00a;if(_0x37c06f)_0x2b88c7[_0x17be56(0x149)]=_0x37c06f;if(_0x48b658!==undefined&&_0x48b658!=='')_0x2b88c7[_0x17be56(0x125)]=Number(_0x48b658);if(_0xafdb76)_0x2b88c7['riskLevel']=_0xafdb76;if(_0x4fccf9)_0x2b88c7[_0x17be56(0x13c)]=_0x4fccf9;return _0x2b88c7;}async function validateWorkspaceArgs(_0x430afd){const _0x20f0fe=a203_0x5bd0f8,_0x1e1da4=_0x430afd[_0x20f0fe(0x126)](_0x20f0fe(0x143))[_0x20f0fe(0x119)](),_0x5dfcf7=_0x430afd[_0x20f0fe(0x126)](_0x20f0fe(0x12c))[_0x20f0fe(0x119)]();if(!_0x1e1da4&&!_0x5dfcf7)throw CliErrors[_0x20f0fe(0x147)](_0x20f0fe(0x124),_0x20f0fe(0x11b)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x20f0fe(0x13b));if(_0x5dfcf7)assertValidAppcode(_0x5dfcf7);}function resolveKnownApps(){const _0x4f16c4=a203_0x5bd0f8,{config:_0x9ccbc3,layers:_0x455e3f}=readRawConfigWithLayers(),_0x3b9493=isRecord(_0x9ccbc3[_0x4f16c4(0x145)])?_0x9ccbc3[_0x4f16c4(0x145)]:{},_0x2cbb61=isRecord(_0x455e3f['globalConfig']['apps'])?_0x455e3f['globalConfig'][_0x4f16c4(0x145)]:{};return{..._0x2cbb61,..._0x3b9493};}async function configureWorkspace(_0x5743f3,_0x48b7af){const _0x551f5c=a203_0x5bd0f8,_0x1b25d1=_0x5743f3['str']('app')[_0x551f5c(0x119)](),_0x307433=_0x5743f3[_0x551f5c(0x126)](_0x551f5c(0x12c))[_0x551f5c(0x119)](),_0x2f4735=_0x1b25d1||_0x307433;if(!_0x2f4735)throw CliErrors[_0x551f5c(0x147)](_0x551f5c(0x124),'Use\x20`'+CLI_BIN_NAME+_0x551f5c(0x12d)+CLI_BIN_NAME+_0x551f5c(0x13b));if(_0x307433)assertValidAppcode(_0x307433);const _0x437041=resolveWriteConfigPath(_0x551f5c(0x136)),_0x5aee7d=readConfigFile(_0x437041),_0x4f24d3=resolveKnownApps(),_0x507313=isRecord(_0x5aee7d['apps'])?{..._0x5aee7d[_0x551f5c(0x145)]}:{},_0x4dccb9=cloneProfile(_0x507313[_0x2f4735]),_0x283e4c=sanitizeProfile(_0x4f24d3[_0x2f4735]),_0x389ff7=_0x307433?{}:_0x283e4c,_0x2b1db5=_0x307433||_0x389ff7['appcode'];if(!_0x2b1db5){const _0x36ea58=Object[_0x551f5c(0x141)](_0x4f24d3),_0x2efbcb=_0x36ea58[_0x551f5c(0x137)]===0x0?_0x551f5c(0x11b)+CLI_BIN_NAME+_0x551f5c(0x130)+_0x48b7af+_0x551f5c(0x12a)+_0x2f4735+_0x551f5c(0x128):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x36ea58['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x2f4735+_0x551f5c(0x13f),_0x2efbcb);}assertValidAppcode(String(_0x2b1db5));const _0x5ce07b={..._0x389ff7,..._0x4dccb9,'appcode':String(_0x2b1db5),...collectWorkspaceProfileOverrides(_0x5743f3)};return _0x507313[_0x2f4735]=_0x5ce07b,_0x5aee7d[_0x551f5c(0x145)]=_0x507313,normalizeStoredDefaultApp(_0x5aee7d,_0x2f4735),delete _0x5aee7d[_0x551f5c(0x12c)],delete _0x5aee7d[_0x551f5c(0x143)],_0x5ce07b['env']&&(_0x5aee7d[_0x551f5c(0x117)]=_0x5ce07b['env']),writeConfigFile(_0x437041,_0x5aee7d),{'ok':!![],'message':_0x551f5c(0x144)+(_0x48b7af===_0x551f5c(0x132)?_0x551f5c(0x140):'updated')+':\x20'+_0x2f4735+_0x551f5c(0x11a)+_0x5ce07b[_0x551f5c(0x12c)]+_0x551f5c(0x138)+_0x437041+_0x551f5c(0x127),'data':{'operation':_0x551f5c(0x120)+_0x48b7af,'configPath':_0x437041,'app':_0x2f4735,'appcode':_0x5ce07b[_0x551f5c(0x12c)],'env':_0x5ce07b[_0x551f5c(0x117)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a203_0x5bd0f8(0x13a),'command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3ba708=>configureWorkspace(_0x3ba708,a203_0x5bd0f8(0x132))},workspaceUseDefinition={'service':a203_0x5bd0f8(0x13a),'command':a203_0x5bd0f8(0x13e),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a203_0x5bd0f8(0x146),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x22b2ee=>configureWorkspace(_0x22b2ee,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a206_0x3de111=a206_0x46f4;function a206_0x467f(){const _0x4da8ff=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace','3399105DyuEiH','6JEliWH','App\x20profile\x20name\x20to\x20remove','3466820uMOMvh','295441nMYUaH','3240981htKdKa','10815414ReeJkA','workspace\x20remove','20379128uluvZi','write','2820096SDwEnR'];a206_0x467f=function(){return _0x4da8ff;};return a206_0x467f();}function a206_0x46f4(_0x3a6edb,_0x3d8700){_0x3a6edb=_0x3a6edb-0x121;const _0x467fc6=a206_0x467f();let _0x46f413=_0x467fc6[_0x3a6edb];return _0x46f413;}(function(_0x8c17f0,_0x1a431f){const _0x250978=a206_0x46f4,_0x496bcb=_0x8c17f0();while(!![]){try{const _0x108b27=-parseInt(_0x250978(0x12b))/0x1*(-parseInt(_0x250978(0x128))/0x2)+-parseInt(_0x250978(0x12c))/0x3+parseInt(_0x250978(0x124))/0x4+parseInt(_0x250978(0x127))/0x5+parseInt(_0x250978(0x12d))/0x6+parseInt(_0x250978(0x12a))/0x7+-parseInt(_0x250978(0x122))/0x8;if(_0x108b27===_0x1a431f)break;else _0x496bcb['push'](_0x496bcb['shift']());}catch(_0x4f897c){_0x496bcb['push'](_0x496bcb['shift']());}}}(a206_0x467f,0xe5cdf));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a206_0x3de111(0x126),'command':'remove','description':a206_0x3de111(0x125),'risk':a206_0x3de111(0x123),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a206_0x3de111(0x129),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x2b64b4=>validateAppName(_0x2b64b4,a206_0x3de111(0x121)),'execute':_0x20a73e=>runAppRemove(_0x20a73e,a206_0x3de111(0x121))};
1
+ function a204_0x11e6(){const _0x2a9e31=['workspace','1139200sKDSet','292380ASCRzT','name','10179hiRaHY','App\x20profile\x20name\x20to\x20remove','1336qtVYXK','11BxzAWw','workspace\x20remove','2928732yntsbc','16IOtDlt','98twGGUy','20510xdmGnh','75876VTRnUS','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','14jjorWB','333960OLGtjy','write'];a204_0x11e6=function(){return _0x2a9e31;};return a204_0x11e6();}const a204_0x42e354=a204_0x26a7;(function(_0x582148,_0x345fcd){const _0x162c33=a204_0x26a7,_0x31a3e6=_0x582148();while(!![]){try{const _0x32668a=-parseInt(_0x162c33(0x1aa))/0x1*(parseInt(_0x162c33(0x19b))/0x2)+parseInt(_0x162c33(0x19c))/0x3*(parseInt(_0x162c33(0x1a8))/0x4)+-parseInt(_0x162c33(0x19f))/0x5+parseInt(_0x162c33(0x1ab))/0x6*(parseInt(_0x162c33(0x1a9))/0x7)+parseInt(_0x162c33(0x1a4))/0x8*(-parseInt(_0x162c33(0x1a2))/0x9)+-parseInt(_0x162c33(0x1a0))/0xa+-parseInt(_0x162c33(0x1a5))/0xb*(-parseInt(_0x162c33(0x1a7))/0xc);if(_0x32668a===_0x345fcd)break;else _0x31a3e6['push'](_0x31a3e6['shift']());}catch(_0x362246){_0x31a3e6['push'](_0x31a3e6['shift']());}}}(a204_0x11e6,0x4397c));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a204_0x26a7(_0x3765c7,_0x5e30c4){_0x3765c7=_0x3765c7-0x19b;const _0x11e66b=a204_0x11e6();let _0x26a7e6=_0x11e66b[_0x3765c7];return _0x26a7e6;}export const workspaceRemoveDefinition={'service':a204_0x42e354(0x19e),'command':'remove','description':a204_0x42e354(0x1ac),'risk':a204_0x42e354(0x19d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a204_0x42e354(0x1a1),'description':a204_0x42e354(0x1a3),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x55e013=>validateAppName(_0x55e013,'workspace\x20remove'),'execute':_0x12747b=>runAppRemove(_0x12747b,a204_0x42e354(0x1a6))};
@@ -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_0x45dd9f=a205_0x3a0e;function a205_0x3a0e(_0x1411b3,_0x156c64){_0x1411b3=_0x1411b3-0x17d;const _0x2f47f9=a205_0x2f47();let _0x3a0e97=_0x2f47f9[_0x1411b3];return _0x3a0e97;}(function(_0x150229,_0x2297d6){const _0xba415d=a205_0x3a0e,_0x2b03f9=_0x150229();while(!![]){try{const _0x3568f8=parseInt(_0xba415d(0x1a1))/0x1*(-parseInt(_0xba415d(0x1a6))/0x2)+-parseInt(_0xba415d(0x19b))/0x3+-parseInt(_0xba415d(0x1a4))/0x4+parseInt(_0xba415d(0x18c))/0x5*(parseInt(_0xba415d(0x199))/0x6)+-parseInt(_0xba415d(0x1a9))/0x7+-parseInt(_0xba415d(0x1a2))/0x8*(parseInt(_0xba415d(0x190))/0x9)+parseInt(_0xba415d(0x187))/0xa;if(_0x3568f8===_0x2297d6)break;else _0x2b03f9['push'](_0x2b03f9['shift']());}catch(_0x4e18f9){_0x2b03f9['push'](_0x2b03f9['shift']());}}}(a205_0x2f47,0xc8b84));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a205_0x45dd9f(0x196),a205_0x45dd9f(0x194),a205_0x45dd9f(0x193),'skillDomain','kbDomain','appDomain'];function a205_0x2f47(){const _0x5a14cb=['2302772bEQRVK','pathname','342966TBnAfM','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','cwd','9849630kbTCnV','platformDomain','protocol','str','validation','runtime-domain','Unsupported\x20domain\x20config\x20field(s):\x20','includes','search','filter','\x22\x20is\x20not\x20a\x20valid\x20URL.',':\x20\x22','hash','48462390xqKVFo','isArray','join','trim','string','80zLYUwH','object','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','14895xyVjwU','keys','agentDomain','runtimeDomain','apiDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','userDomain','https:','origin','456528GlWYNH','skillHubDomain','3339990CVITna','length','Allowed\x20fields:\x20','domain-config','api-domain','Invalid\x20','7LgTKRQ','4568ZVnUPk','skill-domain'];a205_0x2f47=function(){return _0x5a14cb;};return a205_0x2f47();}const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a205_0x45dd9f(0x19f),'runtimeDomain':a205_0x45dd9f(0x17f),'skillDomain':a205_0x45dd9f(0x1a3),'kbDomain':'kb-domain','appDomain':'app-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a205_0x45dd9f(0x192),a205_0x45dd9f(0x1aa),a205_0x45dd9f(0x19a)];export function normalizeDomainOrigin(_0x5e5eee,_0x261551){const _0x27963a=a205_0x45dd9f;if(typeof _0x261551!==_0x27963a(0x18b)||!_0x261551[_0x27963a(0x18a)]())throw CliErrors[_0x27963a(0x17e)]('Invalid\x20'+_0x5e5eee+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x2cbfdc;try{_0x2cbfdc=new URL(_0x261551[_0x27963a(0x18a)]());}catch{throw CliErrors[_0x27963a(0x17e)](_0x27963a(0x1a0)+_0x5e5eee+_0x27963a(0x185)+_0x261551+_0x27963a(0x184));}if(_0x2cbfdc[_0x27963a(0x1ab)]!==_0x27963a(0x197)||_0x2cbfdc['username']||_0x2cbfdc['password']||_0x2cbfdc[_0x27963a(0x1a5)]!=='/'&&_0x2cbfdc['pathname']!==''||_0x2cbfdc[_0x27963a(0x182)]||_0x2cbfdc[_0x27963a(0x186)])throw CliErrors[_0x27963a(0x17e)](_0x27963a(0x1a0)+_0x5e5eee+_0x27963a(0x195),_0x27963a(0x18e));return _0x2cbfdc[_0x27963a(0x198)];}export function readDomainConfig(_0x1599a0){const _0x1aeb70=a205_0x45dd9f,_0x5c025f=isAbsolute(_0x1599a0)?_0x1599a0:resolve(process[_0x1aeb70(0x1a8)](),_0x1599a0);if(!existsSync(_0x5c025f))throw CliErrors[_0x1aeb70(0x17e)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x5c025f);let _0x75917a;try{_0x75917a=JSON['parse'](readFileSync(_0x5c025f,'utf8'));}catch{throw CliErrors[_0x1aeb70(0x17e)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x5c025f);}if(!_0x75917a||typeof _0x75917a!==_0x1aeb70(0x18d)||Array[_0x1aeb70(0x188)](_0x75917a))throw CliErrors[_0x1aeb70(0x17e)](_0x1aeb70(0x18f));const _0x5805de=_0x75917a,_0xe418b8=Object['keys'](_0x5805de)[_0x1aeb70(0x183)](_0x5d9794=>!DOMAIN_CONFIG_FIELDS[_0x1aeb70(0x181)](_0x5d9794));if(_0xe418b8[_0x1aeb70(0x19c)]>0x0)throw CliErrors[_0x1aeb70(0x17e)](_0x1aeb70(0x180)+_0xe418b8[_0x1aeb70(0x189)](',\x20'),_0x1aeb70(0x19d)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x4dbfc0={};for(const _0x59097b of DOMAIN_CONFIG_FIELDS){_0x5805de[_0x59097b]!==undefined&&(_0x4dbfc0[_0x59097b]=normalizeDomainOrigin(_0x59097b,_0x5805de[_0x59097b]));}if(Object[_0x1aeb70(0x191)](_0x4dbfc0)[_0x1aeb70(0x19c)]===0x0)throw CliErrors['validation'](_0x1aeb70(0x1a7));return _0x4dbfc0;}export function resolveDomainFlags(_0x2291cf){const _0x4ba764=a205_0x45dd9f,_0x49eced=(_0x2291cf[_0x4ba764(0x17d)](_0x4ba764(0x19e))||'')['trim'](),_0x531060=_0x49eced?readDomainConfig(_0x49eced):{};for(const _0x54324d of DOMAIN_CONFIG_FIELDS){const _0x2a2af2=(_0x2291cf[_0x4ba764(0x17d)](DOMAIN_FLAGS[_0x54324d])||'')['trim']();if(_0x2a2af2)_0x531060[_0x54324d]=normalizeDomainOrigin(_0x54324d,_0x2a2af2);}return _0x531060;}
@@ -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_0x43173e=a207_0xf88a;(function(_0x403845,_0xd2a017){const _0xedf0b5=a207_0xf88a,_0x57dfc2=_0x403845();while(!![]){try{const _0x30accc=-parseInt(_0xedf0b5(0x134))/0x1*(-parseInt(_0xedf0b5(0x119))/0x2)+parseInt(_0xedf0b5(0x126))/0x3+parseInt(_0xedf0b5(0x111))/0x4*(parseInt(_0xedf0b5(0x128))/0x5)+parseInt(_0xedf0b5(0x132))/0x6+parseInt(_0xedf0b5(0x127))/0x7*(-parseInt(_0xedf0b5(0x117))/0x8)+-parseInt(_0xedf0b5(0x10c))/0x9+-parseInt(_0xedf0b5(0x11e))/0xa;if(_0x30accc===_0xd2a017)break;else _0x57dfc2['push'](_0x57dfc2['shift']());}catch(_0x189a03){_0x57dfc2['push'](_0x57dfc2['shift']());}}}(a207_0x9157,0x4ff59));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_0x43173e(0x12b),a207_0x43173e(0x10e),a207_0x43173e(0x12e),'format',a207_0x43173e(0x118)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a207_0x43173e(0x12f),a207_0x43173e(0x11a),a207_0x43173e(0x12e),a207_0x43173e(0x12d),a207_0x43173e(0x12b),a207_0x43173e(0x10e),a207_0x43173e(0x131)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x324fcb){const _0x5ea385=a207_0x43173e;return[..._0x324fcb][_0x5ea385(0x12a)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xbcc989){const _0x888307=a207_0x43173e;return TOP_LEVEL_CONFIG_KEYS[_0x888307(0x12c)](_0xbcc989);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a207_0x43173e(0x11a),'apiDir':a207_0x43173e(0x131),'cookie':a207_0x43173e(0x12b),'accessKey':a207_0x43173e(0x10e),'defaultFormat':'format','pageSize':a207_0x43173e(0x113),'riskLevel':a207_0x43173e(0x118),'locale':a207_0x43173e(0x12e)};export function getAppProfileFlagDefs(){const _0x5ac88f=a207_0x43173e;return[{'name':_0x5ac88f(0x11a),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x11c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5ac88f(0x131),'type':_0x5ac88f(0x123),'description':'API\x20directory\x20path'},{'name':_0x5ac88f(0x12b),'type':'string','description':_0x5ac88f(0x114),'hidden':!![]},{'name':'accessKey','type':_0x5ac88f(0x123),'description':_0x5ac88f(0x115),'hidden':!![]},{'name':_0x5ac88f(0x120),'type':_0x5ac88f(0x123),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5ac88f(0x113),'type':_0x5ac88f(0x130),'description':'Default\x20page\x20size'},{'name':_0x5ac88f(0x118),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x110),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5ac88f(0x12e),'type':_0x5ac88f(0x123),'description':_0x5ac88f(0x116)}];}export function collectAppProfileOverrides(_0x3d20f9){const _0x16823a=a207_0x43173e,_0x3e07ff={};for(const [_0x375775,_0x1ccfa5]of Object[_0x16823a(0x122)](APP_PROFILE_FLAG_KEY_MAP)){const _0x5b43c6=_0x3d20f9(_0x375775);if(!_0x5b43c6)continue;_0x3e07ff[_0x1ccfa5]=_0x1ccfa5==='pageSize'?Number(_0x5b43c6):_0x5b43c6;}return _0x3e07ff;}export function buildAppProfileListFields(_0x383f71){const _0x1537e7=a207_0x43173e;return{'env':_0x383f71[_0x1537e7(0x11a)]??null,'apiDir':_0x383f71[_0x1537e7(0x131)]??null,'hasCookie':!!_0x383f71[_0x1537e7(0x12b)],'hasAccessKey':!!_0x383f71[_0x1537e7(0x10e)],'format':_0x383f71[_0x1537e7(0x12d)]??null,'pageSize':_0x383f71[_0x1537e7(0x113)]??null,'riskLevel':_0x383f71[_0x1537e7(0x118)]??null,'locale':_0x383f71['locale']??null};}export function buildAppDoctorFields(_0x2b5678,_0x394d8f){const _0x188a64=a207_0x43173e;return{'env':{'value':_0x2b5678[_0x188a64(0x11a)]||_0x394d8f[_0x188a64(0x11a)],'source':_0x2b5678['env']?_0x188a64(0x11f):_0x188a64(0x124)},'apiDir':{'value':_0x2b5678[_0x188a64(0x131)]||_0x394d8f[_0x188a64(0x131)],'source':_0x2b5678[_0x188a64(0x131)]?_0x188a64(0x11f):_0x188a64(0x124)},'cookie':{'value':_0x2b5678[_0x188a64(0x12b)]||_0x394d8f[_0x188a64(0x12b)],'source':_0x2b5678['cookie']?_0x188a64(0x11f):_0x188a64(0x124)},'accessKey':{'value':_0x2b5678['accessKey']||_0x394d8f[_0x188a64(0x10e)],'source':_0x2b5678['accessKey']?_0x188a64(0x11f):_0x188a64(0x124)}};}export function buildCanonicalAppConfig(_0x15e6cc,_0x54f8bc){const _0x5d4ad3=a207_0x43173e,_0x5c3a7b=_0x15e6cc['map'](_0x894869=>String(_0x894869||'')[_0x5d4ad3(0x129)]())[_0x5d4ad3(0x125)](Boolean);if(_0x5c3a7b[_0x5d4ad3(0x11b)]===0x0)return{};const _0x2d6dd5={};for(const _0x421fed of _0x5c3a7b){_0x2d6dd5[_0x421fed]=_0x54f8bc?{'appcode':_0x421fed,'env':_0x54f8bc}:{'appcode':_0x421fed};}return{'apps':_0x2d6dd5,'defaultApp':_0x5c3a7b[0x0]};}export function buildCanonicalProjectConfig(_0x1f4c1c,_0x335192){const _0x4758e2=a207_0x43173e,{appCodes:appCodes=[],env:_0xac3422,metadata:_0x3c3481}=_0x335192,_0x54d4e7={..._0x1f4c1c,..._0x3c3481||{}};delete _0x54d4e7[_0x4758e2(0x12f)],delete _0x54d4e7[_0x4758e2(0x11f)];if(_0xac3422)_0x54d4e7['env']=_0xac3422;else!_0x54d4e7[_0x4758e2(0x11a)]&&(_0x54d4e7[_0x4758e2(0x11a)]=DEFAULT_CONFIG_VALUES[_0x4758e2(0x11a)]);const _0x4702c9=buildCanonicalAppConfig(appCodes,_0x54d4e7['env']);return Object[_0x4758e2(0x10f)](_0x4702c9)[_0x4758e2(0x11b)]>0x0&&(_0x54d4e7[_0x4758e2(0x121)]=_0x4702c9[_0x4758e2(0x121)],_0x54d4e7['defaultApp']=_0x4702c9[_0x4758e2(0x10d)]),_0x54d4e7;}function a207_0xf88a(_0x4b3585,_0x55d7ba){_0x4b3585=_0x4b3585-0x10c;const _0x91576d=a207_0x9157();let _0xf88a3b=_0x91576d[_0x4b3585];return _0xf88a3b;}const LOCALE_MAP={'zh':a207_0x43173e(0x133),'zh-cn':a207_0x43173e(0x133),'zh_cn':a207_0x43173e(0x133),'en':a207_0x43173e(0x11d),'en-us':a207_0x43173e(0x11d),'en_us':'en-US'};export function normalizeLocale(_0x105b7d){const _0xb62e0e=a207_0x43173e;if(!_0x105b7d)return null;return LOCALE_MAP[_0x105b7d[_0xb62e0e(0x112)]()]??null;}function a207_0x9157(){const _0x485e1d=['filter','1220559udhBLy','10479lqFeyS','31430txIQNn','trim','join','cookie','has','format','locale','appcode','number','apiDir','3695850kWFgts','zh-CN','26807AIErLA','4615155RmSHOp','defaultApp','accessKey','keys','Risk\x20level','52HpIQmt','toLowerCase','pageSize','Auth\x20cookie','Access\x20key','Locale','1784BxTmak','riskLevel','20frnDgW','env','length','Target\x20environment','en-US','1984770PQuSwP','app','defaultFormat','apps','entries','string','inherit'];a207_0x9157=function(){return _0x485e1d;};return a207_0x9157();}
1
+ const a206_0x1e8581=a206_0x429d;function a206_0x429d(_0x272d97,_0x54f036){_0x272d97=_0x272d97-0x1a0;const _0x215c1b=a206_0x215c();let _0x429dfd=_0x215c1b[_0x272d97];return _0x429dfd;}(function(_0x3b205f,_0x1e2ed7){const _0xa68605=a206_0x429d,_0x181833=_0x3b205f();while(!![]){try{const _0x36e765=-parseInt(_0xa68605(0x1af))/0x1*(-parseInt(_0xa68605(0x1c0))/0x2)+-parseInt(_0xa68605(0x1bc))/0x3+-parseInt(_0xa68605(0x1a7))/0x4*(parseInt(_0xa68605(0x1bf))/0x5)+parseInt(_0xa68605(0x1c2))/0x6+-parseInt(_0xa68605(0x1cf))/0x7*(parseInt(_0xa68605(0x1bd))/0x8)+parseInt(_0xa68605(0x1b7))/0x9*(parseInt(_0xa68605(0x1c7))/0xa)+parseInt(_0xa68605(0x1a2))/0xb;if(_0x36e765===_0x1e2ed7)break;else _0x181833['push'](_0x181833['shift']());}catch(_0x44db36){_0x181833['push'](_0x181833['shift']());}}}(a206_0x215c,0xb5df9));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';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a206_0x1e8581(0x1cc),a206_0x1e8581(0x1cb),'locale',a206_0x1e8581(0x1aa),a206_0x1e8581(0x1a0),'region','userDomain',a206_0x1e8581(0x1ab),'runtimeDomain',a206_0x1e8581(0x1c5),a206_0x1e8581(0x1b1),a206_0x1e8581(0x1ba)];function a206_0x215c(){const _0x44d092=['790FLZGuR','Auth\x20cookie','has','app','accessKey','cookie','appcode','zh-CN','588GtErCz','apps','riskLevel','string','11032406MLAWUt','API\x20directory\x20path','env','locale','pageSize','68380GDlwSP','en-US','number','format','apiDomain','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','toLowerCase','43863uZXjgh','object','kbDomain','defaultFormat','apiDir','Risk\x20level','defaultApp','runtimeDomain','38439RsbZoY','inherit','length','appDomain','region','4252296FIlMST','20928jffOIg','keys','70CvkIQv','2BHuAFK','Config\x20key\x20(','7423446JxNweU','userDomain','Default\x20page\x20size','skillDomain','entries'];a206_0x215c=function(){return _0x44d092;};return a206_0x215c();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a206_0x1e8581(0x1cd),'env',a206_0x1e8581(0x1a5),a206_0x1e8581(0x1aa),a206_0x1e8581(0x1cc),a206_0x1e8581(0x1cb),a206_0x1e8581(0x1b3),a206_0x1e8581(0x1bb),a206_0x1e8581(0x1c3),'apiDomain',a206_0x1e8581(0x1b6),a206_0x1e8581(0x1c5),a206_0x1e8581(0x1b1),a206_0x1e8581(0x1ba)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5776de){return[..._0x5776de]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x455e75){const _0x30e507=a206_0x1e8581;return TOP_LEVEL_CONFIG_KEYS[_0x30e507(0x1c9)](_0x455e75);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x185ecf=a206_0x1e8581;return _0x185ecf(0x1c1)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a206_0x1e8581(0x1a4),'apiDir':a206_0x1e8581(0x1b3),'cookie':a206_0x1e8581(0x1cc),'accessKey':a206_0x1e8581(0x1cb),'defaultFormat':a206_0x1e8581(0x1aa),'pageSize':'pageSize','riskLevel':a206_0x1e8581(0x1a0),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x4a45e8=a206_0x1e8581;return[{'name':_0x4a45e8(0x1a4),'type':'string','description':_0x4a45e8(0x1ac),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4a45e8(0x1b3),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1a3)},{'name':_0x4a45e8(0x1cc),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1c8),'hidden':!![]},{'name':_0x4a45e8(0x1cb),'type':_0x4a45e8(0x1a1),'description':'Access\x20key','hidden':!![]},{'name':_0x4a45e8(0x1b2),'type':'string','description':_0x4a45e8(0x1ad),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4a45e8(0x1a6),'type':_0x4a45e8(0x1a9),'description':_0x4a45e8(0x1c4)},{'name':_0x4a45e8(0x1a0),'type':_0x4a45e8(0x1a1),'description':_0x4a45e8(0x1b4),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x4a45e8(0x1a1),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x4c0be6){const _0x1fe0d5=a206_0x1e8581,_0x5aec23={};for(const [_0x4ca651,_0x323c5a]of Object[_0x1fe0d5(0x1c6)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2dc678=_0x4c0be6(_0x4ca651);if(!_0x2dc678)continue;_0x5aec23[_0x323c5a]=_0x323c5a===_0x1fe0d5(0x1a6)?Number(_0x2dc678):_0x2dc678;}return _0x5aec23;}export function buildAppProfileListFields(_0x1184af){const _0xbe41dd=a206_0x1e8581;return{'env':_0x1184af[_0xbe41dd(0x1a4)]??null,'apiDir':_0x1184af[_0xbe41dd(0x1b3)]??null,'hasCookie':!!_0x1184af[_0xbe41dd(0x1cc)],'hasAccessKey':!!_0x1184af[_0xbe41dd(0x1cb)],'format':_0x1184af['format']??null,'pageSize':_0x1184af[_0xbe41dd(0x1a6)]??null,'riskLevel':_0x1184af[_0xbe41dd(0x1a0)]??null,'locale':_0x1184af[_0xbe41dd(0x1a5)]??null};}export function buildAppDoctorFields(_0x5943ea,_0x2b463c){const _0x598443=a206_0x1e8581;return{'env':{'value':_0x5943ea[_0x598443(0x1a4)]||_0x2b463c['env'],'source':_0x5943ea[_0x598443(0x1a4)]?_0x598443(0x1ca):_0x598443(0x1b8)},'apiDir':{'value':_0x5943ea['apiDir']||_0x2b463c[_0x598443(0x1b3)],'source':_0x5943ea[_0x598443(0x1b3)]?_0x598443(0x1ca):'inherit'},'cookie':{'value':_0x5943ea['cookie']||_0x2b463c['cookie'],'source':_0x5943ea['cookie']?_0x598443(0x1ca):_0x598443(0x1b8)},'accessKey':{'value':_0x5943ea['accessKey']||_0x2b463c[_0x598443(0x1cb)],'source':_0x5943ea[_0x598443(0x1cb)]?_0x598443(0x1ca):_0x598443(0x1b8)}};}export function buildCanonicalAppConfig(_0x5b5ca9,_0x34b434){const _0x4107a4=a206_0x1e8581,_0x3242a2=_0x5b5ca9['map'](_0x448d51=>String(_0x448d51||'')['trim']())['filter'](Boolean);if(_0x3242a2[_0x4107a4(0x1b9)]===0x0)return{};const _0x2da1fd={};for(const _0x14045f of _0x3242a2){_0x2da1fd[_0x14045f]=_0x34b434?{'appcode':_0x14045f,'env':_0x34b434}:{'appcode':_0x14045f};}return _0x3242a2[_0x4107a4(0x1b9)]>0x1?{'apps':_0x2da1fd,'defaultApp':_0x3242a2[0x0]}:{'apps':_0x2da1fd};}export function normalizeStoredDefaultApp(_0x56727e,_0x3e95e1){const _0x191d27=a206_0x1e8581,_0x44776c=_0x56727e['apps']&&typeof _0x56727e[_0x191d27(0x1d0)]===_0x191d27(0x1b0)?_0x56727e[_0x191d27(0x1d0)]:{},_0x48ce17=Object[_0x191d27(0x1be)](_0x44776c);if(_0x48ce17['length']<=0x1)return delete _0x56727e[_0x191d27(0x1b5)],undefined;const _0x381b67=typeof _0x56727e[_0x191d27(0x1b5)]===_0x191d27(0x1a1)&&_0x44776c[_0x56727e[_0x191d27(0x1b5)]]?_0x56727e['defaultApp']:undefined,_0x5bae57=_0x3e95e1&&_0x44776c[_0x3e95e1]?_0x3e95e1:_0x381b67;if(_0x5bae57)return _0x56727e[_0x191d27(0x1b5)]=_0x5bae57,_0x5bae57;return delete _0x56727e[_0x191d27(0x1b5)],undefined;}export function buildCanonicalProjectConfig(_0x3fe9c6,_0x2cb83d){const _0x108c4c=a206_0x1e8581,{appCodes:appCodes=[],env:_0x476a7f,metadata:_0x249782}=_0x2cb83d,_0x108951={..._0x3fe9c6,..._0x249782||{}};delete _0x108951[_0x108c4c(0x1cd)],delete _0x108951[_0x108c4c(0x1ca)];if(_0x476a7f)_0x108951['env']=_0x476a7f;else!_0x108951[_0x108c4c(0x1a4)]&&(_0x108951[_0x108c4c(0x1a4)]=DEFAULT_CONFIG_VALUES[_0x108c4c(0x1a4)]);const _0x546c29=buildCanonicalAppConfig(appCodes,_0x108951['env']);if(Object[_0x108c4c(0x1be)](_0x546c29)[_0x108c4c(0x1b9)]>0x0){_0x108951[_0x108c4c(0x1d0)]=_0x546c29[_0x108c4c(0x1d0)];if(_0x546c29[_0x108c4c(0x1b5)])_0x108951['defaultApp']=_0x546c29[_0x108c4c(0x1b5)];else delete _0x108951[_0x108c4c(0x1b5)];}return _0x108951;}const LOCALE_MAP={'zh':a206_0x1e8581(0x1ce),'zh-cn':a206_0x1e8581(0x1ce),'zh_cn':a206_0x1e8581(0x1ce),'en':a206_0x1e8581(0x1a8),'en-us':'en-US','en_us':a206_0x1e8581(0x1a8)};export function normalizeLocale(_0x2ee602){const _0x4dd689=a206_0x1e8581;if(!_0x2ee602)return null;return LOCALE_MAP[_0x2ee602[_0x4dd689(0x1ae)]()]??null;}
@@ -1 +1 @@
1
- const a208_0x5f3ef6=a208_0x592f;(function(_0x3cf48f,_0x482264){const _0x57cc0f=a208_0x592f,_0x1265bc=_0x3cf48f();while(!![]){try{const _0x18a2af=parseInt(_0x57cc0f(0xf9))/0x1+parseInt(_0x57cc0f(0xfa))/0x2*(-parseInt(_0x57cc0f(0xfe))/0x3)+-parseInt(_0x57cc0f(0xfd))/0x4+parseInt(_0x57cc0f(0x101))/0x5+parseInt(_0x57cc0f(0xfc))/0x6+-parseInt(_0x57cc0f(0xf7))/0x7*(parseInt(_0x57cc0f(0xfb))/0x8)+parseInt(_0x57cc0f(0xf8))/0x9;if(_0x18a2af===_0x482264)break;else _0x1265bc['push'](_0x1265bc['shift']());}catch(_0x424ee5){_0x1265bc['push'](_0x1265bc['shift']());}}}(a208_0x508f,0xd9136));export const RABETBASE_CDN_BASE_URL=a208_0x5f3ef6(0xff);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a208_0x5f3ef6(0x100);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';function a208_0x592f(_0x295973,_0x5a4993){_0x295973=_0x295973-0xf7;const _0x508ff4=a208_0x508f();let _0x592fcd=_0x508ff4[_0x295973];return _0x592fcd;}function a208_0x508f(){const _0xd6047f=['3528310ExAgde','12421871vZaDSJ','6629103dtbzbx','1397368JykyeO','372fWEuCt','8aVPmwn','675450UcoJUy','59484JZyBJe','4413UaaucD','https://g.lovrabet.com/dist/rabetbase-cli','/config/index.json'];a208_0x508f=function(){return _0xd6047f;};return a208_0x508f();}
1
+ function a207_0x4ef2(_0x58c978,_0x5cd5d5){_0x58c978=_0x58c978-0xbf;const _0x28b571=a207_0x28b5();let _0x4ef2fc=_0x28b571[_0x58c978];return _0x4ef2fc;}const a207_0x3a7988=a207_0x4ef2;(function(_0x1a1cae,_0xdb141c){const _0x1486ce=a207_0x4ef2,_0x3a9334=_0x1a1cae();while(!![]){try{const _0x28086e=-parseInt(_0x1486ce(0xbf))/0x1+-parseInt(_0x1486ce(0xc6))/0x2*(-parseInt(_0x1486ce(0xc3))/0x3)+parseInt(_0x1486ce(0xc1))/0x4*(parseInt(_0x1486ce(0xc0))/0x5)+-parseInt(_0x1486ce(0xc5))/0x6+parseInt(_0x1486ce(0xc8))/0x7+-parseInt(_0x1486ce(0xca))/0x8+-parseInt(_0x1486ce(0xc2))/0x9*(parseInt(_0x1486ce(0xc4))/0xa);if(_0x28086e===_0xdb141c)break;else _0x3a9334['push'](_0x3a9334['shift']());}catch(_0x28ac95){_0x3a9334['push'](_0x3a9334['shift']());}}}(a207_0x28b5,0x8798b));export const RABETBASE_CDN_BASE_URL=a207_0x3a7988(0xc7);function a207_0x28b5(){const _0xa65f40=['71367qOufJj','10LWWPtL','2066304sQpLBR','64vVddNg','https://g.lovrabet.com/dist/rabetbase-cli','7389403nCIPZv','/templates/projects','1087032EYcdip','/config/index.json','73658WNuqsp','90oPMZrM','157252XqQEnL','12736683dnsICb'];a207_0x28b5=function(){return _0xa65f40;};return a207_0x28b5();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a207_0x3a7988(0xcb);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a207_0x3a7988(0xc9);
@@ -1 +1 @@
1
- const a209_0x160e74=a209_0x3ae1;function a209_0x3c47(){const _0x1ee14a=['Page\x20size','Name','force','Output\x20path','query','key','format','4676856oKPztI','app','17180379TeTvDy','json\x20|\x20pretty\x20|\x20compress','DB\x20ID','Verbose\x20output','Dataset\x20code','menu-ids','Title','Page\x20number','function-node','SQL\x20code','Confirm\x20destructive\x20action','Keyword\x20filter','Show\x20help','Expected\x20affected\x20count','Operation\x20type','Override\x20appcode','expect-path','task-id','tags','schemas','Config\x20value','<expr>','parentId','sqlname','Read\x20value\x20from\x20environment\x20variable','Read\x20value\x20from\x20stdin','Apply\x20to\x20all','env','Enable\x20Backend\x20Function\x20save','Use\x20global\x20config\x20scope','target','operation','Asynchronous\x20task\x20ID','remote','value','confirm','fromEntries','type','non-interactive','parent-id','topk','Menu\x20sort\x20value','Menu\x20label','keyword','map','file','Reveal\x20sensitive\x20value','project','Environment','meowKey','rabetbase','17310yTwrMX','Schemas','stdin','description-file','code','skip-imports','@lovrabet/rabetbase-cli','SQL\x20string','pagesize','Tags','439683dtWwSp','params','Code\x20filter','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','File\x20path','clear','Config\x20key','expected-count','name','expectPath','page','datasetcode','string','expected-children-count','12rEZQQF','Use\x20project\x20config\x20scope','Expected\x20current\x20parent\x20menu\x20id','Alias\x20for\x20--non-interactive','enableBffSave','help','SQL\x20name','menuIds','verbose','all','global','db-id','appcode','reveal','Maximum\x20search\x20hits','Skip\x20import\x20generation','title','1232opvIoP','dbid','fromEnv','Record\x20ID','yes','production\x20|\x20daily','Use\x20remote','Preview\x20operation\x20without\x20executing','Expected\x20current\x20menu\x20path','skipImports','10pXdsPt','Description','sort','label','nonInteractive','description','sqlcode','988426aEzkXz','Select\x20app\x20profile\x20by\x20name','Clear','652480OAowxL','enable-bff-save','expectedChildrenCount','output','dry-run','Expected\x20current\x20child\x20count','expect-parent-id','dryRun','boolean','Skip\x20confirmation\x20for\x20high-risk\x20writes','sql-name','Rabetbase\x20CLI','269765mlUgQD','Comma-separated\x20menu\x20IDs','operation-type','sqlName'];a209_0x3c47=function(){return _0x1ee14a;};return a209_0x3c47();}(function(_0x5b3400,_0x173ba4){const _0x678153=a209_0x3ae1,_0x36f417=_0x5b3400();while(!![]){try{const _0x31fd86=-parseInt(_0x678153(0x22e))/0x1+parseInt(_0x678153(0x22b))/0x2+-parseInt(_0x678153(0x1fa))/0x3+-parseInt(_0x678153(0x209))/0x4*(-parseInt(_0x678153(0x23a))/0x5)+parseInt(_0x678153(0x1f0))/0x6*(-parseInt(_0x678153(0x21a))/0x7)+-parseInt(_0x678153(0x245))/0x8+parseInt(_0x678153(0x247))/0x9*(parseInt(_0x678153(0x224))/0xa);if(_0x31fd86===_0x173ba4)break;else _0x36f417['push'](_0x36f417['shift']());}catch(_0x25cfd8){_0x36f417['push'](_0x36f417['shift']());}}}(a209_0x3c47,0xa473b));export const CLI_BIN_NAME=a209_0x160e74(0x1ef);export const CLI_DISPLAY_NAME=a209_0x160e74(0x239);function a209_0x3ae1(_0xfd8f6d,_0x1aacdc){_0xfd8f6d=_0xfd8f6d-0x1cf;const _0x3c47d0=a209_0x3c47();let _0x3ae120=_0x3c47d0[_0xfd8f6d];return _0x3ae120;}export const NPM_PACKAGE_NAME=a209_0x160e74(0x1f6);export const GLOBAL_FLAGS=[{'name':a209_0x160e74(0x215),'meowKey':a209_0x160e74(0x215),'type':'string','description':a209_0x160e74(0x256),'hint':'<code>'},{'name':a209_0x160e74(0x246),'meowKey':a209_0x160e74(0x246),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x22c),'hint':'<name>'},{'name':a209_0x160e74(0x1d8),'meowKey':a209_0x160e74(0x1d8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ed),'hint':a209_0x160e74(0x21f)},{'name':a209_0x160e74(0x244),'meowKey':a209_0x160e74(0x244),'type':a209_0x160e74(0x207),'description':'Output\x20format','hint':a209_0x160e74(0x248)},{'name':'jq','meowKey':'jq','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fd),'hint':a209_0x160e74(0x1d2)},{'name':'dry-run','meowKey':a209_0x160e74(0x235),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x221)},{'name':a209_0x160e74(0x21e),'meowKey':a209_0x160e74(0x21e),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x237)},{'name':a209_0x160e74(0x1e3),'meowKey':a209_0x160e74(0x228),'type':a209_0x160e74(0x236),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a209_0x160e74(0x213),'meowKey':'global','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1da)},{'name':a209_0x160e74(0x1ec),'meowKey':a209_0x160e74(0x1ec),'type':'boolean','description':a209_0x160e74(0x20a)},{'name':'ci','meowKey':'ci','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x20c),'hidden':!![]},{'name':a209_0x160e74(0x20e),'meowKey':a209_0x160e74(0x20e),'type':'boolean','description':a209_0x160e74(0x253)},{'name':a209_0x160e74(0x203),'meowKey':a209_0x160e74(0x203),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23f),'hidden':!![]},{'name':a209_0x160e74(0x219),'meowKey':a209_0x160e74(0x219),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24d),'hidden':!![]},{'name':a209_0x160e74(0x242),'meowKey':a209_0x160e74(0x242),'type':a209_0x160e74(0x207),'description':'Search\x20query','hidden':!![]},{'name':a209_0x160e74(0x1e5),'meowKey':a209_0x160e74(0x1e5),'type':'string','description':a209_0x160e74(0x217),'hidden':!![]},{'name':'clear','meowKey':a209_0x160e74(0x200),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x22d),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a209_0x160e74(0x236),'description':'Watch\x20mode','hidden':!![]},{'name':a209_0x160e74(0x231),'meowKey':'output','type':'string','description':a209_0x160e74(0x241),'hidden':!![]},{'name':a209_0x160e74(0x1fb),'meowKey':a209_0x160e74(0x1fb),'type':a209_0x160e74(0x207),'description':'JSON\x20params','hidden':!![]},{'name':a209_0x160e74(0x206),'meowKey':a209_0x160e74(0x206),'type':'string','description':a209_0x160e74(0x24b),'hidden':!![]},{'name':a209_0x160e74(0x212),'meowKey':'all','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d7),'hidden':!![]},{'name':a209_0x160e74(0x22f),'meowKey':a209_0x160e74(0x20d),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d9),'hidden':!![]},{'name':'id','meowKey':'id','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x21d),'hidden':!![]},{'name':a209_0x160e74(0x1e2),'meowKey':a209_0x160e74(0x1e2),'type':a209_0x160e74(0x207),'description':'Type\x20filter','hidden':!![]},{'name':a209_0x160e74(0x1ea),'meowKey':a209_0x160e74(0x1ea),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1ff),'hidden':!![]},{'name':a209_0x160e74(0x22a),'meowKey':a209_0x160e74(0x22a),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x250),'hidden':!![]},{'name':a209_0x160e74(0x238),'meowKey':a209_0x160e74(0x23d),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x1d4),'meowKey':a209_0x160e74(0x1d4),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x20f),'hidden':!![]},{'name':a209_0x160e74(0x214),'meowKey':'dbId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':a209_0x160e74(0x21b),'meowKey':a209_0x160e74(0x21b),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x249),'hidden':!![]},{'name':'description','meowKey':a209_0x160e74(0x229),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x225),'hidden':!![]},{'name':a209_0x160e74(0x1f3),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':'page','meowKey':a209_0x160e74(0x205),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x24e),'hidden':!![]},{'name':'pagesize','meowKey':a209_0x160e74(0x1f8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23e),'hidden':!![]},{'name':'keyword','meowKey':a209_0x160e74(0x1e8),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x252),'hidden':!![]},{'name':a209_0x160e74(0x1f4),'meowKey':'code','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1fc),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1f7),'hidden':!![]},{'name':a209_0x160e74(0x1d0),'meowKey':a209_0x160e74(0x1d0),'type':'string','description':a209_0x160e74(0x1f1),'hidden':!![]},{'name':a209_0x160e74(0x1dc),'meowKey':a209_0x160e74(0x1dc),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x255),'hidden':!![]},{'name':'target','meowKey':a209_0x160e74(0x1db),'type':a209_0x160e74(0x207),'description':'Target\x20path','hidden':!![]},{'name':a209_0x160e74(0x1f5),'meowKey':a209_0x160e74(0x223),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x218),'hidden':!![]},{'name':a209_0x160e74(0x243),'meowKey':a209_0x160e74(0x243),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x201),'hidden':!![]},{'name':a209_0x160e74(0x1df),'meowKey':a209_0x160e74(0x1df),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d1),'hidden':!![]},{'name':a209_0x160e74(0x1cf),'meowKey':'tags','type':'string','description':a209_0x160e74(0x1f9),'hidden':!![]},{'name':a209_0x160e74(0x1f2),'meowKey':'stdin','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1d6),'hidden':!![]},{'name':'from-env','meowKey':a209_0x160e74(0x21c),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1d5),'hidden':!![]},{'name':a209_0x160e74(0x216),'meowKey':a209_0x160e74(0x216),'type':a209_0x160e74(0x236),'description':a209_0x160e74(0x1eb),'hidden':!![]},{'name':'force','meowKey':a209_0x160e74(0x240),'type':a209_0x160e74(0x236),'description':'Force\x20overwrite','hidden':!![]},{'name':a209_0x160e74(0x1e0),'meowKey':'confirm','type':a209_0x160e74(0x236),'description':a209_0x160e74(0x251),'hidden':!![]},{'name':'remote','meowKey':a209_0x160e74(0x1de),'type':'boolean','description':a209_0x160e74(0x220),'hidden':!![]},{'name':a209_0x160e74(0x211),'meowKey':a209_0x160e74(0x211),'type':'boolean','description':a209_0x160e74(0x24a),'hidden':!![]},{'name':a209_0x160e74(0x202),'meowKey':'expectedCount','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x254),'hidden':!![]},{'name':a209_0x160e74(0x227),'meowKey':'label','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1e7),'hidden':!![]},{'name':a209_0x160e74(0x1e4),'meowKey':a209_0x160e74(0x1d3),'type':a209_0x160e74(0x207),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a209_0x160e74(0x226),'meowKey':a209_0x160e74(0x226),'type':'string','description':a209_0x160e74(0x1e6),'hidden':!![]},{'name':a209_0x160e74(0x234),'meowKey':'expectParentId','type':'string','description':a209_0x160e74(0x20b),'hidden':!![]},{'name':a209_0x160e74(0x257),'meowKey':a209_0x160e74(0x204),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x222),'hidden':!![]},{'name':a209_0x160e74(0x208),'meowKey':a209_0x160e74(0x230),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x233),'hidden':!![]},{'name':a209_0x160e74(0x24c),'meowKey':a209_0x160e74(0x210),'type':a209_0x160e74(0x207),'description':a209_0x160e74(0x23b),'hidden':!![]},{'name':a209_0x160e74(0x258),'meowKey':'taskId','type':a209_0x160e74(0x207),'description':a209_0x160e74(0x1dd),'hidden':!![]},{'name':a209_0x160e74(0x23c),'meowKey':'operationType','type':a209_0x160e74(0x207),'description':'Operation\x20type','hidden':!![]},{'name':a209_0x160e74(0x24f),'meowKey':a209_0x160e74(0x1fe),'type':a209_0x160e74(0x207),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a209_0x160e74(0x215),'app',a209_0x160e74(0x1d8),a209_0x160e74(0x244),'jq',a209_0x160e74(0x232),a209_0x160e74(0x21e),a209_0x160e74(0x1e3),'ci']);export function buildMeowFlags(){const _0x40c80b=a209_0x160e74;return Object[_0x40c80b(0x1e1)](GLOBAL_FLAGS[_0x40c80b(0x1e9)](_0x4c6ed5=>[_0x4c6ed5[_0x40c80b(0x1ee)],{'type':_0x4c6ed5['type']}]));}
1
+ const a208_0xcb46c1=a208_0x5a51;(function(_0x10c274,_0x4a05c5){const _0x46bd60=a208_0x5a51,_0x4560f0=_0x10c274();while(!![]){try{const _0x4b2a0f=parseInt(_0x46bd60(0x11f))/0x1*(parseInt(_0x46bd60(0x1a5))/0x2)+parseInt(_0x46bd60(0x19b))/0x3*(parseInt(_0x46bd60(0x145))/0x4)+parseInt(_0x46bd60(0x136))/0x5*(-parseInt(_0x46bd60(0x179))/0x6)+parseInt(_0x46bd60(0x172))/0x7*(-parseInt(_0x46bd60(0x166))/0x8)+-parseInt(_0x46bd60(0x132))/0x9*(parseInt(_0x46bd60(0x15b))/0xa)+parseInt(_0x46bd60(0x1a6))/0xb*(parseInt(_0x46bd60(0x128))/0xc)+-parseInt(_0x46bd60(0x165))/0xd*(-parseInt(_0x46bd60(0x14c))/0xe);if(_0x4b2a0f===_0x4a05c5)break;else _0x4560f0['push'](_0x4560f0['shift']());}catch(_0x4034e0){_0x4560f0['push'](_0x4560f0['shift']());}}}(a208_0x3763,0xb7930));function a208_0x3763(){const _0x4e084d=['non-interactive','stdin','page','4457630ZLgUao','Keyword\x20filter','expected-count','description-file','Menu\x20label','<expr>','string','Expected\x20current\x20menu\x20path','map','Preview\x20operation\x20without\x20executing','73905VyRJBv','1416mfFYSi','sqlName','Expected\x20affected\x20count','name','dbid','dry-run','Title','parent-id','operation','nonInteractive','Skip\x20import\x20generation','expectParentId','4445DYVJwW','expectedCount','menu-ids','value','json\x20|\x20pretty\x20|\x20compress','Output\x20format','taskId','6522oRIDNH','target','Use\x20project\x20config\x20scope','locale','watch','functionNode','Name','env','Use\x20remote','global','Description\x20file','Target\x20path','from-env','schemas','Operation\x20type','Tags','sql-name','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','force','appcode','key','Schemas','db-id','app','datasetcode','code','sqlcode','Page\x20number','Select\x20app\x20profile\x20by\x20name','skipImports','operation-type','topk','enable-bff-save','Comma-separated\x20menu\x20IDs','273KZcXfj','remote','Code\x20filter','sql','dbId','Read\x20value\x20from\x20stdin','Verbose\x20output','function-node','parentId','project','4teznyo','99muRhqR','tags','label','SQL\x20string','64373wMJjUH','params','reveal','SQL\x20code','Expected\x20current\x20child\x20count','Parent\x20menu\x20id','expectedChildrenCount','Force\x20non-interactive\x20mode\x20(CI)','pagesize','1013076Tdcpse','keyword','Watch\x20mode','clear','file','boolean','verbose','sqlname','fromEntries','title','9FdeazT','fromEnv','@lovrabet/rabetbase-cli','zh-CN\x20|\x20en-US','5685YjbHke','description','Search\x20query','Expected\x20current\x20parent\x20menu\x20id','<name>','Environment','expect-path','Description','Asynchronous\x20task\x20ID','yes','expect-parent-id','Maximum\x20search\x20hits','output','Output\x20path','operationType','1636HGxOdJ','help','File\x20path','Alias\x20for\x20--non-interactive','rabetbase','format','Show\x20help','3990XlyIVk','descriptionFile','enableBffSave','all','task-id','type','SQL\x20name','Use\x20global\x20config\x20scope','query','Apply\x20to\x20all','DB\x20ID','Reveal\x20sensitive\x20value'];a208_0x3763=function(){return _0x4e084d;};return a208_0x3763();}export const CLI_BIN_NAME=a208_0xcb46c1(0x149);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';function a208_0x5a51(_0x4c4b21,_0x574736){_0x4c4b21=_0x4c4b21-0x11d;const _0x37639f=a208_0x3763();let _0x5a514f=_0x37639f[_0x4c4b21];return _0x5a514f;}export const NPM_PACKAGE_NAME=a208_0xcb46c1(0x134);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a208_0xcb46c1(0x18c),'type':a208_0xcb46c1(0x161),'description':'Override\x20appcode','hint':'<code>'},{'name':a208_0xcb46c1(0x190),'meowKey':a208_0xcb46c1(0x190),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x195),'hint':a208_0xcb46c1(0x13a)},{'name':a208_0xcb46c1(0x180),'meowKey':a208_0xcb46c1(0x180),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13b),'hint':'production\x20|\x20daily'},{'name':a208_0xcb46c1(0x14a),'meowKey':'format','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x177),'hint':a208_0xcb46c1(0x176)},{'name':'jq','meowKey':'jq','type':a208_0xcb46c1(0x161),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a208_0xcb46c1(0x160)},{'name':a208_0xcb46c1(0x16b),'meowKey':'dryRun','type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x164)},{'name':'yes','meowKey':a208_0xcb46c1(0x13f),'type':a208_0xcb46c1(0x12d),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a208_0xcb46c1(0x158),'meowKey':a208_0xcb46c1(0x16f),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x126)},{'name':a208_0xcb46c1(0x182),'meowKey':a208_0xcb46c1(0x182),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x153)},{'name':a208_0xcb46c1(0x1a4),'meowKey':a208_0xcb46c1(0x1a4),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x17b)},{'name':'ci','meowKey':'ci','type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x148),'hidden':!![]},{'name':a208_0xcb46c1(0x146),'meowKey':a208_0xcb46c1(0x146),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x14b)},{'name':a208_0xcb46c1(0x17c),'meowKey':a208_0xcb46c1(0x17c),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x18a),'hidden':!![],'hint':a208_0xcb46c1(0x135)},{'name':'name','meowKey':a208_0xcb46c1(0x169),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x17f),'hidden':!![]},{'name':a208_0xcb46c1(0x131),'meowKey':'title','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x16c),'hidden':!![]},{'name':a208_0xcb46c1(0x154),'meowKey':'query','type':'string','description':a208_0xcb46c1(0x138),'hidden':!![]},{'name':a208_0xcb46c1(0x198),'meowKey':a208_0xcb46c1(0x198),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x141),'hidden':!![]},{'name':'clear','meowKey':a208_0xcb46c1(0x12b),'type':a208_0xcb46c1(0x12d),'description':'Clear','hidden':!![]},{'name':a208_0xcb46c1(0x17d),'meowKey':a208_0xcb46c1(0x17d),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x12a),'hidden':!![]},{'name':a208_0xcb46c1(0x142),'meowKey':a208_0xcb46c1(0x142),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x143),'hidden':!![]},{'name':'params','meowKey':a208_0xcb46c1(0x120),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a208_0xcb46c1(0x191),'meowKey':a208_0xcb46c1(0x191),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a208_0xcb46c1(0x14f),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x155),'hidden':!![]},{'name':a208_0xcb46c1(0x199),'meowKey':a208_0xcb46c1(0x14e),'type':a208_0xcb46c1(0x12d),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a208_0xcb46c1(0x161),'description':'Record\x20ID','hidden':!![]},{'name':a208_0xcb46c1(0x151),'meowKey':a208_0xcb46c1(0x151),'type':a208_0xcb46c1(0x161),'description':'Type\x20filter','hidden':!![]},{'name':a208_0xcb46c1(0x12c),'meowKey':a208_0xcb46c1(0x12c),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x147),'hidden':!![]},{'name':a208_0xcb46c1(0x193),'meowKey':'sqlcode','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x122),'hidden':!![]},{'name':a208_0xcb46c1(0x189),'meowKey':a208_0xcb46c1(0x167),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x152),'hidden':!![]},{'name':a208_0xcb46c1(0x12f),'meowKey':'sqlname','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x152),'hidden':!![]},{'name':a208_0xcb46c1(0x18f),'meowKey':a208_0xcb46c1(0x19f),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x156),'hidden':!![]},{'name':a208_0xcb46c1(0x16a),'meowKey':a208_0xcb46c1(0x16a),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x156),'hidden':!![]},{'name':a208_0xcb46c1(0x137),'meowKey':a208_0xcb46c1(0x137),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13d),'hidden':!![]},{'name':a208_0xcb46c1(0x15e),'meowKey':a208_0xcb46c1(0x14d),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x183),'hidden':!![]},{'name':a208_0xcb46c1(0x15a),'meowKey':'page','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x194),'hidden':!![]},{'name':a208_0xcb46c1(0x127),'meowKey':a208_0xcb46c1(0x127),'type':a208_0xcb46c1(0x161),'description':'Page\x20size','hidden':!![]},{'name':a208_0xcb46c1(0x129),'meowKey':a208_0xcb46c1(0x129),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x15c),'hidden':!![]},{'name':a208_0xcb46c1(0x192),'meowKey':a208_0xcb46c1(0x192),'type':'string','description':a208_0xcb46c1(0x19d),'hidden':!![]},{'name':a208_0xcb46c1(0x19e),'meowKey':'sql','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x11e),'hidden':!![]},{'name':'schemas','meowKey':a208_0xcb46c1(0x186),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x18e),'hidden':!![]},{'name':a208_0xcb46c1(0x16e),'meowKey':'operation','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x187),'hidden':!![]},{'name':a208_0xcb46c1(0x17a),'meowKey':a208_0xcb46c1(0x17a),'type':'string','description':a208_0xcb46c1(0x184),'hidden':!![]},{'name':'skip-imports','meowKey':a208_0xcb46c1(0x196),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x170),'hidden':!![]},{'name':a208_0xcb46c1(0x18d),'meowKey':a208_0xcb46c1(0x18d),'type':a208_0xcb46c1(0x161),'description':'Config\x20key','hidden':!![]},{'name':a208_0xcb46c1(0x175),'meowKey':'value','type':a208_0xcb46c1(0x161),'description':'Config\x20value','hidden':!![]},{'name':a208_0xcb46c1(0x1a7),'meowKey':'tags','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x188),'hidden':!![]},{'name':a208_0xcb46c1(0x159),'meowKey':a208_0xcb46c1(0x159),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x1a0),'hidden':!![]},{'name':a208_0xcb46c1(0x185),'meowKey':a208_0xcb46c1(0x133),'type':a208_0xcb46c1(0x161),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':a208_0xcb46c1(0x121),'meowKey':a208_0xcb46c1(0x121),'type':'boolean','description':a208_0xcb46c1(0x157),'hidden':!![]},{'name':a208_0xcb46c1(0x18b),'meowKey':a208_0xcb46c1(0x18b),'type':a208_0xcb46c1(0x12d),'description':'Force\x20overwrite','hidden':!![]},{'name':'confirm','meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a208_0xcb46c1(0x19c),'type':'boolean','description':a208_0xcb46c1(0x181),'hidden':!![]},{'name':'verbose','meowKey':a208_0xcb46c1(0x12e),'type':a208_0xcb46c1(0x12d),'description':a208_0xcb46c1(0x1a1),'hidden':!![]},{'name':a208_0xcb46c1(0x15d),'meowKey':a208_0xcb46c1(0x173),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x168),'hidden':!![]},{'name':'label','meowKey':a208_0xcb46c1(0x11d),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x15f),'hidden':!![]},{'name':a208_0xcb46c1(0x16d),'meowKey':a208_0xcb46c1(0x1a3),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x124),'hidden':!![]},{'name':'sort','meowKey':'sort','type':a208_0xcb46c1(0x161),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a208_0xcb46c1(0x140),'meowKey':a208_0xcb46c1(0x171),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x139),'hidden':!![]},{'name':a208_0xcb46c1(0x13c),'meowKey':'expectPath','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x162),'hidden':!![]},{'name':'expected-children-count','meowKey':a208_0xcb46c1(0x125),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x123),'hidden':!![]},{'name':a208_0xcb46c1(0x174),'meowKey':'menuIds','type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x19a),'hidden':!![]},{'name':a208_0xcb46c1(0x150),'meowKey':a208_0xcb46c1(0x178),'type':a208_0xcb46c1(0x161),'description':a208_0xcb46c1(0x13e),'hidden':!![]},{'name':a208_0xcb46c1(0x197),'meowKey':a208_0xcb46c1(0x144),'type':'string','description':a208_0xcb46c1(0x187),'hidden':!![]},{'name':a208_0xcb46c1(0x1a2),'meowKey':a208_0xcb46c1(0x17e),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a208_0xcb46c1(0x18c),a208_0xcb46c1(0x190),a208_0xcb46c1(0x180),'format','jq','dry-run',a208_0xcb46c1(0x13f),a208_0xcb46c1(0x158),'ci']);export function buildMeowFlags(){const _0x1cd5b6=a208_0xcb46c1;return Object[_0x1cd5b6(0x130)](GLOBAL_FLAGS[_0x1cd5b6(0x163)](_0x1e0468=>[_0x1e0468['meowKey'],{'type':_0x1e0468[_0x1cd5b6(0x151)]}]));}
@@ -1 +1 @@
1
- function a210_0x49cd(){const _0x46833b=['3617055HCSsYz','20GoqKNw','93592WhZXiA','compress','8873984VhJKTV','write','3kmIXsg','1499399FHrEBm','89452yzsfwW','290jOiMtk','36954bFgScQ','4Sinwau','6462484gQdzgv'];a210_0x49cd=function(){return _0x46833b;};return a210_0x49cd();}function a210_0x2752(_0xed0bb4,_0x9a8f5){_0xed0bb4=_0xed0bb4-0xb4;const _0x49cd4b=a210_0x49cd();let _0x2752b7=_0x49cd4b[_0xed0bb4];return _0x2752b7;}const a210_0x2068a3=a210_0x2752;(function(_0x3d067d,_0x45d132){const _0x1b86a7=a210_0x2752,_0x1e0db5=_0x3d067d();while(!![]){try{const _0x1fe0a6=parseInt(_0x1b86a7(0xbb))/0x1*(parseInt(_0x1b86a7(0xb8))/0x2)+parseInt(_0x1b86a7(0xb6))/0x3*(-parseInt(_0x1b86a7(0xbf))/0x4)+parseInt(_0x1b86a7(0xb9))/0x5*(parseInt(_0x1b86a7(0xba))/0x6)+-parseInt(_0x1b86a7(0xbc))/0x7+parseInt(_0x1b86a7(0xb4))/0x8+-parseInt(_0x1b86a7(0xbd))/0x9+parseInt(_0x1b86a7(0xbe))/0xa*(parseInt(_0x1b86a7(0xb7))/0xb);if(_0x1fe0a6===_0x45d132)break;else _0x1e0db5['push'](_0x1e0db5['shift']());}catch(_0x1c5265){_0x1e0db5['push'](_0x1e0db5['shift']());}}}(a210_0x49cd,0x8b08f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a210_0x2068a3(0xc0),'locale':'en-US','riskLevel':a210_0x2068a3(0xb5),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a210_0x2068a3(0xc0);
1
+ function a209_0x16ec(_0x492152,_0x2fa1be){_0x492152=_0x492152-0xdc;const _0x3b96d4=a209_0x3b96();let _0x16ecaa=_0x3b96d4[_0x492152];return _0x16ecaa;}const a209_0x58af6f=a209_0x16ec;(function(_0x1981c2,_0x393589){const _0x57d4a1=a209_0x16ec,_0x8b494d=_0x1981c2();while(!![]){try{const _0x43bb74=-parseInt(_0x57d4a1(0xe0))/0x1*(-parseInt(_0x57d4a1(0xdf))/0x2)+-parseInt(_0x57d4a1(0xe8))/0x3+parseInt(_0x57d4a1(0xe4))/0x4*(parseInt(_0x57d4a1(0xe2))/0x5)+parseInt(_0x57d4a1(0xdc))/0x6+-parseInt(_0x57d4a1(0xe9))/0x7+-parseInt(_0x57d4a1(0xe3))/0x8*(-parseInt(_0x57d4a1(0xe5))/0x9)+-parseInt(_0x57d4a1(0xdd))/0xa;if(_0x43bb74===_0x393589)break;else _0x8b494d['push'](_0x8b494d['shift']());}catch(_0x107902){_0x8b494d['push'](_0x8b494d['shift']());}}}(a209_0x3b96,0xbc53f));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a209_0x58af6f(0xe7),'format':a209_0x58af6f(0xe1),'locale':a209_0x58af6f(0xde),'riskLevel':a209_0x58af6f(0xe6),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a209_0x3b96(){const _0x33dc8a=['6679584ZDEvEk','1994720cZnEma','en-US','234566ObeMcd','7CteTIH','compress','66455HVKmDd','32fQEKFC','236pQKoIX','1843173Ohyeew','write','production','3881619JZUJVM','8910062cXkfgl'];a209_0x3b96=function(){return _0x33dc8a;};return a209_0x3b96();}
@@ -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
- function a211_0x3c3c(_0x2909ca,_0x149646){_0x2909ca=_0x2909ca-0x128;const _0x4cb0b3=a211_0x4cb0();let _0x3c3c24=_0x4cb0b3[_0x2909ca];return _0x3c3c24;}const a211_0x4d30ae=a211_0x3c3c;(function(_0x4e37e7,_0x361488){const _0x279479=a211_0x3c3c,_0x545899=_0x4e37e7();while(!![]){try{const _0x5dd7e0=parseInt(_0x279479(0x129))/0x1+parseInt(_0x279479(0x130))/0x2*(parseInt(_0x279479(0x128))/0x3)+parseInt(_0x279479(0x12d))/0x4*(-parseInt(_0x279479(0x12a))/0x5)+parseInt(_0x279479(0x139))/0x6+parseInt(_0x279479(0x12f))/0x7+-parseInt(_0x279479(0x138))/0x8*(-parseInt(_0x279479(0x13a))/0x9)+-parseInt(_0x279479(0x12e))/0xa;if(_0x5dd7e0===_0x361488)break;else _0x545899['push'](_0x545899['shift']());}catch(_0x2e2f6c){_0x545899['push'](_0x545899['shift']());}}}(a211_0x4cb0,0x580d3));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a211_0x4cb0(){const _0x44c3a0=['https://user-daily.lovrabet.com','https://runtime.lovrabet.com','/web-app/app/','userDomain','/app/','https://user.lovrabet.com','1741712NoLzmz','2553300yzeAvl','9hKRgla','453jQLRmM','672292hPglIe','50vAYWNR','https://daily-api.lovrabet.com','apiDomain','13352RpGCgQ','12849770URuxGS','233618Ybrxab','4372XnWAaM','https://api.lovrabet.com'];a211_0x4cb0=function(){return _0x44c3a0;};return a211_0x4cb0();}export function initDomains(_0x12cda9){const _0x51d67a=a211_0x3c3c;customApiDomain=_0x12cda9?.[_0x51d67a(0x12c)],customUserDomain=_0x12cda9?.[_0x51d67a(0x135)],customRuntimeDomain=_0x12cda9?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a211_0x4d30ae(0x137):a211_0x4d30ae(0x132));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a211_0x4d30ae(0x131):a211_0x4d30ae(0x12b));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a211_0x4d30ae(0x133):'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0x1526bc=>{const _0x219d9d=a211_0x4d30ae,_0x268408=encodeURIComponent(_0x1526bc['trim']());return isProduction(getEnv())?getAppDomain()+_0x219d9d(0x136)+_0x268408:getAppDomain()+_0x219d9d(0x134)+_0x268408;};
1
+ const a210_0x2e405b=a210_0x4a77;(function(_0x4379ad,_0x57a945){const _0x132736=a210_0x4a77,_0x42b4b3=_0x4379ad();while(!![]){try{const _0x3511ea=-parseInt(_0x132736(0x1e8))/0x1+parseInt(_0x132736(0x1e9))/0x2*(parseInt(_0x132736(0x1d7))/0x3)+parseInt(_0x132736(0x1e7))/0x4+parseInt(_0x132736(0x1ea))/0x5+parseInt(_0x132736(0x1c7))/0x6+-parseInt(_0x132736(0x1d4))/0x7*(-parseInt(_0x132736(0x1e3))/0x8)+parseInt(_0x132736(0x1c5))/0x9*(-parseInt(_0x132736(0x1d2))/0xa);if(_0x3511ea===_0x57a945)break;else _0x42b4b3['push'](_0x42b4b3['shift']());}catch(_0x321f6c){_0x42b4b3['push'](_0x42b4b3['shift']());}}}(a210_0x57fa,0xa61b6));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a210_0x57fa(){const _0x4b1f9b=['https://user.lovrabet.ai','skillDomain','user','trim','/app/','https://user.lovrabet.com','https://daily-runtime.lovrabet.ai','app','6456830uCVxuI','https://skills.lovrabet.com','2910348ZmgnaZ','nonProduction','https://daily.lovrabet.ai','3DDbDzZ','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.id','https://daily-runtime.lovrabet.com','hostname','runtimeDomain','https://daily.lovrabet.com','https://app.lovrabet.ai','https://skills-daily.lovrabet.id','https://skills-daily.lovrabet.com','https://skills-daily.lovrabet.ai','https://skills.lovrabet.ai','16rMntOi','https://api.lovrabet.ai','https://runtime.lovrabet.com','https://user-daily.lovrabet.id','402496GDLphW','906156WLcRFb','1205320VvsyiP','5438930lCrEyI','https://user.lovrabet.id','/web-app/app/','https://api.lovrabet.id','global','https://api.lovrabet.com','https://app.lovrabet.com','https://daily-api.lovrabet.ai','appDomain','skill','27hyRCbB','https://runtime.lovrabet.ai','5405886fvCHsQ','kbDomain','https://runtime.lovrabet.id'];a210_0x57fa=function(){return _0x4b1f9b;};return a210_0x57fa();}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,activeRegion=DEFAULT_LOVRABET_REGION;const REGION_DOMAINS={'cn':{'production':{'user':a210_0x2e405b(0x1cf),'api':a210_0x2e405b(0x1c0),'runtime':a210_0x2e405b(0x1e5),'skill':a210_0x2e405b(0x1d3),'kb':a210_0x2e405b(0x1e5),'app':a210_0x2e405b(0x1c1)},'nonProduction':{'user':a210_0x2e405b(0x1d8),'api':'https://daily-api.lovrabet.com','runtime':a210_0x2e405b(0x1da),'skill':a210_0x2e405b(0x1e0),'kb':'https://daily-runtime.lovrabet.com','app':a210_0x2e405b(0x1dd)}},'id':{'production':{'user':a210_0x2e405b(0x1eb),'api':a210_0x2e405b(0x1be),'runtime':a210_0x2e405b(0x1c9),'skill':'https://skills.lovrabet.id','kb':a210_0x2e405b(0x1c9),'app':'https://app.lovrabet.id'},'nonProduction':{'user':a210_0x2e405b(0x1e6),'api':'https://daily-api.lovrabet.id','runtime':a210_0x2e405b(0x1d9),'skill':a210_0x2e405b(0x1df),'kb':a210_0x2e405b(0x1d9),'app':'https://daily.lovrabet.id'}},'global':{'production':{'user':a210_0x2e405b(0x1ca),'api':a210_0x2e405b(0x1e4),'runtime':a210_0x2e405b(0x1c6),'skill':a210_0x2e405b(0x1e2),'kb':a210_0x2e405b(0x1c6),'app':a210_0x2e405b(0x1de)},'nonProduction':{'user':'https://user-daily.lovrabet.ai','api':a210_0x2e405b(0x1c2),'runtime':a210_0x2e405b(0x1d0),'skill':a210_0x2e405b(0x1e1),'kb':'https://daily-runtime.lovrabet.ai','app':a210_0x2e405b(0x1d6)}}};function getActiveRegionDomains(){const _0x2a5f3f=a210_0x2e405b;return REGION_DOMAINS[activeRegion][isProduction(getEnv())?'production':_0x2a5f3f(0x1d5)];}export function initDomains(_0x553e9d){const _0x18bfe=a210_0x2e405b;customApiDomain=_0x553e9d?.['apiDomain'],customUserDomain=_0x553e9d?.['userDomain'],customRuntimeDomain=_0x553e9d?.[_0x18bfe(0x1dc)],customSkillDomain=_0x553e9d?.[_0x18bfe(0x1cb)],customKbDomain=_0x553e9d?.[_0x18bfe(0x1c8)],customAppDomain=_0x553e9d?.[_0x18bfe(0x1c3)],activeRegion=_0x553e9d?.['region']??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a210_0x2e405b(0x1cc)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a210_0x2e405b(0x1c4)];export const getKbDomain=()=>customKbDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a210_0x2e405b(0x1d1)];export const getActiveRegion=()=>activeRegion;function a210_0x4a77(_0x123b61,_0x5c2a6b){_0x123b61=_0x123b61-0x1be;const _0x57fa31=a210_0x57fa();let _0x4a774b=_0x57fa31[_0x123b61];return _0x4a774b;}export function getSdkClientRoutingConfig(){const _0x20f67a=a210_0x2e405b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion==='id')return{'region':'id'};if(activeRegion===_0x20f67a(0x1bf))return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x28fdd2=>{const _0x717309=a210_0x2e405b,_0x2bebea=encodeURIComponent(_0x28fdd2[_0x717309(0x1cd)]());return isProduction(getEnv())?getAppDomain()+_0x717309(0x1ce)+_0x2bebea:getAppDomain()+_0x717309(0x1ec)+_0x2bebea;};export const getPublishedAppDomain=_0x5cce04=>{const _0x33d787=a210_0x2e405b,_0x442d4f=new URL(getAppDomain());return _0x442d4f['hostname']=_0x5cce04[_0x33d787(0x1cd)]()+'.'+_0x442d4f[_0x33d787(0x1db)],_0x442d4f['origin'];};
@@ -1 +1 @@
1
- const a212_0x566d7f=a212_0x5c9d;(function(_0x1d1d5d,_0xc9db86){const _0x1e2fa7=a212_0x5c9d,_0x35a94a=_0x1d1d5d();while(!![]){try{const _0x56e9c5=parseInt(_0x1e2fa7(0x1d5))/0x1+-parseInt(_0x1e2fa7(0x1d1))/0x2*(parseInt(_0x1e2fa7(0x1c8))/0x3)+-parseInt(_0x1e2fa7(0x1d3))/0x4+parseInt(_0x1e2fa7(0x1c7))/0x5*(-parseInt(_0x1e2fa7(0x1cf))/0x6)+parseInt(_0x1e2fa7(0x1cc))/0x7*(parseInt(_0x1e2fa7(0x1d4))/0x8)+parseInt(_0x1e2fa7(0x1cd))/0x9*(-parseInt(_0x1e2fa7(0x1d6))/0xa)+parseInt(_0x1e2fa7(0x1cb))/0xb*(parseInt(_0x1e2fa7(0x1c9))/0xc);if(_0x56e9c5===_0xc9db86)break;else _0x35a94a['push'](_0x35a94a['shift']());}catch(_0x50c687){_0x35a94a['push'](_0x35a94a['shift']());}}}(a212_0x500c,0x989e8));export const RABETBASE_ENV_VALUES=[a212_0x566d7f(0x1d2),a212_0x566d7f(0x1ca)];export function normalizeEnv(_0x212d2d){const _0x4f511d=a212_0x566d7f;return _0x212d2d==='online'?_0x4f511d(0x1d2):_0x212d2d;}export function isProduction(_0x183965){const _0xc4827f=a212_0x566d7f;return normalizeEnv(_0x183965)===_0xc4827f(0x1d2);}function a212_0x5c9d(_0x155815,_0x59c170){_0x155815=_0x155815-0x1c7;const _0x500c31=a212_0x500c();let _0x5c9d17=_0x500c31[_0x155815];return _0x5c9d17;}export function isDaily(_0x1fc8e1){const _0x2c5a58=a212_0x566d7f;return normalizeEnv(_0x1fc8e1)===_0x2c5a58(0x1ca);}export function isDev(_0x7c1260){const _0x3a44f9=a212_0x566d7f,_0x4c908f=normalizeEnv(_0x7c1260);return _0x4c908f===_0x3a44f9(0x1d0)||_0x4c908f===_0x3a44f9(0x1ce);}function a212_0x500c(){const _0x1a936c=['114568OkqBsX','610812RkEjnN','30ZmEuaG','5435wqIXTI','9BskuZc','6852vcyinc','daily','19349EPJXmM','581cImPAk','1650762tbxltg','dev','6858dYMCEa','development','16842FkUgZB','production','1443032pDTYJu'];a212_0x500c=function(){return _0x1a936c;};return a212_0x500c();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a212_0x566d7f(0x1d2));export function getEnv(){return env;}export function initEnv(_0x1fe383){env=normalizeEnv(_0x1fe383);}
1
+ const a211_0x28c516=a211_0x2fd2;(function(_0x2d12a1,_0x3f20a6){const _0x36362b=a211_0x2fd2,_0x5c07b5=_0x2d12a1();while(!![]){try{const _0x142598=parseInt(_0x36362b(0xd4))/0x1+parseInt(_0x36362b(0xd2))/0x2+parseInt(_0x36362b(0xca))/0x3*(-parseInt(_0x36362b(0xcc))/0x4)+parseInt(_0x36362b(0xcd))/0x5+parseInt(_0x36362b(0xcb))/0x6+parseInt(_0x36362b(0xce))/0x7+-parseInt(_0x36362b(0xcf))/0x8;if(_0x142598===_0x3f20a6)break;else _0x5c07b5['push'](_0x5c07b5['shift']());}catch(_0x2a6011){_0x5c07b5['push'](_0x5c07b5['shift']());}}}(a211_0x536d,0x9585f));export const RABETBASE_ENV_VALUES=[a211_0x28c516(0xd1),a211_0x28c516(0xd3)];function a211_0x536d(){const _0x1213b9=['20tIjRXE','56770isgcYg','7846944mRGlmJ','10151536zIgsrt','development','production','1210922KBEXKP','daily','153252KHRcfN','446781OisAAI','4409790wRaqyl'];a211_0x536d=function(){return _0x1213b9;};return a211_0x536d();}export function normalizeEnv(_0x82849d){const _0x29745d=a211_0x28c516;return _0x82849d==='online'?_0x29745d(0xd1):_0x82849d;}function a211_0x2fd2(_0xa8770c,_0x4ea593){_0xa8770c=_0xa8770c-0xca;const _0x536d97=a211_0x536d();let _0x2fd2da=_0x536d97[_0xa8770c];return _0x2fd2da;}export function isProduction(_0x1551b6){const _0x39ff35=a211_0x28c516;return normalizeEnv(_0x1551b6)===_0x39ff35(0xd1);}export function isDaily(_0x361cb1){const _0x43fba7=a211_0x28c516;return normalizeEnv(_0x361cb1)===_0x43fba7(0xd3);}export function isDev(_0x1280a2){const _0x5297df=a211_0x28c516,_0x4753fc=normalizeEnv(_0x1280a2);return _0x4753fc===_0x5297df(0xd0)||_0x4753fc==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x41910d){env=normalizeEnv(_0x41910d);}
@@ -1 +1 @@
1
- function a213_0xa58d(_0x433d7b,_0x4eb3d7){_0x433d7b=_0x433d7b-0x1df;const _0x8cfa88=a213_0x8cfa();let _0xa58dd2=_0x8cfa88[_0x433d7b];return _0xa58dd2;}const a213_0x55730f=a213_0xa58d;function a213_0x8cfa(){const _0x4af8e7=['2650043hdBghv','78340pWOMTd','370EMqHUb','8QRJmVo','20JcgPKY','12313ycUXfe','pretty','21123ciRQtZ','105219IyWVQJ','84321aAOKKe','compress','28398vjlBEN','2yIaBQg'];a213_0x8cfa=function(){return _0x4af8e7;};return a213_0x8cfa();}(function(_0x5b2a5b,_0x9b9089){const _0x29d77a=a213_0xa58d,_0x30aef9=_0x5b2a5b();while(!![]){try{const _0x472b87=-parseInt(_0x29d77a(0x1ea))/0x1*(-parseInt(_0x29d77a(0x1e1))/0x2)+-parseInt(_0x29d77a(0x1eb))/0x3*(-parseInt(_0x29d77a(0x1e6))/0x4)+parseInt(_0x29d77a(0x1e3))/0x5+-parseInt(_0x29d77a(0x1e0))/0x6+-parseInt(_0x29d77a(0x1e7))/0x7*(-parseInt(_0x29d77a(0x1e5))/0x8)+parseInt(_0x29d77a(0x1e9))/0x9*(parseInt(_0x29d77a(0x1e4))/0xa)+-parseInt(_0x29d77a(0x1e2))/0xb;if(_0x472b87===_0x9b9089)break;else _0x30aef9['push'](_0x30aef9['shift']());}catch(_0x454ece){_0x30aef9['push'](_0x30aef9['shift']());}}}(a213_0x8cfa,0x197b6));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a213_0x55730f(0x1e8),a213_0x55730f(0x1df)];
1
+ const a212_0x4370bd=a212_0x477e;(function(_0x31662f,_0x3b845d){const _0x27cacd=a212_0x477e,_0x5b7a41=_0x31662f();while(!![]){try{const _0x28afe6=parseInt(_0x27cacd(0xc6))/0x1*(-parseInt(_0x27cacd(0xcb))/0x2)+-parseInt(_0x27cacd(0xc8))/0x3*(-parseInt(_0x27cacd(0xc2))/0x4)+parseInt(_0x27cacd(0xca))/0x5+parseInt(_0x27cacd(0xc4))/0x6*(-parseInt(_0x27cacd(0xce))/0x7)+parseInt(_0x27cacd(0xc7))/0x8+-parseInt(_0x27cacd(0xc9))/0x9+parseInt(_0x27cacd(0xc3))/0xa*(parseInt(_0x27cacd(0xcc))/0xb);if(_0x28afe6===_0x3b845d)break;else _0x5b7a41['push'](_0x5b7a41['shift']());}catch(_0x4423d8){_0x5b7a41['push'](_0x5b7a41['shift']());}}}(a212_0x2e0b,0x80842));function a212_0x477e(_0x665639,_0x284a2a){_0x665639=_0x665639-0xc2;const _0x2e0bf0=a212_0x2e0b();let _0x477e10=_0x2e0bf0[_0x665639];return _0x477e10;}function a212_0x2e0b(){const _0x59d021=['4mOSibE','40tXTzwz','1152rcoPUt','pretty','1fRtXrB','7565136gjeuKq','1134453bTgSxd','7317207ZFNakC','787565jkDtLl','1257274FewdNy','3265251MwXwPc','compress','25543KdYxXQ'];a212_0x2e0b=function(){return _0x59d021;};return a212_0x2e0b();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a212_0x4370bd(0xc5),a212_0x4370bd(0xcd)];
@@ -1 +1 @@
1
- const a214_0x2f35ad=a214_0x57a3;function a214_0x57a3(_0xf3959b,_0x631858){_0xf3959b=_0xf3959b-0x1b1;const _0x277ddf=a214_0x277d();let _0x57a372=_0x277ddf[_0xf3959b];return _0x57a372;}(function(_0x236aa4,_0xbcd914){const _0x894c8c=a214_0x57a3,_0x3bdfb8=_0x236aa4();while(!![]){try{const _0x35fbed=-parseInt(_0x894c8c(0x1b3))/0x1*(-parseInt(_0x894c8c(0x1b7))/0x2)+parseInt(_0x894c8c(0x1b5))/0x3+parseInt(_0x894c8c(0x1b8))/0x4+parseInt(_0x894c8c(0x1b4))/0x5+-parseInt(_0x894c8c(0x1b1))/0x6*(parseInt(_0x894c8c(0x1b6))/0x7)+-parseInt(_0x894c8c(0x1b2))/0x8+-parseInt(_0x894c8c(0x1ba))/0x9;if(_0x35fbed===_0xbcd914)break;else _0x3bdfb8['push'](_0x3bdfb8['shift']());}catch(_0x29e406){_0x3bdfb8['push'](_0x3bdfb8['shift']());}}}(a214_0x277d,0xdbf12));function a214_0x277d(){const _0x3b23f9=['6316668qtKYWi','./src/api','14411862oDexUA','9246972cWnqyM','2979872sZHTSK','15481Kgazvx','5503000dJsBWI','3489846aGKeRF','7XwDpfT','74ZJktcX'];a214_0x277d=function(){return _0x3b23f9;};return a214_0x277d();}export const DEFAULT_API_DIR=a214_0x2f35ad(0x1b9);
1
+ const a213_0x59d641=a213_0x104c;function a213_0x104c(_0x56bd29,_0x3ad23f){_0x56bd29=_0x56bd29-0x1c1;const _0x267d4e=a213_0x267d();let _0x104cea=_0x267d4e[_0x56bd29];return _0x104cea;}(function(_0x461cc6,_0x104b6f){const _0x5e88ee=a213_0x104c,_0x5630b6=_0x461cc6();while(!![]){try{const _0x3e18c4=-parseInt(_0x5e88ee(0x1cb))/0x1+parseInt(_0x5e88ee(0x1c4))/0x2*(-parseInt(_0x5e88ee(0x1c3))/0x3)+-parseInt(_0x5e88ee(0x1c8))/0x4*(-parseInt(_0x5e88ee(0x1c9))/0x5)+-parseInt(_0x5e88ee(0x1c1))/0x6+-parseInt(_0x5e88ee(0x1c6))/0x7*(-parseInt(_0x5e88ee(0x1c5))/0x8)+-parseInt(_0x5e88ee(0x1c2))/0x9+parseInt(_0x5e88ee(0x1c7))/0xa;if(_0x3e18c4===_0x104b6f)break;else _0x5630b6['push'](_0x5630b6['shift']());}catch(_0x23d398){_0x5630b6['push'](_0x5630b6['shift']());}}}(a213_0x267d,0x7bd76));export const DEFAULT_API_DIR=a213_0x59d641(0x1ca);function a213_0x267d(){const _0xf23e=['70391koDUab','984714NgjNWW','6724557zKAWAI','2501742DARjBk','2kMDjNU','3112464PqjQAo','7pwJbip','13969030trJtin','2147560oUweOP','5uxOiay','./src/api'];a213_0x267d=function(){return _0xf23e;};return a213_0x267d();}
@@ -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
+ (function(_0x3e48a4,_0x456d2c){const _0x5363e3=a214_0x3512,_0x11df4a=_0x3e48a4();while(!![]){try{const _0xb2d6e9=-parseInt(_0x5363e3(0x18b))/0x1+parseInt(_0x5363e3(0x185))/0x2+parseInt(_0x5363e3(0x181))/0x3+-parseInt(_0x5363e3(0x189))/0x4+parseInt(_0x5363e3(0x18a))/0x5*(-parseInt(_0x5363e3(0x184))/0x6)+parseInt(_0x5363e3(0x183))/0x7+-parseInt(_0x5363e3(0x180))/0x8*(-parseInt(_0x5363e3(0x187))/0x9);if(_0xb2d6e9===_0x456d2c)break;else _0x11df4a['push'](_0x11df4a['shift']());}catch(_0x251696){_0x11df4a['push'](_0x11df4a['shift']());}}}(a214_0x1824,0xe9f4a));export const LOVRABET_REGION_VALUES=['cn','id','global'];function a214_0x1824(){const _0x16c3ab=['54CmoPFi','1429854GuWekQ','china','4250529XslyYU','includes','5898260EVlLvR','748255KDfTsl','4404fIIekt','string','8SIfHDp','4561668hEXnbr','indonesia','7534422IQpFpp'];a214_0x1824=function(){return _0x16c3ab;};return a214_0x1824();}export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x1e86ec){const _0x56c13c=a214_0x3512;return typeof _0x1e86ec===_0x56c13c(0x18c)&&LOVRABET_REGION_VALUES[_0x56c13c(0x188)](_0x1e86ec);}function a214_0x3512(_0x4a0b8c,_0x42f9a9){_0x4a0b8c=_0x4a0b8c-0x180;const _0x182465=a214_0x1824();let _0x35126f=_0x182465[_0x4a0b8c];return _0x35126f;}export function isEnabledLovrabetRegion(_0x3b248b){const _0x5b00c8=a214_0x3512;return typeof _0x3b248b==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x5b00c8(0x188)](_0x3b248b);}export function normalizeLovrabetRegion(_0x2bfa2a){const _0x59c52f=a214_0x3512;if(_0x2bfa2a===_0x59c52f(0x186))return'cn';if(_0x2bfa2a===_0x59c52f(0x182))return'id';return isLovrabetRegion(_0x2bfa2a)?_0x2bfa2a:DEFAULT_LOVRABET_REGION;}
@@ -1 +1 @@
1
- function a215_0x122c(_0xfc4578,_0x1b70c1){_0xfc4578=_0xfc4578-0xa3;const _0x274d39=a215_0x274d();let _0x122c1f=_0x274d39[_0xfc4578];return _0x122c1f;}const a215_0x1002ea=a215_0x122c;(function(_0x10efb0,_0x522f7f){const _0x483eec=a215_0x122c,_0x13d29c=_0x10efb0();while(!![]){try{const _0x429144=parseInt(_0x483eec(0xab))/0x1+-parseInt(_0x483eec(0xa8))/0x2*(-parseInt(_0x483eec(0xa3))/0x3)+-parseInt(_0x483eec(0xac))/0x4+-parseInt(_0x483eec(0xae))/0x5*(-parseInt(_0x483eec(0xad))/0x6)+parseInt(_0x483eec(0xa7))/0x7+-parseInt(_0x483eec(0xaa))/0x8+-parseInt(_0x483eec(0xa4))/0x9*(parseInt(_0x483eec(0xa5))/0xa);if(_0x429144===_0x522f7f)break;else _0x13d29c['push'](_0x13d29c['shift']());}catch(_0x993456){_0x13d29c['push'](_0x13d29c['shift']());}}}(a215_0x274d,0x7fcee));function a215_0x274d(){const _0x586b69=['1288107RDCFgL','10HTllTa','read','4251646HktpTf','103380aAkjfB','high-risk-write','4377400JVyPdV','91129essAwM','2231236ZRsBXv','48GZBjjV','444545JqZMVs','21rOJEiA'];a215_0x274d=function(){return _0x586b69;};return a215_0x274d();}export const RISK_LEVEL_VALUES=[a215_0x1002ea(0xa6),'write',a215_0x1002ea(0xa9)];
1
+ const a215_0x1c7ce0=a215_0x9650;(function(_0x595110,_0x28a63c){const _0x5b616a=a215_0x9650,_0x5490da=_0x595110();while(!![]){try{const _0x31f82a=parseInt(_0x5b616a(0x9a))/0x1+-parseInt(_0x5b616a(0xa3))/0x2*(-parseInt(_0x5b616a(0x9d))/0x3)+parseInt(_0x5b616a(0x9b))/0x4+parseInt(_0x5b616a(0xa6))/0x5*(-parseInt(_0x5b616a(0xa2))/0x6)+-parseInt(_0x5b616a(0xa5))/0x7+-parseInt(_0x5b616a(0xa0))/0x8+-parseInt(_0x5b616a(0x9c))/0x9*(-parseInt(_0x5b616a(0x9f))/0xa);if(_0x31f82a===_0x28a63c)break;else _0x5490da['push'](_0x5490da['shift']());}catch(_0x4fa9a2){_0x5490da['push'](_0x5490da['shift']());}}}(a215_0x1456,0x4c569));function a215_0x9650(_0x1dcbc1,_0xd551b5){_0x1dcbc1=_0x1dcbc1-0x9a;const _0x1456c2=a215_0x1456();let _0x965071=_0x1456c2[_0x1dcbc1];return _0x965071;}export const RISK_LEVEL_VALUES=[a215_0x1c7ce0(0x9e),a215_0x1c7ce0(0xa1),a215_0x1c7ce0(0xa4)];function a215_0x1456(){const _0x45bb31=['2946727WOwICU','844480FDixeM','438293RwhSly','922380vIIWcV','217629TJdzOa','216354tWBVvQ','read','290OtANwz','2966568IkeuEm','write','12GWpmYg','2glsJwk','high-risk-write'];a215_0x1456=function(){return _0x45bb31;};return a215_0x1456();}
@@ -1 +1 @@
1
- (function(_0x22eeff,_0x105660){const _0x96e0ae=a216_0x328c,_0x2f2378=_0x22eeff();while(!![]){try{const _0x3ed65d=parseInt(_0x96e0ae(0x14f))/0x1*(-parseInt(_0x96e0ae(0x156))/0x2)+-parseInt(_0x96e0ae(0x159))/0x3+parseInt(_0x96e0ae(0x13b))/0x4*(parseInt(_0x96e0ae(0x160))/0x5)+parseInt(_0x96e0ae(0x163))/0x6*(parseInt(_0x96e0ae(0x138))/0x7)+parseInt(_0x96e0ae(0x144))/0x8*(parseInt(_0x96e0ae(0x14c))/0x9)+-parseInt(_0x96e0ae(0x13f))/0xa+parseInt(_0x96e0ae(0x142))/0xb*(parseInt(_0x96e0ae(0x152))/0xc);if(_0x3ed65d===_0x105660)break;else _0x2f2378['push'](_0x2f2378['shift']());}catch(_0x191210){_0x2f2378['push'](_0x2f2378['shift']());}}}(a216_0x1f4d,0x6f9ca));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x2a6c39){const _0x285ce8=a216_0x328c;return typeof _0x2a6c39===_0x285ce8(0x15b)&&_0x2a6c39[_0x285ce8(0x145)]()?_0x2a6c39[_0x285ce8(0x145)]():undefined;}function a216_0x328c(_0x15c185,_0x537a68){_0x15c185=_0x15c185-0x138;const _0x1f4d09=a216_0x1f4d();let _0x328cfe=_0x1f4d09[_0x15c185];return _0x328cfe;}function a216_0x1f4d(){const _0x3ef421=['object','prototype','defaultApp','150538TZiRZI','length','app','1045587edLokz','RISK_LEVEL','string','true','format','appcode','VERBOSE','10JGTMdF','ENV','accessKey','54tgszNd','APP','PAGE_SIZE','read','maxRisk','36981AndtQS','hasOwnProperty','env','1447260SRIIhr','apps','daily','MAX_RISK','272880hoATRw','keys','apiDir','22EpWUlI','globalConfig','8uKxAoS','trim','locale','entries','projectConfig','cookie','find','production','1932633ENJBHz','FORMAT','call','7kWIqTr','pageSize','riskLevel','2243688lXLoMk'];a216_0x1f4d=function(){return _0x3ef421;};return a216_0x1f4d();}function appProfiles(_0xdc64ea){const _0x22ca1e=a216_0x328c;return _0xdc64ea['apps']&&typeof _0xdc64ea[_0x22ca1e(0x13c)]==='object'?_0xdc64ea[_0x22ca1e(0x13c)]:{};}function resolveDefaultAppName(_0x82d552){const _0x3d2986=a216_0x328c,_0x4a0027=stringConfigValue(_0x82d552[_0x3d2986(0x155)]);if(_0x4a0027)return _0x4a0027;return Object[_0x3d2986(0x140)](appProfiles(_0x82d552))[0x0];}function resolveTopLevelAppCode(_0x58dbd2){const _0x44213a=a216_0x328c;return stringConfigValue(_0x58dbd2[_0x44213a(0x15e)])||stringConfigValue(_0x58dbd2[_0x44213a(0x158)]);}function normalizeRiskCeiling(_0x615ee9){const _0x12ad43=a216_0x328c;if(_0x615ee9===undefined||_0x615ee9===null)return undefined;if(_0x615ee9===_0x12ad43(0x166)||_0x615ee9==='write'||_0x615ee9==='high-risk-write')return _0x615ee9;return _0x12ad43(0x166);}function resolveRiskCeiling(..._0x5ab8cd){const _0x1055fa=a216_0x328c;let _0xf85946;for(const _0x5094eb of _0x5ab8cd){const _0x1868ce=normalizeRiskCeiling(_0x5094eb);_0x1868ce&&(!_0xf85946||riskLevelOrder(_0x1868ce)<riskLevelOrder(_0xf85946))&&(_0xf85946=_0x1868ce);}return _0xf85946??DEFAULT_CONFIG_VALUES[_0x1055fa(0x151)];}function configuredRiskCeilings(_0xc44f5f){const _0x3f3b7a=a216_0x328c;return[...Object[_0x3f3b7a(0x154)][_0x3f3b7a(0x139)][_0x3f3b7a(0x14e)](_0xc44f5f,_0x3f3b7a(0x167))?[_0xc44f5f[_0x3f3b7a(0x167)]]:[],...Object['prototype']['hasOwnProperty'][_0x3f3b7a(0x14e)](_0xc44f5f,_0x3f3b7a(0x151))?[_0xc44f5f['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x429889,flags:_0x40a01d,layers:_0x1be458,readEnv:_0x4f067b}){const _0x11814a=a216_0x328c,_0x1f9e5a=_0x1be458?.[_0x11814a(0x148)]??{},_0x48f659=_0x1be458?.[_0x11814a(0x143)]??{},_0x47ea31=Object[_0x11814a(0x140)](_0x1f9e5a)[_0x11814a(0x157)]>0x0,_0x6d4d81=!_0x47ea31||_0x1f9e5a['inherit']===!![],_0x47a642=_0x47ea31?resolveDefaultAppName(_0x1f9e5a):undefined,_0x40c201=_0x6d4d81?resolveDefaultAppName(_0x48f659):undefined,_0x4ff03f=stringConfigValue(_0x40a01d['app']),_0x5620e5=_0x4f067b(_0x11814a(0x164)),_0x4db114={};if(_0x429889['apps']&&typeof _0x429889['apps']==='object')for(const [_0x29d58d,_0x76f76d]of Object[_0x11814a(0x147)](_0x429889[_0x11814a(0x13c)])){_0x76f76d&&typeof _0x76f76d===_0x11814a(0x153)&&_0x76f76d[_0x11814a(0x15e)]&&(_0x4db114[_0x29d58d]=_0x76f76d);}const _0x15ef0b=_0x429889['defaultApp']||undefined,_0x517cad=Object[_0x11814a(0x140)](_0x4db114)[_0x11814a(0x157)]>0x0,_0x216159=_0x4ff03f||_0x47a642||_0x5620e5||_0x40c201||_0x15ef0b||undefined,_0x2acfd8=stringConfigValue(_0x40a01d[_0x11814a(0x15e)]),_0x62519e=_0x2acfd8?Object['entries'](_0x4db114)[_0x11814a(0x14a)](([,_0x50746a])=>_0x50746a?.[_0x11814a(0x15e)]===_0x2acfd8):undefined,_0x334718=_0x62519e?.[0x0],_0x5ac169=_0x62519e?.[0x1],_0x282987=_0x2acfd8?_0x334718:_0x216159;let _0x5a9809=_0x282987&&_0x4db114[_0x282987]?_0x4db114[_0x282987]:undefined;_0x2acfd8&&_0x5ac169&&(_0x5a9809=_0x5ac169);const _0x4103de=_0x2acfd8?_0x5ac169??_0x5a9809:_0x5a9809,_0x334b1c=!_0x4ff03f&&!_0x47a642&&_0x5620e5&&_0x282987===_0x5620e5,_0xfe9129=_0x4ff03f||(_0x334b1c?_0x5620e5:undefined)||(_0x2acfd8?_0x334718:undefined),_0x2f2913=_0x4103de?.[_0x11814a(0x15e)],_0x34e725=_0x47ea31?resolveTopLevelAppCode(_0x1f9e5a):undefined,_0x447f9=_0x6d4d81?resolveTopLevelAppCode(_0x48f659):undefined,_0xc77648=_0x4ff03f||_0x47a642?_0x2f2913:undefined,_0x34b3ea=!_0x4ff03f&&!_0x47a642?_0x2f2913:undefined,_0x240655=_0x2acfd8||_0xc77648||_0x34e725||_0x34b3ea||_0x447f9||undefined,_0x2d87a8=_0x47ea31?stringConfigValue(_0x1f9e5a['env']):undefined,_0x3e1298=_0x6d4d81?stringConfigValue(_0x48f659[_0x11814a(0x13a)]):undefined,_0x1693f7=_0x40a01d['env']||_0x4103de?.[_0x11814a(0x13a)]||_0x2d87a8||_0x4f067b(_0x11814a(0x161))||_0x3e1298||_0x429889['env']||DEFAULT_CONFIG_VALUES[_0x11814a(0x13a)],_0x29966e=_0x4103de?.[_0x11814a(0x146)]||_0x429889[_0x11814a(0x146)]||DEFAULT_CONFIG_VALUES['locale'],_0x160048=_0x4f067b('COOKIE')||_0x4103de?.[_0x11814a(0x149)]||_0x429889[_0x11814a(0x149)]||undefined,_0x35ed8d=_0x4f067b('ACCESS_KEY')||_0x4103de?.[_0x11814a(0x162)]||_0x429889[_0x11814a(0x162)]||undefined,_0x133704=_0x40a01d['format']||_0x4f067b(_0x11814a(0x14d))||_0x4103de?.[_0x11814a(0x15d)]||_0x429889[_0x11814a(0x15d)],_0x562a55=normalizeLegacyOutputFormat(_0x133704),_0x10bd1e=_0x4f067b(_0x11814a(0x165))||_0x4103de?.[_0x11814a(0x150)]||_0x429889[_0x11814a(0x150)],_0x55744e=_0x10bd1e?Number(_0x10bd1e)||undefined:undefined,_0x14f0ef=_0x1be458?[...configuredRiskCeilings(_0x1be458[_0x11814a(0x143)]),...configuredRiskCeilings(_0x1be458['projectConfig'])]:configuredRiskCeilings(_0x429889),_0x532d74=resolveRiskCeiling(..._0x14f0ef,_0x4103de?.[_0x11814a(0x151)]),_0x30d65e=resolveRiskCeiling(_0x532d74,_0x4f067b(_0x11814a(0x15a)),_0x4f067b(_0x11814a(0x13e))),_0x5966ba=_0x4f067b(_0x11814a(0x15f)),_0x202fb3=_0x5966ba==='1'||_0x5966ba===_0x11814a(0x15c),_0x479760=_0x4103de?.[_0x11814a(0x141)]||_0x429889['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2a0f51=isDaily(normalizeEnv(String(_0x1693f7)))?_0x11814a(0x13d):_0x11814a(0x14b);return{'appCode':typeof _0x240655===_0x11814a(0x15b)&&_0x240655[_0x11814a(0x145)]()?_0x240655['trim']():undefined,'env':_0x2a0f51,'locale':_0x29966e,'cookie':_0x160048,'accessKey':_0x35ed8d,'format':_0x562a55,'pageSize':_0x55744e,'riskLevel':_0x30d65e,'verbose':_0x202fb3,'apiDir':_0x479760,'apps':_0x4db114,'defaultApp':_0x15ef0b,'currentApp':_0x517cad?_0x282987:undefined,'explicitAppName':_0xfe9129};}
1
+ (function(_0x465305,_0x5dd548){const _0x341e2d=a216_0x4f5d,_0x26b004=_0x465305();while(!![]){try{const _0x938c05=-parseInt(_0x341e2d(0x6b))/0x1+parseInt(_0x341e2d(0x81))/0x2*(-parseInt(_0x341e2d(0x73))/0x3)+parseInt(_0x341e2d(0x8e))/0x4+parseInt(_0x341e2d(0x79))/0x5*(parseInt(_0x341e2d(0x7d))/0x6)+-parseInt(_0x341e2d(0x80))/0x7*(-parseInt(_0x341e2d(0x71))/0x8)+-parseInt(_0x341e2d(0x7f))/0x9*(parseInt(_0x341e2d(0x93))/0xa)+parseInt(_0x341e2d(0x6f))/0xb*(parseInt(_0x341e2d(0x6c))/0xc);if(_0x938c05===_0x5dd548)break;else _0x26b004['push'](_0x26b004['shift']());}catch(_0x567f1b){_0x26b004['push'](_0x26b004['shift']());}}}(a216_0x3a92,0x897b9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x112657){const _0x15f036=a216_0x4f5d;return typeof _0x112657===_0x15f036(0x70)&&_0x112657[_0x15f036(0x8d)]()?_0x112657['trim']():undefined;}function appProfiles(_0x16cabe){const _0x501e07=a216_0x4f5d;return _0x16cabe[_0x501e07(0x6e)]&&typeof _0x16cabe[_0x501e07(0x6e)]==='object'?_0x16cabe['apps']:{};}function a216_0x4f5d(_0x5d1ae9,_0x512119){_0x5d1ae9=_0x5d1ae9-0x65;const _0x3a9204=a216_0x3a92();let _0x4f5d13=_0x3a9204[_0x5d1ae9];return _0x4f5d13;}function resolveDefaultAppName(_0x222dde){const _0x1f8e74=a216_0x4f5d,_0x2979f8=stringConfigValue(_0x222dde[_0x1f8e74(0x6a)]);if(_0x2979f8)return _0x2979f8;const _0x1134f2=Object[_0x1f8e74(0x95)](appProfiles(_0x222dde));return _0x1134f2[_0x1f8e74(0x90)]===0x1?_0x1134f2[0x0]:undefined;}function resolveTopLevelAppCode(_0x12302d){const _0x2f7bc8=a216_0x4f5d;return stringConfigValue(_0x12302d[_0x2f7bc8(0x8c)])||stringConfigValue(_0x12302d[_0x2f7bc8(0x68)]);}function normalizeRiskCeiling(_0x14e713){const _0x35be05=a216_0x4f5d;if(_0x14e713===undefined||_0x14e713===null)return undefined;if(_0x14e713===_0x35be05(0x86)||_0x14e713===_0x35be05(0x65)||_0x14e713===_0x35be05(0x75))return _0x14e713;return _0x35be05(0x86);}function resolveRiskCeiling(..._0x5ab65e){let _0x22a341;for(const _0x2c5d43 of _0x5ab65e){const _0x1237cf=normalizeRiskCeiling(_0x2c5d43);_0x1237cf&&(!_0x22a341||riskLevelOrder(_0x1237cf)<riskLevelOrder(_0x22a341))&&(_0x22a341=_0x1237cf);}return _0x22a341??DEFAULT_CONFIG_VALUES['riskLevel'];}function configuredRiskCeilings(_0x39dea8){const _0x2db313=a216_0x4f5d;return[...Object[_0x2db313(0x96)][_0x2db313(0x87)][_0x2db313(0x94)](_0x39dea8,_0x2db313(0x66))?[_0x39dea8[_0x2db313(0x66)]]:[],...Object[_0x2db313(0x96)][_0x2db313(0x87)]['call'](_0x39dea8,_0x2db313(0x88))?[_0x39dea8['riskLevel']]:[]];}export function resolveAppConfig({raw:_0x4b9635,flags:_0x34398c,layers:_0x38726f,readEnv:_0x3317b3}){const _0x405ec7=a216_0x4f5d,_0x33097c=_0x38726f?.[_0x405ec7(0x91)]??{},_0x20e1a8=_0x38726f?.['globalConfig']??{},_0x583ee0=!!_0x38726f?.[_0x405ec7(0x98)]||Object[_0x405ec7(0x95)](_0x33097c)[_0x405ec7(0x90)]>0x0,_0x4b797b=!_0x583ee0,_0x3b64b8=_0x583ee0?resolveDefaultAppName(_0x33097c):undefined,_0x5d69ca=_0x4b797b?resolveDefaultAppName(_0x20e1a8):undefined,_0x4110c1=stringConfigValue(_0x34398c[_0x405ec7(0x68)]),_0x55af96=_0x3317b3(_0x405ec7(0x6d)),_0x345755={};if(_0x4b9635[_0x405ec7(0x6e)]&&typeof _0x4b9635[_0x405ec7(0x6e)]===_0x405ec7(0x92))for(const [_0x404b22,_0x5a9d86]of Object[_0x405ec7(0x7a)](_0x4b9635[_0x405ec7(0x6e)])){_0x5a9d86&&typeof _0x5a9d86===_0x405ec7(0x92)&&_0x5a9d86[_0x405ec7(0x8c)]&&(_0x345755[_0x404b22]=_0x5a9d86);}const _0x490834=_0x3b64b8||_0x5d69ca||resolveDefaultAppName(_0x4b9635),_0x5d5053=Object[_0x405ec7(0x95)](_0x345755)[_0x405ec7(0x90)]>0x0,_0x40b12b=_0x4110c1||_0x3b64b8||_0x55af96||_0x5d69ca||_0x490834||undefined,_0x1dd0b3=stringConfigValue(_0x34398c['appcode']),_0x54046e=_0x1dd0b3?Object[_0x405ec7(0x7a)](_0x345755)[_0x405ec7(0x84)](([,_0x3de445])=>_0x3de445?.[_0x405ec7(0x8c)]===_0x1dd0b3):undefined,_0x439767=_0x54046e?.[0x0],_0x2c0832=_0x54046e?.[0x1],_0x26cd87=_0x1dd0b3?_0x439767:_0x40b12b;let _0x1ecf48=_0x26cd87&&_0x345755[_0x26cd87]?_0x345755[_0x26cd87]:undefined;_0x1dd0b3&&_0x2c0832&&(_0x1ecf48=_0x2c0832);const _0x5b6cd1=_0x1dd0b3?_0x2c0832??_0x1ecf48:_0x1ecf48,_0x466ca1=!_0x4110c1&&!_0x3b64b8&&_0x55af96&&_0x26cd87===_0x55af96,_0x540d81=_0x4110c1||(_0x466ca1?_0x55af96:undefined)||(_0x1dd0b3?_0x439767:undefined),_0x3f2265=_0x5b6cd1?.[_0x405ec7(0x8c)],_0x57fa1d=_0x583ee0?resolveTopLevelAppCode(_0x33097c):undefined,_0x128c66=_0x4b797b?resolveTopLevelAppCode(_0x20e1a8):undefined,_0x1371f9=_0x4110c1||_0x3b64b8?_0x3f2265:undefined,_0x41b3b1=!_0x4110c1&&!_0x3b64b8?_0x3f2265:undefined,_0x36670f=_0x1dd0b3||_0x1371f9||_0x57fa1d||_0x41b3b1||_0x128c66||undefined,_0x405827=_0x583ee0?stringConfigValue(_0x33097c[_0x405ec7(0x7c)]):undefined,_0x57f4aa=_0x4b797b?stringConfigValue(_0x20e1a8[_0x405ec7(0x7c)]):undefined,_0x2e6ea5=_0x34398c[_0x405ec7(0x7c)]||_0x5b6cd1?.[_0x405ec7(0x7c)]||_0x405827||_0x3317b3(_0x405ec7(0x78))||_0x57f4aa||_0x4b9635['env']||DEFAULT_CONFIG_VALUES[_0x405ec7(0x7c)],_0x7ef87f=_0x5b6cd1?.[_0x405ec7(0x83)]||_0x4b9635[_0x405ec7(0x83)]||DEFAULT_CONFIG_VALUES['locale'],_0x160ed9=_0x3317b3(_0x405ec7(0x76))||_0x5b6cd1?.[_0x405ec7(0x8a)]||_0x4b9635[_0x405ec7(0x8a)]||undefined,_0x28cd4a=_0x3317b3(_0x405ec7(0x97))||_0x5b6cd1?.[_0x405ec7(0x8f)]||_0x4b9635['accessKey']||undefined,_0x5730a9=_0x34398c['format']||_0x3317b3(_0x405ec7(0x72))||_0x5b6cd1?.['format']||_0x4b9635[_0x405ec7(0x7b)],_0x3c7f7c=normalizeLegacyOutputFormat(_0x5730a9),_0x2b62fc=_0x3317b3(_0x405ec7(0x7e))||_0x5b6cd1?.[_0x405ec7(0x89)]||_0x4b9635[_0x405ec7(0x89)],_0x1c3e09=_0x2b62fc?Number(_0x2b62fc)||undefined:undefined,_0x5ccdd7=_0x38726f?[...configuredRiskCeilings(_0x38726f[_0x405ec7(0x74)]),...configuredRiskCeilings(_0x38726f['projectConfig'])]:configuredRiskCeilings(_0x4b9635),_0x54292e=resolveRiskCeiling(..._0x5ccdd7,_0x5b6cd1?.[_0x405ec7(0x88)]),_0x5ca271=resolveRiskCeiling(_0x54292e,_0x3317b3(_0x405ec7(0x8b)),_0x3317b3(_0x405ec7(0x69))),_0x23306a=_0x3317b3(_0x405ec7(0x85)),_0x51491f=_0x23306a==='1'||_0x23306a===_0x405ec7(0x82),_0x122026=_0x5b6cd1?.[_0x405ec7(0x67)]||_0x4b9635[_0x405ec7(0x67)]||DEFAULT_CONFIG_VALUES[_0x405ec7(0x67)],_0x3708da=isDaily(normalizeEnv(String(_0x2e6ea5)))?_0x405ec7(0x77):'production';return{'appCode':typeof _0x36670f==='string'&&_0x36670f[_0x405ec7(0x8d)]()?_0x36670f[_0x405ec7(0x8d)]():undefined,'env':_0x3708da,'locale':_0x7ef87f,'cookie':_0x160ed9,'accessKey':_0x28cd4a,'format':_0x3c7f7c,'pageSize':_0x1c3e09,'riskLevel':_0x5ca271,'verbose':_0x51491f,'apiDir':_0x122026,'apps':_0x345755,'defaultApp':_0x490834,'currentApp':_0x5d5053?_0x26cd87:undefined,'explicitAppName':_0x540d81};}function a216_0x3a92(){const _0x12484b=['MAX_RISK','defaultApp','422831TfckWn','5075724YKprSQ','APP','apps','11cCgAMU','string','3032UjwuBI','FORMAT','1303053CeCxfr','globalConfig','high-risk-write','COOKIE','daily','ENV','3818035yucFsD','entries','format','env','6pTojzk','PAGE_SIZE','4920219gYZSAx','686ylsoNa','2akDRtB','true','locale','find','VERBOSE','read','hasOwnProperty','riskLevel','pageSize','cookie','RISK_LEVEL','appcode','trim','2973104EqUJfg','accessKey','length','projectConfig','object','10WFcriC','call','keys','prototype','ACCESS_KEY','projectPath','write','maxRisk','apiDir','app'];a216_0x3a92=function(){return _0x12484b;};return a216_0x3a92();}
@@ -1 +1 @@
1
- (function(_0x320ee4,_0x12b56c){const _0x2361dc=a217_0x40cf,_0x3a1fa6=_0x320ee4();while(!![]){try{const _0x4e7cdf=parseInt(_0x2361dc(0x1c7))/0x1*(parseInt(_0x2361dc(0x1c2))/0x2)+-parseInt(_0x2361dc(0x1c3))/0x3+parseInt(_0x2361dc(0x1c4))/0x4+-parseInt(_0x2361dc(0x1cb))/0x5+-parseInt(_0x2361dc(0x1c6))/0x6*(parseInt(_0x2361dc(0x1cc))/0x7)+parseInt(_0x2361dc(0x1cd))/0x8+parseInt(_0x2361dc(0x1c9))/0x9*(parseInt(_0x2361dc(0x1c5))/0xa);if(_0x4e7cdf===_0x12b56c)break;else _0x3a1fa6['push'](_0x3a1fa6['shift']());}catch(_0x1182c0){_0x3a1fa6['push'](_0x3a1fa6['shift']());}}}(a217_0x34c9,0x625b7));function a217_0x40cf(_0x2c44ec,_0x189c02){_0x2c44ec=_0x2c44ec-0x1c2;const _0x34c990=a217_0x34c9();let _0x40cf10=_0x34c990[_0x2c44ec];return _0x40cf10;}function a217_0x34c9(){const _0x465ae3=['4090DTYnJT','3126HvtjQf','1VbDubo','../auth/get-cookie.js','10737dfZQcv','authRequired','2801095DOdPTi','7364sJHblP','4489792KPxWbd','764806gipkOj','1674645QXWEdc','2551332ZUSzKT'];a217_0x34c9=function(){return _0x465ae3;};return a217_0x34c9();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x3e6bb1){const _0x43bb06=a217_0x40cf,{getCookie:_0x98b8d3}=await import(_0x43bb06(0x1c8)),_0x50ab76=_0x3e6bb1['cookie']||_0x98b8d3(),_0x2c2c4a=_0x50ab76?await getIsSessionValid():![];return{'cookie':_0x50ab76,'isLoggedIn':_0x2c2c4a,async 'getOrLogin'(){const _0x425eb0=_0x43bb06;if(_0x50ab76&&_0x2c2c4a)return _0x50ab76;throw CliErrors[_0x425eb0(0x1ca)]();}};}
1
+ (function(_0x33795d,_0x4f4319){const _0x55bc55=a217_0x47bd,_0x405745=_0x33795d();while(!![]){try{const _0x175d5f=parseInt(_0x55bc55(0x1b9))/0x1*(-parseInt(_0x55bc55(0x1b7))/0x2)+-parseInt(_0x55bc55(0x1b5))/0x3*(parseInt(_0x55bc55(0x1bb))/0x4)+-parseInt(_0x55bc55(0x1bd))/0x5+parseInt(_0x55bc55(0x1b6))/0x6+-parseInt(_0x55bc55(0x1bf))/0x7+-parseInt(_0x55bc55(0x1be))/0x8*(-parseInt(_0x55bc55(0x1b8))/0x9)+parseInt(_0x55bc55(0x1b3))/0xa;if(_0x175d5f===_0x4f4319)break;else _0x405745['push'](_0x405745['shift']());}catch(_0x5560df){_0x405745['push'](_0x405745['shift']());}}}(a217_0x3f28,0x7f4e9));function a217_0x3f28(){const _0x4f6b68=['148696EyOwCo','../auth/get-cookie.js','4657230EnDYsO','6653776fvMtgf','5255992pYoosC','18392510UmLImG','authRequired','24cXpbfx','714936TENPaK','2oqKUvq','9OAvDcH','288986lQCJoT','cookie'];a217_0x3f28=function(){return _0x4f6b68;};return a217_0x3f28();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a217_0x47bd(_0x412dff,_0x54cf45){_0x412dff=_0x412dff-0x1b3;const _0x3f28e0=a217_0x3f28();let _0x47bdd7=_0x3f28e0[_0x412dff];return _0x47bdd7;}export async function buildAuth(_0xe0ea3d){const _0x2e3348=a217_0x47bd,{getCookie:_0x1ba485}=await import(_0x2e3348(0x1bc)),_0x52d7e2=_0xe0ea3d[_0x2e3348(0x1ba)]||_0x1ba485(),_0x3dde82=_0x52d7e2?await getIsSessionValid():![];return{'cookie':_0x52d7e2,'isLoggedIn':_0x3dde82,async 'getOrLogin'(){const _0x23514a=_0x2e3348;if(_0x52d7e2&&_0x3dde82)return _0x52d7e2;throw CliErrors[_0x23514a(0x1b4)]();}};}
@@ -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;