@lovrabet/rabetbase-cli 2.5.5 → 2.5.6

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 (398) hide show
  1. package/README.md +15 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.d.ts +1 -0
  78. package/lib/commands/dataset/design-context.js +1 -0
  79. package/lib/commands/dataset/design-start.d.ts +1 -0
  80. package/lib/commands/dataset/design-start.js +1 -0
  81. package/lib/commands/dataset/design-status.d.ts +1 -0
  82. package/lib/commands/dataset/design-status.js +1 -0
  83. package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
  84. package/lib/commands/dataset/design-sync-retry.js +1 -0
  85. package/lib/commands/dataset/design-sync-status.d.ts +1 -0
  86. package/lib/commands/dataset/design-sync-status.js +1 -0
  87. package/lib/commands/dataset/design-validate.d.ts +1 -0
  88. package/lib/commands/dataset/design-validate.js +1 -0
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/cross-db-analysis-shared.d.ts +40 -0
  113. package/lib/commands/db/cross-db-analysis-shared.js +1 -0
  114. package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
  115. package/lib/commands/db/cross-db-analyze-latest.js +1 -0
  116. package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
  117. package/lib/commands/db/cross-db-analyze-start.js +1 -0
  118. package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
  119. package/lib/commands/db/cross-db-analyze-status.js +1 -0
  120. package/lib/commands/db/delete.js +1 -1
  121. package/lib/commands/db/detail.js +1 -1
  122. package/lib/commands/db/diff-refresh-start.js +1 -1
  123. package/lib/commands/db/diff-refresh-status.js +1 -1
  124. package/lib/commands/db/diff.js +1 -1
  125. package/lib/commands/db/index.js +1 -1
  126. package/lib/commands/db/list.js +1 -1
  127. package/lib/commands/db/shared.js +1 -1
  128. package/lib/commands/db/table-diff-shared.js +1 -1
  129. package/lib/commands/db/tables.js +1 -1
  130. package/lib/commands/db/test.js +1 -1
  131. package/lib/commands/db/update.js +1 -1
  132. package/lib/commands/deployment/index.js +1 -1
  133. package/lib/commands/deployment/sync-all.js +1 -1
  134. package/lib/commands/deployment/sync-jobs.js +1 -1
  135. package/lib/commands/deployment/sync-status.js +1 -1
  136. package/lib/commands/doctor.js +1 -1
  137. package/lib/commands/file/index.js +1 -1
  138. package/lib/commands/flow/create.js +1 -1
  139. package/lib/commands/flow/detail.js +1 -1
  140. package/lib/commands/flow/index.js +1 -1
  141. package/lib/commands/flow/list.js +1 -1
  142. package/lib/commands/flow/publish.js +1 -1
  143. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  144. package/lib/commands/flow/runtime-role-list.js +1 -1
  145. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  146. package/lib/commands/flow/runtime-user-search.js +1 -1
  147. package/lib/commands/flow/shared.js +1 -1
  148. package/lib/commands/flow/update.js +1 -1
  149. package/lib/commands/flow/validate.js +1 -1
  150. package/lib/commands/instant-api-policy/current.js +1 -1
  151. package/lib/commands/instant-api-policy/index.js +1 -1
  152. package/lib/commands/instant-api-policy/init.js +1 -1
  153. package/lib/commands/instant-api-policy/publish.js +1 -1
  154. package/lib/commands/instant-api-policy/pull.js +1 -1
  155. package/lib/commands/instant-api-policy/revision.js +1 -1
  156. package/lib/commands/instant-api-policy/revisions.js +1 -1
  157. package/lib/commands/instant-api-policy/rollback.js +1 -1
  158. package/lib/commands/instant-api-policy/shared.js +1 -1
  159. package/lib/commands/instant-api-policy/validate.js +1 -1
  160. package/lib/commands/issue/index.js +1 -1
  161. package/lib/commands/issue/nudge.js +1 -1
  162. package/lib/commands/issue/report.js +1 -1
  163. package/lib/commands/issue/shared.js +1 -1
  164. package/lib/commands/kb/create.js +1 -1
  165. package/lib/commands/kb/delete.js +1 -1
  166. package/lib/commands/kb/detail.js +1 -1
  167. package/lib/commands/kb/index.js +1 -1
  168. package/lib/commands/kb/list.js +1 -1
  169. package/lib/commands/kb/search.js +1 -1
  170. package/lib/commands/kb/shared.js +1 -1
  171. package/lib/commands/kb/update.js +1 -1
  172. package/lib/commands/logs/index.js +1 -1
  173. package/lib/commands/menu/asset-update.js +1 -1
  174. package/lib/commands/menu/delete.js +1 -1
  175. package/lib/commands/menu/external-link-create.js +1 -1
  176. package/lib/commands/menu/external-link-update.js +1 -1
  177. package/lib/commands/menu/group-create.js +1 -1
  178. package/lib/commands/menu/group-update.js +1 -1
  179. package/lib/commands/menu/index.js +1 -1
  180. package/lib/commands/menu/list.js +1 -1
  181. package/lib/commands/menu/move.js +1 -1
  182. package/lib/commands/menu/regroup-start.js +1 -1
  183. package/lib/commands/menu/rename.js +1 -1
  184. package/lib/commands/menu/shared/compare-table.js +1 -1
  185. package/lib/commands/menu/shared/delete-plan.js +1 -1
  186. package/lib/commands/menu/shared/facts.js +1 -1
  187. package/lib/commands/menu/shared/index.js +1 -1
  188. package/lib/commands/menu/shared/inquirer.js +1 -1
  189. package/lib/commands/menu/shared/local-pages.js +1 -1
  190. package/lib/commands/menu/shared/logic.js +1 -1
  191. package/lib/commands/menu/shared/mutations.js +1 -1
  192. package/lib/commands/menu/shared/path.js +1 -1
  193. package/lib/commands/menu/shared/service.js +1 -1
  194. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  195. package/lib/commands/menu/shared/sync-core.js +1 -1
  196. package/lib/commands/menu/shared/update-core.js +1 -1
  197. package/lib/commands/menu/shared/valid-url.js +1 -1
  198. package/lib/commands/menu/subapp-assets-status.js +1 -1
  199. package/lib/commands/menu/subapp-assets-update.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  227. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  228. package/lib/commands/project/create/format-elapsed.js +1 -1
  229. package/lib/commands/project/create/main.js +1 -1
  230. package/lib/commands/project/create/materialize-project-template.js +1 -1
  231. package/lib/commands/project/create/project-name.js +1 -1
  232. package/lib/commands/project/create/project-template-archive.js +1 -1
  233. package/lib/commands/project/create/project-template-path.js +1 -1
  234. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  235. package/lib/commands/project/create/use-format-code.js +1 -1
  236. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  237. package/lib/commands/project/domain-routing-sync.js +1 -1
  238. package/lib/commands/project/index.js +1 -1
  239. package/lib/commands/project/upgrade.js +1 -1
  240. package/lib/commands/registry.js +1 -1
  241. package/lib/commands/role/delete.js +1 -1
  242. package/lib/commands/role/detail.js +1 -1
  243. package/lib/commands/role/index.js +1 -1
  244. package/lib/commands/role/list.js +1 -1
  245. package/lib/commands/role/shared.js +1 -1
  246. package/lib/commands/role/update.js +1 -1
  247. package/lib/commands/role/user-add.js +1 -1
  248. package/lib/commands/role/user-remove.js +1 -1
  249. package/lib/commands/role/user-resolve.js +1 -1
  250. package/lib/commands/rule/get.js +1 -1
  251. package/lib/commands/rule/index.js +1 -1
  252. package/lib/commands/rule/list.js +1 -1
  253. package/lib/commands/rule/set.js +1 -1
  254. package/lib/commands/rule/shared.js +1 -1
  255. package/lib/commands/run/index.js +1 -1
  256. package/lib/commands/schema.js +1 -1
  257. package/lib/commands/sql/create.js +1 -1
  258. package/lib/commands/sql/delete.js +1 -1
  259. package/lib/commands/sql/detail.js +1 -1
  260. package/lib/commands/sql/exec.js +1 -1
  261. package/lib/commands/sql/index.js +1 -1
  262. package/lib/commands/sql/list.js +1 -1
  263. package/lib/commands/sql/pull.js +1 -1
  264. package/lib/commands/sql/push.js +1 -1
  265. package/lib/commands/sql/shared.js +1 -1
  266. package/lib/commands/sql/status.js +1 -1
  267. package/lib/commands/sql/validate.js +1 -1
  268. package/lib/commands/task/index.js +1 -1
  269. package/lib/commands/task/status.js +1 -1
  270. package/lib/commands/tenant/index.js +1 -1
  271. package/lib/commands/tenant/members-list.js +1 -1
  272. package/lib/commands/tenant/shared.js +1 -1
  273. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  274. package/lib/commands/user-account/feishu-bind.js +1 -1
  275. package/lib/commands/user-account/index.js +1 -1
  276. package/lib/commands/workspace/add.js +1 -1
  277. package/lib/commands/workspace/index.js +1 -1
  278. package/lib/commands/workspace/remove.js +1 -1
  279. package/lib/config/domain-config.js +1 -1
  280. package/lib/config/project-domain-routing.js +1 -1
  281. package/lib/config/region-config.js +1 -1
  282. package/lib/config/schema.js +1 -1
  283. package/lib/constant/cdn.js +1 -1
  284. package/lib/constant/cli.js +1 -1
  285. package/lib/constant/defaults.js +1 -1
  286. package/lib/constant/domain.js +1 -1
  287. package/lib/constant/env.js +1 -1
  288. package/lib/constant/output.js +1 -1
  289. package/lib/constant/paths.js +1 -1
  290. package/lib/constant/region.js +1 -1
  291. package/lib/constant/risk.js +1 -1
  292. package/lib/constant/routing-profile.js +1 -1
  293. package/lib/context/app-resolver.js +1 -1
  294. package/lib/context/auth-resolver.js +1 -1
  295. package/lib/context/config-loader.js +1 -1
  296. package/lib/context.js +1 -1
  297. package/lib/core/alias-resolver.js +1 -1
  298. package/lib/core/api-client.d.ts +18 -0
  299. package/lib/core/api-client.js +1 -1
  300. package/lib/core/bff/config.js +1 -1
  301. package/lib/core/bff/file-system.js +1 -1
  302. package/lib/core/bff/hash.js +1 -1
  303. package/lib/core/bff/hook-directory.js +1 -1
  304. package/lib/core/bff/lock.js +1 -1
  305. package/lib/core/bff/utils.js +1 -1
  306. package/lib/core/cross-db-analysis.d.ts +17 -0
  307. package/lib/core/cross-db-analysis.js +1 -0
  308. package/lib/core/cross-db-relation.js +1 -1
  309. package/lib/core/db-resolver.js +1 -1
  310. package/lib/core/flow-config.js +1 -1
  311. package/lib/core/instant-api-policy/config.js +1 -1
  312. package/lib/core/kb-search-client.js +1 -1
  313. package/lib/core/page/file-system.js +1 -1
  314. package/lib/core/page/hash.js +1 -1
  315. package/lib/core/page/lock.js +1 -1
  316. package/lib/core/page/lr-smart-jsx.js +1 -1
  317. package/lib/core/sql-index-auditor.js +1 -1
  318. package/lib/core/sql-sync/config.js +1 -1
  319. package/lib/core/sql-sync/file-system.js +1 -1
  320. package/lib/core/sql-sync/hash.js +1 -1
  321. package/lib/core/sql-sync/lock.js +1 -1
  322. package/lib/core/sql-sync/utils.js +1 -1
  323. package/lib/core/sql-validator.js +1 -1
  324. package/lib/errors.js +1 -1
  325. package/lib/framework/build-all-flags.js +1 -1
  326. package/lib/framework/error-output.js +1 -1
  327. package/lib/framework/explicit-yes.js +1 -1
  328. package/lib/framework/flags.js +1 -1
  329. package/lib/framework/help.js +1 -1
  330. package/lib/framework/index.js +1 -1
  331. package/lib/framework/output.js +1 -1
  332. package/lib/framework/response.js +1 -1
  333. package/lib/framework/runner-alias.js +1 -1
  334. package/lib/framework/runner.js +1 -1
  335. package/lib/framework/schema-export.js +1 -1
  336. package/lib/framework/supported-flags.js +1 -1
  337. package/lib/framework/types.js +1 -1
  338. package/lib/generated/build-info.d.ts +4 -4
  339. package/lib/generated/build-info.js +1 -1
  340. package/lib/generated/official-routing.js +1 -1
  341. package/lib/generated/routing-contract.js +1 -1
  342. package/lib/help.js +1 -1
  343. package/lib/postinstall.js +1 -1
  344. package/lib/runtime/confirmation.js +1 -1
  345. package/lib/runtime/event.js +1 -1
  346. package/lib/runtime/index.js +1 -1
  347. package/lib/runtime/queue.js +1 -1
  348. package/lib/runtime/resolve.js +1 -1
  349. package/lib/services/dataset-design/checkpoint.d.ts +17 -0
  350. package/lib/services/dataset-design/checkpoint.js +1 -0
  351. package/lib/services/dataset-design/commands.d.ts +6 -0
  352. package/lib/services/dataset-design/commands.js +1 -0
  353. package/lib/services/dataset-design/contract.d.ts +7 -0
  354. package/lib/services/dataset-design/contract.js +1 -0
  355. package/lib/skills/builtin-skill.js +1 -1
  356. package/lib/skills/main.js +1 -1
  357. package/lib/skills/npx-skills-add.js +1 -1
  358. package/lib/skills/skill-presence.js +1 -1
  359. package/lib/telemetry/cli-command-trace.js +1 -1
  360. package/lib/telemetry/cli-help-trace.js +1 -1
  361. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  362. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  363. package/lib/telemetry/send-cli-trace-log.js +1 -1
  364. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  365. package/lib/utils/ai_config.js +1 -1
  366. package/lib/utils/apply-jq-filter.js +1 -1
  367. package/lib/utils/cdn-config.js +1 -1
  368. package/lib/utils/check-sdk-version.js +1 -1
  369. package/lib/utils/cli-version-check.js +1 -1
  370. package/lib/utils/cli-version-policy.js +1 -1
  371. package/lib/utils/config.js +1 -1
  372. package/lib/utils/entity-with-id.js +1 -1
  373. package/lib/utils/file-utils.js +1 -1
  374. package/lib/utils/guides-cdn.js +1 -1
  375. package/lib/utils/http-client.js +1 -1
  376. package/lib/utils/is-non-interactive.js +1 -1
  377. package/lib/utils/logger.js +1 -1
  378. package/lib/utils/params.js +1 -1
  379. package/lib/utils/platform.js +1 -1
  380. package/lib/utils/sleep.js +1 -1
  381. package/lib/utils/template-replacer.js +1 -1
  382. package/lib/utils/update-notice.js +1 -1
  383. package/lib/utils/version.js +1 -1
  384. package/lib/utils/with-active-cookie.js +1 -1
  385. package/lib/utils/write-cli-side-channel.js +1 -1
  386. package/package.json +3 -2
  387. package/skills/rabetbase/SKILL.md +9 -7
  388. package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
  389. package/skills/rabetbase/guides/independent-deployment.md +10 -2
  390. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
  391. package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
  392. package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
  393. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
  394. package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
  395. package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
  396. package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
  397. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  398. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- function a280_0x491d(){const _0x38fcee=['hex','1641010aqEdCH','206415IIBTKR','digest','2325846EKOTPX','1192kWpjLO','1290284kEuJon','356334SWaUKN','md5','7PlVJYs','update','3853360uOVSTA','3DGYGxF','10953fAUBVv'];a280_0x491d=function(){return _0x38fcee;};return a280_0x491d();}function a280_0x3a90(_0x3efd6f,_0x31f38e){_0x3efd6f=_0x3efd6f-0x10a;const _0x491da1=a280_0x491d();let _0x3a90fa=_0x491da1[_0x3efd6f];return _0x3a90fa;}(function(_0x1688bb,_0x4fef5f){const _0x23779e=a280_0x3a90,_0x1160d4=_0x1688bb();while(!![]){try{const _0x38f4bf=-parseInt(_0x23779e(0x115))/0x1+-parseInt(_0x23779e(0x10c))/0x2+-parseInt(_0x23779e(0x111))/0x3*(-parseInt(_0x23779e(0x10b))/0x4)+parseInt(_0x23779e(0x114))/0x5+-parseInt(_0x23779e(0x117))/0x6*(parseInt(_0x23779e(0x10e))/0x7)+-parseInt(_0x23779e(0x10a))/0x8*(-parseInt(_0x23779e(0x112))/0x9)+parseInt(_0x23779e(0x110))/0xa;if(_0x38f4bf===_0x4fef5f)break;else _0x1160d4['push'](_0x1160d4['shift']());}catch(_0x3f71f8){_0x1160d4['push'](_0x1160d4['shift']());}}}(a280_0x491d,0x6cb23));import{readFile}from'node:fs/promises';import a280_0x4d0510 from'node:crypto';export function computeContentHash(_0x134f27){const _0x3e9d2f=a280_0x3a90;return a280_0x4d0510['createHash'](_0x3e9d2f(0x10d))[_0x3e9d2f(0x10f)](_0x134f27)[_0x3e9d2f(0x116)](_0x3e9d2f(0x113));}export async function computeFileHash(_0x323140){const _0x1e2d8d=await readFile(_0x323140,'utf8');return computeContentHash(_0x1e2d8d);}
