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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) 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.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.d.ts +107 -0
  68. package/lib/commands/dataset/field-restore.js +1 -0
  69. package/lib/commands/dataset/field-update.js +1 -1
  70. package/lib/commands/dataset/generate.js +1 -1
  71. package/lib/commands/dataset/index.js +1 -1
  72. package/lib/commands/dataset/list.js +1 -1
  73. package/lib/commands/dataset/operations.js +1 -1
  74. package/lib/commands/dataset/relation-audit.js +1 -1
  75. package/lib/commands/dataset/relation-create.js +1 -1
  76. package/lib/commands/dataset/relation-delete.js +1 -1
  77. package/lib/commands/dataset/relation-shared.js +1 -1
  78. package/lib/commands/dataset/relation-update.js +1 -1
  79. package/lib/commands/dataset/relations.js +1 -1
  80. package/lib/commands/dataset/rename.js +1 -1
  81. package/lib/commands/dataset/restore.js +1 -1
  82. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/auto-sync.d.ts +28 -0
  103. package/lib/commands/deployment/auto-sync.js +1 -0
  104. package/lib/commands/deployment/index.d.ts +2 -0
  105. package/lib/commands/deployment/index.js +1 -0
  106. package/lib/commands/deployment/sync.d.ts +2 -0
  107. package/lib/commands/deployment/sync.js +1 -0
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/issue/index.js +1 -1
  111. package/lib/commands/issue/nudge.js +1 -1
  112. package/lib/commands/issue/report.js +1 -1
  113. package/lib/commands/issue/shared.js +1 -1
  114. package/lib/commands/kb/create.js +1 -1
  115. package/lib/commands/kb/delete.js +1 -1
  116. package/lib/commands/kb/detail.js +1 -1
  117. package/lib/commands/kb/index.js +1 -1
  118. package/lib/commands/kb/list.js +1 -1
  119. package/lib/commands/kb/search.js +1 -1
  120. package/lib/commands/kb/shared.js +1 -1
  121. package/lib/commands/kb/update.js +1 -1
  122. package/lib/commands/logs/index.js +1 -1
  123. package/lib/commands/menu/asset-update.js +1 -1
  124. package/lib/commands/menu/delete.js +1 -1
  125. package/lib/commands/menu/external-link-create.js +1 -1
  126. package/lib/commands/menu/external-link-update.js +1 -1
  127. package/lib/commands/menu/group-create.js +1 -1
  128. package/lib/commands/menu/group-update.js +1 -1
  129. package/lib/commands/menu/index.js +1 -1
  130. package/lib/commands/menu/list.js +1 -1
  131. package/lib/commands/menu/move.js +1 -1
  132. package/lib/commands/menu/regroup-start.js +1 -1
  133. package/lib/commands/menu/rename.js +1 -1
  134. package/lib/commands/menu/shared/compare-table.js +1 -1
  135. package/lib/commands/menu/shared/delete-plan.js +1 -1
  136. package/lib/commands/menu/shared/facts.js +1 -1
  137. package/lib/commands/menu/shared/index.js +1 -1
  138. package/lib/commands/menu/shared/inquirer.js +1 -1
  139. package/lib/commands/menu/shared/local-pages.js +1 -1
  140. package/lib/commands/menu/shared/logic.js +1 -1
  141. package/lib/commands/menu/shared/mutations.js +1 -1
  142. package/lib/commands/menu/shared/service.js +1 -1
  143. package/lib/commands/menu/shared/sync-core.js +1 -1
  144. package/lib/commands/menu/shared/update-core.js +1 -1
  145. package/lib/commands/menu/shared/valid-url.js +1 -1
  146. package/lib/commands/menu/sync.js +1 -1
  147. package/lib/commands/menu/visibility-update.js +1 -1
  148. package/lib/commands/notification/config-create.js +1 -1
  149. package/lib/commands/notification/config-delete.js +1 -1
  150. package/lib/commands/notification/config-list.js +1 -1
  151. package/lib/commands/notification/config-update.js +1 -1
  152. package/lib/commands/notification/index.js +1 -1
  153. package/lib/commands/notification/shared.js +1 -1
  154. package/lib/commands/ocr/index.js +1 -1
  155. package/lib/commands/page/create.js +1 -1
  156. package/lib/commands/page/custom/detail.js +1 -1
  157. package/lib/commands/page/custom/list.js +1 -1
  158. package/lib/commands/page/custom/publish.js +1 -1
  159. package/lib/commands/page/custom/shared.js +1 -1
  160. package/lib/commands/page/custom/syntax.js +1 -1
  161. package/lib/commands/page/custom/template.js +1 -1
  162. package/lib/commands/page/custom/update.js +1 -1
  163. package/lib/commands/page/data-list-status.js +1 -1
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.js +1 -1
  172. package/lib/commands/page/sync.js +1 -1
  173. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  174. package/lib/commands/project/create/format-elapsed.js +1 -1
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.js +1 -1
  177. package/lib/commands/project/create/project-name.js +1 -1
  178. package/lib/commands/project/create/project-template-archive.js +1 -1
  179. package/lib/commands/project/create/project-template-path.js +1 -1
  180. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  181. package/lib/commands/project/create/use-format-code.js +1 -1
  182. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/deployment-sync.d.ts +10 -0
  219. package/lib/config/deployment-sync.js +1 -0
  220. package/lib/config/domain-config.d.ts +1 -1
  221. package/lib/config/domain-config.js +1 -1
  222. package/lib/config/project-routing.d.ts +30 -0
  223. package/lib/config/project-routing.js +1 -0
  224. package/lib/config/schema.d.ts +1 -1
  225. package/lib/config/schema.js +1 -1
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.d.ts +7 -2
  230. package/lib/constant/domain.js +1 -1
  231. package/lib/constant/env.js +1 -1
  232. package/lib/constant/output.js +1 -1
  233. package/lib/constant/paths.js +1 -1
  234. package/lib/constant/region.d.ts +2 -2
  235. package/lib/constant/region.js +1 -1
  236. package/lib/constant/risk.js +1 -1
  237. package/lib/constant/routing-profile.d.ts +115 -0
  238. package/lib/constant/routing-profile.js +1 -0
  239. package/lib/context/app-resolver.d.ts +2 -0
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +35 -0
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/page/file-system.js +1 -1
  254. package/lib/core/page/hash.js +1 -1
  255. package/lib/core/page/lock.js +1 -1
  256. package/lib/core/sql-index-auditor.js +1 -1
  257. package/lib/core/sql-sync/config.js +1 -1
  258. package/lib/core/sql-sync/file-system.js +1 -1
  259. package/lib/core/sql-sync/hash.js +1 -1
  260. package/lib/core/sql-sync/lock.js +1 -1
  261. package/lib/core/sql-sync/utils.js +1 -1
  262. package/lib/core/sql-validator.js +1 -1
  263. package/lib/errors.js +1 -1
  264. package/lib/framework/build-all-flags.js +1 -1
  265. package/lib/framework/error-output.js +1 -1
  266. package/lib/framework/explicit-yes.js +1 -1
  267. package/lib/framework/flags.js +1 -1
  268. package/lib/framework/help.js +1 -1
  269. package/lib/framework/index.js +1 -1
  270. package/lib/framework/output.js +1 -1
  271. package/lib/framework/response.js +1 -1
  272. package/lib/framework/runner-alias.js +1 -1
  273. package/lib/framework/runner.js +1 -1
  274. package/lib/framework/schema-export.js +1 -1
  275. package/lib/framework/types.d.ts +4 -0
  276. package/lib/framework/types.js +1 -1
  277. package/lib/generated/build-info.d.ts +4 -4
  278. package/lib/generated/build-info.js +1 -1
  279. package/lib/help.js +1 -1
  280. package/lib/postinstall.js +1 -1
  281. package/lib/runtime/confirmation.js +1 -1
  282. package/lib/runtime/event.js +1 -1
  283. package/lib/runtime/index.js +1 -1
  284. package/lib/runtime/queue.js +1 -1
  285. package/lib/runtime/resolve.js +1 -1
  286. package/lib/skills/builtin-skill.js +1 -1
  287. package/lib/skills/main.js +1 -1
  288. package/lib/skills/npx-skills-add.js +1 -1
  289. package/lib/skills/skill-presence.js +1 -1
  290. package/lib/telemetry/cli-command-trace.js +1 -1
  291. package/lib/telemetry/cli-help-trace.js +1 -1
  292. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  293. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  294. package/lib/telemetry/send-cli-trace-log.js +1 -1
  295. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  296. package/lib/utils/ai_config.js +1 -1
  297. package/lib/utils/apply-jq-filter.js +1 -1
  298. package/lib/utils/cdn-config.js +1 -1
  299. package/lib/utils/check-sdk-version.js +1 -1
  300. package/lib/utils/cli-version-check.js +1 -1
  301. package/lib/utils/cli-version-policy.js +1 -1
  302. package/lib/utils/config.js +1 -1
  303. package/lib/utils/entity-with-id.js +1 -1
  304. package/lib/utils/file-utils.js +1 -1
  305. package/lib/utils/guides-cdn.js +1 -1
  306. package/lib/utils/http-client.js +1 -1
  307. package/lib/utils/is-non-interactive.js +1 -1
  308. package/lib/utils/logger.js +1 -1
  309. package/lib/utils/params.js +1 -1
  310. package/lib/utils/platform.js +1 -1
  311. package/lib/utils/sleep.js +1 -1
  312. package/lib/utils/template-replacer.js +1 -1
  313. package/lib/utils/update-notice.js +1 -1
  314. package/lib/utils/version.js +1 -1
  315. package/lib/utils/with-active-cookie.js +1 -1
  316. package/lib/utils/write-cli-side-channel.js +1 -1
  317. package/package.json +1 -2
  318. package/skills/rabetbase/SKILL.md +20 -9
  319. package/skills/rabetbase/guides/frontend-development.md +2 -0
  320. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  321. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  322. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  323. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  324. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  325. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  327. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  328. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  329. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  330. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  331. package/skills/rabetbase.manifest.json +6 -3
  332. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- const a214_0x505b36=a214_0x3f9d;function a214_0x18cb(){const _0x13f65d=['13feaZcH','11wwaylE','40LGceYV','5851530yRwQhJ','14JNuzwZ','24994kxjdLk','2471499fGptKm','3625YSJsjl','84200pFZDhB','2DHckpV','4614qJsiMG','123117aIrHkQ','./src/api','8167812Fksbmy'];a214_0x18cb=function(){return _0x13f65d;};return a214_0x18cb();}(function(_0x34ca82,_0x144821){const _0x5e3245=a214_0x3f9d,_0x4942ec=_0x34ca82();while(!![]){try{const _0x2913c4=-parseInt(_0x5e3245(0xba))/0x1*(parseInt(_0x5e3245(0xb6))/0x2)+parseInt(_0x5e3245(0xbc))/0x3*(-parseInt(_0x5e3245(0xc1))/0x4)+-parseInt(_0x5e3245(0xb8))/0x5*(-parseInt(_0x5e3245(0xbb))/0x6)+-parseInt(_0x5e3245(0xb5))/0x7*(-parseInt(_0x5e3245(0xb9))/0x8)+parseInt(_0x5e3245(0xb7))/0x9+-parseInt(_0x5e3245(0xb4))/0xa*(-parseInt(_0x5e3245(0xc0))/0xb)+parseInt(_0x5e3245(0xbe))/0xc*(-parseInt(_0x5e3245(0xbf))/0xd);if(_0x2913c4===_0x144821)break;else _0x4942ec['push'](_0x4942ec['shift']());}catch(_0x400200){_0x4942ec['push'](_0x4942ec['shift']());}}}(a214_0x18cb,0x4eb00));function a214_0x3f9d(_0x266ade,_0x58effe){_0x266ade=_0x266ade-0xb4;const _0x18cb1e=a214_0x18cb();let _0x3f9d1c=_0x18cb1e[_0x266ade];return _0x3f9d1c;}export const DEFAULT_API_DIR=a214_0x505b36(0xbd);
1
+ function a221_0x4a2a(_0x27416e,_0x157e4e){_0x27416e=_0x27416e-0x1a2;const _0x56aaef=a221_0x56aa();let _0x4a2afd=_0x56aaef[_0x27416e];return _0x4a2afd;}function a221_0x56aa(){const _0x15a965=['42MTTxqK','1972720EFZuGd','4442VcpLps','696ZWIaqL','46486SMBqZE','17409xabKRz','./src/api','6214113BizTAp','8zQEYVI','783850UaURfj','5980TJnMXB','574389BFeyFZ'];a221_0x56aa=function(){return _0x15a965;};return a221_0x56aa();}const a221_0xe52b24=a221_0x4a2a;(function(_0x337816,_0xca2670){const _0x286e06=a221_0x4a2a,_0x2fd14b=_0x337816();while(!![]){try{const _0x45d951=-parseInt(_0x286e06(0x1a4))/0x1*(parseInt(_0x286e06(0x1a6))/0x2)+-parseInt(_0x286e06(0x1a3))/0x3+-parseInt(_0x286e06(0x1a5))/0x4+-parseInt(_0x286e06(0x1ad))/0x5+parseInt(_0x286e06(0x1a7))/0x6*(-parseInt(_0x286e06(0x1a9))/0x7)+-parseInt(_0x286e06(0x1ac))/0x8*(parseInt(_0x286e06(0x1ab))/0x9)+-parseInt(_0x286e06(0x1a2))/0xa*(-parseInt(_0x286e06(0x1a8))/0xb);if(_0x45d951===_0xca2670)break;else _0x2fd14b['push'](_0x2fd14b['shift']());}catch(_0xbe7b0a){_0x2fd14b['push'](_0x2fd14b['shift']());}}}(a221_0x56aa,0x95c80));export const DEFAULT_API_DIR=a221_0xe52b24(0x1aa);
@@ -4,6 +4,6 @@ export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
4
4
  export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
5
5
  export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
6
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. */
7
+ export declare function isEnabledLovrabetRegion(value: unknown): value is LovrabetRegion;
8
+ /** Keeps legacy long names readable; new writes use canonical short values. */
9
9
  export declare function normalizeLovrabetRegion(value: unknown): LovrabetRegion;
