@lovrabet/rabetbase-cli 2.5.4-beta.3 → 2.5.4-beta.4

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 (355) 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/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/feishu-bind.js +1 -1
  249. package/lib/commands/user-account/index.js +1 -1
  250. package/lib/commands/workspace/add.js +1 -1
  251. package/lib/commands/workspace/index.js +1 -1
  252. package/lib/commands/workspace/remove.js +1 -1
  253. package/lib/config/domain-config.js +1 -1
  254. package/lib/config/project-domain-routing.js +1 -1
  255. package/lib/config/region-config.js +1 -1
  256. package/lib/config/schema.js +1 -1
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.d.ts +1 -1
  273. package/lib/core/api-client.js +1 -1
  274. package/lib/core/bff/config.js +1 -1
  275. package/lib/core/bff/file-system.js +1 -1
  276. package/lib/core/bff/hash.js +1 -1
  277. package/lib/core/bff/hook-directory.js +1 -1
  278. package/lib/core/bff/lock.js +1 -1
  279. package/lib/core/bff/utils.js +1 -1
  280. package/lib/core/cross-db-relation.js +1 -1
  281. package/lib/core/db-resolver.js +1 -1
  282. package/lib/core/flow-config.js +1 -1
  283. package/lib/core/instant-api-policy/config.js +1 -1
  284. package/lib/core/kb-search-client.js +1 -1
  285. package/lib/core/page/file-system.js +1 -1
  286. package/lib/core/page/hash.js +1 -1
  287. package/lib/core/page/lock.js +1 -1
  288. package/lib/core/page/lr-smart-jsx.js +1 -1
  289. package/lib/core/sql-index-auditor.js +1 -1
  290. package/lib/core/sql-sync/config.js +1 -1
  291. package/lib/core/sql-sync/file-system.js +1 -1
  292. package/lib/core/sql-sync/hash.js +1 -1
  293. package/lib/core/sql-sync/lock.js +1 -1
  294. package/lib/core/sql-sync/utils.js +1 -1
  295. package/lib/core/sql-validator.js +1 -1
  296. package/lib/errors.js +1 -1
  297. package/lib/framework/build-all-flags.js +1 -1
  298. package/lib/framework/error-output.js +1 -1
  299. package/lib/framework/explicit-yes.js +1 -1
  300. package/lib/framework/flags.js +1 -1
  301. package/lib/framework/help.js +1 -1
  302. package/lib/framework/index.js +1 -1
  303. package/lib/framework/output.js +1 -1
  304. package/lib/framework/response.js +1 -1
  305. package/lib/framework/runner-alias.js +1 -1
  306. package/lib/framework/runner.js +1 -1
  307. package/lib/framework/schema-export.js +1 -1
  308. package/lib/framework/supported-flags.js +1 -1
  309. package/lib/framework/types.js +1 -1
  310. package/lib/generated/build-info.d.ts +4 -4
  311. package/lib/generated/build-info.js +1 -1
  312. package/lib/generated/official-routing.js +1 -1
  313. package/lib/generated/routing-contract.js +1 -1
  314. package/lib/help.js +1 -1
  315. package/lib/postinstall.js +1 -1
  316. package/lib/runtime/confirmation.js +1 -1
  317. package/lib/runtime/event.js +1 -1
  318. package/lib/runtime/index.js +1 -1
  319. package/lib/runtime/queue.js +1 -1
  320. package/lib/runtime/resolve.js +1 -1
  321. package/lib/skills/builtin-skill.js +1 -1
  322. package/lib/skills/main.js +1 -1
  323. package/lib/skills/npx-skills-add.js +1 -1
  324. package/lib/skills/skill-presence.js +1 -1
  325. package/lib/telemetry/cli-command-trace.js +1 -1
  326. package/lib/telemetry/cli-help-trace.js +1 -1
  327. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  328. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  329. package/lib/telemetry/send-cli-trace-log.js +1 -1
  330. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  331. package/lib/utils/ai_config.js +1 -1
  332. package/lib/utils/apply-jq-filter.js +1 -1
  333. package/lib/utils/cdn-config.js +1 -1
  334. package/lib/utils/check-sdk-version.js +1 -1
  335. package/lib/utils/cli-version-check.js +1 -1
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +1 -1
  353. package/skills/rabetbase/SKILL.md +2 -2
  354. package/skills/rabetbase/references/rabetbase-user-account.md +8 -8
  355. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a274_0x3bcd57=a274_0x499e;(function(_0x4b8abe,_0x2b0d5c){const _0xb1dea=a274_0x499e,_0x222f34=_0x4b8abe();while(!![]){try{const _0x50151d=-parseInt(_0xb1dea(0xe7))/0x1*(parseInt(_0xb1dea(0xe8))/0x2)+parseInt(_0xb1dea(0xe1))/0x3*(parseInt(_0xb1dea(0xe6))/0x4)+parseInt(_0xb1dea(0xcd))/0x5*(parseInt(_0xb1dea(0xc8))/0x6)+parseInt(_0xb1dea(0xd7))/0x7+-parseInt(_0xb1dea(0xc2))/0x8+-parseInt(_0xb1dea(0xd6))/0x9+-parseInt(_0xb1dea(0xcb))/0xa;if(_0x50151d===_0x2b0d5c)break;else _0x222f34['push'](_0x222f34['shift']());}catch(_0x1904e5){_0x222f34['push'](_0x222f34['shift']());}}}(a274_0x2e20,0xabda9));function a274_0x499e(_0x5d8f27,_0xa0674c){_0x5d8f27=_0x5d8f27-0xbe;const _0x2e2098=a274_0x2e20();let _0x499e40=_0x2e2098[_0x5d8f27];return _0x499e40;}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=[a274_0x3bcd57(0xd9),a274_0x3bcd57(0xdc),'HOOK'];export function normalizeBffType(_0x301f2e){const _0x28c5a8=a274_0x3bcd57;if(!_0x301f2e)return undefined;const _0x449919=_0x301f2e[_0x28c5a8(0xc4)]()[_0x28c5a8(0xbf)]();return SUPPORTED_BFF_TYPES[_0x28c5a8(0xda)](_0x449919)?_0x449919:undefined;}async function scanJsFilesRecursively(_0x1cf8cf,_0x5916bb){const _0x508d1a=a274_0x3bcd57,_0x127667=[];try{const _0xa55157=await readdir(_0x1cf8cf,{'withFileTypes':!![]});for(const _0x5001d1 of _0xa55157){const _0x263674=join(_0x1cf8cf,_0x5001d1[_0x508d1a(0xcc)]);if(_0x5001d1[_0x508d1a(0xd8)]())_0x127667['push'](...await scanJsFilesRecursively(_0x263674,_0x5916bb+'/'+_0x5001d1['name']));else _0x5001d1[_0x508d1a(0xc7)]()&&_0x5001d1['name'][_0x508d1a(0xce)](_0x508d1a(0xdb))&&_0x127667['push']({'lockKey':_0x5916bb+'/'+_0x5001d1[_0x508d1a(0xcc)][_0x508d1a(0xc3)](/\.js$/,''),'filePath':_0x263674});}}catch(_0x1ae633){if(_0x1ae633[_0x508d1a(0xd3)]!==_0x508d1a(0xc9))throw _0x1ae633;}return _0x127667;}async function scanFlatFunctions(_0x39edaf,_0x4f867c){const _0x3005c0=a274_0x3bcd57,_0x6a69b7=join(_0x39edaf['scriptsRootDir'],_0x4f867c),_0x12c63c=await scanJsFilesRecursively(_0x6a69b7,_0x4f867c);return _0x12c63c[_0x3005c0(0xca)](({lockKey:_0x2a3617,filePath:_0x39872e})=>({'type':_0x4f867c,'name':_0x2a3617['split']('/')['at'](-0x1)??'','filePath':_0x39872e,'lockKey':_0x2a3617}));}async function scanHookFunctions(_0xe741a){const _0x18b403=a274_0x3bcd57,_0x1eac40=join(_0xe741a[_0x18b403(0xc6)],_0x18b403(0xd1)),_0x4dd2bf=[];try{const _0x38e51e=await readdir(_0x1eac40,{'withFileTypes':!![]});for(const _0x1f418c of _0x38e51e){if(!_0x1f418c[_0x18b403(0xd8)]())continue;const _0x19b038=_0x1f418c[_0x18b403(0xcc)],_0x4fc19b=join(_0x1eac40,_0x19b038),_0x4e30d2=await readdir(_0x4fc19b,{'withFileTypes':!![]});for(const _0x5b24cb of _0x4e30d2){if(!_0x5b24cb[_0x18b403(0xd8)]())continue;const _0x3b3866=_0x5b24cb['name'],_0x44de89=join(_0x4fc19b,_0x3b3866),_0x5c0235=await readdir(_0x44de89,{'withFileTypes':!![]});for(const _0xa4b856 of _0x5c0235){if(!_0xa4b856[_0x18b403(0xd8)]())continue;const _0xce0429=_0xa4b856['name'],_0x35711b=join(_0x44de89,_0xce0429),_0x530fee=await readdir(_0x35711b,{'withFileTypes':!![]});for(const _0x29110c of _0x530fee){if(!_0x29110c['isFile']()||!_0x29110c[_0x18b403(0xcc)]['endsWith']('.js'))continue;const _0x1a35d3=_0x29110c[_0x18b403(0xcc)]['replace'](/\.js$/,'');_0x4dd2bf[_0x18b403(0xe2)]({'type':_0x18b403(0xd1),'name':_0x1a35d3,'filePath':join(_0x35711b,_0x29110c[_0x18b403(0xcc)]),'lockKey':_0x18b403(0xc0)+_0x19b038+'/'+_0x3b3866+'/'+_0xce0429+'/'+_0x1a35d3,'alias':_0x19b038,'operationType':_0x3b3866,'functionNode':_0xce0429});}}}}}catch(_0x10ec80){if(_0x10ec80[_0x18b403(0xd3)]!==_0x18b403(0xc9))throw _0x10ec80;}return _0x4dd2bf;}export async function scanLocalBffFunctions(_0x1712bc,_0x4462e2){const _0x5a025c=a274_0x3bcd57;if(_0x4462e2===_0x5a025c(0xd9)||_0x4462e2===_0x5a025c(0xdc))return scanFlatFunctions(_0x1712bc,_0x4462e2);if(_0x4462e2===_0x5a025c(0xd1))return scanHookFunctions(_0x1712bc);const [_0x50a3c7,_0x1278c1,_0x1b1cc3]=await Promise[_0x5a025c(0xe0)]([scanFlatFunctions(_0x1712bc,_0x5a025c(0xd9)),scanFlatFunctions(_0x1712bc,_0x5a025c(0xdc)),scanHookFunctions(_0x1712bc)]);return[..._0x50a3c7,..._0x1278c1,..._0x1b1cc3];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x57ca05){return SAFE_LOCK_KEY_SEGMENT['test'](_0x57ca05)&&_0x57ca05!=='.'&&_0x57ca05!=='..';}function a274_0x2e20(){const _0x57247f=['afterScriptId','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','1540jcvHzn','18012fLHjys','50qBVZEm','every','toUpperCase','HOOK/','get','6863080xRKtfD','replace','trim','operationType','scriptsRootDir','isFile','235476tcBZsk','ENOENT','map','4756760upGYCB','name','110xAEYIG','endsWith','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','beforeScriptId','HOOK','functionName','code','set','F_OK','1107081HhoLqD','5248852jSNTQh','isDirectory','COMMON','includes','.js','ENDPOINT','functionNode','toLowerCase','after','all','7773pVnVCZ','push','datasetCode'];a274_0x2e20=function(){return _0x57247f;};return a274_0x2e20();}export function resolveLocalFilePathFromLockKey(_0xc3ff14,_0x188ebf){const _0x36e52c=a274_0x3bcd57,_0x1df1fe=_0x188ebf['split']('/');if(!_0x1df1fe[_0x36e52c(0xbe)](isSafeLockKeySegment))throw new Error(_0x36e52c(0xcf)+_0x188ebf);const _0x497f37=resolve(join(_0xc3ff14['scriptsRootDir'],..._0x1df1fe)+_0x36e52c(0xdb)),_0x21a6ae=resolve(_0xc3ff14[_0x36e52c(0xc6)]);if(_0x497f37!==_0x21a6ae&&!_0x497f37['startsWith'](_0x21a6ae+sep))throw new Error(_0x36e52c(0xe5)+_0x497f37);return _0x497f37;}export function createHookLocationMap(_0x42a918){const _0x2716d1=a274_0x3bcd57,_0x55bcf2=new Map();for(const _0x26cdea of _0x42a918){_0x26cdea[_0x2716d1(0xd0)]&&_0x55bcf2[_0x2716d1(0xd4)](_0x26cdea[_0x2716d1(0xd0)],{'datasetCode':_0x26cdea[_0x2716d1(0xe3)],'operationType':snakeToCamel(_0x26cdea['operationType']),'functionNode':'before'}),_0x26cdea[_0x2716d1(0xe4)]&&_0x55bcf2['set'](_0x26cdea[_0x2716d1(0xe4)],{'datasetCode':_0x26cdea['datasetCode'],'operationType':snakeToCamel(_0x26cdea[_0x2716d1(0xc5)]),'functionNode':_0x2716d1(0xdf)});}return _0x55bcf2;}export function resolveRemoteScriptTarget(_0x2d6b6d,_0x440ed9,_0x4c978d,_0x43acca,_0x4dfec3){const _0x136269=a274_0x3bcd57,_0x1d10a3=normalizeBffType(_0x440ed9['scriptType']);if(!_0x1d10a3||!_0x440ed9[_0x136269(0xd2)])return null;if(_0x1d10a3==='HOOK'){const _0x591395=_0x440ed9['id']?_0x4c978d[_0x136269(0xc1)](_0x440ed9['id']):undefined,_0x573cc3=findHookLocationByRemoteId(_0x43acca,_0x440ed9['id']),_0x4c418c=_0x591395?{..._0x573cc3?.[_0x136269(0xe3)]===_0x591395['datasetCode']?_0x573cc3:{},..._0x591395}:_0x573cc3;if(!_0x4c418c)return null;const _0x5e2c79=_0x4dfec3['get'](_0x4c418c[_0x136269(0xe3)][_0x136269(0xde)]()),_0x22c060=_0x5e2c79??_0x4c418c[_0x136269(0xe3)],_0x36a729={..._0x4c418c,'alias':_0x5e2c79},_0x348688='HOOK/'+_0x22c060+'/'+_0x36a729[_0x136269(0xc5)]+'/'+_0x36a729[_0x136269(0xdd)]+'/'+_0x440ed9['functionName'];if(!_0x348688['split']('/')[_0x136269(0xbe)](isSafeLockKeySegment))return null;return{'lockKey':_0x348688,'filePath':resolveLocalFilePathFromLockKey(_0x2d6b6d,_0x348688),'type':_0x136269(0xd1),'hookLocation':_0x36a729};}const _0x40e79c=_0x1d10a3+'/'+_0x440ed9[_0x136269(0xd2)];if(!_0x40e79c['split']('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0x40e79c,'filePath':resolveLocalFilePathFromLockKey(_0x2d6b6d,_0x40e79c),'type':_0x1d10a3};}export async function ensureParentDirectory(_0x41e3f8){await mkdir(dirname(_0x41e3f8),{'recursive':!![]});}export async function fileExists(_0x44e8fa){const _0x7a68cc=a274_0x3bcd57;try{return await access(_0x44e8fa,constants[_0x7a68cc(0xd5)]),!![];}catch{return![];}}export async function directoryExists(_0x130ae1){const _0xde4256=a274_0x3bcd57;try{const _0x30873f=await stat(_0x130ae1);return _0x30873f[_0xde4256(0xd8)]();}catch{return![];}}
1
+ const a274_0x599906=a274_0x455e;(function(_0x3b77cb,_0x826ade){const _0x4e2e79=a274_0x455e,_0x9e8357=_0x3b77cb();while(!![]){try{const _0x1e5bdb=parseInt(_0x4e2e79(0x119))/0x1+parseInt(_0x4e2e79(0x10f))/0x2*(parseInt(_0x4e2e79(0x10b))/0x3)+parseInt(_0x4e2e79(0x107))/0x4+-parseInt(_0x4e2e79(0xf9))/0x5+-parseInt(_0x4e2e79(0x102))/0x6+parseInt(_0x4e2e79(0xf5))/0x7+parseInt(_0x4e2e79(0x113))/0x8*(parseInt(_0x4e2e79(0x106))/0x9);if(_0x1e5bdb===_0x826ade)break;else _0x9e8357['push'](_0x9e8357['shift']());}catch(_0x36fa11){_0x9e8357['push'](_0x9e8357['shift']());}}}(a274_0xdd34,0x344c3));function a274_0x455e(_0x9be9ba,_0x193c33){_0x9be9ba=_0x9be9ba-0xf3;const _0xdd3406=a274_0xdd34();let _0x455e43=_0xdd3406[_0x9be9ba];return _0x455e43;}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',a274_0x599906(0x104),a274_0x599906(0xfa)];export function normalizeBffType(_0x2e604d){const _0x3c9c8f=a274_0x599906;if(!_0x2e604d)return undefined;const _0x17521c=_0x2e604d[_0x3c9c8f(0x10c)]()[_0x3c9c8f(0x110)]();return SUPPORTED_BFF_TYPES['includes'](_0x17521c)?_0x17521c:undefined;}async function scanJsFilesRecursively(_0x4b5db6,_0x20d5be){const _0x16d426=a274_0x599906,_0x520c80=[];try{const _0x24e94a=await readdir(_0x4b5db6,{'withFileTypes':!![]});for(const _0x546334 of _0x24e94a){const _0x146ca0=join(_0x4b5db6,_0x546334['name']);if(_0x546334['isDirectory']())_0x520c80['push'](...await scanJsFilesRecursively(_0x146ca0,_0x20d5be+'/'+_0x546334[_0x16d426(0x117)]));else _0x546334[_0x16d426(0x100)]()&&_0x546334[_0x16d426(0x117)][_0x16d426(0xff)](_0x16d426(0x10e))&&_0x520c80[_0x16d426(0xfc)]({'lockKey':_0x20d5be+'/'+_0x546334['name'][_0x16d426(0x11b)](/\.js$/,''),'filePath':_0x146ca0});}}catch(_0x187050){if(_0x187050[_0x16d426(0x115)]!=='ENOENT')throw _0x187050;}return _0x520c80;}async function scanFlatFunctions(_0x885e93,_0x2e916d){const _0x1cf447=a274_0x599906,_0x58f8e9=join(_0x885e93[_0x1cf447(0x116)],_0x2e916d),_0x48e793=await scanJsFilesRecursively(_0x58f8e9,_0x2e916d);return _0x48e793[_0x1cf447(0x109)](({lockKey:_0x1106d9,filePath:_0x328b9e})=>({'type':_0x2e916d,'name':_0x1106d9[_0x1cf447(0x11c)]('/')['at'](-0x1)??'','filePath':_0x328b9e,'lockKey':_0x1106d9}));}async function scanHookFunctions(_0x535224){const _0x4685d4=a274_0x599906,_0x2aea06=join(_0x535224[_0x4685d4(0x116)],_0x4685d4(0xfa)),_0x4451e3=[];try{const _0x66c113=await readdir(_0x2aea06,{'withFileTypes':!![]});for(const _0x1f8698 of _0x66c113){if(!_0x1f8698['isDirectory']())continue;const _0x83cc91=_0x1f8698['name'],_0x2eb85a=join(_0x2aea06,_0x83cc91),_0x20e262=await readdir(_0x2eb85a,{'withFileTypes':!![]});for(const _0x2b6f3e of _0x20e262){if(!_0x2b6f3e[_0x4685d4(0x101)]())continue;const _0x315f46=_0x2b6f3e['name'],_0x4938a7=join(_0x2eb85a,_0x315f46),_0x2f29a3=await readdir(_0x4938a7,{'withFileTypes':!![]});for(const _0x3387ac of _0x2f29a3){if(!_0x3387ac[_0x4685d4(0x101)]())continue;const _0x18308e=_0x3387ac[_0x4685d4(0x117)],_0xee6578=join(_0x4938a7,_0x18308e),_0x34ee70=await readdir(_0xee6578,{'withFileTypes':!![]});for(const _0x301e91 of _0x34ee70){if(!_0x301e91[_0x4685d4(0x100)]()||!_0x301e91['name'][_0x4685d4(0xff)]('.js'))continue;const _0x5a486f=_0x301e91['name'][_0x4685d4(0x11b)](/\.js$/,'');_0x4451e3[_0x4685d4(0xfc)]({'type':_0x4685d4(0xfa),'name':_0x5a486f,'filePath':join(_0xee6578,_0x301e91[_0x4685d4(0x117)]),'lockKey':_0x4685d4(0x114)+_0x83cc91+'/'+_0x315f46+'/'+_0x18308e+'/'+_0x5a486f,'alias':_0x83cc91,'operationType':_0x315f46,'functionNode':_0x18308e});}}}}}catch(_0x3ca21c){if(_0x3ca21c[_0x4685d4(0x115)]!==_0x4685d4(0xf6))throw _0x3ca21c;}return _0x4451e3;}export async function scanLocalBffFunctions(_0x365010,_0x57b632){const _0x47e1c4=a274_0x599906;if(_0x57b632===_0x47e1c4(0x105)||_0x57b632==='ENDPOINT')return scanFlatFunctions(_0x365010,_0x57b632);if(_0x57b632==='HOOK')return scanHookFunctions(_0x365010);const [_0xe82825,_0x147c3e,_0x590544]=await Promise[_0x47e1c4(0x112)]([scanFlatFunctions(_0x365010,'COMMON'),scanFlatFunctions(_0x365010,_0x47e1c4(0x104)),scanHookFunctions(_0x365010)]);return[..._0xe82825,..._0x147c3e,..._0x590544];}const SAFE_LOCK_KEY_SEGMENT=/^[A-Za-z0-9_$.-]+$/;export function isSafeLockKeySegment(_0x9ae58){const _0x344e06=a274_0x599906;return SAFE_LOCK_KEY_SEGMENT[_0x344e06(0x118)](_0x9ae58)&&_0x9ae58!=='.'&&_0x9ae58!=='..';}export function resolveLocalFilePathFromLockKey(_0x3dbdad,_0xc4182f){const _0x499137=a274_0x599906,_0xa9293b=_0xc4182f[_0x499137(0x11c)]('/');if(!_0xa9293b['every'](isSafeLockKeySegment))throw new Error(_0x499137(0x11a)+_0xc4182f);const _0x5ead7d=resolve(join(_0x3dbdad[_0x499137(0x116)],..._0xa9293b)+_0x499137(0x10e)),_0x3a91e4=resolve(_0x3dbdad['scriptsRootDir']);if(_0x5ead7d!==_0x3a91e4&&!_0x5ead7d['startsWith'](_0x3a91e4+sep))throw new Error(_0x499137(0x11d)+_0x5ead7d);return _0x5ead7d;}export function createHookLocationMap(_0x3d1b8c){const _0x2d4a70=a274_0x599906,_0x363fa3=new Map();for(const _0x5bb738 of _0x3d1b8c){_0x5bb738[_0x2d4a70(0xf4)]&&_0x363fa3[_0x2d4a70(0xf8)](_0x5bb738[_0x2d4a70(0xf4)],{'datasetCode':_0x5bb738[_0x2d4a70(0x11e)],'operationType':snakeToCamel(_0x5bb738['operationType']),'functionNode':'before'}),_0x5bb738[_0x2d4a70(0xfb)]&&_0x363fa3[_0x2d4a70(0xf8)](_0x5bb738['afterScriptId'],{'datasetCode':_0x5bb738[_0x2d4a70(0x11e)],'operationType':snakeToCamel(_0x5bb738[_0x2d4a70(0x10a)]),'functionNode':_0x2d4a70(0xf7)});}return _0x363fa3;}function a274_0xdd34(){const _0x238ae3=['trim','scriptType','.js','52964wykYUC','toUpperCase','toLowerCase','all','1740328DkTPjD','HOOK/','code','scriptsRootDir','name','test','57489JJHMRp','Unsafe\x20Backend\x20Function\x20lock\x20key\x20(traversal\x20or\x20invalid\x20segment):\x20','replace','split','Resolved\x20Backend\x20Function\x20script\x20path\x20escapes\x20scripts\x20root:\x20','datasetCode','every','beforeScriptId','1752485TUUujN','ENOENT','after','set','2111405jcerNN','HOOK','afterScriptId','push','functionName','get','endsWith','isFile','isDirectory','1580406AWMguB','functionNode','ENDPOINT','COMMON','18nVDrgS','521940AWoiIf','F_OK','map','operationType','3XXFSak'];a274_0xdd34=function(){return _0x238ae3;};return a274_0xdd34();}export function resolveRemoteScriptTarget(_0xb8d07b,_0x52c7fd,_0x2fb447,_0x571671,_0x40db17){const _0x1d2ac3=a274_0x599906,_0x48500b=normalizeBffType(_0x52c7fd[_0x1d2ac3(0x10d)]);if(!_0x48500b||!_0x52c7fd[_0x1d2ac3(0xfd)])return null;if(_0x48500b==='HOOK'){const _0x13a66e=_0x52c7fd['id']?_0x2fb447[_0x1d2ac3(0xfe)](_0x52c7fd['id']):undefined,_0x56a54d=findHookLocationByRemoteId(_0x571671,_0x52c7fd['id']),_0x569a1e=_0x13a66e?{..._0x56a54d?.['datasetCode']===_0x13a66e[_0x1d2ac3(0x11e)]?_0x56a54d:{},..._0x13a66e}:_0x56a54d;if(!_0x569a1e)return null;const _0x4c0861=_0x40db17[_0x1d2ac3(0xfe)](_0x569a1e[_0x1d2ac3(0x11e)][_0x1d2ac3(0x111)]()),_0x510bd1=_0x4c0861??_0x569a1e[_0x1d2ac3(0x11e)],_0x591fc4={..._0x569a1e,'alias':_0x4c0861},_0x49deff=_0x1d2ac3(0x114)+_0x510bd1+'/'+_0x591fc4[_0x1d2ac3(0x10a)]+'/'+_0x591fc4[_0x1d2ac3(0x103)]+'/'+_0x52c7fd[_0x1d2ac3(0xfd)];if(!_0x49deff[_0x1d2ac3(0x11c)]('/')[_0x1d2ac3(0xf3)](isSafeLockKeySegment))return null;return{'lockKey':_0x49deff,'filePath':resolveLocalFilePathFromLockKey(_0xb8d07b,_0x49deff),'type':_0x1d2ac3(0xfa),'hookLocation':_0x591fc4};}const _0x2257f3=_0x48500b+'/'+_0x52c7fd['functionName'];if(!_0x2257f3[_0x1d2ac3(0x11c)]('/')['every'](isSafeLockKeySegment))return null;return{'lockKey':_0x2257f3,'filePath':resolveLocalFilePathFromLockKey(_0xb8d07b,_0x2257f3),'type':_0x48500b};}export async function ensureParentDirectory(_0x3332d1){await mkdir(dirname(_0x3332d1),{'recursive':!![]});}export async function fileExists(_0x5f252a){const _0x48f63c=a274_0x599906;try{return await access(_0x5f252a,constants[_0x48f63c(0x108)]),!![];}catch{return![];}}export async function directoryExists(_0x2c350a){const _0x4911d3=a274_0x599906;try{const _0x3bf63d=await stat(_0x2c350a);return _0x3bf63d[_0x4911d3(0x101)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x517ef8,_0x36ec57){const _0x56d134=a275_0x1f73,_0x2d6871=_0x517ef8();while(!![]){try{const _0x11b973=parseInt(_0x56d134(0x1db))/0x1*(parseInt(_0x56d134(0x1e0))/0x2)+parseInt(_0x56d134(0x1df))/0x3+-parseInt(_0x56d134(0x1e5))/0x4+parseInt(_0x56d134(0x1e4))/0x5+parseInt(_0x56d134(0x1dd))/0x6*(-parseInt(_0x56d134(0x1e7))/0x7)+parseInt(_0x56d134(0x1de))/0x8+-parseInt(_0x56d134(0x1e3))/0x9;if(_0x11b973===_0x36ec57)break;else _0x2d6871['push'](_0x2d6871['shift']());}catch(_0x4dcf58){_0x2d6871['push'](_0x2d6871['shift']());}}}(a275_0x2780,0x27904));import{readFile}from'node:fs/promises';import a275_0x14cfac from'node:crypto';function a275_0x2780(){const _0x422fda=['234URcUEU','1256472gjOqeZ','457074zuteDr','1680MNhdqN','update','hex','794583jmrgTg','838450SXkAdS','744316jVMTVP','digest','53137ICQLDl','md5','304stsDOh','createHash'];a275_0x2780=function(){return _0x422fda;};return a275_0x2780();}function a275_0x1f73(_0x482df4,_0xf8a0c5){_0x482df4=_0x482df4-0x1db;const _0x2780ad=a275_0x2780();let _0x1f73fa=_0x2780ad[_0x482df4];return _0x1f73fa;}export function computeContentHash(_0x38521c){const _0x1c5a8d=a275_0x1f73;return a275_0x14cfac[_0x1c5a8d(0x1dc)](_0x1c5a8d(0x1e8))[_0x1c5a8d(0x1e1)](_0x38521c)[_0x1c5a8d(0x1e6)](_0x1c5a8d(0x1e2));}export async function computeFileHash(_0x160f8e){const _0x444c4f=await readFile(_0x160f8e,'utf8');return computeContentHash(_0x444c4f);}
1
+ (function(_0x5e2355,_0x29d25b){const _0x1a02fb=a275_0x3763,_0x4bc670=_0x5e2355();while(!![]){try{const _0x2f5c10=parseInt(_0x1a02fb(0xca))/0x1+-parseInt(_0x1a02fb(0xcf))/0x2+-parseInt(_0x1a02fb(0xc4))/0x3+parseInt(_0x1a02fb(0xcd))/0x4+-parseInt(_0x1a02fb(0xc5))/0x5+-parseInt(_0x1a02fb(0xd0))/0x6+-parseInt(_0x1a02fb(0xc8))/0x7*(-parseInt(_0x1a02fb(0xc7))/0x8);if(_0x2f5c10===_0x29d25b)break;else _0x4bc670['push'](_0x4bc670['shift']());}catch(_0x51ca18){_0x4bc670['push'](_0x4bc670['shift']());}}}(a275_0x3d58,0xdd067));import{readFile}from'node:fs/promises';function a275_0x3d58(){const _0x2f7286=['7yYepWU','md5','1135641rdISTk','utf8','createHash','6513920bXuzek','hex','1179532ojEasS','7209330cywOxs','2001iGdPaK','1297815bPfGzH','digest','1541992UJByPz'];a275_0x3d58=function(){return _0x2f7286;};return a275_0x3d58();}import a275_0x2efe8c from'node:crypto';export function computeContentHash(_0x1be50e){const _0x51ea83=a275_0x3763;return a275_0x2efe8c[_0x51ea83(0xcc)](_0x51ea83(0xc9))['update'](_0x1be50e)[_0x51ea83(0xc6)](_0x51ea83(0xce));}function a275_0x3763(_0x4425bf,_0x48a5d5){_0x4425bf=_0x4425bf-0xc4;const _0x3d58f0=a275_0x3d58();let _0x37636d=_0x3d58f0[_0x4425bf];return _0x37636d;}export async function computeFileHash(_0x184f4c){const _0x26d94b=a275_0x3763,_0x201022=await readFile(_0x184f4c,_0x26d94b(0xcb));return computeContentHash(_0x201022);}
@@ -1 +1 @@
1
- (function(_0x1050d7,_0x30822f){const _0x23a1a2=a276_0x47f9,_0x141d54=_0x1050d7();while(!![]){try{const _0x32601b=parseInt(_0x23a1a2(0x12c))/0x1*(-parseInt(_0x23a1a2(0x156))/0x2)+parseInt(_0x23a1a2(0x13d))/0x3*(parseInt(_0x23a1a2(0x139))/0x4)+parseInt(_0x23a1a2(0x150))/0x5*(-parseInt(_0x23a1a2(0x13a))/0x6)+-parseInt(_0x23a1a2(0x13c))/0x7+-parseInt(_0x23a1a2(0x132))/0x8*(parseInt(_0x23a1a2(0x128))/0x9)+-parseInt(_0x23a1a2(0x154))/0xa*(-parseInt(_0x23a1a2(0x135))/0xb)+parseInt(_0x23a1a2(0x14a))/0xc;if(_0x32601b===_0x30822f)break;else _0x141d54['push'](_0x141d54['shift']());}catch(_0x1dc83b){_0x141d54['push'](_0x141d54['shift']());}}}(a276_0x4a04,0xd7283));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x5f4e04){const _0x445ec9=a276_0x47f9,_0x292fb2=[];for(const [_0x592900,_0x1e49f7]of Object['entries'](_0x5f4e04['functions'])){const [_0x4295be,_0x4c6e08]=_0x592900[_0x445ec9(0x131)]('/');if(_0x4295be!==_0x445ec9(0x14d)||!_0x4c6e08||!_0x1e49f7[_0x445ec9(0x143)])continue;_0x292fb2[_0x445ec9(0x134)]({'alias':_0x4c6e08,'datasetCode':_0x1e49f7[_0x445ec9(0x143)]});}return _0x292fb2;}export function uniqueTrackedHookDirectoryByDataset(_0x1acb1d){const _0x28cf34=a276_0x47f9,_0x1efac1=new Map();for(const _0x22a5cb of trackedHookDirectoryMappings(_0x1acb1d)){const _0x2d4df6=directoryIdentity(_0x22a5cb['datasetCode']),_0xe2f172=_0x1efac1[_0x28cf34(0x12b)](_0x2d4df6)??new Map();_0xe2f172[_0x28cf34(0x141)](directoryIdentity(_0x22a5cb[_0x28cf34(0x13f)]),_0x22a5cb[_0x28cf34(0x13f)]),_0x1efac1[_0x28cf34(0x141)](_0x2d4df6,_0xe2f172);}const _0x3a1c08=new Map();for(const [_0x5184ac,_0x3343c6]of _0x1efac1){if(_0x3343c6[_0x28cf34(0x148)]>0x1)throw hookDirectoryError(_0x28cf34(0x130),'Dataset\x20\x22'+_0x5184ac+'\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20'+[..._0x3343c6[_0x28cf34(0x12a)]()][_0x28cf34(0x14c)](',\x20')+'.',{'datasetCode':_0x5184ac,'directories':[..._0x3343c6[_0x28cf34(0x12a)]()]});_0x3a1c08['set'](_0x5184ac,[..._0x3343c6['values']()][0x0]);}return _0x3a1c08;}export function assertUnambiguousHookDirectoryMappings(_0x3c2541){const _0x16f12d=a276_0x47f9,_0x3b55d4=new Map();for(const {alias:_0x59ae2e,datasetCode:_0x3f3691}of _0x3c2541){const _0x282858=directoryIdentity(_0x59ae2e),_0x3c7743=_0x3b55d4[_0x16f12d(0x12b)](_0x282858)??new Set();_0x3c7743['add'](_0x3f3691),_0x3b55d4[_0x16f12d(0x141)](_0x282858,_0x3c7743);}for(const [_0x1ed8eb,_0x115032]of _0x3b55d4){if(_0x115032[_0x16f12d(0x148)]>0x1)throw hookDirectoryError(_0x16f12d(0x142),_0x16f12d(0x153)+_0x1ed8eb+_0x16f12d(0x14f),{'directoryName':_0x1ed8eb,'datasetCodes':[..._0x115032]});}}export function assertUnambiguousHookAliases(_0x1bf918){const _0x3512a5=a276_0x47f9,_0xb2b3f3=[..._0x1bf918],_0x599ffd=new Map(),_0x1d5d5c=new Map();for(const {alias:_0x51d0c9,datasetCode:_0x4a7ce6}of _0xb2b3f3){const _0x489eee=directoryIdentity(_0x51d0c9),_0x18fc19=directoryIdentity(_0x4a7ce6),_0x8f05c0=_0x599ffd[_0x3512a5(0x12b)](_0x489eee)??new Set();_0x8f05c0[_0x3512a5(0x136)](_0x4a7ce6),_0x599ffd[_0x3512a5(0x141)](_0x489eee,_0x8f05c0);const _0x2b2269=_0x1d5d5c['get'](_0x18fc19)??new Set();_0x2b2269[_0x3512a5(0x136)](_0x51d0c9),_0x1d5d5c['set'](_0x18fc19,_0x2b2269);}for(const [_0x28598,_0x52cd08]of _0x599ffd){if(_0x52cd08[_0x3512a5(0x148)]>0x1)throw hookDirectoryError(_0x3512a5(0x138),'SDK\x20alias\x20\x22'+_0x28598+_0x3512a5(0x14f),{'alias':_0x28598,'datasetCodes':[..._0x52cd08]});}for(const [_0x5dd049,_0x396459]of _0x1d5d5c){if(_0x396459[_0x3512a5(0x148)]>0x1)throw hookDirectoryError(_0x3512a5(0x138),_0x3512a5(0x149)+_0x5dd049+'\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.',{'datasetCode':_0x5dd049,'aliases':[..._0x396459]});}}export function buildHookDirectoryIndexes(_0x1f9e48,_0x5cab36=[]){const _0xa3e14f=a276_0x47f9,_0x55d401=[..._0x5cab36];assertUnambiguousHookDirectoryMappings(_0x55d401[_0xa3e14f(0x155)](([_0x1ba8f8,_0x417d0d])=>({'alias':_0x1ba8f8,'datasetCode':_0x417d0d})));const _0x18ab3d=new Map(),_0x30ae84=new Map();for(const _0x1d459a of _0x1f9e48){appendUnique(_0x18ab3d,directoryIdentity(_0x1d459a[_0xa3e14f(0x13e)]),_0x1d459a,_0x48d38e=>_0x48d38e[_0xa3e14f(0x13e)]);}for(const [_0x310015,_0x40863a]of _0x55d401){appendUnique(_0x30ae84,directoryIdentity(_0x310015),_0x40863a,_0x4ebf51=>_0x4ebf51);}return{'datasetCodeToDatasets':_0x18ab3d,'aliasToDatasetCodes':_0x30ae84};}export function resolvePushHookDirectory(_0x21626e,_0x3d52b7,_0x1d77a3){const _0x1dbf7e=a276_0x47f9,_0x297391=directoryIdentity(_0x21626e),_0x3c4c35=_0x1d77a3[_0x1dbf7e(0x125)][_0x1dbf7e(0x12b)](_0x297391)??[],_0x3ad416=_0x1d77a3[_0x1dbf7e(0x129)]['get'](_0x297391)??[],_0xb5d5ac=new Set([..._0x3c4c35[_0x1dbf7e(0x155)](_0x1d090c=>_0x1d090c[_0x1dbf7e(0x13e)]),..._0x3ad416]);if(_0xb5d5ac[_0x1dbf7e(0x148)]>0x1)throw hookDirectoryError(_0x1dbf7e(0x142),_0x1dbf7e(0x153)+_0x21626e+'\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.',{'directoryName':_0x21626e,'datasetCodes':[..._0xb5d5ac]});const _0x361ed2=[..._0xb5d5ac][0x0];if(_0x361ed2&&_0x3d52b7?.[_0x1dbf7e(0x143)]&&_0x361ed2!==_0x3d52b7[_0x1dbf7e(0x143)])throw hookDirectoryError(_0x1dbf7e(0x133),'HOOK\x20directory\x20\x22'+_0x21626e+'\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22'+_0x3d52b7[_0x1dbf7e(0x143)]+_0x1dbf7e(0x144)+_0x361ed2+'\x22.',{'directoryName':_0x21626e,'datasetCode':_0x361ed2,'lockedDatasetCode':_0x3d52b7['datasetCode']});const _0x527ae1=_0x361ed2?findDatasetByCode(_0x1d77a3,_0x361ed2):undefined,_0xd40674=!!_0x361ed2&&_0x3ad416[_0x1dbf7e(0x12f)](_0x361ed2);if(_0x527ae1)return{'dataset':_0x527ae1,'datasetCode':_0x527ae1[_0x1dbf7e(0x13e)],..._0xd40674?{'alias':_0x21626e}:{},'directoryProtocol':_0xd40674?_0x1dbf7e(0x13f):_0x1dbf7e(0x143),'warnings':[]};const _0x266945=_0x3d52b7?.['datasetCode'];if(_0x266945){const _0x2bb964=findDatasetByCode(_0x1d77a3,_0x266945);if(_0x2bb964)return{'dataset':_0x2bb964,'datasetCode':_0x2bb964[_0x1dbf7e(0x13e)],..._0x3d52b7[_0x1dbf7e(0x13f)]?{'alias':_0x3d52b7[_0x1dbf7e(0x13f)]}:{},'directoryProtocol':_0x3d52b7['alias']?'alias':_0x1dbf7e(0x143),'warnings':[]};}if(_0x361ed2||_0x266945){const _0x37069c=_0x361ed2??_0x266945;throw hookDirectoryError(_0x1dbf7e(0x137),_0x1dbf7e(0x153)+_0x21626e+_0x1dbf7e(0x126),{'directoryName':_0x21626e,'datasetCode':_0x37069c});}throw hookDirectoryError(_0x1dbf7e(0x146),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x21626e+_0x1dbf7e(0x13b),{'directoryName':_0x21626e});}export function preflightPushHookDirectories(_0xedb49f,_0x45c013,_0x49aea5,_0x242e58){const _0x1387d8=a276_0x47f9,_0x36e865=new Map(),_0x2edd2e=new Map();for(const _0x1efce2 of _0xedb49f){if(_0x1efce2['type']!==_0x1387d8(0x14d))continue;const _0x59ffaa=_0x1efce2[_0x1387d8(0x13f)];if(!_0x59ffaa)throw hookDirectoryError('HOOK_DIRECTORY_UNRESOLVED',_0x1387d8(0x14e)+_0x1efce2[_0x1387d8(0x145)],{'lockKey':_0x1efce2[_0x1387d8(0x145)]});let _0x12a1bf;try{_0x12a1bf=resolvePushHookDirectory(_0x59ffaa,_0x45c013['functions'][_0x1efce2[_0x1387d8(0x145)]],_0x49aea5);}catch(_0x1e7bca){if(_0x242e58&&_0x1e7bca instanceof CliError&&[_0x1387d8(0x137),_0x1387d8(0x146)][_0x1387d8(0x12f)](_0x1e7bca[_0x1387d8(0x13e)])){_0x242e58['set'](_0x1efce2[_0x1387d8(0x145)],_0x1e7bca['message']);continue;}throw _0x1e7bca;}_0x36e865['set'](_0x1efce2[_0x1387d8(0x145)],_0x12a1bf);const _0x5eef83=_0x2edd2e[_0x1387d8(0x12b)](_0x12a1bf['datasetCode'])??new Set();_0x5eef83[_0x1387d8(0x136)](_0x59ffaa),_0x2edd2e[_0x1387d8(0x141)](_0x12a1bf[_0x1387d8(0x143)],_0x5eef83);}for(const [_0x16c577,_0x36a485]of _0x2edd2e){if(_0x36a485[_0x1387d8(0x148)]>0x1)throw hookDirectoryError(_0x1387d8(0x130),_0x1387d8(0x149)+_0x16c577+'\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20'+[..._0x36a485][_0x1387d8(0x14c)](',\x20')+'.',{'datasetCode':_0x16c577,'directories':[..._0x36a485]});}return _0x36e865;}export function hookDirectoryError(_0x146d41,_0x41993d,_0x108f9b){const _0x3446b7=a276_0x47f9,_0x22c82d=new CliError(_0x146d41,0x2,_0x146d41+':\x20'+_0x41993d);return _0x22c82d[_0x3446b7(0x12e)]=_0x108f9b,_0x22c82d;}function findDatasetByCode(_0x4aee84,_0x5518af){const _0x3df98b=a276_0x47f9,_0x55d1e7=_0x4aee84[_0x3df98b(0x125)][_0x3df98b(0x12b)](directoryIdentity(_0x5518af))??[];if(_0x55d1e7[_0x3df98b(0x140)]>0x1)throw hookDirectoryError(_0x3df98b(0x127),'Dataset\x20code\x20\x22'+_0x5518af+_0x3df98b(0x152),{'datasetCode':_0x5518af,'candidates':_0x55d1e7['map'](datasetFact)});return _0x55d1e7[0x0];}function a276_0x47f9(_0x4bb511,_0x4e1a5f){_0x4bb511=_0x4bb511-0x125;const _0x4a04f7=a276_0x4a04();let _0x47f978=_0x4a04f7[_0x4bb511];return _0x47f978;}function a276_0x4a04(){const _0x423947=['\x22\x20to\x20\x22','lockKey','HOOK_DIRECTORY_UNRESOLVED','normalize','size','Dataset\x20\x22','60258852AxiShS','some','join','HOOK','Incomplete\x20HOOK\x20path:\x20','\x22\x20resolves\x20to\x20multiple\x20Datasets.','5252620NvRFlx','name','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','HOOK\x20directory\x20\x22','10WPNCoG','map','12626qFoWtP','datasetCodeToDatasets','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','HOOK_DATASET_CODE_AMBIGUOUS','9lErGrk','aliasToDatasetCodes','values','get','89hNnvBs','toLowerCase','details','includes','HOOK_DUPLICATE_DIRECTORIES','split','10124328XlBHhT','HOOK_MAPPING_DRIFT','push','4126903jKoKTl','add','HOOK_DATASET_NOT_FOUND','HOOK_ALIAS_AMBIGUOUS','4SxlfKY','6hOlfJP','\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.','11531625wnMnYF','29508vzXDsm','code','alias','length','set','HOOK_DIRECTORY_AMBIGUOUS','datasetCode'];a276_0x4a04=function(){return _0x423947;};return a276_0x4a04();}function directoryIdentity(_0xa5ee58){const _0x17cb91=a276_0x47f9;return _0xa5ee58[_0x17cb91(0x147)]('NFC')[_0x17cb91(0x12d)]();}function appendUnique(_0x74c96a,_0x18b0c6,_0x1b1398,_0x230678){const _0x2e48d4=a276_0x47f9,_0x59409f=_0x74c96a['get'](_0x18b0c6)??[];!_0x59409f[_0x2e48d4(0x14b)](_0x1423b1=>_0x230678(_0x1423b1)===_0x230678(_0x1b1398))&&_0x59409f['push'](_0x1b1398),_0x74c96a[_0x2e48d4(0x141)](_0x18b0c6,_0x59409f);}function datasetFact(_0x28af02){const _0x154f5a=a276_0x47f9;return{'id':_0x28af02['id'],'name':_0x28af02[_0x154f5a(0x151)],'datasetCode':_0x28af02[_0x154f5a(0x13e)]};}
1
+ (function(_0x1e5445,_0x23616e){const _0x13b9a2=a276_0x3e9f,_0x49a63d=_0x1e5445();while(!![]){try{const _0x1f6204=parseInt(_0x13b9a2(0xd8))/0x1*(-parseInt(_0x13b9a2(0xb3))/0x2)+-parseInt(_0x13b9a2(0xd6))/0x3*(parseInt(_0x13b9a2(0xb7))/0x4)+-parseInt(_0x13b9a2(0xaf))/0x5+parseInt(_0x13b9a2(0xca))/0x6+parseInt(_0x13b9a2(0xde))/0x7*(-parseInt(_0x13b9a2(0xac))/0x8)+-parseInt(_0x13b9a2(0xbd))/0x9+parseInt(_0x13b9a2(0xc9))/0xa;if(_0x1f6204===_0x23616e)break;else _0x49a63d['push'](_0x49a63d['shift']());}catch(_0x27223){_0x49a63d['push'](_0x49a63d['shift']());}}}(a276_0x24e4,0xb2f21));import{CliError}from'../../errors.js';export function trackedHookDirectoryMappings(_0x2999c7){const _0xd5f6b6=a276_0x3e9f,_0x367e3c=[];for(const [_0x6d0bb3,_0x116ad0]of Object[_0xd5f6b6(0xcf)](_0x2999c7[_0xd5f6b6(0xad)])){const [_0x21f8df,_0x5957aa]=_0x6d0bb3[_0xd5f6b6(0xc3)]('/');if(_0x21f8df!=='HOOK'||!_0x5957aa||!_0x116ad0[_0xd5f6b6(0xc5)])continue;_0x367e3c[_0xd5f6b6(0xcc)]({'alias':_0x5957aa,'datasetCode':_0x116ad0[_0xd5f6b6(0xc5)]});}return _0x367e3c;}export function uniqueTrackedHookDirectoryByDataset(_0x38551b){const _0x5331fc=a276_0x3e9f,_0x3e368c=new Map();for(const _0x1b630c of trackedHookDirectoryMappings(_0x38551b)){const _0x9f39c=directoryIdentity(_0x1b630c[_0x5331fc(0xc5)]),_0x1cde31=_0x3e368c[_0x5331fc(0xb8)](_0x9f39c)??new Map();_0x1cde31['set'](directoryIdentity(_0x1b630c['alias']),_0x1b630c[_0x5331fc(0xe1)]),_0x3e368c[_0x5331fc(0xc6)](_0x9f39c,_0x1cde31);}const _0x32b5e9=new Map();for(const [_0x4e7c80,_0x14a4de]of _0x3e368c){if(_0x14a4de[_0x5331fc(0xcd)]>0x1)throw hookDirectoryError(_0x5331fc(0xab),_0x5331fc(0xdc)+_0x4e7c80+_0x5331fc(0xae)+[..._0x14a4de[_0x5331fc(0xb6)]()][_0x5331fc(0xd5)](',\x20')+'.',{'datasetCode':_0x4e7c80,'directories':[..._0x14a4de[_0x5331fc(0xb6)]()]});_0x32b5e9[_0x5331fc(0xc6)](_0x4e7c80,[..._0x14a4de[_0x5331fc(0xb6)]()][0x0]);}return _0x32b5e9;}export function assertUnambiguousHookDirectoryMappings(_0x52042b){const _0x1c7a8f=a276_0x3e9f,_0x18da33=new Map();for(const {alias:_0x457d41,datasetCode:_0x644d3d}of _0x52042b){const _0x1998d3=directoryIdentity(_0x457d41),_0x10f165=_0x18da33['get'](_0x1998d3)??new Set();_0x10f165['add'](_0x644d3d),_0x18da33['set'](_0x1998d3,_0x10f165);}for(const [_0x4fbff0,_0x45a2af]of _0x18da33){if(_0x45a2af[_0x1c7a8f(0xcd)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x1c7a8f(0xb1)+_0x4fbff0+'\x22\x20resolves\x20to\x20multiple\x20Datasets.',{'directoryName':_0x4fbff0,'datasetCodes':[..._0x45a2af]});}}export function assertUnambiguousHookAliases(_0x3e9cca){const _0x33816a=a276_0x3e9f,_0x1c0712=[..._0x3e9cca],_0x4fc8cb=new Map(),_0x2c4c67=new Map();for(const {alias:_0x59e63f,datasetCode:_0x32c699}of _0x1c0712){const _0x3dc1ed=directoryIdentity(_0x59e63f),_0x34389d=directoryIdentity(_0x32c699),_0x4540cf=_0x4fc8cb['get'](_0x3dc1ed)??new Set();_0x4540cf[_0x33816a(0xda)](_0x32c699),_0x4fc8cb['set'](_0x3dc1ed,_0x4540cf);const _0x4fbfc5=_0x2c4c67[_0x33816a(0xb8)](_0x34389d)??new Set();_0x4fbfc5['add'](_0x59e63f),_0x2c4c67[_0x33816a(0xc6)](_0x34389d,_0x4fbfc5);}for(const [_0x5f3847,_0x230a6b]of _0x4fc8cb){if(_0x230a6b[_0x33816a(0xcd)]>0x1)throw hookDirectoryError(_0x33816a(0xd0),_0x33816a(0xd4)+_0x5f3847+_0x33816a(0xb2),{'alias':_0x5f3847,'datasetCodes':[..._0x230a6b]});}for(const [_0x3d4e29,_0x39cde5]of _0x2c4c67){if(_0x39cde5[_0x33816a(0xcd)]>0x1)throw hookDirectoryError('HOOK_ALIAS_AMBIGUOUS',_0x33816a(0xdc)+_0x3d4e29+_0x33816a(0xc1),{'datasetCode':_0x3d4e29,'aliases':[..._0x39cde5]});}}export function buildHookDirectoryIndexes(_0x4a6f67,_0xa1649c=[]){const _0x2f7843=a276_0x3e9f,_0x48d39e=[..._0xa1649c];assertUnambiguousHookDirectoryMappings(_0x48d39e[_0x2f7843(0xd3)](([_0x3f1375,_0x2f7427])=>({'alias':_0x3f1375,'datasetCode':_0x2f7427})));const _0x2bf4cf=new Map(),_0x562a00=new Map();for(const _0x36b30a of _0x4a6f67){appendUnique(_0x2bf4cf,directoryIdentity(_0x36b30a[_0x2f7843(0xdd)]),_0x36b30a,_0x2e3f7c=>_0x2e3f7c[_0x2f7843(0xdd)]);}for(const [_0x2c2467,_0x1a5ba3]of _0x48d39e){appendUnique(_0x562a00,directoryIdentity(_0x2c2467),_0x1a5ba3,_0xa94595=>_0xa94595);}return{'datasetCodeToDatasets':_0x2bf4cf,'aliasToDatasetCodes':_0x562a00};}export function resolvePushHookDirectory(_0x30f85b,_0x406c16,_0x1ce10f){const _0x2cbf78=a276_0x3e9f,_0x175561=directoryIdentity(_0x30f85b),_0x4b5991=_0x1ce10f[_0x2cbf78(0xd7)][_0x2cbf78(0xb8)](_0x175561)??[],_0x346dbf=_0x1ce10f[_0x2cbf78(0xd9)][_0x2cbf78(0xb8)](_0x175561)??[],_0x160f67=new Set([..._0x4b5991[_0x2cbf78(0xd3)](_0x185a1=>_0x185a1[_0x2cbf78(0xdd)]),..._0x346dbf]);if(_0x160f67[_0x2cbf78(0xcd)]>0x1)throw hookDirectoryError('HOOK_DIRECTORY_AMBIGUOUS',_0x2cbf78(0xb1)+_0x30f85b+_0x2cbf78(0xc2),{'directoryName':_0x30f85b,'datasetCodes':[..._0x160f67]});const _0x54d396=[..._0x160f67][0x0];if(_0x54d396&&_0x406c16?.[_0x2cbf78(0xc5)]&&_0x54d396!==_0x406c16[_0x2cbf78(0xc5)])throw hookDirectoryError('HOOK_MAPPING_DRIFT',_0x2cbf78(0xb1)+_0x30f85b+_0x2cbf78(0xaa)+_0x406c16[_0x2cbf78(0xc5)]+_0x2cbf78(0xbc)+_0x54d396+'\x22.',{'directoryName':_0x30f85b,'datasetCode':_0x54d396,'lockedDatasetCode':_0x406c16[_0x2cbf78(0xc5)]});const _0x1d1211=_0x54d396?findDatasetByCode(_0x1ce10f,_0x54d396):undefined,_0x14b410=!!_0x54d396&&_0x346dbf[_0x2cbf78(0xba)](_0x54d396);if(_0x1d1211)return{'dataset':_0x1d1211,'datasetCode':_0x1d1211[_0x2cbf78(0xdd)],..._0x14b410?{'alias':_0x30f85b}:{},'directoryProtocol':_0x14b410?_0x2cbf78(0xe1):_0x2cbf78(0xc5),'warnings':[]};const _0x30593e=_0x406c16?.[_0x2cbf78(0xc5)];if(_0x30593e){const _0x2d2f10=findDatasetByCode(_0x1ce10f,_0x30593e);if(_0x2d2f10)return{'dataset':_0x2d2f10,'datasetCode':_0x2d2f10['code'],..._0x406c16['alias']?{'alias':_0x406c16[_0x2cbf78(0xe1)]}:{},'directoryProtocol':_0x406c16['alias']?_0x2cbf78(0xe1):_0x2cbf78(0xc5),'warnings':[]};}if(_0x54d396||_0x30593e){const _0x492971=_0x54d396??_0x30593e;throw hookDirectoryError(_0x2cbf78(0xb9),_0x2cbf78(0xb1)+_0x30f85b+_0x2cbf78(0xbb),{'directoryName':_0x30f85b,'datasetCode':_0x492971});}throw hookDirectoryError(_0x2cbf78(0xb4),'Cannot\x20resolve\x20HOOK\x20directory\x20\x22'+_0x30f85b+'\x22\x20to\x20a\x20Dataset\x20alias\x20or\x20datasetCode.',{'directoryName':_0x30f85b});}export function preflightPushHookDirectories(_0x36d3fd,_0x2cb0d3,_0x52f445,_0x3251d6){const _0x143f7b=a276_0x3e9f,_0x294696=new Map(),_0x3a6ff0=new Map();for(const _0xdb614d of _0x36d3fd){if(_0xdb614d[_0x143f7b(0xbe)]!==_0x143f7b(0xe0))continue;const _0x44c9e2=_0xdb614d['alias'];if(!_0x44c9e2)throw hookDirectoryError(_0x143f7b(0xb4),_0x143f7b(0xc4)+_0xdb614d[_0x143f7b(0xc0)],{'lockKey':_0xdb614d['lockKey']});let _0x215325;try{_0x215325=resolvePushHookDirectory(_0x44c9e2,_0x2cb0d3['functions'][_0xdb614d[_0x143f7b(0xc0)]],_0x52f445);}catch(_0x5e53f7){if(_0x3251d6&&_0x5e53f7 instanceof CliError&&[_0x143f7b(0xb9),_0x143f7b(0xb4)][_0x143f7b(0xba)](_0x5e53f7[_0x143f7b(0xdd)])){_0x3251d6[_0x143f7b(0xc6)](_0xdb614d[_0x143f7b(0xc0)],_0x5e53f7[_0x143f7b(0xb0)]);continue;}throw _0x5e53f7;}_0x294696[_0x143f7b(0xc6)](_0xdb614d[_0x143f7b(0xc0)],_0x215325);const _0x3fe183=_0x3a6ff0[_0x143f7b(0xb8)](_0x215325['datasetCode'])??new Set();_0x3fe183['add'](_0x44c9e2),_0x3a6ff0[_0x143f7b(0xc6)](_0x215325[_0x143f7b(0xc5)],_0x3fe183);}for(const [_0x57a869,_0x550a56]of _0x3a6ff0){if(_0x550a56[_0x143f7b(0xcd)]>0x1)throw hookDirectoryError(_0x143f7b(0xab),_0x143f7b(0xdc)+_0x57a869+_0x143f7b(0xdb)+[..._0x550a56][_0x143f7b(0xd5)](',\x20')+'.',{'datasetCode':_0x57a869,'directories':[..._0x550a56]});}return _0x294696;}function a276_0x24e4(){const _0x4dd4ec=['HOOK_DATASET_CODE_AMBIGUOUS','lockKey','\x22\x20has\x20multiple\x20SDK\x20aliases\x20and\x20has\x20no\x20unique\x20HOOK\x20directory.','\x22\x20collides\x20across\x20datasetCode\x20and\x20alias\x20namespaces.','split','Incomplete\x20HOOK\x20path:\x20','datasetCode','set','NFC','toLowerCase','49138580ADXqwd','6371262JGaDlv','details','push','size','length','entries','HOOK_ALIAS_AMBIGUOUS','name','some','map','SDK\x20alias\x20\x22','join','48ybPzwr','datasetCodeToDatasets','408RiqWqG','aliasToDatasetCodes','add','\x22\x20is\x20represented\x20by\x20multiple\x20HOOK\x20directories:\x20','Dataset\x20\x22','code','2751pTaZPN','Dataset\x20code\x20\x22','HOOK','alias','\x22\x20changed\x20mapping\x20from\x20Dataset\x20\x22','HOOK_DUPLICATE_DIRECTORIES','24096QKJXuX','functions','\x22\x20has\x20multiple\x20tracked\x20HOOK\x20directories:\x20','6202630svUVsQ','message','HOOK\x20directory\x20\x22','\x22\x20resolves\x20to\x20multiple\x20Datasets.','5678HTuaDd','HOOK_DIRECTORY_UNRESOLVED','\x22\x20differs\x20only\x20by\x20case\x20from\x20another\x20Dataset\x20code.','values','325232FUMugR','get','HOOK_DATASET_NOT_FOUND','includes','\x22\x20points\x20to\x20a\x20Dataset\x20that\x20is\x20absent\x20from\x20current\x20platform\x20metadata.','\x22\x20to\x20\x22','3233628uFflDb','type'];a276_0x24e4=function(){return _0x4dd4ec;};return a276_0x24e4();}export function hookDirectoryError(_0x3eb164,_0x414de1,_0x344bd1){const _0x1a34b0=a276_0x3e9f,_0x11edac=new CliError(_0x3eb164,0x2,_0x3eb164+':\x20'+_0x414de1);return _0x11edac[_0x1a34b0(0xcb)]=_0x344bd1,_0x11edac;}function a276_0x3e9f(_0x293416,_0x680ab2){_0x293416=_0x293416-0xaa;const _0x24e4f3=a276_0x24e4();let _0x3e9f64=_0x24e4f3[_0x293416];return _0x3e9f64;}function findDatasetByCode(_0x3282a9,_0x56869a){const _0x208d75=a276_0x3e9f,_0x4f6d42=_0x3282a9[_0x208d75(0xd7)][_0x208d75(0xb8)](directoryIdentity(_0x56869a))??[];if(_0x4f6d42[_0x208d75(0xce)]>0x1)throw hookDirectoryError(_0x208d75(0xbf),_0x208d75(0xdf)+_0x56869a+_0x208d75(0xb5),{'datasetCode':_0x56869a,'candidates':_0x4f6d42[_0x208d75(0xd3)](datasetFact)});return _0x4f6d42[0x0];}function directoryIdentity(_0x1547b3){const _0x20744a=a276_0x3e9f;return _0x1547b3['normalize'](_0x20744a(0xc7))[_0x20744a(0xc8)]();}function appendUnique(_0x48a026,_0xeef9f1,_0x3525d0,_0x466f19){const _0x2059d0=a276_0x3e9f,_0x55b70b=_0x48a026[_0x2059d0(0xb8)](_0xeef9f1)??[];!_0x55b70b[_0x2059d0(0xd2)](_0x55f656=>_0x466f19(_0x55f656)===_0x466f19(_0x3525d0))&&_0x55b70b['push'](_0x3525d0),_0x48a026[_0x2059d0(0xc6)](_0xeef9f1,_0x55b70b);}function datasetFact(_0x47df4f){const _0x564924=a276_0x3e9f;return{'id':_0x47df4f['id'],'name':_0x47df4f[_0x564924(0xd1)],'datasetCode':_0x47df4f[_0x564924(0xdd)]};}
@@ -1 +1 @@
1
- function a277_0xb44c(){const _0xc951d1=['scriptsRoot','9318336mvROvF','ENOENT','stringify','functions',':\x20scriptsRoot\x20mismatch\x20—\x20','2Ufjemw','parse','10Fjgfls','1385335rXlkEc','6qZGBjf','814254WRlXVs','19570851gAwbZD','\x22.\x20','utf8','apps','3304215qyLaYp','Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20','current\x20\x22','2505168QibWmk','object','3077418WqFPGK','lastSync','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a277_0xb44c=function(){return _0xc951d1;};return a277_0xb44c();}(function(_0x480add,_0x37090b){const _0x3d8dd0=a277_0xdac5,_0x25b81b=_0x480add();while(!![]){try{const _0x57232c=parseInt(_0x3d8dd0(0xe5))/0x1+parseInt(_0x3d8dd0(0xf8))/0x2*(parseInt(_0x3d8dd0(0xef))/0x3)+-parseInt(_0x3d8dd0(0xed))/0x4+parseInt(_0x3d8dd0(0xea))/0x5+-parseInt(_0x3d8dd0(0xe4))/0x6*(parseInt(_0x3d8dd0(0xfb))/0x7)+parseInt(_0x3d8dd0(0xf3))/0x8+parseInt(_0x3d8dd0(0xe6))/0x9*(-parseInt(_0x3d8dd0(0xfa))/0xa);if(_0x57232c===_0x37090b)break;else _0x25b81b['push'](_0x25b81b['shift']());}catch(_0x9ebb66){_0x25b81b['push'](_0x25b81b['shift']());}}}(a277_0xb44c,0xa2d4f));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x4243a6,_0x347b12,_0x4c6232,_0x46de8f){const _0x2d67e6=a277_0xdac5,_0x37e281={'apps':_0x4243a6[_0x2d67e6(0xe9)]&&typeof _0x4243a6[_0x2d67e6(0xe9)]===_0x2d67e6(0xee)?_0x4243a6[_0x2d67e6(0xe9)]:{}};let _0x396cea=_0x37e281[_0x2d67e6(0xe9)][_0x347b12];if(!_0x396cea)return _0x396cea={'scriptsRoot':_0x4c6232,'lastSync':'','functions':{}},_0x37e281[_0x2d67e6(0xe9)][_0x347b12]=_0x396cea,{'lockData':_0x37e281,'appLock':_0x396cea};if(!_0x396cea[_0x2d67e6(0xf2)])_0x396cea[_0x2d67e6(0xf2)]=_0x4c6232;else{if(_0x396cea[_0x2d67e6(0xf2)]!==_0x4c6232)throw new Error(_0x46de8f+_0x2d67e6(0xf7)+(_0x2d67e6(0xec)+_0x4c6232+'\x22\x20vs\x20lock\x20\x22'+_0x396cea[_0x2d67e6(0xf2)]+_0x2d67e6(0xe7))+_0x2d67e6(0xf1));}return!_0x396cea[_0x2d67e6(0xf6)]&&(_0x396cea[_0x2d67e6(0xf6)]={}),!_0x396cea[_0x2d67e6(0xf0)]&&(_0x396cea[_0x2d67e6(0xf0)]=''),{'lockData':_0x37e281,'appLock':_0x396cea};}function a277_0xdac5(_0x1e4d1d,_0x1d56cc){_0x1e4d1d=_0x1e4d1d-0xe4;const _0xb44c64=a277_0xb44c();let _0xdac532=_0xb44c64[_0x1e4d1d];return _0xdac532;}export async function readBffLockFile(_0x237daa){const _0x352296=a277_0xdac5;try{const _0x25dc99=await readFile(_0x237daa,_0x352296(0xe8)),_0x24da58=JSON[_0x352296(0xf9)](_0x25dc99);return{'apps':_0x24da58['apps']&&typeof _0x24da58[_0x352296(0xe9)]===_0x352296(0xee)?_0x24da58['apps']:{}};}catch(_0x166244){if(_0x166244['code']===_0x352296(0xf4))return null;throw new Error(_0x352296(0xeb)+String(_0x166244));}}export async function writeBffLockFile(_0x2a3b2e,_0x217b0b){const _0x51f4d4=a277_0xdac5;await mkdir(dirname(_0x2a3b2e),{'recursive':!![]}),await writeFile(_0x2a3b2e,JSON[_0x51f4d4(0xf5)](_0x217b0b,null,0x2),_0x51f4d4(0xe8));}
1
+ (function(_0x2cb652,_0x2b0ca0){const _0x53c869=a277_0x5213,_0x5dd693=_0x2cb652();while(!![]){try{const _0xa8fea9=parseInt(_0x53c869(0x1f0))/0x1+-parseInt(_0x53c869(0x1f2))/0x2*(parseInt(_0x53c869(0x1e7))/0x3)+parseInt(_0x53c869(0x1ed))/0x4+-parseInt(_0x53c869(0x1df))/0x5*(-parseInt(_0x53c869(0x1e1))/0x6)+parseInt(_0x53c869(0x1f1))/0x7+parseInt(_0x53c869(0x1ea))/0x8+-parseInt(_0x53c869(0x1e4))/0x9;if(_0xa8fea9===_0x2b0ca0)break;else _0x5dd693['push'](_0x5dd693['shift']());}catch(_0x4dbb29){_0x5dd693['push'](_0x5dd693['shift']());}}}(a277_0x211a,0xa4661));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x293ee2,_0x3a3c17,_0xf1a393,_0x1b93fa){const _0x4c530c=a277_0x5213,_0x11e474={'apps':_0x293ee2[_0x4c530c(0x1e2)]&&typeof _0x293ee2[_0x4c530c(0x1e2)]===_0x4c530c(0x1f3)?_0x293ee2[_0x4c530c(0x1e2)]:{}};let _0x386edc=_0x11e474[_0x4c530c(0x1e2)][_0x3a3c17];if(!_0x386edc)return _0x386edc={'scriptsRoot':_0xf1a393,'lastSync':'','functions':{}},_0x11e474[_0x4c530c(0x1e2)][_0x3a3c17]=_0x386edc,{'lockData':_0x11e474,'appLock':_0x386edc};if(!_0x386edc['scriptsRoot'])_0x386edc[_0x4c530c(0x1e8)]=_0xf1a393;else{if(_0x386edc['scriptsRoot']!==_0xf1a393)throw new Error(_0x1b93fa+_0x4c530c(0x1dd)+(_0x4c530c(0x1ec)+_0xf1a393+'\x22\x20vs\x20lock\x20\x22'+_0x386edc[_0x4c530c(0x1e8)]+_0x4c530c(0x1e5))+_0x4c530c(0x1e9));}return!_0x386edc[_0x4c530c(0x1ee)]&&(_0x386edc[_0x4c530c(0x1ee)]={}),!_0x386edc[_0x4c530c(0x1de)]&&(_0x386edc[_0x4c530c(0x1de)]=''),{'lockData':_0x11e474,'appLock':_0x386edc};}export async function readBffLockFile(_0x286a60){const _0x30d229=a277_0x5213;try{const _0x80bd7e=await readFile(_0x286a60,_0x30d229(0x1e6)),_0x5a0c2f=JSON[_0x30d229(0x1eb)](_0x80bd7e);return{'apps':_0x5a0c2f['apps']&&typeof _0x5a0c2f[_0x30d229(0x1e2)]===_0x30d229(0x1f3)?_0x5a0c2f[_0x30d229(0x1e2)]:{}};}catch(_0x357d3a){if(_0x357d3a[_0x30d229(0x1e3)]===_0x30d229(0x1ef))return null;throw new Error('Failed\x20to\x20read\x20Backend\x20Function\x20lock\x20file:\x20'+String(_0x357d3a));}}function a277_0x5213(_0x48a677,_0x405fb9){_0x48a677=_0x48a677-0x1dd;const _0x211a5b=a277_0x211a();let _0x5213ee=_0x211a5b[_0x48a677];return _0x5213ee;}function a277_0x211a(){const _0x5da311=['19164KlDkeN','scriptsRoot','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','579824jXCMws','parse','current\x20\x22','1007472ZRLmnr','functions','ENOENT','333753ZzYxkg','4769408UmWCwv','4RLIebt','object',':\x20scriptsRoot\x20mismatch\x20—\x20','lastSync','22720vARGTP','stringify','1524Kobsxe','apps','code','16267194TorBTp','\x22.\x20','utf8'];a277_0x211a=function(){return _0x5da311;};return a277_0x211a();}export async function writeBffLockFile(_0x5c37cf,_0x4117a1){const _0x27d173=a277_0x5213;await mkdir(dirname(_0x5c37cf),{'recursive':!![]}),await writeFile(_0x5c37cf,JSON[_0x27d173(0x1e0)](_0x4117a1,null,0x2),_0x27d173(0x1e6));}
@@ -1 +1 @@
1
- const a279_0x2c1fd1=a279_0x3503;(function(_0x2fd87a,_0x394fce){const _0x31033e=a279_0x3503,_0x106952=_0x2fd87a();while(!![]){try{const _0x3a10fb=parseInt(_0x31033e(0xf2))/0x1*(parseInt(_0x31033e(0xee))/0x2)+-parseInt(_0x31033e(0x105))/0x3+-parseInt(_0x31033e(0xfa))/0x4+parseInt(_0x31033e(0x100))/0x5*(parseInt(_0x31033e(0xfb))/0x6)+parseInt(_0x31033e(0xf8))/0x7+parseInt(_0x31033e(0xf9))/0x8+-parseInt(_0x31033e(0x102))/0x9;if(_0x3a10fb===_0x394fce)break;else _0x106952['push'](_0x106952['shift']());}catch(_0x28434f){_0x106952['push'](_0x106952['shift']());}}}(a279_0x2532,0x9f07a));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x2c1fd1(0xf1);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x2c1fd1(0xef);export function snakeToCamel(_0x2471cb){const _0x3b6447=a279_0x2c1fd1;return _0x2471cb[_0x3b6447(0x106)]()['replace'](/_([a-z])/g,(_0x3c701e,_0x3547f8)=>_0x3547f8[_0x3b6447(0xf4)]());}export function findHookLocationByRemoteId(_0x3d4333,_0x11d0f4){const _0x4cffc3=a279_0x2c1fd1;if(!_0x11d0f4)return undefined;for(const [_0x328bfc,_0x23938a]of Object[_0x4cffc3(0x103)](_0x3d4333)){if(_0x23938a[_0x4cffc3(0xf3)]===_0x11d0f4&&_0x23938a[_0x4cffc3(0x108)]&&_0x23938a[_0x4cffc3(0x101)]&&_0x23938a['functionNode']){const _0xb0e838=_0x328bfc[_0x4cffc3(0xf7)]('/')[0x1];return{'alias':_0xb0e838||_0x23938a['alias'],'datasetCode':_0x23938a[_0x4cffc3(0x108)],'operationType':_0x23938a[_0x4cffc3(0x101)],'functionNode':_0x23938a[_0x4cffc3(0x107)]};}}return undefined;}function a279_0x3503(_0x5f4030,_0x4cca04){_0x5f4030=_0x5f4030-0xee;const _0x2532a4=a279_0x2532();let _0x35030d=_0x2532a4[_0x5f4030];return _0x35030d;}export function extractScriptDescription(_0x48d9fe){const _0x17333b=a279_0x2c1fd1,_0x3d8b26=_0x48d9fe[_0x17333b(0xf5)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x3d8b26?.[0x1])return undefined;const _0x11b5b6=_0x3d8b26[0x1],_0x28ba14=_0x9b09b4=>{const _0x2b7990=_0x17333b,_0x56747f=_0x9b09b4?.[_0x2b7990(0xf0)]();if(!_0x56747f||_0x56747f===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x56747f===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x56747f;},_0x51f34b=_0x11b5b6[_0x17333b(0xf5)](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x51f34b)return _0x28ba14(_0x51f34b[0x1]);const _0x502f68=_0x11b5b6['split'](/\r?\n/)['map'](_0x3357d5=>_0x3357d5[_0x17333b(0xfd)](/^\s*\*\s?/,'')[_0x17333b(0xf0)]()),_0x24471a=_0x502f68[_0x17333b(0xfc)](_0x4e8fb0=>/^\[\s*脚本类型\s*]\s*\S+/[_0x17333b(0xff)](_0x4e8fb0))&&_0x502f68[_0x17333b(0xfc)](_0x3a3c7f=>/^\[\s*脚本名称\s*]\s*\S+/[_0x17333b(0xff)](_0x3a3c7f));if(!_0x24471a)return undefined;for(const _0x22c725 of _0x502f68){if(!_0x22c725||_0x22c725[_0x17333b(0xf6)]('@')||/^\[[^\]]+]\s*/[_0x17333b(0xff)](_0x22c725))continue;return _0x28ba14(_0x22c725);}return undefined;}function a279_0x2532(){const _0x2f7591=['1txucYv','remoteId','toUpperCase','match','startsWith','split','2569238cCYlWA','6284728CvILld','1674468dkgSqR','306XHtsjR','some','replace','after','test','91495famQHn','operationType','9361548iTZRhO','entries','before','3205044tXeVBX','toLowerCase','functionNode','datasetCode','2185298NdLZRZ','TODO:\x20add\x20script\x20description','trim','TODO:\x20补充脚本功能描述'];a279_0x2532=function(){return _0x2f7591;};return a279_0x2532();}export function isValidBffFunctionName(_0x18d4f1){const _0x1bcf3e=a279_0x2c1fd1;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x1bcf3e(0xff)](_0x18d4f1);}export function normalizeHookFunctionNode(_0x1aab5f){const _0x3d1b56=a279_0x2c1fd1;if(!_0x1aab5f)return undefined;const _0x15aae0=_0x1aab5f[_0x3d1b56(0xf0)]()[_0x3d1b56(0x106)]();if(_0x15aae0===_0x3d1b56(0x104)||_0x15aae0===_0x3d1b56(0xfe))return _0x15aae0;return undefined;}
1
+ const a279_0x5c78da=a279_0xa660;(function(_0x30bc9f,_0x403c8a){const _0x5716e2=a279_0xa660,_0x41c0e4=_0x30bc9f();while(!![]){try{const _0x4bcafd=parseInt(_0x5716e2(0x1f6))/0x1+parseInt(_0x5716e2(0x1ff))/0x2+-parseInt(_0x5716e2(0x1f0))/0x3+parseInt(_0x5716e2(0x207))/0x4*(-parseInt(_0x5716e2(0x1f3))/0x5)+-parseInt(_0x5716e2(0x1f9))/0x6+-parseInt(_0x5716e2(0x20a))/0x7*(parseInt(_0x5716e2(0x206))/0x8)+parseInt(_0x5716e2(0x1f7))/0x9;if(_0x4bcafd===_0x403c8a)break;else _0x41c0e4['push'](_0x41c0e4['shift']());}catch(_0x3c37db){_0x41c0e4['push'](_0x41c0e4['shift']());}}}(a279_0x29a0,0xca63f));export const DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x5c78da(0x202);const LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION=a279_0x5c78da(0x1f8);export function snakeToCamel(_0x2cf816){const _0x4e6422=a279_0x5c78da;return _0x2cf816[_0x4e6422(0x203)]()[_0x4e6422(0x204)](/_([a-z])/g,(_0x5d8523,_0x1c6352)=>_0x1c6352[_0x4e6422(0x208)]());}export function findHookLocationByRemoteId(_0x5d5d7d,_0x6404a7){const _0x51c0a6=a279_0x5c78da;if(!_0x6404a7)return undefined;for(const [_0x120151,_0x1ca92c]of Object[_0x51c0a6(0x1fe)](_0x5d5d7d)){if(_0x1ca92c[_0x51c0a6(0x1f2)]===_0x6404a7&&_0x1ca92c[_0x51c0a6(0x1fd)]&&_0x1ca92c[_0x51c0a6(0x1fa)]&&_0x1ca92c[_0x51c0a6(0x1f1)]){const _0x411463=_0x120151['split']('/')[0x1];return{'alias':_0x411463||_0x1ca92c[_0x51c0a6(0x1f5)],'datasetCode':_0x1ca92c[_0x51c0a6(0x1fd)],'operationType':_0x1ca92c[_0x51c0a6(0x1fa)],'functionNode':_0x1ca92c['functionNode']};}}return undefined;}export function extractScriptDescription(_0x1d5f1c){const _0x1688a2=a279_0x5c78da,_0x4af54b=_0x1d5f1c[_0x1688a2(0x209)](/^\s*\/\*\*([\s\S]*?)\*\//);if(!_0x4af54b?.[0x1])return undefined;const _0xd734=_0x4af54b[0x1],_0x42ac4d=_0x426029=>{const _0x5d9646=_0x1688a2,_0x212868=_0x426029?.[_0x5d9646(0x1fb)]();if(!_0x212868||_0x212868===DEFAULT_BFF_SCRIPT_DESCRIPTION||_0x212868===LEGACY_DEFAULT_BFF_SCRIPT_DESCRIPTION)return undefined;return _0x212868;},_0x299cee=_0xd734['match'](/^\s*\*\s*\[\s*脚本描述\s*]\s*(.+)$/m);if(_0x299cee)return _0x42ac4d(_0x299cee[0x1]);const _0x1e8268=_0xd734[_0x1688a2(0x1f4)](/\r?\n/)['map'](_0x2e335c=>_0x2e335c[_0x1688a2(0x204)](/^\s*\*\s?/,'')[_0x1688a2(0x1fb)]()),_0x26b23c=_0x1e8268[_0x1688a2(0x201)](_0x4fa4ec=>/^\[\s*脚本类型\s*]\s*\S+/[_0x1688a2(0x200)](_0x4fa4ec))&&_0x1e8268[_0x1688a2(0x201)](_0x53eafe=>/^\[\s*脚本名称\s*]\s*\S+/['test'](_0x53eafe));if(!_0x26b23c)return undefined;for(const _0x4a6d43 of _0x1e8268){if(!_0x4a6d43||_0x4a6d43[_0x1688a2(0x1fc)]('@')||/^\[[^\]]+]\s*/[_0x1688a2(0x200)](_0x4a6d43))continue;return _0x42ac4d(_0x4a6d43);}return undefined;}function a279_0xa660(_0x2a1627,_0x3d17a0){_0x2a1627=_0x2a1627-0x1f0;const _0x29a061=a279_0x29a0();let _0xa6600c=_0x29a061[_0x2a1627];return _0xa6600c;}function a279_0x29a0(){const _0x4e3185=['943010skOoiS','split','alias','1573703pQgMSV','17417934JHxdjX','TODO:\x20add\x20script\x20description','5017896UZmWqm','operationType','trim','startsWith','datasetCode','entries','1963504jPxnyr','test','some','TODO:\x20补充脚本功能描述','toLowerCase','replace','after','24OoQhxs','24MbpybM','toUpperCase','match','2591456RtNySY','1749714WFpigV','functionNode','remoteId'];a279_0x29a0=function(){return _0x4e3185;};return a279_0x29a0();}export function isValidBffFunctionName(_0x3e3888){const _0x10886d=a279_0x5c78da;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x10886d(0x200)](_0x3e3888);}export function normalizeHookFunctionNode(_0x1d2ebe){const _0x210e13=a279_0x5c78da;if(!_0x1d2ebe)return undefined;const _0x5221e2=_0x1d2ebe[_0x210e13(0x1fb)]()[_0x210e13(0x203)]();if(_0x5221e2==='before'||_0x5221e2===_0x210e13(0x205))return _0x5221e2;return undefined;}
@@ -1 +1 @@
1
- const a280_0x3e96e3=a280_0x4f1a;function a280_0x4f1a(_0x1e2058,_0x18ac14){_0x1e2058=_0x1e2058-0xae;const _0x3be44a=a280_0x3be4();let _0x4f1a85=_0x3be44a[_0x1e2058];return _0x4f1a85;}function a280_0x3be4(){const _0x1f868e=['124236prRKSv','10CqbrqG','244QlGKFj','3213728hQFrLZ','147958wRAJbt','/smartapi/cross-db-relation/create','1446977fhJMcY','/smartapi/cross-db-relation/delete','628240CTeuLH','12OjVPNi','62973NeeHmJ','18087ZGEfsm'];a280_0x3be4=function(){return _0x1f868e;};return a280_0x3be4();}(function(_0x34049d,_0x2d9a03){const _0x528552=a280_0x4f1a,_0x1dc7e7=_0x34049d();while(!![]){try{const _0x54f5cd=-parseInt(_0x528552(0xb1))/0x1+-parseInt(_0x528552(0xb9))/0x2+parseInt(_0x528552(0xb8))/0x3*(-parseInt(_0x528552(0xaf))/0x4)+parseInt(_0x528552(0xb5))/0x5+parseInt(_0x528552(0xb6))/0x6*(parseInt(_0x528552(0xb3))/0x7)+parseInt(_0x528552(0xb0))/0x8+-parseInt(_0x528552(0xb7))/0x9*(parseInt(_0x528552(0xae))/0xa);if(_0x54f5cd===_0x2d9a03)break;else _0x1dc7e7['push'](_0x1dc7e7['shift']());}catch(_0x1a7339){_0x1dc7e7['push'](_0x1dc7e7['shift']());}}}(a280_0x3be4,0x56e68));export const CROSS_DB_RELATION_PATHS={'list':'/smartapi/cross-db-relation/query','create':a280_0x3e96e3(0xb2),'update':'/smartapi/cross-db-relation/update','delete':a280_0x3e96e3(0xb4)};
1
+ function a280_0x5135(_0x1d4195,_0x3deee2){_0x1d4195=_0x1d4195-0xf0;const _0x31dbfc=a280_0x31db();let _0x5135e6=_0x31dbfc[_0x1d4195];return _0x5135e6;}function a280_0x31db(){const _0x48eddd=['22616oCLYRV','/smartapi/cross-db-relation/query','5878098PxIbCa','/smartapi/cross-db-relation/update','24PQrzFx','4yKyfBE','/smartapi/cross-db-relation/delete','/smartapi/cross-db-relation/create','2688468FWngMc','1610nlrefL','7TOSbXt','95825wutjOB','4761816FUhVmc','5802424ZtHUjV','39RxWhla','2DBQNjN','628100JXltFr'];a280_0x31db=function(){return _0x48eddd;};return a280_0x31db();}const a280_0x38958a=a280_0x5135;(function(_0x23b2d1,_0x35fa88){const _0x352f81=a280_0x5135,_0x52d96c=_0x23b2d1();while(!![]){try{const _0x27fe97=parseInt(_0x352f81(0xfe))/0x1*(parseInt(_0x352f81(0xff))/0x2)+-parseInt(_0x352f81(0xf7))/0x3*(parseInt(_0x352f81(0xf4))/0x4)+-parseInt(_0x352f81(0xfa))/0x5*(-parseInt(_0x352f81(0xf3))/0x6)+-parseInt(_0x352f81(0xf9))/0x7*(parseInt(_0x352f81(0xfc))/0x8)+parseInt(_0x352f81(0xf1))/0x9+-parseInt(_0x352f81(0xf8))/0xa*(parseInt(_0x352f81(0x100))/0xb)+-parseInt(_0x352f81(0xfb))/0xc*(-parseInt(_0x352f81(0xfd))/0xd);if(_0x27fe97===_0x35fa88)break;else _0x52d96c['push'](_0x52d96c['shift']());}catch(_0x50cf05){_0x52d96c['push'](_0x52d96c['shift']());}}}(a280_0x31db,0x91795));export const CROSS_DB_RELATION_PATHS={'list':a280_0x38958a(0xf0),'create':a280_0x38958a(0xf6),'update':a280_0x38958a(0xf2),'delete':a280_0x38958a(0xf5)};
@@ -1 +1 @@
1
- (function(_0x41a0b7,_0x3ed81f){const _0x5c8fce=a281_0x3fdd,_0xaa5dba=_0x41a0b7();while(!![]){try{const _0x25f940=-parseInt(_0x5c8fce(0x197))/0x1*(parseInt(_0x5c8fce(0x19c))/0x2)+-parseInt(_0x5c8fce(0x193))/0x3+parseInt(_0x5c8fce(0x19b))/0x4*(parseInt(_0x5c8fce(0x191))/0x5)+parseInt(_0x5c8fce(0x187))/0x6+parseInt(_0x5c8fce(0x192))/0x7+-parseInt(_0x5c8fce(0x188))/0x8+parseInt(_0x5c8fce(0x185))/0x9;if(_0x25f940===_0x3ed81f)break;else _0xaa5dba['push'](_0xaa5dba['shift']());}catch(_0x2cd149){_0xaa5dba['push'](_0xaa5dba['shift']());}}}(a281_0x3ca6,0xcedfd));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x25ecae){const _0x108397=a281_0x3fdd;if(cache[_0x108397(0x18f)](_0x25ecae))return cache[_0x108397(0x186)](_0x25ecae);const _0x194b0d=await listDatasets(_0x25ecae),_0x1c19a4=new Map();for(const _0x1116aa of _0x194b0d){const _0x53e87f=_0x1116aa['dbtableConfig'];_0x53e87f?.[_0x108397(0x19a)]!=null&&_0x1c19a4[_0x108397(0x18d)](_0x53e87f[_0x108397(0x19a)],_0x53e87f[_0x108397(0x190)]??'db-'+_0x53e87f['dbId']);}const _0x5a7371=[..._0x1c19a4['entries']()][_0x108397(0x194)](([_0x948ee2,_0x17bcca])=>({'dbId':_0x948ee2,'dbName':_0x17bcca}));return cache[_0x108397(0x18d)](_0x25ecae,_0x5a7371),_0x5a7371;}function a281_0x3ca6(){const _0x180547=['includes','dbId','30272EQPgqn','2SyYmHh','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','join','\x22\x20under\x20app\x20\x22','26789193hIsXWg','get','1391640KKTFcX','533944kaYkoZ','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','find','isNaN','set','length','has','dbName','70xamVjv','1343874YDgtcD','3001995dbJeah','map','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','toLowerCase','1591686JiHTQG','\x22.\x20Available:\x20'];a281_0x3ca6=function(){return _0x180547;};return a281_0x3ca6();}function a281_0x3fdd(_0x36110a,_0x3f9ce3){_0x36110a=_0x36110a-0x183;const _0x3ca6ff=a281_0x3ca6();let _0x3fdd78=_0x3ca6ff[_0x36110a];return _0x3fdd78;}export async function resolveDb(_0x5b5a74,_0x58f619){const _0x567199=a281_0x3fdd,_0x8c7a1c=await listDatabases(_0x5b5a74);if(_0x8c7a1c['length']===0x0)return{'resolved':[],'error':_0x567199(0x18a)+_0x5b5a74+_0x567199(0x19d)};if(!_0x58f619)return{'resolved':_0x8c7a1c};const _0x578c84=Number(_0x58f619);if(!Number[_0x567199(0x18c)](_0x578c84)){const _0x5c3a3a=_0x8c7a1c[_0x567199(0x18b)](_0x1e711f=>_0x1e711f[_0x567199(0x19a)]===_0x578c84);if(_0x5c3a3a)return{'resolved':[_0x5c3a3a]};}const _0x125bc8=_0x58f619[_0x567199(0x196)](),_0x54bd09=_0x8c7a1c['filter'](_0x409452=>_0x409452[_0x567199(0x190)]['toLowerCase']()[_0x567199(0x199)](_0x125bc8));if(_0x54bd09[_0x567199(0x18e)]>0x0)return{'resolved':_0x54bd09};const _0x10d889=_0x8c7a1c['map'](_0x1378e6=>_0x1378e6[_0x567199(0x190)]+'\x20('+_0x1378e6[_0x567199(0x19a)]+')')[_0x567199(0x183)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x58f619+_0x567199(0x184)+_0x5b5a74+_0x567199(0x198)+_0x10d889+_0x567199(0x189)};}export async function resolveOneDb(_0x2af95b,_0x7d4fc5){const _0x578358=a281_0x3fdd,{resolved:_0x23bf69,error:_0x1bcf6a}=await resolveDb(_0x2af95b,_0x7d4fc5);if(_0x1bcf6a)return{'db':null,'error':_0x1bcf6a};if(_0x23bf69[_0x578358(0x18e)]===0x1)return{'db':_0x23bf69[0x0]};if(!_0x7d4fc5){const _0x2d2309=_0x23bf69[_0x578358(0x194)](_0x2ec934=>_0x2ec934[_0x578358(0x190)]+'\x20('+_0x2ec934[_0x578358(0x19a)]+')')[_0x578358(0x183)](',\x20');return{'db':null,'error':_0x578358(0x195)+_0x2d2309};}const _0x169a0e=_0x23bf69[_0x578358(0x194)](_0x4ea1e3=>_0x4ea1e3[_0x578358(0x190)]+'\x20('+_0x4ea1e3[_0x578358(0x19a)]+')')[_0x578358(0x183)](',\x20');return{'db':null,'error':'\x22'+_0x7d4fc5+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x169a0e+'.\x20Be\x20more\x20specific.'};}export async function getDbName(_0x1a634f,_0x2ade2a){const _0x35812e=a281_0x3fdd,_0x418f8d=await listDatabases(_0x1a634f);return _0x418f8d[_0x35812e(0x18b)](_0x73a3d7=>_0x73a3d7[_0x35812e(0x19a)]===_0x2ade2a)?.[_0x35812e(0x190)];}
1
+ (function(_0xd349,_0x4135e0){const _0x5c8a34=a281_0x3461,_0x43bb7a=_0xd349();while(!![]){try{const _0x19720f=-parseInt(_0x5c8a34(0x14d))/0x1+-parseInt(_0x5c8a34(0x14c))/0x2+-parseInt(_0x5c8a34(0x149))/0x3*(parseInt(_0x5c8a34(0x161))/0x4)+-parseInt(_0x5c8a34(0x146))/0x5+parseInt(_0x5c8a34(0x15e))/0x6*(-parseInt(_0x5c8a34(0x156))/0x7)+-parseInt(_0x5c8a34(0x145))/0x8+parseInt(_0x5c8a34(0x157))/0x9;if(_0x19720f===_0x4135e0)break;else _0x43bb7a['push'](_0x43bb7a['shift']());}catch(_0xadc18d){_0x43bb7a['push'](_0x43bb7a['shift']());}}}(a281_0x511b,0xcaf59));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a281_0x511b(){const _0x1c6784=['53162136JWQdGT','dbName','find','has','.\x20Be\x20more\x20specific.','join','db-','704508KqstOr','\x22\x20matches\x20multiple\x20databases:\x20','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','1060732tcnbAq','entries','filter','9759728SZVxig','5913610hGVRzQ','\x22.\x20Available:\x20','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','9PcezbL','dbId','isNaN','1596254VYExmk','726965svhoqW','map','length','dbtableConfig','\x22\x20under\x20app\x20\x22','get','No\x20database\x20matching\x20\x22','set','toLowerCase','21WbzwUF'];a281_0x511b=function(){return _0x1c6784;};return a281_0x511b();}export async function listDatabases(_0x27c09f){const _0x4e7eb2=a281_0x3461;if(cache[_0x4e7eb2(0x15a)](_0x27c09f))return cache[_0x4e7eb2(0x152)](_0x27c09f);const _0x17d521=await listDatasets(_0x27c09f),_0x2466f0=new Map();for(const _0x4a18e1 of _0x17d521){const _0x5bea91=_0x4a18e1[_0x4e7eb2(0x150)];_0x5bea91?.[_0x4e7eb2(0x14a)]!=null&&_0x2466f0[_0x4e7eb2(0x154)](_0x5bea91['dbId'],_0x5bea91['dbName']??_0x4e7eb2(0x15d)+_0x5bea91[_0x4e7eb2(0x14a)]);}const _0x5df666=[..._0x2466f0[_0x4e7eb2(0x162)]()]['map'](([_0x580526,_0x4f8dfc])=>({'dbId':_0x580526,'dbName':_0x4f8dfc}));return cache['set'](_0x27c09f,_0x5df666),_0x5df666;}export async function resolveDb(_0x547f02,_0x1ae7f1){const _0x137438=a281_0x3461,_0x5eee9f=await listDatabases(_0x547f02);if(_0x5eee9f['length']===0x0)return{'resolved':[],'error':_0x137438(0x148)+_0x547f02+_0x137438(0x160)};if(!_0x1ae7f1)return{'resolved':_0x5eee9f};const _0x4ca92a=Number(_0x1ae7f1);if(!Number[_0x137438(0x14b)](_0x4ca92a)){const _0x3ee446=_0x5eee9f[_0x137438(0x159)](_0x290f42=>_0x290f42[_0x137438(0x14a)]===_0x4ca92a);if(_0x3ee446)return{'resolved':[_0x3ee446]};}const _0x10dcdf=_0x1ae7f1[_0x137438(0x155)](),_0x3dd4ea=_0x5eee9f[_0x137438(0x163)](_0x2d0ed3=>_0x2d0ed3[_0x137438(0x158)][_0x137438(0x155)]()['includes'](_0x10dcdf));if(_0x3dd4ea['length']>0x0)return{'resolved':_0x3dd4ea};const _0x1a13e0=_0x5eee9f['map'](_0x3d0e85=>_0x3d0e85[_0x137438(0x158)]+'\x20('+_0x3d0e85[_0x137438(0x14a)]+')')[_0x137438(0x15c)](',\x20');return{'resolved':[],'error':_0x137438(0x153)+_0x1ae7f1+_0x137438(0x151)+_0x547f02+_0x137438(0x147)+_0x1a13e0+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x4e3f5e,_0x337556){const _0x18f443=a281_0x3461,{resolved:_0x108ba5,error:_0x56590d}=await resolveDb(_0x4e3f5e,_0x337556);if(_0x56590d)return{'db':null,'error':_0x56590d};if(_0x108ba5[_0x18f443(0x14f)]===0x1)return{'db':_0x108ba5[0x0]};if(!_0x337556){const _0x5de0da=_0x108ba5[_0x18f443(0x14e)](_0x5f1e84=>_0x5f1e84[_0x18f443(0x158)]+'\x20('+_0x5f1e84[_0x18f443(0x14a)]+')')[_0x18f443(0x15c)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x5de0da};}const _0x2bb6da=_0x108ba5[_0x18f443(0x14e)](_0xda12d3=>_0xda12d3[_0x18f443(0x158)]+'\x20('+_0xda12d3[_0x18f443(0x14a)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x337556+_0x18f443(0x15f)+_0x2bb6da+_0x18f443(0x15b)};}function a281_0x3461(_0x211e3a,_0x4d60b2){_0x211e3a=_0x211e3a-0x145;const _0x511b4b=a281_0x511b();let _0x346155=_0x511b4b[_0x211e3a];return _0x346155;}export async function getDbName(_0xe54e01,_0x191163){const _0x59be2d=a281_0x3461,_0x3a2a3a=await listDatabases(_0xe54e01);return _0x3a2a3a[_0x59be2d(0x159)](_0x47d985=>_0x47d985['dbId']===_0x191163)?.['dbName'];}