@lovrabet/rabetbase-cli 2.5.8-beta.2 → 2.5.9-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +6 -6
  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.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.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/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.d.ts +8 -5
  162. package/lib/commands/kb/shared.js +1 -1
  163. package/lib/commands/kb/update.js +1 -1
  164. package/lib/commands/logs/index.js +1 -1
  165. package/lib/commands/menu/asset-update.js +1 -1
  166. package/lib/commands/menu/delete.js +1 -1
  167. package/lib/commands/menu/external-link-create.js +1 -1
  168. package/lib/commands/menu/external-link-update.js +1 -1
  169. package/lib/commands/menu/group-create.js +1 -1
  170. package/lib/commands/menu/group-update.js +1 -1
  171. package/lib/commands/menu/index.js +1 -1
  172. package/lib/commands/menu/list.js +1 -1
  173. package/lib/commands/menu/move.js +1 -1
  174. package/lib/commands/menu/regroup-start.js +1 -1
  175. package/lib/commands/menu/rename.js +1 -1
  176. package/lib/commands/menu/shared/compare-table.js +1 -1
  177. package/lib/commands/menu/shared/delete-plan.js +1 -1
  178. package/lib/commands/menu/shared/facts.js +1 -1
  179. package/lib/commands/menu/shared/index.js +1 -1
  180. package/lib/commands/menu/shared/inquirer.js +1 -1
  181. package/lib/commands/menu/shared/local-pages.js +1 -1
  182. package/lib/commands/menu/shared/logic.js +1 -1
  183. package/lib/commands/menu/shared/mutations.js +1 -1
  184. package/lib/commands/menu/shared/path.js +1 -1
  185. package/lib/commands/menu/shared/service.js +1 -1
  186. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  187. package/lib/commands/menu/shared/sync-core.js +1 -1
  188. package/lib/commands/menu/shared/update-core.js +1 -1
  189. package/lib/commands/menu/shared/valid-url.js +1 -1
  190. package/lib/commands/menu/subapp-assets-status.js +1 -1
  191. package/lib/commands/menu/subapp-assets-update.js +1 -1
  192. package/lib/commands/menu/sync.js +1 -1
  193. package/lib/commands/menu/visibility-update.js +1 -1
  194. package/lib/commands/notification/config-create.js +1 -1
  195. package/lib/commands/notification/config-delete.js +1 -1
  196. package/lib/commands/notification/config-list.js +1 -1
  197. package/lib/commands/notification/config-update.js +1 -1
  198. package/lib/commands/notification/index.js +1 -1
  199. package/lib/commands/notification/shared.js +1 -1
  200. package/lib/commands/ocr/index.js +1 -1
  201. package/lib/commands/page/create.js +1 -1
  202. package/lib/commands/page/custom/detail.js +1 -1
  203. package/lib/commands/page/custom/list.js +1 -1
  204. package/lib/commands/page/custom/publish.js +1 -1
  205. package/lib/commands/page/custom/shared.js +1 -1
  206. package/lib/commands/page/custom/syntax.js +1 -1
  207. package/lib/commands/page/custom/update.js +1 -1
  208. package/lib/commands/page/data-list-status.js +1 -1
  209. package/lib/commands/page/generate-start.js +1 -1
  210. package/lib/commands/page/generate-status.js +1 -1
  211. package/lib/commands/page/index.js +1 -1
  212. package/lib/commands/page/pull.js +1 -1
  213. package/lib/commands/page/push.js +1 -1
  214. package/lib/commands/page/relation-audit.js +1 -1
  215. package/lib/commands/page/restore.js +1 -1
  216. package/lib/commands/page/shared.js +1 -1
  217. package/lib/commands/page/sync.js +1 -1
  218. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  219. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  220. package/lib/commands/project/create/format-elapsed.js +1 -1
  221. package/lib/commands/project/create/main.js +1 -1
  222. package/lib/commands/project/create/materialize-project-template.js +1 -1
  223. package/lib/commands/project/create/project-name.js +1 -1
  224. package/lib/commands/project/create/project-template-archive.js +1 -1
  225. package/lib/commands/project/create/project-template-path.js +1 -1
  226. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  227. package/lib/commands/project/create/use-format-code.js +1 -1
  228. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  229. package/lib/commands/project/domain-routing-sync.js +1 -1
  230. package/lib/commands/project/index.js +1 -1
  231. package/lib/commands/project/upgrade.js +1 -1
  232. package/lib/commands/registry.js +1 -1
  233. package/lib/commands/role/delete.js +1 -1
  234. package/lib/commands/role/detail.js +1 -1
  235. package/lib/commands/role/index.js +1 -1
  236. package/lib/commands/role/list.js +1 -1
  237. package/lib/commands/role/shared.js +1 -1
  238. package/lib/commands/role/update.js +1 -1
  239. package/lib/commands/role/user-add.js +1 -1
  240. package/lib/commands/role/user-remove.js +1 -1
  241. package/lib/commands/role/user-resolve.js +1 -1
  242. package/lib/commands/rule/get.js +1 -1
  243. package/lib/commands/rule/index.js +1 -1
  244. package/lib/commands/rule/list.js +1 -1
  245. package/lib/commands/rule/set.js +1 -1
  246. package/lib/commands/rule/shared.d.ts +5 -3
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +14 -11
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.js +1 -1
  303. package/lib/core/instant-api-policy/config.js +1 -1
  304. package/lib/core/kb-management-client.d.ts +2 -2
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +3 -1
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +1 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-kb.md +17 -15
  381. package/skills/rabetbase/references/rabetbase-rule.md +8 -6
  382. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  383. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  384. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a290_0x5d47(){const _0x194692=['get','code','map','push','scriptsRootDir','set','3defHLO','COMMON','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','121007EfHHBw','functionNode','7827755Afusnz','includes','all','afterScriptId','toUpperCase','test','datasetCode','4125020uhxiwK','before','HOOK/','552474RPZBlS','replace','isFile','isDirectory','operationType','HOOK','name','functionName','ENOENT','1353765zMaKpF','9531258ZBBNpJ','every','F_OK','endsWith','.js','28983328LjJugt','split','scriptType','ENDPOINT','beforeScriptId'];a290_0x5d47=function(){return _0x194692;};return a290_0x5d47();}const a290_0x407287=a290_0x252d;(function(_0x3aa490,_0x59f9bb){const _0x1dfb93=a290_0x252d,_0x188137=_0x3aa490();while(!![]){try{const _0x2d9fd2=-parseInt(_0x1dfb93(0x18e))/0x1+-parseInt(_0x1dfb93(0x171))/0x2+-parseInt(_0x1dfb93(0x18b))/0x3*(-parseInt(_0x1dfb93(0x16e))/0x4)+-parseInt(_0x1dfb93(0x190))/0x5+-parseInt(_0x1dfb93(0x17b))/0x6+-parseInt(_0x1dfb93(0x17a))/0x7+parseInt(_0x1dfb93(0x180))/0x8;if(_0x2d9fd2===_0x59f9bb)break;else _0x188137['push'](_0x188137['shift']());}catch(_0x5cd9c3){_0x188137['push'](_0x188137['shift']());}}}(a290_0x5d47,0xde07e));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join,resolve,sep}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a290_0x407287(0x18c),a290_0x407287(0x183),a290_0x407287(0x176)];export function normalizeBffType(_0x1f4274){const _0x52a742=a290_0x407287;if(!_0x1f4274)return undefined;const _0x17d8f3=_0x1f4274['trim']()[_0x52a742(0x16b)]();return SUPPORTED_BFF_TYPES[_0x52a742(0x191)](_0x17d8f3)?_0x17d8f3:undefined;}async function scanJsFilesRecursively(_0x27a0cb,_0x2920a5){const _0x39489c=a290_0x407287,_0x1ebf3a=[];try{const _0x17477b=await readdir(_0x27a0cb,{'withFileTypes':!![]});for(const _0x1b9ee7 of _0x17477b){const _0x381485=join(_0x27a0cb,_0x1b9ee7[_0x39489c(0x177)]);if(_0x1b9ee7['isDirectory']())_0x1ebf3a[_0x39489c(0x188)](...await scanJsFilesRecursively(_0x381485,_0x2920a5+'/'+_0x1b9ee7[_0x39489c(0x177)]));else _0x1b9ee7[_0x39489c(0x173)]()&&_0x1b9ee7['name'][_0x39489c(0x17e)](_0x39489c(0x17f))&&_0x1ebf3a['push']({'lockKey':_0x2920a5+'/'+_0x1b9ee7[_0x39489c(0x177)]['replace'](/\.js$/,''),'filePath':_0x381485});}}catch(_0x3cb6c7){if(_0x3cb6c7['code']!==_0x39489c(0x179))throw _0x3cb6c7;}return _0x1ebf3a;}async function scanFlatFunctions(_0x5d6bdb,_0x40d740){const _0x476dc2=a290_0x407287,_0x43dd9b=join(_0x5d6bdb[_0x476dc2(0x189)],_0x40d740),_0x5aec99=await scanJsFilesRecursively(_0x43dd9b,_0x40d740);return _0x5aec99[_0x476dc2(0x187)](({lockKey:_0x588f2d,filePath:_0x37d113})=>({'type':_0x40d740,'name':_0x588f2d['split']('/')['at'](-0x1)??'','filePath':_0x37d113,'lockKey':_0x588f2d}));}async function scanHookFunctions(_0x5686c3){const _0x2579e0=a290_0x407287,_0x416463=join(_0x5686c3[_0x2579e0(0x189)],_0x2579e0(0x176)),_0x4f23ef=[];try{const _0x15362e=await readdir(_0x416463,{'withFileTypes':!![]});for(const _0xf4f5a2 of _0x15362e){if(!_0xf4f5a2[_0x2579e0(0x174)]())continue;const _0x2478a7=_0xf4f5a2[_0x2579e0(0x177)],_0x9b5a7=join(_0x416463,_0x2478a7),_0x2a5c3f=await readdir(_0x9b5a7,{'withFileTypes':!![]});for(const _0x43f372 of _0x2a5c3f){if(!_0x43f372[_0x2579e0(0x174)]())continue;const _0x36791c=_0x43f372[_0x2579e0(0x177)],_0x2c1b76=join(_0x9b5a7,_0x36791c),_0x4c560f=await readdir(_0x2c1b76,{'withFileTypes':!![]});for(const _0x1b5e5d of _0x4c560f){if(!_0x1b5e5d[_0x2579e0(0x174)]())continue;const _0x5e3656=_0x1b5e5d['name'],_0x44ea1b=join(_0x2c1b76,_0x5e3656),_0x4fbfc3=await readdir(_0x44ea1b,{'withFileTypes':!![]});for(const _0x21d0ec of _0x4fbfc3){if(!_0x21d0ec['isFile']()||!_0x21d0ec[_0x2579e0(0x177)][_0x2579e0(0x17e)](_0x2579e0(0x17f)))continue;const _0x10de0a=_0x21d0ec['name'][_0x2579e0(0x172)](/\.js$/,'');_0x4f23ef[_0x2579e0(0x188)]({'type':_0x2579e0(0x176),'name':_0x10de0a,'filePath':join(_0x44ea1b,_0x21d0ec['name']),'lockKey':_0x2579e0(0x170)+_0x2478a7+'/'+_0x36791c+'/'+_0x5e3656+'/'+_0x10de0a,'alias':_0x2478a7,'operationType':_0x36791c,'functionNode':_0x5e3656});}}}}}catch(_0x2e5c4b){if(_0x2e5c4b[_0x2579e0(0x186)]!==_0x2579e0(0x179))throw _0x2e5c4b;}return _0x4f23ef;}export async function scanLocalBffFunctions(_0x16ef6e,_0x57afcc){const _0x13d014=a290_0x407287;if(_0x57afcc==='COMMON'||_0x57afcc==='ENDPOINT')return scanFlatFunctions(_0x16ef6e,_0x57afcc);if(_0x57afcc===_0x13d014(0x176))return scanHookFunctions(_0x16ef6e);const [_0x39a28e,_0x3e0c75,_0x48760e]=await Promise[_0x13d014(0x192)]([scanFlatFunctions(_0x16ef6e,_0x13d014(0x18c)),scanFlatFunctions(_0x16ef6e,_0x13d014(0x183)),scanHookFunctions(_0x16ef6e)]);return[..._0x39a28e,..._0x3e0c75,..._0x48760e];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x1d8afd){const _0x307124=a290_0x407287;return SAFE_LOCK_KEY_SEGMENT[_0x307124(0x16c)](_0x1d8afd)&&_0x1d8afd!=='.'&&_0x1d8afd!=='..';}export function resolveLocalFilePathFromLockKey(_0x35e2bb,_0x178956){const _0x5a1552=a290_0x407287,_0x2c3b81=_0x178956['split']('/');if(!_0x2c3b81[_0x5a1552(0x17c)](isSafeLockKeySegment))throw new Error('Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20'+_0x178956);const _0x14bd77=resolve(join(_0x35e2bb[_0x5a1552(0x189)],..._0x2c3b81)+_0x5a1552(0x17f)),_0x36a48a=resolve(_0x35e2bb[_0x5a1552(0x189)]);if(_0x14bd77!==_0x36a48a&&!_0x14bd77['startsWith'](_0x36a48a+sep))throw new Error(_0x5a1552(0x18d)+_0x14bd77);return _0x14bd77;}export function createHookLocationMap(_0x10abc4){const _0x49f246=a290_0x407287,_0x169a95=new Map();for(const _0xb2dc5c of _0x10abc4){_0xb2dc5c[_0x49f246(0x184)]&&_0x169a95[_0x49f246(0x18a)](_0xb2dc5c[_0x49f246(0x184)],{'datasetCode':_0xb2dc5c[_0x49f246(0x16d)],'operationType':snakeToCamel(_0xb2dc5c[_0x49f246(0x175)]),'functionNode':_0x49f246(0x16f)}),_0xb2dc5c[_0x49f246(0x193)]&&_0x169a95[_0x49f246(0x18a)](_0xb2dc5c[_0x49f246(0x193)],{'datasetCode':_0xb2dc5c[_0x49f246(0x16d)],'operationType':snakeToCamel(_0xb2dc5c[_0x49f246(0x175)]),'functionNode':'after'});}return _0x169a95;}export function resolveRemoteScriptTarget(_0xe39746,_0x32973c,_0x3eeb68,_0x523cc3,_0x39a7ce){const _0x215cab=a290_0x407287,_0x5884de=normalizeBffType(_0x32973c[_0x215cab(0x182)]);if(!_0x5884de||!_0x32973c[_0x215cab(0x178)])return null;if(_0x5884de===_0x215cab(0x176)){const _0xc78a04=_0x32973c['id']?_0x3eeb68[_0x215cab(0x185)](_0x32973c['id']):undefined,_0xd89c58=findHookLocationByRemoteId(_0x523cc3,_0x32973c['id']),_0x3ef339=_0xc78a04?{..._0xd89c58?.['datasetCode']===_0xc78a04['datasetCode']?_0xd89c58:{},..._0xc78a04}:_0xd89c58;if(!_0x3ef339)return null;const _0x371603=_0x39a7ce[_0x215cab(0x185)](_0x3ef339[_0x215cab(0x16d)]['toLowerCase']()),_0x1f5079=_0x371603??_0x3ef339['datasetCode'],_0x5a207d={..._0x3ef339,'alias':_0x371603},_0x4c11db=_0x215cab(0x170)+_0x1f5079+'/'+_0x5a207d['operationType']+'/'+_0x5a207d[_0x215cab(0x18f)]+'/'+_0x32973c[_0x215cab(0x178)];if(!_0x4c11db['split']('/')[_0x215cab(0x17c)](isSafeLockKeySegment))return null;return{'lockKey':_0x4c11db,'filePath':resolveLocalFilePathFromLockKey(_0xe39746,_0x4c11db),'type':_0x215cab(0x176),'hookLocation':_0x5a207d};}const _0x1d86ff=_0x5884de+'/'+_0x32973c[_0x215cab(0x178)];if(!_0x1d86ff[_0x215cab(0x181)]('/')[_0x215cab(0x17c)](isSafeLockKeySegment))return null;return{'lockKey':_0x1d86ff,'filePath':resolveLocalFilePathFromLockKey(_0xe39746,_0x1d86ff),'type':_0x5884de};}function a290_0x252d(_0x20be20,_0x3da13e){_0x20be20=_0x20be20-0x16b;const _0x5d4779=a290_0x5d47();let _0x252dce=_0x5d4779[_0x20be20];return _0x252dce;}export async function ensureParentDirectory(_0x5605e3){await mkdir(dirname(_0x5605e3),{'recursive':!![]});}export async function fileExists(_0x2db036){const _0xf6edb0=a290_0x407287;try{return await access(_0x2db036,constants[_0xf6edb0(0x17d)]),!![];}catch{return![];}}export async function directoryExists(_0x3f18e1){const _0x5d25d8=a290_0x407287;try{const _0x6d66fe=await stat(_0x3f18e1);return _0x6d66fe[_0x5d25d8(0x174)]();}catch{return![];}}
