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

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 (314) 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 +2 -0
  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.d.ts +0 -16
  235. package/lib/core/api-client.js +1 -1
  236. package/lib/core/bff/config.js +1 -1
  237. package/lib/core/bff/file-system.js +1 -1
  238. package/lib/core/bff/hash.js +1 -1
  239. package/lib/core/bff/lock.js +1 -1
  240. package/lib/core/bff/utils.js +1 -1
  241. package/lib/core/db-resolver.js +1 -1
  242. package/lib/core/kb-search-client.d.ts +30 -0
  243. package/lib/core/kb-search-client.js +1 -0
  244. package/lib/core/page/file-system.js +1 -1
  245. package/lib/core/page/hash.js +1 -1
  246. package/lib/core/page/lock.js +1 -1
  247. package/lib/core/sql-index-auditor.js +1 -1
  248. package/lib/core/sql-sync/config.js +1 -1
  249. package/lib/core/sql-sync/file-system.js +1 -1
  250. package/lib/core/sql-sync/hash.js +1 -1
  251. package/lib/core/sql-sync/lock.js +1 -1
  252. package/lib/core/sql-sync/utils.js +1 -1
  253. package/lib/core/sql-validator.js +1 -1
  254. package/lib/errors.js +1 -1
  255. package/lib/framework/build-all-flags.js +1 -1
  256. package/lib/framework/error-output.js +1 -1
  257. package/lib/framework/explicit-yes.js +1 -1
  258. package/lib/framework/flags.js +1 -1
  259. package/lib/framework/help.js +1 -1
  260. package/lib/framework/index.js +1 -1
  261. package/lib/framework/output.js +1 -1
  262. package/lib/framework/response.js +1 -1
  263. package/lib/framework/runner-alias.js +1 -1
  264. package/lib/framework/runner.js +1 -1
  265. package/lib/framework/schema-export.js +1 -1
  266. package/lib/framework/types.d.ts +1 -0
  267. package/lib/framework/types.js +1 -1
  268. package/lib/generated/build-info.d.ts +4 -4
  269. package/lib/generated/build-info.js +1 -1
  270. package/lib/help.js +1 -1
  271. package/lib/postinstall.js +1 -1
  272. package/lib/runtime/confirmation.js +1 -1
  273. package/lib/runtime/event.js +1 -1
  274. package/lib/runtime/index.js +1 -1
  275. package/lib/runtime/queue.js +1 -1
  276. package/lib/runtime/resolve.js +1 -1
  277. package/lib/skills/builtin-skill.js +1 -1
  278. package/lib/skills/main.js +1 -1
  279. package/lib/skills/npx-skills-add.js +1 -1
  280. package/lib/skills/skill-presence.js +1 -1
  281. package/lib/telemetry/cli-command-trace.js +1 -1
  282. package/lib/telemetry/cli-help-trace.js +1 -1
  283. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  284. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  285. package/lib/telemetry/send-cli-trace-log.js +1 -1
  286. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  287. package/lib/utils/ai_config.js +1 -1
  288. package/lib/utils/apply-jq-filter.js +1 -1
  289. package/lib/utils/cdn-config.js +1 -1
  290. package/lib/utils/check-sdk-version.js +1 -1
  291. package/lib/utils/cli-version-check.js +1 -1
  292. package/lib/utils/cli-version-policy.js +1 -1
  293. package/lib/utils/config.js +1 -1
  294. package/lib/utils/entity-with-id.js +1 -1
  295. package/lib/utils/file-utils.js +1 -1
  296. package/lib/utils/guides-cdn.js +1 -1
  297. package/lib/utils/http-client.js +1 -1
  298. package/lib/utils/is-non-interactive.js +1 -1
  299. package/lib/utils/logger.js +1 -1
  300. package/lib/utils/params.js +1 -1
  301. package/lib/utils/platform.js +1 -1
  302. package/lib/utils/sleep.js +1 -1
  303. package/lib/utils/template-replacer.js +1 -1
  304. package/lib/utils/update-notice.js +1 -1
  305. package/lib/utils/version.js +1 -1
  306. package/lib/utils/with-active-cookie.js +1 -1
  307. package/lib/utils/write-cli-side-channel.js +1 -1
  308. package/package.json +1 -1
  309. package/skills/rabetbase/SKILL.md +2 -2
  310. package/skills/rabetbase/references/rabetbase-config.md +4 -1
  311. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  312. package/skills/rabetbase/references/rabetbase-init.md +2 -0
  313. package/skills/rabetbase/references/rabetbase-kb.md +7 -7
  314. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a199_0x42b9(_0x22e8cf,_0x564bd5){_0x22e8cf=_0x22e8cf-0x1ac;const _0x1b493d=a199_0x1b49();let _0x42b996=_0x1b493d[_0x22e8cf];return _0x42b996;}const a199_0x1ec86c=a199_0x42b9;(function(_0x1b2f95,_0x3ba5c3){const _0x2793ba=a199_0x42b9,_0x326a67=_0x1b2f95();while(!![]){try{const _0x355c82=parseInt(_0x2793ba(0x1d0))/0x1+-parseInt(_0x2793ba(0x1ce))/0x2+parseInt(_0x2793ba(0x1ca))/0x3*(parseInt(_0x2793ba(0x1bb))/0x4)+-parseInt(_0x2793ba(0x1cf))/0x5*(parseInt(_0x2793ba(0x1c1))/0x6)+parseInt(_0x2793ba(0x1b7))/0x7*(parseInt(_0x2793ba(0x1ba))/0x8)+-parseInt(_0x2793ba(0x1cd))/0x9*(parseInt(_0x2793ba(0x1af))/0xa)+parseInt(_0x2793ba(0x1ad))/0xb;if(_0x355c82===_0x3ba5c3)break;else _0x326a67['push'](_0x326a67['shift']());}catch(_0x3a1e6e){_0x326a67['push'](_0x326a67['shift']());}}}(a199_0x1b49,0x45908));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x1a2710){const _0xe2de4d=a199_0x42b9,_0x2812bb=[];let _0x2fab3f=0x1;while(!![]){const _0x18797c=await listSqlQueries(_0x1a2710,{'currentPage':_0x2fab3f,'pageSize':PAGE_SIZE}),_0x22fe06=_0x18797c[_0xe2de4d(0x1ae)]??[];_0x2812bb['push'](..._0x22fe06['map'](_0x5c0aab=>_0x5c0aab[_0xe2de4d(0x1cc)]));if(_0x22fe06[_0xe2de4d(0x1cb)]===0x0)break;const _0x13e836=_0x18797c['paging']?.[_0xe2de4d(0x1c5)];if(_0x13e836!=null?_0x2812bb[_0xe2de4d(0x1cb)]>=_0x13e836:_0x22fe06['length']<PAGE_SIZE)break;_0x2fab3f++;}return _0x2812bb;}export const sqlStatus={'service':a199_0x1ec86c(0x1b8),'command':a199_0x1ec86c(0x1b9),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a199_0x1ec86c(0x1c8),'flags':[{'name':a199_0x1ec86c(0x1b4),'type':a199_0x1ec86c(0x1c7),'description':a199_0x1ec86c(0x1b2)}],async 'execute'(_0x5e5b63){const _0x28aff1=a199_0x1ec86c,_0x4e0b89=loadSqlProjectConfig(_0x5e5b63['appCode']),_0x564c2d=await readSqlLockFile(_0x4e0b89['lockFilePath']),{appLock:_0x384fb9}=ensureSqlLockScope(_0x564c2d??createEmptySqlLock(),_0x4e0b89[_0x28aff1(0x1b3)],_0x4e0b89[_0x28aff1(0x1d1)],_0x28aff1(0x1b9)),_0x40e076=await scanLocalSqlQueries(_0x4e0b89),_0x5d998c=[],_0x4e6243=[],_0x35937a=[],_0x5ebdfb=[],_0x524541=new Set(_0x40e076['map'](_0x116b50=>_0x116b50[_0x28aff1(0x1c6)]));for(const _0x4d79cd of _0x40e076){const _0x5055cb=await computeSqlFileHash(_0x4d79cd[_0x28aff1(0x1b0)]),_0x405349=_0x384fb9[_0x28aff1(0x1b1)][_0x4d79cd[_0x28aff1(0x1c6)]],_0x3db528=!!_0x405349&&_0x405349[_0x28aff1(0x1bd)]!==_0x4d79cd[_0x28aff1(0x1bc)],_0x2b9624=!!_0x405349&&!!_0x4d79cd['sqlName']&&_0x405349[_0x28aff1(0x1b6)]!==_0x4d79cd[_0x28aff1(0x1b6)];if(!_0x405349)_0x5d998c[_0x28aff1(0x1c0)](_0x4d79cd['lockKey']);else _0x405349[_0x28aff1(0x1b5)]!==_0x5055cb||_0x3db528||_0x2b9624?_0x4e6243[_0x28aff1(0x1c0)](_0x4d79cd[_0x28aff1(0x1c6)]):_0x35937a['push'](_0x4d79cd[_0x28aff1(0x1c6)]);}for(const _0x40f94a of Object[_0x28aff1(0x1be)](_0x384fb9[_0x28aff1(0x1b1)])){!_0x524541[_0x28aff1(0x1ac)](_0x40f94a)&&_0x5ebdfb['push'](_0x40f94a);}const _0xf81f9e=[];if(_0x5e5b63[_0x28aff1(0x1c4)](_0x28aff1(0x1b4))){const _0x1238b1=await fetchAllSqlCodes(_0x5e5b63[_0x28aff1(0x1b3)]);for(const _0x5e2cb0 of _0x1238b1){!_0x524541[_0x28aff1(0x1ac)](_0x5e2cb0)&&!_0x384fb9[_0x28aff1(0x1b1)][_0x5e2cb0]&&_0xf81f9e[_0x28aff1(0x1c0)](_0x5e2cb0);}}const _0x2d3a34=_0x5d998c[_0x28aff1(0x1cb)]===0x0&&_0x4e6243[_0x28aff1(0x1cb)]===0x0&&_0x5ebdfb[_0x28aff1(0x1cb)]===0x0&&_0xf81f9e[_0x28aff1(0x1cb)]===0x0;return{'ok':!![],'data':{'added':_0x5d998c,'modified':_0x4e6243,'missing':_0x5ebdfb,'unchanged':_0x35937a,'remoteOnly':_0xf81f9e},'message':_0x2d3a34?_0x28aff1(0x1c9):_0x5d998c[_0x28aff1(0x1cb)]+_0x28aff1(0x1bf)+_0x4e6243[_0x28aff1(0x1cb)]+'\x20modified,\x20'+_0x5ebdfb[_0x28aff1(0x1cb)]+_0x28aff1(0x1c3)+_0x35937a['length']+'\x20unchanged'+(_0xf81f9e[_0x28aff1(0x1cb)]>0x0?',\x20'+_0xf81f9e[_0x28aff1(0x1cb)]+_0x28aff1(0x1c2):'')};}};function a199_0x1b49(){const _0x528cc2=['\x20missing,\x20','bool','totalCount','lockKey','boolean','read','All\x20SQL\x20queries\x20are\x20in\x20sync.','6MIHXls','length','sqlCode','9gXJfLO','525384VODnOk','5060qSJmnV','305543fAogNK','sqlRoot','has','2140974sYSWrc','tableData','2131210zyoqFt','filePath','sqls','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','appCode','remote','hash','sqlName','606613IPRbHE','sql','status','32QkFHeS','18128oGQADV','relativePath','path','keys','\x20added,\x20','push','564wvlBGt','\x20remote-only'];a199_0x1b49=function(){return _0x528cc2;};return a199_0x1b49();}
