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

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 (258) 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 -0
  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 -0
  103. package/lib/commands/menu/group-create.js +1 -0
  104. package/lib/commands/menu/group-update.js +1 -0
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -0
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -0
  110. package/lib/commands/menu/shared/facts.js +1 -0
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -0
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -0
  177. package/lib/commands/task/status.js +1 -0
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -0
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -0
  215. package/lib/framework/explicit-yes.js +1 -0
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a167_0x4d82bb=a167_0x29e7;(function(_0x33d41c,_0x3b8963){const _0x1df530=a167_0x29e7,_0x51aa7f=_0x33d41c();while(!![]){try{const _0x52a6c6=parseInt(_0x1df530(0xc7))/0x1+-parseInt(_0x1df530(0xcf))/0x2*(-parseInt(_0x1df530(0xc2))/0x3)+parseInt(_0x1df530(0xda))/0x4+parseInt(_0x1df530(0xc8))/0x5*(parseInt(_0x1df530(0xc0))/0x6)+parseInt(_0x1df530(0xd4))/0x7*(-parseInt(_0x1df530(0xbb))/0x8)+parseInt(_0x1df530(0xa8))/0x9*(-parseInt(_0x1df530(0xce))/0xa)+-parseInt(_0x1df530(0xdc))/0xb;if(_0x52a6c6===_0x3b8963)break;else _0x51aa7f['push'](_0x51aa7f['shift']());}catch(_0x2106e6){_0x51aa7f['push'](_0x51aa7f['shift']());}}}(a167_0x4d9e,0x52003));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a167_0x4d9e(){const _0x3204f3=['isDangerous','1454992spREMV','type','9866417GwFxZo','Provide\x20--file\x20or\x20--sql','push','9DNJKDX','message','SQL\x20schema\x20validation','from','trim','validation','Table\x20\x22','isArray','File\x20not\x20found:\x20','tableName','sql','map','valid','file','schema:','get','size','name','tables','10448VwkmKK','read','fields','appCode','split','18iLvAeL','schemaWarnings','1988274WovEeL','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','toLowerCase','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','Dataset\x20\x22','295848rumvXb','840815AJwLmC','validate','str','parameters','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','flagMissing','5809610Osbrqf','2Bvtcew','sqlType','\x22\x20not\x20found\x20in\x20any\x20dataset','filter','dbtableConfig','70KpXEFr','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','isSelectOnly','reason','cwd'];a167_0x4d9e=function(){return _0x3204f3;};return a167_0x4d9e();}import{validateSql}from'../../core/sql-validator.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a167_0x29e7(_0x295fbc,_0x192595){_0x295fbc=_0x295fbc-0xa8;const _0x4d9ec0=a167_0x4d9e();let _0x29e75a=_0x4d9ec0[_0x295fbc];return _0x29e75a;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a167_0x4d82bb(0xb2),'command':a167_0x4d82bb(0xc9),'description':a167_0x4d82bb(0xd5),'risk':a167_0x4d82bb(0xbc),'flags':[{'name':a167_0x4d82bb(0xb5),'type':'string','description':a167_0x4d82bb(0xc3)},{'name':a167_0x4d82bb(0xb2),'type':'string','description':a167_0x4d82bb(0xc5)},{'name':'schemas','type':'string','description':a167_0x4d82bb(0xcc)}],async 'execute'(_0x174640){const _0x63820b=a167_0x4d82bb,_0x10dddc=_0x174640['str'](_0x63820b(0xb5)),_0x5b9c89=_0x174640[_0x63820b(0xca)](_0x63820b(0xb2));if(!_0x10dddc&&!_0x5b9c89)throw CliErrors[_0x63820b(0xcd)](_0x63820b(0xb5),_0x63820b(0xdd));let _0x34b087;if(_0x10dddc){const _0x4e2f40=resolve(process[_0x63820b(0xd8)](),_0x10dddc);if(!existsSync(_0x4e2f40))throw CliErrors[_0x63820b(0xad)](_0x63820b(0xb0)+_0x4e2f40);_0x34b087=readFileSync(_0x4e2f40,'utf-8');}else _0x34b087=_0x5b9c89;const _0x5aaf55=validateSql(_0x34b087),_0x450272={'valid':_0x5aaf55['valid'],'sqlType':_0x5aaf55[_0x63820b(0xd0)][_0x63820b(0xdb)],'isSelectOnly':_0x5aaf55[_0x63820b(0xd0)][_0x63820b(0xd6)],'isDangerous':_0x5aaf55[_0x63820b(0xd0)][_0x63820b(0xd9)],'tables':_0x5aaf55[_0x63820b(0xba)],'parameters':_0x5aaf55[_0x63820b(0xcb)],'message':_0x5aaf55[_0x63820b(0xa9)]};_0x5aaf55[_0x63820b(0xd0)][_0x63820b(0xd7)]&&(_0x450272[_0x63820b(0xd7)]=_0x5aaf55[_0x63820b(0xd0)][_0x63820b(0xd7)]);const _0x4ef85d=_0x174640['str']('schemas');if(_0x4ef85d&&_0x5aaf55[_0x63820b(0xb4)]){const _0x2a3312=_0x4ef85d[_0x63820b(0xbf)](',')[_0x63820b(0xb3)](_0x2d3045=>_0x2d3045[_0x63820b(0xac)]())[_0x63820b(0xd2)](Boolean),_0x3a4b3a=[],_0x48aa55=filterDbTableBackedDatasets(await listDatasets(_0x174640[_0x63820b(0xbe)])),_0x21017a=new Map(_0x48aa55[_0x63820b(0xb3)](_0x1ddea1=>[_0x1ddea1[_0x63820b(0xd3)]?.[_0x63820b(0xb1)]?.[_0x63820b(0xc4)](),_0x1ddea1]));for(const _0x2de5b4 of _0x5aaf55[_0x63820b(0xba)]){const _0x43291c=_0x21017a[_0x63820b(0xb7)](_0x2de5b4['toLowerCase']());!_0x43291c&&_0x3a4b3a['push'](_0x63820b(0xae)+_0x2de5b4+_0x63820b(0xd1));}for(const _0x1a9ee6 of _0x2a3312){let _0x4cba05;try{_0x4cba05=await getDatasetDetail(_0x1a9ee6);}catch{_0x3a4b3a[_0x63820b(0xde)](_0x63820b(0xc6)+_0x1a9ee6+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x4cba05,_0x63820b(0xaa));const _0x2e3135=Array[_0x63820b(0xaf)](_0x4cba05[_0x63820b(0xbd)])?_0x4cba05[_0x63820b(0xbd)]:[],_0x322e5a=new Set(_0x2e3135['map'](_0x155cbc=>_0x155cbc[_0x63820b(0xb9)]?.[_0x63820b(0xc4)]())),_0x20266a=_0x4cba05[_0x63820b(0xd3)]?.[_0x63820b(0xb1)]||_0x4cba05[_0x63820b(0xb1)]||_0x1a9ee6;_0x450272[_0x63820b(0xb6)+_0x20266a]={'code':_0x1a9ee6,'tableName':_0x20266a,'fieldCount':_0x322e5a[_0x63820b(0xb8)],'fields':Array[_0x63820b(0xab)](_0x322e5a)};}_0x3a4b3a['length']>0x0&&(_0x450272[_0x63820b(0xc1)]=_0x3a4b3a);}return{'ok':_0x5aaf55[_0x63820b(0xb4)],'data':_0x450272,'message':_0x5aaf55[_0x63820b(0xa9)]};}};
1
+ const a175_0xa0d512=a175_0x1c05;function a175_0x1c05(_0x22dc87,_0x54ed67){_0x22dc87=_0x22dc87-0x110;const _0x3332b8=a175_0x3332();let _0x1c054b=_0x3332b8[_0x22dc87];return _0x1c054b;}(function(_0x3bfd2b,_0x33bc37){const _0x5758e5=a175_0x1c05,_0x37adcb=_0x3bfd2b();while(!![]){try{const _0x23b367=-parseInt(_0x5758e5(0x113))/0x1*(parseInt(_0x5758e5(0x12d))/0x2)+parseInt(_0x5758e5(0x145))/0x3+parseInt(_0x5758e5(0x124))/0x4*(parseInt(_0x5758e5(0x12c))/0x5)+parseInt(_0x5758e5(0x138))/0x6+parseInt(_0x5758e5(0x116))/0x7*(-parseInt(_0x5758e5(0x150))/0x8)+-parseInt(_0x5758e5(0x140))/0x9+parseInt(_0x5758e5(0x12f))/0xa*(parseInt(_0x5758e5(0x121))/0xb);if(_0x23b367===_0x33bc37)break;else _0x37adcb['push'](_0x37adcb['shift']());}catch(_0x3b5c81){_0x37adcb['push'](_0x37adcb['shift']());}}}(a175_0x3332,0x8eac4));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a175_0x3332(){const _0x6cc205=['Dataset\x20\x22','tables','3724569qJkZmP','filter','get','flagMissing','validation','2209836JWgXko','schemas','bool','find','from','check-indexes','toLowerCase','dataset','fields','dbtableConfig','index_name','284584WUNHWl','--check-indexes\x20requires\x20--schemas.','cwd','tableName','Provide\x20--file\x20or\x20--sql','valid','appCode','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','joinAudit','108686SvQnqg','reason','length','147arkmpQ','type','indexName','isArray','read','name','utf-8','sqlType','File\x20not\x20found:\x20','sql','boolean','13893JHFaHP','validate','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','4195768HqwkUh','columns','trim','\x22\x20not\x20found\x20or\x20not\x20accessible','string','schema:','isDangerous','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','5IcEQMt','2SFjdoc','pkField','30rCTIgb','indexes','map','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','SQL\x20schema\x20validation','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','primary','file','columnNames','387630PHkaOF','str','unshift','split','push','\x22\x20not\x20found\x20in\x20any\x20dataset'];a175_0x3332=function(){return _0x6cc205;};return a175_0x3332();}import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a175_0xa0d512(0x11f),'command':a175_0xa0d512(0x122),'description':a175_0xa0d512(0x134),'risk':a175_0xa0d512(0x11a),'flags':[{'name':'file','type':'string','description':a175_0xa0d512(0x12b)},{'name':a175_0xa0d512(0x11f),'type':'string','description':a175_0xa0d512(0x123)},{'name':a175_0xa0d512(0x146),'type':a175_0xa0d512(0x128),'description':a175_0xa0d512(0x132)},{'name':a175_0xa0d512(0x14a),'type':a175_0xa0d512(0x120),'description':a175_0xa0d512(0x111)}],async 'execute'(_0x2971bc){const _0xcd4e65=a175_0xa0d512,_0x5225ed=_0x2971bc['str'](_0xcd4e65(0x136)),_0xe790e3=_0x2971bc[_0xcd4e65(0x139)]('sql'),_0x5a5f54=_0x2971bc[_0xcd4e65(0x139)](_0xcd4e65(0x146)),_0x49b51f=_0x2971bc[_0xcd4e65(0x147)](_0xcd4e65(0x14a));if(!_0x5225ed&&!_0xe790e3)throw CliErrors[_0xcd4e65(0x143)](_0xcd4e65(0x136),_0xcd4e65(0x154));if(_0x49b51f&&!_0x5a5f54)throw CliErrors[_0xcd4e65(0x144)](_0xcd4e65(0x151));let _0x131264;if(_0x5225ed){const _0x2bb527=resolve(process[_0xcd4e65(0x152)](),_0x5225ed);if(!existsSync(_0x2bb527))throw CliErrors[_0xcd4e65(0x144)](_0xcd4e65(0x11e)+_0x2bb527);_0x131264=readFileSync(_0x2bb527,_0xcd4e65(0x11c));}else _0x131264=_0xe790e3;const _0x2e7057=validateSql(_0x131264),_0x186b67={'valid':_0x2e7057[_0xcd4e65(0x155)],'sqlType':_0x2e7057[_0xcd4e65(0x11d)]['type'],'isSelectOnly':_0x2e7057[_0xcd4e65(0x11d)]['isSelectOnly'],'isDangerous':_0x2e7057[_0xcd4e65(0x11d)][_0xcd4e65(0x12a)],'tables':_0x2e7057[_0xcd4e65(0x13f)],'parameters':_0x2e7057['parameters'],'message':_0x2e7057['message']};_0x2e7057[_0xcd4e65(0x11d)]['reason']&&(_0x186b67[_0xcd4e65(0x114)]=_0x2e7057[_0xcd4e65(0x11d)][_0xcd4e65(0x114)]);if(_0x5a5f54&&_0x2e7057[_0xcd4e65(0x155)]){const _0x121a73=_0x5a5f54[_0xcd4e65(0x13b)](',')[_0xcd4e65(0x131)](_0x4438d4=>_0x4438d4[_0xcd4e65(0x126)]())['filter'](Boolean),_0x34bbe8=[],_0x4adea7=[],_0x2bc5f5=filterDbTableBackedDatasets(await listDatasets(_0x2971bc[_0xcd4e65(0x110)])),_0x1c33c4=new Map(_0x2bc5f5[_0xcd4e65(0x131)](_0x560bba=>[_0x560bba[_0xcd4e65(0x14e)]?.[_0xcd4e65(0x153)]?.[_0xcd4e65(0x14b)](),_0x560bba]));for(const _0x2ada1f of _0x2e7057['tables']){const _0x324049=_0x1c33c4[_0xcd4e65(0x142)](_0x2ada1f[_0xcd4e65(0x14b)]());!_0x324049&&_0x34bbe8['push']('Table\x20\x22'+_0x2ada1f+_0xcd4e65(0x13d));}for(const _0x4180c7 of _0x121a73){let _0x4771ae;try{_0x4771ae=await getDatasetDetail(_0x4180c7);}catch{_0x34bbe8[_0xcd4e65(0x13c)](_0xcd4e65(0x13e)+_0x4180c7+_0xcd4e65(0x127));continue;}assertDatasetIsDbTableBacked(_0x4771ae,_0xcd4e65(0x133));const _0x401dcc=Array[_0xcd4e65(0x119)](_0x4771ae['fields'])?_0x4771ae[_0xcd4e65(0x14d)]:[],_0x46c823=new Set(_0x401dcc[_0xcd4e65(0x131)](_0x342387=>_0x342387[_0xcd4e65(0x11b)]?.[_0xcd4e65(0x14b)]())),_0x4badd3=_0x4771ae[_0xcd4e65(0x14e)]?.[_0xcd4e65(0x153)]||_0x4771ae['tableName']||_0x4180c7;_0x186b67[_0xcd4e65(0x129)+_0x4badd3]={'code':_0x4180c7,'tableName':_0x4badd3,'fieldCount':_0x46c823['size'],'fields':Array[_0xcd4e65(0x149)](_0x46c823)};if(_0x49b51f){const _0x46ed51=normalizeDatasetIndexes(_0x4771ae);_0x4adea7[_0xcd4e65(0x13c)]({'tableName':_0x4badd3,..._0x46ed51});}}_0x34bbe8[_0xcd4e65(0x115)]>0x0&&(_0x186b67['schemaWarnings']=_0x34bbe8),_0x49b51f&&(_0x186b67[_0xcd4e65(0x112)]=auditSqlJoinIndexes(_0x131264,_0x4adea7));}return{'ok':_0x2e7057['valid'],'data':_0x186b67,'message':_0x2e7057['message']};}};function normalizeDatasetIndexes(_0x2d77e0){const _0xcbcfc3=a175_0xa0d512,_0x262a55=Array[_0xcbcfc3(0x119)](_0x2d77e0?.['dataset']?.[_0xcbcfc3(0x130)])?_0x2d77e0[_0xcbcfc3(0x14c)][_0xcbcfc3(0x130)]:Array[_0xcbcfc3(0x119)](_0x2d77e0?.[_0xcbcfc3(0x130)])?_0x2d77e0['indexes']:[],_0xc6a1e2=_0x262a55['flatMap'](_0x503b18=>{const _0x293df5=_0xcbcfc3,_0x59ef1c=Array[_0x293df5(0x119)](_0x503b18?.['index_columns'])?_0x503b18['index_columns']:Array[_0x293df5(0x119)](_0x503b18?.[_0x293df5(0x137)])?_0x503b18[_0x293df5(0x137)]:Array[_0x293df5(0x119)](_0x503b18?.[_0x293df5(0x125)])?_0x503b18[_0x293df5(0x125)]:[],_0x2f9e5d=_0x59ef1c[_0x293df5(0x141)](_0x243bce=>typeof _0x243bce==='string')[_0x293df5(0x131)](_0x3ac83a=>_0x3ac83a['trim']())[_0x293df5(0x141)](Boolean);if(_0x2f9e5d[_0x293df5(0x115)]===0x0)return[];const _0x1fee41=[_0x503b18?.[_0x293df5(0x118)],_0x503b18?.[_0x293df5(0x14f)],_0x503b18?.[_0x293df5(0x11b)]][_0x293df5(0x148)](_0x3d16f1=>typeof _0x3d16f1===_0x293df5(0x128)&&_0x3d16f1['trim']()),_0xb4c518=[_0x503b18?.['index_type'],_0x503b18?.[_0x293df5(0x117)]][_0x293df5(0x148)](_0x8068df=>typeof _0x8068df==='string'&&_0x8068df[_0x293df5(0x126)]());return[{..._0x1fee41?{'name':_0x1fee41['trim']()}:{},..._0xb4c518?{'type':_0xb4c518['trim']()}:{},'columns':_0x2f9e5d}];}),_0x375881=[..._0xc6a1e2],_0xe68722=typeof _0x2d77e0?.[_0xcbcfc3(0x14e)]?.['pkField']===_0xcbcfc3(0x128)?_0x2d77e0[_0xcbcfc3(0x14e)][_0xcbcfc3(0x12e)]['split'](',')['map'](_0x1e6d3f=>_0x1e6d3f['trim']())[_0xcbcfc3(0x141)](Boolean):[];return _0xe68722[_0xcbcfc3(0x115)]>0x0&&_0x375881[_0xcbcfc3(0x13a)]({'type':_0xcbcfc3(0x135),'columns':_0xe68722}),{'indexes':_0x375881,'metadataAvailable':_0xc6a1e2[_0xcbcfc3(0x115)]>0x0};}
@@ -0,0 +1 @@
1
+ (function(_0x17e6ce,_0x20920b){const _0xfc4cd9=a176_0x587d,_0x296522=_0x17e6ce();while(!![]){try{const _0x350c07=-parseInt(_0xfc4cd9(0x1d1))/0x1*(parseInt(_0xfc4cd9(0x1cd))/0x2)+parseInt(_0xfc4cd9(0x1d2))/0x3*(parseInt(_0xfc4cd9(0x1d3))/0x4)+-parseInt(_0xfc4cd9(0x1cc))/0x5+-parseInt(_0xfc4cd9(0x1cb))/0x6+-parseInt(_0xfc4cd9(0x1ce))/0x7+-parseInt(_0xfc4cd9(0x1cf))/0x8+parseInt(_0xfc4cd9(0x1d0))/0x9;if(_0x350c07===_0x20920b)break;else _0x296522['push'](_0x296522['shift']());}catch(_0x18ac4b){_0x296522['push'](_0x296522['shift']());}}}(a176_0x46c6,0x900df));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a176_0x587d(_0x1d1247,_0x56ab24){_0x1d1247=_0x1d1247-0x1cb;const _0x46c654=a176_0x46c6();let _0x587daa=_0x46c654[_0x1d1247];return _0x587daa;}function a176_0x46c6(){const _0x31f1c9=['378268nYoitv','6682230ebPIOU','2235730kvbrpd','742wLSMmi','5867099JIGpvM','2127216ymOYcJ','30450249FndcJW','601hJdbRD','3gUlgGc'];a176_0x46c6=function(){return _0x31f1c9;};return a176_0x46c6();}
@@ -0,0 +1 @@
1
+ const a177_0xcbf6ab=a177_0x1a93;function a177_0x1557(){const _0x24ab15=['38244svOlTi','390315ceJeGO','read','string','10194fLcchI','compress','appCode','cookie','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','7797420OckUSb','taskId','95UurKGp','4152nhcdGr','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','str','30897aYVRUE','2zauwBo','status','isTerminal','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','170iasDOF','task-id','apiError','416GsfORy',',\x20received\x20','42779PJbVEu','602gsRlHW'];a177_0x1557=function(){return _0x24ab15;};return a177_0x1557();}(function(_0x146071,_0x57f367){const _0x4e650d=a177_0x1a93,_0x4b997c=_0x146071();while(!![]){try{const _0x512cd1=parseInt(_0x4e650d(0x18e))/0x1*(-parseInt(_0x4e650d(0x19e))/0x2)+-parseInt(_0x4e650d(0x18f))/0x3+-parseInt(_0x4e650d(0x19a))/0x4*(-parseInt(_0x4e650d(0x199))/0x5)+parseInt(_0x4e650d(0x192))/0x6*(-parseInt(_0x4e650d(0x18d))/0x7)+-parseInt(_0x4e650d(0x18a))/0x8*(parseInt(_0x4e650d(0x19d))/0x9)+parseInt(_0x4e650d(0x1a2))/0xa*(-parseInt(_0x4e650d(0x18c))/0xb)+parseInt(_0x4e650d(0x197))/0xc;if(_0x512cd1===_0x57f367)break;else _0x4b997c['push'](_0x4b997c['shift']());}catch(_0x1f9fa9){_0x4b997c['push'](_0x4b997c['shift']());}}}(a177_0x1557,0x1af4f));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a177_0x1a93(_0x1f6777,_0x10af45){_0x1f6777=_0x1f6777-0x188;const _0x155739=a177_0x1557();let _0x1a9393=_0x155739[_0x1f6777];return _0x1a9393;}export const taskStatus={'service':'task','command':a177_0xcbf6ab(0x19f),'description':a177_0xcbf6ab(0x196),'risk':a177_0xcbf6ab(0x190),'defaultOutputFormat':a177_0xcbf6ab(0x193),'structuredErrors':!![],'flags':[{'name':a177_0xcbf6ab(0x188),'type':a177_0xcbf6ab(0x191),'required':!![],'description':a177_0xcbf6ab(0x1a1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32901e){const _0x3e06e2=a177_0xcbf6ab;if(!_0x32901e['str']('task-id')['trim']())throw CliErrors['flagMissing'](_0x3e06e2(0x188));},async 'execute'(_0x2e0964){const _0xf3aaca=a177_0xcbf6ab,_0x3a5102=_0x2e0964[_0xf3aaca(0x19c)](_0xf3aaca(0x188))['trim'](),_0x52d975=normalizeAsyncTask(await getAsyncTaskStatus(_0x3a5102,_0x2e0964['appCode'],_0x2e0964[_0xf3aaca(0x195)]));if(_0x52d975[_0xf3aaca(0x198)]!==_0x3a5102)throw CliErrors[_0xf3aaca(0x189)](_0xf3aaca(0x19b)+_0x3a5102+_0xf3aaca(0x18b)+_0x52d975['taskId']+'.');const _0x367145=buildAsyncTaskStatusCommand(_0x52d975[_0xf3aaca(0x198)],_0x2e0964[_0xf3aaca(0x194)]);return{'ok':!![],'message':asyncTaskMessage(_0x52d975),'data':{'appCode':_0x2e0964[_0xf3aaca(0x194)],..._0x52d975,'query':_0x52d975[_0xf3aaca(0x1a0)]?null:{'command':_0x367145}}};}};
@@ -1 +1 @@
1
- const a168_0x186b1d=a168_0x1fb2;function a168_0x1fb2(_0x5b5f17,_0x6b02a2){_0x5b5f17=_0x5b5f17-0x1c2;const _0x501d99=a168_0x501d();let _0x1fb2a2=_0x501d99[_0x5b5f17];return _0x1fb2a2;}function a168_0x501d(){const _0x25a9f4=['883832YbqaEA','workspace\x20add','4556898ZMXBRT','write','8411328xuoBSC','App\x20profile\x20name','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','28750477kFmtyY','8463330VlOLpS','2297742WbpApx','552570CYBJnR'];a168_0x501d=function(){return _0x25a9f4;};return a168_0x501d();}(function(_0x1442a8,_0x3ff160){const _0x148745=a168_0x1fb2,_0x262d70=_0x1442a8();while(!![]){try{const _0x38b689=-parseInt(_0x148745(0x1cb))/0x1+parseInt(_0x148745(0x1ca))/0x2+parseInt(_0x148745(0x1c3))/0x3+-parseInt(_0x148745(0x1cc))/0x4+parseInt(_0x148745(0x1c9))/0x5+parseInt(_0x148745(0x1c5))/0x6+-parseInt(_0x148745(0x1c8))/0x7;if(_0x38b689===_0x3ff160)break;else _0x262d70['push'](_0x262d70['shift']());}catch(_0xcb3ef6){_0x262d70['push'](_0x262d70['shift']());}}}(a168_0x501d,0xd73f4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a168_0x186b1d(0x1c7),'risk':a168_0x186b1d(0x1c4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a168_0x186b1d(0x1c6),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3537f4=>validateAppName(_0x3537f4,a168_0x186b1d(0x1c2)),'execute':_0x1b884a=>runAppAdd(_0x1b884a,a168_0x186b1d(0x1c2))};
1
+ const a178_0x4dc9ee=a178_0x2b08;function a178_0x1844(){const _0x4a7703=['199236CsFAmF','add','76jCGdTi','37119EilLqa','1582902PCpEFw','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','2vgKnhA','write','name','App\x20profile\x20name','5509770iXnSmH','679032RgMHHv','35NbaZJV','1284995FSmZFa','workspace\x20add','27362IPRSRq'];a178_0x1844=function(){return _0x4a7703;};return a178_0x1844();}function a178_0x2b08(_0x6674ee,_0x24c15a){_0x6674ee=_0x6674ee-0x122;const _0x1844d2=a178_0x1844();let _0x2b08fd=_0x1844d2[_0x6674ee];return _0x2b08fd;}(function(_0x5575ce,_0x5ed594){const _0x51ce46=a178_0x2b08,_0x282a95=_0x5575ce();while(!![]){try{const _0x265541=parseInt(_0x51ce46(0x122))/0x1*(parseInt(_0x51ce46(0x12b))/0x2)+parseInt(_0x51ce46(0x12f))/0x3*(parseInt(_0x51ce46(0x12e))/0x4)+-parseInt(_0x51ce46(0x129))/0x5+-parseInt(_0x51ce46(0x12c))/0x6*(parseInt(_0x51ce46(0x128))/0x7)+-parseInt(_0x51ce46(0x127))/0x8+-parseInt(_0x51ce46(0x130))/0x9+parseInt(_0x51ce46(0x126))/0xa;if(_0x265541===_0x5ed594)break;else _0x282a95['push'](_0x282a95['shift']());}catch(_0x25b8e7){_0x282a95['push'](_0x282a95['shift']());}}}(a178_0x1844,0x1fa68));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a178_0x4dc9ee(0x131),'command':a178_0x4dc9ee(0x12d),'description':a178_0x4dc9ee(0x132),'risk':a178_0x4dc9ee(0x123),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a178_0x4dc9ee(0x124),'description':a178_0x4dc9ee(0x125),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x34f1e3=>validateAppName(_0x34f1e3,a178_0x4dc9ee(0x12a)),'execute':_0x3feb75=>runAppAdd(_0x3feb75,a178_0x4dc9ee(0x12a))};
@@ -1 +1 @@
1
- const a169_0x11316a=a169_0x4ee7;(function(_0x1368c5,_0x38256a){const _0x4f4a03=a169_0x4ee7,_0x23deff=_0x1368c5();while(!![]){try{const _0x9e026=parseInt(_0x4f4a03(0x117))/0x1*(-parseInt(_0x4f4a03(0x108))/0x2)+parseInt(_0x4f4a03(0x132))/0x3*(parseInt(_0x4f4a03(0x12c))/0x4)+-parseInt(_0x4f4a03(0x115))/0x5*(parseInt(_0x4f4a03(0x116))/0x6)+parseInt(_0x4f4a03(0x110))/0x7+-parseInt(_0x4f4a03(0x10b))/0x8+parseInt(_0x4f4a03(0x124))/0x9*(parseInt(_0x4f4a03(0x12f))/0xa)+parseInt(_0x4f4a03(0x104))/0xb;if(_0x9e026===_0x38256a)break;else _0x23deff['push'](_0x23deff['shift']());}catch(_0x11b6ea){_0x23deff['push'](_0x23deff['shift']());}}}(a169_0x24ba,0x6e71e));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';function a169_0x24ba(){const _0x32b7d6=['\x20(appcode:\x20','defaultFormat','.\x20Credentials:\x20not\x20written.','workspace.','Locale\x20for\x20this\x20workspace\x20app\x20profile','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','isArray','200iyFmYo','Target\x20environment','Use\x20`','10GUoSmA','Invalid\x20appcode:\x20','format','18861csOKWY','riskLevel','updated','trim','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','str','defaultApp','pageSize',').\x20Config:\x20','write','Missing\x20workspace\x20app\x20selector.','1689831cmyPaU','env','locale','\x20workspace\x20','4prnbDo','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','flag','1041864SvaFQf','number','Switch\x20the\x20current\x20workspace\x20app\x20binding','join','apiDir','3666852VRaqSA','object','appcode','workspace','validation','4241135jbAcfp','6niukyY','226843IlMyPE','\x20--app\x20','use','init','string','app','Workspace\x20','length','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','apps','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','\x20workspace\x20use\x20--app\x20<name>`.','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','8034489wlHMJW'];a169_0x24ba=function(){return _0x32b7d6;};return a169_0x24ba();}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+a169_0x11316a(0x121),SAFE_PROFILE_KEYS=[a169_0x11316a(0x112),a169_0x11316a(0x105),a169_0x11316a(0x10f),a169_0x11316a(0x131),a169_0x11316a(0x139),a169_0x11316a(0x133),a169_0x11316a(0x106)],workspaceFlags=[{'name':'app','type':a169_0x11316a(0x11b),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a169_0x11316a(0x112),'type':'string','description':a169_0x11316a(0x109)},{'name':'env','type':'string','description':a169_0x11316a(0x12d),'enum':[...RABETBASE_ENV_VALUES]},{'name':a169_0x11316a(0x10f),'type':a169_0x11316a(0x11b),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a169_0x11316a(0x126),'type':'string','description':a169_0x11316a(0x123),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a169_0x11316a(0x139),'type':a169_0x11316a(0x10c),'description':a169_0x11316a(0x12a)},{'name':a169_0x11316a(0x133),'type':a169_0x11316a(0x11b),'description':a169_0x11316a(0x11f),'enum':[...RISK_LEVEL_VALUES]},{'name':a169_0x11316a(0x106),'type':'string','description':a169_0x11316a(0x129)}];function isRecord(_0xc885fa){const _0x1869da=a169_0x11316a;return!!_0xc885fa&&typeof _0xc885fa===_0x1869da(0x111)&&!Array[_0x1869da(0x12b)](_0xc885fa);}function a169_0x4ee7(_0x2da235,_0x46bf80){_0x2da235=_0x2da235-0x101;const _0x24baef=a169_0x24ba();let _0x4ee711=_0x24baef[_0x2da235];return _0x4ee711;}function assertValidAppcode(_0x58da16){const _0x39010a=a169_0x11316a,{valid:_0x4ce5f7,message:_0x12c852}=validateAppcode(_0x58da16);if(!_0x4ce5f7)throw CliErrors[_0x39010a(0x114)](_0x39010a(0x130)+_0x58da16,_0x12c852);}function sanitizeProfile(_0x4e2415){if(!isRecord(_0x4e2415))return{};const _0x5b5dde={};for(const _0xc81412 of SAFE_PROFILE_KEYS){if(_0x4e2415[_0xc81412]!==undefined)_0x5b5dde[_0xc81412]=_0x4e2415[_0xc81412];}return _0x5b5dde;}function cloneProfile(_0x353e6e){return isRecord(_0x353e6e)?{..._0x353e6e}:{};}function collectWorkspaceProfileOverrides(_0xb7bec0){const _0x45487f=a169_0x11316a,_0x2b1bfd={},_0x470d98=_0xb7bec0[_0x45487f(0x137)](_0x45487f(0x105)),_0x471895=_0xb7bec0['str']('apiDir'),_0x4c6d07=_0xb7bec0[_0x45487f(0x137)]('defaultFormat'),_0x59dfab=_0xb7bec0[_0x45487f(0x10a)](_0x45487f(0x139)),_0x396d74=_0xb7bec0[_0x45487f(0x137)](_0x45487f(0x133)),_0x5e7f0b=_0xb7bec0['str'](_0x45487f(0x106));if(_0x470d98)_0x2b1bfd[_0x45487f(0x105)]=_0x470d98;if(_0x471895)_0x2b1bfd[_0x45487f(0x10f)]=_0x471895;if(_0x4c6d07)_0x2b1bfd[_0x45487f(0x131)]=_0x4c6d07;if(_0x59dfab!==undefined&&_0x59dfab!=='')_0x2b1bfd['pageSize']=Number(_0x59dfab);if(_0x396d74)_0x2b1bfd['riskLevel']=_0x396d74;if(_0x5e7f0b)_0x2b1bfd[_0x45487f(0x106)]=_0x5e7f0b;return _0x2b1bfd;}async function validateWorkspaceArgs(_0x58f6a4){const _0xa1b99b=a169_0x11316a,_0x3a35d7=_0x58f6a4[_0xa1b99b(0x137)](_0xa1b99b(0x11c))[_0xa1b99b(0x135)](),_0x45739e=_0x58f6a4['str'](_0xa1b99b(0x112))[_0xa1b99b(0x135)]();if(!_0x3a35d7&&!_0x45739e)throw CliErrors[_0xa1b99b(0x114)](_0xa1b99b(0x103),'Use\x20`'+CLI_BIN_NAME+_0xa1b99b(0x136)+CLI_BIN_NAME+_0xa1b99b(0x122));if(_0x45739e)assertValidAppcode(_0x45739e);}function resolveKnownApps(){const _0x26039f=a169_0x11316a,{config:_0x1667fd,layers:_0x4b1a9a}=readRawConfigWithLayers(),_0x3a3266=isRecord(_0x1667fd[_0x26039f(0x120)])?_0x1667fd['apps']:{},_0x32a818=isRecord(_0x4b1a9a['globalConfig'][_0x26039f(0x120)])?_0x4b1a9a['globalConfig'][_0x26039f(0x120)]:{};return{..._0x32a818,..._0x3a3266};}async function configureWorkspace(_0x312ae8,_0x20236a){const _0x586cf1=a169_0x11316a,_0x532f04=_0x312ae8['str']('app')[_0x586cf1(0x135)](),_0xb25ba1=_0x312ae8[_0x586cf1(0x137)](_0x586cf1(0x112))[_0x586cf1(0x135)](),_0x22c3a5=_0x532f04||_0xb25ba1;if(!_0x22c3a5)throw CliErrors[_0x586cf1(0x114)](_0x586cf1(0x103),_0x586cf1(0x12e)+CLI_BIN_NAME+_0x586cf1(0x136)+CLI_BIN_NAME+_0x586cf1(0x122));if(_0xb25ba1)assertValidAppcode(_0xb25ba1);const _0x4802b0=resolveWriteConfigPath('project'),_0x15e36a=readConfigFile(_0x4802b0),_0x531f3b=resolveKnownApps(),_0x372681=isRecord(_0x15e36a[_0x586cf1(0x120)])?{..._0x15e36a[_0x586cf1(0x120)]}:{},_0xe94338=cloneProfile(_0x372681[_0x22c3a5]),_0x9c1d36=sanitizeProfile(_0x531f3b[_0x22c3a5]),_0x59374a=_0xb25ba1?{}:_0x9c1d36,_0x15ab9b=_0xb25ba1||_0x59374a[_0x586cf1(0x112)];if(!_0x15ab9b){const _0x2251f3=Object['keys'](_0x531f3b),_0x3ef8e6=_0x2251f3[_0x586cf1(0x11e)]===0x0?_0x586cf1(0x12e)+CLI_BIN_NAME+_0x586cf1(0x107)+_0x20236a+_0x586cf1(0x118)+_0x22c3a5+'\x20--appcode\x20<code>`.':'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x2251f3[_0x586cf1(0x10e)](',\x20');throw CliErrors[_0x586cf1(0x114)]('App\x20\x22'+_0x22c3a5+'\x22\x20not\x20found.',_0x3ef8e6);}assertValidAppcode(String(_0x15ab9b));const _0x3b06b5={..._0x59374a,..._0xe94338,'appcode':String(_0x15ab9b),...collectWorkspaceProfileOverrides(_0x312ae8)};return _0x372681[_0x22c3a5]=_0x3b06b5,_0x15e36a[_0x586cf1(0x120)]=_0x372681,_0x15e36a[_0x586cf1(0x138)]=_0x22c3a5,delete _0x15e36a['appcode'],delete _0x15e36a[_0x586cf1(0x11c)],_0x3b06b5['env']&&(_0x15e36a['env']=_0x3b06b5[_0x586cf1(0x105)]),writeConfigFile(_0x4802b0,_0x15e36a),{'ok':!![],'message':_0x586cf1(0x11d)+(_0x20236a===_0x586cf1(0x11a)?'initialized':_0x586cf1(0x134))+':\x20'+_0x22c3a5+_0x586cf1(0x125)+_0x3b06b5['appcode']+_0x586cf1(0x101)+_0x4802b0+_0x586cf1(0x127),'data':{'operation':_0x586cf1(0x128)+_0x20236a,'configPath':_0x4802b0,'app':_0x22c3a5,'appcode':_0x3b06b5['appcode'],'env':_0x3b06b5[_0x586cf1(0x105)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a169_0x11316a(0x113),'command':a169_0x11316a(0x11a),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a169_0x11316a(0x102),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5edf45=>configureWorkspace(_0x5edf45,a169_0x11316a(0x11a))},workspaceUseDefinition={'service':a169_0x11316a(0x113),'command':'use','description':a169_0x11316a(0x10d),'risk':a169_0x11316a(0x102),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x213f49=>configureWorkspace(_0x213f49,a169_0x11316a(0x119))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a179_0x33ec8f=a179_0x119d;function a179_0x119d(_0x2f5ee8,_0xad1ce4){_0x2f5ee8=_0x2f5ee8-0x9e;const _0x22081e=a179_0x2208();let _0x119db3=_0x22081e[_0x2f5ee8];return _0x119db3;}(function(_0x3ddb1e,_0x1e038e){const _0x2d505=a179_0x119d,_0x59e5ee=_0x3ddb1e();while(!![]){try{const _0x2e994a=-parseInt(_0x2d505(0xb8))/0x1*(-parseInt(_0x2d505(0xd0))/0x2)+parseInt(_0x2d505(0xc4))/0x3+-parseInt(_0x2d505(0xa0))/0x4+parseInt(_0x2d505(0xbd))/0x5+parseInt(_0x2d505(0xb9))/0x6+-parseInt(_0x2d505(0xcf))/0x7*(-parseInt(_0x2d505(0xbe))/0x8)+parseInt(_0x2d505(0xda))/0x9*(-parseInt(_0x2d505(0xc2))/0xa);if(_0x2e994a===_0x1e038e)break;else _0x59e5ee['push'](_0x59e5ee['shift']());}catch(_0x2b72a0){_0x59e5ee['push'](_0x59e5ee['shift']());}}}(a179_0x2208,0x61cb5));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a179_0x2208(){const _0x3331b6=['riskLevel','keys','format','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','number','trim','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','16891CDvUYH','2BjGIRz','\x22\x20not\x20found.','Use\x20`','project','env','string','workspace.','.\x20Credentials:\x20not\x20written.','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','app','216GfJDfl','Workspace\x20','\x20--appcode\x20<code>`.','1693524YMQTJS','\x20workspace\x20','App\x20\x22','Invalid\x20appcode:\x20','initialized','\x20(appcode:\x20','flag','validation','defaultApp','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','use','Missing\x20workspace\x20app\x20selector.','length','isArray','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','join','Locale\x20for\x20this\x20workspace\x20app\x20profile','globalConfig','workspace','object','str','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','write','217378FBuRnz','2681562PDskoV','defaultFormat','appcode','\x20workspace\x20use\x20--app\x20<name>`.','1693575fkihaz','1136AEPswF','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','apiDir','pageSize','363900JwnCtn','locale','1054920ECmrPA','Target\x20environment','apps'];a179_0x2208=function(){return _0x3331b6;};return a179_0x2208();}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+a179_0x33ec8f(0xce),SAFE_PROFILE_KEYS=[a179_0x33ec8f(0xbb),a179_0x33ec8f(0xd4),a179_0x33ec8f(0xc0),a179_0x33ec8f(0xc9),a179_0x33ec8f(0xc1),a179_0x33ec8f(0xc7),a179_0x33ec8f(0xc3)],workspaceFlags=[{'name':a179_0x33ec8f(0xd9),'type':a179_0x33ec8f(0xd5),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a179_0x33ec8f(0xbb),'type':a179_0x33ec8f(0xd5),'description':a179_0x33ec8f(0xb6)},{'name':'env','type':a179_0x33ec8f(0xd5),'description':a179_0x33ec8f(0xc5),'enum':[...RABETBASE_ENV_VALUES]},{'name':a179_0x33ec8f(0xc0),'type':a179_0x33ec8f(0xd5),'description':a179_0x33ec8f(0xd8)},{'name':a179_0x33ec8f(0xba),'type':a179_0x33ec8f(0xd5),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a179_0x33ec8f(0xc1),'type':a179_0x33ec8f(0xcc),'description':a179_0x33ec8f(0xcb)},{'name':a179_0x33ec8f(0xc7),'type':a179_0x33ec8f(0xd5),'description':a179_0x33ec8f(0xbf),'enum':[...RISK_LEVEL_VALUES]},{'name':a179_0x33ec8f(0xc3),'type':'string','description':a179_0x33ec8f(0xb1)}];function isRecord(_0xc5819b){const _0x3ca8ed=a179_0x33ec8f;return!!_0xc5819b&&typeof _0xc5819b===_0x3ca8ed(0xb4)&&!Array[_0x3ca8ed(0xad)](_0xc5819b);}function assertValidAppcode(_0x4d0a0e){const _0xd0f1ca=a179_0x33ec8f,{valid:_0x77c60c,message:_0x149d7b}=validateAppcode(_0x4d0a0e);if(!_0x77c60c)throw CliErrors['validation'](_0xd0f1ca(0xa3)+_0x4d0a0e,_0x149d7b);}function sanitizeProfile(_0x370a4e){if(!isRecord(_0x370a4e))return{};const _0x434eff={};for(const _0x4692a7 of SAFE_PROFILE_KEYS){if(_0x370a4e[_0x4692a7]!==undefined)_0x434eff[_0x4692a7]=_0x370a4e[_0x4692a7];}return _0x434eff;}function cloneProfile(_0x48409e){return isRecord(_0x48409e)?{..._0x48409e}:{};}function collectWorkspaceProfileOverrides(_0x3558fe){const _0x3cabb8=a179_0x33ec8f,_0x7b83b9={},_0x3e673f=_0x3558fe[_0x3cabb8(0xb5)](_0x3cabb8(0xd4)),_0x281b65=_0x3558fe['str']('apiDir'),_0x4d9b51=_0x3558fe['str'](_0x3cabb8(0xba)),_0x1a7428=_0x3558fe[_0x3cabb8(0xa6)](_0x3cabb8(0xc1)),_0xc5df93=_0x3558fe[_0x3cabb8(0xb5)](_0x3cabb8(0xc7)),_0x566384=_0x3558fe[_0x3cabb8(0xb5)](_0x3cabb8(0xc3));if(_0x3e673f)_0x7b83b9[_0x3cabb8(0xd4)]=_0x3e673f;if(_0x281b65)_0x7b83b9['apiDir']=_0x281b65;if(_0x4d9b51)_0x7b83b9[_0x3cabb8(0xc9)]=_0x4d9b51;if(_0x1a7428!==undefined&&_0x1a7428!=='')_0x7b83b9[_0x3cabb8(0xc1)]=Number(_0x1a7428);if(_0xc5df93)_0x7b83b9[_0x3cabb8(0xc7)]=_0xc5df93;if(_0x566384)_0x7b83b9[_0x3cabb8(0xc3)]=_0x566384;return _0x7b83b9;}async function validateWorkspaceArgs(_0x46ed74){const _0x2c0ac6=a179_0x33ec8f,_0x15d057=_0x46ed74[_0x2c0ac6(0xb5)](_0x2c0ac6(0xd9))[_0x2c0ac6(0xcd)](),_0x38dd64=_0x46ed74[_0x2c0ac6(0xb5)](_0x2c0ac6(0xbb))[_0x2c0ac6(0xcd)]();if(!_0x15d057&&!_0x38dd64)throw CliErrors['validation'](_0x2c0ac6(0xab),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x2c0ac6(0xbc));if(_0x38dd64)assertValidAppcode(_0x38dd64);}function resolveKnownApps(){const _0x513e3d=a179_0x33ec8f,{config:_0x3460b4,layers:_0x1e8f7c}=readRawConfigWithLayers(),_0x253e96=isRecord(_0x3460b4['apps'])?_0x3460b4[_0x513e3d(0xc6)]:{},_0x887a6a=isRecord(_0x1e8f7c[_0x513e3d(0xb2)][_0x513e3d(0xc6)])?_0x1e8f7c[_0x513e3d(0xb2)]['apps']:{};return{..._0x887a6a,..._0x253e96};}async function configureWorkspace(_0x331b7f,_0x5b2ead){const _0x1ba5fb=a179_0x33ec8f,_0x3a9037=_0x331b7f[_0x1ba5fb(0xb5)]('app')[_0x1ba5fb(0xcd)](),_0x269629=_0x331b7f['str'](_0x1ba5fb(0xbb))['trim'](),_0x55541e=_0x3a9037||_0x269629;if(!_0x55541e)throw CliErrors[_0x1ba5fb(0xa7)](_0x1ba5fb(0xab),_0x1ba5fb(0xd2)+CLI_BIN_NAME+_0x1ba5fb(0xae)+CLI_BIN_NAME+_0x1ba5fb(0xbc));if(_0x269629)assertValidAppcode(_0x269629);const _0x54515b=resolveWriteConfigPath(_0x1ba5fb(0xd3)),_0x1f7782=readConfigFile(_0x54515b),_0x4b5f80=resolveKnownApps(),_0x13413c=isRecord(_0x1f7782[_0x1ba5fb(0xc6)])?{..._0x1f7782[_0x1ba5fb(0xc6)]}:{},_0x225ee1=cloneProfile(_0x13413c[_0x55541e]),_0x224595=sanitizeProfile(_0x4b5f80[_0x55541e]),_0x261215=_0x269629?{}:_0x224595,_0x4b0bed=_0x269629||_0x261215['appcode'];if(!_0x4b0bed){const _0x2fcafc=Object[_0x1ba5fb(0xc8)](_0x4b5f80),_0x3ecc9c=_0x2fcafc[_0x1ba5fb(0xac)]===0x0?_0x1ba5fb(0xd2)+CLI_BIN_NAME+_0x1ba5fb(0xa1)+_0x5b2ead+'\x20--app\x20'+_0x55541e+_0x1ba5fb(0x9f):_0x1ba5fb(0xa9)+_0x2fcafc[_0x1ba5fb(0xb0)](',\x20');throw CliErrors['validation'](_0x1ba5fb(0xa2)+_0x55541e+_0x1ba5fb(0xd1),_0x3ecc9c);}assertValidAppcode(String(_0x4b0bed));const _0x56dde4={..._0x261215,..._0x225ee1,'appcode':String(_0x4b0bed),...collectWorkspaceProfileOverrides(_0x331b7f)};return _0x13413c[_0x55541e]=_0x56dde4,_0x1f7782['apps']=_0x13413c,_0x1f7782[_0x1ba5fb(0xa8)]=_0x55541e,delete _0x1f7782[_0x1ba5fb(0xbb)],delete _0x1f7782[_0x1ba5fb(0xd9)],_0x56dde4[_0x1ba5fb(0xd4)]&&(_0x1f7782[_0x1ba5fb(0xd4)]=_0x56dde4[_0x1ba5fb(0xd4)]),writeConfigFile(_0x54515b,_0x1f7782),{'ok':!![],'message':_0x1ba5fb(0x9e)+(_0x5b2ead===_0x1ba5fb(0xaf)?_0x1ba5fb(0xa4):'updated')+':\x20'+_0x55541e+_0x1ba5fb(0xa5)+_0x56dde4[_0x1ba5fb(0xbb)]+').\x20Config:\x20'+_0x54515b+_0x1ba5fb(0xd7),'data':{'operation':_0x1ba5fb(0xd6)+_0x5b2ead,'configPath':_0x54515b,'app':_0x55541e,'appcode':_0x56dde4[_0x1ba5fb(0xbb)],'env':_0x56dde4[_0x1ba5fb(0xd4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a179_0x33ec8f(0xb3),'command':a179_0x33ec8f(0xaf),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2dc48f=>configureWorkspace(_0x2dc48f,a179_0x33ec8f(0xaf))},workspaceUseDefinition={'service':a179_0x33ec8f(0xb3),'command':a179_0x33ec8f(0xaa),'description':a179_0x33ec8f(0xca),'risk':a179_0x33ec8f(0xb7),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x61dd4e=>configureWorkspace(_0x61dd4e,a179_0x33ec8f(0xaa))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- function a170_0x5627(){const _0x104960=['9763328ZpJcyD','1280936sMXURQ','13201191TwvskK','3414vXkryg','2825380wGfIPP','16471kwLodC','name','workspace','3JPzcbY','App\x20profile\x20name\x20to\x20remove','174806ZUQzff','remove','3503280fKkFJV'];a170_0x5627=function(){return _0x104960;};return a170_0x5627();}const a170_0xe6358f=a170_0x4ff4;(function(_0xdffe56,_0x355ecc){const _0x463014=a170_0x4ff4,_0x4df74d=_0xdffe56();while(!![]){try{const _0x4f51e1=-parseInt(_0x463014(0xaf))/0x1*(-parseInt(_0x463014(0xb1))/0x2)+parseInt(_0x463014(0xb3))/0x3+parseInt(_0x463014(0xb5))/0x4+parseInt(_0x463014(0xb8))/0x5+parseInt(_0x463014(0xb7))/0x6*(-parseInt(_0x463014(0xb9))/0x7)+parseInt(_0x463014(0xb4))/0x8+-parseInt(_0x463014(0xb6))/0x9;if(_0x4f51e1===_0x355ecc)break;else _0x4df74d['push'](_0x4df74d['shift']());}catch(_0x13526c){_0x4df74d['push'](_0x4df74d['shift']());}}}(a170_0x5627,0xb23b7));function a170_0x4ff4(_0x3cf311,_0x30657c){_0x3cf311=_0x3cf311-0xaf;const _0x56276c=a170_0x5627();let _0x4ff4a9=_0x56276c[_0x3cf311];return _0x4ff4a9;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a170_0xe6358f(0xbb),'command':a170_0xe6358f(0xb2),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a170_0xe6358f(0xba),'description':a170_0xe6358f(0xb0),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x5e7ae6=>validateAppName(_0x5e7ae6,'workspace\x20remove'),'execute':_0x32531e=>runAppRemove(_0x32531e,'workspace\x20remove')};
1
+ function a180_0x5432(){const _0x2643c3=['name','5606286wWggQf','423015srMqdN','workspace','36joEcZN','4827760MlAOtE','4sHsMqk','8702834FvoYjO','App\x20profile\x20name\x20to\x20remove','887265whjinY','7304571iPZqWv','414644WsppZU','workspace\x20remove','high-risk-write','8EthQRL','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)'];a180_0x5432=function(){return _0x2643c3;};return a180_0x5432();}const a180_0x193ea6=a180_0x38fe;function a180_0x38fe(_0x14d4dd,_0x38a1a4){_0x14d4dd=_0x14d4dd-0x1c2;const _0x543252=a180_0x5432();let _0x38fe4b=_0x543252[_0x14d4dd];return _0x38fe4b;}(function(_0xe25644,_0x3d568f){const _0x4275ab=a180_0x38fe,_0x3b8c9b=_0xe25644();while(!![]){try{const _0x1c6dfd=-parseInt(_0x4275ab(0x1cd))/0x1*(-parseInt(_0x4275ab(0x1c2))/0x2)+-parseInt(_0x4275ab(0x1d0))/0x3+-parseInt(_0x4275ab(0x1cb))/0x4*(parseInt(_0x4275ab(0x1c9))/0x5)+parseInt(_0x4275ab(0x1c8))/0x6+parseInt(_0x4275ab(0x1ce))/0x7+parseInt(_0x4275ab(0x1c5))/0x8*(-parseInt(_0x4275ab(0x1d1))/0x9)+-parseInt(_0x4275ab(0x1cc))/0xa;if(_0x1c6dfd===_0x3d568f)break;else _0x3b8c9b['push'](_0x3b8c9b['shift']());}catch(_0x5df35d){_0x3b8c9b['push'](_0x3b8c9b['shift']());}}}(a180_0x5432,0x9fffa));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a180_0x193ea6(0x1ca),'command':'remove','description':a180_0x193ea6(0x1c6),'risk':a180_0x193ea6(0x1c4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x193ea6(0x1c7),'description':a180_0x193ea6(0x1cf),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x18deed=>validateAppName(_0x18deed,a180_0x193ea6(0x1c3)),'execute':_0x294797=>runAppRemove(_0x294797,'workspace\x20remove')};
@@ -1 +1 @@
1
- const a171_0x37caf0=a171_0x3542;(function(_0x13a925,_0x9ad161){const _0x14df3f=a171_0x3542,_0x352c00=_0x13a925();while(!![]){try{const _0x543322=-parseInt(_0x14df3f(0x20d))/0x1*(-parseInt(_0x14df3f(0x219))/0x2)+parseInt(_0x14df3f(0x207))/0x3*(parseInt(_0x14df3f(0x21c))/0x4)+parseInt(_0x14df3f(0x218))/0x5*(parseInt(_0x14df3f(0x1fc))/0x6)+-parseInt(_0x14df3f(0x1f8))/0x7+parseInt(_0x14df3f(0x21e))/0x8*(-parseInt(_0x14df3f(0x1f7))/0x9)+-parseInt(_0x14df3f(0x213))/0xa+-parseInt(_0x14df3f(0x209))/0xb*(parseInt(_0x14df3f(0x212))/0xc);if(_0x543322===_0x9ad161)break;else _0x352c00['push'](_0x352c00['shift']());}catch(_0x17c6f8){_0x352c00['push'](_0x352c00['shift']());}}}(a171_0xead8,0xcfbbc));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';function a171_0x3542(_0x45312f,_0x528926){_0x45312f=_0x45312f-0x1f4;const _0xead886=a171_0xead8();let _0x354221=_0xead886[_0x45312f];return _0x354221;}export const PROJECT_CREATE_INHERITABLE_KEYS=[a171_0x37caf0(0x1f4),a171_0x37caf0(0x200),'locale',a171_0x37caf0(0x211),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a171_0x37caf0(0x220),a171_0x37caf0(0x1fb),'locale','format',a171_0x37caf0(0x1f4),a171_0x37caf0(0x200),a171_0x37caf0(0x210)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2b5c7b){const _0x3f503c=a171_0x37caf0;return[..._0x2b5c7b][_0x3f503c(0x1fa)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a171_0xead8(){const _0x2ff896=['defaultFormat','join','env','2188194zUZUTD','locale','length','map','accessKey','defaultApp','string','Auth\x20cookie','Access\x20key','apps','number','375NqIAPl','en-US','36773ExxgcH','zh-CN','toLowerCase','Locale','1twkzEM','app','Target\x20environment','apiDir','format','1644PERHxI','4719470AdbpSa','Default\x20page\x20size','riskLevel','pageSize','keys','20JDvMOd','1380586pwdMAq','filter','Risk\x20level','33952oHAlpv','inherit','8vEkawy','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','appcode','API\x20directory\x20path','cookie','entries','Config\x20key\x20(','10750347CkkzIX','1643544qawonx'];a171_0xead8=function(){return _0x2ff896;};return a171_0xead8();}export function isTopLevelConfigKey(_0x3091eb){return TOP_LEVEL_CONFIG_KEYS['has'](_0x3091eb);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x524939=a171_0x37caf0;return _0x524939(0x1f6)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a171_0x37caf0(0x1fb),'apiDir':a171_0x37caf0(0x210),'cookie':a171_0x37caf0(0x1f4),'accessKey':a171_0x37caf0(0x200),'defaultFormat':a171_0x37caf0(0x211),'pageSize':'pageSize','riskLevel':a171_0x37caf0(0x215),'locale':'locale'};export function getAppProfileFlagDefs(){const _0xd49eca=a171_0x37caf0;return[{'name':'env','type':'string','description':_0xd49eca(0x20f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0xd49eca(0x210),'type':_0xd49eca(0x202),'description':_0xd49eca(0x221)},{'name':_0xd49eca(0x1f4),'type':_0xd49eca(0x202),'description':_0xd49eca(0x203),'hidden':!![]},{'name':_0xd49eca(0x200),'type':_0xd49eca(0x202),'description':_0xd49eca(0x204),'hidden':!![]},{'name':_0xd49eca(0x1f9),'type':'string','description':_0xd49eca(0x21f),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0xd49eca(0x216),'type':_0xd49eca(0x206),'description':_0xd49eca(0x214)},{'name':_0xd49eca(0x215),'type':'string','description':_0xd49eca(0x21b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0xd49eca(0x1fd),'type':'string','description':_0xd49eca(0x20c)}];}export function collectAppProfileOverrides(_0x4eb39d){const _0x42f56a=a171_0x37caf0,_0x3a0ea6={};for(const [_0x3674d7,_0x294765]of Object[_0x42f56a(0x1f5)](APP_PROFILE_FLAG_KEY_MAP)){const _0x43b11a=_0x4eb39d(_0x3674d7);if(!_0x43b11a)continue;_0x3a0ea6[_0x294765]=_0x294765===_0x42f56a(0x216)?Number(_0x43b11a):_0x43b11a;}return _0x3a0ea6;}export function buildAppProfileListFields(_0x566f0e){const _0x40da0c=a171_0x37caf0;return{'env':_0x566f0e[_0x40da0c(0x1fb)]??null,'apiDir':_0x566f0e[_0x40da0c(0x210)]??null,'hasCookie':!!_0x566f0e[_0x40da0c(0x1f4)],'hasAccessKey':!!_0x566f0e[_0x40da0c(0x200)],'format':_0x566f0e['format']??null,'pageSize':_0x566f0e[_0x40da0c(0x216)]??null,'riskLevel':_0x566f0e['riskLevel']??null,'locale':_0x566f0e[_0x40da0c(0x1fd)]??null};}export function buildAppDoctorFields(_0x45c0af,_0x57daa5){const _0x5c863c=a171_0x37caf0;return{'env':{'value':_0x45c0af['env']||_0x57daa5[_0x5c863c(0x1fb)],'source':_0x45c0af[_0x5c863c(0x1fb)]?_0x5c863c(0x20e):'inherit'},'apiDir':{'value':_0x45c0af[_0x5c863c(0x210)]||_0x57daa5[_0x5c863c(0x210)],'source':_0x45c0af[_0x5c863c(0x210)]?'app':_0x5c863c(0x21d)},'cookie':{'value':_0x45c0af[_0x5c863c(0x1f4)]||_0x57daa5[_0x5c863c(0x1f4)],'source':_0x45c0af['cookie']?_0x5c863c(0x20e):_0x5c863c(0x21d)},'accessKey':{'value':_0x45c0af['accessKey']||_0x57daa5[_0x5c863c(0x200)],'source':_0x45c0af[_0x5c863c(0x200)]?_0x5c863c(0x20e):_0x5c863c(0x21d)}};}export function buildCanonicalAppConfig(_0x86fff5,_0x1ae522){const _0x1a7a3b=a171_0x37caf0,_0x138207=_0x86fff5[_0x1a7a3b(0x1ff)](_0x1260dc=>String(_0x1260dc||'')['trim']())[_0x1a7a3b(0x21a)](Boolean);if(_0x138207[_0x1a7a3b(0x1fe)]===0x0)return{};const _0x2a4e31={};for(const _0x98052f of _0x138207){_0x2a4e31[_0x98052f]=_0x1ae522?{'appcode':_0x98052f,'env':_0x1ae522}:{'appcode':_0x98052f};}return{'apps':_0x2a4e31,'defaultApp':_0x138207[0x0]};}export function buildCanonicalProjectConfig(_0x5e1a34,_0x44d105){const _0x47c9c0=a171_0x37caf0,{appCodes:appCodes=[],env:_0x321b28,metadata:_0x11cc6b}=_0x44d105,_0x59c754={..._0x5e1a34,..._0x11cc6b||{}};delete _0x59c754[_0x47c9c0(0x220)],delete _0x59c754['app'];if(_0x321b28)_0x59c754[_0x47c9c0(0x1fb)]=_0x321b28;else!_0x59c754[_0x47c9c0(0x1fb)]&&(_0x59c754['env']=DEFAULT_CONFIG_VALUES['env']);const _0x1e3652=buildCanonicalAppConfig(appCodes,_0x59c754['env']);return Object[_0x47c9c0(0x217)](_0x1e3652)[_0x47c9c0(0x1fe)]>0x0&&(_0x59c754[_0x47c9c0(0x205)]=_0x1e3652[_0x47c9c0(0x205)],_0x59c754['defaultApp']=_0x1e3652[_0x47c9c0(0x201)]),_0x59c754;}const LOCALE_MAP={'zh':a171_0x37caf0(0x20a),'zh-cn':a171_0x37caf0(0x20a),'zh_cn':a171_0x37caf0(0x20a),'en':a171_0x37caf0(0x208),'en-us':a171_0x37caf0(0x208),'en_us':'en-US'};export function normalizeLocale(_0x399836){const _0x86ba80=a171_0x37caf0;if(!_0x399836)return null;return LOCALE_MAP[_0x399836[_0x86ba80(0x20b)]()]??null;}
1
+ const a181_0x5a2f3e=a181_0x3a07;(function(_0x4ccb3e,_0xbd3733){const _0x49408f=a181_0x3a07,_0xc54d7a=_0x4ccb3e();while(!![]){try{const _0x2ad9fc=-parseInt(_0x49408f(0x163))/0x1*(parseInt(_0x49408f(0x161))/0x2)+-parseInt(_0x49408f(0x168))/0x3+-parseInt(_0x49408f(0x14d))/0x4*(parseInt(_0x49408f(0x16a))/0x5)+-parseInt(_0x49408f(0x145))/0x6+-parseInt(_0x49408f(0x16b))/0x7*(-parseInt(_0x49408f(0x169))/0x8)+parseInt(_0x49408f(0x166))/0x9*(parseInt(_0x49408f(0x15b))/0xa)+-parseInt(_0x49408f(0x160))/0xb*(-parseInt(_0x49408f(0x144))/0xc);if(_0x2ad9fc===_0xbd3733)break;else _0xc54d7a['push'](_0xc54d7a['shift']());}catch(_0xc8e8db){_0xc54d7a['push'](_0xc54d7a['shift']());}}}(a181_0x7a7f,0xf39e2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a181_0x3a07(_0x51aaf6,_0x3d523a){_0x51aaf6=_0x51aaf6-0x144;const _0x7a7f5c=a181_0x7a7f();let _0x3a073d=_0x7a7f5c[_0x51aaf6];return _0x3a073d;}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=['cookie','accessKey',a181_0x5a2f3e(0x147),'format',a181_0x5a2f3e(0x165)];function a181_0x7a7f(){const _0x5959f9=['accessKey','entries','join','apiDir','zh-CN','20580pTWmBz','Target\x20environment','pageSize','number','Config\x20key\x20(','5226947AaoUfn','8zZiBLF','Default\x20page\x20size','429348cCTZmm','cookie','riskLevel','8361eQMCPI','Locale','2698767blKErN','7819736SCussE','3814315BuPipm','14yzomPV','appcode','Risk\x20level','36fNpngC','5487870iwnLvr','defaultApp','locale','apps','inherit','defaultFormat','string','API\x20directory\x20path','4CnCqBG','length','app','format','en-US','trim','keys','env','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)'];a181_0x7a7f=function(){return _0x5959f9;};return a181_0x7a7f();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a181_0x5a2f3e(0x16c),a181_0x5a2f3e(0x154),a181_0x5a2f3e(0x147),a181_0x5a2f3e(0x150),a181_0x5a2f3e(0x164),a181_0x5a2f3e(0x156),a181_0x5a2f3e(0x159)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x58fb7c){const _0x2854c2=a181_0x5a2f3e;return[..._0x58fb7c][_0x2854c2(0x158)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x22edbd){return TOP_LEVEL_CONFIG_KEYS['has'](_0x22edbd);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x25113f=a181_0x5a2f3e;return _0x25113f(0x15f)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a181_0x5a2f3e(0x154),'apiDir':a181_0x5a2f3e(0x159),'cookie':a181_0x5a2f3e(0x164),'accessKey':'accessKey','defaultFormat':a181_0x5a2f3e(0x150),'pageSize':'pageSize','riskLevel':a181_0x5a2f3e(0x165),'locale':a181_0x5a2f3e(0x147)};export function getAppProfileFlagDefs(){const _0x41f4d2=a181_0x5a2f3e;return[{'name':'env','type':_0x41f4d2(0x14b),'description':_0x41f4d2(0x15c),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x41f4d2(0x14c)},{'name':_0x41f4d2(0x164),'type':'string','description':'Auth\x20cookie','hidden':!![]},{'name':_0x41f4d2(0x156),'type':_0x41f4d2(0x14b),'description':'Access\x20key','hidden':!![]},{'name':_0x41f4d2(0x14a),'type':'string','description':_0x41f4d2(0x155),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x41f4d2(0x15d),'type':_0x41f4d2(0x15e),'description':_0x41f4d2(0x162)},{'name':_0x41f4d2(0x165),'type':_0x41f4d2(0x14b),'description':_0x41f4d2(0x16d),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x41f4d2(0x167)}];}export function collectAppProfileOverrides(_0xf759bc){const _0x24ddb3=a181_0x5a2f3e,_0x56bf5f={};for(const [_0x31f517,_0xae4201]of Object[_0x24ddb3(0x157)](APP_PROFILE_FLAG_KEY_MAP)){const _0x30587e=_0xf759bc(_0x31f517);if(!_0x30587e)continue;_0x56bf5f[_0xae4201]=_0xae4201===_0x24ddb3(0x15d)?Number(_0x30587e):_0x30587e;}return _0x56bf5f;}export function buildAppProfileListFields(_0x18b139){const _0x31f2b3=a181_0x5a2f3e;return{'env':_0x18b139[_0x31f2b3(0x154)]??null,'apiDir':_0x18b139['apiDir']??null,'hasCookie':!!_0x18b139[_0x31f2b3(0x164)],'hasAccessKey':!!_0x18b139[_0x31f2b3(0x156)],'format':_0x18b139[_0x31f2b3(0x150)]??null,'pageSize':_0x18b139[_0x31f2b3(0x15d)]??null,'riskLevel':_0x18b139['riskLevel']??null,'locale':_0x18b139[_0x31f2b3(0x147)]??null};}export function buildAppDoctorFields(_0x31e6ef,_0x3e09c1){const _0x355fee=a181_0x5a2f3e;return{'env':{'value':_0x31e6ef['env']||_0x3e09c1[_0x355fee(0x154)],'source':_0x31e6ef[_0x355fee(0x154)]?'app':_0x355fee(0x149)},'apiDir':{'value':_0x31e6ef[_0x355fee(0x159)]||_0x3e09c1[_0x355fee(0x159)],'source':_0x31e6ef[_0x355fee(0x159)]?_0x355fee(0x14f):'inherit'},'cookie':{'value':_0x31e6ef[_0x355fee(0x164)]||_0x3e09c1[_0x355fee(0x164)],'source':_0x31e6ef[_0x355fee(0x164)]?'app':_0x355fee(0x149)},'accessKey':{'value':_0x31e6ef[_0x355fee(0x156)]||_0x3e09c1[_0x355fee(0x156)],'source':_0x31e6ef[_0x355fee(0x156)]?_0x355fee(0x14f):_0x355fee(0x149)}};}export function buildCanonicalAppConfig(_0x331248,_0x1afaf9){const _0xf3b93d=a181_0x5a2f3e,_0x5075c2=_0x331248['map'](_0x1559dd=>String(_0x1559dd||'')[_0xf3b93d(0x152)]())['filter'](Boolean);if(_0x5075c2[_0xf3b93d(0x14e)]===0x0)return{};const _0x4b390c={};for(const _0x5a8ae3 of _0x5075c2){_0x4b390c[_0x5a8ae3]=_0x1afaf9?{'appcode':_0x5a8ae3,'env':_0x1afaf9}:{'appcode':_0x5a8ae3};}return{'apps':_0x4b390c,'defaultApp':_0x5075c2[0x0]};}export function buildCanonicalProjectConfig(_0x2dc5b8,_0x296979){const _0xd65f62=a181_0x5a2f3e,{appCodes:appCodes=[],env:_0x1e3b92,metadata:_0x5926b2}=_0x296979,_0x3e2463={..._0x2dc5b8,..._0x5926b2||{}};delete _0x3e2463['appcode'],delete _0x3e2463['app'];if(_0x1e3b92)_0x3e2463[_0xd65f62(0x154)]=_0x1e3b92;else!_0x3e2463[_0xd65f62(0x154)]&&(_0x3e2463[_0xd65f62(0x154)]=DEFAULT_CONFIG_VALUES[_0xd65f62(0x154)]);const _0x362f90=buildCanonicalAppConfig(appCodes,_0x3e2463[_0xd65f62(0x154)]);return Object[_0xd65f62(0x153)](_0x362f90)[_0xd65f62(0x14e)]>0x0&&(_0x3e2463[_0xd65f62(0x148)]=_0x362f90[_0xd65f62(0x148)],_0x3e2463[_0xd65f62(0x146)]=_0x362f90[_0xd65f62(0x146)]),_0x3e2463;}const LOCALE_MAP={'zh':a181_0x5a2f3e(0x15a),'zh-cn':a181_0x5a2f3e(0x15a),'zh_cn':a181_0x5a2f3e(0x15a),'en':a181_0x5a2f3e(0x151),'en-us':a181_0x5a2f3e(0x151),'en_us':a181_0x5a2f3e(0x151)};export function normalizeLocale(_0x92b54e){if(!_0x92b54e)return null;return LOCALE_MAP[_0x92b54e['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a172_0x2151(){const _0x56b799=['1634414bqtrzt','52JNFgkU','750018OYBGjy','9VjTCCL','11381700drgFED','3425124PghuBC','7xtlPqf','401819mztWHT','12290364YtOChf','435905CVloXu','8VdbLDE','180mNqeSz','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json'];a172_0x2151=function(){return _0x56b799;};return a172_0x2151();}function a172_0x4bf1(_0x1c7fba,_0x303b93){_0x1c7fba=_0x1c7fba-0x1ba;const _0x215103=a172_0x2151();let _0x4bf133=_0x215103[_0x1c7fba];return _0x4bf133;}const a172_0x164431=a172_0x4bf1;(function(_0x3dec52,_0x52666c){const _0x5ee2a8=a172_0x4bf1,_0x3e90d6=_0x3dec52();while(!![]){try{const _0x2ccfcf=-parseInt(_0x5ee2a8(0x1c1))/0x1+parseInt(_0x5ee2a8(0x1c3))/0x2*(parseInt(_0x5ee2a8(0x1c4))/0x3)+parseInt(_0x5ee2a8(0x1c2))/0x4*(-parseInt(_0x5ee2a8(0x1bd))/0x5)+parseInt(_0x5ee2a8(0x1c6))/0x6*(parseInt(_0x5ee2a8(0x1ba))/0x7)+parseInt(_0x5ee2a8(0x1be))/0x8*(parseInt(_0x5ee2a8(0x1bc))/0x9)+parseInt(_0x5ee2a8(0x1c5))/0xa+parseInt(_0x5ee2a8(0x1bb))/0xb*(-parseInt(_0x5ee2a8(0x1bf))/0xc);if(_0x2ccfcf===_0x52666c)break;else _0x3e90d6['push'](_0x3e90d6['shift']());}catch(_0x5d337c){_0x3e90d6['push'](_0x3e90d6['shift']());}}}(a172_0x2151,0xd7ce9));export const CLI_VERSION_POLICY_URL=a172_0x164431(0x1c0);
1
+ const a182_0x55c11d=a182_0x2d3d;(function(_0x251583,_0x5628ce){const _0x39d66d=a182_0x2d3d,_0x3313e4=_0x251583();while(!![]){try{const _0x2c52e3=-parseInt(_0x39d66d(0xf9))/0x1*(parseInt(_0x39d66d(0xfb))/0x2)+-parseInt(_0x39d66d(0xf8))/0x3*(-parseInt(_0x39d66d(0xf0))/0x4)+-parseInt(_0x39d66d(0xf3))/0x5+parseInt(_0x39d66d(0xf1))/0x6+-parseInt(_0x39d66d(0xf4))/0x7+parseInt(_0x39d66d(0xf5))/0x8*(parseInt(_0x39d66d(0xf2))/0x9)+parseInt(_0x39d66d(0xfa))/0xa*(parseInt(_0x39d66d(0xf7))/0xb);if(_0x2c52e3===_0x5628ce)break;else _0x3313e4['push'](_0x3313e4['shift']());}catch(_0x2cea0c){_0x3313e4['push'](_0x3313e4['shift']());}}}(a182_0x1da4,0x5da45));function a182_0x2d3d(_0x222c03,_0x2072f7){_0x222c03=_0x222c03-0xf0;const _0x1da4c9=a182_0x1da4();let _0x2d3dbc=_0x1da4c9[_0x222c03];return _0x2d3dbc;}export const CLI_VERSION_POLICY_URL=a182_0x55c11d(0xf6);function a182_0x1da4(){const _0xc1d4dd=['152qLjMVj','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','20372XwGUMW','9IXSrvC','309318HmNdAD','7330EIWLWN','4OwEVLS','303368qgtaTi','1122654TMWUbh','39645rBWHIp','734235ILYAFF','4947642klHOQd'];a182_0x1da4=function(){return _0xc1d4dd;};return a182_0x1da4();}
@@ -1 +1 @@
1
- const a173_0x1e99a9=a173_0x23c4;(function(_0x1fb75a,_0x15b489){const _0x42673b=a173_0x23c4,_0x3f0fa8=_0x1fb75a();while(!![]){try{const _0x41e04b=parseInt(_0x42673b(0x172))/0x1+-parseInt(_0x42673b(0x164))/0x2*(-parseInt(_0x42673b(0x18a))/0x3)+-parseInt(_0x42673b(0x159))/0x4+-parseInt(_0x42673b(0x1a4))/0x5+-parseInt(_0x42673b(0x1a6))/0x6*(parseInt(_0x42673b(0x15f))/0x7)+parseInt(_0x42673b(0x14e))/0x8*(parseInt(_0x42673b(0x13f))/0x9)+-parseInt(_0x42673b(0x1aa))/0xa*(-parseInt(_0x42673b(0x18b))/0xb);if(_0x41e04b===_0x15b489)break;else _0x3f0fa8['push'](_0x3f0fa8['shift']());}catch(_0x4478a8){_0x3f0fa8['push'](_0x3f0fa8['shift']());}}}(a173_0x1ae3,0x7e651));export const CLI_BIN_NAME=a173_0x1e99a9(0x1a5);export const CLI_DISPLAY_NAME=a173_0x1e99a9(0x17e);function a173_0x23c4(_0x47bf78,_0x3974e0){_0x47bf78=_0x47bf78-0x13a;const _0x1ae324=a173_0x1ae3();let _0x23c42e=_0x1ae324[_0x47bf78];return _0x23c42e;}export const NPM_PACKAGE_NAME=a173_0x1e99a9(0x151);function a173_0x1ae3(){const _0x1fcad8=['Page\x20number','dbid','functionNode','force','description-file','Keyword\x20filter','Force\x20non-interactive\x20mode\x20(CI)','Alias\x20for\x20--non-interactive','enable-bff-save','output','Read\x20value\x20from\x20environment\x20variable','stdin','3036720UcUPVr','rabetbase','379554VaBzES','Expected\x20affected\x20count','descriptionFile','watch','3527380SZPZQM','params','expectedCount','keyword','Dataset\x20code','DB\x20ID','18fAAcOh','dbId','Page\x20size','sql','non-interactive','Description\x20file','appcode','target','Watch\x20mode','datasetcode','Use\x20global\x20config\x20scope','tags','page','Output\x20format','boolean','3151424ziYgNI','verbose','SQL\x20string','@lovrabet/rabetbase-cli','name','Select\x20app\x20profile\x20by\x20name','File\x20path','JSON\x20params','app','Title','project','2321448UePDNv','json\x20|\x20pretty\x20|\x20compress','value','Confirm\x20destructive\x20action','remote','sqlname','49VDTAVm','skip-imports','description','key','env','1653854QJTUXD','sql-name','Output\x20path','nonInteractive','operation','title','global','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Environment','Use\x20remote','sqlcode','Preview\x20operation\x20without\x20executing','Config\x20value','Enable\x20BFF\x20save','180711mCLBHK','Verbose\x20output','yes','Type\x20filter','all','dryRun','reveal','string','clear','<code>','pagesize','Reveal\x20sensitive\x20value','Rabetbase\x20CLI','Operation\x20type','Schemas','<expr>','SQL\x20name','Override\x20appcode','file','Read\x20value\x20from\x20stdin','Skip\x20import\x20generation','map','Use\x20project\x20config\x20scope','Description','3zNYzqI','11QAYwsA','Record\x20ID','sqlName','Force\x20overwrite','Target\x20path','db-id','type','dry-run','function-node','operationType','schemas','code','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a173_0x1ae3=function(){return _0x1fcad8;};return a173_0x1ae3();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a173_0x1e99a9(0x145),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x183),'hint':a173_0x1e99a9(0x17b)},{'name':a173_0x1e99a9(0x156),'meowKey':a173_0x1e99a9(0x156),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x153),'hint':'<name>'},{'name':a173_0x1e99a9(0x163),'meowKey':a173_0x1e99a9(0x163),'type':'string','description':a173_0x1e99a9(0x16c),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':'format','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x14c),'hint':a173_0x1e99a9(0x15a)},{'name':'jq','meowKey':'jq','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x16b),'hint':a173_0x1e99a9(0x181)},{'name':a173_0x1e99a9(0x192),'meowKey':a173_0x1e99a9(0x177),'type':'boolean','description':a173_0x1e99a9(0x16f)},{'name':'yes','meowKey':a173_0x1e99a9(0x174),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x197)},{'name':a173_0x1e99a9(0x143),'meowKey':a173_0x1e99a9(0x167),'type':'boolean','description':a173_0x1e99a9(0x19e)},{'name':a173_0x1e99a9(0x16a),'meowKey':a173_0x1e99a9(0x16a),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x149)},{'name':'project','meowKey':a173_0x1e99a9(0x158),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x188)},{'name':'ci','meowKey':'ci','type':'boolean','description':a173_0x1e99a9(0x19f),'hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a173_0x1e99a9(0x152),'meowKey':a173_0x1e99a9(0x152),'type':a173_0x1e99a9(0x179),'description':'Name','hidden':!![]},{'name':a173_0x1e99a9(0x169),'meowKey':a173_0x1e99a9(0x169),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x157),'hidden':!![]},{'name':a173_0x1e99a9(0x17a),'meowKey':'clear','type':'boolean','description':'Clear','hidden':!![]},{'name':a173_0x1e99a9(0x1a9),'meowKey':a173_0x1e99a9(0x1a9),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x147),'hidden':!![]},{'name':a173_0x1e99a9(0x1a1),'meowKey':'output','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x166),'hidden':!![]},{'name':'params','meowKey':a173_0x1e99a9(0x13a),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x155),'hidden':!![]},{'name':a173_0x1e99a9(0x148),'meowKey':a173_0x1e99a9(0x148),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13d),'hidden':!![]},{'name':a173_0x1e99a9(0x176),'meowKey':a173_0x1e99a9(0x176),'type':a173_0x1e99a9(0x14d),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a173_0x1e99a9(0x1a0),'meowKey':'enableBffSave','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x171),'hidden':!![]},{'name':'id','meowKey':'id','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18c),'hidden':!![]},{'name':'type','meowKey':'type','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x175),'hidden':!![]},{'name':a173_0x1e99a9(0x184),'meowKey':'file','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x154),'hidden':!![]},{'name':a173_0x1e99a9(0x16e),'meowKey':'sqlcode','type':'string','description':'SQL\x20code','hidden':!![]},{'name':a173_0x1e99a9(0x165),'meowKey':a173_0x1e99a9(0x18d),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x182),'hidden':!![]},{'name':'sqlname','meowKey':a173_0x1e99a9(0x15e),'type':a173_0x1e99a9(0x179),'description':'SQL\x20name','hidden':!![]},{'name':a173_0x1e99a9(0x190),'meowKey':a173_0x1e99a9(0x140),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x199),'meowKey':a173_0x1e99a9(0x199),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x13e),'hidden':!![]},{'name':a173_0x1e99a9(0x161),'meowKey':a173_0x1e99a9(0x161),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x189),'hidden':!![]},{'name':a173_0x1e99a9(0x19c),'meowKey':a173_0x1e99a9(0x1a8),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x144),'hidden':!![]},{'name':a173_0x1e99a9(0x14b),'meowKey':'page','type':'string','description':a173_0x1e99a9(0x198),'hidden':!![]},{'name':a173_0x1e99a9(0x17c),'meowKey':'pagesize','type':'string','description':a173_0x1e99a9(0x141),'hidden':!![]},{'name':a173_0x1e99a9(0x13c),'meowKey':a173_0x1e99a9(0x13c),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x19d),'hidden':!![]},{'name':a173_0x1e99a9(0x196),'meowKey':'code','type':'string','description':'Code\x20filter','hidden':!![]},{'name':a173_0x1e99a9(0x142),'meowKey':a173_0x1e99a9(0x142),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x150),'hidden':!![]},{'name':a173_0x1e99a9(0x195),'meowKey':a173_0x1e99a9(0x195),'type':'string','description':a173_0x1e99a9(0x180),'hidden':!![]},{'name':'operation','meowKey':a173_0x1e99a9(0x168),'type':a173_0x1e99a9(0x179),'description':'Operation\x20type','hidden':!![]},{'name':a173_0x1e99a9(0x146),'meowKey':'target','type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x18f),'hidden':!![]},{'name':a173_0x1e99a9(0x160),'meowKey':'skipImports','type':'boolean','description':a173_0x1e99a9(0x186),'hidden':!![]},{'name':a173_0x1e99a9(0x162),'meowKey':a173_0x1e99a9(0x162),'type':'string','description':'Config\x20key','hidden':!![]},{'name':a173_0x1e99a9(0x15b),'meowKey':a173_0x1e99a9(0x15b),'type':'string','description':a173_0x1e99a9(0x170),'hidden':!![]},{'name':a173_0x1e99a9(0x14a),'meowKey':'tags','type':a173_0x1e99a9(0x179),'description':'Tags','hidden':!![]},{'name':a173_0x1e99a9(0x1a3),'meowKey':a173_0x1e99a9(0x1a3),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x185),'hidden':!![]},{'name':'from-env','meowKey':'fromEnv','type':'string','description':a173_0x1e99a9(0x1a2),'hidden':!![]},{'name':a173_0x1e99a9(0x178),'meowKey':'reveal','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x17d),'hidden':!![]},{'name':a173_0x1e99a9(0x19b),'meowKey':a173_0x1e99a9(0x19b),'type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x18e),'hidden':!![]},{'name':'confirm','meowKey':'confirm','type':'boolean','description':a173_0x1e99a9(0x15c),'hidden':!![]},{'name':a173_0x1e99a9(0x15d),'meowKey':'remote','type':a173_0x1e99a9(0x14d),'description':a173_0x1e99a9(0x16d),'hidden':!![]},{'name':'verbose','meowKey':a173_0x1e99a9(0x14f),'type':'boolean','description':a173_0x1e99a9(0x173),'hidden':!![]},{'name':'expected-count','meowKey':a173_0x1e99a9(0x13b),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x1a7),'hidden':!![]},{'name':'operation-type','meowKey':a173_0x1e99a9(0x194),'type':a173_0x1e99a9(0x179),'description':a173_0x1e99a9(0x17f),'hidden':!![]},{'name':a173_0x1e99a9(0x193),'meowKey':a173_0x1e99a9(0x19a),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a173_0x1e99a9(0x145),'app',a173_0x1e99a9(0x163),'format','jq',a173_0x1e99a9(0x192),'yes',a173_0x1e99a9(0x143),'ci']);export function buildMeowFlags(){const _0x5dec7d=a173_0x1e99a9;return Object['fromEntries'](GLOBAL_FLAGS[_0x5dec7d(0x187)](_0x41769a=>[_0x41769a['meowKey'],{'type':_0x41769a[_0x5dec7d(0x191)]}]));}
1
+ const a183_0x28eb82=a183_0x2d3a;(function(_0x432d12,_0x4f1a2d){const _0x2d6146=a183_0x2d3a,_0x1f90a9=_0x432d12();while(!![]){try{const _0x12a2f1=-parseInt(_0x2d6146(0x13f))/0x1+-parseInt(_0x2d6146(0x143))/0x2*(-parseInt(_0x2d6146(0x124))/0x3)+parseInt(_0x2d6146(0x16e))/0x4+-parseInt(_0x2d6146(0x12b))/0x5+parseInt(_0x2d6146(0x140))/0x6*(parseInt(_0x2d6146(0x184))/0x7)+parseInt(_0x2d6146(0x164))/0x8+parseInt(_0x2d6146(0x162))/0x9*(parseInt(_0x2d6146(0x114))/0xa);if(_0x12a2f1===_0x4f1a2d)break;else _0x1f90a9['push'](_0x1f90a9['shift']());}catch(_0x366b69){_0x1f90a9['push'](_0x1f90a9['shift']());}}}(a183_0x5bd3,0x2ba4a));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a183_0x28eb82(0x13a);function a183_0x5bd3(){const _0x5d62f9=['Expected\x20current\x20menu\x20path','reveal','sqlname','dry-run','db-id','Force\x20non-interactive\x20mode\x20(CI)','Apply\x20to\x20all','Description\x20file','all','Rabetbase\x20CLI','label','Enable\x20BFF\x20save','dbid','tags','127836EypTMm','1096506tZYdGz','datasetcode','operation','82DbaHDB','sql','menu-ids','sqlName','JSON\x20params','enable-bff-save','Override\x20appcode','output','from-env','Description','dryRun','description','Preview\x20operation\x20without\x20executing','json\x20|\x20pretty\x20|\x20compress','name','fromEntries','Verbose\x20output','env','stdin','meowKey','expected-children-count','page','boolean','params','Show\x20help','format','help','<name>','Name','Function\x20node','appcode','9yqDewN','file','748552vTZPdM','expectParentId','Use\x20global\x20config\x20scope','expectedCount','code','clear','dbId','non-interactive','SQL\x20code','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','78208wLlltP','target','schemas','pagesize','Read\x20value\x20from\x20environment\x20variable','watch','SQL\x20string','sqlcode','Skip\x20import\x20generation','project','global','string','SQL\x20name','Dataset\x20code','Target\x20path','map','Confirm\x20destructive\x20action','skipImports','sort','Skip\x20confirmation\x20for\x20high-risk\x20writes','title','<code>','7FfDLpu','operationType','Parent\x20menu\x20id','Watch\x20mode','<expr>','Type\x20filter','fromEnv','expect-parent-id','Keyword\x20filter','@lovrabet/rabetbase-cli','force','parent-id','value','enableBffSave','type','3180610OzEuvW','operation-type','Page\x20number','Use\x20remote','Force\x20overwrite','Title','remote','function-node','Expected\x20affected\x20count','yes','confirm','app','Output\x20path','expected-count','Page\x20size','Use\x20project\x20config\x20scope','1611eZQvTP','description-file','Menu\x20sort\x20value','Select\x20app\x20profile\x20by\x20name','Reveal\x20sensitive\x20value','verbose','DB\x20ID','1646760quuIrG','File\x20path','Schemas','Operation\x20type','Comma-separated\x20menu\x20IDs','expectedChildrenCount'];a183_0x5bd3=function(){return _0x5d62f9;};return a183_0x5bd3();}export const NPM_PACKAGE_NAME=a183_0x28eb82(0x18d);function a183_0x2d3a(_0x1366ab,_0x2c83f8){_0x1366ab=_0x1366ab-0x110;const _0x5bd37b=a183_0x5bd3();let _0x2d3a85=_0x5bd37b[_0x1366ab];return _0x2d3a85;}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a183_0x28eb82(0x161),'type':'string','description':a183_0x28eb82(0x149),'hint':a183_0x28eb82(0x183)},{'name':a183_0x28eb82(0x11f),'meowKey':a183_0x28eb82(0x11f),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x127),'hint':a183_0x28eb82(0x15e)},{'name':'env','meowKey':a183_0x28eb82(0x154),'type':'string','description':'Environment','hint':'production\x20|\x20daily'},{'name':a183_0x28eb82(0x15c),'meowKey':a183_0x28eb82(0x15c),'type':a183_0x28eb82(0x179),'description':'Output\x20format','hint':a183_0x28eb82(0x150)},{'name':'jq','meowKey':'jq','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x16d),'hint':a183_0x28eb82(0x188)},{'name':'dry-run','meowKey':a183_0x28eb82(0x14d),'type':'boolean','description':a183_0x28eb82(0x14f)},{'name':a183_0x28eb82(0x11d),'meowKey':a183_0x28eb82(0x11d),'type':'boolean','description':a183_0x28eb82(0x181)},{'name':a183_0x28eb82(0x16b),'meowKey':'nonInteractive','type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x136)},{'name':'global','meowKey':a183_0x28eb82(0x178),'type':'boolean','description':a183_0x28eb82(0x166)},{'name':a183_0x28eb82(0x177),'meowKey':a183_0x28eb82(0x177),'type':'boolean','description':a183_0x28eb82(0x123)},{'name':'ci','meowKey':'ci','type':a183_0x28eb82(0x159),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a183_0x28eb82(0x15d),'meowKey':a183_0x28eb82(0x15d),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x15b)},{'name':a183_0x28eb82(0x151),'meowKey':'name','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x15f),'hidden':!![]},{'name':a183_0x28eb82(0x182),'meowKey':a183_0x28eb82(0x182),'type':'string','description':a183_0x28eb82(0x119),'hidden':!![]},{'name':a183_0x28eb82(0x169),'meowKey':a183_0x28eb82(0x169),'type':a183_0x28eb82(0x159),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a183_0x28eb82(0x173),'type':'boolean','description':a183_0x28eb82(0x187),'hidden':!![]},{'name':a183_0x28eb82(0x14a),'meowKey':a183_0x28eb82(0x14a),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x120),'hidden':!![]},{'name':a183_0x28eb82(0x15a),'meowKey':a183_0x28eb82(0x15a),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x147),'hidden':!![]},{'name':a183_0x28eb82(0x141),'meowKey':a183_0x28eb82(0x141),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x17b),'hidden':!![]},{'name':a183_0x28eb82(0x139),'meowKey':a183_0x28eb82(0x139),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x137),'hidden':!![]},{'name':a183_0x28eb82(0x148),'meowKey':a183_0x28eb82(0x112),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x13c),'hidden':!![]},{'name':'id','meowKey':'id','type':a183_0x28eb82(0x179),'description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a183_0x28eb82(0x113),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x189),'hidden':!![]},{'name':a183_0x28eb82(0x163),'meowKey':a183_0x28eb82(0x163),'type':'string','description':a183_0x28eb82(0x12c),'hidden':!![]},{'name':a183_0x28eb82(0x175),'meowKey':a183_0x28eb82(0x175),'type':'string','description':a183_0x28eb82(0x16c),'hidden':!![]},{'name':'sql-name','meowKey':a183_0x28eb82(0x146),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x17a),'hidden':!![]},{'name':a183_0x28eb82(0x133),'meowKey':a183_0x28eb82(0x133),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x17a),'hidden':!![]},{'name':a183_0x28eb82(0x135),'meowKey':a183_0x28eb82(0x16a),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x12a),'hidden':!![]},{'name':a183_0x28eb82(0x13d),'meowKey':'dbid','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x12a),'hidden':!![]},{'name':a183_0x28eb82(0x14e),'meowKey':a183_0x28eb82(0x14e),'type':'string','description':a183_0x28eb82(0x14c),'hidden':!![]},{'name':a183_0x28eb82(0x125),'meowKey':'descriptionFile','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x138),'hidden':!![]},{'name':a183_0x28eb82(0x158),'meowKey':a183_0x28eb82(0x158),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x116),'hidden':!![]},{'name':a183_0x28eb82(0x171),'meowKey':a183_0x28eb82(0x171),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x122),'hidden':!![]},{'name':'keyword','meowKey':'keyword','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x18c),'hidden':!![]},{'name':a183_0x28eb82(0x168),'meowKey':a183_0x28eb82(0x168),'type':a183_0x28eb82(0x179),'description':'Code\x20filter','hidden':!![]},{'name':'sql','meowKey':a183_0x28eb82(0x144),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x174),'hidden':!![]},{'name':a183_0x28eb82(0x170),'meowKey':'schemas','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x12d),'hidden':!![]},{'name':a183_0x28eb82(0x142),'meowKey':a183_0x28eb82(0x142),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x12e),'hidden':!![]},{'name':a183_0x28eb82(0x16f),'meowKey':'target','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x17c),'hidden':!![]},{'name':'skip-imports','meowKey':a183_0x28eb82(0x17f),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x176),'hidden':!![]},{'name':'key','meowKey':'key','type':a183_0x28eb82(0x179),'description':'Config\x20key','hidden':!![]},{'name':a183_0x28eb82(0x111),'meowKey':a183_0x28eb82(0x111),'type':a183_0x28eb82(0x179),'description':'Config\x20value','hidden':!![]},{'name':a183_0x28eb82(0x13e),'meowKey':'tags','type':a183_0x28eb82(0x179),'description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a183_0x28eb82(0x155),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a183_0x28eb82(0x14b),'meowKey':a183_0x28eb82(0x18a),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x172),'hidden':!![]},{'name':'reveal','meowKey':a183_0x28eb82(0x132),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x128),'hidden':!![]},{'name':a183_0x28eb82(0x18e),'meowKey':a183_0x28eb82(0x18e),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x118),'hidden':!![]},{'name':a183_0x28eb82(0x11e),'meowKey':a183_0x28eb82(0x11e),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x17e),'hidden':!![]},{'name':'remote','meowKey':a183_0x28eb82(0x11a),'type':'boolean','description':a183_0x28eb82(0x117),'hidden':!![]},{'name':a183_0x28eb82(0x129),'meowKey':a183_0x28eb82(0x129),'type':a183_0x28eb82(0x159),'description':a183_0x28eb82(0x153),'hidden':!![]},{'name':a183_0x28eb82(0x121),'meowKey':a183_0x28eb82(0x167),'type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x11c),'hidden':!![]},{'name':a183_0x28eb82(0x13b),'meowKey':'label','type':a183_0x28eb82(0x179),'description':'Menu\x20label','hidden':!![]},{'name':a183_0x28eb82(0x110),'meowKey':'parentId','type':'string','description':a183_0x28eb82(0x186),'hidden':!![]},{'name':a183_0x28eb82(0x180),'meowKey':'sort','type':'string','description':a183_0x28eb82(0x126),'hidden':!![]},{'name':a183_0x28eb82(0x18b),'meowKey':a183_0x28eb82(0x165),'type':a183_0x28eb82(0x179),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x131),'hidden':!![]},{'name':a183_0x28eb82(0x157),'meowKey':a183_0x28eb82(0x130),'type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a183_0x28eb82(0x145),'meowKey':'menuIds','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x12f),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a183_0x28eb82(0x179),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a183_0x28eb82(0x115),'meowKey':a183_0x28eb82(0x185),'type':'string','description':a183_0x28eb82(0x12e),'hidden':!![]},{'name':a183_0x28eb82(0x11b),'meowKey':'functionNode','type':a183_0x28eb82(0x179),'description':a183_0x28eb82(0x160),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode','app','env',a183_0x28eb82(0x15c),'jq',a183_0x28eb82(0x134),a183_0x28eb82(0x11d),a183_0x28eb82(0x16b),'ci']);export function buildMeowFlags(){const _0x249333=a183_0x28eb82;return Object[_0x249333(0x152)](GLOBAL_FLAGS[_0x249333(0x17d)](_0xd156d5=>[_0xd156d5[_0x249333(0x156)],{'type':_0xd156d5[_0x249333(0x113)]}]));}
@@ -1 +1 @@
1
- const a174_0x53472f=a174_0x2849;(function(_0x23d44f,_0xedf660){const _0x18e807=a174_0x2849,_0xe759fc=_0x23d44f();while(!![]){try{const _0x1d22cd=parseInt(_0x18e807(0x19e))/0x1*(parseInt(_0x18e807(0x1a0))/0x2)+parseInt(_0x18e807(0x1a6))/0x3+-parseInt(_0x18e807(0x1a2))/0x4+-parseInt(_0x18e807(0x19a))/0x5*(-parseInt(_0x18e807(0x19f))/0x6)+parseInt(_0x18e807(0x1a3))/0x7*(-parseInt(_0x18e807(0x1a4))/0x8)+parseInt(_0x18e807(0x1a7))/0x9*(parseInt(_0x18e807(0x1a1))/0xa)+parseInt(_0x18e807(0x19d))/0xb*(parseInt(_0x18e807(0x1a5))/0xc);if(_0x1d22cd===_0xedf660)break;else _0xe759fc['push'](_0xe759fc['shift']());}catch(_0x35f735){_0xe759fc['push'](_0xe759fc['shift']());}}}(a174_0x3f09,0xc5444));import{DEFAULT_API_DIR}from'../constant/paths.js';function a174_0x2849(_0x2c67b7,_0xa8d00c){_0x2c67b7=_0x2c67b7-0x19a;const _0x3f09a=a174_0x3f09();let _0x2849cd=_0x3f09a[_0x2c67b7];return _0x2849cd;}export const DEFAULT_CONFIG_VALUES={'env':a174_0x53472f(0x1a8),'format':'compress','locale':a174_0x53472f(0x19c),'riskLevel':a174_0x53472f(0x19b),'apiDir':DEFAULT_API_DIR};function a174_0x3f09(){const _0xd43ee7=['8206YmmjQS','9waqukf','857868mKOCeS','220278uuJiJy','20vEwOEM','1964968NFwThv','2574173WmgTsP','32hBMEbt','3300jilcyH','1489653kZFxJv','2274021MeUppC','production','20ZvRqJF','high-risk-write','en-US'];a174_0x3f09=function(){return _0xd43ee7;};return a174_0x3f09();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a184_0x176e(){const _0xf15ef2=['441369UPumbf','451177bwMpkm','1109520sTKpow','186168cnsEFx','en-US','3380620NXNRhc','3579387AiXdLs','279128aXTuDi','compress','15BYvWGq','production','24uwfwqG'];a184_0x176e=function(){return _0xf15ef2;};return a184_0x176e();}const a184_0xb1c4d4=a184_0x21bc;(function(_0x524541,_0x4b6208){const _0x473034=a184_0x21bc,_0x272209=_0x524541();while(!![]){try{const _0x3195d8=parseInt(_0x473034(0x6a))/0x1+-parseInt(_0x473034(0x6b))/0x2+parseInt(_0x473034(0x72))/0x3*(parseInt(_0x473034(0x70))/0x4)+parseInt(_0x473034(0x6e))/0x5+-parseInt(_0x473034(0x6c))/0x6+-parseInt(_0x473034(0x6f))/0x7+-parseInt(_0x473034(0x74))/0x8*(-parseInt(_0x473034(0x75))/0x9);if(_0x3195d8===_0x4b6208)break;else _0x272209['push'](_0x272209['shift']());}catch(_0x578c38){_0x272209['push'](_0x272209['shift']());}}}(a184_0x176e,0x8077d));import{DEFAULT_API_DIR}from'../constant/paths.js';function a184_0x21bc(_0x311ec3,_0x36eab7){_0x311ec3=_0x311ec3-0x6a;const _0x176e29=a184_0x176e();let _0x21bcb2=_0x176e29[_0x311ec3];return _0x21bcb2;}export const DEFAULT_CONFIG_VALUES={'env':a184_0xb1c4d4(0x73),'format':a184_0xb1c4d4(0x71),'locale':a184_0xb1c4d4(0x6d),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- const a175_0x210f33=a175_0x53c2;(function(_0x48f277,_0x40bb7c){const _0x16ff65=a175_0x53c2,_0x4b0f91=_0x48f277();while(!![]){try{const _0x32feb7=-parseInt(_0x16ff65(0x116))/0x1*(parseInt(_0x16ff65(0x104))/0x2)+-parseInt(_0x16ff65(0x113))/0x3*(-parseInt(_0x16ff65(0x102))/0x4)+parseInt(_0x16ff65(0x10e))/0x5+parseInt(_0x16ff65(0x114))/0x6*(-parseInt(_0x16ff65(0x112))/0x7)+parseInt(_0x16ff65(0x105))/0x8+parseInt(_0x16ff65(0x108))/0x9+-parseInt(_0x16ff65(0x10a))/0xa*(parseInt(_0x16ff65(0x118))/0xb);if(_0x32feb7===_0x40bb7c)break;else _0x4b0f91['push'](_0x4b0f91['shift']());}catch(_0x34165e){_0x4b0f91['push'](_0x4b0f91['shift']());}}}(a175_0x35c7,0x388ee));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a175_0x53c2(_0x282bde,_0x1af9b1){_0x282bde=_0x282bde-0x102;const _0x35c73c=a175_0x35c7();let _0x53c26e=_0x35c73c[_0x282bde];return _0x53c26e;}export function initDomains(_0x1f7b46){const _0x22e891=a175_0x53c2;customApiDomain=_0x1f7b46?.[_0x22e891(0x110)],customUserDomain=_0x1f7b46?.[_0x22e891(0x107)],customRuntimeDomain=_0x1f7b46?.[_0x22e891(0x109)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a175_0x210f33(0x117):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a175_0x210f33(0x111):a175_0x210f33(0x106));function a175_0x35c7(){const _0x388718=['https://api.lovrabet.com','21oskUKn','1695jQJaQg','389250yngOuj','/app/','32edmIJC','https://user.lovrabet.com','1101287XwjLfh','856RjCXZn','/web-app/app/','10956TcVdFX','2785664vFhOZD','https://daily-api.lovrabet.com','userDomain','1920978lhndQO','runtimeDomain','10USIZOA','https://daily-runtime.lovrabet.com','https://app.lovrabet.com','https://runtime.lovrabet.com','95700wYxuJm','https://daily.lovrabet.com','apiDomain'];a175_0x35c7=function(){return _0x388718;};return a175_0x35c7();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a175_0x210f33(0x10d):a175_0x210f33(0x10b));export const getAppDomain=()=>isProduction(getEnv())?a175_0x210f33(0x10c):a175_0x210f33(0x10f);export const getAppBaseUrl=_0x4c118c=>{const _0x2e9a43=a175_0x210f33,_0x50c8b3=encodeURIComponent(_0x4c118c['trim']());return isProduction(getEnv())?getAppDomain()+_0x2e9a43(0x115)+_0x50c8b3:getAppDomain()+_0x2e9a43(0x103)+_0x50c8b3;};
1
+ function a185_0x3564(_0x4abcb6,_0x4bead8){_0x4abcb6=_0x4abcb6-0xd7;const _0x4b476f=a185_0x4b47();let _0x356418=_0x4b476f[_0x4abcb6];return _0x356418;}const a185_0x242cbe=a185_0x3564;(function(_0x31793a,_0x9d9943){const _0x50f644=a185_0x3564,_0x13d3ec=_0x31793a();while(!![]){try{const _0x5e3c94=-parseInt(_0x50f644(0xd8))/0x1+parseInt(_0x50f644(0xea))/0x2+-parseInt(_0x50f644(0xe9))/0x3+-parseInt(_0x50f644(0xe4))/0x4*(-parseInt(_0x50f644(0xe2))/0x5)+parseInt(_0x50f644(0xe7))/0x6*(parseInt(_0x50f644(0xdc))/0x7)+parseInt(_0x50f644(0xe1))/0x8+parseInt(_0x50f644(0xda))/0x9*(-parseInt(_0x50f644(0xdd))/0xa);if(_0x5e3c94===_0x9d9943)break;else _0x13d3ec['push'](_0x13d3ec['shift']());}catch(_0xafec54){_0x13d3ec['push'](_0x13d3ec['shift']());}}}(a185_0x4b47,0x424f0));import{getEnv,isProduction}from'../constant/env.js';function a185_0x4b47(){const _0x32d009=['trim','606KLVcee','https://api.lovrabet.com','575055fdRMGk','705712UJVcud','apiDomain','/app/','163123ofPpkO','/web-app/app/','5263668OqRbrP','https://daily-api.lovrabet.com','25263jYhlJW','10KZrADm','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','493480eiZmxV','150BRzhXG','https://app.lovrabet.com','57628AKGoDi','https://daily.lovrabet.com'];a185_0x4b47=function(){return _0x32d009;};return a185_0x4b47();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x5ea962){const _0x1213c6=a185_0x3564;customApiDomain=_0x5ea962?.[_0x1213c6(0xeb)],customUserDomain=_0x5ea962?.['userDomain'],customRuntimeDomain=_0x5ea962?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a185_0x242cbe(0xe0));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a185_0x242cbe(0xe8):a185_0x242cbe(0xdb));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a185_0x242cbe(0xdf):a185_0x242cbe(0xde));export const getAppDomain=()=>isProduction(getEnv())?a185_0x242cbe(0xe3):a185_0x242cbe(0xe5);export const getAppBaseUrl=_0x2f30dc=>{const _0x39f4e0=a185_0x242cbe,_0x5cd3fe=encodeURIComponent(_0x2f30dc[_0x39f4e0(0xe6)]());return isProduction(getEnv())?getAppDomain()+_0x39f4e0(0xd7)+_0x5cd3fe:getAppDomain()+_0x39f4e0(0xd9)+_0x5cd3fe;};
@@ -1 +1 @@
1
- const a176_0x5d5c31=a176_0x2341;(function(_0x2cf896,_0x10fb25){const _0x1c33f2=a176_0x2341,_0x3233a9=_0x2cf896();while(!![]){try{const _0xf06624=parseInt(_0x1c33f2(0x107))/0x1*(parseInt(_0x1c33f2(0x10e))/0x2)+-parseInt(_0x1c33f2(0x105))/0x3+parseInt(_0x1c33f2(0x10a))/0x4*(-parseInt(_0x1c33f2(0x103))/0x5)+-parseInt(_0x1c33f2(0x10c))/0x6*(-parseInt(_0x1c33f2(0x10f))/0x7)+parseInt(_0x1c33f2(0x109))/0x8+parseInt(_0x1c33f2(0x10b))/0x9+-parseInt(_0x1c33f2(0x104))/0xa;if(_0xf06624===_0x10fb25)break;else _0x3233a9['push'](_0x3233a9['shift']());}catch(_0x4f4f0e){_0x3233a9['push'](_0x3233a9['shift']());}}}(a176_0x42b3,0x1ba32));export const RABETBASE_ENV_VALUES=[a176_0x5d5c31(0x108),a176_0x5d5c31(0x110)];export function normalizeEnv(_0x5ee101){const _0x15a57c=a176_0x5d5c31;return _0x5ee101===_0x15a57c(0x106)?_0x15a57c(0x108):_0x5ee101;}export function isProduction(_0x43f707){const _0x42efa5=a176_0x5d5c31;return normalizeEnv(_0x43f707)===_0x42efa5(0x108);}function a176_0x2341(_0x5be24e,_0x48d79e){_0x5be24e=_0x5be24e-0x103;const _0x42b3f1=a176_0x42b3();let _0x23414f=_0x42b3f1[_0x5be24e];return _0x23414f;}export function isDaily(_0x18ccf9){const _0x1d24a8=a176_0x5d5c31;return normalizeEnv(_0x18ccf9)===_0x1d24a8(0x110);}export function isDev(_0x3e5cb2){const _0x1a2d9a=a176_0x5d5c31,_0x21a918=normalizeEnv(_0x3e5cb2);return _0x21a918==='development'||_0x21a918===_0x1a2d9a(0x10d);}function a176_0x42b3(){const _0x2b2ecf=['523668fdgzLn','online','2eMDyvB','production','1487080hGraMJ','21076TcMOdJ','1286568LhehBy','426fHaGPm','dev','188776yuCnNc','8407uoCmwv','daily','115zfnQWo','1939390COAURj'];a176_0x42b3=function(){return _0x2b2ecf;};return a176_0x42b3();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a176_0x5d5c31(0x108));export function getEnv(){return env;}export function initEnv(_0x443bcd){env=normalizeEnv(_0x443bcd);}
1
+ const a186_0xd35cf9=a186_0x3942;function a186_0x3942(_0x34b40e,_0x480264){_0x34b40e=_0x34b40e-0x192;const _0x2f4f4a=a186_0x2f4f();let _0x3942c8=_0x2f4f4a[_0x34b40e];return _0x3942c8;}(function(_0x1e7d57,_0x42720a){const _0x4b8b77=a186_0x3942,_0x3a5ec2=_0x1e7d57();while(!![]){try{const _0x5a6f01=-parseInt(_0x4b8b77(0x197))/0x1+-parseInt(_0x4b8b77(0x19f))/0x2*(-parseInt(_0x4b8b77(0x19a))/0x3)+-parseInt(_0x4b8b77(0x1a0))/0x4*(parseInt(_0x4b8b77(0x198))/0x5)+-parseInt(_0x4b8b77(0x193))/0x6*(parseInt(_0x4b8b77(0x19c))/0x7)+-parseInt(_0x4b8b77(0x192))/0x8*(parseInt(_0x4b8b77(0x199))/0x9)+parseInt(_0x4b8b77(0x19b))/0xa*(parseInt(_0x4b8b77(0x19e))/0xb)+-parseInt(_0x4b8b77(0x194))/0xc*(-parseInt(_0x4b8b77(0x195))/0xd);if(_0x5a6f01===_0x42720a)break;else _0x3a5ec2['push'](_0x3a5ec2['shift']());}catch(_0x594af9){_0x3a5ec2['push'](_0x3a5ec2['shift']());}}}(a186_0x2f4f,0x4073a));export const RABETBASE_ENV_VALUES=[a186_0xd35cf9(0x19d),a186_0xd35cf9(0x1a1)];export function normalizeEnv(_0x57ed6b){const _0x3f8474=a186_0xd35cf9;return _0x57ed6b===_0x3f8474(0x196)?_0x3f8474(0x19d):_0x57ed6b;}export function isProduction(_0x2ecf96){const _0x361ecf=a186_0xd35cf9;return normalizeEnv(_0x2ecf96)===_0x361ecf(0x19d);}export function isDaily(_0x360b89){const _0x142b8f=a186_0xd35cf9;return normalizeEnv(_0x360b89)===_0x142b8f(0x1a1);}export function isDev(_0x2d38c7){const _0x545cf8=a186_0xd35cf9,_0x596938=normalizeEnv(_0x2d38c7);return _0x596938===_0x545cf8(0x1a2)||_0x596938==='dev';}function a186_0x2f4f(){const _0x4ca610=['16ZqkhUU','5288sktXPx','daily','development','31432fjccKQ','1082586cBwuRx','12JpPEkI','13904943qYatTX','online','473636aGwacL','1640zJQDYj','531rFJoea','93084cQIKFV','20vkZLMd','14xTmgjq','production','2453462HqUiEG'];a186_0x2f4f=function(){return _0x4ca610;};return a186_0x2f4f();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a186_0xd35cf9(0x19d));export function getEnv(){return env;}export function initEnv(_0x39284b){env=normalizeEnv(_0x39284b);}
@@ -1 +1 @@
1
- const a177_0x2b77cd=a177_0x492b;function a177_0x5bb2(){const _0x102f7c=['18jueTsa','5922248hOMwyB','30003PcNafu','1369690dNQSRA','6819728vMBsrd','2277055gMpXlP','json','16035510gRatGp','9NgHuux','1604122iicQiA','316DbjDpD'];a177_0x5bb2=function(){return _0x102f7c;};return a177_0x5bb2();}function a177_0x492b(_0x221678,_0x335e51){_0x221678=_0x221678-0x148;const _0x5bb2e7=a177_0x5bb2();let _0x492ba5=_0x5bb2e7[_0x221678];return _0x492ba5;}(function(_0x2690a0,_0x3bdf10){const _0x4bc76e=a177_0x492b,_0x332b55=_0x2690a0();while(!![]){try{const _0x1e162c=-parseInt(_0x4bc76e(0x152))/0x1+parseInt(_0x4bc76e(0x148))/0x2*(parseInt(_0x4bc76e(0x14b))/0x3)+parseInt(_0x4bc76e(0x14d))/0x4+-parseInt(_0x4bc76e(0x14e))/0x5+-parseInt(_0x4bc76e(0x149))/0x6*(-parseInt(_0x4bc76e(0x14c))/0x7)+-parseInt(_0x4bc76e(0x14a))/0x8*(-parseInt(_0x4bc76e(0x151))/0x9)+-parseInt(_0x4bc76e(0x150))/0xa;if(_0x1e162c===_0x3bdf10)break;else _0x332b55['push'](_0x332b55['shift']());}catch(_0x2acd18){_0x332b55['push'](_0x332b55['shift']());}}}(a177_0x5bb2,0xe7c31));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a177_0x2b77cd(0x14f),'pretty','compress'];
1
+ function a187_0x2005(){const _0xdd797a=['12WlyMVo','710644MtwUej','5230JVOdVR','516715IWjArf','compress','pretty','json','30tFdiYN','3453597qurkvH','1186912VTgoWm','5394LJyCzH','12331224RdCuot','9TgwKQd','264bFkBWe','174NFnJHi'];a187_0x2005=function(){return _0xdd797a;};return a187_0x2005();}function a187_0x3e74(_0x3de083,_0x1337e7){_0x3de083=_0x3de083-0xbe;const _0x20058a=a187_0x2005();let _0x3e74c3=_0x20058a[_0x3de083];return _0x3e74c3;}const a187_0x5e38ac=a187_0x3e74;(function(_0x57eca9,_0x2496a3){const _0x5cadd8=a187_0x3e74,_0x4eda9c=_0x57eca9();while(!![]){try{const _0x4f3c94=parseInt(_0x5cadd8(0xcb))/0x1*(-parseInt(_0x5cadd8(0xbf))/0x2)+-parseInt(_0x5cadd8(0xc7))/0x3*(-parseInt(_0x5cadd8(0xca))/0x4)+-parseInt(_0x5cadd8(0xc0))/0x5*(parseInt(_0x5cadd8(0xcc))/0x6)+-parseInt(_0x5cadd8(0xc5))/0x7+parseInt(_0x5cadd8(0xc6))/0x8*(parseInt(_0x5cadd8(0xc9))/0x9)+-parseInt(_0x5cadd8(0xc4))/0xa*(-parseInt(_0x5cadd8(0xbe))/0xb)+parseInt(_0x5cadd8(0xc8))/0xc;if(_0x4f3c94===_0x2496a3)break;else _0x4eda9c['push'](_0x4eda9c['shift']());}catch(_0x19d289){_0x4eda9c['push'](_0x4eda9c['shift']());}}}(a187_0x2005,0x51643));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a187_0x5e38ac(0xc3),a187_0x5e38ac(0xc2),a187_0x5e38ac(0xc1)];
@@ -1 +1 @@
1
- const a178_0x5e154d=a178_0x379b;(function(_0x49a62d,_0x279566){const _0x358f43=a178_0x379b,_0x32fe0e=_0x49a62d();while(!![]){try{const _0x25378e=parseInt(_0x358f43(0x11b))/0x1*(-parseInt(_0x358f43(0x11a))/0x2)+-parseInt(_0x358f43(0x119))/0x3+parseInt(_0x358f43(0x116))/0x4+parseInt(_0x358f43(0x113))/0x5*(parseInt(_0x358f43(0x117))/0x6)+-parseInt(_0x358f43(0x118))/0x7*(-parseInt(_0x358f43(0x114))/0x8)+-parseInt(_0x358f43(0x115))/0x9+parseInt(_0x358f43(0x111))/0xa;if(_0x25378e===_0x279566)break;else _0x32fe0e['push'](_0x32fe0e['shift']());}catch(_0x3e78da){_0x32fe0e['push'](_0x32fe0e['shift']());}}}(a178_0x3515,0x98d6e));export const DEFAULT_API_DIR=a178_0x5e154d(0x112);function a178_0x379b(_0x326031,_0x5c5c0a){_0x326031=_0x326031-0x111;const _0x351534=a178_0x3515();let _0x379b05=_0x351534[_0x326031];return _0x379b05;}function a178_0x3515(){const _0x4b4c71=['./src/api','40650dUlofv','21512avWlnz','7575462EIivEx','3290100FcirzH','396kLsDTK','679txURrG','1265826VBVajt','2ablYhb','823927FuuTne','10936790UyaBdb'];a178_0x3515=function(){return _0x4b4c71;};return a178_0x3515();}
1
+ function a188_0x281d(){const _0x192cd2=['./src/api','2884855gSADeR','3650283peWgyy','1923bVfjVf','2361256zukWVR','6qzwRSL','6620256iSjrSQ','2529412mPXJLj','1752XOoHGF','445086umNRyf'];a188_0x281d=function(){return _0x192cd2;};return a188_0x281d();}const a188_0x13449a=a188_0x52ab;function a188_0x52ab(_0x51570a,_0x353061){_0x51570a=_0x51570a-0x119;const _0x281df4=a188_0x281d();let _0x52ab6d=_0x281df4[_0x51570a];return _0x52ab6d;}(function(_0x48fd57,_0x595f32){const _0x163a2e=a188_0x52ab,_0x5f56c0=_0x48fd57();while(!![]){try{const _0x3718b8=parseInt(_0x163a2e(0x121))/0x1+-parseInt(_0x163a2e(0x120))/0x2*(-parseInt(_0x163a2e(0x11b))/0x3)+parseInt(_0x163a2e(0x11f))/0x4+parseInt(_0x163a2e(0x119))/0x5*(parseInt(_0x163a2e(0x11d))/0x6)+-parseInt(_0x163a2e(0x11a))/0x7+-parseInt(_0x163a2e(0x11c))/0x8+-parseInt(_0x163a2e(0x11e))/0x9;if(_0x3718b8===_0x595f32)break;else _0x5f56c0['push'](_0x5f56c0['shift']());}catch(_0x2936fa){_0x5f56c0['push'](_0x5f56c0['shift']());}}}(a188_0x281d,0xa20a4));export const DEFAULT_API_DIR=a188_0x13449a(0x122);
@@ -1 +1 @@
1
- function a179_0x39ca(_0x4a3b7c,_0x23edbd){_0x4a3b7c=_0x4a3b7c-0x107;const _0x36a97b=a179_0x36a9();let _0x39ca1a=_0x36a97b[_0x4a3b7c];return _0x39ca1a;}(function(_0x2c6cd2,_0xef1af4){const _0x1b4920=a179_0x39ca,_0x44f78c=_0x2c6cd2();while(!![]){try{const _0x33abb6=parseInt(_0x1b4920(0x10e))/0x1*(parseInt(_0x1b4920(0x110))/0x2)+parseInt(_0x1b4920(0x111))/0x3*(-parseInt(_0x1b4920(0x10b))/0x4)+parseInt(_0x1b4920(0x10f))/0x5+parseInt(_0x1b4920(0x109))/0x6+parseInt(_0x1b4920(0x108))/0x7+parseInt(_0x1b4920(0x107))/0x8*(-parseInt(_0x1b4920(0x10d))/0x9)+parseInt(_0x1b4920(0x10c))/0xa*(parseInt(_0x1b4920(0x10a))/0xb);if(_0x33abb6===_0xef1af4)break;else _0x44f78c['push'](_0x44f78c['shift']());}catch(_0x28ecb4){_0x44f78c['push'](_0x44f78c['shift']());}}}(a179_0x36a9,0xd9509));function a179_0x36a9(){const _0x20c2fb=['92792CPCKFa','238227uvAliz','12556216dptlGn','859397uzXwUD','7397706envAwX','11TOhrcY','84lFQZRS','8475690irZcFZ','9soxrkl','23EyJqlu','4284190tnyxje'];a179_0x36a9=function(){return _0x20c2fb;};return a179_0x36a9();}export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
1
+ function a189_0xcbd2(_0x361b77,_0x6dcad0){_0x361b77=_0x361b77-0xc8;const _0x55f46a=a189_0x55f4();let _0xcbd224=_0x55f46a[_0x361b77];return _0xcbd224;}function a189_0x55f4(){const _0xb84fe4=['1147660FmJncb','12GuyBGE','2003352uRWCNV','30436rkxLFG','read','1012500DmWECH','24GuPDaO','7414664RtsaCD','31639170KHCBDQ','7DQvtcu','800533vPJjkO'];a189_0x55f4=function(){return _0xb84fe4;};return a189_0x55f4();}const a189_0x583480=a189_0xcbd2;(function(_0x4ceb6b,_0x53cb6d){const _0x314488=a189_0xcbd2,_0xc94f19=_0x4ceb6b();while(!![]){try{const _0x62f3bc=-parseInt(_0x314488(0xd1))/0x1+parseInt(_0x314488(0xca))/0x2*(-parseInt(_0x314488(0xc8))/0x3)+parseInt(_0x314488(0xc9))/0x4+parseInt(_0x314488(0xd2))/0x5*(-parseInt(_0x314488(0xcd))/0x6)+parseInt(_0x314488(0xd0))/0x7*(-parseInt(_0x314488(0xce))/0x8)+-parseInt(_0x314488(0xcc))/0x9+parseInt(_0x314488(0xcf))/0xa;if(_0x62f3bc===_0x53cb6d)break;else _0xc94f19['push'](_0xc94f19['shift']());}catch(_0x379bb5){_0xc94f19['push'](_0xc94f19['shift']());}}}(a189_0x55f4,0xce841));export const RISK_LEVEL_VALUES=[a189_0x583480(0xcb),'write','high-risk-write'];
@@ -1 +1 @@
1
- (function(_0x3c64da,_0x4d2b1d){const _0x296d4b=a180_0xbe8d,_0x42cb70=_0x3c64da();while(!![]){try{const _0x50e34e=parseInt(_0x296d4b(0x12c))/0x1+parseInt(_0x296d4b(0x14e))/0x2*(parseInt(_0x296d4b(0x136))/0x3)+-parseInt(_0x296d4b(0x146))/0x4+-parseInt(_0x296d4b(0x144))/0x5+parseInt(_0x296d4b(0x145))/0x6*(-parseInt(_0x296d4b(0x126))/0x7)+-parseInt(_0x296d4b(0x142))/0x8*(-parseInt(_0x296d4b(0x12b))/0x9)+-parseInt(_0x296d4b(0x130))/0xa*(-parseInt(_0x296d4b(0x14b))/0xb);if(_0x50e34e===_0x4d2b1d)break;else _0x42cb70['push'](_0x42cb70['shift']());}catch(_0x25c848){_0x42cb70['push'](_0x42cb70['shift']());}}}(a180_0x4f86,0x2b45d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5a00d5){const _0x15d180=a180_0xbe8d;return typeof _0x5a00d5==='string'&&_0x5a00d5[_0x15d180(0x12a)]()?_0x5a00d5[_0x15d180(0x12a)]():undefined;}function appProfiles(_0x57b98c){const _0x3f339b=a180_0xbe8d;return _0x57b98c[_0x3f339b(0x134)]&&typeof _0x57b98c['apps']===_0x3f339b(0x125)?_0x57b98c['apps']:{};}function resolveDefaultAppName(_0x2b19e5){const _0x1529b2=stringConfigValue(_0x2b19e5['defaultApp']);if(_0x1529b2)return _0x1529b2;return Object['keys'](appProfiles(_0x2b19e5))[0x0];}function resolveTopLevelAppCode(_0x57aa9d){const _0x1c6c46=a180_0xbe8d;return stringConfigValue(_0x57aa9d['appcode'])||stringConfigValue(_0x57aa9d[_0x1c6c46(0x143)]);}function a180_0x4f86(){const _0x48386d=['1398972ICUdHv','MAX_RISK','COOKIE','true','apiDir','341418SxDxLd','env','maxRisk','2ShAvlG','globalConfig','format','cookie','object','424340ThhdTs','length','APP','keys','trim','162SSbFtw','254267PjtvBL','ACCESS_KEY','production','locale','190pFFLBj','inherit','write','riskLevel','apps','entries','62802JDBiiH','pageSize','daily','read','accessKey','RISK_LEVEL','appcode','VERBOSE','PAGE_SIZE','ENV','find','projectConfig','75560SEIfHu','app','1630425LYQaVJ','18lYoANQ'];a180_0x4f86=function(){return _0x48386d;};return a180_0x4f86();}function a180_0xbe8d(_0x453cfa,_0x13d8a6){_0x453cfa=_0x453cfa-0x124;const _0x4f861f=a180_0x4f86();let _0xbe8d3c=_0x4f861f[_0x453cfa];return _0xbe8d3c;}export function resolveAppConfig({raw:_0x1bf03e,flags:_0x2f2ca4,layers:_0x337bb8,readEnv:_0x5bfa38}){const _0x53cab6=a180_0xbe8d,_0x171d45=_0x337bb8?.[_0x53cab6(0x141)]??{},_0x166719=_0x337bb8?.[_0x53cab6(0x14f)]??{},_0x55c347=Object[_0x53cab6(0x129)](_0x171d45)[_0x53cab6(0x127)]>0x0,_0x2a8309=!_0x55c347||_0x171d45[_0x53cab6(0x131)]===!![],_0x53eee3=_0x55c347?resolveDefaultAppName(_0x171d45):undefined,_0x1fb474=_0x2a8309?resolveDefaultAppName(_0x166719):undefined,_0x5701e3=stringConfigValue(_0x2f2ca4['app']),_0x4ef1e9=_0x5bfa38(_0x53cab6(0x128)),_0x534a34={};if(_0x1bf03e[_0x53cab6(0x134)]&&typeof _0x1bf03e[_0x53cab6(0x134)]===_0x53cab6(0x125))for(const [_0x14de04,_0x409a23]of Object[_0x53cab6(0x135)](_0x1bf03e[_0x53cab6(0x134)])){_0x409a23&&typeof _0x409a23===_0x53cab6(0x125)&&_0x409a23['appcode']&&(_0x534a34[_0x14de04]=_0x409a23);}const _0x7d0266=_0x1bf03e['defaultApp']||undefined,_0x37c807=Object[_0x53cab6(0x129)](_0x534a34)[_0x53cab6(0x127)]>0x0,_0x351cfb=_0x5701e3||_0x53eee3||_0x4ef1e9||_0x1fb474||_0x7d0266||undefined,_0x16e9e7=stringConfigValue(_0x2f2ca4['appcode']),_0x2ed721=_0x16e9e7?Object[_0x53cab6(0x135)](_0x534a34)[_0x53cab6(0x140)](([,_0x26ce8e])=>_0x26ce8e?.['appcode']===_0x16e9e7):undefined,_0x4a5c74=_0x2ed721?.[0x0],_0x4bc9f0=_0x2ed721?.[0x1],_0x370c30=_0x16e9e7?_0x4a5c74:_0x351cfb;let _0x3a96ce=_0x370c30&&_0x534a34[_0x370c30]?_0x534a34[_0x370c30]:undefined;_0x16e9e7&&_0x4bc9f0&&(_0x3a96ce=_0x4bc9f0);const _0x2440c9=_0x16e9e7?_0x4bc9f0??_0x3a96ce:_0x3a96ce,_0x4f4ad7=!_0x5701e3&&!_0x53eee3&&_0x4ef1e9&&_0x370c30===_0x4ef1e9,_0x377522=_0x5701e3||(_0x4f4ad7?_0x4ef1e9:undefined)||(_0x16e9e7?_0x4a5c74:undefined),_0x106187=_0x2440c9?.[_0x53cab6(0x13c)],_0x4704e3=_0x55c347?resolveTopLevelAppCode(_0x171d45):undefined,_0x13cbba=_0x2a8309?resolveTopLevelAppCode(_0x166719):undefined,_0x463380=_0x5701e3||_0x53eee3?_0x106187:undefined,_0x1d1a86=!_0x5701e3&&!_0x53eee3?_0x106187:undefined,_0xa27913=_0x16e9e7||_0x463380||_0x4704e3||_0x1d1a86||_0x13cbba||undefined,_0x30f28a=_0x55c347?stringConfigValue(_0x171d45[_0x53cab6(0x14c)]):undefined,_0x7b8126=_0x2a8309?stringConfigValue(_0x166719[_0x53cab6(0x14c)]):undefined,_0x3042e4=_0x2f2ca4[_0x53cab6(0x14c)]||_0x2440c9?.['env']||_0x30f28a||_0x5bfa38(_0x53cab6(0x13f))||_0x7b8126||_0x1bf03e[_0x53cab6(0x14c)]||DEFAULT_CONFIG_VALUES['env'],_0x4aa5d4=_0x2440c9?.[_0x53cab6(0x12f)]||_0x1bf03e[_0x53cab6(0x12f)]||DEFAULT_CONFIG_VALUES[_0x53cab6(0x12f)],_0x2f6fd4=_0x5bfa38(_0x53cab6(0x148))||_0x2440c9?.[_0x53cab6(0x124)]||_0x1bf03e[_0x53cab6(0x124)]||undefined,_0x3dbd0d=_0x5bfa38(_0x53cab6(0x12d))||_0x2440c9?.[_0x53cab6(0x13a)]||_0x1bf03e[_0x53cab6(0x13a)]||undefined,_0x32580e=_0x2f2ca4[_0x53cab6(0x150)]||_0x5bfa38('FORMAT')||_0x2440c9?.[_0x53cab6(0x150)]||_0x1bf03e[_0x53cab6(0x150)],_0x49b5bf=normalizeLegacyOutputFormat(_0x32580e),_0x1b9a7d=_0x5bfa38(_0x53cab6(0x13e))||_0x2440c9?.[_0x53cab6(0x137)]||_0x1bf03e['pageSize'],_0x288fc5=_0x1b9a7d?Number(_0x1b9a7d)||undefined:undefined,_0x4785a0=_0x5bfa38(_0x53cab6(0x13b))||_0x5bfa38(_0x53cab6(0x147))||_0x2440c9?.[_0x53cab6(0x133)]||_0x1bf03e[_0x53cab6(0x133)]||_0x1bf03e[_0x53cab6(0x14d)],_0x496f5e=_0x4785a0===_0x53cab6(0x139)||_0x4785a0===_0x53cab6(0x132)?_0x4785a0:DEFAULT_CONFIG_VALUES[_0x53cab6(0x133)],_0x939fa4=_0x5bfa38(_0x53cab6(0x13d)),_0x2e9751=_0x939fa4==='1'||_0x939fa4===_0x53cab6(0x149),_0x2f261a=_0x2440c9?.[_0x53cab6(0x14a)]||_0x1bf03e['apiDir']||DEFAULT_CONFIG_VALUES[_0x53cab6(0x14a)],_0x13fc2c=isDaily(normalizeEnv(String(_0x3042e4)))?_0x53cab6(0x138):_0x53cab6(0x12e);return{'appCode':typeof _0xa27913==='string'&&_0xa27913[_0x53cab6(0x12a)]()?_0xa27913[_0x53cab6(0x12a)]():undefined,'env':_0x13fc2c,'locale':_0x4aa5d4,'cookie':_0x2f6fd4,'accessKey':_0x3dbd0d,'format':_0x49b5bf,'pageSize':_0x288fc5,'riskLevel':_0x496f5e,'verbose':_0x2e9751,'apiDir':_0x2f261a,'apps':_0x534a34,'defaultApp':_0x7d0266,'currentApp':_0x37c807?_0x370c30:undefined,'explicitAppName':_0x377522};}
1
+ (function(_0x3e5348,_0x5bdc4f){const _0x17ab21=a190_0xfb5b,_0x2b25d5=_0x3e5348();while(!![]){try{const _0x1609b6=parseInt(_0x17ab21(0x1de))/0x1+parseInt(_0x17ab21(0x1d9))/0x2*(parseInt(_0x17ab21(0x1f5))/0x3)+parseInt(_0x17ab21(0x1db))/0x4*(parseInt(_0x17ab21(0x1f3))/0x5)+parseInt(_0x17ab21(0x201))/0x6*(-parseInt(_0x17ab21(0x1f7))/0x7)+parseInt(_0x17ab21(0x1f8))/0x8*(parseInt(_0x17ab21(0x1ef))/0x9)+parseInt(_0x17ab21(0x1e8))/0xa*(parseInt(_0x17ab21(0x1da))/0xb)+parseInt(_0x17ab21(0x1dd))/0xc*(-parseInt(_0x17ab21(0x1ed))/0xd);if(_0x1609b6===_0x5bdc4f)break;else _0x2b25d5['push'](_0x2b25d5['shift']());}catch(_0x18c95a){_0x2b25d5['push'](_0x2b25d5['shift']());}}}(a190_0x120c,0x5b21e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a190_0x120c(){const _0x29ac56=['find','defaultApp','object','5Tlluzl','daily','313413XQbTpH','projectConfig','238shGpfl','200TzrDFr','FORMAT','format','VERBOSE','write','appcode','apps','read','globalConfig','84594nuJakg','COOKIE','locale','ACCESS_KEY','pageSize','env','accessKey','2skNDFJ','12452ksWkrF','1803116lABdoQ','MAX_RISK','60bLkIoR','315038QnKMgN','production','length','keys','maxRisk','trim','riskLevel','entries','ENV','RISK_LEVEL','6130XZCkkq','string','true','apiDir','inherit','2622126FjPJmN','app','106902jCDexY'];a190_0x120c=function(){return _0x29ac56;};return a190_0x120c();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x1d2765){const _0x8df520=a190_0xfb5b;return typeof _0x1d2765===_0x8df520(0x1e9)&&_0x1d2765[_0x8df520(0x1e3)]()?_0x1d2765['trim']():undefined;}function appProfiles(_0x28ab50){const _0x2b17d1=a190_0xfb5b;return _0x28ab50[_0x2b17d1(0x1fe)]&&typeof _0x28ab50['apps']==='object'?_0x28ab50[_0x2b17d1(0x1fe)]:{};}function a190_0xfb5b(_0x33cc22,_0x29df1a){_0x33cc22=_0x33cc22-0x1d4;const _0x120cbb=a190_0x120c();let _0xfb5b6e=_0x120cbb[_0x33cc22];return _0xfb5b6e;}function resolveDefaultAppName(_0x1863a4){const _0x3fbe35=a190_0xfb5b,_0x93c551=stringConfigValue(_0x1863a4['defaultApp']);if(_0x93c551)return _0x93c551;return Object[_0x3fbe35(0x1e1)](appProfiles(_0x1863a4))[0x0];}function resolveTopLevelAppCode(_0x5545a3){const _0x433db8=a190_0xfb5b;return stringConfigValue(_0x5545a3[_0x433db8(0x1fd)])||stringConfigValue(_0x5545a3[_0x433db8(0x1ee)]);}export function resolveAppConfig({raw:_0x13b96a,flags:_0x1ef8b6,layers:_0x46a756,readEnv:_0x2fd275}){const _0x1b7eae=a190_0xfb5b,_0x267cab=_0x46a756?.[_0x1b7eae(0x1f6)]??{},_0x582258=_0x46a756?.[_0x1b7eae(0x200)]??{},_0x142238=Object[_0x1b7eae(0x1e1)](_0x267cab)[_0x1b7eae(0x1e0)]>0x0,_0x152fb1=!_0x142238||_0x267cab[_0x1b7eae(0x1ec)]===!![],_0x41def4=_0x142238?resolveDefaultAppName(_0x267cab):undefined,_0x34772e=_0x152fb1?resolveDefaultAppName(_0x582258):undefined,_0x538b29=stringConfigValue(_0x1ef8b6[_0x1b7eae(0x1ee)]),_0x221c63=_0x2fd275('APP'),_0x4592f6={};if(_0x13b96a[_0x1b7eae(0x1fe)]&&typeof _0x13b96a[_0x1b7eae(0x1fe)]===_0x1b7eae(0x1f2))for(const [_0x25ce26,_0xadcc25]of Object['entries'](_0x13b96a['apps'])){_0xadcc25&&typeof _0xadcc25==='object'&&_0xadcc25[_0x1b7eae(0x1fd)]&&(_0x4592f6[_0x25ce26]=_0xadcc25);}const _0x435db9=_0x13b96a[_0x1b7eae(0x1f1)]||undefined,_0x322788=Object[_0x1b7eae(0x1e1)](_0x4592f6)['length']>0x0,_0x13bb34=_0x538b29||_0x41def4||_0x221c63||_0x34772e||_0x435db9||undefined,_0x47d6f7=stringConfigValue(_0x1ef8b6[_0x1b7eae(0x1fd)]),_0x3c1f54=_0x47d6f7?Object[_0x1b7eae(0x1e5)](_0x4592f6)[_0x1b7eae(0x1f0)](([,_0x744f6])=>_0x744f6?.[_0x1b7eae(0x1fd)]===_0x47d6f7):undefined,_0x2a8683=_0x3c1f54?.[0x0],_0x40c7a7=_0x3c1f54?.[0x1],_0x40d611=_0x47d6f7?_0x2a8683:_0x13bb34;let _0x1d61bd=_0x40d611&&_0x4592f6[_0x40d611]?_0x4592f6[_0x40d611]:undefined;_0x47d6f7&&_0x40c7a7&&(_0x1d61bd=_0x40c7a7);const _0x4c88d3=_0x47d6f7?_0x40c7a7??_0x1d61bd:_0x1d61bd,_0x5be285=!_0x538b29&&!_0x41def4&&_0x221c63&&_0x40d611===_0x221c63,_0x11b086=_0x538b29||(_0x5be285?_0x221c63:undefined)||(_0x47d6f7?_0x2a8683:undefined),_0x34f10e=_0x4c88d3?.[_0x1b7eae(0x1fd)],_0x2df502=_0x142238?resolveTopLevelAppCode(_0x267cab):undefined,_0x5b2180=_0x152fb1?resolveTopLevelAppCode(_0x582258):undefined,_0x190588=_0x538b29||_0x41def4?_0x34f10e:undefined,_0x40a430=!_0x538b29&&!_0x41def4?_0x34f10e:undefined,_0x3d36b0=_0x47d6f7||_0x190588||_0x2df502||_0x40a430||_0x5b2180||undefined,_0x20c6d4=_0x142238?stringConfigValue(_0x267cab[_0x1b7eae(0x1d7)]):undefined,_0x32aead=_0x152fb1?stringConfigValue(_0x582258[_0x1b7eae(0x1d7)]):undefined,_0x36d4e9=_0x1ef8b6['env']||_0x4c88d3?.[_0x1b7eae(0x1d7)]||_0x20c6d4||_0x2fd275(_0x1b7eae(0x1e6))||_0x32aead||_0x13b96a[_0x1b7eae(0x1d7)]||DEFAULT_CONFIG_VALUES['env'],_0x467f1d=_0x4c88d3?.[_0x1b7eae(0x1d4)]||_0x13b96a['locale']||DEFAULT_CONFIG_VALUES[_0x1b7eae(0x1d4)],_0x38ae55=_0x2fd275(_0x1b7eae(0x202))||_0x4c88d3?.['cookie']||_0x13b96a['cookie']||undefined,_0x3f8b2c=_0x2fd275(_0x1b7eae(0x1d5))||_0x4c88d3?.[_0x1b7eae(0x1d8)]||_0x13b96a[_0x1b7eae(0x1d8)]||undefined,_0x45c8ea=_0x1ef8b6[_0x1b7eae(0x1fa)]||_0x2fd275(_0x1b7eae(0x1f9))||_0x4c88d3?.[_0x1b7eae(0x1fa)]||_0x13b96a[_0x1b7eae(0x1fa)],_0x1b4b8a=normalizeLegacyOutputFormat(_0x45c8ea),_0x37ca46=_0x2fd275('PAGE_SIZE')||_0x4c88d3?.[_0x1b7eae(0x1d6)]||_0x13b96a[_0x1b7eae(0x1d6)],_0x5129bb=_0x37ca46?Number(_0x37ca46)||undefined:undefined,_0x553e27=_0x2fd275(_0x1b7eae(0x1e7))||_0x2fd275(_0x1b7eae(0x1dc))||_0x4c88d3?.[_0x1b7eae(0x1e4)]||_0x13b96a['riskLevel']||_0x13b96a[_0x1b7eae(0x1e2)],_0x553139=_0x553e27===_0x1b7eae(0x1ff)||_0x553e27===_0x1b7eae(0x1fc)?_0x553e27:DEFAULT_CONFIG_VALUES[_0x1b7eae(0x1e4)],_0x3bbe88=_0x2fd275(_0x1b7eae(0x1fb)),_0x3c8ff0=_0x3bbe88==='1'||_0x3bbe88===_0x1b7eae(0x1ea),_0x8fcf1=_0x4c88d3?.[_0x1b7eae(0x1eb)]||_0x13b96a[_0x1b7eae(0x1eb)]||DEFAULT_CONFIG_VALUES[_0x1b7eae(0x1eb)],_0x5e1949=isDaily(normalizeEnv(String(_0x36d4e9)))?_0x1b7eae(0x1f4):_0x1b7eae(0x1df);return{'appCode':typeof _0x3d36b0===_0x1b7eae(0x1e9)&&_0x3d36b0[_0x1b7eae(0x1e3)]()?_0x3d36b0[_0x1b7eae(0x1e3)]():undefined,'env':_0x5e1949,'locale':_0x467f1d,'cookie':_0x38ae55,'accessKey':_0x3f8b2c,'format':_0x1b4b8a,'pageSize':_0x5129bb,'riskLevel':_0x553139,'verbose':_0x3c8ff0,'apiDir':_0x8fcf1,'apps':_0x4592f6,'defaultApp':_0x435db9,'currentApp':_0x322788?_0x40d611:undefined,'explicitAppName':_0x11b086};}
@@ -1 +1 @@
1
- (function(_0x109f51,_0x5b5929){const _0x298dc5=a181_0x483f,_0xd4bb57=_0x109f51();while(!![]){try{const _0x1368e4=parseInt(_0x298dc5(0x15a))/0x1+-parseInt(_0x298dc5(0x15c))/0x2*(parseInt(_0x298dc5(0x15e))/0x3)+parseInt(_0x298dc5(0x160))/0x4*(parseInt(_0x298dc5(0x154))/0x5)+parseInt(_0x298dc5(0x15b))/0x6*(-parseInt(_0x298dc5(0x159))/0x7)+parseInt(_0x298dc5(0x157))/0x8*(-parseInt(_0x298dc5(0x155))/0x9)+-parseInt(_0x298dc5(0x15d))/0xa*(-parseInt(_0x298dc5(0x15f))/0xb)+parseInt(_0x298dc5(0x158))/0xc;if(_0x1368e4===_0x5b5929)break;else _0xd4bb57['push'](_0xd4bb57['shift']());}catch(_0x20aa6a){_0xd4bb57['push'](_0xd4bb57['shift']());}}}(a181_0x2edb,0x70040));import{getIsSessionValid}from'../auth/is-session-valid.js';function a181_0x483f(_0x333cd2,_0x2c265e){_0x333cd2=_0x333cd2-0x153;const _0x2edb87=a181_0x2edb();let _0x483f93=_0x2edb87[_0x333cd2];return _0x483f93;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x3e5789){const _0x3b1e71=a181_0x483f,{getCookie:_0x284928}=await import(_0x3b1e71(0x156)),_0x215ed3=_0x3e5789[_0x3b1e71(0x153)]||_0x284928(),_0x440ab2=_0x215ed3?await getIsSessionValid():![];return{'cookie':_0x215ed3,'isLoggedIn':_0x440ab2,async 'getOrLogin'(){if(_0x215ed3&&_0x440ab2)return _0x215ed3;throw CliErrors['authRequired']();}};}function a181_0x2edb(){const _0x53b99c=['555201cpjLoH','../auth/get-cookie.js','8iZJqXG','159720fBclXg','48202fGinFk','115909mNaldR','180AujQDU','66mNsuFi','8889670puaoiT','79896rPqChz','11qnxISv','140FOEakB','cookie','83965GLEkbg'];a181_0x2edb=function(){return _0x53b99c;};return a181_0x2edb();}
1
+ function a191_0x504d(_0x14b3e4,_0x46a796){_0x14b3e4=_0x14b3e4-0x8e;const _0x214e12=a191_0x214e();let _0x504daa=_0x214e12[_0x14b3e4];return _0x504daa;}(function(_0x56de6d,_0x374cbc){const _0x471c18=a191_0x504d,_0x331221=_0x56de6d();while(!![]){try{const _0x2fe14b=parseInt(_0x471c18(0x90))/0x1*(-parseInt(_0x471c18(0x9c))/0x2)+-parseInt(_0x471c18(0x8e))/0x3*(-parseInt(_0x471c18(0x93))/0x4)+parseInt(_0x471c18(0x99))/0x5*(-parseInt(_0x471c18(0x97))/0x6)+parseInt(_0x471c18(0x91))/0x7+parseInt(_0x471c18(0x9b))/0x8*(-parseInt(_0x471c18(0x8f))/0x9)+parseInt(_0x471c18(0x95))/0xa*(parseInt(_0x471c18(0x98))/0xb)+-parseInt(_0x471c18(0x92))/0xc*(-parseInt(_0x471c18(0x94))/0xd);if(_0x2fe14b===_0x374cbc)break;else _0x331221['push'](_0x331221['shift']());}catch(_0x25f768){_0x331221['push'](_0x331221['shift']());}}}(a191_0x214e,0xae44a));import{getIsSessionValid}from'../auth/is-session-valid.js';function a191_0x214e(){const _0xd4ce5a=['658040jbinJY','6tTjiKi','81906rZEAKM','72tfEWYS','370693YrScEm','208474aooIgT','12RnDlon','16MpZBmU','38346334VDTfon','830VlCAOX','authRequired','36tfQSEk','50083mqwaIu','818905FydkMM','cookie'];a191_0x214e=function(){return _0xd4ce5a;};return a191_0x214e();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1d637e){const _0x55a508=a191_0x504d,{getCookie:_0xb04b17}=await import('../auth/get-cookie.js'),_0x330be5=_0x1d637e[_0x55a508(0x9a)]||_0xb04b17(),_0x1b24b3=_0x330be5?await getIsSessionValid():![];return{'cookie':_0x330be5,'isLoggedIn':_0x1b24b3,async 'getOrLogin'(){const _0x25da6d=_0x55a508;if(_0x330be5&&_0x1b24b3)return _0x330be5;throw CliErrors[_0x25da6d(0x96)]();}};}
@@ -1 +1 @@
1
- const a182_0x2ef11d=a182_0x4780;(function(_0x3dd3b4,_0xaff8c4){const _0x4006b2=a182_0x4780,_0x3e26e9=_0x3dd3b4();while(!![]){try{const _0x525a17=parseInt(_0x4006b2(0x105))/0x1*(-parseInt(_0x4006b2(0x114))/0x2)+parseInt(_0x4006b2(0x10b))/0x3*(-parseInt(_0x4006b2(0x10e))/0x4)+-parseInt(_0x4006b2(0x113))/0x5+parseInt(_0x4006b2(0xee))/0x6*(-parseInt(_0x4006b2(0x109))/0x7)+parseInt(_0x4006b2(0x106))/0x8*(parseInt(_0x4006b2(0xe3))/0x9)+parseInt(_0x4006b2(0xf7))/0xa*(parseInt(_0x4006b2(0x104))/0xb)+parseInt(_0x4006b2(0xf3))/0xc*(parseInt(_0x4006b2(0xef))/0xd);if(_0x525a17===_0xaff8c4)break;else _0x3e26e9['push'](_0x3e26e9['shift']());}catch(_0x214b07){_0x3e26e9['push'](_0x3e26e9['shift']());}}}(a182_0x5edf,0x3234c));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='.rabetbase.json';export const CONFIG_NAMES=['.rabetbase.json',a182_0x2ef11d(0xf6),a182_0x2ef11d(0x100)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x2a3666=>_0x2a3666!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x4a83b3){for(const _0x64ad3a of CONFIG_NAMES){const _0x5934b6=resolve(_0x4a83b3,_0x64ad3a);if(existsSync(_0x5934b6))return _0x5934b6;}return undefined;}export function findProjectRootDirectory(_0x3b7b1b=process['cwd']()){let _0x243d13=resolve(_0x3b7b1b);const {root:_0x5988d8}=parse(_0x243d13),_0x17098b=homedir();while(!![]){if(resolveConfigPath(_0x243d13)){if(_0x243d13===_0x17098b)break;return _0x243d13;}if(_0x243d13===_0x5988d8||_0x243d13===_0x17098b)break;const _0x23c5dd=dirname(_0x243d13);if(_0x23c5dd===_0x243d13)break;_0x243d13=_0x23c5dd;}return resolve(_0x3b7b1b);}export function getProjectConfigPath(){const _0x282190=a182_0x2ef11d;return resolveConfigPath(process[_0x282190(0xeb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1f9216){const _0x59854c=a182_0x2ef11d;if(!existsSync(_0x1f9216))return{'status':_0x59854c(0xff)};try{const _0x1b4c19=readFileSync(_0x1f9216,{'encoding':_0x59854c(0x103)});if(!_0x1b4c19?.['trim']())return{'status':_0x59854c(0x10a)};const _0x35518b=JSON['parse'](_0x1b4c19);return{'status':'ok','data':_0x35518b};}catch(_0x1d1f73){return{'status':_0x59854c(0x112),'message':_0x1d1f73 instanceof Error?_0x1d1f73[_0x59854c(0xfe)]:String(_0x1d1f73)};}}function a182_0x4780(_0x2c23be,_0x2a75a1){_0x2c23be=_0x2c23be-0xe2;const _0x5edf01=a182_0x5edf();let _0x4780bf=_0x5edf01[_0x2c23be];return _0x4780bf;}function a182_0x5edf(){const _0xac928c=['1150QyYSYO','project','locale','1063467gfJcEY','defaultApp','apiDir','trim','config','string','warn','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','pageSize','.tmp','526314yKmhac','156lhFbIt','migrated','env','inherit','508764wQaodx','status','apps','.lovrabet.json','900EncJZR','get','length','object','app','cookie','riskLevel','message','missing','.lovrabetrc','Global','data','utf8','17369EkFxZs','121UXtPDp','16geqVtE','accessKey','format','21FpsPfR','empty','32856bJaslp','stringify','keys','68YHkxDS','appcode','set','Project','error','813200ggNwEq'];a182_0x5edf=function(){return _0xac928c;};return a182_0x5edf();}function parseCliConfigJsonFile(_0xb40fe6,_0x243ac3,_0x508900){const _0x33751b=a182_0x2ef11d,_0x271f2f=inspectCliConfigJsonFile(_0xb40fe6);if(_0x271f2f['status']===_0x33751b(0xff)||_0x271f2f['status']===_0x33751b(0x10a))return{};if(_0x271f2f[_0x33751b(0xf4)]==='ok')return _0x271f2f[_0x33751b(0x102)];return _0x243ac3===_0x33751b(0xe9)&&_0x508900&&console[_0x33751b(0x112)](CLI_BIN_NAME+':\x20'+_0x508900+_0x33751b(0xea)+_0xb40fe6+'\x0a\x20\x20'+_0x271f2f[_0x33751b(0xfe)]),{};}function normalizeLegacyConfigShape(_0x42d643){const _0x14098a=a182_0x2ef11d;if(!_0x42d643||typeof _0x42d643!==_0x14098a(0xfa))return{'config':{},'migrated':![]};const _0x1a6bd6={..._0x42d643},_0x18d411=_0x1a6bd6[_0x14098a(0xf5)]&&typeof _0x1a6bd6[_0x14098a(0xf5)]===_0x14098a(0xfa)?{..._0x1a6bd6[_0x14098a(0xf5)]}:{},_0x44fe53=Object['keys'](_0x18d411)[_0x14098a(0xf9)],_0x644e5e=_0x1a6bd6[_0x14098a(0x10f)]||_0x1a6bd6[_0x14098a(0xfb)];let _0x129b0e=![];if(_0x644e5e&&_0x44fe53===0x0){const _0x2b7b7c=typeof _0x1a6bd6[_0x14098a(0xe4)]===_0x14098a(0xe8)&&_0x1a6bd6['defaultApp'][_0x14098a(0xe6)]()?_0x1a6bd6[_0x14098a(0xe4)]:String(_0x644e5e)[_0x14098a(0xe6)]();_0x18d411[_0x2b7b7c]={'appcode':String(_0x644e5e)['trim'](),..._0x1a6bd6[_0x14098a(0xf1)]!=null?{'env':_0x1a6bd6['env']}:{},..._0x1a6bd6[_0x14098a(0xe5)]!=null?{'apiDir':_0x1a6bd6[_0x14098a(0xe5)]}:{},..._0x1a6bd6[_0x14098a(0xfc)]!=null?{'cookie':_0x1a6bd6[_0x14098a(0xfc)]}:{},..._0x1a6bd6[_0x14098a(0x107)]!=null?{'accessKey':_0x1a6bd6['accessKey']}:{},..._0x1a6bd6[_0x14098a(0x108)]!=null?{'format':_0x1a6bd6[_0x14098a(0x108)]}:{},..._0x1a6bd6['pageSize']!=null?{'pageSize':_0x1a6bd6['pageSize']}:{},..._0x1a6bd6[_0x14098a(0xfd)]!=null?{'riskLevel':_0x1a6bd6[_0x14098a(0xfd)]}:{},..._0x1a6bd6[_0x14098a(0xe2)]!=null?{'locale':_0x1a6bd6[_0x14098a(0xe2)]}:{}},_0x1a6bd6[_0x14098a(0xf5)]=_0x18d411;if(!_0x1a6bd6['defaultApp'])_0x1a6bd6[_0x14098a(0xe4)]=_0x2b7b7c;_0x129b0e=!![];}return(_0x14098a(0x10f)in _0x1a6bd6||_0x14098a(0xfb)in _0x1a6bd6)&&(delete _0x1a6bd6[_0x14098a(0x10f)],delete _0x1a6bd6[_0x14098a(0xfb)],_0x129b0e=!![]),{'config':_0x1a6bd6,'migrated':_0x129b0e};}function writeNormalizedConfigIfNeeded(_0x337ee7,_0x177d38){const _0x14cb2f=a182_0x2ef11d,_0x35c3f8=JSON[_0x14cb2f(0x10c)](_0x177d38,null,0x2)+'\x0a';if(normalizedWriteCache[_0x14cb2f(0xf8)](_0x337ee7)===_0x35c3f8)return;writeConfigFile(_0x337ee7,_0x177d38),normalizedWriteCache[_0x14cb2f(0x110)](_0x337ee7,_0x35c3f8);}function parseAndNormalizeConfig(_0x34707a,_0xe4ae38,_0x4a983e){const _0x2156a6=a182_0x2ef11d,_0x137d38=parseCliConfigJsonFile(_0x34707a,_0xe4ae38,_0x4a983e),_0x29d7d0=normalizeLegacyConfigShape(_0x137d38);if(_0x29d7d0[_0x2156a6(0xf0)])try{writeNormalizedConfigIfNeeded(_0x34707a,_0x29d7d0[_0x2156a6(0xe7)]);}catch{}return _0x29d7d0[_0x2156a6(0xe7)];}export function loadRawConfigLayers(_0xbde42c){const _0x19d974=a182_0x2ef11d;let _0x2391d2={},_0x23ede7={};const _0x5e19be=resolveConfigPath(homedir());_0x5e19be&&(_0x2391d2=parseAndNormalizeConfig(_0x5e19be,_0x19d974(0xe9),_0x19d974(0x101)));const _0x5cfa78=_0xbde42c??findProjectRootDirectory(),_0x231b36=resolveConfigPath(_0x5cfa78);return _0x231b36&&(_0x23ede7=parseAndNormalizeConfig(_0x231b36,'warn',_0x19d974(0x111))),{'globalPath':_0x5e19be,'projectPath':_0x231b36,'globalConfig':_0x2391d2,'projectConfig':_0x23ede7};}const INHERIT_WHITELIST=[a182_0x2ef11d(0xfc),a182_0x2ef11d(0x107),a182_0x2ef11d(0xe2),'format',a182_0x2ef11d(0xfd),a182_0x2ef11d(0xec)];export function mergeRawConfigLayers(_0x207a67){const _0x91ab8b=a182_0x2ef11d,{globalConfig:_0x41cb60,projectConfig:_0x125519}=_0x207a67,_0x597b1b=Object['keys'](_0x125519)[_0x91ab8b(0xf9)]>0x0;if(!_0x597b1b)return mergeGlobalOnly(_0x41cb60);if(_0x125519[_0x91ab8b(0xf2)]===!![])return mergeFullInherit(_0x41cb60,_0x125519);if(_0x125519[_0x91ab8b(0xf2)]===![])return mergeIsolated(_0x125519);return mergeProjectFirst(_0x41cb60,_0x125519);}function mergeGlobalOnly(_0x324cce){const _0x47efd2=a182_0x2ef11d,_0x1a2722={..._0x324cce},_0x58fb2c=_0x324cce[_0x47efd2(0xf5)]&&typeof _0x324cce[_0x47efd2(0xf5)]==='object'?_0x324cce['apps']:{};if(Object[_0x47efd2(0x10d)](_0x58fb2c)[_0x47efd2(0xf9)]>0x0)_0x1a2722[_0x47efd2(0xf5)]=_0x58fb2c;if(_0x324cce[_0x47efd2(0xe4)])_0x1a2722[_0x47efd2(0xe4)]=_0x324cce[_0x47efd2(0xe4)];else{const _0x4ebaf0=Object['keys'](_0x58fb2c);if(_0x4ebaf0[_0x47efd2(0xf9)]>0x0)_0x1a2722['defaultApp']=_0x4ebaf0[0x0];}return _0x1a2722;}function mergeIsolated(_0x47b625){const _0x45e4ce=a182_0x2ef11d,_0x4b23fe={..._0x47b625};delete _0x4b23fe['inherit'];const _0x4eba9e=_0x47b625[_0x45e4ce(0xf5)]&&typeof _0x47b625[_0x45e4ce(0xf5)]==='object'?_0x47b625['apps']:{};Object['keys'](_0x4eba9e)[_0x45e4ce(0xf9)]>0x0?_0x4b23fe['apps']=_0x4eba9e:delete _0x4b23fe[_0x45e4ce(0xf5)];if(_0x45e4ce(0xe4)in _0x47b625)_0x4b23fe[_0x45e4ce(0xe4)]=_0x47b625[_0x45e4ce(0xe4)];else Object[_0x45e4ce(0x10d)](_0x4eba9e)['length']>0x0?_0x4b23fe['defaultApp']=Object[_0x45e4ce(0x10d)](_0x4eba9e)[0x0]:delete _0x4b23fe['defaultApp'];return _0x4b23fe;}function mergeProjectFirst(_0x2c2286,_0xd4d7df){const _0x3ee7f6=a182_0x2ef11d,_0x1ec6c7={..._0xd4d7df};delete _0x1ec6c7['inherit'];for(const _0x3024bd of INHERIT_WHITELIST){!(_0x3024bd in _0x1ec6c7)&&_0x3024bd in _0x2c2286&&(_0x1ec6c7[_0x3024bd]=_0x2c2286[_0x3024bd]);}const _0x32e148=_0xd4d7df['apps']&&typeof _0xd4d7df[_0x3ee7f6(0xf5)]==='object'?_0xd4d7df[_0x3ee7f6(0xf5)]:{};Object[_0x3ee7f6(0x10d)](_0x32e148)[_0x3ee7f6(0xf9)]>0x0?_0x1ec6c7[_0x3ee7f6(0xf5)]=_0x32e148:delete _0x1ec6c7[_0x3ee7f6(0xf5)];if(_0x3ee7f6(0xe4)in _0xd4d7df)_0x1ec6c7['defaultApp']=_0xd4d7df[_0x3ee7f6(0xe4)];else Object[_0x3ee7f6(0x10d)](_0x32e148)[_0x3ee7f6(0xf9)]>0x0?_0x1ec6c7['defaultApp']=Object[_0x3ee7f6(0x10d)](_0x32e148)[0x0]:delete _0x1ec6c7['defaultApp'];return _0x1ec6c7;}function mergeFullInherit(_0x45e74d,_0x5a2aa9){const _0x4c734a=a182_0x2ef11d,_0x275cf2=_0x45e74d[_0x4c734a(0xf5)]&&typeof _0x45e74d[_0x4c734a(0xf5)]===_0x4c734a(0xfa)?_0x45e74d['apps']:{},_0x16153e=_0x5a2aa9['apps']&&typeof _0x5a2aa9[_0x4c734a(0xf5)]==='object'?_0x5a2aa9[_0x4c734a(0xf5)]:{},_0x386f38={..._0x275cf2,..._0x16153e},_0xe072ce={..._0x45e74d,..._0x5a2aa9};delete _0xe072ce['inherit'];if(Object[_0x4c734a(0x10d)](_0x386f38)[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xf5)]=_0x386f38;if(_0x4c734a(0xe4)in _0x5a2aa9)_0xe072ce[_0x4c734a(0xe4)]=_0x5a2aa9[_0x4c734a(0xe4)];else{if(Object[_0x4c734a(0x10d)](_0x16153e)[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xe4)]=Object[_0x4c734a(0x10d)](_0x16153e)[0x0];else{if(_0x45e74d[_0x4c734a(0xe4)])_0xe072ce[_0x4c734a(0xe4)]=_0x45e74d[_0x4c734a(0xe4)];else{const _0x293d0c=Object[_0x4c734a(0x10d)](_0x275cf2);if(_0x293d0c[_0x4c734a(0xf9)]>0x0)_0xe072ce[_0x4c734a(0xe4)]=_0x293d0c[0x0];}}}return _0xe072ce;}export function readRawConfigWithLayers(_0x370d73){const _0x2be4fb=loadRawConfigLayers(_0x370d73);return{'config':mergeRawConfigLayers(_0x2be4fb),'layers':_0x2be4fb};}export function readRawConfig(_0x222dd4){return mergeRawConfigLayers(loadRawConfigLayers(_0x222dd4));}export function readConfigFile(_0x524672){return parseAndNormalizeConfig(_0x524672,'silent');}export function writeConfigFile(_0x2ec1fe,_0x14c63f){const _0x351623=a182_0x2ef11d,_0x1a56f4=dirname(_0x2ec1fe);!existsSync(_0x1a56f4)&&mkdirSync(_0x1a56f4,{'recursive':!![]});const _0x499daa=_0x2ec1fe+_0x351623(0xed);try{writeFileSync(_0x499daa,JSON[_0x351623(0x10c)](_0x14c63f,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0x499daa,_0x2ec1fe);}catch(_0x46ecca){try{unlinkSync(_0x499daa);}catch{}throw _0x46ecca;}}export function resolveWriteConfigPath(_0x4c643b){const _0x39ac19=a182_0x2ef11d,_0x1c49a5=_0x4c643b===_0x39ac19(0x115)?process[_0x39ac19(0xeb)]():homedir(),_0x241248=resolveConfigPath(_0x1c49a5);return _0x241248??resolve(_0x1c49a5,NEW_CONFIG_NAME);}
1
+ const a192_0x1a34f7=a192_0x2774;(function(_0x44213e,_0x42e700){const _0x4dfb00=a192_0x2774,_0x34eaf4=_0x44213e();while(!![]){try{const _0x22c8ef=-parseInt(_0x4dfb00(0x1a0))/0x1*(parseInt(_0x4dfb00(0x1aa))/0x2)+-parseInt(_0x4dfb00(0x191))/0x3+-parseInt(_0x4dfb00(0x190))/0x4+parseInt(_0x4dfb00(0x1a2))/0x5+parseInt(_0x4dfb00(0x18a))/0x6+-parseInt(_0x4dfb00(0x17e))/0x7+-parseInt(_0x4dfb00(0x198))/0x8*(-parseInt(_0x4dfb00(0x1a3))/0x9);if(_0x22c8ef===_0x42e700)break;else _0x34eaf4['push'](_0x34eaf4['shift']());}catch(_0x12e479){_0x34eaf4['push'](_0x34eaf4['shift']());}}}(a192_0x5d16,0xb6440));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='.rabetbase.json';export const CONFIG_NAMES=[a192_0x1a34f7(0x18e),a192_0x1a34f7(0x194),a192_0x1a34f7(0x19f)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x36d1fe=>_0x36d1fe!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();function a192_0x2774(_0x3946e0,_0x37384a){_0x3946e0=_0x3946e0-0x17b;const _0x5d16a5=a192_0x5d16();let _0x27746c=_0x5d16a5[_0x3946e0];return _0x27746c;}export function resolveConfigPath(_0x5be311){for(const _0x2c27b7 of CONFIG_NAMES){const _0x49b3a1=resolve(_0x5be311,_0x2c27b7);if(existsSync(_0x49b3a1))return _0x49b3a1;}return undefined;}export function findProjectRootDirectory(_0x46e5ae=process[a192_0x1a34f7(0x19e)]()){let _0x1c8fad=resolve(_0x46e5ae);const {root:_0x11847f}=parse(_0x1c8fad),_0x278abd=homedir();while(!![]){if(resolveConfigPath(_0x1c8fad)){if(_0x1c8fad===_0x278abd)break;return _0x1c8fad;}if(_0x1c8fad===_0x11847f||_0x1c8fad===_0x278abd)break;const _0x529bff=dirname(_0x1c8fad);if(_0x529bff===_0x1c8fad)break;_0x1c8fad=_0x529bff;}return resolve(_0x46e5ae);}export function getProjectConfigPath(){const _0x14584c=a192_0x1a34f7;return resolveConfigPath(process[_0x14584c(0x19e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2dcd77){const _0x265e6e=a192_0x1a34f7;if(!existsSync(_0x2dcd77))return{'status':_0x265e6e(0x17d)};try{const _0xbcb4bc=readFileSync(_0x2dcd77,{'encoding':_0x265e6e(0x1ac)});if(!_0xbcb4bc?.[_0x265e6e(0x1a4)]())return{'status':'empty'};const _0x34bc2e=JSON[_0x265e6e(0x17f)](_0xbcb4bc);return{'status':'ok','data':_0x34bc2e};}catch(_0x5b98c5){return{'status':_0x265e6e(0x186),'message':_0x5b98c5 instanceof Error?_0x5b98c5[_0x265e6e(0x1a6)]:String(_0x5b98c5)};}}function parseCliConfigJsonFile(_0x41e381,_0x2f0510,_0x4c6e2d){const _0x9fb71c=a192_0x1a34f7,_0x906fb3=inspectCliConfigJsonFile(_0x41e381);if(_0x906fb3[_0x9fb71c(0x18f)]==='missing'||_0x906fb3['status']===_0x9fb71c(0x181))return{};if(_0x906fb3['status']==='ok')return _0x906fb3['data'];return _0x2f0510===_0x9fb71c(0x189)&&_0x4c6e2d&&console[_0x9fb71c(0x186)](CLI_BIN_NAME+':\x20'+_0x4c6e2d+_0x9fb71c(0x195)+_0x41e381+_0x9fb71c(0x18d)+_0x906fb3[_0x9fb71c(0x1a6)]),{};}function normalizeLegacyConfigShape(_0x409dfe){const _0x29f069=a192_0x1a34f7;if(!_0x409dfe||typeof _0x409dfe!=='object')return{'config':{},'migrated':![]};const _0x3cf8f3={..._0x409dfe},_0x33c322=_0x3cf8f3[_0x29f069(0x184)]&&typeof _0x3cf8f3[_0x29f069(0x184)]===_0x29f069(0x193)?{..._0x3cf8f3['apps']}:{},_0x46e37e=Object[_0x29f069(0x185)](_0x33c322)[_0x29f069(0x18c)],_0x432265=_0x3cf8f3[_0x29f069(0x196)]||_0x3cf8f3[_0x29f069(0x1a7)];let _0x1f2631=![];if(_0x432265&&_0x46e37e===0x0){const _0x4d552e=typeof _0x3cf8f3[_0x29f069(0x182)]===_0x29f069(0x17c)&&_0x3cf8f3['defaultApp']['trim']()?_0x3cf8f3[_0x29f069(0x182)]:String(_0x432265)[_0x29f069(0x1a4)]();_0x33c322[_0x4d552e]={'appcode':String(_0x432265)['trim'](),..._0x3cf8f3['env']!=null?{'env':_0x3cf8f3[_0x29f069(0x18b)]}:{},..._0x3cf8f3[_0x29f069(0x19d)]!=null?{'apiDir':_0x3cf8f3[_0x29f069(0x19d)]}:{},..._0x3cf8f3[_0x29f069(0x197)]!=null?{'cookie':_0x3cf8f3[_0x29f069(0x197)]}:{},..._0x3cf8f3['accessKey']!=null?{'accessKey':_0x3cf8f3[_0x29f069(0x199)]}:{},..._0x3cf8f3[_0x29f069(0x1a9)]!=null?{'format':_0x3cf8f3[_0x29f069(0x1a9)]}:{},..._0x3cf8f3[_0x29f069(0x192)]!=null?{'pageSize':_0x3cf8f3[_0x29f069(0x192)]}:{},..._0x3cf8f3[_0x29f069(0x1a1)]!=null?{'riskLevel':_0x3cf8f3['riskLevel']}:{},..._0x3cf8f3[_0x29f069(0x1a8)]!=null?{'locale':_0x3cf8f3[_0x29f069(0x1a8)]}:{}},_0x3cf8f3[_0x29f069(0x184)]=_0x33c322;if(!_0x3cf8f3[_0x29f069(0x182)])_0x3cf8f3['defaultApp']=_0x4d552e;_0x1f2631=!![];}return('appcode'in _0x3cf8f3||'app'in _0x3cf8f3)&&(delete _0x3cf8f3[_0x29f069(0x196)],delete _0x3cf8f3[_0x29f069(0x1a7)],_0x1f2631=!![]),{'config':_0x3cf8f3,'migrated':_0x1f2631};}function writeNormalizedConfigIfNeeded(_0xa0049c,_0x497cc4){const _0x2d6e9c=a192_0x1a34f7,_0x542b3d=JSON[_0x2d6e9c(0x1a5)](_0x497cc4,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0xa0049c)===_0x542b3d)return;writeConfigFile(_0xa0049c,_0x497cc4),normalizedWriteCache[_0x2d6e9c(0x187)](_0xa0049c,_0x542b3d);}function parseAndNormalizeConfig(_0x26046c,_0x59a8e6,_0x29c60e){const _0x1a491f=a192_0x1a34f7,_0x557ebf=parseCliConfigJsonFile(_0x26046c,_0x59a8e6,_0x29c60e),_0x5579c0=normalizeLegacyConfigShape(_0x557ebf);if(_0x5579c0[_0x1a491f(0x1ab)])try{writeNormalizedConfigIfNeeded(_0x26046c,_0x5579c0['config']);}catch{}return _0x5579c0[_0x1a491f(0x19b)];}export function loadRawConfigLayers(_0x2d46d9){const _0x451403=a192_0x1a34f7;let _0x1e42ed={},_0x56226a={};const _0x1fb587=resolveConfigPath(homedir());_0x1fb587&&(_0x1e42ed=parseAndNormalizeConfig(_0x1fb587,_0x451403(0x189),_0x451403(0x180)));const _0x7d9b95=_0x2d46d9??findProjectRootDirectory(),_0x42cb86=resolveConfigPath(_0x7d9b95);return _0x42cb86&&(_0x56226a=parseAndNormalizeConfig(_0x42cb86,_0x451403(0x189),_0x451403(0x19a))),{'globalPath':_0x1fb587,'projectPath':_0x42cb86,'globalConfig':_0x1e42ed,'projectConfig':_0x56226a};}const INHERIT_WHITELIST=[a192_0x1a34f7(0x197),'accessKey',a192_0x1a34f7(0x1a8),a192_0x1a34f7(0x1a9),'riskLevel',a192_0x1a34f7(0x192)];export function mergeRawConfigLayers(_0x532f87){const _0x4c6c76=a192_0x1a34f7,{globalConfig:_0x2d0bc2,projectConfig:_0x69897d}=_0x532f87,_0x2b43bb=Object[_0x4c6c76(0x185)](_0x69897d)[_0x4c6c76(0x18c)]>0x0;if(!_0x2b43bb)return mergeGlobalOnly(_0x2d0bc2);if(_0x69897d[_0x4c6c76(0x188)]===!![])return mergeFullInherit(_0x2d0bc2,_0x69897d);if(_0x69897d[_0x4c6c76(0x188)]===![])return mergeIsolated(_0x69897d);return mergeProjectFirst(_0x2d0bc2,_0x69897d);}function mergeGlobalOnly(_0x2095ed){const _0x4918e6=a192_0x1a34f7,_0x457c39={..._0x2095ed},_0x278501=_0x2095ed[_0x4918e6(0x184)]&&typeof _0x2095ed['apps']==='object'?_0x2095ed['apps']:{};if(Object[_0x4918e6(0x185)](_0x278501)[_0x4918e6(0x18c)]>0x0)_0x457c39['apps']=_0x278501;if(_0x2095ed['defaultApp'])_0x457c39[_0x4918e6(0x182)]=_0x2095ed[_0x4918e6(0x182)];else{const _0x32c75c=Object['keys'](_0x278501);if(_0x32c75c[_0x4918e6(0x18c)]>0x0)_0x457c39[_0x4918e6(0x182)]=_0x32c75c[0x0];}return _0x457c39;}function mergeIsolated(_0x4addd7){const _0x1f457a=a192_0x1a34f7,_0x2b204d={..._0x4addd7};delete _0x2b204d['inherit'];const _0x3ee05a=_0x4addd7['apps']&&typeof _0x4addd7[_0x1f457a(0x184)]==='object'?_0x4addd7[_0x1f457a(0x184)]:{};Object[_0x1f457a(0x185)](_0x3ee05a)[_0x1f457a(0x18c)]>0x0?_0x2b204d[_0x1f457a(0x184)]=_0x3ee05a:delete _0x2b204d[_0x1f457a(0x184)];if('defaultApp'in _0x4addd7)_0x2b204d[_0x1f457a(0x182)]=_0x4addd7[_0x1f457a(0x182)];else Object[_0x1f457a(0x185)](_0x3ee05a)[_0x1f457a(0x18c)]>0x0?_0x2b204d[_0x1f457a(0x182)]=Object['keys'](_0x3ee05a)[0x0]:delete _0x2b204d[_0x1f457a(0x182)];return _0x2b204d;}function mergeProjectFirst(_0x41152b,_0x4089e9){const _0x57275f=a192_0x1a34f7,_0x4f094a={..._0x4089e9};delete _0x4f094a['inherit'];for(const _0x3c94a2 of INHERIT_WHITELIST){!(_0x3c94a2 in _0x4f094a)&&_0x3c94a2 in _0x41152b&&(_0x4f094a[_0x3c94a2]=_0x41152b[_0x3c94a2]);}const _0x5dc68b=_0x4089e9[_0x57275f(0x184)]&&typeof _0x4089e9['apps']===_0x57275f(0x193)?_0x4089e9[_0x57275f(0x184)]:{};Object['keys'](_0x5dc68b)[_0x57275f(0x18c)]>0x0?_0x4f094a['apps']=_0x5dc68b:delete _0x4f094a[_0x57275f(0x184)];if(_0x57275f(0x182)in _0x4089e9)_0x4f094a[_0x57275f(0x182)]=_0x4089e9[_0x57275f(0x182)];else Object[_0x57275f(0x185)](_0x5dc68b)[_0x57275f(0x18c)]>0x0?_0x4f094a[_0x57275f(0x182)]=Object['keys'](_0x5dc68b)[0x0]:delete _0x4f094a[_0x57275f(0x182)];return _0x4f094a;}function mergeFullInherit(_0x586cff,_0x7ed946){const _0x246e30=a192_0x1a34f7,_0x297a0c=_0x586cff['apps']&&typeof _0x586cff[_0x246e30(0x184)]===_0x246e30(0x193)?_0x586cff[_0x246e30(0x184)]:{},_0x36c9c7=_0x7ed946[_0x246e30(0x184)]&&typeof _0x7ed946[_0x246e30(0x184)]===_0x246e30(0x193)?_0x7ed946['apps']:{},_0x49c0bc={..._0x297a0c,..._0x36c9c7},_0x2c39bc={..._0x586cff,..._0x7ed946};delete _0x2c39bc['inherit'];if(Object['keys'](_0x49c0bc)[_0x246e30(0x18c)]>0x0)_0x2c39bc[_0x246e30(0x184)]=_0x49c0bc;if(_0x246e30(0x182)in _0x7ed946)_0x2c39bc[_0x246e30(0x182)]=_0x7ed946[_0x246e30(0x182)];else{if(Object[_0x246e30(0x185)](_0x36c9c7)[_0x246e30(0x18c)]>0x0)_0x2c39bc[_0x246e30(0x182)]=Object['keys'](_0x36c9c7)[0x0];else{if(_0x586cff['defaultApp'])_0x2c39bc[_0x246e30(0x182)]=_0x586cff[_0x246e30(0x182)];else{const _0x21cb51=Object['keys'](_0x297a0c);if(_0x21cb51[_0x246e30(0x18c)]>0x0)_0x2c39bc[_0x246e30(0x182)]=_0x21cb51[0x0];}}}return _0x2c39bc;}export function readRawConfigWithLayers(_0x5d3cb7){const _0x51212f=loadRawConfigLayers(_0x5d3cb7);return{'config':mergeRawConfigLayers(_0x51212f),'layers':_0x51212f};}export function readRawConfig(_0x381f1b){return mergeRawConfigLayers(loadRawConfigLayers(_0x381f1b));}export function readConfigFile(_0x5bf74f){const _0x321d0a=a192_0x1a34f7;return parseAndNormalizeConfig(_0x5bf74f,_0x321d0a(0x17b));}export function writeConfigFile(_0x135aa2,_0x73ab6){const _0x1a4fa1=a192_0x1a34f7,_0xaf4b27=dirname(_0x135aa2);!existsSync(_0xaf4b27)&&mkdirSync(_0xaf4b27,{'recursive':!![]});const _0x5bdc88=_0x135aa2+_0x1a4fa1(0x19c);try{writeFileSync(_0x5bdc88,JSON[_0x1a4fa1(0x1a5)](_0x73ab6,null,0x2)+'\x0a',{'encoding':_0x1a4fa1(0x1ac),'mode':0x180}),renameSync(_0x5bdc88,_0x135aa2);}catch(_0x484601){try{unlinkSync(_0x5bdc88);}catch{}throw _0x484601;}}function a192_0x5d16(){const _0x40c704=['defaultApp','project','apps','keys','error','set','inherit','warn','6018750SeIJLH','env','length','\x0a\x20\x20','.rabetbase.json','status','2407328cPZbDx','203493HwMHlI','pageSize','object','.lovrabet.json','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','appcode','cookie','83416cdFfHT','accessKey','Project','config','.tmp','apiDir','cwd','.lovrabetrc','494927VVGoom','riskLevel','7228390bvgJFW','207wRcggT','trim','stringify','message','app','locale','format','2VOZfPv','migrated','utf8','silent','string','missing','5442318GxDxot','parse','Global','empty'];a192_0x5d16=function(){return _0x40c704;};return a192_0x5d16();}export function resolveWriteConfigPath(_0x251a6e){const _0x4ac41c=a192_0x1a34f7,_0x20cca1=_0x251a6e===_0x4ac41c(0x183)?process[_0x4ac41c(0x19e)]():homedir(),_0x5700ec=resolveConfigPath(_0x20cca1);return _0x5700ec??resolve(_0x20cca1,NEW_CONFIG_NAME);}