@lovrabet/rabetbase-cli 2.5.8 → 2.5.9

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 (384) hide show
  1. package/README.md +6 -6
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.d.ts +8 -5
  162. package/lib/commands/kb/shared.js +1 -1
  163. package/lib/commands/kb/update.js +1 -1
  164. package/lib/commands/logs/index.js +1 -1
  165. package/lib/commands/menu/asset-update.js +1 -1
  166. package/lib/commands/menu/delete.js +1 -1
  167. package/lib/commands/menu/external-link-create.js +1 -1
  168. package/lib/commands/menu/external-link-update.js +1 -1
  169. package/lib/commands/menu/group-create.js +1 -1
  170. package/lib/commands/menu/group-update.js +1 -1
  171. package/lib/commands/menu/index.js +1 -1
  172. package/lib/commands/menu/list.js +1 -1
  173. package/lib/commands/menu/move.js +1 -1
  174. package/lib/commands/menu/regroup-start.js +1 -1
  175. package/lib/commands/menu/rename.js +1 -1
  176. package/lib/commands/menu/shared/compare-table.js +1 -1
  177. package/lib/commands/menu/shared/delete-plan.js +1 -1
  178. package/lib/commands/menu/shared/facts.js +1 -1
  179. package/lib/commands/menu/shared/index.js +1 -1
  180. package/lib/commands/menu/shared/inquirer.js +1 -1
  181. package/lib/commands/menu/shared/local-pages.js +1 -1
  182. package/lib/commands/menu/shared/logic.js +1 -1
  183. package/lib/commands/menu/shared/mutations.js +1 -1
  184. package/lib/commands/menu/shared/path.js +1 -1
  185. package/lib/commands/menu/shared/service.js +1 -1
  186. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  187. package/lib/commands/menu/shared/sync-core.js +1 -1
  188. package/lib/commands/menu/shared/update-core.js +1 -1
  189. package/lib/commands/menu/shared/valid-url.js +1 -1
  190. package/lib/commands/menu/subapp-assets-status.js +1 -1
  191. package/lib/commands/menu/subapp-assets-update.js +1 -1
  192. package/lib/commands/menu/sync.js +1 -1
  193. package/lib/commands/menu/visibility-update.js +1 -1
  194. package/lib/commands/notification/config-create.js +1 -1
  195. package/lib/commands/notification/config-delete.js +1 -1
  196. package/lib/commands/notification/config-list.js +1 -1
  197. package/lib/commands/notification/config-update.js +1 -1
  198. package/lib/commands/notification/index.js +1 -1
  199. package/lib/commands/notification/shared.js +1 -1
  200. package/lib/commands/ocr/index.js +1 -1
  201. package/lib/commands/page/create.js +1 -1
  202. package/lib/commands/page/custom/detail.js +1 -1
  203. package/lib/commands/page/custom/list.js +1 -1
  204. package/lib/commands/page/custom/publish.js +1 -1
  205. package/lib/commands/page/custom/shared.js +1 -1
  206. package/lib/commands/page/custom/syntax.js +1 -1
  207. package/lib/commands/page/custom/update.js +1 -1
  208. package/lib/commands/page/data-list-status.js +1 -1
  209. package/lib/commands/page/generate-start.js +1 -1
  210. package/lib/commands/page/generate-status.js +1 -1
  211. package/lib/commands/page/index.js +1 -1
  212. package/lib/commands/page/pull.js +1 -1
  213. package/lib/commands/page/push.js +1 -1
  214. package/lib/commands/page/relation-audit.js +1 -1
  215. package/lib/commands/page/restore.js +1 -1
  216. package/lib/commands/page/shared.js +1 -1
  217. package/lib/commands/page/sync.js +1 -1
  218. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  219. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  220. package/lib/commands/project/create/format-elapsed.js +1 -1
  221. package/lib/commands/project/create/main.js +1 -1
  222. package/lib/commands/project/create/materialize-project-template.js +1 -1
  223. package/lib/commands/project/create/project-name.js +1 -1
  224. package/lib/commands/project/create/project-template-archive.js +1 -1
  225. package/lib/commands/project/create/project-template-path.js +1 -1
  226. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  227. package/lib/commands/project/create/use-format-code.js +1 -1
  228. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  229. package/lib/commands/project/domain-routing-sync.js +1 -1
  230. package/lib/commands/project/index.js +1 -1
  231. package/lib/commands/project/upgrade.js +1 -1
  232. package/lib/commands/registry.js +1 -1
  233. package/lib/commands/role/delete.js +1 -1
  234. package/lib/commands/role/detail.js +1 -1
  235. package/lib/commands/role/index.js +1 -1
  236. package/lib/commands/role/list.js +1 -1
  237. package/lib/commands/role/shared.js +1 -1
  238. package/lib/commands/role/update.js +1 -1
  239. package/lib/commands/role/user-add.js +1 -1
  240. package/lib/commands/role/user-remove.js +1 -1
  241. package/lib/commands/role/user-resolve.js +1 -1
  242. package/lib/commands/rule/get.js +1 -1
  243. package/lib/commands/rule/index.js +1 -1
  244. package/lib/commands/rule/list.js +1 -1
  245. package/lib/commands/rule/set.js +1 -1
  246. package/lib/commands/rule/shared.d.ts +5 -3
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.d.ts +14 -11
  292. package/lib/core/api-client.js +1 -1
  293. package/lib/core/bff/config.js +1 -1
  294. package/lib/core/bff/file-system.js +1 -1
  295. package/lib/core/bff/hash.js +1 -1
  296. package/lib/core/bff/hook-directory.js +1 -1
  297. package/lib/core/bff/lock.js +1 -1
  298. package/lib/core/bff/utils.js +1 -1
  299. package/lib/core/cross-db-analysis.js +1 -1
  300. package/lib/core/cross-db-relation.js +1 -1
  301. package/lib/core/db-resolver.js +1 -1
  302. package/lib/core/flow-config.js +1 -1
  303. package/lib/core/instant-api-policy/config.js +1 -1
  304. package/lib/core/kb-management-client.d.ts +2 -2
  305. package/lib/core/kb-management-client.js +1 -1
  306. package/lib/core/kb-search-client.d.ts +3 -1
  307. package/lib/core/kb-search-client.js +1 -1
  308. package/lib/core/page/file-system.js +1 -1
  309. package/lib/core/page/hash.js +1 -1
  310. package/lib/core/page/lock.js +1 -1
  311. package/lib/core/page/lr-smart-jsx.js +1 -1
  312. package/lib/core/sql-index-auditor.js +1 -1
  313. package/lib/core/sql-sync/config.js +1 -1
  314. package/lib/core/sql-sync/file-system.js +1 -1
  315. package/lib/core/sql-sync/hash.js +1 -1
  316. package/lib/core/sql-sync/lock.js +1 -1
  317. package/lib/core/sql-sync/utils.js +1 -1
  318. package/lib/core/sql-validator.js +1 -1
  319. package/lib/errors.js +1 -1
  320. package/lib/framework/build-all-flags.js +1 -1
  321. package/lib/framework/error-output.js +1 -1
  322. package/lib/framework/explicit-yes.js +1 -1
  323. package/lib/framework/flags.js +1 -1
  324. package/lib/framework/help.js +1 -1
  325. package/lib/framework/index.js +1 -1
  326. package/lib/framework/output.js +1 -1
  327. package/lib/framework/response.js +1 -1
  328. package/lib/framework/runner-alias.js +1 -1
  329. package/lib/framework/runner.js +1 -1
  330. package/lib/framework/schema-export.js +1 -1
  331. package/lib/framework/supported-flags.js +1 -1
  332. package/lib/framework/types.js +1 -1
  333. package/lib/generated/build-info.d.ts +4 -4
  334. package/lib/generated/build-info.js +1 -1
  335. package/lib/generated/official-routing.js +1 -1
  336. package/lib/generated/routing-contract.js +1 -1
  337. package/lib/help.js +1 -1
  338. package/lib/postinstall.js +1 -1
  339. package/lib/runtime/confirmation.js +1 -1
  340. package/lib/runtime/event.js +1 -1
  341. package/lib/runtime/index.js +1 -1
  342. package/lib/runtime/queue.js +1 -1
  343. package/lib/runtime/resolve.js +1 -1
  344. package/lib/services/dataset-design/checkpoint.js +1 -1
  345. package/lib/services/dataset-design/commands.js +1 -1
  346. package/lib/services/dataset-design/contract.js +1 -1
  347. package/lib/skills/builtin-skill.js +1 -1
  348. package/lib/skills/main.js +1 -1
  349. package/lib/skills/npx-skills-add.js +1 -1
  350. package/lib/skills/skill-presence.js +1 -1
  351. package/lib/telemetry/cli-command-trace.js +1 -1
  352. package/lib/telemetry/cli-help-trace.js +1 -1
  353. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  354. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  355. package/lib/telemetry/send-cli-trace-log.js +1 -1
  356. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  357. package/lib/utils/ai_config.js +1 -1
  358. package/lib/utils/apply-jq-filter.js +1 -1
  359. package/lib/utils/cdn-config.js +1 -1
  360. package/lib/utils/check-sdk-version.js +1 -1
  361. package/lib/utils/cli-version-check.js +1 -1
  362. package/lib/utils/cli-version-policy.js +1 -1
  363. package/lib/utils/config.js +1 -1
  364. package/lib/utils/entity-with-id.js +1 -1
  365. package/lib/utils/file-utils.js +1 -1
  366. package/lib/utils/guides-cdn.js +1 -1
  367. package/lib/utils/http-client.js +1 -1
  368. package/lib/utils/is-non-interactive.js +1 -1
  369. package/lib/utils/logger.js +1 -1
  370. package/lib/utils/params.js +1 -1
  371. package/lib/utils/platform.js +1 -1
  372. package/lib/utils/sleep.js +1 -1
  373. package/lib/utils/template-replacer.js +1 -1
  374. package/lib/utils/update-notice.js +1 -1
  375. package/lib/utils/version.js +1 -1
  376. package/lib/utils/with-active-cookie.js +1 -1
  377. package/lib/utils/write-cli-side-channel.js +1 -1
  378. package/package.json +1 -1
  379. package/skills/rabetbase/SKILL.md +1 -1
  380. package/skills/rabetbase/references/rabetbase-kb.md +17 -15
  381. package/skills/rabetbase/references/rabetbase-rule.md +8 -6
  382. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  383. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  384. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a44_0x9d3de8=a44_0x50dd;(function(_0x3b3645,_0x22fd88){const _0x328fe2=a44_0x50dd,_0x508563=_0x3b3645();while(!![]){try{const _0x900b42=parseInt(_0x328fe2(0x1c4))/0x1+-parseInt(_0x328fe2(0x1df))/0x2*(parseInt(_0x328fe2(0x215))/0x3)+parseInt(_0x328fe2(0x1f5))/0x4*(-parseInt(_0x328fe2(0x202))/0x5)+parseInt(_0x328fe2(0x1e1))/0x6+parseInt(_0x328fe2(0x1f9))/0x7+-parseInt(_0x328fe2(0x1f3))/0x8*(parseInt(_0x328fe2(0x21b))/0x9)+parseInt(_0x328fe2(0x1c5))/0xa;if(_0x900b42===_0x22fd88)break;else _0x508563['push'](_0x508563['shift']());}catch(_0x543a0c){_0x508563['push'](_0x508563['shift']());}}}(a44_0x4215,0x2fb4d));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';function a44_0x50dd(_0x278446,_0x426e51){_0x278446=_0x278446-0x1b0;const _0x421517=a44_0x4215();let _0x50dd9f=_0x421517[_0x278446];return _0x50dd9f;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a44_0x9d3de8(0x1e3),'command':a44_0x9d3de8(0x1d9),'description':a44_0x9d3de8(0x1e0),'risk':a44_0x9d3de8(0x1c9),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x9d3de8(0x213),'description':a44_0x9d3de8(0x1f4),'enum':[a44_0x9d3de8(0x20f),'ENDPOINT',a44_0x9d3de8(0x1cb)]},{'name':a44_0x9d3de8(0x1e4),'type':a44_0x9d3de8(0x213),'description':a44_0x9d3de8(0x1f1)},{'name':a44_0x9d3de8(0x1b9),'type':a44_0x9d3de8(0x20a),'description':a44_0x9d3de8(0x21a)}],async 'dryRun'(_0x2e3b31){const _0x376013=a44_0x9d3de8,_0x12dc48=loadBffProjectConfig(_0x2e3b31[_0x376013(0x20b)]),_0x2da6a2=await readBffLockFile(_0x12dc48[_0x376013(0x1c3)]),{appLock:_0x204a97}=ensureLockScope(_0x2da6a2??createEmptyBffLock(),_0x2e3b31['appCode'],_0x12dc48[_0x376013(0x1f8)],'push'),_0xcc96ed=await getTargetFunctions(_0x12dc48,_0x2e3b31),_0x569660=_0xcc96ed['some'](_0x2d20d6=>_0x2d20d6[_0x376013(0x1d0)]===_0x376013(0x1cb))?await scanLocalBffFunctions(_0x12dc48,_0x376013(0x1cb)):_0xcc96ed,_0x22616e=await buildHookMaps(_0x2e3b31['appCode'],_0x2e3b31[_0x376013(0x212)],_0x569660,_0x204a97,_0x2e3b31[_0x376013(0x206)]||_0x2e3b31[_0x376013(0x1b2)]?.[_0x376013(0x204)]||_0x2e3b31[_0x376013(0x1b2)]?.[_0x376013(0x1d6)]),_0x849c7e=_0x2e3b31[_0x376013(0x214)]('force'),_0x51db2b=[];for(const _0x3c2722 of _0xcc96ed){const _0x5ed86d=await computeFileHash(_0x3c2722['filePath']),_0x103baf=_0x204a97[_0x376013(0x1b1)][_0x3c2722[_0x376013(0x1fd)]],_0x5486e3=!!_0x103baf&&_0x103baf[_0x376013(0x1eb)]===_0x5ed86d,_0x5d8061=_0x22616e[_0x376013(0x1e8)][_0x376013(0x1dc)](_0x3c2722[_0x376013(0x1fd)]),_0x52e06a=!!_0x103baf?.[_0x376013(0x1ff)]&&_0x103baf[_0x376013(0x217)]==null&&(_0x849c7e||!_0x5486e3),_0x1321ea=_0x52e06a?missingRemoteVersionConflict(_0x3c2722,_0x103baf):undefined,_0x45259a=_0x22616e[_0x376013(0x1ed)][_0x376013(0x1b7)](_0x3c2722[_0x376013(0x1fd)])?_0x376013(0x1bd):!_0x849c7e&&_0x5486e3?_0x376013(0x1d5):_0x1321ea?_0x376013(0x1c6):'would_push';_0x51db2b[_0x376013(0x1d9)]({'lockKey':_0x3c2722['lockKey'],'filePath':_0x3c2722[_0x376013(0x211)],'remoteId':_0x103baf?.['remoteId']??null,'mode':_0x103baf?.[_0x376013(0x1ff)]?_0x376013(0x1c2):'create','status':_0x45259a,..._0x22616e[_0x376013(0x1ed)][_0x376013(0x1b7)](_0x3c2722['lockKey'])?{'error':_0x22616e[_0x376013(0x1ed)]['get'](_0x3c2722[_0x376013(0x1fd)])}:{},..._0x1321ea?{'conflict':_0x1321ea}:{},..._0x22616e['existingHooks'][_0x376013(0x1b7)](_0x3c2722[_0x376013(0x1fd)])?{'datasetCode':_0x103baf?.[_0x376013(0x1ca)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x3c2722[_0x376013(0x1fd)])]}:{},..._0x5d8061?{'alias':_0x5d8061[_0x376013(0x200)]??null,'datasetCode':_0x5d8061[_0x376013(0x1ca)],'operationType':_0x3c2722[_0x376013(0x1c0)],'functionNode':_0x3c2722['functionNode'],'warnings':_0x5d8061[_0x376013(0x1b3)]}:{}});}return{'method':_0x376013(0x20d),'url':_0x376013(0x1ea),'body':{'appCode':_0x2e3b31[_0x376013(0x20b)],'force':_0x849c7e,'files':_0x51db2b,'cacheClearAtRuntime':_0x51db2b[_0x376013(0x1e7)](_0x38279d=>_0x38279d[_0x376013(0x1da)]==='would_push'),'cacheClearAtRuntimeTimes':_0x51db2b['some'](_0x47cfa3=>_0x47cfa3[_0x376013(0x1da)]===_0x376013(0x1e9))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x51db2b[_0x376013(0x1e6)]+_0x376013(0x1fa)};},async 'execute'(_0x2f911c){const _0x3de8eb=a44_0x9d3de8,_0xd7284d=loadBffProjectConfig(_0x2f911c[_0x3de8eb(0x20b)]),_0x3ca284=await readBffLockFile(_0xd7284d[_0x3de8eb(0x1c3)]),{lockData:_0xac475c,appLock:_0x144499}=ensureLockScope(_0x3ca284??createEmptyBffLock(),_0x2f911c['appCode'],_0xd7284d[_0x3de8eb(0x1f8)],_0x3de8eb(0x1d9)),_0x1f024e=await getTargetFunctions(_0xd7284d,_0x2f911c);if(_0x1f024e[_0x3de8eb(0x1e6)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x874a2d=_0x2f911c[_0x3de8eb(0x214)](_0x3de8eb(0x1b9)),_0x719902=JSON[_0x3de8eb(0x208)](JSON[_0x3de8eb(0x1db)](_0xac475c)),_0x51a389=_0x719902[_0x3de8eb(0x21c)][_0x2f911c[_0x3de8eb(0x20b)]];if(!_0x51a389)throw new Error(_0x3de8eb(0x1c1)+_0x2f911c[_0x3de8eb(0x20b)]+_0x3de8eb(0x1d8));const _0x3105c8=_0x1f024e[_0x3de8eb(0x1e7)](_0x5a2151=>_0x5a2151[_0x3de8eb(0x1d0)]===_0x3de8eb(0x1cb))?await scanLocalBffFunctions(_0xd7284d,_0x3de8eb(0x1cb)):_0x1f024e,_0x1e323b=await buildHookMaps(_0x2f911c[_0x3de8eb(0x20b)],_0x2f911c['apiDir'],_0x3105c8,_0x51a389,_0x2f911c[_0x3de8eb(0x206)]||_0x2f911c['mergedCli']?.[_0x3de8eb(0x204)]||_0x2f911c['mergedCli']?.[_0x3de8eb(0x1d6)]),_0x2108f1=[],_0x76b515=[],_0x36f252=[],_0x1a5843=[];for(const _0x5bab16 of _0x1f024e){const _0x35f0bf=_0x1e323b[_0x3de8eb(0x1ed)][_0x3de8eb(0x1dc)](_0x5bab16[_0x3de8eb(0x1fd)]);if(_0x35f0bf){_0x1a5843[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'error':_0x35f0bf});continue;}const _0x3bb467=await computeFileHash(_0x5bab16['filePath']),_0x5c7507=_0x51a389[_0x3de8eb(0x1b1)][_0x5bab16['lockKey']];if(!_0x874a2d&&_0x5c7507&&_0x5c7507[_0x3de8eb(0x1eb)]===_0x3bb467){_0x76b515[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16['lockKey'],'reason':'unchanged'});continue;}if(_0x5c7507?.[_0x3de8eb(0x1ff)]&&_0x5c7507['version']==null){_0x36f252[_0x3de8eb(0x1d9)](missingRemoteVersionConflict(_0x5bab16,_0x5c7507));continue;}try{await uploadSingleFunction(_0x2f911c[_0x3de8eb(0x20b)],_0x5bab16,_0x51a389,_0x1e323b);const _0x3a823f=_0x51a389[_0x3de8eb(0x1b1)][_0x5bab16[_0x3de8eb(0x1fd)]];_0x2108f1[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'remoteId':_0x3a823f?.[_0x3de8eb(0x1ff)]??0x0});}catch(_0x3ca497){const _0x3b8686=remoteVersionChangedConflict(_0x5bab16,_0x5c7507,_0x3ca497);if(_0x3b8686){_0x36f252['push'](_0x3b8686);continue;}_0x1a5843[_0x3de8eb(0x1d9)]({'lockKey':_0x5bab16[_0x3de8eb(0x1fd)],'error':_0x3ca497 instanceof Error?_0x3ca497[_0x3de8eb(0x1b4)]:String(_0x3ca497)});}}_0x51a389[_0x3de8eb(0x1ef)]=new Date()[_0x3de8eb(0x1d2)](),await writeBffLockFile(_0xd7284d[_0x3de8eb(0x1c3)],_0x719902),await waitForUploadedLockEntries(_0xd7284d['lockFilePath'],_0x2f911c[_0x3de8eb(0x20b)],_0x2108f1['map'](_0x2ac7eb=>_0x2ac7eb[_0x3de8eb(0x1fd)]));let _0x3bd25c={'attempted':![],'cleared':![]};if(_0x2108f1[_0x3de8eb(0x1e6)]>0x0)try{let _0x312fa1='';for(let _0x36e5af=0x0;_0x36e5af<CACHE_CLEAR_ATTEMPTS;_0x36e5af+=0x1){_0x312fa1=await clearBffScriptCache(),_0x36e5af<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x3bd25c={'attempted':!![],'cleared':!![],'message':_0x312fa1||_0x3de8eb(0x205)};}catch(_0x2d9069){_0x3bd25c={'attempted':!![],'cleared':![],'error':_0x2d9069 instanceof Error?_0x2d9069[_0x3de8eb(0x1b4)]:String(_0x2d9069)};}const _0xad36aa=_0x1a5843[_0x3de8eb(0x1e6)]===0x0&&(_0x3bd25c[_0x3de8eb(0x1bb)]?_0x3bd25c[_0x3de8eb(0x1d1)]:!![]),_0x280d93=_0xad36aa,_0x1d9a8e=_0x3bd25c[_0x3de8eb(0x1bb)]?_0x3bd25c[_0x3de8eb(0x1d1)]?_0x3de8eb(0x1b8):_0x3de8eb(0x1c8):_0x3de8eb(0x1cf);return{'ok':_0x280d93,'data':{'uploaded':_0x2108f1,'skipped':_0x76b515,'conflicts':_0x36f252,'failed':_0x1a5843,'cacheClear':_0x3bd25c,'warnings':[...[..._0x1e323b[_0x3de8eb(0x1e8)][_0x3de8eb(0x1c7)]()]['flatMap'](_0x5a6066=>_0x5a6066[_0x3de8eb(0x1b3)]),...[..._0x1e323b[_0x3de8eb(0x1ba)]][_0x3de8eb(0x1ce)](existingHookWarning)]},'message':formatPushMessage(_0x2108f1[_0x3de8eb(0x1e6)],_0x76b515[_0x3de8eb(0x1e6)],_0x36f252[_0x3de8eb(0x1e6)],_0x1a5843['length'],_0x1d9a8e)};}};function missingRemoteVersionConflict(_0xc1ff47,_0x23b302){const _0x264f31=a44_0x9d3de8;return remoteVersionConflict(_0xc1ff47,_0x23b302,'BFF_REMOTE_VERSION_MISSING',_0x264f31(0x1f6));}function remoteVersionChangedConflict(_0x388925,_0x4be11f,_0x253818){const _0x20f731=a44_0x9d3de8;if(!_0x4be11f?.[_0x20f731(0x1ff)]||_0x4be11f['version']==null||!isRemoteVersionConflict(_0x253818))return undefined;return remoteVersionConflict(_0x388925,_0x4be11f,_0x20f731(0x1e2),_0x20f731(0x1bf));}function remoteVersionConflict(_0x314f81,_0x28e05f,_0xffd6a9,_0x5dea5d){const _0x54f78b=a44_0x9d3de8;return{'code':_0xffd6a9,'lockKey':_0x314f81['lockKey'],'filePath':_0x314f81[_0x54f78b(0x211)],'remoteId':_0x28e05f[_0x54f78b(0x1ff)],..._0x28e05f[_0x54f78b(0x217)]!=null?{'expectedVersion':_0x28e05f[_0x54f78b(0x217)]}:{},'message':_0x5dea5d,'nextAction':{'action':'review_remote_and_merge','command':CLI_BIN_NAME+'\x20bff\x20detail\x20--id\x20'+_0x28e05f[_0x54f78b(0x1ff)]+_0x54f78b(0x1bc),'requiresReview':!![],'message':_0x54f78b(0x1cd)}};}function isRemoteVersionConflict(_0x38a8df){const _0x1bf366=a44_0x9d3de8,_0x5c23fc=_0x38a8df instanceof Error?_0x38a8df[_0x1bf366(0x1b4)]:String(_0x38a8df),_0x2a95b6=getPlatformErrorCode(_0x38a8df)??'';return[_0x5c23fc,_0x2a95b6][_0x1bf366(0x1e7)](_0x1956fb=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i[_0x1bf366(0x1be)](_0x1956fb));}function formatPushMessage(_0x3945ce,_0x232b52,_0x5a81a6,_0x23e460,_0x1496d6){const _0x3ef54e=a44_0x9d3de8,_0x502ecb=[_0x3ef54e(0x201)+_0x3945ce+_0x3ef54e(0x1fb),_0x232b52+'\x20skipped'];_0x5a81a6>0x0&&_0x502ecb['push'](_0x5a81a6+_0x3ef54e(0x1de)+(_0x5a81a6===0x1?'':'s')+'\x20'+(_0x5a81a6===0x1?_0x3ef54e(0x1d7):'require')+'\x20resolution');if(_0x23e460>0x0)_0x502ecb['push'](_0x23e460+'\x20failed');return _0x502ecb[_0x3ef54e(0x1d9)](_0x1496d6),_0x502ecb[_0x3ef54e(0x209)](',\x20');}async function getTargetFunctions(_0x39aa3e,_0x3085a3){const _0x55c5d4=a44_0x9d3de8,_0x43b93b=_0x3085a3['str'](_0x55c5d4(0x1d0)),_0x47af86=_0x3085a3[_0x55c5d4(0x218)](_0x55c5d4(0x1e4)),_0x19190a=normalizeBffType(_0x43b93b)??undefined;if(_0x47af86&&!_0x19190a)throw CliErrors[_0x55c5d4(0x203)](_0x55c5d4(0x1cc));const _0x2ba75f=await scanLocalBffFunctions(_0x39aa3e,_0x19190a);if(_0x47af86){const _0x3356a1=_0x2ba75f[_0x55c5d4(0x216)](_0x54f860=>_0x54f860['name']===_0x47af86);if(_0x3356a1[_0x55c5d4(0x1e6)]===0x0)throw CliErrors[_0x55c5d4(0x203)](_0x55c5d4(0x1e5)+_0x19190a+'/'+_0x47af86);return _0x3356a1;}return _0x2ba75f;}function existingHookWarning(_0x5c9875){return{'code':'EXISTING_HOOK_BINDING_PRESERVED','lockKey':_0x5c9875,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x4f8cbd,_0x2049d9,_0xf4a648,_0x4cc4a7,_0x4a8bbd){const _0x2a8d84=a44_0x9d3de8,_0x5127e4=_0xf4a648[_0x2a8d84(0x1e7)](_0x3211e6=>_0x3211e6[_0x2a8d84(0x1d0)]===_0x2a8d84(0x1cb));if(!_0x5127e4)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x1cad08=resolveApiModelSource(_0x2049d9,_0x4f8cbd,_0x4a8bbd),_0x2113ac=loadAliasMap(_0x2049d9,undefined,_0x1cad08[_0x2a8d84(0x211)],_0x1cad08[_0x2a8d84(0x1dd)]);assertUnambiguousHookAliases(_0x2113ac);const _0x599f13=[..._0x2113ac[_0x2a8d84(0x1ce)](_0x2e08bf=>[_0x2e08bf[_0x2a8d84(0x200)],_0x2e08bf[_0x2a8d84(0x1ca)]]),...trackedHookDirectoryMappings(_0x4cc4a7)[_0x2a8d84(0x1ce)](_0x537139=>[_0x537139[_0x2a8d84(0x200)],_0x537139[_0x2a8d84(0x1ca)]])],_0x269cf1=await listDatasets(_0x4f8cbd);assertUnambiguousHookDirectoryMappings(_0x599f13['map'](([_0xba94ee,_0x5eb07d])=>({'alias':_0xba94ee,'datasetCode':_0x5eb07d})));const _0x1a84b4=buildHookDirectoryIndexes(_0x269cf1,_0x599f13),_0x4fc506=new Map(),_0x10595c=preflightPushHookDirectories(_0xf4a648,_0x4cc4a7,_0x1a84b4,_0x4fc506),_0xd15951=new Set(),_0x1f8b0b=_0xf4a648[_0x2a8d84(0x216)](_0x29fe18=>_0x4fc506[_0x2a8d84(0x1dc)](_0x29fe18['lockKey'])?.[_0x2a8d84(0x1b0)]('HOOK_DATASET_NOT_FOUND:')&&_0x4cc4a7[_0x2a8d84(0x1b1)][_0x29fe18[_0x2a8d84(0x1fd)]]?.[_0x2a8d84(0x1ff)]&&_0x4cc4a7[_0x2a8d84(0x1b1)][_0x29fe18['lockKey']]?.[_0x2a8d84(0x1ca)]);if(_0x1f8b0b['length']>0x0){let _0x28cc51;try{_0x28cc51=await getBffScriptStatistics(_0x4f8cbd);}catch(_0x3836ae){for(const _0xf6295b of _0x1f8b0b)_0x4fc506[_0x2a8d84(0x1ee)](_0xf6295b[_0x2a8d84(0x1fd)],_0x2a8d84(0x20e)+(_0x3836ae instanceof Error?_0x3836ae[_0x2a8d84(0x1b4)]:String(_0x3836ae)));return{'resolutions':_0x10595c,'failures':_0x4fc506,'existingHooks':_0xd15951};}for(const _0x2e4543 of _0x1f8b0b){const _0x57818d=_0x4cc4a7[_0x2a8d84(0x1b1)][_0x2e4543[_0x2a8d84(0x1fd)]];try{const _0x4127da=new Set(_0xf4a648[_0x2a8d84(0x216)](_0x1d232f=>_0x1d232f['type']==='HOOK'&&_0x4cc4a7['functions'][_0x1d232f['lockKey']]?.['datasetCode']===_0x57818d[_0x2a8d84(0x1ca)])[_0x2a8d84(0x1ce)](_0xb11da6=>_0xb11da6[_0x2a8d84(0x200)]));if(_0x4127da['size']>0x1)throw CliErrors[_0x2a8d84(0x203)](_0x2a8d84(0x1b5));const _0x52bc05=_0x28cc51['flatMap'](_0x371984=>[{'datasetCode':_0x371984[_0x2a8d84(0x1ca)],'operationType':snakeToCamel(_0x371984['operationType']),'functionNode':_0x2a8d84(0x1fe),'id':_0x371984['beforeScriptId']},{'datasetCode':_0x371984['datasetCode'],'operationType':snakeToCamel(_0x371984[_0x2a8d84(0x1c0)]),'functionNode':'after','id':_0x371984[_0x2a8d84(0x1fc)]}])[_0x2a8d84(0x216)](_0x585003=>_0x585003['id']===_0x57818d[_0x2a8d84(0x1ff)]),_0x502e60=await getBffScriptInfo(_0x57818d['remoteId']);if(_0x502e60['id']!==_0x57818d['remoteId']||_0x502e60[_0x2a8d84(0x20b)]!==_0x4f8cbd||_0x502e60[_0x2a8d84(0x1f7)]!==_0x2a8d84(0x1cb)||_0x502e60[_0x2a8d84(0x1b6)]!==_0x2e4543[_0x2a8d84(0x1e4)]||_0x57818d['version']==null||_0x502e60[_0x2a8d84(0x217)]!==_0x57818d[_0x2a8d84(0x217)]||_0x52bc05[_0x2a8d84(0x1e6)]!==0x1||_0x52bc05[0x0]['datasetCode']!==_0x57818d[_0x2a8d84(0x1ca)]||_0x52bc05[0x0][_0x2a8d84(0x1c0)]!==_0x2e4543[_0x2a8d84(0x1c0)]||_0x52bc05[0x0][_0x2a8d84(0x1f2)]!==_0x2e4543['functionNode']||_0x57818d['operationType']!==_0x2e4543[_0x2a8d84(0x1c0)]||_0x57818d[_0x2a8d84(0x1f2)]!==_0x2e4543[_0x2a8d84(0x1f2)])throw CliErrors[_0x2a8d84(0x203)]('Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.');_0xd15951[_0x2a8d84(0x1f0)](_0x2e4543['lockKey']),_0x4fc506[_0x2a8d84(0x20c)](_0x2e4543['lockKey']);}catch(_0x47df78){_0x4fc506[_0x2a8d84(0x1ee)](_0x2e4543[_0x2a8d84(0x1fd)],_0x47df78 instanceof Error?_0x47df78[_0x2a8d84(0x1b4)]:String(_0x47df78));}}}return{'resolutions':_0x10595c,'failures':_0x4fc506,'existingHooks':_0xd15951};}async function uploadSingleFunction(_0x187e6f,_0x354035,_0x1e9908,_0x12d4b9){const _0x2cad3d=a44_0x9d3de8,_0x357375=await readFile(_0x354035[_0x2cad3d(0x211)],'utf8'),_0x5aca52=await computeFileHash(_0x354035[_0x2cad3d(0x211)]),_0x32ab09=_0x1e9908[_0x2cad3d(0x1b1)][_0x354035[_0x2cad3d(0x1fd)]];if(_0x32ab09?.[_0x2cad3d(0x1ff)]&&_0x32ab09[_0x2cad3d(0x217)]==null)throw CliErrors['validation'](_0x354035['lockKey']+_0x2cad3d(0x210));let _0x531332=extractScriptDescription(_0x357375);if(!_0x531332&&_0x32ab09?.[_0x2cad3d(0x1ff)]){const _0x3c8efe=await getBffScriptInfo(_0x32ab09[_0x2cad3d(0x1ff)]);_0x531332=_0x3c8efe['description']||undefined;}const _0x248b49={'appCode':_0x187e6f,'functionName':_0x354035[_0x2cad3d(0x1e4)],'scriptType':_0x354035[_0x2cad3d(0x1d0)],'scriptContent':_0x357375};if(_0x32ab09?.[_0x2cad3d(0x1ff)])_0x248b49['id']=_0x32ab09[_0x2cad3d(0x1ff)];if(_0x32ab09?.[_0x2cad3d(0x217)]!=null)_0x248b49[_0x2cad3d(0x217)]=_0x32ab09[_0x2cad3d(0x217)];if(_0x531332)_0x248b49[_0x2cad3d(0x207)]=_0x531332;if(_0x354035[_0x2cad3d(0x1d0)]==='HOOK'){const _0x55e7ba=_0x12d4b9[_0x2cad3d(0x1e8)][_0x2cad3d(0x1dc)](_0x354035[_0x2cad3d(0x1fd)]);if(!_0x55e7ba&&!_0x12d4b9['existingHooks'][_0x2cad3d(0x1b7)](_0x354035[_0x2cad3d(0x1fd)])||!_0x354035[_0x2cad3d(0x1c0)]||!_0x354035[_0x2cad3d(0x1f2)])throw CliErrors[_0x2cad3d(0x203)](_0x2cad3d(0x219)+_0x354035[_0x2cad3d(0x1fd)]);_0x55e7ba&&(_0x248b49[_0x2cad3d(0x1d3)]=_0x55e7ba[_0x2cad3d(0x1d4)]['id'],_0x248b49['operationType']=_0x354035[_0x2cad3d(0x1c0)]),_0x248b49[_0x2cad3d(0x1f2)]=_0x354035['functionNode'];}const _0x336ca6=await saveBffScript(_0x248b49),_0x1ba1b6=_0x336ca6['id'],_0x62fc85=_0x336ca6['script']??await getBffScriptInfo(_0x1ba1b6),_0x10cd44={'hash':_0x5aca52,'remoteId':_0x1ba1b6,'version':_0x62fc85[_0x2cad3d(0x217)]};if(_0x354035[_0x2cad3d(0x1d0)]===_0x2cad3d(0x1cb)){const _0x28db9c=_0x12d4b9[_0x2cad3d(0x1e8)][_0x2cad3d(0x1dc)](_0x354035['lockKey']);if(!_0x28db9c){_0x1e9908['functions'][_0x354035[_0x2cad3d(0x1fd)]]={..._0x32ab09,..._0x10cd44};return;}_0x10cd44[_0x2cad3d(0x200)]=_0x28db9c[_0x2cad3d(0x200)]??_0x32ab09?.[_0x2cad3d(0x200)],_0x10cd44['datasetCode']=_0x28db9c[_0x2cad3d(0x1ca)],_0x10cd44[_0x2cad3d(0x1c0)]=_0x354035[_0x2cad3d(0x1c0)],_0x10cd44['functionNode']=_0x354035[_0x2cad3d(0x1f2)];}_0x1e9908[_0x2cad3d(0x1b1)][_0x354035[_0x2cad3d(0x1fd)]]=_0x10cd44;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x106cac,_0xd0485a,_0x15a09e){const _0x42ebf8=a44_0x9d3de8;if(_0x15a09e[_0x42ebf8(0x1e6)]===0x0)return;for(let _0x3e7240=0x0;_0x3e7240<LOCK_SETTLE_RETRY_COUNT;_0x3e7240+=0x1){const _0x386035=await readBffLockFile(_0x106cac),_0x2b6627=_0x386035?.[_0x42ebf8(0x21c)]?.[_0xd0485a]?.[_0x42ebf8(0x1b1)]??{},_0x17652b=_0x15a09e['every'](_0x46d5d1=>!!_0x2b6627[_0x46d5d1]?.[_0x42ebf8(0x1ff)]);if(_0x17652b)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x42ebf8(0x1ec)+_0x15a09e[_0x42ebf8(0x209)](',\x20')+'.');}function a44_0x4215(){const _0x1cde65=['filePath','apiDir','string','bool','165uPmlXR','filter','version','str','Incomplete\x20HOOK\x20path:\x20','Force\x20push\x20ignoring\x20hash\x20protection','9GwMXkx','apps','startsWith','functions','mergedCli','warnings','message','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','functionName','has','runtime\x20cache\x20cleared','force','existingHooks','attempted','\x20--format\x20compress','failed','test','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','operationType','Lock\x20scope\x20for\x20app\x20\x22','update','lockFilePath','287364SFugEz','3010390xFUrWl','conflict','values','runtime\x20cache\x20clear\x20failed','write','datasetCode','HOOK','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.','map','runtime\x20cache\x20not\x20needed','type','cleared','toISOString','datasetId','dataset','unchanged','defaultApp','requires','\x22\x20not\x20found\x20after\x20ensureLockScope.','push','status','stringify','get','profileName','\x20conflict','342yWbWAJ','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','1149492uWMwBu','BFF_REMOTE_VERSION_CHANGED','bff','name','Local\x20function\x20not\x20found:\x20','length','some','resolutions','would_push','/api/management/library/scripts/save','hash','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','failures','set','lastSync','add','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','functionNode','2611832DyQPlm','Push\x20only\x20this\x20script\x20type','8maIxqG','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','scriptType','scriptsRoot','196182deDLXk','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','\x20uploaded','afterScriptId','lockKey','before','remoteId','alias','Push\x20complete:\x20','691805FwgNCo','validation','currentApp','Runtime\x20script\x20cache\x20cleared.','selectedAppName','description','parse','join','boolean','appCode','delete','POST','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','COMMON',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.'];a44_0x4215=function(){return _0x1cde65;};return a44_0x4215();}
