@lovrabet/rabetbase-cli 2.3.10-beta.1 → 2.3.10

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 (259) 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/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -0
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/regroup-start.js +1 -1
  109. package/lib/commands/menu/shared/compare-table.js +1 -1
  110. package/lib/commands/menu/shared/delete-plan.js +1 -1
  111. package/lib/commands/menu/shared/facts.js +1 -1
  112. package/lib/commands/menu/shared/index.js +1 -1
  113. package/lib/commands/menu/shared/inquirer.js +1 -1
  114. package/lib/commands/menu/shared/local-pages.js +1 -1
  115. package/lib/commands/menu/shared/logic.js +1 -1
  116. package/lib/commands/menu/shared/mutations.js +1 -1
  117. package/lib/commands/menu/shared/service.js +1 -1
  118. package/lib/commands/menu/shared/sync-core.js +1 -1
  119. package/lib/commands/menu/shared/update-core.js +1 -1
  120. package/lib/commands/menu/shared/valid-url.js +1 -1
  121. package/lib/commands/menu/sync.js +1 -1
  122. package/lib/commands/menu/update.js +1 -1
  123. package/lib/commands/notification/config-list.js +1 -1
  124. package/lib/commands/notification/index.js +1 -1
  125. package/lib/commands/page/generate-start.js +1 -1
  126. package/lib/commands/page/generate-status.js +1 -1
  127. package/lib/commands/page/index.js +1 -1
  128. package/lib/commands/page/pull.js +1 -1
  129. package/lib/commands/page/push.js +1 -1
  130. package/lib/commands/page/relation-audit.js +1 -1
  131. package/lib/commands/page/shared.js +1 -1
  132. package/lib/commands/page/standard-page-status.js +1 -1
  133. package/lib/commands/page/sync.js +1 -1
  134. package/lib/commands/permit/index.js +1 -1
  135. package/lib/commands/permit/page-get.js +1 -1
  136. package/lib/commands/permit/page-set.js +1 -1
  137. package/lib/commands/permit/role-apis-set.js +1 -1
  138. package/lib/commands/permit/role-menus-set.js +1 -1
  139. package/lib/commands/permit/role-menus.js +1 -1
  140. package/lib/commands/permit/shared.js +1 -1
  141. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  142. package/lib/commands/project/create/format-elapsed.js +1 -1
  143. package/lib/commands/project/create/main.js +1 -1
  144. package/lib/commands/project/create/non-interactive.js +1 -1
  145. package/lib/commands/project/create/project-template-path.js +1 -1
  146. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  147. package/lib/commands/project/create/use-format-code.js +1 -1
  148. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  149. package/lib/commands/project/index.js +1 -1
  150. package/lib/commands/project/init.js +1 -1
  151. package/lib/commands/project/upgrade.js +1 -1
  152. package/lib/commands/registry.js +1 -1
  153. package/lib/commands/role/create.js +1 -1
  154. package/lib/commands/role/delete.js +1 -1
  155. package/lib/commands/role/detail.js +1 -1
  156. package/lib/commands/role/index.js +1 -1
  157. package/lib/commands/role/list.js +1 -1
  158. package/lib/commands/role/shared.js +1 -1
  159. package/lib/commands/role/update.js +1 -1
  160. package/lib/commands/role/user-add.js +1 -1
  161. package/lib/commands/role/user-remove.js +1 -1
  162. package/lib/commands/role/user-resolve.js +1 -1
  163. package/lib/commands/run/index.js +1 -1
  164. package/lib/commands/schema.js +1 -1
  165. package/lib/commands/sql/create.js +1 -1
  166. package/lib/commands/sql/delete.js +1 -1
  167. package/lib/commands/sql/detail.js +1 -1
  168. package/lib/commands/sql/exec.js +1 -1
  169. package/lib/commands/sql/index.js +1 -1
  170. package/lib/commands/sql/list.js +1 -1
  171. package/lib/commands/sql/pull.js +1 -1
  172. package/lib/commands/sql/push.js +1 -1
  173. package/lib/commands/sql/save.js +1 -1
  174. package/lib/commands/sql/shared.js +1 -1
  175. package/lib/commands/sql/status.js +1 -1
  176. package/lib/commands/sql/validate.js +1 -1
  177. package/lib/commands/task/index.js +1 -1
  178. package/lib/commands/task/status.js +1 -1
  179. package/lib/commands/workspace/add.js +1 -1
  180. package/lib/commands/workspace/index.js +1 -1
  181. package/lib/commands/workspace/remove.js +1 -1
  182. package/lib/config/schema.js +1 -1
  183. package/lib/constant/cdn.js +1 -1
  184. package/lib/constant/cli.js +1 -1
  185. package/lib/constant/defaults.js +1 -1
  186. package/lib/constant/domain.js +1 -1
  187. package/lib/constant/env.js +1 -1
  188. package/lib/constant/output.js +1 -1
  189. package/lib/constant/paths.js +1 -1
  190. package/lib/constant/risk.js +1 -1
  191. package/lib/context/app-resolver.js +1 -1
  192. package/lib/context/auth-resolver.js +1 -1
  193. package/lib/context/config-loader.js +1 -1
  194. package/lib/context.js +1 -1
  195. package/lib/core/alias-resolver.js +1 -1
  196. package/lib/core/api-client.js +1 -1
  197. package/lib/core/bff/config.js +1 -1
  198. package/lib/core/bff/file-system.js +1 -1
  199. package/lib/core/bff/hash.js +1 -1
  200. package/lib/core/bff/lock.js +1 -1
  201. package/lib/core/bff/utils.js +1 -1
  202. package/lib/core/db-resolver.js +1 -1
  203. package/lib/core/page/file-system.js +1 -1
  204. package/lib/core/page/hash.js +1 -1
  205. package/lib/core/page/lock.js +1 -1
  206. package/lib/core/sql-index-auditor.js +1 -1
  207. package/lib/core/sql-sync/config.js +1 -1
  208. package/lib/core/sql-sync/file-system.js +1 -1
  209. package/lib/core/sql-sync/hash.js +1 -1
  210. package/lib/core/sql-sync/lock.js +1 -1
  211. package/lib/core/sql-sync/utils.js +1 -1
  212. package/lib/core/sql-validator.js +1 -1
  213. package/lib/errors.js +1 -1
  214. package/lib/framework/build-all-flags.js +1 -1
  215. package/lib/framework/error-output.js +1 -1
  216. package/lib/framework/explicit-yes.js +1 -1
  217. package/lib/framework/flags.js +1 -1
  218. package/lib/framework/help.js +1 -1
  219. package/lib/framework/index.js +1 -1
  220. package/lib/framework/output.js +1 -1
  221. package/lib/framework/response.js +1 -1
  222. package/lib/framework/runner-alias.js +1 -1
  223. package/lib/framework/runner.js +1 -1
  224. package/lib/framework/schema-export.js +1 -1
  225. package/lib/framework/types.js +1 -1
  226. package/lib/generated/build-info.js +1 -1
  227. package/lib/help.js +1 -1
  228. package/lib/skills/main.js +1 -1
  229. package/lib/skills/npx-skills-add.js +1 -1
  230. package/lib/telemetry/cli-command-trace.js +1 -1
  231. package/lib/telemetry/cli-help-trace.js +1 -1
  232. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  233. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  234. package/lib/telemetry/send-cli-trace-log.js +1 -1
  235. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  236. package/lib/utils/ai_config.js +1 -1
  237. package/lib/utils/apply-jq-filter.js +1 -1
  238. package/lib/utils/cdn-config.js +1 -1
  239. package/lib/utils/check-sdk-version.js +1 -1
  240. package/lib/utils/cli-version-check.js +1 -1
  241. package/lib/utils/cli-version-policy.js +1 -1
  242. package/lib/utils/config.js +1 -1
  243. package/lib/utils/copy-directory.js +1 -1
  244. package/lib/utils/entity-with-id.js +1 -1
  245. package/lib/utils/file-utils.js +1 -1
  246. package/lib/utils/guides-cdn.js +1 -1
  247. package/lib/utils/http-client.js +1 -1
  248. package/lib/utils/is-non-interactive.js +1 -1
  249. package/lib/utils/logger.js +1 -1
  250. package/lib/utils/params.js +1 -1
  251. package/lib/utils/platform.js +1 -1
  252. package/lib/utils/rules-cdn.js +1 -1
  253. package/lib/utils/sleep.js +1 -1
  254. package/lib/utils/template-replacer.js +1 -1
  255. package/lib/utils/update-notice.js +1 -1
  256. package/lib/utils/version.js +1 -1
  257. package/lib/utils/with-active-cookie.js +1 -1
  258. package/lib/utils/write-cli-side-channel.js +1 -1
  259. package/package.json +1 -1
