@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.1-beta.4

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 (309) 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/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.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-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/index.js +1 -1
  177. package/lib/commands/project/upgrade.js +1 -1
  178. package/lib/commands/registry.js +1 -1
  179. package/lib/commands/role/delete.js +1 -1
  180. package/lib/commands/role/detail.js +1 -1
  181. package/lib/commands/role/index.js +1 -1
  182. package/lib/commands/role/list.js +1 -1
  183. package/lib/commands/role/shared.js +1 -1
  184. package/lib/commands/role/update.js +1 -1
  185. package/lib/commands/role/user-add.js +1 -1
  186. package/lib/commands/role/user-remove.js +1 -1
  187. package/lib/commands/role/user-resolve.js +1 -1
  188. package/lib/commands/run/index.js +1 -1
  189. package/lib/commands/schema.js +1 -1
  190. package/lib/commands/sql/create.js +1 -1
  191. package/lib/commands/sql/delete.js +1 -1
  192. package/lib/commands/sql/detail.js +1 -1
  193. package/lib/commands/sql/exec.js +1 -1
  194. package/lib/commands/sql/index.js +1 -1
  195. package/lib/commands/sql/list.js +1 -1
  196. package/lib/commands/sql/pull.js +1 -1
  197. package/lib/commands/sql/push.js +1 -1
  198. package/lib/commands/sql/shared.js +1 -1
  199. package/lib/commands/sql/status.js +1 -1
  200. package/lib/commands/sql/validate.js +1 -1
  201. package/lib/commands/task/index.js +1 -1
  202. package/lib/commands/task/status.js +1 -1
  203. package/lib/commands/tenant/index.js +1 -1
  204. package/lib/commands/tenant/members-list.js +1 -1
  205. package/lib/commands/tenant/shared.js +1 -1
  206. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  207. package/lib/commands/user-account/index.js +1 -1
  208. package/lib/commands/workspace/add.js +1 -1
  209. package/lib/commands/workspace/index.js +1 -1
  210. package/lib/commands/workspace/remove.js +1 -1
  211. package/lib/config/deployment-sync.js +1 -1
  212. package/lib/config/domain-config.js +1 -1
  213. package/lib/config/project-routing.js +1 -1
  214. package/lib/config/schema.js +1 -1
  215. package/lib/constant/cdn.js +1 -1
  216. package/lib/constant/cli.js +1 -1
  217. package/lib/constant/defaults.js +1 -1
  218. package/lib/constant/domain.js +1 -1
  219. package/lib/constant/env.js +1 -1
  220. package/lib/constant/output.js +1 -1
  221. package/lib/constant/paths.js +1 -1
  222. package/lib/constant/region.js +1 -1
  223. package/lib/constant/risk.js +1 -1
  224. package/lib/constant/routing-profile.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.js +1 -1
  229. package/lib/core/alias-resolver.js +1 -1
  230. package/lib/core/api-client.d.ts +0 -16
  231. package/lib/core/api-client.js +1 -1
  232. package/lib/core/bff/config.js +1 -1
  233. package/lib/core/bff/file-system.js +1 -1
  234. package/lib/core/bff/hash.js +1 -1
  235. package/lib/core/bff/lock.js +1 -1
  236. package/lib/core/bff/utils.js +1 -1
  237. package/lib/core/db-resolver.js +1 -1
  238. package/lib/core/kb-search-client.d.ts +30 -0
  239. package/lib/core/kb-search-client.js +1 -0
  240. package/lib/core/page/file-system.js +1 -1
  241. package/lib/core/page/hash.js +1 -1
  242. package/lib/core/page/lock.js +1 -1
  243. package/lib/core/sql-index-auditor.js +1 -1
  244. package/lib/core/sql-sync/config.js +1 -1
  245. package/lib/core/sql-sync/file-system.js +1 -1
  246. package/lib/core/sql-sync/hash.js +1 -1
  247. package/lib/core/sql-sync/lock.js +1 -1
  248. package/lib/core/sql-sync/utils.js +1 -1
  249. package/lib/core/sql-validator.js +1 -1
  250. package/lib/errors.js +1 -1
  251. package/lib/framework/build-all-flags.js +1 -1
  252. package/lib/framework/error-output.js +1 -1
  253. package/lib/framework/explicit-yes.js +1 -1
  254. package/lib/framework/flags.js +1 -1
  255. package/lib/framework/help.js +1 -1
  256. package/lib/framework/index.js +1 -1
  257. package/lib/framework/output.js +1 -1
  258. package/lib/framework/response.js +1 -1
  259. package/lib/framework/runner-alias.js +1 -1
  260. package/lib/framework/runner.js +1 -1
  261. package/lib/framework/schema-export.js +1 -1
  262. package/lib/framework/types.d.ts +1 -0
  263. package/lib/framework/types.js +1 -1
  264. package/lib/generated/build-info.d.ts +4 -4
  265. package/lib/generated/build-info.js +1 -1
  266. package/lib/help.js +1 -1
  267. package/lib/postinstall.js +1 -1
  268. package/lib/runtime/confirmation.js +1 -1
  269. package/lib/runtime/event.js +1 -1
  270. package/lib/runtime/index.js +1 -1
  271. package/lib/runtime/queue.js +1 -1
  272. package/lib/runtime/resolve.js +1 -1
  273. package/lib/skills/builtin-skill.js +1 -1
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.js +1 -1
  276. package/lib/skills/skill-presence.js +1 -1
  277. package/lib/telemetry/cli-command-trace.js +1 -1
  278. package/lib/telemetry/cli-help-trace.js +1 -1
  279. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  280. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  281. package/lib/telemetry/send-cli-trace-log.js +1 -1
  282. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  283. package/lib/utils/ai_config.js +1 -1
  284. package/lib/utils/apply-jq-filter.js +1 -1
  285. package/lib/utils/cdn-config.js +1 -1
  286. package/lib/utils/check-sdk-version.js +1 -1
  287. package/lib/utils/cli-version-check.js +1 -1
  288. package/lib/utils/cli-version-policy.js +1 -1
  289. package/lib/utils/config.js +1 -1
  290. package/lib/utils/entity-with-id.js +1 -1
  291. package/lib/utils/file-utils.js +1 -1
  292. package/lib/utils/guides-cdn.js +1 -1
  293. package/lib/utils/http-client.js +1 -1
  294. package/lib/utils/is-non-interactive.js +1 -1
  295. package/lib/utils/logger.js +1 -1
  296. package/lib/utils/params.js +1 -1
  297. package/lib/utils/platform.js +1 -1
  298. package/lib/utils/sleep.js +1 -1
  299. package/lib/utils/template-replacer.js +1 -1
  300. package/lib/utils/update-notice.js +1 -1
  301. package/lib/utils/version.js +1 -1
  302. package/lib/utils/with-active-cookie.js +1 -1
  303. package/lib/utils/write-cli-side-channel.js +1 -1
  304. package/package.json +1 -1
  305. package/skills/rabetbase/SKILL.md +2 -2
  306. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  308. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  309. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a199_0x42b9(_0x22e8cf,_0x564bd5){_0x22e8cf=_0x22e8cf-0x1ac;const _0x1b493d=a199_0x1b49();let _0x42b996=_0x1b493d[_0x22e8cf];return _0x42b996;}const a199_0x1ec86c=a199_0x42b9;(function(_0x1b2f95,_0x3ba5c3){const _0x2793ba=a199_0x42b9,_0x326a67=_0x1b2f95();while(!![]){try{const _0x355c82=parseInt(_0x2793ba(0x1d0))/0x1+-parseInt(_0x2793ba(0x1ce))/0x2+parseInt(_0x2793ba(0x1ca))/0x3*(parseInt(_0x2793ba(0x1bb))/0x4)+-parseInt(_0x2793ba(0x1cf))/0x5*(parseInt(_0x2793ba(0x1c1))/0x6)+parseInt(_0x2793ba(0x1b7))/0x7*(parseInt(_0x2793ba(0x1ba))/0x8)+-parseInt(_0x2793ba(0x1cd))/0x9*(parseInt(_0x2793ba(0x1af))/0xa)+parseInt(_0x2793ba(0x1ad))/0xb;if(_0x355c82===_0x3ba5c3)break;else _0x326a67['push'](_0x326a67['shift']());}catch(_0x3a1e6e){_0x326a67['push'](_0x326a67['shift']());}}}(a199_0x1b49,0x45908));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x1a2710){const _0xe2de4d=a199_0x42b9,_0x2812bb=[];let _0x2fab3f=0x1;while(!![]){const _0x18797c=await listSqlQueries(_0x1a2710,{'currentPage':_0x2fab3f,'pageSize':PAGE_SIZE}),_0x22fe06=_0x18797c[_0xe2de4d(0x1ae)]??[];_0x2812bb['push'](..._0x22fe06['map'](_0x5c0aab=>_0x5c0aab[_0xe2de4d(0x1cc)]));if(_0x22fe06[_0xe2de4d(0x1cb)]===0x0)break;const _0x13e836=_0x18797c['paging']?.[_0xe2de4d(0x1c5)];if(_0x13e836!=null?_0x2812bb[_0xe2de4d(0x1cb)]>=_0x13e836:_0x22fe06['length']<PAGE_SIZE)break;_0x2fab3f++;}return _0x2812bb;}export const sqlStatus={'service':a199_0x1ec86c(0x1b8),'command':a199_0x1ec86c(0x1b9),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a199_0x1ec86c(0x1c8),'flags':[{'name':a199_0x1ec86c(0x1b4),'type':a199_0x1ec86c(0x1c7),'description':a199_0x1ec86c(0x1b2)}],async 'execute'(_0x5e5b63){const _0x28aff1=a199_0x1ec86c,_0x4e0b89=loadSqlProjectConfig(_0x5e5b63['appCode']),_0x564c2d=await readSqlLockFile(_0x4e0b89['lockFilePath']),{appLock:_0x384fb9}=ensureSqlLockScope(_0x564c2d??createEmptySqlLock(),_0x4e0b89[_0x28aff1(0x1b3)],_0x4e0b89[_0x28aff1(0x1d1)],_0x28aff1(0x1b9)),_0x40e076=await scanLocalSqlQueries(_0x4e0b89),_0x5d998c=[],_0x4e6243=[],_0x35937a=[],_0x5ebdfb=[],_0x524541=new Set(_0x40e076['map'](_0x116b50=>_0x116b50[_0x28aff1(0x1c6)]));for(const _0x4d79cd of _0x40e076){const _0x5055cb=await computeSqlFileHash(_0x4d79cd[_0x28aff1(0x1b0)]),_0x405349=_0x384fb9[_0x28aff1(0x1b1)][_0x4d79cd[_0x28aff1(0x1c6)]],_0x3db528=!!_0x405349&&_0x405349[_0x28aff1(0x1bd)]!==_0x4d79cd[_0x28aff1(0x1bc)],_0x2b9624=!!_0x405349&&!!_0x4d79cd['sqlName']&&_0x405349[_0x28aff1(0x1b6)]!==_0x4d79cd[_0x28aff1(0x1b6)];if(!_0x405349)_0x5d998c[_0x28aff1(0x1c0)](_0x4d79cd['lockKey']);else _0x405349[_0x28aff1(0x1b5)]!==_0x5055cb||_0x3db528||_0x2b9624?_0x4e6243[_0x28aff1(0x1c0)](_0x4d79cd[_0x28aff1(0x1c6)]):_0x35937a['push'](_0x4d79cd[_0x28aff1(0x1c6)]);}for(const _0x40f94a of Object[_0x28aff1(0x1be)](_0x384fb9[_0x28aff1(0x1b1)])){!_0x524541[_0x28aff1(0x1ac)](_0x40f94a)&&_0x5ebdfb['push'](_0x40f94a);}const _0xf81f9e=[];if(_0x5e5b63[_0x28aff1(0x1c4)](_0x28aff1(0x1b4))){const _0x1238b1=await fetchAllSqlCodes(_0x5e5b63[_0x28aff1(0x1b3)]);for(const _0x5e2cb0 of _0x1238b1){!_0x524541[_0x28aff1(0x1ac)](_0x5e2cb0)&&!_0x384fb9[_0x28aff1(0x1b1)][_0x5e2cb0]&&_0xf81f9e[_0x28aff1(0x1c0)](_0x5e2cb0);}}const _0x2d3a34=_0x5d998c[_0x28aff1(0x1cb)]===0x0&&_0x4e6243[_0x28aff1(0x1cb)]===0x0&&_0x5ebdfb[_0x28aff1(0x1cb)]===0x0&&_0xf81f9e[_0x28aff1(0x1cb)]===0x0;return{'ok':!![],'data':{'added':_0x5d998c,'modified':_0x4e6243,'missing':_0x5ebdfb,'unchanged':_0x35937a,'remoteOnly':_0xf81f9e},'message':_0x2d3a34?_0x28aff1(0x1c9):_0x5d998c[_0x28aff1(0x1cb)]+_0x28aff1(0x1bf)+_0x4e6243[_0x28aff1(0x1cb)]+'\x20modified,\x20'+_0x5ebdfb[_0x28aff1(0x1cb)]+_0x28aff1(0x1c3)+_0x35937a['length']+'\x20unchanged'+(_0xf81f9e[_0x28aff1(0x1cb)]>0x0?',\x20'+_0xf81f9e[_0x28aff1(0x1cb)]+_0x28aff1(0x1c2):'')};}};function a199_0x1b49(){const _0x528cc2=['\x20missing,\x20','bool','totalCount','lockKey','boolean','read','All\x20SQL\x20queries\x20are\x20in\x20sync.','6MIHXls','length','sqlCode','9gXJfLO','525384VODnOk','5060qSJmnV','305543fAogNK','sqlRoot','has','2140974sYSWrc','tableData','2131210zyoqFt','filePath','sqls','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','appCode','remote','hash','sqlName','606613IPRbHE','sql','status','32QkFHeS','18128oGQADV','relativePath','path','keys','\x20added,\x20','push','564wvlBGt','\x20remote-only'];a199_0x1b49=function(){return _0x528cc2;};return a199_0x1b49();}
