@lovrabet/rabetbase-cli 2.5.1-beta.3 → 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 (311) 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.d.ts +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-restore.js +1 -1
  67. package/lib/commands/dataset/field-update.js +1 -1
  68. package/lib/commands/dataset/generate.js +1 -1
  69. package/lib/commands/dataset/index.js +1 -1
  70. package/lib/commands/dataset/list.js +1 -1
  71. package/lib/commands/dataset/operations.js +1 -1
  72. package/lib/commands/dataset/relation-audit.js +1 -1
  73. package/lib/commands/dataset/relation-create.js +1 -1
  74. package/lib/commands/dataset/relation-delete.js +1 -1
  75. package/lib/commands/dataset/relation-shared.js +1 -1
  76. package/lib/commands/dataset/relation-update.js +1 -1
  77. package/lib/commands/dataset/relations.js +1 -1
  78. package/lib/commands/dataset/rename.js +1 -1
  79. package/lib/commands/dataset/restore.js +1 -1
  80. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  81. package/lib/commands/db/analysis-batching.js +1 -1
  82. package/lib/commands/db/analyze-batch-plan.js +1 -1
  83. package/lib/commands/db/analyze-cancel.js +1 -1
  84. package/lib/commands/db/analyze-start.js +1 -1
  85. package/lib/commands/db/analyze-status.js +1 -1
  86. package/lib/commands/db/create.js +1 -1
  87. package/lib/commands/db/delete.js +1 -1
  88. package/lib/commands/db/detail.js +1 -1
  89. package/lib/commands/db/diff-refresh-start.js +1 -1
  90. package/lib/commands/db/diff-refresh-status.js +1 -1
  91. package/lib/commands/db/diff.js +1 -1
  92. package/lib/commands/db/index.js +1 -1
  93. package/lib/commands/db/list.js +1 -1
  94. package/lib/commands/db/shared.js +1 -1
  95. package/lib/commands/db/table-diff-shared.js +1 -1
  96. package/lib/commands/db/tables.js +1 -1
  97. package/lib/commands/db/test.js +1 -1
  98. package/lib/commands/db/update.js +1 -1
  99. package/lib/commands/deployment/auto-sync.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync.js +1 -1
  102. package/lib/commands/doctor.js +1 -1
  103. package/lib/commands/file/index.js +1 -1
  104. package/lib/commands/issue/index.js +1 -1
  105. package/lib/commands/issue/nudge.js +1 -1
  106. package/lib/commands/issue/report.js +1 -1
  107. package/lib/commands/issue/shared.js +1 -1
  108. package/lib/commands/kb/create.js +1 -1
  109. package/lib/commands/kb/delete.js +1 -1
  110. package/lib/commands/kb/detail.js +1 -1
  111. package/lib/commands/kb/index.js +1 -1
  112. package/lib/commands/kb/list.js +1 -1
  113. package/lib/commands/kb/search.js +1 -1
  114. package/lib/commands/kb/shared.js +1 -1
  115. package/lib/commands/kb/update.js +1 -1
  116. package/lib/commands/logs/index.js +1 -1
  117. package/lib/commands/menu/asset-update.js +1 -1
  118. package/lib/commands/menu/delete.js +1 -1
  119. package/lib/commands/menu/external-link-create.js +1 -1
  120. package/lib/commands/menu/external-link-update.js +1 -1
  121. package/lib/commands/menu/group-create.js +1 -1
  122. package/lib/commands/menu/group-update.js +1 -1
  123. package/lib/commands/menu/index.js +1 -1
  124. package/lib/commands/menu/list.js +1 -1
  125. package/lib/commands/menu/move.js +1 -1
  126. package/lib/commands/menu/regroup-start.js +1 -1
  127. package/lib/commands/menu/rename.js +1 -1
  128. package/lib/commands/menu/shared/compare-table.js +1 -1
  129. package/lib/commands/menu/shared/delete-plan.js +1 -1
  130. package/lib/commands/menu/shared/facts.js +1 -1
  131. package/lib/commands/menu/shared/index.js +1 -1
  132. package/lib/commands/menu/shared/inquirer.js +1 -1
  133. package/lib/commands/menu/shared/local-pages.js +1 -1
  134. package/lib/commands/menu/shared/logic.js +1 -1
  135. package/lib/commands/menu/shared/mutations.js +1 -1
  136. package/lib/commands/menu/shared/service.js +1 -1
  137. package/lib/commands/menu/shared/sync-core.js +1 -1
  138. package/lib/commands/menu/shared/update-core.js +1 -1
  139. package/lib/commands/menu/shared/valid-url.js +1 -1
  140. package/lib/commands/menu/sync.js +1 -1
  141. package/lib/commands/menu/visibility-update.js +1 -1
  142. package/lib/commands/notification/config-create.js +1 -1
  143. package/lib/commands/notification/config-delete.js +1 -1
  144. package/lib/commands/notification/config-list.js +1 -1
  145. package/lib/commands/notification/config-update.js +1 -1
  146. package/lib/commands/notification/index.js +1 -1
  147. package/lib/commands/notification/shared.js +1 -1
  148. package/lib/commands/ocr/index.js +1 -1
  149. package/lib/commands/page/create.js +1 -1
  150. package/lib/commands/page/custom/detail.js +1 -1
  151. package/lib/commands/page/custom/list.js +1 -1
  152. package/lib/commands/page/custom/publish.js +1 -1
  153. package/lib/commands/page/custom/shared.js +1 -1
  154. package/lib/commands/page/custom/syntax.js +1 -1
  155. package/lib/commands/page/custom/template.js +1 -1
  156. package/lib/commands/page/custom/update.js +1 -1
  157. package/lib/commands/page/data-list-status.js +1 -1
  158. package/lib/commands/page/generate-start.js +1 -1
  159. package/lib/commands/page/generate-status.js +1 -1
  160. package/lib/commands/page/index.js +1 -1
  161. package/lib/commands/page/pull.js +1 -1
  162. package/lib/commands/page/push.js +1 -1
  163. package/lib/commands/page/relation-audit.js +1 -1
  164. package/lib/commands/page/restore.js +1 -1
  165. package/lib/commands/page/shared.js +1 -1
  166. package/lib/commands/page/sync.js +1 -1
  167. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  168. package/lib/commands/project/create/format-elapsed.js +1 -1
  169. package/lib/commands/project/create/main.js +1 -1
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  175. package/lib/commands/project/create/use-format-code.js +1 -1
  176. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/run/index.js +1 -1
  190. package/lib/commands/schema.js +1 -1
  191. package/lib/commands/sql/create.js +1 -1
  192. package/lib/commands/sql/delete.js +1 -1
  193. package/lib/commands/sql/detail.js +1 -1
  194. package/lib/commands/sql/exec.js +1 -1
  195. package/lib/commands/sql/index.js +1 -1
  196. package/lib/commands/sql/list.js +1 -1
  197. package/lib/commands/sql/pull.js +1 -1
  198. package/lib/commands/sql/push.js +1 -1
  199. package/lib/commands/sql/shared.js +1 -1
  200. package/lib/commands/sql/status.js +1 -1
  201. package/lib/commands/sql/validate.js +1 -1
  202. package/lib/commands/task/index.js +1 -1
  203. package/lib/commands/task/status.js +1 -1
  204. package/lib/commands/tenant/index.js +1 -1
  205. package/lib/commands/tenant/members-list.js +1 -1
  206. package/lib/commands/tenant/shared.js +1 -1
  207. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  208. package/lib/commands/user-account/index.js +1 -1
  209. package/lib/commands/workspace/add.js +1 -1
  210. package/lib/commands/workspace/index.js +1 -1
  211. package/lib/commands/workspace/remove.js +1 -1
  212. package/lib/config/deployment-sync.js +1 -1
  213. package/lib/config/domain-config.d.ts +1 -1
  214. package/lib/config/domain-config.js +1 -1
  215. package/lib/config/project-routing.js +1 -1
  216. package/lib/config/schema.d.ts +1 -1
  217. package/lib/config/schema.js +1 -1
  218. package/lib/constant/cdn.js +1 -1
  219. package/lib/constant/cli.js +1 -1
  220. package/lib/constant/defaults.js +1 -1
  221. package/lib/constant/domain.d.ts +0 -2
  222. package/lib/constant/domain.js +1 -1
  223. package/lib/constant/env.js +1 -1
  224. package/lib/constant/output.js +1 -1
  225. package/lib/constant/paths.js +1 -1
  226. package/lib/constant/region.js +1 -1
  227. package/lib/constant/risk.js +1 -1
  228. package/lib/constant/routing-profile.js +1 -1
  229. package/lib/context/app-resolver.js +1 -1
  230. package/lib/context/auth-resolver.js +1 -1
  231. package/lib/context/config-loader.js +1 -1
  232. package/lib/context.js +1 -1
  233. package/lib/core/alias-resolver.js +1 -1
  234. package/lib/core/api-client.js +1 -1
  235. package/lib/core/bff/config.js +1 -1
  236. package/lib/core/bff/file-system.js +1 -1
  237. package/lib/core/bff/hash.js +1 -1
  238. package/lib/core/bff/lock.js +1 -1
  239. package/lib/core/bff/utils.js +1 -1
  240. package/lib/core/db-resolver.js +1 -1
  241. package/lib/core/kb-search-client.js +1 -1
  242. package/lib/core/page/file-system.js +1 -1
  243. package/lib/core/page/hash.js +1 -1
  244. package/lib/core/page/lock.js +1 -1
  245. package/lib/core/sql-index-auditor.js +1 -1
  246. package/lib/core/sql-sync/config.js +1 -1
  247. package/lib/core/sql-sync/file-system.js +1 -1
  248. package/lib/core/sql-sync/hash.js +1 -1
  249. package/lib/core/sql-sync/lock.js +1 -1
  250. package/lib/core/sql-sync/utils.js +1 -1
  251. package/lib/core/sql-validator.js +1 -1
  252. package/lib/errors.js +1 -1
  253. package/lib/framework/build-all-flags.js +1 -1
  254. package/lib/framework/error-output.js +1 -1
  255. package/lib/framework/explicit-yes.js +1 -1
  256. package/lib/framework/flags.js +1 -1
  257. package/lib/framework/help.js +1 -1
  258. package/lib/framework/index.js +1 -1
  259. package/lib/framework/output.js +1 -1
  260. package/lib/framework/response.js +1 -1
  261. package/lib/framework/runner-alias.js +1 -1
  262. package/lib/framework/runner.js +1 -1
  263. package/lib/framework/schema-export.js +1 -1
  264. package/lib/framework/types.js +1 -1
  265. package/lib/generated/build-info.d.ts +4 -4
  266. package/lib/generated/build-info.js +1 -1
  267. package/lib/help.js +1 -1
  268. package/lib/postinstall.js +1 -1
  269. package/lib/runtime/confirmation.js +1 -1
  270. package/lib/runtime/event.js +1 -1
  271. package/lib/runtime/index.js +1 -1
  272. package/lib/runtime/queue.js +1 -1
  273. package/lib/runtime/resolve.js +1 -1
  274. package/lib/skills/builtin-skill.js +1 -1
  275. package/lib/skills/main.js +1 -1
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/entity-with-id.js +1 -1
  292. package/lib/utils/file-utils.js +1 -1
  293. package/lib/utils/guides-cdn.js +1 -1
  294. package/lib/utils/http-client.js +1 -1
  295. package/lib/utils/is-non-interactive.js +1 -1
  296. package/lib/utils/logger.js +1 -1
  297. package/lib/utils/params.js +1 -1
  298. package/lib/utils/platform.js +1 -1
  299. package/lib/utils/sleep.js +1 -1
  300. package/lib/utils/template-replacer.js +1 -1
  301. package/lib/utils/update-notice.js +1 -1
  302. package/lib/utils/version.js +1 -1
  303. package/lib/utils/with-active-cookie.js +1 -1
  304. package/lib/utils/write-cli-side-channel.js +1 -1
  305. package/package.json +1 -1
  306. package/skills/rabetbase/SKILL.md +1 -1
  307. package/skills/rabetbase/references/rabetbase-config.md +2 -5
  308. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  309. package/skills/rabetbase/references/rabetbase-init.md +0 -2
  310. package/skills/rabetbase/references/rabetbase-kb.md +3 -2
  311. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a199_0x1fafe3=a199_0x1067;function a199_0x1067(_0x13042b,_0x1dfc11){_0x13042b=_0x13042b-0x7e;const _0x22f94f=a199_0x22f9();let _0x1067c9=_0x22f94f[_0x13042b];return _0x1067c9;}(function(_0x58cd96,_0x544a7d){const _0x521a71=a199_0x1067,_0x53721a=_0x58cd96();while(!![]){try{const _0x5c2119=parseInt(_0x521a71(0x95))/0x1+parseInt(_0x521a71(0x94))/0x2*(-parseInt(_0x521a71(0x8e))/0x3)+-parseInt(_0x521a71(0xa3))/0x4*(-parseInt(_0x521a71(0x8a))/0x5)+-parseInt(_0x521a71(0x98))/0x6*(parseInt(_0x521a71(0xa2))/0x7)+-parseInt(_0x521a71(0x9d))/0x8*(parseInt(_0x521a71(0x81))/0x9)+-parseInt(_0x521a71(0x9f))/0xa*(-parseInt(_0x521a71(0x83))/0xb)+-parseInt(_0x521a71(0x93))/0xc*(-parseInt(_0x521a71(0x9b))/0xd);if(_0x5c2119===_0x544a7d)break;else _0x53721a['push'](_0x53721a['shift']());}catch(_0x57d09f){_0x53721a['push'](_0x53721a['shift']());}}}(a199_0x22f9,0x913a4));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(_0x532594){const _0x2d0722=a199_0x1067,_0x34bfad=[];let _0x4c2085=0x1;while(!![]){const _0x2b6df3=await listSqlQueries(_0x532594,{'currentPage':_0x4c2085,'pageSize':PAGE_SIZE}),_0x368519=_0x2b6df3[_0x2d0722(0x8b)]??[];_0x34bfad[_0x2d0722(0x82)](..._0x368519[_0x2d0722(0x9c)](_0x42b8eb=>_0x42b8eb[_0x2d0722(0x8f)]));if(_0x368519[_0x2d0722(0x91)]===0x0)break;const _0x113c41=_0x2b6df3[_0x2d0722(0x88)]?.[_0x2d0722(0x86)];if(_0x113c41!=null?_0x34bfad[_0x2d0722(0x91)]>=_0x113c41:_0x368519['length']<PAGE_SIZE)break;_0x4c2085++;}return _0x34bfad;}export const sqlStatus={'service':a199_0x1fafe3(0x87),'command':'status','description':a199_0x1fafe3(0x9e),'risk':a199_0x1fafe3(0x92),'flags':[{'name':'remote','type':a199_0x1fafe3(0x99),'description':a199_0x1fafe3(0x7e)}],async 'execute'(_0x408ed2){const _0x2c60e1=a199_0x1fafe3,_0x39995c=loadSqlProjectConfig(_0x408ed2[_0x2c60e1(0x89)]),_0x1af65f=await readSqlLockFile(_0x39995c['lockFilePath']),{appLock:_0x1d9898}=ensureSqlLockScope(_0x1af65f??createEmptySqlLock(),_0x39995c['appCode'],_0x39995c['sqlRoot'],'status'),_0x263e70=await scanLocalSqlQueries(_0x39995c),_0x1c522e=[],_0x5245ce=[],_0x57f9e4=[],_0x483d18=[],_0x18bc05=new Set(_0x263e70[_0x2c60e1(0x9c)](_0x4dd15f=>_0x4dd15f[_0x2c60e1(0x80)]));for(const _0x47498d of _0x263e70){const _0x41edd0=await computeSqlFileHash(_0x47498d[_0x2c60e1(0x7f)]),_0x5b4954=_0x1d9898[_0x2c60e1(0x97)][_0x47498d[_0x2c60e1(0x80)]],_0x7bf17b=!!_0x5b4954&&_0x5b4954[_0x2c60e1(0xa4)]!==_0x47498d[_0x2c60e1(0x96)],_0x18bbf7=!!_0x5b4954&&!!_0x47498d[_0x2c60e1(0xa1)]&&_0x5b4954[_0x2c60e1(0xa1)]!==_0x47498d[_0x2c60e1(0xa1)];if(!_0x5b4954)_0x1c522e[_0x2c60e1(0x82)](_0x47498d['lockKey']);else _0x5b4954['hash']!==_0x41edd0||_0x7bf17b||_0x18bbf7?_0x5245ce[_0x2c60e1(0x82)](_0x47498d[_0x2c60e1(0x80)]):_0x57f9e4[_0x2c60e1(0x82)](_0x47498d[_0x2c60e1(0x80)]);}for(const _0x3f94b7 of Object['keys'](_0x1d9898[_0x2c60e1(0x97)])){!_0x18bc05[_0x2c60e1(0xa0)](_0x3f94b7)&&_0x483d18['push'](_0x3f94b7);}const _0x180d9a=[];if(_0x408ed2[_0x2c60e1(0xa5)](_0x2c60e1(0x8c))){const _0xc9bae2=await fetchAllSqlCodes(_0x408ed2[_0x2c60e1(0x89)]);for(const _0x47985d of _0xc9bae2){!_0x18bc05[_0x2c60e1(0xa0)](_0x47985d)&&!_0x1d9898['sqls'][_0x47985d]&&_0x180d9a['push'](_0x47985d);}}const _0x4ffbb7=_0x1c522e[_0x2c60e1(0x91)]===0x0&&_0x5245ce[_0x2c60e1(0x91)]===0x0&&_0x483d18['length']===0x0&&_0x180d9a[_0x2c60e1(0x91)]===0x0;return{'ok':!![],'data':{'added':_0x1c522e,'modified':_0x5245ce,'missing':_0x483d18,'unchanged':_0x57f9e4,'remoteOnly':_0x180d9a},'message':_0x4ffbb7?_0x2c60e1(0x8d):_0x1c522e[_0x2c60e1(0x91)]+_0x2c60e1(0x85)+_0x5245ce[_0x2c60e1(0x91)]+'\x20modified,\x20'+_0x483d18[_0x2c60e1(0x91)]+_0x2c60e1(0x9a)+_0x57f9e4[_0x2c60e1(0x91)]+_0x2c60e1(0x84)+(_0x180d9a[_0x2c60e1(0x91)]>0x0?',\x20'+_0x180d9a[_0x2c60e1(0x91)]+_0x2c60e1(0x90):'')};}};function a199_0x22f9(){const _0x5f47a5=['sqlName','273CpeXno','84IXyojD','path','bool','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','filePath','lockKey','9CfMlAV','push','2860peDmGS','\x20unchanged','\x20added,\x20','totalCount','sql','paging','appCode','32305arKXfE','tableData','remote','All\x20SQL\x20queries\x20are\x20in\x20sync.','4359rpuoHy','sqlCode','\x20remote-only','length','read','12xihqNm','1466JwKEdG','621717MyxkGN','relativePath','sqls','9474dWONpv','boolean','\x20missing,\x20','13353847UmFwsz','map','2578840DSiYyv','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','9970gsXmkZ','has'];a199_0x22f9=function(){return _0x5f47a5;};return a199_0x22f9();}
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
- const a200_0x10564e=a200_0x4788;(function(_0x261f35,_0x23f7f1){const _0xa73d4d=a200_0x4788,_0x3d0d88=_0x261f35();while(!![]){try{const _0x2107ce=-parseInt(_0xa73d4d(0x10c))/0x1+-parseInt(_0xa73d4d(0x118))/0x2+parseInt(_0xa73d4d(0x130))/0x3*(-parseInt(_0xa73d4d(0x14b))/0x4)+-parseInt(_0xa73d4d(0x11e))/0x5*(parseInt(_0xa73d4d(0x131))/0x6)+-parseInt(_0xa73d4d(0x128))/0x7*(-parseInt(_0xa73d4d(0x13f))/0x8)+-parseInt(_0xa73d4d(0x10b))/0x9+-parseInt(_0xa73d4d(0x10d))/0xa*(-parseInt(_0xa73d4d(0x11f))/0xb);if(_0x2107ce===_0x23f7f1)break;else _0x3d0d88['push'](_0x3d0d88['shift']());}catch(_0x2063de){_0x3d0d88['push'](_0x3d0d88['shift']());}}}(a200_0x2d8d,0x95d4f));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a200_0x2d8d(){const _0x14abe5=['schemaWarnings','map','validation','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','1628pxrLUw','schemas','type','unshift','4866264WrEUmh','132465pACTAo','40FeoGpn','sqlType','get','joinAudit','read','columns','dataset','toLowerCase','split','\x22\x20not\x20found\x20or\x20not\x20accessible','pkField','201634AmShxC','index_columns','isArray','appCode','reason','cwd','10IjKIHo','6807691UkDXoG','filter','Provide\x20--file\x20or\x20--sql','isSelectOnly','trim','columnNames','str','validate','sql','7mQeAvw','indexName','check-indexes','flatMap','index_type','find','indexes','tableName','2742qQCSmR','3167316MeWQHN','schema:','string','size','length','flagMissing','push','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','index_name','fields','Dataset\x20\x22','from','file','message','2719480LFIJWk','dbtableConfig','parameters','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Table\x20\x22','valid','bool','tables'];a200_0x2d8d=function(){return _0x14abe5;};return a200_0x2d8d();}function a200_0x4788(_0x4b5ab9,_0x1bed53){_0x4b5ab9=_0x4b5ab9-0x108;const _0x2d8d3a=a200_0x2d8d();let _0x47881d=_0x2d8d3a[_0x4b5ab9];return _0x47881d;}import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':'sql','command':a200_0x10564e(0x126),'description':a200_0x10564e(0x138),'risk':a200_0x10564e(0x111),'flags':[{'name':a200_0x10564e(0x13d),'type':a200_0x10564e(0x133),'description':a200_0x10564e(0x142)},{'name':a200_0x10564e(0x127),'type':a200_0x10564e(0x133),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':'schemas','type':a200_0x10564e(0x133),'description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a200_0x10564e(0x12a),'type':'boolean','description':a200_0x10564e(0x14a)}],async 'execute'(_0x5233b1){const _0xbb602c=a200_0x10564e,_0x3ef74a=_0x5233b1['str'](_0xbb602c(0x13d)),_0x3234e6=_0x5233b1[_0xbb602c(0x125)](_0xbb602c(0x127)),_0x211830=_0x5233b1['str'](_0xbb602c(0x108)),_0x495bd5=_0x5233b1[_0xbb602c(0x145)](_0xbb602c(0x12a));if(!_0x3ef74a&&!_0x3234e6)throw CliErrors[_0xbb602c(0x136)](_0xbb602c(0x13d),_0xbb602c(0x121));if(_0x495bd5&&!_0x211830)throw CliErrors[_0xbb602c(0x149)]('--check-indexes\x20requires\x20--schemas.');let _0x545a31;if(_0x3ef74a){const _0x1401ad=resolve(process[_0xbb602c(0x11d)](),_0x3ef74a);if(!existsSync(_0x1401ad))throw CliErrors[_0xbb602c(0x149)]('File\x20not\x20found:\x20'+_0x1401ad);_0x545a31=readFileSync(_0x1401ad,'utf-8');}else _0x545a31=_0x3234e6;const _0x5cf05c=validateSql(_0x545a31),_0x146b71={'valid':_0x5cf05c['valid'],'sqlType':_0x5cf05c['sqlType']['type'],'isSelectOnly':_0x5cf05c[_0xbb602c(0x10e)][_0xbb602c(0x122)],'isDangerous':_0x5cf05c[_0xbb602c(0x10e)]['isDangerous'],'tables':_0x5cf05c['tables'],'parameters':_0x5cf05c[_0xbb602c(0x141)],'message':_0x5cf05c['message']};_0x5cf05c[_0xbb602c(0x10e)][_0xbb602c(0x11c)]&&(_0x146b71[_0xbb602c(0x11c)]=_0x5cf05c['sqlType']['reason']);if(_0x211830&&_0x5cf05c['valid']){const _0x285c5f=_0x211830['split'](',')[_0xbb602c(0x148)](_0x16280d=>_0x16280d[_0xbb602c(0x123)]())['filter'](Boolean),_0x456876=[],_0x4d0580=[],_0x4cd3d9=filterDbTableBackedDatasets(await listDatasets(_0x5233b1[_0xbb602c(0x11b)])),_0x1b4194=new Map(_0x4cd3d9[_0xbb602c(0x148)](_0x123780=>[_0x123780[_0xbb602c(0x140)]?.[_0xbb602c(0x12f)]?.[_0xbb602c(0x114)](),_0x123780]));for(const _0x6fab4e of _0x5cf05c[_0xbb602c(0x146)]){const _0x1404f8=_0x1b4194[_0xbb602c(0x10f)](_0x6fab4e['toLowerCase']());!_0x1404f8&&_0x456876[_0xbb602c(0x137)](_0xbb602c(0x143)+_0x6fab4e+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x542199 of _0x285c5f){let _0x581a68;try{_0x581a68=await getDatasetDetail(_0x542199);}catch{_0x456876[_0xbb602c(0x137)](_0xbb602c(0x13b)+_0x542199+_0xbb602c(0x116));continue;}assertDatasetIsDbTableBacked(_0x581a68,'SQL\x20schema\x20validation');const _0x58479c=Array[_0xbb602c(0x11a)](_0x581a68[_0xbb602c(0x13a)])?_0x581a68[_0xbb602c(0x13a)]:[],_0x328b01=new Set(_0x58479c[_0xbb602c(0x148)](_0x1736b2=>_0x1736b2['name']?.[_0xbb602c(0x114)]())),_0x255e42=_0x581a68[_0xbb602c(0x140)]?.[_0xbb602c(0x12f)]||_0x581a68[_0xbb602c(0x12f)]||_0x542199;_0x146b71[_0xbb602c(0x132)+_0x255e42]={'code':_0x542199,'tableName':_0x255e42,'fieldCount':_0x328b01[_0xbb602c(0x134)],'fields':Array[_0xbb602c(0x13c)](_0x328b01)};if(_0x495bd5){const _0x23d5a0=normalizeDatasetIndexes(_0x581a68);_0x4d0580['push']({'tableName':_0x255e42,..._0x23d5a0});}}_0x456876[_0xbb602c(0x135)]>0x0&&(_0x146b71[_0xbb602c(0x147)]=_0x456876),_0x495bd5&&(_0x146b71[_0xbb602c(0x110)]=auditSqlJoinIndexes(_0x545a31,_0x4d0580));}return{'ok':_0x5cf05c[_0xbb602c(0x144)],'data':_0x146b71,'message':_0x5cf05c[_0xbb602c(0x13e)]};}};function normalizeDatasetIndexes(_0x2bf005){const _0x1ac5b7=a200_0x10564e,_0x4fece4=Array['isArray'](_0x2bf005?.['dataset']?.[_0x1ac5b7(0x12e)])?_0x2bf005[_0x1ac5b7(0x113)][_0x1ac5b7(0x12e)]:Array[_0x1ac5b7(0x11a)](_0x2bf005?.[_0x1ac5b7(0x12e)])?_0x2bf005[_0x1ac5b7(0x12e)]:[],_0x4a10ee=_0x4fece4[_0x1ac5b7(0x12b)](_0x37790d=>{const _0x5089ec=_0x1ac5b7,_0x2d4bef=Array[_0x5089ec(0x11a)](_0x37790d?.[_0x5089ec(0x119)])?_0x37790d[_0x5089ec(0x119)]:Array['isArray'](_0x37790d?.['columnNames'])?_0x37790d[_0x5089ec(0x124)]:Array[_0x5089ec(0x11a)](_0x37790d?.['columns'])?_0x37790d[_0x5089ec(0x112)]:[],_0x11910a=_0x2d4bef[_0x5089ec(0x120)](_0x106ff=>typeof _0x106ff===_0x5089ec(0x133))['map'](_0xbf1ae=>_0xbf1ae[_0x5089ec(0x123)]())[_0x5089ec(0x120)](Boolean);if(_0x11910a[_0x5089ec(0x135)]===0x0)return[];const _0x1d999c=[_0x37790d?.[_0x5089ec(0x129)],_0x37790d?.[_0x5089ec(0x139)],_0x37790d?.['name']]['find'](_0x3dc47a=>typeof _0x3dc47a===_0x5089ec(0x133)&&_0x3dc47a[_0x5089ec(0x123)]()),_0x327ef2=[_0x37790d?.[_0x5089ec(0x12c)],_0x37790d?.[_0x5089ec(0x109)]][_0x5089ec(0x12d)](_0x23804e=>typeof _0x23804e==='string'&&_0x23804e[_0x5089ec(0x123)]());return[{..._0x1d999c?{'name':_0x1d999c['trim']()}:{},..._0x327ef2?{'type':_0x327ef2[_0x5089ec(0x123)]()}:{},'columns':_0x11910a}];}),_0x99eb4c=[..._0x4a10ee],_0x44e1ab=typeof _0x2bf005?.[_0x1ac5b7(0x140)]?.[_0x1ac5b7(0x117)]===_0x1ac5b7(0x133)?_0x2bf005[_0x1ac5b7(0x140)][_0x1ac5b7(0x117)][_0x1ac5b7(0x115)](',')['map'](_0x445c20=>_0x445c20[_0x1ac5b7(0x123)]())[_0x1ac5b7(0x120)](Boolean):[];return _0x44e1ab['length']>0x0&&_0x99eb4c[_0x1ac5b7(0x10a)]({'type':'primary','columns':_0x44e1ab}),{'indexes':_0x99eb4c,'metadataAvailable':_0x4a10ee['length']>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(_0x105f5f,_0x3010c3){const _0x167e8d=a201_0x40f2,_0x449b9b=_0x105f5f();while(!![]){try{const _0x12b94b=parseInt(_0x167e8d(0x18f))/0x1*(-parseInt(_0x167e8d(0x188))/0x2)+parseInt(_0x167e8d(0x18c))/0x3*(parseInt(_0x167e8d(0x18b))/0x4)+parseInt(_0x167e8d(0x18a))/0x5+parseInt(_0x167e8d(0x191))/0x6+-parseInt(_0x167e8d(0x192))/0x7*(parseInt(_0x167e8d(0x190))/0x8)+parseInt(_0x167e8d(0x18e))/0x9+parseInt(_0x167e8d(0x189))/0xa*(-parseInt(_0x167e8d(0x18d))/0xb);if(_0x12b94b===_0x3010c3)break;else _0x449b9b['push'](_0x449b9b['shift']());}catch(_0x1723c3){_0x449b9b['push'](_0x449b9b['shift']());}}}(a201_0x1279,0xaa2f2));function a201_0x40f2(_0x799262,_0x5250c6){_0x799262=_0x799262-0x188;const _0x127930=a201_0x1279();let _0x40f2b1=_0x127930[_0x799262];return _0x40f2b1;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a201_0x1279(){const _0x2e7994=['1072SboUqV','45090YPQfKN','4857295dppjOt','4118388sMfwJf','3PgNyWN','3982rQBKyT','7506522NvKkDI','1757tTdUgL','40zKJYGD','7313610BGTvPs','1096151NbLhmV'];a201_0x1279=function(){return _0x2e7994;};return a201_0x1279();}
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
- function a202_0x9668(_0xc4588,_0x41475b){_0xc4588=_0xc4588-0x108;const _0x41e42a=a202_0x41e4();let _0x96682f=_0x41e42a[_0xc4588];return _0x96682f;}const a202_0x8cef89=a202_0x9668;(function(_0x516b8e,_0x34db07){const _0x17b7be=a202_0x9668,_0x3bcf3e=_0x516b8e();while(!![]){try{const _0xfb515d=parseInt(_0x17b7be(0x10e))/0x1+parseInt(_0x17b7be(0x111))/0x2+parseInt(_0x17b7be(0x10c))/0x3+-parseInt(_0x17b7be(0x118))/0x4+-parseInt(_0x17b7be(0x112))/0x5+-parseInt(_0x17b7be(0x110))/0x6+parseInt(_0x17b7be(0x115))/0x7;if(_0xfb515d===_0x34db07)break;else _0x3bcf3e['push'](_0x3bcf3e['shift']());}catch(_0x47ef2b){_0x3bcf3e['push'](_0x3bcf3e['shift']());}}}(a202_0x41e4,0x6c4e5));function a202_0x41e4(){const _0x4e5010=['1496016IFDkcc','1672740frrBPd','appCode','status','2845892cLdUzH','trim','isTerminal','2512672rLKMKe','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','string','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','task-id','cookie','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','2265990XgAElU','str','49906BwbBvR','taskId','3320778ilCQkx'];a202_0x41e4=function(){return _0x4e5010;};return a202_0x41e4();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':a202_0x8cef89(0x114),'description':a202_0x8cef89(0x10b),'risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a202_0x8cef89(0x109),'type':a202_0x8cef89(0x11a),'required':!![],'description':a202_0x8cef89(0x119)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x31ba14){const _0x47070d=a202_0x8cef89;if(!_0x31ba14['str'](_0x47070d(0x109))[_0x47070d(0x116)]())throw CliErrors['flagMissing'](_0x47070d(0x109));},async 'execute'(_0x1d7321){const _0x1881ed=a202_0x8cef89,_0x1b0d83=_0x1d7321[_0x1881ed(0x10d)](_0x1881ed(0x109))[_0x1881ed(0x116)](),_0x3242d5=normalizeAsyncTask(await getAsyncTaskStatus(_0x1b0d83,_0x1d7321['appCode'],_0x1d7321[_0x1881ed(0x10a)]));if(_0x3242d5[_0x1881ed(0x10f)]!==_0x1b0d83)throw CliErrors['apiError'](_0x1881ed(0x108)+_0x1b0d83+',\x20received\x20'+_0x3242d5[_0x1881ed(0x10f)]+'.');const _0x3979b2=buildAsyncTaskStatusCommand(_0x3242d5[_0x1881ed(0x10f)],_0x1d7321[_0x1881ed(0x113)]);return{'ok':!![],'message':asyncTaskMessage(_0x3242d5),'data':{'appCode':_0x1d7321[_0x1881ed(0x113)],..._0x3242d5,'query':_0x3242d5[_0x1881ed(0x117)]?null:{'command':_0x3979b2}}};}};
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 a203_0x70fb(){const _0x5ec1f7=['8266cbexdk','16RGhQTW','6276rSmdqr','413136FodHPU','12FKrOio','20HHdNoV','955LHseGN','100541scgFVD','1389553LhOujq','164070xWVPAf','10MfvwnR','118869RrvmiQ'];a203_0x70fb=function(){return _0x5ec1f7;};return a203_0x70fb();}(function(_0x1d9293,_0x10b20a){const _0x3414a5=a203_0x46c9,_0x55ae8d=_0x1d9293();while(!![]){try{const _0x4a3067=parseInt(_0x3414a5(0x104))/0x1*(-parseInt(_0x3414a5(0x108))/0x2)+-parseInt(_0x3414a5(0x103))/0x3*(parseInt(_0x3414a5(0xfd))/0x4)+-parseInt(_0x3414a5(0xfe))/0x5*(-parseInt(_0x3414a5(0x106))/0x6)+-parseInt(_0x3414a5(0xff))/0x7*(-parseInt(_0x3414a5(0x105))/0x8)+-parseInt(_0x3414a5(0x101))/0x9*(parseInt(_0x3414a5(0x102))/0xa)+parseInt(_0x3414a5(0x100))/0xb+parseInt(_0x3414a5(0x107))/0xc;if(_0x4a3067===_0x10b20a)break;else _0x55ae8d['push'](_0x55ae8d['shift']());}catch(_0x256d7f){_0x55ae8d['push'](_0x55ae8d['shift']());}}}(a203_0x70fb,0x1e1ba));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a203_0x46c9(_0x2ac70f,_0x5bc2ad){_0x2ac70f=_0x2ac70f-0xfd;const _0x70fba7=a203_0x70fb();let _0x46c9e4=_0x70fba7[_0x2ac70f];return _0x46c9e4;}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
- const a204_0x13ace9=a204_0x2d36;(function(_0x4a1a72,_0x2085cb){const _0x5b0e38=a204_0x2d36,_0x1e4501=_0x4a1a72();while(!![]){try{const _0x520356=-parseInt(_0x5b0e38(0xe4))/0x1+-parseInt(_0x5b0e38(0xed))/0x2+parseInt(_0x5b0e38(0xf1))/0x3+parseInt(_0x5b0e38(0xe8))/0x4*(parseInt(_0x5b0e38(0xea))/0x5)+parseInt(_0x5b0e38(0xe2))/0x6*(parseInt(_0x5b0e38(0xf0))/0x7)+parseInt(_0x5b0e38(0xe3))/0x8+-parseInt(_0x5b0e38(0xe1))/0x9;if(_0x520356===_0x2085cb)break;else _0x1e4501['push'](_0x1e4501['shift']());}catch(_0x232eb2){_0x1e4501['push'](_0x1e4501['shift']());}}}(a204_0x49b5,0x5db46));function a204_0x49b5(){const _0x1cea51=['read','length','flagMissing','1916PrSXxM','\x20tenant\x20member(s)','2065AoSqGH','members-list','tenant-code','741388pCkVMQ','Pass\x20--tenant-code\x20<code>.','str','119ostfaj','1322037zFGuus','tenant','Exact\x20tenant\x20code','string','1087119nFwBQA','12846ciKgZt','5352104KSOmTJ','468617mLPcwH'];a204_0x49b5=function(){return _0x1cea51;};return a204_0x49b5();}import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a204_0x2d36(_0x560af8,_0x235f0a){_0x560af8=_0x560af8-0xdf;const _0x49b51c=a204_0x49b5();let _0x2d3680=_0x49b51c[_0x560af8];return _0x2d3680;}import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a204_0x13ace9(0xf2),'command':a204_0x13ace9(0xeb),'description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a204_0x13ace9(0xe5),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a204_0x13ace9(0xec),'type':a204_0x13ace9(0xe0),'required':!![],'description':a204_0x13ace9(0xdf)}],async 'validate'(_0x3934aa){const _0x380db5=a204_0x13ace9;if(!_0x3934aa[_0x380db5(0xef)](_0x380db5(0xec))['trim']())throw CliErrors[_0x380db5(0xe7)](_0x380db5(0xec),_0x380db5(0xee));},async 'execute'(_0x131538){const _0x53caad=a204_0x13ace9,_0x5c35f2=_0x131538['str']('tenant-code')['trim'](),_0x575f89=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x5c35f2,_0x575f89);const _0x3abac3=projectTenantMembers(await listTenantDirectoryMembers(_0x5c35f2));return{'ok':!![],'data':{'tenantCode':_0x5c35f2,'items':_0x3abac3,'totalCount':_0x3abac3[_0x53caad(0xe6)]},'message':'Found\x20'+_0x3abac3[_0x53caad(0xe6)]+_0x53caad(0xe9)};}};
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 a205_0x4b89(_0x393109,_0x4bf208){_0x393109=_0x393109-0x17d;const _0xb0db7a=a205_0xb0db();let _0x4b89a9=_0xb0db7a[_0x393109];return _0x4b89a9;}(function(_0x1ba793,_0x5672e5){const _0xaf1eb1=a205_0x4b89,_0x4e4044=_0x1ba793();while(!![]){try{const _0x12b134=parseInt(_0xaf1eb1(0x190))/0x1+parseInt(_0xaf1eb1(0x18c))/0x2+-parseInt(_0xaf1eb1(0x18d))/0x3+-parseInt(_0xaf1eb1(0x196))/0x4+-parseInt(_0xaf1eb1(0x180))/0x5*(-parseInt(_0xaf1eb1(0x186))/0x6)+parseInt(_0xaf1eb1(0x17d))/0x7+-parseInt(_0xaf1eb1(0x181))/0x8;if(_0x12b134===_0x5672e5)break;else _0x4e4044['push'](_0x4e4044['shift']());}catch(_0x3688c6){_0x4e4044['push'](_0x4e4044['shift']());}}}(a205_0xb0db,0xf1fb6));import{CliErrors}from'../../errors.js';function a205_0xb0db(){const _0x2fdbf6=['154506AMpWpl','sort','Tenant\x20\x22','ADMIN','values','MEMBER','2175106tDLpOE','3122679rVerUx','username','status','1027237AVDSZv','adminFlag','userId','some','validation','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','7539664bbRSqD','7912387ZeoEyM','get','role','255FNZgOR','5131720lUWiJw','isFinite','set','displayName','tenantCode'];a205_0xb0db=function(){return _0x2fdbf6;};return a205_0xb0db();}function textOrNull(_0x52fa4f){const _0x408007=_0x52fa4f?.['trim']();return _0x408007?_0x408007:null;}export function projectTenantMembers(_0xd8f5f0){const _0x54d863=a205_0x4b89,_0x3e461c=new Map();for(const _0x3ffc80 of _0xd8f5f0){const _0x2a402d=Number(_0x3ffc80[_0x54d863(0x192)]);if(!Number[_0x54d863(0x182)](_0x2a402d)||_0x2a402d<=0x0)continue;const _0x2b2d70={'userId':_0x2a402d,'username':textOrNull(_0x3ffc80[_0x54d863(0x18e)]),'displayName':textOrNull(_0x3ffc80['nickname']),'role':_0x3ffc80[_0x54d863(0x191)]===!![]?_0x54d863(0x189):_0x54d863(0x18b),'status':textOrNull(_0x3ffc80[_0x54d863(0x18f)])},_0x21725d=_0x3e461c[_0x54d863(0x17e)](_0x2a402d);if(!_0x21725d){_0x3e461c[_0x54d863(0x183)](_0x2a402d,_0x2b2d70);continue;}_0x21725d['username']??=_0x2b2d70[_0x54d863(0x18e)],_0x21725d[_0x54d863(0x184)]??=_0x2b2d70[_0x54d863(0x184)],_0x21725d[_0x54d863(0x18f)]??=_0x2b2d70[_0x54d863(0x18f)];if(_0x2b2d70[_0x54d863(0x17f)]===_0x54d863(0x189))_0x21725d[_0x54d863(0x17f)]=_0x54d863(0x189);}return[..._0x3e461c[_0x54d863(0x18a)]()][_0x54d863(0x187)]((_0x30efe1,_0x3a8815)=>_0x30efe1[_0x54d863(0x192)]-_0x3a8815['userId']);}export function assertTenantAccessible(_0x4af66f,_0x286037){const _0x1687c6=a205_0x4b89;if(_0x286037[_0x1687c6(0x193)](_0x384f56=>_0x384f56[_0x1687c6(0x185)]===_0x4af66f))return;throw CliErrors[_0x1687c6(0x194)](_0x1687c6(0x188)+_0x4af66f+_0x1687c6(0x195),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
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_0xb86a4b=a206_0xbbf6;(function(_0x1182cd,_0x459921){const _0x44b9c5=a206_0xbbf6,_0x2bb2e1=_0x1182cd();while(!![]){try{const _0x53a3c7=parseInt(_0x44b9c5(0x204))/0x1+-parseInt(_0x44b9c5(0x1fa))/0x2*(parseInt(_0x44b9c5(0x1f4))/0x3)+parseInt(_0x44b9c5(0x1fd))/0x4+parseInt(_0x44b9c5(0x209))/0x5*(-parseInt(_0x44b9c5(0x20d))/0x6)+parseInt(_0x44b9c5(0x1f7))/0x7*(-parseInt(_0x44b9c5(0x207))/0x8)+-parseInt(_0x44b9c5(0x1f6))/0x9*(-parseInt(_0x44b9c5(0x1f3))/0xa)+parseInt(_0x44b9c5(0x206))/0xb*(parseInt(_0x44b9c5(0x1f8))/0xc);if(_0x53a3c7===_0x459921)break;else _0x2bb2e1['push'](_0x2bb2e1['shift']());}catch(_0x4aee55){_0x2bb2e1['push'](_0x2bb2e1['shift']());}}}(a206_0xf5b9,0x44f11));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';const PROVIDER_ID=a206_0xb86a4b(0x1f9),CURRENT_BINDING_WARNING=a206_0xb86a4b(0x1fc);function readDingTalkUserId(_0x2c7106){const _0x1f2c48=a206_0xb86a4b,_0x17def4=_0x2c7106[_0x1f2c48(0x203)](_0x1f2c48(0x208))[_0x1f2c48(0x20a)]();if(!_0x17def4)throw CliErrors[_0x1f2c48(0x1fb)]('--ding-talk-user-id\x20cannot\x20be\x20empty.',_0x1f2c48(0x202));return _0x17def4;}function a206_0xbbf6(_0x40920d,_0x17ab7b){_0x40920d=_0x40920d-0x1f3;const _0xf5b93=a206_0xf5b9();let _0xbbf631=_0xf5b93[_0x40920d];return _0xbbf631;}function buildBindingData(_0x261dcd,_0x59dd82){const _0x47d4f1=a206_0xb86a4b;return{'operation':_0x47d4f1(0x20c),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x261dcd,'bound':!![]},'dryRun':_0x59dd82,'backend':{'method':_0x47d4f1(0x200),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0xb86a4b(0x201),'command':a206_0xb86a4b(0x1f5),'description':a206_0xb86a4b(0x20b),'risk':a206_0xb86a4b(0x20e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0xb86a4b(0x208),'type':'string','required':!![],'description':a206_0xb86a4b(0x1fe)}],async 'validate'(_0x181f02){readDingTalkUserId(_0x181f02);},async 'dryRun'(_0x451d76){const _0x20efcc=a206_0xb86a4b,_0x63c1df=readDingTalkUserId(_0x451d76);return asDryRunResult(buildBindingData(_0x63c1df,!![]),{'method':_0x20efcc(0x200),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x24dafa){const _0x1e6581=a206_0xb86a4b,_0x11e6b7=readDingTalkUserId(_0x24dafa),_0x14eacc=await bindDingTalkSandboxAccount(_0x11e6b7);if(_0x14eacc!==!![])throw CliErrors['apiError'](_0x1e6581(0x1ff),_0x1e6581(0x205));return{'ok':!![],'data':buildBindingData(_0x11e6b7,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};function a206_0xf5b9(){const _0x3fadb3=['ding-talk-user-id','95GjbTIs','trim','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','bind','111666rgTchZ','write','2240lVYvgs','9EqgxGx','dingding-sandbox-bind','15354BCubEx','448iapvcI','13836Hyaarb','dingtalk','119722xBLzkN','validation','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','701448rrsCNz','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','POST','user-account','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','str','151921DJGvjB','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','4642oQRcTr','47552yoUnMb'];a206_0xf5b9=function(){return _0x3fadb3;};return a206_0xf5b9();}
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(_0x5d8d27,_0x34e156){const _0x151484=a207_0xbf6f,_0x174611=_0x5d8d27();while(!![]){try{const _0x3dae33=-parseInt(_0x151484(0x87))/0x1*(parseInt(_0x151484(0x8d))/0x2)+-parseInt(_0x151484(0x8c))/0x3*(-parseInt(_0x151484(0x8a))/0x4)+-parseInt(_0x151484(0x85))/0x5*(-parseInt(_0x151484(0x88))/0x6)+-parseInt(_0x151484(0x81))/0x7*(parseInt(_0x151484(0x84))/0x8)+parseInt(_0x151484(0x80))/0x9*(parseInt(_0x151484(0x83))/0xa)+parseInt(_0x151484(0x8b))/0xb*(-parseInt(_0x151484(0x82))/0xc)+parseInt(_0x151484(0x89))/0xd*(parseInt(_0x151484(0x86))/0xe);if(_0x3dae33===_0x34e156)break;else _0x174611['push'](_0x174611['shift']());}catch(_0x584998){_0x174611['push'](_0x174611['shift']());}}}(a207_0x2ca5,0x21a05));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0xbf6f(_0x23582f,_0x41197d){_0x23582f=_0x23582f-0x80;const _0x2ca5ad=a207_0x2ca5();let _0xbf6fea=_0x2ca5ad[_0x23582f];return _0xbf6fea;}function a207_0x2ca5(){const _0x5ebbd1=['1864AInusM','1277565WLICCs','120134FyfTCG','3ozCeqw','6gMqvDw','117ICMRGm','868OgbYTE','77CzwVUT','3507IOMQBN','170842KMBRUD','9VLkocW','2422UkCWbR','430800XFpiAC','1394990Wgrymt'];a207_0x2ca5=function(){return _0x5ebbd1;};return a207_0x2ca5();}export const userAccountDefinitions=[dingTalkSandboxBind];
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_0x298892=a208_0x4f44;function a208_0x2782(){const _0x488d24=['472284ZyGzBT','6LZVmYk','28ASoyEp','workspace\x20add','520055oiBimX','name','App\x20profile\x20name','536562vGTBbg','1030808SeUmng','workspace','1206317wlGOup','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','10698660NpTFGB','write','119589GuDuEc'];a208_0x2782=function(){return _0x488d24;};return a208_0x2782();}(function(_0x15e2ac,_0x5a2e36){const _0x8dc395=a208_0x4f44,_0xe6bae0=_0x15e2ac();while(!![]){try{const _0xb703f=-parseInt(_0x8dc395(0x192))/0x1+-parseInt(_0x8dc395(0x18a))/0x2+-parseInt(_0x8dc395(0x191))/0x3+-parseInt(_0x8dc395(0x194))/0x4*(-parseInt(_0x8dc395(0x187))/0x5)+-parseInt(_0x8dc395(0x193))/0x6*(parseInt(_0x8dc395(0x18d))/0x7)+-parseInt(_0x8dc395(0x18b))/0x8+parseInt(_0x8dc395(0x18f))/0x9;if(_0xb703f===_0x5a2e36)break;else _0xe6bae0['push'](_0xe6bae0['shift']());}catch(_0x5da27d){_0xe6bae0['push'](_0xe6bae0['shift']());}}}(a208_0x2782,0xcbe87));function a208_0x4f44(_0x2bf1d4,_0xd095fb){_0x2bf1d4=_0x2bf1d4-0x186;const _0x2782ac=a208_0x2782();let _0x4f44ae=_0x2782ac[_0x2bf1d4];return _0x4f44ae;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a208_0x298892(0x18c),'command':'add','description':a208_0x298892(0x18e),'risk':a208_0x298892(0x190),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x298892(0x188),'description':a208_0x298892(0x189),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xb4cd4f=>validateAppName(_0xb4cd4f,a208_0x298892(0x186)),'execute':_0x3b6acd=>runAppAdd(_0x3b6acd,a208_0x298892(0x186))};
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_0x469172=a209_0x45c8;(function(_0x1c5dea,_0x5a1fe3){const _0x10214d=a209_0x45c8,_0x289663=_0x1c5dea();while(!![]){try{const _0x43f97c=parseInt(_0x10214d(0x1ca))/0x1*(parseInt(_0x10214d(0x1cb))/0x2)+parseInt(_0x10214d(0x1b5))/0x3*(parseInt(_0x10214d(0x1c1))/0x4)+-parseInt(_0x10214d(0x1a7))/0x5*(-parseInt(_0x10214d(0x19e))/0x6)+-parseInt(_0x10214d(0x192))/0x7+parseInt(_0x10214d(0x197))/0x8+-parseInt(_0x10214d(0x1ad))/0x9*(-parseInt(_0x10214d(0x1ba))/0xa)+-parseInt(_0x10214d(0x1a3))/0xb*(parseInt(_0x10214d(0x1b9))/0xc);if(_0x43f97c===_0x5a1fe3)break;else _0x289663['push'](_0x289663['shift']());}catch(_0x346b8a){_0x289663['push'](_0x289663['shift']());}}}(a209_0x1743,0xc000b));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';const WORKSPACE_USAGE=CLI_BIN_NAME+a209_0x469172(0x199),SAFE_PROFILE_KEYS=[a209_0x469172(0x1bc),a209_0x469172(0x19b),a209_0x469172(0x1a6),a209_0x469172(0x1c8),a209_0x469172(0x1b4),a209_0x469172(0x1ae),a209_0x469172(0x1ac),a209_0x469172(0x1c2)],workspaceFlags=[{'name':'app','type':a209_0x469172(0x1c9),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':'appcode','type':a209_0x469172(0x1c9),'description':a209_0x469172(0x19c)},{'name':a209_0x469172(0x19b),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1a2),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x469172(0x1a6),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1b3)},{'name':a209_0x469172(0x19d),'type':'string','description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a209_0x469172(0x1c6),'description':a209_0x469172(0x191)},{'name':a209_0x469172(0x1ae),'type':a209_0x469172(0x1c9),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a209_0x469172(0x1ac),'type':a209_0x469172(0x1c9),'description':a209_0x469172(0x1c5)},...getDeploymentSyncProfileFlagDefs()];function isRecord(_0x4f0d31){const _0x1f83bc=a209_0x469172;return!!_0x4f0d31&&typeof _0x4f0d31===_0x1f83bc(0x19f)&&!Array[_0x1f83bc(0x198)](_0x4f0d31);}function assertValidAppcode(_0x59358b){const _0x2785ff=a209_0x469172,{valid:_0x21b9f8,message:_0x3a29b4}=validateAppcode(_0x59358b);if(!_0x21b9f8)throw CliErrors[_0x2785ff(0x1bf)](_0x2785ff(0x1c0)+_0x59358b,_0x3a29b4);}function a209_0x1743(){const _0x566ad1=['isArray','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',').\x20Config:\x20','env','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','defaultFormat','6dEuiuN','object','workspace.','use','Target\x20environment','386661kKKlJH','.\x20Credentials:\x20not\x20written.','trim','apiDir','7783235tiBylN','\x20--appcode\x20<code>`.','workspace','updated','app','locale','3222927YcpKER','riskLevel','Missing\x20workspace\x20app\x20selector.','Workspace\x20','initialized','str','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','pageSize','2775IreNsQ','globalConfig','Initialize\x20the\x20current\x20workspace\x20app\x20binding','apps','1296JrrdPS','20NgdNFa','Use\x20`','appcode','write','\x20(appcode:\x20','validation','Invalid\x20appcode:\x20','6788PNYqhu','deploymentSync','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20workspace\x20','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','number','\x20--app\x20','format','string','859642eRlvGi','2jKwpWW','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','7643139UmSXMu','\x22\x20not\x20found.','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','init','7779264tcrkjf'];a209_0x1743=function(){return _0x566ad1;};return a209_0x1743();}function sanitizeProfile(_0x13569d){if(!isRecord(_0x13569d))return{};const _0x3eee79={};for(const _0x2186f5 of SAFE_PROFILE_KEYS){if(_0x13569d[_0x2186f5]!==undefined)_0x3eee79[_0x2186f5]=_0x13569d[_0x2186f5];}return _0x3eee79;}function cloneProfile(_0x53c854){return isRecord(_0x53c854)?{..._0x53c854}:{};}function collectWorkspaceProfileOverrides(_0x185855){const _0x39717f=a209_0x469172,_0x210c40={},_0x38f8c7=_0x185855[_0x39717f(0x1b2)]('env'),_0x5c22bf=_0x185855[_0x39717f(0x1b2)]('apiDir'),_0x366694=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x19d)),_0x14bfa7=_0x185855['flag'](_0x39717f(0x1b4)),_0x139b7b=_0x185855[_0x39717f(0x1b2)](_0x39717f(0x1ae)),_0x18c8f1=_0x185855[_0x39717f(0x1b2)]('locale');if(_0x38f8c7)_0x210c40[_0x39717f(0x19b)]=_0x38f8c7;if(_0x5c22bf)_0x210c40[_0x39717f(0x1a6)]=_0x5c22bf;if(_0x366694)_0x210c40[_0x39717f(0x1c8)]=_0x366694;if(_0x14bfa7!==undefined&&_0x14bfa7!=='')_0x210c40[_0x39717f(0x1b4)]=Number(_0x14bfa7);if(_0x139b7b)_0x210c40[_0x39717f(0x1ae)]=_0x139b7b;if(_0x18c8f1)_0x210c40[_0x39717f(0x1ac)]=_0x18c8f1;const _0xc78fa9=collectDeploymentSyncProfile(_0x5e5254=>_0x185855[_0x39717f(0x1b2)](_0x5e5254));if(_0xc78fa9)_0x210c40['deploymentSync']=_0xc78fa9;return _0x210c40;}async function validateWorkspaceArgs(_0x2477fd){const _0x5c20a3=a209_0x469172,_0x11187c=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1ab))[_0x5c20a3(0x1a5)](),_0x206867=_0x2477fd[_0x5c20a3(0x1b2)](_0x5c20a3(0x1bc))[_0x5c20a3(0x1a5)]();if(!_0x11187c&&!_0x206867)throw CliErrors[_0x5c20a3(0x1bf)](_0x5c20a3(0x1af),_0x5c20a3(0x1bb)+CLI_BIN_NAME+_0x5c20a3(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x206867)assertValidAppcode(_0x206867);}function a209_0x45c8(_0x4925d1,_0xbf1d6a){_0x4925d1=_0x4925d1-0x191;const _0x1743ab=a209_0x1743();let _0x45c8b9=_0x1743ab[_0x4925d1];return _0x45c8b9;}function resolveKnownApps(){const _0x614c9e=a209_0x469172,{config:_0x2f4468,layers:_0x443d40}=readRawConfigWithLayers(),_0xf00b80=isRecord(_0x2f4468[_0x614c9e(0x1b8)])?_0x2f4468[_0x614c9e(0x1b8)]:{},_0x1a0302=isRecord(_0x443d40[_0x614c9e(0x1b6)]['apps'])?_0x443d40[_0x614c9e(0x1b6)][_0x614c9e(0x1b8)]:{};return{..._0x1a0302,..._0xf00b80};}async function configureWorkspace(_0x53fa7f,_0x2d204d){const _0x57dce8=a209_0x469172,_0x2dcf8f=_0x53fa7f[_0x57dce8(0x1b2)]('app')[_0x57dce8(0x1a5)](),_0x36f1f5=_0x53fa7f[_0x57dce8(0x1b2)](_0x57dce8(0x1bc))[_0x57dce8(0x1a5)](),_0x3b4201=_0x2dcf8f||_0x36f1f5;if(!_0x3b4201)throw CliErrors[_0x57dce8(0x1bf)](_0x57dce8(0x1af),_0x57dce8(0x1bb)+CLI_BIN_NAME+_0x57dce8(0x195)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x36f1f5)assertValidAppcode(_0x36f1f5);const _0x1f7501=resolveWriteConfigPath('project'),_0x23d012=readConfigFile(_0x1f7501),_0x1eda55=resolveKnownApps(),_0x104550=isRecord(_0x23d012[_0x57dce8(0x1b8)])?{..._0x23d012['apps']}:{},_0x43afa7=cloneProfile(_0x104550[_0x3b4201]),_0x2672cc=sanitizeProfile(_0x1eda55[_0x3b4201]),_0x5cc13e=_0x36f1f5?{}:_0x2672cc,_0x50b66b=_0x36f1f5||_0x5cc13e['appcode'];if(!_0x50b66b){const _0x421553=Object['keys'](_0x1eda55),_0x504edc=_0x421553['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x57dce8(0x1c4)+_0x2d204d+_0x57dce8(0x1c7)+_0x3b4201+_0x57dce8(0x1a8):_0x57dce8(0x194)+_0x421553['join'](',\x20');throw CliErrors['validation']('App\x20\x22'+_0x3b4201+_0x57dce8(0x193),_0x504edc);}assertValidAppcode(String(_0x50b66b));const _0x1a1234={..._0x5cc13e,..._0x43afa7,'appcode':String(_0x50b66b),...collectWorkspaceProfileOverrides(_0x53fa7f)};return _0x104550[_0x3b4201]=_0x1a1234,_0x23d012[_0x57dce8(0x1b8)]=_0x104550,normalizeStoredDefaultApp(_0x23d012,_0x3b4201),delete _0x23d012[_0x57dce8(0x1bc)],delete _0x23d012[_0x57dce8(0x1ab)],_0x1a1234[_0x57dce8(0x19b)]&&(_0x23d012[_0x57dce8(0x19b)]=_0x1a1234[_0x57dce8(0x19b)]),writeConfigFile(_0x1f7501,_0x23d012),{'ok':!![],'message':_0x57dce8(0x1b0)+(_0x2d204d===_0x57dce8(0x196)?_0x57dce8(0x1b1):_0x57dce8(0x1aa))+':\x20'+_0x3b4201+_0x57dce8(0x1be)+_0x1a1234[_0x57dce8(0x1bc)]+_0x57dce8(0x19a)+_0x1f7501+_0x57dce8(0x1a4),'data':{'operation':_0x57dce8(0x1a0)+_0x2d204d,'configPath':_0x1f7501,'app':_0x3b4201,'appcode':_0x1a1234[_0x57dce8(0x1bc)],'env':_0x1a1234['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a209_0x469172(0x1a9),'command':'init','description':a209_0x469172(0x1b7),'risk':a209_0x469172(0x1bd),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4bb5f6=>configureWorkspace(_0x4bb5f6,a209_0x469172(0x196))},workspaceUseDefinition={'service':a209_0x469172(0x1a9),'command':'use','description':a209_0x469172(0x1c3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xcb9edb=>configureWorkspace(_0xcb9edb,a209_0x469172(0x1a1))};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
- function a210_0xfc76(_0x2dc9b7,_0x48335b){_0x2dc9b7=_0x2dc9b7-0xcb;const _0x3b8e10=a210_0x3b8e();let _0xfc7676=_0x3b8e10[_0x2dc9b7];return _0xfc7676;}const a210_0x3f14f0=a210_0xfc76;function a210_0x3b8e(){const _0x52754e=['4750UhlSOg','35ILiwzn','remove','70551inBdhL','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','552AYdSOe','write','8150mseLJk','workspace\x20remove','4xhwBGu','333174JXKlSv','3727867WmfEAA','1199418cSldwX','3447DyTEUN','184YcDeKO'];a210_0x3b8e=function(){return _0x52754e;};return a210_0x3b8e();}(function(_0x13ba22,_0x1e562d){const _0x1bfb80=a210_0xfc76,_0x3b162a=_0x13ba22();while(!![]){try{const _0x2cca80=parseInt(_0x1bfb80(0xcd))/0x1+parseInt(_0x1bfb80(0xd3))/0x2*(-parseInt(_0x1bfb80(0xd4))/0x3)+-parseInt(_0x1bfb80(0xcf))/0x4*(parseInt(_0x1bfb80(0xd9))/0x5)+-parseInt(_0x1bfb80(0xd6))/0x6+parseInt(_0x1bfb80(0xcb))/0x7*(-parseInt(_0x1bfb80(0xd8))/0x8)+parseInt(_0x1bfb80(0xd7))/0x9*(parseInt(_0x1bfb80(0xd1))/0xa)+parseInt(_0x1bfb80(0xd5))/0xb;if(_0x2cca80===_0x1e562d)break;else _0x3b162a['push'](_0x3b162a['shift']());}catch(_0x2fb846){_0x3b162a['push'](_0x3b162a['shift']());}}}(a210_0x3b8e,0x291a7));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':a210_0x3f14f0(0xcc),'description':a210_0x3f14f0(0xce),'risk':a210_0x3f14f0(0xd0),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x53ccbd=>validateAppName(_0x53ccbd,a210_0x3f14f0(0xd2)),'execute':_0x26316e=>runAppRemove(_0x26316e,a210_0x3f14f0(0xd2))};
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_0x505755=a211_0x3a5d;(function(_0xea7ebb,_0xaf1e9c){const _0x8de9ec=a211_0x3a5d,_0x3a185c=_0xea7ebb();while(!![]){try{const _0x14dc81=-parseInt(_0x8de9ec(0xa1))/0x1+-parseInt(_0x8de9ec(0xb7))/0x2*(parseInt(_0x8de9ec(0xa6))/0x3)+parseInt(_0x8de9ec(0xb4))/0x4+parseInt(_0x8de9ec(0xaa))/0x5+-parseInt(_0x8de9ec(0xa0))/0x6+parseInt(_0x8de9ec(0xae))/0x7+-parseInt(_0x8de9ec(0xb0))/0x8;if(_0x14dc81===_0xaf1e9c)break;else _0x3a185c['push'](_0x3a185c['shift']());}catch(_0x2ce8a7){_0x3a185c['push'](_0x3a185c['shift']());}}}(a211_0x3f8c,0x7f74a));import{CliErrors}from'../errors.js';export const AUTO_DEPLOYMENT_TARGET_ENVS=['dev',a211_0x505755(0xb3),a211_0x505755(0xaf)];export function getDeploymentSyncProfileFlagDefs(){const _0x3576b8=a211_0x505755;return[{'name':_0x3576b8(0xa5),'type':_0x3576b8(0xa7),'description':_0x3576b8(0xb1)},{'name':_0x3576b8(0xb2),'type':'string','enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x3576b8(0x9f)}];}export function collectDeploymentSyncProfile(_0x322581){const _0x228a8a=a211_0x505755,_0x2b2702=_0x322581('deployment-db-id')[_0x228a8a(0x9e)](),_0x1deea7=_0x322581(_0x228a8a(0xb2))[_0x228a8a(0x9e)]();if(!_0x2b2702&&!_0x1deea7)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x2b2702?Number(_0x2b2702):undefined,'targetEnv':_0x1deea7||undefined});}function a211_0x3f8c(){const _0x155b60=['object','validation','deployment-db-id','6pSdyjG','number','isArray','join','2097915gsRSbq','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','string','4640468KRFAHR','pre','100120wUZNdG','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','deployment-target-env','test','2590460CpObXj','includes','targetEnv','26426CtsDJi','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','trim','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','3915654ThnKkn','516514jPMEKe','--deployment-target-env\x20must\x20be\x20one\x20of:\x20'];a211_0x3f8c=function(){return _0x155b60;};return a211_0x3f8c();}function a211_0x3a5d(_0x591e1b,_0x5317d6){_0x591e1b=_0x591e1b-0x9d;const _0x3f8cf8=a211_0x3f8c();let _0x3a5d3e=_0x3f8cf8[_0x591e1b];return _0x3a5d3e;}export function validateDeploymentSyncProfile(_0x493eca){const _0x297809=a211_0x505755;if(!_0x493eca||typeof _0x493eca!==_0x297809(0xa3)||Array[_0x297809(0xa8)](_0x493eca))throw CliErrors[_0x297809(0xa4)](_0x297809(0xab));const _0x5d6600=_0x493eca,_0x499c71=Number(_0x5d6600['dbLinkId']);if(!Number['isSafeInteger'](_0x499c71)||_0x499c71<=0x0)throw CliErrors[_0x297809(0xa4)](_0x297809(0x9d));const _0x4b3672=typeof _0x5d6600[_0x297809(0xb6)]===_0x297809(0xad)?_0x5d6600[_0x297809(0xb6)][_0x297809(0x9e)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xb5)](_0x4b3672))throw CliErrors['validation'](_0x297809(0xa2)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x297809(0xa9)](',\x20')+'.',_0x297809(0xac));return{'dbLinkId':_0x499c71,'targetEnv':_0x4b3672};}
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,4 +1,4 @@
1
- export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
2
2
  export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
3
3
  export type DomainConfig = Partial<Record<DomainConfigField, string>>;
4
4
  /** Old domain keys accepted only while reading existing configuration. */
@@ -1 +1 @@
1
- const a212_0x15538a=a212_0x2762;(function(_0x1117fd,_0xbc0e5a){const _0x157bd0=a212_0x2762,_0x262dd5=_0x1117fd();while(!![]){try{const _0x453426=parseInt(_0x157bd0(0x1d0))/0x1+parseInt(_0x157bd0(0x1ef))/0x2*(parseInt(_0x157bd0(0x1d5))/0x3)+parseInt(_0x157bd0(0x1cf))/0x4*(parseInt(_0x157bd0(0x1dc))/0x5)+parseInt(_0x157bd0(0x1e3))/0x6*(parseInt(_0x157bd0(0x1f5))/0x7)+parseInt(_0x157bd0(0x1e0))/0x8+parseInt(_0x157bd0(0x1db))/0x9*(parseInt(_0x157bd0(0x1d7))/0xa)+-parseInt(_0x157bd0(0x1dd))/0xb;if(_0x453426===_0xbc0e5a)break;else _0x262dd5['push'](_0x262dd5['shift']());}catch(_0xfe98b9){_0x262dd5['push'](_0x262dd5['shift']());}}}(a212_0x3b70,0xbf6c6));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=['userDomain',a212_0x15538a(0x1c6),a212_0x15538a(0x1ea),a212_0x15538a(0x1ca),a212_0x15538a(0x1f4),'kbSearchDomain',a212_0x15538a(0x1ee),'localDomain',a212_0x15538a(0x1ce)];const DOMAIN_FLAGS={'userDomain':a212_0x15538a(0x1e6),'apiDomain':a212_0x15538a(0x1d6),'runtimeDomain':'runtime-domain','skillDomain':a212_0x15538a(0x1f0),'kbDomain':'kb-domain','kbSearchDomain':a212_0x15538a(0x1df),'appDomain':'app-domain','localDomain':a212_0x15538a(0x1de),'certificateDomain':a212_0x15538a(0x1cd)};function a212_0x3b70(){const _0x36ea2d=['213lwIXVe','api-domain','119230OpnNGS','validation','https:','parse','819hoKFgM','230450IShLum','36556245FWnIvs','local-domain','kb-search-domain','8087344HQvwvY','isArray','agentDomain','6bwIelM','platformDomain','username','user-domain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','skillHubDomain','Invalid\x20','runtimeDomain','password','length','keys','appDomain','17764udQjfI','skill-domain',':\x20\x22','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Allowed\x20fields:\x20','kbDomain','663236kzFyrb','string','Invalid\x20domain\x20config\x20JSON:\x20','domain-config','apiDomain','hash','trim','join','skillDomain','Domain\x20config\x20file\x20not\x20found:\x20','includes','certificate-domain','certificateDomain','28uJoSuo','963454jEeMeK','str','origin',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','protocol'];a212_0x3b70=function(){return _0x36ea2d;};return a212_0x3b70();}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x15538a(0x1e2),a212_0x15538a(0x1e4),a212_0x15538a(0x1e8)];export function normalizeDomainOrigin(_0xbdb5f9,_0x31686a){const _0x2acd9c=a212_0x15538a;if(typeof _0x31686a!==_0x2acd9c(0x1f6)||!_0x31686a[_0x2acd9c(0x1c8)]())throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x30e329;try{_0x30e329=new URL(_0x31686a[_0x2acd9c(0x1c8)]());}catch{throw CliErrors[_0x2acd9c(0x1d8)]('Invalid\x20'+_0xbdb5f9+_0x2acd9c(0x1f1)+_0x31686a+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x30e329[_0x2acd9c(0x1d4)]!==_0x2acd9c(0x1d9)||_0x30e329[_0x2acd9c(0x1e5)]||_0x30e329[_0x2acd9c(0x1eb)]||_0x30e329['pathname']!=='/'&&_0x30e329['pathname']!==''||_0x30e329['search']||_0x30e329[_0x2acd9c(0x1c7)])throw CliErrors[_0x2acd9c(0x1d8)](_0x2acd9c(0x1e9)+_0xbdb5f9+_0x2acd9c(0x1d3),_0x2acd9c(0x1e7));return _0x30e329[_0x2acd9c(0x1d2)];}export function readDomainConfig(_0x4cd9e2){const _0x1d301a=a212_0x15538a,_0x4bb350=isAbsolute(_0x4cd9e2)?_0x4cd9e2:resolve(process['cwd'](),_0x4cd9e2);if(!existsSync(_0x4bb350))throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1cb)+_0x4bb350);let _0x3ddd66;try{_0x3ddd66=JSON[_0x1d301a(0x1da)](readFileSync(_0x4bb350,'utf8'));}catch{throw CliErrors['validation'](_0x1d301a(0x1f7)+_0x4bb350);}if(!_0x3ddd66||typeof _0x3ddd66!=='object'||Array[_0x1d301a(0x1e1)](_0x3ddd66))throw CliErrors[_0x1d301a(0x1d8)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x261e6d=_0x3ddd66,_0x213d82=Object[_0x1d301a(0x1ed)](_0x261e6d)['filter'](_0x316946=>!DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1cc)](_0x316946));if(_0x213d82[_0x1d301a(0x1ec)]>0x0)throw CliErrors[_0x1d301a(0x1d8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x213d82[_0x1d301a(0x1c9)](',\x20'),_0x1d301a(0x1f3)+DOMAIN_CONFIG_FIELDS[_0x1d301a(0x1c9)](',\x20'));const _0x55ab02={};for(const _0x3d8e40 of DOMAIN_CONFIG_FIELDS){_0x261e6d[_0x3d8e40]!==undefined&&(_0x55ab02[_0x3d8e40]=normalizeDomainOrigin(_0x3d8e40,_0x261e6d[_0x3d8e40]));}if(Object[_0x1d301a(0x1ed)](_0x55ab02)[_0x1d301a(0x1ec)]===0x0)throw CliErrors[_0x1d301a(0x1d8)](_0x1d301a(0x1f2));return _0x55ab02;}function a212_0x2762(_0xb719b8,_0x5755f1){_0xb719b8=_0xb719b8-0x1c5;const _0x3b70d8=a212_0x3b70();let _0x2762d7=_0x3b70d8[_0xb719b8];return _0x2762d7;}export function resolveDomainFlags(_0x5bd2e4){const _0x162c0b=a212_0x15538a,_0x3da20e=(_0x5bd2e4[_0x162c0b(0x1d1)](_0x162c0b(0x1c5))||'')[_0x162c0b(0x1c8)](),_0x3b0737=_0x3da20e?readDomainConfig(_0x3da20e):{};for(const _0x5af01b of DOMAIN_CONFIG_FIELDS){const _0x22ff24=(_0x5bd2e4[_0x162c0b(0x1d1)](DOMAIN_FLAGS[_0x5af01b])||'')[_0x162c0b(0x1c8)]();if(_0x22ff24)_0x3b0737[_0x5af01b]=normalizeDomainOrigin(_0x5af01b,_0x22ff24);}return _0x3b0737;}
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
- (function(_0x447964,_0x181a70){const _0x278ee3=a213_0x34cf,_0x30d1eb=_0x447964();while(!![]){try{const _0x2cb940=parseInt(_0x278ee3(0xe6))/0x1*(parseInt(_0x278ee3(0xe0))/0x2)+-parseInt(_0x278ee3(0xea))/0x3+parseInt(_0x278ee3(0xde))/0x4*(-parseInt(_0x278ee3(0xdd))/0x5)+parseInt(_0x278ee3(0xe9))/0x6*(parseInt(_0x278ee3(0xe2))/0x7)+-parseInt(_0x278ee3(0xeb))/0x8*(parseInt(_0x278ee3(0xe8))/0x9)+parseInt(_0x278ee3(0xdc))/0xa+parseInt(_0x278ee3(0xdb))/0xb;if(_0x2cb940===_0x181a70)break;else _0x30d1eb['push'](_0x30d1eb['shift']());}catch(_0x389a25){_0x30d1eb['push'](_0x30d1eb['shift']());}}}(a213_0x2eed,0x20bbc));import{writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';function a213_0x2eed(){const _0x544df5=['421998Nbohja','466521UqgAMm','8YCAeBd','assets','stringify','196559AjhQUp','2648510AdeVxZ','60ETePFT','29180WDLPXn','/cert/lovrabet-dev.json','22patUeT','local','7XzMcDS','independent','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','utf8','16457vmTPhr','http://localhost','1412613KFwaPy'];a213_0x2eed=function(){return _0x544df5;};return a213_0x2eed();}export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';export const PROJECT_ROUTING_PROTOCOL='lovrabet-project-routing/v1';export function getProjectRoutingManifest(){const _0x247cd4=a213_0x34cf,_0x59a678=getActiveRegion(),_0x376cdb=isIndependentDeployment(),_0x227ab8=getOfficialRoutingProfile(_0x59a678),_0x2d631d=getLocalDomain(),_0x58f713=getCertificateDomain();if(!!_0x2d631d!==!!_0x58f713)throw new Error(_0x247cd4(0xe4));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x376cdb?_0x247cd4(0xe3):'official','region':_0x376cdb?null:_0x59a678,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x227ab8[_0x247cd4(0xd9)],'local':_0x2d631d&&_0x58f713?{'origin':_0x2d631d,'certificateUrl':_0x58f713+_0x247cd4(0xdf)}:_0x376cdb?{'origin':_0x247cd4(0xe7)}:_0x227ab8[_0x247cd4(0xe1)]};}function a213_0x34cf(_0x49693b,_0x59bb45){_0x49693b=_0x49693b-0xd9;const _0x2eed8b=a213_0x2eed();let _0x34cf27=_0x2eed8b[_0x49693b];return _0x34cf27;}export function writeProjectRoutingManifest(_0xe16ffb){const _0x349d53=a213_0x34cf,_0x41c63b=getProjectRoutingManifest(),_0x1011b6=join(_0xe16ffb,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x1011b6,JSON[_0x349d53(0xda)](_0x41c63b,null,0x2)+'\x0a',_0x349d53(0xe5)),{'path':_0x1011b6,'manifest':_0x41c63b};}
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,6 +1,6 @@
1
1
  import type { FlagDef } from "../framework/types.js";
2
2
  export { DEFAULT_CONFIG_VALUES } from "../constant/defaults.js";
3
- export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
3
+ export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
4
4
  export interface ConfigMetadataFields {
5
5
  version?: string;
6
6
  createdAt?: string;
@@ -1 +1 @@
1
- const a214_0x5cf831=a214_0x59af;function a214_0x59af(_0x2f39e1,_0x5831a9){_0x2f39e1=_0x2f39e1-0x1b6;const _0x50dd13=a214_0x50dd();let _0x59afd6=_0x50dd13[_0x2f39e1];return _0x59afd6;}(function(_0x239883,_0x36af06){const _0x58ecaf=a214_0x59af,_0x23846c=_0x239883();while(!![]){try{const _0x1ecc85=parseInt(_0x58ecaf(0x1db))/0x1*(-parseInt(_0x58ecaf(0x1d8))/0x2)+-parseInt(_0x58ecaf(0x1bb))/0x3+-parseInt(_0x58ecaf(0x1d3))/0x4*(-parseInt(_0x58ecaf(0x1cf))/0x5)+-parseInt(_0x58ecaf(0x1b6))/0x6*(parseInt(_0x58ecaf(0x1ce))/0x7)+parseInt(_0x58ecaf(0x1d0))/0x8+parseInt(_0x58ecaf(0x1e6))/0x9+parseInt(_0x58ecaf(0x1d7))/0xa*(parseInt(_0x58ecaf(0x1e2))/0xb);if(_0x1ecc85===_0x36af06)break;else _0x23846c['push'](_0x23846c['shift']());}catch(_0x2f4b4a){_0x23846c['push'](_0x23846c['shift']());}}}(a214_0x50dd,0x976c3));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';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey','locale',a214_0x5cf831(0x1d1),a214_0x5cf831(0x1d2),a214_0x5cf831(0x1c4),a214_0x5cf831(0x1cc),a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain','appDomain',a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x5cf831(0x1ba),'env',a214_0x5cf831(0x1dc),a214_0x5cf831(0x1d1),a214_0x5cf831(0x1e5),a214_0x5cf831(0x1cd),a214_0x5cf831(0x1e4),a214_0x5cf831(0x1c4),'userDomain',a214_0x5cf831(0x1e9),a214_0x5cf831(0x1bd),a214_0x5cf831(0x1d9),a214_0x5cf831(0x1de),'kbSearchDomain',a214_0x5cf831(0x1c1),a214_0x5cf831(0x1c6),a214_0x5cf831(0x1da)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25bb66){const _0x17bc2a=a214_0x5cf831;return[..._0x25bb66][_0x17bc2a(0x1d4)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x360e3e){const _0x325086=a214_0x5cf831;return TOP_LEVEL_CONFIG_KEYS[_0x325086(0x1bf)](_0x360e3e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3a76e2=a214_0x5cf831;return _0x3a76e2(0x1e7)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a214_0x5cf831(0x1be),'apiDir':a214_0x5cf831(0x1e4),'cookie':a214_0x5cf831(0x1e5),'accessKey':a214_0x5cf831(0x1cd),'defaultFormat':a214_0x5cf831(0x1d1),'pageSize':a214_0x5cf831(0x1eb),'riskLevel':'riskLevel','locale':'locale'};export function getAppProfileFlagDefs(){const _0x120f6c=a214_0x5cf831;return[{'name':_0x120f6c(0x1be),'type':_0x120f6c(0x1e8),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x120f6c(0x1e4),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c5)},{'name':_0x120f6c(0x1e5),'type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c0),'hidden':!![]},{'name':_0x120f6c(0x1cd),'type':'string','description':_0x120f6c(0x1c3),'hidden':!![]},{'name':'defaultFormat','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1c8),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x120f6c(0x1eb),'type':_0x120f6c(0x1dd),'description':_0x120f6c(0x1d6)},{'name':'riskLevel','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1cb),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':_0x120f6c(0x1e8),'description':_0x120f6c(0x1e1)},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0xf1e87f){const _0x5c28bd=a214_0x5cf831,_0x3717dc={};for(const [_0x403b6f,_0x4ada63]of Object[_0x5c28bd(0x1ca)](APP_PROFILE_FLAG_KEY_MAP)){const _0x49d61d=_0xf1e87f(_0x403b6f);if(!_0x49d61d)continue;_0x3717dc[_0x4ada63]=_0x4ada63===_0x5c28bd(0x1eb)?Number(_0x49d61d):_0x49d61d;}const _0x326371=collectDeploymentSyncProfile(_0xf1e87f);if(_0x326371)_0x3717dc[_0x5c28bd(0x1ea)]=_0x326371;return _0x3717dc;}function a214_0x50dd(){const _0x3dca2a=['10EueKmj','1787768PvOYBe','format','riskLevel','2046804pGgFbW','join','filter','Default\x20page\x20size','10axKfLR','2ComoAt','skillDomain','certificateDomain','755215xmxZyh','locale','number','kbDomain','keys','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','13555003LGqRzu','apps','apiDir','cookie','500697bgHzax','Config\x20key\x20(','string','apiDomain','deploymentSync','pageSize','6nbwsRl','inherit','en-US','app','appcode','2678382GnvuMg','toLowerCase','runtimeDomain','env','has','Auth\x20cookie','appDomain','trim','Access\x20key','region','API\x20directory\x20path','localDomain','zh-CN','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','length','entries','Risk\x20level','userDomain','accessKey','1865801wDEjhj'];a214_0x50dd=function(){return _0x3dca2a;};return a214_0x50dd();}export function buildAppProfileListFields(_0x330a95){const _0xba7299=a214_0x5cf831;return{'env':_0x330a95[_0xba7299(0x1be)]??null,'apiDir':_0x330a95['apiDir']??null,'hasCookie':!!_0x330a95[_0xba7299(0x1e5)],'hasAccessKey':!!_0x330a95['accessKey'],'format':_0x330a95['format']??null,'pageSize':_0x330a95[_0xba7299(0x1eb)]??null,'riskLevel':_0x330a95[_0xba7299(0x1d2)]??null,'locale':_0x330a95[_0xba7299(0x1dc)]??null,'deploymentSync':_0x330a95[_0xba7299(0x1ea)]??null};}export function buildAppDoctorFields(_0x36f353,_0x30f4a7){const _0x11425d=a214_0x5cf831;return{'env':{'value':_0x36f353[_0x11425d(0x1be)]||_0x30f4a7[_0x11425d(0x1be)],'source':_0x36f353[_0x11425d(0x1be)]?'app':'inherit'},'apiDir':{'value':_0x36f353[_0x11425d(0x1e4)]||_0x30f4a7[_0x11425d(0x1e4)],'source':_0x36f353['apiDir']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'cookie':{'value':_0x36f353[_0x11425d(0x1e5)]||_0x30f4a7['cookie'],'source':_0x36f353['cookie']?_0x11425d(0x1b9):_0x11425d(0x1b7)},'accessKey':{'value':_0x36f353[_0x11425d(0x1cd)]||_0x30f4a7[_0x11425d(0x1cd)],'source':_0x36f353[_0x11425d(0x1cd)]?'app':_0x11425d(0x1b7)}};}export function buildCanonicalAppConfig(_0x5b4c4c,_0x1e035b){const _0x40a698=a214_0x5cf831,_0x4c4e59=_0x5b4c4c['map'](_0x386c81=>String(_0x386c81||'')[_0x40a698(0x1c2)]())[_0x40a698(0x1d5)](Boolean);if(_0x4c4e59[_0x40a698(0x1c9)]===0x0)return{};const _0x163088={};for(const _0xef67c0 of _0x4c4e59){_0x163088[_0xef67c0]=_0x1e035b?{'appcode':_0xef67c0,'env':_0x1e035b}:{'appcode':_0xef67c0};}return _0x4c4e59[_0x40a698(0x1c9)]>0x1?{'apps':_0x163088,'defaultApp':_0x4c4e59[0x0]}:{'apps':_0x163088};}export function normalizeStoredDefaultApp(_0x42384a,_0x24517f){const _0x49b73f=a214_0x5cf831,_0x313e5e=_0x42384a[_0x49b73f(0x1e3)]&&typeof _0x42384a['apps']==='object'?_0x42384a[_0x49b73f(0x1e3)]:{},_0x18f967=Object['keys'](_0x313e5e);if(_0x18f967[_0x49b73f(0x1c9)]<=0x1)return delete _0x42384a[_0x49b73f(0x1e0)],undefined;const _0x34e793=typeof _0x42384a[_0x49b73f(0x1e0)]===_0x49b73f(0x1e8)&&_0x313e5e[_0x42384a[_0x49b73f(0x1e0)]]?_0x42384a[_0x49b73f(0x1e0)]:undefined,_0x2f6787=_0x24517f&&_0x313e5e[_0x24517f]?_0x24517f:_0x34e793;if(_0x2f6787)return _0x42384a[_0x49b73f(0x1e0)]=_0x2f6787,_0x2f6787;return delete _0x42384a['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x882260,_0x2d0620){const _0x28f7f3=a214_0x5cf831,{appCodes:appCodes=[],env:_0x4bddc7,metadata:_0x9e2d12}=_0x2d0620,_0x5da6c2={..._0x882260,..._0x9e2d12||{}};delete _0x5da6c2[_0x28f7f3(0x1ba)],delete _0x5da6c2[_0x28f7f3(0x1b9)];if(_0x4bddc7)_0x5da6c2[_0x28f7f3(0x1be)]=_0x4bddc7;else!_0x5da6c2[_0x28f7f3(0x1be)]&&(_0x5da6c2['env']=DEFAULT_CONFIG_VALUES['env']);const _0x1d0f71=buildCanonicalAppConfig(appCodes,_0x5da6c2['env']);if(Object[_0x28f7f3(0x1df)](_0x1d0f71)['length']>0x0){_0x5da6c2['apps']=_0x1d0f71[_0x28f7f3(0x1e3)];if(_0x1d0f71[_0x28f7f3(0x1e0)])_0x5da6c2['defaultApp']=_0x1d0f71[_0x28f7f3(0x1e0)];else delete _0x5da6c2[_0x28f7f3(0x1e0)];}return _0x5da6c2;}const LOCALE_MAP={'zh':a214_0x5cf831(0x1c7),'zh-cn':a214_0x5cf831(0x1c7),'zh_cn':a214_0x5cf831(0x1c7),'en':a214_0x5cf831(0x1b8),'en-us':a214_0x5cf831(0x1b8),'en_us':a214_0x5cf831(0x1b8)};export function normalizeLocale(_0x4e0c57){const _0xf9d877=a214_0x5cf831;if(!_0x4e0c57)return null;return LOCALE_MAP[_0x4e0c57[_0xf9d877(0x1bc)]()]??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
- function a215_0x4581(){const _0x534c22=['4729398NRNNRp','1823814jQpgSg','917922IQtmTq','374375gYlUeE','4bEYtaD','/templates/projects','/config/index.json','6164949nfZcIO','https://g.lovrabet.com/dist/rabetbase-cli','1691830HIAajn','2869570ULDQns','4fjfRDx','8daktuU'];a215_0x4581=function(){return _0x534c22;};return a215_0x4581();}const a215_0x23cf2c=a215_0x133f;(function(_0x19d336,_0x22aaa8){const _0xa62420=a215_0x133f,_0x30b184=_0x19d336();while(!![]){try{const _0x5ebb5a=-parseInt(_0xa62420(0x181))/0x1+parseInt(_0xa62420(0x182))/0x2*(-parseInt(_0xa62420(0x180))/0x3)+parseInt(_0xa62420(0x189))/0x4*(parseInt(_0xa62420(0x187))/0x5)+parseInt(_0xa62420(0x18b))/0x6+parseInt(_0xa62420(0x185))/0x7*(parseInt(_0xa62420(0x18a))/0x8)+-parseInt(_0xa62420(0x18c))/0x9+-parseInt(_0xa62420(0x188))/0xa;if(_0x5ebb5a===_0x22aaa8)break;else _0x30b184['push'](_0x30b184['shift']());}catch(_0x1a3d98){_0x30b184['push'](_0x30b184['shift']());}}}(a215_0x4581,0x81bb4));export const RABETBASE_CDN_BASE_URL=a215_0x23cf2c(0x186);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x184);function a215_0x133f(_0x5df91b,_0x2abb78){_0x5df91b=_0x5df91b-0x180;const _0x458189=a215_0x4581();let _0x133fe9=_0x458189[_0x5df91b];return _0x133fe9;}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a215_0x23cf2c(0x183);
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';