@lovrabet/rabetbase-cli 2.5.2-beta.1 → 2.5.2-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 (348) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.d.ts +1 -0
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/auto-sync.js +1 -1
  101. package/lib/commands/deployment/index.js +1 -1
  102. package/lib/commands/deployment/sync-all.d.ts +2 -0
  103. package/lib/commands/deployment/sync-all.js +1 -0
  104. package/lib/commands/deployment/sync-jobs.d.ts +2 -0
  105. package/lib/commands/deployment/sync-jobs.js +1 -0
  106. package/lib/commands/deployment/sync-status.d.ts +2 -0
  107. package/lib/commands/deployment/sync-status.js +1 -0
  108. package/lib/commands/deployment/sync.js +1 -1
  109. package/lib/commands/doctor.js +1 -1
  110. package/lib/commands/file/index.js +1 -1
  111. package/lib/commands/instant-api-policy/current.d.ts +2 -0
  112. package/lib/commands/instant-api-policy/current.js +1 -0
  113. package/lib/commands/instant-api-policy/index.d.ts +2 -0
  114. package/lib/commands/instant-api-policy/index.js +1 -0
  115. package/lib/commands/instant-api-policy/init.d.ts +2 -0
  116. package/lib/commands/instant-api-policy/init.js +1 -0
  117. package/lib/commands/instant-api-policy/publish.d.ts +2 -0
  118. package/lib/commands/instant-api-policy/publish.js +1 -0
  119. package/lib/commands/instant-api-policy/pull.d.ts +2 -0
  120. package/lib/commands/instant-api-policy/pull.js +1 -0
  121. package/lib/commands/instant-api-policy/revision.d.ts +2 -0
  122. package/lib/commands/instant-api-policy/revision.js +1 -0
  123. package/lib/commands/instant-api-policy/revisions.d.ts +2 -0
  124. package/lib/commands/instant-api-policy/revisions.js +1 -0
  125. package/lib/commands/instant-api-policy/rollback.d.ts +2 -0
  126. package/lib/commands/instant-api-policy/rollback.js +1 -0
  127. package/lib/commands/instant-api-policy/shared.d.ts +82 -0
  128. package/lib/commands/instant-api-policy/shared.js +1 -0
  129. package/lib/commands/instant-api-policy/validate.d.ts +2 -0
  130. package/lib/commands/instant-api-policy/validate.js +1 -0
  131. package/lib/commands/issue/index.js +1 -1
  132. package/lib/commands/issue/nudge.js +1 -1
  133. package/lib/commands/issue/report.js +1 -1
  134. package/lib/commands/issue/shared.js +1 -1
  135. package/lib/commands/kb/create.js +1 -1
  136. package/lib/commands/kb/delete.js +1 -1
  137. package/lib/commands/kb/detail.js +1 -1
  138. package/lib/commands/kb/index.js +1 -1
  139. package/lib/commands/kb/list.js +1 -1
  140. package/lib/commands/kb/search.js +1 -1
  141. package/lib/commands/kb/shared.js +1 -1
  142. package/lib/commands/kb/update.js +1 -1
  143. package/lib/commands/logs/index.js +1 -1
  144. package/lib/commands/menu/asset-update.js +1 -1
  145. package/lib/commands/menu/delete.js +1 -1
  146. package/lib/commands/menu/external-link-create.js +1 -1
  147. package/lib/commands/menu/external-link-update.js +1 -1
  148. package/lib/commands/menu/group-create.js +1 -1
  149. package/lib/commands/menu/group-update.js +1 -1
  150. package/lib/commands/menu/index.js +1 -1
  151. package/lib/commands/menu/list.js +1 -1
  152. package/lib/commands/menu/move.js +1 -1
  153. package/lib/commands/menu/regroup-start.js +1 -1
  154. package/lib/commands/menu/rename.js +1 -1
  155. package/lib/commands/menu/shared/compare-table.js +1 -1
  156. package/lib/commands/menu/shared/delete-plan.js +1 -1
  157. package/lib/commands/menu/shared/facts.js +1 -1
  158. package/lib/commands/menu/shared/index.js +1 -1
  159. package/lib/commands/menu/shared/inquirer.js +1 -1
  160. package/lib/commands/menu/shared/local-pages.js +1 -1
  161. package/lib/commands/menu/shared/logic.js +1 -1
  162. package/lib/commands/menu/shared/mutations.js +1 -1
  163. package/lib/commands/menu/shared/service.js +1 -1
  164. package/lib/commands/menu/shared/sync-core.js +1 -1
  165. package/lib/commands/menu/shared/update-core.js +1 -1
  166. package/lib/commands/menu/shared/valid-url.js +1 -1
  167. package/lib/commands/menu/sync.js +1 -1
  168. package/lib/commands/menu/visibility-update.js +1 -1
  169. package/lib/commands/notification/config-create.js +1 -1
  170. package/lib/commands/notification/config-delete.js +1 -1
  171. package/lib/commands/notification/config-list.js +1 -1
  172. package/lib/commands/notification/config-update.js +1 -1
  173. package/lib/commands/notification/index.js +1 -1
  174. package/lib/commands/notification/shared.js +1 -1
  175. package/lib/commands/ocr/index.js +1 -1
  176. package/lib/commands/page/create.js +1 -1
  177. package/lib/commands/page/custom/detail.js +1 -1
  178. package/lib/commands/page/custom/list.js +1 -1
  179. package/lib/commands/page/custom/publish.js +1 -1
  180. package/lib/commands/page/custom/shared.js +1 -1
  181. package/lib/commands/page/custom/syntax.js +1 -1
  182. package/lib/commands/page/custom/template.js +1 -1
  183. package/lib/commands/page/custom/update.js +1 -1
  184. package/lib/commands/page/data-list-status.js +1 -1
  185. package/lib/commands/page/generate-start.js +1 -1
  186. package/lib/commands/page/generate-status.js +1 -1
  187. package/lib/commands/page/index.js +1 -1
  188. package/lib/commands/page/pull.js +1 -1
  189. package/lib/commands/page/push.js +1 -1
  190. package/lib/commands/page/relation-audit.js +1 -1
  191. package/lib/commands/page/restore.js +1 -1
  192. package/lib/commands/page/shared.js +1 -1
  193. package/lib/commands/page/sync.js +1 -1
  194. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  195. package/lib/commands/project/create/format-elapsed.js +1 -1
  196. package/lib/commands/project/create/main.js +1 -1
  197. package/lib/commands/project/create/materialize-project-template.js +1 -1
  198. package/lib/commands/project/create/project-name.js +1 -1
  199. package/lib/commands/project/create/project-template-archive.js +1 -1
  200. package/lib/commands/project/create/project-template-path.js +1 -1
  201. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  202. package/lib/commands/project/create/use-format-code.js +1 -1
  203. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  204. package/lib/commands/project/domain-routing-sync.js +1 -1
  205. package/lib/commands/project/index.js +1 -1
  206. package/lib/commands/project/upgrade.js +1 -1
  207. package/lib/commands/registry.js +1 -1
  208. package/lib/commands/role/delete.js +1 -1
  209. package/lib/commands/role/detail.js +1 -1
  210. package/lib/commands/role/index.js +1 -1
  211. package/lib/commands/role/list.js +1 -1
  212. package/lib/commands/role/shared.js +1 -1
  213. package/lib/commands/role/update.js +1 -1
  214. package/lib/commands/role/user-add.js +1 -1
  215. package/lib/commands/role/user-remove.js +1 -1
  216. package/lib/commands/role/user-resolve.js +1 -1
  217. package/lib/commands/rule/get.js +1 -1
  218. package/lib/commands/rule/index.js +1 -1
  219. package/lib/commands/rule/list.js +1 -1
  220. package/lib/commands/rule/set.js +1 -1
  221. package/lib/commands/rule/shared.js +1 -1
  222. package/lib/commands/run/index.js +1 -1
  223. package/lib/commands/schema.js +1 -1
  224. package/lib/commands/sql/create.js +1 -1
  225. package/lib/commands/sql/delete.js +1 -1
  226. package/lib/commands/sql/detail.js +1 -1
  227. package/lib/commands/sql/exec.js +1 -1
  228. package/lib/commands/sql/index.js +1 -1
  229. package/lib/commands/sql/list.js +1 -1
  230. package/lib/commands/sql/pull.js +1 -1
  231. package/lib/commands/sql/push.js +1 -1
  232. package/lib/commands/sql/shared.js +1 -1
  233. package/lib/commands/sql/status.js +1 -1
  234. package/lib/commands/sql/validate.js +1 -1
  235. package/lib/commands/task/index.js +1 -1
  236. package/lib/commands/task/status.js +1 -1
  237. package/lib/commands/tenant/index.js +1 -1
  238. package/lib/commands/tenant/members-list.js +1 -1
  239. package/lib/commands/tenant/shared.js +1 -1
  240. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  241. package/lib/commands/user-account/index.js +1 -1
  242. package/lib/commands/workspace/add.js +1 -1
  243. package/lib/commands/workspace/index.js +1 -1
  244. package/lib/commands/workspace/remove.js +1 -1
  245. package/lib/config/domain-config.d.ts +3 -7
  246. package/lib/config/domain-config.js +1 -1
  247. package/lib/config/project-domain-routing.js +1 -1
  248. package/lib/config/schema.js +1 -1
  249. package/lib/constant/cdn.js +1 -1
  250. package/lib/constant/cli.js +1 -1
  251. package/lib/constant/defaults.js +1 -1
  252. package/lib/constant/domain.js +1 -1
  253. package/lib/constant/env.js +1 -1
  254. package/lib/constant/output.js +1 -1
  255. package/lib/constant/paths.js +1 -1
  256. package/lib/constant/region.js +1 -1
  257. package/lib/constant/risk.js +1 -1
  258. package/lib/constant/routing-profile.js +1 -1
  259. package/lib/context/app-resolver.js +1 -1
  260. package/lib/context/auth-resolver.js +1 -1
  261. package/lib/context/config-loader.js +1 -1
  262. package/lib/context.js +1 -1
  263. package/lib/core/alias-resolver.js +1 -1
  264. package/lib/core/api-client.d.ts +114 -0
  265. package/lib/core/api-client.js +1 -1
  266. package/lib/core/bff/config.js +1 -1
  267. package/lib/core/bff/file-system.js +1 -1
  268. package/lib/core/bff/hash.js +1 -1
  269. package/lib/core/bff/lock.js +1 -1
  270. package/lib/core/bff/utils.js +1 -1
  271. package/lib/core/db-resolver.js +1 -1
  272. package/lib/core/instant-api-policy/config.d.ts +23 -0
  273. package/lib/core/instant-api-policy/config.js +1 -0
  274. package/lib/core/kb-search-client.js +1 -1
  275. package/lib/core/page/file-system.js +1 -1
  276. package/lib/core/page/hash.js +1 -1
  277. package/lib/core/page/lock.js +1 -1
  278. package/lib/core/sql-index-auditor.js +1 -1
  279. package/lib/core/sql-sync/config.js +1 -1
  280. package/lib/core/sql-sync/file-system.js +1 -1
  281. package/lib/core/sql-sync/hash.js +1 -1
  282. package/lib/core/sql-sync/lock.js +1 -1
  283. package/lib/core/sql-sync/utils.js +1 -1
  284. package/lib/core/sql-validator.js +1 -1
  285. package/lib/errors.js +1 -1
  286. package/lib/framework/build-all-flags.js +1 -1
  287. package/lib/framework/error-output.js +1 -1
  288. package/lib/framework/explicit-yes.js +1 -1
  289. package/lib/framework/flags.js +1 -1
  290. package/lib/framework/help.js +1 -1
  291. package/lib/framework/index.js +1 -1
  292. package/lib/framework/output.js +1 -1
  293. package/lib/framework/response.js +1 -1
  294. package/lib/framework/runner-alias.js +1 -1
  295. package/lib/framework/runner.js +1 -1
  296. package/lib/framework/schema-export.js +1 -1
  297. package/lib/framework/supported-flags.js +1 -1
  298. package/lib/framework/types.js +1 -1
  299. package/lib/generated/build-info.d.ts +4 -4
  300. package/lib/generated/build-info.js +1 -1
  301. package/lib/generated/official-routing.d.ts +1 -1
  302. package/lib/generated/official-routing.js +1 -1
  303. package/lib/generated/routing-contract.d.ts +1 -3
  304. package/lib/generated/routing-contract.js +1 -1
  305. package/lib/help.js +1 -1
  306. package/lib/postinstall.js +1 -1
  307. package/lib/runtime/confirmation.js +1 -1
  308. package/lib/runtime/event.js +1 -1
  309. package/lib/runtime/index.js +1 -1
  310. package/lib/runtime/queue.js +1 -1
  311. package/lib/runtime/resolve.js +1 -1
  312. package/lib/skills/builtin-skill.js +1 -1
  313. package/lib/skills/main.js +1 -1
  314. package/lib/skills/npx-skills-add.js +1 -1
  315. package/lib/skills/skill-presence.js +1 -1
  316. package/lib/telemetry/cli-command-trace.js +1 -1
  317. package/lib/telemetry/cli-help-trace.js +1 -1
  318. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  319. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  320. package/lib/telemetry/send-cli-trace-log.js +1 -1
  321. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  322. package/lib/utils/ai_config.js +1 -1
  323. package/lib/utils/apply-jq-filter.js +1 -1
  324. package/lib/utils/cdn-config.js +1 -1
  325. package/lib/utils/check-sdk-version.js +1 -1
  326. package/lib/utils/cli-version-check.js +1 -1
  327. package/lib/utils/cli-version-policy.js +1 -1
  328. package/lib/utils/config.js +1 -1
  329. package/lib/utils/entity-with-id.js +1 -1
  330. package/lib/utils/file-utils.js +1 -1
  331. package/lib/utils/guides-cdn.js +1 -1
  332. package/lib/utils/http-client.js +1 -1
  333. package/lib/utils/is-non-interactive.js +1 -1
  334. package/lib/utils/logger.js +1 -1
  335. package/lib/utils/params.js +1 -1
  336. package/lib/utils/platform.js +1 -1
  337. package/lib/utils/sleep.js +1 -1
  338. package/lib/utils/template-replacer.js +1 -1
  339. package/lib/utils/update-notice.js +1 -1
  340. package/lib/utils/version.js +1 -1
  341. package/lib/utils/with-active-cookie.js +1 -1
  342. package/lib/utils/write-cli-side-channel.js +1 -1
  343. package/package.json +1 -1
  344. package/skills/rabetbase/SKILL.md +12 -6
  345. package/skills/rabetbase/references/rabetbase-app-members-list.md +2 -0
  346. package/skills/rabetbase/references/rabetbase-deployment-sync.md +41 -5
  347. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +92 -0
  348. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- function a206_0x2cbb(){const _0x10c9d7=['message','get','index_columns','flatMap','columnNames','--check-indexes\x20requires\x20--schemas.','schema:','2649112JzcqBa','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','Dataset\x20\x22','valid','Table\x20\x22','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','318671RiDbAN','find','map','joinAudit','isDangerous','push','toLowerCase','validation','columns','str','schemas','cwd','8742234IzxUBg','6yfHTLl','dataset','sql','Provide\x20--file\x20or\x20--sql','check-indexes','\x22\x20not\x20found\x20in\x20any\x20dataset','SQL\x20schema\x20validation','file','fields','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','pkField','indexes','boolean','utf-8','4061595IJspSx','2449648HnVPAe','parameters','read','index_type','size','File\x20not\x20found:\x20','flagMissing','trim','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','sqlType','dbtableConfig','filter','name','type','reason','9082626CRlNEL','schemaWarnings','isSelectOnly','split','indexName','primary','from','18YorGek','tables','tableName','813355yKHoXj','string','isArray','length','appCode','\x22\x20not\x20found\x20or\x20not\x20accessible'];a206_0x2cbb=function(){return _0x10c9d7;};return a206_0x2cbb();}const a206_0x3ba014=a206_0x17bc;(function(_0x13b9c9,_0x11a5cd){const _0x809f54=a206_0x17bc,_0x558a77=_0x13b9c9();while(!![]){try{const _0x329e30=parseInt(_0x809f54(0x1c2))/0x1*(parseInt(_0x809f54(0x1cf))/0x2)+-parseInt(_0x809f54(0x195))/0x3+parseInt(_0x809f54(0x196))/0x4+-parseInt(_0x809f54(0x1af))/0x5+parseInt(_0x809f54(0x1ce))/0x6+-parseInt(_0x809f54(0x1a5))/0x7+-parseInt(_0x809f54(0x1bc))/0x8*(-parseInt(_0x809f54(0x1ac))/0x9);if(_0x329e30===_0x11a5cd)break;else _0x558a77['push'](_0x558a77['shift']());}catch(_0xd13178){_0x558a77['push'](_0x558a77['shift']());}}}(a206_0x2cbb,0xd54d8));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a206_0x3ba014(0x1d1),'command':'validate','description':a206_0x3ba014(0x1c1),'risk':a206_0x3ba014(0x198),'flags':[{'name':'file','type':'string','description':a206_0x3ba014(0x19e)},{'name':a206_0x3ba014(0x1d1),'type':a206_0x3ba014(0x1b0),'description':a206_0x3ba014(0x1bd)},{'name':a206_0x3ba014(0x1cc),'type':a206_0x3ba014(0x1b0),'description':a206_0x3ba014(0x190)},{'name':a206_0x3ba014(0x18b),'type':a206_0x3ba014(0x193),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x18ee66){const _0x129da8=a206_0x3ba014,_0x73047a=_0x18ee66['str'](_0x129da8(0x18e)),_0x172da8=_0x18ee66[_0x129da8(0x1cb)](_0x129da8(0x1d1)),_0x2a55d1=_0x18ee66[_0x129da8(0x1cb)](_0x129da8(0x1cc)),_0x4c3524=_0x18ee66['bool'](_0x129da8(0x18b));if(!_0x73047a&&!_0x172da8)throw CliErrors[_0x129da8(0x19c)](_0x129da8(0x18e),_0x129da8(0x1d2));if(_0x4c3524&&!_0x2a55d1)throw CliErrors[_0x129da8(0x1c9)](_0x129da8(0x1ba));let _0x520ba5;if(_0x73047a){const _0x1f9c78=resolve(process[_0x129da8(0x1cd)](),_0x73047a);if(!existsSync(_0x1f9c78))throw CliErrors[_0x129da8(0x1c9)](_0x129da8(0x19b)+_0x1f9c78);_0x520ba5=readFileSync(_0x1f9c78,_0x129da8(0x194));}else _0x520ba5=_0x172da8;const _0x226b45=validateSql(_0x520ba5),_0x372d96={'valid':_0x226b45['valid'],'sqlType':_0x226b45[_0x129da8(0x19f)]['type'],'isSelectOnly':_0x226b45[_0x129da8(0x19f)][_0x129da8(0x1a7)],'isDangerous':_0x226b45[_0x129da8(0x19f)][_0x129da8(0x1c6)],'tables':_0x226b45[_0x129da8(0x1ad)],'parameters':_0x226b45[_0x129da8(0x197)],'message':_0x226b45[_0x129da8(0x1b5)]};_0x226b45['sqlType'][_0x129da8(0x1a4)]&&(_0x372d96[_0x129da8(0x1a4)]=_0x226b45[_0x129da8(0x19f)]['reason']);if(_0x2a55d1&&_0x226b45[_0x129da8(0x1bf)]){const _0x5b7bab=_0x2a55d1[_0x129da8(0x1a8)](',')[_0x129da8(0x1c4)](_0x13599d=>_0x13599d[_0x129da8(0x19d)]())[_0x129da8(0x1a1)](Boolean),_0x7a8687=[],_0x329506=[],_0x1d56a3=filterDbTableBackedDatasets(await listDatasets(_0x18ee66[_0x129da8(0x1b3)])),_0x4f8010=new Map(_0x1d56a3[_0x129da8(0x1c4)](_0x4492e8=>[_0x4492e8['dbtableConfig']?.[_0x129da8(0x1ae)]?.[_0x129da8(0x1c8)](),_0x4492e8]));for(const _0x48092a of _0x226b45[_0x129da8(0x1ad)]){const _0x13fef3=_0x4f8010[_0x129da8(0x1b6)](_0x48092a[_0x129da8(0x1c8)]());!_0x13fef3&&_0x7a8687[_0x129da8(0x1c7)](_0x129da8(0x1c0)+_0x48092a+_0x129da8(0x18c));}for(const _0x2311d9 of _0x5b7bab){let _0x4c66e4;try{_0x4c66e4=await getDatasetDetail(_0x2311d9);}catch{_0x7a8687[_0x129da8(0x1c7)](_0x129da8(0x1be)+_0x2311d9+_0x129da8(0x1b4));continue;}assertDatasetIsDbTableBacked(_0x4c66e4,_0x129da8(0x18d));const _0x5d51ef=Array[_0x129da8(0x1b1)](_0x4c66e4[_0x129da8(0x18f)])?_0x4c66e4[_0x129da8(0x18f)]:[],_0x24ff98=new Set(_0x5d51ef[_0x129da8(0x1c4)](_0x4dcba0=>_0x4dcba0[_0x129da8(0x1a2)]?.[_0x129da8(0x1c8)]())),_0x4f4a84=_0x4c66e4[_0x129da8(0x1a0)]?.[_0x129da8(0x1ae)]||_0x4c66e4[_0x129da8(0x1ae)]||_0x2311d9;_0x372d96[_0x129da8(0x1bb)+_0x4f4a84]={'code':_0x2311d9,'tableName':_0x4f4a84,'fieldCount':_0x24ff98[_0x129da8(0x19a)],'fields':Array[_0x129da8(0x1ab)](_0x24ff98)};if(_0x4c3524){const _0x1ccae0=normalizeDatasetIndexes(_0x4c66e4);_0x329506[_0x129da8(0x1c7)]({'tableName':_0x4f4a84,..._0x1ccae0});}}_0x7a8687[_0x129da8(0x1b2)]>0x0&&(_0x372d96[_0x129da8(0x1a6)]=_0x7a8687),_0x4c3524&&(_0x372d96[_0x129da8(0x1c5)]=auditSqlJoinIndexes(_0x520ba5,_0x329506));}return{'ok':_0x226b45['valid'],'data':_0x372d96,'message':_0x226b45[_0x129da8(0x1b5)]};}};function a206_0x17bc(_0xa2d817,_0x13deaa){_0xa2d817=_0xa2d817-0x18b;const _0x2cbbf2=a206_0x2cbb();let _0x17bc79=_0x2cbbf2[_0xa2d817];return _0x17bc79;}function normalizeDatasetIndexes(_0x3e95bb){const _0x47cc06=a206_0x3ba014,_0x3b1259=Array[_0x47cc06(0x1b1)](_0x3e95bb?.[_0x47cc06(0x1d0)]?.[_0x47cc06(0x192)])?_0x3e95bb[_0x47cc06(0x1d0)]['indexes']:Array[_0x47cc06(0x1b1)](_0x3e95bb?.[_0x47cc06(0x192)])?_0x3e95bb[_0x47cc06(0x192)]:[],_0x34efe6=_0x3b1259[_0x47cc06(0x1b8)](_0x2b278d=>{const _0x588c50=_0x47cc06,_0x20bca2=Array[_0x588c50(0x1b1)](_0x2b278d?.[_0x588c50(0x1b7)])?_0x2b278d[_0x588c50(0x1b7)]:Array[_0x588c50(0x1b1)](_0x2b278d?.[_0x588c50(0x1b9)])?_0x2b278d['columnNames']:Array[_0x588c50(0x1b1)](_0x2b278d?.[_0x588c50(0x1ca)])?_0x2b278d[_0x588c50(0x1ca)]:[],_0x20da5f=_0x20bca2[_0x588c50(0x1a1)](_0x4d3bbf=>typeof _0x4d3bbf===_0x588c50(0x1b0))[_0x588c50(0x1c4)](_0x5c2caa=>_0x5c2caa['trim']())[_0x588c50(0x1a1)](Boolean);if(_0x20da5f[_0x588c50(0x1b2)]===0x0)return[];const _0x552e63=[_0x2b278d?.[_0x588c50(0x1a9)],_0x2b278d?.['index_name'],_0x2b278d?.[_0x588c50(0x1a2)]][_0x588c50(0x1c3)](_0x1c6ff3=>typeof _0x1c6ff3==='string'&&_0x1c6ff3['trim']()),_0x3ffbad=[_0x2b278d?.[_0x588c50(0x199)],_0x2b278d?.[_0x588c50(0x1a3)]]['find'](_0x6aa57a=>typeof _0x6aa57a===_0x588c50(0x1b0)&&_0x6aa57a[_0x588c50(0x19d)]());return[{..._0x552e63?{'name':_0x552e63[_0x588c50(0x19d)]()}:{},..._0x3ffbad?{'type':_0x3ffbad['trim']()}:{},'columns':_0x20da5f}];}),_0x675bb1=[..._0x34efe6],_0x3d3570=typeof _0x3e95bb?.[_0x47cc06(0x1a0)]?.['pkField']===_0x47cc06(0x1b0)?_0x3e95bb[_0x47cc06(0x1a0)][_0x47cc06(0x191)][_0x47cc06(0x1a8)](',')[_0x47cc06(0x1c4)](_0x43e53f=>_0x43e53f[_0x47cc06(0x19d)]())[_0x47cc06(0x1a1)](Boolean):[];return _0x3d3570[_0x47cc06(0x1b2)]>0x0&&_0x675bb1['unshift']({'type':_0x47cc06(0x1aa),'columns':_0x3d3570}),{'indexes':_0x675bb1,'metadataAvailable':_0x34efe6[_0x47cc06(0x1b2)]>0x0};}