@@ -1 +1 @@
1
- function a215_0x6d4d(_0x79ebf3,_0x3089ee){_0x79ebf3=_0x79ebf3-0x6a;const _0x1c2c3c=a215_0x1c2c();let _0x6d4dda=_0x1c2c3c[_0x79ebf3];return _0x6d4dda;}const a215_0x5ea670=a215_0x6d4d;(function(_0x1d1ad7,_0xb4f39c){const _0x47dd48=a215_0x6d4d,_0x56e4c5=_0x1d1ad7();while(!![]){try{const _0x5b2295=parseInt(_0x47dd48(0x6b))/0x1*(-parseInt(_0x47dd48(0x74))/0x2)+-parseInt(_0x47dd48(0x79))/0x3*(-parseInt(_0x47dd48(0x71))/0x4)+parseInt(_0x47dd48(0x6f))/0x5*(parseInt(_0x47dd48(0x73))/0x6)+parseInt(_0x47dd48(0x78))/0x7+parseInt(_0x47dd48(0x70))/0x8+parseInt(_0x47dd48(0x77))/0x9*(-parseInt(_0x47dd48(0x6d))/0xa)+parseInt(_0x47dd48(0x7a))/0xb*(-parseInt(_0x47dd48(0x6e))/0xc);if(_0x5b2295===_0xb4f39c)break;else _0x56e4c5['push'](_0x56e4c5['shift']());}catch(_0x1380b6){_0x56e4c5['push'](_0x56e4c5['shift']());}}}(a215_0x1c2c,0x5152c));export const LOVRABET_REGION_VALUES=['cn','id',a215_0x5ea670(0x6c)];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x1b5f17){return typeof _0x1b5f17==='string'&&LOVRABET_REGION_VALUES['includes'](_0x1b5f17);}export function isEnabledLovrabetRegion(_0x416b4c){const _0x5ae7bc=a215_0x5ea670;return typeof _0x416b4c===_0x5ae7bc(0x75)&&ENABLED_LOVRABET_REGION_VALUES[_0x5ae7bc(0x6a)](_0x416b4c);}export function normalizeLovrabetRegion(_0x355c2a){const _0x5a011c=a215_0x5ea670;if(_0x355c2a===_0x5a011c(0x72))return'cn';if(_0x355c2a===_0x5a011c(0x76))return'id';return isLovrabetRegion(_0x355c2a)?_0x355c2a:DEFAULT_LOVRABET_REGION;}function a215_0x1c2c(){const _0x11f495=['includes','13iIxqhV','global','2620rUsSop','179736kWVthq','635kmEDZF','1216240fGspgb','478444mSXWFv','china','6288RFCSqW','31478rvsruV','string','indonesia','3933SNkfEd','1941940VJXyly','3gQpXuQ','22tjgDaa'];a215_0x1c2c=function(){return _0x11f495;};return a215_0x1c2c();}
1
+ (function(_0x41eda2,_0x192991){const _0x2bbad2=a222_0x2e56,_0x2f3954=_0x41eda2();while(!![]){try{const _0xfb15e4=-parseInt(_0x2bbad2(0x1fc))/0x1+parseInt(_0x2bbad2(0x1f7))/0x2*(parseInt(_0x2bbad2(0x1fa))/0x3)+-parseInt(_0x2bbad2(0x1fb))/0x4*(-parseInt(_0x2bbad2(0x1fe))/0x5)+parseInt(_0x2bbad2(0x1f5))/0x6+parseInt(_0x2bbad2(0x1fd))/0x7+-parseInt(_0x2bbad2(0x1f2))/0x8+-parseInt(_0x2bbad2(0x1f3))/0x9;if(_0xfb15e4===_0x192991)break;else _0x2f3954['push'](_0x2f3954['shift']());}catch(_0x29ddb2){_0x2f3954['push'](_0x2f3954['shift']());}}}(a222_0x35bd,0x62d48));export const LOVRABET_REGION_VALUES=['cn','id','global'];export const ENABLED_LOVRABET_REGION_VALUES=['cn','id'];export const DEFAULT_LOVRABET_REGION='cn';export function isLovrabetRegion(_0x5beaf9){const _0x5b9e34=a222_0x2e56;return typeof _0x5beaf9===_0x5b9e34(0x1f8)&&LOVRABET_REGION_VALUES['includes'](_0x5beaf9);}export function isEnabledLovrabetRegion(_0x6ae13){const _0x235d9a=a222_0x2e56;return typeof _0x6ae13===_0x235d9a(0x1f8)&&ENABLED_LOVRABET_REGION_VALUES[_0x235d9a(0x1f4)](_0x6ae13);}function a222_0x2e56(_0x21449a,_0x50755a){_0x21449a=_0x21449a-0x1f2;const _0x35bd31=a222_0x35bd();let _0x2e56bf=_0x35bd31[_0x21449a];return _0x2e56bf;}export function normalizeLovrabetRegion(_0x25a6ec){const _0x22a461=a222_0x2e56;if(_0x25a6ec===_0x22a461(0x1f9))return'cn';if(_0x25a6ec===_0x22a461(0x1f6))return'id';return isLovrabetRegion(_0x25a6ec)?_0x25a6ec:DEFAULT_LOVRABET_REGION;}function a222_0x35bd(){const _0xe1d21c=['1698208VJlyYX','322940NAVkdL','5531862eCwoPZ','5PPyVlX','4292552BAezZk','7947099LyGWet','includes','3298044UGbTET','indonesia','2hKafuA','string','china','1148508mJgwct'];a222_0x35bd=function(){return _0xe1d21c;};return a222_0x35bd();}
@@ -1 +1 @@
1
- const a216_0x50fdb9=a216_0x34f3;(function(_0xbeedc9,_0x133fb8){const _0x438827=a216_0x34f3,_0x53b935=_0xbeedc9();while(!![]){try{const _0x348385=parseInt(_0x438827(0x19d))/0x1+-parseInt(_0x438827(0x19e))/0x2+parseInt(_0x438827(0x19f))/0x3+parseInt(_0x438827(0x19c))/0x4*(-parseInt(_0x438827(0x194))/0x5)+-parseInt(_0x438827(0x198))/0x6+parseInt(_0x438827(0x195))/0x7+parseInt(_0x438827(0x197))/0x8*(-parseInt(_0x438827(0x196))/0x9);if(_0x348385===_0x133fb8)break;else _0x53b935['push'](_0x53b935['shift']());}catch(_0x49249a){_0x53b935['push'](_0x53b935['shift']());}}}(a216_0x454b,0x5ac57));function a216_0x34f3(_0x368518,_0x577336){_0x368518=_0x368518-0x194;const _0x454b65=a216_0x454b();let _0x34f38e=_0x454b65[_0x368518];return _0x34f38e;}export const RISK_LEVEL_VALUES=[a216_0x50fdb9(0x19a),a216_0x50fdb9(0x19b),a216_0x50fdb9(0x199)];function a216_0x454b(){const _0x16de83=['3580360DJdUJU','1577160JGatwN','8XJuKHh','455532ZYjNoE','high-risk-write','read','write','4qoAqYx','379728BISQfA','202736eeDQNE','1170594mKutMR','2785385iBhbJC'];a216_0x454b=function(){return _0x16de83;};return a216_0x454b();}
1
+ const a223_0x2ae6a1=a223_0x36b8;(function(_0x3273cb,_0x560556){const _0x443f94=a223_0x36b8,_0x351253=_0x3273cb();while(!![]){try{const _0x584f8e=-parseInt(_0x443f94(0x1d6))/0x1+parseInt(_0x443f94(0x1d5))/0x2*(-parseInt(_0x443f94(0x1d8))/0x3)+parseInt(_0x443f94(0x1d7))/0x4*(-parseInt(_0x443f94(0x1d3))/0x5)+parseInt(_0x443f94(0x1d1))/0x6+parseInt(_0x443f94(0x1db))/0x7+parseInt(_0x443f94(0x1d9))/0x8*(-parseInt(_0x443f94(0x1dd))/0x9)+parseInt(_0x443f94(0x1d4))/0xa;if(_0x584f8e===_0x560556)break;else _0x351253['push'](_0x351253['shift']());}catch(_0x16065a){_0x351253['push'](_0x351253['shift']());}}}(a223_0xc519,0xf297f));function a223_0x36b8(_0x2704a4,_0x2556bd){_0x2704a4=_0x2704a4-0x1d1;const _0xc519d3=a223_0xc519();let _0x36b8fd=_0xc519d3[_0x2704a4];return _0x36b8fd;}function a223_0xc519(){const _0x5daafb=['38446350LhBsmV','2NhRkUg','971496jsKhff','3784892sqDfqA','3233082YPYWmm','640dyhsBa','write','1735335vGLtye','read','26739pDWRQI','805296Tsinjk','high-risk-write','5JpIfxx'];a223_0xc519=function(){return _0x5daafb;};return a223_0xc519();}export const RISK_LEVEL_VALUES=[a223_0x2ae6a1(0x1dc),a223_0x2ae6a1(0x1da),a223_0x2ae6a1(0x1d2)];
@@ -0,0 +1,115 @@
1
+ import type { LovrabetRegion } from "../constant/region.js";
2
+ export interface LovrabetServiceDomains {
3
+ user: string;
4
+ api: string;
5
+ runtime: string;
6
+ skill: string;
7
+ kb: string;
8
+ app: string;
9
+ }
10
+ export interface OfficialRoutingProfile {
11
+ label: string;
12
+ serviceDomains: {
13
+ primary: LovrabetServiceDomains;
14
+ preview: LovrabetServiceDomains;
15
+ };
16
+ assets: {
17
+ strategy: "cdn";
18
+ origin: string;
19
+ };
20
+ local: {
21
+ origin: string;
22
+ certificateUrl: string;
23
+ };
24
+ }
25
+ /** Single source of truth for every official Lovrabet routing profile. */
26
+ export declare const OFFICIAL_ROUTING_PROFILES: {
27
+ readonly cn: {
28
+ readonly label: "Mainland China";
29
+ readonly serviceDomains: {
30
+ readonly primary: {
31
+ readonly user: "https://user.lovrabet.com";
32
+ readonly api: "https://api.lovrabet.com";
33
+ readonly runtime: "https://runtime.lovrabet.com";
34
+ readonly skill: "https://skills.lovrabet.com";
35
+ readonly kb: "https://api.lovrabet.com";
36
+ readonly app: "https://app.lovrabet.com";
37
+ };
38
+ readonly preview: {
39
+ readonly user: "https://user-daily.lovrabet.com";
40
+ readonly api: "https://daily-api.lovrabet.com";
41
+ readonly runtime: "https://daily-runtime.lovrabet.com";
42
+ readonly skill: "https://skills-daily.lovrabet.com";
43
+ readonly kb: "https://daily-api.lovrabet.com";
44
+ readonly app: "https://daily.lovrabet.com";
45
+ };
46
+ };
47
+ readonly assets: {
48
+ readonly strategy: "cdn";
49
+ readonly origin: "https://g.alicdn.com";
50
+ };
51
+ readonly local: {
52
+ readonly origin: "https://dev.lovrabet.com";
53
+ readonly certificateUrl: "https://g.lovrabet.com/cert/lovrabet-dev.json";
54
+ };
55
+ };
56
+ readonly id: {
57
+ readonly label: "Indonesia";
58
+ readonly serviceDomains: {
59
+ readonly primary: {
60
+ readonly user: "https://user.lovrabet.id";
61
+ readonly api: "https://api.lovrabet.id";
62
+ readonly runtime: "https://runtime.lovrabet.id";
63
+ readonly skill: "https://skills.lovrabet.id";
64
+ readonly kb: "https://api.lovrabet.id";
65
+ readonly app: "https://app.lovrabet.id";
66
+ };
67
+ readonly preview: {
68
+ readonly user: "https://user-daily.lovrabet.id";
69
+ readonly api: "https://daily-api.lovrabet.id";
70
+ readonly runtime: "https://daily-runtime.lovrabet.id";
71
+ readonly skill: "https://skills-daily.lovrabet.id";
72
+ readonly kb: "https://daily-api.lovrabet.id";
73
+ readonly app: "https://daily.lovrabet.id";
74
+ };
75
+ };
76
+ readonly assets: {
77
+ readonly strategy: "cdn";
78
+ readonly origin: "https://g.alicdn.com";
79
+ };
80
+ readonly local: {
81
+ readonly origin: "https://dev.lovrabet.id";
82
+ readonly certificateUrl: "https://g.lovrabet.id/cert/lovrabet-dev.json";
83
+ };
84
+ };
85
+ readonly global: {
86
+ readonly label: "Global";
87
+ readonly serviceDomains: {
88
+ readonly primary: {
89
+ readonly user: "https://user.lovrabet.ai";
90
+ readonly api: "https://api.lovrabet.ai";
91
+ readonly runtime: "https://runtime.lovrabet.ai";
92
+ readonly skill: "https://skills.lovrabet.ai";
93
+ readonly kb: "https://api.lovrabet.ai";
94
+ readonly app: "https://app.lovrabet.ai";
95
+ };
96
+ readonly preview: {
97
+ readonly user: "https://user-daily.lovrabet.ai";
98
+ readonly api: "https://daily-api.lovrabet.ai";
99
+ readonly runtime: "https://daily-runtime.lovrabet.ai";
100
+ readonly skill: "https://skills-daily.lovrabet.ai";
101
+ readonly kb: "https://daily-api.lovrabet.ai";
102
+ readonly app: "https://daily.lovrabet.ai";
103
+ };
104
+ };
105
+ readonly assets: {
106
+ readonly strategy: "cdn";
107
+ readonly origin: "https://g.alicdn.com";
108
+ };
109
+ readonly local: {
110
+ readonly origin: "https://dev.lovrabet.ai";
111
+ readonly certificateUrl: "https://g.lovrabet.ai/cert/lovrabet-dev.json";
112
+ };
113
+ };
114
+ };
115
+ export declare function getOfficialRoutingProfile(region: LovrabetRegion): OfficialRoutingProfile;
@@ -0,0 +1 @@
1
+ const a224_0x56f7e1=a224_0xa636;(function(_0x5c462c,_0x874f14){const _0x453f27=a224_0xa636,_0x4f0c7d=_0x5c462c();while(!![]){try{const _0x274899=parseInt(_0x453f27(0xcd))/0x1+-parseInt(_0x453f27(0xc9))/0x2+-parseInt(_0x453f27(0xb6))/0x3*(-parseInt(_0x453f27(0xbd))/0x4)+-parseInt(_0x453f27(0xb8))/0x5*(parseInt(_0x453f27(0xad))/0x6)+parseInt(_0x453f27(0xb5))/0x7*(-parseInt(_0x453f27(0xb2))/0x8)+-parseInt(_0x453f27(0xb4))/0x9+parseInt(_0x453f27(0xd0))/0xa;if(_0x274899===_0x874f14)break;else _0x4f0c7d['push'](_0x4f0c7d['shift']());}catch(_0x39bfa9){_0x4f0c7d['push'](_0x4f0c7d['shift']());}}}(a224_0x4fc2,0x429c1));function a224_0xa636(_0x2df029,_0x365c88){_0x2df029=_0x2df029-0xab;const _0x4fc2bd=a224_0x4fc2();let _0xa636ba=_0x4fc2bd[_0x2df029];return _0xa636ba;}function a224_0x4fc2(){const _0x142800=['https://user-daily.lovrabet.com','https://daily-api.lovrabet.com','https://skills-daily.lovrabet.ai','https://daily.lovrabet.ai','https://skills.lovrabet.id','108282HeHZVB','https://user.lovrabet.id','https://skills-daily.lovrabet.id','https://daily.lovrabet.id','https://app.lovrabet.com','1214776rLvqMP','https://g.lovrabet.com/cert/lovrabet-dev.json','2249721FEpVBu','21UAcuDv','21xBwtbv','https://user.lovrabet.ai','85vgpCDg','https://api.lovrabet.ai','https://daily.lovrabet.com','https://dev.lovrabet.com','https://runtime.lovrabet.com','127368RluXaj','https://app.lovrabet.ai','https://api.lovrabet.com','Global','https://daily-runtime.lovrabet.ai','https://user-daily.lovrabet.id','https://daily-runtime.lovrabet.id','https://daily-api.lovrabet.ai','https://skills.lovrabet.com','https://dev.lovrabet.ai','https://skills-daily.lovrabet.com','https://runtime.lovrabet.ai','812290AnOgpq','https://user.lovrabet.com','https://daily-runtime.lovrabet.com','cdn','7500urRlEY','https://dev.lovrabet.id','https://daily-api.lovrabet.id','14608930pDzmAj','https://app.lovrabet.id','https://user-daily.lovrabet.ai','https://g.alicdn.com','https://g.lovrabet.ai/cert/lovrabet-dev.json','https://g.lovrabet.id/cert/lovrabet-dev.json','https://api.lovrabet.id'];a224_0x4fc2=function(){return _0x142800;};return a224_0x4fc2();}export const OFFICIAL_ROUTING_PROFILES={'cn':{'label':'Mainland\x20China','serviceDomains':{'primary':{'user':a224_0x56f7e1(0xca),'api':a224_0x56f7e1(0xbf),'runtime':a224_0x56f7e1(0xbc),'skill':a224_0x56f7e1(0xc5),'kb':a224_0x56f7e1(0xbf),'app':a224_0x56f7e1(0xb1)},'preview':{'user':a224_0x56f7e1(0xd7),'api':a224_0x56f7e1(0xd8),'runtime':a224_0x56f7e1(0xcb),'skill':a224_0x56f7e1(0xc7),'kb':a224_0x56f7e1(0xd8),'app':a224_0x56f7e1(0xba)}},'assets':{'strategy':a224_0x56f7e1(0xcc),'origin':a224_0x56f7e1(0xd3)},'local':{'origin':a224_0x56f7e1(0xbb),'certificateUrl':a224_0x56f7e1(0xb3)}},'id':{'label':'Indonesia','serviceDomains':{'primary':{'user':a224_0x56f7e1(0xae),'api':'https://api.lovrabet.id','runtime':'https://runtime.lovrabet.id','skill':a224_0x56f7e1(0xac),'kb':a224_0x56f7e1(0xd6),'app':a224_0x56f7e1(0xd1)},'preview':{'user':a224_0x56f7e1(0xc2),'api':a224_0x56f7e1(0xcf),'runtime':a224_0x56f7e1(0xc3),'skill':a224_0x56f7e1(0xaf),'kb':'https://daily-api.lovrabet.id','app':a224_0x56f7e1(0xb0)}},'assets':{'strategy':'cdn','origin':a224_0x56f7e1(0xd3)},'local':{'origin':a224_0x56f7e1(0xce),'certificateUrl':a224_0x56f7e1(0xd5)}},'global':{'label':a224_0x56f7e1(0xc0),'serviceDomains':{'primary':{'user':a224_0x56f7e1(0xb7),'api':a224_0x56f7e1(0xb9),'runtime':a224_0x56f7e1(0xc8),'skill':'https://skills.lovrabet.ai','kb':a224_0x56f7e1(0xb9),'app':a224_0x56f7e1(0xbe)},'preview':{'user':a224_0x56f7e1(0xd2),'api':a224_0x56f7e1(0xc4),'runtime':a224_0x56f7e1(0xc1),'skill':a224_0x56f7e1(0xd9),'kb':a224_0x56f7e1(0xc4),'app':a224_0x56f7e1(0xab)}},'assets':{'strategy':'cdn','origin':'https://g.alicdn.com'},'local':{'origin':a224_0x56f7e1(0xc6),'certificateUrl':a224_0x56f7e1(0xd4)}}};export function getOfficialRoutingProfile(_0x5b42e0){return OFFICIAL_ROUTING_PROFILES[_0x5b42e0];}
@@ -1,5 +1,6 @@
1
1
  import { type OutputFormat, type Risk } from "../framework/types.js";
