@lovrabet/rabetbase-cli 2.3.10 → 2.3.11-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 -0
  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 a176_0x455c0e=a176_0x3403;(function(_0xa9d07a,_0x380034){const _0x15beba=a176_0x3403,_0x33fe5d=_0xa9d07a();while(!![]){try{const _0x2a44a6=parseInt(_0x15beba(0xeb))/0x1+-parseInt(_0x15beba(0xdf))/0x2+parseInt(_0x15beba(0xff))/0x3+parseInt(_0x15beba(0xec))/0x4*(-parseInt(_0x15beba(0xee))/0x5)+parseInt(_0x15beba(0x105))/0x6*(-parseInt(_0x15beba(0xd8))/0x7)+-parseInt(_0x15beba(0xe5))/0x8*(-parseInt(_0x15beba(0x100))/0x9)+-parseInt(_0x15beba(0xf1))/0xa*(-parseInt(_0x15beba(0xd6))/0xb);if(_0x2a44a6===_0x380034)break;else _0x33fe5d['push'](_0x33fe5d['shift']());}catch(_0x2c1b1d){_0x33fe5d['push'](_0x33fe5d['shift']());}}}(a176_0x18b5,0xf0c7b));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a176_0x18b5(){const _0x1828e2=['3125hIFOrD','str','appCode','60NfcCCK','sql','index_columns','fields','indexes','validate','--check-indexes\x20requires\x20--schemas.','columnNames','SQL\x20schema\x20validation','indexName','Table\x20\x22','isDangerous','primary','unshift','4955109ovrVDz','6975yVdblo','Dataset\x20\x22','size','utf-8','flagMissing','12SDroWM','message','read','trim','schemas','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','flatMap','from','valid','map','find','Provide\x20--file\x20or\x20--sql','cwd','toLowerCase','index_name','check-indexes','pkField','validation','split','push','schemaWarnings','File\x20not\x20found:\x20','sqlType','dbtableConfig','2211649ZndnNM','boolean','6829193mmIDqD','dataset','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','isArray','length','columns','tables','1994026NyCzFr','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','\x22\x20not\x20found\x20in\x20any\x20dataset','reason','string','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','11080kywPbL','type','filter','name','file','tableName','1806139EHjhgZ','11540RpsSTR','bool'];a176_0x18b5=function(){return _0x1828e2;};return a176_0x18b5();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a176_0x3403(_0x51affc,_0x353924){_0x51affc=_0x51affc-0xce;const _0x18b57b=a176_0x18b5();let _0x34037f=_0x18b57b[_0x51affc];return _0x34037f;}export const sqlValidate={'service':a176_0x455c0e(0xf2),'command':a176_0x455c0e(0xf6),'description':a176_0x455c0e(0xe4),'risk':a176_0x455c0e(0x107),'flags':[{'name':a176_0x455c0e(0xe9),'type':'string','description':a176_0x455c0e(0xda)},{'name':a176_0x455c0e(0xf2),'type':'string','description':a176_0x455c0e(0x10a)},{'name':a176_0x455c0e(0x109),'type':a176_0x455c0e(0xe3),'description':a176_0x455c0e(0xe0)},{'name':a176_0x455c0e(0x114),'type':a176_0x455c0e(0xd7),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x378419){const _0x1581a8=a176_0x455c0e,_0x5b2a06=_0x378419['str']('file'),_0x7f92b5=_0x378419[_0x1581a8(0xef)](_0x1581a8(0xf2)),_0x36ad41=_0x378419[_0x1581a8(0xef)](_0x1581a8(0x109)),_0x42c60a=_0x378419[_0x1581a8(0xed)](_0x1581a8(0x114));if(!_0x5b2a06&&!_0x7f92b5)throw CliErrors[_0x1581a8(0x104)](_0x1581a8(0xe9),_0x1581a8(0x110));if(_0x42c60a&&!_0x36ad41)throw CliErrors[_0x1581a8(0xcf)](_0x1581a8(0xf7));let _0xf9a903;if(_0x5b2a06){const _0x4dd49e=resolve(process[_0x1581a8(0x111)](),_0x5b2a06);if(!existsSync(_0x4dd49e))throw CliErrors['validation'](_0x1581a8(0xd3)+_0x4dd49e);_0xf9a903=readFileSync(_0x4dd49e,_0x1581a8(0x103));}else _0xf9a903=_0x7f92b5;const _0x4b1571=validateSql(_0xf9a903),_0x84cbc5={'valid':_0x4b1571['valid'],'sqlType':_0x4b1571[_0x1581a8(0xd4)]['type'],'isSelectOnly':_0x4b1571[_0x1581a8(0xd4)]['isSelectOnly'],'isDangerous':_0x4b1571[_0x1581a8(0xd4)][_0x1581a8(0xfc)],'tables':_0x4b1571['tables'],'parameters':_0x4b1571['parameters'],'message':_0x4b1571[_0x1581a8(0x106)]};_0x4b1571[_0x1581a8(0xd4)][_0x1581a8(0xe2)]&&(_0x84cbc5[_0x1581a8(0xe2)]=_0x4b1571[_0x1581a8(0xd4)][_0x1581a8(0xe2)]);if(_0x36ad41&&_0x4b1571[_0x1581a8(0x10d)]){const _0xd4a9be=_0x36ad41[_0x1581a8(0xd0)](',')[_0x1581a8(0x10e)](_0x383a9a=>_0x383a9a[_0x1581a8(0x108)]())[_0x1581a8(0xe7)](Boolean),_0x40f5d6=[],_0x38074d=[],_0x36eefb=filterDbTableBackedDatasets(await listDatasets(_0x378419[_0x1581a8(0xf0)])),_0x375846=new Map(_0x36eefb[_0x1581a8(0x10e)](_0x6dba0d=>[_0x6dba0d[_0x1581a8(0xd5)]?.['tableName']?.[_0x1581a8(0x112)](),_0x6dba0d]));for(const _0x569d0d of _0x4b1571[_0x1581a8(0xde)]){const _0x27c28e=_0x375846['get'](_0x569d0d[_0x1581a8(0x112)]());!_0x27c28e&&_0x40f5d6[_0x1581a8(0xd1)](_0x1581a8(0xfb)+_0x569d0d+_0x1581a8(0xe1));}for(const _0x1d2d00 of _0xd4a9be){let _0x118b6f;try{_0x118b6f=await getDatasetDetail(_0x1d2d00);}catch{_0x40f5d6[_0x1581a8(0xd1)](_0x1581a8(0x101)+_0x1d2d00+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x118b6f,_0x1581a8(0xf9));const _0x180a53=Array['isArray'](_0x118b6f[_0x1581a8(0xf4)])?_0x118b6f[_0x1581a8(0xf4)]:[],_0x2bfcb8=new Set(_0x180a53[_0x1581a8(0x10e)](_0x2bcd04=>_0x2bcd04[_0x1581a8(0xe8)]?.['toLowerCase']())),_0x36628a=_0x118b6f[_0x1581a8(0xd5)]?.['tableName']||_0x118b6f[_0x1581a8(0xea)]||_0x1d2d00;_0x84cbc5['schema:'+_0x36628a]={'code':_0x1d2d00,'tableName':_0x36628a,'fieldCount':_0x2bfcb8[_0x1581a8(0x102)],'fields':Array[_0x1581a8(0x10c)](_0x2bfcb8)};if(_0x42c60a){const _0x59737d=normalizeDatasetIndexes(_0x118b6f);_0x38074d['push']({'tableName':_0x36628a,..._0x59737d});}}_0x40f5d6[_0x1581a8(0xdc)]>0x0&&(_0x84cbc5[_0x1581a8(0xd2)]=_0x40f5d6),_0x42c60a&&(_0x84cbc5['joinAudit']=auditSqlJoinIndexes(_0xf9a903,_0x38074d));}return{'ok':_0x4b1571[_0x1581a8(0x10d)],'data':_0x84cbc5,'message':_0x4b1571['message']};}};function normalizeDatasetIndexes(_0x172869){const _0x357cc1=a176_0x455c0e,_0x221220=Array[_0x357cc1(0xdb)](_0x172869?.[_0x357cc1(0xd9)]?.['indexes'])?_0x172869[_0x357cc1(0xd9)]['indexes']:Array[_0x357cc1(0xdb)](_0x172869?.[_0x357cc1(0xf5)])?_0x172869[_0x357cc1(0xf5)]:[],_0x4a969f=_0x221220[_0x357cc1(0x10b)](_0x335f3d=>{const _0x12c3e8=_0x357cc1,_0x535180=Array[_0x12c3e8(0xdb)](_0x335f3d?.['index_columns'])?_0x335f3d[_0x12c3e8(0xf3)]:Array[_0x12c3e8(0xdb)](_0x335f3d?.[_0x12c3e8(0xf8)])?_0x335f3d[_0x12c3e8(0xf8)]:Array[_0x12c3e8(0xdb)](_0x335f3d?.[_0x12c3e8(0xdd)])?_0x335f3d[_0x12c3e8(0xdd)]:[],_0x1a46eb=_0x535180['filter'](_0x1001f7=>typeof _0x1001f7==='string')[_0x12c3e8(0x10e)](_0xe075f3=>_0xe075f3[_0x12c3e8(0x108)]())[_0x12c3e8(0xe7)](Boolean);if(_0x1a46eb[_0x12c3e8(0xdc)]===0x0)return[];const _0x28720a=[_0x335f3d?.[_0x12c3e8(0xfa)],_0x335f3d?.[_0x12c3e8(0x113)],_0x335f3d?.[_0x12c3e8(0xe8)]][_0x12c3e8(0x10f)](_0x5860d9=>typeof _0x5860d9===_0x12c3e8(0xe3)&&_0x5860d9[_0x12c3e8(0x108)]()),_0x4485be=[_0x335f3d?.['index_type'],_0x335f3d?.[_0x12c3e8(0xe6)]][_0x12c3e8(0x10f)](_0x4130bd=>typeof _0x4130bd===_0x12c3e8(0xe3)&&_0x4130bd[_0x12c3e8(0x108)]());return[{..._0x28720a?{'name':_0x28720a[_0x12c3e8(0x108)]()}:{},..._0x4485be?{'type':_0x4485be['trim']()}:{},'columns':_0x1a46eb}];}),_0x5ecd0d=[..._0x4a969f],_0x155a58=typeof _0x172869?.['dbtableConfig']?.[_0x357cc1(0xce)]==='string'?_0x172869[_0x357cc1(0xd5)][_0x357cc1(0xce)][_0x357cc1(0xd0)](',')[_0x357cc1(0x10e)](_0x34caa0=>_0x34caa0[_0x357cc1(0x108)]())[_0x357cc1(0xe7)](Boolean):[];return _0x155a58[_0x357cc1(0xdc)]>0x0&&_0x5ecd0d[_0x357cc1(0xfe)]({'type':_0x357cc1(0xfd),'columns':_0x155a58}),{'indexes':_0x5ecd0d,'metadataAvailable':_0x4a969f[_0x357cc1(0xdc)]>0x0};}
1
+ const a177_0x6c22d1=a177_0x451a;(function(_0x28596a,_0x533f32){const _0x40819c=a177_0x451a,_0x434b60=_0x28596a();while(!![]){try{const _0x543321=parseInt(_0x40819c(0x1d7))/0x1+-parseInt(_0x40819c(0x1da))/0x2*(parseInt(_0x40819c(0x1e5))/0x3)+-parseInt(_0x40819c(0x1e7))/0x4*(-parseInt(_0x40819c(0x1f4))/0x5)+-parseInt(_0x40819c(0x1cc))/0x6*(-parseInt(_0x40819c(0x1f8))/0x7)+-parseInt(_0x40819c(0x1ec))/0x8*(-parseInt(_0x40819c(0x1e0))/0x9)+-parseInt(_0x40819c(0x1d8))/0xa*(parseInt(_0x40819c(0x1f9))/0xb)+-parseInt(_0x40819c(0x1d5))/0xc*(parseInt(_0x40819c(0x1ea))/0xd);if(_0x543321===_0x533f32)break;else _0x434b60['push'](_0x434b60['shift']());}catch(_0x16a276){_0x434b60['push'](_0x434b60['shift']());}}}(a177_0x2fb1,0x630b6));function a177_0x451a(_0x341b93,_0x3a6db9){_0x341b93=_0x341b93-0x1bd;const _0x2fb12f=a177_0x2fb1();let _0x451a62=_0x2fb12f[_0x341b93];return _0x451a62;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a177_0x6c22d1(0x1ce),'command':a177_0x6c22d1(0x1bf),'description':a177_0x6c22d1(0x1dc),'risk':'read','flags':[{'name':a177_0x6c22d1(0x1c2),'type':a177_0x6c22d1(0x1df),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a177_0x6c22d1(0x1ce),'type':a177_0x6c22d1(0x1df),'description':a177_0x6c22d1(0x1e8)},{'name':a177_0x6c22d1(0x1fc),'type':a177_0x6c22d1(0x1df),'description':a177_0x6c22d1(0x1f5)},{'name':a177_0x6c22d1(0x1fb),'type':a177_0x6c22d1(0x1ed),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x55e814){const _0x52b5ad=a177_0x6c22d1,_0x4de195=_0x55e814['str'](_0x52b5ad(0x1c2)),_0x373b49=_0x55e814[_0x52b5ad(0x1c8)](_0x52b5ad(0x1ce)),_0x267d70=_0x55e814[_0x52b5ad(0x1c8)](_0x52b5ad(0x1fc)),_0x40639b=_0x55e814['bool'](_0x52b5ad(0x1fb));if(!_0x4de195&&!_0x373b49)throw CliErrors['flagMissing'](_0x52b5ad(0x1c2),_0x52b5ad(0x1e9));if(_0x40639b&&!_0x267d70)throw CliErrors[_0x52b5ad(0x1c7)](_0x52b5ad(0x1cf));let _0x42b4d1;if(_0x4de195){const _0x17822e=resolve(process[_0x52b5ad(0x1d6)](),_0x4de195);if(!existsSync(_0x17822e))throw CliErrors['validation'](_0x52b5ad(0x1c3)+_0x17822e);_0x42b4d1=readFileSync(_0x17822e,_0x52b5ad(0x1f3));}else _0x42b4d1=_0x373b49;const _0x46589d=validateSql(_0x42b4d1),_0x5deaf6={'valid':_0x46589d[_0x52b5ad(0x1f2)],'sqlType':_0x46589d['sqlType'][_0x52b5ad(0x1ee)],'isSelectOnly':_0x46589d[_0x52b5ad(0x1c0)][_0x52b5ad(0x1d3)],'isDangerous':_0x46589d[_0x52b5ad(0x1c0)]['isDangerous'],'tables':_0x46589d[_0x52b5ad(0x1ef)],'parameters':_0x46589d['parameters'],'message':_0x46589d[_0x52b5ad(0x1c9)]};_0x46589d['sqlType']['reason']&&(_0x5deaf6[_0x52b5ad(0x1c6)]=_0x46589d[_0x52b5ad(0x1c0)][_0x52b5ad(0x1c6)]);if(_0x267d70&&_0x46589d[_0x52b5ad(0x1f2)]){const _0x523187=_0x267d70[_0x52b5ad(0x1cd)](',')[_0x52b5ad(0x1e3)](_0x52f57a=>_0x52f57a[_0x52b5ad(0x1bd)]())[_0x52b5ad(0x1f0)](Boolean),_0x3f6384=[],_0x51ece7=[],_0x431a84=filterDbTableBackedDatasets(await listDatasets(_0x55e814[_0x52b5ad(0x1d2)])),_0x349fe8=new Map(_0x431a84[_0x52b5ad(0x1e3)](_0x57d577=>[_0x57d577[_0x52b5ad(0x1eb)]?.[_0x52b5ad(0x1f1)]?.[_0x52b5ad(0x1e4)](),_0x57d577]));for(const _0x3f421c of _0x46589d['tables']){const _0x5d294d=_0x349fe8[_0x52b5ad(0x1ff)](_0x3f421c[_0x52b5ad(0x1e4)]());!_0x5d294d&&_0x3f6384[_0x52b5ad(0x1be)]('Table\x20\x22'+_0x3f421c+_0x52b5ad(0x1dd));}for(const _0x441b80 of _0x523187){let _0x4c1a81;try{_0x4c1a81=await getDatasetDetail(_0x441b80);}catch{_0x3f6384[_0x52b5ad(0x1be)](_0x52b5ad(0x1c5)+_0x441b80+_0x52b5ad(0x1f7));continue;}assertDatasetIsDbTableBacked(_0x4c1a81,_0x52b5ad(0x1d4));const _0x47a222=Array[_0x52b5ad(0x1e1)](_0x4c1a81[_0x52b5ad(0x1e6)])?_0x4c1a81[_0x52b5ad(0x1e6)]:[],_0x25e0d3=new Set(_0x47a222['map'](_0x5a18a1=>_0x5a18a1['name']?.[_0x52b5ad(0x1e4)]())),_0x1e900d=_0x4c1a81[_0x52b5ad(0x1eb)]?.[_0x52b5ad(0x1f1)]||_0x4c1a81['tableName']||_0x441b80;_0x5deaf6[_0x52b5ad(0x1d0)+_0x1e900d]={'code':_0x441b80,'tableName':_0x1e900d,'fieldCount':_0x25e0d3[_0x52b5ad(0x1f6)],'fields':Array[_0x52b5ad(0x1ca)](_0x25e0d3)};if(_0x40639b){const _0x494d87=normalizeDatasetIndexes(_0x4c1a81);_0x51ece7[_0x52b5ad(0x1be)]({'tableName':_0x1e900d,..._0x494d87});}}_0x3f6384[_0x52b5ad(0x1d9)]>0x0&&(_0x5deaf6['schemaWarnings']=_0x3f6384),_0x40639b&&(_0x5deaf6[_0x52b5ad(0x1fe)]=auditSqlJoinIndexes(_0x42b4d1,_0x51ece7));}return{'ok':_0x46589d[_0x52b5ad(0x1f2)],'data':_0x5deaf6,'message':_0x46589d[_0x52b5ad(0x1c9)]};}};function normalizeDatasetIndexes(_0x20279d){const _0x5bbcdd=a177_0x6c22d1,_0x45d167=Array[_0x5bbcdd(0x1e1)](_0x20279d?.[_0x5bbcdd(0x1c1)]?.[_0x5bbcdd(0x1cb)])?_0x20279d[_0x5bbcdd(0x1c1)][_0x5bbcdd(0x1cb)]:Array[_0x5bbcdd(0x1e1)](_0x20279d?.[_0x5bbcdd(0x1cb)])?_0x20279d[_0x5bbcdd(0x1cb)]:[],_0x4b4503=_0x45d167['flatMap'](_0xc6f6c9=>{const _0x1fb2d5=_0x5bbcdd,_0x1c56c4=Array[_0x1fb2d5(0x1e1)](_0xc6f6c9?.['index_columns'])?_0xc6f6c9[_0x1fb2d5(0x1fd)]:Array[_0x1fb2d5(0x1e1)](_0xc6f6c9?.[_0x1fb2d5(0x1e2)])?_0xc6f6c9['columnNames']:Array['isArray'](_0xc6f6c9?.['columns'])?_0xc6f6c9[_0x1fb2d5(0x1de)]:[],_0x4f2ae6=_0x1c56c4['filter'](_0x4e8b65=>typeof _0x4e8b65===_0x1fb2d5(0x1df))[_0x1fb2d5(0x1e3)](_0x182327=>_0x182327[_0x1fb2d5(0x1bd)]())['filter'](Boolean);if(_0x4f2ae6[_0x1fb2d5(0x1d9)]===0x0)return[];const _0x49645f=[_0xc6f6c9?.[_0x1fb2d5(0x1c4)],_0xc6f6c9?.['index_name'],_0xc6f6c9?.[_0x1fb2d5(0x1db)]]['find'](_0xbb73c3=>typeof _0xbb73c3===_0x1fb2d5(0x1df)&&_0xbb73c3[_0x1fb2d5(0x1bd)]()),_0x51557c=[_0xc6f6c9?.['index_type'],_0xc6f6c9?.[_0x1fb2d5(0x1ee)]][_0x1fb2d5(0x1d1)](_0x554f4a=>typeof _0x554f4a===_0x1fb2d5(0x1df)&&_0x554f4a[_0x1fb2d5(0x1bd)]());return[{..._0x49645f?{'name':_0x49645f[_0x1fb2d5(0x1bd)]()}:{},..._0x51557c?{'type':_0x51557c[_0x1fb2d5(0x1bd)]()}:{},'columns':_0x4f2ae6}];}),_0x3a42a9=[..._0x4b4503],_0xf952b7=typeof _0x20279d?.['dbtableConfig']?.[_0x5bbcdd(0x1fa)]===_0x5bbcdd(0x1df)?_0x20279d['dbtableConfig']['pkField']['split'](',')[_0x5bbcdd(0x1e3)](_0x57c9f3=>_0x57c9f3[_0x5bbcdd(0x1bd)]())[_0x5bbcdd(0x1f0)](Boolean):[];return _0xf952b7[_0x5bbcdd(0x1d9)]>0x0&&_0x3a42a9['unshift']({'type':'primary','columns':_0xf952b7}),{'indexes':_0x3a42a9,'metadataAvailable':_0x4b4503[_0x5bbcdd(0x1d9)]>0x0};}function a177_0x2fb1(){const _0x76aa79=['utf-8','100XBdPzR','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','size','\x22\x20not\x20found\x20or\x20not\x20accessible','7ayKSNS','5687473IMjpsX','pkField','check-indexes','schemas','index_columns','joinAudit','get','trim','push','validate','sqlType','dataset','file','File\x20not\x20found:\x20','indexName','Dataset\x20\x22','reason','validation','str','message','from','indexes','2231022uRsJkX','split','sql','--check-indexes\x20requires\x20--schemas.','schema:','find','appCode','isSelectOnly','SQL\x20schema\x20validation','279684GKoLhG','cwd','643501hlLiXx','10WSwKkT','length','157582ZNobXH','name','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','\x22\x20not\x20found\x20in\x20any\x20dataset','columns','string','789597bAUlhy','isArray','columnNames','map','toLowerCase','3PAZGno','fields','133516ytpXUw','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','Provide\x20--file\x20or\x20--sql','429JwtpIg','dbtableConfig','8diIihB','boolean','type','tables','filter','tableName','valid'];a177_0x2fb1=function(){return _0x76aa79;};return a177_0x2fb1();}
@@ -1 +1 @@
1
- (function(_0x294926,_0x9d6f2c){const _0x34bda0=a177_0x5ce0,_0x3c7688=_0x294926();while(!![]){try{const _0x249e3b=parseInt(_0x34bda0(0x14e))/0x1+parseInt(_0x34bda0(0x14b))/0x2*(-parseInt(_0x34bda0(0x14a))/0x3)+parseInt(_0x34bda0(0x14c))/0x4+-parseInt(_0x34bda0(0x14d))/0x5+-parseInt(_0x34bda0(0x148))/0x6+parseInt(_0x34bda0(0x149))/0x7+parseInt(_0x34bda0(0x146))/0x8*(parseInt(_0x34bda0(0x147))/0x9);if(_0x249e3b===_0x9d6f2c)break;else _0x3c7688['push'](_0x3c7688['shift']());}catch(_0x20a311){_0x3c7688['push'](_0x3c7688['shift']());}}}(a177_0x322c,0xeab20));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a177_0x5ce0(_0x425e4e,_0x30c709){_0x425e4e=_0x425e4e-0x146;const _0x322c4f=a177_0x322c();let _0x5ce001=_0x322c4f[_0x425e4e];return _0x5ce001;}function a177_0x322c(){const _0x2d6e16=['45615bOWzqI','104VNCyjx','2959692YOdXMX','7574435djyBgs','1325334dZlPaf','40VfYtnl','1813689BQDJUU','7368408ppSKSt','9954455CAxiom'];a177_0x322c=function(){return _0x2d6e16;};return a177_0x322c();}
1
+ function a178_0x20b1(_0x278fbe,_0x5ae455){_0x278fbe=_0x278fbe-0x188;const _0x444bd7=a178_0x444b();let _0x20b140=_0x444bd7[_0x278fbe];return _0x20b140;}(function(_0x25b8da,_0x488cc0){const _0xf57435=a178_0x20b1,_0x4441a7=_0x25b8da();while(!![]){try{const _0x2f7b3c=parseInt(_0xf57435(0x18c))/0x1+-parseInt(_0xf57435(0x18a))/0x2+parseInt(_0xf57435(0x188))/0x3+-parseInt(_0xf57435(0x18b))/0x4+-parseInt(_0xf57435(0x18e))/0x5+parseInt(_0xf57435(0x18d))/0x6+-parseInt(_0xf57435(0x189))/0x7;if(_0x2f7b3c===_0x488cc0)break;else _0x4441a7['push'](_0x4441a7['shift']());}catch(_0x114b3c){_0x4441a7['push'](_0x4441a7['shift']());}}}(a178_0x444b,0xe1e65));import{taskStatus}from'../../commands/task/status.js';function a178_0x444b(){const _0x5eed2b=['1704860LiDqhj','9425226GGYUdO','2816485KRpfYo','3498504IsbtUQ','11293569VkcdEA','362946fURhLO','4633908DPZiQW'];a178_0x444b=function(){return _0x5eed2b;};return a178_0x444b();}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a178_0xebc549=a178_0x24fc;(function(_0x23caab,_0x3a9eb1){const _0x961cfb=a178_0x24fc,_0x162d02=_0x23caab();while(!![]){try{const _0x36621b=-parseInt(_0x961cfb(0x9c))/0x1*(-parseInt(_0x961cfb(0x97))/0x2)+-parseInt(_0x961cfb(0x94))/0x3+-parseInt(_0x961cfb(0x90))/0x4+parseInt(_0x961cfb(0x95))/0x5+-parseInt(_0x961cfb(0x8c))/0x6*(parseInt(_0x961cfb(0x8f))/0x7)+parseInt(_0x961cfb(0x82))/0x8*(-parseInt(_0x961cfb(0x96))/0x9)+-parseInt(_0x961cfb(0x93))/0xa*(-parseInt(_0x961cfb(0x91))/0xb);if(_0x36621b===_0x3a9eb1)break;else _0x162d02['push'](_0x162d02['shift']());}catch(_0x5b1f31){_0x162d02['push'](_0x162d02['shift']());}}}(a178_0x5645,0x94489));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a178_0x24fc(_0x2b0141,_0x310b77){_0x2b0141=_0x2b0141-0x80;const _0x5645a0=a178_0x5645();let _0x24fc43=_0x5645a0[_0x2b0141];return _0x24fc43;}import{getAsyncTaskStatus}from'../../core/api-client.js';function a178_0x5645(){const _0x5623a6=['8504BraDds','taskId',',\x20received\x20','status','task-id','read','appCode','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','apiError','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','6PCSeaP','flagMissing','str','348299shpobd','1053072VQrjoD','389323DtfaCk','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','190QbImcW','635052zzUEky','797005eXUDSi','5841ZysHns','14246OjCaRc','trim','isTerminal','cookie','task','139UxsQJC','string','compress'];a178_0x5645=function(){return _0x5623a6;};return a178_0x5645();}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a178_0xebc549(0x9b),'command':a178_0xebc549(0x85),'description':a178_0xebc549(0x8b),'risk':a178_0xebc549(0x87),'defaultOutputFormat':a178_0xebc549(0x81),'structuredErrors':!![],'flags':[{'name':a178_0xebc549(0x86),'type':a178_0xebc549(0x80),'required':!![],'description':a178_0xebc549(0x89)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x307073){const _0x23c5fd=a178_0xebc549;if(!_0x307073['str'](_0x23c5fd(0x86))[_0x23c5fd(0x98)]())throw CliErrors[_0x23c5fd(0x8d)](_0x23c5fd(0x86));},async 'execute'(_0x4f8d21){const _0x2c7fc0=a178_0xebc549,_0x41ec29=_0x4f8d21[_0x2c7fc0(0x8e)]('task-id')[_0x2c7fc0(0x98)](),_0x493c8e=normalizeAsyncTask(await getAsyncTaskStatus(_0x41ec29,_0x4f8d21[_0x2c7fc0(0x88)],_0x4f8d21[_0x2c7fc0(0x9a)]));if(_0x493c8e[_0x2c7fc0(0x83)]!==_0x41ec29)throw CliErrors[_0x2c7fc0(0x8a)](_0x2c7fc0(0x92)+_0x41ec29+_0x2c7fc0(0x84)+_0x493c8e[_0x2c7fc0(0x83)]+'.');const _0x4c31be=buildAsyncTaskStatusCommand(_0x493c8e[_0x2c7fc0(0x83)],_0x4f8d21[_0x2c7fc0(0x88)]);return{'ok':!![],'message':asyncTaskMessage(_0x493c8e),'data':{'appCode':_0x4f8d21[_0x2c7fc0(0x88)],..._0x493c8e,'query':_0x493c8e[_0x2c7fc0(0x99)]?null:{'command':_0x4c31be}}};}};
1
+ const a179_0x686ccb=a179_0x27d6;function a179_0x51db(){const _0x22bf43=['213352nvSBJK',',\x20received\x20','1274TgRCOC','task-id','str','flagMissing','3009wFkevX','string','compress','330JsyvBq','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','apiError','read','567485nFisjU','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','cookie','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','64504WlAjqg','4251030jZxjBe','trim','1771696ntHUHx','taskId','12FvwpuN','130955oRGhgz','45kdlhTm','appCode'];a179_0x51db=function(){return _0x22bf43;};return a179_0x51db();}(function(_0x1a623f,_0x1effd5){const _0x2d9a5c=a179_0x27d6,_0x15d457=_0x1a623f();while(!![]){try{const _0x3bc8f4=-parseInt(_0x2d9a5c(0x78))/0x1+-parseInt(_0x2d9a5c(0x69))/0x2*(-parseInt(_0x2d9a5c(0x6d))/0x3)+parseInt(_0x2d9a5c(0x7b))/0x4+parseInt(_0x2d9a5c(0x74))/0x5*(parseInt(_0x2d9a5c(0x7d))/0x6)+-parseInt(_0x2d9a5c(0x79))/0x7+parseInt(_0x2d9a5c(0x81))/0x8*(parseInt(_0x2d9a5c(0x7f))/0x9)+-parseInt(_0x2d9a5c(0x70))/0xa*(parseInt(_0x2d9a5c(0x7e))/0xb);if(_0x3bc8f4===_0x1effd5)break;else _0x15d457['push'](_0x15d457['shift']());}catch(_0x1985cf){_0x15d457['push'](_0x15d457['shift']());}}}(a179_0x51db,0x5c2ab));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';function a179_0x27d6(_0x4da5ce,_0x2e23f5){_0x4da5ce=_0x4da5ce-0x68;const _0x51db28=a179_0x51db();let _0x27d63c=_0x51db28[_0x4da5ce];return _0x27d63c;}import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':'status','description':a179_0x686ccb(0x77),'risk':a179_0x686ccb(0x73),'defaultOutputFormat':a179_0x686ccb(0x6f),'structuredErrors':!![],'flags':[{'name':a179_0x686ccb(0x6a),'type':a179_0x686ccb(0x6e),'required':!![],'description':a179_0x686ccb(0x75)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5cf168){const _0x45ad0d=a179_0x686ccb;if(!_0x5cf168[_0x45ad0d(0x6b)](_0x45ad0d(0x6a))[_0x45ad0d(0x7a)]())throw CliErrors[_0x45ad0d(0x6c)](_0x45ad0d(0x6a));},async 'execute'(_0x309f1d){const _0x300d25=a179_0x686ccb,_0x50a044=_0x309f1d[_0x300d25(0x6b)](_0x300d25(0x6a))['trim'](),_0x146d19=normalizeAsyncTask(await getAsyncTaskStatus(_0x50a044,_0x309f1d[_0x300d25(0x80)],_0x309f1d[_0x300d25(0x76)]));if(_0x146d19[_0x300d25(0x7c)]!==_0x50a044)throw CliErrors[_0x300d25(0x72)](_0x300d25(0x71)+_0x50a044+_0x300d25(0x68)+_0x146d19[_0x300d25(0x7c)]+'.');const _0x5323f1=buildAsyncTaskStatusCommand(_0x146d19[_0x300d25(0x7c)],_0x309f1d[_0x300d25(0x80)]);return{'ok':!![],'message':asyncTaskMessage(_0x146d19),'data':{'appCode':_0x309f1d[_0x300d25(0x80)],..._0x146d19,'query':_0x146d19['isTerminal']?null:{'command':_0x5323f1}}};}};
@@ -1 +1 @@
1
- function a179_0x2198(_0xccd3e7,_0x20cbd1){_0xccd3e7=_0xccd3e7-0x1b1;const _0x3a3d08=a179_0x3a3d();let _0x219814=_0x3a3d08[_0xccd3e7];return _0x219814;}const a179_0x523f6e=a179_0x2198;function a179_0x3a3d(){const _0x338f54=['10364riTmZg','workspace\x20add','6OeIvUi','2792TUDzqX','3356780ODoivB','1433448kPbOSE','852hVfoiH','1230490cKvfCO','727608yIfqLi','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','4204060ksLgTg','7587zebcJl'];a179_0x3a3d=function(){return _0x338f54;};return a179_0x3a3d();}(function(_0x12d25a,_0x3fbebd){const _0x1016dc=a179_0x2198,_0x102a17=_0x12d25a();while(!![]){try{const _0x39bb5f=-parseInt(_0x1016dc(0x1b2))/0x1+parseInt(_0x1016dc(0x1bb))/0x2+parseInt(_0x1016dc(0x1bc))/0x3*(parseInt(_0x1016dc(0x1b6))/0x4)+-parseInt(_0x1016dc(0x1ba))/0x5*(-parseInt(_0x1016dc(0x1b8))/0x6)+-parseInt(_0x1016dc(0x1b4))/0x7+parseInt(_0x1016dc(0x1b9))/0x8*(-parseInt(_0x1016dc(0x1b5))/0x9)+-parseInt(_0x1016dc(0x1b1))/0xa;if(_0x39bb5f===_0x3fbebd)break;else _0x102a17['push'](_0x102a17['shift']());}catch(_0x2a9801){_0x102a17['push'](_0x102a17['shift']());}}}(a179_0x3a3d,0x5c670));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':a179_0x523f6e(0x1b3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x2bb835=>validateAppName(_0x2bb835,a179_0x523f6e(0x1b7)),'execute':_0x5c75b2=>runAppAdd(_0x5c75b2,a179_0x523f6e(0x1b7))};
1
+ function a180_0x3f0f(_0x587140,_0x306b6b){_0x587140=_0x587140-0x109;const _0x3ef80a=a180_0x3ef8();let _0x3f0f6d=_0x3ef80a[_0x587140];return _0x3f0f6d;}function a180_0x3ef8(){const _0x4de2bb=['65yZcUqw','6738420NkfYrO','424816osYwdU','4485666kVuOzh','App\x20profile\x20name','add','write','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','7015512ppJqsr','workspace\x20add','8pWkXCn','14694993vIGNdb','40266820pEJFsA','1132231UEheQA','2mssyvs'];a180_0x3ef8=function(){return _0x4de2bb;};return a180_0x3ef8();}const a180_0x55b962=a180_0x3f0f;(function(_0x4287ab,_0x11c561){const _0x6cbe80=a180_0x3f0f,_0x55e966=_0x4287ab();while(!![]){try{const _0x318cc4=parseInt(_0x6cbe80(0x114))/0x1*(parseInt(_0x6cbe80(0x115))/0x2)+parseInt(_0x6cbe80(0x10a))/0x3+parseInt(_0x6cbe80(0x109))/0x4*(-parseInt(_0x6cbe80(0x116))/0x5)+parseInt(_0x6cbe80(0x117))/0x6+parseInt(_0x6cbe80(0x10f))/0x7+-parseInt(_0x6cbe80(0x111))/0x8*(-parseInt(_0x6cbe80(0x112))/0x9)+-parseInt(_0x6cbe80(0x113))/0xa;if(_0x318cc4===_0x11c561)break;else _0x55e966['push'](_0x55e966['shift']());}catch(_0x41e690){_0x55e966['push'](_0x55e966['shift']());}}}(a180_0x3ef8,0xeed06));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a180_0x55b962(0x10c),'description':a180_0x55b962(0x10e),'risk':a180_0x55b962(0x10d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a180_0x55b962(0x10b),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x4d9fd1=>validateAppName(_0x4d9fd1,a180_0x55b962(0x110)),'execute':_0x141061=>runAppAdd(_0x141061,a180_0x55b962(0x110))};
@@ -1 +1 @@
1
- const a180_0x437ccd=a180_0x539d;(function(_0x560533,_0x36ce9e){const _0x1b9937=a180_0x539d,_0x701402=_0x560533();while(!![]){try{const _0x7a97ff=-parseInt(_0x1b9937(0xc8))/0x1*(parseInt(_0x1b9937(0xc7))/0x2)+-parseInt(_0x1b9937(0x9d))/0x3+parseInt(_0x1b9937(0xa1))/0x4+parseInt(_0x1b9937(0xba))/0x5+parseInt(_0x1b9937(0xa3))/0x6*(-parseInt(_0x1b9937(0xbd))/0x7)+-parseInt(_0x1b9937(0xc2))/0x8*(parseInt(_0x1b9937(0xd0))/0x9)+-parseInt(_0x1b9937(0xd4))/0xa*(-parseInt(_0x1b9937(0xcf))/0xb);if(_0x7a97ff===_0x36ce9e)break;else _0x701402['push'](_0x701402['shift']());}catch(_0x517574){_0x701402['push'](_0x701402['shift']());}}}(a180_0x1af3,0x43f97));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+a180_0x437ccd(0xcd),SAFE_PROFILE_KEYS=[a180_0x437ccd(0xb1),a180_0x437ccd(0xa4),a180_0x437ccd(0xd3),'format',a180_0x437ccd(0x9c),a180_0x437ccd(0xb7),'locale'],workspaceFlags=[{'name':a180_0x437ccd(0xc5),'type':'string','description':a180_0x437ccd(0xb5)},{'name':a180_0x437ccd(0xb1),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xa2)},{'name':a180_0x437ccd(0xa4),'type':'string','description':a180_0x437ccd(0xcb),'enum':[...RABETBASE_ENV_VALUES]},{'name':a180_0x437ccd(0xd3),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xb4)},{'name':a180_0x437ccd(0xbb),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xc9),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a180_0x437ccd(0xb7),'type':a180_0x437ccd(0xa8),'description':a180_0x437ccd(0xce),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a180_0x437ccd(0xa8),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0x4e3ee4){const _0x5ae234=a180_0x437ccd;return!!_0x4e3ee4&&typeof _0x4e3ee4===_0x5ae234(0xa9)&&!Array[_0x5ae234(0xa5)](_0x4e3ee4);}function assertValidAppcode(_0xacc146){const _0x2db792=a180_0x437ccd,{valid:_0xca7fed,message:_0x123fa0}=validateAppcode(_0xacc146);if(!_0xca7fed)throw CliErrors[_0x2db792(0x9f)](_0x2db792(0xc0)+_0xacc146,_0x123fa0);}function sanitizeProfile(_0x317a65){if(!isRecord(_0x317a65))return{};const _0x54e022={};for(const _0x49585f of SAFE_PROFILE_KEYS){if(_0x317a65[_0x49585f]!==undefined)_0x54e022[_0x49585f]=_0x317a65[_0x49585f];}return _0x54e022;}function a180_0x539d(_0x2f7b77,_0x17a470){_0x2f7b77=_0x2f7b77-0x9c;const _0x1af362=a180_0x1af3();let _0x539d3c=_0x1af362[_0x2f7b77];return _0x539d3c;}function cloneProfile(_0x3da57e){return isRecord(_0x3da57e)?{..._0x3da57e}:{};}function collectWorkspaceProfileOverrides(_0x84ef82){const _0x3d2bfd=a180_0x437ccd,_0x3e9c32={},_0xfd93b9=_0x84ef82['str'](_0x3d2bfd(0xa4)),_0x2fc986=_0x84ef82[_0x3d2bfd(0xca)]('apiDir'),_0x143cbd=_0x84ef82[_0x3d2bfd(0xca)](_0x3d2bfd(0xbb)),_0x462431=_0x84ef82[_0x3d2bfd(0xc3)]('pageSize'),_0x36a983=_0x84ef82[_0x3d2bfd(0xca)]('riskLevel'),_0xff0ece=_0x84ef82[_0x3d2bfd(0xca)](_0x3d2bfd(0xad));if(_0xfd93b9)_0x3e9c32['env']=_0xfd93b9;if(_0x2fc986)_0x3e9c32[_0x3d2bfd(0xd3)]=_0x2fc986;if(_0x143cbd)_0x3e9c32[_0x3d2bfd(0xae)]=_0x143cbd;if(_0x462431!==undefined&&_0x462431!=='')_0x3e9c32['pageSize']=Number(_0x462431);if(_0x36a983)_0x3e9c32['riskLevel']=_0x36a983;if(_0xff0ece)_0x3e9c32[_0x3d2bfd(0xad)]=_0xff0ece;return _0x3e9c32;}async function validateWorkspaceArgs(_0x132165){const _0x31c089=a180_0x437ccd,_0x4f0ed3=_0x132165['str'](_0x31c089(0xc5))[_0x31c089(0xbe)](),_0x205ef0=_0x132165[_0x31c089(0xca)]('appcode')['trim']();if(!_0x4f0ed3&&!_0x205ef0)throw CliErrors[_0x31c089(0x9f)](_0x31c089(0x9e),_0x31c089(0xa6)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x31c089(0xaa));if(_0x205ef0)assertValidAppcode(_0x205ef0);}function resolveKnownApps(){const _0x3e8395=a180_0x437ccd,{config:_0x371318,layers:_0x250d67}=readRawConfigWithLayers(),_0x486972=isRecord(_0x371318[_0x3e8395(0xb9)])?_0x371318[_0x3e8395(0xb9)]:{},_0x55a9c3=isRecord(_0x250d67[_0x3e8395(0xb2)][_0x3e8395(0xb9)])?_0x250d67[_0x3e8395(0xb2)][_0x3e8395(0xb9)]:{};return{..._0x55a9c3,..._0x486972};}function a180_0x1af3(){const _0x380318=['defaultApp','string','object','\x20workspace\x20use\x20--app\x20<name>`.','Workspace\x20','.\x20Credentials:\x20not\x20written.','locale','format','use','keys','appcode','globalConfig',').\x20Config:\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','initialized','riskLevel','\x20workspace\x20','apps','135145fzYtRB','defaultFormat','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','140ilNHVh','trim','\x20--appcode\x20<code>`.','Invalid\x20appcode:\x20','updated','8LMHSiz','flag','Switch\x20the\x20current\x20workspace\x20app\x20binding','app','length','2JLuxNt','246724luZQYp','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','str','Target\x20environment','init','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','382921aBGQZE','1957347VIrTcK','App\x20\x22','write','apiDir','160CaYBdf','pageSize','257055pjKLMW','Missing\x20workspace\x20app\x20selector.','validation','\x22\x20not\x20found.','1314280GdelCw','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','25278aopbYu','env','isArray','Use\x20`'];a180_0x1af3=function(){return _0x380318;};return a180_0x1af3();}async function configureWorkspace(_0x385d3a,_0x3e4e74){const _0x3b1b84=a180_0x437ccd,_0x4f962a=_0x385d3a['str'](_0x3b1b84(0xc5))[_0x3b1b84(0xbe)](),_0xc7e59c=_0x385d3a[_0x3b1b84(0xca)](_0x3b1b84(0xb1))[_0x3b1b84(0xbe)](),_0x830bf3=_0x4f962a||_0xc7e59c;if(!_0x830bf3)throw CliErrors[_0x3b1b84(0x9f)](_0x3b1b84(0x9e),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0xc7e59c)assertValidAppcode(_0xc7e59c);const _0x4bc30e=resolveWriteConfigPath('project'),_0x15df0c=readConfigFile(_0x4bc30e),_0x34688c=resolveKnownApps(),_0x4df4e6=isRecord(_0x15df0c[_0x3b1b84(0xb9)])?{..._0x15df0c[_0x3b1b84(0xb9)]}:{},_0xc0ecf7=cloneProfile(_0x4df4e6[_0x830bf3]),_0x56699d=sanitizeProfile(_0x34688c[_0x830bf3]),_0x13924d=_0xc7e59c?{}:_0x56699d,_0x331f81=_0xc7e59c||_0x13924d[_0x3b1b84(0xb1)];if(!_0x331f81){const _0xd0495b=Object[_0x3b1b84(0xb0)](_0x34688c),_0xd6eaba=_0xd0495b[_0x3b1b84(0xc6)]===0x0?_0x3b1b84(0xa6)+CLI_BIN_NAME+_0x3b1b84(0xb8)+_0x3e4e74+'\x20--app\x20'+_0x830bf3+_0x3b1b84(0xbf):_0x3b1b84(0xbc)+_0xd0495b['join'](',\x20');throw CliErrors[_0x3b1b84(0x9f)](_0x3b1b84(0xd1)+_0x830bf3+_0x3b1b84(0xa0),_0xd6eaba);}assertValidAppcode(String(_0x331f81));const _0xc8206a={..._0x13924d,..._0xc0ecf7,'appcode':String(_0x331f81),...collectWorkspaceProfileOverrides(_0x385d3a)};return _0x4df4e6[_0x830bf3]=_0xc8206a,_0x15df0c[_0x3b1b84(0xb9)]=_0x4df4e6,_0x15df0c[_0x3b1b84(0xa7)]=_0x830bf3,delete _0x15df0c['appcode'],delete _0x15df0c[_0x3b1b84(0xc5)],_0xc8206a[_0x3b1b84(0xa4)]&&(_0x15df0c[_0x3b1b84(0xa4)]=_0xc8206a[_0x3b1b84(0xa4)]),writeConfigFile(_0x4bc30e,_0x15df0c),{'ok':!![],'message':_0x3b1b84(0xab)+(_0x3e4e74===_0x3b1b84(0xcc)?_0x3b1b84(0xb6):_0x3b1b84(0xc1))+':\x20'+_0x830bf3+'\x20(appcode:\x20'+_0xc8206a[_0x3b1b84(0xb1)]+_0x3b1b84(0xb3)+_0x4bc30e+_0x3b1b84(0xac),'data':{'operation':'workspace.'+_0x3e4e74,'configPath':_0x4bc30e,'app':_0x830bf3,'appcode':_0xc8206a[_0x3b1b84(0xb1)],'env':_0xc8206a[_0x3b1b84(0xa4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':a180_0x437ccd(0xd2),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x41b56a=>configureWorkspace(_0x41b56a,'init')},workspaceUseDefinition={'service':'workspace','command':a180_0x437ccd(0xaf),'description':a180_0x437ccd(0xc4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2582da=>configureWorkspace(_0x2582da,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a181_0x5a0dc1=a181_0x22a9;(function(_0x528095,_0x267095){const _0x459dbc=a181_0x22a9,_0x265ff3=_0x528095();while(!![]){try{const _0x1350c8=parseInt(_0x459dbc(0x185))/0x1*(parseInt(_0x459dbc(0x188))/0x2)+-parseInt(_0x459dbc(0x186))/0x3+-parseInt(_0x459dbc(0x17c))/0x4*(parseInt(_0x459dbc(0x18a))/0x5)+-parseInt(_0x459dbc(0x18e))/0x6*(parseInt(_0x459dbc(0x171))/0x7)+parseInt(_0x459dbc(0x190))/0x8*(parseInt(_0x459dbc(0x19d))/0x9)+parseInt(_0x459dbc(0x196))/0xa*(parseInt(_0x459dbc(0x176))/0xb)+parseInt(_0x459dbc(0x172))/0xc;if(_0x1350c8===_0x267095)break;else _0x265ff3['push'](_0x265ff3['shift']());}catch(_0x17bdcd){_0x265ff3['push'](_0x265ff3['shift']());}}}(a181_0x5aef,0xc286c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';function a181_0x22a9(_0x2f342b,_0x4be18b){_0x2f342b=_0x2f342b-0x167;const _0x5aef20=a181_0x5aef();let _0x22a902=_0x5aef20[_0x2f342b];return _0x22a902;}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_0x5a0dc1(0x16d),SAFE_PROFILE_KEYS=['appcode',a181_0x5a0dc1(0x19f),a181_0x5a0dc1(0x173),a181_0x5a0dc1(0x197),a181_0x5a0dc1(0x17a),a181_0x5a0dc1(0x183),a181_0x5a0dc1(0x192)],workspaceFlags=[{'name':a181_0x5a0dc1(0x182),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a181_0x5a0dc1(0x178),'description':a181_0x5a0dc1(0x18d)},{'name':a181_0x5a0dc1(0x19f),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a181_0x5a0dc1(0x178),'description':a181_0x5a0dc1(0x189)},{'name':a181_0x5a0dc1(0x191),'type':a181_0x5a0dc1(0x178),'description':a181_0x5a0dc1(0x181),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a181_0x5a0dc1(0x17a),'type':a181_0x5a0dc1(0x170),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a181_0x5a0dc1(0x183),'type':a181_0x5a0dc1(0x178),'description':a181_0x5a0dc1(0x198),'enum':[...RISK_LEVEL_VALUES]},{'name':a181_0x5a0dc1(0x192),'type':a181_0x5a0dc1(0x178),'description':'Locale\x20for\x20this\x20workspace\x20app\x20profile'}];function isRecord(_0xe84daa){const _0x488f5d=a181_0x5a0dc1;return!!_0xe84daa&&typeof _0xe84daa===_0x488f5d(0x179)&&!Array[_0x488f5d(0x168)](_0xe84daa);}function assertValidAppcode(_0x366523){const _0x25bd0a=a181_0x5a0dc1,{valid:_0x1636a7,message:_0xca3d83}=validateAppcode(_0x366523);if(!_0x1636a7)throw CliErrors['validation'](_0x25bd0a(0x19a)+_0x366523,_0xca3d83);}function sanitizeProfile(_0x35348f){if(!isRecord(_0x35348f))return{};const _0x51a3fb={};for(const _0x5ddc05 of SAFE_PROFILE_KEYS){if(_0x35348f[_0x5ddc05]!==undefined)_0x51a3fb[_0x5ddc05]=_0x35348f[_0x5ddc05];}return _0x51a3fb;}function cloneProfile(_0x4c7db3){return isRecord(_0x4c7db3)?{..._0x4c7db3}:{};}function collectWorkspaceProfileOverrides(_0x561c0d){const _0x2dfb8d=a181_0x5a0dc1,_0x4b4361={},_0xe609cb=_0x561c0d[_0x2dfb8d(0x187)]('env'),_0x15b340=_0x561c0d[_0x2dfb8d(0x187)]('apiDir'),_0x2eee2a=_0x561c0d['str']('defaultFormat'),_0x9544da=_0x561c0d[_0x2dfb8d(0x195)](_0x2dfb8d(0x17a)),_0x4ec7ab=_0x561c0d[_0x2dfb8d(0x187)](_0x2dfb8d(0x183)),_0x27e5ce=_0x561c0d[_0x2dfb8d(0x187)]('locale');if(_0xe609cb)_0x4b4361[_0x2dfb8d(0x19f)]=_0xe609cb;if(_0x15b340)_0x4b4361[_0x2dfb8d(0x173)]=_0x15b340;if(_0x2eee2a)_0x4b4361['format']=_0x2eee2a;if(_0x9544da!==undefined&&_0x9544da!=='')_0x4b4361[_0x2dfb8d(0x17a)]=Number(_0x9544da);if(_0x4ec7ab)_0x4b4361['riskLevel']=_0x4ec7ab;if(_0x27e5ce)_0x4b4361[_0x2dfb8d(0x192)]=_0x27e5ce;return _0x4b4361;}async function validateWorkspaceArgs(_0x14f09b){const _0x85a208=a181_0x5a0dc1,_0x2eacf6=_0x14f09b[_0x85a208(0x187)](_0x85a208(0x182))[_0x85a208(0x18b)](),_0x31f8ab=_0x14f09b[_0x85a208(0x187)](_0x85a208(0x194))[_0x85a208(0x18b)]();if(!_0x2eacf6&&!_0x31f8ab)throw CliErrors[_0x85a208(0x19c)](_0x85a208(0x180),_0x85a208(0x199)+CLI_BIN_NAME+_0x85a208(0x17d)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x31f8ab)assertValidAppcode(_0x31f8ab);}function resolveKnownApps(){const _0x3b0d09=a181_0x5a0dc1,{config:_0x4ceab3,layers:_0x3fd923}=readRawConfigWithLayers(),_0x143f96=isRecord(_0x4ceab3[_0x3b0d09(0x193)])?_0x4ceab3['apps']:{},_0x37ee1c=isRecord(_0x3fd923[_0x3b0d09(0x16c)]['apps'])?_0x3fd923[_0x3b0d09(0x16c)][_0x3b0d09(0x193)]:{};return{..._0x37ee1c,..._0x143f96};}async function configureWorkspace(_0x3c0fad,_0x41cc76){const _0x37832e=a181_0x5a0dc1,_0xd0303a=_0x3c0fad[_0x37832e(0x187)]('app')[_0x37832e(0x18b)](),_0x2691ee=_0x3c0fad[_0x37832e(0x187)]('appcode')[_0x37832e(0x18b)](),_0x5b35c9=_0xd0303a||_0x2691ee;if(!_0x5b35c9)throw CliErrors[_0x37832e(0x19c)]('Missing\x20workspace\x20app\x20selector.','Use\x20`'+CLI_BIN_NAME+_0x37832e(0x17d)+CLI_BIN_NAME+_0x37832e(0x174));if(_0x2691ee)assertValidAppcode(_0x2691ee);const _0x1f2580=resolveWriteConfigPath('project'),_0x318099=readConfigFile(_0x1f2580),_0x2d9710=resolveKnownApps(),_0x5e0f6f=isRecord(_0x318099[_0x37832e(0x193)])?{..._0x318099['apps']}:{},_0x5904e2=cloneProfile(_0x5e0f6f[_0x5b35c9]),_0x5ee603=sanitizeProfile(_0x2d9710[_0x5b35c9]),_0x479210=_0x2691ee?{}:_0x5ee603,_0x5f4921=_0x2691ee||_0x479210[_0x37832e(0x194)];if(!_0x5f4921){const _0x3170c2=Object[_0x37832e(0x169)](_0x2d9710),_0x43c501=_0x3170c2[_0x37832e(0x175)]===0x0?'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20'+_0x41cc76+_0x37832e(0x16f)+_0x5b35c9+_0x37832e(0x16b):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x3170c2[_0x37832e(0x177)](',\x20');throw CliErrors[_0x37832e(0x19c)](_0x37832e(0x17b)+_0x5b35c9+'\x22\x20not\x20found.',_0x43c501);}assertValidAppcode(String(_0x5f4921));const _0xe232c1={..._0x479210,..._0x5904e2,'appcode':String(_0x5f4921),...collectWorkspaceProfileOverrides(_0x3c0fad)};return _0x5e0f6f[_0x5b35c9]=_0xe232c1,_0x318099[_0x37832e(0x193)]=_0x5e0f6f,_0x318099[_0x37832e(0x19e)]=_0x5b35c9,delete _0x318099[_0x37832e(0x194)],delete _0x318099['app'],_0xe232c1['env']&&(_0x318099[_0x37832e(0x19f)]=_0xe232c1[_0x37832e(0x19f)]),writeConfigFile(_0x1f2580,_0x318099),{'ok':!![],'message':_0x37832e(0x184)+(_0x41cc76===_0x37832e(0x19b)?'initialized':_0x37832e(0x18f))+':\x20'+_0x5b35c9+_0x37832e(0x167)+_0xe232c1[_0x37832e(0x194)]+_0x37832e(0x17f)+_0x1f2580+_0x37832e(0x16e),'data':{'operation':'workspace.'+_0x41cc76,'configPath':_0x1f2580,'app':_0x5b35c9,'appcode':_0xe232c1[_0x37832e(0x194)],'env':_0xe232c1['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a181_0x5a0dc1(0x19b),'description':a181_0x5a0dc1(0x16a),'risk':a181_0x5a0dc1(0x17e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x18e95d=>configureWorkspace(_0x18e95d,'init')},workspaceUseDefinition={'service':a181_0x5a0dc1(0x18c),'command':a181_0x5a0dc1(0x1a0),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a181_0x5a0dc1(0x17e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x509a05=>configureWorkspace(_0x509a05,a181_0x5a0dc1(0x1a0))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};function a181_0x5aef(){const _0x3e3a76=['2PnsVqN','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','53555tZctpD','trim','workspace','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','3558072YHugyv','updated','184NmqLLw','defaultFormat','locale','apps','appcode','flag','11575470EWpBRq','format','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Use\x20`','Invalid\x20appcode:\x20','init','validation','53820BMeFPS','defaultApp','env','use','\x20(appcode:\x20','isArray','keys','Initialize\x20the\x20current\x20workspace\x20app\x20binding','\x20--appcode\x20<code>`.','globalConfig','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','.\x20Credentials:\x20not\x20written.','\x20--app\x20','number','7zmUIHB','12876108YmNmfe','apiDir','\x20workspace\x20use\x20--app\x20<name>`.','length','11WhMqcZ','join','string','object','pageSize','App\x20\x22','332HNwrKE','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','write',').\x20Config:\x20','Missing\x20workspace\x20app\x20selector.','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','app','riskLevel','Workspace\x20','1217933MIeyla','3921672CSmCIh','str'];a181_0x5aef=function(){return _0x3e3a76;};return a181_0x5aef();}
@@ -1 +1 @@
1
- const a181_0x56a829=a181_0x3316;function a181_0x5655(){const _0x528596=['53526iJHbFn','533548Boxaaz','5vVqbnS','4eoihDV','1484550VtgNHs','name','high-risk-write','App\x20profile\x20name\x20to\x20remove','45hPSSya','745031JafSbq','863568XVEqZQ','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','workspace\x20remove','327736iqhZUF','67342XmwVBG'];a181_0x5655=function(){return _0x528596;};return a181_0x5655();}(function(_0x5273aa,_0x393c56){const _0x433819=a181_0x3316,_0x2b432c=_0x5273aa();while(!![]){try{const _0x584069=parseInt(_0x433819(0x13b))/0x1*(-parseInt(_0x433819(0x137))/0x2)+parseInt(_0x433819(0x138))/0x3+-parseInt(_0x433819(0x139))/0x4*(parseInt(_0x433819(0x13a))/0x5)+-parseInt(_0x433819(0x133))/0x6+-parseInt(_0x433819(0x132))/0x7+-parseInt(_0x433819(0x136))/0x8+-parseInt(_0x433819(0x131))/0x9*(-parseInt(_0x433819(0x13c))/0xa);if(_0x584069===_0x393c56)break;else _0x2b432c['push'](_0x2b432c['shift']());}catch(_0x7dd282){_0x2b432c['push'](_0x2b432c['shift']());}}}(a181_0x5655,0x3100e));function a181_0x3316(_0x19606b,_0x5b33ab){_0x19606b=_0x19606b-0x12e;const _0x565584=a181_0x5655();let _0x331617=_0x565584[_0x19606b];return _0x331617;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':a181_0x56a829(0x134),'risk':a181_0x56a829(0x12f),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a181_0x56a829(0x12e),'description':a181_0x56a829(0x130),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x31e56f=>validateAppName(_0x31e56f,a181_0x56a829(0x135)),'execute':_0x28a7b1=>runAppRemove(_0x28a7b1,a181_0x56a829(0x135))};
1
+ const a182_0x39c5e7=a182_0x3781;function a182_0x3fa5(){const _0x3c4b39=['remove','720OqaEDq','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','49605gjpMmk','2040yDPrtF','22BUlysb','4ldFtTj','574713fvfRgM','483YuLLgz','570DedGmX','high-risk-write','5848rHAxmy','5549621TdYZML','12588SazmGi','2576480ADUaEH','workspace\x20remove','101881UXeZFm','App\x20profile\x20name\x20to\x20remove'];a182_0x3fa5=function(){return _0x3c4b39;};return a182_0x3fa5();}function a182_0x3781(_0x182c20,_0x53db38){_0x182c20=_0x182c20-0x141;const _0x3fa524=a182_0x3fa5();let _0x3781cc=_0x3fa524[_0x182c20];return _0x3781cc;}(function(_0x42832a,_0x3c2abe){const _0x2fbaea=a182_0x3781,_0x275500=_0x42832a();while(!![]){try{const _0xe25d6e=parseInt(_0x2fbaea(0x146))/0x1*(parseInt(_0x2fbaea(0x145))/0x2)+-parseInt(_0x2fbaea(0x147))/0x3*(parseInt(_0x2fbaea(0x14c))/0x4)+parseInt(_0x2fbaea(0x142))/0x5*(parseInt(_0x2fbaea(0x148))/0x6)+parseInt(_0x2fbaea(0x14b))/0x7+-parseInt(_0x2fbaea(0x14a))/0x8*(-parseInt(_0x2fbaea(0x152))/0x9)+parseInt(_0x2fbaea(0x14d))/0xa*(-parseInt(_0x2fbaea(0x144))/0xb)+parseInt(_0x2fbaea(0x143))/0xc*(-parseInt(_0x2fbaea(0x14f))/0xd);if(_0xe25d6e===_0x3c2abe)break;else _0x275500['push'](_0x275500['shift']());}catch(_0x587145){_0x275500['push'](_0x275500['shift']());}}}(a182_0x3fa5,0x8fc97));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a182_0x39c5e7(0x151),'description':a182_0x39c5e7(0x141),'risk':a182_0x39c5e7(0x149),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a182_0x39c5e7(0x150),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x196e08=>validateAppName(_0x196e08,'workspace\x20remove'),'execute':_0x2e7f11=>runAppRemove(_0x2e7f11,a182_0x39c5e7(0x14e))};
@@ -1 +1 @@
1
- const a182_0x4f3c8f=a182_0xfe01;(function(_0x2480a7,_0x148c87){const _0x3b8274=a182_0xfe01,_0x583a3a=_0x2480a7();while(!![]){try{const _0x49ad72=parseInt(_0x3b8274(0x13f))/0x1+parseInt(_0x3b8274(0x153))/0x2*(parseInt(_0x3b8274(0x13b))/0x3)+parseInt(_0x3b8274(0x15c))/0x4*(parseInt(_0x3b8274(0x15e))/0x5)+-parseInt(_0x3b8274(0x152))/0x6+parseInt(_0x3b8274(0x146))/0x7*(parseInt(_0x3b8274(0x136))/0x8)+parseInt(_0x3b8274(0x142))/0x9*(-parseInt(_0x3b8274(0x15a))/0xa)+parseInt(_0x3b8274(0x15b))/0xb;if(_0x49ad72===_0x148c87)break;else _0x583a3a['push'](_0x583a3a['shift']());}catch(_0x35f981){_0x583a3a['push'](_0x583a3a['shift']());}}}(a182_0x3f57,0x5034c));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';function a182_0x3f57(){const _0x20f615=['inherit','appcode','apps','accessKey','number','cookie','1010auGVHW','141757YlNRCg','23356tgPave','Locale','95lCULji','52944EAViwg','trim','Risk\x20level','Access\x20key','locale','1445718oDHoSr','Default\x20page\x20size','app','defaultApp','25055rDMkZA','format','env','11835ZOMCEc','en-US','toLowerCase','zh-CN','126oUtbxE','has','API\x20directory\x20path','length','string','Target\x20environment','apiDir','map','filter','pageSize','defaultFormat','riskLevel','1731444wawrOy','2NrHerw'];a182_0x3f57=function(){return _0x20f615;};return a182_0x3f57();}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a182_0x4f3c8f(0x159),a182_0x4f3c8f(0x157),'locale',a182_0x4f3c8f(0x140),'riskLevel'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a182_0x4f3c8f(0x141),a182_0x4f3c8f(0x13a),a182_0x4f3c8f(0x140),'cookie',a182_0x4f3c8f(0x157),a182_0x4f3c8f(0x14c)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0xae928d){return[..._0xae928d]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xc2fa77){const _0x192f6b=a182_0x4f3c8f;return TOP_LEVEL_CONFIG_KEYS[_0x192f6b(0x147)](_0xc2fa77);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a182_0x4f3c8f(0x141),'apiDir':'apiDir','cookie':a182_0x4f3c8f(0x159),'accessKey':a182_0x4f3c8f(0x157),'defaultFormat':'format','pageSize':a182_0x4f3c8f(0x14f),'riskLevel':a182_0x4f3c8f(0x151),'locale':a182_0x4f3c8f(0x13a)};function a182_0xfe01(_0x1cb9a8,_0x24fc9c){_0x1cb9a8=_0x1cb9a8-0x136;const _0x3f57d9=a182_0x3f57();let _0xfe01df=_0x3f57d9[_0x1cb9a8];return _0xfe01df;}export function getAppProfileFlagDefs(){const _0x17ce65=a182_0x4f3c8f;return[{'name':_0x17ce65(0x141),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x14b),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x17ce65(0x14c),'type':'string','description':_0x17ce65(0x148)},{'name':_0x17ce65(0x159),'type':_0x17ce65(0x14a),'description':'Auth\x20cookie','hidden':!![]},{'name':_0x17ce65(0x157),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x139),'hidden':!![]},{'name':_0x17ce65(0x150),'type':_0x17ce65(0x14a),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x17ce65(0x14f),'type':_0x17ce65(0x158),'description':_0x17ce65(0x13c)},{'name':'riskLevel','type':'string','description':_0x17ce65(0x138),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x17ce65(0x13a),'type':_0x17ce65(0x14a),'description':_0x17ce65(0x15d)}];}export function collectAppProfileOverrides(_0x18b7f7){const _0x4e0a3a=a182_0x4f3c8f,_0x1a05a7={};for(const [_0x5bf15c,_0x48b249]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x27e30e=_0x18b7f7(_0x5bf15c);if(!_0x27e30e)continue;_0x1a05a7[_0x48b249]=_0x48b249===_0x4e0a3a(0x14f)?Number(_0x27e30e):_0x27e30e;}return _0x1a05a7;}export function buildAppProfileListFields(_0x1e5534){const _0x1ac3c4=a182_0x4f3c8f;return{'env':_0x1e5534['env']??null,'apiDir':_0x1e5534[_0x1ac3c4(0x14c)]??null,'hasCookie':!!_0x1e5534['cookie'],'hasAccessKey':!!_0x1e5534['accessKey'],'format':_0x1e5534[_0x1ac3c4(0x140)]??null,'pageSize':_0x1e5534[_0x1ac3c4(0x14f)]??null,'riskLevel':_0x1e5534[_0x1ac3c4(0x151)]??null,'locale':_0x1e5534['locale']??null};}export function buildAppDoctorFields(_0x4f15a3,_0x51e162){const _0x416a50=a182_0x4f3c8f;return{'env':{'value':_0x4f15a3[_0x416a50(0x141)]||_0x51e162[_0x416a50(0x141)],'source':_0x4f15a3[_0x416a50(0x141)]?_0x416a50(0x13d):'inherit'},'apiDir':{'value':_0x4f15a3[_0x416a50(0x14c)]||_0x51e162['apiDir'],'source':_0x4f15a3[_0x416a50(0x14c)]?_0x416a50(0x13d):_0x416a50(0x154)},'cookie':{'value':_0x4f15a3[_0x416a50(0x159)]||_0x51e162['cookie'],'source':_0x4f15a3[_0x416a50(0x159)]?_0x416a50(0x13d):_0x416a50(0x154)},'accessKey':{'value':_0x4f15a3['accessKey']||_0x51e162[_0x416a50(0x157)],'source':_0x4f15a3['accessKey']?'app':_0x416a50(0x154)}};}export function buildCanonicalAppConfig(_0x582a7c,_0x23b137){const _0x534d24=a182_0x4f3c8f,_0x5b5916=_0x582a7c[_0x534d24(0x14d)](_0x3668cd=>String(_0x3668cd||'')[_0x534d24(0x137)]())[_0x534d24(0x14e)](Boolean);if(_0x5b5916[_0x534d24(0x149)]===0x0)return{};const _0x22e16d={};for(const _0x4afab7 of _0x5b5916){_0x22e16d[_0x4afab7]=_0x23b137?{'appcode':_0x4afab7,'env':_0x23b137}:{'appcode':_0x4afab7};}return{'apps':_0x22e16d,'defaultApp':_0x5b5916[0x0]};}export function buildCanonicalProjectConfig(_0x3ba78f,_0x37c7e8){const _0x1adb14=a182_0x4f3c8f,{appCodes:appCodes=[],env:_0x3130d3,metadata:_0x1247d0}=_0x37c7e8,_0x280cdd={..._0x3ba78f,..._0x1247d0||{}};delete _0x280cdd[_0x1adb14(0x155)],delete _0x280cdd[_0x1adb14(0x13d)];if(_0x3130d3)_0x280cdd[_0x1adb14(0x141)]=_0x3130d3;else!_0x280cdd['env']&&(_0x280cdd[_0x1adb14(0x141)]=DEFAULT_CONFIG_VALUES['env']);const _0x2a65d8=buildCanonicalAppConfig(appCodes,_0x280cdd['env']);return Object['keys'](_0x2a65d8)[_0x1adb14(0x149)]>0x0&&(_0x280cdd[_0x1adb14(0x156)]=_0x2a65d8[_0x1adb14(0x156)],_0x280cdd[_0x1adb14(0x13e)]=_0x2a65d8[_0x1adb14(0x13e)]),_0x280cdd;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a182_0x4f3c8f(0x145),'zh_cn':'zh-CN','en':a182_0x4f3c8f(0x143),'en-us':a182_0x4f3c8f(0x143),'en_us':a182_0x4f3c8f(0x143)};export function normalizeLocale(_0x18364f){const _0x36b4dc=a182_0x4f3c8f;if(!_0x18364f)return null;return LOCALE_MAP[_0x18364f[_0x36b4dc(0x144)]()]??null;}
1
+ const a183_0x13dab5=a183_0x523a;(function(_0x2a1a17,_0xb7749d){const _0x563fe6=a183_0x523a,_0x9ecab4=_0x2a1a17();while(!![]){try{const _0x55edfd=-parseInt(_0x563fe6(0xc1))/0x1*(parseInt(_0x563fe6(0xc6))/0x2)+parseInt(_0x563fe6(0xb0))/0x3+-parseInt(_0x563fe6(0xaa))/0x4*(-parseInt(_0x563fe6(0xba))/0x5)+-parseInt(_0x563fe6(0x9f))/0x6+parseInt(_0x563fe6(0xa1))/0x7+-parseInt(_0x563fe6(0xac))/0x8+parseInt(_0x563fe6(0xad))/0x9*(-parseInt(_0x563fe6(0xc5))/0xa);if(_0x55edfd===_0xb7749d)break;else _0x9ecab4['push'](_0x9ecab4['shift']());}catch(_0x4d4cdf){_0x9ecab4['push'](_0x9ecab4['shift']());}}}(a183_0x1440,0x8bee4));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_0x13dab5(0xb6),a183_0x13dab5(0xbe),'locale','format',a183_0x13dab5(0xb2)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a183_0x13dab5(0xa2),'locale',a183_0x13dab5(0xbb),a183_0x13dab5(0xb6),a183_0x13dab5(0xbe),a183_0x13dab5(0xc3)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x1922db){return[..._0x1922db]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4df1e9){const _0x47df90=a183_0x13dab5;return TOP_LEVEL_CONFIG_KEYS[_0x47df90(0xc7)](_0x4df1e9);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0xb168b3=a183_0x13dab5;return _0xb168b3(0xc4)+getTopLevelConfigKeySummary()+')';}function a183_0x523a(_0x37cb2a,_0x5c59e3){_0x37cb2a=_0x37cb2a-0x9f;const _0x14409f=a183_0x1440();let _0x523a4d=_0x14409f[_0x37cb2a];return _0x523a4d;}export const APP_PROFILE_FLAG_KEY_MAP={'env':a183_0x13dab5(0xa2),'apiDir':'apiDir','cookie':a183_0x13dab5(0xb6),'accessKey':a183_0x13dab5(0xbe),'defaultFormat':'format','pageSize':a183_0x13dab5(0xb1),'riskLevel':a183_0x13dab5(0xb2),'locale':a183_0x13dab5(0xa6)};function a183_0x1440(){const _0x24ece9=['zh-CN','apps','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','cookie','inherit','Risk\x20level','API\x20directory\x20path','4825tIqOYs','format','entries','toLowerCase','accessKey','filter','string','1733zWAhEs','Access\x20key','apiDir','Config\x20key\x20(','1510AaisUB','452oUKgAJ','has','2825256wgZSWo','Default\x20page\x20size','5745117iWSssD','env','en-US','keys','Auth\x20cookie','locale','defaultApp','length','appcode','3460WEUUrM','defaultFormat','8722880bXbxUI','4626CWUMHv','trim','app','2844624OjeMZP','pageSize','riskLevel'];a183_0x1440=function(){return _0x24ece9;};return a183_0x1440();}export function getAppProfileFlagDefs(){const _0x5782a8=a183_0x13dab5;return[{'name':_0x5782a8(0xa2),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x5782a8(0xb9)},{'name':_0x5782a8(0xb6),'type':_0x5782a8(0xc0),'description':_0x5782a8(0xa5),'hidden':!![]},{'name':_0x5782a8(0xbe),'type':_0x5782a8(0xc0),'description':_0x5782a8(0xc2),'hidden':!![]},{'name':_0x5782a8(0xab),'type':'string','description':_0x5782a8(0xb5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':'number','description':_0x5782a8(0xa0)},{'name':_0x5782a8(0xb2),'type':_0x5782a8(0xc0),'description':_0x5782a8(0xb8),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5782a8(0xa6),'type':_0x5782a8(0xc0),'description':'Locale'}];}export function collectAppProfileOverrides(_0x338d84){const _0x4ebd51=a183_0x13dab5,_0x5646f2={};for(const [_0x4b2b68,_0x46697d]of Object[_0x4ebd51(0xbc)](APP_PROFILE_FLAG_KEY_MAP)){const _0x4410d6=_0x338d84(_0x4b2b68);if(!_0x4410d6)continue;_0x5646f2[_0x46697d]=_0x46697d==='pageSize'?Number(_0x4410d6):_0x4410d6;}return _0x5646f2;}export function buildAppProfileListFields(_0x1c12c5){const _0x2e734f=a183_0x13dab5;return{'env':_0x1c12c5['env']??null,'apiDir':_0x1c12c5[_0x2e734f(0xc3)]??null,'hasCookie':!!_0x1c12c5['cookie'],'hasAccessKey':!!_0x1c12c5[_0x2e734f(0xbe)],'format':_0x1c12c5['format']??null,'pageSize':_0x1c12c5[_0x2e734f(0xb1)]??null,'riskLevel':_0x1c12c5[_0x2e734f(0xb2)]??null,'locale':_0x1c12c5[_0x2e734f(0xa6)]??null};}export function buildAppDoctorFields(_0x277bac,_0x2f8c0b){const _0x4cc5be=a183_0x13dab5;return{'env':{'value':_0x277bac['env']||_0x2f8c0b[_0x4cc5be(0xa2)],'source':_0x277bac[_0x4cc5be(0xa2)]?_0x4cc5be(0xaf):'inherit'},'apiDir':{'value':_0x277bac[_0x4cc5be(0xc3)]||_0x2f8c0b['apiDir'],'source':_0x277bac[_0x4cc5be(0xc3)]?_0x4cc5be(0xaf):'inherit'},'cookie':{'value':_0x277bac[_0x4cc5be(0xb6)]||_0x2f8c0b[_0x4cc5be(0xb6)],'source':_0x277bac[_0x4cc5be(0xb6)]?_0x4cc5be(0xaf):'inherit'},'accessKey':{'value':_0x277bac[_0x4cc5be(0xbe)]||_0x2f8c0b[_0x4cc5be(0xbe)],'source':_0x277bac['accessKey']?_0x4cc5be(0xaf):_0x4cc5be(0xb7)}};}export function buildCanonicalAppConfig(_0x16ad38,_0x352bad){const _0x3fa860=a183_0x13dab5,_0x53dc85=_0x16ad38['map'](_0x352423=>String(_0x352423||'')[_0x3fa860(0xae)]())[_0x3fa860(0xbf)](Boolean);if(_0x53dc85[_0x3fa860(0xa8)]===0x0)return{};const _0x511615={};for(const _0x21c44f of _0x53dc85){_0x511615[_0x21c44f]=_0x352bad?{'appcode':_0x21c44f,'env':_0x352bad}:{'appcode':_0x21c44f};}return{'apps':_0x511615,'defaultApp':_0x53dc85[0x0]};}export function buildCanonicalProjectConfig(_0x2d4c0c,_0x3bb69e){const _0xd9dd42=a183_0x13dab5,{appCodes:appCodes=[],env:_0x33fcd3,metadata:_0x48423a}=_0x3bb69e,_0x4634a1={..._0x2d4c0c,..._0x48423a||{}};delete _0x4634a1[_0xd9dd42(0xa9)],delete _0x4634a1[_0xd9dd42(0xaf)];if(_0x33fcd3)_0x4634a1[_0xd9dd42(0xa2)]=_0x33fcd3;else!_0x4634a1[_0xd9dd42(0xa2)]&&(_0x4634a1['env']=DEFAULT_CONFIG_VALUES[_0xd9dd42(0xa2)]);const _0x1c9778=buildCanonicalAppConfig(appCodes,_0x4634a1[_0xd9dd42(0xa2)]);return Object[_0xd9dd42(0xa4)](_0x1c9778)[_0xd9dd42(0xa8)]>0x0&&(_0x4634a1[_0xd9dd42(0xb4)]=_0x1c9778[_0xd9dd42(0xb4)],_0x4634a1[_0xd9dd42(0xa7)]=_0x1c9778[_0xd9dd42(0xa7)]),_0x4634a1;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a183_0x13dab5(0xb3),'zh_cn':a183_0x13dab5(0xb3),'en':a183_0x13dab5(0xa3),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x2601d8){const _0x11cdc8=a183_0x13dab5;if(!_0x2601d8)return null;return LOCALE_MAP[_0x2601d8[_0x11cdc8(0xbd)]()]??null;}
@@ -1 +1 @@
1
- function a183_0x41ff(){const _0x1ea367=['390651ZCKvAy','348019OgjOmK','276855nfRxsj','1822536FIxkjA','341686JmjCqP','88WrqDIB','1929112StpQoI','1fXcyVe','18hbEtcQ','2636220qkCzMy'];a183_0x41ff=function(){return _0x1ea367;};return a183_0x41ff();}(function(_0xc5528f,_0x35e2b6){const _0x57b845=a183_0x4b56,_0x2581de=_0xc5528f();while(!![]){try{const _0x51c435=parseInt(_0x57b845(0x10c))/0x1*(parseInt(_0x57b845(0x113))/0x2)+-parseInt(_0x57b845(0x10f))/0x3+-parseInt(_0x57b845(0x10b))/0x4+-parseInt(_0x57b845(0x111))/0x5*(-parseInt(_0x57b845(0x10d))/0x6)+-parseInt(_0x57b845(0x110))/0x7*(-parseInt(_0x57b845(0x114))/0x8)+-parseInt(_0x57b845(0x112))/0x9+parseInt(_0x57b845(0x10e))/0xa;if(_0x51c435===_0x35e2b6)break;else _0x2581de['push'](_0x2581de['shift']());}catch(_0x28799f){_0x2581de['push'](_0x2581de['shift']());}}}(a183_0x41ff,0x512b2));function a183_0x4b56(_0x1bf122,_0x307543){_0x1bf122=_0x1bf122-0x10b;const _0x41ff48=a183_0x41ff();let _0x4b56c9=_0x41ff48[_0x1bf122];return _0x4b56c9;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';
1
+ function a184_0x5bdb(){const _0x2ef0ad=['13RqhPvT','367410qlGkuf','72jWtTCF','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','1026135iUKZRk','525160vpKTKM','197484HcpRwk','34048356CnCnXt','220ERAbue','3920795nrgzPk','4cGasVp','355822jTeSfI','18GfugZX','5vJKuRO'];a184_0x5bdb=function(){return _0x2ef0ad;};return a184_0x5bdb();}const a184_0xebdfaf=a184_0x47a8;(function(_0xd7f5d1,_0x28dc4b){const _0x300a51=a184_0x47a8,_0x557836=_0xd7f5d1();while(!![]){try{const _0x271b43=parseInt(_0x300a51(0x15d))/0x1*(parseInt(_0x300a51(0x15b))/0x2)+-parseInt(_0x300a51(0x151))/0x3+-parseInt(_0x300a51(0x15a))/0x4*(parseInt(_0x300a51(0x159))/0x5)+-parseInt(_0x300a51(0x15c))/0x6*(-parseInt(_0x300a51(0x156))/0x7)+-parseInt(_0x300a51(0x152))/0x8*(parseInt(_0x300a51(0x154))/0x9)+parseInt(_0x300a51(0x155))/0xa*(-parseInt(_0x300a51(0x158))/0xb)+parseInt(_0x300a51(0x157))/0xc*(parseInt(_0x300a51(0x150))/0xd);if(_0x271b43===_0x28dc4b)break;else _0x557836['push'](_0x557836['shift']());}catch(_0x3a12a0){_0x557836['push'](_0x557836['shift']());}}}(a184_0x5bdb,0xca436));function a184_0x47a8(_0x2ad877,_0x180d57){_0x2ad877=_0x2ad877-0x150;const _0x5bdb11=a184_0x5bdb();let _0x47a8a6=_0x5bdb11[_0x2ad877];return _0x47a8a6;}export const CLI_VERSION_POLICY_URL=a184_0xebdfaf(0x153);
@@ -1 +1 @@
1
- function a184_0x310f(){const _0x86ffee=['production\x20|\x20daily','Rabetbase\x20CLI','Environment','Description','operation-type','246034SWbBKW','Page\x20number','nonInteractive','Description\x20file','Output\x20format','page','Force\x20non-interactive\x20mode\x20(CI)','expectParentId','3532030xjTQqf','dbId','non-interactive','SQL\x20string','expect-path','6728760leBtEN','menu-ids','enableBffSave','Show\x20help','SQL\x20code','Dataset\x20code','label','value','sql','appcode','params','stdin','Output\x20path','44MDDmfK','boolean','Comma-separated\x20menu\x20IDs','sqlName','description','fromEnv','map','DB\x20ID','sql-name','File\x20path','code','file','21cLELQw','description-file','json\x20|\x20pretty\x20|\x20compress','meowKey','Expected\x20current\x20child\x20count','7KdwgBZ','8wctSEp','expect-parent-id','Target\x20path','sort','operation','Watch\x20mode','global','watch','Select\x20app\x20profile\x20by\x20name','title','confirm','Operation\x20type','Apply\x20to\x20all','Use\x20remote','clear','app','Expected\x20current\x20parent\x20menu\x20id','rabetbase','parent-id','all','Page\x20size','force','db-id','Config\x20key','Schemas','env','tags','project','parentId','name','remote','expected-count','operationType','Expected\x20affected\x20count','Use\x20global\x20config\x20scope','65077aUSUae','schemas','enable-bff-save','pagesize','Clear','expectedChildrenCount','<name>','output','expected-children-count','<code>','dbid','functionNode','reveal','datasetcode','string','format','4261524FPaLeX','Use\x20project\x20config\x20scope','yes','SQL\x20name','Keyword\x20filter','Menu\x20sort\x20value','Override\x20appcode','keyword','2170130LWbDZs','sqlname','function-node','Config\x20value','1106516xsMnMk','dryRun','@lovrabet/rabetbase-cli','Menu\x20label','Parent\x20menu\x20id','Skip\x20import\x20generation','fromEntries','Title','JSON\x20params','Code\x20filter','Asynchronous\x20task\x20ID','target','sqlcode','dry-run','Function\x20node','type','Read\x20value\x20from\x20stdin','verbose','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Type\x20filter','Name','skipImports'];a184_0x310f=function(){return _0x86ffee;};return a184_0x310f();}const a184_0x7f76a0=a184_0x37a9;(function(_0x1b3e8e,_0x34b02a){const _0x712693=a184_0x37a9,_0x52549e=_0x1b3e8e();while(!![]){try{const _0x1d2d2c=-parseInt(_0x712693(0x270))/0x1+-parseInt(_0x712693(0x221))/0x2*(-parseInt(_0x712693(0x247))/0x3)+-parseInt(_0x712693(0x206))/0x4+parseInt(_0x712693(0x229))/0x5+parseInt(_0x712693(0x1fa))/0x6*(-parseInt(_0x712693(0x24c))/0x7)+-parseInt(_0x712693(0x24d))/0x8*(parseInt(_0x712693(0x22e))/0x9)+-parseInt(_0x712693(0x202))/0xa*(-parseInt(_0x712693(0x23b))/0xb);if(_0x1d2d2c===_0x34b02a)break;else _0x52549e['push'](_0x52549e['shift']());}catch(_0x37ac6f){_0x52549e['push'](_0x52549e['shift']());}}}(a184_0x310f,0x9b449));export const CLI_BIN_NAME=a184_0x7f76a0(0x25e);export const CLI_DISPLAY_NAME=a184_0x7f76a0(0x21d);export const NPM_PACKAGE_NAME=a184_0x7f76a0(0x208);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x200),'hint':a184_0x7f76a0(0x1f3)},{'name':a184_0x7f76a0(0x25c),'meowKey':'app','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x255),'hint':a184_0x7f76a0(0x1f0)},{'name':a184_0x7f76a0(0x266),'meowKey':a184_0x7f76a0(0x266),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21e),'hint':a184_0x7f76a0(0x21c)},{'name':a184_0x7f76a0(0x1f9),'meowKey':a184_0x7f76a0(0x1f9),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x225),'hint':a184_0x7f76a0(0x249)},{'name':'jq','meowKey':'jq','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x218),'hint':'<expr>'},{'name':a184_0x7f76a0(0x213),'meowKey':a184_0x7f76a0(0x207),'type':a184_0x7f76a0(0x23c),'description':'Preview\x20operation\x20without\x20executing'},{'name':a184_0x7f76a0(0x1fc),'meowKey':'yes','type':a184_0x7f76a0(0x23c),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a184_0x7f76a0(0x22b),'meowKey':a184_0x7f76a0(0x223),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x227)},{'name':a184_0x7f76a0(0x253),'meowKey':a184_0x7f76a0(0x253),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x26f)},{'name':'project','meowKey':a184_0x7f76a0(0x268),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1fb)},{'name':'ci','meowKey':'ci','type':a184_0x7f76a0(0x23c),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':'help','meowKey':'help','type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x231)},{'name':a184_0x7f76a0(0x26a),'meowKey':a184_0x7f76a0(0x26a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21a),'hidden':!![]},{'name':a184_0x7f76a0(0x256),'meowKey':a184_0x7f76a0(0x256),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20d),'hidden':!![]},{'name':'clear','meowKey':a184_0x7f76a0(0x25b),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x1ee),'hidden':!![]},{'name':'watch','meowKey':a184_0x7f76a0(0x254),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x252),'hidden':!![]},{'name':'output','meowKey':a184_0x7f76a0(0x1f1),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23a),'hidden':!![]},{'name':a184_0x7f76a0(0x238),'meowKey':a184_0x7f76a0(0x238),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20e),'hidden':!![]},{'name':a184_0x7f76a0(0x1f7),'meowKey':'datasetcode','type':'string','description':a184_0x7f76a0(0x233),'hidden':!![]},{'name':a184_0x7f76a0(0x260),'meowKey':a184_0x7f76a0(0x260),'type':a184_0x7f76a0(0x23c),'description':a184_0x7f76a0(0x259),'hidden':!![]},{'name':a184_0x7f76a0(0x272),'meowKey':a184_0x7f76a0(0x230),'type':a184_0x7f76a0(0x23c),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a184_0x7f76a0(0x215),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x219),'hidden':!![]},{'name':a184_0x7f76a0(0x246),'meowKey':a184_0x7f76a0(0x246),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x244),'hidden':!![]},{'name':'sqlcode','meowKey':a184_0x7f76a0(0x212),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x232),'hidden':!![]},{'name':a184_0x7f76a0(0x243),'meowKey':a184_0x7f76a0(0x23e),'type':a184_0x7f76a0(0x1f8),'description':'SQL\x20name','hidden':!![]},{'name':a184_0x7f76a0(0x203),'meowKey':a184_0x7f76a0(0x203),'type':'string','description':a184_0x7f76a0(0x1fd),'hidden':!![]},{'name':a184_0x7f76a0(0x263),'meowKey':a184_0x7f76a0(0x22a),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x1f4),'meowKey':a184_0x7f76a0(0x1f4),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x242),'hidden':!![]},{'name':a184_0x7f76a0(0x23f),'meowKey':a184_0x7f76a0(0x23f),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x21f),'hidden':!![]},{'name':a184_0x7f76a0(0x248),'meowKey':'descriptionFile','type':'string','description':a184_0x7f76a0(0x224),'hidden':!![]},{'name':a184_0x7f76a0(0x226),'meowKey':a184_0x7f76a0(0x226),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x222),'hidden':!![]},{'name':a184_0x7f76a0(0x1ed),'meowKey':a184_0x7f76a0(0x1ed),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x261),'hidden':!![]},{'name':a184_0x7f76a0(0x201),'meowKey':a184_0x7f76a0(0x201),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x1fe),'hidden':!![]},{'name':a184_0x7f76a0(0x245),'meowKey':'code','type':'string','description':a184_0x7f76a0(0x20f),'hidden':!![]},{'name':a184_0x7f76a0(0x236),'meowKey':a184_0x7f76a0(0x236),'type':'string','description':a184_0x7f76a0(0x22c),'hidden':!![]},{'name':'schemas','meowKey':a184_0x7f76a0(0x271),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x265),'hidden':!![]},{'name':a184_0x7f76a0(0x251),'meowKey':a184_0x7f76a0(0x251),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':'target','meowKey':a184_0x7f76a0(0x211),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24f),'hidden':!![]},{'name':'skip-imports','meowKey':a184_0x7f76a0(0x21b),'type':'boolean','description':a184_0x7f76a0(0x20b),'hidden':!![]},{'name':'key','meowKey':'key','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x264),'hidden':!![]},{'name':'value','meowKey':a184_0x7f76a0(0x235),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x205),'hidden':!![]},{'name':'tags','meowKey':a184_0x7f76a0(0x267),'type':'string','description':'Tags','hidden':!![]},{'name':a184_0x7f76a0(0x239),'meowKey':a184_0x7f76a0(0x239),'type':'boolean','description':a184_0x7f76a0(0x216),'hidden':!![]},{'name':'from-env','meowKey':a184_0x7f76a0(0x240),'type':a184_0x7f76a0(0x1f8),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':a184_0x7f76a0(0x1f6),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a184_0x7f76a0(0x262),'meowKey':a184_0x7f76a0(0x262),'type':a184_0x7f76a0(0x23c),'description':'Force\x20overwrite','hidden':!![]},{'name':a184_0x7f76a0(0x257),'meowKey':a184_0x7f76a0(0x257),'type':a184_0x7f76a0(0x23c),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a184_0x7f76a0(0x26b),'meowKey':a184_0x7f76a0(0x26b),'type':'boolean','description':a184_0x7f76a0(0x25a),'hidden':!![]},{'name':a184_0x7f76a0(0x217),'meowKey':'verbose','type':'boolean','description':'Verbose\x20output','hidden':!![]},{'name':a184_0x7f76a0(0x26c),'meowKey':'expectedCount','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x26e),'hidden':!![]},{'name':a184_0x7f76a0(0x234),'meowKey':'label','type':'string','description':a184_0x7f76a0(0x209),'hidden':!![]},{'name':a184_0x7f76a0(0x25f),'meowKey':a184_0x7f76a0(0x269),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x20a),'hidden':!![]},{'name':a184_0x7f76a0(0x250),'meowKey':a184_0x7f76a0(0x250),'type':'string','description':a184_0x7f76a0(0x1ff),'hidden':!![]},{'name':a184_0x7f76a0(0x24e),'meowKey':a184_0x7f76a0(0x228),'type':'string','description':a184_0x7f76a0(0x25d),'hidden':!![]},{'name':a184_0x7f76a0(0x22d),'meowKey':'expectPath','type':a184_0x7f76a0(0x1f8),'description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a184_0x7f76a0(0x1f2),'meowKey':a184_0x7f76a0(0x1ef),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x24b),'hidden':!![]},{'name':a184_0x7f76a0(0x22f),'meowKey':'menuIds','type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x23d),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':'string','description':a184_0x7f76a0(0x210),'hidden':!![]},{'name':a184_0x7f76a0(0x220),'meowKey':a184_0x7f76a0(0x26d),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x258),'hidden':!![]},{'name':a184_0x7f76a0(0x204),'meowKey':a184_0x7f76a0(0x1f5),'type':a184_0x7f76a0(0x1f8),'description':a184_0x7f76a0(0x214),'hidden':!![]}];function a184_0x37a9(_0x3da8e0,_0x42b2b5){_0x3da8e0=_0x3da8e0-0x1ed;const _0x310fa9=a184_0x310f();let _0x37a99c=_0x310fa9[_0x3da8e0];return _0x37a99c;}export const PIPELINE_FLAG_NAMES=new Set([a184_0x7f76a0(0x237),'app','env',a184_0x7f76a0(0x1f9),'jq','dry-run','yes',a184_0x7f76a0(0x22b),'ci']);export function buildMeowFlags(){const _0xfaca91=a184_0x7f76a0;return Object[_0xfaca91(0x20c)](GLOBAL_FLAGS[_0xfaca91(0x241)](_0xf47640=>[_0xf47640[_0xfaca91(0x24a)],{'type':_0xf47640[_0xfaca91(0x215)]}]));}
1
+ function a185_0x1e5b(_0x353086,_0x125e80){_0x353086=_0x353086-0xd8;const _0x4f5985=a185_0x4f59();let _0x1e5b85=_0x4f5985[_0x353086];return _0x1e5b85;}const a185_0x240ae8=a185_0x1e5b;(function(_0x38dae2,_0x147510){const _0x3477ee=a185_0x1e5b,_0x565815=_0x38dae2();while(!![]){try{const _0x108c94=-parseInt(_0x3477ee(0x155))/0x1*(-parseInt(_0x3477ee(0x142))/0x2)+parseInt(_0x3477ee(0xf3))/0x3+-parseInt(_0x3477ee(0x14e))/0x4+parseInt(_0x3477ee(0x117))/0x5*(-parseInt(_0x3477ee(0x157))/0x6)+-parseInt(_0x3477ee(0x134))/0x7*(-parseInt(_0x3477ee(0xe3))/0x8)+-parseInt(_0x3477ee(0x154))/0x9*(-parseInt(_0x3477ee(0x147))/0xa)+parseInt(_0x3477ee(0x113))/0xb;if(_0x108c94===_0x147510)break;else _0x565815['push'](_0x565815['shift']());}catch(_0x253c5e){_0x565815['push'](_0x565815['shift']());}}}(a185_0x4f59,0x434d6));export const CLI_BIN_NAME=a185_0x240ae8(0x135);function a185_0x4f59(){const _0x5bfec0=['keyword','DB\x20ID','expect-parent-id','Parent\x20menu\x20id','Watch\x20mode','page','Enable\x20BFF\x20save','Record\x20ID','skip-imports','Use\x20remote','expected-count','json\x20|\x20pretty\x20|\x20compress','operationType','type','Apply\x20to\x20all','operation-type','Function\x20node','Comma-separated\x20menu\x20IDs','help','sql-name','expectParentId','expectedChildrenCount','description','Expected\x20affected\x20count','382591ELbOZh','Override\x20appcode','sqlName','Target\x20path','970uSoQzo','label','schemas','global','expectPath','SQL\x20name','<name>','skipImports','Description\x20file','menu-ids','Alias\x20for\x20--non-interactive','force','dry-run','<code>','dryRun','sort','expected-children-count','Expected\x20current\x20menu\x20path','functionNode','params','Verbose\x20output','stdin','description-file','confirm','env','output','name','clear','string','3213rdejzy','rabetbase','appcode','yes','verbose','dbid','fromEntries','Force\x20overwrite','all','reveal','expect-path','enable-bff-save','Force\x20non-interactive\x20mode\x20(CI)','Operation\x20type','2AdlkDd','File\x20path','app','operation','JSON\x20params','506710mwlomp','Title','Asynchronous\x20task\x20ID','production\x20|\x20daily','Config\x20key','Output\x20format','parentId','1177260gzLeuc','Read\x20value\x20from\x20environment\x20variable','Menu\x20sort\x20value','SQL\x20code','Preview\x20operation\x20without\x20executing','boolean','27NZVtic','96456pXSsMz','Dataset\x20code','10974VOSNLX','key','menuIds','Rabetbase\x20CLI','parent-id','Select\x20app\x20profile\x20by\x20name','SQL\x20string','db-id','target','Read\x20value\x20from\x20stdin','value','sql','title','Skip\x20import\x20generation','Tags','format','Expected\x20current\x20parent\x20menu\x20id','watch','file','datasetcode','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','sqlcode','Clear','9088nbuqEz','Name','non-interactive','Page\x20number','project','Use\x20project\x20config\x20scope','fromEnv','pagesize','map','remote','Confirm\x20destructive\x20action','from-env','dbId','expectedCount','Code\x20filter','Keyword\x20filter','360411ertvQn','code','Show\x20help','Menu\x20label','sqlname','meowKey','tags','function-node'];a185_0x4f59=function(){return _0x5bfec0;};return a185_0x4f59();}export const CLI_DISPLAY_NAME=a185_0x240ae8(0x15a);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a185_0x240ae8(0x136),'meowKey':a185_0x240ae8(0x136),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x114),'hint':a185_0x240ae8(0x124)},{'name':'app','meowKey':a185_0x240ae8(0x144),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x15c),'hint':a185_0x240ae8(0x11d)},{'name':a185_0x240ae8(0x12f),'meowKey':a185_0x240ae8(0x12f),'type':a185_0x240ae8(0x133),'description':'Environment','hint':a185_0x240ae8(0x14a)},{'name':a185_0x240ae8(0xdb),'meowKey':'format','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x14c),'hint':a185_0x240ae8(0x106)},{'name':'jq','meowKey':'jq','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xe0),'hint':'<expr>'},{'name':a185_0x240ae8(0x123),'meowKey':a185_0x240ae8(0x125),'type':'boolean','description':a185_0x240ae8(0x152)},{'name':'yes','meowKey':'yes','type':'boolean','description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a185_0x240ae8(0xe5),'meowKey':'nonInteractive','type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x140)},{'name':'global','meowKey':a185_0x240ae8(0x11a),'type':a185_0x240ae8(0x153),'description':'Use\x20global\x20config\x20scope'},{'name':a185_0x240ae8(0xe7),'meowKey':a185_0x240ae8(0xe7),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xe8)},{'name':'ci','meowKey':'ci','type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x121),'hidden':!![]},{'name':'help','meowKey':a185_0x240ae8(0x10d),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xf5)},{'name':'name','meowKey':a185_0x240ae8(0x131),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xe4),'hidden':!![]},{'name':a185_0x240ae8(0xd8),'meowKey':a185_0x240ae8(0xd8),'type':'string','description':a185_0x240ae8(0x148),'hidden':!![]},{'name':'clear','meowKey':a185_0x240ae8(0x132),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xe2),'hidden':!![]},{'name':a185_0x240ae8(0xdd),'meowKey':'watch','type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xff),'hidden':!![]},{'name':a185_0x240ae8(0x130),'meowKey':a185_0x240ae8(0x130),'type':a185_0x240ae8(0x133),'description':'Output\x20path','hidden':!![]},{'name':a185_0x240ae8(0x12a),'meowKey':a185_0x240ae8(0x12a),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x146),'hidden':!![]},{'name':'datasetcode','meowKey':a185_0x240ae8(0xdf),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x156),'hidden':!![]},{'name':a185_0x240ae8(0x13c),'meowKey':a185_0x240ae8(0x13c),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x109),'hidden':!![]},{'name':a185_0x240ae8(0x13f),'meowKey':'enableBffSave','type':'boolean','description':a185_0x240ae8(0x101),'hidden':!![]},{'name':'id','meowKey':'id','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x102),'hidden':!![]},{'name':'type','meowKey':a185_0x240ae8(0x108),'type':a185_0x240ae8(0x133),'description':'Type\x20filter','hidden':!![]},{'name':a185_0x240ae8(0xde),'meowKey':'file','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x143),'hidden':!![]},{'name':a185_0x240ae8(0xe1),'meowKey':a185_0x240ae8(0xe1),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x151),'hidden':!![]},{'name':a185_0x240ae8(0x10e),'meowKey':a185_0x240ae8(0x115),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x11c),'hidden':!![]},{'name':'sqlname','meowKey':a185_0x240ae8(0xf7),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x11c),'hidden':!![]},{'name':a185_0x240ae8(0x15e),'meowKey':a185_0x240ae8(0xef),'type':'string','description':a185_0x240ae8(0xfc),'hidden':!![]},{'name':'dbid','meowKey':a185_0x240ae8(0x139),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xfc),'hidden':!![]},{'name':a185_0x240ae8(0x111),'meowKey':a185_0x240ae8(0x111),'type':a185_0x240ae8(0x133),'description':'Description','hidden':!![]},{'name':a185_0x240ae8(0x12d),'meowKey':'descriptionFile','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x11f),'hidden':!![]},{'name':a185_0x240ae8(0x100),'meowKey':a185_0x240ae8(0x100),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xe6),'hidden':!![]},{'name':a185_0x240ae8(0xea),'meowKey':a185_0x240ae8(0xea),'type':a185_0x240ae8(0x133),'description':'Page\x20size','hidden':!![]},{'name':a185_0x240ae8(0xfb),'meowKey':'keyword','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xf2),'hidden':!![]},{'name':a185_0x240ae8(0xf4),'meowKey':'code','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xf1),'hidden':!![]},{'name':a185_0x240ae8(0x162),'meowKey':a185_0x240ae8(0x162),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x15d),'hidden':!![]},{'name':a185_0x240ae8(0x119),'meowKey':a185_0x240ae8(0x119),'type':'string','description':'Schemas','hidden':!![]},{'name':a185_0x240ae8(0x145),'meowKey':a185_0x240ae8(0x145),'type':'string','description':a185_0x240ae8(0x141),'hidden':!![]},{'name':a185_0x240ae8(0x15f),'meowKey':a185_0x240ae8(0x15f),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x116),'hidden':!![]},{'name':a185_0x240ae8(0x103),'meowKey':a185_0x240ae8(0x11e),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xd9),'hidden':!![]},{'name':a185_0x240ae8(0x158),'meowKey':a185_0x240ae8(0x158),'type':'string','description':a185_0x240ae8(0x14b),'hidden':!![]},{'name':a185_0x240ae8(0x161),'meowKey':'value','type':'string','description':'Config\x20value','hidden':!![]},{'name':'tags','meowKey':a185_0x240ae8(0xf9),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xda),'hidden':!![]},{'name':'stdin','meowKey':a185_0x240ae8(0x12c),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x160),'hidden':!![]},{'name':a185_0x240ae8(0xee),'meowKey':a185_0x240ae8(0xe9),'type':'string','description':a185_0x240ae8(0x14f),'hidden':!![]},{'name':a185_0x240ae8(0x13d),'meowKey':'reveal','type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':'force','meowKey':a185_0x240ae8(0x122),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x13b),'hidden':!![]},{'name':a185_0x240ae8(0x12e),'meowKey':a185_0x240ae8(0x12e),'type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0xed),'hidden':!![]},{'name':a185_0x240ae8(0xec),'meowKey':a185_0x240ae8(0xec),'type':'boolean','description':a185_0x240ae8(0x104),'hidden':!![]},{'name':a185_0x240ae8(0x138),'meowKey':'verbose','type':a185_0x240ae8(0x153),'description':a185_0x240ae8(0x12b),'hidden':!![]},{'name':a185_0x240ae8(0x105),'meowKey':a185_0x240ae8(0xf0),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x112),'hidden':!![]},{'name':a185_0x240ae8(0x118),'meowKey':a185_0x240ae8(0x118),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xf6),'hidden':!![]},{'name':a185_0x240ae8(0x15b),'meowKey':a185_0x240ae8(0x14d),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0xfe),'hidden':!![]},{'name':a185_0x240ae8(0x126),'meowKey':a185_0x240ae8(0x126),'type':'string','description':a185_0x240ae8(0x150),'hidden':!![]},{'name':a185_0x240ae8(0xfd),'meowKey':a185_0x240ae8(0x10f),'type':'string','description':a185_0x240ae8(0xdc),'hidden':!![]},{'name':a185_0x240ae8(0x13e),'meowKey':a185_0x240ae8(0x11b),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x128),'hidden':!![]},{'name':a185_0x240ae8(0x127),'meowKey':a185_0x240ae8(0x110),'type':a185_0x240ae8(0x133),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a185_0x240ae8(0x120),'meowKey':a185_0x240ae8(0x159),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x10c),'hidden':!![]},{'name':'task-id','meowKey':'taskId','type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x149),'hidden':!![]},{'name':a185_0x240ae8(0x10a),'meowKey':a185_0x240ae8(0x107),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a185_0x240ae8(0xfa),'meowKey':a185_0x240ae8(0x129),'type':a185_0x240ae8(0x133),'description':a185_0x240ae8(0x10b),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a185_0x240ae8(0x136),a185_0x240ae8(0x144),'env',a185_0x240ae8(0xdb),'jq','dry-run',a185_0x240ae8(0x137),a185_0x240ae8(0xe5),'ci']);export function buildMeowFlags(){const _0x5be722=a185_0x240ae8;return Object[_0x5be722(0x13a)](GLOBAL_FLAGS[_0x5be722(0xeb)](_0x43db3f=>[_0x43db3f[_0x5be722(0xf8)],{'type':_0x43db3f[_0x5be722(0x108)]}]));}
@@ -1 +1 @@
1
- const a185_0x5b7ab0=a185_0x1e45;(function(_0x5311f6,_0x2a335b){const _0x5648bd=a185_0x1e45,_0x37c535=_0x5311f6();while(!![]){try{const _0xf09796=parseInt(_0x5648bd(0x19a))/0x1+parseInt(_0x5648bd(0x195))/0x2+parseInt(_0x5648bd(0x192))/0x3*(parseInt(_0x5648bd(0x197))/0x4)+parseInt(_0x5648bd(0x18f))/0x5+parseInt(_0x5648bd(0x191))/0x6*(-parseInt(_0x5648bd(0x190))/0x7)+-parseInt(_0x5648bd(0x199))/0x8+-parseInt(_0x5648bd(0x194))/0x9*(parseInt(_0x5648bd(0x198))/0xa);if(_0xf09796===_0x2a335b)break;else _0x37c535['push'](_0x37c535['shift']());}catch(_0x24510e){_0x37c535['push'](_0x37c535['shift']());}}}(a185_0x2fbd,0x24db5));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a185_0x5b7ab0(0x193),'format':a185_0x5b7ab0(0x196),'locale':a185_0x5b7ab0(0x18e),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};function a185_0x1e45(_0x2e870a,_0x336cc7){_0x2e870a=_0x2e870a-0x18e;const _0x2fbd37=a185_0x2fbd();let _0x1e458b=_0x2fbd37[_0x2e870a];return _0x1e458b;}function a185_0x2fbd(){const _0x35eccd=['compress','412dzuseH','10XZjDqa','1199576tfbwBj','210208ZykPBN','en-US','658980xRSxvE','49qeioqa','57648gTjixf','8709zeQulZ','production','2833011GZtIDu','83868KAwTnV'];a185_0x2fbd=function(){return _0x35eccd;};return a185_0x2fbd();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a185_0x5b7ab0(0x196);
1
+ const a186_0x3f36b7=a186_0x1c61;(function(_0x2aa812,_0x3a645f){const _0xe7775a=a186_0x1c61,_0x3e056f=_0x2aa812();while(!![]){try{const _0x7efe96=-parseInt(_0xe7775a(0xbc))/0x1+-parseInt(_0xe7775a(0xb9))/0x2+-parseInt(_0xe7775a(0xb8))/0x3*(parseInt(_0xe7775a(0xb6))/0x4)+-parseInt(_0xe7775a(0xbb))/0x5*(-parseInt(_0xe7775a(0xb5))/0x6)+-parseInt(_0xe7775a(0xb4))/0x7+-parseInt(_0xe7775a(0xbd))/0x8*(parseInt(_0xe7775a(0xb0))/0x9)+parseInt(_0xe7775a(0xb2))/0xa;if(_0x7efe96===_0x3a645f)break;else _0x3e056f['push'](_0x3e056f['shift']());}catch(_0xd06184){_0x3e056f['push'](_0x3e056f['shift']());}}}(a186_0x4706,0x59113));function a186_0x1c61(_0x3aa661,_0x3891ec){_0x3aa661=_0x3aa661-0xb0;const _0x4706af=a186_0x4706();let _0x1c6113=_0x4706af[_0x3aa661];return _0x1c6113;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a186_0x3f36b7(0xb1),'format':a186_0x3f36b7(0xba),'locale':a186_0x3f36b7(0xb7),'riskLevel':a186_0x3f36b7(0xb3),'apiDir':DEFAULT_API_DIR};function a186_0x4706(){const _0x448eb6=['552208pfpuaa','2728tVXSeM','11844iTdVFu','production','25580540gPELTv','high-risk-write','4184817tkAoGf','12aPRaVy','232erhtrw','en-US','29289QBDnEf','661884JfGAok','compress','756890LtESMN'];a186_0x4706=function(){return _0x448eb6;};return a186_0x4706();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a186_0x4206(_0x272b37,_0x1752a4){_0x272b37=_0x272b37-0x109;const _0xaec85a=a186_0xaec8();let _0x42061b=_0xaec85a[_0x272b37];return _0x42061b;}const a186_0x19ea62=a186_0x4206;(function(_0x5dc76f,_0x3f43e8){const _0xd3291b=a186_0x4206,_0x1cb0b1=_0x5dc76f();while(!![]){try{const _0x354197=parseInt(_0xd3291b(0x113))/0x1+parseInt(_0xd3291b(0x10e))/0x2*(-parseInt(_0xd3291b(0x11d))/0x3)+-parseInt(_0xd3291b(0x11b))/0x4+-parseInt(_0xd3291b(0x116))/0x5*(parseInt(_0xd3291b(0x109))/0x6)+parseInt(_0xd3291b(0x11c))/0x7*(-parseInt(_0xd3291b(0x10a))/0x8)+parseInt(_0xd3291b(0x114))/0x9*(parseInt(_0xd3291b(0x10d))/0xa)+-parseInt(_0xd3291b(0x10b))/0xb*(-parseInt(_0xd3291b(0x115))/0xc);if(_0x354197===_0x3f43e8)break;else _0x1cb0b1['push'](_0x1cb0b1['shift']());}catch(_0x54e93c){_0x1cb0b1['push'](_0x1cb0b1['shift']());}}}(a186_0xaec8,0x505a2));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x34a7f9){const _0x4f296d=a186_0x4206;customApiDomain=_0x34a7f9?.[_0x4f296d(0x117)],customUserDomain=_0x34a7f9?.['userDomain'],customRuntimeDomain=_0x34a7f9?.[_0x4f296d(0x111)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a186_0x19ea62(0x110));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a186_0x19ea62(0x112):a186_0x19ea62(0x10f));function a186_0xaec8(){const _0x105d22=['https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','/web-app/app/','2281504HzYvXu','439082iKJBhW','30741kAVyXd','https://app.lovrabet.com','https://daily.lovrabet.com','1637706ZknxeK','8HfqjXN','25927mFRTFp','trim','10Eraorx','12HryXkO','https://daily-api.lovrabet.com','https://user-daily.lovrabet.com','runtimeDomain','https://api.lovrabet.com','491966OQArJF','4908789scNgew','1320iKJAHK','5pKYlbH','apiDomain'];a186_0xaec8=function(){return _0x105d22;};return a186_0xaec8();}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a186_0x19ea62(0x118):a186_0x19ea62(0x119));export const getAppDomain=()=>isProduction(getEnv())?a186_0x19ea62(0x11e):a186_0x19ea62(0x11f);export const getAppBaseUrl=_0x17d463=>{const _0x38c1fa=a186_0x19ea62,_0x37fe21=encodeURIComponent(_0x17d463[_0x38c1fa(0x10c)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x37fe21:getAppDomain()+_0x38c1fa(0x11a)+_0x37fe21;};
1
+ const a187_0x4cc23c=a187_0x4188;(function(_0x758f7b,_0x761b54){const _0x368365=a187_0x4188,_0x4255b3=_0x758f7b();while(!![]){try{const _0x10503c=parseInt(_0x368365(0x12f))/0x1+parseInt(_0x368365(0x13e))/0x2+parseInt(_0x368365(0x131))/0x3+-parseInt(_0x368365(0x137))/0x4+-parseInt(_0x368365(0x12d))/0x5*(-parseInt(_0x368365(0x12e))/0x6)+parseInt(_0x368365(0x132))/0x7*(-parseInt(_0x368365(0x138))/0x8)+-parseInt(_0x368365(0x13f))/0x9;if(_0x10503c===_0x761b54)break;else _0x4255b3['push'](_0x4255b3['shift']());}catch(_0x54be0e){_0x4255b3['push'](_0x4255b3['shift']());}}}(a187_0x1b5e,0xafc3a));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1d3523){const _0x4d6b21=a187_0x4188;customApiDomain=_0x1d3523?.['apiDomain'],customUserDomain=_0x1d3523?.[_0x4d6b21(0x139)],customRuntimeDomain=_0x1d3523?.[_0x4d6b21(0x133)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a187_0x4cc23c(0x12c):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a187_0x4cc23c(0x134):a187_0x4cc23c(0x13a));function a187_0x4188(_0x50fbb0,_0x1c4b40){_0x50fbb0=_0x50fbb0-0x12c;const _0x1b5e94=a187_0x1b5e();let _0x418865=_0x1b5e94[_0x50fbb0];return _0x418865;}export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a187_0x4cc23c(0x13d):a187_0x4cc23c(0x130));export const getAppDomain=()=>isProduction(getEnv())?'https://app.lovrabet.com':a187_0x4cc23c(0x13b);export const getAppBaseUrl=_0x100c10=>{const _0x3d0a81=a187_0x4cc23c,_0x53ee36=encodeURIComponent(_0x100c10[_0x3d0a81(0x136)]());return isProduction(getEnv())?getAppDomain()+_0x3d0a81(0x13c)+_0x53ee36:getAppDomain()+_0x3d0a81(0x135)+_0x53ee36;};function a187_0x1b5e(){const _0x927244=['https://daily.lovrabet.com','/app/','https://runtime.lovrabet.com','2271554awEILu','17880867GXAUgo','https://user.lovrabet.com','6411980wtWwBq','6sNUGYw','1022655BQyxgx','https://daily-runtime.lovrabet.com','575565zlhPbu','14WlMvNI','runtimeDomain','https://api.lovrabet.com','/web-app/app/','trim','96768qpvJBM','3607192rUzyyp','userDomain','https://daily-api.lovrabet.com'];a187_0x1b5e=function(){return _0x927244;};return a187_0x1b5e();}
@@ -1 +1 @@
1
- const a187_0x4c0000=a187_0x4abb;(function(_0x1089b8,_0x41779a){const _0xa7f7df=a187_0x4abb,_0x544263=_0x1089b8();while(!![]){try{const _0x1932fc=parseInt(_0xa7f7df(0x1f6))/0x1+-parseInt(_0xa7f7df(0x1f4))/0x2*(-parseInt(_0xa7f7df(0x1f3))/0x3)+-parseInt(_0xa7f7df(0x1fe))/0x4*(parseInt(_0xa7f7df(0x201))/0x5)+-parseInt(_0xa7f7df(0x1f7))/0x6+-parseInt(_0xa7f7df(0x1fa))/0x7+parseInt(_0xa7f7df(0x200))/0x8*(-parseInt(_0xa7f7df(0x1ff))/0x9)+parseInt(_0xa7f7df(0x202))/0xa*(parseInt(_0xa7f7df(0x1f5))/0xb);if(_0x1932fc===_0x41779a)break;else _0x544263['push'](_0x544263['shift']());}catch(_0x16b9ed){_0x544263['push'](_0x544263['shift']());}}}(a187_0xcae2,0x8e701));export const RABETBASE_ENV_VALUES=[a187_0x4c0000(0x1fd),a187_0x4c0000(0x1f8)];function a187_0xcae2(){const _0x4ee8f9=['production','100eEsSCu','105498oPOsCC','368zUwmjg','142765EjTsEv','470szhYcG','42pspEsk','82972RszPOu','477169FfVarR','680280UeYbHD','2300844iwAZLj','daily','online','7559727naOGlc','development','dev'];a187_0xcae2=function(){return _0x4ee8f9;};return a187_0xcae2();}export function normalizeEnv(_0x39a962){const _0x29d674=a187_0x4c0000;return _0x39a962===_0x29d674(0x1f9)?_0x29d674(0x1fd):_0x39a962;}export function isProduction(_0x12ea98){const _0x16a474=a187_0x4c0000;return normalizeEnv(_0x12ea98)===_0x16a474(0x1fd);}export function isDaily(_0x2b1c24){return normalizeEnv(_0x2b1c24)==='daily';}export function isDev(_0x838ec3){const _0x3d7a58=a187_0x4c0000,_0x32cae4=normalizeEnv(_0x838ec3);return _0x32cae4===_0x3d7a58(0x1fb)||_0x32cae4===_0x3d7a58(0x1fc);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a187_0x4c0000(0x1fd));function a187_0x4abb(_0x4dc820,_0x4e00c7){_0x4dc820=_0x4dc820-0x1f3;const _0xcae212=a187_0xcae2();let _0x4abbce=_0xcae212[_0x4dc820];return _0x4abbce;}export function getEnv(){return env;}export function initEnv(_0x11b275){env=normalizeEnv(_0x11b275);}
1
+ function a188_0x4c6b(){const _0x6ef98d=['online','27430TtZzYz','1014490tSuZbp','3336687utqJYX','1573emuXfH','production','8vtdHuV','daily','development','1457407wgnPzq','4YSiJMT','913COOXQc','310huRooC','923298cuqVPj','1104540ATDubt'];a188_0x4c6b=function(){return _0x6ef98d;};return a188_0x4c6b();}const a188_0x16bf7c=a188_0x3710;(function(_0x176335,_0x14464f){const _0x4d22ac=a188_0x3710,_0x29f3a7=_0x176335();while(!![]){try{const _0x3a1a40=-parseInt(_0x4d22ac(0x116))/0x1*(-parseInt(_0x4d22ac(0x117))/0x2)+parseInt(_0x4d22ac(0x118))/0x3+-parseInt(_0x4d22ac(0x115))/0x4*(parseInt(_0x4d22ac(0x11c))/0x5)+parseInt(_0x4d22ac(0x119))/0x6+-parseInt(_0x4d22ac(0x114))/0x7*(parseInt(_0x4d22ac(0x120))/0x8)+parseInt(_0x4d22ac(0x11d))/0x9+-parseInt(_0x4d22ac(0x11b))/0xa*(parseInt(_0x4d22ac(0x11e))/0xb);if(_0x3a1a40===_0x14464f)break;else _0x29f3a7['push'](_0x29f3a7['shift']());}catch(_0x8553f1){_0x29f3a7['push'](_0x29f3a7['shift']());}}}(a188_0x4c6b,0x3103e));export const RABETBASE_ENV_VALUES=[a188_0x16bf7c(0x11f),a188_0x16bf7c(0x121)];export function normalizeEnv(_0x58d586){const _0x5854d1=a188_0x16bf7c;return _0x58d586===_0x5854d1(0x11a)?_0x5854d1(0x11f):_0x58d586;}export function isProduction(_0x4aa69d){const _0x4d9fff=a188_0x16bf7c;return normalizeEnv(_0x4aa69d)===_0x4d9fff(0x11f);}export function isDaily(_0x2f2eaa){const _0x2ed35d=a188_0x16bf7c;return normalizeEnv(_0x2f2eaa)===_0x2ed35d(0x121);}function a188_0x3710(_0x23c5e6,_0x13c088){_0x23c5e6=_0x23c5e6-0x114;const _0x4c6b51=a188_0x4c6b();let _0x371037=_0x4c6b51[_0x23c5e6];return _0x371037;}export function isDev(_0x581519){const _0x30ea7b=a188_0x16bf7c,_0x44011d=normalizeEnv(_0x581519);return _0x44011d===_0x30ea7b(0x122)||_0x44011d==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a188_0x16bf7c(0x11f));export function getEnv(){return env;}export function initEnv(_0x30f5fc){env=normalizeEnv(_0x30f5fc);}
@@ -1 +1 @@
1
- function a188_0x3db6(_0x45edf1,_0x111834){_0x45edf1=_0x45edf1-0x162;const _0x36c423=a188_0x36c4();let _0x3db690=_0x36c423[_0x45edf1];return _0x3db690;}const a188_0x4e1b88=a188_0x3db6;(function(_0x286310,_0x23c988){const _0x3a95c2=a188_0x3db6,_0x50c16e=_0x286310();while(!![]){try{const _0x5692b3=parseInt(_0x3a95c2(0x16a))/0x1*(-parseInt(_0x3a95c2(0x163))/0x2)+parseInt(_0x3a95c2(0x16c))/0x3+parseInt(_0x3a95c2(0x168))/0x4+parseInt(_0x3a95c2(0x16b))/0x5*(parseInt(_0x3a95c2(0x164))/0x6)+parseInt(_0x3a95c2(0x165))/0x7*(-parseInt(_0x3a95c2(0x166))/0x8)+parseInt(_0x3a95c2(0x16f))/0x9*(-parseInt(_0x3a95c2(0x162))/0xa)+parseInt(_0x3a95c2(0x170))/0xb*(-parseInt(_0x3a95c2(0x16d))/0xc);if(_0x5692b3===_0x23c988)break;else _0x50c16e['push'](_0x50c16e['shift']());}catch(_0x14e875){_0x50c16e['push'](_0x50c16e['shift']());}}}(a188_0x36c4,0x6c72b));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a188_0x4e1b88(0x167),a188_0x4e1b88(0x169),a188_0x4e1b88(0x16e)];function a188_0x36c4(){const _0x1080f0=['7632zaRuZm','json','1572440tsMjgu','pretty','137HvJTyz','3255335RjqpFH','524673AjGPUz','139500UCGefO','compress','53739YCnbnk','209pIpXNA','530GBGnMW','2618nhkxqv','6XUMcGn','427BdypIW'];a188_0x36c4=function(){return _0x1080f0;};return a188_0x36c4();}
1
+ function a189_0x581d(_0xdf3f24,_0x5d7e40){_0xdf3f24=_0xdf3f24-0x117;const _0x3c2450=a189_0x3c24();let _0x581d05=_0x3c2450[_0xdf3f24];return _0x581d05;}const a189_0x474fc0=a189_0x581d;function a189_0x3c24(){const _0x3b061e=['1257384CXkHZP','15495ynzncb','json','162366nntupv','3348800SDSjdK','6041574ghuunc','90iAwvjc','1397684DiKnud','compress','14wwLgbT','330753BXFznh'];a189_0x3c24=function(){return _0x3b061e;};return a189_0x3c24();}(function(_0x4b24f7,_0x1fea86){const _0x252652=a189_0x581d,_0x35eef7=_0x4b24f7();while(!![]){try{const _0x111918=-parseInt(_0x252652(0x117))/0x1*(parseInt(_0x252652(0x11f))/0x2)+-parseInt(_0x252652(0x120))/0x3+-parseInt(_0x252652(0x11d))/0x4+-parseInt(_0x252652(0x11c))/0x5*(-parseInt(_0x252652(0x119))/0x6)+-parseInt(_0x252652(0x11a))/0x7+parseInt(_0x252652(0x121))/0x8+parseInt(_0x252652(0x11b))/0x9;if(_0x111918===_0x1fea86)break;else _0x35eef7['push'](_0x35eef7['shift']());}catch(_0x2a25bb){_0x35eef7['push'](_0x35eef7['shift']());}}}(a189_0x3c24,0x41adc));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a189_0x474fc0(0x118),'pretty',a189_0x474fc0(0x11e)];
@@ -1 +1 @@
1
- function a189_0x5a09(){const _0x51c62b=['2194872buGukB','32KSiLgr','9107959zlrhzc','6376740eYgtuV','166251zgIbnR','18palDRh','113075VJfKIc','./src/api','9299464heKvji','551779OYQlBI','342Doirzr'];a189_0x5a09=function(){return _0x51c62b;};return a189_0x5a09();}const a189_0x52b1de=a189_0xeef6;(function(_0x3ea58d,_0x4e38f7){const _0x5b077e=a189_0xeef6,_0x159085=_0x3ea58d();while(!![]){try{const _0x5c4199=-parseInt(_0x5b077e(0xa1))/0x1+parseInt(_0x5b077e(0xa3))/0x2+parseInt(_0x5b077e(0xa7))/0x3*(parseInt(_0x5b077e(0xa4))/0x4)+parseInt(_0x5b077e(0xa9))/0x5*(-parseInt(_0x5b077e(0xa2))/0x6)+-parseInt(_0x5b077e(0xa5))/0x7+parseInt(_0x5b077e(0xa0))/0x8+parseInt(_0x5b077e(0xa8))/0x9*(parseInt(_0x5b077e(0xa6))/0xa);if(_0x5c4199===_0x4e38f7)break;else _0x159085['push'](_0x159085['shift']());}catch(_0x30a952){_0x159085['push'](_0x159085['shift']());}}}(a189_0x5a09,0xcc3e6));function a189_0xeef6(_0xb7322d,_0x53956a){_0xb7322d=_0xb7322d-0xa0;const _0x5a09cd=a189_0x5a09();let _0xeef620=_0x5a09cd[_0xb7322d];return _0xeef620;}export const DEFAULT_API_DIR=a189_0x52b1de(0xaa);
1
+ const a190_0x3ce0a4=a190_0xb85c;(function(_0x2d37f9,_0x5c2384){const _0x4d517c=a190_0xb85c,_0x271704=_0x2d37f9();while(!![]){try{const _0x3e5953=parseInt(_0x4d517c(0x138))/0x1+parseInt(_0x4d517c(0x139))/0x2*(parseInt(_0x4d517c(0x136))/0x3)+-parseInt(_0x4d517c(0x131))/0x4+-parseInt(_0x4d517c(0x13c))/0x5*(-parseInt(_0x4d517c(0x135))/0x6)+-parseInt(_0x4d517c(0x133))/0x7*(parseInt(_0x4d517c(0x137))/0x8)+-parseInt(_0x4d517c(0x13a))/0x9*(parseInt(_0x4d517c(0x132))/0xa)+parseInt(_0x4d517c(0x134))/0xb;if(_0x3e5953===_0x5c2384)break;else _0x271704['push'](_0x271704['shift']());}catch(_0x5d80e5){_0x271704['push'](_0x271704['shift']());}}}(a190_0x2979,0xb4284));function a190_0xb85c(_0x369a6b,_0xcbe9d){_0x369a6b=_0x369a6b-0x131;const _0x297902=a190_0x2979();let _0xb85c07=_0x297902[_0x369a6b];return _0xb85c07;}export const DEFAULT_API_DIR=a190_0x3ce0a4(0x13b);function a190_0x2979(){const _0x5ec1bf=['16lZQIpw','120865hUOVpj','862vnHCJf','135NGbtkX','./src/api','545xWrrYv','1477576eYmJab','869640qRxPWP','1724982hMUopw','14181508WvUpoS','24522vzTSnx','7302rveiRh'];a190_0x2979=function(){return _0x5ec1bf;};return a190_0x2979();}
@@ -1 +1 @@
1
- function a190_0x368a(){const _0x513d96=['944923ejwyRv','779980vQvqEh','68hOLyGa','198570pbLQao','2755044GbLecm','102GGnjlD','8853336XgFqia','16655607xDlNkD','10EmaMqR','73115yXuRWy','high-risk-write'];a190_0x368a=function(){return _0x513d96;};return a190_0x368a();}const a190_0x4ebd26=a190_0x7a26;(function(_0x56eae9,_0x101399){const _0x2b15f3=a190_0x7a26,_0x82e3a2=_0x56eae9();while(!![]){try{const _0x54f16b=-parseInt(_0x2b15f3(0x10f))/0x1+parseInt(_0x2b15f3(0x110))/0x2+-parseInt(_0x2b15f3(0x113))/0x3+parseInt(_0x2b15f3(0x111))/0x4*(-parseInt(_0x2b15f3(0x112))/0x5)+-parseInt(_0x2b15f3(0x114))/0x6*(-parseInt(_0x2b15f3(0x10d))/0x7)+parseInt(_0x2b15f3(0x10a))/0x8+-parseInt(_0x2b15f3(0x10b))/0x9*(-parseInt(_0x2b15f3(0x10c))/0xa);if(_0x54f16b===_0x101399)break;else _0x82e3a2['push'](_0x82e3a2['shift']());}catch(_0x1fbafc){_0x82e3a2['push'](_0x82e3a2['shift']());}}}(a190_0x368a,0xf0d44));function a190_0x7a26(_0x28e379,_0x286884){_0x28e379=_0x28e379-0x10a;const _0x368a39=a190_0x368a();let _0x7a26b2=_0x368a39[_0x28e379];return _0x7a26b2;}export const RISK_LEVEL_VALUES=['read','write',a190_0x4ebd26(0x10e)];
1
+ const a191_0x205259=a191_0x3c5a;(function(_0x5bac29,_0x43add9){const _0x532d96=a191_0x3c5a,_0x2c1030=_0x5bac29();while(!![]){try{const _0x7743ad=-parseInt(_0x532d96(0x1bd))/0x1*(parseInt(_0x532d96(0x1b7))/0x2)+parseInt(_0x532d96(0x1bc))/0x3*(-parseInt(_0x532d96(0x1b6))/0x4)+parseInt(_0x532d96(0x1b5))/0x5+-parseInt(_0x532d96(0x1b4))/0x6+-parseInt(_0x532d96(0x1ba))/0x7+-parseInt(_0x532d96(0x1b8))/0x8*(parseInt(_0x532d96(0x1b1))/0x9)+-parseInt(_0x532d96(0x1bb))/0xa*(-parseInt(_0x532d96(0x1b2))/0xb);if(_0x7743ad===_0x43add9)break;else _0x2c1030['push'](_0x2c1030['shift']());}catch(_0x5e2cf5){_0x2c1030['push'](_0x2c1030['shift']());}}}(a191_0x1889,0xa22e2));export const RISK_LEVEL_VALUES=['read',a191_0x205259(0x1b3),a191_0x205259(0x1b9)];function a191_0x3c5a(_0x1af521,_0x5d8895){_0x1af521=_0x1af521-0x1b1;const _0x18895c=a191_0x1889();let _0x3c5abd=_0x18895c[_0x1af521];return _0x3c5abd;}function a191_0x1889(){const _0x1096a9=['write','3419748ACFoMI','4469960BOeYHW','1725076IcmVdg','2cHAPpX','5368SjkLYA','high-risk-write','5022192BfQpqs','50RvBDfB','6LFfJmj','43779srJBJR','2979WFHzAm','4809486dpZcMp'];a191_0x1889=function(){return _0x1096a9;};return a191_0x1889();}
@@ -1 +1 @@
1
- (function(_0x244766,_0x132f42){const _0x4b7ecc=a191_0x4461,_0x1b38e0=_0x244766();while(!![]){try{const _0x438285=parseInt(_0x4b7ecc(0x16e))/0x1+-parseInt(_0x4b7ecc(0x16d))/0x2*(-parseInt(_0x4b7ecc(0x16b))/0x3)+parseInt(_0x4b7ecc(0x18b))/0x4+-parseInt(_0x4b7ecc(0x191))/0x5*(-parseInt(_0x4b7ecc(0x172))/0x6)+parseInt(_0x4b7ecc(0x18c))/0x7+parseInt(_0x4b7ecc(0x183))/0x8*(parseInt(_0x4b7ecc(0x174))/0x9)+-parseInt(_0x4b7ecc(0x16f))/0xa*(parseInt(_0x4b7ecc(0x18a))/0xb);if(_0x438285===_0x132f42)break;else _0x1b38e0['push'](_0x1b38e0['shift']());}catch(_0x32e29d){_0x1b38e0['push'](_0x1b38e0['shift']());}}}(a191_0x4167,0x73ac3));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a191_0x4167(){const _0x427c23=['globalConfig','3VcHKvL','defaultApp','1556398VPzUQe','583687Yakntv','10EcDdzG','daily','ENV','3450ortktY','riskLevel','1736541aQRzJm','production','trim','apiDir','ACCESS_KEY','cookie','accessKey','app','pageSize','true','keys','appcode','inherit','COOKIE','apps','24MnvtdT','find','object','locale','APP','entries','length','25439447njppWW','1924156yzbaiw','2548875Wrkevw','PAGE_SIZE','string','format','env','5GMRLWZ','RISK_LEVEL','projectConfig','write','FORMAT'];a191_0x4167=function(){return _0x427c23;};return a191_0x4167();}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x2720cc){const _0x5e7721=a191_0x4461;return typeof _0x2720cc===_0x5e7721(0x18e)&&_0x2720cc[_0x5e7721(0x176)]()?_0x2720cc['trim']():undefined;}function a191_0x4461(_0x2c00e8,_0x4e1c4f){_0x2c00e8=_0x2c00e8-0x16b;const _0x4167ea=a191_0x4167();let _0x4461c1=_0x4167ea[_0x2c00e8];return _0x4461c1;}function appProfiles(_0x8d85c3){const _0x45a056=a191_0x4461;return _0x8d85c3[_0x45a056(0x182)]&&typeof _0x8d85c3[_0x45a056(0x182)]===_0x45a056(0x185)?_0x8d85c3[_0x45a056(0x182)]:{};}function resolveDefaultAppName(_0x5318b8){const _0x18c67f=a191_0x4461,_0x2391e7=stringConfigValue(_0x5318b8['defaultApp']);if(_0x2391e7)return _0x2391e7;return Object[_0x18c67f(0x17e)](appProfiles(_0x5318b8))[0x0];}function resolveTopLevelAppCode(_0xa15640){const _0xbf37b7=a191_0x4461;return stringConfigValue(_0xa15640['appcode'])||stringConfigValue(_0xa15640[_0xbf37b7(0x17b)]);}export function resolveAppConfig({raw:_0x38a434,flags:_0x3a497c,layers:_0x53d4b7,readEnv:_0x96ccc3}){const _0x4cd695=a191_0x4461,_0x2459fe=_0x53d4b7?.[_0x4cd695(0x193)]??{},_0x1b5e60=_0x53d4b7?.[_0x4cd695(0x196)]??{},_0x25bf1e=Object[_0x4cd695(0x17e)](_0x2459fe)[_0x4cd695(0x189)]>0x0,_0x41dd4a=!_0x25bf1e||_0x2459fe[_0x4cd695(0x180)]===!![],_0x3fb54b=_0x25bf1e?resolveDefaultAppName(_0x2459fe):undefined,_0x5d200b=_0x41dd4a?resolveDefaultAppName(_0x1b5e60):undefined,_0x35da0e=stringConfigValue(_0x3a497c[_0x4cd695(0x17b)]),_0x47cfc8=_0x96ccc3(_0x4cd695(0x187)),_0x2dfed9={};if(_0x38a434[_0x4cd695(0x182)]&&typeof _0x38a434[_0x4cd695(0x182)]===_0x4cd695(0x185))for(const [_0x566c56,_0x42be95]of Object[_0x4cd695(0x188)](_0x38a434['apps'])){_0x42be95&&typeof _0x42be95===_0x4cd695(0x185)&&_0x42be95[_0x4cd695(0x17f)]&&(_0x2dfed9[_0x566c56]=_0x42be95);}const _0x1410fc=_0x38a434[_0x4cd695(0x16c)]||undefined,_0x5ddc93=Object['keys'](_0x2dfed9)[_0x4cd695(0x189)]>0x0,_0x2b4122=_0x35da0e||_0x3fb54b||_0x47cfc8||_0x5d200b||_0x1410fc||undefined,_0x650e5c=stringConfigValue(_0x3a497c[_0x4cd695(0x17f)]),_0x5a4ce6=_0x650e5c?Object['entries'](_0x2dfed9)[_0x4cd695(0x184)](([,_0x3fe4e9])=>_0x3fe4e9?.['appcode']===_0x650e5c):undefined,_0x3f12b0=_0x5a4ce6?.[0x0],_0x2f8958=_0x5a4ce6?.[0x1],_0x2f21de=_0x650e5c?_0x3f12b0:_0x2b4122;let _0x3a9305=_0x2f21de&&_0x2dfed9[_0x2f21de]?_0x2dfed9[_0x2f21de]:undefined;_0x650e5c&&_0x2f8958&&(_0x3a9305=_0x2f8958);const _0x1ae669=_0x650e5c?_0x2f8958??_0x3a9305:_0x3a9305,_0x300bfc=!_0x35da0e&&!_0x3fb54b&&_0x47cfc8&&_0x2f21de===_0x47cfc8,_0x1b32c9=_0x35da0e||(_0x300bfc?_0x47cfc8:undefined)||(_0x650e5c?_0x3f12b0:undefined),_0x1e4892=_0x1ae669?.['appcode'],_0x471c50=_0x25bf1e?resolveTopLevelAppCode(_0x2459fe):undefined,_0x53c1ba=_0x41dd4a?resolveTopLevelAppCode(_0x1b5e60):undefined,_0xec4e2b=_0x35da0e||_0x3fb54b?_0x1e4892:undefined,_0x5898ed=!_0x35da0e&&!_0x3fb54b?_0x1e4892:undefined,_0x29e91a=_0x650e5c||_0xec4e2b||_0x471c50||_0x5898ed||_0x53c1ba||undefined,_0x24a420=_0x25bf1e?stringConfigValue(_0x2459fe[_0x4cd695(0x190)]):undefined,_0xfa63d9=_0x41dd4a?stringConfigValue(_0x1b5e60[_0x4cd695(0x190)]):undefined,_0x350807=_0x3a497c[_0x4cd695(0x190)]||_0x1ae669?.['env']||_0x24a420||_0x96ccc3(_0x4cd695(0x171))||_0xfa63d9||_0x38a434[_0x4cd695(0x190)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x190)],_0x254726=_0x1ae669?.[_0x4cd695(0x186)]||_0x38a434[_0x4cd695(0x186)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x186)],_0x58bb71=_0x96ccc3(_0x4cd695(0x181))||_0x1ae669?.[_0x4cd695(0x179)]||_0x38a434[_0x4cd695(0x179)]||undefined,_0x18366d=_0x96ccc3(_0x4cd695(0x178))||_0x1ae669?.[_0x4cd695(0x17a)]||_0x38a434['accessKey']||undefined,_0x5d82b4=_0x3a497c[_0x4cd695(0x18f)]||_0x96ccc3(_0x4cd695(0x195))||_0x1ae669?.[_0x4cd695(0x18f)]||_0x38a434[_0x4cd695(0x18f)],_0x3c90bf=normalizeLegacyOutputFormat(_0x5d82b4),_0x776e8f=_0x96ccc3(_0x4cd695(0x18d))||_0x1ae669?.['pageSize']||_0x38a434[_0x4cd695(0x17c)],_0x3a4dde=_0x776e8f?Number(_0x776e8f)||undefined:undefined,_0x249284=_0x96ccc3(_0x4cd695(0x192))||_0x96ccc3('MAX_RISK')||_0x1ae669?.[_0x4cd695(0x173)]||_0x38a434[_0x4cd695(0x173)]||_0x38a434['maxRisk'],_0x427e5a=_0x249284==='read'||_0x249284===_0x4cd695(0x194)?_0x249284:DEFAULT_CONFIG_VALUES[_0x4cd695(0x173)],_0x522b99=_0x96ccc3('VERBOSE'),_0x5ab929=_0x522b99==='1'||_0x522b99===_0x4cd695(0x17d),_0x58fb6c=_0x1ae669?.['apiDir']||_0x38a434[_0x4cd695(0x177)]||DEFAULT_CONFIG_VALUES[_0x4cd695(0x177)],_0x346972=isDaily(normalizeEnv(String(_0x350807)))?_0x4cd695(0x170):_0x4cd695(0x175);return{'appCode':typeof _0x29e91a===_0x4cd695(0x18e)&&_0x29e91a[_0x4cd695(0x176)]()?_0x29e91a[_0x4cd695(0x176)]():undefined,'env':_0x346972,'locale':_0x254726,'cookie':_0x58bb71,'accessKey':_0x18366d,'format':_0x3c90bf,'pageSize':_0x3a4dde,'riskLevel':_0x427e5a,'verbose':_0x5ab929,'apiDir':_0x58fb6c,'apps':_0x2dfed9,'defaultApp':_0x1410fc,'currentApp':_0x5ddc93?_0x2f21de:undefined,'explicitAppName':_0x1b32c9};}
1
+ (function(_0x2d8240,_0x4ae7b0){const _0x27be0e=a192_0x38cf,_0x14675a=_0x2d8240();while(!![]){try{const _0x35da98=-parseInt(_0x27be0e(0x1b7))/0x1*(-parseInt(_0x27be0e(0x1b6))/0x2)+parseInt(_0x27be0e(0x1db))/0x3+-parseInt(_0x27be0e(0x1dc))/0x4*(-parseInt(_0x27be0e(0x1bd))/0x5)+-parseInt(_0x27be0e(0x1cb))/0x6+parseInt(_0x27be0e(0x1d8))/0x7*(parseInt(_0x27be0e(0x1cf))/0x8)+parseInt(_0x27be0e(0x1dd))/0x9*(-parseInt(_0x27be0e(0x1d4))/0xa)+-parseInt(_0x27be0e(0x1c1))/0xb;if(_0x35da98===_0x4ae7b0)break;else _0x14675a['push'](_0x14675a['shift']());}catch(_0x553a43){_0x14675a['push'](_0x14675a['shift']());}}}(a192_0x533c,0xcfbe0));function a192_0x533c(){const _0x56f312=['length','RISK_LEVEL','10OgxqXN','find','true','inherit','28QZYcvZ','projectConfig','cookie','4917474guogBX','212lGjYQP','13196727nGFWSs','defaultApp','2yndZNQ','561336eMTsWV','object','trim','env','string','riskLevel','78505pKllxo','accessKey','write','keys','7164927gVfBxF','ACCESS_KEY','apps','daily','globalConfig','MAX_RISK','entries','apiDir','appcode','format','4398426GtLcZL','VERBOSE','PAGE_SIZE','FORMAT','1337992oxWUlv','locale','app'];a192_0x533c=function(){return _0x56f312;};return a192_0x533c();}function a192_0x38cf(_0x5afd03,_0x478393){_0x5afd03=_0x5afd03-0x1b5;const _0x533c82=a192_0x533c();let _0x38cfac=_0x533c82[_0x5afd03];return _0x38cfac;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat}from'../framework/types.js';function stringConfigValue(_0x2687d1){const _0x497838=a192_0x38cf;return typeof _0x2687d1===_0x497838(0x1bb)&&_0x2687d1[_0x497838(0x1b9)]()?_0x2687d1[_0x497838(0x1b9)]():undefined;}function appProfiles(_0x4fe7ab){const _0x2c3c61=a192_0x38cf;return _0x4fe7ab['apps']&&typeof _0x4fe7ab[_0x2c3c61(0x1c3)]===_0x2c3c61(0x1b8)?_0x4fe7ab['apps']:{};}function resolveDefaultAppName(_0x338e66){const _0x24b52e=a192_0x38cf,_0x3cd21b=stringConfigValue(_0x338e66[_0x24b52e(0x1b5)]);if(_0x3cd21b)return _0x3cd21b;return Object[_0x24b52e(0x1c0)](appProfiles(_0x338e66))[0x0];}function resolveTopLevelAppCode(_0x55e7cc){const _0x39ca76=a192_0x38cf;return stringConfigValue(_0x55e7cc[_0x39ca76(0x1c9)])||stringConfigValue(_0x55e7cc['app']);}export function resolveAppConfig({raw:_0x1090de,flags:_0x515ee4,layers:_0x1e50e7,readEnv:_0x4b0df8}){const _0x25be9f=a192_0x38cf,_0x4f2c72=_0x1e50e7?.[_0x25be9f(0x1d9)]??{},_0x54f488=_0x1e50e7?.[_0x25be9f(0x1c5)]??{},_0x1639bb=Object['keys'](_0x4f2c72)[_0x25be9f(0x1d2)]>0x0,_0x256b26=!_0x1639bb||_0x4f2c72[_0x25be9f(0x1d7)]===!![],_0x5dcd38=_0x1639bb?resolveDefaultAppName(_0x4f2c72):undefined,_0x549ee3=_0x256b26?resolveDefaultAppName(_0x54f488):undefined,_0x274b4d=stringConfigValue(_0x515ee4[_0x25be9f(0x1d1)]),_0x42d4a0=_0x4b0df8('APP'),_0x14576d={};if(_0x1090de[_0x25be9f(0x1c3)]&&typeof _0x1090de[_0x25be9f(0x1c3)]===_0x25be9f(0x1b8))for(const [_0x2f5b17,_0x69443d]of Object[_0x25be9f(0x1c7)](_0x1090de[_0x25be9f(0x1c3)])){_0x69443d&&typeof _0x69443d==='object'&&_0x69443d[_0x25be9f(0x1c9)]&&(_0x14576d[_0x2f5b17]=_0x69443d);}const _0x1e6a5b=_0x1090de[_0x25be9f(0x1b5)]||undefined,_0x3615db=Object[_0x25be9f(0x1c0)](_0x14576d)[_0x25be9f(0x1d2)]>0x0,_0x1ee05b=_0x274b4d||_0x5dcd38||_0x42d4a0||_0x549ee3||_0x1e6a5b||undefined,_0x4f80f2=stringConfigValue(_0x515ee4[_0x25be9f(0x1c9)]),_0x31e3e4=_0x4f80f2?Object[_0x25be9f(0x1c7)](_0x14576d)[_0x25be9f(0x1d5)](([,_0x14d265])=>_0x14d265?.[_0x25be9f(0x1c9)]===_0x4f80f2):undefined,_0x14105f=_0x31e3e4?.[0x0],_0x38487d=_0x31e3e4?.[0x1],_0x4ab47b=_0x4f80f2?_0x14105f:_0x1ee05b;let _0xd46ef6=_0x4ab47b&&_0x14576d[_0x4ab47b]?_0x14576d[_0x4ab47b]:undefined;_0x4f80f2&&_0x38487d&&(_0xd46ef6=_0x38487d);const _0x3e898f=_0x4f80f2?_0x38487d??_0xd46ef6:_0xd46ef6,_0x172f5d=!_0x274b4d&&!_0x5dcd38&&_0x42d4a0&&_0x4ab47b===_0x42d4a0,_0x3fa826=_0x274b4d||(_0x172f5d?_0x42d4a0:undefined)||(_0x4f80f2?_0x14105f:undefined),_0x237c0c=_0x3e898f?.[_0x25be9f(0x1c9)],_0x162d99=_0x1639bb?resolveTopLevelAppCode(_0x4f2c72):undefined,_0x36a7c7=_0x256b26?resolveTopLevelAppCode(_0x54f488):undefined,_0x565f7c=_0x274b4d||_0x5dcd38?_0x237c0c:undefined,_0x48d6e1=!_0x274b4d&&!_0x5dcd38?_0x237c0c:undefined,_0x4e5df8=_0x4f80f2||_0x565f7c||_0x162d99||_0x48d6e1||_0x36a7c7||undefined,_0x151cf5=_0x1639bb?stringConfigValue(_0x4f2c72[_0x25be9f(0x1ba)]):undefined,_0x47acd5=_0x256b26?stringConfigValue(_0x54f488[_0x25be9f(0x1ba)]):undefined,_0x3cc046=_0x515ee4[_0x25be9f(0x1ba)]||_0x3e898f?.[_0x25be9f(0x1ba)]||_0x151cf5||_0x4b0df8('ENV')||_0x47acd5||_0x1090de[_0x25be9f(0x1ba)]||DEFAULT_CONFIG_VALUES[_0x25be9f(0x1ba)],_0x581dce=_0x3e898f?.[_0x25be9f(0x1d0)]||_0x1090de['locale']||DEFAULT_CONFIG_VALUES[_0x25be9f(0x1d0)],_0x615b02=_0x4b0df8('COOKIE')||_0x3e898f?.['cookie']||_0x1090de[_0x25be9f(0x1da)]||undefined,_0x4c919d=_0x4b0df8(_0x25be9f(0x1c2))||_0x3e898f?.[_0x25be9f(0x1be)]||_0x1090de[_0x25be9f(0x1be)]||undefined,_0x25a536=_0x515ee4[_0x25be9f(0x1ca)]||_0x4b0df8(_0x25be9f(0x1ce))||_0x3e898f?.[_0x25be9f(0x1ca)]||_0x1090de[_0x25be9f(0x1ca)],_0x5871fc=normalizeLegacyOutputFormat(_0x25a536),_0xaf0baf=_0x4b0df8(_0x25be9f(0x1cd))||_0x3e898f?.['pageSize']||_0x1090de['pageSize'],_0x189f51=_0xaf0baf?Number(_0xaf0baf)||undefined:undefined,_0x45a1c9=_0x4b0df8(_0x25be9f(0x1d3))||_0x4b0df8(_0x25be9f(0x1c6))||_0x3e898f?.[_0x25be9f(0x1bc)]||_0x1090de[_0x25be9f(0x1bc)]||_0x1090de['maxRisk'],_0x1ba4e5=_0x45a1c9==='read'||_0x45a1c9===_0x25be9f(0x1bf)?_0x45a1c9:DEFAULT_CONFIG_VALUES[_0x25be9f(0x1bc)],_0x707f68=_0x4b0df8(_0x25be9f(0x1cc)),_0x2afc39=_0x707f68==='1'||_0x707f68===_0x25be9f(0x1d6),_0x15c98c=_0x3e898f?.['apiDir']||_0x1090de[_0x25be9f(0x1c8)]||DEFAULT_CONFIG_VALUES[_0x25be9f(0x1c8)],_0x5d21f6=isDaily(normalizeEnv(String(_0x3cc046)))?_0x25be9f(0x1c4):'production';return{'appCode':typeof _0x4e5df8==='string'&&_0x4e5df8[_0x25be9f(0x1b9)]()?_0x4e5df8['trim']():undefined,'env':_0x5d21f6,'locale':_0x581dce,'cookie':_0x615b02,'accessKey':_0x4c919d,'format':_0x5871fc,'pageSize':_0x189f51,'riskLevel':_0x1ba4e5,'verbose':_0x2afc39,'apiDir':_0x15c98c,'apps':_0x14576d,'defaultApp':_0x1e6a5b,'currentApp':_0x3615db?_0x4ab47b:undefined,'explicitAppName':_0x3fa826};}
@@ -1 +1 @@
1
- function a192_0x1d11(_0x31edfe,_0x117b93){_0x31edfe=_0x31edfe-0x157;const _0x15b956=a192_0x15b9();let _0x1d11ba=_0x15b956[_0x31edfe];return _0x1d11ba;}function a192_0x15b9(){const _0x5d69a6=['../auth/get-cookie.js','13sgaXjF','4075245HIJtfO','4855588MaWApc','29030QvQTns','27837rJTnUE','6nftNHx','13134MPhRbF','cookie','233062HuUjzU','2976DGmedj','4484898jxIHan','7125727EQXApR'];a192_0x15b9=function(){return _0x5d69a6;};return a192_0x15b9();}(function(_0x436780,_0x19bb48){const _0x207e57=a192_0x1d11,_0xf22b1=_0x436780();while(!![]){try{const _0x573bd9=parseInt(_0x207e57(0x15b))/0x1*(parseInt(_0x207e57(0x163))/0x2)+-parseInt(_0x207e57(0x158))/0x3+-parseInt(_0x207e57(0x15d))/0x4+parseInt(_0x207e57(0x15c))/0x5+-parseInt(_0x207e57(0x160))/0x6*(parseInt(_0x207e57(0x159))/0x7)+parseInt(_0x207e57(0x157))/0x8*(-parseInt(_0x207e57(0x15f))/0x9)+parseInt(_0x207e57(0x15e))/0xa*(parseInt(_0x207e57(0x161))/0xb);if(_0x573bd9===_0x19bb48)break;else _0xf22b1['push'](_0xf22b1['shift']());}catch(_0x388efa){_0xf22b1['push'](_0xf22b1['shift']());}}}(a192_0x15b9,0xe04ba));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x11cd56){const _0x3072ad=a192_0x1d11,{getCookie:_0x59ac7b}=await import(_0x3072ad(0x15a)),_0x1ff9eb=_0x11cd56[_0x3072ad(0x162)]||_0x59ac7b(),_0x34efab=_0x1ff9eb?await getIsSessionValid():![];return{'cookie':_0x1ff9eb,'isLoggedIn':_0x34efab,async 'getOrLogin'(){if(_0x1ff9eb&&_0x34efab)return _0x1ff9eb;throw CliErrors['authRequired']();}};}
1
+ function a193_0x4786(_0x1840dd,_0xf0b103){_0x1840dd=_0x1840dd-0x151;const _0x9a25a0=a193_0x9a25();let _0x4786a4=_0x9a25a0[_0x1840dd];return _0x4786a4;}(function(_0x19e52a,_0x268973){const _0x34a05f=a193_0x4786,_0x5c1889=_0x19e52a();while(!![]){try{const _0x5c0b95=parseInt(_0x34a05f(0x158))/0x1+-parseInt(_0x34a05f(0x153))/0x2*(-parseInt(_0x34a05f(0x15d))/0x3)+parseInt(_0x34a05f(0x151))/0x4+parseInt(_0x34a05f(0x152))/0x5*(parseInt(_0x34a05f(0x154))/0x6)+-parseInt(_0x34a05f(0x15b))/0x7+parseInt(_0x34a05f(0x159))/0x8+-parseInt(_0x34a05f(0x155))/0x9*(parseInt(_0x34a05f(0x156))/0xa);if(_0x5c0b95===_0x268973)break;else _0x5c1889['push'](_0x5c1889['shift']());}catch(_0x463cda){_0x5c1889['push'](_0x5c1889['shift']());}}}(a193_0x9a25,0x45aa6));import{getIsSessionValid}from'../auth/is-session-valid.js';function a193_0x9a25(){const _0x10ca30=['129RxBbie','2001428cfXMVK','5fMTlPz','10702TuvlVy','861114AIobim','1060947ExktTu','70KWatmd','../auth/get-cookie.js','243885YRhwHw','3326880lxdKqu','cookie','2962281ewkjBR','authRequired'];a193_0x9a25=function(){return _0x10ca30;};return a193_0x9a25();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x12d31e){const _0x2dfe83=a193_0x4786,{getCookie:_0x5bdee5}=await import(_0x2dfe83(0x157)),_0x340618=_0x12d31e[_0x2dfe83(0x15a)]||_0x5bdee5(),_0x82ba36=_0x340618?await getIsSessionValid():![];return{'cookie':_0x340618,'isLoggedIn':_0x82ba36,async 'getOrLogin'(){const _0x403c6d=_0x2dfe83;if(_0x340618&&_0x82ba36)return _0x340618;throw CliErrors[_0x403c6d(0x15c)]();}};}