@lovrabet/rabetbase-cli 2.5.6-beta.1 → 2.5.7-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 (408) hide show
  1. package/README.md +15 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.d.ts +1 -0
  78. package/lib/commands/dataset/design-context.js +1 -0
  79. package/lib/commands/dataset/design-start.d.ts +1 -0
  80. package/lib/commands/dataset/design-start.js +1 -0
  81. package/lib/commands/dataset/design-status.d.ts +1 -0
  82. package/lib/commands/dataset/design-status.js +1 -0
  83. package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
  84. package/lib/commands/dataset/design-sync-retry.js +1 -0
  85. package/lib/commands/dataset/design-sync-status.d.ts +1 -0
  86. package/lib/commands/dataset/design-sync-status.js +1 -0
  87. package/lib/commands/dataset/design-validate.d.ts +1 -0
  88. package/lib/commands/dataset/design-validate.js +1 -0
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  113. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  114. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  115. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  116. package/lib/commands/db/delete.js +1 -1
  117. package/lib/commands/db/detail.js +1 -1
  118. package/lib/commands/db/diff-refresh-start.js +1 -1
  119. package/lib/commands/db/diff-refresh-status.js +1 -1
  120. package/lib/commands/db/diff.js +1 -1
  121. package/lib/commands/db/index.js +1 -1
  122. package/lib/commands/db/list.js +1 -1
  123. package/lib/commands/db/shared.js +1 -1
  124. package/lib/commands/db/table-diff-shared.js +1 -1
  125. package/lib/commands/db/tables.js +1 -1
  126. package/lib/commands/db/test.js +1 -1
  127. package/lib/commands/db/update.js +1 -1
  128. package/lib/commands/deployment/index.js +1 -1
  129. package/lib/commands/deployment/sync-all.js +1 -1
  130. package/lib/commands/deployment/sync-jobs.js +1 -1
  131. package/lib/commands/deployment/sync-status.js +1 -1
  132. package/lib/commands/doctor.js +1 -1
  133. package/lib/commands/file/index.js +1 -1
  134. package/lib/commands/flow/create.js +1 -1
  135. package/lib/commands/flow/detail.js +1 -1
  136. package/lib/commands/flow/index.js +1 -1
  137. package/lib/commands/flow/list.js +1 -1
  138. package/lib/commands/flow/page-list.d.ts +2 -0
  139. package/lib/commands/flow/page-list.js +1 -0
  140. package/lib/commands/flow/publish.js +1 -1
  141. package/lib/commands/flow/runtime-resources-shared.d.ts +1 -1
  142. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  143. package/lib/commands/flow/runtime-role-list.js +1 -1
  144. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  145. package/lib/commands/flow/runtime-user-search.js +1 -1
  146. package/lib/commands/flow/shared.d.ts +6 -2
  147. package/lib/commands/flow/shared.js +1 -1
  148. package/lib/commands/flow/update.js +1 -1
  149. package/lib/commands/flow/validate.js +1 -1
  150. package/lib/commands/instant-api-policy/current.js +1 -1
  151. package/lib/commands/instant-api-policy/index.js +1 -1
  152. package/lib/commands/instant-api-policy/init.js +1 -1
  153. package/lib/commands/instant-api-policy/publish.js +1 -1
  154. package/lib/commands/instant-api-policy/pull.js +1 -1
  155. package/lib/commands/instant-api-policy/revision.js +1 -1
  156. package/lib/commands/instant-api-policy/revisions.js +1 -1
  157. package/lib/commands/instant-api-policy/rollback.js +1 -1
  158. package/lib/commands/instant-api-policy/shared.js +1 -1
  159. package/lib/commands/instant-api-policy/validate.js +1 -1
  160. package/lib/commands/issue/index.js +1 -1
  161. package/lib/commands/issue/nudge.js +1 -1
  162. package/lib/commands/issue/report.js +1 -1
  163. package/lib/commands/issue/shared.js +1 -1
  164. package/lib/commands/kb/create.js +1 -1
  165. package/lib/commands/kb/delete.js +1 -1
  166. package/lib/commands/kb/detail.js +1 -1
  167. package/lib/commands/kb/index.js +1 -1
  168. package/lib/commands/kb/list.js +1 -1
  169. package/lib/commands/kb/search.js +1 -1
  170. package/lib/commands/kb/shared.js +1 -1
  171. package/lib/commands/kb/update.js +1 -1
  172. package/lib/commands/logs/index.js +1 -1
  173. package/lib/commands/menu/asset-update.js +1 -1
  174. package/lib/commands/menu/delete.js +1 -1
  175. package/lib/commands/menu/external-link-create.js +1 -1
  176. package/lib/commands/menu/external-link-update.js +1 -1
  177. package/lib/commands/menu/group-create.js +1 -1
  178. package/lib/commands/menu/group-update.js +1 -1
  179. package/lib/commands/menu/index.js +1 -1
  180. package/lib/commands/menu/list.js +1 -1
  181. package/lib/commands/menu/move.js +1 -1
  182. package/lib/commands/menu/regroup-start.js +1 -1
  183. package/lib/commands/menu/rename.js +1 -1
  184. package/lib/commands/menu/shared/compare-table.js +1 -1
  185. package/lib/commands/menu/shared/delete-plan.js +1 -1
  186. package/lib/commands/menu/shared/facts.js +1 -1
  187. package/lib/commands/menu/shared/index.js +1 -1
  188. package/lib/commands/menu/shared/inquirer.js +1 -1
  189. package/lib/commands/menu/shared/local-pages.js +1 -1
  190. package/lib/commands/menu/shared/logic.js +1 -1
  191. package/lib/commands/menu/shared/mutations.js +1 -1
  192. package/lib/commands/menu/shared/path.js +1 -1
  193. package/lib/commands/menu/shared/service.js +1 -1
  194. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  195. package/lib/commands/menu/shared/sync-core.js +1 -1
  196. package/lib/commands/menu/shared/update-core.js +1 -1
  197. package/lib/commands/menu/shared/valid-url.js +1 -1
  198. package/lib/commands/menu/subapp-assets-status.js +1 -1
  199. package/lib/commands/menu/subapp-assets-update.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  227. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  228. package/lib/commands/project/create/format-elapsed.js +1 -1
  229. package/lib/commands/project/create/main.js +1 -1
  230. package/lib/commands/project/create/materialize-project-template.js +1 -1
  231. package/lib/commands/project/create/project-name.js +1 -1
  232. package/lib/commands/project/create/project-template-archive.js +1 -1
  233. package/lib/commands/project/create/project-template-path.js +1 -1
  234. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  235. package/lib/commands/project/create/use-format-code.js +1 -1
  236. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  237. package/lib/commands/project/domain-routing-sync.js +1 -1
  238. package/lib/commands/project/index.js +1 -1
  239. package/lib/commands/project/upgrade.js +1 -1
  240. package/lib/commands/registry.js +1 -1
  241. package/lib/commands/role/delete.js +1 -1
  242. package/lib/commands/role/detail.js +1 -1
  243. package/lib/commands/role/index.js +1 -1
  244. package/lib/commands/role/list.js +1 -1
  245. package/lib/commands/role/shared.js +1 -1
  246. package/lib/commands/role/update.js +1 -1
  247. package/lib/commands/role/user-add.js +1 -1
  248. package/lib/commands/role/user-remove.js +1 -1
  249. package/lib/commands/role/user-resolve.js +1 -1
  250. package/lib/commands/rule/get.js +1 -1
  251. package/lib/commands/rule/index.js +1 -1
  252. package/lib/commands/rule/list.js +1 -1
  253. package/lib/commands/rule/set.js +1 -1
  254. package/lib/commands/rule/shared.js +1 -1
  255. package/lib/commands/run/index.js +1 -1
  256. package/lib/commands/schema.js +1 -1
  257. package/lib/commands/sql/create.js +1 -1
  258. package/lib/commands/sql/delete.js +1 -1
  259. package/lib/commands/sql/detail.js +1 -1
  260. package/lib/commands/sql/exec.js +1 -1
  261. package/lib/commands/sql/index.js +1 -1
  262. package/lib/commands/sql/list.js +1 -1
  263. package/lib/commands/sql/pull.js +1 -1
  264. package/lib/commands/sql/push.js +1 -1
  265. package/lib/commands/sql/shared.js +1 -1
  266. package/lib/commands/sql/status.js +1 -1
  267. package/lib/commands/sql/validate.js +1 -1
  268. package/lib/commands/task/index.js +1 -1
  269. package/lib/commands/task/status.js +1 -1
  270. package/lib/commands/tenant/index.js +1 -1
  271. package/lib/commands/tenant/members-list.js +1 -1
  272. package/lib/commands/tenant/shared.js +1 -1
  273. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  274. package/lib/commands/user-account/feishu-bind.js +1 -1
  275. package/lib/commands/user-account/index.js +1 -1
  276. package/lib/commands/workspace/add.js +1 -1
  277. package/lib/commands/workspace/index.js +1 -1
  278. package/lib/commands/workspace/remove.js +1 -1
  279. package/lib/config/domain-config.js +1 -1
  280. package/lib/config/project-domain-routing.js +1 -1
  281. package/lib/config/region-config.js +1 -1
  282. package/lib/config/schema.js +1 -1
  283. package/lib/constant/cdn.js +1 -1
  284. package/lib/constant/cli.js +1 -1
  285. package/lib/constant/defaults.js +1 -1
  286. package/lib/constant/domain.js +1 -1
  287. package/lib/constant/env.js +1 -1
  288. package/lib/constant/output.js +1 -1
  289. package/lib/constant/paths.js +1 -1
  290. package/lib/constant/region.js +1 -1
  291. package/lib/constant/risk.js +1 -1
  292. package/lib/constant/routing-profile.js +1 -1
  293. package/lib/context/app-resolver.js +1 -1
  294. package/lib/context/auth-resolver.js +1 -1
  295. package/lib/context/config-loader.js +1 -1
  296. package/lib/context.js +1 -1
  297. package/lib/core/alias-resolver.js +1 -1
  298. package/lib/core/api-client.d.ts +37 -6
  299. package/lib/core/api-client.js +1 -1
  300. package/lib/core/bff/config.js +1 -1
  301. package/lib/core/bff/file-system.js +1 -1
  302. package/lib/core/bff/hash.js +1 -1
  303. package/lib/core/bff/hook-directory.js +1 -1
  304. package/lib/core/bff/lock.js +1 -1
  305. package/lib/core/bff/utils.js +1 -1
  306. package/lib/core/cross-db-analysis.js +1 -1
  307. package/lib/core/cross-db-relation.js +1 -1
  308. package/lib/core/db-resolver.js +1 -1
  309. package/lib/core/flow-config.d.ts +12 -0
  310. package/lib/core/flow-config.js +1 -1
  311. package/lib/core/instant-api-policy/config.js +1 -1
  312. package/lib/core/kb-search-client.js +1 -1
  313. package/lib/core/page/file-system.js +1 -1
  314. package/lib/core/page/hash.js +1 -1
  315. package/lib/core/page/lock.js +1 -1
  316. package/lib/core/page/lr-smart-jsx.js +1 -1
  317. package/lib/core/sql-index-auditor.js +1 -1
  318. package/lib/core/sql-sync/config.js +1 -1
  319. package/lib/core/sql-sync/file-system.js +1 -1
  320. package/lib/core/sql-sync/hash.js +1 -1
  321. package/lib/core/sql-sync/lock.js +1 -1
  322. package/lib/core/sql-sync/utils.js +1 -1
  323. package/lib/core/sql-validator.js +1 -1
  324. package/lib/errors.js +1 -1
  325. package/lib/framework/build-all-flags.js +1 -1
  326. package/lib/framework/error-output.js +1 -1
  327. package/lib/framework/explicit-yes.js +1 -1
  328. package/lib/framework/flags.js +1 -1
  329. package/lib/framework/help.js +1 -1
  330. package/lib/framework/index.js +1 -1
  331. package/lib/framework/output.js +1 -1
  332. package/lib/framework/response.js +1 -1
  333. package/lib/framework/runner-alias.js +1 -1
  334. package/lib/framework/runner.js +1 -1
  335. package/lib/framework/schema-export.js +1 -1
  336. package/lib/framework/supported-flags.js +1 -1
  337. package/lib/framework/types.js +1 -1
  338. package/lib/generated/build-info.d.ts +4 -4
  339. package/lib/generated/build-info.js +1 -1
  340. package/lib/generated/official-routing.js +1 -1
  341. package/lib/generated/routing-contract.js +1 -1
  342. package/lib/help.js +1 -1
  343. package/lib/postinstall.js +1 -1
  344. package/lib/runtime/confirmation.js +1 -1
  345. package/lib/runtime/event.js +1 -1
  346. package/lib/runtime/index.js +1 -1
  347. package/lib/runtime/queue.js +1 -1
  348. package/lib/runtime/resolve.js +1 -1
  349. package/lib/services/dataset-design/checkpoint.d.ts +17 -0
  350. package/lib/services/dataset-design/checkpoint.js +1 -0
  351. package/lib/services/dataset-design/commands.d.ts +6 -0
  352. package/lib/services/dataset-design/commands.js +1 -0
  353. package/lib/services/dataset-design/contract.d.ts +7 -0
  354. package/lib/services/dataset-design/contract.js +1 -0
  355. package/lib/skills/builtin-skill.js +1 -1
  356. package/lib/skills/main.js +1 -1
  357. package/lib/skills/npx-skills-add.js +1 -1
  358. package/lib/skills/skill-presence.js +1 -1
  359. package/lib/telemetry/cli-command-trace.js +1 -1
  360. package/lib/telemetry/cli-help-trace.js +1 -1
  361. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  362. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  363. package/lib/telemetry/send-cli-trace-log.js +1 -1
  364. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  365. package/lib/utils/ai_config.js +1 -1
  366. package/lib/utils/apply-jq-filter.js +1 -1
  367. package/lib/utils/cdn-config.js +1 -1
  368. package/lib/utils/check-sdk-version.js +1 -1
  369. package/lib/utils/cli-version-check.js +1 -1
  370. package/lib/utils/cli-version-policy.js +1 -1
  371. package/lib/utils/config.js +1 -1
  372. package/lib/utils/entity-with-id.js +1 -1
  373. package/lib/utils/file-utils.js +1 -1
  374. package/lib/utils/guides-cdn.js +1 -1
  375. package/lib/utils/http-client.js +1 -1
  376. package/lib/utils/is-non-interactive.js +1 -1
  377. package/lib/utils/logger.js +1 -1
  378. package/lib/utils/params.js +1 -1
  379. package/lib/utils/platform.js +1 -1
  380. package/lib/utils/sleep.js +1 -1
  381. package/lib/utils/template-replacer.js +1 -1
  382. package/lib/utils/update-notice.js +1 -1
  383. package/lib/utils/version.js +1 -1
  384. package/lib/utils/with-active-cookie.js +1 -1
  385. package/lib/utils/write-cli-side-channel.js +1 -1
  386. package/package.json +3 -2
  387. package/skills/rabetbase/SKILL.md +11 -7
  388. package/skills/rabetbase/guides/approval-flow-development-workflow.md +52 -13
  389. package/skills/rabetbase/guides/backend-function.md +26 -4
  390. package/skills/rabetbase/guides/bff-creation-workflow.md +9 -0
  391. package/skills/rabetbase/guides/cross-database-bff.md +1 -0
  392. package/skills/rabetbase/guides/custom-page-flow-sdk.md +2 -0
  393. package/skills/rabetbase/guides/data-api-guidelines.md +2 -0
  394. package/skills/rabetbase/guides/flow-config-examples.md +75 -0
  395. package/skills/rabetbase/guides/form-flow-start.md +61 -0
  396. package/skills/rabetbase/guides/typescript-sdk.md +1 -1
  397. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +18 -4
  398. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +5 -4
  399. package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
  400. package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
  401. package/skills/rabetbase/references/rabetbase-flow-commands.md +21 -2
  402. package/skills/rabetbase/references/rabetbase-flow-resources.md +21 -3
  403. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +6 -2
  404. package/skills/rabetbase/references/rabetbase-kb.md +4 -1
  405. package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
  406. package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
  407. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  408. package/skills/rabetbase.manifest.json +6 -3