1
+ const a199_0x1ce234=a199_0x4494;(function(_0x28d858,_0x4c795a){const _0xac3120=a199_0x4494,_0x24b81b=_0x28d858();while(!![]){try{const _0x5b10c5=-parseInt(_0xac3120(0x83))/0x1+parseInt(_0xac3120(0x88))/0x2*(parseInt(_0xac3120(0x93))/0x3)+parseInt(_0xac3120(0x8b))/0x4*(parseInt(_0xac3120(0x9f))/0x5)+-parseInt(_0xac3120(0xa5))/0x6+-parseInt(_0xac3120(0x7e))/0x7*(-parseInt(_0xac3120(0x9e))/0x8)+parseInt(_0xac3120(0x82))/0x9*(-parseInt(_0xac3120(0x8d))/0xa)+parseInt(_0xac3120(0x85))/0xb*(parseInt(_0xac3120(0x80))/0xc);if(_0x5b10c5===_0x4c795a)break;else _0x24b81b['push'](_0x24b81b['shift']());}catch(_0x243caa){_0x24b81b['push'](_0x24b81b['shift']());}}}(a199_0x218c,0xe9303));function a199_0x218c(){const _0x249226=['status','\x20missing,\x20','sqls','\x20modified,\x20','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','paging','\x20remote-only','sqlName','totalCount','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','252304iWzXvL','209555zdbtqp','length','sql','boolean','lockFilePath','appCode','2058606bsbaHq','259hIZMPX','remote','696uwwnPF','lockKey','8532QWOuAE','981163LaBmXx','map','221639cALAlf','hash','sqlRoot','93066kEmwxq','relativePath','sqlCode','48DdkAxi','filePath','7370wMHnrL','\x20added,\x20','\x20unchanged','push','tableData','has','9Qnappg'];a199_0x218c=function(){return _0x249226;};return a199_0x218c();}import{listSqlQueries}from'../../core/api-client.js';function a199_0x4494(_0x48d4b7,_0x4fde61){_0x48d4b7=_0x48d4b7-0x7e;const _0x218c1f=a199_0x218c();let _0x4494fc=_0x218c1f[_0x48d4b7];return _0x4494fc;}import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x4c725b){const _0x1d3da5=a199_0x4494,_0x34732a=[];let _0x5e2c80=0x1;while(!![]){const _0x496572=await listSqlQueries(_0x4c725b,{'currentPage':_0x5e2c80,'pageSize':PAGE_SIZE}),_0x3e7509=_0x496572[_0x1d3da5(0x91)]??[];_0x34732a[_0x1d3da5(0x90)](..._0x3e7509[_0x1d3da5(0x84)](_0x17c234=>_0x17c234[_0x1d3da5(0x8a)]));if(_0x3e7509[_0x1d3da5(0xa0)]===0x0)break;const _0x549e26=_0x496572[_0x1d3da5(0x99)]?.[_0x1d3da5(0x9c)];if(_0x549e26!=null?_0x34732a[_0x1d3da5(0xa0)]>=_0x549e26:_0x3e7509[_0x1d3da5(0xa0)]<PAGE_SIZE)break;_0x5e2c80++;}return _0x34732a;}export const sqlStatus={'service':a199_0x1ce234(0xa1),'command':a199_0x1ce234(0x94),'description':a199_0x1ce234(0x98),'risk':'read','flags':[{'name':'remote','type':a199_0x1ce234(0xa2),'description':a199_0x1ce234(0x9d)}],async 'execute'(_0x23c303){const _0x3bb166=a199_0x1ce234,_0x2af0ad=loadSqlProjectConfig(_0x23c303['appCode']),_0x1c83c9=await readSqlLockFile(_0x2af0ad[_0x3bb166(0xa3)]),{appLock:_0x4e5cd1}=ensureSqlLockScope(_0x1c83c9??createEmptySqlLock(),_0x2af0ad['appCode'],_0x2af0ad[_0x3bb166(0x87)],_0x3bb166(0x94)),_0x63ec4b=await scanLocalSqlQueries(_0x2af0ad),_0x4dd94f=[],_0x5c9da9=[],_0x76dec4=[],_0x58a549=[],_0x1cee69=new Set(_0x63ec4b[_0x3bb166(0x84)](_0x377ea4=>_0x377ea4[_0x3bb166(0x81)]));for(const _0x118d6a of _0x63ec4b){const _0x13bc54=await computeSqlFileHash(_0x118d6a[_0x3bb166(0x8c)]),_0x523117=_0x4e5cd1[_0x3bb166(0x96)][_0x118d6a[_0x3bb166(0x81)]],_0x466dd1=!!_0x523117&&_0x523117['path']!==_0x118d6a[_0x3bb166(0x89)],_0x224601=!!_0x523117&&!!_0x118d6a[_0x3bb166(0x9b)]&&_0x523117['sqlName']!==_0x118d6a[_0x3bb166(0x9b)];if(!_0x523117)_0x4dd94f[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]);else _0x523117[_0x3bb166(0x86)]!==_0x13bc54||_0x466dd1||_0x224601?_0x5c9da9[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]):_0x76dec4[_0x3bb166(0x90)](_0x118d6a[_0x3bb166(0x81)]);}for(const _0x1d53c2 of Object['keys'](_0x4e5cd1['sqls'])){!_0x1cee69[_0x3bb166(0x92)](_0x1d53c2)&&_0x58a549[_0x3bb166(0x90)](_0x1d53c2);}const _0x56112a=[];if(_0x23c303['bool'](_0x3bb166(0x7f))){const _0x357c63=await fetchAllSqlCodes(_0x23c303[_0x3bb166(0xa4)]);for(const _0x3cab5c of _0x357c63){!_0x1cee69[_0x3bb166(0x92)](_0x3cab5c)&&!_0x4e5cd1['sqls'][_0x3cab5c]&&_0x56112a['push'](_0x3cab5c);}}const _0x276624=_0x4dd94f[_0x3bb166(0xa0)]===0x0&&_0x5c9da9[_0x3bb166(0xa0)]===0x0&&_0x58a549['length']===0x0&&_0x56112a[_0x3bb166(0xa0)]===0x0;return{'ok':!![],'data':{'added':_0x4dd94f,'modified':_0x5c9da9,'missing':_0x58a549,'unchanged':_0x76dec4,'remoteOnly':_0x56112a},'message':_0x276624?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x4dd94f[_0x3bb166(0xa0)]+_0x3bb166(0x8e)+_0x5c9da9[_0x3bb166(0xa0)]+_0x3bb166(0x97)+_0x58a549['length']+_0x3bb166(0x95)+_0x76dec4[_0x3bb166(0xa0)]+_0x3bb166(0x8f)+(_0x56112a['length']>0x0?',\x20'+_0x56112a[_0x3bb166(0xa0)]+_0x3bb166(0x9a):'')};}};
@@ -1 +1 @@
1
- function a200_0x3d19(){const _0x5e8544=['type','dbtableConfig','7iCmqvG','tableName','schemas','find','joinAudit','primary','string','dataset','columnNames','sql','24DsiXAA','933510KLaOkU','605HScSVq','indexes','columns','Dataset\x20\x22','toLowerCase','isDangerous','\x22\x20not\x20found\x20or\x20not\x20accessible','tables','str','index_name','132200JTMvEY','get','validation','appCode','file','1326243TJWGJk','1022985zDYkzQ','read','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','Table\x20\x22','isArray','valid','9355956JLYVwv','pkField','validate','boolean','push','size','reason','split','isSelectOnly','message','utf-8','map','from','trim','index_type','--check-indexes\x20requires\x20--schemas.','sqlType','length','filter','125rhXTbX','250872myBmxi','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','name','indexName','8392JmClwB','index_columns'];a200_0x3d19=function(){return _0x5e8544;};return a200_0x3d19();}const a200_0x3c0717=a200_0x51b6;(function(_0x4c08cf,_0x57aec2){const _0x30c5c3=a200_0x51b6,_0x15cd07=_0x4c08cf();while(!![]){try{const _0x24ad33=-parseInt(_0x30c5c3(0x74))/0x1+-parseInt(_0x30c5c3(0x87))/0x2+parseInt(_0x30c5c3(0x97))/0x3+parseInt(_0x30c5c3(0x78))/0x4*(-parseInt(_0x30c5c3(0x73))/0x5)+parseInt(_0x30c5c3(0x9e))/0x6*(parseInt(_0x30c5c3(0x7c))/0x7)+-parseInt(_0x30c5c3(0x86))/0x8*(-parseInt(_0x30c5c3(0x98))/0x9)+-parseInt(_0x30c5c3(0x92))/0xa*(parseInt(_0x30c5c3(0x88))/0xb);if(_0x24ad33===_0x57aec2)break;else _0x15cd07['push'](_0x15cd07['shift']());}catch(_0x10e0da){_0x15cd07['push'](_0x15cd07['shift']());}}}(a200_0x3d19,0xce5a9));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a200_0x51b6(_0x476c9a,_0x292de6){_0x476c9a=_0x476c9a-0x64;const _0x3d197c=a200_0x3d19();let _0x51b692=_0x3d197c[_0x476c9a];return _0x51b692;}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':a200_0x3c0717(0x85),'command':a200_0x3c0717(0xa0),'description':a200_0x3c0717(0x9a),'risk':a200_0x3c0717(0x99),'flags':[{'name':a200_0x3c0717(0x96),'type':a200_0x3c0717(0x82),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a200_0x3c0717(0x85),'type':a200_0x3c0717(0x82),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':'schemas','type':a200_0x3c0717(0x82),'description':a200_0x3c0717(0x75)},{'name':'check-indexes','type':a200_0x3c0717(0xa1),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x4c409c){const _0x349aa8=a200_0x3c0717,_0x5ca356=_0x4c409c[_0x349aa8(0x90)](_0x349aa8(0x96)),_0x581820=_0x4c409c['str'](_0x349aa8(0x85)),_0x1309d6=_0x4c409c[_0x349aa8(0x90)](_0x349aa8(0x7e)),_0x3a6f12=_0x4c409c['bool']('check-indexes');if(!_0x5ca356&&!_0x581820)throw CliErrors['flagMissing'](_0x349aa8(0x96),'Provide\x20--file\x20or\x20--sql');if(_0x3a6f12&&!_0x1309d6)throw CliErrors['validation'](_0x349aa8(0x6f));let _0x3001ed;if(_0x5ca356){const _0xdb281b=resolve(process['cwd'](),_0x5ca356);if(!existsSync(_0xdb281b))throw CliErrors[_0x349aa8(0x94)]('File\x20not\x20found:\x20'+_0xdb281b);_0x3001ed=readFileSync(_0xdb281b,_0x349aa8(0x6a));}else _0x3001ed=_0x581820;const _0x173ecc=validateSql(_0x3001ed),_0x1e84a={'valid':_0x173ecc[_0x349aa8(0x9d)],'sqlType':_0x173ecc['sqlType'][_0x349aa8(0x7a)],'isSelectOnly':_0x173ecc['sqlType'][_0x349aa8(0x68)],'isDangerous':_0x173ecc[_0x349aa8(0x70)][_0x349aa8(0x8d)],'tables':_0x173ecc[_0x349aa8(0x8f)],'parameters':_0x173ecc['parameters'],'message':_0x173ecc['message']};_0x173ecc[_0x349aa8(0x70)][_0x349aa8(0x66)]&&(_0x1e84a[_0x349aa8(0x66)]=_0x173ecc[_0x349aa8(0x70)]['reason']);if(_0x1309d6&&_0x173ecc['valid']){const _0x47ed64=_0x1309d6[_0x349aa8(0x67)](',')[_0x349aa8(0x6b)](_0x339572=>_0x339572[_0x349aa8(0x6d)]())[_0x349aa8(0x72)](Boolean),_0x5dcc68=[],_0x323cd8=[],_0x1653ae=filterDbTableBackedDatasets(await listDatasets(_0x4c409c[_0x349aa8(0x95)])),_0x48d0d0=new Map(_0x1653ae[_0x349aa8(0x6b)](_0x188778=>[_0x188778[_0x349aa8(0x7b)]?.[_0x349aa8(0x7d)]?.['toLowerCase'](),_0x188778]));for(const _0x87794f of _0x173ecc[_0x349aa8(0x8f)]){const _0x25b486=_0x48d0d0[_0x349aa8(0x93)](_0x87794f[_0x349aa8(0x8c)]());!_0x25b486&&_0x5dcc68['push'](_0x349aa8(0x9b)+_0x87794f+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x4e11a1 of _0x47ed64){let _0x38bf37;try{_0x38bf37=await getDatasetDetail(_0x4e11a1);}catch{_0x5dcc68[_0x349aa8(0x64)](_0x349aa8(0x8b)+_0x4e11a1+_0x349aa8(0x8e));continue;}assertDatasetIsDbTableBacked(_0x38bf37,'SQL\x20schema\x20validation');const _0x1f24ab=Array[_0x349aa8(0x9c)](_0x38bf37['fields'])?_0x38bf37['fields']:[],_0x39cdaa=new Set(_0x1f24ab['map'](_0x31e4a9=>_0x31e4a9[_0x349aa8(0x76)]?.[_0x349aa8(0x8c)]())),_0x5825a4=_0x38bf37[_0x349aa8(0x7b)]?.[_0x349aa8(0x7d)]||_0x38bf37['tableName']||_0x4e11a1;_0x1e84a['schema:'+_0x5825a4]={'code':_0x4e11a1,'tableName':_0x5825a4,'fieldCount':_0x39cdaa[_0x349aa8(0x65)],'fields':Array[_0x349aa8(0x6c)](_0x39cdaa)};if(_0x3a6f12){const _0x1a12be=normalizeDatasetIndexes(_0x38bf37);_0x323cd8[_0x349aa8(0x64)]({'tableName':_0x5825a4,..._0x1a12be});}}_0x5dcc68[_0x349aa8(0x71)]>0x0&&(_0x1e84a['schemaWarnings']=_0x5dcc68),_0x3a6f12&&(_0x1e84a[_0x349aa8(0x80)]=auditSqlJoinIndexes(_0x3001ed,_0x323cd8));}return{'ok':_0x173ecc[_0x349aa8(0x9d)],'data':_0x1e84a,'message':_0x173ecc[_0x349aa8(0x69)]};}};function normalizeDatasetIndexes(_0x497b10){const _0x25781d=a200_0x3c0717,_0x4ba835=Array['isArray'](_0x497b10?.[_0x25781d(0x83)]?.[_0x25781d(0x89)])?_0x497b10['dataset']['indexes']:Array['isArray'](_0x497b10?.[_0x25781d(0x89)])?_0x497b10[_0x25781d(0x89)]:[],_0x38f1d9=_0x4ba835['flatMap'](_0x3486c2=>{const _0x4a3946=_0x25781d,_0x12f32d=Array['isArray'](_0x3486c2?.[_0x4a3946(0x79)])?_0x3486c2[_0x4a3946(0x79)]:Array['isArray'](_0x3486c2?.[_0x4a3946(0x84)])?_0x3486c2[_0x4a3946(0x84)]:Array[_0x4a3946(0x9c)](_0x3486c2?.[_0x4a3946(0x8a)])?_0x3486c2[_0x4a3946(0x8a)]:[],_0x42e06c=_0x12f32d[_0x4a3946(0x72)](_0x446f1c=>typeof _0x446f1c===_0x4a3946(0x82))['map'](_0x2d135a=>_0x2d135a[_0x4a3946(0x6d)]())[_0x4a3946(0x72)](Boolean);if(_0x42e06c[_0x4a3946(0x71)]===0x0)return[];const _0x56beae=[_0x3486c2?.[_0x4a3946(0x77)],_0x3486c2?.[_0x4a3946(0x91)],_0x3486c2?.[_0x4a3946(0x76)]][_0x4a3946(0x7f)](_0x5d611b=>typeof _0x5d611b==='string'&&_0x5d611b[_0x4a3946(0x6d)]()),_0x11daed=[_0x3486c2?.[_0x4a3946(0x6e)],_0x3486c2?.[_0x4a3946(0x7a)]][_0x4a3946(0x7f)](_0x350fac=>typeof _0x350fac===_0x4a3946(0x82)&&_0x350fac[_0x4a3946(0x6d)]());return[{..._0x56beae?{'name':_0x56beae['trim']()}:{},..._0x11daed?{'type':_0x11daed['trim']()}:{},'columns':_0x42e06c}];}),_0x551705=[..._0x38f1d9],_0xbb38ac=typeof _0x497b10?.[_0x25781d(0x7b)]?.[_0x25781d(0x9f)]==='string'?_0x497b10['dbtableConfig'][_0x25781d(0x9f)][_0x25781d(0x67)](',')[_0x25781d(0x6b)](_0x5d93ad=>_0x5d93ad[_0x25781d(0x6d)]())[_0x25781d(0x72)](Boolean):[];return _0xbb38ac[_0x25781d(0x71)]>0x0&&_0x551705['unshift']({'type':_0x25781d(0x81),'columns':_0xbb38ac}),{'indexes':_0x551705,'metadataAvailable':_0x38f1d9[_0x25781d(0x71)]>0x0};}
1
+ const a200_0x117e9f=a200_0x3b51;(function(_0x2ec054,_0x5f4d02){const _0x209a2c=a200_0x3b51,_0x5465f5=_0x2ec054();while(!![]){try{const _0x29c703=-parseInt(_0x209a2c(0x228))/0x1+parseInt(_0x209a2c(0x214))/0x2*(parseInt(_0x209a2c(0x22c))/0x3)+parseInt(_0x209a2c(0x21d))/0x4+parseInt(_0x209a2c(0x227))/0x5+-parseInt(_0x209a2c(0x1f5))/0x6*(-parseInt(_0x209a2c(0x1fa))/0x7)+-parseInt(_0x209a2c(0x225))/0x8*(-parseInt(_0x209a2c(0x223))/0x9)+-parseInt(_0x209a2c(0x1fe))/0xa;if(_0x29c703===_0x5f4d02)break;else _0x5465f5['push'](_0x5465f5['shift']());}catch(_0x58794b){_0x5465f5['push'](_0x5465f5['shift']());}}}(a200_0x3025,0xe7790));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a200_0x3025(){const _0xe477a=['3231728xBVAlC','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','string','tables','indexes','Provide\x20--file\x20or\x20--sql','252BgERYZ','length','131776WJrjOE','type','8930480DlAqMd','1666079iCZdhB','validate','columnNames','cwd','3FzvCHx','schemas','Dataset\x20\x22','appCode','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','trim','from','message','flagMissing','sql','get','reason','filter','push','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','flatMap','1686FbGBqy','size','pkField','index_name','dbtableConfig','39186fGGsCB','File\x20not\x20found:\x20','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','unshift','34984680VFGHdt','file','utf-8','toLowerCase','primary','\x22\x20not\x20found\x20in\x20any\x20dataset','split','index_columns','validation','parameters','sqlType','str','bool','isSelectOnly','isDangerous','columns','tableName','indexName','dataset','map','\x22\x20not\x20found\x20or\x20not\x20accessible','schemaWarnings','2968754yoASMv','isArray','valid','name','joinAudit','fields','read','find','check-indexes'];a200_0x3025=function(){return _0xe477a;};return a200_0x3025();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';function a200_0x3b51(_0x525386,_0x485acc){_0x525386=_0x525386-0x1e6;const _0x3025d5=a200_0x3025();let _0x3b512f=_0x3025d5[_0x525386];return _0x3b512f;}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':a200_0x117e9f(0x1ee),'command':a200_0x117e9f(0x229),'description':a200_0x117e9f(0x21e),'risk':a200_0x117e9f(0x21a),'flags':[{'name':a200_0x117e9f(0x1ff),'type':a200_0x117e9f(0x21f),'description':a200_0x117e9f(0x1f3)},{'name':a200_0x117e9f(0x1ee),'type':a200_0x117e9f(0x21f),'description':a200_0x117e9f(0x1fc)},{'name':a200_0x117e9f(0x1e6),'type':'string','description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a200_0x117e9f(0x21c),'type':'boolean','description':a200_0x117e9f(0x1e9)}],async 'execute'(_0x526cdf){const _0x46135b=a200_0x117e9f,_0x5ad3a1=_0x526cdf['str']('file'),_0x5ddba5=_0x526cdf[_0x46135b(0x209)](_0x46135b(0x1ee)),_0x51c5b7=_0x526cdf[_0x46135b(0x209)](_0x46135b(0x1e6)),_0x42459a=_0x526cdf[_0x46135b(0x20a)]('check-indexes');if(!_0x5ad3a1&&!_0x5ddba5)throw CliErrors[_0x46135b(0x1ed)](_0x46135b(0x1ff),_0x46135b(0x222));if(_0x42459a&&!_0x51c5b7)throw CliErrors[_0x46135b(0x206)]('--check-indexes\x20requires\x20--schemas.');let _0x59561f;if(_0x5ad3a1){const _0x4e0778=resolve(process[_0x46135b(0x22b)](),_0x5ad3a1);if(!existsSync(_0x4e0778))throw CliErrors[_0x46135b(0x206)](_0x46135b(0x1fb)+_0x4e0778);_0x59561f=readFileSync(_0x4e0778,_0x46135b(0x200));}else _0x59561f=_0x5ddba5;const _0x1d232a=validateSql(_0x59561f),_0x47ec2a={'valid':_0x1d232a[_0x46135b(0x216)],'sqlType':_0x1d232a[_0x46135b(0x208)][_0x46135b(0x226)],'isSelectOnly':_0x1d232a[_0x46135b(0x208)][_0x46135b(0x20b)],'isDangerous':_0x1d232a['sqlType'][_0x46135b(0x20c)],'tables':_0x1d232a[_0x46135b(0x220)],'parameters':_0x1d232a[_0x46135b(0x207)],'message':_0x1d232a[_0x46135b(0x1ec)]};_0x1d232a['sqlType'][_0x46135b(0x1f0)]&&(_0x47ec2a[_0x46135b(0x1f0)]=_0x1d232a['sqlType'][_0x46135b(0x1f0)]);if(_0x51c5b7&&_0x1d232a[_0x46135b(0x216)]){const _0xee5ccb=_0x51c5b7[_0x46135b(0x204)](',')['map'](_0x2b3361=>_0x2b3361[_0x46135b(0x1ea)]())[_0x46135b(0x1f1)](Boolean),_0xcd760a=[],_0x23cf7e=[],_0x83f2ca=filterDbTableBackedDatasets(await listDatasets(_0x526cdf[_0x46135b(0x1e8)])),_0x2cdebf=new Map(_0x83f2ca[_0x46135b(0x211)](_0x851114=>[_0x851114['dbtableConfig']?.[_0x46135b(0x20e)]?.[_0x46135b(0x201)](),_0x851114]));for(const _0x44df9e of _0x1d232a['tables']){const _0x578928=_0x2cdebf[_0x46135b(0x1ef)](_0x44df9e[_0x46135b(0x201)]());!_0x578928&&_0xcd760a[_0x46135b(0x1f2)]('Table\x20\x22'+_0x44df9e+_0x46135b(0x203));}for(const _0x37c0a7 of _0xee5ccb){let _0x4befaa;try{_0x4befaa=await getDatasetDetail(_0x37c0a7);}catch{_0xcd760a[_0x46135b(0x1f2)](_0x46135b(0x1e7)+_0x37c0a7+_0x46135b(0x212));continue;}assertDatasetIsDbTableBacked(_0x4befaa,'SQL\x20schema\x20validation');const _0x8a9f5d=Array[_0x46135b(0x215)](_0x4befaa[_0x46135b(0x219)])?_0x4befaa[_0x46135b(0x219)]:[],_0x2bbd6c=new Set(_0x8a9f5d[_0x46135b(0x211)](_0xcd9b06=>_0xcd9b06[_0x46135b(0x217)]?.[_0x46135b(0x201)]())),_0x5785db=_0x4befaa[_0x46135b(0x1f9)]?.[_0x46135b(0x20e)]||_0x4befaa[_0x46135b(0x20e)]||_0x37c0a7;_0x47ec2a['schema:'+_0x5785db]={'code':_0x37c0a7,'tableName':_0x5785db,'fieldCount':_0x2bbd6c[_0x46135b(0x1f6)],'fields':Array[_0x46135b(0x1eb)](_0x2bbd6c)};if(_0x42459a){const _0x318f7b=normalizeDatasetIndexes(_0x4befaa);_0x23cf7e[_0x46135b(0x1f2)]({'tableName':_0x5785db,..._0x318f7b});}}_0xcd760a['length']>0x0&&(_0x47ec2a[_0x46135b(0x213)]=_0xcd760a),_0x42459a&&(_0x47ec2a[_0x46135b(0x218)]=auditSqlJoinIndexes(_0x59561f,_0x23cf7e));}return{'ok':_0x1d232a['valid'],'data':_0x47ec2a,'message':_0x1d232a[_0x46135b(0x1ec)]};}};function normalizeDatasetIndexes(_0x19d048){const _0x591d4e=a200_0x117e9f,_0x53989d=Array[_0x591d4e(0x215)](_0x19d048?.[_0x591d4e(0x210)]?.[_0x591d4e(0x221)])?_0x19d048[_0x591d4e(0x210)][_0x591d4e(0x221)]:Array[_0x591d4e(0x215)](_0x19d048?.[_0x591d4e(0x221)])?_0x19d048[_0x591d4e(0x221)]:[],_0x55e357=_0x53989d[_0x591d4e(0x1f4)](_0x2fa03e=>{const _0x48c631=_0x591d4e,_0x2ad5bc=Array['isArray'](_0x2fa03e?.[_0x48c631(0x205)])?_0x2fa03e[_0x48c631(0x205)]:Array['isArray'](_0x2fa03e?.[_0x48c631(0x22a)])?_0x2fa03e['columnNames']:Array[_0x48c631(0x215)](_0x2fa03e?.[_0x48c631(0x20d)])?_0x2fa03e['columns']:[],_0x204369=_0x2ad5bc['filter'](_0x52a608=>typeof _0x52a608===_0x48c631(0x21f))[_0x48c631(0x211)](_0x4ee1b6=>_0x4ee1b6[_0x48c631(0x1ea)]())[_0x48c631(0x1f1)](Boolean);if(_0x204369[_0x48c631(0x224)]===0x0)return[];const _0x97ccf2=[_0x2fa03e?.[_0x48c631(0x20f)],_0x2fa03e?.[_0x48c631(0x1f8)],_0x2fa03e?.[_0x48c631(0x217)]][_0x48c631(0x21b)](_0x53dfb3=>typeof _0x53dfb3===_0x48c631(0x21f)&&_0x53dfb3[_0x48c631(0x1ea)]()),_0x2e832f=[_0x2fa03e?.['index_type'],_0x2fa03e?.['type']][_0x48c631(0x21b)](_0x387d9e=>typeof _0x387d9e===_0x48c631(0x21f)&&_0x387d9e[_0x48c631(0x1ea)]());return[{..._0x97ccf2?{'name':_0x97ccf2[_0x48c631(0x1ea)]()}:{},..._0x2e832f?{'type':_0x2e832f['trim']()}:{},'columns':_0x204369}];}),_0x37657f=[..._0x55e357],_0x3dc48d=typeof _0x19d048?.[_0x591d4e(0x1f9)]?.[_0x591d4e(0x1f7)]===_0x591d4e(0x21f)?_0x19d048[_0x591d4e(0x1f9)][_0x591d4e(0x1f7)][_0x591d4e(0x204)](',')[_0x591d4e(0x211)](_0x513fae=>_0x513fae[_0x591d4e(0x1ea)]())[_0x591d4e(0x1f1)](Boolean):[];return _0x3dc48d[_0x591d4e(0x224)]>0x0&&_0x37657f[_0x591d4e(0x1fd)]({'type':_0x591d4e(0x202),'columns':_0x3dc48d}),{'indexes':_0x37657f,'metadataAvailable':_0x55e357['length']>0x0};}
@@ -1 +1 @@
1
- (function(_0x29549f,_0x30170d){const _0x95153b=a201_0x5c2f,_0xea169b=_0x29549f();while(!![]){try{const _0x458f3a=parseInt(_0x95153b(0x1c8))/0x1*(parseInt(_0x95153b(0x1c6))/0x2)+parseInt(_0x95153b(0x1c5))/0x3+parseInt(_0x95153b(0x1c9))/0x4+parseInt(_0x95153b(0x1ca))/0x5*(parseInt(_0x95153b(0x1cb))/0x6)+parseInt(_0x95153b(0x1cc))/0x7*(-parseInt(_0x95153b(0x1cd))/0x8)+-parseInt(_0x95153b(0x1c3))/0x9*(parseInt(_0x95153b(0x1c7))/0xa)+-parseInt(_0x95153b(0x1c4))/0xb*(parseInt(_0x95153b(0x1ce))/0xc);if(_0x458f3a===_0x30170d)break;else _0xea169b['push'](_0xea169b['shift']());}catch(_0x24d013){_0xea169b['push'](_0xea169b['shift']());}}}(a201_0x34b2,0xea793));function a201_0x5c2f(_0x77fac2,_0x22f84e){_0x77fac2=_0x77fac2-0x1c3;const _0x34b2c7=a201_0x34b2();let _0x5c2f30=_0x34b2c7[_0x77fac2];return _0x5c2f30;}import{taskStatus}from'../../commands/task/status.js';function a201_0x34b2(){const _0x2abe60=['63540rdBNVj','9TLgGzV','1265WpftsA','147669kjHuRM','6428TdNypq','1688710sbAxOf','284hcxCgv','5493192oSojsK','145bVJNoj','147642FwNuDi','8141bxYspf','9016YSKeZp'];a201_0x34b2=function(){return _0x2abe60;};return a201_0x34b2();}export const taskDefinitions=[taskStatus];
1
+ function a201_0x24cb(){const _0x47eecb=['558682xgQuxX','490936TbKtNh','3787805FXLrOs','3399184phzVkm','5rbDTIP','33249mBVtCQ','603hPoZtr','3472188sCiIBA','1611714NoAbyw'];a201_0x24cb=function(){return _0x47eecb;};return a201_0x24cb();}function a201_0xb77a(_0xc0aa20,_0xe4f30b){_0xc0aa20=_0xc0aa20-0x1e9;const _0x24cb73=a201_0x24cb();let _0xb77a26=_0x24cb73[_0xc0aa20];return _0xb77a26;}(function(_0x45d5d9,_0x4163b9){const _0x182966=a201_0xb77a,_0x17b2c2=_0x45d5d9();while(!![]){try{const _0x2ec1d8=-parseInt(_0x182966(0x1ea))/0x1+parseInt(_0x182966(0x1eb))/0x2+parseInt(_0x182966(0x1f0))/0x3+-parseInt(_0x182966(0x1ee))/0x4+parseInt(_0x182966(0x1ef))/0x5*(-parseInt(_0x182966(0x1e9))/0x6)+-parseInt(_0x182966(0x1ed))/0x7+-parseInt(_0x182966(0x1ec))/0x8*(-parseInt(_0x182966(0x1f1))/0x9);if(_0x2ec1d8===_0x4163b9)break;else _0x17b2c2['push'](_0x17b2c2['shift']());}catch(_0x48bcca){_0x17b2c2['push'](_0x17b2c2['shift']());}}}(a201_0x24cb,0xc85d2));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a202_0xce6005=a202_0x58f3;(function(_0xd772b3,_0x481c61){const _0x26b448=a202_0x58f3,_0x165555=_0xd772b3();while(!![]){try{const _0x48c5e6=-parseInt(_0x26b448(0xa3))/0x1+-parseInt(_0x26b448(0x94))/0x2+parseInt(_0x26b448(0x8b))/0x3+parseInt(_0x26b448(0x9d))/0x4+-parseInt(_0x26b448(0x90))/0x5*(-parseInt(_0x26b448(0x9b))/0x6)+-parseInt(_0x26b448(0x9c))/0x7*(-parseInt(_0x26b448(0x99))/0x8)+parseInt(_0x26b448(0xa2))/0x9*(-parseInt(_0x26b448(0x9e))/0xa);if(_0x48c5e6===_0x481c61)break;else _0x165555['push'](_0x165555['shift']());}catch(_0x53fa78){_0x165555['push'](_0x165555['shift']());}}}(a202_0x14b2,0x886ea));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a202_0x58f3(_0x5e0fc2,_0x3f7679){_0x5e0fc2=_0x5e0fc2-0x8a;const _0x14b2bd=a202_0x14b2();let _0x58f3f1=_0x14b2bd[_0x5e0fc2];return _0x58f3f1;}function a202_0x14b2(){const _0x56a563=['compress','204Mhtfvp','3096989DRTwGE','580416NyYXCt','10qJBGBz','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','taskId','appCode','6093963OEYfYT','965988LOyJCD','trim','2425608fNZycj','string',',\x20received\x20','status','str','62360NJqQTT','read','apiError','flagMissing','121242ghuamW','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id','task','cookie','16IkLJce'];a202_0x14b2=function(){return _0x56a563;};return a202_0x14b2();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a202_0xce6005(0x97),'command':a202_0xce6005(0x8e),'description':a202_0xce6005(0x95),'risk':a202_0xce6005(0x91),'defaultOutputFormat':a202_0xce6005(0x9a),'structuredErrors':!![],'flags':[{'name':a202_0xce6005(0x96),'type':a202_0xce6005(0x8c),'required':!![],'description':a202_0xce6005(0x9f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x17bbaf){const _0x329a34=a202_0xce6005;if(!_0x17bbaf[_0x329a34(0x8f)](_0x329a34(0x96))[_0x329a34(0x8a)]())throw CliErrors[_0x329a34(0x93)](_0x329a34(0x96));},async 'execute'(_0x3b03a2){const _0x100a01=a202_0xce6005,_0x4f139a=_0x3b03a2[_0x100a01(0x8f)](_0x100a01(0x96))[_0x100a01(0x8a)](),_0x3737ec=normalizeAsyncTask(await getAsyncTaskStatus(_0x4f139a,_0x3b03a2[_0x100a01(0xa1)],_0x3b03a2[_0x100a01(0x98)]));if(_0x3737ec[_0x100a01(0xa0)]!==_0x4f139a)throw CliErrors[_0x100a01(0x92)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x4f139a+_0x100a01(0x8d)+_0x3737ec[_0x100a01(0xa0)]+'.');const _0x5c5929=buildAsyncTaskStatusCommand(_0x3737ec[_0x100a01(0xa0)],_0x3b03a2['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x3737ec),'data':{'appCode':_0x3b03a2[_0x100a01(0xa1)],..._0x3737ec,'query':_0x3737ec['isTerminal']?null:{'command':_0x5c5929}}};}};
1
+ const a202_0x11513a=a202_0x1df4;(function(_0x3e09d2,_0x3cbf7e){const _0x362c5b=a202_0x1df4,_0x14de13=_0x3e09d2();while(!![]){try{const _0x5c33ae=-parseInt(_0x362c5b(0xac))/0x1+parseInt(_0x362c5b(0xb0))/0x2*(-parseInt(_0x362c5b(0xaa))/0x3)+parseInt(_0x362c5b(0xb3))/0x4*(parseInt(_0x362c5b(0x9f))/0x5)+-parseInt(_0x362c5b(0xa2))/0x6+-parseInt(_0x362c5b(0xab))/0x7*(-parseInt(_0x362c5b(0xb1))/0x8)+-parseInt(_0x362c5b(0xa6))/0x9*(parseInt(_0x362c5b(0x9b))/0xa)+parseInt(_0x362c5b(0xa9))/0xb;if(_0x5c33ae===_0x3cbf7e)break;else _0x14de13['push'](_0x14de13['shift']());}catch(_0x3a8d53){_0x14de13['push'](_0x14de13['shift']());}}}(a202_0x9d79,0x5a90d));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a202_0x9d79(){const _0x5d6f39=['3501aIUfzk','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','read','9331091ZuvWDW','1192749NziveW','259609GDaNHU','306263kPTGvR','apiError','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','2kzCkBC','96GxFvVa','taskId','347092qUhAvW','cookie','14230VPmofN','task','string','flagMissing','25cLqgSC','str','task-id','593040ugtMJX','isTerminal','appCode','compress'];a202_0x9d79=function(){return _0x5d6f39;};return a202_0x9d79();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a202_0x1df4(_0x14db8f,_0x18c7a2){_0x14db8f=_0x14db8f-0x9b;const _0x9d7909=a202_0x9d79();let _0x1df4a6=_0x9d7909[_0x14db8f];return _0x1df4a6;}export const taskStatus={'service':a202_0x11513a(0x9c),'command':'status','description':a202_0x11513a(0xae),'risk':a202_0x11513a(0xa8),'defaultOutputFormat':a202_0x11513a(0xa5),'structuredErrors':!![],'flags':[{'name':'task-id','type':a202_0x11513a(0x9d),'required':!![],'description':a202_0x11513a(0xaf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x586f1e){const _0x186230=a202_0x11513a;if(!_0x586f1e[_0x186230(0xa0)](_0x186230(0xa1))['trim']())throw CliErrors[_0x186230(0x9e)](_0x186230(0xa1));},async 'execute'(_0x3ec3fb){const _0x58cae1=a202_0x11513a,_0x167216=_0x3ec3fb[_0x58cae1(0xa0)](_0x58cae1(0xa1))['trim'](),_0x160396=normalizeAsyncTask(await getAsyncTaskStatus(_0x167216,_0x3ec3fb[_0x58cae1(0xa4)],_0x3ec3fb[_0x58cae1(0xb4)]));if(_0x160396[_0x58cae1(0xb2)]!==_0x167216)throw CliErrors[_0x58cae1(0xad)](_0x58cae1(0xa7)+_0x167216+',\x20received\x20'+_0x160396[_0x58cae1(0xb2)]+'.');const _0x33ce97=buildAsyncTaskStatusCommand(_0x160396['taskId'],_0x3ec3fb[_0x58cae1(0xa4)]);return{'ok':!![],'message':asyncTaskMessage(_0x160396),'data':{'appCode':_0x3ec3fb[_0x58cae1(0xa4)],..._0x160396,'query':_0x160396[_0x58cae1(0xa3)]?null:{'command':_0x33ce97}}};}};
@@ -1 +1 @@
1
- (function(_0x27b187,_0x2db1ad){const _0x2160fa=a203_0x2b09,_0x531892=_0x27b187();while(!![]){try{const _0x4ec71d=-parseInt(_0x2160fa(0x19d))/0x1+parseInt(_0x2160fa(0x19e))/0x2*(-parseInt(_0x2160fa(0x199))/0x3)+-parseInt(_0x2160fa(0x198))/0x4*(-parseInt(_0x2160fa(0x19a))/0x5)+parseInt(_0x2160fa(0x195))/0x6*(-parseInt(_0x2160fa(0x19c))/0x7)+parseInt(_0x2160fa(0x19b))/0x8*(-parseInt(_0x2160fa(0x19f))/0x9)+parseInt(_0x2160fa(0x196))/0xa+parseInt(_0x2160fa(0x197))/0xb*(parseInt(_0x2160fa(0x194))/0xc);if(_0x4ec71d===_0x2db1ad)break;else _0x531892['push'](_0x531892['shift']());}catch(_0x34f5b1){_0x531892['push'](_0x531892['shift']());}}}(a203_0x5887,0xd3ca0));function a203_0x2b09(_0x183e6b,_0x3debdc){_0x183e6b=_0x183e6b-0x194;const _0x5887b8=a203_0x5887();let _0x2b09c8=_0x5887b8[_0x183e6b];return _0x2b09c8;}function a203_0x5887(){const _0x3cf437=['276iMNZKE','60ukdyah','5526720fQBQij','1320275UlYUlJ','4GWgakC','30uRCnNT','5501890DznjHi','8QCHbyO','1152571cYXqAi','919430FbJLGh','63338MruGVO','5971383HLkJAH'];a203_0x5887=function(){return _0x3cf437;};return a203_0x5887();}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
1
+ function a203_0x553a(_0x4b4555,_0x6d0248){_0x4b4555=_0x4b4555-0xfe;const _0x4c7ecd=a203_0x4c7e();let _0x553aa5=_0x4c7ecd[_0x4b4555];return _0x553aa5;}(function(_0x1d7ba6,_0x273d25){const _0x5724f1=a203_0x553a,_0x33b936=_0x1d7ba6();while(!![]){try{const _0x1ce355=-parseInt(_0x5724f1(0x100))/0x1+-parseInt(_0x5724f1(0x106))/0x2+parseInt(_0x5724f1(0x105))/0x3*(-parseInt(_0x5724f1(0xfe))/0x4)+-parseInt(_0x5724f1(0x104))/0x5+parseInt(_0x5724f1(0x103))/0x6*(parseInt(_0x5724f1(0x102))/0x7)+-parseInt(_0x5724f1(0x101))/0x8+parseInt(_0x5724f1(0xff))/0x9;if(_0x1ce355===_0x273d25)break;else _0x33b936['push'](_0x33b936['shift']());}catch(_0x265cb6){_0x33b936['push'](_0x33b936['shift']());}}}(a203_0x4c7e,0x29bb3));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a203_0x4c7e(){const _0x44c7b9=['51614cHWNrn','452JbbvWa','5907024nTrrGr','233777gcqvYu','361808siNPfD','343wzRWKI','29922YALoaQ','909475lUsLps','6453muyChj'];a203_0x4c7e=function(){return _0x44c7b9;};return a203_0x4c7e();}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- function a204_0x3fda(){const _0x2ed42d=['str','775953YQavXE','Pass\x20--tenant-code\x20<code>.','\x20tenant\x20member(s)','Found\x20','length','read','164YZJiSv','members-list','tenant-code','118982EKJLWt','9oLyVSd','27813cGeBob','tenant','3648666fahkyt','trim','110moQJQF','1008160xdNmJT','232635lPfjOS','576135sIwCxS'];a204_0x3fda=function(){return _0x2ed42d;};return a204_0x3fda();}function a204_0x545a(_0x5767da,_0x2ffc48){_0x5767da=_0x5767da-0xa5;const _0x3fda15=a204_0x3fda();let _0x545a15=_0x3fda15[_0x5767da];return _0x545a15;}const a204_0x48bfd3=a204_0x545a;(function(_0x5aebca,_0x508eda){const _0x245ed8=a204_0x545a,_0x126aa7=_0x5aebca();while(!![]){try{const _0x59e7a3=parseInt(_0x245ed8(0xa8))/0x1*(-parseInt(_0x245ed8(0xa7))/0x2)+parseInt(_0x245ed8(0xa9))/0x3*(-parseInt(_0x245ed8(0xb8))/0x4)+-parseInt(_0x245ed8(0xaf))/0x5+parseInt(_0x245ed8(0xab))/0x6+-parseInt(_0x245ed8(0xb0))/0x7+-parseInt(_0x245ed8(0xae))/0x8+parseInt(_0x245ed8(0xb2))/0x9*(parseInt(_0x245ed8(0xad))/0xa);if(_0x59e7a3===_0x508eda)break;else _0x126aa7['push'](_0x126aa7['shift']());}catch(_0x45b3f0){_0x126aa7['push'](_0x126aa7['shift']());}}}(a204_0x3fda,0x5e444));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a204_0x48bfd3(0xaa),'command':a204_0x48bfd3(0xa5),'description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a204_0x48bfd3(0xb7),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a204_0x48bfd3(0xa6),'type':'string','required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x4d1d57){const _0x47e49f=a204_0x48bfd3;if(!_0x4d1d57[_0x47e49f(0xb1)](_0x47e49f(0xa6))[_0x47e49f(0xac)]())throw CliErrors['flagMissing']('tenant-code',_0x47e49f(0xb3));},async 'execute'(_0x363965){const _0x427953=a204_0x48bfd3,_0x166994=_0x363965['str']('tenant-code')['trim'](),_0x2fb344=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x166994,_0x2fb344);const _0xc0224b=projectTenantMembers(await listTenantDirectoryMembers(_0x166994));return{'ok':!![],'data':{'tenantCode':_0x166994,'items':_0xc0224b,'totalCount':_0xc0224b[_0x427953(0xb6)]},'message':_0x427953(0xb5)+_0xc0224b[_0x427953(0xb6)]+_0x427953(0xb4)};}};
1
+ const a204_0x4784d4=a204_0x1a69;function a204_0x5790(){const _0x350f9e=['length','Pass\x20--tenant-code\x20<code>.','1brlVfx','4ZVrVNv','string','11eesnKw','693860zDTxXE','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','21688fwtvDx','457386UWWJRy','read','trim','654DzLgOh','tenant','11626236rwuOHG','5858315eocsni','str','Found\x20','927RpumrG','68376AivQWX','tenant-code','1409277bBlbnF'];a204_0x5790=function(){return _0x350f9e;};return a204_0x5790();}function a204_0x1a69(_0x5413cc,_0x26d56b){_0x5413cc=_0x5413cc-0x1df;const _0x579044=a204_0x5790();let _0x1a6966=_0x579044[_0x5413cc];return _0x1a6966;}(function(_0x117925,_0x29b485){const _0x272e96=a204_0x1a69,_0x2ac581=_0x117925();while(!![]){try{const _0x1f16ed=parseInt(_0x272e96(0x1e5))/0x1*(-parseInt(_0x272e96(0x1ec))/0x2)+parseInt(_0x272e96(0x1e2))/0x3*(-parseInt(_0x272e96(0x1e6))/0x4)+parseInt(_0x272e96(0x1f2))/0x5+parseInt(_0x272e96(0x1ef))/0x6*(-parseInt(_0x272e96(0x1e0))/0x7)+parseInt(_0x272e96(0x1eb))/0x8*(parseInt(_0x272e96(0x1df))/0x9)+parseInt(_0x272e96(0x1e9))/0xa+-parseInt(_0x272e96(0x1e8))/0xb*(-parseInt(_0x272e96(0x1f1))/0xc);if(_0x1f16ed===_0x29b485)break;else _0x2ac581['push'](_0x2ac581['shift']());}catch(_0x5defa9){_0x2ac581['push'](_0x2ac581['shift']());}}}(a204_0x5790,0xb13d3));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a204_0x4784d4(0x1f0),'command':'members-list','description':a204_0x4784d4(0x1ea),'risk':a204_0x4784d4(0x1ed),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a204_0x4784d4(0x1e7),'required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x134a6c){const _0x3d158d=a204_0x4784d4;if(!_0x134a6c[_0x3d158d(0x1f3)](_0x3d158d(0x1e1))[_0x3d158d(0x1ee)]())throw CliErrors['flagMissing']('tenant-code',_0x3d158d(0x1e4));},async 'execute'(_0x2f9aab){const _0x4e4b5b=a204_0x4784d4,_0x1fccb4=_0x2f9aab[_0x4e4b5b(0x1f3)](_0x4e4b5b(0x1e1))[_0x4e4b5b(0x1ee)](),_0x5455f6=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x1fccb4,_0x5455f6);const _0x36b807=projectTenantMembers(await listTenantDirectoryMembers(_0x1fccb4));return{'ok':!![],'data':{'tenantCode':_0x1fccb4,'items':_0x36b807,'totalCount':_0x36b807[_0x4e4b5b(0x1e3)]},'message':_0x4e4b5b(0x1f4)+_0x36b807[_0x4e4b5b(0x1e3)]+'\x20tenant\x20member(s)'};}};
@@ -1 +1 @@
1
- (function(_0x4c4ff8,_0x228016){const _0x5b9302=a205_0x493b,_0x4d6be8=_0x4c4ff8();while(!![]){try{const _0x8c2e63=parseInt(_0x5b9302(0x17d))/0x1+-parseInt(_0x5b9302(0x172))/0x2*(-parseInt(_0x5b9302(0x17a))/0x3)+-parseInt(_0x5b9302(0x189))/0x4*(-parseInt(_0x5b9302(0x18a))/0x5)+-parseInt(_0x5b9302(0x176))/0x6*(-parseInt(_0x5b9302(0x185))/0x7)+parseInt(_0x5b9302(0x174))/0x8+-parseInt(_0x5b9302(0x177))/0x9*(-parseInt(_0x5b9302(0x184))/0xa)+-parseInt(_0x5b9302(0x17c))/0xb;if(_0x8c2e63===_0x228016)break;else _0x4d6be8['push'](_0x4d6be8['shift']());}catch(_0x363612){_0x4d6be8['push'](_0x4d6be8['shift']());}}}(a205_0x563e,0x44c97));import{CliErrors}from'../../errors.js';function a205_0x563e(){const _0x27af9f=['5JKjvIQ','125624hczcFu','adminFlag','3456616pWMjWp','userId','12JAOVIy','72JstgbI','role','validation','15JDCHBB','ADMIN','13311903zlLvoT','174156YLnCFV','displayName','Tenant\x20\x22','nickname','set','status','trim','384310mkBDri','426027cpGvWU','some','username','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','569844znKBru'];a205_0x563e=function(){return _0x27af9f;};return a205_0x563e();}function textOrNull(_0x5a0749){const _0x30f991=a205_0x493b,_0x566280=_0x5a0749?.[_0x30f991(0x183)]();return _0x566280?_0x566280:null;}function a205_0x493b(_0x52e0f1,_0x4aed69){_0x52e0f1=_0x52e0f1-0x172;const _0x563e7c=a205_0x563e();let _0x493b26=_0x563e7c[_0x52e0f1];return _0x493b26;}export function projectTenantMembers(_0xbcfea7){const _0x393fe9=a205_0x493b,_0x4e40f2=new Map();for(const _0x2b43d2 of _0xbcfea7){const _0x467fde=Number(_0x2b43d2[_0x393fe9(0x175)]);if(!Number['isFinite'](_0x467fde)||_0x467fde<=0x0)continue;const _0x68944a={'userId':_0x467fde,'username':textOrNull(_0x2b43d2[_0x393fe9(0x187)]),'displayName':textOrNull(_0x2b43d2[_0x393fe9(0x180)]),'role':_0x2b43d2[_0x393fe9(0x173)]===!![]?_0x393fe9(0x17b):'MEMBER','status':textOrNull(_0x2b43d2[_0x393fe9(0x182)])},_0x78faf=_0x4e40f2['get'](_0x467fde);if(!_0x78faf){_0x4e40f2[_0x393fe9(0x181)](_0x467fde,_0x68944a);continue;}_0x78faf[_0x393fe9(0x187)]??=_0x68944a['username'],_0x78faf['displayName']??=_0x68944a[_0x393fe9(0x17e)],_0x78faf[_0x393fe9(0x182)]??=_0x68944a['status'];if(_0x68944a['role']===_0x393fe9(0x17b))_0x78faf[_0x393fe9(0x178)]='ADMIN';}return[..._0x4e40f2['values']()]['sort']((_0x2d2ae4,_0x421e1f)=>_0x2d2ae4[_0x393fe9(0x175)]-_0x421e1f[_0x393fe9(0x175)]);}export function assertTenantAccessible(_0x26004e,_0x3dc9a9){const _0x87022d=a205_0x493b;if(_0x3dc9a9[_0x87022d(0x186)](_0x1a2e9e=>_0x1a2e9e['tenantCode']===_0x26004e))return;throw CliErrors[_0x87022d(0x179)](_0x87022d(0x17f)+_0x26004e+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x87022d(0x188));}
1
+ (function(_0x434e93,_0x1c94a0){const _0x404f94=a205_0x4199,_0x4c38ab=_0x434e93();while(!![]){try{const _0x1b18e7=parseInt(_0x404f94(0x104))/0x1+parseInt(_0x404f94(0x116))/0x2+parseInt(_0x404f94(0x103))/0x3+-parseInt(_0x404f94(0x106))/0x4+-parseInt(_0x404f94(0x115))/0x5*(parseInt(_0x404f94(0x108))/0x6)+parseInt(_0x404f94(0x113))/0x7*(parseInt(_0x404f94(0x10e))/0x8)+-parseInt(_0x404f94(0x101))/0x9*(-parseInt(_0x404f94(0x10f))/0xa);if(_0x1b18e7===_0x1c94a0)break;else _0x4c38ab['push'](_0x4c38ab['shift']());}catch(_0x22ee8e){_0x4c38ab['push'](_0x4c38ab['shift']());}}}(a205_0x51f4,0x1d9bd));import{CliErrors}from'../../errors.js';function textOrNull(_0x570a89){const _0x143558=a205_0x4199,_0x560312=_0x570a89?.[_0x143558(0x102)]();return _0x560312?_0x560312:null;}export function projectTenantMembers(_0x3e90bd){const _0x4afc1f=a205_0x4199,_0x12076a=new Map();for(const _0x1f908e of _0x3e90bd){const _0x43d2f0=Number(_0x1f908e[_0x4afc1f(0x109)]);if(!Number['isFinite'](_0x43d2f0)||_0x43d2f0<=0x0)continue;const _0x16ad1b={'userId':_0x43d2f0,'username':textOrNull(_0x1f908e[_0x4afc1f(0x10c)]),'displayName':textOrNull(_0x1f908e[_0x4afc1f(0x112)]),'role':_0x1f908e['adminFlag']===!![]?'ADMIN':_0x4afc1f(0x118),'status':textOrNull(_0x1f908e[_0x4afc1f(0x110)])},_0x4055a1=_0x12076a[_0x4afc1f(0x111)](_0x43d2f0);if(!_0x4055a1){_0x12076a[_0x4afc1f(0x114)](_0x43d2f0,_0x16ad1b);continue;}_0x4055a1[_0x4afc1f(0x10c)]??=_0x16ad1b[_0x4afc1f(0x10c)],_0x4055a1[_0x4afc1f(0x105)]??=_0x16ad1b[_0x4afc1f(0x105)],_0x4055a1[_0x4afc1f(0x110)]??=_0x16ad1b[_0x4afc1f(0x110)];if(_0x16ad1b[_0x4afc1f(0x107)]===_0x4afc1f(0x10a))_0x4055a1[_0x4afc1f(0x107)]=_0x4afc1f(0x10a);}return[..._0x12076a[_0x4afc1f(0x117)]()]['sort']((_0x1c5cb9,_0x2eb7b0)=>_0x1c5cb9[_0x4afc1f(0x109)]-_0x2eb7b0['userId']);}function a205_0x4199(_0x3f1ef3,_0x5dcc4d){_0x3f1ef3=_0x3f1ef3-0x101;const _0x51f48d=a205_0x51f4();let _0x419914=_0x51f48d[_0x3f1ef3];return _0x419914;}export function assertTenantAccessible(_0xa19cc7,_0x2ab357){const _0x2a7af3=a205_0x4199;if(_0x2ab357[_0x2a7af3(0x10d)](_0x19ee7f=>_0x19ee7f['tenantCode']===_0xa19cc7))return;throw CliErrors[_0x2a7af3(0x10b)]('Tenant\x20\x22'+_0xa19cc7+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}function a205_0x51f4(){const _0x3e5bae=['nickname','7ZFVUJM','set','105265RUQHSq','309384bfJJIQ','values','MEMBER','940527sZWsKB','trim','29328ySMXjy','56578QixtMN','displayName','723320yEYKHe','role','18MVXPUT','userId','ADMIN','validation','username','some','317736oXCnnm','10DLBgit','status','get'];a205_0x51f4=function(){return _0x3e5bae;};return a205_0x51f4();}
@@ -1 +1 @@
1
- const a206_0x4cba9b=a206_0x201b;function a206_0x13f0(){const _0x108a17=['1997716yanVrY','apiError','172758VykRHO','231mQBfPH','2109207pNSfBV','1aRctPl','user-account','6064195lwlPQq','2799418HSROBd','bind','3268216uglJtA','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','string','2040saHeur','dingding-sandbox-bind','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','POST','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','ding-talk-user-id','--ding-talk-user-id\x20cannot\x20be\x20empty.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','write','validation','trim','str','109971HGRHSE'];a206_0x13f0=function(){return _0x108a17;};return a206_0x13f0();}(function(_0x3c837f,_0x929f9b){const _0x2b1033=a206_0x201b,_0x3d3359=_0x3c837f();while(!![]){try{const _0x110e5c=parseInt(_0x2b1033(0x1b6))/0x1*(parseInt(_0x2b1033(0x1b9))/0x2)+parseInt(_0x2b1033(0x1b5))/0x3+parseInt(_0x2b1033(0x1cb))/0x4+parseInt(_0x2b1033(0x1b8))/0x5+-parseInt(_0x2b1033(0x1b3))/0x6*(parseInt(_0x2b1033(0x1b4))/0x7)+parseInt(_0x2b1033(0x1bb))/0x8+parseInt(_0x2b1033(0x1ca))/0x9*(-parseInt(_0x2b1033(0x1be))/0xa);if(_0x110e5c===_0x929f9b)break;else _0x3d3359['push'](_0x3d3359['shift']());}catch(_0x48f199){_0x3d3359['push'](_0x3d3359['shift']());}}}(a206_0x13f0,0xbe9b8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a206_0x201b(_0xe14276,_0x1ef904){_0xe14276=_0xe14276-0x1b2;const _0x13f0d5=a206_0x13f0();let _0x201b14=_0x13f0d5[_0xe14276];return _0x201b14;}const PROVIDER_ID='dingtalk',CURRENT_BINDING_WARNING=a206_0x4cba9b(0x1c0);function readDingTalkUserId(_0x4925d1){const _0xb7cb97=a206_0x4cba9b,_0x468efc=_0x4925d1[_0xb7cb97(0x1c9)]('ding-talk-user-id')[_0xb7cb97(0x1c8)]();if(!_0x468efc)throw CliErrors[_0xb7cb97(0x1c7)](_0xb7cb97(0x1c4),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x468efc;}function buildBindingData(_0x2b4fd8,_0x3fd673){const _0x28f9e0=a206_0x4cba9b;return{'operation':_0x28f9e0(0x1ba),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x2b4fd8},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x2b4fd8,'bound':!![]},'dryRun':_0x3fd673,'backend':{'method':_0x28f9e0(0x1c1),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0x4cba9b(0x1b7),'command':a206_0x4cba9b(0x1bf),'description':a206_0x4cba9b(0x1c2),'risk':a206_0x4cba9b(0x1c6),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0x4cba9b(0x1c3),'type':a206_0x4cba9b(0x1bd),'required':!![],'description':a206_0x4cba9b(0x1c5)}],async 'validate'(_0x5dfe06){readDingTalkUserId(_0x5dfe06);},async 'dryRun'(_0x21d518){const _0x5d547e=a206_0x4cba9b,_0x2269d0=readDingTalkUserId(_0x21d518);return asDryRunResult(buildBindingData(_0x2269d0,!![]),{'method':_0x5d547e(0x1c1),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x9dcf4){const _0x338251=a206_0x4cba9b,_0x4e8e56=readDingTalkUserId(_0x9dcf4),_0x53b9b0=await bindDingTalkSandboxAccount(_0x4e8e56);if(_0x53b9b0!==!![])throw CliErrors[_0x338251(0x1b2)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x338251(0x1bc));return{'ok':!![],'data':buildBindingData(_0x4e8e56,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
1
+ function a206_0x2c30(){const _0x530df4=['Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','963ywUSJl','6082240fesWwe','1462yFzXYH','apiError','bind','trim','POST','24bHUlsF','449855relzSi','1115188VAHosC','107248TXQnHP','string','user-account','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','18iCJJNU','dingtalk','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','ding-talk-user-id','442835YpOvLe','validation','--ding-talk-user-id\x20cannot\x20be\x20empty.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','2744244EeDrUB','dingding-sandbox-bind'];a206_0x2c30=function(){return _0x530df4;};return a206_0x2c30();}const a206_0x118af3=a206_0x1fea;(function(_0x215624,_0x4def78){const _0x4f6a73=a206_0x1fea,_0x53740c=_0x215624();while(!![]){try{const _0xb27806=-parseInt(_0x4f6a73(0x1c7))/0x1+-parseInt(_0x4f6a73(0x1bf))/0x2*(-parseInt(_0x4f6a73(0x1bd))/0x3)+parseInt(_0x4f6a73(0x1c6))/0x4+parseInt(_0x4f6a73(0x1cf))/0x5*(parseInt(_0x4f6a73(0x1cb))/0x6)+-parseInt(_0x4f6a73(0x1c5))/0x7*(parseInt(_0x4f6a73(0x1c4))/0x8)+parseInt(_0x4f6a73(0x1d3))/0x9+-parseInt(_0x4f6a73(0x1be))/0xa;if(_0xb27806===_0x4def78)break;else _0x53740c['push'](_0x53740c['shift']());}catch(_0x560d48){_0x53740c['push'](_0x53740c['shift']());}}}(a206_0x2c30,0x2aeb6));import{asDryRunResult}from'../../commands/common/dry-run.js';function a206_0x1fea(_0x2c2416,_0x153d07){_0x2c2416=_0x2c2416-0x1bd;const _0x2c30b4=a206_0x2c30();let _0x1fea3b=_0x2c30b4[_0x2c2416];return _0x1fea3b;}import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a206_0x118af3(0x1cc),CURRENT_BINDING_WARNING=a206_0x118af3(0x1ca);function readDingTalkUserId(_0x30ea39){const _0x52808d=a206_0x118af3,_0x220cc4=_0x30ea39['str']('ding-talk-user-id')[_0x52808d(0x1c2)]();if(!_0x220cc4)throw CliErrors[_0x52808d(0x1d0)](_0x52808d(0x1d1),_0x52808d(0x1d5));return _0x220cc4;}function buildBindingData(_0x109984,_0x474b01){const _0x35c8bf=a206_0x118af3;return{'operation':_0x35c8bf(0x1c1),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x109984},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x109984,'bound':!![]},'dryRun':_0x474b01,'backend':{'method':_0x35c8bf(0x1c3),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0x118af3(0x1c9),'command':a206_0x118af3(0x1d4),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0x118af3(0x1ce),'type':a206_0x118af3(0x1c8),'required':!![],'description':a206_0x118af3(0x1d2)}],async 'validate'(_0x29344c){readDingTalkUserId(_0x29344c);},async 'dryRun'(_0x492e49){const _0x41e15c=readDingTalkUserId(_0x492e49);return asDryRunResult(buildBindingData(_0x41e15c,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x379296){const _0x55c27c=a206_0x118af3,_0x4f9606=readDingTalkUserId(_0x379296),_0x1664bb=await bindDingTalkSandboxAccount(_0x4f9606);if(_0x1664bb!==!![])throw CliErrors[_0x55c27c(0x1c0)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x55c27c(0x1cd));return{'ok':!![],'data':buildBindingData(_0x4f9606,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
@@ -1 +1 @@
1
- (function(_0x528e9e,_0x5b9399){const _0x4e7c64=a207_0x153e,_0x591a08=_0x528e9e();while(!![]){try{const _0x1cb6ed=parseInt(_0x4e7c64(0x19a))/0x1*(-parseInt(_0x4e7c64(0x19e))/0x2)+-parseInt(_0x4e7c64(0x19b))/0x3+parseInt(_0x4e7c64(0x198))/0x4+parseInt(_0x4e7c64(0x199))/0x5*(parseInt(_0x4e7c64(0x1a0))/0x6)+-parseInt(_0x4e7c64(0x1a1))/0x7*(parseInt(_0x4e7c64(0x1a2))/0x8)+-parseInt(_0x4e7c64(0x19d))/0x9+parseInt(_0x4e7c64(0x19c))/0xa*(parseInt(_0x4e7c64(0x19f))/0xb);if(_0x1cb6ed===_0x5b9399)break;else _0x591a08['push'](_0x591a08['shift']());}catch(_0x3e653a){_0x591a08['push'](_0x591a08['shift']());}}}(a207_0x1450,0x8f8e0));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0x153e(_0x45c684,_0x11a07c){_0x45c684=_0x45c684-0x198;const _0x1450d7=a207_0x1450();let _0x153ee2=_0x1450d7[_0x45c684];return _0x153ee2;}export const userAccountDefinitions=[dingTalkSandboxBind];function a207_0x1450(){const _0x5325bc=['2764119ckvjWw','15320tDiNVl','8322210IJDmIR','995262aNPbrC','14146mUFoba','3323850PtePZG','6853378EEDlwa','8csGojI','3330584SCMvsv','10fiEQfW','1ROccCJ'];a207_0x1450=function(){return _0x5325bc;};return a207_0x1450();}
1
+ function a207_0x2a0f(){const _0x3f328e=['197770AKFWFH','444nKAOaF','720guKrUD','1886232LeXMiP','5783393Mtuuli','554449Wenwng','1281928tUSAqP','5XyBTIU','4405062nAbhrK','12951RSUKra'];a207_0x2a0f=function(){return _0x3f328e;};return a207_0x2a0f();}(function(_0x4eb865,_0xf85219){const _0x5866b7=a207_0x358f,_0x5fe0a5=_0x4eb865();while(!![]){try{const _0x4c8280=parseInt(_0x5866b7(0xdf))/0x1+-parseInt(_0x5866b7(0xe0))/0x2+parseInt(_0x5866b7(0xe3))/0x3*(parseInt(_0x5866b7(0xe5))/0x4)+-parseInt(_0x5866b7(0xe1))/0x5*(-parseInt(_0x5866b7(0xe2))/0x6)+parseInt(_0x5866b7(0xde))/0x7+parseInt(_0x5866b7(0xdd))/0x8+-parseInt(_0x5866b7(0xe6))/0x9*(parseInt(_0x5866b7(0xe4))/0xa);if(_0x4c8280===_0xf85219)break;else _0x5fe0a5['push'](_0x5fe0a5['shift']());}catch(_0x5c2f08){_0x5fe0a5['push'](_0x5fe0a5['shift']());}}}(a207_0x2a0f,0x941cb));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0x358f(_0x54a9a0,_0x4779fa){_0x54a9a0=_0x54a9a0-0xdd;const _0x2a0f75=a207_0x2a0f();let _0x358f22=_0x2a0f75[_0x54a9a0];return _0x358f22;}export const userAccountDefinitions=[dingTalkSandboxBind];
@@ -1 +1 @@
1
- const a208_0x5590ae=a208_0x13d8;(function(_0x847e8d,_0x5d9696){const _0xd5a3e2=a208_0x13d8,_0x2f6ea1=_0x847e8d();while(!![]){try{const _0xc68f2=-parseInt(_0xd5a3e2(0x18d))/0x1*(-parseInt(_0xd5a3e2(0x197))/0x2)+parseInt(_0xd5a3e2(0x196))/0x3*(parseInt(_0xd5a3e2(0x19b))/0x4)+-parseInt(_0xd5a3e2(0x18e))/0x5+parseInt(_0xd5a3e2(0x191))/0x6*(-parseInt(_0xd5a3e2(0x190))/0x7)+parseInt(_0xd5a3e2(0x199))/0x8+-parseInt(_0xd5a3e2(0x18f))/0x9*(-parseInt(_0xd5a3e2(0x194))/0xa)+parseInt(_0xd5a3e2(0x19a))/0xb*(-parseInt(_0xd5a3e2(0x195))/0xc);if(_0xc68f2===_0x5d9696)break;else _0x2f6ea1['push'](_0x2f6ea1['shift']());}catch(_0x12a53c){_0x2f6ea1['push'](_0x2f6ea1['shift']());}}}(a208_0x2e82,0x9afda));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a208_0x5590ae(0x19d),'command':a208_0x5590ae(0x192),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a208_0x5590ae(0x19c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x5590ae(0x198),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x45b1d6=>validateAppName(_0x45b1d6,a208_0x5590ae(0x193)),'execute':_0x20a8f7=>runAppAdd(_0x20a8f7,a208_0x5590ae(0x193))};function a208_0x13d8(_0xb98408,_0x533e0f){_0xb98408=_0xb98408-0x18d;const _0x2e82a9=a208_0x2e82();let _0x13d847=_0x2e82a9[_0xb98408];return _0x13d847;}function a208_0x2e82(){const _0x30dc55=['add','workspace\x20add','10gNopfE','48fLWJTG','12BhAfyG','46hfTAGL','name','5394112BaKhkf','4540778yJPMlM','1150428xQcnjy','write','workspace','44153zCUlOV','3797855BGvsMH','6725610pFboco','3793272wcrVib','6igpoSS'];a208_0x2e82=function(){return _0x30dc55;};return a208_0x2e82();}
1
+ const a208_0x422e03=a208_0x1f1c;function a208_0x1f1c(_0x2f09e6,_0x2463c5){_0x2f09e6=_0x2f09e6-0x158;const _0x285189=a208_0x2851();let _0x1f1ca=_0x285189[_0x2f09e6];return _0x1f1ca;}(function(_0x472282,_0x40af32){const _0xedbbfe=a208_0x1f1c,_0x204ebb=_0x472282();while(!![]){try{const _0x3313d2=parseInt(_0xedbbfe(0x15b))/0x1*(parseInt(_0xedbbfe(0x163))/0x2)+parseInt(_0xedbbfe(0x167))/0x3+parseInt(_0xedbbfe(0x15d))/0x4*(parseInt(_0xedbbfe(0x15e))/0x5)+-parseInt(_0xedbbfe(0x15a))/0x6*(parseInt(_0xedbbfe(0x164))/0x7)+-parseInt(_0xedbbfe(0x166))/0x8+parseInt(_0xedbbfe(0x162))/0x9*(-parseInt(_0xedbbfe(0x158))/0xa)+parseInt(_0xedbbfe(0x15f))/0xb;if(_0x3313d2===_0x40af32)break;else _0x204ebb['push'](_0x204ebb['shift']());}catch(_0x47ed7a){_0x204ebb['push'](_0x204ebb['shift']());}}}(a208_0x2851,0x82e61));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a208_0x2851(){const _0x5f2f7d=['2598376rWukTp','109821qsHOWD','20iKgxLV','add','4995786AxxeRA','5WPLoiy','write','364huNhjQ','45635EZedqb','20191369HeJjfy','App\x20profile\x20name','workspace\x20add','4562748STtgIn','1916VcrBfg','7JqBLtD','name'];a208_0x2851=function(){return _0x5f2f7d;};return a208_0x2851();}export const workspaceAddDefinition={'service':'workspace','command':a208_0x422e03(0x159),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a208_0x422e03(0x15c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x422e03(0x165),'description':a208_0x422e03(0x160),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x23a229=>validateAppName(_0x23a229,a208_0x422e03(0x161)),'execute':_0x58369e=>runAppAdd(_0x58369e,'workspace\x20add')};
@@ -1 +1 @@
1
- const a209_0x154ebc=a209_0x1b3b;(function(_0x2f300c,_0x2ff514){const _0x37cade=a209_0x1b3b,_0x21e4e9=_0x2f300c();while(!![]){try{const _0x2e4ae2=-parseInt(_0x37cade(0x1ee))/0x1+-parseInt(_0x37cade(0x20f))/0x2+parseInt(_0x37cade(0x209))/0x3+parseInt(_0x37cade(0x202))/0x4+-parseInt(_0x37cade(0x1e9))/0x5+parseInt(_0x37cade(0x1f8))/0x6*(-parseInt(_0x37cade(0x1e7))/0x7)+parseInt(_0x37cade(0x20c))/0x8*(parseInt(_0x37cade(0x1fc))/0x9);if(_0x2e4ae2===_0x2ff514)break;else _0x21e4e9['push'](_0x21e4e9['shift']());}catch(_0x97230f){_0x21e4e9['push'](_0x21e4e9['shift']());}}}(a209_0x20a8,0xca198));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';function a209_0x1b3b(_0x15b9ab,_0x46a87b){_0x15b9ab=_0x15b9ab-0x1e1;const _0x20a8a6=a209_0x20a8();let _0x1b3b61=_0x20a8a6[_0x15b9ab];return _0x1b3b61;}const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a209_0x154ebc(0x1eb),a209_0x154ebc(0x211),a209_0x154ebc(0x1fd),a209_0x154ebc(0x1fb),a209_0x154ebc(0x1e6),a209_0x154ebc(0x1f6),'locale',a209_0x154ebc(0x204)],workspaceFlags=[{'name':a209_0x154ebc(0x1fa),'type':'string','description':a209_0x154ebc(0x1ed)},{'name':a209_0x154ebc(0x1eb),'type':a209_0x154ebc(0x1f1),'description':a209_0x154ebc(0x215)},{'name':a209_0x154ebc(0x211),'type':'string','description':a209_0x154ebc(0x203),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x154ebc(0x1fd),'type':a209_0x154ebc(0x1f1),'description':a209_0x154ebc(0x1f0)},{'name':'defaultFormat','type':a209_0x154ebc(0x1f1),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a209_0x154ebc(0x1e6),'type':a209_0x154ebc(0x1f4),'description':a209_0x154ebc(0x1e5)},{'name':a209_0x154ebc(0x1f6),'type':a209_0x154ebc(0x1f1),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a209_0x154ebc(0x1f1),'description':'App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'},...getDeploymentSyncProfileFlagDefs()];function isRecord(_0x8d72e7){const _0x4a019d=a209_0x154ebc;return!!_0x8d72e7&&typeof _0x8d72e7===_0x4a019d(0x1fe)&&!Array['isArray'](_0x8d72e7);}function a209_0x20a8(){const _0x3396a7=['join','write','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--appcode\x20<code>`.','project','\x20--app\x20','Missing\x20workspace\x20app\x20selector.','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','pageSize','28iskvco','App\x20\x22','3013630bhYRIX','\x20workspace\x20','appcode','locale','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','850027xEjRZW','\x20(appcode:\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','string','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','initialized','number','workspace.','riskLevel','use','2270910FbfPgT','globalConfig','app','format','16947bhMNxe','apiDir','object','str','validation','init','6398536OIWGnw','Target\x20environment','deploymentSync','\x20workspace\x20use\x20--app\x20<name>`.','keys','apps','Initialize\x20the\x20current\x20workspace\x20app\x20binding','1906083ULguLG','updated','workspace','6736gEtmWM','Use\x20`','Workspace\x20','51976kLiXbe','trim','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'];a209_0x20a8=function(){return _0x3396a7;};return a209_0x20a8();}function assertValidAppcode(_0x1696dd){const _0x1647f0=a209_0x154ebc,{valid:_0x50b778,message:_0x36d922}=validateAppcode(_0x1696dd);if(!_0x50b778)throw CliErrors[_0x1647f0(0x200)]('Invalid\x20appcode:\x20'+_0x1696dd,_0x36d922);}function sanitizeProfile(_0x5412e7){if(!isRecord(_0x5412e7))return{};const _0x2b9997={};for(const _0x5a6501 of SAFE_PROFILE_KEYS){if(_0x5412e7[_0x5a6501]!==undefined)_0x2b9997[_0x5a6501]=_0x5412e7[_0x5a6501];}return _0x2b9997;}function cloneProfile(_0x4f8ca2){return isRecord(_0x4f8ca2)?{..._0x4f8ca2}:{};}function collectWorkspaceProfileOverrides(_0x1b0ec5){const _0x110fec=a209_0x154ebc,_0x497f0c={},_0x1f2464=_0x1b0ec5['str'](_0x110fec(0x211)),_0x12311f=_0x1b0ec5[_0x110fec(0x1ff)](_0x110fec(0x1fd)),_0x2f02ff=_0x1b0ec5['str']('defaultFormat'),_0x3cbab4=_0x1b0ec5['flag'](_0x110fec(0x1e6)),_0x44fba8=_0x1b0ec5[_0x110fec(0x1ff)]('riskLevel'),_0x3798db=_0x1b0ec5[_0x110fec(0x1ff)](_0x110fec(0x1ec));if(_0x1f2464)_0x497f0c[_0x110fec(0x211)]=_0x1f2464;if(_0x12311f)_0x497f0c[_0x110fec(0x1fd)]=_0x12311f;if(_0x2f02ff)_0x497f0c[_0x110fec(0x1fb)]=_0x2f02ff;if(_0x3cbab4!==undefined&&_0x3cbab4!=='')_0x497f0c[_0x110fec(0x1e6)]=Number(_0x3cbab4);if(_0x44fba8)_0x497f0c['riskLevel']=_0x44fba8;if(_0x3798db)_0x497f0c[_0x110fec(0x1ec)]=_0x3798db;const _0x2914fd=collectDeploymentSyncProfile(_0x3c2eec=>_0x1b0ec5[_0x110fec(0x1ff)](_0x3c2eec));if(_0x2914fd)_0x497f0c[_0x110fec(0x204)]=_0x2914fd;return _0x497f0c;}async function validateWorkspaceArgs(_0x50c941){const _0x2944e7=a209_0x154ebc,_0x4e2a57=_0x50c941[_0x2944e7(0x1ff)](_0x2944e7(0x1fa))[_0x2944e7(0x210)](),_0x9f0e69=_0x50c941[_0x2944e7(0x1ff)](_0x2944e7(0x1eb))[_0x2944e7(0x210)]();if(!_0x4e2a57&&!_0x9f0e69)throw CliErrors[_0x2944e7(0x200)](_0x2944e7(0x1e4),_0x2944e7(0x20d)+CLI_BIN_NAME+_0x2944e7(0x212)+CLI_BIN_NAME+_0x2944e7(0x205));if(_0x9f0e69)assertValidAppcode(_0x9f0e69);}function resolveKnownApps(){const _0x40fb9e=a209_0x154ebc,{config:_0x9eb78,layers:_0x208c3f}=readRawConfigWithLayers(),_0xb8af2b=isRecord(_0x9eb78[_0x40fb9e(0x207)])?_0x9eb78[_0x40fb9e(0x207)]:{},_0x34aeab=isRecord(_0x208c3f[_0x40fb9e(0x1f9)][_0x40fb9e(0x207)])?_0x208c3f['globalConfig'][_0x40fb9e(0x207)]:{};return{..._0x34aeab,..._0xb8af2b};}async function configureWorkspace(_0x102edb,_0x5aee1f){const _0x3bc106=a209_0x154ebc,_0x2469c5=_0x102edb['str']('app')[_0x3bc106(0x210)](),_0x5ce9d8=_0x102edb['str'](_0x3bc106(0x1eb))['trim'](),_0x13a388=_0x2469c5||_0x5ce9d8;if(!_0x13a388)throw CliErrors[_0x3bc106(0x200)](_0x3bc106(0x1e4),_0x3bc106(0x20d)+CLI_BIN_NAME+_0x3bc106(0x212)+CLI_BIN_NAME+_0x3bc106(0x205));if(_0x5ce9d8)assertValidAppcode(_0x5ce9d8);const _0x4efc35=resolveWriteConfigPath(_0x3bc106(0x1e2)),_0x150814=readConfigFile(_0x4efc35),_0x183172=resolveKnownApps(),_0x29d57f=isRecord(_0x150814[_0x3bc106(0x207)])?{..._0x150814[_0x3bc106(0x207)]}:{},_0x2f9a0b=cloneProfile(_0x29d57f[_0x13a388]),_0x5d87a6=sanitizeProfile(_0x183172[_0x13a388]),_0xd374d1=_0x5ce9d8?{}:_0x5d87a6,_0x21cb3d=_0x5ce9d8||_0xd374d1[_0x3bc106(0x1eb)];if(!_0x21cb3d){const _0x16bb54=Object[_0x3bc106(0x206)](_0x183172),_0x29fafa=_0x16bb54['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bc106(0x1ea)+_0x5aee1f+_0x3bc106(0x1e3)+_0x13a388+_0x3bc106(0x1e1):_0x3bc106(0x1f2)+_0x16bb54[_0x3bc106(0x213)](',\x20');throw CliErrors[_0x3bc106(0x200)](_0x3bc106(0x1e8)+_0x13a388+'\x22\x20not\x20found.',_0x29fafa);}assertValidAppcode(String(_0x21cb3d));const _0x402d6a={..._0xd374d1,..._0x2f9a0b,'appcode':String(_0x21cb3d),...collectWorkspaceProfileOverrides(_0x102edb)};return _0x29d57f[_0x13a388]=_0x402d6a,_0x150814['apps']=_0x29d57f,normalizeStoredDefaultApp(_0x150814,_0x13a388),delete _0x150814[_0x3bc106(0x1eb)],delete _0x150814[_0x3bc106(0x1fa)],_0x402d6a[_0x3bc106(0x211)]&&(_0x150814[_0x3bc106(0x211)]=_0x402d6a[_0x3bc106(0x211)]),writeConfigFile(_0x4efc35,_0x150814),{'ok':!![],'message':_0x3bc106(0x20e)+(_0x5aee1f==='init'?_0x3bc106(0x1f3):_0x3bc106(0x20a))+':\x20'+_0x13a388+_0x3bc106(0x1ef)+_0x402d6a['appcode']+').\x20Config:\x20'+_0x4efc35+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3bc106(0x1f5)+_0x5aee1f,'configPath':_0x4efc35,'app':_0x13a388,'appcode':_0x402d6a[_0x3bc106(0x1eb)],'env':_0x402d6a[_0x3bc106(0x211)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a209_0x154ebc(0x20b),'command':'init','description':a209_0x154ebc(0x208),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x9b9fbb=>configureWorkspace(_0x9b9fbb,a209_0x154ebc(0x201))},workspaceUseDefinition={'service':a209_0x154ebc(0x20b),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a209_0x154ebc(0x214),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x542c9a=>configureWorkspace(_0x542c9a,a209_0x154ebc(0x1f7))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a209_0x43a6ae=a209_0x4bee;(function(_0x5a593d,_0x5d2e8b){const _0x48af6c=a209_0x4bee,_0x5773b5=_0x5a593d();while(!![]){try{const _0x2bec97=-parseInt(_0x48af6c(0x205))/0x1*(parseInt(_0x48af6c(0x1ee))/0x2)+parseInt(_0x48af6c(0x216))/0x3*(-parseInt(_0x48af6c(0x209))/0x4)+parseInt(_0x48af6c(0x1ec))/0x5+parseInt(_0x48af6c(0x1f9))/0x6*(-parseInt(_0x48af6c(0x1ff))/0x7)+parseInt(_0x48af6c(0x220))/0x8*(-parseInt(_0x48af6c(0x202))/0x9)+parseInt(_0x48af6c(0x1fb))/0xa+parseInt(_0x48af6c(0x208))/0xb;if(_0x2bec97===_0x5d2e8b)break;else _0x5773b5['push'](_0x5773b5['shift']());}catch(_0x24a0af){_0x5773b5['push'](_0x5773b5['shift']());}}}(a209_0x438e,0x826db));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';function a209_0x438e(){const _0x10c27b=['deploymentSync','\x20workspace\x20use\x20--app\x20<name>`.','1823675akmWwU','\x22\x20not\x20found.','2ImuMLq','workspace.','apps','string','\x20--app\x20','use','workspace','app','.\x20Credentials:\x20not\x20written.','Use\x20`','trim','50916EdHfXU','init','10347850EXLSGM','Initialize\x20the\x20current\x20workspace\x20app\x20binding','isArray','apiDir','434PUgMst','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','9ZhXHBa','env','validation','159305nFiPPt','updated','object','7852229RdsiHp','35648UdbHxx','Missing\x20workspace\x20app\x20selector.','initialized','number','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','write','\x20workspace\x20','format','str','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','globalConfig','198HZeYHD','appcode','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Target\x20environment','project','pageSize','\x20--appcode\x20<code>`.','defaultFormat','\x20(appcode:\x20','flag','2443960HFVcHQ','keys','locale','join','Workspace\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding'];a209_0x438e=function(){return _0x10c27b;};return a209_0x438e();}import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a209_0x43a6ae(0x217),'env',a209_0x43a6ae(0x1fe),a209_0x43a6ae(0x210),'pageSize',a209_0x43a6ae(0x201),a209_0x43a6ae(0x1e6),a209_0x43a6ae(0x1ea)],workspaceFlags=[{'name':a209_0x43a6ae(0x1f5),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a209_0x43a6ae(0x217),'type':'string','description':a209_0x43a6ae(0x214)},{'name':a209_0x43a6ae(0x203),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x219),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x43a6ae(0x1fe),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x200)},{'name':a209_0x43a6ae(0x21d),'type':a209_0x43a6ae(0x1f1),'description':a209_0x43a6ae(0x20d),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a209_0x43a6ae(0x21b),'type':a209_0x43a6ae(0x20c),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a209_0x43a6ae(0x201),'type':'string','description':a209_0x43a6ae(0x213),'enum':[...RISK_LEVEL_VALUES]},{'name':a209_0x43a6ae(0x1e6),'type':'string','description':a209_0x43a6ae(0x218)},...getDeploymentSyncProfileFlagDefs()];function a209_0x4bee(_0x13bb61,_0x550dab){_0x13bb61=_0x13bb61-0x1e5;const _0x438e0c=a209_0x438e();let _0x4beec2=_0x438e0c[_0x13bb61];return _0x4beec2;}function isRecord(_0x21dc91){const _0x546caa=a209_0x43a6ae;return!!_0x21dc91&&typeof _0x21dc91===_0x546caa(0x207)&&!Array[_0x546caa(0x1fd)](_0x21dc91);}function assertValidAppcode(_0x48cdff){const _0x5a5998=a209_0x43a6ae,{valid:_0x260235,message:_0x50d6b3}=validateAppcode(_0x48cdff);if(!_0x260235)throw CliErrors[_0x5a5998(0x204)]('Invalid\x20appcode:\x20'+_0x48cdff,_0x50d6b3);}function sanitizeProfile(_0x3bc436){if(!isRecord(_0x3bc436))return{};const _0x2818b2={};for(const _0x55e05f of SAFE_PROFILE_KEYS){if(_0x3bc436[_0x55e05f]!==undefined)_0x2818b2[_0x55e05f]=_0x3bc436[_0x55e05f];}return _0x2818b2;}function cloneProfile(_0x2acdab){return isRecord(_0x2acdab)?{..._0x2acdab}:{};}function collectWorkspaceProfileOverrides(_0x27b0ad){const _0x424f99=a209_0x43a6ae,_0x37166b={},_0x4c9adf=_0x27b0ad[_0x424f99(0x211)](_0x424f99(0x203)),_0x1763da=_0x27b0ad[_0x424f99(0x211)](_0x424f99(0x1fe)),_0x2aae7c=_0x27b0ad['str'](_0x424f99(0x21d)),_0x311de5=_0x27b0ad[_0x424f99(0x21f)](_0x424f99(0x21b)),_0x316a93=_0x27b0ad['str'](_0x424f99(0x201)),_0x123bfc=_0x27b0ad[_0x424f99(0x211)]('locale');if(_0x4c9adf)_0x37166b[_0x424f99(0x203)]=_0x4c9adf;if(_0x1763da)_0x37166b[_0x424f99(0x1fe)]=_0x1763da;if(_0x2aae7c)_0x37166b[_0x424f99(0x210)]=_0x2aae7c;if(_0x311de5!==undefined&&_0x311de5!=='')_0x37166b['pageSize']=Number(_0x311de5);if(_0x316a93)_0x37166b['riskLevel']=_0x316a93;if(_0x123bfc)_0x37166b[_0x424f99(0x1e6)]=_0x123bfc;const _0x21fec1=collectDeploymentSyncProfile(_0x534a17=>_0x27b0ad[_0x424f99(0x211)](_0x534a17));if(_0x21fec1)_0x37166b['deploymentSync']=_0x21fec1;return _0x37166b;}async function validateWorkspaceArgs(_0x510c54){const _0x44b681=a209_0x43a6ae,_0xbd2775=_0x510c54[_0x44b681(0x211)](_0x44b681(0x1f5))[_0x44b681(0x1f8)](),_0x5e6fb4=_0x510c54[_0x44b681(0x211)](_0x44b681(0x217))[_0x44b681(0x1f8)]();if(!_0xbd2775&&!_0x5e6fb4)throw CliErrors[_0x44b681(0x204)]('Missing\x20workspace\x20app\x20selector.',_0x44b681(0x1f7)+CLI_BIN_NAME+_0x44b681(0x212)+CLI_BIN_NAME+_0x44b681(0x1eb));if(_0x5e6fb4)assertValidAppcode(_0x5e6fb4);}function resolveKnownApps(){const _0x49264d=a209_0x43a6ae,{config:_0x345f53,layers:_0x6b74f4}=readRawConfigWithLayers(),_0x30d540=isRecord(_0x345f53[_0x49264d(0x1f0)])?_0x345f53[_0x49264d(0x1f0)]:{},_0x592c1f=isRecord(_0x6b74f4[_0x49264d(0x215)]['apps'])?_0x6b74f4['globalConfig'][_0x49264d(0x1f0)]:{};return{..._0x592c1f,..._0x30d540};}async function configureWorkspace(_0x5d938b,_0x47bc21){const _0x3bf17b=a209_0x43a6ae,_0xcf5b49=_0x5d938b[_0x3bf17b(0x211)](_0x3bf17b(0x1f5))['trim'](),_0x541538=_0x5d938b[_0x3bf17b(0x211)](_0x3bf17b(0x217))[_0x3bf17b(0x1f8)](),_0x295fde=_0xcf5b49||_0x541538;if(!_0x295fde)throw CliErrors[_0x3bf17b(0x204)](_0x3bf17b(0x20a),_0x3bf17b(0x1f7)+CLI_BIN_NAME+_0x3bf17b(0x212)+CLI_BIN_NAME+_0x3bf17b(0x1eb));if(_0x541538)assertValidAppcode(_0x541538);const _0x5930cf=resolveWriteConfigPath(_0x3bf17b(0x21a)),_0x85b2d6=readConfigFile(_0x5930cf),_0xb23ec7=resolveKnownApps(),_0x928d74=isRecord(_0x85b2d6['apps'])?{..._0x85b2d6[_0x3bf17b(0x1f0)]}:{},_0x10557e=cloneProfile(_0x928d74[_0x295fde]),_0x2ff968=sanitizeProfile(_0xb23ec7[_0x295fde]),_0x38f422=_0x541538?{}:_0x2ff968,_0x4e1c97=_0x541538||_0x38f422['appcode'];if(!_0x4e1c97){const _0x19ab16=Object[_0x3bf17b(0x1e5)](_0xb23ec7),_0x1df1a9=_0x19ab16['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bf17b(0x20f)+_0x47bc21+_0x3bf17b(0x1f2)+_0x295fde+_0x3bf17b(0x21c):'Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20'+_0x19ab16[_0x3bf17b(0x1e7)](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x295fde+_0x3bf17b(0x1ed),_0x1df1a9);}assertValidAppcode(String(_0x4e1c97));const _0x261604={..._0x38f422,..._0x10557e,'appcode':String(_0x4e1c97),...collectWorkspaceProfileOverrides(_0x5d938b)};return _0x928d74[_0x295fde]=_0x261604,_0x85b2d6[_0x3bf17b(0x1f0)]=_0x928d74,normalizeStoredDefaultApp(_0x85b2d6,_0x295fde),delete _0x85b2d6[_0x3bf17b(0x217)],delete _0x85b2d6[_0x3bf17b(0x1f5)],_0x261604[_0x3bf17b(0x203)]&&(_0x85b2d6[_0x3bf17b(0x203)]=_0x261604[_0x3bf17b(0x203)]),writeConfigFile(_0x5930cf,_0x85b2d6),{'ok':!![],'message':_0x3bf17b(0x1e8)+(_0x47bc21==='init'?_0x3bf17b(0x20b):_0x3bf17b(0x206))+':\x20'+_0x295fde+_0x3bf17b(0x21e)+_0x261604[_0x3bf17b(0x217)]+').\x20Config:\x20'+_0x5930cf+_0x3bf17b(0x1f6),'data':{'operation':_0x3bf17b(0x1ef)+_0x47bc21,'configPath':_0x5930cf,'app':_0x295fde,'appcode':_0x261604['appcode'],'env':_0x261604[_0x3bf17b(0x203)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a209_0x43a6ae(0x1fc),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x5b957e=>configureWorkspace(_0x5b957e,a209_0x43a6ae(0x1fa))},workspaceUseDefinition={'service':a209_0x43a6ae(0x1f4),'command':a209_0x43a6ae(0x1f3),'description':a209_0x43a6ae(0x1e9),'risk':a209_0x43a6ae(0x20e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xb9c9b4=>configureWorkspace(_0xb9c9b4,a209_0x43a6ae(0x1f3))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a210_0x3b686b=a210_0x2de1;function a210_0x2de1(_0x27940e,_0x697d71){_0x27940e=_0x27940e-0x147;const _0x57c629=a210_0x57c6();let _0x2de1fd=_0x57c629[_0x27940e];return _0x2de1fd;}(function(_0x5ce726,_0x1e1b39){const _0x49c658=a210_0x2de1,_0x2e8d69=_0x5ce726();while(!![]){try{const _0xe291a0=parseInt(_0x49c658(0x154))/0x1*(-parseInt(_0x49c658(0x155))/0x2)+parseInt(_0x49c658(0x151))/0x3*(-parseInt(_0x49c658(0x153))/0x4)+-parseInt(_0x49c658(0x157))/0x5*(parseInt(_0x49c658(0x150))/0x6)+-parseInt(_0x49c658(0x14e))/0x7+-parseInt(_0x49c658(0x14d))/0x8*(parseInt(_0x49c658(0x14c))/0x9)+-parseInt(_0x49c658(0x152))/0xa+-parseInt(_0x49c658(0x148))/0xb*(-parseInt(_0x49c658(0x14a))/0xc);if(_0xe291a0===_0x1e1b39)break;else _0x2e8d69['push'](_0x2e8d69['shift']());}catch(_0x5725d9){_0x2e8d69['push'](_0x2e8d69['shift']());}}}(a210_0x57c6,0xf2f26));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a210_0x57c6(){const _0x535aee=['83657GQtfDD','42ygsXRN','workspace\x20remove','36860ynRGdz','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','97517717fhaDDQ','remove','12dlnlIO','write','209412MpxZSP','328wsbVww','11983811LyUbiu','App\x20profile\x20name\x20to\x20remove','1206iUMYEm','661209IgxeNx','8635920BeKTiN','20cdookZ'];a210_0x57c6=function(){return _0x535aee;};return a210_0x57c6();}export const workspaceRemoveDefinition={'service':'workspace','command':a210_0x3b686b(0x149),'description':a210_0x3b686b(0x147),'risk':a210_0x3b686b(0x14b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a210_0x3b686b(0x14f),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x25a1c7=>validateAppName(_0x25a1c7,a210_0x3b686b(0x156)),'execute':_0x464ae8=>runAppRemove(_0x464ae8,a210_0x3b686b(0x156))};
1
+ function a210_0x243f(_0x57c137,_0x20e2ee){_0x57c137=_0x57c137-0x99;const _0x128448=a210_0x1284();let _0x243fef=_0x128448[_0x57c137];return _0x243fef;}const a210_0x198827=a210_0x243f;(function(_0x46a3b8,_0x4af17a){const _0x13ae90=a210_0x243f,_0x64efd9=_0x46a3b8();while(!![]){try{const _0x49fbd9=-parseInt(_0x13ae90(0x99))/0x1*(parseInt(_0x13ae90(0x9e))/0x2)+-parseInt(_0x13ae90(0x9d))/0x3+-parseInt(_0x13ae90(0xa2))/0x4+parseInt(_0x13ae90(0x9b))/0x5*(parseInt(_0x13ae90(0xa5))/0x6)+-parseInt(_0x13ae90(0xa3))/0x7*(parseInt(_0x13ae90(0x9a))/0x8)+-parseInt(_0x13ae90(0xa6))/0x9+parseInt(_0x13ae90(0xa1))/0xa*(parseInt(_0x13ae90(0xa4))/0xb);if(_0x49fbd9===_0x4af17a)break;else _0x64efd9['push'](_0x64efd9['shift']());}catch(_0x1704d3){_0x64efd9['push'](_0x64efd9['shift']());}}}(a210_0x1284,0x39afa));function a210_0x1284(){const _0x4353a5=['1784960FvWydb','name','146535plqkzX','4OUjixg','workspace\x20remove','workspace','220ymQUkR','6844HcWlbj','7qvdVQH','346852ivrDEt','6PkbPBR','2612430OOFmEl','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','remove','214481TNxElz','357008KmSKlr'];a210_0x1284=function(){return _0x4353a5;};return a210_0x1284();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a210_0x198827(0xa0),'command':a210_0x198827(0xa8),'description':a210_0x198827(0xa7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a210_0x198827(0x9c),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x5c254a=>validateAppName(_0x5c254a,a210_0x198827(0x9f)),'execute':_0x516513=>runAppRemove(_0x516513,a210_0x198827(0x9f))};
@@ -1 +1 @@
1
- const a211_0x360c34=a211_0x3514;function a211_0x3514(_0x22df1d,_0x5607d4){_0x22df1d=_0x22df1d-0x1ae;const _0x452361=a211_0x4523();let _0x3514c4=_0x452361[_0x22df1d];return _0x3514c4;}(function(_0x2d6537,_0x385220){const _0x1edd47=a211_0x3514,_0x31d321=_0x2d6537();while(!![]){try{const _0x595564=-parseInt(_0x1edd47(0x1b2))/0x1*(parseInt(_0x1edd47(0x1be))/0x2)+-parseInt(_0x1edd47(0x1b0))/0x3*(parseInt(_0x1edd47(0x1c0))/0x4)+parseInt(_0x1edd47(0x1b3))/0x5*(-parseInt(_0x1edd47(0x1b8))/0x6)+parseInt(_0x1edd47(0x1c2))/0x7+-parseInt(_0x1edd47(0x1c1))/0x8*(parseInt(_0x1edd47(0x1ce))/0x9)+-parseInt(_0x1edd47(0x1b6))/0xa+-parseInt(_0x1edd47(0x1b7))/0xb*(-parseInt(_0x1edd47(0x1c5))/0xc);if(_0x595564===_0x385220)break;else _0x31d321['push'](_0x31d321['shift']());}catch(_0x1a1f6f){_0x31d321['push'](_0x31d321['shift']());}}}(a211_0x4523,0x744f6));import{CliErrors}from'../errors.js';function a211_0x4523(){const _0x49b77f=['deployment-target-env','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','2prPaOJ','test','56UgYlka','149600kPhMVW','3287186cmIbIp','join','dbLinkId','61704MXHmlf','number','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','object','validation','string','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','deployment-db-id','279ACyDeU','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','94251JSyQNm','trim','917851ywRnUI','7685sCVmoQ','pre','includes','6969780FKeMXg','6699xRldox','1914pufoNV','targetEnv','isSafeInteger','dev'];a211_0x4523=function(){return _0x49b77f;};return a211_0x4523();}export const AUTO_DEPLOYMENT_TARGET_ENVS=[a211_0x360c34(0x1bb),a211_0x360c34(0x1bf),a211_0x360c34(0x1b4)];export function getDeploymentSyncProfileFlagDefs(){const _0x2ea599=a211_0x360c34;return[{'name':_0x2ea599(0x1cd),'type':_0x2ea599(0x1c6),'description':_0x2ea599(0x1cc)},{'name':_0x2ea599(0x1bc),'type':_0x2ea599(0x1ca),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x2ea599(0x1af)}];}export function collectDeploymentSyncProfile(_0x13a081){const _0x1a5b89=a211_0x360c34,_0x43ca68=_0x13a081('deployment-db-id')[_0x1a5b89(0x1b1)](),_0xc76712=_0x13a081('deployment-target-env')[_0x1a5b89(0x1b1)]();if(!_0x43ca68&&!_0xc76712)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x43ca68?Number(_0x43ca68):undefined,'targetEnv':_0xc76712||undefined});}export function validateDeploymentSyncProfile(_0x54f44e){const _0x16c569=a211_0x360c34;if(!_0x54f44e||typeof _0x54f44e!==_0x16c569(0x1c8)||Array['isArray'](_0x54f44e))throw CliErrors[_0x16c569(0x1c9)](_0x16c569(0x1bd));const _0x7b7eb0=_0x54f44e,_0x4fdeba=Number(_0x7b7eb0[_0x16c569(0x1c4)]);if(!Number[_0x16c569(0x1ba)](_0x4fdeba)||_0x4fdeba<=0x0)throw CliErrors['validation'](_0x16c569(0x1c7));const _0x157037=typeof _0x7b7eb0[_0x16c569(0x1b9)]===_0x16c569(0x1ca)?_0x7b7eb0[_0x16c569(0x1b9)][_0x16c569(0x1b1)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x16c569(0x1b5)](_0x157037))throw CliErrors['validation'](_0x16c569(0x1cb)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x16c569(0x1c3)](',\x20')+'.',_0x16c569(0x1ae));return{'dbLinkId':_0x4fdeba,'targetEnv':_0x157037};}
1
+ function a211_0x4388(_0x153333,_0x35ed88){_0x153333=_0x153333-0x194;const _0x15330c=a211_0x1533();let _0x43880f=_0x15330c[_0x153333];return _0x43880f;}const a211_0x31dc7b=a211_0x4388;(function(_0x4799d6,_0x1e2387){const _0x548d15=a211_0x4388,_0x2cf645=_0x4799d6();while(!![]){try{const _0x3bdbd1=-parseInt(_0x548d15(0x19e))/0x1+-parseInt(_0x548d15(0x1a8))/0x2*(parseInt(_0x548d15(0x1a3))/0x3)+-parseInt(_0x548d15(0x1a5))/0x4*(-parseInt(_0x548d15(0x1aa))/0x5)+-parseInt(_0x548d15(0x1a1))/0x6*(parseInt(_0x548d15(0x1ab))/0x7)+-parseInt(_0x548d15(0x19b))/0x8+parseInt(_0x548d15(0x198))/0x9*(parseInt(_0x548d15(0x195))/0xa)+parseInt(_0x548d15(0x19a))/0xb;if(_0x3bdbd1===_0x1e2387)break;else _0x2cf645['push'](_0x2cf645['shift']());}catch(_0xd20c00){_0x2cf645['push'](_0x2cf645['shift']());}}}(a211_0x1533,0x2afbb));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=[a211_0x31dc7b(0x196),'test',a211_0x31dc7b(0x19f)];export function getDeploymentSyncProfileFlagDefs(){const _0x39e375=a211_0x31dc7b;return[{'name':_0x39e375(0x199),'type':_0x39e375(0x1a0),'description':'Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target'},{'name':_0x39e375(0x19c),'type':_0x39e375(0x1a2),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x39e375(0x197)}];}export function collectDeploymentSyncProfile(_0x5358b5){const _0x3c2570=a211_0x31dc7b,_0x32e408=_0x5358b5('deployment-db-id')[_0x3c2570(0x1a7)](),_0x2487dd=_0x5358b5(_0x3c2570(0x19c))[_0x3c2570(0x1a7)]();if(!_0x32e408&&!_0x2487dd)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x32e408?Number(_0x32e408):undefined,'targetEnv':_0x2487dd||undefined});}function a211_0x1533(){const _0x361ab1=['4VXZrrK','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','trim','4MqqFwz','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','390855sUmpmD','34174nezrrj','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','validation','isSafeInteger','targetEnv','10LqPcGC','dev','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','12501itdchg','deployment-db-id','9749751IpXQuo','2546904IfaOBo','deployment-target-env','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','188225WwHLFM','pre','number','246dlVptp','string','124638pQdTft','object'];a211_0x1533=function(){return _0x361ab1;};return a211_0x1533();}export function validateDeploymentSyncProfile(_0x388930){const _0x426a20=a211_0x31dc7b;if(!_0x388930||typeof _0x388930!==_0x426a20(0x1a4)||Array['isArray'](_0x388930))throw CliErrors[_0x426a20(0x1ad)](_0x426a20(0x1ac));const _0x5268df=_0x388930,_0x2120b2=Number(_0x5268df['dbLinkId']);if(!Number[_0x426a20(0x1ae)](_0x2120b2)||_0x2120b2<=0x0)throw CliErrors['validation'](_0x426a20(0x1a6));const _0x27b656=typeof _0x5268df[_0x426a20(0x194)]===_0x426a20(0x1a2)?_0x5268df['targetEnv']['trim']():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS['includes'](_0x27b656))throw CliErrors[_0x426a20(0x1ad)](_0x426a20(0x19d)+AUTO_DEPLOYMENT_TARGET_ENVS['join'](',\x20')+'.',_0x426a20(0x1a9));return{'dbLinkId':_0x2120b2,'targetEnv':_0x27b656};}
@@ -1 +1 @@
1
- function a212_0x23c9(){const _0xb89dac=['kb-domain','utf8','validation','length','13185FhiilK','cwd','includes','Allowed\x20fields:\x20','api-domain','Unsupported\x20domain\x20config\x20field(s):\x20','Invalid\x20','userDomain','local-domain','2491145VKfccO','449175UoZzYb','certificate-domain','400arnGxL',':\x20\x22','keys','https:','1198880UiEvFd','origin','apiDomain','string','runtimeDomain','skillDomain','platformDomain','trim','certificateDomain','83072oiIYWu','join','skill-domain','localDomain','runtime-domain','agentDomain','search','password','object','skillHubDomain','appDomain','app-domain','Domain\x20config\x20file\x20not\x20found:\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','filter','368AbGSpM','21VReTLJ','hash','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','parse','username','pathname','1083102hzToZQ','kbDomain','196605zVyQTV','user-domain'];a212_0x23c9=function(){return _0xb89dac;};return a212_0x23c9();}const a212_0x1ded44=a212_0x2d95;(function(_0x33cbd3,_0x2c2d38){const _0x3250d7=a212_0x2d95,_0x21a557=_0x33cbd3();while(!![]){try{const _0x217e9a=parseInt(_0x3250d7(0x134))/0x1+-parseInt(_0x3250d7(0x143))/0x2+-parseInt(_0x3250d7(0x12a))/0x3*(parseInt(_0x3250d7(0x11b))/0x4)+parseInt(_0x3250d7(0x133))/0x5+parseInt(_0x3250d7(0x122))/0x6*(parseInt(_0x3250d7(0x11c))/0x7)+parseInt(_0x3250d7(0x13a))/0x8+-parseInt(_0x3250d7(0x124))/0x9*(parseInt(_0x3250d7(0x136))/0xa);if(_0x217e9a===_0x2c2d38)break;else _0x21a557['push'](_0x21a557['shift']());}catch(_0x2472a5){_0x21a557['push'](_0x21a557['shift']());}}}(a212_0x23c9,0x4dea3));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a212_0x2d95(_0x576a28,_0x2cbc70){_0x576a28=_0x576a28-0x10f;const _0x23c927=a212_0x23c9();let _0x2d95aa=_0x23c927[_0x576a28];return _0x2d95aa;}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a212_0x1ded44(0x131),a212_0x1ded44(0x13c),a212_0x1ded44(0x13e),a212_0x1ded44(0x13f),a212_0x1ded44(0x123),a212_0x1ded44(0x116),a212_0x1ded44(0x10f),a212_0x1ded44(0x142)];const DOMAIN_FLAGS={'userDomain':a212_0x1ded44(0x125),'apiDomain':a212_0x1ded44(0x12e),'runtimeDomain':a212_0x1ded44(0x110),'skillDomain':a212_0x1ded44(0x145),'kbDomain':a212_0x1ded44(0x126),'appDomain':a212_0x1ded44(0x117),'localDomain':a212_0x1ded44(0x132),'certificateDomain':a212_0x1ded44(0x135)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x1ded44(0x111),a212_0x1ded44(0x140),a212_0x1ded44(0x115)];export function normalizeDomainOrigin(_0x1dcbb2,_0x1d1b58){const _0x325424=a212_0x1ded44;if(typeof _0x1d1b58!==_0x325424(0x13d)||!_0x1d1b58['trim']())throw CliErrors[_0x325424(0x128)](_0x325424(0x130)+_0x1dcbb2+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x341d80;try{_0x341d80=new URL(_0x1d1b58[_0x325424(0x141)]());}catch{throw CliErrors[_0x325424(0x128)](_0x325424(0x130)+_0x1dcbb2+_0x325424(0x137)+_0x1d1b58+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x341d80['protocol']!==_0x325424(0x139)||_0x341d80[_0x325424(0x120)]||_0x341d80[_0x325424(0x113)]||_0x341d80['pathname']!=='/'&&_0x341d80[_0x325424(0x121)]!==''||_0x341d80[_0x325424(0x112)]||_0x341d80[_0x325424(0x11d)])throw CliErrors['validation'](_0x325424(0x130)+_0x1dcbb2+_0x325424(0x119),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x341d80[_0x325424(0x13b)];}export function readDomainConfig(_0x231221){const _0x18006b=a212_0x1ded44,_0x42140f=isAbsolute(_0x231221)?_0x231221:resolve(process[_0x18006b(0x12b)](),_0x231221);if(!existsSync(_0x42140f))throw CliErrors[_0x18006b(0x128)](_0x18006b(0x118)+_0x42140f);let _0x4c5357;try{_0x4c5357=JSON[_0x18006b(0x11f)](readFileSync(_0x42140f,_0x18006b(0x127)));}catch{throw CliErrors[_0x18006b(0x128)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x42140f);}if(!_0x4c5357||typeof _0x4c5357!==_0x18006b(0x114)||Array['isArray'](_0x4c5357))throw CliErrors[_0x18006b(0x128)](_0x18006b(0x11e));const _0x3e15bd=_0x4c5357,_0x23af57=Object[_0x18006b(0x138)](_0x3e15bd)[_0x18006b(0x11a)](_0x10a400=>!DOMAIN_CONFIG_FIELDS[_0x18006b(0x12c)](_0x10a400));if(_0x23af57[_0x18006b(0x129)]>0x0)throw CliErrors['validation'](_0x18006b(0x12f)+_0x23af57[_0x18006b(0x144)](',\x20'),_0x18006b(0x12d)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x44c987={};for(const _0x4c6f97 of DOMAIN_CONFIG_FIELDS){_0x3e15bd[_0x4c6f97]!==undefined&&(_0x44c987[_0x4c6f97]=normalizeDomainOrigin(_0x4c6f97,_0x3e15bd[_0x4c6f97]));}if(Object[_0x18006b(0x138)](_0x44c987)[_0x18006b(0x129)]===0x0)throw CliErrors[_0x18006b(0x128)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x44c987;}export function resolveDomainFlags(_0xae0909){const _0x1a290c=(_0xae0909['str']('domain-config')||'')['trim'](),_0x5f4cc5=_0x1a290c?readDomainConfig(_0x1a290c):{};for(const _0x297eb7 of DOMAIN_CONFIG_FIELDS){const _0x50966d=(_0xae0909['str'](DOMAIN_FLAGS[_0x297eb7])||'')['trim']();if(_0x50966d)_0x5f4cc5[_0x297eb7]=normalizeDomainOrigin(_0x297eb7,_0x50966d);}return _0x5f4cc5;}
1
+ function a212_0x4d47(_0x549e6b,_0x247198){_0x549e6b=_0x549e6b-0xf8;const _0x3854ef=a212_0x3854();let _0x4d47c8=_0x3854ef[_0x549e6b];return _0x4d47c8;}const a212_0x34d0df=a212_0x4d47;(function(_0x64ba59,_0x2eb68a){const _0x2b8d28=a212_0x4d47,_0x1a1496=_0x64ba59();while(!![]){try{const _0xf7b6f1=-parseInt(_0x2b8d28(0xfd))/0x1*(-parseInt(_0x2b8d28(0xfc))/0x2)+-parseInt(_0x2b8d28(0x109))/0x3*(-parseInt(_0x2b8d28(0x10b))/0x4)+parseInt(_0x2b8d28(0x129))/0x5+parseInt(_0x2b8d28(0x126))/0x6+-parseInt(_0x2b8d28(0x103))/0x7+-parseInt(_0x2b8d28(0x127))/0x8+parseInt(_0x2b8d28(0x106))/0x9;if(_0xf7b6f1===_0x2eb68a)break;else _0x1a1496['push'](_0x1a1496['shift']());}catch(_0xfd88a1){_0x1a1496['push'](_0x1a1496['shift']());}}}(a212_0x3854,0x567a9));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a212_0x34d0df(0x124),'apiDomain','runtimeDomain',a212_0x34d0df(0x114),a212_0x34d0df(0x116),a212_0x34d0df(0x10f),a212_0x34d0df(0x101),a212_0x34d0df(0x111)];const DOMAIN_FLAGS={'userDomain':a212_0x34d0df(0x10c),'apiDomain':a212_0x34d0df(0x110),'runtimeDomain':'runtime-domain','skillDomain':a212_0x34d0df(0x12a),'kbDomain':a212_0x34d0df(0x105),'appDomain':'app-domain','localDomain':'local-domain','certificateDomain':'certificate-domain'};function a212_0x3854(){const _0x2bb1d1=['Unsupported\x20domain\x20config\x20field(s):\x20','search','isArray','localDomain','skillHubDomain','3475010jTrNjm','https:','kb-domain','3758247aHPfbl','parse','includes','6knkFMG','Allowed\x20fields:\x20','1155128EeVpgT','user-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','appDomain','api-domain','certificateDomain','Domain\x20config\x20file\x20not\x20found:\x20','cwd','skillDomain','join','kbDomain','utf8',':\x20\x22','platformDomain','string','filter','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','origin','object','length','validation','Invalid\x20domain\x20config\x20JSON:\x20','trim','domain-config','userDomain','Invalid\x20','2194488BkUNrN','5212440pkCFjm','hash','315705eIlXFY','skill-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','pathname','str','keys','agentDomain','8228GwMNEH','19taBwup'];a212_0x3854=function(){return _0x2bb1d1;};return a212_0x3854();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x34d0df(0xfb),a212_0x34d0df(0x119),a212_0x34d0df(0x102)];export function normalizeDomainOrigin(_0x30de5a,_0x2f048b){const _0x48a53f=a212_0x34d0df;if(typeof _0x2f048b!==_0x48a53f(0x11a)||!_0x2f048b['trim']())throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x10d));let _0x4167e9;try{_0x4167e9=new URL(_0x2f048b[_0x48a53f(0x122)]());}catch{throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x118)+_0x2f048b+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x4167e9['protocol']!==_0x48a53f(0x104)||_0x4167e9['username']||_0x4167e9['password']||_0x4167e9[_0x48a53f(0xf8)]!=='/'&&_0x4167e9[_0x48a53f(0xf8)]!==''||_0x4167e9[_0x48a53f(0xff)]||_0x4167e9[_0x48a53f(0x128)])throw CliErrors[_0x48a53f(0x120)](_0x48a53f(0x125)+_0x30de5a+_0x48a53f(0x12b),_0x48a53f(0x10e));return _0x4167e9[_0x48a53f(0x11d)];}export function readDomainConfig(_0x4faed2){const _0x3e3790=a212_0x34d0df,_0x43c6e5=isAbsolute(_0x4faed2)?_0x4faed2:resolve(process[_0x3e3790(0x113)](),_0x4faed2);if(!existsSync(_0x43c6e5))throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x112)+_0x43c6e5);let _0x258c29;try{_0x258c29=JSON[_0x3e3790(0x107)](readFileSync(_0x43c6e5,_0x3e3790(0x117)));}catch{throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x121)+_0x43c6e5);}if(!_0x258c29||typeof _0x258c29!==_0x3e3790(0x11e)||Array[_0x3e3790(0x100)](_0x258c29))throw CliErrors['validation']('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x148ca0=_0x258c29,_0x2a3152=Object[_0x3e3790(0xfa)](_0x148ca0)[_0x3e3790(0x11b)](_0x31ee20=>!DOMAIN_CONFIG_FIELDS[_0x3e3790(0x108)](_0x31ee20));if(_0x2a3152['length']>0x0)throw CliErrors['validation'](_0x3e3790(0xfe)+_0x2a3152['join'](',\x20'),_0x3e3790(0x10a)+DOMAIN_CONFIG_FIELDS[_0x3e3790(0x115)](',\x20'));const _0x46f819={};for(const _0x65b41c of DOMAIN_CONFIG_FIELDS){_0x148ca0[_0x65b41c]!==undefined&&(_0x46f819[_0x65b41c]=normalizeDomainOrigin(_0x65b41c,_0x148ca0[_0x65b41c]));}if(Object[_0x3e3790(0xfa)](_0x46f819)[_0x3e3790(0x11f)]===0x0)throw CliErrors[_0x3e3790(0x120)](_0x3e3790(0x11c));return _0x46f819;}export function resolveDomainFlags(_0x18214e){const _0x516e81=a212_0x34d0df,_0x306e25=(_0x18214e[_0x516e81(0xf9)](_0x516e81(0x123))||'')[_0x516e81(0x122)](),_0x5ca1d2=_0x306e25?readDomainConfig(_0x306e25):{};for(const _0x539be6 of DOMAIN_CONFIG_FIELDS){const _0x24403d=(_0x18214e[_0x516e81(0xf9)](DOMAIN_FLAGS[_0x539be6])||'')[_0x516e81(0x122)]();if(_0x24403d)_0x5ca1d2[_0x539be6]=normalizeDomainOrigin(_0x539be6,_0x24403d);}return _0x5ca1d2;}
@@ -1 +1 @@
1
- const a213_0x226530=a213_0x3205;(function(_0x1f7b14,_0x1d51c2){const _0x4a757f=a213_0x3205,_0x47522a=_0x1f7b14();while(!![]){try{const _0x3439ea=parseInt(_0x4a757f(0x17d))/0x1*(-parseInt(_0x4a757f(0x179))/0x2)+parseInt(_0x4a757f(0x17c))/0x3+-parseInt(_0x4a757f(0x171))/0x4*(-parseInt(_0x4a757f(0x180))/0x5)+-parseInt(_0x4a757f(0x172))/0x6+parseInt(_0x4a757f(0x174))/0x7+-parseInt(_0x4a757f(0x173))/0x8*(parseInt(_0x4a757f(0x178))/0x9)+parseInt(_0x4a757f(0x17e))/0xa*(-parseInt(_0x4a757f(0x17f))/0xb);if(_0x3439ea===_0x1d51c2)break;else _0x47522a['push'](_0x47522a['shift']());}catch(_0x482b02){_0x47522a['push'](_0x47522a['shift']());}}}(a213_0x5419,0xc9de5));import{writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';function a213_0x3205(_0x19838e,_0x1cc268){_0x19838e=_0x19838e-0x171;const _0x5419b0=a213_0x5419();let _0x32051d=_0x5419b0[_0x19838e];return _0x32051d;}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';export const PROJECT_ROUTING_PROTOCOL=a213_0x226530(0x176);export function getProjectRoutingManifest(){const _0x1abedb=a213_0x226530,_0xdc1b2c=getActiveRegion(),_0x48268d=isIndependentDeployment(),_0x2bc226=getOfficialRoutingProfile(_0xdc1b2c),_0xe4225e=getLocalDomain(),_0x1b205d=getCertificateDomain();if(!!_0xe4225e!==!!_0x1b205d)throw new Error(_0x1abedb(0x17a));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x48268d?'independent':_0x1abedb(0x175),'region':_0x48268d?null:_0xdc1b2c,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x2bc226['assets'],'local':_0xe4225e&&_0x1b205d?{'origin':_0xe4225e,'certificateUrl':_0x1b205d+_0x1abedb(0x181)}:_0x48268d?{'origin':'http://localhost'}:_0x2bc226[_0x1abedb(0x17b)]};}export function writeProjectRoutingManifest(_0x190b35){const _0x37ceee=a213_0x226530,_0x260d37=getProjectRoutingManifest(),_0x5e6f97=join(_0x190b35,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x5e6f97,JSON['stringify'](_0x260d37,null,0x2)+'\x0a',_0x37ceee(0x177)),{'path':_0x5e6f97,'manifest':_0x260d37};}function a213_0x5419(){const _0x56ab17=['13842jxStNT','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','local','2715486ymyQXU','228IMlOMk','10UBtdZO','3049607bhYcdS','22250NymnWz','/cert/lovrabet-dev.json','772vbCWIR','830184kSXFJl','72BVpYoH','8546587tRjbik','official','lovrabet-project-routing/v1','utf8','164511DZsyoU'];a213_0x5419=function(){return _0x56ab17;};return a213_0x5419();}
1
+ (function(_0x579527,_0x414e7d){const _0x261f59=a213_0x334b,_0x4e7d81=_0x579527();while(!![]){try{const _0x5ba89b=-parseInt(_0x261f59(0x1c7))/0x1*(-parseInt(_0x261f59(0x1c5))/0x2)+-parseInt(_0x261f59(0x1ba))/0x3*(parseInt(_0x261f59(0x1bd))/0x4)+-parseInt(_0x261f59(0x1c1))/0x5+parseInt(_0x261f59(0x1b8))/0x6*(-parseInt(_0x261f59(0x1c3))/0x7)+parseInt(_0x261f59(0x1bf))/0x8+parseInt(_0x261f59(0x1c8))/0x9*(-parseInt(_0x261f59(0x1b9))/0xa)+parseInt(_0x261f59(0x1c0))/0xb*(parseInt(_0x261f59(0x1bb))/0xc);if(_0x5ba89b===_0x414e7d)break;else _0x4e7d81['push'](_0x4e7d81['shift']());}catch(_0x32cc26){_0x4e7d81['push'](_0x4e7d81['shift']());}}}(a213_0x29c3,0xa1337));import{writeFileSync}from'node:fs';function a213_0x29c3(){const _0x3e9d0e=['1017dgZNWk','7692fjZRnL','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','764nRTvSJ','official','8155640ksmOFj','14355tBabNk','859775vddMGO','assets','2571443HRKtNt','/cert/lovrabet-dev.json','78oTrIOs','independent','18701WQVQJq','8582562GLorWH','stringify','utf8','local','12WIoWoW','10ovtIWW'];a213_0x29c3=function(){return _0x3e9d0e;};return a213_0x29c3();}import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';function a213_0x334b(_0x343c05,_0x3fef51){_0x343c05=_0x343c05-0x1b7;const _0x29c379=a213_0x29c3();let _0x334b17=_0x29c379[_0x343c05];return _0x334b17;}export const PROJECT_ROUTING_PROTOCOL='lovrabet-project-routing/v1';export function getProjectRoutingManifest(){const _0x579212=a213_0x334b,_0x1a6652=getActiveRegion(),_0x289b6e=isIndependentDeployment(),_0xb8e49f=getOfficialRoutingProfile(_0x1a6652),_0x364352=getLocalDomain(),_0x41abad=getCertificateDomain();if(!!_0x364352!==!!_0x41abad)throw new Error(_0x579212(0x1bc));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x289b6e?_0x579212(0x1c6):_0x579212(0x1be),'region':_0x289b6e?null:_0x1a6652,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0xb8e49f[_0x579212(0x1c2)],'local':_0x364352&&_0x41abad?{'origin':_0x364352,'certificateUrl':_0x41abad+_0x579212(0x1c4)}:_0x289b6e?{'origin':'http://localhost'}:_0xb8e49f[_0x579212(0x1b7)]};}export function writeProjectRoutingManifest(_0x415f81){const _0x5b4a81=a213_0x334b,_0x4c429b=getProjectRoutingManifest(),_0x4becf8=join(_0x415f81,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x4becf8,JSON[_0x5b4a81(0x1c9)](_0x4c429b,null,0x2)+'\x0a',_0x5b4a81(0x1ca)),{'path':_0x4becf8,'manifest':_0x4c429b};}
@@ -1 +1 @@
1
- const a214_0x4e9c17=a214_0x4e6f;function a214_0x53aa(){const _0x4534c9=['defaultApp','Config\x20key\x20(','runtimeDomain','4QsfEAH','length','locale','798539FDdxsy','129689sDbmLJ','apps','pageSize','Auth\x20cookie','1065858SdTVRi','Access\x20key','appcode','trim','certificateDomain','Risk\x20level','toLowerCase','1036578WsWGSA','number','inherit','app','2499039IeOLom','map','apiDomain','accessKey','riskLevel','join','deploymentSync','API\x20directory\x20path','env','8fbCMDK','2479265DkbAoU','cookie','region','defaultFormat','string','skillDomain','apiDir','localDomain','format','userDomain','kbDomain','entries','appDomain','Default\x20page\x20size','831440btSjet','en-US','zh-CN','has','keys'];a214_0x53aa=function(){return _0x4534c9;};return a214_0x53aa();}(function(_0xb7140a,_0x44366e){const _0x2edf0c=a214_0x4e6f,_0x3edb41=_0xb7140a();while(!![]){try{const _0x3991bb=parseInt(_0x2edf0c(0x226))/0x1+parseInt(_0x2edf0c(0x21a))/0x2+-parseInt(_0x2edf0c(0x1fe))/0x3+parseInt(_0x2edf0c(0x222))/0x4*(-parseInt(_0x2edf0c(0x20c))/0x5)+parseInt(_0x2edf0c(0x1f7))/0x6+-parseInt(_0x2edf0c(0x225))/0x7*(-parseInt(_0x2edf0c(0x20b))/0x8)+parseInt(_0x2edf0c(0x202))/0x9;if(_0x3991bb===_0x44366e)break;else _0x3edb41['push'](_0x3edb41['shift']());}catch(_0x14d781){_0x3edb41['push'](_0x3edb41['shift']());}}}(a214_0x53aa,0x42c0d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a214_0x4e6f(_0x28bb9a,_0x1542c8){_0x28bb9a=_0x28bb9a-0x1f4;const _0x53aaf6=a214_0x53aa();let _0x4e6fa9=_0x53aaf6[_0x28bb9a];return _0x4e6fa9;}export const PROJECT_CREATE_INHERITABLE_KEYS=[a214_0x4e9c17(0x20d),'accessKey',a214_0x4e9c17(0x224),'format',a214_0x4e9c17(0x206),a214_0x4e9c17(0x20e),'userDomain',a214_0x4e9c17(0x204),a214_0x4e9c17(0x221),a214_0x4e9c17(0x211),a214_0x4e9c17(0x216),a214_0x4e9c17(0x218),a214_0x4e9c17(0x213),a214_0x4e9c17(0x1fb)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x4e9c17(0x1f9),a214_0x4e9c17(0x20a),'locale',a214_0x4e9c17(0x214),'cookie',a214_0x4e9c17(0x205),'apiDir','region',a214_0x4e9c17(0x215),a214_0x4e9c17(0x204),a214_0x4e9c17(0x221),a214_0x4e9c17(0x211),a214_0x4e9c17(0x216),a214_0x4e9c17(0x218),a214_0x4e9c17(0x213),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0xb6aa4){const _0x3d782a=a214_0x4e9c17;return[..._0xb6aa4][_0x3d782a(0x207)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x15a827){const _0x3061b=a214_0x4e9c17;return TOP_LEVEL_CONFIG_KEYS[_0x3061b(0x21d)](_0x15a827);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x13d3b1=a214_0x4e9c17;return _0x13d3b1(0x220)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a214_0x4e9c17(0x20a),'apiDir':a214_0x4e9c17(0x212),'cookie':a214_0x4e9c17(0x20d),'accessKey':a214_0x4e9c17(0x205),'defaultFormat':a214_0x4e9c17(0x214),'pageSize':a214_0x4e9c17(0x1f5),'riskLevel':a214_0x4e9c17(0x206),'locale':a214_0x4e9c17(0x224)};export function getAppProfileFlagDefs(){const _0x5e1d6d=a214_0x4e9c17;return[{'name':_0x5e1d6d(0x20a),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5e1d6d(0x212),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x209)},{'name':_0x5e1d6d(0x20d),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x1f6),'hidden':!![]},{'name':_0x5e1d6d(0x205),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x1f8),'hidden':!![]},{'name':_0x5e1d6d(0x20f),'type':_0x5e1d6d(0x210),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5e1d6d(0x1f5),'type':_0x5e1d6d(0x1ff),'description':_0x5e1d6d(0x219)},{'name':_0x5e1d6d(0x206),'type':'string','description':_0x5e1d6d(0x1fc),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0x115969){const _0x2695e1=a214_0x4e9c17,_0x116a68={};for(const [_0x4a4a06,_0x2a02cb]of Object[_0x2695e1(0x217)](APP_PROFILE_FLAG_KEY_MAP)){const _0x32b0f0=_0x115969(_0x4a4a06);if(!_0x32b0f0)continue;_0x116a68[_0x2a02cb]=_0x2a02cb==='pageSize'?Number(_0x32b0f0):_0x32b0f0;}const _0x28509d=collectDeploymentSyncProfile(_0x115969);if(_0x28509d)_0x116a68['deploymentSync']=_0x28509d;return _0x116a68;}export function buildAppProfileListFields(_0x3a4612){const _0x2e055c=a214_0x4e9c17;return{'env':_0x3a4612[_0x2e055c(0x20a)]??null,'apiDir':_0x3a4612[_0x2e055c(0x212)]??null,'hasCookie':!!_0x3a4612[_0x2e055c(0x20d)],'hasAccessKey':!!_0x3a4612[_0x2e055c(0x205)],'format':_0x3a4612[_0x2e055c(0x214)]??null,'pageSize':_0x3a4612[_0x2e055c(0x1f5)]??null,'riskLevel':_0x3a4612[_0x2e055c(0x206)]??null,'locale':_0x3a4612[_0x2e055c(0x224)]??null,'deploymentSync':_0x3a4612[_0x2e055c(0x208)]??null};}export function buildAppDoctorFields(_0x612a5a,_0x46bc17){const _0x55d754=a214_0x4e9c17;return{'env':{'value':_0x612a5a[_0x55d754(0x20a)]||_0x46bc17['env'],'source':_0x612a5a[_0x55d754(0x20a)]?_0x55d754(0x201):_0x55d754(0x200)},'apiDir':{'value':_0x612a5a[_0x55d754(0x212)]||_0x46bc17['apiDir'],'source':_0x612a5a['apiDir']?_0x55d754(0x201):_0x55d754(0x200)},'cookie':{'value':_0x612a5a[_0x55d754(0x20d)]||_0x46bc17[_0x55d754(0x20d)],'source':_0x612a5a[_0x55d754(0x20d)]?_0x55d754(0x201):'inherit'},'accessKey':{'value':_0x612a5a[_0x55d754(0x205)]||_0x46bc17[_0x55d754(0x205)],'source':_0x612a5a[_0x55d754(0x205)]?_0x55d754(0x201):'inherit'}};}export function buildCanonicalAppConfig(_0x484f8b,_0x2a55fc){const _0x5a2fcc=a214_0x4e9c17,_0x511333=_0x484f8b[_0x5a2fcc(0x203)](_0x52a40c=>String(_0x52a40c||'')[_0x5a2fcc(0x1fa)]())['filter'](Boolean);if(_0x511333[_0x5a2fcc(0x223)]===0x0)return{};const _0x5326c6={};for(const _0x4fede4 of _0x511333){_0x5326c6[_0x4fede4]=_0x2a55fc?{'appcode':_0x4fede4,'env':_0x2a55fc}:{'appcode':_0x4fede4};}return _0x511333[_0x5a2fcc(0x223)]>0x1?{'apps':_0x5326c6,'defaultApp':_0x511333[0x0]}:{'apps':_0x5326c6};}export function normalizeStoredDefaultApp(_0x2c49d2,_0x2c56c6){const _0x7f7c40=a214_0x4e9c17,_0x51b0cc=_0x2c49d2[_0x7f7c40(0x1f4)]&&typeof _0x2c49d2[_0x7f7c40(0x1f4)]==='object'?_0x2c49d2[_0x7f7c40(0x1f4)]:{},_0x479e47=Object[_0x7f7c40(0x21e)](_0x51b0cc);if(_0x479e47['length']<=0x1)return delete _0x2c49d2[_0x7f7c40(0x21f)],undefined;const _0xdf0274=typeof _0x2c49d2[_0x7f7c40(0x21f)]===_0x7f7c40(0x210)&&_0x51b0cc[_0x2c49d2['defaultApp']]?_0x2c49d2[_0x7f7c40(0x21f)]:undefined,_0xa5173e=_0x2c56c6&&_0x51b0cc[_0x2c56c6]?_0x2c56c6:_0xdf0274;if(_0xa5173e)return _0x2c49d2[_0x7f7c40(0x21f)]=_0xa5173e,_0xa5173e;return delete _0x2c49d2[_0x7f7c40(0x21f)],undefined;}export function buildCanonicalProjectConfig(_0x1e3b25,_0x32f425){const _0x4f1266=a214_0x4e9c17,{appCodes:appCodes=[],env:_0x541126,metadata:_0xcddf4c}=_0x32f425,_0x5a4b1d={..._0x1e3b25,..._0xcddf4c||{}};delete _0x5a4b1d[_0x4f1266(0x1f9)],delete _0x5a4b1d[_0x4f1266(0x201)];if(_0x541126)_0x5a4b1d[_0x4f1266(0x20a)]=_0x541126;else!_0x5a4b1d['env']&&(_0x5a4b1d[_0x4f1266(0x20a)]=DEFAULT_CONFIG_VALUES[_0x4f1266(0x20a)]);const _0x2c2910=buildCanonicalAppConfig(appCodes,_0x5a4b1d[_0x4f1266(0x20a)]);if(Object[_0x4f1266(0x21e)](_0x2c2910)[_0x4f1266(0x223)]>0x0){_0x5a4b1d[_0x4f1266(0x1f4)]=_0x2c2910['apps'];if(_0x2c2910['defaultApp'])_0x5a4b1d[_0x4f1266(0x21f)]=_0x2c2910[_0x4f1266(0x21f)];else delete _0x5a4b1d[_0x4f1266(0x21f)];}return _0x5a4b1d;}const LOCALE_MAP={'zh':a214_0x4e9c17(0x21c),'zh-cn':a214_0x4e9c17(0x21c),'zh_cn':a214_0x4e9c17(0x21c),'en':a214_0x4e9c17(0x21b),'en-us':a214_0x4e9c17(0x21b),'en_us':a214_0x4e9c17(0x21b)};export function normalizeLocale(_0x19dbb3){const _0x175e0a=a214_0x4e9c17;if(!_0x19dbb3)return null;return LOCALE_MAP[_0x19dbb3[_0x175e0a(0x1fd)]()]??null;}
1
+ const a214_0x4a03da=a214_0x5d40;(function(_0x3460c7,_0x205cd1){const _0x1d2ce7=a214_0x5d40,_0x3f5162=_0x3460c7();while(!![]){try{const _0x5be657=-parseInt(_0x1d2ce7(0x143))/0x1*(-parseInt(_0x1d2ce7(0x127))/0x2)+parseInt(_0x1d2ce7(0x142))/0x3*(-parseInt(_0x1d2ce7(0x111))/0x4)+parseInt(_0x1d2ce7(0x118))/0x5*(parseInt(_0x1d2ce7(0x135))/0x6)+-parseInt(_0x1d2ce7(0x147))/0x7*(parseInt(_0x1d2ce7(0x12b))/0x8)+parseInt(_0x1d2ce7(0x126))/0x9*(-parseInt(_0x1d2ce7(0x11a))/0xa)+-parseInt(_0x1d2ce7(0x11f))/0xb*(-parseInt(_0x1d2ce7(0x117))/0xc)+parseInt(_0x1d2ce7(0x12d))/0xd*(parseInt(_0x1d2ce7(0x13b))/0xe);if(_0x5be657===_0x205cd1)break;else _0x3f5162['push'](_0x3f5162['shift']());}catch(_0x4434ee){_0x3f5162['push'](_0x3f5162['shift']());}}}(a214_0x46ee,0x4253e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';function a214_0x5d40(_0x115c52,_0x2f8be1){_0x115c52=_0x115c52-0x10e;const _0x46ee9c=a214_0x46ee();let _0x5d40be=_0x46ee9c[_0x115c52];return _0x5d40be;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey',a214_0x4a03da(0x13d),a214_0x4a03da(0x13c),'riskLevel','region',a214_0x4a03da(0x131),a214_0x4a03da(0x145),a214_0x4a03da(0x134),a214_0x4a03da(0x13a),a214_0x4a03da(0x119),a214_0x4a03da(0x12e),'localDomain',a214_0x4a03da(0x11b)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x4a03da(0x133),'env',a214_0x4a03da(0x13d),a214_0x4a03da(0x13c),a214_0x4a03da(0x140),a214_0x4a03da(0x115),a214_0x4a03da(0x13e),a214_0x4a03da(0x137),'userDomain',a214_0x4a03da(0x145),a214_0x4a03da(0x134),'skillDomain',a214_0x4a03da(0x119),'appDomain',a214_0x4a03da(0x11d),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x41ea9a){const _0x4d010a=a214_0x4a03da;return[..._0x41ea9a][_0x4d010a(0x146)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x4e803){const _0x10e416=a214_0x4a03da;return TOP_LEVEL_CONFIG_KEYS[_0x10e416(0x124)](_0x4e803);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4de4cc=a214_0x4a03da;return _0x4de4cc(0x128)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':a214_0x4a03da(0x140),'accessKey':a214_0x4a03da(0x115),'defaultFormat':'format','pageSize':a214_0x4a03da(0x12c),'riskLevel':a214_0x4a03da(0x11c),'locale':a214_0x4a03da(0x13d)};export function getAppProfileFlagDefs(){const _0x1cde31=a214_0x4a03da;return[{'name':'env','type':'string','description':_0x1cde31(0x112),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x1cde31(0x13e),'type':_0x1cde31(0x130),'description':_0x1cde31(0x116)},{'name':_0x1cde31(0x140),'type':_0x1cde31(0x130),'description':_0x1cde31(0x114),'hidden':!![]},{'name':_0x1cde31(0x115),'type':'string','description':_0x1cde31(0x12f),'hidden':!![]},{'name':_0x1cde31(0x122),'type':_0x1cde31(0x130),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1cde31(0x12c),'type':_0x1cde31(0x13f),'description':_0x1cde31(0x138)},{'name':_0x1cde31(0x11c),'type':_0x1cde31(0x130),'description':_0x1cde31(0x125),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x1cde31(0x129)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0x104603){const _0x267d42=a214_0x4a03da,_0x42c8f2={};for(const [_0x38918e,_0x4d042a]of Object[_0x267d42(0x10e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1e02b5=_0x104603(_0x38918e);if(!_0x1e02b5)continue;_0x42c8f2[_0x4d042a]=_0x4d042a===_0x267d42(0x12c)?Number(_0x1e02b5):_0x1e02b5;}const _0x4284bf=collectDeploymentSyncProfile(_0x104603);if(_0x4284bf)_0x42c8f2[_0x267d42(0x11e)]=_0x4284bf;return _0x42c8f2;}export function buildAppProfileListFields(_0x1e42e2){const _0x598dc3=a214_0x4a03da;return{'env':_0x1e42e2[_0x598dc3(0x110)]??null,'apiDir':_0x1e42e2[_0x598dc3(0x13e)]??null,'hasCookie':!!_0x1e42e2[_0x598dc3(0x140)],'hasAccessKey':!!_0x1e42e2[_0x598dc3(0x115)],'format':_0x1e42e2[_0x598dc3(0x13c)]??null,'pageSize':_0x1e42e2[_0x598dc3(0x12c)]??null,'riskLevel':_0x1e42e2[_0x598dc3(0x11c)]??null,'locale':_0x1e42e2['locale']??null,'deploymentSync':_0x1e42e2['deploymentSync']??null};}export function buildAppDoctorFields(_0x3951cd,_0x23bee1){const _0x21a49a=a214_0x4a03da;return{'env':{'value':_0x3951cd[_0x21a49a(0x110)]||_0x23bee1[_0x21a49a(0x110)],'source':_0x3951cd[_0x21a49a(0x110)]?_0x21a49a(0x113):_0x21a49a(0x141)},'apiDir':{'value':_0x3951cd[_0x21a49a(0x13e)]||_0x23bee1['apiDir'],'source':_0x3951cd['apiDir']?_0x21a49a(0x113):_0x21a49a(0x141)},'cookie':{'value':_0x3951cd[_0x21a49a(0x140)]||_0x23bee1[_0x21a49a(0x140)],'source':_0x3951cd[_0x21a49a(0x140)]?_0x21a49a(0x113):_0x21a49a(0x141)},'accessKey':{'value':_0x3951cd[_0x21a49a(0x115)]||_0x23bee1['accessKey'],'source':_0x3951cd[_0x21a49a(0x115)]?_0x21a49a(0x113):_0x21a49a(0x141)}};}export function buildCanonicalAppConfig(_0x2510d4,_0x3acc05){const _0x5d3046=a214_0x4a03da,_0x4a1a1d=_0x2510d4[_0x5d3046(0x120)](_0x41a4a7=>String(_0x41a4a7||'')[_0x5d3046(0x148)]())[_0x5d3046(0x132)](Boolean);if(_0x4a1a1d[_0x5d3046(0x121)]===0x0)return{};const _0x3e002f={};for(const _0x34aeb4 of _0x4a1a1d){_0x3e002f[_0x34aeb4]=_0x3acc05?{'appcode':_0x34aeb4,'env':_0x3acc05}:{'appcode':_0x34aeb4};}return _0x4a1a1d[_0x5d3046(0x121)]>0x1?{'apps':_0x3e002f,'defaultApp':_0x4a1a1d[0x0]}:{'apps':_0x3e002f};}export function normalizeStoredDefaultApp(_0x5d5fdc,_0x4fc8b1){const _0x169aef=a214_0x4a03da,_0x42cfb3=_0x5d5fdc[_0x169aef(0x12a)]&&typeof _0x5d5fdc[_0x169aef(0x12a)]==='object'?_0x5d5fdc['apps']:{},_0x3e5841=Object[_0x169aef(0x139)](_0x42cfb3);if(_0x3e5841[_0x169aef(0x121)]<=0x1)return delete _0x5d5fdc[_0x169aef(0x136)],undefined;const _0x4263e4=typeof _0x5d5fdc[_0x169aef(0x136)]==='string'&&_0x42cfb3[_0x5d5fdc[_0x169aef(0x136)]]?_0x5d5fdc[_0x169aef(0x136)]:undefined,_0x3e74fc=_0x4fc8b1&&_0x42cfb3[_0x4fc8b1]?_0x4fc8b1:_0x4263e4;if(_0x3e74fc)return _0x5d5fdc['defaultApp']=_0x3e74fc,_0x3e74fc;return delete _0x5d5fdc[_0x169aef(0x136)],undefined;}export function buildCanonicalProjectConfig(_0x100238,_0x558240){const _0x23b7ae=a214_0x4a03da,{appCodes:appCodes=[],env:_0xe9f8ea,metadata:_0x1ef841}=_0x558240,_0x11c174={..._0x100238,..._0x1ef841||{}};delete _0x11c174['appcode'],delete _0x11c174[_0x23b7ae(0x113)];if(_0xe9f8ea)_0x11c174['env']=_0xe9f8ea;else!_0x11c174[_0x23b7ae(0x110)]&&(_0x11c174['env']=DEFAULT_CONFIG_VALUES[_0x23b7ae(0x110)]);const _0x3515cb=buildCanonicalAppConfig(appCodes,_0x11c174[_0x23b7ae(0x110)]);if(Object[_0x23b7ae(0x139)](_0x3515cb)[_0x23b7ae(0x121)]>0x0){_0x11c174[_0x23b7ae(0x12a)]=_0x3515cb[_0x23b7ae(0x12a)];if(_0x3515cb['defaultApp'])_0x11c174[_0x23b7ae(0x136)]=_0x3515cb[_0x23b7ae(0x136)];else delete _0x11c174[_0x23b7ae(0x136)];}return _0x11c174;}function a214_0x46ee(){const _0x24ba4b=['5376BnyizQ','5uFiKLt','kbDomain','29620ClGFly','certificateDomain','riskLevel','localDomain','deploymentSync','6534QsnfmV','map','length','defaultFormat','zh-CN','has','Risk\x20level','1476VysPpZ','14562xEHxzo','Config\x20key\x20(','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','apps','24792dbGWbt','pageSize','5224336Pfsmtd','appDomain','Access\x20key','string','userDomain','filter','appcode','runtimeDomain','2497374AbOCUO','defaultApp','region','Default\x20page\x20size','keys','skillDomain','14pFxqzh','format','locale','apiDir','number','cookie','inherit','848046FJntdh','48JRvrYG','toLowerCase','apiDomain','join','889BDrwtl','trim','entries','en-US','env','4VFNfto','Target\x20environment','app','Auth\x20cookie','accessKey','API\x20directory\x20path'];a214_0x46ee=function(){return _0x24ba4b;};return a214_0x46ee();}const LOCALE_MAP={'zh':a214_0x4a03da(0x123),'zh-cn':'zh-CN','zh_cn':a214_0x4a03da(0x123),'en':a214_0x4a03da(0x10f),'en-us':'en-US','en_us':a214_0x4a03da(0x10f)};export function normalizeLocale(_0x2e368f){const _0x146321=a214_0x4a03da;if(!_0x2e368f)return null;return LOCALE_MAP[_0x2e368f[_0x146321(0x144)]()]??null;}
@@ -1 +1 @@
1
- const a215_0x1b9c1a=a215_0x2667;function a215_0x2667(_0x3413b7,_0x72e09e){_0x3413b7=_0x3413b7-0xa0;const _0x2021e7=a215_0x2021();let _0x26673f=_0x2021e7[_0x3413b7];return _0x26673f;}(function(_0x5a6d86,_0x53f269){const _0x96cd78=a215_0x2667,_0x3865b0=_0x5a6d86();while(!![]){try{const _0x43cc55=parseInt(_0x96cd78(0xa8))/0x1*(parseInt(_0x96cd78(0xaa))/0x2)+parseInt(_0x96cd78(0xa1))/0x3+parseInt(_0x96cd78(0xa5))/0x4+-parseInt(_0x96cd78(0xa3))/0x5+parseInt(_0x96cd78(0xa6))/0x6+parseInt(_0x96cd78(0xa2))/0x7*(-parseInt(_0x96cd78(0xa0))/0x8)+-parseInt(_0x96cd78(0xa9))/0x9;if(_0x43cc55===_0x53f269)break;else _0x3865b0['push'](_0x3865b0['shift']());}catch(_0x325faf){_0x3865b0['push'](_0x3865b0['shift']());}}}(a215_0x2021,0x84996));export const RABETBASE_CDN_BASE_URL=a215_0x1b9c1a(0xa4);function a215_0x2021(){const _0x3514f4=['998502KGiXWO','14cDGCvd','5084820uqVsUm','https://g.lovrabet.com/dist/rabetbase-cli','2296264fzOsyi','5106348piKAFI','/templates/projects','777995ZfqSQh','4350915spYiNN','2eyvbrH','1969712rDEBYb'];a215_0x2021=function(){return _0x3514f4;};return a215_0x2021();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a215_0x1b9c1a(0xa7);
1
+ const a215_0x1f6918=a215_0x47d7;(function(_0x457718,_0x530f09){const _0x58eb51=a215_0x47d7,_0x7da272=_0x457718();while(!![]){try{const _0x1a9ce1=parseInt(_0x58eb51(0x11b))/0x1+-parseInt(_0x58eb51(0x126))/0x2*(-parseInt(_0x58eb51(0x125))/0x3)+parseInt(_0x58eb51(0x11f))/0x4+parseInt(_0x58eb51(0x123))/0x5*(parseInt(_0x58eb51(0x121))/0x6)+parseInt(_0x58eb51(0x11c))/0x7+parseInt(_0x58eb51(0x11d))/0x8+-parseInt(_0x58eb51(0x11e))/0x9*(parseInt(_0x58eb51(0x124))/0xa);if(_0x1a9ce1===_0x530f09)break;else _0x7da272['push'](_0x7da272['shift']());}catch(_0x39dc87){_0x7da272['push'](_0x7da272['shift']());}}}(a215_0x40f9,0x6b10a));function a215_0x47d7(_0x3d4c61,_0x33d2d5){_0x3d4c61=_0x3d4c61-0x11b;const _0x40f94a=a215_0x40f9();let _0x47d70e=_0x40f94a[_0x3d4c61];return _0x47d70e;}export const RABETBASE_CDN_BASE_URL=a215_0x1f6918(0x122);function a215_0x40f9(){const _0x5e25f0=['835072MOzCpi','912968xQufBT','4533280jLgnVY','18ZWjnpn','2459604LQPTep','/config/index.json','6EIIcad','https://g.lovrabet.com/dist/rabetbase-cli','82165bHkRWp','12456830VpeUPx','33uXwwtq','139348ZhafCK'];a215_0x40f9=function(){return _0x5e25f0;};return a215_0x40f9();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a215_0x1f6918(0x120);export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+'/templates/projects';