@lovrabet/rabetbase-cli 2.3.16-beta.6 → 2.3.16-beta.7

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 (279) 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/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/relation-audit.js +1 -1
  141. package/lib/commands/page/restore.js +1 -1
  142. package/lib/commands/page/shared.js +1 -1
  143. package/lib/commands/page/standard-page-status.js +1 -1
  144. package/lib/commands/page/sync.js +1 -1
  145. package/lib/commands/permit/index.js +1 -1
  146. package/lib/commands/permit/page-get.js +1 -1
  147. package/lib/commands/permit/page-set.js +1 -1
  148. package/lib/commands/permit/role-apis-set.js +1 -1
  149. package/lib/commands/permit/role-menus-set.js +1 -1
  150. package/lib/commands/permit/role-menus.js +1 -1
  151. package/lib/commands/permit/shared.js +1 -1
  152. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  153. package/lib/commands/project/create/format-elapsed.js +1 -1
  154. package/lib/commands/project/create/main.js +1 -1
  155. package/lib/commands/project/create/non-interactive.js +1 -1
  156. package/lib/commands/project/create/project-template-path.js +1 -1
  157. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  158. package/lib/commands/project/create/use-format-code.js +1 -1
  159. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  160. package/lib/commands/project/index.js +1 -1
  161. package/lib/commands/project/upgrade.js +1 -1
  162. package/lib/commands/registry.js +1 -1
  163. package/lib/commands/role/create.js +1 -1
  164. package/lib/commands/role/delete.js +1 -1
  165. package/lib/commands/role/detail.js +1 -1
  166. package/lib/commands/role/index.js +1 -1
  167. package/lib/commands/role/list.js +1 -1
  168. package/lib/commands/role/shared.js +1 -1
  169. package/lib/commands/role/update.js +1 -1
  170. package/lib/commands/role/user-add.js +1 -1
  171. package/lib/commands/role/user-remove.js +1 -1
  172. package/lib/commands/role/user-resolve.js +1 -1
  173. package/lib/commands/run/index.js +1 -1
  174. package/lib/commands/schema.js +1 -1
  175. package/lib/commands/sql/create.js +1 -1
  176. package/lib/commands/sql/delete.js +1 -1
  177. package/lib/commands/sql/detail.js +1 -1
  178. package/lib/commands/sql/exec.js +1 -1
  179. package/lib/commands/sql/index.js +1 -1
  180. package/lib/commands/sql/list.js +1 -1
  181. package/lib/commands/sql/pull.js +1 -1
  182. package/lib/commands/sql/push.js +1 -1
  183. package/lib/commands/sql/shared.js +1 -1
  184. package/lib/commands/sql/status.js +1 -1
  185. package/lib/commands/sql/validate.js +1 -1
  186. package/lib/commands/task/index.js +1 -1
  187. package/lib/commands/task/status.js +1 -1
  188. package/lib/commands/tenant/index.js +1 -1
  189. package/lib/commands/tenant/members-list.js +1 -1
  190. package/lib/commands/tenant/shared.js +1 -1
  191. package/lib/commands/workspace/add.js +1 -1
  192. package/lib/commands/workspace/index.js +1 -1
  193. package/lib/commands/workspace/remove.js +1 -1
  194. package/lib/config/schema.js +1 -1
  195. package/lib/constant/cdn.js +1 -1
  196. package/lib/constant/cli.js +1 -1
  197. package/lib/constant/defaults.js +1 -1
  198. package/lib/constant/domain.js +1 -1
  199. package/lib/constant/env.js +1 -1
  200. package/lib/constant/output.js +1 -1
  201. package/lib/constant/paths.js +1 -1
  202. package/lib/constant/risk.js +1 -1
  203. package/lib/context/app-resolver.js +1 -1
  204. package/lib/context/auth-resolver.js +1 -1
  205. package/lib/context/config-loader.js +1 -1
  206. package/lib/context.d.ts +1 -1
  207. package/lib/context.js +1 -1
  208. package/lib/core/alias-resolver.js +1 -1
  209. package/lib/core/api-client.js +1 -1
  210. package/lib/core/bff/config.js +1 -1
  211. package/lib/core/bff/file-system.js +1 -1
  212. package/lib/core/bff/hash.js +1 -1
  213. package/lib/core/bff/lock.js +1 -1
  214. package/lib/core/bff/utils.js +1 -1
  215. package/lib/core/db-resolver.js +1 -1
  216. package/lib/core/page/file-system.js +1 -1
  217. package/lib/core/page/hash.js +1 -1
  218. package/lib/core/page/lock.js +1 -1
  219. package/lib/core/sql-index-auditor.js +1 -1
  220. package/lib/core/sql-sync/config.js +1 -1
  221. package/lib/core/sql-sync/file-system.js +1 -1
  222. package/lib/core/sql-sync/hash.js +1 -1
  223. package/lib/core/sql-sync/lock.js +1 -1
  224. package/lib/core/sql-sync/utils.js +1 -1
  225. package/lib/core/sql-validator.js +1 -1
  226. package/lib/errors.js +1 -1
  227. package/lib/framework/build-all-flags.js +1 -1
  228. package/lib/framework/error-output.js +1 -1
  229. package/lib/framework/explicit-yes.js +1 -1
  230. package/lib/framework/flags.js +1 -1
  231. package/lib/framework/help.js +1 -1
  232. package/lib/framework/index.js +1 -1
  233. package/lib/framework/output.js +1 -1
  234. package/lib/framework/response.js +1 -1
  235. package/lib/framework/runner-alias.js +1 -1
  236. package/lib/framework/runner.js +1 -1
  237. package/lib/framework/schema-export.js +1 -1
  238. package/lib/framework/types.js +1 -1
  239. package/lib/generated/build-info.d.ts +4 -4
  240. package/lib/generated/build-info.js +1 -1
  241. package/lib/help.js +1 -1
  242. package/lib/runtime/confirmation.js +1 -1
  243. package/lib/runtime/event.js +1 -1
  244. package/lib/runtime/index.js +1 -1
  245. package/lib/runtime/queue.js +1 -1
  246. package/lib/runtime/resolve.js +1 -1
  247. package/lib/skills/main.js +1 -1
  248. package/lib/skills/npx-skills-add.js +1 -1
  249. package/lib/skills/skill-presence.js +1 -1
  250. package/lib/telemetry/cli-command-trace.js +1 -1
  251. package/lib/telemetry/cli-help-trace.js +1 -1
  252. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  253. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  254. package/lib/telemetry/send-cli-trace-log.js +1 -1
  255. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  256. package/lib/utils/ai_config.js +1 -1
  257. package/lib/utils/apply-jq-filter.js +1 -1
  258. package/lib/utils/cdn-config.js +1 -1
  259. package/lib/utils/check-sdk-version.js +1 -1
  260. package/lib/utils/cli-version-check.js +1 -1
  261. package/lib/utils/cli-version-policy.js +1 -1
  262. package/lib/utils/config.js +1 -1
  263. package/lib/utils/copy-directory.js +1 -1
  264. package/lib/utils/entity-with-id.js +1 -1
  265. package/lib/utils/file-utils.js +1 -1
  266. package/lib/utils/guides-cdn.js +1 -1
  267. package/lib/utils/http-client.js +1 -1
  268. package/lib/utils/is-non-interactive.js +1 -1
  269. package/lib/utils/logger.js +1 -1
  270. package/lib/utils/params.js +1 -1
  271. package/lib/utils/platform.js +1 -1
  272. package/lib/utils/rules-cdn.js +1 -1
  273. package/lib/utils/sleep.js +1 -1
  274. package/lib/utils/template-replacer.js +1 -1
  275. package/lib/utils/update-notice.js +1 -1
  276. package/lib/utils/version.js +1 -1
  277. package/lib/utils/with-active-cookie.js +1 -1
  278. package/lib/utils/write-cli-side-channel.js +1 -1
  279. package/package.json +1 -1