@@ -1 +1 @@
1
- const a178_0x549c96=a178_0x1a5b;(function(_0x2ec53e,_0x36861e){const _0x1974ed=a178_0x1a5b,_0x57c146=_0x2ec53e();while(!![]){try{const _0x1f6264=parseInt(_0x1974ed(0x73))/0x1*(parseInt(_0x1974ed(0x6e))/0x2)+-parseInt(_0x1974ed(0x6c))/0x3*(-parseInt(_0x1974ed(0x76))/0x4)+parseInt(_0x1974ed(0x70))/0x5+-parseInt(_0x1974ed(0x75))/0x6*(parseInt(_0x1974ed(0x74))/0x7)+-parseInt(_0x1974ed(0x69))/0x8+-parseInt(_0x1974ed(0x6b))/0x9*(-parseInt(_0x1974ed(0x71))/0xa)+parseInt(_0x1974ed(0x6f))/0xb*(-parseInt(_0x1974ed(0x6a))/0xc);if(_0x1f6264===_0x36861e)break;else _0x57c146['push'](_0x57c146['shift']());}catch(_0xca932f){_0x57c146['push'](_0x57c146['shift']());}}}(a178_0x13c8,0xccf9c));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a178_0x549c96(0x72),'risk':a178_0x549c96(0x6d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a178_0x549c96(0x68),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x396cf1=>validateAppName(_0x396cf1,a178_0x549c96(0x67)),'execute':_0x215e19=>runAppAdd(_0x215e19,a178_0x549c96(0x67))};function a178_0x1a5b(_0x38ed06,_0x3033d8){_0x38ed06=_0x38ed06-0x67;const _0x13c800=a178_0x13c8();let _0x1a5b8e=_0x13c800[_0x38ed06];return _0x1a5b8e;}function a178_0x13c8(){const _0x46484=['21986IXMhAN','28nnmPEs','1068222bhKFVh','1316Qbtehj','workspace\x20add','name','8310512vfNTav','21552HWFekL','43128aXLUww','3801dKaVOh','write','92awVKPV','1012mdXoiq','3235555JYAjFX','1420elLpIv','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)'];a178_0x13c8=function(){return _0x46484;};return a178_0x13c8();}
1
+ function a179_0x2198(_0xccd3e7,_0x20cbd1){_0xccd3e7=_0xccd3e7-0x1b1;const _0x3a3d08=a179_0x3a3d();let _0x219814=_0x3a3d08[_0xccd3e7];return _0x219814;}const a179_0x523f6e=a179_0x2198;function a179_0x3a3d(){const _0x338f54=['10364riTmZg','workspace\x20add','6OeIvUi','2792TUDzqX','3356780ODoivB','1433448kPbOSE','852hVfoiH','1230490cKvfCO','727608yIfqLi','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','4204060ksLgTg','7587zebcJl'];a179_0x3a3d=function(){return _0x338f54;};return a179_0x3a3d();}(function(_0x12d25a,_0x3fbebd){const _0x1016dc=a179_0x2198,_0x102a17=_0x12d25a();while(!![]){try{const _0x39bb5f=-parseInt(_0x1016dc(0x1b2))/0x1+parseInt(_0x1016dc(0x1bb))/0x2+parseInt(_0x1016dc(0x1bc))/0x3*(parseInt(_0x1016dc(0x1b6))/0x4)+-parseInt(_0x1016dc(0x1ba))/0x5*(-parseInt(_0x1016dc(0x1b8))/0x6)+-parseInt(_0x1016dc(0x1b4))/0x7+parseInt(_0x1016dc(0x1b9))/0x8*(-parseInt(_0x1016dc(0x1b5))/0x9)+-parseInt(_0x1016dc(0x1b1))/0xa;if(_0x39bb5f===_0x3fbebd)break;else _0x102a17['push'](_0x102a17['shift']());}catch(_0x2a9801){_0x102a17['push'](_0x102a17['shift']());}}}(a179_0x3a3d,0x5c670));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a179_0x523f6e(0x1b3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x2bb835=>validateAppName(_0x2bb835,a179_0x523f6e(0x1b7)),'execute':_0x5c75b2=>runAppAdd(_0x5c75b2,a179_0x523f6e(0x1b7))};
@@ -1 +1 @@
1
- const a179_0x6c8f76=a179_0x11ff;(function(_0xf74581,_0x1a5004){const _0x1fcdb1=a179_0x11ff,_0x3668b=_0xf74581();while(!![]){try{const _0x54932b=parseInt(_0x1fcdb1(0xe0))/0x1*(parseInt(_0x1fcdb1(0xcc))/0x2)+-parseInt(_0x1fcdb1(0x100))/0x3*(parseInt(_0x1fcdb1(0x107))/0x4)+-parseInt(_0x1fcdb1(0xee))/0x5*(-parseInt(_0x1fcdb1(0xf2))/0x6)+-parseInt(_0x1fcdb1(0xcb))/0x7*(-parseInt(_0x1fcdb1(0x103))/0x8)+-parseInt(_0x1fcdb1(0xe8))/0x9+-parseInt(_0x1fcdb1(0xe1))/0xa*(parseInt(_0x1fcdb1(0xf4))/0xb)+parseInt(_0x1fcdb1(0xdd))/0xc*(-parseInt(_0x1fcdb1(0xd6))/0xd);if(_0x54932b===_0x1a5004)break;else _0x3668b['push'](_0x3668b['shift']());}catch(_0x464301){_0x3668b['push'](_0x3668b['shift']());}}}(a179_0x56a2,0x62c3c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a179_0x11ff(_0x3bc8e8,_0x123598){_0x3bc8e8=_0x3bc8e8-0xca;const _0x56a2df=a179_0x56a2();let _0x11ff60=_0x56a2df[_0x3bc8e8];return _0x11ff60;}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+a179_0x6c8f76(0xd9),SAFE_PROFILE_KEYS=[a179_0x6c8f76(0xd7),'env',a179_0x6c8f76(0xfd),a179_0x6c8f76(0x105),a179_0x6c8f76(0xfb),a179_0x6c8f76(0x102),'locale'],workspaceFlags=[{'name':a179_0x6c8f76(0xd5),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a179_0x6c8f76(0xd7),'type':a179_0x6c8f76(0xda),'description':a179_0x6c8f76(0x104)},{'name':a179_0x6c8f76(0xf6),'type':a179_0x6c8f76(0xda),'description':a179_0x6c8f76(0xdf),'enum':[...RABETBASE_ENV_VALUES]},{'name':a179_0x6c8f76(0xfd),'type':a179_0x6c8f76(0xda),'description':a179_0x6c8f76(0xcf)},{'name':a179_0x6c8f76(0xd2),'type':'string','description':a179_0x6c8f76(0xe9),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a179_0x6c8f76(0xdb),'description':a179_0x6c8f76(0xe4)},{'name':'riskLevel','type':a179_0x6c8f76(0xda),'description':a179_0x6c8f76(0xe6),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a179_0x6c8f76(0xda),'description':a179_0x6c8f76(0xe7)}];function isRecord(_0xa8b97e){const _0x117d1b=a179_0x6c8f76;return!!_0xa8b97e&&typeof _0xa8b97e===_0x117d1b(0xfa)&&!Array[_0x117d1b(0x106)](_0xa8b97e);}function assertValidAppcode(_0x25c148){const _0x2acfcb=a179_0x6c8f76,{valid:_0x5e9ffd,message:_0x523b9a}=validateAppcode(_0x25c148);if(!_0x5e9ffd)throw CliErrors[_0x2acfcb(0xf1)](_0x2acfcb(0xef)+_0x25c148,_0x523b9a);}function sanitizeProfile(_0xf3f71f){if(!isRecord(_0xf3f71f))return{};const _0x2486d0={};for(const _0x34a719 of SAFE_PROFILE_KEYS){if(_0xf3f71f[_0x34a719]!==undefined)_0x2486d0[_0x34a719]=_0xf3f71f[_0x34a719];}return _0x2486d0;}function cloneProfile(_0x328397){return isRecord(_0x328397)?{..._0x328397}:{};}function collectWorkspaceProfileOverrides(_0x4a3f3b){const _0xc40f6a=a179_0x6c8f76,_0x4976ee={},_0x3aad89=_0x4a3f3b[_0xc40f6a(0xd0)](_0xc40f6a(0xf6)),_0x1292ef=_0x4a3f3b[_0xc40f6a(0xd0)]('apiDir'),_0x3fa84a=_0x4a3f3b[_0xc40f6a(0xd0)](_0xc40f6a(0xd2)),_0x207e63=_0x4a3f3b[_0xc40f6a(0xeb)](_0xc40f6a(0xfb)),_0x1a8340=_0x4a3f3b[_0xc40f6a(0xd0)](_0xc40f6a(0x102)),_0x1499ab=_0x4a3f3b[_0xc40f6a(0xd0)](_0xc40f6a(0xdc));if(_0x3aad89)_0x4976ee['env']=_0x3aad89;if(_0x1292ef)_0x4976ee[_0xc40f6a(0xfd)]=_0x1292ef;if(_0x3fa84a)_0x4976ee[_0xc40f6a(0x105)]=_0x3fa84a;if(_0x207e63!==undefined&&_0x207e63!=='')_0x4976ee[_0xc40f6a(0xfb)]=Number(_0x207e63);if(_0x1a8340)_0x4976ee[_0xc40f6a(0x102)]=_0x1a8340;if(_0x1499ab)_0x4976ee[_0xc40f6a(0xdc)]=_0x1499ab;return _0x4976ee;}async function validateWorkspaceArgs(_0x4b0b3b){const _0x5c494e=a179_0x6c8f76,_0x406d41=_0x4b0b3b[_0x5c494e(0xd0)](_0x5c494e(0xd5))['trim'](),_0x214458=_0x4b0b3b['str'](_0x5c494e(0xd7))[_0x5c494e(0xf5)]();if(!_0x406d41&&!_0x214458)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x5c494e(0xf7)+CLI_BIN_NAME+_0x5c494e(0xff)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x214458)assertValidAppcode(_0x214458);}function resolveKnownApps(){const _0x1740eb=a179_0x6c8f76,{config:_0x5ac3b5,layers:_0x3cb327}=readRawConfigWithLayers(),_0x395d2d=isRecord(_0x5ac3b5[_0x1740eb(0xf8)])?_0x5ac3b5['apps']:{},_0x3fad16=isRecord(_0x3cb327['globalConfig'][_0x1740eb(0xf8)])?_0x3cb327[_0x1740eb(0xce)][_0x1740eb(0xf8)]:{};return{..._0x3fad16,..._0x395d2d};}function a179_0x56a2(){const _0x186759=['API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','str','\x20workspace\x20use\x20--app\x20<name>`.','defaultFormat','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','init','app','33306gxDSbi','appcode','\x20--app\x20','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','string','number','locale','504VXQlVd','use','Target\x20environment','9XafgGc','5746210dgFgQk','Missing\x20workspace\x20app\x20selector.','keys','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','length','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','7093386kTdOZf','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','join','flag','write','Workspace\x20','35Nuxsth','Invalid\x20appcode:\x20','\x22\x20not\x20found.','validation','556518NkHuuW','\x20workspace\x20','11ZzTQbq','trim','env','Use\x20`','apps',').\x20Config:\x20','object','pageSize','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apiDir','\x20--appcode\x20<code>`.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','450pKJFav','defaultApp','riskLevel','8BtCjdV','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','format','isArray','1656BnZbYk','App\x20\x22','4645753TkCQZP','138682GuJaVV','Switch\x20the\x20current\x20workspace\x20app\x20binding','globalConfig'];a179_0x56a2=function(){return _0x186759;};return a179_0x56a2();}async function configureWorkspace(_0x39d8c2,_0x3319ec){const _0x1bebbb=a179_0x6c8f76,_0x50f969=_0x39d8c2[_0x1bebbb(0xd0)]('app')[_0x1bebbb(0xf5)](),_0x5aef34=_0x39d8c2[_0x1bebbb(0xd0)](_0x1bebbb(0xd7))['trim'](),_0x213c80=_0x50f969||_0x5aef34;if(!_0x213c80)throw CliErrors['validation'](_0x1bebbb(0xe2),_0x1bebbb(0xf7)+CLI_BIN_NAME+_0x1bebbb(0xff)+CLI_BIN_NAME+_0x1bebbb(0xd1));if(_0x5aef34)assertValidAppcode(_0x5aef34);const _0x1e6293=resolveWriteConfigPath('project'),_0x14660=readConfigFile(_0x1e6293),_0x22c973=resolveKnownApps(),_0x32496f=isRecord(_0x14660[_0x1bebbb(0xf8)])?{..._0x14660[_0x1bebbb(0xf8)]}:{},_0x5018fb=cloneProfile(_0x32496f[_0x213c80]),_0x29d2c8=sanitizeProfile(_0x22c973[_0x213c80]),_0x711df0=_0x5aef34?{}:_0x29d2c8,_0x4765b3=_0x5aef34||_0x711df0[_0x1bebbb(0xd7)];if(!_0x4765b3){const _0x3950d2=Object[_0x1bebbb(0xe3)](_0x22c973),_0x48d1f1=_0x3950d2[_0x1bebbb(0xe5)]===0x0?'Use\x20`'+CLI_BIN_NAME+_0x1bebbb(0xf3)+_0x3319ec+_0x1bebbb(0xd8)+_0x213c80+_0x1bebbb(0xfe):_0x1bebbb(0xd3)+_0x3950d2[_0x1bebbb(0xea)](',\x20');throw CliErrors[_0x1bebbb(0xf1)](_0x1bebbb(0xca)+_0x213c80+_0x1bebbb(0xf0),_0x48d1f1);}assertValidAppcode(String(_0x4765b3));const _0x5624d0={..._0x711df0,..._0x5018fb,'appcode':String(_0x4765b3),...collectWorkspaceProfileOverrides(_0x39d8c2)};return _0x32496f[_0x213c80]=_0x5624d0,_0x14660[_0x1bebbb(0xf8)]=_0x32496f,_0x14660[_0x1bebbb(0x101)]=_0x213c80,delete _0x14660[_0x1bebbb(0xd7)],delete _0x14660[_0x1bebbb(0xd5)],_0x5624d0[_0x1bebbb(0xf6)]&&(_0x14660[_0x1bebbb(0xf6)]=_0x5624d0[_0x1bebbb(0xf6)]),writeConfigFile(_0x1e6293,_0x14660),{'ok':!![],'message':_0x1bebbb(0xed)+(_0x3319ec==='init'?'initialized':'updated')+':\x20'+_0x213c80+'\x20(appcode:\x20'+_0x5624d0[_0x1bebbb(0xd7)]+_0x1bebbb(0xf9)+_0x1e6293+'.\x20Credentials:\x20not\x20written.','data':{'operation':'workspace.'+_0x3319ec,'configPath':_0x1e6293,'app':_0x213c80,'appcode':_0x5624d0[_0x1bebbb(0xd7)],'env':_0x5624d0['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a179_0x6c8f76(0xd4),'description':a179_0x6c8f76(0xfc),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x99b0a4=>configureWorkspace(_0x99b0a4,a179_0x6c8f76(0xd4))},workspaceUseDefinition={'service':'workspace','command':a179_0x6c8f76(0xde),'description':a179_0x6c8f76(0xcd),'risk':a179_0x6c8f76(0xec),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3f55e4=>configureWorkspace(_0x3f55e4,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a180_0x437ccd=a180_0x539d;(function(_0x560533,_0x36ce9e){const _0x1b9937=a180_0x539d,_0x701402=_0x560533();while(!![]){try{const _0x7a97ff=-parseInt(_0x1b9937(0xc8))/0x1*(parseInt(_0x1b9937(0xc7))/0x2)+-parseInt(_0x1b9937(0x9d))/0x3+parseInt(_0x1b9937(0xa1))/0x4+parseInt(_0x1b9937(0xba))/0x5+parseInt(_0x1b9937(0xa3))/0x6*(-parseInt(_0x1b9937(0xbd))/0x7)+-parseInt(_0x1b9937(0xc2))/0x8*(parseInt(_0x1b9937(0xd0))/0x9)+-parseInt(_0x1b9937(0xd4))/0xa*(-parseInt(_0x1b9937(0xcf))/0xb);if(_0x7a97ff===_0x36ce9e)break;else _0x701402['push'](_0x701402['shift']());}catch(_0x517574){_0x701402['push'](_0x701402['shift']());}}}(a180_0x1af3,0x43f97));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+a180_0x437ccd(0xcd),SAFE_PROFILE_KEYS=[a180_0x437ccd(0xb1),a180_0x437ccd(0xa4),a180_0x437ccd(0xd3),'format',a180_0x437ccd(0x9c),a180_0x437ccd(0xb7),'locale'],workspaceFlags=[{'name':a180_0x437ccd(0xc5),'type':'string','description':a180_0x437ccd(0xb5)},{'name':a180_0x437ccd(0xb1),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xa2)},{'name':a180_0x437ccd(0xa4),'type':'string','description':a180_0x437ccd(0xcb),'enum':[...RABETBASE_ENV_VALUES]},{'name':a180_0x437ccd(0xd3),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xb4)},{'name':a180_0x437ccd(0xbb),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xc9),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a180_0x437ccd(0xb7),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xce),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a180_0x437ccd(0xa8),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x4e3ee4){const _0x5ae234=a180_0x437ccd;return!!_0x4e3ee4&&typeof _0x4e3ee4===_0x5ae234(0xa9)&&!Array[_0x5ae234(0xa5)](_0x4e3ee4);}function assertValidAppcode(_0xacc146){const _0x2db792=a180_0x437ccd,{valid:_0xca7fed,message:_0x123fa0}=validateAppcode(_0xacc146);if(!_0xca7fed)throw CliErrors[_0x2db792(0x9f)](_0x2db792(0xc0)+_0xacc146,_0x123fa0);}function sanitizeProfile(_0x317a65){if(!isRecord(_0x317a65))return{};const _0x54e022={};for(const _0x49585f of SAFE_PROFILE_KEYS){if(_0x317a65[_0x49585f]!==undefined)_0x54e022[_0x49585f]=_0x317a65[_0x49585f];}return _0x54e022;}function a180_0x539d(_0x2f7b77,_0x17a470){_0x2f7b77=_0x2f7b77-0x9c;const _0x1af362=a180_0x1af3();let _0x539d3c=_0x1af362[_0x2f7b77];return _0x539d3c;}function cloneProfile(_0x3da57e){return isRecord(_0x3da57e)?{..._0x3da57e}:{};}function collectWorkspaceProfileOverrides(_0x84ef82){const _0x3d2bfd=a180_0x437ccd,_0x3e9c32={},_0xfd93b9=_0x84ef82['str'](_0x3d2bfd(0xa4)),_0x2fc986=_0x84ef82[_0x3d2bfd(0xca)]('apiDir'),_0x143cbd=_0x84ef82[_0x3d2bfd(0xca)](_0x3d2bfd(0xbb)),_0x462431=_0x84ef82[_0x3d2bfd(0xc3)]('pageSize'),_0x36a983=_0x84ef82[_0x3d2bfd(0xca)]('riskLevel'),_0xff0ece=_0x84ef82[_0x3d2bfd(0xca)](_0x3d2bfd(0xad));if(_0xfd93b9)_0x3e9c32['env']=_0xfd93b9;if(_0x2fc986)_0x3e9c32[_0x3d2bfd(0xd3)]=_0x2fc986;if(_0x143cbd)_0x3e9c32[_0x3d2bfd(0xae)]=_0x143cbd;if(_0x462431!==undefined&&_0x462431!=='')_0x3e9c32['pageSize']=Number(_0x462431);if(_0x36a983)_0x3e9c32['riskLevel']=_0x36a983;if(_0xff0ece)_0x3e9c32[_0x3d2bfd(0xad)]=_0xff0ece;return _0x3e9c32;}async function validateWorkspaceArgs(_0x132165){const _0x31c089=a180_0x437ccd,_0x4f0ed3=_0x132165['str'](_0x31c089(0xc5))[_0x31c089(0xbe)](),_0x205ef0=_0x132165[_0x31c089(0xca)]('appcode')['trim']();if(!_0x4f0ed3&&!_0x205ef0)throw CliErrors[_0x31c089(0x9f)](_0x31c089(0x9e),_0x31c089(0xa6)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x31c089(0xaa));if(_0x205ef0)assertValidAppcode(_0x205ef0);}function resolveKnownApps(){const _0x3e8395=a180_0x437ccd,{config:_0x371318,layers:_0x250d67}=readRawConfigWithLayers(),_0x486972=isRecord(_0x371318[_0x3e8395(0xb9)])?_0x371318[_0x3e8395(0xb9)]:{},_0x55a9c3=isRecord(_0x250d67[_0x3e8395(0xb2)][_0x3e8395(0xb9)])?_0x250d67[_0x3e8395(0xb2)][_0x3e8395(0xb9)]:{};return{..._0x55a9c3,..._0x486972};}function a180_0x1af3(){const _0x380318=['defaultApp','string','object','\x20workspace\x20use\x20--app\x20<name>`.','Workspace\x20','.\x20Credentials:\x20not\x20written.','locale','format','use','keys','appcode','globalConfig',').\x20Config:\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','riskLevel','\x20workspace\x20','apps','135145fzYtRB','defaultFormat','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','140ilNHVh','trim','\x20--appcode\x20<code>`.','Invalid\x20appcode:\x20','updated','8LMHSiz','flag','Switch\x20the\x20current\x20workspace\x20app\x20binding','app','length','2JLuxNt','246724luZQYp','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','str','Target\x20environment','init','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','382921aBGQZE','1957347VIrTcK','App\x20\x22','write','apiDir','160CaYBdf','pageSize','257055pjKLMW','Missing\x20workspace\x20app\x20selector.','validation','\x22\x20not\x20found.','1314280GdelCw','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','25278aopbYu','env','isArray','Use\x20`'];a180_0x1af3=function(){return _0x380318;};return a180_0x1af3();}async function configureWorkspace(_0x385d3a,_0x3e4e74){const _0x3b1b84=a180_0x437ccd,_0x4f962a=_0x385d3a['str'](_0x3b1b84(0xc5))[_0x3b1b84(0xbe)](),_0xc7e59c=_0x385d3a[_0x3b1b84(0xca)](_0x3b1b84(0xb1))[_0x3b1b84(0xbe)](),_0x830bf3=_0x4f962a||_0xc7e59c;if(!_0x830bf3)throw CliErrors[_0x3b1b84(0x9f)](_0x3b1b84(0x9e),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0xc7e59c)assertValidAppcode(_0xc7e59c);const _0x4bc30e=resolveWriteConfigPath('project'),_0x15df0c=readConfigFile(_0x4bc30e),_0x34688c=resolveKnownApps(),_0x4df4e6=isRecord(_0x15df0c[_0x3b1b84(0xb9)])?{..._0x15df0c[_0x3b1b84(0xb9)]}:{},_0xc0ecf7=cloneProfile(_0x4df4e6[_0x830bf3]),_0x56699d=sanitizeProfile(_0x34688c[_0x830bf3]),_0x13924d=_0xc7e59c?{}:_0x56699d,_0x331f81=_0xc7e59c||_0x13924d[_0x3b1b84(0xb1)];if(!_0x331f81){const _0xd0495b=Object[_0x3b1b84(0xb0)](_0x34688c),_0xd6eaba=_0xd0495b[_0x3b1b84(0xc6)]===0x0?_0x3b1b84(0xa6)+CLI_BIN_NAME+_0x3b1b84(0xb8)+_0x3e4e74+'\x20--app\x20'+_0x830bf3+_0x3b1b84(0xbf):_0x3b1b84(0xbc)+_0xd0495b['join'](',\x20');throw CliErrors[_0x3b1b84(0x9f)](_0x3b1b84(0xd1)+_0x830bf3+_0x3b1b84(0xa0),_0xd6eaba);}assertValidAppcode(String(_0x331f81));const _0xc8206a={..._0x13924d,..._0xc0ecf7,'appcode':String(_0x331f81),...collectWorkspaceProfileOverrides(_0x385d3a)};return _0x4df4e6[_0x830bf3]=_0xc8206a,_0x15df0c[_0x3b1b84(0xb9)]=_0x4df4e6,_0x15df0c[_0x3b1b84(0xa7)]=_0x830bf3,delete _0x15df0c['appcode'],delete _0x15df0c[_0x3b1b84(0xc5)],_0xc8206a[_0x3b1b84(0xa4)]&&(_0x15df0c[_0x3b1b84(0xa4)]=_0xc8206a[_0x3b1b84(0xa4)]),writeConfigFile(_0x4bc30e,_0x15df0c),{'ok':!![],'message':_0x3b1b84(0xab)+(_0x3e4e74===_0x3b1b84(0xcc)?_0x3b1b84(0xb6):_0x3b1b84(0xc1))+':\x20'+_0x830bf3+'\x20(appcode:\x20'+_0xc8206a[_0x3b1b84(0xb1)]+_0x3b1b84(0xb3)+_0x4bc30e+_0x3b1b84(0xac),'data':{'operation':'workspace.'+_0x3e4e74,'configPath':_0x4bc30e,'app':_0x830bf3,'appcode':_0xc8206a[_0x3b1b84(0xb1)],'env':_0xc8206a[_0x3b1b84(0xa4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a180_0x437ccd(0xd2),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x41b56a=>configureWorkspace(_0x41b56a,'init')},workspaceUseDefinition={'service':'workspace','command':a180_0x437ccd(0xaf),'description':a180_0x437ccd(0xc4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2582da=>configureWorkspace(_0x2582da,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a180_0xe2ab94=a180_0x275a;(function(_0xfbb676,_0x12cdf6){const _0x438904=a180_0x275a,_0x2d8841=_0xfbb676();while(!![]){try{const _0x5c2f32=-parseInt(_0x438904(0xfa))/0x1+parseInt(_0x438904(0x105))/0x2*(-parseInt(_0x438904(0xfd))/0x3)+parseInt(_0x438904(0xf8))/0x4+-parseInt(_0x438904(0x106))/0x5*(-parseInt(_0x438904(0x103))/0x6)+-parseInt(_0x438904(0xf9))/0x7+parseInt(_0x438904(0xfc))/0x8*(parseInt(_0x438904(0xfe))/0x9)+parseInt(_0x438904(0x102))/0xa;if(_0x5c2f32===_0x12cdf6)break;else _0x2d8841['push'](_0x2d8841['shift']());}catch(_0x4f2cd0){_0x2d8841['push'](_0x2d8841['shift']());}}}(a180_0x3958,0xb66d2));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a180_0xe2ab94(0x100),'command':a180_0xe2ab94(0x104),'description':a180_0xe2ab94(0xfb),'risk':a180_0xe2ab94(0x101),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0xe2ab94(0xff),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xf8db2e=>validateAppName(_0xf8db2e,a180_0xe2ab94(0x107)),'execute':_0x121cf9=>runAppRemove(_0x121cf9,a180_0xe2ab94(0x107))};function a180_0x275a(_0x58321e,_0x4463bb){_0x58321e=_0x58321e-0xf8;const _0x3958c6=a180_0x3958();let _0x275a74=_0x3958c6[_0x58321e];return _0x275a74;}function a180_0x3958(){const _0x59d160=['App\x20profile\x20name\x20to\x20remove','workspace','high-risk-write','16869510jDwAtA','18JApiUu','remove','1276kymCMy','1074400dhQKcY','workspace\x20remove','298108ZMHFPm','8697248iikxKZ','286737tavBSw','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','1432744WwyXqL','1452uspbCN','9ejTtqR'];a180_0x3958=function(){return _0x59d160;};return a180_0x3958();}
1
+ const a181_0x56a829=a181_0x3316;function a181_0x5655(){const _0x528596=['53526iJHbFn','533548Boxaaz','5vVqbnS','4eoihDV','1484550VtgNHs','name','high-risk-write','App\x20profile\x20name\x20to\x20remove','45hPSSya','745031JafSbq','863568XVEqZQ','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','327736iqhZUF','67342XmwVBG'];a181_0x5655=function(){return _0x528596;};return a181_0x5655();}(function(_0x5273aa,_0x393c56){const _0x433819=a181_0x3316,_0x2b432c=_0x5273aa();while(!![]){try{const _0x584069=parseInt(_0x433819(0x13b))/0x1*(-parseInt(_0x433819(0x137))/0x2)+parseInt(_0x433819(0x138))/0x3+-parseInt(_0x433819(0x139))/0x4*(parseInt(_0x433819(0x13a))/0x5)+-parseInt(_0x433819(0x133))/0x6+-parseInt(_0x433819(0x132))/0x7+-parseInt(_0x433819(0x136))/0x8+-parseInt(_0x433819(0x131))/0x9*(-parseInt(_0x433819(0x13c))/0xa);if(_0x584069===_0x393c56)break;else _0x2b432c['push'](_0x2b432c['shift']());}catch(_0x7dd282){_0x2b432c['push'](_0x2b432c['shift']());}}}(a181_0x5655,0x3100e));function a181_0x3316(_0x19606b,_0x5b33ab){_0x19606b=_0x19606b-0x12e;const _0x565584=a181_0x5655();let _0x331617=_0x565584[_0x19606b];return _0x331617;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':a181_0x56a829(0x134),'risk':a181_0x56a829(0x12f),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a181_0x56a829(0x12e),'description':a181_0x56a829(0x130),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x31e56f=>validateAppName(_0x31e56f,a181_0x56a829(0x135)),'execute':_0x28a7b1=>runAppRemove(_0x28a7b1,a181_0x56a829(0x135))};
@@ -1 +1 @@
1
- const a181_0x4c942b=a181_0x58d2;(function(_0x39ef15,_0x5024e1){const _0xbaa4e4=a181_0x58d2,_0xf9546c=_0x39ef15();while(!![]){try{const _0xc812ea=parseInt(_0xbaa4e4(0x14c))/0x1*(parseInt(_0xbaa4e4(0x15f))/0x2)+-parseInt(_0xbaa4e4(0x165))/0x3*(parseInt(_0xbaa4e4(0x14a))/0x4)+parseInt(_0xbaa4e4(0x14e))/0x5*(-parseInt(_0xbaa4e4(0x142))/0x6)+-parseInt(_0xbaa4e4(0x159))/0x7+parseInt(_0xbaa4e4(0x156))/0x8*(parseInt(_0xbaa4e4(0x13e))/0x9)+parseInt(_0xbaa4e4(0x149))/0xa*(-parseInt(_0xbaa4e4(0x14f))/0xb)+parseInt(_0xbaa4e4(0x15c))/0xc;if(_0xc812ea===_0x5024e1)break;else _0xf9546c['push'](_0xf9546c['shift']());}catch(_0x24f972){_0xf9546c['push'](_0xf9546c['shift']());}}}(a181_0x1ec7,0x368ed));function a181_0x1ec7(){const _0x5222db=['2402AGbCxz','Locale','15pShIch','11yTjoDI','pageSize','Auth\x20cookie','join','zh-CN','length','keys','32ChvnfW','entries','trim','424263pzkcyi','has','cookie','353760vHWAsi','string','inherit','364ZOwHIL','accessKey','appcode','map','en-US','app','9gJtaww','apiDir','Target\x20environment','filter','toLowerCase','945684XWsxNa','Risk\x20level','API\x20directory\x20path','format','238758jXdEDe','locale','env','number','apps','defaultApp','Access\x20key','1909580yZgOyq','390044NcUyGo','riskLevel'];a181_0x1ec7=function(){return _0x5222db;};return a181_0x1ec7();}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=[a181_0x4c942b(0x15b),a181_0x4c942b(0x160),a181_0x4c942b(0x143),a181_0x4c942b(0x141),a181_0x4c942b(0x14b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a181_0x4c942b(0x161),a181_0x4c942b(0x144),a181_0x4c942b(0x143),a181_0x4c942b(0x141),'cookie',a181_0x4c942b(0x160),a181_0x4c942b(0x166)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2aeb80){const _0xe826e=a181_0x4c942b;return[..._0x2aeb80][_0xe826e(0x152)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x31d594){const _0x37b26c=a181_0x4c942b;return TOP_LEVEL_CONFIG_KEYS[_0x37b26c(0x15a)](_0x31d594);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a181_0x4c942b(0x144),'apiDir':a181_0x4c942b(0x166),'cookie':'cookie','accessKey':a181_0x4c942b(0x160),'defaultFormat':a181_0x4c942b(0x141),'pageSize':a181_0x4c942b(0x150),'riskLevel':a181_0x4c942b(0x14b),'locale':a181_0x4c942b(0x143)};export function getAppProfileFlagDefs(){const _0x3b190f=a181_0x4c942b;return[{'name':_0x3b190f(0x144),'type':_0x3b190f(0x15d),'description':_0x3b190f(0x167),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x3b190f(0x166),'type':'string','description':_0x3b190f(0x140)},{'name':_0x3b190f(0x15b),'type':'string','description':_0x3b190f(0x151),'hidden':!![]},{'name':_0x3b190f(0x160),'type':_0x3b190f(0x15d),'description':_0x3b190f(0x148),'hidden':!![]},{'name':'defaultFormat','type':_0x3b190f(0x15d),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x3b190f(0x150),'type':_0x3b190f(0x145),'description':'Default\x20page\x20size'},{'name':_0x3b190f(0x14b),'type':_0x3b190f(0x15d),'description':_0x3b190f(0x13f),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x3b190f(0x15d),'description':_0x3b190f(0x14d)}];}export function collectAppProfileOverrides(_0x3397b1){const _0x2388c6=a181_0x4c942b,_0x39c2ce={};for(const [_0x3e89a1,_0x5dd489]of Object[_0x2388c6(0x157)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1851c1=_0x3397b1(_0x3e89a1);if(!_0x1851c1)continue;_0x39c2ce[_0x5dd489]=_0x5dd489===_0x2388c6(0x150)?Number(_0x1851c1):_0x1851c1;}return _0x39c2ce;}export function buildAppProfileListFields(_0x2df50b){const _0x4d9c4d=a181_0x4c942b;return{'env':_0x2df50b[_0x4d9c4d(0x144)]??null,'apiDir':_0x2df50b['apiDir']??null,'hasCookie':!!_0x2df50b[_0x4d9c4d(0x15b)],'hasAccessKey':!!_0x2df50b[_0x4d9c4d(0x160)],'format':_0x2df50b['format']??null,'pageSize':_0x2df50b[_0x4d9c4d(0x150)]??null,'riskLevel':_0x2df50b['riskLevel']??null,'locale':_0x2df50b['locale']??null};}export function buildAppDoctorFields(_0x25186c,_0x4c105f){const _0xa9c634=a181_0x4c942b;return{'env':{'value':_0x25186c[_0xa9c634(0x144)]||_0x4c105f[_0xa9c634(0x144)],'source':_0x25186c[_0xa9c634(0x144)]?_0xa9c634(0x164):_0xa9c634(0x15e)},'apiDir':{'value':_0x25186c[_0xa9c634(0x166)]||_0x4c105f[_0xa9c634(0x166)],'source':_0x25186c[_0xa9c634(0x166)]?_0xa9c634(0x164):_0xa9c634(0x15e)},'cookie':{'value':_0x25186c['cookie']||_0x4c105f[_0xa9c634(0x15b)],'source':_0x25186c[_0xa9c634(0x15b)]?_0xa9c634(0x164):'inherit'},'accessKey':{'value':_0x25186c[_0xa9c634(0x160)]||_0x4c105f[_0xa9c634(0x160)],'source':_0x25186c[_0xa9c634(0x160)]?_0xa9c634(0x164):_0xa9c634(0x15e)}};}export function buildCanonicalAppConfig(_0x2ea92b,_0x55a680){const _0x558765=a181_0x4c942b,_0x6fc1b0=_0x2ea92b[_0x558765(0x162)](_0x3c43d2=>String(_0x3c43d2||'')[_0x558765(0x158)]())[_0x558765(0x168)](Boolean);if(_0x6fc1b0[_0x558765(0x154)]===0x0)return{};const _0x57ccf9={};for(const _0xa06681 of _0x6fc1b0){_0x57ccf9[_0xa06681]=_0x55a680?{'appcode':_0xa06681,'env':_0x55a680}:{'appcode':_0xa06681};}return{'apps':_0x57ccf9,'defaultApp':_0x6fc1b0[0x0]};}function a181_0x58d2(_0x194c56,_0x368115){_0x194c56=_0x194c56-0x13e;const _0x1ec7dd=a181_0x1ec7();let _0x58d2ea=_0x1ec7dd[_0x194c56];return _0x58d2ea;}export function buildCanonicalProjectConfig(_0x277020,_0x52b7e7){const _0x46c859=a181_0x4c942b,{appCodes:appCodes=[],env:_0x390114,metadata:_0x3af3b3}=_0x52b7e7,_0x5afa29={..._0x277020,..._0x3af3b3||{}};delete _0x5afa29[_0x46c859(0x161)],delete _0x5afa29[_0x46c859(0x164)];if(_0x390114)_0x5afa29[_0x46c859(0x144)]=_0x390114;else!_0x5afa29[_0x46c859(0x144)]&&(_0x5afa29[_0x46c859(0x144)]=DEFAULT_CONFIG_VALUES[_0x46c859(0x144)]);const _0x535bd2=buildCanonicalAppConfig(appCodes,_0x5afa29['env']);return Object[_0x46c859(0x155)](_0x535bd2)[_0x46c859(0x154)]>0x0&&(_0x5afa29[_0x46c859(0x146)]=_0x535bd2[_0x46c859(0x146)],_0x5afa29[_0x46c859(0x147)]=_0x535bd2[_0x46c859(0x147)]),_0x5afa29;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a181_0x4c942b(0x153),'en':a181_0x4c942b(0x163),'en-us':a181_0x4c942b(0x163),'en_us':a181_0x4c942b(0x163)};export function normalizeLocale(_0x400862){const _0x386b2a=a181_0x4c942b;if(!_0x400862)return null;return LOCALE_MAP[_0x400862[_0x386b2a(0x169)]()]??null;}
1
+ const a182_0x4f3c8f=a182_0xfe01;(function(_0x2480a7,_0x148c87){const _0x3b8274=a182_0xfe01,_0x583a3a=_0x2480a7();while(!![]){try{const _0x49ad72=parseInt(_0x3b8274(0x13f))/0x1+parseInt(_0x3b8274(0x153))/0x2*(parseInt(_0x3b8274(0x13b))/0x3)+parseInt(_0x3b8274(0x15c))/0x4*(parseInt(_0x3b8274(0x15e))/0x5)+-parseInt(_0x3b8274(0x152))/0x6+parseInt(_0x3b8274(0x146))/0x7*(parseInt(_0x3b8274(0x136))/0x8)+parseInt(_0x3b8274(0x142))/0x9*(-parseInt(_0x3b8274(0x15a))/0xa)+parseInt(_0x3b8274(0x15b))/0xb;if(_0x49ad72===_0x148c87)break;else _0x583a3a['push'](_0x583a3a['shift']());}catch(_0x35f981){_0x583a3a['push'](_0x583a3a['shift']());}}}(a182_0x3f57,0x5034c));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';function a182_0x3f57(){const _0x20f615=['inherit','appcode','apps','accessKey','number','cookie','1010auGVHW','141757YlNRCg','23356tgPave','Locale','95lCULji','52944EAViwg','trim','Risk\x20level','Access\x20key','locale','1445718oDHoSr','Default\x20page\x20size','app','defaultApp','25055rDMkZA','format','env','11835ZOMCEc','en-US','toLowerCase','zh-CN','126oUtbxE','has','API\x20directory\x20path','length','string','Target\x20environment','apiDir','map','filter','pageSize','defaultFormat','riskLevel','1731444wawrOy','2NrHerw'];a182_0x3f57=function(){return _0x20f615;};return a182_0x3f57();}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a182_0x4f3c8f(0x159),a182_0x4f3c8f(0x157),'locale',a182_0x4f3c8f(0x140),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a182_0x4f3c8f(0x141),a182_0x4f3c8f(0x13a),a182_0x4f3c8f(0x140),'cookie',a182_0x4f3c8f(0x157),a182_0x4f3c8f(0x14c)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0xae928d){return[..._0xae928d]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xc2fa77){const _0x192f6b=a182_0x4f3c8f;return TOP_LEVEL_CONFIG_KEYS[_0x192f6b(0x147)](_0xc2fa77);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a182_0x4f3c8f(0x141),'apiDir':'apiDir','cookie':a182_0x4f3c8f(0x159),'accessKey':a182_0x4f3c8f(0x157),'defaultFormat':'format','pageSize':a182_0x4f3c8f(0x14f),'riskLevel':a182_0x4f3c8f(0x151),'locale':a182_0x4f3c8f(0x13a)};function a182_0xfe01(_0x1cb9a8,_0x24fc9c){_0x1cb9a8=_0x1cb9a8-0x136;const _0x3f57d9=a182_0x3f57();let _0xfe01df=_0x3f57d9[_0x1cb9a8];return _0xfe01df;}export function getAppProfileFlagDefs(){const _0x17ce65=a182_0x4f3c8f;return[{'name':_0x17ce65(0x141),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x14b),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x17ce65(0x14c),'type':'string','description':_0x17ce65(0x148)},{'name':_0x17ce65(0x159),'type':_0x17ce65(0x14a),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x17ce65(0x157),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x139),'hidden':!![]},{'name':_0x17ce65(0x150),'type':_0x17ce65(0x14a),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x17ce65(0x14f),'type':_0x17ce65(0x158),'description':_0x17ce65(0x13c)},{'name':'riskLevel','type':'string','description':_0x17ce65(0x138),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x17ce65(0x13a),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x15d)}];}export function collectAppProfileOverrides(_0x18b7f7){const _0x4e0a3a=a182_0x4f3c8f,_0x1a05a7={};for(const [_0x5bf15c,_0x48b249]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x27e30e=_0x18b7f7(_0x5bf15c);if(!_0x27e30e)continue;_0x1a05a7[_0x48b249]=_0x48b249===_0x4e0a3a(0x14f)?Number(_0x27e30e):_0x27e30e;}return _0x1a05a7;}export function buildAppProfileListFields(_0x1e5534){const _0x1ac3c4=a182_0x4f3c8f;return{'env':_0x1e5534['env']??null,'apiDir':_0x1e5534[_0x1ac3c4(0x14c)]??null,'hasCookie':!!_0x1e5534['cookie'],'hasAccessKey':!!_0x1e5534['accessKey'],'format':_0x1e5534[_0x1ac3c4(0x140)]??null,'pageSize':_0x1e5534[_0x1ac3c4(0x14f)]??null,'riskLevel':_0x1e5534[_0x1ac3c4(0x151)]??null,'locale':_0x1e5534['locale']??null};}export function buildAppDoctorFields(_0x4f15a3,_0x51e162){const _0x416a50=a182_0x4f3c8f;return{'env':{'value':_0x4f15a3[_0x416a50(0x141)]||_0x51e162[_0x416a50(0x141)],'source':_0x4f15a3[_0x416a50(0x141)]?_0x416a50(0x13d):'inherit'},'apiDir':{'value':_0x4f15a3[_0x416a50(0x14c)]||_0x51e162['apiDir'],'source':_0x4f15a3[_0x416a50(0x14c)]?_0x416a50(0x13d):_0x416a50(0x154)},'cookie':{'value':_0x4f15a3[_0x416a50(0x159)]||_0x51e162['cookie'],'source':_0x4f15a3[_0x416a50(0x159)]?_0x416a50(0x13d):_0x416a50(0x154)},'accessKey':{'value':_0x4f15a3['accessKey']||_0x51e162[_0x416a50(0x157)],'source':_0x4f15a3['accessKey']?'app':_0x416a50(0x154)}};}export function buildCanonicalAppConfig(_0x582a7c,_0x23b137){const _0x534d24=a182_0x4f3c8f,_0x5b5916=_0x582a7c[_0x534d24(0x14d)](_0x3668cd=>String(_0x3668cd||'')[_0x534d24(0x137)]())[_0x534d24(0x14e)](Boolean);if(_0x5b5916[_0x534d24(0x149)]===0x0)return{};const _0x22e16d={};for(const _0x4afab7 of _0x5b5916){_0x22e16d[_0x4afab7]=_0x23b137?{'appcode':_0x4afab7,'env':_0x23b137}:{'appcode':_0x4afab7};}return{'apps':_0x22e16d,'defaultApp':_0x5b5916[0x0]};}export function buildCanonicalProjectConfig(_0x3ba78f,_0x37c7e8){const _0x1adb14=a182_0x4f3c8f,{appCodes:appCodes=[],env:_0x3130d3,metadata:_0x1247d0}=_0x37c7e8,_0x280cdd={..._0x3ba78f,..._0x1247d0||{}};delete _0x280cdd[_0x1adb14(0x155)],delete _0x280cdd[_0x1adb14(0x13d)];if(_0x3130d3)_0x280cdd[_0x1adb14(0x141)]=_0x3130d3;else!_0x280cdd['env']&&(_0x280cdd[_0x1adb14(0x141)]=DEFAULT_CONFIG_VALUES['env']);const _0x2a65d8=buildCanonicalAppConfig(appCodes,_0x280cdd['env']);return Object['keys'](_0x2a65d8)[_0x1adb14(0x149)]>0x0&&(_0x280cdd[_0x1adb14(0x156)]=_0x2a65d8[_0x1adb14(0x156)],_0x280cdd[_0x1adb14(0x13e)]=_0x2a65d8[_0x1adb14(0x13e)]),_0x280cdd;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a182_0x4f3c8f(0x145),'zh_cn':'zh-CN','en':a182_0x4f3c8f(0x143),'en-us':a182_0x4f3c8f(0x143),'en_us':a182_0x4f3c8f(0x143)};export function normalizeLocale(_0x18364f){const _0x36b4dc=a182_0x4f3c8f;if(!_0x18364f)return null;return LOCALE_MAP[_0x18364f[_0x36b4dc(0x144)]()]??null;}
@@ -1 +1 @@
1
- function a182_0x26ae(){const _0x152801=['2069754FABxDk','2LexLqd','1971266XWXGjE','3890230hCBfGG','4065tMinxh','1756gYUuzI','9hGuzZM','287sjIcbe','32840tiWMqs','652203MKoRwq','237725joriON'];a182_0x26ae=function(){return _0x152801;};return a182_0x26ae();}function a182_0x2d4f(_0x3a6333,_0x23f1ee){_0x3a6333=_0x3a6333-0x1e9;const _0x26ae90=a182_0x26ae();let _0x2d4fce=_0x26ae90[_0x3a6333];return _0x2d4fce;}(function(_0x372492,_0x4b23b0){const _0x5664aa=a182_0x2d4f,_0x1e28ef=_0x372492();while(!![]){try{const _0x1ed4ba=-parseInt(_0x5664aa(0x1ef))/0x1*(parseInt(_0x5664aa(0x1f1))/0x2)+-parseInt(_0x5664aa(0x1ee))/0x3+-parseInt(_0x5664aa(0x1ea))/0x4*(-parseInt(_0x5664aa(0x1e9))/0x5)+parseInt(_0x5664aa(0x1f0))/0x6+parseInt(_0x5664aa(0x1ec))/0x7*(parseInt(_0x5664aa(0x1ed))/0x8)+-parseInt(_0x5664aa(0x1eb))/0x9*(parseInt(_0x5664aa(0x1f3))/0xa)+parseInt(_0x5664aa(0x1f2))/0xb;if(_0x1ed4ba===_0x4b23b0)break;else _0x1e28ef['push'](_0x1e28ef['shift']());}catch(_0x86bc3a){_0x1e28ef['push'](_0x1e28ef['shift']());}}}(a182_0x26ae,0x321ac));export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
1
+ function a183_0x41ff(){const _0x1ea367=['390651ZCKvAy','348019OgjOmK','276855nfRxsj','1822536FIxkjA','341686JmjCqP','88WrqDIB','1929112StpQoI','1fXcyVe','18hbEtcQ','2636220qkCzMy'];a183_0x41ff=function(){return _0x1ea367;};return a183_0x41ff();}(function(_0xc5528f,_0x35e2b6){const _0x57b845=a183_0x4b56,_0x2581de=_0xc5528f();while(!![]){try{const _0x51c435=parseInt(_0x57b845(0x10c))/0x1*(parseInt(_0x57b845(0x113))/0x2)+-parseInt(_0x57b845(0x10f))/0x3+-parseInt(_0x57b845(0x10b))/0x4+-parseInt(_0x57b845(0x111))/0x5*(-parseInt(_0x57b845(0x10d))/0x6)+-parseInt(_0x57b845(0x110))/0x7*(-parseInt(_0x57b845(0x114))/0x8)+-parseInt(_0x57b845(0x112))/0x9+parseInt(_0x57b845(0x10e))/0xa;if(_0x51c435===_0x35e2b6)break;else _0x2581de['push'](_0x2581de['shift']());}catch(_0x28799f){_0x2581de['push'](_0x2581de['shift']());}}}(a183_0x41ff,0x512b2));function a183_0x4b56(_0x1bf122,_0x307543){_0x1bf122=_0x1bf122-0x10b;const _0x41ff48=a183_0x41ff();let _0x4b56c9=_0x41ff48[_0x1bf122];return _0x4b56c9;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
@@ -1 +1 @@
1
- const a183_0xe3fb79=a183_0x4a48;(function(_0x92c65b,_0x3640ad){const _0x29acf8=a183_0x4a48,_0x358219=_0x92c65b();while(!![]){try{const _0xd16966=-parseInt(_0x29acf8(0x9e))/0x1*(parseInt(_0x29acf8(0xcb))/0x2)+parseInt(_0x29acf8(0xcf))/0x3+parseInt(_0x29acf8(0xab))/0x4*(-parseInt(_0x29acf8(0xbc))/0x5)+-parseInt(_0x29acf8(0xc8))/0x6+-parseInt(_0x29acf8(0xf6))/0x7*(parseInt(_0x29acf8(0xc3))/0x8)+-parseInt(_0x29acf8(0xe7))/0x9*(parseInt(_0x29acf8(0xe6))/0xa)+-parseInt(_0x29acf8(0xd4))/0xb*(-parseInt(_0x29acf8(0xdb))/0xc);if(_0xd16966===_0x3640ad)break;else _0x358219['push'](_0x358219['shift']());}catch(_0x516273){_0x358219['push'](_0x358219['shift']());}}}(a183_0x11ad,0x22f55));function a183_0x11ad(){const _0x2c12f=['File\x20path','pagesize','non-interactive','task-id','Rabetbase\x20CLI','verbose','Name','sqlName','sqlname','type','operation-type','@lovrabet/rabetbase-cli','dbId','enableBffSave','function-node','Schemas','boolean','schemas','expect-path','remote','page','description','dbid','Override\x20appcode','Config\x20key','file','dry-run','datasetcode','stdin','enable-bff-save','expect-parent-id','string','help','all','value','Comma-separated\x20menu\x20IDs','SQL\x20string','SQL\x20name','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','9RlkJus','Function\x20node','Description\x20file','reveal','<code>','Output\x20path','keyword','rabetbase','Menu\x20sort\x20value','Tags','sql-name','appcode','JSON\x20params','20kHBLuE','fromEntries','production\x20|\x20daily','dryRun','Preview\x20operation\x20without\x20executing','Menu\x20label','fromEnv','env','label','global','Page\x20number','expectedChildrenCount','confirm','parent-id','format','Read\x20value\x20from\x20environment\x20variable','params','15640KqSiZm','Description','Verbose\x20output','operationType','Target\x20path','Expected\x20current\x20menu\x20path','Reveal\x20sensitive\x20value','11344ExZhzI','SQL\x20code','sort','Environment','json\x20|\x20pretty\x20|\x20compress','1073346Qqgugv','Select\x20app\x20profile\x20by\x20name','app','16158cPCUbt','Force\x20overwrite','skipImports','description-file','831915pTQJat','code','meowKey','title','clear','7865cTUOnN','target','expected-count','map','Use\x20remote','<expr>','name','5100cBnRyD','output','sql','project','Expected\x20affected\x20count','taskId','Enable\x20BFF\x20save','key','Read\x20value\x20from\x20stdin','Confirm\x20destructive\x20action','expected-children-count','10RSRXnv','375399DkZSVs','from-env','Dataset\x20code','yes','DB\x20ID','menu-ids','watch','Operation\x20type','Code\x20filter','functionNode','tags','Alias\x20for\x20--non-interactive','skip-imports','sqlcode','Title','637QrXlpv'];a183_0x11ad=function(){return _0x2c12f;};return a183_0x11ad();}export const CLI_BIN_NAME=a183_0xe3fb79(0xa5);export const CLI_DISPLAY_NAME=a183_0xe3fb79(0xfb);export const NPM_PACKAGE_NAME=a183_0xe3fb79(0x102);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a183_0xe3fb79(0xa9),'type':'string','description':a183_0xe3fb79(0x10e),'hint':a183_0xe3fb79(0xa2)},{'name':a183_0xe3fb79(0xca),'meowKey':a183_0xe3fb79(0xca),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xc9),'hint':'<name>'},{'name':'env','meowKey':a183_0xe3fb79(0xb2),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xc6),'hint':a183_0xe3fb79(0xad)},{'name':'format','meowKey':a183_0xe3fb79(0xb9),'type':'string','description':'Output\x20format','hint':a183_0xe3fb79(0xc7)},{'name':'jq','meowKey':'jq','type':a183_0xe3fb79(0x95),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a183_0xe3fb79(0xd9)},{'name':a183_0xe3fb79(0x111),'meowKey':a183_0xe3fb79(0xae),'type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xaf)},{'name':a183_0xe3fb79(0xea),'meowKey':'yes','type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0x9c)},{'name':a183_0xe3fb79(0xf9),'meowKey':'nonInteractive','type':a183_0xe3fb79(0x107),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a183_0xe3fb79(0xb4),'meowKey':'global','type':a183_0xe3fb79(0x107),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a183_0xe3fb79(0xde),'type':a183_0xe3fb79(0x107),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xf2),'hidden':!![]},{'name':a183_0xe3fb79(0x96),'meowKey':'help','type':a183_0xe3fb79(0x107),'description':'Show\x20help'},{'name':a183_0xe3fb79(0xda),'meowKey':a183_0xe3fb79(0xda),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xfd),'hidden':!![]},{'name':a183_0xe3fb79(0xd2),'meowKey':a183_0xe3fb79(0xd2),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xf5),'hidden':!![]},{'name':a183_0xe3fb79(0xd3),'meowKey':a183_0xe3fb79(0xd3),'type':a183_0xe3fb79(0x107),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a183_0xe3fb79(0xed),'type':a183_0xe3fb79(0x107),'description':'Watch\x20mode','hidden':!![]},{'name':a183_0xe3fb79(0xdc),'meowKey':'output','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xa3),'hidden':!![]},{'name':'params','meowKey':a183_0xe3fb79(0xbb),'type':'string','description':a183_0xe3fb79(0xaa),'hidden':!![]},{'name':'datasetcode','meowKey':a183_0xe3fb79(0x112),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xe9),'hidden':!![]},{'name':a183_0xe3fb79(0x97),'meowKey':a183_0xe3fb79(0x97),'type':'boolean','description':'Apply\x20to\x20all','hidden':!![]},{'name':a183_0xe3fb79(0x114),'meowKey':a183_0xe3fb79(0x104),'type':'boolean','description':a183_0xe3fb79(0xe1),'hidden':!![]},{'name':'id','meowKey':'id','type':a183_0xe3fb79(0x95),'description':'Record\x20ID','hidden':!![]},{'name':a183_0xe3fb79(0x100),'meowKey':a183_0xe3fb79(0x100),'type':a183_0xe3fb79(0x95),'description':'Type\x20filter','hidden':!![]},{'name':a183_0xe3fb79(0x110),'meowKey':'file','type':'string','description':a183_0xe3fb79(0xf7),'hidden':!![]},{'name':a183_0xe3fb79(0xf4),'meowKey':a183_0xe3fb79(0xf4),'type':'string','description':a183_0xe3fb79(0xc4),'hidden':!![]},{'name':a183_0xe3fb79(0xa8),'meowKey':a183_0xe3fb79(0xfe),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0x9b),'hidden':!![]},{'name':a183_0xe3fb79(0xff),'meowKey':a183_0xe3fb79(0xff),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0x9b),'hidden':!![]},{'name':'db-id','meowKey':a183_0xe3fb79(0x103),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xeb),'hidden':!![]},{'name':a183_0xe3fb79(0x10d),'meowKey':'dbid','type':a183_0xe3fb79(0x95),'description':'DB\x20ID','hidden':!![]},{'name':a183_0xe3fb79(0x10c),'meowKey':a183_0xe3fb79(0x10c),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xbd),'hidden':!![]},{'name':a183_0xe3fb79(0xce),'meowKey':'descriptionFile','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xa0),'hidden':!![]},{'name':a183_0xe3fb79(0x10b),'meowKey':a183_0xe3fb79(0x10b),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xb5),'hidden':!![]},{'name':a183_0xe3fb79(0xf8),'meowKey':a183_0xe3fb79(0xf8),'type':a183_0xe3fb79(0x95),'description':'Page\x20size','hidden':!![]},{'name':a183_0xe3fb79(0xa4),'meowKey':a183_0xe3fb79(0xa4),'type':a183_0xe3fb79(0x95),'description':'Keyword\x20filter','hidden':!![]},{'name':a183_0xe3fb79(0xd0),'meowKey':a183_0xe3fb79(0xd0),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xef),'hidden':!![]},{'name':a183_0xe3fb79(0xdd),'meowKey':'sql','type':'string','description':a183_0xe3fb79(0x9a),'hidden':!![]},{'name':a183_0xe3fb79(0x108),'meowKey':a183_0xe3fb79(0x108),'type':'string','description':a183_0xe3fb79(0x106),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xee),'hidden':!![]},{'name':a183_0xe3fb79(0xd5),'meowKey':a183_0xe3fb79(0xd5),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xc0),'hidden':!![]},{'name':a183_0xe3fb79(0xf3),'meowKey':a183_0xe3fb79(0xcd),'type':a183_0xe3fb79(0x107),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a183_0xe3fb79(0xe2),'meowKey':'key','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0x10f),'hidden':!![]},{'name':a183_0xe3fb79(0x98),'meowKey':'value','type':a183_0xe3fb79(0x95),'description':'Config\x20value','hidden':!![]},{'name':a183_0xe3fb79(0xf1),'meowKey':a183_0xe3fb79(0xf1),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xa7),'hidden':!![]},{'name':a183_0xe3fb79(0x113),'meowKey':'stdin','type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xe3),'hidden':!![]},{'name':a183_0xe3fb79(0xe8),'meowKey':a183_0xe3fb79(0xb1),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xba),'hidden':!![]},{'name':'reveal','meowKey':a183_0xe3fb79(0xa1),'type':'boolean','description':a183_0xe3fb79(0xc2),'hidden':!![]},{'name':a183_0xe3fb79(0x9d),'meowKey':a183_0xe3fb79(0x9d),'type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xcc),'hidden':!![]},{'name':'confirm','meowKey':a183_0xe3fb79(0xb7),'type':'boolean','description':a183_0xe3fb79(0xe4),'hidden':!![]},{'name':a183_0xe3fb79(0x10a),'meowKey':a183_0xe3fb79(0x10a),'type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xd8),'hidden':!![]},{'name':a183_0xe3fb79(0xfc),'meowKey':a183_0xe3fb79(0xfc),'type':a183_0xe3fb79(0x107),'description':a183_0xe3fb79(0xbe),'hidden':!![]},{'name':a183_0xe3fb79(0xd6),'meowKey':'expectedCount','type':'string','description':a183_0xe3fb79(0xdf),'hidden':!![]},{'name':a183_0xe3fb79(0xb3),'meowKey':'label','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xb0),'hidden':!![]},{'name':a183_0xe3fb79(0xb8),'meowKey':'parentId','type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a183_0xe3fb79(0xc5),'meowKey':a183_0xe3fb79(0xc5),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xa6),'hidden':!![]},{'name':a183_0xe3fb79(0x115),'meowKey':'expectParentId','type':a183_0xe3fb79(0x95),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a183_0xe3fb79(0x109),'meowKey':'expectPath','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xc1),'hidden':!![]},{'name':a183_0xe3fb79(0xe5),'meowKey':a183_0xe3fb79(0xb6),'type':a183_0xe3fb79(0x95),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a183_0xe3fb79(0xec),'meowKey':'menuIds','type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0x99),'hidden':!![]},{'name':a183_0xe3fb79(0xfa),'meowKey':a183_0xe3fb79(0xe0),'type':a183_0xe3fb79(0x95),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a183_0xe3fb79(0x101),'meowKey':a183_0xe3fb79(0xbf),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0xee),'hidden':!![]},{'name':a183_0xe3fb79(0x105),'meowKey':a183_0xe3fb79(0xf0),'type':a183_0xe3fb79(0x95),'description':a183_0xe3fb79(0x9f),'hidden':!![]}];function a183_0x4a48(_0x1314ec,_0x12fdd7){_0x1314ec=_0x1314ec-0x95;const _0x11ad5b=a183_0x11ad();let _0x4a48ad=_0x11ad5b[_0x1314ec];return _0x4a48ad;}export const PIPELINE_FLAG_NAMES=new Set([a183_0xe3fb79(0xa9),a183_0xe3fb79(0xca),a183_0xe3fb79(0xb2),'format','jq',a183_0xe3fb79(0x111),a183_0xe3fb79(0xea),'non-interactive','ci']);export function buildMeowFlags(){const _0x1285fd=a183_0xe3fb79;return Object[_0x1285fd(0xac)](GLOBAL_FLAGS[_0x1285fd(0xd7)](_0x56c199=>[_0x56c199[_0x1285fd(0xd1)],{'type':_0x56c199[_0x1285fd(0x100)]}]));}
1
+ function a184_0x310f(){const _0x86ffee=['production\x20|\x20daily','Rabetbase\x20CLI','Environment','Description','operation-type','246034SWbBKW','Page\x20number','nonInteractive','Description\x20file','Output\x20format','page','Force\x20non-interactive\x20mode\x20(CI)','expectParentId','3532030xjTQqf','dbId','non-interactive','SQL\x20string','expect-path','6728760leBtEN','menu-ids','enableBffSave','Show\x20help','SQL\x20code','Dataset\x20code','label','value','sql','appcode','params','stdin','Output\x20path','44MDDmfK','boolean','Comma-separated\x20menu\x20IDs','sqlName','description','fromEnv','map','DB\x20ID','sql-name','File\x20path','code','file','21cLELQw','description-file','json\x20|\x20pretty\x20|\x20compress','meowKey','Expected\x20current\x20child\x20count','7KdwgBZ','8wctSEp','expect-parent-id','Target\x20path','sort','operation','Watch\x20mode','global','watch','Select\x20app\x20profile\x20by\x20name','title','confirm','Operation\x20type','Apply\x20to\x20all','Use\x20remote','clear','app','Expected\x20current\x20parent\x20menu\x20id','rabetbase','parent-id','all','Page\x20size','force','db-id','Config\x20key','Schemas','env','tags','project','parentId','name','remote','expected-count','operationType','Expected\x20affected\x20count','Use\x20global\x20config\x20scope','65077aUSUae','schemas','enable-bff-save','pagesize','Clear','expectedChildrenCount','<name>','output','expected-children-count','<code>','dbid','functionNode','reveal','datasetcode','string','format','4261524FPaLeX','Use\x20project\x20config\x20scope','yes','SQL\x20name','Keyword\x20filter','Menu\x20sort\x20value','Override\x20appcode','keyword','2170130LWbDZs','sqlname','function-node','Config\x20value','1106516xsMnMk','dryRun','@lovrabet/rabetbase-cli','Menu\x20label','Parent\x20menu\x20id','Skip\x20import\x20generation','fromEntries','Title','JSON\x20params','Code\x20filter','Asynchronous\x20task\x20ID','target','sqlcode','dry-run','Function\x20node','type','Read\x20value\x20from\x20stdin','verbose','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Type\x20filter','Name','skipImports'];a184_0x310f=function(){return _0x86ffee;};return a184_0x310f();}const a184_0x7f76a0=a184_0x37a9;(function(_0x1b3e8e,_0x34b02a){const _0x712693=a184_0x37a9,_0x52549e=_0x1b3e8e();while(!![]){try{const _0x1d2d2c=-parseInt(_0x712693(0x270))/0x1+-parseInt(_0x712693(0x221))/0x2*(-parseInt(_0x712693(0x247))/0x3)+-parseInt(_0x712693(0x206))/0x4+parseInt(_0x712693(0x229))/0x5+parseInt(_0x712693(0x1fa))/0x6*(-parseInt(_0x712693(0x24c))/0x7)+-parseInt(_0x712693(0x24d))/0x8*(parseInt(_0x712693(0x22e))/0x9)+-parseInt(_0x712693(0x202))/0xa*(-parseInt(_0x712693(0x23b))/0xb);if(_0x1d2d2c===_0x34b02a)break;else _0x52549e['push'](_0x52549e['shift']());}catch(_0x37ac6f){_0x52549e['push'](_0x52549e['shift']());}}}(a184_0x310f,0x9b449));export const CLI_BIN_NAME=a184_0x7f76a0(0x25e);export const CLI_DISPLAY_NAME=a184_0x7f76a0(0x21d);export const NPM_PACKAGE_NAME=a184_0x7f76a0(0x208);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x200),'hint':a184_0x7f76a0(0x1f3)},{'name':a184_0x7f76a0(0x25c),'meowKey':'app','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x255),'hint':a184_0x7f76a0(0x1f0)},{'name':a184_0x7f76a0(0x266),'meowKey':a184_0x7f76a0(0x266),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21e),'hint':a184_0x7f76a0(0x21c)},{'name':a184_0x7f76a0(0x1f9),'meowKey':a184_0x7f76a0(0x1f9),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x225),'hint':a184_0x7f76a0(0x249)},{'name':'jq','meowKey':'jq','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x218),'hint':'<expr>'},{'name':a184_0x7f76a0(0x213),'meowKey':a184_0x7f76a0(0x207),'type':a184_0x7f76a0(0x23c),'description':'Preview\x20operation\x20without\x20executing'},{'name':a184_0x7f76a0(0x1fc),'meowKey':'yes','type':a184_0x7f76a0(0x23c),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a184_0x7f76a0(0x22b),'meowKey':a184_0x7f76a0(0x223),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x227)},{'name':a184_0x7f76a0(0x253),'meowKey':a184_0x7f76a0(0x253),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x26f)},{'name':'project','meowKey':a184_0x7f76a0(0x268),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1fb)},{'name':'ci','meowKey':'ci','type':a184_0x7f76a0(0x23c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x231)},{'name':a184_0x7f76a0(0x26a),'meowKey':a184_0x7f76a0(0x26a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21a),'hidden':!![]},{'name':a184_0x7f76a0(0x256),'meowKey':a184_0x7f76a0(0x256),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20d),'hidden':!![]},{'name':'clear','meowKey':a184_0x7f76a0(0x25b),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1ee),'hidden':!![]},{'name':'watch','meowKey':a184_0x7f76a0(0x254),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x252),'hidden':!![]},{'name':'output','meowKey':a184_0x7f76a0(0x1f1),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23a),'hidden':!![]},{'name':a184_0x7f76a0(0x238),'meowKey':a184_0x7f76a0(0x238),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20e),'hidden':!![]},{'name':a184_0x7f76a0(0x1f7),'meowKey':'datasetcode','type':'string','description':a184_0x7f76a0(0x233),'hidden':!![]},{'name':a184_0x7f76a0(0x260),'meowKey':a184_0x7f76a0(0x260),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x259),'hidden':!![]},{'name':a184_0x7f76a0(0x272),'meowKey':a184_0x7f76a0(0x230),'type':a184_0x7f76a0(0x23c),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a184_0x7f76a0(0x215),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x219),'hidden':!![]},{'name':a184_0x7f76a0(0x246),'meowKey':a184_0x7f76a0(0x246),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x244),'hidden':!![]},{'name':'sqlcode','meowKey':a184_0x7f76a0(0x212),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x232),'hidden':!![]},{'name':a184_0x7f76a0(0x243),'meowKey':a184_0x7f76a0(0x23e),'type':a184_0x7f76a0(0x1f8),'description':'SQL\x20name','hidden':!![]},{'name':a184_0x7f76a0(0x203),'meowKey':a184_0x7f76a0(0x203),'type':'string','description':a184_0x7f76a0(0x1fd),'hidden':!![]},{'name':a184_0x7f76a0(0x263),'meowKey':a184_0x7f76a0(0x22a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x1f4),'meowKey':a184_0x7f76a0(0x1f4),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x23f),'meowKey':a184_0x7f76a0(0x23f),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21f),'hidden':!![]},{'name':a184_0x7f76a0(0x248),'meowKey':'descriptionFile','type':'string','description':a184_0x7f76a0(0x224),'hidden':!![]},{'name':a184_0x7f76a0(0x226),'meowKey':a184_0x7f76a0(0x226),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x222),'hidden':!![]},{'name':a184_0x7f76a0(0x1ed),'meowKey':a184_0x7f76a0(0x1ed),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x261),'hidden':!![]},{'name':a184_0x7f76a0(0x201),'meowKey':a184_0x7f76a0(0x201),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x1fe),'hidden':!![]},{'name':a184_0x7f76a0(0x245),'meowKey':'code','type':'string','description':a184_0x7f76a0(0x20f),'hidden':!![]},{'name':a184_0x7f76a0(0x236),'meowKey':a184_0x7f76a0(0x236),'type':'string','description':a184_0x7f76a0(0x22c),'hidden':!![]},{'name':'schemas','meowKey':a184_0x7f76a0(0x271),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x265),'hidden':!![]},{'name':a184_0x7f76a0(0x251),'meowKey':a184_0x7f76a0(0x251),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':'target','meowKey':a184_0x7f76a0(0x211),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24f),'hidden':!![]},{'name':'skip-imports','meowKey':a184_0x7f76a0(0x21b),'type':'boolean','description':a184_0x7f76a0(0x20b),'hidden':!![]},{'name':'key','meowKey':'key','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x264),'hidden':!![]},{'name':'value','meowKey':a184_0x7f76a0(0x235),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x205),'hidden':!![]},{'name':'tags','meowKey':a184_0x7f76a0(0x267),'type':'string','description':'Tags','hidden':!![]},{'name':a184_0x7f76a0(0x239),'meowKey':a184_0x7f76a0(0x239),'type':'boolean','description':a184_0x7f76a0(0x216),'hidden':!![]},{'name':'from-env','meowKey':a184_0x7f76a0(0x240),'type':a184_0x7f76a0(0x1f8),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a184_0x7f76a0(0x1f6),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a184_0x7f76a0(0x262),'meowKey':a184_0x7f76a0(0x262),'type':a184_0x7f76a0(0x23c),'description':'Force\x20overwrite','hidden':!![]},{'name':a184_0x7f76a0(0x257),'meowKey':a184_0x7f76a0(0x257),'type':a184_0x7f76a0(0x23c),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a184_0x7f76a0(0x26b),'meowKey':a184_0x7f76a0(0x26b),'type':'boolean','description':a184_0x7f76a0(0x25a),'hidden':!![]},{'name':a184_0x7f76a0(0x217),'meowKey':'verbose','type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a184_0x7f76a0(0x26c),'meowKey':'expectedCount','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x26e),'hidden':!![]},{'name':a184_0x7f76a0(0x234),'meowKey':'label','type':'string','description':a184_0x7f76a0(0x209),'hidden':!![]},{'name':a184_0x7f76a0(0x25f),'meowKey':a184_0x7f76a0(0x269),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20a),'hidden':!![]},{'name':a184_0x7f76a0(0x250),'meowKey':a184_0x7f76a0(0x250),'type':'string','description':a184_0x7f76a0(0x1ff),'hidden':!![]},{'name':a184_0x7f76a0(0x24e),'meowKey':a184_0x7f76a0(0x228),'type':'string','description':a184_0x7f76a0(0x25d),'hidden':!![]},{'name':a184_0x7f76a0(0x22d),'meowKey':'expectPath','type':a184_0x7f76a0(0x1f8),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a184_0x7f76a0(0x1f2),'meowKey':a184_0x7f76a0(0x1ef),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24b),'hidden':!![]},{'name':a184_0x7f76a0(0x22f),'meowKey':'menuIds','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':'string','description':a184_0x7f76a0(0x210),'hidden':!![]},{'name':a184_0x7f76a0(0x220),'meowKey':a184_0x7f76a0(0x26d),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':a184_0x7f76a0(0x204),'meowKey':a184_0x7f76a0(0x1f5),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x214),'hidden':!![]}];function a184_0x37a9(_0x3da8e0,_0x42b2b5){_0x3da8e0=_0x3da8e0-0x1ed;const _0x310fa9=a184_0x310f();let _0x37a99c=_0x310fa9[_0x3da8e0];return _0x37a99c;}export const PIPELINE_FLAG_NAMES=new Set([a184_0x7f76a0(0x237),'app','env',a184_0x7f76a0(0x1f9),'jq','dry-run','yes',a184_0x7f76a0(0x22b),'ci']);export function buildMeowFlags(){const _0xfaca91=a184_0x7f76a0;return Object[_0xfaca91(0x20c)](GLOBAL_FLAGS[_0xfaca91(0x241)](_0xf47640=>[_0xf47640[_0xfaca91(0x24a)],{'type':_0xf47640[_0xfaca91(0x215)]}]));}
@@ -1 +1 @@
1
- const a184_0x855b07=a184_0x18c6;(function(_0x1484d5,_0xb21a25){const _0x47902d=a184_0x18c6,_0x3db84a=_0x1484d5();while(!![]){try{const _0x3a7da3=parseInt(_0x47902d(0x155))/0x1*(parseInt(_0x47902d(0x14b))/0x2)+parseInt(_0x47902d(0x14a))/0x3+-parseInt(_0x47902d(0x156))/0x4+parseInt(_0x47902d(0x153))/0x5+parseInt(_0x47902d(0x152))/0x6+parseInt(_0x47902d(0x14f))/0x7+-parseInt(_0x47902d(0x14c))/0x8*(parseInt(_0x47902d(0x150))/0x9);if(_0x3a7da3===_0xb21a25)break;else _0x3db84a['push'](_0x3db84a['shift']());}catch(_0x2174a0){_0x3db84a['push'](_0x3db84a['shift']());}}}(a184_0xd9ef,0x7c3d9));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a184_0x855b07(0x14e),'format':a184_0x855b07(0x154),'locale':a184_0x855b07(0x151),'riskLevel':a184_0x855b07(0x14d),'apiDir':DEFAULT_API_DIR};function a184_0x18c6(_0x5e41c9,_0x1f43dc){_0x5e41c9=_0x5e41c9-0x14a;const _0xd9ef08=a184_0xd9ef();let _0x18c6c0=_0xd9ef08[_0x5e41c9];return _0x18c6c0;}function a184_0xd9ef(){const _0x330340=['26632WdzVDs','1562860yPmNbA','1326306hhCirI','62HrEPlh','7552ggrLkx','high-risk-write','production','5825267rOVyxH','19467vfIYMk','en-US','904398PChwem','3454340MAfCsx','compress'];a184_0xd9ef=function(){return _0x330340;};return a184_0xd9ef();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a184_0x855b07(0x154);
1
+ const a185_0x5b7ab0=a185_0x1e45;(function(_0x5311f6,_0x2a335b){const _0x5648bd=a185_0x1e45,_0x37c535=_0x5311f6();while(!![]){try{const _0xf09796=parseInt(_0x5648bd(0x19a))/0x1+parseInt(_0x5648bd(0x195))/0x2+parseInt(_0x5648bd(0x192))/0x3*(parseInt(_0x5648bd(0x197))/0x4)+parseInt(_0x5648bd(0x18f))/0x5+parseInt(_0x5648bd(0x191))/0x6*(-parseInt(_0x5648bd(0x190))/0x7)+-parseInt(_0x5648bd(0x199))/0x8+-parseInt(_0x5648bd(0x194))/0x9*(parseInt(_0x5648bd(0x198))/0xa);if(_0xf09796===_0x2a335b)break;else _0x37c535['push'](_0x37c535['shift']());}catch(_0x24510e){_0x37c535['push'](_0x37c535['shift']());}}}(a185_0x2fbd,0x24db5));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a185_0x5b7ab0(0x193),'format':a185_0x5b7ab0(0x196),'locale':a185_0x5b7ab0(0x18e),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};function a185_0x1e45(_0x2e870a,_0x336cc7){_0x2e870a=_0x2e870a-0x18e;const _0x2fbd37=a185_0x2fbd();let _0x1e458b=_0x2fbd37[_0x2e870a];return _0x1e458b;}function a185_0x2fbd(){const _0x35eccd=['compress','412dzuseH','10XZjDqa','1199576tfbwBj','210208ZykPBN','en-US','658980xRSxvE','49qeioqa','57648gTjixf','8709zeQulZ','production','2833011GZtIDu','83868KAwTnV'];a185_0x2fbd=function(){return _0x35eccd;};return a185_0x2fbd();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a185_0x5b7ab0(0x196);
@@ -1 +1 @@
1
- const a185_0x397391=a185_0x1685;(function(_0x27299d,_0x7b9ed2){const _0x2e74bc=a185_0x1685,_0x24ea4b=_0x27299d();while(!![]){try{const _0x1fc21c=-parseInt(_0x2e74bc(0x10c))/0x1*(-parseInt(_0x2e74bc(0x114))/0x2)+-parseInt(_0x2e74bc(0x10a))/0x3+parseInt(_0x2e74bc(0x118))/0x4+parseInt(_0x2e74bc(0x105))/0x5+-parseInt(_0x2e74bc(0x108))/0x6*(parseInt(_0x2e74bc(0x106))/0x7)+-parseInt(_0x2e74bc(0x107))/0x8*(-parseInt(_0x2e74bc(0x112))/0x9)+-parseInt(_0x2e74bc(0x111))/0xa;if(_0x1fc21c===_0x7b9ed2)break;else _0x24ea4b['push'](_0x24ea4b['shift']());}catch(_0x9baa3e){_0x24ea4b['push'](_0x24ea4b['shift']());}}}(a185_0x2f1c,0xee68c));function a185_0x2f1c(){const _0x10f6c4=['1784144HvJINb','2076966mlhcZM','https://daily.lovrabet.com','2643012LxRSmn','https://daily-api.lovrabet.com','1545060kvqiYb','runtimeDomain','/web-app/app/','https://runtime.lovrabet.com','apiDomain','19236960eWwzZA','27RyXAmR','trim','2hNOSRb','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.com','userDomain','5852968pBHuCt','https://app.lovrabet.com','2250145vuGHuu','7CXnZSV'];a185_0x2f1c=function(){return _0x10f6c4;};return a185_0x2f1c();}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x5d857f){const _0x36b690=a185_0x1685;customApiDomain=_0x5d857f?.[_0x36b690(0x110)],customUserDomain=_0x5d857f?.[_0x36b690(0x117)],customRuntimeDomain=_0x5d857f?.[_0x36b690(0x10d)];}function a185_0x1685(_0x59a689,_0x2cf386){_0x59a689=_0x59a689-0x105;const _0x2f1c1a=a185_0x2f1c();let _0x168582=_0x2f1c1a[_0x59a689];return _0x168582;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a185_0x397391(0x115));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a185_0x397391(0x10b));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a185_0x397391(0x10f):a185_0x397391(0x116));export const getAppDomain=()=>isProduction(getEnv())?a185_0x397391(0x119):a185_0x397391(0x109);export const getAppBaseUrl=_0x4404c9=>{const _0x3c8bc9=a185_0x397391,_0x295c53=encodeURIComponent(_0x4404c9[_0x3c8bc9(0x113)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x295c53:getAppDomain()+_0x3c8bc9(0x10e)+_0x295c53;};
1
+ function a186_0x4206(_0x272b37,_0x1752a4){_0x272b37=_0x272b37-0x109;const _0xaec85a=a186_0xaec8();let _0x42061b=_0xaec85a[_0x272b37];return _0x42061b;}const a186_0x19ea62=a186_0x4206;(function(_0x5dc76f,_0x3f43e8){const _0xd3291b=a186_0x4206,_0x1cb0b1=_0x5dc76f();while(!![]){try{const _0x354197=parseInt(_0xd3291b(0x113))/0x1+parseInt(_0xd3291b(0x10e))/0x2*(-parseInt(_0xd3291b(0x11d))/0x3)+-parseInt(_0xd3291b(0x11b))/0x4+-parseInt(_0xd3291b(0x116))/0x5*(parseInt(_0xd3291b(0x109))/0x6)+parseInt(_0xd3291b(0x11c))/0x7*(-parseInt(_0xd3291b(0x10a))/0x8)+parseInt(_0xd3291b(0x114))/0x9*(parseInt(_0xd3291b(0x10d))/0xa)+-parseInt(_0xd3291b(0x10b))/0xb*(-parseInt(_0xd3291b(0x115))/0xc);if(_0x354197===_0x3f43e8)break;else _0x1cb0b1['push'](_0x1cb0b1['shift']());}catch(_0x54e93c){_0x1cb0b1['push'](_0x1cb0b1['shift']());}}}(a186_0xaec8,0x505a2));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x34a7f9){const _0x4f296d=a186_0x4206;customApiDomain=_0x34a7f9?.[_0x4f296d(0x117)],customUserDomain=_0x34a7f9?.['userDomain'],customRuntimeDomain=_0x34a7f9?.[_0x4f296d(0x111)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a186_0x19ea62(0x110));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a186_0x19ea62(0x112):a186_0x19ea62(0x10f));function a186_0xaec8(){const _0x105d22=['https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','/web-app/app/','2281504HzYvXu','439082iKJBhW','30741kAVyXd','https://app.lovrabet.com','https://daily.lovrabet.com','1637706ZknxeK','8HfqjXN','25927mFRTFp','trim','10Eraorx','12HryXkO','https://daily-api.lovrabet.com','https://user-daily.lovrabet.com','runtimeDomain','https://api.lovrabet.com','491966OQArJF','4908789scNgew','1320iKJAHK','5pKYlbH','apiDomain'];a186_0xaec8=function(){return _0x105d22;};return a186_0xaec8();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a186_0x19ea62(0x118):a186_0x19ea62(0x119));export const getAppDomain=()=>isProduction(getEnv())?a186_0x19ea62(0x11e):a186_0x19ea62(0x11f);export const getAppBaseUrl=_0x17d463=>{const _0x38c1fa=a186_0x19ea62,_0x37fe21=encodeURIComponent(_0x17d463[_0x38c1fa(0x10c)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x37fe21:getAppDomain()+_0x38c1fa(0x11a)+_0x37fe21;};
@@ -1 +1 @@
1
- function a186_0x5138(){const _0x31a8c0=['17DDyQoD','1782lOZlKT','23998PRpwuU','6558ZexkVR','1333676YOXiix','10dozAIL','450459PSTwPe','3505DVaARk','49ieUbRw','106088ofRyWh','production','10136346aQBOrD','development','daily'];a186_0x5138=function(){return _0x31a8c0;};return a186_0x5138();}const a186_0x6b92d8=a186_0x5135;function a186_0x5135(_0x234a9d,_0x38bf57){_0x234a9d=_0x234a9d-0x1b1;const _0x5138b4=a186_0x5138();let _0x513577=_0x5138b4[_0x234a9d];return _0x513577;}(function(_0x59b9b2,_0x2892aa){const _0x2af14c=a186_0x5135,_0x1e425b=_0x59b9b2();while(!![]){try{const _0x594197=parseInt(_0x2af14c(0x1bb))/0x1*(-parseInt(_0x2af14c(0x1bd))/0x2)+-parseInt(_0x2af14c(0x1be))/0x3+-parseInt(_0x2af14c(0x1b1))/0x4+parseInt(_0x2af14c(0x1b4))/0x5*(-parseInt(_0x2af14c(0x1bc))/0x6)+-parseInt(_0x2af14c(0x1b5))/0x7*(-parseInt(_0x2af14c(0x1b6))/0x8)+parseInt(_0x2af14c(0x1b3))/0x9*(-parseInt(_0x2af14c(0x1b2))/0xa)+parseInt(_0x2af14c(0x1b8))/0xb;if(_0x594197===_0x2892aa)break;else _0x1e425b['push'](_0x1e425b['shift']());}catch(_0xd8fedf){_0x1e425b['push'](_0x1e425b['shift']());}}}(a186_0x5138,0x34d9d));export const RABETBASE_ENV_VALUES=[a186_0x6b92d8(0x1b7),a186_0x6b92d8(0x1ba)];export function normalizeEnv(_0x14f65b){const _0x40a502=a186_0x6b92d8;return _0x14f65b==='online'?_0x40a502(0x1b7):_0x14f65b;}export function isProduction(_0x497a8b){const _0xd82c09=a186_0x6b92d8;return normalizeEnv(_0x497a8b)===_0xd82c09(0x1b7);}export function isDaily(_0x15af56){const _0x3d8e75=a186_0x6b92d8;return normalizeEnv(_0x15af56)===_0x3d8e75(0x1ba);}export function isDev(_0x53396b){const _0x2e3a85=a186_0x6b92d8,_0x561afa=normalizeEnv(_0x53396b);return _0x561afa===_0x2e3a85(0x1b9)||_0x561afa==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a186_0x6b92d8(0x1b7));export function getEnv(){return env;}export function initEnv(_0x48f614){env=normalizeEnv(_0x48f614);}
1
+ const a187_0x4c0000=a187_0x4abb;(function(_0x1089b8,_0x41779a){const _0xa7f7df=a187_0x4abb,_0x544263=_0x1089b8();while(!![]){try{const _0x1932fc=parseInt(_0xa7f7df(0x1f6))/0x1+-parseInt(_0xa7f7df(0x1f4))/0x2*(-parseInt(_0xa7f7df(0x1f3))/0x3)+-parseInt(_0xa7f7df(0x1fe))/0x4*(parseInt(_0xa7f7df(0x201))/0x5)+-parseInt(_0xa7f7df(0x1f7))/0x6+-parseInt(_0xa7f7df(0x1fa))/0x7+parseInt(_0xa7f7df(0x200))/0x8*(-parseInt(_0xa7f7df(0x1ff))/0x9)+parseInt(_0xa7f7df(0x202))/0xa*(parseInt(_0xa7f7df(0x1f5))/0xb);if(_0x1932fc===_0x41779a)break;else _0x544263['push'](_0x544263['shift']());}catch(_0x16b9ed){_0x544263['push'](_0x544263['shift']());}}}(a187_0xcae2,0x8e701));export const RABETBASE_ENV_VALUES=[a187_0x4c0000(0x1fd),a187_0x4c0000(0x1f8)];function a187_0xcae2(){const _0x4ee8f9=['production','100eEsSCu','105498oPOsCC','368zUwmjg','142765EjTsEv','470szhYcG','42pspEsk','82972RszPOu','477169FfVarR','680280UeYbHD','2300844iwAZLj','daily','online','7559727naOGlc','development','dev'];a187_0xcae2=function(){return _0x4ee8f9;};return a187_0xcae2();}export function normalizeEnv(_0x39a962){const _0x29d674=a187_0x4c0000;return _0x39a962===_0x29d674(0x1f9)?_0x29d674(0x1fd):_0x39a962;}export function isProduction(_0x12ea98){const _0x16a474=a187_0x4c0000;return normalizeEnv(_0x12ea98)===_0x16a474(0x1fd);}export function isDaily(_0x2b1c24){return normalizeEnv(_0x2b1c24)==='daily';}export function isDev(_0x838ec3){const _0x3d7a58=a187_0x4c0000,_0x32cae4=normalizeEnv(_0x838ec3);return _0x32cae4===_0x3d7a58(0x1fb)||_0x32cae4===_0x3d7a58(0x1fc);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a187_0x4c0000(0x1fd));function a187_0x4abb(_0x4dc820,_0x4e00c7){_0x4dc820=_0x4dc820-0x1f3;const _0xcae212=a187_0xcae2();let _0x4abbce=_0xcae212[_0x4dc820];return _0x4abbce;}export function getEnv(){return env;}export function initEnv(_0x11b275){env=normalizeEnv(_0x11b275);}
@@ -1 +1 @@
1
- const a187_0x4f5df7=a187_0x3596;function a187_0x3596(_0x24a08a,_0x18351d){_0x24a08a=_0x24a08a-0xd3;const _0x574a62=a187_0x574a();let _0x359665=_0x574a62[_0x24a08a];return _0x359665;}(function(_0xdc0ae0,_0x59247f){const _0x446761=a187_0x3596,_0x4944c7=_0xdc0ae0();while(!![]){try{const _0x555e96=parseInt(_0x446761(0xd8))/0x1+parseInt(_0x446761(0xd6))/0x2*(parseInt(_0x446761(0xdc))/0x3)+-parseInt(_0x446761(0xd3))/0x4+-parseInt(_0x446761(0xd5))/0x5*(parseInt(_0x446761(0xd9))/0x6)+parseInt(_0x446761(0xde))/0x7*(-parseInt(_0x446761(0xdb))/0x8)+-parseInt(_0x446761(0xdd))/0x9+parseInt(_0x446761(0xda))/0xa*(parseInt(_0x446761(0xd4))/0xb);if(_0x555e96===_0x59247f)break;else _0x4944c7['push'](_0x4944c7['shift']());}catch(_0x2f5d40){_0x4944c7['push'](_0x4944c7['shift']());}}}(a187_0x574a,0x7ec50));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty',a187_0x4f5df7(0xd7)];function a187_0x574a(){const _0x322d8b=['compress','783832CcZlxM','102cXBeWo','183350bmhggY','8IjQSRM','204iRKRoG','9226467cIAlQX','3445463YmBuEm','4081176SmFboC','1573ISLBMt','212715FQdcSb','11012GFweKO'];a187_0x574a=function(){return _0x322d8b;};return a187_0x574a();}
1
+ function a188_0x3db6(_0x45edf1,_0x111834){_0x45edf1=_0x45edf1-0x162;const _0x36c423=a188_0x36c4();let _0x3db690=_0x36c423[_0x45edf1];return _0x3db690;}const a188_0x4e1b88=a188_0x3db6;(function(_0x286310,_0x23c988){const _0x3a95c2=a188_0x3db6,_0x50c16e=_0x286310();while(!![]){try{const _0x5692b3=parseInt(_0x3a95c2(0x16a))/0x1*(-parseInt(_0x3a95c2(0x163))/0x2)+parseInt(_0x3a95c2(0x16c))/0x3+parseInt(_0x3a95c2(0x168))/0x4+parseInt(_0x3a95c2(0x16b))/0x5*(parseInt(_0x3a95c2(0x164))/0x6)+parseInt(_0x3a95c2(0x165))/0x7*(-parseInt(_0x3a95c2(0x166))/0x8)+parseInt(_0x3a95c2(0x16f))/0x9*(-parseInt(_0x3a95c2(0x162))/0xa)+parseInt(_0x3a95c2(0x170))/0xb*(-parseInt(_0x3a95c2(0x16d))/0xc);if(_0x5692b3===_0x23c988)break;else _0x50c16e['push'](_0x50c16e['shift']());}catch(_0x14e875){_0x50c16e['push'](_0x50c16e['shift']());}}}(a188_0x36c4,0x6c72b));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a188_0x4e1b88(0x167),a188_0x4e1b88(0x169),a188_0x4e1b88(0x16e)];function a188_0x36c4(){const _0x1080f0=['7632zaRuZm','json','1572440tsMjgu','pretty','137HvJTyz','3255335RjqpFH','524673AjGPUz','139500UCGefO','compress','53739YCnbnk','209pIpXNA','530GBGnMW','2618nhkxqv','6XUMcGn','427BdypIW'];a188_0x36c4=function(){return _0x1080f0;};return a188_0x36c4();}
@@ -1 +1 @@
1
- const a188_0xf195f1=a188_0x5ddc;(function(_0x6f6599,_0x3f098a){const _0x55ccbc=a188_0x5ddc,_0x307d33=_0x6f6599();while(!![]){try{const _0x88fe6e=parseInt(_0x55ccbc(0xff))/0x1+parseInt(_0x55ccbc(0xf7))/0x2+parseInt(_0x55ccbc(0xfc))/0x3*(parseInt(_0x55ccbc(0xf6))/0x4)+-parseInt(_0x55ccbc(0xfa))/0x5*(parseInt(_0x55ccbc(0xf9))/0x6)+parseInt(_0x55ccbc(0xfd))/0x7+parseInt(_0x55ccbc(0xf8))/0x8+parseInt(_0x55ccbc(0x100))/0x9*(-parseInt(_0x55ccbc(0xfb))/0xa);if(_0x88fe6e===_0x3f098a)break;else _0x307d33['push'](_0x307d33['shift']());}catch(_0xec76f3){_0x307d33['push'](_0x307d33['shift']());}}}(a188_0x40eb,0x2abc5));function a188_0x5ddc(_0x54ddfd,_0x431eb3){_0x54ddfd=_0x54ddfd-0xf6;const _0x40eb83=a188_0x40eb();let _0x5ddc88=_0x40eb83[_0x54ddfd];return _0x5ddc88;}function a188_0x40eb(){const _0x2f8d52=['./src/api','280812rCRvaB','9fYbilo','4SFGVSW','373004QNYAzU','1927768JkkdAt','7506xWwGss','205QiDTIk','6029110axHUIz','175221VadeET','437885jPxXTQ'];a188_0x40eb=function(){return _0x2f8d52;};return a188_0x40eb();}export const DEFAULT_API_DIR=a188_0xf195f1(0xfe);
1
+ function a189_0x5a09(){const _0x51c62b=['2194872buGukB','32KSiLgr','9107959zlrhzc','6376740eYgtuV','166251zgIbnR','18palDRh','113075VJfKIc','./src/api','9299464heKvji','551779OYQlBI','342Doirzr'];a189_0x5a09=function(){return _0x51c62b;};return a189_0x5a09();}const a189_0x52b1de=a189_0xeef6;(function(_0x3ea58d,_0x4e38f7){const _0x5b077e=a189_0xeef6,_0x159085=_0x3ea58d();while(!![]){try{const _0x5c4199=-parseInt(_0x5b077e(0xa1))/0x1+parseInt(_0x5b077e(0xa3))/0x2+parseInt(_0x5b077e(0xa7))/0x3*(parseInt(_0x5b077e(0xa4))/0x4)+parseInt(_0x5b077e(0xa9))/0x5*(-parseInt(_0x5b077e(0xa2))/0x6)+-parseInt(_0x5b077e(0xa5))/0x7+parseInt(_0x5b077e(0xa0))/0x8+parseInt(_0x5b077e(0xa8))/0x9*(parseInt(_0x5b077e(0xa6))/0xa);if(_0x5c4199===_0x4e38f7)break;else _0x159085['push'](_0x159085['shift']());}catch(_0x30a952){_0x159085['push'](_0x159085['shift']());}}}(a189_0x5a09,0xcc3e6));function a189_0xeef6(_0xb7322d,_0x53956a){_0xb7322d=_0xb7322d-0xa0;const _0x5a09cd=a189_0x5a09();let _0xeef620=_0x5a09cd[_0xb7322d];return _0xeef620;}export const DEFAULT_API_DIR=a189_0x52b1de(0xaa);
@@ -1 +1 @@
1
- const a189_0x15510c=a189_0x37b7;(function(_0x4949be,_0x1feb3b){const _0x1cb30d=a189_0x37b7,_0x52d40d=_0x4949be();while(!![]){try{const _0x195b1d=-parseInt(_0x1cb30d(0x1ab))/0x1*(parseInt(_0x1cb30d(0x1aa))/0x2)+parseInt(_0x1cb30d(0x1a2))/0x3*(parseInt(_0x1cb30d(0x1ac))/0x4)+-parseInt(_0x1cb30d(0x1a5))/0x5+-parseInt(_0x1cb30d(0x1a9))/0x6*(-parseInt(_0x1cb30d(0x1a3))/0x7)+parseInt(_0x1cb30d(0x1a8))/0x8*(parseInt(_0x1cb30d(0x1a1))/0x9)+parseInt(_0x1cb30d(0x1a7))/0xa+-parseInt(_0x1cb30d(0x1a0))/0xb;if(_0x195b1d===_0x1feb3b)break;else _0x52d40d['push'](_0x52d40d['shift']());}catch(_0xae953d){_0x52d40d['push'](_0x52d40d['shift']());}}}(a189_0x26e9,0x57da3));function a189_0x37b7(_0x4134b7,_0x5ddc13){_0x4134b7=_0x4134b7-0x1a0;const _0x26e903=a189_0x26e9();let _0x37b7c7=_0x26e903[_0x4134b7];return _0x37b7c7;}export const RISK_LEVEL_VALUES=[a189_0x15510c(0x1a4),'write',a189_0x15510c(0x1a6)];function a189_0x26e9(){const _0x5607c3=['70HDyyYc','9340yhXtRU','16045502VuCOSH','15804CyiCYR','906VxPbnt','21UQBCTr','read','1641630UZVrzH','high-risk-write','4738920qHjePw','2888VyXjZg','858006AubILX','2718flPeYe'];a189_0x26e9=function(){return _0x5607c3;};return a189_0x26e9();}
1
+ function a190_0x368a(){const _0x513d96=['944923ejwyRv','779980vQvqEh','68hOLyGa','198570pbLQao','2755044GbLecm','102GGnjlD','8853336XgFqia','16655607xDlNkD','10EmaMqR','73115yXuRWy','high-risk-write'];a190_0x368a=function(){return _0x513d96;};return a190_0x368a();}const a190_0x4ebd26=a190_0x7a26;(function(_0x56eae9,_0x101399){const _0x2b15f3=a190_0x7a26,_0x82e3a2=_0x56eae9();while(!![]){try{const _0x54f16b=-parseInt(_0x2b15f3(0x10f))/0x1+parseInt(_0x2b15f3(0x110))/0x2+-parseInt(_0x2b15f3(0x113))/0x3+parseInt(_0x2b15f3(0x111))/0x4*(-parseInt(_0x2b15f3(0x112))/0x5)+-parseInt(_0x2b15f3(0x114))/0x6*(-parseInt(_0x2b15f3(0x10d))/0x7)+parseInt(_0x2b15f3(0x10a))/0x8+-parseInt(_0x2b15f3(0x10b))/0x9*(-parseInt(_0x2b15f3(0x10c))/0xa);if(_0x54f16b===_0x101399)break;else _0x82e3a2['push'](_0x82e3a2['shift']());}catch(_0x1fbafc){_0x82e3a2['push'](_0x82e3a2['shift']());}}}(a190_0x368a,0xf0d44));function a190_0x7a26(_0x28e379,_0x286884){_0x28e379=_0x28e379-0x10a;const _0x368a39=a190_0x368a();let _0x7a26b2=_0x368a39[_0x28e379];return _0x7a26b2;}export const RISK_LEVEL_VALUES=['read','write',a190_0x4ebd26(0x10e)];
@@ -1 +1 @@
1
- function a190_0x2080(_0xe345b9,_0x48724a){_0xe345b9=_0xe345b9-0x19e;const _0x5054f5=a190_0x5054();let _0x2080ac=_0x5054f5[_0xe345b9];return _0x2080ac;}(function(_0x4df284,_0x3cb456){const _0x21bc2a=a190_0x2080,_0x5cb321=_0x4df284();while(!![]){try{const _0x2cea6c=-parseInt(_0x21bc2a(0x19f))/0x1+-parseInt(_0x21bc2a(0x1c0))/0x2*(-parseInt(_0x21bc2a(0x1c5))/0x3)+parseInt(_0x21bc2a(0x1b1))/0x4+parseInt(_0x21bc2a(0x1be))/0x5+-parseInt(_0x21bc2a(0x1b3))/0x6+parseInt(_0x21bc2a(0x1ab))/0x7+-parseInt(_0x21bc2a(0x1ae))/0x8;if(_0x2cea6c===_0x3cb456)break;else _0x5cb321['push'](_0x5cb321['shift']());}catch(_0xf9d516){_0x5cb321['push'](_0x5cb321['shift']());}}}(a190_0x5054,0xd7cf0));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x51642f){const _0x1cffbc=a190_0x2080;return typeof _0x51642f===_0x1cffbc(0x1a0)&&_0x51642f[_0x1cffbc(0x1ac)]()?_0x51642f[_0x1cffbc(0x1ac)]():undefined;}function appProfiles(_0x501df2){const _0x3e98cd=a190_0x2080;return _0x501df2[_0x3e98cd(0x1b7)]&&typeof _0x501df2[_0x3e98cd(0x1b7)]===_0x3e98cd(0x1b2)?_0x501df2[_0x3e98cd(0x1b7)]:{};}function resolveDefaultAppName(_0x36fb55){const _0x2150fd=a190_0x2080,_0x2aa3d5=stringConfigValue(_0x36fb55[_0x2150fd(0x1a1)]);if(_0x2aa3d5)return _0x2aa3d5;return Object['keys'](appProfiles(_0x36fb55))[0x0];}function resolveTopLevelAppCode(_0x2cc593){const _0x31aa39=a190_0x2080;return stringConfigValue(_0x2cc593[_0x31aa39(0x1b8)])||stringConfigValue(_0x2cc593[_0x31aa39(0x1bb)]);}export function resolveAppConfig({raw:_0x231ced,flags:_0x4e1fe1,layers:_0xf42db0,readEnv:_0x41a4be}){const _0x5837fb=a190_0x2080,_0x466d05=_0xf42db0?.[_0x5837fb(0x1af)]??{},_0x40e565=_0xf42db0?.[_0x5837fb(0x1b0)]??{},_0x2e513b=Object[_0x5837fb(0x1aa)](_0x466d05)[_0x5837fb(0x1a5)]>0x0,_0x57cf14=!_0x2e513b||_0x466d05['inherit']===!![],_0x59980c=_0x2e513b?resolveDefaultAppName(_0x466d05):undefined,_0x446c32=_0x57cf14?resolveDefaultAppName(_0x40e565):undefined,_0x5889ea=stringConfigValue(_0x4e1fe1[_0x5837fb(0x1bb)]),_0x1ef85d=_0x41a4be(_0x5837fb(0x1bc)),_0xc75e26={};if(_0x231ced[_0x5837fb(0x1b7)]&&typeof _0x231ced['apps']==='object')for(const [_0x169f2a,_0x368362]of Object['entries'](_0x231ced[_0x5837fb(0x1b7)])){_0x368362&&typeof _0x368362===_0x5837fb(0x1b2)&&_0x368362['appcode']&&(_0xc75e26[_0x169f2a]=_0x368362);}const _0x1381c8=_0x231ced[_0x5837fb(0x1a1)]||undefined,_0x37ca91=Object['keys'](_0xc75e26)[_0x5837fb(0x1a5)]>0x0,_0x530254=_0x5889ea||_0x59980c||_0x1ef85d||_0x446c32||_0x1381c8||undefined,_0x22340a=stringConfigValue(_0x4e1fe1[_0x5837fb(0x1b8)]),_0x427b9a=_0x22340a?Object[_0x5837fb(0x1c6)](_0xc75e26)[_0x5837fb(0x1a6)](([,_0x2dbf34])=>_0x2dbf34?.[_0x5837fb(0x1b8)]===_0x22340a):undefined,_0x4e2cbc=_0x427b9a?.[0x0],_0x1310ed=_0x427b9a?.[0x1],_0x1057d7=_0x22340a?_0x4e2cbc:_0x530254;let _0x1cc405=_0x1057d7&&_0xc75e26[_0x1057d7]?_0xc75e26[_0x1057d7]:undefined;_0x22340a&&_0x1310ed&&(_0x1cc405=_0x1310ed);const _0x522472=_0x22340a?_0x1310ed??_0x1cc405:_0x1cc405,_0xba8f57=!_0x5889ea&&!_0x59980c&&_0x1ef85d&&_0x1057d7===_0x1ef85d,_0x5122e9=_0x5889ea||(_0xba8f57?_0x1ef85d:undefined)||(_0x22340a?_0x4e2cbc:undefined),_0x8626=_0x522472?.[_0x5837fb(0x1b8)],_0x927912=_0x2e513b?resolveTopLevelAppCode(_0x466d05):undefined,_0x1086e9=_0x57cf14?resolveTopLevelAppCode(_0x40e565):undefined,_0x46e9f0=_0x5889ea||_0x59980c?_0x8626:undefined,_0x28ccd6=!_0x5889ea&&!_0x59980c?_0x8626:undefined,_0x17dc14=_0x22340a||_0x46e9f0||_0x927912||_0x28ccd6||_0x1086e9||undefined,_0x5e5b8f=_0x2e513b?stringConfigValue(_0x466d05[_0x5837fb(0x1a2)]):undefined,_0x38be91=_0x57cf14?stringConfigValue(_0x40e565['env']):undefined,_0x4bac33=_0x4e1fe1[_0x5837fb(0x1a2)]||_0x522472?.[_0x5837fb(0x1a2)]||_0x5e5b8f||_0x41a4be('ENV')||_0x38be91||_0x231ced[_0x5837fb(0x1a2)]||DEFAULT_CONFIG_VALUES[_0x5837fb(0x1a2)],_0x1610ce=_0x522472?.[_0x5837fb(0x1b6)]||_0x231ced[_0x5837fb(0x1b6)]||DEFAULT_CONFIG_VALUES[_0x5837fb(0x1b6)],_0x39c37b=_0x41a4be('COOKIE')||_0x522472?.[_0x5837fb(0x1c1)]||_0x231ced[_0x5837fb(0x1c1)]||undefined,_0x536d22=_0x41a4be(_0x5837fb(0x19e))||_0x522472?.['accessKey']||_0x231ced[_0x5837fb(0x1c2)]||undefined,_0x3f431e=_0x4e1fe1['format']||_0x41a4be(_0x5837fb(0x1bf))||_0x522472?.['format']||_0x231ced[_0x5837fb(0x1c4)],_0x456b06=normalizeLegacyOutputFormat(_0x3f431e),_0x353019=_0x41a4be(_0x5837fb(0x1a4))||_0x522472?.[_0x5837fb(0x1c7)]||_0x231ced[_0x5837fb(0x1c7)],_0xe9da95=_0x353019?Number(_0x353019)||undefined:undefined,_0x3dc3b4=_0x41a4be(_0x5837fb(0x1a7))||_0x41a4be(_0x5837fb(0x1b5))||_0x522472?.[_0x5837fb(0x1c3)]||_0x231ced[_0x5837fb(0x1c3)]||_0x231ced[_0x5837fb(0x1bd)],_0x31ef7f=_0x3dc3b4===_0x5837fb(0x1a3)||_0x3dc3b4===_0x5837fb(0x1ba)?_0x3dc3b4:DEFAULT_CONFIG_VALUES[_0x5837fb(0x1c3)],_0x3bef08=_0x41a4be(_0x5837fb(0x1ad)),_0x1e5d9a=_0x3bef08==='1'||_0x3bef08===_0x5837fb(0x1a9),_0x5dd423=_0x522472?.['apiDir']||_0x231ced[_0x5837fb(0x1b4)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x2c3f3e=isDaily(normalizeEnv(String(_0x4bac33)))?_0x5837fb(0x1a8):_0x5837fb(0x1b9);return{'appCode':typeof _0x17dc14===_0x5837fb(0x1a0)&&_0x17dc14['trim']()?_0x17dc14[_0x5837fb(0x1ac)]():undefined,'env':_0x2c3f3e,'locale':_0x1610ce,'cookie':_0x39c37b,'accessKey':_0x536d22,'format':_0x456b06,'pageSize':_0xe9da95,'riskLevel':_0x31ef7f,'verbose':_0x1e5d9a,'apiDir':_0x5dd423,'apps':_0xc75e26,'defaultApp':_0x1381c8,'currentApp':_0x37ca91?_0x1057d7:undefined,'explicitAppName':_0x5122e9};}function a190_0x5054(){const _0x20eae5=['entries','pageSize','ACCESS_KEY','1145800bNqjbz','string','defaultApp','env','read','PAGE_SIZE','length','find','RISK_LEVEL','daily','true','keys','9865086hYaMcE','trim','VERBOSE','6466872DlaoUi','projectConfig','globalConfig','1346308vEAXdW','object','311886iMHUBP','apiDir','MAX_RISK','locale','apps','appcode','production','write','app','APP','maxRisk','3764755CTvFan','FORMAT','6auDTqq','cookie','accessKey','riskLevel','format','391266ybBXly'];a190_0x5054=function(){return _0x20eae5;};return a190_0x5054();}
1
+ (function(_0x244766,_0x132f42){const _0x4b7ecc=a191_0x4461,_0x1b38e0=_0x244766();while(!![]){try{const _0x438285=parseInt(_0x4b7ecc(0x16e))/0x1+-parseInt(_0x4b7ecc(0x16d))/0x2*(-parseInt(_0x4b7ecc(0x16b))/0x3)+parseInt(_0x4b7ecc(0x18b))/0x4+-parseInt(_0x4b7ecc(0x191))/0x5*(-parseInt(_0x4b7ecc(0x172))/0x6)+parseInt(_0x4b7ecc(0x18c))/0x7+parseInt(_0x4b7ecc(0x183))/0x8*(parseInt(_0x4b7ecc(0x174))/0x9)+-parseInt(_0x4b7ecc(0x16f))/0xa*(parseInt(_0x4b7ecc(0x18a))/0xb);if(_0x438285===_0x132f42)break;else _0x1b38e0['push'](_0x1b38e0['shift']());}catch(_0x32e29d){_0x1b38e0['push'](_0x1b38e0['shift']());}}}(a191_0x4167,0x73ac3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a191_0x4167(){const _0x427c23=['globalConfig','3VcHKvL','defaultApp','1556398VPzUQe','583687Yakntv','10EcDdzG','daily','ENV','3450ortktY','riskLevel','1736541aQRzJm','production','trim','apiDir','ACCESS_KEY','cookie','accessKey','app','pageSize','true','keys','appcode','inherit','COOKIE','apps','24MnvtdT','find','object','locale','APP','entries','length','25439447njppWW','1924156yzbaiw','2548875Wrkevw','PAGE_SIZE','string','format','env','5GMRLWZ','RISK_LEVEL','projectConfig','write','FORMAT'];a191_0x4167=function(){return _0x427c23;};return a191_0x4167();}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x2720cc){const _0x5e7721=a191_0x4461;return typeof _0x2720cc===_0x5e7721(0x18e)&&_0x2720cc[_0x5e7721(0x176)]()?_0x2720cc['trim']():undefined;}function a191_0x4461(_0x2c00e8,_0x4e1c4f){_0x2c00e8=_0x2c00e8-0x16b;const _0x4167ea=a191_0x4167();let _0x4461c1=_0x4167ea[_0x2c00e8];return _0x4461c1;}function appProfiles(_0x8d85c3){const _0x45a056=a191_0x4461;return _0x8d85c3[_0x45a056(0x182)]&&typeof _0x8d85c3[_0x45a056(0x182)]===_0x45a056(0x185)?_0x8d85c3[_0x45a056(0x182)]:{};}function resolveDefaultAppName(_0x5318b8){const _0x18c67f=a191_0x4461,_0x2391e7=stringConfigValue(_0x5318b8['defaultApp']);if(_0x2391e7)return _0x2391e7;return Object[_0x18c67f(0x17e)](appProfiles(_0x5318b8))[0x0];}function resolveTopLevelAppCode(_0xa15640){const _0xbf37b7=a191_0x4461;return stringConfigValue(_0xa15640['appcode'])||stringConfigValue(_0xa15640[_0xbf37b7(0x17b)]);}export function resolveAppConfig({raw:_0x38a434,flags:_0x3a497c,layers:_0x53d4b7,readEnv:_0x96ccc3}){const _0x4cd695=a191_0x4461,_0x2459fe=_0x53d4b7?.[_0x4cd695(0x193)]??{},_0x1b5e60=_0x53d4b7?.[_0x4cd695(0x196)]??{},_0x25bf1e=Object[_0x4cd695(0x17e)](_0x2459fe)[_0x4cd695(0x189)]>0x0,_0x41dd4a=!_0x25bf1e||_0x2459fe[_0x4cd695(0x180)]===!![],_0x3fb54b=_0x25bf1e?resolveDefaultAppName(_0x2459fe):undefined,_0x5d200b=_0x41dd4a?resolveDefaultAppName(_0x1b5e60):undefined,_0x35da0e=stringConfigValue(_0x3a497c[_0x4cd695(0x17b)]),_0x47cfc8=_0x96ccc3(_0x4cd695(0x187)),_0x2dfed9={};if(_0x38a434[_0x4cd695(0x182)]&&typeof _0x38a434[_0x4cd695(0x182)]===_0x4cd695(0x185))for(const [_0x566c56,_0x42be95]of Object[_0x4cd695(0x188)](_0x38a434['apps'])){_0x42be95&&typeof _0x42be95===_0x4cd695(0x185)&&_0x42be95[_0x4cd695(0x17f)]&&(_0x2dfed9[_0x566c56]=_0x42be95);}const _0x1410fc=_0x38a434[_0x4cd695(0x16c)]||undefined,_0x5ddc93=Object['keys'](_0x2dfed9)[_0x4cd695(0x189)]>0x0,_0x2b4122=_0x35da0e||_0x3fb54b||_0x47cfc8||_0x5d200b||_0x1410fc||undefined,_0x650e5c=stringConfigValue(_0x3a497c[_0x4cd695(0x17f)]),_0x5a4ce6=_0x650e5c?Object['entries'](_0x2dfed9)[_0x4cd695(0x184)](([,_0x3fe4e9])=>_0x3fe4e9?.['appcode']===_0x650e5c):undefined,_0x3f12b0=_0x5a4ce6?.[0x0],_0x2f8958=_0x5a4ce6?.[0x1],_0x2f21de=_0x650e5c?_0x3f12b0:_0x2b4122;let _0x3a9305=_0x2f21de&&_0x2dfed9[_0x2f21de]?_0x2dfed9[_0x2f21de]:undefined;_0x650e5c&&_0x2f8958&&(_0x3a9305=_0x2f8958);const _0x1ae669=_0x650e5c?_0x2f8958??_0x3a9305:_0x3a9305,_0x300bfc=!_0x35da0e&&!_0x3fb54b&&_0x47cfc8&&_0x2f21de===_0x47cfc8,_0x1b32c9=_0x35da0e||(_0x300bfc?_0x47cfc8:undefined)||(_0x650e5c?_0x3f12b0:undefined),_0x1e4892=_0x1ae669?.['appcode'],_0x471c50=_0x25bf1e?resolveTopLevelAppCode(_0x2459fe):undefined,_0x53c1ba=_0x41dd4a?resolveTopLevelAppCode(_0x1b5e60):undefined,_0xec4e2b=_0x35da0e||_0x3fb54b?_0x1e4892:undefined,_0x5898ed=!_0x35da0e&&!_0x3fb54b?_0x1e4892:undefined,_0x29e91a=_0x650e5c||_0xec4e2b||_0x471c50||_0x5898ed||_0x53c1ba||undefined,_0x24a420=_0x25bf1e?stringConfigValue(_0x2459fe[_0x4cd695(0x190)]):undefined,_0xfa63d9=_0x41dd4a?stringConfigValue(_0x1b5e60[_0x4cd695(0x190)]):undefined,_0x350807=_0x3a497c[_0x4cd695(0x190)]||_0x1ae669?.['env']||_0x24a420||_0x96ccc3(_0x4cd695(0x171))||_0xfa63d9||_0x38a434[_0x4cd695(0x190)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x190)],_0x254726=_0x1ae669?.[_0x4cd695(0x186)]||_0x38a434[_0x4cd695(0x186)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x186)],_0x58bb71=_0x96ccc3(_0x4cd695(0x181))||_0x1ae669?.[_0x4cd695(0x179)]||_0x38a434[_0x4cd695(0x179)]||undefined,_0x18366d=_0x96ccc3(_0x4cd695(0x178))||_0x1ae669?.[_0x4cd695(0x17a)]||_0x38a434['accessKey']||undefined,_0x5d82b4=_0x3a497c[_0x4cd695(0x18f)]||_0x96ccc3(_0x4cd695(0x195))||_0x1ae669?.[_0x4cd695(0x18f)]||_0x38a434[_0x4cd695(0x18f)],_0x3c90bf=normalizeLegacyOutputFormat(_0x5d82b4),_0x776e8f=_0x96ccc3(_0x4cd695(0x18d))||_0x1ae669?.['pageSize']||_0x38a434[_0x4cd695(0x17c)],_0x3a4dde=_0x776e8f?Number(_0x776e8f)||undefined:undefined,_0x249284=_0x96ccc3(_0x4cd695(0x192))||_0x96ccc3('MAX_RISK')||_0x1ae669?.[_0x4cd695(0x173)]||_0x38a434[_0x4cd695(0x173)]||_0x38a434['maxRisk'],_0x427e5a=_0x249284==='read'||_0x249284===_0x4cd695(0x194)?_0x249284:DEFAULT_CONFIG_VALUES[_0x4cd695(0x173)],_0x522b99=_0x96ccc3('VERBOSE'),_0x5ab929=_0x522b99==='1'||_0x522b99===_0x4cd695(0x17d),_0x58fb6c=_0x1ae669?.['apiDir']||_0x38a434[_0x4cd695(0x177)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x177)],_0x346972=isDaily(normalizeEnv(String(_0x350807)))?_0x4cd695(0x170):_0x4cd695(0x175);return{'appCode':typeof _0x29e91a===_0x4cd695(0x18e)&&_0x29e91a[_0x4cd695(0x176)]()?_0x29e91a[_0x4cd695(0x176)]():undefined,'env':_0x346972,'locale':_0x254726,'cookie':_0x58bb71,'accessKey':_0x18366d,'format':_0x3c90bf,'pageSize':_0x3a4dde,'riskLevel':_0x427e5a,'verbose':_0x5ab929,'apiDir':_0x58fb6c,'apps':_0x2dfed9,'defaultApp':_0x1410fc,'currentApp':_0x5ddc93?_0x2f21de:undefined,'explicitAppName':_0x1b32c9};}
@@ -1 +1 @@
1
- (function(_0x50b5bf,_0x270055){const _0x40fec3=a191_0x112d,_0x279db6=_0x50b5bf();while(!![]){try{const _0x1c09bb=-parseInt(_0x40fec3(0xf2))/0x1+parseInt(_0x40fec3(0xf6))/0x2*(-parseInt(_0x40fec3(0xfc))/0x3)+-parseInt(_0x40fec3(0xfa))/0x4*(-parseInt(_0x40fec3(0xf4))/0x5)+-parseInt(_0x40fec3(0xfd))/0x6*(parseInt(_0x40fec3(0xf9))/0x7)+parseInt(_0x40fec3(0xf1))/0x8*(parseInt(_0x40fec3(0xf5))/0x9)+-parseInt(_0x40fec3(0xf3))/0xa*(-parseInt(_0x40fec3(0xfe))/0xb)+parseInt(_0x40fec3(0xf8))/0xc;if(_0x1c09bb===_0x270055)break;else _0x279db6['push'](_0x279db6['shift']());}catch(_0x4013d6){_0x279db6['push'](_0x279db6['shift']());}}}(a191_0x3ba9,0x1da4e));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a191_0x112d(_0x270503,_0x25ed41){_0x270503=_0x270503-0xf1;const _0x3ba98a=a191_0x3ba9();let _0x112d9b=_0x3ba98a[_0x270503];return _0x112d9b;}function a191_0x3ba9(){const _0x11b2f7=['40inxSjr','80WVhYGe','45GGVKwR','10174lNRmBJ','authRequired','4857900FvvnAW','14nsnEmX','3456upCOfB','cookie','33mbanoz','503598zxlrug','48169lpwceV','166648eFuGqw','195075esXBnR'];a191_0x3ba9=function(){return _0x11b2f7;};return a191_0x3ba9();}export async function buildAuth(_0x3d0023){const _0x3e20e9=a191_0x112d,{getCookie:_0x489076}=await import('../auth/get-cookie.js'),_0x2c0412=_0x3d0023[_0x3e20e9(0xfb)]||_0x489076(),_0x4ed134=_0x2c0412?await getIsSessionValid():![];return{'cookie':_0x2c0412,'isLoggedIn':_0x4ed134,async 'getOrLogin'(){const _0x23d1a3=_0x3e20e9;if(_0x2c0412&&_0x4ed134)return _0x2c0412;throw CliErrors[_0x23d1a3(0xf7)]();}};}
1
+ function a192_0x1d11(_0x31edfe,_0x117b93){_0x31edfe=_0x31edfe-0x157;const _0x15b956=a192_0x15b9();let _0x1d11ba=_0x15b956[_0x31edfe];return _0x1d11ba;}function a192_0x15b9(){const _0x5d69a6=['../auth/get-cookie.js','13sgaXjF','4075245HIJtfO','4855588MaWApc','29030QvQTns','27837rJTnUE','6nftNHx','13134MPhRbF','cookie','233062HuUjzU','2976DGmedj','4484898jxIHan','7125727EQXApR'];a192_0x15b9=function(){return _0x5d69a6;};return a192_0x15b9();}(function(_0x436780,_0x19bb48){const _0x207e57=a192_0x1d11,_0xf22b1=_0x436780();while(!![]){try{const _0x573bd9=parseInt(_0x207e57(0x15b))/0x1*(parseInt(_0x207e57(0x163))/0x2)+-parseInt(_0x207e57(0x158))/0x3+-parseInt(_0x207e57(0x15d))/0x4+parseInt(_0x207e57(0x15c))/0x5+-parseInt(_0x207e57(0x160))/0x6*(parseInt(_0x207e57(0x159))/0x7)+parseInt(_0x207e57(0x157))/0x8*(-parseInt(_0x207e57(0x15f))/0x9)+parseInt(_0x207e57(0x15e))/0xa*(parseInt(_0x207e57(0x161))/0xb);if(_0x573bd9===_0x19bb48)break;else _0xf22b1['push'](_0xf22b1['shift']());}catch(_0x388efa){_0xf22b1['push'](_0xf22b1['shift']());}}}(a192_0x15b9,0xe04ba));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x11cd56){const _0x3072ad=a192_0x1d11,{getCookie:_0x59ac7b}=await import(_0x3072ad(0x15a)),_0x1ff9eb=_0x11cd56[_0x3072ad(0x162)]||_0x59ac7b(),_0x34efab=_0x1ff9eb?await getIsSessionValid():![];return{'cookie':_0x1ff9eb,'isLoggedIn':_0x34efab,async 'getOrLogin'(){if(_0x1ff9eb&&_0x34efab)return _0x1ff9eb;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- function a192_0x4a7c(_0x320116,_0xc566a3){_0x320116=_0x320116-0x64;const _0x23e9fe=a192_0x23e9();let _0x4a7cd6=_0x23e9fe[_0x320116];return _0x4a7cd6;}const a192_0x490b6c=a192_0x4a7c;(function(_0x1d931f,_0x1c5b55){const _0x485432=a192_0x4a7c,_0x3f5e8b=_0x1d931f();while(!![]){try{const _0x540cdc=-parseInt(_0x485432(0x66))/0x1*(parseInt(_0x485432(0x7b))/0x2)+parseInt(_0x485432(0x7e))/0x3+-parseInt(_0x485432(0x86))/0x4*(-parseInt(_0x485432(0x8e))/0x5)+parseInt(_0x485432(0x85))/0x6+-parseInt(_0x485432(0x83))/0x7*(parseInt(_0x485432(0x65))/0x8)+parseInt(_0x485432(0x80))/0x9+-parseInt(_0x485432(0x77))/0xa;if(_0x540cdc===_0x1c5b55)break;else _0x3f5e8b['push'](_0x3f5e8b['shift']());}catch(_0xa370be){_0x3f5e8b['push'](_0x3f5e8b['shift']());}}}(a192_0x23e9,0xbf6c7));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=a192_0x490b6c(0x93);export const CONFIG_NAMES=[a192_0x490b6c(0x93),a192_0x490b6c(0x7d),a192_0x490b6c(0x6e)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a192_0x490b6c(0x8c)](_0x2525b4=>_0x2525b4!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x41ff96){for(const _0x3385fd of CONFIG_NAMES){const _0x464f47=resolve(_0x41ff96,_0x3385fd);if(existsSync(_0x464f47))return _0x464f47;}return undefined;}export function findProjectRootDirectory(_0x3f4912=process[a192_0x490b6c(0x8d)]()){let _0x15ecbd=resolve(_0x3f4912);const {root:_0x26e4b1}=parse(_0x15ecbd),_0x25cc2b=homedir();while(!![]){if(resolveConfigPath(_0x15ecbd)){if(_0x15ecbd===_0x25cc2b)break;return _0x15ecbd;}if(_0x15ecbd===_0x26e4b1||_0x15ecbd===_0x25cc2b)break;const _0x2eed22=dirname(_0x15ecbd);if(_0x2eed22===_0x15ecbd)break;_0x15ecbd=_0x2eed22;}return resolve(_0x3f4912);}export function getProjectConfigPath(){const _0x3df3b9=a192_0x490b6c;return resolveConfigPath(process[_0x3df3b9(0x8d)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x292816){const _0xa2992a=a192_0x490b6c;if(!existsSync(_0x292816))return{'status':'missing'};try{const _0x4e3cd3=readFileSync(_0x292816,{'encoding':'utf8'});if(!_0x4e3cd3?.['trim']())return{'status':'empty'};const _0x1c1ec2=JSON['parse'](_0x4e3cd3);return{'status':'ok','data':_0x1c1ec2};}catch(_0x13059b){return{'status':_0xa2992a(0x89),'message':_0x13059b instanceof Error?_0x13059b['message']:String(_0x13059b)};}}function parseCliConfigJsonFile(_0x261da8,_0x5cba2d,_0x36927c){const _0x464fb4=a192_0x490b6c,_0xb465e6=inspectCliConfigJsonFile(_0x261da8);if(_0xb465e6['status']===_0x464fb4(0x64)||_0xb465e6[_0x464fb4(0x74)]===_0x464fb4(0x78))return{};if(_0xb465e6['status']==='ok')return _0xb465e6[_0x464fb4(0x73)];return _0x5cba2d===_0x464fb4(0x72)&&_0x36927c&&console[_0x464fb4(0x89)](CLI_BIN_NAME+':\x20'+_0x36927c+_0x464fb4(0x6f)+_0x261da8+'\x0a\x20\x20'+_0xb465e6[_0x464fb4(0x87)]),{};}function normalizeLegacyConfigShape(_0xa32746){const _0x34bed9=a192_0x490b6c;if(!_0xa32746||typeof _0xa32746!==_0x34bed9(0x94))return{'config':{},'migrated':![]};const _0x2cc81c={..._0xa32746},_0x4ac02b=_0x2cc81c[_0x34bed9(0x7f)]&&typeof _0x2cc81c['apps']===_0x34bed9(0x94)?{..._0x2cc81c[_0x34bed9(0x7f)]}:{},_0x5e0fff=Object[_0x34bed9(0x79)](_0x4ac02b)[_0x34bed9(0x6c)],_0x48278c=_0x2cc81c[_0x34bed9(0x7c)]||_0x2cc81c[_0x34bed9(0x69)];let _0x2d8d72=![];if(_0x48278c&&_0x5e0fff===0x0){const _0x3b4124=typeof _0x2cc81c[_0x34bed9(0x70)]===_0x34bed9(0x8f)&&_0x2cc81c['defaultApp']['trim']()?_0x2cc81c[_0x34bed9(0x70)]:String(_0x48278c)[_0x34bed9(0x6a)]();_0x4ac02b[_0x3b4124]={'appcode':String(_0x48278c)['trim'](),..._0x2cc81c['env']!=null?{'env':_0x2cc81c[_0x34bed9(0x71)]}:{},..._0x2cc81c[_0x34bed9(0x6b)]!=null?{'apiDir':_0x2cc81c[_0x34bed9(0x6b)]}:{},..._0x2cc81c['cookie']!=null?{'cookie':_0x2cc81c[_0x34bed9(0x81)]}:{},..._0x2cc81c[_0x34bed9(0x67)]!=null?{'accessKey':_0x2cc81c[_0x34bed9(0x67)]}:{},..._0x2cc81c['format']!=null?{'format':_0x2cc81c[_0x34bed9(0x91)]}:{},..._0x2cc81c['pageSize']!=null?{'pageSize':_0x2cc81c[_0x34bed9(0x7a)]}:{},..._0x2cc81c[_0x34bed9(0x76)]!=null?{'riskLevel':_0x2cc81c['riskLevel']}:{},..._0x2cc81c['locale']!=null?{'locale':_0x2cc81c['locale']}:{}},_0x2cc81c['apps']=_0x4ac02b;if(!_0x2cc81c[_0x34bed9(0x70)])_0x2cc81c[_0x34bed9(0x70)]=_0x3b4124;_0x2d8d72=!![];}return(_0x34bed9(0x7c)in _0x2cc81c||_0x34bed9(0x69)in _0x2cc81c)&&(delete _0x2cc81c['appcode'],delete _0x2cc81c[_0x34bed9(0x69)],_0x2d8d72=!![]),{'config':_0x2cc81c,'migrated':_0x2d8d72};}function writeNormalizedConfigIfNeeded(_0x5219f4,_0x472e25){const _0xd13676=a192_0x490b6c,_0x3e1060=JSON[_0xd13676(0x68)](_0x472e25,null,0x2)+'\x0a';if(normalizedWriteCache[_0xd13676(0x8a)](_0x5219f4)===_0x3e1060)return;writeConfigFile(_0x5219f4,_0x472e25),normalizedWriteCache[_0xd13676(0x8b)](_0x5219f4,_0x3e1060);}function parseAndNormalizeConfig(_0x2e9857,_0x461042,_0x7aa062){const _0x396700=a192_0x490b6c,_0xcf1579=parseCliConfigJsonFile(_0x2e9857,_0x461042,_0x7aa062),_0x1430e5=normalizeLegacyConfigShape(_0xcf1579);if(_0x1430e5['migrated'])try{writeNormalizedConfigIfNeeded(_0x2e9857,_0x1430e5['config']);}catch{}return _0x1430e5[_0x396700(0x90)];}export function loadRawConfigLayers(_0x34d490){const _0x2d3b3d=a192_0x490b6c;let _0x83d592={},_0x161c4e={};const _0x4742af=resolveConfigPath(homedir());_0x4742af&&(_0x83d592=parseAndNormalizeConfig(_0x4742af,_0x2d3b3d(0x72),_0x2d3b3d(0x82)));const _0x3317ab=_0x34d490??findProjectRootDirectory(),_0xc63284=resolveConfigPath(_0x3317ab);return _0xc63284&&(_0x161c4e=parseAndNormalizeConfig(_0xc63284,_0x2d3b3d(0x72),_0x2d3b3d(0x84))),{'globalPath':_0x4742af,'projectPath':_0xc63284,'globalConfig':_0x83d592,'projectConfig':_0x161c4e};}const INHERIT_WHITELIST=[a192_0x490b6c(0x81),a192_0x490b6c(0x67),a192_0x490b6c(0x88),a192_0x490b6c(0x91),a192_0x490b6c(0x76),a192_0x490b6c(0x7a)];export function mergeRawConfigLayers(_0x21cca9){const _0x4e5ec7=a192_0x490b6c,{globalConfig:_0x493307,projectConfig:_0x30199c}=_0x21cca9,_0x4af5d9=Object[_0x4e5ec7(0x79)](_0x30199c)['length']>0x0;if(!_0x4af5d9)return mergeGlobalOnly(_0x493307);if(_0x30199c[_0x4e5ec7(0x75)]===!![])return mergeFullInherit(_0x493307,_0x30199c);if(_0x30199c[_0x4e5ec7(0x75)]===![])return mergeIsolated(_0x30199c);return mergeProjectFirst(_0x493307,_0x30199c);}function mergeGlobalOnly(_0x363455){const _0x1c4924=a192_0x490b6c,_0x4ee5cd={..._0x363455},_0x4fec2d=_0x363455['apps']&&typeof _0x363455[_0x1c4924(0x7f)]==='object'?_0x363455[_0x1c4924(0x7f)]:{};if(Object[_0x1c4924(0x79)](_0x4fec2d)[_0x1c4924(0x6c)]>0x0)_0x4ee5cd[_0x1c4924(0x7f)]=_0x4fec2d;if(_0x363455[_0x1c4924(0x70)])_0x4ee5cd[_0x1c4924(0x70)]=_0x363455[_0x1c4924(0x70)];else{const _0x4b15b0=Object[_0x1c4924(0x79)](_0x4fec2d);if(_0x4b15b0[_0x1c4924(0x6c)]>0x0)_0x4ee5cd['defaultApp']=_0x4b15b0[0x0];}return _0x4ee5cd;}function mergeIsolated(_0x574ea2){const _0x5a4680=a192_0x490b6c,_0x54b198={..._0x574ea2};delete _0x54b198['inherit'];const _0x2a3f4a=_0x574ea2[_0x5a4680(0x7f)]&&typeof _0x574ea2[_0x5a4680(0x7f)]===_0x5a4680(0x94)?_0x574ea2[_0x5a4680(0x7f)]:{};Object['keys'](_0x2a3f4a)[_0x5a4680(0x6c)]>0x0?_0x54b198['apps']=_0x2a3f4a:delete _0x54b198[_0x5a4680(0x7f)];if(_0x5a4680(0x70)in _0x574ea2)_0x54b198['defaultApp']=_0x574ea2[_0x5a4680(0x70)];else Object[_0x5a4680(0x79)](_0x2a3f4a)[_0x5a4680(0x6c)]>0x0?_0x54b198[_0x5a4680(0x70)]=Object[_0x5a4680(0x79)](_0x2a3f4a)[0x0]:delete _0x54b198[_0x5a4680(0x70)];return _0x54b198;}function mergeProjectFirst(_0x2e49c9,_0x2c7ec9){const _0x49e8d0=a192_0x490b6c,_0x180e56={..._0x2c7ec9};delete _0x180e56['inherit'];for(const _0x45d527 of INHERIT_WHITELIST){!(_0x45d527 in _0x180e56)&&_0x45d527 in _0x2e49c9&&(_0x180e56[_0x45d527]=_0x2e49c9[_0x45d527]);}const _0x297f7c=_0x2c7ec9[_0x49e8d0(0x7f)]&&typeof _0x2c7ec9['apps']==='object'?_0x2c7ec9[_0x49e8d0(0x7f)]:{};Object[_0x49e8d0(0x79)](_0x297f7c)[_0x49e8d0(0x6c)]>0x0?_0x180e56[_0x49e8d0(0x7f)]=_0x297f7c:delete _0x180e56['apps'];if(_0x49e8d0(0x70)in _0x2c7ec9)_0x180e56[_0x49e8d0(0x70)]=_0x2c7ec9[_0x49e8d0(0x70)];else Object[_0x49e8d0(0x79)](_0x297f7c)[_0x49e8d0(0x6c)]>0x0?_0x180e56[_0x49e8d0(0x70)]=Object[_0x49e8d0(0x79)](_0x297f7c)[0x0]:delete _0x180e56[_0x49e8d0(0x70)];return _0x180e56;}function mergeFullInherit(_0x419272,_0x2c0f87){const _0x43e90f=a192_0x490b6c,_0x514a27=_0x419272[_0x43e90f(0x7f)]&&typeof _0x419272[_0x43e90f(0x7f)]==='object'?_0x419272[_0x43e90f(0x7f)]:{},_0x428735=_0x2c0f87[_0x43e90f(0x7f)]&&typeof _0x2c0f87[_0x43e90f(0x7f)]===_0x43e90f(0x94)?_0x2c0f87[_0x43e90f(0x7f)]:{},_0x5c212f={..._0x514a27,..._0x428735},_0x243dee={..._0x419272,..._0x2c0f87};delete _0x243dee[_0x43e90f(0x75)];if(Object[_0x43e90f(0x79)](_0x5c212f)[_0x43e90f(0x6c)]>0x0)_0x243dee['apps']=_0x5c212f;if('defaultApp'in _0x2c0f87)_0x243dee[_0x43e90f(0x70)]=_0x2c0f87[_0x43e90f(0x70)];else{if(Object[_0x43e90f(0x79)](_0x428735)[_0x43e90f(0x6c)]>0x0)_0x243dee[_0x43e90f(0x70)]=Object[_0x43e90f(0x79)](_0x428735)[0x0];else{if(_0x419272[_0x43e90f(0x70)])_0x243dee[_0x43e90f(0x70)]=_0x419272[_0x43e90f(0x70)];else{const _0x11db7f=Object['keys'](_0x514a27);if(_0x11db7f[_0x43e90f(0x6c)]>0x0)_0x243dee[_0x43e90f(0x70)]=_0x11db7f[0x0];}}}return _0x243dee;}export function readRawConfigWithLayers(_0xc7e541){const _0xdcd5c6=loadRawConfigLayers(_0xc7e541);return{'config':mergeRawConfigLayers(_0xdcd5c6),'layers':_0xdcd5c6};}function a192_0x23e9(){const _0x1eb545=['silent','.rabetbase.json','object','missing','8aMPrbq','436967JXWZON','accessKey','stringify','app','trim','apiDir','length','utf8','.lovrabetrc','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','defaultApp','env','warn','data','status','inherit','riskLevel','13703180epdLAq','empty','keys','pageSize','2RkxPbV','appcode','.lovrabet.json','3448209pnSOIT','apps','9121851nFAqRz','cookie','Global','7154819kvRbSX','Project','6123786ODfZFo','859800ckuXor','message','locale','error','get','set','filter','cwd','10BzmATx','string','config','format'];a192_0x23e9=function(){return _0x1eb545;};return a192_0x23e9();}export function readRawConfig(_0x4a7496){return mergeRawConfigLayers(loadRawConfigLayers(_0x4a7496));}export function readConfigFile(_0x51955d){const _0x4c7a6a=a192_0x490b6c;return parseAndNormalizeConfig(_0x51955d,_0x4c7a6a(0x92));}export function writeConfigFile(_0x38cde9,_0x5cd881){const _0x398a41=a192_0x490b6c,_0x1a3ce9=dirname(_0x38cde9);!existsSync(_0x1a3ce9)&&mkdirSync(_0x1a3ce9,{'recursive':!![]});const _0x16ec03=_0x38cde9+'.tmp';try{writeFileSync(_0x16ec03,JSON[_0x398a41(0x68)](_0x5cd881,null,0x2)+'\x0a',{'encoding':_0x398a41(0x6d),'mode':0x180}),renameSync(_0x16ec03,_0x38cde9);}catch(_0x152358){try{unlinkSync(_0x16ec03);}catch{}throw _0x152358;}}export function resolveWriteConfigPath(_0x25c23a){const _0x20f73e=_0x25c23a==='project'?process['cwd']():homedir(),_0x58aab2=resolveConfigPath(_0x20f73e);return _0x58aab2??resolve(_0x20f73e,NEW_CONFIG_NAME);}
1
+ const a193_0x4804cb=a193_0x25e2;(function(_0x35a561,_0x56d840){const _0x1cdf39=a193_0x25e2,_0x3d1353=_0x35a561();while(!![]){try{const _0x257050=parseInt(_0x1cdf39(0xc4))/0x1+-parseInt(_0x1cdf39(0xcd))/0x2+parseInt(_0x1cdf39(0xd0))/0x3+-parseInt(_0x1cdf39(0xab))/0x4+parseInt(_0x1cdf39(0xba))/0x5+-parseInt(_0x1cdf39(0xd2))/0x6+parseInt(_0x1cdf39(0xc2))/0x7;if(_0x257050===_0x56d840)break;else _0x3d1353['push'](_0x3d1353['shift']());}catch(_0x169f6b){_0x3d1353['push'](_0x3d1353['shift']());}}}(a193_0x480d,0xba17f));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';function a193_0x25e2(_0x277176,_0x25f1fc){_0x277176=_0x277176-0xa9;const _0x480d4b=a193_0x480d();let _0x25e2aa=_0x480d4b[_0x277176];return _0x25e2aa;}import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a193_0x4804cb(0xbc);export const CONFIG_NAMES=[a193_0x4804cb(0xbc),a193_0x4804cb(0xb1),a193_0x4804cb(0xc5)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a193_0x4804cb(0xc3)](_0xd5a425=>_0xd5a425!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x37c175){for(const _0x3bacbc of CONFIG_NAMES){const _0x490eab=resolve(_0x37c175,_0x3bacbc);if(existsSync(_0x490eab))return _0x490eab;}return undefined;}export function findProjectRootDirectory(_0x40ea7f=process[a193_0x4804cb(0xc7)]()){let _0x4e2a2c=resolve(_0x40ea7f);const {root:_0x26ab99}=parse(_0x4e2a2c),_0x39d33f=homedir();while(!![]){if(resolveConfigPath(_0x4e2a2c)){if(_0x4e2a2c===_0x39d33f)break;return _0x4e2a2c;}if(_0x4e2a2c===_0x26ab99||_0x4e2a2c===_0x39d33f)break;const _0x50728d=dirname(_0x4e2a2c);if(_0x50728d===_0x4e2a2c)break;_0x4e2a2c=_0x50728d;}return resolve(_0x40ea7f);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}function a193_0x480d(){const _0x1541de=['missing','empty','trim','3817675wHOnSt','app','.rabetbase.json','project','string','accessKey','riskLevel','error','13626620GxzPCj','filter','682295DHPzhO','.lovrabetrc','apiDir','cwd','length','cookie','silent','Global','parse','1534792UMPawn','warn','locale','507981OUWUBO','config','3537114EtacYP','env','pageSize','stringify','message','5770652PbYKEU','apps','defaultApp','.tmp','utf8','inherit','.lovrabet.json','appcode','keys','format','object','status'];a193_0x480d=function(){return _0x1541de;};return a193_0x480d();}export function inspectCliConfigJsonFile(_0x4b41ec){const _0x112e7d=a193_0x4804cb;if(!existsSync(_0x4b41ec))return{'status':_0x112e7d(0xb7)};try{const _0x370300=readFileSync(_0x4b41ec,{'encoding':_0x112e7d(0xaf)});if(!_0x370300?.[_0x112e7d(0xb9)]())return{'status':_0x112e7d(0xb8)};const _0x470975=JSON[_0x112e7d(0xcc)](_0x370300);return{'status':'ok','data':_0x470975};}catch(_0x376977){return{'status':'error','message':_0x376977 instanceof Error?_0x376977[_0x112e7d(0xaa)]:String(_0x376977)};}}function parseCliConfigJsonFile(_0x5c30ee,_0x362a46,_0xe6d16f){const _0x24e6d9=a193_0x4804cb,_0x496c73=inspectCliConfigJsonFile(_0x5c30ee);if(_0x496c73[_0x24e6d9(0xb6)]===_0x24e6d9(0xb7)||_0x496c73[_0x24e6d9(0xb6)]===_0x24e6d9(0xb8))return{};if(_0x496c73['status']==='ok')return _0x496c73['data'];return _0x362a46===_0x24e6d9(0xce)&&_0xe6d16f&&console[_0x24e6d9(0xc1)](CLI_BIN_NAME+':\x20'+_0xe6d16f+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x5c30ee+'\x0a\x20\x20'+_0x496c73[_0x24e6d9(0xaa)]),{};}function normalizeLegacyConfigShape(_0x5270b4){const _0xf62cbc=a193_0x4804cb;if(!_0x5270b4||typeof _0x5270b4!==_0xf62cbc(0xb5))return{'config':{},'migrated':![]};const _0x2e9f7e={..._0x5270b4},_0x11e481=_0x2e9f7e['apps']&&typeof _0x2e9f7e[_0xf62cbc(0xac)]==='object'?{..._0x2e9f7e['apps']}:{},_0x182f67=Object[_0xf62cbc(0xb3)](_0x11e481)['length'],_0x5458d3=_0x2e9f7e[_0xf62cbc(0xb2)]||_0x2e9f7e['app'];let _0x5e6370=![];if(_0x5458d3&&_0x182f67===0x0){const _0x1b36df=typeof _0x2e9f7e[_0xf62cbc(0xad)]===_0xf62cbc(0xbe)&&_0x2e9f7e[_0xf62cbc(0xad)][_0xf62cbc(0xb9)]()?_0x2e9f7e['defaultApp']:String(_0x5458d3)[_0xf62cbc(0xb9)]();_0x11e481[_0x1b36df]={'appcode':String(_0x5458d3)[_0xf62cbc(0xb9)](),..._0x2e9f7e[_0xf62cbc(0xd3)]!=null?{'env':_0x2e9f7e[_0xf62cbc(0xd3)]}:{},..._0x2e9f7e[_0xf62cbc(0xc6)]!=null?{'apiDir':_0x2e9f7e[_0xf62cbc(0xc6)]}:{},..._0x2e9f7e[_0xf62cbc(0xc9)]!=null?{'cookie':_0x2e9f7e[_0xf62cbc(0xc9)]}:{},..._0x2e9f7e[_0xf62cbc(0xbf)]!=null?{'accessKey':_0x2e9f7e['accessKey']}:{},..._0x2e9f7e[_0xf62cbc(0xb4)]!=null?{'format':_0x2e9f7e[_0xf62cbc(0xb4)]}:{},..._0x2e9f7e['pageSize']!=null?{'pageSize':_0x2e9f7e[_0xf62cbc(0xd4)]}:{},..._0x2e9f7e[_0xf62cbc(0xc0)]!=null?{'riskLevel':_0x2e9f7e['riskLevel']}:{},..._0x2e9f7e[_0xf62cbc(0xcf)]!=null?{'locale':_0x2e9f7e[_0xf62cbc(0xcf)]}:{}},_0x2e9f7e[_0xf62cbc(0xac)]=_0x11e481;if(!_0x2e9f7e[_0xf62cbc(0xad)])_0x2e9f7e[_0xf62cbc(0xad)]=_0x1b36df;_0x5e6370=!![];}return(_0xf62cbc(0xb2)in _0x2e9f7e||_0xf62cbc(0xbb)in _0x2e9f7e)&&(delete _0x2e9f7e[_0xf62cbc(0xb2)],delete _0x2e9f7e['app'],_0x5e6370=!![]),{'config':_0x2e9f7e,'migrated':_0x5e6370};}function writeNormalizedConfigIfNeeded(_0x2312fe,_0x4a3801){const _0x114c49=a193_0x4804cb,_0x4a58af=JSON[_0x114c49(0xa9)](_0x4a3801,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x2312fe)===_0x4a58af)return;writeConfigFile(_0x2312fe,_0x4a3801),normalizedWriteCache['set'](_0x2312fe,_0x4a58af);}function parseAndNormalizeConfig(_0x1e2418,_0x9b47d5,_0x30be96){const _0x387cda=a193_0x4804cb,_0xc77adf=parseCliConfigJsonFile(_0x1e2418,_0x9b47d5,_0x30be96),_0x3db30a=normalizeLegacyConfigShape(_0xc77adf);if(_0x3db30a['migrated'])try{writeNormalizedConfigIfNeeded(_0x1e2418,_0x3db30a[_0x387cda(0xd1)]);}catch{}return _0x3db30a[_0x387cda(0xd1)];}export function loadRawConfigLayers(_0x2e39fd){const _0x4b132e=a193_0x4804cb;let _0x21eecb={},_0x4de134={};const _0x4559b2=resolveConfigPath(homedir());_0x4559b2&&(_0x21eecb=parseAndNormalizeConfig(_0x4559b2,_0x4b132e(0xce),_0x4b132e(0xcb)));const _0x1f9517=_0x2e39fd??findProjectRootDirectory(),_0x5ccae2=resolveConfigPath(_0x1f9517);return _0x5ccae2&&(_0x4de134=parseAndNormalizeConfig(_0x5ccae2,'warn','Project')),{'globalPath':_0x4559b2,'projectPath':_0x5ccae2,'globalConfig':_0x21eecb,'projectConfig':_0x4de134};}const INHERIT_WHITELIST=['cookie',a193_0x4804cb(0xbf),a193_0x4804cb(0xcf),a193_0x4804cb(0xb4),'riskLevel',a193_0x4804cb(0xd4)];export function mergeRawConfigLayers(_0x2d74a3){const _0x20cb17=a193_0x4804cb,{globalConfig:_0x23571f,projectConfig:_0x4e2932}=_0x2d74a3,_0x4849b1=Object[_0x20cb17(0xb3)](_0x4e2932)[_0x20cb17(0xc8)]>0x0;if(!_0x4849b1)return mergeGlobalOnly(_0x23571f);if(_0x4e2932['inherit']===!![])return mergeFullInherit(_0x23571f,_0x4e2932);if(_0x4e2932[_0x20cb17(0xb0)]===![])return mergeIsolated(_0x4e2932);return mergeProjectFirst(_0x23571f,_0x4e2932);}function mergeGlobalOnly(_0x153225){const _0x5dd11b=a193_0x4804cb,_0x2f8fcc={..._0x153225},_0xc04414=_0x153225[_0x5dd11b(0xac)]&&typeof _0x153225['apps']===_0x5dd11b(0xb5)?_0x153225[_0x5dd11b(0xac)]:{};if(Object['keys'](_0xc04414)[_0x5dd11b(0xc8)]>0x0)_0x2f8fcc[_0x5dd11b(0xac)]=_0xc04414;if(_0x153225[_0x5dd11b(0xad)])_0x2f8fcc['defaultApp']=_0x153225[_0x5dd11b(0xad)];else{const _0x3250b0=Object['keys'](_0xc04414);if(_0x3250b0[_0x5dd11b(0xc8)]>0x0)_0x2f8fcc['defaultApp']=_0x3250b0[0x0];}return _0x2f8fcc;}function mergeIsolated(_0x57eeeb){const _0xa1cc06=a193_0x4804cb,_0x3788af={..._0x57eeeb};delete _0x3788af[_0xa1cc06(0xb0)];const _0x248bff=_0x57eeeb[_0xa1cc06(0xac)]&&typeof _0x57eeeb[_0xa1cc06(0xac)]===_0xa1cc06(0xb5)?_0x57eeeb[_0xa1cc06(0xac)]:{};Object[_0xa1cc06(0xb3)](_0x248bff)['length']>0x0?_0x3788af['apps']=_0x248bff:delete _0x3788af[_0xa1cc06(0xac)];if(_0xa1cc06(0xad)in _0x57eeeb)_0x3788af['defaultApp']=_0x57eeeb[_0xa1cc06(0xad)];else Object['keys'](_0x248bff)[_0xa1cc06(0xc8)]>0x0?_0x3788af[_0xa1cc06(0xad)]=Object[_0xa1cc06(0xb3)](_0x248bff)[0x0]:delete _0x3788af['defaultApp'];return _0x3788af;}function mergeProjectFirst(_0x2013ec,_0x5abd78){const _0x1fae82=a193_0x4804cb,_0x32d14a={..._0x5abd78};delete _0x32d14a[_0x1fae82(0xb0)];for(const _0x4248ee of INHERIT_WHITELIST){!(_0x4248ee in _0x32d14a)&&_0x4248ee in _0x2013ec&&(_0x32d14a[_0x4248ee]=_0x2013ec[_0x4248ee]);}const _0x44edad=_0x5abd78[_0x1fae82(0xac)]&&typeof _0x5abd78[_0x1fae82(0xac)]==='object'?_0x5abd78[_0x1fae82(0xac)]:{};Object[_0x1fae82(0xb3)](_0x44edad)[_0x1fae82(0xc8)]>0x0?_0x32d14a[_0x1fae82(0xac)]=_0x44edad:delete _0x32d14a[_0x1fae82(0xac)];if(_0x1fae82(0xad)in _0x5abd78)_0x32d14a[_0x1fae82(0xad)]=_0x5abd78['defaultApp'];else Object[_0x1fae82(0xb3)](_0x44edad)[_0x1fae82(0xc8)]>0x0?_0x32d14a[_0x1fae82(0xad)]=Object['keys'](_0x44edad)[0x0]:delete _0x32d14a['defaultApp'];return _0x32d14a;}function mergeFullInherit(_0xb628eb,_0x547913){const _0x37a295=a193_0x4804cb,_0x139dfc=_0xb628eb[_0x37a295(0xac)]&&typeof _0xb628eb[_0x37a295(0xac)]==='object'?_0xb628eb[_0x37a295(0xac)]:{},_0x43a2ad=_0x547913[_0x37a295(0xac)]&&typeof _0x547913[_0x37a295(0xac)]===_0x37a295(0xb5)?_0x547913[_0x37a295(0xac)]:{},_0x285136={..._0x139dfc,..._0x43a2ad},_0x4b4305={..._0xb628eb,..._0x547913};delete _0x4b4305[_0x37a295(0xb0)];if(Object[_0x37a295(0xb3)](_0x285136)[_0x37a295(0xc8)]>0x0)_0x4b4305[_0x37a295(0xac)]=_0x285136;if(_0x37a295(0xad)in _0x547913)_0x4b4305['defaultApp']=_0x547913[_0x37a295(0xad)];else{if(Object[_0x37a295(0xb3)](_0x43a2ad)['length']>0x0)_0x4b4305[_0x37a295(0xad)]=Object[_0x37a295(0xb3)](_0x43a2ad)[0x0];else{if(_0xb628eb[_0x37a295(0xad)])_0x4b4305[_0x37a295(0xad)]=_0xb628eb[_0x37a295(0xad)];else{const _0xb6f3fc=Object['keys'](_0x139dfc);if(_0xb6f3fc[_0x37a295(0xc8)]>0x0)_0x4b4305[_0x37a295(0xad)]=_0xb6f3fc[0x0];}}}return _0x4b4305;}export function readRawConfigWithLayers(_0x248044){const _0xa853b=loadRawConfigLayers(_0x248044);return{'config':mergeRawConfigLayers(_0xa853b),'layers':_0xa853b};}export function readRawConfig(_0x4dd3e5){return mergeRawConfigLayers(loadRawConfigLayers(_0x4dd3e5));}export function readConfigFile(_0x516832){const _0x37970a=a193_0x4804cb;return parseAndNormalizeConfig(_0x516832,_0x37970a(0xca));}export function writeConfigFile(_0x2a0f90,_0x4fccbb){const _0x340ca4=a193_0x4804cb,_0xb053a3=dirname(_0x2a0f90);!existsSync(_0xb053a3)&&mkdirSync(_0xb053a3,{'recursive':!![]});const _0x3ce688=_0x2a0f90+_0x340ca4(0xae);try{writeFileSync(_0x3ce688,JSON[_0x340ca4(0xa9)](_0x4fccbb,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x3ce688,_0x2a0f90);}catch(_0x50e84f){try{unlinkSync(_0x3ce688);}catch{}throw _0x50e84f;}}export function resolveWriteConfigPath(_0x470465){const _0x1e8fe7=a193_0x4804cb,_0xe308a2=_0x470465===_0x1e8fe7(0xbd)?process['cwd']():homedir(),_0x25ff2e=resolveConfigPath(_0xe308a2);return _0x25ff2e??resolve(_0xe308a2,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a193_0x1a3be3=a193_0x35d5;(function(_0x4bf016,_0x53862a){const _0x5892bf=a193_0x35d5,_0x2e7e40=_0x4bf016();while(!![]){try{const _0x3f2366=-parseInt(_0x5892bf(0x15b))/0x1*(parseInt(_0x5892bf(0x14e))/0x2)+parseInt(_0x5892bf(0x13c))/0x3*(-parseInt(_0x5892bf(0x145))/0x4)+parseInt(_0x5892bf(0x154))/0x5*(-parseInt(_0x5892bf(0x136))/0x6)+parseInt(_0x5892bf(0x13b))/0x7*(-parseInt(_0x5892bf(0x157))/0x8)+parseInt(_0x5892bf(0x152))/0x9+-parseInt(_0x5892bf(0x13e))/0xa+parseInt(_0x5892bf(0x15a))/0xb;if(_0x3f2366===_0x53862a)break;else _0x2e7e40['push'](_0x2e7e40['shift']());}catch(_0x133e30){_0x2e7e40['push'](_0x2e7e40['shift']());}}}(a193_0x4266,0x4912a));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a193_0x35d5(_0x18e208,_0x3e7dc7){_0x18e208=_0x18e208-0x136;const _0x426635=a193_0x4266();let _0x35d531=_0x426635[_0x18e208];return _0x35d531;}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(_0x222b39){return process.env[`RABETBASE_${_0x222b39}`]||process.env[`LOVRABET_${_0x222b39}`]||undefined;}export async function createContext(_0x36323f){const _0x367fbb=a193_0x35d5,{config:_0x1440eb,layers:_0x4b9c78}=readRawConfigWithLayers(),_0x1bd78a=buildConfig(_0x1440eb,_0x36323f,_0x4b9c78),{initEnv:_0x28d673}=await import(_0x367fbb(0x143));if(_0x1bd78a[_0x367fbb(0x155)])_0x28d673(_0x1bd78a[_0x367fbb(0x155)]);else _0x36323f['env']&&typeof _0x36323f[_0x367fbb(0x155)]==='string'&&_0x28d673(_0x36323f[_0x367fbb(0x155)]);const {initDomains:_0x2a81c3,getUserDomain:_0x2c41d3,getApiDomain:_0x40bc8b}=await import(_0x367fbb(0x149));_0x2a81c3({'apiDomain':_0x1440eb[_0x367fbb(0x141)]||undefined,'userDomain':_0x1440eb[_0x367fbb(0x14b)]||undefined,'runtimeDomain':_0x1440eb[_0x367fbb(0x137)]||undefined});const _0x3cdec2={'apiDomain':_0x40bc8b(),'userDomain':_0x2c41d3()},_0x2fafa6=await buildAuth(_0x1bd78a);logger['setLogPath'](process[_0x367fbb(0x150)]());const _0x12cfa5=(CLI_BIN_NAME+'\x20'+process[_0x367fbb(0x138)]['slice'](0x2)[_0x367fbb(0x147)]('\x20'))['trim']();logger[_0x367fbb(0x153)](_0x12cfa5);const {isNonInteractive:_0x1faa47}=await import(_0x367fbb(0x148)),_0x128710=_0x1faa47(_0x36323f);return{'config':_0x1bd78a,'auth':_0x2fafa6,'logger':logger,'env':_0x3cdec2,'nonInteractive':_0x128710};}export function buildConfigFromFlags(_0x148435){const {config:_0x260ffd,layers:_0x3081e3}=readRawConfigWithLayers();return buildConfig(_0x260ffd,_0x148435,_0x3081e3);}export function getConfigAppCode(_0x360889){const _0x422b3a=a193_0x35d5,_0xda09d2=readRawConfig(_0x360889);if(_0xda09d2[_0x422b3a(0x156)]&&typeof _0xda09d2[_0x422b3a(0x156)]===_0x422b3a(0x13d)){const _0x92138c=_0xda09d2[_0x422b3a(0x144)];if(_0x92138c&&_0xda09d2[_0x422b3a(0x156)][_0x92138c]?.['appcode'])return String(_0xda09d2[_0x422b3a(0x156)][_0x92138c]['appcode'])[_0x422b3a(0x151)]();const _0x3bccee=Object[_0x422b3a(0x140)](_0xda09d2['apps'])[0x0];if(_0x3bccee?.[_0x422b3a(0x146)])return String(_0x3bccee[_0x422b3a(0x146)])[_0x422b3a(0x151)]();}const _0x451d98=_0xda09d2[_0x422b3a(0x146)]||_0xda09d2['app'];if(typeof _0x451d98!==_0x422b3a(0x14d)||_0x451d98['trim']()==='')return undefined;return _0x451d98[_0x422b3a(0x151)]();}export function getMultiAppConfigs(_0x1e5e64=a193_0x1a3be3(0x13f),_0x389860){const _0x17d09e=a193_0x1a3be3,_0x370ec3=loadRawConfigLayers(_0x389860);let _0x785ed5,_0x392a1c;if(_0x1e5e64==='merged'){const _0x4937e6=_0x370ec3[_0x17d09e(0x15c)][_0x17d09e(0x156)]&&typeof _0x370ec3[_0x17d09e(0x15c)][_0x17d09e(0x156)]===_0x17d09e(0x13d)?_0x370ec3[_0x17d09e(0x15c)][_0x17d09e(0x156)]:{},_0x523d12=_0x370ec3[_0x17d09e(0x142)][_0x17d09e(0x156)]&&typeof _0x370ec3['projectConfig'][_0x17d09e(0x156)]==='object'?_0x370ec3[_0x17d09e(0x142)][_0x17d09e(0x156)]:{};_0x785ed5={..._0x4937e6,..._0x523d12};const _0x5118cf=readRawConfig(_0x389860);_0x392a1c=_0x5118cf[_0x17d09e(0x144)];}else _0x785ed5=_0x370ec3['projectConfig'][_0x17d09e(0x156)],_0x392a1c=_0x370ec3[_0x17d09e(0x142)][_0x17d09e(0x144)];if(!_0x785ed5||typeof _0x785ed5!==_0x17d09e(0x13d)||Object[_0x17d09e(0x158)](_0x785ed5)['length']===0x0)return null;return Object[_0x17d09e(0x159)](_0x785ed5)[_0x17d09e(0x14a)](([_0x40ef55,_0x46fc9f])=>({'name':_0x40ef55,'appcode':_0x46fc9f?.[_0x17d09e(0x146)]||'','isDefault':_0x40ef55===_0x392a1c,'env':_0x46fc9f?.[_0x17d09e(0x155)],'apiDir':_0x46fc9f?.['apiDir'],'cookie':_0x46fc9f?.[_0x17d09e(0x14c)]||undefined}))[_0x17d09e(0x139)](_0x9f23a=>_0x9f23a[_0x17d09e(0x146)]);}export function getTemplateBaseUrl(_0x21cfb6){const _0x439168=a193_0x1a3be3,_0x54dbe6=readRawConfig(_0x21cfb6);if(_0x54dbe6[_0x439168(0x13a)]&&typeof _0x54dbe6[_0x439168(0x13a)]===_0x439168(0x14d))return _0x54dbe6[_0x439168(0x13a)][_0x439168(0x14f)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function a193_0x4266(){const _0x52d13d=['setRawCommand','965885rBkfeM','env','apps','1003448PGpfXG','keys','entries','13615426QSWXao','4TyOOet','globalConfig','12EhBupD','runtimeDomain','argv','filter','template_base_url','21UiaznP','429TtRdsl','object','2233590AJMaRO','project','values','apiDomain','projectConfig','./constant/env.js','defaultApp','884KFUDfY','appcode','join','./utils/is-non-interactive.js','./constant/domain.js','map','userDomain','cookie','string','188082nJxgeA','replace','cwd','trim','4097817mkhboj'];a193_0x4266=function(){return _0x52d13d;};return a193_0x4266();}function buildConfig(_0x26c04f,_0xc77bb8,_0x1c68f5){return{...resolveAppConfig({'raw':_0x26c04f,'flags':_0xc77bb8,'layers':_0x1c68f5,'readEnv':env}),'raw':_0x26c04f};}export function resolveApiFilePath(_0x2fe2bf,_0x207d99){const _0xa7c086=a193_0x1a3be3,_0x37f8c6=resolve(process[_0xa7c086(0x150)](),_0x2fe2bf),_0x31f2e4=resolve(_0x37f8c6,'api.ts');if(!_0x207d99)return _0x31f2e4;const _0x536462=readRawConfig(),_0x428b43=_0x536462[_0xa7c086(0x156)]&&typeof _0x536462[_0xa7c086(0x156)]===_0xa7c086(0x13d)?_0x536462['apps']:{},_0x1ec1aa=Object['entries'](_0x428b43)['find'](([,_0x1b37ea])=>_0x1b37ea?.[_0xa7c086(0x146)]===_0x207d99);if(!_0x1ec1aa)return _0x31f2e4;const [_0x2d5fae,_0x31584e]=_0x1ec1aa,_0x41ade0=typeof _0x536462[_0xa7c086(0x144)]===_0xa7c086(0x14d)?_0x536462[_0xa7c086(0x144)]:undefined;if(_0x31584e?.['apiDir'])return _0x31f2e4;if(_0x41ade0&&_0x2d5fae!==_0x41ade0)return resolve(_0x37f8c6,_0x2d5fae+'-api.ts');return _0x31f2e4;}
1
+ const a194_0x3715f3=a194_0x58f4;(function(_0x54603a,_0x1fa6f3){const _0x3a6a5d=a194_0x58f4,_0x511850=_0x54603a();while(!![]){try{const _0x3ea690=-parseInt(_0x3a6a5d(0xea))/0x1*(-parseInt(_0x3a6a5d(0xf5))/0x2)+parseInt(_0x3a6a5d(0xf9))/0x3+-parseInt(_0x3a6a5d(0xde))/0x4+-parseInt(_0x3a6a5d(0xe2))/0x5+parseInt(_0x3a6a5d(0xe1))/0x6+-parseInt(_0x3a6a5d(0x100))/0x7+parseInt(_0x3a6a5d(0xf1))/0x8;if(_0x3ea690===_0x1fa6f3)break;else _0x511850['push'](_0x511850['shift']());}catch(_0x487ef5){_0x511850['push'](_0x511850['shift']());}}}(a194_0x1250,0x33ec8));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,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(_0x3d034d){return process.env[`RABETBASE_${_0x3d034d}`]||process.env[`LOVRABET_${_0x3d034d}`]||undefined;}export async function createContext(_0x436912){const _0x18e173=a194_0x58f4,{config:_0x4d26f6,layers:_0x87e5a}=readRawConfigWithLayers(),_0x4e8f07=buildConfig(_0x4d26f6,_0x436912,_0x87e5a),{initEnv:_0x22f6b2}=await import(_0x18e173(0xe9));if(_0x4e8f07['env'])_0x22f6b2(_0x4e8f07[_0x18e173(0xfc)]);else _0x436912[_0x18e173(0xfc)]&&typeof _0x436912[_0x18e173(0xfc)]===_0x18e173(0xeb)&&_0x22f6b2(_0x436912[_0x18e173(0xfc)]);const {initDomains:_0x107411,getUserDomain:_0x1473a1,getApiDomain:_0x21e743}=await import(_0x18e173(0xfb));_0x107411({'apiDomain':_0x4d26f6[_0x18e173(0xf6)]||undefined,'userDomain':_0x4d26f6[_0x18e173(0xf0)]||undefined,'runtimeDomain':_0x4d26f6[_0x18e173(0xe7)]||undefined});const _0x1a1630={'apiDomain':_0x21e743(),'userDomain':_0x1473a1()},_0x147d5c=await buildAuth(_0x4e8f07);logger[_0x18e173(0x101)](process[_0x18e173(0xe5)]());const _0x4d1945=(CLI_BIN_NAME+'\x20'+process[_0x18e173(0xee)][_0x18e173(0x103)](0x2)[_0x18e173(0xe6)]('\x20'))[_0x18e173(0xe4)]();logger[_0x18e173(0x106)](_0x4d1945);const {isNonInteractive:_0x522b56}=await import(_0x18e173(0xed)),_0x44ac96=_0x522b56(_0x436912);return{'config':_0x4e8f07,'auth':_0x147d5c,'logger':logger,'env':_0x1a1630,'nonInteractive':_0x44ac96};}export function buildConfigFromFlags(_0x281e43){const {config:_0x28d0b3,layers:_0x59e5e9}=readRawConfigWithLayers();return buildConfig(_0x28d0b3,_0x281e43,_0x59e5e9);}function a194_0x58f4(_0x2bbe5a,_0x3af53d){_0x2bbe5a=_0x2bbe5a-0xde;const _0x1250f0=a194_0x1250();let _0x58f43d=_0x1250f0[_0x2bbe5a];return _0x58f43d;}export function getConfigAppCode(_0x1c98a9){const _0x258f1d=a194_0x58f4,_0xefd601=readRawConfig(_0x1c98a9);if(_0xefd601['apps']&&typeof _0xefd601[_0x258f1d(0x105)]===_0x258f1d(0xfd)){const _0x5795f8=_0xefd601[_0x258f1d(0xdf)];if(_0x5795f8&&_0xefd601[_0x258f1d(0x105)][_0x5795f8]?.[_0x258f1d(0xe8)])return String(_0xefd601[_0x258f1d(0x105)][_0x5795f8]['appcode'])['trim']();const _0x122e5b=Object[_0x258f1d(0xff)](_0xefd601['apps'])[0x0];if(_0x122e5b?.[_0x258f1d(0xe8)])return String(_0x122e5b['appcode'])[_0x258f1d(0xe4)]();}const _0x4f8563=_0xefd601[_0x258f1d(0xe8)]||_0xefd601[_0x258f1d(0xf3)];if(typeof _0x4f8563!==_0x258f1d(0xeb)||_0x4f8563[_0x258f1d(0xe4)]()==='')return undefined;return _0x4f8563['trim']();}export function getMultiAppConfigs(_0x30bdaf=a194_0x3715f3(0xef),_0x2d8547){const _0x1804cc=a194_0x3715f3,_0x2bead5=loadRawConfigLayers(_0x2d8547);let _0x495777,_0xfb850f;if(_0x30bdaf===_0x1804cc(0xfa)){const _0x4e65d7=_0x2bead5[_0x1804cc(0x104)][_0x1804cc(0x105)]&&typeof _0x2bead5[_0x1804cc(0x104)][_0x1804cc(0x105)]==='object'?_0x2bead5['globalConfig'][_0x1804cc(0x105)]:{},_0xaba0b=_0x2bead5['projectConfig']['apps']&&typeof _0x2bead5['projectConfig'][_0x1804cc(0x105)]===_0x1804cc(0xfd)?_0x2bead5['projectConfig'][_0x1804cc(0x105)]:{};_0x495777={..._0x4e65d7,..._0xaba0b};const _0x490a9a=readRawConfig(_0x2d8547);_0xfb850f=_0x490a9a[_0x1804cc(0xdf)];}else _0x495777=_0x2bead5[_0x1804cc(0xf8)][_0x1804cc(0x105)],_0xfb850f=_0x2bead5[_0x1804cc(0xf8)]['defaultApp'];if(!_0x495777||typeof _0x495777!==_0x1804cc(0xfd)||Object[_0x1804cc(0xf4)](_0x495777)['length']===0x0)return null;return Object[_0x1804cc(0xe0)](_0x495777)[_0x1804cc(0xec)](([_0x2b8dca,_0x2b090c])=>({'name':_0x2b8dca,'appcode':_0x2b090c?.[_0x1804cc(0xe8)]||'','isDefault':_0x2b8dca===_0xfb850f,'env':_0x2b090c?.['env'],'apiDir':_0x2b090c?.[_0x1804cc(0xf2)],'cookie':_0x2b090c?.['cookie']||undefined}))['filter'](_0x222bb7=>_0x222bb7[_0x1804cc(0xe8)]);}function a194_0x1250(){const _0xb250c4=['304524TVqyuO','merged','./constant/domain.js','env','object','replace','values','1334767CBCWea','setLogPath','https://g.lovrabet.com/dist/lovrabet-skill','slice','globalConfig','apps','setRawCommand','419896QQGRtf','defaultApp','entries','2033694AkltHd','1462675IjQNcr','template_base_url','trim','cwd','join','runtimeDomain','appcode','./constant/env.js','10CdyUML','string','map','./utils/is-non-interactive.js','argv','project','userDomain','1264184gZJJWI','apiDir','app','keys','40478jYCdmc','apiDomain','-api.ts','projectConfig'];a194_0x1250=function(){return _0xb250c4;};return a194_0x1250();}export function getTemplateBaseUrl(_0xcd492a){const _0x5aeee8=a194_0x3715f3,_0xa6a817=readRawConfig(_0xcd492a);if(_0xa6a817[_0x5aeee8(0xe3)]&&typeof _0xa6a817['template_base_url']===_0x5aeee8(0xeb))return _0xa6a817[_0x5aeee8(0xe3)][_0x5aeee8(0xfe)](/\/$/,'');return _0x5aeee8(0x102);}function buildConfig(_0x2a1652,_0x85a373,_0xe42cf8){return{...resolveAppConfig({'raw':_0x2a1652,'flags':_0x85a373,'layers':_0xe42cf8,'readEnv':env}),'raw':_0x2a1652};}export function resolveApiFilePath(_0x409dac,_0x46fb47){const _0x38018c=a194_0x3715f3,_0x4788b3=resolve(process[_0x38018c(0xe5)](),_0x409dac),_0x1a4dcd=resolve(_0x4788b3,'api.ts');if(!_0x46fb47)return _0x1a4dcd;const _0xa2f1c0=readRawConfig(),_0x479856=_0xa2f1c0[_0x38018c(0x105)]&&typeof _0xa2f1c0[_0x38018c(0x105)]==='object'?_0xa2f1c0[_0x38018c(0x105)]:{},_0x32c28d=Object[_0x38018c(0xe0)](_0x479856)['find'](([,_0x292c01])=>_0x292c01?.['appcode']===_0x46fb47);if(!_0x32c28d)return _0x1a4dcd;const [_0x1a467b,_0x4cc97f]=_0x32c28d,_0x259a50=typeof _0xa2f1c0[_0x38018c(0xdf)]===_0x38018c(0xeb)?_0xa2f1c0[_0x38018c(0xdf)]:undefined;if(_0x4cc97f?.[_0x38018c(0xf2)])return _0x1a4dcd;if(_0x259a50&&_0x1a467b!==_0x259a50)return resolve(_0x4788b3,_0x1a467b+_0x38018c(0xf7));return _0x1a4dcd;}
@@ -1 +1 @@
1
- (function(_0x21957e,_0x4c9e79){const _0x4fc045=a194_0x1fc8,_0x4d97d3=_0x21957e();while(!![]){try{const _0x20a431=-parseInt(_0x4fc045(0x13c))/0x1+-parseInt(_0x4fc045(0x13a))/0x2+-parseInt(_0x4fc045(0x145))/0x3*(-parseInt(_0x4fc045(0x13d))/0x4)+parseInt(_0x4fc045(0x147))/0x5*(-parseInt(_0x4fc045(0x144))/0x6)+-parseInt(_0x4fc045(0x13f))/0x7+-parseInt(_0x4fc045(0x139))/0x8*(-parseInt(_0x4fc045(0x136))/0x9)+parseInt(_0x4fc045(0x141))/0xa*(parseInt(_0x4fc045(0x142))/0xb);if(_0x20a431===_0x4c9e79)break;else _0x4d97d3['push'](_0x4d97d3['shift']());}catch(_0x41048d){_0x4d97d3['push'](_0x4d97d3['shift']());}}}(a194_0x1696,0x9a7ba));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a194_0x1fc8(_0x32aed5,_0x4e6895){_0x32aed5=_0x32aed5-0x136;const _0x1696b0=a194_0x1696();let _0x1fc885=_0x1696b0[_0x32aed5];return _0x1fc885;}const cache=new Map();function parseApiFile(_0x318d8b){const _0x23eb39=a194_0x1fc8,_0x51e0fa=[],_0x372c85=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x92e0be;while((_0x92e0be=_0x372c85[_0x23eb39(0x146)](_0x318d8b))!==null){_0x51e0fa['push']({'datasetCode':_0x92e0be[0x1],'tableName':_0x92e0be[0x2],'name':_0x92e0be[0x3],'alias':_0x92e0be[0x4]});}return _0x51e0fa;}export function loadAliasMap(_0x31453e,_0x1a3792,_0xb6ed37){const _0x594d26=a194_0x1fc8,_0x24d554=_0xb6ed37??resolve(process[_0x594d26(0x13e)](),_0x31453e,_0x594d26(0x140));if(cache['has'](_0x24d554))return cache[_0x594d26(0x138)](_0x24d554);if(!existsSync(_0x24d554))return cache['set'](_0x24d554,[]),[];try{const _0x4c3210=readFileSync(_0x24d554,_0x594d26(0x13b)),_0x469dfa=parseApiFile(_0x4c3210);return cache[_0x594d26(0x143)](_0x24d554,_0x469dfa),_0x469dfa;}catch{return cache[_0x594d26(0x143)](_0x24d554,[]),[];}}export function resolveAlias(_0x39c2e,_0xcca0bd,_0x9d187b,_0x4e636a){const _0x1f0717=a194_0x1fc8;if(!_0xcca0bd)return undefined;const _0x1da176=loadAliasMap(_0x39c2e,_0x9d187b,_0x4e636a),_0x544995=_0x1da176['find'](_0x5e1a63=>_0x5e1a63[_0x1f0717(0x148)]===_0xcca0bd);return _0x544995?.[_0x1f0717(0x137)];}export function listAliases(_0x277589,_0x4a87a3,_0x29a057){return loadAliasMap(_0x277589,_0x4a87a3,_0x29a057);}function a194_0x1696(){const _0x2f4e87=['alias','1080927MbdLAV','datasetCode','get','40uciAeb','313664jYjGNE','utf-8','340315HafaYt','3550436RRtJje','cwd','1647527taRBdl','api.ts','12080iZAxXQ','1001wOHFCl','set','66uIOCmj','3tSQfSR','exec','105810MSRLKd'];a194_0x1696=function(){return _0x2f4e87;};return a194_0x1696();}
1
+ (function(_0x4ff0d1,_0x4126a4){const _0x4be80c=a195_0x5120,_0x438d76=_0x4ff0d1();while(!![]){try{const _0x1051c2=parseInt(_0x4be80c(0xe7))/0x1*(parseInt(_0x4be80c(0xf4))/0x2)+-parseInt(_0x4be80c(0xeb))/0x3+parseInt(_0x4be80c(0xe5))/0x4+parseInt(_0x4be80c(0xe3))/0x5+parseInt(_0x4be80c(0xe8))/0x6+parseInt(_0x4be80c(0xe6))/0x7+-parseInt(_0x4be80c(0xe9))/0x8;if(_0x1051c2===_0x4126a4)break;else _0x438d76['push'](_0x438d76['shift']());}catch(_0x28bfb7){_0x438d76['push'](_0x438d76['shift']());}}}(a195_0x4636,0xacaec));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x5c5a6c){const _0x234481=a195_0x5120,_0xdbfb6a=[],_0x50f34d=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x217096;while((_0x217096=_0x50f34d[_0x234481(0xe4)](_0x5c5a6c))!==null){_0xdbfb6a[_0x234481(0xf0)]({'datasetCode':_0x217096[0x1],'tableName':_0x217096[0x2],'name':_0x217096[0x3],'alias':_0x217096[0x4]});}return _0xdbfb6a;}function a195_0x4636(){const _0x10f459=['5410032VabqnR','115962rWzusQ','7rRzHav','6424188ofSQbw','19995528LsNXsC','has','2299827HzwTbK','utf-8','cwd','find','get','push','alias','datasetCode','set','369302IrLPLs','1205145XNurcy','exec'];a195_0x4636=function(){return _0x10f459;};return a195_0x4636();}export function loadAliasMap(_0x3fa4bc,_0xdfc465,_0x92aa21){const _0x1e336e=a195_0x5120,_0x54f96f=_0x92aa21??resolve(process[_0x1e336e(0xed)](),_0x3fa4bc,'api.ts');if(cache[_0x1e336e(0xea)](_0x54f96f))return cache[_0x1e336e(0xef)](_0x54f96f);if(!existsSync(_0x54f96f))return cache['set'](_0x54f96f,[]),[];try{const _0x328381=readFileSync(_0x54f96f,_0x1e336e(0xec)),_0x35220a=parseApiFile(_0x328381);return cache[_0x1e336e(0xf3)](_0x54f96f,_0x35220a),_0x35220a;}catch{return cache[_0x1e336e(0xf3)](_0x54f96f,[]),[];}}function a195_0x5120(_0x39e17b,_0x5d5eca){_0x39e17b=_0x39e17b-0xe3;const _0x463616=a195_0x4636();let _0x5120cd=_0x463616[_0x39e17b];return _0x5120cd;}export function resolveAlias(_0xe1413e,_0x4205ff,_0x349050,_0x2d9e5b){const _0x3eb480=a195_0x5120;if(!_0x4205ff)return undefined;const _0x336d1a=loadAliasMap(_0xe1413e,_0x349050,_0x2d9e5b),_0x7792aa=_0x336d1a[_0x3eb480(0xee)](_0x434bf1=>_0x434bf1[_0x3eb480(0xf1)]===_0x4205ff);return _0x7792aa?.[_0x3eb480(0xf2)];}export function listAliases(_0x3470d1,_0x1ba3c5,_0x150d98){return loadAliasMap(_0x3470d1,_0x1ba3c5,_0x150d98);}