@@ -1 +1 @@
1
- const a283_0x3d4742=a283_0x11b7;(function(_0x13c6a3,_0x17f9d6){const _0x568ec1=a283_0x11b7,_0x451343=_0x13c6a3();while(!![]){try{const _0x5e558c=-parseInt(_0x568ec1(0x1ef))/0x1*(-parseInt(_0x568ec1(0x207))/0x2)+-parseInt(_0x568ec1(0x21d))/0x3+-parseInt(_0x568ec1(0x1fe))/0x4*(-parseInt(_0x568ec1(0x1f3))/0x5)+parseInt(_0x568ec1(0x213))/0x6*(-parseInt(_0x568ec1(0x218))/0x7)+parseInt(_0x568ec1(0x21a))/0x8*(-parseInt(_0x568ec1(0x202))/0x9)+parseInt(_0x568ec1(0x1f2))/0xa+-parseInt(_0x568ec1(0x20e))/0xb*(-parseInt(_0x568ec1(0x208))/0xc);if(_0x5e558c===_0x17f9d6)break;else _0x451343['push'](_0x451343['shift']());}catch(_0x39bc94){_0x451343['push'](_0x451343['shift']());}}}(a283_0x25d6,0x4af39));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=[a283_0x3d4742(0x20b),a283_0x3d4742(0x1fd),'HOOK'];export function normalizeBffType(_0x30fa75){const _0x1763e3=a283_0x3d4742;if(!_0x30fa75)return undefined;const _0x7faff5=_0x30fa75[_0x1763e3(0x214)]()[_0x1763e3(0x217)]();return SUPPORTED_BFF_TYPES[_0x1763e3(0x1f9)](_0x7faff5)?_0x7faff5:undefined;}async function scanJsFilesRecursively(_0x5bf0ef,_0x52cc03){const _0x29f083=a283_0x3d4742,_0x2fd44a=[];try{const _0x1e0245=await readdir(_0x5bf0ef,{'withFileTypes':!![]});for(const _0x16d6e0 of _0x1e0245){const _0x2cb4b5=join(_0x5bf0ef,_0x16d6e0[_0x29f083(0x200)]);if(_0x16d6e0['isDirectory']())_0x2fd44a[_0x29f083(0x206)](...await scanJsFilesRecursively(_0x2cb4b5,_0x52cc03+'/'+_0x16d6e0['name']));else _0x16d6e0[_0x29f083(0x215)]()&&_0x16d6e0[_0x29f083(0x200)][_0x29f083(0x209)](_0x29f083(0x20d))&&_0x2fd44a[_0x29f083(0x206)]({'lockKey':_0x52cc03+'/'+_0x16d6e0[_0x29f083(0x200)][_0x29f083(0x20a)](/\.js$/,''),'filePath':_0x2cb4b5});}}catch(_0x2c2331){if(_0x2c2331[_0x29f083(0x216)]!==_0x29f083(0x1f1))throw _0x2c2331;}return _0x2fd44a;}async function scanFlatFunctions(_0x1f13e1,_0x5cbb61){const _0x2510fc=a283_0x3d4742,_0x461fea=join(_0x1f13e1[_0x2510fc(0x1f6)],_0x5cbb61),_0x5aa91e=await scanJsFilesRecursively(_0x461fea,_0x5cbb61);return _0x5aa91e[_0x2510fc(0x21b)](({lockKey:_0x2ed79e,filePath:_0x2910c7})=>({'type':_0x5cbb61,'name':_0x2ed79e['split']('/')['at'](-0x1)??'','filePath':_0x2910c7,'lockKey':_0x2ed79e}));}async function scanHookFunctions(_0x40b76f){const _0x33ef1f=a283_0x3d4742,_0x4782b8=join(_0x40b76f[_0x33ef1f(0x1f6)],_0x33ef1f(0x1fc)),_0x5cc4a0=[];try{const _0x21d0b7=await readdir(_0x4782b8,{'withFileTypes':!![]});for(const _0x27926b of _0x21d0b7){if(!_0x27926b['isDirectory']())continue;const _0x498140=_0x27926b['name'],_0x4e7c0c=join(_0x4782b8,_0x498140),_0xf3363c=await readdir(_0x4e7c0c,{'withFileTypes':!![]});for(const _0x3e4634 of _0xf3363c){if(!_0x3e4634['isDirectory']())continue;const _0x1dabfa=_0x3e4634['name'],_0x317cf8=join(_0x4e7c0c,_0x1dabfa),_0x3c0cf1=await readdir(_0x317cf8,{'withFileTypes':!![]});for(const _0x2df5a3 of _0x3c0cf1){if(!_0x2df5a3['isDirectory']())continue;const _0x4dfd54=_0x2df5a3[_0x33ef1f(0x200)],_0x45e2bd=join(_0x317cf8,_0x4dfd54),_0x2ac68c=await readdir(_0x45e2bd,{'withFileTypes':!![]});for(const _0x4dbe17 of _0x2ac68c){if(!_0x4dbe17['isFile']()||!_0x4dbe17[_0x33ef1f(0x200)]['endsWith'](_0x33ef1f(0x20d)))continue;const _0x25e07d=_0x4dbe17['name'][_0x33ef1f(0x20a)](/\.js$/,'');_0x5cc4a0[_0x33ef1f(0x206)]({'type':_0x33ef1f(0x1fc),'name':_0x25e07d,'filePath':join(_0x45e2bd,_0x4dbe17[_0x33ef1f(0x200)]),'lockKey':_0x33ef1f(0x20c)+_0x498140+'/'+_0x1dabfa+'/'+_0x4dfd54+'/'+_0x25e07d,'alias':_0x498140,'operationType':_0x1dabfa,'functionNode':_0x4dfd54});}}}}}catch(_0x7a8c03){if(_0x7a8c03[_0x33ef1f(0x216)]!=='ENOENT')throw _0x7a8c03;}return _0x5cc4a0;}function a283_0x25d6(){const _0x278630=['map','set','202773SvXSzF','operationType','88017VsQjia','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','ENOENT','3221900fxttbU','15YxkFTq','before','isDirectory','scriptsRootDir','startsWith','datasetCode','includes','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','afterScriptId','HOOK','ENDPOINT','195544qsgdoK','test','name','functionNode','9CfkgDF','toLowerCase','get','split','push','4WOkuGe','12sOIcvZ','endsWith','replace','COMMON','HOOK/','.js','7390713rYmcef','after','functionName','every','beforeScriptId','1014534tWmnXf','trim','isFile','code','toUpperCase','21vbeilu','scriptType','3479248irugnb'];a283_0x25d6=function(){return _0x278630;};return a283_0x25d6();}export async function scanLocalBffFunctions(_0x3934c8,_0x2b0e15){const _0x1b791b=a283_0x3d4742;if(_0x2b0e15==='COMMON'||_0x2b0e15===_0x1b791b(0x1fd))return scanFlatFunctions(_0x3934c8,_0x2b0e15);if(_0x2b0e15===_0x1b791b(0x1fc))return scanHookFunctions(_0x3934c8);const [_0x428a36,_0x568950,_0x4ab619]=await Promise['all']([scanFlatFunctions(_0x3934c8,_0x1b791b(0x20b)),scanFlatFunctions(_0x3934c8,_0x1b791b(0x1fd)),scanHookFunctions(_0x3934c8)]);return[..._0x428a36,..._0x568950,..._0x4ab619];}function a283_0x11b7(_0x5d99a4,_0x5bc38b){_0x5d99a4=_0x5d99a4-0x1ef;const _0x25d6eb=a283_0x25d6();let _0x11b7bb=_0x25d6eb[_0x5d99a4];return _0x11b7bb;}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x5366b4){const _0x179a50=a283_0x3d4742;return SAFE_LOCK_KEY_SEGMENT[_0x179a50(0x1ff)](_0x5366b4)&&_0x5366b4!=='.'&&_0x5366b4!=='..';}export function resolveLocalFilePathFromLockKey(_0x247070,_0xcfde4f){const _0x4a3116=a283_0x3d4742,_0x517ce8=_0xcfde4f[_0x4a3116(0x205)]('/');if(!_0x517ce8[_0x4a3116(0x211)](isSafeLockKeySegment))throw new Error(_0x4a3116(0x1f0)+_0xcfde4f);const _0x2c7647=resolve(join(_0x247070['scriptsRootDir'],..._0x517ce8)+'.js'),_0x2cdd51=resolve(_0x247070[_0x4a3116(0x1f6)]);if(_0x2c7647!==_0x2cdd51&&!_0x2c7647[_0x4a3116(0x1f7)](_0x2cdd51+sep))throw new Error(_0x4a3116(0x1fa)+_0x2c7647);return _0x2c7647;}export function createHookLocationMap(_0x2d90ed){const _0x56eeeb=a283_0x3d4742,_0xc11df3=new Map();for(const _0x4333e2 of _0x2d90ed){_0x4333e2[_0x56eeeb(0x212)]&&_0xc11df3[_0x56eeeb(0x21c)](_0x4333e2[_0x56eeeb(0x212)],{'datasetCode':_0x4333e2['datasetCode'],'operationType':snakeToCamel(_0x4333e2[_0x56eeeb(0x21e)]),'functionNode':_0x56eeeb(0x1f4)}),_0x4333e2[_0x56eeeb(0x1fb)]&&_0xc11df3[_0x56eeeb(0x21c)](_0x4333e2[_0x56eeeb(0x1fb)],{'datasetCode':_0x4333e2['datasetCode'],'operationType':snakeToCamel(_0x4333e2['operationType']),'functionNode':_0x56eeeb(0x20f)});}return _0xc11df3;}export function resolveRemoteScriptTarget(_0x257433,_0x22977a,_0x176426,_0x5e9300,_0x4bdb47){const _0x289614=a283_0x3d4742,_0x1c74aa=normalizeBffType(_0x22977a[_0x289614(0x219)]);if(!_0x1c74aa||!_0x22977a[_0x289614(0x210)])return null;if(_0x1c74aa==='HOOK'){const _0x226043=_0x22977a['id']?_0x176426[_0x289614(0x204)](_0x22977a['id']):undefined,_0x4e67a8=findHookLocationByRemoteId(_0x5e9300,_0x22977a['id']),_0xc13682=_0x226043?{..._0x4e67a8?.[_0x289614(0x1f8)]===_0x226043[_0x289614(0x1f8)]?_0x4e67a8:{},..._0x226043}:_0x4e67a8;if(!_0xc13682)return null;const _0x4f76ec=_0x4bdb47[_0x289614(0x204)](_0xc13682['datasetCode'][_0x289614(0x203)]()),_0x494362=_0x4f76ec??_0xc13682[_0x289614(0x1f8)],_0x40c1fd={..._0xc13682,'alias':_0x4f76ec},_0x59dbb8='HOOK/'+_0x494362+'/'+_0x40c1fd[_0x289614(0x21e)]+'/'+_0x40c1fd[_0x289614(0x201)]+'/'+_0x22977a['functionName'];if(!_0x59dbb8[_0x289614(0x205)]('/')[_0x289614(0x211)](isSafeLockKeySegment))return null;return{'lockKey':_0x59dbb8,'filePath':resolveLocalFilePathFromLockKey(_0x257433,_0x59dbb8),'type':_0x289614(0x1fc),'hookLocation':_0x40c1fd};}const _0x2f9032=_0x1c74aa+'/'+_0x22977a['functionName'];if(!_0x2f9032[_0x289614(0x205)]('/')[_0x289614(0x211)](isSafeLockKeySegment))return null;return{'lockKey':_0x2f9032,'filePath':resolveLocalFilePathFromLockKey(_0x257433,_0x2f9032),'type':_0x1c74aa};}export async function ensureParentDirectory(_0x320934){await mkdir(dirname(_0x320934),{'recursive':!![]});}export async function fileExists(_0x505c80){try{return await access(_0x505c80,constants['F_OK']),!![];}catch{return![];}}export async function directoryExists(_0x1a33ba){const _0x448afb=a283_0x3d4742;try{const _0x1e742d=await stat(_0x1a33ba);return _0x1e742d[_0x448afb(0x1f5)]();}catch{return![];}}
1
+ const a290_0x5e8ee8=a290_0x3f8c;(function(_0x2413f2,_0x15222b){const _0x5b0985=a290_0x3f8c,_0xe6e301=_0x2413f2();while(!![]){try{const _0x37c494=parseInt(_0x5b0985(0x13a))/0x1*(parseInt(_0x5b0985(0x13c))/0x2)+-parseInt(_0x5b0985(0x14a))/0x3+-parseInt(_0x5b0985(0x13e))/0x4+parseInt(_0x5b0985(0x14b))/0x5*(parseInt(_0x5b0985(0x148))/0x6)+parseInt(_0x5b0985(0x144))/0x7+-parseInt(_0x5b0985(0x13b))/0x8+parseInt(_0x5b0985(0x138))/0x9;if(_0x37c494===_0x15222b)break;else _0xe6e301['push'](_0xe6e301['shift']());}catch(_0x191bcf){_0xe6e301['push'](_0xe6e301['shift']());}}}(a290_0x416d,0xcba86));import{access,mkdir,readdir,stat}from'node:fs/promises';function a290_0x416d(){const _0x107ba4=['COMMON','every','ENDPOINT','set','replace','name','scriptType','afterScriptId','split','before','functionName','functionNode','trim','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','21764286rrLDeQ','HOOK/','53dsEbcZ','10974712DJVLHg','29922KHgpsJ','datasetCode','3025976BxLeVI','isDirectory','scriptsRootDir','beforeScriptId','push','ENOENT','509145ksShmv','HOOK','isFile','toUpperCase','6yyhQmw','.js','3761847dBeHQN','4662710Kdxqdd','get','operationType','startsWith','toLowerCase','endsWith','map','includes','after','F_OK'];a290_0x416d=function(){return _0x107ba4;};return a290_0x416d();}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_0x5e8ee8(0x129),a290_0x5e8ee8(0x12b),a290_0x5e8ee8(0x145)];export function normalizeBffType(_0x1018e6){const _0x506977=a290_0x5e8ee8;if(!_0x1018e6)return undefined;const _0x2704c5=_0x1018e6[_0x506977(0x135)]()[_0x506977(0x147)]();return SUPPORTED_BFF_TYPES[_0x506977(0x152)](_0x2704c5)?_0x2704c5:undefined;}async function scanJsFilesRecursively(_0x47a021,_0x4f7242){const _0x1090a5=a290_0x5e8ee8,_0x5e7636=[];try{const _0x507e48=await readdir(_0x47a021,{'withFileTypes':!![]});for(const _0xb3cc53 of _0x507e48){const _0x5d64ba=join(_0x47a021,_0xb3cc53[_0x1090a5(0x12e)]);if(_0xb3cc53[_0x1090a5(0x13f)]())_0x5e7636[_0x1090a5(0x142)](...await scanJsFilesRecursively(_0x5d64ba,_0x4f7242+'/'+_0xb3cc53['name']));else _0xb3cc53[_0x1090a5(0x146)]()&&_0xb3cc53[_0x1090a5(0x12e)][_0x1090a5(0x150)](_0x1090a5(0x149))&&_0x5e7636[_0x1090a5(0x142)]({'lockKey':_0x4f7242+'/'+_0xb3cc53['name']['replace'](/\.js$/,''),'filePath':_0x5d64ba});}}catch(_0x36215d){if(_0x36215d['code']!==_0x1090a5(0x143))throw _0x36215d;}return _0x5e7636;}async function scanFlatFunctions(_0x5f3ccf,_0x198067){const _0x4a3962=a290_0x5e8ee8,_0x2b1c09=join(_0x5f3ccf[_0x4a3962(0x140)],_0x198067),_0x590f3a=await scanJsFilesRecursively(_0x2b1c09,_0x198067);return _0x590f3a[_0x4a3962(0x151)](({lockKey:_0x24a962,filePath:_0xf1f1d7})=>({'type':_0x198067,'name':_0x24a962[_0x4a3962(0x131)]('/')['at'](-0x1)??'','filePath':_0xf1f1d7,'lockKey':_0x24a962}));}async function scanHookFunctions(_0x5e59e6){const _0x6dd15a=a290_0x5e8ee8,_0x11e049=join(_0x5e59e6[_0x6dd15a(0x140)],_0x6dd15a(0x145)),_0x3a64da=[];try{const _0x4d80ed=await readdir(_0x11e049,{'withFileTypes':!![]});for(const _0x5e5f35 of _0x4d80ed){if(!_0x5e5f35['isDirectory']())continue;const _0x1338a2=_0x5e5f35['name'],_0x1d963e=join(_0x11e049,_0x1338a2),_0x2a1cba=await readdir(_0x1d963e,{'withFileTypes':!![]});for(const _0x4da3c6 of _0x2a1cba){if(!_0x4da3c6[_0x6dd15a(0x13f)]())continue;const _0x21eb0d=_0x4da3c6[_0x6dd15a(0x12e)],_0x5f226c=join(_0x1d963e,_0x21eb0d),_0x27810c=await readdir(_0x5f226c,{'withFileTypes':!![]});for(const _0x2a77a5 of _0x27810c){if(!_0x2a77a5['isDirectory']())continue;const _0x113c66=_0x2a77a5[_0x6dd15a(0x12e)],_0x101e34=join(_0x5f226c,_0x113c66),_0x2d5b0c=await readdir(_0x101e34,{'withFileTypes':!![]});for(const _0x47a25c of _0x2d5b0c){if(!_0x47a25c['isFile']()||!_0x47a25c[_0x6dd15a(0x12e)][_0x6dd15a(0x150)](_0x6dd15a(0x149)))continue;const _0x8c0eb9=_0x47a25c[_0x6dd15a(0x12e)][_0x6dd15a(0x12d)](/\.js$/,'');_0x3a64da[_0x6dd15a(0x142)]({'type':_0x6dd15a(0x145),'name':_0x8c0eb9,'filePath':join(_0x101e34,_0x47a25c[_0x6dd15a(0x12e)]),'lockKey':_0x6dd15a(0x139)+_0x1338a2+'/'+_0x21eb0d+'/'+_0x113c66+'/'+_0x8c0eb9,'alias':_0x1338a2,'operationType':_0x21eb0d,'functionNode':_0x113c66});}}}}}catch(_0x49440c){if(_0x49440c['code']!==_0x6dd15a(0x143))throw _0x49440c;}return _0x3a64da;}export async function scanLocalBffFunctions(_0x444c8a,_0x412e7b){const _0x472647=a290_0x5e8ee8;if(_0x412e7b==='COMMON'||_0x412e7b===_0x472647(0x12b))return scanFlatFunctions(_0x444c8a,_0x412e7b);if(_0x412e7b==='HOOK')return scanHookFunctions(_0x444c8a);const [_0xc6354e,_0x572b76,_0x127485]=await Promise['all']([scanFlatFunctions(_0x444c8a,_0x472647(0x129)),scanFlatFunctions(_0x444c8a,'ENDPOINT'),scanHookFunctions(_0x444c8a)]);return[..._0xc6354e,..._0x572b76,..._0x127485];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x2ceec9){return SAFE_LOCK_KEY_SEGMENT['test'](_0x2ceec9)&&_0x2ceec9!=='.'&&_0x2ceec9!=='..';}function a290_0x3f8c(_0x372ddf,_0x7200a7){_0x372ddf=_0x372ddf-0x129;const _0x416d3d=a290_0x416d();let _0x3f8cfe=_0x416d3d[_0x372ddf];return _0x3f8cfe;}export function resolveLocalFilePathFromLockKey(_0x338c1e,_0x26ff40){const _0x5c2023=a290_0x5e8ee8,_0x2b6081=_0x26ff40['split']('/');if(!_0x2b6081['every'](isSafeLockKeySegment))throw new Error(_0x5c2023(0x136)+_0x26ff40);const _0x51e87c=resolve(join(_0x338c1e[_0x5c2023(0x140)],..._0x2b6081)+'.js'),_0x4044f8=resolve(_0x338c1e[_0x5c2023(0x140)]);if(_0x51e87c!==_0x4044f8&&!_0x51e87c[_0x5c2023(0x14e)](_0x4044f8+sep))throw new Error(_0x5c2023(0x137)+_0x51e87c);return _0x51e87c;}export function createHookLocationMap(_0x2614a1){const _0x52644b=a290_0x5e8ee8,_0x229184=new Map();for(const _0x6db1e3 of _0x2614a1){_0x6db1e3[_0x52644b(0x141)]&&_0x229184[_0x52644b(0x12c)](_0x6db1e3[_0x52644b(0x141)],{'datasetCode':_0x6db1e3[_0x52644b(0x13d)],'operationType':snakeToCamel(_0x6db1e3[_0x52644b(0x14d)]),'functionNode':_0x52644b(0x132)}),_0x6db1e3[_0x52644b(0x130)]&&_0x229184[_0x52644b(0x12c)](_0x6db1e3['afterScriptId'],{'datasetCode':_0x6db1e3[_0x52644b(0x13d)],'operationType':snakeToCamel(_0x6db1e3[_0x52644b(0x14d)]),'functionNode':_0x52644b(0x153)});}return _0x229184;}export function resolveRemoteScriptTarget(_0x51d7ae,_0x4cd024,_0x5d25ca,_0xba17ed,_0x591283){const _0x3597fe=a290_0x5e8ee8,_0x515ff6=normalizeBffType(_0x4cd024[_0x3597fe(0x12f)]);if(!_0x515ff6||!_0x4cd024['functionName'])return null;if(_0x515ff6===_0x3597fe(0x145)){const _0x2f1dce=_0x4cd024['id']?_0x5d25ca[_0x3597fe(0x14c)](_0x4cd024['id']):undefined,_0x313b17=findHookLocationByRemoteId(_0xba17ed,_0x4cd024['id']),_0x18bf4e=_0x2f1dce?{..._0x313b17?.[_0x3597fe(0x13d)]===_0x2f1dce['datasetCode']?_0x313b17:{},..._0x2f1dce}:_0x313b17;if(!_0x18bf4e)return null;const _0x3ca612=_0x591283[_0x3597fe(0x14c)](_0x18bf4e[_0x3597fe(0x13d)][_0x3597fe(0x14f)]()),_0x2c96f0=_0x3ca612??_0x18bf4e['datasetCode'],_0x25438e={..._0x18bf4e,'alias':_0x3ca612},_0x492c13=_0x3597fe(0x139)+_0x2c96f0+'/'+_0x25438e[_0x3597fe(0x14d)]+'/'+_0x25438e[_0x3597fe(0x134)]+'/'+_0x4cd024[_0x3597fe(0x133)];if(!_0x492c13[_0x3597fe(0x131)]('/')[_0x3597fe(0x12a)](isSafeLockKeySegment))return null;return{'lockKey':_0x492c13,'filePath':resolveLocalFilePathFromLockKey(_0x51d7ae,_0x492c13),'type':_0x3597fe(0x145),'hookLocation':_0x25438e};}const _0x553bd3=_0x515ff6+'/'+_0x4cd024[_0x3597fe(0x133)];if(!_0x553bd3['split']('/')[_0x3597fe(0x12a)](isSafeLockKeySegment))return null;return{'lockKey':_0x553bd3,'filePath':resolveLocalFilePathFromLockKey(_0x51d7ae,_0x553bd3),'type':_0x515ff6};}export async function ensureParentDirectory(_0x541514){await mkdir(dirname(_0x541514),{'recursive':!![]});}export async function fileExists(_0x108717){const _0xa41e24=a290_0x5e8ee8;try{return await access(_0x108717,constants[_0xa41e24(0x154)]),!![];}catch{return![];}}export async function directoryExists(_0x3ddaaa){const _0x4f974a=a290_0x5e8ee8;try{const _0x6f899c=await stat(_0x3ddaaa);return _0x6f899c[_0x4f974a(0x13f)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x2efd91,_0x2b390b){const _0x11c29f=a284_0x2322,_0x58002c=_0x2efd91();while(!![]){try{const _0x23b968=parseInt(_0x11c29f(0x73))/0x1+-parseInt(_0x11c29f(0x6e))/0x2*(parseInt(_0x11c29f(0x75))/0x3)+parseInt(_0x11c29f(0x74))/0x4*(-parseInt(_0x11c29f(0x6f))/0x5)+parseInt(_0x11c29f(0x71))/0x6*(-parseInt(_0x11c29f(0x78))/0x7)+-parseInt(_0x11c29f(0x6b))/0x8+-parseInt(_0x11c29f(0x6c))/0x9*(-parseInt(_0x11c29f(0x76))/0xa)+parseInt(_0x11c29f(0x6d))/0xb;if(_0x23b968===_0x2b390b)break;else _0x58002c['push'](_0x58002c['shift']());}catch(_0x49c5bd){_0x58002c['push'](_0x58002c['shift']());}}}(a284_0xb2fe,0x40e70));import{readFile}from'node:fs/promises';import a284_0x3905ae from'node:crypto';function a284_0xb2fe(){const _0x55f65b=['243429nwQxmP','10PoxFhZ','createHash','14oCnPYa','utf8','md5','update','2593576pBBopb','919071ZYzlQw','13869735rMxbhv','8levPzK','230qRkpQG','hex','1504884zbQmIj','digest','283647ZLBmOO','20036XgYqEy'];a284_0xb2fe=function(){return _0x55f65b;};return a284_0xb2fe();}export function computeContentHash(_0x483a8b){const _0x55f81d=a284_0x2322;return a284_0x3905ae[_0x55f81d(0x77)](_0x55f81d(0x7a))[_0x55f81d(0x6a)](_0x483a8b)[_0x55f81d(0x72)](_0x55f81d(0x70));}function a284_0x2322(_0x3dafc1,_0xe9e791){_0x3dafc1=_0x3dafc1-0x6a;const _0xb2fe14=a284_0xb2fe();let _0x2322e2=_0xb2fe14[_0x3dafc1];return _0x2322e2;}export async function computeFileHash(_0x10d785){const _0xe41478=a284_0x2322,_0x3e915b=await readFile(_0x10d785,_0xe41478(0x79));return computeContentHash(_0x3e915b);}
1
+ (function(_0x2780ef,_0x165ff4){const _0x45c376=a291_0x5d39,_0x38daff=_0x2780ef();while(!![]){try{const _0x117a3d=parseInt(_0x45c376(0xc0))/0x1*(-parseInt(_0x45c376(0xbd))/0x2)+-parseInt(_0x45c376(0xbf))/0x3+parseInt(_0x45c376(0xc3))/0x4+parseInt(_0x45c376(0xbc))/0x5+-parseInt(_0x45c376(0xc2))/0x6+parseInt(_0x45c376(0xbe))/0x7+-parseInt(_0x45c376(0xb9))/0x8*(parseInt(_0x45c376(0xc1))/0x9);if(_0x117a3d===_0x165ff4)break;else _0x38daff['push'](_0x38daff['shift']());}catch(_0x16d324){_0x38daff['push'](_0x38daff['shift']());}}}(a291_0x40b9,0xe0ac6));import{readFile}from'node:fs/promises';function a291_0x5d39(_0x18a539,_0xfbb497){_0x18a539=_0x18a539-0xb9;const _0x40b9b1=a291_0x40b9();let _0x5d39ef=_0x40b9b1[_0x18a539];return _0x5d39ef;}import a291_0x53006e from'node:crypto';function a291_0x40b9(){const _0x1732c7=['6828052eDHqVM','hex','utf8','createHash','208tTmRua','update','md5','6068365cRfKSt','38ITDwPb','11830217nJsOVS','1280961rXOLku','16327FLVbvm','733653QeiFSo','5002878XeuFeN'];a291_0x40b9=function(){return _0x1732c7;};return a291_0x40b9();}export function computeContentHash(_0x438acf){const _0xe32f43=a291_0x5d39;return a291_0x53006e[_0xe32f43(0xc6)](_0xe32f43(0xbb))[_0xe32f43(0xba)](_0x438acf)['digest'](_0xe32f43(0xc4));}export async function computeFileHash(_0x3934b0){const _0x3b7ca8=a291_0x5d39,_0x51bd2e=await readFile(_0x3934b0,_0x3b7ca8(0xc5));return computeContentHash(_0x51bd2e);}
@@ -1 +1 @@
1
- (function(_0x254dd0,_0x4c83ae){const _0x2411ea=a285_0xa146,_0x12531d=_0x254dd0();while(!![]){try{const _0x4dd175=parseInt(_0x2411ea(0xf1))/0x1+parseInt(_0x2411ea(0xe8))/0x2+-parseInt(_0x2411ea(0xe9))/0x3*(parseInt(_0x2411ea(0x105))/0x4)+-parseInt(_0x2411ea(0xf9))/0x5+-parseInt(_0x2411ea(0x10e))/0x6+-parseInt(_0x2411ea(0xe5))/0x7+parseInt(_0x2411ea(0xfe))/0x8;if(_0x4dd175===_0x4c83ae)break;else _0x12531d['push'](_0x12531d['shift']());}catch(_0x1358b1){_0x12531d['push'](_0x12531d['shift']());}}}(a285_0x3949,0xbf50e));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x37f24e){const _0x34962e=a285_0xa146,_0x59271f=[];for(const [_0x466ad8,_0x42a35a]of Object[_0x34962e(0x10b)](_0x37f24e[_0x34962e(0x100)])){const [_0x41ec1a,_0x1b091e]=_0x466ad8[_0x34962e(0x110)]('/');if(_0x41ec1a!==_0x34962e(0x115)||!_0x1b091e||!_0x42a35a[_0x34962e(0xeb)])continue;_0x59271f[_0x34962e(0xf0)]({'alias':_0x1b091e,'datasetCode':_0x42a35a[_0x34962e(0xeb)]});}return _0x59271f;}export function uniqueTrackedHookDirectoryByDataset(_0x468284){const _0x4980c6=a285_0xa146,_0x3124a9=new Map();for(const _0x344f04 of trackedHookDirectoryMappings(_0x468284)){const _0x3f6a93=directoryIdentity(_0x344f04[_0x4980c6(0xeb)]),_0x354118=_0x3124a9['get'](_0x3f6a93)??new Map();_0x354118[_0x4980c6(0x106)](directoryIdentity(_0x344f04[_0x4980c6(0x103)]),_0x344f04['alias']),_0x3124a9[_0x4980c6(0x106)](_0x3f6a93,_0x354118);}const _0x5921e0=new Map();for(const [_0x44259b,_0x322835]of _0x3124a9){if(_0x322835['size']>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES',_0x4980c6(0xf8)+_0x44259b+_0x4980c6(0xee)+[..._0x322835[_0x4980c6(0xf5)]()][_0x4980c6(0xff)](',\x20')+'.',{'datasetCode':_0x44259b,'directories':[..._0x322835[_0x4980c6(0xf5)]()]});_0x5921e0['set'](_0x44259b,[..._0x322835[_0x4980c6(0xf5)]()][0x0]);}return _0x5921e0;}export function assertUnambiguousHookDirectoryMappings(_0x4b66a5){const _0x11ca9c=a285_0xa146,_0x17f823=new Map();for(const {alias:_0xda7073,datasetCode:_0x250cfe}of _0x4b66a5){const _0xea8e18=directoryIdentity(_0xda7073),_0x5868d7=_0x17f823[_0x11ca9c(0xf4)](_0xea8e18)??new Set();_0x5868d7[_0x11ca9c(0x10f)](_0x250cfe),_0x17f823[_0x11ca9c(0x106)](_0xea8e18,_0x5868d7);}for(const [_0x6d5c81,_0xad1bc3]of _0x17f823){if(_0xad1bc3[_0x11ca9c(0xfc)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x11ca9c(0xe6)+_0x6d5c81+_0x11ca9c(0xf3),{'directoryName':_0x6d5c81,'datasetCodes':[..._0xad1bc3]});}}function a285_0xa146(_0x2e44d2,_0x71fd39){_0x2e44d2=_0x2e44d2-0xe2;const _0x3949a3=a285_0x3949();let _0xa14682=_0x3949a3[_0x2e44d2];return _0xa14682;}export function assertUnambiguousHookAliases(_0x440c7b){const _0x57e615=a285_0xa146,_0x1ae2ac=[..._0x440c7b],_0x286102=new Map(),_0xb5e4e0=new Map();for(const {alias:_0x50e0c6,datasetCode:_0xb0563b}of _0x1ae2ac){const _0x1c2ec4=directoryIdentity(_0x50e0c6),_0x46731b=directoryIdentity(_0xb0563b),_0x26cb9b=_0x286102[_0x57e615(0xf4)](_0x1c2ec4)??new Set();_0x26cb9b['add'](_0xb0563b),_0x286102['set'](_0x1c2ec4,_0x26cb9b);const _0x40713e=_0xb5e4e0[_0x57e615(0xf4)](_0x46731b)??new Set();_0x40713e[_0x57e615(0x10f)](_0x50e0c6),_0xb5e4e0[_0x57e615(0x106)](_0x46731b,_0x40713e);}for(const [_0x440ee2,_0x27e747]of _0x286102){if(_0x27e747[_0x57e615(0xfc)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS','SDK\x20alias\x20\x22'+_0x440ee2+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x440ee2,'datasetCodes':[..._0x27e747]});}for(const [_0x5abf80,_0x2e85c5]of _0xb5e4e0){if(_0x2e85c5[_0x57e615(0xfc)]>0x1)throw hookDirectoryError(_0x57e615(0x104),_0x57e615(0xf8)+_0x5abf80+_0x57e615(0xea),{'datasetCode':_0x5abf80,'aliases':[..._0x2e85c5]});}}export function buildHookDirectoryIndexes(_0x1487be,_0x1e9454=[]){const _0x449f9e=a285_0xa146,_0x433809=[..._0x1e9454];assertUnambiguousHookDirectoryMappings(_0x433809[_0x449f9e(0x109)](([_0x2ca231,_0x31efd5])=>({'alias':_0x2ca231,'datasetCode':_0x31efd5})));const _0x5501a2=new Map(),_0x3ad7e2=new Map();for(const _0xf88e24 of _0x1487be){appendUnique(_0x5501a2,directoryIdentity(_0xf88e24[_0x449f9e(0xef)]),_0xf88e24,_0x24c20a=>_0x24c20a[_0x449f9e(0xef)]);}for(const [_0x12c01f,_0x41d7d2]of _0x433809){appendUnique(_0x3ad7e2,directoryIdentity(_0x12c01f),_0x41d7d2,_0x490b0d=>_0x490b0d);}return{'datasetCodeToDatasets':_0x5501a2,'aliasToDatasetCodes':_0x3ad7e2};}export function resolvePushHookDirectory(_0x21e56a,_0x46c8e4,_0x26c501){const _0x393c71=a285_0xa146,_0x33ecfb=directoryIdentity(_0x21e56a),_0x5b4113=_0x26c501[_0x393c71(0xf2)][_0x393c71(0xf4)](_0x33ecfb)??[],_0x3ecd71=_0x26c501[_0x393c71(0xfd)]['get'](_0x33ecfb)??[],_0x4a09dc=new Set([..._0x5b4113['map'](_0x58d098=>_0x58d098[_0x393c71(0xef)]),..._0x3ecd71]);if(_0x4a09dc[_0x393c71(0xfc)]>0x1)throw hookDirectoryError(_0x393c71(0xe7),_0x393c71(0xe6)+_0x21e56a+_0x393c71(0x112),{'directoryName':_0x21e56a,'datasetCodes':[..._0x4a09dc]});const _0x11ba0c=[..._0x4a09dc][0x0];if(_0x11ba0c&&_0x46c8e4?.[_0x393c71(0xeb)]&&_0x11ba0c!==_0x46c8e4['datasetCode'])throw hookDirectoryError(_0x393c71(0x117),_0x393c71(0xe6)+_0x21e56a+_0x393c71(0xe2)+_0x46c8e4['datasetCode']+_0x393c71(0x10a)+_0x11ba0c+'\x22.',{'directoryName':_0x21e56a,'datasetCode':_0x11ba0c,'lockedDatasetCode':_0x46c8e4[_0x393c71(0xeb)]});const _0x3cd678=_0x11ba0c?findDatasetByCode(_0x26c501,_0x11ba0c):undefined,_0x546c47=!!_0x11ba0c&&_0x3ecd71[_0x393c71(0x102)](_0x11ba0c);if(_0x3cd678)return{'dataset':_0x3cd678,'datasetCode':_0x3cd678[_0x393c71(0xef)],..._0x546c47?{'alias':_0x21e56a}:{},'directoryProtocol':_0x546c47?_0x393c71(0x103):_0x393c71(0xeb),'warnings':[]};const _0x2c6cc2=_0x46c8e4?.[_0x393c71(0xeb)];if(_0x2c6cc2){const _0x45decc=findDatasetByCode(_0x26c501,_0x2c6cc2);if(_0x45decc)return{'dataset':_0x45decc,'datasetCode':_0x45decc[_0x393c71(0xef)],..._0x46c8e4['alias']?{'alias':_0x46c8e4[_0x393c71(0x103)]}:{},'directoryProtocol':_0x46c8e4[_0x393c71(0x103)]?'alias':_0x393c71(0xeb),'warnings':[]};}if(_0x11ba0c||_0x2c6cc2){const _0x3f579d=_0x11ba0c??_0x2c6cc2;throw hookDirectoryError('HOOK_DATASET_NOT_FOUND',_0x393c71(0xe6)+_0x21e56a+'\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.',{'directoryName':_0x21e56a,'datasetCode':_0x3f579d});}throw hookDirectoryError(_0x393c71(0xf7),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x21e56a+_0x393c71(0x101),{'directoryName':_0x21e56a});}function a285_0x3949(){const _0x3a87fe=['HOOK_DATASET_NOT_FOUND','HOOK_MAPPING_DRIFT','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','lockKey','details','10184923iKDVld','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_AMBIGUOUS','2961326OnhBRK','2095881xxKTcY','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','datasetCode','HOOK_DUPLICATE_DIRECTORIES','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','code','push','600994oCWBQv','datasetCodeToDatasets','\x22\x20resolves\x20to\x20multiple\x20Datasets.','get','values','normalize','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','2044560rUnIay','NFC','toLowerCase','size','aliasToDatasetCodes','18148656YEckYo','join','functions','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','includes','alias','HOOK_ALIAS_AMBIGUOUS','8gLGJNh','set','type','some','map','\x22\x20to\x20\x22','entries','length','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','1832724wMTmpa','add','split','message','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','Incomplete\x20HOOK\x20path:\x20','name','HOOK'];a285_0x3949=function(){return _0x3a87fe;};return a285_0x3949();}export function preflightPushHookDirectories(_0x37498a,_0xa8ed95,_0x4cf16e,_0x11fd3f){const _0x191d2e=a285_0xa146,_0x3dc6c1=new Map(),_0x23447b=new Map();for(const _0x154366 of _0x37498a){if(_0x154366[_0x191d2e(0x107)]!==_0x191d2e(0x115))continue;const _0x4e453a=_0x154366[_0x191d2e(0x103)];if(!_0x4e453a)throw hookDirectoryError(_0x191d2e(0xf7),_0x191d2e(0x113)+_0x154366[_0x191d2e(0xe3)],{'lockKey':_0x154366[_0x191d2e(0xe3)]});let _0x4be26a;try{_0x4be26a=resolvePushHookDirectory(_0x4e453a,_0xa8ed95['functions'][_0x154366[_0x191d2e(0xe3)]],_0x4cf16e);}catch(_0x2039cc){if(_0x11fd3f&&_0x2039cc instanceof CliError&&[_0x191d2e(0x116),_0x191d2e(0xf7)][_0x191d2e(0x102)](_0x2039cc['code'])){_0x11fd3f[_0x191d2e(0x106)](_0x154366[_0x191d2e(0xe3)],_0x2039cc[_0x191d2e(0x111)]);continue;}throw _0x2039cc;}_0x3dc6c1[_0x191d2e(0x106)](_0x154366[_0x191d2e(0xe3)],_0x4be26a);const _0x3e8e5c=_0x23447b[_0x191d2e(0xf4)](_0x4be26a[_0x191d2e(0xeb)])??new Set();_0x3e8e5c[_0x191d2e(0x10f)](_0x4e453a),_0x23447b[_0x191d2e(0x106)](_0x4be26a[_0x191d2e(0xeb)],_0x3e8e5c);}for(const [_0x34d7fd,_0x4a42e8]of _0x23447b){if(_0x4a42e8[_0x191d2e(0xfc)]>0x1)throw hookDirectoryError(_0x191d2e(0xec),_0x191d2e(0xf8)+_0x34d7fd+_0x191d2e(0x10d)+[..._0x4a42e8][_0x191d2e(0xff)](',\x20')+'.',{'datasetCode':_0x34d7fd,'directories':[..._0x4a42e8]});}return _0x3dc6c1;}export function hookDirectoryError(_0x4eec5f,_0x4cc100,_0x51b895){const _0x11c782=a285_0xa146,_0x4b3fce=new CliError(_0x4eec5f,0x2,_0x4eec5f+':\x20'+_0x4cc100);return _0x4b3fce[_0x11c782(0xe4)]=_0x51b895,_0x4b3fce;}function findDatasetByCode(_0x56a890,_0x18906d){const _0x58e470=a285_0xa146,_0x164294=_0x56a890[_0x58e470(0xf2)][_0x58e470(0xf4)](directoryIdentity(_0x18906d))??[];if(_0x164294[_0x58e470(0x10c)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x18906d+_0x58e470(0xed),{'datasetCode':_0x18906d,'candidates':_0x164294[_0x58e470(0x109)](datasetFact)});return _0x164294[0x0];}function directoryIdentity(_0x1dc78a){const _0x240ff3=a285_0xa146;return _0x1dc78a[_0x240ff3(0xf6)](_0x240ff3(0xfa))[_0x240ff3(0xfb)]();}function appendUnique(_0x1e5817,_0x486c4b,_0xda0396,_0x170a48){const _0x2947a5=a285_0xa146,_0x34b81a=_0x1e5817[_0x2947a5(0xf4)](_0x486c4b)??[];!_0x34b81a[_0x2947a5(0x108)](_0x569ba9=>_0x170a48(_0x569ba9)===_0x170a48(_0xda0396))&&_0x34b81a[_0x2947a5(0xf0)](_0xda0396),_0x1e5817[_0x2947a5(0x106)](_0x486c4b,_0x34b81a);}function datasetFact(_0xdaf1ea){const _0x21869e=a285_0xa146;return{'id':_0xdaf1ea['id'],'name':_0xdaf1ea[_0x21869e(0x114)],'datasetCode':_0xdaf1ea[_0x21869e(0xef)]};}
1
+ function a292_0x3506(_0x5dfac9,_0x498d30){_0x5dfac9=_0x5dfac9-0xfe;const _0x4ae0b9=a292_0x4ae0();let _0x3506dc=_0x4ae0b9[_0x5dfac9];return _0x3506dc;}(function(_0x41f609,_0x4cceed){const _0x3ecca9=a292_0x3506,_0x4fc81c=_0x41f609();while(!![]){try{const _0x16cdd2=parseInt(_0x3ecca9(0x106))/0x1*(-parseInt(_0x3ecca9(0x130))/0x2)+parseInt(_0x3ecca9(0x125))/0x3*(-parseInt(_0x3ecca9(0x104))/0x4)+parseInt(_0x3ecca9(0x12f))/0x5+-parseInt(_0x3ecca9(0x127))/0x6*(-parseInt(_0x3ecca9(0x11f))/0x7)+parseInt(_0x3ecca9(0x123))/0x8*(-parseInt(_0x3ecca9(0x118))/0x9)+parseInt(_0x3ecca9(0x108))/0xa*(-parseInt(_0x3ecca9(0xff))/0xb)+-parseInt(_0x3ecca9(0x11e))/0xc*(-parseInt(_0x3ecca9(0x107))/0xd);if(_0x16cdd2===_0x4cceed)break;else _0x4fc81c['push'](_0x4fc81c['shift']());}catch(_0x4f9c5b){_0x4fc81c['push'](_0x4fc81c['shift']());}}}(a292_0x4ae0,0xb2a84));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x445fb9){const _0x1c0b5d=a292_0x3506,_0x4164ef=[];for(const [_0x1d38a5,_0x5df623]of Object[_0x1c0b5d(0x105)](_0x445fb9[_0x1c0b5d(0x128)])){const [_0x634dd2,_0x2941ea]=_0x1d38a5[_0x1c0b5d(0x134)]('/');if(_0x634dd2!==_0x1c0b5d(0x12e)||!_0x2941ea||!_0x5df623[_0x1c0b5d(0x113)])continue;_0x4164ef[_0x1c0b5d(0x131)]({'alias':_0x2941ea,'datasetCode':_0x5df623[_0x1c0b5d(0x113)]});}return _0x4164ef;}export function uniqueTrackedHookDirectoryByDataset(_0x74e9d1){const _0x3ae5f9=a292_0x3506,_0x390cd5=new Map();for(const _0x85d096 of trackedHookDirectoryMappings(_0x74e9d1)){const _0x311044=directoryIdentity(_0x85d096[_0x3ae5f9(0x113)]),_0x4158c6=_0x390cd5[_0x3ae5f9(0x102)](_0x311044)??new Map();_0x4158c6[_0x3ae5f9(0x12b)](directoryIdentity(_0x85d096[_0x3ae5f9(0x12c)]),_0x85d096[_0x3ae5f9(0x12c)]),_0x390cd5[_0x3ae5f9(0x12b)](_0x311044,_0x4158c6);}const _0x2af711=new Map();for(const [_0x40119a,_0x4d2560]of _0x390cd5){if(_0x4d2560[_0x3ae5f9(0x12a)]>0x1)throw hookDirectoryError(_0x3ae5f9(0x10d),_0x3ae5f9(0x11b)+_0x40119a+_0x3ae5f9(0x111)+[..._0x4d2560[_0x3ae5f9(0x10a)]()][_0x3ae5f9(0x110)](',\x20')+'.',{'datasetCode':_0x40119a,'directories':[..._0x4d2560[_0x3ae5f9(0x10a)]()]});_0x2af711[_0x3ae5f9(0x12b)](_0x40119a,[..._0x4d2560['values']()][0x0]);}return _0x2af711;}export function assertUnambiguousHookDirectoryMappings(_0x55e142){const _0x1112a5=a292_0x3506,_0x1a47a0=new Map();for(const {alias:_0x48d425,datasetCode:_0x110fda}of _0x55e142){const _0x3730e3=directoryIdentity(_0x48d425),_0x3bc47d=_0x1a47a0['get'](_0x3730e3)??new Set();_0x3bc47d['add'](_0x110fda),_0x1a47a0[_0x1112a5(0x12b)](_0x3730e3,_0x3bc47d);}for(const [_0x587244,_0x30ca84]of _0x1a47a0){if(_0x30ca84[_0x1112a5(0x12a)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x1112a5(0x12d)+_0x587244+_0x1112a5(0x112),{'directoryName':_0x587244,'datasetCodes':[..._0x30ca84]});}}export function assertUnambiguousHookAliases(_0x55d3d7){const _0x1fc627=a292_0x3506,_0x4d0546=[..._0x55d3d7],_0x11447f=new Map(),_0x3af9cb=new Map();for(const {alias:_0x25786,datasetCode:_0x5aae94}of _0x4d0546){const _0x47e191=directoryIdentity(_0x25786),_0x125306=directoryIdentity(_0x5aae94),_0x22f1b8=_0x11447f[_0x1fc627(0x102)](_0x47e191)??new Set();_0x22f1b8['add'](_0x5aae94),_0x11447f['set'](_0x47e191,_0x22f1b8);const _0x2da73b=_0x3af9cb['get'](_0x125306)??new Set();_0x2da73b[_0x1fc627(0x133)](_0x25786),_0x3af9cb['set'](_0x125306,_0x2da73b);}for(const [_0x21fca2,_0x52c2d8]of _0x11447f){if(_0x52c2d8[_0x1fc627(0x12a)]>0x1)throw hookDirectoryError(_0x1fc627(0x132),'SDK\x20alias\x20\x22'+_0x21fca2+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x21fca2,'datasetCodes':[..._0x52c2d8]});}for(const [_0x1b55a9,_0x1f744c]of _0x3af9cb){if(_0x1f744c[_0x1fc627(0x12a)]>0x1)throw hookDirectoryError(_0x1fc627(0x132),_0x1fc627(0x11b)+_0x1b55a9+_0x1fc627(0xfe),{'datasetCode':_0x1b55a9,'aliases':[..._0x1f744c]});}}export function buildHookDirectoryIndexes(_0x33b37f,_0x52030c=[]){const _0x1956a6=a292_0x3506,_0x3afafa=[..._0x52030c];assertUnambiguousHookDirectoryMappings(_0x3afafa[_0x1956a6(0x135)](([_0x572b9a,_0x26b691])=>({'alias':_0x572b9a,'datasetCode':_0x26b691})));const _0x344420=new Map(),_0x4e41de=new Map();for(const _0xe859c1 of _0x33b37f){appendUnique(_0x344420,directoryIdentity(_0xe859c1['code']),_0xe859c1,_0x49497b=>_0x49497b[_0x1956a6(0x114)]);}for(const [_0x418d63,_0x5e6511]of _0x3afafa){appendUnique(_0x4e41de,directoryIdentity(_0x418d63),_0x5e6511,_0x544807=>_0x544807);}return{'datasetCodeToDatasets':_0x344420,'aliasToDatasetCodes':_0x4e41de};}function a292_0x4ae0(){const _0x28c43e=['lockKey','Dataset\x20\x22','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','36pfDbez','1557689gBTtUG','NFC','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','HOOK_DIRECTORY_AMBIGUOUS','32984OmkhHZ','aliasToDatasetCodes','139509JgsYXz','details','30lSSEkT','functions','\x22\x20to\x20\x22','size','set','alias','HOOK\x20directory\x20\x22','HOOK','1887410ebIshu','6iVnMtG','push','HOOK_ALIAS_AMBIGUOUS','add','split','map','length','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','11ilfuRr','some','includes','get','HOOK_DATASET_NOT_FOUND','68ONIJHy','entries','78095zBdDhZ','5935891JkFkah','3158290ztaVvX','message','values','HOOK_DIRECTORY_UNRESOLVED','HOOK_MAPPING_DRIFT','HOOK_DUPLICATE_DIRECTORIES','datasetCodeToDatasets','name','join','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','\x22\x20resolves\x20to\x20multiple\x20Datasets.','datasetCode','code','normalize','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','1719tVIHql','toLowerCase'];a292_0x4ae0=function(){return _0x28c43e;};return a292_0x4ae0();}export function resolvePushHookDirectory(_0x424977,_0x5f3099,_0x493158){const _0x338387=a292_0x3506,_0x5e50fb=directoryIdentity(_0x424977),_0xa592de=_0x493158[_0x338387(0x10e)]['get'](_0x5e50fb)??[],_0x2686fc=_0x493158[_0x338387(0x124)]['get'](_0x5e50fb)??[],_0x2b3b05=new Set([..._0xa592de[_0x338387(0x135)](_0x43c56f=>_0x43c56f[_0x338387(0x114)]),..._0x2686fc]);if(_0x2b3b05[_0x338387(0x12a)]>0x1)throw hookDirectoryError(_0x338387(0x122),_0x338387(0x12d)+_0x424977+_0x338387(0x11d),{'directoryName':_0x424977,'datasetCodes':[..._0x2b3b05]});const _0x8fad50=[..._0x2b3b05][0x0];if(_0x8fad50&&_0x5f3099?.[_0x338387(0x113)]&&_0x8fad50!==_0x5f3099['datasetCode'])throw hookDirectoryError(_0x338387(0x10c),'HOOK\x20directory\x20\x22'+_0x424977+_0x338387(0x137)+_0x5f3099[_0x338387(0x113)]+_0x338387(0x129)+_0x8fad50+'\x22.',{'directoryName':_0x424977,'datasetCode':_0x8fad50,'lockedDatasetCode':_0x5f3099[_0x338387(0x113)]});const _0x10cf17=_0x8fad50?findDatasetByCode(_0x493158,_0x8fad50):undefined,_0x2f7361=!!_0x8fad50&&_0x2686fc[_0x338387(0x101)](_0x8fad50);if(_0x10cf17)return{'dataset':_0x10cf17,'datasetCode':_0x10cf17[_0x338387(0x114)],..._0x2f7361?{'alias':_0x424977}:{},'directoryProtocol':_0x2f7361?_0x338387(0x12c):'datasetCode','warnings':[]};const _0x580048=_0x5f3099?.['datasetCode'];if(_0x580048){const _0x32ca87=findDatasetByCode(_0x493158,_0x580048);if(_0x32ca87)return{'dataset':_0x32ca87,'datasetCode':_0x32ca87[_0x338387(0x114)],..._0x5f3099['alias']?{'alias':_0x5f3099[_0x338387(0x12c)]}:{},'directoryProtocol':_0x5f3099[_0x338387(0x12c)]?_0x338387(0x12c):'datasetCode','warnings':[]};}if(_0x8fad50||_0x580048){const _0x2488a1=_0x8fad50??_0x580048;throw hookDirectoryError(_0x338387(0x103),_0x338387(0x12d)+_0x424977+_0x338387(0x116),{'directoryName':_0x424977,'datasetCode':_0x2488a1});}throw hookDirectoryError(_0x338387(0x10b),_0x338387(0x11c)+_0x424977+_0x338387(0x117),{'directoryName':_0x424977});}export function preflightPushHookDirectories(_0x599897,_0x7ed518,_0x38ebde,_0x2cae1c){const _0x2b6525=a292_0x3506,_0x349b97=new Map(),_0x8c12f6=new Map();for(const _0x4f66a8 of _0x599897){if(_0x4f66a8['type']!=='HOOK')continue;const _0x44ebe5=_0x4f66a8[_0x2b6525(0x12c)];if(!_0x44ebe5)throw hookDirectoryError(_0x2b6525(0x10b),'Incomplete\x20HOOK\x20path:\x20'+_0x4f66a8[_0x2b6525(0x11a)],{'lockKey':_0x4f66a8[_0x2b6525(0x11a)]});let _0x21a456;try{_0x21a456=resolvePushHookDirectory(_0x44ebe5,_0x7ed518[_0x2b6525(0x128)][_0x4f66a8[_0x2b6525(0x11a)]],_0x38ebde);}catch(_0x45ce79){if(_0x2cae1c&&_0x45ce79 instanceof CliError&&[_0x2b6525(0x103),_0x2b6525(0x10b)]['includes'](_0x45ce79[_0x2b6525(0x114)])){_0x2cae1c['set'](_0x4f66a8['lockKey'],_0x45ce79[_0x2b6525(0x109)]);continue;}throw _0x45ce79;}_0x349b97['set'](_0x4f66a8[_0x2b6525(0x11a)],_0x21a456);const _0x9296c2=_0x8c12f6['get'](_0x21a456[_0x2b6525(0x113)])??new Set();_0x9296c2['add'](_0x44ebe5),_0x8c12f6[_0x2b6525(0x12b)](_0x21a456['datasetCode'],_0x9296c2);}for(const [_0x1635cb,_0x47ea7b]of _0x8c12f6){if(_0x47ea7b[_0x2b6525(0x12a)]>0x1)throw hookDirectoryError(_0x2b6525(0x10d),'Dataset\x20\x22'+_0x1635cb+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x47ea7b]['join'](',\x20')+'.',{'datasetCode':_0x1635cb,'directories':[..._0x47ea7b]});}return _0x349b97;}export function hookDirectoryError(_0x54902b,_0x8c2a8d,_0x233415){const _0x33d09a=a292_0x3506,_0x22a190=new CliError(_0x54902b,0x2,_0x54902b+':\x20'+_0x8c2a8d);return _0x22a190[_0x33d09a(0x126)]=_0x233415,_0x22a190;}function findDatasetByCode(_0x5d4a8f,_0x1f4c9f){const _0x574285=a292_0x3506,_0x499cca=_0x5d4a8f['datasetCodeToDatasets'][_0x574285(0x102)](directoryIdentity(_0x1f4c9f))??[];if(_0x499cca[_0x574285(0x136)]>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x1f4c9f+_0x574285(0x121),{'datasetCode':_0x1f4c9f,'candidates':_0x499cca[_0x574285(0x135)](datasetFact)});return _0x499cca[0x0];}function directoryIdentity(_0x19b36d){const _0x3d38d0=a292_0x3506;return _0x19b36d[_0x3d38d0(0x115)](_0x3d38d0(0x120))[_0x3d38d0(0x119)]();}function appendUnique(_0x38b927,_0x9976c4,_0x42984f,_0x56ef9f){const _0x107d2a=a292_0x3506,_0x302e39=_0x38b927[_0x107d2a(0x102)](_0x9976c4)??[];!_0x302e39[_0x107d2a(0x100)](_0xee5f2f=>_0x56ef9f(_0xee5f2f)===_0x56ef9f(_0x42984f))&&_0x302e39['push'](_0x42984f),_0x38b927[_0x107d2a(0x12b)](_0x9976c4,_0x302e39);}function datasetFact(_0xf884fb){const _0x4212ea=a292_0x3506;return{'id':_0xf884fb['id'],'name':_0xf884fb[_0x4212ea(0x10f)],'datasetCode':_0xf884fb[_0x4212ea(0x114)]};}
@@ -1 +1 @@
1
- (function(_0x5f210a,_0x2b0904){const _0xabff83=a286_0x13eb,_0x104b6f=_0x5f210a();while(!![]){try{const _0x593928=parseInt(_0xabff83(0xb3))/0x1+parseInt(_0xabff83(0xab))/0x2+parseInt(_0xabff83(0xbe))/0x3+parseInt(_0xabff83(0xb2))/0x4*(parseInt(_0xabff83(0xb5))/0x5)+parseInt(_0xabff83(0xad))/0x6*(parseInt(_0xabff83(0xaa))/0x7)+parseInt(_0xabff83(0xa8))/0x8+-parseInt(_0xabff83(0xba))/0x9*(parseInt(_0xabff83(0xbf))/0xa);if(_0x593928===_0x2b0904)break;else _0x104b6f['push'](_0x104b6f['shift']());}catch(_0x225e21){_0x104b6f['push'](_0x104b6f['shift']());}}}(a286_0x368a,0xb3963));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x2539cf,_0x3368f6,_0x4bcb1b,_0x5b9e6c){const _0x27c0f9=a286_0x13eb,_0x4c215c={'apps':_0x2539cf['apps']&&typeof _0x2539cf[_0x27c0f9(0xb8)]===_0x27c0f9(0xb4)?_0x2539cf['apps']:{}};let _0x2dce7a=_0x4c215c[_0x27c0f9(0xb8)][_0x3368f6];if(!_0x2dce7a)return _0x2dce7a={'scriptsRoot':_0x4bcb1b,'lastSync':'','functions':{}},_0x4c215c[_0x27c0f9(0xb8)][_0x3368f6]=_0x2dce7a,{'lockData':_0x4c215c,'appLock':_0x2dce7a};if(!_0x2dce7a[_0x27c0f9(0xbd)])_0x2dce7a[_0x27c0f9(0xbd)]=_0x4bcb1b;else{if(_0x2dce7a[_0x27c0f9(0xbd)]!==_0x4bcb1b)throw new Error(_0x5b9e6c+_0x27c0f9(0xac)+(_0x27c0f9(0xb9)+_0x4bcb1b+_0x27c0f9(0xae)+_0x2dce7a[_0x27c0f9(0xbd)]+_0x27c0f9(0xb7))+_0x27c0f9(0xb1));}return!_0x2dce7a[_0x27c0f9(0xb6)]&&(_0x2dce7a[_0x27c0f9(0xb6)]={}),!_0x2dce7a[_0x27c0f9(0xbb)]&&(_0x2dce7a[_0x27c0f9(0xbb)]=''),{'lockData':_0x4c215c,'appLock':_0x2dce7a};}function a286_0x368a(){const _0x3bebd5=['code','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','1624lVuRZH','556535kQKxox','object','14235vZnHCt','functions','\x22.\x20','apps','current\x20\x22','126lUmsmR','lastSync','stringify','scriptsRoot','2818467InJusZ','2975860GkeVMF','10033264UWslVx','utf8','6867mPcgLj','1858038TBRofV',':\x20scriptsRoot\x20mismatch\x20—\x20','408Jbtbwu','\x22\x20vs\x20lock\x20\x22','parse'];a286_0x368a=function(){return _0x3bebd5;};return a286_0x368a();}function a286_0x13eb(_0x572189,_0x129d01){_0x572189=_0x572189-0xa8;const _0x368a76=a286_0x368a();let _0x13eb1f=_0x368a76[_0x572189];return _0x13eb1f;}export async function readBffLockFile(_0x11da45){const _0x25af7f=a286_0x13eb;try{const _0x1e5834=await readFile(_0x11da45,_0x25af7f(0xa9)),_0x272693=JSON[_0x25af7f(0xaf)](_0x1e5834);return{'apps':_0x272693[_0x25af7f(0xb8)]&&typeof _0x272693['apps']===_0x25af7f(0xb4)?_0x272693[_0x25af7f(0xb8)]:{}};}catch(_0x15bba2){if(_0x15bba2[_0x25af7f(0xb0)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x15bba2));}}export async function writeBffLockFile(_0x5c644b,_0x3e8418){const _0x3b5deb=a286_0x13eb;await mkdir(dirname(_0x5c644b),{'recursive':!![]}),await writeFile(_0x5c644b,JSON[_0x3b5deb(0xbc)](_0x3e8418,null,0x2),'utf8');}
1
+ (function(_0x2d7566,_0x616166){const _0x2c883b=a293_0x2b20,_0x2a4eee=_0x2d7566();while(!![]){try{const _0x3df3b0=-parseInt(_0x2c883b(0x1eb))/0x1+-parseInt(_0x2c883b(0x203))/0x2+parseInt(_0x2c883b(0x1fc))/0x3*(parseInt(_0x2c883b(0x204))/0x4)+parseInt(_0x2c883b(0x1f3))/0x5*(-parseInt(_0x2c883b(0x1f6))/0x6)+-parseInt(_0x2c883b(0x1f7))/0x7*(-parseInt(_0x2c883b(0x1fd))/0x8)+-parseInt(_0x2c883b(0x1ec))/0x9*(-parseInt(_0x2c883b(0x1ea))/0xa)+parseInt(_0x2c883b(0x1f2))/0xb;if(_0x3df3b0===_0x616166)break;else _0x2a4eee['push'](_0x2a4eee['shift']());}catch(_0x2c83a8){_0x2a4eee['push'](_0x2a4eee['shift']());}}}(a293_0x4097,0xca346));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a293_0x2b20(_0x175440,_0x498529){_0x175440=_0x175440-0x1ea;const _0x4097bf=a293_0x4097();let _0x2b208d=_0x4097bf[_0x175440];return _0x2b208d;}function a293_0x4097(){const _0x472973=['ENOENT','311835DGMhAZ','5208344CZCoLg','current\x20\x22','parse','\x22\x20vs\x20lock\x20\x22','scriptsRoot','\x22.\x20','2955422ryBYba','24zyrSuD','12319990qbrLxR','28189DmPTIi','9YFdPon','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','lastSync','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','utf8','functions','11604417QqmfVv','5UJFDlN',':\x20scriptsRoot\x20mismatch\x20—\x20','code','7365174giWNWm','7SZFgQl','object','stringify','apps'];a293_0x4097=function(){return _0x472973;};return a293_0x4097();}export function ensureLockScope(_0x15fd64,_0x3759c0,_0x5863a9,_0x385dde){const _0x5963e9=a293_0x2b20,_0x1f77b0={'apps':_0x15fd64['apps']&&typeof _0x15fd64[_0x5963e9(0x1fa)]===_0x5963e9(0x1f8)?_0x15fd64['apps']:{}};let _0x16111c=_0x1f77b0[_0x5963e9(0x1fa)][_0x3759c0];if(!_0x16111c)return _0x16111c={'scriptsRoot':_0x5863a9,'lastSync':'','functions':{}},_0x1f77b0['apps'][_0x3759c0]=_0x16111c,{'lockData':_0x1f77b0,'appLock':_0x16111c};if(!_0x16111c['scriptsRoot'])_0x16111c[_0x5963e9(0x201)]=_0x5863a9;else{if(_0x16111c['scriptsRoot']!==_0x5863a9)throw new Error(_0x385dde+_0x5963e9(0x1f4)+(_0x5963e9(0x1fe)+_0x5863a9+_0x5963e9(0x200)+_0x16111c[_0x5963e9(0x201)]+_0x5963e9(0x202))+_0x5963e9(0x1ef));}return!_0x16111c['functions']&&(_0x16111c[_0x5963e9(0x1f1)]={}),!_0x16111c['lastSync']&&(_0x16111c[_0x5963e9(0x1ee)]=''),{'lockData':_0x1f77b0,'appLock':_0x16111c};}export async function readBffLockFile(_0x4def8c){const _0x4c83c2=a293_0x2b20;try{const _0x210073=await readFile(_0x4def8c,_0x4c83c2(0x1f0)),_0x1b3be0=JSON[_0x4c83c2(0x1ff)](_0x210073);return{'apps':_0x1b3be0[_0x4c83c2(0x1fa)]&&typeof _0x1b3be0[_0x4c83c2(0x1fa)]==='object'?_0x1b3be0[_0x4c83c2(0x1fa)]:{}};}catch(_0x12a724){if(_0x12a724[_0x4c83c2(0x1f5)]===_0x4c83c2(0x1fb))return null;throw new Error(_0x4c83c2(0x1ed)+String(_0x12a724));}}export async function writeBffLockFile(_0xb2b8f2,_0x4b2aad){const _0x3a8d4c=a293_0x2b20;await mkdir(dirname(_0xb2b8f2),{'recursive':!![]}),await writeFile(_0xb2b8f2,JSON[_0x3a8d4c(0x1f9)](_0x4b2aad,null,0x2),'utf8');}
@@ -1 +1 @@
1
- function a288_0x4156(){const _0x1bedc7=['TODO:\x20add\x20script\x20description','2280762uqMUEK','15QFWcRv','functionNode','after','2292914izapea','436552FfdccA','90fFLphe','test','toLowerCase','startsWith','some','TODO:\x20补充脚本功能描述','operationType','607076drTDqZ','map','before','replace','trim','match','split','2910966vrRhjM','1509317DHiPJe','7590233QHceOp','entries','alias'];a288_0x4156=function(){return _0x1bedc7;};return a288_0x4156();}const a288_0x527eea=a288_0x54ae;(function(_0x190a9e,_0xef42d){const _0x8b3d67=a288_0x54ae,_0x203e2c=_0x190a9e();while(!![]){try{const _0x51e294=parseInt(_0x8b3d67(0xe8))/0x1+-parseInt(_0x8b3d67(0xf1))/0x2+-parseInt(_0x8b3d67(0xe7))/0x3+parseInt(_0x8b3d67(0xe0))/0x4*(parseInt(_0x8b3d67(0xee))/0x5)+parseInt(_0x8b3d67(0xed))/0x6+parseInt(_0x8b3d67(0xe9))/0x7+-parseInt(_0x8b3d67(0xd8))/0x8*(parseInt(_0x8b3d67(0xd9))/0x9);if(_0x51e294===_0xef42d)break;else _0x203e2c['push'](_0x203e2c['shift']());}catch(_0x1ee51d){_0x203e2c['push'](_0x203e2c['shift']());}}}(a288_0x4156,0xbb289));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a288_0x527eea(0xde);function a288_0x54ae(_0x223e98,_0x2492d3){_0x223e98=_0x223e98-0xd8;const _0x41565b=a288_0x4156();let _0x54aefb=_0x41565b[_0x223e98];return _0x54aefb;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a288_0x527eea(0xec);export function snakeToCamel(_0x12ff82){const _0x1554c6=a288_0x527eea;return _0x12ff82[_0x1554c6(0xdb)]()[_0x1554c6(0xe3)](/_([a-z])/g,(_0x1888a6,_0xf2880f)=>_0xf2880f['toUpperCase']());}export function findHookLocationByRemoteId(_0x3ca70b,_0x39d6b2){const _0x133ab5=a288_0x527eea;if(!_0x39d6b2)return undefined;for(const [_0x548a72,_0x1da18e]of Object[_0x133ab5(0xea)](_0x3ca70b)){if(_0x1da18e['remoteId']===_0x39d6b2&&_0x1da18e['datasetCode']&&_0x1da18e[_0x133ab5(0xdf)]&&_0x1da18e[_0x133ab5(0xef)]){const _0x5c6166=_0x548a72['split']('/')[0x1];return{'alias':_0x5c6166||_0x1da18e[_0x133ab5(0xeb)],'datasetCode':_0x1da18e['datasetCode'],'operationType':_0x1da18e['operationType'],'functionNode':_0x1da18e[_0x133ab5(0xef)]};}}return undefined;}export function extractScriptDescription(_0x4cfe82){const _0x4d5bb4=a288_0x527eea,_0xf8ff06=_0x4cfe82[_0x4d5bb4(0xe5)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0xf8ff06?.[0x1])return undefined;const _0x3e96c4=_0xf8ff06[0x1],_0x331398=_0x2642d1=>{const _0x15b753=_0x4d5bb4,_0x2dda65=_0x2642d1?.[_0x15b753(0xe4)]();if(!_0x2dda65||_0x2dda65===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x2dda65===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x2dda65;},_0x1a9ffc=_0x3e96c4['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x1a9ffc)return _0x331398(_0x1a9ffc[0x1]);const _0x3c56ca=_0x3e96c4[_0x4d5bb4(0xe6)](/\r?\n/)[_0x4d5bb4(0xe1)](_0x58f350=>_0x58f350[_0x4d5bb4(0xe3)](/^\s*\*\s?/,'')['trim']()),_0x47d57e=_0x3c56ca[_0x4d5bb4(0xdd)](_0x5cb620=>/^\[\s*脚本类型\s*]\s*\S+/[_0x4d5bb4(0xda)](_0x5cb620))&&_0x3c56ca[_0x4d5bb4(0xdd)](_0x31523e=>/^\[\s*脚本名称\s*]\s*\S+/[_0x4d5bb4(0xda)](_0x31523e));if(!_0x47d57e)return undefined;for(const _0x25d225 of _0x3c56ca){if(!_0x25d225||_0x25d225[_0x4d5bb4(0xdc)]('@')||/^\[[^\]]+]\s*/[_0x4d5bb4(0xda)](_0x25d225))continue;return _0x331398(_0x25d225);}return undefined;}export function isValidBffFunctionName(_0xbfed1c){const _0x2c9e19=a288_0x527eea;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x2c9e19(0xda)](_0xbfed1c);}export function normalizeHookFunctionNode(_0x2f3fa9){const _0x8f857c=a288_0x527eea;if(!_0x2f3fa9)return undefined;const _0x347b61=_0x2f3fa9[_0x8f857c(0xe4)]()[_0x8f857c(0xdb)]();if(_0x347b61===_0x8f857c(0xe2)||_0x347b61===_0x8f857c(0xf0))return _0x347b61;return undefined;}
1
+ const a295_0x287945=a295_0xf1bd;(function(_0x4d990a,_0x4c8af7){const _0x27715f=a295_0xf1bd,_0x5e2ebe=_0x4d990a();while(!![]){try{const _0x1b3fb6=-parseInt(_0x27715f(0x16e))/0x1*(-parseInt(_0x27715f(0x163))/0x2)+parseInt(_0x27715f(0x168))/0x3+parseInt(_0x27715f(0x16a))/0x4+-parseInt(_0x27715f(0x170))/0x5*(-parseInt(_0x27715f(0x15a))/0x6)+-parseInt(_0x27715f(0x160))/0x7+-parseInt(_0x27715f(0x158))/0x8+parseInt(_0x27715f(0x167))/0x9*(-parseInt(_0x27715f(0x166))/0xa);if(_0x1b3fb6===_0x4c8af7)break;else _0x5e2ebe['push'](_0x5e2ebe['shift']());}catch(_0x4385f6){_0x5e2ebe['push'](_0x5e2ebe['shift']());}}}(a295_0x3114,0x5eab6));function a295_0xf1bd(_0x298cbf,_0xa3987e){_0x298cbf=_0x298cbf-0x156;const _0x3114d9=a295_0x3114();let _0xf1bdcb=_0x3114d9[_0x298cbf];return _0xf1bdcb;}export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a295_0x287945(0x164);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x5a6ec2){const _0x5d3a09=a295_0x287945;return _0x5a6ec2[_0x5d3a09(0x161)]()['replace'](/_([a-z])/g,(_0x4ec09e,_0x5a2a75)=>_0x5a2a75[_0x5d3a09(0x162)]());}export function findHookLocationByRemoteId(_0x29ab4b,_0x4eb32a){const _0x5741e3=a295_0x287945;if(!_0x4eb32a)return undefined;for(const [_0x57f1e,_0x1b7f95]of Object[_0x5741e3(0x15c)](_0x29ab4b)){if(_0x1b7f95[_0x5741e3(0x157)]===_0x4eb32a&&_0x1b7f95[_0x5741e3(0x169)]&&_0x1b7f95[_0x5741e3(0x16b)]&&_0x1b7f95[_0x5741e3(0x16c)]){const _0x296f6b=_0x57f1e[_0x5741e3(0x159)]('/')[0x1];return{'alias':_0x296f6b||_0x1b7f95[_0x5741e3(0x15e)],'datasetCode':_0x1b7f95[_0x5741e3(0x169)],'operationType':_0x1b7f95[_0x5741e3(0x16b)],'functionNode':_0x1b7f95[_0x5741e3(0x16c)]};}}return undefined;}function a295_0x3114(){const _0xd6c4da=['1974668ChMwOv','operationType','functionNode','before','68KRxGGt','match','695OAWDqI','startsWith','after','remoteId','5085592inuQFd','split','32082rwgijA','some','entries','map','alias','test','1862805BzLWtG','toLowerCase','toUpperCase','8826OlgQKl','TODO:\x20补充脚本功能描述','trim','293630wUOphO','171lEoMqg','931479ExNVZr','datasetCode'];a295_0x3114=function(){return _0xd6c4da;};return a295_0x3114();}export function extractScriptDescription(_0x23d965){const _0x40b3ea=a295_0x287945,_0x4d30ec=_0x23d965[_0x40b3ea(0x16f)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x4d30ec?.[0x1])return undefined;const _0x5629ef=_0x4d30ec[0x1],_0x9ecd53=_0x3caeac=>{const _0x5795a9=_0x40b3ea,_0x4c6a49=_0x3caeac?.[_0x5795a9(0x165)]();if(!_0x4c6a49||_0x4c6a49===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x4c6a49===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x4c6a49;},_0x3678cd=_0x5629ef[_0x40b3ea(0x16f)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x3678cd)return _0x9ecd53(_0x3678cd[0x1]);const _0x2dca07=_0x5629ef[_0x40b3ea(0x159)](/\r?\n/)[_0x40b3ea(0x15d)](_0x3d1c29=>_0x3d1c29['replace'](/^\s*\*\s?/,'')[_0x40b3ea(0x165)]()),_0x437994=_0x2dca07[_0x40b3ea(0x15b)](_0x5e2309=>/^\[\s*脚本类型\s*]\s*\S+/[_0x40b3ea(0x15f)](_0x5e2309))&&_0x2dca07[_0x40b3ea(0x15b)](_0x52bc4c=>/^\[\s*脚本名称\s*]\s*\S+/[_0x40b3ea(0x15f)](_0x52bc4c));if(!_0x437994)return undefined;for(const _0x5027b6 of _0x2dca07){if(!_0x5027b6||_0x5027b6[_0x40b3ea(0x171)]('@')||/^\[[^\]]+]\s*/['test'](_0x5027b6))continue;return _0x9ecd53(_0x5027b6);}return undefined;}export function isValidBffFunctionName(_0x797a41){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x797a41);}export function normalizeHookFunctionNode(_0x225340){const _0x49a5c4=a295_0x287945;if(!_0x225340)return undefined;const _0x24cee6=_0x225340[_0x49a5c4(0x165)]()['toLowerCase']();if(_0x24cee6===_0x49a5c4(0x16d)||_0x24cee6===_0x49a5c4(0x156))return _0x24cee6;return undefined;}
@@ -1 +1 @@
1
- const a289_0x1d78f6=a289_0x3f1a;(function(_0x40ab55,_0x1db0a3){const _0x954fb4=a289_0x3f1a,_0xaa7302=_0x40ab55();while(!![]){try{const _0x5856fd=parseInt(_0x954fb4(0xed))/0x1*(parseInt(_0x954fb4(0xeb))/0x2)+-parseInt(_0x954fb4(0xea))/0x3+parseInt(_0x954fb4(0xef))/0x4+-parseInt(_0x954fb4(0xe8))/0x5+parseInt(_0x954fb4(0xe9))/0x6+parseInt(_0x954fb4(0xe7))/0x7+-parseInt(_0x954fb4(0xf0))/0x8;if(_0x5856fd===_0x1db0a3)break;else _0xaa7302['push'](_0xaa7302['shift']());}catch(_0x97634a){_0xaa7302['push'](_0xaa7302['shift']());}}}(a289_0x4f47,0x7f1cd));function a289_0x3f1a(_0x2ba488,_0x411007){_0x2ba488=_0x2ba488-0xe7;const _0x4f47ca=a289_0x4f47();let _0x3f1a36=_0x4f47ca[_0x2ba488];return _0x3f1a36;}export const CROSS_DB_ANALYSIS_PATHS={'start':a289_0x1d78f6(0xec),'status':'/smartapi/db-analysis/cross-db/status','latest':a289_0x1d78f6(0xee)};function a289_0x4f47(){const _0xe25270=['1346184ddKXmC','658162DXNrzV','/smartapi/db-analysis/cross-db/start','1zoAxoc','/smartapi/db-analysis/cross-db/latest-job','3029376wSscLR','5912080exguxD','7084742teyFTd','3412225cJIEOy','1753830uXLaep'];a289_0x4f47=function(){return _0xe25270;};return a289_0x4f47();}
1
+ const a296_0x40ff2a=a296_0x147a;function a296_0x147a(_0x5eb5db,_0x449442){_0x5eb5db=_0x5eb5db-0x125;const _0x361610=a296_0x3616();let _0x147ac1=_0x361610[_0x5eb5db];return _0x147ac1;}(function(_0x43ecd3,_0x3833ce){const _0xfec0fa=a296_0x147a,_0x37f42f=_0x43ecd3();while(!![]){try{const _0x732bb5=-parseInt(_0xfec0fa(0x125))/0x1+parseInt(_0xfec0fa(0x12e))/0x2+-parseInt(_0xfec0fa(0x12c))/0x3+parseInt(_0xfec0fa(0x129))/0x4+parseInt(_0xfec0fa(0x127))/0x5*(parseInt(_0xfec0fa(0x12b))/0x6)+-parseInt(_0xfec0fa(0x126))/0x7*(parseInt(_0xfec0fa(0x130))/0x8)+-parseInt(_0xfec0fa(0x12a))/0x9*(parseInt(_0xfec0fa(0x12f))/0xa);if(_0x732bb5===_0x3833ce)break;else _0x37f42f['push'](_0x37f42f['shift']());}catch(_0x5039b9){_0x37f42f['push'](_0x37f42f['shift']());}}}(a296_0x3616,0x2945f));function a296_0x3616(){const _0x24a3c7=['556948UHIuZA','10RtXRQl','152avPFNw','171681fXhOVe','13811URnFtd','5aSDQAJ','/smartapi/db-analysis/cross-db/start','365016hyCcHt','340029xfbsQp','619776XamIfy','171060OQvFUs','/smartapi/db-analysis/cross-db/latest-job'];a296_0x3616=function(){return _0x24a3c7;};return a296_0x3616();}export const CROSS_DB_ANALYSIS_PATHS={'start':a296_0x40ff2a(0x128),'status':'/smartapi/db-analysis/cross-db/status','latest':a296_0x40ff2a(0x12d)};
@@ -1 +1 @@
1
- function a290_0xb6fa(_0x281f89,_0x5a4167){_0x281f89=_0x281f89-0xd1;const _0x1872d7=a290_0x1872();let _0xb6fade=_0x1872d7[_0x281f89];return _0xb6fade;}const a290_0x4f45c0=a290_0xb6fa;function a290_0x1872(){const _0xc5bfad=['8ycowMX','7925731DCWXny','1859300pQHODK','/smartapi/cross-db-relation/create','/smartapi/cross-db-relation/delete','5DcrOkN','2840481Wuxvwg','6tdqYAd','1144844WMlUhl','128981AAZlnw','5480964GGPVte','/smartapi/cross-db-relation/query','1520292JjwAoo','3OLxHgd'];a290_0x1872=function(){return _0xc5bfad;};return a290_0x1872();}(function(_0x1fda8f,_0x5adfb2){const _0x1e0cf5=a290_0xb6fa,_0x1bce1f=_0x1fda8f();while(!![]){try{const _0x4ab82a=-parseInt(_0x1e0cf5(0xde))/0x1*(-parseInt(_0x1e0cf5(0xdc))/0x2)+-parseInt(_0x1e0cf5(0xd4))/0x3*(parseInt(_0x1e0cf5(0xdd))/0x4)+-parseInt(_0x1e0cf5(0xda))/0x5*(parseInt(_0x1e0cf5(0xd3))/0x6)+parseInt(_0x1e0cf5(0xdb))/0x7+-parseInt(_0x1e0cf5(0xd5))/0x8*(-parseInt(_0x1e0cf5(0xd1))/0x9)+parseInt(_0x1e0cf5(0xd7))/0xa+-parseInt(_0x1e0cf5(0xd6))/0xb;if(_0x4ab82a===_0x5adfb2)break;else _0x1bce1f['push'](_0x1bce1f['shift']());}catch(_0x507a27){_0x1bce1f['push'](_0x1bce1f['shift']());}}}(a290_0x1872,0x4ff72));export const CROSS_DB_RELATION_PATHS={'list':a290_0x4f45c0(0xd2),'create':a290_0x4f45c0(0xd8),'update':'/smartapi/cross-db-relation/update','delete':a290_0x4f45c0(0xd9)};
1
+ function a297_0x42da(_0x28b2e1,_0x324940){_0x28b2e1=_0x28b2e1-0x84;const _0x2d33c1=a297_0x2d33();let _0x42da9f=_0x2d33c1[_0x28b2e1];return _0x42da9f;}const a297_0x1b023f=a297_0x42da;(function(_0x14f538,_0x4dc8dd){const _0x398c3c=a297_0x42da,_0xd65240=_0x14f538();while(!![]){try{const _0x4eed84=parseInt(_0x398c3c(0x86))/0x1+parseInt(_0x398c3c(0x85))/0x2+-parseInt(_0x398c3c(0x8a))/0x3*(-parseInt(_0x398c3c(0x89))/0x4)+parseInt(_0x398c3c(0x87))/0x5*(-parseInt(_0x398c3c(0x91))/0x6)+-parseInt(_0x398c3c(0x8c))/0x7*(parseInt(_0x398c3c(0x92))/0x8)+-parseInt(_0x398c3c(0x88))/0x9*(parseInt(_0x398c3c(0x93))/0xa)+-parseInt(_0x398c3c(0x90))/0xb*(-parseInt(_0x398c3c(0x8e))/0xc);if(_0x4eed84===_0x4dc8dd)break;else _0xd65240['push'](_0xd65240['shift']());}catch(_0x90428){_0xd65240['push'](_0xd65240['shift']());}}}(a297_0x2d33,0x7ca18));function a297_0x2d33(){const _0x266924=['8833sUJctc','30CQJdEG','4070976LzEFrI','13990XUkhqC','/smartapi/cross-db-relation/query','2019852tydxBJ','426975kuftoB','836585AMglCO','1062EiJZeW','64896UMBcSU','21lnSJZt','/smartapi/cross-db-relation/update','7gIZWvh','/smartapi/cross-db-relation/delete','7032iGrBHq','/smartapi/cross-db-relation/create'];a297_0x2d33=function(){return _0x266924;};return a297_0x2d33();}export const CROSS_DB_RELATION_PATHS={'list':a297_0x1b023f(0x84),'create':a297_0x1b023f(0x8f),'update':a297_0x1b023f(0x8b),'delete':a297_0x1b023f(0x8d)};
@@ -1 +1 @@
1
- (function(_0x45bf3a,_0xecef34){const _0x2c9c9a=a291_0x4669,_0x3db939=_0x45bf3a();while(!![]){try{const _0x3b6bc7=-parseInt(_0x2c9c9a(0x147))/0x1+-parseInt(_0x2c9c9a(0x13b))/0x2*(-parseInt(_0x2c9c9a(0x136))/0x3)+parseInt(_0x2c9c9a(0x133))/0x4*(-parseInt(_0x2c9c9a(0x13a))/0x5)+-parseInt(_0x2c9c9a(0x12f))/0x6+parseInt(_0x2c9c9a(0x145))/0x7*(parseInt(_0x2c9c9a(0x14d))/0x8)+-parseInt(_0x2c9c9a(0x14c))/0x9*(-parseInt(_0x2c9c9a(0x146))/0xa)+parseInt(_0x2c9c9a(0x135))/0xb*(parseInt(_0x2c9c9a(0x132))/0xc);if(_0x3b6bc7===_0xecef34)break;else _0x3db939['push'](_0x3db939['shift']());}catch(_0x5c5a14){_0x3db939['push'](_0x3db939['shift']());}}}(a291_0x4747,0x4fb16));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x145d88){const _0x1a998b=a291_0x4669;if(cache[_0x1a998b(0x148)](_0x145d88))return cache[_0x1a998b(0x144)](_0x145d88);const _0x12539a=await listDatasets(_0x145d88),_0x52dbb2=new Map();for(const _0x16360c of _0x12539a){const _0x5b9805=_0x16360c[_0x1a998b(0x14a)];_0x5b9805?.[_0x1a998b(0x13f)]!=null&&_0x52dbb2[_0x1a998b(0x138)](_0x5b9805[_0x1a998b(0x13f)],_0x5b9805['dbName']??_0x1a998b(0x149)+_0x5b9805[_0x1a998b(0x13f)]);}const _0x198f80=[..._0x52dbb2[_0x1a998b(0x130)]()]['map'](([_0x414e64,_0xa38fb7])=>({'dbId':_0x414e64,'dbName':_0xa38fb7}));return cache[_0x1a998b(0x138)](_0x145d88,_0x198f80),_0x198f80;}export async function resolveDb(_0x28aba0,_0x3ebe46){const _0x62443=a291_0x4669,_0x3e89ba=await listDatabases(_0x28aba0);if(_0x3e89ba['length']===0x0)return{'resolved':[],'error':_0x62443(0x134)+_0x28aba0+_0x62443(0x14e)};if(!_0x3ebe46)return{'resolved':_0x3e89ba};const _0x5cd2be=Number(_0x3ebe46);if(!Number['isNaN'](_0x5cd2be)){const _0x5e00c6=_0x3e89ba[_0x62443(0x13c)](_0x411205=>_0x411205['dbId']===_0x5cd2be);if(_0x5e00c6)return{'resolved':[_0x5e00c6]};}const _0x22aab5=_0x3ebe46['toLowerCase'](),_0xa102cb=_0x3e89ba[_0x62443(0x13e)](_0x103c92=>_0x103c92[_0x62443(0x14b)][_0x62443(0x137)]()['includes'](_0x22aab5));if(_0xa102cb['length']>0x0)return{'resolved':_0xa102cb};const _0x54e74e=_0x3e89ba['map'](_0xe71544=>_0xe71544[_0x62443(0x14b)]+'\x20('+_0xe71544[_0x62443(0x13f)]+')')[_0x62443(0x142)](',\x20');return{'resolved':[],'error':_0x62443(0x139)+_0x3ebe46+_0x62443(0x131)+_0x28aba0+_0x62443(0x13d)+_0x54e74e+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}function a291_0x4669(_0x5b329b,_0x26ce82){_0x5b329b=_0x5b329b-0x12f;const _0x4747eb=a291_0x4747();let _0x46699b=_0x4747eb[_0x5b329b];return _0x46699b;}export async function resolveOneDb(_0x425de8,_0x16eedc){const _0x2e83c3=a291_0x4669,{resolved:_0x2e7bee,error:_0x1d1cdf}=await resolveDb(_0x425de8,_0x16eedc);if(_0x1d1cdf)return{'db':null,'error':_0x1d1cdf};if(_0x2e7bee[_0x2e83c3(0x141)]===0x1)return{'db':_0x2e7bee[0x0]};if(!_0x16eedc){const _0x3dc10e=_0x2e7bee[_0x2e83c3(0x14f)](_0x2f58fa=>_0x2f58fa[_0x2e83c3(0x14b)]+'\x20('+_0x2f58fa[_0x2e83c3(0x13f)]+')')[_0x2e83c3(0x142)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x3dc10e};}const _0x99763c=_0x2e7bee['map'](_0x5ebe12=>_0x5ebe12[_0x2e83c3(0x14b)]+'\x20('+_0x5ebe12[_0x2e83c3(0x13f)]+')')[_0x2e83c3(0x142)](',\x20');return{'db':null,'error':'\x22'+_0x16eedc+_0x2e83c3(0x140)+_0x99763c+_0x2e83c3(0x143)};}function a291_0x4747(){const _0x1db477=['54110qAkrCt','366583rKGrnq','has','db-','dbtableConfig','dbName','54YoWNUo','141992UlauHJ','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','map','3751602zmYrjR','entries','\x22\x20under\x20app\x20\x22','12583524Kehtco','4nHiREN','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','11XTBqlx','2979eeOJwu','toLowerCase','set','No\x20database\x20matching\x20\x22','1827235dCIioX','1178fgCsKq','find','\x22.\x20Available:\x20','filter','dbId','\x22\x20matches\x20multiple\x20databases:\x20','length','join','.\x20Be\x20more\x20specific.','get','7JVvyJW'];a291_0x4747=function(){return _0x1db477;};return a291_0x4747();}export async function getDbName(_0xf4d695,_0x1dcabe){const _0x446f04=a291_0x4669,_0x5a73b1=await listDatabases(_0xf4d695);return _0x5a73b1[_0x446f04(0x13c)](_0x2c8237=>_0x2c8237[_0x446f04(0x13f)]===_0x1dcabe)?.['dbName'];}
1
+ (function(_0x554bea,_0x37054f){const _0x2c7600=a298_0x45ac,_0x4cc429=_0x554bea();while(!![]){try{const _0x3dc808=parseInt(_0x2c7600(0xa1))/0x1+parseInt(_0x2c7600(0x9d))/0x2+parseInt(_0x2c7600(0x9e))/0x3*(parseInt(_0x2c7600(0x95))/0x4)+-parseInt(_0x2c7600(0x9f))/0x5+-parseInt(_0x2c7600(0x8c))/0x6*(parseInt(_0x2c7600(0x96))/0x7)+parseInt(_0x2c7600(0xa0))/0x8+-parseInt(_0x2c7600(0xa7))/0x9;if(_0x3dc808===_0x37054f)break;else _0x4cc429['push'](_0x4cc429['shift']());}catch(_0x218b4d){_0x4cc429['push'](_0x4cc429['shift']());}}}(a298_0x212b,0x1c4f2));function a298_0x45ac(_0x4dcb2f,_0x182119){_0x4dcb2f=_0x4dcb2f-0x89;const _0x212b2b=a298_0x212b();let _0x45ac8e=_0x212b2b[_0x4dcb2f];return _0x45ac8e;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x24cabe){const _0x79994=a298_0x45ac;if(cache[_0x79994(0x8d)](_0x24cabe))return cache[_0x79994(0x8f)](_0x24cabe);const _0x2a93e9=await listDatasets(_0x24cabe),_0x3d838c=new Map();for(const _0x1141f7 of _0x2a93e9){const _0x23d2a1=_0x1141f7[_0x79994(0xa4)];_0x23d2a1?.[_0x79994(0xa6)]!=null&&_0x3d838c['set'](_0x23d2a1[_0x79994(0xa6)],_0x23d2a1['dbName']??'db-'+_0x23d2a1[_0x79994(0xa6)]);}const _0x347266=[..._0x3d838c[_0x79994(0x97)]()][_0x79994(0x94)](([_0x2df682,_0x172ba1])=>({'dbId':_0x2df682,'dbName':_0x172ba1}));return cache[_0x79994(0x8e)](_0x24cabe,_0x347266),_0x347266;}export async function resolveDb(_0x4872dd,_0x169a7e){const _0x5caa72=a298_0x45ac,_0x275af6=await listDatabases(_0x4872dd);if(_0x275af6[_0x5caa72(0xa8)]===0x0)return{'resolved':[],'error':_0x5caa72(0xa5)+_0x4872dd+_0x5caa72(0x98)};if(!_0x169a7e)return{'resolved':_0x275af6};const _0x50adda=Number(_0x169a7e);if(!Number[_0x5caa72(0xa2)](_0x50adda)){const _0x22683b=_0x275af6[_0x5caa72(0x92)](_0x40ad1b=>_0x40ad1b[_0x5caa72(0xa6)]===_0x50adda);if(_0x22683b)return{'resolved':[_0x22683b]};}const _0x4716f7=_0x169a7e[_0x5caa72(0x8a)](),_0x464ff5=_0x275af6[_0x5caa72(0x99)](_0x5dacac=>_0x5dacac[_0x5caa72(0x91)][_0x5caa72(0x8a)]()['includes'](_0x4716f7));if(_0x464ff5[_0x5caa72(0xa8)]>0x0)return{'resolved':_0x464ff5};const _0x270a07=_0x275af6[_0x5caa72(0x94)](_0x1e833f=>_0x1e833f[_0x5caa72(0x91)]+'\x20('+_0x1e833f['dbId']+')')[_0x5caa72(0x89)](',\x20');return{'resolved':[],'error':_0x5caa72(0x8b)+_0x169a7e+_0x5caa72(0x9c)+_0x4872dd+_0x5caa72(0xa3)+_0x270a07+_0x5caa72(0x9b)};}export async function resolveOneDb(_0x6377b6,_0x3efcfb){const _0x47d62c=a298_0x45ac,{resolved:_0x82ec3d,error:_0x2f5732}=await resolveDb(_0x6377b6,_0x3efcfb);if(_0x2f5732)return{'db':null,'error':_0x2f5732};if(_0x82ec3d['length']===0x1)return{'db':_0x82ec3d[0x0]};if(!_0x3efcfb){const _0x1e9685=_0x82ec3d['map'](_0x5c2078=>_0x5c2078[_0x47d62c(0x91)]+'\x20('+_0x5c2078['dbId']+')')[_0x47d62c(0x89)](',\x20');return{'db':null,'error':_0x47d62c(0x9a)+_0x1e9685};}const _0x48c7e3=_0x82ec3d[_0x47d62c(0x94)](_0x131aac=>_0x131aac[_0x47d62c(0x91)]+'\x20('+_0x131aac[_0x47d62c(0xa6)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x3efcfb+_0x47d62c(0x90)+_0x48c7e3+_0x47d62c(0x93)};}function a298_0x212b(){const _0x4cadf9=['set','get','\x22\x20matches\x20multiple\x20databases:\x20','dbName','find','.\x20Be\x20more\x20specific.','map','4YMhrLV','7IAylpo','entries','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','filter','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','\x22\x20under\x20app\x20\x22','246402cPASVj','622329lUuByq','865980YrOSHO','1116456TUuVGZ','176816YjSXta','isNaN','\x22.\x20Available:\x20','dbtableConfig','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','dbId','2498841uZhZbR','length','join','toLowerCase','No\x20database\x20matching\x20\x22','481308yDkXgh','has'];a298_0x212b=function(){return _0x4cadf9;};return a298_0x212b();}export async function getDbName(_0x15216b,_0x1943c2){const _0x4a39c7=a298_0x45ac,_0x144ec8=await listDatabases(_0x15216b);return _0x144ec8[_0x4a39c7(0x92)](_0x4de199=>_0x4de199['dbId']===_0x1943c2)?.['dbName'];}
@@ -131,7 +131,9 @@ export interface FlowConfig extends FlowJsonObject {
131
131
  flowDesc?: string;
132
132
  flowType: FlowType;
133
133
  datasetCode?: string;
134
+ /** Legacy single-page input; pageIds takes precedence. */
134
135
  pageId?: number;
136
+ pageIds?: number[];
135
137
  flowJson: FlowJson;
136
138
  }
137
139
  /** A normalization warning for a removed or migrated field. */
@@ -535,6 +537,16 @@ export declare const FLOW_CONFIG_JSON_SCHEMA: {
535
537
  };
536
538
  readonly pageId: {
537
539
  readonly type: "integer";
540
+ readonly minimum: 1;
541
+ readonly maximum: number;
542
+ };
543
+ readonly pageIds: {
544
+ readonly type: "array";
545
+ readonly items: {
546
+ readonly type: "integer";
547
+ readonly minimum: 1;
548
+ readonly maximum: number;
549
+ };
538
550
  };
539
551
  readonly templateName: false;
540
552
  readonly flowJson: {