@lovrabet/rabetbase-cli 2.5.3 → 2.5.4-beta.2

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 (389) hide show
  1. package/README.md +11 -0
  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/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.d.ts +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/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.d.ts +2 -0
  128. package/lib/commands/flow/shared.js +1 -1
  129. package/lib/commands/flow/update.js +1 -1
  130. package/lib/commands/flow/validate.js +1 -1
  131. package/lib/commands/instant-api-policy/current.js +1 -1
  132. package/lib/commands/instant-api-policy/index.js +1 -1
  133. package/lib/commands/instant-api-policy/init.js +1 -1
  134. package/lib/commands/instant-api-policy/publish.js +1 -1
  135. package/lib/commands/instant-api-policy/pull.js +1 -1
  136. package/lib/commands/instant-api-policy/revision.js +1 -1
  137. package/lib/commands/instant-api-policy/revisions.js +1 -1
  138. package/lib/commands/instant-api-policy/rollback.js +1 -1
  139. package/lib/commands/instant-api-policy/shared.js +1 -1
  140. package/lib/commands/instant-api-policy/validate.js +1 -1
  141. package/lib/commands/issue/index.js +1 -1
  142. package/lib/commands/issue/nudge.js +1 -1
  143. package/lib/commands/issue/report.js +1 -1
  144. package/lib/commands/issue/shared.js +1 -1
  145. package/lib/commands/kb/create.js +1 -1
  146. package/lib/commands/kb/delete.js +1 -1
  147. package/lib/commands/kb/detail.js +1 -1
  148. package/lib/commands/kb/index.js +1 -1
  149. package/lib/commands/kb/list.js +1 -1
  150. package/lib/commands/kb/search.js +1 -1
  151. package/lib/commands/kb/shared.js +1 -1
  152. package/lib/commands/kb/update.js +1 -1
  153. package/lib/commands/logs/index.js +1 -1
  154. package/lib/commands/menu/asset-update.js +1 -1
  155. package/lib/commands/menu/delete.js +1 -1
  156. package/lib/commands/menu/external-link-create.js +1 -1
  157. package/lib/commands/menu/external-link-update.js +1 -1
  158. package/lib/commands/menu/group-create.js +1 -1
  159. package/lib/commands/menu/group-update.js +1 -1
  160. package/lib/commands/menu/index.js +1 -1
  161. package/lib/commands/menu/list.js +1 -1
  162. package/lib/commands/menu/move.js +1 -1
  163. package/lib/commands/menu/regroup-start.js +1 -1
  164. package/lib/commands/menu/rename.js +1 -1
  165. package/lib/commands/menu/shared/compare-table.js +1 -1
  166. package/lib/commands/menu/shared/delete-plan.js +1 -1
  167. package/lib/commands/menu/shared/facts.js +1 -1
  168. package/lib/commands/menu/shared/index.js +1 -1
  169. package/lib/commands/menu/shared/inquirer.js +1 -1
  170. package/lib/commands/menu/shared/local-pages.js +1 -1
  171. package/lib/commands/menu/shared/logic.js +1 -1
  172. package/lib/commands/menu/shared/mutations.js +1 -1
  173. package/lib/commands/menu/shared/service.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/sync.js +1 -1
  178. package/lib/commands/menu/visibility-update.js +1 -1
  179. package/lib/commands/notification/config-create.js +1 -1
  180. package/lib/commands/notification/config-delete.js +1 -1
  181. package/lib/commands/notification/config-list.js +1 -1
  182. package/lib/commands/notification/config-update.js +1 -1
  183. package/lib/commands/notification/index.js +1 -1
  184. package/lib/commands/notification/shared.js +1 -1
  185. package/lib/commands/ocr/index.js +1 -1
  186. package/lib/commands/page/create.js +1 -1
  187. package/lib/commands/page/custom/detail.js +1 -1
  188. package/lib/commands/page/custom/list.js +1 -1
  189. package/lib/commands/page/custom/publish.js +1 -1
  190. package/lib/commands/page/custom/shared.js +1 -1
  191. package/lib/commands/page/custom/syntax.js +1 -1
  192. package/lib/commands/page/custom/update.js +1 -1
  193. package/lib/commands/page/data-list-status.js +1 -1
  194. package/lib/commands/page/generate-start.js +1 -1
  195. package/lib/commands/page/generate-status.js +1 -1
  196. package/lib/commands/page/index.js +1 -1
  197. package/lib/commands/page/pull.js +1 -1
  198. package/lib/commands/page/push.js +1 -1
  199. package/lib/commands/page/relation-audit.js +1 -1
  200. package/lib/commands/page/restore.js +1 -1
  201. package/lib/commands/page/shared.js +1 -1
  202. package/lib/commands/page/sync.js +1 -1
  203. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  204. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  205. package/lib/commands/project/create/format-elapsed.js +1 -1
  206. package/lib/commands/project/create/main.js +1 -1
  207. package/lib/commands/project/create/materialize-project-template.js +1 -1
  208. package/lib/commands/project/create/project-name.js +1 -1
  209. package/lib/commands/project/create/project-template-archive.js +1 -1
  210. package/lib/commands/project/create/project-template-path.js +1 -1
  211. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  212. package/lib/commands/project/create/use-format-code.js +1 -1
  213. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  214. package/lib/commands/project/domain-routing-sync.js +1 -1
  215. package/lib/commands/project/index.js +1 -1
  216. package/lib/commands/project/upgrade.js +1 -1
  217. package/lib/commands/registry.js +1 -1
  218. package/lib/commands/role/delete.js +1 -1
  219. package/lib/commands/role/detail.js +1 -1
  220. package/lib/commands/role/index.js +1 -1
  221. package/lib/commands/role/list.js +1 -1
  222. package/lib/commands/role/shared.js +1 -1
  223. package/lib/commands/role/update.js +1 -1
  224. package/lib/commands/role/user-add.js +1 -1
  225. package/lib/commands/role/user-remove.js +1 -1
  226. package/lib/commands/role/user-resolve.js +1 -1
  227. package/lib/commands/rule/get.js +1 -1
  228. package/lib/commands/rule/index.js +1 -1
  229. package/lib/commands/rule/list.js +1 -1
  230. package/lib/commands/rule/set.js +1 -1
  231. package/lib/commands/rule/shared.js +1 -1
  232. package/lib/commands/run/index.js +1 -1
  233. package/lib/commands/schema.js +1 -1
  234. package/lib/commands/sql/create.js +1 -1
  235. package/lib/commands/sql/delete.js +1 -1
  236. package/lib/commands/sql/detail.js +1 -1
  237. package/lib/commands/sql/exec.js +1 -1
  238. package/lib/commands/sql/index.js +1 -1
  239. package/lib/commands/sql/list.js +1 -1
  240. package/lib/commands/sql/pull.js +1 -1
  241. package/lib/commands/sql/push.js +1 -1
  242. package/lib/commands/sql/shared.js +1 -1
  243. package/lib/commands/sql/status.js +1 -1
  244. package/lib/commands/sql/validate.js +1 -1
  245. package/lib/commands/task/index.js +1 -1
  246. package/lib/commands/task/status.js +1 -1
  247. package/lib/commands/tenant/index.js +1 -1
  248. package/lib/commands/tenant/members-list.js +1 -1
  249. package/lib/commands/tenant/shared.js +1 -1
  250. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  251. package/lib/commands/user-account/index.js +1 -1
  252. package/lib/commands/workspace/add.js +1 -1
  253. package/lib/commands/workspace/index.js +1 -1
  254. package/lib/commands/workspace/remove.js +1 -1
  255. package/lib/config/domain-config.d.ts +1 -1
  256. package/lib/config/domain-config.js +1 -1
  257. package/lib/config/project-domain-routing.js +1 -1
  258. package/lib/config/region-config.js +1 -1
  259. package/lib/config/schema.d.ts +1 -1
  260. package/lib/config/schema.js +1 -1
  261. package/lib/constant/cdn.js +1 -1
  262. package/lib/constant/cli.js +1 -1
  263. package/lib/constant/defaults.js +1 -1
  264. package/lib/constant/domain.d.ts +4 -0
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.d.ts +1 -1
  270. package/lib/constant/region.js +1 -1
  271. package/lib/constant/risk.js +1 -1
  272. package/lib/constant/routing-profile.d.ts +14 -1
  273. package/lib/constant/routing-profile.js +1 -1
  274. package/lib/context/app-resolver.d.ts +1 -0
  275. package/lib/context/app-resolver.js +1 -1
  276. package/lib/context/auth-resolver.js +1 -1
  277. package/lib/context/config-loader.js +1 -1
  278. package/lib/context.js +1 -1
  279. package/lib/core/alias-resolver.js +1 -1
  280. package/lib/core/api-client.js +1 -1
  281. package/lib/core/bff/config.js +1 -1
  282. package/lib/core/bff/file-system.js +1 -1
  283. package/lib/core/bff/hash.js +1 -1
  284. package/lib/core/bff/hook-directory.js +1 -1
  285. package/lib/core/bff/lock.js +1 -1
  286. package/lib/core/bff/utils.js +1 -1
  287. package/lib/core/cross-db-relation.js +1 -1
  288. package/lib/core/db-resolver.js +1 -1
  289. package/lib/core/flow-config.d.ts +11 -10
  290. package/lib/core/flow-config.js +1 -1
  291. package/lib/core/instant-api-policy/config.js +1 -1
  292. package/lib/core/kb-search-client.d.ts +7 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.d.ts +5 -2
  305. package/lib/core/sql-validator.js +1 -1
  306. package/lib/errors.js +1 -1
  307. package/lib/framework/build-all-flags.js +1 -1
  308. package/lib/framework/error-output.js +1 -1
  309. package/lib/framework/explicit-yes.js +1 -1
  310. package/lib/framework/flags.js +1 -1
  311. package/lib/framework/help.js +1 -1
  312. package/lib/framework/index.js +1 -1
  313. package/lib/framework/output.js +1 -1
  314. package/lib/framework/response.js +1 -1
  315. package/lib/framework/runner-alias.js +1 -1
  316. package/lib/framework/runner.js +1 -1
  317. package/lib/framework/schema-export.js +1 -1
  318. package/lib/framework/supported-flags.js +1 -1
  319. package/lib/framework/types.js +1 -1
  320. package/lib/generated/build-info.d.ts +4 -4
  321. package/lib/generated/build-info.js +1 -1
  322. package/lib/generated/official-routing.d.ts +15 -3
  323. package/lib/generated/official-routing.js +1 -1
  324. package/lib/generated/routing-contract.d.ts +2 -2
  325. package/lib/generated/routing-contract.js +1 -1
  326. package/lib/help.js +1 -1
  327. package/lib/postinstall.js +1 -1
  328. package/lib/runtime/confirmation.js +1 -1
  329. package/lib/runtime/event.js +1 -1
  330. package/lib/runtime/index.js +1 -1
  331. package/lib/runtime/queue.js +1 -1
  332. package/lib/runtime/resolve.js +1 -1
  333. package/lib/skills/builtin-skill.js +1 -1
  334. package/lib/skills/main.js +1 -1
  335. package/lib/skills/npx-skills-add.d.ts +5 -0
  336. package/lib/skills/npx-skills-add.js +1 -1
  337. package/lib/skills/skill-presence.js +1 -1
  338. package/lib/telemetry/cli-command-trace.js +1 -1
  339. package/lib/telemetry/cli-help-trace.js +1 -1
  340. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  341. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  342. package/lib/telemetry/send-cli-trace-log.js +1 -1
  343. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  344. package/lib/utils/ai_config.js +1 -1
  345. package/lib/utils/apply-jq-filter.js +1 -1
  346. package/lib/utils/cdn-config.js +1 -1
  347. package/lib/utils/check-sdk-version.js +1 -1
  348. package/lib/utils/cli-version-check.js +1 -1
  349. package/lib/utils/cli-version-policy.js +1 -1
  350. package/lib/utils/config.js +1 -1
  351. package/lib/utils/entity-with-id.js +1 -1
  352. package/lib/utils/file-utils.js +1 -1
  353. package/lib/utils/guides-cdn.js +1 -1
  354. package/lib/utils/http-client.js +1 -1
  355. package/lib/utils/is-non-interactive.js +1 -1
  356. package/lib/utils/logger.js +1 -1
  357. package/lib/utils/params.js +1 -1
  358. package/lib/utils/platform.js +1 -1
  359. package/lib/utils/sleep.js +1 -1
  360. package/lib/utils/template-replacer.js +1 -1
  361. package/lib/utils/update-notice.js +1 -1
  362. package/lib/utils/version.js +1 -1
  363. package/lib/utils/with-active-cookie.js +1 -1
  364. package/lib/utils/write-cli-side-channel.js +1 -1
  365. package/package.json +1 -1
  366. package/skills/rabetbase/SKILL.md +31 -17
  367. package/skills/rabetbase/guides/approval-flow-development-workflow.md +33 -11
  368. package/skills/rabetbase/guides/best-practices.md +1 -1
  369. package/skills/rabetbase/guides/conflict-detection.md +44 -92
  370. package/skills/rabetbase/guides/custom-page-flow-sdk.md +642 -0
  371. package/skills/rabetbase/guides/custom-page-flow-timeline-display.md +289 -0
  372. package/skills/rabetbase/guides/custom-page-workflow.md +12 -3
  373. package/skills/rabetbase/guides/sql-creation-workflow.md +44 -26
  374. package/skills/rabetbase/guides/sql-mybatis.md +18 -49
  375. package/skills/rabetbase/guides/typescript-sdk.md +18 -0
  376. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +22 -6
  377. package/skills/rabetbase/knowledge/components.md +34 -28
  378. package/skills/rabetbase/knowledge/custom-page/generation-standards.md +2 -0
  379. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  380. package/skills/rabetbase/references/rabetbase-flow-commands.md +8 -4
  381. package/skills/rabetbase/references/rabetbase-flow-resources.md +3 -3
  382. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +2 -0
  383. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  384. package/skills/rabetbase/references/rabetbase-kb.md +14 -4
  385. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -1
  386. package/skills/rabetbase/references/rabetbase-page-custom-list.md +3 -0
  387. package/skills/rabetbase/references/rabetbase-sql-push.md +5 -0
  388. package/skills/rabetbase/references/rabetbase-sql-validate.md +12 -6
  389. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- const a273_0x6aa56c=a273_0x1c74;(function(_0xd47cbc,_0x19c25b){const _0x4fe250=a273_0x1c74,_0x4cda79=_0xd47cbc();while(!![]){try{const _0x45b26a=-parseInt(_0x4fe250(0x9f))/0x1+parseInt(_0x4fe250(0xa0))/0x2*(parseInt(_0x4fe250(0xa7))/0x3)+parseInt(_0x4fe250(0x8a))/0x4*(parseInt(_0x4fe250(0x9a))/0x5)+-parseInt(_0x4fe250(0x98))/0x6+parseInt(_0x4fe250(0xab))/0x7*(parseInt(_0x4fe250(0x8c))/0x8)+-parseInt(_0x4fe250(0x9e))/0x9*(-parseInt(_0x4fe250(0xa6))/0xa)+-parseInt(_0x4fe250(0x81))/0xb;if(_0x45b26a===_0x19c25b)break;else _0x4cda79['push'](_0x4cda79['shift']());}catch(_0x860e7b){_0x4cda79['push'](_0x4cda79['shift']());}}}(a273_0x55c8,0x64ad7));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=[a273_0x6aa56c(0xa4),a273_0x6aa56c(0x91),a273_0x6aa56c(0xa3)];export function normalizeBffType(_0x3e5cfe){const _0xd8c2ab=a273_0x6aa56c;if(!_0x3e5cfe)return undefined;const _0x5a0527=_0x3e5cfe[_0xd8c2ab(0x8e)]()[_0xd8c2ab(0xa5)]();return SUPPORTED_BFF_TYPES['includes'](_0x5a0527)?_0x5a0527:undefined;}async function scanJsFilesRecursively(_0x3d4a26,_0x8720dc){const _0x395307=a273_0x6aa56c,_0x5374d8=[];try{const _0x5a178d=await readdir(_0x3d4a26,{'withFileTypes':!![]});for(const _0x4fc18a of _0x5a178d){const _0x354281=join(_0x3d4a26,_0x4fc18a[_0x395307(0x93)]);if(_0x4fc18a[_0x395307(0x9d)]())_0x5374d8['push'](...await scanJsFilesRecursively(_0x354281,_0x8720dc+'/'+_0x4fc18a['name']));else _0x4fc18a['isFile']()&&_0x4fc18a[_0x395307(0x93)][_0x395307(0x8b)](_0x395307(0x84))&&_0x5374d8[_0x395307(0x8d)]({'lockKey':_0x8720dc+'/'+_0x4fc18a['name'][_0x395307(0x88)](/\.js$/,''),'filePath':_0x354281});}}catch(_0xf9d0ee){if(_0xf9d0ee[_0x395307(0xa9)]!==_0x395307(0x8f))throw _0xf9d0ee;}return _0x5374d8;}async function scanFlatFunctions(_0x24ba29,_0x1ef5b1){const _0x5ba3f7=a273_0x6aa56c,_0x26f3e4=join(_0x24ba29[_0x5ba3f7(0xa1)],_0x1ef5b1),_0x5743f2=await scanJsFilesRecursively(_0x26f3e4,_0x1ef5b1);return _0x5743f2[_0x5ba3f7(0x86)](({lockKey:_0x1ddc1a,filePath:_0x760c40})=>({'type':_0x1ef5b1,'name':_0x1ddc1a[_0x5ba3f7(0x90)]('/')['at'](-0x1)??'','filePath':_0x760c40,'lockKey':_0x1ddc1a}));}async function scanHookFunctions(_0x5eeaf8){const _0x4d8769=a273_0x6aa56c,_0x5a64b4=join(_0x5eeaf8[_0x4d8769(0xa1)],_0x4d8769(0xa3)),_0x1c4b0b=[];try{const _0x2726f3=await readdir(_0x5a64b4,{'withFileTypes':!![]});for(const _0x4e5de5 of _0x2726f3){if(!_0x4e5de5['isDirectory']())continue;const _0xdd2a0f=_0x4e5de5[_0x4d8769(0x93)],_0xec6eaf=join(_0x5a64b4,_0xdd2a0f),_0x30efb7=await readdir(_0xec6eaf,{'withFileTypes':!![]});for(const _0x1c46c1 of _0x30efb7){if(!_0x1c46c1['isDirectory']())continue;const _0x356bd5=_0x1c46c1['name'],_0x369b26=join(_0xec6eaf,_0x356bd5),_0x3ed7aa=await readdir(_0x369b26,{'withFileTypes':!![]});for(const _0x15d151 of _0x3ed7aa){if(!_0x15d151[_0x4d8769(0x9d)]())continue;const _0x280dc3=_0x15d151[_0x4d8769(0x93)],_0x5179ed=join(_0x369b26,_0x280dc3),_0x81966c=await readdir(_0x5179ed,{'withFileTypes':!![]});for(const _0x1e010f of _0x81966c){if(!_0x1e010f[_0x4d8769(0x87)]()||!_0x1e010f[_0x4d8769(0x93)][_0x4d8769(0x8b)](_0x4d8769(0x84)))continue;const _0x2e2623=_0x1e010f[_0x4d8769(0x93)][_0x4d8769(0x88)](/\.js$/,'');_0x1c4b0b[_0x4d8769(0x8d)]({'type':_0x4d8769(0xa3),'name':_0x2e2623,'filePath':join(_0x5179ed,_0x1e010f['name']),'lockKey':'HOOK/'+_0xdd2a0f+'/'+_0x356bd5+'/'+_0x280dc3+'/'+_0x2e2623,'alias':_0xdd2a0f,'operationType':_0x356bd5,'functionNode':_0x280dc3});}}}}}catch(_0x25c70d){if(_0x25c70d[_0x4d8769(0xa9)]!==_0x4d8769(0x8f))throw _0x25c70d;}return _0x1c4b0b;}export async function scanLocalBffFunctions(_0x24c952,_0x73e6dc){const _0x1bf29a=a273_0x6aa56c;if(_0x73e6dc==='COMMON'||_0x73e6dc===_0x1bf29a(0x91))return scanFlatFunctions(_0x24c952,_0x73e6dc);if(_0x73e6dc===_0x1bf29a(0xa3))return scanHookFunctions(_0x24c952);const [_0x45d7e0,_0x1eac95,_0x31880e]=await Promise[_0x1bf29a(0x85)]([scanFlatFunctions(_0x24c952,_0x1bf29a(0xa4)),scanFlatFunctions(_0x24c952,_0x1bf29a(0x91)),scanHookFunctions(_0x24c952)]);return[..._0x45d7e0,..._0x1eac95,..._0x31880e];}function a273_0x1c74(_0x520fe1,_0x323502){_0x520fe1=_0x520fe1-0x81;const _0x55c829=a273_0x55c8();let _0x1c744a=_0x55c829[_0x520fe1];return _0x1c744a;}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;function a273_0x55c8(){const _0x1918bc=['ENOENT','split','ENDPOINT','afterScriptId','name','beforeScriptId','test','get','HOOK/','1693968bmRGnv','before','3765OmLMZl','functionNode','set','isDirectory','495aCCBdP','370014qMfhBt','2AbNBut','scriptsRootDir','datasetCode','HOOK','COMMON','toUpperCase','96500hAhUHO','2038683gRNhsZ','functionName','code','operationType','10661GgUwdL','15788344KwQvhw','every','F_OK','.js','all','map','isFile','replace','toLowerCase','2636yDhQAH','endsWith','4168CfJnpf','push','trim'];a273_0x55c8=function(){return _0x1918bc;};return a273_0x55c8();}export function isSafeLockKeySegment(_0x497131){const _0x3031bc=a273_0x6aa56c;return SAFE_LOCK_KEY_SEGMENT[_0x3031bc(0x95)](_0x497131)&&_0x497131!=='.'&&_0x497131!=='..';}export function resolveLocalFilePathFromLockKey(_0x1246bf,_0x58934b){const _0x316131=a273_0x6aa56c,_0x2738b8=_0x58934b[_0x316131(0x90)]('/');if(!_0x2738b8['every'](isSafeLockKeySegment))throw new Error('Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20'+_0x58934b);const _0x2ed79c=resolve(join(_0x1246bf[_0x316131(0xa1)],..._0x2738b8)+_0x316131(0x84)),_0x1cc227=resolve(_0x1246bf['scriptsRootDir']);if(_0x2ed79c!==_0x1cc227&&!_0x2ed79c['startsWith'](_0x1cc227+sep))throw new Error('Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20'+_0x2ed79c);return _0x2ed79c;}export function createHookLocationMap(_0x3ef935){const _0x4ac6a9=a273_0x6aa56c,_0x56411c=new Map();for(const _0x12f402 of _0x3ef935){_0x12f402[_0x4ac6a9(0x94)]&&_0x56411c[_0x4ac6a9(0x9c)](_0x12f402['beforeScriptId'],{'datasetCode':_0x12f402[_0x4ac6a9(0xa2)],'operationType':snakeToCamel(_0x12f402[_0x4ac6a9(0xaa)]),'functionNode':_0x4ac6a9(0x99)}),_0x12f402['afterScriptId']&&_0x56411c[_0x4ac6a9(0x9c)](_0x12f402[_0x4ac6a9(0x92)],{'datasetCode':_0x12f402[_0x4ac6a9(0xa2)],'operationType':snakeToCamel(_0x12f402[_0x4ac6a9(0xaa)]),'functionNode':'after'});}return _0x56411c;}export function resolveRemoteScriptTarget(_0x243cf8,_0x2d2085,_0x185c05,_0xbd0983,_0x5a8bb5){const _0x2cec1e=a273_0x6aa56c,_0x333a0b=normalizeBffType(_0x2d2085['scriptType']);if(!_0x333a0b||!_0x2d2085[_0x2cec1e(0xa8)])return null;if(_0x333a0b===_0x2cec1e(0xa3)){const _0x2e4ad8=_0x2d2085['id']?_0x185c05[_0x2cec1e(0x96)](_0x2d2085['id']):undefined,_0x588d98=findHookLocationByRemoteId(_0xbd0983,_0x2d2085['id']),_0x5117a8=_0x2e4ad8?{..._0x588d98?.[_0x2cec1e(0xa2)]===_0x2e4ad8['datasetCode']?_0x588d98:{},..._0x2e4ad8}:_0x588d98;if(!_0x5117a8)return null;const _0x1242a2=_0x5a8bb5[_0x2cec1e(0x96)](_0x5117a8[_0x2cec1e(0xa2)][_0x2cec1e(0x89)]()),_0x1bd831=_0x1242a2??_0x5117a8[_0x2cec1e(0xa2)],_0x44991f={..._0x5117a8,'alias':_0x1242a2},_0x2feaae=_0x2cec1e(0x97)+_0x1bd831+'/'+_0x44991f[_0x2cec1e(0xaa)]+'/'+_0x44991f[_0x2cec1e(0x9b)]+'/'+_0x2d2085[_0x2cec1e(0xa8)];if(!_0x2feaae[_0x2cec1e(0x90)]('/')[_0x2cec1e(0x82)](isSafeLockKeySegment))return null;return{'lockKey':_0x2feaae,'filePath':resolveLocalFilePathFromLockKey(_0x243cf8,_0x2feaae),'type':_0x2cec1e(0xa3),'hookLocation':_0x44991f};}const _0x4fba7d=_0x333a0b+'/'+_0x2d2085[_0x2cec1e(0xa8)];if(!_0x4fba7d[_0x2cec1e(0x90)]('/')[_0x2cec1e(0x82)](isSafeLockKeySegment))return null;return{'lockKey':_0x4fba7d,'filePath':resolveLocalFilePathFromLockKey(_0x243cf8,_0x4fba7d),'type':_0x333a0b};}export async function ensureParentDirectory(_0x52eeae){await mkdir(dirname(_0x52eeae),{'recursive':!![]});}export async function fileExists(_0x1efad2){const _0xd8108d=a273_0x6aa56c;try{return await access(_0x1efad2,constants[_0xd8108d(0x83)]),!![];}catch{return![];}}export async function directoryExists(_0x72c373){const _0x55d7e7=a273_0x6aa56c;try{const _0x1508a9=await stat(_0x72c373);return _0x1508a9[_0x55d7e7(0x9d)]();}catch{return![];}}
