@lovrabet/rabetbase-cli 2.3.11 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -1
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- function a177_0x39d2(){const _0x5a68f0=['4158535MMXRUB','validation','bool','string','utf-8','index_columns','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','indexes','size','950476OHVcVu','filter','tables','Table\x20\x22','10464744JbHZJD','schema:','isDangerous','file','schemas','dataset','9wzsweY','push','24228180XsUbjR','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','1926792hUxjet','reason','unshift','isArray','name','dbtableConfig','boolean','pkField','fields','\x22\x20not\x20found\x20or\x20not\x20accessible','sqlType','validate','Provide\x20--file\x20or\x20--sql','39nBKTXH','\x22\x20not\x20found\x20in\x20any\x20dataset','flagMissing','SQL\x20schema\x20validation','isSelectOnly','indexName','str','columns','tableName','find','cwd','7222QIYysx','length','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','message','parameters','appCode','columnNames','4NAicHc','index_name','trim','valid','10529099BnrHBt','map','sql','flatMap','index_type','split','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'];a177_0x39d2=function(){return _0x5a68f0;};return a177_0x39d2();}const a177_0x3989c5=a177_0x1a88;(function(_0x457387,_0x3a0753){const _0x33e731=a177_0x1a88,_0x33e816=_0x457387();while(!![]){try{const _0x1c2ae5=-parseInt(_0x33e731(0x223))/0x1+-parseInt(_0x33e731(0x208))/0x2*(parseInt(_0x33e731(0x1fd))/0x3)+-parseInt(_0x33e731(0x20f))/0x4*(-parseInt(_0x33e731(0x21a))/0x5)+parseInt(_0x33e731(0x227))/0x6+parseInt(_0x33e731(0x213))/0x7+parseInt(_0x33e731(0x1f0))/0x8+parseInt(_0x33e731(0x22d))/0x9*(-parseInt(_0x33e731(0x22f))/0xa);if(_0x1c2ae5===_0x3a0753)break;else _0x33e816['push'](_0x33e816['shift']());}catch(_0x5aafef){_0x33e816['push'](_0x33e816['shift']());}}}(a177_0x39d2,0xdbdf8));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a177_0x1a88(_0x575876,_0x2055a4){_0x575876=_0x575876-0x1f0;const _0x39d229=a177_0x39d2();let _0x1a8885=_0x39d229[_0x575876];return _0x1a8885;}export const sqlValidate={'service':a177_0x3989c5(0x215),'command':a177_0x3989c5(0x1fb),'description':a177_0x3989c5(0x220),'risk':'read','flags':[{'name':'file','type':'string','description':a177_0x3989c5(0x219)},{'name':'sql','type':a177_0x3989c5(0x21d),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a177_0x3989c5(0x22b),'type':'string','description':a177_0x3989c5(0x230)},{'name':'check-indexes','type':a177_0x3989c5(0x1f6),'description':a177_0x3989c5(0x20a)}],async 'execute'(_0x25538b){const _0x5786bb=a177_0x3989c5,_0x471b6e=_0x25538b[_0x5786bb(0x203)]('file'),_0x1d5bc6=_0x25538b[_0x5786bb(0x203)]('sql'),_0x5cf127=_0x25538b[_0x5786bb(0x203)](_0x5786bb(0x22b)),_0x249f0e=_0x25538b[_0x5786bb(0x21c)]('check-indexes');if(!_0x471b6e&&!_0x1d5bc6)throw CliErrors[_0x5786bb(0x1ff)](_0x5786bb(0x22a),_0x5786bb(0x1fc));if(_0x249f0e&&!_0x5cf127)throw CliErrors[_0x5786bb(0x21b)]('--check-indexes\x20requires\x20--schemas.');let _0x68f2c;if(_0x471b6e){const _0x140639=resolve(process[_0x5786bb(0x207)](),_0x471b6e);if(!existsSync(_0x140639))throw CliErrors[_0x5786bb(0x21b)]('File\x20not\x20found:\x20'+_0x140639);_0x68f2c=readFileSync(_0x140639,_0x5786bb(0x21e));}else _0x68f2c=_0x1d5bc6;const _0x2c8ccf=validateSql(_0x68f2c),_0x4f373e={'valid':_0x2c8ccf[_0x5786bb(0x212)],'sqlType':_0x2c8ccf['sqlType']['type'],'isSelectOnly':_0x2c8ccf[_0x5786bb(0x1fa)][_0x5786bb(0x201)],'isDangerous':_0x2c8ccf[_0x5786bb(0x1fa)][_0x5786bb(0x229)],'tables':_0x2c8ccf[_0x5786bb(0x225)],'parameters':_0x2c8ccf[_0x5786bb(0x20c)],'message':_0x2c8ccf[_0x5786bb(0x20b)]};_0x2c8ccf[_0x5786bb(0x1fa)]['reason']&&(_0x4f373e[_0x5786bb(0x1f1)]=_0x2c8ccf['sqlType']['reason']);if(_0x5cf127&&_0x2c8ccf[_0x5786bb(0x212)]){const _0x414b30=_0x5cf127[_0x5786bb(0x218)](',')[_0x5786bb(0x214)](_0x29d5be=>_0x29d5be[_0x5786bb(0x211)]())[_0x5786bb(0x224)](Boolean),_0x3c045e=[],_0x1df1fc=[],_0x50e4fb=filterDbTableBackedDatasets(await listDatasets(_0x25538b[_0x5786bb(0x20d)])),_0x24fed5=new Map(_0x50e4fb[_0x5786bb(0x214)](_0x30bcb3=>[_0x30bcb3[_0x5786bb(0x1f5)]?.[_0x5786bb(0x205)]?.['toLowerCase'](),_0x30bcb3]));for(const _0x4dc4c of _0x2c8ccf[_0x5786bb(0x225)]){const _0x39a877=_0x24fed5['get'](_0x4dc4c['toLowerCase']());!_0x39a877&&_0x3c045e[_0x5786bb(0x22e)](_0x5786bb(0x226)+_0x4dc4c+_0x5786bb(0x1fe));}for(const _0x201f73 of _0x414b30){let _0x1a9f84;try{_0x1a9f84=await getDatasetDetail(_0x201f73);}catch{_0x3c045e[_0x5786bb(0x22e)]('Dataset\x20\x22'+_0x201f73+_0x5786bb(0x1f9));continue;}assertDatasetIsDbTableBacked(_0x1a9f84,_0x5786bb(0x200));const _0x34ac76=Array[_0x5786bb(0x1f3)](_0x1a9f84[_0x5786bb(0x1f8)])?_0x1a9f84[_0x5786bb(0x1f8)]:[],_0x190be7=new Set(_0x34ac76[_0x5786bb(0x214)](_0x1f87d4=>_0x1f87d4['name']?.['toLowerCase']())),_0x171cf7=_0x1a9f84['dbtableConfig']?.[_0x5786bb(0x205)]||_0x1a9f84[_0x5786bb(0x205)]||_0x201f73;_0x4f373e[_0x5786bb(0x228)+_0x171cf7]={'code':_0x201f73,'tableName':_0x171cf7,'fieldCount':_0x190be7[_0x5786bb(0x222)],'fields':Array['from'](_0x190be7)};if(_0x249f0e){const _0x52d041=normalizeDatasetIndexes(_0x1a9f84);_0x1df1fc[_0x5786bb(0x22e)]({'tableName':_0x171cf7,..._0x52d041});}}_0x3c045e['length']>0x0&&(_0x4f373e['schemaWarnings']=_0x3c045e),_0x249f0e&&(_0x4f373e['joinAudit']=auditSqlJoinIndexes(_0x68f2c,_0x1df1fc));}return{'ok':_0x2c8ccf[_0x5786bb(0x212)],'data':_0x4f373e,'message':_0x2c8ccf[_0x5786bb(0x20b)]};}};function normalizeDatasetIndexes(_0x3691a4){const _0x3b5de5=a177_0x3989c5,_0x5970aa=Array[_0x3b5de5(0x1f3)](_0x3691a4?.[_0x3b5de5(0x22c)]?.[_0x3b5de5(0x221)])?_0x3691a4[_0x3b5de5(0x22c)][_0x3b5de5(0x221)]:Array['isArray'](_0x3691a4?.[_0x3b5de5(0x221)])?_0x3691a4['indexes']:[],_0x49cac7=_0x5970aa[_0x3b5de5(0x216)](_0x253ebb=>{const _0x1332c4=_0x3b5de5,_0x27c38c=Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x21f)])?_0x253ebb['index_columns']:Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x20e)])?_0x253ebb['columnNames']:Array[_0x1332c4(0x1f3)](_0x253ebb?.[_0x1332c4(0x204)])?_0x253ebb[_0x1332c4(0x204)]:[],_0x155395=_0x27c38c[_0x1332c4(0x224)](_0x3e3387=>typeof _0x3e3387==='string')[_0x1332c4(0x214)](_0x56970f=>_0x56970f['trim']())[_0x1332c4(0x224)](Boolean);if(_0x155395['length']===0x0)return[];const _0x2f9537=[_0x253ebb?.[_0x1332c4(0x202)],_0x253ebb?.[_0x1332c4(0x210)],_0x253ebb?.[_0x1332c4(0x1f4)]][_0x1332c4(0x206)](_0x2b244c=>typeof _0x2b244c===_0x1332c4(0x21d)&&_0x2b244c[_0x1332c4(0x211)]()),_0xc7c68=[_0x253ebb?.[_0x1332c4(0x217)],_0x253ebb?.['type']]['find'](_0x4bda84=>typeof _0x4bda84===_0x1332c4(0x21d)&&_0x4bda84[_0x1332c4(0x211)]());return[{..._0x2f9537?{'name':_0x2f9537[_0x1332c4(0x211)]()}:{},..._0xc7c68?{'type':_0xc7c68['trim']()}:{},'columns':_0x155395}];}),_0x46d5fc=[..._0x49cac7],_0x5587af=typeof _0x3691a4?.[_0x3b5de5(0x1f5)]?.[_0x3b5de5(0x1f7)]===_0x3b5de5(0x21d)?_0x3691a4['dbtableConfig'][_0x3b5de5(0x1f7)][_0x3b5de5(0x218)](',')[_0x3b5de5(0x214)](_0x379291=>_0x379291[_0x3b5de5(0x211)]())[_0x3b5de5(0x224)](Boolean):[];return _0x5587af[_0x3b5de5(0x209)]>0x0&&_0x46d5fc[_0x3b5de5(0x1f2)]({'type':'primary','columns':_0x5587af}),{'indexes':_0x46d5fc,'metadataAvailable':_0x49cac7[_0x3b5de5(0x209)]>0x0};}
1
+ const a177_0x462d8e=a177_0xfe4a;(function(_0x57044e,_0x17816d){const _0x4eaac2=a177_0xfe4a,_0x59c4a5=_0x57044e();while(!![]){try{const _0x3fb420=-parseInt(_0x4eaac2(0x12a))/0x1+-parseInt(_0x4eaac2(0x112))/0x2*(parseInt(_0x4eaac2(0x147))/0x3)+-parseInt(_0x4eaac2(0x125))/0x4+parseInt(_0x4eaac2(0x127))/0x5+parseInt(_0x4eaac2(0x114))/0x6*(-parseInt(_0x4eaac2(0x11b))/0x7)+-parseInt(_0x4eaac2(0x139))/0x8+parseInt(_0x4eaac2(0x117))/0x9;if(_0x3fb420===_0x17816d)break;else _0x59c4a5['push'](_0x59c4a5['shift']());}catch(_0x5e319c){_0x59c4a5['push'](_0x59c4a5['shift']());}}}(a177_0x1ee2,0xbb2e9));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';function a177_0xfe4a(_0x756e67,_0x35c727){_0x756e67=_0x756e67-0x109;const _0x1ee237=a177_0x1ee2();let _0xfe4abe=_0x1ee237[_0x756e67];return _0xfe4abe;}import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a177_0x1ee2(){const _0xca4cc1=['get','schema:','183894OvBnil','pkField','boolean','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','--check-indexes\x20requires\x20--schemas.','valid','Table\x20\x22','sqlType','file','isArray','read','\x22\x20not\x20found\x20or\x20not\x20accessible','validation','Dataset\x20\x22','index_columns','12bpkwmb','columns','8736HqHxAk','flagMissing','appCode','29923740DVqTQf','filter','map','sql','1778JFPjDW','reason','SQL\x20schema\x20validation','parameters','str','size','dbtableConfig','columnNames','Provide\x20--file\x20or\x20--sql','fields','5361268smVqgj','cwd','7214775xzTeir','indexName','tables','1444089BJomJe','indexes','find','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','push','check-indexes','primary','flatMap','name','length','split','\x22\x20not\x20found\x20in\x20any\x20dataset','isDangerous','index_type','dataset','3832800RndLSX','message','toLowerCase','unshift','string','type','trim','schemaWarnings','schemas','File\x20not\x20found:\x20','tableName','index_name'];a177_0x1ee2=function(){return _0xca4cc1;};return a177_0x1ee2();}import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a177_0x462d8e(0x11a),'command':'validate','description':a177_0x462d8e(0x14a),'risk':a177_0x462d8e(0x10d),'flags':[{'name':a177_0x462d8e(0x10b),'type':a177_0x462d8e(0x13d),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a177_0x462d8e(0x11a),'type':a177_0x462d8e(0x13d),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a177_0x462d8e(0x141),'type':a177_0x462d8e(0x13d),'description':a177_0x462d8e(0x12d)},{'name':a177_0x462d8e(0x12f),'type':a177_0x462d8e(0x149),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0xf76b75){const _0x3e2fd1=a177_0x462d8e,_0x523869=_0xf76b75[_0x3e2fd1(0x11f)]('file'),_0x4e5f27=_0xf76b75['str'](_0x3e2fd1(0x11a)),_0x26d6a3=_0xf76b75[_0x3e2fd1(0x11f)](_0x3e2fd1(0x141)),_0x1ed69e=_0xf76b75['bool'](_0x3e2fd1(0x12f));if(!_0x523869&&!_0x4e5f27)throw CliErrors[_0x3e2fd1(0x115)](_0x3e2fd1(0x10b),_0x3e2fd1(0x123));if(_0x1ed69e&&!_0x26d6a3)throw CliErrors[_0x3e2fd1(0x10f)](_0x3e2fd1(0x14b));let _0xa24bdc;if(_0x523869){const _0x28f88c=resolve(process[_0x3e2fd1(0x126)](),_0x523869);if(!existsSync(_0x28f88c))throw CliErrors[_0x3e2fd1(0x10f)](_0x3e2fd1(0x142)+_0x28f88c);_0xa24bdc=readFileSync(_0x28f88c,'utf-8');}else _0xa24bdc=_0x4e5f27;const _0x1b438d=validateSql(_0xa24bdc),_0x538c74={'valid':_0x1b438d[_0x3e2fd1(0x14c)],'sqlType':_0x1b438d[_0x3e2fd1(0x10a)][_0x3e2fd1(0x13e)],'isSelectOnly':_0x1b438d[_0x3e2fd1(0x10a)]['isSelectOnly'],'isDangerous':_0x1b438d[_0x3e2fd1(0x10a)][_0x3e2fd1(0x136)],'tables':_0x1b438d[_0x3e2fd1(0x129)],'parameters':_0x1b438d[_0x3e2fd1(0x11e)],'message':_0x1b438d['message']};_0x1b438d['sqlType']['reason']&&(_0x538c74[_0x3e2fd1(0x11c)]=_0x1b438d[_0x3e2fd1(0x10a)][_0x3e2fd1(0x11c)]);if(_0x26d6a3&&_0x1b438d['valid']){const _0x554312=_0x26d6a3[_0x3e2fd1(0x134)](',')[_0x3e2fd1(0x119)](_0x580287=>_0x580287['trim']())[_0x3e2fd1(0x118)](Boolean),_0x4fa63e=[],_0x3aabba=[],_0x4f32d5=filterDbTableBackedDatasets(await listDatasets(_0xf76b75[_0x3e2fd1(0x116)])),_0x1860cc=new Map(_0x4f32d5[_0x3e2fd1(0x119)](_0x1658e4=>[_0x1658e4[_0x3e2fd1(0x121)]?.[_0x3e2fd1(0x143)]?.[_0x3e2fd1(0x13b)](),_0x1658e4]));for(const _0x2115f1 of _0x1b438d['tables']){const _0x55d97c=_0x1860cc[_0x3e2fd1(0x145)](_0x2115f1[_0x3e2fd1(0x13b)]());!_0x55d97c&&_0x4fa63e[_0x3e2fd1(0x12e)](_0x3e2fd1(0x109)+_0x2115f1+_0x3e2fd1(0x135));}for(const _0x371804 of _0x554312){let _0x2c402d;try{_0x2c402d=await getDatasetDetail(_0x371804);}catch{_0x4fa63e[_0x3e2fd1(0x12e)](_0x3e2fd1(0x110)+_0x371804+_0x3e2fd1(0x10e));continue;}assertDatasetIsDbTableBacked(_0x2c402d,_0x3e2fd1(0x11d));const _0x4b0331=Array[_0x3e2fd1(0x10c)](_0x2c402d[_0x3e2fd1(0x124)])?_0x2c402d[_0x3e2fd1(0x124)]:[],_0x57e6a2=new Set(_0x4b0331[_0x3e2fd1(0x119)](_0x19a0cb=>_0x19a0cb[_0x3e2fd1(0x132)]?.[_0x3e2fd1(0x13b)]())),_0x13d5fe=_0x2c402d[_0x3e2fd1(0x121)]?.[_0x3e2fd1(0x143)]||_0x2c402d[_0x3e2fd1(0x143)]||_0x371804;_0x538c74[_0x3e2fd1(0x146)+_0x13d5fe]={'code':_0x371804,'tableName':_0x13d5fe,'fieldCount':_0x57e6a2[_0x3e2fd1(0x120)],'fields':Array['from'](_0x57e6a2)};if(_0x1ed69e){const _0x4a0e70=normalizeDatasetIndexes(_0x2c402d);_0x3aabba[_0x3e2fd1(0x12e)]({'tableName':_0x13d5fe,..._0x4a0e70});}}_0x4fa63e[_0x3e2fd1(0x133)]>0x0&&(_0x538c74[_0x3e2fd1(0x140)]=_0x4fa63e),_0x1ed69e&&(_0x538c74['joinAudit']=auditSqlJoinIndexes(_0xa24bdc,_0x3aabba));}return{'ok':_0x1b438d[_0x3e2fd1(0x14c)],'data':_0x538c74,'message':_0x1b438d[_0x3e2fd1(0x13a)]};}};function normalizeDatasetIndexes(_0x4fb970){const _0x13d248=a177_0x462d8e,_0x414128=Array[_0x13d248(0x10c)](_0x4fb970?.['dataset']?.['indexes'])?_0x4fb970[_0x13d248(0x138)][_0x13d248(0x12b)]:Array[_0x13d248(0x10c)](_0x4fb970?.[_0x13d248(0x12b)])?_0x4fb970[_0x13d248(0x12b)]:[],_0x550bc5=_0x414128[_0x13d248(0x131)](_0x2b937d=>{const _0x558257=_0x13d248,_0x5c1034=Array[_0x558257(0x10c)](_0x2b937d?.[_0x558257(0x111)])?_0x2b937d[_0x558257(0x111)]:Array[_0x558257(0x10c)](_0x2b937d?.[_0x558257(0x122)])?_0x2b937d[_0x558257(0x122)]:Array[_0x558257(0x10c)](_0x2b937d?.[_0x558257(0x113)])?_0x2b937d[_0x558257(0x113)]:[],_0x4f6b04=_0x5c1034[_0x558257(0x118)](_0x178431=>typeof _0x178431===_0x558257(0x13d))[_0x558257(0x119)](_0x513f17=>_0x513f17[_0x558257(0x13f)]())['filter'](Boolean);if(_0x4f6b04[_0x558257(0x133)]===0x0)return[];const _0x1470e7=[_0x2b937d?.[_0x558257(0x128)],_0x2b937d?.[_0x558257(0x144)],_0x2b937d?.[_0x558257(0x132)]]['find'](_0x31a50d=>typeof _0x31a50d===_0x558257(0x13d)&&_0x31a50d[_0x558257(0x13f)]()),_0x1dbd22=[_0x2b937d?.[_0x558257(0x137)],_0x2b937d?.[_0x558257(0x13e)]][_0x558257(0x12c)](_0x19b887=>typeof _0x19b887===_0x558257(0x13d)&&_0x19b887[_0x558257(0x13f)]());return[{..._0x1470e7?{'name':_0x1470e7[_0x558257(0x13f)]()}:{},..._0x1dbd22?{'type':_0x1dbd22[_0x558257(0x13f)]()}:{},'columns':_0x4f6b04}];}),_0x1985e6=[..._0x550bc5],_0x5b21be=typeof _0x4fb970?.[_0x13d248(0x121)]?.[_0x13d248(0x148)]===_0x13d248(0x13d)?_0x4fb970[_0x13d248(0x121)][_0x13d248(0x148)]['split'](',')[_0x13d248(0x119)](_0x2dd723=>_0x2dd723[_0x13d248(0x13f)]())[_0x13d248(0x118)](Boolean):[];return _0x5b21be[_0x13d248(0x133)]>0x0&&_0x1985e6[_0x13d248(0x13c)]({'type':_0x13d248(0x130),'columns':_0x5b21be}),{'indexes':_0x1985e6,'metadataAvailable':_0x550bc5[_0x13d248(0x133)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x1ff6f7,_0x260841){const _0x369d76=a178_0x3cf8,_0x2634f8=_0x1ff6f7();while(!![]){try{const _0x1a65cc=-parseInt(_0x369d76(0x8a))/0x1*(parseInt(_0x369d76(0x90))/0x2)+-parseInt(_0x369d76(0x8b))/0x3*(parseInt(_0x369d76(0x8f))/0x4)+-parseInt(_0x369d76(0x8e))/0x5*(-parseInt(_0x369d76(0x86))/0x6)+-parseInt(_0x369d76(0x88))/0x7+-parseInt(_0x369d76(0x8d))/0x8+-parseInt(_0x369d76(0x87))/0x9+-parseInt(_0x369d76(0x8c))/0xa*(-parseInt(_0x369d76(0x89))/0xb);if(_0x1a65cc===_0x260841)break;else _0x2634f8['push'](_0x2634f8['shift']());}catch(_0x50613d){_0x2634f8['push'](_0x2634f8['shift']());}}}(a178_0x4eb5,0x8b97b));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a178_0x3cf8(_0x2e65d3,_0xacdecb){_0x2e65d3=_0x2e65d3-0x86;const _0x4eb5b6=a178_0x4eb5();let _0x3cf8c8=_0x4eb5b6[_0x2e65d3];return _0x3cf8c8;}function a178_0x4eb5(){const _0x1810ad=['4fCTXBJ','6106BPKZtp','6234hOlEuc','795492ylUpqj','5816013kWicyP','3096082bvvbem','213AruOMa','539811jqRlZI','60NRrfsk','52104yUbota','3075fRJYGj'];a178_0x4eb5=function(){return _0x1810ad;};return a178_0x4eb5();}
1
+ (function(_0x37b4f5,_0x486bea){const _0x534e7d=a178_0x3552,_0x11d2d4=_0x37b4f5();while(!![]){try{const _0x23c3c9=-parseInt(_0x534e7d(0xa3))/0x1+-parseInt(_0x534e7d(0xa2))/0x2+-parseInt(_0x534e7d(0xa5))/0x3+parseInt(_0x534e7d(0xa1))/0x4+parseInt(_0x534e7d(0xa9))/0x5+-parseInt(_0x534e7d(0xa8))/0x6*(-parseInt(_0x534e7d(0xa6))/0x7)+-parseInt(_0x534e7d(0xa4))/0x8*(-parseInt(_0x534e7d(0xa7))/0x9);if(_0x23c3c9===_0x486bea)break;else _0x11d2d4['push'](_0x11d2d4['shift']());}catch(_0x1b7626){_0x11d2d4['push'](_0x11d2d4['shift']());}}}(a178_0x30ab,0x4234e));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a178_0x3552(_0x57e87b,_0x14484f){_0x57e87b=_0x57e87b-0xa1;const _0x30ab1b=a178_0x30ab();let _0x355244=_0x30ab1b[_0x57e87b];return _0x355244;}function a178_0x30ab(){const _0x366935=['1635005YqlfYL','29132zUqPcY','640352miTFPh','325175eDSCOZ','1640ApMnhK','476997NacrbP','348481AbRTgU','30357OLmDjj','6JTkxvQ'];a178_0x30ab=function(){return _0x366935;};return a178_0x30ab();}
@@ -1 +1 @@
1
- const a179_0x20959a=a179_0x1949;(function(_0x5ca224,_0x1f9471){const _0x255aee=a179_0x1949,_0xbeb9eb=_0x5ca224();while(!![]){try{const _0x206b26=parseInt(_0x255aee(0x1e2))/0x1+-parseInt(_0x255aee(0x1e0))/0x2*(-parseInt(_0x255aee(0x1d6))/0x3)+-parseInt(_0x255aee(0x1da))/0x4+-parseInt(_0x255aee(0x1d9))/0x5*(parseInt(_0x255aee(0x1de))/0x6)+parseInt(_0x255aee(0x1db))/0x7+-parseInt(_0x255aee(0x1d7))/0x8*(parseInt(_0x255aee(0x1e4))/0x9)+-parseInt(_0x255aee(0x1e5))/0xa*(-parseInt(_0x255aee(0x1dd))/0xb);if(_0x206b26===_0x1f9471)break;else _0xbeb9eb['push'](_0xbeb9eb['shift']());}catch(_0x5f4289){_0xbeb9eb['push'](_0xbeb9eb['shift']());}}}(a179_0x9c2a,0x650e9));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a179_0x1949(_0x5487e6,_0x3353f8){_0x5487e6=_0x5487e6-0x1ce;const _0x9c2a60=a179_0x9c2a();let _0x1949ac=_0x9c2a60[_0x5487e6];return _0x1949ac;}function a179_0x9c2a(){const _0x3f602e=['1042915zgOalW','1766016YipzmU','716891fhdZUB','task','32021pVGkDf','6cRdYWH','appCode','2VEfiYm','taskId','542480NnkQvT',',\x20received\x20','1284282ZbAZeo','1310DSlnpt','string','compress','task-id','trim','str','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','apiError','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','flagMissing','1397628pyaRNt','24SEWYca','cookie'];a179_0x9c2a=function(){return _0x3f602e;};return a179_0x9c2a();}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':a179_0x20959a(0x1dc),'command':'status','description':a179_0x20959a(0x1d2),'risk':'read','defaultOutputFormat':a179_0x20959a(0x1ce),'structuredErrors':!![],'flags':[{'name':a179_0x20959a(0x1cf),'type':a179_0x20959a(0x1e6),'required':!![],'description':a179_0x20959a(0x1d4)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xc38601){const _0x40f1ec=a179_0x20959a;if(!_0xc38601[_0x40f1ec(0x1d1)](_0x40f1ec(0x1cf))[_0x40f1ec(0x1d0)]())throw CliErrors[_0x40f1ec(0x1d5)](_0x40f1ec(0x1cf));},async 'execute'(_0x47fa45){const _0x5273aa=a179_0x20959a,_0x437d1f=_0x47fa45[_0x5273aa(0x1d1)](_0x5273aa(0x1cf))[_0x5273aa(0x1d0)](),_0x8d43d3=normalizeAsyncTask(await getAsyncTaskStatus(_0x437d1f,_0x47fa45[_0x5273aa(0x1df)],_0x47fa45[_0x5273aa(0x1d8)]));if(_0x8d43d3[_0x5273aa(0x1e1)]!==_0x437d1f)throw CliErrors[_0x5273aa(0x1d3)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x437d1f+_0x5273aa(0x1e3)+_0x8d43d3[_0x5273aa(0x1e1)]+'.');const _0x5e2449=buildAsyncTaskStatusCommand(_0x8d43d3[_0x5273aa(0x1e1)],_0x47fa45[_0x5273aa(0x1df)]);return{'ok':!![],'message':asyncTaskMessage(_0x8d43d3),'data':{'appCode':_0x47fa45[_0x5273aa(0x1df)],..._0x8d43d3,'query':_0x8d43d3['isTerminal']?null:{'command':_0x5e2449}}};}};
1
+ const a179_0xdbb9d2=a179_0x5556;(function(_0x529635,_0x4b8610){const _0xa5fc7d=a179_0x5556,_0x2f28e9=_0x529635();while(!![]){try{const _0x39a593=parseInt(_0xa5fc7d(0x11d))/0x1+parseInt(_0xa5fc7d(0x115))/0x2+-parseInt(_0xa5fc7d(0x11c))/0x3*(parseInt(_0xa5fc7d(0x11e))/0x4)+parseInt(_0xa5fc7d(0x119))/0x5*(-parseInt(_0xa5fc7d(0x120))/0x6)+-parseInt(_0xa5fc7d(0x10f))/0x7+-parseInt(_0xa5fc7d(0x11b))/0x8+parseInt(_0xa5fc7d(0x110))/0x9*(parseInt(_0xa5fc7d(0x127))/0xa);if(_0x39a593===_0x4b8610)break;else _0x2f28e9['push'](_0x2f28e9['shift']());}catch(_0x2dfb4c){_0x2f28e9['push'](_0x2f28e9['shift']());}}}(a179_0x2737,0x18dc7));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a179_0x5556(_0x2aa15b,_0x6efe88){_0x2aa15b=_0x2aa15b-0x10f;const _0x273767=a179_0x2737();let _0x5556dd=_0x273767[_0x2aa15b];return _0x5556dd;}function a179_0x2737(){const _0x2c9bdb=['task','210290PvXGct','read','taskId','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','82905zeWWaA','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','579864dytKPZ','4743yxrFNB','75155SJPtQC','80HMBJZT','cookie','18UtKNAe','string','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','compress','appCode','isTerminal','task-id','11710zSHFvR',',\x20received\x20','595350ZVIBuc','1233UwHPVK','str','flagMissing','trim'];a179_0x2737=function(){return _0x2c9bdb;};return a179_0x2737();}export const taskStatus={'service':a179_0xdbb9d2(0x114),'command':'status','description':a179_0xdbb9d2(0x118),'risk':a179_0xdbb9d2(0x116),'defaultOutputFormat':a179_0xdbb9d2(0x123),'structuredErrors':!![],'flags':[{'name':a179_0xdbb9d2(0x126),'type':a179_0xdbb9d2(0x121),'required':!![],'description':a179_0xdbb9d2(0x122)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x54903b){const _0x1ae19b=a179_0xdbb9d2;if(!_0x54903b[_0x1ae19b(0x111)]('task-id')[_0x1ae19b(0x113)]())throw CliErrors[_0x1ae19b(0x112)]('task-id');},async 'execute'(_0x2ecb89){const _0xeca792=a179_0xdbb9d2,_0x372bf3=_0x2ecb89[_0xeca792(0x111)](_0xeca792(0x126))[_0xeca792(0x113)](),_0x3022dd=normalizeAsyncTask(await getAsyncTaskStatus(_0x372bf3,_0x2ecb89[_0xeca792(0x124)],_0x2ecb89[_0xeca792(0x11f)]));if(_0x3022dd[_0xeca792(0x117)]!==_0x372bf3)throw CliErrors['apiError'](_0xeca792(0x11a)+_0x372bf3+_0xeca792(0x128)+_0x3022dd[_0xeca792(0x117)]+'.');const _0x43eb0d=buildAsyncTaskStatusCommand(_0x3022dd['taskId'],_0x2ecb89['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x3022dd),'data':{'appCode':_0x2ecb89[_0xeca792(0x124)],..._0x3022dd,'query':_0x3022dd[_0xeca792(0x125)]?null:{'command':_0x43eb0d}}};}};
@@ -1 +1 @@
1
- const a180_0x1c5476=a180_0x25bd;(function(_0x2ae4ec,_0x30e2e5){const _0x3eee7a=a180_0x25bd,_0x596ac0=_0x2ae4ec();while(!![]){try{const _0x1ea0d6=-parseInt(_0x3eee7a(0x16d))/0x1*(parseInt(_0x3eee7a(0x166))/0x2)+-parseInt(_0x3eee7a(0x16e))/0x3*(parseInt(_0x3eee7a(0x171))/0x4)+-parseInt(_0x3eee7a(0x173))/0x5+-parseInt(_0x3eee7a(0x16c))/0x6*(-parseInt(_0x3eee7a(0x169))/0x7)+parseInt(_0x3eee7a(0x164))/0x8*(-parseInt(_0x3eee7a(0x165))/0x9)+-parseInt(_0x3eee7a(0x16f))/0xa+-parseInt(_0x3eee7a(0x163))/0xb*(-parseInt(_0x3eee7a(0x167))/0xc);if(_0x1ea0d6===_0x30e2e5)break;else _0x596ac0['push'](_0x596ac0['shift']());}catch(_0x5e67e1){_0x596ac0['push'](_0x596ac0['shift']());}}}(a180_0x9761,0xbd0a1));function a180_0x9761(){const _0x15b9ac=['4358mSiptZ','48jouyYD','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','5842123xvwdlC','add','workspace','6tvTbys','467lAxIuv','273381hQAlxc','10512570fXutIM','workspace\x20add','24cyqvfl','write','3232885ACykQl','App\x20profile\x20name','9206351toURCA','166696cyKvIl','63YvkCIp'];a180_0x9761=function(){return _0x15b9ac;};return a180_0x9761();}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a180_0x25bd(_0x1ff8e9,_0x34d7a3){_0x1ff8e9=_0x1ff8e9-0x163;const _0x976134=a180_0x9761();let _0x25bd20=_0x976134[_0x1ff8e9];return _0x25bd20;}export const workspaceAddDefinition={'service':a180_0x1c5476(0x16b),'command':a180_0x1c5476(0x16a),'description':a180_0x1c5476(0x168),'risk':a180_0x1c5476(0x172),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0x1c5476(0x174),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x509d94=>validateAppName(_0x509d94,'workspace\x20add'),'execute':_0x5a4e7a=>runAppAdd(_0x5a4e7a,a180_0x1c5476(0x170))};
1
+ function a180_0x234b(_0x10374b,_0x8c04ea){_0x10374b=_0x10374b-0x1b7;const _0x5e7028=a180_0x5e70();let _0x234ba5=_0x5e7028[_0x10374b];return _0x234ba5;}function a180_0x5e70(){const _0x2a97d5=['460910GjPjfs','2118645XShJdK','App\x20profile\x20name','807kXfGkr','9251ERYmLt','2072pvNGxT','2434590haVcro','write','28gXFzJL','workspace','66JgtEuN','name','1987445QFGTOf','16PqmTbP','476024IPtSVT','workspace\x20add','add'];a180_0x5e70=function(){return _0x2a97d5;};return a180_0x5e70();}const a180_0x3d3b8b=a180_0x234b;(function(_0x43c06c,_0x725d6){const _0x5bec81=a180_0x234b,_0x27d417=_0x43c06c();while(!![]){try{const _0x46dcb4=-parseInt(_0x5bec81(0x1c7))/0x1*(-parseInt(_0x5bec81(0x1bf))/0x2)+-parseInt(_0x5bec81(0x1c6))/0x3*(parseInt(_0x5bec81(0x1b7))/0x4)+-parseInt(_0x5bec81(0x1be))/0x5+parseInt(_0x5bec81(0x1b8))/0x6+parseInt(_0x5bec81(0x1ba))/0x7*(parseInt(_0x5bec81(0x1c0))/0x8)+-parseInt(_0x5bec81(0x1c4))/0x9+parseInt(_0x5bec81(0x1c3))/0xa*(parseInt(_0x5bec81(0x1bc))/0xb);if(_0x46dcb4===_0x725d6)break;else _0x27d417['push'](_0x27d417['shift']());}catch(_0x1ce23a){_0x27d417['push'](_0x27d417['shift']());}}}(a180_0x5e70,0x3638f));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a180_0x3d3b8b(0x1bb),'command':a180_0x3d3b8b(0x1c2),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a180_0x3d3b8b(0x1b9),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x3d3b8b(0x1bd),'description':a180_0x3d3b8b(0x1c5),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x21a63a=>validateAppName(_0x21a63a,a180_0x3d3b8b(0x1c1)),'execute':_0x54aef6=>runAppAdd(_0x54aef6,'workspace\x20add')};
@@ -1 +1 @@
1
- const a181_0x49c081=a181_0x1dab;(function(_0x39b546,_0x4ffdf1){const _0x592cc4=a181_0x1dab,_0x45a0a1=_0x39b546();while(!![]){try{const _0x57a61d=-parseInt(_0x592cc4(0x1d9))/0x1*(parseInt(_0x592cc4(0x1f5))/0x2)+parseInt(_0x592cc4(0x1e0))/0x3+-parseInt(_0x592cc4(0x1ee))/0x4*(-parseInt(_0x592cc4(0x1e7))/0x5)+-parseInt(_0x592cc4(0x1db))/0x6*(parseInt(_0x592cc4(0x1fd))/0x7)+-parseInt(_0x592cc4(0x20c))/0x8+parseInt(_0x592cc4(0x1ea))/0x9*(-parseInt(_0x592cc4(0x1fb))/0xa)+-parseInt(_0x592cc4(0x202))/0xb*(-parseInt(_0x592cc4(0x204))/0xc);if(_0x57a61d===_0x4ffdf1)break;else _0x45a0a1['push'](_0x45a0a1['shift']());}catch(_0x12dbcf){_0x45a0a1['push'](_0x45a0a1['shift']());}}}(a181_0x3736,0x25d8c));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';function a181_0x3736(){const _0x5074b2=['\x20--app\x20','keys','workspace','format','Missing\x20workspace\x20app\x20selector.','4WhGFbg','app','length','Workspace\x20','number','workspace.','370XEiHty','Locale\x20for\x20this\x20workspace\x20app\x20profile','56567VIXViS','init','write','initialized','pageSize','88OkmkHv','updated','930072xIhADi','\x20workspace\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','locale','\x20workspace\x20use\x20--app\x20<name>`.','App\x20\x22','riskLevel','appcode','1589920KdBaMe','string','\x20(appcode:\x20','validation','project','129123dyMhiR','Use\x20`','72NwQNTm','globalConfig','flag','trim','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','162357fYYjZe','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','apiDir','env','str','\x22\x20not\x20found.','2725YUbvkT','\x20--appcode\x20<code>`.','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','2403RMWIqI','defaultFormat','use','apps','328kbbnJl','.\x20Credentials:\x20not\x20written.'];a181_0x3736=function(){return _0x5074b2;};return a181_0x3736();}const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x49c081(0x1e1),SAFE_PROFILE_KEYS=['appcode','env',a181_0x49c081(0x1e3),a181_0x49c081(0x1f3),a181_0x49c081(0x201),'riskLevel',a181_0x49c081(0x207)],workspaceFlags=[{'name':a181_0x49c081(0x1f6),'type':a181_0x49c081(0x20d),'description':a181_0x49c081(0x1e9)},{'name':'appcode','type':a181_0x49c081(0x20d),'description':a181_0x49c081(0x206)},{'name':a181_0x49c081(0x1e4),'type':a181_0x49c081(0x20d),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a181_0x49c081(0x20d),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x49c081(0x1eb),'type':a181_0x49c081(0x20d),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x49c081(0x201),'type':a181_0x49c081(0x1f9),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a181_0x49c081(0x20d),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a181_0x49c081(0x1fc)}];function isRecord(_0x5e6d1d){return!!_0x5e6d1d&&typeof _0x5e6d1d==='object'&&!Array['isArray'](_0x5e6d1d);}function assertValidAppcode(_0x4edd4c){const _0x4dcdd4=a181_0x49c081,{valid:_0x45d421,message:_0x9a27ef}=validateAppcode(_0x4edd4c);if(!_0x45d421)throw CliErrors[_0x4dcdd4(0x1d7)]('Invalid\x20appcode:\x20'+_0x4edd4c,_0x9a27ef);}function sanitizeProfile(_0x5db1c5){if(!isRecord(_0x5db1c5))return{};const _0x1d3fe4={};for(const _0x41a08e of SAFE_PROFILE_KEYS){if(_0x5db1c5[_0x41a08e]!==undefined)_0x1d3fe4[_0x41a08e]=_0x5db1c5[_0x41a08e];}return _0x1d3fe4;}function cloneProfile(_0x823b53){return isRecord(_0x823b53)?{..._0x823b53}:{};}function a181_0x1dab(_0x1057dc,_0x4a49da){_0x1057dc=_0x1057dc-0x1d6;const _0x3736ab=a181_0x3736();let _0x1dab48=_0x3736ab[_0x1057dc];return _0x1dab48;}function collectWorkspaceProfileOverrides(_0x562dae){const _0x561fa4=a181_0x49c081,_0x22a90f={},_0x3a555f=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x1e4)),_0x31c917=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x1e3)),_0x3d73d2=_0x562dae['str'](_0x561fa4(0x1eb)),_0x17e213=_0x562dae[_0x561fa4(0x1dd)](_0x561fa4(0x201)),_0x5b7a31=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x20a)),_0x5f3f2c=_0x562dae[_0x561fa4(0x1e5)](_0x561fa4(0x207));if(_0x3a555f)_0x22a90f[_0x561fa4(0x1e4)]=_0x3a555f;if(_0x31c917)_0x22a90f[_0x561fa4(0x1e3)]=_0x31c917;if(_0x3d73d2)_0x22a90f[_0x561fa4(0x1f3)]=_0x3d73d2;if(_0x17e213!==undefined&&_0x17e213!=='')_0x22a90f[_0x561fa4(0x201)]=Number(_0x17e213);if(_0x5b7a31)_0x22a90f['riskLevel']=_0x5b7a31;if(_0x5f3f2c)_0x22a90f[_0x561fa4(0x207)]=_0x5f3f2c;return _0x22a90f;}async function validateWorkspaceArgs(_0xb2aa07){const _0x4d7a21=a181_0x49c081,_0x19e296=_0xb2aa07[_0x4d7a21(0x1e5)]('app')[_0x4d7a21(0x1de)](),_0x486099=_0xb2aa07[_0x4d7a21(0x1e5)]('appcode')['trim']();if(!_0x19e296&&!_0x486099)throw CliErrors[_0x4d7a21(0x1d7)](_0x4d7a21(0x1f4),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x4d7a21(0x208));if(_0x486099)assertValidAppcode(_0x486099);}function resolveKnownApps(){const _0x272153=a181_0x49c081,{config:_0x2066f2,layers:_0x33b413}=readRawConfigWithLayers(),_0x66daff=isRecord(_0x2066f2['apps'])?_0x2066f2[_0x272153(0x1ed)]:{},_0x378e1f=isRecord(_0x33b413['globalConfig'][_0x272153(0x1ed)])?_0x33b413[_0x272153(0x1dc)][_0x272153(0x1ed)]:{};return{..._0x378e1f,..._0x66daff};}async function configureWorkspace(_0x5a2395,_0x345aa8){const _0x5a3e56=a181_0x49c081,_0xb98535=_0x5a2395[_0x5a3e56(0x1e5)](_0x5a3e56(0x1f6))[_0x5a3e56(0x1de)](),_0xcad01d=_0x5a2395[_0x5a3e56(0x1e5)](_0x5a3e56(0x20b))['trim'](),_0x52cf5e=_0xb98535||_0xcad01d;if(!_0x52cf5e)throw CliErrors[_0x5a3e56(0x1d7)](_0x5a3e56(0x1f4),_0x5a3e56(0x1da)+CLI_BIN_NAME+_0x5a3e56(0x1df)+CLI_BIN_NAME+_0x5a3e56(0x208));if(_0xcad01d)assertValidAppcode(_0xcad01d);const _0x3b8fd4=resolveWriteConfigPath(_0x5a3e56(0x1d8)),_0x68c1d2=readConfigFile(_0x3b8fd4),_0x1de465=resolveKnownApps(),_0x3c573f=isRecord(_0x68c1d2[_0x5a3e56(0x1ed)])?{..._0x68c1d2[_0x5a3e56(0x1ed)]}:{},_0x450208=cloneProfile(_0x3c573f[_0x52cf5e]),_0x14176e=sanitizeProfile(_0x1de465[_0x52cf5e]),_0xdea612=_0xcad01d?{}:_0x14176e,_0x520ac0=_0xcad01d||_0xdea612[_0x5a3e56(0x20b)];if(!_0x520ac0){const _0x2a249d=Object[_0x5a3e56(0x1f1)](_0x1de465),_0x1fea7f=_0x2a249d[_0x5a3e56(0x1f7)]===0x0?_0x5a3e56(0x1da)+CLI_BIN_NAME+_0x5a3e56(0x205)+_0x345aa8+_0x5a3e56(0x1f0)+_0x52cf5e+_0x5a3e56(0x1e8):_0x5a3e56(0x1e2)+_0x2a249d['join'](',\x20');throw CliErrors[_0x5a3e56(0x1d7)](_0x5a3e56(0x209)+_0x52cf5e+_0x5a3e56(0x1e6),_0x1fea7f);}assertValidAppcode(String(_0x520ac0));const _0x1f1a7d={..._0xdea612,..._0x450208,'appcode':String(_0x520ac0),...collectWorkspaceProfileOverrides(_0x5a2395)};return _0x3c573f[_0x52cf5e]=_0x1f1a7d,_0x68c1d2[_0x5a3e56(0x1ed)]=_0x3c573f,_0x68c1d2['defaultApp']=_0x52cf5e,delete _0x68c1d2[_0x5a3e56(0x20b)],delete _0x68c1d2['app'],_0x1f1a7d[_0x5a3e56(0x1e4)]&&(_0x68c1d2[_0x5a3e56(0x1e4)]=_0x1f1a7d['env']),writeConfigFile(_0x3b8fd4,_0x68c1d2),{'ok':!![],'message':_0x5a3e56(0x1f8)+(_0x345aa8===_0x5a3e56(0x1fe)?_0x5a3e56(0x200):_0x5a3e56(0x203))+':\x20'+_0x52cf5e+_0x5a3e56(0x1d6)+_0x1f1a7d['appcode']+').\x20Config:\x20'+_0x3b8fd4+_0x5a3e56(0x1ef),'data':{'operation':_0x5a3e56(0x1fa)+_0x345aa8,'configPath':_0x3b8fd4,'app':_0x52cf5e,'appcode':_0x1f1a7d['appcode'],'env':_0x1f1a7d['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x49c081(0x1ff),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5a2a0e=>configureWorkspace(_0x5a2a0e,'init')},workspaceUseDefinition={'service':a181_0x49c081(0x1f2),'command':a181_0x49c081(0x1ec),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x49c081(0x1ff),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3c2786=>configureWorkspace(_0x3c2786,a181_0x49c081(0x1ec))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a181_0x44f7f5=a181_0x2529;function a181_0x1a04(){const _0x15c7c5=['Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','defaultFormat','948unwDHQ','isArray','trim','riskLevel','470LSWghj','324384bUIUOW','\x20--app\x20','1BFJhGx','\x20workspace\x20use\x20--app\x20<name>`.','app','88kGmbRS','\x20(appcode:\x20','format','\x20--appcode\x20<code>`.','workspace','Initialize\x20the\x20current\x20workspace\x20app\x20binding','2097yzHAmu','locale','Invalid\x20appcode:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','workspace.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','number','defaultApp','100246atBjcS','55033IVBvcv','object','pageSize','Missing\x20workspace\x20app\x20selector.','join','\x22\x20not\x20found.','apiDir','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','env','\x20workspace\x20','validation','init','10367KUQbiI','string','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','1330270YAijVF','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','initialized','str','project','length','write','apps','keys','flag','Target\x20environment','use','Workspace\x20','2311569cUXoCI','appcode','updated','Use\x20`'];a181_0x1a04=function(){return _0x15c7c5;};return a181_0x1a04();}(function(_0x1a8e0f,_0x2f8d3f){const _0x3a630c=a181_0x2529,_0x2731d6=_0x1a8e0f();while(!![]){try{const _0xfcb1e6=-parseInt(_0x3a630c(0x215))/0x1*(parseInt(_0x3a630c(0x226))/0x2)+-parseInt(_0x3a630c(0x21e))/0x3*(parseInt(_0x3a630c(0x20e))/0x4)+parseInt(_0x3a630c(0x1fb))/0x5+parseInt(_0x3a630c(0x213))/0x6+parseInt(_0x3a630c(0x1f8))/0x7*(parseInt(_0x3a630c(0x218))/0x8)+parseInt(_0x3a630c(0x208))/0x9+parseInt(_0x3a630c(0x212))/0xa*(-parseInt(_0x3a630c(0x227))/0xb);if(_0xfcb1e6===_0x2f8d3f)break;else _0x2731d6['push'](_0x2731d6['shift']());}catch(_0x3faec4){_0x2731d6['push'](_0x2731d6['shift']());}}}(a181_0x1a04,0x22bf3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x44f7f5(0x223),SAFE_PROFILE_KEYS=['appcode','env',a181_0x44f7f5(0x1f1),a181_0x44f7f5(0x21a),a181_0x44f7f5(0x229),a181_0x44f7f5(0x211),a181_0x44f7f5(0x21f)],workspaceFlags=[{'name':a181_0x44f7f5(0x217),'type':a181_0x44f7f5(0x1f9),'description':a181_0x44f7f5(0x1fa)},{'name':'appcode','type':'string','description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a181_0x44f7f5(0x1f4),'type':'string','description':a181_0x44f7f5(0x205),'enum':[...RABETBASE_ENV_VALUES]},{'name':a181_0x44f7f5(0x1f1),'type':a181_0x44f7f5(0x1f9),'description':a181_0x44f7f5(0x1fc)},{'name':a181_0x44f7f5(0x20d),'type':a181_0x44f7f5(0x1f9),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x44f7f5(0x229),'type':a181_0x44f7f5(0x224),'description':a181_0x44f7f5(0x221)},{'name':'riskLevel','type':a181_0x44f7f5(0x1f9),'description':a181_0x44f7f5(0x1f3),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x44f7f5(0x21f),'type':'string','description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2aaa6f){const _0x206b98=a181_0x44f7f5;return!!_0x2aaa6f&&typeof _0x2aaa6f===_0x206b98(0x228)&&!Array[_0x206b98(0x20f)](_0x2aaa6f);}function assertValidAppcode(_0x3bbfba){const _0x4b12df=a181_0x44f7f5,{valid:_0x5d5f99,message:_0x917581}=validateAppcode(_0x3bbfba);if(!_0x5d5f99)throw CliErrors[_0x4b12df(0x1f6)](_0x4b12df(0x220)+_0x3bbfba,_0x917581);}function sanitizeProfile(_0x27cf83){if(!isRecord(_0x27cf83))return{};const _0x5d5629={};for(const _0x19c05c of SAFE_PROFILE_KEYS){if(_0x27cf83[_0x19c05c]!==undefined)_0x5d5629[_0x19c05c]=_0x27cf83[_0x19c05c];}return _0x5d5629;}function cloneProfile(_0x1b4483){return isRecord(_0x1b4483)?{..._0x1b4483}:{};}function a181_0x2529(_0x1b84f1,_0x409e31){_0x1b84f1=_0x1b84f1-0x1f0;const _0x1a04f3=a181_0x1a04();let _0x252998=_0x1a04f3[_0x1b84f1];return _0x252998;}function collectWorkspaceProfileOverrides(_0x257aa0){const _0x28ff55=a181_0x44f7f5,_0xf948eb={},_0x3d6c28=_0x257aa0['str'](_0x28ff55(0x1f4)),_0x5adf79=_0x257aa0[_0x28ff55(0x1fe)](_0x28ff55(0x1f1)),_0x2c9d29=_0x257aa0[_0x28ff55(0x1fe)](_0x28ff55(0x20d)),_0x5d09d6=_0x257aa0[_0x28ff55(0x204)](_0x28ff55(0x229)),_0x12343c=_0x257aa0['str']('riskLevel'),_0x4ff726=_0x257aa0[_0x28ff55(0x1fe)](_0x28ff55(0x21f));if(_0x3d6c28)_0xf948eb['env']=_0x3d6c28;if(_0x5adf79)_0xf948eb[_0x28ff55(0x1f1)]=_0x5adf79;if(_0x2c9d29)_0xf948eb['format']=_0x2c9d29;if(_0x5d09d6!==undefined&&_0x5d09d6!=='')_0xf948eb[_0x28ff55(0x229)]=Number(_0x5d09d6);if(_0x12343c)_0xf948eb['riskLevel']=_0x12343c;if(_0x4ff726)_0xf948eb['locale']=_0x4ff726;return _0xf948eb;}async function validateWorkspaceArgs(_0x459d35){const _0x38788f=a181_0x44f7f5,_0x12b559=_0x459d35[_0x38788f(0x1fe)](_0x38788f(0x217))[_0x38788f(0x210)](),_0x5f5ccc=_0x459d35[_0x38788f(0x1fe)](_0x38788f(0x209))['trim']();if(!_0x12b559&&!_0x5f5ccc)throw CliErrors[_0x38788f(0x1f6)](_0x38788f(0x22a),'Use\x20`'+CLI_BIN_NAME+_0x38788f(0x1f2)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5f5ccc)assertValidAppcode(_0x5f5ccc);}function resolveKnownApps(){const _0x2e69e7=a181_0x44f7f5,{config:_0x30bf13,layers:_0x154b4d}=readRawConfigWithLayers(),_0x10e669=isRecord(_0x30bf13[_0x2e69e7(0x202)])?_0x30bf13[_0x2e69e7(0x202)]:{},_0x53fdcf=isRecord(_0x154b4d['globalConfig'][_0x2e69e7(0x202)])?_0x154b4d['globalConfig'][_0x2e69e7(0x202)]:{};return{..._0x53fdcf,..._0x10e669};}async function configureWorkspace(_0x972282,_0x5052cf){const _0x3725d2=a181_0x44f7f5,_0x230d03=_0x972282[_0x3725d2(0x1fe)](_0x3725d2(0x217))[_0x3725d2(0x210)](),_0xe9a0a5=_0x972282[_0x3725d2(0x1fe)](_0x3725d2(0x209))[_0x3725d2(0x210)](),_0x4ec902=_0x230d03||_0xe9a0a5;if(!_0x4ec902)throw CliErrors[_0x3725d2(0x1f6)](_0x3725d2(0x22a),_0x3725d2(0x20b)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x3725d2(0x216));if(_0xe9a0a5)assertValidAppcode(_0xe9a0a5);const _0x1cc9a1=resolveWriteConfigPath(_0x3725d2(0x1ff)),_0x277e2f=readConfigFile(_0x1cc9a1),_0x3427f6=resolveKnownApps(),_0x21478c=isRecord(_0x277e2f[_0x3725d2(0x202)])?{..._0x277e2f['apps']}:{},_0x2b82a2=cloneProfile(_0x21478c[_0x4ec902]),_0x5b57eb=sanitizeProfile(_0x3427f6[_0x4ec902]),_0x10156a=_0xe9a0a5?{}:_0x5b57eb,_0xc099eb=_0xe9a0a5||_0x10156a[_0x3725d2(0x209)];if(!_0xc099eb){const _0xa80535=Object[_0x3725d2(0x203)](_0x3427f6),_0x4bf704=_0xa80535[_0x3725d2(0x200)]===0x0?_0x3725d2(0x20b)+CLI_BIN_NAME+_0x3725d2(0x1f5)+_0x5052cf+_0x3725d2(0x214)+_0x4ec902+_0x3725d2(0x21b):_0x3725d2(0x20c)+_0xa80535[_0x3725d2(0x22b)](',\x20');throw CliErrors[_0x3725d2(0x1f6)]('App\x20\x22'+_0x4ec902+_0x3725d2(0x1f0),_0x4bf704);}assertValidAppcode(String(_0xc099eb));const _0x2794dc={..._0x10156a,..._0x2b82a2,'appcode':String(_0xc099eb),...collectWorkspaceProfileOverrides(_0x972282)};return _0x21478c[_0x4ec902]=_0x2794dc,_0x277e2f[_0x3725d2(0x202)]=_0x21478c,_0x277e2f[_0x3725d2(0x225)]=_0x4ec902,delete _0x277e2f[_0x3725d2(0x209)],delete _0x277e2f[_0x3725d2(0x217)],_0x2794dc['env']&&(_0x277e2f[_0x3725d2(0x1f4)]=_0x2794dc[_0x3725d2(0x1f4)]),writeConfigFile(_0x1cc9a1,_0x277e2f),{'ok':!![],'message':_0x3725d2(0x207)+(_0x5052cf===_0x3725d2(0x1f7)?_0x3725d2(0x1fd):_0x3725d2(0x20a))+':\x20'+_0x4ec902+_0x3725d2(0x219)+_0x2794dc[_0x3725d2(0x209)]+').\x20Config:\x20'+_0x1cc9a1+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3725d2(0x222)+_0x5052cf,'configPath':_0x1cc9a1,'app':_0x4ec902,'appcode':_0x2794dc[_0x3725d2(0x209)],'env':_0x2794dc[_0x3725d2(0x1f4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a181_0x44f7f5(0x21c),'command':a181_0x44f7f5(0x1f7),'description':a181_0x44f7f5(0x21d),'risk':a181_0x44f7f5(0x201),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4a04a1=>configureWorkspace(_0x4a04a1,'init')},workspaceUseDefinition={'service':a181_0x44f7f5(0x21c),'command':a181_0x44f7f5(0x206),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x44f7f5(0x201),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x545cdb=>configureWorkspace(_0x545cdb,a181_0x44f7f5(0x206))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a182_0xa8f236=a182_0x7734;function a182_0x7734(_0x2f2eff,_0x516e8a){_0x2f2eff=_0x2f2eff-0x11c;const _0x3dfc42=a182_0x3dfc();let _0x77344d=_0x3dfc42[_0x2f2eff];return _0x77344d;}(function(_0x49c86b,_0x55153a){const _0x202678=a182_0x7734,_0x573ce6=_0x49c86b();while(!![]){try{const _0x291763=-parseInt(_0x202678(0x127))/0x1+parseInt(_0x202678(0x125))/0x2*(-parseInt(_0x202678(0x11f))/0x3)+parseInt(_0x202678(0x122))/0x4*(-parseInt(_0x202678(0x123))/0x5)+-parseInt(_0x202678(0x12b))/0x6*(parseInt(_0x202678(0x124))/0x7)+-parseInt(_0x202678(0x121))/0x8*(parseInt(_0x202678(0x120))/0x9)+parseInt(_0x202678(0x12a))/0xa*(-parseInt(_0x202678(0x11e))/0xb)+parseInt(_0x202678(0x126))/0xc;if(_0x291763===_0x55153a)break;else _0x573ce6['push'](_0x573ce6['shift']());}catch(_0x1c6146){_0x573ce6['push'](_0x573ce6['shift']());}}}(a182_0x3dfc,0x280f8));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x3dfc(){const _0x57b5e3=['name','App\x20profile\x20name\x20to\x20remove','high-risk-write','4763ZLNSeB','6PEIlEY','40113dirmJa','368eAuvXh','972FSDazl','6700kSnanZ','7sfLZSa','19562fcaWKw','14470296WIivFi','4540JCymad','remove','workspace\x20remove','6590zWqWLs','1210074yCjWEh'];a182_0x3dfc=function(){return _0x57b5e3;};return a182_0x3dfc();}export const workspaceRemoveDefinition={'service':'workspace','command':a182_0xa8f236(0x128),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a182_0xa8f236(0x11d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0xa8f236(0x12c),'description':a182_0xa8f236(0x11c),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x289c07=>validateAppName(_0x289c07,a182_0xa8f236(0x129)),'execute':_0xa456af=>runAppRemove(_0xa456af,a182_0xa8f236(0x129))};
1
+ const a182_0x37ebea=a182_0x28b3;function a182_0x3984(){const _0x18bfad=['15IRUIyc','high-risk-write','309192FnsWgA','10gRyhsa','workspace\x20remove','workspace','8TutUkr','28488exqlhe','642231lozNxs','4307360AZanuK','28355FSabWA','141948ZAAdBp','1289022jAqkuW'];a182_0x3984=function(){return _0x18bfad;};return a182_0x3984();}(function(_0xf2d6af,_0x25bb0a){const _0x3e9d0b=a182_0x28b3,_0x3cdca1=_0xf2d6af();while(!![]){try{const _0x1836a8=parseInt(_0x3e9d0b(0x1a3))/0x1+-parseInt(_0x3e9d0b(0x1a9))/0x2*(parseInt(_0x3e9d0b(0x1ad))/0x3)+parseInt(_0x3e9d0b(0x1a4))/0x4*(-parseInt(_0x3e9d0b(0x1a6))/0x5)+parseInt(_0x3e9d0b(0x1a8))/0x6+-parseInt(_0x3e9d0b(0x1a5))/0x7+-parseInt(_0x3e9d0b(0x1ac))/0x8*(parseInt(_0x3e9d0b(0x1a1))/0x9)+parseInt(_0x3e9d0b(0x1a2))/0xa;if(_0x1836a8===_0x25bb0a)break;else _0x3cdca1['push'](_0x3cdca1['shift']());}catch(_0x2e8df2){_0x3cdca1['push'](_0x3cdca1['shift']());}}}(a182_0x3984,0x18b39));function a182_0x28b3(_0x135c54,_0x20f582){_0x135c54=_0x135c54-0x1a1;const _0x39843b=a182_0x3984();let _0x28b333=_0x39843b[_0x135c54];return _0x28b333;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a182_0x37ebea(0x1ab),'command':'remove','description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a182_0x37ebea(0x1a7),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x13edb0=>validateAppName(_0x13edb0,a182_0x37ebea(0x1aa)),'execute':_0x2f12eb=>runAppRemove(_0x2f12eb,a182_0x37ebea(0x1aa))};
@@ -1 +1 @@
1
- const a183_0x59b812=a183_0x5efe;(function(_0x3fc460,_0x5b5efe){const _0x337dac=a183_0x5efe,_0x3f61a8=_0x3fc460();while(!![]){try{const _0xd5a3a7=parseInt(_0x337dac(0x71))/0x1*(-parseInt(_0x337dac(0x78))/0x2)+parseInt(_0x337dac(0x7c))/0x3*(parseInt(_0x337dac(0x68))/0x4)+-parseInt(_0x337dac(0x6a))/0x5+-parseInt(_0x337dac(0x66))/0x6+-parseInt(_0x337dac(0x88))/0x7+parseInt(_0x337dac(0x74))/0x8*(parseInt(_0x337dac(0x87))/0x9)+-parseInt(_0x337dac(0x7d))/0xa*(-parseInt(_0x337dac(0x7b))/0xb);if(_0xd5a3a7===_0x5b5efe)break;else _0x3f61a8['push'](_0x3f61a8['shift']());}catch(_0xb3c099){_0x3f61a8['push'](_0x3f61a8['shift']());}}}(a183_0x4664,0x29192));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a183_0x59b812(0x7a),a183_0x59b812(0x6d),a183_0x59b812(0x70),'format',a183_0x59b812(0x6b)];function a183_0x5efe(_0x101ea6,_0x32abcc){_0x101ea6=_0x101ea6-0x66;const _0x4664a3=a183_0x4664();let _0x5efe50=_0x4664a3[_0x101ea6];return _0x5efe50;}export const TOP_LEVEL_CONFIG_KEYS=new Set([a183_0x59b812(0x8b),a183_0x59b812(0x75),'locale',a183_0x59b812(0x82),'cookie','accessKey',a183_0x59b812(0x8d)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a183_0x4664(){const _0x12c3b0=['appcode','apps','apiDir','join','436080swFnRP','number','167224vMnPnH','Config\x20key\x20(','835680zHKEit','riskLevel','API\x20directory\x20path','accessKey','defaultFormat','length','locale','11NDXdqL','Auth\x20cookie','trim','623608zhOFny','env','keys','inherit','29406LECZOy','pageSize','cookie','146366VVBKlA','24pSVikk','130qFeZDe','defaultApp','string','Default\x20page\x20size','entries','format','en-US','zh-CN','Locale','app','36hFhdpY','1745401FzWFEX','has','Risk\x20level'];a183_0x4664=function(){return _0x12c3b0;};return a183_0x4664();}export function formatConfigKeyList(_0x2101a0){const _0xea1ac3=a183_0x59b812;return[..._0x2101a0][_0xea1ac3(0x8e)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1474df){const _0x78277f=a183_0x59b812;return TOP_LEVEL_CONFIG_KEYS[_0x78277f(0x89)](_0x1474df);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x445f77=a183_0x59b812;return _0x445f77(0x69)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x59b812(0x75),'apiDir':a183_0x59b812(0x8d),'cookie':'cookie','accessKey':a183_0x59b812(0x6d),'defaultFormat':a183_0x59b812(0x82),'pageSize':'pageSize','riskLevel':a183_0x59b812(0x6b),'locale':a183_0x59b812(0x70)};export function getAppProfileFlagDefs(){const _0x1c90aa=a183_0x59b812;return[{'name':_0x1c90aa(0x75),'type':_0x1c90aa(0x7f),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x6c)},{'name':'cookie','type':'string','description':_0x1c90aa(0x72),'hidden':!![]},{'name':_0x1c90aa(0x6d),'type':_0x1c90aa(0x7f),'description':'Access\x20key','hidden':!![]},{'name':_0x1c90aa(0x6e),'type':_0x1c90aa(0x7f),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x1c90aa(0x67),'description':_0x1c90aa(0x80)},{'name':_0x1c90aa(0x6b),'type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x8a),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x1c90aa(0x70),'type':_0x1c90aa(0x7f),'description':_0x1c90aa(0x85)}];}export function collectAppProfileOverrides(_0x252cc9){const _0xf7c9a9=a183_0x59b812,_0x111ef3={};for(const [_0x1d2bf7,_0x3b938c]of Object[_0xf7c9a9(0x81)](APP_PROFILE_FLAG_KEY_MAP)){const _0x2c438d=_0x252cc9(_0x1d2bf7);if(!_0x2c438d)continue;_0x111ef3[_0x3b938c]=_0x3b938c===_0xf7c9a9(0x79)?Number(_0x2c438d):_0x2c438d;}return _0x111ef3;}export function buildAppProfileListFields(_0x331272){const _0x4e0fa3=a183_0x59b812;return{'env':_0x331272[_0x4e0fa3(0x75)]??null,'apiDir':_0x331272[_0x4e0fa3(0x8d)]??null,'hasCookie':!!_0x331272['cookie'],'hasAccessKey':!!_0x331272[_0x4e0fa3(0x6d)],'format':_0x331272['format']??null,'pageSize':_0x331272[_0x4e0fa3(0x79)]??null,'riskLevel':_0x331272[_0x4e0fa3(0x6b)]??null,'locale':_0x331272['locale']??null};}export function buildAppDoctorFields(_0xb53168,_0x5e303c){const _0xcc8354=a183_0x59b812;return{'env':{'value':_0xb53168['env']||_0x5e303c['env'],'source':_0xb53168['env']?_0xcc8354(0x86):'inherit'},'apiDir':{'value':_0xb53168[_0xcc8354(0x8d)]||_0x5e303c[_0xcc8354(0x8d)],'source':_0xb53168['apiDir']?_0xcc8354(0x86):_0xcc8354(0x77)},'cookie':{'value':_0xb53168[_0xcc8354(0x7a)]||_0x5e303c['cookie'],'source':_0xb53168['cookie']?_0xcc8354(0x86):_0xcc8354(0x77)},'accessKey':{'value':_0xb53168[_0xcc8354(0x6d)]||_0x5e303c[_0xcc8354(0x6d)],'source':_0xb53168[_0xcc8354(0x6d)]?'app':'inherit'}};}export function buildCanonicalAppConfig(_0x5c1b6c,_0x1ca9c3){const _0x2fdcef=a183_0x59b812,_0x1b94de=_0x5c1b6c['map'](_0xa4dd0b=>String(_0xa4dd0b||'')[_0x2fdcef(0x73)]())['filter'](Boolean);if(_0x1b94de[_0x2fdcef(0x6f)]===0x0)return{};const _0x53df2c={};for(const _0xdf8b70 of _0x1b94de){_0x53df2c[_0xdf8b70]=_0x1ca9c3?{'appcode':_0xdf8b70,'env':_0x1ca9c3}:{'appcode':_0xdf8b70};}return{'apps':_0x53df2c,'defaultApp':_0x1b94de[0x0]};}export function buildCanonicalProjectConfig(_0x1febaf,_0x4b12dc){const _0x52aeaf=a183_0x59b812,{appCodes:appCodes=[],env:_0x29c0d1,metadata:_0xdd0d31}=_0x4b12dc,_0x1b8b02={..._0x1febaf,..._0xdd0d31||{}};delete _0x1b8b02[_0x52aeaf(0x8b)],delete _0x1b8b02[_0x52aeaf(0x86)];if(_0x29c0d1)_0x1b8b02[_0x52aeaf(0x75)]=_0x29c0d1;else!_0x1b8b02['env']&&(_0x1b8b02['env']=DEFAULT_CONFIG_VALUES[_0x52aeaf(0x75)]);const _0x3feea6=buildCanonicalAppConfig(appCodes,_0x1b8b02[_0x52aeaf(0x75)]);return Object[_0x52aeaf(0x76)](_0x3feea6)[_0x52aeaf(0x6f)]>0x0&&(_0x1b8b02[_0x52aeaf(0x8c)]=_0x3feea6[_0x52aeaf(0x8c)],_0x1b8b02[_0x52aeaf(0x7e)]=_0x3feea6[_0x52aeaf(0x7e)]),_0x1b8b02;}const LOCALE_MAP={'zh':a183_0x59b812(0x84),'zh-cn':a183_0x59b812(0x84),'zh_cn':a183_0x59b812(0x84),'en':a183_0x59b812(0x83),'en-us':a183_0x59b812(0x83),'en_us':a183_0x59b812(0x83)};export function normalizeLocale(_0x193709){if(!_0x193709)return null;return LOCALE_MAP[_0x193709['toLowerCase']()]??null;}
1
+ const a183_0x32f603=a183_0x19bb;(function(_0x2c3b0a,_0xc3d69e){const _0x429e1d=a183_0x19bb,_0x18e29a=_0x2c3b0a();while(!![]){try{const _0x5b3425=-parseInt(_0x429e1d(0x1f0))/0x1*(-parseInt(_0x429e1d(0x1e3))/0x2)+-parseInt(_0x429e1d(0x1d1))/0x3*(-parseInt(_0x429e1d(0x1d6))/0x4)+-parseInt(_0x429e1d(0x1f1))/0x5*(parseInt(_0x429e1d(0x1ea))/0x6)+parseInt(_0x429e1d(0x1de))/0x7+-parseInt(_0x429e1d(0x1d9))/0x8+parseInt(_0x429e1d(0x1e7))/0x9*(parseInt(_0x429e1d(0x1eb))/0xa)+-parseInt(_0x429e1d(0x1dc))/0xb*(parseInt(_0x429e1d(0x1e1))/0xc);if(_0x5b3425===_0xc3d69e)break;else _0x18e29a['push'](_0x18e29a['shift']());}catch(_0x461050){_0x18e29a['push'](_0x18e29a['shift']());}}}(a183_0x5155,0x43d5b));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';function a183_0x19bb(_0x5e5253,_0x3b51aa){_0x5e5253=_0x5e5253-0x1c9;const _0x51550b=a183_0x5155();let _0x19bb03=_0x51550b[_0x5e5253];return _0x19bb03;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a183_0x32f603(0x1d2),'accessKey',a183_0x32f603(0x1e4),a183_0x32f603(0x1f2),a183_0x32f603(0x1ca)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a183_0x32f603(0x1ce),a183_0x32f603(0x1e4),a183_0x32f603(0x1f2),a183_0x32f603(0x1d2),'accessKey',a183_0x32f603(0x1d5)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x386fe8){const _0x3d7046=a183_0x32f603;return[..._0x386fe8][_0x3d7046(0x1df)](',\x20');}function a183_0x5155(){const _0x4ade86=['2180wwQRHR','number','accessKey','1218344bSUBlO','pageSize','map','14025BnMDtS','filter','473067dWeLZy','join','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','2640YCguAP','defaultApp','334HUyPZs','locale','defaultFormat','app','549027yMGJcp','en-US','appcode','114wCMQnE','20FebYab','Risk\x20level','string','Locale','trim','662HmeXUx','31665ktPlaS','format','Auth\x20cookie','Target\x20environment','riskLevel','Default\x20page\x20size','entries','Access\x20key','env','length','inherit','2922ZIrfMR','cookie','zh-CN','apps','apiDir'];a183_0x5155=function(){return _0x4ade86;};return a183_0x5155();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2ee6ed){return TOP_LEVEL_CONFIG_KEYS['has'](_0x2ee6ed);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x32f603(0x1ce),'apiDir':a183_0x32f603(0x1d5),'cookie':a183_0x32f603(0x1d2),'accessKey':'accessKey','defaultFormat':a183_0x32f603(0x1f2),'pageSize':a183_0x32f603(0x1da),'riskLevel':a183_0x32f603(0x1ca),'locale':a183_0x32f603(0x1e4)};export function getAppProfileFlagDefs(){const _0x1a8c85=a183_0x32f603;return[{'name':_0x1a8c85(0x1ce),'type':_0x1a8c85(0x1ed),'description':_0x1a8c85(0x1c9),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1a8c85(0x1d5),'type':_0x1a8c85(0x1ed),'description':'API\x20directory\x20path'},{'name':_0x1a8c85(0x1d2),'type':'string','description':_0x1a8c85(0x1f3),'hidden':!![]},{'name':_0x1a8c85(0x1d8),'type':'string','description':_0x1a8c85(0x1cd),'hidden':!![]},{'name':_0x1a8c85(0x1e5),'type':_0x1a8c85(0x1ed),'description':_0x1a8c85(0x1e0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1a8c85(0x1da),'type':_0x1a8c85(0x1d7),'description':_0x1a8c85(0x1cb)},{'name':'riskLevel','type':_0x1a8c85(0x1ed),'description':_0x1a8c85(0x1ec),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x1a8c85(0x1ed),'description':_0x1a8c85(0x1ee)}];}export function collectAppProfileOverrides(_0x4ed206){const _0x2069be=a183_0x32f603,_0x244ed8={};for(const [_0x143532,_0x7cbabd]of Object[_0x2069be(0x1cc)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1c51fd=_0x4ed206(_0x143532);if(!_0x1c51fd)continue;_0x244ed8[_0x7cbabd]=_0x7cbabd===_0x2069be(0x1da)?Number(_0x1c51fd):_0x1c51fd;}return _0x244ed8;}export function buildAppProfileListFields(_0x1225d9){const _0x11cec8=a183_0x32f603;return{'env':_0x1225d9['env']??null,'apiDir':_0x1225d9['apiDir']??null,'hasCookie':!!_0x1225d9[_0x11cec8(0x1d2)],'hasAccessKey':!!_0x1225d9[_0x11cec8(0x1d8)],'format':_0x1225d9['format']??null,'pageSize':_0x1225d9[_0x11cec8(0x1da)]??null,'riskLevel':_0x1225d9['riskLevel']??null,'locale':_0x1225d9[_0x11cec8(0x1e4)]??null};}export function buildAppDoctorFields(_0x2eecdb,_0x57f809){const _0x39b164=a183_0x32f603;return{'env':{'value':_0x2eecdb[_0x39b164(0x1ce)]||_0x57f809[_0x39b164(0x1ce)],'source':_0x2eecdb[_0x39b164(0x1ce)]?'app':'inherit'},'apiDir':{'value':_0x2eecdb[_0x39b164(0x1d5)]||_0x57f809[_0x39b164(0x1d5)],'source':_0x2eecdb[_0x39b164(0x1d5)]?'app':_0x39b164(0x1d0)},'cookie':{'value':_0x2eecdb[_0x39b164(0x1d2)]||_0x57f809[_0x39b164(0x1d2)],'source':_0x2eecdb[_0x39b164(0x1d2)]?_0x39b164(0x1e6):_0x39b164(0x1d0)},'accessKey':{'value':_0x2eecdb[_0x39b164(0x1d8)]||_0x57f809[_0x39b164(0x1d8)],'source':_0x2eecdb[_0x39b164(0x1d8)]?_0x39b164(0x1e6):_0x39b164(0x1d0)}};}export function buildCanonicalAppConfig(_0x37a0ae,_0x256ee){const _0x36004a=a183_0x32f603,_0x3649bf=_0x37a0ae[_0x36004a(0x1db)](_0x3c5733=>String(_0x3c5733||'')[_0x36004a(0x1ef)]())[_0x36004a(0x1dd)](Boolean);if(_0x3649bf[_0x36004a(0x1cf)]===0x0)return{};const _0x25ede8={};for(const _0x485f7a of _0x3649bf){_0x25ede8[_0x485f7a]=_0x256ee?{'appcode':_0x485f7a,'env':_0x256ee}:{'appcode':_0x485f7a};}return{'apps':_0x25ede8,'defaultApp':_0x3649bf[0x0]};}export function buildCanonicalProjectConfig(_0x500d45,_0x24bcf3){const _0x18d86e=a183_0x32f603,{appCodes:appCodes=[],env:_0x350e36,metadata:_0x3cd15c}=_0x24bcf3,_0x5155f2={..._0x500d45,..._0x3cd15c||{}};delete _0x5155f2[_0x18d86e(0x1e9)],delete _0x5155f2[_0x18d86e(0x1e6)];if(_0x350e36)_0x5155f2[_0x18d86e(0x1ce)]=_0x350e36;else!_0x5155f2[_0x18d86e(0x1ce)]&&(_0x5155f2[_0x18d86e(0x1ce)]=DEFAULT_CONFIG_VALUES[_0x18d86e(0x1ce)]);const _0x4151e2=buildCanonicalAppConfig(appCodes,_0x5155f2[_0x18d86e(0x1ce)]);return Object['keys'](_0x4151e2)[_0x18d86e(0x1cf)]>0x0&&(_0x5155f2['apps']=_0x4151e2[_0x18d86e(0x1d4)],_0x5155f2[_0x18d86e(0x1e2)]=_0x4151e2[_0x18d86e(0x1e2)]),_0x5155f2;}const LOCALE_MAP={'zh':a183_0x32f603(0x1d3),'zh-cn':'zh-CN','zh_cn':'zh-CN','en':a183_0x32f603(0x1e8),'en-us':a183_0x32f603(0x1e8),'en_us':a183_0x32f603(0x1e8)};export function normalizeLocale(_0x542579){if(!_0x542579)return null;return LOCALE_MAP[_0x542579['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- function a184_0x9eca(){const _0x506bff=['96537uFBCft','2933073eAegSK','8XkSWaN','2898900tMZKrw','99szrszl','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','3CASISd','3887051SMkeqe','258RWCRqz','10WiWmdJ','65360jLgMDF','2131400NXiGRI','1334884vdXIJR'];a184_0x9eca=function(){return _0x506bff;};return a184_0x9eca();}function a184_0x549b(_0x14da45,_0x12631b){_0x14da45=_0x14da45-0x79;const _0x9ecaff=a184_0x9eca();let _0x549b90=_0x9ecaff[_0x14da45];return _0x549b90;}const a184_0x126a35=a184_0x549b;(function(_0x5983bb,_0x1be19e){const _0x5c90c3=a184_0x549b,_0x5e371e=_0x5983bb();while(!![]){try{const _0x1cf86c=-parseInt(_0x5c90c3(0x7f))/0x1+-parseInt(_0x5c90c3(0x7e))/0x2*(-parseInt(_0x5c90c3(0x85))/0x3)+parseInt(_0x5c90c3(0x7d))/0x4+parseInt(_0x5c90c3(0x7c))/0x5*(parseInt(_0x5c90c3(0x7a))/0x6)+-parseInt(_0x5c90c3(0x79))/0x7*(-parseInt(_0x5c90c3(0x81))/0x8)+-parseInt(_0x5c90c3(0x80))/0x9*(-parseInt(_0x5c90c3(0x7b))/0xa)+parseInt(_0x5c90c3(0x83))/0xb*(-parseInt(_0x5c90c3(0x82))/0xc);if(_0x1cf86c===_0x1be19e)break;else _0x5e371e['push'](_0x5e371e['shift']());}catch(_0x552577){_0x5e371e['push'](_0x5e371e['shift']());}}}(a184_0x9eca,0x5b082));export const CLI_VERSION_POLICY_URL=a184_0x126a35(0x84);
1
+ function a184_0x18e9(){const _0x2a3df1=['84798BgYThg','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1496586EvBRBW','156FnDKXv','857858xHJjgW','14484040QTSBuy','2320905iJidzo','1032mKVUaJ','4841634UsBKBa'];a184_0x18e9=function(){return _0x2a3df1;};return a184_0x18e9();}function a184_0x1ad1(_0xcaeb57,_0x5b25b5){_0xcaeb57=_0xcaeb57-0x189;const _0x18e953=a184_0x18e9();let _0x1ad11c=_0x18e953[_0xcaeb57];return _0x1ad11c;}const a184_0x968164=a184_0x1ad1;(function(_0x1327f1,_0x57e19c){const _0x395ace=a184_0x1ad1,_0x276e58=_0x1327f1();while(!![]){try{const _0x4b5c4e=-parseInt(_0x395ace(0x18e))/0x1+-parseInt(_0x395ace(0x18c))/0x2+-parseInt(_0x395ace(0x18d))/0x3*(parseInt(_0x395ace(0x191))/0x4)+-parseInt(_0x395ace(0x190))/0x5+parseInt(_0x395ace(0x189))/0x6+-parseInt(_0x395ace(0x18a))/0x7+parseInt(_0x395ace(0x18f))/0x8;if(_0x4b5c4e===_0x57e19c)break;else _0x276e58['push'](_0x276e58['shift']());}catch(_0x31eccf){_0x276e58['push'](_0x276e58['shift']());}}}(a184_0x18e9,0x7f56e));export const CLI_VERSION_POLICY_URL=a184_0x968164(0x18b);
@@ -1 +1 @@
1
- const a185_0x207a77=a185_0x65eb;(function(_0x7200ed,_0x31723d){const _0x312382=a185_0x65eb,_0x3f6742=_0x7200ed();while(!![]){try{const _0x4b84ca=-parseInt(_0x312382(0x18f))/0x1*(-parseInt(_0x312382(0x1b9))/0x2)+parseInt(_0x312382(0x16f))/0x3*(parseInt(_0x312382(0x171))/0x4)+-parseInt(_0x312382(0x17a))/0x5+-parseInt(_0x312382(0x1bc))/0x6*(parseInt(_0x312382(0x17f))/0x7)+-parseInt(_0x312382(0x1ce))/0x8*(parseInt(_0x312382(0x18e))/0x9)+-parseInt(_0x312382(0x1d8))/0xa+parseInt(_0x312382(0x1d9))/0xb*(parseInt(_0x312382(0x192))/0xc);if(_0x4b84ca===_0x31723d)break;else _0x3f6742['push'](_0x3f6742['shift']());}catch(_0x3c3817){_0x3f6742['push'](_0x3f6742['shift']());}}}(a185_0x2ad0,0x926f5));export const CLI_BIN_NAME='rabetbase';function a185_0x65eb(_0x4fc959,_0x4a69bc){_0x4fc959=_0x4fc959-0x15d;const _0x2ad004=a185_0x2ad0();let _0x65eb13=_0x2ad004[_0x4fc959];return _0x65eb13;}export const CLI_DISPLAY_NAME=a185_0x207a77(0x1b2);export const NPM_PACKAGE_NAME=a185_0x207a77(0x16e);function a185_0x2ad0(){const _0x226791=['Clear','Description','sql-name','enableBffSave','map','2221430blzAXc','Show\x20help','appcode','format','Expected\x20current\x20menu\x20path','854tQqrpZ','Name','function-node','SQL\x20string','target','Page\x20number','clear','Operation\x20type','Function\x20node','skipImports','dbid','Verbose\x20output','keyword','Asynchronous\x20task\x20ID','watch','278991GvhIXn','669616BycSoQ','Config\x20value','nonInteractive','12jIPTHA','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','Override\x20appcode','Use\x20project\x20config\x20scope','all','schemas','page','expectedCount','Reveal\x20sensitive\x20value','project','code','expected-count','Comma-separated\x20menu\x20IDs','dryRun','dry-run','Expected\x20affected\x20count','enable-bff-save','name','Expected\x20current\x20child\x20count','Watch\x20mode','env','Schemas','DB\x20ID','Output\x20format','Code\x20filter','confirm','Alias\x20for\x20--non-interactive','Parent\x20menu\x20id','sqlName','stdin','sqlcode','Rabetbase\x20CLI','Read\x20value\x20from\x20stdin','task-id','from-env','description-file','Dataset\x20code','verbose','2CGaCSj','Keyword\x20filter','operationType','30372emHZsT','Force\x20overwrite','datasetcode','sql','Description\x20file','Use\x20global\x20config\x20scope','description','Environment','non-interactive','expectedChildrenCount','Apply\x20to\x20all','<name>','<code>','meowKey','SQL\x20name','production\x20|\x20daily','tags','Read\x20value\x20from\x20environment\x20variable','64pBOrjH','help','Select\x20app\x20profile\x20by\x20name','descriptionFile','expect-parent-id','Menu\x20sort\x20value','Page\x20size','force','File\x20path','expectParentId','4981780DPnUPC','18463918yiZEqD','string','Config\x20key','title','dbId','taskId','app','value','parent-id','operation','menu-ids','key','output','params','<expr>','json\x20|\x20pretty\x20|\x20compress','expected-children-count','yes','sqlname','label','SQL\x20code','functionNode','boolean','remote','type','skip-imports','@lovrabet/rabetbase-cli','3QBKONN','sort','238652yjcclo','Type\x20filter','Skip\x20import\x20generation','reveal'];a185_0x2ad0=function(){return _0x226791;};return a185_0x2ad0();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x195),'hint':a185_0x207a77(0x1c8)},{'name':a185_0x207a77(0x1df),'meowKey':a185_0x207a77(0x1df),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d0),'hint':a185_0x207a77(0x1c7)},{'name':a185_0x207a77(0x1a7),'meowKey':a185_0x207a77(0x1a7),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c3),'hint':a185_0x207a77(0x1cb)},{'name':a185_0x207a77(0x17d),'meowKey':a185_0x207a77(0x17d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1aa),'hint':a185_0x207a77(0x163)},{'name':'jq','meowKey':'jq','type':a185_0x207a77(0x1da),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a185_0x207a77(0x162)},{'name':'dry-run','meowKey':a185_0x207a77(0x1a0),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':'yes','meowKey':'yes','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x193)},{'name':a185_0x207a77(0x1c4),'meowKey':a185_0x207a77(0x191),'type':a185_0x207a77(0x16a),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a185_0x207a77(0x194),'meowKey':a185_0x207a77(0x194),'type':'boolean','description':a185_0x207a77(0x1c1)},{'name':'project','meowKey':a185_0x207a77(0x19c),'type':'boolean','description':a185_0x207a77(0x196)},{'name':'ci','meowKey':'ci','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1ad),'hidden':!![]},{'name':a185_0x207a77(0x1cf),'meowKey':'help','type':'boolean','description':a185_0x207a77(0x17b)},{'name':a185_0x207a77(0x1a4),'meowKey':'name','type':'string','description':a185_0x207a77(0x180),'hidden':!![]},{'name':'title','meowKey':a185_0x207a77(0x1dc),'type':'string','description':'Title','hidden':!![]},{'name':a185_0x207a77(0x185),'meowKey':'clear','type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x175),'hidden':!![]},{'name':a185_0x207a77(0x18d),'meowKey':a185_0x207a77(0x18d),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1a6),'hidden':!![]},{'name':'output','meowKey':a185_0x207a77(0x160),'type':a185_0x207a77(0x1da),'description':'Output\x20path','hidden':!![]},{'name':a185_0x207a77(0x161),'meowKey':'params','type':'string','description':'JSON\x20params','hidden':!![]},{'name':a185_0x207a77(0x1be),'meowKey':a185_0x207a77(0x1be),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1b7),'hidden':!![]},{'name':a185_0x207a77(0x197),'meowKey':a185_0x207a77(0x197),'type':'boolean','description':a185_0x207a77(0x1c6),'hidden':!![]},{'name':a185_0x207a77(0x1a3),'meowKey':a185_0x207a77(0x178),'type':a185_0x207a77(0x16a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x207a77(0x16c),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x172),'hidden':!![]},{'name':'file','meowKey':'file','type':'string','description':a185_0x207a77(0x1d6),'hidden':!![]},{'name':a185_0x207a77(0x1b1),'meowKey':a185_0x207a77(0x1b1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x168),'hidden':!![]},{'name':a185_0x207a77(0x177),'meowKey':a185_0x207a77(0x1af),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'sqlname','meowKey':a185_0x207a77(0x166),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ca),'hidden':!![]},{'name':'db-id','meowKey':a185_0x207a77(0x1dd),'type':'string','description':a185_0x207a77(0x1a9),'hidden':!![]},{'name':a185_0x207a77(0x189),'meowKey':a185_0x207a77(0x189),'type':a185_0x207a77(0x1da),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x207a77(0x1c2),'meowKey':a185_0x207a77(0x1c2),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x176),'hidden':!![]},{'name':a185_0x207a77(0x1b6),'meowKey':a185_0x207a77(0x1d1),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1c0),'hidden':!![]},{'name':a185_0x207a77(0x199),'meowKey':a185_0x207a77(0x199),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x184),'hidden':!![]},{'name':'pagesize','meowKey':'pagesize','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d4),'hidden':!![]},{'name':a185_0x207a77(0x18b),'meowKey':'keyword','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ba),'hidden':!![]},{'name':a185_0x207a77(0x19d),'meowKey':a185_0x207a77(0x19d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1ab),'hidden':!![]},{'name':a185_0x207a77(0x1bf),'meowKey':a185_0x207a77(0x1bf),'type':'string','description':a185_0x207a77(0x182),'hidden':!![]},{'name':'schemas','meowKey':a185_0x207a77(0x198),'type':'string','description':a185_0x207a77(0x1a8),'hidden':!![]},{'name':a185_0x207a77(0x15d),'meowKey':a185_0x207a77(0x15d),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x183),'meowKey':a185_0x207a77(0x183),'type':a185_0x207a77(0x1da),'description':'Target\x20path','hidden':!![]},{'name':a185_0x207a77(0x16d),'meowKey':a185_0x207a77(0x188),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x173),'hidden':!![]},{'name':a185_0x207a77(0x15f),'meowKey':'key','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1db),'hidden':!![]},{'name':'value','meowKey':a185_0x207a77(0x1e0),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x190),'hidden':!![]},{'name':a185_0x207a77(0x1cc),'meowKey':a185_0x207a77(0x1cc),'type':a185_0x207a77(0x1da),'description':'Tags','hidden':!![]},{'name':a185_0x207a77(0x1b0),'meowKey':a185_0x207a77(0x1b0),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x1b3),'hidden':!![]},{'name':a185_0x207a77(0x1b5),'meowKey':'fromEnv','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1cd),'hidden':!![]},{'name':a185_0x207a77(0x174),'meowKey':a185_0x207a77(0x174),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x19b),'hidden':!![]},{'name':a185_0x207a77(0x1d5),'meowKey':a185_0x207a77(0x1d5),'type':'boolean','description':a185_0x207a77(0x1bd),'hidden':!![]},{'name':a185_0x207a77(0x1ac),'meowKey':'confirm','type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x207a77(0x16b),'meowKey':'remote','type':'boolean','description':'Use\x20remote','hidden':!![]},{'name':a185_0x207a77(0x1b8),'meowKey':a185_0x207a77(0x1b8),'type':a185_0x207a77(0x16a),'description':a185_0x207a77(0x18a),'hidden':!![]},{'name':a185_0x207a77(0x19e),'meowKey':a185_0x207a77(0x19a),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a2),'hidden':!![]},{'name':a185_0x207a77(0x167),'meowKey':a185_0x207a77(0x167),'type':a185_0x207a77(0x1da),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x207a77(0x1e1),'meowKey':'parentId','type':'string','description':a185_0x207a77(0x1ae),'hidden':!![]},{'name':a185_0x207a77(0x170),'meowKey':a185_0x207a77(0x170),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1d3),'hidden':!![]},{'name':a185_0x207a77(0x1d2),'meowKey':a185_0x207a77(0x1d7),'type':a185_0x207a77(0x1da),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':'expectPath','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x17e),'hidden':!![]},{'name':a185_0x207a77(0x164),'meowKey':a185_0x207a77(0x1c5),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x1a5),'hidden':!![]},{'name':a185_0x207a77(0x15e),'meowKey':'menuIds','type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x19f),'hidden':!![]},{'name':a185_0x207a77(0x1b4),'meowKey':a185_0x207a77(0x1de),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x18c),'hidden':!![]},{'name':'operation-type','meowKey':a185_0x207a77(0x1bb),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x186),'hidden':!![]},{'name':a185_0x207a77(0x181),'meowKey':a185_0x207a77(0x169),'type':a185_0x207a77(0x1da),'description':a185_0x207a77(0x187),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x207a77(0x17c),'app',a185_0x207a77(0x1a7),'format','jq',a185_0x207a77(0x1a1),a185_0x207a77(0x165),a185_0x207a77(0x1c4),'ci']);export function buildMeowFlags(){const _0x40ae4e=a185_0x207a77;return Object['fromEntries'](GLOBAL_FLAGS[_0x40ae4e(0x179)](_0x3a32d5=>[_0x3a32d5[_0x40ae4e(0x1c9)],{'type':_0x3a32d5[_0x40ae4e(0x16c)]}]));}
1
+ const a185_0x5ea4c0=a185_0x3903;(function(_0xd3d804,_0x27b0fa){const _0x120e86=a185_0x3903,_0x22b290=_0xd3d804();while(!![]){try{const _0xeddccb=parseInt(_0x120e86(0xc6))/0x1*(-parseInt(_0x120e86(0x121))/0x2)+parseInt(_0x120e86(0xfc))/0x3*(parseInt(_0x120e86(0xb3))/0x4)+parseInt(_0x120e86(0x115))/0x5+-parseInt(_0x120e86(0x107))/0x6*(parseInt(_0x120e86(0x11e))/0x7)+-parseInt(_0x120e86(0xf8))/0x8*(-parseInt(_0x120e86(0xe1))/0x9)+-parseInt(_0x120e86(0x108))/0xa*(parseInt(_0x120e86(0xde))/0xb)+parseInt(_0x120e86(0xca))/0xc;if(_0xeddccb===_0x27b0fa)break;else _0x22b290['push'](_0x22b290['shift']());}catch(_0xcee716){_0x22b290['push'](_0x22b290['shift']());}}}(a185_0x11fa,0x26702));export const CLI_BIN_NAME=a185_0x5ea4c0(0xdb);function a185_0x3903(_0x10b625,_0x2a9bbd){_0x10b625=_0x10b625-0xb1;const _0x11fa60=a185_0x11fa();let _0x39039e=_0x11fa60[_0x10b625];return _0x39039e;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x5ea4c0(0xeb);export const GLOBAL_FLAGS=[{'name':a185_0x5ea4c0(0xe5),'meowKey':a185_0x5ea4c0(0xe5),'type':'string','description':'Override\x20appcode','hint':'<code>'},{'name':a185_0x5ea4c0(0xec),'meowKey':a185_0x5ea4c0(0xec),'type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a185_0x5ea4c0(0xb9)},{'name':a185_0x5ea4c0(0x10f),'meowKey':a185_0x5ea4c0(0x10f),'type':'string','description':a185_0x5ea4c0(0x120),'hint':'production\x20|\x20daily'},{'name':'format','meowKey':a185_0x5ea4c0(0xdf),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xfa),'hint':a185_0x5ea4c0(0xe0)},{'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':a185_0x5ea4c0(0xf1)},{'name':a185_0x5ea4c0(0xb4),'meowKey':'dryRun','type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0xf3)},{'name':a185_0x5ea4c0(0xf9),'meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a185_0x5ea4c0(0x125),'meowKey':a185_0x5ea4c0(0xe8),'type':a185_0x5ea4c0(0xe4),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a185_0x5ea4c0(0x113),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x109)},{'name':a185_0x5ea4c0(0xea),'meowKey':a185_0x5ea4c0(0xea),'type':a185_0x5ea4c0(0xe4),'description':'Use\x20project\x20config\x20scope'},{'name':'ci','meowKey':'ci','type':a185_0x5ea4c0(0xe4),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':a185_0x5ea4c0(0xc0),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x11f)},{'name':a185_0x5ea4c0(0xc3),'meowKey':a185_0x5ea4c0(0xc3),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x116),'hidden':!![]},{'name':a185_0x5ea4c0(0xff),'meowKey':'title','type':'string','description':a185_0x5ea4c0(0xd4),'hidden':!![]},{'name':a185_0x5ea4c0(0x127),'meowKey':a185_0x5ea4c0(0x127),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0x10a),'hidden':!![]},{'name':a185_0x5ea4c0(0xd8),'meowKey':a185_0x5ea4c0(0xd8),'type':a185_0x5ea4c0(0xe4),'description':'Watch\x20mode','hidden':!![]},{'name':a185_0x5ea4c0(0xdd),'meowKey':a185_0x5ea4c0(0xdd),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc8),'hidden':!![]},{'name':'params','meowKey':a185_0x5ea4c0(0x119),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x101),'hidden':!![]},{'name':'datasetcode','meowKey':'datasetcode','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb6),'hidden':!![]},{'name':a185_0x5ea4c0(0x12c),'meowKey':a185_0x5ea4c0(0x12c),'type':a185_0x5ea4c0(0xe4),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a185_0x5ea4c0(0x114),'meowKey':a185_0x5ea4c0(0x100),'type':'boolean','description':a185_0x5ea4c0(0x11a),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x5ea4c0(0xe9),'description':'Record\x20ID','hidden':!![]},{'name':a185_0x5ea4c0(0x122),'meowKey':a185_0x5ea4c0(0x122),'type':'string','description':a185_0x5ea4c0(0xe7),'hidden':!![]},{'name':a185_0x5ea4c0(0xf6),'meowKey':a185_0x5ea4c0(0xf6),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb7),'hidden':!![]},{'name':a185_0x5ea4c0(0x11b),'meowKey':'sqlcode','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc7),'hidden':!![]},{'name':'sql-name','meowKey':a185_0x5ea4c0(0xc5),'type':a185_0x5ea4c0(0xe9),'description':'SQL\x20name','hidden':!![]},{'name':a185_0x5ea4c0(0x10d),'meowKey':a185_0x5ea4c0(0x10d),'type':'string','description':a185_0x5ea4c0(0xf2),'hidden':!![]},{'name':'db-id','meowKey':a185_0x5ea4c0(0xcd),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x12a),'hidden':!![]},{'name':a185_0x5ea4c0(0xce),'meowKey':'dbid','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x12a),'hidden':!![]},{'name':a185_0x5ea4c0(0x102),'meowKey':a185_0x5ea4c0(0x102),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x11d),'hidden':!![]},{'name':a185_0x5ea4c0(0x128),'meowKey':a185_0x5ea4c0(0xe2),'type':a185_0x5ea4c0(0xe9),'description':'Description\x20file','hidden':!![]},{'name':a185_0x5ea4c0(0xd5),'meowKey':'page','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x10e),'hidden':!![]},{'name':a185_0x5ea4c0(0x129),'meowKey':'pagesize','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xc2),'hidden':!![]},{'name':a185_0x5ea4c0(0x12b),'meowKey':a185_0x5ea4c0(0x12b),'type':'string','description':a185_0x5ea4c0(0xed),'hidden':!![]},{'name':a185_0x5ea4c0(0x123),'meowKey':a185_0x5ea4c0(0x123),'type':a185_0x5ea4c0(0xe9),'description':'Code\x20filter','hidden':!![]},{'name':a185_0x5ea4c0(0x103),'meowKey':a185_0x5ea4c0(0x103),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x104),'hidden':!![]},{'name':a185_0x5ea4c0(0x112),'meowKey':a185_0x5ea4c0(0x112),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x126),'hidden':!![]},{'name':a185_0x5ea4c0(0xd9),'meowKey':a185_0x5ea4c0(0xd9),'type':'string','description':a185_0x5ea4c0(0x10b),'hidden':!![]},{'name':a185_0x5ea4c0(0xd7),'meowKey':a185_0x5ea4c0(0xd7),'type':a185_0x5ea4c0(0xe9),'description':'Target\x20path','hidden':!![]},{'name':'skip-imports','meowKey':'skipImports','type':a185_0x5ea4c0(0xe4),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a185_0x5ea4c0(0x110),'meowKey':a185_0x5ea4c0(0x110),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xb8),'hidden':!![]},{'name':a185_0x5ea4c0(0xf7),'meowKey':a185_0x5ea4c0(0xf7),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xe3),'hidden':!![]},{'name':a185_0x5ea4c0(0xcb),'meowKey':a185_0x5ea4c0(0xcb),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xd1),'hidden':!![]},{'name':'stdin','meowKey':a185_0x5ea4c0(0xc9),'type':'boolean','description':a185_0x5ea4c0(0xb2),'hidden':!![]},{'name':a185_0x5ea4c0(0xf4),'meowKey':'fromEnv','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x11c),'hidden':!![]},{'name':a185_0x5ea4c0(0x118),'meowKey':a185_0x5ea4c0(0x118),'type':'boolean','description':a185_0x5ea4c0(0xb1),'hidden':!![]},{'name':a185_0x5ea4c0(0xdc),'meowKey':'force','type':a185_0x5ea4c0(0xe4),'description':'Force\x20overwrite','hidden':!![]},{'name':a185_0x5ea4c0(0x124),'meowKey':a185_0x5ea4c0(0x124),'type':a185_0x5ea4c0(0xe4),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x5ea4c0(0xc4),'meowKey':a185_0x5ea4c0(0xc4),'type':a185_0x5ea4c0(0xe4),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x5ea4c0(0xe6),'meowKey':a185_0x5ea4c0(0xe6),'type':a185_0x5ea4c0(0xe4),'description':a185_0x5ea4c0(0xfe),'hidden':!![]},{'name':a185_0x5ea4c0(0xd0),'meowKey':a185_0x5ea4c0(0xc1),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xef),'hidden':!![]},{'name':a185_0x5ea4c0(0xd3),'meowKey':a185_0x5ea4c0(0xd3),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x105),'hidden':!![]},{'name':'parent-id','meowKey':a185_0x5ea4c0(0xfd),'type':a185_0x5ea4c0(0xe9),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x5ea4c0(0xba),'meowKey':a185_0x5ea4c0(0xba),'type':'string','description':a185_0x5ea4c0(0x12d),'hidden':!![]},{'name':a185_0x5ea4c0(0x106),'meowKey':a185_0x5ea4c0(0xda),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xf5),'hidden':!![]},{'name':a185_0x5ea4c0(0xfb),'meowKey':'expectPath','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xcc),'hidden':!![]},{'name':a185_0x5ea4c0(0xd6),'meowKey':a185_0x5ea4c0(0xbf),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0x10c),'hidden':!![]},{'name':a185_0x5ea4c0(0xcf),'meowKey':'menuIds','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xd2),'hidden':!![]},{'name':a185_0x5ea4c0(0xbe),'meowKey':'taskId','type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xee),'hidden':!![]},{'name':a185_0x5ea4c0(0xbb),'meowKey':a185_0x5ea4c0(0xbc),'type':'string','description':a185_0x5ea4c0(0x10b),'hidden':!![]},{'name':a185_0x5ea4c0(0x111),'meowKey':a185_0x5ea4c0(0xf0),'type':a185_0x5ea4c0(0xe9),'description':a185_0x5ea4c0(0xbd),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x5ea4c0(0xe5),a185_0x5ea4c0(0xec),a185_0x5ea4c0(0x10f),a185_0x5ea4c0(0xdf),'jq',a185_0x5ea4c0(0xb4),a185_0x5ea4c0(0xf9),'non-interactive','ci']);export function buildMeowFlags(){const _0x30c333=a185_0x5ea4c0;return Object['fromEntries'](GLOBAL_FLAGS[_0x30c333(0x117)](_0x10f750=>[_0x10f750[_0x30c333(0xb5)],{'type':_0x10f750['type']}]));}function a185_0x11fa(){const _0x2e0a6a=['File\x20path','Config\x20key','<name>','sort','operation-type','operationType','Function\x20node','task-id','expectedChildrenCount','help','expectedCount','Page\x20size','name','remote','sqlName','3VIEESz','SQL\x20code','Output\x20path','stdin','1217856PQAlkg','tags','Expected\x20current\x20menu\x20path','dbId','dbid','menu-ids','expected-count','Tags','Comma-separated\x20menu\x20IDs','label','Title','page','expected-children-count','target','watch','operation','expectParentId','rabetbase','force','output','1034sGRhSz','format','json\x20|\x20pretty\x20|\x20compress','2168262YYuQMS','descriptionFile','Config\x20value','boolean','appcode','verbose','Type\x20filter','nonInteractive','string','project','@lovrabet/rabetbase-cli','app','Keyword\x20filter','Asynchronous\x20task\x20ID','Expected\x20affected\x20count','functionNode','<expr>','SQL\x20name','Preview\x20operation\x20without\x20executing','from-env','Expected\x20current\x20parent\x20menu\x20id','file','value','8QDsgxj','yes','Output\x20format','expect-path','681shVarq','parentId','Verbose\x20output','title','enableBffSave','JSON\x20params','description','sql','SQL\x20string','Menu\x20label','expect-parent-id','1792662trNCJl','11840gAQXrR','Use\x20global\x20config\x20scope','Clear','Operation\x20type','Expected\x20current\x20child\x20count','sqlname','Page\x20number','env','key','function-node','schemas','global','enable-bff-save','499845zzeXxw','Name','map','reveal','params','Enable\x20BFF\x20save','sqlcode','Read\x20value\x20from\x20environment\x20variable','Description','7ejOMHY','Show\x20help','Environment','19026iwvcSG','type','code','confirm','non-interactive','Schemas','clear','description-file','pagesize','DB\x20ID','keyword','all','Menu\x20sort\x20value','Reveal\x20sensitive\x20value','Read\x20value\x20from\x20stdin','2708ucLhwS','dry-run','meowKey','Dataset\x20code'];a185_0x11fa=function(){return _0x2e0a6a;};return a185_0x11fa();}
@@ -1 +1 @@
1
- const a186_0x3b9ceb=a186_0x7e74;(function(_0x207a86,_0xcd4fc9){const _0x2f09c9=a186_0x7e74,_0x1c85c2=_0x207a86();while(!![]){try{const _0x2805b4=-parseInt(_0x2f09c9(0xae))/0x1+parseInt(_0x2f09c9(0xb3))/0x2*(-parseInt(_0x2f09c9(0xaf))/0x3)+parseInt(_0x2f09c9(0xb8))/0x4+-parseInt(_0x2f09c9(0xb9))/0x5*(-parseInt(_0x2f09c9(0xba))/0x6)+parseInt(_0x2f09c9(0xb6))/0x7*(parseInt(_0x2f09c9(0xb2))/0x8)+-parseInt(_0x2f09c9(0xb0))/0x9*(-parseInt(_0x2f09c9(0xb1))/0xa)+-parseInt(_0x2f09c9(0xac))/0xb*(parseInt(_0x2f09c9(0xb5))/0xc);if(_0x2805b4===_0xcd4fc9)break;else _0x1c85c2['push'](_0x1c85c2['shift']());}catch(_0x488c48){_0x1c85c2['push'](_0x1c85c2['shift']());}}}(a186_0x604d,0x30b71));function a186_0x7e74(_0x278c17,_0x54b8ed){_0x278c17=_0x278c17-0xac;const _0x604d11=a186_0x604d();let _0x7e7462=_0x604d11[_0x278c17];return _0x7e7462;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a186_0x3b9ceb(0xb7),'format':'compress','locale':a186_0x3b9ceb(0xad),'riskLevel':a186_0x3b9ceb(0xbb),'apiDir':DEFAULT_API_DIR};function a186_0x604d(){const _0x5e4bcf=['high-risk-write','55bdAJXU','en-US','130735Dtpetb','15EVTJvl','76509BQXEMb','310dtmtFk','310888CBjbZG','73954fQwhWO','compress','797028pKvmkQ','21OQYqLy','production','1106156OPyDBL','15vCnvso','381198VdsXfC'];a186_0x604d=function(){return _0x5e4bcf;};return a186_0x604d();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x3b9ceb(0xb4);
1
+ function a186_0x1b6b(_0x1356be,_0x25b2a8){_0x1356be=_0x1356be-0x16d;const _0xca234=a186_0xca23();let _0x1b6ba9=_0xca234[_0x1356be];return _0x1b6ba9;}const a186_0x50854c=a186_0x1b6b;(function(_0x5004fa,_0xef1d61){const _0x3f6102=a186_0x1b6b,_0xc1b193=_0x5004fa();while(!![]){try{const _0x145b84=parseInt(_0x3f6102(0x16e))/0x1*(-parseInt(_0x3f6102(0x171))/0x2)+parseInt(_0x3f6102(0x175))/0x3+-parseInt(_0x3f6102(0x16f))/0x4+-parseInt(_0x3f6102(0x172))/0x5+-parseInt(_0x3f6102(0x176))/0x6+-parseInt(_0x3f6102(0x170))/0x7+parseInt(_0x3f6102(0x177))/0x8;if(_0x145b84===_0xef1d61)break;else _0xc1b193['push'](_0xc1b193['shift']());}catch(_0x181012){_0xc1b193['push'](_0xc1b193['shift']());}}}(a186_0xca23,0x67d93));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a186_0x50854c(0x174),'locale':a186_0x50854c(0x173),'riskLevel':a186_0x50854c(0x16d),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x50854c(0x174);function a186_0xca23(){const _0x2e23f4=['high-risk-write','173aBTsSD','1246392AlrBts','5350394BKPYkh','9482thHBZG','1280225IfgkoL','en-US','compress','2370432Prgkxv','3063924qsGQbY','18384408KcesYv'];a186_0xca23=function(){return _0x2e23f4;};return a186_0xca23();}
@@ -1 +1 @@
1
- const a187_0x50ea67=a187_0xb811;(function(_0x201df5,_0x2320b8){const _0x4b07c1=a187_0xb811,_0x3a2fb1=_0x201df5();while(!![]){try{const _0x31c434=parseInt(_0x4b07c1(0xdf))/0x1+-parseInt(_0x4b07c1(0xdd))/0x2+-parseInt(_0x4b07c1(0xd2))/0x3+parseInt(_0x4b07c1(0xdc))/0x4+parseInt(_0x4b07c1(0xdb))/0x5*(parseInt(_0x4b07c1(0xd0))/0x6)+-parseInt(_0x4b07c1(0xd9))/0x7+-parseInt(_0x4b07c1(0xd7))/0x8*(-parseInt(_0x4b07c1(0xd3))/0x9);if(_0x31c434===_0x2320b8)break;else _0x3a2fb1['push'](_0x3a2fb1['shift']());}catch(_0x442205){_0x3a2fb1['push'](_0x3a2fb1['shift']());}}}(a187_0xb034,0x92b54));import{getEnv,isProduction}from'../constant/env.js';function a187_0xb811(_0x11717e,_0x57d051){_0x11717e=_0x11717e-0xce;const _0xb03402=a187_0xb034();let _0xb81192=_0xb03402[_0x11717e];return _0xb81192;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x42368d){const _0x4032f3=a187_0xb811;customApiDomain=_0x42368d?.[_0x4032f3(0xe0)],customUserDomain=_0x42368d?.[_0x4032f3(0xce)],customRuntimeDomain=_0x42368d?.[_0x4032f3(0xda)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x50ea67(0xde):a187_0x50ea67(0xd5));function a187_0xb034(){const _0x3f2fd4=['runtimeDomain','30905uQzTIo','1499688oBHTCh','1014812SyOIOu','https://api.lovrabet.com','286318gBgapf','apiDomain','userDomain','https://daily.lovrabet.com','6JFgoGm','https://app.lovrabet.com','2857362oaktav','16875333yhYZuf','/web-app/app/','https://daily-api.lovrabet.com','https://daily-runtime.lovrabet.com','8FtNCJE','/app/','3371774tMwqVo'];a187_0xb034=function(){return _0x3f2fd4;};return a187_0xb034();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a187_0x50ea67(0xd6));export const getAppDomain=()=>isProduction(getEnv())?a187_0x50ea67(0xd1):a187_0x50ea67(0xcf);export const getAppBaseUrl=_0x4409fe=>{const _0x173dd2=a187_0x50ea67,_0x598888=encodeURIComponent(_0x4409fe['trim']());return isProduction(getEnv())?getAppDomain()+_0x173dd2(0xd8)+_0x598888:getAppDomain()+_0x173dd2(0xd4)+_0x598888;};
1
+ const a187_0x4a0157=a187_0x49f0;(function(_0x5a3dc5,_0x3a058b){const _0x12811a=a187_0x49f0,_0x181ded=_0x5a3dc5();while(!![]){try{const _0x364d08=-parseInt(_0x12811a(0x95))/0x1*(-parseInt(_0x12811a(0x97))/0x2)+parseInt(_0x12811a(0x99))/0x3+parseInt(_0x12811a(0x92))/0x4*(parseInt(_0x12811a(0x9c))/0x5)+-parseInt(_0x12811a(0x8c))/0x6*(-parseInt(_0x12811a(0x9a))/0x7)+-parseInt(_0x12811a(0x9b))/0x8*(-parseInt(_0x12811a(0x8e))/0x9)+parseInt(_0x12811a(0x96))/0xa+-parseInt(_0x12811a(0x8d))/0xb;if(_0x364d08===_0x3a058b)break;else _0x181ded['push'](_0x181ded['shift']());}catch(_0x5315e8){_0x181ded['push'](_0x181ded['shift']());}}}(a187_0x39de,0x6f547));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a187_0x39de(){const _0xf24aaa=['https://user-daily.lovrabet.com','1245531bFviCK','14945MRMnIX','688bNBBWA','230jQpgYd','userDomain','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','https://user.lovrabet.com','apiDomain','trim','/app/','180JgLcpZ','13798499KuGFQO','32229CrCQWS','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','https://daily.lovrabet.com','10532bxwQxl','https://app.lovrabet.com','/web-app/app/','172514RFArOr','6295910eogCvS','2RfKeAj'];a187_0x39de=function(){return _0xf24aaa;};return a187_0x39de();}export function initDomains(_0x2c066c){const _0x25787b=a187_0x49f0;customApiDomain=_0x2c066c?.[_0x25787b(0x89)],customUserDomain=_0x2c066c?.[_0x25787b(0x9d)],customRuntimeDomain=_0x2c066c?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x4a0157(0x88):a187_0x4a0157(0x98));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x4a0157(0x8f):a187_0x4a0157(0x9e));function a187_0x49f0(_0x321c30,_0x3f9883){_0x321c30=_0x321c30-0x88;const _0x39dedc=a187_0x39de();let _0x49f09b=_0x39dedc[_0x321c30];return _0x49f09b;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x4a0157(0x9f):a187_0x4a0157(0x90));export const getAppDomain=()=>isProduction(getEnv())?a187_0x4a0157(0x93):a187_0x4a0157(0x91);export const getAppBaseUrl=_0x12ab3b=>{const _0x1b0be2=a187_0x4a0157,_0x549ad5=encodeURIComponent(_0x12ab3b[_0x1b0be2(0x8a)]());return isProduction(getEnv())?getAppDomain()+_0x1b0be2(0x8b)+_0x549ad5:getAppDomain()+_0x1b0be2(0x94)+_0x549ad5;};
@@ -1 +1 @@
1
- function a188_0x1351(_0x306958,_0x54c2f3){_0x306958=_0x306958-0xc5;const _0x487b63=a188_0x487b();let _0x13519e=_0x487b63[_0x306958];return _0x13519e;}const a188_0x305a85=a188_0x1351;(function(_0x4fee5c,_0x541d94){const _0x15c311=a188_0x1351,_0x3a1d92=_0x4fee5c();while(!![]){try{const _0x3c13ca=-parseInt(_0x15c311(0xd0))/0x1*(parseInt(_0x15c311(0xd4))/0x2)+-parseInt(_0x15c311(0xd1))/0x3+parseInt(_0x15c311(0xca))/0x4*(-parseInt(_0x15c311(0xc7))/0x5)+-parseInt(_0x15c311(0xce))/0x6*(parseInt(_0x15c311(0xc9))/0x7)+-parseInt(_0x15c311(0xcf))/0x8*(parseInt(_0x15c311(0xc8))/0x9)+parseInt(_0x15c311(0xc6))/0xa+-parseInt(_0x15c311(0xd2))/0xb*(-parseInt(_0x15c311(0xcb))/0xc);if(_0x3c13ca===_0x541d94)break;else _0x3a1d92['push'](_0x3a1d92['shift']());}catch(_0x4fda60){_0x3a1d92['push'](_0x3a1d92['shift']());}}}(a188_0x487b,0x3a290));export const RABETBASE_ENV_VALUES=[a188_0x305a85(0xd5),'daily'];export function normalizeEnv(_0x40cb70){const _0xbba678=a188_0x305a85;return _0x40cb70===_0xbba678(0xcc)?'production':_0x40cb70;}export function isProduction(_0x4791c0){const _0x317889=a188_0x305a85;return normalizeEnv(_0x4791c0)===_0x317889(0xd5);}export function isDaily(_0x4ae6e1){const _0x1661d6=a188_0x305a85;return normalizeEnv(_0x4ae6e1)===_0x1661d6(0xc5);}export function isDev(_0x482fcc){const _0x4f31a6=a188_0x305a85,_0x283741=normalizeEnv(_0x482fcc);return _0x283741===_0x4f31a6(0xcd)||_0x283741===_0x4f31a6(0xd3);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x305a85(0xd5));function a188_0x487b(){const _0x3e026c=['7571724jsUPKf','online','development','381714TEHdst','8ogdNGq','85233QNyvDL','777543CJlmTW','22TdGPXL','dev','2SEXppA','production','daily','3373660MHmyuB','16595BZrMYR','1706976pHkiSA','49cwBGpA','460ijnFJM'];a188_0x487b=function(){return _0x3e026c;};return a188_0x487b();}export function getEnv(){return env;}export function initEnv(_0x283ea5){env=normalizeEnv(_0x283ea5);}
1
+ const a188_0x219b9e=a188_0x5ecc;(function(_0x334aad,_0x1cd7c4){const _0x525799=a188_0x5ecc,_0x16fb14=_0x334aad();while(!![]){try{const _0x46bf13=parseInt(_0x525799(0x1ee))/0x1+-parseInt(_0x525799(0x1eb))/0x2*(parseInt(_0x525799(0x1ec))/0x3)+parseInt(_0x525799(0x1f5))/0x4*(-parseInt(_0x525799(0x1f6))/0x5)+parseInt(_0x525799(0x1ed))/0x6*(-parseInt(_0x525799(0x1f2))/0x7)+-parseInt(_0x525799(0x1e9))/0x8+-parseInt(_0x525799(0x1f9))/0x9*(parseInt(_0x525799(0x1f8))/0xa)+-parseInt(_0x525799(0x1f0))/0xb*(-parseInt(_0x525799(0x1f7))/0xc);if(_0x46bf13===_0x1cd7c4)break;else _0x16fb14['push'](_0x16fb14['shift']());}catch(_0x5ce7fa){_0x16fb14['push'](_0x16fb14['shift']());}}}(a188_0x2c81,0x87f68));function a188_0x2c81(){const _0x1a64e9=['231XoyPMl','1734smCMzm','108846mRQbAU','dev','28116539gdNrtc','development','16079eOPPus','production','online','28096aqbZDH','190sFFDmJ','12YMujYs','4150gZGRbu','8955bGxzYw','5368592ywsIbf','daily','2422wwQqTm'];a188_0x2c81=function(){return _0x1a64e9;};return a188_0x2c81();}export const RABETBASE_ENV_VALUES=['production','daily'];function a188_0x5ecc(_0x265776,_0x2a4972){_0x265776=_0x265776-0x1e9;const _0x2c814a=a188_0x2c81();let _0x5eccaf=_0x2c814a[_0x265776];return _0x5eccaf;}export function normalizeEnv(_0x1eb2c0){const _0x5c63b2=a188_0x5ecc;return _0x1eb2c0===_0x5c63b2(0x1f4)?'production':_0x1eb2c0;}export function isProduction(_0x1a1b7a){return normalizeEnv(_0x1a1b7a)==='production';}export function isDaily(_0x213acd){const _0x3a451f=a188_0x5ecc;return normalizeEnv(_0x213acd)===_0x3a451f(0x1ea);}export function isDev(_0x1f9f89){const _0x548446=a188_0x5ecc,_0x2a1130=normalizeEnv(_0x1f9f89);return _0x2a1130===_0x548446(0x1f1)||_0x2a1130===_0x548446(0x1ef);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x219b9e(0x1f3));export function getEnv(){return env;}export function initEnv(_0xd8c55c){env=normalizeEnv(_0xd8c55c);}
@@ -1 +1 @@
1
- const a189_0x5ac380=a189_0x3f55;(function(_0x3cf130,_0x4768ef){const _0x1cd934=a189_0x3f55,_0xd8ffa8=_0x3cf130();while(!![]){try{const _0x48b7e7=-parseInt(_0x1cd934(0x188))/0x1*(parseInt(_0x1cd934(0x18e))/0x2)+parseInt(_0x1cd934(0x189))/0x3+parseInt(_0x1cd934(0x18b))/0x4*(-parseInt(_0x1cd934(0x18a))/0x5)+parseInt(_0x1cd934(0x18c))/0x6*(parseInt(_0x1cd934(0x184))/0x7)+parseInt(_0x1cd934(0x186))/0x8*(parseInt(_0x1cd934(0x18d))/0x9)+parseInt(_0x1cd934(0x185))/0xa*(-parseInt(_0x1cd934(0x18f))/0xb)+parseInt(_0x1cd934(0x191))/0xc;if(_0x48b7e7===_0x4768ef)break;else _0xd8ffa8['push'](_0xd8ffa8['shift']());}catch(_0x48103c){_0xd8ffa8['push'](_0xd8ffa8['shift']());}}}(a189_0x12c1,0xdb7ab));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x5ac380(0x187),a189_0x5ac380(0x190)];function a189_0x3f55(_0x4c4ad9,_0xcec2bc){_0x4c4ad9=_0x4c4ad9-0x184;const _0x12c14f=a189_0x12c1();let _0x3f5594=_0x12c14f[_0x4c4ad9];return _0x3f5594;}function a189_0x12c1(){const _0x57b350=['91sMBhqt','231650KGMnqX','64XHmpTk','pretty','727023VCzwbx','1898373RSpBZH','410100IDQdoT','48ByZWbg','276894meGtug','818703QsuFQb','4HIkAFF','484eBLIzn','compress','28752828ieTnhx'];a189_0x12c1=function(){return _0x57b350;};return a189_0x12c1();}
1
+ function a189_0x3f99(){const _0x15a268=['2811207hFzKhh','6LUflbD','json','824865GwGQuB','11542770TfdgKS','8177176VLSJsg','8xawaav','380282iMfUVU','1euMWzN','3156344GqVJPe','125019CCxJUz'];a189_0x3f99=function(){return _0x15a268;};return a189_0x3f99();}const a189_0x1b18be=a189_0x5118;(function(_0x41405e,_0x33641b){const _0x1d5b13=a189_0x5118,_0x677d34=_0x41405e();while(!![]){try{const _0x1fad90=parseInt(_0x1d5b13(0x1c8))/0x1*(parseInt(_0x1d5b13(0x1d2))/0x2)+-parseInt(_0x1d5b13(0x1cb))/0x3+-parseInt(_0x1d5b13(0x1c9))/0x4+parseInt(_0x1d5b13(0x1ce))/0x5*(-parseInt(_0x1d5b13(0x1cc))/0x6)+-parseInt(_0x1d5b13(0x1d0))/0x7*(-parseInt(_0x1d5b13(0x1d1))/0x8)+parseInt(_0x1d5b13(0x1ca))/0x9+parseInt(_0x1d5b13(0x1cf))/0xa;if(_0x1fad90===_0x33641b)break;else _0x677d34['push'](_0x677d34['shift']());}catch(_0x38250a){_0x677d34['push'](_0x677d34['shift']());}}}(a189_0x3f99,0x9b1d5));function a189_0x5118(_0x5729b9,_0xc51ee2){_0x5729b9=_0x5729b9-0x1c8;const _0x3f999b=a189_0x3f99();let _0x511877=_0x3f999b[_0x5729b9];return _0x511877;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a189_0x1b18be(0x1cd),'pretty','compress'];
@@ -1 +1 @@
1
- function a190_0x2ebe(_0x38d2c2,_0x5e56ff){_0x38d2c2=_0x38d2c2-0xc5;const _0x56cb06=a190_0x56cb();let _0x2ebeec=_0x56cb06[_0x38d2c2];return _0x2ebeec;}const a190_0x38c361=a190_0x2ebe;(function(_0x1fa1bb,_0x1c52c9){const _0x32bfe0=a190_0x2ebe,_0x4b8d28=_0x1fa1bb();while(!![]){try{const _0x478f90=-parseInt(_0x32bfe0(0xc6))/0x1+parseInt(_0x32bfe0(0xc5))/0x2+parseInt(_0x32bfe0(0xc7))/0x3+parseInt(_0x32bfe0(0xcb))/0x4+-parseInt(_0x32bfe0(0xcd))/0x5*(-parseInt(_0x32bfe0(0xca))/0x6)+-parseInt(_0x32bfe0(0xc8))/0x7+-parseInt(_0x32bfe0(0xc9))/0x8;if(_0x478f90===_0x1c52c9)break;else _0x4b8d28['push'](_0x4b8d28['shift']());}catch(_0x1b9a63){_0x4b8d28['push'](_0x4b8d28['shift']());}}}(a190_0x56cb,0x1b000));export const DEFAULT_API_DIR=a190_0x38c361(0xcc);function a190_0x56cb(){const _0x2870a8=['145040YbuBcJ','306036jwfEHn','918078KoMfJe','1529120ZnInZV','48phyjDI','785252xYtTUV','./src/api','129005RWTGdS','146386ZdeIrn'];a190_0x56cb=function(){return _0x2870a8;};return a190_0x56cb();}
1
+ const a190_0x2926e7=a190_0x2f4a;function a190_0x2f4a(_0x59decf,_0x518c59){_0x59decf=_0x59decf-0xb6;const _0x2adec6=a190_0x2ade();let _0x2f4a9c=_0x2adec6[_0x59decf];return _0x2f4a9c;}function a190_0x2ade(){const _0x5d98dc=['599641iREOvT','4kArPvm','121571uMBJRd','24Igsqlk','11dUJFcY','./src/api','635238xnzpaH','636pxWxdj','1675276gIuGty','5IMmoUZ','6drcYTc','1579830YLoORd','435273MsTwZb','141713JdHFZp'];a190_0x2ade=function(){return _0x5d98dc;};return a190_0x2ade();}(function(_0x296bd7,_0x454154){const _0x419f35=a190_0x2f4a,_0x53e86e=_0x296bd7();while(!![]){try{const _0x4a31e3=parseInt(_0x419f35(0xbd))/0x1+-parseInt(_0x419f35(0xbc))/0x2*(-parseInt(_0x419f35(0xb9))/0x3)+-parseInt(_0x419f35(0xc3))/0x4*(-parseInt(_0x419f35(0xb6))/0x5)+-parseInt(_0x419f35(0xb7))/0x6*(parseInt(_0x419f35(0xbb))/0x7)+parseInt(_0x419f35(0xbe))/0x8*(parseInt(_0x419f35(0xc1))/0x9)+-parseInt(_0x419f35(0xb8))/0xa*(parseInt(_0x419f35(0xbf))/0xb)+-parseInt(_0x419f35(0xc2))/0xc*(parseInt(_0x419f35(0xba))/0xd);if(_0x4a31e3===_0x454154)break;else _0x53e86e['push'](_0x53e86e['shift']());}catch(_0x5ab582){_0x53e86e['push'](_0x53e86e['shift']());}}}(a190_0x2ade,0x35ef7));export const DEFAULT_API_DIR=a190_0x2926e7(0xc0);
@@ -1 +1 @@
1
- function a191_0x3254(_0x5805b5,_0x3f665a){_0x5805b5=_0x5805b5-0x143;const _0x3e4e6e=a191_0x3e4e();let _0x325459=_0x3e4e6e[_0x5805b5];return _0x325459;}function a191_0x3e4e(){const _0x4933fd=['3364090ZuHdtg','2049018LpNOYF','write','2138559wkxmUh','high-risk-write','1245986rupICb','read','36NpROKI','222692DBNIBr','3412536UWmlXj','4jDbjMZ','5Pqfzgg','165062usGvDb'];a191_0x3e4e=function(){return _0x4933fd;};return a191_0x3e4e();}const a191_0x44d804=a191_0x3254;(function(_0x32340d,_0x4a4a29){const _0x2ebb57=a191_0x3254,_0x1b294f=_0x32340d();while(!![]){try{const _0x52605b=parseInt(_0x2ebb57(0x14f))/0x1*(parseInt(_0x2ebb57(0x14d))/0x2)+parseInt(_0x2ebb57(0x146))/0x3+parseInt(_0x2ebb57(0x14b))/0x4*(-parseInt(_0x2ebb57(0x14e))/0x5)+parseInt(_0x2ebb57(0x144))/0x6+parseInt(_0x2ebb57(0x148))/0x7+parseInt(_0x2ebb57(0x14c))/0x8+parseInt(_0x2ebb57(0x14a))/0x9*(-parseInt(_0x2ebb57(0x143))/0xa);if(_0x52605b===_0x4a4a29)break;else _0x1b294f['push'](_0x1b294f['shift']());}catch(_0xff034f){_0x1b294f['push'](_0x1b294f['shift']());}}}(a191_0x3e4e,0x8f7d8));export const RISK_LEVEL_VALUES=[a191_0x44d804(0x149),a191_0x44d804(0x145),a191_0x44d804(0x147)];
1
+ const a191_0x8ce48d=a191_0x258a;(function(_0x59e775,_0x3c77f9){const _0x327c3f=a191_0x258a,_0x23a704=_0x59e775();while(!![]){try{const _0x5196b7=parseInt(_0x327c3f(0x179))/0x1+-parseInt(_0x327c3f(0x17f))/0x2+-parseInt(_0x327c3f(0x184))/0x3*(parseInt(_0x327c3f(0x182))/0x4)+parseInt(_0x327c3f(0x17c))/0x5*(parseInt(_0x327c3f(0x178))/0x6)+parseInt(_0x327c3f(0x17e))/0x7*(-parseInt(_0x327c3f(0x180))/0x8)+parseInt(_0x327c3f(0x181))/0x9+parseInt(_0x327c3f(0x17a))/0xa;if(_0x5196b7===_0x3c77f9)break;else _0x23a704['push'](_0x23a704['shift']());}catch(_0x423084){_0x23a704['push'](_0x23a704['shift']());}}}(a191_0x4361,0xd7a58));function a191_0x258a(_0x21e72d,_0x54ed70){_0x21e72d=_0x21e72d-0x178;const _0x4361f5=a191_0x4361();let _0x258a59=_0x4361f5[_0x21e72d];return _0x258a59;}function a191_0x4361(){const _0x55b3e8=['66327ZJkdMd','42evaTHa','1473991aKwJQW','14568790iCeEMh','read','147260PpjzUn','write','7133182DOzQiQ','2039366bUsIxI','8rFOQIZ','13784166YbNWjD','316CBoxJq','high-risk-write'];a191_0x4361=function(){return _0x55b3e8;};return a191_0x4361();}export const RISK_LEVEL_VALUES=[a191_0x8ce48d(0x17b),a191_0x8ce48d(0x17d),a191_0x8ce48d(0x183)];
@@ -1 +1 @@
1
- function a192_0x19f7(_0x25e0e0,_0x26d5d2){_0x25e0e0=_0x25e0e0-0x1a2;const _0x3136e1=a192_0x3136();let _0x19f766=_0x3136e1[_0x25e0e0];return _0x19f766;}(function(_0x3329a5,_0x176af8){const _0x433f58=a192_0x19f7,_0xb56a21=_0x3329a5();while(!![]){try{const _0x584873=-parseInt(_0x433f58(0x1b1))/0x1+parseInt(_0x433f58(0x1bf))/0x2*(-parseInt(_0x433f58(0x1b7))/0x3)+-parseInt(_0x433f58(0x1a5))/0x4*(parseInt(_0x433f58(0x1c4))/0x5)+parseInt(_0x433f58(0x1c6))/0x6+parseInt(_0x433f58(0x1aa))/0x7+parseInt(_0x433f58(0x1b3))/0x8+-parseInt(_0x433f58(0x1c8))/0x9*(-parseInt(_0x433f58(0x1b5))/0xa);if(_0x584873===_0x176af8)break;else _0xb56a21['push'](_0xb56a21['shift']());}catch(_0x24e930){_0xb56a21['push'](_0xb56a21['shift']());}}}(a192_0x3136,0x1f85f));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x4404ed){const _0x2facb8=a192_0x19f7;return typeof _0x4404ed==='string'&&_0x4404ed['trim']()?_0x4404ed[_0x2facb8(0x1a8)]():undefined;}function appProfiles(_0x15e05b){const _0x402740=a192_0x19f7;return _0x15e05b['apps']&&typeof _0x15e05b['apps']===_0x402740(0x1c0)?_0x15e05b[_0x402740(0x1a7)]:{};}function a192_0x3136(){const _0x11e72f=['length','APP','125746PYbJfY','object','ACCESS_KEY','RISK_LEVEL','daily','193435NoNbYk','defaultApp','658488zShTyY','VERBOSE','145863WPmFpD','cookie','apiDir','appcode','projectConfig','globalConfig','read','8MelIiq','pageSize','apps','trim','env','525805uNdFQh','riskLevel','maxRisk','accessKey','inherit','COOKIE','entries','41578YUBdhj','MAX_RISK','878992SqPnCp','find','10lKWheL','locale','3axKyYR','FORMAT','format','keys','app','production'];a192_0x3136=function(){return _0x11e72f;};return a192_0x3136();}function resolveDefaultAppName(_0x3c636c){const _0x44af9b=a192_0x19f7,_0x4ea170=stringConfigValue(_0x3c636c[_0x44af9b(0x1c5)]);if(_0x4ea170)return _0x4ea170;return Object[_0x44af9b(0x1ba)](appProfiles(_0x3c636c))[0x0];}function resolveTopLevelAppCode(_0x4d744c){const _0x40eed6=a192_0x19f7;return stringConfigValue(_0x4d744c[_0x40eed6(0x1cb)])||stringConfigValue(_0x4d744c[_0x40eed6(0x1bb)]);}export function resolveAppConfig({raw:_0x10d944,flags:_0x1ae86f,layers:_0x5a03e3,readEnv:_0x407bcd}){const _0x240acc=a192_0x19f7,_0x37e88d=_0x5a03e3?.[_0x240acc(0x1a2)]??{},_0x4fb077=_0x5a03e3?.[_0x240acc(0x1a3)]??{},_0x449f95=Object['keys'](_0x37e88d)[_0x240acc(0x1bd)]>0x0,_0x5ce623=!_0x449f95||_0x37e88d[_0x240acc(0x1ae)]===!![],_0x153607=_0x449f95?resolveDefaultAppName(_0x37e88d):undefined,_0x1ee5a7=_0x5ce623?resolveDefaultAppName(_0x4fb077):undefined,_0x47085e=stringConfigValue(_0x1ae86f[_0x240acc(0x1bb)]),_0x3cc58d=_0x407bcd(_0x240acc(0x1be)),_0xf7713f={};if(_0x10d944['apps']&&typeof _0x10d944[_0x240acc(0x1a7)]===_0x240acc(0x1c0))for(const [_0x3271ef,_0x2191a]of Object[_0x240acc(0x1b0)](_0x10d944[_0x240acc(0x1a7)])){_0x2191a&&typeof _0x2191a===_0x240acc(0x1c0)&&_0x2191a[_0x240acc(0x1cb)]&&(_0xf7713f[_0x3271ef]=_0x2191a);}const _0x205c99=_0x10d944[_0x240acc(0x1c5)]||undefined,_0x431e19=Object[_0x240acc(0x1ba)](_0xf7713f)[_0x240acc(0x1bd)]>0x0,_0x34e77a=_0x47085e||_0x153607||_0x3cc58d||_0x1ee5a7||_0x205c99||undefined,_0x45cac8=stringConfigValue(_0x1ae86f[_0x240acc(0x1cb)]),_0x381f0a=_0x45cac8?Object[_0x240acc(0x1b0)](_0xf7713f)[_0x240acc(0x1b4)](([,_0x11c403])=>_0x11c403?.[_0x240acc(0x1cb)]===_0x45cac8):undefined,_0x541782=_0x381f0a?.[0x0],_0x44ef53=_0x381f0a?.[0x1],_0x508df0=_0x45cac8?_0x541782:_0x34e77a;let _0x5572d3=_0x508df0&&_0xf7713f[_0x508df0]?_0xf7713f[_0x508df0]:undefined;_0x45cac8&&_0x44ef53&&(_0x5572d3=_0x44ef53);const _0x252c22=_0x45cac8?_0x44ef53??_0x5572d3:_0x5572d3,_0x33754b=!_0x47085e&&!_0x153607&&_0x3cc58d&&_0x508df0===_0x3cc58d,_0x29342e=_0x47085e||(_0x33754b?_0x3cc58d:undefined)||(_0x45cac8?_0x541782:undefined),_0x329932=_0x252c22?.[_0x240acc(0x1cb)],_0x24195c=_0x449f95?resolveTopLevelAppCode(_0x37e88d):undefined,_0x3612f2=_0x5ce623?resolveTopLevelAppCode(_0x4fb077):undefined,_0x373348=_0x47085e||_0x153607?_0x329932:undefined,_0x1837df=!_0x47085e&&!_0x153607?_0x329932:undefined,_0x2a69c7=_0x45cac8||_0x373348||_0x24195c||_0x1837df||_0x3612f2||undefined,_0x590f10=_0x449f95?stringConfigValue(_0x37e88d[_0x240acc(0x1a9)]):undefined,_0xb6de12=_0x5ce623?stringConfigValue(_0x4fb077['env']):undefined,_0x14d9a1=_0x1ae86f['env']||_0x252c22?.[_0x240acc(0x1a9)]||_0x590f10||_0x407bcd('ENV')||_0xb6de12||_0x10d944[_0x240acc(0x1a9)]||DEFAULT_CONFIG_VALUES[_0x240acc(0x1a9)],_0x274a02=_0x252c22?.['locale']||_0x10d944['locale']||DEFAULT_CONFIG_VALUES[_0x240acc(0x1b6)],_0x52ce68=_0x407bcd(_0x240acc(0x1af))||_0x252c22?.[_0x240acc(0x1c9)]||_0x10d944[_0x240acc(0x1c9)]||undefined,_0x502678=_0x407bcd(_0x240acc(0x1c1))||_0x252c22?.[_0x240acc(0x1ad)]||_0x10d944[_0x240acc(0x1ad)]||undefined,_0x137323=_0x1ae86f['format']||_0x407bcd(_0x240acc(0x1b8))||_0x252c22?.['format']||_0x10d944[_0x240acc(0x1b9)],_0x31b3cd=normalizeLegacyOutputFormat(_0x137323),_0x40704f=_0x407bcd('PAGE_SIZE')||_0x252c22?.[_0x240acc(0x1a6)]||_0x10d944[_0x240acc(0x1a6)],_0x8ce517=_0x40704f?Number(_0x40704f)||undefined:undefined,_0x2eb7c9=_0x407bcd(_0x240acc(0x1c2))||_0x407bcd(_0x240acc(0x1b2))||_0x252c22?.[_0x240acc(0x1ab)]||_0x10d944[_0x240acc(0x1ab)]||_0x10d944[_0x240acc(0x1ac)],_0x4406d5=_0x2eb7c9===_0x240acc(0x1a4)||_0x2eb7c9==='write'?_0x2eb7c9:DEFAULT_CONFIG_VALUES['riskLevel'],_0x221434=_0x407bcd(_0x240acc(0x1c7)),_0x400fc4=_0x221434==='1'||_0x221434==='true',_0x1d346c=_0x252c22?.[_0x240acc(0x1ca)]||_0x10d944['apiDir']||DEFAULT_CONFIG_VALUES[_0x240acc(0x1ca)],_0x8e94e5=isDaily(normalizeEnv(String(_0x14d9a1)))?_0x240acc(0x1c3):_0x240acc(0x1bc);return{'appCode':typeof _0x2a69c7==='string'&&_0x2a69c7[_0x240acc(0x1a8)]()?_0x2a69c7[_0x240acc(0x1a8)]():undefined,'env':_0x8e94e5,'locale':_0x274a02,'cookie':_0x52ce68,'accessKey':_0x502678,'format':_0x31b3cd,'pageSize':_0x8ce517,'riskLevel':_0x4406d5,'verbose':_0x400fc4,'apiDir':_0x1d346c,'apps':_0xf7713f,'defaultApp':_0x205c99,'currentApp':_0x431e19?_0x508df0:undefined,'explicitAppName':_0x29342e};}
1
+ (function(_0x510efd,_0x21340b){const _0x5e5ef3=a192_0x16a9,_0x36d1b3=_0x510efd();while(!![]){try{const _0x20a7d7=parseInt(_0x5e5ef3(0x82))/0x1+-parseInt(_0x5e5ef3(0x7e))/0x2+parseInt(_0x5e5ef3(0x98))/0x3+parseInt(_0x5e5ef3(0x8d))/0x4*(parseInt(_0x5e5ef3(0x93))/0x5)+-parseInt(_0x5e5ef3(0x96))/0x6*(parseInt(_0x5e5ef3(0x8b))/0x7)+parseInt(_0x5e5ef3(0x7c))/0x8*(parseInt(_0x5e5ef3(0x77))/0x9)+-parseInt(_0x5e5ef3(0x95))/0xa;if(_0x20a7d7===_0x21340b)break;else _0x36d1b3['push'](_0x36d1b3['shift']());}catch(_0x2e2769){_0x36d1b3['push'](_0x36d1b3['shift']());}}}(a192_0x47b5,0x18ff9));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function a192_0x47b5(){const _0x466ac9=['trim','length','accessKey','apps','216byggpe','FORMAT','string','defaultApp','entries','31136LrRPQU','apiDir','349412aLkfSO','pageSize','true','object','199425pIygcM','app','cookie','PAGE_SIZE','write','globalConfig','APP','projectConfig','appcode','127960qtqmRh','riskLevel','588908SJJwfS','format','production','ACCESS_KEY','locale','env','5zjZcPT','MAX_RISK','3276130txnKys','6DiXMel','ENV','548796ZmtPYw','read','inherit'];a192_0x47b5=function(){return _0x466ac9;};return a192_0x47b5();}function stringConfigValue(_0x55984c){const _0xf91c08=a192_0x16a9;return typeof _0x55984c===_0xf91c08(0x79)&&_0x55984c[_0xf91c08(0x9b)]()?_0x55984c[_0xf91c08(0x9b)]():undefined;}function appProfiles(_0x23c9aa){const _0x335099=a192_0x16a9;return _0x23c9aa['apps']&&typeof _0x23c9aa[_0x335099(0x76)]==='object'?_0x23c9aa[_0x335099(0x76)]:{};}function resolveDefaultAppName(_0x5dc3e5){const _0x9db012=a192_0x16a9,_0x19aa59=stringConfigValue(_0x5dc3e5[_0x9db012(0x7a)]);if(_0x19aa59)return _0x19aa59;return Object['keys'](appProfiles(_0x5dc3e5))[0x0];}function resolveTopLevelAppCode(_0x18b91e){const _0x17b597=a192_0x16a9;return stringConfigValue(_0x18b91e['appcode'])||stringConfigValue(_0x18b91e[_0x17b597(0x83)]);}function a192_0x16a9(_0x582c4c,_0x353911){_0x582c4c=_0x582c4c-0x74;const _0x47b552=a192_0x47b5();let _0x16a9b2=_0x47b552[_0x582c4c];return _0x16a9b2;}export function resolveAppConfig({raw:_0x5dbcf6,flags:_0x508218,layers:_0x408954,readEnv:_0x292c59}){const _0x256748=a192_0x16a9,_0x4d3593=_0x408954?.[_0x256748(0x89)]??{},_0x17faee=_0x408954?.[_0x256748(0x87)]??{},_0x5d734a=Object['keys'](_0x4d3593)[_0x256748(0x74)]>0x0,_0x85cd33=!_0x5d734a||_0x4d3593[_0x256748(0x9a)]===!![],_0x4796c8=_0x5d734a?resolveDefaultAppName(_0x4d3593):undefined,_0x22112=_0x85cd33?resolveDefaultAppName(_0x17faee):undefined,_0x3d9d2e=stringConfigValue(_0x508218[_0x256748(0x83)]),_0x820fea=_0x292c59(_0x256748(0x88)),_0x322d85={};if(_0x5dbcf6['apps']&&typeof _0x5dbcf6['apps']==='object')for(const [_0x33b9df,_0x54d2c4]of Object[_0x256748(0x7b)](_0x5dbcf6[_0x256748(0x76)])){_0x54d2c4&&typeof _0x54d2c4===_0x256748(0x81)&&_0x54d2c4[_0x256748(0x8a)]&&(_0x322d85[_0x33b9df]=_0x54d2c4);}const _0x2e8020=_0x5dbcf6['defaultApp']||undefined,_0x4773f5=Object['keys'](_0x322d85)[_0x256748(0x74)]>0x0,_0x31cfc0=_0x3d9d2e||_0x4796c8||_0x820fea||_0x22112||_0x2e8020||undefined,_0xfdd66=stringConfigValue(_0x508218[_0x256748(0x8a)]),_0x3e9c77=_0xfdd66?Object[_0x256748(0x7b)](_0x322d85)['find'](([,_0x3e04cd])=>_0x3e04cd?.[_0x256748(0x8a)]===_0xfdd66):undefined,_0x3ba586=_0x3e9c77?.[0x0],_0x50cfdf=_0x3e9c77?.[0x1],_0x41ed3d=_0xfdd66?_0x3ba586:_0x31cfc0;let _0x412fc7=_0x41ed3d&&_0x322d85[_0x41ed3d]?_0x322d85[_0x41ed3d]:undefined;_0xfdd66&&_0x50cfdf&&(_0x412fc7=_0x50cfdf);const _0x36848a=_0xfdd66?_0x50cfdf??_0x412fc7:_0x412fc7,_0x16ba80=!_0x3d9d2e&&!_0x4796c8&&_0x820fea&&_0x41ed3d===_0x820fea,_0x4576df=_0x3d9d2e||(_0x16ba80?_0x820fea:undefined)||(_0xfdd66?_0x3ba586:undefined),_0x48bc99=_0x36848a?.[_0x256748(0x8a)],_0x4b1a19=_0x5d734a?resolveTopLevelAppCode(_0x4d3593):undefined,_0xd28f2c=_0x85cd33?resolveTopLevelAppCode(_0x17faee):undefined,_0x1f6596=_0x3d9d2e||_0x4796c8?_0x48bc99:undefined,_0x30294a=!_0x3d9d2e&&!_0x4796c8?_0x48bc99:undefined,_0x539ffe=_0xfdd66||_0x1f6596||_0x4b1a19||_0x30294a||_0xd28f2c||undefined,_0x4d604e=_0x5d734a?stringConfigValue(_0x4d3593[_0x256748(0x92)]):undefined,_0x6d6503=_0x85cd33?stringConfigValue(_0x17faee[_0x256748(0x92)]):undefined,_0x408597=_0x508218['env']||_0x36848a?.[_0x256748(0x92)]||_0x4d604e||_0x292c59(_0x256748(0x97))||_0x6d6503||_0x5dbcf6[_0x256748(0x92)]||DEFAULT_CONFIG_VALUES[_0x256748(0x92)],_0x3391b2=_0x36848a?.['locale']||_0x5dbcf6[_0x256748(0x91)]||DEFAULT_CONFIG_VALUES[_0x256748(0x91)],_0x39fff2=_0x292c59('COOKIE')||_0x36848a?.[_0x256748(0x84)]||_0x5dbcf6['cookie']||undefined,_0x46868b=_0x292c59(_0x256748(0x90))||_0x36848a?.['accessKey']||_0x5dbcf6[_0x256748(0x75)]||undefined,_0xe4d1be=_0x508218[_0x256748(0x8e)]||_0x292c59(_0x256748(0x78))||_0x36848a?.['format']||_0x5dbcf6['format'],_0xe1c34f=normalizeLegacyOutputFormat(_0xe4d1be),_0x893cba=_0x292c59(_0x256748(0x85))||_0x36848a?.[_0x256748(0x7f)]||_0x5dbcf6[_0x256748(0x7f)],_0xb9a292=_0x893cba?Number(_0x893cba)||undefined:undefined,_0x5245d1=_0x292c59('RISK_LEVEL')||_0x292c59(_0x256748(0x94))||_0x36848a?.[_0x256748(0x8c)]||_0x5dbcf6['riskLevel']||_0x5dbcf6['maxRisk'],_0x330580=_0x5245d1===_0x256748(0x99)||_0x5245d1===_0x256748(0x86)?_0x5245d1:DEFAULT_CONFIG_VALUES[_0x256748(0x8c)],_0x493271=_0x292c59('VERBOSE'),_0x4c615c=_0x493271==='1'||_0x493271===_0x256748(0x80),_0x257c73=_0x36848a?.[_0x256748(0x7d)]||_0x5dbcf6[_0x256748(0x7d)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x1f2d4e=isDaily(normalizeEnv(String(_0x408597)))?'daily':_0x256748(0x8f);return{'appCode':typeof _0x539ffe===_0x256748(0x79)&&_0x539ffe[_0x256748(0x9b)]()?_0x539ffe[_0x256748(0x9b)]():undefined,'env':_0x1f2d4e,'locale':_0x3391b2,'cookie':_0x39fff2,'accessKey':_0x46868b,'format':_0xe1c34f,'pageSize':_0xb9a292,'riskLevel':_0x330580,'verbose':_0x4c615c,'apiDir':_0x257c73,'apps':_0x322d85,'defaultApp':_0x2e8020,'currentApp':_0x4773f5?_0x41ed3d:undefined,'explicitAppName':_0x4576df};}
@@ -1 +1 @@
1
- function a193_0x7aef(){const _0x4a0053=['420ZfUYaD','142sbLTXw','authRequired','cookie','16qmzNDg','12ToymaI','8039XLfgAc','266544qRkrro','1926716AJtmss','2526545ZNGukR','3497373xzragY','591019XtZtqg','3014915CcorpT'];a193_0x7aef=function(){return _0x4a0053;};return a193_0x7aef();}(function(_0x5f1f76,_0x3fa861){const _0x262b88=a193_0x12e7,_0x24eae4=_0x5f1f76();while(!![]){try{const _0x1756fe=-parseInt(_0x262b88(0x187))/0x1*(parseInt(_0x262b88(0x182))/0x2)+-parseInt(_0x262b88(0x188))/0x3+-parseInt(_0x262b88(0x189))/0x4+-parseInt(_0x262b88(0x180))/0x5+-parseInt(_0x262b88(0x186))/0x6*(-parseInt(_0x262b88(0x18a))/0x7)+parseInt(_0x262b88(0x185))/0x8*(-parseInt(_0x262b88(0x18b))/0x9)+-parseInt(_0x262b88(0x181))/0xa*(-parseInt(_0x262b88(0x18c))/0xb);if(_0x1756fe===_0x3fa861)break;else _0x24eae4['push'](_0x24eae4['shift']());}catch(_0x57f8fb){_0x24eae4['push'](_0x24eae4['shift']());}}}(a193_0x7aef,0x6f937));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x12e7(_0x18b4f6,_0x3932bb){_0x18b4f6=_0x18b4f6-0x180;const _0x7aef81=a193_0x7aef();let _0x12e7dc=_0x7aef81[_0x18b4f6];return _0x12e7dc;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x1dcde0){const _0x5c384f=a193_0x12e7,{getCookie:_0x36c18e}=await import('../auth/get-cookie.js'),_0x5a0726=_0x1dcde0[_0x5c384f(0x184)]||_0x36c18e(),_0x31fe7d=_0x5a0726?await getIsSessionValid():![];return{'cookie':_0x5a0726,'isLoggedIn':_0x31fe7d,async 'getOrLogin'(){const _0x13ef4f=_0x5c384f;if(_0x5a0726&&_0x31fe7d)return _0x5a0726;throw CliErrors[_0x13ef4f(0x183)]();}};}
1
+ function a193_0xf2d1(_0x2c521d,_0xe504ef){_0x2c521d=_0x2c521d-0x19c;const _0x1aa94d=a193_0x1aa9();let _0xf2d1ee=_0x1aa94d[_0x2c521d];return _0xf2d1ee;}(function(_0x3c415b,_0x21579b){const _0x255354=a193_0xf2d1,_0x52b2f7=_0x3c415b();while(!![]){try{const _0xf04d42=parseInt(_0x255354(0x1a0))/0x1*(parseInt(_0x255354(0x19d))/0x2)+-parseInt(_0x255354(0x1a8))/0x3*(-parseInt(_0x255354(0x1a4))/0x4)+parseInt(_0x255354(0x1a7))/0x5+-parseInt(_0x255354(0x1a9))/0x6+parseInt(_0x255354(0x19e))/0x7*(-parseInt(_0x255354(0x1a5))/0x8)+-parseInt(_0x255354(0x1a3))/0x9+parseInt(_0x255354(0x1a1))/0xa*(parseInt(_0x255354(0x19f))/0xb);if(_0xf04d42===_0x21579b)break;else _0x52b2f7['push'](_0x52b2f7['shift']());}catch(_0x2b871f){_0x52b2f7['push'](_0x52b2f7['shift']());}}}(a193_0x1aa9,0xd3371));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x1aa9(){const _0x5ece7f=['518mdHMhz','11Hndpip','176ZwlrmN','11261890JTIPZT','cookie','14702976gykYlV','356jdxHdX','8152QMEEhd','authRequired','744945KbqQaK','44715Nzrqbf','9329064vMjxlP','../auth/get-cookie.js','17356vNAsZB'];a193_0x1aa9=function(){return _0x5ece7f;};return a193_0x1aa9();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x2827ec){const _0x2e34a1=a193_0xf2d1,{getCookie:_0xb37ed1}=await import(_0x2e34a1(0x19c)),_0x5346b4=_0x2827ec[_0x2e34a1(0x1a2)]||_0xb37ed1(),_0x17c710=_0x5346b4?await getIsSessionValid():![];return{'cookie':_0x5346b4,'isLoggedIn':_0x17c710,async 'getOrLogin'(){const _0x2efa3c=_0x2e34a1;if(_0x5346b4&&_0x17c710)return _0x5346b4;throw CliErrors[_0x2efa3c(0x1a6)]();}};}