@lovrabet/rabetbase-cli 2.5.5-beta.1 → 2.5.5-beta.3

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 (367) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  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.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +13 -9
  363. package/skills/rabetbase-page-generation/references/component-baseline.md +2 -2
  364. package/skills/rabetbase-page-generation/references/generation.md +64 -15
  365. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +39 -54
  366. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +6 -2
  367. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a279_0x595c4e=a279_0x1de3;(function(_0x1c6677,_0x10f592){const _0xbd74f9=a279_0x1de3,_0x1db897=_0x1c6677();while(!![]){try{const _0x21cbde=-parseInt(_0xbd74f9(0xa9))/0x1+parseInt(_0xbd74f9(0xbf))/0x2+-parseInt(_0xbd74f9(0xba))/0x3+parseInt(_0xbd74f9(0xcc))/0x4*(parseInt(_0xbd74f9(0xb5))/0x5)+-parseInt(_0xbd74f9(0xaf))/0x6+parseInt(_0xbd74f9(0xc5))/0x7+parseInt(_0xbd74f9(0xca))/0x8;if(_0x21cbde===_0x10f592)break;else _0x1db897['push'](_0x1db897['shift']());}catch(_0x3ce17c){_0x1db897['push'](_0x1db897['shift']());}}}(a279_0x4e80,0xe1896));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join,resolve,sep}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=['COMMON',a279_0x595c4e(0xbb),a279_0x595c4e(0xc6)];export function normalizeBffType(_0x5c9077){const _0x277b50=a279_0x595c4e;if(!_0x5c9077)return undefined;const _0x568cf5=_0x5c9077[_0x277b50(0xc4)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x277b50(0xb0)](_0x568cf5)?_0x568cf5:undefined;}async function scanJsFilesRecursively(_0x5bfbb4,_0x8c05f5){const _0x52ff97=a279_0x595c4e,_0x242499=[];try{const _0x34db51=await readdir(_0x5bfbb4,{'withFileTypes':!![]});for(const _0x218cf2 of _0x34db51){const _0x299c51=join(_0x5bfbb4,_0x218cf2[_0x52ff97(0xb7)]);if(_0x218cf2[_0x52ff97(0xc8)]())_0x242499[_0x52ff97(0xb1)](...await scanJsFilesRecursively(_0x299c51,_0x8c05f5+'/'+_0x218cf2['name']));else _0x218cf2[_0x52ff97(0xb9)]()&&_0x218cf2['name'][_0x52ff97(0xaa)](_0x52ff97(0xc0))&&_0x242499[_0x52ff97(0xb1)]({'lockKey':_0x8c05f5+'/'+_0x218cf2['name']['replace'](/\.js$/,''),'filePath':_0x299c51});}}catch(_0x9492df){if(_0x9492df[_0x52ff97(0xac)]!==_0x52ff97(0xc2))throw _0x9492df;}return _0x242499;}async function scanFlatFunctions(_0x212da2,_0x54bd8d){const _0x26d0dd=a279_0x595c4e,_0x14d757=join(_0x212da2['scriptsRootDir'],_0x54bd8d),_0x41e173=await scanJsFilesRecursively(_0x14d757,_0x54bd8d);return _0x41e173[_0x26d0dd(0xb6)](({lockKey:_0x45502e,filePath:_0x41a565})=>({'type':_0x54bd8d,'name':_0x45502e[_0x26d0dd(0xbc)]('/')['at'](-0x1)??'','filePath':_0x41a565,'lockKey':_0x45502e}));}async function scanHookFunctions(_0x5cf07b){const _0x1afb03=a279_0x595c4e,_0x5f0bc5=join(_0x5cf07b[_0x1afb03(0xbe)],_0x1afb03(0xc6)),_0x3e5a37=[];try{const _0x212096=await readdir(_0x5f0bc5,{'withFileTypes':!![]});for(const _0xce7bb9 of _0x212096){if(!_0xce7bb9[_0x1afb03(0xc8)]())continue;const _0x61144f=_0xce7bb9[_0x1afb03(0xb7)],_0xce186a=join(_0x5f0bc5,_0x61144f),_0x231a74=await readdir(_0xce186a,{'withFileTypes':!![]});for(const _0x3721a9 of _0x231a74){if(!_0x3721a9['isDirectory']())continue;const _0x59bb03=_0x3721a9[_0x1afb03(0xb7)],_0x36e1c2=join(_0xce186a,_0x59bb03),_0x1ba477=await readdir(_0x36e1c2,{'withFileTypes':!![]});for(const _0x2a05f1 of _0x1ba477){if(!_0x2a05f1[_0x1afb03(0xc8)]())continue;const _0x2547bb=_0x2a05f1['name'],_0x2c1850=join(_0x36e1c2,_0x2547bb),_0x13e034=await readdir(_0x2c1850,{'withFileTypes':!![]});for(const _0x2f79eb of _0x13e034){if(!_0x2f79eb[_0x1afb03(0xb9)]()||!_0x2f79eb[_0x1afb03(0xb7)][_0x1afb03(0xaa)](_0x1afb03(0xc0)))continue;const _0x153a47=_0x2f79eb['name'][_0x1afb03(0xc7)](/\.js$/,'');_0x3e5a37[_0x1afb03(0xb1)]({'type':'HOOK','name':_0x153a47,'filePath':join(_0x2c1850,_0x2f79eb[_0x1afb03(0xb7)]),'lockKey':_0x1afb03(0xab)+_0x61144f+'/'+_0x59bb03+'/'+_0x2547bb+'/'+_0x153a47,'alias':_0x61144f,'operationType':_0x59bb03,'functionNode':_0x2547bb});}}}}}catch(_0xc4f527){if(_0xc4f527[_0x1afb03(0xac)]!=='ENOENT')throw _0xc4f527;}return _0x3e5a37;}function a279_0x1de3(_0x1b1c1d,_0x24738a){_0x1b1c1d=_0x1b1c1d-0xa7;const _0x4e800c=a279_0x4e80();let _0x1de312=_0x4e800c[_0x1b1c1d];return _0x1de312;}export async function scanLocalBffFunctions(_0x37b5f6,_0x59f54c){const _0x264e3e=a279_0x595c4e;if(_0x59f54c===_0x264e3e(0xcd)||_0x59f54c===_0x264e3e(0xbb))return scanFlatFunctions(_0x37b5f6,_0x59f54c);if(_0x59f54c===_0x264e3e(0xc6))return scanHookFunctions(_0x37b5f6);const [_0x456f53,_0x4e6d05,_0x4557f1]=await Promise[_0x264e3e(0xb8)]([scanFlatFunctions(_0x37b5f6,_0x264e3e(0xcd)),scanFlatFunctions(_0x37b5f6,_0x264e3e(0xbb)),scanHookFunctions(_0x37b5f6)]);return[..._0x456f53,..._0x4e6d05,..._0x4557f1];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x41c44c){return SAFE_LOCK_KEY_SEGMENT['test'](_0x41c44c)&&_0x41c44c!=='.'&&_0x41c44c!=='..';}export function resolveLocalFilePathFromLockKey(_0x28cfab,_0x2b9449){const _0x57005d=a279_0x595c4e,_0x3596d1=_0x2b9449[_0x57005d(0xbc)]('/');if(!_0x3596d1[_0x57005d(0xae)](isSafeLockKeySegment))throw new Error('Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20'+_0x2b9449);const _0x1983b2=resolve(join(_0x28cfab['scriptsRootDir'],..._0x3596d1)+'.js'),_0x29e4ad=resolve(_0x28cfab['scriptsRootDir']);if(_0x1983b2!==_0x29e4ad&&!_0x1983b2[_0x57005d(0xbd)](_0x29e4ad+sep))throw new Error(_0x57005d(0xa8)+_0x1983b2);return _0x1983b2;}export function createHookLocationMap(_0x33dfb4){const _0x3dfa21=a279_0x595c4e,_0x4615f3=new Map();for(const _0x4282da of _0x33dfb4){_0x4282da[_0x3dfa21(0xc1)]&&_0x4615f3[_0x3dfa21(0xad)](_0x4282da[_0x3dfa21(0xc1)],{'datasetCode':_0x4282da['datasetCode'],'operationType':snakeToCamel(_0x4282da[_0x3dfa21(0xce)]),'functionNode':_0x3dfa21(0xa7)}),_0x4282da['afterScriptId']&&_0x4615f3[_0x3dfa21(0xad)](_0x4282da['afterScriptId'],{'datasetCode':_0x4282da[_0x3dfa21(0xb4)],'operationType':snakeToCamel(_0x4282da[_0x3dfa21(0xce)]),'functionNode':_0x3dfa21(0xc3)});}return _0x4615f3;}export function resolveRemoteScriptTarget(_0x41d707,_0x14d7d1,_0x405997,_0x5e813c,_0x3bcf51){const _0xb168c2=a279_0x595c4e,_0x17cf16=normalizeBffType(_0x14d7d1[_0xb168c2(0xc9)]);if(!_0x17cf16||!_0x14d7d1[_0xb168c2(0xb2)])return null;if(_0x17cf16===_0xb168c2(0xc6)){const _0x1517e5=_0x14d7d1['id']?_0x405997[_0xb168c2(0xb3)](_0x14d7d1['id']):undefined,_0x4a1f74=findHookLocationByRemoteId(_0x5e813c,_0x14d7d1['id']),_0x57ee5a=_0x1517e5?{..._0x4a1f74?.['datasetCode']===_0x1517e5[_0xb168c2(0xb4)]?_0x4a1f74:{},..._0x1517e5}:_0x4a1f74;if(!_0x57ee5a)return null;const _0x5766a3=_0x3bcf51[_0xb168c2(0xb3)](_0x57ee5a['datasetCode'][_0xb168c2(0xcb)]()),_0x339512=_0x5766a3??_0x57ee5a[_0xb168c2(0xb4)],_0x5d66ac={..._0x57ee5a,'alias':_0x5766a3},_0x20da02=_0xb168c2(0xab)+_0x339512+'/'+_0x5d66ac[_0xb168c2(0xce)]+'/'+_0x5d66ac['functionNode']+'/'+_0x14d7d1[_0xb168c2(0xb2)];if(!_0x20da02[_0xb168c2(0xbc)]('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0x20da02,'filePath':resolveLocalFilePathFromLockKey(_0x41d707,_0x20da02),'type':'HOOK','hookLocation':_0x5d66ac};}const _0x483d5b=_0x17cf16+'/'+_0x14d7d1[_0xb168c2(0xb2)];if(!_0x483d5b[_0xb168c2(0xbc)]('/')[_0xb168c2(0xae)](isSafeLockKeySegment))return null;return{'lockKey':_0x483d5b,'filePath':resolveLocalFilePathFromLockKey(_0x41d707,_0x483d5b),'type':_0x17cf16};}export async function ensureParentDirectory(_0xf2fafd){await mkdir(dirname(_0xf2fafd),{'recursive':!![]});}export async function fileExists(_0x403733){try{return await access(_0x403733,constants['F_OK']),!![];}catch{return![];}}function a279_0x4e80(){const _0x44d76c=['ENOENT','after','trim','1043231GBfGoX','HOOK','replace','isDirectory','scriptType','23699976kacpMO','toLowerCase','1755788WJISwd','COMMON','operationType','before','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','99325ZSrdnU','endsWith','HOOK/','code','set','every','8334384hJSSWW','includes','push','functionName','get','datasetCode','5mGYWcp','map','name','all','isFile','5176896ghjUxA','ENDPOINT','split','startsWith','scriptsRootDir','1174684oxmqED','.js','beforeScriptId'];a279_0x4e80=function(){return _0x44d76c;};return a279_0x4e80();}export async function directoryExists(_0x57c4b0){const _0x35c1fc=a279_0x595c4e;try{const _0x2dfccb=await stat(_0x57c4b0);return _0x2dfccb[_0x35c1fc(0xc8)]();}catch{return![];}}
1
+ const a279_0x56c5ca=a279_0x87ae;(function(_0x2a521a,_0x543f71){const _0x135f69=a279_0x87ae,_0x3d74da=_0x2a521a();while(!![]){try{const _0x15a206=parseInt(_0x135f69(0x113))/0x1*(parseInt(_0x135f69(0xfe))/0x2)+parseInt(_0x135f69(0xf8))/0x3+parseInt(_0x135f69(0x108))/0x4*(-parseInt(_0x135f69(0x11a))/0x5)+parseInt(_0x135f69(0x104))/0x6+parseInt(_0x135f69(0xf1))/0x7+-parseInt(_0x135f69(0xf5))/0x8*(parseInt(_0x135f69(0xf0))/0x9)+parseInt(_0x135f69(0xf6))/0xa*(-parseInt(_0x135f69(0xf7))/0xb);if(_0x15a206===_0x543f71)break;else _0x3d74da['push'](_0x3d74da['shift']());}catch(_0x1aef76){_0x3d74da['push'](_0x3d74da['shift']());}}}(a279_0x2bfc,0x90037));function a279_0x2bfc(){const _0x4e4810=['startsWith','get','push','ENOENT','5NtDULS','HOOK/','every','split','99ShDVcQ','5603185MLXwDo','includes','HOOK','set','469016qSGyjA','60tVKEuB','2098921TmBKjw','854787WAASmk','name','toLowerCase','.js','isFile','datasetCode','2062810kgFzxS','afterScriptId','operationType','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','functionName','toUpperCase','2500206AkXhcg','beforeScriptId','isDirectory','test','615392KDmsaQ','trim','replace','scriptsRootDir','ENDPOINT','scriptType','after','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','COMMON','before','code','1FdEONj','map','all'];a279_0x2bfc=function(){return _0x4e4810;};return a279_0x2bfc();}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=[a279_0x56c5ca(0x110),a279_0x56c5ca(0x10c),a279_0x56c5ca(0xf3)];export function normalizeBffType(_0x162729){const _0xaba6e8=a279_0x56c5ca;if(!_0x162729)return undefined;const _0x5261b3=_0x162729[_0xaba6e8(0x109)]()[_0xaba6e8(0x103)]();return SUPPORTED_BFF_TYPES[_0xaba6e8(0xf2)](_0x5261b3)?_0x5261b3:undefined;}async function scanJsFilesRecursively(_0x22014c,_0x592d72){const _0x4e77c1=a279_0x56c5ca,_0x513dcd=[];try{const _0x34b319=await readdir(_0x22014c,{'withFileTypes':!![]});for(const _0x46b70b of _0x34b319){const _0x49e243=join(_0x22014c,_0x46b70b[_0x4e77c1(0xf9)]);if(_0x46b70b[_0x4e77c1(0x106)]())_0x513dcd[_0x4e77c1(0x118)](...await scanJsFilesRecursively(_0x49e243,_0x592d72+'/'+_0x46b70b[_0x4e77c1(0xf9)]));else _0x46b70b[_0x4e77c1(0xfc)]()&&_0x46b70b['name']['endsWith']('.js')&&_0x513dcd['push']({'lockKey':_0x592d72+'/'+_0x46b70b['name'][_0x4e77c1(0x10a)](/\.js$/,''),'filePath':_0x49e243});}}catch(_0x3d5bbe){if(_0x3d5bbe[_0x4e77c1(0x112)]!=='ENOENT')throw _0x3d5bbe;}return _0x513dcd;}async function scanFlatFunctions(_0x535e97,_0x1b9f6a){const _0x30826f=a279_0x56c5ca,_0x16c3ed=join(_0x535e97['scriptsRootDir'],_0x1b9f6a),_0x532ada=await scanJsFilesRecursively(_0x16c3ed,_0x1b9f6a);return _0x532ada[_0x30826f(0x114)](({lockKey:_0x14c475,filePath:_0x49ab46})=>({'type':_0x1b9f6a,'name':_0x14c475[_0x30826f(0xef)]('/')['at'](-0x1)??'','filePath':_0x49ab46,'lockKey':_0x14c475}));}async function scanHookFunctions(_0x4c862d){const _0x17d77f=a279_0x56c5ca,_0x1895f2=join(_0x4c862d[_0x17d77f(0x10b)],_0x17d77f(0xf3)),_0x2eae27=[];try{const _0x161617=await readdir(_0x1895f2,{'withFileTypes':!![]});for(const _0x1bf0f5 of _0x161617){if(!_0x1bf0f5[_0x17d77f(0x106)]())continue;const _0x58b871=_0x1bf0f5[_0x17d77f(0xf9)],_0x181907=join(_0x1895f2,_0x58b871),_0x51d58f=await readdir(_0x181907,{'withFileTypes':!![]});for(const _0x3208c7 of _0x51d58f){if(!_0x3208c7[_0x17d77f(0x106)]())continue;const _0x3dce4f=_0x3208c7[_0x17d77f(0xf9)],_0x5946a2=join(_0x181907,_0x3dce4f),_0x1682a6=await readdir(_0x5946a2,{'withFileTypes':!![]});for(const _0x93d7b3 of _0x1682a6){if(!_0x93d7b3[_0x17d77f(0x106)]())continue;const _0x5245ff=_0x93d7b3['name'],_0x1a51b4=join(_0x5946a2,_0x5245ff),_0x101452=await readdir(_0x1a51b4,{'withFileTypes':!![]});for(const _0x5b2d6f of _0x101452){if(!_0x5b2d6f[_0x17d77f(0xfc)]()||!_0x5b2d6f['name']['endsWith'](_0x17d77f(0xfb)))continue;const _0x45725a=_0x5b2d6f['name'][_0x17d77f(0x10a)](/\.js$/,'');_0x2eae27['push']({'type':_0x17d77f(0xf3),'name':_0x45725a,'filePath':join(_0x1a51b4,_0x5b2d6f[_0x17d77f(0xf9)]),'lockKey':_0x17d77f(0x11b)+_0x58b871+'/'+_0x3dce4f+'/'+_0x5245ff+'/'+_0x45725a,'alias':_0x58b871,'operationType':_0x3dce4f,'functionNode':_0x5245ff});}}}}}catch(_0x3469fe){if(_0x3469fe[_0x17d77f(0x112)]!==_0x17d77f(0x119))throw _0x3469fe;}return _0x2eae27;}export async function scanLocalBffFunctions(_0x481ed9,_0x5c9a59){const _0x4d1fa9=a279_0x56c5ca;if(_0x5c9a59===_0x4d1fa9(0x110)||_0x5c9a59===_0x4d1fa9(0x10c))return scanFlatFunctions(_0x481ed9,_0x5c9a59);if(_0x5c9a59===_0x4d1fa9(0xf3))return scanHookFunctions(_0x481ed9);const [_0x5a1fe9,_0x1a3162,_0x5e0da8]=await Promise[_0x4d1fa9(0x115)]([scanFlatFunctions(_0x481ed9,'COMMON'),scanFlatFunctions(_0x481ed9,_0x4d1fa9(0x10c)),scanHookFunctions(_0x481ed9)]);return[..._0x5a1fe9,..._0x1a3162,..._0x5e0da8];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x53c1fc){const _0x22d6c7=a279_0x56c5ca;return SAFE_LOCK_KEY_SEGMENT[_0x22d6c7(0x107)](_0x53c1fc)&&_0x53c1fc!=='.'&&_0x53c1fc!=='..';}export function resolveLocalFilePathFromLockKey(_0x11da86,_0x278de5){const _0x3bff71=a279_0x56c5ca,_0xb9a46=_0x278de5[_0x3bff71(0xef)]('/');if(!_0xb9a46[_0x3bff71(0xee)](isSafeLockKeySegment))throw new Error(_0x3bff71(0x10f)+_0x278de5);const _0x33c043=resolve(join(_0x11da86['scriptsRootDir'],..._0xb9a46)+_0x3bff71(0xfb)),_0x60f640=resolve(_0x11da86[_0x3bff71(0x10b)]);if(_0x33c043!==_0x60f640&&!_0x33c043[_0x3bff71(0x116)](_0x60f640+sep))throw new Error(_0x3bff71(0x101)+_0x33c043);return _0x33c043;}export function createHookLocationMap(_0x44f037){const _0x237b15=a279_0x56c5ca,_0x48b697=new Map();for(const _0x68fa4a of _0x44f037){_0x68fa4a['beforeScriptId']&&_0x48b697['set'](_0x68fa4a[_0x237b15(0x105)],{'datasetCode':_0x68fa4a['datasetCode'],'operationType':snakeToCamel(_0x68fa4a[_0x237b15(0x100)]),'functionNode':_0x237b15(0x111)}),_0x68fa4a['afterScriptId']&&_0x48b697[_0x237b15(0xf4)](_0x68fa4a[_0x237b15(0xff)],{'datasetCode':_0x68fa4a['datasetCode'],'operationType':snakeToCamel(_0x68fa4a[_0x237b15(0x100)]),'functionNode':_0x237b15(0x10e)});}return _0x48b697;}export function resolveRemoteScriptTarget(_0x438c2b,_0xd94528,_0x1b0a59,_0x28cd62,_0x47eb11){const _0x515485=a279_0x56c5ca,_0xa8b931=normalizeBffType(_0xd94528[_0x515485(0x10d)]);if(!_0xa8b931||!_0xd94528[_0x515485(0x102)])return null;if(_0xa8b931===_0x515485(0xf3)){const _0x1a0983=_0xd94528['id']?_0x1b0a59[_0x515485(0x117)](_0xd94528['id']):undefined,_0x1f3224=findHookLocationByRemoteId(_0x28cd62,_0xd94528['id']),_0x626a5=_0x1a0983?{..._0x1f3224?.[_0x515485(0xfd)]===_0x1a0983[_0x515485(0xfd)]?_0x1f3224:{},..._0x1a0983}:_0x1f3224;if(!_0x626a5)return null;const _0x588566=_0x47eb11['get'](_0x626a5[_0x515485(0xfd)][_0x515485(0xfa)]()),_0x37fe59=_0x588566??_0x626a5[_0x515485(0xfd)],_0x4b34e7={..._0x626a5,'alias':_0x588566},_0x536a31=_0x515485(0x11b)+_0x37fe59+'/'+_0x4b34e7[_0x515485(0x100)]+'/'+_0x4b34e7['functionNode']+'/'+_0xd94528[_0x515485(0x102)];if(!_0x536a31[_0x515485(0xef)]('/')[_0x515485(0xee)](isSafeLockKeySegment))return null;return{'lockKey':_0x536a31,'filePath':resolveLocalFilePathFromLockKey(_0x438c2b,_0x536a31),'type':'HOOK','hookLocation':_0x4b34e7};}const _0x388aae=_0xa8b931+'/'+_0xd94528['functionName'];if(!_0x388aae[_0x515485(0xef)]('/')[_0x515485(0xee)](isSafeLockKeySegment))return null;return{'lockKey':_0x388aae,'filePath':resolveLocalFilePathFromLockKey(_0x438c2b,_0x388aae),'type':_0xa8b931};}function a279_0x87ae(_0x20f4eb,_0x162abd){_0x20f4eb=_0x20f4eb-0xee;const _0x2bfc7f=a279_0x2bfc();let _0x87ae73=_0x2bfc7f[_0x20f4eb];return _0x87ae73;}export async function ensureParentDirectory(_0x529cc6){await mkdir(dirname(_0x529cc6),{'recursive':!![]});}export async function fileExists(_0x51274a){try{return await access(_0x51274a,constants['F_OK']),!![];}catch{return![];}}export async function directoryExists(_0x4b0504){const _0x58982b=a279_0x56c5ca;try{const _0x20c2b1=await stat(_0x4b0504);return _0x20c2b1[_0x58982b(0x106)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4945a6,_0x433398){const _0x892a2e=a280_0x6166,_0x4237c7=_0x4945a6();while(!![]){try{const _0x533017=parseInt(_0x892a2e(0x108))/0x1+-parseInt(_0x892a2e(0x107))/0x2+parseInt(_0x892a2e(0xff))/0x3+parseInt(_0x892a2e(0xfd))/0x4+parseInt(_0x892a2e(0x106))/0x5+parseInt(_0x892a2e(0xfe))/0x6*(parseInt(_0x892a2e(0x103))/0x7)+-parseInt(_0x892a2e(0x100))/0x8;if(_0x533017===_0x433398)break;else _0x4237c7['push'](_0x4237c7['shift']());}catch(_0x156159){_0x4237c7['push'](_0x4237c7['shift']());}}}(a280_0x16a0,0x853ba));import{readFile}from'node:fs/promises';import a280_0x239652 from'node:crypto';function a280_0x16a0(){const _0x186c76=['1826876IuROAZ','359495IPdKlx','digest','3202264oGwmAL','1016466hgwsKD','194631eDrsAD','13096096nswWRH','utf8','md5','42zEbUvj','createHash','hex','4273840YsamhB'];a280_0x16a0=function(){return _0x186c76;};return a280_0x16a0();}export function computeContentHash(_0x540b95){const _0x661846=a280_0x6166;return a280_0x239652[_0x661846(0x104)](_0x661846(0x102))['update'](_0x540b95)[_0x661846(0xfc)](_0x661846(0x105));}function a280_0x6166(_0x57d76e,_0x53ff9f){_0x57d76e=_0x57d76e-0xfc;const _0x16a01e=a280_0x16a0();let _0x616678=_0x16a01e[_0x57d76e];return _0x616678;}export async function computeFileHash(_0x1d6e52){const _0x10908a=a280_0x6166,_0x22aaca=await readFile(_0x1d6e52,_0x10908a(0x101));return computeContentHash(_0x22aaca);}
1
+ (function(_0x1b3b1a,_0x5b78ce){const _0x473a5e=a280_0x5d40,_0x15a8d1=_0x1b3b1a();while(!![]){try{const _0x3a0de8=parseInt(_0x473a5e(0x199))/0x1+parseInt(_0x473a5e(0x1a8))/0x2*(parseInt(_0x473a5e(0x19d))/0x3)+-parseInt(_0x473a5e(0x19f))/0x4+parseInt(_0x473a5e(0x19a))/0x5*(-parseInt(_0x473a5e(0x1a7))/0x6)+parseInt(_0x473a5e(0x1a4))/0x7*(-parseInt(_0x473a5e(0x1a0))/0x8)+-parseInt(_0x473a5e(0x1a5))/0x9+parseInt(_0x473a5e(0x19c))/0xa*(parseInt(_0x473a5e(0x19b))/0xb);if(_0x3a0de8===_0x5b78ce)break;else _0x15a8d1['push'](_0x15a8d1['shift']());}catch(_0x169c3a){_0x15a8d1['push'](_0x15a8d1['shift']());}}}(a280_0x2fe6,0x9a209));import{readFile}from'node:fs/promises';function a280_0x5d40(_0x5b4311,_0x4c7e7e){_0x5b4311=_0x5b4311-0x199;const _0x2fe6eb=a280_0x2fe6();let _0x5d4011=_0x2fe6eb[_0x5b4311];return _0x5d4011;}function a280_0x2fe6(){const _0x5a7ffa=['3286071smtaXJ','hex','3086628hRyeLl','2558RQFYjG','863501cNCEDT','5OVfnpq','11wIUnrF','20902340knLtAh','9cuUKNf','update','2966472OVozjC','8LYvQnM','digest','md5','utf8','4935644IxvUof'];a280_0x2fe6=function(){return _0x5a7ffa;};return a280_0x2fe6();}import a280_0x578b67 from'node:crypto';export function computeContentHash(_0x242ea2){const _0x2a30a3=a280_0x5d40;return a280_0x578b67['createHash'](_0x2a30a3(0x1a2))[_0x2a30a3(0x19e)](_0x242ea2)[_0x2a30a3(0x1a1)](_0x2a30a3(0x1a6));}export async function computeFileHash(_0xc7abe6){const _0x390c46=a280_0x5d40,_0x37c9dc=await readFile(_0xc7abe6,_0x390c46(0x1a3));return computeContentHash(_0x37c9dc);}
@@ -1 +1 @@
1
- (function(_0x433641,_0x318cf5){const _0x199b11=a281_0x2614,_0x3b8433=_0x433641();while(!![]){try{const _0x41fb85=parseInt(_0x199b11(0x84))/0x1*(parseInt(_0x199b11(0x6b))/0x2)+-parseInt(_0x199b11(0x6d))/0x3*(parseInt(_0x199b11(0x68))/0x4)+-parseInt(_0x199b11(0x6a))/0x5*(parseInt(_0x199b11(0x91))/0x6)+-parseInt(_0x199b11(0x97))/0x7+parseInt(_0x199b11(0x7a))/0x8+parseInt(_0x199b11(0x92))/0x9*(parseInt(_0x199b11(0x93))/0xa)+parseInt(_0x199b11(0x95))/0xb;if(_0x41fb85===_0x318cf5)break;else _0x3b8433['push'](_0x3b8433['shift']());}catch(_0x3b8b29){_0x3b8433['push'](_0x3b8433['shift']());}}}(a281_0x5716,0xe6a88));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x4e1d68){const _0x51d314=a281_0x2614,_0x156f64=[];for(const [_0x5ba63b,_0x5667d5]of Object['entries'](_0x4e1d68[_0x51d314(0x90)])){const [_0x484e03,_0xca6577]=_0x5ba63b[_0x51d314(0x8b)]('/');if(_0x484e03!==_0x51d314(0x85)||!_0xca6577||!_0x5667d5[_0x51d314(0x86)])continue;_0x156f64[_0x51d314(0x8a)]({'alias':_0xca6577,'datasetCode':_0x5667d5[_0x51d314(0x86)]});}return _0x156f64;}export function uniqueTrackedHookDirectoryByDataset(_0x246ea0){const _0x1522e3=a281_0x2614,_0x6aad0a=new Map();for(const _0x25f0ce of trackedHookDirectoryMappings(_0x246ea0)){const _0x176dbc=directoryIdentity(_0x25f0ce['datasetCode']),_0x58abfa=_0x6aad0a[_0x1522e3(0x66)](_0x176dbc)??new Map();_0x58abfa['set'](directoryIdentity(_0x25f0ce[_0x1522e3(0x9c)]),_0x25f0ce[_0x1522e3(0x9c)]),_0x6aad0a[_0x1522e3(0x98)](_0x176dbc,_0x58abfa);}const _0x5e17de=new Map();for(const [_0xf04603,_0x3b1168]of _0x6aad0a){if(_0x3b1168[_0x1522e3(0x8d)]>0x1)throw hookDirectoryError(_0x1522e3(0x74),_0x1522e3(0x71)+_0xf04603+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x3b1168[_0x1522e3(0x78)]()][_0x1522e3(0x64)](',\x20')+'.',{'datasetCode':_0xf04603,'directories':[..._0x3b1168['values']()]});_0x5e17de[_0x1522e3(0x98)](_0xf04603,[..._0x3b1168[_0x1522e3(0x78)]()][0x0]);}return _0x5e17de;}export function assertUnambiguousHookDirectoryMappings(_0x598b28){const _0x339724=a281_0x2614,_0x57e324=new Map();for(const {alias:_0x4accf4,datasetCode:_0x50e637}of _0x598b28){const _0x136d93=directoryIdentity(_0x4accf4),_0x211975=_0x57e324[_0x339724(0x66)](_0x136d93)??new Set();_0x211975[_0x339724(0x79)](_0x50e637),_0x57e324['set'](_0x136d93,_0x211975);}for(const [_0x9511d,_0x431ec2]of _0x57e324){if(_0x431ec2['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS','HOOK\x20directory\x20\x22'+_0x9511d+_0x339724(0x8f),{'directoryName':_0x9511d,'datasetCodes':[..._0x431ec2]});}}function a281_0x2614(_0xdbd2db,_0x514f07){_0xdbd2db=_0xdbd2db-0x64;const _0x571615=a281_0x5716();let _0x26147a=_0x571615[_0xdbd2db];return _0x26147a;}function a281_0x5716(){const _0x593fa8=['\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','normalize','push','split','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','size','details','\x22\x20resolves\x20to\x20multiple\x20Datasets.','functions','198mUpQIY','801135SCMVFL','170hsoLrB','HOOK_DIRECTORY_UNRESOLVED','22757669xCTzuc','code','4345397uwJkJT','set','lockKey','\x22\x20to\x20\x22','HOOK\x20directory\x20\x22','alias','join','toLowerCase','get','HOOK_DATASET_CODE_AMBIGUOUS','3811188hZQXQC','HOOK_DATASET_NOT_FOUND','185525SoFwZR','208422ibYaXe','HOOK_ALIAS_AMBIGUOUS','3hvpWOh','datasetCodeToDatasets','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','Dataset\x20\x22','some','includes','HOOK_DUPLICATE_DIRECTORIES','length','map','SDK\x20alias\x20\x22','values','add','451712QjaAbl','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','message','Dataset\x20code\x20\x22','name','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','HOOK_MAPPING_DRIFT','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','aliasToDatasetCodes','NFC','1pezKNJ','HOOK','datasetCode','Incomplete\x20HOOK\x20path:\x20'];a281_0x5716=function(){return _0x593fa8;};return a281_0x5716();}export function assertUnambiguousHookAliases(_0x2555b8){const _0x4d739f=a281_0x2614,_0x52a527=[..._0x2555b8],_0xeb1834=new Map(),_0x33265d=new Map();for(const {alias:_0x1f7075,datasetCode:_0x1604d8}of _0x52a527){const _0x53150a=directoryIdentity(_0x1f7075),_0xe25e90=directoryIdentity(_0x1604d8),_0x2d385b=_0xeb1834['get'](_0x53150a)??new Set();_0x2d385b[_0x4d739f(0x79)](_0x1604d8),_0xeb1834[_0x4d739f(0x98)](_0x53150a,_0x2d385b);const _0x320711=_0x33265d['get'](_0xe25e90)??new Set();_0x320711['add'](_0x1f7075),_0x33265d[_0x4d739f(0x98)](_0xe25e90,_0x320711);}for(const [_0x20affb,_0x5d7944]of _0xeb1834){if(_0x5d7944[_0x4d739f(0x8d)]>0x1)throw hookDirectoryError(_0x4d739f(0x6c),_0x4d739f(0x77)+_0x20affb+_0x4d739f(0x8f),{'alias':_0x20affb,'datasetCodes':[..._0x5d7944]});}for(const [_0x246739,_0x198202]of _0x33265d){if(_0x198202['size']>0x1)throw hookDirectoryError(_0x4d739f(0x6c),_0x4d739f(0x71)+_0x246739+_0x4d739f(0x8c),{'datasetCode':_0x246739,'aliases':[..._0x198202]});}}export function buildHookDirectoryIndexes(_0x29d759,_0x25e660=[]){const _0x572318=a281_0x2614,_0x5aed8e=[..._0x25e660];assertUnambiguousHookDirectoryMappings(_0x5aed8e[_0x572318(0x76)](([_0x4b3149,_0x5d5061])=>({'alias':_0x4b3149,'datasetCode':_0x5d5061})));const _0x2b39f8=new Map(),_0x1f8e3c=new Map();for(const _0x22b90b of _0x29d759){appendUnique(_0x2b39f8,directoryIdentity(_0x22b90b[_0x572318(0x96)]),_0x22b90b,_0x4555af=>_0x4555af[_0x572318(0x96)]);}for(const [_0x27e82e,_0x286534]of _0x5aed8e){appendUnique(_0x1f8e3c,directoryIdentity(_0x27e82e),_0x286534,_0x2438ef=>_0x2438ef);}return{'datasetCodeToDatasets':_0x2b39f8,'aliasToDatasetCodes':_0x1f8e3c};}export function resolvePushHookDirectory(_0x3cdd1f,_0x7b606b,_0x58bc66){const _0x1d7070=a281_0x2614,_0x135393=directoryIdentity(_0x3cdd1f),_0xea4a32=_0x58bc66[_0x1d7070(0x6e)][_0x1d7070(0x66)](_0x135393)??[],_0x3b9b9f=_0x58bc66[_0x1d7070(0x82)][_0x1d7070(0x66)](_0x135393)??[],_0x3033de=new Set([..._0xea4a32[_0x1d7070(0x76)](_0x3b8203=>_0x3b8203[_0x1d7070(0x96)]),..._0x3b9b9f]);if(_0x3033de['size']>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x1d7070(0x9b)+_0x3cdd1f+_0x1d7070(0x6f),{'directoryName':_0x3cdd1f,'datasetCodes':[..._0x3033de]});const _0x6d8506=[..._0x3033de][0x0];if(_0x6d8506&&_0x7b606b?.[_0x1d7070(0x86)]&&_0x6d8506!==_0x7b606b[_0x1d7070(0x86)])throw hookDirectoryError(_0x1d7070(0x80),'HOOK\x20directory\x20\x22'+_0x3cdd1f+_0x1d7070(0x88)+_0x7b606b[_0x1d7070(0x86)]+_0x1d7070(0x9a)+_0x6d8506+'\x22.',{'directoryName':_0x3cdd1f,'datasetCode':_0x6d8506,'lockedDatasetCode':_0x7b606b[_0x1d7070(0x86)]});const _0x56e06c=_0x6d8506?findDatasetByCode(_0x58bc66,_0x6d8506):undefined,_0x4bc8d3=!!_0x6d8506&&_0x3b9b9f[_0x1d7070(0x73)](_0x6d8506);if(_0x56e06c)return{'dataset':_0x56e06c,'datasetCode':_0x56e06c['code'],..._0x4bc8d3?{'alias':_0x3cdd1f}:{},'directoryProtocol':_0x4bc8d3?_0x1d7070(0x9c):'datasetCode','warnings':[]};const _0x4814cb=_0x7b606b?.[_0x1d7070(0x86)];if(_0x4814cb){const _0x396937=findDatasetByCode(_0x58bc66,_0x4814cb);if(_0x396937)return{'dataset':_0x396937,'datasetCode':_0x396937['code'],..._0x7b606b['alias']?{'alias':_0x7b606b[_0x1d7070(0x9c)]}:{},'directoryProtocol':_0x7b606b['alias']?_0x1d7070(0x9c):'datasetCode','warnings':[]};}if(_0x6d8506||_0x4814cb){const _0x24ed95=_0x6d8506??_0x4814cb;throw hookDirectoryError(_0x1d7070(0x69),_0x1d7070(0x9b)+_0x3cdd1f+_0x1d7070(0x81),{'directoryName':_0x3cdd1f,'datasetCode':_0x24ed95});}throw hookDirectoryError(_0x1d7070(0x94),_0x1d7070(0x7f)+_0x3cdd1f+_0x1d7070(0x70),{'directoryName':_0x3cdd1f});}export function preflightPushHookDirectories(_0x118a78,_0x5c4957,_0xc2b0fe,_0x11579c){const _0x4430c8=a281_0x2614,_0xfce598=new Map(),_0x5d4bfa=new Map();for(const _0x44f5fa of _0x118a78){if(_0x44f5fa['type']!==_0x4430c8(0x85))continue;const _0x220e2b=_0x44f5fa[_0x4430c8(0x9c)];if(!_0x220e2b)throw hookDirectoryError(_0x4430c8(0x94),_0x4430c8(0x87)+_0x44f5fa[_0x4430c8(0x99)],{'lockKey':_0x44f5fa['lockKey']});let _0x173e4d;try{_0x173e4d=resolvePushHookDirectory(_0x220e2b,_0x5c4957[_0x4430c8(0x90)][_0x44f5fa[_0x4430c8(0x99)]],_0xc2b0fe);}catch(_0x4d2753){if(_0x11579c&&_0x4d2753 instanceof CliError&&[_0x4430c8(0x69),_0x4430c8(0x94)][_0x4430c8(0x73)](_0x4d2753['code'])){_0x11579c['set'](_0x44f5fa[_0x4430c8(0x99)],_0x4d2753[_0x4430c8(0x7c)]);continue;}throw _0x4d2753;}_0xfce598['set'](_0x44f5fa[_0x4430c8(0x99)],_0x173e4d);const _0x561d84=_0x5d4bfa[_0x4430c8(0x66)](_0x173e4d[_0x4430c8(0x86)])??new Set();_0x561d84[_0x4430c8(0x79)](_0x220e2b),_0x5d4bfa[_0x4430c8(0x98)](_0x173e4d[_0x4430c8(0x86)],_0x561d84);}for(const [_0xaf10d1,_0x4ad6ab]of _0x5d4bfa){if(_0x4ad6ab[_0x4430c8(0x8d)]>0x1)throw hookDirectoryError(_0x4430c8(0x74),'Dataset\x20\x22'+_0xaf10d1+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x4ad6ab][_0x4430c8(0x64)](',\x20')+'.',{'datasetCode':_0xaf10d1,'directories':[..._0x4ad6ab]});}return _0xfce598;}export function hookDirectoryError(_0x28421f,_0x38c710,_0x218ffe){const _0x1ea6ac=a281_0x2614,_0x32c36c=new CliError(_0x28421f,0x2,_0x28421f+':\x20'+_0x38c710);return _0x32c36c[_0x1ea6ac(0x8e)]=_0x218ffe,_0x32c36c;}function findDatasetByCode(_0x1ecd34,_0x2863da){const _0x1e7aab=a281_0x2614,_0x1c249f=_0x1ecd34[_0x1e7aab(0x6e)][_0x1e7aab(0x66)](directoryIdentity(_0x2863da))??[];if(_0x1c249f[_0x1e7aab(0x75)]>0x1)throw hookDirectoryError(_0x1e7aab(0x67),_0x1e7aab(0x7d)+_0x2863da+_0x1e7aab(0x7b),{'datasetCode':_0x2863da,'candidates':_0x1c249f[_0x1e7aab(0x76)](datasetFact)});return _0x1c249f[0x0];}function directoryIdentity(_0x491c68){const _0x220c00=a281_0x2614;return _0x491c68[_0x220c00(0x89)](_0x220c00(0x83))[_0x220c00(0x65)]();}function appendUnique(_0x5398f7,_0x3273a9,_0x481666,_0x41ec1b){const _0x4c0ebc=a281_0x2614,_0x4d4c36=_0x5398f7['get'](_0x3273a9)??[];!_0x4d4c36[_0x4c0ebc(0x72)](_0x57fb35=>_0x41ec1b(_0x57fb35)===_0x41ec1b(_0x481666))&&_0x4d4c36[_0x4c0ebc(0x8a)](_0x481666),_0x5398f7[_0x4c0ebc(0x98)](_0x3273a9,_0x4d4c36);}function datasetFact(_0x182a87){const _0x2bb3b6=a281_0x2614;return{'id':_0x182a87['id'],'name':_0x182a87[_0x2bb3b6(0x7e)],'datasetCode':_0x182a87[_0x2bb3b6(0x96)]};}
1
+ (function(_0x192990,_0xb5f3f){const _0x4678c6=a281_0x1dac,_0x40dfa5=_0x192990();while(!![]){try{const _0x263b23=parseInt(_0x4678c6(0xae))/0x1*(-parseInt(_0x4678c6(0x9a))/0x2)+parseInt(_0x4678c6(0x8c))/0x3*(-parseInt(_0x4678c6(0xbb))/0x4)+parseInt(_0x4678c6(0xb7))/0x5*(-parseInt(_0x4678c6(0xa7))/0x6)+parseInt(_0x4678c6(0xbd))/0x7*(parseInt(_0x4678c6(0x9d))/0x8)+parseInt(_0x4678c6(0xac))/0x9*(parseInt(_0x4678c6(0x90))/0xa)+-parseInt(_0x4678c6(0x97))/0xb+parseInt(_0x4678c6(0xb5))/0xc;if(_0x263b23===_0xb5f3f)break;else _0x40dfa5['push'](_0x40dfa5['shift']());}catch(_0x5e00de){_0x40dfa5['push'](_0x40dfa5['shift']());}}}(a281_0x3c50,0xa4a83));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x43955d){const _0x3181e0=a281_0x1dac,_0x2bea21=[];for(const [_0x5e28ab,_0x3d5fd9]of Object[_0x3181e0(0xbc)](_0x43955d[_0x3181e0(0x9c)])){const [_0xd5b1e3,_0x160064]=_0x5e28ab['split']('/');if(_0xd5b1e3!=='HOOK'||!_0x160064||!_0x3d5fd9[_0x3181e0(0x93)])continue;_0x2bea21[_0x3181e0(0x8f)]({'alias':_0x160064,'datasetCode':_0x3d5fd9[_0x3181e0(0x93)]});}return _0x2bea21;}export function uniqueTrackedHookDirectoryByDataset(_0x291cc0){const _0x3a3670=a281_0x1dac,_0x1f7f16=new Map();for(const _0x3644dc of trackedHookDirectoryMappings(_0x291cc0)){const _0x102994=directoryIdentity(_0x3644dc['datasetCode']),_0x14612e=_0x1f7f16['get'](_0x102994)??new Map();_0x14612e['set'](directoryIdentity(_0x3644dc[_0x3a3670(0x9b)]),_0x3644dc['alias']),_0x1f7f16[_0x3a3670(0xaf)](_0x102994,_0x14612e);}const _0x182fe9=new Map();for(const [_0x214318,_0x6203f9]of _0x1f7f16){if(_0x6203f9[_0x3a3670(0x95)]>0x1)throw hookDirectoryError(_0x3a3670(0xb9),_0x3a3670(0xbf)+_0x214318+_0x3a3670(0xa8)+[..._0x6203f9['values']()][_0x3a3670(0x92)](',\x20')+'.',{'datasetCode':_0x214318,'directories':[..._0x6203f9[_0x3a3670(0x9f)]()]});_0x182fe9[_0x3a3670(0xaf)](_0x214318,[..._0x6203f9['values']()][0x0]);}return _0x182fe9;}export function assertUnambiguousHookDirectoryMappings(_0x4c9564){const _0x2904d5=a281_0x1dac,_0x3de557=new Map();for(const {alias:_0x1a4ef6,datasetCode:_0x46562d}of _0x4c9564){const _0x3621a1=directoryIdentity(_0x1a4ef6),_0x47e715=_0x3de557[_0x2904d5(0xba)](_0x3621a1)??new Set();_0x47e715['add'](_0x46562d),_0x3de557[_0x2904d5(0xaf)](_0x3621a1,_0x47e715);}for(const [_0x245cd8,_0x3a3fb8]of _0x3de557){if(_0x3a3fb8['size']>0x1)throw hookDirectoryError(_0x2904d5(0x94),'HOOK\x20directory\x20\x22'+_0x245cd8+_0x2904d5(0x8e),{'directoryName':_0x245cd8,'datasetCodes':[..._0x3a3fb8]});}}export function assertUnambiguousHookAliases(_0x13dbec){const _0x360e6d=a281_0x1dac,_0x50f4c1=[..._0x13dbec],_0x25baba=new Map(),_0x108eba=new Map();for(const {alias:_0x4e33c7,datasetCode:_0x59a92b}of _0x50f4c1){const _0x5810da=directoryIdentity(_0x4e33c7),_0x80904=directoryIdentity(_0x59a92b),_0x462486=_0x25baba['get'](_0x5810da)??new Set();_0x462486[_0x360e6d(0x91)](_0x59a92b),_0x25baba[_0x360e6d(0xaf)](_0x5810da,_0x462486);const _0x2d0977=_0x108eba['get'](_0x80904)??new Set();_0x2d0977[_0x360e6d(0x91)](_0x4e33c7),_0x108eba[_0x360e6d(0xaf)](_0x80904,_0x2d0977);}for(const [_0xcd3cf9,_0x14a014]of _0x25baba){if(_0x14a014[_0x360e6d(0x95)]>0x1)throw hookDirectoryError(_0x360e6d(0x9e),_0x360e6d(0xb0)+_0xcd3cf9+_0x360e6d(0x8e),{'alias':_0xcd3cf9,'datasetCodes':[..._0x14a014]});}for(const [_0x4b9085,_0x186048]of _0x108eba){if(_0x186048[_0x360e6d(0x95)]>0x1)throw hookDirectoryError(_0x360e6d(0x9e),_0x360e6d(0xbf)+_0x4b9085+_0x360e6d(0xb6),{'datasetCode':_0x4b9085,'aliases':[..._0x186048]});}}function a281_0x3c50(){const _0x70eff3=['\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','HOOK_DIRECTORY_UNRESOLVED','some','HOOK','9XoJioF','name','9CaBlhe','set','SDK\x20alias\x20\x22','aliasToDatasetCodes','details','HOOK\x20directory\x20\x22','normalize','19739184rnYQMo','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','325sHcqYQ','HOOK_DATASET_NOT_FOUND','HOOK_DUPLICATE_DIRECTORIES','get','4FBVgvT','entries','1489537zYOyNu','code','Dataset\x20\x22','message','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','161898IuptbO','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','\x22\x20resolves\x20to\x20multiple\x20Datasets.','push','10725220xBgwuZ','add','join','datasetCode','HOOK_DIRECTORY_AMBIGUOUS','size','datasetCodeToDatasets','10145993UlqXqm','Cannot\x20resolve\x20HOOK\x20directory\x20\x22','map','85588oHvpTY','alias','functions','8QvsHdj','HOOK_ALIAS_AMBIGUOUS','values','NFC','\x22\x20to\x20\x22','Incomplete\x20HOOK\x20path:\x20','type','lockKey','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','includes','82554jVtGAR'];a281_0x3c50=function(){return _0x70eff3;};return a281_0x3c50();}function a281_0x1dac(_0x177cdf,_0x17d193){_0x177cdf=_0x177cdf-0x8a;const _0x3c50b8=a281_0x3c50();let _0x1dac8e=_0x3c50b8[_0x177cdf];return _0x1dac8e;}export function buildHookDirectoryIndexes(_0x10c6c3,_0x54e834=[]){const _0x3fedb6=a281_0x1dac,_0x1e1fab=[..._0x54e834];assertUnambiguousHookDirectoryMappings(_0x1e1fab['map'](([_0x10fab1,_0x5db535])=>({'alias':_0x10fab1,'datasetCode':_0x5db535})));const _0x2f2293=new Map(),_0x25b832=new Map();for(const _0x174dc8 of _0x10c6c3){appendUnique(_0x2f2293,directoryIdentity(_0x174dc8['code']),_0x174dc8,_0x3ef579=>_0x3ef579[_0x3fedb6(0xbe)]);}for(const [_0xb46a03,_0x24d105]of _0x1e1fab){appendUnique(_0x25b832,directoryIdentity(_0xb46a03),_0x24d105,_0xa4027e=>_0xa4027e);}return{'datasetCodeToDatasets':_0x2f2293,'aliasToDatasetCodes':_0x25b832};}export function resolvePushHookDirectory(_0x4717e0,_0x5463b0,_0x2b5bc1){const _0x150826=a281_0x1dac,_0x579ec5=directoryIdentity(_0x4717e0),_0x596e3d=_0x2b5bc1[_0x150826(0x96)]['get'](_0x579ec5)??[],_0x578bd9=_0x2b5bc1[_0x150826(0xb1)][_0x150826(0xba)](_0x579ec5)??[],_0x92c1ae=new Set([..._0x596e3d[_0x150826(0x99)](_0x319381=>_0x319381[_0x150826(0xbe)]),..._0x578bd9]);if(_0x92c1ae['size']>0x1)throw hookDirectoryError(_0x150826(0x94),'HOOK\x20directory\x20\x22'+_0x4717e0+_0x150826(0xa5),{'directoryName':_0x4717e0,'datasetCodes':[..._0x92c1ae]});const _0x1e4739=[..._0x92c1ae][0x0];if(_0x1e4739&&_0x5463b0?.[_0x150826(0x93)]&&_0x1e4739!==_0x5463b0[_0x150826(0x93)])throw hookDirectoryError('HOOK_MAPPING_DRIFT',_0x150826(0xb3)+_0x4717e0+_0x150826(0x8b)+_0x5463b0[_0x150826(0x93)]+_0x150826(0xa1)+_0x1e4739+'\x22.',{'directoryName':_0x4717e0,'datasetCode':_0x1e4739,'lockedDatasetCode':_0x5463b0['datasetCode']});const _0x36cfea=_0x1e4739?findDatasetByCode(_0x2b5bc1,_0x1e4739):undefined,_0x4e4f3f=!!_0x1e4739&&_0x578bd9[_0x150826(0xa6)](_0x1e4739);if(_0x36cfea)return{'dataset':_0x36cfea,'datasetCode':_0x36cfea[_0x150826(0xbe)],..._0x4e4f3f?{'alias':_0x4717e0}:{},'directoryProtocol':_0x4e4f3f?'alias':'datasetCode','warnings':[]};const _0x16d1bc=_0x5463b0?.[_0x150826(0x93)];if(_0x16d1bc){const _0x1ac5f8=findDatasetByCode(_0x2b5bc1,_0x16d1bc);if(_0x1ac5f8)return{'dataset':_0x1ac5f8,'datasetCode':_0x1ac5f8[_0x150826(0xbe)],..._0x5463b0[_0x150826(0x9b)]?{'alias':_0x5463b0[_0x150826(0x9b)]}:{},'directoryProtocol':_0x5463b0[_0x150826(0x9b)]?_0x150826(0x9b):'datasetCode','warnings':[]};}if(_0x1e4739||_0x16d1bc){const _0x6cd8de=_0x1e4739??_0x16d1bc;throw hookDirectoryError(_0x150826(0xb8),'HOOK\x20directory\x20\x22'+_0x4717e0+'\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.',{'directoryName':_0x4717e0,'datasetCode':_0x6cd8de});}throw hookDirectoryError(_0x150826(0xa9),_0x150826(0x98)+_0x4717e0+_0x150826(0x8d),{'directoryName':_0x4717e0});}export function preflightPushHookDirectories(_0x51b564,_0xc37372,_0x489c9f,_0x5f530f){const _0x122093=a281_0x1dac,_0x1e561e=new Map(),_0x43fe64=new Map();for(const _0x50836f of _0x51b564){if(_0x50836f[_0x122093(0xa3)]!==_0x122093(0xab))continue;const _0x543f26=_0x50836f[_0x122093(0x9b)];if(!_0x543f26)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x122093(0xa2)+_0x50836f[_0x122093(0xa4)],{'lockKey':_0x50836f['lockKey']});let _0x25406a;try{_0x25406a=resolvePushHookDirectory(_0x543f26,_0xc37372[_0x122093(0x9c)][_0x50836f[_0x122093(0xa4)]],_0x489c9f);}catch(_0x2342b7){if(_0x5f530f&&_0x2342b7 instanceof CliError&&['HOOK_DATASET_NOT_FOUND','HOOK_DIRECTORY_UNRESOLVED'][_0x122093(0xa6)](_0x2342b7[_0x122093(0xbe)])){_0x5f530f['set'](_0x50836f[_0x122093(0xa4)],_0x2342b7[_0x122093(0x8a)]);continue;}throw _0x2342b7;}_0x1e561e['set'](_0x50836f[_0x122093(0xa4)],_0x25406a);const _0x59848f=_0x43fe64[_0x122093(0xba)](_0x25406a[_0x122093(0x93)])??new Set();_0x59848f['add'](_0x543f26),_0x43fe64[_0x122093(0xaf)](_0x25406a[_0x122093(0x93)],_0x59848f);}for(const [_0x5e1597,_0x21a6a6]of _0x43fe64){if(_0x21a6a6[_0x122093(0x95)]>0x1)throw hookDirectoryError('HOOK_DUPLICATE_DIRECTORIES',_0x122093(0xbf)+_0x5e1597+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x21a6a6][_0x122093(0x92)](',\x20')+'.',{'datasetCode':_0x5e1597,'directories':[..._0x21a6a6]});}return _0x1e561e;}export function hookDirectoryError(_0xc70541,_0x17fa9a,_0x520097){const _0x1ecd10=a281_0x1dac,_0x4d6a77=new CliError(_0xc70541,0x2,_0xc70541+':\x20'+_0x17fa9a);return _0x4d6a77[_0x1ecd10(0xb2)]=_0x520097,_0x4d6a77;}function findDatasetByCode(_0x1232c3,_0x328135){const _0x13eb5c=a281_0x1dac,_0x115be5=_0x1232c3[_0x13eb5c(0x96)][_0x13eb5c(0xba)](directoryIdentity(_0x328135))??[];if(_0x115be5['length']>0x1)throw hookDirectoryError('HOOK_DATASET_CODE_AMBIGUOUS','Dataset\x20code\x20\x22'+_0x328135+'\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.',{'datasetCode':_0x328135,'candidates':_0x115be5[_0x13eb5c(0x99)](datasetFact)});return _0x115be5[0x0];}function directoryIdentity(_0x39b418){const _0x5bf99c=a281_0x1dac;return _0x39b418[_0x5bf99c(0xb4)](_0x5bf99c(0xa0))['toLowerCase']();}function appendUnique(_0x5dc3db,_0x59c25e,_0x301dfd,_0x317a2d){const _0x5c5603=a281_0x1dac,_0x5cee7b=_0x5dc3db[_0x5c5603(0xba)](_0x59c25e)??[];!_0x5cee7b[_0x5c5603(0xaa)](_0x5a330c=>_0x317a2d(_0x5a330c)===_0x317a2d(_0x301dfd))&&_0x5cee7b[_0x5c5603(0x8f)](_0x301dfd),_0x5dc3db[_0x5c5603(0xaf)](_0x59c25e,_0x5cee7b);}function datasetFact(_0x3a6349){const _0xd4b788=a281_0x1dac;return{'id':_0x3a6349['id'],'name':_0x3a6349[_0xd4b788(0xad)],'datasetCode':_0x3a6349[_0xd4b788(0xbe)]};}
@@ -1 +1 @@
1
- (function(_0x42b2cc,_0xa85951){const _0x512ca0=a282_0xf6c5,_0x9ccfbe=_0x42b2cc();while(!![]){try{const _0x44eb3d=parseInt(_0x512ca0(0xec))/0x1*(-parseInt(_0x512ca0(0xfc))/0x2)+-parseInt(_0x512ca0(0xf5))/0x3+parseInt(_0x512ca0(0xfa))/0x4+parseInt(_0x512ca0(0xf9))/0x5*(parseInt(_0x512ca0(0xf8))/0x6)+parseInt(_0x512ca0(0xf1))/0x7+parseInt(_0x512ca0(0xed))/0x8+parseInt(_0x512ca0(0x100))/0x9*(-parseInt(_0x512ca0(0xff))/0xa);if(_0x44eb3d===_0xa85951)break;else _0x9ccfbe['push'](_0x9ccfbe['shift']());}catch(_0x43967f){_0x9ccfbe['push'](_0x9ccfbe['shift']());}}}(a282_0x4ecb,0xb477e));function a282_0xf6c5(_0x5eff67,_0x2418b8){_0x5eff67=_0x5eff67-0xea;const _0x4ecbf6=a282_0x4ecb();let _0xf6c522=_0x4ecbf6[_0x5eff67];return _0xf6c522;}import{mkdir,readFile,writeFile}from'node:fs/promises';function a282_0x4ecb(){const _0x4e454e=['lastSync','parse','ENOENT','3885138ZMDSJW','\x22.\x20','functions','12qWymRl','2226795NRcdZn','5710964sCiwvo','apps','2402392MHBxxg','object','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','50TTeAeJ','538047YzIGpG','scriptsRoot','stringify','1ACNikX','4810856vIrzrZ','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','code','utf8','4301773eQfyeN'];a282_0x4ecb=function(){return _0x4e454e;};return a282_0x4ecb();}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x3dd525,_0x595bfc,_0x11982b,_0x556155){const _0xe8075a=a282_0xf6c5,_0x16413={'apps':_0x3dd525[_0xe8075a(0xfb)]&&typeof _0x3dd525[_0xe8075a(0xfb)]==='object'?_0x3dd525[_0xe8075a(0xfb)]:{}};let _0x3f3427=_0x16413['apps'][_0x595bfc];if(!_0x3f3427)return _0x3f3427={'scriptsRoot':_0x11982b,'lastSync':'','functions':{}},_0x16413['apps'][_0x595bfc]=_0x3f3427,{'lockData':_0x16413,'appLock':_0x3f3427};if(!_0x3f3427[_0xe8075a(0xea)])_0x3f3427[_0xe8075a(0xea)]=_0x11982b;else{if(_0x3f3427[_0xe8075a(0xea)]!==_0x11982b)throw new Error(_0x556155+':\x20scriptsRoot\x20mismatch\x20—\x20'+('current\x20\x22'+_0x11982b+'\x22\x20vs\x20lock\x20\x22'+_0x3f3427[_0xe8075a(0xea)]+_0xe8075a(0xf6))+_0xe8075a(0xfe));}return!_0x3f3427[_0xe8075a(0xf7)]&&(_0x3f3427[_0xe8075a(0xf7)]={}),!_0x3f3427[_0xe8075a(0xf2)]&&(_0x3f3427[_0xe8075a(0xf2)]=''),{'lockData':_0x16413,'appLock':_0x3f3427};}export async function readBffLockFile(_0x4388f5){const _0x20fcf0=a282_0xf6c5;try{const _0x2d1f24=await readFile(_0x4388f5,_0x20fcf0(0xf0)),_0x51ab89=JSON[_0x20fcf0(0xf3)](_0x2d1f24);return{'apps':_0x51ab89[_0x20fcf0(0xfb)]&&typeof _0x51ab89[_0x20fcf0(0xfb)]===_0x20fcf0(0xfd)?_0x51ab89[_0x20fcf0(0xfb)]:{}};}catch(_0x1caf6f){if(_0x1caf6f[_0x20fcf0(0xef)]===_0x20fcf0(0xf4))return null;throw new Error(_0x20fcf0(0xee)+String(_0x1caf6f));}}export async function writeBffLockFile(_0x18467b,_0x18e65a){const _0x5e7c7a=a282_0xf6c5;await mkdir(dirname(_0x18467b),{'recursive':!![]}),await writeFile(_0x18467b,JSON[_0x5e7c7a(0xeb)](_0x18e65a,null,0x2),'utf8');}
1
+ (function(_0x4d436d,_0x4a3891){const _0x493ac6=a282_0x437b,_0x5fd24=_0x4d436d();while(!![]){try{const _0x145588=parseInt(_0x493ac6(0x129))/0x1+parseInt(_0x493ac6(0x127))/0x2+parseInt(_0x493ac6(0x132))/0x3+parseInt(_0x493ac6(0x123))/0x4*(-parseInt(_0x493ac6(0x131))/0x5)+parseInt(_0x493ac6(0x12b))/0x6*(-parseInt(_0x493ac6(0x12a))/0x7)+-parseInt(_0x493ac6(0x12e))/0x8*(-parseInt(_0x493ac6(0x121))/0x9)+parseInt(_0x493ac6(0x125))/0xa*(-parseInt(_0x493ac6(0x122))/0xb);if(_0x145588===_0x4a3891)break;else _0x5fd24['push'](_0x5fd24['shift']());}catch(_0x3c6826){_0x5fd24['push'](_0x5fd24['shift']());}}}(a282_0x1188,0x60c5a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}function a282_0x437b(_0x1cfd5b,_0x2df277){_0x1cfd5b=_0x1cfd5b-0x11c;const _0x1188cc=a282_0x1188();let _0x437b72=_0x1188cc[_0x1cfd5b];return _0x437b72;}function a282_0x1188(){const _0x1ff960=['\x22.\x20','lastSync','functions','\x22\x20vs\x20lock\x20\x22','current\x20\x22','2567367lgWdtc','10835HCEKAn','54148hSathQ','object','8210MIGYWm',':\x20scriptsRoot\x20mismatch\x20—\x20','562410UcLTck','utf8','773736EPYNnA','7SvmmTX','2798652wVlmdF','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','code','8cxfYvG','scriptsRoot','parse','45tIBItZ','1359402CPufXO','apps'];a282_0x1188=function(){return _0x1ff960;};return a282_0x1188();}export function ensureLockScope(_0x528589,_0x193168,_0x32d1e2,_0x133a7d){const _0x229c00=a282_0x437b,_0x440434={'apps':_0x528589[_0x229c00(0x133)]&&typeof _0x528589[_0x229c00(0x133)]==='object'?_0x528589['apps']:{}};let _0x318701=_0x440434[_0x229c00(0x133)][_0x193168];if(!_0x318701)return _0x318701={'scriptsRoot':_0x32d1e2,'lastSync':'','functions':{}},_0x440434[_0x229c00(0x133)][_0x193168]=_0x318701,{'lockData':_0x440434,'appLock':_0x318701};if(!_0x318701['scriptsRoot'])_0x318701[_0x229c00(0x12f)]=_0x32d1e2;else{if(_0x318701[_0x229c00(0x12f)]!==_0x32d1e2)throw new Error(_0x133a7d+_0x229c00(0x126)+(_0x229c00(0x120)+_0x32d1e2+_0x229c00(0x11f)+_0x318701[_0x229c00(0x12f)]+_0x229c00(0x11c))+_0x229c00(0x12c));}return!_0x318701['functions']&&(_0x318701[_0x229c00(0x11e)]={}),!_0x318701[_0x229c00(0x11d)]&&(_0x318701['lastSync']=''),{'lockData':_0x440434,'appLock':_0x318701};}export async function readBffLockFile(_0x50d6fc){const _0x538f95=a282_0x437b;try{const _0x13ce43=await readFile(_0x50d6fc,_0x538f95(0x128)),_0x3a31e8=JSON[_0x538f95(0x130)](_0x13ce43);return{'apps':_0x3a31e8[_0x538f95(0x133)]&&typeof _0x3a31e8['apps']===_0x538f95(0x124)?_0x3a31e8[_0x538f95(0x133)]:{}};}catch(_0x1f0660){if(_0x1f0660[_0x538f95(0x12d)]==='ENOENT')return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x1f0660));}}export async function writeBffLockFile(_0x48979b,_0x4929a5){await mkdir(dirname(_0x48979b),{'recursive':!![]}),await writeFile(_0x48979b,JSON['stringify'](_0x4929a5,null,0x2),'utf8');}
@@ -1 +1 @@
1
- const a284_0x284558=a284_0x5875;function a284_0x50b7(){const _0x275df5=['3285192WzPleL','TODO:\x20补充脚本功能描述','entries','39288wJBesC','operationType','replace','some','functionNode','9xXeSgF','split','13504964yGRVUF','6132340cEmtPy','test','1184793hLhTKY','startsWith','toLowerCase','before','remoteId','alias','497WNgpLR','10DEooQj','22uuizIL','4717448wceJmG','toUpperCase','match','after','31748XNZTBN','trim','datasetCode'];a284_0x50b7=function(){return _0x275df5;};return a284_0x50b7();}(function(_0x540685,_0x2ba9dc){const _0x627669=a284_0x5875,_0x27f15b=_0x540685();while(!![]){try{const _0xf984bd=-parseInt(_0x627669(0x1c6))/0x1*(parseInt(_0x627669(0x1cb))/0x2)+parseInt(_0x627669(0x1be))/0x3+parseInt(_0x627669(0x1b1))/0x4+parseInt(_0x627669(0x1bc))/0x5+parseInt(_0x627669(0x1b4))/0x6*(parseInt(_0x627669(0x1c4))/0x7)+parseInt(_0x627669(0x1c7))/0x8*(-parseInt(_0x627669(0x1b9))/0x9)+-parseInt(_0x627669(0x1c5))/0xa*(parseInt(_0x627669(0x1bb))/0xb);if(_0xf984bd===_0x2ba9dc)break;else _0x27f15b['push'](_0x27f15b['shift']());}catch(_0x4b49f7){_0x27f15b['push'](_0x27f15b['shift']());}}}(a284_0x50b7,0xb4e6c));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0x284558(0x1b2);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION='TODO:\x20add\x20script\x20description';function a284_0x5875(_0x4839df,_0x198262){_0x4839df=_0x4839df-0x1af;const _0x50b7a1=a284_0x50b7();let _0x587536=_0x50b7a1[_0x4839df];return _0x587536;}export function snakeToCamel(_0x578259){const _0x134797=a284_0x284558;return _0x578259[_0x134797(0x1c0)]()[_0x134797(0x1b6)](/_([a-z])/g,(_0x562a36,_0xee404b)=>_0xee404b[_0x134797(0x1c8)]());}export function findHookLocationByRemoteId(_0x375000,_0xfa37f3){const _0x5562cd=a284_0x284558;if(!_0xfa37f3)return undefined;for(const [_0x4cba7b,_0x50149b]of Object[_0x5562cd(0x1b3)](_0x375000)){if(_0x50149b[_0x5562cd(0x1c2)]===_0xfa37f3&&_0x50149b[_0x5562cd(0x1b0)]&&_0x50149b[_0x5562cd(0x1b5)]&&_0x50149b[_0x5562cd(0x1b8)]){const _0x144d7e=_0x4cba7b[_0x5562cd(0x1ba)]('/')[0x1];return{'alias':_0x144d7e||_0x50149b[_0x5562cd(0x1c3)],'datasetCode':_0x50149b[_0x5562cd(0x1b0)],'operationType':_0x50149b[_0x5562cd(0x1b5)],'functionNode':_0x50149b[_0x5562cd(0x1b8)]};}}return undefined;}export function extractScriptDescription(_0x34f748){const _0x5b6368=a284_0x284558,_0x23b77f=_0x34f748[_0x5b6368(0x1c9)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x23b77f?.[0x1])return undefined;const _0x44b3e3=_0x23b77f[0x1],_0x5ceb4b=_0x4eb01c=>{const _0x1ab945=_0x5b6368,_0x3f43d1=_0x4eb01c?.[_0x1ab945(0x1af)]();if(!_0x3f43d1||_0x3f43d1===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x3f43d1===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x3f43d1;},_0x4884fa=_0x44b3e3['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x4884fa)return _0x5ceb4b(_0x4884fa[0x1]);const _0xd79a06=_0x44b3e3['split'](/\r?\n/)['map'](_0x158889=>_0x158889[_0x5b6368(0x1b6)](/^\s*\*\s?/,'')['trim']()),_0xdfb03a=_0xd79a06[_0x5b6368(0x1b7)](_0x111eba=>/^\[\s*脚本类型\s*]\s*\S+/[_0x5b6368(0x1bd)](_0x111eba))&&_0xd79a06[_0x5b6368(0x1b7)](_0x391b95=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x391b95));if(!_0xdfb03a)return undefined;for(const _0x161600 of _0xd79a06){if(!_0x161600||_0x161600[_0x5b6368(0x1bf)]('@')||/^\[[^\]]+]\s*/[_0x5b6368(0x1bd)](_0x161600))continue;return _0x5ceb4b(_0x161600);}return undefined;}export function isValidBffFunctionName(_0x535ea6){const _0x2bfd63=a284_0x284558;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x2bfd63(0x1bd)](_0x535ea6);}export function normalizeHookFunctionNode(_0x4ed09e){const _0x269c0f=a284_0x284558;if(!_0x4ed09e)return undefined;const _0x28e54a=_0x4ed09e[_0x269c0f(0x1af)]()[_0x269c0f(0x1c0)]();if(_0x28e54a===_0x269c0f(0x1c1)||_0x28e54a===_0x269c0f(0x1ca))return _0x28e54a;return undefined;}
1
+ function a284_0x59a5(_0x55f5b,_0x4a2ccc){_0x55f5b=_0x55f5b-0x114;const _0x5538b8=a284_0x5538();let _0x59a57c=_0x5538b8[_0x55f5b];return _0x59a57c;}const a284_0xde59f7=a284_0x59a5;function a284_0x5538(){const _0x2a192a=['161106uColzo','trim','toLowerCase','7AnSSkX','match','alias','test','6713568TGofDz','remoteId','TODO:\x20add\x20script\x20description','24htlUQz','11907599CgxKCE','some','map','functionNode','after','TODO:\x20补充脚本功能描述','replace','toUpperCase','startsWith','1VRgLkL','before','5700702cMHGII','168860fhZlCd','9VVkkas','7400205AfjCGo','2275082ofLTYl'];a284_0x5538=function(){return _0x2a192a;};return a284_0x5538();}(function(_0x3c6315,_0x3e0cc3){const _0x4f0d5d=a284_0x59a5,_0x1172a1=_0x3c6315();while(!![]){try{const _0xf9c47a=parseInt(_0x4f0d5d(0x123))/0x1*(-parseInt(_0x4f0d5d(0x129))/0x2)+-parseInt(_0x4f0d5d(0x12a))/0x3*(parseInt(_0x4f0d5d(0x119))/0x4)+parseInt(_0x4f0d5d(0x128))/0x5+-parseInt(_0x4f0d5d(0x125))/0x6*(-parseInt(_0x4f0d5d(0x12d))/0x7)+parseInt(_0x4f0d5d(0x116))/0x8+parseInt(_0x4f0d5d(0x127))/0x9*(parseInt(_0x4f0d5d(0x126))/0xa)+-parseInt(_0x4f0d5d(0x11a))/0xb;if(_0xf9c47a===_0x3e0cc3)break;else _0x1172a1['push'](_0x1172a1['shift']());}catch(_0x476fb4){_0x1172a1['push'](_0x1172a1['shift']());}}}(a284_0x5538,0xb5a2a));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0xde59f7(0x11f);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a284_0xde59f7(0x118);export function snakeToCamel(_0x4f1a3c){const _0x2c6b46=a284_0xde59f7;return _0x4f1a3c[_0x2c6b46(0x12c)]()[_0x2c6b46(0x120)](/_([a-z])/g,(_0x2b5eb3,_0x51e0ed)=>_0x51e0ed[_0x2c6b46(0x121)]());}export function findHookLocationByRemoteId(_0x43177d,_0x1fa664){const _0xcb3e0=a284_0xde59f7;if(!_0x1fa664)return undefined;for(const [_0x58f96b,_0x2df207]of Object['entries'](_0x43177d)){if(_0x2df207[_0xcb3e0(0x117)]===_0x1fa664&&_0x2df207['datasetCode']&&_0x2df207['operationType']&&_0x2df207[_0xcb3e0(0x11d)]){const _0x230847=_0x58f96b['split']('/')[0x1];return{'alias':_0x230847||_0x2df207[_0xcb3e0(0x114)],'datasetCode':_0x2df207['datasetCode'],'operationType':_0x2df207['operationType'],'functionNode':_0x2df207['functionNode']};}}return undefined;}export function extractScriptDescription(_0x179281){const _0x56b817=a284_0xde59f7,_0x1271e3=_0x179281['match'](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x1271e3?.[0x1])return undefined;const _0x2434bf=_0x1271e3[0x1],_0x4f0dab=_0xf427d5=>{const _0x50e15e=a284_0x59a5,_0x1d0357=_0xf427d5?.[_0x50e15e(0x12b)]();if(!_0x1d0357||_0x1d0357===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x1d0357===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x1d0357;},_0xd8ee9a=_0x2434bf[_0x56b817(0x12e)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0xd8ee9a)return _0x4f0dab(_0xd8ee9a[0x1]);const _0x5c664c=_0x2434bf['split'](/\r?\n/)[_0x56b817(0x11c)](_0x36ad8d=>_0x36ad8d['replace'](/^\s*\*\s?/,'')[_0x56b817(0x12b)]()),_0x14cb18=_0x5c664c[_0x56b817(0x11b)](_0x5243a8=>/^\[\s*脚本类型\s*]\s*\S+/['test'](_0x5243a8))&&_0x5c664c[_0x56b817(0x11b)](_0x507eda=>/^\[\s*脚本名称\s*]\s*\S+/[_0x56b817(0x115)](_0x507eda));if(!_0x14cb18)return undefined;for(const _0x5399a8 of _0x5c664c){if(!_0x5399a8||_0x5399a8[_0x56b817(0x122)]('@')||/^\[[^\]]+]\s*/['test'](_0x5399a8))continue;return _0x4f0dab(_0x5399a8);}return undefined;}export function isValidBffFunctionName(_0x353e09){const _0xc36ce4=a284_0xde59f7;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xc36ce4(0x115)](_0x353e09);}export function normalizeHookFunctionNode(_0x36ce69){const _0x43f4bf=a284_0xde59f7;if(!_0x36ce69)return undefined;const _0x133dba=_0x36ce69[_0x43f4bf(0x12b)]()[_0x43f4bf(0x12c)]();if(_0x133dba===_0x43f4bf(0x124)||_0x133dba===_0x43f4bf(0x11e))return _0x133dba;return undefined;}
@@ -1 +1 @@
1
- const a285_0x34d172=a285_0x39cc;function a285_0x2464(){const _0x360f42=['7238010ECDUXo','/smartapi/cross-db-relation/update','4PUbTuZ','/smartapi/cross-db-relation/query','636036VZhKXz','1919309CDDnqO','/smartapi/cross-db-relation/create','984882OhxDek','3379023klYNdG','2203596fEgENB','/smartapi/cross-db-relation/delete','1099575zwIupK','48opqhYP'];a285_0x2464=function(){return _0x360f42;};return a285_0x2464();}(function(_0x24b176,_0x380f5b){const _0x524363=a285_0x39cc,_0x560d60=_0x24b176();while(!![]){try{const _0xa7c845=-parseInt(_0x524363(0x191))/0x1+parseInt(_0x524363(0x186))/0x2+parseInt(_0x524363(0x18e))/0x3*(-parseInt(_0x524363(0x18c))/0x4)+parseInt(_0x524363(0x188))/0x5+-parseInt(_0x524363(0x18a))/0x6+parseInt(_0x524363(0x18f))/0x7*(parseInt(_0x524363(0x189))/0x8)+parseInt(_0x524363(0x192))/0x9;if(_0xa7c845===_0x380f5b)break;else _0x560d60['push'](_0x560d60['shift']());}catch(_0x1ceae6){_0x560d60['push'](_0x560d60['shift']());}}}(a285_0x2464,0xe542d));function a285_0x39cc(_0x53e203,_0x427e58){_0x53e203=_0x53e203-0x186;const _0x2464e0=a285_0x2464();let _0x39cc28=_0x2464e0[_0x53e203];return _0x39cc28;}export const CROSS_DB_RELATION_PATHS={'list':a285_0x34d172(0x18d),'create':a285_0x34d172(0x190),'update':a285_0x34d172(0x18b),'delete':a285_0x34d172(0x187)};
1
+ const a285_0x39440b=a285_0x144c;(function(_0x130f10,_0x4a5950){const _0x49e0a7=a285_0x144c,_0x36ff96=_0x130f10();while(!![]){try{const _0x25b298=-parseInt(_0x49e0a7(0x198))/0x1+-parseInt(_0x49e0a7(0x19d))/0x2*(parseInt(_0x49e0a7(0x197))/0x3)+-parseInt(_0x49e0a7(0x199))/0x4+-parseInt(_0x49e0a7(0x193))/0x5*(-parseInt(_0x49e0a7(0x192))/0x6)+parseInt(_0x49e0a7(0x190))/0x7*(parseInt(_0x49e0a7(0x195))/0x8)+parseInt(_0x49e0a7(0x19c))/0x9+parseInt(_0x49e0a7(0x194))/0xa*(parseInt(_0x49e0a7(0x19b))/0xb);if(_0x25b298===_0x4a5950)break;else _0x36ff96['push'](_0x36ff96['shift']());}catch(_0xa04383){_0x36ff96['push'](_0x36ff96['shift']());}}}(a285_0x5c13,0xafa08));function a285_0x144c(_0x3091aa,_0x3c8b7f){_0x3091aa=_0x3091aa-0x18f;const _0x5c132a=a285_0x5c13();let _0x144cb3=_0x5c132a[_0x3091aa];return _0x144cb3;}export const CROSS_DB_RELATION_PATHS={'list':a285_0x39440b(0x18f),'create':a285_0x39440b(0x191),'update':a285_0x39440b(0x19a),'delete':a285_0x39440b(0x196)};function a285_0x5c13(){const _0x59590a=['/smartapi/cross-db-relation/delete','55446cAPhXt','754853Mntrqi','5634980vWSxNQ','/smartapi/cross-db-relation/update','1968747BanGis','3271482tZQNal','6BKqsij','/smartapi/cross-db-relation/query','4494539KIJoFg','/smartapi/cross-db-relation/create','18VjQByL','2028215SnjvBj','40QSHlOH','8PuQPpv'];a285_0x5c13=function(){return _0x59590a;};return a285_0x5c13();}
@@ -1 +1 @@
1
- function a286_0x1a9b(){const _0x4f78f4=['db-','No\x20database\x20matching\x20\x22','1560836JbTcmi','.\x20Be\x20more\x20specific.','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','10712lmDoUU','has','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','map','98PBkwUo','\x22.\x20Available:\x20','length','11gIRmWA','join','7317SjJPIf','dbId','\x22\x20under\x20app\x20\x22','\x22\x20matches\x20multiple\x20databases:\x20','get','9uFzvqX','dbtableConfig','5843887ETXaVa','find','4152810muanIG','entries','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','isNaN','toLowerCase','11293730VKqAmg','22214rxwDYB','filter','set','dbName','3288635yqVeah'];a286_0x1a9b=function(){return _0x4f78f4;};return a286_0x1a9b();}(function(_0x2b0533,_0x35ab9c){const _0x58ad4d=a286_0x5335,_0x132568=_0x2b0533();while(!![]){try{const _0xa2786c=parseInt(_0x58ad4d(0xed))/0x1*(-parseInt(_0x58ad4d(0xfb))/0x2)+-parseInt(_0x58ad4d(0xe3))/0x3*(-parseInt(_0x58ad4d(0xf4))/0x4)+parseInt(_0x58ad4d(0xf1))/0x5+-parseInt(_0x58ad4d(0xe7))/0x6+parseInt(_0x58ad4d(0xe5))/0x7+parseInt(_0x58ad4d(0xf7))/0x8*(parseInt(_0x58ad4d(0x100))/0x9)+-parseInt(_0x58ad4d(0xec))/0xa*(parseInt(_0x58ad4d(0xfe))/0xb);if(_0xa2786c===_0x35ab9c)break;else _0x132568['push'](_0x132568['shift']());}catch(_0x59bdf3){_0x132568['push'](_0x132568['shift']());}}}(a286_0x1a9b,0xcd850));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x35fa41){const _0x586d8a=a286_0x5335;if(cache[_0x586d8a(0xf8)](_0x35fa41))return cache[_0x586d8a(0xe2)](_0x35fa41);const _0x559078=await listDatasets(_0x35fa41),_0x41c5c9=new Map();for(const _0x22fa5b of _0x559078){const _0x24d57d=_0x22fa5b[_0x586d8a(0xe4)];_0x24d57d?.[_0x586d8a(0x101)]!=null&&_0x41c5c9[_0x586d8a(0xef)](_0x24d57d[_0x586d8a(0x101)],_0x24d57d[_0x586d8a(0xf0)]??_0x586d8a(0xf2)+_0x24d57d['dbId']);}const _0x41caba=[..._0x41c5c9[_0x586d8a(0xe8)]()][_0x586d8a(0xfa)](([_0x3ebbf0,_0xe274e5])=>({'dbId':_0x3ebbf0,'dbName':_0xe274e5}));return cache[_0x586d8a(0xef)](_0x35fa41,_0x41caba),_0x41caba;}export async function resolveDb(_0x4fc5da,_0x5b7672){const _0x26c9a5=a286_0x5335,_0x4d2353=await listDatabases(_0x4fc5da);if(_0x4d2353[_0x26c9a5(0xfd)]===0x0)return{'resolved':[],'error':_0x26c9a5(0xf9)+_0x4fc5da+_0x26c9a5(0xf6)};if(!_0x5b7672)return{'resolved':_0x4d2353};const _0xb854ec=Number(_0x5b7672);if(!Number[_0x26c9a5(0xea)](_0xb854ec)){const _0x484e9f=_0x4d2353[_0x26c9a5(0xe6)](_0xef84aa=>_0xef84aa[_0x26c9a5(0x101)]===_0xb854ec);if(_0x484e9f)return{'resolved':[_0x484e9f]};}const _0x68dcec=_0x5b7672[_0x26c9a5(0xeb)](),_0x59c910=_0x4d2353[_0x26c9a5(0xee)](_0x1b0198=>_0x1b0198[_0x26c9a5(0xf0)][_0x26c9a5(0xeb)]()['includes'](_0x68dcec));if(_0x59c910[_0x26c9a5(0xfd)]>0x0)return{'resolved':_0x59c910};const _0x30337e=_0x4d2353[_0x26c9a5(0xfa)](_0xe648b7=>_0xe648b7['dbName']+'\x20('+_0xe648b7['dbId']+')')[_0x26c9a5(0xff)](',\x20');return{'resolved':[],'error':_0x26c9a5(0xf3)+_0x5b7672+_0x26c9a5(0xe0)+_0x4fc5da+_0x26c9a5(0xfc)+_0x30337e+_0x26c9a5(0xe9)};}function a286_0x5335(_0x5232d5,_0x24079c){_0x5232d5=_0x5232d5-0xe0;const _0x1a9bdb=a286_0x1a9b();let _0x533590=_0x1a9bdb[_0x5232d5];return _0x533590;}export async function resolveOneDb(_0xfa0b9f,_0x157fe7){const _0x52918d=a286_0x5335,{resolved:_0x5fc7ce,error:_0x397022}=await resolveDb(_0xfa0b9f,_0x157fe7);if(_0x397022)return{'db':null,'error':_0x397022};if(_0x5fc7ce['length']===0x1)return{'db':_0x5fc7ce[0x0]};if(!_0x157fe7){const _0xbd607c=_0x5fc7ce[_0x52918d(0xfa)](_0xe97334=>_0xe97334[_0x52918d(0xf0)]+'\x20('+_0xe97334[_0x52918d(0x101)]+')')[_0x52918d(0xff)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0xbd607c};}const _0x23163a=_0x5fc7ce[_0x52918d(0xfa)](_0x26fae1=>_0x26fae1[_0x52918d(0xf0)]+'\x20('+_0x26fae1['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x157fe7+_0x52918d(0xe1)+_0x23163a+_0x52918d(0xf5)};}export async function getDbName(_0x14de1f,_0x7adda1){const _0x29e52b=a286_0x5335,_0x5064c7=await listDatabases(_0x14de1f);return _0x5064c7[_0x29e52b(0xe6)](_0x1e9bb3=>_0x1e9bb3[_0x29e52b(0x101)]===_0x7adda1)?.[_0x29e52b(0xf0)];}
1
+ (function(_0x30dd6a,_0x411269){const _0x3a946b=a286_0x48dc,_0xbe606f=_0x30dd6a();while(!![]){try{const _0x4645f1=-parseInt(_0x3a946b(0xe0))/0x1+-parseInt(_0x3a946b(0xeb))/0x2+parseInt(_0x3a946b(0xdd))/0x3+-parseInt(_0x3a946b(0xe6))/0x4*(-parseInt(_0x3a946b(0xdc))/0x5)+parseInt(_0x3a946b(0xf6))/0x6*(parseInt(_0x3a946b(0xf5))/0x7)+-parseInt(_0x3a946b(0xee))/0x8+parseInt(_0x3a946b(0xe2))/0x9*(parseInt(_0x3a946b(0xef))/0xa);if(_0x4645f1===_0x411269)break;else _0xbe606f['push'](_0xbe606f['shift']());}catch(_0x542b26){_0xbe606f['push'](_0xbe606f['shift']());}}}(a286_0x488c,0xc5e57));import{listDatasets}from'../core/api-client.js';function a286_0x48dc(_0x5569cc,_0x43bf1a){_0x5569cc=_0x5569cc-0xdc;const _0x488c42=a286_0x488c();let _0x48dc1c=_0x488c42[_0x5569cc];return _0x48dc1c;}const cache=new Map();export async function listDatabases(_0x11df3d){const _0x4ee266=a286_0x48dc;if(cache[_0x4ee266(0xf2)](_0x11df3d))return cache[_0x4ee266(0xf0)](_0x11df3d);const _0x3bcc5f=await listDatasets(_0x11df3d),_0x504ad5=new Map();for(const _0x30065e of _0x3bcc5f){const _0x5ed860=_0x30065e[_0x4ee266(0xe8)];_0x5ed860?.['dbId']!=null&&_0x504ad5[_0x4ee266(0xec)](_0x5ed860[_0x4ee266(0xe9)],_0x5ed860[_0x4ee266(0xed)]??'db-'+_0x5ed860[_0x4ee266(0xe9)]);}const _0x498f60=[..._0x504ad5[_0x4ee266(0xe4)]()]['map'](([_0x53c217,_0x5484f8])=>({'dbId':_0x53c217,'dbName':_0x5484f8}));return cache[_0x4ee266(0xec)](_0x11df3d,_0x498f60),_0x498f60;}export async function resolveDb(_0x39a473,_0x1b5bdc){const _0x216042=a286_0x48dc,_0xc0ae49=await listDatabases(_0x39a473);if(_0xc0ae49['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x39a473+_0x216042(0xf8)};if(!_0x1b5bdc)return{'resolved':_0xc0ae49};const _0x46fe0a=Number(_0x1b5bdc);if(!Number['isNaN'](_0x46fe0a)){const _0x306bbf=_0xc0ae49[_0x216042(0xde)](_0x520e52=>_0x520e52[_0x216042(0xe9)]===_0x46fe0a);if(_0x306bbf)return{'resolved':[_0x306bbf]};}const _0x42187e=_0x1b5bdc[_0x216042(0xf1)](),_0xe1fbaa=_0xc0ae49[_0x216042(0xe1)](_0x258850=>_0x258850['dbName']['toLowerCase']()[_0x216042(0xea)](_0x42187e));if(_0xe1fbaa[_0x216042(0xe5)]>0x0)return{'resolved':_0xe1fbaa};const _0x10819c=_0xc0ae49[_0x216042(0xf7)](_0x53d1f4=>_0x53d1f4['dbName']+'\x20('+_0x53d1f4['dbId']+')')[_0x216042(0xdf)](',\x20');return{'resolved':[],'error':_0x216042(0xe7)+_0x1b5bdc+_0x216042(0xf4)+_0x39a473+'\x22.\x20Available:\x20'+_0x10819c+_0x216042(0xe3)};}export async function resolveOneDb(_0x1f65f9,_0x5ea15b){const _0x52eee6=a286_0x48dc,{resolved:_0x2bd753,error:_0x51a7c2}=await resolveDb(_0x1f65f9,_0x5ea15b);if(_0x51a7c2)return{'db':null,'error':_0x51a7c2};if(_0x2bd753[_0x52eee6(0xe5)]===0x1)return{'db':_0x2bd753[0x0]};if(!_0x5ea15b){const _0x44c152=_0x2bd753['map'](_0x28441a=>_0x28441a[_0x52eee6(0xed)]+'\x20('+_0x28441a[_0x52eee6(0xe9)]+')')[_0x52eee6(0xdf)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x44c152};}const _0xc57f7c=_0x2bd753[_0x52eee6(0xf7)](_0x1b0ca8=>_0x1b0ca8[_0x52eee6(0xed)]+'\x20('+_0x1b0ca8[_0x52eee6(0xe9)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x5ea15b+_0x52eee6(0xf9)+_0xc57f7c+_0x52eee6(0xf3)};}export async function getDbName(_0x5309fa,_0x266d14){const _0x4adea7=a286_0x48dc,_0x1ed8f8=await listDatabases(_0x5309fa);return _0x1ed8f8[_0x4adea7(0xde)](_0x4df54a=>_0x4df54a[_0x4adea7(0xe9)]===_0x266d14)?.[_0x4adea7(0xed)];}function a286_0x488c(){const _0x2aab25=['10946944vBcRjY','1498040rbmQGp','get','toLowerCase','has','.\x20Be\x20more\x20specific.','\x22\x20under\x20app\x20\x22','5823797YFAVhq','6oEtbHM','map','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','\x22\x20matches\x20multiple\x20databases:\x20','10TJFIOQ','1285689iXAJoP','find','join','955927MZdsTG','filter','153IqDNwZ','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','entries','length','1395052urnTHN','No\x20database\x20matching\x20\x22','dbtableConfig','dbId','includes','2739700UrVAYt','set','dbName'];a286_0x488c=function(){return _0x2aab25;};return a286_0x488c();}