@lovrabet/rabetbase-cli 2.3.15-beta.2 → 2.3.15

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 (264) 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/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -1
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- const a184_0x344f5d=a184_0x2f9b;function a184_0x2f9b(_0x3be3dc,_0x54ebf2){_0x3be3dc=_0x3be3dc-0x89;const _0x5881b0=a184_0x5881();let _0x2f9b66=_0x5881b0[_0x3be3dc];return _0x2f9b66;}function a184_0x5881(){const _0x498e15=['add','workspace\x20add','91WblLbS','395JJwrHs','1FwAYUq','518510goxiIz','292dmSZgd','9TvarOn','1189226gniSmr','7601664eqArmw','6383223ohJmUf','32646CyIOkh','5733EwUVhP','write','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','12632QOsvfk'];a184_0x5881=function(){return _0x498e15;};return a184_0x5881();}(function(_0x37fc3f,_0x1634fb){const _0x2ad3aa=a184_0x2f9b,_0x2b29fa=_0x37fc3f();while(!![]){try{const _0xb690bb=-parseInt(_0x2ad3aa(0x98))/0x1*(-parseInt(_0x2ad3aa(0x8c))/0x2)+-parseInt(_0x2ad3aa(0x90))/0x3*(-parseInt(_0x2ad3aa(0x8a))/0x4)+parseInt(_0x2ad3aa(0x97))/0x5*(-parseInt(_0x2ad3aa(0x8f))/0x6)+-parseInt(_0x2ad3aa(0x96))/0x7*(-parseInt(_0x2ad3aa(0x93))/0x8)+parseInt(_0x2ad3aa(0x8b))/0x9*(parseInt(_0x2ad3aa(0x89))/0xa)+parseInt(_0x2ad3aa(0x8e))/0xb+-parseInt(_0x2ad3aa(0x8d))/0xc;if(_0xb690bb===_0x1634fb)break;else _0x2b29fa['push'](_0x2b29fa['shift']());}catch(_0x170f4a){_0x2b29fa['push'](_0x2b29fa['shift']());}}}(a184_0x5881,0x4ef94));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a184_0x344f5d(0x94),'description':a184_0x344f5d(0x92),'risk':a184_0x344f5d(0x91),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x110488=>validateAppName(_0x110488,a184_0x344f5d(0x95)),'execute':_0x1124fd=>runAppAdd(_0x1124fd,'workspace\x20add')};
1
+ const a184_0x4388f2=a184_0x505c;(function(_0x8ab59f,_0x1f1c15){const _0x3401db=a184_0x505c,_0x4c1cc2=_0x8ab59f();while(!![]){try{const _0x49a570=parseInt(_0x3401db(0x1af))/0x1*(-parseInt(_0x3401db(0x1b4))/0x2)+-parseInt(_0x3401db(0x1b8))/0x3+parseInt(_0x3401db(0x1b3))/0x4*(-parseInt(_0x3401db(0x1b2))/0x5)+-parseInt(_0x3401db(0x1b0))/0x6+-parseInt(_0x3401db(0x1b1))/0x7+parseInt(_0x3401db(0x1ad))/0x8+-parseInt(_0x3401db(0x1b5))/0x9*(-parseInt(_0x3401db(0x1b6))/0xa);if(_0x49a570===_0x1f1c15)break;else _0x4c1cc2['push'](_0x4c1cc2['shift']());}catch(_0x9cb4ae){_0x4c1cc2['push'](_0x4c1cc2['shift']());}}}(a184_0x1892,0xa508e));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a184_0x505c(_0x2613ee,_0x299954){_0x2613ee=_0x2613ee-0x1ac;const _0x189290=a184_0x1892();let _0x505c76=_0x189290[_0x2613ee];return _0x505c76;}export const workspaceAddDefinition={'service':'workspace','command':'add','description':a184_0x4388f2(0x1b7),'risk':a184_0x4388f2(0x1b9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a184_0x4388f2(0x1ac),'description':a184_0x4388f2(0x1ba),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xe13baf=>validateAppName(_0xe13baf,a184_0x4388f2(0x1ae)),'execute':_0x13767d=>runAppAdd(_0x13767d,a184_0x4388f2(0x1ae))};function a184_0x1892(){const _0x30ec7e=['4745384WRtiYk','35RZCNwz','24116WtPrUx','70320hubfDV','867591enQCdb','170OZbBxS','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','2401617sZANvk','write','App\x20profile\x20name','name','10509864JHtLXS','workspace\x20add','1LhBMaO','4324320tmuvLO'];a184_0x1892=function(){return _0x30ec7e;};return a184_0x1892();}
@@ -1 +1 @@
1
- const a185_0x17faa9=a185_0x3123;(function(_0x23c22d,_0x2e7a7d){const _0x4ef892=a185_0x3123,_0x29768c=_0x23c22d();while(!![]){try{const _0x3a7b6b=parseInt(_0x4ef892(0xe3))/0x1+parseInt(_0x4ef892(0xfa))/0x2*(-parseInt(_0x4ef892(0x102))/0x3)+parseInt(_0x4ef892(0xf8))/0x4+parseInt(_0x4ef892(0xf6))/0x5*(-parseInt(_0x4ef892(0xea))/0x6)+parseInt(_0x4ef892(0xfb))/0x7*(-parseInt(_0x4ef892(0x110))/0x8)+-parseInt(_0x4ef892(0xe9))/0x9*(parseInt(_0x4ef892(0xf4))/0xa)+parseInt(_0x4ef892(0x115))/0xb*(parseInt(_0x4ef892(0xf2))/0xc);if(_0x3a7b6b===_0x2e7a7d)break;else _0x29768c['push'](_0x29768c['shift']());}catch(_0x273fe0){_0x29768c['push'](_0x29768c['shift']());}}}(a185_0x3660,0x4a965));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a185_0x17faa9(0x113),SAFE_PROFILE_KEYS=['appcode',a185_0x17faa9(0x10d),'apiDir',a185_0x17faa9(0x107),a185_0x17faa9(0xed),a185_0x17faa9(0x101),a185_0x17faa9(0xe6)],workspaceFlags=[{'name':'app','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0x10b)},{'name':'appcode','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe5)},{'name':'env','type':a185_0x17faa9(0xef),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a185_0x17faa9(0xee),'type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xfe)},{'name':a185_0x17faa9(0x11b),'type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0x10a),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe8),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe7)}];function a185_0x3123(_0x2dd26a,_0x846acd){_0x2dd26a=_0x2dd26a-0xe3;const _0x3660af=a185_0x3660();let _0x312356=_0x3660af[_0x2dd26a];return _0x312356;}function isRecord(_0x53945d){const _0x29f0ea=a185_0x17faa9;return!!_0x53945d&&typeof _0x53945d===_0x29f0ea(0x11c)&&!Array['isArray'](_0x53945d);}function a185_0x3660(){const _0x357aa8=['1043VhUGvk','\x20workspace\x20','workspace.','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','\x20--appcode\x20<code>`.','project','riskLevel','3chBpzX','workspace','length','app','.\x20Credentials:\x20not\x20written.','format','write',').\x20Config:\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','env','\x20--app\x20','Missing\x20workspace\x20app\x20selector.','13720ZFjSAZ','trim','\x22\x20not\x20found.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Use\x20`','6589YTAfro','validation','apps','initialized','globalConfig','defaultApp','defaultFormat','object','208872NfJPLg','str','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','locale','Locale\x20for\x20this\x20workspace\x20app\x20profile','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','171twxOWU','30kXCDIz','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20(appcode:\x20','pageSize','apiDir','string','appcode','Invalid\x20appcode:\x20','18708fNyYHt','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','225070frserp','use','58245cAtlbq','init','1857472cCwAth','keys','1120318gdMdhY'];a185_0x3660=function(){return _0x357aa8;};return a185_0x3660();}function assertValidAppcode(_0x3f5184){const _0x4f5105=a185_0x17faa9,{valid:_0x345b35,message:_0x10488e}=validateAppcode(_0x3f5184);if(!_0x345b35)throw CliErrors[_0x4f5105(0x116)](_0x4f5105(0xf1)+_0x3f5184,_0x10488e);}function sanitizeProfile(_0x7c1756){if(!isRecord(_0x7c1756))return{};const _0x2631a4={};for(const _0x1aa981 of SAFE_PROFILE_KEYS){if(_0x7c1756[_0x1aa981]!==undefined)_0x2631a4[_0x1aa981]=_0x7c1756[_0x1aa981];}return _0x2631a4;}function cloneProfile(_0x298c62){return isRecord(_0x298c62)?{..._0x298c62}:{};}function collectWorkspaceProfileOverrides(_0x2043bb){const _0x30a784=a185_0x17faa9,_0x41865b={},_0x333ebb=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0x10d)),_0xf73f0a=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0xee)),_0x500e2e=_0x2043bb['str'](_0x30a784(0x11b)),_0xbabd42=_0x2043bb['flag'](_0x30a784(0xed)),_0x5c44f4=_0x2043bb['str']('riskLevel'),_0x37131f=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0xe6));if(_0x333ebb)_0x41865b[_0x30a784(0x10d)]=_0x333ebb;if(_0xf73f0a)_0x41865b[_0x30a784(0xee)]=_0xf73f0a;if(_0x500e2e)_0x41865b[_0x30a784(0x107)]=_0x500e2e;if(_0xbabd42!==undefined&&_0xbabd42!=='')_0x41865b[_0x30a784(0xed)]=Number(_0xbabd42);if(_0x5c44f4)_0x41865b[_0x30a784(0x101)]=_0x5c44f4;if(_0x37131f)_0x41865b[_0x30a784(0xe6)]=_0x37131f;return _0x41865b;}async function validateWorkspaceArgs(_0x15583c){const _0x3a02df=a185_0x17faa9,_0x355d43=_0x15583c['str'](_0x3a02df(0x105))['trim'](),_0x4223c8=_0x15583c[_0x3a02df(0xe4)](_0x3a02df(0xf0))[_0x3a02df(0x111)]();if(!_0x355d43&&!_0x4223c8)throw CliErrors[_0x3a02df(0x116)](_0x3a02df(0x10f),_0x3a02df(0x114)+CLI_BIN_NAME+_0x3a02df(0xf3)+CLI_BIN_NAME+_0x3a02df(0x10c));if(_0x4223c8)assertValidAppcode(_0x4223c8);}function resolveKnownApps(){const _0x5fff7f=a185_0x17faa9,{config:_0x531616,layers:_0x3af07c}=readRawConfigWithLayers(),_0xfd23cb=isRecord(_0x531616['apps'])?_0x531616[_0x5fff7f(0x117)]:{},_0x3101d6=isRecord(_0x3af07c[_0x5fff7f(0x119)][_0x5fff7f(0x117)])?_0x3af07c[_0x5fff7f(0x119)]['apps']:{};return{..._0x3101d6,..._0xfd23cb};}async function configureWorkspace(_0x29bffe,_0x3756a2){const _0x11b1ce=a185_0x17faa9,_0x385ef6=_0x29bffe[_0x11b1ce(0xe4)](_0x11b1ce(0x105))[_0x11b1ce(0x111)](),_0x147378=_0x29bffe[_0x11b1ce(0xe4)](_0x11b1ce(0xf0))[_0x11b1ce(0x111)](),_0x318820=_0x385ef6||_0x147378;if(!_0x318820)throw CliErrors[_0x11b1ce(0x116)](_0x11b1ce(0x10f),_0x11b1ce(0x114)+CLI_BIN_NAME+_0x11b1ce(0xf3)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x147378)assertValidAppcode(_0x147378);const _0x2b7309=resolveWriteConfigPath(_0x11b1ce(0x100)),_0x199dbf=readConfigFile(_0x2b7309),_0x43613a=resolveKnownApps(),_0x11e99f=isRecord(_0x199dbf[_0x11b1ce(0x117)])?{..._0x199dbf[_0x11b1ce(0x117)]}:{},_0x1ec031=cloneProfile(_0x11e99f[_0x318820]),_0x51b9fe=sanitizeProfile(_0x43613a[_0x318820]),_0x4e9a1b=_0x147378?{}:_0x51b9fe,_0x36c399=_0x147378||_0x4e9a1b[_0x11b1ce(0xf0)];if(!_0x36c399){const _0x165050=Object[_0x11b1ce(0xf9)](_0x43613a),_0x20813a=_0x165050[_0x11b1ce(0x104)]===0x0?_0x11b1ce(0x114)+CLI_BIN_NAME+_0x11b1ce(0xfc)+_0x3756a2+_0x11b1ce(0x10e)+_0x318820+_0x11b1ce(0xff):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x165050['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x318820+_0x11b1ce(0x112),_0x20813a);}assertValidAppcode(String(_0x36c399));const _0x2ef2f7={..._0x4e9a1b,..._0x1ec031,'appcode':String(_0x36c399),...collectWorkspaceProfileOverrides(_0x29bffe)};return _0x11e99f[_0x318820]=_0x2ef2f7,_0x199dbf[_0x11b1ce(0x117)]=_0x11e99f,_0x199dbf[_0x11b1ce(0x11a)]=_0x318820,delete _0x199dbf[_0x11b1ce(0xf0)],delete _0x199dbf[_0x11b1ce(0x105)],_0x2ef2f7['env']&&(_0x199dbf['env']=_0x2ef2f7[_0x11b1ce(0x10d)]),writeConfigFile(_0x2b7309,_0x199dbf),{'ok':!![],'message':'Workspace\x20'+(_0x3756a2==='init'?_0x11b1ce(0x118):'updated')+':\x20'+_0x318820+_0x11b1ce(0xec)+_0x2ef2f7[_0x11b1ce(0xf0)]+_0x11b1ce(0x109)+_0x2b7309+_0x11b1ce(0x106),'data':{'operation':_0x11b1ce(0xfd)+_0x3756a2,'configPath':_0x2b7309,'app':_0x318820,'appcode':_0x2ef2f7[_0x11b1ce(0xf0)],'env':_0x2ef2f7[_0x11b1ce(0x10d)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a185_0x17faa9(0x103),'command':a185_0x17faa9(0xf7),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4cce39=>configureWorkspace(_0x4cce39,'init')},workspaceUseDefinition={'service':a185_0x17faa9(0x103),'command':a185_0x17faa9(0xf5),'description':a185_0x17faa9(0xeb),'risk':a185_0x17faa9(0x108),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x10f43d=>configureWorkspace(_0x10f43d,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a185_0x57e65f=a185_0x1f9d;(function(_0x537416,_0x2df960){const _0x7c48f5=a185_0x1f9d,_0x5c6c78=_0x537416();while(!![]){try{const _0x1d14d5=parseInt(_0x7c48f5(0x1ed))/0x1+parseInt(_0x7c48f5(0x1bf))/0x2*(parseInt(_0x7c48f5(0x1ef))/0x3)+-parseInt(_0x7c48f5(0x1c3))/0x4*(-parseInt(_0x7c48f5(0x1eb))/0x5)+parseInt(_0x7c48f5(0x1c4))/0x6*(-parseInt(_0x7c48f5(0x1d2))/0x7)+-parseInt(_0x7c48f5(0x1f2))/0x8*(parseInt(_0x7c48f5(0x1d1))/0x9)+parseInt(_0x7c48f5(0x1be))/0xa+-parseInt(_0x7c48f5(0x1dc))/0xb;if(_0x1d14d5===_0x2df960)break;else _0x5c6c78['push'](_0x5c6c78['shift']());}catch(_0x472640){_0x5c6c78['push'](_0x5c6c78['shift']());}}}(a185_0x53cf,0xabcb8));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a185_0x57e65f(0x1d9),SAFE_PROFILE_KEYS=[a185_0x57e65f(0x1d3),a185_0x57e65f(0x1bb),'apiDir',a185_0x57e65f(0x1d7),a185_0x57e65f(0x1e9),a185_0x57e65f(0x1db),a185_0x57e65f(0x1ea)],workspaceFlags=[{'name':a185_0x57e65f(0x1e4),'type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1e0)},{'name':a185_0x57e65f(0x1d3),'type':a185_0x57e65f(0x1cf),'description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a185_0x57e65f(0x1bb),'type':'string','description':a185_0x57e65f(0x1c5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a185_0x57e65f(0x1df),'type':'string','description':a185_0x57e65f(0x1cc)},{'name':'defaultFormat','type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1c6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a185_0x57e65f(0x1e9),'type':a185_0x57e65f(0x1e7),'description':a185_0x57e65f(0x1bc)},{'name':'riskLevel','type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1e2),'enum':[...RISK_LEVEL_VALUES]},{'name':a185_0x57e65f(0x1ea),'type':a185_0x57e65f(0x1cf),'description':a185_0x57e65f(0x1dd)}];function isRecord(_0x423fca){const _0x132ede=a185_0x57e65f;return!!_0x423fca&&typeof _0x423fca==='object'&&!Array[_0x132ede(0x1da)](_0x423fca);}function assertValidAppcode(_0x539c35){const _0x46dcfa=a185_0x57e65f,{valid:_0x493bf4,message:_0x4cde44}=validateAppcode(_0x539c35);if(!_0x493bf4)throw CliErrors[_0x46dcfa(0x1b9)](_0x46dcfa(0x1b7)+_0x539c35,_0x4cde44);}function sanitizeProfile(_0x35f7f3){if(!isRecord(_0x35f7f3))return{};const _0x478b7d={};for(const _0x2eb97c of SAFE_PROFILE_KEYS){if(_0x35f7f3[_0x2eb97c]!==undefined)_0x478b7d[_0x2eb97c]=_0x35f7f3[_0x2eb97c];}return _0x478b7d;}function cloneProfile(_0x2baaac){return isRecord(_0x2baaac)?{..._0x2baaac}:{};}function collectWorkspaceProfileOverrides(_0x3844ed){const _0x3911b0=a185_0x57e65f,_0x311805={},_0x18f202=_0x3844ed[_0x3911b0(0x1ec)]('env'),_0x312b1c=_0x3844ed[_0x3911b0(0x1ec)]('apiDir'),_0x3620ae=_0x3844ed[_0x3911b0(0x1ec)]('defaultFormat'),_0xe99056=_0x3844ed[_0x3911b0(0x1c1)](_0x3911b0(0x1e9)),_0xd70d6e=_0x3844ed[_0x3911b0(0x1ec)](_0x3911b0(0x1db)),_0x4cb797=_0x3844ed[_0x3911b0(0x1ec)](_0x3911b0(0x1ea));if(_0x18f202)_0x311805['env']=_0x18f202;if(_0x312b1c)_0x311805[_0x3911b0(0x1df)]=_0x312b1c;if(_0x3620ae)_0x311805[_0x3911b0(0x1d7)]=_0x3620ae;if(_0xe99056!==undefined&&_0xe99056!=='')_0x311805[_0x3911b0(0x1e9)]=Number(_0xe99056);if(_0xd70d6e)_0x311805[_0x3911b0(0x1db)]=_0xd70d6e;if(_0x4cb797)_0x311805[_0x3911b0(0x1ea)]=_0x4cb797;return _0x311805;}async function validateWorkspaceArgs(_0x1390c8){const _0x2951b4=a185_0x57e65f,_0x1cb4ea=_0x1390c8[_0x2951b4(0x1ec)](_0x2951b4(0x1e4))[_0x2951b4(0x1cd)](),_0x5828bf=_0x1390c8['str'](_0x2951b4(0x1d3))['trim']();if(!_0x1cb4ea&&!_0x5828bf)throw CliErrors[_0x2951b4(0x1b9)](_0x2951b4(0x1b6),_0x2951b4(0x1f1)+CLI_BIN_NAME+_0x2951b4(0x1ce)+CLI_BIN_NAME+_0x2951b4(0x1c0));if(_0x5828bf)assertValidAppcode(_0x5828bf);}function resolveKnownApps(){const _0x2bf6e0=a185_0x57e65f,{config:_0x28fe4b,layers:_0x412610}=readRawConfigWithLayers(),_0x584186=isRecord(_0x28fe4b[_0x2bf6e0(0x1c7)])?_0x28fe4b[_0x2bf6e0(0x1c7)]:{},_0x5e0168=isRecord(_0x412610['globalConfig']['apps'])?_0x412610['globalConfig'][_0x2bf6e0(0x1c7)]:{};return{..._0x5e0168,..._0x584186};}async function configureWorkspace(_0x26f311,_0x45fec0){const _0x2ee0ce=a185_0x57e65f,_0x4c549a=_0x26f311[_0x2ee0ce(0x1ec)](_0x2ee0ce(0x1e4))[_0x2ee0ce(0x1cd)](),_0x6eb439=_0x26f311[_0x2ee0ce(0x1ec)](_0x2ee0ce(0x1d3))[_0x2ee0ce(0x1cd)](),_0xba10a1=_0x4c549a||_0x6eb439;if(!_0xba10a1)throw CliErrors['validation'](_0x2ee0ce(0x1b6),'Use\x20`'+CLI_BIN_NAME+_0x2ee0ce(0x1ce)+CLI_BIN_NAME+_0x2ee0ce(0x1c0));if(_0x6eb439)assertValidAppcode(_0x6eb439);const _0x2acc7c=resolveWriteConfigPath(_0x2ee0ce(0x1c8)),_0x24fe2d=readConfigFile(_0x2acc7c),_0x5de587=resolveKnownApps(),_0x3788ad=isRecord(_0x24fe2d[_0x2ee0ce(0x1c7)])?{..._0x24fe2d['apps']}:{},_0x1a321f=cloneProfile(_0x3788ad[_0xba10a1]),_0x478e0e=sanitizeProfile(_0x5de587[_0xba10a1]),_0x3f4285=_0x6eb439?{}:_0x478e0e,_0x1821aa=_0x6eb439||_0x3f4285[_0x2ee0ce(0x1d3)];if(!_0x1821aa){const _0x3768c8=Object['keys'](_0x5de587),_0x492bf6=_0x3768c8[_0x2ee0ce(0x1ee)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x2ee0ce(0x1b8)+_0x45fec0+_0x2ee0ce(0x1e8)+_0xba10a1+_0x2ee0ce(0x1de):_0x2ee0ce(0x1e1)+_0x3768c8[_0x2ee0ce(0x1c2)](',\x20');throw CliErrors[_0x2ee0ce(0x1b9)](_0x2ee0ce(0x1d0)+_0xba10a1+_0x2ee0ce(0x1d6),_0x492bf6);}assertValidAppcode(String(_0x1821aa));const _0x485ab7={..._0x3f4285,..._0x1a321f,'appcode':String(_0x1821aa),...collectWorkspaceProfileOverrides(_0x26f311)};return _0x3788ad[_0xba10a1]=_0x485ab7,_0x24fe2d[_0x2ee0ce(0x1c7)]=_0x3788ad,_0x24fe2d[_0x2ee0ce(0x1c9)]=_0xba10a1,delete _0x24fe2d[_0x2ee0ce(0x1d3)],delete _0x24fe2d[_0x2ee0ce(0x1e4)],_0x485ab7[_0x2ee0ce(0x1bb)]&&(_0x24fe2d[_0x2ee0ce(0x1bb)]=_0x485ab7[_0x2ee0ce(0x1bb)]),writeConfigFile(_0x2acc7c,_0x24fe2d),{'ok':!![],'message':_0x2ee0ce(0x1d5)+(_0x45fec0===_0x2ee0ce(0x1e5)?'initialized':'updated')+':\x20'+_0xba10a1+_0x2ee0ce(0x1e6)+_0x485ab7['appcode']+_0x2ee0ce(0x1d4)+_0x2acc7c+_0x2ee0ce(0x1d8),'data':{'operation':_0x2ee0ce(0x1e3)+_0x45fec0,'configPath':_0x2acc7c,'app':_0xba10a1,'appcode':_0x485ab7[_0x2ee0ce(0x1d3)],'env':_0x485ab7[_0x2ee0ce(0x1bb)]??null,'credentialsWritten':![]}};}function a185_0x53cf(){const _0x1aed82=['env','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','write','12401530jHVbpo','60AtRReC','\x20workspace\x20use\x20--app\x20<name>`.','flag','join','2471496pUPike','6IQxPab','Target\x20environment','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','apps','project','defaultApp','workspace','use','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','trim','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','string','App\x20\x22','36ZAFLjH','6120058qfOTvw','appcode',').\x20Config:\x20','Workspace\x20','\x22\x20not\x20found.','format','.\x20Credentials:\x20not\x20written.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','isArray','riskLevel','27648357pexSGE','Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20--appcode\x20<code>`.','apiDir','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','workspace.','app','init','\x20(appcode:\x20','number','\x20--app\x20','pageSize','locale','10zTuJLS','str','889754teAnqO','length','88347tdzejp','Switch\x20the\x20current\x20workspace\x20app\x20binding','Use\x20`','315344icWTpl','Missing\x20workspace\x20app\x20selector.','Invalid\x20appcode:\x20','\x20workspace\x20','validation','Initialize\x20the\x20current\x20workspace\x20app\x20binding'];a185_0x53cf=function(){return _0x1aed82;};return a185_0x53cf();}const workspaceInitDefinition={'service':a185_0x57e65f(0x1ca),'command':a185_0x57e65f(0x1e5),'description':a185_0x57e65f(0x1ba),'risk':a185_0x57e65f(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xe5b4da=>configureWorkspace(_0xe5b4da,a185_0x57e65f(0x1e5))},workspaceUseDefinition={'service':a185_0x57e65f(0x1ca),'command':a185_0x57e65f(0x1cb),'description':a185_0x57e65f(0x1f0),'risk':a185_0x57e65f(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x299c8a=>configureWorkspace(_0x299c8a,a185_0x57e65f(0x1cb))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a185_0x1f9d(_0x317ee4,_0x3c282d){_0x317ee4=_0x317ee4-0x1b6;const _0x53cf14=a185_0x53cf();let _0x1f9d98=_0x53cf14[_0x317ee4];return _0x1f9d98;}export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a186_0x5beca5=a186_0x481f;(function(_0x166ddc,_0x427299){const _0x44809b=a186_0x481f,_0x1b9c52=_0x166ddc();while(!![]){try{const _0x42ce18=-parseInt(_0x44809b(0x78))/0x1*(parseInt(_0x44809b(0x74))/0x2)+parseInt(_0x44809b(0x76))/0x3+-parseInt(_0x44809b(0x75))/0x4*(parseInt(_0x44809b(0x7b))/0x5)+parseInt(_0x44809b(0x80))/0x6+parseInt(_0x44809b(0x7a))/0x7+parseInt(_0x44809b(0x7d))/0x8+-parseInt(_0x44809b(0x79))/0x9;if(_0x42ce18===_0x427299)break;else _0x1b9c52['push'](_0x1b9c52['shift']());}catch(_0x3df782){_0x1b9c52['push'](_0x1b9c52['shift']());}}}(a186_0x4144,0xe9161));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a186_0x481f(_0x17a679,_0x4a0a33){_0x17a679=_0x17a679-0x74;const _0x41446e=a186_0x4144();let _0x481f07=_0x41446e[_0x17a679];return _0x481f07;}export const workspaceRemoveDefinition={'service':a186_0x5beca5(0x82),'command':a186_0x5beca5(0x81),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a186_0x5beca5(0x7c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a186_0x5beca5(0x77),'description':a186_0x5beca5(0x7e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x2f8c4e=>validateAppName(_0x2f8c4e,a186_0x5beca5(0x7f)),'execute':_0x1aabb6=>runAppRemove(_0x1aabb6,'workspace\x20remove')};function a186_0x4144(){const _0x4373a1=['8683150wtmFyS','26695GHjDEf','high-risk-write','14687936rCXHmt','App\x20profile\x20name\x20to\x20remove','workspace\x20remove','3012624FdLiCe','remove','workspace','1210HGLGpJ','172ImhqSw','4122894AXSuZg','name','498psLMzw','31205304wAjKHy'];a186_0x4144=function(){return _0x4373a1;};return a186_0x4144();}
1
+ const a186_0x43d28e=a186_0xe712;function a186_0x5032(){const _0x1ea7c4=['636evIHAe','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','2956720HABxFT','591UhefZB','remove','9hRZVAW','name','App\x20profile\x20name\x20to\x20remove','1077175mOPEVu','11972zaZLWU','81utXRGl','39823YfQctj','4032760ekvten','10236NPjhft','21510346VwRZdi','workspace\x20remove','high-risk-write'];a186_0x5032=function(){return _0x1ea7c4;};return a186_0x5032();}(function(_0x1320f9,_0x17a599){const _0x2c93cc=a186_0xe712,_0x342c57=_0x1320f9();while(!![]){try{const _0x3b7da4=parseInt(_0x2c93cc(0xb9))/0x1*(parseInt(_0x2c93cc(0xb8))/0x2)+-parseInt(_0x2c93cc(0xb2))/0x3*(parseInt(_0x2c93cc(0xbc))/0x4)+-parseInt(_0x2c93cc(0xb7))/0x5+-parseInt(_0x2c93cc(0xc0))/0x6*(parseInt(_0x2c93cc(0xba))/0x7)+parseInt(_0x2c93cc(0xbb))/0x8*(-parseInt(_0x2c93cc(0xb4))/0x9)+-parseInt(_0x2c93cc(0xb1))/0xa+parseInt(_0x2c93cc(0xbd))/0xb;if(_0x3b7da4===_0x17a599)break;else _0x342c57['push'](_0x342c57['shift']());}catch(_0x59749b){_0x342c57['push'](_0x342c57['shift']());}}}(a186_0x5032,0x4da29));function a186_0xe712(_0x4898bb,_0x1d7ae8){_0x4898bb=_0x4898bb-0xb0;const _0x503201=a186_0x5032();let _0xe7125c=_0x503201[_0x4898bb];return _0xe7125c;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a186_0x43d28e(0xb3),'description':a186_0x43d28e(0xb0),'risk':a186_0x43d28e(0xbf),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a186_0x43d28e(0xb5),'description':a186_0x43d28e(0xb6),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3c635e=>validateAppName(_0x3c635e,a186_0x43d28e(0xbe)),'execute':_0xc5d5cd=>runAppRemove(_0xc5d5cd,a186_0x43d28e(0xbe))};
@@ -1 +1 @@
1
- const a187_0x2dfb95=a187_0x2f8c;(function(_0x53c229,_0x45f244){const _0x2172f7=a187_0x2f8c,_0x90e370=_0x53c229();while(!![]){try{const _0x48ff35=-parseInt(_0x2172f7(0x1c4))/0x1+-parseInt(_0x2172f7(0x1bd))/0x2+parseInt(_0x2172f7(0x1cc))/0x3+parseInt(_0x2172f7(0x1b3))/0x4*(parseInt(_0x2172f7(0x1ce))/0x5)+parseInt(_0x2172f7(0x1c9))/0x6+parseInt(_0x2172f7(0x1bb))/0x7*(parseInt(_0x2172f7(0x1bf))/0x8)+parseInt(_0x2172f7(0x1ae))/0x9*(-parseInt(_0x2172f7(0x1c3))/0xa);if(_0x48ff35===_0x45f244)break;else _0x90e370['push'](_0x90e370['shift']());}catch(_0x3cc4f3){_0x90e370['push'](_0x90e370['shift']());}}}(a187_0x26e0,0x91214));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1c7)];function a187_0x26e0(){const _0x508560=['6712UvlYGI','env','trim','Risk\x20level','22940oUudoi','959893izcgco','accessKey','join','riskLevel','pageSize','2368704GwfTRy','cookie','Auth\x20cookie','939015wcMNuH','Config\x20key\x20(','133660CqKzgk','defaultFormat','Default\x20page\x20size','filter','en-US','entries','locale','zh-CN','string','number','length','342DvwLvI','map','format','Locale','appcode','76BacAwZ','defaultApp','toLowerCase','Access\x20key','app','keys','apiDir','API\x20directory\x20path','7609VbNove','inherit','972346VvuuMi','apps'];a187_0x26e0=function(){return _0x508560;};return a187_0x26e0();}export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1b9)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x26c3cf){const _0x18bad4=a187_0x2dfb95;return[..._0x26c3cf][_0x18bad4(0x1c6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a187_0x2f8c(_0x8aab27,_0x2ffe68){_0x8aab27=_0x8aab27-0x1a5;const _0x26e042=a187_0x26e0();let _0x2f8cc5=_0x26e042[_0x8aab27];return _0x2f8cc5;}export function isTopLevelConfigKey(_0x1f8b11){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1f8b11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x375d90=a187_0x2dfb95;return _0x375d90(0x1cd)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a187_0x2dfb95(0x1c0),'apiDir':a187_0x2dfb95(0x1b9),'cookie':a187_0x2dfb95(0x1ca),'accessKey':a187_0x2dfb95(0x1c5),'defaultFormat':a187_0x2dfb95(0x1b0),'pageSize':a187_0x2dfb95(0x1c8),'riskLevel':a187_0x2dfb95(0x1c7),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x23ff72=a187_0x2dfb95;return[{'name':_0x23ff72(0x1c0),'type':_0x23ff72(0x1ab),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x23ff72(0x1b9),'type':'string','description':_0x23ff72(0x1ba)},{'name':_0x23ff72(0x1ca),'type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1cb),'hidden':!![]},{'name':'accessKey','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b6),'hidden':!![]},{'name':_0x23ff72(0x1cf),'type':_0x23ff72(0x1ab),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x23ff72(0x1c8),'type':_0x23ff72(0x1ac),'description':_0x23ff72(0x1a5)},{'name':'riskLevel','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1c2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b1)}];}export function collectAppProfileOverrides(_0x125c50){const _0x7a9518=a187_0x2dfb95,_0x21f21c={};for(const [_0x5d0d4d,_0x440468]of Object[_0x7a9518(0x1a8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x348858=_0x125c50(_0x5d0d4d);if(!_0x348858)continue;_0x21f21c[_0x440468]=_0x440468===_0x7a9518(0x1c8)?Number(_0x348858):_0x348858;}return _0x21f21c;}export function buildAppProfileListFields(_0x442567){const _0x43346b=a187_0x2dfb95;return{'env':_0x442567[_0x43346b(0x1c0)]??null,'apiDir':_0x442567[_0x43346b(0x1b9)]??null,'hasCookie':!!_0x442567[_0x43346b(0x1ca)],'hasAccessKey':!!_0x442567['accessKey'],'format':_0x442567[_0x43346b(0x1b0)]??null,'pageSize':_0x442567[_0x43346b(0x1c8)]??null,'riskLevel':_0x442567[_0x43346b(0x1c7)]??null,'locale':_0x442567[_0x43346b(0x1a9)]??null};}export function buildAppDoctorFields(_0x5babfe,_0x499022){const _0x29908d=a187_0x2dfb95;return{'env':{'value':_0x5babfe[_0x29908d(0x1c0)]||_0x499022['env'],'source':_0x5babfe[_0x29908d(0x1c0)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'apiDir':{'value':_0x5babfe[_0x29908d(0x1b9)]||_0x499022['apiDir'],'source':_0x5babfe[_0x29908d(0x1b9)]?_0x29908d(0x1b7):'inherit'},'cookie':{'value':_0x5babfe[_0x29908d(0x1ca)]||_0x499022[_0x29908d(0x1ca)],'source':_0x5babfe[_0x29908d(0x1ca)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'accessKey':{'value':_0x5babfe[_0x29908d(0x1c5)]||_0x499022[_0x29908d(0x1c5)],'source':_0x5babfe[_0x29908d(0x1c5)]?_0x29908d(0x1b7):_0x29908d(0x1bc)}};}export function buildCanonicalAppConfig(_0x3f6da4,_0x5b0f47){const _0x44ec4f=a187_0x2dfb95,_0xb934de=_0x3f6da4[_0x44ec4f(0x1af)](_0x315bc2=>String(_0x315bc2||'')[_0x44ec4f(0x1c1)]())[_0x44ec4f(0x1a6)](Boolean);if(_0xb934de[_0x44ec4f(0x1ad)]===0x0)return{};const _0x5d6cc1={};for(const _0x1d589c of _0xb934de){_0x5d6cc1[_0x1d589c]=_0x5b0f47?{'appcode':_0x1d589c,'env':_0x5b0f47}:{'appcode':_0x1d589c};}return{'apps':_0x5d6cc1,'defaultApp':_0xb934de[0x0]};}export function buildCanonicalProjectConfig(_0x1096bd,_0x540281){const _0x1ebde8=a187_0x2dfb95,{appCodes:appCodes=[],env:_0x7b5e1f,metadata:_0x51b503}=_0x540281,_0x5538bd={..._0x1096bd,..._0x51b503||{}};delete _0x5538bd[_0x1ebde8(0x1b2)],delete _0x5538bd['app'];if(_0x7b5e1f)_0x5538bd[_0x1ebde8(0x1c0)]=_0x7b5e1f;else!_0x5538bd['env']&&(_0x5538bd[_0x1ebde8(0x1c0)]=DEFAULT_CONFIG_VALUES['env']);const _0x2e9c08=buildCanonicalAppConfig(appCodes,_0x5538bd[_0x1ebde8(0x1c0)]);return Object[_0x1ebde8(0x1b8)](_0x2e9c08)['length']>0x0&&(_0x5538bd[_0x1ebde8(0x1be)]=_0x2e9c08[_0x1ebde8(0x1be)],_0x5538bd[_0x1ebde8(0x1b4)]=_0x2e9c08['defaultApp']),_0x5538bd;}const LOCALE_MAP={'zh':a187_0x2dfb95(0x1aa),'zh-cn':a187_0x2dfb95(0x1aa),'zh_cn':a187_0x2dfb95(0x1aa),'en':'en-US','en-us':'en-US','en_us':a187_0x2dfb95(0x1a7)};export function normalizeLocale(_0xd8ef6){const _0x1516a7=a187_0x2dfb95;if(!_0xd8ef6)return null;return LOCALE_MAP[_0xd8ef6[_0x1516a7(0x1b5)]()]??null;}
1
+ const a187_0x7d5fd6=a187_0x4bb7;(function(_0x52df9c,_0x1460c1){const _0x183e7d=a187_0x4bb7,_0x52417d=_0x52df9c();while(!![]){try{const _0x279f87=-parseInt(_0x183e7d(0x1ea))/0x1+parseInt(_0x183e7d(0x206))/0x2+-parseInt(_0x183e7d(0x1e4))/0x3+parseInt(_0x183e7d(0x1e8))/0x4+parseInt(_0x183e7d(0x201))/0x5+-parseInt(_0x183e7d(0x1f7))/0x6+parseInt(_0x183e7d(0x1ef))/0x7;if(_0x279f87===_0x1460c1)break;else _0x52417d['push'](_0x52417d['shift']());}catch(_0xe0e71f){_0x52417d['push'](_0x52417d['shift']());}}}(a187_0x2b74,0x9b209));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a187_0x7d5fd6(0x204),a187_0x7d5fd6(0x1fb),a187_0x7d5fd6(0x1f1),a187_0x7d5fd6(0x1ee),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a187_0x7d5fd6(0x1ec),a187_0x7d5fd6(0x200),a187_0x7d5fd6(0x1f1),a187_0x7d5fd6(0x1ee),a187_0x7d5fd6(0x204),a187_0x7d5fd6(0x1fb),'apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x458467){const _0x94925e=a187_0x7d5fd6;return[..._0x458467][_0x94925e(0x202)](',\x20');}function a187_0x4bb7(_0x5cf02a,_0x1f9bee){_0x5cf02a=_0x5cf02a-0x1e4;const _0x2b747c=a187_0x2b74();let _0x4bb777=_0x2b747c[_0x5cf02a];return _0x4bb777;}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x48fd40){return TOP_LEVEL_CONFIG_KEYS['has'](_0x48fd40);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x38ec22=a187_0x7d5fd6;return _0x38ec22(0x1e7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a187_0x7d5fd6(0x203),'cookie':'cookie','accessKey':'accessKey','defaultFormat':'format','pageSize':a187_0x7d5fd6(0x1f9),'riskLevel':'riskLevel','locale':a187_0x7d5fd6(0x1f1)};export function getAppProfileFlagDefs(){const _0x331964=a187_0x7d5fd6;return[{'name':'env','type':_0x331964(0x1ed),'description':_0x331964(0x208),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x331964(0x1ed),'description':'API\x20directory\x20path'},{'name':_0x331964(0x204),'type':_0x331964(0x1ed),'description':_0x331964(0x207),'hidden':!![]},{'name':_0x331964(0x1fb),'type':_0x331964(0x1ed),'description':_0x331964(0x1f4),'hidden':!![]},{'name':'defaultFormat','type':_0x331964(0x1ed),'description':_0x331964(0x1e5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x331964(0x1f9),'type':'number','description':_0x331964(0x1f2)},{'name':'riskLevel','type':_0x331964(0x1ed),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x331964(0x1f1),'type':_0x331964(0x1ed),'description':_0x331964(0x1fc)}];}export function collectAppProfileOverrides(_0x3c61ad){const _0x43ea75=a187_0x7d5fd6,_0x21bef7={};for(const [_0x2f6abd,_0x469464]of Object[_0x43ea75(0x1f8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x203b37=_0x3c61ad(_0x2f6abd);if(!_0x203b37)continue;_0x21bef7[_0x469464]=_0x469464===_0x43ea75(0x1f9)?Number(_0x203b37):_0x203b37;}return _0x21bef7;}function a187_0x2b74(){const _0x43aa09=['filter','Config\x20key\x20(','2892456vLLrzd','riskLevel','867835sOkqPy','en-US','appcode','string','format','5948194PDqJvR','defaultApp','locale','Default\x20page\x20size','apps','Access\x20key','toLowerCase','inherit','4490100HbzpSa','entries','pageSize','trim','accessKey','Locale','zh-CN','keys','app','env','5292355QAvTmo','join','apiDir','cookie','length','400640BcQuTq','Auth\x20cookie','Target\x20environment','1740183DoUYiu','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)'];a187_0x2b74=function(){return _0x43aa09;};return a187_0x2b74();}export function buildAppProfileListFields(_0x18a570){const _0x46173d=a187_0x7d5fd6;return{'env':_0x18a570[_0x46173d(0x200)]??null,'apiDir':_0x18a570[_0x46173d(0x203)]??null,'hasCookie':!!_0x18a570[_0x46173d(0x204)],'hasAccessKey':!!_0x18a570[_0x46173d(0x1fb)],'format':_0x18a570['format']??null,'pageSize':_0x18a570['pageSize']??null,'riskLevel':_0x18a570[_0x46173d(0x1e9)]??null,'locale':_0x18a570[_0x46173d(0x1f1)]??null};}export function buildAppDoctorFields(_0x59ae49,_0x32df67){const _0xb9ad25=a187_0x7d5fd6;return{'env':{'value':_0x59ae49[_0xb9ad25(0x200)]||_0x32df67[_0xb9ad25(0x200)],'source':_0x59ae49[_0xb9ad25(0x200)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'apiDir':{'value':_0x59ae49[_0xb9ad25(0x203)]||_0x32df67['apiDir'],'source':_0x59ae49[_0xb9ad25(0x203)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'cookie':{'value':_0x59ae49['cookie']||_0x32df67[_0xb9ad25(0x204)],'source':_0x59ae49[_0xb9ad25(0x204)]?_0xb9ad25(0x1ff):_0xb9ad25(0x1f6)},'accessKey':{'value':_0x59ae49[_0xb9ad25(0x1fb)]||_0x32df67[_0xb9ad25(0x1fb)],'source':_0x59ae49[_0xb9ad25(0x1fb)]?_0xb9ad25(0x1ff):'inherit'}};}export function buildCanonicalAppConfig(_0x5eb3df,_0x1b78a9){const _0x1cd23e=a187_0x7d5fd6,_0x3dc7df=_0x5eb3df['map'](_0x3ff080=>String(_0x3ff080||'')[_0x1cd23e(0x1fa)]())[_0x1cd23e(0x1e6)](Boolean);if(_0x3dc7df[_0x1cd23e(0x205)]===0x0)return{};const _0xca2965={};for(const _0x155779 of _0x3dc7df){_0xca2965[_0x155779]=_0x1b78a9?{'appcode':_0x155779,'env':_0x1b78a9}:{'appcode':_0x155779};}return{'apps':_0xca2965,'defaultApp':_0x3dc7df[0x0]};}export function buildCanonicalProjectConfig(_0x2e294b,_0x3b63c3){const _0x9868b=a187_0x7d5fd6,{appCodes:appCodes=[],env:_0x426373,metadata:_0x317cfe}=_0x3b63c3,_0xb5421e={..._0x2e294b,..._0x317cfe||{}};delete _0xb5421e[_0x9868b(0x1ec)],delete _0xb5421e[_0x9868b(0x1ff)];if(_0x426373)_0xb5421e['env']=_0x426373;else!_0xb5421e[_0x9868b(0x200)]&&(_0xb5421e[_0x9868b(0x200)]=DEFAULT_CONFIG_VALUES[_0x9868b(0x200)]);const _0x4d8d77=buildCanonicalAppConfig(appCodes,_0xb5421e['env']);return Object[_0x9868b(0x1fe)](_0x4d8d77)['length']>0x0&&(_0xb5421e[_0x9868b(0x1f3)]=_0x4d8d77[_0x9868b(0x1f3)],_0xb5421e[_0x9868b(0x1f0)]=_0x4d8d77[_0x9868b(0x1f0)]),_0xb5421e;}const LOCALE_MAP={'zh':a187_0x7d5fd6(0x1fd),'zh-cn':a187_0x7d5fd6(0x1fd),'zh_cn':a187_0x7d5fd6(0x1fd),'en':a187_0x7d5fd6(0x1eb),'en-us':a187_0x7d5fd6(0x1eb),'en_us':a187_0x7d5fd6(0x1eb)};export function normalizeLocale(_0x313a4c){const _0x3ba724=a187_0x7d5fd6;if(!_0x313a4c)return null;return LOCALE_MAP[_0x313a4c[_0x3ba724(0x1f5)]()]??null;}
@@ -1 +1 @@
1
- function a188_0x5d1b(){const _0x2bba12=['4NbOWaZ','642600zwoJax','10254EBHJFa','1056295BorTod','36tbHzkz','1142086mkwUIG','82LlSuIP','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5380KSCZeB','1588300HmBahE','1297386bKFlKa','819lWdnjx','16folOqu'];a188_0x5d1b=function(){return _0x2bba12;};return a188_0x5d1b();}function a188_0x27e2(_0x357310,_0x4ad1fd){_0x357310=_0x357310-0x9a;const _0x5d1b98=a188_0x5d1b();let _0x27e2a4=_0x5d1b98[_0x357310];return _0x27e2a4;}const a188_0x42b2f3=a188_0x27e2;(function(_0x55bf2d,_0x5e8680){const _0x8efcf2=a188_0x27e2,_0x5152db=_0x55bf2d();while(!![]){try{const _0x4bc48f=-parseInt(_0x8efcf2(0x9a))/0x1*(parseInt(_0x8efcf2(0xa5))/0x2)+-parseInt(_0x8efcf2(0xa0))/0x3+parseInt(_0x8efcf2(0x9f))/0x4*(parseInt(_0x8efcf2(0xa2))/0x5)+parseInt(_0x8efcf2(0xa1))/0x6*(parseInt(_0x8efcf2(0x9d))/0x7)+parseInt(_0x8efcf2(0x9e))/0x8*(-parseInt(_0x8efcf2(0x9c))/0x9)+parseInt(_0x8efcf2(0x9b))/0xa+-parseInt(_0x8efcf2(0xa4))/0xb*(-parseInt(_0x8efcf2(0xa3))/0xc);if(_0x4bc48f===_0x5e8680)break;else _0x5152db['push'](_0x5152db['shift']());}catch(_0x18c8f4){_0x5152db['push'](_0x5152db['shift']());}}}(a188_0x5d1b,0x26ae0));export const CLI_VERSION_POLICY_URL=a188_0x42b2f3(0xa6);
1
+ function a188_0x3928(_0x4ee53a,_0x5940ba){_0x4ee53a=_0x4ee53a-0x1ad;const _0x29b418=a188_0x29b4();let _0x392861=_0x29b418[_0x4ee53a];return _0x392861;}(function(_0x38ce74,_0xca5282){const _0x24fb5a=a188_0x3928,_0x3ef0d9=_0x38ce74();while(!![]){try{const _0x465637=-parseInt(_0x24fb5a(0x1b7))/0x1*(-parseInt(_0x24fb5a(0x1b4))/0x2)+parseInt(_0x24fb5a(0x1ad))/0x3+parseInt(_0x24fb5a(0x1b5))/0x4*(parseInt(_0x24fb5a(0x1ae))/0x5)+-parseInt(_0x24fb5a(0x1b1))/0x6+parseInt(_0x24fb5a(0x1b6))/0x7*(parseInt(_0x24fb5a(0x1b0))/0x8)+-parseInt(_0x24fb5a(0x1b2))/0x9+-parseInt(_0x24fb5a(0x1af))/0xa*(parseInt(_0x24fb5a(0x1b3))/0xb);if(_0x465637===_0xca5282)break;else _0x3ef0d9['push'](_0x3ef0d9['shift']());}catch(_0x88ab00){_0x3ef0d9['push'](_0x3ef0d9['shift']());}}}(a188_0x29b4,0x9a4e5));function a188_0x29b4(){const _0x395768=['50vqeqcR','52376Nmtpkw','7072758lOEkIj','7599474DsakWi','2587541atgdFe','2bUEkqa','268936MlppGh','1169eCNpAE','831010UwUERv','3098910egyPkg','65QWrtuJ'];a188_0x29b4=function(){return _0x395768;};return a188_0x29b4();}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
@@ -1 +1 @@
1
- const a189_0x3a44f2=a189_0xf1d5;(function(_0x132502,_0x5449e0){const _0x5880a8=a189_0xf1d5,_0x2d6974=_0x132502();while(!![]){try{const _0x3bc448=parseInt(_0x5880a8(0x17f))/0x1+parseInt(_0x5880a8(0x1a1))/0x2*(-parseInt(_0x5880a8(0x14b))/0x3)+parseInt(_0x5880a8(0x19e))/0x4+parseInt(_0x5880a8(0x1a5))/0x5*(-parseInt(_0x5880a8(0x1a9))/0x6)+-parseInt(_0x5880a8(0x15e))/0x7*(parseInt(_0x5880a8(0x152))/0x8)+parseInt(_0x5880a8(0x164))/0x9*(-parseInt(_0x5880a8(0x147))/0xa)+parseInt(_0x5880a8(0x17c))/0xb*(parseInt(_0x5880a8(0x19f))/0xc);if(_0x3bc448===_0x5449e0)break;else _0x2d6974['push'](_0x2d6974['shift']());}catch(_0x4184c3){_0x2d6974['push'](_0x2d6974['shift']());}}}(a189_0xd1ae,0x84947));export const CLI_BIN_NAME=a189_0x3a44f2(0x168);export const CLI_DISPLAY_NAME=a189_0x3a44f2(0x148);export const NPM_PACKAGE_NAME=a189_0x3a44f2(0x153);export const GLOBAL_FLAGS=[{'name':a189_0x3a44f2(0x1a3),'meowKey':a189_0x3a44f2(0x1a3),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x19d),'hint':a189_0x3a44f2(0x159)},{'name':a189_0x3a44f2(0x1a0),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x3a44f2(0x157)},{'name':a189_0x3a44f2(0x14f),'meowKey':a189_0x3a44f2(0x14f),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x13c),'hint':a189_0x3a44f2(0x1b4)},{'name':'format','meowKey':a189_0x3a44f2(0x161),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17a),'hint':a189_0x3a44f2(0x1ae)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x3a44f2(0x15c)},{'name':a189_0x3a44f2(0x13d),'meowKey':a189_0x3a44f2(0x163),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x162)},{'name':a189_0x3a44f2(0x15a),'meowKey':'yes','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x15b)},{'name':a189_0x3a44f2(0x138),'meowKey':'nonInteractive','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x19a)},{'name':a189_0x3a44f2(0x171),'meowKey':'global','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x186)},{'name':a189_0x3a44f2(0x1a8),'meowKey':a189_0x3a44f2(0x1a8),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x134)},{'name':'ci','meowKey':'ci','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x16b),'hidden':!![]},{'name':a189_0x3a44f2(0x17e),'meowKey':a189_0x3a44f2(0x17e),'type':a189_0x3a44f2(0x1ac),'description':'Show\x20help'},{'name':a189_0x3a44f2(0x143),'meowKey':a189_0x3a44f2(0x143),'type':'string','description':a189_0x3a44f2(0x182),'hidden':!![]},{'name':'title','meowKey':a189_0x3a44f2(0x14e),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17b),'hidden':!![]},{'name':a189_0x3a44f2(0x1aa),'meowKey':a189_0x3a44f2(0x1aa),'type':a189_0x3a44f2(0x1ac),'description':'Clear','hidden':!![]},{'name':a189_0x3a44f2(0x178),'meowKey':'watch','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x151),'hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':a189_0x3a44f2(0x19c),'hidden':!![]},{'name':'params','meowKey':a189_0x3a44f2(0x197),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x198),'hidden':!![]},{'name':a189_0x3a44f2(0x15f),'meowKey':a189_0x3a44f2(0x15f),'type':a189_0x3a44f2(0x172),'description':'Dataset\x20code','hidden':!![]},{'name':a189_0x3a44f2(0x18c),'meowKey':a189_0x3a44f2(0x18c),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x3a44f2(0x167),'type':a189_0x3a44f2(0x1ac),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x185),'hidden':!![]},{'name':a189_0x3a44f2(0x19b),'meowKey':a189_0x3a44f2(0x19b),'type':a189_0x3a44f2(0x172),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x137),'hidden':!![]},{'name':a189_0x3a44f2(0x1a7),'meowKey':'sqlcode','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18e),'hidden':!![]},{'name':'sql-name','meowKey':a189_0x3a44f2(0x1b2),'type':'string','description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x145),'meowKey':a189_0x3a44f2(0x145),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x156),'meowKey':'dbId','type':'string','description':a189_0x3a44f2(0x194),'hidden':!![]},{'name':a189_0x3a44f2(0x16c),'meowKey':a189_0x3a44f2(0x16c),'type':a189_0x3a44f2(0x172),'description':'DB\x20ID','hidden':!![]},{'name':a189_0x3a44f2(0x136),'meowKey':a189_0x3a44f2(0x136),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x165),'hidden':!![]},{'name':a189_0x3a44f2(0x195),'meowKey':a189_0x3a44f2(0x18b),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x142),'hidden':!![]},{'name':a189_0x3a44f2(0x1b1),'meowKey':a189_0x3a44f2(0x1b1),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x188),'hidden':!![]},{'name':a189_0x3a44f2(0x154),'meowKey':a189_0x3a44f2(0x154),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x140),'hidden':!![]},{'name':a189_0x3a44f2(0x16d),'meowKey':a189_0x3a44f2(0x16d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x196),'hidden':!![]},{'name':a189_0x3a44f2(0x150),'meowKey':'code','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x181),'hidden':!![]},{'name':'sql','meowKey':a189_0x3a44f2(0x13e),'type':a189_0x3a44f2(0x172),'description':'SQL\x20string','hidden':!![]},{'name':a189_0x3a44f2(0x1b0),'meowKey':a189_0x3a44f2(0x1b0),'type':'string','description':a189_0x3a44f2(0x183),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':a189_0x3a44f2(0x1a2),'meowKey':a189_0x3a44f2(0x1a2),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':'boolean','description':a189_0x3a44f2(0x13a),'hidden':!![]},{'name':a189_0x3a44f2(0x139),'meowKey':'key','type':'string','description':a189_0x3a44f2(0x173),'hidden':!![]},{'name':a189_0x3a44f2(0x193),'meowKey':'value','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18f),'hidden':!![]},{'name':a189_0x3a44f2(0x14d),'meowKey':a189_0x3a44f2(0x14d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16f),'hidden':!![]},{'name':a189_0x3a44f2(0x166),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x3a44f2(0x17d),'meowKey':a189_0x3a44f2(0x170),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16a),'hidden':!![]},{'name':a189_0x3a44f2(0x169),'meowKey':'reveal','type':'boolean','description':a189_0x3a44f2(0x14c),'hidden':!![]},{'name':a189_0x3a44f2(0x13f),'meowKey':a189_0x3a44f2(0x13f),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x1ad),'hidden':!![]},{'name':a189_0x3a44f2(0x160),'meowKey':a189_0x3a44f2(0x160),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x146),'hidden':!![]},{'name':a189_0x3a44f2(0x14a),'meowKey':a189_0x3a44f2(0x14a),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x199),'hidden':!![]},{'name':a189_0x3a44f2(0x15d),'meowKey':a189_0x3a44f2(0x15d),'type':'boolean','description':a189_0x3a44f2(0x192),'hidden':!![]},{'name':a189_0x3a44f2(0x1af),'meowKey':'expectedCount','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1b3),'hidden':!![]},{'name':a189_0x3a44f2(0x144),'meowKey':a189_0x3a44f2(0x144),'type':'string','description':a189_0x3a44f2(0x141),'hidden':!![]},{'name':a189_0x3a44f2(0x180),'meowKey':a189_0x3a44f2(0x187),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x174),'hidden':!![]},{'name':a189_0x3a44f2(0x13b),'meowKey':'sort','type':a189_0x3a44f2(0x172),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a189_0x3a44f2(0x1a6),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x133),'hidden':!![]},{'name':a189_0x3a44f2(0x155),'meowKey':a189_0x3a44f2(0x175),'type':a189_0x3a44f2(0x172),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x3a44f2(0x18a),'type':'string','description':a189_0x3a44f2(0x190),'hidden':!![]},{'name':a189_0x3a44f2(0x135),'meowKey':a189_0x3a44f2(0x191),'type':a189_0x3a44f2(0x172),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a189_0x3a44f2(0x158),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x176),'hidden':!![]},{'name':a189_0x3a44f2(0x1a4),'meowKey':a189_0x3a44f2(0x16e),'type':'string','description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':'function-node','meowKey':a189_0x3a44f2(0x189),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18d),'hidden':!![]}];function a189_0xd1ae(){const _0x57a595=['<expr>','verbose','2198LGkprH','datasetcode','confirm','format','Preview\x20operation\x20without\x20executing','dryRun','27xhaCjG','Description','stdin','enableBffSave','rabetbase','reveal','Read\x20value\x20from\x20environment\x20variable','Alias\x20for\x20--non-interactive','dbid','keyword','operationType','Tags','fromEnv','global','string','Config\x20key','Parent\x20menu\x20id','expectPath','Asynchronous\x20task\x20ID','SQL\x20name','watch','meowKey','Output\x20format','Title','11wzpLCh','from-env','help','780287tCaHqg','parent-id','Code\x20filter','Name','Schemas','Apply\x20to\x20all','Record\x20ID','Use\x20global\x20config\x20scope','parentId','Page\x20number','functionNode','expectedChildrenCount','descriptionFile','all','Function\x20node','SQL\x20code','Config\x20value','Expected\x20current\x20child\x20count','menuIds','Verbose\x20output','value','DB\x20ID','description-file','Keyword\x20filter','params','JSON\x20params','Use\x20remote','Force\x20non-interactive\x20mode\x20(CI)','type','Output\x20path','Override\x20appcode','1277636RRdxuo','14864904AEDCNz','app','140KfjAmt','target','appcode','operation-type','85RDASMT','expectParentId','sqlcode','project','4074tAEIaq','clear','Operation\x20type','boolean','Force\x20overwrite','json\x20|\x20pretty\x20|\x20compress','expected-count','schemas','page','sqlName','Expected\x20affected\x20count','production\x20|\x20daily','Expected\x20current\x20parent\x20menu\x20id','Use\x20project\x20config\x20scope','menu-ids','description','File\x20path','non-interactive','key','Skip\x20import\x20generation','sort','Environment','dry-run','sql','force','Page\x20size','Menu\x20label','Description\x20file','name','label','sqlname','Confirm\x20destructive\x20action','1040240HvtTHU','Rabetbase\x20CLI','fromEntries','remote','25275EMVtWm','Reveal\x20sensitive\x20value','tags','title','env','code','Watch\x20mode','22472SkOdqt','@lovrabet/rabetbase-cli','pagesize','expect-path','db-id','<name>','taskId','<code>','yes','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a189_0xd1ae=function(){return _0x57a595;};return a189_0xd1ae();}export const PIPELINE_FLAG_NAMES=new Set([a189_0x3a44f2(0x1a3),a189_0x3a44f2(0x1a0),a189_0x3a44f2(0x14f),a189_0x3a44f2(0x161),'jq',a189_0x3a44f2(0x13d),'yes',a189_0x3a44f2(0x138),'ci']);function a189_0xf1d5(_0x5254d6,_0x2ce861){_0x5254d6=_0x5254d6-0x133;const _0xd1ae7d=a189_0xd1ae();let _0xf1d5e6=_0xd1ae7d[_0x5254d6];return _0xf1d5e6;}export function buildMeowFlags(){const _0x213fdb=a189_0x3a44f2;return Object[_0x213fdb(0x149)](GLOBAL_FLAGS['map'](_0x376569=>[_0x376569[_0x213fdb(0x179)],{'type':_0x376569[_0x213fdb(0x19b)]}]));}
1
+ const a189_0x461991=a189_0x5820;(function(_0x12333c,_0x5c61df){const _0x2cccde=a189_0x5820,_0x2b9b27=_0x12333c();while(!![]){try{const _0x48747b=-parseInt(_0x2cccde(0x1fb))/0x1+parseInt(_0x2cccde(0x20f))/0x2+-parseInt(_0x2cccde(0x207))/0x3+parseInt(_0x2cccde(0x1d0))/0x4+-parseInt(_0x2cccde(0x210))/0x5*(parseInt(_0x2cccde(0x1a8))/0x6)+-parseInt(_0x2cccde(0x211))/0x7*(-parseInt(_0x2cccde(0x1f4))/0x8)+-parseInt(_0x2cccde(0x1c2))/0x9;if(_0x48747b===_0x5c61df)break;else _0x2b9b27['push'](_0x2b9b27['shift']());}catch(_0x25d488){_0x2b9b27['push'](_0x2b9b27['shift']());}}}(a189_0x39ca,0xeae65));export const CLI_BIN_NAME=a189_0x461991(0x1c6);export const CLI_DISPLAY_NAME=a189_0x461991(0x19b);function a189_0x39ca(){const _0x1799fc=['Clear','Function\x20node','value','tags','appcode','29454AkxsYK','Menu\x20label','skip-imports','expectPath','Description','name','confirm','schemas','format','app','datasetcode','key','target','Keyword\x20filter','Comma-separated\x20menu\x20IDs','boolean','Title','<code>','dbid','string','Config\x20key','title','Description\x20file','operation-type','type','Asynchronous\x20task\x20ID','17656254hUjcDg','enableBffSave','Skip\x20confirmation\x20for\x20high-risk\x20writes','label','rabetbase','nonInteractive','expectedCount','keyword','parentId','functionNode','operation','clear','watch','Enable\x20BFF\x20save','7116788teKHLp','file','File\x20path','expectParentId','sqlName','pagesize','page','Menu\x20sort\x20value','dbId','<name>','task-id','Environment','production\x20|\x20daily','dry-run','operationType','help','Code\x20filter','Page\x20size','from-env','SQL\x20name','reveal','Tags','Expected\x20current\x20menu\x20path','verbose','Alias\x20for\x20--non-interactive','Output\x20format','DB\x20ID','global','expectedChildrenCount','stdin','Config\x20value','sort','@lovrabet/rabetbase-cli','skipImports','Watch\x20mode','yes','16NAizTV','descriptionFile','<expr>','SQL\x20string','sqlname','Expected\x20affected\x20count','meowKey','860150bmGRzk','Expected\x20current\x20child\x20count','sql-name','dryRun','params','all','expect-parent-id','Output\x20path','Dataset\x20code','Force\x20non-interactive\x20mode\x20(CI)','sqlcode','Expected\x20current\x20parent\x20menu\x20id','852036qSEZmV','Show\x20help','sql','Type\x20filter','Schemas','force','expected-count','map','2995386xEPsbR','615MjjVZE','4882619iSxfnD','Record\x20ID','non-interactive','SQL\x20code','remote','function-node','Confirm\x20destructive\x20action','Target\x20path','json\x20|\x20pretty\x20|\x20compress','project','menuIds','Page\x20number','Read\x20value\x20from\x20environment\x20variable','output','Force\x20overwrite','Rabetbase\x20CLI','description','Use\x20remote','fromEnv','db-id','code','Name','env'];a189_0x39ca=function(){return _0x1799fc;};return a189_0x39ca();}export const NPM_PACKAGE_NAME=a189_0x461991(0x1f0);export const GLOBAL_FLAGS=[{'name':a189_0x461991(0x1a7),'meowKey':a189_0x461991(0x1a7),'type':a189_0x461991(0x1bb),'description':'Override\x20appcode','hint':a189_0x461991(0x1b9)},{'name':'app','meowKey':a189_0x461991(0x1b1),'type':a189_0x461991(0x1bb),'description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x461991(0x1d9)},{'name':a189_0x461991(0x1a2),'meowKey':a189_0x461991(0x1a2),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1db),'hint':a189_0x461991(0x1dc)},{'name':a189_0x461991(0x1b0),'meowKey':a189_0x461991(0x1b0),'type':'string','description':a189_0x461991(0x1e9),'hint':a189_0x461991(0x194)},{'name':'jq','meowKey':'jq','type':a189_0x461991(0x1bb),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x461991(0x1f6)},{'name':'dry-run','meowKey':a189_0x461991(0x1fe),'type':a189_0x461991(0x1b7),'description':'Preview\x20operation\x20without\x20executing'},{'name':a189_0x461991(0x1f3),'meowKey':a189_0x461991(0x1f3),'type':'boolean','description':a189_0x461991(0x1c4)},{'name':a189_0x461991(0x18e),'meowKey':a189_0x461991(0x1c7),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x204)},{'name':a189_0x461991(0x1eb),'meowKey':a189_0x461991(0x1eb),'type':'boolean','description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a189_0x461991(0x195),'type':a189_0x461991(0x1b7),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a189_0x461991(0x1e8),'hidden':!![]},{'name':a189_0x461991(0x1df),'meowKey':a189_0x461991(0x1df),'type':'boolean','description':a189_0x461991(0x208)},{'name':a189_0x461991(0x1ad),'meowKey':'name','type':'string','description':a189_0x461991(0x1a1),'hidden':!![]},{'name':a189_0x461991(0x1bd),'meowKey':a189_0x461991(0x1bd),'type':'string','description':a189_0x461991(0x1b8),'hidden':!![]},{'name':a189_0x461991(0x1cd),'meowKey':a189_0x461991(0x1cd),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1a3),'hidden':!![]},{'name':a189_0x461991(0x1ce),'meowKey':a189_0x461991(0x1ce),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1f2),'hidden':!![]},{'name':a189_0x461991(0x199),'meowKey':a189_0x461991(0x199),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x202),'hidden':!![]},{'name':a189_0x461991(0x1ff),'meowKey':a189_0x461991(0x1ff),'type':a189_0x461991(0x1bb),'description':'JSON\x20params','hidden':!![]},{'name':a189_0x461991(0x1b2),'meowKey':'datasetcode','type':'string','description':a189_0x461991(0x203),'hidden':!![]},{'name':a189_0x461991(0x200),'meowKey':a189_0x461991(0x200),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x461991(0x1c3),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x1cf),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a189_0x461991(0x212),'hidden':!![]},{'name':a189_0x461991(0x1c0),'meowKey':'type','type':a189_0x461991(0x1bb),'description':a189_0x461991(0x20a),'hidden':!![]},{'name':'file','meowKey':a189_0x461991(0x1d1),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1d2),'hidden':!![]},{'name':'sqlcode','meowKey':a189_0x461991(0x205),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x18f),'hidden':!![]},{'name':a189_0x461991(0x1fd),'meowKey':a189_0x461991(0x1d4),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1e3),'hidden':!![]},{'name':a189_0x461991(0x1f8),'meowKey':a189_0x461991(0x1f8),'type':a189_0x461991(0x1bb),'description':'SQL\x20name','hidden':!![]},{'name':a189_0x461991(0x19f),'meowKey':a189_0x461991(0x1d8),'type':'string','description':a189_0x461991(0x1ea),'hidden':!![]},{'name':a189_0x461991(0x1ba),'meowKey':a189_0x461991(0x1ba),'type':'string','description':a189_0x461991(0x1ea),'hidden':!![]},{'name':'description','meowKey':a189_0x461991(0x19c),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1ac),'hidden':!![]},{'name':'description-file','meowKey':a189_0x461991(0x1f5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1be),'hidden':!![]},{'name':'page','meowKey':a189_0x461991(0x1d6),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x197),'hidden':!![]},{'name':a189_0x461991(0x1d5),'meowKey':a189_0x461991(0x1d5),'type':'string','description':a189_0x461991(0x1e1),'hidden':!![]},{'name':a189_0x461991(0x1c9),'meowKey':'keyword','type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1b5),'hidden':!![]},{'name':a189_0x461991(0x1a0),'meowKey':a189_0x461991(0x1a0),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1e0),'hidden':!![]},{'name':a189_0x461991(0x209),'meowKey':'sql','type':'string','description':a189_0x461991(0x1f7),'hidden':!![]},{'name':a189_0x461991(0x1af),'meowKey':a189_0x461991(0x1af),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x20b),'hidden':!![]},{'name':a189_0x461991(0x1cc),'meowKey':a189_0x461991(0x1cc),'type':a189_0x461991(0x1bb),'description':'Operation\x20type','hidden':!![]},{'name':a189_0x461991(0x1b4),'meowKey':a189_0x461991(0x1b4),'type':'string','description':a189_0x461991(0x193),'hidden':!![]},{'name':a189_0x461991(0x1aa),'meowKey':a189_0x461991(0x1f1),'type':a189_0x461991(0x1b7),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a189_0x461991(0x1b3),'meowKey':a189_0x461991(0x1b3),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1bc),'hidden':!![]},{'name':a189_0x461991(0x1a5),'meowKey':a189_0x461991(0x1a5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1ee),'hidden':!![]},{'name':a189_0x461991(0x1a6),'meowKey':a189_0x461991(0x1a6),'type':'string','description':a189_0x461991(0x1e5),'hidden':!![]},{'name':'stdin','meowKey':a189_0x461991(0x1ed),'type':a189_0x461991(0x1b7),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x461991(0x1e2),'meowKey':a189_0x461991(0x19e),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x198),'hidden':!![]},{'name':a189_0x461991(0x1e4),'meowKey':a189_0x461991(0x1e4),'type':a189_0x461991(0x1b7),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a189_0x461991(0x20c),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x19a),'hidden':!![]},{'name':a189_0x461991(0x1ae),'meowKey':'confirm','type':'boolean','description':a189_0x461991(0x192),'hidden':!![]},{'name':a189_0x461991(0x190),'meowKey':a189_0x461991(0x190),'type':a189_0x461991(0x1b7),'description':a189_0x461991(0x19d),'hidden':!![]},{'name':a189_0x461991(0x1e7),'meowKey':'verbose','type':a189_0x461991(0x1b7),'description':'Verbose\x20output','hidden':!![]},{'name':a189_0x461991(0x20d),'meowKey':a189_0x461991(0x1c8),'type':'string','description':a189_0x461991(0x1f9),'hidden':!![]},{'name':a189_0x461991(0x1c5),'meowKey':a189_0x461991(0x1c5),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1a9),'hidden':!![]},{'name':'parent-id','meowKey':a189_0x461991(0x1ca),'type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a189_0x461991(0x1ef),'meowKey':a189_0x461991(0x1ef),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1d7),'hidden':!![]},{'name':a189_0x461991(0x201),'meowKey':a189_0x461991(0x1d3),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x206),'hidden':!![]},{'name':'expect-path','meowKey':a189_0x461991(0x1ab),'type':'string','description':a189_0x461991(0x1e6),'hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x461991(0x1ec),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1fc),'hidden':!![]},{'name':'menu-ids','meowKey':a189_0x461991(0x196),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1b6),'hidden':!![]},{'name':a189_0x461991(0x1da),'meowKey':'taskId','type':'string','description':a189_0x461991(0x1c1),'hidden':!![]},{'name':a189_0x461991(0x1bf),'meowKey':a189_0x461991(0x1de),'type':a189_0x461991(0x1bb),'description':'Operation\x20type','hidden':!![]},{'name':a189_0x461991(0x191),'meowKey':a189_0x461991(0x1cb),'type':a189_0x461991(0x1bb),'description':a189_0x461991(0x1a4),'hidden':!![]}];function a189_0x5820(_0x3efd24,_0x459768){_0x3efd24=_0x3efd24-0x18e;const _0x39ca5a=a189_0x39ca();let _0x5820ed=_0x39ca5a[_0x3efd24];return _0x5820ed;}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a189_0x461991(0x1b1),a189_0x461991(0x1a2),a189_0x461991(0x1b0),'jq',a189_0x461991(0x1dd),a189_0x461991(0x1f3),a189_0x461991(0x18e),'ci']);export function buildMeowFlags(){const _0x4b7dc2=a189_0x461991;return Object['fromEntries'](GLOBAL_FLAGS[_0x4b7dc2(0x20e)](_0x11e9b5=>[_0x11e9b5[_0x4b7dc2(0x1fa)],{'type':_0x11e9b5['type']}]));}
@@ -1 +1 @@
1
- const a190_0x495edc=a190_0x5773;(function(_0x36ed5a,_0xc87d61){const _0x4d5fe0=a190_0x5773,_0x3c8b6f=_0x36ed5a();while(!![]){try{const _0x4aa11e=-parseInt(_0x4d5fe0(0x144))/0x1+-parseInt(_0x4d5fe0(0x142))/0x2*(parseInt(_0x4d5fe0(0x14b))/0x3)+-parseInt(_0x4d5fe0(0x14a))/0x4*(-parseInt(_0x4d5fe0(0x13f))/0x5)+parseInt(_0x4d5fe0(0x141))/0x6+parseInt(_0x4d5fe0(0x145))/0x7*(-parseInt(_0x4d5fe0(0x14c))/0x8)+parseInt(_0x4d5fe0(0x146))/0x9+-parseInt(_0x4d5fe0(0x149))/0xa*(-parseInt(_0x4d5fe0(0x143))/0xb);if(_0x4aa11e===_0xc87d61)break;else _0x3c8b6f['push'](_0x3c8b6f['shift']());}catch(_0x5414b2){_0x3c8b6f['push'](_0x3c8b6f['shift']());}}}(a190_0x2b33,0xebbe6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a190_0x5773(_0x236349,_0x3bc94f){_0x236349=_0x236349-0x13f;const _0x2b3383=a190_0x2b33();let _0x577386=_0x2b3383[_0x236349];return _0x577386;}export const DEFAULT_CONFIG_VALUES={'env':a190_0x495edc(0x147),'format':a190_0x495edc(0x148),'locale':'en-US','riskLevel':a190_0x495edc(0x140),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a190_0x495edc(0x148);function a190_0x2b33(){const _0x18bd7b=['2625491mHhgyp','1371353mGAHEO','930937BRxtgo','9903105VWfYjF','production','compress','50jPvWic','1954024agMEJO','853728FCjXsg','112mUivBj','5dSzyQL','high-risk-write','10206918kNOlEZ','2VBxVbA'];a190_0x2b33=function(){return _0x18bd7b;};return a190_0x2b33();}
1
+ const a190_0x24e361=a190_0x273e;function a190_0x26cf(){const _0x40b37a=['production','en-US','9665EShpzj','compress','4136796GSrpMI','3194190cWYejZ','8791224vVRyke','876737tImIyu','76GkzqXd','1446750YMJVAj','2ksIrzp','high-risk-write','4573128fTMlpd'];a190_0x26cf=function(){return _0x40b37a;};return a190_0x26cf();}function a190_0x273e(_0x107a6c,_0x592871){_0x107a6c=_0x107a6c-0x1b6;const _0x26cf5b=a190_0x26cf();let _0x273ea9=_0x26cf5b[_0x107a6c];return _0x273ea9;}(function(_0x4b733b,_0x36a43f){const _0x365328=a190_0x273e,_0x844cd1=_0x4b733b();while(!![]){try{const _0x21d4f5=-parseInt(_0x365328(0x1c2))/0x1+-parseInt(_0x365328(0x1b8))/0x2*(-parseInt(_0x365328(0x1c0))/0x3)+parseInt(_0x365328(0x1b6))/0x4*(-parseInt(_0x365328(0x1bd))/0x5)+parseInt(_0x365328(0x1bf))/0x6+parseInt(_0x365328(0x1ba))/0x7+-parseInt(_0x365328(0x1c1))/0x8+parseInt(_0x365328(0x1b7))/0x9;if(_0x21d4f5===_0x36a43f)break;else _0x844cd1['push'](_0x844cd1['shift']());}catch(_0x367974){_0x844cd1['push'](_0x844cd1['shift']());}}}(a190_0x26cf,0x87b6b));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a190_0x24e361(0x1bb),'format':'compress','locale':a190_0x24e361(0x1bc),'riskLevel':a190_0x24e361(0x1b9),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a190_0x24e361(0x1be);
@@ -1 +1 @@
1
- const a191_0x49a782=a191_0x3f20;(function(_0x1d6948,_0x5685f1){const _0x109b44=a191_0x3f20,_0x38b229=_0x1d6948();while(!![]){try{const _0x5bbe53=parseInt(_0x109b44(0x149))/0x1*(parseInt(_0x109b44(0x144))/0x2)+-parseInt(_0x109b44(0x145))/0x3*(parseInt(_0x109b44(0x140))/0x4)+parseInt(_0x109b44(0x147))/0x5*(-parseInt(_0x109b44(0x13e))/0x6)+parseInt(_0x109b44(0x13f))/0x7*(-parseInt(_0x109b44(0x143))/0x8)+-parseInt(_0x109b44(0x14e))/0x9+parseInt(_0x109b44(0x14a))/0xa+parseInt(_0x109b44(0x150))/0xb*(parseInt(_0x109b44(0x151))/0xc);if(_0x5bbe53===_0x5685f1)break;else _0x38b229['push'](_0x38b229['shift']());}catch(_0x435a6b){_0x38b229['push'](_0x38b229['shift']());}}}(a191_0x1079,0x629c4));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3e5ac9){const _0x23c735=a191_0x3f20;customApiDomain=_0x3e5ac9?.[_0x23c735(0x142)],customUserDomain=_0x3e5ac9?.[_0x23c735(0x152)],customRuntimeDomain=_0x3e5ac9?.[_0x23c735(0x148)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a191_0x49a782(0x14b):'https://user-daily.lovrabet.com');function a191_0x1079(){const _0x3cab09=['https://user.lovrabet.com','https://api.lovrabet.com','https://runtime.lovrabet.com','2569860skVMZP','/app/','1193357hNpWWc','144EVqRPv','userDomain','55398HzKvEM','1831431JBkuOW','4JRatPb','https://daily-runtime.lovrabet.com','apiDomain','24boATaF','1534DOvwbb','2325306eSJkFC','trim','90hjGMsV','runtimeDomain','568kLQGdh','6781430BaPlGw'];a191_0x1079=function(){return _0x3cab09;};return a191_0x1079();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a191_0x49a782(0x14c):'https://daily-api.lovrabet.com');function a191_0x3f20(_0x1a6cd9,_0x3ee0fc){_0x1a6cd9=_0x1a6cd9-0x13e;const _0x1079a8=a191_0x1079();let _0x3f20d0=_0x1079a8[_0x1a6cd9];return _0x3f20d0;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a191_0x49a782(0x14d):a191_0x49a782(0x141));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0x4fa14d=>{const _0x2cc11d=a191_0x49a782,_0x4803f7=encodeURIComponent(_0x4fa14d[_0x2cc11d(0x146)]());return isProduction(getEnv())?getAppDomain()+_0x2cc11d(0x14f)+_0x4803f7:getAppDomain()+'/web-app/app/'+_0x4803f7;};
1
+ const a191_0x27eb10=a191_0x371c;(function(_0x31048b,_0x371f29){const _0x27e31d=a191_0x371c,_0x15a90c=_0x31048b();while(!![]){try{const _0x39cffd=-parseInt(_0x27e31d(0x13b))/0x1+parseInt(_0x27e31d(0x130))/0x2*(-parseInt(_0x27e31d(0x12b))/0x3)+-parseInt(_0x27e31d(0x13e))/0x4*(parseInt(_0x27e31d(0x13c))/0x5)+parseInt(_0x27e31d(0x13d))/0x6*(parseInt(_0x27e31d(0x132))/0x7)+parseInt(_0x27e31d(0x13a))/0x8*(parseInt(_0x27e31d(0x139))/0x9)+-parseInt(_0x27e31d(0x12c))/0xa*(-parseInt(_0x27e31d(0x129))/0xb)+-parseInt(_0x27e31d(0x12d))/0xc;if(_0x39cffd===_0x371f29)break;else _0x15a90c['push'](_0x15a90c['shift']());}catch(_0x47e24b){_0x15a90c['push'](_0x15a90c['shift']());}}}(a191_0x54b8,0x69ac7));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a191_0x54b8(){const _0x257b6a=['https://daily-runtime.lovrabet.com','https://daily-api.lovrabet.com','2qcIDvW','https://api.lovrabet.com','18039MnZccO','https://user.lovrabet.com','/web-app/app/','https://user-daily.lovrabet.com','https://daily.lovrabet.com','runtimeDomain','apiDomain','4653JmhUJh','7528qxSbET','130656MZPKeW','215xDSaxY','1236rUYazy','36796rHjRzR','trim','/app/','11sljaQn','https://runtime.lovrabet.com','1668894UbqRUv','6781540ludHbH','2161956EJejuZ'];a191_0x54b8=function(){return _0x257b6a;};return a191_0x54b8();}export function initDomains(_0x322ad5){const _0x1ed329=a191_0x371c;customApiDomain=_0x322ad5?.[_0x1ed329(0x138)],customUserDomain=_0x322ad5?.['userDomain'],customRuntimeDomain=_0x322ad5?.[_0x1ed329(0x137)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a191_0x27eb10(0x133):a191_0x27eb10(0x135));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a191_0x27eb10(0x131):a191_0x27eb10(0x12f));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a191_0x27eb10(0x12a):a191_0x27eb10(0x12e));function a191_0x371c(_0x81d3a3,_0x5805ab){_0x81d3a3=_0x81d3a3-0x129;const _0x54b891=a191_0x54b8();let _0x371c60=_0x54b891[_0x81d3a3];return _0x371c60;}export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a191_0x27eb10(0x136);export const getAppBaseUrl=_0x3905ef=>{const _0x825cfc=a191_0x27eb10,_0x4ecfce=encodeURIComponent(_0x3905ef[_0x825cfc(0x13f)]());return isProduction(getEnv())?getAppDomain()+_0x825cfc(0x140)+_0x4ecfce:getAppDomain()+_0x825cfc(0x134)+_0x4ecfce;};
@@ -1 +1 @@
1
- const a192_0x43d77b=a192_0x387f;function a192_0x387f(_0x20897e,_0x3a7ca0){_0x20897e=_0x20897e-0x9c;const _0x50e788=a192_0x50e7();let _0x387f27=_0x50e788[_0x20897e];return _0x387f27;}(function(_0x156e94,_0x248f68){const _0x137a07=a192_0x387f,_0x5b3ee7=_0x156e94();while(!![]){try{const _0x2881f7=parseInt(_0x137a07(0xa0))/0x1*(parseInt(_0x137a07(0xa6))/0x2)+parseInt(_0x137a07(0xa2))/0x3+-parseInt(_0x137a07(0xa8))/0x4+-parseInt(_0x137a07(0x9d))/0x5+parseInt(_0x137a07(0x9c))/0x6+-parseInt(_0x137a07(0xa7))/0x7*(-parseInt(_0x137a07(0x9e))/0x8)+-parseInt(_0x137a07(0xa1))/0x9;if(_0x2881f7===_0x248f68)break;else _0x5b3ee7['push'](_0x5b3ee7['shift']());}catch(_0x2375c3){_0x5b3ee7['push'](_0x5b3ee7['shift']());}}}(a192_0x50e7,0x6c0c9));export const RABETBASE_ENV_VALUES=['production',a192_0x43d77b(0xa5)];export function normalizeEnv(_0x17a5e6){const _0x1e37b8=a192_0x43d77b;return _0x17a5e6===_0x1e37b8(0xa9)?_0x1e37b8(0xa4):_0x17a5e6;}export function isProduction(_0xf33011){const _0x741e3a=a192_0x43d77b;return normalizeEnv(_0xf33011)===_0x741e3a(0xa4);}export function isDaily(_0x469724){return normalizeEnv(_0x469724)==='daily';}export function isDev(_0xbd8cf7){const _0x52eaf4=a192_0x43d77b,_0x54dde5=normalizeEnv(_0xbd8cf7);return _0x54dde5===_0x52eaf4(0x9f)||_0x54dde5===_0x52eaf4(0xa3);}function a192_0x50e7(){const _0x39f534=['3BZArTg','5930262oxLuao','1595127PvhDqr','dev','production','daily','396458CqPkDB','7GOFAOk','2395256UXkSWX','online','3886020sdazyC','3935940Rmezoe','5707384RWTjZY','development'];a192_0x50e7=function(){return _0x39f534;};return a192_0x50e7();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a192_0x43d77b(0xa4));export function getEnv(){return env;}export function initEnv(_0x1ff341){env=normalizeEnv(_0x1ff341);}
1
+ function a192_0x13b0(){const _0x1b3211=['production','4177980ZzlKAq','32ELNHZU','development','1915734UcKpbP','online','12064130GAwdsj','daily','145gjbjXE','793139ifvAGm','dev','3KKflCe','1578031VeSBQm','49657179chQtmQ','9QDooJg','74068EKkddB'];a192_0x13b0=function(){return _0x1b3211;};return a192_0x13b0();}const a192_0x397289=a192_0x3f2f;(function(_0x450960,_0x3981da){const _0x2ca68a=a192_0x3f2f,_0x153691=_0x450960();while(!![]){try{const _0x1a1001=-parseInt(_0x2ca68a(0xfa))/0x1+-parseInt(_0x2ca68a(0xf5))/0x2*(parseInt(_0x2ca68a(0xfc))/0x3)+parseInt(_0x2ca68a(0x100))/0x4*(-parseInt(_0x2ca68a(0xf9))/0x5)+parseInt(_0x2ca68a(0x102))/0x6+-parseInt(_0x2ca68a(0xfd))/0x7*(parseInt(_0x2ca68a(0x103))/0x8)+-parseInt(_0x2ca68a(0xff))/0x9*(parseInt(_0x2ca68a(0xf7))/0xa)+parseInt(_0x2ca68a(0xfe))/0xb;if(_0x1a1001===_0x3981da)break;else _0x153691['push'](_0x153691['shift']());}catch(_0x34b9ae){_0x153691['push'](_0x153691['shift']());}}}(a192_0x13b0,0xc6d8b));function a192_0x3f2f(_0xf2209e,_0x1c4edf){_0xf2209e=_0xf2209e-0xf4;const _0x13b0f3=a192_0x13b0();let _0x3f2f58=_0x13b0f3[_0xf2209e];return _0x3f2f58;}export const RABETBASE_ENV_VALUES=[a192_0x397289(0x101),a192_0x397289(0xf8)];export function normalizeEnv(_0x5a0d26){const _0x59f0c9=a192_0x397289;return _0x5a0d26===_0x59f0c9(0xf6)?_0x59f0c9(0x101):_0x5a0d26;}export function isProduction(_0x2037ca){const _0x23f3c7=a192_0x397289;return normalizeEnv(_0x2037ca)===_0x23f3c7(0x101);}export function isDaily(_0x2ec9dc){return normalizeEnv(_0x2ec9dc)==='daily';}export function isDev(_0x525b2f){const _0x377b58=a192_0x397289,_0x1923c3=normalizeEnv(_0x525b2f);return _0x1923c3===_0x377b58(0xf4)||_0x1923c3===_0x377b58(0xfb);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a192_0x397289(0x101));export function getEnv(){return env;}export function initEnv(_0x46b4f4){env=normalizeEnv(_0x46b4f4);}
@@ -1 +1 @@
1
- const a193_0x42c150=a193_0xb133;function a193_0xb133(_0x420a39,_0x2350da){_0x420a39=_0x420a39-0xa5;const _0x3c6f58=a193_0x3c6f();let _0xb133d5=_0x3c6f58[_0x420a39];return _0xb133d5;}function a193_0x3c6f(){const _0x50bbaa=['1960355VNfHhE','json','5639130GZHGlI','1180160EthLBT','410851uImTDZ','1tZACVk','5716872xggtpl','1383264AxJbYl','2145990sUPkaV','compress','12LXEkZW'];a193_0x3c6f=function(){return _0x50bbaa;};return a193_0x3c6f();}(function(_0x5b918b,_0x4d048e){const _0x5256aa=a193_0xb133,_0x5bfa51=_0x5b918b();while(!![]){try{const _0x3bb5cb=parseInt(_0x5256aa(0xa7))/0x1*(parseInt(_0x5256aa(0xa9))/0x2)+-parseInt(_0x5256aa(0xaa))/0x3+-parseInt(_0x5256aa(0xa5))/0x4+parseInt(_0x5256aa(0xad))/0x5*(parseInt(_0x5256aa(0xac))/0x6)+parseInt(_0x5256aa(0xa6))/0x7+-parseInt(_0x5256aa(0xa8))/0x8+parseInt(_0x5256aa(0xaf))/0x9;if(_0x3bb5cb===_0x4d048e)break;else _0x5bfa51['push'](_0x5bfa51['shift']());}catch(_0x44e582){_0x5bfa51['push'](_0x5bfa51['shift']());}}}(a193_0x3c6f,0x6a75a));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a193_0x42c150(0xae),'pretty',a193_0x42c150(0xab)];
1
+ function a193_0x434c(_0x23c1e6,_0x427793){_0x23c1e6=_0x23c1e6-0x1f1;const _0x1cbb59=a193_0x1cbb();let _0x434c73=_0x1cbb59[_0x23c1e6];return _0x434c73;}const a193_0x533218=a193_0x434c;(function(_0x1889cb,_0x5625ea){const _0x512abd=a193_0x434c,_0x18413c=_0x1889cb();while(!![]){try{const _0x2bfeb6=parseInt(_0x512abd(0x1fc))/0x1*(parseInt(_0x512abd(0x1f8))/0x2)+parseInt(_0x512abd(0x1fb))/0x3+parseInt(_0x512abd(0x1f3))/0x4+-parseInt(_0x512abd(0x1f1))/0x5+parseInt(_0x512abd(0x1f5))/0x6*(-parseInt(_0x512abd(0x1f2))/0x7)+-parseInt(_0x512abd(0x1fa))/0x8*(parseInt(_0x512abd(0x1f6))/0x9)+parseInt(_0x512abd(0x1f4))/0xa;if(_0x2bfeb6===_0x5625ea)break;else _0x18413c['push'](_0x18413c['shift']());}catch(_0x5aeccb){_0x18413c['push'](_0x18413c['shift']());}}}(a193_0x1cbb,0xcc646));function a193_0x1cbb(){const _0x34b0a6=['7080wbUjwf','1361187GamPmL','json','1736524FIbfjz','compress','24Hqqqwj','2988690TdNeZp','1bCMVnK','1186370BYKWca','7441GHMXPU','2647676TJhodD','2561220LKrgzb'];a193_0x1cbb=function(){return _0x34b0a6;};return a193_0x1cbb();}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a193_0x533218(0x1f7),'pretty',a193_0x533218(0x1f9)];
@@ -1 +1 @@
1
- const a194_0xb76e8c=a194_0x39d5;function a194_0x39d5(_0x4ec6e0,_0x4f3750){_0x4ec6e0=_0x4ec6e0-0xf6;const _0x12d2eb=a194_0x12d2();let _0x39d548=_0x12d2eb[_0x4ec6e0];return _0x39d548;}function a194_0x12d2(){const _0x56fe3d=['790092FXQDka','10bSvsgS','15SzsUzr','7MHLBmh','312764vmDtDU','./src/api','367668TMDWFe','1914154iBjadD','956hFKluq','1438312StkfHD','615540WktQhF','59ebytaO'];a194_0x12d2=function(){return _0x56fe3d;};return a194_0x12d2();}(function(_0x38b00a,_0x4053e3){const _0x4ad522=a194_0x39d5,_0x170e53=_0x38b00a();while(!![]){try{const _0x39c873=parseInt(_0x4ad522(0x100))/0x1*(-parseInt(_0x4ad522(0xfd))/0x2)+-parseInt(_0x4ad522(0xff))/0x3+parseInt(_0x4ad522(0xf9))/0x4+parseInt(_0x4ad522(0xf7))/0x5*(parseInt(_0x4ad522(0xfb))/0x6)+-parseInt(_0x4ad522(0xf8))/0x7*(parseInt(_0x4ad522(0xfe))/0x8)+parseInt(_0x4ad522(0x101))/0x9*(parseInt(_0x4ad522(0xf6))/0xa)+parseInt(_0x4ad522(0xfc))/0xb;if(_0x39c873===_0x4053e3)break;else _0x170e53['push'](_0x170e53['shift']());}catch(_0x53c947){_0x170e53['push'](_0x170e53['shift']());}}}(a194_0x12d2,0x1b040));export const DEFAULT_API_DIR=a194_0xb76e8c(0xfa);
1
+ (function(_0x5b4b57,_0x23a4c0){const _0x5b3a14=a194_0x1d0a,_0x142fcf=_0x5b4b57();while(!![]){try{const _0x3128f7=-parseInt(_0x5b3a14(0xaf))/0x1+-parseInt(_0x5b3a14(0xb4))/0x2*(parseInt(_0x5b3a14(0xb8))/0x3)+parseInt(_0x5b3a14(0xb0))/0x4*(-parseInt(_0x5b3a14(0xb5))/0x5)+parseInt(_0x5b3a14(0xae))/0x6*(parseInt(_0x5b3a14(0xb2))/0x7)+-parseInt(_0x5b3a14(0xb3))/0x8+parseInt(_0x5b3a14(0xb1))/0x9*(-parseInt(_0x5b3a14(0xad))/0xa)+parseInt(_0x5b3a14(0xb6))/0xb*(parseInt(_0x5b3a14(0xb7))/0xc);if(_0x3128f7===_0x23a4c0)break;else _0x142fcf['push'](_0x142fcf['shift']());}catch(_0x1f3b46){_0x142fcf['push'](_0x142fcf['shift']());}}}(a194_0x46de,0xbea77));function a194_0x1d0a(_0x3f2c49,_0x48d1e8){_0x3f2c49=_0x3f2c49-0xad;const _0x46ded3=a194_0x46de();let _0x1d0a34=_0x46ded3[_0x3f2c49];return _0x1d0a34;}function a194_0x46de(){const _0x575bf4=['594162pUKmEx','5iQHZKo','73447wFHSGV','5964vqCtWa','9KQQVOR','1864330PFscQV','366PbCUAE','1116005OoKgnu','3476788IKDZpx','9MfSwGK','66031zvwDNI','400680MbvoSw'];a194_0x46de=function(){return _0x575bf4;};return a194_0x46de();}export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a195_0x394d(_0x574594,_0x5c8771){_0x574594=_0x574594-0x167;const _0x3d66b8=a195_0x3d66();let _0x394d7c=_0x3d66b8[_0x574594];return _0x394d7c;}const a195_0x207561=a195_0x394d;(function(_0x37474a,_0x4b59af){const _0x2c56b6=a195_0x394d,_0x27acc1=_0x37474a();while(!![]){try{const _0x3273d0=-parseInt(_0x2c56b6(0x173))/0x1*(-parseInt(_0x2c56b6(0x168))/0x2)+parseInt(_0x2c56b6(0x171))/0x3+-parseInt(_0x2c56b6(0x16d))/0x4*(-parseInt(_0x2c56b6(0x174))/0x5)+parseInt(_0x2c56b6(0x167))/0x6*(parseInt(_0x2c56b6(0x169))/0x7)+parseInt(_0x2c56b6(0x16e))/0x8+-parseInt(_0x2c56b6(0x16a))/0x9*(parseInt(_0x2c56b6(0x16f))/0xa)+parseInt(_0x2c56b6(0x16c))/0xb*(-parseInt(_0x2c56b6(0x16b))/0xc);if(_0x3273d0===_0x4b59af)break;else _0x27acc1['push'](_0x27acc1['shift']());}catch(_0xe2392c){_0x27acc1['push'](_0x27acc1['shift']());}}}(a195_0x3d66,0x83404));export const RISK_LEVEL_VALUES=[a195_0x207561(0x170),a195_0x207561(0x172),'high-risk-write'];function a195_0x3d66(){const _0x47e345=['8095912InMxQF','7110210xJRkkV','read','735384LgzOBk','write','157LWeYcH','32460rdzEkj','142818jEAFrx','4882tFZrXw','217LtVHMP','9mzzbnM','7595724IWKNXL','22dQlzFU','84qvMBlx'];a195_0x3d66=function(){return _0x47e345;};return a195_0x3d66();}
1
+ function a195_0x12c0(){const _0x41a0d8=['1720494bDVgyd','write','read','2451254urxpmD','67316pufVIV','high-risk-write','533121LgVvNB','8314300NdcfOy','6674568sWwlBl','16OHYwcZ','7meezUM','180PPUeOh','3646375KvuEoj'];a195_0x12c0=function(){return _0x41a0d8;};return a195_0x12c0();}function a195_0x38d1(_0x4675d2,_0x202923){_0x4675d2=_0x4675d2-0x1ad;const _0x12c0b8=a195_0x12c0();let _0x38d193=_0x12c0b8[_0x4675d2];return _0x38d193;}const a195_0x5db342=a195_0x38d1;(function(_0x5709dd,_0x4f6d6b){const _0x3bdf4e=a195_0x38d1,_0x185d5b=_0x5709dd();while(!![]){try{const _0x1fc7cf=-parseInt(_0x3bdf4e(0x1b0))/0x1+parseInt(_0x3bdf4e(0x1ad))/0x2+-parseInt(_0x3bdf4e(0x1b5))/0x3*(-parseInt(_0x3bdf4e(0x1ae))/0x4)+-parseInt(_0x3bdf4e(0x1b6))/0x5+-parseInt(_0x3bdf4e(0x1b2))/0x6*(-parseInt(_0x3bdf4e(0x1b4))/0x7)+-parseInt(_0x3bdf4e(0x1b3))/0x8*(parseInt(_0x3bdf4e(0x1b7))/0x9)+-parseInt(_0x3bdf4e(0x1b1))/0xa;if(_0x1fc7cf===_0x4f6d6b)break;else _0x185d5b['push'](_0x185d5b['shift']());}catch(_0x44e29a){_0x185d5b['push'](_0x185d5b['shift']());}}}(a195_0x12c0,0xd4cd5));export const RISK_LEVEL_VALUES=[a195_0x5db342(0x1b9),a195_0x5db342(0x1b8),a195_0x5db342(0x1af)];
@@ -1 +1 @@
1
- (function(_0x33bbe6,_0x149d66){const _0x100a89=a196_0x1748,_0x2b313c=_0x33bbe6();while(!![]){try{const _0x40beea=parseInt(_0x100a89(0x16d))/0x1*(parseInt(_0x100a89(0x15c))/0x2)+parseInt(_0x100a89(0x17c))/0x3+parseInt(_0x100a89(0x170))/0x4+-parseInt(_0x100a89(0x15e))/0x5+parseInt(_0x100a89(0x166))/0x6*(parseInt(_0x100a89(0x168))/0x7)+-parseInt(_0x100a89(0x179))/0x8*(-parseInt(_0x100a89(0x159))/0x9)+-parseInt(_0x100a89(0x160))/0xa;if(_0x40beea===_0x149d66)break;else _0x2b313c['push'](_0x2b313c['shift']());}catch(_0x225d3c){_0x2b313c['push'](_0x2b313c['shift']());}}}(a196_0x4765,0xe2bd3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a196_0x4765(){const _0x218224=['2318584kAxSHh','globalConfig','defaultApp','PAGE_SIZE','inherit','locale','keys','MAX_RISK','entries','1346192UFoBKn','projectConfig','riskLevel','3868455tShuqJ','VERBOSE','string','appcode','45TFnaGO','apiDir','APP','14gJHYKs','ACCESS_KEY','5270350HOqajq','pageSize','36765610YChtjS','format','app','FORMAT','apps','daily','6ioXJsG','accessKey','7866054lYwvdy','true','env','trim','read','260733VZvSUt','ENV','length'];a196_0x4765=function(){return _0x218224;};return a196_0x4765();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function a196_0x1748(_0x5b184b,_0x410287){_0x5b184b=_0x5b184b-0x159;const _0x4765fc=a196_0x4765();let _0x174832=_0x4765fc[_0x5b184b];return _0x174832;}function stringConfigValue(_0x5bf87e){const _0x22dbb3=a196_0x1748;return typeof _0x5bf87e===_0x22dbb3(0x17e)&&_0x5bf87e[_0x22dbb3(0x16b)]()?_0x5bf87e[_0x22dbb3(0x16b)]():undefined;}function appProfiles(_0xfe1d73){const _0x2eced3=a196_0x1748;return _0xfe1d73[_0x2eced3(0x164)]&&typeof _0xfe1d73['apps']==='object'?_0xfe1d73[_0x2eced3(0x164)]:{};}function resolveDefaultAppName(_0x32ce8b){const _0x364669=a196_0x1748,_0x31daad=stringConfigValue(_0x32ce8b[_0x364669(0x172)]);if(_0x31daad)return _0x31daad;return Object[_0x364669(0x176)](appProfiles(_0x32ce8b))[0x0];}function resolveTopLevelAppCode(_0x3e7ee8){const _0x5e97a4=a196_0x1748;return stringConfigValue(_0x3e7ee8['appcode'])||stringConfigValue(_0x3e7ee8[_0x5e97a4(0x162)]);}export function resolveAppConfig({raw:_0x4216b9,flags:_0x4ba171,layers:_0x132257,readEnv:_0x32557e}){const _0x26fccd=a196_0x1748,_0x3fa14b=_0x132257?.[_0x26fccd(0x17a)]??{},_0x274dc7=_0x132257?.[_0x26fccd(0x171)]??{},_0x217275=Object[_0x26fccd(0x176)](_0x3fa14b)[_0x26fccd(0x16f)]>0x0,_0x18f6e4=!_0x217275||_0x3fa14b[_0x26fccd(0x174)]===!![],_0x10186d=_0x217275?resolveDefaultAppName(_0x3fa14b):undefined,_0x549cca=_0x18f6e4?resolveDefaultAppName(_0x274dc7):undefined,_0x1cb182=stringConfigValue(_0x4ba171[_0x26fccd(0x162)]),_0xa7a1b4=_0x32557e(_0x26fccd(0x15b)),_0x2343d6={};if(_0x4216b9[_0x26fccd(0x164)]&&typeof _0x4216b9[_0x26fccd(0x164)]==='object')for(const [_0xb4d623,_0x4763cc]of Object[_0x26fccd(0x178)](_0x4216b9[_0x26fccd(0x164)])){_0x4763cc&&typeof _0x4763cc==='object'&&_0x4763cc[_0x26fccd(0x17f)]&&(_0x2343d6[_0xb4d623]=_0x4763cc);}const _0x4133c4=_0x4216b9[_0x26fccd(0x172)]||undefined,_0x384414=Object[_0x26fccd(0x176)](_0x2343d6)[_0x26fccd(0x16f)]>0x0,_0x50d642=_0x1cb182||_0x10186d||_0xa7a1b4||_0x549cca||_0x4133c4||undefined,_0x4df21b=stringConfigValue(_0x4ba171[_0x26fccd(0x17f)]),_0x1d7de9=_0x4df21b?Object[_0x26fccd(0x178)](_0x2343d6)['find'](([,_0x27c209])=>_0x27c209?.[_0x26fccd(0x17f)]===_0x4df21b):undefined,_0x2b518d=_0x1d7de9?.[0x0],_0x37d8e8=_0x1d7de9?.[0x1],_0xf00263=_0x4df21b?_0x2b518d:_0x50d642;let _0x3d2f3a=_0xf00263&&_0x2343d6[_0xf00263]?_0x2343d6[_0xf00263]:undefined;_0x4df21b&&_0x37d8e8&&(_0x3d2f3a=_0x37d8e8);const _0x272347=_0x4df21b?_0x37d8e8??_0x3d2f3a:_0x3d2f3a,_0x3e1d59=!_0x1cb182&&!_0x10186d&&_0xa7a1b4&&_0xf00263===_0xa7a1b4,_0x5e1ae3=_0x1cb182||(_0x3e1d59?_0xa7a1b4:undefined)||(_0x4df21b?_0x2b518d:undefined),_0x55f209=_0x272347?.[_0x26fccd(0x17f)],_0x295f42=_0x217275?resolveTopLevelAppCode(_0x3fa14b):undefined,_0x1c8580=_0x18f6e4?resolveTopLevelAppCode(_0x274dc7):undefined,_0x434267=_0x1cb182||_0x10186d?_0x55f209:undefined,_0xd8c76a=!_0x1cb182&&!_0x10186d?_0x55f209:undefined,_0x27b6a7=_0x4df21b||_0x434267||_0x295f42||_0xd8c76a||_0x1c8580||undefined,_0xa63c52=_0x217275?stringConfigValue(_0x3fa14b[_0x26fccd(0x16a)]):undefined,_0x4b7b49=_0x18f6e4?stringConfigValue(_0x274dc7[_0x26fccd(0x16a)]):undefined,_0x1f93e3=_0x4ba171[_0x26fccd(0x16a)]||_0x272347?.[_0x26fccd(0x16a)]||_0xa63c52||_0x32557e(_0x26fccd(0x16e))||_0x4b7b49||_0x4216b9[_0x26fccd(0x16a)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x16a)],_0x4287e2=_0x272347?.[_0x26fccd(0x175)]||_0x4216b9[_0x26fccd(0x175)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x175)],_0x7b0ba2=_0x32557e('COOKIE')||_0x272347?.['cookie']||_0x4216b9['cookie']||undefined,_0x3289e4=_0x32557e(_0x26fccd(0x15d))||_0x272347?.[_0x26fccd(0x167)]||_0x4216b9[_0x26fccd(0x167)]||undefined,_0x1e8fd9=_0x4ba171['format']||_0x32557e(_0x26fccd(0x163))||_0x272347?.[_0x26fccd(0x161)]||_0x4216b9[_0x26fccd(0x161)],_0x3de6b6=normalizeLegacyOutputFormat(_0x1e8fd9),_0x16093b=_0x32557e(_0x26fccd(0x173))||_0x272347?.[_0x26fccd(0x15f)]||_0x4216b9[_0x26fccd(0x15f)],_0x15826e=_0x16093b?Number(_0x16093b)||undefined:undefined,_0x445424=_0x32557e('RISK_LEVEL')||_0x32557e(_0x26fccd(0x177))||_0x272347?.['riskLevel']||_0x4216b9[_0x26fccd(0x17b)]||_0x4216b9['maxRisk'],_0x286457=_0x445424===_0x26fccd(0x16c)||_0x445424==='write'?_0x445424:DEFAULT_CONFIG_VALUES[_0x26fccd(0x17b)],_0x3a37b6=_0x32557e(_0x26fccd(0x17d)),_0x185da2=_0x3a37b6==='1'||_0x3a37b6===_0x26fccd(0x169),_0x5a669e=_0x272347?.[_0x26fccd(0x15a)]||_0x4216b9[_0x26fccd(0x15a)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4b38dd=isDaily(normalizeEnv(String(_0x1f93e3)))?_0x26fccd(0x165):'production';return{'appCode':typeof _0x27b6a7==='string'&&_0x27b6a7[_0x26fccd(0x16b)]()?_0x27b6a7[_0x26fccd(0x16b)]():undefined,'env':_0x4b38dd,'locale':_0x4287e2,'cookie':_0x7b0ba2,'accessKey':_0x3289e4,'format':_0x3de6b6,'pageSize':_0x15826e,'riskLevel':_0x286457,'verbose':_0x185da2,'apiDir':_0x5a669e,'apps':_0x2343d6,'defaultApp':_0x4133c4,'currentApp':_0x384414?_0xf00263:undefined,'explicitAppName':_0x5e1ae3};}
1
+ (function(_0x26b5a6,_0x476fb8){const _0x199ff2=a196_0xf62d,_0x2c575b=_0x26b5a6();while(!![]){try{const _0xcf978a=-parseInt(_0x199ff2(0x83))/0x1+parseInt(_0x199ff2(0x91))/0x2+parseInt(_0x199ff2(0x77))/0x3*(-parseInt(_0x199ff2(0x8c))/0x4)+-parseInt(_0x199ff2(0x70))/0x5+-parseInt(_0x199ff2(0x74))/0x6+-parseInt(_0x199ff2(0x94))/0x7+-parseInt(_0x199ff2(0x8a))/0x8*(-parseInt(_0x199ff2(0x6d))/0x9);if(_0xcf978a===_0x476fb8)break;else _0x2c575b['push'](_0x2c575b['shift']());}catch(_0x4b05f0){_0x2c575b['push'](_0x2c575b['shift']());}}}(a196_0x13cc,0x3fb4c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a196_0xf62d(_0x33e2f1,_0x20f68b){_0x33e2f1=_0x33e2f1-0x6b;const _0x13cc4d=a196_0x13cc();let _0xf62d36=_0x13cc4d[_0x33e2f1];return _0xf62d36;}function a196_0x13cc(){const _0x5903ef=['string','5761413gLVxQb','pageSize','COOKIE','1909420DayMej','defaultApp','true','VERBOSE','1659900mAOfJs','riskLevel','apiDir','10221ucgcFk','keys','read','trim','find','daily','appcode','PAGE_SIZE','MAX_RISK','RISK_LEVEL','app','APP','57589tbVYXK','locale','FORMAT','format','globalConfig','apps','accessKey','16CbQuPP','projectConfig','264HSDhin','cookie','length','entries','env','236208gktXFZ','ENV','maxRisk','1375451MSTPae','object'];a196_0x13cc=function(){return _0x5903ef;};return a196_0x13cc();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5b6a84){const _0x410ef0=a196_0xf62d;return typeof _0x5b6a84===_0x410ef0(0x6c)&&_0x5b6a84['trim']()?_0x5b6a84[_0x410ef0(0x7a)]():undefined;}function appProfiles(_0x47dce9){const _0x15835c=a196_0xf62d;return _0x47dce9[_0x15835c(0x88)]&&typeof _0x47dce9[_0x15835c(0x88)]===_0x15835c(0x6b)?_0x47dce9[_0x15835c(0x88)]:{};}function resolveDefaultAppName(_0x455a83){const _0x24763f=a196_0xf62d,_0x57bdab=stringConfigValue(_0x455a83[_0x24763f(0x71)]);if(_0x57bdab)return _0x57bdab;return Object[_0x24763f(0x78)](appProfiles(_0x455a83))[0x0];}function resolveTopLevelAppCode(_0x58a40b){const _0x309478=a196_0xf62d;return stringConfigValue(_0x58a40b[_0x309478(0x7d)])||stringConfigValue(_0x58a40b[_0x309478(0x81)]);}export function resolveAppConfig({raw:_0x20563e,flags:_0xf95702,layers:_0x38ffcf,readEnv:_0x5b5b0b}){const _0x2f44e4=a196_0xf62d,_0x1e814c=_0x38ffcf?.[_0x2f44e4(0x8b)]??{},_0x5ebc0c=_0x38ffcf?.[_0x2f44e4(0x87)]??{},_0x414869=Object[_0x2f44e4(0x78)](_0x1e814c)[_0x2f44e4(0x8e)]>0x0,_0x467861=!_0x414869||_0x1e814c['inherit']===!![],_0x451434=_0x414869?resolveDefaultAppName(_0x1e814c):undefined,_0x55f8e9=_0x467861?resolveDefaultAppName(_0x5ebc0c):undefined,_0x1eb23a=stringConfigValue(_0xf95702[_0x2f44e4(0x81)]),_0x122c67=_0x5b5b0b(_0x2f44e4(0x82)),_0x1a8fe7={};if(_0x20563e[_0x2f44e4(0x88)]&&typeof _0x20563e['apps']===_0x2f44e4(0x6b))for(const [_0x4515d8,_0x568087]of Object[_0x2f44e4(0x8f)](_0x20563e[_0x2f44e4(0x88)])){_0x568087&&typeof _0x568087===_0x2f44e4(0x6b)&&_0x568087['appcode']&&(_0x1a8fe7[_0x4515d8]=_0x568087);}const _0x3a744e=_0x20563e[_0x2f44e4(0x71)]||undefined,_0x383d85=Object[_0x2f44e4(0x78)](_0x1a8fe7)[_0x2f44e4(0x8e)]>0x0,_0x390b62=_0x1eb23a||_0x451434||_0x122c67||_0x55f8e9||_0x3a744e||undefined,_0x1e7b85=stringConfigValue(_0xf95702['appcode']),_0x57a334=_0x1e7b85?Object['entries'](_0x1a8fe7)[_0x2f44e4(0x7b)](([,_0x1f3cc5])=>_0x1f3cc5?.[_0x2f44e4(0x7d)]===_0x1e7b85):undefined,_0x443605=_0x57a334?.[0x0],_0x512cf9=_0x57a334?.[0x1],_0x32f63e=_0x1e7b85?_0x443605:_0x390b62;let _0x2641b1=_0x32f63e&&_0x1a8fe7[_0x32f63e]?_0x1a8fe7[_0x32f63e]:undefined;_0x1e7b85&&_0x512cf9&&(_0x2641b1=_0x512cf9);const _0x10f41e=_0x1e7b85?_0x512cf9??_0x2641b1:_0x2641b1,_0x3dffac=!_0x1eb23a&&!_0x451434&&_0x122c67&&_0x32f63e===_0x122c67,_0x36d6ac=_0x1eb23a||(_0x3dffac?_0x122c67:undefined)||(_0x1e7b85?_0x443605:undefined),_0x3657ad=_0x10f41e?.[_0x2f44e4(0x7d)],_0x59cf0f=_0x414869?resolveTopLevelAppCode(_0x1e814c):undefined,_0xe9329e=_0x467861?resolveTopLevelAppCode(_0x5ebc0c):undefined,_0x335799=_0x1eb23a||_0x451434?_0x3657ad:undefined,_0x20660f=!_0x1eb23a&&!_0x451434?_0x3657ad:undefined,_0x576344=_0x1e7b85||_0x335799||_0x59cf0f||_0x20660f||_0xe9329e||undefined,_0xf4ddbf=_0x414869?stringConfigValue(_0x1e814c[_0x2f44e4(0x90)]):undefined,_0x3c0064=_0x467861?stringConfigValue(_0x5ebc0c['env']):undefined,_0x543aef=_0xf95702[_0x2f44e4(0x90)]||_0x10f41e?.['env']||_0xf4ddbf||_0x5b5b0b(_0x2f44e4(0x92))||_0x3c0064||_0x20563e['env']||DEFAULT_CONFIG_VALUES['env'],_0x927b0e=_0x10f41e?.[_0x2f44e4(0x84)]||_0x20563e[_0x2f44e4(0x84)]||DEFAULT_CONFIG_VALUES['locale'],_0x59ac1a=_0x5b5b0b(_0x2f44e4(0x6f))||_0x10f41e?.['cookie']||_0x20563e[_0x2f44e4(0x8d)]||undefined,_0xae5645=_0x5b5b0b('ACCESS_KEY')||_0x10f41e?.[_0x2f44e4(0x89)]||_0x20563e[_0x2f44e4(0x89)]||undefined,_0x133191=_0xf95702[_0x2f44e4(0x86)]||_0x5b5b0b(_0x2f44e4(0x85))||_0x10f41e?.['format']||_0x20563e[_0x2f44e4(0x86)],_0x50fa17=normalizeLegacyOutputFormat(_0x133191),_0x424b41=_0x5b5b0b(_0x2f44e4(0x7e))||_0x10f41e?.[_0x2f44e4(0x6e)]||_0x20563e['pageSize'],_0x5595c7=_0x424b41?Number(_0x424b41)||undefined:undefined,_0x3f7bd5=_0x5b5b0b(_0x2f44e4(0x80))||_0x5b5b0b(_0x2f44e4(0x7f))||_0x10f41e?.[_0x2f44e4(0x75)]||_0x20563e[_0x2f44e4(0x75)]||_0x20563e[_0x2f44e4(0x93)],_0x125861=_0x3f7bd5===_0x2f44e4(0x79)||_0x3f7bd5==='write'?_0x3f7bd5:DEFAULT_CONFIG_VALUES['riskLevel'],_0x1b4549=_0x5b5b0b(_0x2f44e4(0x73)),_0x468cda=_0x1b4549==='1'||_0x1b4549===_0x2f44e4(0x72),_0xb3dd00=_0x10f41e?.[_0x2f44e4(0x76)]||_0x20563e[_0x2f44e4(0x76)]||DEFAULT_CONFIG_VALUES[_0x2f44e4(0x76)],_0x46df4f=isDaily(normalizeEnv(String(_0x543aef)))?_0x2f44e4(0x7c):'production';return{'appCode':typeof _0x576344===_0x2f44e4(0x6c)&&_0x576344[_0x2f44e4(0x7a)]()?_0x576344[_0x2f44e4(0x7a)]():undefined,'env':_0x46df4f,'locale':_0x927b0e,'cookie':_0x59ac1a,'accessKey':_0xae5645,'format':_0x50fa17,'pageSize':_0x5595c7,'riskLevel':_0x125861,'verbose':_0x468cda,'apiDir':_0xb3dd00,'apps':_0x1a8fe7,'defaultApp':_0x3a744e,'currentApp':_0x383d85?_0x32f63e:undefined,'explicitAppName':_0x36d6ac};}
@@ -1 +1 @@
1
- (function(_0x2371db,_0x166da0){const _0x3608b8=a197_0x12e8,_0x592f16=_0x2371db();while(!![]){try{const _0x47d66f=parseInt(_0x3608b8(0x157))/0x1+-parseInt(_0x3608b8(0x163))/0x2*(-parseInt(_0x3608b8(0x15c))/0x3)+-parseInt(_0x3608b8(0x15a))/0x4+parseInt(_0x3608b8(0x161))/0x5+parseInt(_0x3608b8(0x158))/0x6*(parseInt(_0x3608b8(0x15b))/0x7)+parseInt(_0x3608b8(0x15e))/0x8+parseInt(_0x3608b8(0x15f))/0x9*(-parseInt(_0x3608b8(0x15d))/0xa);if(_0x47d66f===_0x166da0)break;else _0x592f16['push'](_0x592f16['shift']());}catch(_0x4c7edd){_0x592f16['push'](_0x592f16['shift']());}}}(a197_0x3ce8,0x84247));function a197_0x12e8(_0x570713,_0x45dae1){_0x570713=_0x570713-0x157;const _0x3ce835=a197_0x3ce8();let _0x12e8e9=_0x3ce835[_0x570713];return _0x12e8e9;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a197_0x3ce8(){const _0x2abdd4=['370mLWJHO','8353944PIYNBm','609597hWXoyS','authRequired','2234260oiHhxU','../auth/get-cookie.js','358PTVkxf','700476laUOsH','390NYZFDM','cookie','3914016iTUZGv','96607dLuMRW','15708CwSSzQ'];a197_0x3ce8=function(){return _0x2abdd4;};return a197_0x3ce8();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4743f8){const _0x599632=a197_0x12e8,{getCookie:_0x20d228}=await import(_0x599632(0x162)),_0x3da630=_0x4743f8[_0x599632(0x159)]||_0x20d228(),_0x4b3956=_0x3da630?await getIsSessionValid():![];return{'cookie':_0x3da630,'isLoggedIn':_0x4b3956,async 'getOrLogin'(){const _0x5f1e62=_0x599632;if(_0x3da630&&_0x4b3956)return _0x3da630;throw CliErrors[_0x5f1e62(0x160)]();}};}
1
+ (function(_0x1b1a0b,_0x4b01d7){const _0x2764a7=a197_0x4c71,_0x309aa0=_0x1b1a0b();while(!![]){try{const _0x4b7d45=parseInt(_0x2764a7(0x10e))/0x1+parseInt(_0x2764a7(0x10d))/0x2+-parseInt(_0x2764a7(0x102))/0x3*(parseInt(_0x2764a7(0x10a))/0x4)+-parseInt(_0x2764a7(0x106))/0x5*(-parseInt(_0x2764a7(0x10f))/0x6)+-parseInt(_0x2764a7(0x103))/0x7*(parseInt(_0x2764a7(0x107))/0x8)+parseInt(_0x2764a7(0x104))/0x9*(parseInt(_0x2764a7(0x108))/0xa)+parseInt(_0x2764a7(0x105))/0xb*(-parseInt(_0x2764a7(0x109))/0xc);if(_0x4b7d45===_0x4b01d7)break;else _0x309aa0['push'](_0x309aa0['shift']());}catch(_0x224a1f){_0x309aa0['push'](_0x309aa0['shift']());}}}(a197_0x22d4,0x4b82c));function a197_0x4c71(_0x366577,_0x4e8ea5){_0x366577=_0x366577-0x102;const _0x22d458=a197_0x22d4();let _0x4c7172=_0x22d458[_0x366577];return _0x4c7172;}function a197_0x22d4(){const _0x4b5d7b=['7021YJARzK','577233mBomXe','1539934oDybNB','25PxCACd','1544WuLuod','70shHQul','84VxSPLk','1916LBklbV','../auth/get-cookie.js','authRequired','681280LmqItM','357118ahjTak','436098JMpXYx','171GxPaYY'];a197_0x22d4=function(){return _0x4b5d7b;};return a197_0x22d4();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x22cb73){const _0x266e83=a197_0x4c71,{getCookie:_0x4a5b1c}=await import(_0x266e83(0x10b)),_0x2b9c7e=_0x22cb73['cookie']||_0x4a5b1c(),_0x8597a0=_0x2b9c7e?await getIsSessionValid():![];return{'cookie':_0x2b9c7e,'isLoggedIn':_0x8597a0,async 'getOrLogin'(){const _0x2b87c7=_0x266e83;if(_0x2b9c7e&&_0x8597a0)return _0x2b9c7e;throw CliErrors[_0x2b87c7(0x10c)]();}};}
@@ -1 +1 @@
1
- const a198_0x551a16=a198_0x5ba3;(function(_0x45b7b1,_0x24853c){const _0x1224f=a198_0x5ba3,_0x3707c6=_0x45b7b1();while(!![]){try{const _0x5568cd=-parseInt(_0x1224f(0xb6))/0x1*(-parseInt(_0x1224f(0xb1))/0x2)+parseInt(_0x1224f(0xd1))/0x3*(-parseInt(_0x1224f(0xdd))/0x4)+-parseInt(_0x1224f(0xb5))/0x5*(parseInt(_0x1224f(0xc5))/0x6)+parseInt(_0x1224f(0xdc))/0x7*(parseInt(_0x1224f(0xd4))/0x8)+parseInt(_0x1224f(0xd9))/0x9+-parseInt(_0x1224f(0xd3))/0xa+-parseInt(_0x1224f(0xbd))/0xb*(-parseInt(_0x1224f(0xb3))/0xc);if(_0x5568cd===_0x24853c)break;else _0x3707c6['push'](_0x3707c6['shift']());}catch(_0x1cdbef){_0x3707c6['push'](_0x3707c6['shift']());}}}(a198_0x2af3,0x7476c));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';function a198_0x5ba3(_0x2868de,_0x2bfb38){_0x2868de=_0x2868de-0xb0;const _0x2af397=a198_0x2af3();let _0x5ba358=_0x2af397[_0x2868de];return _0x5ba358;}function a198_0x2af3(){const _0x2c1e3b=['stringify','1018884yyRSDg','data','migrated','warn','riskLevel','appcode','string','parse','accessKey','apiDir','env','trim','33AJQNNl','object','3963310uLedPR','1502008qWNZLN','format','status','cwd','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','6505263GXZdnP','project','cookie','7URgVzj','244960BYAgWC','missing','locale','pageSize','2LSjIrO','app','5052JVPnvJ','empty','10wTKnHT','5251DEYTRc','utf8','defaultApp','.rabetbase.json','length','message','\x0a\x20\x20','25366IlHKaH','Global','keys','set','apps','error','config'];a198_0x2af3=function(){return _0x2c1e3b;};return a198_0x2af3();}import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a198_0x551a16(0xb9);export const CONFIG_NAMES=[a198_0x551a16(0xb9),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x1b733b=>_0x1b733b!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x18994c){for(const _0x112a06 of CONFIG_NAMES){const _0x3babbd=resolve(_0x18994c,_0x112a06);if(existsSync(_0x3babbd))return _0x3babbd;}return undefined;}export function findProjectRootDirectory(_0x35efd7=process[a198_0x551a16(0xd7)]()){let _0xec9c4d=resolve(_0x35efd7);const {root:_0x1c51f7}=parse(_0xec9c4d),_0x928d86=homedir();while(!![]){if(resolveConfigPath(_0xec9c4d)){if(_0xec9c4d===_0x928d86)break;return _0xec9c4d;}if(_0xec9c4d===_0x1c51f7||_0xec9c4d===_0x928d86)break;const _0x19a3e7=dirname(_0xec9c4d);if(_0x19a3e7===_0xec9c4d)break;_0xec9c4d=_0x19a3e7;}return resolve(_0x35efd7);}export function getProjectConfigPath(){const _0x3daf18=a198_0x551a16;return resolveConfigPath(process[_0x3daf18(0xd7)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x28e7a7){const _0x345762=a198_0x551a16;if(!existsSync(_0x28e7a7))return{'status':_0x345762(0xde)};try{const _0x407817=readFileSync(_0x28e7a7,{'encoding':_0x345762(0xb7)});if(!_0x407817?.['trim']())return{'status':_0x345762(0xb4)};const _0x3f51f9=JSON[_0x345762(0xcc)](_0x407817);return{'status':'ok','data':_0x3f51f9};}catch(_0xafa438){return{'status':_0x345762(0xc2),'message':_0xafa438 instanceof Error?_0xafa438[_0x345762(0xbb)]:String(_0xafa438)};}}function parseCliConfigJsonFile(_0x3596e1,_0x40f7d1,_0x3c9adf){const _0x2d434a=a198_0x551a16,_0x342358=inspectCliConfigJsonFile(_0x3596e1);if(_0x342358[_0x2d434a(0xd6)]===_0x2d434a(0xde)||_0x342358['status']===_0x2d434a(0xb4))return{};if(_0x342358['status']==='ok')return _0x342358[_0x2d434a(0xc6)];return _0x40f7d1===_0x2d434a(0xc8)&&_0x3c9adf&&console[_0x2d434a(0xc2)](CLI_BIN_NAME+':\x20'+_0x3c9adf+_0x2d434a(0xd8)+_0x3596e1+_0x2d434a(0xbc)+_0x342358[_0x2d434a(0xbb)]),{};}function normalizeLegacyConfigShape(_0x932c6d){const _0x4e516e=a198_0x551a16;if(!_0x932c6d||typeof _0x932c6d!==_0x4e516e(0xd2))return{'config':{},'migrated':![]};const _0x10baf7={..._0x932c6d},_0x3b4a2a=_0x10baf7[_0x4e516e(0xc1)]&&typeof _0x10baf7[_0x4e516e(0xc1)]==='object'?{..._0x10baf7[_0x4e516e(0xc1)]}:{},_0x495b79=Object[_0x4e516e(0xbf)](_0x3b4a2a)[_0x4e516e(0xba)],_0x4c96ec=_0x10baf7[_0x4e516e(0xca)]||_0x10baf7[_0x4e516e(0xb2)];let _0x42236e=![];if(_0x4c96ec&&_0x495b79===0x0){const _0x196904=typeof _0x10baf7[_0x4e516e(0xb8)]===_0x4e516e(0xcb)&&_0x10baf7[_0x4e516e(0xb8)][_0x4e516e(0xd0)]()?_0x10baf7['defaultApp']:String(_0x4c96ec)['trim']();_0x3b4a2a[_0x196904]={'appcode':String(_0x4c96ec)[_0x4e516e(0xd0)](),..._0x10baf7[_0x4e516e(0xcf)]!=null?{'env':_0x10baf7[_0x4e516e(0xcf)]}:{},..._0x10baf7[_0x4e516e(0xce)]!=null?{'apiDir':_0x10baf7[_0x4e516e(0xce)]}:{},..._0x10baf7[_0x4e516e(0xdb)]!=null?{'cookie':_0x10baf7[_0x4e516e(0xdb)]}:{},..._0x10baf7[_0x4e516e(0xcd)]!=null?{'accessKey':_0x10baf7['accessKey']}:{},..._0x10baf7['format']!=null?{'format':_0x10baf7[_0x4e516e(0xd5)]}:{},..._0x10baf7[_0x4e516e(0xb0)]!=null?{'pageSize':_0x10baf7[_0x4e516e(0xb0)]}:{},..._0x10baf7[_0x4e516e(0xc9)]!=null?{'riskLevel':_0x10baf7[_0x4e516e(0xc9)]}:{},..._0x10baf7[_0x4e516e(0xdf)]!=null?{'locale':_0x10baf7[_0x4e516e(0xdf)]}:{}},_0x10baf7[_0x4e516e(0xc1)]=_0x3b4a2a;if(!_0x10baf7[_0x4e516e(0xb8)])_0x10baf7['defaultApp']=_0x196904;_0x42236e=!![];}return('appcode'in _0x10baf7||_0x4e516e(0xb2)in _0x10baf7)&&(delete _0x10baf7['appcode'],delete _0x10baf7[_0x4e516e(0xb2)],_0x42236e=!![]),{'config':_0x10baf7,'migrated':_0x42236e};}function writeNormalizedConfigIfNeeded(_0x2216a4,_0x16fcac){const _0x36c852=a198_0x551a16,_0x4e5318=JSON[_0x36c852(0xc4)](_0x16fcac,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2216a4)===_0x4e5318)return;writeConfigFile(_0x2216a4,_0x16fcac),normalizedWriteCache[_0x36c852(0xc0)](_0x2216a4,_0x4e5318);}function parseAndNormalizeConfig(_0x3c860c,_0x52f5a8,_0x148261){const _0x5e0555=a198_0x551a16,_0x2ecac8=parseCliConfigJsonFile(_0x3c860c,_0x52f5a8,_0x148261),_0x3fab61=normalizeLegacyConfigShape(_0x2ecac8);if(_0x3fab61[_0x5e0555(0xc7)])try{writeNormalizedConfigIfNeeded(_0x3c860c,_0x3fab61[_0x5e0555(0xc3)]);}catch{}return _0x3fab61[_0x5e0555(0xc3)];}export function loadRawConfigLayers(_0xbe359c){const _0x73a6f2=a198_0x551a16;let _0x42d9f6={},_0x4a046d={};const _0x4fd8bb=resolveConfigPath(homedir());_0x4fd8bb&&(_0x42d9f6=parseAndNormalizeConfig(_0x4fd8bb,'warn',_0x73a6f2(0xbe)));const _0x35fa4b=_0xbe359c??findProjectRootDirectory(),_0x10fa69=resolveConfigPath(_0x35fa4b);return _0x10fa69&&(_0x4a046d=parseAndNormalizeConfig(_0x10fa69,_0x73a6f2(0xc8),'Project')),{'globalPath':_0x4fd8bb,'projectPath':_0x10fa69,'globalConfig':_0x42d9f6,'projectConfig':_0x4a046d};}const INHERIT_WHITELIST=[a198_0x551a16(0xdb),a198_0x551a16(0xcd),a198_0x551a16(0xdf),a198_0x551a16(0xd5),a198_0x551a16(0xc9),a198_0x551a16(0xb0)];export function mergeRawConfigLayers(_0x47d555){const _0x1027be=a198_0x551a16,{globalConfig:_0x596e51,projectConfig:_0x1668ec}=_0x47d555,_0x39f8e2=Object[_0x1027be(0xbf)](_0x1668ec)[_0x1027be(0xba)]>0x0;if(!_0x39f8e2)return mergeGlobalOnly(_0x596e51);if(_0x1668ec['inherit']===!![])return mergeFullInherit(_0x596e51,_0x1668ec);if(_0x1668ec['inherit']===![])return mergeIsolated(_0x1668ec);return mergeProjectFirst(_0x596e51,_0x1668ec);}function mergeGlobalOnly(_0x136c85){const _0x268252=a198_0x551a16,_0x1c8dbc={..._0x136c85},_0x30391f=_0x136c85[_0x268252(0xc1)]&&typeof _0x136c85['apps']===_0x268252(0xd2)?_0x136c85['apps']:{};if(Object['keys'](_0x30391f)[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xc1)]=_0x30391f;if(_0x136c85['defaultApp'])_0x1c8dbc[_0x268252(0xb8)]=_0x136c85['defaultApp'];else{const _0x5bfef5=Object[_0x268252(0xbf)](_0x30391f);if(_0x5bfef5[_0x268252(0xba)]>0x0)_0x1c8dbc[_0x268252(0xb8)]=_0x5bfef5[0x0];}return _0x1c8dbc;}function mergeIsolated(_0x2ed985){const _0x11e267=a198_0x551a16,_0x45b4a0={..._0x2ed985};delete _0x45b4a0['inherit'];const _0x49d209=_0x2ed985[_0x11e267(0xc1)]&&typeof _0x2ed985[_0x11e267(0xc1)]===_0x11e267(0xd2)?_0x2ed985[_0x11e267(0xc1)]:{};Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xc1)]=_0x49d209:delete _0x45b4a0['apps'];if(_0x11e267(0xb8)in _0x2ed985)_0x45b4a0[_0x11e267(0xb8)]=_0x2ed985[_0x11e267(0xb8)];else Object[_0x11e267(0xbf)](_0x49d209)[_0x11e267(0xba)]>0x0?_0x45b4a0[_0x11e267(0xb8)]=Object[_0x11e267(0xbf)](_0x49d209)[0x0]:delete _0x45b4a0[_0x11e267(0xb8)];return _0x45b4a0;}function mergeProjectFirst(_0x184dd5,_0x3b5b61){const _0x428042=a198_0x551a16,_0xb335ba={..._0x3b5b61};delete _0xb335ba['inherit'];for(const _0x1b607d of INHERIT_WHITELIST){!(_0x1b607d in _0xb335ba)&&_0x1b607d in _0x184dd5&&(_0xb335ba[_0x1b607d]=_0x184dd5[_0x1b607d]);}const _0x5526dd=_0x3b5b61[_0x428042(0xc1)]&&typeof _0x3b5b61[_0x428042(0xc1)]===_0x428042(0xd2)?_0x3b5b61['apps']:{};Object['keys'](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xc1)]=_0x5526dd:delete _0xb335ba[_0x428042(0xc1)];if(_0x428042(0xb8)in _0x3b5b61)_0xb335ba[_0x428042(0xb8)]=_0x3b5b61['defaultApp'];else Object[_0x428042(0xbf)](_0x5526dd)[_0x428042(0xba)]>0x0?_0xb335ba[_0x428042(0xb8)]=Object['keys'](_0x5526dd)[0x0]:delete _0xb335ba[_0x428042(0xb8)];return _0xb335ba;}function mergeFullInherit(_0x2d76d8,_0xd0c20a){const _0x2b500f=a198_0x551a16,_0x25ed7e=_0x2d76d8[_0x2b500f(0xc1)]&&typeof _0x2d76d8['apps']===_0x2b500f(0xd2)?_0x2d76d8[_0x2b500f(0xc1)]:{},_0x29891d=_0xd0c20a['apps']&&typeof _0xd0c20a[_0x2b500f(0xc1)]==='object'?_0xd0c20a[_0x2b500f(0xc1)]:{},_0x422300={..._0x25ed7e,..._0x29891d},_0xa8603={..._0x2d76d8,..._0xd0c20a};delete _0xa8603['inherit'];if(Object['keys'](_0x422300)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xc1)]=_0x422300;if(_0x2b500f(0xb8)in _0xd0c20a)_0xa8603['defaultApp']=_0xd0c20a[_0x2b500f(0xb8)];else{if(Object[_0x2b500f(0xbf)](_0x29891d)[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=Object[_0x2b500f(0xbf)](_0x29891d)[0x0];else{if(_0x2d76d8[_0x2b500f(0xb8)])_0xa8603['defaultApp']=_0x2d76d8[_0x2b500f(0xb8)];else{const _0x2ccc82=Object[_0x2b500f(0xbf)](_0x25ed7e);if(_0x2ccc82[_0x2b500f(0xba)]>0x0)_0xa8603[_0x2b500f(0xb8)]=_0x2ccc82[0x0];}}}return _0xa8603;}export function readRawConfigWithLayers(_0x3edd96){const _0x5369f1=loadRawConfigLayers(_0x3edd96);return{'config':mergeRawConfigLayers(_0x5369f1),'layers':_0x5369f1};}export function readRawConfig(_0x30bf37){return mergeRawConfigLayers(loadRawConfigLayers(_0x30bf37));}export function readConfigFile(_0x240215){return parseAndNormalizeConfig(_0x240215,'silent');}export function writeConfigFile(_0x486db7,_0xe4f1cc){const _0x24fff6=a198_0x551a16,_0x3a2a90=dirname(_0x486db7);!existsSync(_0x3a2a90)&&mkdirSync(_0x3a2a90,{'recursive':!![]});const _0x2b6a83=_0x486db7+'.tmp';try{writeFileSync(_0x2b6a83,JSON['stringify'](_0xe4f1cc,null,0x2)+'\x0a',{'encoding':_0x24fff6(0xb7),'mode':0x180}),renameSync(_0x2b6a83,_0x486db7);}catch(_0x4f3cf1){try{unlinkSync(_0x2b6a83);}catch{}throw _0x4f3cf1;}}export function resolveWriteConfigPath(_0x6f7fce){const _0x4784d5=a198_0x551a16,_0x41fea6=_0x6f7fce===_0x4784d5(0xda)?process[_0x4784d5(0xd7)]():homedir(),_0xbf8f55=resolveConfigPath(_0x41fea6);return _0xbf8f55??resolve(_0x41fea6,NEW_CONFIG_NAME);}
1
+ const a198_0x574baf=a198_0x537b;(function(_0x331ac5,_0x37c197){const _0x54dd8e=a198_0x537b,_0x31e176=_0x331ac5();while(!![]){try{const _0x3cfec0=-parseInt(_0x54dd8e(0x88))/0x1+parseInt(_0x54dd8e(0x9a))/0x2*(-parseInt(_0x54dd8e(0xa0))/0x3)+parseInt(_0x54dd8e(0x8d))/0x4*(-parseInt(_0x54dd8e(0x8f))/0x5)+parseInt(_0x54dd8e(0x97))/0x6+parseInt(_0x54dd8e(0xa4))/0x7*(parseInt(_0x54dd8e(0xb4))/0x8)+parseInt(_0x54dd8e(0xaf))/0x9*(parseInt(_0x54dd8e(0x87))/0xa)+parseInt(_0x54dd8e(0xa2))/0xb;if(_0x3cfec0===_0x37c197)break;else _0x31e176['push'](_0x31e176['shift']());}catch(_0x37d6e0){_0x31e176['push'](_0x31e176['shift']());}}}(a198_0x33ba,0x46a02));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=a198_0x574baf(0xa1);export const CONFIG_NAMES=[a198_0x574baf(0xa1),'.lovrabet.json','.lovrabetrc'];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a198_0x574baf(0xac)](_0x56f3d9=>_0x56f3d9!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3c7628){for(const _0x4a8deb of CONFIG_NAMES){const _0x92ea8c=resolve(_0x3c7628,_0x4a8deb);if(existsSync(_0x92ea8c))return _0x92ea8c;}return undefined;}export function findProjectRootDirectory(_0x18b107=process[a198_0x574baf(0x99)]()){let _0x214191=resolve(_0x18b107);const {root:_0x1a2b2b}=parse(_0x214191),_0x330447=homedir();while(!![]){if(resolveConfigPath(_0x214191)){if(_0x214191===_0x330447)break;return _0x214191;}if(_0x214191===_0x1a2b2b||_0x214191===_0x330447)break;const _0xe3bc26=dirname(_0x214191);if(_0xe3bc26===_0x214191)break;_0x214191=_0xe3bc26;}return resolve(_0x18b107);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1731b5){const _0x1c7962=a198_0x574baf;if(!existsSync(_0x1731b5))return{'status':'missing'};try{const _0xcee966=readFileSync(_0x1731b5,{'encoding':'utf8'});if(!_0xcee966?.[_0x1c7962(0x98)]())return{'status':_0x1c7962(0xa5)};const _0x205964=JSON['parse'](_0xcee966);return{'status':'ok','data':_0x205964};}catch(_0x43d3e0){return{'status':_0x1c7962(0x95),'message':_0x43d3e0 instanceof Error?_0x43d3e0[_0x1c7962(0xad)]:String(_0x43d3e0)};}}function parseCliConfigJsonFile(_0x48e81f,_0x595a20,_0x4c4dee){const _0x1b45b3=a198_0x574baf,_0xa66537=inspectCliConfigJsonFile(_0x48e81f);if(_0xa66537[_0x1b45b3(0x8e)]==='missing'||_0xa66537[_0x1b45b3(0x8e)]===_0x1b45b3(0xa5))return{};if(_0xa66537[_0x1b45b3(0x8e)]==='ok')return _0xa66537['data'];return _0x595a20===_0x1b45b3(0x9c)&&_0x4c4dee&&console['error'](CLI_BIN_NAME+':\x20'+_0x4c4dee+_0x1b45b3(0xa6)+_0x48e81f+'\x0a\x20\x20'+_0xa66537[_0x1b45b3(0xad)]),{};}function normalizeLegacyConfigShape(_0x3331a7){const _0x336887=a198_0x574baf;if(!_0x3331a7||typeof _0x3331a7!==_0x336887(0xab))return{'config':{},'migrated':![]};const _0x628e40={..._0x3331a7},_0x48692a=_0x628e40['apps']&&typeof _0x628e40[_0x336887(0xae)]===_0x336887(0xab)?{..._0x628e40[_0x336887(0xae)]}:{},_0x918600=Object['keys'](_0x48692a)[_0x336887(0xa8)],_0x4621b0=_0x628e40[_0x336887(0xa9)]||_0x628e40['app'];let _0xb02577=![];if(_0x4621b0&&_0x918600===0x0){const _0xeeea2b=typeof _0x628e40[_0x336887(0xb0)]===_0x336887(0x8b)&&_0x628e40[_0x336887(0xb0)][_0x336887(0x98)]()?_0x628e40[_0x336887(0xb0)]:String(_0x4621b0)[_0x336887(0x98)]();_0x48692a[_0xeeea2b]={'appcode':String(_0x4621b0)[_0x336887(0x98)](),..._0x628e40['env']!=null?{'env':_0x628e40[_0x336887(0xaa)]}:{},..._0x628e40[_0x336887(0x9e)]!=null?{'apiDir':_0x628e40[_0x336887(0x9e)]}:{},..._0x628e40['cookie']!=null?{'cookie':_0x628e40[_0x336887(0x9f)]}:{},..._0x628e40[_0x336887(0x9b)]!=null?{'accessKey':_0x628e40[_0x336887(0x9b)]}:{},..._0x628e40[_0x336887(0x94)]!=null?{'format':_0x628e40[_0x336887(0x94)]}:{},..._0x628e40[_0x336887(0xa3)]!=null?{'pageSize':_0x628e40[_0x336887(0xa3)]}:{},..._0x628e40[_0x336887(0x96)]!=null?{'riskLevel':_0x628e40[_0x336887(0x96)]}:{},..._0x628e40[_0x336887(0xb1)]!=null?{'locale':_0x628e40['locale']}:{}},_0x628e40['apps']=_0x48692a;if(!_0x628e40[_0x336887(0xb0)])_0x628e40[_0x336887(0xb0)]=_0xeeea2b;_0xb02577=!![];}return(_0x336887(0xa9)in _0x628e40||'app'in _0x628e40)&&(delete _0x628e40['appcode'],delete _0x628e40[_0x336887(0x9d)],_0xb02577=!![]),{'config':_0x628e40,'migrated':_0xb02577};}function writeNormalizedConfigIfNeeded(_0x4db6cf,_0x5693e4){const _0x14a426=a198_0x574baf,_0xdd8119=JSON[_0x14a426(0x8c)](_0x5693e4,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4db6cf)===_0xdd8119)return;writeConfigFile(_0x4db6cf,_0x5693e4),normalizedWriteCache[_0x14a426(0x91)](_0x4db6cf,_0xdd8119);}function a198_0x33ba(){const _0x8cc96c=['set','silent','config','format','error','riskLevel','2844804JFbCql','trim','cwd','176MqnDKE','accessKey','warn','app','apiDir','cookie','9186RMCthk','.rabetbase.json','3050828EPRdYk','pageSize','98105dHrNfS','empty','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','Project','length','appcode','env','object','filter','message','apps','1591767YEWBmT','defaultApp','locale','keys','project','152emmFSm','20TOIHPQ','567783hNTcwS','inherit','utf8','string','stringify','5384exvdSi','status','910MxSZMp','migrated'];a198_0x33ba=function(){return _0x8cc96c;};return a198_0x33ba();}function parseAndNormalizeConfig(_0x5a6dcb,_0x5646b9,_0x3f1c24){const _0x5cd369=a198_0x574baf,_0x45204b=parseCliConfigJsonFile(_0x5a6dcb,_0x5646b9,_0x3f1c24),_0x2808cc=normalizeLegacyConfigShape(_0x45204b);if(_0x2808cc[_0x5cd369(0x90)])try{writeNormalizedConfigIfNeeded(_0x5a6dcb,_0x2808cc[_0x5cd369(0x93)]);}catch{}return _0x2808cc[_0x5cd369(0x93)];}export function loadRawConfigLayers(_0x298ec5){const _0x4901ce=a198_0x574baf;let _0x14967f={},_0x1de98b={};const _0x35766d=resolveConfigPath(homedir());_0x35766d&&(_0x14967f=parseAndNormalizeConfig(_0x35766d,_0x4901ce(0x9c),'Global'));const _0x130084=_0x298ec5??findProjectRootDirectory(),_0x12f46f=resolveConfigPath(_0x130084);return _0x12f46f&&(_0x1de98b=parseAndNormalizeConfig(_0x12f46f,_0x4901ce(0x9c),_0x4901ce(0xa7))),{'globalPath':_0x35766d,'projectPath':_0x12f46f,'globalConfig':_0x14967f,'projectConfig':_0x1de98b};}const INHERIT_WHITELIST=['cookie',a198_0x574baf(0x9b),'locale',a198_0x574baf(0x94),a198_0x574baf(0x96),a198_0x574baf(0xa3)];export function mergeRawConfigLayers(_0x4becce){const _0xade805=a198_0x574baf,{globalConfig:_0x1f91b6,projectConfig:_0x21a52e}=_0x4becce,_0x3271fc=Object[_0xade805(0xb2)](_0x21a52e)[_0xade805(0xa8)]>0x0;if(!_0x3271fc)return mergeGlobalOnly(_0x1f91b6);if(_0x21a52e['inherit']===!![])return mergeFullInherit(_0x1f91b6,_0x21a52e);if(_0x21a52e['inherit']===![])return mergeIsolated(_0x21a52e);return mergeProjectFirst(_0x1f91b6,_0x21a52e);}function mergeGlobalOnly(_0x38ce02){const _0x4a3e8d=a198_0x574baf,_0x1feae4={..._0x38ce02},_0x3559d6=_0x38ce02[_0x4a3e8d(0xae)]&&typeof _0x38ce02[_0x4a3e8d(0xae)]===_0x4a3e8d(0xab)?_0x38ce02[_0x4a3e8d(0xae)]:{};if(Object[_0x4a3e8d(0xb2)](_0x3559d6)['length']>0x0)_0x1feae4[_0x4a3e8d(0xae)]=_0x3559d6;if(_0x38ce02[_0x4a3e8d(0xb0)])_0x1feae4[_0x4a3e8d(0xb0)]=_0x38ce02[_0x4a3e8d(0xb0)];else{const _0x407cc2=Object['keys'](_0x3559d6);if(_0x407cc2[_0x4a3e8d(0xa8)]>0x0)_0x1feae4['defaultApp']=_0x407cc2[0x0];}return _0x1feae4;}function mergeIsolated(_0x121a64){const _0x8db158=a198_0x574baf,_0x2744f7={..._0x121a64};delete _0x2744f7[_0x8db158(0x89)];const _0x33a0ea=_0x121a64[_0x8db158(0xae)]&&typeof _0x121a64['apps']===_0x8db158(0xab)?_0x121a64['apps']:{};Object[_0x8db158(0xb2)](_0x33a0ea)[_0x8db158(0xa8)]>0x0?_0x2744f7[_0x8db158(0xae)]=_0x33a0ea:delete _0x2744f7[_0x8db158(0xae)];if(_0x8db158(0xb0)in _0x121a64)_0x2744f7['defaultApp']=_0x121a64[_0x8db158(0xb0)];else Object['keys'](_0x33a0ea)[_0x8db158(0xa8)]>0x0?_0x2744f7[_0x8db158(0xb0)]=Object[_0x8db158(0xb2)](_0x33a0ea)[0x0]:delete _0x2744f7[_0x8db158(0xb0)];return _0x2744f7;}function a198_0x537b(_0x3a9f85,_0x4aedd1){_0x3a9f85=_0x3a9f85-0x87;const _0x33ba9e=a198_0x33ba();let _0x537bca=_0x33ba9e[_0x3a9f85];return _0x537bca;}function mergeProjectFirst(_0x3a9d5b,_0x3b0e5f){const _0x32c41b=a198_0x574baf,_0x4405a9={..._0x3b0e5f};delete _0x4405a9['inherit'];for(const _0x11649a of INHERIT_WHITELIST){!(_0x11649a in _0x4405a9)&&_0x11649a in _0x3a9d5b&&(_0x4405a9[_0x11649a]=_0x3a9d5b[_0x11649a]);}const _0xd76bf4=_0x3b0e5f[_0x32c41b(0xae)]&&typeof _0x3b0e5f['apps']==='object'?_0x3b0e5f['apps']:{};Object[_0x32c41b(0xb2)](_0xd76bf4)[_0x32c41b(0xa8)]>0x0?_0x4405a9['apps']=_0xd76bf4:delete _0x4405a9[_0x32c41b(0xae)];if(_0x32c41b(0xb0)in _0x3b0e5f)_0x4405a9[_0x32c41b(0xb0)]=_0x3b0e5f['defaultApp'];else Object['keys'](_0xd76bf4)[_0x32c41b(0xa8)]>0x0?_0x4405a9[_0x32c41b(0xb0)]=Object[_0x32c41b(0xb2)](_0xd76bf4)[0x0]:delete _0x4405a9[_0x32c41b(0xb0)];return _0x4405a9;}function mergeFullInherit(_0x172b0e,_0x1f9416){const _0x48c7c6=a198_0x574baf,_0x1386d9=_0x172b0e[_0x48c7c6(0xae)]&&typeof _0x172b0e['apps']==='object'?_0x172b0e[_0x48c7c6(0xae)]:{},_0x167b18=_0x1f9416[_0x48c7c6(0xae)]&&typeof _0x1f9416[_0x48c7c6(0xae)]===_0x48c7c6(0xab)?_0x1f9416[_0x48c7c6(0xae)]:{},_0x20a095={..._0x1386d9,..._0x167b18},_0x4310a2={..._0x172b0e,..._0x1f9416};delete _0x4310a2[_0x48c7c6(0x89)];if(Object[_0x48c7c6(0xb2)](_0x20a095)[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xae)]=_0x20a095;if(_0x48c7c6(0xb0)in _0x1f9416)_0x4310a2[_0x48c7c6(0xb0)]=_0x1f9416[_0x48c7c6(0xb0)];else{if(Object['keys'](_0x167b18)[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xb0)]=Object[_0x48c7c6(0xb2)](_0x167b18)[0x0];else{if(_0x172b0e[_0x48c7c6(0xb0)])_0x4310a2[_0x48c7c6(0xb0)]=_0x172b0e[_0x48c7c6(0xb0)];else{const _0x2f2a9b=Object[_0x48c7c6(0xb2)](_0x1386d9);if(_0x2f2a9b[_0x48c7c6(0xa8)]>0x0)_0x4310a2[_0x48c7c6(0xb0)]=_0x2f2a9b[0x0];}}}return _0x4310a2;}export function readRawConfigWithLayers(_0x2e298b){const _0x4d0473=loadRawConfigLayers(_0x2e298b);return{'config':mergeRawConfigLayers(_0x4d0473),'layers':_0x4d0473};}export function readRawConfig(_0x419098){return mergeRawConfigLayers(loadRawConfigLayers(_0x419098));}export function readConfigFile(_0x1d9b28){const _0x261462=a198_0x574baf;return parseAndNormalizeConfig(_0x1d9b28,_0x261462(0x92));}export function writeConfigFile(_0x8ddb38,_0x2ba851){const _0x40061b=a198_0x574baf,_0xb06739=dirname(_0x8ddb38);!existsSync(_0xb06739)&&mkdirSync(_0xb06739,{'recursive':!![]});const _0x14ff6a=_0x8ddb38+'.tmp';try{writeFileSync(_0x14ff6a,JSON['stringify'](_0x2ba851,null,0x2)+'\x0a',{'encoding':_0x40061b(0x8a),'mode':0x180}),renameSync(_0x14ff6a,_0x8ddb38);}catch(_0x353567){try{unlinkSync(_0x14ff6a);}catch{}throw _0x353567;}}export function resolveWriteConfigPath(_0x131d46){const _0x2982dc=a198_0x574baf,_0x2115b4=_0x131d46===_0x2982dc(0xb3)?process[_0x2982dc(0x99)]():homedir(),_0x3ebb56=resolveConfigPath(_0x2115b4);return _0x3ebb56??resolve(_0x2115b4,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a199_0xccc63b=a199_0x3987;(function(_0x5dcd0c,_0x806ee3){const _0x45159b=a199_0x3987,_0x11f344=_0x5dcd0c();while(!![]){try{const _0x5bf9ed=-parseInt(_0x45159b(0x79))/0x1*(parseInt(_0x45159b(0x88))/0x2)+parseInt(_0x45159b(0x7f))/0x3*(parseInt(_0x45159b(0x67))/0x4)+parseInt(_0x45159b(0x86))/0x5+-parseInt(_0x45159b(0x6d))/0x6*(parseInt(_0x45159b(0x68))/0x7)+-parseInt(_0x45159b(0x7c))/0x8+-parseInt(_0x45159b(0x65))/0x9*(parseInt(_0x45159b(0x69))/0xa)+parseInt(_0x45159b(0x74))/0xb*(parseInt(_0x45159b(0x6e))/0xc);if(_0x5bf9ed===_0x806ee3)break;else _0x11f344['push'](_0x11f344['shift']());}catch(_0x35f592){_0x11f344['push'](_0x11f344['shift']());}}}(a199_0x5475,0x88a17));import{resolve}from'node:path';function a199_0x3987(_0x1f7396,_0x204acb){_0x1f7396=_0x1f7396-0x65;const _0x54759b=a199_0x5475();let _0x39875d=_0x54759b[_0x1f7396];return _0x39875d;}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,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function a199_0x5475(){const _0x1e151e=['3JqejpO','values','env','runtimeDomain','./constant/env.js','apiDir','projectConfig','1725880gAoNbE','string','69072ktNVmR','setLogPath','cwd','defaultApp','app','slice','apps','147339QBGJqX','-api.ts','1132476UrTXBl','7LfzMgF','360HiUkGX','https://g.lovrabet.com/dist/lovrabet-skill','setRawCommand','trim','1040574lMcQag','1284QgjpZJ','object','./constant/domain.js','replace','map','cookie','166001VGSXHA','globalConfig','entries','appcode','apiDomain','23FXUJSU','userDomain','template_base_url','1010240hQvxOn','project','argv'];a199_0x5475=function(){return _0x1e151e;};return a199_0x5475();}function env(_0x19def1){return process.env[`RABETBASE_${_0x19def1}`]||process.env[`LOVRABET_${_0x19def1}`]||undefined;}export async function createContext(_0x261f71){const _0x5349d6=a199_0x3987,{config:_0x39c25e,layers:_0x317202}=readRawConfigWithLayers(),_0x85d495=buildConfig(_0x39c25e,_0x261f71,_0x317202),{initEnv:_0x3c8cd3}=await import(_0x5349d6(0x83));if(_0x85d495[_0x5349d6(0x81)])_0x3c8cd3(_0x85d495[_0x5349d6(0x81)]);else _0x261f71[_0x5349d6(0x81)]&&typeof _0x261f71[_0x5349d6(0x81)]===_0x5349d6(0x87)&&_0x3c8cd3(_0x261f71['env']);const {initDomains:_0x244f80,getUserDomain:_0x3480ae,getApiDomain:_0xa3ec67}=await import(_0x5349d6(0x70));_0x244f80({'apiDomain':_0x39c25e[_0x5349d6(0x78)]||undefined,'userDomain':_0x39c25e[_0x5349d6(0x7a)]||undefined,'runtimeDomain':_0x39c25e[_0x5349d6(0x82)]||undefined});const _0x28a223={'apiDomain':_0xa3ec67(),'userDomain':_0x3480ae()},_0x282002=await buildAuth(_0x85d495);logger[_0x5349d6(0x89)](process[_0x5349d6(0x8a)]());const _0x2ddd8a=(CLI_BIN_NAME+'\x20'+process[_0x5349d6(0x7e)][_0x5349d6(0x8d)](0x2)['join']('\x20'))[_0x5349d6(0x6c)]();logger[_0x5349d6(0x6b)](_0x2ddd8a);const {isNonInteractive:_0xe218f8}=await import('./utils/is-non-interactive.js'),_0x5caab4=_0xe218f8(_0x261f71);return{'config':_0x85d495,'auth':_0x282002,'logger':logger,'env':_0x28a223,'nonInteractive':_0x5caab4};}export function buildConfigFromFlags(_0x4ee46a){const {config:_0x155887,layers:_0x2a9d86}=readRawConfigWithLayers();return buildConfig(_0x155887,_0x4ee46a,_0x2a9d86);}export function getConfigAppCode(_0x56abba){const _0x3a758e=a199_0x3987,_0xf217df=readRawConfig(_0x56abba);if(_0xf217df['apps']&&typeof _0xf217df[_0x3a758e(0x8e)]===_0x3a758e(0x6f)){const _0x11a0a3=_0xf217df[_0x3a758e(0x8b)];if(_0x11a0a3&&_0xf217df[_0x3a758e(0x8e)][_0x11a0a3]?.['appcode'])return String(_0xf217df[_0x3a758e(0x8e)][_0x11a0a3]['appcode'])[_0x3a758e(0x6c)]();const _0x5143a2=Object[_0x3a758e(0x80)](_0xf217df[_0x3a758e(0x8e)])[0x0];if(_0x5143a2?.[_0x3a758e(0x77)])return String(_0x5143a2[_0x3a758e(0x77)])['trim']();}const _0x7ff5ae=_0xf217df[_0x3a758e(0x77)]||_0xf217df[_0x3a758e(0x8c)];if(typeof _0x7ff5ae!==_0x3a758e(0x87)||_0x7ff5ae[_0x3a758e(0x6c)]()==='')return undefined;return _0x7ff5ae[_0x3a758e(0x6c)]();}export function getMultiAppConfigs(_0x5ab708=a199_0xccc63b(0x7d),_0x1fa4db){const _0x3be601=a199_0xccc63b,_0x384ff5=loadRawConfigLayers(_0x1fa4db);let _0x416d1b,_0x1efac4;if(_0x5ab708==='merged'){const _0x271116=_0x384ff5['globalConfig'][_0x3be601(0x8e)]&&typeof _0x384ff5[_0x3be601(0x75)][_0x3be601(0x8e)]===_0x3be601(0x6f)?_0x384ff5[_0x3be601(0x75)][_0x3be601(0x8e)]:{},_0x347c0c=_0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)]&&typeof _0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)]==='object'?_0x384ff5[_0x3be601(0x85)]['apps']:{};_0x416d1b={..._0x271116,..._0x347c0c};const _0x3f09f8=readRawConfig(_0x1fa4db);_0x1efac4=_0x3f09f8['defaultApp'];}else _0x416d1b=_0x384ff5[_0x3be601(0x85)][_0x3be601(0x8e)],_0x1efac4=_0x384ff5['projectConfig'][_0x3be601(0x8b)];if(!_0x416d1b||typeof _0x416d1b!==_0x3be601(0x6f)||Object['keys'](_0x416d1b)['length']===0x0)return null;return Object[_0x3be601(0x76)](_0x416d1b)[_0x3be601(0x72)](([_0xc127c1,_0x5cc2ad])=>({'name':_0xc127c1,'appcode':_0x5cc2ad?.['appcode']||'','isDefault':_0xc127c1===_0x1efac4,'env':_0x5cc2ad?.[_0x3be601(0x81)],'apiDir':_0x5cc2ad?.[_0x3be601(0x84)],'cookie':_0x5cc2ad?.[_0x3be601(0x73)]||undefined}))['filter'](_0x4e56ba=>_0x4e56ba[_0x3be601(0x77)]);}export function getTemplateBaseUrl(_0x2399ac){const _0x39fdb7=a199_0xccc63b,_0x36c60c=readRawConfig(_0x2399ac);if(_0x36c60c[_0x39fdb7(0x7b)]&&typeof _0x36c60c['template_base_url']===_0x39fdb7(0x87))return _0x36c60c[_0x39fdb7(0x7b)][_0x39fdb7(0x71)](/\/$/,'');return _0x39fdb7(0x6a);}function buildConfig(_0x3a08c7,_0x3ef880,_0x174719){return{...resolveAppConfig({'raw':_0x3a08c7,'flags':_0x3ef880,'layers':_0x174719,'readEnv':env}),'raw':_0x3a08c7};}export function resolveApiFilePath(_0x3b41fd,_0x30290a){const _0x2e2904=a199_0xccc63b,_0x22d970=resolve(process[_0x2e2904(0x8a)](),_0x3b41fd),_0x24d00b=resolve(_0x22d970,'api.ts');if(!_0x30290a)return _0x24d00b;const _0x49c132=readRawConfig(),_0x1d1da9=_0x49c132['apps']&&typeof _0x49c132[_0x2e2904(0x8e)]==='object'?_0x49c132[_0x2e2904(0x8e)]:{},_0x48e3b9=Object[_0x2e2904(0x76)](_0x1d1da9)['find'](([,_0x2d5b41])=>_0x2d5b41?.[_0x2e2904(0x77)]===_0x30290a);if(!_0x48e3b9)return _0x24d00b;const [_0x128be5,_0x3a5cc8]=_0x48e3b9,_0x1a0cdb=typeof _0x49c132['defaultApp']==='string'?_0x49c132[_0x2e2904(0x8b)]:undefined;if(_0x3a5cc8?.[_0x2e2904(0x84)])return _0x24d00b;if(_0x1a0cdb&&_0x128be5!==_0x1a0cdb)return resolve(_0x22d970,_0x128be5+_0x2e2904(0x66));return _0x24d00b;}
1
+ const a199_0x415e24=a199_0x4e2d;(function(_0x52e1d1,_0x1e3b2f){const _0x3d4c4d=a199_0x4e2d,_0x22a6d2=_0x52e1d1();while(!![]){try{const _0xac120=-parseInt(_0x3d4c4d(0x182))/0x1*(-parseInt(_0x3d4c4d(0x18a))/0x2)+parseInt(_0x3d4c4d(0x18b))/0x3*(-parseInt(_0x3d4c4d(0x184))/0x4)+parseInt(_0x3d4c4d(0x16c))/0x5*(parseInt(_0x3d4c4d(0x17a))/0x6)+-parseInt(_0x3d4c4d(0x16b))/0x7+-parseInt(_0x3d4c4d(0x168))/0x8*(parseInt(_0x3d4c4d(0x173))/0x9)+parseInt(_0x3d4c4d(0x174))/0xa*(parseInt(_0x3d4c4d(0x17f))/0xb)+parseInt(_0x3d4c4d(0x17b))/0xc*(-parseInt(_0x3d4c4d(0x18f))/0xd);if(_0xac120===_0x1e3b2f)break;else _0x22a6d2['push'](_0x22a6d2['shift']());}catch(_0x24ed62){_0x22a6d2['push'](_0x22a6d2['shift']());}}}(a199_0x5774,0x1a12e));function a199_0x4e2d(_0x251bf4,_0x42997e){_0x251bf4=_0x251bf4-0x166;const _0x57744b=a199_0x5774();let _0x4e2d83=_0x57744b[_0x251bf4];return _0x4e2d83;}import{resolve}from'node:path';function a199_0x5774(){const _0x5c93fa=['./constant/env.js','apps','defaultApp','1911tixNAb','./utils/is-non-interactive.js','trim','81904XmiQhg','replace','globalConfig','114744OKpZXF','463880gmLkvY','argv','env','apiDomain','merged','projectConfig','userDomain','117ZkigSa','50aDPGxz','values','https://g.lovrabet.com/dist/lovrabet-skill','find','apiDir','filter','6EkbFAO','4116VIJbVD','entries','setLogPath','string','417043DdjYof','slice','project','79kyYZir','template_base_url','369908ZYnhaA','app','keys','appcode','join','object','2958BhKvwB','3QuBeis'];a199_0x5774=function(){return _0x5c93fa;};return a199_0x5774();}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,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x4bde4b){return process.env[`RABETBASE_${_0x4bde4b}`]||process.env[`LOVRABET_${_0x4bde4b}`]||undefined;}export async function createContext(_0x170f80){const _0x48d25d=a199_0x4e2d,{config:_0x56381c,layers:_0x140b84}=readRawConfigWithLayers(),_0x3b33f2=buildConfig(_0x56381c,_0x170f80,_0x140b84),{initEnv:_0x482d27}=await import(_0x48d25d(0x18c));if(_0x3b33f2['env'])_0x482d27(_0x3b33f2[_0x48d25d(0x16e)]);else _0x170f80[_0x48d25d(0x16e)]&&typeof _0x170f80[_0x48d25d(0x16e)]===_0x48d25d(0x17e)&&_0x482d27(_0x170f80[_0x48d25d(0x16e)]);const {initDomains:_0x391ce6,getUserDomain:_0x47a27b,getApiDomain:_0x4a5003}=await import('./constant/domain.js');_0x391ce6({'apiDomain':_0x56381c[_0x48d25d(0x16f)]||undefined,'userDomain':_0x56381c[_0x48d25d(0x172)]||undefined,'runtimeDomain':_0x56381c['runtimeDomain']||undefined});const _0x325c05={'apiDomain':_0x4a5003(),'userDomain':_0x47a27b()},_0x27dfcd=await buildAuth(_0x3b33f2);logger[_0x48d25d(0x17d)](process['cwd']());const _0x3b013e=(CLI_BIN_NAME+'\x20'+process[_0x48d25d(0x16d)][_0x48d25d(0x180)](0x2)[_0x48d25d(0x188)]('\x20'))['trim']();logger['setRawCommand'](_0x3b013e);const {isNonInteractive:_0x23b417}=await import(_0x48d25d(0x166)),_0x3bb47d=_0x23b417(_0x170f80);return{'config':_0x3b33f2,'auth':_0x27dfcd,'logger':logger,'env':_0x325c05,'nonInteractive':_0x3bb47d};}export function buildConfigFromFlags(_0x7a618e){const {config:_0x242765,layers:_0x484e19}=readRawConfigWithLayers();return buildConfig(_0x242765,_0x7a618e,_0x484e19);}export function getConfigAppCode(_0x50512a){const _0x127269=a199_0x4e2d,_0xffec72=readRawConfig(_0x50512a);if(_0xffec72['apps']&&typeof _0xffec72[_0x127269(0x18d)]==='object'){const _0xd08a8c=_0xffec72[_0x127269(0x18e)];if(_0xd08a8c&&_0xffec72[_0x127269(0x18d)][_0xd08a8c]?.[_0x127269(0x187)])return String(_0xffec72[_0x127269(0x18d)][_0xd08a8c][_0x127269(0x187)])['trim']();const _0x11f9e5=Object[_0x127269(0x175)](_0xffec72[_0x127269(0x18d)])[0x0];if(_0x11f9e5?.[_0x127269(0x187)])return String(_0x11f9e5[_0x127269(0x187)])['trim']();}const _0x1ab0ed=_0xffec72[_0x127269(0x187)]||_0xffec72[_0x127269(0x185)];if(typeof _0x1ab0ed!==_0x127269(0x17e)||_0x1ab0ed[_0x127269(0x167)]()==='')return undefined;return _0x1ab0ed['trim']();}export function getMultiAppConfigs(_0x3f833b=a199_0x415e24(0x181),_0x1d8151){const _0x5654a4=a199_0x415e24,_0x3392d3=loadRawConfigLayers(_0x1d8151);let _0x5792a5,_0x4edfc8;if(_0x3f833b===_0x5654a4(0x170)){const _0x4a42a4=_0x3392d3[_0x5654a4(0x16a)]['apps']&&typeof _0x3392d3[_0x5654a4(0x16a)]['apps']===_0x5654a4(0x189)?_0x3392d3[_0x5654a4(0x16a)][_0x5654a4(0x18d)]:{},_0x35c415=_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]&&typeof _0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]===_0x5654a4(0x189)?_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)]:{};_0x5792a5={..._0x4a42a4,..._0x35c415};const _0x84e25e=readRawConfig(_0x1d8151);_0x4edfc8=_0x84e25e[_0x5654a4(0x18e)];}else _0x5792a5=_0x3392d3[_0x5654a4(0x171)][_0x5654a4(0x18d)],_0x4edfc8=_0x3392d3['projectConfig'][_0x5654a4(0x18e)];if(!_0x5792a5||typeof _0x5792a5!==_0x5654a4(0x189)||Object[_0x5654a4(0x186)](_0x5792a5)['length']===0x0)return null;return Object[_0x5654a4(0x17c)](_0x5792a5)['map'](([_0x303ec2,_0x13f22d])=>({'name':_0x303ec2,'appcode':_0x13f22d?.['appcode']||'','isDefault':_0x303ec2===_0x4edfc8,'env':_0x13f22d?.['env'],'apiDir':_0x13f22d?.[_0x5654a4(0x178)],'cookie':_0x13f22d?.['cookie']||undefined}))[_0x5654a4(0x179)](_0x224c52=>_0x224c52['appcode']);}export function getTemplateBaseUrl(_0x209359){const _0x2104a7=a199_0x415e24,_0x509024=readRawConfig(_0x209359);if(_0x509024['template_base_url']&&typeof _0x509024[_0x2104a7(0x183)]==='string')return _0x509024[_0x2104a7(0x183)][_0x2104a7(0x169)](/\/$/,'');return _0x2104a7(0x176);}function buildConfig(_0x2e649b,_0x295730,_0xc19149){return{...resolveAppConfig({'raw':_0x2e649b,'flags':_0x295730,'layers':_0xc19149,'readEnv':env}),'raw':_0x2e649b};}export function resolveApiFilePath(_0x3c0129,_0x460e34){const _0x171d14=a199_0x415e24,_0x1e7cc2=resolve(process['cwd'](),_0x3c0129),_0x2c12b8=resolve(_0x1e7cc2,'api.ts');if(!_0x460e34)return _0x2c12b8;const _0x1fe3c8=readRawConfig(),_0x4ed8c1=_0x1fe3c8[_0x171d14(0x18d)]&&typeof _0x1fe3c8[_0x171d14(0x18d)]===_0x171d14(0x189)?_0x1fe3c8['apps']:{},_0x4154ac=Object[_0x171d14(0x17c)](_0x4ed8c1)[_0x171d14(0x177)](([,_0x289c7c])=>_0x289c7c?.[_0x171d14(0x187)]===_0x460e34);if(!_0x4154ac)return _0x2c12b8;const [_0x2a6fcc,_0x2f6dc5]=_0x4154ac,_0x47b49d=typeof _0x1fe3c8[_0x171d14(0x18e)]==='string'?_0x1fe3c8[_0x171d14(0x18e)]:undefined;if(_0x2f6dc5?.[_0x171d14(0x178)])return _0x2c12b8;if(_0x47b49d&&_0x2a6fcc!==_0x47b49d)return resolve(_0x1e7cc2,_0x2a6fcc+'-api.ts');return _0x2c12b8;}
@@ -1 +1 @@
1
- (function(_0x2b8230,_0x3f98b3){const _0x2bd116=a200_0x5241,_0x436499=_0x2b8230();while(!![]){try{const _0x1a52c9=-parseInt(_0x2bd116(0x1f6))/0x1*(parseInt(_0x2bd116(0x1fa))/0x2)+-parseInt(_0x2bd116(0x202))/0x3+-parseInt(_0x2bd116(0x1f8))/0x4*(-parseInt(_0x2bd116(0x206))/0x5)+parseInt(_0x2bd116(0x207))/0x6+parseInt(_0x2bd116(0x200))/0x7+parseInt(_0x2bd116(0x208))/0x8*(-parseInt(_0x2bd116(0x205))/0x9)+-parseInt(_0x2bd116(0x1fd))/0xa*(parseInt(_0x2bd116(0x1fe))/0xb);if(_0x1a52c9===_0x3f98b3)break;else _0x436499['push'](_0x436499['shift']());}catch(_0x58f08c){_0x436499['push'](_0x436499['shift']());}}}(a200_0x581b,0xb3a22));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a200_0x5241(_0x2642e0,_0xc05624){_0x2642e0=_0x2642e0-0x1f4;const _0x581b60=a200_0x581b();let _0x52413b=_0x581b60[_0x2642e0];return _0x52413b;}const cache=new Map();function parseApiFile(_0x36e81d){const _0x188c4e=a200_0x5241,_0x47efd2=[],_0x3d266b=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x56eb05;while((_0x56eb05=_0x3d266b[_0x188c4e(0x1ff)](_0x36e81d))!==null){_0x47efd2[_0x188c4e(0x1f4)]({'datasetCode':_0x56eb05[0x1],'tableName':_0x56eb05[0x2],'name':_0x56eb05[0x3],'alias':_0x56eb05[0x4]});}return _0x47efd2;}export function loadAliasMap(_0x217c3d,_0x92724d,_0x4ddc77){const _0x1a41df=a200_0x5241,_0x310642=_0x4ddc77??resolve(process[_0x1a41df(0x201)](),_0x217c3d,_0x1a41df(0x203));if(cache[_0x1a41df(0x1fc)](_0x310642))return cache[_0x1a41df(0x1f9)](_0x310642);if(!existsSync(_0x310642))return cache[_0x1a41df(0x1fb)](_0x310642,[]),[];try{const _0x4e1ff4=readFileSync(_0x310642,_0x1a41df(0x1f5)),_0x4895fc=parseApiFile(_0x4e1ff4);return cache['set'](_0x310642,_0x4895fc),_0x4895fc;}catch{return cache[_0x1a41df(0x1fb)](_0x310642,[]),[];}}function a200_0x581b(){const _0xd4654a=['579032ZPmzhy','push','utf-8','10wNtFzI','find','335436XTlbUd','get','8786OCriis','set','has','20FHlRAL','8833253FDmVCw','exec','10270946cAwjHy','cwd','3643695GqWzXC','api.ts','alias','45MFaoMj','85QTfrmM','6415998zbxLRx'];a200_0x581b=function(){return _0xd4654a;};return a200_0x581b();}export function resolveAlias(_0x3d7705,_0x3773db,_0x4e01ed,_0xf57c2f){const _0x5e8445=a200_0x5241;if(!_0x3773db)return undefined;const _0x28e9c7=loadAliasMap(_0x3d7705,_0x4e01ed,_0xf57c2f),_0x524275=_0x28e9c7[_0x5e8445(0x1f7)](_0x5169c9=>_0x5169c9[_0x5e8445(0x204)]===_0x3773db);return _0x524275?.['datasetCode'];}export function listAliases(_0x33acf8,_0x305ae3,_0x3cf552){return loadAliasMap(_0x33acf8,_0x305ae3,_0x3cf552);}
1
+ (function(_0x2b3b15,_0x4e8aab){const _0x55ab7c=a200_0x2bac,_0x3b63f3=_0x2b3b15();while(!![]){try{const _0x4ba968=parseInt(_0x55ab7c(0xe4))/0x1*(parseInt(_0x55ab7c(0xec))/0x2)+parseInt(_0x55ab7c(0xe9))/0x3+parseInt(_0x55ab7c(0xee))/0x4+parseInt(_0x55ab7c(0xf0))/0x5+-parseInt(_0x55ab7c(0xed))/0x6*(parseInt(_0x55ab7c(0xf5))/0x7)+-parseInt(_0x55ab7c(0xef))/0x8*(-parseInt(_0x55ab7c(0xea))/0x9)+parseInt(_0x55ab7c(0xf3))/0xa*(-parseInt(_0x55ab7c(0xf2))/0xb);if(_0x4ba968===_0x4e8aab)break;else _0x3b63f3['push'](_0x3b63f3['shift']());}catch(_0x90eb35){_0x3b63f3['push'](_0x3b63f3['shift']());}}}(a200_0x183f,0xd8c18));function a200_0x2bac(_0x2f7dad,_0x22042b){_0x2f7dad=_0x2f7dad-0xe4;const _0x183f82=a200_0x183f();let _0x2bacd2=_0x183f82[_0x2f7dad];return _0x2bacd2;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function a200_0x183f(){const _0x265fbe=['set','utf-8','2713866cXjoDv','2595636spDKcs','find','3101402fMGUUh','902238InCpxH','3745836XVvvkO','40JMIbaU','2191650lgdQYK','datasetCode','33qcDLVP','14113090FqpvVA','has','7FvAQEh','api.ts','alias','1AsYZPQ','exec','get'];a200_0x183f=function(){return _0x265fbe;};return a200_0x183f();}function parseApiFile(_0x2822c1){const _0x13c96a=a200_0x2bac,_0x213b75=[],_0x341b17=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0xcf2a30;while((_0xcf2a30=_0x341b17[_0x13c96a(0xe5)](_0x2822c1))!==null){_0x213b75['push']({'datasetCode':_0xcf2a30[0x1],'tableName':_0xcf2a30[0x2],'name':_0xcf2a30[0x3],'alias':_0xcf2a30[0x4]});}return _0x213b75;}export function loadAliasMap(_0x5c1bfe,_0x1cae1d,_0x350466){const _0x2da672=a200_0x2bac,_0x2be0e0=_0x350466??resolve(process['cwd'](),_0x5c1bfe,_0x2da672(0xf6));if(cache[_0x2da672(0xf4)](_0x2be0e0))return cache[_0x2da672(0xe6)](_0x2be0e0);if(!existsSync(_0x2be0e0))return cache['set'](_0x2be0e0,[]),[];try{const _0x582e10=readFileSync(_0x2be0e0,_0x2da672(0xe8)),_0x20163a=parseApiFile(_0x582e10);return cache['set'](_0x2be0e0,_0x20163a),_0x20163a;}catch{return cache[_0x2da672(0xe7)](_0x2be0e0,[]),[];}}export function resolveAlias(_0x11cb27,_0x54a3ee,_0x284392,_0x3e4b53){const _0x1f3c5b=a200_0x2bac;if(!_0x54a3ee)return undefined;const _0x15c5a7=loadAliasMap(_0x11cb27,_0x284392,_0x3e4b53),_0x2d0587=_0x15c5a7[_0x1f3c5b(0xeb)](_0x222296=>_0x222296[_0x1f3c5b(0xf7)]===_0x54a3ee);return _0x2d0587?.[_0x1f3c5b(0xf1)];}export function listAliases(_0x27d50c,_0x266876,_0x14cec1){return loadAliasMap(_0x27d50c,_0x266876,_0x14cec1);}