1
+ const a219_0x18708a=a219_0x1532;(function(_0x25dc9e,_0x5e7d8c){const _0x359ecd=a219_0x1532,_0x5c1ffe=_0x25dc9e();while(!![]){try{const _0x3dc493=-parseInt(_0x359ecd(0xbf))/0x1+parseInt(_0x359ecd(0x94))/0x2+parseInt(_0x359ecd(0xa8))/0x3+-parseInt(_0x359ecd(0xad))/0x4+-parseInt(_0x359ecd(0xa4))/0x5+parseInt(_0x359ecd(0xc0))/0x6*(parseInt(_0x359ecd(0xaf))/0x7)+parseInt(_0x359ecd(0xaa))/0x8;if(_0x3dc493===_0x5e7d8c)break;else _0x5c1ffe['push'](_0x5c1ffe['shift']());}catch(_0xa672d){_0x5c1ffe['push'](_0x5c1ffe['shift']());}}}(a219_0x4d9a,0x595be));function a219_0x1532(_0x408f26,_0x56bf5f){_0x408f26=_0x408f26-0x83;const _0x4d9a3e=a219_0x4d9a();let _0x1532e0=_0x4d9a3e[_0x408f26];return _0x1532e0;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a219_0x4d9a(){const _0x6cabb=['indexName','3978600grglTE','Table\x20\x22','File\x20not\x20found:\x20','1588268mUeuzr','sql','2289007wVWxVS','columnNames','flagMissing','length','type','schemas','\x22\x20not\x20found\x20in\x20any\x20dataset','read','appCode','push','split','tables','utf-8','check-indexes','--check-indexes\x20requires\x20--schemas.','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','185204kjvVky','6GXSCQY','bool','cwd','pkField','dataset','SQL\x20schema\x20validation','unshift','flatMap','tableName','reason','primary','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','schemaWarnings','sqlType','map','isArray','parameters','find','filter','columns','isDangerous','valid','285420ZjOvrr','validate','get','fields','from','index_name','Dataset\x20\x22','message','trim','str','toLowerCase','dbtableConfig','file','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','string','index_type','1325765DXXdll','indexes','Provide\x20--file\x20or\x20--sql','index_columns','739206AUfNzV'];a219_0x4d9a=function(){return _0x6cabb;};return a219_0x4d9a();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a219_0x18708a(0xae),'command':a219_0x18708a(0x95),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a219_0x18708a(0xb6),'flags':[{'name':a219_0x18708a(0xa0),'type':'string','description':a219_0x18708a(0x89)},{'name':'sql','type':a219_0x18708a(0xa2),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a219_0x18708a(0xb4),'type':a219_0x18708a(0xa2),'description':a219_0x18708a(0xbe)},{'name':'check-indexes','type':'boolean','description':a219_0x18708a(0xa1)}],async 'execute'(_0x254779){const _0x15ad0d=a219_0x18708a,_0x499ed8=_0x254779['str'](_0x15ad0d(0xa0)),_0x3567c2=_0x254779[_0x15ad0d(0x9d)](_0x15ad0d(0xae)),_0x2ce6bf=_0x254779[_0x15ad0d(0x9d)](_0x15ad0d(0xb4)),_0x25a71c=_0x254779[_0x15ad0d(0xc1)](_0x15ad0d(0xbc));if(!_0x499ed8&&!_0x3567c2)throw CliErrors[_0x15ad0d(0xb1)](_0x15ad0d(0xa0),_0x15ad0d(0xa6));if(_0x25a71c&&!_0x2ce6bf)throw CliErrors['validation'](_0x15ad0d(0xbd));let _0x1d822d;if(_0x499ed8){const _0x419705=resolve(process[_0x15ad0d(0xc2)](),_0x499ed8);if(!existsSync(_0x419705))throw CliErrors['validation'](_0x15ad0d(0xac)+_0x419705);_0x1d822d=readFileSync(_0x419705,_0x15ad0d(0xbb));}else _0x1d822d=_0x3567c2;const _0xf33aa4=validateSql(_0x1d822d),_0x52557d={'valid':_0xf33aa4['valid'],'sqlType':_0xf33aa4[_0x15ad0d(0x8b)][_0x15ad0d(0xb3)],'isSelectOnly':_0xf33aa4[_0x15ad0d(0x8b)]['isSelectOnly'],'isDangerous':_0xf33aa4[_0x15ad0d(0x8b)][_0x15ad0d(0x92)],'tables':_0xf33aa4[_0x15ad0d(0xba)],'parameters':_0xf33aa4[_0x15ad0d(0x8e)],'message':_0xf33aa4[_0x15ad0d(0x9b)]};_0xf33aa4['sqlType'][_0x15ad0d(0x87)]&&(_0x52557d[_0x15ad0d(0x87)]=_0xf33aa4[_0x15ad0d(0x8b)][_0x15ad0d(0x87)]);if(_0x2ce6bf&&_0xf33aa4[_0x15ad0d(0x93)]){const _0x34ba1d=_0x2ce6bf['split'](',')['map'](_0x408647=>_0x408647['trim']())[_0x15ad0d(0x90)](Boolean),_0x2e331a=[],_0x3db5ac=[],_0x4ace2d=filterDbTableBackedDatasets(await listDatasets(_0x254779[_0x15ad0d(0xb7)])),_0x52da43=new Map(_0x4ace2d['map'](_0x813760=>[_0x813760[_0x15ad0d(0x9f)]?.[_0x15ad0d(0x86)]?.[_0x15ad0d(0x9e)](),_0x813760]));for(const _0x2860a2 of _0xf33aa4[_0x15ad0d(0xba)]){const _0x584439=_0x52da43[_0x15ad0d(0x96)](_0x2860a2['toLowerCase']());!_0x584439&&_0x2e331a[_0x15ad0d(0xb8)](_0x15ad0d(0xab)+_0x2860a2+_0x15ad0d(0xb5));}for(const _0x31e3f4 of _0x34ba1d){let _0x23f6c8;try{_0x23f6c8=await getDatasetDetail(_0x31e3f4);}catch{_0x2e331a['push'](_0x15ad0d(0x9a)+_0x31e3f4+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x23f6c8,_0x15ad0d(0x83));const _0x11244b=Array[_0x15ad0d(0x8d)](_0x23f6c8[_0x15ad0d(0x97)])?_0x23f6c8[_0x15ad0d(0x97)]:[],_0x4c1759=new Set(_0x11244b[_0x15ad0d(0x8c)](_0x27d23f=>_0x27d23f['name']?.['toLowerCase']())),_0x40fbf4=_0x23f6c8[_0x15ad0d(0x9f)]?.[_0x15ad0d(0x86)]||_0x23f6c8[_0x15ad0d(0x86)]||_0x31e3f4;_0x52557d['schema:'+_0x40fbf4]={'code':_0x31e3f4,'tableName':_0x40fbf4,'fieldCount':_0x4c1759['size'],'fields':Array[_0x15ad0d(0x98)](_0x4c1759)};if(_0x25a71c){const _0x8e891=normalizeDatasetIndexes(_0x23f6c8);_0x3db5ac[_0x15ad0d(0xb8)]({'tableName':_0x40fbf4,..._0x8e891});}}_0x2e331a[_0x15ad0d(0xb2)]>0x0&&(_0x52557d[_0x15ad0d(0x8a)]=_0x2e331a),_0x25a71c&&(_0x52557d['joinAudit']=auditSqlJoinIndexes(_0x1d822d,_0x3db5ac));}return{'ok':_0xf33aa4[_0x15ad0d(0x93)],'data':_0x52557d,'message':_0xf33aa4[_0x15ad0d(0x9b)]};}};function normalizeDatasetIndexes(_0x3ae6b6){const _0x47538d=a219_0x18708a,_0x43fbd5=Array[_0x47538d(0x8d)](_0x3ae6b6?.[_0x47538d(0xc4)]?.[_0x47538d(0xa5)])?_0x3ae6b6[_0x47538d(0xc4)][_0x47538d(0xa5)]:Array[_0x47538d(0x8d)](_0x3ae6b6?.['indexes'])?_0x3ae6b6[_0x47538d(0xa5)]:[],_0x1dd3a7=_0x43fbd5[_0x47538d(0x85)](_0x25f50c=>{const _0x41978d=_0x47538d,_0x535641=Array[_0x41978d(0x8d)](_0x25f50c?.[_0x41978d(0xa7)])?_0x25f50c[_0x41978d(0xa7)]:Array['isArray'](_0x25f50c?.[_0x41978d(0xb0)])?_0x25f50c[_0x41978d(0xb0)]:Array['isArray'](_0x25f50c?.[_0x41978d(0x91)])?_0x25f50c[_0x41978d(0x91)]:[],_0x37fdb0=_0x535641[_0x41978d(0x90)](_0x13addf=>typeof _0x13addf===_0x41978d(0xa2))[_0x41978d(0x8c)](_0x3a3b82=>_0x3a3b82[_0x41978d(0x9c)]())['filter'](Boolean);if(_0x37fdb0[_0x41978d(0xb2)]===0x0)return[];const _0x55a8fb=[_0x25f50c?.[_0x41978d(0xa9)],_0x25f50c?.[_0x41978d(0x99)],_0x25f50c?.['name']][_0x41978d(0x8f)](_0x51cdd1=>typeof _0x51cdd1===_0x41978d(0xa2)&&_0x51cdd1['trim']()),_0x5f425d=[_0x25f50c?.[_0x41978d(0xa3)],_0x25f50c?.[_0x41978d(0xb3)]][_0x41978d(0x8f)](_0x3a946a=>typeof _0x3a946a==='string'&&_0x3a946a['trim']());return[{..._0x55a8fb?{'name':_0x55a8fb[_0x41978d(0x9c)]()}:{},..._0x5f425d?{'type':_0x5f425d[_0x41978d(0x9c)]()}:{},'columns':_0x37fdb0}];}),_0x3d6bdd=[..._0x1dd3a7],_0x2aa8ad=typeof _0x3ae6b6?.[_0x47538d(0x9f)]?.['pkField']===_0x47538d(0xa2)?_0x3ae6b6[_0x47538d(0x9f)][_0x47538d(0xc3)][_0x47538d(0xb9)](',')[_0x47538d(0x8c)](_0x21bcd0=>_0x21bcd0[_0x47538d(0x9c)]())[_0x47538d(0x90)](Boolean):[];return _0x2aa8ad[_0x47538d(0xb2)]>0x0&&_0x3d6bdd[_0x47538d(0x84)]({'type':_0x47538d(0x88),'columns':_0x2aa8ad}),{'indexes':_0x3d6bdd,'metadataAvailable':_0x1dd3a7[_0x47538d(0xb2)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x1365e1,_0x42b8c0){const _0x2603c6=a207_0x5864,_0x386bd3=_0x1365e1();while(!![]){try{const _0x5d3b96=-parseInt(_0x2603c6(0x1cf))/0x1+-parseInt(_0x2603c6(0x1cc))/0x2+-parseInt(_0x2603c6(0x1d0))/0x3+parseInt(_0x2603c6(0x1c9))/0x4+parseInt(_0x2603c6(0x1ce))/0x5+-parseInt(_0x2603c6(0x1ca))/0x6+-parseInt(_0x2603c6(0x1cb))/0x7*(-parseInt(_0x2603c6(0x1cd))/0x8);if(_0x5d3b96===_0x42b8c0)break;else _0x386bd3['push'](_0x386bd3['shift']());}catch(_0x5342e7){_0x386bd3['push'](_0x386bd3['shift']());}}}(a207_0x131c,0xbdd96));function a207_0x131c(){const _0x11eefc=['8756232mABrnL','112hfhgJt','3024146DDpgrY','2159624PPMbWO','518940LEveFM','1450805wEVzjG','54549NNRosK','3180076uosJiD'];a207_0x131c=function(){return _0x11eefc;};return a207_0x131c();}function a207_0x5864(_0x314807,_0x353eb2){_0x314807=_0x314807-0x1c9;const _0x131c4e=a207_0x131c();let _0x5864bf=_0x131c4e[_0x314807];return _0x5864bf;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ (function(_0x2b0d12,_0x3a339a){const _0x7cc224=a220_0x3c86,_0x308a56=_0x2b0d12();while(!![]){try{const _0x40c81b=parseInt(_0x7cc224(0x187))/0x1*(parseInt(_0x7cc224(0x185))/0x2)+-parseInt(_0x7cc224(0x17c))/0x3+-parseInt(_0x7cc224(0x180))/0x4+-parseInt(_0x7cc224(0x183))/0x5*(-parseInt(_0x7cc224(0x184))/0x6)+-parseInt(_0x7cc224(0x182))/0x7*(parseInt(_0x7cc224(0x186))/0x8)+parseInt(_0x7cc224(0x17f))/0x9*(-parseInt(_0x7cc224(0x17e))/0xa)+-parseInt(_0x7cc224(0x181))/0xb*(-parseInt(_0x7cc224(0x17d))/0xc);if(_0x40c81b===_0x3a339a)break;else _0x308a56['push'](_0x308a56['shift']());}catch(_0x27d57c){_0x308a56['push'](_0x308a56['shift']());}}}(a220_0x3d2b,0x2f172));function a220_0x3d2b(){const _0x353e06=['1203824WkTqwk','9757ZiaMjQ','129661gdWKQd','11735nBuFOD','354reRSio','458ZWUGJR','8QzYDJh','627UYPOXT','638100jJmvcf','6252kCSVkt','191220aHrNpJ','9AydEoQ'];a220_0x3d2b=function(){return _0x353e06;};return a220_0x3d2b();}function a220_0x3c86(_0x377081,_0x291e1d){_0x377081=_0x377081-0x17c;const _0x3d2bd5=a220_0x3d2b();let _0x3c86b4=_0x3d2bd5[_0x377081];return _0x3c86b4;}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a208_0x5667d0=a208_0x5222;(function(_0x175098,_0x2507d5){const _0x5ebee6=a208_0x5222,_0x212268=_0x175098();while(!![]){try{const _0x40d45a=parseInt(_0x5ebee6(0x87))/0x1+-parseInt(_0x5ebee6(0x96))/0x2+parseInt(_0x5ebee6(0x90))/0x3*(-parseInt(_0x5ebee6(0x9c))/0x4)+parseInt(_0x5ebee6(0x93))/0x5+parseInt(_0x5ebee6(0x8a))/0x6*(-parseInt(_0x5ebee6(0x89))/0x7)+-parseInt(_0x5ebee6(0x95))/0x8+-parseInt(_0x5ebee6(0x8b))/0x9*(-parseInt(_0x5ebee6(0x94))/0xa);if(_0x40d45a===_0x2507d5)break;else _0x212268['push'](_0x212268['shift']());}catch(_0x114786){_0x212268['push'](_0x212268['shift']());}}}(a208_0x3f21,0xbeeaf));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a208_0x5222(_0x373ca9,_0x374e8a){_0x373ca9=_0x373ca9-0x87;const _0x3f216a=a208_0x3f21();let _0x5222de=_0x3f216a[_0x373ca9];return _0x5222de;}function a208_0x3f21(){const _0x5e38dd=['8633328EyDESA','1951734VKuUgc','str',',\x20received\x20','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','task','375904mARaSm','isTerminal','string','523464rywbRu','taskId','37121UdzEnD','78hsyleZ','99PsiWTc','flagMissing','compress','task-id','appCode','3XlBGhQ','trim','cookie','1355080GbWQEm','2004970OOTNKl'];a208_0x3f21=function(){return _0x5e38dd;};return a208_0x3f21();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a208_0x5667d0(0x9b),'command':'status','description':a208_0x5667d0(0x99),'risk':'read','defaultOutputFormat':a208_0x5667d0(0x8d),'structuredErrors':!![],'flags':[{'name':'task-id','type':a208_0x5667d0(0x9e),'required':!![],'description':a208_0x5667d0(0x9a)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x58ab61){const _0x1bbe6e=a208_0x5667d0;if(!_0x58ab61[_0x1bbe6e(0x97)](_0x1bbe6e(0x8e))[_0x1bbe6e(0x91)]())throw CliErrors[_0x1bbe6e(0x8c)](_0x1bbe6e(0x8e));},async 'execute'(_0x3cf219){const _0x4fd7f8=a208_0x5667d0,_0x376c2e=_0x3cf219[_0x4fd7f8(0x97)]('task-id')[_0x4fd7f8(0x91)](),_0x631758=normalizeAsyncTask(await getAsyncTaskStatus(_0x376c2e,_0x3cf219['appCode'],_0x3cf219[_0x4fd7f8(0x92)]));if(_0x631758[_0x4fd7f8(0x88)]!==_0x376c2e)throw CliErrors['apiError']('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x376c2e+_0x4fd7f8(0x98)+_0x631758[_0x4fd7f8(0x88)]+'.');const _0x2f3115=buildAsyncTaskStatusCommand(_0x631758[_0x4fd7f8(0x88)],_0x3cf219[_0x4fd7f8(0x8f)]);return{'ok':!![],'message':asyncTaskMessage(_0x631758),'data':{'appCode':_0x3cf219[_0x4fd7f8(0x8f)],..._0x631758,'query':_0x631758[_0x4fd7f8(0x9d)]?null:{'command':_0x2f3115}}};}};
1
+ function a221_0x5931(_0x59802e,_0x2c4183){_0x59802e=_0x59802e-0x132;const _0x319dc8=a221_0x319d();let _0x5931b7=_0x319dc8[_0x59802e];return _0x5931b7;}const a221_0x53d472=a221_0x5931;(function(_0x284578,_0x394dd3){const _0xcd9a89=a221_0x5931,_0x1dfe69=_0x284578();while(!![]){try{const _0x1870e9=parseInt(_0xcd9a89(0x145))/0x1+-parseInt(_0xcd9a89(0x149))/0x2*(-parseInt(_0xcd9a89(0x138))/0x3)+-parseInt(_0xcd9a89(0x13b))/0x4+parseInt(_0xcd9a89(0x144))/0x5+-parseInt(_0xcd9a89(0x134))/0x6+-parseInt(_0xcd9a89(0x141))/0x7*(parseInt(_0xcd9a89(0x13c))/0x8)+-parseInt(_0xcd9a89(0x135))/0x9;if(_0x1870e9===_0x394dd3)break;else _0x1dfe69['push'](_0x1dfe69['shift']());}catch(_0x4e85ab){_0x1dfe69['push'](_0x1dfe69['shift']());}}}(a221_0x319d,0x74c16));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a221_0x319d(){const _0x5ebf8=['task','1683012HUXFMd','84192suzggH',',\x20received\x20','status','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','read','98AxLxPq','apiError','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','2119755vapHYj','932940rVxhYN','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','isTerminal','appCode','4WvoGRy','taskId','task-id','741168rGoCzn','1711062VrPMUO','str','cookie','4611WursKG','trim'];a221_0x319d=function(){return _0x5ebf8;};return a221_0x319d();}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':a221_0x53d472(0x13a),'command':a221_0x53d472(0x13e),'description':a221_0x53d472(0x146),'risk':a221_0x53d472(0x140),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':'task-id','type':'string','required':!![],'description':a221_0x53d472(0x143)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x337b13){const _0x462ae2=a221_0x53d472;if(!_0x337b13['str'](_0x462ae2(0x133))[_0x462ae2(0x139)]())throw CliErrors['flagMissing'](_0x462ae2(0x133));},async 'execute'(_0x5a0321){const _0x4b0a32=a221_0x53d472,_0x4e900d=_0x5a0321[_0x4b0a32(0x136)]('task-id')['trim'](),_0x37368c=normalizeAsyncTask(await getAsyncTaskStatus(_0x4e900d,_0x5a0321[_0x4b0a32(0x148)],_0x5a0321[_0x4b0a32(0x137)]));if(_0x37368c[_0x4b0a32(0x132)]!==_0x4e900d)throw CliErrors[_0x4b0a32(0x142)](_0x4b0a32(0x13f)+_0x4e900d+_0x4b0a32(0x13d)+_0x37368c['taskId']+'.');const _0x25f308=buildAsyncTaskStatusCommand(_0x37368c[_0x4b0a32(0x132)],_0x5a0321['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x37368c),'data':{'appCode':_0x5a0321[_0x4b0a32(0x148)],..._0x37368c,'query':_0x37368c[_0x4b0a32(0x147)]?null:{'command':_0x25f308}}};}};
@@ -1 +1 @@
1
- (function(_0xdb2282,_0x20e4ec){const _0x4c1378=a209_0x2961,_0x10eae8=_0xdb2282();while(!![]){try{const _0xe1191b=-parseInt(_0x4c1378(0x179))/0x1+-parseInt(_0x4c1378(0x178))/0x2+parseInt(_0x4c1378(0x177))/0x3*(parseInt(_0x4c1378(0x176))/0x4)+-parseInt(_0x4c1378(0x17a))/0x5+-parseInt(_0x4c1378(0x17b))/0x6*(parseInt(_0x4c1378(0x175))/0x7)+parseInt(_0x4c1378(0x172))/0x8*(-parseInt(_0x4c1378(0x174))/0x9)+-parseInt(_0x4c1378(0x173))/0xa*(-parseInt(_0x4c1378(0x17c))/0xb);if(_0xe1191b===_0x20e4ec)break;else _0x10eae8['push'](_0x10eae8['shift']());}catch(_0x1c0c97){_0x10eae8['push'](_0x10eae8['shift']());}}}(a209_0x5603,0x46c44));function a209_0x2961(_0x158694,_0x9614c5){_0x158694=_0x158694-0x172;const _0x5603c1=a209_0x5603();let _0x2961a8=_0x5603c1[_0x158694];return _0x2961a8;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a209_0x5603(){const _0x4b593d=['603344NQaakp','562427RQXPVQ','2099340xVjvvY','6RBhpSK','11wbkPgo','16eyifXK','23182620xmzTqJ','2231613WOWnTy','2155790DHtrVW','884oIxxfd','807tfTfew'];a209_0x5603=function(){return _0x4b593d;};return a209_0x5603();}export const tenantDefinitions=[tenantMembersListDefinition];
1
+ (function(_0x341e35,_0x355580){const _0x504158=a222_0x102e,_0x3fcfc1=_0x341e35();while(!![]){try{const _0xa3f5f=-parseInt(_0x504158(0x13a))/0x1*(-parseInt(_0x504158(0x141))/0x2)+-parseInt(_0x504158(0x13c))/0x3+parseInt(_0x504158(0x142))/0x4+-parseInt(_0x504158(0x13b))/0x5+-parseInt(_0x504158(0x13e))/0x6+-parseInt(_0x504158(0x140))/0x7+parseInt(_0x504158(0x13f))/0x8*(parseInt(_0x504158(0x13d))/0x9);if(_0xa3f5f===_0x355580)break;else _0x3fcfc1['push'](_0x3fcfc1['shift']());}catch(_0x592149){_0x3fcfc1['push'](_0x3fcfc1['shift']());}}}(a222_0x1eb4,0x786b6));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a222_0x102e(_0x11319a,_0x1c274b){_0x11319a=_0x11319a-0x13a;const _0x1eb4f1=a222_0x1eb4();let _0x102ea0=_0x1eb4f1[_0x11319a];return _0x102ea0;}function a222_0x1eb4(){const _0x17cff0=['636415cSfdSy','1973601LmlMNi','9KRUJAP','5356878ONnNCE','16571704HtFLsP','6539134JcvYBT','8IbZoum','2500672MOZeBu','102183MgrEBA'];a222_0x1eb4=function(){return _0x17cff0;};return a222_0x1eb4();}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- const a210_0x3292f1=a210_0x4ff9;function a210_0x4ff9(_0x59f455,_0x4c2377){_0x59f455=_0x59f455-0x17a;const _0x3a281e=a210_0x3a28();let _0x4ff996=_0x3a281e[_0x59f455];return _0x4ff996;}(function(_0xbbf33d,_0x2c4fef){const _0x478015=a210_0x4ff9,_0x23365a=_0xbbf33d();while(!![]){try{const _0x27c6a9=-parseInt(_0x478015(0x189))/0x1*(-parseInt(_0x478015(0x18f))/0x2)+parseInt(_0x478015(0x17c))/0x3*(-parseInt(_0x478015(0x18e))/0x4)+parseInt(_0x478015(0x18c))/0x5*(parseInt(_0x478015(0x17e))/0x6)+parseInt(_0x478015(0x17b))/0x7+parseInt(_0x478015(0x17f))/0x8*(-parseInt(_0x478015(0x18a))/0x9)+parseInt(_0x478015(0x17a))/0xa*(parseInt(_0x478015(0x18b))/0xb)+-parseInt(_0x478015(0x191))/0xc;if(_0x27c6a9===_0x2c4fef)break;else _0x23365a['push'](_0x23365a['shift']());}catch(_0x59889d){_0x23365a['push'](_0x23365a['shift']());}}}(a210_0x3a28,0x266c9));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a210_0x3a28(){const _0x5a40bf=['645LoWyWN','trim','1166116zbEDnP','432422RmZQXw','tenant','1858620tnTebj','20VgDZiM','1070153HVgHda','3hlEWfp','tenant-code','2442lcslit','96KutmnH','\x20tenant\x20member(s)','Exact\x20tenant\x20code','string','Pass\x20--tenant-code\x20<code>.','Found\x20','length','flagMissing','read','str','1qVXHXY','1323SiGkGW','1011835hrFeGD'];a210_0x3a28=function(){return _0x5a40bf;};return a210_0x3a28();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a210_0x3292f1(0x190),'command':'members-list','description':'List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','risk':a210_0x3292f1(0x187),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':a210_0x3292f1(0x182),'required':!![],'description':a210_0x3292f1(0x181)}],async 'validate'(_0x3dd468){const _0x4be5f7=a210_0x3292f1;if(!_0x3dd468[_0x4be5f7(0x188)](_0x4be5f7(0x17d))[_0x4be5f7(0x18d)]())throw CliErrors[_0x4be5f7(0x186)](_0x4be5f7(0x17d),_0x4be5f7(0x183));},async 'execute'(_0x96ff65){const _0x5b40f5=a210_0x3292f1,_0x2314a4=_0x96ff65[_0x5b40f5(0x188)]('tenant-code')[_0x5b40f5(0x18d)](),_0x58154b=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x2314a4,_0x58154b);const _0x5f5287=projectTenantMembers(await listTenantDirectoryMembers(_0x2314a4));return{'ok':!![],'data':{'tenantCode':_0x2314a4,'items':_0x5f5287,'totalCount':_0x5f5287[_0x5b40f5(0x185)]},'message':_0x5b40f5(0x184)+_0x5f5287[_0x5b40f5(0x185)]+_0x5b40f5(0x180)};}};
1
+ function a223_0x44f1(_0x3f4a1e,_0x11d091){_0x3f4a1e=_0x3f4a1e-0x168;const _0x35c9d6=a223_0x35c9();let _0x44f1ea=_0x35c9d6[_0x3f4a1e];return _0x44f1ea;}const a223_0x44542f=a223_0x44f1;(function(_0x2ba146,_0x2c1ac1){const _0x191879=a223_0x44f1,_0x3881e5=_0x2ba146();while(!![]){try{const _0x44458a=-parseInt(_0x191879(0x17d))/0x1+-parseInt(_0x191879(0x16a))/0x2+parseInt(_0x191879(0x16e))/0x3+-parseInt(_0x191879(0x172))/0x4*(parseInt(_0x191879(0x16d))/0x5)+-parseInt(_0x191879(0x171))/0x6*(-parseInt(_0x191879(0x177))/0x7)+-parseInt(_0x191879(0x169))/0x8*(-parseInt(_0x191879(0x17b))/0x9)+parseInt(_0x191879(0x173))/0xa;if(_0x44458a===_0x2c1ac1)break;else _0x3881e5['push'](_0x3881e5['shift']());}catch(_0x271be3){_0x3881e5['push'](_0x3881e5['shift']());}}}(a223_0x35c9,0xdebad));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a223_0x35c9(){const _0x13dd4a=['trim','7MjzSmZ','length','Found\x20','\x20tenant\x20member(s)','918TXSpES','Pass\x20--tenant-code\x20<code>.','70365XdmcwA','members-list','124792JaKMmU','2329424WwlsNH','tenant-code','Exact\x20tenant\x20code','1037735lfeYWt','1581387lupVME','flagMissing','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','8575806yBvnkl','32PXkYpT','2602260TYucDZ','str','read'];a223_0x35c9=function(){return _0x13dd4a;};return a223_0x35c9();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':'tenant','command':a223_0x44542f(0x168),'description':a223_0x44542f(0x170),'risk':a223_0x44542f(0x175),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a223_0x44542f(0x16b),'type':'string','required':!![],'description':a223_0x44542f(0x16c)}],async 'validate'(_0x423ae8){const _0x4ca4eb=a223_0x44542f;if(!_0x423ae8[_0x4ca4eb(0x174)]('tenant-code')[_0x4ca4eb(0x176)]())throw CliErrors[_0x4ca4eb(0x16f)]('tenant-code',_0x4ca4eb(0x17c));},async 'execute'(_0x3708ca){const _0x387de8=a223_0x44542f,_0x595613=_0x3708ca['str'](_0x387de8(0x16b))['trim'](),_0x543c0b=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x595613,_0x543c0b);const _0x205b4f=projectTenantMembers(await listTenantDirectoryMembers(_0x595613));return{'ok':!![],'data':{'tenantCode':_0x595613,'items':_0x205b4f,'totalCount':_0x205b4f[_0x387de8(0x178)]},'message':_0x387de8(0x179)+_0x205b4f['length']+_0x387de8(0x17a)};}};
@@ -1 +1 @@
1
- (function(_0x24bcb0,_0x25a427){const _0x5c3551=a211_0x1403,_0x2ed5f5=_0x24bcb0();while(!![]){try{const _0x21b366=parseInt(_0x5c3551(0x1fa))/0x1+-parseInt(_0x5c3551(0x1f7))/0x2+parseInt(_0x5c3551(0x1ea))/0x3+-parseInt(_0x5c3551(0x1f4))/0x4*(parseInt(_0x5c3551(0x1e8))/0x5)+-parseInt(_0x5c3551(0x1f1))/0x6+parseInt(_0x5c3551(0x1ed))/0x7+parseInt(_0x5c3551(0x1f6))/0x8;if(_0x21b366===_0x25a427)break;else _0x2ed5f5['push'](_0x2ed5f5['shift']());}catch(_0x216efd){_0x2ed5f5['push'](_0x2ed5f5['shift']());}}}(a211_0x6116,0x84404));import{CliErrors}from'../../errors.js';function textOrNull(_0x585b7d){const _0x3d2415=_0x585b7d?.['trim']();return _0x3d2415?_0x3d2415:null;}function a211_0x1403(_0x4ed50b,_0x44ab06){_0x4ed50b=_0x4ed50b-0x1e6;const _0x61168b=a211_0x6116();let _0x1403be=_0x61168b[_0x4ed50b];return _0x1403be;}export function projectTenantMembers(_0x58531a){const _0x40ba65=a211_0x1403,_0x5311a7=new Map();for(const _0x5e1653 of _0x58531a){const _0x2800aa=Number(_0x5e1653[_0x40ba65(0x1f0)]);if(!Number['isFinite'](_0x2800aa)||_0x2800aa<=0x0)continue;const _0x5c9bac={'userId':_0x2800aa,'username':textOrNull(_0x5e1653[_0x40ba65(0x1ec)]),'displayName':textOrNull(_0x5e1653[_0x40ba65(0x1e7)]),'role':_0x5e1653['adminFlag']===!![]?'ADMIN':_0x40ba65(0x1e9),'status':textOrNull(_0x5e1653[_0x40ba65(0x1fd)])},_0x2ba7c4=_0x5311a7[_0x40ba65(0x1f9)](_0x2800aa);if(!_0x2ba7c4){_0x5311a7[_0x40ba65(0x1ee)](_0x2800aa,_0x5c9bac);continue;}_0x2ba7c4[_0x40ba65(0x1ec)]??=_0x5c9bac['username'],_0x2ba7c4[_0x40ba65(0x1fc)]??=_0x5c9bac['displayName'],_0x2ba7c4[_0x40ba65(0x1fd)]??=_0x5c9bac[_0x40ba65(0x1fd)];if(_0x5c9bac[_0x40ba65(0x1e6)]===_0x40ba65(0x1f3))_0x2ba7c4[_0x40ba65(0x1e6)]=_0x40ba65(0x1f3);}return[..._0x5311a7[_0x40ba65(0x1f8)]()][_0x40ba65(0x1eb)]((_0x5d988d,_0x5c7b29)=>_0x5d988d[_0x40ba65(0x1f0)]-_0x5c7b29[_0x40ba65(0x1f0)]);}function a211_0x6116(){const _0x520d0c=['values','get','320560LLXASj','Tenant\x20\x22','displayName','status','role','nickname','1964660RtQqff','MEMBER','939435vbpbrf','sort','username','703164qgHaSF','set','validation','userId','5750550igmafN','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','ADMIN','4rNCMTm','tenantCode','12640888WkMRZl','842422kfzdSU'];a211_0x6116=function(){return _0x520d0c;};return a211_0x6116();}export function assertTenantAccessible(_0x275cee,_0x334b06){const _0x1b4b77=a211_0x1403;if(_0x334b06['some'](_0x3a0b3e=>_0x3a0b3e[_0x1b4b77(0x1f5)]===_0x275cee))return;throw CliErrors[_0x1b4b77(0x1ef)](_0x1b4b77(0x1fb)+_0x275cee+_0x1b4b77(0x1f2),'Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.');}
1
+ (function(_0x1bff39,_0x3da2cf){const _0x51b055=a224_0x3df3,_0x4d6460=_0x1bff39();while(!![]){try{const _0x4cb569=-parseInt(_0x51b055(0x161))/0x1+-parseInt(_0x51b055(0x155))/0x2+-parseInt(_0x51b055(0x15e))/0x3+parseInt(_0x51b055(0x165))/0x4*(-parseInt(_0x51b055(0x163))/0x5)+parseInt(_0x51b055(0x169))/0x6+parseInt(_0x51b055(0x162))/0x7*(-parseInt(_0x51b055(0x16a))/0x8)+parseInt(_0x51b055(0x159))/0x9;if(_0x4cb569===_0x3da2cf)break;else _0x4d6460['push'](_0x4d6460['shift']());}catch(_0x5d9721){_0x4d6460['push'](_0x4d6460['shift']());}}}(a224_0x30af,0xecf2a));function a224_0x30af(){const _0x4b896a=['MEMBER','status','displayName','1837038qwibZF','40104ikvHjj','get','ADMIN','sort','189756rLeyNb','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','some','tenantCode','32329755MoTiNl','isFinite','adminFlag','Tenant\x20\x22','validation','5730786jGmeYr','userId','username','683820LYeYts','133aMdPsP','23165KdfZNP','set','124jCNJnr'];a224_0x30af=function(){return _0x4b896a;};return a224_0x30af();}import{CliErrors}from'../../errors.js';function textOrNull(_0x5d58e5){const _0x176092=_0x5d58e5?.['trim']();return _0x176092?_0x176092:null;}function a224_0x3df3(_0x2efb2d,_0xd0339c){_0x2efb2d=_0x2efb2d-0x154;const _0x30af85=a224_0x30af();let _0x3df3cc=_0x30af85[_0x2efb2d];return _0x3df3cc;}export function projectTenantMembers(_0x58d7f9){const _0x53a45f=a224_0x3df3,_0xad12d2=new Map();for(const _0x231883 of _0x58d7f9){const _0x24eca5=Number(_0x231883[_0x53a45f(0x15f)]);if(!Number[_0x53a45f(0x15a)](_0x24eca5)||_0x24eca5<=0x0)continue;const _0x20fc18={'userId':_0x24eca5,'username':textOrNull(_0x231883['username']),'displayName':textOrNull(_0x231883['nickname']),'role':_0x231883[_0x53a45f(0x15b)]===!![]?'ADMIN':_0x53a45f(0x166),'status':textOrNull(_0x231883[_0x53a45f(0x167)])},_0x9bd16f=_0xad12d2[_0x53a45f(0x16b)](_0x24eca5);if(!_0x9bd16f){_0xad12d2[_0x53a45f(0x164)](_0x24eca5,_0x20fc18);continue;}_0x9bd16f[_0x53a45f(0x160)]??=_0x20fc18[_0x53a45f(0x160)],_0x9bd16f[_0x53a45f(0x168)]??=_0x20fc18[_0x53a45f(0x168)],_0x9bd16f[_0x53a45f(0x167)]??=_0x20fc18[_0x53a45f(0x167)];if(_0x20fc18['role']===_0x53a45f(0x16c))_0x9bd16f['role']=_0x53a45f(0x16c);}return[..._0xad12d2['values']()][_0x53a45f(0x154)]((_0x33be80,_0x5634ea)=>_0x33be80[_0x53a45f(0x15f)]-_0x5634ea[_0x53a45f(0x15f)]);}export function assertTenantAccessible(_0x48cf56,_0x406b9d){const _0x174a2c=a224_0x3df3;if(_0x406b9d[_0x174a2c(0x157)](_0x8ab556=>_0x8ab556[_0x174a2c(0x158)]===_0x48cf56))return;throw CliErrors[_0x174a2c(0x15d)](_0x174a2c(0x15c)+_0x48cf56+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x174a2c(0x156));}
@@ -1 +1 @@
1
- const a212_0x366cbd=a212_0x3483;(function(_0x160a46,_0x59cccb){const _0x560751=a212_0x3483,_0x478898=_0x160a46();while(!![]){try{const _0x1a9fd9=-parseInt(_0x560751(0x110))/0x1*(-parseInt(_0x560751(0x104))/0x2)+-parseInt(_0x560751(0x106))/0x3*(parseInt(_0x560751(0x100))/0x4)+-parseInt(_0x560751(0xfe))/0x5*(parseInt(_0x560751(0x114))/0x6)+parseInt(_0x560751(0x108))/0x7+-parseInt(_0x560751(0x101))/0x8*(parseInt(_0x560751(0xfb))/0x9)+-parseInt(_0x560751(0xff))/0xa*(-parseInt(_0x560751(0xfc))/0xb)+-parseInt(_0x560751(0x112))/0xc*(-parseInt(_0x560751(0x10f))/0xd);if(_0x1a9fd9===_0x59cccb)break;else _0x478898['push'](_0x478898['shift']());}catch(_0x43e541){_0x478898['push'](_0x478898['shift']());}}}(a212_0x8662,0x45414));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 a212_0x3483(_0xb6c5ff,_0x3d3140){_0xb6c5ff=_0xb6c5ff-0xfb;const _0x8662f6=a212_0x8662();let _0x34833d=_0x8662f6[_0xb6c5ff];return _0x34833d;}const PROVIDER_ID=a212_0x366cbd(0x10c),CURRENT_BINDING_WARNING=a212_0x366cbd(0x10a);function readDingTalkUserId(_0x105957){const _0x119771=a212_0x366cbd,_0x36ba61=_0x105957[_0x119771(0xfd)]('ding-talk-user-id')[_0x119771(0x10b)]();if(!_0x36ba61)throw CliErrors[_0x119771(0x111)]('--ding-talk-user-id\x20cannot\x20be\x20empty.','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.');return _0x36ba61;}function buildBindingData(_0xb97004,_0xd16628){const _0x13db39=a212_0x366cbd;return{'operation':'bind','selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0xb97004},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0xb97004,'bound':!![]},'dryRun':_0xd16628,'backend':{'method':_0x13db39(0x105),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a212_0x8662(){const _0x43dc09=['4sGWtIx','1288vzMpFc','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','3752zTuJdP','POST','302649VtIhab','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','1872486uADgXq','ding-talk-user-id','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','trim','dingtalk','write','dingding-sandbox-bind','624aGxsiS','113GuqtWg','validation','103260MBuEMg','string','30RQqOLs','18513SiOKUJ','11MXddTu','str','348295EtYnNf','1714970GOrXAn'];a212_0x8662=function(){return _0x43dc09;};return a212_0x8662();}export const dingTalkSandboxBind={'service':'user-account','command':a212_0x366cbd(0x10e),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':a212_0x366cbd(0x10d),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a212_0x366cbd(0x109),'type':a212_0x366cbd(0x113),'required':!![],'description':a212_0x366cbd(0x102)}],async 'validate'(_0x3c8b5b){readDingTalkUserId(_0x3c8b5b);},async 'dryRun'(_0xa3b610){const _0x5b8b67=readDingTalkUserId(_0xa3b610);return asDryRunResult(buildBindingData(_0x5b8b67,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x41dc62){const _0xea0ecf=a212_0x366cbd,_0x154521=readDingTalkUserId(_0x41dc62),_0x33906d=await bindDingTalkSandboxAccount(_0x154521);if(_0x33906d!==!![])throw CliErrors['apiError'](_0xea0ecf(0x107),_0xea0ecf(0x103));return{'ok':!![],'data':buildBindingData(_0x154521,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
1
+ function a225_0x112f(){const _0x5e1802=['2925480YnAJyw','1076853yjcTnp','bind','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','2fZejjq','POST','5feStfj','string','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','854565PkNOEn','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','dingding-sandbox-bind','validation','11jgdkGb','trim','7321398bVKUAZ','user-account','41967jJalvj','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','3461980gmleKk','--ding-talk-user-id\x20cannot\x20be\x20empty.','1160SCCGWM','3849475BaZZjK','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','write','ding-talk-user-id'];a225_0x112f=function(){return _0x5e1802;};return a225_0x112f();}const a225_0x5d8eeb=a225_0x39b4;(function(_0x19df34,_0x44be6e){const _0x431d1a=a225_0x39b4,_0x2d8bf9=_0x19df34();while(!![]){try{const _0x4fefa6=parseInt(_0x431d1a(0x7e))/0x1+-parseInt(_0x431d1a(0x78))/0x2*(parseInt(_0x431d1a(0x75))/0x3)+-parseInt(_0x431d1a(0x74))/0x4+parseInt(_0x431d1a(0x7a))/0x5*(parseInt(_0x431d1a(0x69))/0x6)+-parseInt(_0x431d1a(0x70))/0x7+parseInt(_0x431d1a(0x6f))/0x8*(parseInt(_0x431d1a(0x6b))/0x9)+-parseInt(_0x431d1a(0x6d))/0xa*(parseInt(_0x431d1a(0x67))/0xb);if(_0x4fefa6===_0x44be6e)break;else _0x2d8bf9['push'](_0x2d8bf9['shift']());}catch(_0x27dbf3){_0x2d8bf9['push'](_0x2d8bf9['shift']());}}}(a225_0x112f,0xbaa49));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';function a225_0x39b4(_0x3c0d35,_0x42d85d){_0x3c0d35=_0x3c0d35-0x65;const _0x112fc2=a225_0x112f();let _0x39b4d9=_0x112fc2[_0x3c0d35];return _0x39b4d9;}import{CliErrors}from'../../errors.js';const PROVIDER_ID='dingtalk',CURRENT_BINDING_WARNING=a225_0x5d8eeb(0x7c);function readDingTalkUserId(_0x5ea09c){const _0x16a2e5=a225_0x5d8eeb,_0x3e53=_0x5ea09c['str'](_0x16a2e5(0x73))[_0x16a2e5(0x68)]();if(!_0x3e53)throw CliErrors[_0x16a2e5(0x66)](_0x16a2e5(0x6e),_0x16a2e5(0x7d));return _0x3e53;}function buildBindingData(_0x5e3f8f,_0x44d587){const _0x44e1f4=a225_0x5d8eeb;return{'operation':_0x44e1f4(0x76),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e3f8f},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x5e3f8f,'bound':!![]},'dryRun':_0x44d587,'backend':{'method':_0x44e1f4(0x79),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a225_0x5d8eeb(0x6a),'command':a225_0x5d8eeb(0x65),'description':a225_0x5d8eeb(0x71),'risk':a225_0x5d8eeb(0x72),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a225_0x5d8eeb(0x73),'type':a225_0x5d8eeb(0x7b),'required':!![],'description':a225_0x5d8eeb(0x7f)}],async 'validate'(_0x4f89a5){readDingTalkUserId(_0x4f89a5);},async 'dryRun'(_0x4079c1){const _0x1f3fd1=a225_0x5d8eeb,_0x3d7a26=readDingTalkUserId(_0x4079c1);return asDryRunResult(buildBindingData(_0x3d7a26,!![]),{'method':_0x1f3fd1(0x79),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x133b85){const _0x8407fc=a225_0x5d8eeb,_0x4e729a=readDingTalkUserId(_0x133b85),_0x3c9d48=await bindDingTalkSandboxAccount(_0x4e729a);if(_0x3c9d48!==!![])throw CliErrors['apiError'](_0x8407fc(0x6c),'Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x4e729a,![]),'message':_0x8407fc(0x77)};}};
@@ -1 +1 @@
1
- (function(_0x2437f0,_0x727f5){const _0x372d03=a213_0x1ce7,_0x5bb2cf=_0x2437f0();while(!![]){try{const _0x22db8b=-parseInt(_0x372d03(0x1b5))/0x1+-parseInt(_0x372d03(0x1b9))/0x2*(parseInt(_0x372d03(0x1b8))/0x3)+-parseInt(_0x372d03(0x1b7))/0x4+-parseInt(_0x372d03(0x1b3))/0x5*(parseInt(_0x372d03(0x1b4))/0x6)+parseInt(_0x372d03(0x1b2))/0x7+-parseInt(_0x372d03(0x1b6))/0x8*(parseInt(_0x372d03(0x1bb))/0x9)+-parseInt(_0x372d03(0x1ba))/0xa*(-parseInt(_0x372d03(0x1b1))/0xb);if(_0x22db8b===_0x727f5)break;else _0x5bb2cf['push'](_0x5bb2cf['shift']());}catch(_0x281f97){_0x5bb2cf['push'](_0x5bb2cf['shift']());}}}(a213_0x2ff0,0x5bd3d));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a213_0x2ff0(){const _0x1e21e9=['3724938wNDkoD','977495soxYtq','6MiPyqR','463503MlVgel','56xHkQHs','470768MEAWam','1814259VVBQfq','2dJGFlx','100DGLpip','655164BHFojX','1908511pyBYUi'];a213_0x2ff0=function(){return _0x1e21e9;};return a213_0x2ff0();}function a213_0x1ce7(_0x5484fe,_0x12e0ae){_0x5484fe=_0x5484fe-0x1b1;const _0x2ff0cd=a213_0x2ff0();let _0x1ce727=_0x2ff0cd[_0x5484fe];return _0x1ce727;}export const userAccountDefinitions=[dingTalkSandboxBind];
1
+ (function(_0x2fd396,_0x5bac8e){const _0x29122e=a226_0x4a55,_0x144479=_0x2fd396();while(!![]){try{const _0x2c5645=-parseInt(_0x29122e(0x1a9))/0x1+-parseInt(_0x29122e(0x1ab))/0x2+parseInt(_0x29122e(0x1ae))/0x3+-parseInt(_0x29122e(0x1ad))/0x4*(-parseInt(_0x29122e(0x1ac))/0x5)+-parseInt(_0x29122e(0x1b0))/0x6*(-parseInt(_0x29122e(0x1a7))/0x7)+-parseInt(_0x29122e(0x1aa))/0x8*(-parseInt(_0x29122e(0x1a8))/0x9)+-parseInt(_0x29122e(0x1af))/0xa;if(_0x2c5645===_0x5bac8e)break;else _0x144479['push'](_0x144479['shift']());}catch(_0x2c671b){_0x144479['push'](_0x144479['shift']());}}}(a226_0x4660,0x935d2));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a226_0x4660(){const _0x3aa613=['3184QJgHpT','615606ReqRvu','228295JwrYLu','60IYFHfT','2976195eBLBGq','14610710ukoRys','12qSNnsY','617939jXAemd','19350SxpFJb','336728zAXOEU'];a226_0x4660=function(){return _0x3aa613;};return a226_0x4660();}function a226_0x4a55(_0x541137,_0x5d046c){_0x541137=_0x541137-0x1a7;const _0x46604f=a226_0x4660();let _0x4a55f9=_0x46604f[_0x541137];return _0x4a55f9;}export const userAccountDefinitions=[dingTalkSandboxBind];
@@ -1 +1 @@
1
- function a214_0x3452(){const _0x54ccd9=['App\x20profile\x20name','9413586RymvwD','workspace','add','272VAqlCb','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','12377770KDGoyo','1964mYjdft','11345AGUJAc','write','13542mQlYoD','workspace\x20add','1200938jcPCmO','name','966SJmwiN','2821YiSBNq','1418432jDtEzZ'];a214_0x3452=function(){return _0x54ccd9;};return a214_0x3452();}function a214_0x1320(_0x3ff962,_0x36b3b1){_0x3ff962=_0x3ff962-0xa1;const _0x3452b6=a214_0x3452();let _0x1320b2=_0x3452b6[_0x3ff962];return _0x1320b2;}const a214_0x52841a=a214_0x1320;(function(_0x319632,_0x183e1a){const _0x2475b5=a214_0x1320,_0xcaf8a8=_0x319632();while(!![]){try{const _0x1a6f22=-parseInt(_0x2475b5(0xa3))/0x1+-parseInt(_0x2475b5(0xac))/0x2*(-parseInt(_0x2475b5(0xa1))/0x3)+parseInt(_0x2475b5(0xaf))/0x4*(parseInt(_0x2475b5(0xb0))/0x5)+parseInt(_0x2475b5(0xa5))/0x6*(parseInt(_0x2475b5(0xa6))/0x7)+-parseInt(_0x2475b5(0xa7))/0x8+-parseInt(_0x2475b5(0xa9))/0x9+parseInt(_0x2475b5(0xae))/0xa;if(_0x1a6f22===_0x183e1a)break;else _0xcaf8a8['push'](_0xcaf8a8['shift']());}catch(_0x452c2e){_0xcaf8a8['push'](_0xcaf8a8['shift']());}}}(a214_0x3452,0x940ef));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a214_0x52841a(0xaa),'command':a214_0x52841a(0xab),'description':a214_0x52841a(0xad),'risk':a214_0x52841a(0xb1),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a214_0x52841a(0xa4),'description':a214_0x52841a(0xa8),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x431137=>validateAppName(_0x431137,a214_0x52841a(0xa2)),'execute':_0x155e9c=>runAppAdd(_0x155e9c,a214_0x52841a(0xa2))};
1
+ const a227_0x32e8a2=a227_0x3d55;function a227_0x3d55(_0x5e8d18,_0x49a770){_0x5e8d18=_0x5e8d18-0x17a;const _0x4042b9=a227_0x4042();let _0x3d55b=_0x4042b9[_0x5e8d18];return _0x3d55b;}(function(_0xa12989,_0x5d1a01){const _0x139cef=a227_0x3d55,_0x98d8b4=_0xa12989();while(!![]){try{const _0x5801dc=-parseInt(_0x139cef(0x17d))/0x1*(-parseInt(_0x139cef(0x187))/0x2)+-parseInt(_0x139cef(0x188))/0x3*(parseInt(_0x139cef(0x17c))/0x4)+-parseInt(_0x139cef(0x17f))/0x5*(-parseInt(_0x139cef(0x186))/0x6)+-parseInt(_0x139cef(0x181))/0x7*(-parseInt(_0x139cef(0x182))/0x8)+-parseInt(_0x139cef(0x18b))/0x9*(-parseInt(_0x139cef(0x184))/0xa)+-parseInt(_0x139cef(0x17e))/0xb*(parseInt(_0x139cef(0x189))/0xc)+-parseInt(_0x139cef(0x18c))/0xd*(parseInt(_0x139cef(0x183))/0xe);if(_0x5801dc===_0x5d1a01)break;else _0x98d8b4['push'](_0x98d8b4['shift']());}catch(_0x14c3ae){_0x98d8b4['push'](_0x98d8b4['shift']());}}}(a227_0x4042,0x353b2));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a227_0x4042(){const _0x884aad=['42290srIQkJ','write','438qFLIOj','86sqVvyL','3OjScIZ','36YQpbLh','App\x20profile\x20name','270FuXxZp','3641859UptpcD','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','add','1112444ogpVZP','131EQJKAM','482471LuRdjN','26930cbdZwV','workspace\x20add','70VvvLJV','305752vcuYSB','14RHGNbt'];a227_0x4042=function(){return _0x884aad;};return a227_0x4042();}export const workspaceAddDefinition={'service':a227_0x32e8a2(0x18d),'command':a227_0x32e8a2(0x17b),'description':a227_0x32e8a2(0x17a),'risk':a227_0x32e8a2(0x185),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a227_0x32e8a2(0x18a),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x1f2219=>validateAppName(_0x1f2219,a227_0x32e8a2(0x180)),'execute':_0x42b1db=>runAppAdd(_0x42b1db,'workspace\x20add')};
@@ -1 +1 @@
1
- const a215_0x288320=a215_0x4b12;(function(_0x3e283a,_0x4261bd){const _0x5550f0=a215_0x4b12,_0x42be80=_0x3e283a();while(!![]){try{const _0x2b8083=parseInt(_0x5550f0(0x17b))/0x1+parseInt(_0x5550f0(0x16e))/0x2*(parseInt(_0x5550f0(0x162))/0x3)+parseInt(_0x5550f0(0x15a))/0x4*(-parseInt(_0x5550f0(0x16b))/0x5)+-parseInt(_0x5550f0(0x178))/0x6*(-parseInt(_0x5550f0(0x188))/0x7)+-parseInt(_0x5550f0(0x171))/0x8+-parseInt(_0x5550f0(0x177))/0x9*(-parseInt(_0x5550f0(0x18d))/0xa)+parseInt(_0x5550f0(0x172))/0xb;if(_0x2b8083===_0x4261bd)break;else _0x42be80['push'](_0x42be80['shift']());}catch(_0x44ac49){_0x42be80['push'](_0x42be80['shift']());}}}(a215_0x4891,0x2c794));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';function a215_0x4891(){const _0x4eac55=['167302Ralqsj','Invalid\x20appcode:\x20','object','801848UmGOqY','2683813eNUjQT','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20(appcode:\x20','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','app','153knIFmH','30264dNGHzp','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','use','7095WocuAM','env','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','\x20--app\x20','trim','updated','defaultFormat','riskLevel','Missing\x20workspace\x20app\x20selector.','locale','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','.\x20Credentials:\x20not\x20written.','28CDdQOl','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','apiDir','isArray','project','89730jFCnKt','write','Use\x20`','join','workspace.','Initialize\x20the\x20current\x20workspace\x20app\x20binding','workspace','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','initialized','keys','4bifSwv','\x20--appcode\x20<code>`.','validation','format','flag','Workspace\x20','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile',').\x20Config:\x20','6mjNDoj','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','init','apps','pageSize','string','appcode','1543510nsVclN','str','number'];a215_0x4891=function(){return _0x4eac55;};return a215_0x4891();}import{normalizeStoredDefaultApp}from'../../config/schema.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a215_0x288320(0x186),SAFE_PROFILE_KEYS=[a215_0x288320(0x16a),a215_0x288320(0x17c),'apiDir',a215_0x288320(0x15d),a215_0x288320(0x168),a215_0x288320(0x182),'locale'],workspaceFlags=[{'name':a215_0x288320(0x176),'type':'string','description':a215_0x288320(0x17d)},{'name':a215_0x288320(0x16a),'type':'string','description':a215_0x288320(0x164)},{'name':a215_0x288320(0x17c),'type':a215_0x288320(0x169),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':a215_0x288320(0x18a),'type':a215_0x288320(0x169),'description':a215_0x288320(0x179)},{'name':a215_0x288320(0x181),'type':a215_0x288320(0x169),'description':a215_0x288320(0x160),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a215_0x288320(0x168),'type':a215_0x288320(0x16d),'description':a215_0x288320(0x194)},{'name':'riskLevel','type':'string','description':a215_0x288320(0x185),'enum':[...RISK_LEVEL_VALUES]},{'name':a215_0x288320(0x184),'type':a215_0x288320(0x169),'description':a215_0x288320(0x175)}];function isRecord(_0x4676b5){const _0x5a58fc=a215_0x288320;return!!_0x4676b5&&typeof _0x4676b5===_0x5a58fc(0x170)&&!Array[_0x5a58fc(0x18b)](_0x4676b5);}function assertValidAppcode(_0x538856){const _0xb2172c=a215_0x288320,{valid:_0x1fb11e,message:_0x4da2ac}=validateAppcode(_0x538856);if(!_0x1fb11e)throw CliErrors['validation'](_0xb2172c(0x16f)+_0x538856,_0x4da2ac);}function sanitizeProfile(_0x2d7f72){if(!isRecord(_0x2d7f72))return{};const _0xd76e8d={};for(const _0x323f16 of SAFE_PROFILE_KEYS){if(_0x2d7f72[_0x323f16]!==undefined)_0xd76e8d[_0x323f16]=_0x2d7f72[_0x323f16];}return _0xd76e8d;}function cloneProfile(_0x2e00e0){return isRecord(_0x2e00e0)?{..._0x2e00e0}:{};}function collectWorkspaceProfileOverrides(_0x53f2df){const _0x4ebbe9=a215_0x288320,_0xe54f27={},_0xb64272=_0x53f2df[_0x4ebbe9(0x16c)](_0x4ebbe9(0x17c)),_0x562cb0=_0x53f2df['str']('apiDir'),_0x544005=_0x53f2df[_0x4ebbe9(0x16c)]('defaultFormat'),_0x2f4daa=_0x53f2df[_0x4ebbe9(0x15e)](_0x4ebbe9(0x168)),_0x5a4eff=_0x53f2df[_0x4ebbe9(0x16c)]('riskLevel'),_0x55db3a=_0x53f2df['str'](_0x4ebbe9(0x184));if(_0xb64272)_0xe54f27[_0x4ebbe9(0x17c)]=_0xb64272;if(_0x562cb0)_0xe54f27[_0x4ebbe9(0x18a)]=_0x562cb0;if(_0x544005)_0xe54f27['format']=_0x544005;if(_0x2f4daa!==undefined&&_0x2f4daa!=='')_0xe54f27[_0x4ebbe9(0x168)]=Number(_0x2f4daa);if(_0x5a4eff)_0xe54f27['riskLevel']=_0x5a4eff;if(_0x55db3a)_0xe54f27['locale']=_0x55db3a;return _0xe54f27;}async function validateWorkspaceArgs(_0x224913){const _0x8919ea=a215_0x288320,_0x4c6c2b=_0x224913[_0x8919ea(0x16c)](_0x8919ea(0x176))[_0x8919ea(0x17f)](),_0xd24507=_0x224913[_0x8919ea(0x16c)]('appcode')[_0x8919ea(0x17f)]();if(!_0x4c6c2b&&!_0xd24507)throw CliErrors[_0x8919ea(0x15c)](_0x8919ea(0x183),_0x8919ea(0x18f)+CLI_BIN_NAME+_0x8919ea(0x189)+CLI_BIN_NAME+_0x8919ea(0x165));if(_0xd24507)assertValidAppcode(_0xd24507);}function resolveKnownApps(){const _0x5a0fd6=a215_0x288320,{config:_0x4287db,layers:_0x9906d1}=readRawConfigWithLayers(),_0x253ade=isRecord(_0x4287db[_0x5a0fd6(0x167)])?_0x4287db[_0x5a0fd6(0x167)]:{},_0x379939=isRecord(_0x9906d1['globalConfig']['apps'])?_0x9906d1['globalConfig'][_0x5a0fd6(0x167)]:{};return{..._0x379939,..._0x253ade};}function a215_0x4b12(_0x323dab,_0x28c5ce){_0x323dab=_0x323dab-0x159;const _0x48913b=a215_0x4891();let _0x4b12a6=_0x48913b[_0x323dab];return _0x4b12a6;}async function configureWorkspace(_0xe1c9c0,_0x59d726){const _0x3fd628=a215_0x288320,_0x18ffc7=_0xe1c9c0[_0x3fd628(0x16c)]('app')['trim'](),_0x4381c7=_0xe1c9c0['str'](_0x3fd628(0x16a))[_0x3fd628(0x17f)](),_0x10cbba=_0x18ffc7||_0x4381c7;if(!_0x10cbba)throw CliErrors[_0x3fd628(0x15c)](_0x3fd628(0x183),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x3fd628(0x165));if(_0x4381c7)assertValidAppcode(_0x4381c7);const _0x34327f=resolveWriteConfigPath(_0x3fd628(0x18c)),_0x25f861=readConfigFile(_0x34327f),_0x970495=resolveKnownApps(),_0x560557=isRecord(_0x25f861['apps'])?{..._0x25f861['apps']}:{},_0x31d6ca=cloneProfile(_0x560557[_0x10cbba]),_0x517ae1=sanitizeProfile(_0x970495[_0x10cbba]),_0x4972f2=_0x4381c7?{}:_0x517ae1,_0x5cd1c3=_0x4381c7||_0x4972f2[_0x3fd628(0x16a)];if(!_0x5cd1c3){const _0x3d4452=Object[_0x3fd628(0x159)](_0x970495),_0x378691=_0x3d4452['length']===0x0?_0x3fd628(0x18f)+CLI_BIN_NAME+'\x20workspace\x20'+_0x59d726+_0x3fd628(0x17e)+_0x10cbba+_0x3fd628(0x15b):_0x3fd628(0x163)+_0x3d4452[_0x3fd628(0x190)](',\x20');throw CliErrors[_0x3fd628(0x15c)]('App\x20\x22'+_0x10cbba+'\x22\x20not\x20found.',_0x378691);}assertValidAppcode(String(_0x5cd1c3));const _0x194c03={..._0x4972f2,..._0x31d6ca,'appcode':String(_0x5cd1c3),...collectWorkspaceProfileOverrides(_0xe1c9c0)};return _0x560557[_0x10cbba]=_0x194c03,_0x25f861[_0x3fd628(0x167)]=_0x560557,normalizeStoredDefaultApp(_0x25f861,_0x10cbba),delete _0x25f861[_0x3fd628(0x16a)],delete _0x25f861[_0x3fd628(0x176)],_0x194c03['env']&&(_0x25f861[_0x3fd628(0x17c)]=_0x194c03[_0x3fd628(0x17c)]),writeConfigFile(_0x34327f,_0x25f861),{'ok':!![],'message':_0x3fd628(0x15f)+(_0x59d726===_0x3fd628(0x166)?_0x3fd628(0x195):_0x3fd628(0x180))+':\x20'+_0x10cbba+_0x3fd628(0x174)+_0x194c03[_0x3fd628(0x16a)]+_0x3fd628(0x161)+_0x34327f+_0x3fd628(0x187),'data':{'operation':_0x3fd628(0x191)+_0x59d726,'configPath':_0x34327f,'app':_0x10cbba,'appcode':_0x194c03[_0x3fd628(0x16a)],'env':_0x194c03[_0x3fd628(0x17c)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a215_0x288320(0x166),'description':a215_0x288320(0x192),'risk':a215_0x288320(0x18e),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1a4f8f=>configureWorkspace(_0x1a4f8f,a215_0x288320(0x166))},workspaceUseDefinition={'service':a215_0x288320(0x193),'command':'use','description':a215_0x288320(0x173),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4ab3aa=>configureWorkspace(_0x4ab3aa,a215_0x288320(0x17a))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a228_0xa5f72c=a228_0x15e8;(function(_0x4ef569,_0x40ee2b){const _0x21457d=a228_0x15e8,_0x79a87e=_0x4ef569();while(!![]){try{const _0x170d89=parseInt(_0x21457d(0x14b))/0x1*(-parseInt(_0x21457d(0x14c))/0x2)+-parseInt(_0x21457d(0x13f))/0x3*(-parseInt(_0x21457d(0x12f))/0x4)+parseInt(_0x21457d(0x129))/0x5+-parseInt(_0x21457d(0x144))/0x6*(parseInt(_0x21457d(0x12a))/0x7)+-parseInt(_0x21457d(0x150))/0x8*(-parseInt(_0x21457d(0x146))/0x9)+parseInt(_0x21457d(0x139))/0xa+-parseInt(_0x21457d(0x123))/0xb;if(_0x170d89===_0x40ee2b)break;else _0x79a87e['push'](_0x79a87e['shift']());}catch(_0x20a668){_0x79a87e['push'](_0x79a87e['shift']());}}}(a228_0x1716,0x1a464));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';function a228_0x1716(){const _0x1628db=['Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','locale','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','App\x20\x22','588216ToqvWB','\x20(appcode:\x20','874953pIFPww','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','join','length','Workspace\x20','106OzCIWT','2492xYSlmw','app','Target\x20environment','Invalid\x20appcode:\x20','8TxonNe','format',').\x20Config:\x20','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','globalConfig','write','apiDir','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','Use\x20`','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','workspace','keys','1918994JVrDEl','env','updated','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20workspace\x20use\x20--app\x20<name>`.','pageSize','371525hynMhI','7tEyMSh','init','Initialize\x20the\x20current\x20workspace\x20app\x20binding','use','\x22\x20not\x20found.','5076FUYpDh','defaultFormat','object','string','Missing\x20workspace\x20app\x20selector.','trim','appcode','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','apps','number','1718870fpgLki','validation','isArray','\x20workspace\x20','\x20--app\x20','str','399fVAemo'];a228_0x1716=function(){return _0x1628db;};return a228_0x1716();}import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a228_0xa5f72c(0x147),SAFE_PROFILE_KEYS=[a228_0xa5f72c(0x135),a228_0xa5f72c(0x124),'apiDir',a228_0xa5f72c(0x151),a228_0xa5f72c(0x128),a228_0xa5f72c(0x11d),'locale'],workspaceFlags=[{'name':'app','type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a228_0xa5f72c(0x135),'type':a228_0xa5f72c(0x132),'description':a228_0xa5f72c(0x126)},{'name':a228_0xa5f72c(0x124),'type':a228_0xa5f72c(0x132),'description':a228_0xa5f72c(0x14e),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a228_0xa5f72c(0x132),'description':a228_0xa5f72c(0x157)},{'name':a228_0xa5f72c(0x130),'type':a228_0xa5f72c(0x132),'description':a228_0xa5f72c(0x120),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a228_0xa5f72c(0x128),'type':a228_0xa5f72c(0x138),'description':a228_0xa5f72c(0x140)},{'name':a228_0xa5f72c(0x11d),'type':a228_0xa5f72c(0x132),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a228_0xa5f72c(0x141),'type':a228_0xa5f72c(0x132),'description':a228_0xa5f72c(0x136)}];function isRecord(_0x3d2ffb){const _0x45fd1b=a228_0xa5f72c;return!!_0x3d2ffb&&typeof _0x3d2ffb===_0x45fd1b(0x131)&&!Array[_0x45fd1b(0x13b)](_0x3d2ffb);}function assertValidAppcode(_0x120391){const _0x2799c3=a228_0xa5f72c,{valid:_0x3276a2,message:_0x8344a7}=validateAppcode(_0x120391);if(!_0x3276a2)throw CliErrors[_0x2799c3(0x13a)](_0x2799c3(0x14f)+_0x120391,_0x8344a7);}function sanitizeProfile(_0x2aa8bd){if(!isRecord(_0x2aa8bd))return{};const _0x3dcf0e={};for(const _0x26bf89 of SAFE_PROFILE_KEYS){if(_0x2aa8bd[_0x26bf89]!==undefined)_0x3dcf0e[_0x26bf89]=_0x2aa8bd[_0x26bf89];}return _0x3dcf0e;}function cloneProfile(_0xa7751b){return isRecord(_0xa7751b)?{..._0xa7751b}:{};}function collectWorkspaceProfileOverrides(_0x123da7){const _0x26df29=a228_0xa5f72c,_0x311e0e={},_0x159b66=_0x123da7[_0x26df29(0x13e)](_0x26df29(0x124)),_0x57b896=_0x123da7[_0x26df29(0x13e)](_0x26df29(0x156)),_0x371465=_0x123da7[_0x26df29(0x13e)](_0x26df29(0x130)),_0x16ec35=_0x123da7['flag'](_0x26df29(0x128)),_0x3a707c=_0x123da7[_0x26df29(0x13e)](_0x26df29(0x11d)),_0x4cc740=_0x123da7[_0x26df29(0x13e)]('locale');if(_0x159b66)_0x311e0e[_0x26df29(0x124)]=_0x159b66;if(_0x57b896)_0x311e0e[_0x26df29(0x156)]=_0x57b896;if(_0x371465)_0x311e0e['format']=_0x371465;if(_0x16ec35!==undefined&&_0x16ec35!=='')_0x311e0e[_0x26df29(0x128)]=Number(_0x16ec35);if(_0x3a707c)_0x311e0e['riskLevel']=_0x3a707c;if(_0x4cc740)_0x311e0e[_0x26df29(0x141)]=_0x4cc740;return _0x311e0e;}async function validateWorkspaceArgs(_0x510661){const _0x1e2882=a228_0xa5f72c,_0x2dc6cb=_0x510661[_0x1e2882(0x13e)](_0x1e2882(0x14d))[_0x1e2882(0x134)](),_0x222af7=_0x510661['str'](_0x1e2882(0x135))[_0x1e2882(0x134)]();if(!_0x2dc6cb&&!_0x222af7)throw CliErrors[_0x1e2882(0x13a)](_0x1e2882(0x133),_0x1e2882(0x11e)+CLI_BIN_NAME+_0x1e2882(0x142)+CLI_BIN_NAME+_0x1e2882(0x127));if(_0x222af7)assertValidAppcode(_0x222af7);}function resolveKnownApps(){const _0x1b43a0=a228_0xa5f72c,{config:_0x46b49d,layers:_0x131b77}=readRawConfigWithLayers(),_0x34debe=isRecord(_0x46b49d[_0x1b43a0(0x137)])?_0x46b49d['apps']:{},_0x15fba7=isRecord(_0x131b77[_0x1b43a0(0x154)][_0x1b43a0(0x137)])?_0x131b77[_0x1b43a0(0x154)][_0x1b43a0(0x137)]:{};return{..._0x15fba7,..._0x34debe};}async function configureWorkspace(_0x5a40d8,_0x457252){const _0x53cc1c=a228_0xa5f72c,_0xb1f5bf=_0x5a40d8[_0x53cc1c(0x13e)](_0x53cc1c(0x14d))[_0x53cc1c(0x134)](),_0x3d5828=_0x5a40d8[_0x53cc1c(0x13e)](_0x53cc1c(0x135))[_0x53cc1c(0x134)](),_0x3a41cb=_0xb1f5bf||_0x3d5828;if(!_0x3a41cb)throw CliErrors['validation'](_0x53cc1c(0x133),'Use\x20`'+CLI_BIN_NAME+_0x53cc1c(0x142)+CLI_BIN_NAME+_0x53cc1c(0x127));if(_0x3d5828)assertValidAppcode(_0x3d5828);const _0x5aeedd=resolveWriteConfigPath('project'),_0x2ee648=readConfigFile(_0x5aeedd),_0x354d42=resolveKnownApps(),_0x25e1d4=isRecord(_0x2ee648[_0x53cc1c(0x137)])?{..._0x2ee648[_0x53cc1c(0x137)]}:{},_0x5ac173=cloneProfile(_0x25e1d4[_0x3a41cb]),_0x1bea16=sanitizeProfile(_0x354d42[_0x3a41cb]),_0x36233c=_0x3d5828?{}:_0x1bea16,_0x56f2bf=_0x3d5828||_0x36233c[_0x53cc1c(0x135)];if(!_0x56f2bf){const _0x52acde=Object[_0x53cc1c(0x122)](_0x354d42),_0x49c083=_0x52acde[_0x53cc1c(0x149)]===0x0?_0x53cc1c(0x11e)+CLI_BIN_NAME+_0x53cc1c(0x13c)+_0x457252+_0x53cc1c(0x13d)+_0x3a41cb+'\x20--appcode\x20<code>`.':_0x53cc1c(0x153)+_0x52acde[_0x53cc1c(0x148)](',\x20');throw CliErrors[_0x53cc1c(0x13a)](_0x53cc1c(0x143)+_0x3a41cb+_0x53cc1c(0x12e),_0x49c083);}assertValidAppcode(String(_0x56f2bf));const _0x1fe878={..._0x36233c,..._0x5ac173,'appcode':String(_0x56f2bf),...collectWorkspaceProfileOverrides(_0x5a40d8)};return _0x25e1d4[_0x3a41cb]=_0x1fe878,_0x2ee648[_0x53cc1c(0x137)]=_0x25e1d4,normalizeStoredDefaultApp(_0x2ee648,_0x3a41cb),delete _0x2ee648[_0x53cc1c(0x135)],delete _0x2ee648[_0x53cc1c(0x14d)],_0x1fe878['env']&&(_0x2ee648[_0x53cc1c(0x124)]=_0x1fe878[_0x53cc1c(0x124)]),writeConfigFile(_0x5aeedd,_0x2ee648),{'ok':!![],'message':_0x53cc1c(0x14a)+(_0x457252===_0x53cc1c(0x12b)?'initialized':_0x53cc1c(0x125))+':\x20'+_0x3a41cb+_0x53cc1c(0x145)+_0x1fe878['appcode']+_0x53cc1c(0x152)+_0x5aeedd+'.\x20Credentials:\x20not\x20written.','data':{'operation':'workspace.'+_0x457252,'configPath':_0x5aeedd,'app':_0x3a41cb,'appcode':_0x1fe878[_0x53cc1c(0x135)],'env':_0x1fe878[_0x53cc1c(0x124)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a228_0xa5f72c(0x121),'command':a228_0xa5f72c(0x12b),'description':a228_0xa5f72c(0x12c),'risk':a228_0xa5f72c(0x155),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x540a07=>configureWorkspace(_0x540a07,a228_0xa5f72c(0x12b))},workspaceUseDefinition={'service':a228_0xa5f72c(0x121),'command':a228_0xa5f72c(0x12d),'description':a228_0xa5f72c(0x11f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4d83a3=>configureWorkspace(_0x4d83a3,a228_0xa5f72c(0x12d))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];function a228_0x15e8(_0x200293,_0x5f1b40){_0x200293=_0x200293-0x11d;const _0x17160e=a228_0x1716();let _0x15e8a6=_0x17160e[_0x200293];return _0x15e8a6;}export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a216_0x51d80b=a216_0x5e65;(function(_0x2ed620,_0x308468){const _0x53db67=a216_0x5e65,_0x39cad4=_0x2ed620();while(!![]){try{const _0x42c570=-parseInt(_0x53db67(0xc3))/0x1+parseInt(_0x53db67(0xc6))/0x2+-parseInt(_0x53db67(0xcc))/0x3*(parseInt(_0x53db67(0xcf))/0x4)+-parseInt(_0x53db67(0xca))/0x5+parseInt(_0x53db67(0xcb))/0x6+-parseInt(_0x53db67(0xc5))/0x7*(-parseInt(_0x53db67(0xd0))/0x8)+parseInt(_0x53db67(0xc8))/0x9*(parseInt(_0x53db67(0xcd))/0xa);if(_0x42c570===_0x308468)break;else _0x39cad4['push'](_0x39cad4['shift']());}catch(_0x2c8aa5){_0x39cad4['push'](_0x39cad4['shift']());}}}(a216_0x2267,0x8dea9));function a216_0x2267(){const _0x32646e=['write','173092EbTIhw','40ZlPBNs','570396iMbRGE','name','788158lkyTHA','1359904ZGmcsV','workspace\x20remove','197199tCEAII','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','4778270nKzskZ','2642532UhHUlG','42JdJnLB','470WJKyEi'];a216_0x2267=function(){return _0x32646e;};return a216_0x2267();}function a216_0x5e65(_0x1a4589,_0x3c6beb){_0x1a4589=_0x1a4589-0xc3;const _0x22679b=a216_0x2267();let _0x5e657f=_0x22679b[_0x1a4589];return _0x5e657f;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':a216_0x51d80b(0xc9),'risk':a216_0x51d80b(0xce),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a216_0x51d80b(0xc4),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x31091a=>validateAppName(_0x31091a,'workspace\x20remove'),'execute':_0x5ae980=>runAppRemove(_0x5ae980,a216_0x51d80b(0xc7))};
1
+ function a229_0x7fb5(){const _0x50d9fa=['26FzSLhS','workspace','3TzrzEr','174lTYszH','write','4532JtsgeF','867580OlWpTg','1934568DuajLD','remove','1598608PYSHFT','workspace\x20remove','3826450NLqNpy','281988OBuYME','App\x20profile\x20name\x20to\x20remove','27770rCUnbW','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','name'];a229_0x7fb5=function(){return _0x50d9fa;};return a229_0x7fb5();}const a229_0x1de710=a229_0x5582;function a229_0x5582(_0xb32c60,_0x2a60f6){_0xb32c60=_0xb32c60-0x161;const _0x7fb52=a229_0x7fb5();let _0x5582b2=_0x7fb52[_0xb32c60];return _0x5582b2;}(function(_0x4f1714,_0x47e31b){const _0x25859f=a229_0x5582,_0xdf295c=_0x4f1714();while(!![]){try{const _0x3a43b2=-parseInt(_0x25859f(0x16a))/0x1*(-parseInt(_0x25859f(0x165))/0x2)+parseInt(_0x25859f(0x167))/0x3*(parseInt(_0x25859f(0x171))/0x4)+-parseInt(_0x25859f(0x162))/0x5*(-parseInt(_0x25859f(0x168))/0x6)+-parseInt(_0x25859f(0x16b))/0x7+-parseInt(_0x25859f(0x16e))/0x8+-parseInt(_0x25859f(0x16c))/0x9+parseInt(_0x25859f(0x170))/0xa;if(_0x3a43b2===_0x47e31b)break;else _0xdf295c['push'](_0xdf295c['shift']());}catch(_0x25d68e){_0xdf295c['push'](_0xdf295c['shift']());}}}(a229_0x7fb5,0x20d06));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a229_0x1de710(0x166),'command':a229_0x1de710(0x16d),'description':a229_0x1de710(0x163),'risk':a229_0x1de710(0x169),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a229_0x1de710(0x164),'description':a229_0x1de710(0x161),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x32be46=>validateAppName(_0x32be46,'workspace\x20remove'),'execute':_0x13e875=>runAppRemove(_0x13e875,a229_0x1de710(0x16f))};
@@ -1,12 +1,9 @@
1
- import { ENTERPRISE_ROUTING_CDN_FIELDS, ENTERPRISE_ROUTING_DOMAIN_FIELDS, ENTERPRISE_ROUTING_CONSUMERS } from "../generated/routing-contract.js";
1
+ import { ENTERPRISE_ROUTING_CDN_FIELDS, ENTERPRISE_ROUTING_DOMAIN_FIELDS } from "../generated/routing-contract.js";
2
2
  export declare const DOMAIN_CONFIG_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbDomain", "appDomain", "localDomain", "certificateDomain"];
3
3
  export type DomainConfigField = (typeof DOMAIN_CONFIG_FIELDS)[number];
4
4
  export type DomainConfig = Partial<Record<DomainConfigField, string>>;
5
5
  export type EnterpriseRoutingDomainField = (typeof ENTERPRISE_ROUTING_DOMAIN_FIELDS)[number];
6
- export type EnterpriseRoutingConsumer = (typeof ENTERPRISE_ROUTING_CONSUMERS)[number];
7
- export type EnterpriseRoutingDomainOverrides = Partial<Record<"default" | EnterpriseRoutingConsumer, string>>;
8
- export type EnterpriseRoutingDomainValue = string | EnterpriseRoutingDomainOverrides;
9
- export type EnterpriseRoutingDomains = Record<EnterpriseRoutingDomainField, EnterpriseRoutingDomainValue | undefined>;
6
+ export type EnterpriseRoutingDomains = Record<EnterpriseRoutingDomainField, string | undefined>;
10
7
  export type EnterpriseRoutingCdnField = (typeof ENTERPRISE_ROUTING_CDN_FIELDS)[number];
11
8
  export type EnterpriseRoutingCdn = Record<EnterpriseRoutingCdnField, string>;
12
9
  export type DomainConfigInput = {
@@ -21,7 +18,7 @@ export type DomainConfigInput = {
21
18
  /** Old domain keys accepted only while reading existing configuration. */
22
19
  export declare const LEGACY_DOMAIN_CONFIG_FIELDS: readonly ["agentDomain", "platformDomain", "skillHubDomain"];
23
20
  export declare function normalizeDomainOrigin(field: DomainConfigField | EnterpriseRoutingDomainField, input: unknown): string;
24
- export declare function normalizeRoutingDomainValue(field: EnterpriseRoutingDomainField, input: unknown): EnterpriseRoutingDomainValue;
21
+ export declare function normalizeRoutingDomainValue(field: EnterpriseRoutingDomainField, input: unknown): string;
25
22
  export declare function normalizeCdnBaseUrl(field: EnterpriseRoutingCdnField, input: unknown): string;
26
23
  /**
27
24
  * Parse the optional enterprise routing value stored in CLI configuration.
@@ -32,7 +29,6 @@ export declare function resolveEnterpriseRoutingConfig(input: unknown): DomainCo
32
29
  export declare function resolveEnterpriseRoutingManifest(input: unknown): Extract<DomainConfigInput, {
33
30
  mode: "enterprise-v1";
34
31
  }> | undefined;
35
- export declare function resolveRoutingDomainValue(field: EnterpriseRoutingDomainField, value: EnterpriseRoutingDomainValue, consumer: EnterpriseRoutingConsumer): string;
36
32
  export declare function readDomainConfigInput(filePath: string): DomainConfigInput;
37
33
  export declare function readDomainConfig(filePath: string): DomainConfig;
38
34
  export declare function resolveDomainConfigInput(ctx: {
@@ -1 +1 @@
1
- const a217_0x1a17b2=a217_0x5513;(function(_0x4a4c9b,_0x33e751){const _0x1995ed=a217_0x5513,_0x360a4c=_0x4a4c9b();while(!![]){try{const _0x2fdfdd=-parseInt(_0x1995ed(0x1bf))/0x1+-parseInt(_0x1995ed(0x1be))/0x2+parseInt(_0x1995ed(0x1d9))/0x3+-parseInt(_0x1995ed(0x1d3))/0x4+parseInt(_0x1995ed(0x1c9))/0x5*(-parseInt(_0x1995ed(0x1d7))/0x6)+parseInt(_0x1995ed(0x1cd))/0x7*(-parseInt(_0x1995ed(0x1f4))/0x8)+parseInt(_0x1995ed(0x1fb))/0x9*(parseInt(_0x1995ed(0x1bb))/0xa);if(_0x2fdfdd===_0x33e751)break;else _0x360a4c['push'](_0x360a4c['shift']());}catch(_0x540884){_0x360a4c['push'](_0x360a4c['shift']());}}}(a217_0x2d2f,0xe35a0));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS,ENTERPRISE_ROUTING_CONSUMERS,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a217_0x1a17b2(0x1ba),'apiDomain','runtimeDomain',a217_0x1a17b2(0x1fc),a217_0x1a17b2(0x1b6),a217_0x1a17b2(0x1cc),a217_0x1a17b2(0x1b5),a217_0x1a17b2(0x1c5)];const DOMAIN_FLAGS={'userDomain':a217_0x1a17b2(0x1b2),'apiDomain':a217_0x1a17b2(0x1e6),'runtimeDomain':a217_0x1a17b2(0x1de),'skillDomain':a217_0x1a17b2(0x1ae),'kbDomain':'kb-domain','appDomain':a217_0x1a17b2(0x1ad),'localDomain':'local-domain','certificateDomain':a217_0x1a17b2(0x1da)};function a217_0x5513(_0x9594c7,_0x20a6ea){_0x9594c7=_0x9594c7-0x1ad;const _0x2d2f07=a217_0x2d2f();let _0x551354=_0x2d2f07[_0x9594c7];return _0x551354;}export const LEGACY_DOMAIN_CONFIG_FIELDS=[a217_0x1a17b2(0x1e1),a217_0x1a17b2(0x1f6),a217_0x1a17b2(0x1b0)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a217_0x1a17b2(0x1ba),'apiDomain':a217_0x1a17b2(0x200),'runtimeDomain':a217_0x1a17b2(0x1f5),'skillDomain':a217_0x1a17b2(0x1fc),'kbDomain':a217_0x1a17b2(0x1b6),'appDomain':a217_0x1a17b2(0x1cc),'localDomain':a217_0x1a17b2(0x1b5),'certificateDomain':a217_0x1a17b2(0x1c5)},ROUTING_CONSUMER=a217_0x1a17b2(0x1ca);export function normalizeDomainOrigin(_0x2c7ae8,_0x222d45){const _0x4289b5=a217_0x1a17b2;if(typeof _0x222d45!==_0x4289b5(0x1fe)||!_0x222d45[_0x4289b5(0x1b1)]())throw CliErrors[_0x4289b5(0x1e5)](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1ff));let _0x1e0260;try{_0x1e0260=new URL(_0x222d45['trim']());}catch{throw CliErrors[_0x4289b5(0x1e5)](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1db)+_0x222d45+_0x4289b5(0x1e3));}if(_0x1e0260[_0x4289b5(0x1e0)]!==_0x4289b5(0x1f9)||_0x1e0260[_0x4289b5(0x1e9)]||_0x1e0260['password']||_0x1e0260[_0x4289b5(0x1c4)]!=='/'&&_0x1e0260[_0x4289b5(0x1c4)]!==''||_0x1e0260[_0x4289b5(0x1b3)]||_0x1e0260[_0x4289b5(0x1c8)])throw CliErrors['validation'](_0x4289b5(0x1d8)+_0x2c7ae8+_0x4289b5(0x1d2),_0x4289b5(0x1d4));return _0x1e0260[_0x4289b5(0x1f0)];}export function normalizeRoutingDomainValue(_0x18c457,_0x17592b){const _0x3be6bb=a217_0x1a17b2;if(typeof _0x17592b===_0x3be6bb(0x1fe))return normalizeDomainOrigin(_0x18c457,_0x17592b);if(!_0x17592b||typeof _0x17592b!==_0x3be6bb(0x1c3)||Array['isArray'](_0x17592b))throw CliErrors[_0x3be6bb(0x1e5)](_0x3be6bb(0x1d8)+_0x18c457+_0x3be6bb(0x1f7));const _0x36fb75=_0x17592b,_0xaee8e3=Object['keys'](_0x36fb75),_0x1917ab=[_0x3be6bb(0x1cf),...ENTERPRISE_ROUTING_CONSUMERS],_0x4acd83=_0xaee8e3['filter'](_0x2ea4bb=>!_0x1917ab[_0x3be6bb(0x1ed)](_0x2ea4bb));if(_0x4acd83['length']>0x0)throw CliErrors[_0x3be6bb(0x1e5)]('Unsupported\x20'+_0x18c457+_0x3be6bb(0x1cb)+_0x4acd83['join'](',\x20'),_0x3be6bb(0x1dc)+_0x1917ab['join'](',\x20'));if(_0xaee8e3['length']===0x0)throw CliErrors[_0x3be6bb(0x1e5)](_0x3be6bb(0x1d8)+_0x18c457+_0x3be6bb(0x1eb));const _0x529b44={};for(const _0x3cfa33 of _0xaee8e3){const _0x49f64b=_0x3cfa33;_0x529b44[_0x49f64b]=normalizeDomainOrigin(_0x18c457,_0x36fb75[_0x3cfa33]);}return _0x529b44;}export function normalizeCdnBaseUrl(_0x25249a,_0x44788d){const _0x698760=a217_0x1a17b2;if(typeof _0x44788d!==_0x698760(0x1fe)||!_0x44788d[_0x698760(0x1b1)]())throw CliErrors['validation']('Invalid\x20cdn.'+_0x25249a+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x3d9f79=_0x44788d['trim']()[_0x698760(0x1bc)](/\/$/,'');let _0x5b96e4;try{_0x5b96e4=new URL(_0x3d9f79);}catch{throw CliErrors[_0x698760(0x1e5)](_0x698760(0x202)+_0x25249a+_0x698760(0x1db)+_0x44788d+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5b96e4['protocol']!==_0x698760(0x1f9)||_0x5b96e4[_0x698760(0x1e9)]||_0x5b96e4[_0x698760(0x1af)]||_0x5b96e4[_0x698760(0x1b3)]||_0x5b96e4[_0x698760(0x1c8)]||_0x5b96e4['href'][_0x698760(0x1bc)](/\/$/,'')!==_0x3d9f79||_0x25249a==='lovrabet'&&_0x5b96e4[_0x698760(0x1f0)]!==_0x3d9f79)throw CliErrors['validation'](_0x698760(0x202)+_0x25249a+_0x698760(0x1e2)+(_0x25249a===_0x698760(0x1ef)?_0x698760(0x1f0):_0x698760(0x1f2))+_0x698760(0x1e4));return _0x3d9f79;}export function resolveEnterpriseRoutingConfig(_0x35eb4b){return resolveEnterpriseRoutingManifest(_0x35eb4b)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x3e0f3f){const _0x33c77c=a217_0x1a17b2;if(_0x3e0f3f===undefined)return undefined;if(!_0x3e0f3f||typeof _0x3e0f3f!=='object'||Array['isArray'](_0x3e0f3f))throw CliErrors[_0x33c77c(0x1e5)](_0x33c77c(0x1b9));return parseEnterpriseRoutingManifest(_0x3e0f3f);}export function resolveRoutingDomainValue(_0x16b793,_0x28bcca,_0x4fd0fa){const _0x18db5a=a217_0x1a17b2;if(typeof _0x28bcca===_0x18db5a(0x1fe))return _0x28bcca;const _0x2661be=_0x28bcca[_0x4fd0fa]??_0x28bcca['default'];if(!_0x2661be)throw CliErrors[_0x18db5a(0x1e5)](_0x18db5a(0x201)+_0x16b793+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+_0x4fd0fa+_0x18db5a(0x1b4));return _0x2661be;}function a217_0x2d2f(){const _0x563b82=['apiDomain','Enterprise\x20','Invalid\x20cdn.','app-domain','skill-domain','password','skillHubDomain','trim','user-domain','search','\x20and\x20has\x20no\x20default.','localDomain','kbDomain','domains','enterprise-v1','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','userDomain','65590wagjEa','replace','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','1638036lIJbsa','1372765SYeOsC','Unsupported\x20domain\x20config\x20field(s):\x20','legacy','cdn','object','pathname','certificateDomain','\x22\x20and\x20kind\x20\x22','isArray','hash','370uaEzjV','rabetbase-cli','\x20consumer(s):\x20','appDomain','100772ohaoDl','join','default','kind','Unsupported\x20enterprise\x20routing\x20field(s):\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','338196ZKjhkb','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','keys','56412QVJjSE','Invalid\x20','2186109UUADLU','certificate-domain',':\x20\x22','Allowed\x20consumers:\x20','str','runtime-domain','filter','protocol','agentDomain',':\x20expected\x20an\x20HTTPS\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','validation','api-domain','length','domain-config','username','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22',':\x20consumer\x20Domain\x20object\x20cannot\x20be\x20empty.','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','includes','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','lovrabet','origin','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','base\x20URL','Unsupported\x20enterprise\x20Domain\x20field(s):\x20','944ATGJak','runtimeDomain','platformDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','utf8','https:','Allowed\x20fields:\x20','6687LWPJUL','skillDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','string',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.'];a217_0x2d2f=function(){return _0x563b82;};return a217_0x2d2f();}export function readDomainConfigInput(_0x4a4021){const _0x25a008=a217_0x1a17b2,_0x1bdb18=isAbsolute(_0x4a4021)?_0x4a4021:resolve(process['cwd'](),_0x4a4021);if(!existsSync(_0x1bdb18))throw CliErrors['validation']('Domain\x20config\x20file\x20not\x20found:\x20'+_0x1bdb18);let _0x2f490b;try{_0x2f490b=JSON['parse'](readFileSync(_0x1bdb18,_0x25a008(0x1f8)));}catch{throw CliErrors[_0x25a008(0x1e5)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x1bdb18);}if(!_0x2f490b||typeof _0x2f490b!==_0x25a008(0x1c3)||Array['isArray'](_0x2f490b))throw CliErrors[_0x25a008(0x1e5)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x37ddfa=_0x2f490b;if(_0x25a008(0x1e0)in _0x37ddfa)return parseEnterpriseRoutingManifest(_0x37ddfa);const _0x29952d=Object['keys'](_0x37ddfa)[_0x25a008(0x1df)](_0x1a431f=>!DOMAIN_CONFIG_FIELDS[_0x25a008(0x1ed)](_0x1a431f));if(_0x29952d[_0x25a008(0x1e7)]>0x0)throw CliErrors[_0x25a008(0x1e5)](_0x25a008(0x1c0)+_0x29952d['join'](',\x20'),_0x25a008(0x1fa)+DOMAIN_CONFIG_FIELDS[_0x25a008(0x1ce)](',\x20'));const _0x428eb8={};for(const _0x315e49 of DOMAIN_CONFIG_FIELDS){_0x37ddfa[_0x315e49]!==undefined&&(_0x428eb8[_0x315e49]=normalizeDomainOrigin(_0x315e49,_0x37ddfa[_0x315e49]));}if(Object['keys'](_0x428eb8)[_0x25a008(0x1e7)]===0x0)throw CliErrors['validation'](_0x25a008(0x1bd));return{'mode':_0x25a008(0x1c1),'domains':_0x428eb8};}export function readDomainConfig(_0x27a855){return readDomainConfigInput(_0x27a855)['domains'];}export function resolveDomainConfigInput(_0x1d0034){const _0x442237=a217_0x1a17b2,_0x14d5bd=(_0x1d0034[_0x442237(0x1dd)](_0x442237(0x1e8))||'')[_0x442237(0x1b1)](),_0x513239=_0x14d5bd?readDomainConfigInput(_0x14d5bd):{'mode':_0x442237(0x1c1),'domains':{}},_0x3ec4d8=DOMAIN_CONFIG_FIELDS[_0x442237(0x1df)](_0xeb6cfb=>Boolean((_0x1d0034[_0x442237(0x1dd)](DOMAIN_FLAGS[_0xeb6cfb])||'')[_0x442237(0x1b1)]()));if(_0x513239['mode']===_0x442237(0x1b8)&&_0x3ec4d8[_0x442237(0x1e7)]>0x0)throw CliErrors[_0x442237(0x1e5)](_0x442237(0x1d5),_0x442237(0x1ee));for(const _0x148655 of DOMAIN_CONFIG_FIELDS){const _0x2ff73d=(_0x1d0034['str'](DOMAIN_FLAGS[_0x148655])||'')['trim']();if(_0x2ff73d)_0x513239[_0x442237(0x1b7)][_0x148655]=normalizeDomainOrigin(_0x148655,_0x2ff73d);}return _0x513239;}export function resolveDomainFlags(_0xac7357){const _0x39d324=a217_0x1a17b2;return resolveDomainConfigInput(_0xac7357)[_0x39d324(0x1b7)];}export function parseEnterpriseRoutingManifest(_0x1c78b8){const _0x2158b0=a217_0x1a17b2,_0x30f198=Object[_0x2158b0(0x1d6)](_0x1c78b8)[_0x2158b0(0x1df)](_0x11e397=>!ENTERPRISE_ROUTING_TOP_LEVEL_FIELDS['includes'](_0x11e397));if(_0x30f198[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1d1)+_0x30f198[_0x2158b0(0x1ce)](',\x20'));if(_0x1c78b8[_0x2158b0(0x1e0)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x1c78b8[_0x2158b0(0x1d0)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1ea)+ENTERPRISE_ROUTING_PROTOCOL+_0x2158b0(0x1c6)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x1c78b8[_0x2158b0(0x1b7)]||typeof _0x1c78b8[_0x2158b0(0x1b7)]!==_0x2158b0(0x1c3)||Array[_0x2158b0(0x1c7)](_0x1c78b8['domains']))throw CliErrors[_0x2158b0(0x1e5)]('Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.');if(!_0x1c78b8[_0x2158b0(0x1c2)]||typeof _0x1c78b8[_0x2158b0(0x1c2)]!=='object'||Array[_0x2158b0(0x1c7)](_0x1c78b8[_0x2158b0(0x1c2)]))throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1fd));const _0x3ed0f9=_0x1c78b8['domains'],_0x406fad=Object['keys'](_0x3ed0f9)[_0x2158b0(0x1df)](_0x309191=>!ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1ed)](_0x309191));if(_0x406fad[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1f3)+_0x406fad[_0x2158b0(0x1ce)](',\x20'),_0x2158b0(0x1fa)+ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1ce)](',\x20'));const _0x373c35=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x2158b0(0x1df)](_0x44c664=>_0x3ed0f9[_0x44c664]===undefined);if(_0x373c35[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x373c35['join'](',\x20'));if(_0x3ed0f9['localDomain']===undefined!==(_0x3ed0f9[_0x2158b0(0x1c5)]===undefined))throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1ec));const _0x188b30=_0x1c78b8[_0x2158b0(0x1c2)],_0x10fc81=Object[_0x2158b0(0x1d6)](_0x188b30)[_0x2158b0(0x1df)](_0x5a2b2b=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1ed)](_0x5a2b2b));if(_0x10fc81[_0x2158b0(0x1e7)]>0x0)throw CliErrors['validation']('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x10fc81[_0x2158b0(0x1ce)](',\x20'),_0x2158b0(0x1fa)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1ce)](',\x20'));const _0x5c6000=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x2158b0(0x1df)](_0x1e6969=>_0x188b30[_0x1e6969]===undefined);if(_0x5c6000[_0x2158b0(0x1e7)]>0x0)throw CliErrors[_0x2158b0(0x1e5)](_0x2158b0(0x1f1)+_0x5c6000[_0x2158b0(0x1ce)](',\x20'));const _0x1283aa={};for(const _0x183e2b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x1283aa[_0x183e2b]=normalizeCdnBaseUrl(_0x183e2b,_0x188b30[_0x183e2b]);}const _0x2ed3b6={},_0x4d45fa={};for(const _0x46053c of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x73982e=_0x3ed0f9[_0x46053c];if(_0x73982e===undefined)continue;const _0x4d5539=normalizeRoutingDomainValue(_0x46053c,_0x73982e);_0x2ed3b6[_0x46053c]=_0x4d5539;const _0x3a5d05=ENTERPRISE_TO_LOCAL_FIELD[_0x46053c];_0x3a5d05&&(_0x4d45fa[_0x3a5d05]=resolveRoutingDomainValue(_0x46053c,_0x4d5539,ROUTING_CONSUMER));}return{'mode':_0x2158b0(0x1b8),'domains':_0x4d45fa,'manifestDomains':_0x2ed3b6,'cdn':_0x1283aa};}
1
+ const a230_0x23b41d=a230_0x2a3a;(function(_0xefaa6d,_0x5e21c6){const _0x2e4ebe=a230_0x2a3a,_0x234687=_0xefaa6d();while(!![]){try{const _0x2c6d9e=parseInt(_0x2e4ebe(0x141))/0x1*(parseInt(_0x2e4ebe(0x185))/0x2)+parseInt(_0x2e4ebe(0x17c))/0x3*(parseInt(_0x2e4ebe(0x152))/0x4)+-parseInt(_0x2e4ebe(0x175))/0x5+parseInt(_0x2e4ebe(0x13d))/0x6+parseInt(_0x2e4ebe(0x142))/0x7*(parseInt(_0x2e4ebe(0x148))/0x8)+parseInt(_0x2e4ebe(0x164))/0x9*(-parseInt(_0x2e4ebe(0x13b))/0xa)+parseInt(_0x2e4ebe(0x13e))/0xb*(parseInt(_0x2e4ebe(0x137))/0xc);if(_0x2c6d9e===_0x5e21c6)break;else _0x234687['push'](_0x234687['shift']());}catch(_0x7358a0){_0x234687['push'](_0x234687['shift']());}}}(a230_0x3966,0x2f24a));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';import{ENTERPRISE_ROUTING_CDN_FIELDS,ENTERPRISE_ROUTING_DOMAIN_FIELDS,ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL,REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS,REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS}from'../generated/routing-contract.js';export const DOMAIN_CONFIG_FIELDS=[a230_0x23b41d(0x15a),a230_0x23b41d(0x160),a230_0x23b41d(0x154),'skillDomain',a230_0x23b41d(0x17d),a230_0x23b41d(0x15c),'localDomain',a230_0x23b41d(0x136)];const DOMAIN_FLAGS={'userDomain':a230_0x23b41d(0x162),'apiDomain':a230_0x23b41d(0x144),'runtimeDomain':a230_0x23b41d(0x15e),'skillDomain':a230_0x23b41d(0x157),'kbDomain':a230_0x23b41d(0x138),'appDomain':a230_0x23b41d(0x187),'localDomain':a230_0x23b41d(0x14f),'certificateDomain':a230_0x23b41d(0x13c)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a230_0x23b41d(0x183),a230_0x23b41d(0x147),a230_0x23b41d(0x16a)];function a230_0x3966(){const _0x593703=['kbDomain','localDomain','join','validation','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','object','agentDomain','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','2oXtvUv','skillDomain','app-domain','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','trim','string','Domain\x20config\x20file\x20not\x20found:\x20','enterprise-v1','domain-config','\x20without\x20credentials,\x20query,\x20or\x20fragment.','certificateDomain','12gaVGWP','kb-domain','Invalid\x20cdn.','keys','2327530TnFIdM','certificate-domain','66648Ysoper','5620109hoCTZp','cdn','str','85061ZSIUJu','14gmmIRF','isArray','api-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','kind','platformDomain','157088xyQIwu','search','default','filter',':\x20\x22','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','password','local-domain','utf8','mode','4528SagHTZ','Unsupported\x20domain\x20config\x20field(s):\x20','runtimeDomain',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','username','skill-domain',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','origin','userDomain','Invalid\x20domain\x20config\x20JSON:\x20','appDomain','hash','runtime-domain','https:','apiDomain','Enterprise\x20','user-domain','lovrabet','9lXrsRm','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','length','replace','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','skillHubDomain','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','domains','Invalid\x20','legacy','href','cwd','protocol','base\x20URL','pathname','1719485UgXcMf',':\x20expected\x20an\x20HTTPS\x20','Allowed\x20fields:\x20','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','includes','\x22\x20and\x20kind\x20\x22','327qyUrEE'];a230_0x3966=function(){return _0x593703;};return a230_0x3966();}function a230_0x2a3a(_0x30b01d,_0x3efd6e){_0x30b01d=_0x30b01d-0x133;const _0x3966e6=a230_0x3966();let _0x2a3a22=_0x3966e6[_0x30b01d];return _0x2a3a22;}const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a230_0x23b41d(0x15a),'apiDomain':'apiDomain','runtimeDomain':a230_0x23b41d(0x154),'skillDomain':a230_0x23b41d(0x186),'kbDomain':a230_0x23b41d(0x17d),'appDomain':a230_0x23b41d(0x15c),'localDomain':a230_0x23b41d(0x17e),'certificateDomain':a230_0x23b41d(0x136)},ROUTING_CONSUMER='rabetbase-cli';export function normalizeDomainOrigin(_0x472502,_0x532670){const _0x577969=a230_0x23b41d;if(typeof _0x532670!=='string'||!_0x532670[_0x577969(0x189)]())throw CliErrors['validation'](_0x577969(0x16e)+_0x472502+_0x577969(0x158));let _0x273cb0;try{_0x273cb0=new URL(_0x532670[_0x577969(0x189)]());}catch{throw CliErrors[_0x577969(0x180)](_0x577969(0x16e)+_0x472502+_0x577969(0x14c)+_0x532670+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x273cb0[_0x577969(0x172)]!==_0x577969(0x15f)||_0x273cb0[_0x577969(0x156)]||_0x273cb0[_0x577969(0x14e)]||_0x273cb0[_0x577969(0x174)]!=='/'&&_0x273cb0[_0x577969(0x174)]!==''||_0x273cb0[_0x577969(0x149)]||_0x273cb0[_0x577969(0x15d)])throw CliErrors[_0x577969(0x180)](_0x577969(0x16e)+_0x472502+_0x577969(0x155),_0x577969(0x178));return _0x273cb0[_0x577969(0x159)];}export function normalizeRoutingDomainValue(_0x3be143,_0x4fb57f){const _0x59f696=a230_0x23b41d;if(typeof _0x4fb57f==='string')return normalizeDomainOrigin(_0x3be143,_0x4fb57f);if(!_0x4fb57f||typeof _0x4fb57f!==_0x59f696(0x182)||Array[_0x59f696(0x143)](_0x4fb57f))throw CliErrors[_0x59f696(0x180)](_0x59f696(0x16e)+_0x3be143+_0x59f696(0x179));const _0x8b9945=_0x4fb57f,_0x56bca4=_0x8b9945[ROUTING_CONSUMER]??_0x8b9945[_0x59f696(0x14a)];if(_0x56bca4===undefined)throw CliErrors['validation'](_0x59f696(0x161)+_0x3be143+_0x59f696(0x169)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x3be143,_0x56bca4);}export function normalizeCdnBaseUrl(_0x11d5d2,_0x10359c){const _0x10423d=a230_0x23b41d;if(typeof _0x10359c!==_0x10423d(0x18a)||!_0x10359c[_0x10423d(0x189)]())throw CliErrors[_0x10423d(0x180)](_0x10423d(0x139)+_0x11d5d2+_0x10423d(0x145));const _0x281169=_0x10359c[_0x10423d(0x189)]()[_0x10423d(0x167)](/\/$/,'');let _0x4abcb4;try{_0x4abcb4=new URL(_0x281169);}catch{throw CliErrors[_0x10423d(0x180)](_0x10423d(0x139)+_0x11d5d2+_0x10423d(0x14c)+_0x10359c+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x4abcb4[_0x10423d(0x172)]!==_0x10423d(0x15f)||_0x4abcb4['username']||_0x4abcb4[_0x10423d(0x14e)]||_0x4abcb4[_0x10423d(0x149)]||_0x4abcb4['hash']||_0x4abcb4[_0x10423d(0x170)]['replace'](/\/$/,'')!==_0x281169||_0x11d5d2==='lovrabet'&&_0x4abcb4['origin']!==_0x281169)throw CliErrors['validation'](_0x10423d(0x139)+_0x11d5d2+_0x10423d(0x176)+(_0x11d5d2===_0x10423d(0x163)?_0x10423d(0x159):_0x10423d(0x173))+_0x10423d(0x135));return _0x281169;}export function resolveEnterpriseRoutingConfig(_0x15c4bf){const _0x41e498=a230_0x23b41d;return resolveEnterpriseRoutingManifest(_0x15c4bf)?.[_0x41e498(0x16d)];}export function resolveEnterpriseRoutingManifest(_0x187b74){const _0xb384ed=a230_0x23b41d;if(_0x187b74===undefined)return undefined;if(!_0x187b74||typeof _0x187b74!==_0xb384ed(0x182)||Array[_0xb384ed(0x143)](_0x187b74))throw CliErrors[_0xb384ed(0x180)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x187b74);}export function readDomainConfigInput(_0x4edaec){const _0x2e81ed=a230_0x23b41d,_0x27d228=isAbsolute(_0x4edaec)?_0x4edaec:resolve(process[_0x2e81ed(0x171)](),_0x4edaec);if(!existsSync(_0x27d228))throw CliErrors[_0x2e81ed(0x180)](_0x2e81ed(0x18b)+_0x27d228);let _0x3ff8ea;try{_0x3ff8ea=JSON['parse'](readFileSync(_0x27d228,_0x2e81ed(0x150)));}catch{throw CliErrors[_0x2e81ed(0x180)](_0x2e81ed(0x15b)+_0x27d228);}if(!_0x3ff8ea||typeof _0x3ff8ea!=='object'||Array[_0x2e81ed(0x143)](_0x3ff8ea))throw CliErrors[_0x2e81ed(0x180)](_0x2e81ed(0x165));const _0x3fc8af=_0x3ff8ea;if(_0x2e81ed(0x172)in _0x3fc8af)return parseEnterpriseRoutingManifest(_0x3fc8af);const _0x19c649=Object[_0x2e81ed(0x13a)](_0x3fc8af)[_0x2e81ed(0x14b)](_0x387fec=>!DOMAIN_CONFIG_FIELDS[_0x2e81ed(0x17a)](_0x387fec));if(_0x19c649['length']>0x0)throw CliErrors[_0x2e81ed(0x180)](_0x2e81ed(0x153)+_0x19c649[_0x2e81ed(0x17f)](',\x20'),'Allowed\x20fields:\x20'+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x5eb843={};for(const _0xfa5e5b of DOMAIN_CONFIG_FIELDS){_0x3fc8af[_0xfa5e5b]!==undefined&&(_0x5eb843[_0xfa5e5b]=normalizeDomainOrigin(_0xfa5e5b,_0x3fc8af[_0xfa5e5b]));}if(Object[_0x2e81ed(0x13a)](_0x5eb843)['length']===0x0)throw CliErrors[_0x2e81ed(0x180)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x5eb843};}export function readDomainConfig(_0xf0954d){const _0x2749f0=a230_0x23b41d;return readDomainConfigInput(_0xf0954d)[_0x2749f0(0x16d)];}export function resolveDomainConfigInput(_0x36a413){const _0xe7484a=a230_0x23b41d,_0x5da317=(_0x36a413[_0xe7484a(0x140)](_0xe7484a(0x134))||'')['trim'](),_0x49faf1=_0x5da317?readDomainConfigInput(_0x5da317):{'mode':_0xe7484a(0x16f),'domains':{}},_0xca544f=DOMAIN_CONFIG_FIELDS[_0xe7484a(0x14b)](_0x45fb22=>Boolean((_0x36a413['str'](DOMAIN_FLAGS[_0x45fb22])||'')[_0xe7484a(0x189)]()));if(_0x49faf1[_0xe7484a(0x151)]===_0xe7484a(0x133)&&_0xca544f[_0xe7484a(0x166)]>0x0)throw CliErrors[_0xe7484a(0x180)]('Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',_0xe7484a(0x16b));for(const _0xb9c147 of DOMAIN_CONFIG_FIELDS){const _0xf581e3=(_0x36a413['str'](DOMAIN_FLAGS[_0xb9c147])||'')['trim']();if(_0xf581e3)_0x49faf1[_0xe7484a(0x16d)][_0xb9c147]=normalizeDomainOrigin(_0xb9c147,_0xf581e3);}return _0x49faf1;}export function resolveDomainFlags(_0x324cb4){const _0xa4eff4=a230_0x23b41d;return resolveDomainConfigInput(_0x324cb4)[_0xa4eff4(0x16d)];}export function parseEnterpriseRoutingManifest(_0x2fb93b){const _0x5976a0=a230_0x23b41d;if(_0x2fb93b[_0x5976a0(0x172)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x2fb93b[_0x5976a0(0x146)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x5976a0(0x180)](_0x5976a0(0x188)+ENTERPRISE_ROUTING_PROTOCOL+_0x5976a0(0x17b)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x2fb93b[_0x5976a0(0x16d)]||typeof _0x2fb93b[_0x5976a0(0x16d)]!==_0x5976a0(0x182)||Array[_0x5976a0(0x143)](_0x2fb93b[_0x5976a0(0x16d)]))throw CliErrors['validation'](_0x5976a0(0x184));if(!_0x2fb93b[_0x5976a0(0x13f)]||typeof _0x2fb93b[_0x5976a0(0x13f)]!==_0x5976a0(0x182)||Array[_0x5976a0(0x143)](_0x2fb93b[_0x5976a0(0x13f)]))throw CliErrors[_0x5976a0(0x180)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x3e67c5=_0x2fb93b[_0x5976a0(0x16d)],_0x2f0134=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x5976a0(0x14b)](_0x2c469a=>_0x3e67c5[_0x2c469a]===undefined);if(_0x2f0134[_0x5976a0(0x166)]>0x0)throw CliErrors['validation'](_0x5976a0(0x168)+_0x2f0134[_0x5976a0(0x17f)](',\x20'));if(_0x3e67c5[_0x5976a0(0x17e)]===undefined!==(_0x3e67c5['certificateDomain']===undefined))throw CliErrors['validation'](_0x5976a0(0x16c));const _0x272374=_0x2fb93b[_0x5976a0(0x13f)],_0x2cb74b=Object[_0x5976a0(0x13a)](_0x272374)['filter'](_0x42cf5e=>!ENTERPRISE_ROUTING_CDN_FIELDS['includes'](_0x42cf5e));if(_0x2cb74b[_0x5976a0(0x166)]>0x0)throw CliErrors[_0x5976a0(0x180)](_0x5976a0(0x14d)+_0x2cb74b[_0x5976a0(0x17f)](',\x20'),_0x5976a0(0x177)+ENTERPRISE_ROUTING_CDN_FIELDS['join'](',\x20'));const _0x2822fc=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x5976a0(0x14b)](_0x159166=>_0x272374[_0x159166]===undefined);if(_0x2822fc['length']>0x0)throw CliErrors['validation'](_0x5976a0(0x181)+_0x2822fc[_0x5976a0(0x17f)](',\x20'));const _0x505bcc={};for(const _0x35ee0b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x505bcc[_0x35ee0b]=normalizeCdnBaseUrl(_0x35ee0b,_0x272374[_0x35ee0b]);}const _0x879f66={},_0x1e8bea={};for(const _0x2a5e05 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2722e7=_0x3e67c5[_0x2a5e05];if(_0x2722e7===undefined)continue;const _0x6776cf=normalizeRoutingDomainValue(_0x2a5e05,_0x2722e7);_0x879f66[_0x2a5e05]=_0x6776cf;const _0x13b685=ENTERPRISE_TO_LOCAL_FIELD[_0x2a5e05];_0x13b685&&(_0x1e8bea[_0x13b685]=_0x6776cf);}return{'mode':_0x5976a0(0x133),'domains':_0x1e8bea,'manifestDomains':_0x879f66,'cdn':_0x505bcc};}
@@ -1 +1 @@
1
- function a218_0x4920(_0x13843e,_0x52c04d){_0x13843e=_0x13843e-0x84;const _0x580884=a218_0x5808();let _0x492065=_0x580884[_0x13843e];return _0x492065;}const a218_0x582def=a218_0x4920;(function(_0x1a31a0,_0x20d386){const _0xb7a8fe=a218_0x4920,_0x5fddc4=_0x1a31a0();while(!![]){try{const _0x5c53db=parseInt(_0xb7a8fe(0x87))/0x1*(parseInt(_0xb7a8fe(0x94))/0x2)+-parseInt(_0xb7a8fe(0x95))/0x3*(parseInt(_0xb7a8fe(0x97))/0x4)+parseInt(_0xb7a8fe(0x98))/0x5+-parseInt(_0xb7a8fe(0x88))/0x6*(parseInt(_0xb7a8fe(0x8a))/0x7)+-parseInt(_0xb7a8fe(0x90))/0x8*(parseInt(_0xb7a8fe(0x8b))/0x9)+-parseInt(_0xb7a8fe(0x86))/0xa+parseInt(_0xb7a8fe(0x96))/0xb;if(_0x5c53db===_0x20d386)break;else _0x5fddc4['push'](_0x5fddc4['shift']());}catch(_0x116885){_0x5fddc4['push'](_0x5fddc4['shift']());}}}(a218_0x5808,0x80c1a));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';function a218_0x5808(){const _0x1d522c=['Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','1090OTrXcP','111BIgQDT','16150871llSPVC','38524znwMYC','2854165jRdVOA','origin','utf8','stringify','5232250bTVMNk','1785YRKMzT','3468378nXMMnT','.tmp','7UGVAHs','249786ISiAUG','local','rabetbase.domain-routing.json','lovrabet-project-domain-routing/v1','/cert/lovrabet-dev.json','296sducId','official','now'];a218_0x5808=function(){return _0x1d522c;};return a218_0x5808();}import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a218_0x582def(0x8d);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a218_0x582def(0x8e);export function getProjectDomainRoutingManifest(){const _0x518a68=a218_0x582def,_0x27bfd6=getActiveRegion(),_0x515a70=isIndependentDeployment(),_0x28f270=getOfficialRoutingProfile(_0x27bfd6),_0x412a04=getLocalDomain(),_0x5e28f2=getCertificateDomain(),_0x26cc16=getActiveCdn();if(!!_0x412a04!==!!_0x5e28f2)throw new Error(_0x518a68(0x93));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x515a70?'independent':_0x518a68(0x91),'region':_0x515a70?null:_0x27bfd6,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x26cc16,'local':_0x412a04&&_0x5e28f2?{'origin':_0x412a04,'certificateUrl':_0x5e28f2+_0x518a68(0x8f)}:_0x515a70?{'origin':'http://localhost'}:{'origin':_0x28f270[_0x518a68(0x8c)][_0x518a68(0x99)],'certificateUrl':_0x26cc16['lovrabet']+'/cert/lovrabet-dev.json'}};}export function writeProjectDomainRoutingManifest(_0x3a149f){const _0xfff0a0=a218_0x582def,_0x4d5195=getProjectDomainRoutingManifest(),_0x3da1d4=join(_0x3a149f,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x88ce1f=_0x3da1d4+'.'+process['pid']+'.'+Date[_0xfff0a0(0x92)]()+_0xfff0a0(0x89);try{writeFileSync(_0x88ce1f,JSON[_0xfff0a0(0x85)](_0x4d5195,null,0x2)+'\x0a',{'encoding':_0xfff0a0(0x84),'mode':0x1a4}),renameSync(_0x88ce1f,_0x3da1d4);}catch(_0x141264){try{unlinkSync(_0x88ce1f);}catch{}throw _0x141264;}return{'path':_0x3da1d4,'manifest':_0x4d5195};}
1
+ const a231_0x1249ef=a231_0x4a95;(function(_0x4407ff,_0x3e5b8f){const _0x15ebd9=a231_0x4a95,_0x5922cf=_0x4407ff();while(!![]){try{const _0x267e20=parseInt(_0x15ebd9(0x1a1))/0x1+parseInt(_0x15ebd9(0x190))/0x2+parseInt(_0x15ebd9(0x19b))/0x3+parseInt(_0x15ebd9(0x198))/0x4+parseInt(_0x15ebd9(0x195))/0x5*(parseInt(_0x15ebd9(0x199))/0x6)+parseInt(_0x15ebd9(0x1a4))/0x7+-parseInt(_0x15ebd9(0x194))/0x8;if(_0x267e20===_0x3e5b8f)break;else _0x5922cf['push'](_0x5922cf['shift']());}catch(_0x136221){_0x5922cf['push'](_0x5922cf['shift']());}}}(a231_0x45d5,0x6430d));import{renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getAppDomain,getCertificateDomain,getLocalDomain,getRuntimeDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a231_0x1249ef(0x19d);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a231_0x1249ef(0x192);export function getProjectDomainRoutingManifest(){const _0x21b8e4=a231_0x1249ef,_0x51a58c=getActiveRegion(),_0x5b9acd=isIndependentDeployment(),_0x422a41=getOfficialRoutingProfile(_0x51a58c),_0x2ca214=getLocalDomain(),_0x22211e=getCertificateDomain(),_0x1f8ff1=getActiveCdn();if(!!_0x2ca214!==!!_0x22211e)throw new Error(_0x21b8e4(0x196));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x5b9acd?_0x21b8e4(0x19f):_0x21b8e4(0x197),'region':_0x5b9acd?null:_0x51a58c,'domains':{'user':getUserDomain(),'app':getAppDomain(),'runtime':getRuntimeDomain()},'cdn':_0x1f8ff1,'local':_0x2ca214&&_0x22211e?{'origin':_0x2ca214,'certificateUrl':_0x22211e+_0x21b8e4(0x193)}:_0x5b9acd?{'origin':_0x21b8e4(0x1a2)}:{'origin':_0x422a41[_0x21b8e4(0x1a0)][_0x21b8e4(0x19e)],'certificateUrl':_0x1f8ff1['lovrabet']+_0x21b8e4(0x193)}};}function a231_0x4a95(_0x4c0816,_0x59ce6b){_0x4c0816=_0x4c0816-0x190;const _0x45d5f5=a231_0x45d5();let _0x4a95e0=_0x45d5f5[_0x4c0816];return _0x4a95e0;}export function writeProjectDomainRoutingManifest(_0x6fe036){const _0x1fb90c=a231_0x1249ef,_0x3a35c6=getProjectDomainRoutingManifest(),_0x23a957=join(_0x6fe036,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x3d1e4f=_0x23a957+'.'+process[_0x1fb90c(0x1a3)]+'.'+Date[_0x1fb90c(0x19a)]()+_0x1fb90c(0x191);try{writeFileSync(_0x3d1e4f,JSON['stringify'](_0x3a35c6,null,0x2)+'\x0a',{'encoding':_0x1fb90c(0x19c),'mode':0x1a4}),renameSync(_0x3d1e4f,_0x23a957);}catch(_0x748ccb){try{unlinkSync(_0x3d1e4f);}catch{}throw _0x748ccb;}return{'path':_0x23a957,'manifest':_0x3a35c6};}function a231_0x45d5(){const _0x3a77f8=['163983QEnLeY','http://localhost','pid','3506440XtAYUT','772408sqpdrn','.tmp','lovrabet-project-domain-routing/v1','/cert/lovrabet-dev.json','17407104uYLAQt','190dHTQHW','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','official','2385004CLydgD','84894jmlfVQ','now','1203747JcWoWb','utf8','rabetbase.domain-routing.json','origin','independent','local'];a231_0x45d5=function(){return _0x3a77f8;};return a231_0x45d5();}
@@ -1 +1 @@
1
- const a219_0x327ff3=a219_0x5ba3;(function(_0x6f148e,_0x5cdeb5){const _0x552236=a219_0x5ba3,_0x46fa62=_0x6f148e();while(!![]){try{const _0x4ad61c=parseInt(_0x552236(0xfa))/0x1*(parseInt(_0x552236(0xfd))/0x2)+parseInt(_0x552236(0x120))/0x3*(-parseInt(_0x552236(0x108))/0x4)+parseInt(_0x552236(0x10d))/0x5*(-parseInt(_0x552236(0x10f))/0x6)+-parseInt(_0x552236(0x121))/0x7+parseInt(_0x552236(0x107))/0x8*(parseInt(_0x552236(0x124))/0x9)+parseInt(_0x552236(0x110))/0xa+parseInt(_0x552236(0x115))/0xb;if(_0x4ad61c===_0x5cdeb5)break;else _0x46fa62['push'](_0x46fa62['shift']());}catch(_0x182dc8){_0x46fa62['push'](_0x46fa62['shift']());}}}(a219_0x19e0,0x9db5e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';function a219_0x19e0(){const _0x3aa07a=['6900180lSVwFK','join','app','1177308IfSMIj','number','cookie','accessKey','en-US','locale','API\x20directory\x20path','pageSize','runtimeDomain','inherit','format','env','245744FrLCHn','riskLevel','userDomain','8DrmIQM','has','appDomain','defaultApp','apps','map','certificateDomain','length','keys','localDomain','32VemUFr','97564wYMyRw','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','appcode','region','Target\x20environment','5406430mfuYcJ','kbDomain','6VCWzkf','3607000smahKy','entries','zh-CN','object','Access\x20key','21648770uOSMXy','apiDir','Config\x20key\x20(','Auth\x20cookie','Default\x20page\x20size','defaultFormat','apiDomain','string','trim','filter','skillDomain','138BIREIq'];a219_0x19e0=function(){return _0x3aa07a;};return a219_0x19e0();}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';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a219_0x327ff3(0x126),a219_0x327ff3(0x127),'locale',a219_0x327ff3(0x12e),'riskLevel',a219_0x327ff3(0x10b),'routing',a219_0x327ff3(0xfc),a219_0x327ff3(0x11b),a219_0x327ff3(0x12c),a219_0x327ff3(0x11f),a219_0x327ff3(0x10e),a219_0x327ff3(0xff),a219_0x327ff3(0x106),a219_0x327ff3(0x103)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a219_0x327ff3(0x10a),a219_0x327ff3(0x12f),a219_0x327ff3(0x129),a219_0x327ff3(0x12e),a219_0x327ff3(0x126),'accessKey',a219_0x327ff3(0x116),a219_0x327ff3(0x10b),a219_0x327ff3(0xfc),a219_0x327ff3(0x11b),a219_0x327ff3(0x12c),a219_0x327ff3(0x11f),a219_0x327ff3(0x10e),a219_0x327ff3(0xff),a219_0x327ff3(0x106),a219_0x327ff3(0x103)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x25d343){const _0x4541e8=a219_0x327ff3;return[..._0x25d343][_0x4541e8(0x122)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x385938){const _0x11a63f=a219_0x327ff3;return TOP_LEVEL_CONFIG_KEYS[_0x11a63f(0xfe)](_0x385938);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x1cfab7=a219_0x327ff3;return _0x1cfab7(0x117)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a219_0x327ff3(0x12f),'apiDir':a219_0x327ff3(0x116),'cookie':a219_0x327ff3(0x126),'accessKey':a219_0x327ff3(0x127),'defaultFormat':a219_0x327ff3(0x12e),'pageSize':'pageSize','riskLevel':a219_0x327ff3(0xfb),'locale':a219_0x327ff3(0x129)};export function getAppProfileFlagDefs(){const _0x76fe06=a219_0x327ff3;return[{'name':'env','type':_0x76fe06(0x11c),'description':_0x76fe06(0x10c),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x76fe06(0x116),'type':_0x76fe06(0x11c),'description':_0x76fe06(0x12a)},{'name':'cookie','type':_0x76fe06(0x11c),'description':_0x76fe06(0x118),'hidden':!![]},{'name':_0x76fe06(0x127),'type':'string','description':_0x76fe06(0x114),'hidden':!![]},{'name':_0x76fe06(0x11a),'type':_0x76fe06(0x11c),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x76fe06(0x12b),'type':_0x76fe06(0x125),'description':_0x76fe06(0x119)},{'name':'riskLevel','type':_0x76fe06(0x11c),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x76fe06(0x129),'type':_0x76fe06(0x11c),'description':_0x76fe06(0x109)}];}export function collectAppProfileOverrides(_0x46fb06){const _0x4e6e68=a219_0x327ff3,_0x361d7a={};for(const [_0x3e07a8,_0x2964b1]of Object[_0x4e6e68(0x111)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1d2365=_0x46fb06(_0x3e07a8);if(!_0x1d2365)continue;_0x361d7a[_0x2964b1]=_0x2964b1===_0x4e6e68(0x12b)?Number(_0x1d2365):_0x1d2365;}return _0x361d7a;}export function buildAppProfileListFields(_0x1f5c88){const _0x1c49a7=a219_0x327ff3;return{'env':_0x1f5c88['env']??null,'apiDir':_0x1f5c88[_0x1c49a7(0x116)]??null,'hasCookie':!!_0x1f5c88[_0x1c49a7(0x126)],'hasAccessKey':!!_0x1f5c88[_0x1c49a7(0x127)],'format':_0x1f5c88[_0x1c49a7(0x12e)]??null,'pageSize':_0x1f5c88[_0x1c49a7(0x12b)]??null,'riskLevel':_0x1f5c88[_0x1c49a7(0xfb)]??null,'locale':_0x1f5c88[_0x1c49a7(0x129)]??null};}export function buildAppDoctorFields(_0x46521a,_0x55c8dc){const _0x5d8071=a219_0x327ff3;return{'env':{'value':_0x46521a[_0x5d8071(0x12f)]||_0x55c8dc[_0x5d8071(0x12f)],'source':_0x46521a['env']?_0x5d8071(0x123):'inherit'},'apiDir':{'value':_0x46521a['apiDir']||_0x55c8dc[_0x5d8071(0x116)],'source':_0x46521a[_0x5d8071(0x116)]?_0x5d8071(0x123):_0x5d8071(0x12d)},'cookie':{'value':_0x46521a[_0x5d8071(0x126)]||_0x55c8dc[_0x5d8071(0x126)],'source':_0x46521a['cookie']?_0x5d8071(0x123):_0x5d8071(0x12d)},'accessKey':{'value':_0x46521a['accessKey']||_0x55c8dc[_0x5d8071(0x127)],'source':_0x46521a[_0x5d8071(0x127)]?_0x5d8071(0x123):_0x5d8071(0x12d)}};}export function buildCanonicalAppConfig(_0x7c984e,_0x333afa){const _0x2edaa1=a219_0x327ff3,_0x5304ff=_0x7c984e[_0x2edaa1(0x102)](_0x4e944e=>String(_0x4e944e||'')[_0x2edaa1(0x11d)]())[_0x2edaa1(0x11e)](Boolean);if(_0x5304ff[_0x2edaa1(0x104)]===0x0)return{};const _0x1eb12f={};for(const _0x1a6fa2 of _0x5304ff){_0x1eb12f[_0x1a6fa2]=_0x333afa?{'appcode':_0x1a6fa2,'env':_0x333afa}:{'appcode':_0x1a6fa2};}return _0x5304ff['length']>0x1?{'apps':_0x1eb12f,'defaultApp':_0x5304ff[0x0]}:{'apps':_0x1eb12f};}export function normalizeStoredDefaultApp(_0x4ec78f,_0x5a28c5){const _0x34592b=a219_0x327ff3,_0x3698e2=_0x4ec78f[_0x34592b(0x101)]&&typeof _0x4ec78f[_0x34592b(0x101)]===_0x34592b(0x113)?_0x4ec78f[_0x34592b(0x101)]:{},_0x4ef008=Object['keys'](_0x3698e2);if(_0x4ef008[_0x34592b(0x104)]<=0x1)return delete _0x4ec78f[_0x34592b(0x100)],undefined;const _0x4120aa=typeof _0x4ec78f[_0x34592b(0x100)]===_0x34592b(0x11c)&&_0x3698e2[_0x4ec78f[_0x34592b(0x100)]]?_0x4ec78f['defaultApp']:undefined,_0xd4fb3f=_0x5a28c5&&_0x3698e2[_0x5a28c5]?_0x5a28c5:_0x4120aa;if(_0xd4fb3f)return _0x4ec78f[_0x34592b(0x100)]=_0xd4fb3f,_0xd4fb3f;return delete _0x4ec78f['defaultApp'],undefined;}function a219_0x5ba3(_0x37eb6e,_0xce6f5e){_0x37eb6e=_0x37eb6e-0xfa;const _0x19e098=a219_0x19e0();let _0x5ba335=_0x19e098[_0x37eb6e];return _0x5ba335;}export function buildCanonicalProjectConfig(_0x15af9a,_0x4ff20a){const _0x52f3b9=a219_0x327ff3,{appCodes:appCodes=[],env:_0x53a162,metadata:_0x4c36c1}=_0x4ff20a,_0x29ddb0={..._0x15af9a,..._0x4c36c1||{}};delete _0x29ddb0['appcode'],delete _0x29ddb0[_0x52f3b9(0x123)];if(_0x53a162)_0x29ddb0[_0x52f3b9(0x12f)]=_0x53a162;else!_0x29ddb0[_0x52f3b9(0x12f)]&&(_0x29ddb0[_0x52f3b9(0x12f)]=DEFAULT_CONFIG_VALUES[_0x52f3b9(0x12f)]);const _0x3e05e5=buildCanonicalAppConfig(appCodes,_0x29ddb0[_0x52f3b9(0x12f)]);if(Object[_0x52f3b9(0x105)](_0x3e05e5)[_0x52f3b9(0x104)]>0x0){_0x29ddb0['apps']=_0x3e05e5['apps'];if(_0x3e05e5[_0x52f3b9(0x100)])_0x29ddb0[_0x52f3b9(0x100)]=_0x3e05e5['defaultApp'];else delete _0x29ddb0['defaultApp'];}return _0x29ddb0;}const LOCALE_MAP={'zh':a219_0x327ff3(0x112),'zh-cn':'zh-CN','zh_cn':a219_0x327ff3(0x112),'en':a219_0x327ff3(0x128),'en-us':a219_0x327ff3(0x128),'en_us':'en-US'};export function normalizeLocale(_0x14e5dc){if(!_0x14e5dc)return null;return LOCALE_MAP[_0x14e5dc['toLowerCase']()]??null;}
1
+ const a232_0x5d03f5=a232_0x1bd9;(function(_0x2ff3d4,_0x4276f1){const _0x5276e4=a232_0x1bd9,_0x40665e=_0x2ff3d4();while(!![]){try{const _0x4b53b4=-parseInt(_0x5276e4(0x18c))/0x1+-parseInt(_0x5276e4(0x189))/0x2+parseInt(_0x5276e4(0x19e))/0x3+parseInt(_0x5276e4(0x18b))/0x4*(parseInt(_0x5276e4(0x186))/0x5)+-parseInt(_0x5276e4(0x190))/0x6*(parseInt(_0x5276e4(0x1a7))/0x7)+-parseInt(_0x5276e4(0x1a6))/0x8*(-parseInt(_0x5276e4(0x1aa))/0x9)+parseInt(_0x5276e4(0x19f))/0xa;if(_0x4b53b4===_0x4276f1)break;else _0x40665e['push'](_0x40665e['shift']());}catch(_0x5a45f3){_0x40665e['push'](_0x40665e['shift']());}}}(a232_0x50f6,0xb12d9));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';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a232_0x5d03f5(0x19b),a232_0x5d03f5(0x192),a232_0x5d03f5(0x1a0),a232_0x5d03f5(0x17f),a232_0x5d03f5(0x17d),a232_0x5d03f5(0x1a9),a232_0x5d03f5(0x1ac),a232_0x5d03f5(0x1a5),a232_0x5d03f5(0x1b0),a232_0x5d03f5(0x19d),'skillDomain',a232_0x5d03f5(0x1a2),a232_0x5d03f5(0x1ae),'localDomain',a232_0x5d03f5(0x17c)];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a232_0x5d03f5(0x180),a232_0x5d03f5(0x1a0),a232_0x5d03f5(0x17f),a232_0x5d03f5(0x19b),a232_0x5d03f5(0x192),a232_0x5d03f5(0x18d),a232_0x5d03f5(0x1a9),a232_0x5d03f5(0x1a5),a232_0x5d03f5(0x1b0),a232_0x5d03f5(0x19d),a232_0x5d03f5(0x18a),a232_0x5d03f5(0x1a2),a232_0x5d03f5(0x1ae),a232_0x5d03f5(0x18f),a232_0x5d03f5(0x17c)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x1a93fd){const _0x1e3d3d=a232_0x5d03f5;return[..._0x1a93fd][_0x1e3d3d(0x185)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x9567cd){const _0x1c0be7=a232_0x5d03f5;return TOP_LEVEL_CONFIG_KEYS[_0x1c0be7(0x19c)](_0x9567cd);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){return'Config\x20key\x20('+getTopLevelConfigKeySummary()+')';}function a232_0x50f6(){const _0x30948c=['map','region','267453bDbBBm','entries','routing','number','appDomain','object','apiDomain','zh-CN','certificateDomain','riskLevel','Target\x20environment','format','env','appcode','length','API\x20directory\x20path','Auth\x20cookie','join','1655qmxaZI','toLowerCase','Risk\x20level','2077820vmtcPM','skillDomain','8680qjTkJE','841310fyBTXl','apiDir','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','localDomain','8122278yoNvDf','string','accessKey','app','en-US','trim','inherit','keys','apps','defaultApp','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','cookie','has','runtimeDomain','1879377YpSlRD','25554910gBYLYm','locale','Access\x20key','kbDomain','Default\x20page\x20size','pageSize','userDomain','16Lemngh','7cszcgq'];a232_0x50f6=function(){return _0x30948c;};return a232_0x50f6();}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':'apiDir','cookie':a232_0x5d03f5(0x19b),'accessKey':a232_0x5d03f5(0x192),'defaultFormat':'format','pageSize':a232_0x5d03f5(0x1a4),'riskLevel':'riskLevel','locale':a232_0x5d03f5(0x1a0)};export function getAppProfileFlagDefs(){const _0x40eb6d=a232_0x5d03f5;return[{'name':_0x40eb6d(0x180),'type':_0x40eb6d(0x191),'description':_0x40eb6d(0x17e),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x40eb6d(0x18d),'type':_0x40eb6d(0x191),'description':_0x40eb6d(0x183)},{'name':_0x40eb6d(0x19b),'type':_0x40eb6d(0x191),'description':_0x40eb6d(0x184),'hidden':!![]},{'name':_0x40eb6d(0x192),'type':_0x40eb6d(0x191),'description':_0x40eb6d(0x1a1),'hidden':!![]},{'name':'defaultFormat','type':_0x40eb6d(0x191),'description':_0x40eb6d(0x18e),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x40eb6d(0x1a4),'type':_0x40eb6d(0x1ad),'description':_0x40eb6d(0x1a3)},{'name':_0x40eb6d(0x17d),'type':'string','description':_0x40eb6d(0x188),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x40eb6d(0x1a0),'type':_0x40eb6d(0x191),'description':_0x40eb6d(0x19a)}];}export function collectAppProfileOverrides(_0x3014fa){const _0x1d1176=a232_0x5d03f5,_0x30a217={};for(const [_0x5c7210,_0x17d89a]of Object[_0x1d1176(0x1ab)](APP_PROFILE_FLAG_KEY_MAP)){const _0x161cb5=_0x3014fa(_0x5c7210);if(!_0x161cb5)continue;_0x30a217[_0x17d89a]=_0x17d89a===_0x1d1176(0x1a4)?Number(_0x161cb5):_0x161cb5;}return _0x30a217;}export function buildAppProfileListFields(_0x2e5019){const _0x77400b=a232_0x5d03f5;return{'env':_0x2e5019[_0x77400b(0x180)]??null,'apiDir':_0x2e5019[_0x77400b(0x18d)]??null,'hasCookie':!!_0x2e5019[_0x77400b(0x19b)],'hasAccessKey':!!_0x2e5019[_0x77400b(0x192)],'format':_0x2e5019[_0x77400b(0x17f)]??null,'pageSize':_0x2e5019[_0x77400b(0x1a4)]??null,'riskLevel':_0x2e5019[_0x77400b(0x17d)]??null,'locale':_0x2e5019['locale']??null};}function a232_0x1bd9(_0x49dbb5,_0x5e20c5){_0x49dbb5=_0x49dbb5-0x17c;const _0x50f68f=a232_0x50f6();let _0x1bd90c=_0x50f68f[_0x49dbb5];return _0x1bd90c;}export function buildAppDoctorFields(_0x526d72,_0x2c4990){const _0x3ab5b5=a232_0x5d03f5;return{'env':{'value':_0x526d72[_0x3ab5b5(0x180)]||_0x2c4990[_0x3ab5b5(0x180)],'source':_0x526d72['env']?_0x3ab5b5(0x193):_0x3ab5b5(0x196)},'apiDir':{'value':_0x526d72[_0x3ab5b5(0x18d)]||_0x2c4990[_0x3ab5b5(0x18d)],'source':_0x526d72[_0x3ab5b5(0x18d)]?_0x3ab5b5(0x193):_0x3ab5b5(0x196)},'cookie':{'value':_0x526d72['cookie']||_0x2c4990[_0x3ab5b5(0x19b)],'source':_0x526d72['cookie']?_0x3ab5b5(0x193):_0x3ab5b5(0x196)},'accessKey':{'value':_0x526d72['accessKey']||_0x2c4990[_0x3ab5b5(0x192)],'source':_0x526d72[_0x3ab5b5(0x192)]?'app':_0x3ab5b5(0x196)}};}export function buildCanonicalAppConfig(_0xa893cf,_0xc3520b){const _0x5c0f5a=a232_0x5d03f5,_0x1db484=_0xa893cf[_0x5c0f5a(0x1a8)](_0x3d61ab=>String(_0x3d61ab||'')[_0x5c0f5a(0x195)]())['filter'](Boolean);if(_0x1db484[_0x5c0f5a(0x182)]===0x0)return{};const _0x45d92c={};for(const _0x588ee5 of _0x1db484){_0x45d92c[_0x588ee5]=_0xc3520b?{'appcode':_0x588ee5,'env':_0xc3520b}:{'appcode':_0x588ee5};}return _0x1db484[_0x5c0f5a(0x182)]>0x1?{'apps':_0x45d92c,'defaultApp':_0x1db484[0x0]}:{'apps':_0x45d92c};}export function normalizeStoredDefaultApp(_0x52be22,_0x335362){const _0x39e272=a232_0x5d03f5,_0x1b3bd5=_0x52be22[_0x39e272(0x198)]&&typeof _0x52be22[_0x39e272(0x198)]===_0x39e272(0x1af)?_0x52be22[_0x39e272(0x198)]:{},_0x412b4c=Object['keys'](_0x1b3bd5);if(_0x412b4c[_0x39e272(0x182)]<=0x1)return delete _0x52be22[_0x39e272(0x199)],undefined;const _0x45db94=typeof _0x52be22['defaultApp']==='string'&&_0x1b3bd5[_0x52be22[_0x39e272(0x199)]]?_0x52be22[_0x39e272(0x199)]:undefined,_0x18fd88=_0x335362&&_0x1b3bd5[_0x335362]?_0x335362:_0x45db94;if(_0x18fd88)return _0x52be22[_0x39e272(0x199)]=_0x18fd88,_0x18fd88;return delete _0x52be22[_0x39e272(0x199)],undefined;}export function buildCanonicalProjectConfig(_0x8764a8,_0x2039b8){const _0x18218a=a232_0x5d03f5,{appCodes:appCodes=[],env:_0x47c839,metadata:_0x551bd1}=_0x2039b8,_0x21740c={..._0x8764a8,..._0x551bd1||{}};delete _0x21740c[_0x18218a(0x181)],delete _0x21740c[_0x18218a(0x193)];if(_0x47c839)_0x21740c[_0x18218a(0x180)]=_0x47c839;else!_0x21740c[_0x18218a(0x180)]&&(_0x21740c[_0x18218a(0x180)]=DEFAULT_CONFIG_VALUES[_0x18218a(0x180)]);const _0x14879d=buildCanonicalAppConfig(appCodes,_0x21740c[_0x18218a(0x180)]);if(Object[_0x18218a(0x197)](_0x14879d)[_0x18218a(0x182)]>0x0){_0x21740c[_0x18218a(0x198)]=_0x14879d['apps'];if(_0x14879d[_0x18218a(0x199)])_0x21740c[_0x18218a(0x199)]=_0x14879d[_0x18218a(0x199)];else delete _0x21740c[_0x18218a(0x199)];}return _0x21740c;}const LOCALE_MAP={'zh':a232_0x5d03f5(0x1b1),'zh-cn':a232_0x5d03f5(0x1b1),'zh_cn':a232_0x5d03f5(0x1b1),'en':a232_0x5d03f5(0x194),'en-us':'en-US','en_us':'en-US'};export function normalizeLocale(_0x46d5f1){const _0x1370c4=a232_0x5d03f5;if(!_0x46d5f1)return null;return LOCALE_MAP[_0x46d5f1[_0x1370c4(0x187)]()]??null;}
@@ -1 +1 @@
1
- const a220_0x38d2f6=a220_0x483b;function a220_0x483b(_0x32fd0b,_0x23ab65){_0x32fd0b=_0x32fd0b-0xaf;const _0x802c3c=a220_0x802c();let _0x483bc0=_0x802c3c[_0x32fd0b];return _0x483bc0;}function a220_0x802c(){const _0xf01113=['2396430Bnwjyi','24141770gSJwsb','6901990OiafJI','7780990XKcmjQ','18531GWnHKX','1944465IBxdjy','4ibbReN','/templates/projects','249759nGxABU','150rVHdvb','88XLztAm'];a220_0x802c=function(){return _0xf01113;};return a220_0x802c();}(function(_0x54d21f,_0x17e5cb){const _0x172a47=a220_0x483b,_0x282bf2=_0x54d21f();while(!![]){try{const _0x57d6c5=-parseInt(_0x172a47(0xb7))/0x1*(-parseInt(_0x172a47(0xb1))/0x2)+-parseInt(_0x172a47(0xb8))/0x3*(parseInt(_0x172a47(0xb9))/0x4)+-parseInt(_0x172a47(0xb5))/0x5+parseInt(_0x172a47(0xb3))/0x6+-parseInt(_0x172a47(0xb6))/0x7+-parseInt(_0x172a47(0xb2))/0x8*(parseInt(_0x172a47(0xb0))/0x9)+parseInt(_0x172a47(0xb4))/0xa;if(_0x57d6c5===_0x17e5cb)break;else _0x282bf2['push'](_0x282bf2['shift']());}catch(_0x4e7651){_0x282bf2['push'](_0x282bf2['shift']());}}}(a220_0x802c,0xb9107));export const RABETBASE_CDN_BASE_URL='https://g.lovrabet.com/dist/rabetbase-cli';export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+'/config/index.json';export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a220_0x38d2f6(0xaf);
1
+ function a233_0x358d(_0x161401,_0x9327c6){_0x161401=_0x161401-0x7a;const _0xed36b4=a233_0xed36();let _0x358dde=_0xed36b4[_0x161401];return _0x358dde;}const a233_0x4f8596=a233_0x358d;(function(_0x2b6a7d,_0x1a04e1){const _0x6c23da=a233_0x358d,_0x100447=_0x2b6a7d();while(!![]){try{const _0x723648=-parseInt(_0x6c23da(0x83))/0x1+-parseInt(_0x6c23da(0x7e))/0x2*(parseInt(_0x6c23da(0x7d))/0x3)+parseInt(_0x6c23da(0x7f))/0x4+parseInt(_0x6c23da(0x80))/0x5+-parseInt(_0x6c23da(0x86))/0x6*(parseInt(_0x6c23da(0x81))/0x7)+parseInt(_0x6c23da(0x7c))/0x8*(parseInt(_0x6c23da(0x7b))/0x9)+parseInt(_0x6c23da(0x82))/0xa;if(_0x723648===_0x1a04e1)break;else _0x100447['push'](_0x100447['shift']());}catch(_0xb75bf9){_0x100447['push'](_0x100447['shift']());}}}(a233_0xed36,0xd2c16));export const RABETBASE_CDN_BASE_URL=a233_0x4f8596(0x84);export const CLI_VERSION_POLICY_URL=RABETBASE_CDN_BASE_URL+a233_0x4f8596(0x7a);function a233_0xed36(){const _0x3c3884=['1056392Vacltk','3qHxxZt','56262rZAYsA','2634988KkRWYz','7539455QxlAzG','7rANRfK','945190MUJXeP','308875CnheaG','https://g.lovrabet.com/dist/rabetbase-cli','/templates/projects','7949970csrZpY','/config/index.json','18AbRLfs'];a233_0xed36=function(){return _0x3c3884;};return a233_0xed36();}export const PROJECT_TEMPLATE_ASSET_BASE_URL=RABETBASE_CDN_BASE_URL+a233_0x4f8596(0x85);