2
2
  import type { RawConfigLayers } from "../context/config-loader.js";
3
+ import type { DeploymentSyncProfile } from "../config/deployment-sync.js";
3
4
  export interface AppProfile {
4
5
  appcode: string;
5
6
  env?: "production" | "daily";
@@ -10,6 +11,7 @@ export interface AppProfile {
10
11
  pageSize?: number;
11
12
  riskLevel?: Risk;
12
13
  locale?: string;
14
+ deploymentSync?: DeploymentSyncProfile;
13
15
  }
14
16
  export interface ResolvedAppConfig {
15
17
  appCode: string | undefined;
@@ -1 +1 @@
1
- (function(_0x10fd05,_0x45f3bd){const _0x39df83=a217_0x3ac6,_0x38a931=_0x10fd05();while(!![]){try{const _0x257dfa=-parseInt(_0x39df83(0x123))/0x1+parseInt(_0x39df83(0x121))/0x2*(-parseInt(_0x39df83(0x131))/0x3)+parseInt(_0x39df83(0x128))/0x4*(-parseInt(_0x39df83(0x113))/0x5)+-parseInt(_0x39df83(0x132))/0x6+-parseInt(_0x39df83(0x119))/0x7+-parseInt(_0x39df83(0x115))/0x8*(parseInt(_0x39df83(0x11b))/0x9)+parseInt(_0x39df83(0x10e))/0xa*(parseInt(_0x39df83(0x112))/0xb);if(_0x257dfa===_0x45f3bd)break;else _0x38a931['push'](_0x38a931['shift']());}catch(_0x2479e1){_0x38a931['push'](_0x38a931['shift']());}}}(a217_0x5ca5,0xcf6a3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a217_0x3ac6(_0x308b41,_0x3ebbb0){_0x308b41=_0x308b41-0x10b;const _0x5ca5ef=a217_0x5ca5();let _0x3ac681=_0x5ca5ef[_0x308b41];return _0x3ac681;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x5b738a){const _0x152615=a217_0x3ac6;return typeof _0x5b738a===_0x152615(0x127)&&_0x5b738a[_0x152615(0x125)]()?_0x5b738a[_0x152615(0x125)]():undefined;}function a217_0x5ca5(){const _0x54d1bb=['format','121230rPJRoB','cookie','COOKIE','projectConfig','4103KptXYd','68980JohwWl','true','4128MukBZo','FORMAT','keys','defaultApp','363314DpMlOz','write','2925IWIizi','riskLevel','accessKey','pageSize','apps','appcode','8RnhMbL','env','1450935yxajsA','apiDir','trim','find','string','44frCajq','high-risk-write','object','app','read','ENV','APP','globalConfig','length','680457wNwFzd','5656434iKpytl','entries','projectPath','PAGE_SIZE','locale'];a217_0x5ca5=function(){return _0x54d1bb;};return a217_0x5ca5();}function appProfiles(_0x17111b){const _0x594a71=a217_0x3ac6;return _0x17111b[_0x594a71(0x11f)]&&typeof _0x17111b['apps']===_0x594a71(0x12a)?_0x17111b[_0x594a71(0x11f)]:{};}function resolveDefaultAppName(_0x5044f){const _0x3f96ff=a217_0x3ac6,_0x97bd48=stringConfigValue(_0x5044f[_0x3f96ff(0x118)]);if(_0x97bd48)return _0x97bd48;const _0x4aceb6=Object[_0x3f96ff(0x117)](appProfiles(_0x5044f));return _0x4aceb6[_0x3f96ff(0x130)]===0x1?_0x4aceb6[0x0]:undefined;}function resolveTopLevelAppCode(_0x43ddd9){const _0x30ade2=a217_0x3ac6;return stringConfigValue(_0x43ddd9['appcode'])||stringConfigValue(_0x43ddd9[_0x30ade2(0x12b)]);}function normalizeRiskCeiling(_0x4ad04c){const _0x1676b=a217_0x3ac6;if(_0x4ad04c===undefined||_0x4ad04c===null)return undefined;if(_0x4ad04c===_0x1676b(0x12c)||_0x4ad04c===_0x1676b(0x11a)||_0x4ad04c===_0x1676b(0x129))return _0x4ad04c;return'read';}function resolveRiskCeiling(..._0x4906f1){const _0x3b231d=a217_0x3ac6;let _0x3f44d6;for(const _0x5c3401 of _0x4906f1){const _0xc8d6dd=normalizeRiskCeiling(_0x5c3401);_0xc8d6dd&&(!_0x3f44d6||riskLevelOrder(_0xc8d6dd)<riskLevelOrder(_0x3f44d6))&&(_0x3f44d6=_0xc8d6dd);}return _0x3f44d6??DEFAULT_CONFIG_VALUES[_0x3b231d(0x11c)];}export function resolveAppConfig({raw:_0x39ee02,flags:_0xcae565,layers:_0xf21cd,readEnv:_0x191aa3}){const _0x128597=a217_0x3ac6,_0xf50883=_0xf21cd?.[_0x128597(0x111)]??{},_0x3c0af7=_0xf21cd?.['globalConfig']??{},_0x542e83=!!_0xf21cd?.[_0x128597(0x134)]||Object['keys'](_0xf50883)[_0x128597(0x130)]>0x0,_0x2af1bd=!_0x542e83,_0xd1c0e=_0x542e83?resolveDefaultAppName(_0xf50883):undefined,_0x1bfade=_0x2af1bd?resolveDefaultAppName(_0x3c0af7):undefined,_0x37dff6=stringConfigValue(_0xcae565['app']),_0x4a51f2=_0x191aa3(_0x128597(0x12e)),_0x9236bf={};if(_0x39ee02['apps']&&typeof _0x39ee02[_0x128597(0x11f)]===_0x128597(0x12a))for(const [_0xa57e76,_0x578792]of Object[_0x128597(0x133)](_0x39ee02[_0x128597(0x11f)])){_0x578792&&typeof _0x578792===_0x128597(0x12a)&&_0x578792[_0x128597(0x120)]&&(_0x9236bf[_0xa57e76]=_0x578792);}const _0xf7150c=_0xd1c0e||_0x1bfade||resolveDefaultAppName(_0x39ee02),_0x9665dd=Object[_0x128597(0x117)](_0x9236bf)[_0x128597(0x130)]>0x0,_0x58bbc8=_0x37dff6||_0xd1c0e||_0x4a51f2||_0x1bfade||_0xf7150c||undefined,_0x5b7444=stringConfigValue(_0xcae565[_0x128597(0x120)]),_0x3c0ae6=_0x5b7444?Object[_0x128597(0x133)](_0x9236bf)[_0x128597(0x126)](([,_0x33606d])=>_0x33606d?.['appcode']===_0x5b7444):undefined,_0x25e746=_0x3c0ae6?.[0x0],_0x3fc37b=_0x3c0ae6?.[0x1],_0x46a30c=_0x5b7444?_0x25e746:_0x58bbc8;let _0x1bc26d=_0x46a30c&&_0x9236bf[_0x46a30c]?_0x9236bf[_0x46a30c]:undefined;_0x5b7444&&_0x3fc37b&&(_0x1bc26d=_0x3fc37b);const _0x23b5dd=_0x5b7444?_0x3fc37b??_0x1bc26d:_0x1bc26d,_0x3a3d4e=!_0x37dff6&&!_0xd1c0e&&_0x4a51f2&&_0x46a30c===_0x4a51f2,_0x56fd05=_0x37dff6||(_0x3a3d4e?_0x4a51f2:undefined)||(_0x5b7444?_0x25e746:undefined),_0x2c25d7=_0x23b5dd?.[_0x128597(0x120)],_0x49f459=_0x542e83?resolveTopLevelAppCode(_0xf50883):undefined,_0x377d9d=_0x2af1bd?resolveTopLevelAppCode(_0x3c0af7):undefined,_0x1e3d54=_0x37dff6||_0xd1c0e?_0x2c25d7:undefined,_0xb665ba=!_0x37dff6&&!_0xd1c0e?_0x2c25d7:undefined,_0x1fe73f=_0x5b7444||_0x1e3d54||_0x49f459||_0xb665ba||_0x377d9d||undefined,_0x3671a=_0x542e83?stringConfigValue(_0xf50883['env']):undefined,_0x322ce4=_0x2af1bd?stringConfigValue(_0x3c0af7[_0x128597(0x122)]):undefined,_0x472ddf=_0xcae565['env']||_0x23b5dd?.[_0x128597(0x122)]||_0x3671a||_0x191aa3(_0x128597(0x12d))||_0x322ce4||_0x39ee02[_0x128597(0x122)]||DEFAULT_CONFIG_VALUES[_0x128597(0x122)],_0x216c20=_0x23b5dd?.[_0x128597(0x10c)]||_0x39ee02[_0x128597(0x10c)]||DEFAULT_CONFIG_VALUES[_0x128597(0x10c)],_0x145353=_0x191aa3(_0x128597(0x110))||_0x23b5dd?.[_0x128597(0x10f)]||_0x39ee02[_0x128597(0x10f)]||undefined,_0x2346d7=_0x191aa3('ACCESS_KEY')||_0x23b5dd?.[_0x128597(0x11d)]||_0x39ee02['accessKey']||undefined,_0x2ff64f=_0xcae565[_0x128597(0x10d)]||_0x191aa3(_0x128597(0x116))||_0x23b5dd?.[_0x128597(0x10d)]||_0x39ee02[_0x128597(0x10d)],_0x19ad49=normalizeLegacyOutputFormat(_0x2ff64f),_0x1a4b50=_0x191aa3(_0x128597(0x10b))||_0x23b5dd?.[_0x128597(0x11e)]||_0x39ee02[_0x128597(0x11e)],_0x8154a=_0x1a4b50?Number(_0x1a4b50)||undefined:undefined,_0x1b1d57=_0xf21cd?[_0xf21cd[_0x128597(0x12f)][_0x128597(0x11c)],_0xf21cd[_0x128597(0x111)][_0x128597(0x11c)]]:[_0x39ee02[_0x128597(0x11c)]],_0xc7de9d=resolveRiskCeiling(..._0x1b1d57,_0x23b5dd?.[_0x128597(0x11c)]),_0x256e05=resolveRiskCeiling(_0xc7de9d,_0x191aa3('RISK_LEVEL')),_0x134be1=_0x191aa3('VERBOSE'),_0x57c8c6=_0x134be1==='1'||_0x134be1===_0x128597(0x114),_0x482e9e=_0x23b5dd?.[_0x128597(0x124)]||_0x39ee02[_0x128597(0x124)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x5379be=isDaily(normalizeEnv(String(_0x472ddf)))?'daily':'production';return{'appCode':typeof _0x1fe73f===_0x128597(0x127)&&_0x1fe73f[_0x128597(0x125)]()?_0x1fe73f[_0x128597(0x125)]():undefined,'env':_0x5379be,'locale':_0x216c20,'cookie':_0x145353,'accessKey':_0x2346d7,'format':_0x19ad49,'pageSize':_0x8154a,'riskLevel':_0x256e05,'verbose':_0x57c8c6,'apiDir':_0x482e9e,'apps':_0x9236bf,'defaultApp':_0xf7150c,'currentApp':_0x9665dd?_0x46a30c:undefined,'explicitAppName':_0x56fd05};}
1
+ (function(_0x543bbb,_0x53b1f7){const _0x9a3c5f=a225_0x17c5,_0x30313d=_0x543bbb();while(!![]){try{const _0x437431=-parseInt(_0x9a3c5f(0xbf))/0x1+-parseInt(_0x9a3c5f(0xc9))/0x2*(parseInt(_0x9a3c5f(0xd8))/0x3)+-parseInt(_0x9a3c5f(0xdd))/0x4+-parseInt(_0x9a3c5f(0xdb))/0x5+parseInt(_0x9a3c5f(0xca))/0x6*(-parseInt(_0x9a3c5f(0xd5))/0x7)+parseInt(_0x9a3c5f(0xbe))/0x8+parseInt(_0x9a3c5f(0xd6))/0x9;if(_0x437431===_0x53b1f7)break;else _0x30313d['push'](_0x30313d['shift']());}catch(_0x4cb85b){_0x30313d['push'](_0x30313d['shift']());}}}(a225_0x4e5d,0xd655a));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a225_0x4e5d(){const _0x271c1e=['find','read','length','format','locale','globalConfig','cookie','8231928bMFixL','1362688HdEkpR','COOKIE','VERBOSE','high-risk-write','string','keys','APP','production','trim','apps','4378tsATRD','6cATsZh','appcode','pageSize','accessKey','object','env','daily','RISK_LEVEL','projectConfig','apiDir','app','7745206KJVrvV','40866237nCPMCV','true','78nchBTq','entries','riskLevel','2827355WvtJmh','defaultApp','6400956KcOAJQ','projectPath'];a225_0x4e5d=function(){return _0x271c1e;};return a225_0x4e5d();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x3eb5e7){const _0x5c28b4=a225_0x17c5;return typeof _0x3eb5e7===_0x5c28b4(0xc3)&&_0x3eb5e7[_0x5c28b4(0xc7)]()?_0x3eb5e7[_0x5c28b4(0xc7)]():undefined;}function appProfiles(_0x56cbc8){const _0x52ca2a=a225_0x17c5;return _0x56cbc8['apps']&&typeof _0x56cbc8[_0x52ca2a(0xc8)]===_0x52ca2a(0xce)?_0x56cbc8[_0x52ca2a(0xc8)]:{};}function a225_0x17c5(_0x2ae5c6,_0x55c654){_0x2ae5c6=_0x2ae5c6-0xb9;const _0x4e5da5=a225_0x4e5d();let _0x17c52a=_0x4e5da5[_0x2ae5c6];return _0x17c52a;}function resolveDefaultAppName(_0xcf340b){const _0x4e868a=a225_0x17c5,_0x3d2680=stringConfigValue(_0xcf340b[_0x4e868a(0xdc)]);if(_0x3d2680)return _0x3d2680;const _0x358151=Object['keys'](appProfiles(_0xcf340b));return _0x358151[_0x4e868a(0xb9)]===0x1?_0x358151[0x0]:undefined;}function resolveTopLevelAppCode(_0x4e7b58){const _0x293f02=a225_0x17c5;return stringConfigValue(_0x4e7b58[_0x293f02(0xcb)])||stringConfigValue(_0x4e7b58[_0x293f02(0xd4)]);}function normalizeRiskCeiling(_0x14d2f9){const _0x20163e=a225_0x17c5;if(_0x14d2f9===undefined||_0x14d2f9===null)return undefined;if(_0x14d2f9===_0x20163e(0xe0)||_0x14d2f9==='write'||_0x14d2f9===_0x20163e(0xc2))return _0x14d2f9;return _0x20163e(0xe0);}function resolveRiskCeiling(..._0x26fcac){const _0x97c56c=a225_0x17c5;let _0x465c07;for(const _0x5e490b of _0x26fcac){const _0x238c78=normalizeRiskCeiling(_0x5e490b);_0x238c78&&(!_0x465c07||riskLevelOrder(_0x238c78)<riskLevelOrder(_0x465c07))&&(_0x465c07=_0x238c78);}return _0x465c07??DEFAULT_CONFIG_VALUES[_0x97c56c(0xda)];}export function resolveAppConfig({raw:_0x82c4e,flags:_0x46a58b,layers:_0x12f1da,readEnv:_0x337a3f}){const _0x2a5937=a225_0x17c5,_0x5dd129=_0x12f1da?.['projectConfig']??{},_0x2114f8=_0x12f1da?.['globalConfig']??{},_0x348214=!!_0x12f1da?.[_0x2a5937(0xde)]||Object[_0x2a5937(0xc4)](_0x5dd129)[_0x2a5937(0xb9)]>0x0,_0x5559c3=!_0x348214,_0x5923ed=_0x348214?resolveDefaultAppName(_0x5dd129):undefined,_0x49e9c2=_0x5559c3?resolveDefaultAppName(_0x2114f8):undefined,_0x48e83a=stringConfigValue(_0x46a58b[_0x2a5937(0xd4)]),_0x7d706=_0x337a3f(_0x2a5937(0xc5)),_0xcb32c7={};if(_0x82c4e[_0x2a5937(0xc8)]&&typeof _0x82c4e[_0x2a5937(0xc8)]===_0x2a5937(0xce))for(const [_0x173836,_0x4529b6]of Object['entries'](_0x82c4e[_0x2a5937(0xc8)])){_0x4529b6&&typeof _0x4529b6==='object'&&_0x4529b6['appcode']&&(_0xcb32c7[_0x173836]=_0x4529b6);}const _0x22a88d=_0x5923ed||_0x49e9c2||resolveDefaultAppName(_0x82c4e),_0x3068ac=Object['keys'](_0xcb32c7)[_0x2a5937(0xb9)]>0x0,_0x1e75f0=_0x48e83a||_0x5923ed||_0x7d706||_0x49e9c2||_0x22a88d||undefined,_0x20c141=stringConfigValue(_0x46a58b[_0x2a5937(0xcb)]),_0x5d2ba0=_0x20c141?Object[_0x2a5937(0xd9)](_0xcb32c7)[_0x2a5937(0xdf)](([,_0x3d7e28])=>_0x3d7e28?.[_0x2a5937(0xcb)]===_0x20c141):undefined,_0x536dbe=_0x5d2ba0?.[0x0],_0x4d6220=_0x5d2ba0?.[0x1],_0x2e8cbb=_0x20c141?_0x536dbe:_0x1e75f0;let _0x5e4466=_0x2e8cbb&&_0xcb32c7[_0x2e8cbb]?_0xcb32c7[_0x2e8cbb]:undefined;_0x20c141&&_0x4d6220&&(_0x5e4466=_0x4d6220);const _0x2dbd57=_0x20c141?_0x4d6220??_0x5e4466:_0x5e4466,_0xb819db=!_0x48e83a&&!_0x5923ed&&_0x7d706&&_0x2e8cbb===_0x7d706,_0x13c278=_0x48e83a||(_0xb819db?_0x7d706:undefined)||(_0x20c141?_0x536dbe:undefined),_0x284cd6=_0x2dbd57?.[_0x2a5937(0xcb)],_0x19c8ff=_0x348214?resolveTopLevelAppCode(_0x5dd129):undefined,_0x2e9773=_0x5559c3?resolveTopLevelAppCode(_0x2114f8):undefined,_0x155ccc=_0x48e83a||_0x5923ed?_0x284cd6:undefined,_0x52e5a5=!_0x48e83a&&!_0x5923ed?_0x284cd6:undefined,_0x4a2d22=_0x20c141||_0x155ccc||_0x19c8ff||_0x52e5a5||_0x2e9773||undefined,_0x470360=_0x348214?stringConfigValue(_0x5dd129[_0x2a5937(0xcf)]):undefined,_0x30bb25=_0x5559c3?stringConfigValue(_0x2114f8['env']):undefined,_0x1f5008=_0x46a58b[_0x2a5937(0xcf)]||_0x2dbd57?.[_0x2a5937(0xcf)]||_0x470360||_0x337a3f('ENV')||_0x30bb25||_0x82c4e[_0x2a5937(0xcf)]||DEFAULT_CONFIG_VALUES[_0x2a5937(0xcf)],_0x430454=_0x2dbd57?.[_0x2a5937(0xbb)]||_0x82c4e[_0x2a5937(0xbb)]||DEFAULT_CONFIG_VALUES[_0x2a5937(0xbb)],_0x7e6668=_0x337a3f(_0x2a5937(0xc0))||_0x2dbd57?.[_0x2a5937(0xbd)]||_0x82c4e[_0x2a5937(0xbd)]||undefined,_0x503ab5=_0x337a3f('ACCESS_KEY')||_0x2dbd57?.[_0x2a5937(0xcd)]||_0x82c4e[_0x2a5937(0xcd)]||undefined,_0x5ba79f=_0x46a58b['format']||_0x337a3f('FORMAT')||_0x2dbd57?.[_0x2a5937(0xba)]||_0x82c4e[_0x2a5937(0xba)],_0x536130=normalizeLegacyOutputFormat(_0x5ba79f),_0x26929e=_0x337a3f('PAGE_SIZE')||_0x2dbd57?.[_0x2a5937(0xcc)]||_0x82c4e[_0x2a5937(0xcc)],_0x577402=_0x26929e?Number(_0x26929e)||undefined:undefined,_0xfe20a=_0x12f1da?[_0x12f1da[_0x2a5937(0xbc)]['riskLevel'],_0x12f1da[_0x2a5937(0xd2)][_0x2a5937(0xda)]]:[_0x82c4e['riskLevel']],_0xd55456=resolveRiskCeiling(..._0xfe20a,_0x2dbd57?.[_0x2a5937(0xda)]),_0x44cfca=resolveRiskCeiling(_0xd55456,_0x337a3f(_0x2a5937(0xd1))),_0x9a75de=_0x337a3f(_0x2a5937(0xc1)),_0x497e05=_0x9a75de==='1'||_0x9a75de===_0x2a5937(0xd7),_0x3dcc4c=_0x2dbd57?.[_0x2a5937(0xd3)]||_0x82c4e['apiDir']||DEFAULT_CONFIG_VALUES[_0x2a5937(0xd3)],_0x14605a=isDaily(normalizeEnv(String(_0x1f5008)))?_0x2a5937(0xd0):_0x2a5937(0xc6);return{'appCode':typeof _0x4a2d22===_0x2a5937(0xc3)&&_0x4a2d22[_0x2a5937(0xc7)]()?_0x4a2d22['trim']():undefined,'env':_0x14605a,'locale':_0x430454,'cookie':_0x7e6668,'accessKey':_0x503ab5,'format':_0x536130,'pageSize':_0x577402,'riskLevel':_0x44cfca,'verbose':_0x497e05,'apiDir':_0x3dcc4c,'apps':_0xcb32c7,'defaultApp':_0x22a88d,'currentApp':_0x3068ac?_0x2e8cbb:undefined,'explicitAppName':_0x13c278};}
@@ -1 +1 @@
1
- (function(_0x552707,_0x5271ea){const _0x1fd7a8=a218_0x2079,_0x338c17=_0x552707();while(!![]){try{const _0x2350f6=-parseInt(_0x1fd7a8(0x17e))/0x1+-parseInt(_0x1fd7a8(0x180))/0x2*(-parseInt(_0x1fd7a8(0x17a))/0x3)+-parseInt(_0x1fd7a8(0x178))/0x4*(parseInt(_0x1fd7a8(0x17c))/0x5)+-parseInt(_0x1fd7a8(0x17b))/0x6+parseInt(_0x1fd7a8(0x17d))/0x7+parseInt(_0x1fd7a8(0x176))/0x8+parseInt(_0x1fd7a8(0x177))/0x9;if(_0x2350f6===_0x5271ea)break;else _0x338c17['push'](_0x338c17['shift']());}catch(_0x22270f){_0x338c17['push'](_0x338c17['shift']());}}}(a218_0x416b,0x9ea14));import{getIsSessionValid}from'../auth/is-session-valid.js';function a218_0x416b(){const _0xf9ed98=['3998313HWSehe','936lpfzoD','cookie','22338jHDZuh','2632638wTQJbn','20030sWzgwY','7665812OEikLZ','519676lHTpya','authRequired','238QYOEpm','../auth/get-cookie.js','961232NRiMCB'];a218_0x416b=function(){return _0xf9ed98;};return a218_0x416b();}import{CliErrors}from'../errors.js';function a218_0x2079(_0x1d1f95,_0x29e102){_0x1d1f95=_0x1d1f95-0x176;const _0x416b8d=a218_0x416b();let _0x207900=_0x416b8d[_0x1d1f95];return _0x207900;}export async function buildAuth(_0x2e5ec6){const _0x3af974=a218_0x2079,{getCookie:_0x270fe0}=await import(_0x3af974(0x181)),_0x5d59b3=_0x2e5ec6[_0x3af974(0x179)]||_0x270fe0(),_0x2ea551=_0x5d59b3?await getIsSessionValid():![];return{'cookie':_0x5d59b3,'isLoggedIn':_0x2ea551,async 'getOrLogin'(){const _0xcdf4be=_0x3af974;if(_0x5d59b3&&_0x2ea551)return _0x5d59b3;throw CliErrors[_0xcdf4be(0x17f)]();}};}
1
+ (function(_0x595a96,_0x413903){const _0x59ac59=a226_0x315c,_0x3bfbff=_0x595a96();while(!![]){try{const _0x44a979=parseInt(_0x59ac59(0x166))/0x1+-parseInt(_0x59ac59(0x15c))/0x2+parseInt(_0x59ac59(0x165))/0x3+-parseInt(_0x59ac59(0x15e))/0x4*(parseInt(_0x59ac59(0x164))/0x5)+-parseInt(_0x59ac59(0x15f))/0x6+parseInt(_0x59ac59(0x163))/0x7*(-parseInt(_0x59ac59(0x15d))/0x8)+-parseInt(_0x59ac59(0x160))/0x9*(-parseInt(_0x59ac59(0x167))/0xa);if(_0x44a979===_0x413903)break;else _0x3bfbff['push'](_0x3bfbff['shift']());}catch(_0x4d45fe){_0x3bfbff['push'](_0x3bfbff['shift']());}}}(a226_0x29b4,0xea534));function a226_0x315c(_0x4a34a9,_0x1ebece){_0x4a34a9=_0x4a34a9-0x15c;const _0x29b44b=a226_0x29b4();let _0x315cc3=_0x29b44b[_0x4a34a9];return _0x315cc3;}function a226_0x29b4(){const _0x43e00=['12741320BuVEAQ','1516432vjTRvY','2456472BdxjYF','118386oPjTSE','authRequired','../auth/get-cookie.js','7saIYET','15BTGUup','4953744PaoSQq','358295MecJPi','1960djVrPF','977060ORwxFH'];a226_0x29b4=function(){return _0x43e00;};return a226_0x29b4();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x51e906){const _0x5c23d0=a226_0x315c,{getCookie:_0x350d80}=await import(_0x5c23d0(0x162)),_0x37a93a=_0x51e906['cookie']||_0x350d80(),_0x448ebf=_0x37a93a?await getIsSessionValid():![];return{'cookie':_0x37a93a,'isLoggedIn':_0x448ebf,async 'getOrLogin'(){const _0x5e08fc=_0x5c23d0;if(_0x37a93a&&_0x448ebf)return _0x37a93a;throw CliErrors[_0x5e08fc(0x161)]();}};}
@@ -1 +1 @@
1
- const a219_0x4c3922=a219_0x4564;(function(_0x7d994a,_0x56547a){const _0x2d3a7c=a219_0x4564,_0x1837df=_0x7d994a();while(!![]){try{const _0x281a9c=parseInt(_0x2d3a7c(0x17a))/0x1*(-parseInt(_0x2d3a7c(0x191))/0x2)+parseInt(_0x2d3a7c(0x18f))/0x3+parseInt(_0x2d3a7c(0x18e))/0x4+-parseInt(_0x2d3a7c(0x18c))/0x5*(-parseInt(_0x2d3a7c(0x199))/0x6)+parseInt(_0x2d3a7c(0x171))/0x7*(-parseInt(_0x2d3a7c(0x1a2))/0x8)+parseInt(_0x2d3a7c(0x193))/0x9+parseInt(_0x2d3a7c(0x18d))/0xa;if(_0x281a9c===_0x56547a)break;else _0x1837df['push'](_0x1837df['shift']());}catch(_0x22e0fa){_0x1837df['push'](_0x1837df['shift']());}}}(a219_0x1cc2,0xc0c15));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a219_0x4c3922(0x178);function a219_0x4564(_0x15399b,_0x5add13){_0x15399b=_0x15399b-0x16f;const _0x1cc226=a219_0x1cc2();let _0x4564ce=_0x1cc226[_0x15399b];return _0x4564ce;}export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0xaa0242){for(const _0x3dd59c of CONFIG_NAMES){const _0x3a5040=resolve(_0xaa0242,_0x3dd59c);if(existsSync(_0x3a5040))return _0x3a5040;}return undefined;}export function findProjectRootDirectory(_0x3d6a9a=process[a219_0x4c3922(0x198)]()){let _0x2beb16=resolve(_0x3d6a9a);const {root:_0x5ec431}=parse(_0x2beb16),_0x417598=homedir();while(!![]){if(resolveConfigPath(_0x2beb16)){if(_0x2beb16===_0x417598)break;return _0x2beb16;}if(_0x2beb16===_0x5ec431||_0x2beb16===_0x417598)break;const _0xa09d37=dirname(_0x2beb16);if(_0xa09d37===_0x2beb16)break;_0x2beb16=_0xa09d37;}return resolve(_0x3d6a9a);}export function getProjectConfigPath(){const _0x2ccb38=a219_0x4c3922;return resolveConfigPath(process[_0x2ccb38(0x198)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0xf533d){const _0x81f057=a219_0x4c3922;if(!existsSync(_0xf533d))return{'status':_0x81f057(0x188)};try{const _0x205183=readFileSync(_0xf533d,{'encoding':_0x81f057(0x187)});if(!_0x205183?.[_0x81f057(0x19b)]())return{'status':_0x81f057(0x184)};const _0x504a24=JSON['parse'](_0x205183);return{'status':'ok','data':_0x504a24};}catch(_0x11891b){return{'status':'error','message':_0x11891b instanceof Error?_0x11891b['message']:String(_0x11891b)};}}function parseCliConfigJsonFile(_0x3c19f4,_0x326481,_0x2e0d0c){const _0x300f63=a219_0x4c3922,_0x2bfaf4=inspectCliConfigJsonFile(_0x3c19f4);if(_0x2bfaf4[_0x300f63(0x19c)]===_0x300f63(0x188)||_0x2bfaf4[_0x300f63(0x19c)]===_0x300f63(0x184))return{};if(_0x2bfaf4[_0x300f63(0x19c)]==='ok')return _0x2bfaf4[_0x300f63(0x197)];return _0x326481==='warn'&&_0x2e0d0c&&console[_0x300f63(0x172)](CLI_BIN_NAME+':\x20'+_0x2e0d0c+_0x300f63(0x19e)+_0x3c19f4+_0x300f63(0x183)+_0x2bfaf4[_0x300f63(0x16f)]),{};}function normalizeLegacyConfigShape(_0x459bfc){const _0x2e3895=a219_0x4c3922;if(!_0x459bfc||typeof _0x459bfc!=='object')return{'config':{},'migrated':![]};const _0x3bd43d={..._0x459bfc},_0x14306d=_0x3bd43d[_0x2e3895(0x186)]&&typeof _0x3bd43d['apps']==='object'?{..._0x3bd43d['apps']}:{},_0x4e4565=Object[_0x2e3895(0x185)](_0x14306d)[_0x2e3895(0x18b)],_0x31d8bd=_0x3bd43d[_0x2e3895(0x1a0)]||_0x3bd43d[_0x2e3895(0x173)];let _0x5445a5=![];if(_0x31d8bd&&_0x4e4565===0x0){const _0x5d3494=typeof _0x3bd43d[_0x2e3895(0x181)]===_0x2e3895(0x182)&&_0x3bd43d[_0x2e3895(0x181)]['trim']()?_0x3bd43d[_0x2e3895(0x181)]:String(_0x31d8bd)[_0x2e3895(0x19b)]();_0x14306d[_0x5d3494]={'appcode':String(_0x31d8bd)[_0x2e3895(0x19b)](),..._0x3bd43d[_0x2e3895(0x179)]!=null?{'env':_0x3bd43d[_0x2e3895(0x179)]}:{},..._0x3bd43d[_0x2e3895(0x17b)]!=null?{'apiDir':_0x3bd43d[_0x2e3895(0x17b)]}:{},..._0x3bd43d[_0x2e3895(0x18a)]!=null?{'cookie':_0x3bd43d[_0x2e3895(0x18a)]}:{},..._0x3bd43d['accessKey']!=null?{'accessKey':_0x3bd43d[_0x2e3895(0x19f)]}:{},..._0x3bd43d['format']!=null?{'format':_0x3bd43d[_0x2e3895(0x1a3)]}:{},..._0x3bd43d[_0x2e3895(0x17f)]!=null?{'pageSize':_0x3bd43d[_0x2e3895(0x17f)]}:{},..._0x3bd43d[_0x2e3895(0x17c)]!=null?{'riskLevel':_0x3bd43d['riskLevel']}:{},..._0x3bd43d[_0x2e3895(0x177)]!=null?{'locale':_0x3bd43d['locale']}:{}},_0x3bd43d[_0x2e3895(0x186)]=_0x14306d,delete _0x3bd43d[_0x2e3895(0x181)],_0x5445a5=!![];}return(_0x2e3895(0x1a0)in _0x3bd43d||_0x2e3895(0x173)in _0x3bd43d)&&(delete _0x3bd43d[_0x2e3895(0x1a0)],delete _0x3bd43d[_0x2e3895(0x173)],_0x5445a5=!![]),{'config':_0x3bd43d,'migrated':_0x5445a5};}function writeNormalizedConfigIfNeeded(_0x3da002,_0x235088){const _0x593cc9=a219_0x4c3922,_0x18525=JSON[_0x593cc9(0x17e)](_0x235088,null,0x2)+'\x0a';if(normalizedWriteCache[_0x593cc9(0x174)](_0x3da002)===_0x18525)return;writeConfigFile(_0x3da002,_0x235088),normalizedWriteCache[_0x593cc9(0x176)](_0x3da002,_0x18525);}function parseAndNormalizeConfig(_0x193291,_0x362305,_0x414c5f){const _0x22a9f3=a219_0x4c3922,_0x339caa=parseCliConfigJsonFile(_0x193291,_0x362305,_0x414c5f),_0x5496e6=normalizeLegacyConfigShape(_0x339caa);if(_0x5496e6[_0x22a9f3(0x17d)])try{writeNormalizedConfigIfNeeded(_0x193291,_0x5496e6['config']);}catch{}return _0x5496e6[_0x22a9f3(0x195)];}export function loadRawConfigLayers(_0x1c2642){const _0x179242=a219_0x4c3922;let _0x34a715={},_0x53dbd8={};const _0x4ebe0f=resolveConfigPath(homedir());_0x4ebe0f&&(_0x34a715=parseAndNormalizeConfig(_0x4ebe0f,_0x179242(0x19a),_0x179242(0x180)));const _0x1e392c=_0x1c2642??findProjectRootDirectory(),_0x1b3e98=resolveConfigPath(_0x1e392c);return _0x1b3e98&&(_0x53dbd8=parseAndNormalizeConfig(_0x1b3e98,'warn','Project')),{'globalPath':_0x4ebe0f,'projectPath':_0x1b3e98,'globalConfig':_0x34a715,'projectConfig':_0x53dbd8};}const INHERIT_WHITELIST=[a219_0x4c3922(0x18a),a219_0x4c3922(0x19f),a219_0x4c3922(0x177),'format',a219_0x4c3922(0x17c),'pageSize',a219_0x4c3922(0x19d),'userDomain',a219_0x4c3922(0x1a1),'runtimeDomain',a219_0x4c3922(0x192),a219_0x4c3922(0x170),a219_0x4c3922(0x175)];export function mergeRawConfigLayers(_0x6dd02c){const _0x4be6e9=a219_0x4c3922,{globalConfig:_0x4ace0a,projectConfig:_0x3cad80}=_0x6dd02c,_0xf41e05=!!_0x6dd02c[_0x4be6e9(0x189)]||Object[_0x4be6e9(0x185)](_0x3cad80)[_0x4be6e9(0x18b)]>0x0;if(!_0xf41e05)return mergeGlobalOnly(_0x4ace0a);return mergeProjectFirst(_0x4ace0a,_0x3cad80);}function mergeGlobalOnly(_0x413f76){const _0x498c83=a219_0x4c3922,_0x1e416c={..._0x413f76};delete _0x1e416c['inherit'];const _0x4fdcd6=_0x413f76['apps']&&typeof _0x413f76[_0x498c83(0x186)]==='object'?_0x413f76['apps']:{};if(Object[_0x498c83(0x185)](_0x4fdcd6)['length']>0x0)_0x1e416c[_0x498c83(0x186)]=_0x4fdcd6;if(_0x413f76[_0x498c83(0x181)])_0x1e416c[_0x498c83(0x181)]=_0x413f76[_0x498c83(0x181)];return _0x1e416c;}function mergeProjectFirst(_0x188285,_0x902383){const _0x59c184=a219_0x4c3922,_0x1ee414={..._0x902383};delete _0x1ee414[_0x59c184(0x190)];for(const _0xb648d3 of INHERIT_WHITELIST){!(_0xb648d3 in _0x1ee414)&&_0xb648d3 in _0x188285&&(_0x1ee414[_0xb648d3]=_0x188285[_0xb648d3]);}const _0x167067=_0x902383[_0x59c184(0x186)]&&typeof _0x902383[_0x59c184(0x186)]===_0x59c184(0x194)?_0x902383['apps']:{};return Object[_0x59c184(0x185)](_0x167067)[_0x59c184(0x18b)]>0x0?_0x1ee414['apps']=_0x167067:delete _0x1ee414[_0x59c184(0x186)],'defaultApp'in _0x902383?_0x1ee414[_0x59c184(0x181)]=_0x902383['defaultApp']:delete _0x1ee414[_0x59c184(0x181)],_0x1ee414;}function a219_0x1cc2(){const _0x10a913=['4399173TiYRxU','inherit','30NlIWUg','skillDomain','3687039CQmHJQ','object','config','project','data','cwd','265986FquDMc','warn','trim','status','region','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','accessKey','appcode','apiDomain','21248wVKxXx','format','message','kbDomain','2723rPnhLZ','error','app','get','appDomain','set','locale','.rabetbase.json','env','33471UUalcL','apiDir','riskLevel','migrated','stringify','pageSize','Global','defaultApp','string','\x0a\x20\x20','empty','keys','apps','utf8','missing','projectPath','cookie','length','25ivfqcM','1664120LMPpjY','242580EpJFdr'];a219_0x1cc2=function(){return _0x10a913;};return a219_0x1cc2();}export function readRawConfigWithLayers(_0x2de696){const _0x7392eb=loadRawConfigLayers(_0x2de696);return{'config':mergeRawConfigLayers(_0x7392eb),'layers':_0x7392eb};}export function readRawConfig(_0x94be6b){return mergeRawConfigLayers(loadRawConfigLayers(_0x94be6b));}export function readConfigFile(_0x2fd331){return parseAndNormalizeConfig(_0x2fd331,'silent');}export function writeConfigFile(_0x127794,_0x5e1504){const _0x208175=a219_0x4c3922,_0x31fa70=dirname(_0x127794);!existsSync(_0x31fa70)&&mkdirSync(_0x31fa70,{'recursive':!![]});const _0x220c7c=_0x127794+'.tmp';try{writeFileSync(_0x220c7c,JSON[_0x208175(0x17e)](_0x5e1504,null,0x2)+'\x0a',{'encoding':_0x208175(0x187),'mode':0x180}),renameSync(_0x220c7c,_0x127794);}catch(_0x3226ea){try{unlinkSync(_0x220c7c);}catch{}throw _0x3226ea;}}export function resolveWriteConfigPath(_0x56ae8a){const _0x5a5ade=a219_0x4c3922,_0x413019=_0x56ae8a===_0x5a5ade(0x196)?process[_0x5a5ade(0x198)]():homedir(),_0x27baf5=resolveConfigPath(_0x413019);return _0x27baf5??resolve(_0x413019,NEW_CONFIG_NAME);}
1
+ const a227_0x534e47=a227_0x3de5;(function(_0x3296a2,_0x533407){const _0x3f76d5=a227_0x3de5,_0x6c98b6=_0x3296a2();while(!![]){try{const _0x3e5e3a=-parseInt(_0x3f76d5(0x194))/0x1+-parseInt(_0x3f76d5(0x18b))/0x2*(parseInt(_0x3f76d5(0x18f))/0x3)+parseInt(_0x3f76d5(0x18d))/0x4+-parseInt(_0x3f76d5(0x176))/0x5+parseInt(_0x3f76d5(0x182))/0x6+-parseInt(_0x3f76d5(0x196))/0x7*(parseInt(_0x3f76d5(0x169))/0x8)+parseInt(_0x3f76d5(0x177))/0x9*(parseInt(_0x3f76d5(0x17c))/0xa);if(_0x3e5e3a===_0x533407)break;else _0x6c98b6['push'](_0x6c98b6['shift']());}catch(_0x5e5e9c){_0x6c98b6['push'](_0x6c98b6['shift']());}}}(a227_0x3551,0xa5d95));function a227_0x3de5(_0x5a5444,_0x463b1d){_0x5a5444=_0x5a5444-0x167;const _0x355150=a227_0x3551();let _0x3de50b=_0x355150[_0x5a5444];return _0x3de50b;}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a227_0x534e47(0x184);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3de59d){for(const _0x4d595b of CONFIG_NAMES){const _0x434ae7=resolve(_0x3de59d,_0x4d595b);if(existsSync(_0x434ae7))return _0x434ae7;}return undefined;}export function findProjectRootDirectory(_0x5b8aed=process['cwd']()){let _0x597bc1=resolve(_0x5b8aed);const {root:_0x3f27e1}=parse(_0x597bc1),_0xb1a043=homedir();while(!![]){if(resolveConfigPath(_0x597bc1)){if(_0x597bc1===_0xb1a043)break;return _0x597bc1;}if(_0x597bc1===_0x3f27e1||_0x597bc1===_0xb1a043)break;const _0xd061a5=dirname(_0x597bc1);if(_0xd061a5===_0x597bc1)break;_0x597bc1=_0xd061a5;}return resolve(_0x5b8aed);}export function getProjectConfigPath(){const _0x36cecb=a227_0x534e47;return resolveConfigPath(process[_0x36cecb(0x189)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x7d564a){const _0x267e3c=a227_0x534e47;if(!existsSync(_0x7d564a))return{'status':_0x267e3c(0x191)};try{const _0x4a51fc=readFileSync(_0x7d564a,{'encoding':'utf8'});if(!_0x4a51fc?.[_0x267e3c(0x16e)]())return{'status':_0x267e3c(0x17d)};const _0x157cbc=JSON['parse'](_0x4a51fc);return{'status':'ok','data':_0x157cbc};}catch(_0x165d0b){return{'status':'error','message':_0x165d0b instanceof Error?_0x165d0b['message']:String(_0x165d0b)};}}function parseCliConfigJsonFile(_0x4c709b,_0x1475df,_0xe8267b){const _0x1defba=a227_0x534e47,_0x33b489=inspectCliConfigJsonFile(_0x4c709b);if(_0x33b489[_0x1defba(0x18a)]==='missing'||_0x33b489[_0x1defba(0x18a)]===_0x1defba(0x17d))return{};if(_0x33b489['status']==='ok')return _0x33b489[_0x1defba(0x187)];return _0x1475df===_0x1defba(0x16a)&&_0xe8267b&&console[_0x1defba(0x188)](CLI_BIN_NAME+':\x20'+_0xe8267b+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x4c709b+'\x0a\x20\x20'+_0x33b489['message']),{};}function normalizeLegacyConfigShape(_0x5ad7d0){const _0x596a77=a227_0x534e47;if(!_0x5ad7d0||typeof _0x5ad7d0!==_0x596a77(0x17a))return{'config':{},'migrated':![]};const _0x2405ad={..._0x5ad7d0},_0x3c35d2=_0x2405ad[_0x596a77(0x16d)]&&typeof _0x2405ad['apps']===_0x596a77(0x17a)?{..._0x2405ad[_0x596a77(0x16d)]}:{},_0xfafe54=Object[_0x596a77(0x17b)](_0x3c35d2)['length'],_0x35ac14=_0x2405ad['appcode']||_0x2405ad['app'];let _0x4fd92e=![];if(_0x35ac14&&_0xfafe54===0x0){const _0x3153d3=typeof _0x2405ad[_0x596a77(0x193)]===_0x596a77(0x199)&&_0x2405ad[_0x596a77(0x193)][_0x596a77(0x16e)]()?_0x2405ad[_0x596a77(0x193)]:String(_0x35ac14)['trim']();_0x3c35d2[_0x3153d3]={'appcode':String(_0x35ac14)[_0x596a77(0x16e)](),..._0x2405ad[_0x596a77(0x173)]!=null?{'env':_0x2405ad[_0x596a77(0x173)]}:{},..._0x2405ad['apiDir']!=null?{'apiDir':_0x2405ad['apiDir']}:{},..._0x2405ad[_0x596a77(0x183)]!=null?{'cookie':_0x2405ad[_0x596a77(0x183)]}:{},..._0x2405ad[_0x596a77(0x17e)]!=null?{'accessKey':_0x2405ad[_0x596a77(0x17e)]}:{},..._0x2405ad[_0x596a77(0x192)]!=null?{'format':_0x2405ad[_0x596a77(0x192)]}:{},..._0x2405ad['pageSize']!=null?{'pageSize':_0x2405ad['pageSize']}:{},..._0x2405ad[_0x596a77(0x190)]!=null?{'riskLevel':_0x2405ad[_0x596a77(0x190)]}:{},..._0x2405ad[_0x596a77(0x170)]!=null?{'locale':_0x2405ad['locale']}:{}},_0x2405ad[_0x596a77(0x16d)]=_0x3c35d2,delete _0x2405ad[_0x596a77(0x193)],_0x4fd92e=!![];}return(_0x596a77(0x180)in _0x2405ad||_0x596a77(0x167)in _0x2405ad)&&(delete _0x2405ad['appcode'],delete _0x2405ad[_0x596a77(0x167)],_0x4fd92e=!![]),{'config':_0x2405ad,'migrated':_0x4fd92e};}function writeNormalizedConfigIfNeeded(_0x58f502,_0x3e867a){const _0x4bd830=a227_0x534e47,_0x35bb53=JSON[_0x4bd830(0x16b)](_0x3e867a,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x58f502)===_0x35bb53)return;writeConfigFile(_0x58f502,_0x3e867a),normalizedWriteCache[_0x4bd830(0x18c)](_0x58f502,_0x35bb53);}function parseAndNormalizeConfig(_0x1e4c35,_0x193b2e,_0x471752){const _0x1caa73=a227_0x534e47,_0x4cdba2=parseCliConfigJsonFile(_0x1e4c35,_0x193b2e,_0x471752),_0x2aaf8f=normalizeLegacyConfigShape(_0x4cdba2);if(_0x2aaf8f[_0x1caa73(0x19a)])try{writeNormalizedConfigIfNeeded(_0x1e4c35,_0x2aaf8f[_0x1caa73(0x168)]);}catch{}return _0x2aaf8f[_0x1caa73(0x168)];}export function loadRawConfigLayers(_0x591278){const _0x2abc43=a227_0x534e47;let _0x184459={},_0xfe213b={};const _0x23b70e=resolveConfigPath(homedir());_0x23b70e&&(_0x184459=parseAndNormalizeConfig(_0x23b70e,'warn',_0x2abc43(0x18e)));const _0x1ea58b=_0x591278??findProjectRootDirectory(),_0x37d4c2=resolveConfigPath(_0x1ea58b);return _0x37d4c2&&(_0xfe213b=parseAndNormalizeConfig(_0x37d4c2,'warn',_0x2abc43(0x171))),{'globalPath':_0x23b70e,'projectPath':_0x37d4c2,'globalConfig':_0x184459,'projectConfig':_0xfe213b};}const INHERIT_WHITELIST=[a227_0x534e47(0x183),'accessKey',a227_0x534e47(0x170),'format',a227_0x534e47(0x190),'pageSize',a227_0x534e47(0x16f),a227_0x534e47(0x178),a227_0x534e47(0x19b),'runtimeDomain',a227_0x534e47(0x195),a227_0x534e47(0x179),a227_0x534e47(0x197),a227_0x534e47(0x198),a227_0x534e47(0x174)];export function mergeRawConfigLayers(_0x10a7a7){const _0x4b031e=a227_0x534e47,{globalConfig:_0x3495c8,projectConfig:_0x43d33e}=_0x10a7a7,_0x49ea69=!!_0x10a7a7[_0x4b031e(0x185)]||Object['keys'](_0x43d33e)[_0x4b031e(0x186)]>0x0;if(!_0x49ea69)return mergeGlobalOnly(_0x3495c8);return mergeProjectFirst(_0x3495c8,_0x43d33e);}function mergeGlobalOnly(_0x13b55a){const _0x894c7a=a227_0x534e47,_0x47432={..._0x13b55a};delete _0x47432[_0x894c7a(0x175)];const _0x3cb1c3=_0x13b55a[_0x894c7a(0x16d)]&&typeof _0x13b55a[_0x894c7a(0x16d)]===_0x894c7a(0x17a)?_0x13b55a[_0x894c7a(0x16d)]:{};if(Object[_0x894c7a(0x17b)](_0x3cb1c3)[_0x894c7a(0x186)]>0x0)_0x47432[_0x894c7a(0x16d)]=_0x3cb1c3;if(_0x13b55a[_0x894c7a(0x193)])_0x47432[_0x894c7a(0x193)]=_0x13b55a[_0x894c7a(0x193)];return _0x47432;}function mergeProjectFirst(_0x3cd76e,_0x21cb8f){const _0x284fdb=a227_0x534e47,_0x44fffe={..._0x21cb8f};delete _0x44fffe['inherit'];for(const _0x371da1 of INHERIT_WHITELIST){!(_0x371da1 in _0x44fffe)&&_0x371da1 in _0x3cd76e&&(_0x44fffe[_0x371da1]=_0x3cd76e[_0x371da1]);}const _0x210c94=_0x21cb8f[_0x284fdb(0x16d)]&&typeof _0x21cb8f['apps']===_0x284fdb(0x17a)?_0x21cb8f[_0x284fdb(0x16d)]:{};return Object[_0x284fdb(0x17b)](_0x210c94)[_0x284fdb(0x186)]>0x0?_0x44fffe[_0x284fdb(0x16d)]=_0x210c94:delete _0x44fffe[_0x284fdb(0x16d)],'defaultApp'in _0x21cb8f?_0x44fffe[_0x284fdb(0x193)]=_0x21cb8f['defaultApp']:delete _0x44fffe[_0x284fdb(0x193)],_0x44fffe;}export function readRawConfigWithLayers(_0x29fe0d){const _0x5d4b52=loadRawConfigLayers(_0x29fe0d);return{'config':mergeRawConfigLayers(_0x5d4b52),'layers':_0x5d4b52};}export function readRawConfig(_0x19af53){return mergeRawConfigLayers(loadRawConfigLayers(_0x19af53));}export function readConfigFile(_0x1eeac1){const _0x3e9593=a227_0x534e47;return parseAndNormalizeConfig(_0x1eeac1,_0x3e9593(0x172));}export function writeConfigFile(_0x2303a9,_0xb0269e){const _0x5e71b2=a227_0x534e47,_0x1bfc9b=dirname(_0x2303a9);!existsSync(_0x1bfc9b)&&mkdirSync(_0x1bfc9b,{'recursive':!![]});const _0xb16f1=_0x2303a9+_0x5e71b2(0x16c);try{writeFileSync(_0xb16f1,JSON[_0x5e71b2(0x16b)](_0xb0269e,null,0x2)+'\x0a',{'encoding':_0x5e71b2(0x181),'mode':0x180}),renameSync(_0xb16f1,_0x2303a9);}catch(_0x26bc22){try{unlinkSync(_0xb16f1);}catch{}throw _0x26bc22;}}export function resolveWriteConfigPath(_0x2d56a2){const _0x3b1524=a227_0x534e47,_0x463ea1=_0x2d56a2===_0x3b1524(0x17f)?process['cwd']():homedir(),_0x5d6627=resolveConfigPath(_0x463ea1);return _0x5d6627??resolve(_0x463ea1,NEW_CONFIG_NAME);}function a227_0x3551(){const _0x45c59a=['set','4173168euLIkS','Global','2796MwxvhY','riskLevel','missing','format','defaultApp','863851waavgC','skillDomain','6665134sjvzAW','appDomain','localDomain','string','migrated','apiDomain','app','config','8Uszndb','warn','stringify','.tmp','apps','trim','region','locale','Project','silent','env','certificateDomain','inherit','309855ubeASF','1152306htDYOr','userDomain','kbDomain','object','keys','110aRDCRx','empty','accessKey','project','appcode','utf8','3692634DFZmwe','cookie','.rabetbase.json','projectPath','length','data','error','cwd','status','1094apdrGO'];a227_0x3551=function(){return _0x45c59a;};return a227_0x3551();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a220_0x5113f6=a220_0x4c35;(function(_0x20a2d4,_0x385fe5){const _0x289736=a220_0x4c35,_0x1af1e0=_0x20a2d4();while(!![]){try{const _0x11d53b=parseInt(_0x289736(0x187))/0x1+-parseInt(_0x289736(0x18f))/0x2*(-parseInt(_0x289736(0x16e))/0x3)+-parseInt(_0x289736(0x195))/0x4+parseInt(_0x289736(0x18d))/0x5+-parseInt(_0x289736(0x175))/0x6+-parseInt(_0x289736(0x18a))/0x7*(parseInt(_0x289736(0x167))/0x8)+parseInt(_0x289736(0x191))/0x9*(parseInt(_0x289736(0x17e))/0xa);if(_0x11d53b===_0x385fe5)break;else _0x1af1e0['push'](_0x1af1e0['shift']());}catch(_0x50c905){_0x1af1e0['push'](_0x1af1e0['shift']());}}}(a220_0x674a,0x89a5b));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';function a220_0x4c35(_0x890138,_0x2c13b9){_0x890138=_0x890138-0x165;const _0x674a05=a220_0x674a();let _0x4c35fc=_0x674a05[_0x890138];return _0x4c35fc;}import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x5f40d2){return process.env[`RABETBASE_${_0x5f40d2}`]||process.env[`LOVRABET_${_0x5f40d2}`]||undefined;}function optionalString(_0x1f1b01){const _0x112706=a220_0x4c35;return typeof _0x1f1b01===_0x112706(0x181)&&_0x1f1b01[_0x112706(0x18b)]()?_0x1f1b01[_0x112706(0x18b)]():undefined;}export async function createContext(_0x1a5a15){const _0x20abd9=a220_0x4c35,{config:_0x128c21,layers:_0x531490}=readRawConfigWithLayers(),_0x352783=buildConfig(_0x128c21,_0x1a5a15,_0x531490);await initGlobalEnvironment(_0x352783);const {getUserDomain:_0x4e0b12,getApiDomain:_0x3e7016}=await import('./constant/domain.js'),_0x99cd59={'apiDomain':_0x3e7016(),'userDomain':_0x4e0b12()},_0x156feb=await buildAuth(_0x352783);logger['setLogPath'](process['cwd']());const _0x16cb65=(CLI_BIN_NAME+'\x20'+process['argv'][_0x20abd9(0x184)](0x2)[_0x20abd9(0x165)]('\x20'))['trim']();logger['setRawCommand'](_0x16cb65);const {isNonInteractive:_0x17c6cd}=await import(_0x20abd9(0x189)),_0x52e1e1=_0x17c6cd(_0x1a5a15);return{'config':_0x352783,'auth':_0x156feb,'logger':logger,'env':_0x99cd59,'nonInteractive':_0x52e1e1};}export function buildConfigFromFlags(_0x3e1362){const {config:_0x5b6ef6,layers:_0xe9a9e0}=readRawConfigWithLayers();return buildConfig(_0x5b6ef6,_0x3e1362,_0xe9a9e0);}export async function initGlobalEnvironment(_0x7576c4){const _0x4741ee=a220_0x4c35,{initEnv:_0x4c4b1b}=await import(_0x4741ee(0x180));_0x4c4b1b(_0x7576c4['env']);const {initDomains:_0xc5a048}=await import(_0x4741ee(0x177));_0xc5a048({'region':normalizeLovrabetRegion(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x16b)]),'apiDomain':optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x170)]),'userDomain':optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x182)]),'runtimeDomain':optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x16f)]),'skillDomain':optionalString(_0x7576c4['raw']?.[_0x4741ee(0x178)])||optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x179)])||optionalString(_0x7576c4['raw']?.[_0x4741ee(0x171)])||optionalString(_0x7576c4['raw']?.[_0x4741ee(0x168)]),'kbDomain':optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x17b)])||optionalString(_0x7576c4[_0x4741ee(0x190)]?.[_0x4741ee(0x171)])||optionalString(_0x7576c4['raw']?.[_0x4741ee(0x168)]),'appDomain':optionalString(_0x7576c4['raw']?.['appDomain'])});}export function getConfigAppCode(_0x132134){const _0x80704e=a220_0x4c35,_0x25eaf3=readRawConfig(_0x132134);if(_0x25eaf3[_0x80704e(0x17d)]&&typeof _0x25eaf3['apps']===_0x80704e(0x16a)){const _0x100f66=_0x25eaf3[_0x80704e(0x176)];if(_0x100f66)return _0x25eaf3[_0x80704e(0x17d)][_0x100f66]?.['appcode']?String(_0x25eaf3[_0x80704e(0x17d)][_0x100f66]['appcode'])['trim']():undefined;const _0x29bf0b=Object[_0x80704e(0x194)](_0x25eaf3[_0x80704e(0x17d)]);if(_0x29bf0b['length']===0x1&&_0x29bf0b[0x0]?.[_0x80704e(0x173)])return String(_0x29bf0b[0x0]['appcode'])[_0x80704e(0x18b)]();}const _0x1b2e02=_0x25eaf3[_0x80704e(0x173)]||_0x25eaf3['app'];if(typeof _0x1b2e02!==_0x80704e(0x181)||_0x1b2e02[_0x80704e(0x18b)]()==='')return undefined;return _0x1b2e02['trim']();}export function getMultiAppConfigs(_0x4daec9=a220_0x5113f6(0x17a),_0x3cd462){const _0x393f9f=a220_0x5113f6,_0x4b4060=loadRawConfigLayers(_0x3cd462);let _0x39a3b0,_0x89b2ad;if(_0x4daec9===_0x393f9f(0x16c)){const _0x5c48a4=_0x4b4060['globalConfig'][_0x393f9f(0x17d)]&&typeof _0x4b4060['globalConfig'][_0x393f9f(0x17d)]===_0x393f9f(0x16a)?_0x4b4060[_0x393f9f(0x186)][_0x393f9f(0x17d)]:{},_0x3f63d8=_0x4b4060[_0x393f9f(0x174)][_0x393f9f(0x17d)]&&typeof _0x4b4060[_0x393f9f(0x174)][_0x393f9f(0x17d)]==='object'?_0x4b4060[_0x393f9f(0x174)][_0x393f9f(0x17d)]:{};_0x39a3b0={..._0x5c48a4,..._0x3f63d8};const _0x3dee4b=readRawConfig(_0x3cd462);_0x89b2ad=_0x3dee4b[_0x393f9f(0x176)];}else _0x39a3b0=_0x4b4060[_0x393f9f(0x174)][_0x393f9f(0x17d)],_0x89b2ad=_0x4b4060[_0x393f9f(0x174)]['defaultApp'];!_0x89b2ad&&_0x39a3b0&&typeof _0x39a3b0==='object'&&Object[_0x393f9f(0x193)](_0x39a3b0)[_0x393f9f(0x18c)]===0x1&&(_0x89b2ad=Object[_0x393f9f(0x193)](_0x39a3b0)[0x0]);if(!_0x39a3b0||typeof _0x39a3b0!==_0x393f9f(0x16a)||Object[_0x393f9f(0x193)](_0x39a3b0)[_0x393f9f(0x18c)]===0x0)return null;return Object[_0x393f9f(0x166)](_0x39a3b0)[_0x393f9f(0x172)](([_0x578e24,_0x211aff])=>({'name':_0x578e24,'appcode':_0x211aff?.[_0x393f9f(0x173)]||'','isDefault':_0x578e24===_0x89b2ad,'env':_0x211aff?.['env'],'apiDir':_0x211aff?.[_0x393f9f(0x169)],'cookie':_0x211aff?.[_0x393f9f(0x185)]||undefined}))[_0x393f9f(0x17c)](_0x2aa887=>_0x2aa887[_0x393f9f(0x173)]);}export function getTemplateBaseUrl(_0x374ece){const _0x194d0d=a220_0x5113f6,_0x47a241=readRawConfig(_0x374ece);if(_0x47a241['template_base_url']&&typeof _0x47a241[_0x194d0d(0x188)]===_0x194d0d(0x181))return _0x47a241[_0x194d0d(0x188)][_0x194d0d(0x18e)](/\/$/,'');return _0x194d0d(0x192);}function buildConfig(_0x1e28cf,_0x331b92,_0x3c0c4d){return{...resolveAppConfig({'raw':_0x1e28cf,'flags':_0x331b92,'layers':_0x3c0c4d,'readEnv':env}),'raw':_0x1e28cf};}export function resolveApiFilePath(_0x1ffc78,_0x217a6f){const _0x15c2f9=a220_0x5113f6,_0x3c6b9f=resolve(process[_0x15c2f9(0x183)](),_0x1ffc78),_0x58ab14=resolve(_0x3c6b9f,_0x15c2f9(0x16d));if(!_0x217a6f)return _0x58ab14;const _0x183e5a=readRawConfig(),_0x262f01=_0x183e5a[_0x15c2f9(0x17d)]&&typeof _0x183e5a['apps']===_0x15c2f9(0x16a)?_0x183e5a['apps']:{},_0xcdb4c5=Object[_0x15c2f9(0x166)](_0x262f01)[_0x15c2f9(0x17f)](([,_0x3f0103])=>_0x3f0103?.['appcode']===_0x217a6f);if(!_0xcdb4c5)return _0x58ab14;const [_0x3aa144,_0x1e68e3]=_0xcdb4c5,_0x139f4b=typeof _0x183e5a[_0x15c2f9(0x176)]===_0x15c2f9(0x181)?_0x183e5a[_0x15c2f9(0x176)]:undefined;if(_0x1e68e3?.[_0x15c2f9(0x169)])return _0x58ab14;if(_0x139f4b&&_0x3aa144!==_0x139f4b)return resolve(_0x3c6b9f,_0x3aa144+'-api.ts');return _0x58ab14;}function a220_0x674a(){const _0x3839b0=['projectConfig','5314776gxZtTn','defaultApp','./constant/domain.js','skillDomain','skillHubDomain','project','kbDomain','filter','apps','322540WPbzoR','find','./constant/env.js','string','userDomain','cwd','slice','cookie','globalConfig','1117583LpSyln','template_base_url','./utils/is-non-interactive.js','4619643apNYKH','trim','length','1680275lKmcyh','replace','26UljCBe','raw','180ZchedJ','https://g.lovrabet.com/dist/lovrabet-skill','keys','values','2128668SnLQuM','join','entries','8ezGXxN','platformDomain','apiDir','object','region','merged','api.ts','125307ARKOXC','runtimeDomain','apiDomain','agentDomain','map','appcode'];a220_0x674a=function(){return _0x3839b0;};return a220_0x674a();}
1
+ const a228_0x471789=a228_0x5bad;(function(_0x331b08,_0x4dbd9a){const _0x4a75a9=a228_0x5bad,_0x311cc3=_0x331b08();while(!![]){try{const _0x2f3a74=-parseInt(_0x4a75a9(0x7b))/0x1*(parseInt(_0x4a75a9(0x6f))/0x2)+-parseInt(_0x4a75a9(0x8c))/0x3+-parseInt(_0x4a75a9(0x8d))/0x4*(parseInt(_0x4a75a9(0x83))/0x5)+parseInt(_0x4a75a9(0x91))/0x6+parseInt(_0x4a75a9(0x6b))/0x7+-parseInt(_0x4a75a9(0x73))/0x8+parseInt(_0x4a75a9(0x7e))/0x9*(parseInt(_0x4a75a9(0x7d))/0xa);if(_0x2f3a74===_0x4dbd9a)break;else _0x311cc3['push'](_0x311cc3['shift']());}catch(_0xaeae7c){_0x311cc3['push'](_0x311cc3['shift']());}}}(a228_0x1af6,0x2af47));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a228_0x5bad(_0x5f18c0,_0x29f1a3){_0x5f18c0=_0x5f18c0-0x65;const _0x1af62b=a228_0x1af6();let _0x5bad87=_0x1af62b[_0x5f18c0];return _0x5bad87;}import{normalizeLovrabetRegion}from'./constant/region.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x2b8bea){return process.env[`RABETBASE_${_0x2b8bea}`]||process.env[`LOVRABET_${_0x2b8bea}`]||undefined;}function optionalString(_0x31c950){const _0xffee99=a228_0x5bad;return typeof _0x31c950===_0xffee99(0x90)&&_0x31c950[_0xffee99(0x86)]()?_0x31c950[_0xffee99(0x86)]():undefined;}function a228_0x1af6(){const _0x5ce82b=['setRawCommand','appDomain','skillDomain','apps','39855lsaHdJ','raw','cookie','trim','userDomain','join','platformDomain','keys','merged','131793PMLtBE','164ovxawY','apiDomain','env','string','1752222rsXZTV','project','kbDomain','object','skillHubDomain','cwd','appcode','globalConfig','1312003gNiQCf','projectConfig','./constant/env.js','certificateDomain','2FUQrJv','agentDomain','template_base_url','argv','2282480vYZGbz','length','apiDir','replace','./constant/domain.js','defaultApp','map','slice','283636QbdFDO','entries','50XgTGMe','1145097oBnhRb'];a228_0x1af6=function(){return _0x5ce82b;};return a228_0x1af6();}export async function createContext(_0x2d28b5){const _0x3904f0=a228_0x5bad,{config:_0x109cee,layers:_0x36c9bd}=readRawConfigWithLayers(),_0x1b03c8=buildConfig(_0x109cee,_0x2d28b5,_0x36c9bd);await initGlobalEnvironment(_0x1b03c8);const {getUserDomain:_0x6476a2,getApiDomain:_0x13ae9a}=await import('./constant/domain.js'),_0x44b3f6={'apiDomain':_0x13ae9a(),'userDomain':_0x6476a2()},_0x4b9f0c=await buildAuth(_0x1b03c8);logger['setLogPath'](process[_0x3904f0(0x68)]());const _0xd13511=(CLI_BIN_NAME+'\x20'+process[_0x3904f0(0x72)][_0x3904f0(0x7a)](0x2)[_0x3904f0(0x88)]('\x20'))[_0x3904f0(0x86)]();logger[_0x3904f0(0x7f)](_0xd13511);const {isNonInteractive:_0x1834b3}=await import('./utils/is-non-interactive.js'),_0x479abc=_0x1834b3(_0x2d28b5);return{'config':_0x1b03c8,'auth':_0x4b9f0c,'logger':logger,'env':_0x44b3f6,'nonInteractive':_0x479abc};}export function buildConfigFromFlags(_0x32364c){const {config:_0x101cfa,layers:_0x59d0b3}=readRawConfigWithLayers();return buildConfig(_0x101cfa,_0x32364c,_0x59d0b3);}export async function initGlobalEnvironment(_0x4c2c5a){const _0x5c6d99=a228_0x5bad,{initEnv:_0x4364bb}=await import(_0x5c6d99(0x6d));_0x4364bb(_0x4c2c5a['env']);const {initDomains:_0x24f0cb}=await import(_0x5c6d99(0x77));_0x24f0cb({'region':normalizeLovrabetRegion(_0x4c2c5a[_0x5c6d99(0x84)]?.['region']),'apiDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x8e)]),'userDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x87)]),'runtimeDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.['runtimeDomain']),'skillDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x81)])||optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x67)])||optionalString(_0x4c2c5a['raw']?.[_0x5c6d99(0x70)])||optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x89)]),'kbDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x65)])||optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x70)])||optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x89)]),'appDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.[_0x5c6d99(0x80)]),'localDomain':optionalString(_0x4c2c5a[_0x5c6d99(0x84)]?.['localDomain']),'certificateDomain':optionalString(_0x4c2c5a['raw']?.[_0x5c6d99(0x6e)])});}export function getConfigAppCode(_0x5d22c5){const _0x28fc6e=a228_0x5bad,_0x25fec3=readRawConfig(_0x5d22c5);if(_0x25fec3[_0x28fc6e(0x82)]&&typeof _0x25fec3['apps']==='object'){const _0x2c1112=_0x25fec3['defaultApp'];if(_0x2c1112)return _0x25fec3[_0x28fc6e(0x82)][_0x2c1112]?.[_0x28fc6e(0x69)]?String(_0x25fec3['apps'][_0x2c1112]['appcode'])[_0x28fc6e(0x86)]():undefined;const _0x833546=Object['values'](_0x25fec3[_0x28fc6e(0x82)]);if(_0x833546[_0x28fc6e(0x74)]===0x1&&_0x833546[0x0]?.['appcode'])return String(_0x833546[0x0][_0x28fc6e(0x69)])[_0x28fc6e(0x86)]();}const _0x123d69=_0x25fec3['appcode']||_0x25fec3['app'];if(typeof _0x123d69!==_0x28fc6e(0x90)||_0x123d69[_0x28fc6e(0x86)]()==='')return undefined;return _0x123d69[_0x28fc6e(0x86)]();}export function getMultiAppConfigs(_0x2f4072=a228_0x471789(0x92),_0x3a230c){const _0x4c1c52=a228_0x471789,_0x7e5125=loadRawConfigLayers(_0x3a230c);let _0x514167,_0x5e0f1e;if(_0x2f4072===_0x4c1c52(0x8b)){const _0x4a7362=_0x7e5125[_0x4c1c52(0x6a)][_0x4c1c52(0x82)]&&typeof _0x7e5125[_0x4c1c52(0x6a)][_0x4c1c52(0x82)]===_0x4c1c52(0x66)?_0x7e5125[_0x4c1c52(0x6a)][_0x4c1c52(0x82)]:{},_0x4ac96c=_0x7e5125[_0x4c1c52(0x6c)][_0x4c1c52(0x82)]&&typeof _0x7e5125['projectConfig'][_0x4c1c52(0x82)]===_0x4c1c52(0x66)?_0x7e5125[_0x4c1c52(0x6c)][_0x4c1c52(0x82)]:{};_0x514167={..._0x4a7362,..._0x4ac96c};const _0x1b46e3=readRawConfig(_0x3a230c);_0x5e0f1e=_0x1b46e3[_0x4c1c52(0x78)];}else _0x514167=_0x7e5125['projectConfig'][_0x4c1c52(0x82)],_0x5e0f1e=_0x7e5125[_0x4c1c52(0x6c)]['defaultApp'];!_0x5e0f1e&&_0x514167&&typeof _0x514167===_0x4c1c52(0x66)&&Object[_0x4c1c52(0x8a)](_0x514167)[_0x4c1c52(0x74)]===0x1&&(_0x5e0f1e=Object[_0x4c1c52(0x8a)](_0x514167)[0x0]);if(!_0x514167||typeof _0x514167!==_0x4c1c52(0x66)||Object[_0x4c1c52(0x8a)](_0x514167)[_0x4c1c52(0x74)]===0x0)return null;return Object['entries'](_0x514167)[_0x4c1c52(0x79)](([_0x213843,_0x437a60])=>({'name':_0x213843,'appcode':_0x437a60?.[_0x4c1c52(0x69)]||'','isDefault':_0x213843===_0x5e0f1e,'env':_0x437a60?.[_0x4c1c52(0x8f)],'apiDir':_0x437a60?.['apiDir'],'cookie':_0x437a60?.[_0x4c1c52(0x85)]||undefined}))['filter'](_0x414cd4=>_0x414cd4[_0x4c1c52(0x69)]);}export function getTemplateBaseUrl(_0x160c11){const _0x23d9f2=a228_0x471789,_0x2c0768=readRawConfig(_0x160c11);if(_0x2c0768[_0x23d9f2(0x71)]&&typeof _0x2c0768['template_base_url']==='string')return _0x2c0768['template_base_url'][_0x23d9f2(0x76)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x191abd,_0x54f965,_0x310b43){return{...resolveAppConfig({'raw':_0x191abd,'flags':_0x54f965,'layers':_0x310b43,'readEnv':env}),'raw':_0x191abd};}export function resolveApiFilePath(_0x3a902e,_0x27f6d6){const _0x44215c=a228_0x471789,_0x2663b2=resolve(process[_0x44215c(0x68)](),_0x3a902e),_0x3ff7ed=resolve(_0x2663b2,'api.ts');if(!_0x27f6d6)return _0x3ff7ed;const _0x1c37c6=readRawConfig(),_0x3c8dc7=_0x1c37c6[_0x44215c(0x82)]&&typeof _0x1c37c6[_0x44215c(0x82)]===_0x44215c(0x66)?_0x1c37c6[_0x44215c(0x82)]:{},_0x294630=Object[_0x44215c(0x7c)](_0x3c8dc7)['find'](([,_0x234378])=>_0x234378?.[_0x44215c(0x69)]===_0x27f6d6);if(!_0x294630)return _0x3ff7ed;const [_0x268702,_0x141333]=_0x294630,_0x10d16a=typeof _0x1c37c6[_0x44215c(0x78)]==='string'?_0x1c37c6[_0x44215c(0x78)]:undefined;if(_0x141333?.[_0x44215c(0x75)])return _0x3ff7ed;if(_0x10d16a&&_0x268702!==_0x10d16a)return resolve(_0x2663b2,_0x268702+'-api.ts');return _0x3ff7ed;}
@@ -1 +1 @@
1
- (function(_0x2dfa45,_0x1e17ca){const _0x7f3cf5=a221_0x4436,_0x5e491b=_0x2dfa45();while(!![]){try{const _0x553f7=parseInt(_0x7f3cf5(0xf6))/0x1*(-parseInt(_0x7f3cf5(0xf2))/0x2)+parseInt(_0x7f3cf5(0xee))/0x3+parseInt(_0x7f3cf5(0xf7))/0x4+-parseInt(_0x7f3cf5(0xef))/0x5+parseInt(_0x7f3cf5(0xf4))/0x6*(-parseInt(_0x7f3cf5(0xf8))/0x7)+-parseInt(_0x7f3cf5(0xf0))/0x8+-parseInt(_0x7f3cf5(0xf1))/0x9*(-parseInt(_0x7f3cf5(0xf9))/0xa);if(_0x553f7===_0x1e17ca)break;else _0x5e491b['push'](_0x5e491b['shift']());}catch(_0x5e7760){_0x5e491b['push'](_0x5e491b['shift']());}}}(a221_0xb055,0x66058));function a221_0xb055(){const _0x4fca68=['exec','push','set','974049oEkRep','4163950BOGlGe','3422632jkitiw','423AMnIgp','152534MqAAfL','cwd','1250958pxNBib','api.ts','7SHIavN','960604qzuxuv','28UNTMIB','527980wifcoS','find','utf-8','get'];a221_0xb055=function(){return _0x4fca68;};return a221_0xb055();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x58b5de){const _0x1431a3=a221_0x4436,_0x53bace=[],_0x2e79e4=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x311b2b;while((_0x311b2b=_0x2e79e4[_0x1431a3(0xfd)](_0x58b5de))!==null){_0x53bace[_0x1431a3(0xec)]({'datasetCode':_0x311b2b[0x1],'tableName':_0x311b2b[0x2],'name':_0x311b2b[0x3],'alias':_0x311b2b[0x4]});}return _0x53bace;}export function loadAliasMap(_0x260ba7,_0x393934,_0x588034){const _0x26f744=a221_0x4436,_0x120045=_0x588034??resolve(process[_0x26f744(0xf3)](),_0x260ba7,_0x26f744(0xf5));if(cache['has'](_0x120045))return cache[_0x26f744(0xfc)](_0x120045);if(!existsSync(_0x120045))return cache['set'](_0x120045,[]),[];try{const _0x1dcdd8=readFileSync(_0x120045,_0x26f744(0xfb)),_0x1cf25a=parseApiFile(_0x1dcdd8);return cache[_0x26f744(0xed)](_0x120045,_0x1cf25a),_0x1cf25a;}catch{return cache[_0x26f744(0xed)](_0x120045,[]),[];}}export function resolveAlias(_0x7fac70,_0x467e31,_0x5e6b81,_0x521932){const _0x134ab5=a221_0x4436;if(!_0x467e31)return undefined;const _0x46bc2c=loadAliasMap(_0x7fac70,_0x5e6b81,_0x521932),_0x46dc14=_0x46bc2c[_0x134ab5(0xfa)](_0x520f6a=>_0x520f6a['alias']===_0x467e31);return _0x46dc14?.['datasetCode'];}function a221_0x4436(_0x1b0a06,_0x4f8cc7){_0x1b0a06=_0x1b0a06-0xec;const _0xb055=a221_0xb055();let _0x443691=_0xb055[_0x1b0a06];return _0x443691;}export function listAliases(_0x21c562,_0x12882c,_0x13d3b2){return loadAliasMap(_0x21c562,_0x12882c,_0x13d3b2);}
1
+ (function(_0x43acce,_0x335b59){const _0x4bf2f8=a229_0x2f10,_0x580e76=_0x43acce();while(!![]){try{const _0x46d611=parseInt(_0x4bf2f8(0x139))/0x1*(-parseInt(_0x4bf2f8(0x144))/0x2)+parseInt(_0x4bf2f8(0x13d))/0x3*(parseInt(_0x4bf2f8(0x138))/0x4)+parseInt(_0x4bf2f8(0x13b))/0x5+-parseInt(_0x4bf2f8(0x141))/0x6+parseInt(_0x4bf2f8(0x148))/0x7*(-parseInt(_0x4bf2f8(0x143))/0x8)+parseInt(_0x4bf2f8(0x13f))/0x9*(parseInt(_0x4bf2f8(0x14a))/0xa)+parseInt(_0x4bf2f8(0x149))/0xb;if(_0x46d611===_0x335b59)break;else _0x580e76['push'](_0x580e76['shift']());}catch(_0x39ae62){_0x580e76['push'](_0x580e76['shift']());}}}(a229_0x10e7,0xa62bb));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a229_0x10e7(){const _0x280960=['exec','api.ts','23988UJKmqT','1305owPILA','get','5542115OxNTIX','push','3GdeIzL','datasetCode','470115XCzsPc','has','5426532dEPXDg','alias','264SNXILS','700xhequD','cwd','set','find','141883xJyGoF','4343449cClwtJ','230oFlXMc'];a229_0x10e7=function(){return _0x280960;};return a229_0x10e7();}function parseApiFile(_0x1b95dc){const _0x107012=a229_0x2f10,_0x3fe99e=[],_0x55270f=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x572284;while((_0x572284=_0x55270f[_0x107012(0x14b)](_0x1b95dc))!==null){_0x3fe99e[_0x107012(0x13c)]({'datasetCode':_0x572284[0x1],'tableName':_0x572284[0x2],'name':_0x572284[0x3],'alias':_0x572284[0x4]});}return _0x3fe99e;}function a229_0x2f10(_0x379bb1,_0x4d1ce7){_0x379bb1=_0x379bb1-0x137;const _0x10e73a=a229_0x10e7();let _0x2f10f2=_0x10e73a[_0x379bb1];return _0x2f10f2;}export function loadAliasMap(_0x483872,_0x269fe9,_0x51333e){const _0x4a996a=a229_0x2f10,_0x3cda9=_0x51333e??resolve(process[_0x4a996a(0x145)](),_0x483872,_0x4a996a(0x137));if(cache[_0x4a996a(0x140)](_0x3cda9))return cache[_0x4a996a(0x13a)](_0x3cda9);if(!existsSync(_0x3cda9))return cache[_0x4a996a(0x146)](_0x3cda9,[]),[];try{const _0x1fea3f=readFileSync(_0x3cda9,'utf-8'),_0x5080ef=parseApiFile(_0x1fea3f);return cache[_0x4a996a(0x146)](_0x3cda9,_0x5080ef),_0x5080ef;}catch{return cache[_0x4a996a(0x146)](_0x3cda9,[]),[];}}export function resolveAlias(_0x8985a1,_0x5dc7cc,_0x480ddd,_0x56a65a){const _0xf1a115=a229_0x2f10;if(!_0x5dc7cc)return undefined;const _0x5557fa=loadAliasMap(_0x8985a1,_0x480ddd,_0x56a65a),_0x1c4e63=_0x5557fa[_0xf1a115(0x147)](_0xbb9e0e=>_0xbb9e0e[_0xf1a115(0x142)]===_0x5dc7cc);return _0x1c4e63?.[_0xf1a115(0x13e)];}export function listAliases(_0x5d9acf,_0x43c521,_0x22ef2b){return loadAliasMap(_0x5d9acf,_0x43c521,_0x22ef2b);}
@@ -421,6 +421,35 @@ export declare function listDatasets(appCode: string, options?: {
421
421
  }): Promise<DatasetItem[]>;