1
+ function a44_0x52c2(_0x3a0dca,_0x38a706){_0x3a0dca=_0x3a0dca-0x16e;const _0x40fa2e=a44_0x40fa();let _0x52c27c=_0x40fa2e[_0x3a0dca];return _0x52c27c;}const a44_0x28a35a=a44_0x52c2;(function(_0x5a737a,_0x209dc3){const _0x5ba749=a44_0x52c2,_0x4a5bef=_0x5a737a();while(!![]){try{const _0x51cc78=-parseInt(_0x5ba749(0x18c))/0x1*(-parseInt(_0x5ba749(0x174))/0x2)+parseInt(_0x5ba749(0x187))/0x3*(parseInt(_0x5ba749(0x1ad))/0x4)+parseInt(_0x5ba749(0x191))/0x5*(-parseInt(_0x5ba749(0x190))/0x6)+-parseInt(_0x5ba749(0x197))/0x7*(-parseInt(_0x5ba749(0x1d5))/0x8)+parseInt(_0x5ba749(0x1c6))/0x9+parseInt(_0x5ba749(0x192))/0xa+-parseInt(_0x5ba749(0x189))/0xb;if(_0x51cc78===_0x209dc3)break;else _0x4a5bef['push'](_0x4a5bef['shift']());}catch(_0x2fcb99){_0x4a5bef['push'](_0x4a5bef['shift']());}}}(a44_0x40fa,0x91f04));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a44_0x28a35a(0x1b5),'command':'push','description':a44_0x28a35a(0x1b3),'risk':a44_0x28a35a(0x19b),'structuredErrors':!![],'flags':[{'name':a44_0x28a35a(0x196),'type':'string','description':a44_0x28a35a(0x1cd),'enum':[a44_0x28a35a(0x19e),a44_0x28a35a(0x1d2),'HOOK']},{'name':a44_0x28a35a(0x1c3),'type':'string','description':a44_0x28a35a(0x1c0)},{'name':a44_0x28a35a(0x180),'type':a44_0x28a35a(0x175),'description':a44_0x28a35a(0x1b0)}],async 'dryRun'(_0x5332ce){const _0x4ed482=a44_0x28a35a,_0x5ddc95=loadBffProjectConfig(_0x5332ce[_0x4ed482(0x1a8)]),_0x4dca19=await readBffLockFile(_0x5ddc95[_0x4ed482(0x1db)]),{appLock:_0x298a39}=ensureLockScope(_0x4dca19??createEmptyBffLock(),_0x5332ce[_0x4ed482(0x1a8)],_0x5ddc95[_0x4ed482(0x1c5)],_0x4ed482(0x1a9)),_0x19cfdc=await getTargetFunctions(_0x5ddc95,_0x5332ce),_0x430e0b=_0x19cfdc[_0x4ed482(0x195)](_0x6a569e=>_0x6a569e['type']===_0x4ed482(0x179))?await scanLocalBffFunctions(_0x5ddc95,_0x4ed482(0x179)):_0x19cfdc,_0x53b21e=await buildHookMaps(_0x5332ce[_0x4ed482(0x1a8)],_0x5332ce['apiDir'],_0x430e0b,_0x298a39,_0x5332ce[_0x4ed482(0x1b7)]||_0x5332ce['mergedCli']?.['currentApp']||_0x5332ce['mergedCli']?.[_0x4ed482(0x1ca)]),_0x106f6f=_0x5332ce[_0x4ed482(0x181)]('force'),_0xc62739=[];for(const _0x526271 of _0x19cfdc){const _0x26a074=await computeFileHash(_0x526271[_0x4ed482(0x1cc)]),_0x91e673=_0x298a39[_0x4ed482(0x198)][_0x526271[_0x4ed482(0x1a3)]],_0x5b9ae9=!!_0x91e673&&_0x91e673[_0x4ed482(0x188)]===_0x26a074,_0x5d321f=_0x53b21e[_0x4ed482(0x1bc)]['get'](_0x526271[_0x4ed482(0x1a3)]),_0x1f2b8b=!!_0x91e673?.[_0x4ed482(0x1da)]&&_0x91e673[_0x4ed482(0x176)]==null&&(_0x106f6f||!_0x5b9ae9),_0x518f54=_0x1f2b8b?missingRemoteVersionConflict(_0x526271,_0x91e673):undefined,_0xc7ad0=_0x53b21e['failures'][_0x4ed482(0x17c)](_0x526271['lockKey'])?_0x4ed482(0x194):!_0x106f6f&&_0x5b9ae9?_0x4ed482(0x1c2):_0x518f54?'conflict':_0x4ed482(0x1d0);_0xc62739[_0x4ed482(0x1a9)]({'lockKey':_0x526271[_0x4ed482(0x1a3)],'filePath':_0x526271[_0x4ed482(0x1cc)],'remoteId':_0x91e673?.[_0x4ed482(0x1da)]??null,'mode':_0x91e673?.['remoteId']?_0x4ed482(0x184):_0x4ed482(0x18a),'status':_0xc7ad0,..._0x53b21e[_0x4ed482(0x1af)][_0x4ed482(0x17c)](_0x526271['lockKey'])?{'error':_0x53b21e[_0x4ed482(0x1af)][_0x4ed482(0x1c9)](_0x526271[_0x4ed482(0x1a3)])}:{},..._0x518f54?{'conflict':_0x518f54}:{},..._0x53b21e[_0x4ed482(0x1d4)][_0x4ed482(0x17c)](_0x526271[_0x4ed482(0x1a3)])?{'datasetCode':_0x91e673?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x526271[_0x4ed482(0x1a3)])]}:{},..._0x5d321f?{'alias':_0x5d321f['alias']??null,'datasetCode':_0x5d321f[_0x4ed482(0x183)],'operationType':_0x526271[_0x4ed482(0x1b8)],'functionNode':_0x526271[_0x4ed482(0x1c1)],'warnings':_0x5d321f[_0x4ed482(0x1a2)]}:{}});}return{'method':'POST','url':_0x4ed482(0x193),'body':{'appCode':_0x5332ce[_0x4ed482(0x1a8)],'force':_0x106f6f,'files':_0xc62739,'cacheClearAtRuntime':_0xc62739['some'](_0x22ec3d=>_0x22ec3d['status']===_0x4ed482(0x1d0)),'cacheClearAtRuntimeTimes':_0xc62739[_0x4ed482(0x195)](_0x37f436=>_0x37f436[_0x4ed482(0x1ac)]===_0x4ed482(0x1d0))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x4ed482(0x1c8)+_0xc62739[_0x4ed482(0x178)]+_0x4ed482(0x1be)};},async 'execute'(_0xac8a41){const _0x4f26a2=a44_0x28a35a,_0x504048=loadBffProjectConfig(_0xac8a41[_0x4f26a2(0x1a8)]),_0x22f741=await readBffLockFile(_0x504048[_0x4f26a2(0x1db)]),{lockData:_0x125e63,appLock:_0x13e5a4}=ensureLockScope(_0x22f741??createEmptyBffLock(),_0xac8a41[_0x4f26a2(0x1a8)],_0x504048[_0x4f26a2(0x1c5)],_0x4f26a2(0x1a9)),_0x8dc661=await getTargetFunctions(_0x504048,_0xac8a41);if(_0x8dc661[_0x4f26a2(0x178)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x229c35=_0xac8a41[_0x4f26a2(0x181)](_0x4f26a2(0x180)),_0x4d19ca=JSON['parse'](JSON[_0x4f26a2(0x172)](_0x125e63)),_0x5d15fc=_0x4d19ca[_0x4f26a2(0x18e)][_0xac8a41[_0x4f26a2(0x1a8)]];if(!_0x5d15fc)throw new Error(_0x4f26a2(0x17a)+_0xac8a41[_0x4f26a2(0x1a8)]+_0x4f26a2(0x182));const _0xa14834=_0x8dc661[_0x4f26a2(0x195)](_0xe88b58=>_0xe88b58['type']===_0x4f26a2(0x179))?await scanLocalBffFunctions(_0x504048,_0x4f26a2(0x179)):_0x8dc661,_0x38231e=await buildHookMaps(_0xac8a41[_0x4f26a2(0x1a8)],_0xac8a41[_0x4f26a2(0x186)],_0xa14834,_0x5d15fc,_0xac8a41[_0x4f26a2(0x1b7)]||_0xac8a41['mergedCli']?.[_0x4f26a2(0x17f)]||_0xac8a41[_0x4f26a2(0x16f)]?.['defaultApp']),_0x4a2125=[],_0x72fc49=[],_0x544e30=[],_0x402165=[];for(const _0x34dbe1 of _0x8dc661){const _0x1e26e4=_0x38231e[_0x4f26a2(0x1af)][_0x4f26a2(0x1c9)](_0x34dbe1[_0x4f26a2(0x1a3)]);if(_0x1e26e4){_0x402165[_0x4f26a2(0x1a9)]({'lockKey':_0x34dbe1['lockKey'],'error':_0x1e26e4});continue;}const _0x39831d=await computeFileHash(_0x34dbe1[_0x4f26a2(0x1cc)]),_0x4a7898=_0x5d15fc[_0x4f26a2(0x198)][_0x34dbe1['lockKey']];if(!_0x229c35&&_0x4a7898&&_0x4a7898[_0x4f26a2(0x188)]===_0x39831d){_0x72fc49[_0x4f26a2(0x1a9)]({'lockKey':_0x34dbe1[_0x4f26a2(0x1a3)],'reason':_0x4f26a2(0x1c2)});continue;}if(_0x4a7898?.[_0x4f26a2(0x1da)]&&_0x4a7898[_0x4f26a2(0x176)]==null){_0x544e30[_0x4f26a2(0x1a9)](missingRemoteVersionConflict(_0x34dbe1,_0x4a7898));continue;}try{await uploadSingleFunction(_0xac8a41[_0x4f26a2(0x1a8)],_0x34dbe1,_0x5d15fc,_0x38231e);const _0x3f0a2f=_0x5d15fc[_0x4f26a2(0x198)][_0x34dbe1[_0x4f26a2(0x1a3)]];_0x4a2125[_0x4f26a2(0x1a9)]({'lockKey':_0x34dbe1['lockKey'],'remoteId':_0x3f0a2f?.[_0x4f26a2(0x1da)]??0x0});}catch(_0x54f5f9){const _0x93917d=remoteVersionChangedConflict(_0x34dbe1,_0x4a7898,_0x54f5f9);if(_0x93917d){_0x544e30['push'](_0x93917d);continue;}_0x402165['push']({'lockKey':_0x34dbe1[_0x4f26a2(0x1a3)],'error':_0x54f5f9 instanceof Error?_0x54f5f9[_0x4f26a2(0x18f)]:String(_0x54f5f9)});}}_0x5d15fc['lastSync']=new Date()['toISOString'](),await writeBffLockFile(_0x504048[_0x4f26a2(0x1db)],_0x4d19ca),await waitForUploadedLockEntries(_0x504048[_0x4f26a2(0x1db)],_0xac8a41[_0x4f26a2(0x1a8)],_0x4a2125[_0x4f26a2(0x1aa)](_0xd4c36e=>_0xd4c36e[_0x4f26a2(0x1a3)]));let _0x12d257={'attempted':![],'cleared':![]};if(_0x4a2125['length']>0x0)try{let _0xc223a6='';for(let _0x4a0b9a=0x0;_0x4a0b9a<CACHE_CLEAR_ATTEMPTS;_0x4a0b9a+=0x1){_0xc223a6=await clearBffScriptCache(),_0x4a0b9a<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x12d257={'attempted':!![],'cleared':!![],'message':_0xc223a6||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x121afe){_0x12d257={'attempted':!![],'cleared':![],'error':_0x121afe instanceof Error?_0x121afe[_0x4f26a2(0x18f)]:String(_0x121afe)};}const _0x11fba1=_0x402165[_0x4f26a2(0x178)]===0x0&&(_0x12d257[_0x4f26a2(0x1a0)]?_0x12d257['cleared']:!![]),_0x7090f6=_0x11fba1,_0x2445ab=_0x12d257[_0x4f26a2(0x1a0)]?_0x12d257[_0x4f26a2(0x1a6)]?_0x4f26a2(0x1ab):'runtime\x20cache\x20clear\x20failed':'runtime\x20cache\x20not\x20needed';return{'ok':_0x7090f6,'data':{'uploaded':_0x4a2125,'skipped':_0x72fc49,'conflicts':_0x544e30,'failed':_0x402165,'cacheClear':_0x12d257,'warnings':[...[..._0x38231e[_0x4f26a2(0x1bc)][_0x4f26a2(0x1a5)]()][_0x4f26a2(0x19d)](_0xfb7750=>_0xfb7750[_0x4f26a2(0x1a2)]),...[..._0x38231e[_0x4f26a2(0x1d4)]]['map'](existingHookWarning)]},'message':formatPushMessage(_0x4a2125['length'],_0x72fc49[_0x4f26a2(0x178)],_0x544e30[_0x4f26a2(0x178)],_0x402165[_0x4f26a2(0x178)],_0x2445ab)};}};function missingRemoteVersionConflict(_0x95124,_0x32a671){const _0x5dd7ee=a44_0x28a35a;return remoteVersionConflict(_0x95124,_0x32a671,_0x5dd7ee(0x19a),'The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.');}function remoteVersionChangedConflict(_0x34dfa0,_0x1f2ca8,_0x2d796a){const _0xb50b5c=a44_0x28a35a;if(!_0x1f2ca8?.['remoteId']||_0x1f2ca8[_0xb50b5c(0x176)]==null||!isRemoteVersionConflict(_0x2d796a))return undefined;return remoteVersionConflict(_0x34dfa0,_0x1f2ca8,_0xb50b5c(0x199),'Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.');}function remoteVersionConflict(_0x2adc1c,_0x4af1c7,_0x3b17dc,_0x585eb8){const _0x233bc2=a44_0x28a35a;return{'code':_0x3b17dc,'lockKey':_0x2adc1c[_0x233bc2(0x1a3)],'filePath':_0x2adc1c[_0x233bc2(0x1cc)],'remoteId':_0x4af1c7[_0x233bc2(0x1da)],..._0x4af1c7[_0x233bc2(0x176)]!=null?{'expectedVersion':_0x4af1c7[_0x233bc2(0x176)]}:{},'message':_0x585eb8,'nextAction':{'action':'review_remote_and_merge','command':CLI_BIN_NAME+_0x233bc2(0x1b4)+_0x4af1c7[_0x233bc2(0x1da)]+_0x233bc2(0x18b),'requiresReview':!![],'message':_0x233bc2(0x1ce)}};}function isRemoteVersionConflict(_0x173fed){const _0x2c3310=a44_0x28a35a,_0x593ed7=_0x173fed instanceof Error?_0x173fed[_0x2c3310(0x18f)]:String(_0x173fed),_0x959862=getPlatformErrorCode(_0x173fed)??'';return[_0x593ed7,_0x959862]['some'](_0x1a3794=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i['test'](_0x1a3794));}function formatPushMessage(_0x3e9105,_0x54654e,_0x56c8cd,_0x25da1b,_0xb7824e){const _0x8294f1=a44_0x28a35a,_0x3ae631=[_0x8294f1(0x1d7)+_0x3e9105+_0x8294f1(0x19f),_0x54654e+_0x8294f1(0x1c4)];_0x56c8cd>0x0&&_0x3ae631[_0x8294f1(0x1a9)](_0x56c8cd+'\x20conflict'+(_0x56c8cd===0x1?'':'s')+'\x20'+(_0x56c8cd===0x1?_0x8294f1(0x16e):_0x8294f1(0x1bb))+_0x8294f1(0x1bd));if(_0x25da1b>0x0)_0x3ae631[_0x8294f1(0x1a9)](_0x25da1b+_0x8294f1(0x170));return _0x3ae631[_0x8294f1(0x1a9)](_0xb7824e),_0x3ae631[_0x8294f1(0x171)](',\x20');}async function getTargetFunctions(_0x2a11a3,_0x51b5c4){const _0x3dd21e=a44_0x28a35a,_0x3e05cc=_0x51b5c4[_0x3dd21e(0x1bf)](_0x3dd21e(0x196)),_0x496c03=_0x51b5c4[_0x3dd21e(0x1bf)](_0x3dd21e(0x1c3)),_0x22ac61=normalizeBffType(_0x3e05cc)??undefined;if(_0x496c03&&!_0x22ac61)throw CliErrors[_0x3dd21e(0x1cf)](_0x3dd21e(0x19c));const _0x15f15e=await scanLocalBffFunctions(_0x2a11a3,_0x22ac61);if(_0x496c03){const _0x58b864=_0x15f15e[_0x3dd21e(0x1c7)](_0x24ee51=>_0x24ee51[_0x3dd21e(0x1c3)]===_0x496c03);if(_0x58b864[_0x3dd21e(0x178)]===0x0)throw CliErrors[_0x3dd21e(0x1cf)](_0x3dd21e(0x17e)+_0x22ac61+'/'+_0x496c03);return _0x58b864;}return _0x15f15e;}function existingHookWarning(_0x68dc6){const _0x1be9f4=a44_0x28a35a;return{'code':_0x1be9f4(0x185),'lockKey':_0x68dc6,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x3632b0,_0x4842e5,_0x1cfb8a,_0x54c1cd,_0x69a5c4){const _0x5dca9a=a44_0x28a35a,_0xf8783e=_0x1cfb8a[_0x5dca9a(0x195)](_0x42b607=>_0x42b607[_0x5dca9a(0x196)]===_0x5dca9a(0x179));if(!_0xf8783e)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x1dfc69=resolveApiModelSource(_0x4842e5,_0x3632b0,_0x69a5c4),_0x45af77=loadAliasMap(_0x4842e5,undefined,_0x1dfc69[_0x5dca9a(0x1cc)],_0x1dfc69[_0x5dca9a(0x17b)]);assertUnambiguousHookAliases(_0x45af77);const _0xa6e831=[..._0x45af77['map'](_0x53cbdf=>[_0x53cbdf[_0x5dca9a(0x177)],_0x53cbdf[_0x5dca9a(0x183)]]),...trackedHookDirectoryMappings(_0x54c1cd)[_0x5dca9a(0x1aa)](_0x18de13=>[_0x18de13[_0x5dca9a(0x177)],_0x18de13[_0x5dca9a(0x183)]])],_0x563b90=await listDatasets(_0x3632b0);assertUnambiguousHookDirectoryMappings(_0xa6e831[_0x5dca9a(0x1aa)](([_0x35198e,_0x59ffbd])=>({'alias':_0x35198e,'datasetCode':_0x59ffbd})));const _0xf9d02d=buildHookDirectoryIndexes(_0x563b90,_0xa6e831),_0x4c2418=new Map(),_0x522a9c=preflightPushHookDirectories(_0x1cfb8a,_0x54c1cd,_0xf9d02d,_0x4c2418),_0x583290=new Set(),_0x22c229=_0x1cfb8a[_0x5dca9a(0x1c7)](_0x171e79=>_0x4c2418['get'](_0x171e79[_0x5dca9a(0x1a3)])?.[_0x5dca9a(0x173)](_0x5dca9a(0x1b9))&&_0x54c1cd[_0x5dca9a(0x198)][_0x171e79['lockKey']]?.[_0x5dca9a(0x1da)]&&_0x54c1cd[_0x5dca9a(0x198)][_0x171e79[_0x5dca9a(0x1a3)]]?.['datasetCode']);if(_0x22c229[_0x5dca9a(0x178)]>0x0){let _0x885410;try{_0x885410=await getBffScriptStatistics(_0x3632b0);}catch(_0x113f9e){for(const _0x21c4df of _0x22c229)_0x4c2418[_0x5dca9a(0x1d8)](_0x21c4df[_0x5dca9a(0x1a3)],_0x5dca9a(0x17d)+(_0x113f9e instanceof Error?_0x113f9e['message']:String(_0x113f9e)));return{'resolutions':_0x522a9c,'failures':_0x4c2418,'existingHooks':_0x583290};}for(const _0x3557b0 of _0x22c229){const _0x16ea4b=_0x54c1cd[_0x5dca9a(0x198)][_0x3557b0['lockKey']];try{const _0x5ad1dd=new Set(_0x1cfb8a[_0x5dca9a(0x1c7)](_0x10fb5e=>_0x10fb5e[_0x5dca9a(0x196)]===_0x5dca9a(0x179)&&_0x54c1cd[_0x5dca9a(0x198)][_0x10fb5e[_0x5dca9a(0x1a3)]]?.[_0x5dca9a(0x183)]===_0x16ea4b[_0x5dca9a(0x183)])['map'](_0x5d35b6=>_0x5d35b6['alias']));if(_0x5ad1dd['size']>0x1)throw CliErrors[_0x5dca9a(0x1cf)](_0x5dca9a(0x1d3));const _0x3491f7=_0x885410[_0x5dca9a(0x19d)](_0x486101=>[{'datasetCode':_0x486101['datasetCode'],'operationType':snakeToCamel(_0x486101[_0x5dca9a(0x1b8)]),'functionNode':'before','id':_0x486101[_0x5dca9a(0x1d9)]},{'datasetCode':_0x486101[_0x5dca9a(0x183)],'operationType':snakeToCamel(_0x486101[_0x5dca9a(0x1b8)]),'functionNode':_0x5dca9a(0x1d6),'id':_0x486101[_0x5dca9a(0x1a7)]}])[_0x5dca9a(0x1c7)](_0x1d9e57=>_0x1d9e57['id']===_0x16ea4b[_0x5dca9a(0x1da)]),_0x499ad0=await getBffScriptInfo(_0x16ea4b[_0x5dca9a(0x1da)]);if(_0x499ad0['id']!==_0x16ea4b[_0x5dca9a(0x1da)]||_0x499ad0[_0x5dca9a(0x1a8)]!==_0x3632b0||_0x499ad0[_0x5dca9a(0x1d1)]!==_0x5dca9a(0x179)||_0x499ad0['functionName']!==_0x3557b0['name']||_0x16ea4b[_0x5dca9a(0x176)]==null||_0x499ad0[_0x5dca9a(0x176)]!==_0x16ea4b[_0x5dca9a(0x176)]||_0x3491f7['length']!==0x1||_0x3491f7[0x0][_0x5dca9a(0x183)]!==_0x16ea4b[_0x5dca9a(0x183)]||_0x3491f7[0x0][_0x5dca9a(0x1b8)]!==_0x3557b0[_0x5dca9a(0x1b8)]||_0x3491f7[0x0]['functionNode']!==_0x3557b0[_0x5dca9a(0x1c1)]||_0x16ea4b[_0x5dca9a(0x1b8)]!==_0x3557b0['operationType']||_0x16ea4b['functionNode']!==_0x3557b0[_0x5dca9a(0x1c1)])throw CliErrors[_0x5dca9a(0x1cf)]('Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.');_0x583290[_0x5dca9a(0x1a1)](_0x3557b0[_0x5dca9a(0x1a3)]),_0x4c2418[_0x5dca9a(0x1cb)](_0x3557b0['lockKey']);}catch(_0x3c917a){_0x4c2418[_0x5dca9a(0x1d8)](_0x3557b0[_0x5dca9a(0x1a3)],_0x3c917a instanceof Error?_0x3c917a[_0x5dca9a(0x18f)]:String(_0x3c917a));}}}return{'resolutions':_0x522a9c,'failures':_0x4c2418,'existingHooks':_0x583290};}async function uploadSingleFunction(_0x787c29,_0x356713,_0x4a0da,_0x781900){const _0x144d97=a44_0x28a35a,_0x162b7f=await readFile(_0x356713[_0x144d97(0x1cc)],_0x144d97(0x1a4)),_0x4ccb56=await computeFileHash(_0x356713[_0x144d97(0x1cc)]),_0x59f18f=_0x4a0da[_0x144d97(0x198)][_0x356713[_0x144d97(0x1a3)]];if(_0x59f18f?.[_0x144d97(0x1da)]&&_0x59f18f['version']==null)throw CliErrors[_0x144d97(0x1cf)](_0x356713[_0x144d97(0x1a3)]+_0x144d97(0x1ba));let _0x44270c=extractScriptDescription(_0x162b7f);if(!_0x44270c&&_0x59f18f?.[_0x144d97(0x1da)]){const _0x35b474=await getBffScriptInfo(_0x59f18f[_0x144d97(0x1da)]);_0x44270c=_0x35b474[_0x144d97(0x18d)]||undefined;}const _0x4e13ff={'appCode':_0x787c29,'functionName':_0x356713[_0x144d97(0x1c3)],'scriptType':_0x356713[_0x144d97(0x196)],'scriptContent':_0x162b7f};if(_0x59f18f?.[_0x144d97(0x1da)])_0x4e13ff['id']=_0x59f18f[_0x144d97(0x1da)];if(_0x59f18f?.[_0x144d97(0x176)]!=null)_0x4e13ff[_0x144d97(0x176)]=_0x59f18f['version'];if(_0x44270c)_0x4e13ff[_0x144d97(0x18d)]=_0x44270c;if(_0x356713['type']==='HOOK'){const _0x485180=_0x781900[_0x144d97(0x1bc)][_0x144d97(0x1c9)](_0x356713[_0x144d97(0x1a3)]);if(!_0x485180&&!_0x781900[_0x144d97(0x1d4)]['has'](_0x356713['lockKey'])||!_0x356713[_0x144d97(0x1b8)]||!_0x356713[_0x144d97(0x1c1)])throw CliErrors['validation']('Incomplete\x20HOOK\x20path:\x20'+_0x356713['lockKey']);_0x485180&&(_0x4e13ff[_0x144d97(0x1b2)]=_0x485180['dataset']['id'],_0x4e13ff[_0x144d97(0x1b8)]=_0x356713[_0x144d97(0x1b8)]),_0x4e13ff[_0x144d97(0x1c1)]=_0x356713['functionNode'];}const _0x2f09bc=await saveBffScript(_0x4e13ff),_0x5da298=_0x2f09bc['id'],_0xc98d07=_0x2f09bc[_0x144d97(0x1ae)]??await getBffScriptInfo(_0x5da298),_0x303e8d={'hash':_0x4ccb56,'remoteId':_0x5da298,'version':_0xc98d07[_0x144d97(0x176)]};if(_0x356713[_0x144d97(0x196)]===_0x144d97(0x179)){const _0x2f7666=_0x781900[_0x144d97(0x1bc)][_0x144d97(0x1c9)](_0x356713[_0x144d97(0x1a3)]);if(!_0x2f7666){_0x4a0da[_0x144d97(0x198)][_0x356713[_0x144d97(0x1a3)]]={..._0x59f18f,..._0x303e8d};return;}_0x303e8d[_0x144d97(0x177)]=_0x2f7666[_0x144d97(0x177)]??_0x59f18f?.['alias'],_0x303e8d['datasetCode']=_0x2f7666[_0x144d97(0x183)],_0x303e8d[_0x144d97(0x1b8)]=_0x356713['operationType'],_0x303e8d[_0x144d97(0x1c1)]=_0x356713[_0x144d97(0x1c1)];}_0x4a0da[_0x144d97(0x198)][_0x356713[_0x144d97(0x1a3)]]=_0x303e8d;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;function a44_0x40fa(){const _0x37bc10=['\x20resolution','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','str','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','functionNode','unchanged','name','\x20skipped','scriptsRoot','8057214oLWhXx','filter','Would\x20inspect\x20','get','defaultApp','delete','filePath','Push\x20only\x20this\x20script\x20type','Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.','validation','would_push','scriptType','ENDPOINT','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','existingHooks','424tsBbhI','after','Push\x20complete:\x20','set','beforeScriptId','remoteId','lockFilePath','requires','mergedCli','\x20failed','join','stringify','startsWith','36wsriuP','boolean','version','alias','length','HOOK','Lock\x20scope\x20for\x20app\x20\x22','profileName','has','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','Local\x20function\x20not\x20found:\x20','currentApp','force','bool','\x22\x20not\x20found\x20after\x20ensureLockScope.','datasetCode','update','EXISTING_HOOK_BINDING_PRESERVED','apiDir','33xbQROq','hash','15070055nKhRDG','create','\x20--format\x20compress','2558PoqIhP','description','apps','message','299622atwNdB','50DAhoYx','9351210DLlZHx','/api/management/library/scripts/save','failed','some','type','18921YWSCWi','functions','BFF_REMOTE_VERSION_CHANGED','BFF_REMOTE_VERSION_MISSING','write','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','flatMap','COMMON','\x20uploaded','attempted','add','warnings','lockKey','utf8','values','cleared','afterScriptId','appCode','push','map','runtime\x20cache\x20cleared','status','162716XnVWQU','script','failures','Force\x20push\x20ignoring\x20hash\x20protection','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','datasetId','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','\x20bff\x20detail\x20--id\x20','bff','every','selectedAppName','operationType','HOOK_DATASET_NOT_FOUND:',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','require','resolutions'];a44_0x40fa=function(){return _0x37bc10;};return a44_0x40fa();}async function waitForUploadedLockEntries(_0x215014,_0x4ac586,_0x4440c5){const _0x31fe0c=a44_0x28a35a;if(_0x4440c5[_0x31fe0c(0x178)]===0x0)return;for(let _0x150f5e=0x0;_0x150f5e<LOCK_SETTLE_RETRY_COUNT;_0x150f5e+=0x1){const _0x244b71=await readBffLockFile(_0x215014),_0x20aa69=_0x244b71?.[_0x31fe0c(0x18e)]?.[_0x4ac586]?.[_0x31fe0c(0x198)]??{},_0xa46ac5=_0x4440c5[_0x31fe0c(0x1b6)](_0x57fa0c=>!!_0x20aa69[_0x57fa0c]?.['remoteId']);if(_0xa46ac5)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x31fe0c(0x1b1)+_0x4440c5['join'](',\x20')+'.');}
@@ -1 +1 @@
1
- const a45_0x48d32e=a45_0x1493;(function(_0x5b8d36,_0x12e5f8){const _0x366cc5=a45_0x1493,_0x1cf2eb=_0x5b8d36();while(!![]){try{const _0x55ec28=-parseInt(_0x366cc5(0x8d))/0x1+-parseInt(_0x366cc5(0x98))/0x2+-parseInt(_0x366cc5(0x99))/0x3*(-parseInt(_0x366cc5(0x9b))/0x4)+parseInt(_0x366cc5(0x8e))/0x5+parseInt(_0x366cc5(0xac))/0x6+-parseInt(_0x366cc5(0xa9))/0x7+parseInt(_0x366cc5(0xad))/0x8*(parseInt(_0x366cc5(0x90))/0x9);if(_0x55ec28===_0x12e5f8)break;else _0x1cf2eb['push'](_0x1cf2eb['shift']());}catch(_0x43be36){_0x1cf2eb['push'](_0x1cf2eb['shift']());}}}(a45_0x27b7,0xee04e));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a45_0x27b7(){const _0x1a87e7=['3441265ZcXaal','apiDir','72wtYBlq','all','functions','lockFilePath','bff','read','has','length','2817392QwKGWc','993405kSsmMF','profileName','20icUKov','defaultApp','map','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','remote','alias','hash','appCode','\x20unchanged','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','lockKey','scriptsRoot','mergedCli','bool','2286291UyYWHG','\x20added,\x20','datasetCode','7430670piEBcY','826928AwUGij','status','currentApp','boolean','\x20modified,\x20','push','1699066DFFBTx'];a45_0x27b7=function(){return _0x1a87e7;};return a45_0x27b7();}import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a45_0x1493(_0x8c12f7,_0x3ce090){_0x8c12f7=_0x8c12f7-0x8b;const _0x27b708=a45_0x27b7();let _0x1493c8=_0x27b708[_0x8c12f7];return _0x1493c8;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a45_0x48d32e(0x94),'command':a45_0x48d32e(0xae),'description':a45_0x48d32e(0xa4),'risk':a45_0x48d32e(0x95),'flags':[{'name':a45_0x48d32e(0x9f),'type':a45_0x48d32e(0xb0),'description':a45_0x48d32e(0x9e)}],async 'execute'(_0x15026e){const _0x2be3d2=a45_0x48d32e,_0x576917=loadBffProjectConfig(_0x15026e['appCode']),_0x557c5b=await readBffLockFile(_0x576917[_0x2be3d2(0x93)]),{appLock:_0x510326}=ensureLockScope(_0x557c5b??createEmptyBffLock(),_0x15026e[_0x2be3d2(0xa2)],_0x576917[_0x2be3d2(0xa6)],_0x2be3d2(0xae)),_0x540795=await scanLocalBffFunctions(_0x576917),_0x12ef53=[],_0x8d266b=[],_0x2b9d95=[];for(const _0x2a542d of _0x540795){const _0x3c5a8c=await computeFileHash(_0x2a542d['filePath']),_0x1fe194=_0x510326[_0x2be3d2(0x92)][_0x2a542d[_0x2be3d2(0xa5)]];if(!_0x1fe194)_0x12ef53['push'](_0x2a542d['lockKey']);else _0x1fe194[_0x2be3d2(0xa1)]!==_0x3c5a8c?_0x8d266b[_0x2be3d2(0x8c)](_0x2a542d[_0x2be3d2(0xa5)]):_0x2b9d95[_0x2be3d2(0x8c)](_0x2a542d[_0x2be3d2(0xa5)]);}const _0x3fc1cb=[];if(_0x15026e[_0x2be3d2(0xa8)]('remote')){const _0x55d62a=resolveApiModelSource(_0x15026e[_0x2be3d2(0x8f)],_0x15026e[_0x2be3d2(0xa2)],_0x15026e['selectedAppName']||_0x15026e[_0x2be3d2(0xa7)]?.[_0x2be3d2(0xaf)]||_0x15026e['mergedCli']?.[_0x2be3d2(0x9c)]),_0x39b6bf=loadAliasMap(_0x15026e['apiDir'],undefined,_0x55d62a['filePath'],_0x55d62a[_0x2be3d2(0x9a)]),_0xf2fa4=new Map(_0x39b6bf[_0x2be3d2(0x9d)](_0x1a7d55=>[_0x1a7d55[_0x2be3d2(0xab)],_0x1a7d55[_0x2be3d2(0xa0)]])),[_0x1809f9,_0x386fb8]=await Promise[_0x2be3d2(0x91)]([listBffScripts(_0x15026e[_0x2be3d2(0xa2)]),getBffScriptStatistics(_0x15026e[_0x2be3d2(0xa2)])]),_0x32b99f=createHookLocationMap(_0x386fb8),_0x6147e8=new Set(_0x540795['map'](_0xd61c63=>_0xd61c63[_0x2be3d2(0xa5)]));for(const _0xbf4940 of _0x1809f9){const _0x28dd8b=resolveRemoteScriptTarget(_0x576917,_0xbf4940,_0x32b99f,_0x510326[_0x2be3d2(0x92)],_0xf2fa4);_0x28dd8b&&!_0x6147e8[_0x2be3d2(0x96)](_0x28dd8b[_0x2be3d2(0xa5)])&&_0x3fc1cb[_0x2be3d2(0x8c)](_0x28dd8b[_0x2be3d2(0xa5)]);}}const _0x16c844=_0x12ef53[_0x2be3d2(0x97)]===0x0&&_0x8d266b[_0x2be3d2(0x97)]===0x0&&_0x3fc1cb['length']===0x0;return{'ok':!![],'data':{'added':_0x12ef53,'modified':_0x8d266b,'unchanged':_0x2b9d95,'remoteOnly':_0x3fc1cb},'message':_0x16c844?'All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.':_0x12ef53['length']+_0x2be3d2(0xaa)+_0x8d266b['length']+_0x2be3d2(0x8b)+_0x2b9d95[_0x2be3d2(0x97)]+_0x2be3d2(0xa3)+(_0x3fc1cb[_0x2be3d2(0x97)]>0x0?',\x20'+_0x3fc1cb[_0x2be3d2(0x97)]+'\x20remote-only':'')};}};
1
+ const a45_0x540489=a45_0x3dd1;(function(_0x1a0242,_0x349d58){const _0x257449=a45_0x3dd1,_0x1a8eb1=_0x1a0242();while(!![]){try{const _0x1a552b=parseInt(_0x257449(0x1c9))/0x1*(-parseInt(_0x257449(0x1be))/0x2)+-parseInt(_0x257449(0x1ce))/0x3*(parseInt(_0x257449(0x1b6))/0x4)+-parseInt(_0x257449(0x1d0))/0x5*(-parseInt(_0x257449(0x1b4))/0x6)+parseInt(_0x257449(0x1cb))/0x7*(-parseInt(_0x257449(0x1c6))/0x8)+-parseInt(_0x257449(0x1ca))/0x9+-parseInt(_0x257449(0x1d5))/0xa*(-parseInt(_0x257449(0x1c8))/0xb)+parseInt(_0x257449(0x1bf))/0xc*(parseInt(_0x257449(0x1b1))/0xd);if(_0x1a552b===_0x349d58)break;else _0x1a8eb1['push'](_0x1a8eb1['shift']());}catch(_0x251ca3){_0x1a8eb1['push'](_0x1a8eb1['shift']());}}}(a45_0x21e1,0xd20eb));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a45_0x21e1(){const _0x5bfeec=['1768790lVFgFc','\x20remote-only','bool','filePath','selectedAppName','3900WkzQQO','length','lockKey','lockFilePath','remote','push','all','11167bqayYa','read','status','6vzwksL','alias','442084fYEoAJ','scriptsRoot','functions','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','appCode','\x20unchanged','\x20added,\x20','has','7954OtEiyD','32964iFvXWg','map','profileName','bff','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','apiDir','9992oJccVE','\x20modified,\x20','7271CdZToG','31vzvUGs','2032839mfdItl','8015BnwHxF','boolean','mergedCli','9NzJWHA','currentApp'];a45_0x21e1=function(){return _0x5bfeec;};return a45_0x21e1();}import{loadAliasMap}from'../../core/alias-resolver.js';function a45_0x3dd1(_0x281689,_0x2734aa){_0x281689=_0x281689-0x1ab;const _0x21e11e=a45_0x21e1();let _0x3dd1c3=_0x21e11e[_0x281689];return _0x3dd1c3;}import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a45_0x540489(0x1c2),'command':a45_0x540489(0x1b3),'description':a45_0x540489(0x1b9),'risk':a45_0x540489(0x1b2),'flags':[{'name':a45_0x540489(0x1ae),'type':a45_0x540489(0x1cc),'description':a45_0x540489(0x1c3)}],async 'execute'(_0x2604aa){const _0x456f9b=a45_0x540489,_0x23208f=loadBffProjectConfig(_0x2604aa[_0x456f9b(0x1ba)]),_0x2fe2b0=await readBffLockFile(_0x23208f[_0x456f9b(0x1ad)]),{appLock:_0x12a295}=ensureLockScope(_0x2fe2b0??createEmptyBffLock(),_0x2604aa['appCode'],_0x23208f[_0x456f9b(0x1b7)],'status'),_0x16ba98=await scanLocalBffFunctions(_0x23208f),_0x36a272=[],_0x216005=[],_0xf53483=[];for(const _0xcb522a of _0x16ba98){const _0x869852=await computeFileHash(_0xcb522a['filePath']),_0x695b09=_0x12a295[_0x456f9b(0x1b8)][_0xcb522a[_0x456f9b(0x1ac)]];if(!_0x695b09)_0x36a272['push'](_0xcb522a[_0x456f9b(0x1ac)]);else _0x695b09['hash']!==_0x869852?_0x216005[_0x456f9b(0x1af)](_0xcb522a[_0x456f9b(0x1ac)]):_0xf53483[_0x456f9b(0x1af)](_0xcb522a[_0x456f9b(0x1ac)]);}const _0x3ced9f=[];if(_0x2604aa[_0x456f9b(0x1d2)](_0x456f9b(0x1ae))){const _0x5a2866=resolveApiModelSource(_0x2604aa[_0x456f9b(0x1c5)],_0x2604aa['appCode'],_0x2604aa[_0x456f9b(0x1d4)]||_0x2604aa[_0x456f9b(0x1cd)]?.[_0x456f9b(0x1cf)]||_0x2604aa['mergedCli']?.['defaultApp']),_0x398662=loadAliasMap(_0x2604aa[_0x456f9b(0x1c5)],undefined,_0x5a2866[_0x456f9b(0x1d3)],_0x5a2866[_0x456f9b(0x1c1)]),_0x4e09ec=new Map(_0x398662[_0x456f9b(0x1c0)](_0x24aa28=>[_0x24aa28['datasetCode'],_0x24aa28[_0x456f9b(0x1b5)]])),[_0x7c07a0,_0x59c050]=await Promise[_0x456f9b(0x1b0)]([listBffScripts(_0x2604aa[_0x456f9b(0x1ba)]),getBffScriptStatistics(_0x2604aa[_0x456f9b(0x1ba)])]),_0x2b2770=createHookLocationMap(_0x59c050),_0x34fb08=new Set(_0x16ba98[_0x456f9b(0x1c0)](_0x1bc609=>_0x1bc609[_0x456f9b(0x1ac)]));for(const _0x45013f of _0x7c07a0){const _0xa4214=resolveRemoteScriptTarget(_0x23208f,_0x45013f,_0x2b2770,_0x12a295[_0x456f9b(0x1b8)],_0x4e09ec);_0xa4214&&!_0x34fb08[_0x456f9b(0x1bd)](_0xa4214['lockKey'])&&_0x3ced9f[_0x456f9b(0x1af)](_0xa4214[_0x456f9b(0x1ac)]);}}const _0x43a3f0=_0x36a272[_0x456f9b(0x1ab)]===0x0&&_0x216005[_0x456f9b(0x1ab)]===0x0&&_0x3ced9f[_0x456f9b(0x1ab)]===0x0;return{'ok':!![],'data':{'added':_0x36a272,'modified':_0x216005,'unchanged':_0xf53483,'remoteOnly':_0x3ced9f},'message':_0x43a3f0?_0x456f9b(0x1c4):_0x36a272[_0x456f9b(0x1ab)]+_0x456f9b(0x1bc)+_0x216005['length']+_0x456f9b(0x1c7)+_0xf53483['length']+_0x456f9b(0x1bb)+(_0x3ced9f['length']>0x0?',\x20'+_0x3ced9f[_0x456f9b(0x1ab)]+_0x456f9b(0x1d1):'')};}};
@@ -1 +1 @@
1
- function a46_0x3b6d(_0x406fd6,_0x33cc1a){_0x406fd6=_0x406fd6-0xa4;const _0x2e4c64=a46_0x2e4c();let _0x3b6dce=_0x2e4c64[_0x406fd6];return _0x3b6dce;}const a46_0x1f2c38=a46_0x3b6d;(function(_0x5f3b63,_0xd3e9fa){const _0x2b866c=a46_0x3b6d,_0x54dcb6=_0x5f3b63();while(!![]){try{const _0x434575=-parseInt(_0x2b866c(0xa8))/0x1+parseInt(_0x2b866c(0xa6))/0x2*(-parseInt(_0x2b866c(0xae))/0x3)+parseInt(_0x2b866c(0xc6))/0x4*(-parseInt(_0x2b866c(0xc0))/0x5)+-parseInt(_0x2b866c(0xa4))/0x6+parseInt(_0x2b866c(0xa7))/0x7*(-parseInt(_0x2b866c(0xb6))/0x8)+parseInt(_0x2b866c(0xaf))/0x9+-parseInt(_0x2b866c(0xb1))/0xa*(-parseInt(_0x2b866c(0xc3))/0xb);if(_0x434575===_0xd3e9fa)break;else _0x54dcb6['push'](_0x54dcb6['shift']());}catch(_0x38645b){_0x54dcb6['push'](_0x54dcb6['shift']());}}}(a46_0x2e4c,0xc21db));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';function a46_0x2e4c(){const _0x264024=['106600AvlsHR','setLogPath','cwd',']:\x20','nonInteractive','366776unCGht','CLI\x20Built-in\x20Skill\x20','\x20at\x20','\x20via\x20skills@latest','\x20is\x20already\x20current','skillVersion','log','error','info','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','4315855nUwjpS','changed','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','4873pulWXz','Built-in\x20Skill\x20install\x20failed\x20[','install','4TeTuzl','8301420cjgnjQ','\x20installed','2243082lBhhEW','77EEfWTY','423935LhflSI','pipe','read','unknown','installedPath','cli-skill-install','3WfOldd','3323277CTUhZj','code'];a46_0x2e4c=function(){return _0x264024;};return a46_0x2e4c();}export const cliSkillDefinitions=[{'service':'cli-skill','command':a46_0x1f2c38(0xc5),'description':a46_0x1f2c38(0xc2),'risk':a46_0x1f2c38(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x43ffb9){const _0x3472b5=a46_0x1f2c38;logger[_0x3472b5(0xb2)](process[_0x3472b5(0xb3)]()),logger[_0x3472b5(0xbe)](_0x3472b5(0xad),_0x3472b5(0xbf));const _0x3e7cb9=installBuiltinSkill({'stdio':_0x43ffb9[_0x3472b5(0xb5)]?_0x3472b5(0xa9):'inherit'});if(!_0x3e7cb9['ok'])throw CliErrors['apiError'](_0x3472b5(0xc4)+_0x3e7cb9[_0x3472b5(0xb0)]+_0x3472b5(0xb4)+(_0x3e7cb9[_0x3472b5(0xbd)]||_0x3472b5(0xab)),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x3e7cb9['repairCommand']);return console[_0x3472b5(0xbc)](_0x3e7cb9[_0x3472b5(0xc1)]?_0x3472b5(0xb7)+_0x3e7cb9[_0x3472b5(0xbb)]+_0x3472b5(0xa5)+(_0x3e7cb9[_0x3472b5(0xac)]?_0x3472b5(0xb8)+_0x3e7cb9[_0x3472b5(0xac)]:_0x3472b5(0xb9)):_0x3472b5(0xb7)+_0x3e7cb9[_0x3472b5(0xbb)]+_0x3472b5(0xba)+(_0x3e7cb9[_0x3472b5(0xac)]?_0x3472b5(0xb8)+_0x3e7cb9['installedPath']:'')),{'ok':!![]};}}];
1
+ const a46_0x280295=a46_0x382d;(function(_0x200280,_0x9a4657){const _0x38306d=a46_0x382d,_0x95860=_0x200280();while(!![]){try{const _0x492834=parseInt(_0x38306d(0x15b))/0x1+parseInt(_0x38306d(0x168))/0x2+-parseInt(_0x38306d(0x167))/0x3*(parseInt(_0x38306d(0x166))/0x4)+-parseInt(_0x38306d(0x160))/0x5+-parseInt(_0x38306d(0x15c))/0x6*(parseInt(_0x38306d(0x171))/0x7)+parseInt(_0x38306d(0x16a))/0x8*(parseInt(_0x38306d(0x170))/0x9)+parseInt(_0x38306d(0x174))/0xa;if(_0x492834===_0x9a4657)break;else _0x95860['push'](_0x95860['shift']());}catch(_0x1f3f2e){_0x95860['push'](_0x95860['shift']());}}}(a46_0x55da,0x6f498));import{CliErrors}from'../../errors.js';function a46_0x382d(_0x34ceac,_0x55aed4){_0x34ceac=_0x34ceac-0x15b;const _0x55da4e=a46_0x55da();let _0x382dd9=_0x55da4e[_0x34ceac];return _0x382dd9;}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a46_0x280295(0x16e),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a46_0x280295(0x16c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3008ce){const _0x5f0f32=a46_0x280295;logger['setLogPath'](process['cwd']()),logger[_0x5f0f32(0x172)](_0x5f0f32(0x15e),'Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.');const _0x173093=installBuiltinSkill({'stdio':_0x3008ce[_0x5f0f32(0x165)]?'pipe':'inherit'});if(!_0x173093['ok'])throw CliErrors[_0x5f0f32(0x162)](_0x5f0f32(0x16d)+_0x173093[_0x5f0f32(0x161)]+_0x5f0f32(0x164)+(_0x173093[_0x5f0f32(0x163)]||_0x5f0f32(0x169)),_0x5f0f32(0x15d)+_0x173093['repairCommand']);return console['log'](_0x173093[_0x5f0f32(0x16b)]?'CLI\x20Built-in\x20Skill\x20'+_0x173093['skillVersion']+'\x20installed'+(_0x173093[_0x5f0f32(0x16f)]?_0x5f0f32(0x15f)+_0x173093[_0x5f0f32(0x16f)]:'\x20via\x20skills@latest'):'CLI\x20Built-in\x20Skill\x20'+_0x173093['skillVersion']+_0x5f0f32(0x173)+(_0x173093[_0x5f0f32(0x16f)]?'\x20at\x20'+_0x173093[_0x5f0f32(0x16f)]:'')),{'ok':!![]};}}];function a46_0x55da(){const _0x337f26=['info','\x20is\x20already\x20current','11775140SMjLjm','223219riCViH','3170388mfQYtU','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','cli-skill-install','\x20at\x20','3284575Ypjnmt','code','apiError','error',']:\x20','nonInteractive','1212FayBsE','6417IquzMc','530478WKnxaD','unknown','12560indRrt','changed','read','Built-in\x20Skill\x20install\x20failed\x20[','install','installedPath','3573YsQKoK','7FHpmbS'];a46_0x55da=function(){return _0x337f26;};return a46_0x55da();}
@@ -1 +1 @@
1
- const a47_0x4b9ea=a47_0x15c5;(function(_0x3a4b21,_0x12e70c){const _0x4859e6=a47_0x15c5,_0x3253fe=_0x3a4b21();while(!![]){try{const _0x3a5108=-parseInt(_0x4859e6(0x9a))/0x1*(parseInt(_0x4859e6(0xc9))/0x2)+-parseInt(_0x4859e6(0x8c))/0x3*(parseInt(_0x4859e6(0xc0))/0x4)+parseInt(_0x4859e6(0x9f))/0x5+parseInt(_0x4859e6(0xc3))/0x6+parseInt(_0x4859e6(0xaa))/0x7*(-parseInt(_0x4859e6(0xd5))/0x8)+parseInt(_0x4859e6(0xbe))/0x9*(-parseInt(_0x4859e6(0x8e))/0xa)+parseInt(_0x4859e6(0xbb))/0xb;if(_0x3a5108===_0x12e70c)break;else _0x3253fe['push'](_0x3253fe['shift']());}catch(_0x485d32){_0x3253fe['push'](_0x3253fe['shift']());}}}(a47_0x912e,0x85a3e));import a47_0x25d7f6 from'chalk';import a47_0x4dcf0f from'ora';import a47_0xb8e08b from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x32c05b=a47_0x15c5;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32c05b(0xae)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3ee937=a47_0x15c5,_0xd73d31=process[_0x3ee937(0x9e)][_0x3ee937(0xaf)]();if(_0xd73d31['includes']('bun'))return _0x3ee937(0x94);return _0x3ee937(0xb3);}function a47_0x15c5(_0xb1c3ff,_0x5548e3){_0xb1c3ff=_0xb1c3ff-0x86;const _0x912ebc=a47_0x912e();let _0x15c514=_0x912ebc[_0xb1c3ff];return _0x15c514;}const updateFlags=[{'name':a47_0x4b9ea(0xca),'type':a47_0x4b9ea(0x86),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a47_0x4b9ea(0xa9)}];function getRequestedVersion(_0x1e1635){const _0x4776fa=a47_0x4b9ea;return _0x1e1635[_0x4776fa(0xc8)](_0x4776fa(0x90))[_0x4776fa(0xd3)]();}async function validateUpdateFlags(_0x5e3866){const _0x360ac5=a47_0x4b9ea,_0x1ea945=_0x5e3866['bool'](_0x360ac5(0xca)),_0x339a5f=getRequestedVersion(_0x5e3866);if(_0x1ea945&&_0x339a5f)throw CliErrors[_0x360ac5(0xac)](_0x360ac5(0x8f),_0x360ac5(0xba));if(_0x339a5f&&!a47_0xb8e08b[_0x360ac5(0xd4)](_0x339a5f))throw CliErrors[_0x360ac5(0xac)](_0x360ac5(0x97)+_0x339a5f,_0x360ac5(0xcd));}async function fetchNpmDistTags(){const _0x5e9abf=a47_0x4b9ea;try{const _0x377400=await fetch(_0x5e9abf(0xbf)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x5e9abf(0x8d),{'signal':AbortSignal[_0x5e9abf(0xc5)](0x2710)});if(!_0x377400['ok'])return null;const _0x4fb283=await _0x377400[_0x5e9abf(0xcb)]();if(!_0x4fb283||typeof _0x4fb283!==_0x5e9abf(0xb8))return null;return Object[_0x5e9abf(0xbc)](Object['entries'](_0x4fb283)['filter'](([,_0xdfc451])=>typeof _0xdfc451==='string'&&_0xdfc451['trim']()[_0x5e9abf(0xb6)]>0x0)[_0x5e9abf(0x9b)](([_0x1af231,_0x35e4ad])=>[_0x1af231,String(_0x35e4ad)[_0x5e9abf(0xd3)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4b9949){const _0x2879fd=await fetchNpmDistTags();return _0x2879fd?.[_0x4b9949]??null;}async function fetchLatestVersion(){const _0x57b244=a47_0x4b9ea;return fetchNpmDistTagVersion(_0x57b244(0xb1));}async function resolveTargetVersion(_0x50c0d1){const _0x2803b2=a47_0x4b9ea,_0x530181=getRequestedVersion(_0x50c0d1);if(_0x530181)return{'version':_0x530181,'source':_0x2803b2(0x90)};if(_0x50c0d1['bool'](_0x2803b2(0xca))){const _0x2ce2f1=await fetchNpmDistTagVersion(_0x2803b2(0xca));if(!_0x2ce2f1)return null;return{'version':_0x2ce2f1,'source':_0x2803b2(0xca)};}const _0x4b5c4f=await fetchLatestVersion();if(!_0x4b5c4f)return null;return{'version':_0x4b5c4f,'source':'latest'};}function shouldInstallTarget(_0xa517dd,_0x28375e){const _0x6618cb=a47_0x4b9ea;if(_0x28375e['source']===_0x6618cb(0x90)||_0x28375e[_0x6618cb(0xb0)]===_0x6618cb(0xca))return!a47_0xb8e08b['eq'](_0xa517dd,_0x28375e[_0x6618cb(0x90)]);return a47_0xb8e08b['lt'](_0xa517dd,_0x28375e['version']);}function getInstallPlanLabel(_0x1afdc1,_0x28d7e5){const _0x280e93=a47_0x4b9ea;switch(_0x28d7e5[_0x280e93(0xb0)]){case _0x280e93(0xca):return _0x280e93(0x98)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6['green'](_0x28d7e5['version']);case _0x280e93(0x90):return _0x280e93(0x88)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6[_0x280e93(0xb2)](_0x28d7e5[_0x280e93(0x90)]);case'latest':default:return _0x280e93(0x92)+a47_0x25d7f6[_0x280e93(0xc6)](_0x1afdc1)+_0x280e93(0xa3)+a47_0x25d7f6[_0x280e93(0xb2)](_0x28d7e5[_0x280e93(0x90)]);}}function repairCurrentBuiltinSkill(){const _0x8de235=a47_0x4b9ea;console[_0x8de235(0xd1)](a47_0x25d7f6[_0x8de235(0xb7)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0xc5631b=installBuiltinSkill();if(_0xc5631b['ok']){console[_0x8de235(0xd1)](a47_0x25d7f6[_0x8de235(0xb7)](_0x8de235(0xa4)+_0xc5631b[_0x8de235(0xb9)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors[_0x8de235(0xa6)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+_0xc5631b[_0x8de235(0x91)]+_0x8de235(0xa5)+(_0xc5631b[_0x8de235(0x93)]||_0x8de235(0x9c)),_0x8de235(0xd6)+_0xc5631b['repairCommand']+_0x8de235(0xa7)+CLI_BIN_NAME+_0x8de235(0x89));}function verifyUpdatedBuiltinSkill(_0x3e8233){const _0x7e30f4=a47_0x4b9ea,_0x40d9c9=inspectInstalledBuiltinSkillVersion(_0x3e8233);if(_0x40d9c9[_0x7e30f4(0xc2)]===_0x7e30f4(0xa2)){console[_0x7e30f4(0xd1)](a47_0x25d7f6[_0x7e30f4(0xb7)](_0x7e30f4(0xa4)+_0x3e8233+_0x7e30f4(0x96)));return;}const _0x1d3f7f=_0x40d9c9[_0x7e30f4(0xb9)]?_0x7e30f4(0xab)+_0x3e8233+_0x7e30f4(0xb5)+_0x40d9c9[_0x7e30f4(0xb9)]:_0x7e30f4(0xab)+_0x3e8233+',\x20state\x20'+_0x40d9c9[_0x7e30f4(0xc2)];throw CliErrors[_0x7e30f4(0xa6)]('CLI\x20updated\x20to\x20v'+_0x3e8233+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x1d3f7f,'Run:\x20'+_0x40d9c9[_0x7e30f4(0xd2)]+_0x7e30f4(0xa7)+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x34fe6a){const _0xa916ca=a47_0x4b9ea;await validateUpdateFlags(_0x34fe6a);const _0x44c58d=getCurrentVersion();console[_0xa916ca(0xd1)]('Current\x20version:\x20'+_0x44c58d);const _0x37eba4=a47_0x4dcf0f('Checking\x20for\x20updates...')[_0xa916ca(0xb4)](),_0xdf6096=await resolveTargetVersion(_0x34fe6a);if(!_0xdf6096){const _0x6239dd=_0x34fe6a[_0xa916ca(0xad)](_0xa916ca(0xca))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x37eba4['fail'](_0x6239dd),console['log'](a47_0x25d7f6[_0xa916ca(0xb7)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0xa916ca(0xce))),{'ok':![],'message':_0x6239dd};}const _0x59097b=a47_0xb8e08b['valid'](VERSION),_0x52482c=a47_0xb8e08b[_0xa916ca(0xd4)](_0xdf6096[_0xa916ca(0x90)]);if(!_0x59097b||!_0x52482c)return _0x37eba4['fail'](_0xa916ca(0x95)),{'ok':![],'message':_0xa916ca(0x95)};if(!shouldInstallTarget(_0x59097b,_0xdf6096)){const _0x15d64e=_0xdf6096[_0xa916ca(0xb0)]===_0xa916ca(0x90)?_0xa916ca(0xcf)+_0xdf6096['version']+')':a47_0xb8e08b['gt'](_0x59097b,_0x52482c)?_0xa916ca(0xc4)+_0x44c58d+'\x20is\x20newer\x20than\x20npm\x20latest\x20v'+_0xdf6096[_0xa916ca(0x90)]:'Already\x20up\x20to\x20date\x20(v'+_0xdf6096[_0xa916ca(0x90)]+')';return _0x37eba4[_0xa916ca(0x8b)](_0x15d64e),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x37eba4[_0xa916ca(0xa0)](getInstallPlanLabel(_0x44c58d,_0xdf6096));const _0x258886=detectPackageManager(),_0x39d78c=_0x258886===_0xa916ca(0xb3)?resolveNpmBin('npm'):_0x258886,_0x3c904f=a47_0x4dcf0f('Updating\x20via\x20'+_0x258886+_0xa916ca(0xbd))[_0xa916ca(0xb4)]();try{await execa(_0x39d78c,[_0xa916ca(0x99),'-g',NPM_PACKAGE_NAME+'@'+_0xdf6096[_0xa916ca(0x90)]],{'stdio':_0xa916ca(0x8a)}),_0x3c904f[_0xa916ca(0x8b)]('Updated\x20to\x20v'+_0xdf6096[_0xa916ca(0x90)]),console['log'](a47_0x25d7f6[_0xa916ca(0xb7)](_0xa916ca(0xc1)));}catch(_0x190b1e){return _0x3c904f[_0xa916ca(0xa1)]('Update\x20failed'),console['error'](a47_0x25d7f6[_0xa916ca(0xa8)]('\x20\x20'+_0x190b1e[_0xa916ca(0xc7)])),console['log'](a47_0x25d7f6['gray']('\x20\x20Try\x20manually:\x20'+_0x258886+_0xa916ca(0xcc)+NPM_PACKAGE_NAME+'@'+_0xdf6096[_0xa916ca(0x90)])),{'ok':![],'message':_0x190b1e[_0xa916ca(0xc7)]};}return verifyUpdatedBuiltinSkill(_0xdf6096[_0xa916ca(0x90)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x4b9ea(0xd0),'command':a47_0x4b9ea(0x87),'description':a47_0x4b9ea(0x9d),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};function a47_0x912e(){const _0x4197df=['install','1PTAGNR','map','unknown','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','execPath','1639255HZNqfJ','info','fail','current','\x20→\x20','\x20\x20CLI\x20Built-in\x20Skill\x20',']:\x20','apiError',',\x20then\x20verify\x20with:\x20','red','Install\x20a\x20specific\x20CLI\x20version','427532GYfBsV','expected\x20','validation','bool','slice','toLowerCase','source','latest','green','npm','start',',\x20found\x20','length','gray','object','skillVersion','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','22466862gbkEpZ','fromEntries','...','5319oufrBh','https://registry.npmjs.org/-/package/','3282904peWutU','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','state','4202646AZVUwY','Current\x20version\x20v','timeout','yellow','message','str','1550498jQDPOf','beta','json','\x20install\x20-g\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','@latest','Already\x20on\x20requested\x20version\x20(v','update','log','repairCommand','trim','valid','120qqdXhx','Run:\x20','boolean','run','Requested\x20version:\x20','\x20doctor','pipe','succeed','3JqxqyU','/dist-tags','190kqGcWz','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','version','code','Update\x20available:\x20','error','bun','Version\x20comparison\x20failed','\x20is\x20up\x20to\x20date.','Invalid\x20version:\x20','Beta\x20version:\x20'];a47_0x912e=function(){return _0x4197df;};return a47_0x912e();}
1
+ const a47_0x5653bc=a47_0x3d9a;(function(_0x1263bb,_0xc2b3d8){const _0x2b8645=a47_0x3d9a,_0x434b73=_0x1263bb();while(!![]){try{const _0x439c1d=parseInt(_0x2b8645(0xf1))/0x1*(parseInt(_0x2b8645(0xce))/0x2)+-parseInt(_0x2b8645(0xd9))/0x3+-parseInt(_0x2b8645(0xfd))/0x4*(-parseInt(_0x2b8645(0xe9))/0x5)+-parseInt(_0x2b8645(0xd7))/0x6+parseInt(_0x2b8645(0xb5))/0x7+-parseInt(_0x2b8645(0xbf))/0x8+-parseInt(_0x2b8645(0x10b))/0x9*(-parseInt(_0x2b8645(0x100))/0xa);if(_0x439c1d===_0xc2b3d8)break;else _0x434b73['push'](_0x434b73['shift']());}catch(_0x179526){_0x434b73['push'](_0x434b73['shift']());}}}(a47_0x64d0,0x3c0b1));import a47_0x1518cc from'chalk';import a47_0x13df93 from'ora';import a47_0x1cc05e from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';function a47_0x3d9a(_0x39ed57,_0x55a5ef){_0x39ed57=_0x39ed57-0xb4;const _0x64d04b=a47_0x64d0();let _0x3d9af9=_0x64d04b[_0x39ed57];return _0x3d9af9;}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0xec42a6=a47_0x3d9a;return GIT_COMMIT!==_0xec42a6(0xc6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xec42a6(0xb4)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x55409a=a47_0x3d9a,_0x55cc76=process[_0x55409a(0xda)][_0x55409a(0x10f)]();if(_0x55cc76[_0x55409a(0xf4)](_0x55409a(0xcd)))return _0x55409a(0xcd);return'npm';}const updateFlags=[{'name':'beta','type':a47_0x5653bc(0xff),'description':a47_0x5653bc(0x101),'default':![]},{'name':a47_0x5653bc(0x102),'type':'string','description':a47_0x5653bc(0xf0)}];function getRequestedVersion(_0x485055){const _0x442a66=a47_0x5653bc;return _0x485055['str']('version')[_0x442a66(0xdc)]();}async function validateUpdateFlags(_0x5e7a5d){const _0x40380f=a47_0x5653bc,_0x17037a=_0x5e7a5d[_0x40380f(0xdd)](_0x40380f(0xd5)),_0x260c46=getRequestedVersion(_0x5e7a5d);if(_0x17037a&&_0x260c46)throw CliErrors[_0x40380f(0xe0)](_0x40380f(0x10a),_0x40380f(0xf8));if(_0x260c46&&!a47_0x1cc05e[_0x40380f(0xc1)](_0x260c46))throw CliErrors[_0x40380f(0xe0)](_0x40380f(0xee)+_0x260c46,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x568ab1=a47_0x5653bc;try{const _0x566358=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x568ab1(0xfb)](0x2710)});if(!_0x566358['ok'])return null;const _0x360ad3=await _0x566358[_0x568ab1(0xc3)]();if(!_0x360ad3||typeof _0x360ad3!==_0x568ab1(0xdf))return null;return Object[_0x568ab1(0xfa)](Object[_0x568ab1(0xe6)](_0x360ad3)[_0x568ab1(0xbd)](([,_0x55283e])=>typeof _0x55283e===_0x568ab1(0xe2)&&_0x55283e['trim']()[_0x568ab1(0x107)]>0x0)[_0x568ab1(0xd8)](([_0x422475,_0x5740d7])=>[_0x422475,String(_0x5740d7)[_0x568ab1(0xdc)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x103875){const _0x53fcce=await fetchNpmDistTags();return _0x53fcce?.[_0x103875]??null;}async function fetchLatestVersion(){const _0x429c46=a47_0x5653bc;return fetchNpmDistTagVersion(_0x429c46(0xb6));}async function resolveTargetVersion(_0x45d80f){const _0xa9b4c6=a47_0x5653bc,_0x1a8fbb=getRequestedVersion(_0x45d80f);if(_0x1a8fbb)return{'version':_0x1a8fbb,'source':_0xa9b4c6(0x102)};if(_0x45d80f['bool'](_0xa9b4c6(0xd5))){const _0x543a19=await fetchNpmDistTagVersion(_0xa9b4c6(0xd5));if(!_0x543a19)return null;return{'version':_0x543a19,'source':_0xa9b4c6(0xd5)};}const _0x48700c=await fetchLatestVersion();if(!_0x48700c)return null;return{'version':_0x48700c,'source':_0xa9b4c6(0xb6)};}function shouldInstallTarget(_0x4a0ada,_0x131bce){const _0x455342=a47_0x5653bc;if(_0x131bce[_0x455342(0xb9)]===_0x455342(0x102)||_0x131bce[_0x455342(0xb9)]===_0x455342(0xd5))return!a47_0x1cc05e['eq'](_0x4a0ada,_0x131bce[_0x455342(0x102)]);return a47_0x1cc05e['lt'](_0x4a0ada,_0x131bce[_0x455342(0x102)]);}function a47_0x64d0(){const _0x5f0c0a=['beta','Current\x20version\x20v','1183956gGrysx','map','877536MwKsqj','execPath','run','trim','bool','...','object','validation',',\x20found\x20','string','apiError','state','current','entries','CLI\x20updated\x20to\x20v','succeed','15JfyfGP','\x20is\x20newer\x20than\x20npm\x20latest\x20v',',\x20then\x20verify\x20with:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','message','Invalid\x20version:\x20','Already\x20up\x20to\x20date\x20(v','Install\x20a\x20specific\x20CLI\x20version','1004mGOJJq','update','skillVersion','includes',',\x20state\x20','Requested\x20version:\x20','error','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Checking\x20CLI\x20Built-in\x20Skill...','fromEntries','timeout','yellow','122124LBzrvU','Already\x20on\x20requested\x20version\x20(v','boolean','440dLaSvQ','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','version','expected\x20',']:\x20','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','fail','length','read','pipe','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','70344SAzqcP','npm','\x20doctor','@latest','toLowerCase','slice','1308685eIbLdn','latest','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Run:\x20','source','\x20install\x20-g\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','start','filter','Update\x20failed','2619464djVyMP','log','valid','info','json','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Beta\x20version:\x20','unknown','gray','\x20→\x20','install',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','green','Updating\x20via\x20','bun','878VqYHln','Checking\x20for\x20updates...','repairCommand','Version\x20comparison\x20failed','Current\x20version:\x20','\x20is\x20up\x20to\x20date.','\x20\x20Try\x20manually:\x20'];a47_0x64d0=function(){return _0x5f0c0a;};return a47_0x64d0();}function getInstallPlanLabel(_0x2896ef,_0x292c7b){const _0x1ac340=a47_0x5653bc;switch(_0x292c7b['source']){case _0x1ac340(0xd5):return _0x1ac340(0xc5)+a47_0x1518cc[_0x1ac340(0xfc)](_0x2896ef)+_0x1ac340(0xc8)+a47_0x1518cc[_0x1ac340(0xcb)](_0x292c7b[_0x1ac340(0x102)]);case'version':return _0x1ac340(0xf6)+a47_0x1518cc[_0x1ac340(0xfc)](_0x2896ef)+_0x1ac340(0xc8)+a47_0x1518cc[_0x1ac340(0xcb)](_0x292c7b[_0x1ac340(0x102)]);case _0x1ac340(0xb6):default:return'Update\x20available:\x20'+a47_0x1518cc[_0x1ac340(0xfc)](_0x2896ef)+_0x1ac340(0xc8)+a47_0x1518cc['green'](_0x292c7b[_0x1ac340(0x102)]);}}function repairCurrentBuiltinSkill(){const _0x45770d=a47_0x5653bc;console[_0x45770d(0xc0)](a47_0x1518cc[_0x45770d(0xc7)](_0x45770d(0xf9)));const _0x50a8ff=installBuiltinSkill();if(_0x50a8ff['ok']){console['log'](a47_0x1518cc[_0x45770d(0xc7)](_0x45770d(0xec)+_0x50a8ff[_0x45770d(0xf3)]+_0x45770d(0xd3)));return;}throw CliErrors[_0x45770d(0xe3)](_0x45770d(0x105)+_0x50a8ff['code']+_0x45770d(0x104)+(_0x50a8ff[_0x45770d(0xf7)]||_0x45770d(0xc6)),_0x45770d(0xb8)+_0x50a8ff[_0x45770d(0xd0)]+_0x45770d(0xeb)+CLI_BIN_NAME+_0x45770d(0x10d));}function verifyUpdatedBuiltinSkill(_0x2fc7b8){const _0x106ff4=a47_0x5653bc,_0x71bcf5=inspectInstalledBuiltinSkillVersion(_0x2fc7b8);if(_0x71bcf5[_0x106ff4(0xe4)]===_0x106ff4(0xe5)){console[_0x106ff4(0xc0)](a47_0x1518cc[_0x106ff4(0xc7)](_0x106ff4(0xec)+_0x2fc7b8+'\x20is\x20up\x20to\x20date.'));return;}const _0x293196=_0x71bcf5[_0x106ff4(0xf3)]?_0x106ff4(0x103)+_0x2fc7b8+_0x106ff4(0xe1)+_0x71bcf5['skillVersion']:'expected\x20'+_0x2fc7b8+_0x106ff4(0xf5)+_0x71bcf5[_0x106ff4(0xe4)];throw CliErrors[_0x106ff4(0xe3)](_0x106ff4(0xe7)+_0x2fc7b8+_0x106ff4(0xca)+_0x293196,_0x106ff4(0xb8)+_0x71bcf5[_0x106ff4(0xd0)]+_0x106ff4(0xeb)+CLI_BIN_NAME+_0x106ff4(0x10d));}async function execute(_0x13c4da){const _0x5d4cc5=a47_0x5653bc;await validateUpdateFlags(_0x13c4da);const _0x58cbbd=getCurrentVersion();console['log'](_0x5d4cc5(0xd2)+_0x58cbbd);const _0x2f5b35=a47_0x13df93(_0x5d4cc5(0xcf))[_0x5d4cc5(0xbc)](),_0x3c5d77=await resolveTargetVersion(_0x13c4da);if(!_0x3c5d77){const _0x3d7b4a=_0x13c4da[_0x5d4cc5(0xdd)](_0x5d4cc5(0xd5))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x5d4cc5(0xc4);return _0x2f5b35[_0x5d4cc5(0x106)](_0x3d7b4a),console['log'](a47_0x1518cc[_0x5d4cc5(0xc7)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x5d4cc5(0x10e))),{'ok':![],'message':_0x3d7b4a};}const _0xc8bd7b=a47_0x1cc05e[_0x5d4cc5(0xc1)](VERSION),_0xf558ae=a47_0x1cc05e[_0x5d4cc5(0xc1)](_0x3c5d77[_0x5d4cc5(0x102)]);if(!_0xc8bd7b||!_0xf558ae)return _0x2f5b35['fail'](_0x5d4cc5(0xd1)),{'ok':![],'message':_0x5d4cc5(0xd1)};if(!shouldInstallTarget(_0xc8bd7b,_0x3c5d77)){const _0x855f13=_0x3c5d77[_0x5d4cc5(0xb9)]===_0x5d4cc5(0x102)?_0x5d4cc5(0xfe)+_0x3c5d77[_0x5d4cc5(0x102)]+')':a47_0x1cc05e['gt'](_0xc8bd7b,_0xf558ae)?_0x5d4cc5(0xd6)+_0x58cbbd+_0x5d4cc5(0xea)+_0x3c5d77[_0x5d4cc5(0x102)]:_0x5d4cc5(0xef)+_0x3c5d77[_0x5d4cc5(0x102)]+')';return _0x2f5b35[_0x5d4cc5(0xe8)](_0x855f13),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x2f5b35[_0x5d4cc5(0xc2)](getInstallPlanLabel(_0x58cbbd,_0x3c5d77));const _0x44bebf=detectPackageManager(),_0x2d165e=_0x44bebf===_0x5d4cc5(0x10c)?resolveNpmBin(_0x5d4cc5(0x10c)):_0x44bebf,_0xe069a2=a47_0x13df93(_0x5d4cc5(0xcc)+_0x44bebf+_0x5d4cc5(0xde))[_0x5d4cc5(0xbc)]();try{await execa(_0x2d165e,[_0x5d4cc5(0xc9),'-g',NPM_PACKAGE_NAME+'@'+_0x3c5d77[_0x5d4cc5(0x102)]],{'stdio':_0x5d4cc5(0x109)}),_0xe069a2['succeed']('Updated\x20to\x20v'+_0x3c5d77[_0x5d4cc5(0x102)]),console[_0x5d4cc5(0xc0)](a47_0x1518cc[_0x5d4cc5(0xc7)](_0x5d4cc5(0xb7)));}catch(_0x11654b){return _0xe069a2[_0x5d4cc5(0x106)](_0x5d4cc5(0xbe)),console[_0x5d4cc5(0xf7)](a47_0x1518cc['red']('\x20\x20'+_0x11654b[_0x5d4cc5(0xed)])),console[_0x5d4cc5(0xc0)](a47_0x1518cc[_0x5d4cc5(0xc7)](_0x5d4cc5(0xd4)+_0x44bebf+_0x5d4cc5(0xba)+NPM_PACKAGE_NAME+'@'+_0x3c5d77[_0x5d4cc5(0x102)])),{'ok':![],'message':_0x11654b[_0x5d4cc5(0xed)]};}return verifyUpdatedBuiltinSkill(_0x3c5d77['version']),{'ok':!![]};}export const updateDefinition={'service':a47_0x5653bc(0xf2),'command':a47_0x5653bc(0xdb),'description':a47_0x5653bc(0xbb),'risk':a47_0x5653bc(0x108),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x5933e4,_0x40dbf8){const _0x14295d=a48_0x54f8,_0x193084=_0x5933e4();while(!![]){try{const _0x114d5a=parseInt(_0x14295d(0x157))/0x1*(-parseInt(_0x14295d(0x158))/0x2)+parseInt(_0x14295d(0x156))/0x3*(-parseInt(_0x14295d(0x15a))/0x4)+parseInt(_0x14295d(0x153))/0x5*(parseInt(_0x14295d(0x154))/0x6)+-parseInt(_0x14295d(0x15c))/0x7+parseInt(_0x14295d(0x155))/0x8*(-parseInt(_0x14295d(0x15b))/0x9)+parseInt(_0x14295d(0x152))/0xa+parseInt(_0x14295d(0x159))/0xb;if(_0x114d5a===_0x40dbf8)break;else _0x193084['push'](_0x193084['shift']());}catch(_0x210136){_0x193084['push'](_0x193084['shift']());}}}(a48_0x4422,0x775a8));function a48_0x4422(){const _0x335f1a=['2713686QgzdZk','555072IUReSA','3oEFqCD','2lmrvQj','366694yAFybv','22417714HfZnch','1701956SSXSvW','72wXdZnq','5316416mAwtuc','1053600SlbKUV','5CYhXim'];a48_0x4422=function(){return _0x335f1a;};return a48_0x4422();}import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x54f8(_0x2b5dbb,_0x6f38bd){_0x2b5dbb=_0x2b5dbb-0x152;const _0x4422c0=a48_0x4422();let _0x54f8ff=_0x4422c0[_0x2b5dbb];return _0x54f8ff;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ function a48_0x268b(_0x431863,_0x248abe){_0x431863=_0x431863-0xeb;const _0x4f462c=a48_0x4f46();let _0x268bf5=_0x4f462c[_0x431863];return _0x268bf5;}(function(_0x2b4008,_0x868d0d){const _0x217492=a48_0x268b,_0x4d20d4=_0x2b4008();while(!![]){try{const _0x3d4475=parseInt(_0x217492(0xf1))/0x1+parseInt(_0x217492(0xf0))/0x2+parseInt(_0x217492(0xec))/0x3*(-parseInt(_0x217492(0xf3))/0x4)+parseInt(_0x217492(0xf4))/0x5+-parseInt(_0x217492(0xed))/0x6*(parseInt(_0x217492(0xeb))/0x7)+-parseInt(_0x217492(0xef))/0x8*(-parseInt(_0x217492(0xf2))/0x9)+-parseInt(_0x217492(0xee))/0xa;if(_0x3d4475===_0x868d0d)break;else _0x4d20d4['push'](_0x4d20d4['shift']());}catch(_0x1e90f3){_0x4d20d4['push'](_0x4d20d4['shift']());}}}(a48_0x4f46,0x39ef5));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a48_0x4f46(){const _0x67713a=['198678hyPXJl','510GtUEWp','188690VKYVOP','1648sIMaoP','36698ZdcmBA','50891duvuZr','6705mjKSZJ','12esaMOk','2340915CPGcva','19439ezQqeo'];a48_0x4f46=function(){return _0x67713a;};return a48_0x4f46();}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a49_0x233183=a49_0x5817;(function(_0x5e0aab,_0x2af3ce){const _0x5eca1c=a49_0x5817,_0x1048ae=_0x5e0aab();while(!![]){try{const _0x3915ff=-parseInt(_0x5eca1c(0x163))/0x1*(parseInt(_0x5eca1c(0x168))/0x2)+parseInt(_0x5eca1c(0x167))/0x3*(-parseInt(_0x5eca1c(0x15d))/0x4)+-parseInt(_0x5eca1c(0x15a))/0x5*(parseInt(_0x5eca1c(0x154))/0x6)+parseInt(_0x5eca1c(0x162))/0x7*(parseInt(_0x5eca1c(0x155))/0x8)+parseInt(_0x5eca1c(0x166))/0x9+parseInt(_0x5eca1c(0x15c))/0xa*(-parseInt(_0x5eca1c(0x165))/0xb)+parseInt(_0x5eca1c(0x153))/0xc*(parseInt(_0x5eca1c(0x151))/0xd);if(_0x3915ff===_0x2af3ce)break;else _0x1048ae['push'](_0x1048ae['shift']());}catch(_0x48b43a){_0x1048ae['push'](_0x1048ae['shift']());}}}(a49_0x22ce,0xb297e));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a49_0x5817(_0x512433,_0x3956e4){_0x512433=_0x512433-0x14f;const _0x22cee6=a49_0x22ce();let _0x58179f=_0x22cee6[_0x512433];return _0x58179f;}function a49_0x22ce(){const _0x5a91bd=['operation','Omit\x20import\x20statements\x20from\x20generated\x20code','6447elvSor','2NHZmaM','skip-imports','161711llDFVB','5061654gTPJps','1304904QIKGOc','541592pxVVGy','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','string','appCode','316459KhfSFo','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','1284rMtsMN','948amsEry','6248ufGhbu','tableName','bool','str','code','27995OkzIZk','boolean','880QAJjTf','4qzrtzG','codegen','name'];a49_0x22ce=function(){return _0x5a91bd;};return a49_0x22ce();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x233183(0x15e),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a49_0x233183(0x14f),'description':a49_0x233183(0x152)},{'name':a49_0x233183(0x160),'type':a49_0x233183(0x14f),'required':!![],'description':a49_0x233183(0x169)},{'name':'skip-imports','type':a49_0x233183(0x15b),'description':a49_0x233183(0x161)}],async 'execute'(_0x2f5287){const _0x3bc79d=a49_0x233183,{dataset:_0x148fac,operation:_0x17ca96}=await getOperationDetail(_0x2f5287[_0x3bc79d(0x150)],_0x2f5287[_0x3bc79d(0x158)](_0x3bc79d(0x159)),_0x2f5287[_0x3bc79d(0x158)](_0x3bc79d(0x160))),_0x21bb13=generateSdkCode(_0x148fac,_0x17ca96,{'includeImports':!_0x2f5287[_0x3bc79d(0x157)](_0x3bc79d(0x164))});return{'ok':!![],'data':{'dataset':{'name':_0x148fac[_0x3bc79d(0x15f)],'code':_0x148fac[_0x3bc79d(0x159)],'tableName':_0x148fac[_0x3bc79d(0x156)]},'operation':_0x2f5287[_0x3bc79d(0x158)](_0x3bc79d(0x160)),'code':_0x21bb13}};}};
1
+ const a49_0x159100=a49_0x3c23;(function(_0x3583ff,_0x4387fe){const _0x4a470a=a49_0x3c23,_0x1825bb=_0x3583ff();while(!![]){try{const _0x515cba=parseInt(_0x4a470a(0xc4))/0x1*(parseInt(_0x4a470a(0xb9))/0x2)+parseInt(_0x4a470a(0xbf))/0x3*(-parseInt(_0x4a470a(0xc6))/0x4)+parseInt(_0x4a470a(0xc3))/0x5+parseInt(_0x4a470a(0xbb))/0x6*(-parseInt(_0x4a470a(0xc2))/0x7)+-parseInt(_0x4a470a(0xc8))/0x8+parseInt(_0x4a470a(0xcf))/0x9*(parseInt(_0x4a470a(0xc9))/0xa)+parseInt(_0x4a470a(0xba))/0xb;if(_0x515cba===_0x4387fe)break;else _0x1825bb['push'](_0x1825bb['shift']());}catch(_0x240585){_0x1825bb['push'](_0x1825bb['shift']());}}}(a49_0x3e8b,0xb021f));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x3c23(_0xcc3d09,_0x3b8530){_0xcc3d09=_0xcc3d09-0xb9;const _0x3e8bc6=a49_0x3e8b();let _0x3c2371=_0x3e8bc6[_0xcc3d09];return _0x3c2371;}function a49_0x3e8b(){const _0x1a1ac4=['198IehdZJ','skip-imports','tableName','392528HBuRKe','6157525vNoNJu','690JdTONa','operation','str','alias','19698ixlwfW','string','name','76818NxjZmH','2251400QnFUuW','6VmrODe','codegen','280kixbUg','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','2287744NqHjnl','246090hxjNrV','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','sdk','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','bool','code'];a49_0x3e8b=function(){return _0x1a1ac4;};return a49_0x3e8b();}export const codegenSdk={'service':a49_0x159100(0xc5),'command':a49_0x159100(0xcb),'description':a49_0x159100(0xcc),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x159100(0xbe),'type':a49_0x159100(0xc0),'description':a49_0x159100(0xca)},{'name':a49_0x159100(0xbc),'type':a49_0x159100(0xc0),'required':!![],'description':a49_0x159100(0xc7)},{'name':'skip-imports','type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x43b37d){const _0x235ac5=a49_0x159100,{dataset:_0x59c65f,operation:_0x29bca8}=await getOperationDetail(_0x43b37d['appCode'],_0x43b37d[_0x235ac5(0xbd)](_0x235ac5(0xce)),_0x43b37d[_0x235ac5(0xbd)](_0x235ac5(0xbc))),_0x506f2f=generateSdkCode(_0x59c65f,_0x29bca8,{'includeImports':!_0x43b37d[_0x235ac5(0xcd)](_0x235ac5(0xd0))});return{'ok':!![],'data':{'dataset':{'name':_0x59c65f[_0x235ac5(0xc1)],'code':_0x59c65f[_0x235ac5(0xce)],'tableName':_0x59c65f[_0x235ac5(0xd1)]},'operation':_0x43b37d['str'](_0x235ac5(0xbc)),'code':_0x506f2f}};}};
@@ -1 +1 @@
1
- const a50_0x8cbcbd=a50_0x3bcc;(function(_0x42ac4a,_0xe79bad){const _0x10ee5c=a50_0x3bcc,_0x4fc358=_0x42ac4a();while(!![]){try{const _0x3a8222=parseInt(_0x10ee5c(0x1c6))/0x1*(parseInt(_0x10ee5c(0x1b7))/0x2)+parseInt(_0x10ee5c(0x1ba))/0x3+parseInt(_0x10ee5c(0x1bb))/0x4*(-parseInt(_0x10ee5c(0x1be))/0x5)+parseInt(_0x10ee5c(0x1cc))/0x6+parseInt(_0x10ee5c(0x1c5))/0x7+parseInt(_0x10ee5c(0x1c0))/0x8+-parseInt(_0x10ee5c(0x1c3))/0x9;if(_0x3a8222===_0xe79bad)break;else _0x4fc358['push'](_0x4fc358['shift']());}catch(_0x136e52){_0x4fc358['push'](_0x4fc358['shift']());}}}(a50_0x872f,0x9e4a5));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x3bcc(_0x1023d2,_0x5b528a){_0x1023d2=_0x1023d2-0x1b6;const _0x872fb8=a50_0x872f();let _0x3bccd3=_0x872fb8[_0x1023d2];return _0x3bccd3;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a50_0x872f(){const _0x3745af=['bool','boolean','Omit\x20import\x20statements\x20from\x20generated\x20code','no-imports','appCode','5001408QiFkhy','sdk','903176BffQiA','read','str','1696992UNvVhA','452MCKfbY','sqlName','target','16565CfQcXJ','codegen','1950768PBZusS','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','bff','18173601immELd','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','3470327hdvLrJ','2UwRrtp'];a50_0x872f=function(){return _0x3745af;};return a50_0x872f();}export const codegenSql={'service':a50_0x8cbcbd(0x1bf),'command':'sql','description':a50_0x8cbcbd(0x1c4),'risk':a50_0x8cbcbd(0x1b8),'flags':[SQLCODE_FLAG,{'name':a50_0x8cbcbd(0x1bd),'type':'string','description':a50_0x8cbcbd(0x1c1),'default':'sdk','enum':[a50_0x8cbcbd(0x1b6),a50_0x8cbcbd(0x1c2)]},{'name':a50_0x8cbcbd(0x1ca),'type':a50_0x8cbcbd(0x1c8),'description':a50_0x8cbcbd(0x1c9)}],async 'execute'(_0x47cabf){const _0xb59067=a50_0x8cbcbd,_0x5db8ff=await getSqlQueryInfo(_0x47cabf[_0xb59067(0x1cb)],_0x47cabf[_0xb59067(0x1b9)]('sqlcode')),_0x2a0875=_0x47cabf[_0xb59067(0x1b9)]('target')||_0xb59067(0x1b6),_0x1acc27=generateSqlCodeTemplate(_0x5db8ff,{'target':_0x2a0875,'includeImports':!_0x47cabf[_0xb59067(0x1c7)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x5db8ff['sqlCode'],'sqlName':_0x5db8ff[_0xb59067(0x1bc)],'target':_0x2a0875,'code':_0x1acc27}};}};
1
+ function a50_0x2bc7(){const _0x170337=['9500676frMjLZ','sqlcode','str','codegen','908kdmDjR','read','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','Omit\x20import\x20statements\x20from\x20generated\x20code','2438975bNfvrq','string','29675RqMFaW','sdk','140vAuXlr','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','90841mdIiCG','sql','appCode','477PiBBfo','22UlVFhF','target','3496560BUiFrM','1731765hZWbgT','106816jCHeqY','bff','boolean'];a50_0x2bc7=function(){return _0x170337;};return a50_0x2bc7();}const a50_0x2a8480=a50_0x47f5;(function(_0xaa34a6,_0x10937e){const _0x2fd166=a50_0x47f5,_0x32d2c7=_0xaa34a6();while(!![]){try{const _0x3a4c5e=parseInt(_0x2fd166(0x89))/0x1*(-parseInt(_0x2fd166(0x8d))/0x2)+parseInt(_0x2fd166(0x8f))/0x3+parseInt(_0x2fd166(0x98))/0x4*(-parseInt(_0x2fd166(0x9e))/0x5)+-parseInt(_0x2fd166(0x94))/0x6+-parseInt(_0x2fd166(0x90))/0x7+-parseInt(_0x2fd166(0x91))/0x8*(-parseInt(_0x2fd166(0x8c))/0x9)+parseInt(_0x2fd166(0x86))/0xa*(parseInt(_0x2fd166(0x9c))/0xb);if(_0x3a4c5e===_0x10937e)break;else _0x32d2c7['push'](_0x32d2c7['shift']());}catch(_0x512585){_0x32d2c7['push'](_0x32d2c7['shift']());}}}(a50_0x2bc7,0xc34f5));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a50_0x47f5(_0x39671d,_0x575a2a){_0x39671d=_0x39671d-0x85;const _0x2bc7ea=a50_0x2bc7();let _0x47f59b=_0x2bc7ea[_0x39671d];return _0x47f59b;}export const codegenSql={'service':a50_0x2a8480(0x97),'command':a50_0x2a8480(0x8a),'description':a50_0x2a8480(0x9a),'risk':a50_0x2a8480(0x99),'flags':[SQLCODE_FLAG,{'name':'target','type':a50_0x2a8480(0x9d),'description':a50_0x2a8480(0x88),'default':'sdk','enum':[a50_0x2a8480(0x85),a50_0x2a8480(0x92)]},{'name':a50_0x2a8480(0x87),'type':a50_0x2a8480(0x93),'description':a50_0x2a8480(0x9b)}],async 'execute'(_0x14f2e4){const _0x5b7004=a50_0x2a8480,_0x52edb1=await getSqlQueryInfo(_0x14f2e4[_0x5b7004(0x8b)],_0x14f2e4[_0x5b7004(0x96)](_0x5b7004(0x95))),_0x58b256=_0x14f2e4[_0x5b7004(0x96)](_0x5b7004(0x8e))||_0x5b7004(0x85),_0x2d77ee=generateSqlCodeTemplate(_0x52edb1,{'target':_0x58b256,'includeImports':!_0x14f2e4['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x52edb1['sqlCode'],'sqlName':_0x52edb1['sqlName'],'target':_0x58b256,'code':_0x2d77ee}};}};
@@ -1 +1 @@
1
- (function(_0x6e40e,_0x4aaf70){const _0x3b12d2=a51_0xcfe5,_0x305fe9=_0x6e40e();while(!![]){try{const _0x10037a=parseInt(_0x3b12d2(0x192))/0x1*(-parseInt(_0x3b12d2(0x1b2))/0x2)+parseInt(_0x3b12d2(0x199))/0x3*(parseInt(_0x3b12d2(0x1ba))/0x4)+parseInt(_0x3b12d2(0x196))/0x5+-parseInt(_0x3b12d2(0x1b9))/0x6*(-parseInt(_0x3b12d2(0x1a5))/0x7)+-parseInt(_0x3b12d2(0x198))/0x8+-parseInt(_0x3b12d2(0x1b5))/0x9+parseInt(_0x3b12d2(0x197))/0xa;if(_0x10037a===_0x4aaf70)break;else _0x305fe9['push'](_0x305fe9['shift']());}catch(_0x105d48){_0x305fe9['push'](_0x305fe9['shift']());}}}(a51_0x5e63,0x355a9));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x168ad7=a51_0xcfe5;return[{'name':_0x168ad7(0x1b0),'type':_0x168ad7(0x19d),'description':_0x168ad7(0x19b),'required':!![]},{'name':'global','type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x363eee=a51_0xcfe5;return[{'name':'global','type':'boolean','description':_0x363eee(0x1a6),'default':![]}];}export async function validateAppName(_0x4408c3,_0x2772d2){const _0x3db103=a51_0xcfe5,_0x483ba5=_0x4408c3['args'][0x0]?.[_0x3db103(0x1a9)]();if(!_0x483ba5)throw CliErrors['validation'](_0x3db103(0x1b7),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x2772d2+'\x20<name>');}function a51_0x5e63(){const _0x3e544e=['project','761360jZiaBs','4219130UugUSH','2754176sktbss','39ZeAElb','Usage:\x20','App\x20code','\x22\x20(appcode:\x20','string','length','defaultApp','\x22\x20is\x20selected\x20automatically.','\x20Remaining\x20app\x20\x22','\x20Note:\x20app\x20\x22','flagMissing','bool','7icdrpY','Use\x20global\x20config\x20scope','\x20<name>\x20[--global]','\x20Default\x20app\x20is\x20\x22','trim','App\x20\x22','\x20config.','\x20<name>\x20--appcode\x20<code>','object','keys','projectConfig','appcode','global','600036vLOPUi','\x20app\x20\x22','globalConfig','511623uypSMP','Added','Missing\x20app\x20name.','both','1669596OySZfc','20684cryvsw','\x20Default\x20app\x20changed\x20to\x20\x22','apps','1GCHkaT','validation','str'];a51_0x5e63=function(){return _0x3e544e;};return a51_0x5e63();}export async function runAppAdd(_0x24d00a,_0x122cb6){const _0xc3949b=a51_0xcfe5,_0x272954=_0x24d00a['args'][0x0]?.['trim']();if(!_0x272954)throw CliErrors[_0xc3949b(0x193)](_0xc3949b(0x1b7),_0xc3949b(0x19a)+CLI_BIN_NAME+'\x20'+_0x122cb6+'\x20<name>\x20--appcode\x20<code>');const _0x5601ab=_0x24d00a[_0xc3949b(0x194)]('appcode');if(!_0x5601ab)throw CliErrors[_0xc3949b(0x1a3)](_0xc3949b(0x1b0),_0xc3949b(0x19a)+CLI_BIN_NAME+'\x20'+_0x122cb6+_0xc3949b(0x1ac));const _0x29b531={'global':_0x24d00a[_0xc3949b(0x1a4)](_0xc3949b(0x1b1))},_0xbd8402=readConfig(_0x29b531);if(!_0xbd8402[_0xc3949b(0x1bc)])_0xbd8402[_0xc3949b(0x1bc)]={};const _0xae8953={'appcode':_0x5601ab,...collectAppProfileOverrides(_0xbef6d9=>_0x24d00a[_0xc3949b(0x194)](_0xbef6d9))},_0x1651fa=_0xbd8402[_0xc3949b(0x1bc)],_0x33246b=Object[_0xc3949b(0x1ae)](_0x1651fa),_0x735894=typeof _0xbd8402['defaultApp']==='string'&&_0x1651fa[_0xbd8402[_0xc3949b(0x19f)]]?_0xbd8402[_0xc3949b(0x19f)]:_0x33246b[_0xc3949b(0x19e)]===0x1?_0x33246b[0x0]:undefined,_0x483174=!!_0x1651fa[_0x272954];_0x1651fa[_0x272954]=_0xae8953;const _0x33e284=normalizeStoredDefaultApp(_0xbd8402,_0x735894);writeConfig(_0xbd8402,_0x29b531);const _0x2def4a=!_0x483174&&_0x33e284?_0xc3949b(0x1a8)+_0x33e284+'\x22.':'',_0x32417c=(_0x483174?'Updated':_0xc3949b(0x1b6))+_0xc3949b(0x1b3)+_0x272954+_0xc3949b(0x19c)+_0x5601ab+')'+scopeLabel(_0x29b531)+'.'+_0x2def4a;return{'ok':!![],'message':_0x32417c};}function a51_0xcfe5(_0x3ea494,_0x7c8efc){_0x3ea494=_0x3ea494-0x192;const _0x5e6391=a51_0x5e63();let _0xcfe52f=_0x5e6391[_0x3ea494];return _0xcfe52f;}export async function runAppRemove(_0x58c8d3,_0x1895df){const _0x272114=a51_0xcfe5,_0x49fc4c=_0x58c8d3['args'][0x0]?.[_0x272114(0x1a9)]();if(!_0x49fc4c)throw CliErrors['validation'](_0x272114(0x1b7),_0x272114(0x19a)+CLI_BIN_NAME+'\x20'+_0x1895df+_0x272114(0x1a7));const _0x1a43e9=_0x58c8d3[_0x272114(0x1a4)](_0x272114(0x1b1)),{config:_0x203cf5,layers:_0x4d30c8}=readRawConfigWithLayers(),_0x491a19=_0x203cf5[_0x272114(0x1bc)]??{};if(!_0x491a19[_0x49fc4c])throw CliErrors['validation'](_0x272114(0x1aa)+_0x49fc4c+'\x22\x20not\x20found.');const _0x18b053=_0x4d30c8['globalConfig'][_0x272114(0x1bc)]&&typeof _0x4d30c8[_0x272114(0x1b4)]['apps']===_0x272114(0x1ad)?_0x4d30c8[_0x272114(0x1b4)]['apps']:{},_0x48335e=_0x4d30c8[_0x272114(0x1af)][_0x272114(0x1bc)]&&typeof _0x4d30c8[_0x272114(0x1af)][_0x272114(0x1bc)]===_0x272114(0x1ad)?_0x4d30c8[_0x272114(0x1af)]['apps']:{},_0x5ded6f=appDefinedIn(_0x49fc4c,_0x18b053,_0x48335e),_0x4eb649=resolveAppScopeForWrite(_0x49fc4c,_0x1a43e9,_0x4d30c8),_0x46c86a={'global':_0x4eb649===_0x272114(0x1b1)},_0x2d6dd9=readConfig(_0x46c86a),_0x3f79c5=_0x2d6dd9[_0x272114(0x1bc)];if(!_0x3f79c5||!_0x3f79c5[_0x49fc4c])throw CliErrors[_0x272114(0x193)]('App\x20\x22'+_0x49fc4c+'\x22\x20not\x20found.');delete _0x3f79c5[_0x49fc4c];let _0x27d153='';const _0x363af1=typeof _0x2d6dd9[_0x272114(0x19f)]===_0x272114(0x19d)?_0x2d6dd9[_0x272114(0x19f)]:undefined,_0x2cd96b=Object[_0x272114(0x1ae)](_0x3f79c5),_0x3d37d3=_0x363af1===_0x49fc4c?_0x2cd96b[0x0]:_0x363af1,_0x47b1d2=normalizeStoredDefaultApp(_0x2d6dd9,_0x3d37d3);if(_0x363af1===_0x49fc4c&&_0x2cd96b[_0x272114(0x19e)]===0x1)_0x27d153=_0x272114(0x1a1)+_0x2cd96b[0x0]+_0x272114(0x1a0);else _0x363af1===_0x49fc4c&&_0x47b1d2&&(_0x27d153=_0x272114(0x1bb)+_0x47b1d2+'\x22.');Object[_0x272114(0x1ae)](_0x3f79c5)[_0x272114(0x19e)]===0x0&&(delete _0x2d6dd9['apps'],delete _0x2d6dd9[_0x272114(0x19f)]);writeConfig(_0x2d6dd9,_0x46c86a);const _0x579d59=_0x5ded6f===_0x272114(0x1b8)?_0x272114(0x1a2)+_0x49fc4c+'\x22\x20still\x20defined\x20in\x20'+(_0x4eb649===_0x272114(0x195)?_0x272114(0x1b1):_0x272114(0x195))+_0x272114(0x1ab):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x49fc4c+'\x22'+scopeLabel(_0x46c86a)+'.'+_0x27d153+_0x579d59};}
1
+ (function(_0x1ab268,_0x55ddb2){const _0x39b3fb=a51_0x4075,_0x519bde=_0x1ab268();while(!![]){try{const _0x553b81=parseInt(_0x39b3fb(0x13f))/0x1*(parseInt(_0x39b3fb(0x13e))/0x2)+-parseInt(_0x39b3fb(0x143))/0x3+-parseInt(_0x39b3fb(0x137))/0x4+-parseInt(_0x39b3fb(0x14d))/0x5+parseInt(_0x39b3fb(0x138))/0x6+-parseInt(_0x39b3fb(0x142))/0x7+-parseInt(_0x39b3fb(0x153))/0x8*(-parseInt(_0x39b3fb(0x14f))/0x9);if(_0x553b81===_0x55ddb2)break;else _0x519bde['push'](_0x519bde['shift']());}catch(_0x508a38){_0x519bde['push'](_0x519bde['shift']());}}}(a51_0x21d4,0x6e062));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';function a51_0x4075(_0x565f28,_0x33ab64){_0x565f28=_0x565f28-0x137;const _0x21d43a=a51_0x21d4();let _0x407588=_0x21d43a[_0x565f28];return _0x407588;}import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x516787=a51_0x4075;return[{'name':_0x516787(0x14c),'type':_0x516787(0x145),'description':_0x516787(0x15e),'required':!![]},{'name':_0x516787(0x15f),'type':'boolean','description':_0x516787(0x13b),'default':![]},...getAppProfileFlagDefs()];}function a51_0x21d4(){const _0x1f3203=['\x20app\x20\x22','Missing\x20app\x20name.','Usage:\x20','appcode','3264940LHooNc','projectConfig','189tExDEw','defaultApp','globalConfig','keys','571952DjOsWv','both','\x20Note:\x20app\x20\x22','object','\x20config.','Removed\x20app\x20\x22','\x20<name>\x20--appcode\x20<code>','str','App\x20\x22','\x22\x20not\x20found.','args','App\x20code','global','152652PUPhew','4345428LrGEdR','Added','length','Use\x20global\x20config\x20scope','boolean','validation','330826hmwoOk','1aXUJRl','\x22\x20is\x20selected\x20automatically.','apps','5343779IaFLxV','1457457xwsGJo','\x20<name>','string','trim','bool','\x20Default\x20app\x20changed\x20to\x20\x22'];a51_0x21d4=function(){return _0x1f3203;};return a51_0x21d4();}export function buildAppRemoveFlags(){const _0x44b915=a51_0x4075;return[{'name':_0x44b915(0x15f),'type':_0x44b915(0x13c),'description':_0x44b915(0x13b),'default':![]}];}export async function validateAppName(_0x4f25f7,_0x513751){const _0x1b871a=a51_0x4075,_0x265957=_0x4f25f7['args'][0x0]?.[_0x1b871a(0x146)]();if(!_0x265957)throw CliErrors['validation'](_0x1b871a(0x14a),_0x1b871a(0x14b)+CLI_BIN_NAME+'\x20'+_0x513751+_0x1b871a(0x144));}export async function runAppAdd(_0x1efb8f,_0x4b85d2){const _0x1d3b90=a51_0x4075,_0x5543e4=_0x1efb8f[_0x1d3b90(0x15d)][0x0]?.[_0x1d3b90(0x146)]();if(!_0x5543e4)throw CliErrors['validation']('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x4b85d2+_0x1d3b90(0x159));const _0x103af5=_0x1efb8f[_0x1d3b90(0x15a)](_0x1d3b90(0x14c));if(!_0x103af5)throw CliErrors['flagMissing'](_0x1d3b90(0x14c),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x4b85d2+'\x20<name>\x20--appcode\x20<code>');const _0x367002={'global':_0x1efb8f['bool'](_0x1d3b90(0x15f))},_0x1e2058=readConfig(_0x367002);if(!_0x1e2058[_0x1d3b90(0x141)])_0x1e2058['apps']={};const _0x3ed1c0={'appcode':_0x103af5,...collectAppProfileOverrides(_0x51da16=>_0x1efb8f['str'](_0x51da16))},_0x547923=_0x1e2058['apps'],_0x5d9b1e=Object['keys'](_0x547923),_0x35adb8=typeof _0x1e2058[_0x1d3b90(0x150)]==='string'&&_0x547923[_0x1e2058[_0x1d3b90(0x150)]]?_0x1e2058['defaultApp']:_0x5d9b1e['length']===0x1?_0x5d9b1e[0x0]:undefined,_0x13169d=!!_0x547923[_0x5543e4];_0x547923[_0x5543e4]=_0x3ed1c0;const _0x239d56=normalizeStoredDefaultApp(_0x1e2058,_0x35adb8);writeConfig(_0x1e2058,_0x367002);const _0xc9c278=!_0x13169d&&_0x239d56?'\x20Default\x20app\x20is\x20\x22'+_0x239d56+'\x22.':'',_0x5511cd=(_0x13169d?'Updated':_0x1d3b90(0x139))+_0x1d3b90(0x149)+_0x5543e4+'\x22\x20(appcode:\x20'+_0x103af5+')'+scopeLabel(_0x367002)+'.'+_0xc9c278;return{'ok':!![],'message':_0x5511cd};}export async function runAppRemove(_0x14468f,_0x1a7e59){const _0x315209=a51_0x4075,_0x3f3780=_0x14468f[_0x315209(0x15d)][0x0]?.[_0x315209(0x146)]();if(!_0x3f3780)throw CliErrors['validation'](_0x315209(0x14a),_0x315209(0x14b)+CLI_BIN_NAME+'\x20'+_0x1a7e59+'\x20<name>\x20[--global]');const _0x160fb8=_0x14468f[_0x315209(0x147)](_0x315209(0x15f)),{config:_0x169ae3,layers:_0x1cb771}=readRawConfigWithLayers(),_0x317bd0=_0x169ae3[_0x315209(0x141)]??{};if(!_0x317bd0[_0x3f3780])throw CliErrors[_0x315209(0x13d)](_0x315209(0x15b)+_0x3f3780+_0x315209(0x15c));const _0x45a5e5=_0x1cb771[_0x315209(0x151)]['apps']&&typeof _0x1cb771[_0x315209(0x151)][_0x315209(0x141)]===_0x315209(0x156)?_0x1cb771[_0x315209(0x151)][_0x315209(0x141)]:{},_0x39f607=_0x1cb771[_0x315209(0x14e)][_0x315209(0x141)]&&typeof _0x1cb771['projectConfig'][_0x315209(0x141)]===_0x315209(0x156)?_0x1cb771[_0x315209(0x14e)][_0x315209(0x141)]:{},_0x2d83de=appDefinedIn(_0x3f3780,_0x45a5e5,_0x39f607),_0x372674=resolveAppScopeForWrite(_0x3f3780,_0x160fb8,_0x1cb771),_0x4a046c={'global':_0x372674===_0x315209(0x15f)},_0x10f56e=readConfig(_0x4a046c),_0x476ed2=_0x10f56e[_0x315209(0x141)];if(!_0x476ed2||!_0x476ed2[_0x3f3780])throw CliErrors[_0x315209(0x13d)]('App\x20\x22'+_0x3f3780+'\x22\x20not\x20found.');delete _0x476ed2[_0x3f3780];let _0xa228a='';const _0x53ae6f=typeof _0x10f56e[_0x315209(0x150)]===_0x315209(0x145)?_0x10f56e['defaultApp']:undefined,_0x545ede=Object[_0x315209(0x152)](_0x476ed2),_0x25e348=_0x53ae6f===_0x3f3780?_0x545ede[0x0]:_0x53ae6f,_0x11707a=normalizeStoredDefaultApp(_0x10f56e,_0x25e348);if(_0x53ae6f===_0x3f3780&&_0x545ede[_0x315209(0x13a)]===0x1)_0xa228a='\x20Remaining\x20app\x20\x22'+_0x545ede[0x0]+_0x315209(0x140);else _0x53ae6f===_0x3f3780&&_0x11707a&&(_0xa228a=_0x315209(0x148)+_0x11707a+'\x22.');Object[_0x315209(0x152)](_0x476ed2)[_0x315209(0x13a)]===0x0&&(delete _0x10f56e[_0x315209(0x141)],delete _0x10f56e[_0x315209(0x150)]);writeConfig(_0x10f56e,_0x4a046c);const _0x4a5945=_0x2d83de===_0x315209(0x154)?_0x315209(0x155)+_0x3f3780+'\x22\x20still\x20defined\x20in\x20'+(_0x372674==='project'?_0x315209(0x15f):'project')+_0x315209(0x157):'';return{'ok':!![],'message':_0x315209(0x158)+_0x3f3780+'\x22'+scopeLabel(_0x4a046c)+'.'+_0xa228a+_0x4a5945};}
@@ -1 +1 @@
1
- (function(_0x2c5838,_0x14dbcf){const _0x2220eb=a52_0x3a29,_0x397648=_0x2c5838();while(!![]){try{const _0x4f6225=-parseInt(_0x2220eb(0xf9))/0x1+-parseInt(_0x2220eb(0xef))/0x2*(parseInt(_0x2220eb(0xe8))/0x3)+-parseInt(_0x2220eb(0xf1))/0x4*(parseInt(_0x2220eb(0x102))/0x5)+-parseInt(_0x2220eb(0x10a))/0x6*(parseInt(_0x2220eb(0xf8))/0x7)+-parseInt(_0x2220eb(0xea))/0x8*(-parseInt(_0x2220eb(0xf0))/0x9)+parseInt(_0x2220eb(0xf3))/0xa+parseInt(_0x2220eb(0xf5))/0xb;if(_0x4f6225===_0x14dbcf)break;else _0x397648['push'](_0x397648['shift']());}catch(_0x2696a7){_0x397648['push'](_0x397648['shift']());}}}(a52_0x5582,0xd3111));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x2c9b89 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x25d67a=a52_0x3a29,_0x55a358=await input({'message':_0x25d67a(0xfb),'validate':_0x194aa1=>{const _0x4c0156=_0x25d67a,_0x2fb08e=validateAppcode(_0x194aa1['trim']());return _0x2fb08e[_0x4c0156(0xec)]||_0x2fb08e[_0x4c0156(0x10b)]||_0x4c0156(0xf2);}});return _0x55a358['trim']();}export async function promptAppSelection(_0x2b1f40){const _0x496208=a52_0x3a29,_0x488e75=[{'name':a52_0x2c9b89[_0x496208(0xeb)](_0x496208(0x104)),'value':-0x1},..._0x2b1f40[_0x496208(0x107)]((_0x2a0083,_0x3e05e1)=>({'name':_0x2a0083[_0x496208(0xf7)]+'\x20\x20'+a52_0x2c9b89[_0x496208(0x10e)]('('+_0x2a0083[_0x496208(0x106)]+')'),'value':_0x3e05e1}))],_0x2b6dc6=await checkbox({'message':_0x496208(0x10c)+a52_0x2c9b89['cyan'](_0x2b1f40[_0x496208(0xfe)])+_0x496208(0x101),'choices':_0x488e75,'loop':![]});if(_0x2b6dc6[_0x496208(0xee)](-0x1))return _0x496208(0x109);if(_0x2b6dc6['length']===0x0)return _0x496208(0x109);return _0x2b6dc6[_0x496208(0x107)](_0x3a8d11=>_0x2b1f40[_0x3a8d11]);}export async function promptSingleAppSelection(_0x3e4224){const _0x4388e4=a52_0x3a29,_0x1a7c9b=[{'name':a52_0x2c9b89['gray'](_0x4388e4(0xf4)),'value':_0x4388e4(0x100)},{'name':a52_0x2c9b89[_0x4388e4(0xeb)](_0x4388e4(0x104)),'value':_0x4388e4(0x109)},..._0x3e4224[_0x4388e4(0x107)](_0x6ff47b=>({'name':_0x6ff47b[_0x4388e4(0xf7)]+'\x20\x20'+a52_0x2c9b89[_0x4388e4(0x10e)]('('+_0x6ff47b[_0x4388e4(0x106)]+')'),'value':_0x6ff47b['appCode']}))],_0x3ddcd8=await select({'message':'Select\x20the\x20app\x20to\x20bind:','choices':_0x1a7c9b});if(_0x3ddcd8===_0x4388e4(0x100))return _0x4388e4(0x100);if(_0x3ddcd8===_0x4388e4(0x109))return _0x4388e4(0x109);return _0x3e4224[_0x4388e4(0xfa)](_0x57ace2=>_0x57ace2['appCode']===_0x3ddcd8);}export async function selectSingleAppcode(_0x4d57b8){const _0x53b785=a52_0x3a29;if(!_0x4d57b8)return writeCliSideChannelLine(a52_0x2c9b89[_0x53b785(0x10e)](_0x53b785(0xfc))),_fallbackOrSkip();writeCliSideChannelLine(_0x53b785(0xfd));let _0x4cb89c;try{_0x4cb89c=await withActiveCookie(_0x4d57b8,()=>listRemoteApps());}catch(_0x2ebf0d){writeCliSideChannelLine(a52_0x2c9b89[_0x53b785(0xeb)](_0x53b785(0x105)));if(_0x2ebf0d instanceof Error)writeCliSideChannelLine(a52_0x2c9b89[_0x53b785(0x10e)](_0x53b785(0xe9)+_0x2ebf0d[_0x53b785(0x10b)]+')'));return _fallbackOrSkip();}if(_0x4cb89c[_0x53b785(0xfe)]===0x0)return writeCliSideChannelLine(a52_0x2c9b89['yellow'](_0x53b785(0xed))),_fallbackOrSkip();const _0x41b0c6=await promptSingleAppSelection(_0x4cb89c);if(_0x41b0c6===_0x53b785(0x100))return'';if(_0x41b0c6===_0x53b785(0x109))return promptCustomAppcode();return _0x41b0c6[_0x53b785(0x106)];}export async function selectMultipleApps(_0x1d76f7){const _0x2bc0d3=a52_0x3a29;writeCliSideChannelLine('Fetching\x20available\x20apps...');let _0x43c641;try{_0x43c641=await withActiveCookie(_0x1d76f7,()=>listRemoteApps());}catch(_0x572b96){writeCliSideChannelLine(_0x2bc0d3(0x103));if(_0x572b96 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x572b96[_0x2bc0d3(0x10b)]+')');return _0x2bc0d3(0x109);}if(_0x43c641[_0x2bc0d3(0xfe)]===0x0)return writeCliSideChannelLine(_0x2bc0d3(0xf6)),_0x2bc0d3(0x109);return promptAppSelection(_0x43c641);}function a52_0x3a29(_0x854e27,_0x101b32){_0x854e27=_0x854e27-0xe8;const _0x5582bc=a52_0x5582();let _0x3a29b8=_0x5582bc[_0x854e27];return _0x3a29b8;}function a52_0x5582(){const _0x458faf=['valid','No\x20available\x20apps\x20found.','includes','4334PIArYZ','368127zjzrxr','20xtiKgf','Invalid\x20App\x20Code','6834090dkpFMk','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','27753946KGSSfi','\x0aNo\x20available\x20apps\x20found.','appName','1296897VHEQdS','1047638xSWCNg','find','App\x20Code:','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','Fetching\x20available\x20apps...','length','(Skip;\x20configure\x20later)','skip','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','310865LFMjXE','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','✎\x20Enter\x20appcode\x20manually','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','appCode','map','✎\x20Enter\x20manually','custom','54QhRjin','message','Found\x20','manual','gray','129SmUptv','\x20\x20(','152NDJBBE','yellow'];a52_0x5582=function(){return _0x458faf;};return a52_0x5582();}async function _fallbackOrSkip(){const _0x1b946a=a52_0x3a29,_0x186679=await select({'message':_0x1b946a(0xfb),'choices':[{'name':a52_0x2c9b89['gray'](_0x1b946a(0xff)),'value':_0x1b946a(0x100)},{'name':a52_0x2c9b89[_0x1b946a(0xeb)](_0x1b946a(0x108)),'value':_0x1b946a(0x10d)}]});if(_0x186679===_0x1b946a(0x100))return'';return promptCustomAppcode();}
1
+ (function(_0x101cde,_0x21652e){const _0x59d9a1=a52_0x3ba6,_0x22446a=_0x101cde();while(!![]){try{const _0x6f677c=parseInt(_0x59d9a1(0x1ca))/0x1*(-parseInt(_0x59d9a1(0x1b6))/0x2)+parseInt(_0x59d9a1(0x1d0))/0x3*(parseInt(_0x59d9a1(0x1d1))/0x4)+-parseInt(_0x59d9a1(0x1d2))/0x5+-parseInt(_0x59d9a1(0x1c3))/0x6+-parseInt(_0x59d9a1(0x1c2))/0x7+-parseInt(_0x59d9a1(0x1b5))/0x8+parseInt(_0x59d9a1(0x1bc))/0x9;if(_0x6f677c===_0x21652e)break;else _0x22446a['push'](_0x22446a['shift']());}catch(_0x67f25e){_0x22446a['push'](_0x22446a['shift']());}}}(a52_0x64f7,0x92dd2));function a52_0x64f7(){const _0x487044=['yellow','Fetching\x20available\x20apps...','skip','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','trim','2779568SRFrJq','593994lAKiHN','valid','includes','App\x20Code:','No\x20available\x20apps\x20found.','✎\x20Enter\x20appcode\x20manually','28392246yOiJTl','appName','message','Select\x20the\x20app\x20to\x20bind:','find','custom','1949822zByKtM','856824HGjJXV','Found\x20','appCode','map','cyan','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','length','3gyrsGn','gray','Invalid\x20App\x20Code','\x0aNo\x20available\x20apps\x20found.','(Skip;\x20configure\x20later)','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','3GcCBuf','461540PgmgbT','5043690mTUDgA','\x20\x20('];a52_0x64f7=function(){return _0x487044;};return a52_0x64f7();}function a52_0x3ba6(_0x5460ac,_0x3ac0c1){_0x5460ac=_0x5460ac-0x1af;const _0x64f7ff=a52_0x64f7();let _0x3ba616=_0x64f7ff[_0x5460ac];return _0x3ba616;}import{input,checkbox,select}from'@inquirer/prompts';import a52_0x286e5e from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x475a9f=a52_0x3ba6,_0x4e30e9=await input({'message':_0x475a9f(0x1b9),'validate':_0x479463=>{const _0x25b3c3=_0x475a9f,_0x220aa6=validateAppcode(_0x479463[_0x25b3c3(0x1b4)]());return _0x220aa6[_0x25b3c3(0x1b7)]||_0x220aa6['message']||_0x25b3c3(0x1cc);}});return _0x4e30e9[_0x475a9f(0x1b4)]();}export async function promptAppSelection(_0x4b109a){const _0x3172af=a52_0x3ba6,_0x4af0f1=[{'name':a52_0x286e5e['yellow'](_0x3172af(0x1bb)),'value':-0x1},..._0x4b109a[_0x3172af(0x1c6)]((_0x5757e6,_0x1b5dac)=>({'name':_0x5757e6[_0x3172af(0x1bd)]+'\x20\x20'+a52_0x286e5e[_0x3172af(0x1cb)]('('+_0x5757e6['appCode']+')'),'value':_0x1b5dac}))],_0x28a5e9=await checkbox({'message':_0x3172af(0x1c4)+a52_0x286e5e[_0x3172af(0x1c7)](_0x4b109a['length'])+_0x3172af(0x1c8),'choices':_0x4af0f1,'loop':![]});if(_0x28a5e9[_0x3172af(0x1b8)](-0x1))return _0x3172af(0x1c1);if(_0x28a5e9[_0x3172af(0x1c9)]===0x0)return'custom';return _0x28a5e9[_0x3172af(0x1c6)](_0x82f5fb=>_0x4b109a[_0x82f5fb]);}export async function promptSingleAppSelection(_0x3fe5fc){const _0x489dcb=a52_0x3ba6,_0x21216a=[{'name':a52_0x286e5e['gray'](_0x489dcb(0x1cf)),'value':_0x489dcb(0x1b2)},{'name':a52_0x286e5e[_0x489dcb(0x1b0)]('✎\x20Enter\x20appcode\x20manually'),'value':_0x489dcb(0x1c1)},..._0x3fe5fc[_0x489dcb(0x1c6)](_0x46c24c=>({'name':_0x46c24c[_0x489dcb(0x1bd)]+'\x20\x20'+a52_0x286e5e[_0x489dcb(0x1cb)]('('+_0x46c24c[_0x489dcb(0x1c5)]+')'),'value':_0x46c24c['appCode']}))],_0x21876a=await select({'message':_0x489dcb(0x1bf),'choices':_0x21216a});if(_0x21876a===_0x489dcb(0x1b2))return _0x489dcb(0x1b2);if(_0x21876a==='custom')return _0x489dcb(0x1c1);return _0x3fe5fc[_0x489dcb(0x1c0)](_0x2dbbc4=>_0x2dbbc4['appCode']===_0x21876a);}export async function selectSingleAppcode(_0x33c9e5){const _0x3941fb=a52_0x3ba6;if(!_0x33c9e5)return writeCliSideChannelLine(a52_0x286e5e[_0x3941fb(0x1cb)]('(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)')),_fallbackOrSkip();writeCliSideChannelLine(_0x3941fb(0x1b1));let _0x26fd71;try{_0x26fd71=await withActiveCookie(_0x33c9e5,()=>listRemoteApps());}catch(_0x23b642){writeCliSideChannelLine(a52_0x286e5e[_0x3941fb(0x1b0)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x23b642 instanceof Error)writeCliSideChannelLine(a52_0x286e5e['gray'](_0x3941fb(0x1af)+_0x23b642[_0x3941fb(0x1be)]+')'));return _fallbackOrSkip();}if(_0x26fd71[_0x3941fb(0x1c9)]===0x0)return writeCliSideChannelLine(a52_0x286e5e[_0x3941fb(0x1b0)](_0x3941fb(0x1ba))),_fallbackOrSkip();const _0x49dd84=await promptSingleAppSelection(_0x26fd71);if(_0x49dd84===_0x3941fb(0x1b2))return'';if(_0x49dd84===_0x3941fb(0x1c1))return promptCustomAppcode();return _0x49dd84[_0x3941fb(0x1c5)];}export async function selectMultipleApps(_0x9c959e){const _0x1a7618=a52_0x3ba6;writeCliSideChannelLine(_0x1a7618(0x1b1));let _0x500b86;try{_0x500b86=await withActiveCookie(_0x9c959e,()=>listRemoteApps());}catch(_0x16d323){writeCliSideChannelLine(_0x1a7618(0x1b3));if(_0x16d323 instanceof Error)writeCliSideChannelLine(_0x1a7618(0x1af)+_0x16d323[_0x1a7618(0x1be)]+')');return _0x1a7618(0x1c1);}if(_0x500b86[_0x1a7618(0x1c9)]===0x0)return writeCliSideChannelLine(_0x1a7618(0x1cd)),_0x1a7618(0x1c1);return promptAppSelection(_0x500b86);}async function _fallbackOrSkip(){const _0x575f20=a52_0x3ba6,_0x2ec78a=await select({'message':_0x575f20(0x1b9),'choices':[{'name':a52_0x286e5e[_0x575f20(0x1cb)](_0x575f20(0x1ce)),'value':_0x575f20(0x1b2)},{'name':a52_0x286e5e[_0x575f20(0x1b0)]('✎\x20Enter\x20manually'),'value':'manual'}]});if(_0x2ec78a===_0x575f20(0x1b2))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a53_0x44c368=a53_0x234b;function a53_0x5e02(){const _0x211c63=['SUCCESS','2043HEWjIp','toUpperCase','\x20--format\x20compress','528525RjuYOV','trim','6xdAnnA','4990585CJjXOg','\x20is\x20pending.','\x27\x5c\x27\x27','replace','\x20task\x20status\x20--task-id\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','230SVoMSf','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','\x20failed:\x20','status','PENDING','821920mzxvCF','Task\x20','errorMessage','2468596TnWAPw','string','663691NFbNPA','684473gOmwcQ','FAILED','\x20is\x20processing.','PROCESSING','\x20failed.','taskId','has','1600BNHWLJ'];a53_0x5e02=function(){return _0x211c63;};return a53_0x5e02();}(function(_0x47f481,_0x5be770){const _0x279d40=a53_0x234b,_0x190f41=_0x47f481();while(!![]){try{const _0x1fe704=-parseInt(_0x279d40(0x1d5))/0x1+parseInt(_0x279d40(0x1dc))/0x2*(-parseInt(_0x279d40(0x1de))/0x3)+-parseInt(_0x279d40(0x1d2))/0x4+parseInt(_0x279d40(0x1e4))/0x5+-parseInt(_0x279d40(0x1e3))/0x6*(parseInt(_0x279d40(0x1d4))/0x7)+parseInt(_0x279d40(0x1ef))/0x8+-parseInt(_0x279d40(0x1e1))/0x9*(-parseInt(_0x279d40(0x1ea))/0xa);if(_0x1fe704===_0x5be770)break;else _0x190f41['push'](_0x190f41['shift']());}catch(_0x1bfb1a){_0x190f41['push'](_0x190f41['shift']());}}}(a53_0x5e02,0x7c959));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x44c368(0x1dd),a53_0x44c368(0x1d6)]),NON_TERMINAL_STATUSES=new Set([a53_0x44c368(0x1ee),a53_0x44c368(0x1d8)]);function a53_0x234b(_0x5794d2,_0xb7f348){_0x5794d2=_0x5794d2-0x1d0;const _0x5e02a4=a53_0x5e02();let _0x234b62=_0x5e02a4[_0x5794d2];return _0x234b62;}export function normalizeAsyncTask(_0x945c26){const _0x3a5f7b=a53_0x44c368,_0x2fe926=typeof _0x945c26?.[_0x3a5f7b(0x1da)]==='string'?_0x945c26['taskId'][_0x3a5f7b(0x1e2)]():'';if(!_0x2fe926)throw CliErrors['apiError'](_0x3a5f7b(0x1eb));const _0x33e380=typeof _0x945c26['status']===_0x3a5f7b(0x1d3)?_0x945c26['status'][_0x3a5f7b(0x1e2)]()[_0x3a5f7b(0x1df)]():'';if(!_0x33e380)throw CliErrors['apiError']('Async\x20task\x20'+_0x2fe926+_0x3a5f7b(0x1e9));return{'taskId':_0x2fe926,'status':_0x33e380,'errorMessage':typeof _0x945c26[_0x3a5f7b(0x1d1)]===_0x3a5f7b(0x1d3)&&_0x945c26[_0x3a5f7b(0x1d1)][_0x3a5f7b(0x1e2)]()?_0x945c26[_0x3a5f7b(0x1d1)]['trim']():null,'isTerminal':TERMINAL_STATUSES[_0x3a5f7b(0x1db)](_0x33e380),'knownStatus':TERMINAL_STATUSES[_0x3a5f7b(0x1db)](_0x33e380)||NON_TERMINAL_STATUSES[_0x3a5f7b(0x1db)](_0x33e380)};}export function buildAsyncTaskStatusCommand(_0x473121,_0x18736a){const _0x2e8434=a53_0x44c368;return CLI_BIN_NAME+_0x2e8434(0x1e8)+quoteShellArg(_0x473121)+'\x20--appcode\x20'+quoteShellArg(_0x18736a)+_0x2e8434(0x1e0);}export function asyncTaskMessage(_0x1e3058){const _0x2cc531=a53_0x44c368;switch(_0x1e3058[_0x2cc531(0x1ed)]){case'PENDING':return _0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+_0x2cc531(0x1e5);case _0x2cc531(0x1d8):return _0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+_0x2cc531(0x1d7);case _0x2cc531(0x1dd):return _0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+'\x20completed\x20successfully.';case _0x2cc531(0x1d6):return _0x1e3058[_0x2cc531(0x1d1)]?_0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+_0x2cc531(0x1ec)+_0x1e3058[_0x2cc531(0x1d1)]:_0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+_0x2cc531(0x1d9);default:return _0x2cc531(0x1d0)+_0x1e3058[_0x2cc531(0x1da)]+'\x20returned\x20unknown\x20status\x20'+_0x1e3058[_0x2cc531(0x1ed)]+'.';}}function quoteShellArg(_0x16489d){const _0x45b9a2=a53_0x44c368;return'\x27'+_0x16489d[_0x45b9a2(0x1e7)](/'/g,_0x45b9a2(0x1e6))+'\x27';}
1
+ const a53_0x8e11f8=a53_0x115d;(function(_0x28404c,_0x31cab1){const _0x3f8978=a53_0x115d,_0x21da4e=_0x28404c();while(!![]){try{const _0x204107=parseInt(_0x3f8978(0xb8))/0x1*(-parseInt(_0x3f8978(0xb9))/0x2)+parseInt(_0x3f8978(0xcc))/0x3*(-parseInt(_0x3f8978(0xce))/0x4)+parseInt(_0x3f8978(0xb6))/0x5+-parseInt(_0x3f8978(0xbd))/0x6+parseInt(_0x3f8978(0xbc))/0x7+-parseInt(_0x3f8978(0xc9))/0x8*(parseInt(_0x3f8978(0xc8))/0x9)+parseInt(_0x3f8978(0xba))/0xa;if(_0x204107===_0x31cab1)break;else _0x21da4e['push'](_0x21da4e['shift']());}catch(_0x54d90f){_0x21da4e['push'](_0x21da4e['shift']());}}}(a53_0x1b85,0x60d2f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';function a53_0x1b85(){const _0x43c5c2=['2759YaaYqj','218hdIXfY','12620930NsQRYg','\x20is\x20pending.','1807771tpuPOv','2568642hpjCiM','PROCESSING','\x20completed\x20successfully.','toUpperCase','\x20failed:\x20','\x20--appcode\x20','\x20--format\x20compress','errorMessage','\x20task\x20status\x20--task-id\x20','taskId','string','2107494SytgoA','24LUNacI','\x27\x5c\x27\x27','PENDING','2445kXhPwS','Task\x20','292CanNRd','trim','SUCCESS','apiError','\x20response\x20did\x20not\x20contain\x20a\x20status.','has','\x20returned\x20unknown\x20status\x20','Async\x20task\x20','FAILED','status','\x20failed.','1835380LcNLtF','\x20is\x20processing.'];a53_0x1b85=function(){return _0x43c5c2;};return a53_0x1b85();}const TERMINAL_STATUSES=new Set([a53_0x8e11f8(0xd0),a53_0x8e11f8(0xd6)]),NON_TERMINAL_STATUSES=new Set([a53_0x8e11f8(0xcb),a53_0x8e11f8(0xbe)]);export function normalizeAsyncTask(_0x156f4b){const _0x1f9741=a53_0x8e11f8,_0x2ed762=typeof _0x156f4b?.[_0x1f9741(0xc6)]==='string'?_0x156f4b[_0x1f9741(0xc6)][_0x1f9741(0xcf)]():'';if(!_0x2ed762)throw CliErrors[_0x1f9741(0xd1)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x2dd973=typeof _0x156f4b[_0x1f9741(0xd7)]===_0x1f9741(0xc7)?_0x156f4b[_0x1f9741(0xd7)][_0x1f9741(0xcf)]()[_0x1f9741(0xc0)]():'';if(!_0x2dd973)throw CliErrors[_0x1f9741(0xd1)](_0x1f9741(0xd5)+_0x2ed762+_0x1f9741(0xd2));return{'taskId':_0x2ed762,'status':_0x2dd973,'errorMessage':typeof _0x156f4b[_0x1f9741(0xc4)]==='string'&&_0x156f4b['errorMessage'][_0x1f9741(0xcf)]()?_0x156f4b[_0x1f9741(0xc4)]['trim']():null,'isTerminal':TERMINAL_STATUSES[_0x1f9741(0xd3)](_0x2dd973),'knownStatus':TERMINAL_STATUSES[_0x1f9741(0xd3)](_0x2dd973)||NON_TERMINAL_STATUSES[_0x1f9741(0xd3)](_0x2dd973)};}export function buildAsyncTaskStatusCommand(_0x4fb456,_0xc820ae){const _0x465311=a53_0x8e11f8;return CLI_BIN_NAME+_0x465311(0xc5)+quoteShellArg(_0x4fb456)+_0x465311(0xc2)+quoteShellArg(_0xc820ae)+_0x465311(0xc3);}function a53_0x115d(_0x4f85de,_0x175169){_0x4f85de=_0x4f85de-0xb6;const _0x1b854a=a53_0x1b85();let _0x115d07=_0x1b854a[_0x4f85de];return _0x115d07;}export function asyncTaskMessage(_0x39c6b0){const _0x278cad=a53_0x8e11f8;switch(_0x39c6b0['status']){case'PENDING':return'Task\x20'+_0x39c6b0[_0x278cad(0xc6)]+_0x278cad(0xbb);case _0x278cad(0xbe):return _0x278cad(0xcd)+_0x39c6b0['taskId']+_0x278cad(0xb7);case'SUCCESS':return _0x278cad(0xcd)+_0x39c6b0[_0x278cad(0xc6)]+_0x278cad(0xbf);case _0x278cad(0xd6):return _0x39c6b0[_0x278cad(0xc4)]?_0x278cad(0xcd)+_0x39c6b0[_0x278cad(0xc6)]+_0x278cad(0xc1)+_0x39c6b0[_0x278cad(0xc4)]:_0x278cad(0xcd)+_0x39c6b0['taskId']+_0x278cad(0xd8);default:return _0x278cad(0xcd)+_0x39c6b0[_0x278cad(0xc6)]+_0x278cad(0xd4)+_0x39c6b0[_0x278cad(0xd7)]+'.';}}function quoteShellArg(_0x1ab37a){const _0x4ddb4a=a53_0x8e11f8;return'\x27'+_0x1ab37a['replace'](/'/g,_0x4ddb4a(0xca))+'\x27';}
@@ -1 +1 @@
1
- (function(_0x56f48c,_0x350b2f){var _0x2156fa=a54_0x2042,_0x190338=_0x56f48c();while(!![]){try{var _0x51d62e=-parseInt(_0x2156fa(0x1ea))/0x1*(parseInt(_0x2156fa(0x1e1))/0x2)+parseInt(_0x2156fa(0x1e6))/0x3*(parseInt(_0x2156fa(0x1eb))/0x4)+parseInt(_0x2156fa(0x1e7))/0x5*(-parseInt(_0x2156fa(0x1ee))/0x6)+parseInt(_0x2156fa(0x1e9))/0x7*(-parseInt(_0x2156fa(0x1ef))/0x8)+parseInt(_0x2156fa(0x1e5))/0x9*(parseInt(_0x2156fa(0x1e3))/0xa)+parseInt(_0x2156fa(0x1ec))/0xb+-parseInt(_0x2156fa(0x1ed))/0xc*(parseInt(_0x2156fa(0x1e8))/0xd);if(_0x51d62e===_0x350b2f)break;else _0x190338['push'](_0x190338['shift']());}catch(_0x2cadf4){_0x190338['push'](_0x190338['shift']());}}}(a54_0x41df,0x53460));export function asDryRunResult(_0x6c1bcf,_0x53d128){var _0x48ebdc=a54_0x2042;return Object[_0x48ebdc(0x1e2)](_0x6c1bcf,{'method':{'value':_0x53d128[_0x48ebdc(0x1e4)],'enumerable':![]},'url':{'value':_0x53d128['url'],'enumerable':![]},..._0x53d128['description']?{'description':{'value':_0x53d128['description'],'enumerable':![]}}:{}});}function a54_0x2042(_0x14561b,_0x2123f1){_0x14561b=_0x14561b-0x1e1;var _0x41dfde=a54_0x41df();var _0x204232=_0x41dfde[_0x14561b];return _0x204232;}function a54_0x41df(){var _0x14a545=['25AArWWX','466479IPUyYB','835261YdtvWx','581143JXeRZh','4nRZORv','4667553paIUtA','84tvhcdB','393948xksfBs','8EmcWlS','2arHuHX','defineProperties','10dytYhT','method','5192829ouBLmZ','1859163KHIVaM'];a54_0x41df=function(){return _0x14a545;};return a54_0x41df();}
1
+ (function(_0x1d55e6,_0x4b83ab){var _0x4780ba=a54_0xb27b,_0x5f18dc=_0x1d55e6();while(!![]){try{var _0xfaba0c=parseInt(_0x4780ba(0xe9))/0x1*(-parseInt(_0x4780ba(0xe2))/0x2)+-parseInt(_0x4780ba(0xee))/0x3+-parseInt(_0x4780ba(0xe1))/0x4*(-parseInt(_0x4780ba(0xe8))/0x5)+-parseInt(_0x4780ba(0xe3))/0x6+parseInt(_0x4780ba(0xe7))/0x7+parseInt(_0x4780ba(0xe4))/0x8+parseInt(_0x4780ba(0xec))/0x9*(parseInt(_0x4780ba(0xe5))/0xa);if(_0xfaba0c===_0x4b83ab)break;else _0x5f18dc['push'](_0x5f18dc['shift']());}catch(_0x3f8e84){_0x5f18dc['push'](_0x5f18dc['shift']());}}}(a54_0x5be3,0x9569c));function a54_0xb27b(_0x2e3c5a,_0x31d2ff){_0x2e3c5a=_0x2e3c5a-0xe1;var _0x5be325=a54_0x5be3();var _0xb27bf3=_0x5be325[_0x2e3c5a];return _0xb27bf3;}function a54_0x5be3(){var _0xe6db1a=['description','3775828aMAtze','35180eqOopF','544228lQwiuI','url','method','21128256KOzjjZ','defineProperties','1425729EBCtfq','184OGejBB','4cyTbHY','7230720plrqfC','1361368knxcul','10OiltnA'];a54_0x5be3=function(){return _0xe6db1a;};return a54_0x5be3();}export function asDryRunResult(_0x50bd28,_0x2e8347){var _0x95d77d=a54_0xb27b;return Object[_0x95d77d(0xed)](_0x50bd28,{'method':{'value':_0x2e8347[_0x95d77d(0xeb)],'enumerable':![]},'url':{'value':_0x2e8347[_0x95d77d(0xea)],'enumerable':![]},..._0x2e8347['description']?{'description':{'value':_0x2e8347[_0x95d77d(0xe6)],'enumerable':![]}}:{}});}
@@ -1 +1 @@
1
- const a55_0x4c22ae=a55_0x242c;function a55_0x3308(){const _0x254393=['a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','1150818tGIIzc','sqlcode','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','Write\x20to\x20the\x20global\x20configuration','POSTGRESQL','App\x20code\x20(e.g.\x20app-xxxxx)','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','skip-connection-test','MANY_TO_MANY','to-label-column','string','8530576uIZDmv','400446jZFUBr','Target\x20DB_TABLE\x20dataset\x20code','global','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','117488QHdYTp','boolean','ONE_TO_ONE','from-dblink-id','Database\x20product\x20type','appcode','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','Target\x20field\x20name','cardinality','1047594lfUpZg','7jPeJra','datasetcode','from-datasetcode','to-datasetcode','ONE_TO_MANY','MANY_TO_ONE','Source\x20DB_TABLE\x20dataset\x20code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','407670vNvZTK','to-column','dbtype','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','number','MYSQL','47580FqGdKf'];a55_0x3308=function(){return _0x254393;};return a55_0x3308();}(function(_0x177b32,_0x19f3c3){const _0x39ba60=a55_0x242c,_0x36a713=_0x177b32();while(!![]){try{const _0x5bf407=-parseInt(_0x39ba60(0xad))/0x1+-parseInt(_0x39ba60(0xba))/0x2+-parseInt(_0x39ba60(0xc9))/0x3+parseInt(_0x39ba60(0xb1))/0x4+-parseInt(_0x39ba60(0xc3))/0x5+-parseInt(_0x39ba60(0xcb))/0x6*(-parseInt(_0x39ba60(0xbb))/0x7)+parseInt(_0x39ba60(0xac))/0x8;if(_0x5bf407===_0x19f3c3)break;else _0x36a713['push'](_0x36a713['shift']());}catch(_0x5ecc9a){_0x36a713['push'](_0x36a713['shift']());}}}(a55_0x3308,0x40e84));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x4c22ae(0xbd),'type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xc1)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':'from-column','type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xd1)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x4c22ae(0xbe),'type':'string','required':!![],'description':a55_0x4c22ae(0xae)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x4c22ae(0xc4),'type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xb8)};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x4c22ae(0xb4),'type':'number','description':'Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted'};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x4c22ae(0xd4),'type':'string','description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x4c22ae(0xb9),'type':'string','enum':[a55_0x4c22ae(0xb3),a55_0x4c22ae(0xbf),a55_0x4c22ae(0xc0),a55_0x4c22ae(0xd3)],'description':a55_0x4c22ae(0xb7)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x4c22ae(0xaf),'type':a55_0x4c22ae(0xb2),'default':![],'description':a55_0x4c22ae(0xce)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x4c22ae(0xca)};export const CODE_FLAG={'name':'code','type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xcd),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x4c22ae(0xbc),'description':a55_0x4c22ae(0xcd)};export const SQLCODE_FLAG={'name':a55_0x4c22ae(0xcc),'type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xc2),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x4c22ae(0xb6),'type':a55_0x4c22ae(0xab),'required':![],'description':a55_0x4c22ae(0xc6)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x4c22ae(0xd0)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x4c22ae(0xc7),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a55_0x4c22ae(0xc5),'type':a55_0x4c22ae(0xab),'required':!![],'description':a55_0x4c22ae(0xb5),'enum':[a55_0x4c22ae(0xc8),a55_0x4c22ae(0xcf)]};function a55_0x242c(_0x13abe8,_0x591ddb){_0x13abe8=_0x13abe8-0xab;const _0x330860=a55_0x3308();let _0x242c71=_0x330860[_0x13abe8];return _0x242c71;}export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x4c22ae(0xd2),'type':a55_0x4c22ae(0xb2),'description':a55_0x4c22ae(0xb0)};
1
+ const a55_0x386190=a55_0x281b;(function(_0x10ed56,_0x5c13d3){const _0x5aab9d=a55_0x281b,_0x12d5c0=_0x10ed56();while(!![]){try{const _0xd282f4=-parseInt(_0x5aab9d(0x1df))/0x1+-parseInt(_0x5aab9d(0x1bc))/0x2*(parseInt(_0x5aab9d(0x1c9))/0x3)+-parseInt(_0x5aab9d(0x1d0))/0x4*(parseInt(_0x5aab9d(0x1c1))/0x5)+parseInt(_0x5aab9d(0x1cc))/0x6*(parseInt(_0x5aab9d(0x1e6))/0x7)+parseInt(_0x5aab9d(0x1dc))/0x8+parseInt(_0x5aab9d(0x1c2))/0x9*(parseInt(_0x5aab9d(0x1d1))/0xa)+parseInt(_0x5aab9d(0x1e3))/0xb*(parseInt(_0x5aab9d(0x1cb))/0xc);if(_0xd282f4===_0x5c13d3)break;else _0x12d5c0['push'](_0x12d5c0['shift']());}catch(_0x5b36d8){_0x12d5c0['push'](_0x12d5c0['shift']());}}}(a55_0x5214,0x1b373));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x386190(0x1c7),'type':a55_0x386190(0x1bb),'required':!![],'description':'Source\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x386190(0x1de),'type':'string','required':!![],'description':a55_0x386190(0x1da)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':'to-datasetcode','type':a55_0x386190(0x1bb),'required':!![],'description':a55_0x386190(0x1c8)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':'to-column','type':'string','required':!![],'description':a55_0x386190(0x1ce)};function a55_0x5214(){const _0xaf735e=['Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','ONE_TO_MANY','ONE_TO_ONE','appcode','from-datasetcode','Target\x20DB_TABLE\x20dataset\x20code','39xFuiwo','dbtype','12WheqhK','2454eEBYca','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','Target\x20field\x20name','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','696NknlsP','408890tGPdUD','global','sqlcode','Write\x20to\x20the\x20global\x20configuration','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','datasetcode','code','MANY_TO_ONE','App\x20code\x20(e.g.\x20app-xxxxx)','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','636720yhEGao','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','from-column','79660RFhmXm','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','cardinality','POSTGRESQL','2135243PAvrUn','MYSQL','boolean','2506RHFElh','from-dblink-id','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','string','27814cPiCqi','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','number','Database\x20product\x20type','skip-connection-test','2560GFwJPL','9tLVGvD'];a55_0x5214=function(){return _0xaf735e;};return a55_0x5214();}export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x386190(0x1e7),'type':a55_0x386190(0x1be),'description':a55_0x386190(0x1ba)};function a55_0x281b(_0x5b3374,_0x1e0fe3){_0x5b3374=_0x5b3374-0x1ba;const _0x5214e2=a55_0x5214();let _0x281b40=_0x5214e2[_0x5b3374];return _0x281b40;}export const CROSS_RELATION_LABEL_FLAG={'name':'to-label-column','type':'string','description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x386190(0x1e1),'type':a55_0x386190(0x1bb),'enum':[a55_0x386190(0x1c5),a55_0x386190(0x1c4),a55_0x386190(0x1d8),'MANY_TO_MANY'],'description':a55_0x386190(0x1bd)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x386190(0x1d2),'type':a55_0x386190(0x1e5),'default':![],'description':a55_0x386190(0x1d4)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x386190(0x1dd)};export const CODE_FLAG={'name':a55_0x386190(0x1d7),'type':'string','required':!![],'description':a55_0x386190(0x1c3),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x386190(0x1d6),'description':a55_0x386190(0x1c3)};export const SQLCODE_FLAG={'name':a55_0x386190(0x1d3),'type':'string','required':!![],'description':a55_0x386190(0x1cf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x386190(0x1db)}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x386190(0x1c6),'type':a55_0x386190(0x1bb),'required':![],'description':a55_0x386190(0x1e0)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x386190(0x1d9)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x386190(0x1be),'required':!![],'description':a55_0x386190(0x1d5)};export const DB_TYPE_FLAG={'name':a55_0x386190(0x1ca),'type':'string','required':!![],'description':a55_0x386190(0x1bf),'enum':[a55_0x386190(0x1e4),a55_0x386190(0x1e2)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x386190(0x1c0),'type':'boolean','description':a55_0x386190(0x1cd)};
@@ -1 +1 @@
1
- (function(_0x1f0391,_0x265176){const _0x333ad9=a56_0x391e,_0x259e2e=_0x1f0391();while(!![]){try{const _0x43f4a0=-parseInt(_0x333ad9(0x93))/0x1+-parseInt(_0x333ad9(0x8a))/0x2+parseInt(_0x333ad9(0x83))/0x3+parseInt(_0x333ad9(0x8b))/0x4*(-parseInt(_0x333ad9(0x91))/0x5)+-parseInt(_0x333ad9(0x87))/0x6*(parseInt(_0x333ad9(0x92))/0x7)+-parseInt(_0x333ad9(0x89))/0x8+parseInt(_0x333ad9(0x88))/0x9;if(_0x43f4a0===_0x265176)break;else _0x259e2e['push'](_0x259e2e['shift']());}catch(_0x2a254e){_0x259e2e['push'](_0x259e2e['shift']());}}}(a56_0xb52b,0x8e273));function a56_0x391e(_0x2b3b09,_0x52d640){_0x2b3b09=_0x2b3b09-0x83;const _0xb52b9e=a56_0xb52b();let _0x391e38=_0xb52b9e[_0x2b3b09];return _0x391e38;}function a56_0xb52b(){const _0x50d44c=['\x20path\x20is\x20required.','File\x20is\x20not\x20a\x20regular\x20file:\x20','size','390OSkzsD','20134935NwWIxp','5127592XEvbJb','802324JlcDaK','67772kmVIHM','validation','trim','\x20MB','File\x20not\x20found:\x20','toFixed','115OIgxEK','52255OSvASn','383953CSYsaU','1938066cecqpC'];a56_0xb52b=function(){return _0x50d44c;};return a56_0xb52b();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x443dc9){const _0x4c2432=a56_0x391e;if(_0x443dc9>=BYTES_PER_MB){const _0x56c0cc=Math['ceil'](_0x443dc9/BYTES_PER_MB*0x64)/0x64;return _0x56c0cc[_0x4c2432(0x90)](0x2)+_0x4c2432(0x8e);}return _0x443dc9+'\x20B';}export function requireDevelopmentUploadFile(_0x7ede34,_0x30c919){const _0x4a1f6a=a56_0x391e,_0x477e3d=_0x7ede34[_0x4a1f6a(0x8d)]();if(!_0x477e3d)throw CliErrors[_0x4a1f6a(0x8c)](_0x30c919+_0x4a1f6a(0x84));if(!existsSync(_0x477e3d))throw CliErrors[_0x4a1f6a(0x8c)](_0x4a1f6a(0x8f)+_0x477e3d);const _0x22fd4a=statSync(_0x477e3d);if(!_0x22fd4a['isFile']())throw CliErrors[_0x4a1f6a(0x8c)](_0x4a1f6a(0x85)+_0x477e3d);if(_0x22fd4a[_0x4a1f6a(0x86)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x4a1f6a(0x8c)]('File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x477e3d+'\x20('+formatBytes(_0x22fd4a['size'])+')');return{'path':_0x477e3d,'size':_0x22fd4a[_0x4a1f6a(0x86)]};}
1
+ (function(_0x148581,_0xdd767e){const _0x4667cf=a56_0x1ce6,_0x21d788=_0x148581();while(!![]){try{const _0x5571eb=parseInt(_0x4667cf(0x13c))/0x1+parseInt(_0x4667cf(0x13f))/0x2+parseInt(_0x4667cf(0x148))/0x3+-parseInt(_0x4667cf(0x13e))/0x4*(parseInt(_0x4667cf(0x139))/0x5)+parseInt(_0x4667cf(0x137))/0x6*(parseInt(_0x4667cf(0x13b))/0x7)+-parseInt(_0x4667cf(0x13a))/0x8*(parseInt(_0x4667cf(0x13d))/0x9)+parseInt(_0x4667cf(0x143))/0xa*(parseInt(_0x4667cf(0x142))/0xb);if(_0x5571eb===_0xdd767e)break;else _0x21d788['push'](_0x21d788['shift']());}catch(_0x1dcd79){_0x21d788['push'](_0x21d788['shift']());}}}(a56_0x140c,0x33e2a));import{existsSync,statSync}from'node:fs';function a56_0x140c(){const _0x149beb=['503904lhSyLj','ceil','195432jNDaRZ','File\x20not\x20found:\x20','30wMylOl','2214520hVRuLP','49aSgYjm','150347vbJAAa','9teCVHQ','235788cBtTZt','371752LxPZxR','validation','size','43538rJTpKv','280otimQA','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20is\x20not\x20a\x20regular\x20file:\x20','\x20path\x20is\x20required.','toFixed'];a56_0x140c=function(){return _0x149beb;};return a56_0x140c();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a56_0x1ce6(_0x162d73,_0x35ac98){_0x162d73=_0x162d73-0x137;const _0x140c4c=a56_0x140c();let _0x1ce6c7=_0x140c4c[_0x162d73];return _0x1ce6c7;}export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x3f66ae){const _0x5c0ef3=a56_0x1ce6;if(_0x3f66ae>=BYTES_PER_MB){const _0x259a07=Math[_0x5c0ef3(0x149)](_0x3f66ae/BYTES_PER_MB*0x64)/0x64;return _0x259a07[_0x5c0ef3(0x147)](0x2)+'\x20MB';}return _0x3f66ae+'\x20B';}export function requireDevelopmentUploadFile(_0x3014a3,_0x249dff){const _0x2bd2dc=a56_0x1ce6,_0x5cd4b1=_0x3014a3['trim']();if(!_0x5cd4b1)throw CliErrors[_0x2bd2dc(0x140)](_0x249dff+_0x2bd2dc(0x146));if(!existsSync(_0x5cd4b1))throw CliErrors['validation'](_0x2bd2dc(0x138)+_0x5cd4b1);const _0x5401a4=statSync(_0x5cd4b1);if(!_0x5401a4['isFile']())throw CliErrors['validation'](_0x2bd2dc(0x145)+_0x5cd4b1);if(_0x5401a4[_0x2bd2dc(0x141)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x2bd2dc(0x140)](_0x2bd2dc(0x144)+_0x5cd4b1+'\x20('+formatBytes(_0x5401a4[_0x2bd2dc(0x141)])+')');return{'path':_0x5cd4b1,'size':_0x5401a4['size']};}
@@ -1 +1 @@
1
- (function(_0x48d6f0,_0x3a956a){const _0x48c593=a57_0x3af1,_0x3b132d=_0x48d6f0();while(!![]){try{const _0x352a37=-parseInt(_0x48c593(0x1d0))/0x1+-parseInt(_0x48c593(0x1db))/0x2*(-parseInt(_0x48c593(0x1d9))/0x3)+-parseInt(_0x48c593(0x1da))/0x4+parseInt(_0x48c593(0x1de))/0x5*(parseInt(_0x48c593(0x1d6))/0x6)+parseInt(_0x48c593(0x1d5))/0x7*(parseInt(_0x48c593(0x1d2))/0x8)+parseInt(_0x48c593(0x1d1))/0x9+-parseInt(_0x48c593(0x1d7))/0xa*(parseInt(_0x48c593(0x1d4))/0xb);if(_0x352a37===_0x3a956a)break;else _0x3b132d['push'](_0x3b132d['shift']());}catch(_0x536e2){_0x3b132d['push'](_0x3b132d['shift']());}}}(a57_0x3e34,0x90fa7));function a57_0x3af1(_0x2d8efb,_0x37ba4b){_0x2d8efb=_0x2d8efb-0x1d0;const _0x3e340e=a57_0x3e34();let _0x3af101=_0x3e340e[_0x2d8efb];return _0x3af101;}export function validateAppcode(_0x42d5b1){const _0x30e74c=a57_0x3af1,_0x1236a1=_0x42d5b1[_0x30e74c(0x1d3)]();if(!_0x1236a1)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x1236a1[_0x30e74c(0x1dc)]>0x64)return{'valid':![],'message':_0x30e74c(0x1dd)};if(!/^[A-Za-z0-9_-]+$/[_0x30e74c(0x1d8)](_0x1236a1))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a57_0x3e34(){const _0x3a1f3a=['2507644Oyeziw','1346ABZRMq','length','App\x20Code\x20cannot\x20exceed\x20100\x20characters','267370LsNolH','578914pUWWgH','6707448fhyhuM','2680xazrtE','trim','231WRqCMh','9233mzuZwK','60FMEZuo','472840udBtBv','test','4773oXcdzH'];a57_0x3e34=function(){return _0x3a1f3a;};return a57_0x3e34();}
1
+ function a57_0x4c73(_0x2d75d1,_0x1c5243){_0x2d75d1=_0x2d75d1-0x6a;const _0x4c348f=a57_0x4c34();let _0x4c7349=_0x4c348f[_0x2d75d1];return _0x4c7349;}(function(_0x16abf3,_0x3fd4b9){const _0x1a9ede=a57_0x4c73,_0x2fdd7c=_0x16abf3();while(!![]){try{const _0x5a8c9d=-parseInt(_0x1a9ede(0x71))/0x1*(parseInt(_0x1a9ede(0x74))/0x2)+parseInt(_0x1a9ede(0x76))/0x3*(-parseInt(_0x1a9ede(0x6f))/0x4)+parseInt(_0x1a9ede(0x70))/0x5+parseInt(_0x1a9ede(0x6d))/0x6+parseInt(_0x1a9ede(0x6b))/0x7*(parseInt(_0x1a9ede(0x6e))/0x8)+parseInt(_0x1a9ede(0x73))/0x9+parseInt(_0x1a9ede(0x72))/0xa;if(_0x5a8c9d===_0x3fd4b9)break;else _0x2fdd7c['push'](_0x2fdd7c['shift']());}catch(_0x375ff4){_0x2fdd7c['push'](_0x2fdd7c['shift']());}}}(a57_0x4c34,0x1a6b6));export function validateAppcode(_0x330141){const _0x5c76b9=a57_0x4c73,_0x547e5e=_0x330141[_0x5c76b9(0x6c)]();if(!_0x547e5e)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x547e5e['length']>0x64)return{'valid':![],'message':_0x5c76b9(0x6a)};if(!/^[A-Za-z0-9_-]+$/[_0x5c76b9(0x75)](_0x547e5e))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a57_0x4c34(){const _0x503d5f=['56911xTHXPH','212400OHOLvt','823095VPQBdy','2gVkwne','test','633fErewI','App\x20Code\x20cannot\x20exceed\x20100\x20characters','609KvqnFR','trim','549036aFhxab','9208ZGyKCv','2956bLHKTy','83580jiEyzo'];a57_0x4c34=function(){return _0x503d5f;};return a57_0x4c34();}
@@ -1 +1 @@
1
- const a58_0xf007fe=a58_0x34aa;(function(_0x2e352d,_0x456765){const _0x69d38=a58_0x34aa,_0x3cb583=_0x2e352d();while(!![]){try{const _0x12a6f0=parseInt(_0x69d38(0x1a2))/0x1*(parseInt(_0x69d38(0x18c))/0x2)+-parseInt(_0x69d38(0x1a0))/0x3*(parseInt(_0x69d38(0x19d))/0x4)+-parseInt(_0x69d38(0x1a5))/0x5*(-parseInt(_0x69d38(0x19b))/0x6)+parseInt(_0x69d38(0x1a8))/0x7+parseInt(_0x69d38(0x190))/0x8*(-parseInt(_0x69d38(0x1a7))/0x9)+-parseInt(_0x69d38(0x199))/0xa+parseInt(_0x69d38(0x19a))/0xb*(parseInt(_0x69d38(0x198))/0xc);if(_0x12a6f0===_0x456765)break;else _0x3cb583['push'](_0x3cb583['shift']());}catch(_0x5c0f1b){_0x3cb583['push'](_0x3cb583['shift']());}}}(a58_0x25bb,0x7e322));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a58_0x34aa(_0x59b8ee,_0x6c4ada){_0x59b8ee=_0x59b8ee-0x188;const _0x25bb08=a58_0x25bb();let _0x34aa26=_0x25bb08[_0x59b8ee];return _0x34aa26;}const LEGACY_DELETABLE_KEYS=new Set([a58_0xf007fe(0x1a9)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp',a58_0xf007fe(0x196)]);async function execute(_0x24f919){const _0x43db08=a58_0xf007fe,_0x25c88c=_0x24f919[_0x43db08(0x1a1)][0x0]?.[_0x43db08(0x19c)]();if(!_0x25c88c)throw CliErrors['validation'](_0x43db08(0x197),_0x43db08(0x18a)+CLI_BIN_NAME+_0x43db08(0x1a6));if(_0x25c88c==='riskLevel')throw CliErrors[_0x43db08(0x195)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x25c88c)&&!EXTRA_DELETABLE_KEYS[_0x43db08(0x1aa)](_0x25c88c)&&!LEGACY_DELETABLE_KEYS[_0x43db08(0x1aa)](_0x25c88c))throw CliErrors[_0x43db08(0x195)](_0x43db08(0x19e)+_0x25c88c+_0x43db08(0x189),_0x43db08(0x19f));const _0x5eed4b=resolveWriteScope({'global':_0x24f919[_0x43db08(0x192)](_0x43db08(0x188))}),_0x2a6550=readScopedConfig(_0x5eed4b),_0x35ce75=Object[_0x43db08(0x18b)][_0x43db08(0x1ab)][_0x43db08(0x194)](_0x2a6550,_0x25c88c);_0x35ce75&&(delete _0x2a6550[_0x25c88c],writeScopedConfig(_0x2a6550,_0x5eed4b));const _0x538ebd=_0x5eed4b===_0x43db08(0x188)?_0x43db08(0x1a3):_0x43db08(0x1a4);return{'ok':!![],'message':_0x35ce75?'✓\x20'+_0x538ebd+'\x20'+_0x25c88c+_0x43db08(0x1ac):'✓\x20'+_0x538ebd+'\x20'+_0x25c88c+'\x20already\x20absent','data':{'key':_0x25c88c,'scope':_0x5eed4b,'changed':_0x35ce75}};}export const configDeleteDefinition={'service':a58_0xf007fe(0x18f),'command':a58_0xf007fe(0x18e),'description':a58_0xf007fe(0x193),'risk':a58_0xf007fe(0x18d),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'key','description':a58_0xf007fe(0x191),'required':!![]}],'flags':[{'name':a58_0xf007fe(0x188),'type':'boolean','description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a58_0x25bb(){const _0x46a228=['inherit','has','hasOwnProperty','\x20deleted','global','\x22\x20is\x20not\x20deletable.','Usage:\x20','prototype','4WldRVH','write','delete','config','136uIeBYy','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','bool','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','call','validation','routing','Missing\x20key\x20argument.','57912cIWwXZ','10200110iHFvUf','2486ltJCZI','4385262CSGpyo','trim','2516444QVEhqY','Top-level\x20key\x20\x22','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','3YCkUdM','args','512528jrrDaQ','Global','Project','5llTYxi','\x20config\x20delete\x20<key>\x20[--global]','372069xjDhbg','155456oFuZbP'];a58_0x25bb=function(){return _0x46a228;};return a58_0x25bb();}
1
+ const a58_0x5279ca=a58_0x5f20;(function(_0x10bd16,_0x5dfec4){const _0x366392=a58_0x5f20,_0x3118d0=_0x10bd16();while(!![]){try{const _0x172bf6=parseInt(_0x366392(0x96))/0x1+parseInt(_0x366392(0xa6))/0x2+parseInt(_0x366392(0x82))/0x3*(parseInt(_0x366392(0x9e))/0x4)+-parseInt(_0x366392(0x87))/0x5*(-parseInt(_0x366392(0x83))/0x6)+parseInt(_0x366392(0x93))/0x7+parseInt(_0x366392(0x8b))/0x8*(parseInt(_0x366392(0x8c))/0x9)+-parseInt(_0x366392(0x8a))/0xa;if(_0x172bf6===_0x5dfec4)break;else _0x3118d0['push'](_0x3118d0['shift']());}catch(_0x481d86){_0x3118d0['push'](_0x3118d0['shift']());}}}(a58_0x3292,0x76834));import{CliErrors}from'../../errors.js';function a58_0x5f20(_0x176f44,_0x654669){_0x176f44=_0x176f44-0x81;const _0x32920d=a58_0x3292();let _0x5f20dd=_0x32920d[_0x176f44];return _0x5f20dd;}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x5279ca(0xa4)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x5279ca(0x8d),a58_0x5279ca(0x99)]);async function execute(_0x168924){const _0x567365=a58_0x5279ca,_0x27151b=_0x168924[_0x567365(0x94)][0x0]?.[_0x567365(0xa2)]();if(!_0x27151b)throw CliErrors[_0x567365(0x89)](_0x567365(0x9b),_0x567365(0xa3)+CLI_BIN_NAME+_0x567365(0x84));if(_0x27151b===_0x567365(0x8f))throw CliErrors['validation'](_0x567365(0xa1));if(!isTopLevelConfigKey(_0x27151b)&&!EXTRA_DELETABLE_KEYS[_0x567365(0x85)](_0x27151b)&&!LEGACY_DELETABLE_KEYS[_0x567365(0x85)](_0x27151b))throw CliErrors[_0x567365(0x89)](_0x567365(0xa0)+_0x27151b+_0x567365(0x9d),_0x567365(0x88));const _0x179bf0=resolveWriteScope({'global':_0x168924[_0x567365(0x9c)](_0x567365(0x95))}),_0x404281=readScopedConfig(_0x179bf0),_0x1e58c7=Object[_0x567365(0x92)][_0x567365(0x86)][_0x567365(0x81)](_0x404281,_0x27151b);_0x1e58c7&&(delete _0x404281[_0x27151b],writeScopedConfig(_0x404281,_0x179bf0));const _0x27bef7=_0x179bf0===_0x567365(0x95)?_0x567365(0x9f):_0x567365(0xa7);return{'ok':!![],'message':_0x1e58c7?'✓\x20'+_0x27bef7+'\x20'+_0x27151b+_0x567365(0x98):'✓\x20'+_0x27bef7+'\x20'+_0x27151b+'\x20already\x20absent','data':{'key':_0x27151b,'scope':_0x179bf0,'changed':_0x1e58c7}};}export const configDeleteDefinition={'service':a58_0x5279ca(0x91),'command':a58_0x5279ca(0x90),'description':a58_0x5279ca(0x9a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0x5279ca(0x8e),'description':a58_0x5279ca(0xa8),'required':!![]}],'flags':[{'name':a58_0x5279ca(0x95),'type':a58_0x5279ca(0xa5),'description':a58_0x5279ca(0x97),'default':![]}],'execute':execute};function a58_0x3292(){const _0x4af4ec=['Global','Top-level\x20key\x20\x22','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','trim','Usage:\x20','inherit','boolean','1494586cXgHaQ','Project','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','call','191847iCBeHo','516npHpVq','\x20config\x20delete\x20<key>\x20[--global]','has','hasOwnProperty','7590nqtFFp','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','validation','28238490McoyJh','24376mQirCI','828oKlzVY','defaultApp','key','riskLevel','delete','config','prototype','5853323qLXjmL','args','global','611484ASDcMN','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','\x20deleted','routing','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','Missing\x20key\x20argument.','bool','\x22\x20is\x20not\x20deletable.','44OXdjry'];a58_0x3292=function(){return _0x4af4ec;};return a58_0x3292();}