1
+ const a199_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 +1 @@
1
- function a200_0x3d19(){const _0x5e8544=['type','dbtableConfig','7iCmqvG','tableName','schemas','find','joinAudit','primary','string','dataset','columnNames','sql','24DsiXAA','933510KLaOkU','605HScSVq','indexes','columns','Dataset\x20\x22','toLowerCase','isDangerous','\x22\x20not\x20found\x20or\x20not\x20accessible','tables','str','index_name','132200JTMvEY','get','validation','appCode','file','1326243TJWGJk','1022985zDYkzQ','read','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','Table\x20\x22','isArray','valid','9355956JLYVwv','pkField','validate','boolean','push','size','reason','split','isSelectOnly','message','utf-8','map','from','trim','index_type','--check-indexes\x20requires\x20--schemas.','sqlType','length','filter','125rhXTbX','250872myBmxi','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','name','indexName','8392JmClwB','index_columns'];a200_0x3d19=function(){return _0x5e8544;};return a200_0x3d19();}const a200_0x3c0717=a200_0x51b6;(function(_0x4c08cf,_0x57aec2){const _0x30c5c3=a200_0x51b6,_0x15cd07=_0x4c08cf();while(!![]){try{const _0x24ad33=-parseInt(_0x30c5c3(0x74))/0x1+-parseInt(_0x30c5c3(0x87))/0x2+parseInt(_0x30c5c3(0x97))/0x3+parseInt(_0x30c5c3(0x78))/0x4*(-parseInt(_0x30c5c3(0x73))/0x5)+parseInt(_0x30c5c3(0x9e))/0x6*(parseInt(_0x30c5c3(0x7c))/0x7)+-parseInt(_0x30c5c3(0x86))/0x8*(-parseInt(_0x30c5c3(0x98))/0x9)+-parseInt(_0x30c5c3(0x92))/0xa*(parseInt(_0x30c5c3(0x88))/0xb);if(_0x24ad33===_0x57aec2)break;else _0x15cd07['push'](_0x15cd07['shift']());}catch(_0x10e0da){_0x15cd07['push'](_0x15cd07['shift']());}}}(a200_0x3d19,0xce5a9));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a200_0x51b6(_0x476c9a,_0x292de6){_0x476c9a=_0x476c9a-0x64;const _0x3d197c=a200_0x3d19();let _0x51b692=_0x3d197c[_0x476c9a];return _0x51b692;}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a200_0x3c0717(0x85),'command':a200_0x3c0717(0xa0),'description':a200_0x3c0717(0x9a),'risk':a200_0x3c0717(0x99),'flags':[{'name':a200_0x3c0717(0x96),'type':a200_0x3c0717(0x82),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a200_0x3c0717(0x85),'type':a200_0x3c0717(0x82),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':'schemas','type':a200_0x3c0717(0x82),'description':a200_0x3c0717(0x75)},{'name':'check-indexes','type':a200_0x3c0717(0xa1),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x4c409c){const _0x349aa8=a200_0x3c0717,_0x5ca356=_0x4c409c[_0x349aa8(0x90)](_0x349aa8(0x96)),_0x581820=_0x4c409c['str'](_0x349aa8(0x85)),_0x1309d6=_0x4c409c[_0x349aa8(0x90)](_0x349aa8(0x7e)),_0x3a6f12=_0x4c409c['bool']('check-indexes');if(!_0x5ca356&&!_0x581820)throw CliErrors['flagMissing'](_0x349aa8(0x96),'Provide\x20--file\x20or\x20--sql');if(_0x3a6f12&&!_0x1309d6)throw CliErrors['validation'](_0x349aa8(0x6f));let _0x3001ed;if(_0x5ca356){const _0xdb281b=resolve(process['cwd'](),_0x5ca356);if(!existsSync(_0xdb281b))throw CliErrors[_0x349aa8(0x94)]('File\x20not\x20found:\x20'+_0xdb281b);_0x3001ed=readFileSync(_0xdb281b,_0x349aa8(0x6a));}else _0x3001ed=_0x581820;const _0x173ecc=validateSql(_0x3001ed),_0x1e84a={'valid':_0x173ecc[_0x349aa8(0x9d)],'sqlType':_0x173ecc['sqlType'][_0x349aa8(0x7a)],'isSelectOnly':_0x173ecc['sqlType'][_0x349aa8(0x68)],'isDangerous':_0x173ecc[_0x349aa8(0x70)][_0x349aa8(0x8d)],'tables':_0x173ecc[_0x349aa8(0x8f)],'parameters':_0x173ecc['parameters'],'message':_0x173ecc['message']};_0x173ecc[_0x349aa8(0x70)][_0x349aa8(0x66)]&&(_0x1e84a[_0x349aa8(0x66)]=_0x173ecc[_0x349aa8(0x70)]['reason']);if(_0x1309d6&&_0x173ecc['valid']){const _0x47ed64=_0x1309d6[_0x349aa8(0x67)](',')[_0x349aa8(0x6b)](_0x339572=>_0x339572[_0x349aa8(0x6d)]())[_0x349aa8(0x72)](Boolean),_0x5dcc68=[],_0x323cd8=[],_0x1653ae=filterDbTableBackedDatasets(await listDatasets(_0x4c409c[_0x349aa8(0x95)])),_0x48d0d0=new Map(_0x1653ae[_0x349aa8(0x6b)](_0x188778=>[_0x188778[_0x349aa8(0x7b)]?.[_0x349aa8(0x7d)]?.['toLowerCase'](),_0x188778]));for(const _0x87794f of _0x173ecc[_0x349aa8(0x8f)]){const _0x25b486=_0x48d0d0[_0x349aa8(0x93)](_0x87794f[_0x349aa8(0x8c)]());!_0x25b486&&_0x5dcc68['push'](_0x349aa8(0x9b)+_0x87794f+'\x22\x20not\x20found\x20in\x20any\x20dataset');}for(const _0x4e11a1 of _0x47ed64){let _0x38bf37;try{_0x38bf37=await getDatasetDetail(_0x4e11a1);}catch{_0x5dcc68[_0x349aa8(0x64)](_0x349aa8(0x8b)+_0x4e11a1+_0x349aa8(0x8e));continue;}assertDatasetIsDbTableBacked(_0x38bf37,'SQL\x20schema\x20validation');const _0x1f24ab=Array[_0x349aa8(0x9c)](_0x38bf37['fields'])?_0x38bf37['fields']:[],_0x39cdaa=new Set(_0x1f24ab['map'](_0x31e4a9=>_0x31e4a9[_0x349aa8(0x76)]?.[_0x349aa8(0x8c)]())),_0x5825a4=_0x38bf37[_0x349aa8(0x7b)]?.[_0x349aa8(0x7d)]||_0x38bf37['tableName']||_0x4e11a1;_0x1e84a['schema:'+_0x5825a4]={'code':_0x4e11a1,'tableName':_0x5825a4,'fieldCount':_0x39cdaa[_0x349aa8(0x65)],'fields':Array[_0x349aa8(0x6c)](_0x39cdaa)};if(_0x3a6f12){const _0x1a12be=normalizeDatasetIndexes(_0x38bf37);_0x323cd8[_0x349aa8(0x64)]({'tableName':_0x5825a4,..._0x1a12be});}}_0x5dcc68[_0x349aa8(0x71)]>0x0&&(_0x1e84a['schemaWarnings']=_0x5dcc68),_0x3a6f12&&(_0x1e84a[_0x349aa8(0x80)]=auditSqlJoinIndexes(_0x3001ed,_0x323cd8));}return{'ok':_0x173ecc[_0x349aa8(0x9d)],'data':_0x1e84a,'message':_0x173ecc[_0x349aa8(0x69)]};}};function normalizeDatasetIndexes(_0x497b10){const _0x25781d=a200_0x3c0717,_0x4ba835=Array['isArray'](_0x497b10?.[_0x25781d(0x83)]?.[_0x25781d(0x89)])?_0x497b10['dataset']['indexes']:Array['isArray'](_0x497b10?.[_0x25781d(0x89)])?_0x497b10[_0x25781d(0x89)]:[],_0x38f1d9=_0x4ba835['flatMap'](_0x3486c2=>{const _0x4a3946=_0x25781d,_0x12f32d=Array['isArray'](_0x3486c2?.[_0x4a3946(0x79)])?_0x3486c2[_0x4a3946(0x79)]:Array['isArray'](_0x3486c2?.[_0x4a3946(0x84)])?_0x3486c2[_0x4a3946(0x84)]:Array[_0x4a3946(0x9c)](_0x3486c2?.[_0x4a3946(0x8a)])?_0x3486c2[_0x4a3946(0x8a)]:[],_0x42e06c=_0x12f32d[_0x4a3946(0x72)](_0x446f1c=>typeof _0x446f1c===_0x4a3946(0x82))['map'](_0x2d135a=>_0x2d135a[_0x4a3946(0x6d)]())[_0x4a3946(0x72)](Boolean);if(_0x42e06c[_0x4a3946(0x71)]===0x0)return[];const _0x56beae=[_0x3486c2?.[_0x4a3946(0x77)],_0x3486c2?.[_0x4a3946(0x91)],_0x3486c2?.[_0x4a3946(0x76)]][_0x4a3946(0x7f)](_0x5d611b=>typeof _0x5d611b==='string'&&_0x5d611b[_0x4a3946(0x6d)]()),_0x11daed=[_0x3486c2?.[_0x4a3946(0x6e)],_0x3486c2?.[_0x4a3946(0x7a)]][_0x4a3946(0x7f)](_0x350fac=>typeof _0x350fac===_0x4a3946(0x82)&&_0x350fac[_0x4a3946(0x6d)]());return[{..._0x56beae?{'name':_0x56beae['trim']()}:{},..._0x11daed?{'type':_0x11daed['trim']()}:{},'columns':_0x42e06c}];}),_0x551705=[..._0x38f1d9],_0xbb38ac=typeof _0x497b10?.[_0x25781d(0x7b)]?.[_0x25781d(0x9f)]==='string'?_0x497b10['dbtableConfig'][_0x25781d(0x9f)][_0x25781d(0x67)](',')[_0x25781d(0x6b)](_0x5d93ad=>_0x5d93ad[_0x25781d(0x6d)]())[_0x25781d(0x72)](Boolean):[];return _0xbb38ac[_0x25781d(0x71)]>0x0&&_0x551705['unshift']({'type':_0x25781d(0x81),'columns':_0xbb38ac}),{'indexes':_0x551705,'metadataAvailable':_0x38f1d9[_0x25781d(0x71)]>0x0};}
1
+ const a200_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 +1 @@
1
- (function(_0x29549f,_0x30170d){const _0x95153b=a201_0x5c2f,_0xea169b=_0x29549f();while(!![]){try{const _0x458f3a=parseInt(_0x95153b(0x1c8))/0x1*(parseInt(_0x95153b(0x1c6))/0x2)+parseInt(_0x95153b(0x1c5))/0x3+parseInt(_0x95153b(0x1c9))/0x4+parseInt(_0x95153b(0x1ca))/0x5*(parseInt(_0x95153b(0x1cb))/0x6)+parseInt(_0x95153b(0x1cc))/0x7*(-parseInt(_0x95153b(0x1cd))/0x8)+-parseInt(_0x95153b(0x1c3))/0x9*(parseInt(_0x95153b(0x1c7))/0xa)+-parseInt(_0x95153b(0x1c4))/0xb*(parseInt(_0x95153b(0x1ce))/0xc);if(_0x458f3a===_0x30170d)break;else _0xea169b['push'](_0xea169b['shift']());}catch(_0x24d013){_0xea169b['push'](_0xea169b['shift']());}}}(a201_0x34b2,0xea793));function a201_0x5c2f(_0x77fac2,_0x22f84e){_0x77fac2=_0x77fac2-0x1c3;const _0x34b2c7=a201_0x34b2();let _0x5c2f30=_0x34b2c7[_0x77fac2];return _0x5c2f30;}import{taskStatus}from'../../commands/task/status.js';function a201_0x34b2(){const _0x2abe60=['63540rdBNVj','9TLgGzV','1265WpftsA','147669kjHuRM','6428TdNypq','1688710sbAxOf','284hcxCgv','5493192oSojsK','145bVJNoj','147642FwNuDi','8141bxYspf','9016YSKeZp'];a201_0x34b2=function(){return _0x2abe60;};return a201_0x34b2();}export const taskDefinitions=[taskStatus];
1
+ (function(_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 +1 @@
1
- const a202_0xce6005=a202_0x58f3;(function(_0xd772b3,_0x481c61){const _0x26b448=a202_0x58f3,_0x165555=_0xd772b3();while(!![]){try{const _0x48c5e6=-parseInt(_0x26b448(0xa3))/0x1+-parseInt(_0x26b448(0x94))/0x2+parseInt(_0x26b448(0x8b))/0x3+parseInt(_0x26b448(0x9d))/0x4+-parseInt(_0x26b448(0x90))/0x5*(-parseInt(_0x26b448(0x9b))/0x6)+-parseInt(_0x26b448(0x9c))/0x7*(-parseInt(_0x26b448(0x99))/0x8)+parseInt(_0x26b448(0xa2))/0x9*(-parseInt(_0x26b448(0x9e))/0xa);if(_0x48c5e6===_0x481c61)break;else _0x165555['push'](_0x165555['shift']());}catch(_0x53fa78){_0x165555['push'](_0x165555['shift']());}}}(a202_0x14b2,0x886ea));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a202_0x58f3(_0x5e0fc2,_0x3f7679){_0x5e0fc2=_0x5e0fc2-0x8a;const _0x14b2bd=a202_0x14b2();let _0x58f3f1=_0x14b2bd[_0x5e0fc2];return _0x58f3f1;}function a202_0x14b2(){const _0x56a563=['compress','204Mhtfvp','3096989DRTwGE','580416NyYXCt','10qJBGBz','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','taskId','appCode','6093963OEYfYT','965988LOyJCD','trim','2425608fNZycj','string',',\x20received\x20','status','str','62360NJqQTT','read','apiError','flagMissing','121242ghuamW','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','task-id','task','cookie','16IkLJce'];a202_0x14b2=function(){return _0x56a563;};return a202_0x14b2();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a202_0xce6005(0x97),'command':a202_0xce6005(0x8e),'description':a202_0xce6005(0x95),'risk':a202_0xce6005(0x91),'defaultOutputFormat':a202_0xce6005(0x9a),'structuredErrors':!![],'flags':[{'name':a202_0xce6005(0x96),'type':a202_0xce6005(0x8c),'required':!![],'description':a202_0xce6005(0x9f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x17bbaf){const _0x329a34=a202_0xce6005;if(!_0x17bbaf[_0x329a34(0x8f)](_0x329a34(0x96))[_0x329a34(0x8a)]())throw CliErrors[_0x329a34(0x93)](_0x329a34(0x96));},async 'execute'(_0x3b03a2){const _0x100a01=a202_0xce6005,_0x4f139a=_0x3b03a2[_0x100a01(0x8f)](_0x100a01(0x96))[_0x100a01(0x8a)](),_0x3737ec=normalizeAsyncTask(await getAsyncTaskStatus(_0x4f139a,_0x3b03a2[_0x100a01(0xa1)],_0x3b03a2[_0x100a01(0x98)]));if(_0x3737ec[_0x100a01(0xa0)]!==_0x4f139a)throw CliErrors[_0x100a01(0x92)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x4f139a+_0x100a01(0x8d)+_0x3737ec[_0x100a01(0xa0)]+'.');const _0x5c5929=buildAsyncTaskStatusCommand(_0x3737ec[_0x100a01(0xa0)],_0x3b03a2['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x3737ec),'data':{'appCode':_0x3b03a2[_0x100a01(0xa1)],..._0x3737ec,'query':_0x3737ec['isTerminal']?null:{'command':_0x5c5929}}};}};
1
+ 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 +1 @@
1
- (function(_0x27b187,_0x2db1ad){const _0x2160fa=a203_0x2b09,_0x531892=_0x27b187();while(!![]){try{const _0x4ec71d=-parseInt(_0x2160fa(0x19d))/0x1+parseInt(_0x2160fa(0x19e))/0x2*(-parseInt(_0x2160fa(0x199))/0x3)+-parseInt(_0x2160fa(0x198))/0x4*(-parseInt(_0x2160fa(0x19a))/0x5)+parseInt(_0x2160fa(0x195))/0x6*(-parseInt(_0x2160fa(0x19c))/0x7)+parseInt(_0x2160fa(0x19b))/0x8*(-parseInt(_0x2160fa(0x19f))/0x9)+parseInt(_0x2160fa(0x196))/0xa+parseInt(_0x2160fa(0x197))/0xb*(parseInt(_0x2160fa(0x194))/0xc);if(_0x4ec71d===_0x2db1ad)break;else _0x531892['push'](_0x531892['shift']());}catch(_0x34f5b1){_0x531892['push'](_0x531892['shift']());}}}(a203_0x5887,0xd3ca0));function a203_0x2b09(_0x183e6b,_0x3debdc){_0x183e6b=_0x183e6b-0x194;const _0x5887b8=a203_0x5887();let _0x2b09c8=_0x5887b8[_0x183e6b];return _0x2b09c8;}function a203_0x5887(){const _0x3cf437=['276iMNZKE','60ukdyah','5526720fQBQij','1320275UlYUlJ','4GWgakC','30uRCnNT','5501890DznjHi','8QCHbyO','1152571cYXqAi','919430FbJLGh','63338MruGVO','5971383HLkJAH'];a203_0x5887=function(){return _0x3cf437;};return a203_0x5887();}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
1
+ function a203_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 +1 @@
1
- function a204_0x3fda(){const _0x2ed42d=['str','775953YQavXE','Pass\x20--tenant-code\x20<code>.','\x20tenant\x20member(s)','Found\x20','length','read','164YZJiSv','members-list','tenant-code','118982EKJLWt','9oLyVSd','27813cGeBob','tenant','3648666fahkyt','trim','110moQJQF','1008160xdNmJT','232635lPfjOS','576135sIwCxS'];a204_0x3fda=function(){return _0x2ed42d;};return a204_0x3fda();}function a204_0x545a(_0x5767da,_0x2ffc48){_0x5767da=_0x5767da-0xa5;const _0x3fda15=a204_0x3fda();let _0x545a15=_0x3fda15[_0x5767da];return _0x545a15;}const a204_0x48bfd3=a204_0x545a;(function(_0x5aebca,_0x508eda){const _0x245ed8=a204_0x545a,_0x126aa7=_0x5aebca();while(!![]){try{const _0x59e7a3=parseInt(_0x245ed8(0xa8))/0x1*(-parseInt(_0x245ed8(0xa7))/0x2)+parseInt(_0x245ed8(0xa9))/0x3*(-parseInt(_0x245ed8(0xb8))/0x4)+-parseInt(_0x245ed8(0xaf))/0x5+parseInt(_0x245ed8(0xab))/0x6+-parseInt(_0x245ed8(0xb0))/0x7+-parseInt(_0x245ed8(0xae))/0x8+parseInt(_0x245ed8(0xb2))/0x9*(parseInt(_0x245ed8(0xad))/0xa);if(_0x59e7a3===_0x508eda)break;else _0x126aa7['push'](_0x126aa7['shift']());}catch(_0x45b3f0){_0x126aa7['push'](_0x126aa7['shift']());}}}(a204_0x3fda,0x5e444));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a204_0x48bfd3(0xaa),'command':a204_0x48bfd3(0xa5),'description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a204_0x48bfd3(0xb7),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a204_0x48bfd3(0xa6),'type':'string','required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x4d1d57){const _0x47e49f=a204_0x48bfd3;if(!_0x4d1d57[_0x47e49f(0xb1)](_0x47e49f(0xa6))[_0x47e49f(0xac)]())throw CliErrors['flagMissing']('tenant-code',_0x47e49f(0xb3));},async 'execute'(_0x363965){const _0x427953=a204_0x48bfd3,_0x166994=_0x363965['str']('tenant-code')['trim'](),_0x2fb344=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x166994,_0x2fb344);const _0xc0224b=projectTenantMembers(await listTenantDirectoryMembers(_0x166994));return{'ok':!![],'data':{'tenantCode':_0x166994,'items':_0xc0224b,'totalCount':_0xc0224b[_0x427953(0xb6)]},'message':_0x427953(0xb5)+_0xc0224b[_0x427953(0xb6)]+_0x427953(0xb4)};}};
1
+ const a204_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 +1 @@
1
- (function(_0x4c4ff8,_0x228016){const _0x5b9302=a205_0x493b,_0x4d6be8=_0x4c4ff8();while(!![]){try{const _0x8c2e63=parseInt(_0x5b9302(0x17d))/0x1+-parseInt(_0x5b9302(0x172))/0x2*(-parseInt(_0x5b9302(0x17a))/0x3)+-parseInt(_0x5b9302(0x189))/0x4*(-parseInt(_0x5b9302(0x18a))/0x5)+-parseInt(_0x5b9302(0x176))/0x6*(-parseInt(_0x5b9302(0x185))/0x7)+parseInt(_0x5b9302(0x174))/0x8+-parseInt(_0x5b9302(0x177))/0x9*(-parseInt(_0x5b9302(0x184))/0xa)+-parseInt(_0x5b9302(0x17c))/0xb;if(_0x8c2e63===_0x228016)break;else _0x4d6be8['push'](_0x4d6be8['shift']());}catch(_0x363612){_0x4d6be8['push'](_0x4d6be8['shift']());}}}(a205_0x563e,0x44c97));import{CliErrors}from'../../errors.js';function a205_0x563e(){const _0x27af9f=['5JKjvIQ','125624hczcFu','adminFlag','3456616pWMjWp','userId','12JAOVIy','72JstgbI','role','validation','15JDCHBB','ADMIN','13311903zlLvoT','174156YLnCFV','displayName','Tenant\x20\x22','nickname','set','status','trim','384310mkBDri','426027cpGvWU','some','username','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','569844znKBru'];a205_0x563e=function(){return _0x27af9f;};return a205_0x563e();}function textOrNull(_0x5a0749){const _0x30f991=a205_0x493b,_0x566280=_0x5a0749?.[_0x30f991(0x183)]();return _0x566280?_0x566280:null;}function a205_0x493b(_0x52e0f1,_0x4aed69){_0x52e0f1=_0x52e0f1-0x172;const _0x563e7c=a205_0x563e();let _0x493b26=_0x563e7c[_0x52e0f1];return _0x493b26;}export function projectTenantMembers(_0xbcfea7){const _0x393fe9=a205_0x493b,_0x4e40f2=new Map();for(const _0x2b43d2 of _0xbcfea7){const _0x467fde=Number(_0x2b43d2[_0x393fe9(0x175)]);if(!Number['isFinite'](_0x467fde)||_0x467fde<=0x0)continue;const _0x68944a={'userId':_0x467fde,'username':textOrNull(_0x2b43d2[_0x393fe9(0x187)]),'displayName':textOrNull(_0x2b43d2[_0x393fe9(0x180)]),'role':_0x2b43d2[_0x393fe9(0x173)]===!![]?_0x393fe9(0x17b):'MEMBER','status':textOrNull(_0x2b43d2[_0x393fe9(0x182)])},_0x78faf=_0x4e40f2['get'](_0x467fde);if(!_0x78faf){_0x4e40f2[_0x393fe9(0x181)](_0x467fde,_0x68944a);continue;}_0x78faf[_0x393fe9(0x187)]??=_0x68944a['username'],_0x78faf['displayName']??=_0x68944a[_0x393fe9(0x17e)],_0x78faf[_0x393fe9(0x182)]??=_0x68944a['status'];if(_0x68944a['role']===_0x393fe9(0x17b))_0x78faf[_0x393fe9(0x178)]='ADMIN';}return[..._0x4e40f2['values']()]['sort']((_0x2d2ae4,_0x421e1f)=>_0x2d2ae4[_0x393fe9(0x175)]-_0x421e1f[_0x393fe9(0x175)]);}export function assertTenantAccessible(_0x26004e,_0x3dc9a9){const _0x87022d=a205_0x493b;if(_0x3dc9a9[_0x87022d(0x186)](_0x1a2e9e=>_0x1a2e9e['tenantCode']===_0x26004e))return;throw CliErrors[_0x87022d(0x179)](_0x87022d(0x17f)+_0x26004e+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x87022d(0x188));}
1
+ function 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 +1 @@
1
- const a206_0x4cba9b=a206_0x201b;function a206_0x13f0(){const _0x108a17=['1997716yanVrY','apiError','172758VykRHO','231mQBfPH','2109207pNSfBV','1aRctPl','user-account','6064195lwlPQq','2799418HSROBd','bind','3268216uglJtA','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','string','2040saHeur','dingding-sandbox-bind','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','POST','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','ding-talk-user-id','--ding-talk-user-id\x20cannot\x20be\x20empty.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','write','validation','trim','str','109971HGRHSE'];a206_0x13f0=function(){return _0x108a17;};return a206_0x13f0();}(function(_0x3c837f,_0x929f9b){const _0x2b1033=a206_0x201b,_0x3d3359=_0x3c837f();while(!![]){try{const _0x110e5c=parseInt(_0x2b1033(0x1b6))/0x1*(parseInt(_0x2b1033(0x1b9))/0x2)+parseInt(_0x2b1033(0x1b5))/0x3+parseInt(_0x2b1033(0x1cb))/0x4+parseInt(_0x2b1033(0x1b8))/0x5+-parseInt(_0x2b1033(0x1b3))/0x6*(parseInt(_0x2b1033(0x1b4))/0x7)+parseInt(_0x2b1033(0x1bb))/0x8+parseInt(_0x2b1033(0x1ca))/0x9*(-parseInt(_0x2b1033(0x1be))/0xa);if(_0x110e5c===_0x929f9b)break;else _0x3d3359['push'](_0x3d3359['shift']());}catch(_0x48f199){_0x3d3359['push'](_0x3d3359['shift']());}}}(a206_0x13f0,0xbe9b8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a206_0x201b(_0xe14276,_0x1ef904){_0xe14276=_0xe14276-0x1b2;const _0x13f0d5=a206_0x13f0();let _0x201b14=_0x13f0d5[_0xe14276];return _0x201b14;}const PROVIDER_ID='dingtalk',CURRENT_BINDING_WARNING=a206_0x4cba9b(0x1c0);function readDingTalkUserId(_0x4925d1){const _0xb7cb97=a206_0x4cba9b,_0x468efc=_0x4925d1[_0xb7cb97(0x1c9)]('ding-talk-user-id')[_0xb7cb97(0x1c8)]();if(!_0x468efc)throw CliErrors[_0xb7cb97(0x1c7)](_0xb7cb97(0x1c4),'Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x468efc;}function buildBindingData(_0x2b4fd8,_0x3fd673){const _0x28f9e0=a206_0x4cba9b;return{'operation':_0x28f9e0(0x1ba),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x2b4fd8},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x2b4fd8,'bound':!![]},'dryRun':_0x3fd673,'backend':{'method':_0x28f9e0(0x1c1),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a206_0x4cba9b(0x1b7),'command':a206_0x4cba9b(0x1bf),'description':a206_0x4cba9b(0x1c2),'risk':a206_0x4cba9b(0x1c6),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a206_0x4cba9b(0x1c3),'type':a206_0x4cba9b(0x1bd),'required':!![],'description':a206_0x4cba9b(0x1c5)}],async 'validate'(_0x5dfe06){readDingTalkUserId(_0x5dfe06);},async 'dryRun'(_0x21d518){const _0x5d547e=a206_0x4cba9b,_0x2269d0=readDingTalkUserId(_0x21d518);return asDryRunResult(buildBindingData(_0x2269d0,!![]),{'method':_0x5d547e(0x1c1),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x9dcf4){const _0x338251=a206_0x4cba9b,_0x4e8e56=readDingTalkUserId(_0x9dcf4),_0x53b9b0=await bindDingTalkSandboxAccount(_0x4e8e56);if(_0x53b9b0!==!![])throw CliErrors[_0x338251(0x1b2)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.',_0x338251(0x1bc));return{'ok':!![],'data':buildBindingData(_0x4e8e56,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
1
+ 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 +1 @@
1
- (function(_0x528e9e,_0x5b9399){const _0x4e7c64=a207_0x153e,_0x591a08=_0x528e9e();while(!![]){try{const _0x1cb6ed=parseInt(_0x4e7c64(0x19a))/0x1*(-parseInt(_0x4e7c64(0x19e))/0x2)+-parseInt(_0x4e7c64(0x19b))/0x3+parseInt(_0x4e7c64(0x198))/0x4+parseInt(_0x4e7c64(0x199))/0x5*(parseInt(_0x4e7c64(0x1a0))/0x6)+-parseInt(_0x4e7c64(0x1a1))/0x7*(parseInt(_0x4e7c64(0x1a2))/0x8)+-parseInt(_0x4e7c64(0x19d))/0x9+parseInt(_0x4e7c64(0x19c))/0xa*(parseInt(_0x4e7c64(0x19f))/0xb);if(_0x1cb6ed===_0x5b9399)break;else _0x591a08['push'](_0x591a08['shift']());}catch(_0x3e653a){_0x591a08['push'](_0x591a08['shift']());}}}(a207_0x1450,0x8f8e0));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a207_0x153e(_0x45c684,_0x11a07c){_0x45c684=_0x45c684-0x198;const _0x1450d7=a207_0x1450();let _0x153ee2=_0x1450d7[_0x45c684];return _0x153ee2;}export const userAccountDefinitions=[dingTalkSandboxBind];function a207_0x1450(){const _0x5325bc=['2764119ckvjWw','15320tDiNVl','8322210IJDmIR','995262aNPbrC','14146mUFoba','3323850PtePZG','6853378EEDlwa','8csGojI','3330584SCMvsv','10fiEQfW','1ROccCJ'];a207_0x1450=function(){return _0x5325bc;};return a207_0x1450();}
1
+ (function(_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 +1 @@
1
- const a208_0x5590ae=a208_0x13d8;(function(_0x847e8d,_0x5d9696){const _0xd5a3e2=a208_0x13d8,_0x2f6ea1=_0x847e8d();while(!![]){try{const _0xc68f2=-parseInt(_0xd5a3e2(0x18d))/0x1*(-parseInt(_0xd5a3e2(0x197))/0x2)+parseInt(_0xd5a3e2(0x196))/0x3*(parseInt(_0xd5a3e2(0x19b))/0x4)+-parseInt(_0xd5a3e2(0x18e))/0x5+parseInt(_0xd5a3e2(0x191))/0x6*(-parseInt(_0xd5a3e2(0x190))/0x7)+parseInt(_0xd5a3e2(0x199))/0x8+-parseInt(_0xd5a3e2(0x18f))/0x9*(-parseInt(_0xd5a3e2(0x194))/0xa)+parseInt(_0xd5a3e2(0x19a))/0xb*(-parseInt(_0xd5a3e2(0x195))/0xc);if(_0xc68f2===_0x5d9696)break;else _0x2f6ea1['push'](_0x2f6ea1['shift']());}catch(_0x12a53c){_0x2f6ea1['push'](_0x2f6ea1['shift']());}}}(a208_0x2e82,0x9afda));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a208_0x5590ae(0x19d),'command':a208_0x5590ae(0x192),'description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a208_0x5590ae(0x19c),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a208_0x5590ae(0x198),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x45b1d6=>validateAppName(_0x45b1d6,a208_0x5590ae(0x193)),'execute':_0x20a8f7=>runAppAdd(_0x20a8f7,a208_0x5590ae(0x193))};function a208_0x13d8(_0xb98408,_0x533e0f){_0xb98408=_0xb98408-0x18d;const _0x2e82a9=a208_0x2e82();let _0x13d847=_0x2e82a9[_0xb98408];return _0x13d847;}function a208_0x2e82(){const _0x30dc55=['add','workspace\x20add','10gNopfE','48fLWJTG','12BhAfyG','46hfTAGL','name','5394112BaKhkf','4540778yJPMlM','1150428xQcnjy','write','workspace','44153zCUlOV','3797855BGvsMH','6725610pFboco','3793272wcrVib','6igpoSS'];a208_0x2e82=function(){return _0x30dc55;};return a208_0x2e82();}
1
+ const a208_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 +1 @@
1
- const a209_0x154ebc=a209_0x1b3b;(function(_0x2f300c,_0x2ff514){const _0x37cade=a209_0x1b3b,_0x21e4e9=_0x2f300c();while(!![]){try{const _0x2e4ae2=-parseInt(_0x37cade(0x1ee))/0x1+-parseInt(_0x37cade(0x20f))/0x2+parseInt(_0x37cade(0x209))/0x3+parseInt(_0x37cade(0x202))/0x4+-parseInt(_0x37cade(0x1e9))/0x5+parseInt(_0x37cade(0x1f8))/0x6*(-parseInt(_0x37cade(0x1e7))/0x7)+parseInt(_0x37cade(0x20c))/0x8*(parseInt(_0x37cade(0x1fc))/0x9);if(_0x2e4ae2===_0x2ff514)break;else _0x21e4e9['push'](_0x21e4e9['shift']());}catch(_0x97230f){_0x21e4e9['push'](_0x21e4e9['shift']());}}}(a209_0x20a8,0xca198));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../../config/deployment-sync.js';function a209_0x1b3b(_0x15b9ab,_0x46a87b){_0x15b9ab=_0x15b9ab-0x1e1;const _0x20a8a6=a209_0x20a8();let _0x1b3b61=_0x20a8a6[_0x15b9ab];return _0x1b3b61;}const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=[a209_0x154ebc(0x1eb),a209_0x154ebc(0x211),a209_0x154ebc(0x1fd),a209_0x154ebc(0x1fb),a209_0x154ebc(0x1e6),a209_0x154ebc(0x1f6),'locale',a209_0x154ebc(0x204)],workspaceFlags=[{'name':a209_0x154ebc(0x1fa),'type':'string','description':a209_0x154ebc(0x1ed)},{'name':a209_0x154ebc(0x1eb),'type':a209_0x154ebc(0x1f1),'description':a209_0x154ebc(0x215)},{'name':a209_0x154ebc(0x211),'type':'string','description':a209_0x154ebc(0x203),'enum':[...RABETBASE_ENV_VALUES]},{'name':a209_0x154ebc(0x1fd),'type':a209_0x154ebc(0x1f1),'description':a209_0x154ebc(0x1f0)},{'name':'defaultFormat','type':a209_0x154ebc(0x1f1),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a209_0x154ebc(0x1e6),'type':a209_0x154ebc(0x1f4),'description':a209_0x154ebc(0x1e5)},{'name':a209_0x154ebc(0x1f6),'type':a209_0x154ebc(0x1f1),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':a209_0x154ebc(0x1f1),'description':'App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'},...getDeploymentSyncProfileFlagDefs()];function isRecord(_0x8d72e7){const _0x4a019d=a209_0x154ebc;return!!_0x8d72e7&&typeof _0x8d72e7===_0x4a019d(0x1fe)&&!Array['isArray'](_0x8d72e7);}function a209_0x20a8(){const _0x3396a7=['join','write','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--appcode\x20<code>`.','project','\x20--app\x20','Missing\x20workspace\x20app\x20selector.','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','pageSize','28iskvco','App\x20\x22','3013630bhYRIX','\x20workspace\x20','appcode','locale','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','850027xEjRZW','\x20(appcode:\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','string','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','initialized','number','workspace.','riskLevel','use','2270910FbfPgT','globalConfig','app','format','16947bhMNxe','apiDir','object','str','validation','init','6398536OIWGnw','Target\x20environment','deploymentSync','\x20workspace\x20use\x20--app\x20<name>`.','keys','apps','Initialize\x20the\x20current\x20workspace\x20app\x20binding','1906083ULguLG','updated','workspace','6736gEtmWM','Use\x20`','Workspace\x20','51976kLiXbe','trim','env','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'];a209_0x20a8=function(){return _0x3396a7;};return a209_0x20a8();}function assertValidAppcode(_0x1696dd){const _0x1647f0=a209_0x154ebc,{valid:_0x50b778,message:_0x36d922}=validateAppcode(_0x1696dd);if(!_0x50b778)throw CliErrors[_0x1647f0(0x200)]('Invalid\x20appcode:\x20'+_0x1696dd,_0x36d922);}function sanitizeProfile(_0x5412e7){if(!isRecord(_0x5412e7))return{};const _0x2b9997={};for(const _0x5a6501 of SAFE_PROFILE_KEYS){if(_0x5412e7[_0x5a6501]!==undefined)_0x2b9997[_0x5a6501]=_0x5412e7[_0x5a6501];}return _0x2b9997;}function cloneProfile(_0x4f8ca2){return isRecord(_0x4f8ca2)?{..._0x4f8ca2}:{};}function collectWorkspaceProfileOverrides(_0x1b0ec5){const _0x110fec=a209_0x154ebc,_0x497f0c={},_0x1f2464=_0x1b0ec5['str'](_0x110fec(0x211)),_0x12311f=_0x1b0ec5[_0x110fec(0x1ff)](_0x110fec(0x1fd)),_0x2f02ff=_0x1b0ec5['str']('defaultFormat'),_0x3cbab4=_0x1b0ec5['flag'](_0x110fec(0x1e6)),_0x44fba8=_0x1b0ec5[_0x110fec(0x1ff)]('riskLevel'),_0x3798db=_0x1b0ec5[_0x110fec(0x1ff)](_0x110fec(0x1ec));if(_0x1f2464)_0x497f0c[_0x110fec(0x211)]=_0x1f2464;if(_0x12311f)_0x497f0c[_0x110fec(0x1fd)]=_0x12311f;if(_0x2f02ff)_0x497f0c[_0x110fec(0x1fb)]=_0x2f02ff;if(_0x3cbab4!==undefined&&_0x3cbab4!=='')_0x497f0c[_0x110fec(0x1e6)]=Number(_0x3cbab4);if(_0x44fba8)_0x497f0c['riskLevel']=_0x44fba8;if(_0x3798db)_0x497f0c[_0x110fec(0x1ec)]=_0x3798db;const _0x2914fd=collectDeploymentSyncProfile(_0x3c2eec=>_0x1b0ec5[_0x110fec(0x1ff)](_0x3c2eec));if(_0x2914fd)_0x497f0c[_0x110fec(0x204)]=_0x2914fd;return _0x497f0c;}async function validateWorkspaceArgs(_0x50c941){const _0x2944e7=a209_0x154ebc,_0x4e2a57=_0x50c941[_0x2944e7(0x1ff)](_0x2944e7(0x1fa))[_0x2944e7(0x210)](),_0x9f0e69=_0x50c941[_0x2944e7(0x1ff)](_0x2944e7(0x1eb))[_0x2944e7(0x210)]();if(!_0x4e2a57&&!_0x9f0e69)throw CliErrors[_0x2944e7(0x200)](_0x2944e7(0x1e4),_0x2944e7(0x20d)+CLI_BIN_NAME+_0x2944e7(0x212)+CLI_BIN_NAME+_0x2944e7(0x205));if(_0x9f0e69)assertValidAppcode(_0x9f0e69);}function resolveKnownApps(){const _0x40fb9e=a209_0x154ebc,{config:_0x9eb78,layers:_0x208c3f}=readRawConfigWithLayers(),_0xb8af2b=isRecord(_0x9eb78[_0x40fb9e(0x207)])?_0x9eb78[_0x40fb9e(0x207)]:{},_0x34aeab=isRecord(_0x208c3f[_0x40fb9e(0x1f9)][_0x40fb9e(0x207)])?_0x208c3f['globalConfig'][_0x40fb9e(0x207)]:{};return{..._0x34aeab,..._0xb8af2b};}async function configureWorkspace(_0x102edb,_0x5aee1f){const _0x3bc106=a209_0x154ebc,_0x2469c5=_0x102edb['str']('app')[_0x3bc106(0x210)](),_0x5ce9d8=_0x102edb['str'](_0x3bc106(0x1eb))['trim'](),_0x13a388=_0x2469c5||_0x5ce9d8;if(!_0x13a388)throw CliErrors[_0x3bc106(0x200)](_0x3bc106(0x1e4),_0x3bc106(0x20d)+CLI_BIN_NAME+_0x3bc106(0x212)+CLI_BIN_NAME+_0x3bc106(0x205));if(_0x5ce9d8)assertValidAppcode(_0x5ce9d8);const _0x4efc35=resolveWriteConfigPath(_0x3bc106(0x1e2)),_0x150814=readConfigFile(_0x4efc35),_0x183172=resolveKnownApps(),_0x29d57f=isRecord(_0x150814[_0x3bc106(0x207)])?{..._0x150814[_0x3bc106(0x207)]}:{},_0x2f9a0b=cloneProfile(_0x29d57f[_0x13a388]),_0x5d87a6=sanitizeProfile(_0x183172[_0x13a388]),_0xd374d1=_0x5ce9d8?{}:_0x5d87a6,_0x21cb3d=_0x5ce9d8||_0xd374d1[_0x3bc106(0x1eb)];if(!_0x21cb3d){const _0x16bb54=Object[_0x3bc106(0x206)](_0x183172),_0x29fafa=_0x16bb54['length']===0x0?'Use\x20`'+CLI_BIN_NAME+_0x3bc106(0x1ea)+_0x5aee1f+_0x3bc106(0x1e3)+_0x13a388+_0x3bc106(0x1e1):_0x3bc106(0x1f2)+_0x16bb54[_0x3bc106(0x213)](',\x20');throw CliErrors[_0x3bc106(0x200)](_0x3bc106(0x1e8)+_0x13a388+'\x22\x20not\x20found.',_0x29fafa);}assertValidAppcode(String(_0x21cb3d));const _0x402d6a={..._0xd374d1,..._0x2f9a0b,'appcode':String(_0x21cb3d),...collectWorkspaceProfileOverrides(_0x102edb)};return _0x29d57f[_0x13a388]=_0x402d6a,_0x150814['apps']=_0x29d57f,normalizeStoredDefaultApp(_0x150814,_0x13a388),delete _0x150814[_0x3bc106(0x1eb)],delete _0x150814[_0x3bc106(0x1fa)],_0x402d6a[_0x3bc106(0x211)]&&(_0x150814[_0x3bc106(0x211)]=_0x402d6a[_0x3bc106(0x211)]),writeConfigFile(_0x4efc35,_0x150814),{'ok':!![],'message':_0x3bc106(0x20e)+(_0x5aee1f==='init'?_0x3bc106(0x1f3):_0x3bc106(0x20a))+':\x20'+_0x13a388+_0x3bc106(0x1ef)+_0x402d6a['appcode']+').\x20Config:\x20'+_0x4efc35+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0x3bc106(0x1f5)+_0x5aee1f,'configPath':_0x4efc35,'app':_0x13a388,'appcode':_0x402d6a[_0x3bc106(0x1eb)],'env':_0x402d6a[_0x3bc106(0x211)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a209_0x154ebc(0x20b),'command':'init','description':a209_0x154ebc(0x208),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x9b9fbb=>configureWorkspace(_0x9b9fbb,a209_0x154ebc(0x201))},workspaceUseDefinition={'service':a209_0x154ebc(0x20b),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a209_0x154ebc(0x214),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x542c9a=>configureWorkspace(_0x542c9a,a209_0x154ebc(0x1f7))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a209_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 +1 @@
1
- const a210_0x3b686b=a210_0x2de1;function a210_0x2de1(_0x27940e,_0x697d71){_0x27940e=_0x27940e-0x147;const _0x57c629=a210_0x57c6();let _0x2de1fd=_0x57c629[_0x27940e];return _0x2de1fd;}(function(_0x5ce726,_0x1e1b39){const _0x49c658=a210_0x2de1,_0x2e8d69=_0x5ce726();while(!![]){try{const _0xe291a0=parseInt(_0x49c658(0x154))/0x1*(-parseInt(_0x49c658(0x155))/0x2)+parseInt(_0x49c658(0x151))/0x3*(-parseInt(_0x49c658(0x153))/0x4)+-parseInt(_0x49c658(0x157))/0x5*(parseInt(_0x49c658(0x150))/0x6)+-parseInt(_0x49c658(0x14e))/0x7+-parseInt(_0x49c658(0x14d))/0x8*(parseInt(_0x49c658(0x14c))/0x9)+-parseInt(_0x49c658(0x152))/0xa+-parseInt(_0x49c658(0x148))/0xb*(-parseInt(_0x49c658(0x14a))/0xc);if(_0xe291a0===_0x1e1b39)break;else _0x2e8d69['push'](_0x2e8d69['shift']());}catch(_0x5725d9){_0x2e8d69['push'](_0x2e8d69['shift']());}}}(a210_0x57c6,0xf2f26));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a210_0x57c6(){const _0x535aee=['83657GQtfDD','42ygsXRN','workspace\x20remove','36860ynRGdz','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','97517717fhaDDQ','remove','12dlnlIO','write','209412MpxZSP','328wsbVww','11983811LyUbiu','App\x20profile\x20name\x20to\x20remove','1206iUMYEm','661209IgxeNx','8635920BeKTiN','20cdookZ'];a210_0x57c6=function(){return _0x535aee;};return a210_0x57c6();}export const workspaceRemoveDefinition={'service':'workspace','command':a210_0x3b686b(0x149),'description':a210_0x3b686b(0x147),'risk':a210_0x3b686b(0x14b),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a210_0x3b686b(0x14f),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x25a1c7=>validateAppName(_0x25a1c7,a210_0x3b686b(0x156)),'execute':_0x464ae8=>runAppRemove(_0x464ae8,a210_0x3b686b(0x156))};
1
+ function a210_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 +1 @@
1
- const a211_0x360c34=a211_0x3514;function a211_0x3514(_0x22df1d,_0x5607d4){_0x22df1d=_0x22df1d-0x1ae;const _0x452361=a211_0x4523();let _0x3514c4=_0x452361[_0x22df1d];return _0x3514c4;}(function(_0x2d6537,_0x385220){const _0x1edd47=a211_0x3514,_0x31d321=_0x2d6537();while(!![]){try{const _0x595564=-parseInt(_0x1edd47(0x1b2))/0x1*(parseInt(_0x1edd47(0x1be))/0x2)+-parseInt(_0x1edd47(0x1b0))/0x3*(parseInt(_0x1edd47(0x1c0))/0x4)+parseInt(_0x1edd47(0x1b3))/0x5*(-parseInt(_0x1edd47(0x1b8))/0x6)+parseInt(_0x1edd47(0x1c2))/0x7+-parseInt(_0x1edd47(0x1c1))/0x8*(parseInt(_0x1edd47(0x1ce))/0x9)+-parseInt(_0x1edd47(0x1b6))/0xa+-parseInt(_0x1edd47(0x1b7))/0xb*(-parseInt(_0x1edd47(0x1c5))/0xc);if(_0x595564===_0x385220)break;else _0x31d321['push'](_0x31d321['shift']());}catch(_0x1a1f6f){_0x31d321['push'](_0x31d321['shift']());}}}(a211_0x4523,0x744f6));import{CliErrors}from'../errors.js';function a211_0x4523(){const _0x49b77f=['deployment-target-env','deploymentSync\x20must\x20contain\x20dbLinkId\x20and\x20targetEnv.','2prPaOJ','test','56UgYlka','149600kPhMVW','3287186cmIbIp','join','dbLinkId','61704MXHmlf','number','--deployment-db-id\x20must\x20be\x20a\x20positive\x20safe\x20integer.','object','validation','string','--deployment-target-env\x20must\x20be\x20one\x20of:\x20','Base\x20dblink\x20ID\x20whose\x20server-side\x20environment\x20mapping\x20selects\x20the\x20automatic\x20sync\x20target','deployment-db-id','279ACyDeU','Production\x20and\x20direct\x20targets\x20must\x20use\x20`rabetbase\x20deployment\x20sync`\x20with\x20explicit\x20confirmation.','Non-production\x20target\x20selected\x20by\x20the\x20server-side\x20environment\x20mapping','94251JSyQNm','trim','917851ywRnUI','7685sCVmoQ','pre','includes','6969780FKeMXg','6699xRldox','1914pufoNV','targetEnv','isSafeInteger','dev'];a211_0x4523=function(){return _0x49b77f;};return a211_0x4523();}export const AUTO_DEPLOYMENT_TARGET_ENVS=[a211_0x360c34(0x1bb),a211_0x360c34(0x1bf),a211_0x360c34(0x1b4)];export function getDeploymentSyncProfileFlagDefs(){const _0x2ea599=a211_0x360c34;return[{'name':_0x2ea599(0x1cd),'type':_0x2ea599(0x1c6),'description':_0x2ea599(0x1cc)},{'name':_0x2ea599(0x1bc),'type':_0x2ea599(0x1ca),'enum':[...AUTO_DEPLOYMENT_TARGET_ENVS],'description':_0x2ea599(0x1af)}];}export function collectDeploymentSyncProfile(_0x13a081){const _0x1a5b89=a211_0x360c34,_0x43ca68=_0x13a081('deployment-db-id')[_0x1a5b89(0x1b1)](),_0xc76712=_0x13a081('deployment-target-env')[_0x1a5b89(0x1b1)]();if(!_0x43ca68&&!_0xc76712)return undefined;return validateDeploymentSyncProfile({'dbLinkId':_0x43ca68?Number(_0x43ca68):undefined,'targetEnv':_0xc76712||undefined});}export function validateDeploymentSyncProfile(_0x54f44e){const _0x16c569=a211_0x360c34;if(!_0x54f44e||typeof _0x54f44e!==_0x16c569(0x1c8)||Array['isArray'](_0x54f44e))throw CliErrors[_0x16c569(0x1c9)](_0x16c569(0x1bd));const _0x7b7eb0=_0x54f44e,_0x4fdeba=Number(_0x7b7eb0[_0x16c569(0x1c4)]);if(!Number[_0x16c569(0x1ba)](_0x4fdeba)||_0x4fdeba<=0x0)throw CliErrors['validation'](_0x16c569(0x1c7));const _0x157037=typeof _0x7b7eb0[_0x16c569(0x1b9)]===_0x16c569(0x1ca)?_0x7b7eb0[_0x16c569(0x1b9)][_0x16c569(0x1b1)]():'';if(!AUTO_DEPLOYMENT_TARGET_ENVS[_0x16c569(0x1b5)](_0x157037))throw CliErrors['validation'](_0x16c569(0x1cb)+AUTO_DEPLOYMENT_TARGET_ENVS[_0x16c569(0x1c3)](',\x20')+'.',_0x16c569(0x1ae));return{'dbLinkId':_0x4fdeba,'targetEnv':_0x157037};}
1
+ 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,4 +1,4 @@
1
- export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
1
+ export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "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
- function a212_0x23c9(){const _0xb89dac=['kb-domain','utf8','validation','length','13185FhiilK','cwd','includes','Allowed\x20fields:\x20','api-domain','Unsupported\x20domain\x20config\x20field(s):\x20','Invalid\x20','userDomain','local-domain','2491145VKfccO','449175UoZzYb','certificate-domain','400arnGxL',':\x20\x22','keys','https:','1198880UiEvFd','origin','apiDomain','string','runtimeDomain','skillDomain','platformDomain','trim','certificateDomain','83072oiIYWu','join','skill-domain','localDomain','runtime-domain','agentDomain','search','password','object','skillHubDomain','appDomain','app-domain','Domain\x20config\x20file\x20not\x20found:\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','filter','368AbGSpM','21VReTLJ','hash','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','parse','username','pathname','1083102hzToZQ','kbDomain','196605zVyQTV','user-domain'];a212_0x23c9=function(){return _0xb89dac;};return a212_0x23c9();}const a212_0x1ded44=a212_0x2d95;(function(_0x33cbd3,_0x2c2d38){const _0x3250d7=a212_0x2d95,_0x21a557=_0x33cbd3();while(!![]){try{const _0x217e9a=parseInt(_0x3250d7(0x134))/0x1+-parseInt(_0x3250d7(0x143))/0x2+-parseInt(_0x3250d7(0x12a))/0x3*(parseInt(_0x3250d7(0x11b))/0x4)+parseInt(_0x3250d7(0x133))/0x5+parseInt(_0x3250d7(0x122))/0x6*(parseInt(_0x3250d7(0x11c))/0x7)+parseInt(_0x3250d7(0x13a))/0x8+-parseInt(_0x3250d7(0x124))/0x9*(parseInt(_0x3250d7(0x136))/0xa);if(_0x217e9a===_0x2c2d38)break;else _0x21a557['push'](_0x21a557['shift']());}catch(_0x2472a5){_0x21a557['push'](_0x21a557['shift']());}}}(a212_0x23c9,0x4dea3));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';function a212_0x2d95(_0x576a28,_0x2cbc70){_0x576a28=_0x576a28-0x10f;const _0x23c927=a212_0x23c9();let _0x2d95aa=_0x23c927[_0x576a28];return _0x2d95aa;}import{CliErrors}from'../errors.js';export const DOMAIN_CONFIG_FIELDS=[a212_0x1ded44(0x131),a212_0x1ded44(0x13c),a212_0x1ded44(0x13e),a212_0x1ded44(0x13f),a212_0x1ded44(0x123),a212_0x1ded44(0x116),a212_0x1ded44(0x10f),a212_0x1ded44(0x142)];const DOMAIN_FLAGS={'userDomain':a212_0x1ded44(0x125),'apiDomain':a212_0x1ded44(0x12e),'runtimeDomain':a212_0x1ded44(0x110),'skillDomain':a212_0x1ded44(0x145),'kbDomain':a212_0x1ded44(0x126),'appDomain':a212_0x1ded44(0x117),'localDomain':a212_0x1ded44(0x132),'certificateDomain':a212_0x1ded44(0x135)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a212_0x1ded44(0x111),a212_0x1ded44(0x140),a212_0x1ded44(0x115)];export function normalizeDomainOrigin(_0x1dcbb2,_0x1d1b58){const _0x325424=a212_0x1ded44;if(typeof _0x1d1b58!==_0x325424(0x13d)||!_0x1d1b58['trim']())throw CliErrors[_0x325424(0x128)](_0x325424(0x130)+_0x1dcbb2+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x341d80;try{_0x341d80=new URL(_0x1d1b58[_0x325424(0x141)]());}catch{throw CliErrors[_0x325424(0x128)](_0x325424(0x130)+_0x1dcbb2+_0x325424(0x137)+_0x1d1b58+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x341d80['protocol']!==_0x325424(0x139)||_0x341d80[_0x325424(0x120)]||_0x341d80[_0x325424(0x113)]||_0x341d80['pathname']!=='/'&&_0x341d80[_0x325424(0x121)]!==''||_0x341d80[_0x325424(0x112)]||_0x341d80[_0x325424(0x11d)])throw CliErrors['validation'](_0x325424(0x130)+_0x1dcbb2+_0x325424(0x119),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x341d80[_0x325424(0x13b)];}export function readDomainConfig(_0x231221){const _0x18006b=a212_0x1ded44,_0x42140f=isAbsolute(_0x231221)?_0x231221:resolve(process[_0x18006b(0x12b)](),_0x231221);if(!existsSync(_0x42140f))throw CliErrors[_0x18006b(0x128)](_0x18006b(0x118)+_0x42140f);let _0x4c5357;try{_0x4c5357=JSON[_0x18006b(0x11f)](readFileSync(_0x42140f,_0x18006b(0x127)));}catch{throw CliErrors[_0x18006b(0x128)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x42140f);}if(!_0x4c5357||typeof _0x4c5357!==_0x18006b(0x114)||Array['isArray'](_0x4c5357))throw CliErrors[_0x18006b(0x128)](_0x18006b(0x11e));const _0x3e15bd=_0x4c5357,_0x23af57=Object[_0x18006b(0x138)](_0x3e15bd)[_0x18006b(0x11a)](_0x10a400=>!DOMAIN_CONFIG_FIELDS[_0x18006b(0x12c)](_0x10a400));if(_0x23af57[_0x18006b(0x129)]>0x0)throw CliErrors['validation'](_0x18006b(0x12f)+_0x23af57[_0x18006b(0x144)](',\x20'),_0x18006b(0x12d)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x44c987={};for(const _0x4c6f97 of DOMAIN_CONFIG_FIELDS){_0x3e15bd[_0x4c6f97]!==undefined&&(_0x44c987[_0x4c6f97]=normalizeDomainOrigin(_0x4c6f97,_0x3e15bd[_0x4c6f97]));}if(Object[_0x18006b(0x138)](_0x44c987)[_0x18006b(0x129)]===0x0)throw CliErrors[_0x18006b(0x128)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return _0x44c987;}export function resolveDomainFlags(_0xae0909){const _0x1a290c=(_0xae0909['str']('domain-config')||'')['trim'](),_0x5f4cc5=_0x1a290c?readDomainConfig(_0x1a290c):{};for(const _0x297eb7 of DOMAIN_CONFIG_FIELDS){const _0x50966d=(_0xae0909['str'](DOMAIN_FLAGS[_0x297eb7])||'')['trim']();if(_0x50966d)_0x5f4cc5[_0x297eb7]=normalizeDomainOrigin(_0x297eb7,_0x50966d);}return _0x5f4cc5;}
1
+ 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 +1 @@
1
- const a213_0x226530=a213_0x3205;(function(_0x1f7b14,_0x1d51c2){const _0x4a757f=a213_0x3205,_0x47522a=_0x1f7b14();while(!![]){try{const _0x3439ea=parseInt(_0x4a757f(0x17d))/0x1*(-parseInt(_0x4a757f(0x179))/0x2)+parseInt(_0x4a757f(0x17c))/0x3+-parseInt(_0x4a757f(0x171))/0x4*(-parseInt(_0x4a757f(0x180))/0x5)+-parseInt(_0x4a757f(0x172))/0x6+parseInt(_0x4a757f(0x174))/0x7+-parseInt(_0x4a757f(0x173))/0x8*(parseInt(_0x4a757f(0x178))/0x9)+parseInt(_0x4a757f(0x17e))/0xa*(-parseInt(_0x4a757f(0x17f))/0xb);if(_0x3439ea===_0x1d51c2)break;else _0x47522a['push'](_0x47522a['shift']());}catch(_0x482b02){_0x47522a['push'](_0x47522a['shift']());}}}(a213_0x5419,0xc9de5));import{writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';function a213_0x3205(_0x19838e,_0x1cc268){_0x19838e=_0x19838e-0x171;const _0x5419b0=a213_0x5419();let _0x32051d=_0x5419b0[_0x19838e];return _0x32051d;}import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_ROUTING_FILE_NAME='rabetbase.routing.json';export const PROJECT_ROUTING_PROTOCOL=a213_0x226530(0x176);export function getProjectRoutingManifest(){const _0x1abedb=a213_0x226530,_0xdc1b2c=getActiveRegion(),_0x48268d=isIndependentDeployment(),_0x2bc226=getOfficialRoutingProfile(_0xdc1b2c),_0xe4225e=getLocalDomain(),_0x1b205d=getCertificateDomain();if(!!_0xe4225e!==!!_0x1b205d)throw new Error(_0x1abedb(0x17a));return{'protocol':PROJECT_ROUTING_PROTOCOL,'mode':_0x48268d?'independent':_0x1abedb(0x175),'region':_0x48268d?null:_0xdc1b2c,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'assets':_0x2bc226['assets'],'local':_0xe4225e&&_0x1b205d?{'origin':_0xe4225e,'certificateUrl':_0x1b205d+_0x1abedb(0x181)}:_0x48268d?{'origin':'http://localhost'}:_0x2bc226[_0x1abedb(0x17b)]};}export function writeProjectRoutingManifest(_0x190b35){const _0x37ceee=a213_0x226530,_0x260d37=getProjectRoutingManifest(),_0x5e6f97=join(_0x190b35,PROJECT_ROUTING_FILE_NAME);return writeFileSync(_0x5e6f97,JSON['stringify'](_0x260d37,null,0x2)+'\x0a',_0x37ceee(0x177)),{'path':_0x5e6f97,'manifest':_0x260d37};}function a213_0x5419(){const _0x56ab17=['13842jxStNT','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','local','2715486ymyQXU','228IMlOMk','10UBtdZO','3049607bhYcdS','22250NymnWz','/cert/lovrabet-dev.json','772vbCWIR','830184kSXFJl','72BVpYoH','8546587tRjbik','official','lovrabet-project-routing/v1','utf8','164511DZsyoU'];a213_0x5419=function(){return _0x56ab17;};return a213_0x5419();}
1
+ (function(_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,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", "appDomain", "localDomain", "certificateDomain"];
3
+ export declare const PROJECT_CREATE_INHERITABLE_KEYS: readonly ["cookie", "accessKey", "locale", "format", "riskLevel", "region", "userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "kbSearchDomain", "appDomain", "localDomain", "certificateDomain"];
4
4
  export interface ConfigMetadataFields {
5
5
  version?: string;
6
6
  createdAt?: string;
@@ -1 +1 @@
1
- const a214_0x4e9c17=a214_0x4e6f;function a214_0x53aa(){const _0x4534c9=['defaultApp','Config\x20key\x20(','runtimeDomain','4QsfEAH','length','locale','798539FDdxsy','129689sDbmLJ','apps','pageSize','Auth\x20cookie','1065858SdTVRi','Access\x20key','appcode','trim','certificateDomain','Risk\x20level','toLowerCase','1036578WsWGSA','number','inherit','app','2499039IeOLom','map','apiDomain','accessKey','riskLevel','join','deploymentSync','API\x20directory\x20path','env','8fbCMDK','2479265DkbAoU','cookie','region','defaultFormat','string','skillDomain','apiDir','localDomain','format','userDomain','kbDomain','entries','appDomain','Default\x20page\x20size','831440btSjet','en-US','zh-CN','has','keys'];a214_0x53aa=function(){return _0x4534c9;};return a214_0x53aa();}(function(_0xb7140a,_0x44366e){const _0x2edf0c=a214_0x4e6f,_0x3edb41=_0xb7140a();while(!![]){try{const _0x3991bb=parseInt(_0x2edf0c(0x226))/0x1+parseInt(_0x2edf0c(0x21a))/0x2+-parseInt(_0x2edf0c(0x1fe))/0x3+parseInt(_0x2edf0c(0x222))/0x4*(-parseInt(_0x2edf0c(0x20c))/0x5)+parseInt(_0x2edf0c(0x1f7))/0x6+-parseInt(_0x2edf0c(0x225))/0x7*(-parseInt(_0x2edf0c(0x20b))/0x8)+parseInt(_0x2edf0c(0x202))/0x9;if(_0x3991bb===_0x44366e)break;else _0x3edb41['push'](_0x3edb41['shift']());}catch(_0x14d781){_0x3edb41['push'](_0x3edb41['shift']());}}}(a214_0x53aa,0x42c0d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';import{collectDeploymentSyncProfile,getDeploymentSyncProfileFlagDefs}from'../config/deployment-sync.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a214_0x4e6f(_0x28bb9a,_0x1542c8){_0x28bb9a=_0x28bb9a-0x1f4;const _0x53aaf6=a214_0x53aa();let _0x4e6fa9=_0x53aaf6[_0x28bb9a];return _0x4e6fa9;}export const PROJECT_CREATE_INHERITABLE_KEYS=[a214_0x4e9c17(0x20d),'accessKey',a214_0x4e9c17(0x224),'format',a214_0x4e9c17(0x206),a214_0x4e9c17(0x20e),'userDomain',a214_0x4e9c17(0x204),a214_0x4e9c17(0x221),a214_0x4e9c17(0x211),a214_0x4e9c17(0x216),a214_0x4e9c17(0x218),a214_0x4e9c17(0x213),a214_0x4e9c17(0x1fb)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a214_0x4e9c17(0x1f9),a214_0x4e9c17(0x20a),'locale',a214_0x4e9c17(0x214),'cookie',a214_0x4e9c17(0x205),'apiDir','region',a214_0x4e9c17(0x215),a214_0x4e9c17(0x204),a214_0x4e9c17(0x221),a214_0x4e9c17(0x211),a214_0x4e9c17(0x216),a214_0x4e9c17(0x218),a214_0x4e9c17(0x213),'certificateDomain']);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0xb6aa4){const _0x3d782a=a214_0x4e9c17;return[..._0xb6aa4][_0x3d782a(0x207)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x15a827){const _0x3061b=a214_0x4e9c17;return TOP_LEVEL_CONFIG_KEYS[_0x3061b(0x21d)](_0x15a827);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x13d3b1=a214_0x4e9c17;return _0x13d3b1(0x220)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a214_0x4e9c17(0x20a),'apiDir':a214_0x4e9c17(0x212),'cookie':a214_0x4e9c17(0x20d),'accessKey':a214_0x4e9c17(0x205),'defaultFormat':a214_0x4e9c17(0x214),'pageSize':a214_0x4e9c17(0x1f5),'riskLevel':a214_0x4e9c17(0x206),'locale':a214_0x4e9c17(0x224)};export function getAppProfileFlagDefs(){const _0x5e1d6d=a214_0x4e9c17;return[{'name':_0x5e1d6d(0x20a),'type':'string','description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x5e1d6d(0x212),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x209)},{'name':_0x5e1d6d(0x20d),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x1f6),'hidden':!![]},{'name':_0x5e1d6d(0x205),'type':_0x5e1d6d(0x210),'description':_0x5e1d6d(0x1f8),'hidden':!![]},{'name':_0x5e1d6d(0x20f),'type':_0x5e1d6d(0x210),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x5e1d6d(0x1f5),'type':_0x5e1d6d(0x1ff),'description':_0x5e1d6d(0x219)},{'name':_0x5e1d6d(0x206),'type':'string','description':_0x5e1d6d(0x1fc),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'},...getDeploymentSyncProfileFlagDefs()];}export function collectAppProfileOverrides(_0x115969){const _0x2695e1=a214_0x4e9c17,_0x116a68={};for(const [_0x4a4a06,_0x2a02cb]of Object[_0x2695e1(0x217)](APP_PROFILE_FLAG_KEY_MAP)){const _0x32b0f0=_0x115969(_0x4a4a06);if(!_0x32b0f0)continue;_0x116a68[_0x2a02cb]=_0x2a02cb==='pageSize'?Number(_0x32b0f0):_0x32b0f0;}const _0x28509d=collectDeploymentSyncProfile(_0x115969);if(_0x28509d)_0x116a68['deploymentSync']=_0x28509d;return _0x116a68;}export function buildAppProfileListFields(_0x3a4612){const _0x2e055c=a214_0x4e9c17;return{'env':_0x3a4612[_0x2e055c(0x20a)]??null,'apiDir':_0x3a4612[_0x2e055c(0x212)]??null,'hasCookie':!!_0x3a4612[_0x2e055c(0x20d)],'hasAccessKey':!!_0x3a4612[_0x2e055c(0x205)],'format':_0x3a4612[_0x2e055c(0x214)]??null,'pageSize':_0x3a4612[_0x2e055c(0x1f5)]??null,'riskLevel':_0x3a4612[_0x2e055c(0x206)]??null,'locale':_0x3a4612[_0x2e055c(0x224)]??null,'deploymentSync':_0x3a4612[_0x2e055c(0x208)]??null};}export function buildAppDoctorFields(_0x612a5a,_0x46bc17){const _0x55d754=a214_0x4e9c17;return{'env':{'value':_0x612a5a[_0x55d754(0x20a)]||_0x46bc17['env'],'source':_0x612a5a[_0x55d754(0x20a)]?_0x55d754(0x201):_0x55d754(0x200)},'apiDir':{'value':_0x612a5a[_0x55d754(0x212)]||_0x46bc17['apiDir'],'source':_0x612a5a['apiDir']?_0x55d754(0x201):_0x55d754(0x200)},'cookie':{'value':_0x612a5a[_0x55d754(0x20d)]||_0x46bc17[_0x55d754(0x20d)],'source':_0x612a5a[_0x55d754(0x20d)]?_0x55d754(0x201):'inherit'},'accessKey':{'value':_0x612a5a[_0x55d754(0x205)]||_0x46bc17[_0x55d754(0x205)],'source':_0x612a5a[_0x55d754(0x205)]?_0x55d754(0x201):'inherit'}};}export function buildCanonicalAppConfig(_0x484f8b,_0x2a55fc){const _0x5a2fcc=a214_0x4e9c17,_0x511333=_0x484f8b[_0x5a2fcc(0x203)](_0x52a40c=>String(_0x52a40c||'')[_0x5a2fcc(0x1fa)]())['filter'](Boolean);if(_0x511333[_0x5a2fcc(0x223)]===0x0)return{};const _0x5326c6={};for(const _0x4fede4 of _0x511333){_0x5326c6[_0x4fede4]=_0x2a55fc?{'appcode':_0x4fede4,'env':_0x2a55fc}:{'appcode':_0x4fede4};}return _0x511333[_0x5a2fcc(0x223)]>0x1?{'apps':_0x5326c6,'defaultApp':_0x511333[0x0]}:{'apps':_0x5326c6};}export function normalizeStoredDefaultApp(_0x2c49d2,_0x2c56c6){const _0x7f7c40=a214_0x4e9c17,_0x51b0cc=_0x2c49d2[_0x7f7c40(0x1f4)]&&typeof _0x2c49d2[_0x7f7c40(0x1f4)]==='object'?_0x2c49d2[_0x7f7c40(0x1f4)]:{},_0x479e47=Object[_0x7f7c40(0x21e)](_0x51b0cc);if(_0x479e47['length']<=0x1)return delete _0x2c49d2[_0x7f7c40(0x21f)],undefined;const _0xdf0274=typeof _0x2c49d2[_0x7f7c40(0x21f)]===_0x7f7c40(0x210)&&_0x51b0cc[_0x2c49d2['defaultApp']]?_0x2c49d2[_0x7f7c40(0x21f)]:undefined,_0xa5173e=_0x2c56c6&&_0x51b0cc[_0x2c56c6]?_0x2c56c6:_0xdf0274;if(_0xa5173e)return _0x2c49d2[_0x7f7c40(0x21f)]=_0xa5173e,_0xa5173e;return delete _0x2c49d2[_0x7f7c40(0x21f)],undefined;}export function buildCanonicalProjectConfig(_0x1e3b25,_0x32f425){const _0x4f1266=a214_0x4e9c17,{appCodes:appCodes=[],env:_0x541126,metadata:_0xcddf4c}=_0x32f425,_0x5a4b1d={..._0x1e3b25,..._0xcddf4c||{}};delete _0x5a4b1d[_0x4f1266(0x1f9)],delete _0x5a4b1d[_0x4f1266(0x201)];if(_0x541126)_0x5a4b1d[_0x4f1266(0x20a)]=_0x541126;else!_0x5a4b1d['env']&&(_0x5a4b1d[_0x4f1266(0x20a)]=DEFAULT_CONFIG_VALUES[_0x4f1266(0x20a)]);const _0x2c2910=buildCanonicalAppConfig(appCodes,_0x5a4b1d[_0x4f1266(0x20a)]);if(Object[_0x4f1266(0x21e)](_0x2c2910)[_0x4f1266(0x223)]>0x0){_0x5a4b1d[_0x4f1266(0x1f4)]=_0x2c2910['apps'];if(_0x2c2910['defaultApp'])_0x5a4b1d[_0x4f1266(0x21f)]=_0x2c2910[_0x4f1266(0x21f)];else delete _0x5a4b1d[_0x4f1266(0x21f)];}return _0x5a4b1d;}const LOCALE_MAP={'zh':a214_0x4e9c17(0x21c),'zh-cn':a214_0x4e9c17(0x21c),'zh_cn':a214_0x4e9c17(0x21c),'en':a214_0x4e9c17(0x21b),'en-us':a214_0x4e9c17(0x21b),'en_us':a214_0x4e9c17(0x21b)};export function normalizeLocale(_0x19dbb3){const _0x175e0a=a214_0x4e9c17;if(!_0x19dbb3)return null;return LOCALE_MAP[_0x19dbb3[_0x175e0a(0x1fd)]()]??null;}
1
+ const a214_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 +1 @@
1
- const a215_0x1b9c1a=a215_0x2667;function a215_0x2667(_0x3413b7,_0x72e09e){_0x3413b7=_0x3413b7-0xa0;const _0x2021e7=a215_0x2021();let _0x26673f=_0x2021e7[_0x3413b7];return _0x26673f;}(function(_0x5a6d86,_0x53f269){const _0x96cd78=a215_0x2667,_0x3865b0=_0x5a6d86();while(!![]){try{const _0x43cc55=parseInt(_0x96cd78(0xa8))/0x1*(parseInt(_0x96cd78(0xaa))/0x2)+parseInt(_0x96cd78(0xa1))/0x3+parseInt(_0x96cd78(0xa5))/0x4+-parseInt(_0x96cd78(0xa3))/0x5+parseInt(_0x96cd78(0xa6))/0x6+parseInt(_0x96cd78(0xa2))/0x7*(-parseInt(_0x96cd78(0xa0))/0x8)+-parseInt(_0x96cd78(0xa9))/0x9;if(_0x43cc55===_0x53f269)break;else _0x3865b0['push'](_0x3865b0['shift']());}catch(_0x325faf){_0x3865b0['push'](_0x3865b0['shift']());}}}(a215_0x2021,0x84996));export const RABETBASE_CDN_BASE_URL=a215_0x1b9c1a(0xa4);function a215_0x2021(){const _0x3514f4=['998502KGiXWO','14cDGCvd','5084820uqVsUm','https://g.lovrabet.com/dist/rabetbase-cli','2296264fzOsyi','5106348piKAFI','/templates/projects','777995ZfqSQh','4350915spYiNN','2eyvbrH','1969712rDEBYb'];a215_0x2021=function(){return _0x3514f4;};return a215_0x2021();}export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a215_0x1b9c1a(0xa7);
1
+ 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);