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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
- const a177_0x5ba0a6=a177_0x13ef;function a177_0x13ef(_0x423b05,_0x293b20){_0x423b05=_0x423b05-0x12d;const _0xc7fe9=a177_0xc7fe();let _0x13ef3c=_0xc7fe9[_0x423b05];return _0x13ef3c;}(function(_0xb0c1b2,_0x326ccb){const _0xe6b4d=a177_0x13ef,_0x598f8d=_0xb0c1b2();while(!![]){try{const _0x516652=parseInt(_0xe6b4d(0x144))/0x1+parseInt(_0xe6b4d(0x140))/0x2+parseInt(_0xe6b4d(0x154))/0x3+parseInt(_0xe6b4d(0x132))/0x4*(parseInt(_0xe6b4d(0x16b))/0x5)+parseInt(_0xe6b4d(0x142))/0x6+parseInt(_0xe6b4d(0x161))/0x7*(-parseInt(_0xe6b4d(0x148))/0x8)+-parseInt(_0xe6b4d(0x133))/0x9;if(_0x516652===_0x326ccb)break;else _0x598f8d['push'](_0x598f8d['shift']());}catch(_0x3a7f5b){_0x598f8d['push'](_0x598f8d['shift']());}}}(a177_0xc7fe,0x67fd2));import{readFileSync,existsSync}from'node:fs';function a177_0xc7fe(){const _0x5859c3=['1764183TyPUle','Table\x20\x22','string','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','unshift','cwd','tables','split','name','File\x20not\x20found:\x20','dbtableConfig','type','35XYNQLx','size','utf-8','sql','read','length','Dataset\x20\x22','index_name','reason','isArray','193405dEqnuQ','validate','primary','SQL\x20schema\x20validation','tableName','valid','fields','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','index_columns','indexName','isSelectOnly','16gFzHvr','13100013pYPwer','file','isDangerous','filter','map','pkField','flagMissing','\x22\x20not\x20found\x20in\x20any\x20dataset','str','push','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','trim','toLowerCase','1257148ShRVLD','\x22\x20not\x20found\x20or\x20not\x20accessible','3904296JQKWHc','validation','78410WiRCcB','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','schemaWarnings','joinAudit','350384AnmjnY','columnNames','sqlType','message','--check-indexes\x20requires\x20--schemas.','columns','find','schema:','indexes','dataset','appCode','bool'];a177_0xc7fe=function(){return _0x5859c3;};return a177_0xc7fe();}import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':'sql','command':a177_0x5ba0a6(0x16c),'description':a177_0x5ba0a6(0x158),'risk':a177_0x5ba0a6(0x165),'flags':[{'name':a177_0x5ba0a6(0x134),'type':'string','description':a177_0x5ba0a6(0x157)},{'name':a177_0x5ba0a6(0x164),'type':a177_0x5ba0a6(0x156),'description':a177_0x5ba0a6(0x12e)},{'name':'schemas','type':a177_0x5ba0a6(0x156),'description':a177_0x5ba0a6(0x145)},{'name':'check-indexes','type':'boolean','description':a177_0x5ba0a6(0x13d)}],async 'execute'(_0x2ef567){const _0x271630=a177_0x5ba0a6,_0x235eef=_0x2ef567[_0x271630(0x13b)]('file'),_0x39a8a0=_0x2ef567['str'](_0x271630(0x164)),_0x23c65f=_0x2ef567[_0x271630(0x13b)]('schemas'),_0x4d0a26=_0x2ef567[_0x271630(0x153)]('check-indexes');if(!_0x235eef&&!_0x39a8a0)throw CliErrors[_0x271630(0x139)]('file','Provide\x20--file\x20or\x20--sql');if(_0x4d0a26&&!_0x23c65f)throw CliErrors[_0x271630(0x143)](_0x271630(0x14c));let _0x225469;if(_0x235eef){const _0x22db05=resolve(process[_0x271630(0x15a)](),_0x235eef);if(!existsSync(_0x22db05))throw CliErrors[_0x271630(0x143)](_0x271630(0x15e)+_0x22db05);_0x225469=readFileSync(_0x22db05,_0x271630(0x163));}else _0x225469=_0x39a8a0;const _0x1f4f87=validateSql(_0x225469),_0x4825a4={'valid':_0x1f4f87[_0x271630(0x170)],'sqlType':_0x1f4f87[_0x271630(0x14a)][_0x271630(0x160)],'isSelectOnly':_0x1f4f87[_0x271630(0x14a)][_0x271630(0x131)],'isDangerous':_0x1f4f87[_0x271630(0x14a)][_0x271630(0x135)],'tables':_0x1f4f87[_0x271630(0x15b)],'parameters':_0x1f4f87['parameters'],'message':_0x1f4f87[_0x271630(0x14b)]};_0x1f4f87['sqlType']['reason']&&(_0x4825a4[_0x271630(0x169)]=_0x1f4f87[_0x271630(0x14a)][_0x271630(0x169)]);if(_0x23c65f&&_0x1f4f87[_0x271630(0x170)]){const _0x30bd02=_0x23c65f[_0x271630(0x15c)](',')[_0x271630(0x137)](_0x30830f=>_0x30830f['trim']())['filter'](Boolean),_0x2bfa36=[],_0x407120=[],_0x3b3f56=filterDbTableBackedDatasets(await listDatasets(_0x2ef567[_0x271630(0x152)])),_0x258477=new Map(_0x3b3f56['map'](_0x55ad43=>[_0x55ad43[_0x271630(0x15f)]?.[_0x271630(0x16f)]?.[_0x271630(0x13f)](),_0x55ad43]));for(const _0x246594 of _0x1f4f87[_0x271630(0x15b)]){const _0x47a230=_0x258477['get'](_0x246594['toLowerCase']());!_0x47a230&&_0x2bfa36[_0x271630(0x13c)](_0x271630(0x155)+_0x246594+_0x271630(0x13a));}for(const _0x27c46a of _0x30bd02){let _0x77201d;try{_0x77201d=await getDatasetDetail(_0x27c46a);}catch{_0x2bfa36['push'](_0x271630(0x167)+_0x27c46a+_0x271630(0x141));continue;}assertDatasetIsDbTableBacked(_0x77201d,_0x271630(0x16e));const _0x487d54=Array[_0x271630(0x16a)](_0x77201d[_0x271630(0x12d)])?_0x77201d['fields']:[],_0x2cecbb=new Set(_0x487d54[_0x271630(0x137)](_0x50f5c7=>_0x50f5c7['name']?.[_0x271630(0x13f)]())),_0x2b6f83=_0x77201d['dbtableConfig']?.['tableName']||_0x77201d[_0x271630(0x16f)]||_0x27c46a;_0x4825a4[_0x271630(0x14f)+_0x2b6f83]={'code':_0x27c46a,'tableName':_0x2b6f83,'fieldCount':_0x2cecbb[_0x271630(0x162)],'fields':Array['from'](_0x2cecbb)};if(_0x4d0a26){const _0xd0fdc6=normalizeDatasetIndexes(_0x77201d);_0x407120[_0x271630(0x13c)]({'tableName':_0x2b6f83,..._0xd0fdc6});}}_0x2bfa36[_0x271630(0x166)]>0x0&&(_0x4825a4[_0x271630(0x146)]=_0x2bfa36),_0x4d0a26&&(_0x4825a4[_0x271630(0x147)]=auditSqlJoinIndexes(_0x225469,_0x407120));}return{'ok':_0x1f4f87[_0x271630(0x170)],'data':_0x4825a4,'message':_0x1f4f87[_0x271630(0x14b)]};}};function normalizeDatasetIndexes(_0x311dbf){const _0x3432a7=a177_0x5ba0a6,_0x2b7a18=Array[_0x3432a7(0x16a)](_0x311dbf?.['dataset']?.[_0x3432a7(0x150)])?_0x311dbf[_0x3432a7(0x151)][_0x3432a7(0x150)]:Array['isArray'](_0x311dbf?.[_0x3432a7(0x150)])?_0x311dbf['indexes']:[],_0x46a843=_0x2b7a18['flatMap'](_0xb2c781=>{const _0x4dd727=_0x3432a7,_0x5a07b0=Array[_0x4dd727(0x16a)](_0xb2c781?.[_0x4dd727(0x12f)])?_0xb2c781[_0x4dd727(0x12f)]:Array['isArray'](_0xb2c781?.[_0x4dd727(0x149)])?_0xb2c781[_0x4dd727(0x149)]:Array[_0x4dd727(0x16a)](_0xb2c781?.[_0x4dd727(0x14d)])?_0xb2c781[_0x4dd727(0x14d)]:[],_0x1ad05b=_0x5a07b0[_0x4dd727(0x136)](_0x56d6ca=>typeof _0x56d6ca===_0x4dd727(0x156))[_0x4dd727(0x137)](_0x348d3a=>_0x348d3a[_0x4dd727(0x13e)]())[_0x4dd727(0x136)](Boolean);if(_0x1ad05b[_0x4dd727(0x166)]===0x0)return[];const _0x20c985=[_0xb2c781?.[_0x4dd727(0x130)],_0xb2c781?.[_0x4dd727(0x168)],_0xb2c781?.[_0x4dd727(0x15d)]][_0x4dd727(0x14e)](_0x55e7ee=>typeof _0x55e7ee==='string'&&_0x55e7ee[_0x4dd727(0x13e)]()),_0x3bfa04=[_0xb2c781?.['index_type'],_0xb2c781?.[_0x4dd727(0x160)]][_0x4dd727(0x14e)](_0x64c876=>typeof _0x64c876===_0x4dd727(0x156)&&_0x64c876[_0x4dd727(0x13e)]());return[{..._0x20c985?{'name':_0x20c985[_0x4dd727(0x13e)]()}:{},..._0x3bfa04?{'type':_0x3bfa04['trim']()}:{},'columns':_0x1ad05b}];}),_0x4be95b=[..._0x46a843],_0x35cd30=typeof _0x311dbf?.[_0x3432a7(0x15f)]?.[_0x3432a7(0x138)]===_0x3432a7(0x156)?_0x311dbf[_0x3432a7(0x15f)][_0x3432a7(0x138)][_0x3432a7(0x15c)](',')['map'](_0x2bc520=>_0x2bc520['trim']())[_0x3432a7(0x136)](Boolean):[];return _0x35cd30[_0x3432a7(0x166)]>0x0&&_0x4be95b[_0x3432a7(0x159)]({'type':_0x3432a7(0x16d),'columns':_0x35cd30}),{'indexes':_0x4be95b,'metadataAvailable':_0x46a843[_0x3432a7(0x166)]>0x0};}
1
+ function a177_0x1a7f(){const _0x16a63e=['name','valid','630705ksFCly','32SWQBcC','appCode','451bqQbJC','16154256ASGwbg','212270dHZSCg','flagMissing','sql','indexName','bool','cwd','flatMap','utf-8','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','\x22\x20not\x20found\x20or\x20not\x20accessible','push','find','index_columns','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','--check-indexes\x20requires\x20--schemas.','fields','File\x20not\x20found:\x20','map','split','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','length','isSelectOnly','parameters','from','schema:','unshift','schemas','toLowerCase','3844935uXWciw','str','6sfjeFz','check-indexes','SQL\x20schema\x20validation','file','dbtableConfig','size','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','message','trim','joinAudit','4vJAwKc','sqlType','Dataset\x20\x22','columnNames','pkField','2rUNRxR','index_type','indexes','get','primary','tables','4773045vDuuTx','Table\x20\x22','validation','tableName','type','filter','712054paMMfp','isArray','index_name','string','746761JXaHZf'];a177_0x1a7f=function(){return _0x16a63e;};return a177_0x1a7f();}const a177_0x1d47cb=a177_0x53f4;(function(_0x14c086,_0x297aec){const _0x50771a=a177_0x53f4,_0x576066=_0x14c086();while(!![]){try{const _0x102063=parseInt(_0x50771a(0x129))/0x1*(-parseInt(_0x50771a(0x119))/0x2)+-parseInt(_0x50771a(0x12c))/0x3*(parseInt(_0x50771a(0x114))/0x4)+parseInt(_0x50771a(0x11f))/0x5*(parseInt(_0x50771a(0x14f))/0x6)+-parseInt(_0x50771a(0x125))/0x7*(parseInt(_0x50771a(0x12d))/0x8)+parseInt(_0x50771a(0x14d))/0x9+-parseInt(_0x50771a(0x131))/0xa*(parseInt(_0x50771a(0x12f))/0xb)+parseInt(_0x50771a(0x130))/0xc;if(_0x102063===_0x297aec)break;else _0x576066['push'](_0x576066['shift']());}catch(_0x1bd3db){_0x576066['push'](_0x576066['shift']());}}}(a177_0x1a7f,0x788fd));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a177_0x53f4(_0x18d49b,_0x59dbe5){_0x18d49b=_0x18d49b-0x10d;const _0x1a7f7d=a177_0x1a7f();let _0x53f464=_0x1a7f7d[_0x18d49b];return _0x53f464;}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a177_0x1d47cb(0x133),'command':'validate','description':a177_0x1d47cb(0x110),'risk':'read','flags':[{'name':a177_0x1d47cb(0x10d),'type':'string','description':a177_0x1d47cb(0x139)},{'name':a177_0x1d47cb(0x133),'type':a177_0x1d47cb(0x128),'description':a177_0x1d47cb(0x144)},{'name':a177_0x1d47cb(0x14b),'type':'string','description':a177_0x1d47cb(0x13e)},{'name':a177_0x1d47cb(0x150),'type':'boolean','description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x11cdd0){const _0x498a82=a177_0x1d47cb,_0x1189cd=_0x11cdd0['str']('file'),_0x44eb46=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x133)),_0x2dec0d=_0x11cdd0[_0x498a82(0x14e)](_0x498a82(0x14b)),_0x217ff3=_0x11cdd0[_0x498a82(0x135)]('check-indexes');if(!_0x1189cd&&!_0x44eb46)throw CliErrors[_0x498a82(0x132)](_0x498a82(0x10d),'Provide\x20--file\x20or\x20--sql');if(_0x217ff3&&!_0x2dec0d)throw CliErrors[_0x498a82(0x121)](_0x498a82(0x13f));let _0xb82870;if(_0x1189cd){const _0x1395d2=resolve(process[_0x498a82(0x136)](),_0x1189cd);if(!existsSync(_0x1395d2))throw CliErrors[_0x498a82(0x121)](_0x498a82(0x141)+_0x1395d2);_0xb82870=readFileSync(_0x1395d2,_0x498a82(0x138));}else _0xb82870=_0x44eb46;const _0x3e9de2=validateSql(_0xb82870),_0x2081e4={'valid':_0x3e9de2[_0x498a82(0x12b)],'sqlType':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x123)],'isSelectOnly':_0x3e9de2[_0x498a82(0x115)][_0x498a82(0x146)],'isDangerous':_0x3e9de2[_0x498a82(0x115)]['isDangerous'],'tables':_0x3e9de2[_0x498a82(0x11e)],'parameters':_0x3e9de2[_0x498a82(0x147)],'message':_0x3e9de2[_0x498a82(0x111)]};_0x3e9de2[_0x498a82(0x115)]['reason']&&(_0x2081e4['reason']=_0x3e9de2[_0x498a82(0x115)]['reason']);if(_0x2dec0d&&_0x3e9de2[_0x498a82(0x12b)]){const _0x488d06=_0x2dec0d[_0x498a82(0x143)](',')[_0x498a82(0x142)](_0x433db0=>_0x433db0[_0x498a82(0x112)]())[_0x498a82(0x124)](Boolean),_0xd88d29=[],_0x1a99bc=[],_0x33d9b9=filterDbTableBackedDatasets(await listDatasets(_0x11cdd0[_0x498a82(0x12e)])),_0x9b4a88=new Map(_0x33d9b9[_0x498a82(0x142)](_0x56866b=>[_0x56866b['dbtableConfig']?.[_0x498a82(0x122)]?.[_0x498a82(0x14c)](),_0x56866b]));for(const _0x596523 of _0x3e9de2[_0x498a82(0x11e)]){const _0x1ffd70=_0x9b4a88[_0x498a82(0x11c)](_0x596523[_0x498a82(0x14c)]());!_0x1ffd70&&_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x120)+_0x596523+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x3cbb42 of _0x488d06){let _0x56daef;try{_0x56daef=await getDatasetDetail(_0x3cbb42);}catch{_0xd88d29[_0x498a82(0x13b)](_0x498a82(0x116)+_0x3cbb42+_0x498a82(0x13a));continue;}assertDatasetIsDbTableBacked(_0x56daef,_0x498a82(0x151));const _0x40918a=Array[_0x498a82(0x126)](_0x56daef[_0x498a82(0x140)])?_0x56daef[_0x498a82(0x140)]:[],_0x1d8e49=new Set(_0x40918a[_0x498a82(0x142)](_0x71143d=>_0x71143d['name']?.[_0x498a82(0x14c)]())),_0x31420a=_0x56daef[_0x498a82(0x10e)]?.[_0x498a82(0x122)]||_0x56daef[_0x498a82(0x122)]||_0x3cbb42;_0x2081e4[_0x498a82(0x149)+_0x31420a]={'code':_0x3cbb42,'tableName':_0x31420a,'fieldCount':_0x1d8e49[_0x498a82(0x10f)],'fields':Array[_0x498a82(0x148)](_0x1d8e49)};if(_0x217ff3){const _0x2cc961=normalizeDatasetIndexes(_0x56daef);_0x1a99bc[_0x498a82(0x13b)]({'tableName':_0x31420a,..._0x2cc961});}}_0xd88d29['length']>0x0&&(_0x2081e4['schemaWarnings']=_0xd88d29),_0x217ff3&&(_0x2081e4[_0x498a82(0x113)]=auditSqlJoinIndexes(_0xb82870,_0x1a99bc));}return{'ok':_0x3e9de2[_0x498a82(0x12b)],'data':_0x2081e4,'message':_0x3e9de2[_0x498a82(0x111)]};}};function normalizeDatasetIndexes(_0x46ca36){const _0x5b4d9c=a177_0x1d47cb,_0x702b90=Array[_0x5b4d9c(0x126)](_0x46ca36?.['dataset']?.[_0x5b4d9c(0x11b)])?_0x46ca36['dataset'][_0x5b4d9c(0x11b)]:Array[_0x5b4d9c(0x126)](_0x46ca36?.[_0x5b4d9c(0x11b)])?_0x46ca36[_0x5b4d9c(0x11b)]:[],_0x324f34=_0x702b90[_0x5b4d9c(0x137)](_0x54d0f0=>{const _0x53a054=_0x5b4d9c,_0x22ba36=Array[_0x53a054(0x126)](_0x54d0f0?.[_0x53a054(0x13d)])?_0x54d0f0[_0x53a054(0x13d)]:Array['isArray'](_0x54d0f0?.[_0x53a054(0x117)])?_0x54d0f0[_0x53a054(0x117)]:Array[_0x53a054(0x126)](_0x54d0f0?.['columns'])?_0x54d0f0['columns']:[],_0x96f591=_0x22ba36[_0x53a054(0x124)](_0x4e4f71=>typeof _0x4e4f71===_0x53a054(0x128))[_0x53a054(0x142)](_0x43e6d3=>_0x43e6d3[_0x53a054(0x112)]())[_0x53a054(0x124)](Boolean);if(_0x96f591['length']===0x0)return[];const _0x26fe9e=[_0x54d0f0?.[_0x53a054(0x134)],_0x54d0f0?.[_0x53a054(0x127)],_0x54d0f0?.[_0x53a054(0x12a)]][_0x53a054(0x13c)](_0x12b971=>typeof _0x12b971===_0x53a054(0x128)&&_0x12b971[_0x53a054(0x112)]()),_0x277e6a=[_0x54d0f0?.[_0x53a054(0x11a)],_0x54d0f0?.[_0x53a054(0x123)]][_0x53a054(0x13c)](_0x5ae9d8=>typeof _0x5ae9d8===_0x53a054(0x128)&&_0x5ae9d8[_0x53a054(0x112)]());return[{..._0x26fe9e?{'name':_0x26fe9e['trim']()}:{},..._0x277e6a?{'type':_0x277e6a[_0x53a054(0x112)]()}:{},'columns':_0x96f591}];}),_0x4ab0df=[..._0x324f34],_0x6a19ee=typeof _0x46ca36?.[_0x5b4d9c(0x10e)]?.[_0x5b4d9c(0x118)]===_0x5b4d9c(0x128)?_0x46ca36[_0x5b4d9c(0x10e)][_0x5b4d9c(0x118)][_0x5b4d9c(0x143)](',')[_0x5b4d9c(0x142)](_0x84f148=>_0x84f148[_0x5b4d9c(0x112)]())[_0x5b4d9c(0x124)](Boolean):[];return _0x6a19ee[_0x5b4d9c(0x145)]>0x0&&_0x4ab0df[_0x5b4d9c(0x14a)]({'type':_0x5b4d9c(0x11d),'columns':_0x6a19ee}),{'indexes':_0x4ab0df,'metadataAvailable':_0x324f34['length']>0x0};}
@@ -1 +1 @@
1
- (function(_0x3e4e70,_0xfc9252){const _0x9e7fe=a178_0x3db5,_0x45a4fc=_0x3e4e70();while(!![]){try{const _0x2f0457=parseInt(_0x9e7fe(0x8a))/0x1+parseInt(_0x9e7fe(0x8c))/0x2*(parseInt(_0x9e7fe(0x89))/0x3)+-parseInt(_0x9e7fe(0x88))/0x4*(parseInt(_0x9e7fe(0x94))/0x5)+parseInt(_0x9e7fe(0x8b))/0x6*(-parseInt(_0x9e7fe(0x90))/0x7)+-parseInt(_0x9e7fe(0x91))/0x8*(parseInt(_0x9e7fe(0x93))/0x9)+-parseInt(_0x9e7fe(0x92))/0xa*(parseInt(_0x9e7fe(0x8d))/0xb)+parseInt(_0x9e7fe(0x8f))/0xc*(parseInt(_0x9e7fe(0x8e))/0xd);if(_0x2f0457===_0xfc9252)break;else _0x45a4fc['push'](_0x45a4fc['shift']());}catch(_0x48db33){_0x45a4fc['push'](_0x45a4fc['shift']());}}}(a178_0x11c5,0xca657));function a178_0x3db5(_0x29c06d,_0x1c02f2){_0x29c06d=_0x29c06d-0x88;const _0x11c5e9=a178_0x11c5();let _0x3db5fe=_0x11c5e9[_0x29c06d];return _0x3db5fe;}function a178_0x11c5(){const _0x4f281b=['16gTIapn','6178670RuqJxa','5472783PtpcrP','80zMAqeC','164596zOINYO','10311SrORpY','312805KcRrRO','6WGoULh','470SFVFIT','11sXKIhy','468LsEhnM','960060umGsdr','4754680kfjZkH'];a178_0x11c5=function(){return _0x4f281b;};return a178_0x11c5();}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ function a178_0x1b19(){const _0x1549d0=['101076WIrmAo','1421135VkDbTf','33suNrkj','9lrczAY','11728PRqqcF','8NqXcGt','1598024zwqXCe','1158iayhfr','5089zFFiNJ','333580nNPPZI','47kAkQYp','7794fZJGYK'];a178_0x1b19=function(){return _0x1549d0;};return a178_0x1b19();}(function(_0x38a17a,_0x500367){const _0x48345f=a178_0x4a92,_0x406aff=_0x38a17a();while(!![]){try{const _0x3a0519=parseInt(_0x48345f(0x1c0))/0x1*(parseInt(_0x48345f(0x1ba))/0x2)+-parseInt(_0x48345f(0x1c1))/0x3*(-parseInt(_0x48345f(0x1bb))/0x4)+parseInt(_0x48345f(0x1b7))/0x5+parseInt(_0x48345f(0x1bd))/0x6*(-parseInt(_0x48345f(0x1be))/0x7)+-parseInt(_0x48345f(0x1bc))/0x8*(parseInt(_0x48345f(0x1b9))/0x9)+-parseInt(_0x48345f(0x1bf))/0xa+parseInt(_0x48345f(0x1b8))/0xb*(-parseInt(_0x48345f(0x1b6))/0xc);if(_0x3a0519===_0x500367)break;else _0x406aff['push'](_0x406aff['shift']());}catch(_0x3655ab){_0x406aff['push'](_0x406aff['shift']());}}}(a178_0x1b19,0x289c4));import{taskStatus}from'../../commands/task/status.js';function a178_0x4a92(_0x1369e7,_0x57c88d){_0x1369e7=_0x1369e7-0x1b6;const _0x1b19be=a178_0x1b19();let _0x4a9218=_0x1b19be[_0x1369e7];return _0x4a9218;}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a179_0x3f1ecd=a179_0x496b;(function(_0x46805f,_0x11cbf1){const _0x563b79=a179_0x496b,_0x474e6b=_0x46805f();while(!![]){try{const _0x11c0ec=-parseInt(_0x563b79(0x1f5))/0x1+parseInt(_0x563b79(0x1f8))/0x2*(parseInt(_0x563b79(0x204))/0x3)+parseInt(_0x563b79(0x1fd))/0x4+-parseInt(_0x563b79(0x202))/0x5+-parseInt(_0x563b79(0x209))/0x6*(parseInt(_0x563b79(0x1fa))/0x7)+-parseInt(_0x563b79(0x207))/0x8+parseInt(_0x563b79(0x1f6))/0x9;if(_0x11c0ec===_0x11cbf1)break;else _0x474e6b['push'](_0x474e6b['shift']());}catch(_0x4d50a4){_0x474e6b['push'](_0x474e6b['shift']());}}}(a179_0x364e,0x48709));function a179_0x496b(_0x3640cb,_0x2c4bb9){_0x3640cb=_0x3640cb-0x1f1;const _0x364e3f=a179_0x364e();let _0x496bd5=_0x364e3f[_0x3640cb];return _0x496bd5;}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_0x364e(){const _0x3cf77b=['2877228daTJTw','task','346lilJaH',',\x20received\x20','77SZNljy','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','apiError','999612DhEbOx','trim','string','cookie','read','1035130uXKqPn','isTerminal','8868VyVSnq','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','flagMissing','2622088HOhPvW','appCode','7206YJjJmg','taskId','status','str','task-id','236272mdbQVN'];a179_0x364e=function(){return _0x3cf77b;};return a179_0x364e();}export const taskStatus={'service':a179_0x3f1ecd(0x1f7),'command':a179_0x3f1ecd(0x1f2),'description':a179_0x3f1ecd(0x205),'risk':a179_0x3f1ecd(0x201),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a179_0x3f1ecd(0x1f4),'type':a179_0x3f1ecd(0x1ff),'required':!![],'description':a179_0x3f1ecd(0x1fb)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32af57){const _0x486742=a179_0x3f1ecd;if(!_0x32af57[_0x486742(0x1f3)](_0x486742(0x1f4))[_0x486742(0x1fe)]())throw CliErrors[_0x486742(0x206)](_0x486742(0x1f4));},async 'execute'(_0x2b8fb6){const _0x271049=a179_0x3f1ecd,_0x3b4dd1=_0x2b8fb6[_0x271049(0x1f3)](_0x271049(0x1f4))[_0x271049(0x1fe)](),_0x5f4267=normalizeAsyncTask(await getAsyncTaskStatus(_0x3b4dd1,_0x2b8fb6[_0x271049(0x208)],_0x2b8fb6[_0x271049(0x200)]));if(_0x5f4267['taskId']!==_0x3b4dd1)throw CliErrors[_0x271049(0x1fc)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x3b4dd1+_0x271049(0x1f9)+_0x5f4267[_0x271049(0x1f1)]+'.');const _0x2a4fd6=buildAsyncTaskStatusCommand(_0x5f4267[_0x271049(0x1f1)],_0x2b8fb6[_0x271049(0x208)]);return{'ok':!![],'message':asyncTaskMessage(_0x5f4267),'data':{'appCode':_0x2b8fb6[_0x271049(0x208)],..._0x5f4267,'query':_0x5f4267[_0x271049(0x203)]?null:{'command':_0x2a4fd6}}};}};
1
+ const a179_0x29f5ba=a179_0x1707;(function(_0x33a1ca,_0x1e91db){const _0x41b068=a179_0x1707,_0x462da2=_0x33a1ca();while(!![]){try{const _0x4a47f2=-parseInt(_0x41b068(0xbb))/0x1*(parseInt(_0x41b068(0xbf))/0x2)+-parseInt(_0x41b068(0xc2))/0x3*(parseInt(_0x41b068(0xbc))/0x4)+parseInt(_0x41b068(0xc4))/0x5+-parseInt(_0x41b068(0xc6))/0x6+-parseInt(_0x41b068(0xb9))/0x7+-parseInt(_0x41b068(0xc7))/0x8*(parseInt(_0x41b068(0xc3))/0x9)+-parseInt(_0x41b068(0xb2))/0xa*(-parseInt(_0x41b068(0xc1))/0xb);if(_0x4a47f2===_0x1e91db)break;else _0x462da2['push'](_0x462da2['shift']());}catch(_0x23c0ee){_0x462da2['push'](_0x462da2['shift']());}}}(a179_0x4f5e,0x4a035));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a179_0x4f5e(){const _0x5411a7=['string','23372gjmjcH','str','2519znOPQd','2421YDBZlP','18TgMYeF','2368225xHeJFw','task','2804112oqIxKd','1520472KIKXNn','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','compress','appCode','89590iveRqh','trim','cookie','taskId','read','task-id','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','3859660UCWgCa','isTerminal','19ozAgLM','2980kNzTAm','flagMissing'];a179_0x4f5e=function(){return _0x5411a7;};return a179_0x4f5e();}function a179_0x1707(_0x395481,_0x59cdab){_0x395481=_0x395481-0xaf;const _0x4f5e6b=a179_0x4f5e();let _0x170771=_0x4f5e6b[_0x395481];return _0x170771;}export const taskStatus={'service':a179_0x29f5ba(0xc5),'command':'status','description':a179_0x29f5ba(0xaf),'risk':a179_0x29f5ba(0xb6),'defaultOutputFormat':a179_0x29f5ba(0xb0),'structuredErrors':!![],'flags':[{'name':a179_0x29f5ba(0xb7),'type':a179_0x29f5ba(0xbe),'required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x109032){const _0x133dfe=a179_0x29f5ba;if(!_0x109032[_0x133dfe(0xc0)](_0x133dfe(0xb7))[_0x133dfe(0xb3)]())throw CliErrors[_0x133dfe(0xbd)](_0x133dfe(0xb7));},async 'execute'(_0x15d5c8){const _0x310d88=a179_0x29f5ba,_0xf9df48=_0x15d5c8['str']('task-id')[_0x310d88(0xb3)](),_0x211a03=normalizeAsyncTask(await getAsyncTaskStatus(_0xf9df48,_0x15d5c8[_0x310d88(0xb1)],_0x15d5c8[_0x310d88(0xb4)]));if(_0x211a03[_0x310d88(0xb5)]!==_0xf9df48)throw CliErrors['apiError'](_0x310d88(0xb8)+_0xf9df48+',\x20received\x20'+_0x211a03[_0x310d88(0xb5)]+'.');const _0x5738ef=buildAsyncTaskStatusCommand(_0x211a03[_0x310d88(0xb5)],_0x15d5c8['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x211a03),'data':{'appCode':_0x15d5c8[_0x310d88(0xb1)],..._0x211a03,'query':_0x211a03[_0x310d88(0xba)]?null:{'command':_0x5738ef}}};}};
@@ -1 +1 @@
1
- const a180_0xe48f08=a180_0x3c04;(function(_0x196eb3,_0xef70a3){const _0x516d10=a180_0x3c04,_0x513cfa=_0x196eb3();while(!![]){try{const _0x535462=-parseInt(_0x516d10(0x94))/0x1+parseInt(_0x516d10(0x8e))/0x2+parseInt(_0x516d10(0x8f))/0x3+-parseInt(_0x516d10(0x91))/0x4*(parseInt(_0x516d10(0x96))/0x5)+parseInt(_0x516d10(0x93))/0x6+parseInt(_0x516d10(0x92))/0x7+-parseInt(_0x516d10(0x95))/0x8;if(_0x535462===_0xef70a3)break;else _0x513cfa['push'](_0x513cfa['shift']());}catch(_0x5a4bc6){_0x513cfa['push'](_0x513cfa['shift']());}}}(a180_0x1da1,0x704c0));function a180_0x3c04(_0x33a4b4,_0x2daec7){_0x33a4b4=_0x33a4b4-0x8a;const _0x1da15e=a180_0x1da1();let _0x3c0422=_0x1da15e[_0x33a4b4];return _0x3c0422;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a180_0x1da1(){const _0xcaf71d=['write','workspace\x20add','add','1127170ayCyLG','2108901WyvTCm','App\x20profile\x20name','289924ZXrrAK','4768456YKIVnr','2576634LADrIg','858979wYQFRS','7306320LmpDWi','10wjfOVV','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)'];a180_0x1da1=function(){return _0xcaf71d;};return a180_0x1da1();}export const workspaceAddDefinition={'service':'workspace','command':a180_0xe48f08(0x8d),'description':a180_0xe48f08(0x8a),'risk':a180_0xe48f08(0x8b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0xe48f08(0x90),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4d6184=>validateAppName(_0x4d6184,'workspace\x20add'),'execute':_0xc5918d=>runAppAdd(_0xc5918d,a180_0xe48f08(0x8c))};
1
+ const a180_0x770b7c=a180_0x3377;function a180_0x2e87(){const _0x5c1555=['workspace\x20add','3572346tBkhEg','153fZkEAg','5750efOPxV','add','248648ebvxHM','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','6231281IteAdY','2017072PTWjrR','26895bKORla','2055630heptvv','name','301280KPgkUI','1nvGmZf','36FGCBly'];a180_0x2e87=function(){return _0x5c1555;};return a180_0x2e87();}(function(_0x13f47d,_0x2fa709){const _0x1ee270=a180_0x3377,_0x2fe230=_0x13f47d();while(!![]){try{const _0x118b9c=parseInt(_0x1ee270(0x1d0))/0x1*(parseInt(_0x1ee270(0x1cd))/0x2)+-parseInt(_0x1ee270(0x1c3))/0x3+-parseInt(_0x1ee270(0x1cb))/0x4+parseInt(_0x1ee270(0x1cf))/0x5*(-parseInt(_0x1ee270(0x1c1))/0x6)+parseInt(_0x1ee270(0x1ca))/0x7+parseInt(_0x1ee270(0x1c7))/0x8*(-parseInt(_0x1ee270(0x1c4))/0x9)+-parseInt(_0x1ee270(0x1c5))/0xa*(-parseInt(_0x1ee270(0x1cc))/0xb);if(_0x118b9c===_0x2fa709)break;else _0x2fe230['push'](_0x2fe230['shift']());}catch(_0x595f03){_0x2fe230['push'](_0x2fe230['shift']());}}}(a180_0x2e87,0xb465e));function a180_0x3377(_0x2e11b3,_0x431e1a){_0x2e11b3=_0x2e11b3-0x1c1;const _0x2e876e=a180_0x2e87();let _0x3377af=_0x2e876e[_0x2e11b3];return _0x3377af;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a180_0x770b7c(0x1c8),'command':a180_0x770b7c(0x1c6),'description':a180_0x770b7c(0x1c9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a180_0x770b7c(0x1ce),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3d20f7=>validateAppName(_0x3d20f7,'workspace\x20add'),'execute':_0x21f522=>runAppAdd(_0x21f522,a180_0x770b7c(0x1c2))};
@@ -1 +1 @@
1
- function a181_0x5c4d(){const _0x22cc1a=['64YmIWYO','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','str','19582qjmuMR','app','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','295827YxCrBX','apiDir','\x20workspace\x20use\x20--app\x20<name>`.','trim','\x22\x20not\x20found.','use','join','16kbecXb','Missing\x20workspace\x20app\x20selector.','5Yxfhva','.\x20Credentials:\x20not\x20written.','project','format','App\x20\x22','number','17141399reYyco','Target\x20environment','validation','Use\x20`','1046715yWiKIG','workspace','string','appcode','Switch\x20the\x20current\x20workspace\x20app\x20binding','Invalid\x20appcode:\x20','Workspace\x20','pageSize','locale','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','keys','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','workspace.','object','write','defaultApp','env','init','\x20(appcode:\x20','3862470ppfyby','1130630GeXQsX','apps','81JpgJFE','riskLevel','442107kEhlTQ','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20--appcode\x20<code>`.','isArray','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','flag','globalConfig','\x20workspace\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'];a181_0x5c4d=function(){return _0x22cc1a;};return a181_0x5c4d();}const a181_0x36751e=a181_0x7a0f;(function(_0x28aa23,_0x30f6b7){const _0x5185ac=a181_0x7a0f,_0x5c0feb=_0x28aa23();while(!![]){try{const _0x3344b7=parseInt(_0x5185ac(0x114))/0x1*(parseInt(_0x5185ac(0xe7))/0x2)+parseInt(_0x5185ac(0xfd))/0x3*(-parseInt(_0x5185ac(0xf1))/0x4)+parseInt(_0x5185ac(0xf3))/0x5*(-parseInt(_0x5185ac(0x111))/0x6)+parseInt(_0x5185ac(0xea))/0x7*(parseInt(_0x5185ac(0x11f))/0x8)+-parseInt(_0x5185ac(0x116))/0x9+parseInt(_0x5185ac(0x112))/0xa+parseInt(_0x5185ac(0xf9))/0xb;if(_0x3344b7===_0x30f6b7)break;else _0x5c0feb['push'](_0x5c0feb['shift']());}catch(_0x2486af){_0x5c0feb['push'](_0x5c0feb['shift']());}}}(a181_0x5c4d,0xae53b));function a181_0x7a0f(_0x38d276,_0x2f2db7){_0x38d276=_0x38d276-0xe6;const _0x5c4d48=a181_0x5c4d();let _0x7a0f5b=_0x5c4d48[_0x38d276];return _0x7a0f5b;}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_0x36751e(0x109),SAFE_PROFILE_KEYS=[a181_0x36751e(0x100),a181_0x36751e(0x10e),a181_0x36751e(0xeb),a181_0x36751e(0xf6),'pageSize',a181_0x36751e(0x115),a181_0x36751e(0x105)],workspaceFlags=[{'name':a181_0x36751e(0xe8),'type':'string','description':a181_0x36751e(0xe9)},{'name':a181_0x36751e(0x100),'type':a181_0x36751e(0xff),'description':a181_0x36751e(0x106)},{'name':a181_0x36751e(0x10e),'type':'string','description':a181_0x36751e(0xfa),'enum':[...RABETBASE_ENV_VALUES]},{'name':a181_0x36751e(0xeb),'type':'string','description':a181_0x36751e(0x11a)},{'name':'defaultFormat','type':a181_0x36751e(0xff),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x36751e(0x104),'type':a181_0x36751e(0xf8),'description':a181_0x36751e(0x11e)},{'name':a181_0x36751e(0x115),'type':a181_0x36751e(0xff),'description':a181_0x36751e(0x120),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x36751e(0x105),'type':a181_0x36751e(0xff),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x56a87e){const _0x16c4d7=a181_0x36751e;return!!_0x56a87e&&typeof _0x56a87e===_0x16c4d7(0x10b)&&!Array[_0x16c4d7(0x119)](_0x56a87e);}function assertValidAppcode(_0x5c3418){const _0x3334f9=a181_0x36751e,{valid:_0x8c9633,message:_0x25bb2e}=validateAppcode(_0x5c3418);if(!_0x8c9633)throw CliErrors[_0x3334f9(0xfb)](_0x3334f9(0x102)+_0x5c3418,_0x25bb2e);}function sanitizeProfile(_0x26dfaf){if(!isRecord(_0x26dfaf))return{};const _0x4efcf9={};for(const _0x54ecce of SAFE_PROFILE_KEYS){if(_0x26dfaf[_0x54ecce]!==undefined)_0x4efcf9[_0x54ecce]=_0x26dfaf[_0x54ecce];}return _0x4efcf9;}function cloneProfile(_0x11a57c){return isRecord(_0x11a57c)?{..._0x11a57c}:{};}function collectWorkspaceProfileOverrides(_0x59b1fb){const _0x2bd4aa=a181_0x36751e,_0x247a2e={},_0x3463c7=_0x59b1fb['str'](_0x2bd4aa(0x10e)),_0x50aeff=_0x59b1fb[_0x2bd4aa(0xe6)](_0x2bd4aa(0xeb)),_0x40719f=_0x59b1fb[_0x2bd4aa(0xe6)]('defaultFormat'),_0x28267f=_0x59b1fb[_0x2bd4aa(0x11b)](_0x2bd4aa(0x104)),_0x13446f=_0x59b1fb['str'](_0x2bd4aa(0x115)),_0x59cbf1=_0x59b1fb[_0x2bd4aa(0xe6)](_0x2bd4aa(0x105));if(_0x3463c7)_0x247a2e[_0x2bd4aa(0x10e)]=_0x3463c7;if(_0x50aeff)_0x247a2e[_0x2bd4aa(0xeb)]=_0x50aeff;if(_0x40719f)_0x247a2e['format']=_0x40719f;if(_0x28267f!==undefined&&_0x28267f!=='')_0x247a2e[_0x2bd4aa(0x104)]=Number(_0x28267f);if(_0x13446f)_0x247a2e[_0x2bd4aa(0x115)]=_0x13446f;if(_0x59cbf1)_0x247a2e[_0x2bd4aa(0x105)]=_0x59cbf1;return _0x247a2e;}async function validateWorkspaceArgs(_0x2a5057){const _0x326c0d=a181_0x36751e,_0x5c78b=_0x2a5057[_0x326c0d(0xe6)](_0x326c0d(0xe8))['trim'](),_0x3279f6=_0x2a5057[_0x326c0d(0xe6)](_0x326c0d(0x100))['trim']();if(!_0x5c78b&&!_0x3279f6)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x326c0d(0xfc)+CLI_BIN_NAME+_0x326c0d(0x117)+CLI_BIN_NAME+_0x326c0d(0xec));if(_0x3279f6)assertValidAppcode(_0x3279f6);}function resolveKnownApps(){const _0x1fb8e0=a181_0x36751e,{config:_0x5c89f1,layers:_0x13a514}=readRawConfigWithLayers(),_0x157306=isRecord(_0x5c89f1['apps'])?_0x5c89f1[_0x1fb8e0(0x113)]:{},_0x2c072d=isRecord(_0x13a514[_0x1fb8e0(0x11c)][_0x1fb8e0(0x113)])?_0x13a514[_0x1fb8e0(0x11c)][_0x1fb8e0(0x113)]:{};return{..._0x2c072d,..._0x157306};}async function configureWorkspace(_0x52ecd3,_0x520cc7){const _0x5b170e=a181_0x36751e,_0x211840=_0x52ecd3['str'](_0x5b170e(0xe8))[_0x5b170e(0xed)](),_0x209f4c=_0x52ecd3[_0x5b170e(0xe6)](_0x5b170e(0x100))[_0x5b170e(0xed)](),_0x57929e=_0x211840||_0x209f4c;if(!_0x57929e)throw CliErrors['validation'](_0x5b170e(0xf2),_0x5b170e(0xfc)+CLI_BIN_NAME+_0x5b170e(0x117)+CLI_BIN_NAME+_0x5b170e(0xec));if(_0x209f4c)assertValidAppcode(_0x209f4c);const _0xbc4185=resolveWriteConfigPath(_0x5b170e(0xf5)),_0x397211=readConfigFile(_0xbc4185),_0x1db72a=resolveKnownApps(),_0x22766e=isRecord(_0x397211[_0x5b170e(0x113)])?{..._0x397211[_0x5b170e(0x113)]}:{},_0x221740=cloneProfile(_0x22766e[_0x57929e]),_0x25fa4a=sanitizeProfile(_0x1db72a[_0x57929e]),_0xcbc499=_0x209f4c?{}:_0x25fa4a,_0x2af131=_0x209f4c||_0xcbc499['appcode'];if(!_0x2af131){const _0x4337a4=Object[_0x5b170e(0x107)](_0x1db72a),_0x585af1=_0x4337a4['length']===0x0?_0x5b170e(0xfc)+CLI_BIN_NAME+_0x5b170e(0x11d)+_0x520cc7+'\x20--app\x20'+_0x57929e+_0x5b170e(0x118):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x4337a4[_0x5b170e(0xf0)](',\x20');throw CliErrors[_0x5b170e(0xfb)](_0x5b170e(0xf7)+_0x57929e+_0x5b170e(0xee),_0x585af1);}assertValidAppcode(String(_0x2af131));const _0x226347={..._0xcbc499,..._0x221740,'appcode':String(_0x2af131),...collectWorkspaceProfileOverrides(_0x52ecd3)};return _0x22766e[_0x57929e]=_0x226347,_0x397211[_0x5b170e(0x113)]=_0x22766e,_0x397211[_0x5b170e(0x10d)]=_0x57929e,delete _0x397211[_0x5b170e(0x100)],delete _0x397211[_0x5b170e(0xe8)],_0x226347[_0x5b170e(0x10e)]&&(_0x397211[_0x5b170e(0x10e)]=_0x226347[_0x5b170e(0x10e)]),writeConfigFile(_0xbc4185,_0x397211),{'ok':!![],'message':_0x5b170e(0x103)+(_0x520cc7==='init'?'initialized':'updated')+':\x20'+_0x57929e+_0x5b170e(0x110)+_0x226347[_0x5b170e(0x100)]+').\x20Config:\x20'+_0xbc4185+_0x5b170e(0xf4),'data':{'operation':_0x5b170e(0x10a)+_0x520cc7,'configPath':_0xbc4185,'app':_0x57929e,'appcode':_0x226347[_0x5b170e(0x100)],'env':_0x226347[_0x5b170e(0x10e)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a181_0x36751e(0x10f),'description':a181_0x36751e(0x108),'risk':a181_0x36751e(0x10c),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x555005=>configureWorkspace(_0x555005,a181_0x36751e(0x10f))},workspaceUseDefinition={'service':a181_0x36751e(0xfe),'command':a181_0x36751e(0xef),'description':a181_0x36751e(0x101),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x8a20d8=>configureWorkspace(_0x8a20d8,a181_0x36751e(0xef))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a181_0x5dc782=a181_0x4119;(function(_0x1b08e1,_0x265eca){const _0x5048af=a181_0x4119,_0x21a833=_0x1b08e1();while(!![]){try{const _0x35f74a=-parseInt(_0x5048af(0x111))/0x1+parseInt(_0x5048af(0xfd))/0x2*(parseInt(_0x5048af(0x106))/0x3)+parseInt(_0x5048af(0x117))/0x4*(-parseInt(_0x5048af(0xf4))/0x5)+parseInt(_0x5048af(0x113))/0x6*(parseInt(_0x5048af(0x11c))/0x7)+-parseInt(_0x5048af(0x123))/0x8*(parseInt(_0x5048af(0x127))/0x9)+parseInt(_0x5048af(0xf6))/0xa*(parseInt(_0x5048af(0xf1))/0xb)+parseInt(_0x5048af(0x114))/0xc*(parseInt(_0x5048af(0xf5))/0xd);if(_0x35f74a===_0x265eca)break;else _0x21a833['push'](_0x21a833['shift']());}catch(_0x426a57){_0x21a833['push'](_0x21a833['shift']());}}}(a181_0x46f4,0x35547));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';function a181_0x4119(_0x5e03fe,_0x495943){_0x5e03fe=_0x5e03fe-0xec;const _0x46f46c=a181_0x46f4();let _0x41197e=_0x46f46c[_0x5e03fe];return _0x41197e;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a181_0x5dc782(0x11e),SAFE_PROFILE_KEYS=[a181_0x5dc782(0x100),a181_0x5dc782(0x122),'apiDir','format','pageSize','riskLevel',a181_0x5dc782(0x116)],workspaceFlags=[{'name':'app','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xee)},{'name':'appcode','type':'string','description':a181_0x5dc782(0xf0)},{'name':a181_0x5dc782(0x122),'type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0x107),'enum':[...RABETBASE_ENV_VALUES]},{'name':a181_0x5dc782(0xfa),'type':a181_0x5dc782(0x109),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x5dc782(0x126),'type':'string','description':a181_0x5dc782(0x121),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x5dc782(0x10e),'type':a181_0x5dc782(0xf2),'description':a181_0x5dc782(0x105)},{'name':'riskLevel','type':a181_0x5dc782(0x109),'description':a181_0x5dc782(0xef),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x5dc782(0x116),'type':a181_0x5dc782(0x109),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x2f35bd){const _0x5754b6=a181_0x5dc782;return!!_0x2f35bd&&typeof _0x2f35bd===_0x5754b6(0x10d)&&!Array[_0x5754b6(0xed)](_0x2f35bd);}function assertValidAppcode(_0x3383ec){const _0x13db1e=a181_0x5dc782,{valid:_0x133e20,message:_0x57d54e}=validateAppcode(_0x3383ec);if(!_0x133e20)throw CliErrors[_0x13db1e(0xff)]('Invalid\x20appcode:\x20'+_0x3383ec,_0x57d54e);}function sanitizeProfile(_0x4b6f23){if(!isRecord(_0x4b6f23))return{};const _0x2a5ede={};for(const _0x4f679c of SAFE_PROFILE_KEYS){if(_0x4b6f23[_0x4f679c]!==undefined)_0x2a5ede[_0x4f679c]=_0x4b6f23[_0x4f679c];}return _0x2a5ede;}function cloneProfile(_0x2c3be7){return isRecord(_0x2c3be7)?{..._0x2c3be7}:{};}function collectWorkspaceProfileOverrides(_0x562b79){const _0x2730ed=a181_0x5dc782,_0x1f0dad={},_0x35575e=_0x562b79[_0x2730ed(0x115)]('env'),_0x19e310=_0x562b79[_0x2730ed(0x115)]('apiDir'),_0x5dfa90=_0x562b79[_0x2730ed(0x115)]('defaultFormat'),_0x5eb972=_0x562b79[_0x2730ed(0x11a)](_0x2730ed(0x10e)),_0x37b658=_0x562b79[_0x2730ed(0x115)](_0x2730ed(0x110)),_0xf61fa6=_0x562b79['str'](_0x2730ed(0x116));if(_0x35575e)_0x1f0dad[_0x2730ed(0x122)]=_0x35575e;if(_0x19e310)_0x1f0dad['apiDir']=_0x19e310;if(_0x5dfa90)_0x1f0dad['format']=_0x5dfa90;if(_0x5eb972!==undefined&&_0x5eb972!=='')_0x1f0dad[_0x2730ed(0x10e)]=Number(_0x5eb972);if(_0x37b658)_0x1f0dad[_0x2730ed(0x110)]=_0x37b658;if(_0xf61fa6)_0x1f0dad[_0x2730ed(0x116)]=_0xf61fa6;return _0x1f0dad;}async function validateWorkspaceArgs(_0x592ee9){const _0x59da4f=a181_0x5dc782,_0x4f9f73=_0x592ee9[_0x59da4f(0x115)]('app')['trim'](),_0x11cbf5=_0x592ee9[_0x59da4f(0x115)](_0x59da4f(0x100))[_0x59da4f(0xfe)]();if(!_0x4f9f73&&!_0x11cbf5)throw CliErrors[_0x59da4f(0xff)](_0x59da4f(0xf7),_0x59da4f(0xfc)+CLI_BIN_NAME+_0x59da4f(0x103)+CLI_BIN_NAME+_0x59da4f(0x10c));if(_0x11cbf5)assertValidAppcode(_0x11cbf5);}function resolveKnownApps(){const _0x50b8cb=a181_0x5dc782,{config:_0x510d45,layers:_0x181be8}=readRawConfigWithLayers(),_0x4eb49d=isRecord(_0x510d45[_0x50b8cb(0x10b)])?_0x510d45[_0x50b8cb(0x10b)]:{},_0x5af3d2=isRecord(_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)])?_0x181be8[_0x50b8cb(0xec)][_0x50b8cb(0x10b)]:{};return{..._0x5af3d2,..._0x4eb49d};}function a181_0x46f4(){const _0x3708c8=['env','3976eBbLgA','\x22\x20not\x20found.','keys','defaultFormat','5373IPCLWl','globalConfig','isArray','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','11hrTEGV','number','length','512545gZzvzf','45396SalsOH','3651020OseBce','Missing\x20workspace\x20app\x20selector.','App\x20\x22','updated','apiDir','write','Use\x20`','253412QBOzHN','trim','validation','appcode','init','\x20workspace\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`',').\x20Config:\x20','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','3AOosyx','Target\x20environment','project','string','use','apps','\x20workspace\x20use\x20--app\x20<name>`.','object','pageSize','\x20(appcode:\x20','riskLevel','40350SzPbHw','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','6YvCiZZ','288aAUPyL','str','locale','4xAUJTa','join','workspace.','flag','.\x20Credentials:\x20not\x20written.','576737vmsVur','initialized','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','app','workspace','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile'];a181_0x46f4=function(){return _0x3708c8;};return a181_0x46f4();}async function configureWorkspace(_0x3b85af,_0x1fa232){const _0x5557af=a181_0x5dc782,_0xf4792f=_0x3b85af['str']('app')[_0x5557af(0xfe)](),_0x3e76e6=_0x3b85af[_0x5557af(0x115)](_0x5557af(0x100))[_0x5557af(0xfe)](),_0x2c9272=_0xf4792f||_0x3e76e6;if(!_0x2c9272)throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf7),_0x5557af(0xfc)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x5557af(0x10c));if(_0x3e76e6)assertValidAppcode(_0x3e76e6);const _0x145dc4=resolveWriteConfigPath(_0x5557af(0x108)),_0x5bb61c=readConfigFile(_0x145dc4),_0x5b30f7=resolveKnownApps(),_0x1f1a4c=isRecord(_0x5bb61c['apps'])?{..._0x5bb61c[_0x5557af(0x10b)]}:{},_0x2cd063=cloneProfile(_0x1f1a4c[_0x2c9272]),_0xd3aa8d=sanitizeProfile(_0x5b30f7[_0x2c9272]),_0x3b39f6=_0x3e76e6?{}:_0xd3aa8d,_0x3b906=_0x3e76e6||_0x3b39f6[_0x5557af(0x100)];if(!_0x3b906){const _0x585edd=Object[_0x5557af(0x125)](_0x5b30f7),_0x50f267=_0x585edd[_0x5557af(0xf3)]===0x0?_0x5557af(0xfc)+CLI_BIN_NAME+_0x5557af(0x102)+_0x1fa232+'\x20--app\x20'+_0x2c9272+'\x20--appcode\x20<code>`.':_0x5557af(0x112)+_0x585edd[_0x5557af(0x118)](',\x20');throw CliErrors[_0x5557af(0xff)](_0x5557af(0xf8)+_0x2c9272+_0x5557af(0x124),_0x50f267);}assertValidAppcode(String(_0x3b906));const _0x49fd6e={..._0x3b39f6,..._0x2cd063,'appcode':String(_0x3b906),...collectWorkspaceProfileOverrides(_0x3b85af)};return _0x1f1a4c[_0x2c9272]=_0x49fd6e,_0x5bb61c[_0x5557af(0x10b)]=_0x1f1a4c,_0x5bb61c['defaultApp']=_0x2c9272,delete _0x5bb61c[_0x5557af(0x100)],delete _0x5bb61c[_0x5557af(0x11f)],_0x49fd6e['env']&&(_0x5bb61c[_0x5557af(0x122)]=_0x49fd6e['env']),writeConfigFile(_0x145dc4,_0x5bb61c),{'ok':!![],'message':'Workspace\x20'+(_0x1fa232===_0x5557af(0x101)?_0x5557af(0x11d):_0x5557af(0xf9))+':\x20'+_0x2c9272+_0x5557af(0x10f)+_0x49fd6e['appcode']+_0x5557af(0x104)+_0x145dc4+_0x5557af(0x11b),'data':{'operation':_0x5557af(0x119)+_0x1fa232,'configPath':_0x145dc4,'app':_0x2c9272,'appcode':_0x49fd6e[_0x5557af(0x100)],'env':_0x49fd6e[_0x5557af(0x122)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a181_0x5dc782(0x120),'command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x5dc782(0xfb),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4f8776=>configureWorkspace(_0x4f8776,a181_0x5dc782(0x101))},workspaceUseDefinition={'service':a181_0x5dc782(0x120),'command':a181_0x5dc782(0x10a),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1423bc=>configureWorkspace(_0x1423bc,a181_0x5dc782(0x10a))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- function a182_0x5df3(){const _0x53d6f9=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace','3773862vcMWFT','4390992VeTjcZ','16PPFlFF','1201930epySbV','492264eGtXKr','34982PkiBRZ','2087085HNhKKI','431324YqxESy','high-risk-write','name','3AWnWQu','remove'];a182_0x5df3=function(){return _0x53d6f9;};return a182_0x5df3();}function a182_0x1f4d(_0x35890c,_0x439258){_0x35890c=_0x35890c-0xf8;const _0x5df3ca=a182_0x5df3();let _0x1f4d6e=_0x5df3ca[_0x35890c];return _0x1f4d6e;}const a182_0x3cc9e2=a182_0x1f4d;(function(_0x4e7d5b,_0x449c60){const _0x47721e=a182_0x1f4d,_0x12d79d=_0x4e7d5b();while(!![]){try{const _0x1dac1d=parseInt(_0x47721e(0xfc))/0x1+-parseInt(_0x47721e(0xfd))/0x2*(-parseInt(_0x47721e(0x102))/0x3)+parseInt(_0x47721e(0xff))/0x4+-parseInt(_0x47721e(0xfb))/0x5+parseInt(_0x47721e(0xf8))/0x6+parseInt(_0x47721e(0xfe))/0x7+-parseInt(_0x47721e(0xfa))/0x8*(parseInt(_0x47721e(0xf9))/0x9);if(_0x1dac1d===_0x449c60)break;else _0x12d79d['push'](_0x12d79d['shift']());}catch(_0xff35cf){_0x12d79d['push'](_0x12d79d['shift']());}}}(a182_0x5df3,0x5036c));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a182_0x3cc9e2(0x105),'command':a182_0x3cc9e2(0x103),'description':a182_0x3cc9e2(0x104),'risk':a182_0x3cc9e2(0x100),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0x3cc9e2(0x101),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x25beb9=>validateAppName(_0x25beb9,'workspace\x20remove'),'execute':_0x21aebd=>runAppRemove(_0x21aebd,'workspace\x20remove')};
1
+ const a182_0x75334a=a182_0x154f;(function(_0x255eab,_0x4e8719){const _0x45b9c2=a182_0x154f,_0x3752d3=_0x255eab();while(!![]){try{const _0x318d23=-parseInt(_0x45b9c2(0x10f))/0x1+parseInt(_0x45b9c2(0x10d))/0x2*(parseInt(_0x45b9c2(0x103))/0x3)+-parseInt(_0x45b9c2(0x10a))/0x4*(-parseInt(_0x45b9c2(0x10b))/0x5)+-parseInt(_0x45b9c2(0x102))/0x6+-parseInt(_0x45b9c2(0x10c))/0x7+parseInt(_0x45b9c2(0x110))/0x8+parseInt(_0x45b9c2(0x104))/0x9;if(_0x318d23===_0x4e8719)break;else _0x3752d3['push'](_0x3752d3['shift']());}catch(_0x285470){_0x3752d3['push'](_0x3752d3['shift']());}}}(a182_0x112b,0x9668a));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a182_0x154f(_0x312695,_0x2fafa7){_0x312695=_0x312695-0x102;const _0x112b05=a182_0x112b();let _0x154fab=_0x112b05[_0x312695];return _0x154fab;}export const workspaceRemoveDefinition={'service':a182_0x75334a(0x105),'command':a182_0x75334a(0x109),'description':a182_0x75334a(0x108),'risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a182_0x75334a(0x10e),'description':a182_0x75334a(0x106),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x30158b=>validateAppName(_0x30158b,a182_0x75334a(0x107)),'execute':_0x127fd7=>runAppRemove(_0x127fd7,'workspace\x20remove')};function a182_0x112b(){const _0x12d1b9=['Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','1166644iAaoko','5BXFamB','6145055YvNoHf','386330JnXEpC','name','615548thiXeL','7216528EXvEiR','1806582vpdjxI','9jxkjqp','5736258eYCdEw','workspace','App\x20profile\x20name\x20to\x20remove','workspace\x20remove'];a182_0x112b=function(){return _0x12d1b9;};return a182_0x112b();}
@@ -1 +1 @@
1
- const a183_0x1cbbb2=a183_0x1bb3;(function(_0x19f015,_0x4c9f2c){const _0x47049e=a183_0x1bb3,_0x470a98=_0x19f015();while(!![]){try{const _0x1c61c4=parseInt(_0x47049e(0x1f0))/0x1+parseInt(_0x47049e(0x1fc))/0x2*(-parseInt(_0x47049e(0x209))/0x3)+-parseInt(_0x47049e(0x1fb))/0x4+-parseInt(_0x47049e(0x207))/0x5+-parseInt(_0x47049e(0x204))/0x6+-parseInt(_0x47049e(0x213))/0x7*(-parseInt(_0x47049e(0x210))/0x8)+parseInt(_0x47049e(0x20a))/0x9*(parseInt(_0x47049e(0x1f9))/0xa);if(_0x1c61c4===_0x4c9f2c)break;else _0x470a98['push'](_0x470a98['shift']());}catch(_0x2a5efd){_0x470a98['push'](_0x470a98['shift']());}}}(a183_0x7eba,0xb4693));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a183_0x1cbbb2(0x214),a183_0x1cbbb2(0x1f8),a183_0x1cbbb2(0x1f3),a183_0x1cbbb2(0x201)];function a183_0x7eba(){const _0x1a7702=['5360892OkjPIF','148102WDGjAr','app','defaultFormat','trim','filter','riskLevel','appcode','pageSize','1737168dxdlbT','Config\x20key\x20(','entries','2981065ioWZQz','defaultApp','15yyCilN','10633203azPSGQ','number','zh-CN','cookie','Target\x20environment','env','152ONyCwp','apiDir','length','283024hzfcrs','accessKey','toLowerCase','Risk\x20level','apps','Locale','1385507jBfyOA','string','Auth\x20cookie','format','map','inherit','Access\x20key','has','locale','10kUozWe','en-US'];a183_0x7eba=function(){return _0x1a7702;};return a183_0x7eba();}export const TOP_LEVEL_CONFIG_KEYS=new Set([a183_0x1cbbb2(0x202),a183_0x1cbbb2(0x20f),a183_0x1cbbb2(0x1f8),a183_0x1cbbb2(0x1f3),a183_0x1cbbb2(0x20d),'accessKey',a183_0x1cbbb2(0x211)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x287d1c){return[..._0x287d1c]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x3bd955){const _0x557696=a183_0x1cbbb2;return TOP_LEVEL_CONFIG_KEYS[_0x557696(0x1f7)](_0x3bd955);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x23b0a6=a183_0x1cbbb2;return _0x23b0a6(0x205)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x1cbbb2(0x20f),'apiDir':a183_0x1cbbb2(0x211),'cookie':a183_0x1cbbb2(0x20d),'accessKey':a183_0x1cbbb2(0x214),'defaultFormat':a183_0x1cbbb2(0x1f3),'pageSize':a183_0x1cbbb2(0x203),'riskLevel':a183_0x1cbbb2(0x201),'locale':'locale'};export function getAppProfileFlagDefs(){const _0x18f492=a183_0x1cbbb2;return[{'name':_0x18f492(0x20f),'type':_0x18f492(0x1f1),'description':_0x18f492(0x20e),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x18f492(0x211),'type':'string','description':'API\x20directory\x20path'},{'name':_0x18f492(0x20d),'type':_0x18f492(0x1f1),'description':_0x18f492(0x1f2),'hidden':!![]},{'name':_0x18f492(0x214),'type':_0x18f492(0x1f1),'description':_0x18f492(0x1f6),'hidden':!![]},{'name':_0x18f492(0x1fe),'type':_0x18f492(0x1f1),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x18f492(0x203),'type':_0x18f492(0x20b),'description':'Default\x20page\x20size'},{'name':_0x18f492(0x201),'type':_0x18f492(0x1f1),'description':_0x18f492(0x216),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x18f492(0x1f8),'type':'string','description':_0x18f492(0x218)}];}export function collectAppProfileOverrides(_0x48ce21){const _0x192992=a183_0x1cbbb2,_0x570852={};for(const [_0x448177,_0x1b52d5]of Object[_0x192992(0x206)](APP_PROFILE_FLAG_KEY_MAP)){const _0x71b332=_0x48ce21(_0x448177);if(!_0x71b332)continue;_0x570852[_0x1b52d5]=_0x1b52d5===_0x192992(0x203)?Number(_0x71b332):_0x71b332;}return _0x570852;}export function buildAppProfileListFields(_0x14b72e){const _0x5f2e3a=a183_0x1cbbb2;return{'env':_0x14b72e['env']??null,'apiDir':_0x14b72e['apiDir']??null,'hasCookie':!!_0x14b72e[_0x5f2e3a(0x20d)],'hasAccessKey':!!_0x14b72e[_0x5f2e3a(0x214)],'format':_0x14b72e[_0x5f2e3a(0x1f3)]??null,'pageSize':_0x14b72e[_0x5f2e3a(0x203)]??null,'riskLevel':_0x14b72e[_0x5f2e3a(0x201)]??null,'locale':_0x14b72e['locale']??null};}export function buildAppDoctorFields(_0x24ad27,_0x2c0a01){const _0x4d2317=a183_0x1cbbb2;return{'env':{'value':_0x24ad27['env']||_0x2c0a01[_0x4d2317(0x20f)],'source':_0x24ad27['env']?_0x4d2317(0x1fd):_0x4d2317(0x1f5)},'apiDir':{'value':_0x24ad27[_0x4d2317(0x211)]||_0x2c0a01[_0x4d2317(0x211)],'source':_0x24ad27['apiDir']?_0x4d2317(0x1fd):_0x4d2317(0x1f5)},'cookie':{'value':_0x24ad27[_0x4d2317(0x20d)]||_0x2c0a01[_0x4d2317(0x20d)],'source':_0x24ad27[_0x4d2317(0x20d)]?_0x4d2317(0x1fd):_0x4d2317(0x1f5)},'accessKey':{'value':_0x24ad27['accessKey']||_0x2c0a01[_0x4d2317(0x214)],'source':_0x24ad27[_0x4d2317(0x214)]?_0x4d2317(0x1fd):_0x4d2317(0x1f5)}};}export function buildCanonicalAppConfig(_0x17f2a8,_0x5776ef){const _0x5e327d=a183_0x1cbbb2,_0x1ae078=_0x17f2a8[_0x5e327d(0x1f4)](_0x143182=>String(_0x143182||'')[_0x5e327d(0x1ff)]())[_0x5e327d(0x200)](Boolean);if(_0x1ae078[_0x5e327d(0x212)]===0x0)return{};const _0x5e9260={};for(const _0x8fce83 of _0x1ae078){_0x5e9260[_0x8fce83]=_0x5776ef?{'appcode':_0x8fce83,'env':_0x5776ef}:{'appcode':_0x8fce83};}return{'apps':_0x5e9260,'defaultApp':_0x1ae078[0x0]};}export function buildCanonicalProjectConfig(_0x4f9fee,_0x3fbc1e){const _0x38082d=a183_0x1cbbb2,{appCodes:appCodes=[],env:_0x329f97,metadata:_0x97a313}=_0x3fbc1e,_0x4efe91={..._0x4f9fee,..._0x97a313||{}};delete _0x4efe91['appcode'],delete _0x4efe91[_0x38082d(0x1fd)];if(_0x329f97)_0x4efe91[_0x38082d(0x20f)]=_0x329f97;else!_0x4efe91[_0x38082d(0x20f)]&&(_0x4efe91[_0x38082d(0x20f)]=DEFAULT_CONFIG_VALUES[_0x38082d(0x20f)]);const _0xcc81c5=buildCanonicalAppConfig(appCodes,_0x4efe91[_0x38082d(0x20f)]);return Object['keys'](_0xcc81c5)['length']>0x0&&(_0x4efe91['apps']=_0xcc81c5[_0x38082d(0x217)],_0x4efe91[_0x38082d(0x208)]=_0xcc81c5[_0x38082d(0x208)]),_0x4efe91;}function a183_0x1bb3(_0x447a81,_0x41d2da){_0x447a81=_0x447a81-0x1f0;const _0x7ebad8=a183_0x7eba();let _0x1bb3ad=_0x7ebad8[_0x447a81];return _0x1bb3ad;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a183_0x1cbbb2(0x20c),'zh_cn':a183_0x1cbbb2(0x20c),'en':a183_0x1cbbb2(0x1fa),'en-us':a183_0x1cbbb2(0x1fa),'en_us':'en-US'};export function normalizeLocale(_0x28d329){const _0x538c05=a183_0x1cbbb2;if(!_0x28d329)return null;return LOCALE_MAP[_0x28d329[_0x538c05(0x215)]()]??null;}
1
+ const a183_0x5afed9=a183_0x4b80;(function(_0x362cc2,_0x37cbfd){const _0x415b8e=a183_0x4b80,_0x458091=_0x362cc2();while(!![]){try{const _0x38ceb7=parseInt(_0x415b8e(0xa2))/0x1+parseInt(_0x415b8e(0xaf))/0x2+parseInt(_0x415b8e(0xb1))/0x3*(-parseInt(_0x415b8e(0xab))/0x4)+parseInt(_0x415b8e(0xac))/0x5*(parseInt(_0x415b8e(0xb7))/0x6)+-parseInt(_0x415b8e(0xa3))/0x7+parseInt(_0x415b8e(0xb9))/0x8*(parseInt(_0x415b8e(0xb5))/0x9)+-parseInt(_0x415b8e(0xbe))/0xa;if(_0x38ceb7===_0x37cbfd)break;else _0x458091['push'](_0x458091['shift']());}catch(_0x4d2c2a){_0x458091['push'](_0x458091['shift']());}}}(a183_0x3048,0xc91bc));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a183_0x5afed9(0xc1),a183_0x5afed9(0xbc),a183_0x5afed9(0xaa),a183_0x5afed9(0x9e),a183_0x5afed9(0xae)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a183_0x5afed9(0xad),a183_0x5afed9(0xaa),'format',a183_0x5afed9(0xc1),'accessKey','apiDir']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a183_0x4b80(_0x537d70,_0x285104){_0x537d70=_0x537d70-0x98;const _0x3048f3=a183_0x3048();let _0x4b80ba=_0x3048f3[_0x537d70];return _0x4b80ba;}export function formatConfigKeyList(_0xd81866){const _0x5f257c=a183_0x5afed9;return[..._0xd81866][_0x5f257c(0x99)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xd63a84){return TOP_LEVEL_CONFIG_KEYS['has'](_0xd63a84);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3464ce=a183_0x5afed9;return _0x3464ce(0xa8)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x5afed9(0xad),'apiDir':a183_0x5afed9(0x9c),'cookie':a183_0x5afed9(0xc1),'accessKey':a183_0x5afed9(0xbc),'defaultFormat':'format','pageSize':a183_0x5afed9(0xa1),'riskLevel':a183_0x5afed9(0xae),'locale':a183_0x5afed9(0xaa)};export function getAppProfileFlagDefs(){const _0x5b3ed3=a183_0x5afed9;return[{'name':_0x5b3ed3(0xad),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0x9d),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5b3ed3(0x9c),'type':_0x5b3ed3(0xbf),'description':'API\x20directory\x20path'},{'name':_0x5b3ed3(0xc1),'type':'string','description':_0x5b3ed3(0xba),'hidden':!![]},{'name':_0x5b3ed3(0xbc),'type':_0x5b3ed3(0xbf),'description':'Access\x20key','hidden':!![]},{'name':_0x5b3ed3(0xb4),'type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5b3ed3(0xa1),'type':'number','description':_0x5b3ed3(0xa6)},{'name':'riskLevel','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xb2),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x5b3ed3(0xbf),'description':_0x5b3ed3(0xa4)}];}export function collectAppProfileOverrides(_0x589b13){const _0x234f28=a183_0x5afed9,_0x472343={};for(const [_0x3e977c,_0x21a3b9]of Object[_0x234f28(0xb0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x354e92=_0x589b13(_0x3e977c);if(!_0x354e92)continue;_0x472343[_0x21a3b9]=_0x21a3b9==='pageSize'?Number(_0x354e92):_0x354e92;}return _0x472343;}export function buildAppProfileListFields(_0x535095){const _0x1542d5=a183_0x5afed9;return{'env':_0x535095[_0x1542d5(0xad)]??null,'apiDir':_0x535095[_0x1542d5(0x9c)]??null,'hasCookie':!!_0x535095[_0x1542d5(0xc1)],'hasAccessKey':!!_0x535095[_0x1542d5(0xbc)],'format':_0x535095[_0x1542d5(0x9e)]??null,'pageSize':_0x535095['pageSize']??null,'riskLevel':_0x535095[_0x1542d5(0xae)]??null,'locale':_0x535095[_0x1542d5(0xaa)]??null};}export function buildAppDoctorFields(_0x13a729,_0x5b8bf2){const _0x3de744=a183_0x5afed9;return{'env':{'value':_0x13a729['env']||_0x5b8bf2[_0x3de744(0xad)],'source':_0x13a729['env']?_0x3de744(0xbb):'inherit'},'apiDir':{'value':_0x13a729[_0x3de744(0x9c)]||_0x5b8bf2[_0x3de744(0x9c)],'source':_0x13a729['apiDir']?_0x3de744(0xbb):_0x3de744(0xc0)},'cookie':{'value':_0x13a729['cookie']||_0x5b8bf2[_0x3de744(0xc1)],'source':_0x13a729['cookie']?'app':_0x3de744(0xc0)},'accessKey':{'value':_0x13a729[_0x3de744(0xbc)]||_0x5b8bf2[_0x3de744(0xbc)],'source':_0x13a729[_0x3de744(0xbc)]?_0x3de744(0xbb):_0x3de744(0xc0)}};}export function buildCanonicalAppConfig(_0x463b4d,_0x57db20){const _0xdca2fe=a183_0x5afed9,_0x5f59ee=_0x463b4d[_0xdca2fe(0x98)](_0x49a125=>String(_0x49a125||'')[_0xdca2fe(0xa9)]())[_0xdca2fe(0xb8)](Boolean);if(_0x5f59ee[_0xdca2fe(0xb3)]===0x0)return{};const _0x288778={};for(const _0x74a277 of _0x5f59ee){_0x288778[_0x74a277]=_0x57db20?{'appcode':_0x74a277,'env':_0x57db20}:{'appcode':_0x74a277};}return{'apps':_0x288778,'defaultApp':_0x5f59ee[0x0]};}export function buildCanonicalProjectConfig(_0x25cb8f,_0x49c742){const _0x1d4834=a183_0x5afed9,{appCodes:appCodes=[],env:_0x26749c,metadata:_0x297590}=_0x49c742,_0x30e7ed={..._0x25cb8f,..._0x297590||{}};delete _0x30e7ed[_0x1d4834(0x9a)],delete _0x30e7ed['app'];if(_0x26749c)_0x30e7ed[_0x1d4834(0xad)]=_0x26749c;else!_0x30e7ed[_0x1d4834(0xad)]&&(_0x30e7ed[_0x1d4834(0xad)]=DEFAULT_CONFIG_VALUES['env']);const _0x20fd72=buildCanonicalAppConfig(appCodes,_0x30e7ed[_0x1d4834(0xad)]);return Object[_0x1d4834(0xbd)](_0x20fd72)[_0x1d4834(0xb3)]>0x0&&(_0x30e7ed[_0x1d4834(0xa5)]=_0x20fd72['apps'],_0x30e7ed[_0x1d4834(0x9b)]=_0x20fd72['defaultApp']),_0x30e7ed;}function a183_0x3048(){const _0x2fe2e2=['length','defaultFormat','117UkgVwI','zh-CN','6YbNkZB','filter','648392OmfARg','Auth\x20cookie','app','accessKey','keys','15505700jHkUTM','string','inherit','cookie','map','join','appcode','defaultApp','apiDir','Target\x20environment','format','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize','1148134HWfkKa','208502NNZjsZ','Locale','apps','Default\x20page\x20size','toLowerCase','Config\x20key\x20(','trim','locale','8LFZvAW','3516085uzIHvS','env','riskLevel','1448468UOgBSw','entries','1837689CjhzAE','Risk\x20level'];a183_0x3048=function(){return _0x2fe2e2;};return a183_0x3048();}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a183_0x5afed9(0xb6),'zh_cn':'zh-CN','en':a183_0x5afed9(0x9f),'en-us':'en-US','en_us':a183_0x5afed9(0x9f)};export function normalizeLocale(_0x2b7b57){const _0x114de2=a183_0x5afed9;if(!_0x2b7b57)return null;return LOCALE_MAP[_0x2b7b57[_0x114de2(0xa7)]()]??null;}
@@ -1 +1 @@
1
- const a184_0xeca7d2=a184_0x1e50;function a184_0x1e50(_0x2d8fb1,_0x1fe31b){_0x2d8fb1=_0x2d8fb1-0xc3;const _0x2cabe6=a184_0x2cab();let _0x1e5072=_0x2cabe6[_0x2d8fb1];return _0x1e5072;}(function(_0x3dd6cc,_0x6595fe){const _0xd4de7=a184_0x1e50,_0x290996=_0x3dd6cc();while(!![]){try{const _0x277662=parseInt(_0xd4de7(0xc7))/0x1+-parseInt(_0xd4de7(0xc3))/0x2+parseInt(_0xd4de7(0xcb))/0x3+-parseInt(_0xd4de7(0xc6))/0x4*(parseInt(_0xd4de7(0xc8))/0x5)+parseInt(_0xd4de7(0xc9))/0x6+parseInt(_0xd4de7(0xc4))/0x7+parseInt(_0xd4de7(0xc5))/0x8;if(_0x277662===_0x6595fe)break;else _0x290996['push'](_0x290996['shift']());}catch(_0x32d0aa){_0x290996['push'](_0x290996['shift']());}}}(a184_0x2cab,0x95126));export const CLI_VERSION_POLICY_URL=a184_0xeca7d2(0xca);function a184_0x2cab(){const _0x524cb1=['1495690xktpTd','2637460AFDfky','3134672CtOKGg','52oxXGHQ','593991wyeKYH','299900SIurob','3568428jMEsHf','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','542520BliwQq'];a184_0x2cab=function(){return _0x524cb1;};return a184_0x2cab();}
1
+ const a184_0x36954b=a184_0x14e8;function a184_0x25c1(){const _0x58b45d=['https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','55170JQwRzM','472pIcUfc','1671816bHckRl','905FdNvnh','1169651qIhicx','4044260PEUltC','289866SpoYxL','306qMStgx','909GqcOfq','13362sRFxHA'];a184_0x25c1=function(){return _0x58b45d;};return a184_0x25c1();}function a184_0x14e8(_0x320869,_0xc8feef){_0x320869=_0x320869-0x1a2;const _0x25c1e1=a184_0x25c1();let _0x14e86f=_0x25c1e1[_0x320869];return _0x14e86f;}(function(_0x519f44,_0x87542f){const _0x21d06b=a184_0x14e8,_0x54eba2=_0x519f44();while(!![]){try{const _0x378658=parseInt(_0x21d06b(0x1aa))/0x1+parseInt(_0x21d06b(0x1ab))/0x2*(parseInt(_0x21d06b(0x1ac))/0x3)+parseInt(_0x21d06b(0x1a6))/0x4+-parseInt(_0x21d06b(0x1a7))/0x5*(-parseInt(_0x21d06b(0x1a2))/0x6)+-parseInt(_0x21d06b(0x1a8))/0x7+parseInt(_0x21d06b(0x1a5))/0x8*(-parseInt(_0x21d06b(0x1a4))/0x9)+-parseInt(_0x21d06b(0x1a9))/0xa;if(_0x378658===_0x87542f)break;else _0x54eba2['push'](_0x54eba2['shift']());}catch(_0x51fb1b){_0x54eba2['push'](_0x54eba2['shift']());}}}(a184_0x25c1,0x36b4d));export const CLI_VERSION_POLICY_URL=a184_0x36954b(0x1a3);
@@ -1 +1 @@
1
- const a185_0x56bdc9=a185_0xac00;(function(_0x57d88,_0x2cf866){const _0x170bc1=a185_0xac00,_0x31c866=_0x57d88();while(!![]){try{const _0x1305e8=parseInt(_0x170bc1(0x207))/0x1*(parseInt(_0x170bc1(0x221))/0x2)+parseInt(_0x170bc1(0x211))/0x3*(parseInt(_0x170bc1(0x1ae))/0x4)+parseInt(_0x170bc1(0x1c8))/0x5*(-parseInt(_0x170bc1(0x1bf))/0x6)+-parseInt(_0x170bc1(0x1b8))/0x7+-parseInt(_0x170bc1(0x1bc))/0x8*(-parseInt(_0x170bc1(0x210))/0x9)+parseInt(_0x170bc1(0x1cf))/0xa+-parseInt(_0x170bc1(0x1f9))/0xb;if(_0x1305e8===_0x2cf866)break;else _0x31c866['push'](_0x31c866['shift']());}catch(_0x5bf36e){_0x31c866['push'](_0x31c866['shift']());}}}(a185_0x3c4b,0xb191b));function a185_0xac00(_0x444544,_0x1ff0b6){_0x444544=_0x444544-0x1a9;const _0x3c4bd6=a185_0x3c4b();let _0xac0007=_0x3c4bd6[_0x444544];return _0xac0007;}function a185_0x3c4b(){const _0x28c876=['SQL\x20string','10QjNQkA','Output\x20path','Asynchronous\x20task\x20ID','Reveal\x20sensitive\x20value','SQL\x20code','Skip\x20import\x20generation','dryRun','1070240AdPOHP','Page\x20size','Override\x20appcode','Alias\x20for\x20--non-interactive','dbid','expected-children-count','all','Use\x20project\x20config\x20scope','operation','taskId','watch','Expected\x20current\x20menu\x20path','tags','Keyword\x20filter','Apply\x20to\x20all','Dataset\x20code','production\x20|\x20daily','sort','Config\x20value','fromEntries','File\x20path','Schemas','expect-parent-id','operation-type','sqlname','map','functionNode','DB\x20ID','project','Menu\x20sort\x20value','Config\x20key','datasetcode','<expr>','nonInteractive','string','schemas','format','app','Read\x20value\x20from\x20environment\x20variable','Target\x20path','function-node','sql','11239459EfGjqO','appcode','Preview\x20operation\x20without\x20executing','help','remote','clear','Skip\x20confirmation\x20for\x20high-risk\x20writes','@lovrabet/rabetbase-cli','Force\x20non-interactive\x20mode\x20(CI)','Use\x20global\x20config\x20scope','type','target','value','yes','4yjsDlQ','Output\x20format','file','confirm','page','parent-id','sqlName','force','boolean','4176ojYgbH','2962728rneFct','skipImports','from-env','key','stdin','params','Read\x20value\x20from\x20stdin','Page\x20number','Force\x20overwrite','Watch\x20mode','env','SQL\x20name','expectParentId','expectedChildrenCount','Expected\x20current\x20child\x20count','keyword','580314zQSdnD','Expected\x20affected\x20count','Title','description-file','Verbose\x20output','meowKey','verbose','Confirm\x20destructive\x20action','code','Type\x20filter','sqlcode','description','output','4kAYVxB','non-interactive','expectPath','Clear','Code\x20filter','Operation\x20type','parentId','Parent\x20menu\x20id','fromEnv','Show\x20help','3712478Thwzvc','global','enableBffSave','title','21968utHRjI','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','name','3749778pJtuON','json\x20|\x20pretty\x20|\x20compress','Select\x20app\x20profile\x20by\x20name','label','Record\x20ID','reveal','pagesize','dry-run'];a185_0x3c4b=function(){return _0x28c876;};return a185_0x3c4b();}export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x56bdc9(0x200);export const GLOBAL_FLAGS=[{'name':a185_0x56bdc9(0x1fa),'meowKey':a185_0x56bdc9(0x1fa),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d1),'hint':'<code>'},{'name':a185_0x56bdc9(0x1f4),'meowKey':a185_0x56bdc9(0x1f4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c1),'hint':'<name>'},{'name':'env','meowKey':a185_0x56bdc9(0x21b),'type':a185_0x56bdc9(0x1f1),'description':'Environment','hint':a185_0x56bdc9(0x1df)},{'name':a185_0x56bdc9(0x1f3),'meowKey':a185_0x56bdc9(0x1f3),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x208),'hint':a185_0x56bdc9(0x1c0)},{'name':'jq','meowKey':'jq','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1bd),'hint':a185_0x56bdc9(0x1ef)},{'name':a185_0x56bdc9(0x1c6),'meowKey':a185_0x56bdc9(0x1ce),'type':'boolean','description':a185_0x56bdc9(0x1fb)},{'name':a185_0x56bdc9(0x206),'meowKey':a185_0x56bdc9(0x206),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1ff)},{'name':a185_0x56bdc9(0x1af),'meowKey':a185_0x56bdc9(0x1f0),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x201)},{'name':a185_0x56bdc9(0x1b9),'meowKey':a185_0x56bdc9(0x1b9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x202)},{'name':a185_0x56bdc9(0x1eb),'meowKey':a185_0x56bdc9(0x1eb),'type':'boolean','description':a185_0x56bdc9(0x1d6)},{'name':'ci','meowKey':'ci','type':'boolean','description':a185_0x56bdc9(0x1d2),'hidden':!![]},{'name':'help','meowKey':a185_0x56bdc9(0x1fc),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b7)},{'name':a185_0x56bdc9(0x1be),'meowKey':a185_0x56bdc9(0x1be),'type':a185_0x56bdc9(0x1f1),'description':'Name','hidden':!![]},{'name':a185_0x56bdc9(0x1bb),'meowKey':a185_0x56bdc9(0x1bb),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x223),'hidden':!![]},{'name':a185_0x56bdc9(0x1fe),'meowKey':a185_0x56bdc9(0x1fe),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1b1),'hidden':!![]},{'name':a185_0x56bdc9(0x1d9),'meowKey':a185_0x56bdc9(0x1d9),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x21a),'hidden':!![]},{'name':a185_0x56bdc9(0x1ad),'meowKey':'output','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c9),'hidden':!![]},{'name':a185_0x56bdc9(0x216),'meowKey':a185_0x56bdc9(0x216),'type':a185_0x56bdc9(0x1f1),'description':'JSON\x20params','hidden':!![]},{'name':a185_0x56bdc9(0x1ee),'meowKey':a185_0x56bdc9(0x1ee),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1de),'hidden':!![]},{'name':a185_0x56bdc9(0x1d5),'meowKey':'all','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1dd),'hidden':!![]},{'name':'enable-bff-save','meowKey':a185_0x56bdc9(0x1ba),'type':a185_0x56bdc9(0x20f),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1c3),'hidden':!![]},{'name':a185_0x56bdc9(0x203),'meowKey':'type','type':'string','description':a185_0x56bdc9(0x1aa),'hidden':!![]},{'name':a185_0x56bdc9(0x209),'meowKey':a185_0x56bdc9(0x209),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e3),'hidden':!![]},{'name':a185_0x56bdc9(0x1ab),'meowKey':'sqlcode','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1cc),'hidden':!![]},{'name':'sql-name','meowKey':a185_0x56bdc9(0x20d),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x21c),'hidden':!![]},{'name':a185_0x56bdc9(0x1e7),'meowKey':a185_0x56bdc9(0x1e7),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':'dbId','type':'string','description':a185_0x56bdc9(0x1ea),'hidden':!![]},{'name':a185_0x56bdc9(0x1d3),'meowKey':a185_0x56bdc9(0x1d3),'type':a185_0x56bdc9(0x1f1),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':a185_0x56bdc9(0x1ac),'type':a185_0x56bdc9(0x1f1),'description':'Description','hidden':!![]},{'name':a185_0x56bdc9(0x224),'meowKey':'descriptionFile','type':'string','description':'Description\x20file','hidden':!![]},{'name':a185_0x56bdc9(0x20b),'meowKey':'page','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x218),'hidden':!![]},{'name':a185_0x56bdc9(0x1c5),'meowKey':a185_0x56bdc9(0x1c5),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1d0),'hidden':!![]},{'name':'keyword','meowKey':a185_0x56bdc9(0x220),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1dc),'hidden':!![]},{'name':a185_0x56bdc9(0x1a9),'meowKey':a185_0x56bdc9(0x1a9),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b2),'hidden':!![]},{'name':'sql','meowKey':a185_0x56bdc9(0x1f8),'type':'string','description':a185_0x56bdc9(0x1c7),'hidden':!![]},{'name':a185_0x56bdc9(0x1f2),'meowKey':'schemas','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1e4),'hidden':!![]},{'name':a185_0x56bdc9(0x1d7),'meowKey':a185_0x56bdc9(0x1d7),'type':a185_0x56bdc9(0x1f1),'description':'Operation\x20type','hidden':!![]},{'name':a185_0x56bdc9(0x204),'meowKey':'target','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f6),'hidden':!![]},{'name':'skip-imports','meowKey':a185_0x56bdc9(0x212),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cd),'hidden':!![]},{'name':a185_0x56bdc9(0x214),'meowKey':a185_0x56bdc9(0x214),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ed),'hidden':!![]},{'name':a185_0x56bdc9(0x205),'meowKey':a185_0x56bdc9(0x205),'type':'string','description':a185_0x56bdc9(0x1e1),'hidden':!![]},{'name':a185_0x56bdc9(0x1db),'meowKey':'tags','type':a185_0x56bdc9(0x1f1),'description':'Tags','hidden':!![]},{'name':a185_0x56bdc9(0x215),'meowKey':a185_0x56bdc9(0x215),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x217),'hidden':!![]},{'name':a185_0x56bdc9(0x213),'meowKey':a185_0x56bdc9(0x1b6),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1f5),'hidden':!![]},{'name':'reveal','meowKey':a185_0x56bdc9(0x1c4),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x1cb),'hidden':!![]},{'name':a185_0x56bdc9(0x20e),'meowKey':'force','type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x219),'hidden':!![]},{'name':a185_0x56bdc9(0x20a),'meowKey':a185_0x56bdc9(0x20a),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x228),'hidden':!![]},{'name':a185_0x56bdc9(0x1fd),'meowKey':'remote','type':a185_0x56bdc9(0x20f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x56bdc9(0x227),'meowKey':a185_0x56bdc9(0x227),'type':a185_0x56bdc9(0x20f),'description':a185_0x56bdc9(0x225),'hidden':!![]},{'name':'expected-count','meowKey':'expectedCount','type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x222),'hidden':!![]},{'name':a185_0x56bdc9(0x1c2),'meowKey':a185_0x56bdc9(0x1c2),'type':a185_0x56bdc9(0x1f1),'description':'Menu\x20label','hidden':!![]},{'name':a185_0x56bdc9(0x20c),'meowKey':a185_0x56bdc9(0x1b4),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1b5),'hidden':!![]},{'name':a185_0x56bdc9(0x1e0),'meowKey':a185_0x56bdc9(0x1e0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ec),'hidden':!![]},{'name':a185_0x56bdc9(0x1e5),'meowKey':a185_0x56bdc9(0x21d),'type':a185_0x56bdc9(0x1f1),'description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':'expect-path','meowKey':a185_0x56bdc9(0x1b0),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1da),'hidden':!![]},{'name':a185_0x56bdc9(0x1d4),'meowKey':a185_0x56bdc9(0x21e),'type':'string','description':a185_0x56bdc9(0x21f),'hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':a185_0x56bdc9(0x1f1),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':a185_0x56bdc9(0x1d8),'type':a185_0x56bdc9(0x1f1),'description':a185_0x56bdc9(0x1ca),'hidden':!![]},{'name':a185_0x56bdc9(0x1e6),'meowKey':'operationType','type':'string','description':a185_0x56bdc9(0x1b3),'hidden':!![]},{'name':a185_0x56bdc9(0x1f7),'meowKey':a185_0x56bdc9(0x1e9),'type':'string','description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x56bdc9(0x1fa),a185_0x56bdc9(0x1f4),a185_0x56bdc9(0x21b),a185_0x56bdc9(0x1f3),'jq',a185_0x56bdc9(0x1c6),a185_0x56bdc9(0x206),a185_0x56bdc9(0x1af),'ci']);export function buildMeowFlags(){const _0x2833e1=a185_0x56bdc9;return Object[_0x2833e1(0x1e2)](GLOBAL_FLAGS[_0x2833e1(0x1e8)](_0x454c4b=>[_0x454c4b[_0x2833e1(0x226)],{'type':_0x454c4b[_0x2833e1(0x203)]}]));}
1
+ function a185_0x3ad6(){const _0x5e3c91=['code','sort','sqlName','Name','pagesize','18uiTaoE','Use\x20project\x20config\x20scope','Force\x20non-interactive\x20mode\x20(CI)','menuIds','Reveal\x20sensitive\x20value','Environment','Target\x20path','6314910hZjooC','map','Apply\x20to\x20all','format','3332755EiutjN','Force\x20overwrite','DB\x20ID','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Read\x20value\x20from\x20environment\x20variable','SQL\x20name','dbid','string','sql','8075344WKAClp','clear','key','Output\x20format','description','Menu\x20label','global','fromEnv','non-interactive','sql-name','Override\x20appcode','title','sqlname','operation-type','meowKey','Alias\x20for\x20--non-interactive','schemas','<expr>','parentId','page','Enable\x20BFF\x20save','help','from-env','expected-count','Page\x20number','tags','442288RPrelE','Watch\x20mode','expectParentId','file','project','Type\x20filter','Dataset\x20code','Page\x20size','Select\x20app\x20profile\x20by\x20name','production\x20|\x20daily','Keyword\x20filter','Code\x20filter','json\x20|\x20pretty\x20|\x20compress','boolean','1490282cJNQCZ','expected-children-count','Skip\x20import\x20generation','Menu\x20sort\x20value','operationType','expectedCount','Expected\x20affected\x20count','Operation\x20type','Schemas','enable-bff-save','keyword','Skip\x20confirmation\x20for\x20high-risk\x20writes','force','Show\x20help','remote','target','rabetbase','Asynchronous\x20task\x20ID','<code>','Verbose\x20output','dryRun','SQL\x20code','parent-id','expect-parent-id','watch','@lovrabet/rabetbase-cli','value','expectPath','function-node','Expected\x20current\x20menu\x20path','1347857LgCDiQ','fromEntries','dbId','nonInteractive','yes','stdin','app','description-file','type','reveal','datasetcode','File\x20path','Title','Config\x20value','Expected\x20current\x20parent\x20menu\x20id','params','Tags','Output\x20path','JSON\x20params','Function\x20node','Clear','SQL\x20string','appcode','dry-run','confirm','output','label','skip-imports','Preview\x20operation\x20without\x20executing','sqlcode','verbose','env','name','60906gNFTCQ','Description\x20file','172wRqMGS','all','db-id'];a185_0x3ad6=function(){return _0x5e3c91;};return a185_0x3ad6();}const a185_0x4529ff=a185_0x3327;(function(_0x1a6dd7,_0x37597b){const _0x541947=a185_0x3327,_0x5939a2=_0x1a6dd7();while(!![]){try{const _0x1cbbd9=-parseInt(_0x541947(0xf7))/0x1+-parseInt(_0x541947(0x80))/0x2+-parseInt(_0x541947(0xbf))/0x3*(parseInt(_0x541947(0xc1))/0x4)+-parseInt(_0x541947(0xd4))/0x5+parseInt(_0x541947(0xd0))/0x6+parseInt(_0x541947(0x9e))/0x7+parseInt(_0x541947(0xdd))/0x8*(parseInt(_0x541947(0xc9))/0x9);if(_0x1cbbd9===_0x37597b)break;else _0x5939a2['push'](_0x5939a2['shift']());}catch(_0x5cf2ee){_0x5939a2['push'](_0x5939a2['shift']());}}}(a185_0x3ad6,0x8314a));export const CLI_BIN_NAME=a185_0x4529ff(0x90);function a185_0x3327(_0x546971,_0x3a444a){_0x546971=_0x546971-0x7c;const _0x3ad6fe=a185_0x3ad6();let _0x332798=_0x3ad6fe[_0x546971];return _0x332798;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a185_0x4529ff(0x99);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a185_0x4529ff(0xb4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe7),'hint':a185_0x4529ff(0x92)},{'name':a185_0x4529ff(0xa4),'meowKey':'app','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xff),'hint':'<name>'},{'name':a185_0x4529ff(0xbd),'meowKey':a185_0x4529ff(0xbd),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xce),'hint':a185_0x4529ff(0x100)},{'name':'format','meowKey':a185_0x4529ff(0xd3),'type':'string','description':a185_0x4529ff(0xe0),'hint':a185_0x4529ff(0x7e)},{'name':'jq','meowKey':'jq','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd7),'hint':a185_0x4529ff(0xee)},{'name':a185_0x4529ff(0xb5),'meowKey':a185_0x4529ff(0x94),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xba)},{'name':a185_0x4529ff(0xa2),'meowKey':a185_0x4529ff(0xa2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8b)},{'name':a185_0x4529ff(0xe5),'meowKey':a185_0x4529ff(0xa1),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcb)},{'name':a185_0x4529ff(0xe3),'meowKey':a185_0x4529ff(0xe3),'type':a185_0x4529ff(0x7f),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':a185_0x4529ff(0xfb),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xca)},{'name':'ci','meowKey':'ci','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xec),'hidden':!![]},{'name':a185_0x4529ff(0xf2),'meowKey':'help','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x8d)},{'name':a185_0x4529ff(0xbe),'meowKey':a185_0x4529ff(0xbe),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc7),'hidden':!![]},{'name':a185_0x4529ff(0xe8),'meowKey':a185_0x4529ff(0xe8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xaa),'hidden':!![]},{'name':a185_0x4529ff(0xde),'meowKey':a185_0x4529ff(0xde),'type':'boolean','description':a185_0x4529ff(0xb2),'hidden':!![]},{'name':a185_0x4529ff(0x98),'meowKey':a185_0x4529ff(0x98),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf8),'hidden':!![]},{'name':'output','meowKey':a185_0x4529ff(0xb7),'type':'string','description':a185_0x4529ff(0xaf),'hidden':!![]},{'name':a185_0x4529ff(0xad),'meowKey':a185_0x4529ff(0xad),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb0),'hidden':!![]},{'name':a185_0x4529ff(0xa8),'meowKey':'datasetcode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfd),'hidden':!![]},{'name':'all','meowKey':a185_0x4529ff(0xc2),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd2),'hidden':!![]},{'name':a185_0x4529ff(0x89),'meowKey':'enableBffSave','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xf1),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x4529ff(0xdb),'description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a185_0x4529ff(0xa6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfc),'hidden':!![]},{'name':a185_0x4529ff(0xfa),'meowKey':a185_0x4529ff(0xfa),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xa9),'hidden':!![]},{'name':a185_0x4529ff(0xbb),'meowKey':a185_0x4529ff(0xbb),'type':'string','description':a185_0x4529ff(0x95),'hidden':!![]},{'name':a185_0x4529ff(0xe6),'meowKey':a185_0x4529ff(0xc6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xe9),'meowKey':a185_0x4529ff(0xe9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd9),'hidden':!![]},{'name':a185_0x4529ff(0xc3),'meowKey':a185_0x4529ff(0xa0),'type':a185_0x4529ff(0xdb),'description':'DB\x20ID','hidden':!![]},{'name':a185_0x4529ff(0xda),'meowKey':a185_0x4529ff(0xda),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd6),'hidden':!![]},{'name':'description','meowKey':a185_0x4529ff(0xe1),'type':a185_0x4529ff(0xdb),'description':'Description','hidden':!![]},{'name':a185_0x4529ff(0xa5),'meowKey':'descriptionFile','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xc0),'hidden':!![]},{'name':'page','meowKey':a185_0x4529ff(0xf0),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xf5),'hidden':!![]},{'name':a185_0x4529ff(0xc8),'meowKey':a185_0x4529ff(0xc8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xfe),'hidden':!![]},{'name':a185_0x4529ff(0x8a),'meowKey':a185_0x4529ff(0x8a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7c),'hidden':!![]},{'name':a185_0x4529ff(0xc4),'meowKey':'code','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x7d),'hidden':!![]},{'name':'sql','meowKey':a185_0x4529ff(0xdc),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb3),'hidden':!![]},{'name':a185_0x4529ff(0xed),'meowKey':a185_0x4529ff(0xed),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x88),'hidden':!![]},{'name':'operation','meowKey':'operation','type':'string','description':'Operation\x20type','hidden':!![]},{'name':a185_0x4529ff(0x8f),'meowKey':'target','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xcf),'hidden':!![]},{'name':a185_0x4529ff(0xb9),'meowKey':'skipImports','type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0x82),'hidden':!![]},{'name':'key','meowKey':a185_0x4529ff(0xdf),'type':a185_0x4529ff(0xdb),'description':'Config\x20key','hidden':!![]},{'name':a185_0x4529ff(0x9a),'meowKey':a185_0x4529ff(0x9a),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xab),'hidden':!![]},{'name':'tags','meowKey':a185_0x4529ff(0xf6),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xae),'hidden':!![]},{'name':a185_0x4529ff(0xa3),'meowKey':a185_0x4529ff(0xa3),'type':'boolean','description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a185_0x4529ff(0xf3),'meowKey':a185_0x4529ff(0xe4),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xd8),'hidden':!![]},{'name':a185_0x4529ff(0xa7),'meowKey':a185_0x4529ff(0xa7),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xcd),'hidden':!![]},{'name':a185_0x4529ff(0x8c),'meowKey':a185_0x4529ff(0x8c),'type':a185_0x4529ff(0x7f),'description':a185_0x4529ff(0xd5),'hidden':!![]},{'name':a185_0x4529ff(0xb6),'meowKey':'confirm','type':a185_0x4529ff(0x7f),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a185_0x4529ff(0x8e),'meowKey':a185_0x4529ff(0x8e),'type':a185_0x4529ff(0x7f),'description':'Use\x20remote','hidden':!![]},{'name':a185_0x4529ff(0xbc),'meowKey':a185_0x4529ff(0xbc),'type':'boolean','description':a185_0x4529ff(0x93),'hidden':!![]},{'name':a185_0x4529ff(0xf4),'meowKey':a185_0x4529ff(0x85),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x86),'hidden':!![]},{'name':'label','meowKey':a185_0x4529ff(0xb8),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xe2),'hidden':!![]},{'name':a185_0x4529ff(0x96),'meowKey':a185_0x4529ff(0xef),'type':a185_0x4529ff(0xdb),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a185_0x4529ff(0xc5),'meowKey':a185_0x4529ff(0xc5),'type':'string','description':a185_0x4529ff(0x83),'hidden':!![]},{'name':a185_0x4529ff(0x97),'meowKey':a185_0x4529ff(0xf9),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xac),'hidden':!![]},{'name':'expect-path','meowKey':a185_0x4529ff(0x9b),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x9d),'hidden':!![]},{'name':a185_0x4529ff(0x81),'meowKey':'expectedChildrenCount','type':a185_0x4529ff(0xdb),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':a185_0x4529ff(0xcc),'type':a185_0x4529ff(0xdb),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x91),'hidden':!![]},{'name':a185_0x4529ff(0xea),'meowKey':a185_0x4529ff(0x84),'type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0x87),'hidden':!![]},{'name':a185_0x4529ff(0x9c),'meowKey':'functionNode','type':a185_0x4529ff(0xdb),'description':a185_0x4529ff(0xb1),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x4529ff(0xb4),a185_0x4529ff(0xa4),a185_0x4529ff(0xbd),a185_0x4529ff(0xd3),'jq','dry-run','yes',a185_0x4529ff(0xe5),'ci']);export function buildMeowFlags(){const _0x5b6750=a185_0x4529ff;return Object[_0x5b6750(0x9f)](GLOBAL_FLAGS[_0x5b6750(0xd1)](_0x424313=>[_0x424313[_0x5b6750(0xeb)],{'type':_0x424313[_0x5b6750(0xa6)]}]));}
@@ -1 +1 @@
1
- const a186_0x3ef8a0=a186_0x2d5a;(function(_0x4306ba,_0x1c5b99){const _0x2683f1=a186_0x2d5a,_0xebe803=_0x4306ba();while(!![]){try{const _0x269cf9=-parseInt(_0x2683f1(0xf4))/0x1+-parseInt(_0x2683f1(0xf7))/0x2+-parseInt(_0x2683f1(0xf0))/0x3+-parseInt(_0x2683f1(0xef))/0x4+-parseInt(_0x2683f1(0xf9))/0x5+parseInt(_0x2683f1(0xf8))/0x6*(-parseInt(_0x2683f1(0xee))/0x7)+parseInt(_0x2683f1(0xf5))/0x8;if(_0x269cf9===_0x1c5b99)break;else _0xebe803['push'](_0xebe803['shift']());}catch(_0x261aa9){_0xebe803['push'](_0xebe803['shift']());}}}(a186_0xc6fd,0xd76af));import{DEFAULT_API_DIR}from'../constant/paths.js';function a186_0xc6fd(){const _0xe0bd26=['1491602mNMYst','44749352kxOUgA','en-US','194546XLrnZn','72FXViXO','215850vmSyuF','828163gFbKBY','3497088LUiCEE','2355879Zoonjg','compress','high-risk-write','production'];a186_0xc6fd=function(){return _0xe0bd26;};return a186_0xc6fd();}export const DEFAULT_CONFIG_VALUES={'env':a186_0x3ef8a0(0xf3),'format':a186_0x3ef8a0(0xf1),'locale':a186_0x3ef8a0(0xf6),'riskLevel':a186_0x3ef8a0(0xf2),'apiDir':DEFAULT_API_DIR};function a186_0x2d5a(_0x52c99a,_0x4a8e79){_0x52c99a=_0x52c99a-0xee;const _0xc6fd25=a186_0xc6fd();let _0x2d5a99=_0xc6fd25[_0x52c99a];return _0x2d5a99;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x3ef8a0(0xf1);
1
+ const a186_0x37c05a=a186_0x4f2a;(function(_0x1463a8,_0x24bfdc){const _0x496d2f=a186_0x4f2a,_0x3ec22e=_0x1463a8();while(!![]){try{const _0x57f157=parseInt(_0x496d2f(0x13d))/0x1*(-parseInt(_0x496d2f(0x137))/0x2)+-parseInt(_0x496d2f(0x136))/0x3*(-parseInt(_0x496d2f(0x13e))/0x4)+-parseInt(_0x496d2f(0x135))/0x5*(parseInt(_0x496d2f(0x13a))/0x6)+parseInt(_0x496d2f(0x13b))/0x7*(-parseInt(_0x496d2f(0x132))/0x8)+-parseInt(_0x496d2f(0x133))/0x9*(parseInt(_0x496d2f(0x13c))/0xa)+parseInt(_0x496d2f(0x139))/0xb*(-parseInt(_0x496d2f(0x140))/0xc)+parseInt(_0x496d2f(0x141))/0xd*(parseInt(_0x496d2f(0x13f))/0xe);if(_0x57f157===_0x24bfdc)break;else _0x3ec22e['push'](_0x3ec22e['shift']());}catch(_0x4ae05a){_0x3ec22e['push'](_0x3ec22e['shift']());}}}(a186_0x1e14,0xbebfc));function a186_0x1e14(){const _0x27699c=['80SzonNt','372ofFVwg','6TeisqM','compress','253AktxUQ','253398eLIKiG','107807nbTJch','30860JZyDsI','115113ueNcSs','2452IQFqUt','121912kRsOoT','388536XirLra','5356lgsHmG','136xCsqQm','2493LNrifU','en-US'];a186_0x1e14=function(){return _0x27699c;};return a186_0x1e14();}function a186_0x4f2a(_0xc5dcf2,_0x27d370){_0xc5dcf2=_0xc5dcf2-0x132;const _0x1e14eb=a186_0x1e14();let _0x4f2aaf=_0x1e14eb[_0xc5dcf2];return _0x4f2aaf;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a186_0x37c05a(0x138),'locale':a186_0x37c05a(0x134),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a186_0x37c05a(0x138);
@@ -1 +1 @@
1
- const a187_0x7fdee2=a187_0x3c5a;(function(_0x19025b,_0x483269){const _0x3c779e=a187_0x3c5a,_0x106400=_0x19025b();while(!![]){try{const _0x290bb1=parseInt(_0x3c779e(0x133))/0x1+parseInt(_0x3c779e(0x136))/0x2+parseInt(_0x3c779e(0x12e))/0x3+parseInt(_0x3c779e(0x124))/0x4*(-parseInt(_0x3c779e(0x122))/0x5)+parseInt(_0x3c779e(0x135))/0x6+-parseInt(_0x3c779e(0x134))/0x7*(-parseInt(_0x3c779e(0x125))/0x8)+parseInt(_0x3c779e(0x12a))/0x9*(-parseInt(_0x3c779e(0x12f))/0xa);if(_0x290bb1===_0x483269)break;else _0x106400['push'](_0x106400['shift']());}catch(_0x5e43e2){_0x106400['push'](_0x106400['shift']());}}}(a187_0x40f8,0xc1f40));import{getEnv,isProduction}from'../constant/env.js';function a187_0x40f8(){const _0x45fc37=['28zSGJBE','8hemHZE','trim','https://user-daily.lovrabet.com','userDomain','https://app.lovrabet.com','3012129etamrV','/web-app/app/','https://user.lovrabet.com','runtimeDomain','2169120asqCbC','80leZQuf','https://api.lovrabet.com','https://daily-api.lovrabet.com','https://runtime.lovrabet.com','836801gssbPi','3416245sLtXLt','1049772TojKGj','2536178leAWXy','https://daily.lovrabet.com','13605CixnBb','https://daily-runtime.lovrabet.com'];a187_0x40f8=function(){return _0x45fc37;};return a187_0x40f8();}function a187_0x3c5a(_0x40979b,_0x18ab4f){_0x40979b=_0x40979b-0x122;const _0x40f875=a187_0x40f8();let _0x3c5a68=_0x40f875[_0x40979b];return _0x3c5a68;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x40d594){const _0x5bc744=a187_0x3c5a;customApiDomain=_0x40d594?.['apiDomain'],customUserDomain=_0x40d594?.[_0x5bc744(0x128)],customRuntimeDomain=_0x40d594?.[_0x5bc744(0x12d)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x7fdee2(0x12c):a187_0x7fdee2(0x127));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x7fdee2(0x130):a187_0x7fdee2(0x131));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x7fdee2(0x132):a187_0x7fdee2(0x123));export const getAppDomain=()=>isProduction(getEnv())?a187_0x7fdee2(0x129):a187_0x7fdee2(0x137);export const getAppBaseUrl=_0xdcbc3b=>{const _0x11a1fb=a187_0x7fdee2,_0x1a8621=encodeURIComponent(_0xdcbc3b[_0x11a1fb(0x126)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x1a8621:getAppDomain()+_0x11a1fb(0x12b)+_0x1a8621;};
1
+ const a187_0x255935=a187_0x317b;(function(_0x590a2f,_0xc4f44a){const _0x49a0b5=a187_0x317b,_0x3ade09=_0x590a2f();while(!![]){try{const _0x42a9c3=-parseInt(_0x49a0b5(0x178))/0x1*(parseInt(_0x49a0b5(0x16c))/0x2)+-parseInt(_0x49a0b5(0x17c))/0x3+-parseInt(_0x49a0b5(0x175))/0x4+parseInt(_0x49a0b5(0x181))/0x5+parseInt(_0x49a0b5(0x17d))/0x6*(parseInt(_0x49a0b5(0x16e))/0x7)+parseInt(_0x49a0b5(0x16f))/0x8+-parseInt(_0x49a0b5(0x179))/0x9;if(_0x42a9c3===_0xc4f44a)break;else _0x3ade09['push'](_0x3ade09['shift']());}catch(_0x30004d){_0x3ade09['push'](_0x3ade09['shift']());}}}(a187_0x276f,0x4cf83));import{getEnv,isProduction}from'../constant/env.js';function a187_0x317b(_0x43d5f3,_0x3ee912){_0x43d5f3=_0x43d5f3-0x16c;const _0x276f76=a187_0x276f();let _0x317bc1=_0x276f76[_0x43d5f3];return _0x317bc1;}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1f9c70){const _0x351bb5=a187_0x317b;customApiDomain=_0x1f9c70?.[_0x351bb5(0x176)],customUserDomain=_0x1f9c70?.[_0x351bb5(0x17f)],customRuntimeDomain=_0x1f9c70?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x255935(0x180):a187_0x255935(0x174));function a187_0x276f(){const _0x4afe1b=['userDomain','https://user.lovrabet.com','2912515hiZgoF','42526aASqKj','/web-app/app/','2969666vZFdIG','4507584VWRqjr','trim','https://daily-api.lovrabet.com','https://daily.lovrabet.com','https://runtime.lovrabet.com','https://user-daily.lovrabet.com','1848188bxfdYK','apiDomain','https://app.lovrabet.com','19Jhikqp','920547SQhGcs','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','859785ZipAwG','6jcaPOT','/app/'];a187_0x276f=function(){return _0x4afe1b;};return a187_0x276f();}export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x255935(0x17a):a187_0x255935(0x171));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x255935(0x173):a187_0x255935(0x17b));export const getAppDomain=()=>isProduction(getEnv())?a187_0x255935(0x177):a187_0x255935(0x172);export const getAppBaseUrl=_0x3001f4=>{const _0x8c0ff6=a187_0x255935,_0x933960=encodeURIComponent(_0x3001f4[_0x8c0ff6(0x170)]());return isProduction(getEnv())?getAppDomain()+_0x8c0ff6(0x17e)+_0x933960:getAppDomain()+_0x8c0ff6(0x16d)+_0x933960;};
@@ -1 +1 @@
1
- const a188_0x333a6e=a188_0x5bdd;(function(_0x350049,_0x13d1eb){const _0x2416c2=a188_0x5bdd,_0x5cdfda=_0x350049();while(!![]){try{const _0x403758=parseInt(_0x2416c2(0x1be))/0x1+-parseInt(_0x2416c2(0x1b3))/0x2*(parseInt(_0x2416c2(0x1b1))/0x3)+-parseInt(_0x2416c2(0x1b6))/0x4*(-parseInt(_0x2416c2(0x1b2))/0x5)+-parseInt(_0x2416c2(0x1bb))/0x6+-parseInt(_0x2416c2(0x1b5))/0x7+parseInt(_0x2416c2(0x1bf))/0x8*(parseInt(_0x2416c2(0x1b9))/0x9)+parseInt(_0x2416c2(0x1b8))/0xa;if(_0x403758===_0x13d1eb)break;else _0x5cdfda['push'](_0x5cdfda['shift']());}catch(_0xa386ad){_0x5cdfda['push'](_0x5cdfda['shift']());}}}(a188_0x1899,0xb19dd));export const RABETBASE_ENV_VALUES=[a188_0x333a6e(0x1b4),a188_0x333a6e(0x1b7)];export function normalizeEnv(_0x353e74){const _0x329169=a188_0x333a6e;return _0x353e74===_0x329169(0x1bd)?_0x329169(0x1b4):_0x353e74;}export function isProduction(_0x5a88de){const _0x452d1f=a188_0x333a6e;return normalizeEnv(_0x5a88de)===_0x452d1f(0x1b4);}export function isDaily(_0xa90595){const _0x52de56=a188_0x333a6e;return normalizeEnv(_0xa90595)===_0x52de56(0x1b7);}export function isDev(_0x41faa2){const _0x42e595=a188_0x333a6e,_0x636d6=normalizeEnv(_0x41faa2);return _0x636d6===_0x42e595(0x1bc)||_0x636d6===_0x42e595(0x1ba);}function a188_0x5bdd(_0x13e834,_0x31cef6){_0x13e834=_0x13e834-0x1b1;const _0x189990=a188_0x1899();let _0x5bdddf=_0x189990[_0x13e834];return _0x5bdddf;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x333a6e(0x1b4));function a188_0x1899(){const _0x4bb6bf=['968823bxzEDR','39305YUdCLJ','4GKCcHB','production','3053057AfiRQt','4etPilm','daily','19471270YgJiqk','18vXtQEd','dev','8515584DRHeRL','development','online','790540JtCYyq','1933144EVWytF'];a188_0x1899=function(){return _0x4bb6bf;};return a188_0x1899();}export function getEnv(){return env;}export function initEnv(_0x37d9ff){env=normalizeEnv(_0x37d9ff);}
1
+ const a188_0x210ef5=a188_0x5130;(function(_0x107ad5,_0x332b98){const _0x4dbb46=a188_0x5130,_0x3ed43a=_0x107ad5();while(!![]){try{const _0x143a44=-parseInt(_0x4dbb46(0x109))/0x1*(parseInt(_0x4dbb46(0x107))/0x2)+parseInt(_0x4dbb46(0xfd))/0x3+-parseInt(_0x4dbb46(0xfe))/0x4+-parseInt(_0x4dbb46(0x106))/0x5+parseInt(_0x4dbb46(0x102))/0x6+parseInt(_0x4dbb46(0x100))/0x7+parseInt(_0x4dbb46(0xff))/0x8*(-parseInt(_0x4dbb46(0x103))/0x9);if(_0x143a44===_0x332b98)break;else _0x3ed43a['push'](_0x3ed43a['shift']());}catch(_0x330638){_0x3ed43a['push'](_0x3ed43a['shift']());}}}(a188_0x5cf5,0xbf81d));export const RABETBASE_ENV_VALUES=[a188_0x210ef5(0x104),a188_0x210ef5(0x108)];function a188_0x5cf5(){const _0x3896d1=['7293062RatHTB','online','1869882UOyebl','405wQAGFa','production','dev','5780055qwmspc','134354ZAWPEo','daily','3AFgOuz','4215120veHJDk','836492tMfUwb','72440nNMcmA'];a188_0x5cf5=function(){return _0x3896d1;};return a188_0x5cf5();}export function normalizeEnv(_0x3aec29){const _0x54c5ff=a188_0x210ef5;return _0x3aec29===_0x54c5ff(0x101)?_0x54c5ff(0x104):_0x3aec29;}export function isProduction(_0x4d9af7){const _0x39fa8f=a188_0x210ef5;return normalizeEnv(_0x4d9af7)===_0x39fa8f(0x104);}export function isDaily(_0xe60fac){const _0x564ec6=a188_0x210ef5;return normalizeEnv(_0xe60fac)===_0x564ec6(0x108);}export function isDev(_0x1ed2e4){const _0x403dd9=a188_0x210ef5,_0x53a224=normalizeEnv(_0x1ed2e4);return _0x53a224==='development'||_0x53a224===_0x403dd9(0x105);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x210ef5(0x104));function a188_0x5130(_0x2fb6de,_0x3f46bf){_0x2fb6de=_0x2fb6de-0xfd;const _0x5cf57b=a188_0x5cf5();let _0x5130ef=_0x5cf57b[_0x2fb6de];return _0x5130ef;}export function getEnv(){return env;}export function initEnv(_0x2eb1ae){env=normalizeEnv(_0x2eb1ae);}
@@ -1 +1 @@
1
- function a189_0x3302(_0x106133,_0x362642){_0x106133=_0x106133-0x16f;const _0x38b8cd=a189_0x38b8();let _0x330272=_0x38b8cd[_0x106133];return _0x330272;}(function(_0x20bdb5,_0x249f30){const _0x53eefc=a189_0x3302,_0x6e0992=_0x20bdb5();while(!![]){try{const _0x26fe7=parseInt(_0x53eefc(0x177))/0x1+-parseInt(_0x53eefc(0x176))/0x2+-parseInt(_0x53eefc(0x174))/0x3+parseInt(_0x53eefc(0x173))/0x4*(-parseInt(_0x53eefc(0x170))/0x5)+parseInt(_0x53eefc(0x171))/0x6*(parseInt(_0x53eefc(0x175))/0x7)+parseInt(_0x53eefc(0x172))/0x8+parseInt(_0x53eefc(0x16f))/0x9;if(_0x26fe7===_0x249f30)break;else _0x6e0992['push'](_0x6e0992['shift']());}catch(_0x4a64c7){_0x6e0992['push'](_0x6e0992['shift']());}}}(a189_0x38b8,0x61391));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json','pretty','compress'];function a189_0x38b8(){const _0x240053=['828600jeZzZA','2538921iPPdfo','391882QhgzDL','435232lipwbe','4774104iJuHFf','1715sWAnzm','6QQckfB','514912HVjGWS','6092GSswfJ'];a189_0x38b8=function(){return _0x240053;};return a189_0x38b8();}
1
+ function a189_0x5b55(_0x2a675f,_0x28c4aa){_0x2a675f=_0x2a675f-0x118;const _0x75180d=a189_0x7518();let _0x5b55f7=_0x75180d[_0x2a675f];return _0x5b55f7;}const a189_0x20ec3e=a189_0x5b55;function a189_0x7518(){const _0x119b2a=['pretty','5042387VBcdKK','2241106FQDIun','15228560jyzRoI','1954110OcZkyu','755642OlDEIf','3546708PcCUCg','825366qcFRyC','compress','12AYFVWR'];a189_0x7518=function(){return _0x119b2a;};return a189_0x7518();}(function(_0x329a37,_0x391b2a){const _0x4d5df4=a189_0x5b55,_0x45330d=_0x329a37();while(!![]){try{const _0x135e59=parseInt(_0x4d5df4(0x11c))/0x1+-parseInt(_0x4d5df4(0x119))/0x2+parseInt(_0x4d5df4(0x11d))/0x3+-parseInt(_0x4d5df4(0x120))/0x4*(-parseInt(_0x4d5df4(0x11b))/0x5)+-parseInt(_0x4d5df4(0x11e))/0x6+parseInt(_0x4d5df4(0x118))/0x7+-parseInt(_0x4d5df4(0x11a))/0x8;if(_0x135e59===_0x391b2a)break;else _0x45330d['push'](_0x45330d['shift']());}catch(_0x4dcc70){_0x45330d['push'](_0x45330d['shift']());}}}(a189_0x7518,0xa3549));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a189_0x20ec3e(0x121),a189_0x20ec3e(0x11f)];
@@ -1 +1 @@
1
- function a190_0x8cf1(_0x267af0,_0x4a1af1){_0x267af0=_0x267af0-0x95;const _0x328656=a190_0x3286();let _0x8cf1e7=_0x328656[_0x267af0];return _0x8cf1e7;}const a190_0x4248cd=a190_0x8cf1;(function(_0x575bcd,_0x5c4f57){const _0x5d4956=a190_0x8cf1,_0x1c2f20=_0x575bcd();while(!![]){try{const _0x45e31c=parseInt(_0x5d4956(0x9b))/0x1*(parseInt(_0x5d4956(0x9c))/0x2)+parseInt(_0x5d4956(0x9f))/0x3*(parseInt(_0x5d4956(0xa1))/0x4)+-parseInt(_0x5d4956(0x99))/0x5+parseInt(_0x5d4956(0x9d))/0x6*(-parseInt(_0x5d4956(0x98))/0x7)+-parseInt(_0x5d4956(0x96))/0x8*(parseInt(_0x5d4956(0x9e))/0x9)+-parseInt(_0x5d4956(0x9a))/0xa+-parseInt(_0x5d4956(0xa0))/0xb*(-parseInt(_0x5d4956(0x95))/0xc);if(_0x45e31c===_0x5c4f57)break;else _0x1c2f20['push'](_0x1c2f20['shift']());}catch(_0x3f51d2){_0x1c2f20['push'](_0x1c2f20['shift']());}}}(a190_0x3286,0x2e9a2));export const DEFAULT_API_DIR=a190_0x4248cd(0x97);function a190_0x3286(){const _0x3e2a94=['1206854Armfyv','417348NSEGUd','84tWfIHS','225656dqvIAJ','./src/api','707fnzUsi','684390lbLrWT','222570iKXsoU','3GEcvsH','129020AhNTjC','20742eRtvDC','117tvFBZk','3aSZFxX'];a190_0x3286=function(){return _0x3e2a94;};return a190_0x3286();}
1
+ function a190_0x19ed(_0x377628,_0x4a8f12){_0x377628=_0x377628-0x196;const _0x2e93cb=a190_0x2e93();let _0x19edae=_0x2e93cb[_0x377628];return _0x19edae;}const a190_0x2e11f8=a190_0x19ed;function a190_0x2e93(){const _0x1f2ec5=['2537220JzfIXH','./src/api','1010432lGgwfv','3262362blBNMR','765079DvZhGp','4086504QrWPlV','54812DvYQzR','187974ntjmGt','138HENxJL'];a190_0x2e93=function(){return _0x1f2ec5;};return a190_0x2e93();}(function(_0x177f03,_0x2c2665){const _0x49708a=a190_0x19ed,_0x36e51b=_0x177f03();while(!![]){try{const _0x5a58c3=-parseInt(_0x49708a(0x19b))/0x1+-parseInt(_0x49708a(0x196))/0x2+parseInt(_0x49708a(0x19c))/0x3*(parseInt(_0x49708a(0x19a))/0x4)+parseInt(_0x49708a(0x19d))/0x5+parseInt(_0x49708a(0x197))/0x6+-parseInt(_0x49708a(0x198))/0x7+-parseInt(_0x49708a(0x199))/0x8;if(_0x5a58c3===_0x2c2665)break;else _0x36e51b['push'](_0x36e51b['shift']());}catch(_0x37c76d){_0x36e51b['push'](_0x36e51b['shift']());}}}(a190_0x2e93,0x59e51));export const DEFAULT_API_DIR=a190_0x2e11f8(0x19e);
@@ -1 +1 @@
1
- const a191_0x5b424b=a191_0x5dee;function a191_0x5dee(_0x3ef366,_0x5540b3){_0x3ef366=_0x3ef366-0x1a5;const _0x2e9231=a191_0x2e92();let _0x5dee53=_0x2e9231[_0x3ef366];return _0x5dee53;}function a191_0x2e92(){const _0x3fc963=['355462rkCFzl','5UAUdLz','1317016qKTqmo','1256124YXoGNv','high-risk-write','write','3rhepsu','4402265REYRLq','36JZQWxU','7546920TjusLP','1196064drYZeP','read','1463090dJorSm'];a191_0x2e92=function(){return _0x3fc963;};return a191_0x2e92();}(function(_0x1eec0d,_0x4731d6){const _0x2a709c=a191_0x5dee,_0x5aee96=_0x1eec0d();while(!![]){try{const _0x58606d=parseInt(_0x2a709c(0x1b0))/0x1*(parseInt(_0x2a709c(0x1aa))/0x2)+-parseInt(_0x2a709c(0x1a7))/0x3+parseInt(_0x2a709c(0x1ac))/0x4*(parseInt(_0x2a709c(0x1ab))/0x5)+-parseInt(_0x2a709c(0x1ad))/0x6+parseInt(_0x2a709c(0x1b1))/0x7+-parseInt(_0x2a709c(0x1a6))/0x8+-parseInt(_0x2a709c(0x1a5))/0x9*(-parseInt(_0x2a709c(0x1a9))/0xa);if(_0x58606d===_0x4731d6)break;else _0x5aee96['push'](_0x5aee96['shift']());}catch(_0x2890a3){_0x5aee96['push'](_0x5aee96['shift']());}}}(a191_0x2e92,0x80373));export const RISK_LEVEL_VALUES=[a191_0x5b424b(0x1a8),a191_0x5b424b(0x1af),a191_0x5b424b(0x1ae)];
1
+ function a191_0xb405(){const _0x25488=['1118464JmVNJC','13989QAbpAl','324pMRUpz','6020124eGMfno','9zDrktC','947384CTmDxL','4793838giwHsm','3483425ClZuZN','646632OyRGlk','high-risk-write'];a191_0xb405=function(){return _0x25488;};return a191_0xb405();}const a191_0x3879ff=a191_0x2f30;(function(_0x3b5c6b,_0x5510ec){const _0x38ee32=a191_0x2f30,_0x1efe4a=_0x3b5c6b();while(!![]){try{const _0x21c0b2=-parseInt(_0x38ee32(0x79))/0x1+parseInt(_0x38ee32(0x74))/0x2+parseInt(_0x38ee32(0x7a))/0x3*(parseInt(_0x38ee32(0x71))/0x4)+-parseInt(_0x38ee32(0x76))/0x5+parseInt(_0x38ee32(0x72))/0x6+parseInt(_0x38ee32(0x75))/0x7+parseInt(_0x38ee32(0x77))/0x8*(parseInt(_0x38ee32(0x73))/0x9);if(_0x21c0b2===_0x5510ec)break;else _0x1efe4a['push'](_0x1efe4a['shift']());}catch(_0x27ed70){_0x1efe4a['push'](_0x1efe4a['shift']());}}}(a191_0xb405,0xc498f));function a191_0x2f30(_0x20541b,_0x415dcd){_0x20541b=_0x20541b-0x71;const _0xb4052a=a191_0xb405();let _0x2f3003=_0xb4052a[_0x20541b];return _0x2f3003;}export const RISK_LEVEL_VALUES=['read','write',a191_0x3879ff(0x78)];
@@ -1 +1 @@
1
- (function(_0x477086,_0x17686a){const _0xb31e4=a192_0xa0ab,_0x4a6175=_0x477086();while(!![]){try{const _0x2f03ae=-parseInt(_0xb31e4(0x130))/0x1*(-parseInt(_0xb31e4(0x13f))/0x2)+parseInt(_0xb31e4(0x131))/0x3*(parseInt(_0xb31e4(0x13d))/0x4)+parseInt(_0xb31e4(0x133))/0x5*(parseInt(_0xb31e4(0x14b))/0x6)+-parseInt(_0xb31e4(0x145))/0x7+parseInt(_0xb31e4(0x147))/0x8+-parseInt(_0xb31e4(0x149))/0x9+-parseInt(_0xb31e4(0x14f))/0xa;if(_0x2f03ae===_0x17686a)break;else _0x4a6175['push'](_0x4a6175['shift']());}catch(_0x288346){_0x4a6175['push'](_0x4a6175['shift']());}}}(a192_0x38ca,0x764f8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a192_0x38ca(){const _0x4cab75=['production','900109CNnclN','FORMAT','4830488KIqoSg','riskLevel','8222130NQuhnv','env','6lRRmeZ','inherit','keys','daily','11631960KVJgWO','pageSize','accessKey','string','defaultApp','length','locale','RISK_LEVEL','maxRisk','globalConfig','trim','write','229GoAgAf','2681043UvElwC','MAX_RISK','4174960zEwzhm','apiDir','format','appcode','object','ENV','cookie','read','apps','app','4WKbouU','VERBOSE','3122SVAdKV','find','PAGE_SIZE','entries','true'];a192_0x38ca=function(){return _0x4cab75;};return a192_0x38ca();}import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x19de16){const _0x420d15=a192_0xa0ab;return typeof _0x19de16===_0x420d15(0x127)&&_0x19de16[_0x420d15(0x12e)]()?_0x19de16[_0x420d15(0x12e)]():undefined;}function appProfiles(_0x24ca20){const _0x5abbea=a192_0xa0ab;return _0x24ca20[_0x5abbea(0x13b)]&&typeof _0x24ca20[_0x5abbea(0x13b)]===_0x5abbea(0x137)?_0x24ca20[_0x5abbea(0x13b)]:{};}function resolveDefaultAppName(_0x275cf3){const _0x2490fc=a192_0xa0ab,_0x35be39=stringConfigValue(_0x275cf3[_0x2490fc(0x128)]);if(_0x35be39)return _0x35be39;return Object[_0x2490fc(0x14d)](appProfiles(_0x275cf3))[0x0];}function resolveTopLevelAppCode(_0x304924){const _0x5c88e1=a192_0xa0ab;return stringConfigValue(_0x304924[_0x5c88e1(0x136)])||stringConfigValue(_0x304924[_0x5c88e1(0x13c)]);}function a192_0xa0ab(_0x2b010b,_0x5e4405){_0x2b010b=_0x2b010b-0x126;const _0x38cad3=a192_0x38ca();let _0xa0ab5d=_0x38cad3[_0x2b010b];return _0xa0ab5d;}export function resolveAppConfig({raw:_0x3fad77,flags:_0xd758c8,layers:_0x4de036,readEnv:_0xb1ddd4}){const _0x5e08f1=a192_0xa0ab,_0x5abe31=_0x4de036?.['projectConfig']??{},_0x1f091c=_0x4de036?.[_0x5e08f1(0x12d)]??{},_0xfd7515=Object[_0x5e08f1(0x14d)](_0x5abe31)[_0x5e08f1(0x129)]>0x0,_0x2343f7=!_0xfd7515||_0x5abe31[_0x5e08f1(0x14c)]===!![],_0x198f5b=_0xfd7515?resolveDefaultAppName(_0x5abe31):undefined,_0x4ba850=_0x2343f7?resolveDefaultAppName(_0x1f091c):undefined,_0x12b4b4=stringConfigValue(_0xd758c8['app']),_0x4f554f=_0xb1ddd4('APP'),_0x4b0704={};if(_0x3fad77[_0x5e08f1(0x13b)]&&typeof _0x3fad77['apps']===_0x5e08f1(0x137))for(const [_0x67faee,_0x30a7a0]of Object[_0x5e08f1(0x142)](_0x3fad77[_0x5e08f1(0x13b)])){_0x30a7a0&&typeof _0x30a7a0===_0x5e08f1(0x137)&&_0x30a7a0['appcode']&&(_0x4b0704[_0x67faee]=_0x30a7a0);}const _0x8c6bf1=_0x3fad77['defaultApp']||undefined,_0x2e5ccb=Object[_0x5e08f1(0x14d)](_0x4b0704)[_0x5e08f1(0x129)]>0x0,_0x21ccfd=_0x12b4b4||_0x198f5b||_0x4f554f||_0x4ba850||_0x8c6bf1||undefined,_0x3a235e=stringConfigValue(_0xd758c8[_0x5e08f1(0x136)]),_0x2dfdba=_0x3a235e?Object[_0x5e08f1(0x142)](_0x4b0704)[_0x5e08f1(0x140)](([,_0x6baa37])=>_0x6baa37?.[_0x5e08f1(0x136)]===_0x3a235e):undefined,_0x588923=_0x2dfdba?.[0x0],_0x1ad0d5=_0x2dfdba?.[0x1],_0x1be1f3=_0x3a235e?_0x588923:_0x21ccfd;let _0x209298=_0x1be1f3&&_0x4b0704[_0x1be1f3]?_0x4b0704[_0x1be1f3]:undefined;_0x3a235e&&_0x1ad0d5&&(_0x209298=_0x1ad0d5);const _0x48e940=_0x3a235e?_0x1ad0d5??_0x209298:_0x209298,_0x4979aa=!_0x12b4b4&&!_0x198f5b&&_0x4f554f&&_0x1be1f3===_0x4f554f,_0x793a42=_0x12b4b4||(_0x4979aa?_0x4f554f:undefined)||(_0x3a235e?_0x588923:undefined),_0x4c2606=_0x48e940?.[_0x5e08f1(0x136)],_0x270104=_0xfd7515?resolveTopLevelAppCode(_0x5abe31):undefined,_0x28681d=_0x2343f7?resolveTopLevelAppCode(_0x1f091c):undefined,_0x4948b7=_0x12b4b4||_0x198f5b?_0x4c2606:undefined,_0x2db83a=!_0x12b4b4&&!_0x198f5b?_0x4c2606:undefined,_0xa1c69f=_0x3a235e||_0x4948b7||_0x270104||_0x2db83a||_0x28681d||undefined,_0x157334=_0xfd7515?stringConfigValue(_0x5abe31[_0x5e08f1(0x14a)]):undefined,_0x27458f=_0x2343f7?stringConfigValue(_0x1f091c[_0x5e08f1(0x14a)]):undefined,_0x4bd40a=_0xd758c8[_0x5e08f1(0x14a)]||_0x48e940?.[_0x5e08f1(0x14a)]||_0x157334||_0xb1ddd4(_0x5e08f1(0x138))||_0x27458f||_0x3fad77[_0x5e08f1(0x14a)]||DEFAULT_CONFIG_VALUES[_0x5e08f1(0x14a)],_0x326540=_0x48e940?.['locale']||_0x3fad77[_0x5e08f1(0x12a)]||DEFAULT_CONFIG_VALUES[_0x5e08f1(0x12a)],_0x2c4d0f=_0xb1ddd4('COOKIE')||_0x48e940?.[_0x5e08f1(0x139)]||_0x3fad77['cookie']||undefined,_0x276374=_0xb1ddd4('ACCESS_KEY')||_0x48e940?.[_0x5e08f1(0x126)]||_0x3fad77['accessKey']||undefined,_0x34f14e=_0xd758c8['format']||_0xb1ddd4(_0x5e08f1(0x146))||_0x48e940?.[_0x5e08f1(0x135)]||_0x3fad77['format'],_0x154e74=normalizeLegacyOutputFormat(_0x34f14e),_0x45ec79=_0xb1ddd4(_0x5e08f1(0x141))||_0x48e940?.[_0x5e08f1(0x150)]||_0x3fad77[_0x5e08f1(0x150)],_0x3d0bcf=_0x45ec79?Number(_0x45ec79)||undefined:undefined,_0x5856ab=_0xb1ddd4(_0x5e08f1(0x12b))||_0xb1ddd4(_0x5e08f1(0x132))||_0x48e940?.[_0x5e08f1(0x148)]||_0x3fad77[_0x5e08f1(0x148)]||_0x3fad77[_0x5e08f1(0x12c)],_0x36f20f=_0x5856ab===_0x5e08f1(0x13a)||_0x5856ab===_0x5e08f1(0x12f)?_0x5856ab:DEFAULT_CONFIG_VALUES[_0x5e08f1(0x148)],_0x1564cf=_0xb1ddd4(_0x5e08f1(0x13e)),_0x73d40f=_0x1564cf==='1'||_0x1564cf===_0x5e08f1(0x143),_0x345428=_0x48e940?.[_0x5e08f1(0x134)]||_0x3fad77['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x2ef8f0=isDaily(normalizeEnv(String(_0x4bd40a)))?_0x5e08f1(0x14e):_0x5e08f1(0x144);return{'appCode':typeof _0xa1c69f==='string'&&_0xa1c69f[_0x5e08f1(0x12e)]()?_0xa1c69f['trim']():undefined,'env':_0x2ef8f0,'locale':_0x326540,'cookie':_0x2c4d0f,'accessKey':_0x276374,'format':_0x154e74,'pageSize':_0x3d0bcf,'riskLevel':_0x36f20f,'verbose':_0x73d40f,'apiDir':_0x345428,'apps':_0x4b0704,'defaultApp':_0x8c6bf1,'currentApp':_0x2e5ccb?_0x1be1f3:undefined,'explicitAppName':_0x793a42};}
1
+ (function(_0x3c3385,_0x2b6943){const _0x4b99d5=a192_0x20ea,_0x3b668f=_0x3c3385();while(!![]){try{const _0x200661=-parseInt(_0x4b99d5(0xec))/0x1+-parseInt(_0x4b99d5(0x109))/0x2+-parseInt(_0x4b99d5(0x115))/0x3*(parseInt(_0x4b99d5(0x10b))/0x4)+parseInt(_0x4b99d5(0x10e))/0x5*(-parseInt(_0x4b99d5(0xfc))/0x6)+-parseInt(_0x4b99d5(0xe9))/0x7*(-parseInt(_0x4b99d5(0xf7))/0x8)+-parseInt(_0x4b99d5(0xfe))/0x9+parseInt(_0x4b99d5(0xf4))/0xa*(parseInt(_0x4b99d5(0xf1))/0xb);if(_0x200661===_0x2b6943)break;else _0x3b668f['push'](_0x3b668f['shift']());}catch(_0x247338){_0x3b668f['push'](_0x3b668f['shift']());}}}(a192_0x2b11,0xa3046));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a192_0x20ea(_0x40e2de,_0x445e8d){_0x40e2de=_0x40e2de-0xe9;const _0x2b11dd=a192_0x2b11();let _0x20ea38=_0x2b11dd[_0x40e2de];return _0x20ea38;}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x5ac1be){const _0x4746b8=a192_0x20ea;return typeof _0x5ac1be==='string'&&_0x5ac1be[_0x4746b8(0xed)]()?_0x5ac1be['trim']():undefined;}function appProfiles(_0x403133){const _0x324b6a=a192_0x20ea;return _0x403133[_0x324b6a(0x112)]&&typeof _0x403133[_0x324b6a(0x112)]==='object'?_0x403133[_0x324b6a(0x112)]:{};}function a192_0x2b11(){const _0xbc79e0=['APP','read','40LxMbYM','VERBOSE','riskLevel','ENV','defaultApp','5779086SXpBNz','apiDir','7796691xmxxDD','maxRisk','string','accessKey','app','MAX_RISK','pageSize','keys','object','cookie','production','1171924lTyvvN','entries','39876bsOKjK','write','RISK_LEVEL','5EpADEa','globalConfig','locale','inherit','apps','true','appcode','6sMmpHj','1003170IrIZdQ','env','find','74196JeWDIO','trim','format','length','COOKIE','410124MJDArB','projectConfig','daily','660PsdBli'];a192_0x2b11=function(){return _0xbc79e0;};return a192_0x2b11();}function resolveDefaultAppName(_0x6d2f54){const _0x8f1b51=a192_0x20ea,_0x1a07b8=stringConfigValue(_0x6d2f54['defaultApp']);if(_0x1a07b8)return _0x1a07b8;return Object[_0x8f1b51(0x105)](appProfiles(_0x6d2f54))[0x0];}function resolveTopLevelAppCode(_0x3306ee){const _0xd07dba=a192_0x20ea;return stringConfigValue(_0x3306ee[_0xd07dba(0x114)])||stringConfigValue(_0x3306ee[_0xd07dba(0x102)]);}export function resolveAppConfig({raw:_0x34a1bc,flags:_0x30a5c2,layers:_0x17ae67,readEnv:_0x200442}){const _0x5e9c72=a192_0x20ea,_0x542737=_0x17ae67?.[_0x5e9c72(0xf2)]??{},_0x114110=_0x17ae67?.[_0x5e9c72(0x10f)]??{},_0x55a55e=Object['keys'](_0x542737)[_0x5e9c72(0xef)]>0x0,_0x27fe48=!_0x55a55e||_0x542737[_0x5e9c72(0x111)]===!![],_0x318457=_0x55a55e?resolveDefaultAppName(_0x542737):undefined,_0x5d98ca=_0x27fe48?resolveDefaultAppName(_0x114110):undefined,_0x146cd2=stringConfigValue(_0x30a5c2[_0x5e9c72(0x102)]),_0xce1ae1=_0x200442(_0x5e9c72(0xf5)),_0x180987={};if(_0x34a1bc[_0x5e9c72(0x112)]&&typeof _0x34a1bc[_0x5e9c72(0x112)]===_0x5e9c72(0x106))for(const [_0x44810b,_0x97b7cc]of Object['entries'](_0x34a1bc[_0x5e9c72(0x112)])){_0x97b7cc&&typeof _0x97b7cc===_0x5e9c72(0x106)&&_0x97b7cc[_0x5e9c72(0x114)]&&(_0x180987[_0x44810b]=_0x97b7cc);}const _0x60c686=_0x34a1bc[_0x5e9c72(0xfb)]||undefined,_0x31a786=Object['keys'](_0x180987)[_0x5e9c72(0xef)]>0x0,_0x27946e=_0x146cd2||_0x318457||_0xce1ae1||_0x5d98ca||_0x60c686||undefined,_0x2ed143=stringConfigValue(_0x30a5c2[_0x5e9c72(0x114)]),_0x3b0ef0=_0x2ed143?Object[_0x5e9c72(0x10a)](_0x180987)[_0x5e9c72(0xeb)](([,_0x55be23])=>_0x55be23?.[_0x5e9c72(0x114)]===_0x2ed143):undefined,_0x5e524c=_0x3b0ef0?.[0x0],_0x3b775a=_0x3b0ef0?.[0x1],_0x34c55a=_0x2ed143?_0x5e524c:_0x27946e;let _0x2a5727=_0x34c55a&&_0x180987[_0x34c55a]?_0x180987[_0x34c55a]:undefined;_0x2ed143&&_0x3b775a&&(_0x2a5727=_0x3b775a);const _0x5729f9=_0x2ed143?_0x3b775a??_0x2a5727:_0x2a5727,_0x442773=!_0x146cd2&&!_0x318457&&_0xce1ae1&&_0x34c55a===_0xce1ae1,_0x520de2=_0x146cd2||(_0x442773?_0xce1ae1:undefined)||(_0x2ed143?_0x5e524c:undefined),_0x4df1de=_0x5729f9?.[_0x5e9c72(0x114)],_0x301b69=_0x55a55e?resolveTopLevelAppCode(_0x542737):undefined,_0x21b9ae=_0x27fe48?resolveTopLevelAppCode(_0x114110):undefined,_0x1e0b38=_0x146cd2||_0x318457?_0x4df1de:undefined,_0x4b0491=!_0x146cd2&&!_0x318457?_0x4df1de:undefined,_0x13853a=_0x2ed143||_0x1e0b38||_0x301b69||_0x4b0491||_0x21b9ae||undefined,_0x466c2f=_0x55a55e?stringConfigValue(_0x542737[_0x5e9c72(0xea)]):undefined,_0x3660b0=_0x27fe48?stringConfigValue(_0x114110[_0x5e9c72(0xea)]):undefined,_0x2fd6c9=_0x30a5c2[_0x5e9c72(0xea)]||_0x5729f9?.[_0x5e9c72(0xea)]||_0x466c2f||_0x200442(_0x5e9c72(0xfa))||_0x3660b0||_0x34a1bc[_0x5e9c72(0xea)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xea)],_0x1b8e38=_0x5729f9?.[_0x5e9c72(0x110)]||_0x34a1bc[_0x5e9c72(0x110)]||DEFAULT_CONFIG_VALUES['locale'],_0x4e5c89=_0x200442(_0x5e9c72(0xf0))||_0x5729f9?.[_0x5e9c72(0x107)]||_0x34a1bc[_0x5e9c72(0x107)]||undefined,_0x40cc24=_0x200442('ACCESS_KEY')||_0x5729f9?.[_0x5e9c72(0x101)]||_0x34a1bc[_0x5e9c72(0x101)]||undefined,_0x2acf7a=_0x30a5c2['format']||_0x200442('FORMAT')||_0x5729f9?.[_0x5e9c72(0xee)]||_0x34a1bc[_0x5e9c72(0xee)],_0x1ff2ef=normalizeLegacyOutputFormat(_0x2acf7a),_0x48d433=_0x200442('PAGE_SIZE')||_0x5729f9?.[_0x5e9c72(0x104)]||_0x34a1bc['pageSize'],_0x4b9e34=_0x48d433?Number(_0x48d433)||undefined:undefined,_0x5798a7=_0x200442(_0x5e9c72(0x10d))||_0x200442(_0x5e9c72(0x103))||_0x5729f9?.['riskLevel']||_0x34a1bc[_0x5e9c72(0xf9)]||_0x34a1bc[_0x5e9c72(0xff)],_0x14ea7d=_0x5798a7===_0x5e9c72(0xf6)||_0x5798a7===_0x5e9c72(0x10c)?_0x5798a7:DEFAULT_CONFIG_VALUES[_0x5e9c72(0xf9)],_0x3ed65e=_0x200442(_0x5e9c72(0xf8)),_0x1fde1c=_0x3ed65e==='1'||_0x3ed65e===_0x5e9c72(0x113),_0x145008=_0x5729f9?.[_0x5e9c72(0xfd)]||_0x34a1bc[_0x5e9c72(0xfd)]||DEFAULT_CONFIG_VALUES[_0x5e9c72(0xfd)],_0x3270e0=isDaily(normalizeEnv(String(_0x2fd6c9)))?_0x5e9c72(0xf3):_0x5e9c72(0x108);return{'appCode':typeof _0x13853a===_0x5e9c72(0x100)&&_0x13853a[_0x5e9c72(0xed)]()?_0x13853a[_0x5e9c72(0xed)]():undefined,'env':_0x3270e0,'locale':_0x1b8e38,'cookie':_0x4e5c89,'accessKey':_0x40cc24,'format':_0x1ff2ef,'pageSize':_0x4b9e34,'riskLevel':_0x14ea7d,'verbose':_0x1fde1c,'apiDir':_0x145008,'apps':_0x180987,'defaultApp':_0x60c686,'currentApp':_0x31a786?_0x34c55a:undefined,'explicitAppName':_0x520de2};}
@@ -1 +1 @@
1
- (function(_0x23028f,_0x4b16a4){const _0x1c8b13=a193_0x5281,_0x56ad10=_0x23028f();while(!![]){try{const _0x56c8f8=parseInt(_0x1c8b13(0x1c7))/0x1*(parseInt(_0x1c8b13(0x1c5))/0x2)+parseInt(_0x1c8b13(0x1c6))/0x3*(-parseInt(_0x1c8b13(0x1bd))/0x4)+-parseInt(_0x1c8b13(0x1c4))/0x5*(parseInt(_0x1c8b13(0x1c2))/0x6)+parseInt(_0x1c8b13(0x1c9))/0x7*(parseInt(_0x1c8b13(0x1bf))/0x8)+-parseInt(_0x1c8b13(0x1c8))/0x9*(parseInt(_0x1c8b13(0x1c3))/0xa)+-parseInt(_0x1c8b13(0x1bc))/0xb+parseInt(_0x1c8b13(0x1c0))/0xc;if(_0x56c8f8===_0x4b16a4)break;else _0x56ad10['push'](_0x56ad10['shift']());}catch(_0x109bf1){_0x56ad10['push'](_0x56ad10['shift']());}}}(a193_0x4d2f,0x6d734));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x5281(_0x4e3d86,_0x52dfb0){_0x4e3d86=_0x4e3d86-0x1bc;const _0x4d2f91=a193_0x4d2f();let _0x52816b=_0x4d2f91[_0x4e3d86];return _0x52816b;}function a193_0x4d2f(){const _0x4b4e93=['../auth/get-cookie.js','6VuxMke','42610qMqpnb','2404795ZfhVzq','12602BQWDaK','514149OiNddW','46QzVXWQ','1593HzJFbz','4472776RhiYXb','8004942qyvxqW','4CuMAfe','cookie','8yoNtJg','19845060FPRPkb'];a193_0x4d2f=function(){return _0x4b4e93;};return a193_0x4d2f();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x13d5ee){const _0x3fdaef=a193_0x5281,{getCookie:_0x4e9dd3}=await import(_0x3fdaef(0x1c1)),_0xffc76e=_0x13d5ee[_0x3fdaef(0x1be)]||_0x4e9dd3(),_0x39a7bb=_0xffc76e?await getIsSessionValid():![];return{'cookie':_0xffc76e,'isLoggedIn':_0x39a7bb,async 'getOrLogin'(){if(_0xffc76e&&_0x39a7bb)return _0xffc76e;throw CliErrors['authRequired']();}};}
1
+ (function(_0x3bb183,_0x4a64c9){const _0x11e00a=a193_0x2cba,_0x3d3322=_0x3bb183();while(!![]){try{const _0x283fdf=parseInt(_0x11e00a(0xaa))/0x1+-parseInt(_0x11e00a(0xa2))/0x2+-parseInt(_0x11e00a(0xab))/0x3+parseInt(_0x11e00a(0xa6))/0x4+parseInt(_0x11e00a(0xa5))/0x5+parseInt(_0x11e00a(0xa4))/0x6*(parseInt(_0x11e00a(0xa9))/0x7)+-parseInt(_0x11e00a(0xa3))/0x8;if(_0x283fdf===_0x4a64c9)break;else _0x3d3322['push'](_0x3d3322['shift']());}catch(_0x39d6a4){_0x3d3322['push'](_0x3d3322['shift']());}}}(a193_0x56cc,0xc0392));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x2cba(_0x328891,_0x5da646){_0x328891=_0x328891-0xa2;const _0x56cce9=a193_0x56cc();let _0x2cbae3=_0x56cce9[_0x328891];return _0x2cbae3;}function a193_0x56cc(){const _0x502139=['2528352xOzsMz','100602TiKrHn','6392090cjGoNW','2558692ioXkOc','cookie','authRequired','28SRRsja','1409291oNVfMa','2984376bqCvYf','../auth/get-cookie.js','2592536lpXCZB'];a193_0x56cc=function(){return _0x502139;};return a193_0x56cc();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x5c7d44){const _0x21e089=a193_0x2cba,{getCookie:_0xa77a6d}=await import(_0x21e089(0xac)),_0x5b958b=_0x5c7d44[_0x21e089(0xa7)]||_0xa77a6d(),_0x53c621=_0x5b958b?await getIsSessionValid():![];return{'cookie':_0x5b958b,'isLoggedIn':_0x53c621,async 'getOrLogin'(){const _0x59f051=_0x21e089;if(_0x5b958b&&_0x53c621)return _0x5b958b;throw CliErrors[_0x59f051(0xa8)]();}};}