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

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 (273) hide show
  1. package/README.md +7 -2
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/list.js +1 -1
  56. package/lib/commands/config/set.js +1 -1
  57. package/lib/commands/config/shared.js +1 -1
  58. package/lib/commands/data/filter.js +1 -1
  59. package/lib/commands/data/getOne.js +1 -1
  60. package/lib/commands/data/index.js +1 -1
  61. package/lib/commands/data/shared.js +1 -1
  62. package/lib/commands/dataset/business-group-update.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -0
  103. package/lib/commands/kb/delete.js +1 -0
  104. package/lib/commands/kb/detail.js +1 -0
  105. package/lib/commands/kb/index.js +1 -0
  106. package/lib/commands/kb/list.js +1 -0
  107. package/lib/commands/kb/shared.js +1 -0
  108. package/lib/commands/kb/update.js +1 -0
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/notification/config-list.js +1 -1
  135. package/lib/commands/notification/index.js +1 -1
  136. package/lib/commands/ocr/index.js +1 -1
  137. package/lib/commands/page/generate-start.js +1 -1
  138. package/lib/commands/page/generate-status.js +1 -1
  139. package/lib/commands/page/index.js +1 -1
  140. package/lib/commands/page/pull.js +1 -1
  141. package/lib/commands/page/push.js +1 -1
  142. package/lib/commands/page/relation-audit.js +1 -1
  143. package/lib/commands/page/restore.js +1 -1
  144. package/lib/commands/page/shared.js +1 -1
  145. package/lib/commands/page/standard-page-status.js +1 -1
  146. package/lib/commands/page/sync.js +1 -1
  147. package/lib/commands/permit/index.js +1 -1
  148. package/lib/commands/permit/page-get.js +1 -1
  149. package/lib/commands/permit/page-set.js +1 -1
  150. package/lib/commands/permit/role-apis-set.js +1 -1
  151. package/lib/commands/permit/role-menus-set.js +1 -1
  152. package/lib/commands/permit/role-menus.js +1 -1
  153. package/lib/commands/permit/shared.js +1 -1
  154. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  155. package/lib/commands/project/create/format-elapsed.js +1 -1
  156. package/lib/commands/project/create/main.js +1 -1
  157. package/lib/commands/project/create/non-interactive.js +1 -1
  158. package/lib/commands/project/create/project-template-path.js +1 -1
  159. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  160. package/lib/commands/project/create/use-format-code.js +1 -1
  161. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  162. package/lib/commands/project/index.js +1 -1
  163. package/lib/commands/project/init.js +1 -1
  164. package/lib/commands/project/upgrade.js +1 -1
  165. package/lib/commands/registry.js +1 -1
  166. package/lib/commands/role/create.js +1 -1
  167. package/lib/commands/role/delete.js +1 -1
  168. package/lib/commands/role/detail.js +1 -1
  169. package/lib/commands/role/index.js +1 -1
  170. package/lib/commands/role/list.js +1 -1
  171. package/lib/commands/role/shared.js +1 -1
  172. package/lib/commands/role/update.js +1 -1
  173. package/lib/commands/role/user-add.js +1 -1
  174. package/lib/commands/role/user-remove.js +1 -1
  175. package/lib/commands/role/user-resolve.js +1 -1
  176. package/lib/commands/run/index.js +1 -1
  177. package/lib/commands/schema.js +1 -1
  178. package/lib/commands/sql/create.js +1 -1
  179. package/lib/commands/sql/delete.js +1 -1
  180. package/lib/commands/sql/detail.js +1 -1
  181. package/lib/commands/sql/exec.js +1 -1
  182. package/lib/commands/sql/index.js +1 -1
  183. package/lib/commands/sql/list.js +1 -1
  184. package/lib/commands/sql/pull.js +1 -1
  185. package/lib/commands/sql/push.js +1 -1
  186. package/lib/commands/sql/save.js +1 -1
  187. package/lib/commands/sql/shared.js +1 -1
  188. package/lib/commands/sql/status.js +1 -1
  189. package/lib/commands/sql/validate.js +1 -1
  190. package/lib/commands/task/index.js +1 -1
  191. package/lib/commands/task/status.js +1 -1
  192. package/lib/commands/workspace/add.js +1 -1
  193. package/lib/commands/workspace/index.js +1 -1
  194. package/lib/commands/workspace/remove.js +1 -1
  195. package/lib/config/schema.js +1 -1
  196. package/lib/constant/cdn.js +1 -1
  197. package/lib/constant/cli.js +1 -1
  198. package/lib/constant/defaults.js +1 -1
  199. package/lib/constant/domain.js +1 -1
  200. package/lib/constant/env.js +1 -1
  201. package/lib/constant/output.js +1 -1
  202. package/lib/constant/paths.js +1 -1
  203. package/lib/constant/risk.js +1 -1
  204. package/lib/context/app-resolver.js +1 -1
  205. package/lib/context/auth-resolver.js +1 -1
  206. package/lib/context/config-loader.js +1 -1
  207. package/lib/context.js +1 -1
  208. package/lib/core/alias-resolver.js +1 -1
  209. package/lib/core/api-client.js +1 -1
  210. package/lib/core/bff/config.js +1 -1
  211. package/lib/core/bff/file-system.js +1 -1
  212. package/lib/core/bff/hash.js +1 -1
  213. package/lib/core/bff/lock.js +1 -1
  214. package/lib/core/bff/utils.js +1 -1
  215. package/lib/core/db-resolver.js +1 -1
  216. package/lib/core/page/file-system.js +1 -1
  217. package/lib/core/page/hash.js +1 -1
  218. package/lib/core/page/lock.js +1 -1
  219. package/lib/core/sql-index-auditor.js +1 -1
  220. package/lib/core/sql-sync/config.js +1 -1
  221. package/lib/core/sql-sync/file-system.js +1 -1
  222. package/lib/core/sql-sync/hash.js +1 -1
  223. package/lib/core/sql-sync/lock.js +1 -1
  224. package/lib/core/sql-sync/utils.js +1 -1
  225. package/lib/core/sql-validator.js +1 -1
  226. package/lib/errors.js +1 -1
  227. package/lib/framework/build-all-flags.js +1 -1
  228. package/lib/framework/error-output.js +1 -1
  229. package/lib/framework/explicit-yes.js +1 -1
  230. package/lib/framework/flags.js +1 -1
  231. package/lib/framework/help.js +1 -1
  232. package/lib/framework/index.js +1 -1
  233. package/lib/framework/output.js +1 -1
  234. package/lib/framework/response.js +1 -1
  235. package/lib/framework/runner-alias.js +1 -1
  236. package/lib/framework/runner.js +1 -1
  237. package/lib/framework/schema-export.js +1 -1
  238. package/lib/framework/types.js +1 -1
  239. package/lib/generated/build-info.js +1 -1
  240. package/lib/help.js +1 -1
  241. package/lib/skills/main.js +1 -1
  242. package/lib/skills/npx-skills-add.js +1 -1
  243. package/lib/skills/skill-presence.js +1 -0
  244. package/lib/telemetry/cli-command-trace.js +1 -1
  245. package/lib/telemetry/cli-help-trace.js +1 -1
  246. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  247. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  248. package/lib/telemetry/send-cli-trace-log.js +1 -1
  249. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  250. package/lib/utils/ai_config.js +1 -1
  251. package/lib/utils/apply-jq-filter.js +1 -1
  252. package/lib/utils/cdn-config.js +1 -1
  253. package/lib/utils/check-sdk-version.js +1 -1
  254. package/lib/utils/cli-version-check.js +1 -1
  255. package/lib/utils/cli-version-policy.js +1 -1
  256. package/lib/utils/config.js +1 -1
  257. package/lib/utils/copy-directory.js +1 -1
  258. package/lib/utils/entity-with-id.js +1 -1
  259. package/lib/utils/file-utils.js +1 -1
  260. package/lib/utils/guides-cdn.js +1 -1
  261. package/lib/utils/http-client.js +1 -1
  262. package/lib/utils/is-non-interactive.js +1 -1
  263. package/lib/utils/logger.js +1 -1
  264. package/lib/utils/params.js +1 -1
  265. package/lib/utils/platform.js +1 -1
  266. package/lib/utils/rules-cdn.js +1 -1
  267. package/lib/utils/sleep.js +1 -1
  268. package/lib/utils/template-replacer.js +1 -1
  269. package/lib/utils/update-notice.js +1 -1
  270. package/lib/utils/version.js +1 -1
  271. package/lib/utils/with-active-cookie.js +1 -1
  272. package/lib/utils/write-cli-side-channel.js +1 -1
  273. package/package.json +1 -1
