@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/README.md +10 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +2 -2
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.js +1 -1
  18. package/lib/auth/login-success-html.js +1 -1
  19. package/lib/auth/logout.js +1 -1
  20. package/lib/cli-flags.js +1 -1
  21. package/lib/cli.js +1 -1
  22. package/lib/commands/api/generate.js +1 -1
  23. package/lib/commands/api/index.js +1 -1
  24. package/lib/commands/api/list.js +1 -1
  25. package/lib/commands/api/pull.js +1 -1
  26. package/lib/commands/api/shared.js +1 -1
  27. package/lib/commands/app/detail.js +1 -1
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/design-context.js +1 -1
  79. package/lib/commands/dataset/design-start.js +1 -1
  80. package/lib/commands/dataset/design-status.js +1 -1
  81. package/lib/commands/dataset/design-sync-retry.js +1 -1
  82. package/lib/commands/dataset/design-sync-status.js +1 -1
  83. package/lib/commands/dataset/design-validate.js +1 -1
  84. package/lib/commands/dataset/detail.js +1 -1
  85. package/lib/commands/dataset/extend-update.js +1 -1
  86. package/lib/commands/dataset/field-restore.js +1 -1
  87. package/lib/commands/dataset/field-update.js +1 -1
  88. package/lib/commands/dataset/generate.js +1 -1
  89. package/lib/commands/dataset/index.js +1 -1
  90. package/lib/commands/dataset/list.js +1 -1
  91. package/lib/commands/dataset/operations.js +1 -1
  92. package/lib/commands/dataset/relation-audit.js +1 -1
  93. package/lib/commands/dataset/relation-create.js +1 -1
  94. package/lib/commands/dataset/relation-delete.js +1 -1
  95. package/lib/commands/dataset/relation-shared.js +1 -1
  96. package/lib/commands/dataset/relation-update.js +1 -1
  97. package/lib/commands/dataset/relations.js +1 -1
  98. package/lib/commands/dataset/rename.js +1 -1
  99. package/lib/commands/dataset/restore.js +1 -1
  100. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  101. package/lib/commands/db/analysis-batching.js +1 -1
  102. package/lib/commands/db/analyze-batch-plan.js +1 -1
  103. package/lib/commands/db/analyze-cancel.js +1 -1
  104. package/lib/commands/db/analyze-start.js +1 -1
  105. package/lib/commands/db/analyze-status.js +1 -1
  106. package/lib/commands/db/create.js +1 -1
  107. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  110. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  111. package/lib/commands/db/delete.js +1 -1
  112. package/lib/commands/db/detail.js +1 -1
  113. package/lib/commands/db/diff-refresh-start.js +1 -1
  114. package/lib/commands/db/diff-refresh-status.js +1 -1
  115. package/lib/commands/db/diff.js +1 -1
  116. package/lib/commands/db/index.js +1 -1
  117. package/lib/commands/db/list.js +1 -1
  118. package/lib/commands/db/shared.js +1 -1
  119. package/lib/commands/db/table-diff-shared.js +1 -1
  120. package/lib/commands/db/tables.js +1 -1
  121. package/lib/commands/db/test.js +1 -1
  122. package/lib/commands/db/update.js +1 -1
  123. package/lib/commands/deployment/index.js +1 -1
  124. package/lib/commands/deployment/sync-all.js +1 -1
  125. package/lib/commands/deployment/sync-jobs.js +1 -1
  126. package/lib/commands/deployment/sync-status.js +1 -1
  127. package/lib/commands/doctor.js +1 -1
  128. package/lib/commands/file/index.js +1 -1
  129. package/lib/commands/flow/create.js +1 -1
  130. package/lib/commands/flow/detail.js +1 -1
  131. package/lib/commands/flow/index.js +1 -1
  132. package/lib/commands/flow/list.js +1 -1
  133. package/lib/commands/flow/page-list.js +1 -1
  134. package/lib/commands/flow/publish.js +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.js +1 -1
  140. package/lib/commands/flow/update.js +1 -1
  141. package/lib/commands/flow/validate.js +1 -1
  142. package/lib/commands/instant-api-policy/current.js +1 -1
  143. package/lib/commands/instant-api-policy/index.js +1 -1
  144. package/lib/commands/instant-api-policy/init.js +1 -1
  145. package/lib/commands/instant-api-policy/publish.js +1 -1
  146. package/lib/commands/instant-api-policy/pull.js +1 -1
  147. package/lib/commands/instant-api-policy/revision.js +1 -1
  148. package/lib/commands/instant-api-policy/revisions.js +1 -1
  149. package/lib/commands/instant-api-policy/rollback.js +1 -1
  150. package/lib/commands/instant-api-policy/shared.js +1 -1
  151. package/lib/commands/instant-api-policy/validate.js +1 -1
  152. package/lib/commands/issue/context.d.ts +3 -0
  153. package/lib/commands/issue/context.js +1 -0
  154. package/lib/commands/issue/index.js +1 -1
  155. package/lib/commands/issue/nudge.js +1 -1
  156. package/lib/commands/issue/report.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  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.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/instant-api-policy/endpoints.js +1 -1
  304. package/lib/core/kb-management-client.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/utils/ai_config.js +1 -1
  355. package/lib/utils/apply-jq-filter.js +1 -1
  356. package/lib/utils/cdn-config.js +1 -1
  357. package/lib/utils/check-sdk-version.js +1 -1
  358. package/lib/utils/cli-version-check.js +1 -1
  359. package/lib/utils/cli-version-policy.js +1 -1
  360. package/lib/utils/config.js +1 -1
  361. package/lib/utils/entity-with-id.js +1 -1
  362. package/lib/utils/file-utils.js +1 -1
  363. package/lib/utils/guides-cdn.js +1 -1
  364. package/lib/utils/http-client.js +1 -1
  365. package/lib/utils/is-non-interactive.js +1 -1
  366. package/lib/utils/logger.js +1 -1
  367. package/lib/utils/params.js +1 -1
  368. package/lib/utils/platform.js +1 -1
  369. package/lib/utils/sleep.js +1 -1
  370. package/lib/utils/template-replacer.js +1 -1
  371. package/lib/utils/update-notice.js +1 -1
  372. package/lib/utils/version.js +1 -1
  373. package/lib/utils/with-active-cookie.js +1 -1
  374. package/lib/utils/write-cli-side-channel.js +1 -1
  375. package/package.json +2 -2
  376. package/skills/rabetbase/SKILL.md +2 -2
  377. package/skills/rabetbase/references/rabetbase-issue-report.md +4 -1
  378. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  379. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  380. package/skills/rabetbase.manifest.json +3 -3
  381. package/lib/commands/issue/shared.d.ts +0 -32
  382. package/lib/commands/issue/shared.js +0 -1
  383. package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
  384. package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