1
+ const a290_0x328269=a290_0x2fe8;(function(_0x51f3d9,_0x2d9312){const _0x584080=a290_0x2fe8,_0x5246fa=_0x51f3d9();while(!![]){try{const _0x5a671e=-parseInt(_0x584080(0xd4))/0x1*(parseInt(_0x584080(0xd6))/0x2)+-parseInt(_0x584080(0xde))/0x3*(-parseInt(_0x584080(0xce))/0x4)+-parseInt(_0x584080(0xc7))/0x5+-parseInt(_0x584080(0xe4))/0x6+-parseInt(_0x584080(0xc8))/0x7*(parseInt(_0x584080(0xe9))/0x8)+-parseInt(_0x584080(0xcd))/0x9+parseInt(_0x584080(0xd3))/0xa;if(_0x5a671e===_0x2d9312)break;else _0x5246fa['push'](_0x5246fa['shift']());}catch(_0x11f63b){_0x5246fa['push'](_0x5246fa['shift']());}}}(a290_0x9cd5,0x588b8));function a290_0x2fe8(_0x55a04b,_0x2b2d79){_0x55a04b=_0x55a04b-0xbd;const _0x9cd53b=a290_0x9cd5();let _0x2fe8f7=_0x9cd53b[_0x55a04b];return _0x2fe8f7;}import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join,resolve,sep}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a290_0x328269(0xd8),a290_0x328269(0xd7),'HOOK'];export function normalizeBffType(_0x13af43){const _0x2d1fcc=a290_0x328269;if(!_0x13af43)return undefined;const _0x36f694=_0x13af43[_0x2d1fcc(0xbe)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x2d1fcc(0xcf)](_0x36f694)?_0x36f694:undefined;}async function scanJsFilesRecursively(_0x41b4e1,_0x5ac406){const _0x4149b2=a290_0x328269,_0x277611=[];try{const _0xb67894=await readdir(_0x41b4e1,{'withFileTypes':!![]});for(const _0x547f24 of _0xb67894){const _0x1792da=join(_0x41b4e1,_0x547f24['name']);if(_0x547f24['isDirectory']())_0x277611[_0x4149b2(0xc4)](...await scanJsFilesRecursively(_0x1792da,_0x5ac406+'/'+_0x547f24[_0x4149b2(0xbd)]));else _0x547f24[_0x4149b2(0xe1)]()&&_0x547f24[_0x4149b2(0xbd)][_0x4149b2(0xd1)](_0x4149b2(0xcc))&&_0x277611[_0x4149b2(0xc4)]({'lockKey':_0x5ac406+'/'+_0x547f24[_0x4149b2(0xbd)]['replace'](/\.js$/,''),'filePath':_0x1792da});}}catch(_0x495225){if(_0x495225[_0x4149b2(0xdd)]!==_0x4149b2(0xe8))throw _0x495225;}return _0x277611;}async function scanFlatFunctions(_0x7c3ff9,_0x462bc1){const _0x4ee874=a290_0x328269,_0x4000f7=join(_0x7c3ff9['scriptsRootDir'],_0x462bc1),_0x22eb1b=await scanJsFilesRecursively(_0x4000f7,_0x462bc1);return _0x22eb1b[_0x4ee874(0xea)](({lockKey:_0x9ec908,filePath:_0x4b8c85})=>({'type':_0x462bc1,'name':_0x9ec908[_0x4ee874(0xc1)]('/')['at'](-0x1)??'','filePath':_0x4b8c85,'lockKey':_0x9ec908}));}async function scanHookFunctions(_0x2c86c2){const _0x1373bb=a290_0x328269,_0x44893f=join(_0x2c86c2['scriptsRootDir'],_0x1373bb(0xc3)),_0x1cf302=[];try{const _0x16f96c=await readdir(_0x44893f,{'withFileTypes':!![]});for(const _0x4da084 of _0x16f96c){if(!_0x4da084[_0x1373bb(0xc6)]())continue;const _0x84aac2=_0x4da084[_0x1373bb(0xbd)],_0xcb7a8b=join(_0x44893f,_0x84aac2),_0x168131=await readdir(_0xcb7a8b,{'withFileTypes':!![]});for(const _0x59f8ba of _0x168131){if(!_0x59f8ba[_0x1373bb(0xc6)]())continue;const _0x155076=_0x59f8ba['name'],_0x338978=join(_0xcb7a8b,_0x155076),_0xdb5de1=await readdir(_0x338978,{'withFileTypes':!![]});for(const _0x28c227 of _0xdb5de1){if(!_0x28c227['isDirectory']())continue;const _0x4ace58=_0x28c227[_0x1373bb(0xbd)],_0x2e240a=join(_0x338978,_0x4ace58),_0x3c274f=await readdir(_0x2e240a,{'withFileTypes':!![]});for(const _0x2a13cf of _0x3c274f){if(!_0x2a13cf[_0x1373bb(0xe1)]()||!_0x2a13cf[_0x1373bb(0xbd)][_0x1373bb(0xd1)](_0x1373bb(0xcc)))continue;const _0x360a19=_0x2a13cf[_0x1373bb(0xbd)][_0x1373bb(0xd0)](/\.js$/,'');_0x1cf302[_0x1373bb(0xc4)]({'type':'HOOK','name':_0x360a19,'filePath':join(_0x2e240a,_0x2a13cf[_0x1373bb(0xbd)]),'lockKey':_0x1373bb(0xe7)+_0x84aac2+'/'+_0x155076+'/'+_0x4ace58+'/'+_0x360a19,'alias':_0x84aac2,'operationType':_0x155076,'functionNode':_0x4ace58});}}}}}catch(_0x51d0be){if(_0x51d0be[_0x1373bb(0xdd)]!==_0x1373bb(0xe8))throw _0x51d0be;}return _0x1cf302;}export async function scanLocalBffFunctions(_0x218fb6,_0x11f607){const _0x21c0fd=a290_0x328269;if(_0x11f607===_0x21c0fd(0xd8)||_0x11f607===_0x21c0fd(0xd7))return scanFlatFunctions(_0x218fb6,_0x11f607);if(_0x11f607==='HOOK')return scanHookFunctions(_0x218fb6);const [_0x7d7019,_0x39c074,_0x213115]=await Promise[_0x21c0fd(0xe2)]([scanFlatFunctions(_0x218fb6,'COMMON'),scanFlatFunctions(_0x218fb6,_0x21c0fd(0xd7)),scanHookFunctions(_0x218fb6)]);return[..._0x7d7019,..._0x39c074,..._0x213115];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x4b1ada){const _0x372c89=a290_0x328269;return SAFE_LOCK_KEY_SEGMENT[_0x372c89(0xda)](_0x4b1ada)&&_0x4b1ada!=='.'&&_0x4b1ada!=='..';}export function resolveLocalFilePathFromLockKey(_0x3ff332,_0x421b41){const _0x2cb0b6=a290_0x328269,_0x2f4e81=_0x421b41[_0x2cb0b6(0xc1)]('/');if(!_0x2f4e81[_0x2cb0b6(0xca)](isSafeLockKeySegment))throw new Error(_0x2cb0b6(0xdb)+_0x421b41);const _0x4020c6=resolve(join(_0x3ff332['scriptsRootDir'],..._0x2f4e81)+_0x2cb0b6(0xcc)),_0x2fac34=resolve(_0x3ff332[_0x2cb0b6(0xd2)]);if(_0x4020c6!==_0x2fac34&&!_0x4020c6[_0x2cb0b6(0xcb)](_0x2fac34+sep))throw new Error(_0x2cb0b6(0xdf)+_0x4020c6);return _0x4020c6;}export function createHookLocationMap(_0x55eb4a){const _0x3e6fb5=a290_0x328269,_0x56c2ff=new Map();for(const _0x2fc826 of _0x55eb4a){_0x2fc826[_0x3e6fb5(0xc9)]&&_0x56c2ff[_0x3e6fb5(0xc5)](_0x2fc826[_0x3e6fb5(0xc9)],{'datasetCode':_0x2fc826['datasetCode'],'operationType':snakeToCamel(_0x2fc826['operationType']),'functionNode':_0x3e6fb5(0xc2)}),_0x2fc826['afterScriptId']&&_0x56c2ff[_0x3e6fb5(0xc5)](_0x2fc826[_0x3e6fb5(0xd9)],{'datasetCode':_0x2fc826[_0x3e6fb5(0xe5)],'operationType':snakeToCamel(_0x2fc826[_0x3e6fb5(0xe3)]),'functionNode':_0x3e6fb5(0xd5)});}return _0x56c2ff;}export function resolveRemoteScriptTarget(_0x11a7e9,_0x4ed423,_0x1e3757,_0x55d84b,_0x40315e){const _0x42f180=a290_0x328269,_0x2df3c6=normalizeBffType(_0x4ed423[_0x42f180(0xc0)]);if(!_0x2df3c6||!_0x4ed423[_0x42f180(0xeb)])return null;if(_0x2df3c6===_0x42f180(0xc3)){const _0x28ca0d=_0x4ed423['id']?_0x1e3757[_0x42f180(0xbf)](_0x4ed423['id']):undefined,_0x42b38d=findHookLocationByRemoteId(_0x55d84b,_0x4ed423['id']),_0x142ef4=_0x28ca0d?{..._0x42b38d?.[_0x42f180(0xe5)]===_0x28ca0d[_0x42f180(0xe5)]?_0x42b38d:{},..._0x28ca0d}:_0x42b38d;if(!_0x142ef4)return null;const _0x41e82b=_0x40315e[_0x42f180(0xbf)](_0x142ef4[_0x42f180(0xe5)][_0x42f180(0xe6)]()),_0x43e733=_0x41e82b??_0x142ef4[_0x42f180(0xe5)],_0x3ea9af={..._0x142ef4,'alias':_0x41e82b},_0x221dc7=_0x42f180(0xe7)+_0x43e733+'/'+_0x3ea9af[_0x42f180(0xe3)]+'/'+_0x3ea9af[_0x42f180(0xe0)]+'/'+_0x4ed423[_0x42f180(0xeb)];if(!_0x221dc7[_0x42f180(0xc1)]('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0x221dc7,'filePath':resolveLocalFilePathFromLockKey(_0x11a7e9,_0x221dc7),'type':_0x42f180(0xc3),'hookLocation':_0x3ea9af};}const _0x5ed01f=_0x2df3c6+'/'+_0x4ed423[_0x42f180(0xeb)];if(!_0x5ed01f[_0x42f180(0xc1)]('/')[_0x42f180(0xca)](isSafeLockKeySegment))return null;return{'lockKey':_0x5ed01f,'filePath':resolveLocalFilePathFromLockKey(_0x11a7e9,_0x5ed01f),'type':_0x2df3c6};}function a290_0x9cd5(){const _0x30e3c8=['HOOK/','ENOENT','1090184hShEjy','map','functionName','name','trim','get','scriptType','split','before','HOOK','push','set','isDirectory','13365dTxwKB','7CBfQqw','beforeScriptId','every','startsWith','.js','5488974XnaOUr','158116vKqnSR','includes','replace','endsWith','scriptsRootDir','16141280rBfTUc','1NxfkRz','after','69508XLXPPI','ENDPOINT','COMMON','afterScriptId','test','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','F_OK','code','15bznoIX','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','functionNode','isFile','all','operationType','3993042UByGdC','datasetCode','toLowerCase'];a290_0x9cd5=function(){return _0x30e3c8;};return a290_0x9cd5();}export async function ensureParentDirectory(_0x4765b6){await mkdir(dirname(_0x4765b6),{'recursive':!![]});}export async function fileExists(_0x214b93){const _0x1edea4=a290_0x328269;try{return await access(_0x214b93,constants[_0x1edea4(0xdc)]),!![];}catch{return![];}}export async function directoryExists(_0x371cf2){try{const _0x2a6277=await stat(_0x371cf2);return _0x2a6277['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x37b804,_0x10490a){const _0x592da0=a291_0x1671,_0xb10ffd=_0x37b804();while(!![]){try{const _0x179cff=parseInt(_0x592da0(0x8f))/0x1*(parseInt(_0x592da0(0x90))/0x2)+parseInt(_0x592da0(0x86))/0x3*(parseInt(_0x592da0(0x8a))/0x4)+parseInt(_0x592da0(0x8d))/0x5+-parseInt(_0x592da0(0x88))/0x6+parseInt(_0x592da0(0x89))/0x7+-parseInt(_0x592da0(0x92))/0x8*(parseInt(_0x592da0(0x87))/0x9)+-parseInt(_0x592da0(0x8e))/0xa*(parseInt(_0x592da0(0x85))/0xb);if(_0x179cff===_0x10490a)break;else _0xb10ffd['push'](_0xb10ffd['shift']());}catch(_0x239001){_0xb10ffd['push'](_0xb10ffd['shift']());}}}(a291_0x26f0,0xc851e));function a291_0x1671(_0xb3759b,_0xe1fff4){_0xb3759b=_0xb3759b-0x85;const _0x26f078=a291_0x26f0();let _0x16711f=_0x26f078[_0xb3759b];return _0x16711f;}import{readFile}from'node:fs/promises';import a291_0x5afb83 from'node:crypto';export function computeContentHash(_0x15e1fc){const _0x155010=a291_0x1671;return a291_0x5afb83[_0x155010(0x94)](_0x155010(0x8c))[_0x155010(0x91)](_0x15e1fc)[_0x155010(0x93)](_0x155010(0x8b));}export async function computeFileHash(_0xc33ff7){const _0x26be00=await readFile(_0xc33ff7,'utf8');return computeContentHash(_0x26be00);}function a291_0x26f0(){const _0x1d10b2=['createHash','11QhZler','51Xhbxff','27iGaLCr','2154384KOFeBi','9066694yxIpdH','196228WMlZcH','hex','md5','1160465iRBexx','7976420uwMzBe','1DfvyOd','242932fMMvcz','update','1348144UVhHVH','digest'];a291_0x26f0=function(){return _0x1d10b2;};return a291_0x26f0();}
1
+ (function(_0x208d70,_0x3f4f5e){const _0x5e4844=a291_0x2a9d,_0x41b9fd=_0x208d70();while(!![]){try{const _0x2e0c04=-parseInt(_0x5e4844(0x68))/0x1*(-parseInt(_0x5e4844(0x67))/0x2)+parseInt(_0x5e4844(0x69))/0x3+parseInt(_0x5e4844(0x73))/0x4+-parseInt(_0x5e4844(0x6e))/0x5+parseInt(_0x5e4844(0x6f))/0x6*(-parseInt(_0x5e4844(0x6a))/0x7)+-parseInt(_0x5e4844(0x6d))/0x8*(parseInt(_0x5e4844(0x72))/0x9)+-parseInt(_0x5e4844(0x70))/0xa*(-parseInt(_0x5e4844(0x6c))/0xb);if(_0x2e0c04===_0x3f4f5e)break;else _0x41b9fd['push'](_0x41b9fd['shift']());}catch(_0x3d42b8){_0x41b9fd['push'](_0x41b9fd['shift']());}}}(a291_0x28b3,0xb49e0));import{readFile}from'node:fs/promises';import a291_0x5bd7ed from'node:crypto';export function computeContentHash(_0x4159e3){const _0xd21fe7=a291_0x2a9d;return a291_0x5bd7ed['createHash'](_0xd21fe7(0x6b))['update'](_0x4159e3)[_0xd21fe7(0x66)](_0xd21fe7(0x71));}function a291_0x2a9d(_0x6dbbfb,_0x357aea){_0x6dbbfb=_0x6dbbfb-0x66;const _0x28b378=a291_0x28b3();let _0x2a9dd3=_0x28b378[_0x6dbbfb];return _0x2a9dd3;}export async function computeFileHash(_0x20bfd7){const _0x14b658=await readFile(_0x20bfd7,'utf8');return computeContentHash(_0x14b658);}function a291_0x28b3(){const _0x109c4d=['1362kKPiEb','9031450oDXDjA','hex','360rJoNjO','83264rDEWGi','digest','13718iseMqr','107NJelPV','767751bZzNps','581IHELPz','md5','11KztEsd','228504yrZSLo','63110HrfFcV'];a291_0x28b3=function(){return _0x109c4d;};return a291_0x28b3();}
@@ -1 +1 @@
1
- (function(_0x4d938e,_0x406051){const _0x208cda=a292_0x2f57,_0xf46bec=_0x4d938e();while(!![]){try{const _0x3ea285=-parseInt(_0x208cda(0xfe))/0x1*(-parseInt(_0x208cda(0x101))/0x2)+parseInt(_0x208cda(0x11d))/0x3*(parseInt(_0x208cda(0x105))/0x4)+parseInt(_0x208cda(0x122))/0x5*(-parseInt(_0x208cda(0x10c))/0x6)+-parseInt(_0x208cda(0x120))/0x7*(parseInt(_0x208cda(0x111))/0x8)+parseInt(_0x208cda(0x11e))/0x9+-parseInt(_0x208cda(0x110))/0xa*(-parseInt(_0x208cda(0x119))/0xb)+parseInt(_0x208cda(0xf0))/0xc*(-parseInt(_0x208cda(0xef))/0xd);if(_0x3ea285===_0x406051)break;else _0xf46bec['push'](_0xf46bec['shift']());}catch(_0x84801c){_0xf46bec['push'](_0xf46bec['shift']());}}}(a292_0x5825,0xe2ebf));function a292_0x5825(){const _0x1019be=['HOOK_ALIAS_AMBIGUOUS','message','get','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','some','length','push','join','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','lockKey','code','HOOK_DIRECTORY_UNRESOLVED','HOOK\x20directory\x20\x22','1490Lntzhk','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','toLowerCase','2258aVSrZj','includes','set','functions','4wQbWlx','size','datasetCode','entries','\x22\x20to\x20\x22','HOOK_DUPLICATE_DIRECTORIES','name','5927394FIeIDo','HOOK_MAPPING_DRIFT','HOOK_DATASET_CODE_AMBIGUOUS','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','93830mCOKhi','8VLdphk','NFC','HOOK_DIRECTORY_AMBIGUOUS','Dataset\x20\x22','normalize','\x22\x20resolves\x20to\x20multiple\x20Datasets.','add','HOOK','2090BsXMiM','map','values','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','4329996hLmYoq','15849072YZvHvX','alias','4065551WrdAda','type','5PVeNmm','datasetCodeToDatasets','SDK\x20alias\x20\x22','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','split','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','54225041CRoIiM','12GOlrXT'];a292_0x5825=function(){return _0x1019be;};return a292_0x5825();}import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5169ea){const _0x1cad1c=a292_0x2f57,_0x323a07=[];for(const [_0x194c78,_0x22ed34]of Object[_0x1cad1c(0x108)](_0x5169ea[_0x1cad1c(0x104)])){const [_0x391942,_0x3e51e9]=_0x194c78[_0x1cad1c(0xed)]('/');if(_0x391942!==_0x1cad1c(0x118)||!_0x3e51e9||!_0x22ed34[_0x1cad1c(0x107)])continue;_0x323a07[_0x1cad1c(0xf7)]({'alias':_0x3e51e9,'datasetCode':_0x22ed34[_0x1cad1c(0x107)]});}return _0x323a07;}export function uniqueTrackedHookDirectoryByDataset(_0x35112b){const _0x55c057=a292_0x2f57,_0x353114=new Map();for(const _0x5a6052 of trackedHookDirectoryMappings(_0x35112b)){const _0x2a2120=directoryIdentity(_0x5a6052[_0x55c057(0x107)]),_0x40d41f=_0x353114[_0x55c057(0xf3)](_0x2a2120)??new Map();_0x40d41f[_0x55c057(0x103)](directoryIdentity(_0x5a6052['alias']),_0x5a6052['alias']),_0x353114[_0x55c057(0x103)](_0x2a2120,_0x40d41f);}const _0x4d7926=new Map();for(const [_0x579a12,_0x5f52d8]of _0x353114){if(_0x5f52d8['size']>0x1)throw hookDirectoryError(_0x55c057(0x10a),_0x55c057(0x114)+_0x579a12+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x5f52d8['values']()][_0x55c057(0xf8)](',\x20')+'.',{'datasetCode':_0x579a12,'directories':[..._0x5f52d8[_0x55c057(0x11b)]()]});_0x4d7926[_0x55c057(0x103)](_0x579a12,[..._0x5f52d8[_0x55c057(0x11b)]()][0x0]);}return _0x4d7926;}export function assertUnambiguousHookDirectoryMappings(_0x55fdf7){const _0x314945=a292_0x2f57,_0x164390=new Map();for(const {alias:_0x384113,datasetCode:_0x25ee72}of _0x55fdf7){const _0x40ee27=directoryIdentity(_0x384113),_0x252676=_0x164390['get'](_0x40ee27)??new Set();_0x252676[_0x314945(0x117)](_0x25ee72),_0x164390[_0x314945(0x103)](_0x40ee27,_0x252676);}for(const [_0x31eb28,_0x4de0a1]of _0x164390){if(_0x4de0a1[_0x314945(0x106)]>0x1)throw hookDirectoryError(_0x314945(0x113),_0x314945(0xfd)+_0x31eb28+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x31eb28,'datasetCodes':[..._0x4de0a1]});}}export function assertUnambiguousHookAliases(_0x583ff5){const _0xa0fd6a=a292_0x2f57,_0x2e6e27=[..._0x583ff5],_0x4a6ff4=new Map(),_0x5381da=new Map();for(const {alias:_0x3c30f0,datasetCode:_0x52dc34}of _0x2e6e27){const _0x3eaf1d=directoryIdentity(_0x3c30f0),_0x5a7d9d=directoryIdentity(_0x52dc34),_0x24d30c=_0x4a6ff4[_0xa0fd6a(0xf3)](_0x3eaf1d)??new Set();_0x24d30c[_0xa0fd6a(0x117)](_0x52dc34),_0x4a6ff4['set'](_0x3eaf1d,_0x24d30c);const _0x2dd12c=_0x5381da[_0xa0fd6a(0xf3)](_0x5a7d9d)??new Set();_0x2dd12c[_0xa0fd6a(0x117)](_0x3c30f0),_0x5381da[_0xa0fd6a(0x103)](_0x5a7d9d,_0x2dd12c);}for(const [_0x1f1933,_0x5aa819]of _0x4a6ff4){if(_0x5aa819[_0xa0fd6a(0x106)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0xa0fd6a(0x124)+_0x1f1933+_0xa0fd6a(0x116),{'alias':_0x1f1933,'datasetCodes':[..._0x5aa819]});}for(const [_0x49e9e6,_0x4d6418]of _0x5381da){if(_0x4d6418['size']>0x1)throw hookDirectoryError(_0xa0fd6a(0xf1),'Dataset\x20\x22'+_0x49e9e6+_0xa0fd6a(0x10f),{'datasetCode':_0x49e9e6,'aliases':[..._0x4d6418]});}}export function buildHookDirectoryIndexes(_0x4851cd,_0x5f2163=[]){const _0x6fc2d0=a292_0x2f57,_0x187bc5=[..._0x5f2163];assertUnambiguousHookDirectoryMappings(_0x187bc5[_0x6fc2d0(0x11a)](([_0x59d925,_0x3d89eb])=>({'alias':_0x59d925,'datasetCode':_0x3d89eb})));const _0x3cd102=new Map(),_0x35e3db=new Map();for(const _0x2f70a8 of _0x4851cd){appendUnique(_0x3cd102,directoryIdentity(_0x2f70a8[_0x6fc2d0(0xfb)]),_0x2f70a8,_0x3e52ad=>_0x3e52ad['code']);}for(const [_0x2653e3,_0x285d3d]of _0x187bc5){appendUnique(_0x35e3db,directoryIdentity(_0x2653e3),_0x285d3d,_0x5dffc6=>_0x5dffc6);}return{'datasetCodeToDatasets':_0x3cd102,'aliasToDatasetCodes':_0x35e3db};}export function resolvePushHookDirectory(_0xb10051,_0x638cf2,_0x4be684){const _0x559f9a=a292_0x2f57,_0x197ebd=directoryIdentity(_0xb10051),_0x3d3e47=_0x4be684['datasetCodeToDatasets'][_0x559f9a(0xf3)](_0x197ebd)??[],_0x5d406b=_0x4be684['aliasToDatasetCodes'][_0x559f9a(0xf3)](_0x197ebd)??[],_0x4b01e2=new Set([..._0x3d3e47[_0x559f9a(0x11a)](_0x4bc06d=>_0x4bc06d[_0x559f9a(0xfb)]),..._0x5d406b]);if(_0x4b01e2[_0x559f9a(0x106)]>0x1)throw hookDirectoryError(_0x559f9a(0x113),_0x559f9a(0xfd)+_0xb10051+'\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.',{'directoryName':_0xb10051,'datasetCodes':[..._0x4b01e2]});const _0x387271=[..._0x4b01e2][0x0];if(_0x387271&&_0x638cf2?.[_0x559f9a(0x107)]&&_0x387271!==_0x638cf2[_0x559f9a(0x107)])throw hookDirectoryError(_0x559f9a(0x10d),'HOOK\x20directory\x20\x22'+_0xb10051+_0x559f9a(0xee)+_0x638cf2[_0x559f9a(0x107)]+_0x559f9a(0x109)+_0x387271+'\x22.',{'directoryName':_0xb10051,'datasetCode':_0x387271,'lockedDatasetCode':_0x638cf2['datasetCode']});const _0x3f1cdc=_0x387271?findDatasetByCode(_0x4be684,_0x387271):undefined,_0x5147a3=!!_0x387271&&_0x5d406b[_0x559f9a(0x102)](_0x387271);if(_0x3f1cdc)return{'dataset':_0x3f1cdc,'datasetCode':_0x3f1cdc[_0x559f9a(0xfb)],..._0x5147a3?{'alias':_0xb10051}:{},'directoryProtocol':_0x5147a3?_0x559f9a(0x11f):_0x559f9a(0x107),'warnings':[]};const _0x364129=_0x638cf2?.[_0x559f9a(0x107)];if(_0x364129){const _0x59d5bc=findDatasetByCode(_0x4be684,_0x364129);if(_0x59d5bc)return{'dataset':_0x59d5bc,'datasetCode':_0x59d5bc[_0x559f9a(0xfb)],..._0x638cf2[_0x559f9a(0x11f)]?{'alias':_0x638cf2[_0x559f9a(0x11f)]}:{},'directoryProtocol':_0x638cf2[_0x559f9a(0x11f)]?_0x559f9a(0x11f):_0x559f9a(0x107),'warnings':[]};}if(_0x387271||_0x364129){const _0x44af53=_0x387271??_0x364129;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x559f9a(0xfd)+_0xb10051+_0x559f9a(0xf9),{'directoryName':_0xb10051,'datasetCode':_0x44af53});}throw hookDirectoryError(_0x559f9a(0xfc),_0x559f9a(0xff)+_0xb10051+_0x559f9a(0x125),{'directoryName':_0xb10051});}export function preflightPushHookDirectories(_0x56ffcc,_0xdd4c8a,_0x49fdfd,_0x5386fe){const _0x424f62=a292_0x2f57,_0xb4af57=new Map(),_0x31419e=new Map();for(const _0x45f776 of _0x56ffcc){if(_0x45f776[_0x424f62(0x121)]!==_0x424f62(0x118))continue;const _0x362924=_0x45f776['alias'];if(!_0x362924)throw hookDirectoryError(_0x424f62(0xfc),'Incomplete\x20HOOK\x20path:\x20'+_0x45f776[_0x424f62(0xfa)],{'lockKey':_0x45f776['lockKey']});let _0x1c0646;try{_0x1c0646=resolvePushHookDirectory(_0x362924,_0xdd4c8a[_0x424f62(0x104)][_0x45f776[_0x424f62(0xfa)]],_0x49fdfd);}catch(_0x33b46d){if(_0x5386fe&&_0x33b46d instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x424f62(0x102)](_0x33b46d[_0x424f62(0xfb)])){_0x5386fe[_0x424f62(0x103)](_0x45f776[_0x424f62(0xfa)],_0x33b46d[_0x424f62(0xf2)]);continue;}throw _0x33b46d;}_0xb4af57['set'](_0x45f776[_0x424f62(0xfa)],_0x1c0646);const _0x5c3e1=_0x31419e[_0x424f62(0xf3)](_0x1c0646['datasetCode'])??new Set();_0x5c3e1[_0x424f62(0x117)](_0x362924),_0x31419e[_0x424f62(0x103)](_0x1c0646['datasetCode'],_0x5c3e1);}for(const [_0x245748,_0x227739]of _0x31419e){if(_0x227739['size']>0x1)throw hookDirectoryError(_0x424f62(0x10a),_0x424f62(0x114)+_0x245748+_0x424f62(0x11c)+[..._0x227739][_0x424f62(0xf8)](',\x20')+'.',{'datasetCode':_0x245748,'directories':[..._0x227739]});}return _0xb4af57;}export function hookDirectoryError(_0x52af59,_0x1e5cad,_0x80a1f7){const _0x6812d3=new CliError(_0x52af59,0x2,_0x52af59+':\x20'+_0x1e5cad);return _0x6812d3['details']=_0x80a1f7,_0x6812d3;}function findDatasetByCode(_0x37f806,_0x136b99){const _0x41a17d=a292_0x2f57,_0x49e187=_0x37f806[_0x41a17d(0x123)][_0x41a17d(0xf3)](directoryIdentity(_0x136b99))??[];if(_0x49e187[_0x41a17d(0xf6)]>0x1)throw hookDirectoryError(_0x41a17d(0x10e),'Dataset\x20code\x20\x22'+_0x136b99+_0x41a17d(0xf4),{'datasetCode':_0x136b99,'candidates':_0x49e187[_0x41a17d(0x11a)](datasetFact)});return _0x49e187[0x0];}function directoryIdentity(_0x48d916){const _0x2d5c38=a292_0x2f57;return _0x48d916[_0x2d5c38(0x115)](_0x2d5c38(0x112))[_0x2d5c38(0x100)]();}function a292_0x2f57(_0x4067ab,_0x5e8e8e){_0x4067ab=_0x4067ab-0xed;const _0x58252b=a292_0x5825();let _0x2f5743=_0x58252b[_0x4067ab];return _0x2f5743;}function appendUnique(_0x6fd878,_0x18dd60,_0x50ea08,_0x188be4){const _0x18781b=a292_0x2f57,_0x5c0aef=_0x6fd878['get'](_0x18dd60)??[];!_0x5c0aef[_0x18781b(0xf5)](_0x780458=>_0x188be4(_0x780458)===_0x188be4(_0x50ea08))&&_0x5c0aef[_0x18781b(0xf7)](_0x50ea08),_0x6fd878[_0x18781b(0x103)](_0x18dd60,_0x5c0aef);}function datasetFact(_0x179aa9){const _0x337b6b=a292_0x2f57;return{'id':_0x179aa9['id'],'name':_0x179aa9[_0x337b6b(0x10b)],'datasetCode':_0x179aa9['code']};}
1
+ (function(_0x5e1705,_0x5caf15){const _0x160f74=a292_0x54bd,_0x367c51=_0x5e1705();while(!![]){try{const _0x53cf80=parseInt(_0x160f74(0x157))/0x1*(-parseInt(_0x160f74(0x15f))/0x2)+parseInt(_0x160f74(0x130))/0x3*(-parseInt(_0x160f74(0x14d))/0x4)+parseInt(_0x160f74(0x15c))/0x5+parseInt(_0x160f74(0x14a))/0x6+-parseInt(_0x160f74(0x131))/0x7+-parseInt(_0x160f74(0x140))/0x8+parseInt(_0x160f74(0x142))/0x9;if(_0x53cf80===_0x5caf15)break;else _0x367c51['push'](_0x367c51['shift']());}catch(_0x119385){_0x367c51['push'](_0x367c51['shift']());}}}(a292_0x5e51,0x3cfcb));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x239aa1){const _0x33bd48=a292_0x54bd,_0x5da2a6=[];for(const [_0x1e2745,_0x4b3902]of Object['entries'](_0x239aa1['functions'])){const [_0x446531,_0x5edcca]=_0x1e2745[_0x33bd48(0x143)]('/');if(_0x446531!==_0x33bd48(0x12f)||!_0x5edcca||!_0x4b3902[_0x33bd48(0x14b)])continue;_0x5da2a6[_0x33bd48(0x15d)]({'alias':_0x5edcca,'datasetCode':_0x4b3902[_0x33bd48(0x14b)]});}return _0x5da2a6;}function a292_0x5e51(){const _0x32407e=['2250801txEcOZ','split','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','includes','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','values','aliasToDatasetCodes','1971840tBDUck','datasetCode','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','4KyHpYS','Incomplete\x20HOOK\x20path:\x20','functions','HOOK_MAPPING_DRIFT','size','details','set','some','map','SDK\x20alias\x20\x22','19658XbaTVs','lockKey','toLowerCase','HOOK_DUPLICATE_DIRECTORIES','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','1595660ioePim','push','HOOK_DIRECTORY_UNRESOLVED','22pkwrIy','get','HOOK','434619FPpjRQ','1648381SHhojX','join','\x22\x20to\x20\x22','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','HOOK_DATASET_CODE_AMBIGUOUS','add','Dataset\x20code\x20\x22','HOOK_ALIAS_AMBIGUOUS','HOOK\x20directory\x20\x22','alias','datasetCodeToDatasets','length','HOOK_DIRECTORY_AMBIGUOUS','code','HOOK_DATASET_NOT_FOUND','411712OkcyLe','\x22\x20resolves\x20to\x20multiple\x20Datasets.'];a292_0x5e51=function(){return _0x32407e;};return a292_0x5e51();}export function uniqueTrackedHookDirectoryByDataset(_0x39d60a){const _0xf21e00=a292_0x54bd,_0x171632=new Map();for(const _0x485509 of trackedHookDirectoryMappings(_0x39d60a)){const _0x37291e=directoryIdentity(_0x485509['datasetCode']),_0x1bd460=_0x171632['get'](_0x37291e)??new Map();_0x1bd460[_0xf21e00(0x153)](directoryIdentity(_0x485509['alias']),_0x485509[_0xf21e00(0x13a)]),_0x171632[_0xf21e00(0x153)](_0x37291e,_0x1bd460);}const _0x2da616=new Map();for(const [_0x2b568d,_0x17417e]of _0x171632){if(_0x17417e[_0xf21e00(0x151)]>0x1)throw hookDirectoryError(_0xf21e00(0x15a),'Dataset\x20\x22'+_0x2b568d+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x17417e[_0xf21e00(0x148)]()][_0xf21e00(0x132)](',\x20')+'.',{'datasetCode':_0x2b568d,'directories':[..._0x17417e[_0xf21e00(0x148)]()]});_0x2da616[_0xf21e00(0x153)](_0x2b568d,[..._0x17417e[_0xf21e00(0x148)]()][0x0]);}return _0x2da616;}function a292_0x54bd(_0x304c30,_0x24cbaa){_0x304c30=_0x304c30-0x12f;const _0x5e51cf=a292_0x5e51();let _0x54bdf5=_0x5e51cf[_0x304c30];return _0x54bdf5;}export function assertUnambiguousHookDirectoryMappings(_0x4658db){const _0x11cb03=a292_0x54bd,_0x195173=new Map();for(const {alias:_0x1571ea,datasetCode:_0x31ffe5}of _0x4658db){const _0x31014c=directoryIdentity(_0x1571ea),_0x3490=_0x195173[_0x11cb03(0x160)](_0x31014c)??new Set();_0x3490[_0x11cb03(0x136)](_0x31ffe5),_0x195173[_0x11cb03(0x153)](_0x31014c,_0x3490);}for(const [_0x3c8b72,_0x295783]of _0x195173){if(_0x295783['size']>0x1)throw hookDirectoryError(_0x11cb03(0x13d),'HOOK\x20directory\x20\x22'+_0x3c8b72+_0x11cb03(0x141),{'directoryName':_0x3c8b72,'datasetCodes':[..._0x295783]});}}export function assertUnambiguousHookAliases(_0x13f566){const _0xef0036=a292_0x54bd,_0x408798=[..._0x13f566],_0x58c7b0=new Map(),_0x2a3ddb=new Map();for(const {alias:_0x1e14b5,datasetCode:_0x325e45}of _0x408798){const _0x11b0f3=directoryIdentity(_0x1e14b5),_0x262261=directoryIdentity(_0x325e45),_0x1556a5=_0x58c7b0[_0xef0036(0x160)](_0x11b0f3)??new Set();_0x1556a5['add'](_0x325e45),_0x58c7b0[_0xef0036(0x153)](_0x11b0f3,_0x1556a5);const _0x768fa4=_0x2a3ddb[_0xef0036(0x160)](_0x262261)??new Set();_0x768fa4[_0xef0036(0x136)](_0x1e14b5),_0x2a3ddb[_0xef0036(0x153)](_0x262261,_0x768fa4);}for(const [_0x3b238c,_0x415b6a]of _0x58c7b0){if(_0x415b6a[_0xef0036(0x151)]>0x1)throw hookDirectoryError(_0xef0036(0x138),_0xef0036(0x156)+_0x3b238c+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x3b238c,'datasetCodes':[..._0x415b6a]});}for(const [_0x9424d,_0x5504ca]of _0x2a3ddb){if(_0x5504ca[_0xef0036(0x151)]>0x1)throw hookDirectoryError(_0xef0036(0x138),'Dataset\x20\x22'+_0x9424d+_0xef0036(0x134),{'datasetCode':_0x9424d,'aliases':[..._0x5504ca]});}}export function buildHookDirectoryIndexes(_0x52b6f0,_0x4291fd=[]){const _0x46164f=a292_0x54bd,_0x2a82f0=[..._0x4291fd];assertUnambiguousHookDirectoryMappings(_0x2a82f0[_0x46164f(0x155)](([_0x577cac,_0x222980])=>({'alias':_0x577cac,'datasetCode':_0x222980})));const _0x3a1133=new Map(),_0x53d81c=new Map();for(const _0x3d4d76 of _0x52b6f0){appendUnique(_0x3a1133,directoryIdentity(_0x3d4d76[_0x46164f(0x13e)]),_0x3d4d76,_0x15da96=>_0x15da96['code']);}for(const [_0x23969f,_0x3ebe05]of _0x2a82f0){appendUnique(_0x53d81c,directoryIdentity(_0x23969f),_0x3ebe05,_0x5a3300=>_0x5a3300);}return{'datasetCodeToDatasets':_0x3a1133,'aliasToDatasetCodes':_0x53d81c};}export function resolvePushHookDirectory(_0x463053,_0x3d2632,_0x56fae4){const _0x13145c=a292_0x54bd,_0x473976=directoryIdentity(_0x463053),_0x3baa26=_0x56fae4[_0x13145c(0x13b)]['get'](_0x473976)??[],_0x5f0888=_0x56fae4[_0x13145c(0x149)]['get'](_0x473976)??[],_0xacea27=new Set([..._0x3baa26[_0x13145c(0x155)](_0x42695a=>_0x42695a['code']),..._0x5f0888]);if(_0xacea27['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x13145c(0x139)+_0x463053+_0x13145c(0x144),{'directoryName':_0x463053,'datasetCodes':[..._0xacea27]});const _0x43813c=[..._0xacea27][0x0];if(_0x43813c&&_0x3d2632?.[_0x13145c(0x14b)]&&_0x43813c!==_0x3d2632[_0x13145c(0x14b)])throw hookDirectoryError(_0x13145c(0x150),_0x13145c(0x139)+_0x463053+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x3d2632['datasetCode']+_0x13145c(0x133)+_0x43813c+'\x22.',{'directoryName':_0x463053,'datasetCode':_0x43813c,'lockedDatasetCode':_0x3d2632[_0x13145c(0x14b)]});const _0x339570=_0x43813c?findDatasetByCode(_0x56fae4,_0x43813c):undefined,_0x16c362=!!_0x43813c&&_0x5f0888[_0x13145c(0x146)](_0x43813c);if(_0x339570)return{'dataset':_0x339570,'datasetCode':_0x339570[_0x13145c(0x13e)],..._0x16c362?{'alias':_0x463053}:{},'directoryProtocol':_0x16c362?'alias':_0x13145c(0x14b),'warnings':[]};const _0x52495f=_0x3d2632?.[_0x13145c(0x14b)];if(_0x52495f){const _0x5703a0=findDatasetByCode(_0x56fae4,_0x52495f);if(_0x5703a0)return{'dataset':_0x5703a0,'datasetCode':_0x5703a0[_0x13145c(0x13e)],..._0x3d2632['alias']?{'alias':_0x3d2632['alias']}:{},'directoryProtocol':_0x3d2632[_0x13145c(0x13a)]?'alias':_0x13145c(0x14b),'warnings':[]};}if(_0x43813c||_0x52495f){const _0x7de140=_0x43813c??_0x52495f;throw hookDirectoryError(_0x13145c(0x13f),'HOOK\x20directory\x20\x22'+_0x463053+_0x13145c(0x147),{'directoryName':_0x463053,'datasetCode':_0x7de140});}throw hookDirectoryError(_0x13145c(0x15e),_0x13145c(0x145)+_0x463053+_0x13145c(0x14c),{'directoryName':_0x463053});}export function preflightPushHookDirectories(_0x5e7c13,_0x43791e,_0x2dd8ff,_0x151191){const _0x37482d=a292_0x54bd,_0x530e2c=new Map(),_0x339547=new Map();for(const _0x26fc72 of _0x5e7c13){if(_0x26fc72['type']!==_0x37482d(0x12f))continue;const _0x32c2a7=_0x26fc72[_0x37482d(0x13a)];if(!_0x32c2a7)throw hookDirectoryError(_0x37482d(0x15e),_0x37482d(0x14e)+_0x26fc72[_0x37482d(0x158)],{'lockKey':_0x26fc72[_0x37482d(0x158)]});let _0x1d6d02;try{_0x1d6d02=resolvePushHookDirectory(_0x32c2a7,_0x43791e[_0x37482d(0x14f)][_0x26fc72[_0x37482d(0x158)]],_0x2dd8ff);}catch(_0x2207a7){if(_0x151191&&_0x2207a7 instanceof CliError&&[_0x37482d(0x13f),_0x37482d(0x15e)][_0x37482d(0x146)](_0x2207a7['code'])){_0x151191[_0x37482d(0x153)](_0x26fc72['lockKey'],_0x2207a7['message']);continue;}throw _0x2207a7;}_0x530e2c[_0x37482d(0x153)](_0x26fc72[_0x37482d(0x158)],_0x1d6d02);const _0x61b29e=_0x339547[_0x37482d(0x160)](_0x1d6d02['datasetCode'])??new Set();_0x61b29e['add'](_0x32c2a7),_0x339547['set'](_0x1d6d02[_0x37482d(0x14b)],_0x61b29e);}for(const [_0x27f5fb,_0x497287]of _0x339547){if(_0x497287[_0x37482d(0x151)]>0x1)throw hookDirectoryError(_0x37482d(0x15a),'Dataset\x20\x22'+_0x27f5fb+_0x37482d(0x15b)+[..._0x497287][_0x37482d(0x132)](',\x20')+'.',{'datasetCode':_0x27f5fb,'directories':[..._0x497287]});}return _0x530e2c;}export function hookDirectoryError(_0x3319df,_0x2e07fc,_0x9422f8){const _0x37f0b0=a292_0x54bd,_0x5cbb77=new CliError(_0x3319df,0x2,_0x3319df+':\x20'+_0x2e07fc);return _0x5cbb77[_0x37f0b0(0x152)]=_0x9422f8,_0x5cbb77;}function findDatasetByCode(_0x1e40de,_0x5f5d46){const _0x3b04a9=a292_0x54bd,_0x29976b=_0x1e40de['datasetCodeToDatasets'][_0x3b04a9(0x160)](directoryIdentity(_0x5f5d46))??[];if(_0x29976b[_0x3b04a9(0x13c)]>0x1)throw hookDirectoryError(_0x3b04a9(0x135),_0x3b04a9(0x137)+_0x5f5d46+'\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.',{'datasetCode':_0x5f5d46,'candidates':_0x29976b[_0x3b04a9(0x155)](datasetFact)});return _0x29976b[0x0];}function directoryIdentity(_0x35fdca){const _0x589546=a292_0x54bd;return _0x35fdca['normalize']('NFC')[_0x589546(0x159)]();}function appendUnique(_0x3d89ff,_0x5f45eb,_0x45f3c0,_0x2a9ccc){const _0x4f22d1=a292_0x54bd,_0x6d9836=_0x3d89ff['get'](_0x5f45eb)??[];!_0x6d9836[_0x4f22d1(0x154)](_0x27784e=>_0x2a9ccc(_0x27784e)===_0x2a9ccc(_0x45f3c0))&&_0x6d9836[_0x4f22d1(0x15d)](_0x45f3c0),_0x3d89ff[_0x4f22d1(0x153)](_0x5f45eb,_0x6d9836);}function datasetFact(_0xc935ce){const _0x350be6=a292_0x54bd;return{'id':_0xc935ce['id'],'name':_0xc935ce['name'],'datasetCode':_0xc935ce[_0x350be6(0x13e)]};}
@@ -1 +1 @@
1
- function a293_0x14bd(_0x344a67,_0x57dede){_0x344a67=_0x344a67-0x122;const _0x23930c=a293_0x2393();let _0x14bd6f=_0x23930c[_0x344a67];return _0x14bd6f;}(function(_0x37962c,_0x2cbabf){const _0x5f422e=a293_0x14bd,_0x4e4550=_0x37962c();while(!![]){try{const _0x5690ff=-parseInt(_0x5f422e(0x128))/0x1+-parseInt(_0x5f422e(0x122))/0x2*(-parseInt(_0x5f422e(0x12c))/0x3)+-parseInt(_0x5f422e(0x12a))/0x4+-parseInt(_0x5f422e(0x133))/0x5+parseInt(_0x5f422e(0x135))/0x6+-parseInt(_0x5f422e(0x132))/0x7*(-parseInt(_0x5f422e(0x129))/0x8)+parseInt(_0x5f422e(0x12b))/0x9;if(_0x5690ff===_0x2cbabf)break;else _0x4e4550['push'](_0x4e4550['shift']());}catch(_0x2c8f1c){_0x4e4550['push'](_0x4e4550['shift']());}}}(a293_0x2393,0x5fe37));function a293_0x2393(){const _0x4f42ac=['\x22\x20vs\x20lock\x20\x22',':\x20scriptsRoot\x20mismatch\x20—\x20','lastSync','scriptsRoot','parse','639893RMtOcD','1560wMtFZd','930516twSaYH','3958911OXXSPm','6plRMyQ','code','functions','stringify','object','current\x20\x22','5803oihJiN','843985fYpiUp','apps','2170452MXFDcq','\x22.\x20','470802EJWadm'];a293_0x2393=function(){return _0x4f42ac;};return a293_0x2393();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x1f07d5,_0x402489,_0x248d09,_0x56d9be){const _0x45a980=a293_0x14bd,_0x2b3277={'apps':_0x1f07d5['apps']&&typeof _0x1f07d5['apps']===_0x45a980(0x130)?_0x1f07d5[_0x45a980(0x134)]:{}};let _0x204839=_0x2b3277[_0x45a980(0x134)][_0x402489];if(!_0x204839)return _0x204839={'scriptsRoot':_0x248d09,'lastSync':'','functions':{}},_0x2b3277[_0x45a980(0x134)][_0x402489]=_0x204839,{'lockData':_0x2b3277,'appLock':_0x204839};if(!_0x204839[_0x45a980(0x126)])_0x204839[_0x45a980(0x126)]=_0x248d09;else{if(_0x204839[_0x45a980(0x126)]!==_0x248d09)throw new Error(_0x56d9be+_0x45a980(0x124)+(_0x45a980(0x131)+_0x248d09+_0x45a980(0x123)+_0x204839[_0x45a980(0x126)]+_0x45a980(0x136))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x204839['functions']&&(_0x204839[_0x45a980(0x12e)]={}),!_0x204839[_0x45a980(0x125)]&&(_0x204839[_0x45a980(0x125)]=''),{'lockData':_0x2b3277,'appLock':_0x204839};}export async function readBffLockFile(_0x527e58){const _0x1c5a15=a293_0x14bd;try{const _0x17adf3=await readFile(_0x527e58,'utf8'),_0x4beb20=JSON[_0x1c5a15(0x127)](_0x17adf3);return{'apps':_0x4beb20[_0x1c5a15(0x134)]&&typeof _0x4beb20['apps']==='object'?_0x4beb20[_0x1c5a15(0x134)]:{}};}catch(_0x42824f){if(_0x42824f[_0x1c5a15(0x12d)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x42824f));}}export async function writeBffLockFile(_0x401267,_0x977cc5){const _0x53c8bc=a293_0x14bd;await mkdir(dirname(_0x401267),{'recursive':!![]}),await writeFile(_0x401267,JSON[_0x53c8bc(0x12f)](_0x977cc5,null,0x2),'utf8');}
1
+ (function(_0x268a02,_0x4dc28c){const _0x374a5a=a293_0x3117,_0x5ca542=_0x268a02();while(!![]){try{const _0x4265cd=-parseInt(_0x374a5a(0x13d))/0x1+-parseInt(_0x374a5a(0x138))/0x2+-parseInt(_0x374a5a(0x140))/0x3+parseInt(_0x374a5a(0x145))/0x4+-parseInt(_0x374a5a(0x13c))/0x5+-parseInt(_0x374a5a(0x146))/0x6+-parseInt(_0x374a5a(0x137))/0x7*(-parseInt(_0x374a5a(0x134))/0x8);if(_0x4265cd===_0x4dc28c)break;else _0x5ca542['push'](_0x5ca542['shift']());}catch(_0x47bb33){_0x5ca542['push'](_0x5ca542['shift']());}}}(a293_0xef97,0x4c730));import{mkdir,readFile,writeFile}from'node:fs/promises';function a293_0x3117(_0x129855,_0x188ed9){_0x129855=_0x129855-0x134;const _0xef974=a293_0xef97();let _0x3117df=_0xef974[_0x129855];return _0x3117df;}import{dirname}from'node:path';function a293_0xef97(){const _0xc7f38b=['ENOENT','1720704CEaQaw','947058UVqKIF','utf8','48VFDczW','apps','\x22.\x20','1370929PGtguc','595530BPNfCu','lastSync','object','parse','2662155QLJacj','120288LjDVte','current\x20\x22','scriptsRoot','551385KjjOcB','functions',':\x20scriptsRoot\x20mismatch\x20—\x20','stringify'];a293_0xef97=function(){return _0xc7f38b;};return a293_0xef97();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x553a71,_0x4b5a52,_0x4f64d2,_0x41848f){const _0x4547d9=a293_0x3117,_0x147e15={'apps':_0x553a71['apps']&&typeof _0x553a71[_0x4547d9(0x135)]===_0x4547d9(0x13a)?_0x553a71[_0x4547d9(0x135)]:{}};let _0x2e39fa=_0x147e15['apps'][_0x4b5a52];if(!_0x2e39fa)return _0x2e39fa={'scriptsRoot':_0x4f64d2,'lastSync':'','functions':{}},_0x147e15[_0x4547d9(0x135)][_0x4b5a52]=_0x2e39fa,{'lockData':_0x147e15,'appLock':_0x2e39fa};if(!_0x2e39fa[_0x4547d9(0x13f)])_0x2e39fa[_0x4547d9(0x13f)]=_0x4f64d2;else{if(_0x2e39fa['scriptsRoot']!==_0x4f64d2)throw new Error(_0x41848f+_0x4547d9(0x142)+(_0x4547d9(0x13e)+_0x4f64d2+'\x22\x20vs\x20lock\x20\x22'+_0x2e39fa[_0x4547d9(0x13f)]+_0x4547d9(0x136))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x2e39fa['functions']&&(_0x2e39fa[_0x4547d9(0x141)]={}),!_0x2e39fa[_0x4547d9(0x139)]&&(_0x2e39fa['lastSync']=''),{'lockData':_0x147e15,'appLock':_0x2e39fa};}export async function readBffLockFile(_0x535c84){const _0x2f0cf0=a293_0x3117;try{const _0x3a0af4=await readFile(_0x535c84,_0x2f0cf0(0x147)),_0x23f287=JSON[_0x2f0cf0(0x13b)](_0x3a0af4);return{'apps':_0x23f287[_0x2f0cf0(0x135)]&&typeof _0x23f287[_0x2f0cf0(0x135)]==='object'?_0x23f287['apps']:{}};}catch(_0x349dd9){if(_0x349dd9['code']===_0x2f0cf0(0x144))return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x349dd9));}}export async function writeBffLockFile(_0x4a4e89,_0x4b2b8f){const _0x352815=a293_0x3117;await mkdir(dirname(_0x4a4e89),{'recursive':!![]}),await writeFile(_0x4a4e89,JSON[_0x352815(0x143)](_0x4b2b8f,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a295_0x7b5e(_0x132018,_0x5aea41){_0x132018=_0x132018-0xbf;const _0x3f4268=a295_0x3f42();let _0x7b5e7f=_0x3f4268[_0x132018];return _0x7b5e7f;}(function(_0x7e0645,_0x5310a3){const _0x28a0b9=a295_0x7b5e,_0x12d309=_0x7e0645();while(!![]){try{const _0x5c288e=-parseInt(_0x28a0b9(0xd4))/0x1+-parseInt(_0x28a0b9(0xc9))/0x2+-parseInt(_0x28a0b9(0xc0))/0x3*(parseInt(_0x28a0b9(0xbf))/0x4)+-parseInt(_0x28a0b9(0xd8))/0x5+parseInt(_0x28a0b9(0xd6))/0x6*(-parseInt(_0x28a0b9(0xce))/0x7)+parseInt(_0x28a0b9(0xcc))/0x8*(parseInt(_0x28a0b9(0xc2))/0x9)+parseInt(_0x28a0b9(0xd5))/0xa;if(_0x5c288e===_0x5310a3)break;else _0x12d309['push'](_0x12d309['shift']());}catch(_0x1a4f88){_0x12d309['push'](_0x12d309['shift']());}}}(a295_0x3f42,0xbc786));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';function a295_0x3f42(){const _0x5dd9ef=['5980760tcEPNs','39336iRSLPP','231sHldNJ','replace','167355sirTDJ','toLowerCase','alias','map','entries','datasetCode','toUpperCase','2231734EwWKaP','functionNode','match','592amZYKi','trim','63zFJZKY','split','startsWith','remoteId','operationType','test','783322suAsKV','44103040hSmYOu','774534yOaQEJ','some'];a295_0x3f42=function(){return _0x5dd9ef;};return a295_0x3f42();}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x377a2d){const _0x62a291=a295_0x7b5e;return _0x377a2d[_0x62a291(0xc3)]()[_0x62a291(0xc1)](/_([a-z])/g,(_0xb5ffb3,_0x242756)=>_0x242756[_0x62a291(0xc8)]());}export function findHookLocationByRemoteId(_0x38beb5,_0x3dfe9e){const _0x5742c8=a295_0x7b5e;if(!_0x3dfe9e)return undefined;for(const [_0x7d096a,_0x1a2592]of Object[_0x5742c8(0xc6)](_0x38beb5)){if(_0x1a2592[_0x5742c8(0xd1)]===_0x3dfe9e&&_0x1a2592[_0x5742c8(0xc7)]&&_0x1a2592[_0x5742c8(0xd2)]&&_0x1a2592[_0x5742c8(0xca)]){const _0x8bb1fa=_0x7d096a[_0x5742c8(0xcf)]('/')[0x1];return{'alias':_0x8bb1fa||_0x1a2592[_0x5742c8(0xc4)],'datasetCode':_0x1a2592[_0x5742c8(0xc7)],'operationType':_0x1a2592[_0x5742c8(0xd2)],'functionNode':_0x1a2592[_0x5742c8(0xca)]};}}return undefined;}export function extractScriptDescription(_0x46be33){const _0x562bbb=a295_0x7b5e,_0x44c332=_0x46be33[_0x562bbb(0xcb)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x44c332?.[0x1])return undefined;const _0x3cfdfe=_0x44c332[0x1],_0x5b04bc=_0x2bfb9d=>{const _0x4cf638=_0x2bfb9d?.['trim']();if(!_0x4cf638||_0x4cf638===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x4cf638===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x4cf638;},_0x20642b=_0x3cfdfe[_0x562bbb(0xcb)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x20642b)return _0x5b04bc(_0x20642b[0x1]);const _0xee0a81=_0x3cfdfe[_0x562bbb(0xcf)](/\r?\n/)[_0x562bbb(0xc5)](_0xb40cb=>_0xb40cb['replace'](/^\s*\*\s?/,'')[_0x562bbb(0xcd)]()),_0x363459=_0xee0a81[_0x562bbb(0xd7)](_0x2ae84c=>/^\[\s*脚本类型\s*]\s*\S+/[_0x562bbb(0xd3)](_0x2ae84c))&&_0xee0a81['some'](_0x4be9d5=>/^\[\s*脚本名称\s*]\s*\S+/[_0x562bbb(0xd3)](_0x4be9d5));if(!_0x363459)return undefined;for(const _0xda9939 of _0xee0a81){if(!_0xda9939||_0xda9939[_0x562bbb(0xd0)]('@')||/^\[[^\]]+]\s*/[_0x562bbb(0xd3)](_0xda9939))continue;return _0x5b04bc(_0xda9939);}return undefined;}export function isValidBffFunctionName(_0x45e018){const _0x545e81=a295_0x7b5e;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x545e81(0xd3)](_0x45e018);}export function normalizeHookFunctionNode(_0x301394){const _0x3b23a3=a295_0x7b5e;if(!_0x301394)return undefined;const _0x15d344=_0x301394[_0x3b23a3(0xcd)]()[_0x3b23a3(0xc3)]();if(_0x15d344==='before'||_0x15d344==='after')return _0x15d344;return undefined;}
1
+ (function(_0x3257f9,_0x58fcaf){const _0x33be0a=a295_0x2820,_0x87d941=_0x3257f9();while(!![]){try{const _0x4293a8=parseInt(_0x33be0a(0xb0))/0x1*(parseInt(_0x33be0a(0xb3))/0x2)+parseInt(_0x33be0a(0xb7))/0x3*(-parseInt(_0x33be0a(0xa8))/0x4)+-parseInt(_0x33be0a(0xbc))/0x5*(-parseInt(_0x33be0a(0xb5))/0x6)+-parseInt(_0x33be0a(0xaf))/0x7*(-parseInt(_0x33be0a(0xa4))/0x8)+-parseInt(_0x33be0a(0xa3))/0x9*(-parseInt(_0x33be0a(0xad))/0xa)+-parseInt(_0x33be0a(0xb6))/0xb+-parseInt(_0x33be0a(0xba))/0xc;if(_0x4293a8===_0x58fcaf)break;else _0x87d941['push'](_0x87d941['shift']());}catch(_0x49ffd8){_0x87d941['push'](_0x87d941['shift']());}}}(a295_0x2258,0x5e530));function a295_0x2820(_0x219322,_0x59ef2e){_0x219322=_0x219322-0xa3;const _0x2258d5=a295_0x2258();let _0x2820e6=_0x2258d5[_0x219322];return _0x2820e6;}export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x2af416){const _0x3eb40b=a295_0x2820;return _0x2af416[_0x3eb40b(0xae)]()[_0x3eb40b(0xab)](/_([a-z])/g,(_0x5ad7de,_0x3b2d98)=>_0x3b2d98['toUpperCase']());}export function findHookLocationByRemoteId(_0x84165b,_0x4ec9d4){const _0x3dd34d=a295_0x2820;if(!_0x4ec9d4)return undefined;for(const [_0x3312ab,_0x523e9b]of Object[_0x3dd34d(0xbb)](_0x84165b)){if(_0x523e9b['remoteId']===_0x4ec9d4&&_0x523e9b['datasetCode']&&_0x523e9b[_0x3dd34d(0xb8)]&&_0x523e9b['functionNode']){const _0x51e550=_0x3312ab['split']('/')[0x1];return{'alias':_0x51e550||_0x523e9b[_0x3dd34d(0xb1)],'datasetCode':_0x523e9b[_0x3dd34d(0xac)],'operationType':_0x523e9b['operationType'],'functionNode':_0x523e9b['functionNode']};}}return undefined;}export function extractScriptDescription(_0x1d3efe){const _0x39907d=a295_0x2820,_0x326486=_0x1d3efe['match'](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x326486?.[0x1])return undefined;const _0xcd01a6=_0x326486[0x1],_0x13f4b9=_0x3e8a53=>{const _0x5a7356=a295_0x2820,_0x131597=_0x3e8a53?.[_0x5a7356(0xb2)]();if(!_0x131597||_0x131597===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x131597===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x131597;},_0xbfbe71=_0xcd01a6[_0x39907d(0xa9)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0xbfbe71)return _0x13f4b9(_0xbfbe71[0x1]);const _0x4516d1=_0xcd01a6[_0x39907d(0xa5)](/\r?\n/)[_0x39907d(0xaa)](_0x146288=>_0x146288[_0x39907d(0xab)](/^\s*\*\s?/,'')[_0x39907d(0xb2)]()),_0x375c71=_0x4516d1[_0x39907d(0xb9)](_0x19c45c=>/^\[\s*脚本类型\s*]\s*\S+/[_0x39907d(0xa7)](_0x19c45c))&&_0x4516d1['some'](_0x2b450c=>/^\[\s*脚本名称\s*]\s*\S+/[_0x39907d(0xa7)](_0x2b450c));if(!_0x375c71)return undefined;for(const _0x5a4703 of _0x4516d1){if(!_0x5a4703||_0x5a4703['startsWith']('@')||/^\[[^\]]+]\s*/['test'](_0x5a4703))continue;return _0x13f4b9(_0x5a4703);}return undefined;}export function isValidBffFunctionName(_0x17f4ea){const _0xb9465=a295_0x2820;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xb9465(0xa7)](_0x17f4ea);}function a295_0x2258(){const _0x2987fe=['toLowerCase','147sXUROs','6587xCghur','alias','trim','4zwkoRW','after','3864KUfcze','909425usxBFN','273QtHWaH','operationType','some','3010764qnlDVA','entries','4335pIReET','27WRPAFn','15832aGfnxZ','split','before','test','26744RoLHXG','match','map','replace','datasetCode','2384230CyESnA'];a295_0x2258=function(){return _0x2987fe;};return a295_0x2258();}export function normalizeHookFunctionNode(_0x5e4f7f){const _0x400c59=a295_0x2820;if(!_0x5e4f7f)return undefined;const _0x6619da=_0x5e4f7f['trim']()['toLowerCase']();if(_0x6619da===_0x400c59(0xa6)||_0x6619da===_0x400c59(0xb4))return _0x6619da;return undefined;}
@@ -1 +1 @@
1
- function a296_0xe07d(){const _0x3e2f9f=['131676EKQDFn','6137296lPwiUn','182Mgkgnn','80cxHFcH','12rDAyEc','24lfQaIb','/smartapi/db-analysis/cross-db/start','10429920hIAsRV','32008hlAAYd','2cLONkk','4647213nqTIFY','860639YqiATg','326856XRUVZd'];a296_0xe07d=function(){return _0x3e2f9f;};return a296_0xe07d();}const a296_0x2dc399=a296_0x5f1d;(function(_0x5dc44a,_0x2dfc16){const _0x9b8b3f=a296_0x5f1d,_0x228b82=_0x5dc44a();while(!![]){try{const _0x302d93=-parseInt(_0x9b8b3f(0x1d3))/0x1*(parseInt(_0x9b8b3f(0x1d1))/0x2)+-parseInt(_0x9b8b3f(0x1cd))/0x3*(parseInt(_0x9b8b3f(0x1d5))/0x4)+parseInt(_0x9b8b3f(0x1d8))/0x5*(parseInt(_0x9b8b3f(0x1d4))/0x6)+parseInt(_0x9b8b3f(0x1d7))/0x7*(-parseInt(_0x9b8b3f(0x1d0))/0x8)+-parseInt(_0x9b8b3f(0x1d2))/0x9+parseInt(_0x9b8b3f(0x1cf))/0xa+parseInt(_0x9b8b3f(0x1d6))/0xb*(parseInt(_0x9b8b3f(0x1cc))/0xc);if(_0x302d93===_0x2dfc16)break;else _0x228b82['push'](_0x228b82['shift']());}catch(_0x483ad0){_0x228b82['push'](_0x228b82['shift']());}}}(a296_0xe07d,0xb1c6a));function a296_0x5f1d(_0x5992f0,_0xef97b2){_0x5992f0=_0x5992f0-0x1cc;const _0xe07d62=a296_0xe07d();let _0x5f1d5a=_0xe07d62[_0x5992f0];return _0x5f1d5a;}export const CROSS_DB_ANALYSIS_PATHS={'start':a296_0x2dc399(0x1ce),'status':'/smartapi/db-analysis/cross-db/status','latest':'/smartapi/db-analysis/cross-db/latest-job'};
1
+ function a296_0x2fd0(){const _0x29c71c=['/smartapi/db-analysis/cross-db/start','129521XxdgYJ','5036CmBhpz','2245eJZleA','/smartapi/db-analysis/cross-db/latest-job','328304iLWjPC','4255000MKFjye','/smartapi/db-analysis/cross-db/status','1814226DSNozO','275920DBhFLQ','252144deJybI','234ZzczTF','774kwgXvf'];a296_0x2fd0=function(){return _0x29c71c;};return a296_0x2fd0();}function a296_0x49bd(_0x5164f2,_0x42f3ad){_0x5164f2=_0x5164f2-0xb1;const _0x2fd098=a296_0x2fd0();let _0x49bd72=_0x2fd098[_0x5164f2];return _0x49bd72;}const a296_0xa40c24=a296_0x49bd;(function(_0x173e41,_0x2300b2){const _0x4dedaa=a296_0x49bd,_0x4d0b61=_0x173e41();while(!![]){try{const _0x3fcbf5=parseInt(_0x4dedaa(0xb6))/0x1+parseInt(_0x4dedaa(0xb1))/0x2+-parseInt(_0x4dedaa(0xb4))/0x3+parseInt(_0x4dedaa(0xbb))/0x4*(-parseInt(_0x4dedaa(0xbc))/0x5)+-parseInt(_0x4dedaa(0xb7))/0x6*(parseInt(_0x4dedaa(0xba))/0x7)+-parseInt(_0x4dedaa(0xb2))/0x8+-parseInt(_0x4dedaa(0xb8))/0x9*(-parseInt(_0x4dedaa(0xb5))/0xa);if(_0x3fcbf5===_0x2300b2)break;else _0x4d0b61['push'](_0x4d0b61['shift']());}catch(_0x566bdc){_0x4d0b61['push'](_0x4d0b61['shift']());}}}(a296_0x2fd0,0x59473));export const CROSS_DB_ANALYSIS_PATHS={'start':a296_0xa40c24(0xb9),'status':a296_0xa40c24(0xb3),'latest':a296_0xa40c24(0xbd)};
@@ -1 +1 @@
1
- function a297_0x3f38(_0x2aa3a9,_0x4ee3d7){_0x2aa3a9=_0x2aa3a9-0x1ed;const _0x3a10b2=a297_0x3a10();let _0x3f3862=_0x3a10b2[_0x2aa3a9];return _0x3f3862;}const a297_0x1975a4=a297_0x3f38;(function(_0x42ccc8,_0x3f609d){const _0x34ea20=a297_0x3f38,_0x1c8a08=_0x42ccc8();while(!![]){try{const _0x4d9d47=parseInt(_0x34ea20(0x1f0))/0x1+-parseInt(_0x34ea20(0x1f3))/0x2*(parseInt(_0x34ea20(0x1ee))/0x3)+parseInt(_0x34ea20(0x1fb))/0x4+-parseInt(_0x34ea20(0x1f7))/0x5+parseInt(_0x34ea20(0x1ef))/0x6*(-parseInt(_0x34ea20(0x1ed))/0x7)+-parseInt(_0x34ea20(0x1f1))/0x8*(parseInt(_0x34ea20(0x1f5))/0x9)+-parseInt(_0x34ea20(0x1fa))/0xa*(-parseInt(_0x34ea20(0x1f9))/0xb);if(_0x4d9d47===_0x3f609d)break;else _0x1c8a08['push'](_0x1c8a08['shift']());}catch(_0x19d2f4){_0x1c8a08['push'](_0x1c8a08['shift']());}}}(a297_0x3a10,0xe700a));export const CROSS_DB_RELATION_PATHS={'list':a297_0x1975a4(0x1f8),'create':a297_0x1975a4(0x1f2),'update':a297_0x1975a4(0x1f4),'delete':a297_0x1975a4(0x1f6)};function a297_0x3a10(){const _0x42fb98=['/smartapi/cross-db-relation/query','18538179aOyKwR','20vXBYeW','343068EaKUBH','2863WWQQOy','3lchcav','4902MvEDuQ','768197SlREIl','904JYulqA','/smartapi/cross-db-relation/create','1093418oNjlTq','/smartapi/cross-db-relation/update','76851JQpDCj','/smartapi/cross-db-relation/delete','7162935jiNXop'];a297_0x3a10=function(){return _0x42fb98;};return a297_0x3a10();}
1
+ const a297_0x2f7f5f=a297_0xe021;(function(_0x5326d4,_0x338f43){const _0x78805=a297_0xe021,_0x1e81be=_0x5326d4();while(!![]){try{const _0x3b965e=-parseInt(_0x78805(0x160))/0x1+parseInt(_0x78805(0x161))/0x2*(parseInt(_0x78805(0x15c))/0x3)+-parseInt(_0x78805(0x15b))/0x4+parseInt(_0x78805(0x165))/0x5+-parseInt(_0x78805(0x15f))/0x6+parseInt(_0x78805(0x166))/0x7+parseInt(_0x78805(0x164))/0x8;if(_0x3b965e===_0x338f43)break;else _0x1e81be['push'](_0x1e81be['shift']());}catch(_0x1a1dee){_0x1e81be['push'](_0x1e81be['shift']());}}}(a297_0x3be4,0x8b37f));function a297_0x3be4(){const _0x258c0f=['/smartapi/cross-db-relation/update','8214832jwzgpC','3866545DqlZnp','1355116NGtgDn','2431592bgobqV','1692ijmLcs','/smartapi/cross-db-relation/delete','/smartapi/cross-db-relation/create','6301260lMzXKA','160768jIrSIr','1402NoopRX','/smartapi/cross-db-relation/query'];a297_0x3be4=function(){return _0x258c0f;};return a297_0x3be4();}function a297_0xe021(_0x4d8421,_0x54df07){_0x4d8421=_0x4d8421-0x15b;const _0x3be455=a297_0x3be4();let _0xe02123=_0x3be455[_0x4d8421];return _0xe02123;}export const CROSS_DB_RELATION_PATHS={'list':a297_0x2f7f5f(0x162),'create':a297_0x2f7f5f(0x15e),'update':a297_0x2f7f5f(0x163),'delete':a297_0x2f7f5f(0x15d)};
@@ -1 +1 @@
1
- (function(_0xbda056,_0x41f75d){const _0x211045=a298_0x52b7,_0x5864da=_0xbda056();while(!![]){try{const _0x453493=-parseInt(_0x211045(0xa6))/0x1*(-parseInt(_0x211045(0xae))/0x2)+parseInt(_0x211045(0xb2))/0x3*(parseInt(_0x211045(0xa5))/0x4)+parseInt(_0x211045(0x98))/0x5*(-parseInt(_0x211045(0xb3))/0x6)+-parseInt(_0x211045(0xa2))/0x7*(-parseInt(_0x211045(0xa0))/0x8)+-parseInt(_0x211045(0xab))/0x9+parseInt(_0x211045(0xa9))/0xa*(-parseInt(_0x211045(0x9a))/0xb)+parseInt(_0x211045(0x96))/0xc;if(_0x453493===_0x41f75d)break;else _0x5864da['push'](_0x5864da['shift']());}catch(_0x251cb1){_0x5864da['push'](_0x5864da['shift']());}}}(a298_0x298d,0xca16d));function a298_0x52b7(_0x2d647d,_0x5e2388){_0x2d647d=_0x2d647d-0x95;const _0x298dcc=a298_0x298d();let _0x52b77e=_0x298dcc[_0x2d647d];return _0x52b77e;}function a298_0x298d(){const _0xf163fd=['30179328rshFBU','map','15gundSJ','join','11nYTNke','find','entries','No\x20database\x20matching\x20\x22','dbId','db-','6056EXWKkR','\x22\x20under\x20app\x20\x22','1708yyUNiD','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','.\x20Be\x20more\x20specific.','12HYelRq','1967PuPloU','filter','length','2703430cUgnZm','set','12456810rjsaFa','get','toLowerCase','68MqrdjE','dbName','isNaN','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','560562ajTdCR','1689804vuTlhs','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','includes','\x22\x20matches\x20multiple\x20databases:\x20'];a298_0x298d=function(){return _0xf163fd;};return a298_0x298d();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x258535){const _0x3a6b72=a298_0x52b7;if(cache['has'](_0x258535))return cache[_0x3a6b72(0xac)](_0x258535);const _0x4b15f9=await listDatasets(_0x258535),_0x969274=new Map();for(const _0x41c611 of _0x4b15f9){const _0x4dc488=_0x41c611['dbtableConfig'];_0x4dc488?.['dbId']!=null&&_0x969274['set'](_0x4dc488[_0x3a6b72(0x9e)],_0x4dc488[_0x3a6b72(0xaf)]??_0x3a6b72(0x9f)+_0x4dc488['dbId']);}const _0x4fba83=[..._0x969274[_0x3a6b72(0x9c)]()]['map'](([_0x463e30,_0x15717f])=>({'dbId':_0x463e30,'dbName':_0x15717f}));return cache[_0x3a6b72(0xaa)](_0x258535,_0x4fba83),_0x4fba83;}export async function resolveDb(_0x5b0cff,_0x593ce2){const _0x21ef78=a298_0x52b7,_0x3b7101=await listDatabases(_0x5b0cff);if(_0x3b7101[_0x21ef78(0xa8)]===0x0)return{'resolved':[],'error':_0x21ef78(0xb1)+_0x5b0cff+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x593ce2)return{'resolved':_0x3b7101};const _0x587a7b=Number(_0x593ce2);if(!Number[_0x21ef78(0xb0)](_0x587a7b)){const _0x198bad=_0x3b7101[_0x21ef78(0x9b)](_0x27e9f0=>_0x27e9f0[_0x21ef78(0x9e)]===_0x587a7b);if(_0x198bad)return{'resolved':[_0x198bad]};}const _0x2720d6=_0x593ce2[_0x21ef78(0xad)](),_0x6949a6=_0x3b7101[_0x21ef78(0xa7)](_0x115cdc=>_0x115cdc[_0x21ef78(0xaf)][_0x21ef78(0xad)]()[_0x21ef78(0xb5)](_0x2720d6));if(_0x6949a6[_0x21ef78(0xa8)]>0x0)return{'resolved':_0x6949a6};const _0x16774e=_0x3b7101[_0x21ef78(0x97)](_0x694ebb=>_0x694ebb['dbName']+'\x20('+_0x694ebb[_0x21ef78(0x9e)]+')')[_0x21ef78(0x99)](',\x20');return{'resolved':[],'error':_0x21ef78(0x9d)+_0x593ce2+_0x21ef78(0xa1)+_0x5b0cff+'\x22.\x20Available:\x20'+_0x16774e+_0x21ef78(0xa3)};}export async function resolveOneDb(_0x36edcf,_0x438263){const _0x5a4381=a298_0x52b7,{resolved:_0x200ada,error:_0x55b22f}=await resolveDb(_0x36edcf,_0x438263);if(_0x55b22f)return{'db':null,'error':_0x55b22f};if(_0x200ada[_0x5a4381(0xa8)]===0x1)return{'db':_0x200ada[0x0]};if(!_0x438263){const _0x10ae20=_0x200ada[_0x5a4381(0x97)](_0x205d25=>_0x205d25[_0x5a4381(0xaf)]+'\x20('+_0x205d25[_0x5a4381(0x9e)]+')')[_0x5a4381(0x99)](',\x20');return{'db':null,'error':_0x5a4381(0xb4)+_0x10ae20};}const _0x483ce5=_0x200ada[_0x5a4381(0x97)](_0x2782f9=>_0x2782f9[_0x5a4381(0xaf)]+'\x20('+_0x2782f9[_0x5a4381(0x9e)]+')')[_0x5a4381(0x99)](',\x20');return{'db':null,'error':'\x22'+_0x438263+_0x5a4381(0x95)+_0x483ce5+_0x5a4381(0xa4)};}export async function getDbName(_0x47869d,_0x5c2423){const _0x2af99c=a298_0x52b7,_0x26133f=await listDatabases(_0x47869d);return _0x26133f[_0x2af99c(0x9b)](_0xc244e1=>_0xc244e1['dbId']===_0x5c2423)?.[_0x2af99c(0xaf)];}
1
+ (function(_0x24eca3,_0x24a4f7){const _0x5056ca=a298_0x3852,_0x38810d=_0x24eca3();while(!![]){try{const _0x4a0f77=-parseInt(_0x5056ca(0xe8))/0x1+-parseInt(_0x5056ca(0xec))/0x2*(parseInt(_0x5056ca(0xda))/0x3)+-parseInt(_0x5056ca(0xdd))/0x4+-parseInt(_0x5056ca(0xd6))/0x5*(parseInt(_0x5056ca(0xd5))/0x6)+-parseInt(_0x5056ca(0xea))/0x7*(-parseInt(_0x5056ca(0xee))/0x8)+parseInt(_0x5056ca(0xe4))/0x9*(-parseInt(_0x5056ca(0xf2))/0xa)+parseInt(_0x5056ca(0xe2))/0xb*(parseInt(_0x5056ca(0xed))/0xc);if(_0x4a0f77===_0x24a4f7)break;else _0x38810d['push'](_0x38810d['shift']());}catch(_0x16aec7){_0x38810d['push'](_0x38810d['shift']());}}}(a298_0x57b6,0xd7f6d));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x3ef300){const _0x55ee0e=a298_0x3852;if(cache['has'](_0x3ef300))return cache[_0x55ee0e(0xe1)](_0x3ef300);const _0x1f2263=await listDatasets(_0x3ef300),_0x152b70=new Map();for(const _0x3a3607 of _0x1f2263){const _0x5ae386=_0x3a3607[_0x55ee0e(0xf1)];_0x5ae386?.[_0x55ee0e(0xe0)]!=null&&_0x152b70[_0x55ee0e(0xdf)](_0x5ae386[_0x55ee0e(0xe0)],_0x5ae386[_0x55ee0e(0xf0)]??'db-'+_0x5ae386['dbId']);}const _0x1396f3=[..._0x152b70[_0x55ee0e(0xe5)]()][_0x55ee0e(0xe9)](([_0x273576,_0x5a70de])=>({'dbId':_0x273576,'dbName':_0x5a70de}));return cache[_0x55ee0e(0xdf)](_0x3ef300,_0x1396f3),_0x1396f3;}function a298_0x57b6(){const _0x20a011=['No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','dbName','dbtableConfig','2487070KnxQjb','15384wHcYYc','2435kfWhrK','.\x20Be\x20more\x20specific.','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','length','2818119pGipzQ','\x22.\x20Available:\x20','find','1284332Maariy','No\x20database\x20matching\x20\x22','set','dbId','get','433081YQUeJe','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','9OFZXte','entries','join','toLowerCase','1541313ILKKOy','map','367059qbugwL','filter','2KeNJTG','1548NkrLrA','16IipcjX'];a298_0x57b6=function(){return _0x20a011;};return a298_0x57b6();}export async function resolveDb(_0x332240,_0x34ddb2){const _0x1d5a54=a298_0x3852,_0x32bb46=await listDatabases(_0x332240);if(_0x32bb46[_0x1d5a54(0xd9)]===0x0)return{'resolved':[],'error':_0x1d5a54(0xef)+_0x332240+_0x1d5a54(0xd8)};if(!_0x34ddb2)return{'resolved':_0x32bb46};const _0x38ad99=Number(_0x34ddb2);if(!Number['isNaN'](_0x38ad99)){const _0x596d10=_0x32bb46[_0x1d5a54(0xdc)](_0x97535f=>_0x97535f[_0x1d5a54(0xe0)]===_0x38ad99);if(_0x596d10)return{'resolved':[_0x596d10]};}const _0xb9a6cb=_0x34ddb2[_0x1d5a54(0xe7)](),_0xd6f64b=_0x32bb46[_0x1d5a54(0xeb)](_0x1f6b3a=>_0x1f6b3a['dbName']['toLowerCase']()['includes'](_0xb9a6cb));if(_0xd6f64b[_0x1d5a54(0xd9)]>0x0)return{'resolved':_0xd6f64b};const _0x130339=_0x32bb46[_0x1d5a54(0xe9)](_0x45633d=>_0x45633d[_0x1d5a54(0xf0)]+'\x20('+_0x45633d[_0x1d5a54(0xe0)]+')')[_0x1d5a54(0xe6)](',\x20');return{'resolved':[],'error':_0x1d5a54(0xde)+_0x34ddb2+'\x22\x20under\x20app\x20\x22'+_0x332240+_0x1d5a54(0xdb)+_0x130339+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}function a298_0x3852(_0x24442e,_0x5cdeed){_0x24442e=_0x24442e-0xd5;const _0x57b6b4=a298_0x57b6();let _0x38523a=_0x57b6b4[_0x24442e];return _0x38523a;}export async function resolveOneDb(_0x389608,_0x5cab4f){const _0x2d682c=a298_0x3852,{resolved:_0x2daa72,error:_0x1a7e50}=await resolveDb(_0x389608,_0x5cab4f);if(_0x1a7e50)return{'db':null,'error':_0x1a7e50};if(_0x2daa72['length']===0x1)return{'db':_0x2daa72[0x0]};if(!_0x5cab4f){const _0x4e85ad=_0x2daa72[_0x2d682c(0xe9)](_0x572e8b=>_0x572e8b[_0x2d682c(0xf0)]+'\x20('+_0x572e8b['dbId']+')')['join'](',\x20');return{'db':null,'error':_0x2d682c(0xe3)+_0x4e85ad};}const _0x1539a1=_0x2daa72[_0x2d682c(0xe9)](_0x2bf310=>_0x2bf310['dbName']+'\x20('+_0x2bf310['dbId']+')')[_0x2d682c(0xe6)](',\x20');return{'db':null,'error':'\x22'+_0x5cab4f+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x1539a1+_0x2d682c(0xd7)};}export async function getDbName(_0x24a2bf,_0xb6bcef){const _0x53426b=a298_0x3852,_0x440781=await listDatabases(_0x24a2bf);return _0x440781[_0x53426b(0xdc)](_0x41043c=>_0x41043c[_0x53426b(0xe0)]===_0xb6bcef)?.[_0x53426b(0xf0)];}