422
422
  export declare function deleteDataset(datasetId: number, cascade: boolean): Promise<void>;
423
423
  export declare function restoreDataset(appCode: string, datasetId: number): Promise<void>;
424
+ export interface UserDeletedDatasetColumn {
425
+ id: number;
426
+ datasetId: number;
427
+ code: string;
428
+ name?: string | null;
429
+ deleted: boolean;
430
+ [key: string]: unknown;
431
+ }
432
+ export declare function listUserDeletedDatasetColumns(datasetId: number): Promise<UserDeletedDatasetColumn[]>;
433
+ export declare function restoreDatasetColumns(datasetId: number, columnIds: number[]): Promise<number>;
434
+ export type DeploymentSyncType = "dataset" | "bff" | "sql";
435
+ export type DeploymentSyncAction = string;
436
+ export interface DeploymentSyncInput {
437
+ appCode: string;
438
+ dbLinkId: number;
439
+ env?: "dev" | "test" | "pre" | "prod";
440
+ bizType: DeploymentSyncType;
441
+ bizCodes: string[];
442
+ }
443
+ export interface DeploymentSyncItem {
444
+ bizCode: string;
445
+ action: DeploymentSyncAction;
446
+ targetId?: number | null;
447
+ message?: string | null;
448
+ }
449
+ export interface DeploymentSyncResult {
450
+ items: DeploymentSyncItem[];
451
+ }
452
+ export declare function syncDeploymentMetadata(input: DeploymentSyncInput): Promise<DeploymentSyncResult>;
424
453
  export type RecycleBinResourceType = "DATASET";