@@ -1 +1 @@
1
- function a44_0x38d5(){const _0x58b1b8=['Incomplete\x20HOOK\x20path:\x20','bool','remoteId','failed','message','would_push','1844604qjNaTq','functions','datasetId','\x20bff\x20detail\x20--id\x20','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','some','runtime\x20cache\x20clear\x20failed','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','failures','delete','every','17648xoSqCf','scriptType','Lock\x20scope\x20for\x20app\x20\x22','cleared','after','functionNode','HOOK','existingHooks','join','\x20failed','startsWith','selectedAppName','\x20uploaded','write','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','require','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','set','runtime\x20cache\x20not\x20needed','\x22\x20not\x20found\x20after\x20ensureLockScope.','string','3645TCTGqY','Force\x20push\x20ignoring\x20hash\x20protection','ENDPOINT','1971708albSbt','test','2490360lRJBJZ','1071942ccWuAt','toISOString','validation','length','has','hash','\x20resolution','filePath','review_remote_and_merge','BFF_REMOTE_VERSION_CHANGED','datasetCode','map','defaultApp','values','version','functionName','operationType','push','beforeScriptId','HOOK_DATASET_NOT_FOUND:','mergedCli','flatMap','attempted','bff','afterScriptId','Local\x20function\x20not\x20found:\x20','Push\x20complete:\x20','filter','force','894deNmMZ','before',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','warnings','name','\x20--format\x20compress','get','apps','scriptsRoot','lockKey','profileName','appCode','description','conflict','7364htXvKz','EXISTING_HOOK_BINDING_PRESERVED','size','lastSync','lockFilePath','currentApp','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','7265776dbhbvO','type','Runtime\x20script\x20cache\x20cleared.','status','No\x20local\x20Backend\x20Function\x20scripts\x20found.','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','utf8','boolean','runtime\x20cache\x20cleared','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','COMMON','Push\x20only\x20this\x20script\x20type','resolutions','alias','str','unchanged'];a44_0x38d5=function(){return _0x58b1b8;};return a44_0x38d5();}const a44_0x38e7fa=a44_0x3b21;(function(_0x325fa6,_0x55d698){const _0x108d24=a44_0x3b21,_0x211edc=_0x325fa6();while(!![]){try{const _0x483616=parseInt(_0x108d24(0xe0))/0x1+-parseInt(_0x108d24(0xb9))/0x2+parseInt(_0x108d24(0xfd))/0x3*(parseInt(_0x108d24(0x10b))/0x4)+parseInt(_0x108d24(0xdf))/0x5+-parseInt(_0x108d24(0xdd))/0x6+-parseInt(_0x108d24(0x112))/0x7+-parseInt(_0x108d24(0xc5))/0x8*(-parseInt(_0x108d24(0xda))/0x9);if(_0x483616===_0x55d698)break;else _0x211edc['push'](_0x211edc['shift']());}catch(_0x46fbb4){_0x211edc['push'](_0x211edc['shift']());}}}(a44_0x38d5,0xb08e6));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';function a44_0x3b21(_0x4b50fb,_0x1d486a){_0x4b50fb=_0x4b50fb-0xa8;const _0x38d503=a44_0x38d5();let _0x3b215d=_0x38d503[_0x4b50fb];return _0x3b215d;}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_0x38e7fa(0xf7),'command':a44_0x38e7fa(0xf1),'description':a44_0x38e7fa(0xd3),'risk':a44_0x38e7fa(0xd2),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x38e7fa(0xd9),'description':a44_0x38e7fa(0xae),'enum':[a44_0x38e7fa(0xad),a44_0x38e7fa(0xdc),a44_0x38e7fa(0xcb)]},{'name':a44_0x38e7fa(0x101),'type':a44_0x38e7fa(0xd9),'description':a44_0x38e7fa(0xd5)},{'name':a44_0x38e7fa(0xfc),'type':a44_0x38e7fa(0xaa),'description':a44_0x38e7fa(0xdb)}],async 'dryRun'(_0x1ee16c){const _0x2a0019=a44_0x38e7fa,_0x1d7b10=loadBffProjectConfig(_0x1ee16c['appCode']),_0x3e7296=await readBffLockFile(_0x1d7b10[_0x2a0019(0x10f)]),{appLock:_0x2f9e9c}=ensureLockScope(_0x3e7296??createEmptyBffLock(),_0x1ee16c[_0x2a0019(0x108)],_0x1d7b10[_0x2a0019(0x105)],_0x2a0019(0xf1)),_0xcf7bfa=await getTargetFunctions(_0x1d7b10,_0x1ee16c),_0x3e2bf4=_0xcf7bfa[_0x2a0019(0xbe)](_0x42da10=>_0x42da10[_0x2a0019(0x113)]===_0x2a0019(0xcb))?await scanLocalBffFunctions(_0x1d7b10,_0x2a0019(0xcb)):_0xcf7bfa,_0x29b1bc=await buildHookMaps(_0x1ee16c['appCode'],_0x1ee16c['apiDir'],_0x3e2bf4,_0x2f9e9c,_0x1ee16c[_0x2a0019(0xd0)]||_0x1ee16c[_0x2a0019(0xf4)]?.[_0x2a0019(0x110)]||_0x1ee16c[_0x2a0019(0xf4)]?.[_0x2a0019(0xec)]),_0x596c5a=_0x1ee16c[_0x2a0019(0xb4)](_0x2a0019(0xfc)),_0x502f54=[];for(const _0x5cb63d of _0xcf7bfa){const _0x128833=await computeFileHash(_0x5cb63d['filePath']),_0x896710=_0x2f9e9c[_0x2a0019(0xba)][_0x5cb63d[_0x2a0019(0x106)]],_0x2c827b=!!_0x896710&&_0x896710[_0x2a0019(0xe5)]===_0x128833,_0x30240f=_0x29b1bc[_0x2a0019(0xaf)][_0x2a0019(0x103)](_0x5cb63d[_0x2a0019(0x106)]),_0x1076ed=!!_0x896710?.['remoteId']&&_0x896710[_0x2a0019(0xee)]==null&&(_0x596c5a||!_0x2c827b),_0x14cbfe=_0x1076ed?missingRemoteVersionConflict(_0x5cb63d,_0x896710):undefined,_0x2c6869=_0x29b1bc[_0x2a0019(0xc2)][_0x2a0019(0xe4)](_0x5cb63d[_0x2a0019(0x106)])?_0x2a0019(0xb6):!_0x596c5a&&_0x2c827b?_0x2a0019(0xb2):_0x14cbfe?_0x2a0019(0x10a):_0x2a0019(0xb8);_0x502f54['push']({'lockKey':_0x5cb63d['lockKey'],'filePath':_0x5cb63d[_0x2a0019(0xe7)],'remoteId':_0x896710?.[_0x2a0019(0xb5)]??null,'mode':_0x896710?.[_0x2a0019(0xb5)]?'update':'create','status':_0x2c6869,..._0x29b1bc[_0x2a0019(0xc2)][_0x2a0019(0xe4)](_0x5cb63d[_0x2a0019(0x106)])?{'error':_0x29b1bc[_0x2a0019(0xc2)][_0x2a0019(0x103)](_0x5cb63d[_0x2a0019(0x106)])}:{},..._0x14cbfe?{'conflict':_0x14cbfe}:{},..._0x29b1bc[_0x2a0019(0xcc)][_0x2a0019(0xe4)](_0x5cb63d[_0x2a0019(0x106)])?{'datasetCode':_0x896710?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x5cb63d[_0x2a0019(0x106)])]}:{},..._0x30240f?{'alias':_0x30240f[_0x2a0019(0xb0)]??null,'datasetCode':_0x30240f[_0x2a0019(0xea)],'operationType':_0x5cb63d['operationType'],'functionNode':_0x5cb63d[_0x2a0019(0xca)],'warnings':_0x30240f['warnings']}:{}});}return{'method':'POST','url':'/api/management/library/scripts/save','body':{'appCode':_0x1ee16c['appCode'],'force':_0x596c5a,'files':_0x502f54,'cacheClearAtRuntime':_0x502f54['some'](_0x3cad88=>_0x3cad88['status']==='would_push'),'cacheClearAtRuntimeTimes':_0x502f54[_0x2a0019(0xbe)](_0x497bff=>_0x497bff[_0x2a0019(0x115)]===_0x2a0019(0xb8))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x502f54[_0x2a0019(0xe3)]+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x273ed6){const _0x479300=a44_0x38e7fa,_0x405bd6=loadBffProjectConfig(_0x273ed6[_0x479300(0x108)]),_0x417c2e=await readBffLockFile(_0x405bd6[_0x479300(0x10f)]),{lockData:_0x399a71,appLock:_0x102832}=ensureLockScope(_0x417c2e??createEmptyBffLock(),_0x273ed6[_0x479300(0x108)],_0x405bd6[_0x479300(0x105)],_0x479300(0xf1)),_0x587046=await getTargetFunctions(_0x405bd6,_0x273ed6);if(_0x587046[_0x479300(0xe3)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x479300(0x116)};const _0x5849be=_0x273ed6['bool'](_0x479300(0xfc)),_0x4fc073=JSON['parse'](JSON['stringify'](_0x399a71)),_0x2afeda=_0x4fc073[_0x479300(0x104)][_0x273ed6[_0x479300(0x108)]];if(!_0x2afeda)throw new Error(_0x479300(0xc7)+_0x273ed6[_0x479300(0x108)]+_0x479300(0xd8));const _0xa618f6=_0x587046[_0x479300(0xbe)](_0x739124=>_0x739124['type']===_0x479300(0xcb))?await scanLocalBffFunctions(_0x405bd6,_0x479300(0xcb)):_0x587046,_0x314658=await buildHookMaps(_0x273ed6[_0x479300(0x108)],_0x273ed6['apiDir'],_0xa618f6,_0x2afeda,_0x273ed6['selectedAppName']||_0x273ed6[_0x479300(0xf4)]?.['currentApp']||_0x273ed6[_0x479300(0xf4)]?.['defaultApp']),_0x5d8db9=[],_0x29bff6=[],_0x38ca5=[],_0x13cf67=[];for(const _0x2ce893 of _0x587046){const _0x5e6d36=_0x314658[_0x479300(0xc2)][_0x479300(0x103)](_0x2ce893['lockKey']);if(_0x5e6d36){_0x13cf67['push']({'lockKey':_0x2ce893[_0x479300(0x106)],'error':_0x5e6d36});continue;}const _0x2a4f1c=await computeFileHash(_0x2ce893[_0x479300(0xe7)]),_0x7d3f6d=_0x2afeda[_0x479300(0xba)][_0x2ce893[_0x479300(0x106)]];if(!_0x5849be&&_0x7d3f6d&&_0x7d3f6d['hash']===_0x2a4f1c){_0x29bff6['push']({'lockKey':_0x2ce893[_0x479300(0x106)],'reason':_0x479300(0xb2)});continue;}if(_0x7d3f6d?.[_0x479300(0xb5)]&&_0x7d3f6d[_0x479300(0xee)]==null){_0x38ca5[_0x479300(0xf1)](missingRemoteVersionConflict(_0x2ce893,_0x7d3f6d));continue;}try{await uploadSingleFunction(_0x273ed6[_0x479300(0x108)],_0x2ce893,_0x2afeda,_0x314658);const _0x42d2ff=_0x2afeda['functions'][_0x2ce893['lockKey']];_0x5d8db9[_0x479300(0xf1)]({'lockKey':_0x2ce893[_0x479300(0x106)],'remoteId':_0x42d2ff?.[_0x479300(0xb5)]??0x0});}catch(_0x19c752){const _0x2b2a73=remoteVersionChangedConflict(_0x2ce893,_0x7d3f6d,_0x19c752);if(_0x2b2a73){_0x38ca5[_0x479300(0xf1)](_0x2b2a73);continue;}_0x13cf67[_0x479300(0xf1)]({'lockKey':_0x2ce893[_0x479300(0x106)],'error':_0x19c752 instanceof Error?_0x19c752[_0x479300(0xb7)]:String(_0x19c752)});}}_0x2afeda[_0x479300(0x10e)]=new Date()[_0x479300(0xe1)](),await writeBffLockFile(_0x405bd6['lockFilePath'],_0x4fc073),await waitForUploadedLockEntries(_0x405bd6[_0x479300(0x10f)],_0x273ed6[_0x479300(0x108)],_0x5d8db9[_0x479300(0xeb)](_0x27cb97=>_0x27cb97[_0x479300(0x106)]));let _0x411bbc={'attempted':![],'cleared':![]};if(_0x5d8db9[_0x479300(0xe3)]>0x0)try{let _0x595500='';for(let _0x7a7b58=0x0;_0x7a7b58<CACHE_CLEAR_ATTEMPTS;_0x7a7b58+=0x1){_0x595500=await clearBffScriptCache(),_0x7a7b58<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x411bbc={'attempted':!![],'cleared':!![],'message':_0x595500||_0x479300(0x114)};}catch(_0x157db4){_0x411bbc={'attempted':!![],'cleared':![],'error':_0x157db4 instanceof Error?_0x157db4[_0x479300(0xb7)]:String(_0x157db4)};}const _0x34298e=_0x13cf67[_0x479300(0xe3)]===0x0&&(_0x411bbc['attempted']?_0x411bbc[_0x479300(0xc8)]:!![]),_0x7f24cc=_0x34298e,_0x4dfba8=_0x411bbc[_0x479300(0xf6)]?_0x411bbc[_0x479300(0xc8)]?_0x479300(0xab):_0x479300(0xbf):_0x479300(0xd7);return{'ok':_0x7f24cc,'data':{'uploaded':_0x5d8db9,'skipped':_0x29bff6,'conflicts':_0x38ca5,'failed':_0x13cf67,'cacheClear':_0x411bbc,'warnings':[...[..._0x314658[_0x479300(0xaf)][_0x479300(0xed)]()]['flatMap'](_0x3a0c07=>_0x3a0c07[_0x479300(0x100)]),...[..._0x314658[_0x479300(0xcc)]]['map'](existingHookWarning)]},'message':formatPushMessage(_0x5d8db9[_0x479300(0xe3)],_0x29bff6[_0x479300(0xe3)],_0x38ca5['length'],_0x13cf67['length'],_0x4dfba8)};}};function missingRemoteVersionConflict(_0x3e5d58,_0x4fdbbf){const _0x1cb4c5=a44_0x38e7fa;return remoteVersionConflict(_0x3e5d58,_0x4fdbbf,'BFF_REMOTE_VERSION_MISSING',_0x1cb4c5(0xa8));}function remoteVersionChangedConflict(_0x36a818,_0x524d91,_0x58610e){const _0x29460d=a44_0x38e7fa;if(!_0x524d91?.[_0x29460d(0xb5)]||_0x524d91[_0x29460d(0xee)]==null||!isRemoteVersionConflict(_0x58610e))return undefined;return remoteVersionConflict(_0x36a818,_0x524d91,_0x29460d(0xe9),'Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.');}function remoteVersionConflict(_0x1e55fa,_0x591c2a,_0xa597c8,_0x5180f2){const _0x42ed2d=a44_0x38e7fa;return{'code':_0xa597c8,'lockKey':_0x1e55fa[_0x42ed2d(0x106)],'filePath':_0x1e55fa[_0x42ed2d(0xe7)],'remoteId':_0x591c2a[_0x42ed2d(0xb5)],..._0x591c2a[_0x42ed2d(0xee)]!=null?{'expectedVersion':_0x591c2a['version']}:{},'message':_0x5180f2,'nextAction':{'action':_0x42ed2d(0xe8),'command':CLI_BIN_NAME+_0x42ed2d(0xbc)+_0x591c2a[_0x42ed2d(0xb5)]+_0x42ed2d(0x102),'requiresReview':!![],'message':'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.'}};}function isRemoteVersionConflict(_0x1deb71){const _0x573bdf=a44_0x38e7fa,_0x108340=_0x1deb71 instanceof Error?_0x1deb71['message']:String(_0x1deb71),_0x3b9c29=getPlatformErrorCode(_0x1deb71)??'';return[_0x108340,_0x3b9c29]['some'](_0x1e0981=>/(?: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[_0x573bdf(0xde)](_0x1e0981));}function formatPushMessage(_0x5e6d6d,_0x4b5457,_0x27fca3,_0x32124d,_0x545434){const _0x3d6410=a44_0x38e7fa,_0x21a47c=[_0x3d6410(0xfa)+_0x5e6d6d+_0x3d6410(0xd1),_0x4b5457+'\x20skipped'];_0x27fca3>0x0&&_0x21a47c[_0x3d6410(0xf1)](_0x27fca3+'\x20conflict'+(_0x27fca3===0x1?'':'s')+'\x20'+(_0x27fca3===0x1?'requires':_0x3d6410(0xd4))+_0x3d6410(0xe6));if(_0x32124d>0x0)_0x21a47c[_0x3d6410(0xf1)](_0x32124d+_0x3d6410(0xce));return _0x21a47c[_0x3d6410(0xf1)](_0x545434),_0x21a47c[_0x3d6410(0xcd)](',\x20');}async function getTargetFunctions(_0x2e5c00,_0x38c227){const _0x47dbc7=a44_0x38e7fa,_0x190821=_0x38c227['str'](_0x47dbc7(0x113)),_0x30d54b=_0x38c227[_0x47dbc7(0xb1)]('name'),_0x41b5f6=normalizeBffType(_0x190821)??undefined;if(_0x30d54b&&!_0x41b5f6)throw CliErrors[_0x47dbc7(0xe2)](_0x47dbc7(0xc0));const _0x56f5d3=await scanLocalBffFunctions(_0x2e5c00,_0x41b5f6);if(_0x30d54b){const _0xb59273=_0x56f5d3['filter'](_0x3e285e=>_0x3e285e[_0x47dbc7(0x101)]===_0x30d54b);if(_0xb59273['length']===0x0)throw CliErrors[_0x47dbc7(0xe2)](_0x47dbc7(0xf9)+_0x41b5f6+'/'+_0x30d54b);return _0xb59273;}return _0x56f5d3;}function existingHookWarning(_0x55e7bd){const _0x3ac694=a44_0x38e7fa;return{'code':_0x3ac694(0x10c),'lockKey':_0x55e7bd,'message':_0x3ac694(0x111)};}async function buildHookMaps(_0x246d16,_0x4424fc,_0x520fa6,_0x1fdd79,_0x59b30b){const _0x4eeb2b=a44_0x38e7fa,_0x376887=_0x520fa6[_0x4eeb2b(0xbe)](_0x52a868=>_0x52a868[_0x4eeb2b(0x113)]==='HOOK');if(!_0x376887)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x2dd79b=resolveApiModelSource(_0x4424fc,_0x246d16,_0x59b30b),_0x12e2d9=loadAliasMap(_0x4424fc,undefined,_0x2dd79b['filePath'],_0x2dd79b[_0x4eeb2b(0x107)]);assertUnambiguousHookAliases(_0x12e2d9);const _0x522f6d=[..._0x12e2d9[_0x4eeb2b(0xeb)](_0x47b6c1=>[_0x47b6c1[_0x4eeb2b(0xb0)],_0x47b6c1[_0x4eeb2b(0xea)]]),...trackedHookDirectoryMappings(_0x1fdd79)[_0x4eeb2b(0xeb)](_0x5a0c01=>[_0x5a0c01[_0x4eeb2b(0xb0)],_0x5a0c01['datasetCode']])],_0x2cce9c=await listDatasets(_0x246d16);assertUnambiguousHookDirectoryMappings(_0x522f6d[_0x4eeb2b(0xeb)](([_0x55a6d5,_0x4fc2da])=>({'alias':_0x55a6d5,'datasetCode':_0x4fc2da})));const _0x2ce46b=buildHookDirectoryIndexes(_0x2cce9c,_0x522f6d),_0x1e84e8=new Map(),_0x5ef034=preflightPushHookDirectories(_0x520fa6,_0x1fdd79,_0x2ce46b,_0x1e84e8),_0x4badb6=new Set(),_0x4b53e3=_0x520fa6[_0x4eeb2b(0xfb)](_0x29e121=>_0x1e84e8[_0x4eeb2b(0x103)](_0x29e121[_0x4eeb2b(0x106)])?.[_0x4eeb2b(0xcf)](_0x4eeb2b(0xf3))&&_0x1fdd79[_0x4eeb2b(0xba)][_0x29e121[_0x4eeb2b(0x106)]]?.[_0x4eeb2b(0xb5)]&&_0x1fdd79[_0x4eeb2b(0xba)][_0x29e121[_0x4eeb2b(0x106)]]?.['datasetCode']);if(_0x4b53e3['length']>0x0){let _0x49c30c;try{_0x49c30c=await getBffScriptStatistics(_0x246d16);}catch(_0x53b0f5){for(const _0x3aee17 of _0x4b53e3)_0x1e84e8[_0x4eeb2b(0xd6)](_0x3aee17[_0x4eeb2b(0x106)],_0x4eeb2b(0xbd)+(_0x53b0f5 instanceof Error?_0x53b0f5[_0x4eeb2b(0xb7)]:String(_0x53b0f5)));return{'resolutions':_0x5ef034,'failures':_0x1e84e8,'existingHooks':_0x4badb6};}for(const _0x1c98cd of _0x4b53e3){const _0x501ea9=_0x1fdd79[_0x4eeb2b(0xba)][_0x1c98cd['lockKey']];try{const _0x292d63=new Set(_0x520fa6[_0x4eeb2b(0xfb)](_0x139139=>_0x139139[_0x4eeb2b(0x113)]===_0x4eeb2b(0xcb)&&_0x1fdd79['functions'][_0x139139[_0x4eeb2b(0x106)]]?.['datasetCode']===_0x501ea9[_0x4eeb2b(0xea)])[_0x4eeb2b(0xeb)](_0x148a9c=>_0x148a9c['alias']));if(_0x292d63[_0x4eeb2b(0x10d)]>0x1)throw CliErrors['validation'](_0x4eeb2b(0xac));const _0x3a056b=_0x49c30c[_0x4eeb2b(0xf5)](_0x597742=>[{'datasetCode':_0x597742[_0x4eeb2b(0xea)],'operationType':snakeToCamel(_0x597742[_0x4eeb2b(0xf0)]),'functionNode':_0x4eeb2b(0xfe),'id':_0x597742[_0x4eeb2b(0xf2)]},{'datasetCode':_0x597742[_0x4eeb2b(0xea)],'operationType':snakeToCamel(_0x597742[_0x4eeb2b(0xf0)]),'functionNode':_0x4eeb2b(0xc9),'id':_0x597742[_0x4eeb2b(0xf8)]}])[_0x4eeb2b(0xfb)](_0x53fa8c=>_0x53fa8c['id']===_0x501ea9['remoteId']),_0x3e6c8e=await getBffScriptInfo(_0x501ea9[_0x4eeb2b(0xb5)]);if(_0x3e6c8e['id']!==_0x501ea9['remoteId']||_0x3e6c8e['appCode']!==_0x246d16||_0x3e6c8e[_0x4eeb2b(0xc6)]!==_0x4eeb2b(0xcb)||_0x3e6c8e[_0x4eeb2b(0xef)]!==_0x1c98cd[_0x4eeb2b(0x101)]||_0x501ea9['version']==null||_0x3e6c8e['version']!==_0x501ea9[_0x4eeb2b(0xee)]||_0x3a056b[_0x4eeb2b(0xe3)]!==0x1||_0x3a056b[0x0][_0x4eeb2b(0xea)]!==_0x501ea9[_0x4eeb2b(0xea)]||_0x3a056b[0x0][_0x4eeb2b(0xf0)]!==_0x1c98cd['operationType']||_0x3a056b[0x0][_0x4eeb2b(0xca)]!==_0x1c98cd[_0x4eeb2b(0xca)]||_0x501ea9[_0x4eeb2b(0xf0)]!==_0x1c98cd[_0x4eeb2b(0xf0)]||_0x501ea9[_0x4eeb2b(0xca)]!==_0x1c98cd[_0x4eeb2b(0xca)])throw CliErrors[_0x4eeb2b(0xe2)](_0x4eeb2b(0xc1));_0x4badb6['add'](_0x1c98cd[_0x4eeb2b(0x106)]),_0x1e84e8[_0x4eeb2b(0xc3)](_0x1c98cd[_0x4eeb2b(0x106)]);}catch(_0xb90ae7){_0x1e84e8['set'](_0x1c98cd[_0x4eeb2b(0x106)],_0xb90ae7 instanceof Error?_0xb90ae7[_0x4eeb2b(0xb7)]:String(_0xb90ae7));}}}return{'resolutions':_0x5ef034,'failures':_0x1e84e8,'existingHooks':_0x4badb6};}async function uploadSingleFunction(_0x21d9b8,_0x35978e,_0x2c58cf,_0x2249dc){const _0x22f88a=a44_0x38e7fa,_0x123e96=await readFile(_0x35978e['filePath'],_0x22f88a(0xa9)),_0x1014fb=await computeFileHash(_0x35978e['filePath']),_0x1b5c7d=_0x2c58cf[_0x22f88a(0xba)][_0x35978e[_0x22f88a(0x106)]];if(_0x1b5c7d?.[_0x22f88a(0xb5)]&&_0x1b5c7d['version']==null)throw CliErrors[_0x22f88a(0xe2)](_0x35978e[_0x22f88a(0x106)]+_0x22f88a(0xff));let _0x54c9c6=extractScriptDescription(_0x123e96);if(!_0x54c9c6&&_0x1b5c7d?.[_0x22f88a(0xb5)]){const _0x4bd94f=await getBffScriptInfo(_0x1b5c7d[_0x22f88a(0xb5)]);_0x54c9c6=_0x4bd94f[_0x22f88a(0x109)]||undefined;}const _0x1278bd={'appCode':_0x21d9b8,'functionName':_0x35978e[_0x22f88a(0x101)],'scriptType':_0x35978e['type'],'scriptContent':_0x123e96};if(_0x1b5c7d?.[_0x22f88a(0xb5)])_0x1278bd['id']=_0x1b5c7d[_0x22f88a(0xb5)];if(_0x1b5c7d?.['version']!=null)_0x1278bd['version']=_0x1b5c7d[_0x22f88a(0xee)];if(_0x54c9c6)_0x1278bd['description']=_0x54c9c6;if(_0x35978e[_0x22f88a(0x113)]===_0x22f88a(0xcb)){const _0x1cb8e1=_0x2249dc[_0x22f88a(0xaf)]['get'](_0x35978e[_0x22f88a(0x106)]);if(!_0x1cb8e1&&!_0x2249dc['existingHooks']['has'](_0x35978e[_0x22f88a(0x106)])||!_0x35978e[_0x22f88a(0xf0)]||!_0x35978e[_0x22f88a(0xca)])throw CliErrors[_0x22f88a(0xe2)](_0x22f88a(0xb3)+_0x35978e[_0x22f88a(0x106)]);_0x1cb8e1&&(_0x1278bd[_0x22f88a(0xbb)]=_0x1cb8e1['dataset']['id'],_0x1278bd[_0x22f88a(0xf0)]=_0x35978e[_0x22f88a(0xf0)]),_0x1278bd[_0x22f88a(0xca)]=_0x35978e[_0x22f88a(0xca)];}const _0x3358bd=await saveBffScript(_0x1278bd),_0x2c3942=_0x3358bd['id'],_0x390f35=_0x3358bd['script']??await getBffScriptInfo(_0x2c3942),_0x5751d0={'hash':_0x1014fb,'remoteId':_0x2c3942,'version':_0x390f35[_0x22f88a(0xee)]};if(_0x35978e[_0x22f88a(0x113)]===_0x22f88a(0xcb)){const _0x4b4660=_0x2249dc['resolutions'][_0x22f88a(0x103)](_0x35978e[_0x22f88a(0x106)]);if(!_0x4b4660){_0x2c58cf[_0x22f88a(0xba)][_0x35978e[_0x22f88a(0x106)]]={..._0x1b5c7d,..._0x5751d0};return;}_0x5751d0['alias']=_0x4b4660['alias']??_0x1b5c7d?.[_0x22f88a(0xb0)],_0x5751d0[_0x22f88a(0xea)]=_0x4b4660[_0x22f88a(0xea)],_0x5751d0[_0x22f88a(0xf0)]=_0x35978e['operationType'],_0x5751d0[_0x22f88a(0xca)]=_0x35978e[_0x22f88a(0xca)];}_0x2c58cf[_0x22f88a(0xba)][_0x35978e[_0x22f88a(0x106)]]=_0x5751d0;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x12fb5e,_0x3e6c86,_0x50cd58){const _0x26d342=a44_0x38e7fa;if(_0x50cd58['length']===0x0)return;for(let _0x58d089=0x0;_0x58d089<LOCK_SETTLE_RETRY_COUNT;_0x58d089+=0x1){const _0x3ac829=await readBffLockFile(_0x12fb5e),_0x77a8f7=_0x3ac829?.[_0x26d342(0x104)]?.[_0x3e6c86]?.['functions']??{},_0x29425e=_0x50cd58[_0x26d342(0xc4)](_0x175754=>!!_0x77a8f7[_0x175754]?.['remoteId']);if(_0x29425e)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x26d342(0x117)+_0x50cd58[_0x26d342(0xcd)](',\x20')+'.');}
1
+ const a44_0x9ef2f9=a44_0x168c;(function(_0x2f9e3b,_0x459e85){const _0x2320c6=a44_0x168c,_0xf9de7=_0x2f9e3b();while(!![]){try{const _0x2489f5=-parseInt(_0x2320c6(0xe0))/0x1*(parseInt(_0x2320c6(0x11c))/0x2)+parseInt(_0x2320c6(0xca))/0x3+parseInt(_0x2320c6(0xfd))/0x4+-parseInt(_0x2320c6(0xff))/0x5*(parseInt(_0x2320c6(0xd5))/0x6)+-parseInt(_0x2320c6(0x112))/0x7+-parseInt(_0x2320c6(0xcd))/0x8+parseInt(_0x2320c6(0xef))/0x9;if(_0x2489f5===_0x459e85)break;else _0xf9de7['push'](_0xf9de7['shift']());}catch(_0x2ad073){_0xf9de7['push'](_0xf9de7['shift']());}}}(a44_0x5c97,0xe44e7));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_0x9ef2f9(0xe2),'command':a44_0x9ef2f9(0xd4),'description':'Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','risk':a44_0x9ef2f9(0x104),'structuredErrors':!![],'flags':[{'name':a44_0x9ef2f9(0xc0),'type':'string','description':a44_0x9ef2f9(0xd0),'enum':[a44_0x9ef2f9(0xd8),'ENDPOINT',a44_0x9ef2f9(0x101)]},{'name':a44_0x9ef2f9(0xc2),'type':a44_0x9ef2f9(0x103),'description':a44_0x9ef2f9(0xdf)},{'name':a44_0x9ef2f9(0xb9),'type':'boolean','description':a44_0x9ef2f9(0xe9)}],async 'dryRun'(_0x1fc4be){const _0x3ef70a=a44_0x9ef2f9,_0x2008fd=loadBffProjectConfig(_0x1fc4be['appCode']),_0x557db6=await readBffLockFile(_0x2008fd['lockFilePath']),{appLock:_0x193ce1}=ensureLockScope(_0x557db6??createEmptyBffLock(),_0x1fc4be[_0x3ef70a(0xfc)],_0x2008fd[_0x3ef70a(0xc4)],_0x3ef70a(0xd4)),_0x23911d=await getTargetFunctions(_0x2008fd,_0x1fc4be),_0x21ef72=_0x23911d[_0x3ef70a(0xe7)](_0x498432=>_0x498432['type']===_0x3ef70a(0x101))?await scanLocalBffFunctions(_0x2008fd,_0x3ef70a(0x101)):_0x23911d,_0x4aac5e=await buildHookMaps(_0x1fc4be[_0x3ef70a(0xfc)],_0x1fc4be[_0x3ef70a(0xf5)],_0x21ef72,_0x193ce1,_0x1fc4be[_0x3ef70a(0x114)]||_0x1fc4be[_0x3ef70a(0x121)]?.['currentApp']||_0x1fc4be[_0x3ef70a(0x121)]?.[_0x3ef70a(0x106)]),_0x9d6316=_0x1fc4be[_0x3ef70a(0xf4)](_0x3ef70a(0xb9)),_0x2a1cb0=[];for(const _0x4f986a of _0x23911d){const _0x11a1e1=await computeFileHash(_0x4f986a[_0x3ef70a(0xf7)]),_0x5d8146=_0x193ce1[_0x3ef70a(0x124)][_0x4f986a['lockKey']],_0x1b60e5=!!_0x5d8146&&_0x5d8146[_0x3ef70a(0xcf)]===_0x11a1e1,_0x4db636=_0x4aac5e[_0x3ef70a(0x108)][_0x3ef70a(0xc5)](_0x4f986a[_0x3ef70a(0xfe)]),_0x3b30ac=!!_0x5d8146?.['remoteId']&&_0x5d8146[_0x3ef70a(0xf2)]==null&&(_0x9d6316||!_0x1b60e5),_0x2bf0b3=_0x3b30ac?missingRemoteVersionConflict(_0x4f986a,_0x5d8146):undefined,_0xa44df3=_0x4aac5e[_0x3ef70a(0x125)][_0x3ef70a(0x119)](_0x4f986a[_0x3ef70a(0xfe)])?_0x3ef70a(0x10d):!_0x9d6316&&_0x1b60e5?'unchanged':_0x2bf0b3?_0x3ef70a(0x120):_0x3ef70a(0x107);_0x2a1cb0[_0x3ef70a(0xd4)]({'lockKey':_0x4f986a[_0x3ef70a(0xfe)],'filePath':_0x4f986a[_0x3ef70a(0xf7)],'remoteId':_0x5d8146?.['remoteId']??null,'mode':_0x5d8146?.[_0x3ef70a(0x10c)]?'update':'create','status':_0xa44df3,..._0x4aac5e['failures']['has'](_0x4f986a[_0x3ef70a(0xfe)])?{'error':_0x4aac5e['failures'][_0x3ef70a(0xc5)](_0x4f986a['lockKey'])}:{},..._0x2bf0b3?{'conflict':_0x2bf0b3}:{},..._0x4aac5e[_0x3ef70a(0xbf)][_0x3ef70a(0x119)](_0x4f986a[_0x3ef70a(0xfe)])?{'datasetCode':_0x5d8146?.[_0x3ef70a(0xd1)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x4f986a[_0x3ef70a(0xfe)])]}:{},..._0x4db636?{'alias':_0x4db636[_0x3ef70a(0xc3)]??null,'datasetCode':_0x4db636['datasetCode'],'operationType':_0x4f986a[_0x3ef70a(0x11e)],'functionNode':_0x4f986a[_0x3ef70a(0xe8)],'warnings':_0x4db636['warnings']}:{}});}return{'method':_0x3ef70a(0x111),'url':_0x3ef70a(0x10f),'body':{'appCode':_0x1fc4be[_0x3ef70a(0xfc)],'force':_0x9d6316,'files':_0x2a1cb0,'cacheClearAtRuntime':_0x2a1cb0['some'](_0x233fb1=>_0x233fb1[_0x3ef70a(0xed)]===_0x3ef70a(0x107)),'cacheClearAtRuntimeTimes':_0x2a1cb0[_0x3ef70a(0xe7)](_0x47ba98=>_0x47ba98[_0x3ef70a(0xed)]===_0x3ef70a(0x107))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x3ef70a(0xf3)+_0x2a1cb0[_0x3ef70a(0xba)]+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x535fed){const _0x4716d9=a44_0x9ef2f9,_0xebee8a=loadBffProjectConfig(_0x535fed[_0x4716d9(0xfc)]),_0x1c9167=await readBffLockFile(_0xebee8a[_0x4716d9(0xf6)]),{lockData:_0x462525,appLock:_0x2e8ba0}=ensureLockScope(_0x1c9167??createEmptyBffLock(),_0x535fed[_0x4716d9(0xfc)],_0xebee8a[_0x4716d9(0xc4)],_0x4716d9(0xd4)),_0x2c9177=await getTargetFunctions(_0xebee8a,_0x535fed);if(_0x2c9177[_0x4716d9(0xba)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x4716d9(0xea)};const _0x2b7d75=_0x535fed[_0x4716d9(0xf4)](_0x4716d9(0xb9)),_0xcee7e5=JSON[_0x4716d9(0x122)](JSON[_0x4716d9(0xec)](_0x462525)),_0x6e6959=_0xcee7e5['apps'][_0x535fed['appCode']];if(!_0x6e6959)throw new Error(_0x4716d9(0xbe)+_0x535fed[_0x4716d9(0xfc)]+_0x4716d9(0x113));const _0x3c22c0=_0x2c9177[_0x4716d9(0xe7)](_0x3fcac8=>_0x3fcac8[_0x4716d9(0xc0)]===_0x4716d9(0x101))?await scanLocalBffFunctions(_0xebee8a,'HOOK'):_0x2c9177,_0x242639=await buildHookMaps(_0x535fed[_0x4716d9(0xfc)],_0x535fed[_0x4716d9(0xf5)],_0x3c22c0,_0x6e6959,_0x535fed[_0x4716d9(0x114)]||_0x535fed[_0x4716d9(0x121)]?.[_0x4716d9(0xf1)]||_0x535fed[_0x4716d9(0x121)]?.[_0x4716d9(0x106)]),_0x28d07c=[],_0x23d3e2=[],_0x36e0e0=[],_0x200cc7=[];for(const _0x44cdc2 of _0x2c9177){const _0x38b64b=_0x242639[_0x4716d9(0x125)][_0x4716d9(0xc5)](_0x44cdc2[_0x4716d9(0xfe)]);if(_0x38b64b){_0x200cc7['push']({'lockKey':_0x44cdc2['lockKey'],'error':_0x38b64b});continue;}const _0x3ef8fa=await computeFileHash(_0x44cdc2[_0x4716d9(0xf7)]),_0x510ab6=_0x6e6959['functions'][_0x44cdc2[_0x4716d9(0xfe)]];if(!_0x2b7d75&&_0x510ab6&&_0x510ab6[_0x4716d9(0xcf)]===_0x3ef8fa){_0x23d3e2[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2[_0x4716d9(0xfe)],'reason':_0x4716d9(0xb7)});continue;}if(_0x510ab6?.['remoteId']&&_0x510ab6[_0x4716d9(0xf2)]==null){_0x36e0e0[_0x4716d9(0xd4)](missingRemoteVersionConflict(_0x44cdc2,_0x510ab6));continue;}try{await uploadSingleFunction(_0x535fed[_0x4716d9(0xfc)],_0x44cdc2,_0x6e6959,_0x242639);const _0x10ffaf=_0x6e6959['functions'][_0x44cdc2[_0x4716d9(0xfe)]];_0x28d07c[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2['lockKey'],'remoteId':_0x10ffaf?.[_0x4716d9(0x10c)]??0x0});}catch(_0x18764a){const _0x2f3e43=remoteVersionChangedConflict(_0x44cdc2,_0x510ab6,_0x18764a);if(_0x2f3e43){_0x36e0e0[_0x4716d9(0xd4)](_0x2f3e43);continue;}_0x200cc7[_0x4716d9(0xd4)]({'lockKey':_0x44cdc2[_0x4716d9(0xfe)],'error':_0x18764a instanceof Error?_0x18764a[_0x4716d9(0xfb)]:String(_0x18764a)});}}_0x6e6959['lastSync']=new Date()[_0x4716d9(0xcb)](),await writeBffLockFile(_0xebee8a[_0x4716d9(0xf6)],_0xcee7e5),await waitForUploadedLockEntries(_0xebee8a[_0x4716d9(0xf6)],_0x535fed[_0x4716d9(0xfc)],_0x28d07c[_0x4716d9(0x11f)](_0x564340=>_0x564340[_0x4716d9(0xfe)]));let _0x189305={'attempted':![],'cleared':![]};if(_0x28d07c[_0x4716d9(0xba)]>0x0)try{let _0x2b0fea='';for(let _0x11b3a3=0x0;_0x11b3a3<CACHE_CLEAR_ATTEMPTS;_0x11b3a3+=0x1){_0x2b0fea=await clearBffScriptCache(),_0x11b3a3<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x189305={'attempted':!![],'cleared':!![],'message':_0x2b0fea||_0x4716d9(0xf8)};}catch(_0x52802b){_0x189305={'attempted':!![],'cleared':![],'error':_0x52802b instanceof Error?_0x52802b[_0x4716d9(0xfb)]:String(_0x52802b)};}const _0x26a2ac=_0x200cc7[_0x4716d9(0xba)]===0x0&&(_0x189305['attempted']?_0x189305[_0x4716d9(0xd9)]:!![]),_0x1e8b7e=_0x26a2ac,_0x160e05=_0x189305['attempted']?_0x189305[_0x4716d9(0xd9)]?_0x4716d9(0x117):_0x4716d9(0xe5):_0x4716d9(0x11d);return{'ok':_0x1e8b7e,'data':{'uploaded':_0x28d07c,'skipped':_0x23d3e2,'conflicts':_0x36e0e0,'failed':_0x200cc7,'cacheClear':_0x189305,'warnings':[...[..._0x242639[_0x4716d9(0x108)][_0x4716d9(0x118)]()][_0x4716d9(0x102)](_0xacf0a4=>_0xacf0a4[_0x4716d9(0xf0)]),...[..._0x242639[_0x4716d9(0xbf)]][_0x4716d9(0x11f)](existingHookWarning)]},'message':formatPushMessage(_0x28d07c[_0x4716d9(0xba)],_0x23d3e2['length'],_0x36e0e0[_0x4716d9(0xba)],_0x200cc7[_0x4716d9(0xba)],_0x160e05)};}};function missingRemoteVersionConflict(_0x1beb7c,_0x3d29c2){const _0x35142c=a44_0x9ef2f9;return remoteVersionConflict(_0x1beb7c,_0x3d29c2,_0x35142c(0xc6),_0x35142c(0x110));}function remoteVersionChangedConflict(_0x567ad5,_0x5b3e90,_0x38ed28){const _0x6330c=a44_0x9ef2f9;if(!_0x5b3e90?.[_0x6330c(0x10c)]||_0x5b3e90['version']==null||!isRemoteVersionConflict(_0x38ed28))return undefined;return remoteVersionConflict(_0x567ad5,_0x5b3e90,_0x6330c(0xbc),_0x6330c(0xe4));}function remoteVersionConflict(_0x23daf3,_0xa88b6f,_0x288a66,_0x5cf315){const _0x584fa5=a44_0x9ef2f9;return{'code':_0x288a66,'lockKey':_0x23daf3[_0x584fa5(0xfe)],'filePath':_0x23daf3[_0x584fa5(0xf7)],'remoteId':_0xa88b6f[_0x584fa5(0x10c)],..._0xa88b6f[_0x584fa5(0xf2)]!=null?{'expectedVersion':_0xa88b6f[_0x584fa5(0xf2)]}:{},'message':_0x5cf315,'nextAction':{'action':_0x584fa5(0xd2),'command':CLI_BIN_NAME+'\x20bff\x20detail\x20--id\x20'+_0xa88b6f[_0x584fa5(0x10c)]+'\x20--format\x20compress','requiresReview':!![],'message':_0x584fa5(0xd7)}};}function isRemoteVersionConflict(_0x505130){const _0x3dba38=a44_0x9ef2f9,_0x18afd0=_0x505130 instanceof Error?_0x505130[_0x3dba38(0xfb)]:String(_0x505130),_0x5d9a5d=getPlatformErrorCode(_0x505130)??'';return[_0x18afd0,_0x5d9a5d][_0x3dba38(0xe7)](_0xef4140=>/(?: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[_0x3dba38(0xd3)](_0xef4140));}function a44_0x168c(_0x4f6079,_0x4f778d){_0x4f6079=_0x4f6079-0xb7;const _0x5c974e=a44_0x5c97();let _0x168c39=_0x5c974e[_0x4f6079];return _0x168c39;}function formatPushMessage(_0x1403e1,_0x383472,_0x90600d,_0x34d093,_0x5aaff1){const _0x1ee06b=a44_0x9ef2f9,_0x3302=[_0x1ee06b(0xdb)+_0x1403e1+_0x1ee06b(0xe3),_0x383472+_0x1ee06b(0xcc)];_0x90600d>0x0&&_0x3302[_0x1ee06b(0xd4)](_0x90600d+_0x1ee06b(0xc9)+(_0x90600d===0x1?'':'s')+'\x20'+(_0x90600d===0x1?_0x1ee06b(0xf9):_0x1ee06b(0xfa))+_0x1ee06b(0x11b));if(_0x34d093>0x0)_0x3302[_0x1ee06b(0xd4)](_0x34d093+_0x1ee06b(0xde));return _0x3302[_0x1ee06b(0xd4)](_0x5aaff1),_0x3302['join'](',\x20');}async function getTargetFunctions(_0x27262a,_0x3ef46a){const _0x25cd42=a44_0x9ef2f9,_0x2ca9e4=_0x3ef46a['str'](_0x25cd42(0xc0)),_0x5f0939=_0x3ef46a[_0x25cd42(0xc8)](_0x25cd42(0xc2)),_0x531485=normalizeBffType(_0x2ca9e4)??undefined;if(_0x5f0939&&!_0x531485)throw CliErrors[_0x25cd42(0x115)](_0x25cd42(0x116));const _0x418a6b=await scanLocalBffFunctions(_0x27262a,_0x531485);if(_0x5f0939){const _0x2f55fa=_0x418a6b[_0x25cd42(0xd6)](_0x571a5b=>_0x571a5b[_0x25cd42(0xc2)]===_0x5f0939);if(_0x2f55fa['length']===0x0)throw CliErrors['validation'](_0x25cd42(0xdd)+_0x531485+'/'+_0x5f0939);return _0x2f55fa;}return _0x418a6b;}function existingHookWarning(_0x1c709c){const _0x3d6670=a44_0x9ef2f9;return{'code':_0x3d6670(0xe6),'lockKey':_0x1c709c,'message':_0x3d6670(0x123)};}async function buildHookMaps(_0x303248,_0x2c7545,_0x2b8ffc,_0x269365,_0x2fb701){const _0x3ef7f6=a44_0x9ef2f9,_0x57ccb8=_0x2b8ffc['some'](_0x1d54b5=>_0x1d54b5[_0x3ef7f6(0xc0)]==='HOOK');if(!_0x57ccb8)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x49a16b=resolveApiModelSource(_0x2c7545,_0x303248,_0x2fb701),_0x13a3b4=loadAliasMap(_0x2c7545,undefined,_0x49a16b[_0x3ef7f6(0xf7)],_0x49a16b['profileName']);assertUnambiguousHookAliases(_0x13a3b4);const _0x4e259b=[..._0x13a3b4[_0x3ef7f6(0x11f)](_0x27eb7f=>[_0x27eb7f[_0x3ef7f6(0xc3)],_0x27eb7f[_0x3ef7f6(0xd1)]]),...trackedHookDirectoryMappings(_0x269365)[_0x3ef7f6(0x11f)](_0x22b786=>[_0x22b786[_0x3ef7f6(0xc3)],_0x22b786[_0x3ef7f6(0xd1)]])],_0x55fea9=await listDatasets(_0x303248);assertUnambiguousHookDirectoryMappings(_0x4e259b[_0x3ef7f6(0x11f)](([_0x2712b2,_0x2e7948])=>({'alias':_0x2712b2,'datasetCode':_0x2e7948})));const _0x1dc7ad=buildHookDirectoryIndexes(_0x55fea9,_0x4e259b),_0x37e8a1=new Map(),_0x47f401=preflightPushHookDirectories(_0x2b8ffc,_0x269365,_0x1dc7ad,_0x37e8a1),_0x468647=new Set(),_0x392784=_0x2b8ffc[_0x3ef7f6(0xd6)](_0x3056f6=>_0x37e8a1[_0x3ef7f6(0xc5)](_0x3056f6['lockKey'])?.[_0x3ef7f6(0xeb)](_0x3ef7f6(0xbd))&&_0x269365[_0x3ef7f6(0x124)][_0x3056f6[_0x3ef7f6(0xfe)]]?.[_0x3ef7f6(0x10c)]&&_0x269365['functions'][_0x3056f6[_0x3ef7f6(0xfe)]]?.['datasetCode']);if(_0x392784['length']>0x0){let _0x1b4996;try{_0x1b4996=await getBffScriptStatistics(_0x303248);}catch(_0x3b1b89){for(const _0x55e865 of _0x392784)_0x37e8a1[_0x3ef7f6(0xe1)](_0x55e865[_0x3ef7f6(0xfe)],_0x3ef7f6(0x105)+(_0x3b1b89 instanceof Error?_0x3b1b89[_0x3ef7f6(0xfb)]:String(_0x3b1b89)));return{'resolutions':_0x47f401,'failures':_0x37e8a1,'existingHooks':_0x468647};}for(const _0x4175b4 of _0x392784){const _0x5249f9=_0x269365[_0x3ef7f6(0x124)][_0x4175b4[_0x3ef7f6(0xfe)]];try{const _0x3c464e=new Set(_0x2b8ffc[_0x3ef7f6(0xd6)](_0x4fc480=>_0x4fc480[_0x3ef7f6(0xc0)]===_0x3ef7f6(0x101)&&_0x269365[_0x3ef7f6(0x124)][_0x4fc480['lockKey']]?.[_0x3ef7f6(0xd1)]===_0x5249f9['datasetCode'])[_0x3ef7f6(0x11f)](_0x190109=>_0x190109[_0x3ef7f6(0xc3)]));if(_0x3c464e[_0x3ef7f6(0xc7)]>0x1)throw CliErrors['validation'](_0x3ef7f6(0xda));const _0x52f22f=_0x1b4996[_0x3ef7f6(0x102)](_0x7de1f6=>[{'datasetCode':_0x7de1f6['datasetCode'],'operationType':snakeToCamel(_0x7de1f6[_0x3ef7f6(0x11e)]),'functionNode':'before','id':_0x7de1f6['beforeScriptId']},{'datasetCode':_0x7de1f6[_0x3ef7f6(0xd1)],'operationType':snakeToCamel(_0x7de1f6[_0x3ef7f6(0x11e)]),'functionNode':_0x3ef7f6(0xbb),'id':_0x7de1f6[_0x3ef7f6(0xb8)]}])[_0x3ef7f6(0xd6)](_0x9d6a08=>_0x9d6a08['id']===_0x5249f9[_0x3ef7f6(0x10c)]),_0x4c2e91=await getBffScriptInfo(_0x5249f9[_0x3ef7f6(0x10c)]);if(_0x4c2e91['id']!==_0x5249f9['remoteId']||_0x4c2e91[_0x3ef7f6(0xfc)]!==_0x303248||_0x4c2e91['scriptType']!==_0x3ef7f6(0x101)||_0x4c2e91['functionName']!==_0x4175b4[_0x3ef7f6(0xc2)]||_0x5249f9[_0x3ef7f6(0xf2)]==null||_0x4c2e91[_0x3ef7f6(0xf2)]!==_0x5249f9[_0x3ef7f6(0xf2)]||_0x52f22f['length']!==0x1||_0x52f22f[0x0][_0x3ef7f6(0xd1)]!==_0x5249f9[_0x3ef7f6(0xd1)]||_0x52f22f[0x0][_0x3ef7f6(0x11e)]!==_0x4175b4[_0x3ef7f6(0x11e)]||_0x52f22f[0x0]['functionNode']!==_0x4175b4['functionNode']||_0x5249f9[_0x3ef7f6(0x11e)]!==_0x4175b4[_0x3ef7f6(0x11e)]||_0x5249f9[_0x3ef7f6(0xe8)]!==_0x4175b4[_0x3ef7f6(0xe8)])throw CliErrors[_0x3ef7f6(0x115)](_0x3ef7f6(0x10b));_0x468647[_0x3ef7f6(0x100)](_0x4175b4['lockKey']),_0x37e8a1[_0x3ef7f6(0xdc)](_0x4175b4['lockKey']);}catch(_0x320205){_0x37e8a1[_0x3ef7f6(0xe1)](_0x4175b4['lockKey'],_0x320205 instanceof Error?_0x320205[_0x3ef7f6(0xfb)]:String(_0x320205));}}}return{'resolutions':_0x47f401,'failures':_0x37e8a1,'existingHooks':_0x468647};}function a44_0x5c97(){const _0x44d9ee=['review_remote_and_merge','test','push','366jlQUOg','filter','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.','COMMON','cleared','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','Push\x20complete:\x20','delete','Local\x20function\x20not\x20found:\x20','\x20failed','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','9WsRZOV','set','bff','\x20uploaded','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','runtime\x20cache\x20clear\x20failed','EXISTING_HOOK_BINDING_PRESERVED','some','functionNode','Force\x20push\x20ignoring\x20hash\x20protection','No\x20local\x20Backend\x20Function\x20scripts\x20found.','startsWith','stringify','status','apps','41128254zhOpte','warnings','currentApp','version','Would\x20inspect\x20','bool','apiDir','lockFilePath','filePath','Runtime\x20script\x20cache\x20cleared.','requires','require','message','appCode','7151004WKJMba','lockKey','90580uNwczd','add','HOOK','flatMap','string','write','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','defaultApp','would_push','resolutions','utf8','every','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','remoteId','failed','Incomplete\x20HOOK\x20path:\x20','/api/management/library/scripts/save','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','POST','9919322IaLDRo','\x22\x20not\x20found\x20after\x20ensureLockScope.','selectedAppName','validation','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','runtime\x20cache\x20cleared','values','has','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','\x20resolution','378306ZrMglA','runtime\x20cache\x20not\x20needed','operationType','map','conflict','mergedCli','parse','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','functions','failures','join','unchanged','afterScriptId','force','length','after','BFF_REMOTE_VERSION_CHANGED','HOOK_DATASET_NOT_FOUND:','Lock\x20scope\x20for\x20app\x20\x22','existingHooks','type','description','name','alias','scriptsRoot','get','BFF_REMOTE_VERSION_MISSING','size','str','\x20conflict','3849bjxTWr','toISOString','\x20skipped','9593584iPbMWt','script','hash','Push\x20only\x20this\x20script\x20type','datasetCode'];a44_0x5c97=function(){return _0x44d9ee;};return a44_0x5c97();}async function uploadSingleFunction(_0x283620,_0x3f8604,_0x2bc515,_0x434adc){const _0x4d25b4=a44_0x9ef2f9,_0x54296c=await readFile(_0x3f8604[_0x4d25b4(0xf7)],_0x4d25b4(0x109)),_0x43075=await computeFileHash(_0x3f8604['filePath']),_0x15cb36=_0x2bc515[_0x4d25b4(0x124)][_0x3f8604[_0x4d25b4(0xfe)]];if(_0x15cb36?.[_0x4d25b4(0x10c)]&&_0x15cb36['version']==null)throw CliErrors[_0x4d25b4(0x115)](_0x3f8604['lockKey']+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x254de2=extractScriptDescription(_0x54296c);if(!_0x254de2&&_0x15cb36?.[_0x4d25b4(0x10c)]){const _0xc90635=await getBffScriptInfo(_0x15cb36['remoteId']);_0x254de2=_0xc90635[_0x4d25b4(0xc1)]||undefined;}const _0x99475e={'appCode':_0x283620,'functionName':_0x3f8604['name'],'scriptType':_0x3f8604['type'],'scriptContent':_0x54296c};if(_0x15cb36?.[_0x4d25b4(0x10c)])_0x99475e['id']=_0x15cb36[_0x4d25b4(0x10c)];if(_0x15cb36?.['version']!=null)_0x99475e['version']=_0x15cb36[_0x4d25b4(0xf2)];if(_0x254de2)_0x99475e[_0x4d25b4(0xc1)]=_0x254de2;if(_0x3f8604['type']===_0x4d25b4(0x101)){const _0x3a997c=_0x434adc[_0x4d25b4(0x108)][_0x4d25b4(0xc5)](_0x3f8604[_0x4d25b4(0xfe)]);if(!_0x3a997c&&!_0x434adc['existingHooks'][_0x4d25b4(0x119)](_0x3f8604[_0x4d25b4(0xfe)])||!_0x3f8604[_0x4d25b4(0x11e)]||!_0x3f8604[_0x4d25b4(0xe8)])throw CliErrors[_0x4d25b4(0x115)](_0x4d25b4(0x10e)+_0x3f8604['lockKey']);_0x3a997c&&(_0x99475e['datasetId']=_0x3a997c['dataset']['id'],_0x99475e[_0x4d25b4(0x11e)]=_0x3f8604[_0x4d25b4(0x11e)]),_0x99475e[_0x4d25b4(0xe8)]=_0x3f8604[_0x4d25b4(0xe8)];}const _0x1982e0=await saveBffScript(_0x99475e),_0x3f2775=_0x1982e0['id'],_0x1032e3=_0x1982e0[_0x4d25b4(0xce)]??await getBffScriptInfo(_0x3f2775),_0x56e440={'hash':_0x43075,'remoteId':_0x3f2775,'version':_0x1032e3[_0x4d25b4(0xf2)]};if(_0x3f8604[_0x4d25b4(0xc0)]===_0x4d25b4(0x101)){const _0x3ec12f=_0x434adc[_0x4d25b4(0x108)][_0x4d25b4(0xc5)](_0x3f8604[_0x4d25b4(0xfe)]);if(!_0x3ec12f){_0x2bc515[_0x4d25b4(0x124)][_0x3f8604['lockKey']]={..._0x15cb36,..._0x56e440};return;}_0x56e440[_0x4d25b4(0xc3)]=_0x3ec12f['alias']??_0x15cb36?.[_0x4d25b4(0xc3)],_0x56e440[_0x4d25b4(0xd1)]=_0x3ec12f[_0x4d25b4(0xd1)],_0x56e440[_0x4d25b4(0x11e)]=_0x3f8604['operationType'],_0x56e440['functionNode']=_0x3f8604[_0x4d25b4(0xe8)];}_0x2bc515[_0x4d25b4(0x124)][_0x3f8604[_0x4d25b4(0xfe)]]=_0x56e440;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x97c2dd,_0x7cabfd,_0xded262){const _0x1f4469=a44_0x9ef2f9;if(_0xded262[_0x1f4469(0xba)]===0x0)return;for(let _0x261ef2=0x0;_0x261ef2<LOCK_SETTLE_RETRY_COUNT;_0x261ef2+=0x1){const _0xbd17e9=await readBffLockFile(_0x97c2dd),_0xf64f40=_0xbd17e9?.[_0x1f4469(0xee)]?.[_0x7cabfd]?.[_0x1f4469(0x124)]??{},_0x2863c5=_0xded262[_0x1f4469(0x10a)](_0x2c1ea2=>!!_0xf64f40[_0x2c1ea2]?.[_0x1f4469(0x10c)]);if(_0x2863c5)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x1f4469(0x11a)+_0xded262[_0x1f4469(0x126)](',\x20')+'.');}
@@ -1 +1 @@
1
- const a45_0x1e7927=a45_0x5a86;(function(_0x49fb49,_0x3c8c24){const _0x4f90ec=a45_0x5a86,_0x40019d=_0x49fb49();while(!![]){try{const _0x449155=parseInt(_0x4f90ec(0x16f))/0x1+-parseInt(_0x4f90ec(0x168))/0x2+parseInt(_0x4f90ec(0x164))/0x3+parseInt(_0x4f90ec(0x177))/0x4*(parseInt(_0x4f90ec(0x15c))/0x5)+parseInt(_0x4f90ec(0x162))/0x6*(-parseInt(_0x4f90ec(0x161))/0x7)+parseInt(_0x4f90ec(0x16b))/0x8*(parseInt(_0x4f90ec(0x176))/0x9)+parseInt(_0x4f90ec(0x17a))/0xa*(-parseInt(_0x4f90ec(0x15d))/0xb);if(_0x449155===_0x3c8c24)break;else _0x40019d['push'](_0x40019d['shift']());}catch(_0x35eb76){_0x40019d['push'](_0x40019d['shift']());}}}(a45_0x2da8,0x73c49));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';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';function a45_0x2da8(){const _0x52df25=['bool','14285ROKbUp','25883PAmZcA','\x20modified,\x20','scriptsRoot','lockKey','30863dArPMZ','558ovzxqq','push','1410207AEwTeO','boolean','datasetCode','functions','1884468LXzLBW','map','bff','12328oVozjG','appCode','\x20remote-only','alias','584843uxmEAw','\x20added,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','lockFilePath','selectedAppName','has','length','3879fQfNln','460QoGYOY','status','profileName','940RrlUAC','mergedCli','apiDir','remote','currentApp','all'];a45_0x2da8=function(){return _0x52df25;};return a45_0x2da8();}function a45_0x5a86(_0x38fa00,_0x238700){_0x38fa00=_0x38fa00-0x15c;const _0x2da8b1=a45_0x2da8();let _0x5a8625=_0x2da8b1[_0x38fa00];return _0x5a8625;}export const bffStatus={'service':a45_0x1e7927(0x16a),'command':a45_0x1e7927(0x178),'description':'Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','risk':'read','flags':[{'name':a45_0x1e7927(0x17d),'type':a45_0x1e7927(0x165),'description':a45_0x1e7927(0x171)}],async 'execute'(_0x4d834b){const _0x2bd141=a45_0x1e7927,_0x3517a8=loadBffProjectConfig(_0x4d834b[_0x2bd141(0x16c)]),_0x30004c=await readBffLockFile(_0x3517a8[_0x2bd141(0x172)]),{appLock:_0x24dc73}=ensureLockScope(_0x30004c??createEmptyBffLock(),_0x4d834b[_0x2bd141(0x16c)],_0x3517a8[_0x2bd141(0x15f)],_0x2bd141(0x178)),_0xb773c0=await scanLocalBffFunctions(_0x3517a8),_0x56f7c2=[],_0x5251c5=[],_0x5aae50=[];for(const _0x40fd0f of _0xb773c0){const _0x51d933=await computeFileHash(_0x40fd0f['filePath']),_0x4c92de=_0x24dc73[_0x2bd141(0x167)][_0x40fd0f[_0x2bd141(0x160)]];if(!_0x4c92de)_0x56f7c2[_0x2bd141(0x163)](_0x40fd0f['lockKey']);else _0x4c92de['hash']!==_0x51d933?_0x5251c5['push'](_0x40fd0f[_0x2bd141(0x160)]):_0x5aae50[_0x2bd141(0x163)](_0x40fd0f[_0x2bd141(0x160)]);}const _0x336c87=[];if(_0x4d834b[_0x2bd141(0x180)](_0x2bd141(0x17d))){const _0x43bd45=resolveApiModelSource(_0x4d834b['apiDir'],_0x4d834b['appCode'],_0x4d834b[_0x2bd141(0x173)]||_0x4d834b[_0x2bd141(0x17b)]?.[_0x2bd141(0x17e)]||_0x4d834b[_0x2bd141(0x17b)]?.['defaultApp']),_0x821575=loadAliasMap(_0x4d834b[_0x2bd141(0x17c)],undefined,_0x43bd45['filePath'],_0x43bd45[_0x2bd141(0x179)]),_0x204c4e=new Map(_0x821575[_0x2bd141(0x169)](_0x3658ca=>[_0x3658ca[_0x2bd141(0x166)],_0x3658ca[_0x2bd141(0x16e)]])),[_0x3ae636,_0x1bea3f]=await Promise[_0x2bd141(0x17f)]([listBffScripts(_0x4d834b['appCode']),getBffScriptStatistics(_0x4d834b[_0x2bd141(0x16c)])]),_0x589a73=createHookLocationMap(_0x1bea3f),_0x34c5b1=new Set(_0xb773c0['map'](_0x5e65d0=>_0x5e65d0[_0x2bd141(0x160)]));for(const _0x1afd4f of _0x3ae636){const _0x5c6d0f=resolveRemoteScriptTarget(_0x3517a8,_0x1afd4f,_0x589a73,_0x24dc73['functions'],_0x204c4e);_0x5c6d0f&&!_0x34c5b1[_0x2bd141(0x174)](_0x5c6d0f['lockKey'])&&_0x336c87[_0x2bd141(0x163)](_0x5c6d0f[_0x2bd141(0x160)]);}}const _0x51e29c=_0x56f7c2[_0x2bd141(0x175)]===0x0&&_0x5251c5[_0x2bd141(0x175)]===0x0&&_0x336c87[_0x2bd141(0x175)]===0x0;return{'ok':!![],'data':{'added':_0x56f7c2,'modified':_0x5251c5,'unchanged':_0x5aae50,'remoteOnly':_0x336c87},'message':_0x51e29c?'All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.':_0x56f7c2[_0x2bd141(0x175)]+_0x2bd141(0x170)+_0x5251c5[_0x2bd141(0x175)]+_0x2bd141(0x15e)+_0x5aae50[_0x2bd141(0x175)]+'\x20unchanged'+(_0x336c87[_0x2bd141(0x175)]>0x0?',\x20'+_0x336c87[_0x2bd141(0x175)]+_0x2bd141(0x16d):'')};}};
1
+ const a45_0x15bd5a=a45_0xcbf8;(function(_0x128330,_0x4d8f36){const _0x6180eb=a45_0xcbf8,_0x339b97=_0x128330();while(!![]){try{const _0x4348a8=parseInt(_0x6180eb(0x14a))/0x1+-parseInt(_0x6180eb(0x142))/0x2+-parseInt(_0x6180eb(0x13c))/0x3+parseInt(_0x6180eb(0x133))/0x4*(parseInt(_0x6180eb(0x137))/0x5)+parseInt(_0x6180eb(0x13b))/0x6+-parseInt(_0x6180eb(0x152))/0x7*(-parseInt(_0x6180eb(0x14d))/0x8)+-parseInt(_0x6180eb(0x150))/0x9*(parseInt(_0x6180eb(0x140))/0xa);if(_0x4348a8===_0x4d8f36)break;else _0x339b97['push'](_0x339b97['shift']());}catch(_0x442e01){_0x339b97['push'](_0x339b97['shift']());}}}(a45_0x120e,0x2b4b8));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a45_0x120e(){const _0x2c7015=['233023Zuoikn','length','push','currentApp','72188ZWkurS','mergedCli','filePath','lockKey','65jbrinH','\x20unchanged','bool','appCode','465912OzAlrI','162111bvDPrU','hash','status','apiDir','3135490oRrzgs','scriptsRoot','637072rpyBHx','profileName','selectedAppName','\x20remote-only','defaultApp','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','remote','\x20added,\x20','251594bVrMzW','functions','map','72lwyBQR','\x20modified,\x20','datasetCode','9yWeJHF','has'];a45_0x120e=function(){return _0x2c7015;};return a45_0x120e();}import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a45_0xcbf8(_0x404d8a,_0x571fb8){_0x404d8a=_0x404d8a-0x133;const _0x120efe=a45_0x120e();let _0xcbf8f8=_0x120efe[_0x404d8a];return _0xcbf8f8;}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':'bff','command':a45_0x15bd5a(0x13e),'description':'Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','risk':'read','flags':[{'name':a45_0x15bd5a(0x148),'type':'boolean','description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x430454){const _0x45c4d7=a45_0x15bd5a,_0x3dec2a=loadBffProjectConfig(_0x430454[_0x45c4d7(0x13a)]),_0x1950f6=await readBffLockFile(_0x3dec2a['lockFilePath']),{appLock:_0x2c4f38}=ensureLockScope(_0x1950f6??createEmptyBffLock(),_0x430454[_0x45c4d7(0x13a)],_0x3dec2a[_0x45c4d7(0x141)],_0x45c4d7(0x13e)),_0x4ca16e=await scanLocalBffFunctions(_0x3dec2a),_0x160ea3=[],_0x5e7509=[],_0x9acac5=[];for(const _0x448cfe of _0x4ca16e){const _0xb1b5cc=await computeFileHash(_0x448cfe[_0x45c4d7(0x135)]),_0x23242b=_0x2c4f38[_0x45c4d7(0x14b)][_0x448cfe[_0x45c4d7(0x136)]];if(!_0x23242b)_0x160ea3['push'](_0x448cfe[_0x45c4d7(0x136)]);else _0x23242b[_0x45c4d7(0x13d)]!==_0xb1b5cc?_0x5e7509[_0x45c4d7(0x154)](_0x448cfe[_0x45c4d7(0x136)]):_0x9acac5['push'](_0x448cfe[_0x45c4d7(0x136)]);}const _0x207b79=[];if(_0x430454[_0x45c4d7(0x139)](_0x45c4d7(0x148))){const _0x5dad82=resolveApiModelSource(_0x430454['apiDir'],_0x430454[_0x45c4d7(0x13a)],_0x430454[_0x45c4d7(0x144)]||_0x430454[_0x45c4d7(0x134)]?.[_0x45c4d7(0x155)]||_0x430454[_0x45c4d7(0x134)]?.[_0x45c4d7(0x146)]),_0x5c6229=loadAliasMap(_0x430454[_0x45c4d7(0x13f)],undefined,_0x5dad82[_0x45c4d7(0x135)],_0x5dad82[_0x45c4d7(0x143)]),_0x56d19d=new Map(_0x5c6229[_0x45c4d7(0x14c)](_0x10958f=>[_0x10958f[_0x45c4d7(0x14f)],_0x10958f['alias']])),[_0x5c503b,_0x527422]=await Promise['all']([listBffScripts(_0x430454[_0x45c4d7(0x13a)]),getBffScriptStatistics(_0x430454[_0x45c4d7(0x13a)])]),_0x1351af=createHookLocationMap(_0x527422),_0xaa8d1d=new Set(_0x4ca16e['map'](_0x5e09e3=>_0x5e09e3[_0x45c4d7(0x136)]));for(const _0x53c3c4 of _0x5c503b){const _0x89bb6a=resolveRemoteScriptTarget(_0x3dec2a,_0x53c3c4,_0x1351af,_0x2c4f38[_0x45c4d7(0x14b)],_0x56d19d);_0x89bb6a&&!_0xaa8d1d[_0x45c4d7(0x151)](_0x89bb6a['lockKey'])&&_0x207b79['push'](_0x89bb6a[_0x45c4d7(0x136)]);}}const _0x4d2ab5=_0x160ea3[_0x45c4d7(0x153)]===0x0&&_0x5e7509[_0x45c4d7(0x153)]===0x0&&_0x207b79[_0x45c4d7(0x153)]===0x0;return{'ok':!![],'data':{'added':_0x160ea3,'modified':_0x5e7509,'unchanged':_0x9acac5,'remoteOnly':_0x207b79},'message':_0x4d2ab5?_0x45c4d7(0x147):_0x160ea3[_0x45c4d7(0x153)]+_0x45c4d7(0x149)+_0x5e7509[_0x45c4d7(0x153)]+_0x45c4d7(0x14e)+_0x9acac5[_0x45c4d7(0x153)]+_0x45c4d7(0x138)+(_0x207b79['length']>0x0?',\x20'+_0x207b79[_0x45c4d7(0x153)]+_0x45c4d7(0x145):'')};}};
@@ -1 +1 @@
1
- const a46_0x1b3d29=a46_0x14ae;function a46_0x281a(){const _0x7515f6=['4418CoHzNZ','repairCommand','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','cli-skill-install','error','nonInteractive','installedPath','1950232GsQvTZ','504786efhdaE','pipe','install','cwd','905764ubcdto','\x20is\x20already\x20current','setLogPath','7kAJeXI','5BgLHQu','12855220aioFuE','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','unknown','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','CLI\x20Built-in\x20Skill\x20','code','589900mejHEL','591wsXMWZ','Built-in\x20Skill\x20install\x20failed\x20[','apiError','\x20installed','1255284oHynAD','info','log',']:\x20','skillVersion','\x20at\x20'];a46_0x281a=function(){return _0x7515f6;};return a46_0x281a();}(function(_0x3c6886,_0x31c2d0){const _0x267e6b=a46_0x14ae,_0x6b5334=_0x3c6886();while(!![]){try{const _0x380d19=-parseInt(_0x267e6b(0x144))/0x1+-parseInt(_0x267e6b(0x14f))/0x2*(parseInt(_0x267e6b(0x145))/0x3)+-parseInt(_0x267e6b(0x139))/0x4+parseInt(_0x267e6b(0x13d))/0x5*(-parseInt(_0x267e6b(0x135))/0x6)+parseInt(_0x267e6b(0x13c))/0x7*(parseInt(_0x267e6b(0x134))/0x8)+parseInt(_0x267e6b(0x149))/0x9+parseInt(_0x267e6b(0x13e))/0xa;if(_0x380d19===_0x31c2d0)break;else _0x6b5334['push'](_0x6b5334['shift']());}catch(_0x1c34e7){_0x6b5334['push'](_0x6b5334['shift']());}}}(a46_0x281a,0x5154c));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x14ae(_0xc887f8,_0x27ba29){_0xc887f8=_0xc887f8-0x132;const _0x281aad=a46_0x281a();let _0x14aec7=_0x281aad[_0xc887f8];return _0x14aec7;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a46_0x1b3d29(0x137),'description':a46_0x1b3d29(0x141),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x484889){const _0x4d98e1=a46_0x1b3d29;logger[_0x4d98e1(0x13b)](process[_0x4d98e1(0x138)]()),logger[_0x4d98e1(0x14a)](_0x4d98e1(0x152),_0x4d98e1(0x13f));const _0x526695=installBuiltinSkill({'stdio':_0x484889[_0x4d98e1(0x132)]?_0x4d98e1(0x136):'inherit'});if(!_0x526695['ok'])throw CliErrors[_0x4d98e1(0x147)](_0x4d98e1(0x146)+_0x526695[_0x4d98e1(0x143)]+_0x4d98e1(0x14c)+(_0x526695[_0x4d98e1(0x153)]||_0x4d98e1(0x140)),_0x4d98e1(0x151)+_0x526695[_0x4d98e1(0x150)]);return console[_0x4d98e1(0x14b)](_0x526695['changed']?_0x4d98e1(0x142)+_0x526695[_0x4d98e1(0x14d)]+_0x4d98e1(0x148)+(_0x526695[_0x4d98e1(0x133)]?_0x4d98e1(0x14e)+_0x526695[_0x4d98e1(0x133)]:'\x20via\x20skills@latest'):'CLI\x20Built-in\x20Skill\x20'+_0x526695[_0x4d98e1(0x14d)]+_0x4d98e1(0x13a)+(_0x526695[_0x4d98e1(0x133)]?'\x20at\x20'+_0x526695['installedPath']:'')),{'ok':!![]};}}];
1
+ function a46_0xe775(){const _0x2d9114=['744atfqTl','installedPath','Built-in\x20Skill\x20install\x20failed\x20[','5758yTRTmy','cli-skill-install','CLI\x20Built-in\x20Skill\x20','apiError','946218ZnWqVW','304OIBuuc','skillVersion','\x20is\x20already\x20current','42CZXpvB','error','repairCommand','changed','1757oCpIdE','6220YihRpK','info','\x20at\x20','69600pjTFSC','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.',']:\x20','4311sLkLEU','47861NZzOuk','inherit','50QvfDkh','43100CIDQFe','unknown','read','log','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill'];a46_0xe775=function(){return _0x2d9114;};return a46_0xe775();}function a46_0x1063(_0x4ee769,_0x4f369e){_0x4ee769=_0x4ee769-0x193;const _0xe7756e=a46_0xe775();let _0x106315=_0xe7756e[_0x4ee769];return _0x106315;}const a46_0x1973d6=a46_0x1063;(function(_0x219375,_0x2353b0){const _0x3e6794=a46_0x1063,_0x3a2098=_0x219375();while(!![]){try{const _0x2b68ee=parseInt(_0x3e6794(0x1b2))/0x1*(parseInt(_0x3e6794(0x19a))/0x2)+parseInt(_0x3e6794(0x1a2))/0x3+-parseInt(_0x3e6794(0x1aa))/0x4*(parseInt(_0x3e6794(0x1a9))/0x5)+parseInt(_0x3e6794(0x196))/0x6+parseInt(_0x3e6794(0x19e))/0x7*(parseInt(_0x3e6794(0x197))/0x8)+parseInt(_0x3e6794(0x1a6))/0x9*(-parseInt(_0x3e6794(0x19f))/0xa)+parseInt(_0x3e6794(0x1a7))/0xb*(parseInt(_0x3e6794(0x1af))/0xc);if(_0x2b68ee===_0x2353b0)break;else _0x3a2098['push'](_0x3a2098['shift']());}catch(_0x16d6aa){_0x3a2098['push'](_0x3a2098['shift']());}}}(a46_0xe775,0x2ad49));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a46_0x1973d6(0x1ae),'risk':a46_0x1973d6(0x1ac),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4427aa){const _0x3ae4e0=a46_0x1973d6;logger['setLogPath'](process['cwd']()),logger[_0x3ae4e0(0x1a0)](_0x3ae4e0(0x193),_0x3ae4e0(0x1a4));const _0x110ef2=installBuiltinSkill({'stdio':_0x4427aa['nonInteractive']?'pipe':_0x3ae4e0(0x1a8)});if(!_0x110ef2['ok'])throw CliErrors[_0x3ae4e0(0x195)](_0x3ae4e0(0x1b1)+_0x110ef2['code']+_0x3ae4e0(0x1a5)+(_0x110ef2[_0x3ae4e0(0x19b)]||_0x3ae4e0(0x1ab)),_0x3ae4e0(0x1a3)+_0x110ef2[_0x3ae4e0(0x19c)]);return console[_0x3ae4e0(0x1ad)](_0x110ef2[_0x3ae4e0(0x19d)]?_0x3ae4e0(0x194)+_0x110ef2[_0x3ae4e0(0x198)]+'\x20installed'+(_0x110ef2[_0x3ae4e0(0x1b0)]?_0x3ae4e0(0x1a1)+_0x110ef2[_0x3ae4e0(0x1b0)]:'\x20via\x20skills@latest'):'CLI\x20Built-in\x20Skill\x20'+_0x110ef2[_0x3ae4e0(0x198)]+_0x3ae4e0(0x199)+(_0x110ef2[_0x3ae4e0(0x1b0)]?_0x3ae4e0(0x1a1)+_0x110ef2[_0x3ae4e0(0x1b0)]:'')),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a47_0x1e9116=a47_0x4c4c;(function(_0x1b3b15,_0x51c366){const _0x4b1991=a47_0x4c4c,_0x146d20=_0x1b3b15();while(!![]){try{const _0x3d8865=-parseInt(_0x4b1991(0x178))/0x1+-parseInt(_0x4b1991(0x162))/0x2+-parseInt(_0x4b1991(0x155))/0x3*(-parseInt(_0x4b1991(0x174))/0x4)+parseInt(_0x4b1991(0x150))/0x5+-parseInt(_0x4b1991(0x18d))/0x6+-parseInt(_0x4b1991(0x147))/0x7*(parseInt(_0x4b1991(0x156))/0x8)+parseInt(_0x4b1991(0x16c))/0x9*(parseInt(_0x4b1991(0x170))/0xa);if(_0x3d8865===_0x51c366)break;else _0x146d20['push'](_0x146d20['shift']());}catch(_0x5f579e){_0x146d20['push'](_0x146d20['shift']());}}}(a47_0x5836,0xb7cbb));import a47_0x5f0777 from'chalk';import a47_0x55058a from'ora';import a47_0x2f3897 from'semver';function a47_0x5836(){const _0x1d2fc9=['filter','https://registry.npmjs.org/-/package/','Updating\x20via\x20','timeout','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','npm','fail',',\x20found\x20','beta','Version\x20comparison\x20failed','yellow','toLowerCase','str','Already\x20on\x20requested\x20version\x20(v','gray','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','source','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','7435860UcKICx','succeed','Checking\x20for\x20updates...','latest','Already\x20up\x20to\x20date\x20(v','entries','valid','repairCommand','install','length','version','json','trim','start','green','2275JMiVQx','\x20→\x20','log','string','code','CLI\x20updated\x20to\x20v','message','bool','state','6112700abJGnh','current','map','object','run','423zhMWaT','30824Slpgpq','pipe',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20',',\x20then\x20verify\x20with:\x20','bun','skillVersion','apiError','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Invalid\x20version:\x20','slice','error','\x20doctor','1225112CtNwbl','Beta\x20version:\x20','Run:\x20','@latest','unknown','\x20\x20CLI\x20Built-in\x20Skill\x20','execPath','...',',\x20state\x20','expected\x20','11813391OgKklL','fromEntries','\x20is\x20up\x20to\x20date.','\x20is\x20newer\x20than\x20npm\x20latest\x20v','20CVNcJA','includes','Requested\x20version:\x20','update','26788NyNKlG','Current\x20version\x20v','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','935097fDIjqi','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.'];a47_0x5836=function(){return _0x1d2fc9;};return a47_0x5836();}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 _0xea1ff8=a47_0x4c4c;return GIT_COMMIT!==_0xea1ff8(0x166)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xea1ff8(0x15f)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2fde66=a47_0x4c4c,_0x28f1bd=process[_0x2fde66(0x168)][_0x2fde66(0x186)]();if(_0x28f1bd[_0x2fde66(0x171)](_0x2fde66(0x15a)))return _0x2fde66(0x15a);return'npm';}const updateFlags=[{'name':a47_0x1e9116(0x183),'type':'boolean','description':a47_0x1e9116(0x15d),'default':![]},{'name':a47_0x1e9116(0x142),'type':a47_0x1e9116(0x14a),'description':a47_0x1e9116(0x176)}];function getRequestedVersion(_0x53d1b5){const _0x24995a=a47_0x1e9116;return _0x53d1b5[_0x24995a(0x187)](_0x24995a(0x142))['trim']();}async function validateUpdateFlags(_0x327b0f){const _0x54ba30=a47_0x1e9116,_0xa17ac5=_0x327b0f[_0x54ba30(0x14e)](_0x54ba30(0x183)),_0x488138=getRequestedVersion(_0x327b0f);if(_0xa17ac5&&_0x488138)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x54ba30(0x17a));if(_0x488138&&!a47_0x2f3897[_0x54ba30(0x13e)](_0x488138))throw CliErrors['validation'](_0x54ba30(0x15e)+_0x488138,_0x54ba30(0x18c));}async function fetchNpmDistTags(){const _0x31af7a=a47_0x1e9116;try{const _0x162dc5=await fetch(_0x31af7a(0x17c)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x31af7a(0x17e)](0x2710)});if(!_0x162dc5['ok'])return null;const _0x234e29=await _0x162dc5[_0x31af7a(0x143)]();if(!_0x234e29||typeof _0x234e29!==_0x31af7a(0x153))return null;return Object[_0x31af7a(0x16d)](Object[_0x31af7a(0x13d)](_0x234e29)[_0x31af7a(0x17b)](([,_0x5b2743])=>typeof _0x5b2743===_0x31af7a(0x14a)&&_0x5b2743[_0x31af7a(0x144)]()[_0x31af7a(0x141)]>0x0)[_0x31af7a(0x152)](([_0x496164,_0x81880e])=>[_0x496164,String(_0x81880e)[_0x31af7a(0x144)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x40ebb4){const _0xb25996=await fetchNpmDistTags();return _0xb25996?.[_0x40ebb4]??null;}async function fetchLatestVersion(){const _0x2d8012=a47_0x1e9116;return fetchNpmDistTagVersion(_0x2d8012(0x13b));}async function resolveTargetVersion(_0x3e876e){const _0x293761=a47_0x1e9116,_0x4deed9=getRequestedVersion(_0x3e876e);if(_0x4deed9)return{'version':_0x4deed9,'source':_0x293761(0x142)};if(_0x3e876e[_0x293761(0x14e)]('beta')){const _0x102ba9=await fetchNpmDistTagVersion('beta');if(!_0x102ba9)return null;return{'version':_0x102ba9,'source':_0x293761(0x183)};}const _0x457b37=await fetchLatestVersion();if(!_0x457b37)return null;return{'version':_0x457b37,'source':'latest'};}function shouldInstallTarget(_0x331ddd,_0xc4ae61){const _0x527b17=a47_0x1e9116;if(_0xc4ae61[_0x527b17(0x18b)]==='version'||_0xc4ae61['source']===_0x527b17(0x183))return!a47_0x2f3897['eq'](_0x331ddd,_0xc4ae61[_0x527b17(0x142)]);return a47_0x2f3897['lt'](_0x331ddd,_0xc4ae61['version']);}function getInstallPlanLabel(_0x222210,_0x283582){const _0x4b11f6=a47_0x1e9116;switch(_0x283582[_0x4b11f6(0x18b)]){case _0x4b11f6(0x183):return _0x4b11f6(0x163)+a47_0x5f0777[_0x4b11f6(0x185)](_0x222210)+_0x4b11f6(0x148)+a47_0x5f0777['green'](_0x283582[_0x4b11f6(0x142)]);case _0x4b11f6(0x142):return _0x4b11f6(0x172)+a47_0x5f0777[_0x4b11f6(0x185)](_0x222210)+_0x4b11f6(0x148)+a47_0x5f0777['green'](_0x283582[_0x4b11f6(0x142)]);case _0x4b11f6(0x13b):default:return'Update\x20available:\x20'+a47_0x5f0777[_0x4b11f6(0x185)](_0x222210)+_0x4b11f6(0x148)+a47_0x5f0777[_0x4b11f6(0x146)](_0x283582[_0x4b11f6(0x142)]);}}function repairCurrentBuiltinSkill(){const _0x1295ed=a47_0x1e9116;console[_0x1295ed(0x149)](a47_0x5f0777[_0x1295ed(0x189)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x553366=installBuiltinSkill();if(_0x553366['ok']){console['log'](a47_0x5f0777[_0x1295ed(0x189)](_0x1295ed(0x167)+_0x553366[_0x1295ed(0x15b)]+_0x1295ed(0x16e)));return;}throw CliErrors['apiError'](_0x1295ed(0x18a)+_0x553366[_0x1295ed(0x14b)]+']:\x20'+(_0x553366[_0x1295ed(0x160)]||_0x1295ed(0x166)),_0x1295ed(0x164)+_0x553366[_0x1295ed(0x13f)]+_0x1295ed(0x159)+CLI_BIN_NAME+_0x1295ed(0x161));}function a47_0x4c4c(_0x5bb2c5,_0x19d180){_0x5bb2c5=_0x5bb2c5-0x139;const _0x5836cc=a47_0x5836();let _0x4c4ca9=_0x5836cc[_0x5bb2c5];return _0x4c4ca9;}function verifyUpdatedBuiltinSkill(_0x239584){const _0x37d827=a47_0x1e9116,_0x58211e=inspectInstalledBuiltinSkillVersion(_0x239584);if(_0x58211e[_0x37d827(0x14f)]===_0x37d827(0x151)){console[_0x37d827(0x149)](a47_0x5f0777['gray'](_0x37d827(0x167)+_0x239584+'\x20is\x20up\x20to\x20date.'));return;}const _0x354cbe=_0x58211e[_0x37d827(0x15b)]?_0x37d827(0x16b)+_0x239584+_0x37d827(0x182)+_0x58211e['skillVersion']:'expected\x20'+_0x239584+_0x37d827(0x16a)+_0x58211e[_0x37d827(0x14f)];throw CliErrors[_0x37d827(0x15c)](_0x37d827(0x14c)+_0x239584+_0x37d827(0x158)+_0x354cbe,'Run:\x20'+_0x58211e[_0x37d827(0x13f)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x37d827(0x161));}async function execute(_0xf0286e){const _0x433204=a47_0x1e9116;await validateUpdateFlags(_0xf0286e);const _0x8954b6=getCurrentVersion();console[_0x433204(0x149)]('Current\x20version:\x20'+_0x8954b6);const _0xa2164=a47_0x55058a(_0x433204(0x13a))[_0x433204(0x145)](),_0x2e9413=await resolveTargetVersion(_0xf0286e);if(!_0x2e9413){const _0x3548bd=_0xf0286e[_0x433204(0x14e)](_0x433204(0x183))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x433204(0x179);return _0xa2164[_0x433204(0x181)](_0x3548bd),console[_0x433204(0x149)](a47_0x5f0777[_0x433204(0x189)](_0x433204(0x177)+NPM_PACKAGE_NAME+_0x433204(0x165))),{'ok':![],'message':_0x3548bd};}const _0x348392=a47_0x2f3897[_0x433204(0x13e)](VERSION),_0x1208d5=a47_0x2f3897[_0x433204(0x13e)](_0x2e9413[_0x433204(0x142)]);if(!_0x348392||!_0x1208d5)return _0xa2164['fail']('Version\x20comparison\x20failed'),{'ok':![],'message':_0x433204(0x184)};if(!shouldInstallTarget(_0x348392,_0x2e9413)){const _0x1dc316=_0x2e9413[_0x433204(0x18b)]==='version'?_0x433204(0x188)+_0x2e9413[_0x433204(0x142)]+')':a47_0x2f3897['gt'](_0x348392,_0x1208d5)?_0x433204(0x175)+_0x8954b6+_0x433204(0x16f)+_0x2e9413['version']:_0x433204(0x13c)+_0x2e9413[_0x433204(0x142)]+')';return _0xa2164[_0x433204(0x139)](_0x1dc316),repairCurrentBuiltinSkill(),{'ok':!![]};}_0xa2164['info'](getInstallPlanLabel(_0x8954b6,_0x2e9413));const _0x313894=detectPackageManager(),_0x4c0384=_0x313894==='npm'?resolveNpmBin(_0x433204(0x180)):_0x313894,_0x2aafa3=a47_0x55058a(_0x433204(0x17d)+_0x313894+_0x433204(0x169))[_0x433204(0x145)]();try{await execa(_0x4c0384,[_0x433204(0x140),'-g',NPM_PACKAGE_NAME+'@'+_0x2e9413[_0x433204(0x142)]],{'stdio':_0x433204(0x157)}),_0x2aafa3[_0x433204(0x139)]('Updated\x20to\x20v'+_0x2e9413[_0x433204(0x142)]),console[_0x433204(0x149)](a47_0x5f0777[_0x433204(0x189)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x100db6){return _0x2aafa3[_0x433204(0x181)]('Update\x20failed'),console[_0x433204(0x160)](a47_0x5f0777['red']('\x20\x20'+_0x100db6[_0x433204(0x14d)])),console[_0x433204(0x149)](a47_0x5f0777[_0x433204(0x189)]('\x20\x20Try\x20manually:\x20'+_0x313894+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2e9413['version'])),{'ok':![],'message':_0x100db6[_0x433204(0x14d)]};}return verifyUpdatedBuiltinSkill(_0x2e9413[_0x433204(0x142)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x1e9116(0x173),'command':a47_0x1e9116(0x154),'description':a47_0x1e9116(0x17f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a47_0x307640=a47_0x3b96;(function(_0x45979a,_0x24e92e){const _0x4e6719=a47_0x3b96,_0x50ae51=_0x45979a();while(!![]){try{const _0x5e164f=-parseInt(_0x4e6719(0x11a))/0x1+parseInt(_0x4e6719(0x116))/0x2+parseInt(_0x4e6719(0x119))/0x3*(-parseInt(_0x4e6719(0x123))/0x4)+parseInt(_0x4e6719(0x117))/0x5*(-parseInt(_0x4e6719(0x108))/0x6)+parseInt(_0x4e6719(0x112))/0x7*(-parseInt(_0x4e6719(0xfd))/0x8)+parseInt(_0x4e6719(0x139))/0x9*(-parseInt(_0x4e6719(0x10a))/0xa)+-parseInt(_0x4e6719(0x12f))/0xb*(-parseInt(_0x4e6719(0x113))/0xc);if(_0x5e164f===_0x24e92e)break;else _0x50ae51['push'](_0x50ae51['shift']());}catch(_0x10b4bd){_0x50ae51['push'](_0x50ae51['shift']());}}}(a47_0x49a9,0x7b485));import a47_0x11c762 from'chalk';import a47_0x4fb3f1 from'ora';import a47_0x31f3f0 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a47_0x3b96(_0x4e4bd9,_0x33d229){_0x4e4bd9=_0x4e4bd9-0xef;const _0x49a927=a47_0x49a9();let _0x3b9698=_0x49a927[_0x4e4bd9];return _0x3b9698;}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 _0x2a132c=a47_0x3b96;return GIT_COMMIT!==_0x2a132c(0x148)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2a132c(0xfb)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x5bd2c0=a47_0x3b96,_0x139f1d=process['execPath'][_0x5bd2c0(0x104)]();if(_0x139f1d['includes'](_0x5bd2c0(0x127)))return _0x5bd2c0(0x127);return'npm';}const updateFlags=[{'name':'beta','type':a47_0x307640(0x122),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a47_0x307640(0x11c),'description':a47_0x307640(0x10f)}];function getRequestedVersion(_0x5e7fce){const _0x37d1cf=a47_0x307640;return _0x5e7fce[_0x37d1cf(0x130)]('version')[_0x37d1cf(0xfc)]();}function a47_0x49a9(){const _0x1a7f75=['Requested\x20version:\x20','Updating\x20via\x20','\x20doctor','timeout','\x20is\x20newer\x20than\x20npm\x20latest\x20v','CLI\x20updated\x20to\x20v','json',']:\x20','update','Try\x20manually:\x20npm\x20install\x20-g\x20',',\x20then\x20verify\x20with:\x20','unknown','code','green','expected\x20','succeed','object','...','Update\x20available:\x20','Try\x20manually:\x20','version','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','\x20\x20CLI\x20Built-in\x20Skill\x20','filter','\x20install\x20-g\x20','slice','trim','664mdvElr','Already\x20up\x20to\x20date\x20(v','Version\x20comparison\x20failed','Run:\x20','length','Check\x20the\x20CLI\x20and\x20npm\x20versions,\x20then\x20retry:\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','toLowerCase','gray','Update\x20failed','npm','744pPxrHe','beta','10GSQlnV','read','Already\x20on\x20requested\x20version\x20(v','validation','\x20is\x20up\x20to\x20date.','Install\x20a\x20specific\x20CLI\x20version','pipe','fail','13111jtNXro','3943860evzxbQ','Checking\x20for\x20updates...','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','1347990FoBKcM','39845ELUesX','log','5091MKQOEE','953487UJMQZY',',\x20state\x20','string','Checking\x20CLI\x20Built-in\x20Skill...','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','repairCommand','run','current','boolean','1420qUvswl','apiError','map','Beta\x20version:\x20','bun','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','latest','entries','/dist-tags','Current\x20version\x20v','valid','message','88GadKlK','str',',\x20found\x20','install','yellow','skillVersion','source','\x20→\x20','bool','Update\x20failed:\x20','888597jfnsUU','state','https://registry.npmjs.org/-/package/','\x20update\x20--version\x20<version>'];a47_0x49a9=function(){return _0x1a7f75;};return a47_0x49a9();}async function validateUpdateFlags(_0x9746d7){const _0x4e769c=a47_0x307640,_0x1daa76=_0x9746d7[_0x4e769c(0x137)](_0x4e769c(0x109)),_0x225dbb=getRequestedVersion(_0x9746d7);if(_0x1daa76&&_0x225dbb)throw CliErrors[_0x4e769c(0x10d)](_0x4e769c(0xf7),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x225dbb&&!a47_0x31f3f0['valid'](_0x225dbb))throw CliErrors[_0x4e769c(0x10d)]('Invalid\x20version:\x20'+_0x225dbb,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2532c0=a47_0x307640;try{const _0x502774=await fetch(_0x2532c0(0x13b)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x2532c0(0x12b),{'signal':AbortSignal[_0x2532c0(0x140)](0x2710)});if(!_0x502774['ok'])return null;const _0x38875b=await _0x502774[_0x2532c0(0x143)]();if(!_0x38875b||typeof _0x38875b!==_0x2532c0(0xf2))return null;return Object['fromEntries'](Object[_0x2532c0(0x12a)](_0x38875b)[_0x2532c0(0xf9)](([,_0x458840])=>typeof _0x458840===_0x2532c0(0x11c)&&_0x458840[_0x2532c0(0xfc)]()[_0x2532c0(0x101)]>0x0)[_0x2532c0(0x125)](([_0x2615a1,_0x49d268])=>[_0x2615a1,String(_0x49d268)[_0x2532c0(0xfc)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2ba99b){const _0x387489=await fetchNpmDistTags();return _0x387489?.[_0x2ba99b]??null;}async function fetchLatestVersion(){const _0x843808=a47_0x307640;return fetchNpmDistTagVersion(_0x843808(0x129));}async function resolveTargetVersion(_0x4609cb){const _0x1fe0d1=a47_0x307640,_0x282a18=getRequestedVersion(_0x4609cb);if(_0x282a18)return{'version':_0x282a18,'source':_0x1fe0d1(0xf6)};if(_0x4609cb[_0x1fe0d1(0x137)](_0x1fe0d1(0x109))){const _0x4a7dd1=await fetchNpmDistTagVersion('beta');if(!_0x4a7dd1)return null;return{'version':_0x4a7dd1,'source':_0x1fe0d1(0x109)};}const _0x25d063=await fetchLatestVersion();if(!_0x25d063)return null;return{'version':_0x25d063,'source':_0x1fe0d1(0x129)};}function shouldInstallTarget(_0x4d1299,_0x529281){const _0x3935f6=a47_0x307640;if(_0x529281[_0x3935f6(0x135)]===_0x3935f6(0xf6)||_0x529281[_0x3935f6(0x135)]===_0x3935f6(0x109))return!a47_0x31f3f0['eq'](_0x4d1299,_0x529281['version']);return a47_0x31f3f0['lt'](_0x4d1299,_0x529281['version']);}function getInstallPlanLabel(_0x58133d,_0x9ea296){const _0x5a8df2=a47_0x307640;switch(_0x9ea296[_0x5a8df2(0x135)]){case'beta':return _0x5a8df2(0x126)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762[_0x5a8df2(0xef)](_0x9ea296[_0x5a8df2(0xf6)]);case'version':return _0x5a8df2(0x13d)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762['green'](_0x9ea296[_0x5a8df2(0xf6)]);case _0x5a8df2(0x129):default:return _0x5a8df2(0xf4)+a47_0x11c762[_0x5a8df2(0x133)](_0x58133d)+_0x5a8df2(0x136)+a47_0x11c762[_0x5a8df2(0xef)](_0x9ea296[_0x5a8df2(0xf6)]);}}function repairCurrentBuiltinSkill(){const _0x8ec048=a47_0x307640;console[_0x8ec048(0x118)](a47_0x11c762[_0x8ec048(0x105)](_0x8ec048(0x11d)));const _0x30611b=installBuiltinSkill();if(_0x30611b['ok']){console[_0x8ec048(0x118)](a47_0x11c762['gray'](_0x8ec048(0xf8)+_0x30611b['skillVersion']+_0x8ec048(0x10e)));return;}throw CliErrors[_0x8ec048(0x124)](_0x8ec048(0x115)+_0x30611b[_0x8ec048(0x149)]+_0x8ec048(0x144)+(_0x30611b['error']||_0x8ec048(0x148)),'Run:\x20'+_0x30611b[_0x8ec048(0x11f)]+_0x8ec048(0x147)+CLI_BIN_NAME+_0x8ec048(0x13f));}function verifyUpdatedBuiltinSkill(_0x344ab5){const _0x8e073f=a47_0x307640,_0x45e468=inspectInstalledBuiltinSkillVersion(_0x344ab5);if(_0x45e468['state']===_0x8e073f(0x121)){console[_0x8e073f(0x118)](a47_0x11c762['gray'](_0x8e073f(0xf8)+_0x344ab5+_0x8e073f(0x10e)));return;}const _0x1b8b81=_0x45e468[_0x8e073f(0x134)]?_0x8e073f(0xf0)+_0x344ab5+_0x8e073f(0x131)+_0x45e468[_0x8e073f(0x134)]:'expected\x20'+_0x344ab5+_0x8e073f(0x11b)+_0x45e468[_0x8e073f(0x13a)];throw CliErrors[_0x8e073f(0x124)](_0x8e073f(0x142)+_0x344ab5+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x1b8b81,_0x8e073f(0x100)+_0x45e468[_0x8e073f(0x11f)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x8e073f(0x13f));}async function execute(_0x3abd58){const _0x54204c=a47_0x307640;await validateUpdateFlags(_0x3abd58);const _0x953d05=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x953d05);const _0x407153=a47_0x4fb3f1(_0x54204c(0x114))['start'](),_0x222d02=await resolveTargetVersion(_0x3abd58);if(!_0x222d02){const _0x6aea8f=_0x3abd58[_0x54204c(0x137)](_0x54204c(0x109))?_0x54204c(0x11e):_0x54204c(0x103);_0x407153[_0x54204c(0x111)](_0x6aea8f);throw CliErrors['apiError'](_0x6aea8f,_0x54204c(0x146)+NPM_PACKAGE_NAME+'@'+(_0x3abd58[_0x54204c(0x137)](_0x54204c(0x109))?_0x54204c(0x109):_0x54204c(0x129)));}const _0x4d586a=a47_0x31f3f0[_0x54204c(0x12d)](VERSION),_0x3e5ded=a47_0x31f3f0[_0x54204c(0x12d)](_0x222d02['version']);if(!_0x4d586a||!_0x3e5ded){_0x407153[_0x54204c(0x111)]('Version\x20comparison\x20failed');throw CliErrors[_0x54204c(0x124)](_0x54204c(0xff),_0x54204c(0x102)+CLI_BIN_NAME+_0x54204c(0x13c));}if(!shouldInstallTarget(_0x4d586a,_0x222d02)){const _0x5c79b9=_0x222d02['source']===_0x54204c(0xf6)?_0x54204c(0x10c)+_0x222d02[_0x54204c(0xf6)]+')':a47_0x31f3f0['gt'](_0x4d586a,_0x3e5ded)?_0x54204c(0x12c)+_0x953d05+_0x54204c(0x141)+_0x222d02[_0x54204c(0xf6)]:_0x54204c(0xfe)+_0x222d02[_0x54204c(0xf6)]+')';return _0x407153[_0x54204c(0xf1)](_0x5c79b9),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x407153['info'](getInstallPlanLabel(_0x953d05,_0x222d02));const _0x271f7a=detectPackageManager(),_0x40cfa8=_0x271f7a===_0x54204c(0x107)?resolveNpmBin(_0x54204c(0x107)):_0x271f7a,_0x5c5891=a47_0x4fb3f1(_0x54204c(0x13e)+_0x271f7a+_0x54204c(0xf3))['start']();try{await execa(_0x40cfa8,[_0x54204c(0x132),'-g',NPM_PACKAGE_NAME+'@'+_0x222d02[_0x54204c(0xf6)]],{'stdio':_0x54204c(0x110)}),_0x5c5891['succeed']('Updated\x20to\x20v'+_0x222d02[_0x54204c(0xf6)]),console['log'](a47_0x11c762['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x4a7d70){_0x5c5891['fail'](_0x54204c(0x106));throw CliErrors[_0x54204c(0x124)](_0x54204c(0x138)+(_0x4a7d70 instanceof Error?_0x4a7d70[_0x54204c(0x12e)]:String(_0x4a7d70)),_0x54204c(0xf5)+_0x271f7a+_0x54204c(0xfa)+NPM_PACKAGE_NAME+'@'+_0x222d02[_0x54204c(0xf6)]);}return verifyUpdatedBuiltinSkill(_0x222d02['version']),{'ok':!![]};}export const updateDefinition={'service':a47_0x307640(0x145),'command':a47_0x307640(0x120),'description':a47_0x307640(0x128),'risk':a47_0x307640(0x10b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0xbb5867,_0x1aa7a8){const _0x4cb65a=a48_0x13ec,_0x5d63ad=_0xbb5867();while(!![]){try{const _0x686b17=-parseInt(_0x4cb65a(0x1f8))/0x1*(-parseInt(_0x4cb65a(0x1f4))/0x2)+-parseInt(_0x4cb65a(0x1f9))/0x3*(-parseInt(_0x4cb65a(0x1f7))/0x4)+parseInt(_0x4cb65a(0x1f1))/0x5+-parseInt(_0x4cb65a(0x1f3))/0x6+-parseInt(_0x4cb65a(0x1f6))/0x7+parseInt(_0x4cb65a(0x1f5))/0x8+-parseInt(_0x4cb65a(0x1f2))/0x9;if(_0x686b17===_0x1aa7a8)break;else _0x5d63ad['push'](_0x5d63ad['shift']());}catch(_0x2dfac9){_0x5d63ad['push'](_0x5d63ad['shift']());}}}(a48_0x2b1d,0x3bdac));import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x2b1d(){const _0x392032=['1402360wbFCdT','1952552FegmlU','8cdmFUI','941XNVsOO','733509euQwkD','1339095VObDjP','4747950zKHOPC','1998546HBulKE','962RTTFuA'];a48_0x2b1d=function(){return _0x392032;};return a48_0x2b1d();}function a48_0x13ec(_0x8e5e9a,_0x227883){_0x8e5e9a=_0x8e5e9a-0x1f1;const _0x2b1d12=a48_0x2b1d();let _0x13ec17=_0x2b1d12[_0x8e5e9a];return _0x13ec17;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x279e81,_0xd7890f){const _0x1d6312=a48_0x3dec,_0x4cf906=_0x279e81();while(!![]){try{const _0x22b10a=-parseInt(_0x1d6312(0x1a1))/0x1+parseInt(_0x1d6312(0x19f))/0x2*(-parseInt(_0x1d6312(0x1a3))/0x3)+-parseInt(_0x1d6312(0x19c))/0x4*(parseInt(_0x1d6312(0x1a0))/0x5)+-parseInt(_0x1d6312(0x1a2))/0x6+parseInt(_0x1d6312(0x19e))/0x7+-parseInt(_0x1d6312(0x1a5))/0x8+-parseInt(_0x1d6312(0x19d))/0x9*(-parseInt(_0x1d6312(0x1a4))/0xa);if(_0x22b10a===_0xd7890f)break;else _0x4cf906['push'](_0x4cf906['shift']());}catch(_0x542e9e){_0x4cf906['push'](_0x4cf906['shift']());}}}(a48_0x1207,0xc96c1));import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x3dec(_0x505e3f,_0x1571eb){_0x505e3f=_0x505e3f-0x19c;const _0x120780=a48_0x1207();let _0x3decca=_0x120780[_0x505e3f];return _0x3decca;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a48_0x1207(){const _0x4d8cde=['3jFjVhk','20yNyFXf','12196440XpXUuA','9184jJQzzK','17356203sQOOXD','9421251clgZkf','2565962mfRbGA','1195GvRSOJ','879632LXbOvM','851340HhobJa'];a48_0x1207=function(){return _0x4d8cde;};return a48_0x1207();}
@@ -1 +1 @@
1
- function a49_0x19ee(_0x1f0388,_0x2dad64){_0x1f0388=_0x1f0388-0xd2;const _0x3309ab=a49_0x3309();let _0x19eea9=_0x3309ab[_0x1f0388];return _0x19eea9;}const a49_0x17e925=a49_0x19ee;(function(_0x2ca265,_0xcd49f1){const _0x200499=a49_0x19ee,_0x2c1b02=_0x2ca265();while(!![]){try{const _0x494f02=-parseInt(_0x200499(0xe6))/0x1*(-parseInt(_0x200499(0xd4))/0x2)+parseInt(_0x200499(0xdd))/0x3+-parseInt(_0x200499(0xd2))/0x4*(parseInt(_0x200499(0xdf))/0x5)+parseInt(_0x200499(0xe7))/0x6*(-parseInt(_0x200499(0xde))/0x7)+-parseInt(_0x200499(0xd6))/0x8*(-parseInt(_0x200499(0xea))/0x9)+parseInt(_0x200499(0xd5))/0xa+parseInt(_0x200499(0xe3))/0xb*(parseInt(_0x200499(0xdb))/0xc);if(_0x494f02===_0xcd49f1)break;else _0x2c1b02['push'](_0x2c1b02['shift']());}catch(_0x430ddc){_0x2c1b02['push'](_0x2c1b02['shift']());}}}(a49_0x3309,0x532b8));function a49_0x3309(){const _0x524636=['1535418klptrK','161etokVy','5OVDCVb','skip-imports','operation','read','262515rjOMzo','name','str','1303NEDbOq','170862uDjopU','bool','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1701asCsxF','1332944kXXgxc','appCode','188RCicDu','598250hlQvUE','13736kDcZtk','tableName','codegen','string','code','156QWslGk','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'];a49_0x3309=function(){return _0x524636;};return a49_0x3309();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x17e925(0xd8),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a49_0x17e925(0xe2),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a49_0x17e925(0xd9),'description':a49_0x17e925(0xdc)},{'name':a49_0x17e925(0xe1),'type':a49_0x17e925(0xd9),'required':!![],'description':a49_0x17e925(0xe9)},{'name':a49_0x17e925(0xe0),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x47f891){const _0x1592ba=a49_0x17e925,{dataset:_0x13682f,operation:_0x2a32db}=await getOperationDetail(_0x47f891[_0x1592ba(0xd3)],_0x47f891['str']('code'),_0x47f891[_0x1592ba(0xe5)]('operation')),_0x1fcc72=generateSdkCode(_0x13682f,_0x2a32db,{'includeImports':!_0x47f891[_0x1592ba(0xe8)](_0x1592ba(0xe0))});return{'ok':!![],'data':{'dataset':{'name':_0x13682f[_0x1592ba(0xe4)],'code':_0x13682f[_0x1592ba(0xda)],'tableName':_0x13682f[_0x1592ba(0xd7)]},'operation':_0x47f891['str']('operation'),'code':_0x1fcc72}};}};
1
+ const a49_0x29029a=a49_0xeab1;(function(_0x27f4b0,_0x4409c0){const _0x5784c7=a49_0xeab1,_0x15b496=_0x27f4b0();while(!![]){try{const _0x4eba4c=-parseInt(_0x5784c7(0xad))/0x1*(-parseInt(_0x5784c7(0xae))/0x2)+parseInt(_0x5784c7(0xa0))/0x3+parseInt(_0x5784c7(0xa8))/0x4+parseInt(_0x5784c7(0xab))/0x5+-parseInt(_0x5784c7(0x9c))/0x6*(parseInt(_0x5784c7(0xa4))/0x7)+-parseInt(_0x5784c7(0xaa))/0x8+-parseInt(_0x5784c7(0xa7))/0x9*(-parseInt(_0x5784c7(0xaf))/0xa);if(_0x4eba4c===_0x4409c0)break;else _0x15b496['push'](_0x15b496['shift']());}catch(_0x21a00b){_0x15b496['push'](_0x15b496['shift']());}}}(a49_0x17fc,0x42f15));function a49_0xeab1(_0x59db41,_0x46de41){_0x59db41=_0x59db41-0x9b;const _0x17fccd=a49_0x17fc();let _0xeab195=_0x17fccd[_0x59db41];return _0xeab195;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x29029a(0x9b),'command':a49_0x29029a(0xb0),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a49_0x29029a(0x9e),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x29029a(0x9f),'type':'string','description':a49_0x29029a(0xb1)},{'name':a49_0x29029a(0xb2),'type':a49_0x29029a(0xa2),'required':!![],'description':a49_0x29029a(0xa5)},{'name':a49_0x29029a(0xa9),'type':a49_0x29029a(0xac),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x447165){const _0x32c13d=a49_0x29029a,{dataset:_0x5437ac,operation:_0x1aef10}=await getOperationDetail(_0x447165[_0x32c13d(0xa1)],_0x447165['str']('code'),_0x447165[_0x32c13d(0xb3)](_0x32c13d(0xb2))),_0x5aa28c=generateSdkCode(_0x5437ac,_0x1aef10,{'includeImports':!_0x447165[_0x32c13d(0xa3)](_0x32c13d(0xa9))});return{'ok':!![],'data':{'dataset':{'name':_0x5437ac['name'],'code':_0x5437ac[_0x32c13d(0xa6)],'tableName':_0x5437ac[_0x32c13d(0x9d)]},'operation':_0x447165[_0x32c13d(0xb3)]('operation'),'code':_0x5aa28c}};}};function a49_0x17fc(){const _0x2dc7d5=['alias','95871jetavR','appCode','string','bool','2251053MShezZ','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','code','2116278HQaYiu','176772VvQPGo','skip-imports','1483552nFUMpo','2131495OlKyPm','boolean','1GtapIs','87258tipCBc','10VEDFoT','sdk','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','operation','str','codegen','6cwprej','tableName','read'];a49_0x17fc=function(){return _0x2dc7d5;};return a49_0x17fc();}
@@ -1 +1 @@
1
- const a50_0x1d5679=a50_0x3538;(function(_0x3bf007,_0x125ec1){const _0x5cf6f4=a50_0x3538,_0x30d05f=_0x3bf007();while(!![]){try{const _0x3d9519=parseInt(_0x5cf6f4(0x1a5))/0x1+-parseInt(_0x5cf6f4(0x1ab))/0x2+-parseInt(_0x5cf6f4(0x1ac))/0x3+-parseInt(_0x5cf6f4(0x1a8))/0x4+-parseInt(_0x5cf6f4(0x1ad))/0x5+-parseInt(_0x5cf6f4(0x1a2))/0x6+parseInt(_0x5cf6f4(0x1b1))/0x7;if(_0x3d9519===_0x125ec1)break;else _0x30d05f['push'](_0x30d05f['shift']());}catch(_0x56442a){_0x30d05f['push'](_0x30d05f['shift']());}}}(a50_0x4a5a,0x8f07f));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x3538(_0x414f6e,_0x126ad0){_0x414f6e=_0x414f6e-0x1a2;const _0x4a5aea=a50_0x4a5a();let _0x3538d4=_0x4a5aea[_0x414f6e];return _0x3538d4;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a50_0x4a5a(){const _0x653d9b=['no-imports','sdk','Omit\x20import\x20statements\x20from\x20generated\x20code','14108647OfFwvL','sqlCode','string','4729602MSfEcD','sqlcode','bool','1041022nCnMpl','codegen','appCode','1901208RYLaae','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sqlName','1002146gCtwXl','359283FMKtGh','2931425QmePYX'];a50_0x4a5a=function(){return _0x653d9b;};return a50_0x4a5a();}export const codegenSql={'service':a50_0x1d5679(0x1a6),'command':'sql','description':a50_0x1d5679(0x1a9),'risk':'read','flags':[SQLCODE_FLAG,{'name':'target','type':a50_0x1d5679(0x1b3),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a50_0x1d5679(0x1af),'enum':[a50_0x1d5679(0x1af),'bff']},{'name':a50_0x1d5679(0x1ae),'type':'boolean','description':a50_0x1d5679(0x1b0)}],async 'execute'(_0x4a57a1){const _0x468885=a50_0x1d5679,_0x19e21d=await getSqlQueryInfo(_0x4a57a1[_0x468885(0x1a7)],_0x4a57a1['str'](_0x468885(0x1a3))),_0x3c1bf6=_0x4a57a1['str']('target')||'sdk',_0x39ab0f=generateSqlCodeTemplate(_0x19e21d,{'target':_0x3c1bf6,'includeImports':!_0x4a57a1[_0x468885(0x1a4)](_0x468885(0x1ae))});return{'ok':!![],'data':{'sqlCode':_0x19e21d[_0x468885(0x1b2)],'sqlName':_0x19e21d[_0x468885(0x1aa)],'target':_0x3c1bf6,'code':_0x39ab0f}};}};
1
+ const a50_0x5a95e6=a50_0x102f;(function(_0x4a18d4,_0x9fad57){const _0xaf74bc=a50_0x102f,_0x4b30df=_0x4a18d4();while(!![]){try{const _0x594ec7=parseInt(_0xaf74bc(0x7e))/0x1*(-parseInt(_0xaf74bc(0x74))/0x2)+parseInt(_0xaf74bc(0x6f))/0x3*(parseInt(_0xaf74bc(0x78))/0x4)+parseInt(_0xaf74bc(0x7d))/0x5+-parseInt(_0xaf74bc(0x6b))/0x6*(-parseInt(_0xaf74bc(0x72))/0x7)+parseInt(_0xaf74bc(0x7b))/0x8+parseInt(_0xaf74bc(0x6a))/0x9+-parseInt(_0xaf74bc(0x6d))/0xa*(parseInt(_0xaf74bc(0x6e))/0xb);if(_0x594ec7===_0x9fad57)break;else _0x4b30df['push'](_0x4b30df['shift']());}catch(_0x1cbbba){_0x4b30df['push'](_0x4b30df['shift']());}}}(a50_0xb68d,0x356b8));function a50_0x102f(_0x130cd9,_0x5ac7c3){_0x130cd9=_0x130cd9-0x69;const _0xb68d5f=a50_0xb68d();let _0x102fda=_0xb68d5f[_0x130cd9];return _0x102fda;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x5a95e6(0x7f),'command':a50_0x5a95e6(0x79),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':'read','flags':[SQLCODE_FLAG,{'name':'target','type':'string','description':a50_0x5a95e6(0x73),'default':a50_0x5a95e6(0x70),'enum':['sdk',a50_0x5a95e6(0x71)]},{'name':a50_0x5a95e6(0x7a),'type':a50_0x5a95e6(0x69),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x1e1bd0){const _0x2d9ccb=a50_0x5a95e6,_0x567b05=await getSqlQueryInfo(_0x1e1bd0[_0x2d9ccb(0x77)],_0x1e1bd0[_0x2d9ccb(0x7c)]('sqlcode')),_0xc9b7bd=_0x1e1bd0[_0x2d9ccb(0x7c)](_0x2d9ccb(0x6c))||_0x2d9ccb(0x70),_0x38f8a3=generateSqlCodeTemplate(_0x567b05,{'target':_0xc9b7bd,'includeImports':!_0x1e1bd0[_0x2d9ccb(0x75)](_0x2d9ccb(0x7a))});return{'ok':!![],'data':{'sqlCode':_0x567b05['sqlCode'],'sqlName':_0x567b05[_0x2d9ccb(0x76)],'target':_0xc9b7bd,'code':_0x38f8a3}};}};function a50_0xb68d(){const _0x6292ee=['bff','3563LTJqKX','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','10PWyMmP','bool','sqlName','appCode','3472pgJkcg','sql','no-imports','293176gUNrrc','str','2076550qEXayI','24133XAmwBa','codegen','boolean','2528586Lgnphg','3174KJJRCl','target','4570VBHpDK','16181FwHVYC','33ykQBHq','sdk'];a50_0xb68d=function(){return _0x6292ee;};return a50_0xb68d();}
@@ -1 +1 @@
1
- (function(_0x38a086,_0x865398){const _0x270fba=a51_0x204e,_0x5dfcb3=_0x38a086();while(!![]){try{const _0x400d35=-parseInt(_0x270fba(0xb9))/0x1*(parseInt(_0x270fba(0xd1))/0x2)+-parseInt(_0x270fba(0xe3))/0x3+parseInt(_0x270fba(0xe0))/0x4*(-parseInt(_0x270fba(0xbd))/0x5)+parseInt(_0x270fba(0xc6))/0x6*(-parseInt(_0x270fba(0xc7))/0x7)+-parseInt(_0x270fba(0xe8))/0x8*(-parseInt(_0x270fba(0xe7))/0x9)+parseInt(_0x270fba(0xd9))/0xa*(-parseInt(_0x270fba(0xe4))/0xb)+parseInt(_0x270fba(0xc1))/0xc;if(_0x400d35===_0x865398)break;else _0x5dfcb3['push'](_0x5dfcb3['shift']());}catch(_0x15b6ad){_0x5dfcb3['push'](_0x5dfcb3['shift']());}}}(a51_0x499d,0xc8246));import{CliErrors}from'../../errors.js';function a51_0x204e(_0x60aee3,_0x6460bf){_0x60aee3=_0x60aee3-0xb9;const _0x499d1c=a51_0x499d();let _0x204ec9=_0x499d1c[_0x60aee3];return _0x204ec9;}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 _0x4f8a77=a51_0x204e;return[{'name':_0x4f8a77(0xcb),'type':_0x4f8a77(0xd7),'description':_0x4f8a77(0xdf),'required':!![]},{'name':_0x4f8a77(0xc8),'type':_0x4f8a77(0xe9),'description':_0x4f8a77(0xdb),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x270dba=a51_0x204e;return[{'name':_0x270dba(0xc8),'type':_0x270dba(0xe9),'description':_0x270dba(0xdb),'default':![]}];}export async function validateAppName(_0x4ec345,_0x5f488a){const _0x1d3fab=a51_0x204e,_0x35e457=_0x4ec345[_0x1d3fab(0xc9)][0x0]?.['trim']();if(!_0x35e457)throw CliErrors['validation']('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x5f488a+_0x1d3fab(0xc2));}export async function runAppAdd(_0x416957,_0x509f9c){const _0x5be9d2=a51_0x204e,_0x25e24a=_0x416957[_0x5be9d2(0xc9)][0x0]?.['trim']();if(!_0x25e24a)throw CliErrors[_0x5be9d2(0xca)]('Missing\x20app\x20name.','Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x509f9c+_0x5be9d2(0xbe));const _0x2a8dff=_0x416957[_0x5be9d2(0xd0)](_0x5be9d2(0xcb));if(!_0x2a8dff)throw CliErrors['flagMissing'](_0x5be9d2(0xcb),_0x5be9d2(0xbf)+CLI_BIN_NAME+'\x20'+_0x509f9c+_0x5be9d2(0xbe));const _0x535c69={'global':_0x416957[_0x5be9d2(0xc4)](_0x5be9d2(0xc8))},_0x379c92=readConfig(_0x535c69);if(!_0x379c92[_0x5be9d2(0xe6)])_0x379c92[_0x5be9d2(0xe6)]={};const _0x2c9c77={'appcode':_0x2a8dff,...collectAppProfileOverrides(_0x264472=>_0x416957[_0x5be9d2(0xd0)](_0x264472))},_0x13a85a=_0x379c92[_0x5be9d2(0xe6)],_0x28c166=Object[_0x5be9d2(0xd5)](_0x13a85a),_0x2117ec=typeof _0x379c92[_0x5be9d2(0xcf)]==='string'&&_0x13a85a[_0x379c92['defaultApp']]?_0x379c92['defaultApp']:_0x28c166['length']===0x1?_0x28c166[0x0]:undefined,_0x14f433=!!_0x13a85a[_0x25e24a];_0x13a85a[_0x25e24a]=_0x2c9c77;const _0x192330=normalizeStoredDefaultApp(_0x379c92,_0x2117ec);writeConfig(_0x379c92,_0x535c69);const _0x14f351=!_0x14f433&&_0x192330?_0x5be9d2(0xd4)+_0x192330+'\x22.':'',_0x4b5458=(_0x14f433?_0x5be9d2(0xe1):_0x5be9d2(0xe5))+_0x5be9d2(0xcd)+_0x25e24a+_0x5be9d2(0xde)+_0x2a8dff+')'+scopeLabel(_0x535c69)+'.'+_0x14f351;return{'ok':!![],'message':_0x4b5458};}function a51_0x499d(){const _0x1f06b4=['2194682MRBRtq','global','args','validation','appcode','project','\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','defaultApp','str','2fEpOmT','Removed\x20app\x20\x22','\x20config.','\x20Default\x20app\x20is\x20\x22','keys','globalConfig','string','\x20Default\x20app\x20changed\x20to\x20\x22','507360xePUzs','\x22\x20is\x20selected\x20automatically.','Use\x20global\x20config\x20scope','\x22\x20not\x20found.','App\x20\x22','\x22\x20(appcode:\x20','App\x20code','92920GUcsEO','Updated','length','3095022EivlSe','242ShouHR','Added','apps','5682825JjVKyE','8sIQGDl','boolean','716893WPwwbF','projectConfig','both','Missing\x20app\x20name.','100GyVrCM','\x20<name>\x20--appcode\x20<code>','Usage:\x20','object','45974904avfgFi','\x20<name>','\x20Remaining\x20app\x20\x22','bool','\x20<name>\x20[--global]','6TACoQh'];a51_0x499d=function(){return _0x1f06b4;};return a51_0x499d();}export async function runAppRemove(_0x16e319,_0x2024bb){const _0x4aeb09=a51_0x204e,_0x4c73d0=_0x16e319[_0x4aeb09(0xc9)][0x0]?.['trim']();if(!_0x4c73d0)throw CliErrors['validation'](_0x4aeb09(0xbc),_0x4aeb09(0xbf)+CLI_BIN_NAME+'\x20'+_0x2024bb+_0x4aeb09(0xc5));const _0x35c10b=_0x16e319[_0x4aeb09(0xc4)]('global'),{config:_0x3963a3,layers:_0x4a01cc}=readRawConfigWithLayers(),_0x374853=_0x3963a3[_0x4aeb09(0xe6)]??{};if(!_0x374853[_0x4c73d0])throw CliErrors['validation'](_0x4aeb09(0xdd)+_0x4c73d0+_0x4aeb09(0xdc));const _0x1d5194=_0x4a01cc[_0x4aeb09(0xd6)][_0x4aeb09(0xe6)]&&typeof _0x4a01cc[_0x4aeb09(0xd6)][_0x4aeb09(0xe6)]===_0x4aeb09(0xc0)?_0x4a01cc[_0x4aeb09(0xd6)][_0x4aeb09(0xe6)]:{},_0x4d0c26=_0x4a01cc[_0x4aeb09(0xba)][_0x4aeb09(0xe6)]&&typeof _0x4a01cc[_0x4aeb09(0xba)][_0x4aeb09(0xe6)]===_0x4aeb09(0xc0)?_0x4a01cc[_0x4aeb09(0xba)][_0x4aeb09(0xe6)]:{},_0x23f538=appDefinedIn(_0x4c73d0,_0x1d5194,_0x4d0c26),_0x49037e=resolveAppScopeForWrite(_0x4c73d0,_0x35c10b,_0x4a01cc),_0x82499d={'global':_0x49037e==='global'},_0x10dfe4=readConfig(_0x82499d),_0x19b0cc=_0x10dfe4[_0x4aeb09(0xe6)];if(!_0x19b0cc||!_0x19b0cc[_0x4c73d0])throw CliErrors[_0x4aeb09(0xca)]('App\x20\x22'+_0x4c73d0+_0x4aeb09(0xdc));delete _0x19b0cc[_0x4c73d0];let _0x5cca73='';const _0x2362e6=typeof _0x10dfe4[_0x4aeb09(0xcf)]==='string'?_0x10dfe4['defaultApp']:undefined,_0x2c62e6=Object['keys'](_0x19b0cc),_0x37091d=_0x2362e6===_0x4c73d0?_0x2c62e6[0x0]:_0x2362e6,_0x1e9bcb=normalizeStoredDefaultApp(_0x10dfe4,_0x37091d);if(_0x2362e6===_0x4c73d0&&_0x2c62e6[_0x4aeb09(0xe2)]===0x1)_0x5cca73=_0x4aeb09(0xc3)+_0x2c62e6[0x0]+_0x4aeb09(0xda);else _0x2362e6===_0x4c73d0&&_0x1e9bcb&&(_0x5cca73=_0x4aeb09(0xd8)+_0x1e9bcb+'\x22.');Object[_0x4aeb09(0xd5)](_0x19b0cc)['length']===0x0&&(delete _0x10dfe4[_0x4aeb09(0xe6)],delete _0x10dfe4[_0x4aeb09(0xcf)]);writeConfig(_0x10dfe4,_0x82499d);const _0x4ce04c=_0x23f538===_0x4aeb09(0xbb)?'\x20Note:\x20app\x20\x22'+_0x4c73d0+_0x4aeb09(0xce)+(_0x49037e===_0x4aeb09(0xcc)?_0x4aeb09(0xc8):_0x4aeb09(0xcc))+_0x4aeb09(0xd3):'';return{'ok':!![],'message':_0x4aeb09(0xd2)+_0x4c73d0+'\x22'+scopeLabel(_0x82499d)+'.'+_0x5cca73+_0x4ce04c};}
1
+ (function(_0x54c279,_0x106fef){const _0x21a8cf=a51_0x3dd2,_0xacffcb=_0x54c279();while(!![]){try{const _0x349ca9=-parseInt(_0x21a8cf(0x19f))/0x1*(parseInt(_0x21a8cf(0x1bd))/0x2)+-parseInt(_0x21a8cf(0x1ae))/0x3+-parseInt(_0x21a8cf(0x1af))/0x4+-parseInt(_0x21a8cf(0x1c2))/0x5*(-parseInt(_0x21a8cf(0x1aa))/0x6)+-parseInt(_0x21a8cf(0x19d))/0x7+parseInt(_0x21a8cf(0x1ab))/0x8*(parseInt(_0x21a8cf(0x1b0))/0x9)+parseInt(_0x21a8cf(0x1bb))/0xa*(parseInt(_0x21a8cf(0x1a3))/0xb);if(_0x349ca9===_0x106fef)break;else _0xacffcb['push'](_0xacffcb['shift']());}catch(_0x4af94f){_0xacffcb['push'](_0xacffcb['shift']());}}}(a51_0x125f,0xf36fe));function a51_0x3dd2(_0xe68930,_0x330253){_0xe68930=_0xe68930-0x196;const _0x125f4d=a51_0x125f();let _0x3dd216=_0x125f4d[_0xe68930];return _0x3dd216;}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 _0x3a111d=a51_0x3dd2;return[{'name':'appcode','type':_0x3a111d(0x1b9),'description':_0x3a111d(0x1a0),'required':!![]},{'name':'global','type':_0x3a111d(0x199),'description':_0x3a111d(0x1a6),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x4faed7=a51_0x3dd2;return[{'name':_0x4faed7(0x1c1),'type':_0x4faed7(0x199),'description':_0x4faed7(0x1a6),'default':![]}];}export async function validateAppName(_0x337033,_0x41e0f0){const _0x4e1b4c=a51_0x3dd2,_0x1a103d=_0x337033[_0x4e1b4c(0x1c0)][0x0]?.[_0x4e1b4c(0x19c)]();if(!_0x1a103d)throw CliErrors[_0x4e1b4c(0x1b6)](_0x4e1b4c(0x1a2),_0x4e1b4c(0x1c3)+CLI_BIN_NAME+'\x20'+_0x41e0f0+_0x4e1b4c(0x198));}export async function runAppAdd(_0x3385d6,_0x3d8a6c){const _0x252a08=a51_0x3dd2,_0xb08abf=_0x3385d6['args'][0x0]?.[_0x252a08(0x19c)]();if(!_0xb08abf)throw CliErrors[_0x252a08(0x1b6)](_0x252a08(0x1a2),_0x252a08(0x1c3)+CLI_BIN_NAME+'\x20'+_0x3d8a6c+'\x20<name>\x20--appcode\x20<code>');const _0x2976d0=_0x3385d6[_0x252a08(0x19b)](_0x252a08(0x1ac));if(!_0x2976d0)throw CliErrors[_0x252a08(0x1b1)](_0x252a08(0x1ac),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x3d8a6c+_0x252a08(0x1a8));const _0x3715ec={'global':_0x3385d6[_0x252a08(0x19a)](_0x252a08(0x1c1))},_0x5d834e=readConfig(_0x3715ec);if(!_0x5d834e['apps'])_0x5d834e['apps']={};const _0x43380d={'appcode':_0x2976d0,...collectAppProfileOverrides(_0x1b7723=>_0x3385d6[_0x252a08(0x19b)](_0x1b7723))},_0x5f54e4=_0x5d834e[_0x252a08(0x1ad)],_0x599aed=Object[_0x252a08(0x197)](_0x5f54e4),_0x5c0833=typeof _0x5d834e[_0x252a08(0x1bc)]===_0x252a08(0x1b9)&&_0x5f54e4[_0x5d834e['defaultApp']]?_0x5d834e[_0x252a08(0x1bc)]:_0x599aed[_0x252a08(0x1a5)]===0x1?_0x599aed[0x0]:undefined,_0x4f9472=!!_0x5f54e4[_0xb08abf];_0x5f54e4[_0xb08abf]=_0x43380d;const _0x27b5fb=normalizeStoredDefaultApp(_0x5d834e,_0x5c0833);writeConfig(_0x5d834e,_0x3715ec);const _0x485e33=!_0x4f9472&&_0x27b5fb?_0x252a08(0x1b7)+_0x27b5fb+'\x22.':'',_0x391fb9=(_0x4f9472?'Updated':'Added')+_0x252a08(0x1b3)+_0xb08abf+_0x252a08(0x1a1)+_0x2976d0+')'+scopeLabel(_0x3715ec)+'.'+_0x485e33;return{'ok':!![],'message':_0x391fb9};}export async function runAppRemove(_0x1bf964,_0x4dbb26){const _0x2a0751=a51_0x3dd2,_0x1817f8=_0x1bf964[_0x2a0751(0x1c0)][0x0]?.[_0x2a0751(0x19c)]();if(!_0x1817f8)throw CliErrors['validation'](_0x2a0751(0x1a2),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x4dbb26+_0x2a0751(0x1b2));const _0x191ad0=_0x1bf964[_0x2a0751(0x19a)](_0x2a0751(0x1c1)),{config:_0x1d4b37,layers:_0x32076d}=readRawConfigWithLayers(),_0x2e8688=_0x1d4b37[_0x2a0751(0x1ad)]??{};if(!_0x2e8688[_0x1817f8])throw CliErrors['validation']('App\x20\x22'+_0x1817f8+_0x2a0751(0x1a9));const _0x23ae4f=_0x32076d[_0x2a0751(0x19e)][_0x2a0751(0x1ad)]&&typeof _0x32076d[_0x2a0751(0x19e)]['apps']===_0x2a0751(0x1a4)?_0x32076d['globalConfig'][_0x2a0751(0x1ad)]:{},_0x442a18=_0x32076d['projectConfig'][_0x2a0751(0x1ad)]&&typeof _0x32076d['projectConfig'][_0x2a0751(0x1ad)]===_0x2a0751(0x1a4)?_0x32076d[_0x2a0751(0x1b8)][_0x2a0751(0x1ad)]:{},_0x49b8e5=appDefinedIn(_0x1817f8,_0x23ae4f,_0x442a18),_0x921b5a=resolveAppScopeForWrite(_0x1817f8,_0x191ad0,_0x32076d),_0x352be7={'global':_0x921b5a===_0x2a0751(0x1c1)},_0x12ae1a=readConfig(_0x352be7),_0x5c96c9=_0x12ae1a[_0x2a0751(0x1ad)];if(!_0x5c96c9||!_0x5c96c9[_0x1817f8])throw CliErrors[_0x2a0751(0x1b6)]('App\x20\x22'+_0x1817f8+_0x2a0751(0x1a9));delete _0x5c96c9[_0x1817f8];let _0x1e7b10='';const _0x5714b3=typeof _0x12ae1a[_0x2a0751(0x1bc)]===_0x2a0751(0x1b9)?_0x12ae1a[_0x2a0751(0x1bc)]:undefined,_0x3e754c=Object[_0x2a0751(0x197)](_0x5c96c9),_0x49d988=_0x5714b3===_0x1817f8?_0x3e754c[0x0]:_0x5714b3,_0x12b2de=normalizeStoredDefaultApp(_0x12ae1a,_0x49d988);if(_0x5714b3===_0x1817f8&&_0x3e754c[_0x2a0751(0x1a5)]===0x1)_0x1e7b10=_0x2a0751(0x1bf)+_0x3e754c[0x0]+_0x2a0751(0x1be);else _0x5714b3===_0x1817f8&&_0x12b2de&&(_0x1e7b10=_0x2a0751(0x1a7)+_0x12b2de+'\x22.');Object['keys'](_0x5c96c9)['length']===0x0&&(delete _0x12ae1a[_0x2a0751(0x1ad)],delete _0x12ae1a[_0x2a0751(0x1bc)]);writeConfig(_0x12ae1a,_0x352be7);const _0x51eea7=_0x49b8e5===_0x2a0751(0x196)?_0x2a0751(0x1b5)+_0x1817f8+_0x2a0751(0x1b4)+(_0x921b5a==='project'?_0x2a0751(0x1c1):'project')+'\x20config.':'';return{'ok':!![],'message':_0x2a0751(0x1ba)+_0x1817f8+'\x22'+scopeLabel(_0x352be7)+'.'+_0x1e7b10+_0x51eea7};}function a51_0x125f(){const _0x2c9b9b=['3801238AtjeoS','globalConfig','154853ZjiQvy','App\x20code','\x22\x20(appcode:\x20','Missing\x20app\x20name.','1652750YtMaqi','object','length','Use\x20global\x20config\x20scope','\x20Default\x20app\x20changed\x20to\x20\x22','\x20<name>\x20--appcode\x20<code>','\x22\x20not\x20found.','17262RTtVJr','67448FKRXdS','appcode','apps','2573709oaKBGj','1074144nxwdXy','891hlPKRV','flagMissing','\x20<name>\x20[--global]','\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','\x20Note:\x20app\x20\x22','validation','\x20Default\x20app\x20is\x20\x22','projectConfig','string','Removed\x20app\x20\x22','70ZVVVBW','defaultApp','2mqeGry','\x22\x20is\x20selected\x20automatically.','\x20Remaining\x20app\x20\x22','args','global','1625RTspso','Usage:\x20','both','keys','\x20<name>','boolean','bool','str','trim'];a51_0x125f=function(){return _0x2c9b9b;};return a51_0x125f();}
@@ -1 +1 @@
1
- (function(_0x4fcbd3,_0x2101eb){const _0x25771c=a52_0x35c3,_0x10a1b9=_0x4fcbd3();while(!![]){try{const _0x5364d8=parseInt(_0x25771c(0x1ee))/0x1+-parseInt(_0x25771c(0x1ef))/0x2+parseInt(_0x25771c(0x1f9))/0x3+parseInt(_0x25771c(0x1f3))/0x4+-parseInt(_0x25771c(0x1ea))/0x5+-parseInt(_0x25771c(0x1ed))/0x6+parseInt(_0x25771c(0x1f1))/0x7;if(_0x5364d8===_0x2101eb)break;else _0x10a1b9['push'](_0x10a1b9['shift']());}catch(_0x2bf13c){_0x10a1b9['push'](_0x10a1b9['shift']());}}}(a52_0x5368,0xdbca3));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x507a75 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 _0x3e00f0=await input({'message':'App\x20Code:','validate':_0x1177f2=>{const _0x4a5025=a52_0x35c3,_0x3d14de=validateAppcode(_0x1177f2['trim']());return _0x3d14de[_0x4a5025(0x1fc)]||_0x3d14de[_0x4a5025(0x1e1)]||_0x4a5025(0x1eb);}});return _0x3e00f0['trim']();}export async function promptAppSelection(_0x23e98c){const _0x33c5a4=a52_0x35c3,_0x1012ea=[{'name':a52_0x507a75[_0x33c5a4(0x1e7)]('✎\x20Enter\x20appcode\x20manually'),'value':-0x1},..._0x23e98c['map']((_0x384678,_0x44b052)=>({'name':_0x384678['appName']+'\x20\x20'+a52_0x507a75[_0x33c5a4(0x1f4)]('('+_0x384678[_0x33c5a4(0x1f7)]+')'),'value':_0x44b052}))],_0x409de6=await checkbox({'message':_0x33c5a4(0x1e5)+a52_0x507a75['cyan'](_0x23e98c[_0x33c5a4(0x1e4)])+'\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','choices':_0x1012ea,'loop':![]});if(_0x409de6[_0x33c5a4(0x1e2)](-0x1))return _0x33c5a4(0x1de);if(_0x409de6[_0x33c5a4(0x1e4)]===0x0)return _0x33c5a4(0x1de);return _0x409de6['map'](_0x57f555=>_0x23e98c[_0x57f555]);}function a52_0x5368(){const _0x8e1c2b=['1709345WXywnI','Invalid\x20App\x20Code','✎\x20Enter\x20manually','7800702uYoIqX','176944THhYYg','819724rmavvn','No\x20available\x20apps\x20found.','9884546epNlPM','find','4093616jYVtWc','gray','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','skip','appCode','appName','1019043YTurXa','Fetching\x20available\x20apps...','\x20\x20(','valid','App\x20Code:','custom','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','message','includes','Select\x20the\x20app\x20to\x20bind:','length','Found\x20','(Skip;\x20configure\x20later)','yellow','map','✎\x20Enter\x20appcode\x20manually'];a52_0x5368=function(){return _0x8e1c2b;};return a52_0x5368();}export async function promptSingleAppSelection(_0x40708c){const _0x305267=a52_0x35c3,_0x455133=[{'name':a52_0x507a75[_0x305267(0x1f4)](_0x305267(0x1f5)),'value':_0x305267(0x1f6)},{'name':a52_0x507a75['yellow'](_0x305267(0x1e9)),'value':_0x305267(0x1de)},..._0x40708c[_0x305267(0x1e8)](_0x1ed64b=>({'name':_0x1ed64b[_0x305267(0x1f8)]+'\x20\x20'+a52_0x507a75[_0x305267(0x1f4)]('('+_0x1ed64b[_0x305267(0x1f7)]+')'),'value':_0x1ed64b[_0x305267(0x1f7)]}))],_0x2ec66f=await select({'message':_0x305267(0x1e3),'choices':_0x455133});if(_0x2ec66f===_0x305267(0x1f6))return _0x305267(0x1f6);if(_0x2ec66f===_0x305267(0x1de))return _0x305267(0x1de);return _0x40708c[_0x305267(0x1f2)](_0x202f27=>_0x202f27[_0x305267(0x1f7)]===_0x2ec66f);}export async function selectSingleAppcode(_0x28a6ee){const _0x2ff7ed=a52_0x35c3;if(!_0x28a6ee)return writeCliSideChannelLine(a52_0x507a75['gray'](_0x2ff7ed(0x1df))),_fallbackOrSkip();writeCliSideChannelLine(_0x2ff7ed(0x1fa));let _0x4d6a3d;try{_0x4d6a3d=await withActiveCookie(_0x28a6ee,()=>listRemoteApps());}catch(_0x3e3cad){writeCliSideChannelLine(a52_0x507a75[_0x2ff7ed(0x1e7)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x3e3cad instanceof Error)writeCliSideChannelLine(a52_0x507a75['gray'](_0x2ff7ed(0x1fb)+_0x3e3cad[_0x2ff7ed(0x1e1)]+')'));return _fallbackOrSkip();}if(_0x4d6a3d['length']===0x0)return writeCliSideChannelLine(a52_0x507a75[_0x2ff7ed(0x1e7)](_0x2ff7ed(0x1f0))),_fallbackOrSkip();const _0x54ae2=await promptSingleAppSelection(_0x4d6a3d);if(_0x54ae2==='skip')return'';if(_0x54ae2==='custom')return promptCustomAppcode();return _0x54ae2[_0x2ff7ed(0x1f7)];}export async function selectMultipleApps(_0x4e1189){const _0x83b6a7=a52_0x35c3;writeCliSideChannelLine(_0x83b6a7(0x1fa));let _0x279ab3;try{_0x279ab3=await withActiveCookie(_0x4e1189,()=>listRemoteApps());}catch(_0x50e1b3){writeCliSideChannelLine(_0x83b6a7(0x1e0));if(_0x50e1b3 instanceof Error)writeCliSideChannelLine(_0x83b6a7(0x1fb)+_0x50e1b3[_0x83b6a7(0x1e1)]+')');return'custom';}if(_0x279ab3[_0x83b6a7(0x1e4)]===0x0)return writeCliSideChannelLine('\x0aNo\x20available\x20apps\x20found.'),'custom';return promptAppSelection(_0x279ab3);}function a52_0x35c3(_0x3bf0a6,_0x2622b2){_0x3bf0a6=_0x3bf0a6-0x1de;const _0x5368f9=a52_0x5368();let _0x35c378=_0x5368f9[_0x3bf0a6];return _0x35c378;}async function _fallbackOrSkip(){const _0x8a0be5=a52_0x35c3,_0x417bab=await select({'message':_0x8a0be5(0x1fd),'choices':[{'name':a52_0x507a75[_0x8a0be5(0x1f4)](_0x8a0be5(0x1e6)),'value':_0x8a0be5(0x1f6)},{'name':a52_0x507a75['yellow'](_0x8a0be5(0x1ec)),'value':'manual'}]});if(_0x417bab===_0x8a0be5(0x1f6))return'';return promptCustomAppcode();}
1
+ (function(_0x5a61d7,_0x14adf4){const _0x3813e1=a52_0x1d1f,_0x5a3c67=_0x5a61d7();while(!![]){try{const _0x10cda8=-parseInt(_0x3813e1(0x97))/0x1*(parseInt(_0x3813e1(0x78))/0x2)+parseInt(_0x3813e1(0x85))/0x3*(-parseInt(_0x3813e1(0x8f))/0x4)+-parseInt(_0x3813e1(0x75))/0x5+parseInt(_0x3813e1(0x82))/0x6+-parseInt(_0x3813e1(0x74))/0x7+parseInt(_0x3813e1(0x76))/0x8+-parseInt(_0x3813e1(0x87))/0x9*(-parseInt(_0x3813e1(0x80))/0xa);if(_0x10cda8===_0x14adf4)break;else _0x5a3c67['push'](_0x5a3c67['shift']());}catch(_0x53db09){_0x5a3c67['push'](_0x5a3c67['shift']());}}}(a52_0x1118,0x290e7));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x1d02d1 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a52_0x1d1f(_0x481bf8,_0x10233d){_0x481bf8=_0x481bf8-0x74;const _0x11180f=a52_0x1118();let _0x1d1f44=_0x11180f[_0x481bf8];return _0x1d1f44;}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 _0x37b933=a52_0x1d1f,_0x11e9bc=await input({'message':_0x37b933(0x92),'validate':_0x3b9b67=>{const _0x48a10c=_0x37b933,_0x38e59b=validateAppcode(_0x3b9b67[_0x48a10c(0x90)]());return _0x38e59b['valid']||_0x38e59b[_0x48a10c(0x96)]||'Invalid\x20App\x20Code';}});return _0x11e9bc['trim']();}export async function promptAppSelection(_0x28e5d2){const _0x528e5a=a52_0x1d1f,_0x19c217=[{'name':a52_0x1d02d1[_0x528e5a(0x86)]('✎\x20Enter\x20appcode\x20manually'),'value':-0x1},..._0x28e5d2[_0x528e5a(0x88)]((_0x24f8b0,_0xd6a76d)=>({'name':_0x24f8b0[_0x528e5a(0x8b)]+'\x20\x20'+a52_0x1d02d1['gray']('('+_0x24f8b0[_0x528e5a(0x8e)]+')'),'value':_0xd6a76d}))],_0x5da910=await checkbox({'message':_0x528e5a(0x7e)+a52_0x1d02d1[_0x528e5a(0x94)](_0x28e5d2[_0x528e5a(0x95)])+_0x528e5a(0x7f),'choices':_0x19c217,'loop':![]});if(_0x5da910['includes'](-0x1))return _0x528e5a(0x81);if(_0x5da910[_0x528e5a(0x95)]===0x0)return _0x528e5a(0x81);return _0x5da910[_0x528e5a(0x88)](_0x5ee375=>_0x28e5d2[_0x5ee375]);}export async function promptSingleAppSelection(_0x5d9de4){const _0x4a65bc=a52_0x1d1f,_0x906110=[{'name':a52_0x1d02d1['gray'](_0x4a65bc(0x83)),'value':_0x4a65bc(0x93)},{'name':a52_0x1d02d1[_0x4a65bc(0x86)](_0x4a65bc(0x79)),'value':_0x4a65bc(0x81)},..._0x5d9de4['map'](_0x37b45c=>({'name':_0x37b45c['appName']+'\x20\x20'+a52_0x1d02d1['gray']('('+_0x37b45c[_0x4a65bc(0x8e)]+')'),'value':_0x37b45c['appCode']}))],_0x3e1bb4=await select({'message':_0x4a65bc(0x99),'choices':_0x906110});if(_0x3e1bb4===_0x4a65bc(0x93))return _0x4a65bc(0x93);if(_0x3e1bb4===_0x4a65bc(0x81))return _0x4a65bc(0x81);return _0x5d9de4[_0x4a65bc(0x8c)](_0x3641a6=>_0x3641a6[_0x4a65bc(0x8e)]===_0x3e1bb4);}export async function selectSingleAppcode(_0x193724){const _0x2ce5aa=a52_0x1d1f;if(!_0x193724)return writeCliSideChannelLine(a52_0x1d02d1[_0x2ce5aa(0x7b)](_0x2ce5aa(0x91))),_fallbackOrSkip();writeCliSideChannelLine(_0x2ce5aa(0x77));let _0x12bc50;try{_0x12bc50=await withActiveCookie(_0x193724,()=>listRemoteApps());}catch(_0x1b87e8){writeCliSideChannelLine(a52_0x1d02d1[_0x2ce5aa(0x86)](_0x2ce5aa(0x8a)));if(_0x1b87e8 instanceof Error)writeCliSideChannelLine(a52_0x1d02d1[_0x2ce5aa(0x7b)](_0x2ce5aa(0x8d)+_0x1b87e8[_0x2ce5aa(0x96)]+')'));return _fallbackOrSkip();}if(_0x12bc50['length']===0x0)return writeCliSideChannelLine(a52_0x1d02d1['yellow'](_0x2ce5aa(0x7d))),_fallbackOrSkip();const _0x2a4c36=await promptSingleAppSelection(_0x12bc50);if(_0x2a4c36==='skip')return'';if(_0x2a4c36===_0x2ce5aa(0x81))return promptCustomAppcode();return _0x2a4c36[_0x2ce5aa(0x8e)];}function a52_0x1118(){const _0x227cab=['113GCXCPE','✎\x20Enter\x20manually','Select\x20the\x20app\x20to\x20bind:','367507GPDGyC','145540WKavvM','121864aUxxxi','Fetching\x20available\x20apps...','4196EIpPAo','✎\x20Enter\x20appcode\x20manually','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','gray','(Skip;\x20configure\x20later)','No\x20available\x20apps\x20found.','Found\x20','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','1450HEBKLI','custom','1179894XqIWgr','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','manual','811131Yjonub','yellow','33849gvXxTm','map','\x0aNo\x20available\x20apps\x20found.','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','appName','find','\x20\x20(','appCode','4YWRjZx','trim','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','App\x20Code:','skip','cyan','length','message'];a52_0x1118=function(){return _0x227cab;};return a52_0x1118();}export async function selectMultipleApps(_0x50a46e){const _0x3d401e=a52_0x1d1f;writeCliSideChannelLine(_0x3d401e(0x77));let _0x4c9ef7;try{_0x4c9ef7=await withActiveCookie(_0x50a46e,()=>listRemoteApps());}catch(_0x265326){writeCliSideChannelLine(_0x3d401e(0x7a));if(_0x265326 instanceof Error)writeCliSideChannelLine(_0x3d401e(0x8d)+_0x265326['message']+')');return'custom';}if(_0x4c9ef7['length']===0x0)return writeCliSideChannelLine(_0x3d401e(0x89)),_0x3d401e(0x81);return promptAppSelection(_0x4c9ef7);}async function _fallbackOrSkip(){const _0x49d79b=a52_0x1d1f,_0x1a1852=await select({'message':_0x49d79b(0x92),'choices':[{'name':a52_0x1d02d1[_0x49d79b(0x7b)](_0x49d79b(0x7c)),'value':_0x49d79b(0x93)},{'name':a52_0x1d02d1[_0x49d79b(0x86)](_0x49d79b(0x98)),'value':_0x49d79b(0x84)}]});if(_0x1a1852===_0x49d79b(0x93))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a53_0x1d9b8d=a53_0x46cd;(function(_0x4dc9fe,_0x34116d){const _0x1c178f=a53_0x46cd,_0x13962c=_0x4dc9fe();while(!![]){try{const _0x43cf13=parseInt(_0x1c178f(0x174))/0x1+parseInt(_0x1c178f(0x160))/0x2*(-parseInt(_0x1c178f(0x171))/0x3)+parseInt(_0x1c178f(0x169))/0x4+parseInt(_0x1c178f(0x16c))/0x5*(-parseInt(_0x1c178f(0x15d))/0x6)+parseInt(_0x1c178f(0x17b))/0x7+parseInt(_0x1c178f(0x16b))/0x8+parseInt(_0x1c178f(0x175))/0x9*(parseInt(_0x1c178f(0x17c))/0xa);if(_0x43cf13===_0x34116d)break;else _0x13962c['push'](_0x13962c['shift']());}catch(_0x5d2119){_0x13962c['push'](_0x13962c['shift']());}}}(a53_0x4486,0x2a074));function a53_0x4486(){const _0x2993ab=['20379esCzwt','Task\x20','errorMessage','235820aadaNU','1692OIapBF','\x20is\x20pending.','taskId','\x20failed.','\x20is\x20processing.','SUCCESS','525455aHGyVQ','1760RwbrbM','FAILED','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','\x20returned\x20unknown\x20status\x20','559050hnLEGM','\x20failed:\x20','toUpperCase','68czDRxY','PENDING','PROCESSING','\x20--format\x20compress','replace','\x27\x5c\x27\x27','apiError','has','status','154672wmpHtJ','trim','909152GvvSHr','5xZrFsV','Async\x20task\x20','string','\x20task\x20status\x20--task-id\x20','\x20--appcode\x20'];a53_0x4486=function(){return _0x2993ab;};return a53_0x4486();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x1d9b8d(0x17a),a53_0x1d9b8d(0x17d)]),NON_TERMINAL_STATUSES=new Set(['PENDING',a53_0x1d9b8d(0x162)]);export function normalizeAsyncTask(_0x43f6f8){const _0x30f013=a53_0x1d9b8d,_0x4055d7=typeof _0x43f6f8?.[_0x30f013(0x177)]===_0x30f013(0x16e)?_0x43f6f8['taskId'][_0x30f013(0x16a)]():'';if(!_0x4055d7)throw CliErrors[_0x30f013(0x166)](_0x30f013(0x17e));const _0x181873=typeof _0x43f6f8[_0x30f013(0x168)]==='string'?_0x43f6f8[_0x30f013(0x168)]['trim']()[_0x30f013(0x15f)]():'';if(!_0x181873)throw CliErrors[_0x30f013(0x166)](_0x30f013(0x16d)+_0x4055d7+'\x20response\x20did\x20not\x20contain\x20a\x20status.');return{'taskId':_0x4055d7,'status':_0x181873,'errorMessage':typeof _0x43f6f8['errorMessage']===_0x30f013(0x16e)&&_0x43f6f8[_0x30f013(0x173)][_0x30f013(0x16a)]()?_0x43f6f8[_0x30f013(0x173)]['trim']():null,'isTerminal':TERMINAL_STATUSES['has'](_0x181873),'knownStatus':TERMINAL_STATUSES[_0x30f013(0x167)](_0x181873)||NON_TERMINAL_STATUSES[_0x30f013(0x167)](_0x181873)};}export function buildAsyncTaskStatusCommand(_0x2da611,_0x203efb){const _0x5f4007=a53_0x1d9b8d;return CLI_BIN_NAME+_0x5f4007(0x16f)+quoteShellArg(_0x2da611)+_0x5f4007(0x170)+quoteShellArg(_0x203efb)+_0x5f4007(0x163);}export function asyncTaskMessage(_0xad8e1a){const _0x541f5d=a53_0x1d9b8d;switch(_0xad8e1a['status']){case _0x541f5d(0x161):return _0x541f5d(0x172)+_0xad8e1a[_0x541f5d(0x177)]+_0x541f5d(0x176);case _0x541f5d(0x162):return'Task\x20'+_0xad8e1a[_0x541f5d(0x177)]+_0x541f5d(0x179);case _0x541f5d(0x17a):return _0x541f5d(0x172)+_0xad8e1a[_0x541f5d(0x177)]+'\x20completed\x20successfully.';case _0x541f5d(0x17d):return _0xad8e1a['errorMessage']?_0x541f5d(0x172)+_0xad8e1a[_0x541f5d(0x177)]+_0x541f5d(0x15e)+_0xad8e1a[_0x541f5d(0x173)]:_0x541f5d(0x172)+_0xad8e1a[_0x541f5d(0x177)]+_0x541f5d(0x178);default:return'Task\x20'+_0xad8e1a[_0x541f5d(0x177)]+_0x541f5d(0x17f)+_0xad8e1a[_0x541f5d(0x168)]+'.';}}function a53_0x46cd(_0x1fc455,_0x5081a4){_0x1fc455=_0x1fc455-0x15d;const _0x4486b0=a53_0x4486();let _0x46cd03=_0x4486b0[_0x1fc455];return _0x46cd03;}function quoteShellArg(_0x51a44b){const _0x75e1a2=a53_0x1d9b8d;return'\x27'+_0x51a44b[_0x75e1a2(0x164)](/'/g,_0x75e1a2(0x165))+'\x27';}
1
+ const a53_0xf2440=a53_0x454e;(function(_0x192c2c,_0x3deb8b){const _0x4603d8=a53_0x454e,_0x263efc=_0x192c2c();while(!![]){try{const _0x1407d4=-parseInt(_0x4603d8(0x100))/0x1*(-parseInt(_0x4603d8(0x104))/0x2)+-parseInt(_0x4603d8(0xff))/0x3+parseInt(_0x4603d8(0xe9))/0x4*(parseInt(_0x4603d8(0x106))/0x5)+parseInt(_0x4603d8(0xf1))/0x6*(parseInt(_0x4603d8(0xec))/0x7)+-parseInt(_0x4603d8(0xfd))/0x8+parseInt(_0x4603d8(0xfc))/0x9+-parseInt(_0x4603d8(0xfe))/0xa;if(_0x1407d4===_0x3deb8b)break;else _0x263efc['push'](_0x263efc['shift']());}catch(_0x658b64){_0x263efc['push'](_0x263efc['shift']());}}}(a53_0xde7b,0x2a9db));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a53_0xf2440(0xf3)]),NON_TERMINAL_STATUSES=new Set([a53_0xf2440(0xf6),a53_0xf2440(0xf5)]);export function normalizeAsyncTask(_0x2a711f){const _0x215bb8=a53_0xf2440,_0x309957=typeof _0x2a711f?.[_0x215bb8(0xef)]==='string'?_0x2a711f[_0x215bb8(0xef)][_0x215bb8(0xeb)]():'';if(!_0x309957)throw CliErrors[_0x215bb8(0xf7)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x41c0fb=typeof _0x2a711f[_0x215bb8(0xee)]===_0x215bb8(0xfb)?_0x2a711f['status']['trim']()[_0x215bb8(0x102)]():'';if(!_0x41c0fb)throw CliErrors[_0x215bb8(0xf7)](_0x215bb8(0x107)+_0x309957+_0x215bb8(0xfa));return{'taskId':_0x309957,'status':_0x41c0fb,'errorMessage':typeof _0x2a711f[_0x215bb8(0xf4)]===_0x215bb8(0xfb)&&_0x2a711f[_0x215bb8(0xf4)][_0x215bb8(0xeb)]()?_0x2a711f[_0x215bb8(0xf4)][_0x215bb8(0xeb)]():null,'isTerminal':TERMINAL_STATUSES[_0x215bb8(0x105)](_0x41c0fb),'knownStatus':TERMINAL_STATUSES['has'](_0x41c0fb)||NON_TERMINAL_STATUSES[_0x215bb8(0x105)](_0x41c0fb)};}function a53_0xde7b(){const _0x4a3638=['PENDING','apiError','\x20is\x20processing.','\x20returned\x20unknown\x20status\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','string','2945376Nmbgah','408808WcoovN','6156740FDlZBn','527811FoAvmY','16925lQhVcY','\x20--appcode\x20','toUpperCase','\x20is\x20pending.','38wKtRKh','has','25Gdzymr','Async\x20task\x20','\x20--format\x20compress','Task\x20','205764wvBnOq','SUCCESS','trim','49YlSmsd','replace','status','taskId','\x20failed:\x20','95334hdzfhc','\x20task\x20status\x20--task-id\x20','FAILED','errorMessage','PROCESSING'];a53_0xde7b=function(){return _0x4a3638;};return a53_0xde7b();}function a53_0x454e(_0x4fad33,_0x57ad87){_0x4fad33=_0x4fad33-0xe9;const _0xde7bde=a53_0xde7b();let _0x454e5f=_0xde7bde[_0x4fad33];return _0x454e5f;}export function buildAsyncTaskStatusCommand(_0xb6a892,_0x2d916e){const _0x13ce04=a53_0xf2440;return CLI_BIN_NAME+_0x13ce04(0xf2)+quoteShellArg(_0xb6a892)+_0x13ce04(0x101)+quoteShellArg(_0x2d916e)+_0x13ce04(0x108);}export function asyncTaskMessage(_0x14cdae){const _0x36163a=a53_0xf2440;switch(_0x14cdae['status']){case _0x36163a(0xf6):return _0x36163a(0x109)+_0x14cdae[_0x36163a(0xef)]+_0x36163a(0x103);case _0x36163a(0xf5):return'Task\x20'+_0x14cdae[_0x36163a(0xef)]+_0x36163a(0xf8);case _0x36163a(0xea):return _0x36163a(0x109)+_0x14cdae[_0x36163a(0xef)]+'\x20completed\x20successfully.';case _0x36163a(0xf3):return _0x14cdae[_0x36163a(0xf4)]?'Task\x20'+_0x14cdae['taskId']+_0x36163a(0xf0)+_0x14cdae[_0x36163a(0xf4)]:_0x36163a(0x109)+_0x14cdae['taskId']+'\x20failed.';default:return _0x36163a(0x109)+_0x14cdae[_0x36163a(0xef)]+_0x36163a(0xf9)+_0x14cdae[_0x36163a(0xee)]+'.';}}function quoteShellArg(_0x3ed1a6){const _0x44088a=a53_0xf2440;return'\x27'+_0x3ed1a6[_0x44088a(0xed)](/'/g,'\x27\x5c\x27\x27')+'\x27';}
@@ -1 +1 @@
1
- function a54_0x3790(_0x3441b8,_0x5c4b18){_0x3441b8=_0x3441b8-0xbb;var _0x1d9a63=a54_0x1d9a();var _0x3790a6=_0x1d9a63[_0x3441b8];return _0x3790a6;}function a54_0x1d9a(){var _0x1993d6=['38dSzyLm','defineProperties','description','url','5ncanGS','9BVdsVu','27469QOvJCz','method','838144vvhIwk','5884046leLQEC','4711208XisLLM','1224822hVZwcH','9FzXDOt','1107250rcEnUT','24BzyBwR','10480745LcKoGt'];a54_0x1d9a=function(){return _0x1993d6;};return a54_0x1d9a();}(function(_0x2403c3,_0x15a42f){var _0x4b6710=a54_0x3790,_0x1c7a0d=_0x2403c3();while(!![]){try{var _0x126320=parseInt(_0x4b6710(0xbd))/0x1*(parseInt(_0x4b6710(0xc7))/0x2)+parseInt(_0x4b6710(0xc3))/0x3*(-parseInt(_0x4b6710(0xbf))/0x4)+-parseInt(_0x4b6710(0xbb))/0x5*(-parseInt(_0x4b6710(0xc2))/0x6)+-parseInt(_0x4b6710(0xc0))/0x7+parseInt(_0x4b6710(0xc1))/0x8*(-parseInt(_0x4b6710(0xbc))/0x9)+-parseInt(_0x4b6710(0xc4))/0xa+-parseInt(_0x4b6710(0xc6))/0xb*(-parseInt(_0x4b6710(0xc5))/0xc);if(_0x126320===_0x15a42f)break;else _0x1c7a0d['push'](_0x1c7a0d['shift']());}catch(_0x1bbd21){_0x1c7a0d['push'](_0x1c7a0d['shift']());}}}(a54_0x1d9a,0x70fea));export function asDryRunResult(_0x55f27b,_0x201ee7){var _0x245af0=a54_0x3790;return Object[_0x245af0(0xc8)](_0x55f27b,{'method':{'value':_0x201ee7[_0x245af0(0xbe)],'enumerable':![]},'url':{'value':_0x201ee7[_0x245af0(0xca)],'enumerable':![]},..._0x201ee7[_0x245af0(0xc9)]?{'description':{'value':_0x201ee7[_0x245af0(0xc9)],'enumerable':![]}}:{}});}
1
+ function a54_0x4bea(_0x4f91c5,_0x4ab8e4){_0x4f91c5=_0x4f91c5-0x182;var _0x18a5a2=a54_0x18a5();var _0x4beaee=_0x18a5a2[_0x4f91c5];return _0x4beaee;}function a54_0x18a5(){var _0x4d7dad=['method','27120522tiHESB','2mVEfeK','4806IQSCUt','11774qqGVra','3069016aPmiPm','1542XePlzR','6870uYASZx','description','56WRWDlu','12CdKJRS','237856EKcPua','150070FqnEeq','2884038aGzTYi'];a54_0x18a5=function(){return _0x4d7dad;};return a54_0x18a5();}(function(_0x56f80b,_0x1d9f57){var _0x22e6fa=a54_0x4bea,_0x26cebd=_0x56f80b();while(!![]){try{var _0x5ad01d=-parseInt(_0x22e6fa(0x184))/0x1+-parseInt(_0x22e6fa(0x189))/0x2*(parseInt(_0x22e6fa(0x186))/0x3)+parseInt(_0x22e6fa(0x182))/0x4*(-parseInt(_0x22e6fa(0x185))/0x5)+-parseInt(_0x22e6fa(0x18d))/0x6*(-parseInt(_0x22e6fa(0x18b))/0x7)+-parseInt(_0x22e6fa(0x18c))/0x8+parseInt(_0x22e6fa(0x18a))/0x9*(-parseInt(_0x22e6fa(0x18e))/0xa)+-parseInt(_0x22e6fa(0x188))/0xb*(-parseInt(_0x22e6fa(0x183))/0xc);if(_0x5ad01d===_0x1d9f57)break;else _0x26cebd['push'](_0x26cebd['shift']());}catch(_0x43db7){_0x26cebd['push'](_0x26cebd['shift']());}}}(a54_0x18a5,0x80e15));export function asDryRunResult(_0x391cd4,_0x269c3a){var _0x5b201e=a54_0x4bea;return Object['defineProperties'](_0x391cd4,{'method':{'value':_0x269c3a[_0x5b201e(0x187)],'enumerable':![]},'url':{'value':_0x269c3a['url'],'enumerable':![]},..._0x269c3a[_0x5b201e(0x18f)]?{'description':{'value':_0x269c3a[_0x5b201e(0x18f)],'enumerable':![]}}:{}});}
@@ -1 +1 @@
1
- const a55_0x57e785=a55_0x61d5;(function(_0x387cf1,_0x2f2aa9){const _0x905ff2=a55_0x61d5,_0xb990c9=_0x387cf1();while(!![]){try{const _0x455077=-parseInt(_0x905ff2(0x79))/0x1*(parseInt(_0x905ff2(0x81))/0x2)+parseInt(_0x905ff2(0x84))/0x3*(-parseInt(_0x905ff2(0x8a))/0x4)+-parseInt(_0x905ff2(0x6a))/0x5+-parseInt(_0x905ff2(0x86))/0x6*(parseInt(_0x905ff2(0x85))/0x7)+parseInt(_0x905ff2(0x78))/0x8*(-parseInt(_0x905ff2(0x76))/0x9)+parseInt(_0x905ff2(0x7c))/0xa*(parseInt(_0x905ff2(0x72))/0xb)+-parseInt(_0x905ff2(0x8b))/0xc*(-parseInt(_0x905ff2(0x68))/0xd);if(_0x455077===_0x2f2aa9)break;else _0xb990c9['push'](_0xb990c9['shift']());}catch(_0x49b4a7){_0xb990c9['push'](_0xb990c9['shift']());}}}(a55_0x1c79,0x996f9));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x57e785(0x6d),'type':a55_0x57e785(0x6b),'required':!![],'description':'Source\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x57e785(0x8c),'type':a55_0x57e785(0x6b),'required':!![],'description':'Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation'};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x57e785(0x7d),'type':a55_0x57e785(0x6b),'required':!![],'description':a55_0x57e785(0x75)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x57e785(0x7a),'type':a55_0x57e785(0x6b),'required':!![],'description':a55_0x57e785(0x7b)};export const CROSS_RELATION_DBLINK_FLAG={'name':'from-dblink-id','type':a55_0x57e785(0x77),'description':a55_0x57e785(0x74)};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x57e785(0x71),'type':a55_0x57e785(0x6b),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x57e785(0x6f),'type':a55_0x57e785(0x6b),'enum':['ONE_TO_ONE','ONE_TO_MANY','MANY_TO_ONE','MANY_TO_MANY'],'description':'Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value'};export const GLOBAL_SCOPE_FLAG={'name':a55_0x57e785(0x80),'type':a55_0x57e785(0x69),'default':![],'description':a55_0x57e785(0x70)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x57e785(0x88)};export const CODE_FLAG={'name':a55_0x57e785(0x89),'type':'string','required':!![],'description':a55_0x57e785(0x83),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a55_0x57e785(0x83)};export const SQLCODE_FLAG={'name':a55_0x57e785(0x6e),'type':a55_0x57e785(0x6b),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x57e785(0x73)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a55_0x57e785(0x6b),'required':![],'description':a55_0x57e785(0x6c)};function a55_0x61d5(_0x16ef60,_0x287c4c){_0x16ef60=_0x16ef60-0x68;const _0x1c7973=a55_0x1c79();let _0x61d5a5=_0x1c7973[_0x16ef60];return _0x61d5a5;}export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};function a55_0x1c79(){const _0xf817f9=['global','30682InNtvk','Database\x20product\x20type','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','3QvKexS','742QvyCwd','22188FiYMag','skip-connection-test','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','code','2410520YcNWwO','3288pkpxAl','from-column','148369LzetEy','boolean','3512480UXpjEg','string','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','from-datasetcode','sqlcode','cardinality','Write\x20to\x20the\x20global\x20configuration','to-label-column','240713oUpPNZ','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','Target\x20DB_TABLE\x20dataset\x20code','99gaVbsN','number','544568VECqIT','12WRFRLX','to-column','Target\x20field\x20name','60ViJYSD','to-datasetcode','POSTGRESQL','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update'];a55_0x1c79=function(){return _0xf817f9;};return a55_0x1c79();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x57e785(0x77),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':'dbtype','type':a55_0x57e785(0x6b),'required':!![],'description':a55_0x57e785(0x82),'enum':['MYSQL',a55_0x57e785(0x7e)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x57e785(0x87),'type':'boolean','description':a55_0x57e785(0x7f)};
1
+ const a55_0x52bf3e=a55_0x4bec;(function(_0x152f84,_0x567625){const _0x89e4ff=a55_0x4bec,_0x22f040=_0x152f84();while(!![]){try{const _0x25eb8b=-parseInt(_0x89e4ff(0x69))/0x1+parseInt(_0x89e4ff(0x7c))/0x2*(parseInt(_0x89e4ff(0x78))/0x3)+parseInt(_0x89e4ff(0x8d))/0x4*(-parseInt(_0x89e4ff(0x7d))/0x5)+-parseInt(_0x89e4ff(0x90))/0x6*(-parseInt(_0x89e4ff(0x93))/0x7)+-parseInt(_0x89e4ff(0x91))/0x8*(parseInt(_0x89e4ff(0x89))/0x9)+-parseInt(_0x89e4ff(0x6e))/0xa*(parseInt(_0x89e4ff(0x83))/0xb)+-parseInt(_0x89e4ff(0x68))/0xc*(-parseInt(_0x89e4ff(0x7e))/0xd);if(_0x25eb8b===_0x567625)break;else _0x22f040['push'](_0x22f040['shift']());}catch(_0x443d4e){_0x22f040['push'](_0x22f040['shift']());}}}(a55_0x1a09,0x8f932));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x52bf3e(0x79),'type':a55_0x52bf3e(0x81),'required':!![],'description':a55_0x52bf3e(0x8b)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x52bf3e(0x70),'type':a55_0x52bf3e(0x81),'required':!![],'description':'Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation'};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x52bf3e(0x95),'type':'string','required':!![],'description':a55_0x52bf3e(0x92)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x52bf3e(0x75),'type':'string','required':!![],'description':a55_0x52bf3e(0x71)};export const CROSS_RELATION_DBLINK_FLAG={'name':'from-dblink-id','type':a55_0x52bf3e(0x87),'description':a55_0x52bf3e(0x7f)};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x52bf3e(0x80),'type':'string','description':a55_0x52bf3e(0x8c)};function a55_0x1a09(){const _0x176d6e=['number','MANY_TO_ONE','9DEvaYr','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','Source\x20DB_TABLE\x20dataset\x20code','Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value','124JSFgKG','ONE_TO_ONE','ONE_TO_MANY','2676jOqQXm','5734280NOyVLA','Target\x20DB_TABLE\x20dataset\x20code','8876eDMiUs','appcode','to-datasetcode','cardinality','24nTAyhN','419853ifHslS','sqlcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','Write\x20to\x20the\x20global\x20configuration','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','270XUbYik','POSTGRESQL','from-column','Target\x20field\x20name','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','Database\x20product\x20type','global','to-column','boolean','MYSQL','3QBJkCZ','from-datasetcode','datasetcode','App\x20code\x20(e.g.\x20app-xxxxx)','823054uOWIWX','123510hkNgGI','15461524CBdPOh','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','to-label-column','string','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','352517mnLXRn','code','skip-connection-test','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'];a55_0x1a09=function(){return _0x176d6e;};return a55_0x1a09();}export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x52bf3e(0x96),'type':a55_0x52bf3e(0x81),'enum':[a55_0x52bf3e(0x8e),a55_0x52bf3e(0x8f),a55_0x52bf3e(0x88),'MANY_TO_MANY'],'description':a55_0x52bf3e(0x82)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x52bf3e(0x74),'type':a55_0x52bf3e(0x76),'default':![],'description':a55_0x52bf3e(0x6c)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x52bf3e(0x8a)};export const CODE_FLAG={'name':a55_0x52bf3e(0x84),'type':a55_0x52bf3e(0x81),'required':!![],'description':a55_0x52bf3e(0x72),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x52bf3e(0x7a),'description':a55_0x52bf3e(0x72)};export const SQLCODE_FLAG={'name':a55_0x52bf3e(0x6a),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x52bf3e(0x6b)}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x52bf3e(0x94),'type':'string','required':![],'description':a55_0x52bf3e(0x86)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x52bf3e(0x7b)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a55_0x4bec(_0x327288,_0xe03fb0){_0x327288=_0x327288-0x68;const _0x1a09b6=a55_0x1a09();let _0x4bec46=_0x1a09b6[_0x327288];return _0x4bec46;}export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a55_0x52bf3e(0x6d)};export const DB_TYPE_FLAG={'name':'dbtype','type':a55_0x52bf3e(0x81),'required':!![],'description':a55_0x52bf3e(0x73),'enum':[a55_0x52bf3e(0x77),a55_0x52bf3e(0x6f)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x52bf3e(0x85),'type':'boolean','description':'Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update'};
@@ -1 +1 @@
1
- (function(_0x1b4f7e,_0x8633a2){const _0x5298ad=a56_0x177a,_0x2b066d=_0x1b4f7e();while(!![]){try{const _0xd67125=-parseInt(_0x5298ad(0x163))/0x1+parseInt(_0x5298ad(0x168))/0x2+-parseInt(_0x5298ad(0x160))/0x3+parseInt(_0x5298ad(0x15f))/0x4*(parseInt(_0x5298ad(0x169))/0x5)+parseInt(_0x5298ad(0x166))/0x6+parseInt(_0x5298ad(0x167))/0x7+-parseInt(_0x5298ad(0x16b))/0x8;if(_0xd67125===_0x8633a2)break;else _0x2b066d['push'](_0x2b066d['shift']());}catch(_0x1eb606){_0x2b066d['push'](_0x2b066d['shift']());}}}(a56_0x1ad0,0x64b75));function a56_0x1ad0(){const _0x3609f5=['2296554EbqYPM','2512853RqRzpp','474624reZVoR','2061790HpnbHe','trim','110552yPUOOy','ceil','validation','4tAvnTc','1038684HzRLev','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20','618828diGyuG','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','size'];a56_0x1ad0=function(){return _0x3609f5;};return a56_0x1ad0();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a56_0x177a(_0x202909,_0x41327a){_0x202909=_0x202909-0x15d;const _0x1ad018=a56_0x1ad0();let _0x177a0d=_0x1ad018[_0x202909];return _0x177a0d;}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x483f8e){const _0x73341d=a56_0x177a;if(_0x483f8e>=BYTES_PER_MB){const _0xdfca77=Math[_0x73341d(0x15d)](_0x483f8e/BYTES_PER_MB*0x64)/0x64;return _0xdfca77['toFixed'](0x2)+'\x20MB';}return _0x483f8e+'\x20B';}export function requireDevelopmentUploadFile(_0x3c0a11,_0x251562){const _0x1f4b3e=a56_0x177a,_0x121055=_0x3c0a11[_0x1f4b3e(0x16a)]();if(!_0x121055)throw CliErrors[_0x1f4b3e(0x15e)](_0x251562+'\x20path\x20is\x20required.');if(!existsSync(_0x121055))throw CliErrors[_0x1f4b3e(0x15e)]('File\x20not\x20found:\x20'+_0x121055);const _0x4b0168=statSync(_0x121055);if(!_0x4b0168[_0x1f4b3e(0x161)]())throw CliErrors[_0x1f4b3e(0x15e)](_0x1f4b3e(0x162)+_0x121055);if(_0x4b0168[_0x1f4b3e(0x165)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x1f4b3e(0x15e)](_0x1f4b3e(0x164)+_0x121055+'\x20('+formatBytes(_0x4b0168[_0x1f4b3e(0x165)])+')');return{'path':_0x121055,'size':_0x4b0168[_0x1f4b3e(0x165)]};}
1
+ (function(_0x12283b,_0x446f19){const _0x1c7e46=a56_0xf17e,_0x403ac7=_0x12283b();while(!![]){try{const _0x43b552=parseInt(_0x1c7e46(0x1d3))/0x1+parseInt(_0x1c7e46(0x1d8))/0x2*(-parseInt(_0x1c7e46(0x1d9))/0x3)+-parseInt(_0x1c7e46(0x1cd))/0x4*(-parseInt(_0x1c7e46(0x1d0))/0x5)+parseInt(_0x1c7e46(0x1d7))/0x6+parseInt(_0x1c7e46(0x1dc))/0x7+parseInt(_0x1c7e46(0x1dd))/0x8+-parseInt(_0x1c7e46(0x1db))/0x9;if(_0x43b552===_0x446f19)break;else _0x403ac7['push'](_0x403ac7['shift']());}catch(_0x872fb3){_0x403ac7['push'](_0x403ac7['shift']());}}}(a56_0x1226,0xdcb34));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a56_0x1226(){const _0x46c990=['File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','2793822jTTvcq','836PWhIeJ','4920PMyAaI','isFile','9535122MvhUzb','8226197eKNpXM','457600VSXSWd','76ZydJzR','size','\x20path\x20is\x20required.','6100sBCbEP','File\x20not\x20found:\x20','validation','927778ngiVes','trim','toFixed'];a56_0x1226=function(){return _0x46c990;};return a56_0x1226();}function a56_0xf17e(_0x89843,_0x167bec){_0x89843=_0x89843-0x1cd;const _0x1226a0=a56_0x1226();let _0xf17e83=_0x1226a0[_0x89843];return _0xf17e83;}export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x57ec0d){const _0x1aaaa4=a56_0xf17e;if(_0x57ec0d>=BYTES_PER_MB){const _0x1d66b1=Math['ceil'](_0x57ec0d/BYTES_PER_MB*0x64)/0x64;return _0x1d66b1[_0x1aaaa4(0x1d5)](0x2)+'\x20MB';}return _0x57ec0d+'\x20B';}export function requireDevelopmentUploadFile(_0xe9ef2c,_0x4f10a5){const _0x3821fd=a56_0xf17e,_0x29f0c5=_0xe9ef2c[_0x3821fd(0x1d4)]();if(!_0x29f0c5)throw CliErrors[_0x3821fd(0x1d2)](_0x4f10a5+_0x3821fd(0x1cf));if(!existsSync(_0x29f0c5))throw CliErrors[_0x3821fd(0x1d2)](_0x3821fd(0x1d1)+_0x29f0c5);const _0xb0a23f=statSync(_0x29f0c5);if(!_0xb0a23f[_0x3821fd(0x1da)]())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x29f0c5);if(_0xb0a23f[_0x3821fd(0x1ce)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x3821fd(0x1d2)](_0x3821fd(0x1d6)+_0x29f0c5+'\x20('+formatBytes(_0xb0a23f[_0x3821fd(0x1ce)])+')');return{'path':_0x29f0c5,'size':_0xb0a23f[_0x3821fd(0x1ce)]};}
@@ -1 +1 @@
1
- (function(_0x43d2e0,_0x46f776){const _0x1ffc11=a57_0x336e,_0x3d9dcc=_0x43d2e0();while(!![]){try{const _0x3be8dc=parseInt(_0x1ffc11(0x82))/0x1*(parseInt(_0x1ffc11(0x7d))/0x2)+-parseInt(_0x1ffc11(0x7a))/0x3*(-parseInt(_0x1ffc11(0x74))/0x4)+parseInt(_0x1ffc11(0x7e))/0x5+parseInt(_0x1ffc11(0x78))/0x6+parseInt(_0x1ffc11(0x7f))/0x7*(-parseInt(_0x1ffc11(0x7c))/0x8)+-parseInt(_0x1ffc11(0x77))/0x9*(-parseInt(_0x1ffc11(0x81))/0xa)+-parseInt(_0x1ffc11(0x76))/0xb;if(_0x3be8dc===_0x46f776)break;else _0x3d9dcc['push'](_0x3d9dcc['shift']());}catch(_0x3f8ba0){_0x3d9dcc['push'](_0x3d9dcc['shift']());}}}(a57_0x3176,0xc2002));function a57_0x336e(_0x4b8193,_0x5baa8c){_0x4b8193=_0x4b8193-0x74;const _0x3176f2=a57_0x3176();let _0x336ed3=_0x3176f2[_0x4b8193];return _0x336ed3;}export function validateAppcode(_0x535478){const _0xf200b4=a57_0x336e,_0x51c967=_0x535478[_0xf200b4(0x80)]();if(!_0x51c967)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x51c967[_0xf200b4(0x75)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0xf200b4(0x79)](_0x51c967))return{'valid':![],'message':_0xf200b4(0x7b)};return{'valid':!![]};}function a57_0x3176(){const _0x31b32c=['40mSBiQj','length','3796177XXdGdV','987678gYHCmP','6268584yEFhUt','test','73077hEgTwE','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','465728YNjGCc','22EqIRIQ','1450405pyiqSd','168hEUVGA','trim','50yQjyWX','37252OzdbUh'];a57_0x3176=function(){return _0x31b32c;};return a57_0x3176();}
1
+ function a57_0x45c5(_0x260d4f,_0xe08304){_0x260d4f=_0x260d4f-0x1c3;const _0x39cd08=a57_0x39cd();let _0x45c5af=_0x39cd08[_0x260d4f];return _0x45c5af;}(function(_0x4ab3b7,_0x552565){const _0x40923d=a57_0x45c5,_0x40af18=_0x4ab3b7();while(!![]){try{const _0x2dcfa4=parseInt(_0x40923d(0x1c4))/0x1*(-parseInt(_0x40923d(0x1d1))/0x2)+parseInt(_0x40923d(0x1cb))/0x3*(parseInt(_0x40923d(0x1c3))/0x4)+parseInt(_0x40923d(0x1cf))/0x5*(-parseInt(_0x40923d(0x1cc))/0x6)+-parseInt(_0x40923d(0x1c8))/0x7*(parseInt(_0x40923d(0x1c6))/0x8)+-parseInt(_0x40923d(0x1c7))/0x9+parseInt(_0x40923d(0x1d2))/0xa*(parseInt(_0x40923d(0x1ce))/0xb)+parseInt(_0x40923d(0x1c9))/0xc*(parseInt(_0x40923d(0x1d3))/0xd);if(_0x2dcfa4===_0x552565)break;else _0x40af18['push'](_0x40af18['shift']());}catch(_0x18617e){_0x40af18['push'](_0x40af18['shift']());}}}(a57_0x39cd,0x1b8a5));export function validateAppcode(_0x54738e){const _0x3da560=a57_0x45c5,_0x14f4cb=_0x54738e[_0x3da560(0x1d0)]();if(!_0x14f4cb)return{'valid':![],'message':_0x3da560(0x1c5)};if(_0x14f4cb['length']>0x64)return{'valid':![],'message':_0x3da560(0x1cd)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x14f4cb))return{'valid':![],'message':_0x3da560(0x1ca)};return{'valid':!![]};}function a57_0x39cd(){const _0x13e3d0=['Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','50541xOifax','60036pyofat','App\x20Code\x20cannot\x20exceed\x20100\x20characters','17149dbiWmD','80OyVpdL','trim','2166HzGMLn','790ltrfKe','442IqzoeT','8jdIPys','97TsfrlH','App\x20Code\x20cannot\x20be\x20empty','4808hjTlWF','1504278fhjtdv','623perUua','155904fBCNho'];a57_0x39cd=function(){return _0x13e3d0;};return a57_0x39cd();}
@@ -1 +1 @@
1
- const a58_0x3fef3f=a58_0x4403;(function(_0xfa674,_0x2228cb){const _0x29c6d2=a58_0x4403,_0x5d7792=_0xfa674();while(!![]){try{const _0x21e990=-parseInt(_0x29c6d2(0xe5))/0x1*(parseInt(_0x29c6d2(0xeb))/0x2)+parseInt(_0x29c6d2(0xce))/0x3*(parseInt(_0x29c6d2(0xd6))/0x4)+-parseInt(_0x29c6d2(0xd5))/0x5+-parseInt(_0x29c6d2(0xe7))/0x6*(-parseInt(_0x29c6d2(0xe2))/0x7)+-parseInt(_0x29c6d2(0xea))/0x8*(parseInt(_0x29c6d2(0xca))/0x9)+parseInt(_0x29c6d2(0xcd))/0xa*(-parseInt(_0x29c6d2(0xd0))/0xb)+-parseInt(_0x29c6d2(0xdd))/0xc*(-parseInt(_0x29c6d2(0xdb))/0xd);if(_0x21e990===_0x2228cb)break;else _0x5d7792['push'](_0x5d7792['shift']());}catch(_0xc5e7aa){_0x5d7792['push'](_0x5d7792['shift']());}}}(a58_0xb192,0x2471a));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x3fef3f(0xed)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x3fef3f(0xd4),a58_0x3fef3f(0xd3)]);function a58_0xb192(){const _0x2c4b5d=['\x20config\x20delete\x20<key>\x20[--global]','config','boolean','1961694wTOJlz','\x22\x20is\x20not\x20deletable.','trim','1BsXLrV','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','6ZKrMSl','Project','has','209800cWtfFw','450142dEfskC','write','inherit','90krlEYC','global','Missing\x20key\x20argument.','10KvMpqp','55527vcznyF','Top-level\x20key\x20\x22','1451714HhnzGA','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','validation','routing','defaultApp','794830wwwRNe','40tBVksW','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','delete','prototype','858377XDcULZ','hasOwnProperty','84lIlaOM','Usage:\x20'];a58_0xb192=function(){return _0x2c4b5d;};return a58_0xb192();}async function execute(_0x3230db){const _0x5b7a1d=a58_0x3fef3f,_0x471898=_0x3230db['args'][0x0]?.[_0x5b7a1d(0xe4)]();if(!_0x471898)throw CliErrors[_0x5b7a1d(0xd2)](_0x5b7a1d(0xcc),_0x5b7a1d(0xde)+CLI_BIN_NAME+_0x5b7a1d(0xdf));if(_0x471898==='riskLevel')throw CliErrors[_0x5b7a1d(0xd2)](_0x5b7a1d(0xd7));if(!isTopLevelConfigKey(_0x471898)&&!EXTRA_DELETABLE_KEYS['has'](_0x471898)&&!LEGACY_DELETABLE_KEYS[_0x5b7a1d(0xe9)](_0x471898))throw CliErrors[_0x5b7a1d(0xd2)](_0x5b7a1d(0xcf)+_0x471898+_0x5b7a1d(0xe3),_0x5b7a1d(0xd1));const _0x5299f7=resolveWriteScope({'global':_0x3230db['bool'](_0x5b7a1d(0xcb))}),_0x16bb6c=readScopedConfig(_0x5299f7),_0x3aadea=Object[_0x5b7a1d(0xda)][_0x5b7a1d(0xdc)]['call'](_0x16bb6c,_0x471898);_0x3aadea&&(delete _0x16bb6c[_0x471898],writeScopedConfig(_0x16bb6c,_0x5299f7));const _0x11a080=_0x5299f7===_0x5b7a1d(0xcb)?'Global':_0x5b7a1d(0xe8);return{'ok':!![],'message':_0x3aadea?'✓\x20'+_0x11a080+'\x20'+_0x471898+'\x20deleted':'✓\x20'+_0x11a080+'\x20'+_0x471898+'\x20already\x20absent','data':{'key':_0x471898,'scope':_0x5299f7,'changed':_0x3aadea}};}function a58_0x4403(_0x25904b,_0x2227da){_0x25904b=_0x25904b-0xca;const _0xb192dc=a58_0xb192();let _0x440300=_0xb192dc[_0x25904b];return _0x440300;}export const configDeleteDefinition={'service':a58_0x3fef3f(0xe0),'command':a58_0x3fef3f(0xd9),'description':a58_0x3fef3f(0xd8),'risk':a58_0x3fef3f(0xec),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'key','description':'Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','required':!![]}],'flags':[{'name':a58_0x3fef3f(0xcb),'type':a58_0x3fef3f(0xe1),'description':a58_0x3fef3f(0xe6),'default':![]}],'execute':execute};
1
+ function a58_0x51ef(_0x4bc803,_0x599f09){_0x4bc803=_0x4bc803-0x14d;const _0x4409e8=a58_0x4409();let _0x51ef31=_0x4409e8[_0x4bc803];return _0x51ef31;}const a58_0x2c4573=a58_0x51ef;(function(_0x243527,_0x26122e){const _0x2da49c=a58_0x51ef,_0x5bf415=_0x243527();while(!![]){try{const _0x2edcaa=parseInt(_0x2da49c(0x15e))/0x1+-parseInt(_0x2da49c(0x14f))/0x2+-parseInt(_0x2da49c(0x14d))/0x3*(-parseInt(_0x2da49c(0x153))/0x4)+parseInt(_0x2da49c(0x163))/0x5*(-parseInt(_0x2da49c(0x154))/0x6)+-parseInt(_0x2da49c(0x162))/0x7*(parseInt(_0x2da49c(0x156))/0x8)+-parseInt(_0x2da49c(0x16f))/0x9+-parseInt(_0x2da49c(0x159))/0xa*(-parseInt(_0x2da49c(0x16d))/0xb);if(_0x2edcaa===_0x26122e)break;else _0x5bf415['push'](_0x5bf415['shift']());}catch(_0x42ed93){_0x5bf415['push'](_0x5bf415['shift']());}}}(a58_0x4409,0x860e9));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x2c4573(0x16c)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x2c4573(0x15a),'routing']);async function execute(_0x383ff4){const _0x27fa34=a58_0x2c4573,_0x5e13fd=_0x383ff4[_0x27fa34(0x15b)][0x0]?.[_0x27fa34(0x157)]();if(!_0x5e13fd)throw CliErrors['validation']('Missing\x20key\x20argument.',_0x27fa34(0x14e)+CLI_BIN_NAME+_0x27fa34(0x170));if(_0x5e13fd===_0x27fa34(0x166))throw CliErrors[_0x27fa34(0x15d)](_0x27fa34(0x151));if(!isTopLevelConfigKey(_0x5e13fd)&&!EXTRA_DELETABLE_KEYS[_0x27fa34(0x16b)](_0x5e13fd)&&!LEGACY_DELETABLE_KEYS['has'](_0x5e13fd))throw CliErrors[_0x27fa34(0x15d)]('Top-level\x20key\x20\x22'+_0x5e13fd+_0x27fa34(0x15c),_0x27fa34(0x150));const _0x5ce052=resolveWriteScope({'global':_0x383ff4[_0x27fa34(0x16a)](_0x27fa34(0x165))}),_0x5c312b=readScopedConfig(_0x5ce052),_0x35a138=Object[_0x27fa34(0x164)][_0x27fa34(0x161)][_0x27fa34(0x155)](_0x5c312b,_0x5e13fd);_0x35a138&&(delete _0x5c312b[_0x5e13fd],writeScopedConfig(_0x5c312b,_0x5ce052));const _0x3801e6=_0x5ce052===_0x27fa34(0x165)?_0x27fa34(0x160):_0x27fa34(0x158);return{'ok':!![],'message':_0x35a138?'✓\x20'+_0x3801e6+'\x20'+_0x5e13fd+'\x20deleted':'✓\x20'+_0x3801e6+'\x20'+_0x5e13fd+_0x27fa34(0x168),'data':{'key':_0x5e13fd,'scope':_0x5ce052,'changed':_0x35a138}};}function a58_0x4409(){const _0x31be20=['9003240olEfxW','\x20config\x20delete\x20<key>\x20[--global]','108789kXipYv','Usage:\x20','1640644NmkqYq','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','4MehpNS','1498476NWOoQP','call','7839144XLaurJ','trim','Project','35026510sQfHYi','defaultApp','args','\x22\x20is\x20not\x20deletable.','validation','60504ZtOhvy','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','Global','hasOwnProperty','7qxtyqj','5gVFZlB','prototype','global','riskLevel','config','\x20already\x20absent','key','bool','has','inherit','11McLnko','delete'];a58_0x4409=function(){return _0x31be20;};return a58_0x4409();}export const configDeleteDefinition={'service':a58_0x2c4573(0x167),'command':a58_0x2c4573(0x16e),'description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0x2c4573(0x169),'description':a58_0x2c4573(0x15f),'required':!![]}],'flags':[{'name':a58_0x2c4573(0x165),'type':'boolean','description':a58_0x2c4573(0x152),'default':![]}],'execute':execute};