@@ -1 +1 @@
1
- const a181_0x309f13=a181_0x4ec5;(function(_0x3d32ea,_0x1a28c5){const _0x4d1281=a181_0x4ec5,_0x8ae6bf=_0x3d32ea();while(!![]){try{const _0x4c0beb=parseInt(_0x4d1281(0x178))/0x1*(parseInt(_0x4d1281(0x154))/0x2)+parseInt(_0x4d1281(0x175))/0x3*(parseInt(_0x4d1281(0x139))/0x4)+parseInt(_0x4d1281(0x174))/0x5+-parseInt(_0x4d1281(0x146))/0x6+parseInt(_0x4d1281(0x161))/0x7+parseInt(_0x4d1281(0x165))/0x8*(parseInt(_0x4d1281(0x172))/0x9)+-parseInt(_0x4d1281(0x149))/0xa*(parseInt(_0x4d1281(0x151))/0xb);if(_0x4c0beb===_0x1a28c5)break;else _0x8ae6bf['push'](_0x8ae6bf['shift']());}catch(_0x62ed9a){_0x8ae6bf['push'](_0x8ae6bf['shift']());}}}(a181_0x5292,0x85269));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';export const sqlValidate={'service':a181_0x309f13(0x147),'command':'validate','description':a181_0x309f13(0x16c),'risk':'read','flags':[{'name':a181_0x309f13(0x145),'type':'string','description':a181_0x309f13(0x143)},{'name':'sql','type':a181_0x309f13(0x152),'description':a181_0x309f13(0x148)},{'name':a181_0x309f13(0x16d),'type':a181_0x309f13(0x152),'description':a181_0x309f13(0x16f)},{'name':a181_0x309f13(0x16e),'type':a181_0x309f13(0x169),'description':a181_0x309f13(0x137)}],async 'execute'(_0x5d4373){const _0x49f3fc=a181_0x309f13,_0x35b581=_0x5d4373[_0x49f3fc(0x166)](_0x49f3fc(0x145)),_0x53102d=_0x5d4373[_0x49f3fc(0x166)](_0x49f3fc(0x147)),_0x241858=_0x5d4373[_0x49f3fc(0x166)](_0x49f3fc(0x16d)),_0x15e759=_0x5d4373['bool']('check-indexes');if(!_0x35b581&&!_0x53102d)throw CliErrors[_0x49f3fc(0x15d)](_0x49f3fc(0x145),_0x49f3fc(0x142));if(_0x15e759&&!_0x241858)throw CliErrors['validation'](_0x49f3fc(0x14f));let _0x17074c;if(_0x35b581){const _0x2c7053=resolve(process[_0x49f3fc(0x13b)](),_0x35b581);if(!existsSync(_0x2c7053))throw CliErrors[_0x49f3fc(0x14b)](_0x49f3fc(0x17a)+_0x2c7053);_0x17074c=readFileSync(_0x2c7053,_0x49f3fc(0x16b));}else _0x17074c=_0x53102d;const _0x40fc02=validateSql(_0x17074c),_0x4b1e84={'valid':_0x40fc02['valid'],'sqlType':_0x40fc02['sqlType'][_0x49f3fc(0x144)],'isSelectOnly':_0x40fc02['sqlType'][_0x49f3fc(0x173)],'isDangerous':_0x40fc02[_0x49f3fc(0x15e)][_0x49f3fc(0x160)],'tables':_0x40fc02[_0x49f3fc(0x136)],'parameters':_0x40fc02[_0x49f3fc(0x164)],'message':_0x40fc02['message']};_0x40fc02[_0x49f3fc(0x15e)][_0x49f3fc(0x168)]&&(_0x4b1e84[_0x49f3fc(0x168)]=_0x40fc02[_0x49f3fc(0x15e)]['reason']);if(_0x241858&&_0x40fc02[_0x49f3fc(0x159)]){const _0x525922=_0x241858['split'](',')[_0x49f3fc(0x138)](_0x7735a7=>_0x7735a7[_0x49f3fc(0x14e)]())[_0x49f3fc(0x171)](Boolean),_0x3a4dc3=[],_0x4c5a7a=[],_0x4ebd27=filterDbTableBackedDatasets(await listDatasets(_0x5d4373[_0x49f3fc(0x14c)])),_0x396f38=new Map(_0x4ebd27[_0x49f3fc(0x138)](_0x3f0f78=>[_0x3f0f78[_0x49f3fc(0x153)]?.[_0x49f3fc(0x14a)]?.[_0x49f3fc(0x13f)](),_0x3f0f78]));for(const _0xc5b56d of _0x40fc02['tables']){const _0x105222=_0x396f38[_0x49f3fc(0x13d)](_0xc5b56d['toLowerCase']());!_0x105222&&_0x3a4dc3[_0x49f3fc(0x170)](_0x49f3fc(0x14d)+_0xc5b56d+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x2072de of _0x525922){let _0x2b6e3f;try{_0x2b6e3f=await getDatasetDetail(_0x2072de);}catch{_0x3a4dc3['push'](_0x49f3fc(0x17b)+_0x2072de+_0x49f3fc(0x155));continue;}assertDatasetIsDbTableBacked(_0x2b6e3f,_0x49f3fc(0x176));const _0x519d19=Array[_0x49f3fc(0x167)](_0x2b6e3f[_0x49f3fc(0x157)])?_0x2b6e3f[_0x49f3fc(0x157)]:[],_0xb1eb05=new Set(_0x519d19['map'](_0x49aa22=>_0x49aa22[_0x49f3fc(0x15c)]?.[_0x49f3fc(0x13f)]())),_0x12c3e9=_0x2b6e3f['dbtableConfig']?.['tableName']||_0x2b6e3f[_0x49f3fc(0x14a)]||_0x2072de;_0x4b1e84[_0x49f3fc(0x13c)+_0x12c3e9]={'code':_0x2072de,'tableName':_0x12c3e9,'fieldCount':_0xb1eb05[_0x49f3fc(0x156)],'fields':Array['from'](_0xb1eb05)};if(_0x15e759){const _0x2ff6ab=normalizeDatasetIndexes(_0x2b6e3f);_0x4c5a7a[_0x49f3fc(0x170)]({'tableName':_0x12c3e9,..._0x2ff6ab});}}_0x3a4dc3[_0x49f3fc(0x15b)]>0x0&&(_0x4b1e84[_0x49f3fc(0x163)]=_0x3a4dc3),_0x15e759&&(_0x4b1e84[_0x49f3fc(0x16a)]=auditSqlJoinIndexes(_0x17074c,_0x4c5a7a));}return{'ok':_0x40fc02['valid'],'data':_0x4b1e84,'message':_0x40fc02['message']};}};function a181_0x4ec5(_0x4893a9,_0x2d10e4){_0x4893a9=_0x4893a9-0x136;const _0x529241=a181_0x5292();let _0x4ec5a4=_0x529241[_0x4893a9];return _0x4ec5a4;}function a181_0x5292(){const _0x20faa2=['get','index_name','toLowerCase','unshift','flatMap','Provide\x20--file\x20or\x20--sql','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','type','file','6003096vtOqVc','sql','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','3645490xYxGmy','tableName','validation','appCode','Table\x20\x22','trim','--check-indexes\x20requires\x20--schemas.','index_columns','55rdmByD','string','dbtableConfig','10tLIRRR','\x22\x20not\x20found\x20or\x20not\x20accessible','size','fields','columns','valid','indexName','length','name','flagMissing','sqlType','pkField','isDangerous','6641355fhZLJv','columnNames','schemaWarnings','parameters','1032GzPyVz','str','isArray','reason','boolean','joinAudit','utf-8','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','schemas','check-indexes','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','push','filter','26379DiIwpR','isSelectOnly','3322770bwlSAp','407082ulGQxa','SQL\x20schema\x20validation','dataset','85474SHeRhB','find','File\x20not\x20found:\x20','Dataset\x20\x22','tables','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','map','28saorUR','indexes','cwd','schema:'];a181_0x5292=function(){return _0x20faa2;};return a181_0x5292();}function normalizeDatasetIndexes(_0x5a0173){const _0x5b1a10=a181_0x309f13,_0x3472ea=Array['isArray'](_0x5a0173?.[_0x5b1a10(0x177)]?.['indexes'])?_0x5a0173[_0x5b1a10(0x177)][_0x5b1a10(0x13a)]:Array['isArray'](_0x5a0173?.[_0x5b1a10(0x13a)])?_0x5a0173[_0x5b1a10(0x13a)]:[],_0x3de94a=_0x3472ea[_0x5b1a10(0x141)](_0x26c253=>{const _0xf6dbc3=_0x5b1a10,_0x5b4877=Array[_0xf6dbc3(0x167)](_0x26c253?.[_0xf6dbc3(0x150)])?_0x26c253[_0xf6dbc3(0x150)]:Array[_0xf6dbc3(0x167)](_0x26c253?.[_0xf6dbc3(0x162)])?_0x26c253[_0xf6dbc3(0x162)]:Array[_0xf6dbc3(0x167)](_0x26c253?.[_0xf6dbc3(0x158)])?_0x26c253[_0xf6dbc3(0x158)]:[],_0x2ed0c9=_0x5b4877['filter'](_0x3d2f36=>typeof _0x3d2f36===_0xf6dbc3(0x152))[_0xf6dbc3(0x138)](_0x1c3602=>_0x1c3602[_0xf6dbc3(0x14e)]())[_0xf6dbc3(0x171)](Boolean);if(_0x2ed0c9[_0xf6dbc3(0x15b)]===0x0)return[];const _0x321ac6=[_0x26c253?.[_0xf6dbc3(0x15a)],_0x26c253?.[_0xf6dbc3(0x13e)],_0x26c253?.[_0xf6dbc3(0x15c)]][_0xf6dbc3(0x179)](_0x4d85d6=>typeof _0x4d85d6===_0xf6dbc3(0x152)&&_0x4d85d6[_0xf6dbc3(0x14e)]()),_0x4f8edb=[_0x26c253?.['index_type'],_0x26c253?.['type']][_0xf6dbc3(0x179)](_0x50a5d1=>typeof _0x50a5d1===_0xf6dbc3(0x152)&&_0x50a5d1[_0xf6dbc3(0x14e)]());return[{..._0x321ac6?{'name':_0x321ac6[_0xf6dbc3(0x14e)]()}:{},..._0x4f8edb?{'type':_0x4f8edb[_0xf6dbc3(0x14e)]()}:{},'columns':_0x2ed0c9}];}),_0xcd5a49=[..._0x3de94a],_0x4c262f=typeof _0x5a0173?.['dbtableConfig']?.[_0x5b1a10(0x15f)]===_0x5b1a10(0x152)?_0x5a0173[_0x5b1a10(0x153)]['pkField']['split'](',')['map'](_0x5cc6b4=>_0x5cc6b4[_0x5b1a10(0x14e)]())[_0x5b1a10(0x171)](Boolean):[];return _0x4c262f[_0x5b1a10(0x15b)]>0x0&&_0xcd5a49[_0x5b1a10(0x140)]({'type':'primary','columns':_0x4c262f}),{'indexes':_0xcd5a49,'metadataAvailable':_0x3de94a['length']>0x0};}
1
+ const a188_0x14ede3=a188_0x3066;(function(_0x243b9d,_0x189d1f){const _0x3b8ae9=a188_0x3066,_0x4e55f2=_0x243b9d();while(!![]){try{const _0xbcbd67=-parseInt(_0x3b8ae9(0xff))/0x1*(-parseInt(_0x3b8ae9(0x135))/0x2)+parseInt(_0x3b8ae9(0x112))/0x3+parseInt(_0x3b8ae9(0x126))/0x4+-parseInt(_0x3b8ae9(0x11b))/0x5+-parseInt(_0x3b8ae9(0x137))/0x6*(-parseInt(_0x3b8ae9(0x11a))/0x7)+parseInt(_0x3b8ae9(0x134))/0x8*(parseInt(_0x3b8ae9(0x101))/0x9)+-parseInt(_0x3b8ae9(0x10b))/0xa;if(_0xbcbd67===_0x189d1f)break;else _0x4e55f2['push'](_0x4e55f2['shift']());}catch(_0x26c969){_0x4e55f2['push'](_0x4e55f2['shift']());}}}(a188_0x2fdd,0x25dee));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a188_0x2fdd(){const _0x3a10=['2549799zkUghX','columns','schema:','flagMissing','pkField','Dataset\x20\x22','split','dbtableConfig','map','name','4851730aurUUe','Provide\x20--file\x20or\x20--sql','primary','schemaWarnings','push','unshift','toLowerCase','793488OoKRDV','find','type','str','length','check-indexes','sql','get','7klhBci','1372935baYCdz','fields','appCode','bool','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','valid','filter','Table\x20\x22','indexName','utf-8','message','1111492aizQWW','trim','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','file','index_columns','string','cwd','columnNames','parameters','schemas','read','isArray','reason','File\x20not\x20found:\x20','8ERMrWY','2mCXmoY','validate','327282YySrOa','flatMap','--check-indexes\x20requires\x20--schemas.','tables','validation','sqlType','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','index_type','tableName','indexes','isDangerous','34651VvLeQD','SQL\x20schema\x20validation'];a188_0x2fdd=function(){return _0x3a10;};return a188_0x2fdd();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a188_0x3066(_0x28dd54,_0x33458d){_0x28dd54=_0x28dd54-0xfe;const _0x2fdd84=a188_0x2fdd();let _0x3066f5=_0x2fdd84[_0x28dd54];return _0x3066f5;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a188_0x14ede3(0x118),'command':a188_0x14ede3(0x136),'description':a188_0x14ede3(0x13d),'risk':a188_0x14ede3(0x130),'flags':[{'name':a188_0x14ede3(0x129),'type':a188_0x14ede3(0x12b),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a188_0x14ede3(0x118),'type':a188_0x14ede3(0x12b),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a188_0x14ede3(0x12f),'type':'string','description':a188_0x14ede3(0x11f)},{'name':a188_0x14ede3(0x117),'type':'boolean','description':a188_0x14ede3(0x128)}],async 'execute'(_0x299795){const _0x29d3fc=a188_0x14ede3,_0x1bbb1d=_0x299795['str'](_0x29d3fc(0x129)),_0x3fe9b0=_0x299795[_0x29d3fc(0x115)](_0x29d3fc(0x118)),_0x57771b=_0x299795[_0x29d3fc(0x115)]('schemas'),_0x4c61b3=_0x299795[_0x29d3fc(0x11e)]('check-indexes');if(!_0x1bbb1d&&!_0x3fe9b0)throw CliErrors[_0x29d3fc(0x104)](_0x29d3fc(0x129),_0x29d3fc(0x10c));if(_0x4c61b3&&!_0x57771b)throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x139));let _0x43a001;if(_0x1bbb1d){const _0x4e0fa5=resolve(process[_0x29d3fc(0x12c)](),_0x1bbb1d);if(!existsSync(_0x4e0fa5))throw CliErrors[_0x29d3fc(0x13b)](_0x29d3fc(0x133)+_0x4e0fa5);_0x43a001=readFileSync(_0x4e0fa5,_0x29d3fc(0x124));}else _0x43a001=_0x3fe9b0;const _0x3024da=validateSql(_0x43a001),_0x13968e={'valid':_0x3024da[_0x29d3fc(0x120)],'sqlType':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x114)],'isSelectOnly':_0x3024da[_0x29d3fc(0x13c)]['isSelectOnly'],'isDangerous':_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0xfe)],'tables':_0x3024da[_0x29d3fc(0x13a)],'parameters':_0x3024da[_0x29d3fc(0x12e)],'message':_0x3024da[_0x29d3fc(0x125)]};_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]&&(_0x13968e[_0x29d3fc(0x132)]=_0x3024da[_0x29d3fc(0x13c)][_0x29d3fc(0x132)]);if(_0x57771b&&_0x3024da[_0x29d3fc(0x120)]){const _0x4f1a7a=_0x57771b[_0x29d3fc(0x107)](',')['map'](_0x5b4ad5=>_0x5b4ad5[_0x29d3fc(0x127)]())[_0x29d3fc(0x121)](Boolean),_0x1359d2=[],_0x1a832d=[],_0x2957bd=filterDbTableBackedDatasets(await listDatasets(_0x299795[_0x29d3fc(0x11d)])),_0x23f218=new Map(_0x2957bd[_0x29d3fc(0x109)](_0x32969a=>[_0x32969a['dbtableConfig']?.[_0x29d3fc(0x13f)]?.[_0x29d3fc(0x111)](),_0x32969a]));for(const _0x19b117 of _0x3024da[_0x29d3fc(0x13a)]){const _0x34eca4=_0x23f218[_0x29d3fc(0x119)](_0x19b117[_0x29d3fc(0x111)]());!_0x34eca4&&_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x122)+_0x19b117+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0xcef791 of _0x4f1a7a){let _0x392acf;try{_0x392acf=await getDatasetDetail(_0xcef791);}catch{_0x1359d2[_0x29d3fc(0x10f)](_0x29d3fc(0x106)+_0xcef791+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x392acf,_0x29d3fc(0x100));const _0x587d9d=Array[_0x29d3fc(0x131)](_0x392acf[_0x29d3fc(0x11c)])?_0x392acf[_0x29d3fc(0x11c)]:[],_0xadf58=new Set(_0x587d9d[_0x29d3fc(0x109)](_0x362c97=>_0x362c97[_0x29d3fc(0x10a)]?.[_0x29d3fc(0x111)]())),_0x1f92a5=_0x392acf[_0x29d3fc(0x108)]?.['tableName']||_0x392acf[_0x29d3fc(0x13f)]||_0xcef791;_0x13968e[_0x29d3fc(0x103)+_0x1f92a5]={'code':_0xcef791,'tableName':_0x1f92a5,'fieldCount':_0xadf58['size'],'fields':Array['from'](_0xadf58)};if(_0x4c61b3){const _0xcd14a3=normalizeDatasetIndexes(_0x392acf);_0x1a832d['push']({'tableName':_0x1f92a5,..._0xcd14a3});}}_0x1359d2[_0x29d3fc(0x116)]>0x0&&(_0x13968e[_0x29d3fc(0x10e)]=_0x1359d2),_0x4c61b3&&(_0x13968e['joinAudit']=auditSqlJoinIndexes(_0x43a001,_0x1a832d));}return{'ok':_0x3024da[_0x29d3fc(0x120)],'data':_0x13968e,'message':_0x3024da[_0x29d3fc(0x125)]};}};function normalizeDatasetIndexes(_0x2309c8){const _0x50b2af=a188_0x14ede3,_0x52b4ea=Array[_0x50b2af(0x131)](_0x2309c8?.['dataset']?.[_0x50b2af(0x140)])?_0x2309c8['dataset'][_0x50b2af(0x140)]:Array[_0x50b2af(0x131)](_0x2309c8?.[_0x50b2af(0x140)])?_0x2309c8[_0x50b2af(0x140)]:[],_0x29d177=_0x52b4ea[_0x50b2af(0x138)](_0x2abd33=>{const _0x1b59ce=_0x50b2af,_0xf59929=Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x12a)])?_0x2abd33['index_columns']:Array[_0x1b59ce(0x131)](_0x2abd33?.['columnNames'])?_0x2abd33[_0x1b59ce(0x12d)]:Array[_0x1b59ce(0x131)](_0x2abd33?.[_0x1b59ce(0x102)])?_0x2abd33[_0x1b59ce(0x102)]:[],_0x1ce4cf=_0xf59929['filter'](_0x592024=>typeof _0x592024===_0x1b59ce(0x12b))['map'](_0x2bd65a=>_0x2bd65a[_0x1b59ce(0x127)]())[_0x1b59ce(0x121)](Boolean);if(_0x1ce4cf['length']===0x0)return[];const _0x5d0bf9=[_0x2abd33?.[_0x1b59ce(0x123)],_0x2abd33?.['index_name'],_0x2abd33?.[_0x1b59ce(0x10a)]][_0x1b59ce(0x113)](_0x34b9c4=>typeof _0x34b9c4===_0x1b59ce(0x12b)&&_0x34b9c4[_0x1b59ce(0x127)]()),_0x47420b=[_0x2abd33?.[_0x1b59ce(0x13e)],_0x2abd33?.[_0x1b59ce(0x114)]]['find'](_0x3f9efb=>typeof _0x3f9efb===_0x1b59ce(0x12b)&&_0x3f9efb[_0x1b59ce(0x127)]());return[{..._0x5d0bf9?{'name':_0x5d0bf9['trim']()}:{},..._0x47420b?{'type':_0x47420b[_0x1b59ce(0x127)]()}:{},'columns':_0x1ce4cf}];}),_0x5db000=[..._0x29d177],_0x39e547=typeof _0x2309c8?.[_0x50b2af(0x108)]?.[_0x50b2af(0x105)]===_0x50b2af(0x12b)?_0x2309c8[_0x50b2af(0x108)]['pkField'][_0x50b2af(0x107)](',')[_0x50b2af(0x109)](_0x1d6258=>_0x1d6258['trim']())[_0x50b2af(0x121)](Boolean):[];return _0x39e547[_0x50b2af(0x116)]>0x0&&_0x5db000[_0x50b2af(0x110)]({'type':_0x50b2af(0x10d),'columns':_0x39e547}),{'indexes':_0x5db000,'metadataAvailable':_0x29d177[_0x50b2af(0x116)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x5a2d2b,_0x2cbe36){const _0x92b84c=a182_0x3491,_0x47a5d8=_0x5a2d2b();while(!![]){try{const _0x3ce3b=parseInt(_0x92b84c(0x1dc))/0x1*(parseInt(_0x92b84c(0x1e0))/0x2)+-parseInt(_0x92b84c(0x1e2))/0x3*(parseInt(_0x92b84c(0x1e3))/0x4)+-parseInt(_0x92b84c(0x1d9))/0x5*(parseInt(_0x92b84c(0x1da))/0x6)+parseInt(_0x92b84c(0x1db))/0x7*(-parseInt(_0x92b84c(0x1e5))/0x8)+-parseInt(_0x92b84c(0x1dd))/0x9*(parseInt(_0x92b84c(0x1e6))/0xa)+-parseInt(_0x92b84c(0x1de))/0xb*(-parseInt(_0x92b84c(0x1e4))/0xc)+-parseInt(_0x92b84c(0x1df))/0xd*(-parseInt(_0x92b84c(0x1e1))/0xe);if(_0x3ce3b===_0x2cbe36)break;else _0x47a5d8['push'](_0x47a5d8['shift']());}catch(_0x2fa868){_0x47a5d8['push'](_0x47a5d8['shift']());}}}(a182_0x2692,0x91fe9));function a182_0x3491(_0x5cd4ea,_0x5caeff){_0x5cd4ea=_0x5cd4ea-0x1d9;const _0x269203=a182_0x2692();let _0x3491ca=_0x269203[_0x5cd4ea];return _0x3491ca;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a182_0x2692(){const _0x3e4f57=['7OQHNQM','17oihIHE','9utmYKD','110lnIQQd','2193061WmcAUh','84174nPQUcu','252cjEgoT','2793954bKdgaL','4MwrMWJ','108672YySvPY','8346328WpttoU','8883670IlLgbO','230dvfDTK','49776LpZkTF'];a182_0x2692=function(){return _0x3e4f57;};return a182_0x2692();}
1
+ function a189_0xe3b8(_0x2d2921,_0x2eeff1){_0x2d2921=_0x2d2921-0x144;const _0x36cdf9=a189_0x36cd();let _0xe3b8cc=_0x36cdf9[_0x2d2921];return _0xe3b8cc;}(function(_0x391a3c,_0x4990bb){const _0x3d22f4=a189_0xe3b8,_0x15f131=_0x391a3c();while(!![]){try{const _0x1cdf6e=parseInt(_0x3d22f4(0x14b))/0x1*(parseInt(_0x3d22f4(0x149))/0x2)+-parseInt(_0x3d22f4(0x144))/0x3+-parseInt(_0x3d22f4(0x14e))/0x4*(parseInt(_0x3d22f4(0x14c))/0x5)+-parseInt(_0x3d22f4(0x14d))/0x6*(parseInt(_0x3d22f4(0x145))/0x7)+-parseInt(_0x3d22f4(0x14a))/0x8+-parseInt(_0x3d22f4(0x147))/0x9+parseInt(_0x3d22f4(0x146))/0xa*(parseInt(_0x3d22f4(0x148))/0xb);if(_0x1cdf6e===_0x4990bb)break;else _0x15f131['push'](_0x15f131['shift']());}catch(_0x4766d9){_0x15f131['push'](_0x15f131['shift']());}}}(a189_0x36cd,0x4f500));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a189_0x36cd(){const _0x3e95b7=['436068WeXglS','11QpHveL','768VpkBVq','4884776HiRuon','1453MhGjpQ','14215JfLCLO','18JaJLyN','808VyTqwP','1176588hcuYrU','1111299zvuwAc','18687140dIsbNO'];a189_0x36cd=function(){return _0x3e95b7;};return a189_0x36cd();}
@@ -1 +1 @@
1
- const a183_0x443961=a183_0xb92f;(function(_0x476b05,_0x55a604){const _0x44ec2a=a183_0xb92f,_0x91a233=_0x476b05();while(!![]){try{const _0xee52ff=parseInt(_0x44ec2a(0x17f))/0x1*(parseInt(_0x44ec2a(0x177))/0x2)+-parseInt(_0x44ec2a(0x176))/0x3+parseInt(_0x44ec2a(0x16c))/0x4+-parseInt(_0x44ec2a(0x17b))/0x5*(parseInt(_0x44ec2a(0x169))/0x6)+-parseInt(_0x44ec2a(0x17c))/0x7+parseInt(_0x44ec2a(0x17a))/0x8+parseInt(_0x44ec2a(0x16d))/0x9*(parseInt(_0x44ec2a(0x17d))/0xa);if(_0xee52ff===_0x55a604)break;else _0x91a233['push'](_0x91a233['shift']());}catch(_0x29895e){_0x91a233['push'](_0x91a233['shift']());}}}(a183_0x2b96,0x72293));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a183_0x2b96(){const _0x129451=['read','task',',\x20received\x20','appCode','trim','str','task-id','1844067zrNaXG','86hkmjdc','cookie','flagMissing','1982504YELdEA','5WbrICn','2776305KdGrAO','150mzjbIX','compress','10942PdChAh','status','string','apiError','taskId','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','3734202JUmRoD','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','isTerminal','1127160ZRSYLp','660699KVZLxX','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'];a183_0x2b96=function(){return _0x129451;};return a183_0x2b96();}function a183_0xb92f(_0x287b18,_0x4dd519){_0x287b18=_0x287b18-0x169;const _0x2b96de=a183_0x2b96();let _0xb92f27=_0x2b96de[_0x287b18];return _0xb92f27;}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a183_0x443961(0x170),'command':a183_0x443961(0x180),'description':a183_0x443961(0x184),'risk':a183_0x443961(0x16f),'defaultOutputFormat':a183_0x443961(0x17e),'structuredErrors':!![],'flags':[{'name':a183_0x443961(0x175),'type':a183_0x443961(0x181),'required':!![],'description':a183_0x443961(0x16e)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x21c0c6){const _0x4a6c12=a183_0x443961;if(!_0x21c0c6[_0x4a6c12(0x174)](_0x4a6c12(0x175))[_0x4a6c12(0x173)]())throw CliErrors[_0x4a6c12(0x179)](_0x4a6c12(0x175));},async 'execute'(_0x3270f4){const _0x375c4a=a183_0x443961,_0x5a0cc6=_0x3270f4[_0x375c4a(0x174)]('task-id')[_0x375c4a(0x173)](),_0x4c03cc=normalizeAsyncTask(await getAsyncTaskStatus(_0x5a0cc6,_0x3270f4['appCode'],_0x3270f4[_0x375c4a(0x178)]));if(_0x4c03cc[_0x375c4a(0x183)]!==_0x5a0cc6)throw CliErrors[_0x375c4a(0x182)](_0x375c4a(0x16a)+_0x5a0cc6+_0x375c4a(0x171)+_0x4c03cc[_0x375c4a(0x183)]+'.');const _0x8b0246=buildAsyncTaskStatusCommand(_0x4c03cc[_0x375c4a(0x183)],_0x3270f4[_0x375c4a(0x172)]);return{'ok':!![],'message':asyncTaskMessage(_0x4c03cc),'data':{'appCode':_0x3270f4['appCode'],..._0x4c03cc,'query':_0x4c03cc[_0x375c4a(0x16b)]?null:{'command':_0x8b0246}}};}};
1
+ const a190_0x53dffc=a190_0x35bc;(function(_0xe9bc93,_0xa038f8){const _0x42e137=a190_0x35bc,_0xa2943d=_0xe9bc93();while(!![]){try{const _0x2e8bb1=parseInt(_0x42e137(0x193))/0x1+parseInt(_0x42e137(0x190))/0x2+parseInt(_0x42e137(0x194))/0x3+parseInt(_0x42e137(0x1a0))/0x4*(parseInt(_0x42e137(0x19d))/0x5)+-parseInt(_0x42e137(0x199))/0x6*(parseInt(_0x42e137(0x192))/0x7)+parseInt(_0x42e137(0x1a1))/0x8*(-parseInt(_0x42e137(0x18e))/0x9)+-parseInt(_0x42e137(0x19e))/0xa;if(_0x2e8bb1===_0xa038f8)break;else _0xa2943d['push'](_0xa2943d['shift']());}catch(_0x44dbc8){_0xa2943d['push'](_0xa2943d['shift']());}}}(a190_0xa8b0,0x62e04));function a190_0xa8b0(){const _0x17ccf7=['read','str','isTerminal','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','266499DiMmLH','cookie','442370oCGnCI','apiError','2993207oGEGNy','670205bwiSyT','2134359hQQOnA','trim','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','status',',\x20received\x20','6MypXbj','flagMissing','taskId','appCode','4965PgiLZS','6136120xlriEI','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','204sVHYAI','56jWtoJK'];a190_0xa8b0=function(){return _0x17ccf7;};return a190_0xa8b0();}function a190_0x35bc(_0x1ac37e,_0x4187bd){_0x1ac37e=_0x1ac37e-0x18a;const _0xa8b0fe=a190_0xa8b0();let _0x35bcb7=_0xa8b0fe[_0x1ac37e];return _0x35bcb7;}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';export const taskStatus={'service':'task','command':a190_0x53dffc(0x197),'description':a190_0x53dffc(0x196),'risk':a190_0x53dffc(0x1a2),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a190_0x53dffc(0x18c),'type':'string','required':!![],'description':a190_0x53dffc(0x19f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1d8419){const _0x137faa=a190_0x53dffc;if(!_0x1d8419[_0x137faa(0x18a)](_0x137faa(0x18c))['trim']())throw CliErrors[_0x137faa(0x19a)](_0x137faa(0x18c));},async 'execute'(_0x12f1ab){const _0x43047a=a190_0x53dffc,_0x4aa98d=_0x12f1ab[_0x43047a(0x18a)](_0x43047a(0x18c))[_0x43047a(0x195)](),_0x337c50=normalizeAsyncTask(await getAsyncTaskStatus(_0x4aa98d,_0x12f1ab['appCode'],_0x12f1ab[_0x43047a(0x18f)]));if(_0x337c50[_0x43047a(0x19b)]!==_0x4aa98d)throw CliErrors[_0x43047a(0x191)](_0x43047a(0x18d)+_0x4aa98d+_0x43047a(0x198)+_0x337c50['taskId']+'.');const _0x1185c2=buildAsyncTaskStatusCommand(_0x337c50[_0x43047a(0x19b)],_0x12f1ab[_0x43047a(0x19c)]);return{'ok':!![],'message':asyncTaskMessage(_0x337c50),'data':{'appCode':_0x12f1ab[_0x43047a(0x19c)],..._0x337c50,'query':_0x337c50[_0x43047a(0x18b)]?null:{'command':_0x1185c2}}};}};
@@ -1 +1 @@
1
- const a184_0x344f5d=a184_0x2f9b;function a184_0x2f9b(_0x3be3dc,_0x54ebf2){_0x3be3dc=_0x3be3dc-0x89;const _0x5881b0=a184_0x5881();let _0x2f9b66=_0x5881b0[_0x3be3dc];return _0x2f9b66;}function a184_0x5881(){const _0x498e15=['add','workspace\x20add','91WblLbS','395JJwrHs','1FwAYUq','518510goxiIz','292dmSZgd','9TvarOn','1189226gniSmr','7601664eqArmw','6383223ohJmUf','32646CyIOkh','5733EwUVhP','write','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','12632QOsvfk'];a184_0x5881=function(){return _0x498e15;};return a184_0x5881();}(function(_0x37fc3f,_0x1634fb){const _0x2ad3aa=a184_0x2f9b,_0x2b29fa=_0x37fc3f();while(!![]){try{const _0xb690bb=-parseInt(_0x2ad3aa(0x98))/0x1*(-parseInt(_0x2ad3aa(0x8c))/0x2)+-parseInt(_0x2ad3aa(0x90))/0x3*(-parseInt(_0x2ad3aa(0x8a))/0x4)+parseInt(_0x2ad3aa(0x97))/0x5*(-parseInt(_0x2ad3aa(0x8f))/0x6)+-parseInt(_0x2ad3aa(0x96))/0x7*(-parseInt(_0x2ad3aa(0x93))/0x8)+parseInt(_0x2ad3aa(0x8b))/0x9*(parseInt(_0x2ad3aa(0x89))/0xa)+parseInt(_0x2ad3aa(0x8e))/0xb+-parseInt(_0x2ad3aa(0x8d))/0xc;if(_0xb690bb===_0x1634fb)break;else _0x2b29fa['push'](_0x2b29fa['shift']());}catch(_0x170f4a){_0x2b29fa['push'](_0x2b29fa['shift']());}}}(a184_0x5881,0x4ef94));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a184_0x344f5d(0x94),'description':a184_0x344f5d(0x92),'risk':a184_0x344f5d(0x91),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x110488=>validateAppName(_0x110488,a184_0x344f5d(0x95)),'execute':_0x1124fd=>runAppAdd(_0x1124fd,'workspace\x20add')};
1
+ const a191_0x202a0e=a191_0x3a58;function a191_0x1e78(){const _0x3dc8bc=['12bUVYea','1577562kXwEYe','40772720MZjmSE','1039287lMHOim','workspace\x20add','4430232xVrPvr','name','write','6420540gbxIeL','579186sOjawB','1456530lyzWCk','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','9XeUprq'];a191_0x1e78=function(){return _0x3dc8bc;};return a191_0x1e78();}function a191_0x3a58(_0x52d96b,_0x3547d7){_0x52d96b=_0x52d96b-0x158;const _0x1e78a6=a191_0x1e78();let _0x3a584a=_0x1e78a6[_0x52d96b];return _0x3a584a;}(function(_0x5137f8,_0x510467){const _0x3456b4=a191_0x3a58,_0x15e6af=_0x5137f8();while(!![]){try{const _0x4df1b8=-parseInt(_0x3456b4(0x15d))/0x1+parseInt(_0x3456b4(0x158))/0x2+-parseInt(_0x3456b4(0x15f))/0x3*(parseInt(_0x3456b4(0x15c))/0x4)+-parseInt(_0x3456b4(0x159))/0x5+-parseInt(_0x3456b4(0x161))/0x6+-parseInt(_0x3456b4(0x164))/0x7+parseInt(_0x3456b4(0x15e))/0x8*(parseInt(_0x3456b4(0x15b))/0x9);if(_0x4df1b8===_0x510467)break;else _0x15e6af['push'](_0x15e6af['shift']());}catch(_0x715bf){_0x15e6af['push'](_0x15e6af['shift']());}}}(a191_0x1e78,0xc8ca4));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a191_0x202a0e(0x15a),'risk':a191_0x202a0e(0x163),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a191_0x202a0e(0x162),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x735d7c=>validateAppName(_0x735d7c,'workspace\x20add'),'execute':_0x26ba25=>runAppAdd(_0x26ba25,a191_0x202a0e(0x160))};
@@ -1 +1 @@
1
- const a185_0x17faa9=a185_0x3123;(function(_0x23c22d,_0x2e7a7d){const _0x4ef892=a185_0x3123,_0x29768c=_0x23c22d();while(!![]){try{const _0x3a7b6b=parseInt(_0x4ef892(0xe3))/0x1+parseInt(_0x4ef892(0xfa))/0x2*(-parseInt(_0x4ef892(0x102))/0x3)+parseInt(_0x4ef892(0xf8))/0x4+parseInt(_0x4ef892(0xf6))/0x5*(-parseInt(_0x4ef892(0xea))/0x6)+parseInt(_0x4ef892(0xfb))/0x7*(-parseInt(_0x4ef892(0x110))/0x8)+-parseInt(_0x4ef892(0xe9))/0x9*(parseInt(_0x4ef892(0xf4))/0xa)+parseInt(_0x4ef892(0x115))/0xb*(parseInt(_0x4ef892(0xf2))/0xc);if(_0x3a7b6b===_0x2e7a7d)break;else _0x29768c['push'](_0x29768c['shift']());}catch(_0x273fe0){_0x29768c['push'](_0x29768c['shift']());}}}(a185_0x3660,0x4a965));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a185_0x17faa9(0x113),SAFE_PROFILE_KEYS=['appcode',a185_0x17faa9(0x10d),'apiDir',a185_0x17faa9(0x107),a185_0x17faa9(0xed),a185_0x17faa9(0x101),a185_0x17faa9(0xe6)],workspaceFlags=[{'name':'app','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0x10b)},{'name':'appcode','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe5)},{'name':'env','type':a185_0x17faa9(0xef),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a185_0x17faa9(0xee),'type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xfe)},{'name':a185_0x17faa9(0x11b),'type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0x10a),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe8),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a185_0x17faa9(0xef),'description':a185_0x17faa9(0xe7)}];function a185_0x3123(_0x2dd26a,_0x846acd){_0x2dd26a=_0x2dd26a-0xe3;const _0x3660af=a185_0x3660();let _0x312356=_0x3660af[_0x2dd26a];return _0x312356;}function isRecord(_0x53945d){const _0x29f0ea=a185_0x17faa9;return!!_0x53945d&&typeof _0x53945d===_0x29f0ea(0x11c)&&!Array['isArray'](_0x53945d);}function a185_0x3660(){const _0x357aa8=['1043VhUGvk','\x20workspace\x20','workspace.','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','\x20--appcode\x20<code>`.','project','riskLevel','3chBpzX','workspace','length','app','.\x20Credentials:\x20not\x20written.','format','write',').\x20Config:\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','env','\x20--app\x20','Missing\x20workspace\x20app\x20selector.','13720ZFjSAZ','trim','\x22\x20not\x20found.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Use\x20`','6589YTAfro','validation','apps','initialized','globalConfig','defaultApp','defaultFormat','object','208872NfJPLg','str','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','locale','Locale\x20for\x20this\x20workspace\x20app\x20profile','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','171twxOWU','30kXCDIz','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20(appcode:\x20','pageSize','apiDir','string','appcode','Invalid\x20appcode:\x20','18708fNyYHt','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','225070frserp','use','58245cAtlbq','init','1857472cCwAth','keys','1120318gdMdhY'];a185_0x3660=function(){return _0x357aa8;};return a185_0x3660();}function assertValidAppcode(_0x3f5184){const _0x4f5105=a185_0x17faa9,{valid:_0x345b35,message:_0x10488e}=validateAppcode(_0x3f5184);if(!_0x345b35)throw CliErrors[_0x4f5105(0x116)](_0x4f5105(0xf1)+_0x3f5184,_0x10488e);}function sanitizeProfile(_0x7c1756){if(!isRecord(_0x7c1756))return{};const _0x2631a4={};for(const _0x1aa981 of SAFE_PROFILE_KEYS){if(_0x7c1756[_0x1aa981]!==undefined)_0x2631a4[_0x1aa981]=_0x7c1756[_0x1aa981];}return _0x2631a4;}function cloneProfile(_0x298c62){return isRecord(_0x298c62)?{..._0x298c62}:{};}function collectWorkspaceProfileOverrides(_0x2043bb){const _0x30a784=a185_0x17faa9,_0x41865b={},_0x333ebb=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0x10d)),_0xf73f0a=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0xee)),_0x500e2e=_0x2043bb['str'](_0x30a784(0x11b)),_0xbabd42=_0x2043bb['flag'](_0x30a784(0xed)),_0x5c44f4=_0x2043bb['str']('riskLevel'),_0x37131f=_0x2043bb[_0x30a784(0xe4)](_0x30a784(0xe6));if(_0x333ebb)_0x41865b[_0x30a784(0x10d)]=_0x333ebb;if(_0xf73f0a)_0x41865b[_0x30a784(0xee)]=_0xf73f0a;if(_0x500e2e)_0x41865b[_0x30a784(0x107)]=_0x500e2e;if(_0xbabd42!==undefined&&_0xbabd42!=='')_0x41865b[_0x30a784(0xed)]=Number(_0xbabd42);if(_0x5c44f4)_0x41865b[_0x30a784(0x101)]=_0x5c44f4;if(_0x37131f)_0x41865b[_0x30a784(0xe6)]=_0x37131f;return _0x41865b;}async function validateWorkspaceArgs(_0x15583c){const _0x3a02df=a185_0x17faa9,_0x355d43=_0x15583c['str'](_0x3a02df(0x105))['trim'](),_0x4223c8=_0x15583c[_0x3a02df(0xe4)](_0x3a02df(0xf0))[_0x3a02df(0x111)]();if(!_0x355d43&&!_0x4223c8)throw CliErrors[_0x3a02df(0x116)](_0x3a02df(0x10f),_0x3a02df(0x114)+CLI_BIN_NAME+_0x3a02df(0xf3)+CLI_BIN_NAME+_0x3a02df(0x10c));if(_0x4223c8)assertValidAppcode(_0x4223c8);}function resolveKnownApps(){const _0x5fff7f=a185_0x17faa9,{config:_0x531616,layers:_0x3af07c}=readRawConfigWithLayers(),_0xfd23cb=isRecord(_0x531616['apps'])?_0x531616[_0x5fff7f(0x117)]:{},_0x3101d6=isRecord(_0x3af07c[_0x5fff7f(0x119)][_0x5fff7f(0x117)])?_0x3af07c[_0x5fff7f(0x119)]['apps']:{};return{..._0x3101d6,..._0xfd23cb};}async function configureWorkspace(_0x29bffe,_0x3756a2){const _0x11b1ce=a185_0x17faa9,_0x385ef6=_0x29bffe[_0x11b1ce(0xe4)](_0x11b1ce(0x105))[_0x11b1ce(0x111)](),_0x147378=_0x29bffe[_0x11b1ce(0xe4)](_0x11b1ce(0xf0))[_0x11b1ce(0x111)](),_0x318820=_0x385ef6||_0x147378;if(!_0x318820)throw CliErrors[_0x11b1ce(0x116)](_0x11b1ce(0x10f),_0x11b1ce(0x114)+CLI_BIN_NAME+_0x11b1ce(0xf3)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x147378)assertValidAppcode(_0x147378);const _0x2b7309=resolveWriteConfigPath(_0x11b1ce(0x100)),_0x199dbf=readConfigFile(_0x2b7309),_0x43613a=resolveKnownApps(),_0x11e99f=isRecord(_0x199dbf[_0x11b1ce(0x117)])?{..._0x199dbf[_0x11b1ce(0x117)]}:{},_0x1ec031=cloneProfile(_0x11e99f[_0x318820]),_0x51b9fe=sanitizeProfile(_0x43613a[_0x318820]),_0x4e9a1b=_0x147378?{}:_0x51b9fe,_0x36c399=_0x147378||_0x4e9a1b[_0x11b1ce(0xf0)];if(!_0x36c399){const _0x165050=Object[_0x11b1ce(0xf9)](_0x43613a),_0x20813a=_0x165050[_0x11b1ce(0x104)]===0x0?_0x11b1ce(0x114)+CLI_BIN_NAME+_0x11b1ce(0xfc)+_0x3756a2+_0x11b1ce(0x10e)+_0x318820+_0x11b1ce(0xff):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x165050['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x318820+_0x11b1ce(0x112),_0x20813a);}assertValidAppcode(String(_0x36c399));const _0x2ef2f7={..._0x4e9a1b,..._0x1ec031,'appcode':String(_0x36c399),...collectWorkspaceProfileOverrides(_0x29bffe)};return _0x11e99f[_0x318820]=_0x2ef2f7,_0x199dbf[_0x11b1ce(0x117)]=_0x11e99f,_0x199dbf[_0x11b1ce(0x11a)]=_0x318820,delete _0x199dbf[_0x11b1ce(0xf0)],delete _0x199dbf[_0x11b1ce(0x105)],_0x2ef2f7['env']&&(_0x199dbf['env']=_0x2ef2f7[_0x11b1ce(0x10d)]),writeConfigFile(_0x2b7309,_0x199dbf),{'ok':!![],'message':'Workspace\x20'+(_0x3756a2==='init'?_0x11b1ce(0x118):'updated')+':\x20'+_0x318820+_0x11b1ce(0xec)+_0x2ef2f7[_0x11b1ce(0xf0)]+_0x11b1ce(0x109)+_0x2b7309+_0x11b1ce(0x106),'data':{'operation':_0x11b1ce(0xfd)+_0x3756a2,'configPath':_0x2b7309,'app':_0x318820,'appcode':_0x2ef2f7[_0x11b1ce(0xf0)],'env':_0x2ef2f7[_0x11b1ce(0x10d)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a185_0x17faa9(0x103),'command':a185_0x17faa9(0xf7),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4cce39=>configureWorkspace(_0x4cce39,'init')},workspaceUseDefinition={'service':a185_0x17faa9(0x103),'command':a185_0x17faa9(0xf5),'description':a185_0x17faa9(0xeb),'risk':a185_0x17faa9(0x108),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x10f43d=>configureWorkspace(_0x10f43d,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a192_0x4a19db=a192_0x24f2;(function(_0x984031,_0x5734db){const _0x25c2e6=a192_0x24f2,_0x30c445=_0x984031();while(!![]){try{const _0x41e7e8=parseInt(_0x25c2e6(0xbc))/0x1*(parseInt(_0x25c2e6(0x98))/0x2)+-parseInt(_0x25c2e6(0x9d))/0x3+parseInt(_0x25c2e6(0xa3))/0x4*(-parseInt(_0x25c2e6(0x96))/0x5)+parseInt(_0x25c2e6(0xb4))/0x6*(parseInt(_0x25c2e6(0xa2))/0x7)+parseInt(_0x25c2e6(0x93))/0x8+parseInt(_0x25c2e6(0xaf))/0x9*(-parseInt(_0x25c2e6(0xbd))/0xa)+parseInt(_0x25c2e6(0xba))/0xb;if(_0x41e7e8===_0x5734db)break;else _0x30c445['push'](_0x30c445['shift']());}catch(_0x2ca798){_0x30c445['push'](_0x30c445['shift']());}}}(a192_0xc2bd,0xe4b7b));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+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a192_0x4a19db(0xb1),a192_0x4a19db(0xa5),a192_0x4a19db(0x95),a192_0x4a19db(0x8e),a192_0x4a19db(0xae),a192_0x4a19db(0x9f),a192_0x4a19db(0xb5)],workspaceFlags=[{'name':a192_0x4a19db(0xa6),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xa7)},{'name':a192_0x4a19db(0xb1),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x97)},{'name':a192_0x4a19db(0xa5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x94),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0xc6),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x4a19db(0xae),'type':a192_0x4a19db(0xa0),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a192_0x4a19db(0xb7),'enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x4a19db(0xb5),'type':a192_0x4a19db(0x99),'description':a192_0x4a19db(0x90)}];function isRecord(_0x3847c0){const _0x69bfbe=a192_0x4a19db;return!!_0x3847c0&&typeof _0x3847c0==='object'&&!Array[_0x69bfbe(0x9e)](_0x3847c0);}function a192_0x24f2(_0x5e451c,_0x2e1abf){_0x5e451c=_0x5e451c-0x8e;const _0xc2bdb=a192_0xc2bd();let _0x24f243=_0xc2bdb[_0x5e451c];return _0x24f243;}function assertValidAppcode(_0x2e2247){const _0x54333b=a192_0x4a19db,{valid:_0x1133a9,message:_0x5927d3}=validateAppcode(_0x2e2247);if(!_0x1133a9)throw CliErrors[_0x54333b(0xac)]('Invalid\x20appcode:\x20'+_0x2e2247,_0x5927d3);}function sanitizeProfile(_0x44de46){if(!isRecord(_0x44de46))return{};const _0x51e0d4={};for(const _0x87120a of SAFE_PROFILE_KEYS){if(_0x44de46[_0x87120a]!==undefined)_0x51e0d4[_0x87120a]=_0x44de46[_0x87120a];}return _0x51e0d4;}function cloneProfile(_0x49db0a){return isRecord(_0x49db0a)?{..._0x49db0a}:{};}function collectWorkspaceProfileOverrides(_0x2b2fe6){const _0x3e8390=a192_0x4a19db,_0x2ecc2a={},_0x32a75a=_0x2b2fe6[_0x3e8390(0xbe)]('env'),_0x230640=_0x2b2fe6['str'](_0x3e8390(0x95)),_0x10227e=_0x2b2fe6[_0x3e8390(0xbe)](_0x3e8390(0xbf)),_0x38b5b8=_0x2b2fe6[_0x3e8390(0x91)]('pageSize'),_0xc93a1b=_0x2b2fe6['str'](_0x3e8390(0x9f)),_0x3435e9=_0x2b2fe6[_0x3e8390(0xbe)]('locale');if(_0x32a75a)_0x2ecc2a[_0x3e8390(0xa5)]=_0x32a75a;if(_0x230640)_0x2ecc2a['apiDir']=_0x230640;if(_0x10227e)_0x2ecc2a['format']=_0x10227e;if(_0x38b5b8!==undefined&&_0x38b5b8!=='')_0x2ecc2a[_0x3e8390(0xae)]=Number(_0x38b5b8);if(_0xc93a1b)_0x2ecc2a[_0x3e8390(0x9f)]=_0xc93a1b;if(_0x3435e9)_0x2ecc2a[_0x3e8390(0xb5)]=_0x3435e9;return _0x2ecc2a;}async function validateWorkspaceArgs(_0x4bb04b){const _0x123883=a192_0x4a19db,_0x169d84=_0x4bb04b[_0x123883(0xbe)]('app')[_0x123883(0xc5)](),_0x12fa11=_0x4bb04b[_0x123883(0xbe)](_0x123883(0xb1))['trim']();if(!_0x169d84&&!_0x12fa11)throw CliErrors[_0x123883(0xac)](_0x123883(0x9b),'Use\x20`'+CLI_BIN_NAME+_0x123883(0x9c)+CLI_BIN_NAME+_0x123883(0xa4));if(_0x12fa11)assertValidAppcode(_0x12fa11);}function a192_0xc2bd(){const _0x25fa8f=['keys','\x20--appcode\x20<code>`.','use','trim','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','format','write','Locale\x20for\x20this\x20workspace\x20app\x20profile','flag','\x20workspace\x20','11953728IbPwAt','Target\x20environment','apiDir','7008740IjjzBA','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','4076PITmJo','string',').\x20Config:\x20','Missing\x20workspace\x20app\x20selector.','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','3252219SJEwrc','isArray','riskLevel','number','updated','33572yABQih','4JGVsVg','\x20workspace\x20use\x20--app\x20<name>`.','env','app','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace','\x22\x20not\x20found.','apps','length','validation','Use\x20`','pageSize','432yPOJfq','workspace.','appcode','globalConfig','\x20(appcode:\x20','726wzsJhf','locale','App\x20\x22','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Switch\x20the\x20current\x20workspace\x20app\x20binding','init','5225594kZcpYa','defaultApp','881lkDGtK','192170cVWzKi','str','defaultFormat','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Workspace\x20'];a192_0xc2bd=function(){return _0x25fa8f;};return a192_0xc2bd();}function resolveKnownApps(){const _0x5e3165=a192_0x4a19db,{config:_0x36196c,layers:_0x514dd3}=readRawConfigWithLayers(),_0x450df7=isRecord(_0x36196c[_0x5e3165(0xaa)])?_0x36196c[_0x5e3165(0xaa)]:{},_0x1fc2f4=isRecord(_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)])?_0x514dd3[_0x5e3165(0xb2)][_0x5e3165(0xaa)]:{};return{..._0x1fc2f4,..._0x450df7};}async function configureWorkspace(_0x11ee0b,_0x17cc5b){const _0x311587=a192_0x4a19db,_0x783a99=_0x11ee0b[_0x311587(0xbe)]('app')[_0x311587(0xc5)](),_0x5eafa7=_0x11ee0b[_0x311587(0xbe)](_0x311587(0xb1))['trim'](),_0x14aec4=_0x783a99||_0x5eafa7;if(!_0x14aec4)throw CliErrors[_0x311587(0xac)]('Missing\x20workspace\x20app\x20selector.',_0x311587(0xad)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5eafa7)assertValidAppcode(_0x5eafa7);const _0x3c6fcd=resolveWriteConfigPath('project'),_0x277b2c=readConfigFile(_0x3c6fcd),_0x327ada=resolveKnownApps(),_0x585e73=isRecord(_0x277b2c[_0x311587(0xaa)])?{..._0x277b2c[_0x311587(0xaa)]}:{},_0x84c149=cloneProfile(_0x585e73[_0x14aec4]),_0x7dda47=sanitizeProfile(_0x327ada[_0x14aec4]),_0x3d69b5=_0x5eafa7?{}:_0x7dda47,_0x43c050=_0x5eafa7||_0x3d69b5[_0x311587(0xb1)];if(!_0x43c050){const _0xc364ca=Object[_0x311587(0xc2)](_0x327ada),_0x3db5ab=_0xc364ca[_0x311587(0xab)]===0x0?_0x311587(0xad)+CLI_BIN_NAME+_0x311587(0x92)+_0x17cc5b+'\x20--app\x20'+_0x14aec4+_0x311587(0xc3):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0xc364ca['join'](',\x20');throw CliErrors[_0x311587(0xac)](_0x311587(0xb6)+_0x14aec4+_0x311587(0xa9),_0x3db5ab);}assertValidAppcode(String(_0x43c050));const _0x5597de={..._0x3d69b5,..._0x84c149,'appcode':String(_0x43c050),...collectWorkspaceProfileOverrides(_0x11ee0b)};return _0x585e73[_0x14aec4]=_0x5597de,_0x277b2c[_0x311587(0xaa)]=_0x585e73,_0x277b2c[_0x311587(0xbb)]=_0x14aec4,delete _0x277b2c[_0x311587(0xb1)],delete _0x277b2c[_0x311587(0xa6)],_0x5597de[_0x311587(0xa5)]&&(_0x277b2c[_0x311587(0xa5)]=_0x5597de['env']),writeConfigFile(_0x3c6fcd,_0x277b2c),{'ok':!![],'message':_0x311587(0xc1)+(_0x17cc5b==='init'?'initialized':_0x311587(0xa1))+':\x20'+_0x14aec4+_0x311587(0xb3)+_0x5597de[_0x311587(0xb1)]+_0x311587(0x9a)+_0x3c6fcd+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x311587(0xb0)+_0x17cc5b,'configPath':_0x3c6fcd,'app':_0x14aec4,'appcode':_0x5597de[_0x311587(0xb1)],'env':_0x5597de[_0x311587(0xa5)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x4a19db(0xa8),'command':a192_0x4a19db(0xb9),'description':a192_0x4a19db(0xc0),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb2c100=>configureWorkspace(_0xb2c100,'init')},workspaceUseDefinition={'service':a192_0x4a19db(0xa8),'command':'use','description':a192_0x4a19db(0xb8),'risk':a192_0x4a19db(0x8f),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5bb683=>configureWorkspace(_0x5bb683,a192_0x4a19db(0xc4))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a186_0x5beca5=a186_0x481f;(function(_0x166ddc,_0x427299){const _0x44809b=a186_0x481f,_0x1b9c52=_0x166ddc();while(!![]){try{const _0x42ce18=-parseInt(_0x44809b(0x78))/0x1*(parseInt(_0x44809b(0x74))/0x2)+parseInt(_0x44809b(0x76))/0x3+-parseInt(_0x44809b(0x75))/0x4*(parseInt(_0x44809b(0x7b))/0x5)+parseInt(_0x44809b(0x80))/0x6+parseInt(_0x44809b(0x7a))/0x7+parseInt(_0x44809b(0x7d))/0x8+-parseInt(_0x44809b(0x79))/0x9;if(_0x42ce18===_0x427299)break;else _0x1b9c52['push'](_0x1b9c52['shift']());}catch(_0x3df782){_0x1b9c52['push'](_0x1b9c52['shift']());}}}(a186_0x4144,0xe9161));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a186_0x481f(_0x17a679,_0x4a0a33){_0x17a679=_0x17a679-0x74;const _0x41446e=a186_0x4144();let _0x481f07=_0x41446e[_0x17a679];return _0x481f07;}export const workspaceRemoveDefinition={'service':a186_0x5beca5(0x82),'command':a186_0x5beca5(0x81),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a186_0x5beca5(0x7c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a186_0x5beca5(0x77),'description':a186_0x5beca5(0x7e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x2f8c4e=>validateAppName(_0x2f8c4e,a186_0x5beca5(0x7f)),'execute':_0x1aabb6=>runAppRemove(_0x1aabb6,'workspace\x20remove')};function a186_0x4144(){const _0x4373a1=['8683150wtmFyS','26695GHjDEf','high-risk-write','14687936rCXHmt','App\x20profile\x20name\x20to\x20remove','workspace\x20remove','3012624FdLiCe','remove','workspace','1210HGLGpJ','172ImhqSw','4122894AXSuZg','name','498psLMzw','31205304wAjKHy'];a186_0x4144=function(){return _0x4373a1;};return a186_0x4144();}
1
+ const a193_0x35d15d=a193_0x1fe8;function a193_0x209b(){const _0x44860b=['305418tQGOhk','208019dFIRQl','280FqwKUO','name','301108OzBCFa','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','3EZiIhV','1363150IllQjv','2876292QKkdVq','workspace','11742039ifeSPr','remove','145OvogLH','43755950ZVoghF'];a193_0x209b=function(){return _0x44860b;};return a193_0x209b();}(function(_0x1b7ffa,_0x1bd61b){const _0x67ca70=a193_0x1fe8,_0x21a3ed=_0x1b7ffa();while(!![]){try{const _0x3b26f1=-parseInt(_0x67ca70(0x14a))/0x1+-parseInt(_0x67ca70(0x14b))/0x2+-parseInt(_0x67ca70(0x149))/0x3*(-parseInt(_0x67ca70(0x146))/0x4)+-parseInt(_0x67ca70(0x14f))/0x5*(-parseInt(_0x67ca70(0x151))/0x6)+-parseInt(_0x67ca70(0x143))/0x7*(parseInt(_0x67ca70(0x144))/0x8)+-parseInt(_0x67ca70(0x14d))/0x9+parseInt(_0x67ca70(0x150))/0xa;if(_0x3b26f1===_0x1bd61b)break;else _0x21a3ed['push'](_0x21a3ed['shift']());}catch(_0x314a38){_0x21a3ed['push'](_0x21a3ed['shift']());}}}(a193_0x209b,0xbeac5));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x1fe8(_0x41d6d1,_0x5c26fd){_0x41d6d1=_0x41d6d1-0x143;const _0x209b14=a193_0x209b();let _0x1fe8e5=_0x209b14[_0x41d6d1];return _0x1fe8e5;}export const workspaceRemoveDefinition={'service':a193_0x35d15d(0x14c),'command':a193_0x35d15d(0x14e),'description':a193_0x35d15d(0x147),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x35d15d(0x145),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x393af3=>validateAppName(_0x393af3,'workspace\x20remove'),'execute':_0x2ca895=>runAppRemove(_0x2ca895,a193_0x35d15d(0x148))};
@@ -1 +1 @@
1
- const a187_0x2dfb95=a187_0x2f8c;(function(_0x53c229,_0x45f244){const _0x2172f7=a187_0x2f8c,_0x90e370=_0x53c229();while(!![]){try{const _0x48ff35=-parseInt(_0x2172f7(0x1c4))/0x1+-parseInt(_0x2172f7(0x1bd))/0x2+parseInt(_0x2172f7(0x1cc))/0x3+parseInt(_0x2172f7(0x1b3))/0x4*(parseInt(_0x2172f7(0x1ce))/0x5)+parseInt(_0x2172f7(0x1c9))/0x6+parseInt(_0x2172f7(0x1bb))/0x7*(parseInt(_0x2172f7(0x1bf))/0x8)+parseInt(_0x2172f7(0x1ae))/0x9*(-parseInt(_0x2172f7(0x1c3))/0xa);if(_0x48ff35===_0x45f244)break;else _0x90e370['push'](_0x90e370['shift']());}catch(_0x3cc4f3){_0x90e370['push'](_0x90e370['shift']());}}}(a187_0x26e0,0x91214));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1c7)];function a187_0x26e0(){const _0x508560=['6712UvlYGI','env','trim','Risk\x20level','22940oUudoi','959893izcgco','accessKey','join','riskLevel','pageSize','2368704GwfTRy','cookie','Auth\x20cookie','939015wcMNuH','Config\x20key\x20(','133660CqKzgk','defaultFormat','Default\x20page\x20size','filter','en-US','entries','locale','zh-CN','string','number','length','342DvwLvI','map','format','Locale','appcode','76BacAwZ','defaultApp','toLowerCase','Access\x20key','app','keys','apiDir','API\x20directory\x20path','7609VbNove','inherit','972346VvuuMi','apps'];a187_0x26e0=function(){return _0x508560;};return a187_0x26e0();}export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a187_0x2dfb95(0x1a9),a187_0x2dfb95(0x1b0),a187_0x2dfb95(0x1ca),a187_0x2dfb95(0x1c5),a187_0x2dfb95(0x1b9)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x26c3cf){const _0x18bad4=a187_0x2dfb95;return[..._0x26c3cf][_0x18bad4(0x1c6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a187_0x2f8c(_0x8aab27,_0x2ffe68){_0x8aab27=_0x8aab27-0x1a5;const _0x26e042=a187_0x26e0();let _0x2f8cc5=_0x26e042[_0x8aab27];return _0x2f8cc5;}export function isTopLevelConfigKey(_0x1f8b11){return TOP_LEVEL_CONFIG_KEYS['has'](_0x1f8b11);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x375d90=a187_0x2dfb95;return _0x375d90(0x1cd)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a187_0x2dfb95(0x1c0),'apiDir':a187_0x2dfb95(0x1b9),'cookie':a187_0x2dfb95(0x1ca),'accessKey':a187_0x2dfb95(0x1c5),'defaultFormat':a187_0x2dfb95(0x1b0),'pageSize':a187_0x2dfb95(0x1c8),'riskLevel':a187_0x2dfb95(0x1c7),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x23ff72=a187_0x2dfb95;return[{'name':_0x23ff72(0x1c0),'type':_0x23ff72(0x1ab),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x23ff72(0x1b9),'type':'string','description':_0x23ff72(0x1ba)},{'name':_0x23ff72(0x1ca),'type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1cb),'hidden':!![]},{'name':'accessKey','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b6),'hidden':!![]},{'name':_0x23ff72(0x1cf),'type':_0x23ff72(0x1ab),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x23ff72(0x1c8),'type':_0x23ff72(0x1ac),'description':_0x23ff72(0x1a5)},{'name':'riskLevel','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1c2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x23ff72(0x1ab),'description':_0x23ff72(0x1b1)}];}export function collectAppProfileOverrides(_0x125c50){const _0x7a9518=a187_0x2dfb95,_0x21f21c={};for(const [_0x5d0d4d,_0x440468]of Object[_0x7a9518(0x1a8)](APP_PROFILE_FLAG_KEY_MAP)){const _0x348858=_0x125c50(_0x5d0d4d);if(!_0x348858)continue;_0x21f21c[_0x440468]=_0x440468===_0x7a9518(0x1c8)?Number(_0x348858):_0x348858;}return _0x21f21c;}export function buildAppProfileListFields(_0x442567){const _0x43346b=a187_0x2dfb95;return{'env':_0x442567[_0x43346b(0x1c0)]??null,'apiDir':_0x442567[_0x43346b(0x1b9)]??null,'hasCookie':!!_0x442567[_0x43346b(0x1ca)],'hasAccessKey':!!_0x442567['accessKey'],'format':_0x442567[_0x43346b(0x1b0)]??null,'pageSize':_0x442567[_0x43346b(0x1c8)]??null,'riskLevel':_0x442567[_0x43346b(0x1c7)]??null,'locale':_0x442567[_0x43346b(0x1a9)]??null};}export function buildAppDoctorFields(_0x5babfe,_0x499022){const _0x29908d=a187_0x2dfb95;return{'env':{'value':_0x5babfe[_0x29908d(0x1c0)]||_0x499022['env'],'source':_0x5babfe[_0x29908d(0x1c0)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'apiDir':{'value':_0x5babfe[_0x29908d(0x1b9)]||_0x499022['apiDir'],'source':_0x5babfe[_0x29908d(0x1b9)]?_0x29908d(0x1b7):'inherit'},'cookie':{'value':_0x5babfe[_0x29908d(0x1ca)]||_0x499022[_0x29908d(0x1ca)],'source':_0x5babfe[_0x29908d(0x1ca)]?_0x29908d(0x1b7):_0x29908d(0x1bc)},'accessKey':{'value':_0x5babfe[_0x29908d(0x1c5)]||_0x499022[_0x29908d(0x1c5)],'source':_0x5babfe[_0x29908d(0x1c5)]?_0x29908d(0x1b7):_0x29908d(0x1bc)}};}export function buildCanonicalAppConfig(_0x3f6da4,_0x5b0f47){const _0x44ec4f=a187_0x2dfb95,_0xb934de=_0x3f6da4[_0x44ec4f(0x1af)](_0x315bc2=>String(_0x315bc2||'')[_0x44ec4f(0x1c1)]())[_0x44ec4f(0x1a6)](Boolean);if(_0xb934de[_0x44ec4f(0x1ad)]===0x0)return{};const _0x5d6cc1={};for(const _0x1d589c of _0xb934de){_0x5d6cc1[_0x1d589c]=_0x5b0f47?{'appcode':_0x1d589c,'env':_0x5b0f47}:{'appcode':_0x1d589c};}return{'apps':_0x5d6cc1,'defaultApp':_0xb934de[0x0]};}export function buildCanonicalProjectConfig(_0x1096bd,_0x540281){const _0x1ebde8=a187_0x2dfb95,{appCodes:appCodes=[],env:_0x7b5e1f,metadata:_0x51b503}=_0x540281,_0x5538bd={..._0x1096bd,..._0x51b503||{}};delete _0x5538bd[_0x1ebde8(0x1b2)],delete _0x5538bd['app'];if(_0x7b5e1f)_0x5538bd[_0x1ebde8(0x1c0)]=_0x7b5e1f;else!_0x5538bd['env']&&(_0x5538bd[_0x1ebde8(0x1c0)]=DEFAULT_CONFIG_VALUES['env']);const _0x2e9c08=buildCanonicalAppConfig(appCodes,_0x5538bd[_0x1ebde8(0x1c0)]);return Object[_0x1ebde8(0x1b8)](_0x2e9c08)['length']>0x0&&(_0x5538bd[_0x1ebde8(0x1be)]=_0x2e9c08[_0x1ebde8(0x1be)],_0x5538bd[_0x1ebde8(0x1b4)]=_0x2e9c08['defaultApp']),_0x5538bd;}const LOCALE_MAP={'zh':a187_0x2dfb95(0x1aa),'zh-cn':a187_0x2dfb95(0x1aa),'zh_cn':a187_0x2dfb95(0x1aa),'en':'en-US','en-us':'en-US','en_us':a187_0x2dfb95(0x1a7)};export function normalizeLocale(_0xd8ef6){const _0x1516a7=a187_0x2dfb95;if(!_0xd8ef6)return null;return LOCALE_MAP[_0xd8ef6[_0x1516a7(0x1b5)]()]??null;}
1
+ const a194_0x5db17b=a194_0x37ab;(function(_0x2b4c2b,_0x390623){const _0x73ecac=a194_0x37ab,_0x40119d=_0x2b4c2b();while(!![]){try{const _0x328014=parseInt(_0x73ecac(0x1d6))/0x1*(parseInt(_0x73ecac(0x1e5))/0x2)+-parseInt(_0x73ecac(0x1f0))/0x3*(-parseInt(_0x73ecac(0x1d5))/0x4)+parseInt(_0x73ecac(0x1ef))/0x5*(parseInt(_0x73ecac(0x1c9))/0x6)+parseInt(_0x73ecac(0x1ea))/0x7+parseInt(_0x73ecac(0x1d8))/0x8*(parseInt(_0x73ecac(0x1e3))/0x9)+parseInt(_0x73ecac(0x1de))/0xa+parseInt(_0x73ecac(0x1e1))/0xb*(-parseInt(_0x73ecac(0x1ed))/0xc);if(_0x328014===_0x390623)break;else _0x40119d['push'](_0x40119d['shift']());}catch(_0x493c65){_0x40119d['push'](_0x40119d['shift']());}}}(a194_0x522b,0x35f2f));function a194_0x522b(){const _0x409b0d=['entries','9rgPsVV','filter','346YdRfgk','join','defaultFormat','inherit','apps','885374aMxElH','Auth\x20cookie','accessKey','2064pydcgx','locale','15cWZlpE','396PlRQdP','Default\x20page\x20size','env','cookie','660798GdRaaA','number','trim','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','keys','apiDir','Access\x20key','riskLevel','app','pageSize','defaultApp','1464uFVrpd','1322wOXfxd','zh-CN','481672nHaDBF','has','toLowerCase','appcode','length','API\x20directory\x20path','2361270ptEFrt','en-US','string','51755hFAJVm'];a194_0x522b=function(){return _0x409b0d;};return a194_0x522b();}function a194_0x37ab(_0x4cd520,_0x244a53){_0x4cd520=_0x4cd520-0x1c9;const _0x522bed=a194_0x522b();let _0x37ab8e=_0x522bed[_0x4cd520];return _0x37ab8e;}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=['cookie',a194_0x5db17b(0x1ec),a194_0x5db17b(0x1ee),a194_0x5db17b(0x1cc),a194_0x5db17b(0x1d1)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a194_0x5db17b(0x1f2),a194_0x5db17b(0x1ee),'format',a194_0x5db17b(0x1f3),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x37e051){const _0x396197=a194_0x5db17b;return[..._0x37e051][_0x396197(0x1e6)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xaade22){const _0x5bf3cc=a194_0x5db17b;return TOP_LEVEL_CONFIG_KEYS[_0x5bf3cc(0x1d9)](_0xaade22);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5db17b(0x1f2),'apiDir':a194_0x5db17b(0x1cf),'cookie':a194_0x5db17b(0x1f3),'accessKey':a194_0x5db17b(0x1ec),'defaultFormat':a194_0x5db17b(0x1cc),'pageSize':a194_0x5db17b(0x1d3),'riskLevel':a194_0x5db17b(0x1d1),'locale':a194_0x5db17b(0x1ee)};export function getAppProfileFlagDefs(){const _0x134194=a194_0x5db17b;return[{'name':_0x134194(0x1f2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x134194(0x1e0),'description':_0x134194(0x1dd)},{'name':_0x134194(0x1f3),'type':'string','description':_0x134194(0x1eb),'hidden':!![]},{'name':_0x134194(0x1ec),'type':_0x134194(0x1e0),'description':_0x134194(0x1d0),'hidden':!![]},{'name':_0x134194(0x1e7),'type':_0x134194(0x1e0),'description':_0x134194(0x1cd),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x134194(0x1d3),'type':_0x134194(0x1ca),'description':_0x134194(0x1f1)},{'name':_0x134194(0x1d1),'type':_0x134194(0x1e0),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x134194(0x1ee),'type':_0x134194(0x1e0),'description':'Locale'}];}export function collectAppProfileOverrides(_0x194664){const _0x7c9b84=a194_0x5db17b,_0x4a804b={};for(const [_0x1aad82,_0x2052b4]of Object[_0x7c9b84(0x1e2)](APP_PROFILE_FLAG_KEY_MAP)){const _0x520f27=_0x194664(_0x1aad82);if(!_0x520f27)continue;_0x4a804b[_0x2052b4]=_0x2052b4==='pageSize'?Number(_0x520f27):_0x520f27;}return _0x4a804b;}export function buildAppProfileListFields(_0x473178){const _0x52d05d=a194_0x5db17b;return{'env':_0x473178['env']??null,'apiDir':_0x473178[_0x52d05d(0x1cf)]??null,'hasCookie':!!_0x473178[_0x52d05d(0x1f3)],'hasAccessKey':!!_0x473178['accessKey'],'format':_0x473178[_0x52d05d(0x1cc)]??null,'pageSize':_0x473178['pageSize']??null,'riskLevel':_0x473178[_0x52d05d(0x1d1)]??null,'locale':_0x473178[_0x52d05d(0x1ee)]??null};}export function buildAppDoctorFields(_0x55dd45,_0x861df5){const _0x4d2016=a194_0x5db17b;return{'env':{'value':_0x55dd45[_0x4d2016(0x1f2)]||_0x861df5[_0x4d2016(0x1f2)],'source':_0x55dd45[_0x4d2016(0x1f2)]?'app':_0x4d2016(0x1e8)},'apiDir':{'value':_0x55dd45[_0x4d2016(0x1cf)]||_0x861df5[_0x4d2016(0x1cf)],'source':_0x55dd45[_0x4d2016(0x1cf)]?'app':_0x4d2016(0x1e8)},'cookie':{'value':_0x55dd45['cookie']||_0x861df5[_0x4d2016(0x1f3)],'source':_0x55dd45[_0x4d2016(0x1f3)]?_0x4d2016(0x1d2):_0x4d2016(0x1e8)},'accessKey':{'value':_0x55dd45[_0x4d2016(0x1ec)]||_0x861df5[_0x4d2016(0x1ec)],'source':_0x55dd45['accessKey']?_0x4d2016(0x1d2):_0x4d2016(0x1e8)}};}export function buildCanonicalAppConfig(_0x43bbd2,_0x449131){const _0x450e61=a194_0x5db17b,_0x36316c=_0x43bbd2['map'](_0x5d3b19=>String(_0x5d3b19||'')[_0x450e61(0x1cb)]())[_0x450e61(0x1e4)](Boolean);if(_0x36316c['length']===0x0)return{};const _0x21e3a6={};for(const _0x3ba578 of _0x36316c){_0x21e3a6[_0x3ba578]=_0x449131?{'appcode':_0x3ba578,'env':_0x449131}:{'appcode':_0x3ba578};}return{'apps':_0x21e3a6,'defaultApp':_0x36316c[0x0]};}export function buildCanonicalProjectConfig(_0x39f85f,_0x58b975){const _0x55d4e1=a194_0x5db17b,{appCodes:appCodes=[],env:_0xf7b8e7,metadata:_0xa9b2a2}=_0x58b975,_0x340f20={..._0x39f85f,..._0xa9b2a2||{}};delete _0x340f20[_0x55d4e1(0x1db)],delete _0x340f20[_0x55d4e1(0x1d2)];if(_0xf7b8e7)_0x340f20[_0x55d4e1(0x1f2)]=_0xf7b8e7;else!_0x340f20['env']&&(_0x340f20[_0x55d4e1(0x1f2)]=DEFAULT_CONFIG_VALUES[_0x55d4e1(0x1f2)]);const _0x1f9f93=buildCanonicalAppConfig(appCodes,_0x340f20[_0x55d4e1(0x1f2)]);return Object[_0x55d4e1(0x1ce)](_0x1f9f93)[_0x55d4e1(0x1dc)]>0x0&&(_0x340f20[_0x55d4e1(0x1e9)]=_0x1f9f93['apps'],_0x340f20[_0x55d4e1(0x1d4)]=_0x1f9f93[_0x55d4e1(0x1d4)]),_0x340f20;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':a194_0x5db17b(0x1d7),'en':'en-US','en-us':a194_0x5db17b(0x1df),'en_us':a194_0x5db17b(0x1df)};export function normalizeLocale(_0x13bf9f){const _0x4dedac=a194_0x5db17b;if(!_0x13bf9f)return null;return LOCALE_MAP[_0x13bf9f[_0x4dedac(0x1da)]()]??null;}
@@ -1 +1 @@
1
- function a188_0x5d1b(){const _0x2bba12=['4NbOWaZ','642600zwoJax','10254EBHJFa','1056295BorTod','36tbHzkz','1142086mkwUIG','82LlSuIP','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5380KSCZeB','1588300HmBahE','1297386bKFlKa','819lWdnjx','16folOqu'];a188_0x5d1b=function(){return _0x2bba12;};return a188_0x5d1b();}function a188_0x27e2(_0x357310,_0x4ad1fd){_0x357310=_0x357310-0x9a;const _0x5d1b98=a188_0x5d1b();let _0x27e2a4=_0x5d1b98[_0x357310];return _0x27e2a4;}const a188_0x42b2f3=a188_0x27e2;(function(_0x55bf2d,_0x5e8680){const _0x8efcf2=a188_0x27e2,_0x5152db=_0x55bf2d();while(!![]){try{const _0x4bc48f=-parseInt(_0x8efcf2(0x9a))/0x1*(parseInt(_0x8efcf2(0xa5))/0x2)+-parseInt(_0x8efcf2(0xa0))/0x3+parseInt(_0x8efcf2(0x9f))/0x4*(parseInt(_0x8efcf2(0xa2))/0x5)+parseInt(_0x8efcf2(0xa1))/0x6*(parseInt(_0x8efcf2(0x9d))/0x7)+parseInt(_0x8efcf2(0x9e))/0x8*(-parseInt(_0x8efcf2(0x9c))/0x9)+parseInt(_0x8efcf2(0x9b))/0xa+-parseInt(_0x8efcf2(0xa4))/0xb*(-parseInt(_0x8efcf2(0xa3))/0xc);if(_0x4bc48f===_0x5e8680)break;else _0x5152db['push'](_0x5152db['shift']());}catch(_0x18c8f4){_0x5152db['push'](_0x5152db['shift']());}}}(a188_0x5d1b,0x26ae0));export const CLI_VERSION_POLICY_URL=a188_0x42b2f3(0xa6);
1
+ function a195_0x1af3(_0x5b8288,_0x1c9d38){_0x5b8288=_0x5b8288-0x1cd;const _0x2cde33=a195_0x2cde();let _0x1af3d0=_0x2cde33[_0x5b8288];return _0x1af3d0;}const a195_0x57ffc5=a195_0x1af3;(function(_0x4e177c,_0x3bf3a4){const _0x194e3e=a195_0x1af3,_0x28a4ca=_0x4e177c();while(!![]){try{const _0x2d3315=-parseInt(_0x194e3e(0x1d2))/0x1+-parseInt(_0x194e3e(0x1d6))/0x2+parseInt(_0x194e3e(0x1cf))/0x3*(-parseInt(_0x194e3e(0x1d3))/0x4)+parseInt(_0x194e3e(0x1d0))/0x5*(parseInt(_0x194e3e(0x1d1))/0x6)+parseInt(_0x194e3e(0x1d5))/0x7+parseInt(_0x194e3e(0x1d4))/0x8+parseInt(_0x194e3e(0x1cd))/0x9;if(_0x2d3315===_0x3bf3a4)break;else _0x28a4ca['push'](_0x28a4ca['shift']());}catch(_0x4b43b4){_0x28a4ca['push'](_0x28a4ca['shift']());}}}(a195_0x2cde,0x57c61));function a195_0x2cde(){const _0x56e421=['1184192xAHMvZ','4944544OGNuCl','834127UcOnfv','57554NfSZKY','488781LVzCZy','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3MmBCuC','25yOionI','125286ZBIBgm','211597iAXEgI'];a195_0x2cde=function(){return _0x56e421;};return a195_0x2cde();}export const CLI_VERSION_POLICY_URL=a195_0x57ffc5(0x1ce);
@@ -1 +1 @@
1
- const a189_0x3a44f2=a189_0xf1d5;(function(_0x132502,_0x5449e0){const _0x5880a8=a189_0xf1d5,_0x2d6974=_0x132502();while(!![]){try{const _0x3bc448=parseInt(_0x5880a8(0x17f))/0x1+parseInt(_0x5880a8(0x1a1))/0x2*(-parseInt(_0x5880a8(0x14b))/0x3)+parseInt(_0x5880a8(0x19e))/0x4+parseInt(_0x5880a8(0x1a5))/0x5*(-parseInt(_0x5880a8(0x1a9))/0x6)+-parseInt(_0x5880a8(0x15e))/0x7*(parseInt(_0x5880a8(0x152))/0x8)+parseInt(_0x5880a8(0x164))/0x9*(-parseInt(_0x5880a8(0x147))/0xa)+parseInt(_0x5880a8(0x17c))/0xb*(parseInt(_0x5880a8(0x19f))/0xc);if(_0x3bc448===_0x5449e0)break;else _0x2d6974['push'](_0x2d6974['shift']());}catch(_0x4184c3){_0x2d6974['push'](_0x2d6974['shift']());}}}(a189_0xd1ae,0x84947));export const CLI_BIN_NAME=a189_0x3a44f2(0x168);export const CLI_DISPLAY_NAME=a189_0x3a44f2(0x148);export const NPM_PACKAGE_NAME=a189_0x3a44f2(0x153);export const GLOBAL_FLAGS=[{'name':a189_0x3a44f2(0x1a3),'meowKey':a189_0x3a44f2(0x1a3),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x19d),'hint':a189_0x3a44f2(0x159)},{'name':a189_0x3a44f2(0x1a0),'meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a189_0x3a44f2(0x157)},{'name':a189_0x3a44f2(0x14f),'meowKey':a189_0x3a44f2(0x14f),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x13c),'hint':a189_0x3a44f2(0x1b4)},{'name':'format','meowKey':a189_0x3a44f2(0x161),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17a),'hint':a189_0x3a44f2(0x1ae)},{'name':'jq','meowKey':'jq','type':'string','description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a189_0x3a44f2(0x15c)},{'name':a189_0x3a44f2(0x13d),'meowKey':a189_0x3a44f2(0x163),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x162)},{'name':a189_0x3a44f2(0x15a),'meowKey':'yes','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x15b)},{'name':a189_0x3a44f2(0x138),'meowKey':'nonInteractive','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x19a)},{'name':a189_0x3a44f2(0x171),'meowKey':'global','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x186)},{'name':a189_0x3a44f2(0x1a8),'meowKey':a189_0x3a44f2(0x1a8),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x134)},{'name':'ci','meowKey':'ci','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x16b),'hidden':!![]},{'name':a189_0x3a44f2(0x17e),'meowKey':a189_0x3a44f2(0x17e),'type':a189_0x3a44f2(0x1ac),'description':'Show\x20help'},{'name':a189_0x3a44f2(0x143),'meowKey':a189_0x3a44f2(0x143),'type':'string','description':a189_0x3a44f2(0x182),'hidden':!![]},{'name':'title','meowKey':a189_0x3a44f2(0x14e),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x17b),'hidden':!![]},{'name':a189_0x3a44f2(0x1aa),'meowKey':a189_0x3a44f2(0x1aa),'type':a189_0x3a44f2(0x1ac),'description':'Clear','hidden':!![]},{'name':a189_0x3a44f2(0x178),'meowKey':'watch','type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x151),'hidden':!![]},{'name':'output','meowKey':'output','type':'string','description':a189_0x3a44f2(0x19c),'hidden':!![]},{'name':'params','meowKey':a189_0x3a44f2(0x197),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x198),'hidden':!![]},{'name':a189_0x3a44f2(0x15f),'meowKey':a189_0x3a44f2(0x15f),'type':a189_0x3a44f2(0x172),'description':'Dataset\x20code','hidden':!![]},{'name':a189_0x3a44f2(0x18c),'meowKey':a189_0x3a44f2(0x18c),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x184),'hidden':!![]},{'name':'enable-bff-save','meowKey':a189_0x3a44f2(0x167),'type':a189_0x3a44f2(0x1ac),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x185),'hidden':!![]},{'name':a189_0x3a44f2(0x19b),'meowKey':a189_0x3a44f2(0x19b),'type':a189_0x3a44f2(0x172),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':'file','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x137),'hidden':!![]},{'name':a189_0x3a44f2(0x1a7),'meowKey':'sqlcode','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18e),'hidden':!![]},{'name':'sql-name','meowKey':a189_0x3a44f2(0x1b2),'type':'string','description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x145),'meowKey':a189_0x3a44f2(0x145),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x177),'hidden':!![]},{'name':a189_0x3a44f2(0x156),'meowKey':'dbId','type':'string','description':a189_0x3a44f2(0x194),'hidden':!![]},{'name':a189_0x3a44f2(0x16c),'meowKey':a189_0x3a44f2(0x16c),'type':a189_0x3a44f2(0x172),'description':'DB\x20ID','hidden':!![]},{'name':a189_0x3a44f2(0x136),'meowKey':a189_0x3a44f2(0x136),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x165),'hidden':!![]},{'name':a189_0x3a44f2(0x195),'meowKey':a189_0x3a44f2(0x18b),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x142),'hidden':!![]},{'name':a189_0x3a44f2(0x1b1),'meowKey':a189_0x3a44f2(0x1b1),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x188),'hidden':!![]},{'name':a189_0x3a44f2(0x154),'meowKey':a189_0x3a44f2(0x154),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x140),'hidden':!![]},{'name':a189_0x3a44f2(0x16d),'meowKey':a189_0x3a44f2(0x16d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x196),'hidden':!![]},{'name':a189_0x3a44f2(0x150),'meowKey':'code','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x181),'hidden':!![]},{'name':'sql','meowKey':a189_0x3a44f2(0x13e),'type':a189_0x3a44f2(0x172),'description':'SQL\x20string','hidden':!![]},{'name':a189_0x3a44f2(0x1b0),'meowKey':a189_0x3a44f2(0x1b0),'type':'string','description':a189_0x3a44f2(0x183),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':a189_0x3a44f2(0x1a2),'meowKey':a189_0x3a44f2(0x1a2),'type':'string','description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':'boolean','description':a189_0x3a44f2(0x13a),'hidden':!![]},{'name':a189_0x3a44f2(0x139),'meowKey':'key','type':'string','description':a189_0x3a44f2(0x173),'hidden':!![]},{'name':a189_0x3a44f2(0x193),'meowKey':'value','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18f),'hidden':!![]},{'name':a189_0x3a44f2(0x14d),'meowKey':a189_0x3a44f2(0x14d),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16f),'hidden':!![]},{'name':a189_0x3a44f2(0x166),'meowKey':'stdin','type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a189_0x3a44f2(0x17d),'meowKey':a189_0x3a44f2(0x170),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x16a),'hidden':!![]},{'name':a189_0x3a44f2(0x169),'meowKey':'reveal','type':'boolean','description':a189_0x3a44f2(0x14c),'hidden':!![]},{'name':a189_0x3a44f2(0x13f),'meowKey':a189_0x3a44f2(0x13f),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x1ad),'hidden':!![]},{'name':a189_0x3a44f2(0x160),'meowKey':a189_0x3a44f2(0x160),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x146),'hidden':!![]},{'name':a189_0x3a44f2(0x14a),'meowKey':a189_0x3a44f2(0x14a),'type':a189_0x3a44f2(0x1ac),'description':a189_0x3a44f2(0x199),'hidden':!![]},{'name':a189_0x3a44f2(0x15d),'meowKey':a189_0x3a44f2(0x15d),'type':'boolean','description':a189_0x3a44f2(0x192),'hidden':!![]},{'name':a189_0x3a44f2(0x1af),'meowKey':'expectedCount','type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x1b3),'hidden':!![]},{'name':a189_0x3a44f2(0x144),'meowKey':a189_0x3a44f2(0x144),'type':'string','description':a189_0x3a44f2(0x141),'hidden':!![]},{'name':a189_0x3a44f2(0x180),'meowKey':a189_0x3a44f2(0x187),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x174),'hidden':!![]},{'name':a189_0x3a44f2(0x13b),'meowKey':'sort','type':a189_0x3a44f2(0x172),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a189_0x3a44f2(0x1a6),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x133),'hidden':!![]},{'name':a189_0x3a44f2(0x155),'meowKey':a189_0x3a44f2(0x175),'type':a189_0x3a44f2(0x172),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':'expected-children-count','meowKey':a189_0x3a44f2(0x18a),'type':'string','description':a189_0x3a44f2(0x190),'hidden':!![]},{'name':a189_0x3a44f2(0x135),'meowKey':a189_0x3a44f2(0x191),'type':a189_0x3a44f2(0x172),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a189_0x3a44f2(0x158),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x176),'hidden':!![]},{'name':a189_0x3a44f2(0x1a4),'meowKey':a189_0x3a44f2(0x16e),'type':'string','description':a189_0x3a44f2(0x1ab),'hidden':!![]},{'name':'function-node','meowKey':a189_0x3a44f2(0x189),'type':a189_0x3a44f2(0x172),'description':a189_0x3a44f2(0x18d),'hidden':!![]}];function a189_0xd1ae(){const _0x57a595=['<expr>','verbose','2198LGkprH','datasetcode','confirm','format','Preview\x20operation\x20without\x20executing','dryRun','27xhaCjG','Description','stdin','enableBffSave','rabetbase','reveal','Read\x20value\x20from\x20environment\x20variable','Alias\x20for\x20--non-interactive','dbid','keyword','operationType','Tags','fromEnv','global','string','Config\x20key','Parent\x20menu\x20id','expectPath','Asynchronous\x20task\x20ID','SQL\x20name','watch','meowKey','Output\x20format','Title','11wzpLCh','from-env','help','780287tCaHqg','parent-id','Code\x20filter','Name','Schemas','Apply\x20to\x20all','Record\x20ID','Use\x20global\x20config\x20scope','parentId','Page\x20number','functionNode','expectedChildrenCount','descriptionFile','all','Function\x20node','SQL\x20code','Config\x20value','Expected\x20current\x20child\x20count','menuIds','Verbose\x20output','value','DB\x20ID','description-file','Keyword\x20filter','params','JSON\x20params','Use\x20remote','Force\x20non-interactive\x20mode\x20(CI)','type','Output\x20path','Override\x20appcode','1277636RRdxuo','14864904AEDCNz','app','140KfjAmt','target','appcode','operation-type','85RDASMT','expectParentId','sqlcode','project','4074tAEIaq','clear','Operation\x20type','boolean','Force\x20overwrite','json\x20|\x20pretty\x20|\x20compress','expected-count','schemas','page','sqlName','Expected\x20affected\x20count','production\x20|\x20daily','Expected\x20current\x20parent\x20menu\x20id','Use\x20project\x20config\x20scope','menu-ids','description','File\x20path','non-interactive','key','Skip\x20import\x20generation','sort','Environment','dry-run','sql','force','Page\x20size','Menu\x20label','Description\x20file','name','label','sqlname','Confirm\x20destructive\x20action','1040240HvtTHU','Rabetbase\x20CLI','fromEntries','remote','25275EMVtWm','Reveal\x20sensitive\x20value','tags','title','env','code','Watch\x20mode','22472SkOdqt','@lovrabet/rabetbase-cli','pagesize','expect-path','db-id','<name>','taskId','<code>','yes','Skip\x20confirmation\x20for\x20high-risk\x20writes'];a189_0xd1ae=function(){return _0x57a595;};return a189_0xd1ae();}export const PIPELINE_FLAG_NAMES=new Set([a189_0x3a44f2(0x1a3),a189_0x3a44f2(0x1a0),a189_0x3a44f2(0x14f),a189_0x3a44f2(0x161),'jq',a189_0x3a44f2(0x13d),'yes',a189_0x3a44f2(0x138),'ci']);function a189_0xf1d5(_0x5254d6,_0x2ce861){_0x5254d6=_0x5254d6-0x133;const _0xd1ae7d=a189_0xd1ae();let _0xf1d5e6=_0xd1ae7d[_0x5254d6];return _0xf1d5e6;}export function buildMeowFlags(){const _0x213fdb=a189_0x3a44f2;return Object[_0x213fdb(0x149)](GLOBAL_FLAGS['map'](_0x376569=>[_0x376569[_0x213fdb(0x179)],{'type':_0x376569[_0x213fdb(0x19b)]}]));}
1
+ const a196_0xf951fb=a196_0x3af9;(function(_0x26bf8d,_0x52d35e){const _0x2aad5e=a196_0x3af9,_0x102dd3=_0x26bf8d();while(!![]){try{const _0x565c72=-parseInt(_0x2aad5e(0x125))/0x1+-parseInt(_0x2aad5e(0xfd))/0x2+parseInt(_0x2aad5e(0xe3))/0x3+-parseInt(_0x2aad5e(0xdb))/0x4*(parseInt(_0x2aad5e(0xf0))/0x5)+parseInt(_0x2aad5e(0xc8))/0x6+-parseInt(_0x2aad5e(0x101))/0x7+-parseInt(_0x2aad5e(0x10a))/0x8*(-parseInt(_0x2aad5e(0x114))/0x9);if(_0x565c72===_0x52d35e)break;else _0x102dd3['push'](_0x102dd3['shift']());}catch(_0x594628){_0x102dd3['push'](_0x102dd3['shift']());}}}(a196_0x5573,0x64faf));function a196_0x3af9(_0x372d9c,_0x2cb1e7){_0x372d9c=_0x372d9c-0xc8;const _0x557354=a196_0x5573();let _0x3af92a=_0x557354[_0x372d9c];return _0x3af92a;}export const CLI_BIN_NAME=a196_0xf951fb(0x115);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a196_0xf951fb(0xfb);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0xf951fb(0x12d),'type':a196_0xf951fb(0xf9),'description':'Override\x20appcode','hint':a196_0xf951fb(0xd7)},{'name':a196_0xf951fb(0x118),'meowKey':'app','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcd),'hint':a196_0xf951fb(0xf7)},{'name':a196_0xf951fb(0x117),'meowKey':'env','type':a196_0xf951fb(0xf9),'description':'Environment','hint':a196_0xf951fb(0x123)},{'name':'format','meowKey':a196_0xf951fb(0x105),'type':'string','description':'Output\x20format','hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':'string','description':a196_0xf951fb(0xcf),'hint':a196_0xf951fb(0x119)},{'name':a196_0xf951fb(0xd0),'meowKey':'dryRun','type':a196_0xf951fb(0x139),'description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':a196_0xf951fb(0x128),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xd4)},{'name':a196_0xf951fb(0xcb),'meowKey':'nonInteractive','type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x10f)},{'name':a196_0xf951fb(0x129),'meowKey':a196_0xf951fb(0x129),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xdc)},{'name':a196_0xf951fb(0x100),'meowKey':a196_0xf951fb(0x100),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x13e)},{'name':'ci','meowKey':'ci','type':a196_0xf951fb(0x139),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a196_0xf951fb(0xf1),'meowKey':'help','type':a196_0xf951fb(0x139),'description':'Show\x20help'},{'name':a196_0xf951fb(0x134),'meowKey':'name','type':a196_0xf951fb(0xf9),'description':'Name','hidden':!![]},{'name':a196_0xf951fb(0xc9),'meowKey':a196_0xf951fb(0xc9),'type':'string','description':a196_0xf951fb(0xf2),'hidden':!![]},{'name':a196_0xf951fb(0x13c),'meowKey':a196_0xf951fb(0x13c),'type':a196_0xf951fb(0x139),'description':'Clear','hidden':!![]},{'name':'watch','meowKey':a196_0xf951fb(0x104),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x12c),'hidden':!![]},{'name':'output','meowKey':a196_0xf951fb(0xe7),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe1),'hidden':!![]},{'name':a196_0xf951fb(0x121),'meowKey':a196_0xf951fb(0x121),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xff),'hidden':!![]},{'name':a196_0xf951fb(0xda),'meowKey':'datasetcode','type':'string','description':a196_0xf951fb(0xf5),'hidden':!![]},{'name':a196_0xf951fb(0xdd),'meowKey':a196_0xf951fb(0xdd),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0x138),'hidden':!![]},{'name':a196_0xf951fb(0xd1),'meowKey':a196_0xf951fb(0x11d),'type':'boolean','description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x108),'hidden':!![]},{'name':a196_0xf951fb(0x106),'meowKey':'type','type':a196_0xf951fb(0xf9),'description':'Type\x20filter','hidden':!![]},{'name':a196_0xf951fb(0xe8),'meowKey':a196_0xf951fb(0xe8),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x136),'hidden':!![]},{'name':a196_0xf951fb(0x111),'meowKey':a196_0xf951fb(0x111),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xd2),'hidden':!![]},{'name':a196_0xf951fb(0xe6),'meowKey':'sqlName','type':a196_0xf951fb(0xf9),'description':'SQL\x20name','hidden':!![]},{'name':a196_0xf951fb(0x13d),'meowKey':a196_0xf951fb(0x13d),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x110),'hidden':!![]},{'name':a196_0xf951fb(0xed),'meowKey':'dbId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0xde),'meowKey':'dbid','type':'string','description':a196_0xf951fb(0x127),'hidden':!![]},{'name':a196_0xf951fb(0x135),'meowKey':'description','type':'string','description':a196_0xf951fb(0x124),'hidden':!![]},{'name':a196_0xf951fb(0xf6),'meowKey':'descriptionFile','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10b),'hidden':!![]},{'name':a196_0xf951fb(0xd6),'meowKey':'page','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x10c),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a196_0xf951fb(0xf9),'description':'Page\x20size','hidden':!![]},{'name':a196_0xf951fb(0x10d),'meowKey':a196_0xf951fb(0x10d),'type':'string','description':a196_0xf951fb(0xf8),'hidden':!![]},{'name':a196_0xf951fb(0xe0),'meowKey':'code','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x113),'hidden':!![]},{'name':'sql','meowKey':'sql','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x131),'hidden':!![]},{'name':a196_0xf951fb(0x12e),'meowKey':a196_0xf951fb(0x12e),'type':a196_0xf951fb(0xf9),'description':'Schemas','hidden':!![]},{'name':a196_0xf951fb(0xd3),'meowKey':'operation','type':'string','description':a196_0xf951fb(0x12f),'hidden':!![]},{'name':a196_0xf951fb(0xd9),'meowKey':a196_0xf951fb(0xd9),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xfe),'hidden':!![]},{'name':'skip-imports','meowKey':a196_0xf951fb(0xec),'type':a196_0xf951fb(0x139),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0xf951fb(0x102),'meowKey':a196_0xf951fb(0x102),'type':a196_0xf951fb(0xf9),'description':'Config\x20key','hidden':!![]},{'name':a196_0xf951fb(0xd8),'meowKey':'value','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xcc),'hidden':!![]},{'name':a196_0xf951fb(0xdf),'meowKey':a196_0xf951fb(0xdf),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x109),'hidden':!![]},{'name':a196_0xf951fb(0x13b),'meowKey':a196_0xf951fb(0x13b),'type':a196_0xf951fb(0x139),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a196_0xf951fb(0x11e),'meowKey':a196_0xf951fb(0xce),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11c),'hidden':!![]},{'name':'reveal','meowKey':a196_0xf951fb(0x12a),'type':a196_0xf951fb(0x139),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a196_0xf951fb(0xd5),'meowKey':a196_0xf951fb(0xd5),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xfa),'hidden':!![]},{'name':a196_0xf951fb(0xe4),'meowKey':a196_0xf951fb(0xe4),'type':a196_0xf951fb(0x139),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0xf951fb(0x107),'meowKey':'remote','type':'boolean','description':a196_0xf951fb(0x120),'hidden':!![]},{'name':a196_0xf951fb(0x10e),'meowKey':a196_0xf951fb(0x10e),'type':a196_0xf951fb(0x139),'description':a196_0xf951fb(0xe5),'hidden':!![]},{'name':a196_0xf951fb(0xee),'meowKey':a196_0xf951fb(0x13a),'type':'string','description':a196_0xf951fb(0xf4),'hidden':!![]},{'name':a196_0xf951fb(0x126),'meowKey':a196_0xf951fb(0x126),'type':a196_0xf951fb(0xf9),'description':'Menu\x20label','hidden':!![]},{'name':a196_0xf951fb(0x116),'meowKey':a196_0xf951fb(0xea),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x11a),'hidden':!![]},{'name':'sort','meowKey':a196_0xf951fb(0x132),'type':a196_0xf951fb(0xf9),'description':'Menu\x20sort\x20value','hidden':!![]},{'name':a196_0xf951fb(0x133),'meowKey':'expectParentId','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xf3),'hidden':!![]},{'name':a196_0xf951fb(0x122),'meowKey':'expectPath','type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xef),'hidden':!![]},{'name':'expected-children-count','meowKey':a196_0xf951fb(0x11f),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0x13f),'hidden':!![]},{'name':a196_0xf951fb(0x112),'meowKey':a196_0xf951fb(0x130),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xe2),'hidden':!![]},{'name':'task-id','meowKey':a196_0xf951fb(0x11b),'type':a196_0xf951fb(0xf9),'description':a196_0xf951fb(0xeb),'hidden':!![]},{'name':a196_0xf951fb(0x137),'meowKey':a196_0xf951fb(0x103),'type':a196_0xf951fb(0xf9),'description':'Operation\x20type','hidden':!![]},{'name':a196_0xf951fb(0xfc),'meowKey':'functionNode','type':'string','description':a196_0xf951fb(0xe9),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0xf951fb(0x12d),a196_0xf951fb(0x118),a196_0xf951fb(0x117),a196_0xf951fb(0x105),'jq','dry-run','yes',a196_0xf951fb(0xcb),'ci']);export function buildMeowFlags(){const _0x32f589=a196_0xf951fb;return Object[_0x32f589(0x12b)](GLOBAL_FLAGS[_0x32f589(0xca)](_0x38bc41=>[_0x38bc41['meowKey'],{'type':_0x38bc41[_0x32f589(0x106)]}]));}function a196_0x5573(){const _0x8da5ac=['Use\x20global\x20config\x20scope','all','dbid','tags','code','Output\x20path','Comma-separated\x20menu\x20IDs','809091CnEGjP','confirm','Verbose\x20output','sql-name','output','file','Function\x20node','parentId','Asynchronous\x20task\x20ID','skipImports','db-id','expected-count','Expected\x20current\x20menu\x20path','690155jaJGXM','help','Title','Expected\x20current\x20parent\x20menu\x20id','Expected\x20affected\x20count','Dataset\x20code','description-file','<name>','Keyword\x20filter','string','Force\x20overwrite','@lovrabet/rabetbase-cli','function-node','1623650DSHDbk','Target\x20path','JSON\x20params','project','5535803bUAGWG','key','operationType','watch','format','type','remote','Record\x20ID','Tags','200yRnqzs','Description\x20file','Page\x20number','keyword','verbose','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20name','sqlcode','menu-ids','Code\x20filter','645876BUIeoT','rabetbase','parent-id','env','app','<expr>','Parent\x20menu\x20id','taskId','Read\x20value\x20from\x20environment\x20variable','enableBffSave','from-env','expectedChildrenCount','Use\x20remote','params','expect-path','production\x20|\x20daily','Description','409960VisVBT','label','DB\x20ID','yes','global','reveal','fromEntries','Watch\x20mode','appcode','schemas','Operation\x20type','menuIds','SQL\x20string','sort','expect-parent-id','name','description','File\x20path','operation-type','Apply\x20to\x20all','boolean','expectedCount','stdin','clear','sqlname','Use\x20project\x20config\x20scope','Expected\x20current\x20child\x20count','3002778wAJCqa','title','map','non-interactive','Config\x20value','Select\x20app\x20profile\x20by\x20name','fromEnv','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','dry-run','enable-bff-save','SQL\x20code','operation','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','page','<code>','value','target','datasetcode','4PymzfP'];a196_0x5573=function(){return _0x8da5ac;};return a196_0x5573();}
@@ -1 +1 @@
1
- const a190_0x495edc=a190_0x5773;(function(_0x36ed5a,_0xc87d61){const _0x4d5fe0=a190_0x5773,_0x3c8b6f=_0x36ed5a();while(!![]){try{const _0x4aa11e=-parseInt(_0x4d5fe0(0x144))/0x1+-parseInt(_0x4d5fe0(0x142))/0x2*(parseInt(_0x4d5fe0(0x14b))/0x3)+-parseInt(_0x4d5fe0(0x14a))/0x4*(-parseInt(_0x4d5fe0(0x13f))/0x5)+parseInt(_0x4d5fe0(0x141))/0x6+parseInt(_0x4d5fe0(0x145))/0x7*(-parseInt(_0x4d5fe0(0x14c))/0x8)+parseInt(_0x4d5fe0(0x146))/0x9+-parseInt(_0x4d5fe0(0x149))/0xa*(-parseInt(_0x4d5fe0(0x143))/0xb);if(_0x4aa11e===_0xc87d61)break;else _0x3c8b6f['push'](_0x3c8b6f['shift']());}catch(_0x5414b2){_0x3c8b6f['push'](_0x3c8b6f['shift']());}}}(a190_0x2b33,0xebbe6));import{DEFAULT_API_DIR}from'../constant/paths.js';function a190_0x5773(_0x236349,_0x3bc94f){_0x236349=_0x236349-0x13f;const _0x2b3383=a190_0x2b33();let _0x577386=_0x2b3383[_0x236349];return _0x577386;}export const DEFAULT_CONFIG_VALUES={'env':a190_0x495edc(0x147),'format':a190_0x495edc(0x148),'locale':'en-US','riskLevel':a190_0x495edc(0x140),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a190_0x495edc(0x148);function a190_0x2b33(){const _0x18bd7b=['2625491mHhgyp','1371353mGAHEO','930937BRxtgo','9903105VWfYjF','production','compress','50jPvWic','1954024agMEJO','853728FCjXsg','112mUivBj','5dSzyQL','high-risk-write','10206918kNOlEZ','2VBxVbA'];a190_0x2b33=function(){return _0x18bd7b;};return a190_0x2b33();}
1
+ function a197_0x250a(_0x24df64,_0x2579a6){_0x24df64=_0x24df64-0xfb;const _0x262d26=a197_0x262d();let _0x250adc=_0x262d26[_0x24df64];return _0x250adc;}const a197_0x167446=a197_0x250a;function a197_0x262d(){const _0x1163a8=['3EeFsMu','5829936EdyjcY','high-risk-write','3563034xiFqni','5615015sqMLUJ','production','5XvLKsi','123496FJByvy','137196FBivWV','en-US','compress','21677859ZkKobX','993798HnqPhF'];a197_0x262d=function(){return _0x1163a8;};return a197_0x262d();}(function(_0x9ab36c,_0x306c30){const _0x2d5ab3=a197_0x250a,_0x1b4899=_0x9ab36c();while(!![]){try{const _0x308040=-parseInt(_0x2d5ab3(0x101))/0x1*(parseInt(_0x2d5ab3(0xfc))/0x2)+parseInt(_0x2d5ab3(0x100))/0x3+-parseInt(_0x2d5ab3(0xfb))/0x4*(-parseInt(_0x2d5ab3(0x107))/0x5)+-parseInt(_0x2d5ab3(0x104))/0x6+-parseInt(_0x2d5ab3(0x105))/0x7+-parseInt(_0x2d5ab3(0x102))/0x8+parseInt(_0x2d5ab3(0xff))/0x9;if(_0x308040===_0x306c30)break;else _0x1b4899['push'](_0x1b4899['shift']());}catch(_0x50ac5c){_0x1b4899['push'](_0x1b4899['shift']());}}}(a197_0x262d,0x6b7cf));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x167446(0x106),'format':a197_0x167446(0xfe),'locale':a197_0x167446(0xfd),'riskLevel':a197_0x167446(0x103),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x167446(0xfe);
@@ -1 +1 @@
1
- const a191_0x49a782=a191_0x3f20;(function(_0x1d6948,_0x5685f1){const _0x109b44=a191_0x3f20,_0x38b229=_0x1d6948();while(!![]){try{const _0x5bbe53=parseInt(_0x109b44(0x149))/0x1*(parseInt(_0x109b44(0x144))/0x2)+-parseInt(_0x109b44(0x145))/0x3*(parseInt(_0x109b44(0x140))/0x4)+parseInt(_0x109b44(0x147))/0x5*(-parseInt(_0x109b44(0x13e))/0x6)+parseInt(_0x109b44(0x13f))/0x7*(-parseInt(_0x109b44(0x143))/0x8)+-parseInt(_0x109b44(0x14e))/0x9+parseInt(_0x109b44(0x14a))/0xa+parseInt(_0x109b44(0x150))/0xb*(parseInt(_0x109b44(0x151))/0xc);if(_0x5bbe53===_0x5685f1)break;else _0x38b229['push'](_0x38b229['shift']());}catch(_0x435a6b){_0x38b229['push'](_0x38b229['shift']());}}}(a191_0x1079,0x629c4));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x3e5ac9){const _0x23c735=a191_0x3f20;customApiDomain=_0x3e5ac9?.[_0x23c735(0x142)],customUserDomain=_0x3e5ac9?.[_0x23c735(0x152)],customRuntimeDomain=_0x3e5ac9?.[_0x23c735(0x148)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a191_0x49a782(0x14b):'https://user-daily.lovrabet.com');function a191_0x1079(){const _0x3cab09=['https://user.lovrabet.com','https://api.lovrabet.com','https://runtime.lovrabet.com','2569860skVMZP','/app/','1193357hNpWWc','144EVqRPv','userDomain','55398HzKvEM','1831431JBkuOW','4JRatPb','https://daily-runtime.lovrabet.com','apiDomain','24boATaF','1534DOvwbb','2325306eSJkFC','trim','90hjGMsV','runtimeDomain','568kLQGdh','6781430BaPlGw'];a191_0x1079=function(){return _0x3cab09;};return a191_0x1079();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a191_0x49a782(0x14c):'https://daily-api.lovrabet.com');function a191_0x3f20(_0x1a6cd9,_0x3ee0fc){_0x1a6cd9=_0x1a6cd9-0x13e;const _0x1079a8=a191_0x1079();let _0x3f20d0=_0x1079a8[_0x1a6cd9];return _0x3f20d0;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a191_0x49a782(0x14d):a191_0x49a782(0x141));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':'https://daily.lovrabet.com';export const getAppBaseUrl=_0x4fa14d=>{const _0x2cc11d=a191_0x49a782,_0x4803f7=encodeURIComponent(_0x4fa14d[_0x2cc11d(0x146)]());return isProduction(getEnv())?getAppDomain()+_0x2cc11d(0x14f)+_0x4803f7:getAppDomain()+'/web-app/app/'+_0x4803f7;};
1
+ const a198_0x323bd6=a198_0xa54c;(function(_0x4506f8,_0x3c9fe9){const _0x1bd918=a198_0xa54c,_0x1d4b57=_0x4506f8();while(!![]){try{const _0x3eb4ec=-parseInt(_0x1bd918(0x1ef))/0x1+-parseInt(_0x1bd918(0x1fe))/0x2*(-parseInt(_0x1bd918(0x1f0))/0x3)+parseInt(_0x1bd918(0x1f6))/0x4*(-parseInt(_0x1bd918(0x1ed))/0x5)+parseInt(_0x1bd918(0x1fa))/0x6+parseInt(_0x1bd918(0x1f3))/0x7+parseInt(_0x1bd918(0x1f5))/0x8+-parseInt(_0x1bd918(0x1fd))/0x9;if(_0x3eb4ec===_0x3c9fe9)break;else _0x1d4b57['push'](_0x1d4b57['shift']());}catch(_0x493404){_0x1d4b57['push'](_0x1d4b57['shift']());}}}(a198_0x519c,0x20b97));import{getEnv,isProduction}from'../constant/env.js';function a198_0x519c(){const _0x3da033=['902484RnZwgf','runtimeDomain','https://daily.lovrabet.com','https://user-daily.lovrabet.com','1351896Fvqyyr','userDomain','/web-app/app/','387909prElAm','302oryOXh','trim','5pBEBWr','https://user.lovrabet.com','58123ekYjjf','3561aUSIVE','https://api.lovrabet.com','https://daily-api.lovrabet.com','128093oqxNMn','/app/','304256Tauaki'];a198_0x519c=function(){return _0x3da033;};return a198_0x519c();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4c679e){const _0x5a8604=a198_0xa54c;customApiDomain=_0x4c679e?.['apiDomain'],customUserDomain=_0x4c679e?.[_0x5a8604(0x1fb)],customRuntimeDomain=_0x4c679e?.[_0x5a8604(0x1f7)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x323bd6(0x1ee):a198_0x323bd6(0x1f9));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x323bd6(0x1f1):a198_0x323bd6(0x1f2));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':'https://daily-runtime.lovrabet.com');export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a198_0x323bd6(0x1f8);function a198_0xa54c(_0x2a318c,_0x127af9){_0x2a318c=_0x2a318c-0x1ec;const _0x519c93=a198_0x519c();let _0xa54cc0=_0x519c93[_0x2a318c];return _0xa54cc0;}export const getAppBaseUrl=_0x20eb52=>{const _0x529b2f=a198_0x323bd6,_0x54ac0c=encodeURIComponent(_0x20eb52[_0x529b2f(0x1ec)]());return isProduction(getEnv())?getAppDomain()+_0x529b2f(0x1f4)+_0x54ac0c:getAppDomain()+_0x529b2f(0x1fc)+_0x54ac0c;};
@@ -1 +1 @@
1
- const a192_0x43d77b=a192_0x387f;function a192_0x387f(_0x20897e,_0x3a7ca0){_0x20897e=_0x20897e-0x9c;const _0x50e788=a192_0x50e7();let _0x387f27=_0x50e788[_0x20897e];return _0x387f27;}(function(_0x156e94,_0x248f68){const _0x137a07=a192_0x387f,_0x5b3ee7=_0x156e94();while(!![]){try{const _0x2881f7=parseInt(_0x137a07(0xa0))/0x1*(parseInt(_0x137a07(0xa6))/0x2)+parseInt(_0x137a07(0xa2))/0x3+-parseInt(_0x137a07(0xa8))/0x4+-parseInt(_0x137a07(0x9d))/0x5+parseInt(_0x137a07(0x9c))/0x6+-parseInt(_0x137a07(0xa7))/0x7*(-parseInt(_0x137a07(0x9e))/0x8)+-parseInt(_0x137a07(0xa1))/0x9;if(_0x2881f7===_0x248f68)break;else _0x5b3ee7['push'](_0x5b3ee7['shift']());}catch(_0x2375c3){_0x5b3ee7['push'](_0x5b3ee7['shift']());}}}(a192_0x50e7,0x6c0c9));export const RABETBASE_ENV_VALUES=['production',a192_0x43d77b(0xa5)];export function normalizeEnv(_0x17a5e6){const _0x1e37b8=a192_0x43d77b;return _0x17a5e6===_0x1e37b8(0xa9)?_0x1e37b8(0xa4):_0x17a5e6;}export function isProduction(_0xf33011){const _0x741e3a=a192_0x43d77b;return normalizeEnv(_0xf33011)===_0x741e3a(0xa4);}export function isDaily(_0x469724){return normalizeEnv(_0x469724)==='daily';}export function isDev(_0xbd8cf7){const _0x52eaf4=a192_0x43d77b,_0x54dde5=normalizeEnv(_0xbd8cf7);return _0x54dde5===_0x52eaf4(0x9f)||_0x54dde5===_0x52eaf4(0xa3);}function a192_0x50e7(){const _0x39f534=['3BZArTg','5930262oxLuao','1595127PvhDqr','dev','production','daily','396458CqPkDB','7GOFAOk','2395256UXkSWX','online','3886020sdazyC','3935940Rmezoe','5707384RWTjZY','development'];a192_0x50e7=function(){return _0x39f534;};return a192_0x50e7();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a192_0x43d77b(0xa4));export function getEnv(){return env;}export function initEnv(_0x1ff341){env=normalizeEnv(_0x1ff341);}
1
+ const a199_0x586b79=a199_0x38f6;function a199_0x38f6(_0x5cc1a4,_0x21c8b1){_0x5cc1a4=_0x5cc1a4-0x16b;const _0xcd32eb=a199_0xcd32();let _0x38f6e1=_0xcd32eb[_0x5cc1a4];return _0x38f6e1;}(function(_0x707905,_0x3f160b){const _0x29be73=a199_0x38f6,_0x5cccec=_0x707905();while(!![]){try{const _0x1de34e=parseInt(_0x29be73(0x16e))/0x1+-parseInt(_0x29be73(0x16c))/0x2*(-parseInt(_0x29be73(0x177))/0x3)+parseInt(_0x29be73(0x16b))/0x4*(parseInt(_0x29be73(0x170))/0x5)+-parseInt(_0x29be73(0x16d))/0x6+-parseInt(_0x29be73(0x172))/0x7*(parseInt(_0x29be73(0x16f))/0x8)+parseInt(_0x29be73(0x174))/0x9+-parseInt(_0x29be73(0x176))/0xa;if(_0x1de34e===_0x3f160b)break;else _0x5cccec['push'](_0x5cccec['shift']());}catch(_0x15f764){_0x5cccec['push'](_0x5cccec['shift']());}}}(a199_0xcd32,0xab18d));export const RABETBASE_ENV_VALUES=[a199_0x586b79(0x179),a199_0x586b79(0x171)];export function normalizeEnv(_0x15e9af){const _0x5b58be=a199_0x586b79;return _0x15e9af===_0x5b58be(0x175)?_0x5b58be(0x179):_0x15e9af;}export function isProduction(_0x1a5243){const _0x237448=a199_0x586b79;return normalizeEnv(_0x1a5243)===_0x237448(0x179);}export function isDaily(_0x308112){const _0x4852d8=a199_0x586b79;return normalizeEnv(_0x308112)===_0x4852d8(0x171);}export function isDev(_0x40b989){const _0x416f55=a199_0x586b79,_0x4f86b7=normalizeEnv(_0x40b989);return _0x4f86b7===_0x416f55(0x178)||_0x4f86b7===_0x416f55(0x173);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x586b79(0x179));function a199_0xcd32(){const _0x17b7d5=['1219752aWINox','1060djbOuc','daily','42SZIcsF','dev','11238993YWYmIC','online','7933350gcwTTM','1638108EXoEYV','development','production','17852zKwUeO','2gJRPIW','4502682CgpTYL','418440WilFGz'];a199_0xcd32=function(){return _0x17b7d5;};return a199_0xcd32();}export function getEnv(){return env;}export function initEnv(_0x2b7472){env=normalizeEnv(_0x2b7472);}
@@ -1 +1 @@
1
- const a193_0x42c150=a193_0xb133;function a193_0xb133(_0x420a39,_0x2350da){_0x420a39=_0x420a39-0xa5;const _0x3c6f58=a193_0x3c6f();let _0xb133d5=_0x3c6f58[_0x420a39];return _0xb133d5;}function a193_0x3c6f(){const _0x50bbaa=['1960355VNfHhE','json','5639130GZHGlI','1180160EthLBT','410851uImTDZ','1tZACVk','5716872xggtpl','1383264AxJbYl','2145990sUPkaV','compress','12LXEkZW'];a193_0x3c6f=function(){return _0x50bbaa;};return a193_0x3c6f();}(function(_0x5b918b,_0x4d048e){const _0x5256aa=a193_0xb133,_0x5bfa51=_0x5b918b();while(!![]){try{const _0x3bb5cb=parseInt(_0x5256aa(0xa7))/0x1*(parseInt(_0x5256aa(0xa9))/0x2)+-parseInt(_0x5256aa(0xaa))/0x3+-parseInt(_0x5256aa(0xa5))/0x4+parseInt(_0x5256aa(0xad))/0x5*(parseInt(_0x5256aa(0xac))/0x6)+parseInt(_0x5256aa(0xa6))/0x7+-parseInt(_0x5256aa(0xa8))/0x8+parseInt(_0x5256aa(0xaf))/0x9;if(_0x3bb5cb===_0x4d048e)break;else _0x5bfa51['push'](_0x5bfa51['shift']());}catch(_0x44e582){_0x5bfa51['push'](_0x5bfa51['shift']());}}}(a193_0x3c6f,0x6a75a));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a193_0x42c150(0xae),'pretty',a193_0x42c150(0xab)];
1
+ const a200_0x2fa73d=a200_0x41df;(function(_0x7eb5fb,_0x16d5fe){const _0x47283b=a200_0x41df,_0x376c0d=_0x7eb5fb();while(!![]){try{const _0x34cac5=-parseInt(_0x47283b(0x1e8))/0x1*(parseInt(_0x47283b(0x1ea))/0x2)+-parseInt(_0x47283b(0x1e9))/0x3+parseInt(_0x47283b(0x1e6))/0x4+parseInt(_0x47283b(0x1e7))/0x5+-parseInt(_0x47283b(0x1ef))/0x6*(parseInt(_0x47283b(0x1eb))/0x7)+-parseInt(_0x47283b(0x1ee))/0x8+parseInt(_0x47283b(0x1ec))/0x9*(parseInt(_0x47283b(0x1e4))/0xa);if(_0x34cac5===_0x16d5fe)break;else _0x376c0d['push'](_0x376c0d['shift']());}catch(_0x4e348d){_0x376c0d['push'](_0x376c0d['shift']());}}}(a200_0x2f40,0x96764));function a200_0x41df(_0x37b1ba,_0x3cc587){_0x37b1ba=_0x37b1ba-0x1e4;const _0x2f4028=a200_0x2f40();let _0x41dff4=_0x2f4028[_0x37b1ba];return _0x41dff4;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x2fa73d(0x1e5),a200_0x2fa73d(0x1ed),a200_0x2fa73d(0x1f0)];function a200_0x2f40(){const _0x56735d=['4396000Qggpsf','2OOgxqf','3662460CnqGgO','267532pvlZJX','2598239INITQI','9sQPtMQ','pretty','7366928DDLJto','18YZuKYj','compress','22879910DDZbch','json','3887400LliFHm'];a200_0x2f40=function(){return _0x56735d;};return a200_0x2f40();}
@@ -1 +1 @@
1
- const a194_0xb76e8c=a194_0x39d5;function a194_0x39d5(_0x4ec6e0,_0x4f3750){_0x4ec6e0=_0x4ec6e0-0xf6;const _0x12d2eb=a194_0x12d2();let _0x39d548=_0x12d2eb[_0x4ec6e0];return _0x39d548;}function a194_0x12d2(){const _0x56fe3d=['790092FXQDka','10bSvsgS','15SzsUzr','7MHLBmh','312764vmDtDU','./src/api','367668TMDWFe','1914154iBjadD','956hFKluq','1438312StkfHD','615540WktQhF','59ebytaO'];a194_0x12d2=function(){return _0x56fe3d;};return a194_0x12d2();}(function(_0x38b00a,_0x4053e3){const _0x4ad522=a194_0x39d5,_0x170e53=_0x38b00a();while(!![]){try{const _0x39c873=parseInt(_0x4ad522(0x100))/0x1*(-parseInt(_0x4ad522(0xfd))/0x2)+-parseInt(_0x4ad522(0xff))/0x3+parseInt(_0x4ad522(0xf9))/0x4+parseInt(_0x4ad522(0xf7))/0x5*(parseInt(_0x4ad522(0xfb))/0x6)+-parseInt(_0x4ad522(0xf8))/0x7*(parseInt(_0x4ad522(0xfe))/0x8)+parseInt(_0x4ad522(0x101))/0x9*(parseInt(_0x4ad522(0xf6))/0xa)+parseInt(_0x4ad522(0xfc))/0xb;if(_0x39c873===_0x4053e3)break;else _0x170e53['push'](_0x170e53['shift']());}catch(_0x53c947){_0x170e53['push'](_0x170e53['shift']());}}}(a194_0x12d2,0x1b040));export const DEFAULT_API_DIR=a194_0xb76e8c(0xfa);
1
+ const a201_0x450e74=a201_0x4baa;function a201_0x4baa(_0x322094,_0x46f088){_0x322094=_0x322094-0xa6;const _0xfe1d0c=a201_0xfe1d();let _0x4baa4b=_0xfe1d0c[_0x322094];return _0x4baa4b;}(function(_0x3bac98,_0x23e580){const _0x189ec7=a201_0x4baa,_0x5526bc=_0x3bac98();while(!![]){try{const _0x4a0efa=-parseInt(_0x189ec7(0xae))/0x1+-parseInt(_0x189ec7(0xaa))/0x2*(-parseInt(_0x189ec7(0xaf))/0x3)+parseInt(_0x189ec7(0xa7))/0x4+parseInt(_0x189ec7(0xa9))/0x5+parseInt(_0x189ec7(0xad))/0x6+parseInt(_0x189ec7(0xab))/0x7+parseInt(_0x189ec7(0xa8))/0x8*(-parseInt(_0x189ec7(0xac))/0x9);if(_0x4a0efa===_0x23e580)break;else _0x5526bc['push'](_0x5526bc['shift']());}catch(_0x342e8f){_0x5526bc['push'](_0x5526bc['shift']());}}}(a201_0xfe1d,0xea4a1));export const DEFAULT_API_DIR=a201_0x450e74(0xa6);function a201_0xfe1d(){const _0x5f587e=['6148276qTORui','2792oLmmai','8926005PHVnyZ','285582OXNOtP','260393YbRvWB','76185GVscTg','2969388OagUUg','511597ufybJV','12OkJMCG','./src/api'];a201_0xfe1d=function(){return _0x5f587e;};return a201_0xfe1d();}
@@ -1 +1 @@
1
- function a195_0x394d(_0x574594,_0x5c8771){_0x574594=_0x574594-0x167;const _0x3d66b8=a195_0x3d66();let _0x394d7c=_0x3d66b8[_0x574594];return _0x394d7c;}const a195_0x207561=a195_0x394d;(function(_0x37474a,_0x4b59af){const _0x2c56b6=a195_0x394d,_0x27acc1=_0x37474a();while(!![]){try{const _0x3273d0=-parseInt(_0x2c56b6(0x173))/0x1*(-parseInt(_0x2c56b6(0x168))/0x2)+parseInt(_0x2c56b6(0x171))/0x3+-parseInt(_0x2c56b6(0x16d))/0x4*(-parseInt(_0x2c56b6(0x174))/0x5)+parseInt(_0x2c56b6(0x167))/0x6*(parseInt(_0x2c56b6(0x169))/0x7)+parseInt(_0x2c56b6(0x16e))/0x8+-parseInt(_0x2c56b6(0x16a))/0x9*(parseInt(_0x2c56b6(0x16f))/0xa)+parseInt(_0x2c56b6(0x16c))/0xb*(-parseInt(_0x2c56b6(0x16b))/0xc);if(_0x3273d0===_0x4b59af)break;else _0x27acc1['push'](_0x27acc1['shift']());}catch(_0xe2392c){_0x27acc1['push'](_0x27acc1['shift']());}}}(a195_0x3d66,0x83404));export const RISK_LEVEL_VALUES=[a195_0x207561(0x170),a195_0x207561(0x172),'high-risk-write'];function a195_0x3d66(){const _0x47e345=['8095912InMxQF','7110210xJRkkV','read','735384LgzOBk','write','157LWeYcH','32460rdzEkj','142818jEAFrx','4882tFZrXw','217LtVHMP','9mzzbnM','7595724IWKNXL','22dQlzFU','84qvMBlx'];a195_0x3d66=function(){return _0x47e345;};return a195_0x3d66();}
1
+ function a202_0x740c(){const _0x31cefa=['21qUHmwq','611086lnqiiO','1010mkWlBg','high-risk-write','13542FrckkZ','6773388WDdmYD','write','40WYCtNR','read','81788TzPYHO','510nrzGae','89881ICXmtT','211848jZFywK','2zNsGDK','938943maAthI'];a202_0x740c=function(){return _0x31cefa;};return a202_0x740c();}function a202_0xb7bb(_0x3ab825,_0x416c12){_0x3ab825=_0x3ab825-0x114;const _0x740cf1=a202_0x740c();let _0xb7bb2=_0x740cf1[_0x3ab825];return _0xb7bb2;}const a202_0x185160=a202_0xb7bb;(function(_0x24d41b,_0x2b2831){const _0x28d2de=a202_0xb7bb,_0xd2d7c3=_0x24d41b();while(!![]){try{const _0x272458=parseInt(_0x28d2de(0x11c))/0x1*(parseInt(_0x28d2de(0x11f))/0x2)+parseInt(_0x28d2de(0x11e))/0x3*(parseInt(_0x28d2de(0x11b))/0x4)+parseInt(_0x28d2de(0x119))/0x5*(-parseInt(_0x28d2de(0x122))/0x6)+-parseInt(_0x28d2de(0x118))/0x7+-parseInt(_0x28d2de(0x116))/0x8*(parseInt(_0x28d2de(0x11d))/0x9)+parseInt(_0x28d2de(0x120))/0xa*(parseInt(_0x28d2de(0x11a))/0xb)+-parseInt(_0x28d2de(0x114))/0xc;if(_0x272458===_0x2b2831)break;else _0xd2d7c3['push'](_0xd2d7c3['shift']());}catch(_0x429d0f){_0xd2d7c3['push'](_0xd2d7c3['shift']());}}}(a202_0x740c,0x74f85));export const RISK_LEVEL_VALUES=[a202_0x185160(0x117),a202_0x185160(0x115),a202_0x185160(0x121)];
@@ -1 +1 @@
1
- (function(_0x33bbe6,_0x149d66){const _0x100a89=a196_0x1748,_0x2b313c=_0x33bbe6();while(!![]){try{const _0x40beea=parseInt(_0x100a89(0x16d))/0x1*(parseInt(_0x100a89(0x15c))/0x2)+parseInt(_0x100a89(0x17c))/0x3+parseInt(_0x100a89(0x170))/0x4+-parseInt(_0x100a89(0x15e))/0x5+parseInt(_0x100a89(0x166))/0x6*(parseInt(_0x100a89(0x168))/0x7)+-parseInt(_0x100a89(0x179))/0x8*(-parseInt(_0x100a89(0x159))/0x9)+-parseInt(_0x100a89(0x160))/0xa;if(_0x40beea===_0x149d66)break;else _0x2b313c['push'](_0x2b313c['shift']());}catch(_0x225d3c){_0x2b313c['push'](_0x2b313c['shift']());}}}(a196_0x4765,0xe2bd3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a196_0x4765(){const _0x218224=['2318584kAxSHh','globalConfig','defaultApp','PAGE_SIZE','inherit','locale','keys','MAX_RISK','entries','1346192UFoBKn','projectConfig','riskLevel','3868455tShuqJ','VERBOSE','string','appcode','45TFnaGO','apiDir','APP','14gJHYKs','ACCESS_KEY','5270350HOqajq','pageSize','36765610YChtjS','format','app','FORMAT','apps','daily','6ioXJsG','accessKey','7866054lYwvdy','true','env','trim','read','260733VZvSUt','ENV','length'];a196_0x4765=function(){return _0x218224;};return a196_0x4765();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function a196_0x1748(_0x5b184b,_0x410287){_0x5b184b=_0x5b184b-0x159;const _0x4765fc=a196_0x4765();let _0x174832=_0x4765fc[_0x5b184b];return _0x174832;}function stringConfigValue(_0x5bf87e){const _0x22dbb3=a196_0x1748;return typeof _0x5bf87e===_0x22dbb3(0x17e)&&_0x5bf87e[_0x22dbb3(0x16b)]()?_0x5bf87e[_0x22dbb3(0x16b)]():undefined;}function appProfiles(_0xfe1d73){const _0x2eced3=a196_0x1748;return _0xfe1d73[_0x2eced3(0x164)]&&typeof _0xfe1d73['apps']==='object'?_0xfe1d73[_0x2eced3(0x164)]:{};}function resolveDefaultAppName(_0x32ce8b){const _0x364669=a196_0x1748,_0x31daad=stringConfigValue(_0x32ce8b[_0x364669(0x172)]);if(_0x31daad)return _0x31daad;return Object[_0x364669(0x176)](appProfiles(_0x32ce8b))[0x0];}function resolveTopLevelAppCode(_0x3e7ee8){const _0x5e97a4=a196_0x1748;return stringConfigValue(_0x3e7ee8['appcode'])||stringConfigValue(_0x3e7ee8[_0x5e97a4(0x162)]);}export function resolveAppConfig({raw:_0x4216b9,flags:_0x4ba171,layers:_0x132257,readEnv:_0x32557e}){const _0x26fccd=a196_0x1748,_0x3fa14b=_0x132257?.[_0x26fccd(0x17a)]??{},_0x274dc7=_0x132257?.[_0x26fccd(0x171)]??{},_0x217275=Object[_0x26fccd(0x176)](_0x3fa14b)[_0x26fccd(0x16f)]>0x0,_0x18f6e4=!_0x217275||_0x3fa14b[_0x26fccd(0x174)]===!![],_0x10186d=_0x217275?resolveDefaultAppName(_0x3fa14b):undefined,_0x549cca=_0x18f6e4?resolveDefaultAppName(_0x274dc7):undefined,_0x1cb182=stringConfigValue(_0x4ba171[_0x26fccd(0x162)]),_0xa7a1b4=_0x32557e(_0x26fccd(0x15b)),_0x2343d6={};if(_0x4216b9[_0x26fccd(0x164)]&&typeof _0x4216b9[_0x26fccd(0x164)]==='object')for(const [_0xb4d623,_0x4763cc]of Object[_0x26fccd(0x178)](_0x4216b9[_0x26fccd(0x164)])){_0x4763cc&&typeof _0x4763cc==='object'&&_0x4763cc[_0x26fccd(0x17f)]&&(_0x2343d6[_0xb4d623]=_0x4763cc);}const _0x4133c4=_0x4216b9[_0x26fccd(0x172)]||undefined,_0x384414=Object[_0x26fccd(0x176)](_0x2343d6)[_0x26fccd(0x16f)]>0x0,_0x50d642=_0x1cb182||_0x10186d||_0xa7a1b4||_0x549cca||_0x4133c4||undefined,_0x4df21b=stringConfigValue(_0x4ba171[_0x26fccd(0x17f)]),_0x1d7de9=_0x4df21b?Object[_0x26fccd(0x178)](_0x2343d6)['find'](([,_0x27c209])=>_0x27c209?.[_0x26fccd(0x17f)]===_0x4df21b):undefined,_0x2b518d=_0x1d7de9?.[0x0],_0x37d8e8=_0x1d7de9?.[0x1],_0xf00263=_0x4df21b?_0x2b518d:_0x50d642;let _0x3d2f3a=_0xf00263&&_0x2343d6[_0xf00263]?_0x2343d6[_0xf00263]:undefined;_0x4df21b&&_0x37d8e8&&(_0x3d2f3a=_0x37d8e8);const _0x272347=_0x4df21b?_0x37d8e8??_0x3d2f3a:_0x3d2f3a,_0x3e1d59=!_0x1cb182&&!_0x10186d&&_0xa7a1b4&&_0xf00263===_0xa7a1b4,_0x5e1ae3=_0x1cb182||(_0x3e1d59?_0xa7a1b4:undefined)||(_0x4df21b?_0x2b518d:undefined),_0x55f209=_0x272347?.[_0x26fccd(0x17f)],_0x295f42=_0x217275?resolveTopLevelAppCode(_0x3fa14b):undefined,_0x1c8580=_0x18f6e4?resolveTopLevelAppCode(_0x274dc7):undefined,_0x434267=_0x1cb182||_0x10186d?_0x55f209:undefined,_0xd8c76a=!_0x1cb182&&!_0x10186d?_0x55f209:undefined,_0x27b6a7=_0x4df21b||_0x434267||_0x295f42||_0xd8c76a||_0x1c8580||undefined,_0xa63c52=_0x217275?stringConfigValue(_0x3fa14b[_0x26fccd(0x16a)]):undefined,_0x4b7b49=_0x18f6e4?stringConfigValue(_0x274dc7[_0x26fccd(0x16a)]):undefined,_0x1f93e3=_0x4ba171[_0x26fccd(0x16a)]||_0x272347?.[_0x26fccd(0x16a)]||_0xa63c52||_0x32557e(_0x26fccd(0x16e))||_0x4b7b49||_0x4216b9[_0x26fccd(0x16a)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x16a)],_0x4287e2=_0x272347?.[_0x26fccd(0x175)]||_0x4216b9[_0x26fccd(0x175)]||DEFAULT_CONFIG_VALUES[_0x26fccd(0x175)],_0x7b0ba2=_0x32557e('COOKIE')||_0x272347?.['cookie']||_0x4216b9['cookie']||undefined,_0x3289e4=_0x32557e(_0x26fccd(0x15d))||_0x272347?.[_0x26fccd(0x167)]||_0x4216b9[_0x26fccd(0x167)]||undefined,_0x1e8fd9=_0x4ba171['format']||_0x32557e(_0x26fccd(0x163))||_0x272347?.[_0x26fccd(0x161)]||_0x4216b9[_0x26fccd(0x161)],_0x3de6b6=normalizeLegacyOutputFormat(_0x1e8fd9),_0x16093b=_0x32557e(_0x26fccd(0x173))||_0x272347?.[_0x26fccd(0x15f)]||_0x4216b9[_0x26fccd(0x15f)],_0x15826e=_0x16093b?Number(_0x16093b)||undefined:undefined,_0x445424=_0x32557e('RISK_LEVEL')||_0x32557e(_0x26fccd(0x177))||_0x272347?.['riskLevel']||_0x4216b9[_0x26fccd(0x17b)]||_0x4216b9['maxRisk'],_0x286457=_0x445424===_0x26fccd(0x16c)||_0x445424==='write'?_0x445424:DEFAULT_CONFIG_VALUES[_0x26fccd(0x17b)],_0x3a37b6=_0x32557e(_0x26fccd(0x17d)),_0x185da2=_0x3a37b6==='1'||_0x3a37b6===_0x26fccd(0x169),_0x5a669e=_0x272347?.[_0x26fccd(0x15a)]||_0x4216b9[_0x26fccd(0x15a)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x4b38dd=isDaily(normalizeEnv(String(_0x1f93e3)))?_0x26fccd(0x165):'production';return{'appCode':typeof _0x27b6a7==='string'&&_0x27b6a7[_0x26fccd(0x16b)]()?_0x27b6a7[_0x26fccd(0x16b)]():undefined,'env':_0x4b38dd,'locale':_0x4287e2,'cookie':_0x7b0ba2,'accessKey':_0x3289e4,'format':_0x3de6b6,'pageSize':_0x15826e,'riskLevel':_0x286457,'verbose':_0x185da2,'apiDir':_0x5a669e,'apps':_0x2343d6,'defaultApp':_0x4133c4,'currentApp':_0x384414?_0xf00263:undefined,'explicitAppName':_0x5e1ae3};}
1
+ (function(_0x533d38,_0x1d9278){const _0x3be4b6=a203_0x38da,_0x490311=_0x533d38();while(!![]){try{const _0x3348be=-parseInt(_0x3be4b6(0x18e))/0x1+parseInt(_0x3be4b6(0x1a0))/0x2+parseInt(_0x3be4b6(0x189))/0x3+parseInt(_0x3be4b6(0x1a2))/0x4*(parseInt(_0x3be4b6(0x18c))/0x5)+-parseInt(_0x3be4b6(0x196))/0x6*(-parseInt(_0x3be4b6(0x1a4))/0x7)+parseInt(_0x3be4b6(0x18b))/0x8+-parseInt(_0x3be4b6(0x19a))/0x9*(parseInt(_0x3be4b6(0x19c))/0xa);if(_0x3348be===_0x1d9278)break;else _0x490311['push'](_0x490311['shift']());}catch(_0x26abea){_0x490311['push'](_0x490311['shift']());}}}(a203_0x30cf,0x320b7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x587395){const _0x5be3c5=a203_0x38da;return typeof _0x587395===_0x5be3c5(0x18f)&&_0x587395[_0x5be3c5(0x19d)]()?_0x587395[_0x5be3c5(0x19d)]():undefined;}function appProfiles(_0x1e217c){const _0x27e801=a203_0x38da;return _0x1e217c[_0x27e801(0x199)]&&typeof _0x1e217c[_0x27e801(0x199)]===_0x27e801(0x187)?_0x1e217c[_0x27e801(0x199)]:{};}function resolveDefaultAppName(_0x426e07){const _0x12f7cb=a203_0x38da,_0x443ec2=stringConfigValue(_0x426e07['defaultApp']);if(_0x443ec2)return _0x443ec2;return Object[_0x12f7cb(0x1a1)](appProfiles(_0x426e07))[0x0];}function resolveTopLevelAppCode(_0xfb9f21){const _0x2576b8=a203_0x38da;return stringConfigValue(_0xfb9f21[_0x2576b8(0x1a5)])||stringConfigValue(_0xfb9f21[_0x2576b8(0x19f)]);}function a203_0x38da(_0x20179d,_0x3eae3d){_0x20179d=_0x20179d-0x180;const _0x30cf52=a203_0x30cf();let _0x38da75=_0x30cf52[_0x20179d];return _0x38da75;}function a203_0x30cf(){const _0x36189d=['app','88436nnCaju','keys','383140PXXRwV','riskLevel','7RXriCA','appcode','daily','ENV','FORMAT','pageSize','locale','format','true','RISK_LEVEL','object','cookie','200829NmGOCe','read','2562976IvIpab','10dPEjsq','PAGE_SIZE','121704omVrhV','string','env','apiDir','entries','maxRisk','COOKIE','globalConfig','1896726VSHqMX','MAX_RISK','accessKey','apps','9621blqQYQ','length','5730ZPDobw','trim','inherit'];a203_0x30cf=function(){return _0x36189d;};return a203_0x30cf();}export function resolveAppConfig({raw:_0x423f9d,flags:_0x67e062,layers:_0x3145b9,readEnv:_0x10938c}){const _0x4c036a=a203_0x38da,_0x33d005=_0x3145b9?.['projectConfig']??{},_0x1012b3=_0x3145b9?.[_0x4c036a(0x195)]??{},_0x5ac3f4=Object[_0x4c036a(0x1a1)](_0x33d005)[_0x4c036a(0x19b)]>0x0,_0x2322bc=!_0x5ac3f4||_0x33d005[_0x4c036a(0x19e)]===!![],_0x14329c=_0x5ac3f4?resolveDefaultAppName(_0x33d005):undefined,_0x3ca976=_0x2322bc?resolveDefaultAppName(_0x1012b3):undefined,_0x14197b=stringConfigValue(_0x67e062['app']),_0x4e7f09=_0x10938c('APP'),_0x20fa38={};if(_0x423f9d[_0x4c036a(0x199)]&&typeof _0x423f9d[_0x4c036a(0x199)]===_0x4c036a(0x187))for(const [_0x3f3273,_0x1fe6b0]of Object[_0x4c036a(0x192)](_0x423f9d[_0x4c036a(0x199)])){_0x1fe6b0&&typeof _0x1fe6b0==='object'&&_0x1fe6b0['appcode']&&(_0x20fa38[_0x3f3273]=_0x1fe6b0);}const _0x1f7b46=_0x423f9d['defaultApp']||undefined,_0x3dbf9c=Object['keys'](_0x20fa38)['length']>0x0,_0x1362c8=_0x14197b||_0x14329c||_0x4e7f09||_0x3ca976||_0x1f7b46||undefined,_0x52a748=stringConfigValue(_0x67e062[_0x4c036a(0x1a5)]),_0x5b3492=_0x52a748?Object[_0x4c036a(0x192)](_0x20fa38)['find'](([,_0x5278fa])=>_0x5278fa?.[_0x4c036a(0x1a5)]===_0x52a748):undefined,_0x478467=_0x5b3492?.[0x0],_0x5283d9=_0x5b3492?.[0x1],_0x2ab661=_0x52a748?_0x478467:_0x1362c8;let _0x1d58a9=_0x2ab661&&_0x20fa38[_0x2ab661]?_0x20fa38[_0x2ab661]:undefined;_0x52a748&&_0x5283d9&&(_0x1d58a9=_0x5283d9);const _0x3cd03b=_0x52a748?_0x5283d9??_0x1d58a9:_0x1d58a9,_0x27a873=!_0x14197b&&!_0x14329c&&_0x4e7f09&&_0x2ab661===_0x4e7f09,_0x4f3c36=_0x14197b||(_0x27a873?_0x4e7f09:undefined)||(_0x52a748?_0x478467:undefined),_0x542cc8=_0x3cd03b?.[_0x4c036a(0x1a5)],_0x4692b8=_0x5ac3f4?resolveTopLevelAppCode(_0x33d005):undefined,_0x1bb3c1=_0x2322bc?resolveTopLevelAppCode(_0x1012b3):undefined,_0x47f40e=_0x14197b||_0x14329c?_0x542cc8:undefined,_0x45ad17=!_0x14197b&&!_0x14329c?_0x542cc8:undefined,_0x32dd01=_0x52a748||_0x47f40e||_0x4692b8||_0x45ad17||_0x1bb3c1||undefined,_0x3e4851=_0x5ac3f4?stringConfigValue(_0x33d005[_0x4c036a(0x190)]):undefined,_0x42f28a=_0x2322bc?stringConfigValue(_0x1012b3[_0x4c036a(0x190)]):undefined,_0x69219d=_0x67e062[_0x4c036a(0x190)]||_0x3cd03b?.[_0x4c036a(0x190)]||_0x3e4851||_0x10938c(_0x4c036a(0x180))||_0x42f28a||_0x423f9d['env']||DEFAULT_CONFIG_VALUES[_0x4c036a(0x190)],_0x346b36=_0x3cd03b?.[_0x4c036a(0x183)]||_0x423f9d[_0x4c036a(0x183)]||DEFAULT_CONFIG_VALUES['locale'],_0x393558=_0x10938c(_0x4c036a(0x194))||_0x3cd03b?.[_0x4c036a(0x188)]||_0x423f9d[_0x4c036a(0x188)]||undefined,_0x29d3b8=_0x10938c('ACCESS_KEY')||_0x3cd03b?.[_0x4c036a(0x198)]||_0x423f9d[_0x4c036a(0x198)]||undefined,_0x27a8e5=_0x67e062[_0x4c036a(0x184)]||_0x10938c(_0x4c036a(0x181))||_0x3cd03b?.[_0x4c036a(0x184)]||_0x423f9d[_0x4c036a(0x184)],_0x2ec50d=normalizeLegacyOutputFormat(_0x27a8e5),_0x4e2ec0=_0x10938c(_0x4c036a(0x18d))||_0x3cd03b?.[_0x4c036a(0x182)]||_0x423f9d[_0x4c036a(0x182)],_0x181d33=_0x4e2ec0?Number(_0x4e2ec0)||undefined:undefined,_0x20e194=_0x10938c(_0x4c036a(0x186))||_0x10938c(_0x4c036a(0x197))||_0x3cd03b?.[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x1a3)]||_0x423f9d[_0x4c036a(0x193)],_0x5b13de=_0x20e194===_0x4c036a(0x18a)||_0x20e194==='write'?_0x20e194:DEFAULT_CONFIG_VALUES[_0x4c036a(0x1a3)],_0x21f335=_0x10938c('VERBOSE'),_0x3ab9a1=_0x21f335==='1'||_0x21f335===_0x4c036a(0x185),_0x14e991=_0x3cd03b?.[_0x4c036a(0x191)]||_0x423f9d[_0x4c036a(0x191)]||DEFAULT_CONFIG_VALUES[_0x4c036a(0x191)],_0x3eeb60=isDaily(normalizeEnv(String(_0x69219d)))?_0x4c036a(0x1a6):'production';return{'appCode':typeof _0x32dd01===_0x4c036a(0x18f)&&_0x32dd01[_0x4c036a(0x19d)]()?_0x32dd01['trim']():undefined,'env':_0x3eeb60,'locale':_0x346b36,'cookie':_0x393558,'accessKey':_0x29d3b8,'format':_0x2ec50d,'pageSize':_0x181d33,'riskLevel':_0x5b13de,'verbose':_0x3ab9a1,'apiDir':_0x14e991,'apps':_0x20fa38,'defaultApp':_0x1f7b46,'currentApp':_0x3dbf9c?_0x2ab661:undefined,'explicitAppName':_0x4f3c36};}
@@ -1 +1 @@
1
- (function(_0x2371db,_0x166da0){const _0x3608b8=a197_0x12e8,_0x592f16=_0x2371db();while(!![]){try{const _0x47d66f=parseInt(_0x3608b8(0x157))/0x1+-parseInt(_0x3608b8(0x163))/0x2*(-parseInt(_0x3608b8(0x15c))/0x3)+-parseInt(_0x3608b8(0x15a))/0x4+parseInt(_0x3608b8(0x161))/0x5+parseInt(_0x3608b8(0x158))/0x6*(parseInt(_0x3608b8(0x15b))/0x7)+parseInt(_0x3608b8(0x15e))/0x8+parseInt(_0x3608b8(0x15f))/0x9*(-parseInt(_0x3608b8(0x15d))/0xa);if(_0x47d66f===_0x166da0)break;else _0x592f16['push'](_0x592f16['shift']());}catch(_0x4c7edd){_0x592f16['push'](_0x592f16['shift']());}}}(a197_0x3ce8,0x84247));function a197_0x12e8(_0x570713,_0x45dae1){_0x570713=_0x570713-0x157;const _0x3ce835=a197_0x3ce8();let _0x12e8e9=_0x3ce835[_0x570713];return _0x12e8e9;}import{getIsSessionValid}from'../auth/is-session-valid.js';function a197_0x3ce8(){const _0x2abdd4=['370mLWJHO','8353944PIYNBm','609597hWXoyS','authRequired','2234260oiHhxU','../auth/get-cookie.js','358PTVkxf','700476laUOsH','390NYZFDM','cookie','3914016iTUZGv','96607dLuMRW','15708CwSSzQ'];a197_0x3ce8=function(){return _0x2abdd4;};return a197_0x3ce8();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4743f8){const _0x599632=a197_0x12e8,{getCookie:_0x20d228}=await import(_0x599632(0x162)),_0x3da630=_0x4743f8[_0x599632(0x159)]||_0x20d228(),_0x4b3956=_0x3da630?await getIsSessionValid():![];return{'cookie':_0x3da630,'isLoggedIn':_0x4b3956,async 'getOrLogin'(){const _0x5f1e62=_0x599632;if(_0x3da630&&_0x4b3956)return _0x3da630;throw CliErrors[_0x5f1e62(0x160)]();}};}
1
+ function a204_0x2ac5(_0x471171,_0x4e9390){_0x471171=_0x471171-0x11b;const _0x5253a5=a204_0x5253();let _0x2ac506=_0x5253a5[_0x471171];return _0x2ac506;}(function(_0x5c5d83,_0x233e21){const _0x5f1f13=a204_0x2ac5,_0xad6d71=_0x5c5d83();while(!![]){try{const _0x559502=parseInt(_0x5f1f13(0x11e))/0x1*(-parseInt(_0x5f1f13(0x11b))/0x2)+parseInt(_0x5f1f13(0x122))/0x3+parseInt(_0x5f1f13(0x121))/0x4*(parseInt(_0x5f1f13(0x125))/0x5)+-parseInt(_0x5f1f13(0x124))/0x6+parseInt(_0x5f1f13(0x123))/0x7+-parseInt(_0x5f1f13(0x120))/0x8+parseInt(_0x5f1f13(0x11c))/0x9;if(_0x559502===_0x233e21)break;else _0xad6d71['push'](_0xad6d71['shift']());}catch(_0x1d1c7b){_0xad6d71['push'](_0xad6d71['shift']());}}}(a204_0x5253,0x3df61));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x29405d){const _0x556239=a204_0x2ac5,{getCookie:_0x53a7f1}=await import(_0x556239(0x11f)),_0x18f940=_0x29405d[_0x556239(0x11d)]||_0x53a7f1(),_0x5daa59=_0x18f940?await getIsSessionValid():![];return{'cookie':_0x18f940,'isLoggedIn':_0x5daa59,async 'getOrLogin'(){if(_0x18f940&&_0x5daa59)return _0x18f940;throw CliErrors['authRequired']();}};}function a204_0x5253(){const _0x5c415b=['719010MmRZHZ','2362479ikyDaL','1043922aQZRFt','75OwRbEX','148102pTeFfc','2493081qGxnTN','cookie','2fqwmVh','../auth/get-cookie.js','2307712atNVUh','2712NFbaCd'];a204_0x5253=function(){return _0x5c415b;};return a204_0x5253();}