425
454
  export interface RecycleBinResourceLog {
426
455
  id: number;
@@ -869,6 +898,11 @@ export interface ErBusinessGroupUpdatePayload {
869
898
  datasetCode: string;
870
899
  businessGroup?: string;
871
900
  }
901
+ export interface DbTableBusinessGroupUpdatePayload {
902
+ dbLinkId: number;
903
+ tableName: string;
904
+ businessGroup: string;
905
+ }
872
906
  export interface ErBusinessGroupSummary {
873
907
  appCode: string;
874
908
  dblinkId: number;
@@ -883,6 +917,7 @@ export declare function createErRelation(payload: ErRelationMutationPayload): Pr
883
917
  export declare function updateErRelation(payload: ErRelationMutationPayload): Promise<boolean>;
884
918
  export declare function deleteErRelation(payload: ErRelationDeletePayload): Promise<boolean>;
885
919
  export declare function updateErBusinessGroup(payload: ErBusinessGroupUpdatePayload): Promise<boolean>;
920
+ export declare function updateDbTableBusinessGroup(payload: DbTableBusinessGroupUpdatePayload): Promise<boolean>;
886
921
  export declare function getErBusinessGroupSummary(appCode: string, dblinkId: number): Promise<ErBusinessGroupSummary>;
887
922
  export interface DbLinkInfo {
888
923
  id: number;