@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-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/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.d.ts +1 -0
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-analysis.js +1 -1
  297. package/lib/core/cross-db-relation.js +1 -1
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/instant-api-policy/endpoints.js +1 -1
  302. package/lib/core/kb-management-client.js +1 -1
  303. package/lib/core/kb-search-client.js +1 -1
  304. package/lib/core/page/file-system.js +1 -1
  305. package/lib/core/page/hash.js +1 -1
  306. package/lib/core/page/lock.js +1 -1
  307. package/lib/core/page/lr-smart-jsx.js +1 -1
  308. package/lib/core/sql-index-auditor.js +1 -1
  309. package/lib/core/sql-sync/config.js +1 -1
  310. package/lib/core/sql-sync/file-system.js +1 -1
  311. package/lib/core/sql-sync/hash.js +1 -1
  312. package/lib/core/sql-sync/lock.js +1 -1
  313. package/lib/core/sql-sync/utils.js +1 -1
  314. package/lib/core/sql-validator.js +1 -1
  315. package/lib/errors.js +1 -1
  316. package/lib/framework/build-all-flags.js +1 -1
  317. package/lib/framework/error-output.js +1 -1
  318. package/lib/framework/explicit-yes.js +1 -1
  319. package/lib/framework/flags.js +1 -1
  320. package/lib/framework/help.js +1 -1
  321. package/lib/framework/index.js +1 -1
  322. package/lib/framework/output.js +1 -1
  323. package/lib/framework/response.js +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.d.ts +2 -1
  332. package/lib/generated/official-routing.js +1 -1
  333. package/lib/generated/routing-contract.js +1 -1
  334. package/lib/help.js +1 -1
  335. package/lib/postinstall.js +1 -1
  336. package/lib/runtime/confirmation.js +1 -1
  337. package/lib/runtime/event.js +1 -1
  338. package/lib/runtime/index.js +1 -1
  339. package/lib/runtime/queue.js +1 -1
  340. package/lib/runtime/resolve.js +1 -1
  341. package/lib/services/dataset-design/checkpoint.js +1 -1
  342. package/lib/services/dataset-design/commands.js +1 -1
  343. package/lib/services/dataset-design/contract.js +1 -1
  344. package/lib/skills/builtin-skill.js +1 -1
  345. package/lib/skills/main.js +1 -1
  346. package/lib/skills/npx-skills-add.js +1 -1
  347. package/lib/skills/skill-presence.js +1 -1
  348. package/lib/telemetry/cli-command-trace.js +1 -1
  349. package/lib/telemetry/cli-help-trace.js +1 -1
  350. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  351. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  352. package/lib/telemetry/send-cli-trace-log.js +1 -1
  353. package/lib/utils/ai_config.js +1 -1
  354. package/lib/utils/apply-jq-filter.js +1 -1
  355. package/lib/utils/cdn-config.js +1 -1
  356. package/lib/utils/check-sdk-version.js +1 -1
  357. package/lib/utils/cli-version-check.js +1 -1
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +1 -1
  375. package/skills/rabetbase/SKILL.md +1 -1
  376. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  377. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  378. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a255_0x42536d=a255_0x1eab;(function(_0x372fd9,_0x3ca851){const _0x23be4c=a255_0x1eab,_0x351eed=_0x372fd9();while(!![]){try{const _0x3df850=parseInt(_0x23be4c(0x1e4))/0x1+parseInt(_0x23be4c(0x205))/0x2+-parseInt(_0x23be4c(0x1e3))/0x3+parseInt(_0x23be4c(0x207))/0x4+parseInt(_0x23be4c(0x1fa))/0x5*(parseInt(_0x23be4c(0x1f5))/0x6)+-parseInt(_0x23be4c(0x1f1))/0x7*(-parseInt(_0x23be4c(0x1ea))/0x8)+-parseInt(_0x23be4c(0x201))/0x9*(parseInt(_0x23be4c(0x1f2))/0xa);if(_0x3df850===_0x3ca851)break;else _0x351eed['push'](_0x351eed['shift']());}catch(_0x381459){_0x351eed['push'](_0x351eed['shift']());}}}(a255_0x99bf,0x93f89));function a255_0x99bf(){const _0x13199a=['sqlRoot','sqls','trimStart','1565556oXnxsB','1153902NmEdam','description','map','\x20-->','filter','path','136jkAjKM','question','declaration','\x20[y/N]\x20','stdin','split','dbId','346003iNscvW','60ZRJhEM','.rabetbase/sql','endsWith','1152hRpNiY','toLowerCase','entries','mode','trim','800lBLDUm','test','length','version','syncedAt','--\x20@lovrabet.','exec','3900177TxigyK','join','mybatisXml','lastSync','1484336WJlZMh','dbName','3843904GNoOEM','sqlConfig','sqlCode','apps','sqlName','slice'];a255_0x99bf=function(){return _0x13199a;};return a255_0x99bf();}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=a255_0x42536d(0x1f3);export function buildSqlLockEntry(_0x37ef2f,_0x4ebb15,_0x4db145,_0x521f8a){const _0x213e0e=a255_0x42536d,_0x559f21=detectSqlMode(_0x4ebb15);return{'path':buildSqlRelativePath(_0x37ef2f[_0x213e0e(0x209)],_0x37ef2f[_0x213e0e(0x1de)],_0x521f8a?.[_0x213e0e(0x206)],_0x559f21,_0x37ef2f[_0x213e0e(0x1f0)]),'hash':_0x4db145,'remoteId':_0x37ef2f['id'],'version':_0x37ef2f[_0x213e0e(0x1fd)],'dbId':Number(_0x37ef2f['dbId']),'dbName':_0x521f8a?.['dbName'],'sqlName':_0x37ef2f[_0x213e0e(0x1de)],'sqlConfig':_0x37ef2f[_0x213e0e(0x208)]??undefined,'mode':_0x559f21};}export function cloneSqlLockData(_0x5b485c){const _0x151f83=a255_0x42536d;return{'apps':Object['fromEntries'](Object[_0x151f83(0x1f7)](_0x5b485c[_0x151f83(0x20a)])[_0x151f83(0x1e6)](([_0x2d24df,_0x25860d])=>[_0x2d24df,{'sqlRoot':_0x25860d[_0x151f83(0x1e0)],'lastSync':_0x25860d[_0x151f83(0x204)],'sqls':{..._0x25860d[_0x151f83(0x1e1)]}}]))};}export function ensureRemoteSqlContent(_0x3ba24c){return _0x3ba24c['sqlContent']??'';}export function buildLocalSqlFileContent(_0x4ffa44,_0x2f8ed3,_0x12ad2d){const _0x323655=a255_0x42536d,_0x2dcf94=_0x12ad2d?.[_0x323655(0x1f8)]??detectSqlMode(_0x2f8ed3),_0x4624ab=stripLocalSqlMetadata(_0x2f8ed3,_0x2dcf94)[_0x323655(0x1f9)](),_0xeb09ff=buildMetadataHeaderLines({'sqlCode':_0x4ffa44[_0x323655(0x209)],'sqlName':_0x4ffa44[_0x323655(0x1de)],'dbId':_0x4ffa44['dbId'],'dbName':_0x12ad2d?.[_0x323655(0x206)],'mode':_0x2dcf94,'syncedAt':_0x12ad2d?.['syncedAt'],'description':_0x12ad2d?.[_0x323655(0x1e5)]},_0x2dcf94),_0x283faf=_0x2dcf94===_0x323655(0x203)?splitXmlDeclaration(_0x4624ab):{'body':_0x4624ab},_0x363890=[..._0x283faf[_0x323655(0x1ec)]?[_0x283faf['declaration']]:[],..._0xeb09ff,'',_0x283faf['body'][_0x323655(0x1e2)]()],_0x543c90=_0x363890[_0x323655(0x202)]('\x0a');return _0x543c90[_0x323655(0x1f4)]('\x0a')?_0x543c90:_0x543c90+'\x0a';}export function stripLocalSqlMetadata(_0xb436a5,_0x2c4428){const _0x1fc6d1=a255_0x42536d;if(_0x2c4428===_0x1fc6d1(0x203)){const {declaration:_0x549f7a,body:_0x41a38b}=splitXmlDeclaration(_0xb436a5['replace'](/\r\n/g,'\x0a')),_0x138b1d=stripLeadingMetadataLines(_0x41a38b,/^\s*<!--\s*@lovrabet\./);return _0x549f7a?''+_0x549f7a+(_0x138b1d?'\x0a'+_0x138b1d:''):_0x138b1d;}return stripLeadingMetadataLines(_0xb436a5['replace'](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x2f4041,_0x17b11c){const _0x39bc2b=a255_0x42536d;if(_0x17b11c?.[_0x39bc2b(0x1f8)])return _0x17b11c[_0x39bc2b(0x1f8)];return detectSqlMode(_0x2f4041);}export function resolveSqlFileName(_0x519167,_0x45544e,_0x56b36f){const _0x191923=a255_0x42536d;if(_0x56b36f?.['path'])return _0x56b36f[_0x191923(0x1e9)];if(_0x56b36f?.[_0x191923(0x1de)]||_0x56b36f?.[_0x191923(0x206)])return buildSqlRelativePath(_0x519167,_0x56b36f?.[_0x191923(0x1de)],_0x56b36f?.['dbName'],resolveSqlMode(_0x45544e,_0x56b36f),_0x56b36f?.[_0x191923(0x1f0)]);return buildDefaultSqlFileName(_0x519167,resolveSqlMode(_0x45544e,_0x56b36f));}function a255_0x1eab(_0x3b6f5e,_0x411a6f){_0x3b6f5e=_0x3b6f5e-0x1de;const _0x99bfb8=a255_0x99bf();let _0x1eab84=_0x99bfb8[_0x3b6f5e];return _0x1eab84;}export function resolveSqlLocalDir(_0x55f94f,_0x289099){return join(_0x55f94f,SQL_LOCAL_REL_DIR,_0x289099);}export async function confirmForceOverwrite(_0x325aee){const _0x31b9b7=a255_0x42536d,_0x16436a=createInterface({'input':process[_0x31b9b7(0x1ee)],'output':process['stderr']}),_0x56738e=await new Promise(_0xec045a=>{const _0x119f09=_0x31b9b7;_0x16436a[_0x119f09(0x1eb)](_0x325aee+_0x119f09(0x1ed),_0xec045a);});return _0x16436a['close'](),['y','yes']['includes'](_0x56738e[_0x31b9b7(0x1f9)]()[_0x31b9b7(0x1f6)]());}export function findSqlLockScope(_0x4beaef,_0x1cbd36){const _0x5eaa5f=a255_0x42536d;return _0x4beaef[_0x5eaa5f(0x20a)][_0x1cbd36];}function buildMetadataHeaderLines(_0x1b1df8,_0x377e72){const _0x5643d7=a255_0x42536d,_0x2adf88=[[_0x5643d7(0x209),_0x1b1df8[_0x5643d7(0x209)]],[_0x5643d7(0x1de),_0x1b1df8['sqlName']],[_0x5643d7(0x1f0),_0x1b1df8[_0x5643d7(0x1f0)]],['dbName',_0x1b1df8[_0x5643d7(0x206)]],[_0x5643d7(0x1f8),_0x1b1df8[_0x5643d7(0x1f8)]],[_0x5643d7(0x1fe),_0x1b1df8[_0x5643d7(0x1fe)]],[_0x5643d7(0x1e5),_0x1b1df8[_0x5643d7(0x1e5)]]];if(_0x377e72===_0x5643d7(0x203))return _0x2adf88[_0x5643d7(0x1e8)](([,_0x39d67b])=>_0x39d67b!==undefined&&_0x39d67b!==null&&String(_0x39d67b)['trim']()!=='')['map'](([_0x149748,_0x50a873])=>'<!--\x20@lovrabet.'+_0x149748+':\x20'+String(_0x50a873)+_0x5643d7(0x1e7));return _0x2adf88['filter'](([,_0x44ffa8])=>_0x44ffa8!==undefined&&_0x44ffa8!==null&&String(_0x44ffa8)[_0x5643d7(0x1f9)]()!=='')[_0x5643d7(0x1e6)](([_0x529af3,_0x102127])=>_0x5643d7(0x1ff)+_0x529af3+':\x20'+String(_0x102127));}function splitXmlDeclaration(_0x4f48a2){const _0x234630=a255_0x42536d,_0x13fdcc=_0x4f48a2[_0x234630(0x1e2)](),_0x1d415c=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i[_0x234630(0x200)](_0x13fdcc);if(!_0x1d415c)return{'body':_0x4f48a2};return{'declaration':_0x1d415c[0x0],'body':_0x13fdcc['slice'](_0x1d415c[0x0][_0x234630(0x1fc)])};}function stripLeadingMetadataLines(_0x3e78cd,_0x2a735a){const _0x578fd=a255_0x42536d,_0x37011a=_0x3e78cd[_0x578fd(0x1ef)]('\x0a');let _0x228521=0x0;while(_0x228521<_0x37011a['length']){const _0x1108f7=_0x37011a[_0x228521]??'';if(_0x2a735a[_0x578fd(0x1fb)](_0x1108f7)||_0x1108f7['trim']()===''){_0x228521++;continue;}break;}return _0x37011a[_0x578fd(0x1df)](_0x228521)[_0x578fd(0x202)]('\x0a')[_0x578fd(0x1e2)]();}
1
+ const a255_0x12d2f7=a255_0x17c3;(function(_0x1d847e,_0x131ee3){const _0x28af7f=a255_0x17c3,_0x3eefc0=_0x1d847e();while(!![]){try{const _0x2d40c1=-parseInt(_0x28af7f(0x205))/0x1*(-parseInt(_0x28af7f(0x1fb))/0x2)+parseInt(_0x28af7f(0x223))/0x3*(-parseInt(_0x28af7f(0x21d))/0x4)+-parseInt(_0x28af7f(0x210))/0x5*(parseInt(_0x28af7f(0x217))/0x6)+parseInt(_0x28af7f(0x215))/0x7*(-parseInt(_0x28af7f(0x20b))/0x8)+-parseInt(_0x28af7f(0x209))/0x9+parseInt(_0x28af7f(0x1f4))/0xa*(parseInt(_0x28af7f(0x1fe))/0xb)+parseInt(_0x28af7f(0x20c))/0xc;if(_0x2d40c1===_0x131ee3)break;else _0x3eefc0['push'](_0x3eefc0['shift']());}catch(_0x4542df){_0x3eefc0['push'](_0x3eefc0['shift']());}}}(a255_0x3d86,0x65e73));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=a255_0x12d2f7(0x222);export function buildSqlLockEntry(_0x26d74f,_0xa969a1,_0x58f0f2,_0x240c02){const _0x290e7c=a255_0x12d2f7,_0x351c14=detectSqlMode(_0xa969a1);return{'path':buildSqlRelativePath(_0x26d74f[_0x290e7c(0x212)],_0x26d74f[_0x290e7c(0x21c)],_0x240c02?.[_0x290e7c(0x219)],_0x351c14,_0x26d74f[_0x290e7c(0x20d)]),'hash':_0x58f0f2,'remoteId':_0x26d74f['id'],'version':_0x26d74f[_0x290e7c(0x214)],'dbId':Number(_0x26d74f[_0x290e7c(0x20d)]),'dbName':_0x240c02?.[_0x290e7c(0x219)],'sqlName':_0x26d74f[_0x290e7c(0x21c)],'sqlConfig':_0x26d74f['sqlConfig']??undefined,'mode':_0x351c14};}export function cloneSqlLockData(_0xfbfb14){const _0x4dcd85=a255_0x12d2f7;return{'apps':Object[_0x4dcd85(0x21b)](Object[_0x4dcd85(0x1fc)](_0xfbfb14[_0x4dcd85(0x207)])[_0x4dcd85(0x204)](([_0x3b9147,_0x12e9ef])=>[_0x3b9147,{'sqlRoot':_0x12e9ef[_0x4dcd85(0x200)],'lastSync':_0x12e9ef[_0x4dcd85(0x1f5)],'sqls':{..._0x12e9ef[_0x4dcd85(0x1fa)]}}]))};}export function ensureRemoteSqlContent(_0x48a178){const _0x31c970=a255_0x12d2f7;return _0x48a178[_0x31c970(0x208)]??'';}export function buildLocalSqlFileContent(_0x50a3e9,_0x332223,_0x15da1c){const _0x14d311=a255_0x12d2f7,_0x244f19=_0x15da1c?.[_0x14d311(0x21f)]??detectSqlMode(_0x332223),_0x5ead58=stripLocalSqlMetadata(_0x332223,_0x244f19)[_0x14d311(0x216)](),_0x1ba934=buildMetadataHeaderLines({'sqlCode':_0x50a3e9[_0x14d311(0x212)],'sqlName':_0x50a3e9[_0x14d311(0x21c)],'dbId':_0x50a3e9[_0x14d311(0x20d)],'dbName':_0x15da1c?.[_0x14d311(0x219)],'mode':_0x244f19,'syncedAt':_0x15da1c?.[_0x14d311(0x1f3)],'description':_0x15da1c?.[_0x14d311(0x203)]},_0x244f19),_0x385e68=_0x244f19===_0x14d311(0x20f)?splitXmlDeclaration(_0x5ead58):{'body':_0x5ead58},_0x1474e1=[..._0x385e68[_0x14d311(0x220)]?[_0x385e68[_0x14d311(0x220)]]:[],..._0x1ba934,'',_0x385e68[_0x14d311(0x1f9)][_0x14d311(0x21a)]()],_0x47b3da=_0x1474e1['join']('\x0a');return _0x47b3da[_0x14d311(0x206)]('\x0a')?_0x47b3da:_0x47b3da+'\x0a';}export function stripLocalSqlMetadata(_0x538665,_0x5d8c9c){const _0x591ff3=a255_0x12d2f7;if(_0x5d8c9c==='mybatisXml'){const {declaration:_0x3954a2,body:_0x4926f5}=splitXmlDeclaration(_0x538665['replace'](/\r\n/g,'\x0a')),_0x34bae1=stripLeadingMetadataLines(_0x4926f5,/^\s*<!--\s*@lovrabet\./);return _0x3954a2?''+_0x3954a2+(_0x34bae1?'\x0a'+_0x34bae1:''):_0x34bae1;}return stripLeadingMetadataLines(_0x538665[_0x591ff3(0x201)](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x33f57b,_0x36ce40){const _0x45975a=a255_0x12d2f7;if(_0x36ce40?.[_0x45975a(0x21f)])return _0x36ce40[_0x45975a(0x21f)];return detectSqlMode(_0x33f57b);}function a255_0x3d86(){const _0x46c52c=['version','7wDdENT','trim','3054piDkUS','filter','dbName','trimStart','fromEntries','sqlName','528536lgRBfm','question','mode','declaration','yes','.rabetbase/sql','6wtWUUo','slice','exec','close','syncedAt','837560IZXRYR','lastSync','includes','join','\x20[y/N]\x20','body','sqls','8LgzeyF','entries','length','55cNKEiJ','split','sqlRoot','replace','<!--\x20@lovrabet.','description','map','34690cEmHfg','endsWith','apps','sqlContent','5677065FtzcSy','stdin','2540720PEtAzB','17408220zcdiVW','dbId','path','mybatisXml','3715ICiCPS','toLowerCase','sqlCode','\x20-->'];a255_0x3d86=function(){return _0x46c52c;};return a255_0x3d86();}export function resolveSqlFileName(_0x3bd073,_0x2edbca,_0xcbc3d8){const _0x4b7315=a255_0x12d2f7;if(_0xcbc3d8?.[_0x4b7315(0x20e)])return _0xcbc3d8['path'];if(_0xcbc3d8?.['sqlName']||_0xcbc3d8?.[_0x4b7315(0x219)])return buildSqlRelativePath(_0x3bd073,_0xcbc3d8?.[_0x4b7315(0x21c)],_0xcbc3d8?.['dbName'],resolveSqlMode(_0x2edbca,_0xcbc3d8),_0xcbc3d8?.[_0x4b7315(0x20d)]);return buildDefaultSqlFileName(_0x3bd073,resolveSqlMode(_0x2edbca,_0xcbc3d8));}export function resolveSqlLocalDir(_0x53769d,_0x5d98b2){return join(_0x53769d,SQL_LOCAL_REL_DIR,_0x5d98b2);}export async function confirmForceOverwrite(_0x563db){const _0x4f44fe=a255_0x12d2f7,_0x4a7f67=createInterface({'input':process[_0x4f44fe(0x20a)],'output':process['stderr']}),_0xfc3170=await new Promise(_0x227f46=>{const _0x1f27ec=_0x4f44fe;_0x4a7f67[_0x1f27ec(0x21e)](_0x563db+_0x1f27ec(0x1f8),_0x227f46);});return _0x4a7f67[_0x4f44fe(0x1f2)](),['y',_0x4f44fe(0x221)][_0x4f44fe(0x1f6)](_0xfc3170[_0x4f44fe(0x216)]()[_0x4f44fe(0x211)]());}export function findSqlLockScope(_0x25cda1,_0xb39d66){const _0x868335=a255_0x12d2f7;return _0x25cda1[_0x868335(0x207)][_0xb39d66];}function buildMetadataHeaderLines(_0x452151,_0x279869){const _0x563271=a255_0x12d2f7,_0x44ae4c=[['sqlCode',_0x452151[_0x563271(0x212)]],[_0x563271(0x21c),_0x452151[_0x563271(0x21c)]],['dbId',_0x452151[_0x563271(0x20d)]],[_0x563271(0x219),_0x452151[_0x563271(0x219)]],[_0x563271(0x21f),_0x452151[_0x563271(0x21f)]],[_0x563271(0x1f3),_0x452151[_0x563271(0x1f3)]],[_0x563271(0x203),_0x452151[_0x563271(0x203)]]];if(_0x279869==='mybatisXml')return _0x44ae4c[_0x563271(0x218)](([,_0x1f4d4c])=>_0x1f4d4c!==undefined&&_0x1f4d4c!==null&&String(_0x1f4d4c)['trim']()!=='')[_0x563271(0x204)](([_0x3cfd97,_0x57929c])=>_0x563271(0x202)+_0x3cfd97+':\x20'+String(_0x57929c)+_0x563271(0x213));return _0x44ae4c['filter'](([,_0x32c017])=>_0x32c017!==undefined&&_0x32c017!==null&&String(_0x32c017)['trim']()!=='')['map'](([_0x162095,_0x293c7c])=>'--\x20@lovrabet.'+_0x162095+':\x20'+String(_0x293c7c));}function splitXmlDeclaration(_0x526693){const _0x4d72a7=a255_0x12d2f7,_0x1dc750=_0x526693[_0x4d72a7(0x21a)](),_0x10c2fa=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i[_0x4d72a7(0x225)](_0x1dc750);if(!_0x10c2fa)return{'body':_0x526693};return{'declaration':_0x10c2fa[0x0],'body':_0x1dc750[_0x4d72a7(0x224)](_0x10c2fa[0x0][_0x4d72a7(0x1fd)])};}function a255_0x17c3(_0xda09c,_0xac0a3f){_0xda09c=_0xda09c-0x1f2;const _0x3d861a=a255_0x3d86();let _0x17c397=_0x3d861a[_0xda09c];return _0x17c397;}function stripLeadingMetadataLines(_0x4652d8,_0x5d8f07){const _0x440970=a255_0x12d2f7,_0x4d3e79=_0x4652d8[_0x440970(0x1ff)]('\x0a');let _0x202ce9=0x0;while(_0x202ce9<_0x4d3e79[_0x440970(0x1fd)]){const _0x4c5a3e=_0x4d3e79[_0x202ce9]??'';if(_0x5d8f07['test'](_0x4c5a3e)||_0x4c5a3e[_0x440970(0x216)]()===''){_0x202ce9++;continue;}break;}return _0x4d3e79[_0x440970(0x224)](_0x202ce9)[_0x440970(0x1f7)]('\x0a')[_0x440970(0x21a)]();}
@@ -1 +1 @@
1
- function a256_0x546a(_0x24686d,_0xd6b47c){_0x24686d=_0x24686d-0x1a7;const _0xb040b4=a256_0xb040();let _0x546a59=_0xb040b4[_0x24686d];return _0x546a59;}const a256_0x322cd6=a256_0x546a;(function(_0x59f047,_0x8584b9){const _0x3ca4a3=a256_0x546a,_0x4b945e=_0x59f047();while(!![]){try{const _0x30c0c4=parseInt(_0x3ca4a3(0x1b4))/0x1*(parseInt(_0x3ca4a3(0x1c9))/0x2)+-parseInt(_0x3ca4a3(0x1b9))/0x3+parseInt(_0x3ca4a3(0x1bb))/0x4+-parseInt(_0x3ca4a3(0x1c7))/0x5+parseInt(_0x3ca4a3(0x1c6))/0x6*(-parseInt(_0x3ca4a3(0x1b8))/0x7)+parseInt(_0x3ca4a3(0x1bd))/0x8+parseInt(_0x3ca4a3(0x1ab))/0x9;if(_0x30c0c4===_0x8584b9)break;else _0x4b945e['push'](_0x4b945e['shift']());}catch(_0x309b14){_0x4b945e['push'](_0x4b945e['shift']());}}}(a256_0xb040,0xb90c8));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';function a256_0xb040(){const _0x13c3e7=['remote','push','filePath','read','752694sWDjAt','6707855IuQnWU','sqlName','2638cPDIcA','status','relativePath','sqls','lockFilePath','tableData','20720691WoiiiQ','hash','sqlCode','\x20missing,\x20','totalCount','has','boolean','path','sql','586Sjlbza','lockKey','\x20remote-only','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','70OmcfAl','3369552XZqAVL','map','2252736tgmLZZ','paging','6710304icqpcC','appCode','\x20modified,\x20','\x20added,\x20','length'];a256_0xb040=function(){return _0x13c3e7;};return a256_0xb040();}const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x48a5ff){const _0x22471f=a256_0x546a,_0x2adace=[];let _0x2fdaaf=0x1;while(!![]){const _0x558d34=await listSqlQueries(_0x48a5ff,{'currentPage':_0x2fdaaf,'pageSize':PAGE_SIZE}),_0x5ae58f=_0x558d34[_0x22471f(0x1aa)]??[];_0x2adace[_0x22471f(0x1c3)](..._0x5ae58f[_0x22471f(0x1ba)](_0x5b598e=>_0x5b598e[_0x22471f(0x1ad)]));if(_0x5ae58f[_0x22471f(0x1c1)]===0x0)break;const _0x34ace2=_0x558d34[_0x22471f(0x1bc)]?.[_0x22471f(0x1af)];if(_0x34ace2!=null?_0x2adace['length']>=_0x34ace2:_0x5ae58f[_0x22471f(0x1c1)]<PAGE_SIZE)break;_0x2fdaaf++;}return _0x2adace;}export const sqlStatus={'service':a256_0x322cd6(0x1b3),'command':'status','description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a256_0x322cd6(0x1c5),'flags':[{'name':a256_0x322cd6(0x1c2),'type':a256_0x322cd6(0x1b1),'description':a256_0x322cd6(0x1b7)}],async 'execute'(_0x254a88){const _0x1fbe7b=a256_0x322cd6,_0x2986cf=loadSqlProjectConfig(_0x254a88[_0x1fbe7b(0x1be)]),_0x390678=await readSqlLockFile(_0x2986cf[_0x1fbe7b(0x1a9)]),{appLock:_0x22c56b}=ensureSqlLockScope(_0x390678??createEmptySqlLock(),_0x2986cf[_0x1fbe7b(0x1be)],_0x2986cf['sqlRoot'],_0x1fbe7b(0x1ca)),_0x192fac=await scanLocalSqlQueries(_0x2986cf),_0x206001=[],_0x2c018f=[],_0x12c3e0=[],_0xe07aaa=[],_0x3d1c36=new Set(_0x192fac[_0x1fbe7b(0x1ba)](_0x4cd922=>_0x4cd922[_0x1fbe7b(0x1b5)]));for(const _0xb5c498 of _0x192fac){const _0x5ce341=await computeSqlFileHash(_0xb5c498[_0x1fbe7b(0x1c4)]),_0x17112e=_0x22c56b[_0x1fbe7b(0x1a8)][_0xb5c498[_0x1fbe7b(0x1b5)]],_0x50c489=!!_0x17112e&&_0x17112e[_0x1fbe7b(0x1b2)]!==_0xb5c498[_0x1fbe7b(0x1a7)],_0x2d7448=!!_0x17112e&&!!_0xb5c498[_0x1fbe7b(0x1c8)]&&_0x17112e[_0x1fbe7b(0x1c8)]!==_0xb5c498[_0x1fbe7b(0x1c8)];if(!_0x17112e)_0x206001['push'](_0xb5c498[_0x1fbe7b(0x1b5)]);else _0x17112e[_0x1fbe7b(0x1ac)]!==_0x5ce341||_0x50c489||_0x2d7448?_0x2c018f[_0x1fbe7b(0x1c3)](_0xb5c498[_0x1fbe7b(0x1b5)]):_0x12c3e0[_0x1fbe7b(0x1c3)](_0xb5c498[_0x1fbe7b(0x1b5)]);}for(const _0x4d8f26 of Object['keys'](_0x22c56b['sqls'])){!_0x3d1c36['has'](_0x4d8f26)&&_0xe07aaa[_0x1fbe7b(0x1c3)](_0x4d8f26);}const _0x57834f=[];if(_0x254a88['bool'](_0x1fbe7b(0x1c2))){const _0x33b816=await fetchAllSqlCodes(_0x254a88['appCode']);for(const _0x33a67c of _0x33b816){!_0x3d1c36[_0x1fbe7b(0x1b0)](_0x33a67c)&&!_0x22c56b[_0x1fbe7b(0x1a8)][_0x33a67c]&&_0x57834f[_0x1fbe7b(0x1c3)](_0x33a67c);}}const _0x127e28=_0x206001['length']===0x0&&_0x2c018f['length']===0x0&&_0xe07aaa[_0x1fbe7b(0x1c1)]===0x0&&_0x57834f['length']===0x0;return{'ok':!![],'data':{'added':_0x206001,'modified':_0x2c018f,'missing':_0xe07aaa,'unchanged':_0x12c3e0,'remoteOnly':_0x57834f},'message':_0x127e28?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x206001['length']+_0x1fbe7b(0x1c0)+_0x2c018f[_0x1fbe7b(0x1c1)]+_0x1fbe7b(0x1bf)+_0xe07aaa[_0x1fbe7b(0x1c1)]+_0x1fbe7b(0x1ae)+_0x12c3e0['length']+'\x20unchanged'+(_0x57834f[_0x1fbe7b(0x1c1)]>0x0?',\x20'+_0x57834f[_0x1fbe7b(0x1c1)]+_0x1fbe7b(0x1b6):'')};}};
1
+ const a256_0x8b56f7=a256_0x67fc;(function(_0x415a36,_0x11c8e0){const _0x3fef84=a256_0x67fc,_0x2b9679=_0x415a36();while(!![]){try{const _0x22dac5=-parseInt(_0x3fef84(0x134))/0x1*(parseInt(_0x3fef84(0x11a))/0x2)+-parseInt(_0x3fef84(0x122))/0x3+-parseInt(_0x3fef84(0x135))/0x4+parseInt(_0x3fef84(0x11c))/0x5+parseInt(_0x3fef84(0x120))/0x6+parseInt(_0x3fef84(0x116))/0x7+parseInt(_0x3fef84(0x123))/0x8;if(_0x22dac5===_0x11c8e0)break;else _0x2b9679['push'](_0x2b9679['shift']());}catch(_0x38f4f7){_0x2b9679['push'](_0x2b9679['shift']());}}}(a256_0x45e8,0x8c408));import{listSqlQueries}from'../../core/api-client.js';import{loadSqlProjectConfig}from'../../core/sql-sync/config.js';import{scanLocalSqlQueries}from'../../core/sql-sync/file-system.js';import{computeSqlFileHash}from'../../core/sql-sync/hash.js';import{createEmptySqlLock,ensureSqlLockScope,readSqlLockFile}from'../../core/sql-sync/lock.js';const PAGE_SIZE=0x64;async function fetchAllSqlCodes(_0x23a0b6){const _0x45913e=a256_0x67fc,_0x2c0847=[];let _0x2d0d7e=0x1;while(!![]){const _0x5b7b5a=await listSqlQueries(_0x23a0b6,{'currentPage':_0x2d0d7e,'pageSize':PAGE_SIZE}),_0x4b5494=_0x5b7b5a[_0x45913e(0x12d)]??[];_0x2c0847[_0x45913e(0x136)](..._0x4b5494['map'](_0x15239b=>_0x15239b[_0x45913e(0x137)]));if(_0x4b5494['length']===0x0)break;const _0x10c3cf=_0x5b7b5a[_0x45913e(0x125)]?.['totalCount'];if(_0x10c3cf!=null?_0x2c0847[_0x45913e(0x115)]>=_0x10c3cf:_0x4b5494[_0x45913e(0x115)]<PAGE_SIZE)break;_0x2d0d7e++;}return _0x2c0847;}export const sqlStatus={'service':a256_0x8b56f7(0x11d),'command':a256_0x8b56f7(0x133),'description':a256_0x8b56f7(0x118),'risk':a256_0x8b56f7(0x124),'flags':[{'name':a256_0x8b56f7(0x132),'type':a256_0x8b56f7(0x117),'description':a256_0x8b56f7(0x11f)}],async 'execute'(_0x3f91d1){const _0x551ce4=a256_0x8b56f7,_0x462e4d=loadSqlProjectConfig(_0x3f91d1[_0x551ce4(0x12f)]),_0x5c35df=await readSqlLockFile(_0x462e4d[_0x551ce4(0x138)]),{appLock:_0x3e7b2a}=ensureSqlLockScope(_0x5c35df??createEmptySqlLock(),_0x462e4d[_0x551ce4(0x12f)],_0x462e4d['sqlRoot'],_0x551ce4(0x133)),_0x334978=await scanLocalSqlQueries(_0x462e4d),_0x20921f=[],_0x11aefe=[],_0x44a125=[],_0x3b6eb4=[],_0x5acbf9=new Set(_0x334978[_0x551ce4(0x12b)](_0xec1f99=>_0xec1f99[_0x551ce4(0x127)]));for(const _0x4fe9ce of _0x334978){const _0x3ec5f5=await computeSqlFileHash(_0x4fe9ce[_0x551ce4(0x12c)]),_0x4f0ecc=_0x3e7b2a['sqls'][_0x4fe9ce[_0x551ce4(0x127)]],_0x4f52ea=!!_0x4f0ecc&&_0x4f0ecc['path']!==_0x4fe9ce['relativePath'],_0x4be020=!!_0x4f0ecc&&!!_0x4fe9ce[_0x551ce4(0x12a)]&&_0x4f0ecc[_0x551ce4(0x12a)]!==_0x4fe9ce[_0x551ce4(0x12a)];if(!_0x4f0ecc)_0x20921f['push'](_0x4fe9ce[_0x551ce4(0x127)]);else _0x4f0ecc[_0x551ce4(0x130)]!==_0x3ec5f5||_0x4f52ea||_0x4be020?_0x11aefe[_0x551ce4(0x136)](_0x4fe9ce[_0x551ce4(0x127)]):_0x44a125[_0x551ce4(0x136)](_0x4fe9ce['lockKey']);}for(const _0x1b1cac of Object[_0x551ce4(0x121)](_0x3e7b2a['sqls'])){!_0x5acbf9['has'](_0x1b1cac)&&_0x3b6eb4[_0x551ce4(0x136)](_0x1b1cac);}const _0x5d7e92=[];if(_0x3f91d1[_0x551ce4(0x126)](_0x551ce4(0x132))){const _0x312ae1=await fetchAllSqlCodes(_0x3f91d1['appCode']);for(const _0x544c34 of _0x312ae1){!_0x5acbf9[_0x551ce4(0x11b)](_0x544c34)&&!_0x3e7b2a[_0x551ce4(0x129)][_0x544c34]&&_0x5d7e92[_0x551ce4(0x136)](_0x544c34);}}const _0x2c85d4=_0x20921f[_0x551ce4(0x115)]===0x0&&_0x11aefe[_0x551ce4(0x115)]===0x0&&_0x3b6eb4['length']===0x0&&_0x5d7e92[_0x551ce4(0x115)]===0x0;return{'ok':!![],'data':{'added':_0x20921f,'modified':_0x11aefe,'missing':_0x3b6eb4,'unchanged':_0x44a125,'remoteOnly':_0x5d7e92},'message':_0x2c85d4?'All\x20SQL\x20queries\x20are\x20in\x20sync.':_0x20921f[_0x551ce4(0x115)]+_0x551ce4(0x131)+_0x11aefe['length']+_0x551ce4(0x128)+_0x3b6eb4[_0x551ce4(0x115)]+_0x551ce4(0x11e)+_0x44a125[_0x551ce4(0x115)]+_0x551ce4(0x12e)+(_0x5d7e92[_0x551ce4(0x115)]>0x0?',\x20'+_0x5d7e92[_0x551ce4(0x115)]+_0x551ce4(0x119):'')};}};function a256_0x67fc(_0x4ddf6b,_0x413c52){_0x4ddf6b=_0x4ddf6b-0x115;const _0x45e8da=a256_0x45e8();let _0x67fc08=_0x45e8da[_0x4ddf6b];return _0x67fc08;}function a256_0x45e8(){const _0x3b61d7=['read','paging','bool','lockKey','\x20modified,\x20','sqls','sqlName','map','filePath','tableData','\x20unchanged','appCode','hash','\x20added,\x20','remote','status','27053WSfdvT','2500636wxKlgA','push','sqlCode','lockFilePath','length','555128kxLZxH','boolean','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','\x20remote-only','18RZAjpS','has','1141570AZyQdc','sql','\x20missing,\x20','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','1613454qqvdOy','keys','2012367SnzNfx','12298960TIzdBe'];a256_0x45e8=function(){return _0x3b61d7;};return a256_0x45e8();}
@@ -1 +1 @@
1
- const a257_0x531472=a257_0x2fa5;(function(_0x333868,_0x5cc30d){const _0x427847=a257_0x2fa5,_0x21ca89=_0x333868();while(!![]){try{const _0x57d38f=-parseInt(_0x427847(0xa3))/0x1+-parseInt(_0x427847(0x7a))/0x2*(parseInt(_0x427847(0xae))/0x3)+-parseInt(_0x427847(0xab))/0x4+parseInt(_0x427847(0xa1))/0x5+parseInt(_0x427847(0x82))/0x6*(parseInt(_0x427847(0x92))/0x7)+-parseInt(_0x427847(0xb6))/0x8*(-parseInt(_0x427847(0x8b))/0x9)+parseInt(_0x427847(0xb3))/0xa;if(_0x57d38f===_0x5cc30d)break;else _0x21ca89['push'](_0x21ca89['shift']());}catch(_0x16fb0b){_0x21ca89['push'](_0x21ca89['shift']());}}}(a257_0x59b2,0x91942));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a257_0x531472(0xb8),'command':a257_0x531472(0x99),'description':a257_0x531472(0xad),'risk':a257_0x531472(0x8a),'flags':[{'name':a257_0x531472(0x7c),'type':a257_0x531472(0x9b),'description':a257_0x531472(0xac)},{'name':a257_0x531472(0xb8),'type':a257_0x531472(0x9b),'description':'Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)'},{'name':a257_0x531472(0x80),'type':'string','description':a257_0x531472(0x7e)},{'name':a257_0x531472(0x7f),'type':a257_0x531472(0x7d),'description':a257_0x531472(0xb2)}],async 'execute'(_0x224b45){const _0x5406ec=a257_0x531472,_0x1f90fa=_0x224b45['str'](_0x5406ec(0x7c)),_0x43e8fb=_0x224b45[_0x5406ec(0xa6)](_0x5406ec(0xb8)),_0x3c916a=_0x224b45[_0x5406ec(0xa6)](_0x5406ec(0x80)),_0x16eb6e=_0x224b45['bool']('check-indexes');if(!_0x1f90fa&&!_0x43e8fb)throw CliErrors[_0x5406ec(0xbe)](_0x5406ec(0x7c),_0x5406ec(0x8f));if(_0x16eb6e&&!_0x3c916a)throw CliErrors[_0x5406ec(0xa7)](_0x5406ec(0x83));let _0x2658cf;if(_0x1f90fa){const _0x17b6f7=resolve(process[_0x5406ec(0x87)](),_0x1f90fa);if(!existsSync(_0x17b6f7))throw CliErrors[_0x5406ec(0xa7)]('File\x20not\x20found:\x20'+_0x17b6f7);_0x2658cf=readFileSync(_0x17b6f7,'utf-8');}else _0x2658cf=_0x43e8fb;const _0x510ab=validateSql(_0x2658cf),_0x18e2b1={'valid':_0x510ab[_0x5406ec(0x8c)],'sqlType':_0x510ab[_0x5406ec(0x84)][_0x5406ec(0xa2)],'isSelectOnly':_0x510ab[_0x5406ec(0x84)][_0x5406ec(0xa0)],'isLockingRead':_0x510ab['sqlType'][_0x5406ec(0xaa)]??![],'isDangerous':_0x510ab[_0x5406ec(0x84)]['isDangerous'],'tables':_0x510ab[_0x5406ec(0x9c)],'parameters':_0x510ab[_0x5406ec(0xbf)],'message':_0x510ab[_0x5406ec(0x98)]};_0x510ab['sqlType']['reason']&&(_0x18e2b1[_0x5406ec(0x81)]=_0x510ab['sqlType'][_0x5406ec(0x81)]);if(_0x3c916a&&_0x510ab['valid']){const _0x1787d3=_0x3c916a[_0x5406ec(0x8e)](',')['map'](_0x53abc0=>_0x53abc0[_0x5406ec(0xa9)]())[_0x5406ec(0x89)](Boolean),_0x2b85fa=[],_0x2c0fc7=[],_0x1709ff=filterDbTableBackedDatasets(await listDatasets(_0x224b45[_0x5406ec(0x7b)])),_0x59d4a6=new Map(_0x1709ff[_0x5406ec(0xb7)](_0x51a512=>[_0x51a512[_0x5406ec(0x8d)]?.[_0x5406ec(0xb0)]?.[_0x5406ec(0x91)](),_0x51a512]));for(const _0x3897d9 of _0x510ab[_0x5406ec(0x9c)]){const _0x11122b=_0x59d4a6[_0x5406ec(0x96)](_0x3897d9[_0x5406ec(0x91)]());!_0x11122b&&_0x2b85fa['push'](_0x5406ec(0x9d)+_0x3897d9+_0x5406ec(0xb9));}for(const _0x4470e2 of _0x1787d3){let _0x12b641;try{_0x12b641=await getDatasetDetail(_0x4470e2);}catch{_0x2b85fa['push'](_0x5406ec(0xaf)+_0x4470e2+_0x5406ec(0x93));continue;}assertDatasetIsDbTableBacked(_0x12b641,'SQL\x20schema\x20validation');const _0x515eb0=Array[_0x5406ec(0xa5)](_0x12b641[_0x5406ec(0x85)])?_0x12b641[_0x5406ec(0x85)]:[],_0x22e3eb=new Set(_0x515eb0['map'](_0x25d87a=>_0x25d87a[_0x5406ec(0x9e)]?.['toLowerCase']())),_0x1c5e83=_0x12b641['dbtableConfig']?.[_0x5406ec(0xb0)]||_0x12b641[_0x5406ec(0xb0)]||_0x4470e2;_0x18e2b1['schema:'+_0x1c5e83]={'code':_0x4470e2,'tableName':_0x1c5e83,'fieldCount':_0x22e3eb[_0x5406ec(0x95)],'fields':Array[_0x5406ec(0xa4)](_0x22e3eb)};if(_0x16eb6e){const _0x12797e=normalizeDatasetIndexes(_0x12b641);_0x2c0fc7[_0x5406ec(0x9f)]({'tableName':_0x1c5e83,..._0x12797e});}}_0x2b85fa[_0x5406ec(0x90)]>0x0&&(_0x18e2b1[_0x5406ec(0xba)]=_0x2b85fa),_0x16eb6e&&(_0x18e2b1[_0x5406ec(0x94)]=auditSqlJoinIndexes(_0x2658cf,_0x2c0fc7));}return{'ok':_0x510ab[_0x5406ec(0x8c)],'data':_0x18e2b1,'message':_0x510ab[_0x5406ec(0x98)]};}};function a257_0x59b2(){const _0x3dc0a6=['isArray','str','validation','indexes','trim','isLockingRead','3590400jiFiyd','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','12DWFGBo','Dataset\x20\x22','tableName','columns','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','18680920FxNqYP','columnNames','primary','56YPZQwO','map','sql','\x22\x20not\x20found\x20in\x20any\x20dataset','schemaWarnings','find','pkField','unshift','flagMissing','parameters','440066jNCyoS','appCode','file','boolean','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','check-indexes','schemas','reason','6ilBaZw','--check-indexes\x20requires\x20--schemas.','sqlType','fields','index_name','cwd','indexName','filter','read','99315VpWsyR','valid','dbtableConfig','split','Provide\x20--file\x20or\x20--sql','length','toLowerCase','289982uSGGCq','\x22\x20not\x20found\x20or\x20not\x20accessible','joinAudit','size','get','dataset','message','validate','flatMap','string','tables','Table\x20\x22','name','push','isSelectOnly','2768560MvBpDh','type','166453MMjVkK','from'];a257_0x59b2=function(){return _0x3dc0a6;};return a257_0x59b2();}function a257_0x2fa5(_0x18ec7f,_0x322d35){_0x18ec7f=_0x18ec7f-0x7a;const _0x59b2da=a257_0x59b2();let _0x2fa548=_0x59b2da[_0x18ec7f];return _0x2fa548;}function normalizeDatasetIndexes(_0x5e4f77){const _0x27f4d0=a257_0x531472,_0x22cd5c=Array[_0x27f4d0(0xa5)](_0x5e4f77?.[_0x27f4d0(0x97)]?.['indexes'])?_0x5e4f77[_0x27f4d0(0x97)][_0x27f4d0(0xa8)]:Array[_0x27f4d0(0xa5)](_0x5e4f77?.[_0x27f4d0(0xa8)])?_0x5e4f77[_0x27f4d0(0xa8)]:[],_0x437170=_0x22cd5c[_0x27f4d0(0x9a)](_0x3bb416=>{const _0x40f4e9=_0x27f4d0,_0xa6b600=Array[_0x40f4e9(0xa5)](_0x3bb416?.['index_columns'])?_0x3bb416['index_columns']:Array[_0x40f4e9(0xa5)](_0x3bb416?.[_0x40f4e9(0xb4)])?_0x3bb416[_0x40f4e9(0xb4)]:Array[_0x40f4e9(0xa5)](_0x3bb416?.[_0x40f4e9(0xb1)])?_0x3bb416['columns']:[],_0x28fbf2=_0xa6b600[_0x40f4e9(0x89)](_0x5ba04d=>typeof _0x5ba04d===_0x40f4e9(0x9b))[_0x40f4e9(0xb7)](_0x3ee73c=>_0x3ee73c['trim']())[_0x40f4e9(0x89)](Boolean);if(_0x28fbf2[_0x40f4e9(0x90)]===0x0)return[];const _0x541076=[_0x3bb416?.[_0x40f4e9(0x88)],_0x3bb416?.[_0x40f4e9(0x86)],_0x3bb416?.[_0x40f4e9(0x9e)]][_0x40f4e9(0xbb)](_0x113da6=>typeof _0x113da6===_0x40f4e9(0x9b)&&_0x113da6['trim']()),_0x4c8156=[_0x3bb416?.['index_type'],_0x3bb416?.[_0x40f4e9(0xa2)]][_0x40f4e9(0xbb)](_0xc6dbfe=>typeof _0xc6dbfe==='string'&&_0xc6dbfe[_0x40f4e9(0xa9)]());return[{..._0x541076?{'name':_0x541076['trim']()}:{},..._0x4c8156?{'type':_0x4c8156[_0x40f4e9(0xa9)]()}:{},'columns':_0x28fbf2}];}),_0x2fd789=[..._0x437170],_0x267e8a=typeof _0x5e4f77?.['dbtableConfig']?.[_0x27f4d0(0xbc)]===_0x27f4d0(0x9b)?_0x5e4f77[_0x27f4d0(0x8d)][_0x27f4d0(0xbc)][_0x27f4d0(0x8e)](',')[_0x27f4d0(0xb7)](_0x242eaa=>_0x242eaa[_0x27f4d0(0xa9)]())[_0x27f4d0(0x89)](Boolean):[];return _0x267e8a[_0x27f4d0(0x90)]>0x0&&_0x2fd789[_0x27f4d0(0xbd)]({'type':_0x27f4d0(0xb5),'columns':_0x267e8a}),{'indexes':_0x2fd789,'metadataAvailable':_0x437170['length']>0x0};}
1
+ function a257_0x3982(){const _0x350bda=['isArray','check-indexes','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','8MTASbl','validate','toLowerCase','isSelectOnly','index_type','message','from','cwd','type','--check-indexes\x20requires\x20--schemas.','schemaWarnings','filter','Dataset\x20\x22','name','joinAudit','string','367483WcZPZD','sqlType','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','\x22\x20not\x20found\x20in\x20any\x20dataset','index_columns','indexes','parameters','sql','map','utf-8','read','indexName','validation','9416862ZnbxNj','split','dataset','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','isLockingRead','Table\x20\x22','1486724fJAqqu','file','bool','3095UpHiFu','dbtableConfig','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','columns','columnNames','Provide\x20--file\x20or\x20--sql','str','tableName','flagMissing','reason','schemas','SQL\x20schema\x20validation','File\x20not\x20found:\x20','2778CDLCdk','tables','323194CCmXuZ','2504719RTpYsF','find','length','valid','trim','31215loXTdn','flatMap','fields'];a257_0x3982=function(){return _0x350bda;};return a257_0x3982();}const a257_0x5ce3f1=a257_0xed2e;(function(_0x16ae0,_0x3a9041){const _0x414449=a257_0xed2e,_0x286026=_0x16ae0();while(!![]){try{const _0x3449a8=-parseInt(_0x414449(0x1d3))/0x1+-parseInt(_0x414449(0x1b7))/0x2+parseInt(_0x414449(0x1bd))/0x3+parseInt(_0x414449(0x1a5))/0x4+-parseInt(_0x414449(0x1a8))/0x5*(parseInt(_0x414449(0x1b5))/0x6)+parseInt(_0x414449(0x1b8))/0x7*(-parseInt(_0x414449(0x1c3))/0x8)+parseInt(_0x414449(0x19f))/0x9;if(_0x3449a8===_0x3a9041)break;else _0x286026['push'](_0x286026['shift']());}catch(_0x5e0740){_0x286026['push'](_0x286026['shift']());}}}(a257_0x3982,0x3e3be));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';function a257_0xed2e(_0x453eae,_0x1b2502){_0x453eae=_0x453eae-0x19d;const _0x398207=a257_0x3982();let _0xed2e90=_0x398207[_0x453eae];return _0xed2e90;}export const sqlValidate={'service':a257_0x5ce3f1(0x1da),'command':a257_0x5ce3f1(0x1c4),'description':a257_0x5ce3f1(0x1d5),'risk':a257_0x5ce3f1(0x1dd),'flags':[{'name':a257_0x5ce3f1(0x1a6),'type':a257_0x5ce3f1(0x1d2),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a257_0x5ce3f1(0x1da),'type':'string','description':a257_0x5ce3f1(0x1a2)},{'name':a257_0x5ce3f1(0x1b2),'type':a257_0x5ce3f1(0x1d2),'description':a257_0x5ce3f1(0x1aa)},{'name':a257_0x5ce3f1(0x1c1),'type':'boolean','description':a257_0x5ce3f1(0x1c2)}],async 'execute'(_0xeab5bf){const _0x4e26cc=a257_0x5ce3f1,_0x8e416d=_0xeab5bf['str'](_0x4e26cc(0x1a6)),_0x5732f3=_0xeab5bf[_0x4e26cc(0x1ae)](_0x4e26cc(0x1da)),_0x4f9bdb=_0xeab5bf[_0x4e26cc(0x1ae)](_0x4e26cc(0x1b2)),_0x4d8817=_0xeab5bf[_0x4e26cc(0x1a7)]('check-indexes');if(!_0x8e416d&&!_0x5732f3)throw CliErrors[_0x4e26cc(0x1b0)](_0x4e26cc(0x1a6),_0x4e26cc(0x1ad));if(_0x4d8817&&!_0x4f9bdb)throw CliErrors[_0x4e26cc(0x19e)](_0x4e26cc(0x1cc));let _0x1c691d;if(_0x8e416d){const _0x2dd79a=resolve(process[_0x4e26cc(0x1ca)](),_0x8e416d);if(!existsSync(_0x2dd79a))throw CliErrors['validation'](_0x4e26cc(0x1b4)+_0x2dd79a);_0x1c691d=readFileSync(_0x2dd79a,_0x4e26cc(0x1dc));}else _0x1c691d=_0x5732f3;const _0x1f75ab=validateSql(_0x1c691d),_0x58a9cc={'valid':_0x1f75ab[_0x4e26cc(0x1bb)],'sqlType':_0x1f75ab['sqlType'][_0x4e26cc(0x1cb)],'isSelectOnly':_0x1f75ab[_0x4e26cc(0x1d4)][_0x4e26cc(0x1c6)],'isLockingRead':_0x1f75ab[_0x4e26cc(0x1d4)][_0x4e26cc(0x1a3)]??![],'isDangerous':_0x1f75ab['sqlType']['isDangerous'],'tables':_0x1f75ab[_0x4e26cc(0x1b6)],'parameters':_0x1f75ab[_0x4e26cc(0x1d9)],'message':_0x1f75ab[_0x4e26cc(0x1c8)]};_0x1f75ab[_0x4e26cc(0x1d4)]['reason']&&(_0x58a9cc[_0x4e26cc(0x1b1)]=_0x1f75ab[_0x4e26cc(0x1d4)]['reason']);if(_0x4f9bdb&&_0x1f75ab['valid']){const _0x4fab16=_0x4f9bdb[_0x4e26cc(0x1a0)](',')['map'](_0x3caf4a=>_0x3caf4a[_0x4e26cc(0x1bc)]())[_0x4e26cc(0x1ce)](Boolean),_0x3a3fd5=[],_0xd8e78b=[],_0x39324f=filterDbTableBackedDatasets(await listDatasets(_0xeab5bf['appCode'])),_0x5bdc7f=new Map(_0x39324f[_0x4e26cc(0x1db)](_0x589554=>[_0x589554[_0x4e26cc(0x1a9)]?.[_0x4e26cc(0x1af)]?.[_0x4e26cc(0x1c5)](),_0x589554]));for(const _0x1bbb63 of _0x1f75ab[_0x4e26cc(0x1b6)]){const _0x3f32a0=_0x5bdc7f['get'](_0x1bbb63['toLowerCase']());!_0x3f32a0&&_0x3a3fd5['push'](_0x4e26cc(0x1a4)+_0x1bbb63+_0x4e26cc(0x1d6));}for(const _0x2a6795 of _0x4fab16){let _0x262632;try{_0x262632=await getDatasetDetail(_0x2a6795);}catch{_0x3a3fd5['push'](_0x4e26cc(0x1cf)+_0x2a6795+'\x22\x20not\x20found\x20or\x20not\x20accessible');continue;}assertDatasetIsDbTableBacked(_0x262632,_0x4e26cc(0x1b3));const _0x4ebee6=Array[_0x4e26cc(0x1c0)](_0x262632[_0x4e26cc(0x1bf)])?_0x262632[_0x4e26cc(0x1bf)]:[],_0x3363bf=new Set(_0x4ebee6[_0x4e26cc(0x1db)](_0x530ee4=>_0x530ee4[_0x4e26cc(0x1d0)]?.[_0x4e26cc(0x1c5)]())),_0x446bf5=_0x262632[_0x4e26cc(0x1a9)]?.['tableName']||_0x262632['tableName']||_0x2a6795;_0x58a9cc['schema:'+_0x446bf5]={'code':_0x2a6795,'tableName':_0x446bf5,'fieldCount':_0x3363bf['size'],'fields':Array[_0x4e26cc(0x1c9)](_0x3363bf)};if(_0x4d8817){const _0x114651=normalizeDatasetIndexes(_0x262632);_0xd8e78b['push']({'tableName':_0x446bf5,..._0x114651});}}_0x3a3fd5[_0x4e26cc(0x1ba)]>0x0&&(_0x58a9cc[_0x4e26cc(0x1cd)]=_0x3a3fd5),_0x4d8817&&(_0x58a9cc[_0x4e26cc(0x1d1)]=auditSqlJoinIndexes(_0x1c691d,_0xd8e78b));}return{'ok':_0x1f75ab[_0x4e26cc(0x1bb)],'data':_0x58a9cc,'message':_0x1f75ab[_0x4e26cc(0x1c8)]};}};function normalizeDatasetIndexes(_0x14a5ab){const _0x5b95b8=a257_0x5ce3f1,_0x30cdc5=Array[_0x5b95b8(0x1c0)](_0x14a5ab?.[_0x5b95b8(0x1a1)]?.[_0x5b95b8(0x1d8)])?_0x14a5ab[_0x5b95b8(0x1a1)][_0x5b95b8(0x1d8)]:Array[_0x5b95b8(0x1c0)](_0x14a5ab?.[_0x5b95b8(0x1d8)])?_0x14a5ab[_0x5b95b8(0x1d8)]:[],_0x4b7e4a=_0x30cdc5[_0x5b95b8(0x1be)](_0x2c7138=>{const _0x3b77b8=_0x5b95b8,_0x46f7cc=Array[_0x3b77b8(0x1c0)](_0x2c7138?.[_0x3b77b8(0x1d7)])?_0x2c7138['index_columns']:Array[_0x3b77b8(0x1c0)](_0x2c7138?.['columnNames'])?_0x2c7138[_0x3b77b8(0x1ac)]:Array['isArray'](_0x2c7138?.[_0x3b77b8(0x1ab)])?_0x2c7138['columns']:[],_0x68f90e=_0x46f7cc[_0x3b77b8(0x1ce)](_0x47c0c9=>typeof _0x47c0c9===_0x3b77b8(0x1d2))[_0x3b77b8(0x1db)](_0x1c17d3=>_0x1c17d3[_0x3b77b8(0x1bc)]())[_0x3b77b8(0x1ce)](Boolean);if(_0x68f90e[_0x3b77b8(0x1ba)]===0x0)return[];const _0x45034e=[_0x2c7138?.[_0x3b77b8(0x19d)],_0x2c7138?.['index_name'],_0x2c7138?.[_0x3b77b8(0x1d0)]][_0x3b77b8(0x1b9)](_0x216b83=>typeof _0x216b83===_0x3b77b8(0x1d2)&&_0x216b83['trim']()),_0x2ee8fa=[_0x2c7138?.[_0x3b77b8(0x1c7)],_0x2c7138?.[_0x3b77b8(0x1cb)]]['find'](_0x5d8463=>typeof _0x5d8463==='string'&&_0x5d8463[_0x3b77b8(0x1bc)]());return[{..._0x45034e?{'name':_0x45034e['trim']()}:{},..._0x2ee8fa?{'type':_0x2ee8fa[_0x3b77b8(0x1bc)]()}:{},'columns':_0x68f90e}];}),_0x416623=[..._0x4b7e4a],_0x4a4e9d=typeof _0x14a5ab?.[_0x5b95b8(0x1a9)]?.['pkField']==='string'?_0x14a5ab[_0x5b95b8(0x1a9)]['pkField'][_0x5b95b8(0x1a0)](',')[_0x5b95b8(0x1db)](_0x4a1a4f=>_0x4a1a4f[_0x5b95b8(0x1bc)]())[_0x5b95b8(0x1ce)](Boolean):[];return _0x4a4e9d['length']>0x0&&_0x416623['unshift']({'type':'primary','columns':_0x4a4e9d}),{'indexes':_0x416623,'metadataAvailable':_0x4b7e4a[_0x5b95b8(0x1ba)]>0x0};}
@@ -1 +1 @@
1
- (function(_0x5cf6f6,_0xc5e98){const _0x5a8b3b=a258_0x3651,_0x50d6eb=_0x5cf6f6();while(!![]){try{const _0x4d3894=-parseInt(_0x5a8b3b(0x1b0))/0x1*(-parseInt(_0x5a8b3b(0x1b5))/0x2)+-parseInt(_0x5a8b3b(0x1b3))/0x3+-parseInt(_0x5a8b3b(0x1b6))/0x4*(parseInt(_0x5a8b3b(0x1ac))/0x5)+parseInt(_0x5a8b3b(0x1ad))/0x6+-parseInt(_0x5a8b3b(0x1b1))/0x7*(-parseInt(_0x5a8b3b(0x1af))/0x8)+-parseInt(_0x5a8b3b(0x1ae))/0x9*(parseInt(_0x5a8b3b(0x1b4))/0xa)+parseInt(_0x5a8b3b(0x1b2))/0xb;if(_0x4d3894===_0xc5e98)break;else _0x50d6eb['push'](_0x50d6eb['shift']());}catch(_0x1c3e75){_0x50d6eb['push'](_0x50d6eb['shift']());}}}(a258_0xaafc,0x7c65b));function a258_0x3651(_0x32a6fa,_0x192e4d){_0x32a6fa=_0x32a6fa-0x1ac;const _0xaafcbb=a258_0xaafc();let _0x365187=_0xaafcbb[_0x32a6fa];return _0x365187;}function a258_0xaafc(){const _0x2cdd16=['5476734rRYvhz','5692662TDswQx','1504PfORNl','1kJXbSL','18144PLDhVq','139084oXnHKv','1436850uXTvhL','10tNttJU','1546556YsMyEC','376672WWDJoG','30bzbMoq'];a258_0xaafc=function(){return _0x2cdd16;};return a258_0xaafc();}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ function a258_0x4d78(_0x3c08c6,_0x3730be){_0x3c08c6=_0x3c08c6-0x1bd;const _0x4531f6=a258_0x4531();let _0x4d7855=_0x4531f6[_0x3c08c6];return _0x4d7855;}(function(_0x206dcd,_0x2bb933){const _0x4b095c=a258_0x4d78,_0x359565=_0x206dcd();while(!![]){try{const _0x32f5ed=parseInt(_0x4b095c(0x1c3))/0x1*(parseInt(_0x4b095c(0x1c5))/0x2)+-parseInt(_0x4b095c(0x1c6))/0x3+parseInt(_0x4b095c(0x1be))/0x4*(parseInt(_0x4b095c(0x1c0))/0x5)+-parseInt(_0x4b095c(0x1bd))/0x6+-parseInt(_0x4b095c(0x1c2))/0x7+parseInt(_0x4b095c(0x1bf))/0x8*(-parseInt(_0x4b095c(0x1c4))/0x9)+parseInt(_0x4b095c(0x1c1))/0xa;if(_0x32f5ed===_0x2bb933)break;else _0x359565['push'](_0x359565['shift']());}catch(_0x355472){_0x359565['push'](_0x359565['shift']());}}}(a258_0x4531,0x2be9f));function a258_0x4531(){const _0x389597=['1289605xzdnJC','1243720JQJwUL','1860782saDNCy','181SSmSEO','117PUeNSV','3304WokEqo','3210seEngw','281610JajjJZ','4dszeiD','115448Mpnijs'];a258_0x4531=function(){return _0x389597;};return a258_0x4531();}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- function a259_0x1f37(){const _0x201906=['isTerminal','19615hjfggX','253oftGSE','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','471856REQTLF','448434cSOfGS','string','task',',\x20received\x20','str','528804zSwHce','261804YtXNvf','apiError','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','18IetiKK','taskId','48047UBBBiT','642payAiM','trim','4288710axBcSc','compress','56qXWOLV','task-id','flagMissing','8IVvTXg'];a259_0x1f37=function(){return _0x201906;};return a259_0x1f37();}const a259_0x2e585d=a259_0xc4c3;function a259_0xc4c3(_0x18872e,_0x5239c4){_0x18872e=_0x18872e-0x83;const _0x1f374a=a259_0x1f37();let _0xc4c348=_0x1f374a[_0x18872e];return _0xc4c348;}(function(_0x46363c,_0x276c0d){const _0x4a37c2=a259_0xc4c3,_0x1cb068=_0x46363c();while(!![]){try{const _0x4d9e8d=-parseInt(_0x4a37c2(0x86))/0x1*(-parseInt(_0x4a37c2(0x84))/0x2)+parseInt(_0x4a37c2(0x99))/0x3*(-parseInt(_0x4a37c2(0x8e))/0x4)+parseInt(_0x4a37c2(0x90))/0x5*(-parseInt(_0x4a37c2(0x87))/0x6)+parseInt(_0x4a37c2(0x93))/0x7+-parseInt(_0x4a37c2(0x8b))/0x8*(parseInt(_0x4a37c2(0x94))/0x9)+parseInt(_0x4a37c2(0x89))/0xa+parseInt(_0x4a37c2(0x91))/0xb*(parseInt(_0x4a37c2(0x9a))/0xc);if(_0x4d9e8d===_0x276c0d)break;else _0x1cb068['push'](_0x1cb068['shift']());}catch(_0x41f86c){_0x1cb068['push'](_0x1cb068['shift']());}}}(a259_0x1f37,0x4b8a6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a259_0x2e585d(0x96),'command':'status','description':a259_0x2e585d(0x92),'risk':'read','defaultOutputFormat':a259_0x2e585d(0x8a),'structuredErrors':!![],'flags':[{'name':a259_0x2e585d(0x8c),'type':a259_0x2e585d(0x95),'required':!![],'description':'Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x309c5e){const _0x1d1675=a259_0x2e585d;if(!_0x309c5e[_0x1d1675(0x98)]('task-id')[_0x1d1675(0x88)]())throw CliErrors[_0x1d1675(0x8d)]('task-id');},async 'execute'(_0x1534f3){const _0x930847=a259_0x2e585d,_0x597e1a=_0x1534f3[_0x930847(0x98)](_0x930847(0x8c))[_0x930847(0x88)](),_0x861009=normalizeAsyncTask(await getAsyncTaskStatus(_0x597e1a,_0x1534f3['appCode'],_0x1534f3['cookie']));if(_0x861009[_0x930847(0x85)]!==_0x597e1a)throw CliErrors[_0x930847(0x9b)](_0x930847(0x83)+_0x597e1a+_0x930847(0x97)+_0x861009[_0x930847(0x85)]+'.');const _0x3e65b8=buildAsyncTaskStatusCommand(_0x861009['taskId'],_0x1534f3['appCode']);return{'ok':!![],'message':asyncTaskMessage(_0x861009),'data':{'appCode':_0x1534f3['appCode'],..._0x861009,'query':_0x861009[_0x930847(0x8f)]?null:{'command':_0x3e65b8}}};}};
1
+ const a259_0x120166=a259_0x5d99;(function(_0x27422d,_0x3e4a3b){const _0x35eedd=a259_0x5d99,_0x24982d=_0x27422d();while(!![]){try{const _0x4b7a43=-parseInt(_0x35eedd(0xb3))/0x1*(parseInt(_0x35eedd(0xbb))/0x2)+parseInt(_0x35eedd(0xb6))/0x3+-parseInt(_0x35eedd(0xba))/0x4+parseInt(_0x35eedd(0xc0))/0x5+parseInt(_0x35eedd(0xbd))/0x6*(-parseInt(_0x35eedd(0xae))/0x7)+-parseInt(_0x35eedd(0xb0))/0x8*(-parseInt(_0x35eedd(0xbc))/0x9)+-parseInt(_0x35eedd(0xc7))/0xa*(parseInt(_0x35eedd(0xc2))/0xb);if(_0x4b7a43===_0x3e4a3b)break;else _0x24982d['push'](_0x24982d['shift']());}catch(_0x54506a){_0x24982d['push'](_0x24982d['shift']());}}}(a259_0x174e,0xaa896));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a259_0x5d99(_0x107fe3,_0x267823){_0x107fe3=_0x107fe3-0xae;const _0x174eca=a259_0x174e();let _0x5d9950=_0x174eca[_0x107fe3];return _0x5d9950;}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a259_0x174e(){const _0x3ba3bd=['string','task','813104DZizvU','10ryvXkD','9703746QzATgR','4404CdjXAy','isTerminal','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','385145dMuIjp','apiError','154FdvOQt','compress','str','task-id','status','423960AtYwOp','3871eXOqXW','trim','8zyFEZj','taskId','cookie','50877XJvhMz','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED',',\x20received\x20','3001206kkjuTV','appCode'];a259_0x174e=function(){return _0x3ba3bd;};return a259_0x174e();}export const taskStatus={'service':a259_0x120166(0xb9),'command':a259_0x120166(0xc6),'description':a259_0x120166(0xb4),'risk':'read','defaultOutputFormat':a259_0x120166(0xc3),'structuredErrors':!![],'flags':[{'name':a259_0x120166(0xc5),'type':a259_0x120166(0xb8),'required':!![],'description':a259_0x120166(0xbf)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x597c42){const _0x395589=a259_0x120166;if(!_0x597c42[_0x395589(0xc4)](_0x395589(0xc5))['trim']())throw CliErrors['flagMissing'](_0x395589(0xc5));},async 'execute'(_0x27d5ec){const _0xba5363=a259_0x120166,_0x42cee3=_0x27d5ec[_0xba5363(0xc4)](_0xba5363(0xc5))[_0xba5363(0xaf)](),_0x21116c=normalizeAsyncTask(await getAsyncTaskStatus(_0x42cee3,_0x27d5ec[_0xba5363(0xb7)],_0x27d5ec[_0xba5363(0xb2)]));if(_0x21116c['taskId']!==_0x42cee3)throw CliErrors[_0xba5363(0xc1)]('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x42cee3+_0xba5363(0xb5)+_0x21116c[_0xba5363(0xb1)]+'.');const _0x20a9ee=buildAsyncTaskStatusCommand(_0x21116c[_0xba5363(0xb1)],_0x27d5ec[_0xba5363(0xb7)]);return{'ok':!![],'message':asyncTaskMessage(_0x21116c),'data':{'appCode':_0x27d5ec[_0xba5363(0xb7)],..._0x21116c,'query':_0x21116c[_0xba5363(0xbe)]?null:{'command':_0x20a9ee}}};}};
@@ -1 +1 @@
1
- (function(_0xb4e62f,_0x179371){const _0x3b6824=a260_0x1ee5,_0x2e8b49=_0xb4e62f();while(!![]){try{const _0x475832=parseInt(_0x3b6824(0x177))/0x1+-parseInt(_0x3b6824(0x175))/0x2*(-parseInt(_0x3b6824(0x17b))/0x3)+-parseInt(_0x3b6824(0x174))/0x4+parseInt(_0x3b6824(0x17a))/0x5*(parseInt(_0x3b6824(0x17d))/0x6)+parseInt(_0x3b6824(0x178))/0x7+parseInt(_0x3b6824(0x179))/0x8+parseInt(_0x3b6824(0x17c))/0x9*(-parseInt(_0x3b6824(0x176))/0xa);if(_0x475832===_0x179371)break;else _0x2e8b49['push'](_0x2e8b49['shift']());}catch(_0x56af4f){_0x2e8b49['push'](_0x2e8b49['shift']());}}}(a260_0x5507,0xdf166));function a260_0x1ee5(_0x3803d0,_0x1b100){_0x3803d0=_0x3803d0-0x174;const _0x550779=a260_0x5507();let _0x1ee58f=_0x550779[_0x3803d0];return _0x1ee58f;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';export const tenantDefinitions=[tenantMembersListDefinition];function a260_0x5507(){const _0x2941ac=['5780873DekBXv','10758776uhlkXl','320wqPTIG','158616pXENSf','4719879SkIjHl','52188CMsRhe','2044800QzQMBj','18kCRjjQ','60EFsoXC','1368346LWlUHc'];a260_0x5507=function(){return _0x2941ac;};return a260_0x5507();}
1
+ (function(_0x20274c,_0x431ddb){const _0x53ee77=a260_0x3f58,_0x2a19b9=_0x20274c();while(!![]){try{const _0x58efe9=-parseInt(_0x53ee77(0xb3))/0x1+parseInt(_0x53ee77(0xb1))/0x2*(-parseInt(_0x53ee77(0xbc))/0x3)+parseInt(_0x53ee77(0xb7))/0x4*(-parseInt(_0x53ee77(0xb2))/0x5)+-parseInt(_0x53ee77(0xb9))/0x6+parseInt(_0x53ee77(0xba))/0x7*(parseInt(_0x53ee77(0xb4))/0x8)+-parseInt(_0x53ee77(0xbb))/0x9*(-parseInt(_0x53ee77(0xb5))/0xa)+parseInt(_0x53ee77(0xb8))/0xb*(parseInt(_0x53ee77(0xb6))/0xc);if(_0x58efe9===_0x431ddb)break;else _0x2a19b9['push'](_0x2a19b9['shift']());}catch(_0x35a9fe){_0x2a19b9['push'](_0x2a19b9['shift']());}}}(a260_0x1344,0x22e2e));function a260_0x3f58(_0x3950e1,_0x1e81e8){_0x3950e1=_0x3950e1-0xb1;const _0x134456=a260_0x1344();let _0x3f58b1=_0x134456[_0x3950e1];return _0x3f58b1;}import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a260_0x1344(){const _0x5206cf=['9SucpRk','590073aRLVeq','2JlrhIF','135350hhHSiU','152656NloeYw','112hudKDG','642310xVfdpF','7453764EgZtYP','32Snoaxo','11MhAPXq','1281666XDFZTW','118517jFVpRX'];a260_0x1344=function(){return _0x5206cf;};return a260_0x1344();}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- const a261_0x516b7f=a261_0x12f8;function a261_0xf914(){const _0x5007ba=['1117047TGbfVo','513VkcrWI','trim','read','34560TgDOFN','76fXlKpd','16865gNiWKT','665330SRONRa','Exact\x20tenant\x20code','str','flagMissing','1477TyZOxL','Pass\x20--tenant-code\x20<code>.','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','\x20tenant\x20member(s)','tenant-code','10464CZFrZJ','Found\x20','5811832vMstNn','members-list','length','10506nGGZRe'];a261_0xf914=function(){return _0x5007ba;};return a261_0xf914();}(function(_0x2ce2f4,_0x3b7157){const _0x5c71f4=a261_0x12f8,_0x51b6b1=_0x2ce2f4();while(!![]){try{const _0x2b4304=parseInt(_0x5c71f4(0xfc))/0x1+parseInt(_0x5c71f4(0x10a))/0x2+-parseInt(_0x5c71f4(0x10b))/0x3+parseInt(_0x5c71f4(0xfa))/0x4*(parseInt(_0x5c71f4(0xfb))/0x5)+parseInt(_0x5c71f4(0x105))/0x6*(-parseInt(_0x5c71f4(0x100))/0x7)+parseInt(_0x5c71f4(0x107))/0x8+-parseInt(_0x5c71f4(0x10c))/0x9*(parseInt(_0x5c71f4(0xf9))/0xa);if(_0x2b4304===_0x3b7157)break;else _0x51b6b1['push'](_0x51b6b1['shift']());}catch(_0x5c4e50){_0x51b6b1['push'](_0x51b6b1['shift']());}}}(a261_0xf914,0x7fe30));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a261_0x12f8(_0x46a8b7,_0x3b9b41){_0x46a8b7=_0x46a8b7-0xf8;const _0xf91419=a261_0xf914();let _0x12f82f=_0xf91419[_0x46a8b7];return _0x12f82f;}import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':'tenant','command':a261_0x516b7f(0x108),'description':a261_0x516b7f(0x102),'risk':a261_0x516b7f(0xf8),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a261_0x516b7f(0x104),'type':'string','required':!![],'description':a261_0x516b7f(0xfd)}],async 'validate'(_0x6fb84d){const _0x59d1fd=a261_0x516b7f;if(!_0x6fb84d[_0x59d1fd(0xfe)](_0x59d1fd(0x104))[_0x59d1fd(0x10d)]())throw CliErrors[_0x59d1fd(0xff)](_0x59d1fd(0x104),_0x59d1fd(0x101));},async 'execute'(_0x5a2cd1){const _0x1e2d3b=a261_0x516b7f,_0x5059f7=_0x5a2cd1['str'](_0x1e2d3b(0x104))['trim'](),_0x245b2d=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x5059f7,_0x245b2d);const _0x7d9b4e=projectTenantMembers(await listTenantDirectoryMembers(_0x5059f7));return{'ok':!![],'data':{'tenantCode':_0x5059f7,'items':_0x7d9b4e,'totalCount':_0x7d9b4e['length']},'message':_0x1e2d3b(0x106)+_0x7d9b4e[_0x1e2d3b(0x109)]+_0x1e2d3b(0x103)};}};
1
+ function a261_0x5455(){const _0x2a4505=['1188TAhIbT','trim','232MJMcaF','flagMissing','34092RvQTnU','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','145625CyAIEV','3PxuGQh','146970Kugtbt','members-list','tenant','Exact\x20tenant\x20code','7580MbUkat','69dDBPZj','1426509aCknxH','str','tenant-code','5649OXeioM','90044mbFpnL','string'];a261_0x5455=function(){return _0x2a4505;};return a261_0x5455();}const a261_0xfbe902=a261_0x3827;function a261_0x3827(_0x1e1d2e,_0x5a51b9){_0x1e1d2e=_0x1e1d2e-0x8f;const _0x545519=a261_0x5455();let _0x3827d1=_0x545519[_0x1e1d2e];return _0x3827d1;}(function(_0x2f625e,_0x21f622){const _0x3262b3=a261_0x3827,_0xd52d28=_0x2f625e();while(!![]){try{const _0x3a0c1a=parseInt(_0x3262b3(0x9a))/0x1*(parseInt(_0x3262b3(0x91))/0x2)+-parseInt(_0x3262b3(0xa0))/0x3*(parseInt(_0x3262b3(0x97))/0x4)+-parseInt(_0x3262b3(0x99))/0x5+parseInt(_0x3262b3(0x9b))/0x6+parseInt(_0x3262b3(0x90))/0x7*(-parseInt(_0x3262b3(0x95))/0x8)+parseInt(_0x3262b3(0xa1))/0x9+-parseInt(_0x3262b3(0x9f))/0xa*(-parseInt(_0x3262b3(0x93))/0xb);if(_0x3a0c1a===_0x21f622)break;else _0xd52d28['push'](_0xd52d28['shift']());}catch(_0x3a8382){_0xd52d28['push'](_0xd52d28['shift']());}}}(a261_0x5455,0x24f49));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';export const tenantMembersListDefinition={'service':a261_0xfbe902(0x9d),'command':a261_0xfbe902(0x9c),'description':a261_0xfbe902(0x98),'risk':'read','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a261_0xfbe902(0x8f),'type':a261_0xfbe902(0x92),'required':!![],'description':a261_0xfbe902(0x9e)}],async 'validate'(_0x3a3aab){const _0x561ce2=a261_0xfbe902;if(!_0x3a3aab['str'](_0x561ce2(0x8f))[_0x561ce2(0x94)]())throw CliErrors[_0x561ce2(0x96)](_0x561ce2(0x8f),'Pass\x20--tenant-code\x20<code>.');},async 'execute'(_0x4bd744){const _0x25ded7=a261_0xfbe902,_0x1d8968=_0x4bd744[_0x25ded7(0xa2)](_0x25ded7(0x8f))['trim'](),_0x402d99=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x1d8968,_0x402d99);const _0x17dc77=projectTenantMembers(await listTenantDirectoryMembers(_0x1d8968));return{'ok':!![],'data':{'tenantCode':_0x1d8968,'items':_0x17dc77,'totalCount':_0x17dc77['length']},'message':'Found\x20'+_0x17dc77['length']+'\x20tenant\x20member(s)'};}};
@@ -1 +1 @@
1
- function a262_0x3cfc(){const _0x3db19e=['42fyQfTk','2VvLKqZ','role','get','sort','adminFlag','userId','username','trim','status','ADMIN','1092913rebjfP','4HOmpDX','1960040IrbdPc','set','1444710vhpyZA','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','validation','displayName','1493013OJnwIi','299560OkInqd','values','isFinite','nickname','63chAPXJ','MEMBER','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','688950YCEOti','25032810rlSclq','tenantCode'];a262_0x3cfc=function(){return _0x3db19e;};return a262_0x3cfc();}(function(_0x411acc,_0x268592){const _0x38c8b1=a262_0x2492,_0x4fb00c=_0x411acc();while(!![]){try{const _0x5d8173=parseInt(_0x38c8b1(0x15f))/0x1+-parseInt(_0x38c8b1(0x173))/0x2*(parseInt(_0x38c8b1(0x167))/0x3)+-parseInt(_0x38c8b1(0x160))/0x4*(parseInt(_0x38c8b1(0x16f))/0x5)+parseInt(_0x38c8b1(0x163))/0x6*(-parseInt(_0x38c8b1(0x172))/0x7)+parseInt(_0x38c8b1(0x168))/0x8*(-parseInt(_0x38c8b1(0x16c))/0x9)+-parseInt(_0x38c8b1(0x161))/0xa+parseInt(_0x38c8b1(0x170))/0xb;if(_0x5d8173===_0x268592)break;else _0x4fb00c['push'](_0x4fb00c['shift']());}catch(_0x4db771){_0x4fb00c['push'](_0x4fb00c['shift']());}}}(a262_0x3cfc,0xcab7d));function a262_0x2492(_0x3284e8,_0x23a793){_0x3284e8=_0x3284e8-0x156;const _0x3cfcd1=a262_0x3cfc();let _0x24925c=_0x3cfcd1[_0x3284e8];return _0x24925c;}import{CliErrors}from'../../errors.js';function textOrNull(_0x1a24e1){const _0xd6a033=a262_0x2492,_0x2f58d0=_0x1a24e1?.[_0xd6a033(0x15c)]();return _0x2f58d0?_0x2f58d0:null;}export function projectTenantMembers(_0x32acf8){const _0x2d36ea=a262_0x2492,_0x58e9f8=new Map();for(const _0x1b9881 of _0x32acf8){const _0x3a6149=Number(_0x1b9881[_0x2d36ea(0x15a)]);if(!Number[_0x2d36ea(0x16a)](_0x3a6149)||_0x3a6149<=0x0)continue;const _0x22a53e={'userId':_0x3a6149,'username':textOrNull(_0x1b9881['username']),'displayName':textOrNull(_0x1b9881[_0x2d36ea(0x16b)]),'role':_0x1b9881[_0x2d36ea(0x159)]===!![]?'ADMIN':_0x2d36ea(0x16d),'status':textOrNull(_0x1b9881[_0x2d36ea(0x15d)])},_0xeeb780=_0x58e9f8[_0x2d36ea(0x157)](_0x3a6149);if(!_0xeeb780){_0x58e9f8[_0x2d36ea(0x162)](_0x3a6149,_0x22a53e);continue;}_0xeeb780[_0x2d36ea(0x15b)]??=_0x22a53e[_0x2d36ea(0x15b)],_0xeeb780[_0x2d36ea(0x166)]??=_0x22a53e[_0x2d36ea(0x166)],_0xeeb780[_0x2d36ea(0x15d)]??=_0x22a53e['status'];if(_0x22a53e[_0x2d36ea(0x156)]===_0x2d36ea(0x15e))_0xeeb780[_0x2d36ea(0x156)]=_0x2d36ea(0x15e);}return[..._0x58e9f8[_0x2d36ea(0x169)]()][_0x2d36ea(0x158)]((_0x23bee0,_0x5b70be)=>_0x23bee0[_0x2d36ea(0x15a)]-_0x5b70be['userId']);}export function assertTenantAccessible(_0x3d01eb,_0x162214){const _0xa9930c=a262_0x2492;if(_0x162214['some'](_0x3a5316=>_0x3a5316[_0xa9930c(0x171)]===_0x3d01eb))return;throw CliErrors[_0xa9930c(0x165)]('Tenant\x20\x22'+_0x3d01eb+_0xa9930c(0x164),_0xa9930c(0x16e));}
1
+ (function(_0x1babf1,_0xa1cebf){const _0x24249b=a262_0x5502,_0x1c1f1a=_0x1babf1();while(!![]){try{const _0x4274e7=-parseInt(_0x24249b(0x8c))/0x1*(parseInt(_0x24249b(0x96))/0x2)+-parseInt(_0x24249b(0x8e))/0x3+parseInt(_0x24249b(0x9d))/0x4+parseInt(_0x24249b(0x93))/0x5+parseInt(_0x24249b(0x88))/0x6*(parseInt(_0x24249b(0x9c))/0x7)+-parseInt(_0x24249b(0x8b))/0x8*(parseInt(_0x24249b(0x9a))/0x9)+parseInt(_0x24249b(0x9b))/0xa;if(_0x4274e7===_0xa1cebf)break;else _0x1c1f1a['push'](_0x1c1f1a['shift']());}catch(_0x48bdca){_0x1c1f1a['push'](_0x1c1f1a['shift']());}}}(a262_0x13ba,0x2b50c));function a262_0x5502(_0x7a2a85,_0x3e2a50){_0x7a2a85=_0x7a2a85-0x82;const _0x13ba1d=a262_0x13ba();let _0x5502b1=_0x13ba1d[_0x7a2a85];return _0x5502b1;}import{CliErrors}from'../../errors.js';function a262_0x13ba(){const _0x4bd3ae=['displayName','status','47896VhwObH','300631neBRkh','values','551274sMYJbP','username','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','validation','ADMIN','1397990OZEUTJ','userId','some','2tdUJYr','isFinite','role','get','495HdNwgB','5424060EKhQTv','7ofkhre','366124EqOeCB','trim','nickname','Tenant\x20\x22','sort','set','tenantCode','adminFlag','465354HwJkJD'];a262_0x13ba=function(){return _0x4bd3ae;};return a262_0x13ba();}function textOrNull(_0x5b7651){const _0x9fb73d=a262_0x5502,_0xb355ad=_0x5b7651?.[_0x9fb73d(0x9e)]();return _0xb355ad?_0xb355ad:null;}export function projectTenantMembers(_0x139ddf){const _0x1fd13f=a262_0x5502,_0x3442d9=new Map();for(const _0x6075d6 of _0x139ddf){const _0x2f73bc=Number(_0x6075d6[_0x1fd13f(0x94)]);if(!Number[_0x1fd13f(0x97)](_0x2f73bc)||_0x2f73bc<=0x0)continue;const _0x41e780={'userId':_0x2f73bc,'username':textOrNull(_0x6075d6[_0x1fd13f(0x8f)]),'displayName':textOrNull(_0x6075d6[_0x1fd13f(0x82)]),'role':_0x6075d6[_0x1fd13f(0x87)]===!![]?_0x1fd13f(0x92):'MEMBER','status':textOrNull(_0x6075d6[_0x1fd13f(0x8a)])},_0x3f02c0=_0x3442d9[_0x1fd13f(0x99)](_0x2f73bc);if(!_0x3f02c0){_0x3442d9[_0x1fd13f(0x85)](_0x2f73bc,_0x41e780);continue;}_0x3f02c0[_0x1fd13f(0x8f)]??=_0x41e780[_0x1fd13f(0x8f)],_0x3f02c0['displayName']??=_0x41e780[_0x1fd13f(0x89)],_0x3f02c0[_0x1fd13f(0x8a)]??=_0x41e780[_0x1fd13f(0x8a)];if(_0x41e780[_0x1fd13f(0x98)]===_0x1fd13f(0x92))_0x3f02c0[_0x1fd13f(0x98)]='ADMIN';}return[..._0x3442d9[_0x1fd13f(0x8d)]()][_0x1fd13f(0x84)]((_0x40ac6e,_0x4c8058)=>_0x40ac6e[_0x1fd13f(0x94)]-_0x4c8058[_0x1fd13f(0x94)]);}export function assertTenantAccessible(_0x555786,_0x2daa09){const _0x3a5fee=a262_0x5502;if(_0x2daa09[_0x3a5fee(0x95)](_0x12153d=>_0x12153d[_0x3a5fee(0x86)]===_0x555786))return;throw CliErrors[_0x3a5fee(0x91)](_0x3a5fee(0x83)+_0x555786+'\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.',_0x3a5fee(0x90));}
@@ -1 +1 @@
1
- const a263_0xf47410=a263_0x1e3e;(function(_0xc8ad49,_0x5e0724){const _0x1a4591=a263_0x1e3e,_0x13a173=_0xc8ad49();while(!![]){try{const _0x740a6b=parseInt(_0x1a4591(0xde))/0x1*(parseInt(_0x1a4591(0xd8))/0x2)+-parseInt(_0x1a4591(0xda))/0x3+parseInt(_0x1a4591(0xd5))/0x4*(parseInt(_0x1a4591(0xec))/0x5)+parseInt(_0x1a4591(0xdd))/0x6*(-parseInt(_0x1a4591(0xe5))/0x7)+-parseInt(_0x1a4591(0xe0))/0x8+parseInt(_0x1a4591(0xe1))/0x9*(parseInt(_0x1a4591(0xe7))/0xa)+parseInt(_0x1a4591(0xd4))/0xb;if(_0x740a6b===_0x5e0724)break;else _0x13a173['push'](_0x13a173['shift']());}catch(_0x29e634){_0x13a173['push'](_0x13a173['shift']());}}}(a263_0x2e6b,0xdac49));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID=a263_0xf47410(0xd9),CURRENT_BINDING_WARNING=a263_0xf47410(0xeb);function readDingTalkUserId(_0x50a5ea){const _0x12fb08=a263_0xf47410,_0x16ee51=_0x50a5ea[_0x12fb08(0xdf)](_0x12fb08(0xdb))['trim']();if(!_0x16ee51)throw CliErrors[_0x12fb08(0xd3)](_0x12fb08(0xe4),_0x12fb08(0xd7));return _0x16ee51;}function buildBindingData(_0x20b919,_0xb31ee0){const _0x30d191=a263_0xf47410;return{'operation':_0x30d191(0xea),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x20b919},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x20b919,'bound':!![]},'dryRun':_0xb31ee0,'backend':{'method':_0x30d191(0xe6),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a263_0x1e3e(_0x379c6d,_0x18cbd2){_0x379c6d=_0x379c6d-0xd3;const _0x2e6ba6=a263_0x2e6b();let _0x1e3e70=_0x2e6ba6[_0x379c6d];return _0x1e3e70;}export const dingTalkSandboxBind={'service':'user-account','command':'dingding-sandbox-bind','description':'Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','risk':a263_0xf47410(0xe2),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a263_0xf47410(0xdb),'type':a263_0xf47410(0xe3),'required':!![],'description':a263_0xf47410(0xe8)}],async 'validate'(_0x2af2c3){readDingTalkUserId(_0x2af2c3);},async 'dryRun'(_0x3aad30){const _0x5abbf0=a263_0xf47410,_0x1e28dc=readDingTalkUserId(_0x3aad30);return asDryRunResult(buildBindingData(_0x1e28dc,!![]),{'method':_0x5abbf0(0xe6),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x419771){const _0x475eb7=a263_0xf47410,_0x3bf789=readDingTalkUserId(_0x419771),_0x3bc74b=await bindDingTalkSandboxAccount(_0x3bf789);if(_0x3bc74b!==!![])throw CliErrors[_0x475eb7(0xd6)](_0x475eb7(0xdc),_0x475eb7(0xe9));return{'ok':!![],'data':buildBindingData(_0x3bf789,![]),'message':_0x475eb7(0xed)};}};function a263_0x2e6b(){const _0x665edf=['DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.','bind','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','1557515autfvy','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','validation','35252052bzynmD','4oTMmjG','apiError','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','135906OPPacD','dingtalk','4640622KqjSrj','ding-talk-user-id','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','6Gmexdd','7IoqvEN','str','1939256VXMupM','9GjOGyb','write','string','--ding-talk-user-id\x20cannot\x20be\x20empty.','9337433wWKBDw','POST','273670aSokZj'];a263_0x2e6b=function(){return _0x665edf;};return a263_0x2e6b();}
1
+ const a263_0x5c5e41=a263_0x1296;(function(_0x563984,_0x3793ba){const _0x3b5554=a263_0x1296,_0x441f6e=_0x563984();while(!![]){try{const _0x34082e=parseInt(_0x3b5554(0x151))/0x1*(parseInt(_0x3b5554(0x162))/0x2)+-parseInt(_0x3b5554(0x14a))/0x3*(parseInt(_0x3b5554(0x14d))/0x4)+parseInt(_0x3b5554(0x14e))/0x5*(parseInt(_0x3b5554(0x14b))/0x6)+-parseInt(_0x3b5554(0x15e))/0x7+parseInt(_0x3b5554(0x157))/0x8+-parseInt(_0x3b5554(0x152))/0x9+parseInt(_0x3b5554(0x14c))/0xa*(parseInt(_0x3b5554(0x15c))/0xb);if(_0x34082e===_0x3793ba)break;else _0x441f6e['push'](_0x441f6e['shift']());}catch(_0x384f87){_0x441f6e['push'](_0x441f6e['shift']());}}}(a263_0x4248,0x3fed5));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a263_0x1296(_0x18b545,_0x9259a6){_0x18b545=_0x18b545-0x14a;const _0x424804=a263_0x4248();let _0x129667=_0x424804[_0x18b545];return _0x129667;}function a263_0x4248(){const _0x1c8d3c=['Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','dingtalk','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','3101984BpyBqn','POST','apiError','user-account','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','367345ErDubP','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','1582525nfbWei','dingding-sandbox-bind','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','--ding-talk-user-id\x20cannot\x20be\x20empty.','2NZOrmA','bind','str','DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','write','510105mkJqOf','6KIyKRQ','130BbIPCD','12vrAgob','129245EMFlIz','ding-talk-user-id','string','398457CuRduf','2233476eTXDLD','validation'];a263_0x4248=function(){return _0x1c8d3c;};return a263_0x4248();}const PROVIDER_ID=a263_0x5c5e41(0x155),CURRENT_BINDING_WARNING=a263_0x5c5e41(0x160);function readDingTalkUserId(_0x1e75a1){const _0x2c4d2b=a263_0x5c5e41,_0xff330d=_0x1e75a1[_0x2c4d2b(0x164)](_0x2c4d2b(0x14f))['trim']();if(!_0xff330d)throw CliErrors[_0x2c4d2b(0x153)](_0x2c4d2b(0x161),_0x2c4d2b(0x15b));return _0xff330d;}function buildBindingData(_0x171ed1,_0x50f338){const _0x3f69fe=a263_0x5c5e41;return{'operation':_0x3f69fe(0x163),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x171ed1},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x171ed1,'bound':!![]},'dryRun':_0x50f338,'backend':{'method':_0x3f69fe(0x158),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const dingTalkSandboxBind={'service':a263_0x5c5e41(0x15a),'command':a263_0x5c5e41(0x15f),'description':a263_0x5c5e41(0x15d),'risk':a263_0x5c5e41(0x166),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a263_0x5c5e41(0x14f),'type':a263_0x5c5e41(0x150),'required':!![],'description':a263_0x5c5e41(0x156)}],async 'validate'(_0x3b6052){readDingTalkUserId(_0x3b6052);},async 'dryRun'(_0x1aa9dd){const _0x1efe26=a263_0x5c5e41,_0x3ffa61=readDingTalkUserId(_0x1aa9dd);return asDryRunResult(buildBindingData(_0x3ffa61,!![]),{'method':_0x1efe26(0x158),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x2c92a5){const _0x1c7aeb=a263_0x5c5e41,_0x3bc985=readDingTalkUserId(_0x2c92a5),_0x1cd49e=await bindDingTalkSandboxAccount(_0x3bc985);if(_0x1cd49e!==!![])throw CliErrors[_0x1c7aeb(0x159)](_0x1c7aeb(0x165),'Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x3bc985,![]),'message':_0x1c7aeb(0x154)};}};
@@ -1 +1 @@
1
- const a264_0xbc8b6c=a264_0xfc0f;(function(_0x47df00,_0x43a1d9){const _0x402008=a264_0xfc0f,_0x28a40f=_0x47df00();while(!![]){try{const _0x4abef2=-parseInt(_0x402008(0x75))/0x1+-parseInt(_0x402008(0x7b))/0x2*(-parseInt(_0x402008(0x69))/0x3)+parseInt(_0x402008(0x71))/0x4+parseInt(_0x402008(0x67))/0x5*(-parseInt(_0x402008(0x7e))/0x6)+parseInt(_0x402008(0x6d))/0x7+parseInt(_0x402008(0x73))/0x8*(-parseInt(_0x402008(0x7c))/0x9)+parseInt(_0x402008(0x6a))/0xa*(parseInt(_0x402008(0x74))/0xb);if(_0x4abef2===_0x43a1d9)break;else _0x28a40f['push'](_0x28a40f['shift']());}catch(_0x2ceb9){_0x28a40f['push'](_0x28a40f['shift']());}}}(a264_0x480e,0x3cbed));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';function a264_0x480e(){const _0x238d72=['string','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','trim','49426pFxOmv','846wbRGAi','test','48IUUssL','--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','126010VuGumc','Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.','33CGmUNN','2190ZEiSZy','str','write','2843645FiXhQt','validation','user-account','union-id','1318932GMWmJa','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','31576wIAQYo','12705kighjw','439309LhKFPI','Bound\x20current\x20user\x20to\x20Feishu\x20account.','POST'];a264_0x480e=function(){return _0x238d72;};return a264_0x480e();}import{CliErrors}from'../../errors.js';const PROVIDER_ID='feishu',CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function readUnionId(_0x3e0bd1){const _0x36e07c=a264_0xfc0f,_0x2cbc2f=_0x3e0bd1[_0x36e07c(0x6b)]('union-id')[_0x36e07c(0x7a)]();if(!/^on_[A-Za-z0-9_-]+$/[_0x36e07c(0x7d)](_0x2cbc2f))throw CliErrors[_0x36e07c(0x6e)](_0x36e07c(0x66),_0x36e07c(0x68));return _0x2cbc2f;}function buildBindingData(_0x2c3ee2,_0x3a8582){const _0x52f5f1=a264_0xfc0f;return{'operation':'bind','selector':{'providerId':PROVIDER_ID,'unionId':_0x2c3ee2},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x2c3ee2,'bound':!![]},'dryRun':_0x3a8582,'backend':{'method':_0x52f5f1(0x77),'path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a264_0xfc0f(_0x54dfa7,_0x1a25da){_0x54dfa7=_0x54dfa7-0x66;const _0x480e9b=a264_0x480e();let _0xfc0f88=_0x480e9b[_0x54dfa7];return _0xfc0f88;}export const feishuBind={'service':a264_0xbc8b6c(0x6f),'command':'feishu-bind','description':a264_0xbc8b6c(0x79),'risk':a264_0xbc8b6c(0x6c),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a264_0xbc8b6c(0x70),'type':a264_0xbc8b6c(0x78),'required':!![],'description':'Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer'}],async 'validate'(_0x5e23af){readUnionId(_0x5e23af);},async 'dryRun'(_0x53ed64){const _0xe524e5=a264_0xbc8b6c,_0x1660b8=readUnionId(_0x53ed64);return asDryRunResult(buildBindingData(_0x1660b8,!![]),{'method':_0xe524e5(0x77),'url':FEISHU_BIND_PATH});},async 'execute'(_0x4f44a4){const _0x24adfe=a264_0xbc8b6c,_0x1aef5e=readUnionId(_0x4f44a4),_0x38e356=await bindFeishuAccount(_0x1aef5e);if(_0x38e356!==!![])throw CliErrors['apiError'](_0x24adfe(0x72),'Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.');return{'ok':!![],'data':buildBindingData(_0x1aef5e,![]),'message':_0x24adfe(0x76)};}};
1
+ const a264_0x17fb00=a264_0xb105;(function(_0x40e777,_0x2d0b24){const _0x5343b6=a264_0xb105,_0x6a891a=_0x40e777();while(!![]){try{const _0x52bbdf=-parseInt(_0x5343b6(0x137))/0x1*(-parseInt(_0x5343b6(0x147))/0x2)+-parseInt(_0x5343b6(0x13b))/0x3+parseInt(_0x5343b6(0x136))/0x4+parseInt(_0x5343b6(0x141))/0x5*(-parseInt(_0x5343b6(0x143))/0x6)+-parseInt(_0x5343b6(0x146))/0x7+-parseInt(_0x5343b6(0x14a))/0x8*(-parseInt(_0x5343b6(0x132))/0x9)+parseInt(_0x5343b6(0x13f))/0xa*(parseInt(_0x5343b6(0x145))/0xb);if(_0x52bbdf===_0x2d0b24)break;else _0x6a891a['push'](_0x6a891a['shift']());}catch(_0x8dba0a){_0x6a891a['push'](_0x6a891a['shift']());}}}(a264_0x4722,0x7c166));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a264_0xb105(_0x16b54f,_0x5e7307){_0x16b54f=_0x16b54f-0x131;const _0x4722f0=a264_0x4722();let _0xb105ff=_0x4722f0[_0x16b54f];return _0xb105ff;}const PROVIDER_ID=a264_0x17fb00(0x144),CURRENT_BINDING_WARNING=a264_0x17fb00(0x133);function readUnionId(_0x29b806){const _0x5d6953=a264_0x17fb00,_0x4d3aa1=_0x29b806[_0x5d6953(0x13c)](_0x5d6953(0x140))[_0x5d6953(0x142)]();if(!/^on_[A-Za-z0-9_-]+$/[_0x5d6953(0x13d)](_0x4d3aa1))throw CliErrors[_0x5d6953(0x134)]('--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.');return _0x4d3aa1;}function buildBindingData(_0x5a9682,_0x541393){return{'operation':'bind','selector':{'providerId':PROVIDER_ID,'unionId':_0x5a9682},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x5a9682,'bound':!![]},'dryRun':_0x541393,'backend':{'method':'POST','path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':a264_0x17fb00(0x135),'command':a264_0x17fb00(0x13a),'description':a264_0x17fb00(0x138),'risk':a264_0x17fb00(0x13e),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a264_0x17fb00(0x140),'type':a264_0x17fb00(0x131),'required':!![],'description':'Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer'}],async 'validate'(_0x4954e6){readUnionId(_0x4954e6);},async 'dryRun'(_0x988696){const _0x6522d=a264_0x17fb00,_0xcfac6b=readUnionId(_0x988696);return asDryRunResult(buildBindingData(_0xcfac6b,!![]),{'method':_0x6522d(0x14b),'url':FEISHU_BIND_PATH});},async 'execute'(_0xdcee0c){const _0x206c84=a264_0x17fb00,_0x41c85e=readUnionId(_0xdcee0c),_0x4fe650=await bindFeishuAccount(_0x41c85e);if(_0x4fe650!==!![])throw CliErrors[_0x206c84(0x139)](_0x206c84(0x149),'Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.');return{'ok':!![],'data':buildBindingData(_0x41c85e,![]),'message':_0x206c84(0x148)};}};function a264_0x4722(){const _0x195073=['apiError','feishu-bind','512706huVmnG','str','test','write','10WnYKOz','union-id','3005315HIZVYQ','trim','6TeFGln','feishu','2074666kafgFQ','3744314NjCHdJ','2FPKzPM','Bound\x20current\x20user\x20to\x20Feishu\x20account.','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','8VCzAeN','POST','string','165600uUfboa','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','validation','user-account','3726352MjyYsr','676535ANDVmE','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account'];a264_0x4722=function(){return _0x195073;};return a264_0x4722();}
@@ -1 +1 @@
1
- function a265_0x229d(_0x3e3658,_0x3dfe62){_0x3e3658=_0x3e3658-0x127;const _0x2fcc55=a265_0x2fcc();let _0x229dea=_0x2fcc55[_0x3e3658];return _0x229dea;}function a265_0x2fcc(){const _0x1ad807=['642XCeDMw','8243125EYOIDD','698116ighFGx','908049lrkJNp','27408xeLEsG','215gqCrOq','3483oUxrPZ','16130LWIIEL','7824411pmlVJM','8koThsg','270jfYVjd'];a265_0x2fcc=function(){return _0x1ad807;};return a265_0x2fcc();}(function(_0x33c663,_0x1126bb){const _0x380fb7=a265_0x229d,_0x35d7f2=_0x33c663();while(!![]){try{const _0x514332=-parseInt(_0x380fb7(0x12d))/0x1+-parseInt(_0x380fb7(0x12a))/0x2*(parseInt(_0x380fb7(0x130))/0x3)+-parseInt(_0x380fb7(0x12c))/0x4+-parseInt(_0x380fb7(0x12f))/0x5*(-parseInt(_0x380fb7(0x12e))/0x6)+-parseInt(_0x380fb7(0x127))/0x7*(-parseInt(_0x380fb7(0x128))/0x8)+-parseInt(_0x380fb7(0x129))/0x9*(parseInt(_0x380fb7(0x131))/0xa)+parseInt(_0x380fb7(0x12b))/0xb;if(_0x514332===_0x1126bb)break;else _0x35d7f2['push'](_0x35d7f2['shift']());}catch(_0x2af704){_0x35d7f2['push'](_0x35d7f2['shift']());}}}(a265_0x2fcc,0x88b33));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
1
+ function a265_0x2cfe(){const _0x3b0702=['24Kkwrap','1206TLndGK','1490CLGluN','16804anKMzu','1046255jDSvXv','975TayOjR','2777184jSnNTp','3000470uubIyc','54rkBkEC','2269008jexYat','30997NeluAf'];a265_0x2cfe=function(){return _0x3b0702;};return a265_0x2cfe();}(function(_0x519a8c,_0x450f37){const _0x110d54=a265_0xd0bf,_0x48834d=_0x519a8c();while(!![]){try{const _0xa962f3=-parseInt(_0x110d54(0x130))/0x1*(parseInt(_0x110d54(0x12e))/0x2)+-parseInt(_0x110d54(0x12f))/0x3+parseInt(_0x110d54(0x129))/0x4*(parseInt(_0x110d54(0x12b))/0x5)+parseInt(_0x110d54(0x12c))/0x6+parseInt(_0x110d54(0x12a))/0x7*(parseInt(_0x110d54(0x131))/0x8)+parseInt(_0x110d54(0x127))/0x9*(parseInt(_0x110d54(0x128))/0xa)+parseInt(_0x110d54(0x12d))/0xb;if(_0xa962f3===_0x450f37)break;else _0x48834d['push'](_0x48834d['shift']());}catch(_0x3b1f7e){_0x48834d['push'](_0x48834d['shift']());}}}(a265_0x2cfe,0x68f6f));function a265_0xd0bf(_0x423cc1,_0x1b9271){_0x423cc1=_0x423cc1-0x127;const _0x2cfe60=a265_0x2cfe();let _0xd0bf36=_0x2cfe60[_0x423cc1];return _0xd0bf36;}import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
@@ -1 +1 @@
1
- function a266_0x274d(){const _0x1d526f=['667320tClnwa','write','16919zCfJfT','11pugVhv','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','31DDTxML','4NWjeuE','add','1633208iLvhpi','1674250HRmelb','19549788IvsPfJ','name','942pcdIoD','9wuxgrX','654387KmlDnt','20856kPMcdd','workspace'];a266_0x274d=function(){return _0x1d526f;};return a266_0x274d();}const a266_0x5571c8=a266_0x3f5d;(function(_0x2c203c,_0x524194){const _0x504458=a266_0x3f5d,_0x4f2cf2=_0x2c203c();while(!![]){try{const _0x1b8b64=-parseInt(_0x504458(0x199))/0x1*(parseInt(_0x504458(0x1a3))/0x2)+-parseInt(_0x504458(0x1a2))/0x3*(parseInt(_0x504458(0x19a))/0x4)+-parseInt(_0x504458(0x1a5))/0x5+parseInt(_0x504458(0x1a0))/0x6*(-parseInt(_0x504458(0x196))/0x7)+-parseInt(_0x504458(0x19c))/0x8*(parseInt(_0x504458(0x1a1))/0x9)+-parseInt(_0x504458(0x19d))/0xa+-parseInt(_0x504458(0x197))/0xb*(-parseInt(_0x504458(0x19e))/0xc);if(_0x1b8b64===_0x524194)break;else _0x4f2cf2['push'](_0x4f2cf2['shift']());}catch(_0x238ffa){_0x4f2cf2['push'](_0x4f2cf2['shift']());}}}(a266_0x274d,0x319eb));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a266_0x3f5d(_0x235839,_0x2c17e8){_0x235839=_0x235839-0x195;const _0x274dc9=a266_0x274d();let _0x3f5de5=_0x274dc9[_0x235839];return _0x3f5de5;}export const workspaceAddDefinition={'service':a266_0x5571c8(0x1a4),'command':a266_0x5571c8(0x19b),'description':a266_0x5571c8(0x198),'risk':a266_0x5571c8(0x195),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x5571c8(0x19f),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x131080=>validateAppName(_0x131080,'workspace\x20add'),'execute':_0x2caa6a=>runAppAdd(_0x2caa6a,'workspace\x20add')};
1
+ const a266_0x58a9c2=a266_0x2cf2;(function(_0x2a2a7c,_0x16773e){const _0x3389b2=a266_0x2cf2,_0x5993f0=_0x2a2a7c();while(!![]){try{const _0x3577c6=parseInt(_0x3389b2(0xcd))/0x1+-parseInt(_0x3389b2(0xcc))/0x2+-parseInt(_0x3389b2(0xd4))/0x3+parseInt(_0x3389b2(0xd7))/0x4+-parseInt(_0x3389b2(0xce))/0x5+parseInt(_0x3389b2(0xd3))/0x6+parseInt(_0x3389b2(0xd6))/0x7;if(_0x3577c6===_0x16773e)break;else _0x5993f0['push'](_0x5993f0['shift']());}catch(_0x11966c){_0x5993f0['push'](_0x5993f0['shift']());}}}(a266_0x228c,0x1d68c));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';function a266_0x2cf2(_0x255287,_0x3338c1){_0x255287=_0x255287-0xcc;const _0x228c86=a266_0x228c();let _0x2cf283=_0x228c86[_0x255287];return _0x2cf283;}function a266_0x228c(){const _0x3799ad=['96930XGBcnq','342039DMiWlI','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','2594585zaufjP','51112dVyiDX','332618VEpYIt','29776IjkRHM','142910vNbMTr','add','workspace','workspace\x20add','App\x20profile\x20name'];a266_0x228c=function(){return _0x3799ad;};return a266_0x228c();}export const workspaceAddDefinition={'service':a266_0x58a9c2(0xd0),'command':a266_0x58a9c2(0xcf),'description':a266_0x58a9c2(0xd5),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a266_0x58a9c2(0xd2),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x56f8e7=>validateAppName(_0x56f8e7,'workspace\x20add'),'execute':_0x56757b=>runAppAdd(_0x56757b,a266_0x58a9c2(0xd1))};
@@ -1 +1 @@
1
- const a267_0x12e201=a267_0x3e7a;(function(_0x23a687,_0x5a0c2f){const _0x4a4832=a267_0x3e7a,_0x3772e4=_0x23a687();while(!![]){try{const _0x527f22=-parseInt(_0x4a4832(0x123))/0x1*(-parseInt(_0x4a4832(0x115))/0x2)+-parseInt(_0x4a4832(0x134))/0x3*(parseInt(_0x4a4832(0x11f))/0x4)+parseInt(_0x4a4832(0x148))/0x5+parseInt(_0x4a4832(0x12b))/0x6+-parseInt(_0x4a4832(0x11c))/0x7*(-parseInt(_0x4a4832(0x137))/0x8)+parseInt(_0x4a4832(0x112))/0x9+parseInt(_0x4a4832(0x11a))/0xa*(-parseInt(_0x4a4832(0x124))/0xb);if(_0x527f22===_0x5a0c2f)break;else _0x3772e4['push'](_0x3772e4['shift']());}catch(_0x1c7f7c){_0x3772e4['push'](_0x3772e4['shift']());}}}(a267_0x1090,0x5b768));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{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=[a267_0x12e201(0x114),a267_0x12e201(0x118),'region','env',a267_0x12e201(0x11d),'format',a267_0x12e201(0x142),'riskLevel',a267_0x12e201(0x129)],workspaceFlags=[{'name':a267_0x12e201(0x127),'type':'string','description':a267_0x12e201(0x146)},{'name':a267_0x12e201(0x114),'type':a267_0x12e201(0x144),'description':a267_0x12e201(0x140)},{'name':a267_0x12e201(0x118),'type':a267_0x12e201(0x144),'description':'Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry'},{'name':'region','type':a267_0x12e201(0x144),'description':a267_0x12e201(0x13d),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x12e201(0x133),'type':'string','description':a267_0x12e201(0x149),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':a267_0x12e201(0x144),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x12e201(0x125),'type':a267_0x12e201(0x144),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x12e201(0x142),'type':a267_0x12e201(0x13b),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x12e201(0x12e),'type':a267_0x12e201(0x144),'description':a267_0x12e201(0x12c),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':a267_0x12e201(0x12a)}];function isRecord(_0x1a907e){const _0x168d67=a267_0x12e201;return!!_0x1a907e&&typeof _0x1a907e===_0x168d67(0x11b)&&!Array[_0x168d67(0x128)](_0x1a907e);}function a267_0x3e7a(_0x2645ee,_0x596d9a){_0x2645ee=_0x2645ee-0x111;const _0x109082=a267_0x1090();let _0x3e7a21=_0x109082[_0x2645ee];return _0x3e7a21;}function assertValidAppcode(_0x425d77){const _0x1515af=a267_0x12e201,{valid:_0x1fd5cd,message:_0x272507}=validateAppcode(_0x425d77);if(!_0x1fd5cd)throw CliErrors[_0x1515af(0x113)](_0x1515af(0x120)+_0x425d77,_0x272507);}function a267_0x1090(){const _0x2e6c89=['globalConfig','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','str','pageSize','\x20--appcode\x20<code>`.','string','workspace','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','App\x20\x22','773440qpApBq','Target\x20environment','keys','5709375QqnuCU','validation','appcode','2QYqyEK','init','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','apiGroup','trim','69010GTdJIG','object','7cRWMWV','apiDir',').\x20Config:\x20','28KHIXJF','Invalid\x20appcode:\x20','region','write','306723IJrMOc','1221deSPoB','defaultFormat','format','app','isArray','locale','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','230718mcasmU','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','workspace.','riskLevel','flag','Use\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','use','env','171135fGvpje','initialized','join','3245752VUFxrS','\x20workspace\x20use\x20--app\x20<name>`.','Missing\x20workspace\x20app\x20selector.','apps','number','Initialize\x20the\x20current\x20workspace\x20app\x20binding','Country/region\x20for\x20this\x20workspace\x20app\x20profile','Switch\x20the\x20current\x20workspace\x20app\x20binding'];a267_0x1090=function(){return _0x2e6c89;};return a267_0x1090();}function sanitizeProfile(_0x3369b6){if(!isRecord(_0x3369b6))return{};const _0x337441={};for(const _0x47306d of SAFE_PROFILE_KEYS){if(_0x3369b6[_0x47306d]!==undefined)_0x337441[_0x47306d]=_0x3369b6[_0x47306d];}return _0x337441;}function cloneProfile(_0x328263){return isRecord(_0x328263)?{..._0x328263}:{};}function collectWorkspaceProfileOverrides(_0x578734){const _0x15b248=a267_0x12e201,_0x118493={},_0x4bd46a=_0x578734['str'](_0x15b248(0x118)),_0x51a8b9=_0x578734[_0x15b248(0x141)](_0x15b248(0x121)),_0x49ac6a=_0x578734[_0x15b248(0x141)]('env'),_0x3d3ccb=_0x578734[_0x15b248(0x141)]('apiDir'),_0x187f5f=_0x578734[_0x15b248(0x141)](_0x15b248(0x125)),_0x31d878=_0x578734[_0x15b248(0x12f)]('pageSize'),_0x2ce2ea=_0x578734[_0x15b248(0x141)](_0x15b248(0x12e)),_0x45e992=_0x578734[_0x15b248(0x141)]('locale');if(_0x4bd46a)_0x118493[_0x15b248(0x118)]=_0x4bd46a;if(_0x51a8b9)_0x118493[_0x15b248(0x121)]=_0x51a8b9;if(_0x49ac6a)_0x118493[_0x15b248(0x133)]=_0x49ac6a;if(_0x3d3ccb)_0x118493[_0x15b248(0x11d)]=_0x3d3ccb;if(_0x187f5f)_0x118493[_0x15b248(0x126)]=_0x187f5f;if(_0x31d878!==undefined&&_0x31d878!=='')_0x118493['pageSize']=Number(_0x31d878);if(_0x2ce2ea)_0x118493[_0x15b248(0x12e)]=_0x2ce2ea;if(_0x45e992)_0x118493[_0x15b248(0x129)]=_0x45e992;return _0x118493;}async function validateWorkspaceArgs(_0x1d22fb){const _0x5652b8=a267_0x12e201,_0x4ac44b=_0x1d22fb[_0x5652b8(0x141)](_0x5652b8(0x127))[_0x5652b8(0x119)](),_0x2fcab5=_0x1d22fb['str'](_0x5652b8(0x114))['trim']();if(!_0x4ac44b&&!_0x2fcab5)throw CliErrors['validation'](_0x5652b8(0x139),_0x5652b8(0x130)+CLI_BIN_NAME+_0x5652b8(0x131)+CLI_BIN_NAME+_0x5652b8(0x138));if(_0x2fcab5)assertValidAppcode(_0x2fcab5);}function resolveKnownApps(){const _0x2a5b19=a267_0x12e201,{config:_0x36e7e7,layers:_0x4bd630}=readRawConfigWithLayers(),_0x77e648=isRecord(_0x36e7e7['apps'])?_0x36e7e7['apps']:{},_0x353198=isRecord(_0x4bd630[_0x2a5b19(0x13f)][_0x2a5b19(0x13a)])?_0x4bd630[_0x2a5b19(0x13f)][_0x2a5b19(0x13a)]:{};return{..._0x353198,..._0x77e648};}async function configureWorkspace(_0x112563,_0x235ea8){const _0xff8607=a267_0x12e201,_0x50f56f=_0x112563['str'](_0xff8607(0x127))[_0xff8607(0x119)](),_0x7e4e91=_0x112563['str']('appcode')['trim'](),_0x4e9ae4=_0x50f56f||_0x7e4e91;if(!_0x4e9ae4)throw CliErrors[_0xff8607(0x113)](_0xff8607(0x139),_0xff8607(0x130)+CLI_BIN_NAME+_0xff8607(0x131)+CLI_BIN_NAME+_0xff8607(0x138));if(_0x7e4e91)assertValidAppcode(_0x7e4e91);const _0x38d5f7=resolveWriteConfigPath('project'),_0x2fc44b=readConfigFile(_0x38d5f7),_0x583f15=resolveKnownApps(),_0x57366e=isRecord(_0x2fc44b[_0xff8607(0x13a)])?{..._0x2fc44b[_0xff8607(0x13a)]}:{},_0x412f6f=cloneProfile(_0x57366e[_0x4e9ae4]),_0x45a0ad=sanitizeProfile(_0x583f15[_0x4e9ae4]),_0x4d3b35=_0x7e4e91?{}:_0x45a0ad,_0x1e1088=_0x7e4e91||_0x4d3b35[_0xff8607(0x114)];if(!_0x1e1088){const _0x407e5a=Object[_0xff8607(0x111)](_0x583f15),_0x5d951e=_0x407e5a['length']===0x0?_0xff8607(0x130)+CLI_BIN_NAME+'\x20workspace\x20'+_0x235ea8+'\x20--app\x20'+_0x4e9ae4+_0xff8607(0x143):_0xff8607(0x117)+_0x407e5a[_0xff8607(0x136)](',\x20');throw CliErrors[_0xff8607(0x113)](_0xff8607(0x147)+_0x4e9ae4+'\x22\x20not\x20found.',_0x5d951e);}assertValidAppcode(String(_0x1e1088));const _0x2fdd72={..._0x4d3b35,..._0x412f6f,'appcode':String(_0x1e1088),...collectWorkspaceProfileOverrides(_0x112563)};return _0x57366e[_0x4e9ae4]=_0x2fdd72,_0x2fc44b[_0xff8607(0x13a)]=_0x57366e,normalizeStoredDefaultApp(_0x2fc44b,_0x4e9ae4),delete _0x2fc44b[_0xff8607(0x114)],delete _0x2fc44b[_0xff8607(0x127)],_0x2fdd72['env']&&(_0x2fc44b[_0xff8607(0x133)]=_0x2fdd72[_0xff8607(0x133)]),writeConfigFile(_0x38d5f7,_0x2fc44b),{'ok':!![],'message':'Workspace\x20'+(_0x235ea8===_0xff8607(0x116)?_0xff8607(0x135):'updated')+':\x20'+_0x4e9ae4+'\x20(appcode:\x20'+_0x2fdd72[_0xff8607(0x114)]+_0xff8607(0x11e)+_0x38d5f7+'.\x20Credentials:\x20not\x20written.','data':{'operation':_0xff8607(0x12d)+_0x235ea8,'configPath':_0x38d5f7,'app':_0x4e9ae4,'appcode':_0x2fdd72[_0xff8607(0x114)],'apiGroup':_0x2fdd72[_0xff8607(0x118)]??null,'region':_0x2fdd72[_0xff8607(0x121)]??null,'env':_0x2fdd72[_0xff8607(0x133)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':a267_0x12e201(0x145),'command':a267_0x12e201(0x116),'description':a267_0x12e201(0x13c),'risk':a267_0x12e201(0x122),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x40911e=>configureWorkspace(_0x40911e,a267_0x12e201(0x116))},workspaceUseDefinition={'service':a267_0x12e201(0x145),'command':a267_0x12e201(0x132),'description':a267_0x12e201(0x13e),'risk':a267_0x12e201(0x122),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x32bad9=>configureWorkspace(_0x32bad9,a267_0x12e201(0x132))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a267_0x2f848e=a267_0x4370;(function(_0x461a1a,_0x21883f){const _0x1d51d0=a267_0x4370,_0x1269a7=_0x461a1a();while(!![]){try{const _0x31b8ec=-parseInt(_0x1d51d0(0x1bd))/0x1+parseInt(_0x1d51d0(0x1a7))/0x2*(-parseInt(_0x1d51d0(0x194))/0x3)+parseInt(_0x1d51d0(0x1a1))/0x4*(-parseInt(_0x1d51d0(0x1aa))/0x5)+-parseInt(_0x1d51d0(0x190))/0x6*(parseInt(_0x1d51d0(0x19f))/0x7)+-parseInt(_0x1d51d0(0x1bb))/0x8+-parseInt(_0x1d51d0(0x196))/0x9+parseInt(_0x1d51d0(0x189))/0xa;if(_0x31b8ec===_0x21883f)break;else _0x1269a7['push'](_0x1269a7['shift']());}catch(_0x3ac56c){_0x1269a7['push'](_0x1269a7['shift']());}}}(a267_0x4440,0x8dbff));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';import{readConfigFile,readRawConfigWithLayers,resolveWriteConfigPath,writeConfigFile}from'../../context.js';import{workspaceAddDefinition}from'../../commands/workspace/add.js';import{workspaceRemoveDefinition}from'../../commands/workspace/remove.js';import{normalizeStoredDefaultApp}from'../../config/schema.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../../constant/region.js';const WORKSPACE_USAGE=CLI_BIN_NAME+a267_0x2f848e(0x1b8),SAFE_PROFILE_KEYS=['appcode',a267_0x2f848e(0x19a),a267_0x2f848e(0x185),a267_0x2f848e(0x18e),a267_0x2f848e(0x192),a267_0x2f848e(0x187),a267_0x2f848e(0x19b),'riskLevel',a267_0x2f848e(0x1b4)],workspaceFlags=[{'name':a267_0x2f848e(0x1af),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x18b)},{'name':'appcode','type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x1b9)},{'name':'apiGroup','type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x1b1)},{'name':a267_0x2f848e(0x185),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x195),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x2f848e(0x18e),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x18f),'enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x2f848e(0x192),'type':'string','description':a267_0x2f848e(0x180)},{'name':a267_0x2f848e(0x18c),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x1a0),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a267_0x2f848e(0x1a4),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x2f848e(0x181),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x19e),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x2f848e(0x1b4),'type':a267_0x2f848e(0x184),'description':a267_0x2f848e(0x1b6)}];function isRecord(_0x14ad65){return!!_0x14ad65&&typeof _0x14ad65==='object'&&!Array['isArray'](_0x14ad65);}function assertValidAppcode(_0x1c00cb){const _0x26acbd=a267_0x2f848e,{valid:_0x3102be,message:_0x12a2d4}=validateAppcode(_0x1c00cb);if(!_0x3102be)throw CliErrors[_0x26acbd(0x1ac)](_0x26acbd(0x1be)+_0x1c00cb,_0x12a2d4);}function a267_0x4370(_0x303f51,_0xfa6c8){_0x303f51=_0x303f51-0x180;const _0x444069=a267_0x4440();let _0x43704b=_0x444069[_0x303f51];return _0x43704b;}function sanitizeProfile(_0x47d8e4){if(!isRecord(_0x47d8e4))return{};const _0x584c6e={};for(const _0x2b7da0 of SAFE_PROFILE_KEYS){if(_0x47d8e4[_0x2b7da0]!==undefined)_0x584c6e[_0x2b7da0]=_0x47d8e4[_0x2b7da0];}return _0x584c6e;}function cloneProfile(_0x549ffc){return isRecord(_0x549ffc)?{..._0x549ffc}:{};}function collectWorkspaceProfileOverrides(_0xf80d4a){const _0x502060=a267_0x2f848e,_0x4d5be6={},_0x203057=_0xf80d4a['str'](_0x502060(0x19a)),_0x505708=_0xf80d4a[_0x502060(0x1b5)](_0x502060(0x185)),_0x286f6f=_0xf80d4a[_0x502060(0x1b5)]('env'),_0x1feb03=_0xf80d4a[_0x502060(0x1b5)](_0x502060(0x192)),_0xa511c2=_0xf80d4a['str'](_0x502060(0x18c)),_0x2e10d2=_0xf80d4a[_0x502060(0x199)](_0x502060(0x19b)),_0x485d7b=_0xf80d4a['str'](_0x502060(0x181)),_0x13c199=_0xf80d4a[_0x502060(0x1b5)](_0x502060(0x1b4));if(_0x203057)_0x4d5be6['apiGroup']=_0x203057;if(_0x505708)_0x4d5be6[_0x502060(0x185)]=_0x505708;if(_0x286f6f)_0x4d5be6[_0x502060(0x18e)]=_0x286f6f;if(_0x1feb03)_0x4d5be6[_0x502060(0x192)]=_0x1feb03;if(_0xa511c2)_0x4d5be6[_0x502060(0x187)]=_0xa511c2;if(_0x2e10d2!==undefined&&_0x2e10d2!=='')_0x4d5be6[_0x502060(0x19b)]=Number(_0x2e10d2);if(_0x485d7b)_0x4d5be6['riskLevel']=_0x485d7b;if(_0x13c199)_0x4d5be6[_0x502060(0x1b4)]=_0x13c199;return _0x4d5be6;}function a267_0x4440(){const _0x4833c7=['\x20workspace\x20','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','65569MMXKjX','Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','4XQNxqP','globalConfig','Use\x20`','number','appcode','\x22\x20not\x20found.','1192wAdRqq','\x20--appcode\x20<code>`.','length','3611845Xjoaqz','workspace','validation','project','trim','app','keys','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Initialize\x20the\x20current\x20workspace\x20app\x20binding','write','locale','str','App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','workspace.','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','\x20--app\x20','6320288nxVXrL',').\x20Config:\x20','905536TpeMlW','Invalid\x20appcode:\x20','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','riskLevel','join','use','string','region','Missing\x20workspace\x20app\x20selector.','format','.\x20Credentials:\x20not\x20written.','39732780IKwpKz','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','defaultFormat','updated','env','Target\x20environment','174yPBDys','App\x20\x22','apiDir','init','72pHSTZd','Country/region\x20for\x20this\x20workspace\x20app\x20profile','6199047qqBxMa','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','\x20(appcode:\x20','flag','apiGroup','pageSize','apps'];a267_0x4440=function(){return _0x4833c7;};return a267_0x4440();}async function validateWorkspaceArgs(_0x279e1f){const _0x3389d8=a267_0x2f848e,_0x43fe9f=_0x279e1f[_0x3389d8(0x1b5)](_0x3389d8(0x1af))[_0x3389d8(0x1ae)](),_0x112b2b=_0x279e1f[_0x3389d8(0x1b5)](_0x3389d8(0x1a5))[_0x3389d8(0x1ae)]();if(!_0x43fe9f&&!_0x112b2b)throw CliErrors['validation'](_0x3389d8(0x186),_0x3389d8(0x1a3)+CLI_BIN_NAME+_0x3389d8(0x197)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x112b2b)assertValidAppcode(_0x112b2b);}function resolveKnownApps(){const _0x561850=a267_0x2f848e,{config:_0x45eef4,layers:_0x240dbd}=readRawConfigWithLayers(),_0x1f2fdf=isRecord(_0x45eef4[_0x561850(0x19c)])?_0x45eef4[_0x561850(0x19c)]:{},_0x45c994=isRecord(_0x240dbd['globalConfig']['apps'])?_0x240dbd[_0x561850(0x1a2)]['apps']:{};return{..._0x45c994,..._0x1f2fdf};}async function configureWorkspace(_0x3ae620,_0x1fcc80){const _0x597139=a267_0x2f848e,_0x1a177a=_0x3ae620[_0x597139(0x1b5)]('app')[_0x597139(0x1ae)](),_0x4d3f9c=_0x3ae620[_0x597139(0x1b5)]('appcode')[_0x597139(0x1ae)](),_0x52d3eb=_0x1a177a||_0x4d3f9c;if(!_0x52d3eb)throw CliErrors['validation']('Missing\x20workspace\x20app\x20selector.',_0x597139(0x1a3)+CLI_BIN_NAME+_0x597139(0x197)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x4d3f9c)assertValidAppcode(_0x4d3f9c);const _0x1e626a=resolveWriteConfigPath(_0x597139(0x1ad)),_0x4a4ca5=readConfigFile(_0x1e626a),_0x222faf=resolveKnownApps(),_0x9bb05a=isRecord(_0x4a4ca5[_0x597139(0x19c)])?{..._0x4a4ca5[_0x597139(0x19c)]}:{},_0x5a5fb2=cloneProfile(_0x9bb05a[_0x52d3eb]),_0x467048=sanitizeProfile(_0x222faf[_0x52d3eb]),_0x2409de=_0x4d3f9c?{}:_0x467048,_0x4e4735=_0x4d3f9c||_0x2409de[_0x597139(0x1a5)];if(!_0x4e4735){const _0x15fbbe=Object[_0x597139(0x1b0)](_0x222faf),_0x48c9e0=_0x15fbbe[_0x597139(0x1a9)]===0x0?_0x597139(0x1a3)+CLI_BIN_NAME+_0x597139(0x19d)+_0x1fcc80+_0x597139(0x1ba)+_0x52d3eb+_0x597139(0x1a8):_0x597139(0x18a)+_0x15fbbe[_0x597139(0x182)](',\x20');throw CliErrors[_0x597139(0x1ac)](_0x597139(0x191)+_0x52d3eb+_0x597139(0x1a6),_0x48c9e0);}assertValidAppcode(String(_0x4e4735));const _0x372c56={..._0x2409de,..._0x5a5fb2,'appcode':String(_0x4e4735),...collectWorkspaceProfileOverrides(_0x3ae620)};return _0x9bb05a[_0x52d3eb]=_0x372c56,_0x4a4ca5['apps']=_0x9bb05a,normalizeStoredDefaultApp(_0x4a4ca5,_0x52d3eb),delete _0x4a4ca5[_0x597139(0x1a5)],delete _0x4a4ca5[_0x597139(0x1af)],_0x372c56[_0x597139(0x18e)]&&(_0x4a4ca5[_0x597139(0x18e)]=_0x372c56['env']),writeConfigFile(_0x1e626a,_0x4a4ca5),{'ok':!![],'message':'Workspace\x20'+(_0x1fcc80===_0x597139(0x193)?'initialized':_0x597139(0x18d))+':\x20'+_0x52d3eb+_0x597139(0x198)+_0x372c56[_0x597139(0x1a5)]+_0x597139(0x1bc)+_0x1e626a+_0x597139(0x188),'data':{'operation':_0x597139(0x1b7)+_0x1fcc80,'configPath':_0x1e626a,'app':_0x52d3eb,'appcode':_0x372c56[_0x597139(0x1a5)],'apiGroup':_0x372c56['apiGroup']??null,'region':_0x372c56[_0x597139(0x185)]??null,'env':_0x372c56[_0x597139(0x18e)]??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':'init','description':a267_0x2f848e(0x1b2),'risk':a267_0x2f848e(0x1b3),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x217453=>configureWorkspace(_0x217453,a267_0x2f848e(0x193))},workspaceUseDefinition={'service':a267_0x2f848e(0x1ab),'command':a267_0x2f848e(0x183),'description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':a267_0x2f848e(0x1b3),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x3a06c6=>configureWorkspace(_0x3a06c6,a267_0x2f848e(0x183))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a268_0x22118b=a268_0x29fb;function a268_0x29fb(_0x9982dc,_0x141ff8){_0x9982dc=_0x9982dc-0x148;const _0x2b4df5=a268_0x2b4d();let _0x29fb7b=_0x2b4df5[_0x9982dc];return _0x29fb7b;}(function(_0x185274,_0xfcdb70){const _0x3d8b4e=a268_0x29fb,_0x2354bc=_0x185274();while(!![]){try{const _0x553bd7=parseInt(_0x3d8b4e(0x14b))/0x1+parseInt(_0x3d8b4e(0x148))/0x2+parseInt(_0x3d8b4e(0x149))/0x3+-parseInt(_0x3d8b4e(0x14a))/0x4*(-parseInt(_0x3d8b4e(0x14f))/0x5)+parseInt(_0x3d8b4e(0x152))/0x6*(parseInt(_0x3d8b4e(0x151))/0x7)+parseInt(_0x3d8b4e(0x14c))/0x8+-parseInt(_0x3d8b4e(0x153))/0x9;if(_0x553bd7===_0xfcdb70)break;else _0x2354bc['push'](_0x2354bc['shift']());}catch(_0x3ac9a4){_0x2354bc['push'](_0x2354bc['shift']());}}}(a268_0x2b4d,0x901cd));function a268_0x2b4d(){const _0x27cc12=['33461838bNHKnJ','771864kgncYk','2786601eItUnG','12DoKMzt','1088272LEKMMI','9027728WfFZDD','workspace\x20remove','name','465295PpPCzZ','Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','7oNVdAv','2985318yerWWz'];a268_0x2b4d=function(){return _0x27cc12;};return a268_0x2b4d();}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':'workspace','command':'remove','description':a268_0x22118b(0x150),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0x22118b(0x14e),'description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3c634e=>validateAppName(_0x3c634e,a268_0x22118b(0x14d)),'execute':_0x15523b=>runAppRemove(_0x15523b,a268_0x22118b(0x14d))};
1
+ function a268_0x1ccb(){const _0x2726d9=['7828767IUyZFa','7546632OBAoyj','App\x20profile\x20name\x20to\x20remove','name','136925NkBzCZ','remove','10iXKyEm','5208672dKOvDe','328954sVleGv','488676RLKyUE','workspace','120BSJwfA','write','workspace\x20remove','688472hyJuDR'];a268_0x1ccb=function(){return _0x2726d9;};return a268_0x1ccb();}const a268_0xe9026e=a268_0x4d7b;(function(_0x165227,_0x4e1bff){const _0x398278=a268_0x4d7b,_0x32e2d5=_0x165227();while(!![]){try{const _0x5b6af1=parseInt(_0x398278(0x109))/0x1+parseInt(_0x398278(0x116))/0x2*(parseInt(_0x398278(0x10a))/0x3)+parseInt(_0x398278(0x10c))/0x4*(parseInt(_0x398278(0x114))/0x5)+-parseInt(_0x398278(0x111))/0x6+parseInt(_0x398278(0x108))/0x7+parseInt(_0x398278(0x10f))/0x8+-parseInt(_0x398278(0x110))/0x9;if(_0x5b6af1===_0x4e1bff)break;else _0x32e2d5['push'](_0x32e2d5['shift']());}catch(_0x1f44ab){_0x32e2d5['push'](_0x32e2d5['shift']());}}}(a268_0x1ccb,0xa2f5c));function a268_0x4d7b(_0x1f4881,_0x4f0f9e){_0x1f4881=_0x1f4881-0x108;const _0x1ccb18=a268_0x1ccb();let _0x4d7b64=_0x1ccb18[_0x1f4881];return _0x4d7b64;}import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a268_0xe9026e(0x10b),'command':a268_0xe9026e(0x115),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':a268_0xe9026e(0x10d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a268_0xe9026e(0x113),'description':a268_0xe9026e(0x112),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x153291=>validateAppName(_0x153291,a268_0xe9026e(0x10e)),'execute':_0xb1b2f6=>runAppRemove(_0xb1b2f6,a268_0xe9026e(0x10e))};
@@ -1 +1 @@
1
- function a269_0x16ee(_0x35fae8,_0x1ff705){_0x35fae8=_0x35fae8-0xf0;const _0x131172=a269_0x1311();let _0x16ee4c=_0x131172[_0x35fae8];return _0x16ee4c;}const a269_0x4a09e6=a269_0x16ee;(function(_0x57064d,_0x52d3ad){const _0x3d0565=a269_0x16ee,_0x58e72d=_0x57064d();while(!![]){try{const _0x148e49=parseInt(_0x3d0565(0x11c))/0x1+parseInt(_0x3d0565(0x10c))/0x2*(-parseInt(_0x3d0565(0x11a))/0x3)+-parseInt(_0x3d0565(0x13d))/0x4*(-parseInt(_0x3d0565(0x125))/0x5)+parseInt(_0x3d0565(0x110))/0x6+parseInt(_0x3d0565(0x13b))/0x7*(parseInt(_0x3d0565(0x122))/0x8)+-parseInt(_0x3d0565(0x11b))/0x9+parseInt(_0x3d0565(0x105))/0xa*(-parseInt(_0x3d0565(0x123))/0xb);if(_0x148e49===_0x52d3ad)break;else _0x58e72d['push'](_0x58e72d['shift']());}catch(_0x586efc){_0x58e72d['push'](_0x58e72d['shift']());}}}(a269_0x1311,0xc8019));import{existsSync,readFileSync}from'node:fs';import{isAbsolute,resolve}from'node:path';import{CliErrors}from'../errors.js';function a269_0x1311(){const _0x416194=['11UPQFUc','apiDomain','5zoErNi','object','Unsupported\x20domain\x20config\x20field(s):\x20','kbServiceDomain','mode','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','origin','length','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','string','kbDomain','str','cwd','domain-config','utf8','legacy','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','Invalid\x20domain\x20config\x20JSON:\x20','replace','1228892eGzhhQ','\x20and\x20has\x20no\x20default.','2643716ejUYHj','join',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','Allowed\x20fields:\x20','\x20without\x20credentials,\x20query,\x20or\x20fragment.','includes','api-domain','lovrabet','appDomain','search','runtimeDomain','href','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','validation','platformDomain','parse','Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','trim','Invalid\x20','pathname',':\x20expected\x20an\x20HTTPS\x20','https:','skillHubDomain','runtime-domain','domains','12483030SbDmyG','localDomain','default','app-domain','user-domain','filter','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','2FbYUmH','agentDomain','kind','keys','6748980VmIdMv','hash','Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.','base\x20URL','Invalid\x20cdn.','isArray','protocol','cdn','password','rabetbase-cli','4261137QwOxek','798615LasXnS','386435rlRJHd','username',':\x20\x22','certificateDomain','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','\x22\x20and\x20kind\x20\x22','64oGXdos'];a269_0x1311=function(){return _0x416194;};return a269_0x1311();}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=['userDomain',a269_0x4a09e6(0x124),'runtimeDomain','skillDomain','kbDomain',a269_0x4a09e6(0x128),a269_0x4a09e6(0xf3),a269_0x4a09e6(0x106),a269_0x4a09e6(0x11f)];const DOMAIN_FLAGS={'userDomain':a269_0x4a09e6(0x109),'apiDomain':a269_0x4a09e6(0xf1),'runtimeDomain':a269_0x4a09e6(0x103),'skillDomain':'skill-domain','kbDomain':'kb-domain','kbServiceDomain':'kb-service-domain','appDomain':a269_0x4a09e6(0x108),'localDomain':'local-domain','certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x4a09e6(0x10d),a269_0x4a09e6(0xf9),a269_0x4a09e6(0x102)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':'apiDomain','runtimeDomain':a269_0x4a09e6(0xf5),'skillDomain':'skillDomain','kbDomain':a269_0x4a09e6(0x132),'kbServiceDomain':a269_0x4a09e6(0x128),'appDomain':a269_0x4a09e6(0xf3),'localDomain':'localDomain','certificateDomain':a269_0x4a09e6(0x11f)},ROUTING_CONSUMER=a269_0x4a09e6(0x119);export function normalizeDomainOrigin(_0xb8571a,_0x209929){const _0x188fe9=a269_0x4a09e6;if(typeof _0x209929!==_0x188fe9(0x131)||!_0x209929[_0x188fe9(0xfd)]())throw CliErrors[_0x188fe9(0xf8)](_0x188fe9(0xfe)+_0xb8571a+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x277568;try{_0x277568=new URL(_0x209929[_0x188fe9(0xfd)]());}catch{throw CliErrors['validation'](_0x188fe9(0xfe)+_0xb8571a+_0x188fe9(0x11e)+_0x209929+_0x188fe9(0x130));}if(_0x277568[_0x188fe9(0x116)]!==_0x188fe9(0x101)||_0x277568['username']||_0x277568[_0x188fe9(0x118)]||_0x277568[_0x188fe9(0xff)]!=='/'&&_0x277568[_0x188fe9(0xff)]!==''||_0x277568['search']||_0x277568[_0x188fe9(0x111)])throw CliErrors[_0x188fe9(0xf8)](_0x188fe9(0xfe)+_0xb8571a+_0x188fe9(0x140),_0x188fe9(0x10b));return _0x277568[_0x188fe9(0x12d)];}export function normalizeRoutingDomainValue(_0x50f766,_0x268b5e){const _0x2e0539=a269_0x4a09e6;if(typeof _0x268b5e==='string')return normalizeDomainOrigin(_0x50f766,_0x268b5e);if(!_0x268b5e||typeof _0x268b5e!==_0x2e0539(0x126)||Array['isArray'](_0x268b5e))throw CliErrors[_0x2e0539(0xf8)]('Invalid\x20'+_0x50f766+':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.');const _0x2f783c=_0x268b5e,_0x54d42f=_0x2f783c[ROUTING_CONSUMER]??_0x2f783c[_0x2e0539(0x107)];if(_0x54d42f===undefined)throw CliErrors[_0x2e0539(0xf8)]('Enterprise\x20'+_0x50f766+'\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20'+ROUTING_CONSUMER+_0x2e0539(0x13c));return normalizeDomainOrigin(_0x50f766,_0x54d42f);}export function normalizeCdnBaseUrl(_0x5c8998,_0x1fee2b){const _0x47a200=a269_0x4a09e6;if(typeof _0x1fee2b!=='string'||!_0x1fee2b[_0x47a200(0xfd)]())throw CliErrors['validation'](_0x47a200(0x114)+_0x5c8998+_0x47a200(0x13f));const _0x15e038=_0x1fee2b[_0x47a200(0xfd)]()[_0x47a200(0x13a)](/\/$/,'');let _0xb20ba5;try{_0xb20ba5=new URL(_0x15e038);}catch{throw CliErrors['validation']('Invalid\x20cdn.'+_0x5c8998+_0x47a200(0x11e)+_0x1fee2b+_0x47a200(0x130));}if(_0xb20ba5[_0x47a200(0x116)]!==_0x47a200(0x101)||_0xb20ba5[_0x47a200(0x11d)]||_0xb20ba5[_0x47a200(0x118)]||_0xb20ba5[_0x47a200(0xf4)]||_0xb20ba5[_0x47a200(0x111)]||_0xb20ba5[_0x47a200(0xf6)]['replace'](/\/$/,'')!==_0x15e038||_0x5c8998===_0x47a200(0xf2)&&_0xb20ba5[_0x47a200(0x12d)]!==_0x15e038)throw CliErrors[_0x47a200(0xf8)](_0x47a200(0x114)+_0x5c8998+_0x47a200(0x100)+(_0x5c8998===_0x47a200(0xf2)?'origin':_0x47a200(0x113))+_0x47a200(0x142));return _0x15e038;}export function resolveEnterpriseRoutingConfig(_0x450611){const _0xeda4a7=a269_0x4a09e6;return resolveEnterpriseRoutingManifest(_0x450611)?.[_0xeda4a7(0x104)];}export function resolveEnterpriseRoutingManifest(_0x3815dd){const _0x2f6ebd=a269_0x4a09e6;if(_0x3815dd===undefined)return undefined;if(!_0x3815dd||typeof _0x3815dd!=='object'||Array['isArray'](_0x3815dd))throw CliErrors[_0x2f6ebd(0xf8)](_0x2f6ebd(0x112));return parseEnterpriseRoutingManifest(_0x3815dd);}export function readDomainConfigInput(_0x50b969){const _0x3895c9=a269_0x4a09e6,_0x338958=isAbsolute(_0x50b969)?_0x50b969:resolve(process[_0x3895c9(0x134)](),_0x50b969);if(!existsSync(_0x338958))throw CliErrors[_0x3895c9(0xf8)]('Domain\x20config\x20file\x20not\x20found:\x20'+_0x338958);let _0x425a37;try{_0x425a37=JSON[_0x3895c9(0xfa)](readFileSync(_0x338958,_0x3895c9(0x136)));}catch{throw CliErrors[_0x3895c9(0xf8)](_0x3895c9(0x139)+_0x338958);}if(!_0x425a37||typeof _0x425a37!==_0x3895c9(0x126)||Array[_0x3895c9(0x115)](_0x425a37))throw CliErrors['validation'](_0x3895c9(0xfb));const _0xe5a770=_0x425a37;if(_0x3895c9(0x116)in _0xe5a770)return parseEnterpriseRoutingManifest(_0xe5a770);const _0x5905a9=Object[_0x3895c9(0x10f)](_0xe5a770)['filter'](_0x8bc958=>!DOMAIN_CONFIG_FIELDS[_0x3895c9(0xf0)](_0x8bc958));if(_0x5905a9[_0x3895c9(0x12e)]>0x0)throw CliErrors['validation'](_0x3895c9(0x127)+_0x5905a9['join'](',\x20'),_0x3895c9(0x141)+DOMAIN_CONFIG_FIELDS[_0x3895c9(0x13e)](',\x20'));const _0x5cd7fe={};for(const _0x5c0df3 of DOMAIN_CONFIG_FIELDS){_0xe5a770[_0x5c0df3]!==undefined&&(_0x5cd7fe[_0x5c0df3]=normalizeDomainOrigin(_0x5c0df3,_0xe5a770[_0x5c0df3]));}if(Object['keys'](_0x5cd7fe)[_0x3895c9(0x12e)]===0x0)throw CliErrors[_0x3895c9(0xf8)](_0x3895c9(0x12a));return{'mode':_0x3895c9(0x137),'domains':_0x5cd7fe};}export function readDomainConfig(_0x121616){const _0x1e0eb8=a269_0x4a09e6;return readDomainConfigInput(_0x121616)[_0x1e0eb8(0x104)];}export function resolveDomainConfigInput(_0x17fa92){const _0x35471a=a269_0x4a09e6,_0x1515f7=(_0x17fa92[_0x35471a(0x133)](_0x35471a(0x135))||'')[_0x35471a(0xfd)](),_0x12d72d=_0x1515f7?readDomainConfigInput(_0x1515f7):{'mode':_0x35471a(0x137),'domains':{}},_0x564186=DOMAIN_CONFIG_FIELDS[_0x35471a(0x10a)](_0x48df00=>Boolean((_0x17fa92[_0x35471a(0x133)](DOMAIN_FLAGS[_0x48df00])||'')['trim']()));if(_0x12d72d[_0x35471a(0x129)]==='enterprise-v1'&&_0x564186['length']>0x0)throw CliErrors[_0x35471a(0xf8)](_0x35471a(0x138),'Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.');for(const _0xda45e2 of DOMAIN_CONFIG_FIELDS){const _0xc56d7e=(_0x17fa92[_0x35471a(0x133)](DOMAIN_FLAGS[_0xda45e2])||'')[_0x35471a(0xfd)]();if(_0xc56d7e)_0x12d72d[_0x35471a(0x104)][_0xda45e2]=normalizeDomainOrigin(_0xda45e2,_0xc56d7e);}return _0x12d72d;}export function resolveDomainFlags(_0x3e6fd1){const _0x396da5=a269_0x4a09e6;return resolveDomainConfigInput(_0x3e6fd1)[_0x396da5(0x104)];}export function parseEnterpriseRoutingManifest(_0x4842cb){const _0x116623=a269_0x4a09e6;if(_0x4842cb[_0x116623(0x116)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x4842cb[_0x116623(0x10e)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x116623(0xf8)](_0x116623(0xf7)+ENTERPRISE_ROUTING_PROTOCOL+_0x116623(0x121)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x4842cb[_0x116623(0x104)]||typeof _0x4842cb[_0x116623(0x104)]!==_0x116623(0x126)||Array['isArray'](_0x4842cb[_0x116623(0x104)]))throw CliErrors[_0x116623(0xf8)](_0x116623(0xfc));if(!_0x4842cb[_0x116623(0x117)]||typeof _0x4842cb[_0x116623(0x117)]!==_0x116623(0x126)||Array[_0x116623(0x115)](_0x4842cb[_0x116623(0x117)]))throw CliErrors['validation'](_0x116623(0x12b));const _0xff22d8=_0x4842cb[_0x116623(0x104)],_0x40062b=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x116623(0x10a)](_0x2509cb=>_0xff22d8[_0x2509cb]===undefined);if(_0x40062b['length']>0x0)throw CliErrors[_0x116623(0xf8)](_0x116623(0x12c)+_0x40062b['join'](',\x20'));if(_0xff22d8[_0x116623(0x106)]===undefined!==(_0xff22d8[_0x116623(0x11f)]===undefined))throw CliErrors[_0x116623(0xf8)]('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x5c3fc1=_0x4842cb[_0x116623(0x117)],_0x3989bf=Object['keys'](_0x5c3fc1)[_0x116623(0x10a)](_0x2b5db1=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x116623(0xf0)](_0x2b5db1));if(_0x3989bf[_0x116623(0x12e)]>0x0)throw CliErrors[_0x116623(0xf8)](_0x116623(0x12f)+_0x3989bf[_0x116623(0x13e)](',\x20'),_0x116623(0x141)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x116623(0x13e)](',\x20'));const _0x5dbe88=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS['filter'](_0x155d27=>_0x5c3fc1[_0x155d27]===undefined);if(_0x5dbe88[_0x116623(0x12e)]>0x0)throw CliErrors[_0x116623(0xf8)](_0x116623(0x120)+_0x5dbe88['join'](',\x20'));const _0x4639f8={};for(const _0x3a5388 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x4639f8[_0x3a5388]=normalizeCdnBaseUrl(_0x3a5388,_0x5c3fc1[_0x3a5388]);}const _0x7d561c={},_0x32f306={};for(const _0x1c4d21 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x230b72=_0xff22d8[_0x1c4d21];if(_0x230b72===undefined)continue;const _0xf5c391=normalizeRoutingDomainValue(_0x1c4d21,_0x230b72);_0x7d561c[_0x1c4d21]=_0xf5c391;const _0x18bbb6=ENTERPRISE_TO_LOCAL_FIELD[_0x1c4d21];_0x18bbb6&&(_0x32f306[_0x18bbb6]=_0xf5c391);}return{'mode':'enterprise-v1','domains':_0x32f306,'manifestDomains':_0x7d561c,'cdn':_0x4639f8};}
1
+ const a269_0x4413e1=a269_0x62e1;(function(_0x120eb5,_0x388ae1){const _0x498476=a269_0x62e1,_0x47957c=_0x120eb5();while(!![]){try{const _0xe9b16e=parseInt(_0x498476(0x110))/0x1+-parseInt(_0x498476(0x11a))/0x2+-parseInt(_0x498476(0x117))/0x3+-parseInt(_0x498476(0x108))/0x4+parseInt(_0x498476(0xf3))/0x5+-parseInt(_0x498476(0x10e))/0x6*(-parseInt(_0x498476(0xd7))/0x7)+parseInt(_0x498476(0xf6))/0x8;if(_0xe9b16e===_0x388ae1)break;else _0x47957c['push'](_0x47957c['shift']());}catch(_0x41a714){_0x47957c['push'](_0x47957c['shift']());}}}(a269_0x49b2,0xba17f));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=[a269_0x4413e1(0xed),a269_0x4413e1(0xf4),'runtimeDomain',a269_0x4413e1(0xde),'kbDomain',a269_0x4413e1(0xfc),'appDomain',a269_0x4413e1(0x100),a269_0x4413e1(0x10b)];const DOMAIN_FLAGS={'userDomain':a269_0x4413e1(0xdd),'apiDomain':a269_0x4413e1(0xdf),'runtimeDomain':a269_0x4413e1(0x11e),'skillDomain':a269_0x4413e1(0x119),'kbDomain':a269_0x4413e1(0xfd),'kbServiceDomain':'kb-service-domain','appDomain':a269_0x4413e1(0xf0),'localDomain':'local-domain','certificateDomain':'certificate-domain'};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x4413e1(0x11c),'platformDomain',a269_0x4413e1(0x11b)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a269_0x4413e1(0xf4),'runtimeDomain':a269_0x4413e1(0xd6),'skillDomain':'skillDomain','kbDomain':a269_0x4413e1(0xfb),'kbServiceDomain':a269_0x4413e1(0xfc),'appDomain':a269_0x4413e1(0x102),'localDomain':a269_0x4413e1(0x100),'certificateDomain':a269_0x4413e1(0x10b)},ROUTING_CONSUMER=a269_0x4413e1(0x114);export function normalizeDomainOrigin(_0x1cb76f,_0x2d8395){const _0x4bae8e=a269_0x4413e1;if(typeof _0x2d8395!==_0x4bae8e(0xd9)||!_0x2d8395[_0x4bae8e(0xe7)]())throw CliErrors[_0x4bae8e(0x10a)](_0x4bae8e(0x106)+_0x1cb76f+_0x4bae8e(0xe3));let _0x36b350;try{_0x36b350=new URL(_0x2d8395[_0x4bae8e(0xe7)]());}catch{throw CliErrors['validation'](_0x4bae8e(0x106)+_0x1cb76f+_0x4bae8e(0x113)+_0x2d8395+_0x4bae8e(0xd5));}if(_0x36b350['protocol']!==_0x4bae8e(0xe6)||_0x36b350[_0x4bae8e(0x101)]||_0x36b350[_0x4bae8e(0x115)]||_0x36b350[_0x4bae8e(0xd2)]!=='/'&&_0x36b350[_0x4bae8e(0xd2)]!==''||_0x36b350[_0x4bae8e(0x103)]||_0x36b350[_0x4bae8e(0x111)])throw CliErrors[_0x4bae8e(0x10a)]('Invalid\x20'+_0x1cb76f+_0x4bae8e(0xdc),'For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.');return _0x36b350[_0x4bae8e(0x10c)];}export function normalizeRoutingDomainValue(_0x52ff27,_0x5ace22){const _0x23e21f=a269_0x4413e1;if(typeof _0x5ace22===_0x23e21f(0xd9))return normalizeDomainOrigin(_0x52ff27,_0x5ace22);if(!_0x5ace22||typeof _0x5ace22!==_0x23e21f(0x116)||Array[_0x23e21f(0x105)](_0x5ace22))throw CliErrors[_0x23e21f(0x10a)](_0x23e21f(0x106)+_0x52ff27+_0x23e21f(0xe9));const _0x14a4e9=_0x5ace22,_0x398943=_0x14a4e9[ROUTING_CONSUMER]??_0x14a4e9[_0x23e21f(0xeb)];if(_0x398943===undefined)throw CliErrors[_0x23e21f(0x10a)](_0x23e21f(0xe8)+_0x52ff27+_0x23e21f(0x107)+ROUTING_CONSUMER+_0x23e21f(0xec));return normalizeDomainOrigin(_0x52ff27,_0x398943);}export function normalizeCdnBaseUrl(_0x3a8c9a,_0x37667a){const _0x495faf=a269_0x4413e1;if(typeof _0x37667a!==_0x495faf(0xd9)||!_0x37667a[_0x495faf(0xe7)]())throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x47904c=_0x37667a[_0x495faf(0xe7)]()[_0x495faf(0xe0)](/\/$/,'');let _0x216f0b;try{_0x216f0b=new URL(_0x47904c);}catch{throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+_0x495faf(0x113)+_0x37667a+_0x495faf(0xd5));}if(_0x216f0b[_0x495faf(0xf8)]!==_0x495faf(0xe6)||_0x216f0b[_0x495faf(0x101)]||_0x216f0b[_0x495faf(0x115)]||_0x216f0b[_0x495faf(0x103)]||_0x216f0b[_0x495faf(0x111)]||_0x216f0b[_0x495faf(0xda)]['replace'](/\/$/,'')!==_0x47904c||_0x3a8c9a===_0x495faf(0xd3)&&_0x216f0b[_0x495faf(0x10c)]!==_0x47904c)throw CliErrors[_0x495faf(0x10a)](_0x495faf(0xd0)+_0x3a8c9a+_0x495faf(0x112)+(_0x3a8c9a===_0x495faf(0xd3)?_0x495faf(0x10c):_0x495faf(0xef))+'\x20without\x20credentials,\x20query,\x20or\x20fragment.');return _0x47904c;}export function resolveEnterpriseRoutingConfig(_0x32945b){const _0x57d219=a269_0x4413e1;return resolveEnterpriseRoutingManifest(_0x32945b)?.[_0x57d219(0xcf)];}export function resolveEnterpriseRoutingManifest(_0x11ec4d){const _0x11fd44=a269_0x4413e1;if(_0x11ec4d===undefined)return undefined;if(!_0x11ec4d||typeof _0x11ec4d!==_0x11fd44(0x116)||Array[_0x11fd44(0x105)](_0x11ec4d))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x11ec4d);}export function readDomainConfigInput(_0x3fe7aa){const _0x5bb916=a269_0x4413e1,_0x363968=isAbsolute(_0x3fe7aa)?_0x3fe7aa:resolve(process[_0x5bb916(0xf1)](),_0x3fe7aa);if(!existsSync(_0x363968))throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xe1)+_0x363968);let _0x3e72cf;try{_0x3e72cf=JSON[_0x5bb916(0xe2)](readFileSync(_0x363968,'utf8'));}catch{throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xd1)+_0x363968);}if(!_0x3e72cf||typeof _0x3e72cf!==_0x5bb916(0x116)||Array['isArray'](_0x3e72cf))throw CliErrors[_0x5bb916(0x10a)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x43ee25=_0x3e72cf;if(_0x5bb916(0xf8)in _0x43ee25)return parseEnterpriseRoutingManifest(_0x43ee25);const _0x57608e=Object[_0x5bb916(0xdb)](_0x43ee25)[_0x5bb916(0xf7)](_0xb743f7=>!DOMAIN_CONFIG_FIELDS['includes'](_0xb743f7));if(_0x57608e['length']>0x0)throw CliErrors[_0x5bb916(0x10a)](_0x5bb916(0xd4)+_0x57608e[_0x5bb916(0xe4)](',\x20'),_0x5bb916(0xd8)+DOMAIN_CONFIG_FIELDS[_0x5bb916(0xe4)](',\x20'));const _0x2fa5c0={};for(const _0x1eac9d of DOMAIN_CONFIG_FIELDS){_0x43ee25[_0x1eac9d]!==undefined&&(_0x2fa5c0[_0x1eac9d]=normalizeDomainOrigin(_0x1eac9d,_0x43ee25[_0x1eac9d]));}if(Object[_0x5bb916(0xdb)](_0x2fa5c0)[_0x5bb916(0xfe)]===0x0)throw CliErrors[_0x5bb916(0x10a)]('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':_0x5bb916(0xf9),'domains':_0x2fa5c0};}export function readDomainConfig(_0x58c0a7){const _0x4fcb2e=a269_0x4413e1;return readDomainConfigInput(_0x58c0a7)[_0x4fcb2e(0xcf)];}export function resolveDomainConfigInput(_0x49392c){const _0x2c558b=a269_0x4413e1,_0x26f905=(_0x49392c['str'](_0x2c558b(0xee))||'')[_0x2c558b(0xe7)](),_0x27cd9a=_0x26f905?readDomainConfigInput(_0x26f905):{'mode':_0x2c558b(0xf9),'domains':{}},_0xbc71cf=DOMAIN_CONFIG_FIELDS[_0x2c558b(0xf7)](_0x3a2a18=>Boolean((_0x49392c[_0x2c558b(0x104)](DOMAIN_FLAGS[_0x3a2a18])||'')[_0x2c558b(0xe7)]()));if(_0x27cd9a['mode']===_0x2c558b(0xf5)&&_0xbc71cf[_0x2c558b(0xfe)]>0x0)throw CliErrors[_0x2c558b(0x10a)](_0x2c558b(0x118),_0x2c558b(0x10f));for(const _0xf27d88 of DOMAIN_CONFIG_FIELDS){const _0x4c2b6b=(_0x49392c[_0x2c558b(0x104)](DOMAIN_FLAGS[_0xf27d88])||'')[_0x2c558b(0xe7)]();if(_0x4c2b6b)_0x27cd9a['domains'][_0xf27d88]=normalizeDomainOrigin(_0xf27d88,_0x4c2b6b);}return _0x27cd9a;}export function resolveDomainFlags(_0x1d545c){const _0x5ebcf0=a269_0x4413e1;return resolveDomainConfigInput(_0x1d545c)[_0x5ebcf0(0xcf)];}function a269_0x62e1(_0x2747e8,_0x215101){_0x2747e8=_0x2747e8-0xce;const _0x49b27f=a269_0x49b2();let _0x62e1dc=_0x49b27f[_0x2747e8];return _0x62e1dc;}export function parseEnterpriseRoutingManifest(_0x193f63){const _0x6107cd=a269_0x4413e1;if(_0x193f63[_0x6107cd(0xf8)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x193f63[_0x6107cd(0x10d)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xfa)+ENTERPRISE_ROUTING_PROTOCOL+_0x6107cd(0xce)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x193f63[_0x6107cd(0xcf)]||typeof _0x193f63[_0x6107cd(0xcf)]!==_0x6107cd(0x116)||Array[_0x6107cd(0x105)](_0x193f63[_0x6107cd(0xcf)]))throw CliErrors['validation'](_0x6107cd(0xff));if(!_0x193f63['cdn']||typeof _0x193f63[_0x6107cd(0x11d)]!==_0x6107cd(0x116)||Array[_0x6107cd(0x105)](_0x193f63[_0x6107cd(0x11d)]))throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xe5));const _0x1f23d8=_0x193f63['domains'],_0xaa9c56=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x6107cd(0xf7)](_0x4d5c0e=>_0x1f23d8[_0x4d5c0e]===undefined);if(_0xaa9c56[_0x6107cd(0xfe)]>0x0)throw CliErrors[_0x6107cd(0x10a)]('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0xaa9c56[_0x6107cd(0xe4)](',\x20'));if(_0x1f23d8[_0x6107cd(0x100)]===undefined!==(_0x1f23d8[_0x6107cd(0x10b)]===undefined))throw CliErrors[_0x6107cd(0x10a)](_0x6107cd(0xf2));const _0x10f297=_0x193f63['cdn'],_0x406475=Object[_0x6107cd(0xdb)](_0x10f297)[_0x6107cd(0xf7)](_0x20fa0a=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0x109)](_0x20fa0a));if(_0x406475['length']>0x0)throw CliErrors[_0x6107cd(0x10a)]('Unsupported\x20enterprise\x20CDN\x20field(s):\x20'+_0x406475[_0x6107cd(0xe4)](',\x20'),_0x6107cd(0xd8)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0xe4)](',\x20'));const _0xd340da=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x6107cd(0xf7)](_0x4a1d33=>_0x10f297[_0x4a1d33]===undefined);if(_0xd340da[_0x6107cd(0xfe)]>0x0)throw CliErrors['validation'](_0x6107cd(0xea)+_0xd340da[_0x6107cd(0xe4)](',\x20'));const _0x96389f={};for(const _0x16797b of ENTERPRISE_ROUTING_CDN_FIELDS){_0x96389f[_0x16797b]=normalizeCdnBaseUrl(_0x16797b,_0x10f297[_0x16797b]);}const _0x4d2271={},_0x18c362={};for(const _0x399db3 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3c6ffb=_0x1f23d8[_0x399db3];if(_0x3c6ffb===undefined)continue;const _0x101d3d=normalizeRoutingDomainValue(_0x399db3,_0x3c6ffb);_0x4d2271[_0x399db3]=_0x101d3d;const _0x31e4c0=ENTERPRISE_TO_LOCAL_FIELD[_0x399db3];_0x31e4c0&&(_0x18c362[_0x31e4c0]=_0x101d3d);}return{'mode':'enterprise-v1','domains':_0x18c362,'manifestDomains':_0x4d2271,'cdn':_0x96389f};}function a269_0x49b2(){const _0x2295d4=['includes','validation','certificateDomain','origin','kind','6phDEPW','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','203912QZkVrq','hash',':\x20expected\x20an\x20HTTPS\x20',':\x20\x22','rabetbase-cli','password','object','377076mcOyrF','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','skill-domain','1596822roiZVR','skillHubDomain','agentDomain','cdn','runtime-domain','\x22\x20and\x20kind\x20\x22','domains','Invalid\x20cdn.','Invalid\x20domain\x20config\x20JSON:\x20','pathname','lovrabet','Unsupported\x20domain\x20config\x20field(s):\x20','\x22\x20is\x20not\x20a\x20valid\x20URL.','runtimeDomain','4886756FMrriq','Allowed\x20fields:\x20','string','href','keys',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','user-domain','skillDomain','api-domain','replace','Domain\x20config\x20file\x20not\x20found:\x20','parse',':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.','join','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','https:','trim','Enterprise\x20',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','default','\x20and\x20has\x20no\x20default.','userDomain','domain-config','base\x20URL','app-domain','cwd','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','5782220rvBzOP','apiDomain','enterprise-v1','8206056qgiGJj','filter','protocol','legacy','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','kbDomain','kbServiceDomain','kb-domain','length','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','localDomain','username','appDomain','search','str','isArray','Invalid\x20','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','5591516OHUbry'];a269_0x49b2=function(){return _0x2295d4;};return a269_0x49b2();}
@@ -1 +1 @@
1
- const a270_0x35f3ff=a270_0x2178;function a270_0x2178(_0x1c0e86,_0x2f147b){_0x1c0e86=_0x1c0e86-0x119;const _0x793958=a270_0x7939();let _0x217815=_0x793958[_0x1c0e86];return _0x217815;}(function(_0x366d19,_0x5a4dcd){const _0x3141f6=a270_0x2178,_0x37f87c=_0x366d19();while(!![]){try{const _0x59399a=parseInt(_0x3141f6(0x12a))/0x1*(parseInt(_0x3141f6(0x12f))/0x2)+-parseInt(_0x3141f6(0x11d))/0x3*(parseInt(_0x3141f6(0x127))/0x4)+parseInt(_0x3141f6(0x12c))/0x5+parseInt(_0x3141f6(0x131))/0x6*(parseInt(_0x3141f6(0x12b))/0x7)+-parseInt(_0x3141f6(0x126))/0x8*(-parseInt(_0x3141f6(0x130))/0x9)+-parseInt(_0x3141f6(0x12d))/0xa*(parseInt(_0x3141f6(0x128))/0xb)+-parseInt(_0x3141f6(0x11f))/0xc;if(_0x59399a===_0x5a4dcd)break;else _0x37f87c['push'](_0x37f87c['shift']());}catch(_0x4bb80d){_0x37f87c['push'](_0x37f87c['shift']());}}}(a270_0x7939,0x24c42));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=a270_0x35f3ff(0x119);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0x35f3ff(0x11a);export function getProjectDomainRoutingManifest(){const _0x584db0=a270_0x35f3ff,_0x142da2=getActiveRegion(),_0x2862fb=isIndependentDeployment(),_0x413be8=getOfficialRoutingProfile(_0x142da2),_0xc2a6cc=getLocalDomain(),_0x11c5aa=getCertificateDomain(),_0x2f78ab=getActiveCdn();if(!!_0xc2a6cc!==!!_0x11c5aa)throw new Error(_0x584db0(0x11c));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x2862fb?_0x584db0(0x124):_0x584db0(0x120),'region':_0x2862fb?null:_0x142da2,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x2f78ab,'local':_0xc2a6cc&&_0x11c5aa?{'origin':_0xc2a6cc,'certificateUrl':_0x11c5aa+_0x584db0(0x12e)}:_0x2862fb?{'origin':_0x584db0(0x125)}:{'origin':_0x413be8['local'][_0x584db0(0x129)],'certificateUrl':_0x2f78ab[_0x584db0(0x121)]+_0x584db0(0x12e)}};}export function writeProjectDomainRoutingManifest(_0x35d291){const _0x58fc5f=a270_0x35f3ff,_0x4aa4cd=getProjectDomainRoutingManifest(),_0x37c87c=join(_0x35d291,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x3daefa=JSON[_0x58fc5f(0x123)](_0x4aa4cd,null,0x2)+'\x0a';try{if(readFileSync(_0x37c87c,_0x58fc5f(0x122))===_0x3daefa)return{'path':_0x37c87c,'manifest':_0x4aa4cd,'changed':![]};}catch{}const _0x2900fb=_0x37c87c+'.'+process[_0x58fc5f(0x11e)]+'.'+Date[_0x58fc5f(0x11b)]()+_0x58fc5f(0x132);try{writeFileSync(_0x2900fb,_0x3daefa,{'encoding':_0x58fc5f(0x122),'mode':0x1a4}),renameSync(_0x2900fb,_0x37c87c);}catch(_0x24831d){try{unlinkSync(_0x2900fb);}catch{}throw _0x24831d;}return{'path':_0x37c87c,'manifest':_0x4aa4cd,'changed':!![]};}function a270_0x7939(){const _0x544aef=['664928nceKfi','3756FoYmtn','56507pBlZQk','origin','1MHdjdM','9191FUmtgE','1310450KNTsNR','40AqcGwc','/cert/lovrabet-dev.json','521722ehwnir','9gTKAhL','654TEECie','.tmp','rabetbase.domain-routing.json','lovrabet-project-domain-routing/v1','now','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','540XYSjvB','pid','4908264IGUFoa','official','lovrabet','utf8','stringify','independent','http://localhost'];a270_0x7939=function(){return _0x544aef;};return a270_0x7939();}
1
+ const a270_0x26d9dc=a270_0x2406;(function(_0xebb1f4,_0x5807c5){const _0x4ad283=a270_0x2406,_0x202dd2=_0xebb1f4();while(!![]){try{const _0x2804e2=-parseInt(_0x4ad283(0xff))/0x1*(parseInt(_0x4ad283(0x108))/0x2)+-parseInt(_0x4ad283(0x105))/0x3+-parseInt(_0x4ad283(0xfb))/0x4*(-parseInt(_0x4ad283(0x104))/0x5)+parseInt(_0x4ad283(0x100))/0x6*(parseInt(_0x4ad283(0xf8))/0x7)+parseInt(_0x4ad283(0x109))/0x8+parseInt(_0x4ad283(0x101))/0x9+-parseInt(_0x4ad283(0xfd))/0xa;if(_0x2804e2===_0x5807c5)break;else _0x202dd2['push'](_0x202dd2['shift']());}catch(_0x465c45){_0x202dd2['push'](_0x202dd2['shift']());}}}(a270_0x9e2d,0x2b6c9));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=a270_0x26d9dc(0x103);function a270_0x2406(_0x2835dd,_0x5145e6){_0x2835dd=_0x2835dd-0xf7;const _0x9e2da4=a270_0x9e2d();let _0x240672=_0x9e2da4[_0x2835dd];return _0x240672;}function a270_0x9e2d(){const _0x1d3bcb=['/cert/lovrabet-dev.json','now','147124gDitTz','lovrabet-project-domain-routing/v1','5042010GPaBim','.tmp','1Ekjgcb','438IfGxsE','1194093QxhUas','official','rabetbase.domain-routing.json','35qYknPo','272001fLLeie','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','local','97574xblTwa','2642168YqwAra','lovrabet','pid','origin','utf8','9695kQafXN'];a270_0x9e2d=function(){return _0x1d3bcb;};return a270_0x9e2d();}export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0x26d9dc(0xfc);export function getProjectDomainRoutingManifest(){const _0x2843d3=a270_0x26d9dc,_0x452b73=getActiveRegion(),_0x38188b=isIndependentDeployment(),_0x39d2f7=getOfficialRoutingProfile(_0x452b73),_0x1e201d=getLocalDomain(),_0x4d623f=getCertificateDomain(),_0x100913=getActiveCdn();if(!!_0x1e201d!==!!_0x4d623f)throw new Error(_0x2843d3(0x106));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x38188b?'independent':_0x2843d3(0x102),'region':_0x38188b?null:_0x452b73,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x100913,'local':_0x1e201d&&_0x4d623f?{'origin':_0x1e201d,'certificateUrl':_0x4d623f+'/cert/lovrabet-dev.json'}:_0x38188b?{'origin':'http://localhost'}:{'origin':_0x39d2f7[_0x2843d3(0x107)][_0x2843d3(0x10c)],'certificateUrl':_0x100913[_0x2843d3(0x10a)]+_0x2843d3(0xf9)}};}export function writeProjectDomainRoutingManifest(_0x2ab5bb){const _0x168b28=a270_0x26d9dc,_0x2e5f04=getProjectDomainRoutingManifest(),_0x8799f8=join(_0x2ab5bb,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x9c5c85=JSON['stringify'](_0x2e5f04,null,0x2)+'\x0a';try{if(readFileSync(_0x8799f8,_0x168b28(0xf7))===_0x9c5c85)return{'path':_0x8799f8,'manifest':_0x2e5f04,'changed':![]};}catch{}const _0x255169=_0x8799f8+'.'+process[_0x168b28(0x10b)]+'.'+Date[_0x168b28(0xfa)]()+_0x168b28(0xfe);try{writeFileSync(_0x255169,_0x9c5c85,{'encoding':_0x168b28(0xf7),'mode':0x1a4}),renameSync(_0x255169,_0x8799f8);}catch(_0x17e833){try{unlinkSync(_0x255169);}catch{}throw _0x17e833;}return{'path':_0x8799f8,'manifest':_0x2e5f04,'changed':!![]};}