1
+ (function(_0x4e583a,_0x17c23e){const _0x3a34f9=a290_0x1194,_0x532991=_0x4e583a();while(!![]){try{const _0xc20b61=parseInt(_0x3a34f9(0x17c))/0x1*(parseInt(_0x3a34f9(0x173))/0x2)+parseInt(_0x3a34f9(0x172))/0x3+-parseInt(_0x3a34f9(0x175))/0x4+parseInt(_0x3a34f9(0x178))/0x5*(-parseInt(_0x3a34f9(0x171))/0x6)+parseInt(_0x3a34f9(0x16d))/0x7+-parseInt(_0x3a34f9(0x174))/0x8*(parseInt(_0x3a34f9(0x170))/0x9)+parseInt(_0x3a34f9(0x16e))/0xa*(parseInt(_0x3a34f9(0x17a))/0xb);if(_0xc20b61===_0x17c23e)break;else _0x532991['push'](_0x532991['shift']());}catch(_0x2b5b0c){_0x532991['push'](_0x532991['shift']());}}}(a290_0x2cf5,0xbd03a));import{readFile}from'node:fs/promises';function a290_0x1194(_0x5e1895,_0x12d21b){_0x5e1895=_0x5e1895-0x16d;const _0x2cf5af=a290_0x2cf5();let _0x11943e=_0x2cf5af[_0x5e1895];return _0x11943e;}import a290_0x39f824 from'node:crypto';export function computeContentHash(_0x568da5){const _0x1459bc=a290_0x1194;return a290_0x39f824[_0x1459bc(0x177)]('md5')[_0x1459bc(0x16f)](_0x568da5)[_0x1459bc(0x176)](_0x1459bc(0x17b));}function a290_0x2cf5(){const _0x199d2b=['3865304hyIyCy','digest','createHash','31995MuyoHL','utf8','66XBbxKB','hex','666973dwdwkC','3741024MRnhdr','286180nuOHeN','update','9IPStoE','684XhfTnP','2969343tPHFxc','4xWHSxT','4478824pfPDga'];a290_0x2cf5=function(){return _0x199d2b;};return a290_0x2cf5();}export async function computeFileHash(_0x50e411){const _0x14a693=a290_0x1194,_0x4db042=await readFile(_0x50e411,_0x14a693(0x179));return computeContentHash(_0x4db042);}
@@ -1 +1 @@
1
- (function(_0x59625e,_0x45ee02){const _0x4494d6=a281_0x188d,_0x184402=_0x59625e();while(!![]){try{const _0x43c3d1=-parseInt(_0x4494d6(0xf1))/0x1*(parseInt(_0x4494d6(0xf0))/0x2)+parseInt(_0x4494d6(0x113))/0x3*(parseInt(_0x4494d6(0x104))/0x4)+-parseInt(_0x4494d6(0x10c))/0x5*(-parseInt(_0x4494d6(0x117))/0x6)+parseInt(_0x4494d6(0x10f))/0x7*(parseInt(_0x4494d6(0x116))/0x8)+parseInt(_0x4494d6(0x101))/0x9+-parseInt(_0x4494d6(0xf9))/0xa+parseInt(_0x4494d6(0xf7))/0xb*(-parseInt(_0x4494d6(0x107))/0xc);if(_0x43c3d1===_0x45ee02)break;else _0x184402['push'](_0x184402['shift']());}catch(_0x45bd10){_0x184402['push'](_0x184402['shift']());}}}(a281_0x279a,0xb5e51));import{CliError}from'../../errors.js';function a281_0x188d(_0x473fcc,_0x2b2f11){_0x473fcc=_0x473fcc-0xe1;const _0x279a34=a281_0x279a();let _0x188dc6=_0x279a34[_0x473fcc];return _0x188dc6;}export function trackedHookDirectoryMappings(_0x4c2571){const _0x5132f5=a281_0x188d,_0x4e460a=[];for(const [_0x24786b,_0x9c0581]of Object[_0x5132f5(0x114)](_0x4c2571[_0x5132f5(0x109)])){const [_0x27634e,_0x3ca0d0]=_0x24786b[_0x5132f5(0xe4)]('/');if(_0x27634e!==_0x5132f5(0xe6)||!_0x3ca0d0||!_0x9c0581['datasetCode'])continue;_0x4e460a['push']({'alias':_0x3ca0d0,'datasetCode':_0x9c0581[_0x5132f5(0x112)]});}return _0x4e460a;}export function uniqueTrackedHookDirectoryByDataset(_0x3f0efb){const _0x5bf8b8=a281_0x188d,_0x3cbb7d=new Map();for(const _0x3d2505 of trackedHookDirectoryMappings(_0x3f0efb)){const _0x19b6c8=directoryIdentity(_0x3d2505[_0x5bf8b8(0x112)]),_0x4c52b7=_0x3cbb7d[_0x5bf8b8(0xf6)](_0x19b6c8)??new Map();_0x4c52b7[_0x5bf8b8(0xfb)](directoryIdentity(_0x3d2505['alias']),_0x3d2505['alias']),_0x3cbb7d[_0x5bf8b8(0xfb)](_0x19b6c8,_0x4c52b7);}const _0x4ecce8=new Map();for(const [_0x574155,_0x4bef6e]of _0x3cbb7d){if(_0x4bef6e['size']>0x1)throw hookDirectoryError(_0x5bf8b8(0xff),_0x5bf8b8(0xeb)+_0x574155+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x4bef6e[_0x5bf8b8(0xe5)]()][_0x5bf8b8(0x103)](',\x20')+'.',{'datasetCode':_0x574155,'directories':[..._0x4bef6e['values']()]});_0x4ecce8[_0x5bf8b8(0xfb)](_0x574155,[..._0x4bef6e[_0x5bf8b8(0xe5)]()][0x0]);}return _0x4ecce8;}export function assertUnambiguousHookDirectoryMappings(_0x41a0f3){const _0x2e5479=a281_0x188d,_0x572b01=new Map();for(const {alias:_0x1bbdfd,datasetCode:_0x5e23b0}of _0x41a0f3){const _0x1da132=directoryIdentity(_0x1bbdfd),_0x67d4b3=_0x572b01['get'](_0x1da132)??new Set();_0x67d4b3[_0x2e5479(0xf2)](_0x5e23b0),_0x572b01[_0x2e5479(0xfb)](_0x1da132,_0x67d4b3);}for(const [_0x5ddadd,_0x19c650]of _0x572b01){if(_0x19c650['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x5ddadd+_0x2e5479(0xed),{'directoryName':_0x5ddadd,'datasetCodes':[..._0x19c650]});}}export function assertUnambiguousHookAliases(_0x42d6f5){const _0x5dced4=a281_0x188d,_0x2e4863=[..._0x42d6f5],_0x2ef44e=new Map(),_0x22ec1f=new Map();for(const {alias:_0x4131f5,datasetCode:_0x3d5551}of _0x2e4863){const _0x194224=directoryIdentity(_0x4131f5),_0x1dbc12=directoryIdentity(_0x3d5551),_0x387cfd=_0x2ef44e[_0x5dced4(0xf6)](_0x194224)??new Set();_0x387cfd['add'](_0x3d5551),_0x2ef44e['set'](_0x194224,_0x387cfd);const _0x26faaf=_0x22ec1f[_0x5dced4(0xf6)](_0x1dbc12)??new Set();_0x26faaf[_0x5dced4(0xf2)](_0x4131f5),_0x22ec1f['set'](_0x1dbc12,_0x26faaf);}for(const [_0x301638,_0xb6eb9c]of _0x2ef44e){if(_0xb6eb9c['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xe2)+_0x301638+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x301638,'datasetCodes':[..._0xb6eb9c]});}for(const [_0x44cfd9,_0x34c6f6]of _0x22ec1f){if(_0x34c6f6['size']>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5dced4(0xeb)+_0x44cfd9+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x44cfd9,'aliases':[..._0x34c6f6]});}}function a281_0x279a(){const _0x3bcdb1=['aliasToDatasetCodes','NFC','Dataset\x20code\x20\x22','Dataset\x20\x22','includes','\x22\x20resolves\x20to\x20multiple\x20Datasets.','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','4434sMTNcq','331XfyfWJ','add','lockKey','HOOK_MAPPING_DRIFT','map','get','11JQTKEd','push','5756120PwgVBH','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','set','toLowerCase','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','HOOK_DUPLICATE_DIRECTORIES','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','3039804giCFRQ','some','join','1165160eXMCIT','length','normalize','3665448QFmIzA','name','functions','Incomplete\x20HOOK\x20path:\x20','HOOK\x20directory\x20\x22','339685AzuGhw','size','HOOK_DATASET_NOT_FOUND','49HcGTEQ','alias','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','datasetCode','6inEezB','entries','HOOK_DIRECTORY_UNRESOLVED','1412328uIHxOe','18kZKJQR','code','SDK\x20alias\x20\x22','message','split','values','HOOK','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'];a281_0x279a=function(){return _0x3bcdb1;};return a281_0x279a();}export function buildHookDirectoryIndexes(_0x4433cf,_0x2d04cf=[]){const _0x3f36a8=a281_0x188d,_0x4ba95b=[..._0x2d04cf];assertUnambiguousHookDirectoryMappings(_0x4ba95b[_0x3f36a8(0xf5)](([_0xc56e5f,_0x2bc8ff])=>({'alias':_0xc56e5f,'datasetCode':_0x2bc8ff})));const _0x565700=new Map(),_0x2ed8b6=new Map();for(const _0xe638fb of _0x4433cf){appendUnique(_0x565700,directoryIdentity(_0xe638fb[_0x3f36a8(0xe1)]),_0xe638fb,_0x3ce1e9=>_0x3ce1e9[_0x3f36a8(0xe1)]);}for(const [_0x3ebd3d,_0x191f39]of _0x4ba95b){appendUnique(_0x2ed8b6,directoryIdentity(_0x3ebd3d),_0x191f39,_0x4a9659=>_0x4a9659);}return{'datasetCodeToDatasets':_0x565700,'aliasToDatasetCodes':_0x2ed8b6};}export function resolvePushHookDirectory(_0x5d20bb,_0x3945b3,_0x11bc14){const _0x482bb8=a281_0x188d,_0x213290=directoryIdentity(_0x5d20bb),_0x3f1ff9=_0x11bc14['datasetCodeToDatasets']['get'](_0x213290)??[],_0x3de0d4=_0x11bc14[_0x482bb8(0xe8)]['get'](_0x213290)??[],_0xc84cc5=new Set([..._0x3f1ff9[_0x482bb8(0xf5)](_0x54167e=>_0x54167e[_0x482bb8(0xe1)]),..._0x3de0d4]);if(_0xc84cc5[_0x482bb8(0x10d)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x482bb8(0x10b)+_0x5d20bb+_0x482bb8(0xee),{'directoryName':_0x5d20bb,'datasetCodes':[..._0xc84cc5]});const _0x253a45=[..._0xc84cc5][0x0];if(_0x253a45&&_0x3945b3?.['datasetCode']&&_0x253a45!==_0x3945b3['datasetCode'])throw hookDirectoryError(_0x482bb8(0xf4),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xfa)+_0x3945b3[_0x482bb8(0x112)]+'\x22\x20to\x20\x22'+_0x253a45+'\x22.',{'directoryName':_0x5d20bb,'datasetCode':_0x253a45,'lockedDatasetCode':_0x3945b3['datasetCode']});const _0x3e641b=_0x253a45?findDatasetByCode(_0x11bc14,_0x253a45):undefined,_0x1b8b6c=!!_0x253a45&&_0x3de0d4[_0x482bb8(0xec)](_0x253a45);if(_0x3e641b)return{'dataset':_0x3e641b,'datasetCode':_0x3e641b['code'],..._0x1b8b6c?{'alias':_0x5d20bb}:{},'directoryProtocol':_0x1b8b6c?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};const _0x9bf236=_0x3945b3?.['datasetCode'];if(_0x9bf236){const _0x262ffb=findDatasetByCode(_0x11bc14,_0x9bf236);if(_0x262ffb)return{'dataset':_0x262ffb,'datasetCode':_0x262ffb[_0x482bb8(0xe1)],..._0x3945b3[_0x482bb8(0x110)]?{'alias':_0x3945b3[_0x482bb8(0x110)]}:{},'directoryProtocol':_0x3945b3[_0x482bb8(0x110)]?_0x482bb8(0x110):_0x482bb8(0x112),'warnings':[]};}if(_0x253a45||_0x9bf236){const _0x23a156=_0x253a45??_0x9bf236;throw hookDirectoryError(_0x482bb8(0x10e),'HOOK\x20directory\x20\x22'+_0x5d20bb+_0x482bb8(0xef),{'directoryName':_0x5d20bb,'datasetCode':_0x23a156});}throw hookDirectoryError(_0x482bb8(0x115),_0x482bb8(0xfd)+_0x5d20bb+_0x482bb8(0x100),{'directoryName':_0x5d20bb});}export function preflightPushHookDirectories(_0x499190,_0x37a948,_0x1cbd06,_0x4a7259){const _0x2374cb=a281_0x188d,_0x26dbe5=new Map(),_0x2fd1c2=new Map();for(const _0x48d58b of _0x499190){if(_0x48d58b['type']!==_0x2374cb(0xe6))continue;const _0x3ad0ed=_0x48d58b[_0x2374cb(0x110)];if(!_0x3ad0ed)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x2374cb(0x10a)+_0x48d58b[_0x2374cb(0xf3)],{'lockKey':_0x48d58b['lockKey']});let _0x5eebeb;try{_0x5eebeb=resolvePushHookDirectory(_0x3ad0ed,_0x37a948[_0x2374cb(0x109)][_0x48d58b[_0x2374cb(0xf3)]],_0x1cbd06);}catch(_0x460b8a){if(_0x4a7259&&_0x460b8a instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x2374cb(0xec)](_0x460b8a[_0x2374cb(0xe1)])){_0x4a7259['set'](_0x48d58b[_0x2374cb(0xf3)],_0x460b8a[_0x2374cb(0xe3)]);continue;}throw _0x460b8a;}_0x26dbe5['set'](_0x48d58b['lockKey'],_0x5eebeb);const _0x10f61e=_0x2fd1c2['get'](_0x5eebeb[_0x2374cb(0x112)])??new Set();_0x10f61e[_0x2374cb(0xf2)](_0x3ad0ed),_0x2fd1c2[_0x2374cb(0xfb)](_0x5eebeb['datasetCode'],_0x10f61e);}for(const [_0x1b6eb9,_0x1303f3]of _0x2fd1c2){if(_0x1303f3[_0x2374cb(0x10d)]>0x1)throw hookDirectoryError(_0x2374cb(0xff),_0x2374cb(0xeb)+_0x1b6eb9+_0x2374cb(0xe7)+[..._0x1303f3]['join'](',\x20')+'.',{'datasetCode':_0x1b6eb9,'directories':[..._0x1303f3]});}return _0x26dbe5;}export function hookDirectoryError(_0x340d87,_0x1e9ae1,_0xa9e5c6){const _0x2cf00a=new CliError(_0x340d87,0x2,_0x340d87+':\x20'+_0x1e9ae1);return _0x2cf00a['details']=_0xa9e5c6,_0x2cf00a;}function findDatasetByCode(_0x5b5037,_0x43c741){const _0x58e51d=a281_0x188d,_0x507980=_0x5b5037['datasetCodeToDatasets'][_0x58e51d(0xf6)](directoryIdentity(_0x43c741))??[];if(_0x507980[_0x58e51d(0x105)]>0x1)throw hookDirectoryError(_0x58e51d(0xfe),_0x58e51d(0xea)+_0x43c741+_0x58e51d(0x111),{'datasetCode':_0x43c741,'candidates':_0x507980[_0x58e51d(0xf5)](datasetFact)});return _0x507980[0x0];}function directoryIdentity(_0x7c610d){const _0x3734fe=a281_0x188d;return _0x7c610d[_0x3734fe(0x106)](_0x3734fe(0xe9))[_0x3734fe(0xfc)]();}function appendUnique(_0x1a6e33,_0x29d2d9,_0x4b30b4,_0x5aacb2){const _0x53d1c2=a281_0x188d,_0x5a4f02=_0x1a6e33[_0x53d1c2(0xf6)](_0x29d2d9)??[];!_0x5a4f02[_0x53d1c2(0x102)](_0x1d966f=>_0x5aacb2(_0x1d966f)===_0x5aacb2(_0x4b30b4))&&_0x5a4f02[_0x53d1c2(0xf8)](_0x4b30b4),_0x1a6e33[_0x53d1c2(0xfb)](_0x29d2d9,_0x5a4f02);}function datasetFact(_0x221490){const _0x110d10=a281_0x188d;return{'id':_0x221490['id'],'name':_0x221490[_0x110d10(0x108)],'datasetCode':_0x221490[_0x110d10(0xe1)]};}
1
+ (function(_0x1e6271,_0x3fd34f){const _0x8e263e=a291_0x42c4,_0x31cac5=_0x1e6271();while(!![]){try{const _0x76f586=parseInt(_0x8e263e(0xad))/0x1+-parseInt(_0x8e263e(0xb4))/0x2+parseInt(_0x8e263e(0x97))/0x3*(-parseInt(_0x8e263e(0x87))/0x4)+-parseInt(_0x8e263e(0x89))/0x5+parseInt(_0x8e263e(0xa5))/0x6+parseInt(_0x8e263e(0x8f))/0x7*(-parseInt(_0x8e263e(0xb2))/0x8)+parseInt(_0x8e263e(0x92))/0x9;if(_0x76f586===_0x3fd34f)break;else _0x31cac5['push'](_0x31cac5['shift']());}catch(_0xa36b17){_0x31cac5['push'](_0x31cac5['shift']());}}}(a291_0x2cd5,0x4aec1));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x2ae8c2){const _0xcedc44=a291_0x42c4,_0xd0ddb1=[];for(const [_0x68cb2b,_0x43d3d1]of Object['entries'](_0x2ae8c2[_0xcedc44(0x9c)])){const [_0x557a65,_0x522250]=_0x68cb2b[_0xcedc44(0x9a)]('/');if(_0x557a65!=='HOOK'||!_0x522250||!_0x43d3d1[_0xcedc44(0xa0)])continue;_0xd0ddb1[_0xcedc44(0xb5)]({'alias':_0x522250,'datasetCode':_0x43d3d1[_0xcedc44(0xa0)]});}return _0xd0ddb1;}export function uniqueTrackedHookDirectoryByDataset(_0x447379){const _0x360676=a291_0x42c4,_0x3aa7e2=new Map();for(const _0x34a402 of trackedHookDirectoryMappings(_0x447379)){const _0x2563a0=directoryIdentity(_0x34a402['datasetCode']),_0x264244=_0x3aa7e2[_0x360676(0x8c)](_0x2563a0)??new Map();_0x264244[_0x360676(0xa8)](directoryIdentity(_0x34a402[_0x360676(0xb9)]),_0x34a402[_0x360676(0xb9)]),_0x3aa7e2['set'](_0x2563a0,_0x264244);}const _0x251a27=new Map();for(const [_0x3ed6f6,_0x5d2b15]of _0x3aa7e2){if(_0x5d2b15[_0x360676(0xa3)]>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES','Dataset\x20\x22'+_0x3ed6f6+_0x360676(0xa2)+[..._0x5d2b15[_0x360676(0x95)]()][_0x360676(0xb7)](',\x20')+'.',{'datasetCode':_0x3ed6f6,'directories':[..._0x5d2b15[_0x360676(0x95)]()]});_0x251a27[_0x360676(0xa8)](_0x3ed6f6,[..._0x5d2b15[_0x360676(0x95)]()][0x0]);}return _0x251a27;}export function assertUnambiguousHookDirectoryMappings(_0x36bf79){const _0x3edf41=a291_0x42c4,_0x19a457=new Map();for(const {alias:_0x3f7b13,datasetCode:_0x3bcbde}of _0x36bf79){const _0x1d7d41=directoryIdentity(_0x3f7b13),_0x3dd034=_0x19a457[_0x3edf41(0x8c)](_0x1d7d41)??new Set();_0x3dd034['add'](_0x3bcbde),_0x19a457[_0x3edf41(0xa8)](_0x1d7d41,_0x3dd034);}for(const [_0x475cad,_0x12ff23]of _0x19a457){if(_0x12ff23[_0x3edf41(0xa3)]>0x1)throw hookDirectoryError(_0x3edf41(0x99),_0x3edf41(0xb0)+_0x475cad+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x475cad,'datasetCodes':[..._0x12ff23]});}}export function assertUnambiguousHookAliases(_0x157214){const _0x403121=a291_0x42c4,_0x24d90c=[..._0x157214],_0x572543=new Map(),_0x37ff30=new Map();for(const {alias:_0x317ce2,datasetCode:_0x3e4c62}of _0x24d90c){const _0xea6efb=directoryIdentity(_0x317ce2),_0x4d220f=directoryIdentity(_0x3e4c62),_0xc03d03=_0x572543[_0x403121(0x8c)](_0xea6efb)??new Set();_0xc03d03['add'](_0x3e4c62),_0x572543['set'](_0xea6efb,_0xc03d03);const _0x1a7646=_0x37ff30['get'](_0x4d220f)??new Set();_0x1a7646['add'](_0x317ce2),_0x37ff30[_0x403121(0xa8)](_0x4d220f,_0x1a7646);}for(const [_0x24054d,_0x56d7a6]of _0x572543){if(_0x56d7a6[_0x403121(0xa3)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x403121(0x8b)+_0x24054d+_0x403121(0x8d),{'alias':_0x24054d,'datasetCodes':[..._0x56d7a6]});}for(const [_0x203136,_0x5ac8c4]of _0x37ff30){if(_0x5ac8c4['size']>0x1)throw hookDirectoryError(_0x403121(0xa1),_0x403121(0x9e)+_0x203136+_0x403121(0xae),{'datasetCode':_0x203136,'aliases':[..._0x5ac8c4]});}}function a291_0x2cd5(){const _0xc266a2=['2854940ALcVqv','HOOK_DATASET_NOT_FOUND','SDK\x20alias\x20\x22','get','\x22\x20resolves\x20to\x20multiple\x20Datasets.','code','7OdGKAX','aliasToDatasetCodes','length','11677284rDnOIx','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','add','values','lockKey','67137wFNMQw','some','HOOK_DIRECTORY_AMBIGUOUS','split','map','functions','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','Dataset\x20\x22','name','datasetCode','HOOK_ALIAS_AMBIGUOUS','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','size','HOOK','1556544iNfKxI','toLowerCase','type','set','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','Dataset\x20code\x20\x22','includes','48754ILSRBW','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_UNRESOLVED','3095128eVgEIm','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','323724naYjbJ','push','normalize','join','HOOK_DUPLICATE_DIRECTORIES','alias','32IlYsEx','message'];a291_0x2cd5=function(){return _0xc266a2;};return a291_0x2cd5();}export function buildHookDirectoryIndexes(_0x19f263,_0x287b6d=[]){const _0x451c7f=a291_0x42c4,_0x37e4ae=[..._0x287b6d];assertUnambiguousHookDirectoryMappings(_0x37e4ae[_0x451c7f(0x9b)](([_0x363bdf,_0x5880b1])=>({'alias':_0x363bdf,'datasetCode':_0x5880b1})));const _0x54c237=new Map(),_0x2b463d=new Map();for(const _0x58dc76 of _0x19f263){appendUnique(_0x54c237,directoryIdentity(_0x58dc76[_0x451c7f(0x8e)]),_0x58dc76,_0x127358=>_0x127358[_0x451c7f(0x8e)]);}for(const [_0x4c4696,_0x14192d]of _0x37e4ae){appendUnique(_0x2b463d,directoryIdentity(_0x4c4696),_0x14192d,_0x404a8e=>_0x404a8e);}return{'datasetCodeToDatasets':_0x54c237,'aliasToDatasetCodes':_0x2b463d};}export function resolvePushHookDirectory(_0x23a758,_0x903c66,_0x30ecf6){const _0x55355d=a291_0x42c4,_0x53e392=directoryIdentity(_0x23a758),_0x208974=_0x30ecf6['datasetCodeToDatasets'][_0x55355d(0x8c)](_0x53e392)??[],_0x5ee17f=_0x30ecf6[_0x55355d(0x90)][_0x55355d(0x8c)](_0x53e392)??[],_0x1e4e4f=new Set([..._0x208974[_0x55355d(0x9b)](_0x2e119f=>_0x2e119f['code']),..._0x5ee17f]);if(_0x1e4e4f['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x23a758+'\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.',{'directoryName':_0x23a758,'datasetCodes':[..._0x1e4e4f]});const _0x68513b=[..._0x1e4e4f][0x0];if(_0x68513b&&_0x903c66?.[_0x55355d(0xa0)]&&_0x68513b!==_0x903c66[_0x55355d(0xa0)])throw hookDirectoryError('HOOK_MAPPING_DRIFT','HOOK\x20directory\x20\x22'+_0x23a758+_0x55355d(0x9d)+_0x903c66[_0x55355d(0xa0)]+'\x22\x20to\x20\x22'+_0x68513b+'\x22.',{'directoryName':_0x23a758,'datasetCode':_0x68513b,'lockedDatasetCode':_0x903c66[_0x55355d(0xa0)]});const _0x5b8642=_0x68513b?findDatasetByCode(_0x30ecf6,_0x68513b):undefined,_0x3c190d=!!_0x68513b&&_0x5ee17f['includes'](_0x68513b);if(_0x5b8642)return{'dataset':_0x5b8642,'datasetCode':_0x5b8642[_0x55355d(0x8e)],..._0x3c190d?{'alias':_0x23a758}:{},'directoryProtocol':_0x3c190d?_0x55355d(0xb9):_0x55355d(0xa0),'warnings':[]};const _0x545662=_0x903c66?.[_0x55355d(0xa0)];if(_0x545662){const _0x3ec08c=findDatasetByCode(_0x30ecf6,_0x545662);if(_0x3ec08c)return{'dataset':_0x3ec08c,'datasetCode':_0x3ec08c[_0x55355d(0x8e)],..._0x903c66['alias']?{'alias':_0x903c66[_0x55355d(0xb9)]}:{},'directoryProtocol':_0x903c66[_0x55355d(0xb9)]?_0x55355d(0xb9):'datasetCode','warnings':[]};}if(_0x68513b||_0x545662){const _0x1feb33=_0x68513b??_0x545662;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x55355d(0xb0)+_0x23a758+_0x55355d(0x93),{'directoryName':_0x23a758,'datasetCode':_0x1feb33});}throw hookDirectoryError(_0x55355d(0xb1),_0x55355d(0xb3)+_0x23a758+_0x55355d(0xa9),{'directoryName':_0x23a758});}export function preflightPushHookDirectories(_0x1bd037,_0x15aebb,_0x44ecc5,_0x45e718){const _0x15d706=a291_0x42c4,_0x4df9e3=new Map(),_0x487382=new Map();for(const _0x360f68 of _0x1bd037){if(_0x360f68[_0x15d706(0xa7)]!==_0x15d706(0xa4))continue;const _0x461865=_0x360f68['alias'];if(!_0x461865)throw hookDirectoryError(_0x15d706(0xb1),'Incomplete\x20HOOK\x20path:\x20'+_0x360f68[_0x15d706(0x96)],{'lockKey':_0x360f68[_0x15d706(0x96)]});let _0x310348;try{_0x310348=resolvePushHookDirectory(_0x461865,_0x15aebb[_0x15d706(0x9c)][_0x360f68[_0x15d706(0x96)]],_0x44ecc5);}catch(_0x357424){if(_0x45e718&&_0x357424 instanceof CliError&&[_0x15d706(0x8a),_0x15d706(0xb1)][_0x15d706(0xac)](_0x357424[_0x15d706(0x8e)])){_0x45e718[_0x15d706(0xa8)](_0x360f68[_0x15d706(0x96)],_0x357424[_0x15d706(0x88)]);continue;}throw _0x357424;}_0x4df9e3[_0x15d706(0xa8)](_0x360f68[_0x15d706(0x96)],_0x310348);const _0x200924=_0x487382[_0x15d706(0x8c)](_0x310348[_0x15d706(0xa0)])??new Set();_0x200924[_0x15d706(0x94)](_0x461865),_0x487382[_0x15d706(0xa8)](_0x310348['datasetCode'],_0x200924);}for(const [_0xbb951e,_0x23ea7f]of _0x487382){if(_0x23ea7f[_0x15d706(0xa3)]>0x1)throw hookDirectoryError(_0x15d706(0xb8),'Dataset\x20\x22'+_0xbb951e+_0x15d706(0xaa)+[..._0x23ea7f][_0x15d706(0xb7)](',\x20')+'.',{'datasetCode':_0xbb951e,'directories':[..._0x23ea7f]});}return _0x4df9e3;}export function hookDirectoryError(_0x5c06a5,_0x2148e3,_0x29aa4e){const _0x44e77e=new CliError(_0x5c06a5,0x2,_0x5c06a5+':\x20'+_0x2148e3);return _0x44e77e['details']=_0x29aa4e,_0x44e77e;}function findDatasetByCode(_0x4654b0,_0x3f10dd){const _0x19010d=a291_0x42c4,_0x4c4772=_0x4654b0['datasetCodeToDatasets'][_0x19010d(0x8c)](directoryIdentity(_0x3f10dd))??[];if(_0x4c4772[_0x19010d(0x91)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS',_0x19010d(0xab)+_0x3f10dd+_0x19010d(0xaf),{'datasetCode':_0x3f10dd,'candidates':_0x4c4772[_0x19010d(0x9b)](datasetFact)});return _0x4c4772[0x0];}function directoryIdentity(_0x17c0c3){const _0x1c9607=a291_0x42c4;return _0x17c0c3[_0x1c9607(0xb6)]('NFC')[_0x1c9607(0xa6)]();}function a291_0x42c4(_0x336c52,_0x195f53){_0x336c52=_0x336c52-0x87;const _0x2cd5c6=a291_0x2cd5();let _0x42c48c=_0x2cd5c6[_0x336c52];return _0x42c48c;}function appendUnique(_0x314a78,_0x47b951,_0x4d8475,_0x5e22bf){const _0xa58616=a291_0x42c4,_0xb80966=_0x314a78['get'](_0x47b951)??[];!_0xb80966[_0xa58616(0x98)](_0x578472=>_0x5e22bf(_0x578472)===_0x5e22bf(_0x4d8475))&&_0xb80966[_0xa58616(0xb5)](_0x4d8475),_0x314a78[_0xa58616(0xa8)](_0x47b951,_0xb80966);}function datasetFact(_0x8a462f){const _0x52c781=a291_0x42c4;return{'id':_0x8a462f['id'],'name':_0x8a462f[_0x52c781(0x9f)],'datasetCode':_0x8a462f[_0x52c781(0x8e)]};}
@@ -1 +1 @@
1
- (function(_0x2b6a66,_0x55895e){const _0x18477f=a282_0xb7cb,_0x3d7f91=_0x2b6a66();while(!![]){try{const _0x31f3c7=-parseInt(_0x18477f(0xe1))/0x1*(-parseInt(_0x18477f(0xf0))/0x2)+parseInt(_0x18477f(0xe7))/0x3*(-parseInt(_0x18477f(0xed))/0x4)+parseInt(_0x18477f(0xe2))/0x5+parseInt(_0x18477f(0xe9))/0x6*(-parseInt(_0x18477f(0xf3))/0x7)+-parseInt(_0x18477f(0xea))/0x8+parseInt(_0x18477f(0xe3))/0x9+parseInt(_0x18477f(0xef))/0xa;if(_0x31f3c7===_0x55895e)break;else _0x3d7f91['push'](_0x3d7f91['shift']());}catch(_0xd2fce2){_0x3d7f91['push'](_0x3d7f91['shift']());}}}(a282_0x1563,0xf168c));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a282_0xb7cb(_0xeca187,_0x50ffc0){_0xeca187=_0xeca187-0xde;const _0x15633e=a282_0x1563();let _0xb7cb74=_0x15633e[_0xeca187];return _0xb7cb74;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x21d04b,_0x56b87b,_0x7a144e,_0x1db5cb){const _0x5c781c=a282_0xb7cb,_0x54c839={'apps':_0x21d04b['apps']&&typeof _0x21d04b[_0x5c781c(0xdf)]==='object'?_0x21d04b[_0x5c781c(0xdf)]:{}};let _0x4e841c=_0x54c839['apps'][_0x56b87b];if(!_0x4e841c)return _0x4e841c={'scriptsRoot':_0x7a144e,'lastSync':'','functions':{}},_0x54c839['apps'][_0x56b87b]=_0x4e841c,{'lockData':_0x54c839,'appLock':_0x4e841c};if(!_0x4e841c['scriptsRoot'])_0x4e841c[_0x5c781c(0xf1)]=_0x7a144e;else{if(_0x4e841c['scriptsRoot']!==_0x7a144e)throw new Error(_0x1db5cb+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x5c781c(0xde)+_0x7a144e+'\x22\x20vs\x20lock\x20\x22'+_0x4e841c['scriptsRoot']+_0x5c781c(0xec))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x4e841c['functions']&&(_0x4e841c[_0x5c781c(0xe6)]={}),!_0x4e841c[_0x5c781c(0xf2)]&&(_0x4e841c[_0x5c781c(0xf2)]=''),{'lockData':_0x54c839,'appLock':_0x4e841c};}export async function readBffLockFile(_0x2afa4f){const _0x260f93=a282_0xb7cb;try{const _0x20f043=await readFile(_0x2afa4f,'utf8'),_0x4161f6=JSON[_0x260f93(0xe0)](_0x20f043);return{'apps':_0x4161f6[_0x260f93(0xdf)]&&typeof _0x4161f6['apps']==='object'?_0x4161f6[_0x260f93(0xdf)]:{}};}catch(_0x4784d4){if(_0x4784d4[_0x260f93(0xeb)]===_0x260f93(0xee))return null;throw new Error(_0x260f93(0xe4)+String(_0x4784d4));}}function a282_0x1563(){const _0x31762e=['140NsKLsG','ENOENT','21017240HZydiK','5378pwjWpm','scriptsRoot','lastSync','8148637tyQddG','current\x20\x22','apps','parse','131esKevh','4751370LnZUxo','330975cKkvBn','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','stringify','functions','47373WutfCQ','utf8','6aFGmUp','5883552FrpuYl','code','\x22.\x20'];a282_0x1563=function(){return _0x31762e;};return a282_0x1563();}export async function writeBffLockFile(_0x43d960,_0x5413b7){const _0x1b3713=a282_0xb7cb;await mkdir(dirname(_0x43d960),{'recursive':!![]}),await writeFile(_0x43d960,JSON[_0x1b3713(0xe5)](_0x5413b7,null,0x2),_0x1b3713(0xe8));}
1
+ (function(_0x3ff4cb,_0x484780){const _0x38bf7e=a292_0x2568,_0x15a69a=_0x3ff4cb();while(!![]){try{const _0x323f3a=parseInt(_0x38bf7e(0x99))/0x1+-parseInt(_0x38bf7e(0x96))/0x2*(-parseInt(_0x38bf7e(0x98))/0x3)+parseInt(_0x38bf7e(0x93))/0x4+-parseInt(_0x38bf7e(0x91))/0x5+-parseInt(_0x38bf7e(0x9c))/0x6+-parseInt(_0x38bf7e(0x9a))/0x7*(-parseInt(_0x38bf7e(0x95))/0x8)+-parseInt(_0x38bf7e(0x89))/0x9*(parseInt(_0x38bf7e(0x97))/0xa);if(_0x323f3a===_0x484780)break;else _0x15a69a['push'](_0x15a69a['shift']());}catch(_0x5c0fc7){_0x15a69a['push'](_0x15a69a['shift']());}}}(a292_0x2230,0xb4e31));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a292_0x2230(){const _0x44c194=['9DCelDo','object','stringify','utf8','\x22.\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.',':\x20scriptsRoot\x20mismatch\x20—\x20','current\x20\x22','2654175jDlAml','apps','3488256lnfkXg','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','2301784SQUuGE','6CqZFFI','5742190OaCPnn','745698aicaMx','288545hXxOsD','21PfCGwL','ENOENT','5541054xvXTIb','lastSync','scriptsRoot','\x22\x20vs\x20lock\x20\x22','functions'];a292_0x2230=function(){return _0x44c194;};return a292_0x2230();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x15e52e,_0x1577b6,_0x33e386,_0x1fb583){const _0xf9d2bd=a292_0x2568,_0x140dca={'apps':_0x15e52e[_0xf9d2bd(0x92)]&&typeof _0x15e52e['apps']==='object'?_0x15e52e[_0xf9d2bd(0x92)]:{}};let _0x4328e5=_0x140dca[_0xf9d2bd(0x92)][_0x1577b6];if(!_0x4328e5)return _0x4328e5={'scriptsRoot':_0x33e386,'lastSync':'','functions':{}},_0x140dca['apps'][_0x1577b6]=_0x4328e5,{'lockData':_0x140dca,'appLock':_0x4328e5};if(!_0x4328e5[_0xf9d2bd(0x9e)])_0x4328e5['scriptsRoot']=_0x33e386;else{if(_0x4328e5[_0xf9d2bd(0x9e)]!==_0x33e386)throw new Error(_0x1fb583+_0xf9d2bd(0x8f)+(_0xf9d2bd(0x90)+_0x33e386+_0xf9d2bd(0x9f)+_0x4328e5[_0xf9d2bd(0x9e)]+_0xf9d2bd(0x8d))+_0xf9d2bd(0x8e));}return!_0x4328e5[_0xf9d2bd(0xa0)]&&(_0x4328e5[_0xf9d2bd(0xa0)]={}),!_0x4328e5[_0xf9d2bd(0x9d)]&&(_0x4328e5['lastSync']=''),{'lockData':_0x140dca,'appLock':_0x4328e5};}export async function readBffLockFile(_0x47a069){const _0x576a8a=a292_0x2568;try{const _0x7e8c55=await readFile(_0x47a069,'utf8'),_0x2afae2=JSON['parse'](_0x7e8c55);return{'apps':_0x2afae2[_0x576a8a(0x92)]&&typeof _0x2afae2['apps']===_0x576a8a(0x8a)?_0x2afae2[_0x576a8a(0x92)]:{}};}catch(_0x3a5ae8){if(_0x3a5ae8['code']===_0x576a8a(0x9b))return null;throw new Error(_0x576a8a(0x94)+String(_0x3a5ae8));}}function a292_0x2568(_0x3d2dca,_0x385192){_0x3d2dca=_0x3d2dca-0x89;const _0x223053=a292_0x2230();let _0x2568a5=_0x223053[_0x3d2dca];return _0x2568a5;}export async function writeBffLockFile(_0x400691,_0x1ee8fc){const _0x4eb06b=a292_0x2568;await mkdir(dirname(_0x400691),{'recursive':!![]}),await writeFile(_0x400691,JSON[_0x4eb06b(0x8b)](_0x1ee8fc,null,0x2),_0x4eb06b(0x8c));}
@@ -1 +1 @@
1
- const a284_0x4a683e=a284_0x4c6c;(function(_0x4d52ed,_0x3d775c){const _0xf5ef71=a284_0x4c6c,_0x2a66be=_0x4d52ed();while(!![]){try{const _0x358308=-parseInt(_0xf5ef71(0x174))/0x1+parseInt(_0xf5ef71(0x16f))/0x2+-parseInt(_0xf5ef71(0x172))/0x3*(-parseInt(_0xf5ef71(0x17d))/0x4)+-parseInt(_0xf5ef71(0x169))/0x5*(parseInt(_0xf5ef71(0x16d))/0x6)+parseInt(_0xf5ef71(0x16e))/0x7+-parseInt(_0xf5ef71(0x16b))/0x8+parseInt(_0xf5ef71(0x162))/0x9*(parseInt(_0xf5ef71(0x170))/0xa);if(_0x358308===_0x3d775c)break;else _0x2a66be['push'](_0x2a66be['shift']());}catch(_0x3b0f39){_0x2a66be['push'](_0x2a66be['shift']());}}}(a284_0x4f25,0xa1f12));function a284_0x4f25(){const _0x5e4b42=['alias','toUpperCase','some','trim','match','20EoYMFT','before','9403640ehAstk','functionNode','1486284qqDKEw','4469535jDJaGO','330930rSItQf','30RcYSwX','startsWith','78aDzAgs','split','1040388HRWauB','remoteId','TODO:\x20add\x20script\x20description','map','after','entries','operationType','toLowerCase','replace','130412rSDtPB','test','6655095FHzzYR','datasetCode'];a284_0x4f25=function(){return _0x5e4b42;};return a284_0x4f25();}export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x4a683e(0x176);export function snakeToCamel(_0x4a0ee2){const _0x38f561=a284_0x4a683e;return _0x4a0ee2[_0x38f561(0x17b)]()[_0x38f561(0x17c)](/_([a-z])/g,(_0x47fe56,_0x4db4c3)=>_0x4db4c3[_0x38f561(0x165)]());}function a284_0x4c6c(_0x3493bf,_0x4319ef){_0x3493bf=_0x3493bf-0x161;const _0x4f25d5=a284_0x4f25();let _0x4c6c73=_0x4f25d5[_0x3493bf];return _0x4c6c73;}export function findHookLocationByRemoteId(_0x5076c4,_0x20faa8){const _0x6e5ca9=a284_0x4a683e;if(!_0x20faa8)return undefined;for(const [_0x1304f8,_0x2504ed]of Object[_0x6e5ca9(0x179)](_0x5076c4)){if(_0x2504ed[_0x6e5ca9(0x175)]===_0x20faa8&&_0x2504ed[_0x6e5ca9(0x163)]&&_0x2504ed[_0x6e5ca9(0x17a)]&&_0x2504ed[_0x6e5ca9(0x16c)]){const _0x14e9d8=_0x1304f8['split']('/')[0x1];return{'alias':_0x14e9d8||_0x2504ed[_0x6e5ca9(0x164)],'datasetCode':_0x2504ed[_0x6e5ca9(0x163)],'operationType':_0x2504ed[_0x6e5ca9(0x17a)],'functionNode':_0x2504ed[_0x6e5ca9(0x16c)]};}}return undefined;}export function extractScriptDescription(_0x1ce677){const _0x3dee50=a284_0x4a683e,_0x42f36c=_0x1ce677[_0x3dee50(0x168)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x42f36c?.[0x1])return undefined;const _0x1121d8=_0x42f36c[0x1],_0x640fec=_0x1729af=>{const _0x23683f=_0x3dee50,_0x22ee7c=_0x1729af?.[_0x23683f(0x167)]();if(!_0x22ee7c||_0x22ee7c===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x22ee7c===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x22ee7c;},_0x5d8660=_0x1121d8[_0x3dee50(0x168)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x5d8660)return _0x640fec(_0x5d8660[0x1]);const _0x140a6a=_0x1121d8[_0x3dee50(0x173)](/\r?\n/)[_0x3dee50(0x177)](_0x4f3746=>_0x4f3746['replace'](/^\s*\*\s?/,'')[_0x3dee50(0x167)]()),_0x216dcb=_0x140a6a[_0x3dee50(0x166)](_0x480e7b=>/^\[\s*脚本类型\s*]\s*\S+/[_0x3dee50(0x161)](_0x480e7b))&&_0x140a6a['some'](_0x55cc4a=>/^\[\s*脚本名称\s*]\s*\S+/[_0x3dee50(0x161)](_0x55cc4a));if(!_0x216dcb)return undefined;for(const _0x16171e of _0x140a6a){if(!_0x16171e||_0x16171e[_0x3dee50(0x171)]('@')||/^\[[^\]]+]\s*/[_0x3dee50(0x161)](_0x16171e))continue;return _0x640fec(_0x16171e);}return undefined;}export function isValidBffFunctionName(_0xc2ce55){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0xc2ce55);}export function normalizeHookFunctionNode(_0x40bf59){const _0x4e5863=a284_0x4a683e;if(!_0x40bf59)return undefined;const _0x52aad7=_0x40bf59[_0x4e5863(0x167)]()[_0x4e5863(0x17b)]();if(_0x52aad7===_0x4e5863(0x16a)||_0x52aad7===_0x4e5863(0x178))return _0x52aad7;return undefined;}
1
+ const a294_0x456f4c=a294_0x4e02;(function(_0x2175af,_0x5f1b47){const _0x9fe43=a294_0x4e02,_0x153e46=_0x2175af();while(!![]){try{const _0x276823=parseInt(_0x9fe43(0x1d4))/0x1*(-parseInt(_0x9fe43(0x1de))/0x2)+-parseInt(_0x9fe43(0x1d8))/0x3*(-parseInt(_0x9fe43(0x1e3))/0x4)+parseInt(_0x9fe43(0x1e4))/0x5*(-parseInt(_0x9fe43(0x1d6))/0x6)+parseInt(_0x9fe43(0x1db))/0x7+parseInt(_0x9fe43(0x1d2))/0x8*(parseInt(_0x9fe43(0x1e0))/0x9)+parseInt(_0x9fe43(0x1d7))/0xa+-parseInt(_0x9fe43(0x1dc))/0xb;if(_0x276823===_0x5f1b47)break;else _0x153e46['push'](_0x153e46['shift']());}catch(_0x44df1b){_0x153e46['push'](_0x153e46['shift']());}}}(a294_0x38ed,0x3662e));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a294_0x456f4c(0x1e7);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x2d2804){const _0x15394f=a294_0x456f4c;return _0x2d2804[_0x15394f(0x1dd)]()['replace'](/_([a-z])/g,(_0x56652a,_0x47d9db)=>_0x47d9db['toUpperCase']());}export function findHookLocationByRemoteId(_0x486b2f,_0x569484){const _0x22871e=a294_0x456f4c;if(!_0x569484)return undefined;for(const [_0x1f8773,_0x2a81fb]of Object[_0x22871e(0x1e6)](_0x486b2f)){if(_0x2a81fb[_0x22871e(0x1e8)]===_0x569484&&_0x2a81fb[_0x22871e(0x1d5)]&&_0x2a81fb[_0x22871e(0x1df)]&&_0x2a81fb[_0x22871e(0x1d9)]){const _0xf2593c=_0x1f8773[_0x22871e(0x1e9)]('/')[0x1];return{'alias':_0xf2593c||_0x2a81fb[_0x22871e(0x1e1)],'datasetCode':_0x2a81fb[_0x22871e(0x1d5)],'operationType':_0x2a81fb[_0x22871e(0x1df)],'functionNode':_0x2a81fb['functionNode']};}}return undefined;}export function extractScriptDescription(_0x2e2c82){const _0x3c2cd2=a294_0x456f4c,_0x3056db=_0x2e2c82[_0x3c2cd2(0x1cd)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x3056db?.[0x1])return undefined;const _0x479b1c=_0x3056db[0x1],_0x2b9449=_0x145fc9=>{const _0xebb82d=_0x3c2cd2,_0x325534=_0x145fc9?.[_0xebb82d(0x1ce)]();if(!_0x325534||_0x325534===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x325534===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x325534;},_0x50d0e5=_0x479b1c[_0x3c2cd2(0x1cd)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x50d0e5)return _0x2b9449(_0x50d0e5[0x1]);const _0x1cd47d=_0x479b1c[_0x3c2cd2(0x1e9)](/\r?\n/)[_0x3c2cd2(0x1d0)](_0x5a0337=>_0x5a0337[_0x3c2cd2(0x1e5)](/^\s*\*\s?/,'')['trim']()),_0x350c64=_0x1cd47d['some'](_0x4df876=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x4df876))&&_0x1cd47d[_0x3c2cd2(0x1da)](_0xa404ab=>/^\[\s*脚本名称\s*]\s*\S+/[_0x3c2cd2(0x1d3)](_0xa404ab));if(!_0x350c64)return undefined;for(const _0x28390b of _0x1cd47d){if(!_0x28390b||_0x28390b[_0x3c2cd2(0x1cf)]('@')||/^\[[^\]]+]\s*/[_0x3c2cd2(0x1d3)](_0x28390b))continue;return _0x2b9449(_0x28390b);}return undefined;}function a294_0x38ed(){const _0x3be928=['135310PBvaCS','579hEadsy','functionNode','some','2226322bpbiuM','7842703jjDDtL','toLowerCase','2UmBHot','operationType','3122829gecnUW','alias','before','9132RuFtAO','43880zpSshd','replace','entries','TODO:\x20补充脚本功能描述','remoteId','split','match','trim','startsWith','map','after','8prqSfB','test','148334cVbpVq','datasetCode','24qIZqeo'];a294_0x38ed=function(){return _0x3be928;};return a294_0x38ed();}export function isValidBffFunctionName(_0x1e95b4){const _0x3244fb=a294_0x456f4c;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3244fb(0x1d3)](_0x1e95b4);}function a294_0x4e02(_0x4ff69a,_0xcf62bc){_0x4ff69a=_0x4ff69a-0x1cd;const _0x38ed21=a294_0x38ed();let _0x4e0241=_0x38ed21[_0x4ff69a];return _0x4e0241;}export function normalizeHookFunctionNode(_0x346d15){const _0x37d8b7=a294_0x456f4c;if(!_0x346d15)return undefined;const _0xc44f0d=_0x346d15['trim']()[_0x37d8b7(0x1dd)]();if(_0xc44f0d===_0x37d8b7(0x1e2)||_0xc44f0d===_0x37d8b7(0x1d1))return _0xc44f0d;return undefined;}
@@ -0,0 +1,17 @@
1
+ /** Existing Cookie-authenticated cross-database analysis contract. */
2
+ export declare const CROSS_DB_ANALYSIS_PATHS: {
3
+ readonly start: "/smartapi/db-analysis/cross-db/start";
4
+ readonly status: "/smartapi/db-analysis/cross-db/status";
5
+ readonly latest: "/smartapi/db-analysis/cross-db/latest-job";
6
+ };
7
+ export interface CrossDbAnalysisStatus {
8
+ planId: string;
9
+ status: string;
10
+ currentStep?: string | null;
11
+ progressRate?: number | null;
12
+ errorMsg?: string | null;
13
+ /** Server facts, including participating/skipped IDs; no missing counts are inferred. */
14
+ result?: Record<string, unknown> | null;
15
+ gmtCreate?: string | null;
16
+ gmtModified?: string | null;
17
+ }
@@ -0,0 +1 @@
1
+ const a295_0x2379b4=a295_0x26a8;(function(_0x100569,_0x3ca692){const _0x36a738=a295_0x26a8,_0x415af7=_0x100569();while(!![]){try{const _0x3a6853=-parseInt(_0x36a738(0xf5))/0x1+-parseInt(_0x36a738(0xfd))/0x2*(-parseInt(_0x36a738(0xf8))/0x3)+-parseInt(_0x36a738(0xff))/0x4*(-parseInt(_0x36a738(0xf6))/0x5)+parseInt(_0x36a738(0xf9))/0x6*(parseInt(_0x36a738(0xfe))/0x7)+-parseInt(_0x36a738(0xf7))/0x8+parseInt(_0x36a738(0xfc))/0x9*(parseInt(_0x36a738(0x101))/0xa)+-parseInt(_0x36a738(0x100))/0xb;if(_0x3a6853===_0x3ca692)break;else _0x415af7['push'](_0x415af7['shift']());}catch(_0x278885){_0x415af7['push'](_0x415af7['shift']());}}}(a295_0x17b6,0x37c96));function a295_0x26a8(_0x5f17fd,_0x3733e4){_0x5f17fd=_0x5f17fd-0xf4;const _0x17b6dc=a295_0x17b6();let _0x26a893=_0x17b6dc[_0x5f17fd];return _0x26a893;}function a295_0x17b6(){const _0x2d7587=['5ynQNxp','558904YjZYON','14919qzSRQa','594jbgMrQ','/smartapi/db-analysis/cross-db/start','/smartapi/db-analysis/cross-db/status','5958FJQciE','138toFxRp','21399vBOUSB','1125748yZUjIl','8079742mnHjHc','4670AqQanK','/smartapi/db-analysis/cross-db/latest-job','203484XqNnqQ'];a295_0x17b6=function(){return _0x2d7587;};return a295_0x17b6();}export const CROSS_DB_ANALYSIS_PATHS={'start':a295_0x2379b4(0xfa),'status':a295_0x2379b4(0xfb),'latest':a295_0x2379b4(0xf4)};
@@ -1 +1 @@
1
- function a285_0x2308(_0x40d870,_0x374ffd){_0x40d870=_0x40d870-0xa5;const _0x583195=a285_0x5831();let _0x23085a=_0x583195[_0x40d870];return _0x23085a;}const a285_0x194ec5=a285_0x2308;(function(_0x3c63f4,_0x2bade4){const _0x1ea375=a285_0x2308,_0x4bcd41=_0x3c63f4();while(!![]){try{const _0x300cbd=-parseInt(_0x1ea375(0xae))/0x1+-parseInt(_0x1ea375(0xaf))/0x2*(parseInt(_0x1ea375(0xa8))/0x3)+parseInt(_0x1ea375(0xaa))/0x4+-parseInt(_0x1ea375(0xa6))/0x5+-parseInt(_0x1ea375(0xa5))/0x6+-parseInt(_0x1ea375(0xac))/0x7+parseInt(_0x1ea375(0xab))/0x8;if(_0x300cbd===_0x2bade4)break;else _0x4bcd41['push'](_0x4bcd41['shift']());}catch(_0x2ae18d){_0x4bcd41['push'](_0x4bcd41['shift']());}}}(a285_0x5831,0xe0c3f));function a285_0x5831(){const _0x2e851a=['5323690aPeILO','/smartapi/cross-db-relation/delete','438dDGtcJ','/smartapi/cross-db-relation/update','1519416thitoD','20658264EMdzKx','3261853HCrvyx','/smartapi/cross-db-relation/query','422519MiHvyj','668DoSUMe','236988UXStaE'];a285_0x5831=function(){return _0x2e851a;};return a285_0x5831();}export const CROSS_DB_RELATION_PATHS={'list':a285_0x194ec5(0xad),'create':'/smartapi/cross-db-relation/create','update':a285_0x194ec5(0xa9),'delete':a285_0x194ec5(0xa7)};
1
+ const a296_0x3b90ce=a296_0x165d;(function(_0x406adb,_0x259303){const _0x14fd64=a296_0x165d,_0x45a943=_0x406adb();while(!![]){try{const _0x14eedc=-parseInt(_0x14fd64(0x1f6))/0x1+parseInt(_0x14fd64(0x1ed))/0x2+-parseInt(_0x14fd64(0x1f1))/0x3*(parseInt(_0x14fd64(0x1ec))/0x4)+-parseInt(_0x14fd64(0x1f4))/0x5+parseInt(_0x14fd64(0x1f2))/0x6+parseInt(_0x14fd64(0x1ee))/0x7*(parseInt(_0x14fd64(0x1f3))/0x8)+-parseInt(_0x14fd64(0x1ef))/0x9;if(_0x14eedc===_0x259303)break;else _0x45a943['push'](_0x45a943['shift']());}catch(_0x59f40c){_0x45a943['push'](_0x45a943['shift']());}}}(a296_0x519d,0xaefeb));export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a296_0x3b90ce(0x1f5),'update':a296_0x3b90ce(0x1f0),'delete':a296_0x3b90ce(0x1f7)};function a296_0x165d(_0x4747c1,_0x5cc271){_0x4747c1=_0x4747c1-0x1ec;const _0x519d3f=a296_0x519d();let _0x165d62=_0x519d3f[_0x4747c1];return _0x165d62;}function a296_0x519d(){const _0x2220b0=['3101WvJngW','2224107krLtKr','/smartapi/cross-db-relation/update','51KBEWvd','8306010lMKkwx','14192RNgSlE','4797580RXBYXa','/smartapi/cross-db-relation/create','939234QrktyE','/smartapi/cross-db-relation/delete','110648aMAcrt','2325378eUtnoL'];a296_0x519d=function(){return _0x2220b0;};return a296_0x519d();}
@@ -1 +1 @@
1
- (function(_0x207b14,_0x16c7ca){const _0x14be98=a286_0x5897,_0x1e38ba=_0x207b14();while(!![]){try{const _0x40ec5b=parseInt(_0x14be98(0x91))/0x1*(-parseInt(_0x14be98(0x9c))/0x2)+-parseInt(_0x14be98(0x8d))/0x3*(parseInt(_0x14be98(0x97))/0x4)+-parseInt(_0x14be98(0x98))/0x5*(parseInt(_0x14be98(0x8e))/0x6)+parseInt(_0x14be98(0xa1))/0x7*(-parseInt(_0x14be98(0xa6))/0x8)+-parseInt(_0x14be98(0x90))/0x9+-parseInt(_0x14be98(0xab))/0xa+parseInt(_0x14be98(0x99))/0xb;if(_0x40ec5b===_0x16c7ca)break;else _0x1e38ba['push'](_0x1e38ba['shift']());}catch(_0x45979d){_0x1e38ba['push'](_0x1e38ba['shift']());}}}(a286_0x25f4,0xdcbb8));function a286_0x25f4(){const _0xcf793=['dbId','isNaN','toLowerCase','10793200BYsFMo','map','1041xrVEmH','360348ETzRBE','db-','9830088LvBpAn','9SGyaJp','dbtableConfig','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','has','entries','\x22.\x20Available:\x20','7236xpzgGc','95IDUjIL','76923583jILIrL','filter','set','80026RwulwN','includes','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','dbName','find','12519073pecUdz','length','get','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','8XNazdy','join'];a286_0x25f4=function(){return _0xcf793;};return a286_0x25f4();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x1356e5){const _0x28d1c6=a286_0x5897;if(cache[_0x28d1c6(0x94)](_0x1356e5))return cache[_0x28d1c6(0xa3)](_0x1356e5);const _0x51c6d0=await listDatasets(_0x1356e5),_0x5a79e2=new Map();for(const _0x53fffb of _0x51c6d0){const _0x2968b1=_0x53fffb[_0x28d1c6(0x92)];_0x2968b1?.[_0x28d1c6(0xa8)]!=null&&_0x5a79e2[_0x28d1c6(0x9b)](_0x2968b1[_0x28d1c6(0xa8)],_0x2968b1[_0x28d1c6(0x9f)]??_0x28d1c6(0x8f)+_0x2968b1[_0x28d1c6(0xa8)]);}const _0x442f3e=[..._0x5a79e2[_0x28d1c6(0x95)]()][_0x28d1c6(0x8c)](([_0x43b48f,_0xb35d8])=>({'dbId':_0x43b48f,'dbName':_0xb35d8}));return cache[_0x28d1c6(0x9b)](_0x1356e5,_0x442f3e),_0x442f3e;}function a286_0x5897(_0x4071f6,_0x416b6c){_0x4071f6=_0x4071f6-0x8c;const _0x25f466=a286_0x25f4();let _0x589766=_0x25f466[_0x4071f6];return _0x589766;}export async function resolveDb(_0xd9bf53,_0x28f963){const _0x58763f=a286_0x5897,_0x27e5c6=await listDatabases(_0xd9bf53);if(_0x27e5c6[_0x58763f(0xa2)]===0x0)return{'resolved':[],'error':_0x58763f(0xa4)+_0xd9bf53+_0x58763f(0x93)};if(!_0x28f963)return{'resolved':_0x27e5c6};const _0x26ec21=Number(_0x28f963);if(!Number[_0x58763f(0xa9)](_0x26ec21)){const _0x1a797d=_0x27e5c6[_0x58763f(0xa0)](_0xbf4676=>_0xbf4676['dbId']===_0x26ec21);if(_0x1a797d)return{'resolved':[_0x1a797d]};}const _0x1f8aca=_0x28f963['toLowerCase'](),_0x43f703=_0x27e5c6[_0x58763f(0x9a)](_0x539f0b=>_0x539f0b[_0x58763f(0x9f)][_0x58763f(0xaa)]()[_0x58763f(0x9d)](_0x1f8aca));if(_0x43f703[_0x58763f(0xa2)]>0x0)return{'resolved':_0x43f703};const _0x1ae193=_0x27e5c6['map'](_0x319327=>_0x319327[_0x58763f(0x9f)]+'\x20('+_0x319327['dbId']+')')['join'](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x28f963+'\x22\x20under\x20app\x20\x22'+_0xd9bf53+_0x58763f(0x96)+_0x1ae193+_0x58763f(0xa5)};}export async function resolveOneDb(_0x4f152d,_0x6e077){const _0x1e23a2=a286_0x5897,{resolved:_0x308528,error:_0xa996cc}=await resolveDb(_0x4f152d,_0x6e077);if(_0xa996cc)return{'db':null,'error':_0xa996cc};if(_0x308528['length']===0x1)return{'db':_0x308528[0x0]};if(!_0x6e077){const _0x3fc8ab=_0x308528[_0x1e23a2(0x8c)](_0x566c62=>_0x566c62[_0x1e23a2(0x9f)]+'\x20('+_0x566c62['dbId']+')')[_0x1e23a2(0xa7)](',\x20');return{'db':null,'error':_0x1e23a2(0x9e)+_0x3fc8ab};}const _0x3c376a=_0x308528[_0x1e23a2(0x8c)](_0x393623=>_0x393623[_0x1e23a2(0x9f)]+'\x20('+_0x393623[_0x1e23a2(0xa8)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x6e077+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x3c376a+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x1e26e7,_0x113834){const _0x5f2ff0=a286_0x5897,_0x244db3=await listDatabases(_0x1e26e7);return _0x244db3[_0x5f2ff0(0xa0)](_0x431040=>_0x431040[_0x5f2ff0(0xa8)]===_0x113834)?.[_0x5f2ff0(0x9f)];}
1
+ function a297_0x4323(){const _0x14fdfe=['\x22\x20matches\x20multiple\x20databases:\x20','dbId','includes','filter','length','map','join','No\x20database\x20matching\x20\x22','\x22\x20under\x20app\x20\x22','toLowerCase','db-','37917100YQbvfe','.\x20Be\x20more\x20specific.','\x22.\x20Available:\x20','5214112csrxyW','dbName','20568GeeeZR','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','get','2810826tTsnVD','find','1qSFxZT','5fesVMW','isNaN','1868390aHcxgQ','6635778xVBiqw','set','237kYQoLU','9309377JDBssG'];a297_0x4323=function(){return _0x14fdfe;};return a297_0x4323();}(function(_0x42cd46,_0x2842be){const _0x2b245c=a297_0x4607,_0x4593ac=_0x42cd46();while(!![]){try{const _0x5cd976=-parseInt(_0x2b245c(0x125))/0x1*(-parseInt(_0x2b245c(0x128))/0x2)+-parseInt(_0x2b245c(0x12b))/0x3*(parseInt(_0x2b245c(0x11f))/0x4)+-parseInt(_0x2b245c(0x126))/0x5*(parseInt(_0x2b245c(0x129))/0x6)+-parseInt(_0x2b245c(0x12c))/0x7+-parseInt(_0x2b245c(0x11d))/0x8+-parseInt(_0x2b245c(0x123))/0x9+parseInt(_0x2b245c(0x11a))/0xa;if(_0x5cd976===_0x2842be)break;else _0x4593ac['push'](_0x4593ac['shift']());}catch(_0x21d3a4){_0x4593ac['push'](_0x4593ac['shift']());}}}(a297_0x4323,0xe08b7));function a297_0x4607(_0x2ff571,_0x4de87a){_0x2ff571=_0x2ff571-0x116;const _0x432330=a297_0x4323();let _0x46075b=_0x432330[_0x2ff571];return _0x46075b;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x3b6d8b){const _0x160071=a297_0x4607;if(cache['has'](_0x3b6d8b))return cache[_0x160071(0x122)](_0x3b6d8b);const _0x8f8467=await listDatasets(_0x3b6d8b),_0x38fca3=new Map();for(const _0x11714c of _0x8f8467){const _0x34a0ea=_0x11714c['dbtableConfig'];_0x34a0ea?.[_0x160071(0x12e)]!=null&&_0x38fca3[_0x160071(0x12a)](_0x34a0ea[_0x160071(0x12e)],_0x34a0ea['dbName']??_0x160071(0x119)+_0x34a0ea['dbId']);}const _0x180f7f=[..._0x38fca3['entries']()][_0x160071(0x132)](([_0x1ec125,_0x2382a1])=>({'dbId':_0x1ec125,'dbName':_0x2382a1}));return cache[_0x160071(0x12a)](_0x3b6d8b,_0x180f7f),_0x180f7f;}export async function resolveDb(_0x40a358,_0x402688){const _0x10c2c9=a297_0x4607,_0x3812f9=await listDatabases(_0x40a358);if(_0x3812f9['length']===0x0)return{'resolved':[],'error':_0x10c2c9(0x121)+_0x40a358+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x402688)return{'resolved':_0x3812f9};const _0x1d1bda=Number(_0x402688);if(!Number[_0x10c2c9(0x127)](_0x1d1bda)){const _0x59248f=_0x3812f9[_0x10c2c9(0x124)](_0x155be8=>_0x155be8[_0x10c2c9(0x12e)]===_0x1d1bda);if(_0x59248f)return{'resolved':[_0x59248f]};}const _0x58f252=_0x402688['toLowerCase'](),_0x1d3009=_0x3812f9[_0x10c2c9(0x130)](_0x22fb26=>_0x22fb26['dbName'][_0x10c2c9(0x118)]()[_0x10c2c9(0x12f)](_0x58f252));if(_0x1d3009['length']>0x0)return{'resolved':_0x1d3009};const _0x26c4aa=_0x3812f9[_0x10c2c9(0x132)](_0x134053=>_0x134053['dbName']+'\x20('+_0x134053[_0x10c2c9(0x12e)]+')')[_0x10c2c9(0x133)](',\x20');return{'resolved':[],'error':_0x10c2c9(0x116)+_0x402688+_0x10c2c9(0x117)+_0x40a358+_0x10c2c9(0x11c)+_0x26c4aa+_0x10c2c9(0x120)};}export async function resolveOneDb(_0x2aad86,_0x473fc2){const _0x26b89b=a297_0x4607,{resolved:_0x26bd66,error:_0x412b5f}=await resolveDb(_0x2aad86,_0x473fc2);if(_0x412b5f)return{'db':null,'error':_0x412b5f};if(_0x26bd66[_0x26b89b(0x131)]===0x1)return{'db':_0x26bd66[0x0]};if(!_0x473fc2){const _0x3ffa8b=_0x26bd66[_0x26b89b(0x132)](_0x498d20=>_0x498d20['dbName']+'\x20('+_0x498d20[_0x26b89b(0x12e)]+')')[_0x26b89b(0x133)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x3ffa8b};}const _0x166c1f=_0x26bd66[_0x26b89b(0x132)](_0x65c784=>_0x65c784[_0x26b89b(0x11e)]+'\x20('+_0x65c784['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x473fc2+_0x26b89b(0x12d)+_0x166c1f+_0x26b89b(0x11b)};}export async function getDbName(_0x98ad4f,_0x21410b){const _0x5aa152=a297_0x4607,_0x45b099=await listDatabases(_0x98ad4f);return _0x45b099[_0x5aa152(0x124)](_0x2c2e0f=>_0x2c2e0f[_0x5aa152(0x12e)]===_0x21410b)?.['dbName'];}