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

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 a166_0x5bf413=a166_0x1f89;(function(_0x4650a6,_0x10b7bb){const _0x4883a1=a166_0x1f89,_0x53a054=_0x4650a6();while(!![]){try{const _0x5eda36=-parseInt(_0x4883a1(0xa1))/0x1*(parseInt(_0x4883a1(0x83))/0x2)+parseInt(_0x4883a1(0x8e))/0x3*(parseInt(_0x4883a1(0x80))/0x4)+parseInt(_0x4883a1(0x87))/0x5+parseInt(_0x4883a1(0x82))/0x6*(-parseInt(_0x4883a1(0x9c))/0x7)+parseInt(_0x4883a1(0x8d))/0x8*(parseInt(_0x4883a1(0x93))/0x9)+-parseInt(_0x4883a1(0x98))/0xa*(parseInt(_0x4883a1(0x81))/0xb)+parseInt(_0x4883a1(0x9a))/0xc*(parseInt(_0x4883a1(0x85))/0xd);if(_0x5eda36===_0x10b7bb)break;else _0x53a054['push'](_0x53a054['shift']());}catch(_0x2e66db){_0x53a054['push'](_0x53a054['shift']());}}}(a166_0x2493,0x46b23));import{listSqlQueries}from'../../core/api-client.js';function a166_0x2493(){const _0x88a400=['951HAPHYt','sqlCode','\x20modified,\x20','remote','bool','251388YRfpek','sqlName','read','has','boolean','57400tgxPDX','filePath','12OhtKMa','length','547687dTNRAR','\x20added,\x20','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','sql','8623Mxmmpd','sqlRoot','All\x20SQL\x20queries\x20are\x20in\x20sync.','status','relativePath','push','tableData','path','6124XNseTL','1001VnvpRV','18SsbYuY','38bfCums','sqls','3763864RKmtMD','hash','362500kQfxAc','keys','appCode','map','\x20missing,\x20','paging','104LkRLmk'];a166_0x2493=function(){return _0x88a400;};return a166_0x2493();}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a166_0x1f89(_0x36a403,_0x28928f){_0x36a403=_0x36a403-0x7c;const _0x249390=a166_0x2493();let _0x1f89cb=_0x249390[_0x36a403];return _0x1f89cb;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x2ff3c7){const _0x666628=a166_0x1f89,_0x6f0386=[];let _0x10794b=0x1;while(!![]){const _0x36ddb6=await listSqlQueries(_0x2ff3c7,{'currentPage':_0x10794b,'pageSize':PAGE_SIZE}),_0x69697f=_0x36ddb6[_0x666628(0x7e)]??[];_0x6f0386[_0x666628(0x7d)](..._0x69697f[_0x666628(0x8a)](_0x4a6f0f=>_0x4a6f0f[_0x666628(0x8f)]));if(_0x69697f[_0x666628(0x9b)]===0x0)break;const _0x55e51b=_0x36ddb6[_0x666628(0x8c)]?.['totalCount'];if(_0x55e51b!=null?_0x6f0386[_0x666628(0x9b)]>=_0x55e51b:_0x69697f[_0x666628(0x9b)]<PAGE_SIZE)break;_0x10794b++;}return _0x6f0386;}export const sqlStatus={'service':a166_0x5bf413(0xa0),'command':a166_0x5bf413(0xa4),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a166_0x5bf413(0x95),'flags':[{'name':a166_0x5bf413(0x91),'type':a166_0x5bf413(0x97),'description':a166_0x5bf413(0x9f)}],async 'execute'(_0x3eef01){const _0x318a15=a166_0x5bf413,_0x463275=loadSqlProjectConfig(_0x3eef01[_0x318a15(0x89)]),_0x4b9910=await readSqlLockFile(_0x463275['lockFilePath']),{appLock:_0x4569f6}=ensureSqlLockScope(_0x4b9910??createEmptySqlLock(),_0x463275['appCode'],_0x463275[_0x318a15(0xa2)],_0x318a15(0xa4)),_0x5c3277=await scanLocalSqlQueries(_0x463275),_0xb8f6c=[],_0x13e470=[],_0x196c92=[],_0x44d276=[],_0x1c48d1=new Set(_0x5c3277[_0x318a15(0x8a)](_0x5905a9=>_0x5905a9[_0x318a15(0x9e)]));for(const _0x471a82 of _0x5c3277){const _0x58cc52=await computeSqlFileHash(_0x471a82[_0x318a15(0x99)]),_0x1833eb=_0x4569f6[_0x318a15(0x84)][_0x471a82[_0x318a15(0x9e)]],_0x1d539d=!!_0x1833eb&&_0x1833eb[_0x318a15(0x7f)]!==_0x471a82[_0x318a15(0x7c)],_0x19dd39=!!_0x1833eb&&!!_0x471a82[_0x318a15(0x94)]&&_0x1833eb['sqlName']!==_0x471a82[_0x318a15(0x94)];if(!_0x1833eb)_0xb8f6c[_0x318a15(0x7d)](_0x471a82['lockKey']);else _0x1833eb[_0x318a15(0x86)]!==_0x58cc52||_0x1d539d||_0x19dd39?_0x13e470[_0x318a15(0x7d)](_0x471a82[_0x318a15(0x9e)]):_0x196c92[_0x318a15(0x7d)](_0x471a82['lockKey']);}for(const _0x34328b of Object[_0x318a15(0x88)](_0x4569f6[_0x318a15(0x84)])){!_0x1c48d1[_0x318a15(0x96)](_0x34328b)&&_0x44d276['push'](_0x34328b);}const _0x14e88f=[];if(_0x3eef01[_0x318a15(0x92)]('remote')){const _0x2d657d=await fetchAllSqlCodes(_0x3eef01[_0x318a15(0x89)]);for(const _0x1e0b1b of _0x2d657d){!_0x1c48d1['has'](_0x1e0b1b)&&!_0x4569f6[_0x318a15(0x84)][_0x1e0b1b]&&_0x14e88f[_0x318a15(0x7d)](_0x1e0b1b);}}const _0x4554ea=_0xb8f6c[_0x318a15(0x9b)]===0x0&&_0x13e470['length']===0x0&&_0x44d276['length']===0x0&&_0x14e88f[_0x318a15(0x9b)]===0x0;return{'ok':!![],'data':{'added':_0xb8f6c,'modified':_0x13e470,'missing':_0x44d276,'unchanged':_0x196c92,'remoteOnly':_0x14e88f},'message':_0x4554ea?_0x318a15(0xa3):_0xb8f6c[_0x318a15(0x9b)]+_0x318a15(0x9d)+_0x13e470['length']+_0x318a15(0x90)+_0x44d276[_0x318a15(0x9b)]+_0x318a15(0x8b)+_0x196c92['length']+'\x20unchanged'+(_0x14e88f[_0x318a15(0x9b)]>0x0?',\x20'+_0x14e88f[_0x318a15(0x9b)]+'\x20remote-only':'')};}};
1
+ const a174_0x1a0452=a174_0x19b5;(function(_0x4a7689,_0x3c27bc){const _0x141f9b=a174_0x19b5,_0x29caf6=_0x4a7689();while(!![]){try{const _0x9a3702=parseInt(_0x141f9b(0xb9))/0x1*(parseInt(_0x141f9b(0xb4))/0x2)+-parseInt(_0x141f9b(0xae))/0x3*(-parseInt(_0x141f9b(0xb3))/0x4)+parseInt(_0x141f9b(0xad))/0x5*(parseInt(_0x141f9b(0xb0))/0x6)+parseInt(_0x141f9b(0xb8))/0x7+parseInt(_0x141f9b(0xb7))/0x8*(parseInt(_0x141f9b(0xb6))/0x9)+-parseInt(_0x141f9b(0x95))/0xa+-parseInt(_0x141f9b(0xa2))/0xb;if(_0x9a3702===_0x3c27bc)break;else _0x29caf6['push'](_0x29caf6['shift']());}catch(_0x406109){_0x29caf6['push'](_0x29caf6['shift']());}}}(a174_0x34e1,0x432cf));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a174_0x19b5(_0x359cbe,_0x31f4a1){_0x359cbe=_0x359cbe-0x94;const _0x34e18c=a174_0x34e1();let _0x19b563=_0x34e18c[_0x359cbe];return _0x19b563;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x14b0a5){const _0x1100d3=a174_0x19b5,_0xaa07b7=[];let _0x417c50=0x1;while(!![]){const _0x16d9f1=await listSqlQueries(_0x14b0a5,{'currentPage':_0x417c50,'pageSize':PAGE_SIZE}),_0x21086c=_0x16d9f1[_0x1100d3(0x9f)]??[];_0xaa07b7['push'](..._0x21086c['map'](_0x24b095=>_0x24b095['sqlCode']));if(_0x21086c[_0x1100d3(0x9a)]===0x0)break;const _0x39e37e=_0x16d9f1[_0x1100d3(0xb5)]?.[_0x1100d3(0xa8)];if(_0x39e37e!=null?_0xaa07b7[_0x1100d3(0x9a)]>=_0x39e37e:_0x21086c[_0x1100d3(0x9a)]<PAGE_SIZE)break;_0x417c50++;}return _0xaa07b7;}function a174_0x34e1(){const _0x3073d7=['boolean','bool','length','appCode','\x20modified,\x20','status','read','tableData','lockFilePath','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','11404602UDUdCm','has','relativePath','remote','lockKey','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','totalCount','sqls','sqlRoot','All\x20SQL\x20queries\x20are\x20in\x20sync.','keys','14225uKVOmQ','99VttrPK','push','978cQGHnr','sql','\x20missing,\x20','62728QEBQme','2308CEAViO','paging','153324dEBHnv','8DtnzaG','316687zwzuTX','392iKWdCP','\x20remote-only','1839530fBFERw','sqlName','path'];a174_0x34e1=function(){return _0x3073d7;};return a174_0x34e1();}export const sqlStatus={'service':a174_0x1a0452(0xb1),'command':'status','description':a174_0x1a0452(0xa1),'risk':a174_0x1a0452(0x9e),'flags':[{'name':a174_0x1a0452(0xa5),'type':a174_0x1a0452(0x98),'description':a174_0x1a0452(0xa7)}],async 'execute'(_0x4e5934){const _0x1d759a=a174_0x1a0452,_0x55ab6e=loadSqlProjectConfig(_0x4e5934['appCode']),_0x46d2ce=await readSqlLockFile(_0x55ab6e[_0x1d759a(0xa0)]),{appLock:_0x303ef5}=ensureSqlLockScope(_0x46d2ce??createEmptySqlLock(),_0x55ab6e['appCode'],_0x55ab6e[_0x1d759a(0xaa)],_0x1d759a(0x9d)),_0x7d22e8=await scanLocalSqlQueries(_0x55ab6e),_0x445a50=[],_0x1df85f=[],_0x33e07d=[],_0x34cea0=[],_0x38927c=new Set(_0x7d22e8['map'](_0x522d91=>_0x522d91['lockKey']));for(const _0x567f12 of _0x7d22e8){const _0x29ccef=await computeSqlFileHash(_0x567f12['filePath']),_0x24bc7b=_0x303ef5[_0x1d759a(0xa9)][_0x567f12[_0x1d759a(0xa6)]],_0x32fd72=!!_0x24bc7b&&_0x24bc7b[_0x1d759a(0x97)]!==_0x567f12[_0x1d759a(0xa4)],_0x2e66c5=!!_0x24bc7b&&!!_0x567f12[_0x1d759a(0x96)]&&_0x24bc7b['sqlName']!==_0x567f12[_0x1d759a(0x96)];if(!_0x24bc7b)_0x445a50[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]);else _0x24bc7b['hash']!==_0x29ccef||_0x32fd72||_0x2e66c5?_0x1df85f[_0x1d759a(0xaf)](_0x567f12[_0x1d759a(0xa6)]):_0x33e07d[_0x1d759a(0xaf)](_0x567f12['lockKey']);}for(const _0x4847a8 of Object[_0x1d759a(0xac)](_0x303ef5[_0x1d759a(0xa9)])){!_0x38927c[_0x1d759a(0xa3)](_0x4847a8)&&_0x34cea0['push'](_0x4847a8);}const _0x128982=[];if(_0x4e5934[_0x1d759a(0x99)]('remote')){const _0x29d390=await fetchAllSqlCodes(_0x4e5934[_0x1d759a(0x9b)]);for(const _0x1fb91c of _0x29d390){!_0x38927c[_0x1d759a(0xa3)](_0x1fb91c)&&!_0x303ef5[_0x1d759a(0xa9)][_0x1fb91c]&&_0x128982[_0x1d759a(0xaf)](_0x1fb91c);}}const _0x1dd46d=_0x445a50[_0x1d759a(0x9a)]===0x0&&_0x1df85f['length']===0x0&&_0x34cea0[_0x1d759a(0x9a)]===0x0&&_0x128982['length']===0x0;return{'ok':!![],'data':{'added':_0x445a50,'modified':_0x1df85f,'missing':_0x34cea0,'unchanged':_0x33e07d,'remoteOnly':_0x128982},'message':_0x1dd46d?_0x1d759a(0xab):_0x445a50[_0x1d759a(0x9a)]+'\x20added,\x20'+_0x1df85f[_0x1d759a(0x9a)]+_0x1d759a(0x9c)+_0x34cea0['length']+_0x1d759a(0xb2)+_0x33e07d[_0x1d759a(0x9a)]+'\x20unchanged'+(_0x128982[_0x1d759a(0x9a)]>0x0?',\x20'+_0x128982[_0x1d759a(0x9a)]+_0x1d759a(0x94):'')};}};
@@ -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_0x2b9a68=a175_0x56a2;(function(_0xe3c1a2,_0x4a1c21){const _0x59a658=a175_0x56a2,_0x1cf283=_0xe3c1a2();while(!![]){try{const _0x1f13c2=parseInt(_0x59a658(0x9f))/0x1+parseInt(_0x59a658(0x96))/0x2*(-parseInt(_0x59a658(0x95))/0x3)+parseInt(_0x59a658(0x88))/0x4+-parseInt(_0x59a658(0x81))/0x5+parseInt(_0x59a658(0x7e))/0x6*(-parseInt(_0x59a658(0x9c))/0x7)+-parseInt(_0x59a658(0x8c))/0x8+parseInt(_0x59a658(0xac))/0x9*(parseInt(_0x59a658(0x94))/0xa);if(_0x1f13c2===_0x4a1c21)break;else _0x1cf283['push'](_0x1cf283['shift']());}catch(_0x42d431){_0x1cf283['push'](_0x1cf283['shift']());}}}(a175_0x26b7,0x2079a));function a175_0x26b7(){const _0x44d6f0=['parameters','str','index_columns','Provide\x20--file\x20or\x20--sql','fields','string','451204RfHkzo','pkField','toLowerCase','length','798584qUIRhK','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','push','File\x20not\x20found:\x20','dbtableConfig','isArray','reason','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','5295660HSPTwC','14865kNOiQK','76jvxKOO','check-indexes','\x22\x20not\x20found\x20or\x20not\x20accessible','Dataset\x20\x22','appCode','schemaWarnings','91FmrwAL','primary','filter','13649OQYiqQ','indexes','file','flatMap','cwd','from','type','utf-8','message','split','columns','valid','bool','9XEgYLT','tables','sql','map','indexName','--check-indexes\x20requires\x20--schemas.','\x22\x20not\x20found\x20in\x20any\x20dataset','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','trim','validation','get','tableName','find','columnNames','schemas','index_type','unshift','isSelectOnly','dataset','sqlType','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','77844aRJYGT','read','isDangerous','331115pyuGeN'];a175_0x26b7=function(){return _0x44d6f0;};return a175_0x26b7();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a175_0x56a2(_0x8fc920,_0x2d13c0){_0x8fc920=_0x8fc920-0x76;const _0x26b7c6=a175_0x26b7();let _0x56a258=_0x26b7c6[_0x8fc920];return _0x56a258;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a175_0x2b9a68(0xae),'command':'validate','description':a175_0x2b9a68(0x8d),'risk':a175_0x2b9a68(0x7f),'flags':[{'name':'file','type':a175_0x2b9a68(0x87),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a175_0x2b9a68(0xae),'type':a175_0x2b9a68(0x87),'description':a175_0x2b9a68(0x7d)},{'name':a175_0x2b9a68(0x77),'type':'string','description':a175_0x2b9a68(0xb3)},{'name':a175_0x2b9a68(0x97),'type':'boolean','description':a175_0x2b9a68(0x93)}],async 'execute'(_0x24f578){const _0x4bd617=a175_0x2b9a68,_0x44666c=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xa1)),_0x561b3a=_0x24f578[_0x4bd617(0x83)](_0x4bd617(0xae)),_0x58970a=_0x24f578['str'](_0x4bd617(0x77)),_0x5db4c2=_0x24f578[_0x4bd617(0xab)](_0x4bd617(0x97));if(!_0x44666c&&!_0x561b3a)throw CliErrors['flagMissing'](_0x4bd617(0xa1),_0x4bd617(0x85));if(_0x5db4c2&&!_0x58970a)throw CliErrors['validation'](_0x4bd617(0xb1));let _0x50d860;if(_0x44666c){const _0xafdd8=resolve(process[_0x4bd617(0xa3)](),_0x44666c);if(!existsSync(_0xafdd8))throw CliErrors[_0x4bd617(0xb5)](_0x4bd617(0x8f)+_0xafdd8);_0x50d860=readFileSync(_0xafdd8,_0x4bd617(0xa6));}else _0x50d860=_0x561b3a;const _0x44cf22=validateSql(_0x50d860),_0xf2d7bf={'valid':_0x44cf22['valid'],'sqlType':_0x44cf22['sqlType'][_0x4bd617(0xa5)],'isSelectOnly':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x7a)],'isDangerous':_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x80)],'tables':_0x44cf22[_0x4bd617(0xad)],'parameters':_0x44cf22[_0x4bd617(0x82)],'message':_0x44cf22['message']};_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]&&(_0xf2d7bf[_0x4bd617(0x92)]=_0x44cf22[_0x4bd617(0x7c)][_0x4bd617(0x92)]);if(_0x58970a&&_0x44cf22[_0x4bd617(0xaa)]){const _0x5c0edf=_0x58970a[_0x4bd617(0xa8)](',')[_0x4bd617(0xaf)](_0x22087b=>_0x22087b[_0x4bd617(0xb4)]())[_0x4bd617(0x9e)](Boolean),_0x3a6aaf=[],_0x4a77e8=[],_0x1e1d33=filterDbTableBackedDatasets(await listDatasets(_0x24f578[_0x4bd617(0x9a)])),_0x1edfa3=new Map(_0x1e1d33[_0x4bd617(0xaf)](_0x2d7986=>[_0x2d7986[_0x4bd617(0x90)]?.['tableName']?.[_0x4bd617(0x8a)](),_0x2d7986]));for(const _0x3a6202 of _0x44cf22['tables']){const _0x2caa6f=_0x1edfa3[_0x4bd617(0xb6)](_0x3a6202[_0x4bd617(0x8a)]());!_0x2caa6f&&_0x3a6aaf[_0x4bd617(0x8e)]('Table\x20\x22'+_0x3a6202+_0x4bd617(0xb2));}for(const _0x15363e of _0x5c0edf){let _0xe657ef;try{_0xe657ef=await getDatasetDetail(_0x15363e);}catch{_0x3a6aaf[_0x4bd617(0x8e)](_0x4bd617(0x99)+_0x15363e+_0x4bd617(0x98));continue;}assertDatasetIsDbTableBacked(_0xe657ef,'SQL\x20schema\x20validation');const _0x583e07=Array[_0x4bd617(0x91)](_0xe657ef[_0x4bd617(0x86)])?_0xe657ef[_0x4bd617(0x86)]:[],_0x3725b6=new Set(_0x583e07[_0x4bd617(0xaf)](_0x677cfa=>_0x677cfa['name']?.[_0x4bd617(0x8a)]())),_0x253e0a=_0xe657ef[_0x4bd617(0x90)]?.['tableName']||_0xe657ef[_0x4bd617(0xb7)]||_0x15363e;_0xf2d7bf['schema:'+_0x253e0a]={'code':_0x15363e,'tableName':_0x253e0a,'fieldCount':_0x3725b6['size'],'fields':Array[_0x4bd617(0xa4)](_0x3725b6)};if(_0x5db4c2){const _0x10a3e1=normalizeDatasetIndexes(_0xe657ef);_0x4a77e8[_0x4bd617(0x8e)]({'tableName':_0x253e0a,..._0x10a3e1});}}_0x3a6aaf[_0x4bd617(0x8b)]>0x0&&(_0xf2d7bf[_0x4bd617(0x9b)]=_0x3a6aaf),_0x5db4c2&&(_0xf2d7bf['joinAudit']=auditSqlJoinIndexes(_0x50d860,_0x4a77e8));}return{'ok':_0x44cf22[_0x4bd617(0xaa)],'data':_0xf2d7bf,'message':_0x44cf22[_0x4bd617(0xa7)]};}};function normalizeDatasetIndexes(_0x307604){const _0x1b5d93=a175_0x2b9a68,_0x5d2229=Array[_0x1b5d93(0x91)](_0x307604?.['dataset']?.['indexes'])?_0x307604[_0x1b5d93(0x7b)][_0x1b5d93(0xa0)]:Array['isArray'](_0x307604?.[_0x1b5d93(0xa0)])?_0x307604[_0x1b5d93(0xa0)]:[],_0x5ac51b=_0x5d2229[_0x1b5d93(0xa2)](_0x4be4ef=>{const _0x56ded7=_0x1b5d93,_0x68dacd=Array['isArray'](_0x4be4ef?.['index_columns'])?_0x4be4ef[_0x56ded7(0x84)]:Array[_0x56ded7(0x91)](_0x4be4ef?.[_0x56ded7(0x76)])?_0x4be4ef[_0x56ded7(0x76)]:Array['isArray'](_0x4be4ef?.[_0x56ded7(0xa9)])?_0x4be4ef['columns']:[],_0x1e5b05=_0x68dacd[_0x56ded7(0x9e)](_0x4369ae=>typeof _0x4369ae==='string')[_0x56ded7(0xaf)](_0x297e47=>_0x297e47[_0x56ded7(0xb4)]())[_0x56ded7(0x9e)](Boolean);if(_0x1e5b05['length']===0x0)return[];const _0x4c505a=[_0x4be4ef?.[_0x56ded7(0xb0)],_0x4be4ef?.['index_name'],_0x4be4ef?.['name']]['find'](_0x5890e5=>typeof _0x5890e5===_0x56ded7(0x87)&&_0x5890e5[_0x56ded7(0xb4)]()),_0x4bd902=[_0x4be4ef?.[_0x56ded7(0x78)],_0x4be4ef?.[_0x56ded7(0xa5)]][_0x56ded7(0xb8)](_0x41dc27=>typeof _0x41dc27===_0x56ded7(0x87)&&_0x41dc27['trim']());return[{..._0x4c505a?{'name':_0x4c505a['trim']()}:{},..._0x4bd902?{'type':_0x4bd902[_0x56ded7(0xb4)]()}:{},'columns':_0x1e5b05}];}),_0x3789de=[..._0x5ac51b],_0x4bb526=typeof _0x307604?.['dbtableConfig']?.[_0x1b5d93(0x89)]===_0x1b5d93(0x87)?_0x307604[_0x1b5d93(0x90)]['pkField'][_0x1b5d93(0xa8)](',')[_0x1b5d93(0xaf)](_0x52e433=>_0x52e433[_0x1b5d93(0xb4)]())[_0x1b5d93(0x9e)](Boolean):[];return _0x4bb526['length']>0x0&&_0x3789de[_0x1b5d93(0x79)]({'type':_0x1b5d93(0x9d),'columns':_0x4bb526}),{'indexes':_0x3789de,'metadataAvailable':_0x5ac51b[_0x1b5d93(0x8b)]>0x0};}
@@ -0,0 +1 @@
1
+ function a176_0x293f(_0x36214e,_0x414f13){_0x36214e=_0x36214e-0x18b;const _0x4c27e2=a176_0x4c27();let _0x293f16=_0x4c27e2[_0x36214e];return _0x293f16;}(function(_0x2558f1,_0x38a689){const _0xecd40=a176_0x293f,_0x29be2d=_0x2558f1();while(!![]){try{const _0x214bb8=-parseInt(_0xecd40(0x18d))/0x1+parseInt(_0xecd40(0x18f))/0x2+-parseInt(_0xecd40(0x190))/0x3+-parseInt(_0xecd40(0x18e))/0x4*(parseInt(_0xecd40(0x191))/0x5)+-parseInt(_0xecd40(0x18b))/0x6+parseInt(_0xecd40(0x18c))/0x7+parseInt(_0xecd40(0x192))/0x8;if(_0x214bb8===_0x38a689)break;else _0x29be2d['push'](_0x29be2d['shift']());}catch(_0x4aae07){_0x29be2d['push'](_0x29be2d['shift']());}}}(a176_0x4c27,0xa4ec2));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a176_0x4c27(){const _0x1d60f2=['1106734pFmkFG','297728xXuxEh','2388628tXGJxg','145146GgvdzO','25UaueKG','9696392WaAutw','7440024QnZYJa','7255073WSViwH'];a176_0x4c27=function(){return _0x1d60f2;};return a176_0x4c27();}
@@ -0,0 +1 @@
1
+ const a177_0x1c468c=a177_0x13a3;function a177_0x1834(){const _0x321c3e=['appCode','cookie','task','status','flagMissing','apiError','13905yAYplB','trim','1bIrvit','3yoaJjo','str','2898552SywYoV','7563507WMxxML','2401895nFoGsW','667742hOucDp','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id','16310wMIabQ','3928fNEIgu','8624XGUYTl','taskId','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','string','3136376GyqIhd','isTerminal'];a177_0x1834=function(){return _0x321c3e;};return a177_0x1834();}(function(_0x54ff53,_0x189c8e){const _0x2f6a85=a177_0x13a3,_0x5be21a=_0x54ff53();while(!![]){try{const _0x40bd31=-parseInt(_0x2f6a85(0x1ee))/0x1*(-parseInt(_0x2f6a85(0x1f4))/0x2)+-parseInt(_0x2f6a85(0x1ef))/0x3*(-parseInt(_0x2f6a85(0x1e4))/0x4)+-parseInt(_0x2f6a85(0x1f3))/0x5+parseInt(_0x2f6a85(0x1f1))/0x6+-parseInt(_0x2f6a85(0x1f2))/0x7+-parseInt(_0x2f6a85(0x1df))/0x8*(parseInt(_0x2f6a85(0x1ec))/0x9)+-parseInt(_0x2f6a85(0x1de))/0xa*(-parseInt(_0x2f6a85(0x1e0))/0xb);if(_0x40bd31===_0x189c8e)break;else _0x5be21a['push'](_0x5be21a['shift']());}catch(_0x29c295){_0x5be21a['push'](_0x5be21a['shift']());}}}(a177_0x1834,0x88c9e));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';function a177_0x13a3(_0x5ab5b3,_0x20a669){_0x5ab5b3=_0x5ab5b3-0x1de;const _0x18346a=a177_0x1834();let _0x13a3e9=_0x18346a[_0x5ab5b3];return _0x13a3e9;}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a177_0x1c468c(0x1e8),'command':a177_0x1c468c(0x1e9),'description':a177_0x1c468c(0x1f6),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a177_0x1c468c(0x1f7),'type':a177_0x1c468c(0x1e3),'required':!![],'description':a177_0x1c468c(0x1f5)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x391a90){const _0x1cbd0e=a177_0x1c468c;if(!_0x391a90['str']('task-id')[_0x1cbd0e(0x1ed)]())throw CliErrors[_0x1cbd0e(0x1ea)](_0x1cbd0e(0x1f7));},async 'execute'(_0xdd8f66){const _0x3415d2=a177_0x1c468c,_0x1a93a7=_0xdd8f66[_0x3415d2(0x1f0)]('task-id')[_0x3415d2(0x1ed)](),_0x23eace=normalizeAsyncTask(await getAsyncTaskStatus(_0x1a93a7,_0xdd8f66[_0x3415d2(0x1e6)],_0xdd8f66[_0x3415d2(0x1e7)]));if(_0x23eace[_0x3415d2(0x1e1)]!==_0x1a93a7)throw CliErrors[_0x3415d2(0x1eb)](_0x3415d2(0x1e2)+_0x1a93a7+',\x20received\x20'+_0x23eace['taskId']+'.');const _0x4d6582=buildAsyncTaskStatusCommand(_0x23eace[_0x3415d2(0x1e1)],_0xdd8f66[_0x3415d2(0x1e6)]);return{'ok':!![],'message':asyncTaskMessage(_0x23eace),'data':{'appCode':_0xdd8f66[_0x3415d2(0x1e6)],..._0x23eace,'query':_0x23eace[_0x3415d2(0x1e5)]?null:{'command':_0x4d6582}}};}};
@@ -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_0x3aff6d=a178_0x37fa;(function(_0x1bc236,_0x150947){const _0x546e38=a178_0x37fa,_0x5652ee=_0x1bc236();while(!![]){try{const _0x55abb7=-parseInt(_0x546e38(0x200))/0x1*(-parseInt(_0x546e38(0x1f4))/0x2)+parseInt(_0x546e38(0x1f3))/0x3*(-parseInt(_0x546e38(0x1fc))/0x4)+-parseInt(_0x546e38(0x1f8))/0x5+-parseInt(_0x546e38(0x1f7))/0x6+parseInt(_0x546e38(0x1f5))/0x7+-parseInt(_0x546e38(0x1fd))/0x8+parseInt(_0x546e38(0x1ff))/0x9*(parseInt(_0x546e38(0x1fe))/0xa);if(_0x55abb7===_0x150947)break;else _0x5652ee['push'](_0x5652ee['shift']());}catch(_0x8ce78d){_0x5652ee['push'](_0x5652ee['shift']());}}}(a178_0x6e9a,0xdfc60));function a178_0x37fa(_0x1de460,_0x229560){_0x1de460=_0x1de460-0x1f3;const _0x6e9af1=a178_0x6e9a();let _0x37fa53=_0x6e9af1[_0x1de460];return _0x37fa53;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a178_0x6e9a(){const _0x1147a9=['630HCaZhi','497439UBBHvu','2zlTrwN','name','2930763sOfFps','1196156hMBWdw','2599149DfwTwr','write','8428890FTuIul','5428220ALUHTk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20add','add','4ItzvGY','5324640mzqTgK'];a178_0x6e9a=function(){return _0x1147a9;};return a178_0x6e9a();}export const workspaceAddDefinition={'service':'workspace','command':a178_0x3aff6d(0x1fb),'description':a178_0x3aff6d(0x1f9),'risk':a178_0x3aff6d(0x1f6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a178_0x3aff6d(0x201),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0xc562a6=>validateAppName(_0xc562a6,a178_0x3aff6d(0x1fa)),'execute':_0x2da0f0=>runAppAdd(_0x2da0f0,a178_0x3aff6d(0x1fa))};
@@ -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_0x1409e7=a179_0x2450;function a179_0x2450(_0x4a3f47,_0xfdc825){_0x4a3f47=_0x4a3f47-0x1aa;const _0x41be72=a179_0x41be();let _0x24501a=_0x41be72[_0x4a3f47];return _0x24501a;}(function(_0xed35f5,_0x5ee148){const _0x28a7d7=a179_0x2450,_0x296fb5=_0xed35f5();while(!![]){try{const _0x485a44=-parseInt(_0x28a7d7(0x1b6))/0x1*(-parseInt(_0x28a7d7(0x1da))/0x2)+parseInt(_0x28a7d7(0x1e0))/0x3*(-parseInt(_0x28a7d7(0x1aa))/0x4)+-parseInt(_0x28a7d7(0x1c1))/0x5+parseInt(_0x28a7d7(0x1ae))/0x6*(-parseInt(_0x28a7d7(0x1e7))/0x7)+parseInt(_0x28a7d7(0x1b7))/0x8+parseInt(_0x28a7d7(0x1e2))/0x9*(parseInt(_0x28a7d7(0x1db))/0xa)+parseInt(_0x28a7d7(0x1bc))/0xb*(parseInt(_0x28a7d7(0x1d7))/0xc);if(_0x485a44===_0x5ee148)break;else _0x296fb5['push'](_0x296fb5['shift']());}catch(_0x23713b){_0x296fb5['push'](_0x296fb5['shift']());}}}(a179_0x41be,0xec878));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';function a179_0x41be(){const _0x2fa4f7=['use','App\x20\x22','Missing\x20workspace\x20app\x20selector.','workspace','str','join','env','501453bCIevk','146432dmppNz','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--app\x20','\x20workspace\x20','locale','44Twbqmm','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','app','globalConfig','2800595BBoRUs','Use\x20`','workspace.','apiDir','pageSize','Locale\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','number','updated',').\x20Config:\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','trim','format','Switch\x20the\x20current\x20workspace\x20app\x20binding','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','Invalid\x20appcode:\x20','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','\x20--appcode\x20<code>`.','defaultApp','4568856qzegcS','apps','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6HVxRja','46780XiGyym','object','write','\x22\x20not\x20found.','appcode','3974862UPxrbY','length','1602EFlKOo','defaultFormat','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','string','27902LkOUcx','4KcwcaU','init','\x20workspace\x20use\x20--app\x20<name>`.','project','1542xpHsna'];a179_0x41be=function(){return _0x2fa4f7;};return a179_0x41be();}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_0x1409e7(0x1cc),SAFE_PROFILE_KEYS=[a179_0x1409e7(0x1df),a179_0x1409e7(0x1b5),a179_0x1409e7(0x1c4),'format','pageSize',a179_0x1409e7(0x1e5),a179_0x1409e7(0x1bb)],workspaceFlags=[{'name':a179_0x1409e7(0x1bf),'type':'string','description':a179_0x1409e7(0x1d3)},{'name':a179_0x1409e7(0x1df),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1b8)},{'name':a179_0x1409e7(0x1b5),'type':a179_0x1409e7(0x1e6),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e3),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1cb),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a179_0x1409e7(0x1c8),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a179_0x1409e7(0x1e5),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1e4),'enum':[...RISK_LEVEL_VALUES]},{'name':a179_0x1409e7(0x1bb),'type':a179_0x1409e7(0x1e6),'description':a179_0x1409e7(0x1c6)}];function isRecord(_0x43122a){const _0x5ddc77=a179_0x1409e7;return!!_0x43122a&&typeof _0x43122a===_0x5ddc77(0x1dc)&&!Array[_0x5ddc77(0x1d1)](_0x43122a);}function assertValidAppcode(_0x8c233f){const _0x46cca7=a179_0x1409e7,{valid:_0x1fe1ab,message:_0x1de9aa}=validateAppcode(_0x8c233f);if(!_0x1fe1ab)throw CliErrors[_0x46cca7(0x1bd)](_0x46cca7(0x1d2)+_0x8c233f,_0x1de9aa);}function sanitizeProfile(_0x504632){if(!isRecord(_0x504632))return{};const _0xc4fdd1={};for(const _0x4cb0ac of SAFE_PROFILE_KEYS){if(_0x504632[_0x4cb0ac]!==undefined)_0xc4fdd1[_0x4cb0ac]=_0x504632[_0x4cb0ac];}return _0xc4fdd1;}function cloneProfile(_0x192046){return isRecord(_0x192046)?{..._0x192046}:{};}function collectWorkspaceProfileOverrides(_0x23fce8){const _0x298707=a179_0x1409e7,_0x3fe2fb={},_0x387867=_0x23fce8[_0x298707(0x1b3)]('env'),_0x501312=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1c4)),_0x1135b3=_0x23fce8[_0x298707(0x1b3)](_0x298707(0x1e3)),_0x3c1547=_0x23fce8['flag'](_0x298707(0x1c5)),_0x13bfaf=_0x23fce8[_0x298707(0x1b3)]('riskLevel'),_0x5345b3=_0x23fce8[_0x298707(0x1b3)]('locale');if(_0x387867)_0x3fe2fb[_0x298707(0x1b5)]=_0x387867;if(_0x501312)_0x3fe2fb['apiDir']=_0x501312;if(_0x1135b3)_0x3fe2fb[_0x298707(0x1ce)]=_0x1135b3;if(_0x3c1547!==undefined&&_0x3c1547!=='')_0x3fe2fb[_0x298707(0x1c5)]=Number(_0x3c1547);if(_0x13bfaf)_0x3fe2fb[_0x298707(0x1e5)]=_0x13bfaf;if(_0x5345b3)_0x3fe2fb[_0x298707(0x1bb)]=_0x5345b3;return _0x3fe2fb;}async function validateWorkspaceArgs(_0x475c61){const _0x4cc98f=a179_0x1409e7,_0x3b685c=_0x475c61[_0x4cc98f(0x1b3)](_0x4cc98f(0x1bf))['trim'](),_0x43263a=_0x475c61['str']('appcode')[_0x4cc98f(0x1cd)]();if(!_0x3b685c&&!_0x43263a)throw CliErrors[_0x4cc98f(0x1bd)](_0x4cc98f(0x1b1),'Use\x20`'+CLI_BIN_NAME+_0x4cc98f(0x1be)+CLI_BIN_NAME+_0x4cc98f(0x1ac));if(_0x43263a)assertValidAppcode(_0x43263a);}function resolveKnownApps(){const _0x39fc39=a179_0x1409e7,{config:_0x2046d8,layers:_0x8f81ee}=readRawConfigWithLayers(),_0x5cdd76=isRecord(_0x2046d8[_0x39fc39(0x1d8)])?_0x2046d8[_0x39fc39(0x1d8)]:{},_0x46740d=isRecord(_0x8f81ee['globalConfig'][_0x39fc39(0x1d8)])?_0x8f81ee[_0x39fc39(0x1c0)][_0x39fc39(0x1d8)]:{};return{..._0x46740d,..._0x5cdd76};}async function configureWorkspace(_0x3c64bb,_0x1dd61e){const _0x3ef7d1=a179_0x1409e7,_0x4ca6b8=_0x3c64bb['str'](_0x3ef7d1(0x1bf))[_0x3ef7d1(0x1cd)](),_0x5c8003=_0x3c64bb[_0x3ef7d1(0x1b3)](_0x3ef7d1(0x1df))[_0x3ef7d1(0x1cd)](),_0x174706=_0x4ca6b8||_0x5c8003;if(!_0x174706)throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b1),_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1be)+CLI_BIN_NAME+_0x3ef7d1(0x1ac));if(_0x5c8003)assertValidAppcode(_0x5c8003);const _0x393af6=resolveWriteConfigPath(_0x3ef7d1(0x1ad)),_0x5a3f98=readConfigFile(_0x393af6),_0x5eab12=resolveKnownApps(),_0x3d2311=isRecord(_0x5a3f98[_0x3ef7d1(0x1d8)])?{..._0x5a3f98[_0x3ef7d1(0x1d8)]}:{},_0x8f2415=cloneProfile(_0x3d2311[_0x174706]),_0xfd7b99=sanitizeProfile(_0x5eab12[_0x174706]),_0x57c697=_0x5c8003?{}:_0xfd7b99,_0x1a1dc8=_0x5c8003||_0x57c697[_0x3ef7d1(0x1df)];if(!_0x1a1dc8){const _0x170528=Object['keys'](_0x5eab12),_0x40d55f=_0x170528[_0x3ef7d1(0x1e1)]===0x0?_0x3ef7d1(0x1c2)+CLI_BIN_NAME+_0x3ef7d1(0x1ba)+_0x1dd61e+_0x3ef7d1(0x1b9)+_0x174706+_0x3ef7d1(0x1d5):_0x3ef7d1(0x1d9)+_0x170528[_0x3ef7d1(0x1b4)](',\x20');throw CliErrors[_0x3ef7d1(0x1bd)](_0x3ef7d1(0x1b0)+_0x174706+_0x3ef7d1(0x1de),_0x40d55f);}assertValidAppcode(String(_0x1a1dc8));const _0x10f12d={..._0x57c697,..._0x8f2415,'appcode':String(_0x1a1dc8),...collectWorkspaceProfileOverrides(_0x3c64bb)};return _0x3d2311[_0x174706]=_0x10f12d,_0x5a3f98[_0x3ef7d1(0x1d8)]=_0x3d2311,_0x5a3f98[_0x3ef7d1(0x1d6)]=_0x174706,delete _0x5a3f98['appcode'],delete _0x5a3f98[_0x3ef7d1(0x1bf)],_0x10f12d['env']&&(_0x5a3f98[_0x3ef7d1(0x1b5)]=_0x10f12d[_0x3ef7d1(0x1b5)]),writeConfigFile(_0x393af6,_0x5a3f98),{'ok':!![],'message':_0x3ef7d1(0x1c7)+(_0x1dd61e===_0x3ef7d1(0x1ab)?_0x3ef7d1(0x1d4):_0x3ef7d1(0x1c9))+':\x20'+_0x174706+'\x20(appcode:\x20'+_0x10f12d[_0x3ef7d1(0x1df)]+_0x3ef7d1(0x1ca)+_0x393af6+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3ef7d1(0x1c3)+_0x1dd61e,'configPath':_0x393af6,'app':_0x174706,'appcode':_0x10f12d[_0x3ef7d1(0x1df)],'env':_0x10f12d[_0x3ef7d1(0x1b5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a179_0x1409e7(0x1b2),'command':'init','description':a179_0x1409e7(0x1d0),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4a37a2=>configureWorkspace(_0x4a37a2,a179_0x1409e7(0x1ab))},workspaceUseDefinition={'service':a179_0x1409e7(0x1b2),'command':a179_0x1409e7(0x1af),'description':a179_0x1409e7(0x1cf),'risk':a179_0x1409e7(0x1dd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3a05bb=>configureWorkspace(_0x3a05bb,a179_0x1409e7(0x1af))};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
+ const a180_0x5f074=a180_0x566e;(function(_0x5521bd,_0x1f89a9){const _0x5a044b=a180_0x566e,_0x112f74=_0x5521bd();while(!![]){try{const _0x3f42c1=parseInt(_0x5a044b(0x97))/0x1+parseInt(_0x5a044b(0x9a))/0x2*(parseInt(_0x5a044b(0x95))/0x3)+parseInt(_0x5a044b(0x98))/0x4+-parseInt(_0x5a044b(0x9f))/0x5+-parseInt(_0x5a044b(0x96))/0x6+-parseInt(_0x5a044b(0x9c))/0x7+parseInt(_0x5a044b(0xa1))/0x8;if(_0x3f42c1===_0x1f89a9)break;else _0x112f74['push'](_0x112f74['shift']());}catch(_0x1e7842){_0x112f74['push'](_0x112f74['shift']());}}}(a180_0x5070,0x8bffe));function a180_0x566e(_0x97a0e6,_0x3c16bb){_0x97a0e6=_0x97a0e6-0x94;const _0x5070f2=a180_0x5070();let _0x566ee7=_0x5070f2[_0x97a0e6];return _0x566ee7;}function a180_0x5070(){const _0x9429e2=['remove','9712080sqCBti','high-risk-write','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','3MDbVmt','5011074aNtuXo','301702MIYoQJ','37228Zixrgr','name','617402SybjoW','workspace\x20remove','730877jycsiq','workspace','App\x20profile\x20name\x20to\x20remove','1603460ESCIVL'];a180_0x5070=function(){return _0x9429e2;};return a180_0x5070();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a180_0x5f074(0x9d),'command':a180_0x5f074(0xa0),'description':a180_0x5f074(0x94),'risk':a180_0x5f074(0xa2),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x5f074(0x99),'description':a180_0x5f074(0x9e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x4489e4=>validateAppName(_0x4489e4,a180_0x5f074(0x9b)),'execute':_0xa492a4=>runAppRemove(_0xa492a4,a180_0x5f074(0x9b))};
@@ -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_0x2e18a6=a181_0x397d;(function(_0x25a918,_0x103b15){const _0x2e7823=a181_0x397d,_0x2995a1=_0x25a918();while(!![]){try{const _0xb11d60=parseInt(_0x2e7823(0x156))/0x1*(-parseInt(_0x2e7823(0x132))/0x2)+parseInt(_0x2e7823(0x13c))/0x3*(parseInt(_0x2e7823(0x150))/0x4)+-parseInt(_0x2e7823(0x154))/0x5+parseInt(_0x2e7823(0x14c))/0x6+-parseInt(_0x2e7823(0x137))/0x7+parseInt(_0x2e7823(0x155))/0x8*(-parseInt(_0x2e7823(0x130))/0x9)+parseInt(_0x2e7823(0x15a))/0xa*(parseInt(_0x2e7823(0x141))/0xb);if(_0xb11d60===_0x103b15)break;else _0x2995a1['push'](_0x2995a1['shift']());}catch(_0x2d000e){_0x2995a1['push'](_0x2995a1['shift']());}}}(a181_0x2c52,0x83e0b));function a181_0x397d(_0x5a50f4,_0x571f87){_0x5a50f4=_0x5a50f4-0x12f;const _0x2c5205=a181_0x2c52();let _0x397dbe=_0x2c5205[_0x5a50f4];return _0x397dbe;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),'locale','format',a181_0x2e18a6(0x14d)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a181_0x2e18a6(0x135),a181_0x2e18a6(0x143),'locale',a181_0x2e18a6(0x142),a181_0x2e18a6(0x158),a181_0x2e18a6(0x138),a181_0x2e18a6(0x14f)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2b4108){const _0x737b1f=a181_0x2e18a6;return[..._0x2b4108][_0x737b1f(0x134)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x54e4b2){const _0x171891=a181_0x2e18a6;return TOP_LEVEL_CONFIG_KEYS[_0x171891(0x14b)](_0x54e4b2);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3ab037=a181_0x2e18a6;return _0x3ab037(0x151)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a181_0x2e18a6(0x143),'apiDir':a181_0x2e18a6(0x14f),'cookie':a181_0x2e18a6(0x158),'accessKey':a181_0x2e18a6(0x138),'defaultFormat':a181_0x2e18a6(0x142),'pageSize':a181_0x2e18a6(0x12f),'riskLevel':a181_0x2e18a6(0x14d),'locale':a181_0x2e18a6(0x148)};export function getAppProfileFlagDefs(){const _0x322c58=a181_0x2e18a6;return[{'name':_0x322c58(0x143),'type':_0x322c58(0x14a),'description':_0x322c58(0x13f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x322c58(0x14f),'type':'string','description':_0x322c58(0x136)},{'name':_0x322c58(0x158),'type':_0x322c58(0x14a),'description':'Auth\x20cookie','hidden':!![]},{'name':'accessKey','type':_0x322c58(0x14a),'description':_0x322c58(0x13b),'hidden':!![]},{'name':_0x322c58(0x144),'type':_0x322c58(0x14a),'description':_0x322c58(0x147),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x322c58(0x12f),'type':_0x322c58(0x145),'description':_0x322c58(0x133)},{'name':_0x322c58(0x14d),'type':_0x322c58(0x14a),'description':_0x322c58(0x139),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x322c58(0x14a),'description':'Locale'}];}export function collectAppProfileOverrides(_0x2490c7){const _0x3a1575=a181_0x2e18a6,_0x308307={};for(const [_0x5d384b,_0x304e8d]of Object[_0x3a1575(0x13e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x21f2a8=_0x2490c7(_0x5d384b);if(!_0x21f2a8)continue;_0x308307[_0x304e8d]=_0x304e8d===_0x3a1575(0x12f)?Number(_0x21f2a8):_0x21f2a8;}return _0x308307;}export function buildAppProfileListFields(_0x42952a){const _0x14cce1=a181_0x2e18a6;return{'env':_0x42952a[_0x14cce1(0x143)]??null,'apiDir':_0x42952a['apiDir']??null,'hasCookie':!!_0x42952a[_0x14cce1(0x158)],'hasAccessKey':!!_0x42952a[_0x14cce1(0x138)],'format':_0x42952a[_0x14cce1(0x142)]??null,'pageSize':_0x42952a[_0x14cce1(0x12f)]??null,'riskLevel':_0x42952a[_0x14cce1(0x14d)]??null,'locale':_0x42952a[_0x14cce1(0x148)]??null};}export function buildAppDoctorFields(_0x1e0919,_0x10347d){const _0x139251=a181_0x2e18a6;return{'env':{'value':_0x1e0919[_0x139251(0x143)]||_0x10347d[_0x139251(0x143)],'source':_0x1e0919['env']?_0x139251(0x140):_0x139251(0x159)},'apiDir':{'value':_0x1e0919[_0x139251(0x14f)]||_0x10347d[_0x139251(0x14f)],'source':_0x1e0919[_0x139251(0x14f)]?_0x139251(0x140):_0x139251(0x159)},'cookie':{'value':_0x1e0919[_0x139251(0x158)]||_0x10347d[_0x139251(0x158)],'source':_0x1e0919[_0x139251(0x158)]?_0x139251(0x140):_0x139251(0x159)},'accessKey':{'value':_0x1e0919[_0x139251(0x138)]||_0x10347d[_0x139251(0x138)],'source':_0x1e0919[_0x139251(0x138)]?_0x139251(0x140):_0x139251(0x159)}};}export function buildCanonicalAppConfig(_0x2f1ce7,_0xa2f38e){const _0x57e95c=a181_0x2e18a6,_0x2d9f13=_0x2f1ce7['map'](_0x19ffc3=>String(_0x19ffc3||'')[_0x57e95c(0x157)]())[_0x57e95c(0x13a)](Boolean);if(_0x2d9f13[_0x57e95c(0x149)]===0x0)return{};const _0x39887e={};for(const _0x166842 of _0x2d9f13){_0x39887e[_0x166842]=_0xa2f38e?{'appcode':_0x166842,'env':_0xa2f38e}:{'appcode':_0x166842};}return{'apps':_0x39887e,'defaultApp':_0x2d9f13[0x0]};}function a181_0x2c52(){const _0x2a126e=['11eiOsZs','format','env','defaultFormat','number','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','locale','length','string','has','5107848CPMMKN','riskLevel','zh-CN','apiDir','140332BEqmnW','Config\x20key\x20(','apps','en-US','4870420xaUAwX','24gCfKBP','375915OgLbgT','trim','cookie','inherit','17840530xXOcDn','pageSize','3192363SfMyFd','toLowerCase','2TgVITy','Default\x20page\x20size','join','appcode','API\x20directory\x20path','1205624SrHApZ','accessKey','Risk\x20level','filter','Access\x20key','42FpMOkk','keys','entries','Target\x20environment','app'];a181_0x2c52=function(){return _0x2a126e;};return a181_0x2c52();}export function buildCanonicalProjectConfig(_0x4d2570,_0x32031d){const _0x1b254c=a181_0x2e18a6,{appCodes:appCodes=[],env:_0x570d0f,metadata:_0x57124e}=_0x32031d,_0x48fe47={..._0x4d2570,..._0x57124e||{}};delete _0x48fe47['appcode'],delete _0x48fe47['app'];if(_0x570d0f)_0x48fe47[_0x1b254c(0x143)]=_0x570d0f;else!_0x48fe47[_0x1b254c(0x143)]&&(_0x48fe47[_0x1b254c(0x143)]=DEFAULT_CONFIG_VALUES['env']);const _0x353a4d=buildCanonicalAppConfig(appCodes,_0x48fe47[_0x1b254c(0x143)]);return Object[_0x1b254c(0x13d)](_0x353a4d)[_0x1b254c(0x149)]>0x0&&(_0x48fe47[_0x1b254c(0x152)]=_0x353a4d[_0x1b254c(0x152)],_0x48fe47[_0x1b254c(0x146)]=_0x353a4d[_0x1b254c(0x146)]),_0x48fe47;}const LOCALE_MAP={'zh':a181_0x2e18a6(0x14e),'zh-cn':a181_0x2e18a6(0x14e),'zh_cn':'zh-CN','en':a181_0x2e18a6(0x153),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x246710){const _0x41c5f8=a181_0x2e18a6;if(!_0x246710)return null;return LOCALE_MAP[_0x246710[_0x41c5f8(0x131)]()]??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_0x78385c=a182_0x280f;function a182_0x280f(_0x11d503,_0x3cb8dc){_0x11d503=_0x11d503-0x126;const _0x225022=a182_0x2250();let _0x280f6d=_0x225022[_0x11d503];return _0x280f6d;}function a182_0x2250(){const _0x595c37=['54GOulWx','5501144MwDmRC','5121110tYGdmp','3xqRgFz','528196VpgIcU','2640750TNWRfI','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1935856BOtEmP','495044qqmEbH','15uWOZPR','3063046xHPFTO'];a182_0x2250=function(){return _0x595c37;};return a182_0x2250();}(function(_0x307ce7,_0x39c9a1){const _0x4b7c39=a182_0x280f,_0x198c2e=_0x307ce7();while(!![]){try{const _0x3d1d8d=parseInt(_0x4b7c39(0x129))/0x1+parseInt(_0x4b7c39(0x12d))/0x2+parseInt(_0x4b7c39(0x128))/0x3*(-parseInt(_0x4b7c39(0x126))/0x4)+parseInt(_0x4b7c39(0x12e))/0x5*(-parseInt(_0x4b7c39(0x12a))/0x6)+-parseInt(_0x4b7c39(0x12f))/0x7+parseInt(_0x4b7c39(0x12c))/0x8+parseInt(_0x4b7c39(0x130))/0x9*(parseInt(_0x4b7c39(0x127))/0xa);if(_0x3d1d8d===_0x39c9a1)break;else _0x198c2e['push'](_0x198c2e['shift']());}catch(_0x15908e){_0x198c2e['push'](_0x198c2e['shift']());}}}(a182_0x2250,0xe9ac7));export const CLI_VERSION_POLICY_URL=a182_0x78385c(0x12b);
@@ -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_0xd42986=a183_0x25a8;(function(_0x4a02b4,_0x245ee5){const _0x1ff4b4=a183_0x25a8,_0x38aebf=_0x4a02b4();while(!![]){try{const _0xb31a06=parseInt(_0x1ff4b4(0x209))/0x1*(parseInt(_0x1ff4b4(0x1d3))/0x2)+-parseInt(_0x1ff4b4(0x1e6))/0x3+-parseInt(_0x1ff4b4(0x1e7))/0x4+parseInt(_0x1ff4b4(0x1d1))/0x5+-parseInt(_0x1ff4b4(0x1bc))/0x6*(parseInt(_0x1ff4b4(0x1c6))/0x7)+parseInt(_0x1ff4b4(0x220))/0x8+-parseInt(_0x1ff4b4(0x1c2))/0x9*(-parseInt(_0x1ff4b4(0x1d2))/0xa);if(_0xb31a06===_0x245ee5)break;else _0x38aebf['push'](_0x38aebf['shift']());}catch(_0x2495a4){_0x38aebf['push'](_0x38aebf['shift']());}}}(a183_0x5dcb,0x9a13e));export const CLI_BIN_NAME=a183_0xd42986(0x21c);export const CLI_DISPLAY_NAME=a183_0xd42986(0x232);export const NPM_PACKAGE_NAME=a183_0xd42986(0x1f1);function a183_0x5dcb(){const _0x37123c=['343727jZPxsc','env','keyword','datasetcode','Menu\x20label','all','Type\x20filter','code','Skip\x20import\x20generation','fromEntries','skip-imports','Function\x20node','sql','page','help','target','key','skipImports','Config\x20key','rabetbase','SQL\x20name','tags','title','2700888RpeZlj','map','Watch\x20mode','operation-type','functionNode','Description','enableBffSave','JSON\x20params','fromEnv','from-env','output','sort','Target\x20path','dryRun','boolean','Expected\x20current\x20child\x20count','Enable\x20BFF\x20save','Clear','Rabetbase\x20CLI','task-id','expected-count','Use\x20global\x20config\x20scope','string','json\x20|\x20pretty\x20|\x20compress','file','dry-run','Menu\x20sort\x20value','expectedCount','appcode','enable-bff-save','114ySPEjX','Parent\x20menu\x20id','sqlcode','Asynchronous\x20task\x20ID','Output\x20path','Expected\x20affected\x20count','2868714ONHlYO','Verbose\x20output','clear','name','105665NiQcFB','pagesize','app','non-interactive','Expected\x20current\x20parent\x20menu\x20id','operationType','Description\x20file','remote','expected-children-count','sql-name','Skip\x20confirmation\x20for\x20high-risk\x20writes','4936805YJzvEw','20oNrtiJ','6ZWxxoY','db-id','yes','File\x20path','Title','verbose','nonInteractive','menu-ids','Read\x20value\x20from\x20stdin','expectPath','global','Output\x20format','Operation\x20type','Alias\x20for\x20--non-interactive','params','value','<expr>','Select\x20app\x20profile\x20by\x20name','operation','3281325hCEjnG','3927852uSkjUd','project','Override\x20appcode','stdin','Name','expect-path','Schemas','Config\x20value','Force\x20non-interactive\x20mode\x20(CI)','Code\x20filter','@lovrabet/rabetbase-cli','Preview\x20operation\x20without\x20executing','dbId','function-node','confirm','DB\x20ID','Page\x20number','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Expected\x20current\x20menu\x20path','sqlname','Confirm\x20destructive\x20action','Apply\x20to\x20all','Force\x20overwrite','sqlName','watch','label','Record\x20ID','meowKey','Dataset\x20code','format','force','Read\x20value\x20from\x20environment\x20variable','type','schemas'];a183_0x5dcb=function(){return _0x37123c;};return a183_0x5dcb();}export const GLOBAL_FLAGS=[{'name':a183_0xd42986(0x23c),'meowKey':'appcode','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1e9),'hint':'<code>'},{'name':a183_0xd42986(0x1c8),'meowKey':a183_0xd42986(0x1c8),'type':'string','description':a183_0xd42986(0x1e4),'hint':'<name>'},{'name':a183_0xd42986(0x20a),'meowKey':a183_0xd42986(0x20a),'type':a183_0xd42986(0x236),'description':'Environment','hint':'production\x20|\x20daily'},{'name':'format','meowKey':a183_0xd42986(0x204),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1de),'hint':a183_0xd42986(0x237)},{'name':'jq','meowKey':'jq','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f8),'hint':a183_0xd42986(0x1e3)},{'name':a183_0xd42986(0x239),'meowKey':a183_0xd42986(0x22d),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1f2)},{'name':'yes','meowKey':a183_0xd42986(0x1d5),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1d0)},{'name':a183_0xd42986(0x1c9),'meowKey':a183_0xd42986(0x1d9),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1ef)},{'name':a183_0xd42986(0x1dd),'meowKey':a183_0xd42986(0x1dd),'type':'boolean','description':a183_0xd42986(0x235)},{'name':a183_0xd42986(0x1e8),'meowKey':a183_0xd42986(0x1e8),'type':a183_0xd42986(0x22e),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':'boolean','description':a183_0xd42986(0x1e0),'hidden':!![]},{'name':a183_0xd42986(0x217),'meowKey':'help','type':a183_0xd42986(0x22e),'description':'Show\x20help'},{'name':a183_0xd42986(0x1c5),'meowKey':a183_0xd42986(0x1c5),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1eb),'hidden':!![]},{'name':a183_0xd42986(0x21f),'meowKey':a183_0xd42986(0x21f),'type':'string','description':a183_0xd42986(0x1d7),'hidden':!![]},{'name':'clear','meowKey':a183_0xd42986(0x1c4),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x231),'hidden':!![]},{'name':a183_0xd42986(0x1ff),'meowKey':a183_0xd42986(0x1ff),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x222),'hidden':!![]},{'name':'output','meowKey':a183_0xd42986(0x22a),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c0),'hidden':!![]},{'name':a183_0xd42986(0x1e1),'meowKey':a183_0xd42986(0x1e1),'type':'string','description':a183_0xd42986(0x227),'hidden':!![]},{'name':'datasetcode','meowKey':a183_0xd42986(0x20c),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x203),'hidden':!![]},{'name':'all','meowKey':a183_0xd42986(0x20e),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fc),'hidden':!![]},{'name':a183_0xd42986(0x23d),'meowKey':a183_0xd42986(0x226),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x230),'hidden':!![]},{'name':'id','meowKey':'id','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x201),'hidden':!![]},{'name':a183_0xd42986(0x207),'meowKey':a183_0xd42986(0x207),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x20f),'hidden':!![]},{'name':'file','meowKey':a183_0xd42986(0x238),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1d6),'hidden':!![]},{'name':a183_0xd42986(0x1be),'meowKey':a183_0xd42986(0x1be),'type':a183_0xd42986(0x236),'description':'SQL\x20code','hidden':!![]},{'name':a183_0xd42986(0x1cf),'meowKey':a183_0xd42986(0x1fe),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1fa),'meowKey':a183_0xd42986(0x1fa),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21d),'hidden':!![]},{'name':a183_0xd42986(0x1d4),'meowKey':a183_0xd42986(0x1f3),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f6),'hidden':!![]},{'name':'description','meowKey':'description','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x225),'hidden':!![]},{'name':'description-file','meowKey':'descriptionFile','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1cc),'hidden':!![]},{'name':a183_0xd42986(0x216),'meowKey':a183_0xd42986(0x216),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f7),'hidden':!![]},{'name':a183_0xd42986(0x1c7),'meowKey':a183_0xd42986(0x1c7),'type':a183_0xd42986(0x236),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a183_0xd42986(0x20b),'type':a183_0xd42986(0x236),'description':'Keyword\x20filter','hidden':!![]},{'name':a183_0xd42986(0x210),'meowKey':'code','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f0),'hidden':!![]},{'name':a183_0xd42986(0x215),'meowKey':'sql','type':a183_0xd42986(0x236),'description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a183_0xd42986(0x208),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ed),'hidden':!![]},{'name':a183_0xd42986(0x1e5),'meowKey':a183_0xd42986(0x1e5),'type':'string','description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x218),'meowKey':a183_0xd42986(0x218),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x22c),'hidden':!![]},{'name':a183_0xd42986(0x213),'meowKey':a183_0xd42986(0x21a),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x211),'hidden':!![]},{'name':a183_0xd42986(0x219),'meowKey':a183_0xd42986(0x219),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x21b),'hidden':!![]},{'name':'value','meowKey':a183_0xd42986(0x1e2),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1ee),'hidden':!![]},{'name':a183_0xd42986(0x21e),'meowKey':a183_0xd42986(0x21e),'type':'string','description':'Tags','hidden':!![]},{'name':'stdin','meowKey':a183_0xd42986(0x1ea),'type':'boolean','description':a183_0xd42986(0x1db),'hidden':!![]},{'name':a183_0xd42986(0x229),'meowKey':a183_0xd42986(0x228),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x206),'hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a183_0xd42986(0x22e),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a183_0xd42986(0x205),'meowKey':'force','type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1fd),'hidden':!![]},{'name':a183_0xd42986(0x1f5),'meowKey':a183_0xd42986(0x1f5),'type':'boolean','description':a183_0xd42986(0x1fb),'hidden':!![]},{'name':a183_0xd42986(0x1cd),'meowKey':a183_0xd42986(0x1cd),'type':a183_0xd42986(0x22e),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a183_0xd42986(0x1d8),'type':a183_0xd42986(0x22e),'description':a183_0xd42986(0x1c3),'hidden':!![]},{'name':a183_0xd42986(0x234),'meowKey':a183_0xd42986(0x23b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1c1),'hidden':!![]},{'name':a183_0xd42986(0x200),'meowKey':'label','type':'string','description':a183_0xd42986(0x20d),'hidden':!![]},{'name':'parent-id','meowKey':'parentId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bd),'hidden':!![]},{'name':a183_0xd42986(0x22b),'meowKey':a183_0xd42986(0x22b),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x23a),'hidden':!![]},{'name':'expect-parent-id','meowKey':'expectParentId','type':'string','description':a183_0xd42986(0x1ca),'hidden':!![]},{'name':a183_0xd42986(0x1ec),'meowKey':a183_0xd42986(0x1dc),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1f9),'hidden':!![]},{'name':a183_0xd42986(0x1ce),'meowKey':'expectedChildrenCount','type':'string','description':a183_0xd42986(0x22f),'hidden':!![]},{'name':a183_0xd42986(0x1da),'meowKey':'menuIds','type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a183_0xd42986(0x233),'meowKey':'taskId','type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1bf),'hidden':!![]},{'name':a183_0xd42986(0x223),'meowKey':a183_0xd42986(0x1cb),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x1df),'hidden':!![]},{'name':a183_0xd42986(0x1f4),'meowKey':a183_0xd42986(0x224),'type':a183_0xd42986(0x236),'description':a183_0xd42986(0x214),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a183_0xd42986(0x23c),a183_0xd42986(0x1c8),'env',a183_0xd42986(0x204),'jq',a183_0xd42986(0x239),a183_0xd42986(0x1d5),a183_0xd42986(0x1c9),'ci']);function a183_0x25a8(_0x3a33dd,_0x323c61){_0x3a33dd=_0x3a33dd-0x1bc;const _0x5dcb89=a183_0x5dcb();let _0x25a863=_0x5dcb89[_0x3a33dd];return _0x25a863;}export function buildMeowFlags(){const _0x144dfc=a183_0xd42986;return Object[_0x144dfc(0x212)](GLOBAL_FLAGS[_0x144dfc(0x221)](_0xcb3933=>[_0xcb3933[_0x144dfc(0x202)],{'type':_0xcb3933[_0x144dfc(0x207)]}]));}
@@ -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
+ const a184_0x3d20d9=a184_0x402c;(function(_0x2dd113,_0xc01246){const _0x3db24f=a184_0x402c,_0x310167=_0x2dd113();while(!![]){try{const _0x26d3a9=-parseInt(_0x3db24f(0x1b5))/0x1*(-parseInt(_0x3db24f(0x1b1))/0x2)+-parseInt(_0x3db24f(0x1b4))/0x3+parseInt(_0x3db24f(0x1b0))/0x4*(-parseInt(_0x3db24f(0x1ab))/0x5)+-parseInt(_0x3db24f(0x1ac))/0x6*(parseInt(_0x3db24f(0x1b7))/0x7)+parseInt(_0x3db24f(0x1b3))/0x8*(-parseInt(_0x3db24f(0x1aa))/0x9)+-parseInt(_0x3db24f(0x1ae))/0xa+parseInt(_0x3db24f(0x1b6))/0xb;if(_0x26d3a9===_0xc01246)break;else _0x310167['push'](_0x310167['shift']());}catch(_0x2325bb){_0x310167['push'](_0x310167['shift']());}}}(a184_0x351f,0xd9f65));function a184_0x351f(){const _0x5c8ba3=['production','8cStwHn','3847512wfEjIA','18586ujnmsd','62806469nzlfSA','14jfsdHs','en-US','13404987AcmNmk','10uLNMGO','670854Vgeujh','high-risk-write','13275130iLttmr','compress','1433720ghMSpL','24MzgXiV'];a184_0x351f=function(){return _0x5c8ba3;};return a184_0x351f();}function a184_0x402c(_0x290b4c,_0x411b0e){_0x290b4c=_0x290b4c-0x1a9;const _0x351f0b=a184_0x351f();let _0x402cc0=_0x351f0b[_0x290b4c];return _0x402cc0;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a184_0x3d20d9(0x1b2),'format':a184_0x3d20d9(0x1af),'locale':a184_0x3d20d9(0x1a9),'riskLevel':a184_0x3d20d9(0x1ad),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a184_0x3d20d9(0x1af);
@@ -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
+ const a185_0x1c17f2=a185_0x576c;(function(_0x5d7b16,_0x3f81c3){const _0x3eb6e8=a185_0x576c,_0x12f08e=_0x5d7b16();while(!![]){try{const _0x4cbf82=-parseInt(_0x3eb6e8(0xdb))/0x1+-parseInt(_0x3eb6e8(0xd1))/0x2+parseInt(_0x3eb6e8(0xd5))/0x3+-parseInt(_0x3eb6e8(0xda))/0x4+parseInt(_0x3eb6e8(0xcf))/0x5+parseInt(_0x3eb6e8(0xc9))/0x6+parseInt(_0x3eb6e8(0xce))/0x7;if(_0x4cbf82===_0x3f81c3)break;else _0x12f08e['push'](_0x12f08e['shift']());}catch(_0x35b94c){_0x12f08e['push'](_0x12f08e['shift']());}}}(a185_0x51df,0x7827f));import{getEnv,isProduction}from'../constant/env.js';function a185_0x51df(){const _0x57fa5d=['https://daily-api.lovrabet.com','https://user.lovrabet.com','1160369zzRQil','3435850RIyZdo','/app/','1883400GBKkuf','runtimeDomain','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','2456253QobFCr','https://app.lovrabet.com','https://daily.lovrabet.com','/web-app/app/','userDomain','50656hTvbPg','247633ziZEeC','apiDomain','https://user-daily.lovrabet.com','134808BSznln','https://api.lovrabet.com','trim'];a185_0x51df=function(){return _0x57fa5d;};return a185_0x51df();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x27ed16){const _0x333349=a185_0x576c;customApiDomain=_0x27ed16?.[_0x333349(0xdc)],customUserDomain=_0x27ed16?.[_0x333349(0xd9)],customRuntimeDomain=_0x27ed16?.[_0x333349(0xd2)];}function a185_0x576c(_0x8bf73e,_0x43df77){_0x8bf73e=_0x8bf73e-0xc9;const _0x51df2e=a185_0x51df();let _0x576c5f=_0x51df2e[_0x8bf73e];return _0x576c5f;}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a185_0x1c17f2(0xcd):a185_0x1c17f2(0xdd));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a185_0x1c17f2(0xca):a185_0x1c17f2(0xcc));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a185_0x1c17f2(0xd4):a185_0x1c17f2(0xd3));export const getAppDomain=()=>isProduction(getEnv())?a185_0x1c17f2(0xd6):a185_0x1c17f2(0xd7);export const getAppBaseUrl=_0x44c16d=>{const _0x2fa3be=a185_0x1c17f2,_0x7ecd60=encodeURIComponent(_0x44c16d[_0x2fa3be(0xcb)]());return isProduction(getEnv())?getAppDomain()+_0x2fa3be(0xd0)+_0x7ecd60:getAppDomain()+_0x2fa3be(0xd8)+_0x7ecd60;};
@@ -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_0x303a8d=a186_0x2361;(function(_0x2d0ac9,_0x24a6b6){const _0xace009=a186_0x2361,_0x5546ad=_0x2d0ac9();while(!![]){try{const _0x3d89d2=parseInt(_0xace009(0x13a))/0x1+-parseInt(_0xace009(0x134))/0x2+-parseInt(_0xace009(0x138))/0x3+-parseInt(_0xace009(0x132))/0x4*(-parseInt(_0xace009(0x12e))/0x5)+parseInt(_0xace009(0x131))/0x6*(-parseInt(_0xace009(0x135))/0x7)+parseInt(_0xace009(0x12f))/0x8+parseInt(_0xace009(0x133))/0x9;if(_0x3d89d2===_0x24a6b6)break;else _0x5546ad['push'](_0x5546ad['shift']());}catch(_0x44e753){_0x5546ad['push'](_0x5546ad['shift']());}}}(a186_0x58f1,0x47550));export const RABETBASE_ENV_VALUES=[a186_0x303a8d(0x139),a186_0x303a8d(0x137)];export function normalizeEnv(_0x5f1c64){const _0x48e8af=a186_0x303a8d;return _0x5f1c64===_0x48e8af(0x136)?_0x48e8af(0x139):_0x5f1c64;}export function isProduction(_0x5159f2){const _0x1ed232=a186_0x303a8d;return normalizeEnv(_0x5159f2)===_0x1ed232(0x139);}export function isDaily(_0x19afe4){const _0x5d7059=a186_0x303a8d;return normalizeEnv(_0x19afe4)===_0x5d7059(0x137);}export function isDev(_0x1b659c){const _0x30b493=a186_0x303a8d,_0x4e2b12=normalizeEnv(_0x1b659c);return _0x4e2b12==='development'||_0x4e2b12===_0x30b493(0x130);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a186_0x303a8d(0x139));function a186_0x2361(_0x597c60,_0x1e6e8c){_0x597c60=_0x597c60-0x12e;const _0x58f138=a186_0x58f1();let _0x236182=_0x58f138[_0x597c60];return _0x236182;}function a186_0x58f1(){const _0x3a479d=['1095242fpTVfn','6678kFiypj','online','daily','706200ATyoPo','production','146778sayWQO','1292435EfuLlY','4237776WBnBpS','dev','2064wyfbOl','4usclbQ','4215474PYgXJu'];a186_0x58f1=function(){return _0x3a479d;};return a186_0x58f1();}export function getEnv(){return env;}export function initEnv(_0xf7368b){env=normalizeEnv(_0xf7368b);}
@@ -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
+ const a187_0x4ddedb=a187_0x6c53;(function(_0x4a5cf0,_0x5ea7a8){const _0x593376=a187_0x6c53,_0x47615a=_0x4a5cf0();while(!![]){try{const _0x466f6d=parseInt(_0x593376(0x97))/0x1+-parseInt(_0x593376(0x9f))/0x2+parseInt(_0x593376(0x94))/0x3*(parseInt(_0x593376(0x9e))/0x4)+parseInt(_0x593376(0x9b))/0x5*(-parseInt(_0x593376(0x96))/0x6)+-parseInt(_0x593376(0x93))/0x7+parseInt(_0x593376(0x9d))/0x8+parseInt(_0x593376(0x9a))/0x9*(-parseInt(_0x593376(0x98))/0xa);if(_0x466f6d===_0x5ea7a8)break;else _0x47615a['push'](_0x47615a['shift']());}catch(_0xb5ffa4){_0x47615a['push'](_0x47615a['shift']());}}}(a187_0x5bf9,0x64adc));function a187_0x6c53(_0x32bbf8,_0x253d57){_0x32bbf8=_0x32bbf8-0x93;const _0x5bf92c=a187_0x5bf9();let _0x6c530b=_0x5bf92c[_0x32bbf8];return _0x6c530b;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a187_0x4ddedb(0x95),a187_0x4ddedb(0x9c),a187_0x4ddedb(0x99)];function a187_0x5bf9(){const _0x240a4f=['817375aMpnQq','10SoRyrk','compress','5139999JQyHor','5LszVoC','pretty','4926136yIWfwW','252DNRxqz','315896AWdlgO','4181653NTQBRg','36417xpxrIL','json','2754486GCLFRD'];a187_0x5bf9=function(){return _0x240a4f;};return a187_0x5bf9();}
@@ -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
+ const a188_0x15bafb=a188_0x28e5;(function(_0x2f04f6,_0x14e763){const _0x5cf622=a188_0x28e5,_0x97ca13=_0x2f04f6();while(!![]){try{const _0x436b5e=-parseInt(_0x5cf622(0x76))/0x1+parseInt(_0x5cf622(0x78))/0x2*(parseInt(_0x5cf622(0x7a))/0x3)+-parseInt(_0x5cf622(0x71))/0x4*(-parseInt(_0x5cf622(0x7b))/0x5)+-parseInt(_0x5cf622(0x74))/0x6*(parseInt(_0x5cf622(0x73))/0x7)+parseInt(_0x5cf622(0x72))/0x8*(parseInt(_0x5cf622(0x7c))/0x9)+-parseInt(_0x5cf622(0x77))/0xa*(-parseInt(_0x5cf622(0x7d))/0xb)+parseInt(_0x5cf622(0x79))/0xc*(parseInt(_0x5cf622(0x70))/0xd);if(_0x436b5e===_0x14e763)break;else _0x97ca13['push'](_0x97ca13['shift']());}catch(_0x243c0e){_0x97ca13['push'](_0x97ca13['shift']());}}}(a188_0x1260,0xa145f));function a188_0x28e5(_0x56ff1e,_0x542b1c){_0x56ff1e=_0x56ff1e-0x70;const _0x1260c6=a188_0x1260();let _0x28e5f9=_0x1260c6[_0x56ff1e];return _0x28e5f9;}function a188_0x1260(){const _0x389642=['28GZPUBI','1007328InmtAa','./src/api','656284EINGhj','10ngaKNZ','1025762OxMkpO','1004544PBABcT','3Qkipgq','55uejXyk','171423LkzJmn','6465195POljDR','13kFySWr','285464oTnAdO','8HiLEJq'];a188_0x1260=function(){return _0x389642;};return a188_0x1260();}export const DEFAULT_API_DIR=a188_0x15bafb(0x75);
@@ -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_0x2466(_0x3b039b,_0x5a038d){_0x3b039b=_0x3b039b-0x119;const _0x36d8ed=a189_0x36d8();let _0x24664a=_0x36d8ed[_0x3b039b];return _0x24664a;}function a189_0x36d8(){const _0x1d6634=['621162xbZmaX','1344928VCoyPg','72984lpvHmU','273EtsVMo','762242cUwlzN','4813179EKsuqm','read','7226160lkhdyI','2586730qDnHMm'];a189_0x36d8=function(){return _0x1d6634;};return a189_0x36d8();}const a189_0x3cff38=a189_0x2466;(function(_0x425cb1,_0x9de8ae){const _0x2fe11f=a189_0x2466,_0x7e9841=_0x425cb1();while(!![]){try{const _0x214bd7=parseInt(_0x2fe11f(0x11f))/0x1+parseInt(_0x2fe11f(0x11b))/0x2+parseInt(_0x2fe11f(0x120))/0x3+parseInt(_0x2fe11f(0x11c))/0x4+-parseInt(_0x2fe11f(0x11a))/0x5+-parseInt(_0x2fe11f(0x119))/0x6+parseInt(_0x2fe11f(0x11e))/0x7*(-parseInt(_0x2fe11f(0x11d))/0x8);if(_0x214bd7===_0x9de8ae)break;else _0x7e9841['push'](_0x7e9841['shift']());}catch(_0x377c92){_0x7e9841['push'](_0x7e9841['shift']());}}}(a189_0x36d8,0xe4809));export const RISK_LEVEL_VALUES=[a189_0x3cff38(0x121),'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(_0x286058,_0x23380c){const _0x1fef22=a190_0x4dd8,_0x70988d=_0x286058();while(!![]){try{const _0x20a5c2=-parseInt(_0x1fef22(0x139))/0x1+parseInt(_0x1fef22(0x15e))/0x2+-parseInt(_0x1fef22(0x145))/0x3*(parseInt(_0x1fef22(0x152))/0x4)+parseInt(_0x1fef22(0x15b))/0x5+-parseInt(_0x1fef22(0x157))/0x6*(-parseInt(_0x1fef22(0x147))/0x7)+-parseInt(_0x1fef22(0x15d))/0x8*(parseInt(_0x1fef22(0x13e))/0x9)+-parseInt(_0x1fef22(0x153))/0xa;if(_0x20a5c2===_0x23380c)break;else _0x70988d['push'](_0x70988d['shift']());}catch(_0x50ba0d){_0x70988d['push'](_0x70988d['shift']());}}}(a190_0x1992,0x9d4dc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function a190_0x4dd8(_0x3eaef4,_0x341137){_0x3eaef4=_0x3eaef4-0x139;const _0x199287=a190_0x1992();let _0x4dd880=_0x199287[_0x3eaef4];return _0x4dd880;}function a190_0x1992(){const _0x7e84d5=['riskLevel','pageSize','apiDir','globalConfig','201KbKNHi','FORMAT','136430OkwsJR','VERBOSE','app','appcode','apps','string','env','PAGE_SIZE','defaultApp','cookie','accessKey','31672DNkEuv','682060uelUgT','keys','format','entries','168sZCBub','locale','object','length','4128280GdDYtT','COOKIE','8nKbWjc','2032650lXUybc','701117saaJqI','find','maxRisk','production','daily','3992004ujCmBB','trim','MAX_RISK'];a190_0x1992=function(){return _0x7e84d5;};return a190_0x1992();}function stringConfigValue(_0x2b01b9){const _0x100921=a190_0x4dd8;return typeof _0x2b01b9===_0x100921(0x14c)&&_0x2b01b9[_0x100921(0x13f)]()?_0x2b01b9[_0x100921(0x13f)]():undefined;}function appProfiles(_0x662e60){const _0x2fdfd3=a190_0x4dd8;return _0x662e60[_0x2fdfd3(0x14b)]&&typeof _0x662e60[_0x2fdfd3(0x14b)]===_0x2fdfd3(0x159)?_0x662e60[_0x2fdfd3(0x14b)]:{};}function resolveDefaultAppName(_0x393568){const _0x2c5c4c=a190_0x4dd8,_0x5ec269=stringConfigValue(_0x393568[_0x2c5c4c(0x14f)]);if(_0x5ec269)return _0x5ec269;return Object[_0x2c5c4c(0x154)](appProfiles(_0x393568))[0x0];}function resolveTopLevelAppCode(_0x179a51){const _0x1fb653=a190_0x4dd8;return stringConfigValue(_0x179a51[_0x1fb653(0x14a)])||stringConfigValue(_0x179a51[_0x1fb653(0x149)]);}export function resolveAppConfig({raw:_0x4ec418,flags:_0x48a810,layers:_0x25ad27,readEnv:_0x32a61d}){const _0x5d72e1=a190_0x4dd8,_0x39cbdf=_0x25ad27?.['projectConfig']??{},_0x587cda=_0x25ad27?.[_0x5d72e1(0x144)]??{},_0x3c02f9=Object[_0x5d72e1(0x154)](_0x39cbdf)[_0x5d72e1(0x15a)]>0x0,_0x386b58=!_0x3c02f9||_0x39cbdf['inherit']===!![],_0x348662=_0x3c02f9?resolveDefaultAppName(_0x39cbdf):undefined,_0x5a1001=_0x386b58?resolveDefaultAppName(_0x587cda):undefined,_0x130a20=stringConfigValue(_0x48a810[_0x5d72e1(0x149)]),_0x2d61da=_0x32a61d('APP'),_0x197e83={};if(_0x4ec418[_0x5d72e1(0x14b)]&&typeof _0x4ec418[_0x5d72e1(0x14b)]===_0x5d72e1(0x159))for(const [_0x84996b,_0x3f3656]of Object[_0x5d72e1(0x156)](_0x4ec418[_0x5d72e1(0x14b)])){_0x3f3656&&typeof _0x3f3656==='object'&&_0x3f3656['appcode']&&(_0x197e83[_0x84996b]=_0x3f3656);}const _0x3ad647=_0x4ec418['defaultApp']||undefined,_0x84fe1=Object['keys'](_0x197e83)[_0x5d72e1(0x15a)]>0x0,_0x5f1ed0=_0x130a20||_0x348662||_0x2d61da||_0x5a1001||_0x3ad647||undefined,_0x1a7b53=stringConfigValue(_0x48a810[_0x5d72e1(0x14a)]),_0x398819=_0x1a7b53?Object[_0x5d72e1(0x156)](_0x197e83)[_0x5d72e1(0x13a)](([,_0x5baa14])=>_0x5baa14?.[_0x5d72e1(0x14a)]===_0x1a7b53):undefined,_0x46a0a8=_0x398819?.[0x0],_0x4971eb=_0x398819?.[0x1],_0x1d2f12=_0x1a7b53?_0x46a0a8:_0x5f1ed0;let _0x5d501c=_0x1d2f12&&_0x197e83[_0x1d2f12]?_0x197e83[_0x1d2f12]:undefined;_0x1a7b53&&_0x4971eb&&(_0x5d501c=_0x4971eb);const _0x279d6b=_0x1a7b53?_0x4971eb??_0x5d501c:_0x5d501c,_0x2fd64a=!_0x130a20&&!_0x348662&&_0x2d61da&&_0x1d2f12===_0x2d61da,_0x4cf930=_0x130a20||(_0x2fd64a?_0x2d61da:undefined)||(_0x1a7b53?_0x46a0a8:undefined),_0x59902e=_0x279d6b?.['appcode'],_0x106f46=_0x3c02f9?resolveTopLevelAppCode(_0x39cbdf):undefined,_0x4f4dca=_0x386b58?resolveTopLevelAppCode(_0x587cda):undefined,_0x492e38=_0x130a20||_0x348662?_0x59902e:undefined,_0x111c82=!_0x130a20&&!_0x348662?_0x59902e:undefined,_0x201476=_0x1a7b53||_0x492e38||_0x106f46||_0x111c82||_0x4f4dca||undefined,_0x16a4b7=_0x3c02f9?stringConfigValue(_0x39cbdf[_0x5d72e1(0x14d)]):undefined,_0x17b91f=_0x386b58?stringConfigValue(_0x587cda['env']):undefined,_0x3630a8=_0x48a810[_0x5d72e1(0x14d)]||_0x279d6b?.[_0x5d72e1(0x14d)]||_0x16a4b7||_0x32a61d('ENV')||_0x17b91f||_0x4ec418['env']||DEFAULT_CONFIG_VALUES[_0x5d72e1(0x14d)],_0x43389b=_0x279d6b?.[_0x5d72e1(0x158)]||_0x4ec418[_0x5d72e1(0x158)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e1af6=_0x32a61d(_0x5d72e1(0x15c))||_0x279d6b?.[_0x5d72e1(0x150)]||_0x4ec418[_0x5d72e1(0x150)]||undefined,_0x2e6faf=_0x32a61d('ACCESS_KEY')||_0x279d6b?.['accessKey']||_0x4ec418[_0x5d72e1(0x151)]||undefined,_0x2a72c1=_0x48a810['format']||_0x32a61d(_0x5d72e1(0x146))||_0x279d6b?.[_0x5d72e1(0x155)]||_0x4ec418[_0x5d72e1(0x155)],_0x57d15c=normalizeLegacyOutputFormat(_0x2a72c1),_0x121a06=_0x32a61d(_0x5d72e1(0x14e))||_0x279d6b?.[_0x5d72e1(0x142)]||_0x4ec418[_0x5d72e1(0x142)],_0x5e92f1=_0x121a06?Number(_0x121a06)||undefined:undefined,_0xbef37c=_0x32a61d('RISK_LEVEL')||_0x32a61d(_0x5d72e1(0x140))||_0x279d6b?.[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x141)]||_0x4ec418[_0x5d72e1(0x13b)],_0x4df1ae=_0xbef37c==='read'||_0xbef37c==='write'?_0xbef37c:DEFAULT_CONFIG_VALUES[_0x5d72e1(0x141)],_0x46ee5e=_0x32a61d(_0x5d72e1(0x148)),_0x29d0a8=_0x46ee5e==='1'||_0x46ee5e==='true',_0x4cf5e7=_0x279d6b?.[_0x5d72e1(0x143)]||_0x4ec418[_0x5d72e1(0x143)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4819fd=isDaily(normalizeEnv(String(_0x3630a8)))?_0x5d72e1(0x13d):_0x5d72e1(0x13c);return{'appCode':typeof _0x201476===_0x5d72e1(0x14c)&&_0x201476[_0x5d72e1(0x13f)]()?_0x201476[_0x5d72e1(0x13f)]():undefined,'env':_0x4819fd,'locale':_0x43389b,'cookie':_0x4e1af6,'accessKey':_0x2e6faf,'format':_0x57d15c,'pageSize':_0x5e92f1,'riskLevel':_0x4df1ae,'verbose':_0x29d0a8,'apiDir':_0x4cf5e7,'apps':_0x197e83,'defaultApp':_0x3ad647,'currentApp':_0x84fe1?_0x1d2f12:undefined,'explicitAppName':_0x4cf930};}
@@ -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(_0x114f6f,_0xc6dae0){const _0x4324e2=a191_0xb65d,_0x11a538=_0x114f6f();while(!![]){try{const _0xa6a1fa=parseInt(_0x4324e2(0x1b2))/0x1+parseInt(_0x4324e2(0x1ae))/0x2*(parseInt(_0x4324e2(0x1b0))/0x3)+-parseInt(_0x4324e2(0x1ad))/0x4+-parseInt(_0x4324e2(0x1b7))/0x5+parseInt(_0x4324e2(0x1b5))/0x6+-parseInt(_0x4324e2(0x1b3))/0x7*(parseInt(_0x4324e2(0x1af))/0x8)+-parseInt(_0x4324e2(0x1b1))/0x9;if(_0xa6a1fa===_0xc6dae0)break;else _0x11a538['push'](_0x11a538['shift']());}catch(_0xfa9633){_0x11a538['push'](_0x11a538['shift']());}}}(a191_0x4778,0x2e5e9));import{getIsSessionValid}from'../auth/is-session-valid.js';function a191_0xb65d(_0x21fd47,_0x1e726c){_0x21fd47=_0x21fd47-0x1ac;const _0x47788e=a191_0x4778();let _0xb65d9a=_0x47788e[_0x21fd47];return _0xb65d9a;}import{CliErrors}from'../errors.js';function a191_0x4778(){const _0x2c84d4=['490096lQiNil','114XJsmjV','13232NxvmdV','16314EbLmfU','2029464dAjfXj','271475ZNaskt','1267QvGWgc','../auth/get-cookie.js','1693632vZunMb','cookie','131950AHmUtG','authRequired'];a191_0x4778=function(){return _0x2c84d4;};return a191_0x4778();}export async function buildAuth(_0x5b184b){const _0x2706e1=a191_0xb65d,{getCookie:_0xeba6e2}=await import(_0x2706e1(0x1b4)),_0x443fe4=_0x5b184b[_0x2706e1(0x1b6)]||_0xeba6e2(),_0x1b2d5e=_0x443fe4?await getIsSessionValid():![];return{'cookie':_0x443fe4,'isLoggedIn':_0x1b2d5e,async 'getOrLogin'(){const _0x50cfdf=_0x2706e1;if(_0x443fe4&&_0x1b2d5e)return _0x443fe4;throw CliErrors[_0x50cfdf(0x1ac)]();}};}