@lovrabet/rabetbase-cli 2.5.12-beta.1 → 2.5.13-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 (380) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase/guides/custom-page-workflow.md +32 -2
  375. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +106 -6
  376. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  377. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  378. package/skills/rabetbase.manifest.json +3 -3
  379. package/templates/custom-pages/blank.json +1 -1
  380. package/templates/custom-pages/dashboard.json +1 -1
@@ -1 +1 @@
1
- const a290_0x3a0cfb=a290_0x243a;(function(_0x259752,_0x5d7d21){const _0x37f4db=a290_0x243a,_0x4869b1=_0x259752();while(!![]){try{const _0x311251=parseInt(_0x37f4db(0x1ce))/0x1*(parseInt(_0x37f4db(0x1d2))/0x2)+-parseInt(_0x37f4db(0x1bf))/0x3+-parseInt(_0x37f4db(0x1e9))/0x4+-parseInt(_0x37f4db(0x1c0))/0x5+-parseInt(_0x37f4db(0x1d5))/0x6+parseInt(_0x37f4db(0x1be))/0x7*(-parseInt(_0x37f4db(0x1d7))/0x8)+parseInt(_0x37f4db(0x1dc))/0x9*(parseInt(_0x37f4db(0x1da))/0xa);if(_0x311251===_0x5d7d21)break;else _0x4869b1['push'](_0x4869b1['shift']());}catch(_0x108234){_0x4869b1['push'](_0x4869b1['shift']());}}}(a290_0xbf41,0x3acd4));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=['COMMON','ENDPOINT',a290_0x3a0cfb(0x1cc)];export function normalizeBffType(_0x39eacf){const _0x5daaa2=a290_0x3a0cfb;if(!_0x39eacf)return undefined;const _0x6ea247=_0x39eacf[_0x5daaa2(0x1d8)]()[_0x5daaa2(0x1d3)]();return SUPPORTED_BFF_TYPES[_0x5daaa2(0x1e6)](_0x6ea247)?_0x6ea247:undefined;}async function scanJsFilesRecursively(_0x25caca,_0x3edcb3){const _0x30b693=a290_0x3a0cfb,_0x181c13=[];try{const _0x4400f1=await readdir(_0x25caca,{'withFileTypes':!![]});for(const _0x174157 of _0x4400f1){const _0x32c581=join(_0x25caca,_0x174157[_0x30b693(0x1c8)]);if(_0x174157[_0x30b693(0x1e4)]())_0x181c13['push'](...await scanJsFilesRecursively(_0x32c581,_0x3edcb3+'/'+_0x174157[_0x30b693(0x1c8)]));else _0x174157[_0x30b693(0x1c2)]()&&_0x174157['name'][_0x30b693(0x1ca)]('.js')&&_0x181c13['push']({'lockKey':_0x3edcb3+'/'+_0x174157[_0x30b693(0x1c8)][_0x30b693(0x1c1)](/\.js$/,''),'filePath':_0x32c581});}}catch(_0x4988db){if(_0x4988db[_0x30b693(0x1d6)]!==_0x30b693(0x1c5))throw _0x4988db;}return _0x181c13;}async function scanFlatFunctions(_0x1cc9de,_0x4c67cd){const _0x2f105a=a290_0x3a0cfb,_0x547f10=join(_0x1cc9de[_0x2f105a(0x1dd)],_0x4c67cd),_0x55bd93=await scanJsFilesRecursively(_0x547f10,_0x4c67cd);return _0x55bd93[_0x2f105a(0x1cb)](({lockKey:_0x235899,filePath:_0x31e883})=>({'type':_0x4c67cd,'name':_0x235899[_0x2f105a(0x1e8)]('/')['at'](-0x1)??'','filePath':_0x31e883,'lockKey':_0x235899}));}async function scanHookFunctions(_0x34d47f){const _0x267dec=a290_0x3a0cfb,_0x16f8e3=join(_0x34d47f[_0x267dec(0x1dd)],_0x267dec(0x1cc)),_0x4057f2=[];try{const _0x1f6dc3=await readdir(_0x16f8e3,{'withFileTypes':!![]});for(const _0x3e3ffc of _0x1f6dc3){if(!_0x3e3ffc[_0x267dec(0x1e4)]())continue;const _0x2a5509=_0x3e3ffc[_0x267dec(0x1c8)],_0xa3673d=join(_0x16f8e3,_0x2a5509),_0xb936c1=await readdir(_0xa3673d,{'withFileTypes':!![]});for(const _0x420f15 of _0xb936c1){if(!_0x420f15[_0x267dec(0x1e4)]())continue;const _0x3017dc=_0x420f15[_0x267dec(0x1c8)],_0x440467=join(_0xa3673d,_0x3017dc),_0x307235=await readdir(_0x440467,{'withFileTypes':!![]});for(const _0x5a37bc of _0x307235){if(!_0x5a37bc[_0x267dec(0x1e4)]())continue;const _0x32f64c=_0x5a37bc[_0x267dec(0x1c8)],_0x78a637=join(_0x440467,_0x32f64c),_0x1c5f63=await readdir(_0x78a637,{'withFileTypes':!![]});for(const _0x4bae7f of _0x1c5f63){if(!_0x4bae7f[_0x267dec(0x1c2)]()||!_0x4bae7f[_0x267dec(0x1c8)][_0x267dec(0x1ca)](_0x267dec(0x1cf)))continue;const _0xdc4d66=_0x4bae7f['name'][_0x267dec(0x1c1)](/\.js$/,'');_0x4057f2[_0x267dec(0x1e1)]({'type':'HOOK','name':_0xdc4d66,'filePath':join(_0x78a637,_0x4bae7f['name']),'lockKey':_0x267dec(0x1c7)+_0x2a5509+'/'+_0x3017dc+'/'+_0x32f64c+'/'+_0xdc4d66,'alias':_0x2a5509,'operationType':_0x3017dc,'functionNode':_0x32f64c});}}}}}catch(_0x6f524d){if(_0x6f524d[_0x267dec(0x1d6)]!==_0x267dec(0x1c5))throw _0x6f524d;}return _0x4057f2;}export async function scanLocalBffFunctions(_0x3548dd,_0x3d8811){const _0x48bd6b=a290_0x3a0cfb;if(_0x3d8811===_0x48bd6b(0x1db)||_0x3d8811===_0x48bd6b(0x1de))return scanFlatFunctions(_0x3548dd,_0x3d8811);if(_0x3d8811===_0x48bd6b(0x1cc))return scanHookFunctions(_0x3548dd);const [_0x10499c,_0x3ef9e1,_0x32cd59]=await Promise[_0x48bd6b(0x1d0)]([scanFlatFunctions(_0x3548dd,_0x48bd6b(0x1db)),scanFlatFunctions(_0x3548dd,_0x48bd6b(0x1de)),scanHookFunctions(_0x3548dd)]);return[..._0x10499c,..._0x3ef9e1,..._0x32cd59];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x440d85){const _0x2da8a3=a290_0x3a0cfb;return SAFE_LOCK_KEY_SEGMENT[_0x2da8a3(0x1c4)](_0x440d85)&&_0x440d85!=='.'&&_0x440d85!=='..';}export function resolveLocalFilePathFromLockKey(_0x1cbcab,_0xeca012){const _0x13bb1d=a290_0x3a0cfb,_0xa0d599=_0xeca012['split']('/');if(!_0xa0d599[_0x13bb1d(0x1e5)](isSafeLockKeySegment))throw new Error(_0x13bb1d(0x1e3)+_0xeca012);const _0x49fef8=resolve(join(_0x1cbcab[_0x13bb1d(0x1dd)],..._0xa0d599)+'.js'),_0x5d4702=resolve(_0x1cbcab[_0x13bb1d(0x1dd)]);if(_0x49fef8!==_0x5d4702&&!_0x49fef8['startsWith'](_0x5d4702+sep))throw new Error(_0x13bb1d(0x1c6)+_0x49fef8);return _0x49fef8;}export function createHookLocationMap(_0x299097){const _0xa6ba5d=a290_0x3a0cfb,_0x470f77=new Map();for(const _0x3da21d of _0x299097){_0x3da21d[_0xa6ba5d(0x1cd)]&&_0x470f77['set'](_0x3da21d[_0xa6ba5d(0x1cd)],{'datasetCode':_0x3da21d[_0xa6ba5d(0x1c3)],'operationType':snakeToCamel(_0x3da21d[_0xa6ba5d(0x1d9)]),'functionNode':_0xa6ba5d(0x1e0)}),_0x3da21d['afterScriptId']&&_0x470f77[_0xa6ba5d(0x1d1)](_0x3da21d['afterScriptId'],{'datasetCode':_0x3da21d[_0xa6ba5d(0x1c3)],'operationType':snakeToCamel(_0x3da21d[_0xa6ba5d(0x1d9)]),'functionNode':_0xa6ba5d(0x1d4)});}return _0x470f77;}function a290_0x243a(_0x3c7443,_0x46686b){_0x3c7443=_0x3c7443-0x1be;const _0xbf4101=a290_0xbf41();let _0x243a4e=_0xbf4101[_0x3c7443];return _0x243a4e;}export function resolveRemoteScriptTarget(_0x58bfb0,_0x326692,_0x41d22c,_0x9bf31a,_0x24a01f){const _0x3d3169=a290_0x3a0cfb,_0x204ac3=normalizeBffType(_0x326692[_0x3d3169(0x1e7)]);if(!_0x204ac3||!_0x326692[_0x3d3169(0x1df)])return null;if(_0x204ac3===_0x3d3169(0x1cc)){const _0x4f3fdf=_0x326692['id']?_0x41d22c['get'](_0x326692['id']):undefined,_0x31cddf=findHookLocationByRemoteId(_0x9bf31a,_0x326692['id']),_0x558170=_0x4f3fdf?{..._0x31cddf?.[_0x3d3169(0x1c3)]===_0x4f3fdf['datasetCode']?_0x31cddf:{},..._0x4f3fdf}:_0x31cddf;if(!_0x558170)return null;const _0x4cb740=_0x24a01f['get'](_0x558170['datasetCode']['toLowerCase']()),_0x3cf655=_0x4cb740??_0x558170[_0x3d3169(0x1c3)],_0x4132b0={..._0x558170,'alias':_0x4cb740},_0x4ae1d1='HOOK/'+_0x3cf655+'/'+_0x4132b0[_0x3d3169(0x1d9)]+'/'+_0x4132b0[_0x3d3169(0x1e2)]+'/'+_0x326692['functionName'];if(!_0x4ae1d1[_0x3d3169(0x1e8)]('/')[_0x3d3169(0x1e5)](isSafeLockKeySegment))return null;return{'lockKey':_0x4ae1d1,'filePath':resolveLocalFilePathFromLockKey(_0x58bfb0,_0x4ae1d1),'type':_0x3d3169(0x1cc),'hookLocation':_0x4132b0};}const _0x52a588=_0x204ac3+'/'+_0x326692[_0x3d3169(0x1df)];if(!_0x52a588[_0x3d3169(0x1e8)]('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0x52a588,'filePath':resolveLocalFilePathFromLockKey(_0x58bfb0,_0x52a588),'type':_0x204ac3};}export async function ensureParentDirectory(_0x213845){await mkdir(dirname(_0x213845),{'recursive':!![]});}function a290_0xbf41(){const _0x300286=['map','HOOK','beforeScriptId','73192ODVTHx','.js','all','set','8WxIslI','toUpperCase','after','2208954frMFRL','code','8mKEQZf','trim','operationType','655620anTNZX','COMMON','117TTWZbS','scriptsRootDir','ENDPOINT','functionName','before','push','functionNode','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','isDirectory','every','includes','scriptType','split','14676sofTUk','333431gKxpyT','152679McfMLY','2169340IrqFrY','replace','isFile','datasetCode','test','ENOENT','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','HOOK/','name','F_OK','endsWith'];a290_0xbf41=function(){return _0x300286;};return a290_0xbf41();}export async function fileExists(_0xf6400a){const _0x19ea1d=a290_0x3a0cfb;try{return await access(_0xf6400a,constants[_0x19ea1d(0x1c9)]),!![];}catch{return![];}}export async function directoryExists(_0x21fb81){try{const _0x3fc50e=await stat(_0x21fb81);return _0x3fc50e['isDirectory']();}catch{return![];}}
1
+ const a290_0x34f7ef=a290_0x368d;(function(_0x183d8e,_0x57eedb){const _0x4291d0=a290_0x368d,_0x850eb6=_0x183d8e();while(!![]){try{const _0x27ca8c=parseInt(_0x4291d0(0x107))/0x1+parseInt(_0x4291d0(0xfc))/0x2*(-parseInt(_0x4291d0(0xfe))/0x3)+-parseInt(_0x4291d0(0xf6))/0x4+parseInt(_0x4291d0(0x112))/0x5*(-parseInt(_0x4291d0(0x118))/0x6)+-parseInt(_0x4291d0(0xf4))/0x7+parseInt(_0x4291d0(0xfa))/0x8+-parseInt(_0x4291d0(0xf3))/0x9*(-parseInt(_0x4291d0(0xff))/0xa);if(_0x27ca8c===_0x57eedb)break;else _0x850eb6['push'](_0x850eb6['shift']());}catch(_0x25e4e9){_0x850eb6['push'](_0x850eb6['shift']());}}}(a290_0x439b,0xb3c64));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=['COMMON',a290_0x34f7ef(0x110),a290_0x34f7ef(0xf1)];export function normalizeBffType(_0x52e057){const _0x36b4fc=a290_0x34f7ef;if(!_0x52e057)return undefined;const _0x5eb40b=_0x52e057['trim']()[_0x36b4fc(0x116)]();return SUPPORTED_BFF_TYPES[_0x36b4fc(0xf9)](_0x5eb40b)?_0x5eb40b:undefined;}async function scanJsFilesRecursively(_0x42f904,_0x2ffaba){const _0x3f5b33=a290_0x34f7ef,_0x585b22=[];try{const _0x119e0e=await readdir(_0x42f904,{'withFileTypes':!![]});for(const _0x5b52cb of _0x119e0e){const _0x1f0d15=join(_0x42f904,_0x5b52cb[_0x3f5b33(0x104)]);if(_0x5b52cb[_0x3f5b33(0x115)]())_0x585b22[_0x3f5b33(0x105)](...await scanJsFilesRecursively(_0x1f0d15,_0x2ffaba+'/'+_0x5b52cb['name']));else _0x5b52cb['isFile']()&&_0x5b52cb[_0x3f5b33(0x104)][_0x3f5b33(0x111)](_0x3f5b33(0xf7))&&_0x585b22['push']({'lockKey':_0x2ffaba+'/'+_0x5b52cb[_0x3f5b33(0x104)][_0x3f5b33(0xfd)](/\.js$/,''),'filePath':_0x1f0d15});}}catch(_0x55b34a){if(_0x55b34a[_0x3f5b33(0x102)]!=='ENOENT')throw _0x55b34a;}return _0x585b22;}async function scanFlatFunctions(_0x2d16c3,_0x1ebee7){const _0x3c7905=a290_0x34f7ef,_0x3eec67=join(_0x2d16c3['scriptsRootDir'],_0x1ebee7),_0x19f0ca=await scanJsFilesRecursively(_0x3eec67,_0x1ebee7);return _0x19f0ca[_0x3c7905(0x114)](({lockKey:_0x29e91c,filePath:_0x189af6})=>({'type':_0x1ebee7,'name':_0x29e91c[_0x3c7905(0x106)]('/')['at'](-0x1)??'','filePath':_0x189af6,'lockKey':_0x29e91c}));}function a290_0x368d(_0x41cfb9,_0x367c1f){_0x41cfb9=_0x41cfb9-0xf0;const _0x439bd4=a290_0x439b();let _0x368d45=_0x439bd4[_0x41cfb9];return _0x368d45;}async function scanHookFunctions(_0x4cecb5){const _0x42741e=a290_0x34f7ef,_0x359a40=join(_0x4cecb5[_0x42741e(0x11a)],'HOOK'),_0x2b9250=[];try{const _0x5d9704=await readdir(_0x359a40,{'withFileTypes':!![]});for(const _0x8f01d1 of _0x5d9704){if(!_0x8f01d1[_0x42741e(0x115)]())continue;const _0x5c3196=_0x8f01d1[_0x42741e(0x104)],_0x5a0e12=join(_0x359a40,_0x5c3196),_0xed60e=await readdir(_0x5a0e12,{'withFileTypes':!![]});for(const _0x271752 of _0xed60e){if(!_0x271752[_0x42741e(0x115)]())continue;const _0x2c2316=_0x271752[_0x42741e(0x104)],_0x766050=join(_0x5a0e12,_0x2c2316),_0x43c241=await readdir(_0x766050,{'withFileTypes':!![]});for(const _0x35eacd of _0x43c241){if(!_0x35eacd[_0x42741e(0x115)]())continue;const _0x57c45d=_0x35eacd[_0x42741e(0x104)],_0xbf7f99=join(_0x766050,_0x57c45d),_0xb82c70=await readdir(_0xbf7f99,{'withFileTypes':!![]});for(const _0x151286 of _0xb82c70){if(!_0x151286[_0x42741e(0xfb)]()||!_0x151286['name']['endsWith']('.js'))continue;const _0x4bea76=_0x151286[_0x42741e(0x104)]['replace'](/\.js$/,'');_0x2b9250[_0x42741e(0x105)]({'type':_0x42741e(0xf1),'name':_0x4bea76,'filePath':join(_0xbf7f99,_0x151286[_0x42741e(0x104)]),'lockKey':_0x42741e(0x113)+_0x5c3196+'/'+_0x2c2316+'/'+_0x57c45d+'/'+_0x4bea76,'alias':_0x5c3196,'operationType':_0x2c2316,'functionNode':_0x57c45d});}}}}}catch(_0x2ab90a){if(_0x2ab90a['code']!==_0x42741e(0xf5))throw _0x2ab90a;}return _0x2b9250;}export async function scanLocalBffFunctions(_0x35264e,_0x3a6ffe){const _0x3f7750=a290_0x34f7ef;if(_0x3a6ffe===_0x3f7750(0x10b)||_0x3a6ffe===_0x3f7750(0x110))return scanFlatFunctions(_0x35264e,_0x3a6ffe);if(_0x3a6ffe==='HOOK')return scanHookFunctions(_0x35264e);const [_0x474e5f,_0x558557,_0x357057]=await Promise[_0x3f7750(0x11c)]([scanFlatFunctions(_0x35264e,_0x3f7750(0x10b)),scanFlatFunctions(_0x35264e,'ENDPOINT'),scanHookFunctions(_0x35264e)]);return[..._0x474e5f,..._0x558557,..._0x357057];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x304b49){const _0x587131=a290_0x34f7ef;return SAFE_LOCK_KEY_SEGMENT[_0x587131(0x10d)](_0x304b49)&&_0x304b49!=='.'&&_0x304b49!=='..';}export function resolveLocalFilePathFromLockKey(_0x1179eb,_0xb7947f){const _0x2fb0cf=a290_0x34f7ef,_0x188a76=_0xb7947f[_0x2fb0cf(0x106)]('/');if(!_0x188a76[_0x2fb0cf(0x100)](isSafeLockKeySegment))throw new Error(_0x2fb0cf(0x117)+_0xb7947f);const _0x4f15bb=resolve(join(_0x1179eb[_0x2fb0cf(0x11a)],..._0x188a76)+'.js'),_0x1b46be=resolve(_0x1179eb['scriptsRootDir']);if(_0x4f15bb!==_0x1b46be&&!_0x4f15bb[_0x2fb0cf(0x108)](_0x1b46be+sep))throw new Error(_0x2fb0cf(0x103)+_0x4f15bb);return _0x4f15bb;}export function createHookLocationMap(_0x5d478a){const _0x4bb71a=a290_0x34f7ef,_0x14775b=new Map();for(const _0x3259c8 of _0x5d478a){_0x3259c8[_0x4bb71a(0x10a)]&&_0x14775b[_0x4bb71a(0xf8)](_0x3259c8[_0x4bb71a(0x10a)],{'datasetCode':_0x3259c8['datasetCode'],'operationType':snakeToCamel(_0x3259c8[_0x4bb71a(0x10c)]),'functionNode':'before'}),_0x3259c8[_0x4bb71a(0x101)]&&_0x14775b[_0x4bb71a(0xf8)](_0x3259c8[_0x4bb71a(0x101)],{'datasetCode':_0x3259c8[_0x4bb71a(0x109)],'operationType':snakeToCamel(_0x3259c8['operationType']),'functionNode':_0x4bb71a(0x10f)});}return _0x14775b;}export function resolveRemoteScriptTarget(_0x42a090,_0x4d175a,_0x13e06d,_0x601032,_0x5b88ec){const _0x25cdf4=a290_0x34f7ef,_0x4aac05=normalizeBffType(_0x4d175a[_0x25cdf4(0xf2)]);if(!_0x4aac05||!_0x4d175a[_0x25cdf4(0x10e)])return null;if(_0x4aac05===_0x25cdf4(0xf1)){const _0x1c97ed=_0x4d175a['id']?_0x13e06d[_0x25cdf4(0x11b)](_0x4d175a['id']):undefined,_0x20a0a9=findHookLocationByRemoteId(_0x601032,_0x4d175a['id']),_0x21b2c3=_0x1c97ed?{..._0x20a0a9?.[_0x25cdf4(0x109)]===_0x1c97ed['datasetCode']?_0x20a0a9:{},..._0x1c97ed}:_0x20a0a9;if(!_0x21b2c3)return null;const _0x49c10e=_0x5b88ec['get'](_0x21b2c3['datasetCode'][_0x25cdf4(0x119)]()),_0x491d23=_0x49c10e??_0x21b2c3['datasetCode'],_0x184778={..._0x21b2c3,'alias':_0x49c10e},_0x404e91=_0x25cdf4(0x113)+_0x491d23+'/'+_0x184778[_0x25cdf4(0x10c)]+'/'+_0x184778['functionNode']+'/'+_0x4d175a['functionName'];if(!_0x404e91[_0x25cdf4(0x106)]('/')[_0x25cdf4(0x100)](isSafeLockKeySegment))return null;return{'lockKey':_0x404e91,'filePath':resolveLocalFilePathFromLockKey(_0x42a090,_0x404e91),'type':'HOOK','hookLocation':_0x184778};}const _0xffc462=_0x4aac05+'/'+_0x4d175a[_0x25cdf4(0x10e)];if(!_0xffc462[_0x25cdf4(0x106)]('/')[_0x25cdf4(0x100)](isSafeLockKeySegment))return null;return{'lockKey':_0xffc462,'filePath':resolveLocalFilePathFromLockKey(_0x42a090,_0xffc462),'type':_0x4aac05};}function a290_0x439b(){const _0x13f81a=['every','afterScriptId','code','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','name','push','split','209590jvEgRk','startsWith','datasetCode','beforeScriptId','COMMON','operationType','test','functionName','after','ENDPOINT','endsWith','2491010asYalV','HOOK/','map','isDirectory','toUpperCase','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','6qxwHBS','toLowerCase','scriptsRootDir','get','all','F_OK','HOOK','scriptType','261jvPITw','995505ELbrLn','ENOENT','768200qPyvjl','.js','set','includes','1938960BfzJpK','isFile','674mymBDk','replace','4536LZlXfK','560830FjSNwa'];a290_0x439b=function(){return _0x13f81a;};return a290_0x439b();}export async function ensureParentDirectory(_0x15c894){await mkdir(dirname(_0x15c894),{'recursive':!![]});}export async function fileExists(_0x10b12e){const _0x4032d7=a290_0x34f7ef;try{return await access(_0x10b12e,constants[_0x4032d7(0xf0)]),!![];}catch{return![];}}export async function directoryExists(_0x21c22e){try{const _0x186de7=await stat(_0x21c22e);return _0x186de7['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5cb92a,_0x1ca3af){const _0x228a8e=a291_0x2232,_0x11e00e=_0x5cb92a();while(!![]){try{const _0x58cde6=-parseInt(_0x228a8e(0xcc))/0x1*(parseInt(_0x228a8e(0xd9))/0x2)+-parseInt(_0x228a8e(0xcf))/0x3*(parseInt(_0x228a8e(0xce))/0x4)+parseInt(_0x228a8e(0xd8))/0x5+-parseInt(_0x228a8e(0xcb))/0x6+parseInt(_0x228a8e(0xda))/0x7*(parseInt(_0x228a8e(0xd3))/0x8)+parseInt(_0x228a8e(0xd7))/0x9*(parseInt(_0x228a8e(0xd6))/0xa)+parseInt(_0x228a8e(0xd1))/0xb*(-parseInt(_0x228a8e(0xd5))/0xc);if(_0x58cde6===_0x1ca3af)break;else _0x11e00e['push'](_0x11e00e['shift']());}catch(_0x307ca9){_0x11e00e['push'](_0x11e00e['shift']());}}}(a291_0x4a2b,0x8b5ef));import{readFile}from'node:fs/promises';function a291_0x2232(_0x4f8012,_0xef861e){_0x4f8012=_0x4f8012-0xca;const _0x4a2b6f=a291_0x4a2b();let _0x22325b=_0x4a2b6f[_0x4f8012];return _0x22325b;}import a291_0x3357bf from'node:crypto';export function computeContentHash(_0x438778){const _0x199ca7=a291_0x2232;return a291_0x3357bf[_0x199ca7(0xca)](_0x199ca7(0xd2))[_0x199ca7(0xd0)](_0x438778)[_0x199ca7(0xcd)](_0x199ca7(0xd4));}function a291_0x4a2b(){const _0x3c1e64=['40PmaZcL','hex','3180828gERnsJ','90BTQrfs','849357QLAjqB','3652720IHJhap','1810858kJuKXE','957523bPPovL','createHash','3041808KTaHmF','1lTfPpH','digest','62068lCUDOr','3BKivWH','update','11YFfMvh','md5'];a291_0x4a2b=function(){return _0x3c1e64;};return a291_0x4a2b();}export async function computeFileHash(_0x7fd497){const _0x5b95de=await readFile(_0x7fd497,'utf8');return computeContentHash(_0x5b95de);}
1
+ (function(_0x4719f8,_0x1c0265){const _0x38d6dd=a291_0x3d3e,_0x165a02=_0x4719f8();while(!![]){try{const _0x3dc2fe=-parseInt(_0x38d6dd(0x158))/0x1*(parseInt(_0x38d6dd(0x15f))/0x2)+-parseInt(_0x38d6dd(0x153))/0x3+parseInt(_0x38d6dd(0x15b))/0x4*(-parseInt(_0x38d6dd(0x154))/0x5)+parseInt(_0x38d6dd(0x157))/0x6+parseInt(_0x38d6dd(0x15d))/0x7*(parseInt(_0x38d6dd(0x15e))/0x8)+parseInt(_0x38d6dd(0x15a))/0x9+-parseInt(_0x38d6dd(0x160))/0xa;if(_0x3dc2fe===_0x1c0265)break;else _0x165a02['push'](_0x165a02['shift']());}catch(_0x4c4b54){_0x165a02['push'](_0x165a02['shift']());}}}(a291_0x1129,0xe4e6e));function a291_0x1129(){const _0x6ed300=['8879478ZCMMUT','13qIMvQf','hex','4801896OuJaio','4EieqVI','createHash','9970247fcWrtu','8dLuNMX','22126ALJgZU','11896720VuhFWD','1692882sVSggm','3012055dtqAJi','utf8','md5'];a291_0x1129=function(){return _0x6ed300;};return a291_0x1129();}function a291_0x3d3e(_0x1cfe39,_0x1266ee){_0x1cfe39=_0x1cfe39-0x153;const _0x11292d=a291_0x1129();let _0x3d3e1c=_0x11292d[_0x1cfe39];return _0x3d3e1c;}import{readFile}from'node:fs/promises';import a291_0x310f47 from'node:crypto';export function computeContentHash(_0x20da46){const _0x4bf552=a291_0x3d3e;return a291_0x310f47[_0x4bf552(0x15c)](_0x4bf552(0x156))['update'](_0x20da46)['digest'](_0x4bf552(0x159));}export async function computeFileHash(_0x2ee4de){const _0x3eeae5=a291_0x3d3e,_0x1e7ed8=await readFile(_0x2ee4de,_0x3eeae5(0x155));return computeContentHash(_0x1e7ed8);}
@@ -1 +1 @@
1
- (function(_0x170fb8,_0x5194d3){const _0x2a83f1=a292_0x3524,_0x4f8bcb=_0x170fb8();while(!![]){try{const _0x1ad26f=parseInt(_0x2a83f1(0x1f7))/0x1+parseInt(_0x2a83f1(0x1f1))/0x2*(-parseInt(_0x2a83f1(0x1d7))/0x3)+parseInt(_0x2a83f1(0x1de))/0x4+parseInt(_0x2a83f1(0x1ef))/0x5+parseInt(_0x2a83f1(0x1e3))/0x6*(-parseInt(_0x2a83f1(0x1cd))/0x7)+parseInt(_0x2a83f1(0x1c7))/0x8+parseInt(_0x2a83f1(0x1f5))/0x9*(parseInt(_0x2a83f1(0x1d9))/0xa);if(_0x1ad26f===_0x5194d3)break;else _0x4f8bcb['push'](_0x4f8bcb['shift']());}catch(_0x1f2c2b){_0x4f8bcb['push'](_0x4f8bcb['shift']());}}}(a292_0xf246,0x2bc42));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x393687){const _0x2e1128=a292_0x3524,_0x5963c9=[];for(const [_0x16de3d,_0xca92b2]of Object['entries'](_0x393687[_0x2e1128(0x1c6)])){const [_0x3404bc,_0x31bce6]=_0x16de3d[_0x2e1128(0x1cc)]('/');if(_0x3404bc!==_0x2e1128(0x1d2)||!_0x31bce6||!_0xca92b2['datasetCode'])continue;_0x5963c9['push']({'alias':_0x31bce6,'datasetCode':_0xca92b2[_0x2e1128(0x1ca)]});}return _0x5963c9;}export function uniqueTrackedHookDirectoryByDataset(_0x5a1f89){const _0xdb7712=a292_0x3524,_0x5f08fc=new Map();for(const _0x36e466 of trackedHookDirectoryMappings(_0x5a1f89)){const _0x1dbce9=directoryIdentity(_0x36e466['datasetCode']),_0x277ad1=_0x5f08fc[_0xdb7712(0x1c9)](_0x1dbce9)??new Map();_0x277ad1[_0xdb7712(0x1f3)](directoryIdentity(_0x36e466[_0xdb7712(0x1c8)]),_0x36e466[_0xdb7712(0x1c8)]),_0x5f08fc[_0xdb7712(0x1f3)](_0x1dbce9,_0x277ad1);}const _0x39f80d=new Map();for(const [_0x1a18dc,_0x3178b5]of _0x5f08fc){if(_0x3178b5[_0xdb7712(0x1e7)]>0x1)throw hookDirectoryError(_0xdb7712(0x1ce),_0xdb7712(0x1e8)+_0x1a18dc+_0xdb7712(0x1e6)+[..._0x3178b5[_0xdb7712(0x1df)]()][_0xdb7712(0x1db)](',\x20')+'.',{'datasetCode':_0x1a18dc,'directories':[..._0x3178b5['values']()]});_0x39f80d[_0xdb7712(0x1f3)](_0x1a18dc,[..._0x3178b5['values']()][0x0]);}return _0x39f80d;}export function assertUnambiguousHookDirectoryMappings(_0x27f919){const _0x312f50=a292_0x3524,_0x380484=new Map();for(const {alias:_0x418cc3,datasetCode:_0x5be17b}of _0x27f919){const _0x6faf28=directoryIdentity(_0x418cc3),_0x42f656=_0x380484['get'](_0x6faf28)??new Set();_0x42f656[_0x312f50(0x1e1)](_0x5be17b),_0x380484[_0x312f50(0x1f3)](_0x6faf28,_0x42f656);}for(const [_0x358897,_0x5628d0]of _0x380484){if(_0x5628d0[_0x312f50(0x1e7)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x312f50(0x1e5)+_0x358897+_0x312f50(0x1e2),{'directoryName':_0x358897,'datasetCodes':[..._0x5628d0]});}}export function assertUnambiguousHookAliases(_0x2ba89f){const _0x4f417c=a292_0x3524,_0x4f1fe0=[..._0x2ba89f],_0x908b28=new Map(),_0x5cae3d=new Map();for(const {alias:_0x46d0c2,datasetCode:_0x261404}of _0x4f1fe0){const _0x3189d7=directoryIdentity(_0x46d0c2),_0xc4306f=directoryIdentity(_0x261404),_0xcdc4d5=_0x908b28[_0x4f417c(0x1c9)](_0x3189d7)??new Set();_0xcdc4d5[_0x4f417c(0x1e1)](_0x261404),_0x908b28[_0x4f417c(0x1f3)](_0x3189d7,_0xcdc4d5);const _0x364412=_0x5cae3d['get'](_0xc4306f)??new Set();_0x364412['add'](_0x46d0c2),_0x5cae3d['set'](_0xc4306f,_0x364412);}for(const [_0xfa743b,_0x1d82ca]of _0x908b28){if(_0x1d82ca['size']>0x1)throw hookDirectoryError(_0x4f417c(0x1dc),_0x4f417c(0x1e9)+_0xfa743b+_0x4f417c(0x1e2),{'alias':_0xfa743b,'datasetCodes':[..._0x1d82ca]});}for(const [_0x3db762,_0x97bad9]of _0x5cae3d){if(_0x97bad9[_0x4f417c(0x1e7)]>0x1)throw hookDirectoryError(_0x4f417c(0x1dc),_0x4f417c(0x1e8)+_0x3db762+_0x4f417c(0x1f2),{'datasetCode':_0x3db762,'aliases':[..._0x97bad9]});}}export function buildHookDirectoryIndexes(_0x294610,_0x19c5ee=[]){const _0x1def77=a292_0x3524,_0xa9ae25=[..._0x19c5ee];assertUnambiguousHookDirectoryMappings(_0xa9ae25[_0x1def77(0x1c4)](([_0xe9224c,_0x2eefeb])=>({'alias':_0xe9224c,'datasetCode':_0x2eefeb})));const _0x1d8a17=new Map(),_0x358b8f=new Map();for(const _0x138e24 of _0x294610){appendUnique(_0x1d8a17,directoryIdentity(_0x138e24[_0x1def77(0x1f4)]),_0x138e24,_0x59a63c=>_0x59a63c['code']);}for(const [_0x321d11,_0x5ecab7]of _0xa9ae25){appendUnique(_0x358b8f,directoryIdentity(_0x321d11),_0x5ecab7,_0x1ee5bc=>_0x1ee5bc);}return{'datasetCodeToDatasets':_0x1d8a17,'aliasToDatasetCodes':_0x358b8f};}export function resolvePushHookDirectory(_0x4022de,_0x46817d,_0xd6c727){const _0x4c517d=a292_0x3524,_0x34c663=directoryIdentity(_0x4022de),_0x2d8966=_0xd6c727['datasetCodeToDatasets'][_0x4c517d(0x1c9)](_0x34c663)??[],_0x2b2d20=_0xd6c727[_0x4c517d(0x1c3)][_0x4c517d(0x1c9)](_0x34c663)??[],_0x1844b1=new Set([..._0x2d8966['map'](_0x232b8a=>_0x232b8a[_0x4c517d(0x1f4)]),..._0x2b2d20]);if(_0x1844b1['size']>0x1)throw hookDirectoryError(_0x4c517d(0x1ec),_0x4c517d(0x1e5)+_0x4022de+_0x4c517d(0x1d6),{'directoryName':_0x4022de,'datasetCodes':[..._0x1844b1]});const _0x2010e4=[..._0x1844b1][0x0];if(_0x2010e4&&_0x46817d?.[_0x4c517d(0x1ca)]&&_0x2010e4!==_0x46817d[_0x4c517d(0x1ca)])throw hookDirectoryError(_0x4c517d(0x1d0),_0x4c517d(0x1e5)+_0x4022de+_0x4c517d(0x1d8)+_0x46817d[_0x4c517d(0x1ca)]+_0x4c517d(0x1e0)+_0x2010e4+'\x22.',{'directoryName':_0x4022de,'datasetCode':_0x2010e4,'lockedDatasetCode':_0x46817d[_0x4c517d(0x1ca)]});const _0x2c9d99=_0x2010e4?findDatasetByCode(_0xd6c727,_0x2010e4):undefined,_0x4c7942=!!_0x2010e4&&_0x2b2d20[_0x4c517d(0x1d5)](_0x2010e4);if(_0x2c9d99)return{'dataset':_0x2c9d99,'datasetCode':_0x2c9d99[_0x4c517d(0x1f4)],..._0x4c7942?{'alias':_0x4022de}:{},'directoryProtocol':_0x4c7942?_0x4c517d(0x1c8):_0x4c517d(0x1ca),'warnings':[]};const _0x49d199=_0x46817d?.['datasetCode'];if(_0x49d199){const _0x35178f=findDatasetByCode(_0xd6c727,_0x49d199);if(_0x35178f)return{'dataset':_0x35178f,'datasetCode':_0x35178f[_0x4c517d(0x1f4)],..._0x46817d[_0x4c517d(0x1c8)]?{'alias':_0x46817d['alias']}:{},'directoryProtocol':_0x46817d[_0x4c517d(0x1c8)]?_0x4c517d(0x1c8):'datasetCode','warnings':[]};}if(_0x2010e4||_0x49d199){const _0xa455c3=_0x2010e4??_0x49d199;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x4c517d(0x1e5)+_0x4022de+_0x4c517d(0x1e4),{'directoryName':_0x4022de,'datasetCode':_0xa455c3});}throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x4c517d(0x1d4)+_0x4022de+_0x4c517d(0x1ea),{'directoryName':_0x4022de});}export function preflightPushHookDirectories(_0x567bd5,_0x19b1b9,_0x841f2b,_0x1f641a){const _0x196fc7=a292_0x3524,_0x416253=new Map(),_0x5d18ce=new Map();for(const _0x120906 of _0x567bd5){if(_0x120906[_0x196fc7(0x1c5)]!==_0x196fc7(0x1d2))continue;const _0x334bf0=_0x120906[_0x196fc7(0x1c8)];if(!_0x334bf0)throw hookDirectoryError(_0x196fc7(0x1da),_0x196fc7(0x1cf)+_0x120906[_0x196fc7(0x1f0)],{'lockKey':_0x120906['lockKey']});let _0x5964a2;try{_0x5964a2=resolvePushHookDirectory(_0x334bf0,_0x19b1b9['functions'][_0x120906[_0x196fc7(0x1f0)]],_0x841f2b);}catch(_0x509b4c){if(_0x1f641a&&_0x509b4c instanceof CliError&&[_0x196fc7(0x1f6),_0x196fc7(0x1da)][_0x196fc7(0x1d5)](_0x509b4c[_0x196fc7(0x1f4)])){_0x1f641a['set'](_0x120906[_0x196fc7(0x1f0)],_0x509b4c[_0x196fc7(0x1cb)]);continue;}throw _0x509b4c;}_0x416253[_0x196fc7(0x1f3)](_0x120906['lockKey'],_0x5964a2);const _0x506a98=_0x5d18ce['get'](_0x5964a2[_0x196fc7(0x1ca)])??new Set();_0x506a98[_0x196fc7(0x1e1)](_0x334bf0),_0x5d18ce[_0x196fc7(0x1f3)](_0x5964a2['datasetCode'],_0x506a98);}for(const [_0x2fe030,_0x191fe8]of _0x5d18ce){if(_0x191fe8[_0x196fc7(0x1e7)]>0x1)throw hookDirectoryError(_0x196fc7(0x1ce),_0x196fc7(0x1e8)+_0x2fe030+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x191fe8][_0x196fc7(0x1db)](',\x20')+'.',{'datasetCode':_0x2fe030,'directories':[..._0x191fe8]});}return _0x416253;}export function hookDirectoryError(_0x5b4b30,_0xb2e65b,_0x629dbc){const _0x5bea4f=a292_0x3524,_0x823070=new CliError(_0x5b4b30,0x2,_0x5b4b30+':\x20'+_0xb2e65b);return _0x823070[_0x5bea4f(0x1ee)]=_0x629dbc,_0x823070;}function a292_0x3524(_0x19d521,_0x588091){_0x19d521=_0x19d521-0x1c2;const _0xf2461f=a292_0xf246();let _0x352459=_0xf2461f[_0x19d521];return _0x352459;}function a292_0xf246(){const _0x989b5b=['\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','datasetCodeToDatasets','HOOK_DIRECTORY_AMBIGUOUS','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','details','147215VTzoRx','lockKey','639278CbBjNM','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','set','code','9WNJAZO','HOOK_DATASET_NOT_FOUND','176721IRQKyu','normalize','length','aliasToDatasetCodes','map','type','functions','1284072VehRUh','alias','get','datasetCode','message','split','42hsvRxZ','HOOK_DUPLICATE_DIRECTORIES','Incomplete\x20HOOK\x20path:\x20','HOOK_MAPPING_DRIFT','push','HOOK','Dataset\x20code\x20\x22','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','includes','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','3HrqvWL','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','1032430KKGEqE','HOOK_DIRECTORY_UNRESOLVED','join','HOOK_ALIAS_AMBIGUOUS','NFC','188220sggcJZ','values','\x22\x20to\x20\x22','add','\x22\x20resolves\x20to\x20multiple\x20Datasets.','18066Krzbrm','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','HOOK\x20directory\x20\x22','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','size','Dataset\x20\x22','SDK\x20alias\x20\x22'];a292_0xf246=function(){return _0x989b5b;};return a292_0xf246();}function findDatasetByCode(_0x53ebc3,_0x13b74e){const _0x4ad0a2=a292_0x3524,_0x19ec53=_0x53ebc3[_0x4ad0a2(0x1eb)][_0x4ad0a2(0x1c9)](directoryIdentity(_0x13b74e))??[];if(_0x19ec53[_0x4ad0a2(0x1c2)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS',_0x4ad0a2(0x1d3)+_0x13b74e+_0x4ad0a2(0x1ed),{'datasetCode':_0x13b74e,'candidates':_0x19ec53['map'](datasetFact)});return _0x19ec53[0x0];}function directoryIdentity(_0x1365fa){const _0x21dbb6=a292_0x3524;return _0x1365fa[_0x21dbb6(0x1f8)](_0x21dbb6(0x1dd))['toLowerCase']();}function appendUnique(_0x25ff27,_0x2fde65,_0x5cbe3e,_0x13618c){const _0x34adca=a292_0x3524,_0x342ab1=_0x25ff27['get'](_0x2fde65)??[];!_0x342ab1['some'](_0x3f3684=>_0x13618c(_0x3f3684)===_0x13618c(_0x5cbe3e))&&_0x342ab1[_0x34adca(0x1d1)](_0x5cbe3e),_0x25ff27[_0x34adca(0x1f3)](_0x2fde65,_0x342ab1);}function datasetFact(_0xd8fc96){const _0x50e329=a292_0x3524;return{'id':_0xd8fc96['id'],'name':_0xd8fc96['name'],'datasetCode':_0xd8fc96[_0x50e329(0x1f4)]};}
1
+ (function(_0x1c9b10,_0x33b59d){const _0x1e86c9=a292_0x18fb,_0x1cf731=_0x1c9b10();while(!![]){try{const _0x5ab456=-parseInt(_0x1e86c9(0x101))/0x1+parseInt(_0x1e86c9(0xef))/0x2+parseInt(_0x1e86c9(0xfd))/0x3+-parseInt(_0x1e86c9(0x108))/0x4+parseInt(_0x1e86c9(0xe7))/0x5+parseInt(_0x1e86c9(0xe9))/0x6+-parseInt(_0x1e86c9(0xf8))/0x7;if(_0x5ab456===_0x33b59d)break;else _0x1cf731['push'](_0x1cf731['shift']());}catch(_0x5e059e){_0x1cf731['push'](_0x1cf731['shift']());}}}(a292_0x2b41,0x2ce65));function a292_0x2b41(){const _0x10aed3=['\x22\x20resolves\x20to\x20multiple\x20Datasets.','HOOK_DIRECTORY_AMBIGUOUS','datasetCodeToDatasets','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','Dataset\x20code\x20\x22','add','normalize','HOOK\x20directory\x20\x22','HOOK_MAPPING_DRIFT','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','includes','1814735LCBhmM','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','1910436ChdPSf','toLowerCase','aliasToDatasetCodes','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','set','join','272052firScS','map','Dataset\x20\x22','Incomplete\x20HOOK\x20path:\x20','type','\x22\x20to\x20\x22','lockKey','details','datasetCode','5330913JXxUTE','SDK\x20alias\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','HOOK_DATASET_NOT_FOUND','get','744876tlLcso','HOOK','NFC','message','89271UbkRQM','push','some','size','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','alias','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','123728iQTVvv','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','code','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','values','functions','entries','HOOK_DUPLICATE_DIRECTORIES'];a292_0x2b41=function(){return _0x10aed3;};return a292_0x2b41();}import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5a6c02){const _0x5a3351=a292_0x18fb,_0x295e0a=[];for(const [_0x91f837,_0x3fb9d2]of Object[_0x5a3351(0x10f)](_0x5a6c02['functions'])){const [_0x17c5e1,_0x235f62]=_0x91f837['split']('/');if(_0x17c5e1!==_0x5a3351(0xfe)||!_0x235f62||!_0x3fb9d2[_0x5a3351(0xf7)])continue;_0x295e0a['push']({'alias':_0x235f62,'datasetCode':_0x3fb9d2[_0x5a3351(0xf7)]});}return _0x295e0a;}export function uniqueTrackedHookDirectoryByDataset(_0x52c0e7){const _0x1c7f44=a292_0x18fb,_0x53ce74=new Map();for(const _0x52a475 of trackedHookDirectoryMappings(_0x52c0e7)){const _0x2f8a05=directoryIdentity(_0x52a475[_0x1c7f44(0xf7)]),_0xa283a=_0x53ce74['get'](_0x2f8a05)??new Map();_0xa283a[_0x1c7f44(0xed)](directoryIdentity(_0x52a475[_0x1c7f44(0x106)]),_0x52a475[_0x1c7f44(0x106)]),_0x53ce74[_0x1c7f44(0xed)](_0x2f8a05,_0xa283a);}const _0x49f020=new Map();for(const [_0x7be161,_0x2785f4]of _0x53ce74){if(_0x2785f4[_0x1c7f44(0x104)]>0x1)throw hookDirectoryError(_0x1c7f44(0x110),'Dataset\x20\x22'+_0x7be161+_0x1c7f44(0xe5)+[..._0x2785f4[_0x1c7f44(0x10d)]()][_0x1c7f44(0xee)](',\x20')+'.',{'datasetCode':_0x7be161,'directories':[..._0x2785f4[_0x1c7f44(0x10d)]()]});_0x49f020[_0x1c7f44(0xed)](_0x7be161,[..._0x2785f4[_0x1c7f44(0x10d)]()][0x0]);}return _0x49f020;}function a292_0x18fb(_0x22c2eb,_0x10a4fa){_0x22c2eb=_0x22c2eb-0xde;const _0x2b41a0=a292_0x2b41();let _0x18fb99=_0x2b41a0[_0x22c2eb];return _0x18fb99;}export function assertUnambiguousHookDirectoryMappings(_0x42c08c){const _0x52de10=a292_0x18fb,_0x2b4dac=new Map();for(const {alias:_0x2bd54c,datasetCode:_0x45cf1e}of _0x42c08c){const _0x1be6a9=directoryIdentity(_0x2bd54c),_0x426b2f=_0x2b4dac['get'](_0x1be6a9)??new Set();_0x426b2f[_0x52de10(0xe1)](_0x45cf1e),_0x2b4dac['set'](_0x1be6a9,_0x426b2f);}for(const [_0x5e6bd0,_0x20dbc3]of _0x2b4dac){if(_0x20dbc3[_0x52de10(0x104)]>0x1)throw hookDirectoryError(_0x52de10(0x112),_0x52de10(0xe3)+_0x5e6bd0+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x5e6bd0,'datasetCodes':[..._0x20dbc3]});}}export function assertUnambiguousHookAliases(_0x15fd39){const _0x288b42=a292_0x18fb,_0x2b45b2=[..._0x15fd39],_0x1a27fd=new Map(),_0x4c99bd=new Map();for(const {alias:_0x4c0711,datasetCode:_0x4f3be8}of _0x2b45b2){const _0xda4372=directoryIdentity(_0x4c0711),_0x1ed5c1=directoryIdentity(_0x4f3be8),_0xa96067=_0x1a27fd[_0x288b42(0xfc)](_0xda4372)??new Set();_0xa96067[_0x288b42(0xe1)](_0x4f3be8),_0x1a27fd[_0x288b42(0xed)](_0xda4372,_0xa96067);const _0x596ba6=_0x4c99bd[_0x288b42(0xfc)](_0x1ed5c1)??new Set();_0x596ba6[_0x288b42(0xe1)](_0x4c0711),_0x4c99bd[_0x288b42(0xed)](_0x1ed5c1,_0x596ba6);}for(const [_0x40288d,_0x73712b]of _0x1a27fd){if(_0x73712b['size']>0x1)throw hookDirectoryError(_0x288b42(0x109),_0x288b42(0xf9)+_0x40288d+_0x288b42(0x111),{'alias':_0x40288d,'datasetCodes':[..._0x73712b]});}for(const [_0x11c5d7,_0x536c49]of _0x4c99bd){if(_0x536c49[_0x288b42(0x104)]>0x1)throw hookDirectoryError(_0x288b42(0x109),_0x288b42(0xf1)+_0x11c5d7+_0x288b42(0xe8),{'datasetCode':_0x11c5d7,'aliases':[..._0x536c49]});}}export function buildHookDirectoryIndexes(_0xe42566,_0x35ff86=[]){const _0x30c612=a292_0x18fb,_0x4f0a5f=[..._0x35ff86];assertUnambiguousHookDirectoryMappings(_0x4f0a5f[_0x30c612(0xf0)](([_0x10e884,_0x3be988])=>({'alias':_0x10e884,'datasetCode':_0x3be988})));const _0x42ff78=new Map(),_0x36a3a5=new Map();for(const _0x912d34 of _0xe42566){appendUnique(_0x42ff78,directoryIdentity(_0x912d34[_0x30c612(0x10b)]),_0x912d34,_0x52550c=>_0x52550c[_0x30c612(0x10b)]);}for(const [_0x5ac869,_0x4ca5d1]of _0x4f0a5f){appendUnique(_0x36a3a5,directoryIdentity(_0x5ac869),_0x4ca5d1,_0x450778=>_0x450778);}return{'datasetCodeToDatasets':_0x42ff78,'aliasToDatasetCodes':_0x36a3a5};}export function resolvePushHookDirectory(_0x4299af,_0x5b16cf,_0xbf67eb){const _0xec4936=a292_0x18fb,_0x3b0d02=directoryIdentity(_0x4299af),_0x2ecf68=_0xbf67eb['datasetCodeToDatasets'][_0xec4936(0xfc)](_0x3b0d02)??[],_0x2e4af5=_0xbf67eb[_0xec4936(0xeb)][_0xec4936(0xfc)](_0x3b0d02)??[],_0x4b5e07=new Set([..._0x2ecf68[_0xec4936(0xf0)](_0x12ff45=>_0x12ff45['code']),..._0x2e4af5]);if(_0x4b5e07[_0xec4936(0x104)]>0x1)throw hookDirectoryError(_0xec4936(0x112),'HOOK\x20directory\x20\x22'+_0x4299af+_0xec4936(0x10c),{'directoryName':_0x4299af,'datasetCodes':[..._0x4b5e07]});const _0x425491=[..._0x4b5e07][0x0];if(_0x425491&&_0x5b16cf?.[_0xec4936(0xf7)]&&_0x425491!==_0x5b16cf[_0xec4936(0xf7)])throw hookDirectoryError(_0xec4936(0xe4),'HOOK\x20directory\x20\x22'+_0x4299af+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x5b16cf[_0xec4936(0xf7)]+_0xec4936(0xf4)+_0x425491+'\x22.',{'directoryName':_0x4299af,'datasetCode':_0x425491,'lockedDatasetCode':_0x5b16cf[_0xec4936(0xf7)]});const _0x2f6926=_0x425491?findDatasetByCode(_0xbf67eb,_0x425491):undefined,_0x111b6a=!!_0x425491&&_0x2e4af5[_0xec4936(0xe6)](_0x425491);if(_0x2f6926)return{'dataset':_0x2f6926,'datasetCode':_0x2f6926[_0xec4936(0x10b)],..._0x111b6a?{'alias':_0x4299af}:{},'directoryProtocol':_0x111b6a?'alias':_0xec4936(0xf7),'warnings':[]};const _0x2755ac=_0x5b16cf?.[_0xec4936(0xf7)];if(_0x2755ac){const _0x31000f=findDatasetByCode(_0xbf67eb,_0x2755ac);if(_0x31000f)return{'dataset':_0x31000f,'datasetCode':_0x31000f['code'],..._0x5b16cf[_0xec4936(0x106)]?{'alias':_0x5b16cf['alias']}:{},'directoryProtocol':_0x5b16cf['alias']?_0xec4936(0x106):_0xec4936(0xf7),'warnings':[]};}if(_0x425491||_0x2755ac){const _0x48cbba=_0x425491??_0x2755ac;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0xec4936(0xe3)+_0x4299af+_0xec4936(0xdf),{'directoryName':_0x4299af,'datasetCode':_0x48cbba});}throw hookDirectoryError(_0xec4936(0x10a),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x4299af+_0xec4936(0x107),{'directoryName':_0x4299af});}export function preflightPushHookDirectories(_0x3ed44e,_0x203736,_0x16b890,_0x5b294e){const _0x583297=a292_0x18fb,_0x518587=new Map(),_0x4cdb2a=new Map();for(const _0x5cd92c of _0x3ed44e){if(_0x5cd92c[_0x583297(0xf3)]!==_0x583297(0xfe))continue;const _0x25af5e=_0x5cd92c[_0x583297(0x106)];if(!_0x25af5e)throw hookDirectoryError(_0x583297(0x10a),_0x583297(0xf2)+_0x5cd92c['lockKey'],{'lockKey':_0x5cd92c[_0x583297(0xf5)]});let _0x2f903a;try{_0x2f903a=resolvePushHookDirectory(_0x25af5e,_0x203736[_0x583297(0x10e)][_0x5cd92c[_0x583297(0xf5)]],_0x16b890);}catch(_0x160c36){if(_0x5b294e&&_0x160c36 instanceof CliError&&[_0x583297(0xfb),_0x583297(0x10a)][_0x583297(0xe6)](_0x160c36[_0x583297(0x10b)])){_0x5b294e[_0x583297(0xed)](_0x5cd92c[_0x583297(0xf5)],_0x160c36[_0x583297(0x100)]);continue;}throw _0x160c36;}_0x518587[_0x583297(0xed)](_0x5cd92c[_0x583297(0xf5)],_0x2f903a);const _0x11b3e1=_0x4cdb2a[_0x583297(0xfc)](_0x2f903a[_0x583297(0xf7)])??new Set();_0x11b3e1[_0x583297(0xe1)](_0x25af5e),_0x4cdb2a[_0x583297(0xed)](_0x2f903a[_0x583297(0xf7)],_0x11b3e1);}for(const [_0x283a01,_0x5133fa]of _0x4cdb2a){if(_0x5133fa[_0x583297(0x104)]>0x1)throw hookDirectoryError(_0x583297(0x110),'Dataset\x20\x22'+_0x283a01+_0x583297(0x105)+[..._0x5133fa]['join'](',\x20')+'.',{'datasetCode':_0x283a01,'directories':[..._0x5133fa]});}return _0x518587;}export function hookDirectoryError(_0x5c6830,_0x567090,_0x14cd46){const _0x47303d=a292_0x18fb,_0x5614a7=new CliError(_0x5c6830,0x2,_0x5c6830+':\x20'+_0x567090);return _0x5614a7[_0x47303d(0xf6)]=_0x14cd46,_0x5614a7;}function findDatasetByCode(_0x42c604,_0x194c2d){const _0x34fd2a=a292_0x18fb,_0xd4bf5d=_0x42c604[_0x34fd2a(0xde)][_0x34fd2a(0xfc)](directoryIdentity(_0x194c2d))??[];if(_0xd4bf5d['length']>0x1)throw hookDirectoryError(_0x34fd2a(0xfa),_0x34fd2a(0xe0)+_0x194c2d+_0x34fd2a(0xec),{'datasetCode':_0x194c2d,'candidates':_0xd4bf5d[_0x34fd2a(0xf0)](datasetFact)});return _0xd4bf5d[0x0];}function directoryIdentity(_0x33e9df){const _0xd267ff=a292_0x18fb;return _0x33e9df[_0xd267ff(0xe2)](_0xd267ff(0xff))[_0xd267ff(0xea)]();}function appendUnique(_0x53a38c,_0x33102b,_0x5db7cb,_0x3eb77e){const _0x254ebb=a292_0x18fb,_0x97ec6c=_0x53a38c[_0x254ebb(0xfc)](_0x33102b)??[];!_0x97ec6c[_0x254ebb(0x103)](_0x228f90=>_0x3eb77e(_0x228f90)===_0x3eb77e(_0x5db7cb))&&_0x97ec6c[_0x254ebb(0x102)](_0x5db7cb),_0x53a38c['set'](_0x33102b,_0x97ec6c);}function datasetFact(_0x4e680c){const _0x5de443=a292_0x18fb;return{'id':_0x4e680c['id'],'name':_0x4e680c['name'],'datasetCode':_0x4e680c[_0x5de443(0x10b)]};}
@@ -1 +1 @@
1
- (function(_0x564581,_0x4a45e7){const _0x57ba51=a293_0x2685,_0x4853ac=_0x564581();while(!![]){try{const _0xfacff0=-parseInt(_0x57ba51(0x125))/0x1*(parseInt(_0x57ba51(0x11f))/0x2)+parseInt(_0x57ba51(0x11e))/0x3*(parseInt(_0x57ba51(0x10f))/0x4)+parseInt(_0x57ba51(0x11c))/0x5*(parseInt(_0x57ba51(0x10e))/0x6)+-parseInt(_0x57ba51(0x110))/0x7*(parseInt(_0x57ba51(0x10c))/0x8)+parseInt(_0x57ba51(0x115))/0x9+parseInt(_0x57ba51(0x111))/0xa+parseInt(_0x57ba51(0x119))/0xb*(parseInt(_0x57ba51(0x121))/0xc);if(_0xfacff0===_0x4a45e7)break;else _0x4853ac['push'](_0x4853ac['shift']());}catch(_0x5270c3){_0x4853ac['push'](_0x4853ac['shift']());}}}(a293_0x67c8,0xa66d8));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a293_0x2685(_0x1bbb38,_0x1f8e78){_0x1bbb38=_0x1bbb38-0x10c;const _0x67c841=a293_0x67c8();let _0x26851a=_0x67c841[_0x1bbb38];return _0x26851a;}export function createEmptyBffLock(){return{'apps':{}};}function a293_0x67c8(){const _0x55b324=['10674680ExaZTo',':\x20scriptsRoot\x20mismatch\x20—\x20','825966qcLqHo','1554772mQPSOf','7IBXpgp','7741980MRcnHX','code','object','scriptsRoot','9349353eAzXyh','utf8','functions','\x22.\x20','11orzHWj','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync','5JwbHCX','apps','3MbkTFm','1245610DQOhQE','\x22\x20vs\x20lock\x20\x22','3593508zlAXCQ','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','parse','current\x20\x22','1rjGFpY'];a293_0x67c8=function(){return _0x55b324;};return a293_0x67c8();}export function ensureLockScope(_0x3830b8,_0x1cb371,_0x2a1479,_0x2f3b87){const _0x533d93=a293_0x2685,_0x4576ee={'apps':_0x3830b8[_0x533d93(0x11d)]&&typeof _0x3830b8[_0x533d93(0x11d)]===_0x533d93(0x113)?_0x3830b8['apps']:{}};let _0x5707ad=_0x4576ee[_0x533d93(0x11d)][_0x1cb371];if(!_0x5707ad)return _0x5707ad={'scriptsRoot':_0x2a1479,'lastSync':'','functions':{}},_0x4576ee['apps'][_0x1cb371]=_0x5707ad,{'lockData':_0x4576ee,'appLock':_0x5707ad};if(!_0x5707ad[_0x533d93(0x114)])_0x5707ad[_0x533d93(0x114)]=_0x2a1479;else{if(_0x5707ad['scriptsRoot']!==_0x2a1479)throw new Error(_0x2f3b87+_0x533d93(0x10d)+(_0x533d93(0x124)+_0x2a1479+_0x533d93(0x120)+_0x5707ad['scriptsRoot']+_0x533d93(0x118))+_0x533d93(0x11a));}return!_0x5707ad[_0x533d93(0x117)]&&(_0x5707ad['functions']={}),!_0x5707ad[_0x533d93(0x11b)]&&(_0x5707ad[_0x533d93(0x11b)]=''),{'lockData':_0x4576ee,'appLock':_0x5707ad};}export async function readBffLockFile(_0x3b0583){const _0x297152=a293_0x2685;try{const _0x2cdfc2=await readFile(_0x3b0583,'utf8'),_0x19303f=JSON[_0x297152(0x123)](_0x2cdfc2);return{'apps':_0x19303f[_0x297152(0x11d)]&&typeof _0x19303f[_0x297152(0x11d)]==='object'?_0x19303f['apps']:{}};}catch(_0x11326b){if(_0x11326b[_0x297152(0x112)]==='ENOENT')return null;throw new Error(_0x297152(0x122)+String(_0x11326b));}}export async function writeBffLockFile(_0x4b0b3b,_0x153c1e){const _0x2cad31=a293_0x2685;await mkdir(dirname(_0x4b0b3b),{'recursive':!![]}),await writeFile(_0x4b0b3b,JSON['stringify'](_0x153c1e,null,0x2),_0x2cad31(0x116));}
1
+ (function(_0x18814d,_0x26a56e){const _0x158506=a293_0x2c21,_0x12c776=_0x18814d();while(!![]){try{const _0xa2a8c0=parseInt(_0x158506(0x125))/0x1+parseInt(_0x158506(0x120))/0x2+-parseInt(_0x158506(0x11e))/0x3*(parseInt(_0x158506(0x123))/0x4)+parseInt(_0x158506(0x11d))/0x5+-parseInt(_0x158506(0x122))/0x6+-parseInt(_0x158506(0x128))/0x7+-parseInt(_0x158506(0x121))/0x8;if(_0xa2a8c0===_0x26a56e)break;else _0x12c776['push'](_0x12c776['shift']());}catch(_0x3b50f1){_0x12c776['push'](_0x12c776['shift']());}}}(a293_0x41c8,0x4f155));function a293_0x41c8(){const _0xa660b=['2045225GkUusw','119901CHjvcI','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','729336onebcv','1564424CKgyTj','204546uDmRXL','36snnRbd','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','551012QqFxRA','code','scriptsRoot','2880171vUwesy','\x22.\x20','object','lastSync','utf8','apps','current\x20\x22','ENOENT','functions','\x22\x20vs\x20lock\x20\x22'];a293_0x41c8=function(){return _0xa660b;};return a293_0x41c8();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x34e03f,_0x55f736,_0x1977f6,_0x3a9166){const _0x593b16=a293_0x2c21,_0x31b658={'apps':_0x34e03f[_0x593b16(0x118)]&&typeof _0x34e03f['apps']===_0x593b16(0x115)?_0x34e03f[_0x593b16(0x118)]:{}};let _0x23263b=_0x31b658[_0x593b16(0x118)][_0x55f736];if(!_0x23263b)return _0x23263b={'scriptsRoot':_0x1977f6,'lastSync':'','functions':{}},_0x31b658[_0x593b16(0x118)][_0x55f736]=_0x23263b,{'lockData':_0x31b658,'appLock':_0x23263b};if(!_0x23263b['scriptsRoot'])_0x23263b[_0x593b16(0x127)]=_0x1977f6;else{if(_0x23263b['scriptsRoot']!==_0x1977f6)throw new Error(_0x3a9166+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x593b16(0x119)+_0x1977f6+_0x593b16(0x11c)+_0x23263b[_0x593b16(0x127)]+_0x593b16(0x129))+_0x593b16(0x124));}return!_0x23263b['functions']&&(_0x23263b[_0x593b16(0x11b)]={}),!_0x23263b[_0x593b16(0x116)]&&(_0x23263b[_0x593b16(0x116)]=''),{'lockData':_0x31b658,'appLock':_0x23263b};}function a293_0x2c21(_0x53bc95,_0x573bb5){_0x53bc95=_0x53bc95-0x115;const _0x41c810=a293_0x41c8();let _0x2c2119=_0x41c810[_0x53bc95];return _0x2c2119;}export async function readBffLockFile(_0x113e9e){const _0x48cade=a293_0x2c21;try{const _0x4e6455=await readFile(_0x113e9e,'utf8'),_0x35ba5e=JSON['parse'](_0x4e6455);return{'apps':_0x35ba5e[_0x48cade(0x118)]&&typeof _0x35ba5e[_0x48cade(0x118)]===_0x48cade(0x115)?_0x35ba5e[_0x48cade(0x118)]:{}};}catch(_0x1772fb){if(_0x1772fb[_0x48cade(0x126)]===_0x48cade(0x11a))return null;throw new Error(_0x48cade(0x11f)+String(_0x1772fb));}}export async function writeBffLockFile(_0x1a81d5,_0x120806){const _0x20b83f=a293_0x2c21;await mkdir(dirname(_0x1a81d5),{'recursive':!![]}),await writeFile(_0x1a81d5,JSON['stringify'](_0x120806,null,0x2),_0x20b83f(0x117));}
@@ -1 +1 @@
1
- const a295_0xbd764b=a295_0x2696;function a295_0x3354(){const _0x19a465=['alias','replace','TODO:\x20补充脚本功能描述','toLowerCase','map','13576856HqZdqi','functionNode','some','operationType','after','2976022wWeJrM','75dPddWH','trim','7374681yUgNYl','match','test','4815608zIJTpL','toUpperCase','TODO:\x20add\x20script\x20description','10dfIHJk','156tyLwaV','159885EifPXE','before','datasetCode','38950lVFBrI','17876gLRjMT','split'];a295_0x3354=function(){return _0x19a465;};return a295_0x3354();}(function(_0x947238,_0x4c829b){const _0x2984a3=a295_0x2696,_0x26c197=_0x947238();while(!![]){try{const _0xae8dcc=-parseInt(_0x2984a3(0x139))/0x1+-parseInt(_0x2984a3(0x13a))/0x2*(-parseInt(_0x2984a3(0x12c))/0x3)+parseInt(_0x2984a3(0x131))/0x4+-parseInt(_0x2984a3(0x136))/0x5*(-parseInt(_0x2984a3(0x135))/0x6)+-parseInt(_0x2984a3(0x12b))/0x7+-parseInt(_0x2984a3(0x126))/0x8+-parseInt(_0x2984a3(0x12e))/0x9*(-parseInt(_0x2984a3(0x134))/0xa);if(_0xae8dcc===_0x4c829b)break;else _0x26c197['push'](_0x26c197['shift']());}catch(_0x5c4aff){_0x26c197['push'](_0x26c197['shift']());}}}(a295_0x3354,0xdfde0));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a295_0xbd764b(0x123);function a295_0x2696(_0x2a0885,_0x18ca8e){_0x2a0885=_0x2a0885-0x122;const _0x33546d=a295_0x3354();let _0x2696e7=_0x33546d[_0x2a0885];return _0x2696e7;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a295_0xbd764b(0x133);export function snakeToCamel(_0x3834eb){const _0x1ecdbf=a295_0xbd764b;return _0x3834eb[_0x1ecdbf(0x124)]()[_0x1ecdbf(0x122)](/_([a-z])/g,(_0x468340,_0x5b79ee)=>_0x5b79ee[_0x1ecdbf(0x132)]());}export function findHookLocationByRemoteId(_0x57495a,_0x571d11){const _0x1eaa55=a295_0xbd764b;if(!_0x571d11)return undefined;for(const [_0x388c5a,_0x464054]of Object['entries'](_0x57495a)){if(_0x464054['remoteId']===_0x571d11&&_0x464054[_0x1eaa55(0x138)]&&_0x464054[_0x1eaa55(0x129)]&&_0x464054[_0x1eaa55(0x127)]){const _0x41d7ec=_0x388c5a['split']('/')[0x1];return{'alias':_0x41d7ec||_0x464054[_0x1eaa55(0x13c)],'datasetCode':_0x464054[_0x1eaa55(0x138)],'operationType':_0x464054[_0x1eaa55(0x129)],'functionNode':_0x464054[_0x1eaa55(0x127)]};}}return undefined;}export function extractScriptDescription(_0x8c9d01){const _0x20b3c8=a295_0xbd764b,_0x355c95=_0x8c9d01[_0x20b3c8(0x12f)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x355c95?.[0x1])return undefined;const _0x159245=_0x355c95[0x1],_0x301004=_0x3d09ea=>{const _0x33e078=_0x20b3c8,_0x4dcac1=_0x3d09ea?.[_0x33e078(0x12d)]();if(!_0x4dcac1||_0x4dcac1===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x4dcac1===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x4dcac1;},_0x4b829d=_0x159245[_0x20b3c8(0x12f)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x4b829d)return _0x301004(_0x4b829d[0x1]);const _0x2ac35f=_0x159245[_0x20b3c8(0x13b)](/\r?\n/)[_0x20b3c8(0x125)](_0x7330ad=>_0x7330ad['replace'](/^\s*\*\s?/,'')[_0x20b3c8(0x12d)]()),_0x9d4383=_0x2ac35f[_0x20b3c8(0x128)](_0x6cedaf=>/^\[\s*脚本类型\s*]\s*\S+/[_0x20b3c8(0x130)](_0x6cedaf))&&_0x2ac35f['some'](_0x264619=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x264619));if(!_0x9d4383)return undefined;for(const _0x491ffe of _0x2ac35f){if(!_0x491ffe||_0x491ffe['startsWith']('@')||/^\[[^\]]+]\s*/['test'](_0x491ffe))continue;return _0x301004(_0x491ffe);}return undefined;}export function isValidBffFunctionName(_0x6eaac0){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x6eaac0);}export function normalizeHookFunctionNode(_0x518820){const _0x532a78=a295_0xbd764b;if(!_0x518820)return undefined;const _0x53bee5=_0x518820['trim']()['toLowerCase']();if(_0x53bee5===_0x532a78(0x137)||_0x53bee5===_0x532a78(0x12a))return _0x53bee5;return undefined;}
1
+ const a295_0x46c8fd=a295_0x3fe0;(function(_0x576449,_0x256a07){const _0x3e3546=a295_0x3fe0,_0x8d8ecc=_0x576449();while(!![]){try{const _0x52e1d4=parseInt(_0x3e3546(0x81))/0x1+-parseInt(_0x3e3546(0x7d))/0x2+-parseInt(_0x3e3546(0x80))/0x3+-parseInt(_0x3e3546(0x79))/0x4*(-parseInt(_0x3e3546(0x6c))/0x5)+-parseInt(_0x3e3546(0x7e))/0x6+parseInt(_0x3e3546(0x6b))/0x7+parseInt(_0x3e3546(0x72))/0x8*(parseInt(_0x3e3546(0x82))/0x9);if(_0x52e1d4===_0x256a07)break;else _0x8d8ecc['push'](_0x8d8ecc['shift']());}catch(_0x163a10){_0x8d8ecc['push'](_0x8d8ecc['shift']());}}}(a295_0x111b,0x9c915));function a295_0x3fe0(_0x44a857,_0x6e347e){_0x44a857=_0x44a857-0x6b;const _0x111b48=a295_0x111b();let _0x3fe0f1=_0x111b48[_0x44a857];return _0x3fe0f1;}export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a295_0x46c8fd(0x78);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a295_0x46c8fd(0x74);export function snakeToCamel(_0x2632b8){const _0x55daf3=a295_0x46c8fd;return _0x2632b8[_0x55daf3(0x71)]()[_0x55daf3(0x6d)](/_([a-z])/g,(_0x516cce,_0x2dd500)=>_0x2dd500['toUpperCase']());}export function findHookLocationByRemoteId(_0x57cd53,_0x4c34a9){const _0x16cf16=a295_0x46c8fd;if(!_0x4c34a9)return undefined;for(const [_0x414e53,_0x554d2e]of Object['entries'](_0x57cd53)){if(_0x554d2e[_0x16cf16(0x7f)]===_0x4c34a9&&_0x554d2e[_0x16cf16(0x70)]&&_0x554d2e['operationType']&&_0x554d2e[_0x16cf16(0x73)]){const _0x113c25=_0x414e53[_0x16cf16(0x7b)]('/')[0x1];return{'alias':_0x113c25||_0x554d2e['alias'],'datasetCode':_0x554d2e[_0x16cf16(0x70)],'operationType':_0x554d2e['operationType'],'functionNode':_0x554d2e[_0x16cf16(0x73)]};}}return undefined;}export function extractScriptDescription(_0x519ab4){const _0x564c07=a295_0x46c8fd,_0x27f35a=_0x519ab4[_0x564c07(0x6e)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x27f35a?.[0x1])return undefined;const _0x3b582d=_0x27f35a[0x1],_0x273fa7=_0x529e36=>{const _0x864a1c=_0x564c07,_0x11d9fe=_0x529e36?.[_0x864a1c(0x7a)]();if(!_0x11d9fe||_0x11d9fe===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x11d9fe===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x11d9fe;},_0x509189=_0x3b582d['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x509189)return _0x273fa7(_0x509189[0x1]);const _0x5618c2=_0x3b582d[_0x564c07(0x7b)](/\r?\n/)['map'](_0x30d497=>_0x30d497[_0x564c07(0x6d)](/^\s*\*\s?/,'')[_0x564c07(0x7a)]()),_0x379a8d=_0x5618c2[_0x564c07(0x6f)](_0x258487=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x258487))&&_0x5618c2[_0x564c07(0x6f)](_0x3b0531=>/^\[\s*脚本名称\s*]\s*\S+/[_0x564c07(0x77)](_0x3b0531));if(!_0x379a8d)return undefined;for(const _0x5da4a7 of _0x5618c2){if(!_0x5da4a7||_0x5da4a7[_0x564c07(0x75)]('@')||/^\[[^\]]+]\s*/[_0x564c07(0x77)](_0x5da4a7))continue;return _0x273fa7(_0x5da4a7);}return undefined;}export function isValidBffFunctionName(_0x4b9dda){const _0x3741d3=a295_0x46c8fd;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3741d3(0x77)](_0x4b9dda);}function a295_0x111b(){const _0x454ee0=['trim','split','after','348738rMnjlP','335712ZbgmKv','remoteId','3673245oCDAIs','305114YZVsHa','3926943HEKeBy','3393005vsIbgH','8545ADOhCA','replace','match','some','datasetCode','toLowerCase','8KQGLIQ','functionNode','TODO:\x20add\x20script\x20description','startsWith','before','test','TODO:\x20补充脚本功能描述','2036XkKanc'];a295_0x111b=function(){return _0x454ee0;};return a295_0x111b();}export function normalizeHookFunctionNode(_0xd78fab){const _0x2a4be8=a295_0x46c8fd;if(!_0xd78fab)return undefined;const _0x4b33ea=_0xd78fab[_0x2a4be8(0x7a)]()[_0x2a4be8(0x71)]();if(_0x4b33ea===_0x2a4be8(0x76)||_0x4b33ea===_0x2a4be8(0x7c))return _0x4b33ea;return undefined;}
@@ -1 +1 @@
1
- function a296_0x555c(){const _0x141067=['/smartapi/db-analysis/cross-db/status','373289lkFtvq','1893285GyLQYh','5hahmaI','1450030HgaZmh','17886710JPLNJL','1552988wZgzyP','66rqxDTi','40CDEqfJ','48230061ZkTYoo','3330GqIseD','/smartapi/db-analysis/cross-db/start','1942WnzFqt'];a296_0x555c=function(){return _0x141067;};return a296_0x555c();}const a296_0x18cd5f=a296_0x3db7;(function(_0x4fe823,_0x5c196d){const _0x5b5cc8=a296_0x3db7,_0x48980a=_0x4fe823();while(!![]){try{const _0x58bee3=-parseInt(_0x5b5cc8(0x125))/0x1+parseInt(_0x5b5cc8(0x12d))/0x2*(-parseInt(_0x5b5cc8(0x12b))/0x3)+-parseInt(_0x5b5cc8(0x127))/0x4*(-parseInt(_0x5b5cc8(0x131))/0x5)+-parseInt(_0x5b5cc8(0x128))/0x6*(parseInt(_0x5b5cc8(0x12f))/0x7)+parseInt(_0x5b5cc8(0x129))/0x8*(parseInt(_0x5b5cc8(0x130))/0x9)+-parseInt(_0x5b5cc8(0x126))/0xa+parseInt(_0x5b5cc8(0x12a))/0xb;if(_0x58bee3===_0x5c196d)break;else _0x48980a['push'](_0x48980a['shift']());}catch(_0x1f8bd6){_0x48980a['push'](_0x48980a['shift']());}}}(a296_0x555c,0xe0fab));function a296_0x3db7(_0x1d44bf,_0x15ab32){_0x1d44bf=_0x1d44bf-0x125;const _0x555c3a=a296_0x555c();let _0x3db7ef=_0x555c3a[_0x1d44bf];return _0x3db7ef;}export const CROSS_DB_ANALYSIS_PATHS={'start':a296_0x18cd5f(0x12c),'status':a296_0x18cd5f(0x12e),'latest':'/smartapi/db-analysis/cross-db/latest-job'};
1
+ const a296_0x55545d=a296_0xbb1a;function a296_0xbb1a(_0x20a47d,_0x54637c){_0x20a47d=_0x20a47d-0x188;const _0x4b5dea=a296_0x4b5d();let _0xbb1a45=_0x4b5dea[_0x20a47d];return _0xbb1a45;}(function(_0x2f82ae,_0x199c38){const _0xf848dc=a296_0xbb1a,_0x497b15=_0x2f82ae();while(!![]){try{const _0x29e618=-parseInt(_0xf848dc(0x192))/0x1+parseInt(_0xf848dc(0x188))/0x2+parseInt(_0xf848dc(0x18e))/0x3+-parseInt(_0xf848dc(0x18a))/0x4+-parseInt(_0xf848dc(0x190))/0x5*(parseInt(_0xf848dc(0x18d))/0x6)+-parseInt(_0xf848dc(0x189))/0x7+parseInt(_0xf848dc(0x18b))/0x8;if(_0x29e618===_0x199c38)break;else _0x497b15['push'](_0x497b15['shift']());}catch(_0x524f87){_0x497b15['push'](_0x497b15['shift']());}}}(a296_0x4b5d,0xd225f));function a296_0x4b5d(){const _0x256aa7=['/smartapi/db-analysis/cross-db/start','1440537fulPpC','1735270mbQgjs','1371055ZXAmrm','4460068uFAfWd','14883008bDXnNL','/smartapi/db-analysis/cross-db/status','6ROalOU','2875767pavCDR','/smartapi/db-analysis/cross-db/latest-job','372070crxPHW'];a296_0x4b5d=function(){return _0x256aa7;};return a296_0x4b5d();}export const CROSS_DB_ANALYSIS_PATHS={'start':a296_0x55545d(0x191),'status':a296_0x55545d(0x18c),'latest':a296_0x55545d(0x18f)};
@@ -1 +1 @@
1
- const a297_0x110593=a297_0x594d;(function(_0x19a97f,_0x17204c){const _0x45bf8d=a297_0x594d,_0xeec810=_0x19a97f();while(!![]){try{const _0x2fd90f=-parseInt(_0x45bf8d(0x182))/0x1*(parseInt(_0x45bf8d(0x178))/0x2)+-parseInt(_0x45bf8d(0x17c))/0x3+parseInt(_0x45bf8d(0x179))/0x4*(parseInt(_0x45bf8d(0x181))/0x5)+-parseInt(_0x45bf8d(0x17f))/0x6+-parseInt(_0x45bf8d(0x184))/0x7*(-parseInt(_0x45bf8d(0x17e))/0x8)+-parseInt(_0x45bf8d(0x186))/0x9*(parseInt(_0x45bf8d(0x17b))/0xa)+-parseInt(_0x45bf8d(0x17a))/0xb*(-parseInt(_0x45bf8d(0x185))/0xc);if(_0x2fd90f===_0x17204c)break;else _0xeec810['push'](_0xeec810['shift']());}catch(_0x4b5e1d){_0xeec810['push'](_0xeec810['shift']());}}}(a297_0x80d7,0x26f36));function a297_0x594d(_0x11a284,_0x393293){_0x11a284=_0x11a284-0x178;const _0x80d71e=a297_0x80d7();let _0x594d4f=_0x80d71e[_0x11a284];return _0x594d4f;}function a297_0x80d7(){const _0x561c3d=['14bDBIiP','1164gjxAyV','350307TnmaLm','432238EPWDEx','16mQkYPc','35717BNFusX','10iAyPkI','476835yBixik','/smartapi/cross-db-relation/query','833360goYEae','515052HlXPhz','/smartapi/cross-db-relation/delete','170090kMpUUQ','1jTOStG','/smartapi/cross-db-relation/create'];a297_0x80d7=function(){return _0x561c3d;};return a297_0x80d7();}export const CROSS_DB_RELATION_PATHS={'list':a297_0x110593(0x17d),'create':a297_0x110593(0x183),'update':'/smartapi/cross-db-relation/update','delete':a297_0x110593(0x180)};
1
+ function a297_0x3d5a(){const _0x55bd23=['6DLFzxR','333912GbCZxb','/smartapi/cross-db-relation/query','3403862NytHqN','399115jITcgE','2ZDyips','9832790qMLATe','/smartapi/cross-db-relation/update','552260oFQbgk','3637944OqLtvM','671MJUTtA','/smartapi/cross-db-relation/create','16YysyNA','12kwxCnS','1456078BXYFsP'];a297_0x3d5a=function(){return _0x55bd23;};return a297_0x3d5a();}const a297_0x25e1ad=a297_0x212c;function a297_0x212c(_0x26e99c,_0x4f7723){_0x26e99c=_0x26e99c-0x77;const _0x3d5a97=a297_0x3d5a();let _0x212c60=_0x3d5a97[_0x26e99c];return _0x212c60;}(function(_0x5c06d9,_0x59ad5a){const _0x5b5319=a297_0x212c,_0x4ffb8b=_0x5c06d9();while(!![]){try{const _0x20857a=parseInt(_0x5b5319(0x7f))/0x1*(parseInt(_0x5b5319(0x79))/0x2)+parseInt(_0x5b5319(0x78))/0x3*(-parseInt(_0x5b5319(0x82))/0x4)+-parseInt(_0x5b5319(0x7e))/0x5*(-parseInt(_0x5b5319(0x7a))/0x6)+parseInt(_0x5b5319(0x7d))/0x7*(parseInt(_0x5b5319(0x77))/0x8)+-parseInt(_0x5b5319(0x83))/0x9+parseInt(_0x5b5319(0x80))/0xa+parseInt(_0x5b5319(0x84))/0xb*(-parseInt(_0x5b5319(0x7b))/0xc);if(_0x20857a===_0x59ad5a)break;else _0x4ffb8b['push'](_0x4ffb8b['shift']());}catch(_0x333328){_0x4ffb8b['push'](_0x4ffb8b['shift']());}}}(a297_0x3d5a,0xcc8da));export const CROSS_DB_RELATION_PATHS={'list':a297_0x25e1ad(0x7c),'create':a297_0x25e1ad(0x85),'update':a297_0x25e1ad(0x81),'delete':'/smartapi/cross-db-relation/delete'};
@@ -1 +1 @@
1
- (function(_0x1a5e6d,_0x5ac217){const _0x5c551f=a298_0x1f71,_0x20f29a=_0x1a5e6d();while(!![]){try{const _0x1846c1=parseInt(_0x5c551f(0x127))/0x1*(-parseInt(_0x5c551f(0x124))/0x2)+-parseInt(_0x5c551f(0x12c))/0x3*(parseInt(_0x5c551f(0x12f))/0x4)+-parseInt(_0x5c551f(0x120))/0x5*(parseInt(_0x5c551f(0x11c))/0x6)+parseInt(_0x5c551f(0x121))/0x7*(-parseInt(_0x5c551f(0x11a))/0x8)+parseInt(_0x5c551f(0x119))/0x9+-parseInt(_0x5c551f(0x125))/0xa*(parseInt(_0x5c551f(0x11f))/0xb)+parseInt(_0x5c551f(0x128))/0xc;if(_0x1846c1===_0x5ac217)break;else _0x20f29a['push'](_0x20f29a['shift']());}catch(_0x2b3569){_0x20f29a['push'](_0x20f29a['shift']());}}}(a298_0x4cba,0x946ab));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x276a44){const _0x1ec2fd=a298_0x1f71;if(cache[_0x1ec2fd(0x116)](_0x276a44))return cache[_0x1ec2fd(0x12b)](_0x276a44);const _0x4ed076=await listDatasets(_0x276a44),_0x1b184b=new Map();for(const _0x1ea9f6 of _0x4ed076){const _0x5ddb81=_0x1ea9f6['dbtableConfig'];_0x5ddb81?.[_0x1ec2fd(0x12a)]!=null&&_0x1b184b['set'](_0x5ddb81[_0x1ec2fd(0x12a)],_0x5ddb81[_0x1ec2fd(0x12d)]??'db-'+_0x5ddb81[_0x1ec2fd(0x12a)]);}const _0x53b16e=[..._0x1b184b[_0x1ec2fd(0x130)]()][_0x1ec2fd(0x11d)](([_0x7a76d7,_0x593959])=>({'dbId':_0x7a76d7,'dbName':_0x593959}));return cache[_0x1ec2fd(0x118)](_0x276a44,_0x53b16e),_0x53b16e;}export async function resolveDb(_0x6f80ae,_0x5b0ca2){const _0x23169b=a298_0x1f71,_0xb70750=await listDatabases(_0x6f80ae);if(_0xb70750[_0x23169b(0x126)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x6f80ae+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x5b0ca2)return{'resolved':_0xb70750};const _0x305380=Number(_0x5b0ca2);if(!Number[_0x23169b(0x129)](_0x305380)){const _0x3e6bdd=_0xb70750[_0x23169b(0x123)](_0xb3be86=>_0xb3be86['dbId']===_0x305380);if(_0x3e6bdd)return{'resolved':[_0x3e6bdd]};}const _0x928c0a=_0x5b0ca2[_0x23169b(0x114)](),_0x419808=_0xb70750['filter'](_0x5ef82c=>_0x5ef82c[_0x23169b(0x12d)][_0x23169b(0x114)]()[_0x23169b(0x11b)](_0x928c0a));if(_0x419808[_0x23169b(0x126)]>0x0)return{'resolved':_0x419808};const _0xdae9e1=_0xb70750[_0x23169b(0x11d)](_0x29ac67=>_0x29ac67[_0x23169b(0x12d)]+'\x20('+_0x29ac67[_0x23169b(0x12a)]+')')[_0x23169b(0x12e)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x5b0ca2+_0x23169b(0x131)+_0x6f80ae+_0x23169b(0x117)+_0xdae9e1+_0x23169b(0x11e)};}function a298_0x1f71(_0x32c518,_0x526d5f){_0x32c518=_0x32c518-0x114;const _0x4cba46=a298_0x4cba();let _0x1f7109=_0x4cba46[_0x32c518];return _0x1f7109;}export async function resolveOneDb(_0x434fbf,_0x33a813){const _0x1671d0=a298_0x1f71,{resolved:_0x41a9c7,error:_0x558a37}=await resolveDb(_0x434fbf,_0x33a813);if(_0x558a37)return{'db':null,'error':_0x558a37};if(_0x41a9c7[_0x1671d0(0x126)]===0x1)return{'db':_0x41a9c7[0x0]};if(!_0x33a813){const _0x143299=_0x41a9c7[_0x1671d0(0x11d)](_0x576a40=>_0x576a40['dbName']+'\x20('+_0x576a40[_0x1671d0(0x12a)]+')')[_0x1671d0(0x12e)](',\x20');return{'db':null,'error':_0x1671d0(0x115)+_0x143299};}const _0x12e6b9=_0x41a9c7[_0x1671d0(0x11d)](_0x2f2ff9=>_0x2f2ff9[_0x1671d0(0x12d)]+'\x20('+_0x2f2ff9['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x33a813+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x12e6b9+_0x1671d0(0x122)};}export async function getDbName(_0x555522,_0x4221ec){const _0x56fef6=a298_0x1f71,_0x4677ed=await listDatabases(_0x555522);return _0x4677ed[_0x56fef6(0x123)](_0x20e340=>_0x20e340[_0x56fef6(0x12a)]===_0x4221ec)?.[_0x56fef6(0x12d)];}function a298_0x4cba(){const _0x3a18e2=['1444cBotGL','13881852siPXLx','isNaN','dbId','get','3csbMRL','dbName','join','2161268HywanZ','entries','\x22\x20under\x20app\x20\x22','toLowerCase','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','has','\x22.\x20Available:\x20','set','10851687NPLxsB','8JTVIFN','includes','6078RdmVqT','map','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','22594XKnCmV','1405WhVWXs','3335213eydjmz','.\x20Be\x20more\x20specific.','find','366sKOKnJ','920DujVLe','length'];a298_0x4cba=function(){return _0x3a18e2;};return a298_0x4cba();}
1
+ function a298_0x42db(_0xa9bc3a,_0x3d1bca){_0xa9bc3a=_0xa9bc3a-0xc0;const _0x518287=a298_0x5182();let _0x42dbb9=_0x518287[_0xa9bc3a];return _0x42dbb9;}(function(_0x36e481,_0x2d533e){const _0x448cc4=a298_0x42db,_0x1354fd=_0x36e481();while(!![]){try{const _0x1128ea=-parseInt(_0x448cc4(0xd0))/0x1*(parseInt(_0x448cc4(0xd2))/0x2)+parseInt(_0x448cc4(0xdc))/0x3+-parseInt(_0x448cc4(0xdf))/0x4*(parseInt(_0x448cc4(0xc3))/0x5)+-parseInt(_0x448cc4(0xd4))/0x6+-parseInt(_0x448cc4(0xca))/0x7*(-parseInt(_0x448cc4(0xc8))/0x8)+-parseInt(_0x448cc4(0xc4))/0x9*(parseInt(_0x448cc4(0xd3))/0xa)+parseInt(_0x448cc4(0xcb))/0xb;if(_0x1128ea===_0x2d533e)break;else _0x1354fd['push'](_0x1354fd['shift']());}catch(_0x2f78c3){_0x1354fd['push'](_0x1354fd['shift']());}}}(a298_0x5182,0x27cfb));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5141f1){const _0x5ce9b5=a298_0x42db;if(cache[_0x5ce9b5(0xcf)](_0x5141f1))return cache[_0x5ce9b5(0xdd)](_0x5141f1);const _0x217078=await listDatasets(_0x5141f1),_0x434c12=new Map();for(const _0x2837c2 of _0x217078){const _0x50d072=_0x2837c2[_0x5ce9b5(0xde)];_0x50d072?.[_0x5ce9b5(0xdb)]!=null&&_0x434c12[_0x5ce9b5(0xc2)](_0x50d072['dbId'],_0x50d072[_0x5ce9b5(0xc7)]??_0x5ce9b5(0xda)+_0x50d072[_0x5ce9b5(0xdb)]);}const _0x49bdd1=[..._0x434c12[_0x5ce9b5(0xc9)]()][_0x5ce9b5(0xcd)](([_0x15a3df,_0x469540])=>({'dbId':_0x15a3df,'dbName':_0x469540}));return cache[_0x5ce9b5(0xc2)](_0x5141f1,_0x49bdd1),_0x49bdd1;}export async function resolveDb(_0x2141ca,_0x292e4b){const _0x31723e=a298_0x42db,_0x22b5e3=await listDatabases(_0x2141ca);if(_0x22b5e3[_0x31723e(0xce)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x2141ca+_0x31723e(0xc0)};if(!_0x292e4b)return{'resolved':_0x22b5e3};const _0x3ea138=Number(_0x292e4b);if(!Number[_0x31723e(0xd7)](_0x3ea138)){const _0x374208=_0x22b5e3[_0x31723e(0xc1)](_0x1fea9b=>_0x1fea9b[_0x31723e(0xdb)]===_0x3ea138);if(_0x374208)return{'resolved':[_0x374208]};}const _0x59c266=_0x292e4b[_0x31723e(0xd5)](),_0x401de3=_0x22b5e3[_0x31723e(0xe0)](_0x1168a7=>_0x1168a7['dbName'][_0x31723e(0xd5)]()[_0x31723e(0xe1)](_0x59c266));if(_0x401de3[_0x31723e(0xce)]>0x0)return{'resolved':_0x401de3};const _0x2d7bd3=_0x22b5e3['map'](_0x15e3f6=>_0x15e3f6[_0x31723e(0xc7)]+'\x20('+_0x15e3f6['dbId']+')')[_0x31723e(0xc5)](',\x20');return{'resolved':[],'error':_0x31723e(0xd8)+_0x292e4b+_0x31723e(0xc6)+_0x2141ca+_0x31723e(0xd6)+_0x2d7bd3+_0x31723e(0xcc)};}export async function resolveOneDb(_0x1e8731,_0x31b04d){const _0x328259=a298_0x42db,{resolved:_0x411dab,error:_0x1a3826}=await resolveDb(_0x1e8731,_0x31b04d);if(_0x1a3826)return{'db':null,'error':_0x1a3826};if(_0x411dab[_0x328259(0xce)]===0x1)return{'db':_0x411dab[0x0]};if(!_0x31b04d){const _0x39a488=_0x411dab[_0x328259(0xcd)](_0x37bef4=>_0x37bef4[_0x328259(0xc7)]+'\x20('+_0x37bef4[_0x328259(0xdb)]+')')['join'](',\x20');return{'db':null,'error':_0x328259(0xd1)+_0x39a488};}const _0x326c1a=_0x411dab[_0x328259(0xcd)](_0x9078d=>_0x9078d[_0x328259(0xc7)]+'\x20('+_0x9078d[_0x328259(0xdb)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x31b04d+_0x328259(0xd9)+_0x326c1a+'.\x20Be\x20more\x20specific.'};}function a298_0x5182(){const _0x529ce2=['.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','map','length','has','5183SNUvfO','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','16RDcMgJ','196110ArQXQU','1503660hdwGxo','toLowerCase','\x22.\x20Available:\x20','isNaN','No\x20database\x20matching\x20\x22','\x22\x20matches\x20multiple\x20databases:\x20','db-','dbId','876573HXeOdV','get','dbtableConfig','40jMvdHe','filter','includes','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','find','set','160690MlJsNk','45WPYGBX','join','\x22\x20under\x20app\x20\x22','dbName','128ZCynMP','entries','61082tPTfQh','4870459QeEnrb'];a298_0x5182=function(){return _0x529ce2;};return a298_0x5182();}export async function getDbName(_0x5a8b33,_0x5d5054){const _0x4695f9=a298_0x42db,_0x3fed54=await listDatabases(_0x5a8b33);return _0x3fed54[_0x4695f9(0xc1)](_0xb74937=>_0xb74937[_0x4695f9(0xdb)]===_0x5d5054)?.[_0x4695f9(0xc7)];}