@@ -1 +1 @@
1
- const a185_0x36a4c4=a185_0x22e6;(function(_0x1dcbaf,_0x58ecaf){const _0x2b101b=a185_0x22e6,_0x29eded=_0x1dcbaf();while(!![]){try{const _0x14150b=-parseInt(_0x2b101b(0xa4))/0x1+parseInt(_0x2b101b(0x9c))/0x2*(-parseInt(_0x2b101b(0xb9))/0x3)+parseInt(_0x2b101b(0x9e))/0x4+parseInt(_0x2b101b(0x8a))/0x5*(parseInt(_0x2b101b(0xb8))/0x6)+parseInt(_0x2b101b(0x84))/0x7*(parseInt(_0x2b101b(0x80))/0x8)+-parseInt(_0x2b101b(0x8b))/0x9*(parseInt(_0x2b101b(0xbd))/0xa)+parseInt(_0x2b101b(0xa0))/0xb;if(_0x14150b===_0x58ecaf)break;else _0x29eded['push'](_0x29eded['shift']());}catch(_0x4775a5){_0x29eded['push'](_0x29eded['shift']());}}}(a185_0xfe77,0x6a70c));function a185_0xfe77(){const _0xd19d50=['Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','3327540BsQsNx','flagMissing','2178913GUrbWl','map','Provide\x20--file\x20or\x20--sql','tableName','164017zlFxBm','isArray','joinAudit','fields','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','columnNames','indexes','SQL\x20schema\x20validation','sqlType','primary','push','dataset','toLowerCase','pkField','reason','tables','trim','Dataset\x20\x22','isDangerous','columns','2040xBvksk','18mpGbIg','validation','dbtableConfig','file','8621990oTTNVo','type','flatMap','parameters','index_name','--check-indexes\x20requires\x20--schemas.','str','message','check-indexes','sql','208TGVkgz','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','index_columns','string','67655MVociN','unshift','\x22\x20not\x20found\x20in\x20any\x20dataset','cwd','boolean','filter','7510TxSppW','9RZHcrE','size','split','name','appCode','from','isSelectOnly','Table\x20\x22','read','indexName','find','\x22\x20not\x20found\x20or\x20not\x20accessible','schemas','File\x20not\x20found:\x20','length','valid','schema:','109914xJkZKj'];a185_0xfe77=function(){return _0xd19d50;};return a185_0xfe77();}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a185_0x22e6(_0x1f1435,_0x3a31fd){_0x1f1435=_0x1f1435-0x7c;const _0xfe7775=a185_0xfe77();let _0x22e6b9=_0xfe7775[_0x1f1435];return _0x22e6b9;}export const sqlValidate={'service':a185_0x36a4c4(0x7f),'command':'validate','description':a185_0x36a4c4(0xa8),'risk':a185_0x36a4c4(0x93),'flags':[{'name':a185_0x36a4c4(0xbc),'type':a185_0x36a4c4(0x83),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':a185_0x36a4c4(0x83),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a185_0x36a4c4(0x97),'type':a185_0x36a4c4(0x83),'description':a185_0x36a4c4(0x9d)},{'name':'check-indexes','type':a185_0x36a4c4(0x88),'description':a185_0x36a4c4(0x81)}],async 'execute'(_0x516a0c){const _0x7f0730=a185_0x36a4c4,_0x4a98f6=_0x516a0c[_0x7f0730(0x7c)]('file'),_0x3329b7=_0x516a0c['str'](_0x7f0730(0x7f)),_0x176c47=_0x516a0c['str']('schemas'),_0x30582f=_0x516a0c['bool'](_0x7f0730(0x7e));if(!_0x4a98f6&&!_0x3329b7)throw CliErrors[_0x7f0730(0x9f)](_0x7f0730(0xbc),_0x7f0730(0xa2));if(_0x30582f&&!_0x176c47)throw CliErrors[_0x7f0730(0xba)](_0x7f0730(0xc2));let _0x3a2053;if(_0x4a98f6){const _0x81f0d5=resolve(process[_0x7f0730(0x87)](),_0x4a98f6);if(!existsSync(_0x81f0d5))throw CliErrors[_0x7f0730(0xba)](_0x7f0730(0x98)+_0x81f0d5);_0x3a2053=readFileSync(_0x81f0d5,'utf-8');}else _0x3a2053=_0x3329b7;const _0x44e8fe=validateSql(_0x3a2053),_0x218e4e={'valid':_0x44e8fe[_0x7f0730(0x9a)],'sqlType':_0x44e8fe[_0x7f0730(0xac)][_0x7f0730(0xbe)],'isSelectOnly':_0x44e8fe[_0x7f0730(0xac)][_0x7f0730(0x91)],'isDangerous':_0x44e8fe[_0x7f0730(0xac)][_0x7f0730(0xb6)],'tables':_0x44e8fe[_0x7f0730(0xb3)],'parameters':_0x44e8fe[_0x7f0730(0xc0)],'message':_0x44e8fe[_0x7f0730(0x7d)]};_0x44e8fe['sqlType'][_0x7f0730(0xb2)]&&(_0x218e4e['reason']=_0x44e8fe[_0x7f0730(0xac)][_0x7f0730(0xb2)]);if(_0x176c47&&_0x44e8fe[_0x7f0730(0x9a)]){const _0x456430=_0x176c47[_0x7f0730(0x8d)](',')[_0x7f0730(0xa1)](_0x321b93=>_0x321b93[_0x7f0730(0xb4)]())['filter'](Boolean),_0x26e841=[],_0x3a8d6d=[],_0x200a0f=filterDbTableBackedDatasets(await listDatasets(_0x516a0c[_0x7f0730(0x8f)])),_0x355fdb=new Map(_0x200a0f[_0x7f0730(0xa1)](_0x39b35c=>[_0x39b35c['dbtableConfig']?.[_0x7f0730(0xa3)]?.[_0x7f0730(0xb0)](),_0x39b35c]));for(const _0x2989f2 of _0x44e8fe[_0x7f0730(0xb3)]){const _0xe3293e=_0x355fdb['get'](_0x2989f2[_0x7f0730(0xb0)]());!_0xe3293e&&_0x26e841[_0x7f0730(0xae)](_0x7f0730(0x92)+_0x2989f2+_0x7f0730(0x86));}for(const _0x499346 of _0x456430){let _0x2f7eab;try{_0x2f7eab=await getDatasetDetail(_0x499346);}catch{_0x26e841[_0x7f0730(0xae)](_0x7f0730(0xb5)+_0x499346+_0x7f0730(0x96));continue;}assertDatasetIsDbTableBacked(_0x2f7eab,_0x7f0730(0xab));const _0x211025=Array[_0x7f0730(0xa5)](_0x2f7eab[_0x7f0730(0xa7)])?_0x2f7eab[_0x7f0730(0xa7)]:[],_0x2ec91d=new Set(_0x211025['map'](_0x3469c4=>_0x3469c4[_0x7f0730(0x8e)]?.['toLowerCase']())),_0x4b2c59=_0x2f7eab[_0x7f0730(0xbb)]?.[_0x7f0730(0xa3)]||_0x2f7eab[_0x7f0730(0xa3)]||_0x499346;_0x218e4e[_0x7f0730(0x9b)+_0x4b2c59]={'code':_0x499346,'tableName':_0x4b2c59,'fieldCount':_0x2ec91d[_0x7f0730(0x8c)],'fields':Array[_0x7f0730(0x90)](_0x2ec91d)};if(_0x30582f){const _0x413d1e=normalizeDatasetIndexes(_0x2f7eab);_0x3a8d6d[_0x7f0730(0xae)]({'tableName':_0x4b2c59,..._0x413d1e});}}_0x26e841[_0x7f0730(0x99)]>0x0&&(_0x218e4e['schemaWarnings']=_0x26e841),_0x30582f&&(_0x218e4e[_0x7f0730(0xa6)]=auditSqlJoinIndexes(_0x3a2053,_0x3a8d6d));}return{'ok':_0x44e8fe['valid'],'data':_0x218e4e,'message':_0x44e8fe['message']};}};function normalizeDatasetIndexes(_0x40ef41){const _0x56b08e=a185_0x36a4c4,_0x43afaa=Array['isArray'](_0x40ef41?.[_0x56b08e(0xaf)]?.[_0x56b08e(0xaa)])?_0x40ef41[_0x56b08e(0xaf)][_0x56b08e(0xaa)]:Array['isArray'](_0x40ef41?.[_0x56b08e(0xaa)])?_0x40ef41[_0x56b08e(0xaa)]:[],_0x4c85cb=_0x43afaa[_0x56b08e(0xbf)](_0x523483=>{const _0x2d2b7c=_0x56b08e,_0x440e88=Array['isArray'](_0x523483?.['index_columns'])?_0x523483[_0x2d2b7c(0x82)]:Array['isArray'](_0x523483?.[_0x2d2b7c(0xa9)])?_0x523483[_0x2d2b7c(0xa9)]:Array['isArray'](_0x523483?.[_0x2d2b7c(0xb7)])?_0x523483[_0x2d2b7c(0xb7)]:[],_0x14bb8f=_0x440e88['filter'](_0x40e1b5=>typeof _0x40e1b5===_0x2d2b7c(0x83))[_0x2d2b7c(0xa1)](_0x21ffff=>_0x21ffff[_0x2d2b7c(0xb4)]())[_0x2d2b7c(0x89)](Boolean);if(_0x14bb8f['length']===0x0)return[];const _0x20efaa=[_0x523483?.[_0x2d2b7c(0x94)],_0x523483?.[_0x2d2b7c(0xc1)],_0x523483?.[_0x2d2b7c(0x8e)]][_0x2d2b7c(0x95)](_0x5e3baf=>typeof _0x5e3baf===_0x2d2b7c(0x83)&&_0x5e3baf['trim']()),_0x4119d6=[_0x523483?.['index_type'],_0x523483?.[_0x2d2b7c(0xbe)]][_0x2d2b7c(0x95)](_0xc95c78=>typeof _0xc95c78===_0x2d2b7c(0x83)&&_0xc95c78[_0x2d2b7c(0xb4)]());return[{..._0x20efaa?{'name':_0x20efaa[_0x2d2b7c(0xb4)]()}:{},..._0x4119d6?{'type':_0x4119d6['trim']()}:{},'columns':_0x14bb8f}];}),_0x280f08=[..._0x4c85cb],_0x520faf=typeof _0x40ef41?.[_0x56b08e(0xbb)]?.[_0x56b08e(0xb1)]===_0x56b08e(0x83)?_0x40ef41[_0x56b08e(0xbb)]['pkField'][_0x56b08e(0x8d)](',')[_0x56b08e(0xa1)](_0x3acf3c=>_0x3acf3c[_0x56b08e(0xb4)]())['filter'](Boolean):[];return _0x520faf[_0x56b08e(0x99)]>0x0&&_0x280f08[_0x56b08e(0x85)]({'type':_0x56b08e(0xad),'columns':_0x520faf}),{'indexes':_0x280f08,'metadataAvailable':_0x4c85cb[_0x56b08e(0x99)]>0x0};}
1
+ const a185_0x15f84e=a185_0x5582;(function(_0x133a9a,_0x44c4d4){const _0x131363=a185_0x5582,_0x195420=_0x133a9a();while(!![]){try{const _0x4b5506=parseInt(_0x131363(0x1af))/0x1*(-parseInt(_0x131363(0x1e1))/0x2)+parseInt(_0x131363(0x1b3))/0x3+-parseInt(_0x131363(0x1c4))/0x4+-parseInt(_0x131363(0x1db))/0x5*(parseInt(_0x131363(0x1e4))/0x6)+parseInt(_0x131363(0x1a2))/0x7+parseInt(_0x131363(0x1c0))/0x8*(parseInt(_0x131363(0x1d2))/0x9)+-parseInt(_0x131363(0x1ba))/0xa;if(_0x4b5506===_0x44c4d4)break;else _0x195420['push'](_0x195420['shift']());}catch(_0x3b9fd4){_0x195420['push'](_0x195420['shift']());}}}(a185_0x33c2,0x706a9));function a185_0x33c2(){const _0x3a125e=['map','trim','string','get','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','18XqPIvF','isArray','pkField','index_type','flatMap','primary','tables','boolean','length','15WVqvJV','push','\x22\x20not\x20found\x20or\x20not\x20accessible','indexName','utf-8','isSelectOnly','29798vErkDs','toLowerCase','reason','172206iXytpD','--check-indexes\x20requires\x20--schemas.','file','\x22\x20not\x20found\x20in\x20any\x20dataset','split','dbtableConfig','Table\x20\x22','3050621LTwoEv','columns','index_name','Dataset\x20\x22','index_columns','type','unshift','find','filter','check-indexes','dataset','isDangerous','read','3xkRbAX','SQL\x20schema\x20validation','message','fields','866448JJsegZ','valid','sql','from','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','schemas','cwd','1149570yyBQio','indexes','Provide\x20--file\x20or\x20--sql','name','sqlType','str','1246472dcIgvq','File\x20not\x20found:\x20','tableName','columnNames','1320092QJheot','schemaWarnings','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','appCode','schema:','validation','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','bool'];a185_0x33c2=function(){return _0x3a125e;};return a185_0x33c2();}function a185_0x5582(_0x2d8468,_0xb35ace){_0x2d8468=_0x2d8468-0x1a2;const _0x33c2f3=a185_0x33c2();let _0x558231=_0x33c2f3[_0x2d8468];return _0x558231;}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':a185_0x15f84e(0x1b5),'command':'validate','description':a185_0x15f84e(0x1d0),'risk':a185_0x15f84e(0x1ae),'flags':[{'name':'file','type':'string','description':a185_0x15f84e(0x1ca)},{'name':'sql','type':a185_0x15f84e(0x1ce),'description':a185_0x15f84e(0x1c6)},{'name':a185_0x15f84e(0x1b8),'type':a185_0x15f84e(0x1ce),'description':a185_0x15f84e(0x1d1)},{'name':'check-indexes','type':a185_0x15f84e(0x1d9),'description':a185_0x15f84e(0x1b7)}],async 'execute'(_0x1f8150){const _0x567d3b=a185_0x15f84e,_0x35a623=_0x1f8150[_0x567d3b(0x1bf)](_0x567d3b(0x1e6)),_0x281664=_0x1f8150[_0x567d3b(0x1bf)](_0x567d3b(0x1b5)),_0x3cb552=_0x1f8150['str'](_0x567d3b(0x1b8)),_0x47f2b4=_0x1f8150[_0x567d3b(0x1cb)](_0x567d3b(0x1ab));if(!_0x35a623&&!_0x281664)throw CliErrors['flagMissing'](_0x567d3b(0x1e6),_0x567d3b(0x1bc));if(_0x47f2b4&&!_0x3cb552)throw CliErrors[_0x567d3b(0x1c9)](_0x567d3b(0x1e5));let _0x289063;if(_0x35a623){const _0xdd8cf7=resolve(process[_0x567d3b(0x1b9)](),_0x35a623);if(!existsSync(_0xdd8cf7))throw CliErrors[_0x567d3b(0x1c9)](_0x567d3b(0x1c1)+_0xdd8cf7);_0x289063=readFileSync(_0xdd8cf7,_0x567d3b(0x1df));}else _0x289063=_0x281664;const _0xe9f2df=validateSql(_0x289063),_0x5e1ba6={'valid':_0xe9f2df[_0x567d3b(0x1b4)],'sqlType':_0xe9f2df['sqlType'][_0x567d3b(0x1a7)],'isSelectOnly':_0xe9f2df[_0x567d3b(0x1be)][_0x567d3b(0x1e0)],'isDangerous':_0xe9f2df[_0x567d3b(0x1be)][_0x567d3b(0x1ad)],'tables':_0xe9f2df[_0x567d3b(0x1d8)],'parameters':_0xe9f2df['parameters'],'message':_0xe9f2df[_0x567d3b(0x1b1)]};_0xe9f2df[_0x567d3b(0x1be)][_0x567d3b(0x1e3)]&&(_0x5e1ba6[_0x567d3b(0x1e3)]=_0xe9f2df[_0x567d3b(0x1be)]['reason']);if(_0x3cb552&&_0xe9f2df[_0x567d3b(0x1b4)]){const _0x5aa84d=_0x3cb552['split'](',')[_0x567d3b(0x1cc)](_0x29af7=>_0x29af7[_0x567d3b(0x1cd)]())['filter'](Boolean),_0x47562=[],_0xadeda4=[],_0xa66547=filterDbTableBackedDatasets(await listDatasets(_0x1f8150[_0x567d3b(0x1c7)])),_0x2ae68d=new Map(_0xa66547[_0x567d3b(0x1cc)](_0x4158e2=>[_0x4158e2[_0x567d3b(0x1e9)]?.[_0x567d3b(0x1c2)]?.[_0x567d3b(0x1e2)](),_0x4158e2]));for(const _0x439dad of _0xe9f2df[_0x567d3b(0x1d8)]){const _0x3671c4=_0x2ae68d[_0x567d3b(0x1cf)](_0x439dad[_0x567d3b(0x1e2)]());!_0x3671c4&&_0x47562['push'](_0x567d3b(0x1ea)+_0x439dad+_0x567d3b(0x1e7));}for(const _0x4a326e of _0x5aa84d){let _0x4bd756;try{_0x4bd756=await getDatasetDetail(_0x4a326e);}catch{_0x47562[_0x567d3b(0x1dc)](_0x567d3b(0x1a5)+_0x4a326e+_0x567d3b(0x1dd));continue;}assertDatasetIsDbTableBacked(_0x4bd756,_0x567d3b(0x1b0));const _0xfe3994=Array['isArray'](_0x4bd756['fields'])?_0x4bd756[_0x567d3b(0x1b2)]:[],_0x319d4f=new Set(_0xfe3994[_0x567d3b(0x1cc)](_0x519c88=>_0x519c88['name']?.['toLowerCase']())),_0x8be81f=_0x4bd756[_0x567d3b(0x1e9)]?.[_0x567d3b(0x1c2)]||_0x4bd756[_0x567d3b(0x1c2)]||_0x4a326e;_0x5e1ba6[_0x567d3b(0x1c8)+_0x8be81f]={'code':_0x4a326e,'tableName':_0x8be81f,'fieldCount':_0x319d4f['size'],'fields':Array[_0x567d3b(0x1b6)](_0x319d4f)};if(_0x47f2b4){const _0x22d156=normalizeDatasetIndexes(_0x4bd756);_0xadeda4['push']({'tableName':_0x8be81f,..._0x22d156});}}_0x47562[_0x567d3b(0x1da)]>0x0&&(_0x5e1ba6[_0x567d3b(0x1c5)]=_0x47562),_0x47f2b4&&(_0x5e1ba6['joinAudit']=auditSqlJoinIndexes(_0x289063,_0xadeda4));}return{'ok':_0xe9f2df[_0x567d3b(0x1b4)],'data':_0x5e1ba6,'message':_0xe9f2df[_0x567d3b(0x1b1)]};}};function normalizeDatasetIndexes(_0x2d7370){const _0x6fd141=a185_0x15f84e,_0x1267a2=Array[_0x6fd141(0x1d3)](_0x2d7370?.[_0x6fd141(0x1ac)]?.[_0x6fd141(0x1bb)])?_0x2d7370['dataset'][_0x6fd141(0x1bb)]:Array[_0x6fd141(0x1d3)](_0x2d7370?.[_0x6fd141(0x1bb)])?_0x2d7370[_0x6fd141(0x1bb)]:[],_0x247f72=_0x1267a2[_0x6fd141(0x1d6)](_0x382d23=>{const _0x5828d1=_0x6fd141,_0x1988f8=Array['isArray'](_0x382d23?.[_0x5828d1(0x1a6)])?_0x382d23[_0x5828d1(0x1a6)]:Array[_0x5828d1(0x1d3)](_0x382d23?.['columnNames'])?_0x382d23[_0x5828d1(0x1c3)]:Array[_0x5828d1(0x1d3)](_0x382d23?.['columns'])?_0x382d23[_0x5828d1(0x1a3)]:[],_0x35956d=_0x1988f8[_0x5828d1(0x1aa)](_0x25bd0b=>typeof _0x25bd0b===_0x5828d1(0x1ce))[_0x5828d1(0x1cc)](_0x299878=>_0x299878[_0x5828d1(0x1cd)]())[_0x5828d1(0x1aa)](Boolean);if(_0x35956d[_0x5828d1(0x1da)]===0x0)return[];const _0x2f5255=[_0x382d23?.[_0x5828d1(0x1de)],_0x382d23?.[_0x5828d1(0x1a4)],_0x382d23?.[_0x5828d1(0x1bd)]][_0x5828d1(0x1a9)](_0x4a1b8f=>typeof _0x4a1b8f===_0x5828d1(0x1ce)&&_0x4a1b8f[_0x5828d1(0x1cd)]()),_0x5641d5=[_0x382d23?.[_0x5828d1(0x1d5)],_0x382d23?.[_0x5828d1(0x1a7)]][_0x5828d1(0x1a9)](_0x28cb15=>typeof _0x28cb15===_0x5828d1(0x1ce)&&_0x28cb15[_0x5828d1(0x1cd)]());return[{..._0x2f5255?{'name':_0x2f5255[_0x5828d1(0x1cd)]()}:{},..._0x5641d5?{'type':_0x5641d5[_0x5828d1(0x1cd)]()}:{},'columns':_0x35956d}];}),_0xe99bdb=[..._0x247f72],_0x4d60db=typeof _0x2d7370?.[_0x6fd141(0x1e9)]?.['pkField']==='string'?_0x2d7370[_0x6fd141(0x1e9)][_0x6fd141(0x1d4)][_0x6fd141(0x1e8)](',')[_0x6fd141(0x1cc)](_0x23d9fa=>_0x23d9fa[_0x6fd141(0x1cd)]())['filter'](Boolean):[];return _0x4d60db[_0x6fd141(0x1da)]>0x0&&_0xe99bdb[_0x6fd141(0x1a8)]({'type':_0x6fd141(0x1d7),'columns':_0x4d60db}),{'indexes':_0xe99bdb,'metadataAvailable':_0x247f72['length']>0x0};}
@@ -1 +1 @@
1
- (function(_0x6929ec,_0x34ebc9){const _0x2ec3c0=a186_0x58cf,_0x2eb276=_0x6929ec();while(!![]){try{const _0x3d3dd8=-parseInt(_0x2ec3c0(0x195))/0x1*(parseInt(_0x2ec3c0(0x196))/0x2)+-parseInt(_0x2ec3c0(0x190))/0x3*(-parseInt(_0x2ec3c0(0x198))/0x4)+-parseInt(_0x2ec3c0(0x199))/0x5*(-parseInt(_0x2ec3c0(0x193))/0x6)+parseInt(_0x2ec3c0(0x197))/0x7+-parseInt(_0x2ec3c0(0x194))/0x8*(parseInt(_0x2ec3c0(0x191))/0x9)+-parseInt(_0x2ec3c0(0x19a))/0xa*(-parseInt(_0x2ec3c0(0x192))/0xb)+parseInt(_0x2ec3c0(0x19b))/0xc;if(_0x3d3dd8===_0x34ebc9)break;else _0x2eb276['push'](_0x2eb276['shift']());}catch(_0x4e4ae6){_0x2eb276['push'](_0x2eb276['shift']());}}}(a186_0x1724,0x7ff28));function a186_0x1724(){const _0x4ebe45=['857046ImjnuB','3594448rkzcQW','47kmQypL','44390fCyzKi','2867445dMmvNL','80DqHtWQ','5RrQKcP','32720xjLUZp','14471748YtazWN','7302TCOCwI','9pbOVVv','704tUAxNJ'];a186_0x1724=function(){return _0x4ebe45;};return a186_0x1724();}function a186_0x58cf(_0x180549,_0x54c195){_0x180549=_0x180549-0x190;const _0x172470=a186_0x1724();let _0x58cf59=_0x172470[_0x180549];return _0x58cf59;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ (function(_0x467d67,_0x3f0d41){const _0x1ee26c=a186_0xf94b,_0x5d980c=_0x467d67();while(!![]){try{const _0x976bb8=-parseInt(_0x1ee26c(0xc9))/0x1+parseInt(_0x1ee26c(0xca))/0x2+-parseInt(_0x1ee26c(0xce))/0x3+parseInt(_0x1ee26c(0xcd))/0x4*(parseInt(_0x1ee26c(0xc7))/0x5)+-parseInt(_0x1ee26c(0xd0))/0x6*(parseInt(_0x1ee26c(0xcf))/0x7)+parseInt(_0x1ee26c(0xcc))/0x8*(-parseInt(_0x1ee26c(0xc8))/0x9)+parseInt(_0x1ee26c(0xcb))/0xa;if(_0x976bb8===_0x3f0d41)break;else _0x5d980c['push'](_0x5d980c['shift']());}catch(_0x2b3a13){_0x5d980c['push'](_0x5d980c['shift']());}}}(a186_0x2676,0x71308));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a186_0xf94b(_0xf38c70,_0x17e611){_0xf38c70=_0xf38c70-0xc7;const _0x267692=a186_0x2676();let _0xf94b9=_0x267692[_0xf38c70];return _0xf94b9;}function a186_0x2676(){const _0x14add2=['91vrJYMa','101778ALEejW','3863290roREEw','9nYNomk','496763cLSOtP','1722572iLXJaS','6153540moCeeC','5297696CLkvIM','4vRmEwl','1218540SgevhI'];a186_0x2676=function(){return _0x14add2;};return a186_0x2676();}
@@ -1 +1 @@
1
- function a187_0xe03b(){const _0x26cdfb=['137929CgAoXK','trim','2916684GhQbpy','task','4112920lvNsyi','228539tznGwX','compress','2qiqema','isTerminal','appCode','570619RgPlKg','read','2475402LsNfbt','172tMcZTS','5kWNXTf','str',',\x20received\x20','apiError','taskId','770wFNPlV','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','10869FAdoQO','flagMissing','task-id'];a187_0xe03b=function(){return _0x26cdfb;};return a187_0xe03b();}const a187_0x3c6b0c=a187_0x5997;(function(_0x509537,_0x151656){const _0x385e17=a187_0x5997,_0x4d18dc=_0x509537();while(!![]){try{const _0x8cde6e=-parseInt(_0x385e17(0x85))/0x1*(-parseInt(_0x385e17(0x87))/0x2)+parseInt(_0x385e17(0x7d))/0x3*(-parseInt(_0x385e17(0x75))/0x4)+-parseInt(_0x385e17(0x76))/0x5*(-parseInt(_0x385e17(0x74))/0x6)+parseInt(_0x385e17(0x72))/0x7+parseInt(_0x385e17(0x84))/0x8+parseInt(_0x385e17(0x82))/0x9+parseInt(_0x385e17(0x7b))/0xa*(-parseInt(_0x385e17(0x80))/0xb);if(_0x8cde6e===_0x151656)break;else _0x4d18dc['push'](_0x4d18dc['shift']());}catch(_0x548964){_0x4d18dc['push'](_0x4d18dc['shift']());}}}(a187_0xe03b,0x6b4e2));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 a187_0x5997(_0x12c904,_0x581d2b){_0x12c904=_0x12c904-0x70;const _0xe03bdb=a187_0xe03b();let _0x59970d=_0xe03bdb[_0x12c904];return _0x59970d;}import{CliErrors}from'../../errors.js';export const taskStatus={'service':a187_0x3c6b0c(0x83),'command':'status','description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':a187_0x3c6b0c(0x73),'defaultOutputFormat':a187_0x3c6b0c(0x86),'structuredErrors':!![],'flags':[{'name':a187_0x3c6b0c(0x7f),'type':'string','required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x95e035){const _0x127765=a187_0x3c6b0c;if(!_0x95e035[_0x127765(0x77)](_0x127765(0x7f))[_0x127765(0x81)]())throw CliErrors[_0x127765(0x7e)](_0x127765(0x7f));},async 'execute'(_0x4511b4){const _0x174676=a187_0x3c6b0c,_0x47cc32=_0x4511b4[_0x174676(0x77)](_0x174676(0x7f))[_0x174676(0x81)](),_0x29a3bd=normalizeAsyncTask(await getAsyncTaskStatus(_0x47cc32,_0x4511b4['appCode'],_0x4511b4['cookie']));if(_0x29a3bd[_0x174676(0x7a)]!==_0x47cc32)throw CliErrors[_0x174676(0x79)](_0x174676(0x7c)+_0x47cc32+_0x174676(0x78)+_0x29a3bd['taskId']+'.');const _0x3dadcb=buildAsyncTaskStatusCommand(_0x29a3bd[_0x174676(0x7a)],_0x4511b4[_0x174676(0x71)]);return{'ok':!![],'message':asyncTaskMessage(_0x29a3bd),'data':{'appCode':_0x4511b4[_0x174676(0x71)],..._0x29a3bd,'query':_0x29a3bd[_0x174676(0x70)]?null:{'command':_0x3dadcb}}};}};
1
+ const a187_0x12faca=a187_0x1819;(function(_0x561c42,_0x161f67){const _0x85d657=a187_0x1819,_0x5adf08=_0x561c42();while(!![]){try{const _0x5c0d07=parseInt(_0x85d657(0x1b9))/0x1*(parseInt(_0x85d657(0x1c2))/0x2)+parseInt(_0x85d657(0x1bd))/0x3*(-parseInt(_0x85d657(0x1b0))/0x4)+parseInt(_0x85d657(0x1c0))/0x5+parseInt(_0x85d657(0x1c5))/0x6+-parseInt(_0x85d657(0x1b7))/0x7+-parseInt(_0x85d657(0x1b4))/0x8+parseInt(_0x85d657(0x1b8))/0x9*(parseInt(_0x85d657(0x1c4))/0xa);if(_0x5c0d07===_0x161f67)break;else _0x5adf08['push'](_0x5adf08['shift']());}catch(_0x1471a8){_0x5adf08['push'](_0x5adf08['shift']());}}}(a187_0x1cfb,0x94150));function a187_0x1cfb(){const _0xddda56=['Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','12xyVitv','cookie',',\x20received\x20','4338985pcWipt','apiError','724468sqZixa','trim','2280snZzeU','3582588tVrcJr','taskId','181000BagQrM','str','compress','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','1110720fANPCq','appCode','task-id','7380919KHiJaD','6066FQyeGV','1BJhkxc','flagMissing','isTerminal'];a187_0x1cfb=function(){return _0xddda56;};return a187_0x1cfb();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a187_0x1819(_0x29d5d1,_0x18e709){_0x29d5d1=_0x29d5d1-0x1b0;const _0x1cfbb9=a187_0x1cfb();let _0x1819e0=_0x1cfbb9[_0x29d5d1];return _0x1819e0;}import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':'status','description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':'read','defaultOutputFormat':a187_0x12faca(0x1b2),'structuredErrors':!![],'flags':[{'name':a187_0x12faca(0x1b6),'type':'string','required':!![],'description':a187_0x12faca(0x1bc)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x104f8a){const _0x5067e2=a187_0x12faca;if(!_0x104f8a[_0x5067e2(0x1b1)]('task-id')[_0x5067e2(0x1c3)]())throw CliErrors[_0x5067e2(0x1ba)](_0x5067e2(0x1b6));},async 'execute'(_0x5cd6e5){const _0x258762=a187_0x12faca,_0x3ab2c9=_0x5cd6e5[_0x258762(0x1b1)](_0x258762(0x1b6))['trim'](),_0x48b209=normalizeAsyncTask(await getAsyncTaskStatus(_0x3ab2c9,_0x5cd6e5[_0x258762(0x1b5)],_0x5cd6e5[_0x258762(0x1be)]));if(_0x48b209[_0x258762(0x1c6)]!==_0x3ab2c9)throw CliErrors[_0x258762(0x1c1)](_0x258762(0x1b3)+_0x3ab2c9+_0x258762(0x1bf)+_0x48b209[_0x258762(0x1c6)]+'.');const _0x37dbfa=buildAsyncTaskStatusCommand(_0x48b209[_0x258762(0x1c6)],_0x5cd6e5['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x48b209),'data':{'appCode':_0x5cd6e5[_0x258762(0x1b5)],..._0x48b209,'query':_0x48b209[_0x258762(0x1bb)]?null:{'command':_0x37dbfa}}};}};
@@ -1 +1 @@
1
- (function(_0x3b892c,_0x256c17){const _0x2cc612=a188_0x581d,_0x223d42=_0x3b892c();while(!![]){try{const _0x26ddcb=-parseInt(_0x2cc612(0xe1))/0x1*(parseInt(_0x2cc612(0xd8))/0x2)+parseInt(_0x2cc612(0xd9))/0x3+parseInt(_0x2cc612(0xda))/0x4+-parseInt(_0x2cc612(0xdd))/0x5*(parseInt(_0x2cc612(0xdc))/0x6)+parseInt(_0x2cc612(0xdf))/0x7+parseInt(_0x2cc612(0xde))/0x8*(-parseInt(_0x2cc612(0xdb))/0x9)+parseInt(_0x2cc612(0xe0))/0xa;if(_0x26ddcb===_0x256c17)break;else _0x223d42['push'](_0x223d42['shift']());}catch(_0x1c7a27){_0x223d42['push'](_0x223d42['shift']());}}}(a188_0x16ff,0xdb614));function a188_0x16ff(){const _0x5e5bde=['17949150HwEkuT','228815DVcfSB','4tBFhuI','1591719bPTecB','5694368JeMYRS','9FtYjSL','21534SuJptk','2260krfYxo','8389624hsTaza','1946427QEweGI'];a188_0x16ff=function(){return _0x5e5bde;};return a188_0x16ff();}function a188_0x581d(_0x158dff,_0x472df3){_0x158dff=_0x158dff-0xd8;const _0x16ff17=a188_0x16ff();let _0x581d45=_0x16ff17[_0x158dff];return _0x581d45;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
1
+ function a188_0x5f19(_0x41ac56,_0x3baa36){_0x41ac56=_0x41ac56-0x14d;const _0x2bdd20=a188_0x2bdd();let _0x5f19db=_0x2bdd20[_0x41ac56];return _0x5f19db;}(function(_0x1b2574,_0x1731aa){const _0x4046f0=a188_0x5f19,_0x18a347=_0x1b2574();while(!![]){try{const _0x3e6a01=parseInt(_0x4046f0(0x152))/0x1+-parseInt(_0x4046f0(0x151))/0x2*(-parseInt(_0x4046f0(0x157))/0x3)+-parseInt(_0x4046f0(0x14f))/0x4*(-parseInt(_0x4046f0(0x155))/0x5)+-parseInt(_0x4046f0(0x150))/0x6+-parseInt(_0x4046f0(0x14e))/0x7*(-parseInt(_0x4046f0(0x154))/0x8)+parseInt(_0x4046f0(0x14d))/0x9*(-parseInt(_0x4046f0(0x156))/0xa)+parseInt(_0x4046f0(0x153))/0xb;if(_0x3e6a01===_0x1731aa)break;else _0x18a347['push'](_0x18a347['shift']());}catch(_0x190b4f){_0x18a347['push'](_0x18a347['shift']());}}}(a188_0x2bdd,0xd1fdf));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];function a188_0x2bdd(){const _0xc6598a=['8XcIKOA','175365yxnCfW','2882530pluREI','49026mpSjGo','36sgcXiP','5689257swoDwZ','24lOxWao','9570816RmSfiT','138WIFnvV','83091buHNMj','15118367ccNVOy'];a188_0x2bdd=function(){return _0xc6598a;};return a188_0x2bdd();}
@@ -1 +1 @@
1
- const a189_0x2614c3=a189_0x387b;function a189_0x387b(_0x10b2ac,_0x1fdca2){_0x10b2ac=_0x10b2ac-0xf1;const _0x2c31af=a189_0x2c31();let _0x387b7b=_0x2c31af[_0x10b2ac];return _0x387b7b;}(function(_0x24e50b,_0xdb8a09){const _0x4c2611=a189_0x387b,_0xbca1b7=_0x24e50b();while(!![]){try{const _0x26e395=-parseInt(_0x4c2611(0xf4))/0x1*(-parseInt(_0x4c2611(0xf2))/0x2)+-parseInt(_0x4c2611(0xf9))/0x3*(-parseInt(_0x4c2611(0xfd))/0x4)+-parseInt(_0x4c2611(0x105))/0x5*(-parseInt(_0x4c2611(0x101))/0x6)+-parseInt(_0x4c2611(0x103))/0x7*(parseInt(_0x4c2611(0xfa))/0x8)+-parseInt(_0x4c2611(0xff))/0x9+-parseInt(_0x4c2611(0xf5))/0xa+parseInt(_0x4c2611(0xf8))/0xb;if(_0x26e395===_0xdb8a09)break;else _0xbca1b7['push'](_0xbca1b7['shift']());}catch(_0x5a3b31){_0xbca1b7['push'](_0xbca1b7['shift']());}}}(a189_0x2c31,0xa9fb3));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a189_0x2c31(){const _0x20000f=['450udzvJe','16uYhHEn','read','flagMissing','3908TKvNkQ','str','11724417ReIdIC','\x20tenant\x20member(s)','5786538gEABdY','string','3410015LVFHBC','tenant-code','5zBzDnB','trim','2340334pXwtqW','length','1oycvwM','11770400SjWezW','Exact\x20tenant\x20code','members-list','20560606bTojfa'];a189_0x2c31=function(){return _0x20000f;};return a189_0x2c31();}import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':'tenant','command':a189_0x2614c3(0xf7),'description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a189_0x2614c3(0xfb),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a189_0x2614c3(0x104),'type':a189_0x2614c3(0x102),'required':!![],'description':a189_0x2614c3(0xf6)}],async 'validate'(_0x21475f){const _0x13d1c2=a189_0x2614c3;if(!_0x21475f[_0x13d1c2(0xfe)](_0x13d1c2(0x104))[_0x13d1c2(0xf1)]())throw CliErrors[_0x13d1c2(0xfc)](_0x13d1c2(0x104),'Pass\x20--tenant-code\x20<code>.');},async 'execute'(_0x2645b1){const _0x37e101=a189_0x2614c3,_0x3797a4=_0x2645b1[_0x37e101(0xfe)](_0x37e101(0x104))[_0x37e101(0xf1)](),_0x4d1706=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x3797a4,_0x4d1706);const _0x40fa0c=projectTenantMembers(await listTenantDirectoryMembers(_0x3797a4));return{'ok':!![],'data':{'tenantCode':_0x3797a4,'items':_0x40fa0c,'totalCount':_0x40fa0c[_0x37e101(0xf3)]},'message':'Found\x20'+_0x40fa0c[_0x37e101(0xf3)]+_0x37e101(0x100)};}};
1
+ const a189_0x5ec09f=a189_0x5179;(function(_0x501f85,_0x420e3c){const _0x417721=a189_0x5179,_0x100753=_0x501f85();while(!![]){try{const _0x5b3530=-parseInt(_0x417721(0x18f))/0x1+parseInt(_0x417721(0x18b))/0x2+-parseInt(_0x417721(0x18e))/0x3+parseInt(_0x417721(0x187))/0x4+-parseInt(_0x417721(0x192))/0x5*(-parseInt(_0x417721(0x182))/0x6)+parseInt(_0x417721(0x18d))/0x7*(-parseInt(_0x417721(0x184))/0x8)+parseInt(_0x417721(0x188))/0x9*(-parseInt(_0x417721(0x185))/0xa);if(_0x5b3530===_0x420e3c)break;else _0x100753['push'](_0x100753['shift']());}catch(_0x47c09c){_0x100753['push'](_0x100753['shift']());}}}(a189_0x4c41,0x45714));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a189_0x4c41(){const _0xaf660d=['99wlsJwA','tenant-code','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','259112fKzhYX','Exact\x20tenant\x20code','224917hdLxUt','106212FJPaTW','70020mzXtSL','trim','length','1740090FPoHYt','str','6wftaxo','read','56hRtKeO','327830toZVjM','Found\x20','1991264GNCjIV'];a189_0x4c41=function(){return _0xaf660d;};return a189_0x4c41();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a189_0x5179(_0x84e97d,_0x5f0c46){_0x84e97d=_0x84e97d-0x182;const _0x4c41d1=a189_0x4c41();let _0x51792c=_0x4c41d1[_0x84e97d];return _0x51792c;}export const tenantMembersListDefinition={'service':'tenant','command':'members-list','description':a189_0x5ec09f(0x18a),'risk':a189_0x5ec09f(0x183),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a189_0x5ec09f(0x189),'type':'string','required':!![],'description':a189_0x5ec09f(0x18c)}],async 'validate'(_0x6b4674){const _0x132703=a189_0x5ec09f;if(!_0x6b4674[_0x132703(0x193)](_0x132703(0x189))[_0x132703(0x190)]())throw CliErrors['flagMissing'](_0x132703(0x189),'Pass\x20--tenant-code\x20<code>.');},async 'execute'(_0x38e655){const _0x1eaed6=a189_0x5ec09f,_0x179a46=_0x38e655[_0x1eaed6(0x193)](_0x1eaed6(0x189))[_0x1eaed6(0x190)](),_0xd06e74=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x179a46,_0xd06e74);const _0x5890f4=projectTenantMembers(await listTenantDirectoryMembers(_0x179a46));return{'ok':!![],'data':{'tenantCode':_0x179a46,'items':_0x5890f4,'totalCount':_0x5890f4[_0x1eaed6(0x191)]},'message':_0x1eaed6(0x186)+_0x5890f4[_0x1eaed6(0x191)]+'\x20tenant\x20member(s)'};}};
@@ -1 +1 @@
1
- (function(_0x5e31e3,_0x5349af){const _0x5e9564=a190_0x4f8e,_0x2aada4=_0x5e31e3();while(!![]){try{const _0x2c5557=-parseInt(_0x5e9564(0x20e))/0x1+parseInt(_0x5e9564(0x1fc))/0x2+-parseInt(_0x5e9564(0x205))/0x3*(parseInt(_0x5e9564(0x206))/0x4)+parseInt(_0x5e9564(0x209))/0x5+parseInt(_0x5e9564(0x1f7))/0x6*(parseInt(_0x5e9564(0x200))/0x7)+-parseInt(_0x5e9564(0x1fa))/0x8*(parseInt(_0x5e9564(0x1f6))/0x9)+parseInt(_0x5e9564(0x1f5))/0xa;if(_0x2c5557===_0x5349af)break;else _0x2aada4['push'](_0x2aada4['shift']());}catch(_0x29864f){_0x2aada4['push'](_0x2aada4['shift']());}}}(a190_0x36fd,0x56258));function a190_0x36fd(){const _0xcb5282=['username','1925705DkskAo','nickname','ADMIN','status','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','523036Mftbzm','sort','5981380CgCdfi','9TvjxDb','6ojurnP','get','Tenant\x20\x22','1481752NbtaKM','userId','212076ufBoFf','trim','set','tenantCode','540897UqTagk','MEMBER','some','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','validation','3eDaEdt','421908TgVNhB','adminFlag'];a190_0x36fd=function(){return _0xcb5282;};return a190_0x36fd();}import{CliErrors}from'../../errors.js';function a190_0x4f8e(_0x3561c8,_0x403d4f){_0x3561c8=_0x3561c8-0x1f4;const _0x36fd0c=a190_0x36fd();let _0x4f8e5c=_0x36fd0c[_0x3561c8];return _0x4f8e5c;}function textOrNull(_0x57e8dc){const _0x287390=a190_0x4f8e,_0xb55348=_0x57e8dc?.[_0x287390(0x1fd)]();return _0xb55348?_0xb55348:null;}export function projectTenantMembers(_0x347b6e){const _0x5e65b3=a190_0x4f8e,_0x197752=new Map();for(const _0x4ae902 of _0x347b6e){const _0x5b96f6=Number(_0x4ae902[_0x5e65b3(0x1fb)]);if(!Number['isFinite'](_0x5b96f6)||_0x5b96f6<=0x0)continue;const _0x4d984a={'userId':_0x5b96f6,'username':textOrNull(_0x4ae902[_0x5e65b3(0x208)]),'displayName':textOrNull(_0x4ae902[_0x5e65b3(0x20a)]),'role':_0x4ae902[_0x5e65b3(0x207)]===!![]?_0x5e65b3(0x20b):_0x5e65b3(0x201),'status':textOrNull(_0x4ae902['status'])},_0x120aa6=_0x197752[_0x5e65b3(0x1f8)](_0x5b96f6);if(!_0x120aa6){_0x197752[_0x5e65b3(0x1fe)](_0x5b96f6,_0x4d984a);continue;}_0x120aa6[_0x5e65b3(0x208)]??=_0x4d984a[_0x5e65b3(0x208)],_0x120aa6['displayName']??=_0x4d984a['displayName'],_0x120aa6[_0x5e65b3(0x20c)]??=_0x4d984a[_0x5e65b3(0x20c)];if(_0x4d984a['role']===_0x5e65b3(0x20b))_0x120aa6['role']=_0x5e65b3(0x20b);}return[..._0x197752['values']()][_0x5e65b3(0x1f4)]((_0x283cd9,_0x1574be)=>_0x283cd9[_0x5e65b3(0x1fb)]-_0x1574be['userId']);}export function assertTenantAccessible(_0x523305,_0x24b599){const _0x103ae3=a190_0x4f8e;if(_0x24b599[_0x103ae3(0x202)](_0x43c89c=>_0x43c89c[_0x103ae3(0x1ff)]===_0x523305))return;throw CliErrors[_0x103ae3(0x204)](_0x103ae3(0x1f9)+_0x523305+_0x103ae3(0x20d),_0x103ae3(0x203));}
1
+ (function(_0x444913,_0x228495){const _0x889be0=a190_0xb95d,_0x565cf8=_0x444913();while(!![]){try{const _0x20f91e=-parseInt(_0x889be0(0x17f))/0x1+parseInt(_0x889be0(0x16d))/0x2*(parseInt(_0x889be0(0x170))/0x3)+-parseInt(_0x889be0(0x185))/0x4+-parseInt(_0x889be0(0x176))/0x5*(parseInt(_0x889be0(0x177))/0x6)+parseInt(_0x889be0(0x182))/0x7*(parseInt(_0x889be0(0x17d))/0x8)+parseInt(_0x889be0(0x17b))/0x9+-parseInt(_0x889be0(0x184))/0xa;if(_0x20f91e===_0x228495)break;else _0x565cf8['push'](_0x565cf8['shift']());}catch(_0x5b8d54){_0x565cf8['push'](_0x565cf8['shift']());}}}(a190_0x5cce,0x1d694));import{CliErrors}from'../../errors.js';function textOrNull(_0x525f74){const _0x400ba6=a190_0xb95d,_0x55965e=_0x525f74?.[_0x400ba6(0x183)]();return _0x55965e?_0x55965e:null;}function a190_0x5cce(){const _0x57a6e0=['isFinite','username','65IJNZju','6084nrNNHD','role','displayName','values','979911SBAxzE','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','8XFPWXv','adminFlag','11592NqstHF','ADMIN','userId','687113hbOpRn','trim','86540hNzsnz','549608HnVmUz','nickname','sort','some','10XNGRUS','set','status','50556kfRqqB','tenantCode','validation','Tenant\x20\x22'];a190_0x5cce=function(){return _0x57a6e0;};return a190_0x5cce();}function a190_0xb95d(_0x28ce4a,_0x297358){_0x28ce4a=_0x28ce4a-0x16a;const _0x5cce67=a190_0x5cce();let _0xb95dfd=_0x5cce67[_0x28ce4a];return _0xb95dfd;}export function projectTenantMembers(_0x281b10){const _0x2ee891=a190_0xb95d,_0x4205a7=new Map();for(const _0x185fc8 of _0x281b10){const _0x322d64=Number(_0x185fc8['userId']);if(!Number[_0x2ee891(0x174)](_0x322d64)||_0x322d64<=0x0)continue;const _0x53e337={'userId':_0x322d64,'username':textOrNull(_0x185fc8[_0x2ee891(0x175)]),'displayName':textOrNull(_0x185fc8[_0x2ee891(0x16a)]),'role':_0x185fc8[_0x2ee891(0x17e)]===!![]?_0x2ee891(0x180):'MEMBER','status':textOrNull(_0x185fc8[_0x2ee891(0x16f)])},_0x396ed4=_0x4205a7['get'](_0x322d64);if(!_0x396ed4){_0x4205a7[_0x2ee891(0x16e)](_0x322d64,_0x53e337);continue;}_0x396ed4[_0x2ee891(0x175)]??=_0x53e337[_0x2ee891(0x175)],_0x396ed4[_0x2ee891(0x179)]??=_0x53e337[_0x2ee891(0x179)],_0x396ed4['status']??=_0x53e337['status'];if(_0x53e337['role']===_0x2ee891(0x180))_0x396ed4[_0x2ee891(0x178)]=_0x2ee891(0x180);}return[..._0x4205a7[_0x2ee891(0x17a)]()][_0x2ee891(0x16b)]((_0x121f7d,_0x4adf79)=>_0x121f7d[_0x2ee891(0x181)]-_0x4adf79[_0x2ee891(0x181)]);}export function assertTenantAccessible(_0x27f129,_0x13b462){const _0x3b0bb9=a190_0xb95d;if(_0x13b462[_0x3b0bb9(0x16c)](_0x55d6b5=>_0x55d6b5[_0x3b0bb9(0x171)]===_0x27f129))return;throw CliErrors[_0x3b0bb9(0x172)](_0x3b0bb9(0x173)+_0x27f129+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x3b0bb9(0x17c));}
@@ -1 +1 @@
1
- function a191_0x318e(_0x55bcbf,_0x18f29b){_0x55bcbf=_0x55bcbf-0x193;const _0x29b153=a191_0x29b1();let _0x318e2d=_0x29b153[_0x55bcbf];return _0x318e2d;}const a191_0x49711a=a191_0x318e;(function(_0x149c9e,_0x3a3234){const _0x566823=a191_0x318e,_0x59ea53=_0x149c9e();while(!![]){try{const _0x59ca07=parseInt(_0x566823(0x198))/0x1+parseInt(_0x566823(0x193))/0x2+parseInt(_0x566823(0x19a))/0x3+parseInt(_0x566823(0x1a1))/0x4+-parseInt(_0x566823(0x19e))/0x5*(parseInt(_0x566823(0x194))/0x6)+-parseInt(_0x566823(0x197))/0x7+-parseInt(_0x566823(0x199))/0x8*(parseInt(_0x566823(0x196))/0x9);if(_0x59ca07===_0x3a3234)break;else _0x59ea53['push'](_0x59ea53['shift']());}catch(_0x599dc4){_0x59ea53['push'](_0x59ea53['shift']());}}}(a191_0x29b1,0xc9bc1));function a191_0x29b1(){const _0xa9fd41=['add','name','workspace\x20add','1779595qiQMqy','write','workspace','1816560EFPJWY','713564WIOaiF','12jYcmZC','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','1332RdPcHQ','6879173dnfzxu','1419499DZjGsq','18328HXPbdP','1888587niTRWh'];a191_0x29b1=function(){return _0xa9fd41;};return a191_0x29b1();}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a191_0x49711a(0x1a0),'command':a191_0x49711a(0x19b),'description':a191_0x49711a(0x195),'risk':a191_0x49711a(0x19f),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a191_0x49711a(0x19c),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x1aa8ec=>validateAppName(_0x1aa8ec,'workspace\x20add'),'execute':_0x2633d0=>runAppAdd(_0x2633d0,a191_0x49711a(0x19d))};
1
+ function a191_0x1d98(){const _0x525fe3=['12776nNXlAF','workspace\x20add','3102cmlDqB','1210870EjjJpp','1191065edxvZL','748446wWNYhn','App\x20profile\x20name','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','write','12alXKMu','881423kJlARt','2711303DpzDOo','add','1502TAvHdE','405eobbmA','workspace'];a191_0x1d98=function(){return _0x525fe3;};return a191_0x1d98();}const a191_0x45b325=a191_0xef98;function a191_0xef98(_0x2f2544,_0x521fe2){_0x2f2544=_0x2f2544-0xd1;const _0x1d9855=a191_0x1d98();let _0xef989e=_0x1d9855[_0x2f2544];return _0xef989e;}(function(_0x4dffe8,_0x5e1cf8){const _0x1a2caf=a191_0xef98,_0x5e7059=_0x4dffe8();while(!![]){try{const _0x3a8516=parseInt(_0x1a2caf(0xe0))/0x1+-parseInt(_0x1a2caf(0xd3))/0x2*(parseInt(_0x1a2caf(0xd8))/0x3)+-parseInt(_0x1a2caf(0xdf))/0x4*(-parseInt(_0x1a2caf(0xda))/0x5)+parseInt(_0x1a2caf(0xdb))/0x6+-parseInt(_0x1a2caf(0xd1))/0x7+-parseInt(_0x1a2caf(0xd6))/0x8*(-parseInt(_0x1a2caf(0xd4))/0x9)+-parseInt(_0x1a2caf(0xd9))/0xa;if(_0x3a8516===_0x5e1cf8)break;else _0x5e7059['push'](_0x5e7059['shift']());}catch(_0x32d6d2){_0x5e7059['push'](_0x5e7059['shift']());}}}(a191_0x1d98,0x7bf46));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a191_0x45b325(0xd5),'command':a191_0x45b325(0xd2),'description':a191_0x45b325(0xdd),'risk':a191_0x45b325(0xde),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a191_0x45b325(0xdc),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x476a72=>validateAppName(_0x476a72,a191_0x45b325(0xd7)),'execute':_0x486fbf=>runAppAdd(_0x486fbf,a191_0x45b325(0xd7))};
@@ -1 +1 @@
1
- const a192_0x5f134a=a192_0x474e;(function(_0x4646c5,_0x2d2f2f){const _0x1d1158=a192_0x474e,_0x2f1dab=_0x4646c5();while(!![]){try{const _0x3e4e50=-parseInt(_0x1d1158(0x123))/0x1+-parseInt(_0x1d1158(0x140))/0x2+-parseInt(_0x1d1158(0x141))/0x3*(-parseInt(_0x1d1158(0x153))/0x4)+parseInt(_0x1d1158(0x150))/0x5*(-parseInt(_0x1d1158(0x13d))/0x6)+parseInt(_0x1d1158(0x133))/0x7+parseInt(_0x1d1158(0x146))/0x8*(parseInt(_0x1d1158(0x128))/0x9)+parseInt(_0x1d1158(0x12f))/0xa;if(_0x3e4e50===_0x2d2f2f)break;else _0x2f1dab['push'](_0x2f1dab['shift']());}catch(_0x435635){_0x2f1dab['push'](_0x2f1dab['shift']());}}}(a192_0x3bd2,0x7502a));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 a192_0x3bd2(){const _0x410d01=['926423oIvidt','string','Invalid\x20appcode:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','apiDir','2365452OQmwDz','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20use\x20--app\x20<name>`.','env','\x20--appcode\x20<code>`.',').\x20Config:\x20','270810TWMxRf','workspace','defaultApp','format','5444593XNoDOH','Locale\x20for\x20this\x20workspace\x20app\x20profile','Workspace\x20','apps','str','number','App\x20\x22','Missing\x20workspace\x20app\x20selector.','workspace.','pageSize','6lhittD','appcode','globalConfig','1102618arpblA','2464512QjTzYj','locale','trim','Use\x20`','object','24VDePwX','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','init','Initialize\x20the\x20current\x20workspace\x20app\x20binding','write','length','riskLevel','validation','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','2289310kFyLgb','.\x20Credentials:\x20not\x20written.','app','4dYNyUL','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','updated','join','initialized'];a192_0x3bd2=function(){return _0x410d01;};return a192_0x3bd2();}function a192_0x474e(_0x59d37b,_0x4cff19){_0x59d37b=_0x59d37b-0x123;const _0x3bd2d2=a192_0x3bd2();let _0x474ea3=_0x3bd2d2[_0x59d37b];return _0x474ea3;}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+a192_0x5f134a(0x129),SAFE_PROFILE_KEYS=[a192_0x5f134a(0x13e),a192_0x5f134a(0x12c),a192_0x5f134a(0x127),a192_0x5f134a(0x132),a192_0x5f134a(0x13c),a192_0x5f134a(0x14d),a192_0x5f134a(0x142)],workspaceFlags=[{'name':a192_0x5f134a(0x152),'type':a192_0x5f134a(0x124),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a192_0x5f134a(0x124),'description':a192_0x5f134a(0x126)},{'name':a192_0x5f134a(0x12c),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a192_0x5f134a(0x127),'type':a192_0x5f134a(0x124),'description':a192_0x5f134a(0x12a)},{'name':'defaultFormat','type':a192_0x5f134a(0x124),'description':a192_0x5f134a(0x14f),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x5f134a(0x13c),'type':a192_0x5f134a(0x138),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':'string','description':a192_0x5f134a(0x147),'enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x5f134a(0x142),'type':a192_0x5f134a(0x124),'description':a192_0x5f134a(0x134)}];function isRecord(_0x3a98b7){const _0x3b8e87=a192_0x5f134a;return!!_0x3a98b7&&typeof _0x3a98b7===_0x3b8e87(0x145)&&!Array['isArray'](_0x3a98b7);}function assertValidAppcode(_0x207201){const _0x5ccf2c=a192_0x5f134a,{valid:_0xf7b47d,message:_0x27ecc9}=validateAppcode(_0x207201);if(!_0xf7b47d)throw CliErrors[_0x5ccf2c(0x14e)](_0x5ccf2c(0x125)+_0x207201,_0x27ecc9);}function sanitizeProfile(_0x12af99){if(!isRecord(_0x12af99))return{};const _0x30b090={};for(const _0x663311 of SAFE_PROFILE_KEYS){if(_0x12af99[_0x663311]!==undefined)_0x30b090[_0x663311]=_0x12af99[_0x663311];}return _0x30b090;}function cloneProfile(_0x55e59f){return isRecord(_0x55e59f)?{..._0x55e59f}:{};}function collectWorkspaceProfileOverrides(_0x24433){const _0x1da741=a192_0x5f134a,_0x301489={},_0x42d2af=_0x24433['str'](_0x1da741(0x12c)),_0x1c79ee=_0x24433['str']('apiDir'),_0x43056f=_0x24433[_0x1da741(0x137)]('defaultFormat'),_0x102e6f=_0x24433['flag'](_0x1da741(0x13c)),_0x1d9ccd=_0x24433[_0x1da741(0x137)](_0x1da741(0x14d)),_0x45940f=_0x24433[_0x1da741(0x137)]('locale');if(_0x42d2af)_0x301489[_0x1da741(0x12c)]=_0x42d2af;if(_0x1c79ee)_0x301489['apiDir']=_0x1c79ee;if(_0x43056f)_0x301489[_0x1da741(0x132)]=_0x43056f;if(_0x102e6f!==undefined&&_0x102e6f!=='')_0x301489[_0x1da741(0x13c)]=Number(_0x102e6f);if(_0x1d9ccd)_0x301489[_0x1da741(0x14d)]=_0x1d9ccd;if(_0x45940f)_0x301489[_0x1da741(0x142)]=_0x45940f;return _0x301489;}async function validateWorkspaceArgs(_0x248a00){const _0x6bbc41=a192_0x5f134a,_0x38d65c=_0x248a00[_0x6bbc41(0x137)]('app')[_0x6bbc41(0x143)](),_0x2c96fd=_0x248a00[_0x6bbc41(0x137)](_0x6bbc41(0x13e))[_0x6bbc41(0x143)]();if(!_0x38d65c&&!_0x2c96fd)throw CliErrors['validation'](_0x6bbc41(0x13a),_0x6bbc41(0x144)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x6bbc41(0x12b));if(_0x2c96fd)assertValidAppcode(_0x2c96fd);}function resolveKnownApps(){const _0x2d61cc=a192_0x5f134a,{config:_0x57ed07,layers:_0xa672e2}=readRawConfigWithLayers(),_0x4a5e58=isRecord(_0x57ed07[_0x2d61cc(0x136)])?_0x57ed07[_0x2d61cc(0x136)]:{},_0x2c790a=isRecord(_0xa672e2[_0x2d61cc(0x13f)][_0x2d61cc(0x136)])?_0xa672e2['globalConfig'][_0x2d61cc(0x136)]:{};return{..._0x2c790a,..._0x4a5e58};}async function configureWorkspace(_0x2fc2df,_0xcd9ce){const _0x3441c6=a192_0x5f134a,_0x22e5d1=_0x2fc2df[_0x3441c6(0x137)]('app')[_0x3441c6(0x143)](),_0x4a3ff1=_0x2fc2df[_0x3441c6(0x137)](_0x3441c6(0x13e))[_0x3441c6(0x143)](),_0x2fa76e=_0x22e5d1||_0x4a3ff1;if(!_0x2fa76e)throw CliErrors[_0x3441c6(0x14e)](_0x3441c6(0x13a),_0x3441c6(0x144)+CLI_BIN_NAME+_0x3441c6(0x154)+CLI_BIN_NAME+_0x3441c6(0x12b));if(_0x4a3ff1)assertValidAppcode(_0x4a3ff1);const _0x58a4a5=resolveWriteConfigPath('project'),_0x11b40e=readConfigFile(_0x58a4a5),_0x1b82b3=resolveKnownApps(),_0xd6f41b=isRecord(_0x11b40e[_0x3441c6(0x136)])?{..._0x11b40e[_0x3441c6(0x136)]}:{},_0x3c83e8=cloneProfile(_0xd6f41b[_0x2fa76e]),_0x487424=sanitizeProfile(_0x1b82b3[_0x2fa76e]),_0x3c6a61=_0x4a3ff1?{}:_0x487424,_0x54d0ea=_0x4a3ff1||_0x3c6a61['appcode'];if(!_0x54d0ea){const _0x47ee30=Object['keys'](_0x1b82b3),_0x1953c2=_0x47ee30[_0x3441c6(0x14c)]===0x0?_0x3441c6(0x144)+CLI_BIN_NAME+'\x20workspace\x20'+_0xcd9ce+'\x20--app\x20'+_0x2fa76e+_0x3441c6(0x12d):_0x3441c6(0x148)+_0x47ee30[_0x3441c6(0x156)](',\x20');throw CliErrors[_0x3441c6(0x14e)](_0x3441c6(0x139)+_0x2fa76e+'\x22\x20not\x20found.',_0x1953c2);}assertValidAppcode(String(_0x54d0ea));const _0x32fd2d={..._0x3c6a61,..._0x3c83e8,'appcode':String(_0x54d0ea),...collectWorkspaceProfileOverrides(_0x2fc2df)};return _0xd6f41b[_0x2fa76e]=_0x32fd2d,_0x11b40e[_0x3441c6(0x136)]=_0xd6f41b,_0x11b40e[_0x3441c6(0x131)]=_0x2fa76e,delete _0x11b40e[_0x3441c6(0x13e)],delete _0x11b40e[_0x3441c6(0x152)],_0x32fd2d[_0x3441c6(0x12c)]&&(_0x11b40e[_0x3441c6(0x12c)]=_0x32fd2d['env']),writeConfigFile(_0x58a4a5,_0x11b40e),{'ok':!![],'message':_0x3441c6(0x135)+(_0xcd9ce===_0x3441c6(0x149)?_0x3441c6(0x157):_0x3441c6(0x155))+':\x20'+_0x2fa76e+'\x20(appcode:\x20'+_0x32fd2d[_0x3441c6(0x13e)]+_0x3441c6(0x12e)+_0x58a4a5+_0x3441c6(0x151),'data':{'operation':_0x3441c6(0x13b)+_0xcd9ce,'configPath':_0x58a4a5,'app':_0x2fa76e,'appcode':_0x32fd2d['appcode'],'env':_0x32fd2d['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a192_0x5f134a(0x149),'description':a192_0x5f134a(0x14a),'risk':a192_0x5f134a(0x14b),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x38878e=>configureWorkspace(_0x38878e,a192_0x5f134a(0x149))},workspaceUseDefinition={'service':a192_0x5f134a(0x130),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a192_0x5f134a(0x14b),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2b6cd1=>configureWorkspace(_0x2b6cd1,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a192_0x1ac181=a192_0x3818;(function(_0x4a02ca,_0x1f2af9){const _0xe61473=a192_0x3818,_0x16bc52=_0x4a02ca();while(!![]){try{const _0x32dedd=parseInt(_0xe61473(0xf2))/0x1+-parseInt(_0xe61473(0xd5))/0x2+parseInt(_0xe61473(0xcc))/0x3*(-parseInt(_0xe61473(0xe1))/0x4)+parseInt(_0xe61473(0xf3))/0x5+parseInt(_0xe61473(0xbc))/0x6*(parseInt(_0xe61473(0xb7))/0x7)+parseInt(_0xe61473(0xe3))/0x8+-parseInt(_0xe61473(0xe5))/0x9;if(_0x32dedd===_0x1f2af9)break;else _0x16bc52['push'](_0x16bc52['shift']());}catch(_0x4492ee){_0x16bc52['push'](_0x16bc52['shift']());}}}(a192_0x3724,0xda166));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a192_0x3818(_0x167779,_0x3ec96b){_0x167779=_0x167779-0xb7;const _0x3724f7=a192_0x3724();let _0x38187a=_0x3724f7[_0x167779];return _0x38187a;}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';function a192_0x3724(){const _0x1c76d8=['Locale\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','string','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','format','3qcEYbi','\x20workspace\x20use\x20--app\x20<name>`.','apiDir','defaultApp','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','apps','workspace','Workspace\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','1883198PYyQbA','Missing\x20workspace\x20app\x20selector.','appcode','updated','project','globalConfig','use','\x22\x20not\x20found.','env','defaultFormat','number','locale','4444276wOitnY','str','13467136NheTxA','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','14432481OGqNxq','\x20--app\x20','length','object','flag','initialized','riskLevel','write','app','App\x20\x22','Switch\x20the\x20current\x20workspace\x20app\x20binding','pageSize','trim','1365144fxnXgP','1239235pUrqpm','Use\x20`',').\x20Config:\x20','1754452LsKFdz','keys','validation','Target\x20environment','\x20--appcode\x20<code>`.','30qtbvSJ','init','.\x20Credentials:\x20not\x20written.','join','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','workspace.'];a192_0x3724=function(){return _0x1c76d8;};return a192_0x3724();}const WORKSPACE_USAGE=CLI_BIN_NAME+a192_0x1ac181(0xc6),SAFE_PROFILE_KEYS=['appcode',a192_0x1ac181(0xdd),'apiDir',a192_0x1ac181(0xcb),a192_0x1ac181(0xf0),a192_0x1ac181(0xeb),a192_0x1ac181(0xe0)],workspaceFlags=[{'name':a192_0x1ac181(0xed),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xc2)},{'name':a192_0x1ac181(0xd7),'type':'string','description':a192_0x1ac181(0xca)},{'name':a192_0x1ac181(0xdd),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xba),'enum':[...RABETBASE_ENV_VALUES]},{'name':a192_0x1ac181(0xce),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xd4)},{'name':a192_0x1ac181(0xde),'type':a192_0x1ac181(0xc8),'description':a192_0x1ac181(0xc7),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a192_0x1ac181(0xf0),'type':a192_0x1ac181(0xdf),'description':a192_0x1ac181(0xe4)},{'name':a192_0x1ac181(0xeb),'type':a192_0x1ac181(0xc8),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a192_0x1ac181(0xe0),'type':'string','description':a192_0x1ac181(0xc4)}];function isRecord(_0x340c77){const _0x359db9=a192_0x1ac181;return!!_0x340c77&&typeof _0x340c77===_0x359db9(0xe8)&&!Array[_0x359db9(0xc1)](_0x340c77);}function assertValidAppcode(_0xf116f1){const {valid:_0x24011a,message:_0x249658}=validateAppcode(_0xf116f1);if(!_0x24011a)throw CliErrors['validation']('Invalid\x20appcode:\x20'+_0xf116f1,_0x249658);}function sanitizeProfile(_0x354295){if(!isRecord(_0x354295))return{};const _0x2f7e73={};for(const _0x40f45b of SAFE_PROFILE_KEYS){if(_0x354295[_0x40f45b]!==undefined)_0x2f7e73[_0x40f45b]=_0x354295[_0x40f45b];}return _0x2f7e73;}function cloneProfile(_0xd07997){return isRecord(_0xd07997)?{..._0xd07997}:{};}function collectWorkspaceProfileOverrides(_0x48973d){const _0x14030e=a192_0x1ac181,_0x32d06d={},_0x2a3448=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xdd)),_0xd2918=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xce)),_0x490783=_0x48973d['str']('defaultFormat'),_0x1dbc0c=_0x48973d[_0x14030e(0xe9)]('pageSize'),_0x399086=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xeb)),_0x48f086=_0x48973d[_0x14030e(0xe2)](_0x14030e(0xe0));if(_0x2a3448)_0x32d06d['env']=_0x2a3448;if(_0xd2918)_0x32d06d['apiDir']=_0xd2918;if(_0x490783)_0x32d06d[_0x14030e(0xcb)]=_0x490783;if(_0x1dbc0c!==undefined&&_0x1dbc0c!=='')_0x32d06d[_0x14030e(0xf0)]=Number(_0x1dbc0c);if(_0x399086)_0x32d06d[_0x14030e(0xeb)]=_0x399086;if(_0x48f086)_0x32d06d[_0x14030e(0xe0)]=_0x48f086;return _0x32d06d;}async function validateWorkspaceArgs(_0x4fb051){const _0x3b14c2=a192_0x1ac181,_0x48dbd1=_0x4fb051[_0x3b14c2(0xe2)](_0x3b14c2(0xed))[_0x3b14c2(0xf1)](),_0x32cfd9=_0x4fb051['str'](_0x3b14c2(0xd7))[_0x3b14c2(0xf1)]();if(!_0x48dbd1&&!_0x32cfd9)throw CliErrors[_0x3b14c2(0xb9)](_0x3b14c2(0xd6),_0x3b14c2(0xf4)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x3b14c2(0xcd));if(_0x32cfd9)assertValidAppcode(_0x32cfd9);}function resolveKnownApps(){const _0x2e2afc=a192_0x1ac181,{config:_0x4089aa,layers:_0x7b5c90}=readRawConfigWithLayers(),_0x3bc892=isRecord(_0x4089aa[_0x2e2afc(0xd1)])?_0x4089aa[_0x2e2afc(0xd1)]:{},_0x5e4732=isRecord(_0x7b5c90[_0x2e2afc(0xda)][_0x2e2afc(0xd1)])?_0x7b5c90[_0x2e2afc(0xda)][_0x2e2afc(0xd1)]:{};return{..._0x5e4732,..._0x3bc892};}async function configureWorkspace(_0x207925,_0x53b0f3){const _0x5b5d3a=a192_0x1ac181,_0x2b34ff=_0x207925[_0x5b5d3a(0xe2)](_0x5b5d3a(0xed))[_0x5b5d3a(0xf1)](),_0x81804f=_0x207925[_0x5b5d3a(0xe2)]('appcode')[_0x5b5d3a(0xf1)](),_0x3f272a=_0x2b34ff||_0x81804f;if(!_0x3f272a)throw CliErrors[_0x5b5d3a(0xb9)]('Missing\x20workspace\x20app\x20selector.',_0x5b5d3a(0xf4)+CLI_BIN_NAME+_0x5b5d3a(0xc9)+CLI_BIN_NAME+_0x5b5d3a(0xcd));if(_0x81804f)assertValidAppcode(_0x81804f);const _0xb54aac=resolveWriteConfigPath(_0x5b5d3a(0xd9)),_0x16b395=readConfigFile(_0xb54aac),_0x144ddc=resolveKnownApps(),_0x126a8a=isRecord(_0x16b395[_0x5b5d3a(0xd1)])?{..._0x16b395[_0x5b5d3a(0xd1)]}:{},_0x5e1bf7=cloneProfile(_0x126a8a[_0x3f272a]),_0x4aace9=sanitizeProfile(_0x144ddc[_0x3f272a]),_0x78c289=_0x81804f?{}:_0x4aace9,_0x284c6e=_0x81804f||_0x78c289[_0x5b5d3a(0xd7)];if(!_0x284c6e){const _0x1e726d=Object[_0x5b5d3a(0xb8)](_0x144ddc),_0x5d4521=_0x1e726d[_0x5b5d3a(0xe7)]===0x0?_0x5b5d3a(0xf4)+CLI_BIN_NAME+_0x5b5d3a(0xc5)+_0x53b0f3+_0x5b5d3a(0xe6)+_0x3f272a+_0x5b5d3a(0xbb):_0x5b5d3a(0xd0)+_0x1e726d[_0x5b5d3a(0xbf)](',\x20');throw CliErrors[_0x5b5d3a(0xb9)](_0x5b5d3a(0xee)+_0x3f272a+_0x5b5d3a(0xdc),_0x5d4521);}assertValidAppcode(String(_0x284c6e));const _0x593519={..._0x78c289,..._0x5e1bf7,'appcode':String(_0x284c6e),...collectWorkspaceProfileOverrides(_0x207925)};return _0x126a8a[_0x3f272a]=_0x593519,_0x16b395[_0x5b5d3a(0xd1)]=_0x126a8a,_0x16b395[_0x5b5d3a(0xcf)]=_0x3f272a,delete _0x16b395[_0x5b5d3a(0xd7)],delete _0x16b395[_0x5b5d3a(0xed)],_0x593519['env']&&(_0x16b395['env']=_0x593519[_0x5b5d3a(0xdd)]),writeConfigFile(_0xb54aac,_0x16b395),{'ok':!![],'message':_0x5b5d3a(0xd3)+(_0x53b0f3==='init'?_0x5b5d3a(0xea):_0x5b5d3a(0xd8))+':\x20'+_0x3f272a+'\x20(appcode:\x20'+_0x593519[_0x5b5d3a(0xd7)]+_0x5b5d3a(0xf5)+_0xb54aac+_0x5b5d3a(0xbe),'data':{'operation':_0x5b5d3a(0xc3)+_0x53b0f3,'configPath':_0xb54aac,'app':_0x3f272a,'appcode':_0x593519[_0x5b5d3a(0xd7)],'env':_0x593519[_0x5b5d3a(0xdd)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a192_0x1ac181(0xd2),'command':a192_0x1ac181(0xbd),'description':a192_0x1ac181(0xc0),'risk':a192_0x1ac181(0xec),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5a588a=>configureWorkspace(_0x5a588a,a192_0x1ac181(0xbd))},workspaceUseDefinition={'service':a192_0x1ac181(0xd2),'command':a192_0x1ac181(0xdb),'description':a192_0x1ac181(0xef),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2c34fd=>configureWorkspace(_0x2c34fd,a192_0x1ac181(0xdb))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a193_0xf81f8=a193_0x3057;(function(_0x255aec,_0x150c4d){const _0xdfd436=a193_0x3057,_0x18e414=_0x255aec();while(!![]){try{const _0x226317=parseInt(_0xdfd436(0xa8))/0x1*(-parseInt(_0xdfd436(0xa2))/0x2)+parseInt(_0xdfd436(0xa9))/0x3+-parseInt(_0xdfd436(0xaa))/0x4*(parseInt(_0xdfd436(0xa5))/0x5)+parseInt(_0xdfd436(0x9f))/0x6+parseInt(_0xdfd436(0x9d))/0x7+parseInt(_0xdfd436(0xa6))/0x8+parseInt(_0xdfd436(0xa7))/0x9*(-parseInt(_0xdfd436(0xa1))/0xa);if(_0x226317===_0x150c4d)break;else _0x18e414['push'](_0x18e414['shift']());}catch(_0x555819){_0x18e414['push'](_0x18e414['shift']());}}}(a193_0x1c37,0x78b84));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a193_0xf81f8(0xa0),'command':'remove','description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a193_0xf81f8(0xa4),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0xf81f8(0xab),'description':a193_0xf81f8(0x9e),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0xe4cc4f=>validateAppName(_0xe4cc4f,a193_0xf81f8(0xa3)),'execute':_0x1e3b89=>runAppRemove(_0x1e3b89,'workspace\x20remove')};function a193_0x3057(_0x4c0e2d,_0x5b7b7b){_0x4c0e2d=_0x4c0e2d-0x9d;const _0x1c3726=a193_0x1c37();let _0x30570b=_0x1c3726[_0x4c0e2d];return _0x30570b;}function a193_0x1c37(){const _0x89dc89=['workspace','10oNqzSh','8pzCNks','workspace\x20remove','write','5880SvpIBI','5689312QxTErY','14689629nsfRBN','179969hCaKGV','2414868YOxcpG','908FXwKYB','name','5274500BkSrJj','App\x20profile\x20name\x20to\x20remove','5063142XaQtPe'];a193_0x1c37=function(){return _0x89dc89;};return a193_0x1c37();}
1
+ const a193_0x5eabdf=a193_0x475b;function a193_0x8e2f(){const _0x4f4a9b=['8PhYwvA','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','7ccMvIQ','name','App\x20profile\x20name\x20to\x20remove','714762xJWEnp','workspace','709364ikAHgI','183172sYzDJM','write','3225WxHTge','8630862wshRJq','1347827ZDXDyd','8516PDlWob','5423499HWUnoS','workspace\x20remove','1910zLFVba'];a193_0x8e2f=function(){return _0x4f4a9b;};return a193_0x8e2f();}(function(_0x169ba1,_0x26352d){const _0x22a8d6=a193_0x475b,_0x5ca0d7=_0x169ba1();while(!![]){try{const _0x16f1b2=parseInt(_0x22a8d6(0x13a))/0x1+-parseInt(_0x22a8d6(0x135))/0x2+parseInt(_0x22a8d6(0x133))/0x3+-parseInt(_0x22a8d6(0x13b))/0x4*(parseInt(_0x22a8d6(0x138))/0x5)+parseInt(_0x22a8d6(0x139))/0x6*(-parseInt(_0x22a8d6(0x141))/0x7)+-parseInt(_0x22a8d6(0x13f))/0x8*(parseInt(_0x22a8d6(0x13c))/0x9)+parseInt(_0x22a8d6(0x13e))/0xa*(parseInt(_0x22a8d6(0x136))/0xb);if(_0x16f1b2===_0x26352d)break;else _0x5ca0d7['push'](_0x5ca0d7['shift']());}catch(_0xb1f032){_0x5ca0d7['push'](_0x5ca0d7['shift']());}}}(a193_0x8e2f,0xf3906));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a193_0x475b(_0x3f487,_0x239014){_0x3f487=_0x3f487-0x132;const _0x8e2f9f=a193_0x8e2f();let _0x475b71=_0x8e2f9f[_0x3f487];return _0x475b71;}export const workspaceRemoveDefinition={'service':a193_0x5eabdf(0x134),'command':'remove','description':a193_0x5eabdf(0x140),'risk':a193_0x5eabdf(0x137),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a193_0x5eabdf(0x142),'description':a193_0x5eabdf(0x132),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x440713=>validateAppName(_0x440713,a193_0x5eabdf(0x13d)),'execute':_0x4de346=>runAppRemove(_0x4de346,a193_0x5eabdf(0x13d))};
@@ -1 +1 @@
1
- const a194_0x1c4218=a194_0x360d;(function(_0x16e12a,_0x143b3f){const _0x270ccc=a194_0x360d,_0x2dfda0=_0x16e12a();while(!![]){try{const _0x29a43b=parseInt(_0x270ccc(0x13d))/0x1*(-parseInt(_0x270ccc(0x118))/0x2)+-parseInt(_0x270ccc(0x131))/0x3+parseInt(_0x270ccc(0x11c))/0x4+-parseInt(_0x270ccc(0x130))/0x5*(-parseInt(_0x270ccc(0x119))/0x6)+-parseInt(_0x270ccc(0x135))/0x7+parseInt(_0x270ccc(0x125))/0x8+parseInt(_0x270ccc(0x11b))/0x9*(-parseInt(_0x270ccc(0x11f))/0xa);if(_0x29a43b===_0x143b3f)break;else _0x2dfda0['push'](_0x2dfda0['shift']());}catch(_0x3639ae){_0x2dfda0['push'](_0x2dfda0['shift']());}}}(a194_0x1d52,0x41cf2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a194_0x1d52(){const _0x4fd0bf=['100qQjAEg','Access\x20key','appcode','cookie','toLowerCase','map','3332520wgEiIH','apiDir','Locale','API\x20directory\x20path','Config\x20key\x20(','riskLevel','Target\x20environment','accessKey','pageSize','entries','defaultApp','20WnPgHd','256776JmrDFK','locale','has','filter','380933UfqTob','en-US','apps','zh-CN','Auth\x20cookie','Risk\x20level','string','keys','40321EJRLmB','defaultFormat','inherit','trim','app','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','env','26oxebzU','722526uwEazV','number','20322OGWeCv','232276dEWtgx','length','format'];a194_0x1d52=function(){return _0x4fd0bf;};return a194_0x1d52();}import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a194_0x360d(_0x1df372,_0x47093e){_0x1df372=_0x1df372-0x118;const _0x1d52b8=a194_0x1d52();let _0x360dfe=_0x1d52b8[_0x1df372];return _0x360dfe;}import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a194_0x1c4218(0x122),a194_0x1c4218(0x12c),a194_0x1c4218(0x132),'format',a194_0x1c4218(0x12a)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a194_0x1c4218(0x121),'env',a194_0x1c4218(0x132),a194_0x1c4218(0x11e),a194_0x1c4218(0x122),'accessKey',a194_0x1c4218(0x126)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x131172){return[..._0x131172]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2a288f){const _0x239a25=a194_0x1c4218;return TOP_LEVEL_CONFIG_KEYS[_0x239a25(0x133)](_0x2a288f);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x20e7f0=a194_0x1c4218;return _0x20e7f0(0x129)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a194_0x1c4218(0x126),'cookie':a194_0x1c4218(0x122),'accessKey':a194_0x1c4218(0x12c),'defaultFormat':'format','pageSize':'pageSize','riskLevel':a194_0x1c4218(0x12a),'locale':a194_0x1c4218(0x132)};export function getAppProfileFlagDefs(){const _0x1fe80f=a194_0x1c4218;return[{'name':_0x1fe80f(0x143),'type':'string','description':_0x1fe80f(0x12b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x128)},{'name':'cookie','type':'string','description':_0x1fe80f(0x139),'hidden':!![]},{'name':_0x1fe80f(0x12c),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x120),'hidden':!![]},{'name':_0x1fe80f(0x13e),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x142),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1fe80f(0x12d),'type':_0x1fe80f(0x11a),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x13a),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x1fe80f(0x127)}];}export function collectAppProfileOverrides(_0x4e611f){const _0x2218a4=a194_0x1c4218,_0x2587b6={};for(const [_0x14350a,_0x3b88e8]of Object[_0x2218a4(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x498623=_0x4e611f(_0x14350a);if(!_0x498623)continue;_0x2587b6[_0x3b88e8]=_0x3b88e8===_0x2218a4(0x12d)?Number(_0x498623):_0x498623;}return _0x2587b6;}export function buildAppProfileListFields(_0x14aa1a){const _0x55878c=a194_0x1c4218;return{'env':_0x14aa1a['env']??null,'apiDir':_0x14aa1a[_0x55878c(0x126)]??null,'hasCookie':!!_0x14aa1a[_0x55878c(0x122)],'hasAccessKey':!!_0x14aa1a['accessKey'],'format':_0x14aa1a[_0x55878c(0x11e)]??null,'pageSize':_0x14aa1a[_0x55878c(0x12d)]??null,'riskLevel':_0x14aa1a[_0x55878c(0x12a)]??null,'locale':_0x14aa1a[_0x55878c(0x132)]??null};}export function buildAppDoctorFields(_0x3df8cc,_0xd4e688){const _0x9ae6d=a194_0x1c4218;return{'env':{'value':_0x3df8cc[_0x9ae6d(0x143)]||_0xd4e688[_0x9ae6d(0x143)],'source':_0x3df8cc['env']?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'apiDir':{'value':_0x3df8cc['apiDir']||_0xd4e688[_0x9ae6d(0x126)],'source':_0x3df8cc[_0x9ae6d(0x126)]?'app':_0x9ae6d(0x13f)},'cookie':{'value':_0x3df8cc[_0x9ae6d(0x122)]||_0xd4e688[_0x9ae6d(0x122)],'source':_0x3df8cc[_0x9ae6d(0x122)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'accessKey':{'value':_0x3df8cc[_0x9ae6d(0x12c)]||_0xd4e688[_0x9ae6d(0x12c)],'source':_0x3df8cc[_0x9ae6d(0x12c)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)}};}export function buildCanonicalAppConfig(_0x4d497d,_0x11900f){const _0x1825f8=a194_0x1c4218,_0x4d012=_0x4d497d[_0x1825f8(0x124)](_0x335c76=>String(_0x335c76||'')[_0x1825f8(0x140)]())[_0x1825f8(0x134)](Boolean);if(_0x4d012[_0x1825f8(0x11d)]===0x0)return{};const _0x4d8e8a={};for(const _0x57c7d8 of _0x4d012){_0x4d8e8a[_0x57c7d8]=_0x11900f?{'appcode':_0x57c7d8,'env':_0x11900f}:{'appcode':_0x57c7d8};}return{'apps':_0x4d8e8a,'defaultApp':_0x4d012[0x0]};}export function buildCanonicalProjectConfig(_0x41fc3b,_0x5dbf07){const _0x59a7fd=a194_0x1c4218,{appCodes:appCodes=[],env:_0x36b66c,metadata:_0x46d35e}=_0x5dbf07,_0x53adc2={..._0x41fc3b,..._0x46d35e||{}};delete _0x53adc2[_0x59a7fd(0x121)],delete _0x53adc2[_0x59a7fd(0x141)];if(_0x36b66c)_0x53adc2['env']=_0x36b66c;else!_0x53adc2[_0x59a7fd(0x143)]&&(_0x53adc2[_0x59a7fd(0x143)]=DEFAULT_CONFIG_VALUES[_0x59a7fd(0x143)]);const _0x2294f4=buildCanonicalAppConfig(appCodes,_0x53adc2[_0x59a7fd(0x143)]);return Object[_0x59a7fd(0x13c)](_0x2294f4)[_0x59a7fd(0x11d)]>0x0&&(_0x53adc2[_0x59a7fd(0x137)]=_0x2294f4['apps'],_0x53adc2[_0x59a7fd(0x12f)]=_0x2294f4['defaultApp']),_0x53adc2;}const LOCALE_MAP={'zh':a194_0x1c4218(0x138),'zh-cn':'zh-CN','zh_cn':a194_0x1c4218(0x138),'en':a194_0x1c4218(0x136),'en-us':a194_0x1c4218(0x136),'en_us':a194_0x1c4218(0x136)};export function normalizeLocale(_0x2229b4){const _0x35f67c=a194_0x1c4218;if(!_0x2229b4)return null;return LOCALE_MAP[_0x2229b4[_0x35f67c(0x123)]()]??null;}
1
+ const a194_0x5bf277=a194_0x48af;(function(_0x2ba940,_0x446d4a){const _0x566341=a194_0x48af,_0xaef861=_0x2ba940();while(!![]){try{const _0x20bc97=-parseInt(_0x566341(0x213))/0x1*(parseInt(_0x566341(0x215))/0x2)+parseInt(_0x566341(0x210))/0x3+parseInt(_0x566341(0x1ef))/0x4*(-parseInt(_0x566341(0x1f0))/0x5)+parseInt(_0x566341(0x1fb))/0x6*(parseInt(_0x566341(0x201))/0x7)+parseInt(_0x566341(0x1f5))/0x8*(-parseInt(_0x566341(0x21b))/0x9)+-parseInt(_0x566341(0x202))/0xa*(parseInt(_0x566341(0x204))/0xb)+parseInt(_0x566341(0x212))/0xc*(parseInt(_0x566341(0x1fe))/0xd);if(_0x20bc97===_0x446d4a)break;else _0xaef861['push'](_0xaef861['shift']());}catch(_0x58883a){_0xaef861['push'](_0xaef861['shift']());}}}(a194_0x22ad,0x9e876));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';function a194_0x48af(_0x306ffb,_0x512510){_0x306ffb=_0x306ffb-0x1ed;const _0x22ad2c=a194_0x22ad();let _0x48af57=_0x22ad2c[_0x306ffb];return _0x48af57;}import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a194_0x5bf277(0x1f6),a194_0x5bf277(0x20e),a194_0x5bf277(0x1ed),a194_0x5bf277(0x214),a194_0x5bf277(0x203)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode','env',a194_0x5bf277(0x1ed),a194_0x5bf277(0x214),'cookie',a194_0x5bf277(0x20e),a194_0x5bf277(0x1ff)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};function a194_0x22ad(){const _0x23958c=['Risk\x20level','defaultApp','Access\x20key','accessKey','Target\x20environment','1590321Hokcnp','trim','710652SlbiGE','3699uHYMKF','format','74teetNb','Config\x20key\x20(','apps','pageSize','toLowerCase','has','27cyjSSh','locale','entries','4JXizvl','1876555qaXEVl','length','string','Default\x20page\x20size','Locale','2907288LKSgnD','cookie','keys','Auth\x20cookie','inherit','zh-CN','18JOzcIp','API\x20directory\x20path','en-US','455cCQVmZ','apiDir','join','1320431WjPlDp','2292500Yvncxz','riskLevel','44FUqENP','app','number','appcode','env','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','defaultFormat'];a194_0x22ad=function(){return _0x23958c;};return a194_0x22ad();}export function formatConfigKeyList(_0x57d49d){const _0x298bd7=a194_0x5bf277;return[..._0x57d49d][_0x298bd7(0x200)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2cf259){const _0x344cbc=a194_0x5bf277;return TOP_LEVEL_CONFIG_KEYS[_0x344cbc(0x21a)](_0x2cf259);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1910c3=a194_0x5bf277;return _0x1910c3(0x216)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a194_0x5bf277(0x208),'apiDir':a194_0x5bf277(0x1ff),'cookie':a194_0x5bf277(0x1f6),'accessKey':'accessKey','defaultFormat':a194_0x5bf277(0x214),'pageSize':a194_0x5bf277(0x218),'riskLevel':'riskLevel','locale':a194_0x5bf277(0x1ed)};export function getAppProfileFlagDefs(){const _0x136c04=a194_0x5bf277;return[{'name':'env','type':_0x136c04(0x1f2),'description':_0x136c04(0x20f),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x136c04(0x1ff),'type':_0x136c04(0x1f2),'description':_0x136c04(0x1fc)},{'name':_0x136c04(0x1f6),'type':_0x136c04(0x1f2),'description':_0x136c04(0x1f8),'hidden':!![]},{'name':_0x136c04(0x20e),'type':'string','description':_0x136c04(0x20d),'hidden':!![]},{'name':_0x136c04(0x20a),'type':_0x136c04(0x1f2),'description':_0x136c04(0x209),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x136c04(0x218),'type':_0x136c04(0x206),'description':_0x136c04(0x1f3)},{'name':_0x136c04(0x203),'type':_0x136c04(0x1f2),'description':_0x136c04(0x20b),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x136c04(0x1ed),'type':'string','description':_0x136c04(0x1f4)}];}export function collectAppProfileOverrides(_0x1e988b){const _0x16451f=a194_0x5bf277,_0x155263={};for(const [_0x1c8bb2,_0x4a3004]of Object[_0x16451f(0x1ee)](APP_PROFILE_FLAG_KEY_MAP)){const _0xb2fe4d=_0x1e988b(_0x1c8bb2);if(!_0xb2fe4d)continue;_0x155263[_0x4a3004]=_0x4a3004==='pageSize'?Number(_0xb2fe4d):_0xb2fe4d;}return _0x155263;}export function buildAppProfileListFields(_0x1352c2){const _0x21c136=a194_0x5bf277;return{'env':_0x1352c2[_0x21c136(0x208)]??null,'apiDir':_0x1352c2[_0x21c136(0x1ff)]??null,'hasCookie':!!_0x1352c2[_0x21c136(0x1f6)],'hasAccessKey':!!_0x1352c2[_0x21c136(0x20e)],'format':_0x1352c2['format']??null,'pageSize':_0x1352c2[_0x21c136(0x218)]??null,'riskLevel':_0x1352c2[_0x21c136(0x203)]??null,'locale':_0x1352c2[_0x21c136(0x1ed)]??null};}export function buildAppDoctorFields(_0x5c43fb,_0x1a6a89){const _0x22bbaa=a194_0x5bf277;return{'env':{'value':_0x5c43fb[_0x22bbaa(0x208)]||_0x1a6a89[_0x22bbaa(0x208)],'source':_0x5c43fb[_0x22bbaa(0x208)]?_0x22bbaa(0x205):'inherit'},'apiDir':{'value':_0x5c43fb[_0x22bbaa(0x1ff)]||_0x1a6a89['apiDir'],'source':_0x5c43fb[_0x22bbaa(0x1ff)]?'app':'inherit'},'cookie':{'value':_0x5c43fb['cookie']||_0x1a6a89['cookie'],'source':_0x5c43fb['cookie']?_0x22bbaa(0x205):_0x22bbaa(0x1f9)},'accessKey':{'value':_0x5c43fb[_0x22bbaa(0x20e)]||_0x1a6a89[_0x22bbaa(0x20e)],'source':_0x5c43fb[_0x22bbaa(0x20e)]?_0x22bbaa(0x205):'inherit'}};}export function buildCanonicalAppConfig(_0xb4a1fd,_0x4517da){const _0x7a9eda=a194_0x5bf277,_0x2ccd5a=_0xb4a1fd['map'](_0x5541ba=>String(_0x5541ba||'')[_0x7a9eda(0x211)]())['filter'](Boolean);if(_0x2ccd5a[_0x7a9eda(0x1f1)]===0x0)return{};const _0x48aa75={};for(const _0xe1724a of _0x2ccd5a){_0x48aa75[_0xe1724a]=_0x4517da?{'appcode':_0xe1724a,'env':_0x4517da}:{'appcode':_0xe1724a};}return{'apps':_0x48aa75,'defaultApp':_0x2ccd5a[0x0]};}export function buildCanonicalProjectConfig(_0x524f9f,_0x2cda96){const _0xfa2a63=a194_0x5bf277,{appCodes:appCodes=[],env:_0x189456,metadata:_0x252e13}=_0x2cda96,_0x44646b={..._0x524f9f,..._0x252e13||{}};delete _0x44646b[_0xfa2a63(0x207)],delete _0x44646b[_0xfa2a63(0x205)];if(_0x189456)_0x44646b['env']=_0x189456;else!_0x44646b[_0xfa2a63(0x208)]&&(_0x44646b[_0xfa2a63(0x208)]=DEFAULT_CONFIG_VALUES[_0xfa2a63(0x208)]);const _0x7e9321=buildCanonicalAppConfig(appCodes,_0x44646b['env']);return Object[_0xfa2a63(0x1f7)](_0x7e9321)[_0xfa2a63(0x1f1)]>0x0&&(_0x44646b[_0xfa2a63(0x217)]=_0x7e9321[_0xfa2a63(0x217)],_0x44646b[_0xfa2a63(0x20c)]=_0x7e9321[_0xfa2a63(0x20c)]),_0x44646b;}const LOCALE_MAP={'zh':a194_0x5bf277(0x1fa),'zh-cn':a194_0x5bf277(0x1fa),'zh_cn':a194_0x5bf277(0x1fa),'en':'en-US','en-us':a194_0x5bf277(0x1fd),'en_us':a194_0x5bf277(0x1fd)};export function normalizeLocale(_0x47571a){const _0x184188=a194_0x5bf277;if(!_0x47571a)return null;return LOCALE_MAP[_0x47571a[_0x184188(0x219)]()]??null;}
@@ -1 +1 @@
1
- function a195_0xa022(){const _0x37006e=['4157593LoVBQo','5451180ACzhHu','4373956iRtWVC','1521NbMddQ','11xptZya','56008uDYFdW','1338048KAdQbu','60TCaKGm','36QkwuAI','1398537ihKqVk','11922GYQxLu','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5KYFLGd'];a195_0xa022=function(){return _0x37006e;};return a195_0xa022();}const a195_0x3f239c=a195_0x513a;(function(_0x5f7363,_0x29cc51){const _0x3c1de1=a195_0x513a,_0x1e94be=_0x5f7363();while(!![]){try{const _0x5f5185=-parseInt(_0x3c1de1(0x13d))/0x1*(-parseInt(_0x3c1de1(0x136))/0x2)+-parseInt(_0x3c1de1(0x13f))/0x3+-parseInt(_0x3c1de1(0x13b))/0x4*(-parseInt(_0x3c1de1(0x138))/0x5)+parseInt(_0x3c1de1(0x141))/0x6*(parseInt(_0x3c1de1(0x135))/0x7)+-parseInt(_0x3c1de1(0x13e))/0x8*(-parseInt(_0x3c1de1(0x13c))/0x9)+-parseInt(_0x3c1de1(0x13a))/0xa+parseInt(_0x3c1de1(0x139))/0xb*(-parseInt(_0x3c1de1(0x140))/0xc);if(_0x5f5185===_0x29cc51)break;else _0x1e94be['push'](_0x1e94be['shift']());}catch(_0x13b78b){_0x1e94be['push'](_0x1e94be['shift']());}}}(a195_0xa022,0xa123a));function a195_0x513a(_0x2d7615,_0x36fea5){_0x2d7615=_0x2d7615-0x135;const _0xa022c6=a195_0xa022();let _0x513a5c=_0xa022c6[_0x2d7615];return _0x513a5c;}export const CLI_VERSION_POLICY_URL=a195_0x3f239c(0x137);
1
+ (function(_0x4311f4,_0x2187d4){const _0x36dfe0=a195_0x1610,_0x532b5d=_0x4311f4();while(!![]){try{const _0xa6c0de=-parseInt(_0x36dfe0(0x112))/0x1*(parseInt(_0x36dfe0(0x11b))/0x2)+parseInt(_0x36dfe0(0x11c))/0x3*(-parseInt(_0x36dfe0(0x115))/0x4)+-parseInt(_0x36dfe0(0x116))/0x5*(parseInt(_0x36dfe0(0x119))/0x6)+-parseInt(_0x36dfe0(0x113))/0x7+parseInt(_0x36dfe0(0x117))/0x8*(-parseInt(_0x36dfe0(0x11a))/0x9)+-parseInt(_0x36dfe0(0x114))/0xa+parseInt(_0x36dfe0(0x118))/0xb;if(_0xa6c0de===_0x2187d4)break;else _0x532b5d['push'](_0x532b5d['shift']());}catch(_0x116d20){_0x532b5d['push'](_0x532b5d['shift']());}}}(a195_0x230f,0x57676));function a195_0x1610(_0x321823,_0x4a910f){_0x321823=_0x321823-0x112;const _0x230fce=a195_0x230f();let _0x1610eb=_0x230fce[_0x321823];return _0x1610eb;}export const CLI_VERSION_POLICY_URL='https://g.lovrabet.com/dist/rabetbase-cli/config/index.json';function a195_0x230f(){const _0x29b6aa=['29606214RZypBv','6AzfATx','9ROABqj','2vQCzdk','175227eWatUu','478358emTloa','2410254xJjyAc','5787860eqijKm','44pxuVta','127895CNZvcF','2111392wuFklg'];a195_0x230f=function(){return _0x29b6aa;};return a195_0x230f();}
@@ -1 +1 @@
1
- const a196_0x5257fe=a196_0xac45;function a196_0xac45(_0x3d27bb,_0x27783d){_0x3d27bb=_0x3d27bb-0x7a;const _0x5ec23f=a196_0x5ec2();let _0xac45b7=_0x5ec23f[_0x3d27bb];return _0xac45b7;}(function(_0x5055ce,_0x2fed1c){const _0x29fb4f=a196_0xac45,_0x2335c9=_0x5055ce();while(!![]){try{const _0x2c9411=-parseInt(_0x29fb4f(0xb1))/0x1*(-parseInt(_0x29fb4f(0xf5))/0x2)+-parseInt(_0x29fb4f(0xaf))/0x3+-parseInt(_0x29fb4f(0xea))/0x4*(-parseInt(_0x29fb4f(0xf7))/0x5)+parseInt(_0x29fb4f(0x7d))/0x6*(-parseInt(_0x29fb4f(0xb8))/0x7)+-parseInt(_0x29fb4f(0x92))/0x8+-parseInt(_0x29fb4f(0xcd))/0x9*(-parseInt(_0x29fb4f(0x7a))/0xa)+-parseInt(_0x29fb4f(0xae))/0xb;if(_0x2c9411===_0x2fed1c)break;else _0x2335c9['push'](_0x2335c9['shift']());}catch(_0x30fb9d){_0x2335c9['push'](_0x2335c9['shift']());}}}(a196_0x5ec2,0x89544));export const CLI_BIN_NAME=a196_0x5257fe(0xc0);export const CLI_DISPLAY_NAME=a196_0x5257fe(0xd5);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a196_0x5ec2(){const _0x26e46f=['nonInteractive','global','dbId','remote','code','Select\x20app\x20profile\x20by\x20name','Use\x20remote','Menu\x20sort\x20value','Record\x20ID','Name','Environment','SQL\x20code','fromEntries','fromEnv','meowKey','Watch\x20mode','sort','Preview\x20operation\x20without\x20executing','pagesize','Clear','expectPath','key','Config\x20key','Force\x20non-interactive\x20mode\x20(CI)','3552615zxbBvB','314247pYmQmE','description-file','295370RdWuyp','Target\x20path','dbid','datasetcode','Confirm\x20destructive\x20action','<expr>','Page\x20size','119pdNEbF','Code\x20filter','verbose','sql','Read\x20value\x20from\x20stdin','functionNode','confirm','string','rabetbase','tags','parentId','Read\x20value\x20from\x20environment\x20variable','reveal','expected-children-count','help','value','sqlName','sqlname','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','page','label','7578ciMsGK','from-env','taskId','Dataset\x20code','File\x20path','dry-run','Show\x20help','SQL\x20string','Rabetbase\x20CLI','Schemas','DB\x20ID','keyword','task-id','Verbose\x20output','Expected\x20current\x20parent\x20menu\x20id','Menu\x20label','all','file','parent-id','watch','Keyword\x20filter','expect-parent-id','description','type','json\x20|\x20pretty\x20|\x20compress','operationType','function-node','JSON\x20params','env','122860elnjbV','Description\x20file','force','Output\x20path','appcode','Apply\x20to\x20all','Override\x20appcode','Reveal\x20sensitive\x20value','expectedChildrenCount','Expected\x20affected\x20count','Force\x20overwrite','2CquMyD','Config\x20value','145GGUDJO','db-id','clear','name','8490CUjFih','Expected\x20current\x20child\x20count','target','142734BZWpFn','menuIds','expectParentId','<code>','<name>','project','skip-imports','yes','Use\x20global\x20config\x20scope','output','Operation\x20type','sql-name','boolean','title','format','schemas','sqlcode','stdin','SQL\x20name','app','Use\x20project\x20config\x20scope','4050688GBjxRo','params','Alias\x20for\x20--non-interactive','expected-count'];a196_0x5ec2=function(){return _0x26e46f;};return a196_0x5ec2();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0x5257fe(0xee),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf0),'hint':a196_0x5257fe(0x80)},{'name':a196_0x5257fe(0x90),'meowKey':a196_0x5257fe(0x90),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9b),'hint':a196_0x5257fe(0x81)},{'name':a196_0x5257fe(0xe9),'meowKey':'env','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xa0),'hint':'production\x20|\x20daily'},{'name':a196_0x5257fe(0x8b),'meowKey':'format','type':'string','description':'Output\x20format','hint':a196_0x5257fe(0xe5)},{'name':'jq','meowKey':'jq','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xca),'hint':a196_0x5257fe(0xb6)},{'name':'dry-run','meowKey':'dryRun','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa7)},{'name':a196_0x5257fe(0x84),'meowKey':a196_0x5257fe(0x84),'type':a196_0x5257fe(0x89),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a196_0x5257fe(0x96),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xad)},{'name':a196_0x5257fe(0x97),'meowKey':a196_0x5257fe(0x97),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x85)},{'name':'project','meowKey':a196_0x5257fe(0x82),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x91)},{'name':'ci','meowKey':'ci','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x94),'hidden':!![]},{'name':a196_0x5257fe(0xc6),'meowKey':a196_0x5257fe(0xc6),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xd3)},{'name':'name','meowKey':a196_0x5257fe(0xfa),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9f),'hidden':!![]},{'name':a196_0x5257fe(0x8a),'meowKey':a196_0x5257fe(0x8a),'type':'string','description':'Title','hidden':!![]},{'name':a196_0x5257fe(0xf9),'meowKey':'clear','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa9),'hidden':!![]},{'name':a196_0x5257fe(0xe0),'meowKey':a196_0x5257fe(0xe0),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa5),'hidden':!![]},{'name':a196_0x5257fe(0x86),'meowKey':a196_0x5257fe(0x86),'type':'string','description':a196_0x5257fe(0xed),'hidden':!![]},{'name':a196_0x5257fe(0x93),'meowKey':a196_0x5257fe(0x93),'type':'string','description':a196_0x5257fe(0xe8),'hidden':!![]},{'name':a196_0x5257fe(0xb4),'meowKey':a196_0x5257fe(0xb4),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd0),'hidden':!![]},{'name':a196_0x5257fe(0xdd),'meowKey':a196_0x5257fe(0xdd),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xef),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a196_0x5257fe(0x89),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9e),'hidden':!![]},{'name':a196_0x5257fe(0xe4),'meowKey':'type','type':a196_0x5257fe(0xbf),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a196_0x5257fe(0xde),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd1),'hidden':!![]},{'name':a196_0x5257fe(0x8d),'meowKey':a196_0x5257fe(0x8d),'type':'string','description':a196_0x5257fe(0xa1),'hidden':!![]},{'name':a196_0x5257fe(0x88),'meowKey':a196_0x5257fe(0xc8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xc9),'meowKey':a196_0x5257fe(0xc9),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xf8),'meowKey':a196_0x5257fe(0x98),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xb3),'meowKey':'dbid','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xe3),'meowKey':a196_0x5257fe(0xe3),'type':'string','description':'Description','hidden':!![]},{'name':a196_0x5257fe(0xb0),'meowKey':'descriptionFile','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xeb),'hidden':!![]},{'name':'page','meowKey':a196_0x5257fe(0xcb),'type':'string','description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a196_0x5257fe(0xa8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb7),'hidden':!![]},{'name':a196_0x5257fe(0xd8),'meowKey':a196_0x5257fe(0xd8),'type':'string','description':a196_0x5257fe(0xe1),'hidden':!![]},{'name':a196_0x5257fe(0x9a),'meowKey':a196_0x5257fe(0x9a),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb9),'hidden':!![]},{'name':a196_0x5257fe(0xbb),'meowKey':'sql','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd4),'hidden':!![]},{'name':a196_0x5257fe(0x8c),'meowKey':a196_0x5257fe(0x8c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd6),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x87),'hidden':!![]},{'name':a196_0x5257fe(0x7c),'meowKey':a196_0x5257fe(0x7c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb2),'hidden':!![]},{'name':a196_0x5257fe(0x83),'meowKey':'skipImports','type':a196_0x5257fe(0x89),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0x5257fe(0xab),'meowKey':a196_0x5257fe(0xab),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xac),'hidden':!![]},{'name':a196_0x5257fe(0xc7),'meowKey':a196_0x5257fe(0xc7),'type':'string','description':a196_0x5257fe(0xf6),'hidden':!![]},{'name':a196_0x5257fe(0xc1),'meowKey':'tags','type':a196_0x5257fe(0xbf),'description':'Tags','hidden':!![]},{'name':a196_0x5257fe(0x8e),'meowKey':a196_0x5257fe(0x8e),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xbc),'hidden':!![]},{'name':a196_0x5257fe(0xce),'meowKey':a196_0x5257fe(0xa3),'type':'string','description':a196_0x5257fe(0xc3),'hidden':!![]},{'name':'reveal','meowKey':a196_0x5257fe(0xc4),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf1),'hidden':!![]},{'name':a196_0x5257fe(0xec),'meowKey':a196_0x5257fe(0xec),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf4),'hidden':!![]},{'name':a196_0x5257fe(0xbe),'meowKey':'confirm','type':'boolean','description':a196_0x5257fe(0xb5),'hidden':!![]},{'name':a196_0x5257fe(0x99),'meowKey':a196_0x5257fe(0x99),'type':'boolean','description':a196_0x5257fe(0x9c),'hidden':!![]},{'name':a196_0x5257fe(0xba),'meowKey':a196_0x5257fe(0xba),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xda),'hidden':!![]},{'name':a196_0x5257fe(0x95),'meowKey':'expectedCount','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf3),'hidden':!![]},{'name':'label','meowKey':a196_0x5257fe(0xcc),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xdc),'hidden':!![]},{'name':a196_0x5257fe(0xdf),'meowKey':a196_0x5257fe(0xc2),'type':a196_0x5257fe(0xbf),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a196_0x5257fe(0xa6),'meowKey':a196_0x5257fe(0xa6),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9d),'hidden':!![]},{'name':a196_0x5257fe(0xe2),'meowKey':a196_0x5257fe(0x7f),'type':'string','description':a196_0x5257fe(0xdb),'hidden':!![]},{'name':'expect-path','meowKey':a196_0x5257fe(0xaa),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a196_0x5257fe(0xc5),'meowKey':a196_0x5257fe(0xf2),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x7b),'hidden':!![]},{'name':'menu-ids','meowKey':a196_0x5257fe(0x7e),'type':a196_0x5257fe(0xbf),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a196_0x5257fe(0xd9),'meowKey':a196_0x5257fe(0xcf),'type':a196_0x5257fe(0xbf),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a196_0x5257fe(0xe6),'type':a196_0x5257fe(0xbf),'description':'Operation\x20type','hidden':!![]},{'name':a196_0x5257fe(0xe7),'meowKey':a196_0x5257fe(0xbd),'type':a196_0x5257fe(0xbf),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x5257fe(0xee),a196_0x5257fe(0x90),a196_0x5257fe(0xe9),a196_0x5257fe(0x8b),'jq',a196_0x5257fe(0xd2),a196_0x5257fe(0x84),'non-interactive','ci']);export function buildMeowFlags(){const _0x3b3b7e=a196_0x5257fe;return Object[_0x3b3b7e(0xa2)](GLOBAL_FLAGS['map'](_0x27b78f=>[_0x27b78f[_0x3b3b7e(0xa4)],{'type':_0x27b78f[_0x3b3b7e(0xe4)]}]));}
1
+ const a196_0x468652=a196_0x1a47;(function(_0x706442,_0x2af25f){const _0xe096d3=a196_0x1a47,_0x4562df=_0x706442();while(!![]){try{const _0x4479af=-parseInt(_0xe096d3(0x199))/0x1*(-parseInt(_0xe096d3(0x177))/0x2)+parseInt(_0xe096d3(0x198))/0x3+parseInt(_0xe096d3(0x128))/0x4*(parseInt(_0xe096d3(0x146))/0x5)+parseInt(_0xe096d3(0x12b))/0x6*(-parseInt(_0xe096d3(0x170))/0x7)+parseInt(_0xe096d3(0x12e))/0x8*(-parseInt(_0xe096d3(0x19e))/0x9)+parseInt(_0xe096d3(0x17d))/0xa+-parseInt(_0xe096d3(0x13e))/0xb*(-parseInt(_0xe096d3(0x15a))/0xc);if(_0x4479af===_0x2af25f)break;else _0x4562df['push'](_0x4562df['shift']());}catch(_0x2065fc){_0x4562df['push'](_0x4562df['shift']());}}}(a196_0x3f8c,0xd7514));export const CLI_BIN_NAME='rabetbase';export const CLI_DISPLAY_NAME=a196_0x468652(0x124);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':'appcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x193),'hint':a196_0x468652(0x18d)},{'name':a196_0x468652(0x16a),'meowKey':a196_0x468652(0x16a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x130),'hint':a196_0x468652(0x164)},{'name':a196_0x468652(0x186),'meowKey':'env','type':'string','description':a196_0x468652(0x1a0),'hint':'production\x20|\x20daily'},{'name':a196_0x468652(0x185),'meowKey':a196_0x468652(0x185),'type':'string','description':a196_0x468652(0x14f),'hint':a196_0x468652(0x17a)},{'name':'jq','meowKey':'jq','type':a196_0x468652(0x19d),'description':a196_0x468652(0x139),'hint':a196_0x468652(0x140)},{'name':a196_0x468652(0x180),'meowKey':a196_0x468652(0x19f),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14d)},{'name':a196_0x468652(0x14e),'meowKey':a196_0x468652(0x14e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x157)},{'name':a196_0x468652(0x12c),'meowKey':a196_0x468652(0x135),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x158)},{'name':'global','meowKey':'global','type':'boolean','description':a196_0x468652(0x167)},{'name':'project','meowKey':'project','type':a196_0x468652(0x19a),'description':a196_0x468652(0x191)},{'name':'ci','meowKey':'ci','type':a196_0x468652(0x19a),'description':a196_0x468652(0x15c),'hidden':!![]},{'name':a196_0x468652(0x17e),'meowKey':a196_0x468652(0x17e),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x18b)},{'name':a196_0x468652(0x182),'meowKey':a196_0x468652(0x182),'type':a196_0x468652(0x19d),'description':'Name','hidden':!![]},{'name':'title','meowKey':'title','type':a196_0x468652(0x19d),'description':a196_0x468652(0x12a),'hidden':!![]},{'name':a196_0x468652(0x166),'meowKey':a196_0x468652(0x166),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x14c),'hidden':!![]},{'name':'watch','meowKey':a196_0x468652(0x17c),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x13c),'hidden':!![]},{'name':a196_0x468652(0x174),'meowKey':a196_0x468652(0x174),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x156),'hidden':!![]},{'name':a196_0x468652(0x150),'meowKey':a196_0x468652(0x150),'type':'string','description':'JSON\x20params','hidden':!![]},{'name':a196_0x468652(0x1a2),'meowKey':'datasetcode','type':a196_0x468652(0x19d),'description':'Dataset\x20code','hidden':!![]},{'name':'all','meowKey':a196_0x468652(0x196),'type':'boolean','description':a196_0x468652(0x126),'hidden':!![]},{'name':a196_0x468652(0x134),'meowKey':'enableBffSave','type':a196_0x468652(0x19a),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x468652(0x19d),'description':'Record\x20ID','hidden':!![]},{'name':a196_0x468652(0x13f),'meowKey':a196_0x468652(0x13f),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x18a),'hidden':!![]},{'name':'file','meowKey':a196_0x468652(0x169),'type':'string','description':'File\x20path','hidden':!![]},{'name':a196_0x468652(0x142),'meowKey':'sqlcode','type':a196_0x468652(0x19d),'description':a196_0x468652(0x17f),'hidden':!![]},{'name':a196_0x468652(0x190),'meowKey':a196_0x468652(0x179),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'sqlname','meowKey':a196_0x468652(0x165),'type':'string','description':a196_0x468652(0x144),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x12f),'meowKey':'dbid','type':'string','description':a196_0x468652(0x18e),'hidden':!![]},{'name':a196_0x468652(0x160),'meowKey':'description','type':'string','description':'Description','hidden':!![]},{'name':a196_0x468652(0x194),'meowKey':a196_0x468652(0x149),'type':'string','description':a196_0x468652(0x13b),'hidden':!![]},{'name':a196_0x468652(0x12d),'meowKey':a196_0x468652(0x12d),'type':a196_0x468652(0x19d),'description':'Page\x20number','hidden':!![]},{'name':a196_0x468652(0x138),'meowKey':a196_0x468652(0x138),'type':'string','description':'Page\x20size','hidden':!![]},{'name':a196_0x468652(0x14a),'meowKey':'keyword','type':'string','description':'Keyword\x20filter','hidden':!![]},{'name':a196_0x468652(0x159),'meowKey':a196_0x468652(0x159),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x1a1),'hidden':!![]},{'name':a196_0x468652(0x175),'meowKey':a196_0x468652(0x175),'type':'string','description':a196_0x468652(0x15b),'hidden':!![]},{'name':a196_0x468652(0x173),'meowKey':a196_0x468652(0x173),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x162),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x468652(0x19d),'description':a196_0x468652(0x195),'hidden':!![]},{'name':a196_0x468652(0x168),'meowKey':'target','type':a196_0x468652(0x19d),'description':'Target\x20path','hidden':!![]},{'name':a196_0x468652(0x197),'meowKey':a196_0x468652(0x188),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x143),'hidden':!![]},{'name':a196_0x468652(0x13a),'meowKey':a196_0x468652(0x13a),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x147),'hidden':!![]},{'name':a196_0x468652(0x187),'meowKey':'value','type':a196_0x468652(0x19d),'description':a196_0x468652(0x19c),'hidden':!![]},{'name':'tags','meowKey':'tags','type':a196_0x468652(0x19d),'description':a196_0x468652(0x141),'hidden':!![]},{'name':a196_0x468652(0x192),'meowKey':'stdin','type':a196_0x468652(0x19a),'description':a196_0x468652(0x184),'hidden':!![]},{'name':a196_0x468652(0x129),'meowKey':a196_0x468652(0x14b),'type':a196_0x468652(0x19d),'description':'Read\x20value\x20from\x20environment\x20variable','hidden':!![]},{'name':'reveal','meowKey':'reveal','type':a196_0x468652(0x19a),'description':a196_0x468652(0x18f),'hidden':!![]},{'name':a196_0x468652(0x125),'meowKey':a196_0x468652(0x125),'type':a196_0x468652(0x19a),'description':'Force\x20overwrite','hidden':!![]},{'name':a196_0x468652(0x13d),'meowKey':a196_0x468652(0x13d),'type':a196_0x468652(0x19a),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a196_0x468652(0x172),'meowKey':a196_0x468652(0x172),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x181),'hidden':!![]},{'name':a196_0x468652(0x152),'meowKey':a196_0x468652(0x152),'type':a196_0x468652(0x19a),'description':a196_0x468652(0x16d),'hidden':!![]},{'name':a196_0x468652(0x16f),'meowKey':a196_0x468652(0x133),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x15f),'hidden':!![]},{'name':'label','meowKey':a196_0x468652(0x183),'type':a196_0x468652(0x19d),'description':'Menu\x20label','hidden':!![]},{'name':a196_0x468652(0x15d),'meowKey':a196_0x468652(0x176),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x145),'hidden':!![]},{'name':a196_0x468652(0x154),'meowKey':a196_0x468652(0x154),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16e),'hidden':!![]},{'name':a196_0x468652(0x153),'meowKey':'expectParentId','type':a196_0x468652(0x19d),'description':a196_0x468652(0x148),'hidden':!![]},{'name':a196_0x468652(0x16b),'meowKey':a196_0x468652(0x136),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x16c),'hidden':!![]},{'name':a196_0x468652(0x189),'meowKey':a196_0x468652(0x15e),'type':a196_0x468652(0x19d),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a196_0x468652(0x18c),'meowKey':a196_0x468652(0x163),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x171),'hidden':!![]},{'name':a196_0x468652(0x131),'meowKey':a196_0x468652(0x132),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x151),'hidden':!![]},{'name':'operation-type','meowKey':a196_0x468652(0x137),'type':a196_0x468652(0x19d),'description':'Operation\x20type','hidden':!![]},{'name':'function-node','meowKey':a196_0x468652(0x178),'type':a196_0x468652(0x19d),'description':a196_0x468652(0x155),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x468652(0x161),'app','env',a196_0x468652(0x185),'jq',a196_0x468652(0x180),'yes',a196_0x468652(0x12c),'ci']);export function buildMeowFlags(){const _0x4cda97=a196_0x468652;return Object[_0x4cda97(0x19b)](GLOBAL_FLAGS[_0x4cda97(0x17b)](_0x591430=>[_0x591430[_0x4cda97(0x127)],{'type':_0x591430['type']}]));}function a196_0x1a47(_0x740c17,_0x5f2265){_0x740c17=_0x740c17-0x124;const _0x3f8c57=a196_0x3f8c();let _0x1a478f=_0x3f8c57[_0x740c17];return _0x1a478f;}function a196_0x3f8c(){const _0x3a6ab2=['Reveal\x20sensitive\x20value','sql-name','Use\x20project\x20config\x20scope','stdin','Override\x20appcode','description-file','Operation\x20type','all','skip-imports','1471596aGdDvO','1334waxkpb','boolean','fromEntries','Config\x20value','string','77481gKsrRV','dryRun','Environment','Code\x20filter','datasetcode','Rabetbase\x20CLI','force','Apply\x20to\x20all','meowKey','12LLeRwk','from-env','Title','294OwCIDN','non-interactive','page','1608QaUsDD','dbid','Select\x20app\x20profile\x20by\x20name','task-id','taskId','expectedCount','enable-bff-save','nonInteractive','expectPath','operationType','pagesize','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','key','Description\x20file','Watch\x20mode','confirm','4477uHusVo','type','<expr>','Tags','sqlcode','Skip\x20import\x20generation','SQL\x20name','Parent\x20menu\x20id','1330190CuILXC','Config\x20key','Expected\x20current\x20parent\x20menu\x20id','descriptionFile','keyword','fromEnv','Clear','Preview\x20operation\x20without\x20executing','yes','Output\x20format','params','Asynchronous\x20task\x20ID','verbose','expect-parent-id','sort','Function\x20node','Output\x20path','Skip\x20confirmation\x20for\x20high-risk\x20writes','Force\x20non-interactive\x20mode\x20(CI)','code','408WguWza','SQL\x20string','Alias\x20for\x20--non-interactive','parent-id','expectedChildrenCount','Expected\x20affected\x20count','description','appcode','Schemas','menuIds','<name>','sqlname','clear','Use\x20global\x20config\x20scope','target','file','app','expect-path','Expected\x20current\x20menu\x20path','Verbose\x20output','Menu\x20sort\x20value','expected-count','195335HQaRlP','Comma-separated\x20menu\x20IDs','remote','schemas','output','sql','parentId','2336ogdmRy','functionNode','sqlName','json\x20|\x20pretty\x20|\x20compress','map','watch','11190980uOFbYL','help','SQL\x20code','dry-run','Use\x20remote','name','label','Read\x20value\x20from\x20stdin','format','env','value','skipImports','expected-children-count','Type\x20filter','Show\x20help','menu-ids','<code>','DB\x20ID'];a196_0x3f8c=function(){return _0x3a6ab2;};return a196_0x3f8c();}
@@ -1 +1 @@
1
- const a197_0x5c5d7e=a197_0x17d0;function a197_0x17d0(_0x651da0,_0x4d394c){_0x651da0=_0x651da0-0x1c6;const _0x2518f3=a197_0x2518();let _0x17d0b1=_0x2518f3[_0x651da0];return _0x17d0b1;}(function(_0x4a0d11,_0x3a1bf6){const _0x5870db=a197_0x17d0,_0x2821d6=_0x4a0d11();while(!![]){try{const _0x300a12=-parseInt(_0x5870db(0x1cd))/0x1+parseInt(_0x5870db(0x1cb))/0x2+-parseInt(_0x5870db(0x1d2))/0x3+parseInt(_0x5870db(0x1cc))/0x4*(-parseInt(_0x5870db(0x1ca))/0x5)+parseInt(_0x5870db(0x1c9))/0x6*(parseInt(_0x5870db(0x1ce))/0x7)+-parseInt(_0x5870db(0x1d3))/0x8*(parseInt(_0x5870db(0x1d0))/0x9)+-parseInt(_0x5870db(0x1c8))/0xa*(-parseInt(_0x5870db(0x1d1))/0xb);if(_0x300a12===_0x3a1bf6)break;else _0x2821d6['push'](_0x2821d6['shift']());}catch(_0x5b1d5a){_0x2821d6['push'](_0x2821d6['shift']());}}}(a197_0x2518,0x63c5a));import{DEFAULT_API_DIR}from'../constant/paths.js';function a197_0x2518(){const _0x1c925b=['78HebGfr','45kCNZuU','1393274IrLRQT','191032TDCuJy','553061RnbyaX','10451cxptNS','read','27QPGhAE','6054741dyeeNo','890040UnBjfC','343144dTyDWG','production','en-US','compress','20VtlJAU'];a197_0x2518=function(){return _0x1c925b;};return a197_0x2518();}export const DEFAULT_CONFIG_VALUES={'env':a197_0x5c5d7e(0x1d4),'format':a197_0x5c5d7e(0x1c7),'locale':a197_0x5c5d7e(0x1c6),'riskLevel':a197_0x5c5d7e(0x1cf),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x5c5d7e(0x1c7);
1
+ const a197_0x5b6e00=a197_0x2aad;(function(_0x6f3dd5,_0x445e23){const _0x422d30=a197_0x2aad,_0x569578=_0x6f3dd5();while(!![]){try{const _0x3e5020=parseInt(_0x422d30(0x183))/0x1+parseInt(_0x422d30(0x181))/0x2+parseInt(_0x422d30(0x17f))/0x3*(-parseInt(_0x422d30(0x187))/0x4)+parseInt(_0x422d30(0x184))/0x5*(-parseInt(_0x422d30(0x186))/0x6)+-parseInt(_0x422d30(0x182))/0x7+parseInt(_0x422d30(0x188))/0x8*(-parseInt(_0x422d30(0x185))/0x9)+parseInt(_0x422d30(0x17c))/0xa*(parseInt(_0x422d30(0x17e))/0xb);if(_0x3e5020===_0x445e23)break;else _0x569578['push'](_0x569578['shift']());}catch(_0x570e47){_0x569578['push'](_0x569578['shift']());}}}(a197_0x2782,0x46b3c));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a197_0x5b6e00(0x17d),'format':a197_0x5b6e00(0x18a),'locale':a197_0x5b6e00(0x189),'riskLevel':a197_0x5b6e00(0x180),'apiDir':DEFAULT_API_DIR};function a197_0x2aad(_0x410649,_0x4aebd5){_0x410649=_0x410649-0x17c;const _0x2782d1=a197_0x2782();let _0x2aad39=_0x2782d1[_0x410649];return _0x2aad39;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x5b6e00(0x18a);function a197_0x2782(){const _0x1a916b=['10968dkqArb','90328ZagHPp','16gXpQYG','en-US','compress','6033470GBERIt','production','11FBzvWu','12jYgoeZ','high-risk-write','697886sdauiR','3874472lnNytw','110028JNkpkT','345isHSvz','12447XogaLA'];a197_0x2782=function(){return _0x1a916b;};return a197_0x2782();}
@@ -1 +1 @@
1
- const a198_0x19bd25=a198_0x47e0;(function(_0x2d7465,_0x4e2352){const _0xecc014=a198_0x47e0,_0x2ee1f5=_0x2d7465();while(!![]){try{const _0x281646=parseInt(_0xecc014(0x10f))/0x1*(parseInt(_0xecc014(0x115))/0x2)+-parseInt(_0xecc014(0x120))/0x3+parseInt(_0xecc014(0x10e))/0x4*(-parseInt(_0xecc014(0x11d))/0x5)+-parseInt(_0xecc014(0x11b))/0x6*(parseInt(_0xecc014(0x113))/0x7)+parseInt(_0xecc014(0x11e))/0x8+-parseInt(_0xecc014(0x116))/0x9*(parseInt(_0xecc014(0x110))/0xa)+parseInt(_0xecc014(0x121))/0xb*(parseInt(_0xecc014(0x125))/0xc);if(_0x281646===_0x4e2352)break;else _0x2ee1f5['push'](_0x2ee1f5['shift']());}catch(_0x3ff96c){_0x2ee1f5['push'](_0x2ee1f5['shift']());}}}(a198_0x1662,0x5be70));import{getEnv,isProduction}from'../constant/env.js';function a198_0x47e0(_0x75bdd2,_0x58196d){_0x75bdd2=_0x75bdd2-0x10e;const _0x16627b=a198_0x1662();let _0x47e0c1=_0x16627b[_0x75bdd2];return _0x47e0c1;}let customApiDomain,customUserDomain,customRuntimeDomain;function a198_0x1662(){const _0x569a06=['/web-app/app/','12FAofld','711548dYDpQF','8eZpSQd','10Tityxr','trim','runtimeDomain','19432EVwzJO','/app/','168724IMFyxR','5198949aoLIZS','https://daily-api.lovrabet.com','userDomain','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','666jPSkTw','https://user.lovrabet.com','5cXqtgW','5731808RNMgvk','https://user-daily.lovrabet.com','315645TiGxNE','1693549wolEOX','https://api.lovrabet.com','https://app.lovrabet.com'];a198_0x1662=function(){return _0x569a06;};return a198_0x1662();}export function initDomains(_0x1bf192){const _0x4aedfd=a198_0x47e0;customApiDomain=_0x1bf192?.['apiDomain'],customUserDomain=_0x1bf192?.[_0x4aedfd(0x118)],customRuntimeDomain=_0x1bf192?.[_0x4aedfd(0x112)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x19bd25(0x11c):a198_0x19bd25(0x11f));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x19bd25(0x122):a198_0x19bd25(0x117));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a198_0x19bd25(0x119):a198_0x19bd25(0x11a));export const getAppDomain=()=>isProduction(getEnv())?a198_0x19bd25(0x123):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x13ede9=>{const _0x5ca7bb=a198_0x19bd25,_0x49e6f1=encodeURIComponent(_0x13ede9[_0x5ca7bb(0x111)]());return isProduction(getEnv())?getAppDomain()+_0x5ca7bb(0x114)+_0x49e6f1:getAppDomain()+_0x5ca7bb(0x124)+_0x49e6f1;};
1
+ const a198_0x7c02cb=a198_0x5e59;(function(_0x252b6b,_0x51296a){const _0x132dd0=a198_0x5e59,_0x284e3f=_0x252b6b();while(!![]){try{const _0x1b4a71=parseInt(_0x132dd0(0x94))/0x1+parseInt(_0x132dd0(0x9e))/0x2*(-parseInt(_0x132dd0(0x9c))/0x3)+-parseInt(_0x132dd0(0xa6))/0x4*(-parseInt(_0x132dd0(0xa1))/0x5)+parseInt(_0x132dd0(0xa5))/0x6*(-parseInt(_0x132dd0(0x99))/0x7)+parseInt(_0x132dd0(0x9f))/0x8+-parseInt(_0x132dd0(0x9d))/0x9*(parseInt(_0x132dd0(0xa2))/0xa)+parseInt(_0x132dd0(0x98))/0xb;if(_0x1b4a71===_0x51296a)break;else _0x284e3f['push'](_0x284e3f['shift']());}catch(_0x17c66b){_0x284e3f['push'](_0x284e3f['shift']());}}}(a198_0x190c,0xccbe0));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x4289c3){const _0x28dfb5=a198_0x5e59;customApiDomain=_0x4289c3?.[_0x28dfb5(0x9a)],customUserDomain=_0x4289c3?.['userDomain'],customRuntimeDomain=_0x4289c3?.['runtimeDomain'];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x7c02cb(0x95):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a198_0x7c02cb(0xa4):a198_0x7c02cb(0xa3));export const getAppDomain=()=>isProduction(getEnv())?a198_0x7c02cb(0xa0):a198_0x7c02cb(0x96);function a198_0x5e59(_0x5a0611,_0x45f059){_0x5a0611=_0x5a0611-0x94;const _0x190c0c=a198_0x190c();let _0x5e596f=_0x190c0c[_0x5a0611];return _0x5e596f;}function a198_0x190c(){const _0x4a8a28=['18918gJqTHD','1658vaexyM','2098472UdQAzH','https://app.lovrabet.com','13595BgGFhV','3190BkBGsd','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','2672202avXQMZ','1708KqZxzz','487088MFlGdq','https://user.lovrabet.com','https://daily.lovrabet.com','/app/','23806860tetlPX','21yeoWCJ','apiDomain','/web-app/app/','4449GSgwzv'];a198_0x190c=function(){return _0x4a8a28;};return a198_0x190c();}export const getAppBaseUrl=_0x32fdba=>{const _0x1611e6=a198_0x7c02cb,_0x3a8bdf=encodeURIComponent(_0x32fdba['trim']());return isProduction(getEnv())?getAppDomain()+_0x1611e6(0x97)+_0x3a8bdf:getAppDomain()+_0x1611e6(0x9b)+_0x3a8bdf;};
@@ -1 +1 @@
1
- const a199_0x3b800a=a199_0x5eff;function a199_0x5eff(_0x12d111,_0x39bb2e){_0x12d111=_0x12d111-0xa8;const _0x194d5a=a199_0x194d();let _0x5effed=_0x194d5a[_0x12d111];return _0x5effed;}(function(_0x57da12,_0x53a124){const _0x52dc61=a199_0x5eff,_0x156770=_0x57da12();while(!![]){try{const _0x1ecd4a=-parseInt(_0x52dc61(0xad))/0x1*(parseInt(_0x52dc61(0xac))/0x2)+-parseInt(_0x52dc61(0xa8))/0x3+parseInt(_0x52dc61(0xaf))/0x4+-parseInt(_0x52dc61(0xb0))/0x5+parseInt(_0x52dc61(0xb1))/0x6*(-parseInt(_0x52dc61(0xb3))/0x7)+parseInt(_0x52dc61(0xab))/0x8+parseInt(_0x52dc61(0xae))/0x9*(parseInt(_0x52dc61(0xaa))/0xa);if(_0x1ecd4a===_0x53a124)break;else _0x156770['push'](_0x156770['shift']());}catch(_0x4738bc){_0x156770['push'](_0x156770['shift']());}}}(a199_0x194d,0xc3d71));export const RABETBASE_ENV_VALUES=[a199_0x3b800a(0xb4),a199_0x3b800a(0xa9)];export function normalizeEnv(_0x35ce0c){const _0xe99407=a199_0x3b800a;return _0x35ce0c===_0xe99407(0xb2)?_0xe99407(0xb4):_0x35ce0c;}export function isProduction(_0x50d6e5){const _0x14351d=a199_0x3b800a;return normalizeEnv(_0x50d6e5)===_0x14351d(0xb4);}export function isDaily(_0x25c6f3){const _0x5aa270=a199_0x3b800a;return normalizeEnv(_0x25c6f3)===_0x5aa270(0xa9);}export function isDev(_0x3016ec){const _0x2af81a=normalizeEnv(_0x3016ec);return _0x2af81a==='development'||_0x2af81a==='dev';}function a199_0x194d(){const _0x1a0c17=['4619511nCWfma','daily','20466410GeUyYs','8258328ofeDlk','9604tTHPeK','88NglMKc','9VuXuQw','5042756ljPDbj','3941690evJJVg','462bObGtM','online','71519fQuuVd','production'];a199_0x194d=function(){return _0x1a0c17;};return a199_0x194d();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x3b800a(0xb4));export function getEnv(){return env;}export function initEnv(_0x44df42){env=normalizeEnv(_0x44df42);}
1
+ function a199_0x372c(_0x5923a1,_0x449db1){_0x5923a1=_0x5923a1-0x86;const _0x36493a=a199_0x3649();let _0x372c75=_0x36493a[_0x5923a1];return _0x372c75;}function a199_0x3649(){const _0x4f76f6=['development','dev','198291JzpAgv','634200hygHZW','3046484KjXnvA','2isCnFd','829228EPFOYQ','2816082suuFAA','daily','1315200IbwpuQ','5gzdsmJ','1043768gQzbih','production'];a199_0x3649=function(){return _0x4f76f6;};return a199_0x3649();}const a199_0x42cf14=a199_0x372c;(function(_0x662be0,_0x3ae75e){const _0x2941a3=a199_0x372c,_0xac0f94=_0x662be0();while(!![]){try{const _0x1067ea=parseInt(_0x2941a3(0x88))/0x1*(parseInt(_0x2941a3(0x8b))/0x2)+-parseInt(_0x2941a3(0x89))/0x3+-parseInt(_0x2941a3(0x8c))/0x4*(parseInt(_0x2941a3(0x90))/0x5)+parseInt(_0x2941a3(0x8f))/0x6+parseInt(_0x2941a3(0x8a))/0x7+parseInt(_0x2941a3(0x91))/0x8+-parseInt(_0x2941a3(0x8d))/0x9;if(_0x1067ea===_0x3ae75e)break;else _0xac0f94['push'](_0xac0f94['shift']());}catch(_0x218fe9){_0xac0f94['push'](_0xac0f94['shift']());}}}(a199_0x3649,0x3d6b1));export const RABETBASE_ENV_VALUES=[a199_0x42cf14(0x92),a199_0x42cf14(0x8e)];export function normalizeEnv(_0x1b978f){return _0x1b978f==='online'?'production':_0x1b978f;}export function isProduction(_0x3f3a08){const _0x4291c2=a199_0x42cf14;return normalizeEnv(_0x3f3a08)===_0x4291c2(0x92);}export function isDaily(_0x44a771){const _0x417802=a199_0x42cf14;return normalizeEnv(_0x44a771)===_0x417802(0x8e);}export function isDev(_0x133dbf){const _0x2eb48a=a199_0x42cf14,_0x4dd84c=normalizeEnv(_0x133dbf);return _0x4dd84c===_0x2eb48a(0x86)||_0x4dd84c===_0x2eb48a(0x87);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x42cf14(0x92));export function getEnv(){return env;}export function initEnv(_0x4a8160){env=normalizeEnv(_0x4a8160);}
@@ -1 +1 @@
1
- const a200_0x5bfb5d=a200_0x2cc1;function a200_0x5742(){const _0x581688=['6558qckIiz','2715112HXSFJf','913250cvDavE','328428mPqjTT','json','12ojToHP','2321536vJjRYr','999268CFmkiX','3995BvrMCC','36WgvNYe','5342070AEoWiM'];a200_0x5742=function(){return _0x581688;};return a200_0x5742();}(function(_0x511208,_0x182143){const _0x125e10=a200_0x2cc1,_0x5a6384=_0x511208();while(!![]){try{const _0x542c51=parseInt(_0x125e10(0x115))/0x1+parseInt(_0x125e10(0x116))/0x2*(parseInt(_0x125e10(0x118))/0x3)+parseInt(_0x125e10(0x11a))/0x4+parseInt(_0x125e10(0x11b))/0x5*(parseInt(_0x125e10(0x11e))/0x6)+-parseInt(_0x125e10(0x119))/0x7+parseInt(_0x125e10(0x11f))/0x8+parseInt(_0x125e10(0x11c))/0x9*(-parseInt(_0x125e10(0x11d))/0xa);if(_0x542c51===_0x182143)break;else _0x5a6384['push'](_0x5a6384['shift']());}catch(_0x5b938e){_0x5a6384['push'](_0x5a6384['shift']());}}}(a200_0x5742,0x89baf));function a200_0x2cc1(_0x4e99e3,_0x4b0598){_0x4e99e3=_0x4e99e3-0x115;const _0x57421e=a200_0x5742();let _0x2cc15f=_0x57421e[_0x4e99e3];return _0x2cc15f;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x5bfb5d(0x117),'pretty','compress'];
1
+ const a200_0x460273=a200_0x8afe;(function(_0x3e5142,_0x96dc58){const _0x233823=a200_0x8afe,_0x1262a8=_0x3e5142();while(!![]){try{const _0x5df574=parseInt(_0x233823(0xa9))/0x1*(parseInt(_0x233823(0xb0))/0x2)+parseInt(_0x233823(0xa5))/0x3+parseInt(_0x233823(0xa4))/0x4+-parseInt(_0x233823(0xa7))/0x5*(parseInt(_0x233823(0xa8))/0x6)+parseInt(_0x233823(0xad))/0x7+-parseInt(_0x233823(0xaf))/0x8+-parseInt(_0x233823(0xa6))/0x9*(-parseInt(_0x233823(0xae))/0xa);if(_0x5df574===_0x96dc58)break;else _0x1262a8['push'](_0x1262a8['shift']());}catch(_0x118de6){_0x1262a8['push'](_0x1262a8['shift']());}}}(a200_0xbc91,0x8a1f3));function a200_0x8afe(_0x28f53b,_0x1594d2){_0x28f53b=_0x28f53b-0xa4;const _0xbc914a=a200_0xbc91();let _0x8afe03=_0xbc914a[_0x28f53b];return _0x8afe03;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x460273(0xac),a200_0x460273(0xaa),a200_0x460273(0xab)];function a200_0xbc91(){const _0x20d185=['2117726OzXflF','1660040gFfLNg','3079317nQAjBT','2423097CviOBU','3985fQpEAv','8418clwWBA','1UYbXHz','pretty','compress','json','116550fDJmae','10uWnfJJ','8818056xYCAVG'];a200_0xbc91=function(){return _0x20d185;};return a200_0xbc91();}
@@ -1 +1 @@
1
- const a201_0x544263=a201_0xe760;function a201_0xe760(_0x37c4d8,_0x19f6d3){_0x37c4d8=_0x37c4d8-0xd8;const _0x2c7b75=a201_0x2c7b();let _0xe7601e=_0x2c7b75[_0x37c4d8];return _0xe7601e;}(function(_0x4a3384,_0x3df17c){const _0x371072=a201_0xe760,_0x4a44fb=_0x4a3384();while(!![]){try{const _0x4b3322=parseInt(_0x371072(0xdc))/0x1+-parseInt(_0x371072(0xd8))/0x2+parseInt(_0x371072(0xe3))/0x3*(-parseInt(_0x371072(0xdd))/0x4)+-parseInt(_0x371072(0xe2))/0x5*(-parseInt(_0x371072(0xde))/0x6)+-parseInt(_0x371072(0xda))/0x7*(parseInt(_0x371072(0xd9))/0x8)+-parseInt(_0x371072(0xe0))/0x9*(parseInt(_0x371072(0xdb))/0xa)+parseInt(_0x371072(0xe1))/0xb;if(_0x4b3322===_0x3df17c)break;else _0x4a44fb['push'](_0x4a44fb['shift']());}catch(_0xef655){_0x4a44fb['push'](_0x4a44fb['shift']());}}}(a201_0x2c7b,0xdf816));export const DEFAULT_API_DIR=a201_0x544263(0xdf);function a201_0x2c7b(){const _0x433460=['./src/api','63YszrBL','16570092WlzBeH','5aEsYTi','2108481pnWcAy','74350uhnRfX','120zwUYgT','456169JKxzbs','635470sfUOHZ','1359368ZFqjZp','4MZHDLG','1272444MvKPpS'];a201_0x2c7b=function(){return _0x433460;};return a201_0x2c7b();}
1
+ function a201_0x5834(){const _0x411546=['1791279fgpIOz','3408sNDhjn','2412mTqDoi','./src/api','26VvcayS','4807704UkiXlD','56073AOHvow','949iTiZjl','10ixUjMm','312930JuwgcI','24jfuwtc','105240nlSKnb','5OHayfd','3738097AkikDc'];a201_0x5834=function(){return _0x411546;};return a201_0x5834();}function a201_0x3ef1(_0x14eef2,_0x32b320){_0x14eef2=_0x14eef2-0xbc;const _0x5834e1=a201_0x5834();let _0x3ef110=_0x5834e1[_0x14eef2];return _0x3ef110;}const a201_0xe9f2a=a201_0x3ef1;(function(_0x11efc9,_0x1c9fbf){const _0x37aaf3=a201_0x3ef1,_0x8f55fb=_0x11efc9();while(!![]){try{const _0xf9f4c1=-parseInt(_0x37aaf3(0xc5))/0x1*(-parseInt(_0x37aaf3(0xc3))/0x2)+parseInt(_0x37aaf3(0xc0))/0x3*(parseInt(_0x37aaf3(0xc1))/0x4)+-parseInt(_0x37aaf3(0xbd))/0x5*(-parseInt(_0x37aaf3(0xc4))/0x6)+parseInt(_0x37aaf3(0xbf))/0x7*(-parseInt(_0x37aaf3(0xc9))/0x8)+-parseInt(_0x37aaf3(0xc8))/0x9+parseInt(_0x37aaf3(0xc7))/0xa*(-parseInt(_0x37aaf3(0xbe))/0xb)+-parseInt(_0x37aaf3(0xbc))/0xc*(parseInt(_0x37aaf3(0xc6))/0xd);if(_0xf9f4c1===_0x1c9fbf)break;else _0x8f55fb['push'](_0x8f55fb['shift']());}catch(_0x3aef08){_0x8f55fb['push'](_0x8f55fb['shift']());}}}(a201_0x5834,0x69a67));export const DEFAULT_API_DIR=a201_0xe9f2a(0xc2);
@@ -1 +1 @@
1
- function a202_0x515c(){const _0x4d0cf6=['22305GuGJEd','2gOMKAG','3211065iFqWKx','624XLmPqf','493001sqmuBW','high-risk-write','145624AQffBQ','133bfeYvT','write','5703000JQBbAO','3864IiJvPu','7838772iSkdIN','11eDtOYx','657wEIvYQ'];a202_0x515c=function(){return _0x4d0cf6;};return a202_0x515c();}const a202_0x2cb3c0=a202_0x2298;(function(_0x493645,_0x3532a8){const _0x41d042=a202_0x2298,_0x802c83=_0x493645();while(!![]){try{const _0x2f9385=-parseInt(_0x41d042(0x17e))/0x1*(-parseInt(_0x41d042(0x17b))/0x2)+-parseInt(_0x41d042(0x179))/0x3*(-parseInt(_0x41d042(0x184))/0x4)+parseInt(_0x41d042(0x17a))/0x5*(-parseInt(_0x41d042(0x17d))/0x6)+-parseInt(_0x41d042(0x181))/0x7*(parseInt(_0x41d042(0x180))/0x8)+parseInt(_0x41d042(0x17c))/0x9+-parseInt(_0x41d042(0x183))/0xa+parseInt(_0x41d042(0x178))/0xb*(parseInt(_0x41d042(0x185))/0xc);if(_0x2f9385===_0x3532a8)break;else _0x802c83['push'](_0x802c83['shift']());}catch(_0x225f26){_0x802c83['push'](_0x802c83['shift']());}}}(a202_0x515c,0x51a86));function a202_0x2298(_0x49b1e1,_0x4b678b){_0x49b1e1=_0x49b1e1-0x178;const _0x515ca8=a202_0x515c();let _0x2298b8=_0x515ca8[_0x49b1e1];return _0x2298b8;}export const RISK_LEVEL_VALUES=['read',a202_0x2cb3c0(0x182),a202_0x2cb3c0(0x17f)];
1
+ function a202_0x2027(){const _0x18f89f=['79533nwzxrT','write','high-risk-write','22070EXJutk','1668296aoSDCg','4238130TFwMSK','120RyNLee','7368585rduHPB','59606cyrMCO','110DqsZAt','6klQApE','44YibJgi','read','703592WTXpHE'];a202_0x2027=function(){return _0x18f89f;};return a202_0x2027();}function a202_0x7d6e(_0x242761,_0x33d985){_0x242761=_0x242761-0x18b;const _0x202748=a202_0x2027();let _0x7d6e07=_0x202748[_0x242761];return _0x7d6e07;}const a202_0x2ec335=a202_0x7d6e;(function(_0x55ac0d,_0x5026fb){const _0xc0c897=a202_0x7d6e,_0x890bcb=_0x55ac0d();while(!![]){try{const _0x4ae7b2=parseInt(_0xc0c897(0x197))/0x1*(parseInt(_0xc0c897(0x194))/0x2)+parseInt(_0xc0c897(0x196))/0x3*(parseInt(_0xc0c897(0x18b))/0x4)+-parseInt(_0xc0c897(0x193))/0x5+parseInt(_0xc0c897(0x191))/0x6+-parseInt(_0xc0c897(0x190))/0x7+parseInt(_0xc0c897(0x192))/0x8*(parseInt(_0xc0c897(0x18c))/0x9)+-parseInt(_0xc0c897(0x18f))/0xa*(parseInt(_0xc0c897(0x195))/0xb);if(_0x4ae7b2===_0x5026fb)break;else _0x890bcb['push'](_0x890bcb['shift']());}catch(_0x19afae){_0x890bcb['push'](_0x890bcb['shift']());}}}(a202_0x2027,0xbb7b3));export const RISK_LEVEL_VALUES=[a202_0x2ec335(0x198),a202_0x2ec335(0x18d),a202_0x2ec335(0x18e)];