1
+ const a273_0x5b3766=a273_0x14f3;(function(_0x1f781b,_0x2e2088){const _0x3414b9=a273_0x14f3,_0x5e73f0=_0x1f781b();while(!![]){try{const _0x12cd9b=parseInt(_0x3414b9(0x1a8))/0x1*(-parseInt(_0x3414b9(0x1c5))/0x2)+parseInt(_0x3414b9(0x1c3))/0x3+parseInt(_0x3414b9(0x1a6))/0x4+parseInt(_0x3414b9(0x1c0))/0x5+parseInt(_0x3414b9(0x1cb))/0x6*(-parseInt(_0x3414b9(0x1ce))/0x7)+-parseInt(_0x3414b9(0x1b3))/0x8*(parseInt(_0x3414b9(0x1b6))/0x9)+-parseInt(_0x3414b9(0x1ad))/0xa;if(_0x12cd9b===_0x2e2088)break;else _0x5e73f0['push'](_0x5e73f0['shift']());}catch(_0x5404e0){_0x5e73f0['push'](_0x5e73f0['shift']());}}}(a273_0xb17e,0x3f113));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=[a273_0x5b3766(0x1ba),a273_0x5b3766(0x1bb),'HOOK'];export function normalizeBffType(_0x2e3ec6){const _0x278210=a273_0x5b3766;if(!_0x2e3ec6)return undefined;const _0x355803=_0x2e3ec6[_0x278210(0x1ae)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x278210(0x1b9)](_0x355803)?_0x355803:undefined;}async function scanJsFilesRecursively(_0x2bbaad,_0x414f95){const _0x5c1977=a273_0x5b3766,_0xc6090e=[];try{const _0x42adb5=await readdir(_0x2bbaad,{'withFileTypes':!![]});for(const _0x3ae7fe of _0x42adb5){const _0x29f46e=join(_0x2bbaad,_0x3ae7fe[_0x5c1977(0x1ca)]);if(_0x3ae7fe[_0x5c1977(0x1b1)]())_0xc6090e[_0x5c1977(0x1b5)](...await scanJsFilesRecursively(_0x29f46e,_0x414f95+'/'+_0x3ae7fe[_0x5c1977(0x1ca)]));else _0x3ae7fe[_0x5c1977(0x1be)]()&&_0x3ae7fe[_0x5c1977(0x1ca)]['endsWith'](_0x5c1977(0x1ac))&&_0xc6090e['push']({'lockKey':_0x414f95+'/'+_0x3ae7fe[_0x5c1977(0x1ca)][_0x5c1977(0x1aa)](/\.js$/,''),'filePath':_0x29f46e});}}catch(_0x15c74f){if(_0x15c74f[_0x5c1977(0x1c7)]!==_0x5c1977(0x1af))throw _0x15c74f;}return _0xc6090e;}function a273_0x14f3(_0x372821,_0x33b618){_0x372821=_0x372821-0x1a6;const _0xb17ef6=a273_0xb17e();let _0x14f3ae=_0xb17ef6[_0x372821];return _0x14f3ae;}async function scanFlatFunctions(_0x342986,_0x4f75e1){const _0x5af757=a273_0x5b3766,_0x1e5b4f=join(_0x342986[_0x5af757(0x1b4)],_0x4f75e1),_0x5af8e2=await scanJsFilesRecursively(_0x1e5b4f,_0x4f75e1);return _0x5af8e2[_0x5af757(0x1cc)](({lockKey:_0x18c960,filePath:_0x517604})=>({'type':_0x4f75e1,'name':_0x18c960[_0x5af757(0x1b0)]('/')['at'](-0x1)??'','filePath':_0x517604,'lockKey':_0x18c960}));}async function scanHookFunctions(_0x253723){const _0xd58847=a273_0x5b3766,_0x41fe1f=join(_0x253723[_0xd58847(0x1b4)],_0xd58847(0x1bc)),_0x239ada=[];try{const _0x26149d=await readdir(_0x41fe1f,{'withFileTypes':!![]});for(const _0x3d8768 of _0x26149d){if(!_0x3d8768['isDirectory']())continue;const _0x1288f9=_0x3d8768['name'],_0x5cdba4=join(_0x41fe1f,_0x1288f9),_0x3793d8=await readdir(_0x5cdba4,{'withFileTypes':!![]});for(const _0x2f3c5a of _0x3793d8){if(!_0x2f3c5a[_0xd58847(0x1b1)]())continue;const _0x3dd374=_0x2f3c5a[_0xd58847(0x1ca)],_0x14f58a=join(_0x5cdba4,_0x3dd374),_0x23f068=await readdir(_0x14f58a,{'withFileTypes':!![]});for(const _0x5a5fc4 of _0x23f068){if(!_0x5a5fc4[_0xd58847(0x1b1)]())continue;const _0x6a69a0=_0x5a5fc4[_0xd58847(0x1ca)],_0x47628a=join(_0x14f58a,_0x6a69a0),_0x22a486=await readdir(_0x47628a,{'withFileTypes':!![]});for(const _0x2b4092 of _0x22a486){if(!_0x2b4092[_0xd58847(0x1be)]()||!_0x2b4092[_0xd58847(0x1ca)][_0xd58847(0x1c1)](_0xd58847(0x1ac)))continue;const _0x3555cc=_0x2b4092['name'][_0xd58847(0x1aa)](/\.js$/,'');_0x239ada[_0xd58847(0x1b5)]({'type':_0xd58847(0x1bc),'name':_0x3555cc,'filePath':join(_0x47628a,_0x2b4092['name']),'lockKey':_0xd58847(0x1c2)+_0x1288f9+'/'+_0x3dd374+'/'+_0x6a69a0+'/'+_0x3555cc,'alias':_0x1288f9,'operationType':_0x3dd374,'functionNode':_0x6a69a0});}}}}}catch(_0x2ba3bb){if(_0x2ba3bb[_0xd58847(0x1c7)]!=='ENOENT')throw _0x2ba3bb;}return _0x239ada;}export async function scanLocalBffFunctions(_0x579362,_0x3cd836){const _0x534753=a273_0x5b3766;if(_0x3cd836===_0x534753(0x1ba)||_0x3cd836===_0x534753(0x1bb))return scanFlatFunctions(_0x579362,_0x3cd836);if(_0x3cd836===_0x534753(0x1bc))return scanHookFunctions(_0x579362);const [_0x28221b,_0xf5f71b,_0x5d4cf9]=await Promise['all']([scanFlatFunctions(_0x579362,_0x534753(0x1ba)),scanFlatFunctions(_0x579362,'ENDPOINT'),scanHookFunctions(_0x579362)]);return[..._0x28221b,..._0xf5f71b,..._0x5d4cf9];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x36e2c1){const _0xfadae4=a273_0x5b3766;return SAFE_LOCK_KEY_SEGMENT[_0xfadae4(0x1cf)](_0x36e2c1)&&_0x36e2c1!=='.'&&_0x36e2c1!=='..';}function a273_0xb17e(){const _0x410e69=['ENOENT','split','isDirectory','operationType','776uzzACB','scriptsRootDir','push','21816LHgLiJ','F_OK','set','includes','COMMON','ENDPOINT','HOOK','functionNode','isFile','datasetCode','475825GjdzZw','endsWith','HOOK/','1075812Lsqtsf','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','2LILgDH','get','code','startsWith','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','name','731454RQfxRx','map','every','7pJWuIr','test','1548052yTgOuO','afterScriptId','142079vzyJtb','functionName','replace','beforeScriptId','.js','833430nQTExt','trim'];a273_0xb17e=function(){return _0x410e69;};return a273_0xb17e();}export function resolveLocalFilePathFromLockKey(_0x199e27,_0x268b96){const _0x31c772=a273_0x5b3766,_0x34c0a8=_0x268b96['split']('/');if(!_0x34c0a8[_0x31c772(0x1cd)](isSafeLockKeySegment))throw new Error(_0x31c772(0x1c9)+_0x268b96);const _0x5f2665=resolve(join(_0x199e27['scriptsRootDir'],..._0x34c0a8)+_0x31c772(0x1ac)),_0x473ee7=resolve(_0x199e27[_0x31c772(0x1b4)]);if(_0x5f2665!==_0x473ee7&&!_0x5f2665[_0x31c772(0x1c8)](_0x473ee7+sep))throw new Error(_0x31c772(0x1c4)+_0x5f2665);return _0x5f2665;}export function createHookLocationMap(_0x3de2c3){const _0xe25e66=a273_0x5b3766,_0x2f0646=new Map();for(const _0x229817 of _0x3de2c3){_0x229817[_0xe25e66(0x1ab)]&&_0x2f0646['set'](_0x229817['beforeScriptId'],{'datasetCode':_0x229817[_0xe25e66(0x1bf)],'operationType':snakeToCamel(_0x229817['operationType']),'functionNode':'before'}),_0x229817[_0xe25e66(0x1a7)]&&_0x2f0646[_0xe25e66(0x1b8)](_0x229817[_0xe25e66(0x1a7)],{'datasetCode':_0x229817[_0xe25e66(0x1bf)],'operationType':snakeToCamel(_0x229817['operationType']),'functionNode':'after'});}return _0x2f0646;}export function resolveRemoteScriptTarget(_0x552e55,_0x5db57f,_0x57ea42,_0x2c7035,_0x4b5fc0){const _0x225e53=a273_0x5b3766,_0x3eafdd=normalizeBffType(_0x5db57f['scriptType']);if(!_0x3eafdd||!_0x5db57f[_0x225e53(0x1a9)])return null;if(_0x3eafdd===_0x225e53(0x1bc)){const _0x4b79d8=_0x5db57f['id']?_0x57ea42[_0x225e53(0x1c6)](_0x5db57f['id']):undefined,_0x2af0e7=findHookLocationByRemoteId(_0x2c7035,_0x5db57f['id']),_0x4e26aa=_0x4b79d8?{..._0x2af0e7?.['datasetCode']===_0x4b79d8[_0x225e53(0x1bf)]?_0x2af0e7:{},..._0x4b79d8}:_0x2af0e7;if(!_0x4e26aa)return null;const _0x10f774=_0x4b5fc0[_0x225e53(0x1c6)](_0x4e26aa[_0x225e53(0x1bf)]['toLowerCase']()),_0x4039fe=_0x10f774??_0x4e26aa[_0x225e53(0x1bf)],_0x1562a1={..._0x4e26aa,'alias':_0x10f774},_0x3c3bd9=_0x225e53(0x1c2)+_0x4039fe+'/'+_0x1562a1[_0x225e53(0x1b2)]+'/'+_0x1562a1[_0x225e53(0x1bd)]+'/'+_0x5db57f['functionName'];if(!_0x3c3bd9[_0x225e53(0x1b0)]('/')[_0x225e53(0x1cd)](isSafeLockKeySegment))return null;return{'lockKey':_0x3c3bd9,'filePath':resolveLocalFilePathFromLockKey(_0x552e55,_0x3c3bd9),'type':_0x225e53(0x1bc),'hookLocation':_0x1562a1};}const _0xef46e6=_0x3eafdd+'/'+_0x5db57f['functionName'];if(!_0xef46e6[_0x225e53(0x1b0)]('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0xef46e6,'filePath':resolveLocalFilePathFromLockKey(_0x552e55,_0xef46e6),'type':_0x3eafdd};}export async function ensureParentDirectory(_0x473e3c){await mkdir(dirname(_0x473e3c),{'recursive':!![]});}export async function fileExists(_0x9113aa){const _0x2573c2=a273_0x5b3766;try{return await access(_0x9113aa,constants[_0x2573c2(0x1b7)]),!![];}catch{return![];}}export async function directoryExists(_0xa107f8){const _0x2f4261=a273_0x5b3766;try{const _0x21a569=await stat(_0xa107f8);return _0x21a569[_0x2f4261(0x1b1)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x296fc5,_0x190be2){const _0x41ab0a=a274_0x21c0,_0x59a476=_0x296fc5();while(!![]){try{const _0x3f25fe=-parseInt(_0x41ab0a(0x14b))/0x1+-parseInt(_0x41ab0a(0x153))/0x2*(-parseInt(_0x41ab0a(0x14c))/0x3)+-parseInt(_0x41ab0a(0x149))/0x4+-parseInt(_0x41ab0a(0x152))/0x5+-parseInt(_0x41ab0a(0x151))/0x6+-parseInt(_0x41ab0a(0x150))/0x7+-parseInt(_0x41ab0a(0x14e))/0x8*(-parseInt(_0x41ab0a(0x155))/0x9);if(_0x3f25fe===_0x190be2)break;else _0x59a476['push'](_0x59a476['shift']());}catch(_0x477eb6){_0x59a476['push'](_0x59a476['shift']());}}}(a274_0x46aa,0x53f9a));function a274_0x21c0(_0x17df5c,_0x1e63f5){_0x17df5c=_0x17df5c-0x148;const _0x46aa5b=a274_0x46aa();let _0x21c099=_0x46aa5b[_0x17df5c];return _0x21c099;}import{readFile}from'node:fs/promises';function a274_0x46aa(){const _0x40a7ef=['utf8','507968gdzNgl','update','274789jBAeQo','10377CfOPai','createHash','18432iDpzkE','md5','2186212ldqcay','3828924YAyIgP','3120355ktZsfy','104hcatWR','hex','8361HGFEtl'];a274_0x46aa=function(){return _0x40a7ef;};return a274_0x46aa();}import a274_0x3ff5d7 from'node:crypto';export function computeContentHash(_0x2583f6){const _0x32e67d=a274_0x21c0;return a274_0x3ff5d7[_0x32e67d(0x14d)](_0x32e67d(0x14f))[_0x32e67d(0x14a)](_0x2583f6)['digest'](_0x32e67d(0x154));}export async function computeFileHash(_0x2a3369){const _0x36e358=a274_0x21c0,_0x2bee6e=await readFile(_0x2a3369,_0x36e358(0x148));return computeContentHash(_0x2bee6e);}
1
+ (function(_0x2f1ef7,_0x6f8ae2){const _0x2e6c3f=a274_0x1a8a,_0x41b0a0=_0x2f1ef7();while(!![]){try{const _0xcdd0ab=parseInt(_0x2e6c3f(0x166))/0x1*(-parseInt(_0x2e6c3f(0x170))/0x2)+parseInt(_0x2e6c3f(0x168))/0x3*(parseInt(_0x2e6c3f(0x176))/0x4)+parseInt(_0x2e6c3f(0x167))/0x5+parseInt(_0x2e6c3f(0x164))/0x6*(-parseInt(_0x2e6c3f(0x171))/0x7)+-parseInt(_0x2e6c3f(0x165))/0x8*(-parseInt(_0x2e6c3f(0x173))/0x9)+parseInt(_0x2e6c3f(0x174))/0xa*(parseInt(_0x2e6c3f(0x16e))/0xb)+parseInt(_0x2e6c3f(0x16d))/0xc*(-parseInt(_0x2e6c3f(0x172))/0xd);if(_0xcdd0ab===_0x6f8ae2)break;else _0x41b0a0['push'](_0x41b0a0['shift']());}catch(_0x2a8454){_0x41b0a0['push'](_0x41b0a0['shift']());}}}(a274_0x439e,0x9b26a));import{readFile}from'node:fs/promises';import a274_0xe491dc from'node:crypto';function a274_0x1a8a(_0x58aa07,_0x12c6a6){_0x58aa07=_0x58aa07-0x164;const _0x439eb4=a274_0x439e();let _0x1a8a91=_0x439eb4[_0x58aa07];return _0x1a8a91;}export function computeContentHash(_0x2ee680){const _0x41822e=a274_0x1a8a;return a274_0xe491dc[_0x41822e(0x169)](_0x41822e(0x16b))[_0x41822e(0x16c)](_0x2ee680)[_0x41822e(0x16f)](_0x41822e(0x175));}export async function computeFileHash(_0x4f24ca){const _0x3c3d8d=a274_0x1a8a,_0x2410a5=await readFile(_0x4f24ca,_0x3c3d8d(0x16a));return computeContentHash(_0x2410a5);}function a274_0x439e(){const _0x53d0d8=['2334387TvWGfr','createHash','utf8','md5','update','27247272tOwuog','348293gUbXCO','digest','2WMiZMX','33817lxjFgv','13LXjmwh','9DMPcnw','330yhDIhD','hex','4FWrmwQ','186IOTIDT','9462424ouDOdp','1182914EwAexN','6164840MnaISI'];a274_0x439e=function(){return _0x53d0d8;};return a274_0x439e();}
@@ -1 +1 @@
1
- (function(_0x20e84b,_0x2ffb10){const _0x490a00=a275_0xa277,_0x1a624e=_0x20e84b();while(!![]){try{const _0x15c504=parseInt(_0x490a00(0xb5))/0x1*(parseInt(_0x490a00(0xa2))/0x2)+-parseInt(_0x490a00(0xac))/0x3*(-parseInt(_0x490a00(0xb0))/0x4)+-parseInt(_0x490a00(0xcf))/0x5*(parseInt(_0x490a00(0xc6))/0x6)+-parseInt(_0x490a00(0xb9))/0x7*(-parseInt(_0x490a00(0xab))/0x8)+parseInt(_0x490a00(0xbf))/0x9*(-parseInt(_0x490a00(0xae))/0xa)+-parseInt(_0x490a00(0xc5))/0xb*(parseInt(_0x490a00(0xca))/0xc)+parseInt(_0x490a00(0xce))/0xd;if(_0x15c504===_0x2ffb10)break;else _0x1a624e['push'](_0x1a624e['shift']());}catch(_0x54034e){_0x1a624e['push'](_0x1a624e['shift']());}}}(a275_0x4121,0x56eee));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5b65b3){const _0x5922c3=a275_0xa277,_0x3f8cc8=[];for(const [_0x514f73,_0x4d51d6]of Object[_0x5922c3(0xb3)](_0x5b65b3[_0x5922c3(0xbb)])){const [_0x138b2d,_0x6e02e6]=_0x514f73[_0x5922c3(0xaf)]('/');if(_0x138b2d!==_0x5922c3(0xba)||!_0x6e02e6||!_0x4d51d6[_0x5922c3(0xa5)])continue;_0x3f8cc8['push']({'alias':_0x6e02e6,'datasetCode':_0x4d51d6[_0x5922c3(0xa5)]});}return _0x3f8cc8;}export function uniqueTrackedHookDirectoryByDataset(_0x5de6ab){const _0x122fce=a275_0xa277,_0x1e8cc1=new Map();for(const _0x612c4b of trackedHookDirectoryMappings(_0x5de6ab)){const _0x4ea95f=directoryIdentity(_0x612c4b[_0x122fce(0xa5)]),_0x30927e=_0x1e8cc1[_0x122fce(0xc4)](_0x4ea95f)??new Map();_0x30927e['set'](directoryIdentity(_0x612c4b[_0x122fce(0xa0)]),_0x612c4b['alias']),_0x1e8cc1['set'](_0x4ea95f,_0x30927e);}const _0x12e58a=new Map();for(const [_0x26840b,_0x5e5ad0]of _0x1e8cc1){if(_0x5e5ad0['size']>0x1)throw hookDirectoryError(_0x122fce(0xd2),_0x122fce(0xc8)+_0x26840b+_0x122fce(0x9f)+[..._0x5e5ad0[_0x122fce(0xd0)]()][_0x122fce(0xb6)](',\x20')+'.',{'datasetCode':_0x26840b,'directories':[..._0x5e5ad0[_0x122fce(0xd0)]()]});_0x12e58a['set'](_0x26840b,[..._0x5e5ad0[_0x122fce(0xd0)]()][0x0]);}return _0x12e58a;}export function assertUnambiguousHookDirectoryMappings(_0x127a8e){const _0x781d15=a275_0xa277,_0x17990c=new Map();for(const {alias:_0x4d9cde,datasetCode:_0x515eaa}of _0x127a8e){const _0x23d639=directoryIdentity(_0x4d9cde),_0x336f5c=_0x17990c[_0x781d15(0xc4)](_0x23d639)??new Set();_0x336f5c[_0x781d15(0xad)](_0x515eaa),_0x17990c['set'](_0x23d639,_0x336f5c);}for(const [_0x13599c,_0x19470b]of _0x17990c){if(_0x19470b[_0x781d15(0xb4)]>0x1)throw hookDirectoryError(_0x781d15(0xcb),_0x781d15(0xc3)+_0x13599c+_0x781d15(0xc2),{'directoryName':_0x13599c,'datasetCodes':[..._0x19470b]});}}function a275_0x4121(){const _0x2f9a8e=['1095565JfQqay','values','datasetCodeToDatasets','HOOK_DUPLICATE_DIRECTORIES','name','aliasToDatasetCodes','set','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','alias','HOOK_MAPPING_DRIFT','79216dmQLKU','Incomplete\x20HOOK\x20path:\x20','Dataset\x20code\x20\x22','datasetCode','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','map','lockKey','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','HOOK_DATASET_NOT_FOUND','283448VntstF','5601WtLuUY','add','221230lKtnht','split','1228wBpyKa','HOOK_ALIAS_AMBIGUOUS','push','entries','size','14jArncV','join','includes','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','7WXFumB','HOOK','functions','type','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','189grGRGC','details','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','\x22\x20resolves\x20to\x20multiple\x20Datasets.','HOOK\x20directory\x20\x22','get','9064UVvLhk','12DCMSyp','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','HOOK_DATASET_CODE_AMBIGUOUS','8700LVOkBv','HOOK_DIRECTORY_AMBIGUOUS','code','message','9011275SnkVXP'];a275_0x4121=function(){return _0x2f9a8e;};return a275_0x4121();}export function assertUnambiguousHookAliases(_0x41e311){const _0x5cccc0=a275_0xa277,_0xa7e9d=[..._0x41e311],_0x3f5d23=new Map(),_0x25a4c9=new Map();for(const {alias:_0x1fe29d,datasetCode:_0x1b8854}of _0xa7e9d){const _0x3d786f=directoryIdentity(_0x1fe29d),_0x3b3f4c=directoryIdentity(_0x1b8854),_0x4dc67d=_0x3f5d23[_0x5cccc0(0xc4)](_0x3d786f)??new Set();_0x4dc67d[_0x5cccc0(0xad)](_0x1b8854),_0x3f5d23[_0x5cccc0(0x9e)](_0x3d786f,_0x4dc67d);const _0x684691=_0x25a4c9[_0x5cccc0(0xc4)](_0x3b3f4c)??new Set();_0x684691['add'](_0x1fe29d),_0x25a4c9[_0x5cccc0(0x9e)](_0x3b3f4c,_0x684691);}for(const [_0x149aa2,_0x5a0193]of _0x3f5d23){if(_0x5a0193['size']>0x1)throw hookDirectoryError(_0x5cccc0(0xb1),'SDK\x20alias\x20\x22'+_0x149aa2+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'alias':_0x149aa2,'datasetCodes':[..._0x5a0193]});}for(const [_0x4ccba2,_0x407b14]of _0x25a4c9){if(_0x407b14[_0x5cccc0(0xb4)]>0x1)throw hookDirectoryError(_0x5cccc0(0xb1),_0x5cccc0(0xc8)+_0x4ccba2+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x4ccba2,'aliases':[..._0x407b14]});}}export function buildHookDirectoryIndexes(_0x3e5a4b,_0x4a20f7=[]){const _0x3029d8=a275_0xa277,_0x4c939e=[..._0x4a20f7];assertUnambiguousHookDirectoryMappings(_0x4c939e[_0x3029d8(0xa7)](([_0x52697b,_0x3ba682])=>({'alias':_0x52697b,'datasetCode':_0x3ba682})));const _0x1ba200=new Map(),_0x53741c=new Map();for(const _0x5c560f of _0x3e5a4b){appendUnique(_0x1ba200,directoryIdentity(_0x5c560f[_0x3029d8(0xcc)]),_0x5c560f,_0x35f2fb=>_0x35f2fb[_0x3029d8(0xcc)]);}for(const [_0x262548,_0x5da4d4]of _0x4c939e){appendUnique(_0x53741c,directoryIdentity(_0x262548),_0x5da4d4,_0x3aeeb8=>_0x3aeeb8);}return{'datasetCodeToDatasets':_0x1ba200,'aliasToDatasetCodes':_0x53741c};}export function resolvePushHookDirectory(_0x369090,_0x4e3a06,_0x2a9348){const _0x3265a9=a275_0xa277,_0x5ba0ef=directoryIdentity(_0x369090),_0x4c797e=_0x2a9348[_0x3265a9(0xd1)][_0x3265a9(0xc4)](_0x5ba0ef)??[],_0x54d118=_0x2a9348[_0x3265a9(0xd4)][_0x3265a9(0xc4)](_0x5ba0ef)??[],_0x481a4b=new Set([..._0x4c797e[_0x3265a9(0xa7)](_0x15e722=>_0x15e722[_0x3265a9(0xcc)]),..._0x54d118]);if(_0x481a4b['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xa9),{'directoryName':_0x369090,'datasetCodes':[..._0x481a4b]});const _0x329072=[..._0x481a4b][0x0];if(_0x329072&&_0x4e3a06?.['datasetCode']&&_0x329072!==_0x4e3a06[_0x3265a9(0xa5)])throw hookDirectoryError(_0x3265a9(0xa1),_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xbe)+_0x4e3a06[_0x3265a9(0xa5)]+'\x22\x20to\x20\x22'+_0x329072+'\x22.',{'directoryName':_0x369090,'datasetCode':_0x329072,'lockedDatasetCode':_0x4e3a06[_0x3265a9(0xa5)]});const _0x1b5f93=_0x329072?findDatasetByCode(_0x2a9348,_0x329072):undefined,_0x5d0446=!!_0x329072&&_0x54d118[_0x3265a9(0xb7)](_0x329072);if(_0x1b5f93)return{'dataset':_0x1b5f93,'datasetCode':_0x1b5f93[_0x3265a9(0xcc)],..._0x5d0446?{'alias':_0x369090}:{},'directoryProtocol':_0x5d0446?'alias':_0x3265a9(0xa5),'warnings':[]};const _0xb84a8a=_0x4e3a06?.[_0x3265a9(0xa5)];if(_0xb84a8a){const _0x33f794=findDatasetByCode(_0x2a9348,_0xb84a8a);if(_0x33f794)return{'dataset':_0x33f794,'datasetCode':_0x33f794['code'],..._0x4e3a06[_0x3265a9(0xa0)]?{'alias':_0x4e3a06['alias']}:{},'directoryProtocol':_0x4e3a06[_0x3265a9(0xa0)]?_0x3265a9(0xa0):_0x3265a9(0xa5),'warnings':[]};}if(_0x329072||_0xb84a8a){const _0x3eab8a=_0x329072??_0xb84a8a;throw hookDirectoryError(_0x3265a9(0xaa),_0x3265a9(0xc3)+_0x369090+_0x3265a9(0xbd),{'directoryName':_0x369090,'datasetCode':_0x3eab8a});}throw hookDirectoryError(_0x3265a9(0xc7),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x369090+_0x3265a9(0xb8),{'directoryName':_0x369090});}function a275_0xa277(_0x2cb5e3,_0x5ee121){_0x2cb5e3=_0x2cb5e3-0x9e;const _0x412112=a275_0x4121();let _0xa277de=_0x412112[_0x2cb5e3];return _0xa277de;}export function preflightPushHookDirectories(_0x49d64b,_0x5b848f,_0x49f75c,_0x541be2){const _0x50f1e6=a275_0xa277,_0x21fb5e=new Map(),_0x592102=new Map();for(const _0x5f432c of _0x49d64b){if(_0x5f432c[_0x50f1e6(0xbc)]!=='HOOK')continue;const _0xe64a62=_0x5f432c['alias'];if(!_0xe64a62)throw hookDirectoryError(_0x50f1e6(0xc7),_0x50f1e6(0xa3)+_0x5f432c['lockKey'],{'lockKey':_0x5f432c['lockKey']});let _0x12473c;try{_0x12473c=resolvePushHookDirectory(_0xe64a62,_0x5b848f[_0x50f1e6(0xbb)][_0x5f432c[_0x50f1e6(0xa8)]],_0x49f75c);}catch(_0x15521e){if(_0x541be2&&_0x15521e instanceof CliError&&['HOOK_DATASET_NOT_FOUND',_0x50f1e6(0xc7)][_0x50f1e6(0xb7)](_0x15521e[_0x50f1e6(0xcc)])){_0x541be2[_0x50f1e6(0x9e)](_0x5f432c[_0x50f1e6(0xa8)],_0x15521e[_0x50f1e6(0xcd)]);continue;}throw _0x15521e;}_0x21fb5e[_0x50f1e6(0x9e)](_0x5f432c['lockKey'],_0x12473c);const _0xe891c3=_0x592102[_0x50f1e6(0xc4)](_0x12473c[_0x50f1e6(0xa5)])??new Set();_0xe891c3[_0x50f1e6(0xad)](_0xe64a62),_0x592102[_0x50f1e6(0x9e)](_0x12473c[_0x50f1e6(0xa5)],_0xe891c3);}for(const [_0x5e411f,_0x4126c7]of _0x592102){if(_0x4126c7[_0x50f1e6(0xb4)]>0x1)throw hookDirectoryError(_0x50f1e6(0xd2),_0x50f1e6(0xc8)+_0x5e411f+_0x50f1e6(0xc1)+[..._0x4126c7][_0x50f1e6(0xb6)](',\x20')+'.',{'datasetCode':_0x5e411f,'directories':[..._0x4126c7]});}return _0x21fb5e;}export function hookDirectoryError(_0x204de3,_0x98d2d1,_0x577e93){const _0x448805=a275_0xa277,_0x200e1e=new CliError(_0x204de3,0x2,_0x204de3+':\x20'+_0x98d2d1);return _0x200e1e[_0x448805(0xc0)]=_0x577e93,_0x200e1e;}function findDatasetByCode(_0x55c015,_0x8352a7){const _0x4c07c7=a275_0xa277,_0x2a893d=_0x55c015[_0x4c07c7(0xd1)][_0x4c07c7(0xc4)](directoryIdentity(_0x8352a7))??[];if(_0x2a893d['length']>0x1)throw hookDirectoryError(_0x4c07c7(0xc9),_0x4c07c7(0xa4)+_0x8352a7+_0x4c07c7(0xa6),{'datasetCode':_0x8352a7,'candidates':_0x2a893d[_0x4c07c7(0xa7)](datasetFact)});return _0x2a893d[0x0];}function directoryIdentity(_0x265e14){return _0x265e14['normalize']('NFC')['toLowerCase']();}function appendUnique(_0xe706a6,_0x4e169c,_0x22faae,_0x58ab94){const _0x5e36a4=a275_0xa277,_0x170156=_0xe706a6[_0x5e36a4(0xc4)](_0x4e169c)??[];!_0x170156['some'](_0x2f8891=>_0x58ab94(_0x2f8891)===_0x58ab94(_0x22faae))&&_0x170156[_0x5e36a4(0xb2)](_0x22faae),_0xe706a6[_0x5e36a4(0x9e)](_0x4e169c,_0x170156);}function datasetFact(_0x28e523){const _0xe57314=a275_0xa277;return{'id':_0x28e523['id'],'name':_0x28e523[_0xe57314(0xd3)],'datasetCode':_0x28e523[_0xe57314(0xcc)]};}
1
+ (function(_0x14c73f,_0x20281e){const _0x3a4dd1=a275_0x241c,_0x502f18=_0x14c73f();while(!![]){try{const _0x3e2d60=parseInt(_0x3a4dd1(0x152))/0x1*(-parseInt(_0x3a4dd1(0x164))/0x2)+parseInt(_0x3a4dd1(0x156))/0x3*(-parseInt(_0x3a4dd1(0x17a))/0x4)+parseInt(_0x3a4dd1(0x16e))/0x5*(-parseInt(_0x3a4dd1(0x168))/0x6)+-parseInt(_0x3a4dd1(0x16f))/0x7+-parseInt(_0x3a4dd1(0x170))/0x8*(parseInt(_0x3a4dd1(0x185))/0x9)+parseInt(_0x3a4dd1(0x14d))/0xa+parseInt(_0x3a4dd1(0x187))/0xb;if(_0x3e2d60===_0x20281e)break;else _0x502f18['push'](_0x502f18['shift']());}catch(_0x5272ef){_0x502f18['push'](_0x502f18['shift']());}}}(a275_0x5e1b,0x21755));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x48896b){const _0x121fe6=a275_0x241c,_0x461c7c=[];for(const [_0x23608e,_0x320888]of Object[_0x121fe6(0x171)](_0x48896b[_0x121fe6(0x14f)])){const [_0x2a48a4,_0x4249e7]=_0x23608e[_0x121fe6(0x15b)]('/');if(_0x2a48a4!==_0x121fe6(0x15c)||!_0x4249e7||!_0x320888[_0x121fe6(0x16c)])continue;_0x461c7c['push']({'alias':_0x4249e7,'datasetCode':_0x320888[_0x121fe6(0x16c)]});}return _0x461c7c;}export function uniqueTrackedHookDirectoryByDataset(_0x2b27d2){const _0x2cc591=a275_0x241c,_0x3a2ad5=new Map();for(const _0x18ab0d of trackedHookDirectoryMappings(_0x2b27d2)){const _0x3cda11=directoryIdentity(_0x18ab0d['datasetCode']),_0x5330b3=_0x3a2ad5[_0x2cc591(0x16b)](_0x3cda11)??new Map();_0x5330b3['set'](directoryIdentity(_0x18ab0d['alias']),_0x18ab0d[_0x2cc591(0x17b)]),_0x3a2ad5['set'](_0x3cda11,_0x5330b3);}const _0x37757b=new Map();for(const [_0x1a187d,_0x2f8bee]of _0x3a2ad5){if(_0x2f8bee['size']>0x1)throw hookDirectoryError(_0x2cc591(0x159),_0x2cc591(0x184)+_0x1a187d+_0x2cc591(0x17f)+[..._0x2f8bee['values']()]['join'](',\x20')+'.',{'datasetCode':_0x1a187d,'directories':[..._0x2f8bee[_0x2cc591(0x151)]()]});_0x37757b[_0x2cc591(0x17e)](_0x1a187d,[..._0x2f8bee['values']()][0x0]);}return _0x37757b;}export function assertUnambiguousHookDirectoryMappings(_0x1e7147){const _0x5c0cfd=a275_0x241c,_0x1213a5=new Map();for(const {alias:_0x1bdfca,datasetCode:_0x37f1a1}of _0x1e7147){const _0x15726d=directoryIdentity(_0x1bdfca),_0x55be00=_0x1213a5[_0x5c0cfd(0x16b)](_0x15726d)??new Set();_0x55be00[_0x5c0cfd(0x155)](_0x37f1a1),_0x1213a5[_0x5c0cfd(0x17e)](_0x15726d,_0x55be00);}for(const [_0x51f413,_0x1bca78]of _0x1213a5){if(_0x1bca78[_0x5c0cfd(0x150)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x5c0cfd(0x175)+_0x51f413+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x51f413,'datasetCodes':[..._0x1bca78]});}}export function assertUnambiguousHookAliases(_0x4f592c){const _0x5e2240=a275_0x241c,_0x44ee80=[..._0x4f592c],_0x2fb12c=new Map(),_0x5853d7=new Map();for(const {alias:_0xebe7d3,datasetCode:_0x4a24d2}of _0x44ee80){const _0xd0573=directoryIdentity(_0xebe7d3),_0x38f639=directoryIdentity(_0x4a24d2),_0x18fc9d=_0x2fb12c[_0x5e2240(0x16b)](_0xd0573)??new Set();_0x18fc9d['add'](_0x4a24d2),_0x2fb12c[_0x5e2240(0x17e)](_0xd0573,_0x18fc9d);const _0x3e20aa=_0x5853d7[_0x5e2240(0x16b)](_0x38f639)??new Set();_0x3e20aa['add'](_0xebe7d3),_0x5853d7['set'](_0x38f639,_0x3e20aa);}for(const [_0xdd7c61,_0x5e6160]of _0x2fb12c){if(_0x5e6160[_0x5e2240(0x150)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x5e2240(0x15a)+_0xdd7c61+_0x5e2240(0x16d),{'alias':_0xdd7c61,'datasetCodes':[..._0x5e6160]});}for(const [_0x152304,_0xaf481c]of _0x5853d7){if(_0xaf481c[_0x5e2240(0x150)]>0x1)throw hookDirectoryError(_0x5e2240(0x182),_0x5e2240(0x184)+_0x152304+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x152304,'aliases':[..._0xaf481c]});}}export function buildHookDirectoryIndexes(_0x1e95d0,_0x233d81=[]){const _0x3cbdfe=a275_0x241c,_0x4a79f8=[..._0x233d81];assertUnambiguousHookDirectoryMappings(_0x4a79f8[_0x3cbdfe(0x181)](([_0x1d6f0a,_0x1a83aa])=>({'alias':_0x1d6f0a,'datasetCode':_0x1a83aa})));const _0x44c464=new Map(),_0x36ad71=new Map();for(const _0x55aa9c of _0x1e95d0){appendUnique(_0x44c464,directoryIdentity(_0x55aa9c[_0x3cbdfe(0x17c)]),_0x55aa9c,_0xf3b962=>_0xf3b962[_0x3cbdfe(0x17c)]);}for(const [_0x24028b,_0x34df3c]of _0x4a79f8){appendUnique(_0x36ad71,directoryIdentity(_0x24028b),_0x34df3c,_0x3105d4=>_0x3105d4);}return{'datasetCodeToDatasets':_0x44c464,'aliasToDatasetCodes':_0x36ad71};}function a275_0x241c(_0x5e984b,_0x239487){_0x5e984b=_0x5e984b-0x14d;const _0x5e1b83=a275_0x5e1b();let _0x241c10=_0x5e1b83[_0x5e984b];return _0x241c10;}export function resolvePushHookDirectory(_0xbabc3e,_0x21e688,_0x3b6846){const _0x487e66=a275_0x241c,_0x253d03=directoryIdentity(_0xbabc3e),_0x59053e=_0x3b6846[_0x487e66(0x163)][_0x487e66(0x16b)](_0x253d03)??[],_0x29c46f=_0x3b6846[_0x487e66(0x172)][_0x487e66(0x16b)](_0x253d03)??[],_0x24e58b=new Set([..._0x59053e[_0x487e66(0x181)](_0x3ae0a6=>_0x3ae0a6[_0x487e66(0x17c)]),..._0x29c46f]);if(_0x24e58b['size']>0x1)throw hookDirectoryError(_0x487e66(0x176),'HOOK\x20directory\x20\x22'+_0xbabc3e+_0x487e66(0x169),{'directoryName':_0xbabc3e,'datasetCodes':[..._0x24e58b]});const _0x16d251=[..._0x24e58b][0x0];if(_0x16d251&&_0x21e688?.[_0x487e66(0x16c)]&&_0x16d251!==_0x21e688['datasetCode'])throw hookDirectoryError(_0x487e66(0x188),_0x487e66(0x175)+_0xbabc3e+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x21e688[_0x487e66(0x16c)]+_0x487e66(0x16a)+_0x16d251+'\x22.',{'directoryName':_0xbabc3e,'datasetCode':_0x16d251,'lockedDatasetCode':_0x21e688[_0x487e66(0x16c)]});const _0x24cb5c=_0x16d251?findDatasetByCode(_0x3b6846,_0x16d251):undefined,_0x4bff43=!!_0x16d251&&_0x29c46f[_0x487e66(0x158)](_0x16d251);if(_0x24cb5c)return{'dataset':_0x24cb5c,'datasetCode':_0x24cb5c['code'],..._0x4bff43?{'alias':_0xbabc3e}:{},'directoryProtocol':_0x4bff43?'alias':_0x487e66(0x16c),'warnings':[]};const _0x223298=_0x21e688?.[_0x487e66(0x16c)];if(_0x223298){const _0x39e609=findDatasetByCode(_0x3b6846,_0x223298);if(_0x39e609)return{'dataset':_0x39e609,'datasetCode':_0x39e609[_0x487e66(0x17c)],..._0x21e688[_0x487e66(0x17b)]?{'alias':_0x21e688['alias']}:{},'directoryProtocol':_0x21e688['alias']?_0x487e66(0x17b):_0x487e66(0x16c),'warnings':[]};}if(_0x16d251||_0x223298){const _0x584b0f=_0x16d251??_0x223298;throw hookDirectoryError(_0x487e66(0x161),_0x487e66(0x175)+_0xbabc3e+_0x487e66(0x178),{'directoryName':_0xbabc3e,'datasetCode':_0x584b0f});}throw hookDirectoryError(_0x487e66(0x183),_0x487e66(0x166)+_0xbabc3e+_0x487e66(0x186),{'directoryName':_0xbabc3e});}export function preflightPushHookDirectories(_0x233402,_0x17c2a7,_0x2478f6,_0x4186a4){const _0x237510=a275_0x241c,_0x13785a=new Map(),_0x42682a=new Map();for(const _0x16dfa5 of _0x233402){if(_0x16dfa5[_0x237510(0x15e)]!==_0x237510(0x15c))continue;const _0x38b12a=_0x16dfa5[_0x237510(0x17b)];if(!_0x38b12a)throw hookDirectoryError(_0x237510(0x183),_0x237510(0x160)+_0x16dfa5[_0x237510(0x157)],{'lockKey':_0x16dfa5[_0x237510(0x157)]});let _0x186834;try{_0x186834=resolvePushHookDirectory(_0x38b12a,_0x17c2a7[_0x237510(0x14f)][_0x16dfa5[_0x237510(0x157)]],_0x2478f6);}catch(_0x4ddb01){if(_0x4186a4&&_0x4ddb01 instanceof CliError&&[_0x237510(0x161),_0x237510(0x183)][_0x237510(0x158)](_0x4ddb01[_0x237510(0x17c)])){_0x4186a4['set'](_0x16dfa5[_0x237510(0x157)],_0x4ddb01[_0x237510(0x14e)]);continue;}throw _0x4ddb01;}_0x13785a['set'](_0x16dfa5['lockKey'],_0x186834);const _0x3dd10a=_0x42682a[_0x237510(0x16b)](_0x186834[_0x237510(0x16c)])??new Set();_0x3dd10a[_0x237510(0x155)](_0x38b12a),_0x42682a[_0x237510(0x17e)](_0x186834[_0x237510(0x16c)],_0x3dd10a);}for(const [_0x7ac124,_0x45ebc5]of _0x42682a){if(_0x45ebc5[_0x237510(0x150)]>0x1)throw hookDirectoryError(_0x237510(0x159),_0x237510(0x184)+_0x7ac124+_0x237510(0x154)+[..._0x45ebc5][_0x237510(0x177)](',\x20')+'.',{'datasetCode':_0x7ac124,'directories':[..._0x45ebc5]});}return _0x13785a;}function a275_0x5e1b(){const _0x175068=['75weeNAr','427854qgJysZ','305344kiVOhR','entries','aliasToDatasetCodes','push','toLowerCase','HOOK\x20directory\x20\x22','HOOK_DIRECTORY_AMBIGUOUS','join','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','name','44WHZUxD','alias','code','some','set','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','map','HOOK_ALIAS_AMBIGUOUS','HOOK_DIRECTORY_UNRESOLVED','Dataset\x20\x22','18rYSphk','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','4124296NyWXHO','HOOK_MAPPING_DRIFT','2716110NqNRWq','message','functions','size','values','27376NnYpLp','NFC','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','add','23259fkFSDx','lockKey','includes','HOOK_DUPLICATE_DIRECTORIES','SDK\x20alias\x20\x22','split','HOOK','Dataset\x20code\x20\x22','type','details','Incomplete\x20HOOK\x20path:\x20','HOOK_DATASET_NOT_FOUND','HOOK_DATASET_CODE_AMBIGUOUS','datasetCodeToDatasets','12gpptUc','normalize','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','length','49002KeNpQK','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20to\x20\x22','get','datasetCode','\x22\x20resolves\x20to\x20multiple\x20Datasets.'];a275_0x5e1b=function(){return _0x175068;};return a275_0x5e1b();}export function hookDirectoryError(_0x335a3c,_0x3da091,_0x125486){const _0x10515a=a275_0x241c,_0xe41e84=new CliError(_0x335a3c,0x2,_0x335a3c+':\x20'+_0x3da091);return _0xe41e84[_0x10515a(0x15f)]=_0x125486,_0xe41e84;}function findDatasetByCode(_0x2fba41,_0xe8dc60){const _0x256926=a275_0x241c,_0x1987be=_0x2fba41['datasetCodeToDatasets'][_0x256926(0x16b)](directoryIdentity(_0xe8dc60))??[];if(_0x1987be[_0x256926(0x167)]>0x1)throw hookDirectoryError(_0x256926(0x162),_0x256926(0x15d)+_0xe8dc60+_0x256926(0x180),{'datasetCode':_0xe8dc60,'candidates':_0x1987be[_0x256926(0x181)](datasetFact)});return _0x1987be[0x0];}function directoryIdentity(_0x50ff33){const _0x27f577=a275_0x241c;return _0x50ff33[_0x27f577(0x165)](_0x27f577(0x153))[_0x27f577(0x174)]();}function appendUnique(_0x7ebd73,_0x55e3a7,_0x5b3c60,_0x29732c){const _0x5eac03=a275_0x241c,_0x8af5f4=_0x7ebd73[_0x5eac03(0x16b)](_0x55e3a7)??[];!_0x8af5f4[_0x5eac03(0x17d)](_0x19da03=>_0x29732c(_0x19da03)===_0x29732c(_0x5b3c60))&&_0x8af5f4[_0x5eac03(0x173)](_0x5b3c60),_0x7ebd73[_0x5eac03(0x17e)](_0x55e3a7,_0x8af5f4);}function datasetFact(_0x7ee948){const _0x57e86a=a275_0x241c;return{'id':_0x7ee948['id'],'name':_0x7ee948[_0x57e86a(0x179)],'datasetCode':_0x7ee948['code']};}
@@ -1 +1 @@
1
- function a276_0x1737(_0x5f38fa,_0x31bcbf){_0x5f38fa=_0x5f38fa-0x1d0;const _0x255b6f=a276_0x255b();let _0x173768=_0x255b6f[_0x5f38fa];return _0x173768;}(function(_0x35563b,_0x433ec7){const _0xcec91a=a276_0x1737,_0x5d6aea=_0x35563b();while(!![]){try{const _0x4d9c42=parseInt(_0xcec91a(0x1e2))/0x1+parseInt(_0xcec91a(0x1d4))/0x2*(parseInt(_0xcec91a(0x1d2))/0x3)+parseInt(_0xcec91a(0x1dc))/0x4+-parseInt(_0xcec91a(0x1e4))/0x5+parseInt(_0xcec91a(0x1da))/0x6+parseInt(_0xcec91a(0x1d3))/0x7*(-parseInt(_0xcec91a(0x1e3))/0x8)+-parseInt(_0xcec91a(0x1d8))/0x9*(parseInt(_0xcec91a(0x1d5))/0xa);if(_0x4d9c42===_0x433ec7)break;else _0x5d6aea['push'](_0x5d6aea['shift']());}catch(_0x43f370){_0x5d6aea['push'](_0x5d6aea['shift']());}}}(a276_0x255b,0x9a321));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a276_0x255b(){const _0x5656e9=['parse','lastSync','scriptsRoot','code','utf8','1141113UYBySx','40jSDVaF','367450TRTQiU','apps','\x22.\x20','74319vwryJV','1719837GxKjka','80zEFJDC','4538890DExIYp',':\x20scriptsRoot\x20mismatch\x20—\x20','current\x20\x22','27ovUlhQ','object','132756NeyJCW','functions','4564152quBrcO'];a276_0x255b=function(){return _0x5656e9;};return a276_0x255b();}export function ensureLockScope(_0x530a93,_0x1c4bd4,_0x55e76c,_0x2c7451){const _0xce0bb7=a276_0x1737,_0x36ec19={'apps':_0x530a93['apps']&&typeof _0x530a93[_0xce0bb7(0x1d0)]==='object'?_0x530a93[_0xce0bb7(0x1d0)]:{}};let _0x5473a6=_0x36ec19[_0xce0bb7(0x1d0)][_0x1c4bd4];if(!_0x5473a6)return _0x5473a6={'scriptsRoot':_0x55e76c,'lastSync':'','functions':{}},_0x36ec19[_0xce0bb7(0x1d0)][_0x1c4bd4]=_0x5473a6,{'lockData':_0x36ec19,'appLock':_0x5473a6};if(!_0x5473a6[_0xce0bb7(0x1df)])_0x5473a6[_0xce0bb7(0x1df)]=_0x55e76c;else{if(_0x5473a6[_0xce0bb7(0x1df)]!==_0x55e76c)throw new Error(_0x2c7451+_0xce0bb7(0x1d6)+(_0xce0bb7(0x1d7)+_0x55e76c+'\x22\x20vs\x20lock\x20\x22'+_0x5473a6[_0xce0bb7(0x1df)]+_0xce0bb7(0x1d1))+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x5473a6[_0xce0bb7(0x1db)]&&(_0x5473a6['functions']={}),!_0x5473a6[_0xce0bb7(0x1de)]&&(_0x5473a6[_0xce0bb7(0x1de)]=''),{'lockData':_0x36ec19,'appLock':_0x5473a6};}export async function readBffLockFile(_0xad9af3){const _0x5537c8=a276_0x1737;try{const _0x11d373=await readFile(_0xad9af3,'utf8'),_0x2351ff=JSON[_0x5537c8(0x1dd)](_0x11d373);return{'apps':_0x2351ff[_0x5537c8(0x1d0)]&&typeof _0x2351ff[_0x5537c8(0x1d0)]===_0x5537c8(0x1d9)?_0x2351ff[_0x5537c8(0x1d0)]:{}};}catch(_0x34f144){if(_0x34f144[_0x5537c8(0x1e0)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x34f144));}}export async function writeBffLockFile(_0x3b9cf3,_0x15520b){const _0x497889=a276_0x1737;await mkdir(dirname(_0x3b9cf3),{'recursive':!![]}),await writeFile(_0x3b9cf3,JSON['stringify'](_0x15520b,null,0x2),_0x497889(0x1e1));}
1
+ (function(_0x2c7731,_0x57577f){const _0x496d89=a276_0x42ad,_0x454afd=_0x2c7731();while(!![]){try{const _0x18cab1=parseInt(_0x496d89(0x12f))/0x1*(-parseInt(_0x496d89(0x138))/0x2)+parseInt(_0x496d89(0x130))/0x3+parseInt(_0x496d89(0x13c))/0x4+-parseInt(_0x496d89(0x135))/0x5+parseInt(_0x496d89(0x139))/0x6+-parseInt(_0x496d89(0x13d))/0x7*(-parseInt(_0x496d89(0x126))/0x8)+-parseInt(_0x496d89(0x12e))/0x9*(parseInt(_0x496d89(0x13a))/0xa);if(_0x18cab1===_0x57577f)break;else _0x454afd['push'](_0x454afd['shift']());}catch(_0x4aacb1){_0x454afd['push'](_0x454afd['shift']());}}}(a276_0x5d64,0x7e5de));function a276_0x5d64(){const _0x350e1d=['current\x20\x22','utf8','object','2084045AFkXKe','scriptsRoot',':\x20scriptsRoot\x20mismatch\x20—\x20','596bDNaVP','6078414ufhEnE','20914770EsBdxM','code','3435188YiqCXS','321916APsMIp','40QxMdVe','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','\x22\x20vs\x20lock\x20\x22','ENOENT','lastSync','apps','functions','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','9kbwBjA','364SJfyRf','3097650NXYAbC','parse'];a276_0x5d64=function(){return _0x350e1d;};return a276_0x5d64();}function a276_0x42ad(_0x1c3f9f,_0x321656){_0x1c3f9f=_0x1c3f9f-0x126;const _0x5d640e=a276_0x5d64();let _0x42ada7=_0x5d640e[_0x1c3f9f];return _0x42ada7;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x41e7cd,_0x10bd92,_0xa24ec0,_0x4b7d01){const _0x388ac9=a276_0x42ad,_0x5c1e8b={'apps':_0x41e7cd[_0x388ac9(0x12b)]&&typeof _0x41e7cd[_0x388ac9(0x12b)]==='object'?_0x41e7cd[_0x388ac9(0x12b)]:{}};let _0xfcda2f=_0x5c1e8b[_0x388ac9(0x12b)][_0x10bd92];if(!_0xfcda2f)return _0xfcda2f={'scriptsRoot':_0xa24ec0,'lastSync':'','functions':{}},_0x5c1e8b['apps'][_0x10bd92]=_0xfcda2f,{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};if(!_0xfcda2f['scriptsRoot'])_0xfcda2f['scriptsRoot']=_0xa24ec0;else{if(_0xfcda2f[_0x388ac9(0x136)]!==_0xa24ec0)throw new Error(_0x4b7d01+_0x388ac9(0x137)+(_0x388ac9(0x132)+_0xa24ec0+_0x388ac9(0x128)+_0xfcda2f[_0x388ac9(0x136)]+'\x22.\x20')+_0x388ac9(0x127));}return!_0xfcda2f[_0x388ac9(0x12c)]&&(_0xfcda2f[_0x388ac9(0x12c)]={}),!_0xfcda2f[_0x388ac9(0x12a)]&&(_0xfcda2f[_0x388ac9(0x12a)]=''),{'lockData':_0x5c1e8b,'appLock':_0xfcda2f};}export async function readBffLockFile(_0x39cb0b){const _0x56c7e8=a276_0x42ad;try{const _0x2cfd3b=await readFile(_0x39cb0b,_0x56c7e8(0x133)),_0xe7555f=JSON[_0x56c7e8(0x131)](_0x2cfd3b);return{'apps':_0xe7555f[_0x56c7e8(0x12b)]&&typeof _0xe7555f[_0x56c7e8(0x12b)]===_0x56c7e8(0x134)?_0xe7555f[_0x56c7e8(0x12b)]:{}};}catch(_0x4a3c6b){if(_0x4a3c6b[_0x56c7e8(0x13b)]===_0x56c7e8(0x129))return null;throw new Error(_0x56c7e8(0x12d)+String(_0x4a3c6b));}}export async function writeBffLockFile(_0x204d9c,_0x4d4c74){const _0x551661=a276_0x42ad;await mkdir(dirname(_0x204d9c),{'recursive':!![]}),await writeFile(_0x204d9c,JSON['stringify'](_0x4d4c74,null,0x2),_0x551661(0x133));}
@@ -1 +1 @@
1
- const a278_0x31bc56=a278_0x4d9a;(function(_0x32883e,_0x15668c){const _0x5c044a=a278_0x4d9a,_0x4dbebb=_0x32883e();while(!![]){try{const _0x39d775=parseInt(_0x5c044a(0x203))/0x1*(-parseInt(_0x5c044a(0x1f5))/0x2)+parseInt(_0x5c044a(0x201))/0x3*(-parseInt(_0x5c044a(0x1f4))/0x4)+-parseInt(_0x5c044a(0x1ff))/0x5+-parseInt(_0x5c044a(0x1fb))/0x6+parseInt(_0x5c044a(0x1ef))/0x7*(parseInt(_0x5c044a(0x1f7))/0x8)+-parseInt(_0x5c044a(0x1f0))/0x9+parseInt(_0x5c044a(0x1f2))/0xa;if(_0x39d775===_0x15668c)break;else _0x4dbebb['push'](_0x4dbebb['shift']());}catch(_0x91b322){_0x4dbebb['push'](_0x4dbebb['shift']());}}}(a278_0x53ac,0x6eff2));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a278_0x31bc56(0x204);function a278_0x4d9a(_0x3d37ba,_0x5bd29b){_0x3d37ba=_0x3d37ba-0x1ee;const _0x53acec=a278_0x53ac();let _0x4d9a93=_0x53acec[_0x3d37ba];return _0x4d9a93;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';export function snakeToCamel(_0x556f8a){const _0x376d4c=a278_0x31bc56;return _0x556f8a[_0x376d4c(0x1fc)]()[_0x376d4c(0x207)](/_([a-z])/g,(_0x47cf63,_0x164aa5)=>_0x164aa5[_0x376d4c(0x1f8)]());}export function findHookLocationByRemoteId(_0x501313,_0xec492b){const _0x457a23=a278_0x31bc56;if(!_0xec492b)return undefined;for(const [_0x4c587a,_0x4db8dc]of Object['entries'](_0x501313)){if(_0x4db8dc['remoteId']===_0xec492b&&_0x4db8dc[_0x457a23(0x1f9)]&&_0x4db8dc[_0x457a23(0x1f6)]&&_0x4db8dc[_0x457a23(0x202)]){const _0x2a6b73=_0x4c587a[_0x457a23(0x1f3)]('/')[0x1];return{'alias':_0x2a6b73||_0x4db8dc['alias'],'datasetCode':_0x4db8dc[_0x457a23(0x1f9)],'operationType':_0x4db8dc[_0x457a23(0x1f6)],'functionNode':_0x4db8dc[_0x457a23(0x202)]};}}return undefined;}export function extractScriptDescription(_0x3f2e48){const _0x1acc4f=a278_0x31bc56,_0x3d1994=_0x3f2e48[_0x1acc4f(0x1f1)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x3d1994?.[0x1])return undefined;const _0xdbdf3f=_0x3d1994[0x1],_0x37c1a1=_0x144fb6=>{const _0x17a82d=_0x1acc4f,_0x4018c9=_0x144fb6?.[_0x17a82d(0x200)]();if(!_0x4018c9||_0x4018c9===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x4018c9===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x4018c9;},_0x266ad5=_0xdbdf3f[_0x1acc4f(0x1f1)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x266ad5)return _0x37c1a1(_0x266ad5[0x1]);const _0x438016=_0xdbdf3f[_0x1acc4f(0x1f3)](/\r?\n/)[_0x1acc4f(0x206)](_0x15dc5a=>_0x15dc5a[_0x1acc4f(0x207)](/^\s*\*\s?/,'')[_0x1acc4f(0x200)]()),_0x5c20e3=_0x438016[_0x1acc4f(0x1fd)](_0x25a70a=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x25a70a))&&_0x438016[_0x1acc4f(0x1fd)](_0x337454=>/^\[\s*脚本名称\s*]\s*\S+/[_0x1acc4f(0x1fe)](_0x337454));if(!_0x5c20e3)return undefined;for(const _0x1ed8ee of _0x438016){if(!_0x1ed8ee||_0x1ed8ee[_0x1acc4f(0x205)]('@')||/^\[[^\]]+]\s*/[_0x1acc4f(0x1fe)](_0x1ed8ee))continue;return _0x37c1a1(_0x1ed8ee);}return undefined;}export function isValidBffFunctionName(_0x2123d3){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x2123d3);}export function normalizeHookFunctionNode(_0x9e21cf){const _0x19af06=a278_0x31bc56;if(!_0x9e21cf)return undefined;const _0x1c542a=_0x9e21cf[_0x19af06(0x200)]()[_0x19af06(0x1fc)]();if(_0x1c542a===_0x19af06(0x1ee)||_0x1c542a===_0x19af06(0x1fa))return _0x1c542a;return undefined;}function a278_0x53ac(){const _0x5026d9=['trim','21qNONyB','functionNode','1tKbkUg','TODO:\x20补充脚本功能描述','startsWith','map','replace','before','61600bchlbK','3404061yaDUDp','match','19239630cGKtHr','split','223716lMyrbh','188770gwlcaP','operationType','144GJeVqv','toUpperCase','datasetCode','after','3446292caoxRT','toLowerCase','some','test','946110nXJwgV'];a278_0x53ac=function(){return _0x5026d9;};return a278_0x53ac();}
1
+ const a278_0x2b75e9=a278_0x4f58;(function(_0x31e6ad,_0x48aafa){const _0x115ace=a278_0x4f58,_0x46a9d8=_0x31e6ad();while(!![]){try{const _0x5c7870=-parseInt(_0x115ace(0x85))/0x1+-parseInt(_0x115ace(0x80))/0x2+-parseInt(_0x115ace(0x8b))/0x3+-parseInt(_0x115ace(0x8d))/0x4+-parseInt(_0x115ace(0x87))/0x5*(-parseInt(_0x115ace(0x98))/0x6)+-parseInt(_0x115ace(0x82))/0x7*(parseInt(_0x115ace(0x8e))/0x8)+parseInt(_0x115ace(0x7f))/0x9*(parseInt(_0x115ace(0x94))/0xa);if(_0x5c7870===_0x48aafa)break;else _0x46a9d8['push'](_0x46a9d8['shift']());}catch(_0x417a9e){_0x46a9d8['push'](_0x46a9d8['shift']());}}}(a278_0x1d90,0xefa97));export const DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20补充脚本功能描述';function a278_0x4f58(_0x1f0780,_0xeb5cdd){_0x1f0780=_0x1f0780-0x7f;const _0x1d9086=a278_0x1d90();let _0x4f58e8=_0x1d9086[_0x1f0780];return _0x4f58e8;}const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a278_0x2b75e9(0x86);export function snakeToCamel(_0x3ed616){const _0x5df705=a278_0x2b75e9;return _0x3ed616[_0x5df705(0x8f)]()['replace'](/_([a-z])/g,(_0x337121,_0xac0917)=>_0xac0917['toUpperCase']());}export function findHookLocationByRemoteId(_0x18845a,_0x567ff5){const _0x3e62e4=a278_0x2b75e9;if(!_0x567ff5)return undefined;for(const [_0x4eb341,_0x55c084]of Object[_0x3e62e4(0x8c)](_0x18845a)){if(_0x55c084[_0x3e62e4(0x88)]===_0x567ff5&&_0x55c084[_0x3e62e4(0x8a)]&&_0x55c084['operationType']&&_0x55c084[_0x3e62e4(0x96)]){const _0x4f3aab=_0x4eb341[_0x3e62e4(0x92)]('/')[0x1];return{'alias':_0x4f3aab||_0x55c084['alias'],'datasetCode':_0x55c084[_0x3e62e4(0x8a)],'operationType':_0x55c084[_0x3e62e4(0x89)],'functionNode':_0x55c084[_0x3e62e4(0x96)]};}}return undefined;}function a278_0x1d90(){const _0x8ce415=['1542454yNASEJ','TODO:\x20add\x20script\x20description','1103555RJgXPF','remoteId','operationType','datasetCode','2244051YyfFVI','entries','3426496VNJCWo','1375768vJNzeF','toLowerCase','before','after','split','match','20644620LlLFbp','startsWith','functionNode','trim','6gkleZv','27nCdova','2850984XFuCKS','test','35IzjesI','map','some'];a278_0x1d90=function(){return _0x8ce415;};return a278_0x1d90();}export function extractScriptDescription(_0x5d276d){const _0x51a8b1=a278_0x2b75e9,_0x31641d=_0x5d276d[_0x51a8b1(0x93)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x31641d?.[0x1])return undefined;const _0x20d8fe=_0x31641d[0x1],_0x29f25d=_0x5d90a5=>{const _0x222ee8=_0x5d90a5?.['trim']();if(!_0x222ee8||_0x222ee8===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x222ee8===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x222ee8;},_0x30c565=_0x20d8fe['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x30c565)return _0x29f25d(_0x30c565[0x1]);const _0x31615c=_0x20d8fe['split'](/\r?\n/)[_0x51a8b1(0x83)](_0x5efba2=>_0x5efba2['replace'](/^\s*\*\s?/,'')[_0x51a8b1(0x97)]()),_0x3dc1a5=_0x31615c[_0x51a8b1(0x84)](_0x28ce81=>/^\[\s*脚本类型\s*]\s*\S+/[_0x51a8b1(0x81)](_0x28ce81))&&_0x31615c[_0x51a8b1(0x84)](_0x462a33=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x462a33));if(!_0x3dc1a5)return undefined;for(const _0x1f73f7 of _0x31615c){if(!_0x1f73f7||_0x1f73f7[_0x51a8b1(0x95)]('@')||/^\[[^\]]+]\s*/[_0x51a8b1(0x81)](_0x1f73f7))continue;return _0x29f25d(_0x1f73f7);}return undefined;}export function isValidBffFunctionName(_0x517817){const _0x3a4ce3=a278_0x2b75e9;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3a4ce3(0x81)](_0x517817);}export function normalizeHookFunctionNode(_0x45719c){const _0x4457fb=a278_0x2b75e9;if(!_0x45719c)return undefined;const _0x5789f4=_0x45719c[_0x4457fb(0x97)]()[_0x4457fb(0x8f)]();if(_0x5789f4===_0x4457fb(0x90)||_0x5789f4===_0x4457fb(0x91))return _0x5789f4;return undefined;}
@@ -1 +1 @@
1
- const a279_0x1985f8=a279_0x28c6;(function(_0x2c803d,_0x14e0cc){const _0x14c3d0=a279_0x28c6,_0x3e6c6d=_0x2c803d();while(!![]){try{const _0x19f34d=-parseInt(_0x14c3d0(0x122))/0x1+parseInt(_0x14c3d0(0x124))/0x2+parseInt(_0x14c3d0(0x123))/0x3+parseInt(_0x14c3d0(0x118))/0x4*(-parseInt(_0x14c3d0(0x11f))/0x5)+-parseInt(_0x14c3d0(0x121))/0x6*(parseInt(_0x14c3d0(0x119))/0x7)+-parseInt(_0x14c3d0(0x11a))/0x8*(-parseInt(_0x14c3d0(0x11c))/0x9)+-parseInt(_0x14c3d0(0x11b))/0xa;if(_0x19f34d===_0x14e0cc)break;else _0x3e6c6d['push'](_0x3e6c6d['shift']());}catch(_0x54cc2c){_0x3e6c6d['push'](_0x3e6c6d['shift']());}}}(a279_0x2e13,0xbe217));function a279_0x28c6(_0x4aff6d,_0x2444d8){_0x4aff6d=_0x4aff6d-0x118;const _0x2e130f=a279_0x2e13();let _0x28c647=_0x2e130f[_0x4aff6d];return _0x28c647;}function a279_0x2e13(){const _0x1d2857=['/smartapi/cross-db-relation/create','/smartapi/cross-db-relation/query','43205NCEeCI','/smartapi/cross-db-relation/delete','1129932bgpDfZ','218636DyQvjO','4656996DcKZTf','1575294OKsKBO','700yNFuYm','7kizDBx','3558520OIeiaP','868860WkJIeS','9jiIncQ'];a279_0x2e13=function(){return _0x1d2857;};return a279_0x2e13();}export const CROSS_DB_RELATION_PATHS={'list':a279_0x1985f8(0x11e),'create':a279_0x1985f8(0x11d),'update':'/smartapi/cross-db-relation/update','delete':a279_0x1985f8(0x120)};
1
+ function a279_0xabc2(_0x5d532b,_0x5650c3){_0x5d532b=_0x5d532b-0x15c;const _0xfb3a68=a279_0xfb3a();let _0xabc24=_0xfb3a68[_0x5d532b];return _0xabc24;}const a279_0x4b4867=a279_0xabc2;(function(_0x3f9ebc,_0xa1109c){const _0x3a0d6a=a279_0xabc2,_0x5ef314=_0x3f9ebc();while(!![]){try{const _0x44b99c=-parseInt(_0x3a0d6a(0x168))/0x1*(parseInt(_0x3a0d6a(0x15e))/0x2)+parseInt(_0x3a0d6a(0x15d))/0x3*(-parseInt(_0x3a0d6a(0x166))/0x4)+parseInt(_0x3a0d6a(0x160))/0x5+parseInt(_0x3a0d6a(0x164))/0x6*(parseInt(_0x3a0d6a(0x15f))/0x7)+-parseInt(_0x3a0d6a(0x15c))/0x8+-parseInt(_0x3a0d6a(0x165))/0x9+-parseInt(_0x3a0d6a(0x163))/0xa*(-parseInt(_0x3a0d6a(0x162))/0xb);if(_0x44b99c===_0xa1109c)break;else _0x5ef314['push'](_0x5ef314['shift']());}catch(_0x562a68){_0x5ef314['push'](_0x5ef314['shift']());}}}(a279_0xfb3a,0xe549c));export const CROSS_DB_RELATION_PATHS={'list':a279_0x4b4867(0x167),'create':a279_0x4b4867(0x161),'update':'/smartapi/cross-db-relation/update','delete':'/smartapi/cross-db-relation/delete'};function a279_0xfb3a(){const _0x38894f=['4764044ZSNpoK','/smartapi/cross-db-relation/query','2161JTTCmc','6692232xZuutF','3QPBGQT','1120psQAPf','784iMsuaf','2501405BpBSGt','/smartapi/cross-db-relation/create','1111lFbNsd','408040bCKTOQ','25728tnqhcJ','8323893zChofw'];a279_0xfb3a=function(){return _0x38894f;};return a279_0xfb3a();}
@@ -1 +1 @@
1
- (function(_0x3dbf68,_0xe2bbdb){const _0x5298c2=a280_0x284a,_0x28c54c=_0x3dbf68();while(!![]){try{const _0x4143dd=parseInt(_0x5298c2(0x17c))/0x1+parseInt(_0x5298c2(0x17f))/0x2+-parseInt(_0x5298c2(0x185))/0x3*(-parseInt(_0x5298c2(0x192))/0x4)+parseInt(_0x5298c2(0x188))/0x5+-parseInt(_0x5298c2(0x18f))/0x6*(parseInt(_0x5298c2(0x18c))/0x7)+parseInt(_0x5298c2(0x19a))/0x8*(-parseInt(_0x5298c2(0x18e))/0x9)+parseInt(_0x5298c2(0x196))/0xa*(-parseInt(_0x5298c2(0x18b))/0xb);if(_0x4143dd===_0xe2bbdb)break;else _0x28c54c['push'](_0x28c54c['shift']());}catch(_0x58f72a){_0x28c54c['push'](_0x28c54c['shift']());}}}(a280_0x3aa1,0xb6286));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x437bc7){const _0x548492=a280_0x284a;if(cache[_0x548492(0x199)](_0x437bc7))return cache[_0x548492(0x191)](_0x437bc7);const _0x245ec1=await listDatasets(_0x437bc7),_0x44fda6=new Map();for(const _0x4ec45a of _0x245ec1){const _0x83683b=_0x4ec45a[_0x548492(0x193)];_0x83683b?.[_0x548492(0x187)]!=null&&_0x44fda6[_0x548492(0x18d)](_0x83683b[_0x548492(0x187)],_0x83683b[_0x548492(0x17d)]??'db-'+_0x83683b[_0x548492(0x187)]);}const _0x56d32f=[..._0x44fda6[_0x548492(0x186)]()][_0x548492(0x18a)](([_0x3408a2,_0x8fa5a5])=>({'dbId':_0x3408a2,'dbName':_0x8fa5a5}));return cache[_0x548492(0x18d)](_0x437bc7,_0x56d32f),_0x56d32f;}function a280_0x284a(_0x1c1cfa,_0x4f21bb){_0x1c1cfa=_0x1c1cfa-0x17b;const _0x3aa1e6=a280_0x3aa1();let _0x284a90=_0x3aa1e6[_0x1c1cfa];return _0x284a90;}function a280_0x3aa1(){const _0x5d47e4=['2472200Esmblf','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','filter','.\x20Be\x20more\x20specific.','213BTOSIG','entries','dbId','2697910NccgBO','\x22.\x20Available:\x20','map','23496lLWjsa','35NbVRWX','set','3033423YiTEti','1308066QfEuUB','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','get','63416weBmus','dbtableConfig','length','join','2450twDMwo','\x22\x20matches\x20multiple\x20databases:\x20','find','has','32frdxIM','isNaN','806365sgwedT','dbName','includes'];a280_0x3aa1=function(){return _0x5d47e4;};return a280_0x3aa1();}export async function resolveDb(_0xdd9a65,_0x6532fc){const _0x1192a6=a280_0x284a,_0x4c2bd1=await listDatabases(_0xdd9a65);if(_0x4c2bd1['length']===0x0)return{'resolved':[],'error':_0x1192a6(0x182)+_0xdd9a65+_0x1192a6(0x181)};if(!_0x6532fc)return{'resolved':_0x4c2bd1};const _0x555890=Number(_0x6532fc);if(!Number[_0x1192a6(0x17b)](_0x555890)){const _0x2a6906=_0x4c2bd1[_0x1192a6(0x198)](_0x310e17=>_0x310e17[_0x1192a6(0x187)]===_0x555890);if(_0x2a6906)return{'resolved':[_0x2a6906]};}const _0x55cccd=_0x6532fc['toLowerCase'](),_0x5eaa20=_0x4c2bd1[_0x1192a6(0x183)](_0x2b1375=>_0x2b1375[_0x1192a6(0x17d)]['toLowerCase']()[_0x1192a6(0x17e)](_0x55cccd));if(_0x5eaa20[_0x1192a6(0x194)]>0x0)return{'resolved':_0x5eaa20};const _0x31d810=_0x4c2bd1[_0x1192a6(0x18a)](_0x57cb24=>_0x57cb24['dbName']+'\x20('+_0x57cb24['dbId']+')')[_0x1192a6(0x195)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x6532fc+'\x22\x20under\x20app\x20\x22'+_0xdd9a65+_0x1192a6(0x189)+_0x31d810+_0x1192a6(0x180)};}export async function resolveOneDb(_0x18d392,_0x393524){const _0x4337ed=a280_0x284a,{resolved:_0x484054,error:_0x8d651}=await resolveDb(_0x18d392,_0x393524);if(_0x8d651)return{'db':null,'error':_0x8d651};if(_0x484054[_0x4337ed(0x194)]===0x1)return{'db':_0x484054[0x0]};if(!_0x393524){const _0xaa2ef8=_0x484054['map'](_0x36b888=>_0x36b888[_0x4337ed(0x17d)]+'\x20('+_0x36b888[_0x4337ed(0x187)]+')')[_0x4337ed(0x195)](',\x20');return{'db':null,'error':_0x4337ed(0x190)+_0xaa2ef8};}const _0x35be07=_0x484054[_0x4337ed(0x18a)](_0x4374f5=>_0x4374f5[_0x4337ed(0x17d)]+'\x20('+_0x4374f5[_0x4337ed(0x187)]+')')[_0x4337ed(0x195)](',\x20');return{'db':null,'error':'\x22'+_0x393524+_0x4337ed(0x197)+_0x35be07+_0x4337ed(0x184)};}export async function getDbName(_0x5ba81b,_0x17b912){const _0x42405c=a280_0x284a,_0x1666e9=await listDatabases(_0x5ba81b);return _0x1666e9[_0x42405c(0x198)](_0x3f2b08=>_0x3f2b08[_0x42405c(0x187)]===_0x17b912)?.[_0x42405c(0x17d)];}
1
+ (function(_0xf52464,_0x3a04f7){const _0x23673a=a280_0x371d,_0x176761=_0xf52464();while(!![]){try{const _0x4b95dd=parseInt(_0x23673a(0x143))/0x1+parseInt(_0x23673a(0x152))/0x2+-parseInt(_0x23673a(0x156))/0x3+-parseInt(_0x23673a(0x15b))/0x4+-parseInt(_0x23673a(0x15f))/0x5*(parseInt(_0x23673a(0x15c))/0x6)+-parseInt(_0x23673a(0x149))/0x7+-parseInt(_0x23673a(0x150))/0x8*(-parseInt(_0x23673a(0x148))/0x9);if(_0x4b95dd===_0x3a04f7)break;else _0x176761['push'](_0x176761['shift']());}catch(_0x4eb00b){_0x176761['push'](_0x176761['shift']());}}}(a280_0x55c4,0x22f9c));import{listDatasets}from'../core/api-client.js';function a280_0x55c4(){const _0x87cb42=['db-','get','find','551772HfKJTF','filter','map','\x22.\x20Available:\x20','dbId','183336jowjnD','256458WgKrxp','includes','dbtableConfig','5SejeWv','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','108742zETdBq','join','.\x20Be\x20more\x20specific.','length','entries','63oQsEbU','628789zMmNOq','set','has','dbName','\x22\x20matches\x20multiple\x20databases:\x20','\x22\x20under\x20app\x20\x22','toLowerCase','275816vgEaTY','No\x20database\x20matching\x20\x22','311014DebpVb'];a280_0x55c4=function(){return _0x87cb42;};return a280_0x55c4();}const cache=new Map();export async function listDatabases(_0x3743bb){const _0x349bab=a280_0x371d;if(cache[_0x349bab(0x14b)](_0x3743bb))return cache[_0x349bab(0x154)](_0x3743bb);const _0x156291=await listDatasets(_0x3743bb),_0xc4482a=new Map();for(const _0x56ce03 of _0x156291){const _0x62da84=_0x56ce03[_0x349bab(0x15e)];_0x62da84?.['dbId']!=null&&_0xc4482a[_0x349bab(0x14a)](_0x62da84[_0x349bab(0x15a)],_0x62da84[_0x349bab(0x14c)]??_0x349bab(0x153)+_0x62da84[_0x349bab(0x15a)]);}const _0x242ece=[..._0xc4482a[_0x349bab(0x147)]()][_0x349bab(0x158)](([_0x5bb6a1,_0x41475c])=>({'dbId':_0x5bb6a1,'dbName':_0x41475c}));return cache['set'](_0x3743bb,_0x242ece),_0x242ece;}export async function resolveDb(_0x4cedb9,_0x4c9fd2){const _0x3a2b2d=a280_0x371d,_0x222864=await listDatabases(_0x4cedb9);if(_0x222864[_0x3a2b2d(0x146)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x4cedb9+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x4c9fd2)return{'resolved':_0x222864};const _0x4547fd=Number(_0x4c9fd2);if(!Number['isNaN'](_0x4547fd)){const _0x198a8b=_0x222864['find'](_0xfd1d9=>_0xfd1d9[_0x3a2b2d(0x15a)]===_0x4547fd);if(_0x198a8b)return{'resolved':[_0x198a8b]};}const _0x556886=_0x4c9fd2['toLowerCase'](),_0x557ed3=_0x222864[_0x3a2b2d(0x157)](_0xab3142=>_0xab3142[_0x3a2b2d(0x14c)][_0x3a2b2d(0x14f)]()[_0x3a2b2d(0x15d)](_0x556886));if(_0x557ed3['length']>0x0)return{'resolved':_0x557ed3};const _0x1f07bd=_0x222864[_0x3a2b2d(0x158)](_0xb05558=>_0xb05558['dbName']+'\x20('+_0xb05558['dbId']+')')[_0x3a2b2d(0x144)](',\x20');return{'resolved':[],'error':_0x3a2b2d(0x151)+_0x4c9fd2+_0x3a2b2d(0x14e)+_0x4cedb9+_0x3a2b2d(0x159)+_0x1f07bd+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x241fe0,_0x42d3e8){const _0x56e630=a280_0x371d,{resolved:_0x408006,error:_0x2ca84b}=await resolveDb(_0x241fe0,_0x42d3e8);if(_0x2ca84b)return{'db':null,'error':_0x2ca84b};if(_0x408006[_0x56e630(0x146)]===0x1)return{'db':_0x408006[0x0]};if(!_0x42d3e8){const _0x297403=_0x408006[_0x56e630(0x158)](_0x511493=>_0x511493[_0x56e630(0x14c)]+'\x20('+_0x511493[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':_0x56e630(0x160)+_0x297403};}const _0x50d8e0=_0x408006[_0x56e630(0x158)](_0x56e9c9=>_0x56e9c9[_0x56e630(0x14c)]+'\x20('+_0x56e9c9[_0x56e630(0x15a)]+')')[_0x56e630(0x144)](',\x20');return{'db':null,'error':'\x22'+_0x42d3e8+_0x56e630(0x14d)+_0x50d8e0+_0x56e630(0x145)};}function a280_0x371d(_0x359105,_0x195aec){_0x359105=_0x359105-0x143;const _0x55c45e=a280_0x55c4();let _0x371d12=_0x55c45e[_0x359105];return _0x371d12;}export async function getDbName(_0x2288f8,_0x1bf69a){const _0x16b773=a280_0x371d,_0x1e3c62=await listDatabases(_0x2288f8);return _0x1e3c62[_0x16b773(0x155)](_0x9889f2=>_0x9889f2['dbId']===_0x1bf69a)?.[_0x16b773(0x14c)];}
@@ -79,8 +79,8 @@ export interface FlowNode extends FlowJsonObject {
79
79
  id: string;
80
80
  type: FlowNodeType;
81
81
  name: string;
82
- /** Optional custom-page navigation target for this user task. */
83
- pageId?: number;
82
+ /** Optional custom-page navigation target for an APPROVAL or END node. */
83
+ path?: string;
84
84
  position: {
85
85
  x: number;
86
86
  y: number;
@@ -120,8 +120,8 @@ export interface FlowEdge extends FlowJsonObject {
120
120
  export interface FlowJson extends FlowJsonObject {
121
121
  /** Only applies to INDEPENDENT_FLOW; missing values default to CUSTOM_PAGE. */
122
122
  pageMode?: FlowPageMode;
123
- /** Optional custom-page navigation target used before starting a workflow. */
124
- startPageId?: number;
123
+ /** Optional custom-page navigation path used before starting a workflow. */
124
+ startPath?: string;
125
125
  nodes: FlowNode[];
126
126
  edges: FlowEdge[];
127
127
  }
@@ -221,9 +221,9 @@ export declare const FLOW_CONFIG_JSON_SCHEMA: {
221
221
  readonly type: "string";
222
222
  readonly minLength: 1;
223
223
  };
224
- readonly pageId: {
225
- readonly type: "integer";
226
- readonly minimum: 1;
224
+ readonly path: {
225
+ readonly type: "string";
226
+ readonly minLength: 1;
227
227
  };
228
228
  readonly position: {
229
229
  readonly $ref: "#/$defs/position";
@@ -560,9 +560,10 @@ export declare const FLOW_CONFIG_JSON_SCHEMA: {
560
560
  readonly pageMode: {
561
561
  readonly const: "CUSTOM_PAGE";
562
562
  };
563
- readonly startPageId: {
564
- readonly type: "integer";
565
- readonly minimum: 1;
563
+ readonly startPageId: false;
564
+ readonly startPath: {
565
+ readonly type: "string";
566
+ readonly minLength: 1;
566
567
  };
567
568
  readonly nodes: {
568
569
  readonly type: "array";