@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10

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 (376) 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.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +4 -4
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a255_0x25aca2=a255_0x4a77;(function(_0x2b0b47,_0x48bcf1){const _0x3db9f3=a255_0x4a77,_0x590598=_0x2b0b47();while(!![]){try{const _0x46d25f=-parseInt(_0x3db9f3(0x1b2))/0x1+-parseInt(_0x3db9f3(0x192))/0x2+-parseInt(_0x3db9f3(0x1bb))/0x3*(-parseInt(_0x3db9f3(0x1b1))/0x4)+-parseInt(_0x3db9f3(0x193))/0x5+-parseInt(_0x3db9f3(0x19e))/0x6*(parseInt(_0x3db9f3(0x1ba))/0x7)+-parseInt(_0x3db9f3(0x1a1))/0x8*(-parseInt(_0x3db9f3(0x1b5))/0x9)+-parseInt(_0x3db9f3(0x1c1))/0xa*(-parseInt(_0x3db9f3(0x198))/0xb);if(_0x46d25f===_0x48bcf1)break;else _0x590598['push'](_0x590598['shift']());}catch(_0x548112){_0x590598['push'](_0x590598['shift']());}}}(a255_0x59c1,0x9bd1b));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_0x25aca2(0x1a4);function a255_0x59c1(){const _0x9b0c3f=['endsWith','dbId','close','question','syncedAt','slice','sqlCode','exec','92hCpIQb','1117608qtiWGw','trimStart','description','72QEGDCj','split','\x20-->','<!--\x20@lovrabet.','trim','1295007TWaovO','89277sJgWgs','mybatisXml','stdin','entries','includes','mode','10890HGJwer','map','1188736tBLyKT','1382460IbRPZM','body','filter','path','fromEntries','19723Labtrx','\x20[y/N]\x20','lastSync','--\x20@lovrabet.','join','dbName','18EhmFpr','length','declaration','544672CylKDj','sqlContent','apps','.rabetbase/sql','sqls','toLowerCase','stderr','sqlName'];a255_0x59c1=function(){return _0x9b0c3f;};return a255_0x59c1();}export function buildSqlLockEntry(_0x54280e,_0xb913c8,_0x17987b,_0x283872){const _0xa52f2c=a255_0x25aca2,_0x336bea=detectSqlMode(_0xb913c8);return{'path':buildSqlRelativePath(_0x54280e[_0xa52f2c(0x1af)],_0x54280e[_0xa52f2c(0x1a8)],_0x283872?.['dbName'],_0x336bea,_0x54280e[_0xa52f2c(0x1aa)]),'hash':_0x17987b,'remoteId':_0x54280e['id'],'version':_0x54280e['version'],'dbId':Number(_0x54280e[_0xa52f2c(0x1aa)]),'dbName':_0x283872?.[_0xa52f2c(0x19d)],'sqlName':_0x54280e['sqlName'],'sqlConfig':_0x54280e['sqlConfig']??undefined,'mode':_0x336bea};}export function cloneSqlLockData(_0x1e93c0){const _0x326fa0=a255_0x25aca2;return{'apps':Object[_0x326fa0(0x197)](Object[_0x326fa0(0x1be)](_0x1e93c0['apps'])['map'](([_0xdc9eb3,_0x2ccd49])=>[_0xdc9eb3,{'sqlRoot':_0x2ccd49['sqlRoot'],'lastSync':_0x2ccd49[_0x326fa0(0x19a)],'sqls':{..._0x2ccd49[_0x326fa0(0x1a5)]}}]))};}export function ensureRemoteSqlContent(_0x428415){const _0x395041=a255_0x25aca2;return _0x428415[_0x395041(0x1a2)]??'';}export function buildLocalSqlFileContent(_0x27b12e,_0xa7d470,_0x1559df){const _0x5670b5=a255_0x25aca2,_0x4b7862=_0x1559df?.[_0x5670b5(0x1c0)]??detectSqlMode(_0xa7d470),_0x4390a3=stripLocalSqlMetadata(_0xa7d470,_0x4b7862)[_0x5670b5(0x1b9)](),_0x3175ea=buildMetadataHeaderLines({'sqlCode':_0x27b12e[_0x5670b5(0x1af)],'sqlName':_0x27b12e[_0x5670b5(0x1a8)],'dbId':_0x27b12e[_0x5670b5(0x1aa)],'dbName':_0x1559df?.['dbName'],'mode':_0x4b7862,'syncedAt':_0x1559df?.[_0x5670b5(0x1ad)],'description':_0x1559df?.[_0x5670b5(0x1b4)]},_0x4b7862),_0x5d0837=_0x4b7862==='mybatisXml'?splitXmlDeclaration(_0x4390a3):{'body':_0x4390a3},_0x2729c8=[..._0x5d0837['declaration']?[_0x5d0837[_0x5670b5(0x1a0)]]:[],..._0x3175ea,'',_0x5d0837[_0x5670b5(0x194)][_0x5670b5(0x1b3)]()],_0x1e2924=_0x2729c8[_0x5670b5(0x19c)]('\x0a');return _0x1e2924[_0x5670b5(0x1a9)]('\x0a')?_0x1e2924:_0x1e2924+'\x0a';}export function stripLocalSqlMetadata(_0xe381e8,_0x92e5fd){if(_0x92e5fd==='mybatisXml'){const {declaration:_0x1f9bd3,body:_0x3b267d}=splitXmlDeclaration(_0xe381e8['replace'](/\r\n/g,'\x0a')),_0x3af8cc=stripLeadingMetadataLines(_0x3b267d,/^\s*<!--\s*@lovrabet\./);return _0x1f9bd3?''+_0x1f9bd3+(_0x3af8cc?'\x0a'+_0x3af8cc:''):_0x3af8cc;}return stripLeadingMetadataLines(_0xe381e8['replace'](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x3be495,_0x438c66){const _0x3a5072=a255_0x25aca2;if(_0x438c66?.[_0x3a5072(0x1c0)])return _0x438c66[_0x3a5072(0x1c0)];return detectSqlMode(_0x3be495);}export function resolveSqlFileName(_0x568839,_0x3feec2,_0x1199f5){const _0x314c7f=a255_0x25aca2;if(_0x1199f5?.[_0x314c7f(0x196)])return _0x1199f5[_0x314c7f(0x196)];if(_0x1199f5?.[_0x314c7f(0x1a8)]||_0x1199f5?.[_0x314c7f(0x19d)])return buildSqlRelativePath(_0x568839,_0x1199f5?.[_0x314c7f(0x1a8)],_0x1199f5?.['dbName'],resolveSqlMode(_0x3feec2,_0x1199f5),_0x1199f5?.['dbId']);return buildDefaultSqlFileName(_0x568839,resolveSqlMode(_0x3feec2,_0x1199f5));}export function resolveSqlLocalDir(_0x1185c3,_0x26bf65){return join(_0x1185c3,SQL_LOCAL_REL_DIR,_0x26bf65);}export async function confirmForceOverwrite(_0xa7f06c){const _0x5e1a54=a255_0x25aca2,_0x4e6790=createInterface({'input':process[_0x5e1a54(0x1bd)],'output':process[_0x5e1a54(0x1a7)]}),_0x620f01=await new Promise(_0x46de9d=>{const _0x20bcc0=_0x5e1a54;_0x4e6790[_0x20bcc0(0x1ac)](_0xa7f06c+_0x20bcc0(0x199),_0x46de9d);});return _0x4e6790[_0x5e1a54(0x1ab)](),['y','yes'][_0x5e1a54(0x1bf)](_0x620f01[_0x5e1a54(0x1b9)]()[_0x5e1a54(0x1a6)]());}export function findSqlLockScope(_0x544ef4,_0x1b1a33){const _0x4936e4=a255_0x25aca2;return _0x544ef4[_0x4936e4(0x1a3)][_0x1b1a33];}function a255_0x4a77(_0x5aa6ce,_0x50ce5c){_0x5aa6ce=_0x5aa6ce-0x191;const _0x59c181=a255_0x59c1();let _0x4a7704=_0x59c181[_0x5aa6ce];return _0x4a7704;}function buildMetadataHeaderLines(_0x22ad7a,_0xe916ca){const _0x32d73e=a255_0x25aca2,_0x355a08=[['sqlCode',_0x22ad7a[_0x32d73e(0x1af)]],[_0x32d73e(0x1a8),_0x22ad7a[_0x32d73e(0x1a8)]],[_0x32d73e(0x1aa),_0x22ad7a[_0x32d73e(0x1aa)]],[_0x32d73e(0x19d),_0x22ad7a[_0x32d73e(0x19d)]],[_0x32d73e(0x1c0),_0x22ad7a[_0x32d73e(0x1c0)]],[_0x32d73e(0x1ad),_0x22ad7a[_0x32d73e(0x1ad)]],[_0x32d73e(0x1b4),_0x22ad7a[_0x32d73e(0x1b4)]]];if(_0xe916ca===_0x32d73e(0x1bc))return _0x355a08[_0x32d73e(0x195)](([,_0x268765])=>_0x268765!==undefined&&_0x268765!==null&&String(_0x268765)['trim']()!=='')['map'](([_0x333e0a,_0x57346d])=>_0x32d73e(0x1b8)+_0x333e0a+':\x20'+String(_0x57346d)+_0x32d73e(0x1b7));return _0x355a08[_0x32d73e(0x195)](([,_0x6acebf])=>_0x6acebf!==undefined&&_0x6acebf!==null&&String(_0x6acebf)[_0x32d73e(0x1b9)]()!=='')[_0x32d73e(0x191)](([_0x32fbd3,_0x31bdae])=>_0x32d73e(0x19b)+_0x32fbd3+':\x20'+String(_0x31bdae));}function splitXmlDeclaration(_0x5e42d9){const _0x32e3a=a255_0x25aca2,_0x164104=_0x5e42d9[_0x32e3a(0x1b3)](),_0x283a06=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i[_0x32e3a(0x1b0)](_0x164104);if(!_0x283a06)return{'body':_0x5e42d9};return{'declaration':_0x283a06[0x0],'body':_0x164104[_0x32e3a(0x1ae)](_0x283a06[0x0][_0x32e3a(0x19f)])};}function stripLeadingMetadataLines(_0x35e89f,_0x4ee40c){const _0x2605f1=a255_0x25aca2,_0x101f7a=_0x35e89f[_0x2605f1(0x1b6)]('\x0a');let _0x31b238=0x0;while(_0x31b238<_0x101f7a['length']){const _0xc4da46=_0x101f7a[_0x31b238]??'';if(_0x4ee40c['test'](_0xc4da46)||_0xc4da46[_0x2605f1(0x1b9)]()===''){_0x31b238++;continue;}break;}return _0x101f7a['slice'](_0x31b238)[_0x2605f1(0x19c)]('\x0a')[_0x2605f1(0x1b3)]();}
1
+ const a255_0x3ca1b5=a255_0x30bf;(function(_0x267338,_0x25e02b){const _0x27c763=a255_0x30bf,_0x2832b6=_0x267338();while(!![]){try{const _0x51f3f3=-parseInt(_0x27c763(0x141))/0x1*(-parseInt(_0x27c763(0x145))/0x2)+parseInt(_0x27c763(0x15a))/0x3+-parseInt(_0x27c763(0x149))/0x4*(-parseInt(_0x27c763(0x13b))/0x5)+parseInt(_0x27c763(0x148))/0x6*(-parseInt(_0x27c763(0x13c))/0x7)+parseInt(_0x27c763(0x161))/0x8*(-parseInt(_0x27c763(0x13e))/0x9)+-parseInt(_0x27c763(0x15d))/0xa*(parseInt(_0x27c763(0x14b))/0xb)+parseInt(_0x27c763(0x13d))/0xc*(-parseInt(_0x27c763(0x13a))/0xd);if(_0x51f3f3===_0x25e02b)break;else _0x2832b6['push'](_0x2832b6['shift']());}catch(_0x280054){_0x2832b6['push'](_0x2832b6['shift']());}}}(a255_0x3c90,0xec525));import{createInterface}from'node:readline';function a255_0x30bf(_0x3b23c9,_0x19f5f9){_0x3b23c9=_0x3b23c9-0x137;const _0x3c901b=a255_0x3c90();let _0x30bf1c=_0x3c901b[_0x3b23c9];return _0x30bf1c;}import{join}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath,detectSqlMode}from'../../core/sql-sync/utils.js';export const SQL_LOCAL_REL_DIR=a255_0x3ca1b5(0x143);export function buildSqlLockEntry(_0x302324,_0x8b495f,_0x2d3f6f,_0x2add75){const _0x4f4ab1=a255_0x3ca1b5,_0x4cdcd6=detectSqlMode(_0x8b495f);return{'path':buildSqlRelativePath(_0x302324[_0x4f4ab1(0x157)],_0x302324['sqlName'],_0x2add75?.['dbName'],_0x4cdcd6,_0x302324[_0x4f4ab1(0x137)]),'hash':_0x2d3f6f,'remoteId':_0x302324['id'],'version':_0x302324[_0x4f4ab1(0x147)],'dbId':Number(_0x302324[_0x4f4ab1(0x137)]),'dbName':_0x2add75?.['dbName'],'sqlName':_0x302324[_0x4f4ab1(0x146)],'sqlConfig':_0x302324[_0x4f4ab1(0x15e)]??undefined,'mode':_0x4cdcd6};}export function cloneSqlLockData(_0x846540){const _0x263ba6=a255_0x3ca1b5;return{'apps':Object[_0x263ba6(0x14f)](Object['entries'](_0x846540[_0x263ba6(0x14c)])[_0x263ba6(0x15b)](([_0x1fa608,_0x5d2850])=>[_0x1fa608,{'sqlRoot':_0x5d2850[_0x263ba6(0x14e)],'lastSync':_0x5d2850[_0x263ba6(0x164)],'sqls':{..._0x5d2850[_0x263ba6(0x155)]}}]))};}export function ensureRemoteSqlContent(_0x567583){return _0x567583['sqlContent']??'';}export function buildLocalSqlFileContent(_0x3c241f,_0x1d4101,_0x13428d){const _0x35da02=a255_0x3ca1b5,_0x2d080a=_0x13428d?.['mode']??detectSqlMode(_0x1d4101),_0x27ade0=stripLocalSqlMetadata(_0x1d4101,_0x2d080a)[_0x35da02(0x15f)](),_0x26ab3b=buildMetadataHeaderLines({'sqlCode':_0x3c241f[_0x35da02(0x157)],'sqlName':_0x3c241f[_0x35da02(0x146)],'dbId':_0x3c241f['dbId'],'dbName':_0x13428d?.[_0x35da02(0x144)],'mode':_0x2d080a,'syncedAt':_0x13428d?.['syncedAt'],'description':_0x13428d?.[_0x35da02(0x167)]},_0x2d080a),_0x8f8e2a=_0x2d080a===_0x35da02(0x139)?splitXmlDeclaration(_0x27ade0):{'body':_0x27ade0},_0x3cb259=[..._0x8f8e2a[_0x35da02(0x13f)]?[_0x8f8e2a[_0x35da02(0x13f)]]:[],..._0x26ab3b,'',_0x8f8e2a[_0x35da02(0x156)][_0x35da02(0x152)]()],_0x4457f0=_0x3cb259[_0x35da02(0x159)]('\x0a');return _0x4457f0['endsWith']('\x0a')?_0x4457f0:_0x4457f0+'\x0a';}export function stripLocalSqlMetadata(_0xfef293,_0x5316f2){const _0x2717d6=a255_0x3ca1b5;if(_0x5316f2===_0x2717d6(0x139)){const {declaration:_0x1c0ea5,body:_0x1929d6}=splitXmlDeclaration(_0xfef293[_0x2717d6(0x162)](/\r\n/g,'\x0a')),_0x4a4ac0=stripLeadingMetadataLines(_0x1929d6,/^\s*<!--\s*@lovrabet\./);return _0x1c0ea5?''+_0x1c0ea5+(_0x4a4ac0?'\x0a'+_0x4a4ac0:''):_0x4a4ac0;}return stripLeadingMetadataLines(_0xfef293['replace'](/\r\n/g,'\x0a'),/^\s*--\s*@lovrabet\./);}export function resolveSqlMode(_0x149c7c,_0xfb0500){const _0x3ee8ce=a255_0x3ca1b5;if(_0xfb0500?.[_0x3ee8ce(0x138)])return _0xfb0500[_0x3ee8ce(0x138)];return detectSqlMode(_0x149c7c);}export function resolveSqlFileName(_0x1f1b1e,_0xcfe5e4,_0x430470){const _0x42864c=a255_0x3ca1b5;if(_0x430470?.[_0x42864c(0x14d)])return _0x430470[_0x42864c(0x14d)];if(_0x430470?.[_0x42864c(0x146)]||_0x430470?.[_0x42864c(0x144)])return buildSqlRelativePath(_0x1f1b1e,_0x430470?.[_0x42864c(0x146)],_0x430470?.['dbName'],resolveSqlMode(_0xcfe5e4,_0x430470),_0x430470?.[_0x42864c(0x137)]);return buildDefaultSqlFileName(_0x1f1b1e,resolveSqlMode(_0xcfe5e4,_0x430470));}export function resolveSqlLocalDir(_0x211d43,_0x47f196){return join(_0x211d43,SQL_LOCAL_REL_DIR,_0x47f196);}function a255_0x3c90(){const _0x583f8f=['dbName','13006SoWQJJ','sqlName','version','6VmiiVv','5012YWePhs','slice','5709baDUBT','apps','path','sqlRoot','fromEntries','\x20-->','<!--\x20@lovrabet.','trimStart','length','test','sqls','body','sqlCode','stderr','join','5725452cJItVh','map','--\x20@lovrabet.','4820SXwXRS','sqlConfig','trim','question','119864depnTT','replace','includes','lastSync','syncedAt','\x20[y/N]\x20','description','dbId','mode','mybatisXml','7111HmpPfu','2685XWRJFW','3348002pFblDP','17052NBGBDf','342zVomtg','declaration','filter','71zJtKfp','stdin','.rabetbase/sql'];a255_0x3c90=function(){return _0x583f8f;};return a255_0x3c90();}export async function confirmForceOverwrite(_0x506c76){const _0x10fb85=a255_0x3ca1b5,_0x1aa817=createInterface({'input':process[_0x10fb85(0x142)],'output':process[_0x10fb85(0x158)]}),_0x519042=await new Promise(_0x24677f=>{const _0x3a6c43=_0x10fb85;_0x1aa817[_0x3a6c43(0x160)](_0x506c76+_0x3a6c43(0x166),_0x24677f);});return _0x1aa817['close'](),['y','yes'][_0x10fb85(0x163)](_0x519042[_0x10fb85(0x15f)]()['toLowerCase']());}export function findSqlLockScope(_0x5da5f7,_0x452af6){const _0x1370b1=a255_0x3ca1b5;return _0x5da5f7[_0x1370b1(0x14c)][_0x452af6];}function buildMetadataHeaderLines(_0x2f4bbb,_0x2eeca9){const _0xee19df=a255_0x3ca1b5,_0x60186=[[_0xee19df(0x157),_0x2f4bbb[_0xee19df(0x157)]],[_0xee19df(0x146),_0x2f4bbb['sqlName']],[_0xee19df(0x137),_0x2f4bbb[_0xee19df(0x137)]],[_0xee19df(0x144),_0x2f4bbb[_0xee19df(0x144)]],[_0xee19df(0x138),_0x2f4bbb[_0xee19df(0x138)]],['syncedAt',_0x2f4bbb[_0xee19df(0x165)]],[_0xee19df(0x167),_0x2f4bbb[_0xee19df(0x167)]]];if(_0x2eeca9===_0xee19df(0x139))return _0x60186[_0xee19df(0x140)](([,_0x5969f4])=>_0x5969f4!==undefined&&_0x5969f4!==null&&String(_0x5969f4)[_0xee19df(0x15f)]()!=='')[_0xee19df(0x15b)](([_0x13a790,_0x1a3e79])=>_0xee19df(0x151)+_0x13a790+':\x20'+String(_0x1a3e79)+_0xee19df(0x150));return _0x60186['filter'](([,_0x210ba4])=>_0x210ba4!==undefined&&_0x210ba4!==null&&String(_0x210ba4)['trim']()!=='')[_0xee19df(0x15b)](([_0x411c3c,_0x5a5983])=>_0xee19df(0x15c)+_0x411c3c+':\x20'+String(_0x5a5983));}function splitXmlDeclaration(_0x38cfa9){const _0x1cd1cd=a255_0x3ca1b5,_0xa27907=_0x38cfa9['trimStart'](),_0x2f49b4=/^<\?xml(?=\s|\?>)[\s\S]*?\?>/i['exec'](_0xa27907);if(!_0x2f49b4)return{'body':_0x38cfa9};return{'declaration':_0x2f49b4[0x0],'body':_0xa27907[_0x1cd1cd(0x14a)](_0x2f49b4[0x0][_0x1cd1cd(0x153)])};}function stripLeadingMetadataLines(_0x35d12e,_0xbc5ac5){const _0x82e46e=a255_0x3ca1b5,_0x3b099b=_0x35d12e['split']('\x0a');let _0x489e4b=0x0;while(_0x489e4b<_0x3b099b[_0x82e46e(0x153)]){const _0x3a62ff=_0x3b099b[_0x489e4b]??'';if(_0xbc5ac5[_0x82e46e(0x154)](_0x3a62ff)||_0x3a62ff[_0x82e46e(0x15f)]()===''){_0x489e4b++;continue;}break;}return _0x3b099b[_0x82e46e(0x14a)](_0x489e4b)[_0x82e46e(0x159)]('\x0a')[_0x82e46e(0x152)]();}
@@ -1 +1 @@
1
- const a256_0x36a5dc=a256_0xecb3;function a256_0xecb3(_0x5afff8,_0x396ee1){_0x5afff8=_0x5afff8-0x15d;const _0x3f3b07=a256_0x3f3b();let _0xecb395=_0x3f3b07[_0x5afff8];return _0xecb395;}function a256_0x3f3b(){const _0x2abf19=['sqlCode','\x20remote-only','sqls','\x20modified,\x20','path','lockFilePath','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','sqlRoot','\x20added,\x20','\x20missing,\x20','484461wnlxeT','has','5230uEylcv','hash','paging','8bHWTMz','remote','1222508QXphDN','sqlName','boolean','status','filePath','push','3313212ejIwBO','20oVdakI','All\x20SQL\x20queries\x20are\x20in\x20sync.','sql','905372tFpqJN','50571ypqhyA','length','relativePath','read','\x20unchanged','appCode','map','totalCount','1529NcidRe','lockKey','tableData','5SNAZGH','187369klGbRn','bool'];a256_0x3f3b=function(){return _0x2abf19;};return a256_0x3f3b();}(function(_0x84452d,_0x1c9559){const _0x3594c3=a256_0xecb3,_0x4c16b4=_0x84452d();while(!![]){try{const _0x3f8093=-parseInt(_0x3594c3(0x16a))/0x1+-parseInt(_0x3594c3(0x184))/0x2*(-parseInt(_0x3594c3(0x15e))/0x3)+-parseInt(_0x3594c3(0x15d))/0x4+-parseInt(_0x3594c3(0x169))/0x5*(-parseInt(_0x3594c3(0x183))/0x6)+parseInt(_0x3594c3(0x17d))/0x7+-parseInt(_0x3594c3(0x17b))/0x8*(parseInt(_0x3594c3(0x176))/0x9)+parseInt(_0x3594c3(0x178))/0xa*(-parseInt(_0x3594c3(0x166))/0xb);if(_0x3f8093===_0x1c9559)break;else _0x4c16b4['push'](_0x4c16b4['shift']());}catch(_0xf16c03){_0x4c16b4['push'](_0x4c16b4['shift']());}}}(a256_0x3f3b,0x56b6a));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(_0x35e47c){const _0x2d0b86=a256_0xecb3,_0x37627f=[];let _0x203838=0x1;while(!![]){const _0x1c0000=await listSqlQueries(_0x35e47c,{'currentPage':_0x203838,'pageSize':PAGE_SIZE}),_0x1323a2=_0x1c0000[_0x2d0b86(0x168)]??[];_0x37627f[_0x2d0b86(0x182)](..._0x1323a2[_0x2d0b86(0x164)](_0x4a93e9=>_0x4a93e9[_0x2d0b86(0x16c)]));if(_0x1323a2[_0x2d0b86(0x15f)]===0x0)break;const _0x23efe6=_0x1c0000[_0x2d0b86(0x17a)]?.[_0x2d0b86(0x165)];if(_0x23efe6!=null?_0x37627f[_0x2d0b86(0x15f)]>=_0x23efe6:_0x1323a2[_0x2d0b86(0x15f)]<PAGE_SIZE)break;_0x203838++;}return _0x37627f;}export const sqlStatus={'service':a256_0x36a5dc(0x186),'command':a256_0x36a5dc(0x180),'description':'Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','risk':a256_0x36a5dc(0x161),'flags':[{'name':a256_0x36a5dc(0x17c),'type':a256_0x36a5dc(0x17f),'description':a256_0x36a5dc(0x172)}],async 'execute'(_0x4544a1){const _0x1819b2=a256_0x36a5dc,_0x5ea95e=loadSqlProjectConfig(_0x4544a1[_0x1819b2(0x163)]),_0x2cbfaf=await readSqlLockFile(_0x5ea95e[_0x1819b2(0x171)]),{appLock:_0x24cd74}=ensureSqlLockScope(_0x2cbfaf??createEmptySqlLock(),_0x5ea95e[_0x1819b2(0x163)],_0x5ea95e[_0x1819b2(0x173)],_0x1819b2(0x180)),_0x53ec40=await scanLocalSqlQueries(_0x5ea95e),_0x554b0f=[],_0x2f52ba=[],_0x1036a2=[],_0x2e42e5=[],_0x3f9af1=new Set(_0x53ec40['map'](_0x2d06e3=>_0x2d06e3['lockKey']));for(const _0x3e1109 of _0x53ec40){const _0x411d22=await computeSqlFileHash(_0x3e1109[_0x1819b2(0x181)]),_0x12413e=_0x24cd74[_0x1819b2(0x16e)][_0x3e1109[_0x1819b2(0x167)]],_0x24e0ac=!!_0x12413e&&_0x12413e[_0x1819b2(0x170)]!==_0x3e1109[_0x1819b2(0x160)],_0x19e62e=!!_0x12413e&&!!_0x3e1109['sqlName']&&_0x12413e['sqlName']!==_0x3e1109[_0x1819b2(0x17e)];if(!_0x12413e)_0x554b0f[_0x1819b2(0x182)](_0x3e1109[_0x1819b2(0x167)]);else _0x12413e[_0x1819b2(0x179)]!==_0x411d22||_0x24e0ac||_0x19e62e?_0x2f52ba[_0x1819b2(0x182)](_0x3e1109[_0x1819b2(0x167)]):_0x1036a2['push'](_0x3e1109[_0x1819b2(0x167)]);}for(const _0x54b114 of Object['keys'](_0x24cd74[_0x1819b2(0x16e)])){!_0x3f9af1['has'](_0x54b114)&&_0x2e42e5['push'](_0x54b114);}const _0x501a82=[];if(_0x4544a1[_0x1819b2(0x16b)](_0x1819b2(0x17c))){const _0x4ce385=await fetchAllSqlCodes(_0x4544a1[_0x1819b2(0x163)]);for(const _0x24b8c9 of _0x4ce385){!_0x3f9af1[_0x1819b2(0x177)](_0x24b8c9)&&!_0x24cd74[_0x1819b2(0x16e)][_0x24b8c9]&&_0x501a82[_0x1819b2(0x182)](_0x24b8c9);}}const _0x5ce957=_0x554b0f['length']===0x0&&_0x2f52ba[_0x1819b2(0x15f)]===0x0&&_0x2e42e5['length']===0x0&&_0x501a82[_0x1819b2(0x15f)]===0x0;return{'ok':!![],'data':{'added':_0x554b0f,'modified':_0x2f52ba,'missing':_0x2e42e5,'unchanged':_0x1036a2,'remoteOnly':_0x501a82},'message':_0x5ce957?_0x1819b2(0x185):_0x554b0f['length']+_0x1819b2(0x174)+_0x2f52ba[_0x1819b2(0x15f)]+_0x1819b2(0x16f)+_0x2e42e5[_0x1819b2(0x15f)]+_0x1819b2(0x175)+_0x1036a2['length']+_0x1819b2(0x162)+(_0x501a82['length']>0x0?',\x20'+_0x501a82[_0x1819b2(0x15f)]+_0x1819b2(0x16d):'')};}};
1
+ function a256_0x3fa4(_0x1bd559,_0x271951){_0x1bd559=_0x1bd559-0x7d;const _0x338bdf=a256_0x338b();let _0x3fa415=_0x338bdf[_0x1bd559];return _0x3fa415;}function a256_0x338b(){const _0xbeb874=['14QiDVzP','length','\x20unchanged','sqls','Also\x20check\x20for\x20remote-only\x20SQL\x20queries\x20not\x20present\x20locally','421812AoAxkQ','2436sXgEvd','387216WxiQXF','44nMXWZk','575544Aysglf','path','paging','remote','\x20missing,\x20','sql','lockKey','537015TiTtHD','push','hash','2546520kqWYTA','bool','map','appCode','lockFilePath','boolean','Check\x20local\x20SQL\x20sync\x20status\x20against\x20lock\x20file','status','sqlRoot','All\x20SQL\x20queries\x20are\x20in\x20sync.','keys','3099740yCMAfP','88pFhNAw','3820nuiNLh','has','totalCount','2raUoLe','tableData','sqlCode','sqlName'];a256_0x338b=function(){return _0xbeb874;};return a256_0x338b();}const a256_0x5de837=a256_0x3fa4;(function(_0x50f5d0,_0x4b9496){const _0x557544=a256_0x3fa4,_0x1ed5f2=_0x50f5d0();while(!![]){try{const _0x33eea0=-parseInt(_0x557544(0x7d))/0x1+-parseInt(_0x557544(0x9b))/0x2*(parseInt(_0x557544(0x88))/0x3)+-parseInt(_0x557544(0x7e))/0x4*(-parseInt(_0x557544(0x98))/0x5)+-parseInt(_0x557544(0x81))/0x6*(parseInt(_0x557544(0x9f))/0x7)+-parseInt(_0x557544(0x97))/0x8*(parseInt(_0x557544(0x7f))/0x9)+parseInt(_0x557544(0x96))/0xa+-parseInt(_0x557544(0x80))/0xb*(-parseInt(_0x557544(0x8b))/0xc);if(_0x33eea0===_0x4b9496)break;else _0x1ed5f2['push'](_0x1ed5f2['shift']());}catch(_0x42a966){_0x1ed5f2['push'](_0x1ed5f2['shift']());}}}(a256_0x338b,0x57711));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(_0x7c0047){const _0x459824=a256_0x3fa4,_0x1d6fe9=[];let _0x2830fa=0x1;while(!![]){const _0x11776d=await listSqlQueries(_0x7c0047,{'currentPage':_0x2830fa,'pageSize':PAGE_SIZE}),_0x2a31a=_0x11776d[_0x459824(0x9c)]??[];_0x1d6fe9['push'](..._0x2a31a[_0x459824(0x8d)](_0x4ac6d8=>_0x4ac6d8[_0x459824(0x9d)]));if(_0x2a31a['length']===0x0)break;const _0x1c5601=_0x11776d[_0x459824(0x83)]?.[_0x459824(0x9a)];if(_0x1c5601!=null?_0x1d6fe9[_0x459824(0xa0)]>=_0x1c5601:_0x2a31a[_0x459824(0xa0)]<PAGE_SIZE)break;_0x2830fa++;}return _0x1d6fe9;}export const sqlStatus={'service':a256_0x5de837(0x86),'command':a256_0x5de837(0x92),'description':a256_0x5de837(0x91),'risk':'read','flags':[{'name':a256_0x5de837(0x84),'type':a256_0x5de837(0x90),'description':a256_0x5de837(0xa3)}],async 'execute'(_0x1cca35){const _0x3af6b1=a256_0x5de837,_0x1561bf=loadSqlProjectConfig(_0x1cca35[_0x3af6b1(0x8e)]),_0x28923b=await readSqlLockFile(_0x1561bf[_0x3af6b1(0x8f)]),{appLock:_0x273c0e}=ensureSqlLockScope(_0x28923b??createEmptySqlLock(),_0x1561bf['appCode'],_0x1561bf[_0x3af6b1(0x93)],_0x3af6b1(0x92)),_0x566271=await scanLocalSqlQueries(_0x1561bf),_0x735228=[],_0x203b5e=[],_0x33c54f=[],_0x4debb1=[],_0x5bd6bd=new Set(_0x566271[_0x3af6b1(0x8d)](_0x216e5c=>_0x216e5c[_0x3af6b1(0x87)]));for(const _0x5ab18a of _0x566271){const _0x3c58ec=await computeSqlFileHash(_0x5ab18a['filePath']),_0x21ae47=_0x273c0e[_0x3af6b1(0xa2)][_0x5ab18a[_0x3af6b1(0x87)]],_0x172715=!!_0x21ae47&&_0x21ae47[_0x3af6b1(0x82)]!==_0x5ab18a['relativePath'],_0x372ed9=!!_0x21ae47&&!!_0x5ab18a['sqlName']&&_0x21ae47['sqlName']!==_0x5ab18a[_0x3af6b1(0x9e)];if(!_0x21ae47)_0x735228[_0x3af6b1(0x89)](_0x5ab18a['lockKey']);else _0x21ae47[_0x3af6b1(0x8a)]!==_0x3c58ec||_0x172715||_0x372ed9?_0x203b5e['push'](_0x5ab18a[_0x3af6b1(0x87)]):_0x33c54f[_0x3af6b1(0x89)](_0x5ab18a['lockKey']);}for(const _0x1a686c of Object[_0x3af6b1(0x95)](_0x273c0e[_0x3af6b1(0xa2)])){!_0x5bd6bd[_0x3af6b1(0x99)](_0x1a686c)&&_0x4debb1[_0x3af6b1(0x89)](_0x1a686c);}const _0x44624e=[];if(_0x1cca35[_0x3af6b1(0x8c)](_0x3af6b1(0x84))){const _0x488920=await fetchAllSqlCodes(_0x1cca35[_0x3af6b1(0x8e)]);for(const _0x59fc02 of _0x488920){!_0x5bd6bd['has'](_0x59fc02)&&!_0x273c0e[_0x3af6b1(0xa2)][_0x59fc02]&&_0x44624e[_0x3af6b1(0x89)](_0x59fc02);}}const _0xa56c8a=_0x735228[_0x3af6b1(0xa0)]===0x0&&_0x203b5e['length']===0x0&&_0x4debb1[_0x3af6b1(0xa0)]===0x0&&_0x44624e['length']===0x0;return{'ok':!![],'data':{'added':_0x735228,'modified':_0x203b5e,'missing':_0x4debb1,'unchanged':_0x33c54f,'remoteOnly':_0x44624e},'message':_0xa56c8a?_0x3af6b1(0x94):_0x735228[_0x3af6b1(0xa0)]+'\x20added,\x20'+_0x203b5e[_0x3af6b1(0xa0)]+'\x20modified,\x20'+_0x4debb1['length']+_0x3af6b1(0x85)+_0x33c54f[_0x3af6b1(0xa0)]+_0x3af6b1(0xa1)+(_0x44624e[_0x3af6b1(0xa0)]>0x0?',\x20'+_0x44624e[_0x3af6b1(0xa0)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a257_0x5a9c1c=a257_0x130a;(function(_0x4b4759,_0x8784d5){const _0x47abc2=a257_0x130a,_0x5577dc=_0x4b4759();while(!![]){try{const _0x1814ff=-parseInt(_0x47abc2(0xac))/0x1*(-parseInt(_0x47abc2(0x9d))/0x2)+parseInt(_0x47abc2(0xbb))/0x3+-parseInt(_0x47abc2(0xa4))/0x4+-parseInt(_0x47abc2(0x89))/0x5+parseInt(_0x47abc2(0x9f))/0x6+-parseInt(_0x47abc2(0xa3))/0x7*(-parseInt(_0x47abc2(0xa8))/0x8)+-parseInt(_0x47abc2(0xbe))/0x9;if(_0x1814ff===_0x8784d5)break;else _0x5577dc['push'](_0x5577dc['shift']());}catch(_0x571f21){_0x5577dc['push'](_0x5577dc['shift']());}}}(a257_0x3436,0x7438a));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a257_0x3436(){const _0x39282d=['8646327eXqeWM','name','SQL\x20schema\x20validation','isArray','\x22\x20not\x20found\x20or\x20not\x20accessible','sql','cwd','appCode','length','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','validate','valid','fields','1000955PpeNbl','isLockingRead','dbtableConfig','reason','parameters','dataset','push','from','Provide\x20--file\x20or\x20--sql','columns','filter','tableName','indexes','message','check-indexes','sqlType','get','read','Table\x20\x22','pkField','96218qPNjJQ','bool','5352918Sjvjlv','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','type','utf-8','336HvYSWs','3118844NaXLll','\x22\x20not\x20found\x20in\x20any\x20dataset','file','map','142768iZLIyc','split','find','primary','7YWNoRw','unshift','validation','schemas','string','index_columns','schemaWarnings','isDangerous','tables','toLowerCase','trim','File\x20not\x20found:\x20','isSelectOnly','boolean','columnNames','993369zvTNBF','joinAudit','str'];a257_0x3436=function(){return _0x39282d;};return a257_0x3436();}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_0x5a9c1c(0x81),'command':a257_0x5a9c1c(0x86),'description':a257_0x5a9c1c(0xa0),'risk':a257_0x5a9c1c(0x9a),'flags':[{'name':'file','type':a257_0x5a9c1c(0xb0),'description':'Path\x20to\x20the\x20SQL\x20file\x20to\x20validate'},{'name':a257_0x5a9c1c(0x81),'type':a257_0x5a9c1c(0xb0),'description':a257_0x5a9c1c(0x85)},{'name':a257_0x5a9c1c(0xaf),'type':'string','description':'Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against'},{'name':a257_0x5a9c1c(0x97),'type':a257_0x5a9c1c(0xb9),'description':'Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata'}],async 'execute'(_0x4cfc18){const _0x24d80a=a257_0x5a9c1c,_0x4dda90=_0x4cfc18[_0x24d80a(0xbd)](_0x24d80a(0xa6)),_0xbcfd60=_0x4cfc18[_0x24d80a(0xbd)]('sql'),_0xb1b665=_0x4cfc18['str']('schemas'),_0x2c168f=_0x4cfc18[_0x24d80a(0x9e)]('check-indexes');if(!_0x4dda90&&!_0xbcfd60)throw CliErrors['flagMissing'](_0x24d80a(0xa6),_0x24d80a(0x91));if(_0x2c168f&&!_0xb1b665)throw CliErrors[_0x24d80a(0xae)]('--check-indexes\x20requires\x20--schemas.');let _0x27d1e3;if(_0x4dda90){const _0x342714=resolve(process[_0x24d80a(0x82)](),_0x4dda90);if(!existsSync(_0x342714))throw CliErrors[_0x24d80a(0xae)](_0x24d80a(0xb7)+_0x342714);_0x27d1e3=readFileSync(_0x342714,_0x24d80a(0xa2));}else _0x27d1e3=_0xbcfd60;const _0xd55729=validateSql(_0x27d1e3),_0x5b35a3={'valid':_0xd55729['valid'],'sqlType':_0xd55729['sqlType'][_0x24d80a(0xa1)],'isSelectOnly':_0xd55729[_0x24d80a(0x98)][_0x24d80a(0xb8)],'isLockingRead':_0xd55729[_0x24d80a(0x98)][_0x24d80a(0x8a)]??![],'isDangerous':_0xd55729[_0x24d80a(0x98)][_0x24d80a(0xb3)],'tables':_0xd55729[_0x24d80a(0xb4)],'parameters':_0xd55729[_0x24d80a(0x8d)],'message':_0xd55729[_0x24d80a(0x96)]};_0xd55729[_0x24d80a(0x98)]['reason']&&(_0x5b35a3[_0x24d80a(0x8c)]=_0xd55729[_0x24d80a(0x98)][_0x24d80a(0x8c)]);if(_0xb1b665&&_0xd55729['valid']){const _0x484055=_0xb1b665[_0x24d80a(0xa9)](',')[_0x24d80a(0xa7)](_0x4bbdd2=>_0x4bbdd2['trim']())[_0x24d80a(0x93)](Boolean),_0x2f2cb5=[],_0x451149=[],_0x582462=filterDbTableBackedDatasets(await listDatasets(_0x4cfc18[_0x24d80a(0x83)])),_0x1cbfe5=new Map(_0x582462[_0x24d80a(0xa7)](_0x18e91a=>[_0x18e91a[_0x24d80a(0x8b)]?.['tableName']?.[_0x24d80a(0xb5)](),_0x18e91a]));for(const _0x8aef6 of _0xd55729['tables']){const _0x778543=_0x1cbfe5[_0x24d80a(0x99)](_0x8aef6[_0x24d80a(0xb5)]());!_0x778543&&_0x2f2cb5[_0x24d80a(0x8f)](_0x24d80a(0x9b)+_0x8aef6+_0x24d80a(0xa5));}for(const _0x237d5a of _0x484055){let _0x54f2e5;try{_0x54f2e5=await getDatasetDetail(_0x237d5a);}catch{_0x2f2cb5[_0x24d80a(0x8f)]('Dataset\x20\x22'+_0x237d5a+_0x24d80a(0x80));continue;}assertDatasetIsDbTableBacked(_0x54f2e5,_0x24d80a(0xc0));const _0x498648=Array[_0x24d80a(0x7f)](_0x54f2e5['fields'])?_0x54f2e5[_0x24d80a(0x88)]:[],_0x2c0d3d=new Set(_0x498648[_0x24d80a(0xa7)](_0x6d5a1a=>_0x6d5a1a[_0x24d80a(0xbf)]?.[_0x24d80a(0xb5)]())),_0x1b0284=_0x54f2e5[_0x24d80a(0x8b)]?.['tableName']||_0x54f2e5[_0x24d80a(0x94)]||_0x237d5a;_0x5b35a3['schema:'+_0x1b0284]={'code':_0x237d5a,'tableName':_0x1b0284,'fieldCount':_0x2c0d3d['size'],'fields':Array[_0x24d80a(0x90)](_0x2c0d3d)};if(_0x2c168f){const _0x4b4e1a=normalizeDatasetIndexes(_0x54f2e5);_0x451149['push']({'tableName':_0x1b0284,..._0x4b4e1a});}}_0x2f2cb5[_0x24d80a(0x84)]>0x0&&(_0x5b35a3[_0x24d80a(0xb2)]=_0x2f2cb5),_0x2c168f&&(_0x5b35a3[_0x24d80a(0xbc)]=auditSqlJoinIndexes(_0x27d1e3,_0x451149));}return{'ok':_0xd55729[_0x24d80a(0x87)],'data':_0x5b35a3,'message':_0xd55729[_0x24d80a(0x96)]};}};function a257_0x130a(_0x2ba076,_0xbd393d){_0x2ba076=_0x2ba076-0x7f;const _0x3436cf=a257_0x3436();let _0x130a83=_0x3436cf[_0x2ba076];return _0x130a83;}function normalizeDatasetIndexes(_0x372d55){const _0x189eed=a257_0x5a9c1c,_0x37c6c3=Array[_0x189eed(0x7f)](_0x372d55?.['dataset']?.[_0x189eed(0x95)])?_0x372d55[_0x189eed(0x8e)][_0x189eed(0x95)]:Array[_0x189eed(0x7f)](_0x372d55?.[_0x189eed(0x95)])?_0x372d55['indexes']:[],_0x18fbd4=_0x37c6c3['flatMap'](_0x1aa87e=>{const _0x4addeb=_0x189eed,_0x7c23f6=Array['isArray'](_0x1aa87e?.['index_columns'])?_0x1aa87e[_0x4addeb(0xb1)]:Array[_0x4addeb(0x7f)](_0x1aa87e?.['columnNames'])?_0x1aa87e[_0x4addeb(0xba)]:Array[_0x4addeb(0x7f)](_0x1aa87e?.[_0x4addeb(0x92)])?_0x1aa87e['columns']:[],_0x10cba0=_0x7c23f6[_0x4addeb(0x93)](_0x5b1b23=>typeof _0x5b1b23===_0x4addeb(0xb0))['map'](_0x15180e=>_0x15180e['trim']())[_0x4addeb(0x93)](Boolean);if(_0x10cba0['length']===0x0)return[];const _0x420e55=[_0x1aa87e?.['indexName'],_0x1aa87e?.['index_name'],_0x1aa87e?.['name']][_0x4addeb(0xaa)](_0x36d432=>typeof _0x36d432===_0x4addeb(0xb0)&&_0x36d432[_0x4addeb(0xb6)]()),_0xe0b690=[_0x1aa87e?.['index_type'],_0x1aa87e?.[_0x4addeb(0xa1)]]['find'](_0x5b334f=>typeof _0x5b334f===_0x4addeb(0xb0)&&_0x5b334f['trim']());return[{..._0x420e55?{'name':_0x420e55[_0x4addeb(0xb6)]()}:{},..._0xe0b690?{'type':_0xe0b690['trim']()}:{},'columns':_0x10cba0}];}),_0x27694d=[..._0x18fbd4],_0x26e042=typeof _0x372d55?.[_0x189eed(0x8b)]?.[_0x189eed(0x9c)]===_0x189eed(0xb0)?_0x372d55[_0x189eed(0x8b)]['pkField']['split'](',')['map'](_0x4cae73=>_0x4cae73[_0x189eed(0xb6)]())[_0x189eed(0x93)](Boolean):[];return _0x26e042[_0x189eed(0x84)]>0x0&&_0x27694d[_0x189eed(0xad)]({'type':_0x189eed(0xab),'columns':_0x26e042}),{'indexes':_0x27694d,'metadataAvailable':_0x18fbd4['length']>0x0};}
1
+ const a257_0x3a5675=a257_0x42a0;(function(_0x11a2aa,_0x318a46){const _0x5ade3d=a257_0x42a0,_0x1cc17b=_0x11a2aa();while(!![]){try{const _0x4e5ed3=-parseInt(_0x5ade3d(0x224))/0x1*(parseInt(_0x5ade3d(0x1f5))/0x2)+parseInt(_0x5ade3d(0x207))/0x3+-parseInt(_0x5ade3d(0x20c))/0x4+parseInt(_0x5ade3d(0x22d))/0x5+-parseInt(_0x5ade3d(0x221))/0x6+parseInt(_0x5ade3d(0x20f))/0x7+parseInt(_0x5ade3d(0x236))/0x8*(parseInt(_0x5ade3d(0x22a))/0x9);if(_0x4e5ed3===_0x318a46)break;else _0x1cc17b['push'](_0x1cc17b['shift']());}catch(_0x3e3b7d){_0x1cc17b['push'](_0x1cc17b['shift']());}}}(a257_0x32e5,0xaa327));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';import{validateSql}from'../../core/sql-validator.js';function a257_0x42a0(_0x2196d3,_0x7319d3){_0x2196d3=_0x2196d3-0x1f3;const _0x32e552=a257_0x32e5();let _0x42a00e=_0x32e552[_0x2196d3];return _0x42a00e;}import{auditSqlJoinIndexes}from'../../core/sql-index-auditor.js';import{getDatasetDetail,listDatasets}from'../../core/api-client.js';function a257_0x32e5(){const _0x49d43f=['4100110wSfMXs','str','valid','check-indexes','trim','validation','find','push','isArray','dbtableConfig','type','Table\x20\x22','tableName','index_type','size','columns','flagMissing','index_columns','2419110dfCPxX','flatMap','from','1frtoUY','Path\x20to\x20the\x20SQL\x20file\x20to\x20validate','index_name','joinAudit','columnNames','reason','288pAdafO','sql','string','3204560kwQNGi','schema:','\x22\x20not\x20found\x20in\x20any\x20dataset','appCode','dataset','tables','\x22\x20not\x20found\x20or\x20not\x20accessible','isLockingRead','length','351384XVnOYf','indexes','filter','871322liYdpq','file','Validate\x20SQL\x20content\x20without\x20saving\x20(type\x20detection,\x20parameter\x20extraction,\x20optional\x20schema\x20check)','utf-8','schemas','fields','read','name','message','cwd','schemaWarnings','Dataset\x20\x22','validate','Inline\x20SQL\x20content\x20to\x20validate\x20(alternative\x20to\x20--file)','Provide\x20--file\x20or\x20--sql','sqlType','bool','--check-indexes\x20requires\x20--schemas.','381816bFeVXL','split','Audit\x20top-level\x20JOIN\x20equality\x20predicates\x20against\x20dataset\x20index\x20metadata','Comma-separated\x20dataset\x20codes\x20to\x20cross-check\x20table/column\x20names\x20against','toLowerCase','4893908wAhkBp','map','primary'];a257_0x32e5=function(){return _0x49d43f;};return a257_0x32e5();}import{CliErrors}from'../../errors.js';import{assertDatasetIsDbTableBacked,filterDbTableBackedDatasets}from'../../commands/dataset/capability.js';export const sqlValidate={'service':a257_0x3a5675(0x22b),'command':a257_0x3a5675(0x201),'description':a257_0x3a5675(0x1f7),'risk':a257_0x3a5675(0x1fb),'flags':[{'name':a257_0x3a5675(0x1f6),'type':a257_0x3a5675(0x22c),'description':a257_0x3a5675(0x225)},{'name':a257_0x3a5675(0x22b),'type':a257_0x3a5675(0x22c),'description':a257_0x3a5675(0x202)},{'name':a257_0x3a5675(0x1f9),'type':a257_0x3a5675(0x22c),'description':a257_0x3a5675(0x20a)},{'name':a257_0x3a5675(0x212),'type':'boolean','description':a257_0x3a5675(0x209)}],async 'execute'(_0x5b423b){const _0x139796=a257_0x3a5675,_0x4f9021=_0x5b423b['str']('file'),_0x44ca22=_0x5b423b['str']('sql'),_0x59c0e6=_0x5b423b[_0x139796(0x210)](_0x139796(0x1f9)),_0x44c27f=_0x5b423b[_0x139796(0x205)]('check-indexes');if(!_0x4f9021&&!_0x44ca22)throw CliErrors[_0x139796(0x21f)](_0x139796(0x1f6),_0x139796(0x203));if(_0x44c27f&&!_0x59c0e6)throw CliErrors['validation'](_0x139796(0x206));let _0x1f1743;if(_0x4f9021){const _0x4e16c9=resolve(process[_0x139796(0x1fe)](),_0x4f9021);if(!existsSync(_0x4e16c9))throw CliErrors[_0x139796(0x214)]('File\x20not\x20found:\x20'+_0x4e16c9);_0x1f1743=readFileSync(_0x4e16c9,_0x139796(0x1f8));}else _0x1f1743=_0x44ca22;const _0x43936b=validateSql(_0x1f1743),_0x166a91={'valid':_0x43936b['valid'],'sqlType':_0x43936b['sqlType'][_0x139796(0x219)],'isSelectOnly':_0x43936b[_0x139796(0x204)]['isSelectOnly'],'isLockingRead':_0x43936b[_0x139796(0x204)][_0x139796(0x234)]??![],'isDangerous':_0x43936b[_0x139796(0x204)]['isDangerous'],'tables':_0x43936b[_0x139796(0x232)],'parameters':_0x43936b['parameters'],'message':_0x43936b[_0x139796(0x1fd)]};_0x43936b[_0x139796(0x204)][_0x139796(0x229)]&&(_0x166a91[_0x139796(0x229)]=_0x43936b[_0x139796(0x204)]['reason']);if(_0x59c0e6&&_0x43936b[_0x139796(0x211)]){const _0x2450a4=_0x59c0e6[_0x139796(0x208)](',')[_0x139796(0x20d)](_0x576e9f=>_0x576e9f[_0x139796(0x213)]())[_0x139796(0x1f4)](Boolean),_0x17f153=[],_0xc11307=[],_0x4af298=filterDbTableBackedDatasets(await listDatasets(_0x5b423b[_0x139796(0x230)])),_0x47dbc6=new Map(_0x4af298['map'](_0x54b3b4=>[_0x54b3b4[_0x139796(0x218)]?.[_0x139796(0x21b)]?.[_0x139796(0x20b)](),_0x54b3b4]));for(const _0x1e71a9 of _0x43936b[_0x139796(0x232)]){const _0x136a0b=_0x47dbc6['get'](_0x1e71a9[_0x139796(0x20b)]());!_0x136a0b&&_0x17f153[_0x139796(0x216)](_0x139796(0x21a)+_0x1e71a9+_0x139796(0x22f));}for(const _0x1dc163 of _0x2450a4){let _0x2cef7b;try{_0x2cef7b=await getDatasetDetail(_0x1dc163);}catch{_0x17f153[_0x139796(0x216)](_0x139796(0x200)+_0x1dc163+_0x139796(0x233));continue;}assertDatasetIsDbTableBacked(_0x2cef7b,'SQL\x20schema\x20validation');const _0x20d0e8=Array[_0x139796(0x217)](_0x2cef7b['fields'])?_0x2cef7b[_0x139796(0x1fa)]:[],_0x1ba3f8=new Set(_0x20d0e8[_0x139796(0x20d)](_0x2ee3a5=>_0x2ee3a5[_0x139796(0x1fc)]?.['toLowerCase']())),_0x2d2b91=_0x2cef7b[_0x139796(0x218)]?.['tableName']||_0x2cef7b[_0x139796(0x21b)]||_0x1dc163;_0x166a91[_0x139796(0x22e)+_0x2d2b91]={'code':_0x1dc163,'tableName':_0x2d2b91,'fieldCount':_0x1ba3f8[_0x139796(0x21d)],'fields':Array[_0x139796(0x223)](_0x1ba3f8)};if(_0x44c27f){const _0x2d8534=normalizeDatasetIndexes(_0x2cef7b);_0xc11307[_0x139796(0x216)]({'tableName':_0x2d2b91,..._0x2d8534});}}_0x17f153[_0x139796(0x235)]>0x0&&(_0x166a91[_0x139796(0x1ff)]=_0x17f153),_0x44c27f&&(_0x166a91[_0x139796(0x227)]=auditSqlJoinIndexes(_0x1f1743,_0xc11307));}return{'ok':_0x43936b['valid'],'data':_0x166a91,'message':_0x43936b[_0x139796(0x1fd)]};}};function normalizeDatasetIndexes(_0x51d945){const _0x1b426d=a257_0x3a5675,_0x2cc47e=Array[_0x1b426d(0x217)](_0x51d945?.[_0x1b426d(0x231)]?.[_0x1b426d(0x1f3)])?_0x51d945['dataset'][_0x1b426d(0x1f3)]:Array[_0x1b426d(0x217)](_0x51d945?.[_0x1b426d(0x1f3)])?_0x51d945[_0x1b426d(0x1f3)]:[],_0x2a221b=_0x2cc47e[_0x1b426d(0x222)](_0x5427c6=>{const _0x53b77c=_0x1b426d,_0x370ab3=Array[_0x53b77c(0x217)](_0x5427c6?.[_0x53b77c(0x220)])?_0x5427c6[_0x53b77c(0x220)]:Array['isArray'](_0x5427c6?.['columnNames'])?_0x5427c6[_0x53b77c(0x228)]:Array[_0x53b77c(0x217)](_0x5427c6?.[_0x53b77c(0x21e)])?_0x5427c6['columns']:[],_0x167ba7=_0x370ab3['filter'](_0x4ef104=>typeof _0x4ef104==='string')[_0x53b77c(0x20d)](_0x516145=>_0x516145['trim']())[_0x53b77c(0x1f4)](Boolean);if(_0x167ba7[_0x53b77c(0x235)]===0x0)return[];const _0x4fc205=[_0x5427c6?.['indexName'],_0x5427c6?.[_0x53b77c(0x226)],_0x5427c6?.[_0x53b77c(0x1fc)]]['find'](_0x2f1b3f=>typeof _0x2f1b3f===_0x53b77c(0x22c)&&_0x2f1b3f['trim']()),_0x1da427=[_0x5427c6?.[_0x53b77c(0x21c)],_0x5427c6?.[_0x53b77c(0x219)]][_0x53b77c(0x215)](_0x4342af=>typeof _0x4342af==='string'&&_0x4342af[_0x53b77c(0x213)]());return[{..._0x4fc205?{'name':_0x4fc205[_0x53b77c(0x213)]()}:{},..._0x1da427?{'type':_0x1da427['trim']()}:{},'columns':_0x167ba7}];}),_0x14ca5a=[..._0x2a221b],_0x5d775a=typeof _0x51d945?.[_0x1b426d(0x218)]?.['pkField']===_0x1b426d(0x22c)?_0x51d945[_0x1b426d(0x218)]['pkField']['split'](',')[_0x1b426d(0x20d)](_0x58e184=>_0x58e184['trim']())[_0x1b426d(0x1f4)](Boolean):[];return _0x5d775a['length']>0x0&&_0x14ca5a['unshift']({'type':_0x1b426d(0x20e),'columns':_0x5d775a}),{'indexes':_0x14ca5a,'metadataAvailable':_0x2a221b[_0x1b426d(0x235)]>0x0};}
@@ -1 +1 @@
1
- function a258_0x27d6(_0x4d5c08,_0x2954fa){_0x4d5c08=_0x4d5c08-0x137;const _0x21b9db=a258_0x21b9();let _0x27d607=_0x21b9db[_0x4d5c08];return _0x27d607;}(function(_0x344711,_0x2f3c63){const _0x3acbdd=a258_0x27d6,_0x19c223=_0x344711();while(!![]){try{const _0x30503c=-parseInt(_0x3acbdd(0x139))/0x1*(parseInt(_0x3acbdd(0x13f))/0x2)+-parseInt(_0x3acbdd(0x13a))/0x3+parseInt(_0x3acbdd(0x138))/0x4+-parseInt(_0x3acbdd(0x137))/0x5*(parseInt(_0x3acbdd(0x13e))/0x6)+parseInt(_0x3acbdd(0x13d))/0x7*(-parseInt(_0x3acbdd(0x141))/0x8)+parseInt(_0x3acbdd(0x13c))/0x9*(-parseInt(_0x3acbdd(0x13b))/0xa)+parseInt(_0x3acbdd(0x140))/0xb;if(_0x30503c===_0x2f3c63)break;else _0x19c223['push'](_0x19c223['shift']());}catch(_0x5452e1){_0x19c223['push'](_0x19c223['shift']());}}}(a258_0x21b9,0x62dfd));function a258_0x21b9(){const _0x25bede=['497020LyRfLq','27HjJtyv','3036411fOTSaa','138Zfmzlw','2HWeBQj','16928769xnMBBm','8ffCLPC','94805vDgzQe','1636832xrWjRj','66701CILiyW','1372545BlbTaz'];a258_0x21b9=function(){return _0x25bede;};return a258_0x21b9();}import{taskStatus}from'../../commands/task/status.js';export const taskDefinitions=[taskStatus];
1
+ (function(_0x5a12c4,_0x558b1e){const _0x3ad4a4=a258_0x4872,_0x7ad232=_0x5a12c4();while(!![]){try{const _0x18832d=parseInt(_0x3ad4a4(0x108))/0x1+parseInt(_0x3ad4a4(0x106))/0x2+parseInt(_0x3ad4a4(0x10c))/0x3*(parseInt(_0x3ad4a4(0x10a))/0x4)+-parseInt(_0x3ad4a4(0x109))/0x5+-parseInt(_0x3ad4a4(0x10e))/0x6+parseInt(_0x3ad4a4(0x10d))/0x7*(parseInt(_0x3ad4a4(0x107))/0x8)+-parseInt(_0x3ad4a4(0x10b))/0x9*(parseInt(_0x3ad4a4(0x10f))/0xa);if(_0x18832d===_0x558b1e)break;else _0x7ad232['push'](_0x7ad232['shift']());}catch(_0x472a6b){_0x7ad232['push'](_0x7ad232['shift']());}}}(a258_0x200e,0x6e88f));function a258_0x4872(_0x11cbd3,_0x4ac076){_0x11cbd3=_0x11cbd3-0x106;const _0x200eb1=a258_0x200e();let _0x4872aa=_0x200eb1[_0x11cbd3];return _0x4872aa;}import{taskStatus}from'../../commands/task/status.js';function a258_0x200e(){const _0x3bf6dc=['755970lCOvwG','1255988gunbkZ','8abHPQc','671269iRWxea','1232255OhntCJ','3044664aSOOyv','81IZZKIL','3ssaQQl','783335BTeGIy','4756554ZNVHzg'];a258_0x200e=function(){return _0x3bf6dc;};return a258_0x200e();}export const taskDefinitions=[taskStatus];
@@ -1 +1 @@
1
- const a259_0x1fb328=a259_0x438a;(function(_0x2da43a,_0x387fa2){const _0x518e49=a259_0x438a,_0x2b1434=_0x2da43a();while(!![]){try{const _0x25a8bf=-parseInt(_0x518e49(0xe5))/0x1*(-parseInt(_0x518e49(0xd8))/0x2)+parseInt(_0x518e49(0xe1))/0x3*(parseInt(_0x518e49(0xde))/0x4)+-parseInt(_0x518e49(0xe7))/0x5+parseInt(_0x518e49(0xdd))/0x6+-parseInt(_0x518e49(0xeb))/0x7+-parseInt(_0x518e49(0xd9))/0x8+parseInt(_0x518e49(0xe2))/0x9;if(_0x25a8bf===_0x387fa2)break;else _0x2b1434['push'](_0x2b1434['shift']());}catch(_0x2c2702){_0x2b1434['push'](_0x2b1434['shift']());}}}(a259_0x3061,0x5c2d5));function a259_0x438a(_0x19d819,_0x1a3db1){_0x19d819=_0x19d819-0xd5;const _0x306117=a259_0x3061();let _0x438ada=_0x306117[_0x19d819];return _0x438ada;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asyncTaskMessage,buildAsyncTaskStatusCommand,normalizeAsyncTask}from'../../commands/common/async-task.js';function a259_0x3061(){const _0x132a51=['isTerminal','read','2499732GZWOvr','26104fJmACc','task','str','57nsNvVH','6999057vfOHUk',',\x20received\x20','compress','1264dxFJgO','trim','2652260dzdVLD','task-id','appCode','cookie','3323698MoRZmy','string','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','status','436kezQBJ','1688144urUTBL','taskId'];a259_0x3061=function(){return _0x132a51;};return a259_0x3061();}import{getAsyncTaskStatus}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const taskStatus={'service':a259_0x1fb328(0xdf),'command':a259_0x1fb328(0xd7),'description':'Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','risk':a259_0x1fb328(0xdc),'defaultOutputFormat':a259_0x1fb328(0xe4),'structuredErrors':!![],'flags':[{'name':a259_0x1fb328(0xe8),'type':a259_0x1fb328(0xd5),'required':!![],'description':a259_0x1fb328(0xd6)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x36ff61){const _0xa7a53d=a259_0x1fb328;if(!_0x36ff61['str'](_0xa7a53d(0xe8))['trim']())throw CliErrors['flagMissing'](_0xa7a53d(0xe8));},async 'execute'(_0x3f7119){const _0x10e0f6=a259_0x1fb328,_0x1bdb45=_0x3f7119[_0x10e0f6(0xe0)](_0x10e0f6(0xe8))[_0x10e0f6(0xe6)](),_0x41fa41=normalizeAsyncTask(await getAsyncTaskStatus(_0x1bdb45,_0x3f7119[_0x10e0f6(0xe9)],_0x3f7119[_0x10e0f6(0xea)]));if(_0x41fa41[_0x10e0f6(0xda)]!==_0x1bdb45)throw CliErrors['apiError']('Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20'+_0x1bdb45+_0x10e0f6(0xe3)+_0x41fa41['taskId']+'.');const _0x308d98=buildAsyncTaskStatusCommand(_0x41fa41['taskId'],_0x3f7119[_0x10e0f6(0xe9)]);return{'ok':!![],'message':asyncTaskMessage(_0x41fa41),'data':{'appCode':_0x3f7119[_0x10e0f6(0xe9)],..._0x41fa41,'query':_0x41fa41[_0x10e0f6(0xdb)]?null:{'command':_0x308d98}}};}};
1
+ const a259_0x38e589=a259_0x4109;(function(_0x42995e,_0xecbdc6){const _0x30bb9b=a259_0x4109,_0x59a75f=_0x42995e();while(!![]){try{const _0x3e84ed=-parseInt(_0x30bb9b(0xb0))/0x1+-parseInt(_0x30bb9b(0xb3))/0x2+parseInt(_0x30bb9b(0xb5))/0x3*(-parseInt(_0x30bb9b(0xac))/0x4)+parseInt(_0x30bb9b(0xaf))/0x5*(parseInt(_0x30bb9b(0xbd))/0x6)+parseInt(_0x30bb9b(0xbc))/0x7+-parseInt(_0x30bb9b(0xb2))/0x8+parseInt(_0x30bb9b(0xae))/0x9;if(_0x3e84ed===_0xecbdc6)break;else _0x59a75f['push'](_0x59a75f['shift']());}catch(_0x342ebf){_0x59a75f['push'](_0x59a75f['shift']());}}}(a259_0x2fdb,0xadd07));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a259_0x4109(_0x475afc,_0xd746f){_0x475afc=_0x475afc-0xac;const _0x2fdb01=a259_0x2fdb();let _0x410900=_0x2fdb01[_0x475afc];return _0x410900;}function a259_0x2fdb(){const _0x118ceb=['string','appCode','6009717VrOBIP','6ysDzzY','Task\x20status\x20response\x20id\x20mismatch:\x20requested\x20','Query\x20an\x20asynchronous\x20task;\x20repeat\x20for\x20PENDING\x20or\x20PROCESSING\x20until\x20SUCCESS\x20or\x20FAILED','4lPmHhx','task','24166368JVdFet','1755765VdiDua','887379KyPuFY','compress','4552304dWxCRg','1186778XCAbWt','taskId','3399261RjzHgX','task-id','status','Task\x20id\x20returned\x20by\x20an\x20asynchronous\x20platform\x20command','str'];a259_0x2fdb=function(){return _0x118ceb;};return a259_0x2fdb();}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_0x38e589(0xad),'command':a259_0x38e589(0xb7),'description':a259_0x38e589(0xbf),'risk':'read','defaultOutputFormat':a259_0x38e589(0xb1),'structuredErrors':!![],'flags':[{'name':'task-id','type':a259_0x38e589(0xba),'required':!![],'description':a259_0x38e589(0xb8)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2bd96b){const _0x31f836=a259_0x38e589;if(!_0x2bd96b[_0x31f836(0xb9)](_0x31f836(0xb6))['trim']())throw CliErrors['flagMissing'](_0x31f836(0xb6));},async 'execute'(_0x3fee32){const _0x9d0c48=a259_0x38e589,_0x56f42f=_0x3fee32[_0x9d0c48(0xb9)](_0x9d0c48(0xb6))['trim'](),_0x524739=normalizeAsyncTask(await getAsyncTaskStatus(_0x56f42f,_0x3fee32[_0x9d0c48(0xbb)],_0x3fee32['cookie']));if(_0x524739['taskId']!==_0x56f42f)throw CliErrors['apiError'](_0x9d0c48(0xbe)+_0x56f42f+',\x20received\x20'+_0x524739['taskId']+'.');const _0x16d211=buildAsyncTaskStatusCommand(_0x524739[_0x9d0c48(0xb4)],_0x3fee32[_0x9d0c48(0xbb)]);return{'ok':!![],'message':asyncTaskMessage(_0x524739),'data':{'appCode':_0x3fee32['appCode'],..._0x524739,'query':_0x524739['isTerminal']?null:{'command':_0x16d211}}};}};
@@ -1 +1 @@
1
- function a260_0x2d0e(_0x15feed,_0x2d0e34){_0x15feed=_0x15feed-0x105;const _0x4cd2b7=a260_0x4cd2();let _0x2d0e2d=_0x4cd2b7[_0x15feed];return _0x2d0e2d;}(function(_0x187ec4,_0x869d7b){const _0x1d2694=a260_0x2d0e,_0x562ec3=_0x187ec4();while(!![]){try{const _0x19fec6=parseInt(_0x1d2694(0x105))/0x1+parseInt(_0x1d2694(0x10b))/0x2+-parseInt(_0x1d2694(0x10a))/0x3+parseInt(_0x1d2694(0x10c))/0x4*(-parseInt(_0x1d2694(0x109))/0x5)+parseInt(_0x1d2694(0x10d))/0x6*(parseInt(_0x1d2694(0x108))/0x7)+parseInt(_0x1d2694(0x107))/0x8+parseInt(_0x1d2694(0x106))/0x9*(-parseInt(_0x1d2694(0x10e))/0xa);if(_0x19fec6===_0x869d7b)break;else _0x562ec3['push'](_0x562ec3['shift']());}catch(_0x3e78f8){_0x562ec3['push'](_0x562ec3['shift']());}}}(a260_0x4cd2,0x1d94c));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a260_0x4cd2(){const _0x15178a=['511248QIWxEv','152854frSFOK','4QWysFX','216pMgNsE','60rGMPSN','2489tIzWuK','128394SwFUqY','850584exrElN','45409AXxYVv','207975efOXcH'];a260_0x4cd2=function(){return _0x15178a;};return a260_0x4cd2();}export const tenantDefinitions=[tenantMembersListDefinition];
1
+ (function(_0x379d65,_0x1ad7c5){const _0x13a300=a260_0x2a61,_0xa5d76e=_0x379d65();while(!![]){try{const _0x66e61d=-parseInt(_0x13a300(0x1a5))/0x1+parseInt(_0x13a300(0x1a2))/0x2*(-parseInt(_0x13a300(0x1a1))/0x3)+-parseInt(_0x13a300(0x19d))/0x4*(parseInt(_0x13a300(0x1a6))/0x5)+-parseInt(_0x13a300(0x19e))/0x6*(-parseInt(_0x13a300(0x1a4))/0x7)+parseInt(_0x13a300(0x19b))/0x8*(-parseInt(_0x13a300(0x19f))/0x9)+-parseInt(_0x13a300(0x19c))/0xa*(-parseInt(_0x13a300(0x1a7))/0xb)+parseInt(_0x13a300(0x1a3))/0xc*(parseInt(_0x13a300(0x1a0))/0xd);if(_0x66e61d===_0x1ad7c5)break;else _0xa5d76e['push'](_0xa5d76e['shift']());}catch(_0x49190c){_0xa5d76e['push'](_0xa5d76e['shift']());}}}(a260_0x4bd3,0xf2a33));import{tenantMembersListDefinition}from'../../commands/tenant/members-list.js';function a260_0x4bd3(){const _0x450602=['1033821QQOInc','49155782VNaMpx','21LXGvln','489466RuLFcX','12JomPJU','133sKTHTe','773384eRLWVE','2957260HoEkDI','11cTBanw','24PktFPX','1463530cHaRXl','8ixvoSb','341148aUXLuV'];a260_0x4bd3=function(){return _0x450602;};return a260_0x4bd3();}function a260_0x2a61(_0x32f899,_0xad0a68){_0x32f899=_0x32f899-0x19b;const _0x4bd372=a260_0x4bd3();let _0x2a6153=_0x4bd372[_0x32f899];return _0x2a6153;}export const tenantDefinitions=[tenantMembersListDefinition];
@@ -1 +1 @@
1
- const a261_0x13e2ae=a261_0x1e6c;(function(_0x5418ea,_0x54572e){const _0x50ad7b=a261_0x1e6c,_0x53509a=_0x5418ea();while(!![]){try{const _0x263fea=parseInt(_0x50ad7b(0x166))/0x1+parseInt(_0x50ad7b(0x154))/0x2+-parseInt(_0x50ad7b(0x155))/0x3*(parseInt(_0x50ad7b(0x15e))/0x4)+parseInt(_0x50ad7b(0x158))/0x5+-parseInt(_0x50ad7b(0x167))/0x6*(-parseInt(_0x50ad7b(0x161))/0x7)+parseInt(_0x50ad7b(0x160))/0x8*(-parseInt(_0x50ad7b(0x162))/0x9)+-parseInt(_0x50ad7b(0x16b))/0xa*(-parseInt(_0x50ad7b(0x15d))/0xb);if(_0x263fea===_0x54572e)break;else _0x53509a['push'](_0x53509a['shift']());}catch(_0x55dd0d){_0x53509a['push'](_0x53509a['shift']());}}}(a261_0x1452,0x4692f));import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';function a261_0x1452(){const _0xfa745=['flagMissing','str','283571KixIZp','1654266wXKXeS','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','tenant-code','string','13210MlvDsz','\x20tenant\x20member(s)','354344limuCu','129pWFXBt','trim','tenant','372715NSmmBm','Exact\x20tenant\x20code','Pass\x20--tenant-code\x20<code>.','length','read','55osmMeP','31856QOygEB','Found\x20','40JNhKNa','14pYNpsu','831222ohymrk','members-list'];a261_0x1452=function(){return _0xfa745;};return a261_0x1452();}import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a261_0x1e6c(_0x114914,_0x170c0d){_0x114914=_0x114914-0x153;const _0x14522c=a261_0x1452();let _0x1e6c05=_0x14522c[_0x114914];return _0x1e6c05;}export const tenantMembersListDefinition={'service':a261_0x13e2ae(0x157),'command':a261_0x13e2ae(0x163),'description':a261_0x13e2ae(0x168),'risk':a261_0x13e2ae(0x15c),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a261_0x13e2ae(0x169),'type':a261_0x13e2ae(0x16a),'required':!![],'description':a261_0x13e2ae(0x159)}],async 'validate'(_0x2f3840){const _0x3c9197=a261_0x13e2ae;if(!_0x2f3840[_0x3c9197(0x165)](_0x3c9197(0x169))[_0x3c9197(0x156)]())throw CliErrors[_0x3c9197(0x164)]('tenant-code',_0x3c9197(0x15a));},async 'execute'(_0x5463a9){const _0xa94a25=a261_0x13e2ae,_0x20475e=_0x5463a9[_0xa94a25(0x165)](_0xa94a25(0x169))[_0xa94a25(0x156)](),_0x38cd33=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x20475e,_0x38cd33);const _0x393e06=projectTenantMembers(await listTenantDirectoryMembers(_0x20475e));return{'ok':!![],'data':{'tenantCode':_0x20475e,'items':_0x393e06,'totalCount':_0x393e06[_0xa94a25(0x15b)]},'message':_0xa94a25(0x15f)+_0x393e06['length']+_0xa94a25(0x153)};}};
1
+ const a261_0xe1d183=a261_0x15e6;(function(_0x43040b,_0x127e86){const _0x540680=a261_0x15e6,_0x33c7b9=_0x43040b();while(!![]){try{const _0x242a90=parseInt(_0x540680(0x1b3))/0x1+-parseInt(_0x540680(0x1b4))/0x2+-parseInt(_0x540680(0x1be))/0x3+-parseInt(_0x540680(0x1ac))/0x4*(parseInt(_0x540680(0x1bc))/0x5)+-parseInt(_0x540680(0x1b1))/0x6*(parseInt(_0x540680(0x1bb))/0x7)+parseInt(_0x540680(0x1ae))/0x8+-parseInt(_0x540680(0x1b8))/0x9*(-parseInt(_0x540680(0x1aa))/0xa);if(_0x242a90===_0x127e86)break;else _0x33c7b9['push'](_0x33c7b9['shift']());}catch(_0x180705){_0x33c7b9['push'](_0x33c7b9['shift']());}}}(a261_0x4704,0x78a38));function a261_0x15e6(_0x5e9e46,_0x5d4921){_0x5e9e46=_0x5e9e46-0x1a9;const _0x470420=a261_0x4704();let _0x15e638=_0x470420[_0x5e9e46];return _0x15e638;}import{listCurrentUserTenantMemberships,listTenantDirectoryMembers}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{assertTenantAccessible,projectTenantMembers}from'../../commands/tenant/shared.js';function a261_0x4704(){const _0x2fa2cc=['\x20tenant\x20member(s)','1333672mUPgRd','string','trim','121866FxOTDe','members-list','250280CywyGo','488704kEPTcw','tenant','read','tenant-code','13941fQVzXF','length','Exact\x20tenant\x20code','189opDpJP','15HwHKne','List\x20members\x20of\x20a\x20tenant\x20available\x20to\x20the\x20current\x20account','1806177qmujFM','Pass\x20--tenant-code\x20<code>.','flagMissing','12140jOhWAT','str','544708iNnULr'];a261_0x4704=function(){return _0x2fa2cc;};return a261_0x4704();}export const tenantMembersListDefinition={'service':a261_0xe1d183(0x1b5),'command':a261_0xe1d183(0x1b2),'description':a261_0xe1d183(0x1bd),'risk':a261_0xe1d183(0x1b6),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a261_0xe1d183(0x1b7),'type':a261_0xe1d183(0x1af),'required':!![],'description':a261_0xe1d183(0x1ba)}],async 'validate'(_0x208c78){const _0x39d98f=a261_0xe1d183;if(!_0x208c78[_0x39d98f(0x1ab)]('tenant-code')[_0x39d98f(0x1b0)]())throw CliErrors[_0x39d98f(0x1a9)]('tenant-code',_0x39d98f(0x1bf));},async 'execute'(_0x4462bd){const _0x4730dc=a261_0xe1d183,_0x47141a=_0x4462bd[_0x4730dc(0x1ab)](_0x4730dc(0x1b7))[_0x4730dc(0x1b0)](),_0x42bf55=await listCurrentUserTenantMemberships();assertTenantAccessible(_0x47141a,_0x42bf55);const _0x1a8126=projectTenantMembers(await listTenantDirectoryMembers(_0x47141a));return{'ok':!![],'data':{'tenantCode':_0x47141a,'items':_0x1a8126,'totalCount':_0x1a8126['length']},'message':'Found\x20'+_0x1a8126[_0x4730dc(0x1b9)]+_0x4730dc(0x1ad)};}};
@@ -1 +1 @@
1
- function a262_0x2cef(){const _0xb93fef=['13101oZRWUX','55MUxFuP','values','nickname','trim','role','176232bBmDTO','7cMCMkc','ADMIN','displayName','784456XaZfsu','sort','126270eTGOtX','userId','9dyTcmK','get','adminFlag','24237tXNJQu','1800504QDFVEp','52FwpjxN','username','Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','335285jNXObc','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','tenantCode','status'];a262_0x2cef=function(){return _0xb93fef;};return a262_0x2cef();}function a262_0x546b(_0x8facf7,_0xa268cd){_0x8facf7=_0x8facf7-0xd4;const _0x2cefe4=a262_0x2cef();let _0x546b71=_0x2cefe4[_0x8facf7];return _0x546b71;}(function(_0x4b14bf,_0x3c8f54){const _0x5b7f7c=a262_0x546b,_0x31fee0=_0x4b14bf();while(!![]){try{const _0x45cdc6=-parseInt(_0x5b7f7c(0xed))/0x1+parseInt(_0x5b7f7c(0xe6))/0x2*(parseInt(_0x5b7f7c(0xe4))/0x3)+parseInt(_0x5b7f7c(0xdd))/0x4+parseInt(_0x5b7f7c(0xe9))/0x5+parseInt(_0x5b7f7c(0xd9))/0x6*(-parseInt(_0x5b7f7c(0xda))/0x7)+-parseInt(_0x5b7f7c(0xe5))/0x8*(parseInt(_0x5b7f7c(0xe1))/0x9)+-parseInt(_0x5b7f7c(0xdf))/0xa*(parseInt(_0x5b7f7c(0xd4))/0xb);if(_0x45cdc6===_0x3c8f54)break;else _0x31fee0['push'](_0x31fee0['shift']());}catch(_0x126a76){_0x31fee0['push'](_0x31fee0['shift']());}}}(a262_0x2cef,0x22cda));import{CliErrors}from'../../errors.js';function textOrNull(_0x2945b8){const _0x1c15cb=a262_0x546b,_0x138d08=_0x2945b8?.[_0x1c15cb(0xd7)]();return _0x138d08?_0x138d08:null;}export function projectTenantMembers(_0x2461e2){const _0x371ff1=a262_0x546b,_0x4c476b=new Map();for(const _0x3a6082 of _0x2461e2){const _0x202cf8=Number(_0x3a6082[_0x371ff1(0xe0)]);if(!Number['isFinite'](_0x202cf8)||_0x202cf8<=0x0)continue;const _0x376f04={'userId':_0x202cf8,'username':textOrNull(_0x3a6082['username']),'displayName':textOrNull(_0x3a6082[_0x371ff1(0xd6)]),'role':_0x3a6082[_0x371ff1(0xe3)]===!![]?_0x371ff1(0xdb):'MEMBER','status':textOrNull(_0x3a6082[_0x371ff1(0xec)])},_0x32d11f=_0x4c476b[_0x371ff1(0xe2)](_0x202cf8);if(!_0x32d11f){_0x4c476b['set'](_0x202cf8,_0x376f04);continue;}_0x32d11f[_0x371ff1(0xe7)]??=_0x376f04[_0x371ff1(0xe7)],_0x32d11f['displayName']??=_0x376f04[_0x371ff1(0xdc)],_0x32d11f[_0x371ff1(0xec)]??=_0x376f04['status'];if(_0x376f04[_0x371ff1(0xd8)]===_0x371ff1(0xdb))_0x32d11f['role']=_0x371ff1(0xdb);}return[..._0x4c476b[_0x371ff1(0xd5)]()][_0x371ff1(0xde)]((_0x46fa0b,_0x96b0c1)=>_0x46fa0b[_0x371ff1(0xe0)]-_0x96b0c1[_0x371ff1(0xe0)]);}export function assertTenantAccessible(_0x179d9c,_0x15e6b0){const _0x231d52=a262_0x546b;if(_0x15e6b0['some'](_0xeebf90=>_0xeebf90[_0x231d52(0xeb)]===_0x179d9c))return;throw CliErrors['validation']('Tenant\x20\x22'+_0x179d9c+_0x231d52(0xea),_0x231d52(0xe8));}
1
+ function a262_0xdb86(){const _0x1d15e8=['Check\x20--tenant-code\x20or\x20login\x20with\x20an\x20account\x20that\x20belongs\x20to\x20this\x20tenant.','3QqwuHE','isFinite','trim','8IeVDlN','set','MEMBER','role','46696MIIUwH','15580yMMxme','nickname','userId','5QEONqn','Tenant\x20\x22','some','594688ItnRMf','ADMIN','sort','2627891ntRauP','1067INsIJx','status','tenantCode','291402UmPSpA','\x22\x20is\x20not\x20available\x20to\x20the\x20current\x20account.','username','validation','4440393zyqOUA','531060bKWHps'];a262_0xdb86=function(){return _0x1d15e8;};return a262_0xdb86();}function a262_0x5b64(_0x276995,_0x4ca718){_0x276995=_0x276995-0x6f;const _0xdb861e=a262_0xdb86();let _0x5b64b5=_0xdb861e[_0x276995];return _0x5b64b5;}(function(_0x2ff337,_0x3cc13b){const _0x7acf85=a262_0x5b64,_0x3aa2b1=_0x2ff337();while(!![]){try{const _0x35410f=parseInt(_0x7acf85(0x7e))/0x1+-parseInt(_0x7acf85(0x75))/0x2*(parseInt(_0x7acf85(0x77))/0x3)+-parseInt(_0x7acf85(0x85))/0x4+parseInt(_0x7acf85(0x82))/0x5*(-parseInt(_0x7acf85(0x70))/0x6)+parseInt(_0x7acf85(0x88))/0x7*(parseInt(_0x7acf85(0x7a))/0x8)+parseInt(_0x7acf85(0x74))/0x9+-parseInt(_0x7acf85(0x7f))/0xa*(parseInt(_0x7acf85(0x89))/0xb);if(_0x35410f===_0x3cc13b)break;else _0x3aa2b1['push'](_0x3aa2b1['shift']());}catch(_0xcb82d1){_0x3aa2b1['push'](_0x3aa2b1['shift']());}}}(a262_0xdb86,0x49a17));import{CliErrors}from'../../errors.js';function textOrNull(_0x44a050){const _0x43d14c=a262_0x5b64,_0x155218=_0x44a050?.[_0x43d14c(0x79)]();return _0x155218?_0x155218:null;}export function projectTenantMembers(_0x403f5a){const _0x18f48f=a262_0x5b64,_0xfb8c6e=new Map();for(const _0x1302ce of _0x403f5a){const _0x56460f=Number(_0x1302ce[_0x18f48f(0x81)]);if(!Number[_0x18f48f(0x78)](_0x56460f)||_0x56460f<=0x0)continue;const _0x20a35a={'userId':_0x56460f,'username':textOrNull(_0x1302ce[_0x18f48f(0x72)]),'displayName':textOrNull(_0x1302ce[_0x18f48f(0x80)]),'role':_0x1302ce['adminFlag']===!![]?'ADMIN':_0x18f48f(0x7c),'status':textOrNull(_0x1302ce[_0x18f48f(0x8a)])},_0x4f18ba=_0xfb8c6e['get'](_0x56460f);if(!_0x4f18ba){_0xfb8c6e[_0x18f48f(0x7b)](_0x56460f,_0x20a35a);continue;}_0x4f18ba['username']??=_0x20a35a['username'],_0x4f18ba['displayName']??=_0x20a35a['displayName'],_0x4f18ba[_0x18f48f(0x8a)]??=_0x20a35a['status'];if(_0x20a35a[_0x18f48f(0x7d)]==='ADMIN')_0x4f18ba[_0x18f48f(0x7d)]=_0x18f48f(0x86);}return[..._0xfb8c6e['values']()][_0x18f48f(0x87)]((_0x2e60d5,_0x4df513)=>_0x2e60d5['userId']-_0x4df513[_0x18f48f(0x81)]);}export function assertTenantAccessible(_0x150b55,_0x356f78){const _0x426ffb=a262_0x5b64;if(_0x356f78[_0x426ffb(0x84)](_0xb32841=>_0xb32841[_0x426ffb(0x6f)]===_0x150b55))return;throw CliErrors[_0x426ffb(0x73)](_0x426ffb(0x83)+_0x150b55+_0x426ffb(0x71),_0x426ffb(0x76));}
@@ -1 +1 @@
1
- const a263_0x385065=a263_0x3324;(function(_0x1a7ac3,_0xef057d){const _0x2128d3=a263_0x3324,_0x277970=_0x1a7ac3();while(!![]){try{const _0x34d304=-parseInt(_0x2128d3(0x83))/0x1+-parseInt(_0x2128d3(0x84))/0x2+parseInt(_0x2128d3(0x8a))/0x3*(parseInt(_0x2128d3(0x8c))/0x4)+-parseInt(_0x2128d3(0x87))/0x5*(parseInt(_0x2128d3(0x86))/0x6)+parseInt(_0x2128d3(0x8b))/0x7+-parseInt(_0x2128d3(0x85))/0x8+parseInt(_0x2128d3(0x81))/0x9;if(_0x34d304===_0xef057d)break;else _0x277970['push'](_0x277970['shift']());}catch(_0x571057){_0x277970['push'](_0x277970['shift']());}}}(a263_0x33c0,0x21918));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindDingTalkSandboxAccount,DING_TALK_SANDBOX_BIND_PATH}from'../../core/api-client.js';function a263_0x3324(_0x410f0c,_0xfe8b2e){_0x410f0c=_0x410f0c-0x75;const _0x33c0cc=a263_0x33c0();let _0x332494=_0x33c0cc[_0x410f0c];return _0x332494;}import{CliErrors}from'../../errors.js';const PROVIDER_ID=a263_0x385065(0x89),CURRENT_BINDING_WARNING=a263_0x385065(0x80);function readDingTalkUserId(_0x452dee){const _0x46921c=a263_0x385065,_0x54b8b6=_0x452dee['str'](_0x46921c(0x7f))[_0x46921c(0x7a)]();if(!_0x54b8b6)throw CliErrors[_0x46921c(0x76)]('--ding-talk-user-id\x20cannot\x20be\x20empty.',_0x46921c(0x77));return _0x54b8b6;}function buildBindingData(_0x15d576,_0x48b9f8){const _0x488f75=a263_0x385065;return{'operation':_0x488f75(0x88),'selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x15d576},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x15d576,'bound':!![]},'dryRun':_0x48b9f8,'backend':{'method':_0x488f75(0x78),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a263_0x33c0(){const _0x174ec5=['2466594kPIaTv','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','180196AjOQrc','175470QcQQUV','1368680zUDbSj','6XmzkfV','608990qFrUkm','bind','dingtalk','3blAfdI','1483349oqanlA','849348aBeldC','string','validation','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','POST','Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.','trim','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','dingding-sandbox-bind','user-account','apiError','ding-talk-user-id','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.'];a263_0x33c0=function(){return _0x174ec5;};return a263_0x33c0();}export const dingTalkSandboxBind={'service':a263_0x385065(0x7d),'command':a263_0x385065(0x7c),'description':a263_0x385065(0x7b),'risk':'write','requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a263_0x385065(0x7f),'type':a263_0x385065(0x75),'required':!![],'description':a263_0x385065(0x82)}],async 'validate'(_0x1f972f){readDingTalkUserId(_0x1f972f);},async 'dryRun'(_0x6e925f){const _0x3aefba=readDingTalkUserId(_0x6e925f);return asDryRunResult(buildBindingData(_0x3aefba,!![]),{'method':'POST','url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x118243){const _0xc0cbbc=a263_0x385065,_0x536b7c=readDingTalkUserId(_0x118243),_0x21a587=await bindDingTalkSandboxAccount(_0x536b7c);if(_0x21a587!==!![])throw CliErrors[_0xc0cbbc(0x7e)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0x536b7c,![]),'message':_0xc0cbbc(0x79)};}};
1
+ const a263_0x135eff=a263_0xd2f8;(function(_0x2fdcd5,_0x6cfd68){const _0x40760e=a263_0xd2f8,_0xc28b12=_0x2fdcd5();while(!![]){try{const _0x128f46=-parseInt(_0x40760e(0x157))/0x1*(-parseInt(_0x40760e(0x159))/0x2)+parseInt(_0x40760e(0x15d))/0x3+-parseInt(_0x40760e(0x163))/0x4+parseInt(_0x40760e(0x16b))/0x5+parseInt(_0x40760e(0x15b))/0x6*(parseInt(_0x40760e(0x167))/0x7)+-parseInt(_0x40760e(0x15f))/0x8+-parseInt(_0x40760e(0x156))/0x9;if(_0x128f46===_0x6cfd68)break;else _0xc28b12['push'](_0xc28b12['shift']());}catch(_0x1faba5){_0xc28b12['push'](_0xc28b12['shift']());}}}(a263_0x54bd,0xbaf3e));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_0x135eff(0x160),CURRENT_BINDING_WARNING='The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.';function a263_0xd2f8(_0x39f3f2,_0x40ab46){_0x39f3f2=_0x39f3f2-0x156;const _0x54bd63=a263_0x54bd();let _0xd2f816=_0x54bd63[_0x39f3f2];return _0xd2f816;}function readDingTalkUserId(_0x47a64b){const _0x541abe=a263_0x135eff,_0x34e4a3=_0x47a64b[_0x541abe(0x165)](_0x541abe(0x15e))[_0x541abe(0x162)]();if(!_0x34e4a3)throw CliErrors[_0x541abe(0x15c)](_0x541abe(0x168),_0x541abe(0x16a));return _0x34e4a3;}function buildBindingData(_0x563f27,_0x1050b7){const _0x4b35c3=a263_0x135eff;return{'operation':'bind','selector':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x563f27},'before':null,'after':{'providerId':PROVIDER_ID,'dingTalkUserId':_0x563f27,'bound':!![]},'dryRun':_0x1050b7,'backend':{'method':_0x4b35c3(0x169),'path':DING_TALK_SANDBOX_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a263_0x54bd(){const _0x537cb5=['validation','820401OzutgP','ding-talk-user-id','3986640rZKonE','dingtalk','string','trim','2320584nKOAQI','DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox','str','write','35bGgteg','--ding-talk-user-id\x20cannot\x20be\x20empty.','POST','Pass\x20the\x20DingTalk\x20user\x20id\x20returned\x20by\x20the\x20sandbox.','5961225VnsSkI','11837457UCjpIq','274718EEkWbd','apiError','10WDzJln','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20DingTalk\x20sandbox\x20account','384246uByOZB'];a263_0x54bd=function(){return _0x537cb5;};return a263_0x54bd();}export const dingTalkSandboxBind={'service':'user-account','command':'dingding-sandbox-bind','description':a263_0x135eff(0x15a),'risk':a263_0x135eff(0x166),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a263_0x135eff(0x15e),'type':a263_0x135eff(0x161),'required':!![],'description':a263_0x135eff(0x164)}],async 'validate'(_0x5b17bb){readDingTalkUserId(_0x5b17bb);},async 'dryRun'(_0x425c68){const _0x2af5ac=a263_0x135eff,_0x29c36e=readDingTalkUserId(_0x425c68);return asDryRunResult(buildBindingData(_0x29c36e,!![]),{'method':_0x2af5ac(0x169),'url':DING_TALK_SANDBOX_BIND_PATH});},async 'execute'(_0x4e60b6){const _0x44266b=a263_0x135eff,_0xb742b8=readDingTalkUserId(_0x4e60b6),_0x57485e=await bindDingTalkSandboxAccount(_0xb742b8);if(_0x57485e!==!![])throw CliErrors[_0x44266b(0x158)]('DingTalk\x20sandbox\x20account\x20binding\x20was\x20not\x20confirmed.','Retry\x20with\x20the\x20same\x20--ding-talk-user-id\x20only\x20after\x20checking\x20the\x20current\x20platform\x20session.');return{'ok':!![],'data':buildBindingData(_0xb742b8,![]),'message':'Bound\x20current\x20user\x20to\x20DingTalk\x20sandbox\x20account.'};}};
@@ -1 +1 @@
1
- function a264_0xfa94(_0x2b08ac,_0x17daa7){_0x2b08ac=_0x2b08ac-0x159;const _0x49faae=a264_0x49fa();let _0xfa9465=_0x49faae[_0x2b08ac];return _0xfa9465;}const a264_0x346192=a264_0xfa94;(function(_0x45b67e,_0x1f534c){const _0x39a9e7=a264_0xfa94,_0x2e9334=_0x45b67e();while(!![]){try{const _0x448f51=-parseInt(_0x39a9e7(0x165))/0x1+-parseInt(_0x39a9e7(0x16d))/0x2+-parseInt(_0x39a9e7(0x159))/0x3+-parseInt(_0x39a9e7(0x16e))/0x4*(-parseInt(_0x39a9e7(0x16b))/0x5)+parseInt(_0x39a9e7(0x162))/0x6+parseInt(_0x39a9e7(0x15d))/0x7*(parseInt(_0x39a9e7(0x171))/0x8)+-parseInt(_0x39a9e7(0x163))/0x9;if(_0x448f51===_0x1f534c)break;else _0x2e9334['push'](_0x2e9334['shift']());}catch(_0x231ff3){_0x2e9334['push'](_0x2e9334['shift']());}}}(a264_0x49fa,0x456e7));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_0x49fa(){const _0x9c0840=['7JVMGAK','string','Feishu\x20account\x20binding\x20was\x20not\x20confirmed.','feishu','union-id','2539326WoZTzF','1637622miVCnu','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','23545AnwLXd','validation','apiError','str','write','Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.','8605wxkyLq','bind','261716WzTVQT','216yQWCRG','Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.','Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer','2858712ikXQvt','758226gCBnNR','Bound\x20current\x20user\x20to\x20Feishu\x20account.','POST','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account'];a264_0x49fa=function(){return _0x9c0840;};return a264_0x49fa();}const PROVIDER_ID=a264_0x346192(0x160),CURRENT_BINDING_WARNING=a264_0x346192(0x164);function readUnionId(_0x354e5d){const _0x544616=a264_0x346192,_0x59d132=_0x354e5d[_0x544616(0x168)](_0x544616(0x161))['trim']();if(!/^on_[A-Za-z0-9_-]+$/['test'](_0x59d132))throw CliErrors[_0x544616(0x166)]('--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.',_0x544616(0x16a));return _0x59d132;}function buildBindingData(_0x414592,_0x1a9d8d){const _0x3f2eb3=a264_0x346192;return{'operation':_0x3f2eb3(0x16c),'selector':{'providerId':PROVIDER_ID,'unionId':_0x414592},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x414592,'bound':!![]},'dryRun':_0x1a9d8d,'backend':{'method':'POST','path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}export const feishuBind={'service':'user-account','command':'feishu-bind','description':a264_0x346192(0x15c),'risk':a264_0x346192(0x169),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a264_0x346192(0x161),'type':a264_0x346192(0x15e),'required':!![],'description':a264_0x346192(0x170)}],async 'validate'(_0x31b4b0){readUnionId(_0x31b4b0);},async 'dryRun'(_0x63134b){const _0x5504f9=a264_0x346192,_0x2a3172=readUnionId(_0x63134b);return asDryRunResult(buildBindingData(_0x2a3172,!![]),{'method':_0x5504f9(0x15b),'url':FEISHU_BIND_PATH});},async 'execute'(_0x5d8ce5){const _0xaa3a70=a264_0x346192,_0x1baeec=readUnionId(_0x5d8ce5),_0x50e2c5=await bindFeishuAccount(_0x1baeec);if(_0x50e2c5!==!![])throw CliErrors[_0xaa3a70(0x167)](_0xaa3a70(0x15f),_0xaa3a70(0x16f));return{'ok':!![],'data':buildBindingData(_0x1baeec,![]),'message':_0xaa3a70(0x15a)};}};
1
+ const a264_0x36516e=a264_0x52c5;(function(_0x30fd8b,_0x39792a){const _0x5247de=a264_0x52c5,_0x2ffb09=_0x30fd8b();while(!![]){try{const _0x20fae8=parseInt(_0x5247de(0x67))/0x1+parseInt(_0x5247de(0x6d))/0x2+parseInt(_0x5247de(0x73))/0x3*(parseInt(_0x5247de(0x68))/0x4)+-parseInt(_0x5247de(0x7a))/0x5*(parseInt(_0x5247de(0x7d))/0x6)+parseInt(_0x5247de(0x7e))/0x7+parseInt(_0x5247de(0x75))/0x8*(-parseInt(_0x5247de(0x78))/0x9)+parseInt(_0x5247de(0x69))/0xa*(parseInt(_0x5247de(0x6e))/0xb);if(_0x20fae8===_0x39792a)break;else _0x2ffb09['push'](_0x2ffb09['shift']());}catch(_0x6f924f){_0x2ffb09['push'](_0x2ffb09['shift']());}}}(a264_0x559f,0x6c1c5));import{asDryRunResult}from'../../commands/common/dry-run.js';import{bindFeishuAccount,FEISHU_BIND_PATH}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const PROVIDER_ID='feishu',CURRENT_BINDING_WARNING=a264_0x36516e(0x6b);function readUnionId(_0x692b8){const _0x490dc3=a264_0x36516e,_0x48b405=_0x692b8['str'](_0x490dc3(0x7c))['trim']();if(!/^on_[A-Za-z0-9_-]+$/[_0x490dc3(0x79)](_0x48b405))throw CliErrors['validation'](_0x490dc3(0x6f),'Pass\x20a\x20Feishu\x20union\x20id\x20such\x20as\x20on_example_001.');return _0x48b405;}function buildBindingData(_0x59513d,_0x10d672){const _0xe9f366=a264_0x36516e;return{'operation':_0xe9f366(0x6c),'selector':{'providerId':PROVIDER_ID,'unionId':_0x59513d},'before':null,'after':{'providerId':PROVIDER_ID,'unionId':_0x59513d,'bound':!![]},'dryRun':_0x10d672,'backend':{'method':'POST','path':FEISHU_BIND_PATH},'warnings':[CURRENT_BINDING_WARNING]};}function a264_0x559f(){const _0x206491=['423710arwLHb','user-account','The\x20current\x20binding\x20is\x20not\x20exposed\x20by\x20the\x20server;\x20before\x20is\x20unavailable.','bind','379860PKixsD','11ROjwbz','--union-id\x20must\x20match\x20on_\x20followed\x20by\x20letters,\x20digits,\x20underscores,\x20or\x20hyphens.','feishu-bind','string','write','39YXmrxz','Verify\x20the\x20current\x20binding\x20through\x20the\x20platform\x20before\x20explicitly\x20retrying;\x20do\x20not\x20automatically\x20retry.','76688WoVGII','Bind\x20the\x20current\x20platform\x20user\x20to\x20a\x20Feishu\x20account','apiError','468TrjMdJ','test','4406660JjDtKM','POST','union-id','6lJiOaV','4526333YOXmqD','775940jKwGci','51620IYYxBK'];a264_0x559f=function(){return _0x206491;};return a264_0x559f();}function a264_0x52c5(_0x3ac358,_0x668f6c){_0x3ac358=_0x3ac358-0x67;const _0x559f1c=a264_0x559f();let _0x52c566=_0x559f1c[_0x3ac358];return _0x52c566;}export const feishuBind={'service':a264_0x36516e(0x6a),'command':a264_0x36516e(0x70),'description':a264_0x36516e(0x76),'risk':a264_0x36516e(0x72),'requiresAuth':!![],'requiresAppCode':![],'structuredErrors':!![],'flags':[{'name':a264_0x36516e(0x7c),'type':a264_0x36516e(0x71),'required':!![],'description':'Feishu\x20union_id\x20for\x20the\x20configured\x20Feishu\x20application\x20developer'}],async 'validate'(_0x1417b5){readUnionId(_0x1417b5);},async 'dryRun'(_0x403043){const _0x1b5075=a264_0x36516e,_0xd5c08f=readUnionId(_0x403043);return asDryRunResult(buildBindingData(_0xd5c08f,!![]),{'method':_0x1b5075(0x7b),'url':FEISHU_BIND_PATH});},async 'execute'(_0x177d78){const _0x4eb9ef=a264_0x36516e,_0x25e612=readUnionId(_0x177d78),_0x1c7b7f=await bindFeishuAccount(_0x25e612);if(_0x1c7b7f!==!![])throw CliErrors[_0x4eb9ef(0x77)]('Feishu\x20account\x20binding\x20was\x20not\x20confirmed.',_0x4eb9ef(0x74));return{'ok':!![],'data':buildBindingData(_0x25e612,![]),'message':'Bound\x20current\x20user\x20to\x20Feishu\x20account.'};}};
@@ -1 +1 @@
1
- (function(_0x1de143,_0x28616e){const _0x232019=a265_0x2c50,_0x19d4d0=_0x1de143();while(!![]){try{const _0x2d764a=parseInt(_0x232019(0x136))/0x1*(-parseInt(_0x232019(0x133))/0x2)+parseInt(_0x232019(0x131))/0x3+parseInt(_0x232019(0x135))/0x4*(-parseInt(_0x232019(0x130))/0x5)+parseInt(_0x232019(0x132))/0x6+-parseInt(_0x232019(0x12f))/0x7+-parseInt(_0x232019(0x134))/0x8+parseInt(_0x232019(0x137))/0x9;if(_0x2d764a===_0x28616e)break;else _0x19d4d0['push'](_0x19d4d0['shift']());}catch(_0x4c8ed4){_0x19d4d0['push'](_0x19d4d0['shift']());}}}(a265_0x5626,0x24667));function a265_0x2c50(_0x292e06,_0x6678f1){_0x292e06=_0x292e06-0x12f;const _0x56268a=a265_0x5626();let _0x2c5090=_0x56268a[_0x292e06];return _0x2c5090;}import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';function a265_0x5626(){const _0x226b6d=['1805584ldiSia','4ouZUiT','1uZOaRc','3067938ayGcBX','482440qUSbkw','20380HWHshZ','46074lAVTSI','772728iMMYEt','74478QlfLHi'];a265_0x5626=function(){return _0x226b6d;};return a265_0x5626();}import{feishuBind}from'../../commands/user-account/feishu-bind.js';export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];
1
+ (function(_0x4f568a,_0x1812fd){const _0xcc020=a265_0x52bb,_0x3fe5c8=_0x4f568a();while(!![]){try{const _0x2adaf9=parseInt(_0xcc020(0x9b))/0x1+-parseInt(_0xcc020(0x99))/0x2*(-parseInt(_0xcc020(0x9f))/0x3)+parseInt(_0xcc020(0xa3))/0x4*(parseInt(_0xcc020(0xa2))/0x5)+-parseInt(_0xcc020(0x9d))/0x6*(parseInt(_0xcc020(0x9e))/0x7)+-parseInt(_0xcc020(0x9a))/0x8+parseInt(_0xcc020(0xa0))/0x9*(parseInt(_0xcc020(0xa4))/0xa)+parseInt(_0xcc020(0x9c))/0xb*(parseInt(_0xcc020(0xa1))/0xc);if(_0x2adaf9===_0x1812fd)break;else _0x3fe5c8['push'](_0x3fe5c8['shift']());}catch(_0x23330e){_0x3fe5c8['push'](_0x3fe5c8['shift']());}}}(a265_0x5598,0x1b16d));import{dingTalkSandboxBind}from'../../commands/user-account/dingding-sandbox-bind.js';import{feishuBind}from'../../commands/user-account/feishu-bind.js';function a265_0x52bb(_0x173aa4,_0x32cae6){_0x173aa4=_0x173aa4-0x99;const _0x5598e3=a265_0x5598();let _0x52bb51=_0x5598e3[_0x173aa4];return _0x52bb51;}export const userAccountDefinitions=[dingTalkSandboxBind,feishuBind];function a265_0x5598(){const _0x5f1568=['28mDUFiu','3hdUYtW','14544xxszhv','48Prdczh','236415mULZUQ','12ckIWJb','20IMnwHG','14590dSLXXS','127112BgicmR','27622LNQWxx','193699fYOCpw','185382wMGCvY'];a265_0x5598=function(){return _0x5f1568;};return a265_0x5598();}
@@ -1 +1 @@
1
- function a266_0x2f01(_0x47892e,_0x52849b){_0x47892e=_0x47892e-0x1c4;const _0x4a6b38=a266_0x4a6b();let _0x2f01ed=_0x4a6b38[_0x47892e];return _0x2f01ed;}function a266_0x4a6b(){const _0x53d7cd=['workspace\x20add','29843KwuDzy','520EszCdm','7bJrcye','6106nfuegv','5097537MCIFPO','3oCWunq','136108UEjMuE','346010GMVUFQ','8jwtAQB','139VRgaXx','1907112uhQkLS','name','3147648OzuxeG'];a266_0x4a6b=function(){return _0x53d7cd;};return a266_0x4a6b();}const a266_0x508745=a266_0x2f01;(function(_0x39bdda,_0x2e3735){const _0x245fa6=a266_0x2f01,_0x52c509=_0x39bdda();while(!![]){try{const _0x29045d=parseInt(_0x245fa6(0x1d0))/0x1*(parseInt(_0x245fa6(0x1ca))/0x2)+-parseInt(_0x245fa6(0x1cc))/0x3*(parseInt(_0x245fa6(0x1cd))/0x4)+parseInt(_0x245fa6(0x1ce))/0x5+parseInt(_0x245fa6(0x1d1))/0x6*(-parseInt(_0x245fa6(0x1c9))/0x7)+parseInt(_0x245fa6(0x1cf))/0x8*(parseInt(_0x245fa6(0x1cb))/0x9)+parseInt(_0x245fa6(0x1c8))/0xa*(-parseInt(_0x245fa6(0x1c7))/0xb)+-parseInt(_0x245fa6(0x1c5))/0xc;if(_0x29045d===_0x2e3735)break;else _0x52c509['push'](_0x52c509['shift']());}catch(_0x49420c){_0x52c509['push'](_0x52c509['shift']());}}}(a266_0x4a6b,0x4a63f));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':'workspace','command':'add','description':'Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x508745(0x1c4),'description':'App\x20profile\x20name','required':!![]}],'flags':buildAppAddFlags(),'validate':_0x14cc83=>validateAppName(_0x14cc83,a266_0x508745(0x1c6)),'execute':_0x5d0fa3=>runAppAdd(_0x5d0fa3,'workspace\x20add')};
1
+ function a266_0x58ca(_0xa12f30,_0x448de7){_0xa12f30=_0xa12f30-0x1a7;const _0xac6e04=a266_0xac6e();let _0x58cae1=_0xac6e04[_0xa12f30];return _0x58cae1;}const a266_0x2c5a18=a266_0x58ca;(function(_0x1736b0,_0x3b72fa){const _0x1eba3a=a266_0x58ca,_0x4b554c=_0x1736b0();while(!![]){try{const _0x32be67=parseInt(_0x1eba3a(0x1b6))/0x1+-parseInt(_0x1eba3a(0x1a9))/0x2*(-parseInt(_0x1eba3a(0x1ad))/0x3)+-parseInt(_0x1eba3a(0x1af))/0x4+-parseInt(_0x1eba3a(0x1ab))/0x5+parseInt(_0x1eba3a(0x1ac))/0x6*(parseInt(_0x1eba3a(0x1ae))/0x7)+parseInt(_0x1eba3a(0x1b0))/0x8*(-parseInt(_0x1eba3a(0x1b1))/0x9)+parseInt(_0x1eba3a(0x1b2))/0xa*(-parseInt(_0x1eba3a(0x1b7))/0xb);if(_0x32be67===_0x3b72fa)break;else _0x4b554c['push'](_0x4b554c['shift']());}catch(_0x4b3ff0){_0x4b554c['push'](_0x4b554c['shift']());}}}(a266_0xac6e,0xeb18a));import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const workspaceAddDefinition={'service':a266_0x2c5a18(0x1b3),'command':a266_0x2c5a18(0x1a7),'description':a266_0x2c5a18(0x1b4),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a266_0x2c5a18(0x1b5),'description':a266_0x2c5a18(0x1a8),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x51df4e=>validateAppName(_0x51df4e,a266_0x2c5a18(0x1aa)),'execute':_0x158f56=>runAppAdd(_0x158f56,a266_0x2c5a18(0x1aa))};function a266_0xac6e(){const _0xe309b6=['2CAmUeo','workspace\x20add','308915ZUpfzy','6VUbCCo','619563ttLUam','11444986ZggykV','3697724UqZwWw','16CBDqtC','809901TQcFZZ','1382230RSLPVj','workspace','Register\x20an\x20app\x20profile\x20in\x20the\x20current\x20workspace\x20(or\x20--global)','name','978742jLYWIf','55JkbtXI','add','App\x20profile\x20name'];a266_0xac6e=function(){return _0xe309b6;};return a266_0xac6e();}
@@ -1 +1 @@
1
- const a267_0x4b0d2e=a267_0x49dc;(function(_0x46ad98,_0x255a83){const _0x249482=a267_0x49dc,_0x2832c8=_0x46ad98();while(!![]){try{const _0x4528e1=-parseInt(_0x249482(0x1ea))/0x1+parseInt(_0x249482(0x1bc))/0x2+-parseInt(_0x249482(0x1c3))/0x3+-parseInt(_0x249482(0x1cc))/0x4+-parseInt(_0x249482(0x1dd))/0x5*(-parseInt(_0x249482(0x1b4))/0x6)+-parseInt(_0x249482(0x1da))/0x7*(-parseInt(_0x249482(0x1c7))/0x8)+-parseInt(_0x249482(0x1d3))/0x9;if(_0x4528e1===_0x255a83)break;else _0x2832c8['push'](_0x2832c8['shift']());}catch(_0x4c202e){_0x2832c8['push'](_0x2832c8['shift']());}}}(a267_0x1c54,0xb974e));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';function a267_0x49dc(_0x1e7147,_0x3f9a3d){_0x1e7147=_0x1e7147-0x1b0;const _0x1c5434=a267_0x1c54();let _0x49dc7a=_0x1c5434[_0x1e7147];return _0x49dc7a;}import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../../constant/output.js';import{RISK_LEVEL_VALUES}from'../../constant/risk.js';import{validateAppcode}from'../../commands/common/validate.js';function a267_0x1c54(){const _0x25ca85=[').\x20Config:\x20','globalConfig','321909SuaByr','Use\x20`','string','validation','1896344BFLhUz','\x20(appcode:\x20','Missing\x20workspace\x20app\x20selector.','init','apiGroup','4894128VcjTeV','object','workspace.','workspace','env','defaultFormat','apps','4139739tUlWBK','\x20workspace\x20','Switch\x20the\x20current\x20workspace\x20app\x20binding','riskLevel','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','trim','.\x20Credentials:\x20not\x20written.','28EKNPtH','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile','393150DLpnTu','flag','format','project','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','Workspace\x20','App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace','use','str','Invalid\x20appcode:\x20','appcode','region','pageSize','1163864jinjlv','\x20--appcode\x20<code>`.','initialized','Initialize\x20the\x20current\x20workspace\x20app\x20binding','length','locale','Country/region\x20for\x20this\x20workspace\x20app\x20profile','102fOWLSj','App\x20\x22','number','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','apiDir','keys','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','updated','2858836yuoZyX','Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile','write','app','Target\x20environment'];a267_0x1c54=function(){return _0x25ca85;};return a267_0x1c54();}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_0x4b0d2e(0x1e7),a267_0x4b0d2e(0x1cb),a267_0x4b0d2e(0x1e8),a267_0x4b0d2e(0x1d0),'apiDir','format',a267_0x4b0d2e(0x1e9),a267_0x4b0d2e(0x1d6),a267_0x4b0d2e(0x1b2)],workspaceFlags=[{'name':a267_0x4b0d2e(0x1bf),'type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1e3)},{'name':'appcode','type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1b7)},{'name':'apiGroup','type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1ba)},{'name':a267_0x4b0d2e(0x1e8),'type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1b3),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x4b0d2e(0x1d0),'type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1c0),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':a267_0x4b0d2e(0x1dc)},{'name':'defaultFormat','type':a267_0x4b0d2e(0x1c5),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':a267_0x4b0d2e(0x1e9),'type':a267_0x4b0d2e(0x1b6),'description':a267_0x4b0d2e(0x1bd)},{'name':'riskLevel','type':a267_0x4b0d2e(0x1c5),'description':a267_0x4b0d2e(0x1db),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x4b0d2e(0x1b2),'type':a267_0x4b0d2e(0x1c5),'description':'App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];function isRecord(_0x59fdc6){const _0x38070c=a267_0x4b0d2e;return!!_0x59fdc6&&typeof _0x59fdc6===_0x38070c(0x1cd)&&!Array['isArray'](_0x59fdc6);}function assertValidAppcode(_0x33bc3f){const _0x55c71d=a267_0x4b0d2e,{valid:_0x31c4e6,message:_0x5116d4}=validateAppcode(_0x33bc3f);if(!_0x31c4e6)throw CliErrors['validation'](_0x55c71d(0x1e6)+_0x33bc3f,_0x5116d4);}function sanitizeProfile(_0x36e2e4){if(!isRecord(_0x36e2e4))return{};const _0x317b98={};for(const _0x19b4d0 of SAFE_PROFILE_KEYS){if(_0x36e2e4[_0x19b4d0]!==undefined)_0x317b98[_0x19b4d0]=_0x36e2e4[_0x19b4d0];}return _0x317b98;}function cloneProfile(_0x20a044){return isRecord(_0x20a044)?{..._0x20a044}:{};}function collectWorkspaceProfileOverrides(_0x2021d0){const _0x488818=a267_0x4b0d2e,_0xb3f0f={},_0x40ae73=_0x2021d0[_0x488818(0x1e5)](_0x488818(0x1cb)),_0x489b53=_0x2021d0['str'](_0x488818(0x1e8)),_0x349677=_0x2021d0['str'](_0x488818(0x1d0)),_0x570be9=_0x2021d0[_0x488818(0x1e5)](_0x488818(0x1b8)),_0x46a54b=_0x2021d0[_0x488818(0x1e5)](_0x488818(0x1d1)),_0x258a6c=_0x2021d0[_0x488818(0x1de)](_0x488818(0x1e9)),_0x5915a2=_0x2021d0['str'](_0x488818(0x1d6)),_0x1eba33=_0x2021d0[_0x488818(0x1e5)](_0x488818(0x1b2));if(_0x40ae73)_0xb3f0f[_0x488818(0x1cb)]=_0x40ae73;if(_0x489b53)_0xb3f0f['region']=_0x489b53;if(_0x349677)_0xb3f0f[_0x488818(0x1d0)]=_0x349677;if(_0x570be9)_0xb3f0f[_0x488818(0x1b8)]=_0x570be9;if(_0x46a54b)_0xb3f0f[_0x488818(0x1df)]=_0x46a54b;if(_0x258a6c!==undefined&&_0x258a6c!=='')_0xb3f0f[_0x488818(0x1e9)]=Number(_0x258a6c);if(_0x5915a2)_0xb3f0f[_0x488818(0x1d6)]=_0x5915a2;if(_0x1eba33)_0xb3f0f['locale']=_0x1eba33;return _0xb3f0f;}async function validateWorkspaceArgs(_0x2530b8){const _0x5e981b=a267_0x4b0d2e,_0x417319=_0x2530b8['str'](_0x5e981b(0x1bf))[_0x5e981b(0x1d8)](),_0x160c8b=_0x2530b8[_0x5e981b(0x1e5)](_0x5e981b(0x1e7))[_0x5e981b(0x1d8)]();if(!_0x417319&&!_0x160c8b)throw CliErrors[_0x5e981b(0x1c6)](_0x5e981b(0x1c9),_0x5e981b(0x1c4)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x160c8b)assertValidAppcode(_0x160c8b);}function resolveKnownApps(){const _0x5de554=a267_0x4b0d2e,{config:_0x58cf52,layers:_0x524ed0}=readRawConfigWithLayers(),_0x5849cc=isRecord(_0x58cf52['apps'])?_0x58cf52['apps']:{},_0x300c59=isRecord(_0x524ed0[_0x5de554(0x1c2)][_0x5de554(0x1d2)])?_0x524ed0[_0x5de554(0x1c2)]['apps']:{};return{..._0x300c59,..._0x5849cc};}async function configureWorkspace(_0x22f41b,_0x1ea1be){const _0x5d3495=a267_0x4b0d2e,_0x5a77ba=_0x22f41b[_0x5d3495(0x1e5)]('app')['trim'](),_0x298d94=_0x22f41b[_0x5d3495(0x1e5)](_0x5d3495(0x1e7))['trim'](),_0x3a6669=_0x5a77ba||_0x298d94;if(!_0x3a6669)throw CliErrors[_0x5d3495(0x1c6)]('Missing\x20workspace\x20app\x20selector.','Use\x20`'+CLI_BIN_NAME+_0x5d3495(0x1e1)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x298d94)assertValidAppcode(_0x298d94);const _0x4dc224=resolveWriteConfigPath(_0x5d3495(0x1e0)),_0x3d2d97=readConfigFile(_0x4dc224),_0x1167b0=resolveKnownApps(),_0x14c91c=isRecord(_0x3d2d97[_0x5d3495(0x1d2)])?{..._0x3d2d97[_0x5d3495(0x1d2)]}:{},_0x58b37e=cloneProfile(_0x14c91c[_0x3a6669]),_0x433d00=sanitizeProfile(_0x1167b0[_0x3a6669]),_0x4e6b41=_0x298d94?{}:_0x433d00,_0x3fc65d=_0x298d94||_0x4e6b41[_0x5d3495(0x1e7)];if(!_0x3fc65d){const _0x576b3f=Object[_0x5d3495(0x1b9)](_0x1167b0),_0x29ca5b=_0x576b3f[_0x5d3495(0x1b1)]===0x0?_0x5d3495(0x1c4)+CLI_BIN_NAME+_0x5d3495(0x1d4)+_0x1ea1be+'\x20--app\x20'+_0x3a6669+_0x5d3495(0x1eb):_0x5d3495(0x1d7)+_0x576b3f['join'](',\x20');throw CliErrors[_0x5d3495(0x1c6)](_0x5d3495(0x1b5)+_0x3a6669+'\x22\x20not\x20found.',_0x29ca5b);}assertValidAppcode(String(_0x3fc65d));const _0x357608={..._0x4e6b41,..._0x58b37e,'appcode':String(_0x3fc65d),...collectWorkspaceProfileOverrides(_0x22f41b)};return _0x14c91c[_0x3a6669]=_0x357608,_0x3d2d97['apps']=_0x14c91c,normalizeStoredDefaultApp(_0x3d2d97,_0x3a6669),delete _0x3d2d97[_0x5d3495(0x1e7)],delete _0x3d2d97[_0x5d3495(0x1bf)],_0x357608[_0x5d3495(0x1d0)]&&(_0x3d2d97[_0x5d3495(0x1d0)]=_0x357608[_0x5d3495(0x1d0)]),writeConfigFile(_0x4dc224,_0x3d2d97),{'ok':!![],'message':_0x5d3495(0x1e2)+(_0x1ea1be===_0x5d3495(0x1ca)?_0x5d3495(0x1ec):_0x5d3495(0x1bb))+':\x20'+_0x3a6669+_0x5d3495(0x1c8)+_0x357608['appcode']+_0x5d3495(0x1c1)+_0x4dc224+_0x5d3495(0x1d9),'data':{'operation':_0x5d3495(0x1ce)+_0x1ea1be,'configPath':_0x4dc224,'app':_0x3a6669,'appcode':_0x357608[_0x5d3495(0x1e7)],'apiGroup':_0x357608[_0x5d3495(0x1cb)]??null,'region':_0x357608[_0x5d3495(0x1e8)]??null,'env':_0x357608['env']??null,'credentialsWritten':![]}};}const workspaceInitDefinition={'service':'workspace','command':a267_0x4b0d2e(0x1ca),'description':a267_0x4b0d2e(0x1b0),'risk':a267_0x4b0d2e(0x1be),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2b7d69=>configureWorkspace(_0x2b7d69,a267_0x4b0d2e(0x1ca))},workspaceUseDefinition={'service':a267_0x4b0d2e(0x1cf),'command':a267_0x4b0d2e(0x1e4),'description':a267_0x4b0d2e(0x1d5),'risk':a267_0x4b0d2e(0x1be),'requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0xc1b777=>configureWorkspace(_0xc1b777,'use')};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
1
+ const a267_0x325347=a267_0xba62;(function(_0x21bc3a,_0x472459){const _0x4fe3d6=a267_0xba62,_0x2fcf91=_0x21bc3a();while(!![]){try{const _0x3a517e=parseInt(_0x4fe3d6(0x126))/0x1+-parseInt(_0x4fe3d6(0x11b))/0x2*(parseInt(_0x4fe3d6(0x12a))/0x3)+parseInt(_0x4fe3d6(0x109))/0x4*(parseInt(_0x4fe3d6(0x123))/0x5)+parseInt(_0x4fe3d6(0x125))/0x6+parseInt(_0x4fe3d6(0x119))/0x7*(-parseInt(_0x4fe3d6(0x112))/0x8)+parseInt(_0x4fe3d6(0x118))/0x9+parseInt(_0x4fe3d6(0x133))/0xa*(-parseInt(_0x4fe3d6(0x11d))/0xb);if(_0x3a517e===_0x472459)break;else _0x2fcf91['push'](_0x2fcf91['shift']());}catch(_0xc475a9){_0x2fcf91['push'](_0x2fcf91['shift']());}}}(a267_0x2580,0xb4c7a));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_0x325347(0x10a),SAFE_PROFILE_KEYS=[a267_0x325347(0x110),'apiGroup','region',a267_0x325347(0x10b),a267_0x325347(0x11c),'format','pageSize',a267_0x325347(0x122),'locale'],workspaceFlags=[{'name':a267_0x325347(0x10f),'type':'string','description':'App\x20profile\x20name\x20to\x20use\x20in\x20this\x20workspace'},{'name':a267_0x325347(0x110),'type':'string','description':a267_0x325347(0x11f)},{'name':a267_0x325347(0x12f),'type':'string','description':a267_0x325347(0x130)},{'name':'region','type':a267_0x325347(0x107),'description':a267_0x325347(0x138),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a267_0x325347(0x10b),'type':'string','description':a267_0x325347(0x131),'enum':[...RABETBASE_ENV_VALUES]},{'name':a267_0x325347(0x11c),'type':a267_0x325347(0x107),'description':'API\x20directory\x20path\x20for\x20this\x20workspace\x20app\x20profile'},{'name':a267_0x325347(0x137),'type':a267_0x325347(0x107),'description':'Default\x20output\x20format\x20for\x20this\x20workspace\x20app\x20profile','enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':a267_0x325347(0x13b),'description':'Default\x20page\x20size\x20for\x20this\x20workspace\x20app\x20profile'},{'name':'riskLevel','type':a267_0x325347(0x107),'description':a267_0x325347(0x13e),'enum':[...RISK_LEVEL_VALUES]},{'name':a267_0x325347(0x135),'type':a267_0x325347(0x107),'description':'App\x20locale\x20for\x20this\x20workspace\x20app\x20profile\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];function isRecord(_0x457a41){const _0x13e2af=a267_0x325347;return!!_0x457a41&&typeof _0x457a41==='object'&&!Array[_0x13e2af(0x108)](_0x457a41);}function assertValidAppcode(_0x202b8b){const _0x564865=a267_0x325347,{valid:_0x4e231c,message:_0x1d1c03}=validateAppcode(_0x202b8b);if(!_0x4e231c)throw CliErrors[_0x564865(0x116)](_0x564865(0x111)+_0x202b8b,_0x1d1c03);}function a267_0x2580(){const _0x33e875=['isArray','5647172ijjoTp','\x20workspace\x20<init|use>\x20--app\x20<name>\x20[--appcode\x20<code>]','env','\x22\x20not\x20found.','\x20workspace\x20','.\x20Credentials:\x20not\x20written.','app','appcode','Invalid\x20appcode:\x20','16hjvXcD','Workspace\x20','Use\x20`','Missing\x20workspace\x20app\x20selector.','validation','initialized','13098906DwbnEq','1014489gIXnNr','region','7244hVvCCh','apiDir','44STwZJp','pageSize','App\x20code\x20to\x20bind\x20to\x20this\x20workspace','App\x20\x22','Pass\x20--appcode\x20<code>,\x20or\x20choose\x20one\x20of:\x20','riskLevel','5YFFhkw','use','5312592ZJFDhY','352021ZJLmTy','trim','project','init','1074FinUOe','updated','\x20workspace\x20use\x20--app\x20<name>`.','workspace','\x20--appcode\x20<code>`.','apiGroup','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Target\x20environment','str','4444190KCfaEb','format','locale',').\x20Config:\x20','defaultFormat','Country/region\x20for\x20this\x20workspace\x20app\x20profile','length','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20`','number','\x20--app\x20','apps','Risk\x20level\x20for\x20this\x20workspace\x20app\x20profile','workspace.','flag','globalConfig','string'];a267_0x2580=function(){return _0x33e875;};return a267_0x2580();}function sanitizeProfile(_0x99d71a){if(!isRecord(_0x99d71a))return{};const _0x33c0fc={};for(const _0x57edb4 of SAFE_PROFILE_KEYS){if(_0x99d71a[_0x57edb4]!==undefined)_0x33c0fc[_0x57edb4]=_0x99d71a[_0x57edb4];}return _0x33c0fc;}function cloneProfile(_0x326674){return isRecord(_0x326674)?{..._0x326674}:{};}function collectWorkspaceProfileOverrides(_0x4ffaf1){const _0x522526=a267_0x325347,_0x48ff01={},_0x1f70e8=_0x4ffaf1[_0x522526(0x132)](_0x522526(0x12f)),_0x35e9f7=_0x4ffaf1[_0x522526(0x132)](_0x522526(0x11a)),_0x335e6b=_0x4ffaf1[_0x522526(0x132)](_0x522526(0x10b)),_0xb8e56a=_0x4ffaf1[_0x522526(0x132)]('apiDir'),_0x2368dc=_0x4ffaf1[_0x522526(0x132)](_0x522526(0x137)),_0x522f76=_0x4ffaf1[_0x522526(0x105)](_0x522526(0x11e)),_0x33eeee=_0x4ffaf1[_0x522526(0x132)](_0x522526(0x122)),_0x1b78b0=_0x4ffaf1['str'](_0x522526(0x135));if(_0x1f70e8)_0x48ff01[_0x522526(0x12f)]=_0x1f70e8;if(_0x35e9f7)_0x48ff01[_0x522526(0x11a)]=_0x35e9f7;if(_0x335e6b)_0x48ff01[_0x522526(0x10b)]=_0x335e6b;if(_0xb8e56a)_0x48ff01[_0x522526(0x11c)]=_0xb8e56a;if(_0x2368dc)_0x48ff01[_0x522526(0x134)]=_0x2368dc;if(_0x522f76!==undefined&&_0x522f76!=='')_0x48ff01[_0x522526(0x11e)]=Number(_0x522f76);if(_0x33eeee)_0x48ff01[_0x522526(0x122)]=_0x33eeee;if(_0x1b78b0)_0x48ff01[_0x522526(0x135)]=_0x1b78b0;return _0x48ff01;}async function validateWorkspaceArgs(_0x377a05){const _0x33628e=a267_0x325347,_0x476368=_0x377a05[_0x33628e(0x132)](_0x33628e(0x10f))[_0x33628e(0x127)](),_0xdc3cc4=_0x377a05[_0x33628e(0x132)]('appcode')[_0x33628e(0x127)]();if(!_0x476368&&!_0xdc3cc4)throw CliErrors['validation'](_0x33628e(0x115),_0x33628e(0x114)+CLI_BIN_NAME+_0x33628e(0x13a)+CLI_BIN_NAME+_0x33628e(0x12c));if(_0xdc3cc4)assertValidAppcode(_0xdc3cc4);}function resolveKnownApps(){const _0x4de65e=a267_0x325347,{config:_0x52e0dc,layers:_0x36366d}=readRawConfigWithLayers(),_0x5104ba=isRecord(_0x52e0dc[_0x4de65e(0x13d)])?_0x52e0dc[_0x4de65e(0x13d)]:{},_0x55204b=isRecord(_0x36366d[_0x4de65e(0x106)][_0x4de65e(0x13d)])?_0x36366d[_0x4de65e(0x106)][_0x4de65e(0x13d)]:{};return{..._0x55204b,..._0x5104ba};}async function configureWorkspace(_0x410085,_0x238d32){const _0x2c1209=a267_0x325347,_0x54ecad=_0x410085['str'](_0x2c1209(0x10f))[_0x2c1209(0x127)](),_0x5c2015=_0x410085[_0x2c1209(0x132)]('appcode')[_0x2c1209(0x127)](),_0xc4af11=_0x54ecad||_0x5c2015;if(!_0xc4af11)throw CliErrors[_0x2c1209(0x116)](_0x2c1209(0x115),_0x2c1209(0x114)+CLI_BIN_NAME+_0x2c1209(0x13a)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.');if(_0x5c2015)assertValidAppcode(_0x5c2015);const _0x4d8bd3=resolveWriteConfigPath(_0x2c1209(0x128)),_0xb70111=readConfigFile(_0x4d8bd3),_0x5e7cca=resolveKnownApps(),_0x4cc506=isRecord(_0xb70111['apps'])?{..._0xb70111[_0x2c1209(0x13d)]}:{},_0x2d701d=cloneProfile(_0x4cc506[_0xc4af11]),_0x55fafe=sanitizeProfile(_0x5e7cca[_0xc4af11]),_0x14c35c=_0x5c2015?{}:_0x55fafe,_0x209301=_0x5c2015||_0x14c35c['appcode'];if(!_0x209301){const _0x32e717=Object['keys'](_0x5e7cca),_0x2cdbe7=_0x32e717[_0x2c1209(0x139)]===0x0?_0x2c1209(0x114)+CLI_BIN_NAME+_0x2c1209(0x10d)+_0x238d32+_0x2c1209(0x13c)+_0xc4af11+_0x2c1209(0x12e):_0x2c1209(0x121)+_0x32e717['join'](',\x20');throw CliErrors[_0x2c1209(0x116)](_0x2c1209(0x120)+_0xc4af11+_0x2c1209(0x10c),_0x2cdbe7);}assertValidAppcode(String(_0x209301));const _0x4c2bed={..._0x14c35c,..._0x2d701d,'appcode':String(_0x209301),...collectWorkspaceProfileOverrides(_0x410085)};return _0x4cc506[_0xc4af11]=_0x4c2bed,_0xb70111[_0x2c1209(0x13d)]=_0x4cc506,normalizeStoredDefaultApp(_0xb70111,_0xc4af11),delete _0xb70111[_0x2c1209(0x110)],delete _0xb70111['app'],_0x4c2bed[_0x2c1209(0x10b)]&&(_0xb70111[_0x2c1209(0x10b)]=_0x4c2bed[_0x2c1209(0x10b)]),writeConfigFile(_0x4d8bd3,_0xb70111),{'ok':!![],'message':_0x2c1209(0x113)+(_0x238d32===_0x2c1209(0x129)?_0x2c1209(0x117):_0x2c1209(0x12b))+':\x20'+_0xc4af11+'\x20(appcode:\x20'+_0x4c2bed[_0x2c1209(0x110)]+_0x2c1209(0x136)+_0x4d8bd3+_0x2c1209(0x10e),'data':{'operation':_0x2c1209(0x13f)+_0x238d32,'configPath':_0x4d8bd3,'app':_0xc4af11,'appcode':_0x4c2bed['appcode'],'apiGroup':_0x4c2bed[_0x2c1209(0x12f)]??null,'region':_0x4c2bed[_0x2c1209(0x11a)]??null,'env':_0x4c2bed['env']??null,'credentialsWritten':![]}};}function a267_0xba62(_0x1a5a9a,_0x4ba289){_0x1a5a9a=_0x1a5a9a-0x105;const _0x2580f4=a267_0x2580();let _0xba625b=_0x2580f4[_0x1a5a9a];return _0xba625b;}const workspaceInitDefinition={'service':'workspace','command':a267_0x325347(0x129),'description':'Initialize\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x1bef32=>configureWorkspace(_0x1bef32,'init')},workspaceUseDefinition={'service':a267_0x325347(0x12d),'command':'use','description':'Switch\x20the\x20current\x20workspace\x20app\x20binding','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[],'flags':workspaceFlags,'validate':validateWorkspaceArgs,'execute':_0x2b3d89=>configureWorkspace(_0x2b3d89,a267_0x325347(0x124))};export const workspaceDefinitions=[workspaceInitDefinition,workspaceUseDefinition,workspaceAddDefinition,workspaceRemoveDefinition];export{WORKSPACE_USAGE};
@@ -1 +1 @@
1
- const a268_0xcf462d=a268_0x1ff9;function a268_0xa92a(){const _0x934e3b=['2205508ZIZPgJ','4619168ysfCFc','App\x20profile\x20name\x20to\x20remove','390onvIRd','5584445WdUiTK','193329LIWZbV','433934biuQAp','741794RNnxem','896148rxZOUw','7YDcvty','6xnTroU','workspace','remove','workspace\x20remove'];a268_0xa92a=function(){return _0x934e3b;};return a268_0xa92a();}function a268_0x1ff9(_0x48e08f,_0x59027a){_0x48e08f=_0x48e08f-0x12d;const _0xa92a91=a268_0xa92a();let _0x1ff951=_0xa92a91[_0x48e08f];return _0x1ff951;}(function(_0x18f22c,_0x47e2a8){const _0x5c5786=a268_0x1ff9,_0x4b1c3d=_0x18f22c();while(!![]){try{const _0x4f54e1=parseInt(_0x5c5786(0x130))/0x1+-parseInt(_0x5c5786(0x12f))/0x2+parseInt(_0x5c5786(0x133))/0x3*(parseInt(_0x5c5786(0x137))/0x4)+-parseInt(_0x5c5786(0x12d))/0x5+parseInt(_0x5c5786(0x131))/0x6*(-parseInt(_0x5c5786(0x132))/0x7)+-parseInt(_0x5c5786(0x138))/0x8+parseInt(_0x5c5786(0x12e))/0x9*(parseInt(_0x5c5786(0x13a))/0xa);if(_0x4f54e1===_0x47e2a8)break;else _0x4b1c3d['push'](_0x4b1c3d['shift']());}catch(_0x39f3d0){_0x4b1c3d['push'](_0x4b1c3d['shift']());}}}(a268_0xa92a,0x97c81));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';export const workspaceRemoveDefinition={'service':a268_0xcf462d(0x134),'command':a268_0xcf462d(0x135),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a268_0xcf462d(0x139),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x18917f=>validateAppName(_0x18917f,a268_0xcf462d(0x136)),'execute':_0x24f074=>runAppRemove(_0x24f074,a268_0xcf462d(0x136))};
1
+ function a268_0x4095(_0x1cfe61,_0x86b001){_0x1cfe61=_0x1cfe61-0x91;const _0x268504=a268_0x2685();let _0x4095ca=_0x268504[_0x1cfe61];return _0x4095ca;}const a268_0x38b3a6=a268_0x4095;(function(_0x324038,_0x5ca3d4){const _0x22f4ca=a268_0x4095,_0x231374=_0x324038();while(!![]){try{const _0xf9ffdc=-parseInt(_0x22f4ca(0x94))/0x1*(parseInt(_0x22f4ca(0x99))/0x2)+-parseInt(_0x22f4ca(0x9e))/0x3*(-parseInt(_0x22f4ca(0x92))/0x4)+-parseInt(_0x22f4ca(0x9d))/0x5*(-parseInt(_0x22f4ca(0x98))/0x6)+-parseInt(_0x22f4ca(0x9f))/0x7*(parseInt(_0x22f4ca(0x96))/0x8)+parseInt(_0x22f4ca(0x95))/0x9*(parseInt(_0x22f4ca(0x93))/0xa)+parseInt(_0x22f4ca(0x9c))/0xb*(-parseInt(_0x22f4ca(0x9b))/0xc)+-parseInt(_0x22f4ca(0x9a))/0xd;if(_0xf9ffdc===_0x5ca3d4)break;else _0x231374['push'](_0x231374['shift']());}catch(_0x5b8dda){_0x231374['push'](_0x231374['shift']());}}}(a268_0x2685,0xe6ba6));import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a268_0x2685(){const _0x307525=['444HRzBaD','4125bXeifg','5vPOHgr','130545CfbpHH','177793eVezEp','workspace','remove','100eaaYvU','937870GfplIw','3181DKGUTV','81kwbieW','136ovkkBS','workspace\x20remove','6940842yjZdWW','24DvFSfX','21578349bdACxW'];a268_0x2685=function(){return _0x307525;};return a268_0x2685();}export const workspaceRemoveDefinition={'service':a268_0x38b3a6(0xa0),'command':a268_0x38b3a6(0x91),'description':'Remove\x20an\x20app\x20profile\x20from\x20the\x20current\x20workspace\x20(or\x20--global)','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':'App\x20profile\x20name\x20to\x20remove','required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x3dfb89=>validateAppName(_0x3dfb89,'workspace\x20remove'),'execute':_0x483d8d=>runAppRemove(_0x483d8d,a268_0x38b3a6(0x97))};
@@ -1 +1 @@
1
- const a269_0x199a0d=a269_0x2c00;(function(_0x56b236,_0x8b71d1){const _0x2ffe9d=a269_0x2c00,_0x5bba03=_0x56b236();while(!![]){try{const _0x3205e7=-parseInt(_0x2ffe9d(0x1f9))/0x1+parseInt(_0x2ffe9d(0x1f2))/0x2*(parseInt(_0x2ffe9d(0x1c8))/0x3)+-parseInt(_0x2ffe9d(0x1fd))/0x4*(-parseInt(_0x2ffe9d(0x1e6))/0x5)+parseInt(_0x2ffe9d(0x1d1))/0x6*(parseInt(_0x2ffe9d(0x1f6))/0x7)+-parseInt(_0x2ffe9d(0x1e7))/0x8*(parseInt(_0x2ffe9d(0x1f7))/0x9)+-parseInt(_0x2ffe9d(0x1d3))/0xa*(parseInt(_0x2ffe9d(0x1c4))/0xb)+parseInt(_0x2ffe9d(0x1d9))/0xc*(parseInt(_0x2ffe9d(0x1ec))/0xd);if(_0x3205e7===_0x8b71d1)break;else _0x5bba03['push'](_0x5bba03['shift']());}catch(_0x4c08ad){_0x5bba03['push'](_0x5bba03['shift']());}}}(a269_0x3d95,0x7f958));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=['userDomain',a269_0x199a0d(0x1e5),'runtimeDomain',a269_0x199a0d(0x1de),a269_0x199a0d(0x1c0),a269_0x199a0d(0x1d8),a269_0x199a0d(0x1ef),'localDomain',a269_0x199a0d(0x1dc)];const DOMAIN_FLAGS={'userDomain':'user-domain','apiDomain':a269_0x199a0d(0x1cb),'runtimeDomain':'runtime-domain','skillDomain':'skill-domain','kbDomain':a269_0x199a0d(0x1d6),'kbServiceDomain':a269_0x199a0d(0x1b0),'appDomain':a269_0x199a0d(0x1e9),'localDomain':a269_0x199a0d(0x1dd),'certificateDomain':a269_0x199a0d(0x1b1)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x199a0d(0x1bd),a269_0x199a0d(0x1f8),a269_0x199a0d(0x1e2)];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':'userDomain','apiDomain':a269_0x199a0d(0x1e5),'runtimeDomain':'runtimeDomain','skillDomain':a269_0x199a0d(0x1de),'kbDomain':a269_0x199a0d(0x1c0),'kbServiceDomain':'kbServiceDomain','appDomain':'appDomain','localDomain':'localDomain','certificateDomain':'certificateDomain'},ROUTING_CONSUMER=a269_0x199a0d(0x1f4);function a269_0x3d95(){const _0x572707=['filter','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.','\x20without\x20credentials,\x20query,\x20or\x20fragment.','includes','kb-service-domain','certificate-domain','Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.','protocol','parse','trim','username','\x22\x20is\x20not\x20a\x20valid\x20URL.','search','Invalid\x20domain\x20config\x20JSON:\x20','Invalid\x20','join','Unsupported\x20enterprise\x20CDN\x20field(s):\x20','agentDomain','str','replace','kbDomain','domains','validation','Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','11XAKbls','Allowed\x20fields:\x20','Domain\x20config\x20file\x20not\x20found:\x20','hash','17631jiWoAy','string','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','api-domain',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','enterprise-v1','https:','\x20and\x20has\x20no\x20default.','length','804KcdPtm','localDomain','7729330DtUDcH','Enterprise\x20','keys','kb-domain','base\x20URL','kbServiceDomain','7923324KkBozQ','legacy','kind','certificateDomain','local-domain','skillDomain','domain-config','default','lovrabet','skillHubDomain','For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','apiDomain','37535ULxolS','64GBfcIQ','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','app-domain','mode',':\x20expected\x20an\x20HTTPS\x20','13HABPMG','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20','password','appDomain','pathname','Invalid\x20cdn.','282dslgXD','origin','rabetbase-cli','isArray','18004xIrDHR','890163UXHxhk','platformDomain','159694UYArUw','object','cdn','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','220mGZnKY'];a269_0x3d95=function(){return _0x572707;};return a269_0x3d95();}function a269_0x2c00(_0x3dd82f,_0x16bf87){_0x3dd82f=_0x3dd82f-0x1b0;const _0x3d9591=a269_0x3d95();let _0x2c00a6=_0x3d9591[_0x3dd82f];return _0x2c00a6;}export function normalizeDomainOrigin(_0x57c262,_0x10bd5d){const _0x3ed1ea=a269_0x199a0d;if(typeof _0x10bd5d!==_0x3ed1ea(0x1c9)||!_0x10bd5d[_0x3ed1ea(0x1b5)]())throw CliErrors[_0x3ed1ea(0x1c2)](_0x3ed1ea(0x1ba)+_0x57c262+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x45114d;try{_0x45114d=new URL(_0x10bd5d[_0x3ed1ea(0x1b5)]());}catch{throw CliErrors['validation'](_0x3ed1ea(0x1ba)+_0x57c262+':\x20\x22'+_0x10bd5d+_0x3ed1ea(0x1b7));}if(_0x45114d['protocol']!==_0x3ed1ea(0x1ce)||_0x45114d[_0x3ed1ea(0x1b6)]||_0x45114d['password']||_0x45114d[_0x3ed1ea(0x1f0)]!=='/'&&_0x45114d[_0x3ed1ea(0x1f0)]!==''||_0x45114d[_0x3ed1ea(0x1b8)]||_0x45114d[_0x3ed1ea(0x1c7)])throw CliErrors['validation'](_0x3ed1ea(0x1ba)+_0x57c262+':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.',_0x3ed1ea(0x1e3));return _0x45114d[_0x3ed1ea(0x1f3)];}export function normalizeRoutingDomainValue(_0x2522ca,_0x1853bd){const _0x1c6bc1=a269_0x199a0d;if(typeof _0x1853bd==='string')return normalizeDomainOrigin(_0x2522ca,_0x1853bd);if(!_0x1853bd||typeof _0x1853bd!=='object'||Array['isArray'](_0x1853bd))throw CliErrors['validation'](_0x1c6bc1(0x1ba)+_0x2522ca+_0x1c6bc1(0x1cc));const _0x9fba59=_0x1853bd,_0x296085=_0x9fba59[ROUTING_CONSUMER]??_0x9fba59[_0x1c6bc1(0x1e0)];if(_0x296085===undefined)throw CliErrors[_0x1c6bc1(0x1c2)](_0x1c6bc1(0x1d4)+_0x2522ca+_0x1c6bc1(0x1fc)+ROUTING_CONSUMER+_0x1c6bc1(0x1cf));return normalizeDomainOrigin(_0x2522ca,_0x296085);}export function normalizeCdnBaseUrl(_0x5bf4e1,_0xa7737e){const _0x272613=a269_0x199a0d;if(typeof _0xa7737e!==_0x272613(0x1c9)||!_0xa7737e['trim']())throw CliErrors[_0x272613(0x1c2)](_0x272613(0x1f1)+_0x5bf4e1+':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.');const _0x85f437=_0xa7737e[_0x272613(0x1b5)]()[_0x272613(0x1bf)](/\/$/,'');let _0x20668d;try{_0x20668d=new URL(_0x85f437);}catch{throw CliErrors['validation'](_0x272613(0x1f1)+_0x5bf4e1+':\x20\x22'+_0xa7737e+_0x272613(0x1b7));}if(_0x20668d[_0x272613(0x1b3)]!=='https:'||_0x20668d[_0x272613(0x1b6)]||_0x20668d[_0x272613(0x1ee)]||_0x20668d[_0x272613(0x1b8)]||_0x20668d[_0x272613(0x1c7)]||_0x20668d['href'][_0x272613(0x1bf)](/\/$/,'')!==_0x85f437||_0x5bf4e1===_0x272613(0x1e1)&&_0x20668d[_0x272613(0x1f3)]!==_0x85f437)throw CliErrors[_0x272613(0x1c2)](_0x272613(0x1f1)+_0x5bf4e1+_0x272613(0x1eb)+(_0x5bf4e1===_0x272613(0x1e1)?_0x272613(0x1f3):_0x272613(0x1d7))+_0x272613(0x200));return _0x85f437;}export function resolveEnterpriseRoutingConfig(_0xba0ca2){return resolveEnterpriseRoutingManifest(_0xba0ca2)?.['domains'];}export function resolveEnterpriseRoutingManifest(_0x38bebf){const _0x4b1a0f=a269_0x199a0d;if(_0x38bebf===undefined)return undefined;if(!_0x38bebf||typeof _0x38bebf!==_0x4b1a0f(0x1fa)||Array['isArray'](_0x38bebf))throw CliErrors[_0x4b1a0f(0x1c2)]('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x38bebf);}export function readDomainConfigInput(_0x76824f){const _0x587fbd=a269_0x199a0d,_0x2a8bf9=isAbsolute(_0x76824f)?_0x76824f:resolve(process['cwd'](),_0x76824f);if(!existsSync(_0x2a8bf9))throw CliErrors['validation'](_0x587fbd(0x1c6)+_0x2a8bf9);let _0x5eeafe;try{_0x5eeafe=JSON[_0x587fbd(0x1b4)](readFileSync(_0x2a8bf9,'utf8'));}catch{throw CliErrors[_0x587fbd(0x1c2)](_0x587fbd(0x1b9)+_0x2a8bf9);}if(!_0x5eeafe||typeof _0x5eeafe!=='object'||Array[_0x587fbd(0x1f5)](_0x5eeafe))throw CliErrors[_0x587fbd(0x1c2)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x57ecc7=_0x5eeafe;if(_0x587fbd(0x1b3)in _0x57ecc7)return parseEnterpriseRoutingManifest(_0x57ecc7);const _0x3de89d=Object[_0x587fbd(0x1d5)](_0x57ecc7)[_0x587fbd(0x1fe)](_0x35b621=>!DOMAIN_CONFIG_FIELDS[_0x587fbd(0x201)](_0x35b621));if(_0x3de89d[_0x587fbd(0x1d0)]>0x0)throw CliErrors[_0x587fbd(0x1c2)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x3de89d[_0x587fbd(0x1bb)](',\x20'),_0x587fbd(0x1c5)+DOMAIN_CONFIG_FIELDS[_0x587fbd(0x1bb)](',\x20'));const _0x275158={};for(const _0x3154ce of DOMAIN_CONFIG_FIELDS){_0x57ecc7[_0x3154ce]!==undefined&&(_0x275158[_0x3154ce]=normalizeDomainOrigin(_0x3154ce,_0x57ecc7[_0x3154ce]));}if(Object[_0x587fbd(0x1d5)](_0x275158)[_0x587fbd(0x1d0)]===0x0)throw CliErrors[_0x587fbd(0x1c2)](_0x587fbd(0x1b2));return{'mode':_0x587fbd(0x1da),'domains':_0x275158};}export function readDomainConfig(_0x101b31){return readDomainConfigInput(_0x101b31)['domains'];}export function resolveDomainConfigInput(_0x494e98){const _0x1cb457=a269_0x199a0d,_0x3f84fa=(_0x494e98[_0x1cb457(0x1be)](_0x1cb457(0x1df))||'')[_0x1cb457(0x1b5)](),_0x2658b3=_0x3f84fa?readDomainConfigInput(_0x3f84fa):{'mode':'legacy','domains':{}},_0x57e2b5=DOMAIN_CONFIG_FIELDS[_0x1cb457(0x1fe)](_0x37f18d=>Boolean((_0x494e98[_0x1cb457(0x1be)](DOMAIN_FLAGS[_0x37f18d])||'')[_0x1cb457(0x1b5)]()));if(_0x2658b3[_0x1cb457(0x1ea)]==='enterprise-v1'&&_0x57e2b5['length']>0x0)throw CliErrors[_0x1cb457(0x1c2)](_0x1cb457(0x1ff),_0x1cb457(0x1e8));for(const _0x6534e7 of DOMAIN_CONFIG_FIELDS){const _0x52d80f=(_0x494e98[_0x1cb457(0x1be)](DOMAIN_FLAGS[_0x6534e7])||'')['trim']();if(_0x52d80f)_0x2658b3['domains'][_0x6534e7]=normalizeDomainOrigin(_0x6534e7,_0x52d80f);}return _0x2658b3;}export function resolveDomainFlags(_0x495879){const _0x10a731=a269_0x199a0d;return resolveDomainConfigInput(_0x495879)[_0x10a731(0x1c1)];}export function parseEnterpriseRoutingManifest(_0x251dd9){const _0x57375f=a269_0x199a0d;if(_0x251dd9[_0x57375f(0x1b3)]!==ENTERPRISE_ROUTING_PROTOCOL||_0x251dd9[_0x57375f(0x1db)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x57375f(0x1c2)]('Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22'+ENTERPRISE_ROUTING_PROTOCOL+'\x22\x20and\x20kind\x20\x22'+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0x251dd9['domains']||typeof _0x251dd9[_0x57375f(0x1c1)]!==_0x57375f(0x1fa)||Array[_0x57375f(0x1f5)](_0x251dd9[_0x57375f(0x1c1)]))throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1e4));if(!_0x251dd9[_0x57375f(0x1fb)]||typeof _0x251dd9[_0x57375f(0x1fb)]!==_0x57375f(0x1fa)||Array[_0x57375f(0x1f5)](_0x251dd9[_0x57375f(0x1fb)]))throw CliErrors[_0x57375f(0x1c2)]('Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.');const _0x42125b=_0x251dd9[_0x57375f(0x1c1)],_0x142471=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x57375f(0x1fe)](_0x4376e6=>_0x42125b[_0x4376e6]===undefined);if(_0x142471[_0x57375f(0x1d0)]>0x0)throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1ed)+_0x142471[_0x57375f(0x1bb)](',\x20'));if(_0x42125b[_0x57375f(0x1d2)]===undefined!==(_0x42125b[_0x57375f(0x1dc)]===undefined))throw CliErrors['validation'](_0x57375f(0x1c3));const _0x516f55=_0x251dd9[_0x57375f(0x1fb)],_0x1eec28=Object['keys'](_0x516f55)[_0x57375f(0x1fe)](_0x121981=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x201)](_0x121981));if(_0x1eec28[_0x57375f(0x1d0)]>0x0)throw CliErrors['validation'](_0x57375f(0x1bc)+_0x1eec28[_0x57375f(0x1bb)](',\x20'),_0x57375f(0x1c5)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x1bb)](',\x20'));const _0x1302b7=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x57375f(0x1fe)](_0xc98670=>_0x516f55[_0xc98670]===undefined);if(_0x1302b7[_0x57375f(0x1d0)]>0x0)throw CliErrors[_0x57375f(0x1c2)](_0x57375f(0x1ca)+_0x1302b7[_0x57375f(0x1bb)](',\x20'));const _0x23a9fe={};for(const _0x55ec0f of ENTERPRISE_ROUTING_CDN_FIELDS){_0x23a9fe[_0x55ec0f]=normalizeCdnBaseUrl(_0x55ec0f,_0x516f55[_0x55ec0f]);}const _0x1e4b14={},_0x1ebf29={};for(const _0x1773a3 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x886d5=_0x42125b[_0x1773a3];if(_0x886d5===undefined)continue;const _0x28a83b=normalizeRoutingDomainValue(_0x1773a3,_0x886d5);_0x1e4b14[_0x1773a3]=_0x28a83b;const _0x21b59a=ENTERPRISE_TO_LOCAL_FIELD[_0x1773a3];_0x21b59a&&(_0x1ebf29[_0x21b59a]=_0x28a83b);}return{'mode':_0x57375f(0x1cd),'domains':_0x1ebf29,'manifestDomains':_0x1e4b14,'cdn':_0x23a9fe};}
1
+ const a269_0x1fe0c5=a269_0x5632;(function(_0x2fbf69,_0x59ca84){const _0x44f568=a269_0x5632,_0x1d7c08=_0x2fbf69();while(!![]){try{const _0x3c1b13=parseInt(_0x44f568(0xc2))/0x1+-parseInt(_0x44f568(0xf7))/0x2*(-parseInt(_0x44f568(0xe6))/0x3)+-parseInt(_0x44f568(0xb4))/0x4*(parseInt(_0x44f568(0xee))/0x5)+-parseInt(_0x44f568(0xb6))/0x6*(-parseInt(_0x44f568(0xe2))/0x7)+parseInt(_0x44f568(0xd2))/0x8+-parseInt(_0x44f568(0xc9))/0x9+parseInt(_0x44f568(0xb9))/0xa*(-parseInt(_0x44f568(0x100))/0xb);if(_0x3c1b13===_0x59ca84)break;else _0x1d7c08['push'](_0x1d7c08['shift']());}catch(_0x4481d2){_0x1d7c08['push'](_0x1d7c08['shift']());}}}(a269_0x48ce,0x23142));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=['userDomain',a269_0x1fe0c5(0xe1),a269_0x1fe0c5(0xd5),'skillDomain',a269_0x1fe0c5(0xfe),a269_0x1fe0c5(0xd0),'appDomain',a269_0x1fe0c5(0xda),a269_0x1fe0c5(0xd3)];const DOMAIN_FLAGS={'userDomain':a269_0x1fe0c5(0xe3),'apiDomain':a269_0x1fe0c5(0xc1),'runtimeDomain':a269_0x1fe0c5(0xec),'skillDomain':'skill-domain','kbDomain':a269_0x1fe0c5(0xf0),'kbServiceDomain':a269_0x1fe0c5(0xc5),'appDomain':a269_0x1fe0c5(0xb7),'localDomain':a269_0x1fe0c5(0xdd),'certificateDomain':a269_0x1fe0c5(0xbd)};export const LEGACY_DOMAIN_CONFIG_FIELDS=[a269_0x1fe0c5(0xb3),a269_0x1fe0c5(0xbf),'skillHubDomain'];const ENTERPRISE_TO_LOCAL_FIELD={'userDomain':a269_0x1fe0c5(0xfb),'apiDomain':'apiDomain','runtimeDomain':a269_0x1fe0c5(0xd5),'skillDomain':a269_0x1fe0c5(0xe4),'kbDomain':a269_0x1fe0c5(0xfe),'kbServiceDomain':'kbServiceDomain','appDomain':'appDomain','localDomain':a269_0x1fe0c5(0xda),'certificateDomain':a269_0x1fe0c5(0xd3)},ROUTING_CONSUMER=a269_0x1fe0c5(0xdf);export function normalizeDomainOrigin(_0x2587c0,_0x30c6e4){const _0xef4227=a269_0x1fe0c5;if(typeof _0x30c6e4!==_0xef4227(0xfd)||!_0x30c6e4[_0xef4227(0xde)]())throw CliErrors[_0xef4227(0xf8)](_0xef4227(0xfc)+_0x2587c0+':\x20expected\x20a\x20non-empty\x20HTTPS\x20origin.');let _0x3a6957;try{_0x3a6957=new URL(_0x30c6e4[_0xef4227(0xde)]());}catch{throw CliErrors[_0xef4227(0xf8)](_0xef4227(0xfc)+_0x2587c0+':\x20\x22'+_0x30c6e4+_0xef4227(0xcf));}if(_0x3a6957[_0xef4227(0xf5)]!==_0xef4227(0xce)||_0x3a6957[_0xef4227(0x102)]||_0x3a6957['password']||_0x3a6957[_0xef4227(0x104)]!=='/'&&_0x3a6957[_0xef4227(0x104)]!==''||_0x3a6957[_0xef4227(0xf1)]||_0x3a6957['hash'])throw CliErrors[_0xef4227(0xf8)](_0xef4227(0xfc)+_0x2587c0+_0xef4227(0xcb),_0xef4227(0xc7));return _0x3a6957[_0xef4227(0xf9)];}export function normalizeRoutingDomainValue(_0x246e34,_0x27a490){const _0x6c1d29=a269_0x1fe0c5;if(typeof _0x27a490===_0x6c1d29(0xfd))return normalizeDomainOrigin(_0x246e34,_0x27a490);if(!_0x27a490||typeof _0x27a490!==_0x6c1d29(0xdb)||Array[_0x6c1d29(0xef)](_0x27a490))throw CliErrors[_0x6c1d29(0xf8)]('Invalid\x20'+_0x246e34+_0x6c1d29(0xf3));const _0x3e39f5=_0x27a490,_0x3946ab=_0x3e39f5[ROUTING_CONSUMER]??_0x3e39f5[_0x6c1d29(0xea)];if(_0x3946ab===undefined)throw CliErrors['validation'](_0x6c1d29(0xfa)+_0x246e34+_0x6c1d29(0xdc)+ROUTING_CONSUMER+_0x6c1d29(0xe5));return normalizeDomainOrigin(_0x246e34,_0x3946ab);}export function normalizeCdnBaseUrl(_0x53fd1c,_0x431621){const _0x4b36a2=a269_0x1fe0c5;if(typeof _0x431621!==_0x4b36a2(0xfd)||!_0x431621[_0x4b36a2(0xde)]())throw CliErrors[_0x4b36a2(0xf8)](_0x4b36a2(0xff)+_0x53fd1c+_0x4b36a2(0xeb));const _0x4863d8=_0x431621[_0x4b36a2(0xde)]()['replace'](/\/$/,'');let _0x4c780e;try{_0x4c780e=new URL(_0x4863d8);}catch{throw CliErrors[_0x4b36a2(0xf8)](_0x4b36a2(0xff)+_0x53fd1c+_0x4b36a2(0xc0)+_0x431621+_0x4b36a2(0xcf));}if(_0x4c780e['protocol']!==_0x4b36a2(0xce)||_0x4c780e['username']||_0x4c780e['password']||_0x4c780e[_0x4b36a2(0xf1)]||_0x4c780e[_0x4b36a2(0xb2)]||_0x4c780e[_0x4b36a2(0xed)][_0x4b36a2(0xca)](/\/$/,'')!==_0x4863d8||_0x53fd1c===_0x4b36a2(0xba)&&_0x4c780e[_0x4b36a2(0xf9)]!==_0x4863d8)throw CliErrors['validation']('Invalid\x20cdn.'+_0x53fd1c+_0x4b36a2(0xf6)+(_0x53fd1c===_0x4b36a2(0xba)?_0x4b36a2(0xf9):_0x4b36a2(0xe0))+_0x4b36a2(0xcd));return _0x4863d8;}export function resolveEnterpriseRoutingConfig(_0xd2c2f0){const _0x15b7fd=a269_0x1fe0c5;return resolveEnterpriseRoutingManifest(_0xd2c2f0)?.[_0x15b7fd(0xbb)];}export function resolveEnterpriseRoutingManifest(_0x2660b2){if(_0x2660b2===undefined)return undefined;if(!_0x2660b2||typeof _0x2660b2!=='object'||Array['isArray'](_0x2660b2))throw CliErrors['validation']('Invalid\x20enterprise\x20routing\x20config:\x20expected\x20an\x20object.');return parseEnterpriseRoutingManifest(_0x2660b2);}function a269_0x48ce(){const _0x4e7b18=['For\x20internal\x20deployments,\x20terminate\x20TLS\x20at\x20the\x20ingress,\x20reverse\x20proxy,\x20or\x20load\x20balancer;\x20an\x20internal\x20CA\x20is\x20supported.','Unsupported\x20routing\x20manifest:\x20expected\x20protocol\x20\x22','2118258eoYkdZ','replace',':\x20expected\x20an\x20HTTPS\x20origin\x20without\x20credentials,\x20path,\x20query,\x20or\x20fragment.','enterprise-v1','\x20without\x20credentials,\x20query,\x20or\x20fragment.','https:','\x22\x20is\x20not\x20a\x20valid\x20URL.','kbServiceDomain','Allowed\x20fields:\x20','971696QSrHOe','certificateDomain','\x22\x20and\x20kind\x20\x22','runtimeDomain','filter','domain-config','parse','join','localDomain','object','\x20does\x20not\x20provide\x20a\x20Domain\x20for\x20','local-domain','trim','rabetbase-cli','base\x20URL','apiDomain','7LjcggM','user-domain','skillDomain','\x20and\x20has\x20no\x20default.','4899egtnod','Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20CDN\x20field(s):\x20','length','kind','default',':\x20expected\x20a\x20non-empty\x20HTTPS\x20URL.','runtime-domain','href','535zECaIh','isArray','kb-domain','search','Enterprise\x20routing\x20manifests\x20cannot\x20be\x20combined\x20with\x20individual\x20Domain\x20flags.',':\x20expected\x20an\x20HTTPS\x20origin\x20or\x20consumer\x20Domain\x20object.','Invalid\x20enterprise\x20routing\x20manifest:\x20cdn\x20must\x20be\x20an\x20object.','protocol',':\x20expected\x20an\x20HTTPS\x20','178nEhIYK','validation','origin','Enterprise\x20','userDomain','Invalid\x20','string','kbDomain','Invalid\x20cdn.','11lCBIyx','Update\x20the\x20manifest\x20so\x20both\x20CLIs\x20consume\x20the\x20same\x20routing\x20data.','username','cdn','pathname','hash','agentDomain','7988kRTGEZ','Invalid\x20enterprise\x20routing\x20manifest:\x20domains\x20must\x20be\x20an\x20object.','1468026rZvjTj','app-domain','Domain\x20config\x20file\x20not\x20found:\x20','1506910bDOdax','lovrabet','domains','keys','certificate-domain','str','platformDomain',':\x20\x22','api-domain','231944qgkOFF','includes','cwd','kb-service-domain','Unsupported\x20enterprise\x20CDN\x20field(s):\x20'];a269_0x48ce=function(){return _0x4e7b18;};return a269_0x48ce();}export function readDomainConfigInput(_0x174355){const _0x2dbafb=a269_0x1fe0c5,_0x125fbd=isAbsolute(_0x174355)?_0x174355:resolve(process[_0x2dbafb(0xc4)](),_0x174355);if(!existsSync(_0x125fbd))throw CliErrors[_0x2dbafb(0xf8)](_0x2dbafb(0xb8)+_0x125fbd);let _0x65dc06;try{_0x65dc06=JSON[_0x2dbafb(0xd8)](readFileSync(_0x125fbd,'utf8'));}catch{throw CliErrors['validation']('Invalid\x20domain\x20config\x20JSON:\x20'+_0x125fbd);}if(!_0x65dc06||typeof _0x65dc06!==_0x2dbafb(0xdb)||Array[_0x2dbafb(0xef)](_0x65dc06))throw CliErrors[_0x2dbafb(0xf8)]('Invalid\x20domain\x20config:\x20expected\x20a\x20JSON\x20object.');const _0x28297e=_0x65dc06;if(_0x2dbafb(0xf5)in _0x28297e)return parseEnterpriseRoutingManifest(_0x28297e);const _0x400d98=Object['keys'](_0x28297e)[_0x2dbafb(0xd6)](_0x3cb4b1=>!DOMAIN_CONFIG_FIELDS[_0x2dbafb(0xc3)](_0x3cb4b1));if(_0x400d98[_0x2dbafb(0xe8)]>0x0)throw CliErrors[_0x2dbafb(0xf8)]('Unsupported\x20domain\x20config\x20field(s):\x20'+_0x400d98[_0x2dbafb(0xd9)](',\x20'),_0x2dbafb(0xd1)+DOMAIN_CONFIG_FIELDS[_0x2dbafb(0xd9)](',\x20'));const _0x9c05e6={};for(const _0x46baa1 of DOMAIN_CONFIG_FIELDS){_0x28297e[_0x46baa1]!==undefined&&(_0x9c05e6[_0x46baa1]=normalizeDomainOrigin(_0x46baa1,_0x28297e[_0x46baa1]));}if(Object[_0x2dbafb(0xbc)](_0x9c05e6)['length']===0x0)throw CliErrors['validation']('Invalid\x20domain\x20config:\x20provide\x20at\x20least\x20one\x20supported\x20Domain.');return{'mode':'legacy','domains':_0x9c05e6};}export function readDomainConfig(_0x33856b){const _0x54eb18=a269_0x1fe0c5;return readDomainConfigInput(_0x33856b)[_0x54eb18(0xbb)];}export function resolveDomainConfigInput(_0x5483ee){const _0x43f389=a269_0x1fe0c5,_0x2685aa=(_0x5483ee[_0x43f389(0xbe)](_0x43f389(0xd7))||'')['trim'](),_0x4103be=_0x2685aa?readDomainConfigInput(_0x2685aa):{'mode':'legacy','domains':{}},_0x4fdd15=DOMAIN_CONFIG_FIELDS[_0x43f389(0xd6)](_0x383777=>Boolean((_0x5483ee[_0x43f389(0xbe)](DOMAIN_FLAGS[_0x383777])||'')[_0x43f389(0xde)]()));if(_0x4103be['mode']===_0x43f389(0xcc)&&_0x4fdd15[_0x43f389(0xe8)]>0x0)throw CliErrors['validation'](_0x43f389(0xf2),_0x43f389(0x101));for(const _0x16b335 of DOMAIN_CONFIG_FIELDS){const _0x3c2ee0=(_0x5483ee[_0x43f389(0xbe)](DOMAIN_FLAGS[_0x16b335])||'')[_0x43f389(0xde)]();if(_0x3c2ee0)_0x4103be[_0x43f389(0xbb)][_0x16b335]=normalizeDomainOrigin(_0x16b335,_0x3c2ee0);}return _0x4103be;}function a269_0x5632(_0xd1b68f,_0x41d9f2){_0xd1b68f=_0xd1b68f-0xb2;const _0x48cec0=a269_0x48ce();let _0x563216=_0x48cec0[_0xd1b68f];return _0x563216;}export function resolveDomainFlags(_0x1b6492){const _0x4b4960=a269_0x1fe0c5;return resolveDomainConfigInput(_0x1b6492)[_0x4b4960(0xbb)];}export function parseEnterpriseRoutingManifest(_0xd02da5){const _0x1413d8=a269_0x1fe0c5;if(_0xd02da5[_0x1413d8(0xf5)]!==ENTERPRISE_ROUTING_PROTOCOL||_0xd02da5[_0x1413d8(0xe9)]!==ENTERPRISE_ROUTING_KIND)throw CliErrors[_0x1413d8(0xf8)](_0x1413d8(0xc8)+ENTERPRISE_ROUTING_PROTOCOL+_0x1413d8(0xd4)+ENTERPRISE_ROUTING_KIND+'\x22.');if(!_0xd02da5[_0x1413d8(0xbb)]||typeof _0xd02da5[_0x1413d8(0xbb)]!==_0x1413d8(0xdb)||Array[_0x1413d8(0xef)](_0xd02da5[_0x1413d8(0xbb)]))throw CliErrors['validation'](_0x1413d8(0xb5));if(!_0xd02da5[_0x1413d8(0x103)]||typeof _0xd02da5[_0x1413d8(0x103)]!==_0x1413d8(0xdb)||Array[_0x1413d8(0xef)](_0xd02da5[_0x1413d8(0x103)]))throw CliErrors[_0x1413d8(0xf8)](_0x1413d8(0xf4));const _0x120cfa=_0xd02da5[_0x1413d8(0xbb)],_0x42dda3=REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS[_0x1413d8(0xd6)](_0x31f1bb=>_0x120cfa[_0x31f1bb]===undefined);if(_0x42dda3[_0x1413d8(0xe8)]>0x0)throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20is\x20missing\x20required\x20Domain(s):\x20'+_0x42dda3[_0x1413d8(0xd9)](',\x20'));if(_0x120cfa['localDomain']===undefined!==(_0x120cfa[_0x1413d8(0xd3)]===undefined))throw CliErrors['validation']('Enterprise\x20routing\x20manifest\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');const _0x468914=_0xd02da5[_0x1413d8(0x103)],_0x1c5042=Object['keys'](_0x468914)['filter'](_0x26c2d6=>!ENTERPRISE_ROUTING_CDN_FIELDS[_0x1413d8(0xc3)](_0x26c2d6));if(_0x1c5042[_0x1413d8(0xe8)]>0x0)throw CliErrors[_0x1413d8(0xf8)](_0x1413d8(0xc6)+_0x1c5042['join'](',\x20'),_0x1413d8(0xd1)+ENTERPRISE_ROUTING_CDN_FIELDS[_0x1413d8(0xd9)](',\x20'));const _0x2ca437=REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS[_0x1413d8(0xd6)](_0x4e3f9e=>_0x468914[_0x4e3f9e]===undefined);if(_0x2ca437[_0x1413d8(0xe8)]>0x0)throw CliErrors['validation'](_0x1413d8(0xe7)+_0x2ca437[_0x1413d8(0xd9)](',\x20'));const _0x326775={};for(const _0x177be1 of ENTERPRISE_ROUTING_CDN_FIELDS){_0x326775[_0x177be1]=normalizeCdnBaseUrl(_0x177be1,_0x468914[_0x177be1]);}const _0x14d19c={},_0x17a081={};for(const _0x1a6514 of ENTERPRISE_ROUTING_DOMAIN_FIELDS){const _0x3dd9b8=_0x120cfa[_0x1a6514];if(_0x3dd9b8===undefined)continue;const _0xbc0517=normalizeRoutingDomainValue(_0x1a6514,_0x3dd9b8);_0x14d19c[_0x1a6514]=_0xbc0517;const _0xeda69b=ENTERPRISE_TO_LOCAL_FIELD[_0x1a6514];_0xeda69b&&(_0x17a081[_0xeda69b]=_0xbc0517);}return{'mode':'enterprise-v1','domains':_0x17a081,'manifestDomains':_0x14d19c,'cdn':_0x326775};}
@@ -1 +1 @@
1
- const a270_0x17c26b=a270_0x1640;(function(_0x143fbb,_0x3726e0){const _0x43aace=a270_0x1640,_0x3a324c=_0x143fbb();while(!![]){try{const _0x435203=-parseInt(_0x43aace(0x1f5))/0x1+parseInt(_0x43aace(0x1f6))/0x2*(parseInt(_0x43aace(0x1f3))/0x3)+parseInt(_0x43aace(0x1ed))/0x4+-parseInt(_0x43aace(0x1f1))/0x5+-parseInt(_0x43aace(0x1ea))/0x6+parseInt(_0x43aace(0x1f2))/0x7+parseInt(_0x43aace(0x1ec))/0x8*(parseInt(_0x43aace(0x1e4))/0x9);if(_0x435203===_0x3726e0)break;else _0x3a324c['push'](_0x3a324c['shift']());}catch(_0x1711b1){_0x3a324c['push'](_0x3a324c['shift']());}}}(a270_0x24c1,0xa5d9f));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';function a270_0x1640(_0x12712f,_0x334cf0){_0x12712f=_0x12712f-0x1e4;const _0x24c1cb=a270_0x24c1();let _0x164008=_0x24c1cb[_0x12712f];return _0x164008;}export const PROJECT_DOMAIN_ROUTING_FILE_NAME=a270_0x17c26b(0x1f0);export const PROJECT_DOMAIN_ROUTING_PROTOCOL='lovrabet-project-domain-routing/v1';function a270_0x24c1(){const _0x4e06c7=['15883288BAsnsv','1259036hEZfis','independent','utf8','rabetbase.domain-routing.json','4221880BQYFgC','2505643UvEtqs','76710rNBxgE','official','1317616MLXukI','16wcMHXa','pid','9JwokNe','local','/cert/lovrabet-dev.json','Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.','http://localhost','stringify','128160WlRgFX','lovrabet'];a270_0x24c1=function(){return _0x4e06c7;};return a270_0x24c1();}export function getProjectDomainRoutingManifest(){const _0xec3473=a270_0x17c26b,_0x531f9d=getActiveRegion(),_0x1794c0=isIndependentDeployment(),_0x172cef=getOfficialRoutingProfile(_0x531f9d),_0x219703=getLocalDomain(),_0x4e02cb=getCertificateDomain(),_0x2a8576=getActiveCdn();if(!!_0x219703!==!!_0x4e02cb)throw new Error(_0xec3473(0x1e7));return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x1794c0?_0xec3473(0x1ee):_0xec3473(0x1f4),'region':_0x1794c0?null:_0x531f9d,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x2a8576,'local':_0x219703&&_0x4e02cb?{'origin':_0x219703,'certificateUrl':_0x4e02cb+_0xec3473(0x1e6)}:_0x1794c0?{'origin':_0xec3473(0x1e8)}:{'origin':_0x172cef[_0xec3473(0x1e5)]['origin'],'certificateUrl':_0x2a8576[_0xec3473(0x1eb)]+_0xec3473(0x1e6)}};}export function writeProjectDomainRoutingManifest(_0x353978){const _0xba75a=a270_0x17c26b,_0x2ee88f=getProjectDomainRoutingManifest(),_0x5736b1=join(_0x353978,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x544622=JSON[_0xba75a(0x1e9)](_0x2ee88f,null,0x2)+'\x0a';try{if(readFileSync(_0x5736b1,_0xba75a(0x1ef))===_0x544622)return{'path':_0x5736b1,'manifest':_0x2ee88f,'changed':![]};}catch{}const _0x46e327=_0x5736b1+'.'+process[_0xba75a(0x1f7)]+'.'+Date['now']()+'.tmp';try{writeFileSync(_0x46e327,_0x544622,{'encoding':_0xba75a(0x1ef),'mode':0x1a4}),renameSync(_0x46e327,_0x5736b1);}catch(_0xfb6f0e){try{unlinkSync(_0x46e327);}catch{}throw _0xfb6f0e;}return{'path':_0x5736b1,'manifest':_0x2ee88f,'changed':!![]};}
1
+ const a270_0x13e756=a270_0x1801;function a270_0x3c44(){const _0x354e9f=['independent','origin','4231FLVlVe','218935AMKmpD','2584304slzBIK','232keYXnY','utf8','8QhrPCJ','/cert/lovrabet-dev.json','stringify','9ChqsPu','pid','lovrabet-project-domain-routing/v1','2364710TIgYqx','72228HjAqZk','lovrabet','http://localhost','4069410KItzsE','now','local','rabetbase.domain-routing.json','1188JLqEJM','3183866xOqFlN','6ZLazLZ','official'];a270_0x3c44=function(){return _0x354e9f;};return a270_0x3c44();}function a270_0x1801(_0x2b118d,_0x114e24){_0x2b118d=_0x2b118d-0x1f2;const _0x3c4456=a270_0x3c44();let _0x180154=_0x3c4456[_0x2b118d];return _0x180154;}(function(_0x526bd4,_0x178eb5){const _0x4a4cf2=a270_0x1801,_0x1df0cf=_0x526bd4();while(!![]){try{const _0x40e586=-parseInt(_0x4a4cf2(0x1fe))/0x1*(-parseInt(_0x4a4cf2(0x201))/0x2)+parseInt(_0x4a4cf2(0x1f4))/0x3+parseInt(_0x4a4cf2(0x203))/0x4*(-parseInt(_0x4a4cf2(0x1ff))/0x5)+parseInt(_0x4a4cf2(0x1fa))/0x6*(-parseInt(_0x4a4cf2(0x1f9))/0x7)+parseInt(_0x4a4cf2(0x200))/0x8+parseInt(_0x4a4cf2(0x206))/0x9*(-parseInt(_0x4a4cf2(0x209))/0xa)+parseInt(_0x4a4cf2(0x1f8))/0xb*(-parseInt(_0x4a4cf2(0x20a))/0xc);if(_0x40e586===_0x178eb5)break;else _0x1df0cf['push'](_0x1df0cf['shift']());}catch(_0x10260d){_0x1df0cf['push'](_0x1df0cf['shift']());}}}(a270_0x3c44,0xb4ff9));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_0x13e756(0x1f7);export const PROJECT_DOMAIN_ROUTING_PROTOCOL=a270_0x13e756(0x208);export function getProjectDomainRoutingManifest(){const _0x512d41=a270_0x13e756,_0xe78150=getActiveRegion(),_0x30d098=isIndependentDeployment(),_0x70d1d4=getOfficialRoutingProfile(_0xe78150),_0x2cc39e=getLocalDomain(),_0x4421c6=getCertificateDomain(),_0x5214b5=getActiveCdn();if(!!_0x2cc39e!==!!_0x4421c6)throw new Error('Independent\x20deployment\x20routing\x20requires\x20localDomain\x20and\x20certificateDomain\x20together.');return{'protocol':PROJECT_DOMAIN_ROUTING_PROTOCOL,'mode':_0x30d098?_0x512d41(0x1fc):_0x512d41(0x1fb),'region':_0x30d098?null:_0xe78150,'domains':{'api':getApiDomain(),'runtime':getRuntimeDomain(),'user':getUserDomain(),'app':getAppDomain(),'skill':getSkillDomain(),'kb':getKbDomain()},'cdn':_0x5214b5,'local':_0x2cc39e&&_0x4421c6?{'origin':_0x2cc39e,'certificateUrl':_0x4421c6+_0x512d41(0x204)}:_0x30d098?{'origin':_0x512d41(0x1f3)}:{'origin':_0x70d1d4[_0x512d41(0x1f6)][_0x512d41(0x1fd)],'certificateUrl':_0x5214b5[_0x512d41(0x1f2)]+_0x512d41(0x204)}};}export function writeProjectDomainRoutingManifest(_0x2c9797){const _0x41281a=a270_0x13e756,_0x51e5e2=getProjectDomainRoutingManifest(),_0x3db86a=join(_0x2c9797,PROJECT_DOMAIN_ROUTING_FILE_NAME),_0x4302b0=JSON[_0x41281a(0x205)](_0x51e5e2,null,0x2)+'\x0a';try{if(readFileSync(_0x3db86a,_0x41281a(0x202))===_0x4302b0)return{'path':_0x3db86a,'manifest':_0x51e5e2,'changed':![]};}catch{}const _0x43f053=_0x3db86a+'.'+process[_0x41281a(0x207)]+'.'+Date[_0x41281a(0x1f5)]()+'.tmp';try{writeFileSync(_0x43f053,_0x4302b0,{'encoding':_0x41281a(0x202),'mode':0x1a4}),renameSync(_0x43f053,_0x3db86a);}catch(_0x175cde){try{unlinkSync(_0x43f053);}catch{}throw _0x175cde;}return{'path':_0x3db86a,'manifest':_0x51e5e2,'changed':!![]};}