@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.5-beta.1

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 (379) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.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/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +2 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +35 -0
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
  360. package/skills/rabetbase-page-generation/references/generation.md +77 -0
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +63 -0
  362. package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
  363. package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
  364. package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
  365. package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
  366. package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
  367. package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
  368. package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
  369. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +717 -0
  370. package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
  371. package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
  372. package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
  373. package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
  374. package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
  375. package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
  376. package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
  377. package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
  378. package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a244_0x2b081c=a244_0x4ce9;(function(_0x458083,_0x2c0027){const _0x5acd9d=a244_0x4ce9,_0x5d9298=_0x458083();while(!![]){try{const _0x4a2da5=-parseInt(_0x5acd9d(0x1c3))/0x1*(parseInt(_0x5acd9d(0x1ba))/0x2)+parseInt(_0x5acd9d(0x1b7))/0x3+parseInt(_0x5acd9d(0x19a))/0x4*(parseInt(_0x5acd9d(0x19e))/0x5)+parseInt(_0x5acd9d(0x1a2))/0x6+parseInt(_0x5acd9d(0x19c))/0x7+-parseInt(_0x5acd9d(0x1bc))/0x8*(parseInt(_0x5acd9d(0x1cc))/0x9)+-parseInt(_0x5acd9d(0x1c1))/0xa*(parseInt(_0x5acd9d(0x1bb))/0xb);if(_0x4a2da5===_0x2c0027)break;else _0x5d9298['push'](_0x5d9298['shift']());}catch(_0x3e6e64){_0x5d9298['push'](_0x5d9298['shift']());}}}(a244_0x29e9,0xbf98e));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR=a244_0x2b081c(0x1a9);export function buildSqlLockEntry(_0x14808d,_0x5deb08,_0x43f71e,_0x1bd110){const _0x1e542d=a244_0x2b081c,_0x3394f6=detectSqlMode(_0x5deb08);return{'path':buildSqlRelativePath(_0x14808d[_0x1e542d(0x19f)],_0x14808d['sqlName'],_0x1bd110?.[_0x1e542d(0x1c6)],_0x3394f6,_0x14808d[_0x1e542d(0x1c7)]),'hash':_0x43f71e,'remoteId':_0x14808d['id'],'version':_0x14808d[_0x1e542d(0x1bd)],'dbId':Number(_0x14808d[_0x1e542d(0x1c7)]),'dbName':_0x1bd110?.[_0x1e542d(0x1c6)],'sqlName':_0x14808d[_0x1e542d(0x1a3)],'sqlConfig':_0x14808d[_0x1e542d(0x1ae)]??undefined,'mode':_0x3394f6};}export function cloneSqlLockData(_0x56374c){const _0x27abb3=a244_0x2b081c;return{'apps':Object[_0x27abb3(0x19d)](Object[_0x27abb3(0x1cb)](_0x56374c[_0x27abb3(0x1a5)])['map'](([_0x37d17e,_0xa9ce86])=>[_0x37d17e,{'sqlRoot':_0xa9ce86[_0x27abb3(0x1b4)],'lastSync':_0xa9ce86['lastSync'],'sqls':{..._0xa9ce86[_0x27abb3(0x1a7)]}}]))};}export function ensureRemoteSqlContent(_0xf5c08d){const _0x866f1a=a244_0x2b081c;return _0xf5c08d[_0x866f1a(0x1b6)]??'';}export function buildLocalSqlFileContent(_0x325765,_0x401791,_0x181e86){const _0x15ada9=a244_0x2b081c,_0x59789e=_0x181e86?.['mode']??detectSqlMode(_0x401791),_0x3e4f45=stripLocalSqlMetadata(_0x401791,_0x59789e)[_0x15ada9(0x1ad)](),_0x5e26a5=buildMetadataHeaderLines({'sqlCode':_0x325765[_0x15ada9(0x19f)],'sqlName':_0x325765['sqlName'],'dbId':_0x325765[_0x15ada9(0x1c7)],'dbName':_0x181e86?.[_0x15ada9(0x1c6)],'mode':_0x59789e,'syncedAt':_0x181e86?.[_0x15ada9(0x1a8)],'description':_0x181e86?.['description']},_0x59789e),_0x40ab65=_0x59789e==='mybatisXml'?splitXmlDeclaration(_0x3e4f45):{'body':_0x3e4f45},_0x3cbb48=[..._0x40ab65[_0x15ada9(0x1ca)]?[_0x40ab65[_0x15ada9(0x1ca)]]:[],..._0x5e26a5,'',_0x40ab65[_0x15ada9(0x1c4)][_0x15ada9(0x1a1)]()],_0x1c2ed7=_0x3cbb48['join']('\x0a');return _0x1c2ed7['endsWith']('\x0a')?_0x1c2ed7:_0x1c2ed7+'\x0a';}export function stripLocalSqlMetadata(_0x8d33e2,_0x2fe6f4){const _0x4b4225=a244_0x2b081c;if(_0x2fe6f4===_0x4b4225(0x1aa)){const {declaration:_0x34a6c1,body:_0x5e86ef}=splitXmlDeclaration(_0x8d33e2[_0x4b4225(0x1a6)](/\r\n/g,'\x0a')),_0x3667da=stripLeadingMetadataLines(_0x5e86ef,/^\s*<!--\s*@lovrabet\./);return _0x34a6c1?''+_0x34a6c1+(_0x3667da?'\x0a'+_0x3667da:''):_0x3667da;}return stripLeadingMetadataLines(_0x8d33e2[_0x4b4225(0x1a6)](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x51064a,_0x11cd46){const _0x2dec4c=a244_0x2b081c;if(_0x11cd46?.['mode'])return _0x11cd46[_0x2dec4c(0x1b0)];return detectSqlMode(_0x51064a);}export function resolveSqlFileName(_0x36bf45,_0xde64c5,_0x48105e){const _0x484c55=a244_0x2b081c;if(_0x48105e?.[_0x484c55(0x1a4)])return _0x48105e[_0x484c55(0x1a4)];if(_0x48105e?.[_0x484c55(0x1a3)]||_0x48105e?.['dbName'])return buildSqlRelativePath(_0x36bf45,_0x48105e?.[_0x484c55(0x1a3)],_0x48105e?.[_0x484c55(0x1c6)],resolveSqlMode(_0xde64c5,_0x48105e),_0x48105e?.[_0x484c55(0x1c7)]);return buildDefaultSqlFileName(_0x36bf45,resolveSqlMode(_0xde64c5,_0x48105e));}function a244_0x4ce9(_0x2f7878,_0x2f3971){_0x2f7878=_0x2f7878-0x19a;const _0x29e9a4=a244_0x29e9();let _0x4ce99e=_0x29e9a4[_0x2f7878];return _0x4ce99e;}export function resolveSqlLocalDir(_0x383972,_0x2cd2c3){return join(_0x383972,SQL_LOCAL_REL_DIR,_0x2cd2c3);}export async function confirmForceOverwrite(_0x321e36){const _0x2f141b=a244_0x2b081c,_0x8439c9=createInterface({'input':process[_0x2f141b(0x1ab)],'output':process[_0x2f141b(0x1c9)]}),_0x3bd760=await new Promise(_0x5e565d=>{const _0x269f6a=_0x2f141b;_0x8439c9[_0x269f6a(0x1b1)](_0x321e36+_0x269f6a(0x1be),_0x5e565d);});return _0x8439c9['close'](),['y','yes'][_0x2f141b(0x1c5)](_0x3bd760[_0x2f141b(0x1ad)]()[_0x2f141b(0x1bf)]());}export function findSqlLockScope(_0x1b8f21,_0x4c13a1){const _0x3b8349=a244_0x2b081c;return _0x1b8f21[_0x3b8349(0x1a5)][_0x4c13a1];}function a244_0x29e9(){const _0x43b105=['fromEntries','410225KMdklB','sqlCode','description','trimStart','6428868LlOhKt','sqlName','path','apps','replace','sqls','syncedAt','.rabetbase/sql','mybatisXml','stdin','<!--\x20@lovrabet.','trim','sqlConfig','split','mode','question','slice','exec','sqlRoot','\x20-->','sqlContent','4516632bxemoc','join','--\x20@lovrabet.','2wyYnrr','302236KqGAIR','6904QPIlyi','version','\x20[y/N]\x20','toLowerCase','test','1160jjRjmx','filter','644317OhHHtL','body','includes','dbName','dbId','length','stderr','declaration','entries','1674uiPOZH','32FTrPYW','map','10804157FySxrv'];a244_0x29e9=function(){return _0x43b105;};return a244_0x29e9();}function buildMetadataHeaderLines(_0xb495f6,_0xea0cf4){const _0x294e70=a244_0x2b081c,_0xee5a6=[[_0x294e70(0x19f),_0xb495f6['sqlCode']],['sqlName',_0xb495f6[_0x294e70(0x1a3)]],[_0x294e70(0x1c7),_0xb495f6[_0x294e70(0x1c7)]],['dbName',_0xb495f6['dbName']],['mode',_0xb495f6[_0x294e70(0x1b0)]],['syncedAt',_0xb495f6[_0x294e70(0x1a8)]],['description',_0xb495f6[_0x294e70(0x1a0)]]];if(_0xea0cf4===_0x294e70(0x1aa))return _0xee5a6[_0x294e70(0x1c2)](([,_0x5f4553])=>_0x5f4553!==undefined&&_0x5f4553!==null&&String(_0x5f4553)[_0x294e70(0x1ad)]()!=='')[_0x294e70(0x19b)](([_0x4312c6,_0xe0bad3])=>_0x294e70(0x1ac)+_0x4312c6+':\x20'+String(_0xe0bad3)+_0x294e70(0x1b5));return _0xee5a6[_0x294e70(0x1c2)](([,_0x4ffff9])=>_0x4ffff9!==undefined&&_0x4ffff9!==null&&String(_0x4ffff9)['trim']()!=='')[_0x294e70(0x19b)](([_0x1e0668,_0x3ce607])=>_0x294e70(0x1b9)+_0x1e0668+':\x20'+String(_0x3ce607));}function splitXmlDeclaration(_0x5cc95e){const _0x595dbc=a244_0x2b081c,_0x1c9d36=_0x5cc95e['trimStart'](),_0x4ee4e6=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i[_0x595dbc(0x1b3)](_0x1c9d36);if(!_0x4ee4e6)return{'body':_0x5cc95e};return{'declaration':_0x4ee4e6[0x0],'body':_0x1c9d36[_0x595dbc(0x1b2)](_0x4ee4e6[0x0]['length'])};}function stripLeadingMetadataLines(_0x1d9e7f,_0x3514f4){const _0x36ddbc=a244_0x2b081c,_0x116957=_0x1d9e7f[_0x36ddbc(0x1af)]('\x0a');let _0xefc8a0=0x0;while(_0xefc8a0<_0x116957[_0x36ddbc(0x1c8)]){const _0x1b0061=_0x116957[_0xefc8a0]??'';if(_0x3514f4[_0x36ddbc(0x1c0)](_0x1b0061)||_0x1b0061[_0x36ddbc(0x1ad)]()===''){_0xefc8a0++;continue;}break;}return _0x116957[_0x36ddbc(0x1b2)](_0xefc8a0)[_0x36ddbc(0x1b8)]('\x0a')['trimStart']();}
1
+ (function(_0x118c21,_0x41e4a7){const _0x30262f=a244_0x3301,_0x30dcc3=_0x118c21();while(!![]){try{const _0x46fb76=parseInt(_0x30262f(0x7d))/0x1+parseInt(_0x30262f(0x88))/0x2+-parseInt(_0x30262f(0x89))/0x3+-parseInt(_0x30262f(0x73))/0x4*(-parseInt(_0x30262f(0x83))/0x5)+parseInt(_0x30262f(0x6c))/0x6+parseInt(_0x30262f(0x85))/0x7+-parseInt(_0x30262f(0x7a))/0x8;if(_0x46fb76===_0x41e4a7)break;else _0x30dcc3['push'](_0x30dcc3['shift']());}catch(_0xd904ac){_0x30dcc3['push'](_0x30dcc3['shift']());}}}(a244_0x4c38,0xda44d));import{createInterface}from'node:readline';import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR='.rabetbase/sql';export function buildSqlLockEntry(_0x3b809d,_0x1c1a80,_0x5e269e,_0xa5a1d){const _0x469db6=a244_0x3301,_0x5c3de9=detectSqlMode(_0x1c1a80);return{'path':buildSqlRelativePath(_0x3b809d[_0x469db6(0x80)],_0x3b809d[_0x469db6(0x90)],_0xa5a1d?.['dbName'],_0x5c3de9,_0x3b809d[_0x469db6(0x82)]),'hash':_0x5e269e,'remoteId':_0x3b809d['id'],'version':_0x3b809d['version'],'dbId':Number(_0x3b809d['dbId']),'dbName':_0xa5a1d?.[_0x469db6(0x86)],'sqlName':_0x3b809d[_0x469db6(0x90)],'sqlConfig':_0x3b809d['sqlConfig']??undefined,'mode':_0x5c3de9};}export function cloneSqlLockData(_0xb15032){const _0x4d88de=a244_0x3301;return{'apps':Object[_0x4d88de(0x7e)](Object[_0x4d88de(0x8d)](_0xb15032[_0x4d88de(0x6d)])[_0x4d88de(0x8c)](([_0x5693e6,_0x190a6f])=>[_0x5693e6,{'sqlRoot':_0x190a6f[_0x4d88de(0x8a)],'lastSync':_0x190a6f[_0x4d88de(0x8f)],'sqls':{..._0x190a6f['sqls']}}]))};}export function ensureRemoteSqlContent(_0x47b47a){const _0x1f1c49=a244_0x3301;return _0x47b47a[_0x1f1c49(0x77)]??'';}export function buildLocalSqlFileContent(_0x345feb,_0x17f3cd,_0x131120){const _0x15b7fc=a244_0x3301,_0x269f83=_0x131120?.[_0x15b7fc(0x94)]??detectSqlMode(_0x17f3cd),_0x27139e=stripLocalSqlMetadata(_0x17f3cd,_0x269f83)[_0x15b7fc(0x71)](),_0x183980=buildMetadataHeaderLines({'sqlCode':_0x345feb[_0x15b7fc(0x80)],'sqlName':_0x345feb[_0x15b7fc(0x90)],'dbId':_0x345feb[_0x15b7fc(0x82)],'dbName':_0x131120?.[_0x15b7fc(0x86)],'mode':_0x269f83,'syncedAt':_0x131120?.['syncedAt'],'description':_0x131120?.['description']},_0x269f83),_0x46c8f2=_0x269f83===_0x15b7fc(0x84)?splitXmlDeclaration(_0x27139e):{'body':_0x27139e},_0x4071df=[..._0x46c8f2[_0x15b7fc(0x79)]?[_0x46c8f2[_0x15b7fc(0x79)]]:[],..._0x183980,'',_0x46c8f2[_0x15b7fc(0x75)][_0x15b7fc(0x6e)]()],_0x2dc8e6=_0x4071df[_0x15b7fc(0x7f)]('\x0a');return _0x2dc8e6[_0x15b7fc(0x8b)]('\x0a')?_0x2dc8e6:_0x2dc8e6+'\x0a';}function a244_0x3301(_0x4c046c,_0x5d0a8f){_0x4c046c=_0x4c046c-0x6b;const _0x4c38d9=a244_0x4c38();let _0x3301c9=_0x4c38d9[_0x4c046c];return _0x3301c9;}function a244_0x4c38(){const _0x290210=['17379312LInYMv','description','slice','186744NAVBHr','fromEntries','join','sqlCode','filter','dbId','746905YdDIZu','mybatisXml','11130588yZlRkt','dbName','\x20[y/N]\x20','1486720WUJSQA','3578241tsbbYc','sqlRoot','endsWith','map','entries','length','lastSync','sqlName','syncedAt','includes','stderr','mode','toLowerCase','2367438klZXZU','apps','trimStart','--\x20@lovrabet.','question','trim','split','36YWaopT','path','body','replace','sqlContent','yes','declaration'];a244_0x4c38=function(){return _0x290210;};return a244_0x4c38();}export function stripLocalSqlMetadata(_0x5f4260,_0x1bfea3){const _0x35ec13=a244_0x3301;if(_0x1bfea3==='mybatisXml'){const {declaration:_0x47f281,body:_0x3182df}=splitXmlDeclaration(_0x5f4260['replace'](/\r\n/g,'\x0a')),_0x2ef352=stripLeadingMetadataLines(_0x3182df,/^\s*<!--\s*@lovrabet\./);return _0x47f281?''+_0x47f281+(_0x2ef352?'\x0a'+_0x2ef352:''):_0x2ef352;}return stripLeadingMetadataLines(_0x5f4260[_0x35ec13(0x76)](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x177c40,_0xdccb92){const _0x26e2c6=a244_0x3301;if(_0xdccb92?.[_0x26e2c6(0x94)])return _0xdccb92[_0x26e2c6(0x94)];return detectSqlMode(_0x177c40);}export function resolveSqlFileName(_0x74b069,_0x231fe7,_0x5f5ddd){const _0x42bf65=a244_0x3301;if(_0x5f5ddd?.[_0x42bf65(0x74)])return _0x5f5ddd[_0x42bf65(0x74)];if(_0x5f5ddd?.[_0x42bf65(0x90)]||_0x5f5ddd?.[_0x42bf65(0x86)])return buildSqlRelativePath(_0x74b069,_0x5f5ddd?.['sqlName'],_0x5f5ddd?.[_0x42bf65(0x86)],resolveSqlMode(_0x231fe7,_0x5f5ddd),_0x5f5ddd?.[_0x42bf65(0x82)]);return buildDefaultSqlFileName(_0x74b069,resolveSqlMode(_0x231fe7,_0x5f5ddd));}export function resolveSqlLocalDir(_0x534114,_0x34d1cf){return join(_0x534114,SQL_LOCAL_REL_DIR,_0x34d1cf);}export async function confirmForceOverwrite(_0x3157f8){const _0x177e94=a244_0x3301,_0x3b798c=createInterface({'input':process['stdin'],'output':process[_0x177e94(0x93)]}),_0x4a0980=await new Promise(_0x4b800d=>{const _0x31eaea=_0x177e94;_0x3b798c[_0x31eaea(0x70)](_0x3157f8+_0x31eaea(0x87),_0x4b800d);});return _0x3b798c['close'](),['y',_0x177e94(0x78)][_0x177e94(0x92)](_0x4a0980['trim']()[_0x177e94(0x6b)]());}export function findSqlLockScope(_0x3f8392,_0x438782){return _0x3f8392['apps'][_0x438782];}function buildMetadataHeaderLines(_0x503361,_0xe0d179){const _0xaf7781=a244_0x3301,_0xd78e64=[['sqlCode',_0x503361[_0xaf7781(0x80)]],[_0xaf7781(0x90),_0x503361[_0xaf7781(0x90)]],[_0xaf7781(0x82),_0x503361[_0xaf7781(0x82)]],[_0xaf7781(0x86),_0x503361[_0xaf7781(0x86)]],['mode',_0x503361[_0xaf7781(0x94)]],[_0xaf7781(0x91),_0x503361[_0xaf7781(0x91)]],['description',_0x503361[_0xaf7781(0x7b)]]];if(_0xe0d179===_0xaf7781(0x84))return _0xd78e64[_0xaf7781(0x81)](([,_0x4d7583])=>_0x4d7583!==undefined&&_0x4d7583!==null&&String(_0x4d7583)[_0xaf7781(0x71)]()!=='')[_0xaf7781(0x8c)](([_0x466b39,_0x1caf69])=>'<!--\x20@lovrabet.'+_0x466b39+':\x20'+String(_0x1caf69)+'\x20-->');return _0xd78e64['filter'](([,_0x3b6c9d])=>_0x3b6c9d!==undefined&&_0x3b6c9d!==null&&String(_0x3b6c9d)['trim']()!=='')[_0xaf7781(0x8c)](([_0x22434b,_0x1dc059])=>_0xaf7781(0x6f)+_0x22434b+':\x20'+String(_0x1dc059));}function splitXmlDeclaration(_0x4577eb){const _0x5ed0b4=a244_0x3301,_0x3aa257=_0x4577eb[_0x5ed0b4(0x6e)](),_0x1f38be=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i['exec'](_0x3aa257);if(!_0x1f38be)return{'body':_0x4577eb};return{'declaration':_0x1f38be[0x0],'body':_0x3aa257['slice'](_0x1f38be[0x0][_0x5ed0b4(0x8e)])};}function stripLeadingMetadataLines(_0x3c9ca0,_0x48d743){const _0x1d48d9=a244_0x3301,_0x286181=_0x3c9ca0[_0x1d48d9(0x72)]('\x0a');let _0x4e32d4=0x0;while(_0x4e32d4<_0x286181[_0x1d48d9(0x8e)]){const _0x19c8ae=_0x286181[_0x4e32d4]??'';if(_0x48d743['test'](_0x19c8ae)||_0x19c8ae[_0x1d48d9(0x71)]()===''){_0x4e32d4++;continue;}break;}return _0x286181[_0x1d48d9(0x7c)](_0x4e32d4)['join']('\x0a')[_0x1d48d9(0x6e)]();}
@@ -1 +1 @@
1
- const a245_0xa46fe4=a245_0x1ca6;(function(_0xe99e29,_0x154df4){const _0x2e9aed=a245_0x1ca6,_0x398fa7=_0xe99e29();while(!![]){try{const _0x14f66f=parseInt(_0x2e9aed(0x191))/0x1+-parseInt(_0x2e9aed(0x193))/0x2+-parseInt(_0x2e9aed(0x185))/0x3+-parseInt(_0x2e9aed(0x189))/0x4+-parseInt(_0x2e9aed(0x194))/0x5+-parseInt(_0x2e9aed(0x17f))/0x6+parseInt(_0x2e9aed(0x18e))/0x7;if(_0x14f66f===_0x154df4)break;else _0x398fa7['push'](_0x398fa7['shift']());}catch(_0x523490){_0x398fa7['push'](_0x398fa7['shift']());}}}(a245_0x28ff,0x5166f));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a245_0x1ca6(_0xb773b2,_0x19a517){_0xb773b2=_0xb773b2-0x17a;const _0x28ff3d=a245_0x28ff();let _0x1ca673=_0x28ff3d[_0xb773b2];return _0x1ca673;}async function fetchAllSqlCodes(_0x3d50c6){const _0x583f40=a245_0x1ca6,_0x1f6a7f=[];let _0x3f1b70=0x1;while(!![]){const _0x542698=await listSqlQueries(_0x3d50c6,{'currentPage':_0x3f1b70,'pageSize':PAGE_SIZE}),_0x27646e=_0x542698[_0x583f40(0x192)]??[];_0x1f6a7f[_0x583f40(0x198)](..._0x27646e[_0x583f40(0x186)](_0x10c150=>_0x10c150[_0x583f40(0x187)]));if(_0x27646e[_0x583f40(0x18d)]===0x0)break;const _0x226b58=_0x542698[_0x583f40(0x195)]?.[_0x583f40(0x197)];if(_0x226b58!=null?_0x1f6a7f[_0x583f40(0x18d)]>=_0x226b58:_0x27646e['length']<PAGE_SIZE)break;_0x3f1b70++;}return _0x1f6a7f;}export const sqlStatus={'service':a245_0xa46fe4(0x18b),'command':a245_0xa46fe4(0x183),'description':a245_0xa46fe4(0x190),'risk':a245_0xa46fe4(0x196),'flags':[{'name':a245_0xa46fe4(0x184),'type':a245_0xa46fe4(0x18f),'description':a245_0xa46fe4(0x17c)}],async 'execute'(_0x357276){const _0x295251=a245_0xa46fe4,_0x3becb1=loadSqlProjectConfig(_0x357276[_0x295251(0x17e)]),_0x207012=await readSqlLockFile(_0x3becb1[_0x295251(0x17a)]),{appLock:_0x4fc319}=ensureSqlLockScope(_0x207012??createEmptySqlLock(),_0x3becb1[_0x295251(0x17e)],_0x3becb1['sqlRoot'],_0x295251(0x183)),_0x2e48fc=await scanLocalSqlQueries(_0x3becb1),_0x439b89=[],_0x2691c8=[],_0x5c4609=[],_0x85ecaf=[],_0x46ca0f=new Set(_0x2e48fc[_0x295251(0x186)](_0x15b47b=>_0x15b47b[_0x295251(0x17d)]));for(const _0x23a859 of _0x2e48fc){const _0x51b177=await computeSqlFileHash(_0x23a859[_0x295251(0x199)]),_0x33c2aa=_0x4fc319['sqls'][_0x23a859[_0x295251(0x17d)]],_0xc0874d=!!_0x33c2aa&&_0x33c2aa[_0x295251(0x181)]!==_0x23a859[_0x295251(0x19b)],_0x400d99=!!_0x33c2aa&&!!_0x23a859[_0x295251(0x180)]&&_0x33c2aa[_0x295251(0x180)]!==_0x23a859[_0x295251(0x180)];if(!_0x33c2aa)_0x439b89[_0x295251(0x198)](_0x23a859[_0x295251(0x17d)]);else _0x33c2aa['hash']!==_0x51b177||_0xc0874d||_0x400d99?_0x2691c8['push'](_0x23a859['lockKey']):_0x5c4609[_0x295251(0x198)](_0x23a859[_0x295251(0x17d)]);}for(const _0x4682ba of Object['keys'](_0x4fc319[_0x295251(0x19a)])){!_0x46ca0f[_0x295251(0x18a)](_0x4682ba)&&_0x85ecaf[_0x295251(0x198)](_0x4682ba);}const _0x22ae0e=[];if(_0x357276[_0x295251(0x17b)](_0x295251(0x184))){const _0x1a88c3=await fetchAllSqlCodes(_0x357276[_0x295251(0x17e)]);for(const _0xa56ae0 of _0x1a88c3){!_0x46ca0f[_0x295251(0x18a)](_0xa56ae0)&&!_0x4fc319[_0x295251(0x19a)][_0xa56ae0]&&_0x22ae0e[_0x295251(0x198)](_0xa56ae0);}}const _0xcb65fe=_0x439b89[_0x295251(0x18d)]===0x0&&_0x2691c8[_0x295251(0x18d)]===0x0&&_0x85ecaf['length']===0x0&&_0x22ae0e[_0x295251(0x18d)]===0x0;return{'ok':!![],'data':{'added':_0x439b89,'modified':_0x2691c8,'missing':_0x85ecaf,'unchanged':_0x5c4609,'remoteOnly':_0x22ae0e},'message':_0xcb65fe?_0x295251(0x182):_0x439b89[_0x295251(0x18d)]+'\x20added,\x20'+_0x2691c8[_0x295251(0x18d)]+_0x295251(0x18c)+_0x85ecaf['length']+_0x295251(0x188)+_0x5c4609['length']+'\x20unchanged'+(_0x22ae0e['length']>0x0?',\x20'+_0x22ae0e[_0x295251(0x18d)]+'\x20remote-only':'')};}};function a245_0x28ff(){const _0x1a6a0f=['has','sql','\x20modified,\x20','length','14031010MdKTsr','boolean','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','488147jOYTFJ','tableData','1331636wyyIVX','579920PeUnfN','paging','read','totalCount','push','filePath','sqls','relativePath','lockFilePath','bool','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','lockKey','appCode','1564302RnjZYc','sqlName','path','All\x20SQL\x20queries\x20are\x20in\x20sync.','status','remote','1572432GPiPPf','map','sqlCode','\x20missing,\x20','2369964kHMMcm'];a245_0x28ff=function(){return _0x1a6a0f;};return a245_0x28ff();}
1
+ const a245_0x3baffb=a245_0x21a2;(function(_0x293fcd,_0x1a9d5f){const _0x3d141b=a245_0x21a2,_0x5bbe02=_0x293fcd();while(!![]){try{const _0x400e04=-parseInt(_0x3d141b(0xa6))/0x1+-parseInt(_0x3d141b(0xc0))/0x2+parseInt(_0x3d141b(0xba))/0x3+-parseInt(_0x3d141b(0xbe))/0x4+parseInt(_0x3d141b(0xa8))/0x5+parseInt(_0x3d141b(0xb1))/0x6*(-parseInt(_0x3d141b(0xb6))/0x7)+-parseInt(_0x3d141b(0xc3))/0x8*(-parseInt(_0x3d141b(0xa9))/0x9);if(_0x400e04===_0x1a9d5f)break;else _0x5bbe02['push'](_0x5bbe02['shift']());}catch(_0x59d5b0){_0x5bbe02['push'](_0x5bbe02['shift']());}}}(a245_0x3659,0xca198));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';function a245_0x21a2(_0x456cf8,_0x4170da){_0x456cf8=_0x456cf8-0xa6;const _0x365978=a245_0x3659();let _0x21a237=_0x365978[_0x456cf8];return _0x21a237;}import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;function a245_0x3659(){const _0x3c661e=['sql','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','status','9726262nnDdkp','\x20missing,\x20','paging','\x20remote-only','4250451WrEGYK','path','sqlName','\x20added,\x20','285112xtwhvK','appCode','3288216GZSSEw','\x20modified,\x20','lockFilePath','10224056yLNXQI','has','hash','1552066CJUXZQ','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','7559435GQIxGM','18fepHOl','keys','totalCount','read','sqls','push','boolean','lockKey','6csgpuw','length'];a245_0x3659=function(){return _0x3c661e;};return a245_0x3659();}async function fetchAllSqlCodes(_0x580273){const _0x2c8776=a245_0x21a2,_0x1232a6=[];let _0xbe5656=0x1;while(!![]){const _0xee1b08=await listSqlQueries(_0x580273,{'currentPage':_0xbe5656,'pageSize':PAGE_SIZE}),_0x319521=_0xee1b08['tableData']??[];_0x1232a6['push'](..._0x319521['map'](_0xcf780a=>_0xcf780a['sqlCode']));if(_0x319521[_0x2c8776(0xb2)]===0x0)break;const _0x306880=_0xee1b08[_0x2c8776(0xb8)]?.[_0x2c8776(0xab)];if(_0x306880!=null?_0x1232a6[_0x2c8776(0xb2)]>=_0x306880:_0x319521[_0x2c8776(0xb2)]<PAGE_SIZE)break;_0xbe5656++;}return _0x1232a6;}export const sqlStatus={'service':a245_0x3baffb(0xb3),'command':'status','description':a245_0x3baffb(0xa7),'risk':a245_0x3baffb(0xac),'flags':[{'name':'remote','type':a245_0x3baffb(0xaf),'description':a245_0x3baffb(0xb4)}],async 'execute'(_0x112855){const _0x3c8759=a245_0x3baffb,_0x4c051f=loadSqlProjectConfig(_0x112855['appCode']),_0x2e2c3d=await readSqlLockFile(_0x4c051f[_0x3c8759(0xc2)]),{appLock:_0xc2a9d4}=ensureSqlLockScope(_0x2e2c3d??createEmptySqlLock(),_0x4c051f[_0x3c8759(0xbf)],_0x4c051f['sqlRoot'],_0x3c8759(0xb5)),_0x1b50b3=await scanLocalSqlQueries(_0x4c051f),_0xdabfc3=[],_0x27b1c1=[],_0x302d3f=[],_0x250a8c=[],_0x370436=new Set(_0x1b50b3['map'](_0x443421=>_0x443421[_0x3c8759(0xb0)]));for(const _0x51d788 of _0x1b50b3){const _0x19ca14=await computeSqlFileHash(_0x51d788['filePath']),_0x35bf0e=_0xc2a9d4['sqls'][_0x51d788[_0x3c8759(0xb0)]],_0x303369=!!_0x35bf0e&&_0x35bf0e[_0x3c8759(0xbb)]!==_0x51d788['relativePath'],_0x59fe07=!!_0x35bf0e&&!!_0x51d788['sqlName']&&_0x35bf0e[_0x3c8759(0xbc)]!==_0x51d788[_0x3c8759(0xbc)];if(!_0x35bf0e)_0xdabfc3['push'](_0x51d788[_0x3c8759(0xb0)]);else _0x35bf0e[_0x3c8759(0xc5)]!==_0x19ca14||_0x303369||_0x59fe07?_0x27b1c1[_0x3c8759(0xae)](_0x51d788[_0x3c8759(0xb0)]):_0x302d3f[_0x3c8759(0xae)](_0x51d788[_0x3c8759(0xb0)]);}for(const _0x47aa42 of Object[_0x3c8759(0xaa)](_0xc2a9d4[_0x3c8759(0xad)])){!_0x370436[_0x3c8759(0xc4)](_0x47aa42)&&_0x250a8c[_0x3c8759(0xae)](_0x47aa42);}const _0x527367=[];if(_0x112855['bool']('remote')){const _0x100d74=await fetchAllSqlCodes(_0x112855[_0x3c8759(0xbf)]);for(const _0x10851d of _0x100d74){!_0x370436['has'](_0x10851d)&&!_0xc2a9d4['sqls'][_0x10851d]&&_0x527367[_0x3c8759(0xae)](_0x10851d);}}const _0x4a5963=_0xdabfc3[_0x3c8759(0xb2)]===0x0&&_0x27b1c1['length']===0x0&&_0x250a8c[_0x3c8759(0xb2)]===0x0&&_0x527367['length']===0x0;return{'ok':!![],'data':{'added':_0xdabfc3,'modified':_0x27b1c1,'missing':_0x250a8c,'unchanged':_0x302d3f,'remoteOnly':_0x527367},'message':_0x4a5963?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0xdabfc3[_0x3c8759(0xb2)]+_0x3c8759(0xbd)+_0x27b1c1[_0x3c8759(0xb2)]+_0x3c8759(0xc1)+_0x250a8c[_0x3c8759(0xb2)]+_0x3c8759(0xb7)+_0x302d3f[_0x3c8759(0xb2)]+'\x20unchanged'+(_0x527367[_0x3c8759(0xb2)]>0x0?',\x20'+_0x527367['length']+_0x3c8759(0xb9):'')};}};
@@ -1 +1 @@
1
- const a246_0x4b97fd=a246_0x3263;(function(_0x1919a6,_0x32577e){const _0xae9515=a246_0x3263,_0x263d7a=_0x1919a6();while(!![]){try{const _0x5b5adb=parseInt(_0xae9515(0x15d))/0x1*(parseInt(_0xae9515(0x16c))/0x2)+-parseInt(_0xae9515(0x168))/0x3*(parseInt(_0xae9515(0x15e))/0x4)+-parseInt(_0xae9515(0x17d))/0x5+-parseInt(_0xae9515(0x189))/0x6+parseInt(_0xae9515(0x191))/0x7*(parseInt(_0xae9515(0x173))/0x8)+-parseInt(_0xae9515(0x16d))/0x9+parseInt(_0xae9515(0x17c))/0xa;if(_0x5b5adb===_0x32577e)break;else _0x263d7a['push'](_0x263d7a['shift']());}catch(_0x480e2f){_0x263d7a['push'](_0x263d7a['shift']());}}}(a246_0x2973,0x38dbb));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a246_0x2973(){const _0x27873c=['trim','tableName','str','index_columns','16eaMASv','push','string','isSelectOnly','pkField','appCode','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','validate','Table\x20\x22','6152710hDedMa','1375615qDVxEP','\x22\x20not\x20found\x20in\x20any\x20dataset','map','toLowerCase','primary','sqlType','size','sql','message','get','check-indexes','validation','1388586GkJuCf','from','fields','find','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','flatMap','file','flagMissing','1119335uAWbRk','read','Provide\x20--file\x20or\x20--sql','columns','type','boolean','length','split','utf-8','reason','valid','dbtableConfig','unshift','1SVwinb','16UWuFya','isArray','indexName','\x22\x20not\x20found\x20or\x20not\x20accessible','index_type','cwd','columnNames','Dataset\x20\x22','dataset','bool','161052ETumrk','name','filter','SQL\x20schema\x20validation','788192XpmXCK','3374964srkCUW','schemas'];a246_0x2973=function(){return _0x27873c;};return a246_0x2973();}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a246_0x3263(_0x132bdc,_0x2c6971){_0x132bdc=_0x132bdc-0x151;const _0x2973f3=a246_0x2973();let _0x3263f4=_0x2973f3[_0x132bdc];return _0x3263f4;}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':'sql','command':a246_0x4b97fd(0x17a),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a246_0x4b97fd(0x151),'flags':[{'name':a246_0x4b97fd(0x18f),'type':a246_0x4b97fd(0x175),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':'sql','type':a246_0x4b97fd(0x175),'description':a246_0x4b97fd(0x18d)},{'name':'schemas','type':a246_0x4b97fd(0x175),'description':a246_0x4b97fd(0x179)},{'name':a246_0x4b97fd(0x187),'type':a246_0x4b97fd(0x155),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x37f69c){const _0x423172=a246_0x4b97fd,_0x29cfd1=_0x37f69c[_0x423172(0x171)](_0x423172(0x18f)),_0x5caaad=_0x37f69c[_0x423172(0x171)](_0x423172(0x184)),_0x19ffac=_0x37f69c[_0x423172(0x171)](_0x423172(0x16e)),_0x5f0c4a=_0x37f69c[_0x423172(0x167)](_0x423172(0x187));if(!_0x29cfd1&&!_0x5caaad)throw CliErrors[_0x423172(0x190)](_0x423172(0x18f),_0x423172(0x152));if(_0x5f0c4a&&!_0x19ffac)throw CliErrors['validation']('--check-indexes\x20requires\x20--schemas.');let _0x439f30;if(_0x29cfd1){const _0x2f7491=resolve(process[_0x423172(0x163)](),_0x29cfd1);if(!existsSync(_0x2f7491))throw CliErrors[_0x423172(0x188)]('File\x20not\x20found:\x20'+_0x2f7491);_0x439f30=readFileSync(_0x2f7491,_0x423172(0x158));}else _0x439f30=_0x5caaad;const _0x427fd4=validateSql(_0x439f30),_0x2ba8a={'valid':_0x427fd4[_0x423172(0x15a)],'sqlType':_0x427fd4[_0x423172(0x182)][_0x423172(0x154)],'isSelectOnly':_0x427fd4[_0x423172(0x182)][_0x423172(0x176)],'isLockingRead':_0x427fd4[_0x423172(0x182)]['isLockingRead']??![],'isDangerous':_0x427fd4['sqlType']['isDangerous'],'tables':_0x427fd4['tables'],'parameters':_0x427fd4['parameters'],'message':_0x427fd4[_0x423172(0x185)]};_0x427fd4['sqlType']['reason']&&(_0x2ba8a[_0x423172(0x159)]=_0x427fd4['sqlType']['reason']);if(_0x19ffac&&_0x427fd4[_0x423172(0x15a)]){const _0x182926=_0x19ffac[_0x423172(0x157)](',')[_0x423172(0x17f)](_0x3b8a84=>_0x3b8a84[_0x423172(0x16f)]())[_0x423172(0x16a)](Boolean),_0x44d69f=[],_0x177a09=[],_0x442f24=filterDbTableBackedDatasets(await listDatasets(_0x37f69c[_0x423172(0x178)])),_0x3950f2=new Map(_0x442f24[_0x423172(0x17f)](_0xe73d57=>[_0xe73d57[_0x423172(0x15b)]?.[_0x423172(0x170)]?.[_0x423172(0x180)](),_0xe73d57]));for(const _0x58b5ef of _0x427fd4['tables']){const _0x597a4b=_0x3950f2[_0x423172(0x186)](_0x58b5ef['toLowerCase']());!_0x597a4b&&_0x44d69f['push'](_0x423172(0x17b)+_0x58b5ef+_0x423172(0x17e));}for(const _0xba3c63 of _0x182926){let _0x17cc39;try{_0x17cc39=await getDatasetDetail(_0xba3c63);}catch{_0x44d69f[_0x423172(0x174)](_0x423172(0x165)+_0xba3c63+_0x423172(0x161));continue;}assertDatasetIsDbTableBacked(_0x17cc39,_0x423172(0x16b));const _0x53a4b9=Array[_0x423172(0x15f)](_0x17cc39['fields'])?_0x17cc39[_0x423172(0x18b)]:[],_0x41d06f=new Set(_0x53a4b9['map'](_0x13fa31=>_0x13fa31[_0x423172(0x169)]?.[_0x423172(0x180)]())),_0x59316d=_0x17cc39[_0x423172(0x15b)]?.[_0x423172(0x170)]||_0x17cc39[_0x423172(0x170)]||_0xba3c63;_0x2ba8a['schema:'+_0x59316d]={'code':_0xba3c63,'tableName':_0x59316d,'fieldCount':_0x41d06f[_0x423172(0x183)],'fields':Array[_0x423172(0x18a)](_0x41d06f)};if(_0x5f0c4a){const _0x28a019=normalizeDatasetIndexes(_0x17cc39);_0x177a09[_0x423172(0x174)]({'tableName':_0x59316d,..._0x28a019});}}_0x44d69f[_0x423172(0x156)]>0x0&&(_0x2ba8a['schemaWarnings']=_0x44d69f),_0x5f0c4a&&(_0x2ba8a['joinAudit']=auditSqlJoinIndexes(_0x439f30,_0x177a09));}return{'ok':_0x427fd4[_0x423172(0x15a)],'data':_0x2ba8a,'message':_0x427fd4['message']};}};function normalizeDatasetIndexes(_0x58ebc0){const _0x210f04=a246_0x4b97fd,_0x3f60e=Array[_0x210f04(0x15f)](_0x58ebc0?.[_0x210f04(0x166)]?.['indexes'])?_0x58ebc0[_0x210f04(0x166)]['indexes']:Array[_0x210f04(0x15f)](_0x58ebc0?.['indexes'])?_0x58ebc0['indexes']:[],_0x3bcddd=_0x3f60e[_0x210f04(0x18e)](_0x5889c6=>{const _0x436e86=_0x210f04,_0x5761dc=Array['isArray'](_0x5889c6?.[_0x436e86(0x172)])?_0x5889c6[_0x436e86(0x172)]:Array[_0x436e86(0x15f)](_0x5889c6?.[_0x436e86(0x164)])?_0x5889c6[_0x436e86(0x164)]:Array[_0x436e86(0x15f)](_0x5889c6?.[_0x436e86(0x153)])?_0x5889c6[_0x436e86(0x153)]:[],_0x307612=_0x5761dc[_0x436e86(0x16a)](_0x41a1fc=>typeof _0x41a1fc===_0x436e86(0x175))['map'](_0x13d837=>_0x13d837[_0x436e86(0x16f)]())['filter'](Boolean);if(_0x307612[_0x436e86(0x156)]===0x0)return[];const _0x327bb6=[_0x5889c6?.[_0x436e86(0x160)],_0x5889c6?.['index_name'],_0x5889c6?.[_0x436e86(0x169)]][_0x436e86(0x18c)](_0x577fb9=>typeof _0x577fb9===_0x436e86(0x175)&&_0x577fb9[_0x436e86(0x16f)]()),_0x3921f4=[_0x5889c6?.[_0x436e86(0x162)],_0x5889c6?.['type']][_0x436e86(0x18c)](_0xcd6c72=>typeof _0xcd6c72===_0x436e86(0x175)&&_0xcd6c72[_0x436e86(0x16f)]());return[{..._0x327bb6?{'name':_0x327bb6['trim']()}:{},..._0x3921f4?{'type':_0x3921f4['trim']()}:{},'columns':_0x307612}];}),_0x453333=[..._0x3bcddd],_0x220db4=typeof _0x58ebc0?.['dbtableConfig']?.[_0x210f04(0x177)]===_0x210f04(0x175)?_0x58ebc0['dbtableConfig'][_0x210f04(0x177)][_0x210f04(0x157)](',')[_0x210f04(0x17f)](_0x357fa8=>_0x357fa8[_0x210f04(0x16f)]())[_0x210f04(0x16a)](Boolean):[];return _0x220db4[_0x210f04(0x156)]>0x0&&_0x453333[_0x210f04(0x15c)]({'type':_0x210f04(0x181),'columns':_0x220db4}),{'indexes':_0x453333,'metadataAvailable':_0x3bcddd[_0x210f04(0x156)]>0x0};}
1
+ const a246_0x28992b=a246_0x8aae;(function(_0xf629f7,_0xd0db44){const _0x14e170=a246_0x8aae,_0x14098e=_0xf629f7();while(!![]){try{const _0x46f2ae=parseInt(_0x14e170(0x131))/0x1*(-parseInt(_0x14e170(0x111))/0x2)+parseInt(_0x14e170(0x123))/0x3+-parseInt(_0x14e170(0x113))/0x4+-parseInt(_0x14e170(0x132))/0x5+-parseInt(_0x14e170(0x122))/0x6*(-parseInt(_0x14e170(0xed))/0x7)+parseInt(_0x14e170(0x119))/0x8*(-parseInt(_0x14e170(0x112))/0x9)+parseInt(_0x14e170(0x10b))/0xa*(parseInt(_0x14e170(0xee))/0xb);if(_0x46f2ae===_0xd0db44)break;else _0x14098e['push'](_0x14098e['shift']());}catch(_0x25d2e9){_0x14098e['push'](_0x14098e['shift']());}}}(a246_0x2d07,0x44bd5));import{readFileSync,existsSync}from'node:fs';function a246_0x2d07(){const _0x3b1edf=['isLockingRead','flagMissing','split','Table\x20\x22','appCode','columns','fields','filter','Provide\x20--file\x20or\x20--sql','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','push','1eNAqIa','1443300JroeVS','from','8638bAzQuC','539YPICrh','columnNames','indexes','validation','index_type','index_columns','check-indexes','schemaWarnings','dbtableConfig','tableName','sql','file','\x22\x20not\x20found\x20in\x20any\x20dataset','--check-indexes\x20requires\x20--schemas.','message','str','isArray','toLowerCase','sqlType','name','parameters','boolean','\x22\x20not\x20found\x20or\x20not\x20accessible','indexName','index_name','type','unshift','schema:','map','103030qtjhhf','valid','get','tables','joinAudit','File\x20not\x20found:\x20','658034IjjGeI','1618929KKDAxd','209328UMMyJa','validate','string','length','pkField','primary','16UJgNFp','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','reason','read','isDangerous','flatMap','cwd','find','schemas','1950uJuZjp','1216293vJsXvJ','trim','SQL\x20schema\x20validation'];a246_0x2d07=function(){return _0x3b1edf;};return a246_0x2d07();}import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a246_0x8aae(_0x54c575,_0x656483){_0x54c575=_0x54c575-0xed;const _0x2d0714=a246_0x2d07();let _0x8aae61=_0x2d0714[_0x54c575];return _0x8aae61;}export const sqlValidate={'service':a246_0x28992b(0xf8),'command':a246_0x28992b(0x114),'description':'Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','risk':a246_0x28992b(0x11c),'flags':[{'name':a246_0x28992b(0xf9),'type':a246_0x28992b(0x115),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a246_0x28992b(0xf8),'type':a246_0x28992b(0x115),'description':a246_0x28992b(0x11a)},{'name':a246_0x28992b(0x121),'type':a246_0x28992b(0x115),'description':a246_0x28992b(0x12f)},{'name':a246_0x28992b(0xf4),'type':a246_0x28992b(0x103),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x153535){const _0x2805e3=a246_0x28992b,_0x19af2d=_0x153535[_0x2805e3(0xfd)](_0x2805e3(0xf9)),_0x41a076=_0x153535[_0x2805e3(0xfd)]('sql'),_0x2a985c=_0x153535[_0x2805e3(0xfd)](_0x2805e3(0x121)),_0x4a7719=_0x153535['bool']('check-indexes');if(!_0x19af2d&&!_0x41a076)throw CliErrors[_0x2805e3(0x127)](_0x2805e3(0xf9),_0x2805e3(0x12e));if(_0x4a7719&&!_0x2a985c)throw CliErrors[_0x2805e3(0xf1)](_0x2805e3(0xfb));let _0x354fab;if(_0x19af2d){const _0x420e96=resolve(process[_0x2805e3(0x11f)](),_0x19af2d);if(!existsSync(_0x420e96))throw CliErrors['validation'](_0x2805e3(0x110)+_0x420e96);_0x354fab=readFileSync(_0x420e96,'utf-8');}else _0x354fab=_0x41a076;const _0x8c5557=validateSql(_0x354fab),_0x26ad02={'valid':_0x8c5557[_0x2805e3(0x10c)],'sqlType':_0x8c5557[_0x2805e3(0x100)][_0x2805e3(0x107)],'isSelectOnly':_0x8c5557[_0x2805e3(0x100)]['isSelectOnly'],'isLockingRead':_0x8c5557[_0x2805e3(0x100)][_0x2805e3(0x126)]??![],'isDangerous':_0x8c5557[_0x2805e3(0x100)][_0x2805e3(0x11d)],'tables':_0x8c5557[_0x2805e3(0x10e)],'parameters':_0x8c5557[_0x2805e3(0x102)],'message':_0x8c5557[_0x2805e3(0xfc)]};_0x8c5557[_0x2805e3(0x100)]['reason']&&(_0x26ad02[_0x2805e3(0x11b)]=_0x8c5557[_0x2805e3(0x100)][_0x2805e3(0x11b)]);if(_0x2a985c&&_0x8c5557[_0x2805e3(0x10c)]){const _0x1e242c=_0x2a985c[_0x2805e3(0x128)](',')['map'](_0xe94b30=>_0xe94b30['trim']())['filter'](Boolean),_0x2c45de=[],_0x4253fb=[],_0x34dd31=filterDbTableBackedDatasets(await listDatasets(_0x153535[_0x2805e3(0x12a)])),_0x20f2ca=new Map(_0x34dd31['map'](_0x323cfd=>[_0x323cfd['dbtableConfig']?.[_0x2805e3(0xf7)]?.[_0x2805e3(0xff)](),_0x323cfd]));for(const _0x17cf5d of _0x8c5557[_0x2805e3(0x10e)]){const _0x3f5fb2=_0x20f2ca[_0x2805e3(0x10d)](_0x17cf5d[_0x2805e3(0xff)]());!_0x3f5fb2&&_0x2c45de[_0x2805e3(0x130)](_0x2805e3(0x129)+_0x17cf5d+_0x2805e3(0xfa));}for(const _0x5464b2 of _0x1e242c){let _0x18d4ee;try{_0x18d4ee=await getDatasetDetail(_0x5464b2);}catch{_0x2c45de['push']('Dataset\x20\x22'+_0x5464b2+_0x2805e3(0x104));continue;}assertDatasetIsDbTableBacked(_0x18d4ee,_0x2805e3(0x125));const _0x3660a7=Array[_0x2805e3(0xfe)](_0x18d4ee[_0x2805e3(0x12c)])?_0x18d4ee[_0x2805e3(0x12c)]:[],_0x721891=new Set(_0x3660a7[_0x2805e3(0x10a)](_0x472aaf=>_0x472aaf[_0x2805e3(0x101)]?.[_0x2805e3(0xff)]())),_0x4daa0f=_0x18d4ee[_0x2805e3(0xf6)]?.[_0x2805e3(0xf7)]||_0x18d4ee[_0x2805e3(0xf7)]||_0x5464b2;_0x26ad02[_0x2805e3(0x109)+_0x4daa0f]={'code':_0x5464b2,'tableName':_0x4daa0f,'fieldCount':_0x721891['size'],'fields':Array[_0x2805e3(0x133)](_0x721891)};if(_0x4a7719){const _0x622dbe=normalizeDatasetIndexes(_0x18d4ee);_0x4253fb[_0x2805e3(0x130)]({'tableName':_0x4daa0f,..._0x622dbe});}}_0x2c45de['length']>0x0&&(_0x26ad02[_0x2805e3(0xf5)]=_0x2c45de),_0x4a7719&&(_0x26ad02[_0x2805e3(0x10f)]=auditSqlJoinIndexes(_0x354fab,_0x4253fb));}return{'ok':_0x8c5557[_0x2805e3(0x10c)],'data':_0x26ad02,'message':_0x8c5557['message']};}};function normalizeDatasetIndexes(_0x16ea66){const _0x287ef4=a246_0x28992b,_0x17d0ec=Array[_0x287ef4(0xfe)](_0x16ea66?.['dataset']?.['indexes'])?_0x16ea66['dataset']['indexes']:Array['isArray'](_0x16ea66?.[_0x287ef4(0xf0)])?_0x16ea66[_0x287ef4(0xf0)]:[],_0x3b1071=_0x17d0ec[_0x287ef4(0x11e)](_0x1b6478=>{const _0x3eee64=_0x287ef4,_0x31c7e8=Array['isArray'](_0x1b6478?.[_0x3eee64(0xf3)])?_0x1b6478[_0x3eee64(0xf3)]:Array[_0x3eee64(0xfe)](_0x1b6478?.[_0x3eee64(0xef)])?_0x1b6478[_0x3eee64(0xef)]:Array[_0x3eee64(0xfe)](_0x1b6478?.[_0x3eee64(0x12b)])?_0x1b6478[_0x3eee64(0x12b)]:[],_0x79abfe=_0x31c7e8[_0x3eee64(0x12d)](_0x26dd78=>typeof _0x26dd78===_0x3eee64(0x115))[_0x3eee64(0x10a)](_0x20dd2f=>_0x20dd2f[_0x3eee64(0x124)]())[_0x3eee64(0x12d)](Boolean);if(_0x79abfe[_0x3eee64(0x116)]===0x0)return[];const _0x5b1f3c=[_0x1b6478?.[_0x3eee64(0x105)],_0x1b6478?.[_0x3eee64(0x106)],_0x1b6478?.[_0x3eee64(0x101)]][_0x3eee64(0x120)](_0x336dc0=>typeof _0x336dc0===_0x3eee64(0x115)&&_0x336dc0[_0x3eee64(0x124)]()),_0x50535b=[_0x1b6478?.[_0x3eee64(0xf2)],_0x1b6478?.[_0x3eee64(0x107)]]['find'](_0x25a3bd=>typeof _0x25a3bd===_0x3eee64(0x115)&&_0x25a3bd[_0x3eee64(0x124)]());return[{..._0x5b1f3c?{'name':_0x5b1f3c['trim']()}:{},..._0x50535b?{'type':_0x50535b['trim']()}:{},'columns':_0x79abfe}];}),_0x5d3aa7=[..._0x3b1071],_0x476b61=typeof _0x16ea66?.[_0x287ef4(0xf6)]?.[_0x287ef4(0x117)]===_0x287ef4(0x115)?_0x16ea66[_0x287ef4(0xf6)][_0x287ef4(0x117)][_0x287ef4(0x128)](',')[_0x287ef4(0x10a)](_0x132c16=>_0x132c16[_0x287ef4(0x124)]())[_0x287ef4(0x12d)](Boolean):[];return _0x476b61['length']>0x0&&_0x5d3aa7[_0x287ef4(0x108)]({'type':_0x287ef4(0x118),'columns':_0x476b61}),{'indexes':_0x5d3aa7,'metadataAvailable':_0x3b1071[_0x287ef4(0x116)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x14bd3c,_0x410840){const _0x12063f=a247_0x375d,_0x597c7f=_0x14bd3c();while(!![]){try{const _0x3869a8=-parseInt(_0x12063f(0x165))/0x1+-parseInt(_0x12063f(0x164))/0x2*(-parseInt(_0x12063f(0x167))/0x3)+parseInt(_0x12063f(0x16e))/0x4*(-parseInt(_0x12063f(0x166))/0x5)+-parseInt(_0x12063f(0x169))/0x6*(-parseInt(_0x12063f(0x16d))/0x7)+-parseInt(_0x12063f(0x16c))/0x8*(parseInt(_0x12063f(0x16a))/0x9)+-parseInt(_0x12063f(0x168))/0xa+parseInt(_0x12063f(0x16b))/0xb;if(_0x3869a8===_0x410840)break;else _0x597c7f['push'](_0x597c7f['shift']());}catch(_0xb76b0a){_0x597c7f['push'](_0x597c7f['shift']());}}}(a247_0x4aaa,0x59c7d));function a247_0x375d(_0x4e5bb1,_0x329aeb){_0x4e5bb1=_0x4e5bb1-0x164;const _0x4aaaf1=a247_0x4aaa();let _0x375d0d=_0x4aaaf1[_0x4e5bb1];return _0x375d0d;}function a247_0x4aaa(){const _0x21ad59=['170EITwsi','332274qADWGH','10dvpoZw','6933DVBznu','960170tUNPWW','30apfMyE','53055CrbzGP','756074wiemvO','80xQWRUz','899241rZxhvP','105004RtKhFd'];a247_0x4aaa=function(){return _0x21ad59;};return a247_0x4aaa();}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ (function(_0x1c9845,_0x5164f9){const _0x35f405=a247_0x54fe,_0x2b21a3=_0x1c9845();while(!![]){try{const _0x547f1f=-parseInt(_0x35f405(0x139))/0x1*(parseInt(_0x35f405(0x13f))/0x2)+-parseInt(_0x35f405(0x13a))/0x3+parseInt(_0x35f405(0x13c))/0x4*(-parseInt(_0x35f405(0x137))/0x5)+-parseInt(_0x35f405(0x134))/0x6+parseInt(_0x35f405(0x135))/0x7*(parseInt(_0x35f405(0x13b))/0x8)+-parseInt(_0x35f405(0x138))/0x9*(parseInt(_0x35f405(0x136))/0xa)+parseInt(_0x35f405(0x13d))/0xb*(parseInt(_0x35f405(0x13e))/0xc);if(_0x547f1f===_0x5164f9)break;else _0x2b21a3['push'](_0x2b21a3['shift']());}catch(_0xbaf51f){_0x2b21a3['push'](_0x2b21a3['shift']());}}}(a247_0x9857,0x9f496));import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];function a247_0x54fe(_0x7370a0,_0xb1785){_0x7370a0=_0x7370a0-0x134;const _0x985791=a247_0x9857();let _0x54fef6=_0x985791[_0x7370a0];return _0x54fef6;}function a247_0x9857(){const _0x8feea2=['4EWlbYt','2721975aeqizH','112UpPEId','256KTgdrp','11MryLpv','41277660ABBiOa','338482MJMcWH','988188ZUbrGo','236663pDxoyD','118470WPIQqO','38505pFbsWv','774OxcnpP'];a247_0x9857=function(){return _0x8feea2;};return a247_0x9857();}
@@ -1 +1 @@
1
- const a248_0x86364c=a248_0x2d2b;(function(_0x3d3c0f,_0x3b5bb7){const _0x79d81c=a248_0x2d2b,_0xc3bc6e=_0x3d3c0f();while(!![]){try{const _0x2e1da1=parseInt(_0x79d81c(0x17a))/0x1+parseInt(_0x79d81c(0x181))/0x2+parseInt(_0x79d81c(0x18d))/0x3+-parseInt(_0x79d81c(0x17b))/0x4+-parseInt(_0x79d81c(0x18f))/0x5+-parseInt(_0x79d81c(0x186))/0x6+-parseInt(_0x79d81c(0x183))/0x7*(parseInt(_0x79d81c(0x18b))/0x8);if(_0x2e1da1===_0x3b5bb7)break;else _0xc3bc6e['push'](_0xc3bc6e['shift']());}catch(_0x401aef){_0xc3bc6e['push'](_0xc3bc6e['shift']());}}}(a248_0xc58d,0xcf893));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a248_0xc58d(){const _0x45ffb4=['task-id','30660ygvSri','696745CmECge','2488484gxeuGl','status','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','taskId','isTerminal','trim','1449912OvJskN','cookie','95361fSoxeu','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','appCode','8228310USuuWS','read','task',',\x20received\x20','flagMissing','144CbqVPG','str','5019654fIXDnh'];a248_0xc58d=function(){return _0x45ffb4;};return a248_0xc58d();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a248_0x2d2b(_0x3486b9,_0x48951b){_0x3486b9=_0x3486b9-0x17a;const _0xc58dd9=a248_0xc58d();let _0x2d2bd0=_0xc58dd9[_0x3486b9];return _0x2d2bd0;}export const taskStatus={'service':a248_0x86364c(0x188),'command':a248_0x86364c(0x17c),'description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':a248_0x86364c(0x187),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a248_0x86364c(0x18e),'type':'string','required':!![],'description':a248_0x86364c(0x17d)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4376cc){const _0x6accee=a248_0x86364c;if(!_0x4376cc[_0x6accee(0x18c)](_0x6accee(0x18e))[_0x6accee(0x180)]())throw CliErrors[_0x6accee(0x18a)](_0x6accee(0x18e));},async 'execute'(_0x939ae3){const _0x4772bc=a248_0x86364c,_0xd7693e=_0x939ae3['str'](_0x4772bc(0x18e))[_0x4772bc(0x180)](),_0x1a8689=normalizeAsyncTask(await getAsyncTaskStatus(_0xd7693e,_0x939ae3[_0x4772bc(0x185)],_0x939ae3[_0x4772bc(0x182)]));if(_0x1a8689['taskId']!==_0xd7693e)throw CliErrors['apiError'](_0x4772bc(0x184)+_0xd7693e+_0x4772bc(0x189)+_0x1a8689[_0x4772bc(0x17e)]+'.');const _0xf12f0c=buildAsyncTaskStatusCommand(_0x1a8689[_0x4772bc(0x17e)],_0x939ae3['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x1a8689),'data':{'appCode':_0x939ae3['appCode'],..._0x1a8689,'query':_0x1a8689[_0x4772bc(0x17f)]?null:{'command':_0xf12f0c}}};}};
1
+ const a248_0x41a142=a248_0x2f22;(function(_0x3f0c3f,_0x7edc0e){const _0x2b4540=a248_0x2f22,_0x5d1e9e=_0x3f0c3f();while(!![]){try{const _0x3ad32a=-parseInt(_0x2b4540(0x85))/0x1*(parseInt(_0x2b4540(0x8b))/0x2)+parseInt(_0x2b4540(0x77))/0x3+parseInt(_0x2b4540(0x83))/0x4+parseInt(_0x2b4540(0x7d))/0x5*(parseInt(_0x2b4540(0x82))/0x6)+-parseInt(_0x2b4540(0x84))/0x7*(parseInt(_0x2b4540(0x89))/0x8)+parseInt(_0x2b4540(0x81))/0x9+-parseInt(_0x2b4540(0x7c))/0xa*(-parseInt(_0x2b4540(0x7f))/0xb);if(_0x3ad32a===_0x7edc0e)break;else _0x5d1e9e['push'](_0x5d1e9e['shift']());}catch(_0x387d66){_0x5d1e9e['push'](_0x5d1e9e['shift']());}}}(a248_0x4713,0x9cd46));function a248_0x2f22(_0xd5734f,_0x42c017){_0xd5734f=_0xd5734f-0x76;const _0x4713a7=a248_0x4713();let _0x2f22c5=_0x4713a7[_0xd5734f];return _0x2f22c5;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a248_0x4713(){const _0x48135a=['11815639dZOuMi','flagMissing','7235271XJbDSG','24qSrvDf','2931904XYPmSk','2746681yWYBOj','379PoYOvb','trim','task-id','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','24jMOyNk','taskId','6406jrMInl','apiError','271404qyKxFl','status','read','str','appCode','10dKGTsq','414935UnccQw','isTerminal'];a248_0x4713=function(){return _0x48135a;};return a248_0x4713();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':'task','command':a248_0x41a142(0x78),'description':a248_0x41a142(0x88),'risk':a248_0x41a142(0x79),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[{'name':a248_0x41a142(0x87),'type':'string','required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2bffcd){const _0x2859f1=a248_0x41a142;if(!_0x2bffcd[_0x2859f1(0x7a)]('task-id')['trim']())throw CliErrors[_0x2859f1(0x80)]('task-id');},async 'execute'(_0x5f38ec){const _0x4d60be=a248_0x41a142,_0x2e8b8a=_0x5f38ec[_0x4d60be(0x7a)](_0x4d60be(0x87))[_0x4d60be(0x86)](),_0x2ddfde=normalizeAsyncTask(await getAsyncTaskStatus(_0x2e8b8a,_0x5f38ec[_0x4d60be(0x7b)],_0x5f38ec['cookie']));if(_0x2ddfde['taskId']!==_0x2e8b8a)throw CliErrors[_0x4d60be(0x76)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x2e8b8a+',\x20received\x20'+_0x2ddfde['taskId']+'.');const _0x5e3ee4=buildAsyncTaskStatusCommand(_0x2ddfde[_0x4d60be(0x8a)],_0x5f38ec[_0x4d60be(0x7b)]);return{'ok':!![],'message':asyncTaskMessage(_0x2ddfde),'data':{'appCode':_0x5f38ec['appCode'],..._0x2ddfde,'query':_0x2ddfde[_0x4d60be(0x7e)]?null:{'command':_0x5e3ee4}}};}};
@@ -1 +1 @@
1
- function a249_0x1169(_0xbc3530,_0x2dbc54){_0xbc3530=_0xbc3530-0x1a5;const _0x8e47fe=a249_0x8e47();let _0x11692f=_0x8e47fe[_0xbc3530];return _0x11692f;}(function(_0x58985e,_0x32eeea){const _0x1c1020=a249_0x1169,_0x1a9fd8=_0x58985e();while(!![]){try{const _0x2afd15=-parseInt(_0x1c1020(0x1a5))/0x1*(-parseInt(_0x1c1020(0x1aa))/0x2)+parseInt(_0x1c1020(0x1ab))/0x3+-parseInt(_0x1c1020(0x1a9))/0x4+parseInt(_0x1c1020(0x1ad))/0x5+-parseInt(_0x1c1020(0x1ae))/0x6+parseInt(_0x1c1020(0x1a6))/0x7*(parseInt(_0x1c1020(0x1a7))/0x8)+parseInt(_0x1c1020(0x1ac))/0x9*(-parseInt(_0x1c1020(0x1a8))/0xa);if(_0x2afd15===_0x32eeea)break;else _0x1a9fd8['push'](_0x1a9fd8['shift']());}catch(_0x3b0851){_0x1a9fd8['push'](_0x1a9fd8['shift']());}}}(a249_0x8e47,0x4ba64));function a249_0x8e47(){const _0x13743e=['1510485dlGgOh','97266Aetjah','83460FqzRYZ','494018PMwcXm','24Nipdhm','3670BOkrfh','2160012MhFbVB','8ylrlgH','647583nepiNm','4842aVgXlU'];a249_0x8e47=function(){return _0x13743e;};return a249_0x8e47();}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];
1
+ (function(_0x2fa1e9,_0x538832){const _0x229c76=a249_0x581b,_0x263a6=_0x2fa1e9();while(!![]){try{const _0x550a9a=-parseInt(_0x229c76(0x76))/0x1+parseInt(_0x229c76(0x7d))/0x2+-parseInt(_0x229c76(0x7a))/0x3+parseInt(_0x229c76(0x75))/0x4+-parseInt(_0x229c76(0x78))/0x5*(parseInt(_0x229c76(0x7b))/0x6)+-parseInt(_0x229c76(0x77))/0x7*(-parseInt(_0x229c76(0x79))/0x8)+parseInt(_0x229c76(0x7c))/0x9*(parseInt(_0x229c76(0x7e))/0xa);if(_0x550a9a===_0x538832)break;else _0x263a6['push'](_0x263a6['shift']());}catch(_0x59c8b9){_0x263a6['push'](_0x263a6['shift']());}}}(a249_0x1cee,0xd0887));function a249_0x581b(_0x4977f2,_0x473610){_0x4977f2=_0x4977f2-0x75;const _0x1cee58=a249_0x1cee();let _0x581bfb=_0x1cee58[_0x4977f2];return _0x581bfb;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];function a249_0x1cee(){const _0x4ca2cb=['626885oEYNMQ','1071415MEHOJo','64UmEDKE','1650510aQfIgJ','18AvZwRM','8016444PMlQxR','853684NQKsdl','10VMbLkj','1231748HCajMU','294765MkPcAR'];a249_0x1cee=function(){return _0x4ca2cb;};return a249_0x1cee();}
@@ -1 +1 @@
1
- const a250_0x1a40d2=a250_0x5abb;(function(_0x1b32f0,_0x36c050){const _0x260f8a=a250_0x5abb,_0x48e537=_0x1b32f0();while(!![]){try{const _0x588170=-parseInt(_0x260f8a(0x109))/0x1*(parseInt(_0x260f8a(0x10b))/0x2)+-parseInt(_0x260f8a(0x10c))/0x3*(-parseInt(_0x260f8a(0x107))/0x4)+parseInt(_0x260f8a(0x102))/0x5+-parseInt(_0x260f8a(0x10d))/0x6+parseInt(_0x260f8a(0x10e))/0x7+-parseInt(_0x260f8a(0x101))/0x8+parseInt(_0x260f8a(0x103))/0x9;if(_0x588170===_0x36c050)break;else _0x48e537['push'](_0x48e537['shift']());}catch(_0x264fe8){_0x48e537['push'](_0x48e537['shift']());}}}(a250_0x5f29,0xcef22));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a250_0x5abb(_0x2cfdde,_0x14d112){_0x2cfdde=_0x2cfdde-0xff;const _0x5f29cc=a250_0x5f29();let _0x5abbdd=_0x5f29cc[_0x2cfdde];return _0x5abbdd;}export const tenantMembersListDefinition={'service':'tenant','command':'members-list','description':a250_0x1a40d2(0x106),'risk':a250_0x1a40d2(0x100),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a250_0x1a40d2(0x110),'type':'string','required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x3abee6){const _0x5ebc5a=a250_0x1a40d2;if(!_0x3abee6[_0x5ebc5a(0x105)](_0x5ebc5a(0x110))[_0x5ebc5a(0x10f)]())throw CliErrors['flagMissing'](_0x5ebc5a(0x110),_0x5ebc5a(0x10a));},async 'execute'(_0x240215){const _0x1a89de=a250_0x1a40d2,_0x3327ad=_0x240215['str'](_0x1a89de(0x110))['trim'](),_0x2f6cbe=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x3327ad,_0x2f6cbe);const _0x1d0855=projectTenantMembers(await listTenantDirectoryMembers(_0x3327ad));return{'ok':!![],'data':{'tenantCode':_0x3327ad,'items':_0x1d0855,'totalCount':_0x1d0855[_0x1a89de(0xff)]},'message':_0x1a89de(0x108)+_0x1d0855['length']+_0x1a89de(0x104)};}};function a250_0x5f29(){const _0x4d10c5=['590250JfSpBJ','33937767EZNuFR','\x20tenant\x20member(s)','str','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','28772mdwQtU','Found\x20','5oHwitu','Pass\x20--tenant-code\x20<code>.','231964wqFkaH','114TOOhVU','8102148cBpGeJ','255542jsssNu','trim','tenant-code','length','read','11366680PRyZtR'];a250_0x5f29=function(){return _0x4d10c5;};return a250_0x5f29();}
1
+ const a250_0x12020b=a250_0x2622;(function(_0xd088e3,_0x45931c){const _0x499c41=a250_0x2622,_0x1bf304=_0xd088e3();while(!![]){try{const _0x2f5d69=parseInt(_0x499c41(0x132))/0x1*(parseInt(_0x499c41(0x135))/0x2)+-parseInt(_0x499c41(0x138))/0x3+-parseInt(_0x499c41(0x12c))/0x4*(-parseInt(_0x499c41(0x129))/0x5)+-parseInt(_0x499c41(0x13b))/0x6*(-parseInt(_0x499c41(0x134))/0x7)+parseInt(_0x499c41(0x131))/0x8+-parseInt(_0x499c41(0x128))/0x9+parseInt(_0x499c41(0x133))/0xa*(parseInt(_0x499c41(0x137))/0xb);if(_0x2f5d69===_0x45931c)break;else _0x1bf304['push'](_0x1bf304['shift']());}catch(_0xd3e4e0){_0x1bf304['push'](_0x1bf304['shift']());}}}(a250_0x23e1,0xac7d9));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a250_0x2622(_0x563ad5,_0x5ed712){_0x563ad5=_0x563ad5-0x128;const _0x23e1af=a250_0x23e1();let _0x26222a=_0x23e1af[_0x563ad5];return _0x26222a;}import{CliErrors}from'../../errors.js';function a250_0x23e1(){const _0x30e39d=['length','read','Found\x20','members-list','3574584cNkgta','8453BIjYEa','14340HKZrIq','406reJekQ','34UFeahd','Pass\x20--tenant-code\x20<code>.','1375asuGRN','3878247vdQUec','tenant-code','\x20tenant\x20member(s)','80742RrPPbo','tenant','flagMissing','6420483KuPaXD','5811885fDOEYk','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','str','4VHqhKL'];a250_0x23e1=function(){return _0x30e39d;};return a250_0x23e1();}import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a250_0x12020b(0x13c),'command':a250_0x12020b(0x130),'description':a250_0x12020b(0x12a),'risk':a250_0x12020b(0x12e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'tenant-code','type':'string','required':!![],'description':'Exact\x20tenant\x20code'}],async 'validate'(_0x40ba05){const _0x4fc6b7=a250_0x12020b;if(!_0x40ba05[_0x4fc6b7(0x12b)](_0x4fc6b7(0x139))['trim']())throw CliErrors[_0x4fc6b7(0x13d)](_0x4fc6b7(0x139),_0x4fc6b7(0x136));},async 'execute'(_0x3f3160){const _0x36e7ec=a250_0x12020b,_0x18e818=_0x3f3160[_0x36e7ec(0x12b)](_0x36e7ec(0x139))['trim'](),_0x1d7a89=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x18e818,_0x1d7a89);const _0x4d5915=projectTenantMembers(await listTenantDirectoryMembers(_0x18e818));return{'ok':!![],'data':{'tenantCode':_0x18e818,'items':_0x4d5915,'totalCount':_0x4d5915[_0x36e7ec(0x12d)]},'message':_0x36e7ec(0x12f)+_0x4d5915['length']+_0x36e7ec(0x13a)};}};
@@ -1 +1 @@
1
- (function(_0x5590f5,_0x5e4c28){const _0x40c594=a251_0x42ae,_0x5d3fea=_0x5590f5();while(!![]){try{const _0x144f36=-parseInt(_0x40c594(0x165))/0x1*(-parseInt(_0x40c594(0x168))/0x2)+-parseInt(_0x40c594(0x171))/0x3+-parseInt(_0x40c594(0x178))/0x4+-parseInt(_0x40c594(0x163))/0x5+parseInt(_0x40c594(0x172))/0x6+parseInt(_0x40c594(0x169))/0x7*(-parseInt(_0x40c594(0x16f))/0x8)+parseInt(_0x40c594(0x175))/0x9;if(_0x144f36===_0x5e4c28)break;else _0x5d3fea['push'](_0x5d3fea['shift']());}catch(_0x5d928e){_0x5d3fea['push'](_0x5d3fea['shift']());}}}(a251_0x3a50,0x473a3));import{CliErrors}from'../../errors.js';function textOrNull(_0x233342){const _0x571c16=a251_0x42ae,_0x10a06c=_0x233342?.[_0x571c16(0x173)]();return _0x10a06c?_0x10a06c:null;}export function projectTenantMembers(_0x1cea4c){const _0x580908=a251_0x42ae,_0x903a0c=new Map();for(const _0x1ace9b of _0x1cea4c){const _0x2e976d=Number(_0x1ace9b[_0x580908(0x176)]);if(!Number[_0x580908(0x166)](_0x2e976d)||_0x2e976d<=0x0)continue;const _0x1c7097={'userId':_0x2e976d,'username':textOrNull(_0x1ace9b[_0x580908(0x17c)]),'displayName':textOrNull(_0x1ace9b[_0x580908(0x17b)]),'role':_0x1ace9b[_0x580908(0x17a)]===!![]?_0x580908(0x179):_0x580908(0x170),'status':textOrNull(_0x1ace9b[_0x580908(0x177)])},_0x5ea3ff=_0x903a0c[_0x580908(0x164)](_0x2e976d);if(!_0x5ea3ff){_0x903a0c[_0x580908(0x167)](_0x2e976d,_0x1c7097);continue;}_0x5ea3ff['username']??=_0x1c7097[_0x580908(0x17c)],_0x5ea3ff[_0x580908(0x16b)]??=_0x1c7097['displayName'],_0x5ea3ff[_0x580908(0x177)]??=_0x1c7097['status'];if(_0x1c7097[_0x580908(0x16c)]===_0x580908(0x179))_0x5ea3ff[_0x580908(0x16c)]=_0x580908(0x179);}return[..._0x903a0c[_0x580908(0x17d)]()][_0x580908(0x174)]((_0x4ec08b,_0x4e7e90)=>_0x4ec08b[_0x580908(0x176)]-_0x4e7e90[_0x580908(0x176)]);}function a251_0x3a50(){const _0x3444bb=['username','values','tenantCode','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','1171600fAkien','get','565XTYWXK','isFinite','set','126JMojGZ','175BaukoA','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','displayName','role','validation','some','21752RWoLBj','MEMBER','158460eqXADl','2751258gVpZGO','trim','sort','4470138HrORNj','userId','status','1375832aUEGkj','ADMIN','adminFlag','nickname'];a251_0x3a50=function(){return _0x3444bb;};return a251_0x3a50();}function a251_0x42ae(_0x3f9b98,_0x2f3fdf){_0x3f9b98=_0x3f9b98-0x163;const _0x3a50ea=a251_0x3a50();let _0x42aeed=_0x3a50ea[_0x3f9b98];return _0x42aeed;}export function assertTenantAccessible(_0x1c19e8,_0x240aca){const _0xb28f60=a251_0x42ae;if(_0x240aca[_0xb28f60(0x16e)](_0x26ebc6=>_0x26ebc6[_0xb28f60(0x17e)]===_0x1c19e8))return;throw CliErrors[_0xb28f60(0x16d)]('Tenant\x20\x22'+_0x1c19e8+_0xb28f60(0x17f),_0xb28f60(0x16a));}
1
+ (function(_0x5c3c1c,_0x5a5796){const _0x21514c=a251_0x1b59,_0x433dee=_0x5c3c1c();while(!![]){try{const _0x4a153d=-parseInt(_0x21514c(0x113))/0x1+parseInt(_0x21514c(0x12a))/0x2*(-parseInt(_0x21514c(0x11e))/0x3)+parseInt(_0x21514c(0x11b))/0x4*(parseInt(_0x21514c(0x11f))/0x5)+-parseInt(_0x21514c(0x112))/0x6+-parseInt(_0x21514c(0x12b))/0x7+parseInt(_0x21514c(0x117))/0x8*(-parseInt(_0x21514c(0x123))/0x9)+parseInt(_0x21514c(0x115))/0xa;if(_0x4a153d===_0x5a5796)break;else _0x433dee['push'](_0x433dee['shift']());}catch(_0x52cfc8){_0x433dee['push'](_0x433dee['shift']());}}}(a251_0x555c,0xc01c9));import{CliErrors}from'../../errors.js';function textOrNull(_0x48e2b1){const _0x313a84=a251_0x1b59,_0x2c422f=_0x48e2b1?.[_0x313a84(0x118)]();return _0x2c422f?_0x2c422f:null;}export function projectTenantMembers(_0x4aa822){const _0x3036e0=a251_0x1b59,_0x382451=new Map();for(const _0x10a184 of _0x4aa822){const _0x9ca5e9=Number(_0x10a184['userId']);if(!Number[_0x3036e0(0x126)](_0x9ca5e9)||_0x9ca5e9<=0x0)continue;const _0x321446={'userId':_0x9ca5e9,'username':textOrNull(_0x10a184[_0x3036e0(0x124)]),'displayName':textOrNull(_0x10a184[_0x3036e0(0x11d)]),'role':_0x10a184[_0x3036e0(0x127)]===!![]?_0x3036e0(0x11a):'MEMBER','status':textOrNull(_0x10a184[_0x3036e0(0x114)])},_0x4b8452=_0x382451[_0x3036e0(0x129)](_0x9ca5e9);if(!_0x4b8452){_0x382451[_0x3036e0(0x125)](_0x9ca5e9,_0x321446);continue;}_0x4b8452[_0x3036e0(0x124)]??=_0x321446[_0x3036e0(0x124)],_0x4b8452['displayName']??=_0x321446[_0x3036e0(0x120)],_0x4b8452[_0x3036e0(0x114)]??=_0x321446[_0x3036e0(0x114)];if(_0x321446[_0x3036e0(0x121)]===_0x3036e0(0x11a))_0x4b8452[_0x3036e0(0x121)]=_0x3036e0(0x11a);}return[..._0x382451[_0x3036e0(0x122)]()]['sort']((_0x4f8609,_0xb21157)=>_0x4f8609[_0x3036e0(0x111)]-_0xb21157[_0x3036e0(0x111)]);}export function assertTenantAccessible(_0x4436ab,_0x4f93fa){const _0x56e0a7=a251_0x1b59;if(_0x4f93fa[_0x56e0a7(0x116)](_0x437665=>_0x437665['tenantCode']===_0x4436ab))return;throw CliErrors['validation'](_0x56e0a7(0x119)+_0x4436ab+_0x56e0a7(0x11c),_0x56e0a7(0x128));}function a251_0x1b59(_0x49bbfc,_0x4ddd63){_0x49bbfc=_0x49bbfc-0x111;const _0x555ca2=a251_0x555c();let _0x1b595e=_0x555ca2[_0x49bbfc];return _0x1b595e;}function a251_0x555c(){const _0x307cf7=['set','isFinite','adminFlag','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','get','74978zjuShp','2852710NKOZFe','userId','2093310VeJgcE','870319uNGNVO','status','32323350CpYWta','some','136IHkDJm','trim','Tenant\x20\x22','ADMIN','233304ktEMlK','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','nickname','24roRrJL','55slZXwz','displayName','role','values','614322qDxXMs','username'];a251_0x555c=function(){return _0x307cf7;};return a251_0x555c();}
@@ -1 +1 @@
1
- const a252_0x1bfa91=a252_0x2dac;(function(_0x44336d,_0x3ec734){const _0x3ddce2=a252_0x2dac,_0x48abf0=_0x44336d();while(!![]){try{const _0x564bab=-parseInt(_0x3ddce2(0x153))/0x1+-parseInt(_0x3ddce2(0x152))/0x2*(parseInt(_0x3ddce2(0x162))/0x3)+parseInt(_0x3ddce2(0x150))/0x4*(parseInt(_0x3ddce2(0x168))/0x5)+parseInt(_0x3ddce2(0x156))/0x6*(-parseInt(_0x3ddce2(0x16b))/0x7)+-parseInt(_0x3ddce2(0x154))/0x8+-parseInt(_0x3ddce2(0x164))/0x9*(-parseInt(_0x3ddce2(0x159))/0xa)+parseInt(_0x3ddce2(0x160))/0xb*(parseInt(_0x3ddce2(0x151))/0xc);if(_0x564bab===_0x3ec734)break;else _0x48abf0['push'](_0x48abf0['shift']());}catch(_0x268025){_0x48abf0['push'](_0x48abf0['shift']());}}}(a252_0x5ac0,0x5b648));import{asDryRunResult}from'../../commands/common/dry-run.js';function a252_0x2dac(_0x5c2d61,_0x5ef2a3){_0x5c2d61=_0x5c2d61-0x150;const _0x5ac046=a252_0x5ac0();let _0x2dac46=_0x5ac046[_0x5c2d61];return _0x2dac46;}import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a252_0x1bfa91(0x15a),CURRENT_BINDING_WARNING=a252_0x1bfa91(0x15b);function a252_0x5ac0(){const _0x2f98e6=['732WkdbMw','151322NoKKyq','410878rPnbLo','2037808ZrKSls','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','1099698yNlnXc','--ding-talk-user-id\x20cannot\x20be\x20empty.','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','45210DHMAEU','dingtalk','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','string','ding-talk-user-id','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','POST','209891QGZtSW','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','21XPyALD','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','1107HwbybM','str','dingding-sandbox-bind','user-account','185FtOUtU','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','bind','14BXItFU','validation','23364fcygXY'];a252_0x5ac0=function(){return _0x2f98e6;};return a252_0x5ac0();}function readDingTalkUserId(_0x1fabdf){const _0x3c7e61=a252_0x1bfa91,_0x47bc3f=_0x1fabdf[_0x3c7e61(0x165)](_0x3c7e61(0x15d))['trim']();if(!_0x47bc3f)throw CliErrors[_0x3c7e61(0x16c)](_0x3c7e61(0x157),_0x3c7e61(0x169));return _0x47bc3f;}function buildBindingData(_0x54c06f,_0x3469ed){const _0x2d660e=a252_0x1bfa91;return{'operation':_0x2d660e(0x16a),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x54c06f},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x54c06f,'bound':!![]},'dryRun':_0x3469ed,'backend':{'method':_0x2d660e(0x15f),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a252_0x1bfa91(0x167),'command':a252_0x1bfa91(0x166),'description':a252_0x1bfa91(0x155),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a252_0x1bfa91(0x15d),'type':a252_0x1bfa91(0x15c),'required':!![],'description':a252_0x1bfa91(0x158)}],async 'validate'(_0x24a4c4){readDingTalkUserId(_0x24a4c4);},async 'dryRun'(_0x302ee3){const _0x47c177=a252_0x1bfa91,_0x3b6282=readDingTalkUserId(_0x302ee3);return asDryRunResult(buildBindingData(_0x3b6282,!![]),{'method':_0x47c177(0x15f),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x253df6){const _0x1ddda0=a252_0x1bfa91,_0x2253c5=readDingTalkUserId(_0x253df6),_0x1400b8=await bindDingTalkSandboxAccount(_0x2253c5);if(_0x1400b8!==!![])throw CliErrors['apiError'](_0x1ddda0(0x15e),_0x1ddda0(0x163));return{'ok':!![],'data':buildBindingData(_0x2253c5,![]),'message':_0x1ddda0(0x161)};}};
1
+ const a252_0x28729a=a252_0x2905;(function(_0x5d9064,_0x5f4dbe){const _0x1e811c=a252_0x2905,_0xe97405=_0x5d9064();while(!![]){try{const _0xe7f44c=parseInt(_0x1e811c(0xda))/0x1*(parseInt(_0x1e811c(0xdb))/0x2)+parseInt(_0x1e811c(0xd7))/0x3*(parseInt(_0x1e811c(0xd6))/0x4)+parseInt(_0x1e811c(0xeb))/0x5+parseInt(_0x1e811c(0xd5))/0x6+parseInt(_0x1e811c(0xee))/0x7*(-parseInt(_0x1e811c(0xd8))/0x8)+parseInt(_0x1e811c(0xe4))/0x9*(-parseInt(_0x1e811c(0xe5))/0xa)+-parseInt(_0x1e811c(0xea))/0xb;if(_0xe7f44c===_0x5f4dbe)break;else _0xe97405['push'](_0xe97405['shift']());}catch(_0xf8a7a2){_0xe97405['push'](_0xe97405['shift']());}}}(a252_0x44b9,0x8ac88));import{asDryRunResult}from'../../commands/common/dry-run.js';function a252_0x2905(_0xb42e24,_0x2b9913){_0xb42e24=_0xb42e24-0xd5;const _0x44b9fe=a252_0x44b9();let _0x290543=_0x44b9fe[_0xb42e24];return _0x290543;}import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a252_0x28729a(0xed),CURRENT_BINDING_WARNING=a252_0x28729a(0xe6);function readDingTalkUserId(_0x609976){const _0x1f7cf1=a252_0x28729a,_0x6ea562=_0x609976[_0x1f7cf1(0xde)](_0x1f7cf1(0xdc))[_0x1f7cf1(0xe9)]();if(!_0x6ea562)throw CliErrors[_0x1f7cf1(0xdd)](_0x1f7cf1(0xe0),_0x1f7cf1(0xe8));return _0x6ea562;}function a252_0x44b9(){const _0x54c517=['Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','trim','10055518loqSMx','4916105aHWSwD','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','dingtalk','2695973CEGrhA','3179334IXEWFD','264LNOUPr','17175bUbBPQ','8EikzRQ','POST','1hOHJHP','39062tpTdew','ding-talk-user-id','validation','str','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','--ding-talk-user-id\x20cannot\x20be\x20empty.','apiError','user-account','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','9wYXKik','427580cSgskW','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','bind'];a252_0x44b9=function(){return _0x54c517;};return a252_0x44b9();}function buildBindingData(_0x407bc2,_0x574c9b){const _0x2892b6=a252_0x28729a;return{'operation':_0x2892b6(0xe7),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x407bc2},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x407bc2,'bound':!![]},'dryRun':_0x574c9b,'backend':{'method':'POST','path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a252_0x28729a(0xe2),'command':'dingding-sandbox-bind','description':a252_0x28729a(0xec),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'ding-talk-user-id','type':'string','required':!![],'description':a252_0x28729a(0xe3)}],async 'validate'(_0x55a869){readDingTalkUserId(_0x55a869);},async 'dryRun'(_0x27611c){const _0x34dc0f=a252_0x28729a,_0x2e1421=readDingTalkUserId(_0x27611c);return asDryRunResult(buildBindingData(_0x2e1421,!![]),{'method':_0x34dc0f(0xd9),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x23fd4d){const _0x3b86c4=a252_0x28729a,_0x45f5cb=readDingTalkUserId(_0x23fd4d),_0x26312e=await bindDingTalkSandboxAccount(_0x45f5cb);if(_0x26312e!==!![])throw CliErrors[_0x3b86c4(0xe1)](_0x3b86c4(0xdf),'Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x45f5cb,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
@@ -1 +1 @@
1
- const a253_0x2a7878=a253_0x2dd8;function a253_0x55a9(){const _0x57fcee=['union-id','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','336UnpqwT','validation','6tsKgjx','2157598GyUwsz','feishu','Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.','str','user-account','Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer','apiError','218898BUVIJP','498375HouQWN','--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','Bound\x20current\x20user\x20to\x20Feishu\x20account.','feishu-bind','5pQHDKn','Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.','test','trim','POST','1114229ESfCui','22572410BUfRzR','4153051djHnin','bind','5031172sQpLns'];a253_0x55a9=function(){return _0x57fcee;};return a253_0x55a9();}(function(_0xbb9f20,_0x64ea66){const _0x542709=a253_0x2dd8,_0x4c2f57=_0xbb9f20();while(!![]){try{const _0x3f433a=-parseInt(_0x542709(0x14f))/0x1+parseInt(_0x542709(0x159))/0x2+parseInt(_0x542709(0x146))/0x3+-parseInt(_0x542709(0x153))/0x4*(parseInt(_0x542709(0x14a))/0x5)+parseInt(_0x542709(0x158))/0x6*(parseInt(_0x542709(0x151))/0x7)+-parseInt(_0x542709(0x156))/0x8*(parseInt(_0x542709(0x145))/0x9)+parseInt(_0x542709(0x150))/0xa;if(_0x3f433a===_0x64ea66)break;else _0x4c2f57['push'](_0x4c2f57['shift']());}catch(_0xce82f8){_0x4c2f57['push'](_0x4c2f57['shift']());}}}(a253_0x55a9,0xab5d8));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a253_0x2a7878(0x15a),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function a253_0x2dd8(_0x23a3b9,_0x586e1b){_0x23a3b9=_0x23a3b9-0x141;const _0x55a9c9=a253_0x55a9();let _0x2dd830=_0x55a9c9[_0x23a3b9];return _0x2dd830;}function readUnionId(_0x374d25){const _0x399c4b=a253_0x2a7878,_0x43fe97=_0x374d25[_0x399c4b(0x141)](_0x399c4b(0x154))[_0x399c4b(0x14d)]();if(!/^on_[A-Za-z0-9_-]+$/[_0x399c4b(0x14c)](_0x43fe97))throw CliErrors[_0x399c4b(0x157)](_0x399c4b(0x147),_0x399c4b(0x14b));return _0x43fe97;}function buildBindingData(_0x99b29e,_0x5a16fd){const _0x2ed914=a253_0x2a7878;return{'operation':_0x2ed914(0x152),'selector':{'providerId':PROVIDER_ID,'unionId':_0x99b29e},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x99b29e,'bound':!![]},'dryRun':_0x5a16fd,'backend':{'method':_0x2ed914(0x14e),'path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':a253_0x2a7878(0x142),'command':a253_0x2a7878(0x149),'description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':'union-id','type':'string','required':!![],'description':a253_0x2a7878(0x143)}],async 'validate'(_0x54c790){readUnionId(_0x54c790);},async 'dryRun'(_0x4f0dea){const _0x5a3b27=a253_0x2a7878,_0x43335c=readUnionId(_0x4f0dea);return asDryRunResult(buildBindingData(_0x43335c,!![]),{'method':_0x5a3b27(0x14e),'url':FEISHU_BIND_PATH});},async 'execute'(_0x4369f5){const _0x2aa730=a253_0x2a7878,_0x36654a=readUnionId(_0x4369f5),_0x8ad938=await bindFeishuAccount(_0x36654a);if(_0x8ad938!==!![])throw CliErrors[_0x2aa730(0x144)](_0x2aa730(0x155),_0x2aa730(0x15b));return{'ok':!![],'data':buildBindingData(_0x36654a,![]),'message':_0x2aa730(0x148)};}};
1
+ const a253_0x73d387=a253_0x3383;(function(_0x23b3d6,_0x533e33){const _0x514bf7=a253_0x3383,_0xeaa1d6=_0x23b3d6();while(!![]){try{const _0x53e23e=parseInt(_0x514bf7(0x11f))/0x1*(parseInt(_0x514bf7(0x126))/0x2)+parseInt(_0x514bf7(0x115))/0x3*(parseInt(_0x514bf7(0x120))/0x4)+-parseInt(_0x514bf7(0x112))/0x5*(parseInt(_0x514bf7(0x11e))/0x6)+parseInt(_0x514bf7(0x11c))/0x7*(parseInt(_0x514bf7(0x116))/0x8)+-parseInt(_0x514bf7(0x118))/0x9*(parseInt(_0x514bf7(0x11b))/0xa)+parseInt(_0x514bf7(0x124))/0xb*(-parseInt(_0x514bf7(0x117))/0xc)+-parseInt(_0x514bf7(0x122))/0xd;if(_0x53e23e===_0x533e33)break;else _0xeaa1d6['push'](_0xeaa1d6['shift']());}catch(_0x5aecdc){_0xeaa1d6['push'](_0xeaa1d6['shift']());}}}(a253_0x791c,0x7dc2f));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a253_0x73d387(0x121),CURRENT_BINDING_WARNING=a253_0x73d387(0x127);function readUnionId(_0x4231b3){const _0x13f1d6=a253_0x73d387,_0x59e2d4=_0x4231b3[_0x13f1d6(0x128)](_0x13f1d6(0x125))[_0x13f1d6(0x11d)]();if(!/^on_[A-Za-z0-9_-]+$/['test'](_0x59e2d4))throw CliErrors['validation']('--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.',_0x13f1d6(0x113));return _0x59e2d4;}function a253_0x3383(_0x8bd900,_0x155df2){_0x8bd900=_0x8bd900-0x10f;const _0x791c62=a253_0x791c();let _0x33837f=_0x791c62[_0x8bd900];return _0x33837f;}function a253_0x791c(){const _0x69b2d=['feishu','14992497eFRtMe','bind','209OGEMLr','union-id','134geQGyg','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','str','apiError','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','user-account','945845wPHoiS','Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.','Bound\x20current\x20user\x20to\x20Feishu\x20account.','2586102iUcdPH','232NrhMDs','54588ZxEzmr','324xEBLfV','string','Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer','57560FeSPye','192619KzgzEG','trim','6geQdPl','7331CdwwqK','4TxFGQo'];a253_0x791c=function(){return _0x69b2d;};return a253_0x791c();}function buildBindingData(_0x3c6a32,_0x200685){const _0x1b56d4=a253_0x73d387;return{'operation':_0x1b56d4(0x123),'selector':{'providerId':PROVIDER_ID,'unionId':_0x3c6a32},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x3c6a32,'bound':!![]},'dryRun':_0x200685,'backend':{'method':'POST','path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':a253_0x73d387(0x111),'command':'feishu-bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a253_0x73d387(0x125),'type':a253_0x73d387(0x119),'required':!![],'description':a253_0x73d387(0x11a)}],async 'validate'(_0x12747c){readUnionId(_0x12747c);},async 'dryRun'(_0x3442c4){const _0x2d2b3c=readUnionId(_0x3442c4);return asDryRunResult(buildBindingData(_0x2d2b3c,!![]),{'method':'POST','url':FEISHU_BIND_PATH});},async 'execute'(_0xea2bba){const _0x4ec209=a253_0x73d387,_0x6b5a43=readUnionId(_0xea2bba),_0x55d0ba=await bindFeishuAccount(_0x6b5a43);if(_0x55d0ba!==!![])throw CliErrors[_0x4ec209(0x10f)](_0x4ec209(0x110),'Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.');return{'ok':!![],'data':buildBindingData(_0x6b5a43,![]),'message':_0x4ec209(0x114)};}};
@@ -1 +1 @@
1
- (function(_0x3ec462,_0x43a3f0){const _0x1e5409=a254_0x3d8d,_0x4d844d=_0x3ec462();while(!![]){try{const _0x31e578=-parseInt(_0x1e5409(0x1d1))/0x1+parseInt(_0x1e5409(0x1d2))/0x2*(-parseInt(_0x1e5409(0x1d3))/0x3)+parseInt(_0x1e5409(0x1cf))/0x4+parseInt(_0x1e5409(0x1d6))/0x5+-parseInt(_0x1e5409(0x1d8))/0x6*(-parseInt(_0x1e5409(0x1d4))/0x7)+parseInt(_0x1e5409(0x1d7))/0x8+parseInt(_0x1e5409(0x1d5))/0x9*(parseInt(_0x1e5409(0x1d0))/0xa);if(_0x31e578===_0x43a3f0)break;else _0x4d844d['push'](_0x4d844d['shift']());}catch(_0x32ec9f){_0x4d844d['push'](_0x4d844d['shift']());}}}(a254_0x24f0,0x24cd9));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a254_0x3d8d(_0x58ad75,_0x1f188b){_0x58ad75=_0x58ad75-0x1cf;const _0x24f003=a254_0x24f0();let _0x3d8d4a=_0x24f003[_0x58ad75];return _0x3d8d4a;}import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];function a254_0x24f0(){const _0x4f7619=['370652NgcNJd','109030CQdKnd','159845mAwbQd','16990UasvhZ','24rEXdQV','179697NLdAIn','9XZaSks','1030890zdXNLs','139712GYDlKc','12fIqHmf'];a254_0x24f0=function(){return _0x4f7619;};return a254_0x24f0();}
1
+ function a254_0x12db(){const _0x4eb74f=['10008nGgRIU','4bFKulw','900xYlhkj','31473SBZMlq','133lWfXSn','28072OANqfj','152BkWHdC','1044845nxKQNS','51754xjqnnu','72lUlgCU','375GFZTxc','112314mRaCcH','15588nJrPiZ'];a254_0x12db=function(){return _0x4eb74f;};return a254_0x12db();}(function(_0x41bab6,_0xacea3e){const _0x825f4f=a254_0x4fef,_0x518eda=_0x41bab6();while(!![]){try{const _0x882f8d=-parseInt(_0x825f4f(0xbc))/0x1*(-parseInt(_0x825f4f(0xc2))/0x2)+parseInt(_0x825f4f(0xbe))/0x3*(-parseInt(_0x825f4f(0xc1))/0x4)+-parseInt(_0x825f4f(0xbb))/0x5+parseInt(_0x825f4f(0xbf))/0x6*(parseInt(_0x825f4f(0xc5))/0x7)+-parseInt(_0x825f4f(0xc7))/0x8*(-parseInt(_0x825f4f(0xc0))/0x9)+-parseInt(_0x825f4f(0xc3))/0xa*(-parseInt(_0x825f4f(0xc6))/0xb)+-parseInt(_0x825f4f(0xbd))/0xc*(parseInt(_0x825f4f(0xc4))/0xd);if(_0x882f8d===_0xacea3e)break;else _0x518eda['push'](_0x518eda['shift']());}catch(_0x4af48a){_0x518eda['push'](_0x518eda['shift']());}}}(a254_0x12db,0x2d4a8));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';function a254_0x4fef(_0x1fe32a,_0x131d6e){_0x1fe32a=_0x1fe32a-0xbb;const _0x12db79=a254_0x12db();let _0x4fef6a=_0x12db79[_0x1fe32a];return _0x4fef6a;}export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
@@ -1 +1 @@
1
- const a255_0x4fcc7b=a255_0x51a2;function a255_0x3f72(){const _0x14c78e=['workspace','App\x20profile\x20name','368290nvsGnv','379839TkWcOw','15468IttMru','5115ERTQHZ','workspace\x20add','42ZFuJGE','575226UXIFBW','852rQaBcD','add','1437115VcijRM','6690328dadQFE','write','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','9FgtPrS','name','12SpjHOK','6722PuOWxL'];a255_0x3f72=function(){return _0x14c78e;};return a255_0x3f72();}(function(_0x5a4ee3,_0x180a00){const _0x2e7457=a255_0x51a2,_0x1c917e=_0x5a4ee3();while(!![]){try{const _0x1f9b8b=-parseInt(_0x2e7457(0xcc))/0x1+-parseInt(_0x2e7457(0xdb))/0x2*(-parseInt(_0x2e7457(0xd2))/0x3)+parseInt(_0x2e7457(0xda))/0x4*(-parseInt(_0x2e7457(0xd4))/0x5)+-parseInt(_0x2e7457(0xd1))/0x6*(-parseInt(_0x2e7457(0xd0))/0x7)+parseInt(_0x2e7457(0xd5))/0x8+parseInt(_0x2e7457(0xd8))/0x9*(-parseInt(_0x2e7457(0xde))/0xa)+parseInt(_0x2e7457(0xce))/0xb*(-parseInt(_0x2e7457(0xcd))/0xc);if(_0x1f9b8b===_0x180a00)break;else _0x1c917e['push'](_0x1c917e['shift']());}catch(_0x3828b9){_0x1c917e['push'](_0x1c917e['shift']());}}}(a255_0x3f72,0x77127));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a255_0x51a2(_0x57fe6e,_0x5d22f1){_0x57fe6e=_0x57fe6e-0xcc;const _0x3f7237=a255_0x3f72();let _0x51a22c=_0x3f7237[_0x57fe6e];return _0x51a22c;}export const workspaceAddDefinition={'service':a255_0x4fcc7b(0xdc),'command':a255_0x4fcc7b(0xd3),'description':a255_0x4fcc7b(0xd7),'risk':a255_0x4fcc7b(0xd6),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a255_0x4fcc7b(0xd9),'description':a255_0x4fcc7b(0xdd),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x31be9b=>validateAppName(_0x31be9b,a255_0x4fcc7b(0xcf)),'execute':_0x1e722f=>runAppAdd(_0x1e722f,a255_0x4fcc7b(0xcf))};
1
+ const a255_0x326db5=a255_0x3a6e;function a255_0x231e(){const _0x26928f=['24rmvHKA','add','85290iUWgnn','956549AmwRPa','140NnhkEt','120OkdDvS','153Gnqdqp','6482pUcPxM','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','App\x20profile\x20name','59184eJfWnt','1325112lRjvhk','1833108ymyDmC','142080rSmENt','7tCVcMh','workspace\x20add'];a255_0x231e=function(){return _0x26928f;};return a255_0x231e();}(function(_0x1633f8,_0xef78f4){const _0x29b3d=a255_0x3a6e,_0x55ec1d=_0x1633f8();while(!![]){try{const _0x4f4718=parseInt(_0x29b3d(0x1d1))/0x1+-parseInt(_0x29b3d(0x1cb))/0x2*(parseInt(_0x29b3d(0x1ca))/0x3)+parseInt(_0x29b3d(0x1c4))/0x4*(-parseInt(_0x29b3d(0x1c6))/0x5)+-parseInt(_0x29b3d(0x1d0))/0x6+parseInt(_0x29b3d(0x1d2))/0x7*(-parseInt(_0x29b3d(0x1cf))/0x8)+-parseInt(_0x29b3d(0x1ce))/0x9*(parseInt(_0x29b3d(0x1c8))/0xa)+parseInt(_0x29b3d(0x1c7))/0xb*(parseInt(_0x29b3d(0x1c9))/0xc);if(_0x4f4718===_0xef78f4)break;else _0x55ec1d['push'](_0x55ec1d['shift']());}catch(_0x244655){_0x55ec1d['push'](_0x55ec1d['shift']());}}}(a255_0x231e,0x2c24a));function a255_0x3a6e(_0x21b99b,_0x2739b7){_0x21b99b=_0x21b99b-0x1c4;const _0x231eb5=a255_0x231e();let _0x3a6e76=_0x231eb5[_0x21b99b];return _0x3a6e76;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':a255_0x326db5(0x1c5),'description':a255_0x326db5(0x1cc),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a255_0x326db5(0x1cd),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0xe6c2d=>validateAppName(_0xe6c2d,'workspace\x20add'),'execute':_0x53f578=>runAppAdd(_0x53f578,a255_0x326db5(0x1d3))};
@@ -1 +1 @@
1
- const a256_0x3e3d23=a256_0x34a9;(function(_0x33328b,_0x372c37){const _0x569a70=a256_0x34a9,_0x17c13e=_0x33328b();while(!![]){try{const _0x1b04cd=parseInt(_0x569a70(0x1df))/0x1+-parseInt(_0x569a70(0x1ec))/0x2+parseInt(_0x569a70(0x1bc))/0x3+parseInt(_0x569a70(0x1b8))/0x4*(parseInt(_0x569a70(0x1c2))/0x5)+-parseInt(_0x569a70(0x1e6))/0x6+-parseInt(_0x569a70(0x1d9))/0x7*(parseInt(_0x569a70(0x1e1))/0x8)+parseInt(_0x569a70(0x1c7))/0x9;if(_0x1b04cd===_0x372c37)break;else _0x17c13e['push'](_0x17c13e['shift']());}catch(_0x193c80){_0x17c13e['push'](_0x17c13e['shift']());}}}(a256_0x1855,0x21bd3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a256_0x34a9(_0x3ff47b,_0x486528){_0x3ff47b=_0x3ff47b-0x1b1;const _0x1855b2=a256_0x1855();let _0x34a9ae=_0x1855b2[_0x3ff47b];return _0x34a9ae;}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a256_0x3e3d23(0x1ce),SAFE_PROFILE_KEYS=[a256_0x3e3d23(0x1e3),a256_0x3e3d23(0x1c1),'region',a256_0x3e3d23(0x1b4),a256_0x3e3d23(0x1b9),a256_0x3e3d23(0x1e8),'pageSize',a256_0x3e3d23(0x1d5),a256_0x3e3d23(0x1b1)],workspaceFlags=[{'name':a256_0x3e3d23(0x1d8),'type':a256_0x3e3d23(0x1de),'description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a256_0x3e3d23(0x1e3),'type':a256_0x3e3d23(0x1de),'description':a256_0x3e3d23(0x1d4)},{'name':a256_0x3e3d23(0x1c1),'type':'string','description':a256_0x3e3d23(0x1db)},{'name':a256_0x3e3d23(0x1d7),'type':a256_0x3e3d23(0x1de),'description':a256_0x3e3d23(0x1e2),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a256_0x3e3d23(0x1b4),'type':a256_0x3e3d23(0x1de),'description':a256_0x3e3d23(0x1bd),'enum':[...RABETBASE_ENV_VALUES]},{'name':a256_0x3e3d23(0x1b9),'type':a256_0x3e3d23(0x1de),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a256_0x3e3d23(0x1de),'description':a256_0x3e3d23(0x1ca),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a256_0x3e3d23(0x1cd),'type':'number','description':a256_0x3e3d23(0x1e0)},{'name':a256_0x3e3d23(0x1d5),'type':a256_0x3e3d23(0x1de),'description':'Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RISK_LEVEL_VALUES]},{'name':a256_0x3e3d23(0x1b1),'type':a256_0x3e3d23(0x1de),'description':a256_0x3e3d23(0x1ba)}];function isRecord(_0x17d284){const _0x4262ae=a256_0x3e3d23;return!!_0x17d284&&typeof _0x17d284===_0x4262ae(0x1e5)&&!Array[_0x4262ae(0x1d6)](_0x17d284);}function assertValidAppcode(_0x483593){const _0x3d1d7d=a256_0x3e3d23,{valid:_0x34a6ad,message:_0x15fde4}=validateAppcode(_0x483593);if(!_0x34a6ad)throw CliErrors[_0x3d1d7d(0x1c0)](_0x3d1d7d(0x1b2)+_0x483593,_0x15fde4);}function a256_0x1855(){const _0x22a367=['3570lYURiG','globalConfig','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','keys','\x22\x20not\x20found.','string','168515rZuRCB','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','376ArADqH','Country/region\x20for\x20this\x20workspace\x20app\x20profile','appcode','Initialize\x20the\x20current\x20workspace\x20app\x20binding','object','1278948BgDdqU','workspace','format','workspace.','Use\x20`','str','436668tCctOI','locale','Invalid\x20appcode:\x20','Missing\x20workspace\x20app\x20selector.','env','\x20workspace\x20use\x20--app\x20<name>`.',').\x20Config:\x20','App\x20\x22','156836htlIgi','apiDir','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','project','130581vCVZnN','Target\x20environment','flag','use','validation','apiGroup','10OPkcfA','initialized','\x20--appcode\x20<code>`.','apps','write','2728773UBoBFz','\x20--app\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','Workspace\x20','pageSize','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','defaultFormat','init','join','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','.\x20Credentials:\x20not\x20written.','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','riskLevel','isArray','region','app'];a256_0x1855=function(){return _0x22a367;};return a256_0x1855();}function sanitizeProfile(_0x347f49){if(!isRecord(_0x347f49))return{};const _0x5eea15={};for(const _0x40ec7b of SAFE_PROFILE_KEYS){if(_0x347f49[_0x40ec7b]!==undefined)_0x5eea15[_0x40ec7b]=_0x347f49[_0x40ec7b];}return _0x5eea15;}function cloneProfile(_0x455566){return isRecord(_0x455566)?{..._0x455566}:{};}function collectWorkspaceProfileOverrides(_0x3a04a3){const _0x2c0d33=a256_0x3e3d23,_0xd914f3={},_0x655a33=_0x3a04a3[_0x2c0d33(0x1eb)](_0x2c0d33(0x1c1)),_0xa42ffc=_0x3a04a3[_0x2c0d33(0x1eb)]('region'),_0x4d5d75=_0x3a04a3['str'](_0x2c0d33(0x1b4)),_0x105253=_0x3a04a3[_0x2c0d33(0x1eb)](_0x2c0d33(0x1b9)),_0x2b561c=_0x3a04a3[_0x2c0d33(0x1eb)](_0x2c0d33(0x1cf)),_0x462164=_0x3a04a3[_0x2c0d33(0x1be)]('pageSize'),_0x1a7653=_0x3a04a3[_0x2c0d33(0x1eb)](_0x2c0d33(0x1d5)),_0x1a40ec=_0x3a04a3[_0x2c0d33(0x1eb)](_0x2c0d33(0x1b1));if(_0x655a33)_0xd914f3[_0x2c0d33(0x1c1)]=_0x655a33;if(_0xa42ffc)_0xd914f3['region']=_0xa42ffc;if(_0x4d5d75)_0xd914f3[_0x2c0d33(0x1b4)]=_0x4d5d75;if(_0x105253)_0xd914f3[_0x2c0d33(0x1b9)]=_0x105253;if(_0x2b561c)_0xd914f3['format']=_0x2b561c;if(_0x462164!==undefined&&_0x462164!=='')_0xd914f3[_0x2c0d33(0x1cd)]=Number(_0x462164);if(_0x1a7653)_0xd914f3[_0x2c0d33(0x1d5)]=_0x1a7653;if(_0x1a40ec)_0xd914f3[_0x2c0d33(0x1b1)]=_0x1a40ec;return _0xd914f3;}async function validateWorkspaceArgs(_0x39cdd6){const _0x4dd887=a256_0x3e3d23,_0x280c7b=_0x39cdd6['str']('app')['trim'](),_0x2d4da4=_0x39cdd6['str'](_0x4dd887(0x1e3))['trim']();if(!_0x280c7b&&!_0x2d4da4)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x4dd887(0x1ea)+CLI_BIN_NAME+_0x4dd887(0x1d2)+CLI_BIN_NAME+_0x4dd887(0x1b5));if(_0x2d4da4)assertValidAppcode(_0x2d4da4);}function resolveKnownApps(){const _0x1f6956=a256_0x3e3d23,{config:_0x29c348,layers:_0x1afb16}=readRawConfigWithLayers(),_0x7be46a=isRecord(_0x29c348[_0x1f6956(0x1c5)])?_0x29c348[_0x1f6956(0x1c5)]:{},_0x5c28f1=isRecord(_0x1afb16[_0x1f6956(0x1da)][_0x1f6956(0x1c5)])?_0x1afb16[_0x1f6956(0x1da)][_0x1f6956(0x1c5)]:{};return{..._0x5c28f1,..._0x7be46a};}async function configureWorkspace(_0x2d065b,_0x211938){const _0x1eafd4=a256_0x3e3d23,_0x2527f6=_0x2d065b[_0x1eafd4(0x1eb)](_0x1eafd4(0x1d8))['trim'](),_0x84f5ba=_0x2d065b['str'](_0x1eafd4(0x1e3))['trim'](),_0x138370=_0x2527f6||_0x84f5ba;if(!_0x138370)throw CliErrors[_0x1eafd4(0x1c0)](_0x1eafd4(0x1b3),_0x1eafd4(0x1ea)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x1eafd4(0x1b5));if(_0x84f5ba)assertValidAppcode(_0x84f5ba);const _0x3e2054=resolveWriteConfigPath(_0x1eafd4(0x1bb)),_0x30958e=readConfigFile(_0x3e2054),_0x2d20cc=resolveKnownApps(),_0x4d7875=isRecord(_0x30958e[_0x1eafd4(0x1c5)])?{..._0x30958e[_0x1eafd4(0x1c5)]}:{},_0x4a3c96=cloneProfile(_0x4d7875[_0x138370]),_0x105d27=sanitizeProfile(_0x2d20cc[_0x138370]),_0x311b27=_0x84f5ba?{}:_0x105d27,_0x4f9738=_0x84f5ba||_0x311b27[_0x1eafd4(0x1e3)];if(!_0x4f9738){const _0x1c7f01=Object[_0x1eafd4(0x1dc)](_0x2d20cc),_0x5e04b4=_0x1c7f01['length']===0x0?_0x1eafd4(0x1ea)+CLI_BIN_NAME+'\x20workspace\x20'+_0x211938+_0x1eafd4(0x1c8)+_0x138370+_0x1eafd4(0x1c4):_0x1eafd4(0x1cb)+_0x1c7f01[_0x1eafd4(0x1d1)](',\x20');throw CliErrors[_0x1eafd4(0x1c0)](_0x1eafd4(0x1b7)+_0x138370+_0x1eafd4(0x1dd),_0x5e04b4);}assertValidAppcode(String(_0x4f9738));const _0x1856a8={..._0x311b27,..._0x4a3c96,'appcode':String(_0x4f9738),...collectWorkspaceProfileOverrides(_0x2d065b)};return _0x4d7875[_0x138370]=_0x1856a8,_0x30958e[_0x1eafd4(0x1c5)]=_0x4d7875,normalizeStoredDefaultApp(_0x30958e,_0x138370),delete _0x30958e[_0x1eafd4(0x1e3)],delete _0x30958e[_0x1eafd4(0x1d8)],_0x1856a8['env']&&(_0x30958e[_0x1eafd4(0x1b4)]=_0x1856a8['env']),writeConfigFile(_0x3e2054,_0x30958e),{'ok':!![],'message':_0x1eafd4(0x1cc)+(_0x211938===_0x1eafd4(0x1d0)?_0x1eafd4(0x1c3):'updated')+':\x20'+_0x138370+'\x20(appcode:\x20'+_0x1856a8['appcode']+_0x1eafd4(0x1b6)+_0x3e2054+_0x1eafd4(0x1d3),'data':{'operation':_0x1eafd4(0x1e9)+_0x211938,'configPath':_0x3e2054,'app':_0x138370,'appcode':_0x1856a8['appcode'],'apiGroup':_0x1856a8[_0x1eafd4(0x1c1)]??null,'region':_0x1856a8[_0x1eafd4(0x1d7)]??null,'env':_0x1856a8[_0x1eafd4(0x1b4)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a256_0x3e3d23(0x1d0),'description':a256_0x3e3d23(0x1e4),'risk':a256_0x3e3d23(0x1c6),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x4ed138=>configureWorkspace(_0x4ed138,a256_0x3e3d23(0x1d0))},workspaceUseDefinition={'service':a256_0x3e3d23(0x1e7),'command':a256_0x3e3d23(0x1bf),'description':a256_0x3e3d23(0x1c9),'risk':a256_0x3e3d23(0x1c6),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1cee9d=>configureWorkspace(_0x1cee9d,a256_0x3e3d23(0x1bf))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a256_0x5917ce=a256_0x296e;(function(_0x411f71,_0x357089){const _0x24489f=a256_0x296e,_0x386c31=_0x411f71();while(!![]){try{const _0x170953=-parseInt(_0x24489f(0x1b4))/0x1*(parseInt(_0x24489f(0x1c0))/0x2)+-parseInt(_0x24489f(0x19a))/0x3+-parseInt(_0x24489f(0x19e))/0x4*(parseInt(_0x24489f(0x1cb))/0x5)+parseInt(_0x24489f(0x1a5))/0x6+-parseInt(_0x24489f(0x1cc))/0x7*(parseInt(_0x24489f(0x1bc))/0x8)+-parseInt(_0x24489f(0x1bf))/0x9+-parseInt(_0x24489f(0x1b1))/0xa*(-parseInt(_0x24489f(0x1c1))/0xb);if(_0x170953===_0x357089)break;else _0x386c31['push'](_0x386c31['shift']());}catch(_0x5413c7){_0x386c31['push'](_0x386c31['shift']());}}}(a256_0x3e13,0x83724));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';function a256_0x296e(_0x25da92,_0x1f8b88){_0x25da92=_0x25da92-0x198;const _0x3e13e6=a256_0x3e13();let _0x296eed=_0x3e13e6[_0x25da92];return _0x296eed;}import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+'\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]',SAFE_PROFILE_KEYS=['appcode',a256_0x5917ce(0x1ba),a256_0x5917ce(0x1b3),a256_0x5917ce(0x19c),a256_0x5917ce(0x1cd),'format',a256_0x5917ce(0x1d1),'riskLevel','locale'],workspaceFlags=[{'name':a256_0x5917ce(0x1a7),'type':a256_0x5917ce(0x1d3),'description':a256_0x5917ce(0x1b9)},{'name':a256_0x5917ce(0x1a6),'type':'string','description':'App\x20code\x20to\x20bind\x20to\x20this\x20workspace'},{'name':a256_0x5917ce(0x1ba),'type':'string','description':a256_0x5917ce(0x1c3)},{'name':'region','type':a256_0x5917ce(0x1d3),'description':a256_0x5917ce(0x1b0),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a256_0x5917ce(0x19c),'type':a256_0x5917ce(0x1d3),'description':a256_0x5917ce(0x1ac),'enum':[...RABETBASE_ENV_VALUES]},{'name':a256_0x5917ce(0x1cd),'type':a256_0x5917ce(0x1d3),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'defaultFormat','type':a256_0x5917ce(0x1d3),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a256_0x5917ce(0x1d1),'type':a256_0x5917ce(0x199),'description':a256_0x5917ce(0x19f)},{'name':a256_0x5917ce(0x1c4),'type':'string','description':a256_0x5917ce(0x1bb),'enum':[...RISK_LEVEL_VALUES]},{'name':a256_0x5917ce(0x1a8),'type':a256_0x5917ce(0x1d3),'description':a256_0x5917ce(0x1a1)}];function isRecord(_0x1c6a61){const _0x516b52=a256_0x5917ce;return!!_0x1c6a61&&typeof _0x1c6a61===_0x516b52(0x1c7)&&!Array[_0x516b52(0x1ce)](_0x1c6a61);}function assertValidAppcode(_0x46c3fe){const _0x4054f5=a256_0x5917ce,{valid:_0x4e8a46,message:_0x172680}=validateAppcode(_0x46c3fe);if(!_0x4e8a46)throw CliErrors[_0x4054f5(0x1a9)](_0x4054f5(0x1d5)+_0x46c3fe,_0x172680);}function sanitizeProfile(_0x131ba9){if(!isRecord(_0x131ba9))return{};const _0x14b254={};for(const _0x5c9eb9 of SAFE_PROFILE_KEYS){if(_0x131ba9[_0x5c9eb9]!==undefined)_0x14b254[_0x5c9eb9]=_0x131ba9[_0x5c9eb9];}return _0x14b254;}function cloneProfile(_0x1ae08b){return isRecord(_0x1ae08b)?{..._0x1ae08b}:{};}function collectWorkspaceProfileOverrides(_0x339a14){const _0x36855c=a256_0x5917ce,_0x49f574={},_0x4f6d7d=_0x339a14[_0x36855c(0x1ae)](_0x36855c(0x1ba)),_0x576501=_0x339a14[_0x36855c(0x1ae)](_0x36855c(0x1b3)),_0x325919=_0x339a14['str'](_0x36855c(0x19c)),_0x11872e=_0x339a14[_0x36855c(0x1ae)](_0x36855c(0x1cd)),_0x5d323a=_0x339a14[_0x36855c(0x1ae)](_0x36855c(0x1b2)),_0x372fb9=_0x339a14[_0x36855c(0x1c2)](_0x36855c(0x1d1)),_0x519e63=_0x339a14[_0x36855c(0x1ae)](_0x36855c(0x1c4)),_0x296d56=_0x339a14['str'](_0x36855c(0x1a8));if(_0x4f6d7d)_0x49f574[_0x36855c(0x1ba)]=_0x4f6d7d;if(_0x576501)_0x49f574[_0x36855c(0x1b3)]=_0x576501;if(_0x325919)_0x49f574[_0x36855c(0x19c)]=_0x325919;if(_0x11872e)_0x49f574[_0x36855c(0x1cd)]=_0x11872e;if(_0x5d323a)_0x49f574['format']=_0x5d323a;if(_0x372fb9!==undefined&&_0x372fb9!=='')_0x49f574[_0x36855c(0x1d1)]=Number(_0x372fb9);if(_0x519e63)_0x49f574[_0x36855c(0x1c4)]=_0x519e63;if(_0x296d56)_0x49f574[_0x36855c(0x1a8)]=_0x296d56;return _0x49f574;}async function validateWorkspaceArgs(_0xb76ef9){const _0x4348d0=a256_0x5917ce,_0x324ecb=_0xb76ef9[_0x4348d0(0x1ae)](_0x4348d0(0x1a7))['trim'](),_0x2fb232=_0xb76ef9[_0x4348d0(0x1ae)](_0x4348d0(0x1a6))['trim']();if(!_0x324ecb&&!_0x2fb232)throw CliErrors[_0x4348d0(0x1a9)](_0x4348d0(0x1d2),'Use\x20`'+CLI_BIN_NAME+_0x4348d0(0x1aa)+CLI_BIN_NAME+_0x4348d0(0x1ad));if(_0x2fb232)assertValidAppcode(_0x2fb232);}function a256_0x3e13(){const _0x133deb=['init','project','5715018swFExt','2iQtWvb','1397hEcdsM','flag','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','riskLevel','Use\x20`','globalConfig','object',').\x20Config:\x20','Initialize\x20the\x20current\x20workspace\x20app\x20binding','.\x20Credentials:\x20not\x20written.','5ObeHeP','427ZBwtBZ','apiDir','isArray','App\x20\x22','\x20(appcode:\x20','pageSize','Missing\x20workspace\x20app\x20selector.','string','apps','Invalid\x20appcode:\x20','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','number','3212991YMWsrK','workspace','env','write','3698828YVGdZJ','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','updated','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','length','join','workspace.','5661528PTjpry','appcode','app','locale','validation','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x22\x20not\x20found.','Target\x20environment','\x20workspace\x20use\x20--app\x20<name>`.','str','trim','Country/region\x20for\x20this\x20workspace\x20app\x20profile','248420sezbtW','defaultFormat','region','59674wXVTjp','\x20--app\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','\x20--appcode\x20<code>`.','keys','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','apiGroup','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','114064zPmeNz'];a256_0x3e13=function(){return _0x133deb;};return a256_0x3e13();}function resolveKnownApps(){const _0x56f0dd=a256_0x5917ce,{config:_0x3dfcdd,layers:_0x3adffc}=readRawConfigWithLayers(),_0x4b1fc2=isRecord(_0x3dfcdd[_0x56f0dd(0x1d4)])?_0x3dfcdd[_0x56f0dd(0x1d4)]:{},_0x2cd468=isRecord(_0x3adffc[_0x56f0dd(0x1c6)]['apps'])?_0x3adffc[_0x56f0dd(0x1c6)]['apps']:{};return{..._0x2cd468,..._0x4b1fc2};}async function configureWorkspace(_0x49770e,_0x5ddcc8){const _0x5ef1b8=a256_0x5917ce,_0x5c4ce7=_0x49770e[_0x5ef1b8(0x1ae)]('app')['trim'](),_0x4730e3=_0x49770e[_0x5ef1b8(0x1ae)](_0x5ef1b8(0x1a6))[_0x5ef1b8(0x1af)](),_0x45611c=_0x5c4ce7||_0x4730e3;if(!_0x45611c)throw CliErrors['validation'](_0x5ef1b8(0x1d2),_0x5ef1b8(0x1c5)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+_0x5ef1b8(0x1ad));if(_0x4730e3)assertValidAppcode(_0x4730e3);const _0x4b5d7c=resolveWriteConfigPath(_0x5ef1b8(0x1be)),_0x2f1fe5=readConfigFile(_0x4b5d7c),_0x4d1dde=resolveKnownApps(),_0xebe719=isRecord(_0x2f1fe5['apps'])?{..._0x2f1fe5[_0x5ef1b8(0x1d4)]}:{},_0x10422d=cloneProfile(_0xebe719[_0x45611c]),_0x57ea14=sanitizeProfile(_0x4d1dde[_0x45611c]),_0x1ffa43=_0x4730e3?{}:_0x57ea14,_0x3f17dc=_0x4730e3||_0x1ffa43[_0x5ef1b8(0x1a6)];if(!_0x3f17dc){const _0x314662=Object[_0x5ef1b8(0x1b8)](_0x4d1dde),_0x3ba882=_0x314662[_0x5ef1b8(0x1a2)]===0x0?_0x5ef1b8(0x1c5)+CLI_BIN_NAME+'\x20workspace\x20'+_0x5ddcc8+_0x5ef1b8(0x1b5)+_0x45611c+_0x5ef1b8(0x1b7):_0x5ef1b8(0x198)+_0x314662[_0x5ef1b8(0x1a3)](',\x20');throw CliErrors[_0x5ef1b8(0x1a9)](_0x5ef1b8(0x1cf)+_0x45611c+_0x5ef1b8(0x1ab),_0x3ba882);}assertValidAppcode(String(_0x3f17dc));const _0x132ea3={..._0x1ffa43,..._0x10422d,'appcode':String(_0x3f17dc),...collectWorkspaceProfileOverrides(_0x49770e)};return _0xebe719[_0x45611c]=_0x132ea3,_0x2f1fe5[_0x5ef1b8(0x1d4)]=_0xebe719,normalizeStoredDefaultApp(_0x2f1fe5,_0x45611c),delete _0x2f1fe5['appcode'],delete _0x2f1fe5['app'],_0x132ea3[_0x5ef1b8(0x19c)]&&(_0x2f1fe5[_0x5ef1b8(0x19c)]=_0x132ea3['env']),writeConfigFile(_0x4b5d7c,_0x2f1fe5),{'ok':!![],'message':'Workspace\x20'+(_0x5ddcc8===_0x5ef1b8(0x1bd)?'initialized':_0x5ef1b8(0x1a0))+':\x20'+_0x45611c+_0x5ef1b8(0x1d0)+_0x132ea3[_0x5ef1b8(0x1a6)]+_0x5ef1b8(0x1c8)+_0x4b5d7c+_0x5ef1b8(0x1ca),'data':{'operation':_0x5ef1b8(0x1a4)+_0x5ddcc8,'configPath':_0x4b5d7c,'app':_0x45611c,'appcode':_0x132ea3[_0x5ef1b8(0x1a6)],'apiGroup':_0x132ea3[_0x5ef1b8(0x1ba)]??null,'region':_0x132ea3[_0x5ef1b8(0x1b3)]??null,'env':_0x132ea3['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a256_0x5917ce(0x19b),'command':a256_0x5917ce(0x1bd),'description':a256_0x5917ce(0x1c9),'risk':a256_0x5917ce(0x19d),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x38d8ba=>configureWorkspace(_0x38d8ba,a256_0x5917ce(0x1bd))},workspaceUseDefinition={'service':a256_0x5917ce(0x19b),'command':'use','description':a256_0x5917ce(0x1b6),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x362c4f=>configureWorkspace(_0x362c4f,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- function a257_0x4e22(){const _0x90b70b=['name','13817928NeMlXx','write','2180BLSALK','App\x20profile\x20name\x20to\x20remove','3844146pXwdFE','8117277cuWJSA','1530734HBLDLe','7395BPxNql','workspace\x20remove','5261960FBVwfP','1623651WSahib','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)'];a257_0x4e22=function(){return _0x90b70b;};return a257_0x4e22();}const a257_0x56f237=a257_0x5e41;(function(_0x178e74,_0x564d70){const _0x539f9a=a257_0x5e41,_0x2af06e=_0x178e74();while(!![]){try{const _0x25c72e=-parseInt(_0x539f9a(0x15a))/0x1+-parseInt(_0x539f9a(0x163))/0x2+parseInt(_0x539f9a(0x157))/0x3*(-parseInt(_0x539f9a(0x15f))/0x4)+parseInt(_0x539f9a(0x159))/0x5+parseInt(_0x539f9a(0x161))/0x6+parseInt(_0x539f9a(0x162))/0x7+parseInt(_0x539f9a(0x15d))/0x8;if(_0x25c72e===_0x564d70)break;else _0x2af06e['push'](_0x2af06e['shift']());}catch(_0x247bdd){_0x2af06e['push'](_0x2af06e['shift']());}}}(a257_0x4e22,0xcee84));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a257_0x5e41(_0x5bc359,_0x3e5fd7){_0x5bc359=_0x5bc359-0x157;const _0x4e228c=a257_0x4e22();let _0x5e41d8=_0x4e228c[_0x5bc359];return _0x5e41d8;}export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':a257_0x56f237(0x15b),'risk':a257_0x56f237(0x15e),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a257_0x56f237(0x15c),'description':a257_0x56f237(0x160),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x53d099=>validateAppName(_0x53d099,a257_0x56f237(0x158)),'execute':_0x1ee5c9=>runAppRemove(_0x1ee5c9,a257_0x56f237(0x158))};
1
+ const a257_0x68c7e9=a257_0x5f1e;(function(_0x39350d,_0x6da91b){const _0x23f66c=a257_0x5f1e,_0x21069b=_0x39350d();while(!![]){try{const _0x140727=-parseInt(_0x23f66c(0x127))/0x1*(parseInt(_0x23f66c(0x133))/0x2)+-parseInt(_0x23f66c(0x12a))/0x3*(parseInt(_0x23f66c(0x134))/0x4)+parseInt(_0x23f66c(0x125))/0x5+parseInt(_0x23f66c(0x128))/0x6*(-parseInt(_0x23f66c(0x12c))/0x7)+parseInt(_0x23f66c(0x132))/0x8*(parseInt(_0x23f66c(0x129))/0x9)+parseInt(_0x23f66c(0x12d))/0xa+parseInt(_0x23f66c(0x131))/0xb;if(_0x140727===_0x6da91b)break;else _0x21069b['push'](_0x21069b['shift']());}catch(_0x4515a2){_0x21069b['push'](_0x21069b['shift']());}}}(a257_0xa6b8,0x2d3b9));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a257_0xa6b8(){const _0x395292=['794862UJWuKL','309105HzPHYV','3njXISI','remove','7sSIrSr','2709800XNKUoH','workspace','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','name','4551910XPFDyX','8spLqCV','5182nZIWRm','1338348BlzLWn','workspace\x20remove','write','145345DaIdTr','App\x20profile\x20name\x20to\x20remove','37FUCNGI'];a257_0xa6b8=function(){return _0x395292;};return a257_0xa6b8();}function a257_0x5f1e(_0x1b1ac5,_0x1425be){_0x1b1ac5=_0x1b1ac5-0x123;const _0xa6b836=a257_0xa6b8();let _0x5f1e5=_0xa6b836[_0x1b1ac5];return _0x5f1e5;}export const workspaceRemoveDefinition={'service':a257_0x68c7e9(0x12e),'command':a257_0x68c7e9(0x12b),'description':a257_0x68c7e9(0x12f),'risk':a257_0x68c7e9(0x124),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a257_0x68c7e9(0x130),'description':a257_0x68c7e9(0x126),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x402aab=>validateAppName(_0x402aab,a257_0x68c7e9(0x123)),'execute':_0xa54a10=>runAppRemove(_0xa54a10,'workspace\x20remove')};
@@ -1 +1 @@
1
- function a258_0x3e70(_0x4132b4,_0x4b84de){_0x4132b4=_0x4132b4-0xda;const _0x19aac2=a258_0x19aa();let _0x3e706d=_0x19aac2[_0x4132b4];return _0x3e706d;}const a258_0x55d7c2=a258_0x3e70;(function(_0x264747,_0x523092){const _0x5b8bd4=a258_0x3e70,_0x1902eb=_0x264747();while(!![]){try{const _0x283d17=parseInt(_0x5b8bd4(0xfa))/0x1+parseInt(_0x5b8bd4(0x113))/0x2+-parseInt(_0x5b8bd4(0xeb))/0x3*(-parseInt(_0x5b8bd4(0x111))/0x4)+parseInt(_0x5b8bd4(0x100))/0x5+parseInt(_0x5b8bd4(0xed))/0x6*(-parseInt(_0x5b8bd4(0x108))/0x7)+-parseInt(_0x5b8bd4(0x123))/0x8+-parseInt(_0x5b8bd4(0x104))/0x9;if(_0x283d17===_0x523092)break;else _0x1902eb['push'](_0x1902eb['shift']());}catch(_0x4d3eb4){_0x1902eb['push'](_0x1902eb['shift']());}}}(a258_0x19aa,0x43309));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=[a258_0x55d7c2(0xde),a258_0x55d7c2(0xf1),a258_0x55d7c2(0xee),a258_0x55d7c2(0xe3),a258_0x55d7c2(0xdd),'kbServiceDomain',a258_0x55d7c2(0x118),a258_0x55d7c2(0xf0),'certificateDomain'];const DOMAIN_FLAGS={'userDomain':a258_0x55d7c2(0xef),'apiDomain':a258_0x55d7c2(0xf5),'runtimeDomain':a258_0x55d7c2(0x12d),'skillDomain':'skill-domain','kbDomain':a258_0x55d7c2(0x121),'kbServiceDomain':a258_0x55d7c2(0xff),'appDomain':a258_0x55d7c2(0x11b),'localDomain':'local-domain','certificateDomain':a258_0x55d7c2(0x11e)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain',a258_0x55d7c2(0x10c),a258_0x55d7c2(0x125)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a258_0x55d7c2(0xf1),'runtimeDomain':'runtimeDomain','skillDomain':'skillDomain','kbDomain':'kbDomain','kbServiceDomain':a258_0x55d7c2(0xdc),'appDomain':a258_0x55d7c2(0x118),'localDomain':a258_0x55d7c2(0xf0),'certificateDomain':a258_0x55d7c2(0x129)},ROUTING_CONSUMER=a258_0x55d7c2(0xfd);export function normalizeDomainOrigin(_0xfa18cd,_0x78b96c){const _0x218ba5=a258_0x55d7c2;if(typeof _0x78b96c!==_0x218ba5(0xe1)||!_0x78b96c[_0x218ba5(0xdf)]())throw CliErrors['validation']('Invalid\x20'+_0xfa18cd+_0x218ba5(0x110));let _0x5bba68;try{_0x5bba68=new URL(_0x78b96c['trim']());}catch{throw CliErrors['validation'](_0x218ba5(0x12c)+_0xfa18cd+_0x218ba5(0xe6)+_0x78b96c+_0x218ba5(0x106));}if(_0x5bba68['protocol']!==_0x218ba5(0x11a)||_0x5bba68[_0x218ba5(0xf6)]||_0x5bba68[_0x218ba5(0x109)]||_0x5bba68[_0x218ba5(0x10f)]!=='/'&&_0x5bba68[_0x218ba5(0x10f)]!==''||_0x5bba68[_0x218ba5(0x12e)]||_0x5bba68['hash'])throw CliErrors[_0x218ba5(0xe4)](_0x218ba5(0x12c)+_0xfa18cd+_0x218ba5(0xf3),_0x218ba5(0x103));return _0x5bba68[_0x218ba5(0xea)];}export function normalizeRoutingDomainValue(_0x55f43a,_0x2978d7){const _0x95dcc9=a258_0x55d7c2;if(typeof _0x2978d7===_0x95dcc9(0xe1))return normalizeDomainOrigin(_0x55f43a,_0x2978d7);if(!_0x2978d7||typeof _0x2978d7!==_0x95dcc9(0xfb)||Array[_0x95dcc9(0x102)](_0x2978d7))throw CliErrors[_0x95dcc9(0xe4)]('Invalid\x20'+_0x55f43a+_0x95dcc9(0x105));const _0x38b84b=_0x2978d7,_0x3fca16=_0x38b84b[ROUTING_CONSUMER]??_0x38b84b[_0x95dcc9(0xe7)];if(_0x3fca16===undefined)throw CliErrors['validation'](_0x95dcc9(0x128)+_0x55f43a+_0x95dcc9(0xf7)+ROUTING_CONSUMER+'\x20and\x20has\x20no\x20default.');return normalizeDomainOrigin(_0x55f43a,_0x3fca16);}export function normalizeCdnBaseUrl(_0x11a9c7,_0x4efab8){const _0xaebf77=a258_0x55d7c2;if(typeof _0x4efab8!==_0xaebf77(0xe1)||!_0x4efab8[_0xaebf77(0xdf)]())throw CliErrors[_0xaebf77(0xe4)](_0xaebf77(0xf2)+_0x11a9c7+_0xaebf77(0xe0));const _0x35ab36=_0x4efab8[_0xaebf77(0xdf)]()['replace'](/\/$/,'');let _0x5c8afc;try{_0x5c8afc=new URL(_0x35ab36);}catch{throw CliErrors['validation']('Invalid\x20cdn.'+_0x11a9c7+_0xaebf77(0xe6)+_0x4efab8+'\x22\x20is\x20not\x20a\x20valid\x20URL.');}if(_0x5c8afc[_0xaebf77(0xda)]!==_0xaebf77(0x11a)||_0x5c8afc[_0xaebf77(0xf6)]||_0x5c8afc[_0xaebf77(0x109)]||_0x5c8afc[_0xaebf77(0x12e)]||_0x5c8afc['hash']||_0x5c8afc[_0xaebf77(0x10d)][_0xaebf77(0x10e)](/\/$/,'')!==_0x35ab36||_0x11a9c7===_0xaebf77(0xdb)&&_0x5c8afc[_0xaebf77(0xea)]!==_0x35ab36)throw CliErrors['validation'](_0xaebf77(0xf2)+_0x11a9c7+_0xaebf77(0xf4)+(_0x11a9c7===_0xaebf77(0xdb)?'origin':_0xaebf77(0xe2))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x35ab36;}export function resolveEnterpriseRoutingConfig(_0x537b52){const _0x414630=a258_0x55d7c2;return resolveEnterpriseRoutingManifest(_0x537b52)?.[_0x414630(0x124)];}export function resolveEnterpriseRoutingManifest(_0x405707){const _0x26d9e5=a258_0x55d7c2;if(_0x405707===undefined)return undefined;if(!_0x405707||typeof _0x405707!==_0x26d9e5(0xfb)||Array[_0x26d9e5(0x102)](_0x405707))throw CliErrors[_0x26d9e5(0xe4)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x405707);}export function readDomainConfigInput(_0x5f3b18){const _0x351f7b=a258_0x55d7c2,_0x5a6da9=isAbsolute(_0x5f3b18)?_0x5f3b18:resolve(process[_0x351f7b(0xf9)](),_0x5f3b18);if(!existsSync(_0x5a6da9))throw CliErrors[_0x351f7b(0xe4)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x5a6da9);let _0x48fb10;try{_0x48fb10=JSON[_0x351f7b(0x12a)](readFileSync(_0x5a6da9,_0x351f7b(0x10a)));}catch{throw CliErrors[_0x351f7b(0xe4)]('Invalid\x20domain\x20config\x20JSON:\x20'+_0x5a6da9);}if(!_0x48fb10||typeof _0x48fb10!=='object'||Array['isArray'](_0x48fb10))throw CliErrors[_0x351f7b(0xe4)](_0x351f7b(0x11c));const _0x3b8b1b=_0x48fb10;if('protocol'in _0x3b8b1b)return parseEnterpriseRoutingManifest(_0x3b8b1b);const _0x55094b=Object['keys'](_0x3b8b1b)[_0x351f7b(0x119)](_0x463120=>!DOMAIN_CONFIG_FIELDS['includes'](_0x463120));if(_0x55094b[_0x351f7b(0x11f)]>0x0)throw CliErrors[_0x351f7b(0xe4)](_0x351f7b(0x107)+_0x55094b[_0x351f7b(0x101)](',\x20'),_0x351f7b(0x115)+DOMAIN_CONFIG_FIELDS[_0x351f7b(0x101)](',\x20'));const _0x2b442d={};for(const _0x226072 of DOMAIN_CONFIG_FIELDS){_0x3b8b1b[_0x226072]!==undefined&&(_0x2b442d[_0x226072]=normalizeDomainOrigin(_0x226072,_0x3b8b1b[_0x226072]));}if(Object[_0x351f7b(0x112)](_0x2b442d)[_0x351f7b(0x11f)]===0x0)throw CliErrors[_0x351f7b(0xe4)](_0x351f7b(0x126));return{'mode':_0x351f7b(0x11d),'domains':_0x2b442d};}export function readDomainConfig(_0x45ff09){const _0x411f1c=a258_0x55d7c2;return readDomainConfigInput(_0x45ff09)[_0x411f1c(0x124)];}export function resolveDomainConfigInput(_0x301435){const _0x5cee1f=a258_0x55d7c2,_0x3fd78e=(_0x301435['str'](_0x5cee1f(0xec))||'')['trim'](),_0x43c5af=_0x3fd78e?readDomainConfigInput(_0x3fd78e):{'mode':'legacy','domains':{}},_0x533fe7=DOMAIN_CONFIG_FIELDS[_0x5cee1f(0x119)](_0x2bd56a=>Boolean((_0x301435[_0x5cee1f(0xfe)](DOMAIN_FLAGS[_0x2bd56a])||'')[_0x5cee1f(0xdf)]()));if(_0x43c5af[_0x5cee1f(0x12b)]===_0x5cee1f(0x117)&&_0x533fe7[_0x5cee1f(0x11f)]>0x0)throw CliErrors[_0x5cee1f(0xe4)](_0x5cee1f(0xe9),_0x5cee1f(0x116));for(const _0x978bd8 of DOMAIN_CONFIG_FIELDS){const _0x12d596=(_0x301435[_0x5cee1f(0xfe)](DOMAIN_FLAGS[_0x978bd8])||'')[_0x5cee1f(0xdf)]();if(_0x12d596)_0x43c5af[_0x5cee1f(0x124)][_0x978bd8]=normalizeDomainOrigin(_0x978bd8,_0x12d596);}return _0x43c5af;}function a258_0x19aa(){const _0x4ec41c=['parse','mode','Invalid\x20','runtime-domain','search','protocol','lovrabet','kbServiceDomain','kbDomain','userDomain','trim',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','string','base\x20URL','skillDomain','validation','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20',':\x20\x22','default','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','origin','3kczEOk','domain-config','12396WVxCQe','runtimeDomain','user-domain','localDomain','apiDomain','Invalid\x20cdn.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',':\x20expected\x20an\x20HTTPS\x20','api-domain','username','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','includes','cwd','470799JQfEwF','object','cdn','rabetbase-cli','str','kb-service-domain','782745ZaNihM','join','isArray','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','8201331KnKljY',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','\x22\x20is\x20not\x20a\x20valid\x20URL.','Unsupported\x20domain\x20config\x20field(s):\x20','7lJBsEe','password','utf8','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','platformDomain','href','replace','pathname',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','1668232XMhVBq','keys','657306DRkQqB','\x22\x20and\x20kind\x20\x22','Allowed\x20fields:\x20','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','enterprise-v1','appDomain','filter','https:','app-domain','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','legacy','certificate-domain','length','kind','kb-domain','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','1476200irVHbF','domains','skillHubDomain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','Enterprise\x20','certificateDomain'];a258_0x19aa=function(){return _0x4ec41c;};return a258_0x19aa();}export function resolveDomainFlags(_0x536c1d){const _0x133027=a258_0x55d7c2;return resolveDomainConfigInput(_0x536c1d)[_0x133027(0x124)];}export function parseEnterpriseRoutingManifest(_0x33cbc3){const _0x3151fc=a258_0x55d7c2;if(_0x33cbc3[_0x3151fc(0xda)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x33cbc3[_0x3151fc(0x120)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x3151fc(0xe4)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0x3151fc(0x114)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x33cbc3[_0x3151fc(0x124)]||typeof _0x33cbc3[_0x3151fc(0x124)]!==_0x3151fc(0xfb)||Array[_0x3151fc(0x102)](_0x33cbc3['domains']))throw CliErrors[_0x3151fc(0xe4)](_0x3151fc(0x122));if(!_0x33cbc3[_0x3151fc(0xfc)]||typeof _0x33cbc3[_0x3151fc(0xfc)]!=='object'||Array[_0x3151fc(0x102)](_0x33cbc3[_0x3151fc(0xfc)]))throw CliErrors[_0x3151fc(0xe4)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x1bd737=_0x33cbc3[_0x3151fc(0x124)],_0x4bb5ce=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x3151fc(0x119)](_0x2a5ada=>_0x1bd737[_0x2a5ada]===undefined);if(_0x4bb5ce[_0x3151fc(0x11f)]>0x0)throw CliErrors[_0x3151fc(0xe4)](_0x3151fc(0x127)+_0x4bb5ce[_0x3151fc(0x101)](',\x20'));if(_0x1bd737[_0x3151fc(0xf0)]===undefined!==(_0x1bd737[_0x3151fc(0x129)]===undefined))throw CliErrors[_0x3151fc(0xe4)](_0x3151fc(0x10b));const _0x2e0dda=_0x33cbc3[_0x3151fc(0xfc)],_0x4f7d27=Object[_0x3151fc(0x112)](_0x2e0dda)[_0x3151fc(0x119)](_0x4f399d=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x3151fc(0xf8)](_0x4f399d));if(_0x4f7d27[_0x3151fc(0x11f)]>0x0)throw CliErrors[_0x3151fc(0xe4)](_0x3151fc(0xe8)+_0x4f7d27['join'](',\x20'),_0x3151fc(0x115)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x3151fc(0x101)](',\x20'));const _0x276c59=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x229054=>_0x2e0dda[_0x229054]===undefined);if(_0x276c59[_0x3151fc(0x11f)]>0x0)throw CliErrors['validation'](_0x3151fc(0xe5)+_0x276c59[_0x3151fc(0x101)](',\x20'));const _0x32ecb3={};for(const _0x2df234 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x32ecb3[_0x2df234]=normalizeCdnBaseUrl(_0x2df234,_0x2e0dda[_0x2df234]);}const _0x3730d4={},_0x270175={};for(const _0x2090dd of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x2958fa=_0x1bd737[_0x2090dd];if(_0x2958fa===undefined)continue;const _0x3ac125=normalizeRoutingDomainValue(_0x2090dd,_0x2958fa);_0x3730d4[_0x2090dd]=_0x3ac125;const _0x2cc4ae=ENTERPRISE_TO_LOCAL_FIELD[_0x2090dd];_0x2cc4ae&&(_0x270175[_0x2cc4ae]=_0x3ac125);}return{'mode':_0x3151fc(0x117),'domains':_0x270175,'manifestDomains':_0x3730d4,'cdn':_0x32ecb3};}
1
+ const a258_0x2f4aa5=a258_0x2484;(function(_0x19147d,_0x8453a6){const _0x32810b=a258_0x2484,_0x30cd28=_0x19147d();while(!![]){try{const _0x17900f=parseInt(_0x32810b(0x101))/0x1*(-parseInt(_0x32810b(0x10c))/0x2)+-parseInt(_0x32810b(0x102))/0x3+parseInt(_0x32810b(0x117))/0x4+parseInt(_0x32810b(0xfe))/0x5+-parseInt(_0x32810b(0x127))/0x6+parseInt(_0x32810b(0xf9))/0x7*(parseInt(_0x32810b(0x138))/0x8)+-parseInt(_0x32810b(0x10f))/0x9*(-parseInt(_0x32810b(0xec))/0xa);if(_0x17900f===_0x8453a6)break;else _0x30cd28['push'](_0x30cd28['shift']());}catch(_0x562304){_0x30cd28['push'](_0x30cd28['shift']());}}}(a258_0x42ae,0x8dd25));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=[a258_0x2f4aa5(0x12e),a258_0x2f4aa5(0x100),a258_0x2f4aa5(0xf4),a258_0x2f4aa5(0x112),'kbDomain',a258_0x2f4aa5(0x125),a258_0x2f4aa5(0xf1),a258_0x2f4aa5(0xeb),a258_0x2f4aa5(0xed)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a258_0x2f4aa5(0xee),'runtimeDomain':a258_0x2f4aa5(0x120),'skillDomain':a258_0x2f4aa5(0x135),'kbDomain':a258_0x2f4aa5(0x137),'kbServiceDomain':a258_0x2f4aa5(0x115),'appDomain':a258_0x2f4aa5(0x136),'localDomain':a258_0x2f4aa5(0xe5),'certificateDomain':a258_0x2f4aa5(0xff)};export const LEGACY_DOMAIN_CONFIG_FIELDS=['agentDomain',a258_0x2f4aa5(0x116),'skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':'apiDomain','runtimeDomain':a258_0x2f4aa5(0xf4),'skillDomain':'skillDomain','kbDomain':a258_0x2f4aa5(0xf6),'kbServiceDomain':a258_0x2f4aa5(0x125),'appDomain':a258_0x2f4aa5(0xf1),'localDomain':a258_0x2f4aa5(0xeb),'certificateDomain':'certificateDomain'},ROUTING_CONSUMER=a258_0x2f4aa5(0x11a);export function normalizeDomainOrigin(_0x2d07ac,_0x4d5a29){const _0x217d5f=a258_0x2f4aa5;if(typeof _0x4d5a29!=='string'||!_0x4d5a29[_0x217d5f(0x103)]())throw CliErrors[_0x217d5f(0x11d)](_0x217d5f(0x111)+_0x2d07ac+_0x217d5f(0x11f));let _0x2f08db;try{_0x2f08db=new URL(_0x4d5a29[_0x217d5f(0x103)]());}catch{throw CliErrors['validation'](_0x217d5f(0x111)+_0x2d07ac+':\x20\x22'+_0x4d5a29+_0x217d5f(0x105));}if(_0x2f08db[_0x217d5f(0x130)]!=='https:'||_0x2f08db[_0x217d5f(0xea)]||_0x2f08db[_0x217d5f(0x12b)]||_0x2f08db[_0x217d5f(0x12f)]!=='/'&&_0x2f08db['pathname']!==''||_0x2f08db[_0x217d5f(0x106)]||_0x2f08db[_0x217d5f(0x123)])throw CliErrors[_0x217d5f(0x11d)](_0x217d5f(0x111)+_0x2d07ac+_0x217d5f(0x104),_0x217d5f(0x128));return _0x2f08db['origin'];}export function normalizeRoutingDomainValue(_0x2890f8,_0x35932e){const _0x2a99a6=a258_0x2f4aa5;if(typeof _0x35932e==='string')return normalizeDomainOrigin(_0x2890f8,_0x35932e);if(!_0x35932e||typeof _0x35932e!==_0x2a99a6(0x11e)||Array['isArray'](_0x35932e))throw CliErrors[_0x2a99a6(0x11d)](_0x2a99a6(0x111)+_0x2890f8+_0x2a99a6(0xf0));const _0x4ec63d=_0x35932e,_0x1dc835=_0x4ec63d[ROUTING_CONSUMER]??_0x4ec63d['default'];if(_0x1dc835===undefined)throw CliErrors['validation']('Enterprise\x20'+_0x2890f8+_0x2a99a6(0xe7)+ROUTING_CONSUMER+_0x2a99a6(0xf7));return normalizeDomainOrigin(_0x2890f8,_0x1dc835);}function a258_0x2484(_0xf0587b,_0x35b86a){_0xf0587b=_0xf0587b-0xe5;const _0x42ae81=a258_0x42ae();let _0x248428=_0x42ae81[_0xf0587b];return _0x248428;}export function normalizeCdnBaseUrl(_0x4c233f,_0x2a1468){const _0x3fd6ef=a258_0x2f4aa5;if(typeof _0x2a1468!=='string'||!_0x2a1468[_0x3fd6ef(0x103)]())throw CliErrors[_0x3fd6ef(0x11d)]('Invalid\x20cdn.'+_0x4c233f+_0x3fd6ef(0x11b));const _0x7f4cdd=_0x2a1468[_0x3fd6ef(0x103)]()[_0x3fd6ef(0x121)](/\/$/,'');let _0x14ffeb;try{_0x14ffeb=new URL(_0x7f4cdd);}catch{throw CliErrors[_0x3fd6ef(0x11d)](_0x3fd6ef(0xfa)+_0x4c233f+_0x3fd6ef(0xf3)+_0x2a1468+_0x3fd6ef(0x105));}if(_0x14ffeb[_0x3fd6ef(0x130)]!==_0x3fd6ef(0x129)||_0x14ffeb[_0x3fd6ef(0xea)]||_0x14ffeb[_0x3fd6ef(0x12b)]||_0x14ffeb[_0x3fd6ef(0x106)]||_0x14ffeb[_0x3fd6ef(0x123)]||_0x14ffeb['href'][_0x3fd6ef(0x121)](/\/$/,'')!==_0x7f4cdd||_0x4c233f===_0x3fd6ef(0x110)&&_0x14ffeb[_0x3fd6ef(0x12d)]!==_0x7f4cdd)throw CliErrors[_0x3fd6ef(0x11d)](_0x3fd6ef(0xfa)+_0x4c233f+':\x20expected\x20an\x20HTTPS\x20'+(_0x4c233f===_0x3fd6ef(0x110)?_0x3fd6ef(0x12d):_0x3fd6ef(0xe8))+_0x3fd6ef(0xe9));return _0x7f4cdd;}export function resolveEnterpriseRoutingConfig(_0x294e4e){const _0x5a65cf=a258_0x2f4aa5;return resolveEnterpriseRoutingManifest(_0x294e4e)?.[_0x5a65cf(0x10d)];}export function resolveEnterpriseRoutingManifest(_0x4ee91f){const _0x20090d=a258_0x2f4aa5;if(_0x4ee91f===undefined)return undefined;if(!_0x4ee91f||typeof _0x4ee91f!=='object'||Array[_0x20090d(0xfd)](_0x4ee91f))throw CliErrors[_0x20090d(0x11d)](_0x20090d(0x108));return parseEnterpriseRoutingManifest(_0x4ee91f);}export function readDomainConfigInput(_0x32d44b){const _0x43eb75=a258_0x2f4aa5,_0x3c9c77=isAbsolute(_0x32d44b)?_0x32d44b:resolve(process[_0x43eb75(0xef)](),_0x32d44b);if(!existsSync(_0x3c9c77))throw CliErrors[_0x43eb75(0x11d)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x3c9c77);let _0x395f96;try{_0x395f96=JSON[_0x43eb75(0x122)](readFileSync(_0x3c9c77,_0x43eb75(0x109)));}catch{throw CliErrors['validation'](_0x43eb75(0x12c)+_0x3c9c77);}if(!_0x395f96||typeof _0x395f96!==_0x43eb75(0x11e)||Array[_0x43eb75(0xfd)](_0x395f96))throw CliErrors[_0x43eb75(0x11d)](_0x43eb75(0x131));const _0x52750c=_0x395f96;if(_0x43eb75(0x130)in _0x52750c)return parseEnterpriseRoutingManifest(_0x52750c);const _0x2d2e20=Object[_0x43eb75(0x132)](_0x52750c)[_0x43eb75(0x11c)](_0x3b5d7e=>!DOMAIN_CONFIG_FIELDS[_0x43eb75(0x114)](_0x3b5d7e));if(_0x2d2e20[_0x43eb75(0x10e)]>0x0)throw CliErrors[_0x43eb75(0x11d)](_0x43eb75(0xfb)+_0x2d2e20[_0x43eb75(0x124)](',\x20'),_0x43eb75(0x118)+DOMAIN_CONFIG_FIELDS['join'](',\x20'));const _0x5e2c7b={};for(const _0x51eeb4 of DOMAIN_CONFIG_FIELDS){_0x52750c[_0x51eeb4]!==undefined&&(_0x5e2c7b[_0x51eeb4]=normalizeDomainOrigin(_0x51eeb4,_0x52750c[_0x51eeb4]));}if(Object['keys'](_0x5e2c7b)[_0x43eb75(0x10e)]===0x0)throw CliErrors['validation'](_0x43eb75(0x107));return{'mode':_0x43eb75(0x12a),'domains':_0x5e2c7b};}export function readDomainConfig(_0x1e3979){const _0x2a7bc1=a258_0x2f4aa5;return readDomainConfigInput(_0x1e3979)[_0x2a7bc1(0x10d)];}export function resolveDomainConfigInput(_0x5e3585){const _0x5e28e9=a258_0x2f4aa5,_0x1f303c=(_0x5e3585['str'](_0x5e28e9(0xf2))||'')[_0x5e28e9(0x103)](),_0x551aa2=_0x1f303c?readDomainConfigInput(_0x1f303c):{'mode':_0x5e28e9(0x12a),'domains':{}},_0x178253=DOMAIN_CONFIG_FIELDS[_0x5e28e9(0x11c)](_0x589cc5=>Boolean((_0x5e3585[_0x5e28e9(0x113)](DOMAIN_FLAGS[_0x589cc5])||'')[_0x5e28e9(0x103)]()));if(_0x551aa2[_0x5e28e9(0xfc)]===_0x5e28e9(0x126)&&_0x178253[_0x5e28e9(0x10e)]>0x0)throw CliErrors[_0x5e28e9(0x11d)](_0x5e28e9(0xf5),_0x5e28e9(0xf8));for(const _0x407767 of DOMAIN_CONFIG_FIELDS){const _0x3f44b0=(_0x5e3585[_0x5e28e9(0x113)](DOMAIN_FLAGS[_0x407767])||'')[_0x5e28e9(0x103)]();if(_0x3f44b0)_0x551aa2[_0x5e28e9(0x10d)][_0x407767]=normalizeDomainOrigin(_0x407767,_0x3f44b0);}return _0x551aa2;}export function resolveDomainFlags(_0x3afedc){return resolveDomainConfigInput(_0x3afedc)['domains'];}function a258_0x42ae(){const _0x3970f5=['3231490BqYiOr','certificate-domain','apiDomain','120lyaIMQ','1886946powUha','trim',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','\x22\x20is\x20not\x20a\x20valid\x20URL.','search','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','utf8','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','cdn','17872DmxoQh','domains','length','2084985RIJRcA','lovrabet','Invalid\x20','skillDomain','str','includes','kb-service-domain','platformDomain','2429212NzOyMe','Allowed\x20fields:\x20','\x22\x20and\x20kind\x20\x22','rabetbase-cli',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','filter','validation','object',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','runtime-domain','replace','parse','hash','join','kbServiceDomain','enterprise-v1','3328692QdBjbH','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','https:','legacy','password','Invalid\x20domain\x20config\x20JSON:\x20','origin','userDomain','pathname','protocol','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','keys','kind','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','skill-domain','app-domain','kb-domain','8URxSrF','local-domain','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','base\x20URL','\x20without\x20credentials,\x20query,\x20or\x20fragment.','username','localDomain','50BBSysL','certificateDomain','api-domain','cwd',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','appDomain','domain-config',':\x20\x22','runtimeDomain','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','kbDomain','\x20and\x20has\x20no\x20default.','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','2975413UNodhQ','Invalid\x20cdn.','Unsupported\x20domain\x20config\x20field(s):\x20','mode','isArray'];a258_0x42ae=function(){return _0x3970f5;};return a258_0x42ae();}export function parseEnterpriseRoutingManifest(_0x46ae2f){const _0xd79791=a258_0x2f4aa5;if(_0x46ae2f[_0xd79791(0x130)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x46ae2f[_0xd79791(0x133)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0xd79791(0x11d)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+_0xd79791(0x119)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x46ae2f[_0xd79791(0x10d)]||typeof _0x46ae2f[_0xd79791(0x10d)]!==_0xd79791(0x11e)||Array['isArray'](_0x46ae2f[_0xd79791(0x10d)]))throw CliErrors[_0xd79791(0x11d)](_0xd79791(0x10a));if(!_0x46ae2f[_0xd79791(0x10b)]||typeof _0x46ae2f[_0xd79791(0x10b)]!==_0xd79791(0x11e)||Array[_0xd79791(0xfd)](_0x46ae2f[_0xd79791(0x10b)]))throw CliErrors[_0xd79791(0x11d)](_0xd79791(0xe6));const _0xb825ff=_0x46ae2f[_0xd79791(0x10d)],_0x5a12b3=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0xd79791(0x11c)](_0x15d3ca=>_0xb825ff[_0x15d3ca]===undefined);if(_0x5a12b3[_0xd79791(0x10e)]>0x0)throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x5a12b3[_0xd79791(0x124)](',\x20'));if(_0xb825ff['localDomain']===undefined!==(_0xb825ff[_0xd79791(0xed)]===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x3d98ca=_0x46ae2f[_0xd79791(0x10b)],_0x49987e=Object[_0xd79791(0x132)](_0x3d98ca)[_0xd79791(0x11c)](_0x26d235=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0xd79791(0x114)](_0x26d235));if(_0x49987e[_0xd79791(0x10e)]>0x0)throw CliErrors[_0xd79791(0x11d)](_0xd79791(0x134)+_0x49987e[_0xd79791(0x124)](',\x20'),_0xd79791(0x118)+ENTERPRISE_ROUTING_CDN_FIELDS[_0xd79791(0x124)](',\x20'));const _0xd6d794=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0xd79791(0x11c)](_0x1b7fbf=>_0x3d98ca[_0x1b7fbf]===undefined);if(_0xd6d794['length']>0x0)throw CliErrors[_0xd79791(0x11d)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20'+_0xd6d794[_0xd79791(0x124)](',\x20'));const _0x439f8f={};for(const _0x24c2d4 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x439f8f[_0x24c2d4]=normalizeCdnBaseUrl(_0x24c2d4,_0x3d98ca[_0x24c2d4]);}const _0x532d7f={},_0x95b84a={};for(const _0x7b5b54 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x417a98=_0xb825ff[_0x7b5b54];if(_0x417a98===undefined)continue;const _0x4256c8=normalizeRoutingDomainValue(_0x7b5b54,_0x417a98);_0x532d7f[_0x7b5b54]=_0x4256c8;const _0x452a7d=ENTERPRISE_TO_LOCAL_FIELD[_0x7b5b54];_0x452a7d&&(_0x95b84a[_0x452a7d]=_0x4256c8);}return{'mode':_0xd79791(0x126),'domains':_0x95b84a,'manifestDomains':_0x532d7f,'cdn':_0x439f8f};}
@@ -1 +1 @@
1
- (function(_0x439ebd,_0x4cf121){const _0x372aaf=a259_0x58ef,_0x1a3f05=_0x439ebd();while(!![]){try{const _0x3490f6=parseInt(_0x372aaf(0x185))/0x1+-parseInt(_0x372aaf(0x192))/0x2+parseInt(_0x372aaf(0x18d))/0x3*(-parseInt(_0x372aaf(0x195))/0x4)+parseInt(_0x372aaf(0x194))/0x5*(parseInt(_0x372aaf(0x193))/0x6)+parseInt(_0x372aaf(0x184))/0x7*(-parseInt(_0x372aaf(0x188))/0x8)+parseInt(_0x372aaf(0x196))/0x9+parseInt(_0x372aaf(0x18b))/0xa;if(_0x3490f6===_0x4cf121)break;else _0x1a3f05['push'](_0x1a3f05['shift']());}catch(_0x508788){_0x1a3f05['push'](_0x1a3f05['shift']());}}}(a259_0x3b59,0x2008a));function a259_0x58ef(_0x385b44,_0x39ee79){_0x385b44=_0x385b44-0x183;const _0x3b5929=a259_0x3b59();let _0x58ef98=_0x3b5929[_0x385b44];return _0x58ef98;}import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{join}from'node:path';import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME='rabetbase.domain-routing.json';function a259_0x3b59(){const _0x20d7f8=['4olzhkz','213831FgztvV','official','http://localhost','254093JhWYMu','212188CjDSVV','now','utf8','32cGNhwW','origin','/cert/lovrabet-dev.json','1274060vtWGlH','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','535635RFMueF','independent','lovrabet','.tmp','pid','168778RPjxEn','1302TlJuTN','4055RMOqTr'];a259_0x3b59=function(){return _0x20d7f8;};return a259_0x3b59();}export const PROJECT_DOMAIN_ROUTING_PROTOCOL='lovrabet-project-domain-routing/v1';export function getProjectDomainRoutingManifest(){const _0x37e833=a259_0x58ef,_0x1f3ac1=getActiveRegion(),_0x2a39c9=isIndependentDeployment(),_0x3aedf8=getOfficialRoutingProfile(_0x1f3ac1),_0x1abbf5=getLocalDomain(),_0xa7de3c=getCertificateDomain(),_0xa1e730=getActiveCdn();if(!!_0x1abbf5!==!!_0xa7de3c)throw new Error(_0x37e833(0x18c));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2a39c9?_0x37e833(0x18e):_0x37e833(0x197),'region':_0x2a39c9?null:_0x1f3ac1,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0xa1e730,'local':_0x1abbf5&&_0xa7de3c?{'origin':_0x1abbf5,'certificateUrl':_0xa7de3c+_0x37e833(0x18a)}:_0x2a39c9?{'origin':_0x37e833(0x183)}:{'origin':_0x3aedf8['local'][_0x37e833(0x189)],'certificateUrl':_0xa1e730[_0x37e833(0x18f)]+_0x37e833(0x18a)}};}export function writeProjectDomainRoutingManifest(_0xd93bfe){const _0x3dda65=a259_0x58ef,_0x720bbf=getProjectDomainRoutingManifest(),_0x1dda8c=join(_0xd93bfe,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x1d6ffe=JSON['stringify'](_0x720bbf,null,0x2)+'\x0a';try{if(readFileSync(_0x1dda8c,_0x3dda65(0x187))===_0x1d6ffe)return{'path':_0x1dda8c,'manifest':_0x720bbf,'changed':![]};}catch{}const _0x2854f9=_0x1dda8c+'.'+process[_0x3dda65(0x191)]+'.'+Date[_0x3dda65(0x186)]()+_0x3dda65(0x190);try{writeFileSync(_0x2854f9,_0x1d6ffe,{'encoding':_0x3dda65(0x187),'mode':0x1a4}),renameSync(_0x2854f9,_0x1dda8c);}catch(_0x13c70f){try{unlinkSync(_0x2854f9);}catch{}throw _0x13c70f;}return{'path':_0x1dda8c,'manifest':_0x720bbf,'changed':!![]};}
1
+ const a259_0xca9bec=a259_0x58d0;function a259_0x58d0(_0x3e824e,_0x108585){_0x3e824e=_0x3e824e-0xe5;const _0x2512d4=a259_0x2512();let _0x58d0d7=_0x2512d4[_0x3e824e];return _0x58d0d7;}(function(_0x3e2e25,_0x4bbe40){const _0x422f6b=a259_0x58d0,_0x118046=_0x3e2e25();while(!![]){try{const _0x22395b=parseInt(_0x422f6b(0xf2))/0x1+-parseInt(_0x422f6b(0xe7))/0x2*(-parseInt(_0x422f6b(0xf5))/0x3)+parseInt(_0x422f6b(0xf0))/0x4*(parseInt(_0x422f6b(0xec))/0x5)+-parseInt(_0x422f6b(0xef))/0x6+-parseInt(_0x422f6b(0xf1))/0x7+-parseInt(_0x422f6b(0xee))/0x8+parseInt(_0x422f6b(0xe6))/0x9*(parseInt(_0x422f6b(0xf9))/0xa);if(_0x22395b===_0x4bbe40)break;else _0x118046['push'](_0x118046['shift']());}catch(_0x1fa901){_0x118046['push'](_0x118046['shift']());}}}(a259_0x2512,0xa34e8));import{readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a259_0x2512(){const _0x42d2c8=['now','9EPnRsg','46zbbJvw','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','official','stringify','.tmp','5xKheJi','origin','8169176zdvUGb','5791446rWnmPR','1502060jhsBgi','7509719OoLDUs','861050gyPuzp','independent','lovrabet-project-domain-routing/v1','168351MrNrfr','/cert/lovrabet-dev.json','utf8','local','12008530dkHsDf','http://localhost'];a259_0x2512=function(){return _0x42d2c8;};return a259_0x2512();}import{join}from'node:path';import{getActiveRegion,getActiveCdn,getApiDomain,getAppDomain,getCertificateDomain,getKbDomain,getLocalDomain,getRuntimeDomain,getSkillDomain,getUserDomain,isIndependentDeployment}from'../constant/domain.js';import{getOfficialRoutingProfile}from'../constant/routing-profile.js';export const PROJECT_DOMAIN_ROUTING_FILE_NAME='rabetbase.domain-routing.json';export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a259_0xca9bec(0xf4);export function getProjectDomainRoutingManifest(){const _0x5d07c1=a259_0xca9bec,_0x21aeed=getActiveRegion(),_0x2d42aa=isIndependentDeployment(),_0x2e1dc4=getOfficialRoutingProfile(_0x21aeed),_0x31db06=getLocalDomain(),_0x5351c5=getCertificateDomain(),_0x275a31=getActiveCdn();if(!!_0x31db06!==!!_0x5351c5)throw new Error(_0x5d07c1(0xe8));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2d42aa?_0x5d07c1(0xf3):_0x5d07c1(0xe9),'region':_0x2d42aa?null:_0x21aeed,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x275a31,'local':_0x31db06&&_0x5351c5?{'origin':_0x31db06,'certificateUrl':_0x5351c5+_0x5d07c1(0xf6)}:_0x2d42aa?{'origin':_0x5d07c1(0xfa)}:{'origin':_0x2e1dc4[_0x5d07c1(0xf8)][_0x5d07c1(0xed)],'certificateUrl':_0x275a31['lovrabet']+_0x5d07c1(0xf6)}};}export function writeProjectDomainRoutingManifest(_0x45e645){const _0x1d1d19=a259_0xca9bec,_0x34f70b=getProjectDomainRoutingManifest(),_0x127296=join(_0x45e645,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x40d430=JSON[_0x1d1d19(0xea)](_0x34f70b,null,0x2)+'\x0a';try{if(readFileSync(_0x127296,_0x1d1d19(0xf7))===_0x40d430)return{'path':_0x127296,'manifest':_0x34f70b,'changed':![]};}catch{}const _0x341bd2=_0x127296+'.'+process['pid']+'.'+Date[_0x1d1d19(0xe5)]()+_0x1d1d19(0xeb);try{writeFileSync(_0x341bd2,_0x40d430,{'encoding':_0x1d1d19(0xf7),'mode':0x1a4}),renameSync(_0x341bd2,_0x127296);}catch(_0x2b8f3d){try{unlinkSync(_0x341bd2);}catch{}throw _0x2b8f3d;}return{'path':_0x127296,'manifest':_0x34f70b,'changed':!![]};}