@lovrabet/rabetbase-cli 2.3.13-beta.1 → 2.3.13-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- function a177_0x1a7f(){const _0x16a63e=['name','valid','630705ksFCly','32SWQBcC','appCode','451bqQbJC','16154256ASGwbg','212270dHZSCg','flagMissing','sql','indexName','bool','cwd','flatMap','utf-8','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','\x22\x20not\x20found\x20or\x20not\x20accessible','push','find','index_columns','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','--check-indexes\x20requires\x20--schemas.','fields','File\x20not\x20found:\x20','map','split','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','length','isSelectOnly','parameters','from','schema:','unshift','schemas','toLowerCase','3844935uXWciw','str','6sfjeFz','check-indexes','SQL\x20schema\x20validation','file','dbtableConfig','size','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','message','trim','joinAudit','4vJAwKc','sqlType','Dataset\x20\x22','columnNames','pkField','2rUNRxR','index_type','indexes','get','primary','tables','4773045vDuuTx','Table\x20\x22','validation','tableName','type','filter','712054paMMfp','isArray','index_name','string','746761JXaHZf'];a177_0x1a7f=function(){return _0x16a63e;};return a177_0x1a7f();}const a177_0x1d47cb=a177_0x53f4;(function(_0x14c086,_0x297aec){const _0x50771a=a177_0x53f4,_0x576066=_0x14c086();while(!![]){try{const _0x102063=parseInt(_0x50771a(0x129))/0x1*(-parseInt(_0x50771a(0x119))/0x2)+-parseInt(_0x50771a(0x12c))/0x3*(parseInt(_0x50771a(0x114))/0x4)+parseInt(_0x50771a(0x11f))/0x5*(parseInt(_0x50771a(0x14f))/0x6)+-parseInt(_0x50771a(0x125))/0x7*(parseInt(_0x50771a(0x12d))/0x8)+parseInt(_0x50771a(0x14d))/0x9+-parseInt(_0x50771a(0x131))/0xa*(parseInt(_0x50771a(0x12f))/0xb)+parseInt(_0x50771a(0x130))/0xc;if(_0x102063===_0x297aec)break;else _0x576066['push'](_0x576066['shift']());}catch(_0x1bd3db){_0x576066['push'](_0x576066['shift']());}}}(a177_0x1a7f,0x788fd));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a177_0x53f4(_0x18d49b,_0x59dbe5){_0x18d49b=_0x18d49b-0x10d;const _0x1a7f7d=a177_0x1a7f();let _0x53f464=_0x1a7f7d[_0x18d49b];return _0x53f464;}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a177_0x1d47cb(0x133),'command':'validate','description':a177_0x1d47cb(0x110),'risk':'read','flags':[{'name':a177_0x1d47cb(0x10d),'type':'string','description':a177_0x1d47cb(0x139)},{'name':a177_0x1d47cb(0x133),'type':a177_0x1d47cb(0x128),'description':a177_0x1d47cb(0x144)},{'name':a177_0x1d47cb(0x14b),'type':'string','description':a177_0x1d47cb(0x13e)},{'name':a177_0x1d47cb(0x150),'type':'boolean','description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x11cdd0){const _0x498a82=a177_0x1d47cb,_0x1189cd=_0x11cdd0['str']('file'),_0x44eb46=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x133)),_0x2dec0d=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x14b)),_0x217ff3=_0x11cdd0[_0x498a82(0x135)]('check-indexes');if(!_0x1189cd&&!_0x44eb46)throw CliErrors[_0x498a82(0x132)](_0x498a82(0x10d),'Provide\x20--file\x20or\x20--sql');if(_0x217ff3&&!_0x2dec0d)throw CliErrors[_0x498a82(0x121)](_0x498a82(0x13f));let _0xb82870;if(_0x1189cd){const _0x1395d2=resolve(process[_0x498a82(0x136)](),_0x1189cd);if(!existsSync(_0x1395d2))throw CliErrors[_0x498a82(0x121)](_0x498a82(0x141)+_0x1395d2);_0xb82870=readFileSync(_0x1395d2,_0x498a82(0x138));}else _0xb82870=_0x44eb46;const _0x3e9de2=validateSql(_0xb82870),_0x2081e4={'valid':_0x3e9de2[_0x498a82(0x12b)],'sqlType':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x123)],'isSelectOnly':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x146)],'isDangerous':_0x3e9de2[_0x498a82(0x115)]['isDangerous'],'tables':_0x3e9de2[_0x498a82(0x11e)],'parameters':_0x3e9de2[_0x498a82(0x147)],'message':_0x3e9de2[_0x498a82(0x111)]};_0x3e9de2[_0x498a82(0x115)]['reason']&&(_0x2081e4['reason']=_0x3e9de2[_0x498a82(0x115)]['reason']);if(_0x2dec0d&&_0x3e9de2[_0x498a82(0x12b)]){const _0x488d06=_0x2dec0d[_0x498a82(0x143)](',')[_0x498a82(0x142)](_0x433db0=>_0x433db0[_0x498a82(0x112)]())[_0x498a82(0x124)](Boolean),_0xd88d29=[],_0x1a99bc=[],_0x33d9b9=filterDbTableBackedDatasets(await listDatasets(_0x11cdd0[_0x498a82(0x12e)])),_0x9b4a88=new Map(_0x33d9b9[_0x498a82(0x142)](_0x56866b=>[_0x56866b['dbtableConfig']?.[_0x498a82(0x122)]?.[_0x498a82(0x14c)](),_0x56866b]));for(const _0x596523 of _0x3e9de2[_0x498a82(0x11e)]){const _0x1ffd70=_0x9b4a88[_0x498a82(0x11c)](_0x596523[_0x498a82(0x14c)]());!_0x1ffd70&&_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x120)+_0x596523+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x3cbb42 of _0x488d06){let _0x56daef;try{_0x56daef=await getDatasetDetail(_0x3cbb42);}catch{_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x116)+_0x3cbb42+_0x498a82(0x13a));continue;}assertDatasetIsDbTableBacked(_0x56daef,_0x498a82(0x151));const _0x40918a=Array[_0x498a82(0x126)](_0x56daef[_0x498a82(0x140)])?_0x56daef[_0x498a82(0x140)]:[],_0x1d8e49=new Set(_0x40918a[_0x498a82(0x142)](_0x71143d=>_0x71143d['name']?.[_0x498a82(0x14c)]())),_0x31420a=_0x56daef[_0x498a82(0x10e)]?.[_0x498a82(0x122)]||_0x56daef[_0x498a82(0x122)]||_0x3cbb42;_0x2081e4[_0x498a82(0x149)+_0x31420a]={'code':_0x3cbb42,'tableName':_0x31420a,'fieldCount':_0x1d8e49[_0x498a82(0x10f)],'fields':Array[_0x498a82(0x148)](_0x1d8e49)};if(_0x217ff3){const _0x2cc961=normalizeDatasetIndexes(_0x56daef);_0x1a99bc[_0x498a82(0x13b)]({'tableName':_0x31420a,..._0x2cc961});}}_0xd88d29['length']>0x0&&(_0x2081e4['schemaWarnings']=_0xd88d29),_0x217ff3&&(_0x2081e4[_0x498a82(0x113)]=auditSqlJoinIndexes(_0xb82870,_0x1a99bc));}return{'ok':_0x3e9de2[_0x498a82(0x12b)],'data':_0x2081e4,'message':_0x3e9de2[_0x498a82(0x111)]};}};function normalizeDatasetIndexes(_0x46ca36){const _0x5b4d9c=a177_0x1d47cb,_0x702b90=Array[_0x5b4d9c(0x126)](_0x46ca36?.['dataset']?.[_0x5b4d9c(0x11b)])?_0x46ca36['dataset'][_0x5b4d9c(0x11b)]:Array[_0x5b4d9c(0x126)](_0x46ca36?.[_0x5b4d9c(0x11b)])?_0x46ca36[_0x5b4d9c(0x11b)]:[],_0x324f34=_0x702b90[_0x5b4d9c(0x137)](_0x54d0f0=>{const _0x53a054=_0x5b4d9c,_0x22ba36=Array[_0x53a054(0x126)](_0x54d0f0?.[_0x53a054(0x13d)])?_0x54d0f0[_0x53a054(0x13d)]:Array['isArray'](_0x54d0f0?.[_0x53a054(0x117)])?_0x54d0f0[_0x53a054(0x117)]:Array[_0x53a054(0x126)](_0x54d0f0?.['columns'])?_0x54d0f0['columns']:[],_0x96f591=_0x22ba36[_0x53a054(0x124)](_0x4e4f71=>typeof _0x4e4f71===_0x53a054(0x128))[_0x53a054(0x142)](_0x43e6d3=>_0x43e6d3[_0x53a054(0x112)]())[_0x53a054(0x124)](Boolean);if(_0x96f591['length']===0x0)return[];const _0x26fe9e=[_0x54d0f0?.[_0x53a054(0x134)],_0x54d0f0?.[_0x53a054(0x127)],_0x54d0f0?.[_0x53a054(0x12a)]][_0x53a054(0x13c)](_0x12b971=>typeof _0x12b971===_0x53a054(0x128)&&_0x12b971[_0x53a054(0x112)]()),_0x277e6a=[_0x54d0f0?.[_0x53a054(0x11a)],_0x54d0f0?.[_0x53a054(0x123)]][_0x53a054(0x13c)](_0x5ae9d8=>typeof _0x5ae9d8===_0x53a054(0x128)&&_0x5ae9d8[_0x53a054(0x112)]());return[{..._0x26fe9e?{'name':_0x26fe9e['trim']()}:{},..._0x277e6a?{'type':_0x277e6a[_0x53a054(0x112)]()}:{},'columns':_0x96f591}];}),_0x4ab0df=[..._0x324f34],_0x6a19ee=typeof _0x46ca36?.[_0x5b4d9c(0x10e)]?.[_0x5b4d9c(0x118)]===_0x5b4d9c(0x128)?_0x46ca36[_0x5b4d9c(0x10e)][_0x5b4d9c(0x118)][_0x5b4d9c(0x143)](',')[_0x5b4d9c(0x142)](_0x84f148=>_0x84f148[_0x5b4d9c(0x112)]())[_0x5b4d9c(0x124)](Boolean):[];return _0x6a19ee[_0x5b4d9c(0x145)]>0x0&&_0x4ab0df[_0x5b4d9c(0x14a)]({'type':_0x5b4d9c(0x11d),'columns':_0x6a19ee}),{'indexes':_0x4ab0df,'metadataAvailable':_0x324f34['length']>0x0};}
1
+ function a177_0x1225(_0x397d25,_0x5dfb2e){_0x397d25=_0x397d25-0x1d5;const _0x158f55=a177_0x158f();let _0x12258d=_0x158f55[_0x397d25];return _0x12258d;}const a177_0xc64d2a=a177_0x1225;(function(_0x49aaca,_0x1345e0){const _0x78745=a177_0x1225,_0x32b2de=_0x49aaca();while(!![]){try{const _0x51d72b=-parseInt(_0x78745(0x1f0))/0x1*(-parseInt(_0x78745(0x216))/0x2)+-parseInt(_0x78745(0x1f7))/0x3*(parseInt(_0x78745(0x202))/0x4)+-parseInt(_0x78745(0x1f2))/0x5*(parseInt(_0x78745(0x1d6))/0x6)+parseInt(_0x78745(0x1e5))/0x7+parseInt(_0x78745(0x1d7))/0x8*(parseInt(_0x78745(0x20e))/0x9)+parseInt(_0x78745(0x1e4))/0xa*(-parseInt(_0x78745(0x1f8))/0xb)+-parseInt(_0x78745(0x1dd))/0xc;if(_0x51d72b===_0x1345e0)break;else _0x32b2de['push'](_0x32b2de['shift']());}catch(_0x576898){_0x32b2de['push'](_0x32b2de['shift']());}}}(a177_0x158f,0xcf0a2));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';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a177_0x158f(){const _0x31a3e7=['columnNames','string','validation','appCode','36739wYWgNM','schemas','5ajpOMp','toLowerCase','boolean','reason','isArray','165030KJPdnF','5357EPRaTb','message','index_name','split','fields','type','size','schemaWarnings','\x22\x20not\x20found\x20or\x20not\x20accessible','indexName','4YkOjKU','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','validate','--check-indexes\x20requires\x20--schemas.','check-indexes','dataset','map','isSelectOnly','file','from','name','unshift','2154177ZuHtLm','\x22\x20not\x20found\x20in\x20any\x20dataset','valid','tables','joinAudit','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','push','indexes','54dVklSA','sqlType','pkField','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','6701694HXhgLs','40eMsRjf','bool','sql','columns','SQL\x20schema\x20validation','find','13714344nSvjzX','str','dbtableConfig','length','index_columns','Table\x20\x22','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','8330qlUKGG','9658656ljsnKp','tableName','File\x20not\x20found:\x20','utf-8','primary','get','trim'];a177_0x158f=function(){return _0x31a3e7;};return a177_0x158f();}export const sqlValidate={'service':a177_0xc64d2a(0x1d9),'command':a177_0xc64d2a(0x204),'description':a177_0xc64d2a(0x1e3),'risk':'read','flags':[{'name':a177_0xc64d2a(0x20a),'type':a177_0xc64d2a(0x1ed),'description':a177_0xc64d2a(0x1d5)},{'name':'sql','type':a177_0xc64d2a(0x1ed),'description':a177_0xc64d2a(0x213)},{'name':a177_0xc64d2a(0x1f1),'type':a177_0xc64d2a(0x1ed),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':'check-indexes','type':a177_0xc64d2a(0x1f4),'description':a177_0xc64d2a(0x203)}],async 'execute'(_0xb82258){const _0x91f0b2=a177_0xc64d2a,_0x22fc36=_0xb82258[_0x91f0b2(0x1de)](_0x91f0b2(0x20a)),_0x297e17=_0xb82258[_0x91f0b2(0x1de)]('sql'),_0x521b41=_0xb82258[_0x91f0b2(0x1de)](_0x91f0b2(0x1f1)),_0x3bfdff=_0xb82258[_0x91f0b2(0x1d8)](_0x91f0b2(0x206));if(!_0x22fc36&&!_0x297e17)throw CliErrors['flagMissing']('file','Provide\x20--file\x20or\x20--sql');if(_0x3bfdff&&!_0x521b41)throw CliErrors[_0x91f0b2(0x1ee)](_0x91f0b2(0x205));let _0x1372c9;if(_0x22fc36){const _0x570cd6=resolve(process['cwd'](),_0x22fc36);if(!existsSync(_0x570cd6))throw CliErrors[_0x91f0b2(0x1ee)](_0x91f0b2(0x1e7)+_0x570cd6);_0x1372c9=readFileSync(_0x570cd6,_0x91f0b2(0x1e8));}else _0x1372c9=_0x297e17;const _0x191d61=validateSql(_0x1372c9),_0x276dce={'valid':_0x191d61[_0x91f0b2(0x210)],'sqlType':_0x191d61[_0x91f0b2(0x217)]['type'],'isSelectOnly':_0x191d61[_0x91f0b2(0x217)][_0x91f0b2(0x209)],'isDangerous':_0x191d61['sqlType']['isDangerous'],'tables':_0x191d61[_0x91f0b2(0x211)],'parameters':_0x191d61['parameters'],'message':_0x191d61['message']};_0x191d61[_0x91f0b2(0x217)]['reason']&&(_0x276dce['reason']=_0x191d61[_0x91f0b2(0x217)][_0x91f0b2(0x1f5)]);if(_0x521b41&&_0x191d61[_0x91f0b2(0x210)]){const _0x405216=_0x521b41[_0x91f0b2(0x1fb)](',')[_0x91f0b2(0x208)](_0x1174c0=>_0x1174c0['trim']())['filter'](Boolean),_0x3f1792=[],_0x3b228a=[],_0x45300c=filterDbTableBackedDatasets(await listDatasets(_0xb82258[_0x91f0b2(0x1ef)])),_0x21a730=new Map(_0x45300c[_0x91f0b2(0x208)](_0x222bc4=>[_0x222bc4['dbtableConfig']?.['tableName']?.[_0x91f0b2(0x1f3)](),_0x222bc4]));for(const _0x1c9af9 of _0x191d61[_0x91f0b2(0x211)]){const _0x50e652=_0x21a730[_0x91f0b2(0x1ea)](_0x1c9af9[_0x91f0b2(0x1f3)]());!_0x50e652&&_0x3f1792['push'](_0x91f0b2(0x1e2)+_0x1c9af9+_0x91f0b2(0x20f));}for(const _0x40b011 of _0x405216){let _0x1a08cc;try{_0x1a08cc=await getDatasetDetail(_0x40b011);}catch{_0x3f1792[_0x91f0b2(0x214)]('Dataset\x20\x22'+_0x40b011+_0x91f0b2(0x200));continue;}assertDatasetIsDbTableBacked(_0x1a08cc,_0x91f0b2(0x1db));const _0x4b8dce=Array[_0x91f0b2(0x1f6)](_0x1a08cc['fields'])?_0x1a08cc[_0x91f0b2(0x1fc)]:[],_0x22b1a2=new Set(_0x4b8dce[_0x91f0b2(0x208)](_0x55e05e=>_0x55e05e[_0x91f0b2(0x20c)]?.[_0x91f0b2(0x1f3)]())),_0x2a3b04=_0x1a08cc[_0x91f0b2(0x1df)]?.[_0x91f0b2(0x1e6)]||_0x1a08cc[_0x91f0b2(0x1e6)]||_0x40b011;_0x276dce['schema:'+_0x2a3b04]={'code':_0x40b011,'tableName':_0x2a3b04,'fieldCount':_0x22b1a2[_0x91f0b2(0x1fe)],'fields':Array[_0x91f0b2(0x20b)](_0x22b1a2)};if(_0x3bfdff){const _0x3841c8=normalizeDatasetIndexes(_0x1a08cc);_0x3b228a[_0x91f0b2(0x214)]({'tableName':_0x2a3b04,..._0x3841c8});}}_0x3f1792[_0x91f0b2(0x1e0)]>0x0&&(_0x276dce[_0x91f0b2(0x1ff)]=_0x3f1792),_0x3bfdff&&(_0x276dce[_0x91f0b2(0x212)]=auditSqlJoinIndexes(_0x1372c9,_0x3b228a));}return{'ok':_0x191d61[_0x91f0b2(0x210)],'data':_0x276dce,'message':_0x191d61[_0x91f0b2(0x1f9)]};}};function normalizeDatasetIndexes(_0x58284c){const _0x295cc0=a177_0xc64d2a,_0x227b39=Array[_0x295cc0(0x1f6)](_0x58284c?.[_0x295cc0(0x207)]?.[_0x295cc0(0x215)])?_0x58284c['dataset'][_0x295cc0(0x215)]:Array[_0x295cc0(0x1f6)](_0x58284c?.['indexes'])?_0x58284c['indexes']:[],_0x5ce694=_0x227b39['flatMap'](_0x443333=>{const _0x5f0117=_0x295cc0,_0x136a84=Array['isArray'](_0x443333?.[_0x5f0117(0x1e1)])?_0x443333[_0x5f0117(0x1e1)]:Array[_0x5f0117(0x1f6)](_0x443333?.['columnNames'])?_0x443333[_0x5f0117(0x1ec)]:Array[_0x5f0117(0x1f6)](_0x443333?.[_0x5f0117(0x1da)])?_0x443333[_0x5f0117(0x1da)]:[],_0x498b19=_0x136a84['filter'](_0x540f3f=>typeof _0x540f3f===_0x5f0117(0x1ed))[_0x5f0117(0x208)](_0x21e04a=>_0x21e04a[_0x5f0117(0x1eb)]())['filter'](Boolean);if(_0x498b19[_0x5f0117(0x1e0)]===0x0)return[];const _0x4844cf=[_0x443333?.[_0x5f0117(0x201)],_0x443333?.[_0x5f0117(0x1fa)],_0x443333?.[_0x5f0117(0x20c)]]['find'](_0x38d34f=>typeof _0x38d34f===_0x5f0117(0x1ed)&&_0x38d34f[_0x5f0117(0x1eb)]()),_0x368a2e=[_0x443333?.['index_type'],_0x443333?.[_0x5f0117(0x1fd)]][_0x5f0117(0x1dc)](_0x2eec44=>typeof _0x2eec44===_0x5f0117(0x1ed)&&_0x2eec44[_0x5f0117(0x1eb)]());return[{..._0x4844cf?{'name':_0x4844cf[_0x5f0117(0x1eb)]()}:{},..._0x368a2e?{'type':_0x368a2e[_0x5f0117(0x1eb)]()}:{},'columns':_0x498b19}];}),_0x4970d8=[..._0x5ce694],_0x4d6441=typeof _0x58284c?.[_0x295cc0(0x1df)]?.[_0x295cc0(0x218)]===_0x295cc0(0x1ed)?_0x58284c[_0x295cc0(0x1df)]['pkField'][_0x295cc0(0x1fb)](',')[_0x295cc0(0x208)](_0x4509ee=>_0x4509ee['trim']())['filter'](Boolean):[];return _0x4d6441['length']>0x0&&_0x4970d8[_0x295cc0(0x20d)]({'type':_0x295cc0(0x1e9),'columns':_0x4d6441}),{'indexes':_0x4970d8,'metadataAvailable':_0x5ce694[_0x295cc0(0x1e0)]>0x0};}
@@ -1 +1 @@
1
- function a178_0x1b19(){const _0x1549d0=['101076WIrmAo','1421135VkDbTf','33suNrkj','9lrczAY','11728PRqqcF','8NqXcGt','1598024zwqXCe','1158iayhfr','5089zFFiNJ','333580nNPPZI','47kAkQYp','7794fZJGYK'];a178_0x1b19=function(){return _0x1549d0;};return a178_0x1b19();}(function(_0x38a17a,_0x500367){const _0x48345f=a178_0x4a92,_0x406aff=_0x38a17a();while(!![]){try{const _0x3a0519=parseInt(_0x48345f(0x1c0))/0x1*(parseInt(_0x48345f(0x1ba))/0x2)+-parseInt(_0x48345f(0x1c1))/0x3*(-parseInt(_0x48345f(0x1bb))/0x4)+parseInt(_0x48345f(0x1b7))/0x5+parseInt(_0x48345f(0x1bd))/0x6*(-parseInt(_0x48345f(0x1be))/0x7)+-parseInt(_0x48345f(0x1bc))/0x8*(parseInt(_0x48345f(0x1b9))/0x9)+-parseInt(_0x48345f(0x1bf))/0xa+parseInt(_0x48345f(0x1b8))/0xb*(-parseInt(_0x48345f(0x1b6))/0xc);if(_0x3a0519===_0x500367)break;else _0x406aff['push'](_0x406aff['shift']());}catch(_0x3655ab){_0x406aff['push'](_0x406aff['shift']());}}}(a178_0x1b19,0x289c4));import{taskStatus}from'../../commands/task/status.js';function a178_0x4a92(_0x1369e7,_0x57c88d){_0x1369e7=_0x1369e7-0x1b6;const _0x1b19be=a178_0x1b19();let _0x4a9218=_0x1b19be[_0x1369e7];return _0x4a9218;}export const taskDefinitions=[taskStatus];
1
+ (function(_0x2e1b62,_0x35ae8d){const _0x5b43ec=a178_0x46d6,_0x4cb6a2=_0x2e1b62();while(!![]){try{const _0x31db59=parseInt(_0x5b43ec(0x1e7))/0x1+parseInt(_0x5b43ec(0x1e3))/0x2*(-parseInt(_0x5b43ec(0x1eb))/0x3)+-parseInt(_0x5b43ec(0x1e5))/0x4+parseInt(_0x5b43ec(0x1e8))/0x5*(-parseInt(_0x5b43ec(0x1e4))/0x6)+-parseInt(_0x5b43ec(0x1ea))/0x7+-parseInt(_0x5b43ec(0x1e2))/0x8*(parseInt(_0x5b43ec(0x1e9))/0x9)+-parseInt(_0x5b43ec(0x1e1))/0xa*(-parseInt(_0x5b43ec(0x1e6))/0xb);if(_0x31db59===_0x35ae8d)break;else _0x4cb6a2['push'](_0x4cb6a2['shift']());}catch(_0x18b9bd){_0x4cb6a2['push'](_0x4cb6a2['shift']());}}}(a178_0x2a12,0x678b8));function a178_0x2a12(){const _0x2af1bf=['9mEeuDO','5073418VEqZDQ','950541KjxnFY','5817550iYGfCx','5386096frqvzL','2jDXhSt','4779408Grvffr','327528qtfpxk','44OqcUPr','690433FhJPSc','5nhJbDA'];a178_0x2a12=function(){return _0x2af1bf;};return a178_0x2a12();}import{taskStatus}from'../../commands/task/status.js';function a178_0x46d6(_0x328e5e,_0x3557af){_0x328e5e=_0x328e5e-0x1e1;const _0x2a1272=a178_0x2a12();let _0x46d646=_0x2a1272[_0x328e5e];return _0x46d646;}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a179_0x29f5ba=a179_0x1707;(function(_0x33a1ca,_0x1e91db){const _0x41b068=a179_0x1707,_0x462da2=_0x33a1ca();while(!![]){try{const _0x4a47f2=-parseInt(_0x41b068(0xbb))/0x1*(parseInt(_0x41b068(0xbf))/0x2)+-parseInt(_0x41b068(0xc2))/0x3*(parseInt(_0x41b068(0xbc))/0x4)+parseInt(_0x41b068(0xc4))/0x5+-parseInt(_0x41b068(0xc6))/0x6+-parseInt(_0x41b068(0xb9))/0x7+-parseInt(_0x41b068(0xc7))/0x8*(parseInt(_0x41b068(0xc3))/0x9)+-parseInt(_0x41b068(0xb2))/0xa*(-parseInt(_0x41b068(0xc1))/0xb);if(_0x4a47f2===_0x1e91db)break;else _0x462da2['push'](_0x462da2['shift']());}catch(_0x23c0ee){_0x462da2['push'](_0x462da2['shift']());}}}(a179_0x4f5e,0x4a035));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a179_0x4f5e(){const _0x5411a7=['string','23372gjmjcH','str','2519znOPQd','2421YDBZlP','18TgMYeF','2368225xHeJFw','task','2804112oqIxKd','1520472KIKXNn','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','compress','appCode','89590iveRqh','trim','cookie','taskId','read','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','3859660UCWgCa','isTerminal','19ozAgLM','2980kNzTAm','flagMissing'];a179_0x4f5e=function(){return _0x5411a7;};return a179_0x4f5e();}function a179_0x1707(_0x395481,_0x59cdab){_0x395481=_0x395481-0xaf;const _0x4f5e6b=a179_0x4f5e();let _0x170771=_0x4f5e6b[_0x395481];return _0x170771;}export const taskStatus={'service':a179_0x29f5ba(0xc5),'command':'status','description':a179_0x29f5ba(0xaf),'risk':a179_0x29f5ba(0xb6),'defaultOutputFormat':a179_0x29f5ba(0xb0),'structuredErrors':!![],'flags':[{'name':a179_0x29f5ba(0xb7),'type':a179_0x29f5ba(0xbe),'required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x109032){const _0x133dfe=a179_0x29f5ba;if(!_0x109032[_0x133dfe(0xc0)](_0x133dfe(0xb7))[_0x133dfe(0xb3)]())throw CliErrors[_0x133dfe(0xbd)](_0x133dfe(0xb7));},async 'execute'(_0x15d5c8){const _0x310d88=a179_0x29f5ba,_0xf9df48=_0x15d5c8['str']('task-id')[_0x310d88(0xb3)](),_0x211a03=normalizeAsyncTask(await getAsyncTaskStatus(_0xf9df48,_0x15d5c8[_0x310d88(0xb1)],_0x15d5c8[_0x310d88(0xb4)]));if(_0x211a03[_0x310d88(0xb5)]!==_0xf9df48)throw CliErrors['apiError'](_0x310d88(0xb8)+_0xf9df48+',\x20received\x20'+_0x211a03[_0x310d88(0xb5)]+'.');const _0x5738ef=buildAsyncTaskStatusCommand(_0x211a03[_0x310d88(0xb5)],_0x15d5c8['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x211a03),'data':{'appCode':_0x15d5c8[_0x310d88(0xb1)],..._0x211a03,'query':_0x211a03[_0x310d88(0xba)]?null:{'command':_0x5738ef}}};}};
1
+ const a179_0xc546e3=a179_0x2e7e;(function(_0x4d6aee,_0x168e6c){const _0x3cf915=a179_0x2e7e,_0x31897f=_0x4d6aee();while(!![]){try{const _0x5770d8=parseInt(_0x3cf915(0x79))/0x1+-parseInt(_0x3cf915(0x75))/0x2*(parseInt(_0x3cf915(0x7e))/0x3)+parseInt(_0x3cf915(0x89))/0x4+parseInt(_0x3cf915(0x74))/0x5+-parseInt(_0x3cf915(0x7a))/0x6*(parseInt(_0x3cf915(0x83))/0x7)+parseInt(_0x3cf915(0x77))/0x8*(parseInt(_0x3cf915(0x7f))/0x9)+-parseInt(_0x3cf915(0x81))/0xa*(parseInt(_0x3cf915(0x86))/0xb);if(_0x5770d8===_0x168e6c)break;else _0x31897f['push'](_0x31897f['shift']());}catch(_0x1bb6e1){_0x31897f['push'](_0x31897f['shift']());}}}(a179_0x40f3,0xd5228));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a179_0x2e7e(_0x4d0c7,_0x3fccb2){_0x4d0c7=_0x4d0c7-0x73;const _0x40f3b1=a179_0x40f3();let _0x2e7e37=_0x40f3b1[_0x4d0c7];return _0x2e7e37;}import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a179_0x40f3(){const _0xa38852=[',\x20received\x20','27290eWktVu','str','21cIAPVS','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','apiError','9306zIUxvQ','flagMissing','compress','1380308XSaIkN','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task','read','trim','7968765zHrVbC','675718nDmvQL','taskId','8aWHuEi','task-id','1459115XOUjuN','3067656nwIdqA','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','status','appCode','3aZvhfV','14899284rAjvYg'];a179_0x40f3=function(){return _0xa38852;};return a179_0x40f3();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a179_0xc546e3(0x8b),'command':a179_0xc546e3(0x7c),'description':a179_0xc546e3(0x8a),'risk':a179_0xc546e3(0x8c),'defaultOutputFormat':a179_0xc546e3(0x88),'structuredErrors':!![],'flags':[{'name':'task-id','type':'string','required':!![],'description':a179_0xc546e3(0x7b)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x46c65f){const _0x24b6a5=a179_0xc546e3;if(!_0x46c65f['str'](_0x24b6a5(0x78))['trim']())throw CliErrors[_0x24b6a5(0x87)](_0x24b6a5(0x78));},async 'execute'(_0x58ea9d){const _0x42a380=a179_0xc546e3,_0x3c2241=_0x58ea9d[_0x42a380(0x82)]('task-id')[_0x42a380(0x73)](),_0x379839=normalizeAsyncTask(await getAsyncTaskStatus(_0x3c2241,_0x58ea9d[_0x42a380(0x7d)],_0x58ea9d['cookie']));if(_0x379839[_0x42a380(0x76)]!==_0x3c2241)throw CliErrors[_0x42a380(0x85)](_0x42a380(0x84)+_0x3c2241+_0x42a380(0x80)+_0x379839[_0x42a380(0x76)]+'.');const _0x59d14b=buildAsyncTaskStatusCommand(_0x379839[_0x42a380(0x76)],_0x58ea9d[_0x42a380(0x7d)]);return{'ok':!![],'message':asyncTaskMessage(_0x379839),'data':{'appCode':_0x58ea9d[_0x42a380(0x7d)],..._0x379839,'query':_0x379839['isTerminal']?null:{'command':_0x59d14b}}};}};
@@ -1 +1 @@
1
- const a180_0x770b7c=a180_0x3377;function a180_0x2e87(){const _0x5c1555=['workspace\x20add','3572346tBkhEg','153fZkEAg','5750efOPxV','add','248648ebvxHM','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','6231281IteAdY','2017072PTWjrR','26895bKORla','2055630heptvv','name','301280KPgkUI','1nvGmZf','36FGCBly'];a180_0x2e87=function(){return _0x5c1555;};return a180_0x2e87();}(function(_0x13f47d,_0x2fa709){const _0x1ee270=a180_0x3377,_0x2fe230=_0x13f47d();while(!![]){try{const _0x118b9c=parseInt(_0x1ee270(0x1d0))/0x1*(parseInt(_0x1ee270(0x1cd))/0x2)+-parseInt(_0x1ee270(0x1c3))/0x3+-parseInt(_0x1ee270(0x1cb))/0x4+parseInt(_0x1ee270(0x1cf))/0x5*(-parseInt(_0x1ee270(0x1c1))/0x6)+parseInt(_0x1ee270(0x1ca))/0x7+parseInt(_0x1ee270(0x1c7))/0x8*(-parseInt(_0x1ee270(0x1c4))/0x9)+-parseInt(_0x1ee270(0x1c5))/0xa*(-parseInt(_0x1ee270(0x1cc))/0xb);if(_0x118b9c===_0x2fa709)break;else _0x2fe230['push'](_0x2fe230['shift']());}catch(_0x595f03){_0x2fe230['push'](_0x2fe230['shift']());}}}(a180_0x2e87,0xb465e));function a180_0x3377(_0x2e11b3,_0x431e1a){_0x2e11b3=_0x2e11b3-0x1c1;const _0x2e876e=a180_0x2e87();let _0x3377af=_0x2e876e[_0x2e11b3];return _0x3377af;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a180_0x770b7c(0x1c8),'command':a180_0x770b7c(0x1c6),'description':a180_0x770b7c(0x1c9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x770b7c(0x1ce),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3d20f7=>validateAppName(_0x3d20f7,'workspace\x20add'),'execute':_0x21f522=>runAppAdd(_0x21f522,a180_0x770b7c(0x1c2))};
1
+ function a180_0x30b5(_0x10f8a1,_0xe76951){_0x10f8a1=_0x10f8a1-0x77;const _0x125ba1=a180_0x125b();let _0x30b514=_0x125ba1[_0x10f8a1];return _0x30b514;}const a180_0x358b09=a180_0x30b5;(function(_0x337ac8,_0x49a770){const _0x16c8fa=a180_0x30b5,_0x495138=_0x337ac8();while(!![]){try{const _0x369716=parseInt(_0x16c8fa(0x85))/0x1*(-parseInt(_0x16c8fa(0x78))/0x2)+-parseInt(_0x16c8fa(0x77))/0x3*(-parseInt(_0x16c8fa(0x7c))/0x4)+parseInt(_0x16c8fa(0x81))/0x5*(-parseInt(_0x16c8fa(0x79))/0x6)+-parseInt(_0x16c8fa(0x84))/0x7+parseInt(_0x16c8fa(0x7e))/0x8+-parseInt(_0x16c8fa(0x7a))/0x9*(parseInt(_0x16c8fa(0x86))/0xa)+-parseInt(_0x16c8fa(0x80))/0xb*(-parseInt(_0x16c8fa(0x7f))/0xc);if(_0x369716===_0x49a770)break;else _0x495138['push'](_0x495138['shift']());}catch(_0x33f2f7){_0x495138['push'](_0x495138['shift']());}}}(a180_0x125b,0x5d1e5));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a180_0x125b(){const _0x5c9059=['4422824LDJGwH','12TqKcgQ','15195862zblXPJ','299570aDJkdo','App\x20profile\x20name','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','4889045rkSkwG','37085OAbWzo','20RHcEmc','71946BxMxpU','14NoJbrO','54ykTADS','1329507HZftAx','workspace\x20add','40bUwMLl','workspace'];a180_0x125b=function(){return _0x5c9059;};return a180_0x125b();}export const workspaceAddDefinition={'service':a180_0x358b09(0x7d),'command':'add','description':a180_0x358b09(0x83),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0x358b09(0x82),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3942ec=>validateAppName(_0x3942ec,'workspace\x20add'),'execute':_0x18f931=>runAppAdd(_0x18f931,a180_0x358b09(0x7b))};
@@ -1 +1 @@
1
- const a181_0x5dc782=a181_0x4119;(function(_0x1b08e1,_0x265eca){const _0x5048af=a181_0x4119,_0x21a833=_0x1b08e1();while(!![]){try{const _0x35f74a=-parseInt(_0x5048af(0x111))/0x1+parseInt(_0x5048af(0xfd))/0x2*(parseInt(_0x5048af(0x106))/0x3)+parseInt(_0x5048af(0x117))/0x4*(-parseInt(_0x5048af(0xf4))/0x5)+parseInt(_0x5048af(0x113))/0x6*(parseInt(_0x5048af(0x11c))/0x7)+-parseInt(_0x5048af(0x123))/0x8*(parseInt(_0x5048af(0x127))/0x9)+parseInt(_0x5048af(0xf6))/0xa*(parseInt(_0x5048af(0xf1))/0xb)+parseInt(_0x5048af(0x114))/0xc*(parseInt(_0x5048af(0xf5))/0xd);if(_0x35f74a===_0x265eca)break;else _0x21a833['push'](_0x21a833['shift']());}catch(_0x426a57){_0x21a833['push'](_0x21a833['shift']());}}}(a181_0x46f4,0x35547));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a181_0x4119(_0x5e03fe,_0x495943){_0x5e03fe=_0x5e03fe-0xec;const _0x46f46c=a181_0x46f4();let _0x41197e=_0x46f46c[_0x5e03fe];return _0x41197e;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x5dc782(0x11e),SAFE_PROFILE_KEYS=[a181_0x5dc782(0x100),a181_0x5dc782(0x122),'apiDir','format','pageSize','riskLevel',a181_0x5dc782(0x116)],workspaceFlags=[{'name':'app','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xee)},{'name':'appcode','type':'string','description':a181_0x5dc782(0xf0)},{'name':a181_0x5dc782(0x122),'type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0x107),'enum':[...RABETBASE_ENV_VALUES]},{'name':a181_0x5dc782(0xfa),'type':a181_0x5dc782(0x109),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x5dc782(0x126),'type':'string','description':a181_0x5dc782(0x121),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x5dc782(0x10e),'type':a181_0x5dc782(0xf2),'description':a181_0x5dc782(0x105)},{'name':'riskLevel','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xef),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x5dc782(0x116),'type':a181_0x5dc782(0x109),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2f35bd){const _0x5754b6=a181_0x5dc782;return!!_0x2f35bd&&typeof _0x2f35bd===_0x5754b6(0x10d)&&!Array[_0x5754b6(0xed)](_0x2f35bd);}function assertValidAppcode(_0x3383ec){const _0x13db1e=a181_0x5dc782,{valid:_0x133e20,message:_0x57d54e}=validateAppcode(_0x3383ec);if(!_0x133e20)throw CliErrors[_0x13db1e(0xff)]('Invalid\x20appcode:\x20'+_0x3383ec,_0x57d54e);}function sanitizeProfile(_0x4b6f23){if(!isRecord(_0x4b6f23))return{};const _0x2a5ede={};for(const _0x4f679c of SAFE_PROFILE_KEYS){if(_0x4b6f23[_0x4f679c]!==undefined)_0x2a5ede[_0x4f679c]=_0x4b6f23[_0x4f679c];}return _0x2a5ede;}function cloneProfile(_0x2c3be7){return isRecord(_0x2c3be7)?{..._0x2c3be7}:{};}function collectWorkspaceProfileOverrides(_0x562b79){const _0x2730ed=a181_0x5dc782,_0x1f0dad={},_0x35575e=_0x562b79[_0x2730ed(0x115)]('env'),_0x19e310=_0x562b79[_0x2730ed(0x115)]('apiDir'),_0x5dfa90=_0x562b79[_0x2730ed(0x115)]('defaultFormat'),_0x5eb972=_0x562b79[_0x2730ed(0x11a)](_0x2730ed(0x10e)),_0x37b658=_0x562b79[_0x2730ed(0x115)](_0x2730ed(0x110)),_0xf61fa6=_0x562b79['str'](_0x2730ed(0x116));if(_0x35575e)_0x1f0dad[_0x2730ed(0x122)]=_0x35575e;if(_0x19e310)_0x1f0dad['apiDir']=_0x19e310;if(_0x5dfa90)_0x1f0dad['format']=_0x5dfa90;if(_0x5eb972!==undefined&&_0x5eb972!=='')_0x1f0dad[_0x2730ed(0x10e)]=Number(_0x5eb972);if(_0x37b658)_0x1f0dad[_0x2730ed(0x110)]=_0x37b658;if(_0xf61fa6)_0x1f0dad[_0x2730ed(0x116)]=_0xf61fa6;return _0x1f0dad;}async function validateWorkspaceArgs(_0x592ee9){const _0x59da4f=a181_0x5dc782,_0x4f9f73=_0x592ee9[_0x59da4f(0x115)]('app')['trim'](),_0x11cbf5=_0x592ee9[_0x59da4f(0x115)](_0x59da4f(0x100))[_0x59da4f(0xfe)]();if(!_0x4f9f73&&!_0x11cbf5)throw CliErrors[_0x59da4f(0xff)](_0x59da4f(0xf7),_0x59da4f(0xfc)+CLI_BIN_NAME+_0x59da4f(0x103)+CLI_BIN_NAME+_0x59da4f(0x10c));if(_0x11cbf5)assertValidAppcode(_0x11cbf5);}function resolveKnownApps(){const _0x50b8cb=a181_0x5dc782,{config:_0x510d45,layers:_0x181be8}=readRawConfigWithLayers(),_0x4eb49d=isRecord(_0x510d45[_0x50b8cb(0x10b)])?_0x510d45[_0x50b8cb(0x10b)]:{},_0x5af3d2=isRecord(_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)])?_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)]:{};return{..._0x5af3d2,..._0x4eb49d};}function a181_0x46f4(){const _0x3708c8=['env','3976eBbLgA','\x22\x20not\x20found.','keys','defaultFormat','5373IPCLWl','globalConfig','isArray','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','11hrTEGV','number','length','512545gZzvzf','45396SalsOH','3651020OseBce','Missing\x20workspace\x20app\x20selector.','App\x20\x22','updated','apiDir','write','Use\x20`','253412QBOzHN','trim','validation','appcode','init','\x20workspace\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`',').\x20Config:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','3AOosyx','Target\x20environment','project','string','use','apps','\x20workspace\x20use\x20--app\x20<name>`.','object','pageSize','\x20(appcode:\x20','riskLevel','40350SzPbHw','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6YvCiZZ','288aAUPyL','str','locale','4xAUJTa','join','workspace.','flag','.\x20Credentials:\x20not\x20written.','576737vmsVur','initialized','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','app','workspace','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile'];a181_0x46f4=function(){return _0x3708c8;};return a181_0x46f4();}async function configureWorkspace(_0x3b85af,_0x1fa232){const _0x5557af=a181_0x5dc782,_0xf4792f=_0x3b85af['str']('app')[_0x5557af(0xfe)](),_0x3e76e6=_0x3b85af[_0x5557af(0x115)](_0x5557af(0x100))[_0x5557af(0xfe)](),_0x2c9272=_0xf4792f||_0x3e76e6;if(!_0x2c9272)throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf7),_0x5557af(0xfc)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x5557af(0x10c));if(_0x3e76e6)assertValidAppcode(_0x3e76e6);const _0x145dc4=resolveWriteConfigPath(_0x5557af(0x108)),_0x5bb61c=readConfigFile(_0x145dc4),_0x5b30f7=resolveKnownApps(),_0x1f1a4c=isRecord(_0x5bb61c['apps'])?{..._0x5bb61c[_0x5557af(0x10b)]}:{},_0x2cd063=cloneProfile(_0x1f1a4c[_0x2c9272]),_0xd3aa8d=sanitizeProfile(_0x5b30f7[_0x2c9272]),_0x3b39f6=_0x3e76e6?{}:_0xd3aa8d,_0x3b906=_0x3e76e6||_0x3b39f6[_0x5557af(0x100)];if(!_0x3b906){const _0x585edd=Object[_0x5557af(0x125)](_0x5b30f7),_0x50f267=_0x585edd[_0x5557af(0xf3)]===0x0?_0x5557af(0xfc)+CLI_BIN_NAME+_0x5557af(0x102)+_0x1fa232+'\x20--app\x20'+_0x2c9272+'\x20--appcode\x20<code>`.':_0x5557af(0x112)+_0x585edd[_0x5557af(0x118)](',\x20');throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf8)+_0x2c9272+_0x5557af(0x124),_0x50f267);}assertValidAppcode(String(_0x3b906));const _0x49fd6e={..._0x3b39f6,..._0x2cd063,'appcode':String(_0x3b906),...collectWorkspaceProfileOverrides(_0x3b85af)};return _0x1f1a4c[_0x2c9272]=_0x49fd6e,_0x5bb61c[_0x5557af(0x10b)]=_0x1f1a4c,_0x5bb61c['defaultApp']=_0x2c9272,delete _0x5bb61c[_0x5557af(0x100)],delete _0x5bb61c[_0x5557af(0x11f)],_0x49fd6e['env']&&(_0x5bb61c[_0x5557af(0x122)]=_0x49fd6e['env']),writeConfigFile(_0x145dc4,_0x5bb61c),{'ok':!![],'message':'Workspace\x20'+(_0x1fa232===_0x5557af(0x101)?_0x5557af(0x11d):_0x5557af(0xf9))+':\x20'+_0x2c9272+_0x5557af(0x10f)+_0x49fd6e['appcode']+_0x5557af(0x104)+_0x145dc4+_0x5557af(0x11b),'data':{'operation':_0x5557af(0x119)+_0x1fa232,'configPath':_0x145dc4,'app':_0x2c9272,'appcode':_0x49fd6e[_0x5557af(0x100)],'env':_0x49fd6e[_0x5557af(0x122)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a181_0x5dc782(0x120),'command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x5dc782(0xfb),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4f8776=>configureWorkspace(_0x4f8776,a181_0x5dc782(0x101))},workspaceUseDefinition={'service':a181_0x5dc782(0x120),'command':a181_0x5dc782(0x10a),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1423bc=>configureWorkspace(_0x1423bc,a181_0x5dc782(0x10a))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a181_0x1cbc3a=a181_0x24f0;function a181_0x24f0(_0x1304e0,_0x849e1){_0x1304e0=_0x1304e0-0x162;const _0x28522f=a181_0x2852();let _0x24f059=_0x28522f[_0x1304e0];return _0x24f059;}(function(_0x4f6e14,_0x57165a){const _0xaab2a2=a181_0x24f0,_0x13e788=_0x4f6e14();while(!![]){try{const _0x49ff39=-parseInt(_0xaab2a2(0x167))/0x1+-parseInt(_0xaab2a2(0x186))/0x2+parseInt(_0xaab2a2(0x169))/0x3+parseInt(_0xaab2a2(0x187))/0x4+-parseInt(_0xaab2a2(0x176))/0x5+parseInt(_0xaab2a2(0x16f))/0x6+parseInt(_0xaab2a2(0x17c))/0x7*(-parseInt(_0xaab2a2(0x18d))/0x8);if(_0x49ff39===_0x57165a)break;else _0x13e788['push'](_0x13e788['shift']());}catch(_0x57e5fe){_0x13e788['push'](_0x13e788['shift']());}}}(a181_0x2852,0x22011));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x1cbc3a(0x19c),SAFE_PROFILE_KEYS=[a181_0x1cbc3a(0x183),'env','apiDir',a181_0x1cbc3a(0x17e),a181_0x1cbc3a(0x185),a181_0x1cbc3a(0x174),a181_0x1cbc3a(0x18c)],workspaceFlags=[{'name':a181_0x1cbc3a(0x165),'type':'string','description':a181_0x1cbc3a(0x17f)},{'name':'appcode','type':a181_0x1cbc3a(0x18b),'description':a181_0x1cbc3a(0x19a)},{'name':a181_0x1cbc3a(0x179),'type':a181_0x1cbc3a(0x18b),'description':a181_0x1cbc3a(0x16a),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a181_0x1cbc3a(0x18b),'description':a181_0x1cbc3a(0x162)},{'name':a181_0x1cbc3a(0x173),'type':'string','description':a181_0x1cbc3a(0x181),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x1cbc3a(0x185),'type':a181_0x1cbc3a(0x194),'description':a181_0x1cbc3a(0x189)},{'name':a181_0x1cbc3a(0x174),'type':'string','description':a181_0x1cbc3a(0x193),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x1cbc3a(0x18c),'type':a181_0x1cbc3a(0x18b),'description':a181_0x1cbc3a(0x182)}];function isRecord(_0x2115ae){const _0xd5c1a7=a181_0x1cbc3a;return!!_0x2115ae&&typeof _0x2115ae===_0xd5c1a7(0x177)&&!Array[_0xd5c1a7(0x19b)](_0x2115ae);}function assertValidAppcode(_0x4a7cb5){const _0x4a076b=a181_0x1cbc3a,{valid:_0x12c549,message:_0x369704}=validateAppcode(_0x4a7cb5);if(!_0x12c549)throw CliErrors['validation'](_0x4a076b(0x178)+_0x4a7cb5,_0x369704);}function sanitizeProfile(_0x439aa6){if(!isRecord(_0x439aa6))return{};const _0x268b2b={};for(const _0x5850a0 of SAFE_PROFILE_KEYS){if(_0x439aa6[_0x5850a0]!==undefined)_0x268b2b[_0x5850a0]=_0x439aa6[_0x5850a0];}return _0x268b2b;}function cloneProfile(_0x149aab){return isRecord(_0x149aab)?{..._0x149aab}:{};}function a181_0x2852(){const _0x5f2b72=['riskLevel','validation','49505LVsgdS','object','Invalid\x20appcode:\x20','env','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','7HLegYp','globalConfig','format','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','use','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','Locale\x20for\x20this\x20workspace\x20app\x20profile','appcode','apiDir','pageSize','85464gYNjUI','89656oMnetT','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','trim','string','locale','1978920mYpGZC','workspace.','.\x20Credentials:\x20not\x20written.','\x20(appcode:\x20','Use\x20`','\x20workspace\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','number','apps','workspace','write','\x22\x20not\x20found.','keys','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','isArray','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','App\x20\x22','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','str','project','app','Workspace\x20','32229CAfPHI','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','564510WVEEix','Target\x20environment',').\x20Config:\x20','defaultApp','flag','length','1565544PLoLyh','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20use\x20--app\x20<name>`.','init','defaultFormat'];a181_0x2852=function(){return _0x5f2b72;};return a181_0x2852();}function collectWorkspaceProfileOverrides(_0x4a4943){const _0x80c6ca=a181_0x1cbc3a,_0x3f4d0c={},_0x59f712=_0x4a4943[_0x80c6ca(0x163)](_0x80c6ca(0x179)),_0x3e4d59=_0x4a4943['str'](_0x80c6ca(0x184)),_0x47b392=_0x4a4943[_0x80c6ca(0x163)](_0x80c6ca(0x173)),_0x408a07=_0x4a4943[_0x80c6ca(0x16d)](_0x80c6ca(0x185)),_0x5e8733=_0x4a4943[_0x80c6ca(0x163)](_0x80c6ca(0x174)),_0x17eeb6=_0x4a4943[_0x80c6ca(0x163)](_0x80c6ca(0x18c));if(_0x59f712)_0x3f4d0c[_0x80c6ca(0x179)]=_0x59f712;if(_0x3e4d59)_0x3f4d0c[_0x80c6ca(0x184)]=_0x3e4d59;if(_0x47b392)_0x3f4d0c[_0x80c6ca(0x17e)]=_0x47b392;if(_0x408a07!==undefined&&_0x408a07!=='')_0x3f4d0c[_0x80c6ca(0x185)]=Number(_0x408a07);if(_0x5e8733)_0x3f4d0c[_0x80c6ca(0x174)]=_0x5e8733;if(_0x17eeb6)_0x3f4d0c[_0x80c6ca(0x18c)]=_0x17eeb6;return _0x3f4d0c;}async function validateWorkspaceArgs(_0x3a0bfb){const _0x9bd8ef=a181_0x1cbc3a,_0x284f5d=_0x3a0bfb[_0x9bd8ef(0x163)]('app')['trim'](),_0x334371=_0x3a0bfb['str']('appcode')[_0x9bd8ef(0x18a)]();if(!_0x284f5d&&!_0x334371)throw CliErrors[_0x9bd8ef(0x175)]('Missing\x20workspace\x20app\x20selector.','Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x334371)assertValidAppcode(_0x334371);}function resolveKnownApps(){const _0x2e179a=a181_0x1cbc3a,{config:_0x26f5a2,layers:_0x27ed2b}=readRawConfigWithLayers(),_0x26ab38=isRecord(_0x26f5a2['apps'])?_0x26f5a2[_0x2e179a(0x195)]:{},_0x34bcc7=isRecord(_0x27ed2b[_0x2e179a(0x17d)][_0x2e179a(0x195)])?_0x27ed2b[_0x2e179a(0x17d)]['apps']:{};return{..._0x34bcc7,..._0x26ab38};}async function configureWorkspace(_0x127820,_0x429176){const _0x55d6a0=a181_0x1cbc3a,_0x1532ca=_0x127820[_0x55d6a0(0x163)](_0x55d6a0(0x165))[_0x55d6a0(0x18a)](),_0x5ab524=_0x127820[_0x55d6a0(0x163)](_0x55d6a0(0x183))['trim'](),_0x4475a2=_0x1532ca||_0x5ab524;if(!_0x4475a2)throw CliErrors['validation'](_0x55d6a0(0x170),_0x55d6a0(0x191)+CLI_BIN_NAME+_0x55d6a0(0x17b)+CLI_BIN_NAME+_0x55d6a0(0x171));if(_0x5ab524)assertValidAppcode(_0x5ab524);const _0x13f68b=resolveWriteConfigPath(_0x55d6a0(0x164)),_0x2ae820=readConfigFile(_0x13f68b),_0x1a4184=resolveKnownApps(),_0x22516a=isRecord(_0x2ae820['apps'])?{..._0x2ae820[_0x55d6a0(0x195)]}:{},_0x4b91e1=cloneProfile(_0x22516a[_0x4475a2]),_0x4b2003=sanitizeProfile(_0x1a4184[_0x4475a2]),_0x46c3b7=_0x5ab524?{}:_0x4b2003,_0x23c600=_0x5ab524||_0x46c3b7[_0x55d6a0(0x183)];if(!_0x23c600){const _0x39ae05=Object[_0x55d6a0(0x199)](_0x1a4184),_0x2cfc5a=_0x39ae05[_0x55d6a0(0x16e)]===0x0?_0x55d6a0(0x191)+CLI_BIN_NAME+_0x55d6a0(0x192)+_0x429176+'\x20--app\x20'+_0x4475a2+'\x20--appcode\x20<code>`.':_0x55d6a0(0x168)+_0x39ae05['join'](',\x20');throw CliErrors[_0x55d6a0(0x175)](_0x55d6a0(0x19d)+_0x4475a2+_0x55d6a0(0x198),_0x2cfc5a);}assertValidAppcode(String(_0x23c600));const _0x1a3bf2={..._0x46c3b7,..._0x4b91e1,'appcode':String(_0x23c600),...collectWorkspaceProfileOverrides(_0x127820)};return _0x22516a[_0x4475a2]=_0x1a3bf2,_0x2ae820[_0x55d6a0(0x195)]=_0x22516a,_0x2ae820[_0x55d6a0(0x16c)]=_0x4475a2,delete _0x2ae820[_0x55d6a0(0x183)],delete _0x2ae820[_0x55d6a0(0x165)],_0x1a3bf2[_0x55d6a0(0x179)]&&(_0x2ae820[_0x55d6a0(0x179)]=_0x1a3bf2[_0x55d6a0(0x179)]),writeConfigFile(_0x13f68b,_0x2ae820),{'ok':!![],'message':_0x55d6a0(0x166)+(_0x429176===_0x55d6a0(0x172)?'initialized':'updated')+':\x20'+_0x4475a2+_0x55d6a0(0x190)+_0x1a3bf2[_0x55d6a0(0x183)]+_0x55d6a0(0x16b)+_0x13f68b+_0x55d6a0(0x18f),'data':{'operation':_0x55d6a0(0x18e)+_0x429176,'configPath':_0x13f68b,'app':_0x4475a2,'appcode':_0x1a3bf2[_0x55d6a0(0x183)],'env':_0x1a3bf2[_0x55d6a0(0x179)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a181_0x1cbc3a(0x196),'command':a181_0x1cbc3a(0x172),'description':a181_0x1cbc3a(0x17a),'risk':a181_0x1cbc3a(0x197),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x22a53c=>configureWorkspace(_0x22a53c,a181_0x1cbc3a(0x172))},workspaceUseDefinition={'service':a181_0x1cbc3a(0x196),'command':a181_0x1cbc3a(0x180),'description':a181_0x1cbc3a(0x188),'risk':a181_0x1cbc3a(0x197),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5e8d37=>configureWorkspace(_0x5e8d37,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a182_0x75334a=a182_0x154f;(function(_0x255eab,_0x4e8719){const _0x45b9c2=a182_0x154f,_0x3752d3=_0x255eab();while(!![]){try{const _0x318d23=-parseInt(_0x45b9c2(0x10f))/0x1+parseInt(_0x45b9c2(0x10d))/0x2*(parseInt(_0x45b9c2(0x103))/0x3)+-parseInt(_0x45b9c2(0x10a))/0x4*(-parseInt(_0x45b9c2(0x10b))/0x5)+-parseInt(_0x45b9c2(0x102))/0x6+-parseInt(_0x45b9c2(0x10c))/0x7+parseInt(_0x45b9c2(0x110))/0x8+parseInt(_0x45b9c2(0x104))/0x9;if(_0x318d23===_0x4e8719)break;else _0x3752d3['push'](_0x3752d3['shift']());}catch(_0x285470){_0x3752d3['push'](_0x3752d3['shift']());}}}(a182_0x112b,0x9668a));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x154f(_0x312695,_0x2fafa7){_0x312695=_0x312695-0x102;const _0x112b05=a182_0x112b();let _0x154fab=_0x112b05[_0x312695];return _0x154fab;}export const workspaceRemoveDefinition={'service':a182_0x75334a(0x105),'command':a182_0x75334a(0x109),'description':a182_0x75334a(0x108),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0x75334a(0x10e),'description':a182_0x75334a(0x106),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x30158b=>validateAppName(_0x30158b,a182_0x75334a(0x107)),'execute':_0x127fd7=>runAppRemove(_0x127fd7,'workspace\x20remove')};function a182_0x112b(){const _0x12d1b9=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','1166644iAaoko','5BXFamB','6145055YvNoHf','386330JnXEpC','name','615548thiXeL','7216528EXvEiR','1806582vpdjxI','9jxkjqp','5736258eYCdEw','workspace','App\x20profile\x20name\x20to\x20remove','workspace\x20remove'];a182_0x112b=function(){return _0x12d1b9;};return a182_0x112b();}
1
+ const a182_0xfa9283=a182_0x584b;(function(_0x453976,_0x2788d2){const _0x4ee7df=a182_0x584b,_0x38bc8d=_0x453976();while(!![]){try{const _0x83a4ad=parseInt(_0x4ee7df(0xa3))/0x1*(-parseInt(_0x4ee7df(0xa2))/0x2)+parseInt(_0x4ee7df(0xae))/0x3*(parseInt(_0x4ee7df(0xaa))/0x4)+-parseInt(_0x4ee7df(0xa9))/0x5*(parseInt(_0x4ee7df(0xa6))/0x6)+-parseInt(_0x4ee7df(0xa7))/0x7*(parseInt(_0x4ee7df(0xac))/0x8)+-parseInt(_0x4ee7df(0xad))/0x9*(-parseInt(_0x4ee7df(0xab))/0xa)+-parseInt(_0x4ee7df(0xa0))/0xb*(parseInt(_0x4ee7df(0xa5))/0xc)+parseInt(_0x4ee7df(0xa8))/0xd;if(_0x83a4ad===_0x2788d2)break;else _0x38bc8d['push'](_0x38bc8d['shift']());}catch(_0x1a9c37){_0x38bc8d['push'](_0x38bc8d['shift']());}}}(a182_0x2086,0xac2cf));function a182_0x2086(){const _0x44371c=['222HSTBfR','high-risk-write','2533157JSzgNe','workspace\x20remove','2174116vJbuhu','1wDBceq','App\x20profile\x20name\x20to\x20remove','12gPCUZX','258qKsCBE','133gVpEIa','18250518lSmauv','40555QIUHbL','5348zYAnrW','5420UWhHCs','27512nhMDsd','15507mAVvYv'];a182_0x2086=function(){return _0x44371c;};return a182_0x2086();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x584b(_0x5a7bb5,_0x4469d1){_0x5a7bb5=_0x5a7bb5-0x9f;const _0x2086a2=a182_0x2086();let _0x584b8e=_0x2086a2[_0x5a7bb5];return _0x584b8e;}export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a182_0xfa9283(0x9f),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a182_0xfa9283(0xa4),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x382e98=>validateAppName(_0x382e98,a182_0xfa9283(0xa1)),'execute':_0x1d8e05=>runAppRemove(_0x1d8e05,a182_0xfa9283(0xa1))};
@@ -1 +1 @@
1
- const a183_0x5afed9=a183_0x4b80;(function(_0x362cc2,_0x37cbfd){const _0x415b8e=a183_0x4b80,_0x458091=_0x362cc2();while(!![]){try{const _0x38ceb7=parseInt(_0x415b8e(0xa2))/0x1+parseInt(_0x415b8e(0xaf))/0x2+parseInt(_0x415b8e(0xb1))/0x3*(-parseInt(_0x415b8e(0xab))/0x4)+parseInt(_0x415b8e(0xac))/0x5*(parseInt(_0x415b8e(0xb7))/0x6)+-parseInt(_0x415b8e(0xa3))/0x7+parseInt(_0x415b8e(0xb9))/0x8*(parseInt(_0x415b8e(0xb5))/0x9)+-parseInt(_0x415b8e(0xbe))/0xa;if(_0x38ceb7===_0x37cbfd)break;else _0x458091['push'](_0x458091['shift']());}catch(_0x4d2c2a){_0x458091['push'](_0x458091['shift']());}}}(a183_0x3048,0xc91bc));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=[a183_0x5afed9(0xc1),a183_0x5afed9(0xbc),a183_0x5afed9(0xaa),a183_0x5afed9(0x9e),a183_0x5afed9(0xae)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a183_0x5afed9(0xad),a183_0x5afed9(0xaa),'format',a183_0x5afed9(0xc1),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a183_0x4b80(_0x537d70,_0x285104){_0x537d70=_0x537d70-0x98;const _0x3048f3=a183_0x3048();let _0x4b80ba=_0x3048f3[_0x537d70];return _0x4b80ba;}export function formatConfigKeyList(_0xd81866){const _0x5f257c=a183_0x5afed9;return[..._0xd81866][_0x5f257c(0x99)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xd63a84){return TOP_LEVEL_CONFIG_KEYS['has'](_0xd63a84);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3464ce=a183_0x5afed9;return _0x3464ce(0xa8)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x5afed9(0xad),'apiDir':a183_0x5afed9(0x9c),'cookie':a183_0x5afed9(0xc1),'accessKey':a183_0x5afed9(0xbc),'defaultFormat':'format','pageSize':a183_0x5afed9(0xa1),'riskLevel':a183_0x5afed9(0xae),'locale':a183_0x5afed9(0xaa)};export function getAppProfileFlagDefs(){const _0x5b3ed3=a183_0x5afed9;return[{'name':_0x5b3ed3(0xad),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0x9d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5b3ed3(0x9c),'type':_0x5b3ed3(0xbf),'description':'API\x20directory\x20path'},{'name':_0x5b3ed3(0xc1),'type':'string','description':_0x5b3ed3(0xba),'hidden':!![]},{'name':_0x5b3ed3(0xbc),'type':_0x5b3ed3(0xbf),'description':'Access\x20key','hidden':!![]},{'name':_0x5b3ed3(0xb4),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5b3ed3(0xa1),'type':'number','description':_0x5b3ed3(0xa6)},{'name':'riskLevel','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xb2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa4)}];}export function collectAppProfileOverrides(_0x589b13){const _0x234f28=a183_0x5afed9,_0x472343={};for(const [_0x3e977c,_0x21a3b9]of Object[_0x234f28(0xb0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x354e92=_0x589b13(_0x3e977c);if(!_0x354e92)continue;_0x472343[_0x21a3b9]=_0x21a3b9==='pageSize'?Number(_0x354e92):_0x354e92;}return _0x472343;}export function buildAppProfileListFields(_0x535095){const _0x1542d5=a183_0x5afed9;return{'env':_0x535095[_0x1542d5(0xad)]??null,'apiDir':_0x535095[_0x1542d5(0x9c)]??null,'hasCookie':!!_0x535095[_0x1542d5(0xc1)],'hasAccessKey':!!_0x535095[_0x1542d5(0xbc)],'format':_0x535095[_0x1542d5(0x9e)]??null,'pageSize':_0x535095['pageSize']??null,'riskLevel':_0x535095[_0x1542d5(0xae)]??null,'locale':_0x535095[_0x1542d5(0xaa)]??null};}export function buildAppDoctorFields(_0x13a729,_0x5b8bf2){const _0x3de744=a183_0x5afed9;return{'env':{'value':_0x13a729['env']||_0x5b8bf2[_0x3de744(0xad)],'source':_0x13a729['env']?_0x3de744(0xbb):'inherit'},'apiDir':{'value':_0x13a729[_0x3de744(0x9c)]||_0x5b8bf2[_0x3de744(0x9c)],'source':_0x13a729['apiDir']?_0x3de744(0xbb):_0x3de744(0xc0)},'cookie':{'value':_0x13a729['cookie']||_0x5b8bf2[_0x3de744(0xc1)],'source':_0x13a729['cookie']?'app':_0x3de744(0xc0)},'accessKey':{'value':_0x13a729[_0x3de744(0xbc)]||_0x5b8bf2[_0x3de744(0xbc)],'source':_0x13a729[_0x3de744(0xbc)]?_0x3de744(0xbb):_0x3de744(0xc0)}};}export function buildCanonicalAppConfig(_0x463b4d,_0x57db20){const _0xdca2fe=a183_0x5afed9,_0x5f59ee=_0x463b4d[_0xdca2fe(0x98)](_0x49a125=>String(_0x49a125||'')[_0xdca2fe(0xa9)]())[_0xdca2fe(0xb8)](Boolean);if(_0x5f59ee[_0xdca2fe(0xb3)]===0x0)return{};const _0x288778={};for(const _0x74a277 of _0x5f59ee){_0x288778[_0x74a277]=_0x57db20?{'appcode':_0x74a277,'env':_0x57db20}:{'appcode':_0x74a277};}return{'apps':_0x288778,'defaultApp':_0x5f59ee[0x0]};}export function buildCanonicalProjectConfig(_0x25cb8f,_0x49c742){const _0x1d4834=a183_0x5afed9,{appCodes:appCodes=[],env:_0x26749c,metadata:_0x297590}=_0x49c742,_0x30e7ed={..._0x25cb8f,..._0x297590||{}};delete _0x30e7ed[_0x1d4834(0x9a)],delete _0x30e7ed['app'];if(_0x26749c)_0x30e7ed[_0x1d4834(0xad)]=_0x26749c;else!_0x30e7ed[_0x1d4834(0xad)]&&(_0x30e7ed[_0x1d4834(0xad)]=DEFAULT_CONFIG_VALUES['env']);const _0x20fd72=buildCanonicalAppConfig(appCodes,_0x30e7ed[_0x1d4834(0xad)]);return Object[_0x1d4834(0xbd)](_0x20fd72)[_0x1d4834(0xb3)]>0x0&&(_0x30e7ed[_0x1d4834(0xa5)]=_0x20fd72['apps'],_0x30e7ed[_0x1d4834(0x9b)]=_0x20fd72['defaultApp']),_0x30e7ed;}function a183_0x3048(){const _0x2fe2e2=['length','defaultFormat','117UkgVwI','zh-CN','6YbNkZB','filter','648392OmfARg','Auth\x20cookie','app','accessKey','keys','15505700jHkUTM','string','inherit','cookie','map','join','appcode','defaultApp','apiDir','Target\x20environment','format','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize','1148134HWfkKa','208502NNZjsZ','Locale','apps','Default\x20page\x20size','toLowerCase','Config\x20key\x20(','trim','locale','8LFZvAW','3516085uzIHvS','env','riskLevel','1448468UOgBSw','entries','1837689CjhzAE','Risk\x20level'];a183_0x3048=function(){return _0x2fe2e2;};return a183_0x3048();}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a183_0x5afed9(0xb6),'zh_cn':'zh-CN','en':a183_0x5afed9(0x9f),'en-us':'en-US','en_us':a183_0x5afed9(0x9f)};export function normalizeLocale(_0x2b7b57){const _0x114de2=a183_0x5afed9;if(!_0x2b7b57)return null;return LOCALE_MAP[_0x2b7b57[_0x114de2(0xa7)]()]??null;}
1
+ const a183_0x1a6d76=a183_0x3701;(function(_0x258080,_0x4ccb44){const _0x5069ce=a183_0x3701,_0x2c3ed9=_0x258080();while(!![]){try{const _0x553862=parseInt(_0x5069ce(0x14d))/0x1*(parseInt(_0x5069ce(0x12d))/0x2)+-parseInt(_0x5069ce(0x13f))/0x3+-parseInt(_0x5069ce(0x146))/0x4+-parseInt(_0x5069ce(0x13d))/0x5*(-parseInt(_0x5069ce(0x149))/0x6)+-parseInt(_0x5069ce(0x12f))/0x7*(-parseInt(_0x5069ce(0x135))/0x8)+-parseInt(_0x5069ce(0x126))/0x9+parseInt(_0x5069ce(0x144))/0xa;if(_0x553862===_0x4ccb44)break;else _0x2c3ed9['push'](_0x2c3ed9['shift']());}catch(_0x8f9173){_0x2c3ed9['push'](_0x2c3ed9['shift']());}}}(a183_0xb505,0xf1873));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=[a183_0x1a6d76(0x131),a183_0x1a6d76(0x128),a183_0x1a6d76(0x137),a183_0x1a6d76(0x134),a183_0x1a6d76(0x139)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a183_0x1a6d76(0x14e),a183_0x1a6d76(0x12c),a183_0x1a6d76(0x137),a183_0x1a6d76(0x134),'cookie',a183_0x1a6d76(0x128),a183_0x1a6d76(0x13a)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x2d3ae1){const _0x1d2707=a183_0x1a6d76;return[..._0x2d3ae1][_0x1d2707(0x14b)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x56ec32){const _0xc58d3a=a183_0x1a6d76;return TOP_LEVEL_CONFIG_KEYS[_0xc58d3a(0x141)](_0x56ec32);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}function a183_0xb505(){const _0x4affe8=['length','10027458NukEXS','app','accessKey','trim','toLowerCase','entries','env','422RtXZPz','en-US','4515YxSHuJ','API\x20directory\x20path','cookie','Access\x20key','inherit','format','17496zeeNCV','zh-CN','locale','pageSize','riskLevel','apiDir','defaultApp','string','5rgpPvV','apps','5548020HNMzBH','Locale','has','number','keys','7734530Pcoitm','Risk\x20level','2453020ATsuAO','map','Auth\x20cookie','3985422hiswgy','Default\x20page\x20size','join','filter','8141ZzKVAl','appcode'];a183_0xb505=function(){return _0x4affe8;};return a183_0xb505();}function a183_0x3701(_0x536adf,_0x39098c){_0x536adf=_0x536adf-0x126;const _0xb5057d=a183_0xb505();let _0x370168=_0xb5057d[_0x536adf];return _0x370168;}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x1a6d76(0x12c),'apiDir':a183_0x1a6d76(0x13a),'cookie':'cookie','accessKey':'accessKey','defaultFormat':a183_0x1a6d76(0x134),'pageSize':a183_0x1a6d76(0x138),'riskLevel':a183_0x1a6d76(0x139),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x48e232=a183_0x1a6d76;return[{'name':'env','type':_0x48e232(0x13c),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x48e232(0x13c),'description':_0x48e232(0x130)},{'name':_0x48e232(0x131),'type':'string','description':_0x48e232(0x148),'hidden':!![]},{'name':_0x48e232(0x128),'type':_0x48e232(0x13c),'description':_0x48e232(0x132),'hidden':!![]},{'name':'defaultFormat','type':_0x48e232(0x13c),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x48e232(0x142),'description':_0x48e232(0x14a)},{'name':_0x48e232(0x139),'type':_0x48e232(0x13c),'description':_0x48e232(0x145),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x48e232(0x137),'type':'string','description':_0x48e232(0x140)}];}export function collectAppProfileOverrides(_0x529886){const _0x32a90f=a183_0x1a6d76,_0x5797dc={};for(const [_0x472055,_0x1bcbcf]of Object[_0x32a90f(0x12b)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2234d5=_0x529886(_0x472055);if(!_0x2234d5)continue;_0x5797dc[_0x1bcbcf]=_0x1bcbcf==='pageSize'?Number(_0x2234d5):_0x2234d5;}return _0x5797dc;}export function buildAppProfileListFields(_0x7efc78){const _0x28ba5f=a183_0x1a6d76;return{'env':_0x7efc78[_0x28ba5f(0x12c)]??null,'apiDir':_0x7efc78[_0x28ba5f(0x13a)]??null,'hasCookie':!!_0x7efc78[_0x28ba5f(0x131)],'hasAccessKey':!!_0x7efc78[_0x28ba5f(0x128)],'format':_0x7efc78['format']??null,'pageSize':_0x7efc78[_0x28ba5f(0x138)]??null,'riskLevel':_0x7efc78['riskLevel']??null,'locale':_0x7efc78[_0x28ba5f(0x137)]??null};}export function buildAppDoctorFields(_0x19f20a,_0x32a92e){const _0x4bfe5b=a183_0x1a6d76;return{'env':{'value':_0x19f20a['env']||_0x32a92e['env'],'source':_0x19f20a['env']?_0x4bfe5b(0x127):'inherit'},'apiDir':{'value':_0x19f20a['apiDir']||_0x32a92e[_0x4bfe5b(0x13a)],'source':_0x19f20a[_0x4bfe5b(0x13a)]?_0x4bfe5b(0x127):_0x4bfe5b(0x133)},'cookie':{'value':_0x19f20a[_0x4bfe5b(0x131)]||_0x32a92e[_0x4bfe5b(0x131)],'source':_0x19f20a[_0x4bfe5b(0x131)]?_0x4bfe5b(0x127):'inherit'},'accessKey':{'value':_0x19f20a[_0x4bfe5b(0x128)]||_0x32a92e[_0x4bfe5b(0x128)],'source':_0x19f20a[_0x4bfe5b(0x128)]?_0x4bfe5b(0x127):'inherit'}};}export function buildCanonicalAppConfig(_0x34ee98,_0xf66008){const _0x17e758=a183_0x1a6d76,_0x1daaf7=_0x34ee98[_0x17e758(0x147)](_0x473c5a=>String(_0x473c5a||'')[_0x17e758(0x129)]())[_0x17e758(0x14c)](Boolean);if(_0x1daaf7[_0x17e758(0x14f)]===0x0)return{};const _0x3b67f3={};for(const _0x1d8cb4 of _0x1daaf7){_0x3b67f3[_0x1d8cb4]=_0xf66008?{'appcode':_0x1d8cb4,'env':_0xf66008}:{'appcode':_0x1d8cb4};}return{'apps':_0x3b67f3,'defaultApp':_0x1daaf7[0x0]};}export function buildCanonicalProjectConfig(_0x175567,_0x283045){const _0xd68321=a183_0x1a6d76,{appCodes:appCodes=[],env:_0x3f36e3,metadata:_0x2bf913}=_0x283045,_0x213c0e={..._0x175567,..._0x2bf913||{}};delete _0x213c0e['appcode'],delete _0x213c0e[_0xd68321(0x127)];if(_0x3f36e3)_0x213c0e[_0xd68321(0x12c)]=_0x3f36e3;else!_0x213c0e[_0xd68321(0x12c)]&&(_0x213c0e[_0xd68321(0x12c)]=DEFAULT_CONFIG_VALUES[_0xd68321(0x12c)]);const _0x4d8896=buildCanonicalAppConfig(appCodes,_0x213c0e[_0xd68321(0x12c)]);return Object[_0xd68321(0x143)](_0x4d8896)[_0xd68321(0x14f)]>0x0&&(_0x213c0e[_0xd68321(0x13e)]=_0x4d8896['apps'],_0x213c0e['defaultApp']=_0x4d8896[_0xd68321(0x13b)]),_0x213c0e;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a183_0x1a6d76(0x136),'en':a183_0x1a6d76(0x12e),'en-us':a183_0x1a6d76(0x12e),'en_us':a183_0x1a6d76(0x12e)};export function normalizeLocale(_0x1a53c3){const _0x5a04bc=a183_0x1a6d76;if(!_0x1a53c3)return null;return LOCALE_MAP[_0x1a53c3[_0x5a04bc(0x12a)]()]??null;}
@@ -1 +1 @@
1
- const a184_0x36954b=a184_0x14e8;function a184_0x25c1(){const _0x58b45d=['https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','55170JQwRzM','472pIcUfc','1671816bHckRl','905FdNvnh','1169651qIhicx','4044260PEUltC','289866SpoYxL','306qMStgx','909GqcOfq','13362sRFxHA'];a184_0x25c1=function(){return _0x58b45d;};return a184_0x25c1();}function a184_0x14e8(_0x320869,_0xc8feef){_0x320869=_0x320869-0x1a2;const _0x25c1e1=a184_0x25c1();let _0x14e86f=_0x25c1e1[_0x320869];return _0x14e86f;}(function(_0x519f44,_0x87542f){const _0x21d06b=a184_0x14e8,_0x54eba2=_0x519f44();while(!![]){try{const _0x378658=parseInt(_0x21d06b(0x1aa))/0x1+parseInt(_0x21d06b(0x1ab))/0x2*(parseInt(_0x21d06b(0x1ac))/0x3)+parseInt(_0x21d06b(0x1a6))/0x4+-parseInt(_0x21d06b(0x1a7))/0x5*(-parseInt(_0x21d06b(0x1a2))/0x6)+-parseInt(_0x21d06b(0x1a8))/0x7+parseInt(_0x21d06b(0x1a5))/0x8*(-parseInt(_0x21d06b(0x1a4))/0x9)+-parseInt(_0x21d06b(0x1a9))/0xa;if(_0x378658===_0x87542f)break;else _0x54eba2['push'](_0x54eba2['shift']());}catch(_0x51fb1b){_0x54eba2['push'](_0x54eba2['shift']());}}}(a184_0x25c1,0x36b4d));export const CLI_VERSION_POLICY_URL=a184_0x36954b(0x1a3);
1
+ function a184_0x4378(_0x36e225,_0x477295){_0x36e225=_0x36e225-0x104;const _0x3a78a0=a184_0x3a78();let _0x43787e=_0x3a78a0[_0x36e225];return _0x43787e;}const a184_0x4ec703=a184_0x4378;(function(_0x440fcf,_0x178274){const _0x319e2b=a184_0x4378,_0x3d36a6=_0x440fcf();while(!![]){try{const _0x767de8=-parseInt(_0x319e2b(0x111))/0x1*(-parseInt(_0x319e2b(0x10b))/0x2)+parseInt(_0x319e2b(0x10d))/0x3*(parseInt(_0x319e2b(0x10c))/0x4)+-parseInt(_0x319e2b(0x106))/0x5*(-parseInt(_0x319e2b(0x110))/0x6)+parseInt(_0x319e2b(0x109))/0x7+-parseInt(_0x319e2b(0x10f))/0x8*(parseInt(_0x319e2b(0x104))/0x9)+parseInt(_0x319e2b(0x107))/0xa*(-parseInt(_0x319e2b(0x108))/0xb)+parseInt(_0x319e2b(0x105))/0xc*(parseInt(_0x319e2b(0x10a))/0xd);if(_0x767de8===_0x178274)break;else _0x3d36a6['push'](_0x3d36a6['shift']());}catch(_0x1d5d95){_0x3d36a6['push'](_0x3d36a6['shift']());}}}(a184_0x3a78,0x8ac15));function a184_0x3a78(){const _0x59ccf0=['24lnHuNE','42zbtzdg','88091xlmEdY','2010861gUNJqq','3481080yaipao','515340VHuDsZ','10DrJFQT','11004961ctcEAD','2617419XrWyUQ','26eZckLA','2DJwQIF','20pvQFNI','285249nvVgDT','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json'];a184_0x3a78=function(){return _0x59ccf0;};return a184_0x3a78();}export const CLI_VERSION_POLICY_URL=a184_0x4ec703(0x10e);
@@ -1 +1 @@
1
- function a185_0x3ad6(){const _0x5e3c91=['code','sort','sqlName','Name','pagesize','18uiTaoE','Use\x20project\x20config\x20scope','Force\x20non-interactive\x20mode\x20(CI)','menuIds','Reveal\x20sensitive\x20value','Environment','Target\x20path','6314910hZjooC','map','Apply\x20to\x20all','format','3332755EiutjN','Force\x20overwrite','DB\x20ID','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20environment\x20variable','SQL\x20name','dbid','string','sql','8075344WKAClp','clear','key','Output\x20format','description','Menu\x20label','global','fromEnv','non-interactive','sql-name','Override\x20appcode','title','sqlname','operation-type','meowKey','Alias\x20for\x20--non-interactive','schemas','<expr>','parentId','page','Enable\x20BFF\x20save','help','from-env','expected-count','Page\x20number','tags','442288RPrelE','Watch\x20mode','expectParentId','file','project','Type\x20filter','Dataset\x20code','Page\x20size','Select\x20app\x20profile\x20by\x20name','production\x20|\x20daily','Keyword\x20filter','Code\x20filter','json\x20|\x20pretty\x20|\x20compress','boolean','1490282cJNQCZ','expected-children-count','Skip\x20import\x20generation','Menu\x20sort\x20value','operationType','expectedCount','Expected\x20affected\x20count','Operation\x20type','Schemas','enable-bff-save','keyword','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','Show\x20help','remote','target','rabetbase','Asynchronous\x20task\x20ID','<code>','Verbose\x20output','dryRun','SQL\x20code','parent-id','expect-parent-id','watch','@lovrabet/rabetbase-cli','value','expectPath','function-node','Expected\x20current\x20menu\x20path','1347857LgCDiQ','fromEntries','dbId','nonInteractive','yes','stdin','app','description-file','type','reveal','datasetcode','File\x20path','Title','Config\x20value','Expected\x20current\x20parent\x20menu\x20id','params','Tags','Output\x20path','JSON\x20params','Function\x20node','Clear','SQL\x20string','appcode','dry-run','confirm','output','label','skip-imports','Preview\x20operation\x20without\x20executing','sqlcode','verbose','env','name','60906gNFTCQ','Description\x20file','172wRqMGS','all','db-id'];a185_0x3ad6=function(){return _0x5e3c91;};return a185_0x3ad6();}const a185_0x4529ff=a185_0x3327;(function(_0x1a6dd7,_0x37597b){const _0x541947=a185_0x3327,_0x5939a2=_0x1a6dd7();while(!![]){try{const _0x1cbbd9=-parseInt(_0x541947(0xf7))/0x1+-parseInt(_0x541947(0x80))/0x2+-parseInt(_0x541947(0xbf))/0x3*(parseInt(_0x541947(0xc1))/0x4)+-parseInt(_0x541947(0xd4))/0x5+parseInt(_0x541947(0xd0))/0x6+parseInt(_0x541947(0x9e))/0x7+parseInt(_0x541947(0xdd))/0x8*(parseInt(_0x541947(0xc9))/0x9);if(_0x1cbbd9===_0x37597b)break;else _0x5939a2['push'](_0x5939a2['shift']());}catch(_0x5cf2ee){_0x5939a2['push'](_0x5939a2['shift']());}}}(a185_0x3ad6,0x8314a));export const CLI_BIN_NAME=a185_0x4529ff(0x90);function a185_0x3327(_0x546971,_0x3a444a){_0x546971=_0x546971-0x7c;const _0x3ad6fe=a185_0x3ad6();let _0x332798=_0x3ad6fe[_0x546971];return _0x332798;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x4529ff(0x99);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a185_0x4529ff(0xb4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe7),'hint':a185_0x4529ff(0x92)},{'name':a185_0x4529ff(0xa4),'meowKey':'app','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xff),'hint':'<name>'},{'name':a185_0x4529ff(0xbd),'meowKey':a185_0x4529ff(0xbd),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xce),'hint':a185_0x4529ff(0x100)},{'name':'format','meowKey':a185_0x4529ff(0xd3),'type':'string','description':a185_0x4529ff(0xe0),'hint':a185_0x4529ff(0x7e)},{'name':'jq','meowKey':'jq','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd7),'hint':a185_0x4529ff(0xee)},{'name':a185_0x4529ff(0xb5),'meowKey':a185_0x4529ff(0x94),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xba)},{'name':a185_0x4529ff(0xa2),'meowKey':a185_0x4529ff(0xa2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8b)},{'name':a185_0x4529ff(0xe5),'meowKey':a185_0x4529ff(0xa1),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcb)},{'name':a185_0x4529ff(0xe3),'meowKey':a185_0x4529ff(0xe3),'type':a185_0x4529ff(0x7f),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a185_0x4529ff(0xfb),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xca)},{'name':'ci','meowKey':'ci','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xec),'hidden':!![]},{'name':a185_0x4529ff(0xf2),'meowKey':'help','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8d)},{'name':a185_0x4529ff(0xbe),'meowKey':a185_0x4529ff(0xbe),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc7),'hidden':!![]},{'name':a185_0x4529ff(0xe8),'meowKey':a185_0x4529ff(0xe8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xaa),'hidden':!![]},{'name':a185_0x4529ff(0xde),'meowKey':a185_0x4529ff(0xde),'type':'boolean','description':a185_0x4529ff(0xb2),'hidden':!![]},{'name':a185_0x4529ff(0x98),'meowKey':a185_0x4529ff(0x98),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf8),'hidden':!![]},{'name':'output','meowKey':a185_0x4529ff(0xb7),'type':'string','description':a185_0x4529ff(0xaf),'hidden':!![]},{'name':a185_0x4529ff(0xad),'meowKey':a185_0x4529ff(0xad),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb0),'hidden':!![]},{'name':a185_0x4529ff(0xa8),'meowKey':'datasetcode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfd),'hidden':!![]},{'name':'all','meowKey':a185_0x4529ff(0xc2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd2),'hidden':!![]},{'name':a185_0x4529ff(0x89),'meowKey':'enableBffSave','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf1),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x4529ff(0xdb),'description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x4529ff(0xa6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfc),'hidden':!![]},{'name':a185_0x4529ff(0xfa),'meowKey':a185_0x4529ff(0xfa),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xa9),'hidden':!![]},{'name':a185_0x4529ff(0xbb),'meowKey':a185_0x4529ff(0xbb),'type':'string','description':a185_0x4529ff(0x95),'hidden':!![]},{'name':a185_0x4529ff(0xe6),'meowKey':a185_0x4529ff(0xc6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xe9),'meowKey':a185_0x4529ff(0xe9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xc3),'meowKey':a185_0x4529ff(0xa0),'type':a185_0x4529ff(0xdb),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x4529ff(0xda),'meowKey':a185_0x4529ff(0xda),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd6),'hidden':!![]},{'name':'description','meowKey':a185_0x4529ff(0xe1),'type':a185_0x4529ff(0xdb),'description':'Description','hidden':!![]},{'name':a185_0x4529ff(0xa5),'meowKey':'descriptionFile','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc0),'hidden':!![]},{'name':'page','meowKey':a185_0x4529ff(0xf0),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xf5),'hidden':!![]},{'name':a185_0x4529ff(0xc8),'meowKey':a185_0x4529ff(0xc8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfe),'hidden':!![]},{'name':a185_0x4529ff(0x8a),'meowKey':a185_0x4529ff(0x8a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7c),'hidden':!![]},{'name':a185_0x4529ff(0xc4),'meowKey':'code','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7d),'hidden':!![]},{'name':'sql','meowKey':a185_0x4529ff(0xdc),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb3),'hidden':!![]},{'name':a185_0x4529ff(0xed),'meowKey':a185_0x4529ff(0xed),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x88),'hidden':!![]},{'name':'operation','meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a185_0x4529ff(0x8f),'meowKey':'target','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xcf),'hidden':!![]},{'name':a185_0x4529ff(0xb9),'meowKey':'skipImports','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x82),'hidden':!![]},{'name':'key','meowKey':a185_0x4529ff(0xdf),'type':a185_0x4529ff(0xdb),'description':'Config\x20key','hidden':!![]},{'name':a185_0x4529ff(0x9a),'meowKey':a185_0x4529ff(0x9a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xab),'hidden':!![]},{'name':'tags','meowKey':a185_0x4529ff(0xf6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xae),'hidden':!![]},{'name':a185_0x4529ff(0xa3),'meowKey':a185_0x4529ff(0xa3),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a185_0x4529ff(0xf3),'meowKey':a185_0x4529ff(0xe4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd8),'hidden':!![]},{'name':a185_0x4529ff(0xa7),'meowKey':a185_0x4529ff(0xa7),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcd),'hidden':!![]},{'name':a185_0x4529ff(0x8c),'meowKey':a185_0x4529ff(0x8c),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd5),'hidden':!![]},{'name':a185_0x4529ff(0xb6),'meowKey':'confirm','type':a185_0x4529ff(0x7f),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x4529ff(0x8e),'meowKey':a185_0x4529ff(0x8e),'type':a185_0x4529ff(0x7f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x4529ff(0xbc),'meowKey':a185_0x4529ff(0xbc),'type':'boolean','description':a185_0x4529ff(0x93),'hidden':!![]},{'name':a185_0x4529ff(0xf4),'meowKey':a185_0x4529ff(0x85),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x86),'hidden':!![]},{'name':'label','meowKey':a185_0x4529ff(0xb8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe2),'hidden':!![]},{'name':a185_0x4529ff(0x96),'meowKey':a185_0x4529ff(0xef),'type':a185_0x4529ff(0xdb),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x4529ff(0xc5),'meowKey':a185_0x4529ff(0xc5),'type':'string','description':a185_0x4529ff(0x83),'hidden':!![]},{'name':a185_0x4529ff(0x97),'meowKey':a185_0x4529ff(0xf9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xac),'hidden':!![]},{'name':'expect-path','meowKey':a185_0x4529ff(0x9b),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x9d),'hidden':!![]},{'name':a185_0x4529ff(0x81),'meowKey':'expectedChildrenCount','type':a185_0x4529ff(0xdb),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a185_0x4529ff(0xcc),'type':a185_0x4529ff(0xdb),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x91),'hidden':!![]},{'name':a185_0x4529ff(0xea),'meowKey':a185_0x4529ff(0x84),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x87),'hidden':!![]},{'name':a185_0x4529ff(0x9c),'meowKey':'functionNode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x4529ff(0xb4),a185_0x4529ff(0xa4),a185_0x4529ff(0xbd),a185_0x4529ff(0xd3),'jq','dry-run','yes',a185_0x4529ff(0xe5),'ci']);export function buildMeowFlags(){const _0x5b6750=a185_0x4529ff;return Object[_0x5b6750(0x9f)](GLOBAL_FLAGS[_0x5b6750(0xd1)](_0x424313=>[_0x424313[_0x5b6750(0xeb)],{'type':_0x424313[_0x5b6750(0xa6)]}]));}
1
+ const a185_0x840f5b=a185_0xc3b2;(function(_0x2bff7c,_0xf3a5cf){const _0x1ed510=a185_0xc3b2,_0x5368aa=_0x2bff7c();while(!![]){try{const _0x2bec71=-parseInt(_0x1ed510(0x178))/0x1*(-parseInt(_0x1ed510(0x16a))/0x2)+-parseInt(_0x1ed510(0x149))/0x3+-parseInt(_0x1ed510(0x146))/0x4+-parseInt(_0x1ed510(0x130))/0x5+-parseInt(_0x1ed510(0x188))/0x6*(-parseInt(_0x1ed510(0x12c))/0x7)+parseInt(_0x1ed510(0x19a))/0x8+parseInt(_0x1ed510(0x176))/0x9;if(_0x2bec71===_0xf3a5cf)break;else _0x5368aa['push'](_0x5368aa['shift']());}catch(_0x13bd3a){_0x5368aa['push'](_0x5368aa['shift']());}}}(a185_0x4e1d,0xbbe5b));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a185_0x840f5b(0x162);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a185_0xc3b2(_0x55e440,_0x4a1b7e){_0x55e440=_0x55e440-0x11b;const _0x4e1d06=a185_0x4e1d();let _0xc3b225=_0x4e1d06[_0x55e440];return _0xc3b225;}export const GLOBAL_FLAGS=[{'name':a185_0x840f5b(0x180),'meowKey':a185_0x840f5b(0x180),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x17b),'hint':a185_0x840f5b(0x167)},{'name':a185_0x840f5b(0x192),'meowKey':'app','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x173),'hint':'<name>'},{'name':a185_0x840f5b(0x168),'meowKey':a185_0x840f5b(0x168),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x148),'hint':a185_0x840f5b(0x156)},{'name':a185_0x840f5b(0x174),'meowKey':a185_0x840f5b(0x174),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x16b),'hint':a185_0x840f5b(0x171)},{'name':'jq','meowKey':'jq','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x134),'hint':a185_0x840f5b(0x19b)},{'name':'dry-run','meowKey':a185_0x840f5b(0x138),'type':a185_0x840f5b(0x16e),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a185_0x840f5b(0x12e),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x17a)},{'name':a185_0x840f5b(0x191),'meowKey':a185_0x840f5b(0x14b),'type':'boolean','description':a185_0x840f5b(0x195)},{'name':a185_0x840f5b(0x11b),'meowKey':a185_0x840f5b(0x11b),'type':a185_0x840f5b(0x16e),'description':'Use\x20global\x20config\x20scope'},{'name':a185_0x840f5b(0x12f),'meowKey':'project','type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x137)},{'name':'ci','meowKey':'ci','type':'boolean','description':a185_0x840f5b(0x198),'hidden':!![]},{'name':'help','meowKey':'help','type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x124)},{'name':a185_0x840f5b(0x172),'meowKey':a185_0x840f5b(0x172),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x133),'hidden':!![]},{'name':'title','meowKey':a185_0x840f5b(0x177),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x185),'hidden':!![]},{'name':a185_0x840f5b(0x18f),'meowKey':a185_0x840f5b(0x18f),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x14d),'hidden':!![]},{'name':a185_0x840f5b(0x18d),'meowKey':a185_0x840f5b(0x18d),'type':'boolean','description':a185_0x840f5b(0x189),'hidden':!![]},{'name':a185_0x840f5b(0x18a),'meowKey':a185_0x840f5b(0x18a),'type':'string','description':a185_0x840f5b(0x14f),'hidden':!![]},{'name':a185_0x840f5b(0x150),'meowKey':a185_0x840f5b(0x150),'type':'string','description':a185_0x840f5b(0x128),'hidden':!![]},{'name':a185_0x840f5b(0x182),'meowKey':a185_0x840f5b(0x182),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x144),'hidden':!![]},{'name':a185_0x840f5b(0x135),'meowKey':a185_0x840f5b(0x135),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x15a),'hidden':!![]},{'name':a185_0x840f5b(0x141),'meowKey':a185_0x840f5b(0x15d),'type':a185_0x840f5b(0x16e),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x194),'hidden':!![]},{'name':a185_0x840f5b(0x17f),'meowKey':a185_0x840f5b(0x17f),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x123),'hidden':!![]},{'name':a185_0x840f5b(0x11f),'meowKey':'file','type':'string','description':a185_0x840f5b(0x170),'hidden':!![]},{'name':a185_0x840f5b(0x190),'meowKey':a185_0x840f5b(0x190),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x15e),'hidden':!![]},{'name':a185_0x840f5b(0x16f),'meowKey':'sqlName','type':a185_0x840f5b(0x155),'description':'SQL\x20name','hidden':!![]},{'name':a185_0x840f5b(0x136),'meowKey':a185_0x840f5b(0x136),'type':a185_0x840f5b(0x155),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a185_0x840f5b(0x13f),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x13b),'hidden':!![]},{'name':'dbid','meowKey':'dbid','type':a185_0x840f5b(0x155),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x840f5b(0x199),'meowKey':a185_0x840f5b(0x199),'type':'string','description':a185_0x840f5b(0x166),'hidden':!![]},{'name':a185_0x840f5b(0x11e),'meowKey':a185_0x840f5b(0x17e),'type':'string','description':'Description\x20file','hidden':!![]},{'name':a185_0x840f5b(0x13e),'meowKey':a185_0x840f5b(0x13e),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x160),'hidden':!![]},{'name':'pagesize','meowKey':a185_0x840f5b(0x18e),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x13a),'hidden':!![]},{'name':a185_0x840f5b(0x121),'meowKey':a185_0x840f5b(0x121),'type':'string','description':a185_0x840f5b(0x18b),'hidden':!![]},{'name':a185_0x840f5b(0x151),'meowKey':a185_0x840f5b(0x151),'type':a185_0x840f5b(0x155),'description':'Code\x20filter','hidden':!![]},{'name':a185_0x840f5b(0x15f),'meowKey':a185_0x840f5b(0x15f),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x131),'hidden':!![]},{'name':a185_0x840f5b(0x154),'meowKey':'schemas','type':'string','description':a185_0x840f5b(0x169),'hidden':!![]},{'name':'operation','meowKey':a185_0x840f5b(0x158),'type':a185_0x840f5b(0x155),'description':'Operation\x20type','hidden':!![]},{'name':a185_0x840f5b(0x183),'meowKey':a185_0x840f5b(0x183),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x142),'hidden':!![]},{'name':a185_0x840f5b(0x13d),'meowKey':a185_0x840f5b(0x152),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x16c),'hidden':!![]},{'name':a185_0x840f5b(0x127),'meowKey':'key','type':'string','description':a185_0x840f5b(0x139),'hidden':!![]},{'name':a185_0x840f5b(0x140),'meowKey':'value','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x163),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x145),'hidden':!![]},{'name':a185_0x840f5b(0x132),'meowKey':a185_0x840f5b(0x132),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a185_0x840f5b(0x181),'type':'string','description':a185_0x840f5b(0x17d),'hidden':!![]},{'name':a185_0x840f5b(0x12d),'meowKey':'reveal','type':'boolean','description':a185_0x840f5b(0x19c),'hidden':!![]},{'name':a185_0x840f5b(0x129),'meowKey':a185_0x840f5b(0x129),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x125),'hidden':!![]},{'name':'confirm','meowKey':a185_0x840f5b(0x11d),'type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x179),'hidden':!![]},{'name':a185_0x840f5b(0x13c),'meowKey':a185_0x840f5b(0x13c),'type':a185_0x840f5b(0x16e),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x840f5b(0x184),'meowKey':'verbose','type':a185_0x840f5b(0x16e),'description':a185_0x840f5b(0x159),'hidden':!![]},{'name':a185_0x840f5b(0x196),'meowKey':'expectedCount','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x120),'hidden':!![]},{'name':a185_0x840f5b(0x143),'meowKey':a185_0x840f5b(0x143),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a185_0x840f5b(0x15b),'meowKey':a185_0x840f5b(0x17c),'type':'string','description':a185_0x840f5b(0x14e),'hidden':!![]},{'name':a185_0x840f5b(0x12a),'meowKey':a185_0x840f5b(0x12a),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x157),'hidden':!![]},{'name':a185_0x840f5b(0x15c),'meowKey':a185_0x840f5b(0x165),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x18c),'hidden':!![]},{'name':a185_0x840f5b(0x161),'meowKey':a185_0x840f5b(0x122),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x193),'hidden':!![]},{'name':a185_0x840f5b(0x197),'meowKey':'expectedChildrenCount','type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x153),'hidden':!![]},{'name':'menu-ids','meowKey':a185_0x840f5b(0x11c),'type':'string','description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a185_0x840f5b(0x126),'type':a185_0x840f5b(0x155),'description':a185_0x840f5b(0x16d),'hidden':!![]},{'name':a185_0x840f5b(0x14a),'meowKey':a185_0x840f5b(0x175),'type':'string','description':a185_0x840f5b(0x12b),'hidden':!![]},{'name':'function-node','meowKey':a185_0x840f5b(0x147),'type':'string','description':a185_0x840f5b(0x14c),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a185_0x840f5b(0x192),a185_0x840f5b(0x168),a185_0x840f5b(0x174),'jq',a185_0x840f5b(0x187),a185_0x840f5b(0x12e),a185_0x840f5b(0x191),'ci']);export function buildMeowFlags(){const _0x52e8c8=a185_0x840f5b;return Object['fromEntries'](GLOBAL_FLAGS[_0x52e8c8(0x164)](_0x33af9d=>[_0x33af9d[_0x52e8c8(0x186)],{'type':_0x33af9d[_0x52e8c8(0x17f)]}]));}function a185_0x4e1d(){const _0x147401=['Clear','Parent\x20menu\x20id','Output\x20path','params','code','skipImports','Expected\x20current\x20child\x20count','schemas','string','production\x20|\x20daily','Menu\x20sort\x20value','operation','Verbose\x20output','Apply\x20to\x20all','parent-id','expect-parent-id','enableBffSave','SQL\x20code','sql','Page\x20number','expect-path','Rabetbase\x20CLI','Config\x20value','map','expectParentId','Description','<code>','env','Schemas','1522olmhYK','Output\x20format','Skip\x20import\x20generation','Asynchronous\x20task\x20ID','boolean','sql-name','File\x20path','json\x20|\x20pretty\x20|\x20compress','name','Select\x20app\x20profile\x20by\x20name','format','operationType','12543201nVNzal','title','1583azfpUP','Confirm\x20destructive\x20action','Skip\x20confirmation\x20for\x20high-risk\x20writes','Override\x20appcode','parentId','Read\x20value\x20from\x20environment\x20variable','descriptionFile','type','appcode','fromEnv','datasetcode','target','verbose','Title','meowKey','dry-run','5334zboTpH','Watch\x20mode','output','Keyword\x20filter','Expected\x20current\x20parent\x20menu\x20id','watch','pagesize','clear','sqlcode','non-interactive','app','Expected\x20current\x20menu\x20path','Record\x20ID','Force\x20non-interactive\x20mode\x20(CI)','expected-count','expected-children-count','Alias\x20for\x20--non-interactive','description','2222880kVOSLf','<expr>','Reveal\x20sensitive\x20value','global','menuIds','confirm','description-file','file','Expected\x20affected\x20count','keyword','expectPath','Type\x20filter','Show\x20help','Force\x20overwrite','taskId','key','JSON\x20params','force','sort','Operation\x20type','10367xTeoUD','reveal','yes','project','3440215dDcfmo','SQL\x20string','stdin','Name','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','all','sqlname','Use\x20project\x20config\x20scope','dryRun','Config\x20key','Page\x20size','DB\x20ID','remote','skip-imports','page','dbId','value','enable-bff-save','Target\x20path','label','Dataset\x20code','Tags','5157352wIexHk','functionNode','Environment','4337439RSHWTn','operation-type','nonInteractive','Function\x20node'];a185_0x4e1d=function(){return _0x147401;};return a185_0x4e1d();}
@@ -1 +1 @@
1
- const a186_0x37c05a=a186_0x4f2a;(function(_0x1463a8,_0x24bfdc){const _0x496d2f=a186_0x4f2a,_0x3ec22e=_0x1463a8();while(!![]){try{const _0x57f157=parseInt(_0x496d2f(0x13d))/0x1*(-parseInt(_0x496d2f(0x137))/0x2)+-parseInt(_0x496d2f(0x136))/0x3*(-parseInt(_0x496d2f(0x13e))/0x4)+-parseInt(_0x496d2f(0x135))/0x5*(parseInt(_0x496d2f(0x13a))/0x6)+parseInt(_0x496d2f(0x13b))/0x7*(-parseInt(_0x496d2f(0x132))/0x8)+-parseInt(_0x496d2f(0x133))/0x9*(parseInt(_0x496d2f(0x13c))/0xa)+parseInt(_0x496d2f(0x139))/0xb*(-parseInt(_0x496d2f(0x140))/0xc)+parseInt(_0x496d2f(0x141))/0xd*(parseInt(_0x496d2f(0x13f))/0xe);if(_0x57f157===_0x24bfdc)break;else _0x3ec22e['push'](_0x3ec22e['shift']());}catch(_0x4ae05a){_0x3ec22e['push'](_0x3ec22e['shift']());}}}(a186_0x1e14,0xbebfc));function a186_0x1e14(){const _0x27699c=['80SzonNt','372ofFVwg','6TeisqM','compress','253AktxUQ','253398eLIKiG','107807nbTJch','30860JZyDsI','115113ueNcSs','2452IQFqUt','121912kRsOoT','388536XirLra','5356lgsHmG','136xCsqQm','2493LNrifU','en-US'];a186_0x1e14=function(){return _0x27699c;};return a186_0x1e14();}function a186_0x4f2a(_0xc5dcf2,_0x27d370){_0xc5dcf2=_0xc5dcf2-0x132;const _0x1e14eb=a186_0x1e14();let _0x4f2aaf=_0x1e14eb[_0xc5dcf2];return _0x4f2aaf;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a186_0x37c05a(0x138),'locale':a186_0x37c05a(0x134),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x37c05a(0x138);
1
+ const a186_0x3ac461=a186_0x28c8;function a186_0x28c8(_0x286f35,_0x20f18b){_0x286f35=_0x286f35-0xf1;const _0x5e6d21=a186_0x5e6d();let _0x28c8d7=_0x5e6d21[_0x286f35];return _0x28c8d7;}(function(_0x54b46e,_0x31a4c8){const _0x24f2cf=a186_0x28c8,_0x1cfd44=_0x54b46e();while(!![]){try{const _0xba91a8=-parseInt(_0x24f2cf(0xf4))/0x1*(parseInt(_0x24f2cf(0xf8))/0x2)+parseInt(_0x24f2cf(0xf5))/0x3+parseInt(_0x24f2cf(0xf3))/0x4+-parseInt(_0x24f2cf(0xfd))/0x5*(parseInt(_0x24f2cf(0xfa))/0x6)+-parseInt(_0x24f2cf(0xf7))/0x7+-parseInt(_0x24f2cf(0xf1))/0x8+parseInt(_0x24f2cf(0xfe))/0x9*(parseInt(_0x24f2cf(0xfc))/0xa);if(_0xba91a8===_0x31a4c8)break;else _0x1cfd44['push'](_0x1cfd44['shift']());}catch(_0x326ec8){_0x1cfd44['push'](_0x1cfd44['shift']());}}}(a186_0x5e6d,0xa008e));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a186_0x3ac461(0xf9),'format':a186_0x3ac461(0xf2),'locale':a186_0x3ac461(0xfb),'riskLevel':a186_0x3ac461(0xf6),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x3ac461(0xf2);function a186_0x5e6d(){const _0x1e3eaf=['16402563vOkAXQ','6282304qDQNaR','compress','2004176opmjlr','89fADNGz','2893857pkdUcT','high-risk-write','6649223CPWnNC','6074RuFsbH','production','342108yarnue','en-US','10tFWifY','55ScNMYH'];a186_0x5e6d=function(){return _0x1e3eaf;};return a186_0x5e6d();}
@@ -1 +1 @@
1
- const a187_0x255935=a187_0x317b;(function(_0x590a2f,_0xc4f44a){const _0x49a0b5=a187_0x317b,_0x3ade09=_0x590a2f();while(!![]){try{const _0x42a9c3=-parseInt(_0x49a0b5(0x178))/0x1*(parseInt(_0x49a0b5(0x16c))/0x2)+-parseInt(_0x49a0b5(0x17c))/0x3+-parseInt(_0x49a0b5(0x175))/0x4+parseInt(_0x49a0b5(0x181))/0x5+parseInt(_0x49a0b5(0x17d))/0x6*(parseInt(_0x49a0b5(0x16e))/0x7)+parseInt(_0x49a0b5(0x16f))/0x8+-parseInt(_0x49a0b5(0x179))/0x9;if(_0x42a9c3===_0xc4f44a)break;else _0x3ade09['push'](_0x3ade09['shift']());}catch(_0x30004d){_0x3ade09['push'](_0x3ade09['shift']());}}}(a187_0x276f,0x4cf83));import{getEnv,isProduction}from'../constant/env.js';function a187_0x317b(_0x43d5f3,_0x3ee912){_0x43d5f3=_0x43d5f3-0x16c;const _0x276f76=a187_0x276f();let _0x317bc1=_0x276f76[_0x43d5f3];return _0x317bc1;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1f9c70){const _0x351bb5=a187_0x317b;customApiDomain=_0x1f9c70?.[_0x351bb5(0x176)],customUserDomain=_0x1f9c70?.[_0x351bb5(0x17f)],customRuntimeDomain=_0x1f9c70?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x255935(0x180):a187_0x255935(0x174));function a187_0x276f(){const _0x4afe1b=['userDomain','https://user.lovrabet.com','2912515hiZgoF','42526aASqKj','/web-app/app/','2969666vZFdIG','4507584VWRqjr','trim','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','1848188bxfdYK','apiDomain','https://app.lovrabet.com','19Jhikqp','920547SQhGcs','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','859785ZipAwG','6jcaPOT','/app/'];a187_0x276f=function(){return _0x4afe1b;};return a187_0x276f();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x255935(0x17a):a187_0x255935(0x171));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x255935(0x173):a187_0x255935(0x17b));export const getAppDomain=()=>isProduction(getEnv())?a187_0x255935(0x177):a187_0x255935(0x172);export const getAppBaseUrl=_0x3001f4=>{const _0x8c0ff6=a187_0x255935,_0x933960=encodeURIComponent(_0x3001f4[_0x8c0ff6(0x170)]());return isProduction(getEnv())?getAppDomain()+_0x8c0ff6(0x17e)+_0x933960:getAppDomain()+_0x8c0ff6(0x16d)+_0x933960;};
1
+ const a187_0x505f5e=a187_0x9483;(function(_0x2c2091,_0x471193){const _0x2ab01e=a187_0x9483,_0x42f216=_0x2c2091();while(!![]){try{const _0x337264=parseInt(_0x2ab01e(0x130))/0x1+parseInt(_0x2ab01e(0x12c))/0x2*(-parseInt(_0x2ab01e(0x13a))/0x3)+parseInt(_0x2ab01e(0x134))/0x4+parseInt(_0x2ab01e(0x137))/0x5+-parseInt(_0x2ab01e(0x139))/0x6+parseInt(_0x2ab01e(0x135))/0x7+-parseInt(_0x2ab01e(0x12d))/0x8;if(_0x337264===_0x471193)break;else _0x42f216['push'](_0x42f216['shift']());}catch(_0x1513c2){_0x42f216['push'](_0x42f216['shift']());}}}(a187_0x3b11,0x9e3a7));import{getEnv,isProduction}from'../constant/env.js';function a187_0x9483(_0x59eb2f,_0x117434){_0x59eb2f=_0x59eb2f-0x12c;const _0x3b11ab=a187_0x3b11();let _0x9483f9=_0x3b11ab[_0x59eb2f];return _0x9483f9;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x46d304){const _0x9597d=a187_0x9483;customApiDomain=_0x46d304?.[_0x9597d(0x133)],customUserDomain=_0x46d304?.[_0x9597d(0x132)],customRuntimeDomain=_0x46d304?.[_0x9597d(0x136)];}function a187_0x3b11(){const _0x4cad38=['https://app.lovrabet.com','5426706ucIOhO','214719AYkSqz','/web-app/app/','trim','https://user.lovrabet.com','10PqGPxI','11706256BLAfim','https://user-daily.lovrabet.com','https://daily-runtime.lovrabet.com','1073602BbWzYU','/app/','userDomain','apiDomain','3013312creoLr','5457424PXqPav','runtimeDomain','3835695wVbJve'];a187_0x3b11=function(){return _0x4cad38;};return a187_0x3b11();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x505f5e(0x13d):a187_0x505f5e(0x12e));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a187_0x505f5e(0x12f));export const getAppDomain=()=>isProduction(getEnv())?a187_0x505f5e(0x138):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x37469e=>{const _0x59df64=a187_0x505f5e,_0x21b493=encodeURIComponent(_0x37469e[_0x59df64(0x13c)]());return isProduction(getEnv())?getAppDomain()+_0x59df64(0x131)+_0x21b493:getAppDomain()+_0x59df64(0x13b)+_0x21b493;};
@@ -1 +1 @@
1
- const a188_0x210ef5=a188_0x5130;(function(_0x107ad5,_0x332b98){const _0x4dbb46=a188_0x5130,_0x3ed43a=_0x107ad5();while(!![]){try{const _0x143a44=-parseInt(_0x4dbb46(0x109))/0x1*(parseInt(_0x4dbb46(0x107))/0x2)+parseInt(_0x4dbb46(0xfd))/0x3+-parseInt(_0x4dbb46(0xfe))/0x4+-parseInt(_0x4dbb46(0x106))/0x5+parseInt(_0x4dbb46(0x102))/0x6+parseInt(_0x4dbb46(0x100))/0x7+parseInt(_0x4dbb46(0xff))/0x8*(-parseInt(_0x4dbb46(0x103))/0x9);if(_0x143a44===_0x332b98)break;else _0x3ed43a['push'](_0x3ed43a['shift']());}catch(_0x330638){_0x3ed43a['push'](_0x3ed43a['shift']());}}}(a188_0x5cf5,0xbf81d));export const RABETBASE_ENV_VALUES=[a188_0x210ef5(0x104),a188_0x210ef5(0x108)];function a188_0x5cf5(){const _0x3896d1=['7293062RatHTB','online','1869882UOyebl','405wQAGFa','production','dev','5780055qwmspc','134354ZAWPEo','daily','3AFgOuz','4215120veHJDk','836492tMfUwb','72440nNMcmA'];a188_0x5cf5=function(){return _0x3896d1;};return a188_0x5cf5();}export function normalizeEnv(_0x3aec29){const _0x54c5ff=a188_0x210ef5;return _0x3aec29===_0x54c5ff(0x101)?_0x54c5ff(0x104):_0x3aec29;}export function isProduction(_0x4d9af7){const _0x39fa8f=a188_0x210ef5;return normalizeEnv(_0x4d9af7)===_0x39fa8f(0x104);}export function isDaily(_0xe60fac){const _0x564ec6=a188_0x210ef5;return normalizeEnv(_0xe60fac)===_0x564ec6(0x108);}export function isDev(_0x1ed2e4){const _0x403dd9=a188_0x210ef5,_0x53a224=normalizeEnv(_0x1ed2e4);return _0x53a224==='development'||_0x53a224===_0x403dd9(0x105);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x210ef5(0x104));function a188_0x5130(_0x2fb6de,_0x3f46bf){_0x2fb6de=_0x2fb6de-0xfd;const _0x5cf57b=a188_0x5cf5();let _0x5130ef=_0x5cf57b[_0x2fb6de];return _0x5130ef;}export function getEnv(){return env;}export function initEnv(_0x2eb1ae){env=normalizeEnv(_0x2eb1ae);}
1
+ const a188_0x22eb3a=a188_0x59cf;(function(_0xcc7bb1,_0x303297){const _0x4cfeb5=a188_0x59cf,_0xcedf9d=_0xcc7bb1();while(!![]){try{const _0x3a772e=-parseInt(_0x4cfeb5(0x8f))/0x1+-parseInt(_0x4cfeb5(0x97))/0x2+parseInt(_0x4cfeb5(0x9e))/0x3+-parseInt(_0x4cfeb5(0x9c))/0x4*(parseInt(_0x4cfeb5(0x95))/0x5)+parseInt(_0x4cfeb5(0x99))/0x6*(parseInt(_0x4cfeb5(0x96))/0x7)+parseInt(_0x4cfeb5(0x92))/0x8*(-parseInt(_0x4cfeb5(0x9a))/0x9)+parseInt(_0x4cfeb5(0x94))/0xa*(parseInt(_0x4cfeb5(0x9b))/0xb);if(_0x3a772e===_0x303297)break;else _0xcedf9d['push'](_0xcedf9d['shift']());}catch(_0x441545){_0xcedf9d['push'](_0xcedf9d['shift']());}}}(a188_0x586e,0x7e06a));export const RABETBASE_ENV_VALUES=['production',a188_0x22eb3a(0x93)];export function normalizeEnv(_0x1af71a){const _0x2551bc=a188_0x22eb3a;return _0x1af71a===_0x2551bc(0x91)?'production':_0x1af71a;}function a188_0x59cf(_0x318b76,_0x285695){_0x318b76=_0x318b76-0x8f;const _0x586e3d=a188_0x586e();let _0x59cf8e=_0x586e3d[_0x318b76];return _0x59cf8e;}function a188_0x586e(){const _0xcf80d1=['1400408JFDrad','production','29208MzCVCc','9KKkvgb','154sANntS','210524bvrZwq','development','858285kmGIwM','668682OhjkYD','dev','online','2443432rNmGeK','daily','1394620VBQgFP','30pnsCFN','385CHsklF'];a188_0x586e=function(){return _0xcf80d1;};return a188_0x586e();}export function isProduction(_0x7dc97c){const _0x395e4f=a188_0x22eb3a;return normalizeEnv(_0x7dc97c)===_0x395e4f(0x98);}export function isDaily(_0xd374ce){const _0x1ed045=a188_0x22eb3a;return normalizeEnv(_0xd374ce)===_0x1ed045(0x93);}export function isDev(_0x5be526){const _0x117ec4=a188_0x22eb3a,_0x48566f=normalizeEnv(_0x5be526);return _0x48566f===_0x117ec4(0x9d)||_0x48566f===_0x117ec4(0x90);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x579713){env=normalizeEnv(_0x579713);}
@@ -1 +1 @@
1
- function a189_0x5b55(_0x2a675f,_0x28c4aa){_0x2a675f=_0x2a675f-0x118;const _0x75180d=a189_0x7518();let _0x5b55f7=_0x75180d[_0x2a675f];return _0x5b55f7;}const a189_0x20ec3e=a189_0x5b55;function a189_0x7518(){const _0x119b2a=['pretty','5042387VBcdKK','2241106FQDIun','15228560jyzRoI','1954110OcZkyu','755642OlDEIf','3546708PcCUCg','825366qcFRyC','compress','12AYFVWR'];a189_0x7518=function(){return _0x119b2a;};return a189_0x7518();}(function(_0x329a37,_0x391b2a){const _0x4d5df4=a189_0x5b55,_0x45330d=_0x329a37();while(!![]){try{const _0x135e59=parseInt(_0x4d5df4(0x11c))/0x1+-parseInt(_0x4d5df4(0x119))/0x2+parseInt(_0x4d5df4(0x11d))/0x3+-parseInt(_0x4d5df4(0x120))/0x4*(-parseInt(_0x4d5df4(0x11b))/0x5)+-parseInt(_0x4d5df4(0x11e))/0x6+parseInt(_0x4d5df4(0x118))/0x7+-parseInt(_0x4d5df4(0x11a))/0x8;if(_0x135e59===_0x391b2a)break;else _0x45330d['push'](_0x45330d['shift']());}catch(_0x4dcc70){_0x45330d['push'](_0x45330d['shift']());}}}(a189_0x7518,0xa3549));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x20ec3e(0x121),a189_0x20ec3e(0x11f)];
1
+ function a189_0x7e7f(_0xcc1a11,_0x5ecef4){_0xcc1a11=_0xcc1a11-0xea;const _0xb5663b=a189_0xb566();let _0x7e7fe5=_0xb5663b[_0xcc1a11];return _0x7e7fe5;}function a189_0xb566(){const _0x5c9219=['json','3739460dKAZGP','1007166QttNZd','pretty','111690vlnUEk','6632nTBftE','229152LybSpG','136jFyQAL','7TlxRGM','705mizmBw','10680fdMGAC','3357BGWbQG'];a189_0xb566=function(){return _0x5c9219;};return a189_0xb566();}const a189_0x4bdb64=a189_0x7e7f;(function(_0x36ed90,_0x3829dc){const _0x4af311=a189_0x7e7f,_0x41ee44=_0x36ed90();while(!![]){try{const _0x2b1836=-parseInt(_0x4af311(0xed))/0x1+parseInt(_0x4af311(0xf3))/0x2+-parseInt(_0x4af311(0xef))/0x3+-parseInt(_0x4af311(0xee))/0x4*(parseInt(_0x4af311(0xf2))/0x5)+parseInt(_0x4af311(0xeb))/0x6*(parseInt(_0x4af311(0xf1))/0x7)+-parseInt(_0x4af311(0xf0))/0x8*(parseInt(_0x4af311(0xf4))/0x9)+parseInt(_0x4af311(0xea))/0xa;if(_0x2b1836===_0x3829dc)break;else _0x41ee44['push'](_0x41ee44['shift']());}catch(_0x4ff999){_0x41ee44['push'](_0x41ee44['shift']());}}}(a189_0xb566,0x1d0aa));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a189_0x4bdb64(0xf5),a189_0x4bdb64(0xec),'compress'];
@@ -1 +1 @@
1
- function a190_0x19ed(_0x377628,_0x4a8f12){_0x377628=_0x377628-0x196;const _0x2e93cb=a190_0x2e93();let _0x19edae=_0x2e93cb[_0x377628];return _0x19edae;}const a190_0x2e11f8=a190_0x19ed;function a190_0x2e93(){const _0x1f2ec5=['2537220JzfIXH','./src/api','1010432lGgwfv','3262362blBNMR','765079DvZhGp','4086504QrWPlV','54812DvYQzR','187974ntjmGt','138HENxJL'];a190_0x2e93=function(){return _0x1f2ec5;};return a190_0x2e93();}(function(_0x177f03,_0x2c2665){const _0x49708a=a190_0x19ed,_0x36e51b=_0x177f03();while(!![]){try{const _0x5a58c3=-parseInt(_0x49708a(0x19b))/0x1+-parseInt(_0x49708a(0x196))/0x2+parseInt(_0x49708a(0x19c))/0x3*(parseInt(_0x49708a(0x19a))/0x4)+parseInt(_0x49708a(0x19d))/0x5+parseInt(_0x49708a(0x197))/0x6+-parseInt(_0x49708a(0x198))/0x7+-parseInt(_0x49708a(0x199))/0x8;if(_0x5a58c3===_0x2c2665)break;else _0x36e51b['push'](_0x36e51b['shift']());}catch(_0x37c76d){_0x36e51b['push'](_0x36e51b['shift']());}}}(a190_0x2e93,0x59e51));export const DEFAULT_API_DIR=a190_0x2e11f8(0x19e);
1
+ function a190_0x3d8c(_0x296fd8,_0x10858d){_0x296fd8=_0x296fd8-0xc3;const _0x495a0f=a190_0x495a();let _0x3d8c7f=_0x495a0f[_0x296fd8];return _0x3d8c7f;}(function(_0x43fd96,_0x3fe4be){const _0x478893=a190_0x3d8c,_0x3061b7=_0x43fd96();while(!![]){try{const _0xecf3d8=parseInt(_0x478893(0xcc))/0x1+parseInt(_0x478893(0xc5))/0x2*(-parseInt(_0x478893(0xca))/0x3)+-parseInt(_0x478893(0xc9))/0x4*(parseInt(_0x478893(0xcb))/0x5)+-parseInt(_0x478893(0xc4))/0x6+parseInt(_0x478893(0xc8))/0x7+parseInt(_0x478893(0xc7))/0x8+parseInt(_0x478893(0xc6))/0x9*(-parseInt(_0x478893(0xc3))/0xa);if(_0xecf3d8===_0x3fe4be)break;else _0x3061b7['push'](_0x3061b7['shift']());}catch(_0x2d7053){_0x3061b7['push'](_0x3061b7['shift']());}}}(a190_0x495a,0x31561));function a190_0x495a(){const _0x44c608=['399UAiTUq','1945EZbQhP','366940joQTMw','4899480YSLdbm','1337934AeBwtX','18lzqSdh','9CBTGKR','2837384ZzBRBU','2622963yArfsm','1852HFhIcZ'];a190_0x495a=function(){return _0x44c608;};return a190_0x495a();}export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a191_0xb405(){const _0x25488=['1118464JmVNJC','13989QAbpAl','324pMRUpz','6020124eGMfno','9zDrktC','947384CTmDxL','4793838giwHsm','3483425ClZuZN','646632OyRGlk','high-risk-write'];a191_0xb405=function(){return _0x25488;};return a191_0xb405();}const a191_0x3879ff=a191_0x2f30;(function(_0x3b5c6b,_0x5510ec){const _0x38ee32=a191_0x2f30,_0x1efe4a=_0x3b5c6b();while(!![]){try{const _0x21c0b2=-parseInt(_0x38ee32(0x79))/0x1+parseInt(_0x38ee32(0x74))/0x2+parseInt(_0x38ee32(0x7a))/0x3*(parseInt(_0x38ee32(0x71))/0x4)+-parseInt(_0x38ee32(0x76))/0x5+parseInt(_0x38ee32(0x72))/0x6+parseInt(_0x38ee32(0x75))/0x7+parseInt(_0x38ee32(0x77))/0x8*(parseInt(_0x38ee32(0x73))/0x9);if(_0x21c0b2===_0x5510ec)break;else _0x1efe4a['push'](_0x1efe4a['shift']());}catch(_0x27ed70){_0x1efe4a['push'](_0x1efe4a['shift']());}}}(a191_0xb405,0xc498f));function a191_0x2f30(_0x20541b,_0x415dcd){_0x20541b=_0x20541b-0x71;const _0xb4052a=a191_0xb405();let _0x2f3003=_0xb4052a[_0x20541b];return _0x2f3003;}export const RISK_LEVEL_VALUES=['read','write',a191_0x3879ff(0x78)];
1
+ const a191_0x3eed69=a191_0x11f6;function a191_0x4661(){const _0x175e0b=['2048475guZuAm','66nImNXy','397098qGjOHR','1265360OnAiXF','1433226wqRqNT','read','27nXpFkN','4wPmhyW','7dioFfu','629457YaYypb','high-risk-write','1PoXIrd','26yTlpyO','412616imgWsD','1280592VkVwQl','write'];a191_0x4661=function(){return _0x175e0b;};return a191_0x4661();}function a191_0x11f6(_0x5c63ad,_0x367e13){_0x5c63ad=_0x5c63ad-0x83;const _0x466153=a191_0x4661();let _0x11f637=_0x466153[_0x5c63ad];return _0x11f637;}(function(_0x11a1f7,_0x44544f){const _0x1c356e=a191_0x11f6,_0x34aa77=_0x11a1f7();while(!![]){try{const _0x2cadfe=-parseInt(_0x1c356e(0x8a))/0x1*(parseInt(_0x1c356e(0x91))/0x2)+-parseInt(_0x1c356e(0x88))/0x3*(parseInt(_0x1c356e(0x86))/0x4)+-parseInt(_0x1c356e(0x8f))/0x5+parseInt(_0x1c356e(0x83))/0x6*(parseInt(_0x1c356e(0x87))/0x7)+-parseInt(_0x1c356e(0x8c))/0x8*(-parseInt(_0x1c356e(0x85))/0x9)+parseInt(_0x1c356e(0x92))/0xa*(parseInt(_0x1c356e(0x90))/0xb)+parseInt(_0x1c356e(0x8d))/0xc*(parseInt(_0x1c356e(0x8b))/0xd);if(_0x2cadfe===_0x44544f)break;else _0x34aa77['push'](_0x34aa77['shift']());}catch(_0x415cd4){_0x34aa77['push'](_0x34aa77['shift']());}}}(a191_0x4661,0x85d5b));export const RISK_LEVEL_VALUES=[a191_0x3eed69(0x84),a191_0x3eed69(0x8e),a191_0x3eed69(0x89)];
@@ -1 +1 @@
1
- (function(_0x3c3385,_0x2b6943){const _0x4b99d5=a192_0x20ea,_0x3b668f=_0x3c3385();while(!![]){try{const _0x200661=-parseInt(_0x4b99d5(0xec))/0x1+-parseInt(_0x4b99d5(0x109))/0x2+-parseInt(_0x4b99d5(0x115))/0x3*(parseInt(_0x4b99d5(0x10b))/0x4)+parseInt(_0x4b99d5(0x10e))/0x5*(-parseInt(_0x4b99d5(0xfc))/0x6)+-parseInt(_0x4b99d5(0xe9))/0x7*(-parseInt(_0x4b99d5(0xf7))/0x8)+-parseInt(_0x4b99d5(0xfe))/0x9+parseInt(_0x4b99d5(0xf4))/0xa*(parseInt(_0x4b99d5(0xf1))/0xb);if(_0x200661===_0x2b6943)break;else _0x3b668f['push'](_0x3b668f['shift']());}catch(_0x247338){_0x3b668f['push'](_0x3b668f['shift']());}}}(a192_0x2b11,0xa3046));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a192_0x20ea(_0x40e2de,_0x445e8d){_0x40e2de=_0x40e2de-0xe9;const _0x2b11dd=a192_0x2b11();let _0x20ea38=_0x2b11dd[_0x40e2de];return _0x20ea38;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5ac1be){const _0x4746b8=a192_0x20ea;return typeof _0x5ac1be==='string'&&_0x5ac1be[_0x4746b8(0xed)]()?_0x5ac1be['trim']():undefined;}function appProfiles(_0x403133){const _0x324b6a=a192_0x20ea;return _0x403133[_0x324b6a(0x112)]&&typeof _0x403133[_0x324b6a(0x112)]==='object'?_0x403133[_0x324b6a(0x112)]:{};}function a192_0x2b11(){const _0xbc79e0=['APP','read','40LxMbYM','VERBOSE','riskLevel','ENV','defaultApp','5779086SXpBNz','apiDir','7796691xmxxDD','maxRisk','string','accessKey','app','MAX_RISK','pageSize','keys','object','cookie','production','1171924lTyvvN','entries','39876bsOKjK','write','RISK_LEVEL','5EpADEa','globalConfig','locale','inherit','apps','true','appcode','6sMmpHj','1003170IrIZdQ','env','find','74196JeWDIO','trim','format','length','COOKIE','410124MJDArB','projectConfig','daily','660PsdBli'];a192_0x2b11=function(){return _0xbc79e0;};return a192_0x2b11();}function resolveDefaultAppName(_0x6d2f54){const _0x8f1b51=a192_0x20ea,_0x1a07b8=stringConfigValue(_0x6d2f54['defaultApp']);if(_0x1a07b8)return _0x1a07b8;return Object[_0x8f1b51(0x105)](appProfiles(_0x6d2f54))[0x0];}function resolveTopLevelAppCode(_0x3306ee){const _0xd07dba=a192_0x20ea;return stringConfigValue(_0x3306ee[_0xd07dba(0x114)])||stringConfigValue(_0x3306ee[_0xd07dba(0x102)]);}export function resolveAppConfig({raw:_0x34a1bc,flags:_0x30a5c2,layers:_0x17ae67,readEnv:_0x200442}){const _0x5e9c72=a192_0x20ea,_0x542737=_0x17ae67?.[_0x5e9c72(0xf2)]??{},_0x114110=_0x17ae67?.[_0x5e9c72(0x10f)]??{},_0x55a55e=Object['keys'](_0x542737)[_0x5e9c72(0xef)]>0x0,_0x27fe48=!_0x55a55e||_0x542737[_0x5e9c72(0x111)]===!![],_0x318457=_0x55a55e?resolveDefaultAppName(_0x542737):undefined,_0x5d98ca=_0x27fe48?resolveDefaultAppName(_0x114110):undefined,_0x146cd2=stringConfigValue(_0x30a5c2[_0x5e9c72(0x102)]),_0xce1ae1=_0x200442(_0x5e9c72(0xf5)),_0x180987={};if(_0x34a1bc[_0x5e9c72(0x112)]&&typeof _0x34a1bc[_0x5e9c72(0x112)]===_0x5e9c72(0x106))for(const [_0x44810b,_0x97b7cc]of Object['entries'](_0x34a1bc[_0x5e9c72(0x112)])){_0x97b7cc&&typeof _0x97b7cc===_0x5e9c72(0x106)&&_0x97b7cc[_0x5e9c72(0x114)]&&(_0x180987[_0x44810b]=_0x97b7cc);}const _0x60c686=_0x34a1bc[_0x5e9c72(0xfb)]||undefined,_0x31a786=Object['keys'](_0x180987)[_0x5e9c72(0xef)]>0x0,_0x27946e=_0x146cd2||_0x318457||_0xce1ae1||_0x5d98ca||_0x60c686||undefined,_0x2ed143=stringConfigValue(_0x30a5c2[_0x5e9c72(0x114)]),_0x3b0ef0=_0x2ed143?Object[_0x5e9c72(0x10a)](_0x180987)[_0x5e9c72(0xeb)](([,_0x55be23])=>_0x55be23?.[_0x5e9c72(0x114)]===_0x2ed143):undefined,_0x5e524c=_0x3b0ef0?.[0x0],_0x3b775a=_0x3b0ef0?.[0x1],_0x34c55a=_0x2ed143?_0x5e524c:_0x27946e;let _0x2a5727=_0x34c55a&&_0x180987[_0x34c55a]?_0x180987[_0x34c55a]:undefined;_0x2ed143&&_0x3b775a&&(_0x2a5727=_0x3b775a);const _0x5729f9=_0x2ed143?_0x3b775a??_0x2a5727:_0x2a5727,_0x442773=!_0x146cd2&&!_0x318457&&_0xce1ae1&&_0x34c55a===_0xce1ae1,_0x520de2=_0x146cd2||(_0x442773?_0xce1ae1:undefined)||(_0x2ed143?_0x5e524c:undefined),_0x4df1de=_0x5729f9?.[_0x5e9c72(0x114)],_0x301b69=_0x55a55e?resolveTopLevelAppCode(_0x542737):undefined,_0x21b9ae=_0x27fe48?resolveTopLevelAppCode(_0x114110):undefined,_0x1e0b38=_0x146cd2||_0x318457?_0x4df1de:undefined,_0x4b0491=!_0x146cd2&&!_0x318457?_0x4df1de:undefined,_0x13853a=_0x2ed143||_0x1e0b38||_0x301b69||_0x4b0491||_0x21b9ae||undefined,_0x466c2f=_0x55a55e?stringConfigValue(_0x542737[_0x5e9c72(0xea)]):undefined,_0x3660b0=_0x27fe48?stringConfigValue(_0x114110[_0x5e9c72(0xea)]):undefined,_0x2fd6c9=_0x30a5c2[_0x5e9c72(0xea)]||_0x5729f9?.[_0x5e9c72(0xea)]||_0x466c2f||_0x200442(_0x5e9c72(0xfa))||_0x3660b0||_0x34a1bc[_0x5e9c72(0xea)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xea)],_0x1b8e38=_0x5729f9?.[_0x5e9c72(0x110)]||_0x34a1bc[_0x5e9c72(0x110)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e5c89=_0x200442(_0x5e9c72(0xf0))||_0x5729f9?.[_0x5e9c72(0x107)]||_0x34a1bc[_0x5e9c72(0x107)]||undefined,_0x40cc24=_0x200442('ACCESS_KEY')||_0x5729f9?.[_0x5e9c72(0x101)]||_0x34a1bc[_0x5e9c72(0x101)]||undefined,_0x2acf7a=_0x30a5c2['format']||_0x200442('FORMAT')||_0x5729f9?.[_0x5e9c72(0xee)]||_0x34a1bc[_0x5e9c72(0xee)],_0x1ff2ef=normalizeLegacyOutputFormat(_0x2acf7a),_0x48d433=_0x200442('PAGE_SIZE')||_0x5729f9?.[_0x5e9c72(0x104)]||_0x34a1bc['pageSize'],_0x4b9e34=_0x48d433?Number(_0x48d433)||undefined:undefined,_0x5798a7=_0x200442(_0x5e9c72(0x10d))||_0x200442(_0x5e9c72(0x103))||_0x5729f9?.['riskLevel']||_0x34a1bc[_0x5e9c72(0xf9)]||_0x34a1bc[_0x5e9c72(0xff)],_0x14ea7d=_0x5798a7===_0x5e9c72(0xf6)||_0x5798a7===_0x5e9c72(0x10c)?_0x5798a7:DEFAULT_CONFIG_VALUES[_0x5e9c72(0xf9)],_0x3ed65e=_0x200442(_0x5e9c72(0xf8)),_0x1fde1c=_0x3ed65e==='1'||_0x3ed65e===_0x5e9c72(0x113),_0x145008=_0x5729f9?.[_0x5e9c72(0xfd)]||_0x34a1bc[_0x5e9c72(0xfd)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xfd)],_0x3270e0=isDaily(normalizeEnv(String(_0x2fd6c9)))?_0x5e9c72(0xf3):_0x5e9c72(0x108);return{'appCode':typeof _0x13853a===_0x5e9c72(0x100)&&_0x13853a[_0x5e9c72(0xed)]()?_0x13853a[_0x5e9c72(0xed)]():undefined,'env':_0x3270e0,'locale':_0x1b8e38,'cookie':_0x4e5c89,'accessKey':_0x40cc24,'format':_0x1ff2ef,'pageSize':_0x4b9e34,'riskLevel':_0x14ea7d,'verbose':_0x1fde1c,'apiDir':_0x145008,'apps':_0x180987,'defaultApp':_0x60c686,'currentApp':_0x31a786?_0x34c55a:undefined,'explicitAppName':_0x520de2};}
1
+ (function(_0x3ac319,_0x1b21d5){const _0x43a298=a192_0x3832,_0x1bd02e=_0x3ac319();while(!![]){try{const _0x381a5b=-parseInt(_0x43a298(0x179))/0x1*(parseInt(_0x43a298(0x186))/0x2)+parseInt(_0x43a298(0x168))/0x3+parseInt(_0x43a298(0x180))/0x4*(-parseInt(_0x43a298(0x176))/0x5)+parseInt(_0x43a298(0x167))/0x6+-parseInt(_0x43a298(0x170))/0x7+parseInt(_0x43a298(0x16e))/0x8*(-parseInt(_0x43a298(0x16d))/0x9)+parseInt(_0x43a298(0x17a))/0xa;if(_0x381a5b===_0x1b21d5)break;else _0x1bd02e['push'](_0x1bd02e['shift']());}catch(_0x291c8b){_0x1bd02e['push'](_0x1bd02e['shift']());}}}(a192_0x5c44,0x9317c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x58c6c2){const _0x3a958a=a192_0x3832;return typeof _0x58c6c2===_0x3a958a(0x16f)&&_0x58c6c2[_0x3a958a(0x17d)]()?_0x58c6c2[_0x3a958a(0x17d)]():undefined;}function a192_0x3832(_0x20822d,_0x463aa0){_0x20822d=_0x20822d-0x165;const _0x5c446c=a192_0x5c44();let _0x3832e3=_0x5c446c[_0x20822d];return _0x3832e3;}function appProfiles(_0x20b23b){const _0x52f987=a192_0x3832;return _0x20b23b[_0x52f987(0x18b)]&&typeof _0x20b23b['apps']===_0x52f987(0x187)?_0x20b23b['apps']:{};}function a192_0x5c44(){const _0x2f2b33=['accessKey','apps','format','ENV','keys','1565280vChozX','2442522PoJUuh','env','globalConfig','find','production','1541655iwGwuo','16KUpLvu','string','888643jANVqy','app','RISK_LEVEL','riskLevel','appcode','length','312115SfnZvP','PAGE_SIZE','projectConfig','1ljZdJp','15673170KNuMUu','cookie','MAX_RISK','trim','daily','defaultApp','68wZpBMK','entries','true','apiDir','write','locale','1018298hOiPWZ','object','read','pageSize'];a192_0x5c44=function(){return _0x2f2b33;};return a192_0x5c44();}function resolveDefaultAppName(_0x3e6a50){const _0x32f388=a192_0x3832,_0x3943c3=stringConfigValue(_0x3e6a50['defaultApp']);if(_0x3943c3)return _0x3943c3;return Object[_0x32f388(0x166)](appProfiles(_0x3e6a50))[0x0];}function resolveTopLevelAppCode(_0x5ebdd3){const _0x238628=a192_0x3832;return stringConfigValue(_0x5ebdd3['appcode'])||stringConfigValue(_0x5ebdd3[_0x238628(0x171)]);}export function resolveAppConfig({raw:_0x2f4ca9,flags:_0x268999,layers:_0x398ccf,readEnv:_0x1ecf13}){const _0x231320=a192_0x3832,_0x245d07=_0x398ccf?.[_0x231320(0x178)]??{},_0x2c5475=_0x398ccf?.[_0x231320(0x16a)]??{},_0x2e9a91=Object[_0x231320(0x166)](_0x245d07)[_0x231320(0x175)]>0x0,_0x33c250=!_0x2e9a91||_0x245d07['inherit']===!![],_0x162823=_0x2e9a91?resolveDefaultAppName(_0x245d07):undefined,_0x250058=_0x33c250?resolveDefaultAppName(_0x2c5475):undefined,_0x37f279=stringConfigValue(_0x268999[_0x231320(0x171)]),_0x1cf35b=_0x1ecf13('APP'),_0xbce7e2={};if(_0x2f4ca9[_0x231320(0x18b)]&&typeof _0x2f4ca9[_0x231320(0x18b)]===_0x231320(0x187))for(const [_0x57de79,_0x6e3fd]of Object[_0x231320(0x181)](_0x2f4ca9[_0x231320(0x18b)])){_0x6e3fd&&typeof _0x6e3fd===_0x231320(0x187)&&_0x6e3fd['appcode']&&(_0xbce7e2[_0x57de79]=_0x6e3fd);}const _0x5ccf7d=_0x2f4ca9[_0x231320(0x17f)]||undefined,_0x30b346=Object['keys'](_0xbce7e2)[_0x231320(0x175)]>0x0,_0xea72c9=_0x37f279||_0x162823||_0x1cf35b||_0x250058||_0x5ccf7d||undefined,_0x30cbad=stringConfigValue(_0x268999[_0x231320(0x174)]),_0x31f28b=_0x30cbad?Object[_0x231320(0x181)](_0xbce7e2)[_0x231320(0x16b)](([,_0x150928])=>_0x150928?.[_0x231320(0x174)]===_0x30cbad):undefined,_0x305426=_0x31f28b?.[0x0],_0x46ee4c=_0x31f28b?.[0x1],_0x4e52d5=_0x30cbad?_0x305426:_0xea72c9;let _0x22b73e=_0x4e52d5&&_0xbce7e2[_0x4e52d5]?_0xbce7e2[_0x4e52d5]:undefined;_0x30cbad&&_0x46ee4c&&(_0x22b73e=_0x46ee4c);const _0x4dc884=_0x30cbad?_0x46ee4c??_0x22b73e:_0x22b73e,_0x82f2ef=!_0x37f279&&!_0x162823&&_0x1cf35b&&_0x4e52d5===_0x1cf35b,_0x395b47=_0x37f279||(_0x82f2ef?_0x1cf35b:undefined)||(_0x30cbad?_0x305426:undefined),_0x37c6d1=_0x4dc884?.[_0x231320(0x174)],_0x129cd8=_0x2e9a91?resolveTopLevelAppCode(_0x245d07):undefined,_0x3f3df5=_0x33c250?resolveTopLevelAppCode(_0x2c5475):undefined,_0x74bbd5=_0x37f279||_0x162823?_0x37c6d1:undefined,_0x1cabd4=!_0x37f279&&!_0x162823?_0x37c6d1:undefined,_0x2d9192=_0x30cbad||_0x74bbd5||_0x129cd8||_0x1cabd4||_0x3f3df5||undefined,_0x522d54=_0x2e9a91?stringConfigValue(_0x245d07['env']):undefined,_0x25b1b6=_0x33c250?stringConfigValue(_0x2c5475['env']):undefined,_0x475ed6=_0x268999[_0x231320(0x169)]||_0x4dc884?.['env']||_0x522d54||_0x1ecf13(_0x231320(0x165))||_0x25b1b6||_0x2f4ca9[_0x231320(0x169)]||DEFAULT_CONFIG_VALUES['env'],_0x22afa7=_0x4dc884?.['locale']||_0x2f4ca9[_0x231320(0x185)]||DEFAULT_CONFIG_VALUES['locale'],_0x4f5cb6=_0x1ecf13('COOKIE')||_0x4dc884?.[_0x231320(0x17b)]||_0x2f4ca9[_0x231320(0x17b)]||undefined,_0xfd04a1=_0x1ecf13('ACCESS_KEY')||_0x4dc884?.[_0x231320(0x18a)]||_0x2f4ca9[_0x231320(0x18a)]||undefined,_0x552923=_0x268999[_0x231320(0x18c)]||_0x1ecf13('FORMAT')||_0x4dc884?.[_0x231320(0x18c)]||_0x2f4ca9[_0x231320(0x18c)],_0x1fc43b=normalizeLegacyOutputFormat(_0x552923),_0x516dec=_0x1ecf13(_0x231320(0x177))||_0x4dc884?.[_0x231320(0x189)]||_0x2f4ca9['pageSize'],_0x4ced8e=_0x516dec?Number(_0x516dec)||undefined:undefined,_0x4beacb=_0x1ecf13(_0x231320(0x172))||_0x1ecf13(_0x231320(0x17c))||_0x4dc884?.[_0x231320(0x173)]||_0x2f4ca9[_0x231320(0x173)]||_0x2f4ca9['maxRisk'],_0x176a03=_0x4beacb===_0x231320(0x188)||_0x4beacb===_0x231320(0x184)?_0x4beacb:DEFAULT_CONFIG_VALUES[_0x231320(0x173)],_0x3e02a9=_0x1ecf13('VERBOSE'),_0x387039=_0x3e02a9==='1'||_0x3e02a9===_0x231320(0x182),_0x5bae1a=_0x4dc884?.['apiDir']||_0x2f4ca9[_0x231320(0x183)]||DEFAULT_CONFIG_VALUES[_0x231320(0x183)],_0x2416c3=isDaily(normalizeEnv(String(_0x475ed6)))?_0x231320(0x17e):_0x231320(0x16c);return{'appCode':typeof _0x2d9192===_0x231320(0x16f)&&_0x2d9192[_0x231320(0x17d)]()?_0x2d9192[_0x231320(0x17d)]():undefined,'env':_0x2416c3,'locale':_0x22afa7,'cookie':_0x4f5cb6,'accessKey':_0xfd04a1,'format':_0x1fc43b,'pageSize':_0x4ced8e,'riskLevel':_0x176a03,'verbose':_0x387039,'apiDir':_0x5bae1a,'apps':_0xbce7e2,'defaultApp':_0x5ccf7d,'currentApp':_0x30b346?_0x4e52d5:undefined,'explicitAppName':_0x395b47};}
@@ -1 +1 @@
1
- (function(_0x3bb183,_0x4a64c9){const _0x11e00a=a193_0x2cba,_0x3d3322=_0x3bb183();while(!![]){try{const _0x283fdf=parseInt(_0x11e00a(0xaa))/0x1+-parseInt(_0x11e00a(0xa2))/0x2+-parseInt(_0x11e00a(0xab))/0x3+parseInt(_0x11e00a(0xa6))/0x4+parseInt(_0x11e00a(0xa5))/0x5+parseInt(_0x11e00a(0xa4))/0x6*(parseInt(_0x11e00a(0xa9))/0x7)+-parseInt(_0x11e00a(0xa3))/0x8;if(_0x283fdf===_0x4a64c9)break;else _0x3d3322['push'](_0x3d3322['shift']());}catch(_0x39d6a4){_0x3d3322['push'](_0x3d3322['shift']());}}}(a193_0x56cc,0xc0392));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x2cba(_0x328891,_0x5da646){_0x328891=_0x328891-0xa2;const _0x56cce9=a193_0x56cc();let _0x2cbae3=_0x56cce9[_0x328891];return _0x2cbae3;}function a193_0x56cc(){const _0x502139=['2528352xOzsMz','100602TiKrHn','6392090cjGoNW','2558692ioXkOc','cookie','authRequired','28SRRsja','1409291oNVfMa','2984376bqCvYf','../auth/get-cookie.js','2592536lpXCZB'];a193_0x56cc=function(){return _0x502139;};return a193_0x56cc();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x5c7d44){const _0x21e089=a193_0x2cba,{getCookie:_0xa77a6d}=await import(_0x21e089(0xac)),_0x5b958b=_0x5c7d44[_0x21e089(0xa7)]||_0xa77a6d(),_0x53c621=_0x5b958b?await getIsSessionValid():![];return{'cookie':_0x5b958b,'isLoggedIn':_0x53c621,async 'getOrLogin'(){const _0x59f051=_0x21e089;if(_0x5b958b&&_0x53c621)return _0x5b958b;throw CliErrors[_0x59f051(0xa8)]();}};}
1
+ function a193_0x530a(){const _0x1097de=['2xYSizT','555100nWBpdf','38015uZjfJs','360NWfaNa','324wsBFfb','cookie','162687rxvfKS','10617975SQYrbK','383171HNwvIr','2652435PHFlHR','1819510WrYgRz'];a193_0x530a=function(){return _0x1097de;};return a193_0x530a();}function a193_0x3591(_0x543867,_0x21c28b){_0x543867=_0x543867-0x185;const _0x530a3d=a193_0x530a();let _0x359172=_0x530a3d[_0x543867];return _0x359172;}(function(_0x1c1bca,_0x2e378d){const _0x17fd81=a193_0x3591,_0x3e0f82=_0x1c1bca();while(!![]){try{const _0x40b7aa=-parseInt(_0x17fd81(0x18d))/0x1*(parseInt(_0x17fd81(0x185))/0x2)+-parseInt(_0x17fd81(0x18e))/0x3+-parseInt(_0x17fd81(0x186))/0x4+parseInt(_0x17fd81(0x187))/0x5*(-parseInt(_0x17fd81(0x189))/0x6)+-parseInt(_0x17fd81(0x18b))/0x7*(-parseInt(_0x17fd81(0x188))/0x8)+parseInt(_0x17fd81(0x18c))/0x9+parseInt(_0x17fd81(0x18f))/0xa;if(_0x40b7aa===_0x2e378d)break;else _0x3e0f82['push'](_0x3e0f82['shift']());}catch(_0x4f4fce){_0x3e0f82['push'](_0x3e0f82['shift']());}}}(a193_0x530a,0x90446));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x995ec8){const _0x75f30d=a193_0x3591,{getCookie:_0x34c6f3}=await import('../auth/get-cookie.js'),_0x54f4be=_0x995ec8[_0x75f30d(0x18a)]||_0x34c6f3(),_0x48987f=_0x54f4be?await getIsSessionValid():![];return{'cookie':_0x54f4be,'isLoggedIn':_0x48987f,async 'getOrLogin'(){if(_0x54f4be&&_0x48987f)return _0x54f4be;throw CliErrors['authRequired']();}};}