@lovrabet/rabetbase-cli 2.5.5 → 2.5.6

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 (398) hide show
  1. package/README.md +15 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.d.ts +1 -0
  78. package/lib/commands/dataset/design-context.js +1 -0
  79. package/lib/commands/dataset/design-start.d.ts +1 -0
  80. package/lib/commands/dataset/design-start.js +1 -0
  81. package/lib/commands/dataset/design-status.d.ts +1 -0
  82. package/lib/commands/dataset/design-status.js +1 -0
  83. package/lib/commands/dataset/design-sync-retry.d.ts +1 -0
  84. package/lib/commands/dataset/design-sync-retry.js +1 -0
  85. package/lib/commands/dataset/design-sync-status.d.ts +1 -0
  86. package/lib/commands/dataset/design-sync-status.js +1 -0
  87. package/lib/commands/dataset/design-validate.d.ts +1 -0
  88. package/lib/commands/dataset/design-validate.js +1 -0
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/cross-db-analysis-shared.d.ts +40 -0
  113. package/lib/commands/db/cross-db-analysis-shared.js +1 -0
  114. package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
  115. package/lib/commands/db/cross-db-analyze-latest.js +1 -0
  116. package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
  117. package/lib/commands/db/cross-db-analyze-start.js +1 -0
  118. package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
  119. package/lib/commands/db/cross-db-analyze-status.js +1 -0
  120. package/lib/commands/db/delete.js +1 -1
  121. package/lib/commands/db/detail.js +1 -1
  122. package/lib/commands/db/diff-refresh-start.js +1 -1
  123. package/lib/commands/db/diff-refresh-status.js +1 -1
  124. package/lib/commands/db/diff.js +1 -1
  125. package/lib/commands/db/index.js +1 -1
  126. package/lib/commands/db/list.js +1 -1
  127. package/lib/commands/db/shared.js +1 -1
  128. package/lib/commands/db/table-diff-shared.js +1 -1
  129. package/lib/commands/db/tables.js +1 -1
  130. package/lib/commands/db/test.js +1 -1
  131. package/lib/commands/db/update.js +1 -1
  132. package/lib/commands/deployment/index.js +1 -1
  133. package/lib/commands/deployment/sync-all.js +1 -1
  134. package/lib/commands/deployment/sync-jobs.js +1 -1
  135. package/lib/commands/deployment/sync-status.js +1 -1
  136. package/lib/commands/doctor.js +1 -1
  137. package/lib/commands/file/index.js +1 -1
  138. package/lib/commands/flow/create.js +1 -1
  139. package/lib/commands/flow/detail.js +1 -1
  140. package/lib/commands/flow/index.js +1 -1
  141. package/lib/commands/flow/list.js +1 -1
  142. package/lib/commands/flow/publish.js +1 -1
  143. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  144. package/lib/commands/flow/runtime-role-list.js +1 -1
  145. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  146. package/lib/commands/flow/runtime-user-search.js +1 -1
  147. package/lib/commands/flow/shared.js +1 -1
  148. package/lib/commands/flow/update.js +1 -1
  149. package/lib/commands/flow/validate.js +1 -1
  150. package/lib/commands/instant-api-policy/current.js +1 -1
  151. package/lib/commands/instant-api-policy/index.js +1 -1
  152. package/lib/commands/instant-api-policy/init.js +1 -1
  153. package/lib/commands/instant-api-policy/publish.js +1 -1
  154. package/lib/commands/instant-api-policy/pull.js +1 -1
  155. package/lib/commands/instant-api-policy/revision.js +1 -1
  156. package/lib/commands/instant-api-policy/revisions.js +1 -1
  157. package/lib/commands/instant-api-policy/rollback.js +1 -1
  158. package/lib/commands/instant-api-policy/shared.js +1 -1
  159. package/lib/commands/instant-api-policy/validate.js +1 -1
  160. package/lib/commands/issue/index.js +1 -1
  161. package/lib/commands/issue/nudge.js +1 -1
  162. package/lib/commands/issue/report.js +1 -1
  163. package/lib/commands/issue/shared.js +1 -1
  164. package/lib/commands/kb/create.js +1 -1
  165. package/lib/commands/kb/delete.js +1 -1
  166. package/lib/commands/kb/detail.js +1 -1
  167. package/lib/commands/kb/index.js +1 -1
  168. package/lib/commands/kb/list.js +1 -1
  169. package/lib/commands/kb/search.js +1 -1
  170. package/lib/commands/kb/shared.js +1 -1
  171. package/lib/commands/kb/update.js +1 -1
  172. package/lib/commands/logs/index.js +1 -1
  173. package/lib/commands/menu/asset-update.js +1 -1
  174. package/lib/commands/menu/delete.js +1 -1
  175. package/lib/commands/menu/external-link-create.js +1 -1
  176. package/lib/commands/menu/external-link-update.js +1 -1
  177. package/lib/commands/menu/group-create.js +1 -1
  178. package/lib/commands/menu/group-update.js +1 -1
  179. package/lib/commands/menu/index.js +1 -1
  180. package/lib/commands/menu/list.js +1 -1
  181. package/lib/commands/menu/move.js +1 -1
  182. package/lib/commands/menu/regroup-start.js +1 -1
  183. package/lib/commands/menu/rename.js +1 -1
  184. package/lib/commands/menu/shared/compare-table.js +1 -1
  185. package/lib/commands/menu/shared/delete-plan.js +1 -1
  186. package/lib/commands/menu/shared/facts.js +1 -1
  187. package/lib/commands/menu/shared/index.js +1 -1
  188. package/lib/commands/menu/shared/inquirer.js +1 -1
  189. package/lib/commands/menu/shared/local-pages.js +1 -1
  190. package/lib/commands/menu/shared/logic.js +1 -1
  191. package/lib/commands/menu/shared/mutations.js +1 -1
  192. package/lib/commands/menu/shared/path.js +1 -1
  193. package/lib/commands/menu/shared/service.js +1 -1
  194. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  195. package/lib/commands/menu/shared/sync-core.js +1 -1
  196. package/lib/commands/menu/shared/update-core.js +1 -1
  197. package/lib/commands/menu/shared/valid-url.js +1 -1
  198. package/lib/commands/menu/subapp-assets-status.js +1 -1
  199. package/lib/commands/menu/subapp-assets-update.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  227. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  228. package/lib/commands/project/create/format-elapsed.js +1 -1
  229. package/lib/commands/project/create/main.js +1 -1
  230. package/lib/commands/project/create/materialize-project-template.js +1 -1
  231. package/lib/commands/project/create/project-name.js +1 -1
  232. package/lib/commands/project/create/project-template-archive.js +1 -1
  233. package/lib/commands/project/create/project-template-path.js +1 -1
  234. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  235. package/lib/commands/project/create/use-format-code.js +1 -1
  236. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  237. package/lib/commands/project/domain-routing-sync.js +1 -1
  238. package/lib/commands/project/index.js +1 -1
  239. package/lib/commands/project/upgrade.js +1 -1
  240. package/lib/commands/registry.js +1 -1
  241. package/lib/commands/role/delete.js +1 -1
  242. package/lib/commands/role/detail.js +1 -1
  243. package/lib/commands/role/index.js +1 -1
  244. package/lib/commands/role/list.js +1 -1
  245. package/lib/commands/role/shared.js +1 -1
  246. package/lib/commands/role/update.js +1 -1
  247. package/lib/commands/role/user-add.js +1 -1
  248. package/lib/commands/role/user-remove.js +1 -1
  249. package/lib/commands/role/user-resolve.js +1 -1
  250. package/lib/commands/rule/get.js +1 -1
  251. package/lib/commands/rule/index.js +1 -1
  252. package/lib/commands/rule/list.js +1 -1
  253. package/lib/commands/rule/set.js +1 -1
  254. package/lib/commands/rule/shared.js +1 -1
  255. package/lib/commands/run/index.js +1 -1
  256. package/lib/commands/schema.js +1 -1
  257. package/lib/commands/sql/create.js +1 -1
  258. package/lib/commands/sql/delete.js +1 -1
  259. package/lib/commands/sql/detail.js +1 -1
  260. package/lib/commands/sql/exec.js +1 -1
  261. package/lib/commands/sql/index.js +1 -1
  262. package/lib/commands/sql/list.js +1 -1
  263. package/lib/commands/sql/pull.js +1 -1
  264. package/lib/commands/sql/push.js +1 -1
  265. package/lib/commands/sql/shared.js +1 -1
  266. package/lib/commands/sql/status.js +1 -1
  267. package/lib/commands/sql/validate.js +1 -1
  268. package/lib/commands/task/index.js +1 -1
  269. package/lib/commands/task/status.js +1 -1
  270. package/lib/commands/tenant/index.js +1 -1
  271. package/lib/commands/tenant/members-list.js +1 -1
  272. package/lib/commands/tenant/shared.js +1 -1
  273. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  274. package/lib/commands/user-account/feishu-bind.js +1 -1
  275. package/lib/commands/user-account/index.js +1 -1
  276. package/lib/commands/workspace/add.js +1 -1
  277. package/lib/commands/workspace/index.js +1 -1
  278. package/lib/commands/workspace/remove.js +1 -1
  279. package/lib/config/domain-config.js +1 -1
  280. package/lib/config/project-domain-routing.js +1 -1
  281. package/lib/config/region-config.js +1 -1
  282. package/lib/config/schema.js +1 -1
  283. package/lib/constant/cdn.js +1 -1
  284. package/lib/constant/cli.js +1 -1
  285. package/lib/constant/defaults.js +1 -1
  286. package/lib/constant/domain.js +1 -1
  287. package/lib/constant/env.js +1 -1
  288. package/lib/constant/output.js +1 -1
  289. package/lib/constant/paths.js +1 -1
  290. package/lib/constant/region.js +1 -1
  291. package/lib/constant/risk.js +1 -1
  292. package/lib/constant/routing-profile.js +1 -1
  293. package/lib/context/app-resolver.js +1 -1
  294. package/lib/context/auth-resolver.js +1 -1
  295. package/lib/context/config-loader.js +1 -1
  296. package/lib/context.js +1 -1
  297. package/lib/core/alias-resolver.js +1 -1
  298. package/lib/core/api-client.d.ts +18 -0
  299. package/lib/core/api-client.js +1 -1
  300. package/lib/core/bff/config.js +1 -1
  301. package/lib/core/bff/file-system.js +1 -1
  302. package/lib/core/bff/hash.js +1 -1
  303. package/lib/core/bff/hook-directory.js +1 -1
  304. package/lib/core/bff/lock.js +1 -1
  305. package/lib/core/bff/utils.js +1 -1
  306. package/lib/core/cross-db-analysis.d.ts +17 -0
  307. package/lib/core/cross-db-analysis.js +1 -0
  308. package/lib/core/cross-db-relation.js +1 -1
  309. package/lib/core/db-resolver.js +1 -1
  310. package/lib/core/flow-config.js +1 -1
  311. package/lib/core/instant-api-policy/config.js +1 -1
  312. package/lib/core/kb-search-client.js +1 -1
  313. package/lib/core/page/file-system.js +1 -1
  314. package/lib/core/page/hash.js +1 -1
  315. package/lib/core/page/lock.js +1 -1
  316. package/lib/core/page/lr-smart-jsx.js +1 -1
  317. package/lib/core/sql-index-auditor.js +1 -1
  318. package/lib/core/sql-sync/config.js +1 -1
  319. package/lib/core/sql-sync/file-system.js +1 -1
  320. package/lib/core/sql-sync/hash.js +1 -1
  321. package/lib/core/sql-sync/lock.js +1 -1
  322. package/lib/core/sql-sync/utils.js +1 -1
  323. package/lib/core/sql-validator.js +1 -1
  324. package/lib/errors.js +1 -1
  325. package/lib/framework/build-all-flags.js +1 -1
  326. package/lib/framework/error-output.js +1 -1
  327. package/lib/framework/explicit-yes.js +1 -1
  328. package/lib/framework/flags.js +1 -1
  329. package/lib/framework/help.js +1 -1
  330. package/lib/framework/index.js +1 -1
  331. package/lib/framework/output.js +1 -1
  332. package/lib/framework/response.js +1 -1
  333. package/lib/framework/runner-alias.js +1 -1
  334. package/lib/framework/runner.js +1 -1
  335. package/lib/framework/schema-export.js +1 -1
  336. package/lib/framework/supported-flags.js +1 -1
  337. package/lib/framework/types.js +1 -1
  338. package/lib/generated/build-info.d.ts +4 -4
  339. package/lib/generated/build-info.js +1 -1
  340. package/lib/generated/official-routing.js +1 -1
  341. package/lib/generated/routing-contract.js +1 -1
  342. package/lib/help.js +1 -1
  343. package/lib/postinstall.js +1 -1
  344. package/lib/runtime/confirmation.js +1 -1
  345. package/lib/runtime/event.js +1 -1
  346. package/lib/runtime/index.js +1 -1
  347. package/lib/runtime/queue.js +1 -1
  348. package/lib/runtime/resolve.js +1 -1
  349. package/lib/services/dataset-design/checkpoint.d.ts +17 -0
  350. package/lib/services/dataset-design/checkpoint.js +1 -0
  351. package/lib/services/dataset-design/commands.d.ts +6 -0
  352. package/lib/services/dataset-design/commands.js +1 -0
  353. package/lib/services/dataset-design/contract.d.ts +7 -0
  354. package/lib/services/dataset-design/contract.js +1 -0
  355. package/lib/skills/builtin-skill.js +1 -1
  356. package/lib/skills/main.js +1 -1
  357. package/lib/skills/npx-skills-add.js +1 -1
  358. package/lib/skills/skill-presence.js +1 -1
  359. package/lib/telemetry/cli-command-trace.js +1 -1
  360. package/lib/telemetry/cli-help-trace.js +1 -1
  361. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  362. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  363. package/lib/telemetry/send-cli-trace-log.js +1 -1
  364. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  365. package/lib/utils/ai_config.js +1 -1
  366. package/lib/utils/apply-jq-filter.js +1 -1
  367. package/lib/utils/cdn-config.js +1 -1
  368. package/lib/utils/check-sdk-version.js +1 -1
  369. package/lib/utils/cli-version-check.js +1 -1
  370. package/lib/utils/cli-version-policy.js +1 -1
  371. package/lib/utils/config.js +1 -1
  372. package/lib/utils/entity-with-id.js +1 -1
  373. package/lib/utils/file-utils.js +1 -1
  374. package/lib/utils/guides-cdn.js +1 -1
  375. package/lib/utils/http-client.js +1 -1
  376. package/lib/utils/is-non-interactive.js +1 -1
  377. package/lib/utils/logger.js +1 -1
  378. package/lib/utils/params.js +1 -1
  379. package/lib/utils/platform.js +1 -1
  380. package/lib/utils/sleep.js +1 -1
  381. package/lib/utils/template-replacer.js +1 -1
  382. package/lib/utils/update-notice.js +1 -1
  383. package/lib/utils/version.js +1 -1
  384. package/lib/utils/with-active-cookie.js +1 -1
  385. package/lib/utils/write-cli-side-channel.js +1 -1
  386. package/package.json +3 -2
  387. package/skills/rabetbase/SKILL.md +9 -7
  388. package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
  389. package/skills/rabetbase/guides/independent-deployment.md +10 -2
  390. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
  391. package/skills/rabetbase/references/rabetbase-dataset-design.md +25 -0
  392. package/skills/rabetbase/references/rabetbase-dataset-generate.md +2 -255
  393. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
  394. package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
  395. package/skills/rabetbase-dataset-generation/SKILL.md +45 -0
  396. package/skills/rabetbase-dataset-generation/references/workflow.md +60 -0
  397. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  398. package/skills/rabetbase.manifest.json +5 -3
@@ -1 +1 @@
1
- const a44_0x577b3d=a44_0x18c8;(function(_0x46c5ed,_0x38d7cc){const _0x5f0ea9=a44_0x18c8,_0x5bcc09=_0x46c5ed();while(!![]){try{const _0x24bea1=parseInt(_0x5f0ea9(0xc6))/0x1*(-parseInt(_0x5f0ea9(0xa0))/0x2)+parseInt(_0x5f0ea9(0xde))/0x3+-parseInt(_0x5f0ea9(0xe0))/0x4+-parseInt(_0x5f0ea9(0xb6))/0x5*(-parseInt(_0x5f0ea9(0xa1))/0x6)+-parseInt(_0x5f0ea9(0x90))/0x7+parseInt(_0x5f0ea9(0xe5))/0x8*(-parseInt(_0x5f0ea9(0x94))/0x9)+-parseInt(_0x5f0ea9(0xee))/0xa*(-parseInt(_0x5f0ea9(0xef))/0xb);if(_0x24bea1===_0x38d7cc)break;else _0x5bcc09['push'](_0x5bcc09['shift']());}catch(_0x573232){_0x5bcc09['push'](_0x5bcc09['shift']());}}}(a44_0x3762,0x43a7c));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':'bff','command':a44_0x577b3d(0xce),'description':a44_0x577b3d(0xa2),'risk':a44_0x577b3d(0xf6),'structuredErrors':!![],'flags':[{'name':a44_0x577b3d(0xc0),'type':a44_0x577b3d(0xae),'description':a44_0x577b3d(0xa8),'enum':[a44_0x577b3d(0x93),'ENDPOINT',a44_0x577b3d(0x9b)]},{'name':a44_0x577b3d(0x92),'type':a44_0x577b3d(0xae),'description':a44_0x577b3d(0xab)},{'name':a44_0x577b3d(0xda),'type':a44_0x577b3d(0xb0),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x3ec32a){const _0x5ee715=a44_0x577b3d,_0x5da82d=loadBffProjectConfig(_0x3ec32a[_0x5ee715(0xbc)]),_0x390169=await readBffLockFile(_0x5da82d['lockFilePath']),{appLock:_0x38d399}=ensureLockScope(_0x390169??createEmptyBffLock(),_0x3ec32a[_0x5ee715(0xbc)],_0x5da82d[_0x5ee715(0x91)],_0x5ee715(0xce)),_0x4479c5=await getTargetFunctions(_0x5da82d,_0x3ec32a),_0x24f267=_0x4479c5[_0x5ee715(0xe4)](_0x16d57a=>_0x16d57a[_0x5ee715(0xc0)]===_0x5ee715(0x9b))?await scanLocalBffFunctions(_0x5da82d,_0x5ee715(0x9b)):_0x4479c5,_0x4e7656=await buildHookMaps(_0x3ec32a[_0x5ee715(0xbc)],_0x3ec32a[_0x5ee715(0xc5)],_0x24f267,_0x38d399,_0x3ec32a[_0x5ee715(0xbe)]||_0x3ec32a[_0x5ee715(0xe2)]?.[_0x5ee715(0x95)]||_0x3ec32a[_0x5ee715(0xe2)]?.[_0x5ee715(0xa9)]),_0x314f20=_0x3ec32a['bool'](_0x5ee715(0xda)),_0x2576fd=[];for(const _0x445501 of _0x4479c5){const _0x1a215f=await computeFileHash(_0x445501[_0x5ee715(0xc3)]),_0x4abca2=_0x38d399[_0x5ee715(0x8e)][_0x445501[_0x5ee715(0xa3)]],_0x1029da=!!_0x4abca2&&_0x4abca2['hash']===_0x1a215f,_0x2e8dde=_0x4e7656['resolutions']['get'](_0x445501[_0x5ee715(0xa3)]),_0x15c9bf=!!_0x4abca2?.[_0x5ee715(0xd0)]&&_0x4abca2[_0x5ee715(0xf0)]==null&&(_0x314f20||!_0x1029da),_0x3ef523=_0x15c9bf?missingRemoteVersionConflict(_0x445501,_0x4abca2):undefined,_0x180dc7=_0x4e7656['failures']['has'](_0x445501['lockKey'])?_0x5ee715(0xad):!_0x314f20&&_0x1029da?_0x5ee715(0xdd):_0x3ef523?_0x5ee715(0xc2):'would_push';_0x2576fd['push']({'lockKey':_0x445501[_0x5ee715(0xa3)],'filePath':_0x445501['filePath'],'remoteId':_0x4abca2?.[_0x5ee715(0xd0)]??null,'mode':_0x4abca2?.[_0x5ee715(0xd0)]?_0x5ee715(0xea):_0x5ee715(0xd9),'status':_0x180dc7,..._0x4e7656[_0x5ee715(0xd2)][_0x5ee715(0x9f)](_0x445501['lockKey'])?{'error':_0x4e7656[_0x5ee715(0xd2)][_0x5ee715(0x9e)](_0x445501[_0x5ee715(0xa3)])}:{},..._0x3ef523?{'conflict':_0x3ef523}:{},..._0x4e7656[_0x5ee715(0xc1)][_0x5ee715(0x9f)](_0x445501[_0x5ee715(0xa3)])?{'datasetCode':_0x4abca2?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x445501['lockKey'])]}:{},..._0x2e8dde?{'alias':_0x2e8dde[_0x5ee715(0xbf)]??null,'datasetCode':_0x2e8dde['datasetCode'],'operationType':_0x445501[_0x5ee715(0xcb)],'functionNode':_0x445501[_0x5ee715(0xaa)],'warnings':_0x2e8dde['warnings']}:{}});}return{'method':'POST','url':_0x5ee715(0xd6),'body':{'appCode':_0x3ec32a[_0x5ee715(0xbc)],'force':_0x314f20,'files':_0x2576fd,'cacheClearAtRuntime':_0x2576fd['some'](_0x2e063d=>_0x2e063d[_0x5ee715(0xb2)]===_0x5ee715(0xca)),'cacheClearAtRuntimeTimes':_0x2576fd[_0x5ee715(0xe4)](_0x579f78=>_0x579f78[_0x5ee715(0xb2)]===_0x5ee715(0xca))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x5ee715(0xe7)+_0x2576fd[_0x5ee715(0xed)]+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x43a284){const _0x1620be=a44_0x577b3d,_0x1329c1=loadBffProjectConfig(_0x43a284['appCode']),_0x2c47fe=await readBffLockFile(_0x1329c1[_0x1620be(0xd3)]),{lockData:_0x126f20,appLock:_0x575024}=ensureLockScope(_0x2c47fe??createEmptyBffLock(),_0x43a284['appCode'],_0x1329c1[_0x1620be(0x91)],'push'),_0x535391=await getTargetFunctions(_0x1329c1,_0x43a284);if(_0x535391[_0x1620be(0xed)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x6586f9=_0x43a284[_0x1620be(0xdb)](_0x1620be(0xda)),_0x259f10=JSON[_0x1620be(0x8c)](JSON['stringify'](_0x126f20)),_0x16d7e7=_0x259f10[_0x1620be(0x9c)][_0x43a284['appCode']];if(!_0x16d7e7)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x43a284[_0x1620be(0xbc)]+_0x1620be(0xdc));const _0x5150d8=_0x535391[_0x1620be(0xe4)](_0x17a2e3=>_0x17a2e3['type']===_0x1620be(0x9b))?await scanLocalBffFunctions(_0x1329c1,'HOOK'):_0x535391,_0x22f7d9=await buildHookMaps(_0x43a284['appCode'],_0x43a284[_0x1620be(0xc5)],_0x5150d8,_0x16d7e7,_0x43a284[_0x1620be(0xbe)]||_0x43a284[_0x1620be(0xe2)]?.[_0x1620be(0x95)]||_0x43a284[_0x1620be(0xe2)]?.[_0x1620be(0xa9)]),_0x232374=[],_0x24382c=[],_0x4e7519=[],_0x300a57=[];for(const _0x411573 of _0x535391){const _0x4a789e=_0x22f7d9['failures'][_0x1620be(0x9e)](_0x411573['lockKey']);if(_0x4a789e){_0x300a57[_0x1620be(0xce)]({'lockKey':_0x411573[_0x1620be(0xa3)],'error':_0x4a789e});continue;}const _0x250789=await computeFileHash(_0x411573[_0x1620be(0xc3)]),_0x216b01=_0x16d7e7['functions'][_0x411573[_0x1620be(0xa3)]];if(!_0x6586f9&&_0x216b01&&_0x216b01[_0x1620be(0xf3)]===_0x250789){_0x24382c['push']({'lockKey':_0x411573[_0x1620be(0xa3)],'reason':'unchanged'});continue;}if(_0x216b01?.[_0x1620be(0xd0)]&&_0x216b01['version']==null){_0x4e7519[_0x1620be(0xce)](missingRemoteVersionConflict(_0x411573,_0x216b01));continue;}try{await uploadSingleFunction(_0x43a284[_0x1620be(0xbc)],_0x411573,_0x16d7e7,_0x22f7d9);const _0x57f224=_0x16d7e7['functions'][_0x411573[_0x1620be(0xa3)]];_0x232374[_0x1620be(0xce)]({'lockKey':_0x411573[_0x1620be(0xa3)],'remoteId':_0x57f224?.['remoteId']??0x0});}catch(_0x1d43ef){const _0x226fe1=remoteVersionChangedConflict(_0x411573,_0x216b01,_0x1d43ef);if(_0x226fe1){_0x4e7519[_0x1620be(0xce)](_0x226fe1);continue;}_0x300a57[_0x1620be(0xce)]({'lockKey':_0x411573['lockKey'],'error':_0x1d43ef instanceof Error?_0x1d43ef[_0x1620be(0xf1)]:String(_0x1d43ef)});}}_0x16d7e7[_0x1620be(0xba)]=new Date()['toISOString'](),await writeBffLockFile(_0x1329c1[_0x1620be(0xd3)],_0x259f10),await waitForUploadedLockEntries(_0x1329c1[_0x1620be(0xd3)],_0x43a284[_0x1620be(0xbc)],_0x232374[_0x1620be(0xf5)](_0x4f3477=>_0x4f3477['lockKey']));let _0x186ae1={'attempted':![],'cleared':![]};if(_0x232374[_0x1620be(0xed)]>0x0)try{let _0x4a6339='';for(let _0x4e8bb7=0x0;_0x4e8bb7<CACHE_CLEAR_ATTEMPTS;_0x4e8bb7+=0x1){_0x4a6339=await clearBffScriptCache(),_0x4e8bb7<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x186ae1={'attempted':!![],'cleared':!![],'message':_0x4a6339||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x2ec88f){_0x186ae1={'attempted':!![],'cleared':![],'error':_0x2ec88f instanceof Error?_0x2ec88f['message']:String(_0x2ec88f)};}const _0x48e7b6=_0x300a57[_0x1620be(0xed)]===0x0&&(_0x186ae1[_0x1620be(0xec)]?_0x186ae1[_0x1620be(0xd7)]:!![]),_0x4e468d=_0x48e7b6,_0x338c7b=_0x186ae1[_0x1620be(0xec)]?_0x186ae1[_0x1620be(0xd7)]?_0x1620be(0xd4):_0x1620be(0xa6):'runtime\x20cache\x20not\x20needed';return{'ok':_0x4e468d,'data':{'uploaded':_0x232374,'skipped':_0x24382c,'conflicts':_0x4e7519,'failed':_0x300a57,'cacheClear':_0x186ae1,'warnings':[...[..._0x22f7d9['resolutions'][_0x1620be(0x8f)]()][_0x1620be(0xac)](_0x4f5a14=>_0x4f5a14[_0x1620be(0x96)]),...[..._0x22f7d9[_0x1620be(0xc1)]][_0x1620be(0xf5)](existingHookWarning)]},'message':formatPushMessage(_0x232374[_0x1620be(0xed)],_0x24382c['length'],_0x4e7519[_0x1620be(0xed)],_0x300a57[_0x1620be(0xed)],_0x338c7b)};}};function missingRemoteVersionConflict(_0x18777a,_0xa4db4b){const _0x5f4265=a44_0x577b3d;return remoteVersionConflict(_0x18777a,_0xa4db4b,'BFF_REMOTE_VERSION_MISSING',_0x5f4265(0xb8));}function a44_0x3762(){const _0x3c1712=['review_remote_and_merge','attempted','length','283580DecFcs','132ofmACT','version','message','scriptType','hash','utf8','map','write','afterScriptId','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','after','join','parse','size','functions','values','1781906emfVYW','scriptsRoot','name','COMMON','562482mJdwVL','currentApp','warnings','\x20skipped','every','delete','datasetCode','HOOK','apps','\x20resolution','get','has','4SGaqtS','251382QJgOmb','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','lockKey','resolutions','HOOK_DATASET_NOT_FOUND:','runtime\x20cache\x20clear\x20failed','description','Push\x20only\x20this\x20script\x20type','defaultApp','functionNode','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','flatMap','failed','string','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','boolean','\x20bff\x20detail\x20--id\x20','status','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','\x20failed',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','50ONCgzR','Local\x20function\x20not\x20found:\x20','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','BFF_REMOTE_VERSION_CHANGED','lastSync','validation','appCode','functionName','selectedAppName','alias','type','existingHooks','conflict','filePath','before','apiDir','17428mNDegr','set','Incomplete\x20HOOK\x20path:\x20','EXISTING_HOOK_BINDING_PRESERVED','would_push','operationType','profileName','Push\x20complete:\x20','push','str','remoteId','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.','failures','lockFilePath','runtime\x20cache\x20cleared','dataset','/api/management/library/scripts/save','cleared','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','create','force','bool','\x22\x20not\x20found\x20after\x20ensureLockScope.','unchanged','338583LtApOM','filter','472412KsEXNE','startsWith','mergedCli','\x20--format\x20compress','some','24VfhjRQ','requires','Would\x20inspect\x20','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','update'];a44_0x3762=function(){return _0x3c1712;};return a44_0x3762();}function remoteVersionChangedConflict(_0x5c2739,_0x4f719f,_0xb2d384){const _0x35bb95=a44_0x577b3d;if(!_0x4f719f?.['remoteId']||_0x4f719f[_0x35bb95(0xf0)]==null||!isRemoteVersionConflict(_0xb2d384))return undefined;return remoteVersionConflict(_0x5c2739,_0x4f719f,_0x35bb95(0xb9),_0x35bb95(0xf8));}function remoteVersionConflict(_0x143af0,_0x519c4d,_0x4de2f7,_0x231362){const _0x5d4522=a44_0x577b3d;return{'code':_0x4de2f7,'lockKey':_0x143af0[_0x5d4522(0xa3)],'filePath':_0x143af0[_0x5d4522(0xc3)],'remoteId':_0x519c4d['remoteId'],..._0x519c4d[_0x5d4522(0xf0)]!=null?{'expectedVersion':_0x519c4d[_0x5d4522(0xf0)]}:{},'message':_0x231362,'nextAction':{'action':_0x5d4522(0xeb),'command':CLI_BIN_NAME+_0x5d4522(0xb1)+_0x519c4d['remoteId']+_0x5d4522(0xe3),'requiresReview':!![],'message':_0x5d4522(0xd1)}};}function isRemoteVersionConflict(_0x395bd8){const _0x549dac=a44_0x577b3d,_0x4fe495=_0x395bd8 instanceof Error?_0x395bd8['message']:String(_0x395bd8),_0xe546a9=getPlatformErrorCode(_0x395bd8)??'';return[_0x4fe495,_0xe546a9][_0x549dac(0xe4)](_0x138534=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i['test'](_0x138534));}function formatPushMessage(_0x46fa99,_0x137b53,_0x906dd3,_0x5b98f6,_0x2c22f9){const _0x20884c=a44_0x577b3d,_0x2a6a4a=[_0x20884c(0xcd)+_0x46fa99+'\x20uploaded',_0x137b53+_0x20884c(0x97)];_0x906dd3>0x0&&_0x2a6a4a[_0x20884c(0xce)](_0x906dd3+'\x20conflict'+(_0x906dd3===0x1?'':'s')+'\x20'+(_0x906dd3===0x1?_0x20884c(0xe6):'require')+_0x20884c(0x9d));if(_0x5b98f6>0x0)_0x2a6a4a[_0x20884c(0xce)](_0x5b98f6+_0x20884c(0xb4));return _0x2a6a4a[_0x20884c(0xce)](_0x2c22f9),_0x2a6a4a['join'](',\x20');}async function getTargetFunctions(_0x1c268f,_0x5b8762){const _0x58896b=a44_0x577b3d,_0x43f790=_0x5b8762[_0x58896b(0xcf)]('type'),_0x1438b7=_0x5b8762[_0x58896b(0xcf)](_0x58896b(0x92)),_0x3940f2=normalizeBffType(_0x43f790)??undefined;if(_0x1438b7&&!_0x3940f2)throw CliErrors['validation']('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x5581c7=await scanLocalBffFunctions(_0x1c268f,_0x3940f2);if(_0x1438b7){const _0xba561=_0x5581c7['filter'](_0x27644e=>_0x27644e[_0x58896b(0x92)]===_0x1438b7);if(_0xba561[_0x58896b(0xed)]===0x0)throw CliErrors[_0x58896b(0xbb)](_0x58896b(0xb7)+_0x3940f2+'/'+_0x1438b7);return _0xba561;}return _0x5581c7;}function existingHookWarning(_0x1a010f){const _0x1dfb4f=a44_0x577b3d;return{'code':_0x1dfb4f(0xc9),'lockKey':_0x1a010f,'message':_0x1dfb4f(0xe9)};}function a44_0x18c8(_0x1e1e53,_0x401244){_0x1e1e53=_0x1e1e53-0x8c;const _0x3762ff=a44_0x3762();let _0x18c8b1=_0x3762ff[_0x1e1e53];return _0x18c8b1;}async function buildHookMaps(_0x4dfb89,_0x46e184,_0x31f0ab,_0x471e48,_0x602c55){const _0x40a955=a44_0x577b3d,_0x28f491=_0x31f0ab[_0x40a955(0xe4)](_0x277ccd=>_0x277ccd[_0x40a955(0xc0)]===_0x40a955(0x9b));if(!_0x28f491)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x362327=resolveApiModelSource(_0x46e184,_0x4dfb89,_0x602c55),_0x58e972=loadAliasMap(_0x46e184,undefined,_0x362327[_0x40a955(0xc3)],_0x362327[_0x40a955(0xcc)]);assertUnambiguousHookAliases(_0x58e972);const _0x4acc19=[..._0x58e972[_0x40a955(0xf5)](_0x1151db=>[_0x1151db[_0x40a955(0xbf)],_0x1151db['datasetCode']]),...trackedHookDirectoryMappings(_0x471e48)['map'](_0x2ff531=>[_0x2ff531[_0x40a955(0xbf)],_0x2ff531[_0x40a955(0x9a)]])],_0x1adc70=await listDatasets(_0x4dfb89);assertUnambiguousHookDirectoryMappings(_0x4acc19['map'](([_0x50fede,_0x5cce03])=>({'alias':_0x50fede,'datasetCode':_0x5cce03})));const _0x4a2d7c=buildHookDirectoryIndexes(_0x1adc70,_0x4acc19),_0x176f07=new Map(),_0x47bec1=preflightPushHookDirectories(_0x31f0ab,_0x471e48,_0x4a2d7c,_0x176f07),_0xb2cb6b=new Set(),_0xe8c2a0=_0x31f0ab[_0x40a955(0xdf)](_0x3ae20d=>_0x176f07[_0x40a955(0x9e)](_0x3ae20d['lockKey'])?.[_0x40a955(0xe1)](_0x40a955(0xa5))&&_0x471e48[_0x40a955(0x8e)][_0x3ae20d[_0x40a955(0xa3)]]?.[_0x40a955(0xd0)]&&_0x471e48[_0x40a955(0x8e)][_0x3ae20d[_0x40a955(0xa3)]]?.[_0x40a955(0x9a)]);if(_0xe8c2a0['length']>0x0){let _0x2e3d86;try{_0x2e3d86=await getBffScriptStatistics(_0x4dfb89);}catch(_0x59f9df){for(const _0x12c648 of _0xe8c2a0)_0x176f07[_0x40a955(0xc7)](_0x12c648['lockKey'],_0x40a955(0xb3)+(_0x59f9df instanceof Error?_0x59f9df[_0x40a955(0xf1)]:String(_0x59f9df)));return{'resolutions':_0x47bec1,'failures':_0x176f07,'existingHooks':_0xb2cb6b};}for(const _0x42e0ce of _0xe8c2a0){const _0x3ca5b7=_0x471e48['functions'][_0x42e0ce['lockKey']];try{const _0x3207f0=new Set(_0x31f0ab[_0x40a955(0xdf)](_0x8c10a8=>_0x8c10a8[_0x40a955(0xc0)]===_0x40a955(0x9b)&&_0x471e48[_0x40a955(0x8e)][_0x8c10a8[_0x40a955(0xa3)]]?.[_0x40a955(0x9a)]===_0x3ca5b7['datasetCode'])[_0x40a955(0xf5)](_0x39e692=>_0x39e692['alias']));if(_0x3207f0[_0x40a955(0x8d)]>0x1)throw CliErrors[_0x40a955(0xbb)](_0x40a955(0xe8));const _0x5b5e7a=_0x2e3d86['flatMap'](_0x313d75=>[{'datasetCode':_0x313d75[_0x40a955(0x9a)],'operationType':snakeToCamel(_0x313d75[_0x40a955(0xcb)]),'functionNode':_0x40a955(0xc4),'id':_0x313d75['beforeScriptId']},{'datasetCode':_0x313d75['datasetCode'],'operationType':snakeToCamel(_0x313d75[_0x40a955(0xcb)]),'functionNode':_0x40a955(0xf9),'id':_0x313d75[_0x40a955(0xf7)]}])[_0x40a955(0xdf)](_0x469011=>_0x469011['id']===_0x3ca5b7[_0x40a955(0xd0)]),_0x50ef72=await getBffScriptInfo(_0x3ca5b7[_0x40a955(0xd0)]);if(_0x50ef72['id']!==_0x3ca5b7[_0x40a955(0xd0)]||_0x50ef72[_0x40a955(0xbc)]!==_0x4dfb89||_0x50ef72[_0x40a955(0xf2)]!==_0x40a955(0x9b)||_0x50ef72[_0x40a955(0xbd)]!==_0x42e0ce[_0x40a955(0x92)]||_0x3ca5b7[_0x40a955(0xf0)]==null||_0x50ef72['version']!==_0x3ca5b7[_0x40a955(0xf0)]||_0x5b5e7a[_0x40a955(0xed)]!==0x1||_0x5b5e7a[0x0][_0x40a955(0x9a)]!==_0x3ca5b7[_0x40a955(0x9a)]||_0x5b5e7a[0x0][_0x40a955(0xcb)]!==_0x42e0ce[_0x40a955(0xcb)]||_0x5b5e7a[0x0][_0x40a955(0xaa)]!==_0x42e0ce[_0x40a955(0xaa)]||_0x3ca5b7[_0x40a955(0xcb)]!==_0x42e0ce['operationType']||_0x3ca5b7['functionNode']!==_0x42e0ce[_0x40a955(0xaa)])throw CliErrors['validation'](_0x40a955(0xaf));_0xb2cb6b['add'](_0x42e0ce[_0x40a955(0xa3)]),_0x176f07[_0x40a955(0x99)](_0x42e0ce['lockKey']);}catch(_0x3699c3){_0x176f07[_0x40a955(0xc7)](_0x42e0ce[_0x40a955(0xa3)],_0x3699c3 instanceof Error?_0x3699c3[_0x40a955(0xf1)]:String(_0x3699c3));}}}return{'resolutions':_0x47bec1,'failures':_0x176f07,'existingHooks':_0xb2cb6b};}async function uploadSingleFunction(_0x1a9315,_0x28d9ee,_0x557246,_0x162215){const _0x9f1118=a44_0x577b3d,_0x286b0e=await readFile(_0x28d9ee['filePath'],_0x9f1118(0xf4)),_0x5c5796=await computeFileHash(_0x28d9ee['filePath']),_0x29244e=_0x557246['functions'][_0x28d9ee[_0x9f1118(0xa3)]];if(_0x29244e?.[_0x9f1118(0xd0)]&&_0x29244e[_0x9f1118(0xf0)]==null)throw CliErrors[_0x9f1118(0xbb)](_0x28d9ee[_0x9f1118(0xa3)]+_0x9f1118(0xb5));let _0x313e9e=extractScriptDescription(_0x286b0e);if(!_0x313e9e&&_0x29244e?.[_0x9f1118(0xd0)]){const _0x31fd8f=await getBffScriptInfo(_0x29244e[_0x9f1118(0xd0)]);_0x313e9e=_0x31fd8f[_0x9f1118(0xa7)]||undefined;}const _0x2e2b19={'appCode':_0x1a9315,'functionName':_0x28d9ee[_0x9f1118(0x92)],'scriptType':_0x28d9ee[_0x9f1118(0xc0)],'scriptContent':_0x286b0e};if(_0x29244e?.[_0x9f1118(0xd0)])_0x2e2b19['id']=_0x29244e[_0x9f1118(0xd0)];if(_0x29244e?.[_0x9f1118(0xf0)]!=null)_0x2e2b19[_0x9f1118(0xf0)]=_0x29244e[_0x9f1118(0xf0)];if(_0x313e9e)_0x2e2b19[_0x9f1118(0xa7)]=_0x313e9e;if(_0x28d9ee[_0x9f1118(0xc0)]==='HOOK'){const _0x5e8a78=_0x162215[_0x9f1118(0xa4)][_0x9f1118(0x9e)](_0x28d9ee[_0x9f1118(0xa3)]);if(!_0x5e8a78&&!_0x162215[_0x9f1118(0xc1)][_0x9f1118(0x9f)](_0x28d9ee[_0x9f1118(0xa3)])||!_0x28d9ee['operationType']||!_0x28d9ee[_0x9f1118(0xaa)])throw CliErrors[_0x9f1118(0xbb)](_0x9f1118(0xc8)+_0x28d9ee[_0x9f1118(0xa3)]);_0x5e8a78&&(_0x2e2b19['datasetId']=_0x5e8a78[_0x9f1118(0xd5)]['id'],_0x2e2b19[_0x9f1118(0xcb)]=_0x28d9ee[_0x9f1118(0xcb)]),_0x2e2b19[_0x9f1118(0xaa)]=_0x28d9ee[_0x9f1118(0xaa)];}const _0x217564=await saveBffScript(_0x2e2b19),_0x4bfff1=_0x217564['id'],_0x398bf5=_0x217564['script']??await getBffScriptInfo(_0x4bfff1),_0x5d13f3={'hash':_0x5c5796,'remoteId':_0x4bfff1,'version':_0x398bf5['version']};if(_0x28d9ee[_0x9f1118(0xc0)]===_0x9f1118(0x9b)){const _0x24f6b5=_0x162215[_0x9f1118(0xa4)]['get'](_0x28d9ee[_0x9f1118(0xa3)]);if(!_0x24f6b5){_0x557246['functions'][_0x28d9ee['lockKey']]={..._0x29244e,..._0x5d13f3};return;}_0x5d13f3[_0x9f1118(0xbf)]=_0x24f6b5[_0x9f1118(0xbf)]??_0x29244e?.[_0x9f1118(0xbf)],_0x5d13f3[_0x9f1118(0x9a)]=_0x24f6b5[_0x9f1118(0x9a)],_0x5d13f3['operationType']=_0x28d9ee['operationType'],_0x5d13f3[_0x9f1118(0xaa)]=_0x28d9ee[_0x9f1118(0xaa)];}_0x557246[_0x9f1118(0x8e)][_0x28d9ee[_0x9f1118(0xa3)]]=_0x5d13f3;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x4ad106,_0x325bc2,_0x5118e7){const _0x5f31b7=a44_0x577b3d;if(_0x5118e7['length']===0x0)return;for(let _0x2116ba=0x0;_0x2116ba<LOCK_SETTLE_RETRY_COUNT;_0x2116ba+=0x1){const _0xb82afa=await readBffLockFile(_0x4ad106),_0x52d01a=_0xb82afa?.[_0x5f31b7(0x9c)]?.[_0x325bc2]?.[_0x5f31b7(0x8e)]??{},_0xd71695=_0x5118e7[_0x5f31b7(0x98)](_0x4b857a=>!!_0x52d01a[_0x4b857a]?.[_0x5f31b7(0xd0)]);if(_0xd71695)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x5f31b7(0xd8)+_0x5118e7[_0x5f31b7(0xfa)](',\x20')+'.');}
1
+ const a44_0x2133b6=a44_0xf34f;(function(_0x5a0c10,_0x489e48){const _0x572072=a44_0xf34f,_0x679214=_0x5a0c10();while(!![]){try{const _0x7a8265=-parseInt(_0x572072(0xca))/0x1+-parseInt(_0x572072(0xfe))/0x2*(parseInt(_0x572072(0xdf))/0x3)+parseInt(_0x572072(0xa8))/0x4+-parseInt(_0x572072(0xcc))/0x5+parseInt(_0x572072(0xae))/0x6+parseInt(_0x572072(0xe9))/0x7*(-parseInt(_0x572072(0x9c))/0x8)+-parseInt(_0x572072(0xc7))/0x9*(-parseInt(_0x572072(0xa6))/0xa);if(_0x7a8265===_0x489e48)break;else _0x679214['push'](_0x679214['shift']());}catch(_0x19a51a){_0x679214['push'](_0x679214['shift']());}}}(a44_0x3b7e,0x995b9));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_0x2133b6(0xa5),'command':a44_0x2133b6(0xb4),'description':a44_0x2133b6(0xde),'risk':a44_0x2133b6(0xcf),'structuredErrors':!![],'flags':[{'name':'type','type':a44_0x2133b6(0xea),'description':a44_0x2133b6(0xda),'enum':['COMMON',a44_0x2133b6(0x102),a44_0x2133b6(0xf1)]},{'name':a44_0x2133b6(0xe3),'type':a44_0x2133b6(0xea),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a44_0x2133b6(0xcb),'type':a44_0x2133b6(0xbb),'description':a44_0x2133b6(0xf7)}],async 'dryRun'(_0x26878e){const _0x1e38ca=a44_0x2133b6,_0x394ab8=loadBffProjectConfig(_0x26878e[_0x1e38ca(0xd6)]),_0x586678=await readBffLockFile(_0x394ab8[_0x1e38ca(0xc8)]),{appLock:_0x5da437}=ensureLockScope(_0x586678??createEmptyBffLock(),_0x26878e['appCode'],_0x394ab8['scriptsRoot'],_0x1e38ca(0xb4)),_0x3305e8=await getTargetFunctions(_0x394ab8,_0x26878e),_0x22da8d=_0x3305e8['some'](_0x297a66=>_0x297a66[_0x1e38ca(0xd1)]==='HOOK')?await scanLocalBffFunctions(_0x394ab8,'HOOK'):_0x3305e8,_0x5a9642=await buildHookMaps(_0x26878e[_0x1e38ca(0xd6)],_0x26878e['apiDir'],_0x22da8d,_0x5da437,_0x26878e[_0x1e38ca(0x97)]||_0x26878e['mergedCli']?.[_0x1e38ca(0xc9)]||_0x26878e[_0x1e38ca(0xc2)]?.['defaultApp']),_0x4aa02a=_0x26878e['bool'](_0x1e38ca(0xcb)),_0x319e52=[];for(const _0x4c0405 of _0x3305e8){const _0x7b0171=await computeFileHash(_0x4c0405[_0x1e38ca(0xe6)]),_0x2b8f90=_0x5da437['functions'][_0x4c0405['lockKey']],_0x98d3b1=!!_0x2b8f90&&_0x2b8f90[_0x1e38ca(0xd0)]===_0x7b0171,_0x5b1a80=_0x5a9642[_0x1e38ca(0xf3)][_0x1e38ca(0xe2)](_0x4c0405[_0x1e38ca(0xb8)]),_0x49645b=!!_0x2b8f90?.[_0x1e38ca(0xff)]&&_0x2b8f90[_0x1e38ca(0xf6)]==null&&(_0x4aa02a||!_0x98d3b1),_0x5cf75b=_0x49645b?missingRemoteVersionConflict(_0x4c0405,_0x2b8f90):undefined,_0x1fd7d1=_0x5a9642['failures'][_0x1e38ca(0xd4)](_0x4c0405[_0x1e38ca(0xb8)])?_0x1e38ca(0xf8):!_0x4aa02a&&_0x98d3b1?_0x1e38ca(0xdc):_0x5cf75b?'conflict':_0x1e38ca(0xd9);_0x319e52[_0x1e38ca(0xb4)]({'lockKey':_0x4c0405[_0x1e38ca(0xb8)],'filePath':_0x4c0405[_0x1e38ca(0xe6)],'remoteId':_0x2b8f90?.[_0x1e38ca(0xff)]??null,'mode':_0x2b8f90?.[_0x1e38ca(0xff)]?_0x1e38ca(0xa9):_0x1e38ca(0xee),'status':_0x1fd7d1,..._0x5a9642[_0x1e38ca(0xb5)]['has'](_0x4c0405[_0x1e38ca(0xb8)])?{'error':_0x5a9642['failures'][_0x1e38ca(0xe2)](_0x4c0405[_0x1e38ca(0xb8)])}:{},..._0x5cf75b?{'conflict':_0x5cf75b}:{},..._0x5a9642['existingHooks'][_0x1e38ca(0xd4)](_0x4c0405['lockKey'])?{'datasetCode':_0x2b8f90?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x4c0405[_0x1e38ca(0xb8)])]}:{},..._0x5b1a80?{'alias':_0x5b1a80[_0x1e38ca(0xa7)]??null,'datasetCode':_0x5b1a80[_0x1e38ca(0x98)],'operationType':_0x4c0405[_0x1e38ca(0x9b)],'functionNode':_0x4c0405['functionNode'],'warnings':_0x5b1a80[_0x1e38ca(0xcd)]}:{}});}return{'method':_0x1e38ca(0xed),'url':_0x1e38ca(0xc1),'body':{'appCode':_0x26878e[_0x1e38ca(0xd6)],'force':_0x4aa02a,'files':_0x319e52,'cacheClearAtRuntime':_0x319e52[_0x1e38ca(0xa0)](_0x496c97=>_0x496c97['status']===_0x1e38ca(0xd9)),'cacheClearAtRuntimeTimes':_0x319e52[_0x1e38ca(0xa0)](_0xe76c7b=>_0xe76c7b[_0x1e38ca(0x9e)]===_0x1e38ca(0xd9))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x1e38ca(0xb2)+_0x319e52[_0x1e38ca(0xd3)]+_0x1e38ca(0xdd)};},async 'execute'(_0x3ff953){const _0x292862=a44_0x2133b6,_0x358265=loadBffProjectConfig(_0x3ff953[_0x292862(0xd6)]),_0x457143=await readBffLockFile(_0x358265[_0x292862(0xc8)]),{lockData:_0x292ea1,appLock:_0x3ca493}=ensureLockScope(_0x457143??createEmptyBffLock(),_0x3ff953[_0x292862(0xd6)],_0x358265[_0x292862(0xe5)],_0x292862(0xb4)),_0x1a600e=await getTargetFunctions(_0x358265,_0x3ff953);if(_0x1a600e['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x292862(0xd8)};const _0xddb352=_0x3ff953[_0x292862(0xa2)](_0x292862(0xcb)),_0xed75b9=JSON['parse'](JSON[_0x292862(0xfa)](_0x292ea1)),_0x2a440a=_0xed75b9[_0x292862(0xb9)][_0x3ff953[_0x292862(0xd6)]];if(!_0x2a440a)throw new Error(_0x292862(0xfb)+_0x3ff953['appCode']+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x1a5ea9=_0x1a600e[_0x292862(0xa0)](_0x2e292c=>_0x2e292c[_0x292862(0xd1)]===_0x292862(0xf1))?await scanLocalBffFunctions(_0x358265,_0x292862(0xf1)):_0x1a600e,_0x3a2a94=await buildHookMaps(_0x3ff953[_0x292862(0xd6)],_0x3ff953[_0x292862(0xaf)],_0x1a5ea9,_0x2a440a,_0x3ff953[_0x292862(0x97)]||_0x3ff953['mergedCli']?.[_0x292862(0xc9)]||_0x3ff953[_0x292862(0xc2)]?.['defaultApp']),_0x57c66c=[],_0x1a050d=[],_0x55589b=[],_0xdf9d3a=[];for(const _0x5cd1be of _0x1a600e){const _0x34983b=_0x3a2a94[_0x292862(0xb5)][_0x292862(0xe2)](_0x5cd1be[_0x292862(0xb8)]);if(_0x34983b){_0xdf9d3a['push']({'lockKey':_0x5cd1be[_0x292862(0xb8)],'error':_0x34983b});continue;}const _0x535eb3=await computeFileHash(_0x5cd1be['filePath']),_0x15270c=_0x2a440a[_0x292862(0xbd)][_0x5cd1be[_0x292862(0xb8)]];if(!_0xddb352&&_0x15270c&&_0x15270c[_0x292862(0xd0)]===_0x535eb3){_0x1a050d[_0x292862(0xb4)]({'lockKey':_0x5cd1be[_0x292862(0xb8)],'reason':_0x292862(0xdc)});continue;}if(_0x15270c?.[_0x292862(0xff)]&&_0x15270c[_0x292862(0xf6)]==null){_0x55589b[_0x292862(0xb4)](missingRemoteVersionConflict(_0x5cd1be,_0x15270c));continue;}try{await uploadSingleFunction(_0x3ff953[_0x292862(0xd6)],_0x5cd1be,_0x2a440a,_0x3a2a94);const _0x4c4ad1=_0x2a440a[_0x292862(0xbd)][_0x5cd1be[_0x292862(0xb8)]];_0x57c66c[_0x292862(0xb4)]({'lockKey':_0x5cd1be['lockKey'],'remoteId':_0x4c4ad1?.[_0x292862(0xff)]??0x0});}catch(_0x2299f7){const _0x3b504a=remoteVersionChangedConflict(_0x5cd1be,_0x15270c,_0x2299f7);if(_0x3b504a){_0x55589b['push'](_0x3b504a);continue;}_0xdf9d3a['push']({'lockKey':_0x5cd1be[_0x292862(0xb8)],'error':_0x2299f7 instanceof Error?_0x2299f7['message']:String(_0x2299f7)});}}_0x2a440a[_0x292862(0xf5)]=new Date()[_0x292862(0xba)](),await writeBffLockFile(_0x358265['lockFilePath'],_0xed75b9),await waitForUploadedLockEntries(_0x358265[_0x292862(0xc8)],_0x3ff953[_0x292862(0xd6)],_0x57c66c[_0x292862(0xb6)](_0x7718ae=>_0x7718ae[_0x292862(0xb8)]));let _0x2f33b4={'attempted':![],'cleared':![]};if(_0x57c66c['length']>0x0)try{let _0x332a92='';for(let _0x534861=0x0;_0x534861<CACHE_CLEAR_ATTEMPTS;_0x534861+=0x1){_0x332a92=await clearBffScriptCache(),_0x534861<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x2f33b4={'attempted':!![],'cleared':!![],'message':_0x332a92||_0x292862(0x9d)};}catch(_0x473e8b){_0x2f33b4={'attempted':!![],'cleared':![],'error':_0x473e8b instanceof Error?_0x473e8b[_0x292862(0xe4)]:String(_0x473e8b)};}const _0x4935d4=_0xdf9d3a[_0x292862(0xd3)]===0x0&&(_0x2f33b4['attempted']?_0x2f33b4['cleared']:!![]),_0xb51414=_0x4935d4,_0x479fd0=_0x2f33b4['attempted']?_0x2f33b4[_0x292862(0x101)]?'runtime\x20cache\x20cleared':'runtime\x20cache\x20clear\x20failed':'runtime\x20cache\x20not\x20needed';return{'ok':_0xb51414,'data':{'uploaded':_0x57c66c,'skipped':_0x1a050d,'conflicts':_0x55589b,'failed':_0xdf9d3a,'cacheClear':_0x2f33b4,'warnings':[...[..._0x3a2a94[_0x292862(0xf3)][_0x292862(0xc5)]()][_0x292862(0x9f)](_0x232328=>_0x232328['warnings']),...[..._0x3a2a94[_0x292862(0xc4)]][_0x292862(0xb6)](existingHookWarning)]},'message':formatPushMessage(_0x57c66c[_0x292862(0xd3)],_0x1a050d[_0x292862(0xd3)],_0x55589b[_0x292862(0xd3)],_0xdf9d3a[_0x292862(0xd3)],_0x479fd0)};}};function missingRemoteVersionConflict(_0x514d67,_0x3f6dae){const _0x2b6186=a44_0x2133b6;return remoteVersionConflict(_0x514d67,_0x3f6dae,_0x2b6186(0xf4),_0x2b6186(0xaa));}function remoteVersionChangedConflict(_0xa0a632,_0x3a765f,_0x3f799e){const _0x41b612=a44_0x2133b6;if(!_0x3a765f?.[_0x41b612(0xff)]||_0x3a765f[_0x41b612(0xf6)]==null||!isRemoteVersionConflict(_0x3f799e))return undefined;return remoteVersionConflict(_0xa0a632,_0x3a765f,_0x41b612(0xfc),'Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.');}function remoteVersionConflict(_0x4625be,_0x23f52d,_0x634bfc,_0x2e3590){const _0x5edb2a=a44_0x2133b6;return{'code':_0x634bfc,'lockKey':_0x4625be[_0x5edb2a(0xb8)],'filePath':_0x4625be[_0x5edb2a(0xe6)],'remoteId':_0x23f52d[_0x5edb2a(0xff)],..._0x23f52d['version']!=null?{'expectedVersion':_0x23f52d[_0x5edb2a(0xf6)]}:{},'message':_0x2e3590,'nextAction':{'action':_0x5edb2a(0xe0),'command':CLI_BIN_NAME+_0x5edb2a(0xb3)+_0x23f52d['remoteId']+_0x5edb2a(0xdb),'requiresReview':!![],'message':_0x5edb2a(0xe8)}};}function isRemoteVersionConflict(_0x3f134a){const _0x691668=a44_0x2133b6,_0x5d21a8=_0x3f134a instanceof Error?_0x3f134a[_0x691668(0xe4)]:String(_0x3f134a),_0x272d8a=getPlatformErrorCode(_0x3f134a)??'';return[_0x5d21a8,_0x272d8a][_0x691668(0xa0)](_0x3292d9=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i['test'](_0x3292d9));}function a44_0xf34f(_0x31d382,_0x6e355a){_0x31d382=_0x31d382-0x97;const _0x3b7e40=a44_0x3b7e();let _0xf34f17=_0x3b7e40[_0x31d382];return _0xf34f17;}function a44_0x3b7e(){const _0x6b7683=['Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','21MzSbtF','review_remote_and_merge','script','get','name','message','scriptsRoot','filePath','str','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.','4247439aiVwDY','string','\x20conflict','validation','POST','create','before','description','HOOK','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','resolutions','BFF_REMOTE_VERSION_MISSING','lastSync','version','Force\x20push\x20ignoring\x20hash\x20protection','failed','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','stringify','Lock\x20scope\x20for\x20app\x20\x22','BFF_REMOTE_VERSION_CHANGED','utf8','304772UzEEec','remoteId','startsWith','cleared','ENDPOINT','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','require','after','selectedAppName','datasetCode','\x20uploaded','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','operationType','16AplIBV','Runtime\x20script\x20cache\x20cleared.','status','flatMap','some','beforeScriptId','bool','\x20failed','dataset','bff','14870ANMKCN','alias','4614636xTLIlG','update','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','add','functionNode','size','3667368jVfmJa','apiDir','filter','afterScriptId','Would\x20inspect\x20','\x20bff\x20detail\x20--id\x20','push','failures','map','set','lockKey','apps','toISOString','boolean','\x20resolution','functions','Incomplete\x20HOOK\x20path:\x20','functionName','datasetId','/api/management/library/scripts/save','mergedCli','delete','existingHooks','values','every','14211TOyveA','lockFilePath','currentApp','526960kHNioo','force','3387455nbZico','warnings','requires','write','hash','type','profileName','length','has','HOOK_DATASET_NOT_FOUND:','appCode','EXISTING_HOOK_BINDING_PRESERVED','No\x20local\x20Backend\x20Function\x20scripts\x20found.','would_push','Push\x20only\x20this\x20script\x20type','\x20--format\x20compress','unchanged','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'];a44_0x3b7e=function(){return _0x6b7683;};return a44_0x3b7e();}function formatPushMessage(_0xf992bf,_0x14cb9f,_0x31f88e,_0x42df51,_0x5d74b2){const _0x8bf98a=a44_0x2133b6,_0x251187=['Push\x20complete:\x20'+_0xf992bf+_0x8bf98a(0x99),_0x14cb9f+'\x20skipped'];_0x31f88e>0x0&&_0x251187[_0x8bf98a(0xb4)](_0x31f88e+_0x8bf98a(0xeb)+(_0x31f88e===0x1?'':'s')+'\x20'+(_0x31f88e===0x1?_0x8bf98a(0xce):_0x8bf98a(0x104))+_0x8bf98a(0xbc));if(_0x42df51>0x0)_0x251187[_0x8bf98a(0xb4)](_0x42df51+_0x8bf98a(0xa3));return _0x251187['push'](_0x5d74b2),_0x251187['join'](',\x20');}async function getTargetFunctions(_0x3b5ff7,_0x1bfeaf){const _0x28ed39=a44_0x2133b6,_0x406db8=_0x1bfeaf[_0x28ed39(0xe7)](_0x28ed39(0xd1)),_0x1e2830=_0x1bfeaf['str']('name'),_0x5efb45=normalizeBffType(_0x406db8)??undefined;if(_0x1e2830&&!_0x5efb45)throw CliErrors[_0x28ed39(0xec)](_0x28ed39(0x9a));const _0x180c5e=await scanLocalBffFunctions(_0x3b5ff7,_0x5efb45);if(_0x1e2830){const _0x3f96fb=_0x180c5e[_0x28ed39(0xb0)](_0x46564e=>_0x46564e[_0x28ed39(0xe3)]===_0x1e2830);if(_0x3f96fb[_0x28ed39(0xd3)]===0x0)throw CliErrors[_0x28ed39(0xec)]('Local\x20function\x20not\x20found:\x20'+_0x5efb45+'/'+_0x1e2830);return _0x3f96fb;}return _0x180c5e;}function existingHookWarning(_0x2d9fc3){const _0x413df4=a44_0x2133b6;return{'code':_0x413df4(0xd7),'lockKey':_0x2d9fc3,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x959fa8,_0xa68bb5,_0x4ce884,_0x7ce922,_0x2c484e){const _0x217124=a44_0x2133b6,_0x4d5a74=_0x4ce884['some'](_0xf4ab46=>_0xf4ab46['type']===_0x217124(0xf1));if(!_0x4d5a74)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x247026=resolveApiModelSource(_0xa68bb5,_0x959fa8,_0x2c484e),_0x4e6f70=loadAliasMap(_0xa68bb5,undefined,_0x247026['filePath'],_0x247026[_0x217124(0xd2)]);assertUnambiguousHookAliases(_0x4e6f70);const _0x5c1da4=[..._0x4e6f70[_0x217124(0xb6)](_0x1bcf66=>[_0x1bcf66[_0x217124(0xa7)],_0x1bcf66['datasetCode']]),...trackedHookDirectoryMappings(_0x7ce922)[_0x217124(0xb6)](_0x1f749a=>[_0x1f749a[_0x217124(0xa7)],_0x1f749a['datasetCode']])],_0x489e97=await listDatasets(_0x959fa8);assertUnambiguousHookDirectoryMappings(_0x5c1da4[_0x217124(0xb6)](([_0x7e6d79,_0x861c85])=>({'alias':_0x7e6d79,'datasetCode':_0x861c85})));const _0x5d7d6b=buildHookDirectoryIndexes(_0x489e97,_0x5c1da4),_0xcef828=new Map(),_0x47e895=preflightPushHookDirectories(_0x4ce884,_0x7ce922,_0x5d7d6b,_0xcef828),_0x50adc4=new Set(),_0x5d0f0f=_0x4ce884[_0x217124(0xb0)](_0x1ebd68=>_0xcef828[_0x217124(0xe2)](_0x1ebd68[_0x217124(0xb8)])?.[_0x217124(0x100)](_0x217124(0xd5))&&_0x7ce922[_0x217124(0xbd)][_0x1ebd68['lockKey']]?.[_0x217124(0xff)]&&_0x7ce922['functions'][_0x1ebd68[_0x217124(0xb8)]]?.[_0x217124(0x98)]);if(_0x5d0f0f[_0x217124(0xd3)]>0x0){let _0x11205d;try{_0x11205d=await getBffScriptStatistics(_0x959fa8);}catch(_0xcccd25){for(const _0x4f3391 of _0x5d0f0f)_0xcef828[_0x217124(0xb7)](_0x4f3391[_0x217124(0xb8)],'Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20'+(_0xcccd25 instanceof Error?_0xcccd25['message']:String(_0xcccd25)));return{'resolutions':_0x47e895,'failures':_0xcef828,'existingHooks':_0x50adc4};}for(const _0x50398f of _0x5d0f0f){const _0x29fff5=_0x7ce922[_0x217124(0xbd)][_0x50398f[_0x217124(0xb8)]];try{const _0x1c2a0c=new Set(_0x4ce884[_0x217124(0xb0)](_0x20fa0b=>_0x20fa0b[_0x217124(0xd1)]===_0x217124(0xf1)&&_0x7ce922['functions'][_0x20fa0b[_0x217124(0xb8)]]?.[_0x217124(0x98)]===_0x29fff5[_0x217124(0x98)])[_0x217124(0xb6)](_0x21bbec=>_0x21bbec['alias']));if(_0x1c2a0c[_0x217124(0xad)]>0x1)throw CliErrors[_0x217124(0xec)](_0x217124(0xf9));const _0x358e52=_0x11205d[_0x217124(0x9f)](_0x443c22=>[{'datasetCode':_0x443c22['datasetCode'],'operationType':snakeToCamel(_0x443c22[_0x217124(0x9b)]),'functionNode':_0x217124(0xef),'id':_0x443c22[_0x217124(0xa1)]},{'datasetCode':_0x443c22[_0x217124(0x98)],'operationType':snakeToCamel(_0x443c22[_0x217124(0x9b)]),'functionNode':_0x217124(0x105),'id':_0x443c22[_0x217124(0xb1)]}])[_0x217124(0xb0)](_0x23997e=>_0x23997e['id']===_0x29fff5[_0x217124(0xff)]),_0x31764c=await getBffScriptInfo(_0x29fff5[_0x217124(0xff)]);if(_0x31764c['id']!==_0x29fff5[_0x217124(0xff)]||_0x31764c['appCode']!==_0x959fa8||_0x31764c['scriptType']!==_0x217124(0xf1)||_0x31764c[_0x217124(0xbf)]!==_0x50398f[_0x217124(0xe3)]||_0x29fff5[_0x217124(0xf6)]==null||_0x31764c[_0x217124(0xf6)]!==_0x29fff5[_0x217124(0xf6)]||_0x358e52[_0x217124(0xd3)]!==0x1||_0x358e52[0x0][_0x217124(0x98)]!==_0x29fff5[_0x217124(0x98)]||_0x358e52[0x0][_0x217124(0x9b)]!==_0x50398f[_0x217124(0x9b)]||_0x358e52[0x0][_0x217124(0xac)]!==_0x50398f['functionNode']||_0x29fff5[_0x217124(0x9b)]!==_0x50398f[_0x217124(0x9b)]||_0x29fff5[_0x217124(0xac)]!==_0x50398f['functionNode'])throw CliErrors[_0x217124(0xec)](_0x217124(0xf2));_0x50adc4[_0x217124(0xab)](_0x50398f[_0x217124(0xb8)]),_0xcef828[_0x217124(0xc3)](_0x50398f[_0x217124(0xb8)]);}catch(_0x5d2c3f){_0xcef828['set'](_0x50398f[_0x217124(0xb8)],_0x5d2c3f instanceof Error?_0x5d2c3f[_0x217124(0xe4)]:String(_0x5d2c3f));}}}return{'resolutions':_0x47e895,'failures':_0xcef828,'existingHooks':_0x50adc4};}async function uploadSingleFunction(_0x171bed,_0x1cbe30,_0x455caf,_0x4e1fb9){const _0x592eae=a44_0x2133b6,_0xa924b5=await readFile(_0x1cbe30[_0x592eae(0xe6)],_0x592eae(0xfd)),_0x41c2a4=await computeFileHash(_0x1cbe30[_0x592eae(0xe6)]),_0x53d615=_0x455caf['functions'][_0x1cbe30[_0x592eae(0xb8)]];if(_0x53d615?.['remoteId']&&_0x53d615[_0x592eae(0xf6)]==null)throw CliErrors['validation'](_0x1cbe30[_0x592eae(0xb8)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x583fa0=extractScriptDescription(_0xa924b5);if(!_0x583fa0&&_0x53d615?.[_0x592eae(0xff)]){const _0x18ebde=await getBffScriptInfo(_0x53d615[_0x592eae(0xff)]);_0x583fa0=_0x18ebde[_0x592eae(0xf0)]||undefined;}const _0x491bd5={'appCode':_0x171bed,'functionName':_0x1cbe30[_0x592eae(0xe3)],'scriptType':_0x1cbe30['type'],'scriptContent':_0xa924b5};if(_0x53d615?.[_0x592eae(0xff)])_0x491bd5['id']=_0x53d615[_0x592eae(0xff)];if(_0x53d615?.['version']!=null)_0x491bd5[_0x592eae(0xf6)]=_0x53d615['version'];if(_0x583fa0)_0x491bd5['description']=_0x583fa0;if(_0x1cbe30[_0x592eae(0xd1)]===_0x592eae(0xf1)){const _0x57cdef=_0x4e1fb9['resolutions'][_0x592eae(0xe2)](_0x1cbe30['lockKey']);if(!_0x57cdef&&!_0x4e1fb9[_0x592eae(0xc4)][_0x592eae(0xd4)](_0x1cbe30[_0x592eae(0xb8)])||!_0x1cbe30['operationType']||!_0x1cbe30[_0x592eae(0xac)])throw CliErrors[_0x592eae(0xec)](_0x592eae(0xbe)+_0x1cbe30[_0x592eae(0xb8)]);_0x57cdef&&(_0x491bd5[_0x592eae(0xc0)]=_0x57cdef[_0x592eae(0xa4)]['id'],_0x491bd5[_0x592eae(0x9b)]=_0x1cbe30[_0x592eae(0x9b)]),_0x491bd5[_0x592eae(0xac)]=_0x1cbe30['functionNode'];}const _0x1b9e68=await saveBffScript(_0x491bd5),_0x3f3244=_0x1b9e68['id'],_0x5c7629=_0x1b9e68[_0x592eae(0xe1)]??await getBffScriptInfo(_0x3f3244),_0x1811ef={'hash':_0x41c2a4,'remoteId':_0x3f3244,'version':_0x5c7629[_0x592eae(0xf6)]};if(_0x1cbe30[_0x592eae(0xd1)]===_0x592eae(0xf1)){const _0x505d04=_0x4e1fb9[_0x592eae(0xf3)][_0x592eae(0xe2)](_0x1cbe30[_0x592eae(0xb8)]);if(!_0x505d04){_0x455caf[_0x592eae(0xbd)][_0x1cbe30['lockKey']]={..._0x53d615,..._0x1811ef};return;}_0x1811ef[_0x592eae(0xa7)]=_0x505d04['alias']??_0x53d615?.['alias'],_0x1811ef[_0x592eae(0x98)]=_0x505d04[_0x592eae(0x98)],_0x1811ef['operationType']=_0x1cbe30['operationType'],_0x1811ef[_0x592eae(0xac)]=_0x1cbe30[_0x592eae(0xac)];}_0x455caf[_0x592eae(0xbd)][_0x1cbe30['lockKey']]=_0x1811ef;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x5180d7,_0x59da8b,_0x269ca5){const _0xc71682=a44_0x2133b6;if(_0x269ca5['length']===0x0)return;for(let _0x56a252=0x0;_0x56a252<LOCK_SETTLE_RETRY_COUNT;_0x56a252+=0x1){const _0x51e19f=await readBffLockFile(_0x5180d7),_0x1d3b12=_0x51e19f?.[_0xc71682(0xb9)]?.[_0x59da8b]?.[_0xc71682(0xbd)]??{},_0x5bf713=_0x269ca5[_0xc71682(0xc6)](_0x1476e9=>!!_0x1d3b12[_0x1476e9]?.[_0xc71682(0xff)]);if(_0x5bf713)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0xc71682(0x103)+_0x269ca5['join'](',\x20')+'.');}
@@ -1 +1 @@
1
- const a45_0x3f4539=a45_0x2ec1;(function(_0x126065,_0x187bf5){const _0x5ec55a=a45_0x2ec1,_0x3a3a85=_0x126065();while(!![]){try{const _0x116ca4=-parseInt(_0x5ec55a(0x89))/0x1+-parseInt(_0x5ec55a(0x79))/0x2+parseInt(_0x5ec55a(0x69))/0x3+parseInt(_0x5ec55a(0x75))/0x4+parseInt(_0x5ec55a(0x77))/0x5+parseInt(_0x5ec55a(0x87))/0x6+-parseInt(_0x5ec55a(0x76))/0x7;if(_0x116ca4===_0x187bf5)break;else _0x3a3a85['push'](_0x3a3a85['shift']());}catch(_0x1f48f0){_0x3a3a85['push'](_0x3a3a85['shift']());}}}(a45_0x31fe,0x9cd51));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a45_0x31fe(){const _0x89a036=['apiDir','5529606vOIbQt','bool','717454euqLwu','defaultApp','push','alias','622425vAdcjm','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','\x20remote-only','map','\x20modified,\x20','functions','scriptsRoot','all','has','length','lockKey','\x20added,\x20','2876108Cgdruy','503251HxBlhm','1560995IeEfMC','remote','1457140VHXwAZ','profileName','datasetCode','\x20unchanged','appCode','mergedCli','hash','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','bff','boolean','filePath','status','read'];a45_0x31fe=function(){return _0x89a036;};return a45_0x31fe();}function a45_0x2ec1(_0x1775d0,_0xda9b38){_0x1775d0=_0x1775d0-0x67;const _0x31fea7=a45_0x31fe();let _0x2ec107=_0x31fea7[_0x1775d0];return _0x2ec107;}import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a45_0x3f4539(0x81),'command':a45_0x3f4539(0x84),'description':a45_0x3f4539(0x80),'risk':a45_0x3f4539(0x85),'flags':[{'name':'remote','type':a45_0x3f4539(0x82),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x536076){const _0x463d93=a45_0x3f4539,_0x2288f1=loadBffProjectConfig(_0x536076[_0x463d93(0x7d)]),_0xd2d026=await readBffLockFile(_0x2288f1['lockFilePath']),{appLock:_0x5209ff}=ensureLockScope(_0xd2d026??createEmptyBffLock(),_0x536076[_0x463d93(0x7d)],_0x2288f1[_0x463d93(0x6f)],'status'),_0x341a4f=await scanLocalBffFunctions(_0x2288f1),_0x57bdef=[],_0x1f7157=[],_0x4b1cd1=[];for(const _0x404a84 of _0x341a4f){const _0x4f5773=await computeFileHash(_0x404a84['filePath']),_0x515b6a=_0x5209ff[_0x463d93(0x6e)][_0x404a84[_0x463d93(0x73)]];if(!_0x515b6a)_0x57bdef[_0x463d93(0x67)](_0x404a84[_0x463d93(0x73)]);else _0x515b6a[_0x463d93(0x7f)]!==_0x4f5773?_0x1f7157[_0x463d93(0x67)](_0x404a84['lockKey']):_0x4b1cd1[_0x463d93(0x67)](_0x404a84['lockKey']);}const _0xc046d4=[];if(_0x536076[_0x463d93(0x88)](_0x463d93(0x78))){const _0x5bc006=resolveApiModelSource(_0x536076['apiDir'],_0x536076['appCode'],_0x536076['selectedAppName']||_0x536076[_0x463d93(0x7e)]?.['currentApp']||_0x536076['mergedCli']?.[_0x463d93(0x8a)]),_0x1a16e1=loadAliasMap(_0x536076[_0x463d93(0x86)],undefined,_0x5bc006[_0x463d93(0x83)],_0x5bc006[_0x463d93(0x7a)]),_0x1c112f=new Map(_0x1a16e1['map'](_0xfacbda=>[_0xfacbda[_0x463d93(0x7b)],_0xfacbda[_0x463d93(0x68)]])),[_0x27708d,_0x2e280f]=await Promise[_0x463d93(0x70)]([listBffScripts(_0x536076[_0x463d93(0x7d)]),getBffScriptStatistics(_0x536076[_0x463d93(0x7d)])]),_0xd024c4=createHookLocationMap(_0x2e280f),_0x389803=new Set(_0x341a4f[_0x463d93(0x6c)](_0x2983c1=>_0x2983c1[_0x463d93(0x73)]));for(const _0x23e5a2 of _0x27708d){const _0x1b022a=resolveRemoteScriptTarget(_0x2288f1,_0x23e5a2,_0xd024c4,_0x5209ff['functions'],_0x1c112f);_0x1b022a&&!_0x389803[_0x463d93(0x71)](_0x1b022a['lockKey'])&&_0xc046d4[_0x463d93(0x67)](_0x1b022a[_0x463d93(0x73)]);}}const _0x120f8f=_0x57bdef[_0x463d93(0x72)]===0x0&&_0x1f7157[_0x463d93(0x72)]===0x0&&_0xc046d4[_0x463d93(0x72)]===0x0;return{'ok':!![],'data':{'added':_0x57bdef,'modified':_0x1f7157,'unchanged':_0x4b1cd1,'remoteOnly':_0xc046d4},'message':_0x120f8f?_0x463d93(0x6a):_0x57bdef[_0x463d93(0x72)]+_0x463d93(0x74)+_0x1f7157['length']+_0x463d93(0x6d)+_0x4b1cd1[_0x463d93(0x72)]+_0x463d93(0x7c)+(_0xc046d4[_0x463d93(0x72)]>0x0?',\x20'+_0xc046d4['length']+_0x463d93(0x6b):'')};}};
1
+ const a45_0x2fc37e=a45_0x368b;(function(_0x423297,_0x20ddbf){const _0x281518=a45_0x368b,_0x166222=_0x423297();while(!![]){try{const _0x150e4f=-parseInt(_0x281518(0xaa))/0x1+-parseInt(_0x281518(0x97))/0x2*(-parseInt(_0x281518(0x9f))/0x3)+parseInt(_0x281518(0x9e))/0x4*(-parseInt(_0x281518(0xa9))/0x5)+parseInt(_0x281518(0xa3))/0x6*(parseInt(_0x281518(0xaf))/0x7)+parseInt(_0x281518(0x98))/0x8*(parseInt(_0x281518(0xab))/0x9)+parseInt(_0x281518(0x88))/0xa*(-parseInt(_0x281518(0x92))/0xb)+parseInt(_0x281518(0x96))/0xc*(-parseInt(_0x281518(0x95))/0xd);if(_0x150e4f===_0x20ddbf)break;else _0x166222['push'](_0x166222['shift']());}catch(_0x49dbcb){_0x166222['push'](_0x166222['shift']());}}}(a45_0x3293,0xf4236));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';function a45_0x3293(){const _0x211835=['20166924irqkLo','72GmipXX','2656XBBvid','\x20unchanged','has','apiDir','remote','selectedAppName','28004WVgWsd','132036NPupmH','appCode','currentApp','filePath','3198GoqAPD','datasetCode','hash','mergedCli','push','\x20added,\x20','855CCNHhV','419740uFrDtV','30978AbpIZq','boolean','map','functions','25963CefEKl','bff','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','350qTvJyZ','alias','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','lockFilePath','scriptsRoot','lockKey','bool','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','length','status','127787bLneKu','\x20remote-only','read','13FgSBwB'];a45_0x3293=function(){return _0x211835;};return a45_0x3293();}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_0x368b(_0x470217,_0x22f05d){_0x470217=_0x470217-0x86;const _0x329387=a45_0x3293();let _0x368b56=_0x329387[_0x470217];return _0x368b56;}export const bffStatus={'service':a45_0x2fc37e(0x86),'command':'status','description':a45_0x2fc37e(0x8a),'risk':a45_0x2fc37e(0x94),'flags':[{'name':a45_0x2fc37e(0x9c),'type':a45_0x2fc37e(0xac),'description':a45_0x2fc37e(0x87)}],async 'execute'(_0x4ff00c){const _0x5a948b=a45_0x2fc37e,_0x2c2968=loadBffProjectConfig(_0x4ff00c[_0x5a948b(0xa0)]),_0x35d7d1=await readBffLockFile(_0x2c2968[_0x5a948b(0x8b)]),{appLock:_0x1e6832}=ensureLockScope(_0x35d7d1??createEmptyBffLock(),_0x4ff00c[_0x5a948b(0xa0)],_0x2c2968[_0x5a948b(0x8c)],_0x5a948b(0x91)),_0x4a4b05=await scanLocalBffFunctions(_0x2c2968),_0x5b5369=[],_0x3c0182=[],_0x310415=[];for(const _0x12f808 of _0x4a4b05){const _0x586886=await computeFileHash(_0x12f808['filePath']),_0x48befa=_0x1e6832[_0x5a948b(0xae)][_0x12f808[_0x5a948b(0x8d)]];if(!_0x48befa)_0x5b5369[_0x5a948b(0xa7)](_0x12f808['lockKey']);else _0x48befa[_0x5a948b(0xa5)]!==_0x586886?_0x3c0182[_0x5a948b(0xa7)](_0x12f808[_0x5a948b(0x8d)]):_0x310415[_0x5a948b(0xa7)](_0x12f808[_0x5a948b(0x8d)]);}const _0xdccdb8=[];if(_0x4ff00c[_0x5a948b(0x8e)](_0x5a948b(0x9c))){const _0x5579e1=resolveApiModelSource(_0x4ff00c['apiDir'],_0x4ff00c['appCode'],_0x4ff00c[_0x5a948b(0x9d)]||_0x4ff00c['mergedCli']?.[_0x5a948b(0xa1)]||_0x4ff00c[_0x5a948b(0xa6)]?.['defaultApp']),_0x398087=loadAliasMap(_0x4ff00c[_0x5a948b(0x9b)],undefined,_0x5579e1[_0x5a948b(0xa2)],_0x5579e1['profileName']),_0x180f18=new Map(_0x398087[_0x5a948b(0xad)](_0x3a73e0=>[_0x3a73e0[_0x5a948b(0xa4)],_0x3a73e0[_0x5a948b(0x89)]])),[_0x1e0e5d,_0x7d5a6c]=await Promise['all']([listBffScripts(_0x4ff00c[_0x5a948b(0xa0)]),getBffScriptStatistics(_0x4ff00c[_0x5a948b(0xa0)])]),_0x3166c9=createHookLocationMap(_0x7d5a6c),_0x3f80b7=new Set(_0x4a4b05[_0x5a948b(0xad)](_0x3e723a=>_0x3e723a['lockKey']));for(const _0x139ff6 of _0x1e0e5d){const _0x10cf6f=resolveRemoteScriptTarget(_0x2c2968,_0x139ff6,_0x3166c9,_0x1e6832[_0x5a948b(0xae)],_0x180f18);_0x10cf6f&&!_0x3f80b7[_0x5a948b(0x9a)](_0x10cf6f[_0x5a948b(0x8d)])&&_0xdccdb8['push'](_0x10cf6f[_0x5a948b(0x8d)]);}}const _0x3a8526=_0x5b5369[_0x5a948b(0x90)]===0x0&&_0x3c0182[_0x5a948b(0x90)]===0x0&&_0xdccdb8[_0x5a948b(0x90)]===0x0;return{'ok':!![],'data':{'added':_0x5b5369,'modified':_0x3c0182,'unchanged':_0x310415,'remoteOnly':_0xdccdb8},'message':_0x3a8526?_0x5a948b(0x8f):_0x5b5369['length']+_0x5a948b(0xa8)+_0x3c0182[_0x5a948b(0x90)]+'\x20modified,\x20'+_0x310415['length']+_0x5a948b(0x99)+(_0xdccdb8[_0x5a948b(0x90)]>0x0?',\x20'+_0xdccdb8[_0x5a948b(0x90)]+_0x5a948b(0x93):'')};}};
@@ -1 +1 @@
1
- const a46_0x30a292=a46_0x3784;function a46_0x270b(){const _0x23c19c=['\x20via\x20skills@latest','changed','info','installedPath','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','skillVersion','7DUztLi','33636Qsmglj','207cAdErW','CLI\x20Built-in\x20Skill\x20','1352604fKUNzm','error','\x20at\x20','12478518LFGViz','1fIKZsQ','read','cli-skill-install','inherit','4959136oFygKp',']:\x20','unknown','log','nonInteractive','\x20is\x20already\x20current','519555XGHZIS','1802958DfUQqL','Built-in\x20Skill\x20install\x20failed\x20[','13332640ZbvoOG','setLogPath'];a46_0x270b=function(){return _0x23c19c;};return a46_0x270b();}(function(_0x335e69,_0x1fff67){const _0x150713=a46_0x3784,_0x5ab4ed=_0x335e69();while(!![]){try{const _0x2fd5de=parseInt(_0x150713(0x106))/0x1*(-parseInt(_0x150713(0x102))/0x2)+parseInt(_0x150713(0x100))/0x3*(parseInt(_0x150713(0xff))/0x4)+parseInt(_0x150713(0x110))/0x5+parseInt(_0x150713(0x111))/0x6*(parseInt(_0x150713(0xfe))/0x7)+parseInt(_0x150713(0x10a))/0x8+-parseInt(_0x150713(0x105))/0x9+parseInt(_0x150713(0x113))/0xa;if(_0x2fd5de===_0x1fff67)break;else _0x5ab4ed['push'](_0x5ab4ed['shift']());}catch(_0x275387){_0x5ab4ed['push'](_0x5ab4ed['shift']());}}}(a46_0x270b,0xd59e1));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x3784(_0x7fc208,_0x1f16ee){_0x7fc208=_0x7fc208-0xfe;const _0x270b71=a46_0x270b();let _0x37841d=_0x270b71[_0x7fc208];return _0x37841d;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a46_0x30a292(0x11a),'risk':a46_0x30a292(0x107),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x126e26){const _0x400d27=a46_0x30a292;logger[_0x400d27(0x114)](process['cwd']()),logger[_0x400d27(0x117)](_0x400d27(0x108),_0x400d27(0x119));const _0x49ebc5=installBuiltinSkill({'stdio':_0x126e26[_0x400d27(0x10e)]?'pipe':_0x400d27(0x109)});if(!_0x49ebc5['ok'])throw CliErrors['apiError'](_0x400d27(0x112)+_0x49ebc5['code']+_0x400d27(0x10b)+(_0x49ebc5[_0x400d27(0x103)]||_0x400d27(0x10c)),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x49ebc5['repairCommand']);return console[_0x400d27(0x10d)](_0x49ebc5[_0x400d27(0x116)]?_0x400d27(0x101)+_0x49ebc5[_0x400d27(0x11b)]+'\x20installed'+(_0x49ebc5['installedPath']?'\x20at\x20'+_0x49ebc5[_0x400d27(0x118)]:_0x400d27(0x115)):_0x400d27(0x101)+_0x49ebc5[_0x400d27(0x11b)]+_0x400d27(0x10f)+(_0x49ebc5[_0x400d27(0x118)]?_0x400d27(0x104)+_0x49ebc5[_0x400d27(0x118)]:'')),{'ok':!![]};}}];
1
+ const a46_0x1a7e43=a46_0x3be4;(function(_0x351ee9,_0x43d337){const _0x505964=a46_0x3be4,_0x4591c4=_0x351ee9();while(!![]){try{const _0x3fec97=parseInt(_0x505964(0x14e))/0x1+-parseInt(_0x505964(0x15c))/0x2*(parseInt(_0x505964(0x144))/0x3)+parseInt(_0x505964(0x142))/0x4+-parseInt(_0x505964(0x155))/0x5*(-parseInt(_0x505964(0x15d))/0x6)+parseInt(_0x505964(0x13f))/0x7*(-parseInt(_0x505964(0x146))/0x8)+-parseInt(_0x505964(0x148))/0x9*(-parseInt(_0x505964(0x14b))/0xa)+parseInt(_0x505964(0x143))/0xb;if(_0x3fec97===_0x43d337)break;else _0x4591c4['push'](_0x4591c4['shift']());}catch(_0x3240ba){_0x4591c4['push'](_0x4591c4['shift']());}}}(a46_0x199f,0xa1e5d));function a46_0x3be4(_0x4e08f0,_0x4004d3){_0x4e08f0=_0x4e08f0-0x13e;const _0x199f3b=a46_0x199f();let _0x3be492=_0x199f3b[_0x4e08f0];return _0x3be492;}import{CliErrors}from'../../errors.js';function a46_0x199f(){const _0x1d3989=['1072842wdGCDE','cli-skill-install','skillVersion','7cArtbD','repairCommand','inherit','2267188qNEXKz','1537470NoQqzE','33PuMAVJ','\x20at\x20','4748736fhbJAr','cli-skill','9juGTEZ','log','\x20is\x20already\x20current','817480xrOGtm','apiError','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','1314836oAEDuM','changed','read','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','Built-in\x20Skill\x20install\x20failed\x20[','pipe','\x20installed','5qbWndx','cwd','install','unknown','code','CLI\x20Built-in\x20Skill\x20','installedPath','186406jFvRhR'];a46_0x199f=function(){return _0x1d3989;};return a46_0x199f();}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a46_0x1a7e43(0x147),'command':a46_0x1a7e43(0x157),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a46_0x1a7e43(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xdbc1d9){const _0x173135=a46_0x1a7e43;logger['setLogPath'](process[_0x173135(0x156)]()),logger['info'](_0x173135(0x15e),_0x173135(0x14d));const _0x583aa1=installBuiltinSkill({'stdio':_0xdbc1d9['nonInteractive']?_0x173135(0x153):_0x173135(0x141)});if(!_0x583aa1['ok'])throw CliErrors[_0x173135(0x14c)](_0x173135(0x152)+_0x583aa1[_0x173135(0x159)]+']:\x20'+(_0x583aa1['error']||_0x173135(0x158)),_0x173135(0x151)+_0x583aa1[_0x173135(0x140)]);return console[_0x173135(0x149)](_0x583aa1[_0x173135(0x14f)]?_0x173135(0x15a)+_0x583aa1[_0x173135(0x13e)]+_0x173135(0x154)+(_0x583aa1['installedPath']?_0x173135(0x145)+_0x583aa1[_0x173135(0x15b)]:'\x20via\x20skills@latest'):_0x173135(0x15a)+_0x583aa1[_0x173135(0x13e)]+_0x173135(0x14a)+(_0x583aa1[_0x173135(0x15b)]?_0x173135(0x145)+_0x583aa1[_0x173135(0x15b)]:'')),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a47_0x205d1a=a47_0x31af;(function(_0x96bdce,_0x147416){const _0x475f42=a47_0x31af,_0x5487be=_0x96bdce();while(!![]){try{const _0xa8e311=-parseInt(_0x475f42(0xeb))/0x1+parseInt(_0x475f42(0xda))/0x2*(parseInt(_0x475f42(0xcd))/0x3)+parseInt(_0x475f42(0xea))/0x4*(parseInt(_0x475f42(0x100))/0x5)+parseInt(_0x475f42(0xc0))/0x6+parseInt(_0x475f42(0xf6))/0x7*(parseInt(_0x475f42(0xef))/0x8)+-parseInt(_0x475f42(0x103))/0x9+parseInt(_0x475f42(0x106))/0xa*(-parseInt(_0x475f42(0xc8))/0xb);if(_0xa8e311===_0x147416)break;else _0x5487be['push'](_0x5487be['shift']());}catch(_0x22af76){_0x5487be['push'](_0x5487be['shift']());}}}(a47_0x3f40,0x34ba2));import a47_0xdb17e0 from'chalk';import a47_0x1200e6 from'ora';import a47_0x7a46f from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x3603bc=a47_0x31af;return GIT_COMMIT!==_0x3603bc(0xcb)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3603bc(0xf1)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x41e46a=a47_0x31af,_0x4a683d=process[_0x41e46a(0xd2)][_0x41e46a(0x10d)]();if(_0x4a683d['includes'](_0x41e46a(0xcf)))return'bun';return _0x41e46a(0xc1);}const updateFlags=[{'name':'beta','type':a47_0x205d1a(0xc5),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a47_0x205d1a(0x114),'type':'string','description':a47_0x205d1a(0xe0)}];function getRequestedVersion(_0x32df1d){const _0x4122de=a47_0x205d1a;return _0x32df1d[_0x4122de(0x10c)]('version')[_0x4122de(0xd9)]();}async function validateUpdateFlags(_0x4420f7){const _0x132495=a47_0x205d1a,_0x1d443f=_0x4420f7[_0x132495(0x101)](_0x132495(0xce)),_0x27c6cf=getRequestedVersion(_0x4420f7);if(_0x1d443f&&_0x27c6cf)throw CliErrors[_0x132495(0xed)](_0x132495(0xd5),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x27c6cf&&!a47_0x7a46f['valid'](_0x27c6cf))throw CliErrors[_0x132495(0xed)](_0x132495(0x111)+_0x27c6cf,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x30232f=a47_0x205d1a;try{const _0x2aa8b8=await fetch(_0x30232f(0xdb)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x30232f(0xf9),{'signal':AbortSignal[_0x30232f(0xf2)](0x2710)});if(!_0x2aa8b8['ok'])return null;const _0x44af25=await _0x2aa8b8[_0x30232f(0x107)]();if(!_0x44af25||typeof _0x44af25!==_0x30232f(0xd7))return null;return Object[_0x30232f(0x117)](Object[_0x30232f(0xd1)](_0x44af25)[_0x30232f(0xf7)](([,_0x51f596])=>typeof _0x51f596===_0x30232f(0xf3)&&_0x51f596[_0x30232f(0xd9)]()[_0x30232f(0xe1)]>0x0)[_0x30232f(0xd3)](([_0xb07365,_0x92abca])=>[_0xb07365,String(_0x92abca)[_0x30232f(0xd9)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x212141){const _0x54d6fd=await fetchNpmDistTags();return _0x54d6fd?.[_0x212141]??null;}async function fetchLatestVersion(){const _0x8931d0=a47_0x205d1a;return fetchNpmDistTagVersion(_0x8931d0(0xe4));}async function resolveTargetVersion(_0x94ed47){const _0x57da60=a47_0x205d1a,_0x423ba0=getRequestedVersion(_0x94ed47);if(_0x423ba0)return{'version':_0x423ba0,'source':'version'};if(_0x94ed47[_0x57da60(0x101)](_0x57da60(0xce))){const _0x543625=await fetchNpmDistTagVersion(_0x57da60(0xce));if(!_0x543625)return null;return{'version':_0x543625,'source':_0x57da60(0xce)};}const _0x59620f=await fetchLatestVersion();if(!_0x59620f)return null;return{'version':_0x59620f,'source':_0x57da60(0xe4)};}function shouldInstallTarget(_0x454cf5,_0x14d3c4){const _0x465516=a47_0x205d1a;if(_0x14d3c4[_0x465516(0x116)]===_0x465516(0x114)||_0x14d3c4[_0x465516(0x116)]===_0x465516(0xce))return!a47_0x7a46f['eq'](_0x454cf5,_0x14d3c4[_0x465516(0x114)]);return a47_0x7a46f['lt'](_0x454cf5,_0x14d3c4[_0x465516(0x114)]);}function getInstallPlanLabel(_0x3e4ace,_0x2efee6){const _0x1ba70a=a47_0x205d1a;switch(_0x2efee6[_0x1ba70a(0x116)]){case _0x1ba70a(0xce):return _0x1ba70a(0xec)+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6[_0x1ba70a(0x114)]);case _0x1ba70a(0x114):return _0x1ba70a(0xc2)+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6[_0x1ba70a(0x114)]);case _0x1ba70a(0xe4):default:return'Update\x20available:\x20'+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6['version']);}}function repairCurrentBuiltinSkill(){const _0x32c654=a47_0x205d1a;console[_0x32c654(0xfc)](a47_0xdb17e0[_0x32c654(0x119)](_0x32c654(0xe6)));const _0x411fbc=installBuiltinSkill();if(_0x411fbc['ok']){console[_0x32c654(0xfc)](a47_0xdb17e0['gray'](_0x32c654(0xf8)+_0x411fbc[_0x32c654(0xc3)]+_0x32c654(0xf5)));return;}throw CliErrors[_0x32c654(0xde)](_0x32c654(0xc7)+_0x411fbc[_0x32c654(0xd8)]+_0x32c654(0xcc)+(_0x411fbc['error']||_0x32c654(0xcb)),'Run:\x20'+_0x411fbc[_0x32c654(0xc6)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function a47_0x3f40(){const _0x13a6d9=['4332oyoGsi','beta','bun','Updated\x20to\x20v','entries','execPath','map','message','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','green','object','code','trim','158svRTlJ','https://registry.npmjs.org/-/package/','Updating\x20via\x20',',\x20then\x20verify\x20with:\x20','apiError','install','Install\x20a\x20specific\x20CLI\x20version','length','Already\x20on\x20requested\x20version\x20(v','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','latest','yellow','Checking\x20CLI\x20Built-in\x20Skill...','...','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','9820VRZXwu','27020TrXFKs','Beta\x20version:\x20','validation','succeed','8qHUnkx','run','slice','timeout','string','fail','\x20is\x20up\x20to\x20date.','2167557VcfXJk','filter','\x20\x20CLI\x20Built-in\x20Skill\x20','/dist-tags','Version\x20comparison\x20failed','@latest','log','Current\x20version:\x20','update','Run:\x20','125mySwkK','bool','Current\x20version\x20v','2696328lypWdN','state','pipe','39470WUmYou','json','\x20is\x20newer\x20than\x20npm\x20latest\x20v','expected\x20',',\x20found\x20','\x20→\x20','str','toLowerCase','valid','start','Update\x20failed','Invalid\x20version:\x20','read',',\x20state\x20','version','Checking\x20for\x20updates...','source','fromEntries','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','gray','510654ckDAum','npm','Requested\x20version:\x20','skillVersion','info','boolean','repairCommand','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','77JDlYtD','red','\x20install\x20-g\x20','unknown',']:\x20'];a47_0x3f40=function(){return _0x13a6d9;};return a47_0x3f40();}function verifyUpdatedBuiltinSkill(_0x7572d5){const _0x59530e=a47_0x205d1a,_0x344f37=inspectInstalledBuiltinSkillVersion(_0x7572d5);if(_0x344f37[_0x59530e(0x104)]==='current'){console['log'](a47_0xdb17e0[_0x59530e(0x119)](_0x59530e(0xf8)+_0x7572d5+'\x20is\x20up\x20to\x20date.'));return;}const _0x218063=_0x344f37[_0x59530e(0xc3)]?_0x59530e(0x109)+_0x7572d5+_0x59530e(0x10a)+_0x344f37[_0x59530e(0xc3)]:'expected\x20'+_0x7572d5+_0x59530e(0x113)+_0x344f37[_0x59530e(0x104)];throw CliErrors[_0x59530e(0xde)]('CLI\x20updated\x20to\x20v'+_0x7572d5+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x218063,_0x59530e(0xff)+_0x344f37[_0x59530e(0xc6)]+_0x59530e(0xdd)+CLI_BIN_NAME+'\x20doctor');}function a47_0x31af(_0x1d7bd4,_0x32a5df){_0x1d7bd4=_0x1d7bd4-0xc0;const _0x3f40fb=a47_0x3f40();let _0x31af3a=_0x3f40fb[_0x1d7bd4];return _0x31af3a;}async function execute(_0x11d403){const _0x410bb5=a47_0x205d1a;await validateUpdateFlags(_0x11d403);const _0x932772=getCurrentVersion();console[_0x410bb5(0xfc)](_0x410bb5(0xfd)+_0x932772);const _0x3fb20f=a47_0x1200e6(_0x410bb5(0x115))[_0x410bb5(0x10f)](),_0x2f2ded=await resolveTargetVersion(_0x11d403);if(!_0x2f2ded){const _0x147cb3=_0x11d403[_0x410bb5(0x101)](_0x410bb5(0xce))?_0x410bb5(0xe3):_0x410bb5(0xe9);return _0x3fb20f['fail'](_0x147cb3),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)](_0x410bb5(0x118)+NPM_PACKAGE_NAME+_0x410bb5(0xfb))),{'ok':![],'message':_0x147cb3};}const _0x2a6098=a47_0x7a46f['valid'](VERSION),_0x4da338=a47_0x7a46f[_0x410bb5(0x10e)](_0x2f2ded[_0x410bb5(0x114)]);if(!_0x2a6098||!_0x4da338)return _0x3fb20f[_0x410bb5(0xf4)](_0x410bb5(0xfa)),{'ok':![],'message':_0x410bb5(0xfa)};if(!shouldInstallTarget(_0x2a6098,_0x2f2ded)){const _0x2b2b0b=_0x2f2ded[_0x410bb5(0x116)]===_0x410bb5(0x114)?_0x410bb5(0xe2)+_0x2f2ded[_0x410bb5(0x114)]+')':a47_0x7a46f['gt'](_0x2a6098,_0x4da338)?_0x410bb5(0x102)+_0x932772+_0x410bb5(0x108)+_0x2f2ded[_0x410bb5(0x114)]:'Already\x20up\x20to\x20date\x20(v'+_0x2f2ded[_0x410bb5(0x114)]+')';return _0x3fb20f[_0x410bb5(0xee)](_0x2b2b0b),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x3fb20f[_0x410bb5(0xc4)](getInstallPlanLabel(_0x932772,_0x2f2ded));const _0x2c54a0=detectPackageManager(),_0x40d12d=_0x2c54a0==='npm'?resolveNpmBin(_0x410bb5(0xc1)):_0x2c54a0,_0x352ca9=a47_0x1200e6(_0x410bb5(0xdc)+_0x2c54a0+_0x410bb5(0xe7))[_0x410bb5(0x10f)]();try{await execa(_0x40d12d,[_0x410bb5(0xdf),'-g',NPM_PACKAGE_NAME+'@'+_0x2f2ded[_0x410bb5(0x114)]],{'stdio':_0x410bb5(0x105)}),_0x352ca9[_0x410bb5(0xee)](_0x410bb5(0xd0)+_0x2f2ded['version']),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x259486){return _0x352ca9[_0x410bb5(0xf4)](_0x410bb5(0x110)),console['error'](a47_0xdb17e0[_0x410bb5(0xc9)]('\x20\x20'+_0x259486[_0x410bb5(0xd4)])),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)]('\x20\x20Try\x20manually:\x20'+_0x2c54a0+_0x410bb5(0xca)+NPM_PACKAGE_NAME+'@'+_0x2f2ded['version'])),{'ok':![],'message':_0x259486[_0x410bb5(0xd4)]};}return verifyUpdatedBuiltinSkill(_0x2f2ded['version']),{'ok':!![]};}export const updateDefinition={'service':a47_0x205d1a(0xfe),'command':a47_0x205d1a(0xf0),'description':a47_0x205d1a(0xe8),'risk':a47_0x205d1a(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a47_0x5ccd04=a47_0x461a;(function(_0x440011,_0x402c0){const _0x1fbe9d=a47_0x461a,_0x530023=_0x440011();while(!![]){try{const _0x18ce4c=-parseInt(_0x1fbe9d(0x83))/0x1*(parseInt(_0x1fbe9d(0x9a))/0x2)+-parseInt(_0x1fbe9d(0xb8))/0x3*(-parseInt(_0x1fbe9d(0xb7))/0x4)+parseInt(_0x1fbe9d(0xb0))/0x5*(-parseInt(_0x1fbe9d(0xa5))/0x6)+-parseInt(_0x1fbe9d(0xac))/0x7+parseInt(_0x1fbe9d(0x8d))/0x8+parseInt(_0x1fbe9d(0x73))/0x9+parseInt(_0x1fbe9d(0x6d))/0xa*(parseInt(_0x1fbe9d(0xc7))/0xb);if(_0x18ce4c===_0x402c0)break;else _0x530023['push'](_0x530023['shift']());}catch(_0x2ddaad){_0x530023['push'](_0x530023['shift']());}}}(a47_0x4cb2,0x6d5c1));function a47_0x461a(_0x48ae85,_0x588d29){_0x48ae85=_0x48ae85-0x6c;const _0x4cb21b=a47_0x4cb2();let _0x461ae1=_0x4cb21b[_0x48ae85];return _0x461ae1;}function a47_0x4cb2(){const _0x1f967c=['Already\x20on\x20requested\x20version\x20(v','entries','current','string','repairCommand','fail','\x20\x20Try\x20manually:\x20','version','58179jQLVri','fromEntries','Current\x20version\x20v','read','filter','1890fUofkv','\x20→\x20','...','Invalid\x20version:\x20','/dist-tags','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','4600701YqWnQD','start','error','includes','bun','validation','\x20\x20CLI\x20Built-in\x20Skill\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','log','map','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','@latest','https://registry.npmjs.org/-/package/','source','Checking\x20for\x20updates...','green','13wDwvBt','Checking\x20CLI\x20Built-in\x20Skill...','\x20doctor','beta','CLI\x20updated\x20to\x20v','latest',',\x20then\x20verify\x20with:\x20','Updating\x20via\x20','bool','skillVersion','3220024VWgoRB','state','Already\x20up\x20to\x20date\x20(v','info','succeed','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','unknown','yellow','\x20is\x20newer\x20than\x20npm\x20latest\x20v','toLowerCase','str','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','slice','24602OXoidj','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.',',\x20state\x20','Current\x20version:\x20','valid','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','trim','apiError','npm','Version\x20comparison\x20failed','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','6jjPupB','Install\x20a\x20specific\x20CLI\x20version','gray','Updated\x20to\x20v','Beta\x20version:\x20','Run:\x20','length','4585182ZTLPCW','\x20install\x20-g\x20','message','expected\x20','3418710MjEXMP','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','json','red','timeout','code','execPath','20XgrjKW','19983IbZUTM','\x20is\x20up\x20to\x20date.',']:\x20','Update\x20available:\x20','install','Requested\x20version:\x20',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'];a47_0x4cb2=function(){return _0x1f967c;};return a47_0x4cb2();}import a47_0xa7421 from'chalk';import a47_0x2c3b26 from'ora';import a47_0x72323 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0xdc5c66=a47_0x461a;return GIT_COMMIT!==_0xdc5c66(0x93)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xdc5c66(0x99)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x5cb33a=a47_0x461a,_0x3835c2=process[_0x5cb33a(0xb6)][_0x5cb33a(0x96)]();if(_0x3835c2[_0x5cb33a(0x76)](_0x5cb33a(0x77)))return _0x5cb33a(0x77);return'npm';}const updateFlags=[{'name':a47_0x5ccd04(0x86),'type':'boolean','description':a47_0x5ccd04(0x9f),'default':![]},{'name':a47_0x5ccd04(0xc6),'type':a47_0x5ccd04(0xc2),'description':a47_0x5ccd04(0xa6)}];function getRequestedVersion(_0x4c611d){const _0x3485ad=a47_0x5ccd04;return _0x4c611d[_0x3485ad(0x97)](_0x3485ad(0xc6))[_0x3485ad(0xa0)]();}async function validateUpdateFlags(_0x50c075){const _0x20f75d=a47_0x5ccd04,_0x33177a=_0x50c075['bool'](_0x20f75d(0x86)),_0x3c5384=getRequestedVersion(_0x50c075);if(_0x33177a&&_0x3c5384)throw CliErrors['validation'](_0x20f75d(0xb1),_0x20f75d(0x9b));if(_0x3c5384&&!a47_0x72323[_0x20f75d(0x9e)](_0x3c5384))throw CliErrors[_0x20f75d(0x78)](_0x20f75d(0x70)+_0x3c5384,_0x20f75d(0x92));}async function fetchNpmDistTags(){const _0x488790=a47_0x5ccd04;try{const _0x3579c1=await fetch(_0x488790(0x7f)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x488790(0x71),{'signal':AbortSignal[_0x488790(0xb4)](0x2710)});if(!_0x3579c1['ok'])return null;const _0x18487a=await _0x3579c1[_0x488790(0xb2)]();if(!_0x18487a||typeof _0x18487a!=='object')return null;return Object[_0x488790(0xc8)](Object[_0x488790(0xc0)](_0x18487a)[_0x488790(0x6c)](([,_0x15fd79])=>typeof _0x15fd79===_0x488790(0xc2)&&_0x15fd79[_0x488790(0xa0)]()[_0x488790(0xab)]>0x0)[_0x488790(0x7c)](([_0x32146b,_0x49f24e])=>[_0x32146b,String(_0x49f24e)[_0x488790(0xa0)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4e86a3){const _0x132919=await fetchNpmDistTags();return _0x132919?.[_0x4e86a3]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x222e8a){const _0x16ffac=a47_0x5ccd04,_0xa73101=getRequestedVersion(_0x222e8a);if(_0xa73101)return{'version':_0xa73101,'source':_0x16ffac(0xc6)};if(_0x222e8a[_0x16ffac(0x8b)](_0x16ffac(0x86))){const _0x2343f4=await fetchNpmDistTagVersion(_0x16ffac(0x86));if(!_0x2343f4)return null;return{'version':_0x2343f4,'source':_0x16ffac(0x86)};}const _0x5412a2=await fetchLatestVersion();if(!_0x5412a2)return null;return{'version':_0x5412a2,'source':_0x16ffac(0x88)};}function shouldInstallTarget(_0x1ea640,_0x3310c6){const _0x34e58e=a47_0x5ccd04;if(_0x3310c6['source']===_0x34e58e(0xc6)||_0x3310c6[_0x34e58e(0x80)]==='beta')return!a47_0x72323['eq'](_0x1ea640,_0x3310c6[_0x34e58e(0xc6)]);return a47_0x72323['lt'](_0x1ea640,_0x3310c6[_0x34e58e(0xc6)]);}function getInstallPlanLabel(_0x35e838,_0x11aa37){const _0x556011=a47_0x5ccd04;switch(_0x11aa37[_0x556011(0x80)]){case _0x556011(0x86):return _0x556011(0xa9)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+_0x556011(0x6e)+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);case'version':return _0x556011(0xbd)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+'\x20→\x20'+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);case _0x556011(0x88):default:return _0x556011(0xbb)+a47_0xa7421[_0x556011(0x94)](_0x35e838)+_0x556011(0x6e)+a47_0xa7421[_0x556011(0x82)](_0x11aa37[_0x556011(0xc6)]);}}function repairCurrentBuiltinSkill(){const _0x27bce1=a47_0x5ccd04;console[_0x27bce1(0x7b)](a47_0xa7421[_0x27bce1(0xa7)](_0x27bce1(0x84)));const _0x2d44bf=installBuiltinSkill();if(_0x2d44bf['ok']){console['log'](a47_0xa7421[_0x27bce1(0xa7)](_0x27bce1(0x79)+_0x2d44bf[_0x27bce1(0x8c)]+_0x27bce1(0xb9)));return;}throw CliErrors['apiError']('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+_0x2d44bf[_0x27bce1(0xb5)]+_0x27bce1(0xba)+(_0x2d44bf[_0x27bce1(0x75)]||_0x27bce1(0x93)),_0x27bce1(0xaa)+_0x2d44bf[_0x27bce1(0xc3)]+_0x27bce1(0x89)+CLI_BIN_NAME+_0x27bce1(0x85));}function verifyUpdatedBuiltinSkill(_0x1ffe72){const _0x5c68c5=a47_0x5ccd04,_0x43569e=inspectInstalledBuiltinSkillVersion(_0x1ffe72);if(_0x43569e[_0x5c68c5(0x8e)]===_0x5c68c5(0xc1)){console[_0x5c68c5(0x7b)](a47_0xa7421[_0x5c68c5(0xa7)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x1ffe72+_0x5c68c5(0xb9)));return;}const _0x7176d5=_0x43569e[_0x5c68c5(0x8c)]?_0x5c68c5(0xaf)+_0x1ffe72+',\x20found\x20'+_0x43569e[_0x5c68c5(0x8c)]:'expected\x20'+_0x1ffe72+_0x5c68c5(0x9c)+_0x43569e[_0x5c68c5(0x8e)];throw CliErrors[_0x5c68c5(0xa1)](_0x5c68c5(0x87)+_0x1ffe72+_0x5c68c5(0xbe)+_0x7176d5,'Run:\x20'+_0x43569e['repairCommand']+_0x5c68c5(0x89)+CLI_BIN_NAME+_0x5c68c5(0x85));}async function execute(_0x3af106){const _0x5b42a9=a47_0x5ccd04;await validateUpdateFlags(_0x3af106);const _0x239a4f=getCurrentVersion();console[_0x5b42a9(0x7b)](_0x5b42a9(0x9d)+_0x239a4f);const _0x353afc=a47_0x2c3b26(_0x5b42a9(0x81))[_0x5b42a9(0x74)](),_0x450c76=await resolveTargetVersion(_0x3af106);if(!_0x450c76){const _0x4b1b17=_0x3af106['bool'](_0x5b42a9(0x86))?_0x5b42a9(0x98):_0x5b42a9(0x72);return _0x353afc[_0x5b42a9(0xc4)](_0x4b1b17),console['log'](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0x7a)+NPM_PACKAGE_NAME+_0x5b42a9(0x7e))),{'ok':![],'message':_0x4b1b17};}const _0x583b8f=a47_0x72323[_0x5b42a9(0x9e)](VERSION),_0x502a13=a47_0x72323[_0x5b42a9(0x9e)](_0x450c76['version']);if(!_0x583b8f||!_0x502a13)return _0x353afc[_0x5b42a9(0xc4)](_0x5b42a9(0xa3)),{'ok':![],'message':_0x5b42a9(0xa3)};if(!shouldInstallTarget(_0x583b8f,_0x450c76)){const _0x53124e=_0x450c76['source']==='version'?_0x5b42a9(0xbf)+_0x450c76['version']+')':a47_0x72323['gt'](_0x583b8f,_0x502a13)?_0x5b42a9(0xc9)+_0x239a4f+_0x5b42a9(0x95)+_0x450c76[_0x5b42a9(0xc6)]:_0x5b42a9(0x8f)+_0x450c76[_0x5b42a9(0xc6)]+')';return _0x353afc['succeed'](_0x53124e),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x353afc[_0x5b42a9(0x90)](getInstallPlanLabel(_0x239a4f,_0x450c76));const _0x3deff0=detectPackageManager(),_0xe2582b=_0x3deff0===_0x5b42a9(0xa2)?resolveNpmBin('npm'):_0x3deff0,_0x147344=a47_0x2c3b26(_0x5b42a9(0x8a)+_0x3deff0+_0x5b42a9(0x6f))[_0x5b42a9(0x74)]();try{await execa(_0xe2582b,[_0x5b42a9(0xbc),'-g',NPM_PACKAGE_NAME+'@'+_0x450c76['version']],{'stdio':'pipe'}),_0x147344[_0x5b42a9(0x91)](_0x5b42a9(0xa8)+_0x450c76['version']),console[_0x5b42a9(0x7b)](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0xa4)));}catch(_0x4d515a){return _0x147344[_0x5b42a9(0xc4)]('Update\x20failed'),console[_0x5b42a9(0x75)](a47_0xa7421[_0x5b42a9(0xb3)]('\x20\x20'+_0x4d515a[_0x5b42a9(0xae)])),console[_0x5b42a9(0x7b)](a47_0xa7421[_0x5b42a9(0xa7)](_0x5b42a9(0xc5)+_0x3deff0+_0x5b42a9(0xad)+NPM_PACKAGE_NAME+'@'+_0x450c76[_0x5b42a9(0xc6)])),{'ok':![],'message':_0x4d515a[_0x5b42a9(0xae)]};}return verifyUpdatedBuiltinSkill(_0x450c76['version']),{'ok':!![]};}export const updateDefinition={'service':'update','command':'run','description':a47_0x5ccd04(0x7d),'risk':a47_0x5ccd04(0xca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x4cea8b,_0x1f91cf){const _0x3562b0=a48_0x2be7,_0x29b44c=_0x4cea8b();while(!![]){try{const _0x1652aa=-parseInt(_0x3562b0(0xcc))/0x1+parseInt(_0x3562b0(0xce))/0x2+-parseInt(_0x3562b0(0xd0))/0x3+parseInt(_0x3562b0(0xcb))/0x4+parseInt(_0x3562b0(0xd2))/0x5*(-parseInt(_0x3562b0(0xd1))/0x6)+-parseInt(_0x3562b0(0xca))/0x7*(parseInt(_0x3562b0(0xcd))/0x8)+parseInt(_0x3562b0(0xcf))/0x9;if(_0x1652aa===_0x1f91cf)break;else _0x29b44c['push'](_0x29b44c['shift']());}catch(_0x5f2f35){_0x29b44c['push'](_0x29b44c['shift']());}}}(a48_0x1ec2,0x2de17));function a48_0x2be7(_0x5e8951,_0x21bab2){_0x5e8951=_0x5e8951-0xca;const _0x1ec29e=a48_0x1ec2();let _0x2be737=_0x1ec29e[_0x5e8951];return _0x2be737;}function a48_0x1ec2(){const _0x301aab=['1113RuNyEz','762676dzybTS','70621LWtuWP','3672vQTkTH','327632DmruQf','6137973tfbpye','1006281rwdMUD','876WZtudK','12655jzOlgg'];a48_0x1ec2=function(){return _0x301aab;};return a48_0x1ec2();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x2c7439,_0x335c44){const _0x2b6543=a48_0x26b6,_0x379719=_0x2c7439();while(!![]){try{const _0x221db0=parseInt(_0x2b6543(0x1fe))/0x1+parseInt(_0x2b6543(0x1fd))/0x2*(parseInt(_0x2b6543(0x1fc))/0x3)+parseInt(_0x2b6543(0x1f8))/0x4*(parseInt(_0x2b6543(0x1f7))/0x5)+parseInt(_0x2b6543(0x1f4))/0x6*(-parseInt(_0x2b6543(0x1f9))/0x7)+-parseInt(_0x2b6543(0x1fa))/0x8*(parseInt(_0x2b6543(0x1f5))/0x9)+-parseInt(_0x2b6543(0x1fb))/0xa*(parseInt(_0x2b6543(0x1f3))/0xb)+-parseInt(_0x2b6543(0x1f6))/0xc;if(_0x221db0===_0x335c44)break;else _0x379719['push'](_0x379719['shift']());}catch(_0x148a70){_0x379719['push'](_0x379719['shift']());}}}(a48_0x2d9f,0xdb660));import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x26b6(_0x54ac6f,_0x3f6100){_0x54ac6f=_0x54ac6f-0x1f3;const _0x2d9fd7=a48_0x2d9f();let _0x26b678=_0x2d9fd7[_0x54ac6f];return _0x26b678;}function a48_0x2d9f(){const _0x2c57bf=['13136398bIZXyo','12NyUOou','117adbTQv','3614220yZmRFk','666765kEYvLW','52PzkgbO','49644quXHJJ','751560PWUUZc','10CFRwjY','27SBIrrW','139970iueXze','1266074NaATrs'];a48_0x2d9f=function(){return _0x2c57bf;};return a48_0x2d9f();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- function a49_0x31be(){const _0x31aae6=['appCode','494232ToCaFw','alias','bool','116pdzGnK','code','142423tjFkBY','sdk','string','Omit\x20import\x20statements\x20from\x20generated\x20code','1241628AlNIlE','boolean','95247rMhRYM','read','64526LNLXKG','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','codegen','str','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','4629KtMZxT','310TXdRdU','29220gJNmVp','52MdrQgu','tableName','skip-imports'];a49_0x31be=function(){return _0x31aae6;};return a49_0x31be();}const a49_0x1df60b=a49_0x35e0;function a49_0x35e0(_0x3f1393,_0x14b20c){_0x3f1393=_0x3f1393-0xb3;const _0x31be77=a49_0x31be();let _0x35e01c=_0x31be77[_0x3f1393];return _0x35e01c;}(function(_0x17eb8f,_0x2bdd2d){const _0x2adeda=a49_0x35e0,_0x1a1e87=_0x17eb8f();while(!![]){try{const _0xdb0720=-parseInt(_0x2adeda(0xb9))/0x1+-parseInt(_0x2adeda(0xb7))/0x2*(-parseInt(_0x2adeda(0xc8))/0x3)+parseInt(_0x2adeda(0xcb))/0x4*(parseInt(_0x2adeda(0xca))/0x5)+-parseInt(_0x2adeda(0xbd))/0x6+parseInt(_0x2adeda(0xc1))/0x7+parseInt(_0x2adeda(0xb4))/0x8+-parseInt(_0x2adeda(0xbf))/0x9*(-parseInt(_0x2adeda(0xc9))/0xa);if(_0xdb0720===_0x2bdd2d)break;else _0x1a1e87['push'](_0x1a1e87['shift']());}catch(_0xd046cf){_0x1a1e87['push'](_0x1a1e87['shift']());}}}(a49_0x31be,0x34887));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x1df60b(0xc4),'command':a49_0x1df60b(0xba),'description':a49_0x1df60b(0xc7),'risk':a49_0x1df60b(0xc0),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x1df60b(0xb5),'type':a49_0x1df60b(0xbb),'description':a49_0x1df60b(0xc3)},{'name':a49_0x1df60b(0xc2),'type':a49_0x1df60b(0xbb),'required':!![],'description':a49_0x1df60b(0xc6)},{'name':a49_0x1df60b(0xcd),'type':a49_0x1df60b(0xbe),'description':a49_0x1df60b(0xbc)}],async 'execute'(_0x2d47f0){const _0x5f332d=a49_0x1df60b,{dataset:_0x59e223,operation:_0x416413}=await getOperationDetail(_0x2d47f0[_0x5f332d(0xb3)],_0x2d47f0[_0x5f332d(0xc5)](_0x5f332d(0xb8)),_0x2d47f0[_0x5f332d(0xc5)](_0x5f332d(0xc2))),_0x3dd70b=generateSdkCode(_0x59e223,_0x416413,{'includeImports':!_0x2d47f0[_0x5f332d(0xb6)](_0x5f332d(0xcd))});return{'ok':!![],'data':{'dataset':{'name':_0x59e223['name'],'code':_0x59e223['code'],'tableName':_0x59e223[_0x5f332d(0xcc)]},'operation':_0x2d47f0[_0x5f332d(0xc5)]('operation'),'code':_0x3dd70b}};}};
1
+ const a49_0xa12cae=a49_0x3045;function a49_0x3045(_0x158984,_0x56bd67){_0x158984=_0x158984-0xb1;const _0x6cd565=a49_0x6cd5();let _0x30455e=_0x6cd565[_0x158984];return _0x30455e;}(function(_0x1a9bc6,_0x20717b){const _0x147cd3=a49_0x3045,_0x553fb9=_0x1a9bc6();while(!![]){try{const _0xf7c913=-parseInt(_0x147cd3(0xbe))/0x1+-parseInt(_0x147cd3(0xbf))/0x2+parseInt(_0x147cd3(0xc2))/0x3+parseInt(_0x147cd3(0xc3))/0x4*(-parseInt(_0x147cd3(0xbd))/0x5)+parseInt(_0x147cd3(0xc7))/0x6*(-parseInt(_0x147cd3(0xb9))/0x7)+parseInt(_0x147cd3(0xc0))/0x8*(-parseInt(_0x147cd3(0xc5))/0x9)+parseInt(_0x147cd3(0xb2))/0xa;if(_0xf7c913===_0x20717b)break;else _0x553fb9['push'](_0x553fb9['shift']());}catch(_0x96e324){_0x553fb9['push'](_0x553fb9['shift']());}}}(a49_0x6cd5,0x84a5f));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0xa12cae(0xbc),'command':a49_0xa12cae(0xc1),'description':a49_0xa12cae(0xc8),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a49_0xa12cae(0xc6),'type':a49_0xa12cae(0xb7),'description':a49_0xa12cae(0xc4)},{'name':a49_0xa12cae(0xb4),'type':a49_0xa12cae(0xb7),'required':!![],'description':a49_0xa12cae(0xba)},{'name':a49_0xa12cae(0xb6),'type':'boolean','description':a49_0xa12cae(0xb1)}],async 'execute'(_0x1ae674){const _0x288e9e=a49_0xa12cae,{dataset:_0x3c3e99,operation:_0x2d1b6f}=await getOperationDetail(_0x1ae674['appCode'],_0x1ae674[_0x288e9e(0xbb)](_0x288e9e(0xb8)),_0x1ae674[_0x288e9e(0xbb)]('operation')),_0x555070=generateSdkCode(_0x3c3e99,_0x2d1b6f,{'includeImports':!_0x1ae674[_0x288e9e(0xb3)](_0x288e9e(0xb6))});return{'ok':!![],'data':{'dataset':{'name':_0x3c3e99[_0x288e9e(0xb5)],'code':_0x3c3e99[_0x288e9e(0xb8)],'tableName':_0x3c3e99[_0x288e9e(0xc9)]},'operation':_0x1ae674[_0x288e9e(0xbb)](_0x288e9e(0xb4)),'code':_0x555070}};}};function a49_0x6cd5(){const _0x190f5c=['string','code','112175OSwPaQ','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str','codegen','397450LFOBeA','308543LYCJEJ','1045262RdbjsH','8ZKlnMK','sdk','978129jkkkal','4OMtBDS','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','3954339OiBXXF','alias','198XPDtPR','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','tableName','Omit\x20import\x20statements\x20from\x20generated\x20code','20961440RGxmlI','bool','operation','name','skip-imports'];a49_0x6cd5=function(){return _0x190f5c;};return a49_0x6cd5();}
@@ -1 +1 @@
1
- const a50_0x43aada=a50_0x1224;(function(_0x2e8650,_0xdaa30e){const _0x4f358a=a50_0x1224,_0x30d862=_0x2e8650();while(!![]){try{const _0x39275f=parseInt(_0x4f358a(0xc1))/0x1+-parseInt(_0x4f358a(0xd0))/0x2*(-parseInt(_0x4f358a(0xc0))/0x3)+parseInt(_0x4f358a(0xcd))/0x4*(-parseInt(_0x4f358a(0xc7))/0x5)+parseInt(_0x4f358a(0xcb))/0x6*(parseInt(_0x4f358a(0xcc))/0x7)+-parseInt(_0x4f358a(0xc2))/0x8+parseInt(_0x4f358a(0xc4))/0x9+-parseInt(_0x4f358a(0xc6))/0xa*(parseInt(_0x4f358a(0xcf))/0xb);if(_0x39275f===_0xdaa30e)break;else _0x30d862['push'](_0x30d862['shift']());}catch(_0x1121e6){_0x30d862['push'](_0x30d862['shift']());}}}(a50_0x329f,0x817c7));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x1224(_0x48cc0e,_0x4c09aa){_0x48cc0e=_0x48cc0e-0xbf;const _0x329f5b=a50_0x329f();let _0x122452=_0x329f5b[_0x48cc0e];return _0x122452;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x43aada(0xbf),'command':'sql','description':a50_0x43aada(0xce),'risk':a50_0x43aada(0xd2),'flags':[SQLCODE_FLAG,{'name':a50_0x43aada(0xd5),'type':a50_0x43aada(0xc3),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':[a50_0x43aada(0xc9),a50_0x43aada(0xca)]},{'name':a50_0x43aada(0xd1),'type':a50_0x43aada(0xc5),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x3e9dd9){const _0x1f6b2b=a50_0x43aada,_0x2d659f=await getSqlQueryInfo(_0x3e9dd9[_0x1f6b2b(0xd3)],_0x3e9dd9[_0x1f6b2b(0xc8)](_0x1f6b2b(0xd6))),_0x30df9d=_0x3e9dd9[_0x1f6b2b(0xc8)](_0x1f6b2b(0xd5))||_0x1f6b2b(0xc9),_0x46fa2e=generateSqlCodeTemplate(_0x2d659f,{'target':_0x30df9d,'includeImports':!_0x3e9dd9['bool'](_0x1f6b2b(0xd1))});return{'ok':!![],'data':{'sqlCode':_0x2d659f['sqlCode'],'sqlName':_0x2d659f[_0x1f6b2b(0xd4)],'target':_0x30df9d,'code':_0x46fa2e}};}};function a50_0x329f(){const _0x5779af=['5429988VSiNhh','boolean','10WBDCGR','5ubqeVN','str','sdk','bff','6306dacgDH','1967Enroxq','2718948xvgfQV','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','11128513dalZDg','2041496rhiQFT','no-imports','read','appCode','sqlName','target','sqlcode','codegen','3xbCFZN','453382WWqbMD','1207984ebClnm','string'];a50_0x329f=function(){return _0x5779af;};return a50_0x329f();}
1
+ const a50_0x3e2901=a50_0x4c1e;(function(_0x26e96c,_0x35da7f){const _0x32c4a6=a50_0x4c1e,_0x4028a8=_0x26e96c();while(!![]){try{const _0x2e9201=-parseInt(_0x32c4a6(0xe6))/0x1+-parseInt(_0x32c4a6(0xde))/0x2+parseInt(_0x32c4a6(0xd0))/0x3+-parseInt(_0x32c4a6(0xe5))/0x4*(-parseInt(_0x32c4a6(0xd6))/0x5)+-parseInt(_0x32c4a6(0xe0))/0x6*(-parseInt(_0x32c4a6(0xdd))/0x7)+-parseInt(_0x32c4a6(0xd3))/0x8*(parseInt(_0x32c4a6(0xd1))/0x9)+parseInt(_0x32c4a6(0xdf))/0xa;if(_0x2e9201===_0x35da7f)break;else _0x4028a8['push'](_0x4028a8['shift']());}catch(_0x114ac0){_0x4028a8['push'](_0x4028a8['shift']());}}}(a50_0x795e,0x25b49));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x4c1e(_0x24b4f1,_0x198366){_0x24b4f1=_0x24b4f1-0xd0;const _0x795e3e=a50_0x795e();let _0x4c1eee=_0x795e3e[_0x24b4f1];return _0x4c1eee;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x3e2901(0xe7),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a50_0x3e2901(0xd8),'flags':[SQLCODE_FLAG,{'name':a50_0x3e2901(0xe3),'type':a50_0x3e2901(0xe2),'description':a50_0x3e2901(0xdc),'default':'sdk','enum':[a50_0x3e2901(0xe1),'bff']},{'name':a50_0x3e2901(0xdb),'type':a50_0x3e2901(0xd9),'description':a50_0x3e2901(0xda)}],async 'execute'(_0x2fa72b){const _0x18de70=a50_0x3e2901,_0x3a54b7=await getSqlQueryInfo(_0x2fa72b[_0x18de70(0xd2)],_0x2fa72b[_0x18de70(0xe4)](_0x18de70(0xd4))),_0x54b1f8=_0x2fa72b[_0x18de70(0xe4)](_0x18de70(0xe3))||_0x18de70(0xe1),_0x4e0ff5=generateSqlCodeTemplate(_0x3a54b7,{'target':_0x54b1f8,'includeImports':!_0x2fa72b[_0x18de70(0xd7)](_0x18de70(0xdb))});return{'ok':!![],'data':{'sqlCode':_0x3a54b7[_0x18de70(0xd5)],'sqlName':_0x3a54b7['sqlName'],'target':_0x54b1f8,'code':_0x4e0ff5}};}};function a50_0x795e(){const _0x3b3bb0=['Code\x20target:\x20sdk\x20(default)\x20or\x20bff','1841EesXsM','132332HkrXju','2204310xindxl','1044MjCEub','sdk','string','target','str','16zWuREk','174294IhjRLN','codegen','353106rrSRSo','596421TmqJNZ','appCode','16sZFDPJ','sqlcode','sqlCode','179430OZBuzw','bool','read','boolean','Omit\x20import\x20statements\x20from\x20generated\x20code','no-imports'];a50_0x795e=function(){return _0x3b3bb0;};return a50_0x795e();}
@@ -1 +1 @@
1
- (function(_0x585c5c,_0x58b0fa){const _0x512ec5=a51_0x171f,_0xa157db=_0x585c5c();while(!![]){try{const _0x4caec6=-parseInt(_0x512ec5(0x114))/0x1*(-parseInt(_0x512ec5(0xf7))/0x2)+parseInt(_0x512ec5(0x10a))/0x3+-parseInt(_0x512ec5(0x104))/0x4*(-parseInt(_0x512ec5(0x112))/0x5)+parseInt(_0x512ec5(0x115))/0x6*(parseInt(_0x512ec5(0x103))/0x7)+-parseInt(_0x512ec5(0x116))/0x8+-parseInt(_0x512ec5(0xfa))/0x9+-parseInt(_0x512ec5(0xf4))/0xa*(parseInt(_0x512ec5(0xfe))/0xb);if(_0x4caec6===_0x58b0fa)break;else _0xa157db['push'](_0xa157db['shift']());}catch(_0x2743a6){_0xa157db['push'](_0xa157db['shift']());}}}(a51_0x3046,0x789f1));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';function a51_0x171f(_0x5bfb94,_0x55882b){_0x5bfb94=_0x5bfb94-0xea;const _0x30469c=a51_0x3046();let _0x171f75=_0x30469c[_0x5bfb94];return _0x171f75;}export function buildAppAddFlags(){const _0x1b09db=a51_0x171f;return[{'name':_0x1b09db(0x101),'type':_0x1b09db(0x100),'description':'App\x20code','required':!![]},{'name':'global','type':'boolean','description':_0x1b09db(0x10f),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x5631f2=a51_0x171f;return[{'name':_0x5631f2(0xff),'type':'boolean','description':_0x5631f2(0x10f),'default':![]}];}export async function validateAppName(_0x145224,_0x6ad1d3){const _0x42dc6a=a51_0x171f,_0x27c134=_0x145224['args'][0x0]?.[_0x42dc6a(0x108)]();if(!_0x27c134)throw CliErrors[_0x42dc6a(0xf3)](_0x42dc6a(0xfb),_0x42dc6a(0x10d)+CLI_BIN_NAME+'\x20'+_0x6ad1d3+_0x42dc6a(0xf1));}function a51_0x3046(){const _0x1988dc=['11kcovjh','global','string','appcode','args','98kUZsRs','4wNPsjr','\x20<name>\x20[--global]','\x20Default\x20app\x20is\x20\x22','Updated','trim','globalConfig','1422069UANIfv','length','flagMissing','Usage:\x20','apps','Use\x20global\x20config\x20scope','\x20config.','both','4708855cQNWjt','\x22\x20not\x20found.','1dELPZL','110478jPBmkC','5562472rGyWuG','keys','\x22\x20still\x20defined\x20in\x20','\x20app\x20\x22','object','\x22\x20(appcode:\x20','projectConfig','defaultApp','\x20<name>','bool','validation','1916520xZbUeY','\x20Remaining\x20app\x20\x22','str','121738VXNeCW','\x22\x20is\x20selected\x20automatically.','project','3180771RiWFeX','Missing\x20app\x20name.','App\x20\x22','\x20<name>\x20--appcode\x20<code>'];a51_0x3046=function(){return _0x1988dc;};return a51_0x3046();}export async function runAppAdd(_0x16e674,_0x127466){const _0xcc15ab=a51_0x171f,_0x1ee9f8=_0x16e674[_0xcc15ab(0x102)][0x0]?.['trim']();if(!_0x1ee9f8)throw CliErrors['validation'](_0xcc15ab(0xfb),_0xcc15ab(0x10d)+CLI_BIN_NAME+'\x20'+_0x127466+_0xcc15ab(0xfd));const _0x335680=_0x16e674[_0xcc15ab(0xf6)]('appcode');if(!_0x335680)throw CliErrors[_0xcc15ab(0x10c)](_0xcc15ab(0x101),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x127466+_0xcc15ab(0xfd));const _0x434f18={'global':_0x16e674[_0xcc15ab(0xf2)](_0xcc15ab(0xff))},_0x3588bb=readConfig(_0x434f18);if(!_0x3588bb[_0xcc15ab(0x10e)])_0x3588bb[_0xcc15ab(0x10e)]={};const _0x53a07e={'appcode':_0x335680,...collectAppProfileOverrides(_0x415c3c=>_0x16e674['str'](_0x415c3c))},_0x3b9b6c=_0x3588bb[_0xcc15ab(0x10e)],_0x32b720=Object[_0xcc15ab(0xea)](_0x3b9b6c),_0x5ebf46=typeof _0x3588bb[_0xcc15ab(0xf0)]==='string'&&_0x3b9b6c[_0x3588bb[_0xcc15ab(0xf0)]]?_0x3588bb[_0xcc15ab(0xf0)]:_0x32b720['length']===0x1?_0x32b720[0x0]:undefined,_0x49637b=!!_0x3b9b6c[_0x1ee9f8];_0x3b9b6c[_0x1ee9f8]=_0x53a07e;const _0x5ba813=normalizeStoredDefaultApp(_0x3588bb,_0x5ebf46);writeConfig(_0x3588bb,_0x434f18);const _0x1e5f16=!_0x49637b&&_0x5ba813?_0xcc15ab(0x106)+_0x5ba813+'\x22.':'',_0x181bf3=(_0x49637b?_0xcc15ab(0x107):'Added')+_0xcc15ab(0xec)+_0x1ee9f8+_0xcc15ab(0xee)+_0x335680+')'+scopeLabel(_0x434f18)+'.'+_0x1e5f16;return{'ok':!![],'message':_0x181bf3};}export async function runAppRemove(_0x228482,_0x1df065){const _0x203bab=a51_0x171f,_0x31ce29=_0x228482['args'][0x0]?.[_0x203bab(0x108)]();if(!_0x31ce29)throw CliErrors[_0x203bab(0xf3)]('Missing\x20app\x20name.',_0x203bab(0x10d)+CLI_BIN_NAME+'\x20'+_0x1df065+_0x203bab(0x105));const _0x456c9b=_0x228482[_0x203bab(0xf2)](_0x203bab(0xff)),{config:_0x20766e,layers:_0x247d7d}=readRawConfigWithLayers(),_0xfb3c25=_0x20766e[_0x203bab(0x10e)]??{};if(!_0xfb3c25[_0x31ce29])throw CliErrors[_0x203bab(0xf3)](_0x203bab(0xfc)+_0x31ce29+'\x22\x20not\x20found.');const _0x1fa52f=_0x247d7d[_0x203bab(0x109)][_0x203bab(0x10e)]&&typeof _0x247d7d['globalConfig'][_0x203bab(0x10e)]==='object'?_0x247d7d[_0x203bab(0x109)][_0x203bab(0x10e)]:{},_0x40fb39=_0x247d7d[_0x203bab(0xef)][_0x203bab(0x10e)]&&typeof _0x247d7d['projectConfig']['apps']===_0x203bab(0xed)?_0x247d7d[_0x203bab(0xef)][_0x203bab(0x10e)]:{},_0x103374=appDefinedIn(_0x31ce29,_0x1fa52f,_0x40fb39),_0x133366=resolveAppScopeForWrite(_0x31ce29,_0x456c9b,_0x247d7d),_0x125a88={'global':_0x133366===_0x203bab(0xff)},_0x1875ba=readConfig(_0x125a88),_0x31bb98=_0x1875ba['apps'];if(!_0x31bb98||!_0x31bb98[_0x31ce29])throw CliErrors[_0x203bab(0xf3)](_0x203bab(0xfc)+_0x31ce29+_0x203bab(0x113));delete _0x31bb98[_0x31ce29];let _0x129ba3='';const _0x5cf23b=typeof _0x1875ba[_0x203bab(0xf0)]==='string'?_0x1875ba[_0x203bab(0xf0)]:undefined,_0x1ad931=Object[_0x203bab(0xea)](_0x31bb98),_0x152885=_0x5cf23b===_0x31ce29?_0x1ad931[0x0]:_0x5cf23b,_0x260149=normalizeStoredDefaultApp(_0x1875ba,_0x152885);if(_0x5cf23b===_0x31ce29&&_0x1ad931[_0x203bab(0x10b)]===0x1)_0x129ba3=_0x203bab(0xf5)+_0x1ad931[0x0]+_0x203bab(0xf8);else _0x5cf23b===_0x31ce29&&_0x260149&&(_0x129ba3='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x260149+'\x22.');Object[_0x203bab(0xea)](_0x31bb98)[_0x203bab(0x10b)]===0x0&&(delete _0x1875ba[_0x203bab(0x10e)],delete _0x1875ba['defaultApp']);writeConfig(_0x1875ba,_0x125a88);const _0x2a04d6=_0x103374===_0x203bab(0x111)?'\x20Note:\x20app\x20\x22'+_0x31ce29+_0x203bab(0xeb)+(_0x133366===_0x203bab(0xf9)?_0x203bab(0xff):_0x203bab(0xf9))+_0x203bab(0x110):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x31ce29+'\x22'+scopeLabel(_0x125a88)+'.'+_0x129ba3+_0x2a04d6};}
1
+ function a51_0x42a1(_0x52528d,_0x182653){_0x52528d=_0x52528d-0x19b;const _0x335985=a51_0x3359();let _0x42a16b=_0x335985[_0x52528d];return _0x42a16b;}(function(_0x4bd50c,_0x1af8b5){const _0x4ff77e=a51_0x42a1,_0x2a8f4f=_0x4bd50c();while(!![]){try{const _0x37eb18=-parseInt(_0x4ff77e(0x1bd))/0x1*(parseInt(_0x4ff77e(0x1a7))/0x2)+-parseInt(_0x4ff77e(0x1a9))/0x3+parseInt(_0x4ff77e(0x1ba))/0x4*(-parseInt(_0x4ff77e(0x1c5))/0x5)+-parseInt(_0x4ff77e(0x1a4))/0x6+parseInt(_0x4ff77e(0x1a8))/0x7*(-parseInt(_0x4ff77e(0x1c3))/0x8)+-parseInt(_0x4ff77e(0x1b2))/0x9+-parseInt(_0x4ff77e(0x19b))/0xa*(-parseInt(_0x4ff77e(0x1b1))/0xb);if(_0x37eb18===_0x1af8b5)break;else _0x2a8f4f['push'](_0x2a8f4f['shift']());}catch(_0x5db8dd){_0x2a8f4f['push'](_0x2a8f4f['shift']());}}}(a51_0x3359,0x4c4c1));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 _0x2a3657=a51_0x42a1;return[{'name':_0x2a3657(0x1c1),'type':_0x2a3657(0x1bb),'description':_0x2a3657(0x1c2),'required':!![]},{'name':_0x2a3657(0x1a0),'type':_0x2a3657(0x1a1),'description':_0x2a3657(0x19f),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x5da7c7=a51_0x42a1;return[{'name':'global','type':'boolean','description':_0x5da7c7(0x19f),'default':![]}];}export async function validateAppName(_0x433eab,_0x4701b6){const _0xb08c9c=a51_0x42a1,_0x335cda=_0x433eab[_0xb08c9c(0x1c7)][0x0]?.[_0xb08c9c(0x1b5)]();if(!_0x335cda)throw CliErrors['validation'](_0xb08c9c(0x1c9),_0xb08c9c(0x1b6)+CLI_BIN_NAME+'\x20'+_0x4701b6+'\x20<name>');}export async function runAppAdd(_0x3f9901,_0x507e3d){const _0x244c4b=a51_0x42a1,_0x37327a=_0x3f9901[_0x244c4b(0x1c7)][0x0]?.['trim']();if(!_0x37327a)throw CliErrors[_0x244c4b(0x1c4)]('Missing\x20app\x20name.',_0x244c4b(0x1b6)+CLI_BIN_NAME+'\x20'+_0x507e3d+_0x244c4b(0x1bc));const _0xdeea9c=_0x3f9901[_0x244c4b(0x1af)](_0x244c4b(0x1c1));if(!_0xdeea9c)throw CliErrors[_0x244c4b(0x1c8)](_0x244c4b(0x1c1),_0x244c4b(0x1b6)+CLI_BIN_NAME+'\x20'+_0x507e3d+_0x244c4b(0x1bc));const _0x46c27e={'global':_0x3f9901[_0x244c4b(0x1a6)](_0x244c4b(0x1a0))},_0x93c9ee=readConfig(_0x46c27e);if(!_0x93c9ee[_0x244c4b(0x1be)])_0x93c9ee[_0x244c4b(0x1be)]={};const _0x39f038={'appcode':_0xdeea9c,...collectAppProfileOverrides(_0x175031=>_0x3f9901[_0x244c4b(0x1af)](_0x175031))},_0x14a5ef=_0x93c9ee[_0x244c4b(0x1be)],_0x2ecfb2=Object[_0x244c4b(0x19c)](_0x14a5ef),_0x21bb39=typeof _0x93c9ee[_0x244c4b(0x1b7)]===_0x244c4b(0x1bb)&&_0x14a5ef[_0x93c9ee[_0x244c4b(0x1b7)]]?_0x93c9ee[_0x244c4b(0x1b7)]:_0x2ecfb2[_0x244c4b(0x1bf)]===0x1?_0x2ecfb2[0x0]:undefined,_0x4e9f8e=!!_0x14a5ef[_0x37327a];_0x14a5ef[_0x37327a]=_0x39f038;const _0x21bfc8=normalizeStoredDefaultApp(_0x93c9ee,_0x21bb39);writeConfig(_0x93c9ee,_0x46c27e);const _0x9edb52=!_0x4e9f8e&&_0x21bfc8?_0x244c4b(0x1aa)+_0x21bfc8+'\x22.':'',_0x43f0ba=(_0x4e9f8e?_0x244c4b(0x1a2):'Added')+_0x244c4b(0x19e)+_0x37327a+_0x244c4b(0x1b0)+_0xdeea9c+')'+scopeLabel(_0x46c27e)+'.'+_0x9edb52;return{'ok':!![],'message':_0x43f0ba};}function a51_0x3359(){const _0x4b4dad=['appcode','App\x20code','19512FTQYgm','validation','5410ewiCbb','Removed\x20app\x20\x22','args','flagMissing','Missing\x20app\x20name.','7610HDFxwf','keys','globalConfig','\x20app\x20\x22','Use\x20global\x20config\x20scope','global','boolean','Updated','project','2392548gkFTUK','\x20config.','bool','2DwklXz','1379pzikGm','626724UQjAru','\x20Default\x20app\x20is\x20\x22','object','\x20<name>\x20[--global]','\x22\x20still\x20defined\x20in\x20','\x22\x20not\x20found.','str','\x22\x20(appcode:\x20','34859GBNPKO','3766500ftEpaZ','\x20Remaining\x20app\x20\x22','projectConfig','trim','Usage:\x20','defaultApp','App\x20\x22','both','60MYKbDZ','string','\x20<name>\x20--appcode\x20<code>','576217NFpTma','apps','length','\x20Default\x20app\x20changed\x20to\x20\x22'];a51_0x3359=function(){return _0x4b4dad;};return a51_0x3359();}export async function runAppRemove(_0x51e4ff,_0x2e4274){const _0x13695a=a51_0x42a1,_0x33fccf=_0x51e4ff['args'][0x0]?.[_0x13695a(0x1b5)]();if(!_0x33fccf)throw CliErrors[_0x13695a(0x1c4)](_0x13695a(0x1c9),_0x13695a(0x1b6)+CLI_BIN_NAME+'\x20'+_0x2e4274+_0x13695a(0x1ac));const _0x1c835b=_0x51e4ff[_0x13695a(0x1a6)](_0x13695a(0x1a0)),{config:_0x20ffa8,layers:_0x3c23f3}=readRawConfigWithLayers(),_0x1a9094=_0x20ffa8[_0x13695a(0x1be)]??{};if(!_0x1a9094[_0x33fccf])throw CliErrors[_0x13695a(0x1c4)]('App\x20\x22'+_0x33fccf+'\x22\x20not\x20found.');const _0x33ae0a=_0x3c23f3[_0x13695a(0x19d)][_0x13695a(0x1be)]&&typeof _0x3c23f3[_0x13695a(0x19d)]['apps']==='object'?_0x3c23f3['globalConfig'][_0x13695a(0x1be)]:{},_0x22c45a=_0x3c23f3[_0x13695a(0x1b4)][_0x13695a(0x1be)]&&typeof _0x3c23f3[_0x13695a(0x1b4)][_0x13695a(0x1be)]===_0x13695a(0x1ab)?_0x3c23f3[_0x13695a(0x1b4)][_0x13695a(0x1be)]:{},_0x192dab=appDefinedIn(_0x33fccf,_0x33ae0a,_0x22c45a),_0x2028e5=resolveAppScopeForWrite(_0x33fccf,_0x1c835b,_0x3c23f3),_0x3533f3={'global':_0x2028e5==='global'},_0x97e351=readConfig(_0x3533f3),_0x59d88a=_0x97e351[_0x13695a(0x1be)];if(!_0x59d88a||!_0x59d88a[_0x33fccf])throw CliErrors[_0x13695a(0x1c4)](_0x13695a(0x1b8)+_0x33fccf+_0x13695a(0x1ae));delete _0x59d88a[_0x33fccf];let _0x20c811='';const _0x4b07d7=typeof _0x97e351[_0x13695a(0x1b7)]===_0x13695a(0x1bb)?_0x97e351[_0x13695a(0x1b7)]:undefined,_0x1e898d=Object[_0x13695a(0x19c)](_0x59d88a),_0x30f8e7=_0x4b07d7===_0x33fccf?_0x1e898d[0x0]:_0x4b07d7,_0x4d206b=normalizeStoredDefaultApp(_0x97e351,_0x30f8e7);if(_0x4b07d7===_0x33fccf&&_0x1e898d[_0x13695a(0x1bf)]===0x1)_0x20c811=_0x13695a(0x1b3)+_0x1e898d[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0x4b07d7===_0x33fccf&&_0x4d206b&&(_0x20c811=_0x13695a(0x1c0)+_0x4d206b+'\x22.');Object[_0x13695a(0x19c)](_0x59d88a)[_0x13695a(0x1bf)]===0x0&&(delete _0x97e351['apps'],delete _0x97e351[_0x13695a(0x1b7)]);writeConfig(_0x97e351,_0x3533f3);const _0x15f297=_0x192dab===_0x13695a(0x1b9)?'\x20Note:\x20app\x20\x22'+_0x33fccf+_0x13695a(0x1ad)+(_0x2028e5===_0x13695a(0x1a3)?_0x13695a(0x1a0):_0x13695a(0x1a3))+_0x13695a(0x1a5):'';return{'ok':!![],'message':_0x13695a(0x1c6)+_0x33fccf+'\x22'+scopeLabel(_0x3533f3)+'.'+_0x20c811+_0x15f297};}
@@ -1 +1 @@
1
- (function(_0x4c3bcf,_0x33dd38){const _0x2580b5=a52_0x28fa,_0x10360d=_0x4c3bcf();while(!![]){try{const _0x42e510=-parseInt(_0x2580b5(0x9b))/0x1+-parseInt(_0x2580b5(0x8e))/0x2+-parseInt(_0x2580b5(0x8f))/0x3+parseInt(_0x2580b5(0x92))/0x4+-parseInt(_0x2580b5(0x8b))/0x5*(-parseInt(_0x2580b5(0x90))/0x6)+parseInt(_0x2580b5(0x93))/0x7+parseInt(_0x2580b5(0xa8))/0x8*(parseInt(_0x2580b5(0xa7))/0x9);if(_0x42e510===_0x33dd38)break;else _0x10360d['push'](_0x10360d['shift']());}catch(_0x58abd7){_0x10360d['push'](_0x10360d['shift']());}}}(a52_0x4bba,0x7e3d0));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x54027e 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 _0x27ca2e=a52_0x28fa,_0x511f18=await input({'message':'App\x20Code:','validate':_0x350fd1=>{const _0x1e7ec8=a52_0x28fa,_0x42bba3=validateAppcode(_0x350fd1[_0x1e7ec8(0x8d)]());return _0x42bba3['valid']||_0x42bba3[_0x1e7ec8(0x9d)]||_0x1e7ec8(0x88);}});return _0x511f18[_0x27ca2e(0x8d)]();}function a52_0x4bba(){const _0x3d391b=['9yQCoNC','1726944KlPEJO','✎\x20Enter\x20appcode\x20manually','appCode','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','Invalid\x20App\x20Code','skip','Fetching\x20available\x20apps...','691755xKPnmP','\x20\x20(','trim','824634HwoNtC','2089695QsiKeB','36CCeeLf','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','1025832DkwlpQ','5370673LUcsKq','appName','manual','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','length','No\x20available\x20apps\x20found.','Select\x20the\x20app\x20to\x20bind:','443717PMHJxR','includes','message','find','map','custom','cyan','yellow','gray','App\x20Code:','(Skip;\x20configure\x20later)','Found\x20'];a52_0x4bba=function(){return _0x3d391b;};return a52_0x4bba();}export async function promptAppSelection(_0x4a2170){const _0x9f0ec6=a52_0x28fa,_0xb52ae1=[{'name':a52_0x54027e['yellow']('✎\x20Enter\x20appcode\x20manually'),'value':-0x1},..._0x4a2170[_0x9f0ec6(0x9f)]((_0x2d7698,_0x17c4f5)=>({'name':_0x2d7698[_0x9f0ec6(0x94)]+'\x20\x20'+a52_0x54027e['gray']('('+_0x2d7698[_0x9f0ec6(0x86)]+')'),'value':_0x17c4f5}))],_0x352992=await checkbox({'message':_0x9f0ec6(0xa6)+a52_0x54027e[_0x9f0ec6(0xa1)](_0x4a2170[_0x9f0ec6(0x98)])+_0x9f0ec6(0x96),'choices':_0xb52ae1,'loop':![]});if(_0x352992[_0x9f0ec6(0x9c)](-0x1))return _0x9f0ec6(0xa0);if(_0x352992[_0x9f0ec6(0x98)]===0x0)return _0x9f0ec6(0xa0);return _0x352992[_0x9f0ec6(0x9f)](_0x2cc277=>_0x4a2170[_0x2cc277]);}function a52_0x28fa(_0x5e9141,_0x5dcf9f){_0x5e9141=_0x5e9141-0x85;const _0x4bba73=a52_0x4bba();let _0x28fab7=_0x4bba73[_0x5e9141];return _0x28fab7;}export async function promptSingleAppSelection(_0x31e450){const _0x384f33=a52_0x28fa,_0x3ad7c0=[{'name':a52_0x54027e[_0x384f33(0xa3)](_0x384f33(0x91)),'value':_0x384f33(0x89)},{'name':a52_0x54027e['yellow'](_0x384f33(0x85)),'value':_0x384f33(0xa0)},..._0x31e450['map'](_0x4f7b39=>({'name':_0x4f7b39[_0x384f33(0x94)]+'\x20\x20'+a52_0x54027e[_0x384f33(0xa3)]('('+_0x4f7b39['appCode']+')'),'value':_0x4f7b39[_0x384f33(0x86)]}))],_0x2a720d=await select({'message':_0x384f33(0x9a),'choices':_0x3ad7c0});if(_0x2a720d==='skip')return _0x384f33(0x89);if(_0x2a720d==='custom')return _0x384f33(0xa0);return _0x31e450[_0x384f33(0x9e)](_0x25cb9b=>_0x25cb9b[_0x384f33(0x86)]===_0x2a720d);}export async function selectSingleAppcode(_0xa511d){const _0x21cc25=a52_0x28fa;if(!_0xa511d)return writeCliSideChannelLine(a52_0x54027e['gray'](_0x21cc25(0x87))),_fallbackOrSkip();writeCliSideChannelLine(_0x21cc25(0x8a));let _0x9266cf;try{_0x9266cf=await withActiveCookie(_0xa511d,()=>listRemoteApps());}catch(_0x329859){writeCliSideChannelLine(a52_0x54027e[_0x21cc25(0xa2)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x329859 instanceof Error)writeCliSideChannelLine(a52_0x54027e['gray'](_0x21cc25(0x8c)+_0x329859[_0x21cc25(0x9d)]+')'));return _fallbackOrSkip();}if(_0x9266cf['length']===0x0)return writeCliSideChannelLine(a52_0x54027e[_0x21cc25(0xa2)](_0x21cc25(0x99))),_fallbackOrSkip();const _0x269d4a=await promptSingleAppSelection(_0x9266cf);if(_0x269d4a===_0x21cc25(0x89))return'';if(_0x269d4a===_0x21cc25(0xa0))return promptCustomAppcode();return _0x269d4a[_0x21cc25(0x86)];}export async function selectMultipleApps(_0x197d40){const _0x10e918=a52_0x28fa;writeCliSideChannelLine(_0x10e918(0x8a));let _0x567513;try{_0x567513=await withActiveCookie(_0x197d40,()=>listRemoteApps());}catch(_0x2ad3a5){writeCliSideChannelLine(_0x10e918(0x97));if(_0x2ad3a5 instanceof Error)writeCliSideChannelLine(_0x10e918(0x8c)+_0x2ad3a5[_0x10e918(0x9d)]+')');return'custom';}if(_0x567513['length']===0x0)return writeCliSideChannelLine('\x0aNo\x20available\x20apps\x20found.'),'custom';return promptAppSelection(_0x567513);}async function _fallbackOrSkip(){const _0x35d481=a52_0x28fa,_0x2ac2b3=await select({'message':_0x35d481(0xa4),'choices':[{'name':a52_0x54027e[_0x35d481(0xa3)](_0x35d481(0xa5)),'value':_0x35d481(0x89)},{'name':a52_0x54027e[_0x35d481(0xa2)]('✎\x20Enter\x20manually'),'value':_0x35d481(0x95)}]});if(_0x2ac2b3==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x4bf15f,_0x187c4d){const _0x13b59e=a52_0x4127,_0x517c07=_0x4bf15f();while(!![]){try{const _0x1b49ba=parseInt(_0x13b59e(0xca))/0x1*(-parseInt(_0x13b59e(0xc8))/0x2)+-parseInt(_0x13b59e(0xb5))/0x3+parseInt(_0x13b59e(0xbb))/0x4+-parseInt(_0x13b59e(0xb8))/0x5+parseInt(_0x13b59e(0xad))/0x6*(parseInt(_0x13b59e(0xab))/0x7)+-parseInt(_0x13b59e(0xc2))/0x8*(parseInt(_0x13b59e(0xc9))/0x9)+parseInt(_0x13b59e(0xb0))/0xa*(parseInt(_0x13b59e(0xb6))/0xb);if(_0x1b49ba===_0x187c4d)break;else _0x517c07['push'](_0x517c07['shift']());}catch(_0x3add7d){_0x517c07['push'](_0x517c07['shift']());}}}(a52_0x4d9d,0xcec0b));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x526f79 from'chalk';function a52_0x4d9d(){const _0x2aa2a6=['valid','trim','skip','map','✎\x20Enter\x20appcode\x20manually','14hQYzld','length','3545814YmDpIu','appCode','(Skip;\x20configure\x20later)','11785910YktfzI','custom','Fetching\x20available\x20apps...','cyan','No\x20available\x20apps\x20found.','4114698woPVAt','22kVhAaF','gray','6944685PYDhtx','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','find','6212020XJWRlO','\x0aNo\x20available\x20apps\x20found.','✎\x20Enter\x20manually','appName','manual','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','App\x20Code:','4309400DZzXQl','yellow','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','message','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','\x20\x20(','208ELXJqM','9PhiWJB','9097jZpSkt'];a52_0x4d9d=function(){return _0x2aa2a6;};return a52_0x4d9d();}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 _0x45e37e=a52_0x4127,_0x46f04b=await input({'message':_0x45e37e(0xc1),'validate':_0x2a577f=>{const _0x22e598=_0x45e37e,_0x42bdec=validateAppcode(_0x2a577f['trim']());return _0x42bdec[_0x22e598(0xcb)]||_0x42bdec[_0x22e598(0xc5)]||'Invalid\x20App\x20Code';}});return _0x46f04b[_0x45e37e(0xcc)]();}export async function promptAppSelection(_0x4d3c3d){const _0x677556=a52_0x4127,_0x37bfce=[{'name':a52_0x526f79[_0x677556(0xc3)](_0x677556(0xaa)),'value':-0x1},..._0x4d3c3d[_0x677556(0xa9)]((_0x31eb17,_0x30721e)=>({'name':_0x31eb17['appName']+'\x20\x20'+a52_0x526f79[_0x677556(0xb7)]('('+_0x31eb17[_0x677556(0xae)]+')'),'value':_0x30721e}))],_0x161c61=await checkbox({'message':'Found\x20'+a52_0x526f79[_0x677556(0xb3)](_0x4d3c3d[_0x677556(0xac)])+'\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','choices':_0x37bfce,'loop':![]});if(_0x161c61['includes'](-0x1))return _0x677556(0xb1);if(_0x161c61['length']===0x0)return'custom';return _0x161c61[_0x677556(0xa9)](_0x1dc2f3=>_0x4d3c3d[_0x1dc2f3]);}export async function promptSingleAppSelection(_0x1faff6){const _0x1f5d73=a52_0x4127,_0x316d53=[{'name':a52_0x526f79['gray'](_0x1f5d73(0xc6)),'value':_0x1f5d73(0xcd)},{'name':a52_0x526f79[_0x1f5d73(0xc3)](_0x1f5d73(0xaa)),'value':_0x1f5d73(0xb1)},..._0x1faff6[_0x1f5d73(0xa9)](_0x2288ca=>({'name':_0x2288ca[_0x1f5d73(0xbe)]+'\x20\x20'+a52_0x526f79['gray']('('+_0x2288ca[_0x1f5d73(0xae)]+')'),'value':_0x2288ca[_0x1f5d73(0xae)]}))],_0x24a7a6=await select({'message':'Select\x20the\x20app\x20to\x20bind:','choices':_0x316d53});if(_0x24a7a6==='skip')return'skip';if(_0x24a7a6==='custom')return _0x1f5d73(0xb1);return _0x1faff6[_0x1f5d73(0xba)](_0x2ec43b=>_0x2ec43b[_0x1f5d73(0xae)]===_0x24a7a6);}function a52_0x4127(_0x27096d,_0x1ce364){_0x27096d=_0x27096d-0xa9;const _0x4d9d19=a52_0x4d9d();let _0x412715=_0x4d9d19[_0x27096d];return _0x412715;}export async function selectSingleAppcode(_0x5b1e08){const _0x58d7e0=a52_0x4127;if(!_0x5b1e08)return writeCliSideChannelLine(a52_0x526f79['gray'](_0x58d7e0(0xb9))),_fallbackOrSkip();writeCliSideChannelLine(_0x58d7e0(0xb2));let _0x9ea250;try{_0x9ea250=await withActiveCookie(_0x5b1e08,()=>listRemoteApps());}catch(_0x556110){writeCliSideChannelLine(a52_0x526f79[_0x58d7e0(0xc3)](_0x58d7e0(0xc4)));if(_0x556110 instanceof Error)writeCliSideChannelLine(a52_0x526f79[_0x58d7e0(0xb7)]('\x20\x20('+_0x556110[_0x58d7e0(0xc5)]+')'));return _fallbackOrSkip();}if(_0x9ea250[_0x58d7e0(0xac)]===0x0)return writeCliSideChannelLine(a52_0x526f79[_0x58d7e0(0xc3)](_0x58d7e0(0xb4))),_fallbackOrSkip();const _0xfa2d4c=await promptSingleAppSelection(_0x9ea250);if(_0xfa2d4c==='skip')return'';if(_0xfa2d4c===_0x58d7e0(0xb1))return promptCustomAppcode();return _0xfa2d4c['appCode'];}export async function selectMultipleApps(_0x3a4e13){const _0x3ac898=a52_0x4127;writeCliSideChannelLine(_0x3ac898(0xb2));let _0x1705ba;try{_0x1705ba=await withActiveCookie(_0x3a4e13,()=>listRemoteApps());}catch(_0x2bc119){writeCliSideChannelLine(_0x3ac898(0xc0));if(_0x2bc119 instanceof Error)writeCliSideChannelLine(_0x3ac898(0xc7)+_0x2bc119[_0x3ac898(0xc5)]+')');return _0x3ac898(0xb1);}if(_0x1705ba[_0x3ac898(0xac)]===0x0)return writeCliSideChannelLine(_0x3ac898(0xbc)),'custom';return promptAppSelection(_0x1705ba);}async function _fallbackOrSkip(){const _0x343b35=a52_0x4127,_0x581919=await select({'message':_0x343b35(0xc1),'choices':[{'name':a52_0x526f79[_0x343b35(0xb7)](_0x343b35(0xaf)),'value':'skip'},{'name':a52_0x526f79[_0x343b35(0xc3)](_0x343b35(0xbd)),'value':_0x343b35(0xbf)}]});if(_0x581919===_0x343b35(0xcd))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a53_0x269270=a53_0x3593;(function(_0x33be63,_0x3e8741){const _0x3f8c0b=a53_0x3593,_0xd37a90=_0x33be63();while(!![]){try{const _0xc82af4=parseInt(_0x3f8c0b(0xac))/0x1*(-parseInt(_0x3f8c0b(0xae))/0x2)+-parseInt(_0x3f8c0b(0x9c))/0x3*(-parseInt(_0x3f8c0b(0xa7))/0x4)+-parseInt(_0x3f8c0b(0xb0))/0x5*(parseInt(_0x3f8c0b(0x8f))/0x6)+-parseInt(_0x3f8c0b(0xb1))/0x7+parseInt(_0x3f8c0b(0x96))/0x8*(parseInt(_0x3f8c0b(0x94))/0x9)+-parseInt(_0x3f8c0b(0xa6))/0xa+-parseInt(_0x3f8c0b(0xa0))/0xb*(-parseInt(_0x3f8c0b(0x97))/0xc);if(_0xc82af4===_0x3e8741)break;else _0xd37a90['push'](_0xd37a90['shift']());}catch(_0x580b64){_0xd37a90['push'](_0xd37a90['shift']());}}}(a53_0x5585,0xecada));import{CLI_BIN_NAME}from'../../constant/cli.js';function a53_0x3593(_0x6c15de,_0x39a2e){_0x6c15de=_0x6c15de-0x8f;const _0x55858a=a53_0x5585();let _0x3593b2=_0x55858a[_0x6c15de];return _0x3593b2;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x269270(0x98),a53_0x269270(0xad)]),NON_TERMINAL_STATUSES=new Set([a53_0x269270(0x99),a53_0x269270(0x9b)]);export function normalizeAsyncTask(_0x2e3643){const _0x42a1a0=a53_0x269270,_0x1d0188=typeof _0x2e3643?.[_0x42a1a0(0x9d)]===_0x42a1a0(0x90)?_0x2e3643[_0x42a1a0(0x9d)]['trim']():'';if(!_0x1d0188)throw CliErrors[_0x42a1a0(0x91)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x4c93ad=typeof _0x2e3643[_0x42a1a0(0x9e)]===_0x42a1a0(0x90)?_0x2e3643['status']['trim']()[_0x42a1a0(0xa5)]():'';if(!_0x4c93ad)throw CliErrors['apiError'](_0x42a1a0(0xa3)+_0x1d0188+_0x42a1a0(0xa4));return{'taskId':_0x1d0188,'status':_0x4c93ad,'errorMessage':typeof _0x2e3643[_0x42a1a0(0xaa)]===_0x42a1a0(0x90)&&_0x2e3643[_0x42a1a0(0xaa)][_0x42a1a0(0xab)]()?_0x2e3643[_0x42a1a0(0xaa)][_0x42a1a0(0xab)]():null,'isTerminal':TERMINAL_STATUSES[_0x42a1a0(0x95)](_0x4c93ad),'knownStatus':TERMINAL_STATUSES[_0x42a1a0(0x95)](_0x4c93ad)||NON_TERMINAL_STATUSES['has'](_0x4c93ad)};}export function buildAsyncTaskStatusCommand(_0x3c3b5f,_0x1e2380){const _0x490d48=a53_0x269270;return CLI_BIN_NAME+_0x490d48(0xb3)+quoteShellArg(_0x3c3b5f)+_0x490d48(0xa9)+quoteShellArg(_0x1e2380)+_0x490d48(0x92);}export function asyncTaskMessage(_0x478d30){const _0x22eec3=a53_0x269270;switch(_0x478d30[_0x22eec3(0x9e)]){case'PENDING':return _0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0xa1);case _0x22eec3(0x9b):return _0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+'\x20is\x20processing.';case _0x22eec3(0x98):return _0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+_0x22eec3(0xa8);case _0x22eec3(0xad):return _0x478d30[_0x22eec3(0xaa)]?_0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+_0x22eec3(0xa2)+_0x478d30[_0x22eec3(0xaa)]:_0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0x9a);default:return _0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0x93)+_0x478d30[_0x22eec3(0x9e)]+'.';}}function a53_0x5585(){const _0x3e18e3=['trim','2pNWmde','FAILED','497194jiMtaf','replace','505zeowEn','11614428nQmcOp','Task\x20','\x20task\x20status\x20--task-id\x20','77388XxJAuy','string','apiError','\x20--format\x20compress','\x20returned\x20unknown\x20status\x20','5404185PyDuCN','has','24QJeWLI','36LUtkMr','SUCCESS','PENDING','\x20failed.','PROCESSING','3jnMftd','taskId','status','\x27\x5c\x27\x27','7855265KFRxBr','\x20is\x20pending.','\x20failed:\x20','Async\x20task\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','toUpperCase','10134810sHnDBA','5993084tqOSsO','\x20completed\x20successfully.','\x20--appcode\x20','errorMessage'];a53_0x5585=function(){return _0x3e18e3;};return a53_0x5585();}function quoteShellArg(_0x2d05ca){const _0x4c4332=a53_0x269270;return'\x27'+_0x2d05ca[_0x4c4332(0xaf)](/'/g,_0x4c4332(0x9f))+'\x27';}
1
+ const a53_0x4a81d9=a53_0x56c1;(function(_0x5cf2cd,_0x4021cb){const _0x497bcf=a53_0x56c1,_0x1061d2=_0x5cf2cd();while(!![]){try{const _0x46e723=parseInt(_0x497bcf(0x95))/0x1*(-parseInt(_0x497bcf(0xad))/0x2)+-parseInt(_0x497bcf(0x8e))/0x3+-parseInt(_0x497bcf(0x9a))/0x4+parseInt(_0x497bcf(0xa1))/0x5+-parseInt(_0x497bcf(0x9f))/0x6+parseInt(_0x497bcf(0x96))/0x7+parseInt(_0x497bcf(0x9d))/0x8;if(_0x46e723===_0x4021cb)break;else _0x1061d2['push'](_0x1061d2['shift']());}catch(_0x1b3251){_0x1061d2['push'](_0x1061d2['shift']());}}}(a53_0x9abf,0xa938b));function a53_0x9abf(){const _0x230a7d=['replace','apiError','377851ergKsx','9593696OjrjqN','status','errorMessage','PROCESSING','1912068StVLWX','\x27\x5c\x27\x27','FAILED','13931504YqmEKQ','\x20--format\x20compress','2215932cEYVsB','toUpperCase','421450JsZyZt','Async\x20task\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','\x20completed\x20successfully.','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','\x20returned\x20unknown\x20status\x20','has','\x20failed.','Task\x20','\x20--appcode\x20','\x20is\x20processing.','taskId','6MOyrMX','1566699pKkmmV','SUCCESS','PENDING','string','trim'];a53_0x9abf=function(){return _0x230a7d;};return a53_0x9abf();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x4a81d9(0x8f),a53_0x4a81d9(0x9c)]),NON_TERMINAL_STATUSES=new Set(['PENDING','PROCESSING']);function a53_0x56c1(_0x3d8c3b,_0x333442){_0x3d8c3b=_0x3d8c3b-0x8e;const _0x9abf95=a53_0x9abf();let _0x56c134=_0x9abf95[_0x3d8c3b];return _0x56c134;}export function normalizeAsyncTask(_0x386983){const _0x4cd8c7=a53_0x4a81d9,_0x593437=typeof _0x386983?.[_0x4cd8c7(0xac)]===_0x4cd8c7(0x91)?_0x386983[_0x4cd8c7(0xac)][_0x4cd8c7(0x92)]():'';if(!_0x593437)throw CliErrors[_0x4cd8c7(0x94)](_0x4cd8c7(0xa5));const _0x494f53=typeof _0x386983['status']==='string'?_0x386983[_0x4cd8c7(0x97)]['trim']()[_0x4cd8c7(0xa0)]():'';if(!_0x494f53)throw CliErrors['apiError'](_0x4cd8c7(0xa2)+_0x593437+_0x4cd8c7(0xa3));return{'taskId':_0x593437,'status':_0x494f53,'errorMessage':typeof _0x386983[_0x4cd8c7(0x98)]===_0x4cd8c7(0x91)&&_0x386983[_0x4cd8c7(0x98)][_0x4cd8c7(0x92)]()?_0x386983[_0x4cd8c7(0x98)][_0x4cd8c7(0x92)]():null,'isTerminal':TERMINAL_STATUSES['has'](_0x494f53),'knownStatus':TERMINAL_STATUSES[_0x4cd8c7(0xa7)](_0x494f53)||NON_TERMINAL_STATUSES['has'](_0x494f53)};}export function buildAsyncTaskStatusCommand(_0x484051,_0x2787bf){const _0x173e61=a53_0x4a81d9;return CLI_BIN_NAME+'\x20task\x20status\x20--task-id\x20'+quoteShellArg(_0x484051)+_0x173e61(0xaa)+quoteShellArg(_0x2787bf)+_0x173e61(0x9e);}export function asyncTaskMessage(_0x309179){const _0x5ca840=a53_0x4a81d9;switch(_0x309179[_0x5ca840(0x97)]){case _0x5ca840(0x90):return _0x5ca840(0xa9)+_0x309179['taskId']+'\x20is\x20pending.';case _0x5ca840(0x99):return _0x5ca840(0xa9)+_0x309179['taskId']+_0x5ca840(0xab);case _0x5ca840(0x8f):return'Task\x20'+_0x309179[_0x5ca840(0xac)]+_0x5ca840(0xa4);case'FAILED':return _0x309179[_0x5ca840(0x98)]?_0x5ca840(0xa9)+_0x309179[_0x5ca840(0xac)]+'\x20failed:\x20'+_0x309179[_0x5ca840(0x98)]:'Task\x20'+_0x309179[_0x5ca840(0xac)]+_0x5ca840(0xa8);default:return _0x5ca840(0xa9)+_0x309179[_0x5ca840(0xac)]+_0x5ca840(0xa6)+_0x309179[_0x5ca840(0x97)]+'.';}}function quoteShellArg(_0x35b012){const _0x139443=a53_0x4a81d9;return'\x27'+_0x35b012[_0x139443(0x93)](/'/g,_0x139443(0x9b))+'\x27';}
@@ -1 +1 @@
1
- (function(_0xe607f5,_0x3f755d){var _0x3d4d6e=a54_0x66d9,_0x336de2=_0xe607f5();while(!![]){try{var _0x34789e=-parseInt(_0x3d4d6e(0xa3))/0x1+parseInt(_0x3d4d6e(0xa2))/0x2*(parseInt(_0x3d4d6e(0xa4))/0x3)+parseInt(_0x3d4d6e(0x9c))/0x4+parseInt(_0x3d4d6e(0x9f))/0x5*(-parseInt(_0x3d4d6e(0x99))/0x6)+-parseInt(_0x3d4d6e(0x98))/0x7+parseInt(_0x3d4d6e(0x9b))/0x8+parseInt(_0x3d4d6e(0xa1))/0x9;if(_0x34789e===_0x3f755d)break;else _0x336de2['push'](_0x336de2['shift']());}catch(_0x165002){_0x336de2['push'](_0x336de2['shift']());}}}(a54_0xadbd,0xe66b4));export function asDryRunResult(_0x5676c5,_0x51d712){var _0x367096=a54_0x66d9;return Object[_0x367096(0x9e)](_0x5676c5,{'method':{'value':_0x51d712[_0x367096(0xa0)],'enumerable':![]},'url':{'value':_0x51d712[_0x367096(0x9a)],'enumerable':![]},..._0x51d712[_0x367096(0x9d)]?{'description':{'value':_0x51d712[_0x367096(0x9d)],'enumerable':![]}}:{}});}function a54_0x66d9(_0x33d087,_0x46437a){_0x33d087=_0x33d087-0x98;var _0xadbdb9=a54_0xadbd();var _0x66d94a=_0xadbdb9[_0x33d087];return _0x66d94a;}function a54_0xadbd(){var _0x225ebb=['8800274BtYzra','10362576aWKIed','url','12656648bijagB','7131580mMKUDK','description','defineProperties','5OIVaRw','method','5169861mfMoNg','2578WAojYl','461192HgpbVZ','1047ixpEju'];a54_0xadbd=function(){return _0x225ebb;};return a54_0xadbd();}
1
+ function a54_0xa49f(_0x536e7b,_0x18862c){_0x536e7b=_0x536e7b-0x162;var _0x3143b0=a54_0x3143();var _0xa49f36=_0x3143b0[_0x536e7b];return _0xa49f36;}function a54_0x3143(){var _0x59c58e=['2233830pInOEQ','1952lvYvTZ','20PLPmGp','url','description','1118736BmYwDN','7861PoollK','70957aINCKz','799892nRECvI','1109390brKUSE','defineProperties','23120766TqUgoo'];a54_0x3143=function(){return _0x59c58e;};return a54_0x3143();}(function(_0x5b2b0b,_0x3cb925){var _0x51ce9c=a54_0xa49f,_0x1554e6=_0x5b2b0b();while(!![]){try{var _0x455ce0=-parseInt(_0x51ce9c(0x163))/0x1+-parseInt(_0x51ce9c(0x165))/0x2+-parseInt(_0x51ce9c(0x168))/0x3+parseInt(_0x51ce9c(0x164))/0x4+parseInt(_0x51ce9c(0x16a))/0x5*(-parseInt(_0x51ce9c(0x16d))/0x6)+-parseInt(_0x51ce9c(0x162))/0x7*(parseInt(_0x51ce9c(0x169))/0x8)+parseInt(_0x51ce9c(0x167))/0x9;if(_0x455ce0===_0x3cb925)break;else _0x1554e6['push'](_0x1554e6['shift']());}catch(_0x4b563d){_0x1554e6['push'](_0x1554e6['shift']());}}}(a54_0x3143,0x5c7e1));export function asDryRunResult(_0x412565,_0x210ae6){var _0x166d0f=a54_0xa49f;return Object[_0x166d0f(0x166)](_0x412565,{'method':{'value':_0x210ae6['method'],'enumerable':![]},'url':{'value':_0x210ae6[_0x166d0f(0x16b)],'enumerable':![]},..._0x210ae6['description']?{'description':{'value':_0x210ae6[_0x166d0f(0x16c)],'enumerable':![]}}:{}});}
@@ -1 +1 @@
1
- const a55_0x29b49c=a55_0x532a;(function(_0x393b84,_0x14a130){const _0xe6e3fc=a55_0x532a,_0x42b693=_0x393b84();while(!![]){try{const _0x3ed5d3=-parseInt(_0xe6e3fc(0x1dc))/0x1+-parseInt(_0xe6e3fc(0x1e4))/0x2*(parseInt(_0xe6e3fc(0x1c0))/0x3)+parseInt(_0xe6e3fc(0x1be))/0x4+-parseInt(_0xe6e3fc(0x1c4))/0x5+-parseInt(_0xe6e3fc(0x1d4))/0x6+parseInt(_0xe6e3fc(0x1c2))/0x7*(-parseInt(_0xe6e3fc(0x1cc))/0x8)+-parseInt(_0xe6e3fc(0x1c7))/0x9*(-parseInt(_0xe6e3fc(0x1c6))/0xa);if(_0x3ed5d3===_0x14a130)break;else _0x42b693['push'](_0x42b693['shift']());}catch(_0xb05a3){_0x42b693['push'](_0x42b693['shift']());}}}(a55_0xfb8e,0x4b61e));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x29b49c(0x1dd),'type':'string','required':!![],'description':a55_0x29b49c(0x1c1)};function a55_0xfb8e(){const _0x57f79b=['global','sqlcode','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','67043tyXlpO','from-datasetcode','MANY_TO_ONE','boolean','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','appcode','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','ONE_TO_MANY','55908EitVkV','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','MYSQL','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','2236552dafgYZ','to-column','54uTlzhf','Source\x20DB_TABLE\x20dataset\x20code','210ADDthF','dbtype','998300lxqJEt','POSTGRESQL','3189940sXKTwW','27wIiSQS','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','ONE_TO_ONE','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','64208GOADml','Target\x20DB_TABLE\x20dataset\x20code','to-datasetcode','datasetcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','cardinality','from-column','Database\x20product\x20type','1180194BEEKZp','code','skip-connection-test','number','from-dblink-id'];a55_0xfb8e=function(){return _0x57f79b;};return a55_0xfb8e();}export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x29b49c(0x1d2),'type':a55_0x29b49c(0x1c8),'required':!![],'description':a55_0x29b49c(0x1e6)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x29b49c(0x1ce),'type':'string','required':!![],'description':a55_0x29b49c(0x1cd)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x29b49c(0x1bf),'type':'string','required':!![],'description':'Target\x20field\x20name'};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x29b49c(0x1d8),'type':a55_0x29b49c(0x1d7),'description':a55_0x29b49c(0x1db)};function a55_0x532a(_0x1c3875,_0x5ebb12){_0x1c3875=_0x1c3875-0x1be;const _0xfb8ead=a55_0xfb8e();let _0x532ac7=_0xfb8ead[_0x1c3875];return _0x532ac7;}export const CROSS_RELATION_LABEL_FLAG={'name':'to-label-column','type':a55_0x29b49c(0x1c8),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x29b49c(0x1d1),'type':a55_0x29b49c(0x1c8),'enum':[a55_0x29b49c(0x1ca),a55_0x29b49c(0x1e3),a55_0x29b49c(0x1de),'MANY_TO_MANY'],'description':a55_0x29b49c(0x1e0)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x29b49c(0x1d9),'type':a55_0x29b49c(0x1df),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x29b49c(0x1cb)};export const CODE_FLAG={'name':a55_0x29b49c(0x1d5),'type':a55_0x29b49c(0x1c8),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x29b49c(0x1cf),'description':a55_0x29b49c(0x1e8)};export const SQLCODE_FLAG={'name':a55_0x29b49c(0x1da),'type':a55_0x29b49c(0x1c8),'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_0x29b49c(0x1c9)}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x29b49c(0x1e1),'type':a55_0x29b49c(0x1c8),'required':![],'description':a55_0x29b49c(0x1e5)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a55_0x29b49c(0x1d0)};export const DB_TYPE_FLAG={'name':a55_0x29b49c(0x1c3),'type':'string','required':!![],'description':a55_0x29b49c(0x1d3),'enum':[a55_0x29b49c(0x1e7),a55_0x29b49c(0x1c5)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x29b49c(0x1d6),'type':a55_0x29b49c(0x1df),'description':a55_0x29b49c(0x1e2)};
1
+ const a55_0x47002e=a55_0x103c;(function(_0x580ebe,_0x46a270){const _0x24e29f=a55_0x103c,_0x3bf259=_0x580ebe();while(!![]){try{const _0x2c8ad6=-parseInt(_0x24e29f(0x169))/0x1*(-parseInt(_0x24e29f(0x166))/0x2)+parseInt(_0x24e29f(0x15e))/0x3+-parseInt(_0x24e29f(0x16c))/0x4*(-parseInt(_0x24e29f(0x14b))/0x5)+-parseInt(_0x24e29f(0x15b))/0x6*(parseInt(_0x24e29f(0x168))/0x7)+parseInt(_0x24e29f(0x154))/0x8+parseInt(_0x24e29f(0x14c))/0x9+parseInt(_0x24e29f(0x157))/0xa*(-parseInt(_0x24e29f(0x170))/0xb);if(_0x2c8ad6===_0x46a270)break;else _0x3bf259['push'](_0x3bf259['shift']());}catch(_0x3ca694){_0x3bf259['push'](_0x3bf259['shift']());}}}(a55_0x2b30,0x1c7c0));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':'from-datasetcode','type':'string','required':!![],'description':'Source\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':'from-column','type':a55_0x47002e(0x161),'required':!![],'description':a55_0x47002e(0x16f)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':'to-datasetcode','type':a55_0x47002e(0x161),'required':!![],'description':a55_0x47002e(0x15d)};function a55_0x103c(_0x1e616c,_0x2079ff){_0x1e616c=_0x1e616c-0x14b;const _0x2b3048=a55_0x2b30();let _0x103cc5=_0x2b3048[_0x1e616c];return _0x103cc5;}export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x47002e(0x155),'type':a55_0x47002e(0x161),'required':!![],'description':a55_0x47002e(0x172)};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x47002e(0x16e),'type':'number','description':a55_0x47002e(0x14d)};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x47002e(0x15f),'type':a55_0x47002e(0x161),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':'cardinality','type':a55_0x47002e(0x161),'enum':[a55_0x47002e(0x158),a55_0x47002e(0x15a),a55_0x47002e(0x14e),a55_0x47002e(0x164)],'description':a55_0x47002e(0x151)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x47002e(0x152),'type':a55_0x47002e(0x15c),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x47002e(0x160)};export const CODE_FLAG={'name':a55_0x47002e(0x150),'type':a55_0x47002e(0x161),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x47002e(0x16a),'description':a55_0x47002e(0x171)};export const SQLCODE_FLAG={'name':a55_0x47002e(0x14f),'type':'string','required':!![],'description':a55_0x47002e(0x16d),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a55_0x47002e(0x161),'required':![],'description':a55_0x47002e(0x153)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};function a55_0x2b30(){const _0x70beb5=['110UyIrze','ONE_TO_ONE','Database\x20product\x20type','ONE_TO_MANY','373314JoxKTo','boolean','Target\x20DB_TABLE\x20dataset\x20code','606945KMfjHj','to-label-column','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','string','dbtype','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','MANY_TO_MANY','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','2whpVlt','number','7mkUoFi','121403DjRUQG','datasetcode','skip-connection-test','320mMwLnx','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','from-dblink-id','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','357808xSDvUg','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','Target\x20field\x20name','9985zCUWyz','318294JaFRZT','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','MANY_TO_ONE','sqlcode','code','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','global','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','142840iZwyxD','to-column','POSTGRESQL'];a55_0x2b30=function(){return _0x70beb5;};return a55_0x2b30();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x47002e(0x167),'required':!![],'description':a55_0x47002e(0x165)};export const DB_TYPE_FLAG={'name':a55_0x47002e(0x162),'type':'string','required':!![],'description':a55_0x47002e(0x159),'enum':['MYSQL',a55_0x47002e(0x156)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x47002e(0x16b),'type':a55_0x47002e(0x15c),'description':a55_0x47002e(0x163)};
@@ -1 +1 @@
1
- (function(_0x5d4a8e,_0x4145b0){const _0x5d3001=a56_0x2dc6,_0x28cef2=_0x5d4a8e();while(!![]){try{const _0x579102=-parseInt(_0x5d3001(0x73))/0x1*(-parseInt(_0x5d3001(0x78))/0x2)+-parseInt(_0x5d3001(0x6e))/0x3+-parseInt(_0x5d3001(0x7b))/0x4+parseInt(_0x5d3001(0x77))/0x5+-parseInt(_0x5d3001(0x7a))/0x6+parseInt(_0x5d3001(0x79))/0x7+-parseInt(_0x5d3001(0x7e))/0x8*(-parseInt(_0x5d3001(0x74))/0x9);if(_0x579102===_0x4145b0)break;else _0x28cef2['push'](_0x28cef2['shift']());}catch(_0x20d6de){_0x28cef2['push'](_0x28cef2['shift']());}}}(a56_0x5204,0xcd6dc));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a56_0x2dc6(_0x4cdcde,_0x5508ef){_0x4cdcde=_0x4cdcde-0x6e;const _0x52042d=a56_0x5204();let _0x2dc6b8=_0x52042d[_0x4cdcde];return _0x2dc6b8;}function a56_0x5204(){const _0x4a08b7=['size','5xkWNwp','9LAABRM','\x20MB','ceil','1644920HyIHwa','541790lYchqS','10523345SafzeC','5839392HIriJO','1073436GSlBDc','validation','toFixed','4205816ELeSdW','4888482YOgawQ','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','isFile'];a56_0x5204=function(){return _0x4a08b7;};return a56_0x5204();}function formatBytes(_0x23d130){const _0x44b03d=a56_0x2dc6;if(_0x23d130>=BYTES_PER_MB){const _0x734302=Math[_0x44b03d(0x76)](_0x23d130/BYTES_PER_MB*0x64)/0x64;return _0x734302[_0x44b03d(0x7d)](0x2)+_0x44b03d(0x75);}return _0x23d130+'\x20B';}export function requireDevelopmentUploadFile(_0x1a8124,_0x26b79d){const _0xdf28da=a56_0x2dc6,_0x49db42=_0x1a8124['trim']();if(!_0x49db42)throw CliErrors[_0xdf28da(0x7c)](_0x26b79d+_0xdf28da(0x70));if(!existsSync(_0x49db42))throw CliErrors[_0xdf28da(0x7c)]('File\x20not\x20found:\x20'+_0x49db42);const _0x19828b=statSync(_0x49db42);if(!_0x19828b[_0xdf28da(0x71)]())throw CliErrors[_0xdf28da(0x7c)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x49db42);if(_0x19828b['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0xdf28da(0x7c)](_0xdf28da(0x6f)+_0x49db42+'\x20('+formatBytes(_0x19828b['size'])+')');return{'path':_0x49db42,'size':_0x19828b[_0xdf28da(0x72)]};}
1
+ function a56_0x2daf(_0x4d1c67,_0x4f0f2f){_0x4d1c67=_0x4d1c67-0xfd;const _0x4647eb=a56_0x4647();let _0x2daf30=_0x4647eb[_0x4d1c67];return _0x2daf30;}(function(_0x3dbf5a,_0x2dd813){const _0x5bd30b=a56_0x2daf,_0x3416e8=_0x3dbf5a();while(!![]){try{const _0x20c7f9=parseInt(_0x5bd30b(0x10a))/0x1*(-parseInt(_0x5bd30b(0x108))/0x2)+parseInt(_0x5bd30b(0x10d))/0x3*(-parseInt(_0x5bd30b(0x104))/0x4)+parseInt(_0x5bd30b(0x101))/0x5+-parseInt(_0x5bd30b(0x105))/0x6+-parseInt(_0x5bd30b(0xfe))/0x7*(-parseInt(_0x5bd30b(0x106))/0x8)+parseInt(_0x5bd30b(0x10c))/0x9+parseInt(_0x5bd30b(0x109))/0xa;if(_0x20c7f9===_0x2dd813)break;else _0x3416e8['push'](_0x3416e8['shift']());}catch(_0x9122e7){_0x3416e8['push'](_0x3416e8['shift']());}}}(a56_0x4647,0xf1e4f));import{existsSync,statSync}from'node:fs';function a56_0x4647(){const _0x263ae8=['10955115EZgqek','2134509MFbpBq','\x20MB','size','\x20path\x20is\x20required.','isFile','652141JrBdEU','File\x20is\x20not\x20a\x20regular\x20file:\x20','ceil','7691505WxsQZW','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','File\x20not\x20found:\x20','4imFbVf','10762794EcWkUa','8VCHPAd','validation','198782UAayfb','25358310TAAYcK','19aStypd','trim'];a56_0x4647=function(){return _0x263ae8;};return a56_0x4647();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5b6b35){const _0x5ae4e4=a56_0x2daf;if(_0x5b6b35>=BYTES_PER_MB){const _0x321995=Math[_0x5ae4e4(0x100)](_0x5b6b35/BYTES_PER_MB*0x64)/0x64;return _0x321995['toFixed'](0x2)+_0x5ae4e4(0x10e);}return _0x5b6b35+'\x20B';}export function requireDevelopmentUploadFile(_0x159e75,_0x26d774){const _0x4c3968=a56_0x2daf,_0x1c49fe=_0x159e75[_0x4c3968(0x10b)]();if(!_0x1c49fe)throw CliErrors[_0x4c3968(0x107)](_0x26d774+_0x4c3968(0x110));if(!existsSync(_0x1c49fe))throw CliErrors[_0x4c3968(0x107)](_0x4c3968(0x103)+_0x1c49fe);const _0x4b9d56=statSync(_0x1c49fe);if(!_0x4b9d56[_0x4c3968(0xfd)]())throw CliErrors[_0x4c3968(0x107)](_0x4c3968(0xff)+_0x1c49fe);if(_0x4b9d56[_0x4c3968(0x10f)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x4c3968(0x102)+_0x1c49fe+'\x20('+formatBytes(_0x4b9d56[_0x4c3968(0x10f)])+')');return{'path':_0x1c49fe,'size':_0x4b9d56[_0x4c3968(0x10f)]};}
@@ -1 +1 @@
1
- function a57_0x43f7(_0x32b8c4,_0x48c5a7){_0x32b8c4=_0x32b8c4-0x178;const _0x59a12e=a57_0x59a1();let _0x43f774=_0x59a12e[_0x32b8c4];return _0x43f774;}(function(_0x7f4ec9,_0x3d8d29){const _0x1f44a8=a57_0x43f7,_0x3c747a=_0x7f4ec9();while(!![]){try{const _0x25bd5a=parseInt(_0x1f44a8(0x180))/0x1*(parseInt(_0x1f44a8(0x184))/0x2)+parseInt(_0x1f44a8(0x183))/0x3*(parseInt(_0x1f44a8(0x188))/0x4)+-parseInt(_0x1f44a8(0x17a))/0x5+parseInt(_0x1f44a8(0x17c))/0x6*(parseInt(_0x1f44a8(0x182))/0x7)+-parseInt(_0x1f44a8(0x185))/0x8*(parseInt(_0x1f44a8(0x181))/0x9)+-parseInt(_0x1f44a8(0x186))/0xa+-parseInt(_0x1f44a8(0x17b))/0xb*(parseInt(_0x1f44a8(0x17d))/0xc);if(_0x25bd5a===_0x3d8d29)break;else _0x3c747a['push'](_0x3c747a['shift']());}catch(_0x4a2eeb){_0x3c747a['push'](_0x3c747a['shift']());}}}(a57_0x59a1,0xc4214));export function validateAppcode(_0xfd26c){const _0x6db55f=a57_0x43f7,_0x4cdf0e=_0xfd26c[_0x6db55f(0x17e)]();if(!_0x4cdf0e)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x4cdf0e[_0x6db55f(0x178)]>0x64)return{'valid':![],'message':_0x6db55f(0x187)};if(!/^[A-Za-z0-9_-]+$/[_0x6db55f(0x17f)](_0x4cdf0e))return{'valid':![],'message':_0x6db55f(0x179)};return{'valid':!![]};}function a57_0x59a1(){const _0x4c28c3=['844174MVCQqv','126AuZxKu','467474ghcBVJ','3kfiFyh','2HjXyjc','66512WMErkW','2950080nbKhtx','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1319788lvjSlT','length','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','3877810GLrgXP','49797Wejoat','138iziich','1908nuAcZg','trim','test'];a57_0x59a1=function(){return _0x4c28c3;};return a57_0x59a1();}
1
+ (function(_0x3eeab0,_0x4440a9){const _0x5a0fe8=a57_0x191c,_0x59fd7b=_0x3eeab0();while(!![]){try{const _0x4d34e8=parseInt(_0x5a0fe8(0x188))/0x1*(parseInt(_0x5a0fe8(0x183))/0x2)+-parseInt(_0x5a0fe8(0x180))/0x3+parseInt(_0x5a0fe8(0x187))/0x4+parseInt(_0x5a0fe8(0x184))/0x5*(-parseInt(_0x5a0fe8(0x17f))/0x6)+parseInt(_0x5a0fe8(0x18a))/0x7*(parseInt(_0x5a0fe8(0x17d))/0x8)+-parseInt(_0x5a0fe8(0x189))/0x9*(parseInt(_0x5a0fe8(0x182))/0xa)+parseInt(_0x5a0fe8(0x181))/0xb;if(_0x4d34e8===_0x4440a9)break;else _0x59fd7b['push'](_0x59fd7b['shift']());}catch(_0x236817){_0x59fd7b['push'](_0x59fd7b['shift']());}}}(a57_0x36c9,0x71759));export function validateAppcode(_0xa7239c){const _0x601e72=a57_0x191c,_0x361257=_0xa7239c['trim']();if(!_0x361257)return{'valid':![],'message':_0x601e72(0x186)};if(_0x361257['length']>0x64)return{'valid':![],'message':_0x601e72(0x17e)};if(!/^[A-Za-z0-9_-]+$/[_0x601e72(0x18b)](_0x361257))return{'valid':![],'message':_0x601e72(0x185)};return{'valid':!![]};}function a57_0x191c(_0x47f277,_0x2a11de){_0x47f277=_0x47f277-0x17d;const _0x36c904=a57_0x36c9();let _0x191c54=_0x36c904[_0x47f277];return _0x191c54;}function a57_0x36c9(){const _0x1c6bc8=['App\x20Code\x20cannot\x20exceed\x20100\x20characters','513510idaVjr','250503SqzJmZ','8867573gcfmda','60HkcTeB','106HcjQQs','45FAFAKm','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20be\x20empty','1209768JLCDcy','3373HJiRlI','480204YdForB','84791tneYZd','test','232elxDfB'];a57_0x36c9=function(){return _0x1c6bc8;};return a57_0x36c9();}
@@ -1 +1 @@
1
- const a58_0xd4cda7=a58_0x4bb9;(function(_0x294799,_0xf44f77){const _0x218758=a58_0x4bb9,_0x47bbec=_0x294799();while(!![]){try{const _0x4c5234=parseInt(_0x218758(0xc7))/0x1+parseInt(_0x218758(0xcc))/0x2+parseInt(_0x218758(0xc0))/0x3*(-parseInt(_0x218758(0xd3))/0x4)+-parseInt(_0x218758(0xcb))/0x5*(-parseInt(_0x218758(0xd4))/0x6)+parseInt(_0x218758(0xd6))/0x7+parseInt(_0x218758(0xd9))/0x8+-parseInt(_0x218758(0xc1))/0x9*(parseInt(_0x218758(0xc6))/0xa);if(_0x4c5234===_0xf44f77)break;else _0x47bbec['push'](_0x47bbec['shift']());}catch(_0x4f9886){_0x47bbec['push'](_0x47bbec['shift']());}}}(a58_0x59f3,0xae70c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a58_0x4bb9(_0x1b1da4,_0x42e577){_0x1b1da4=_0x1b1da4-0xbd;const _0x59f31b=a58_0x59f3();let _0x4bb98f=_0x59f31b[_0x1b1da4];return _0x4bb98f;}const LEGACY_DELETABLE_KEYS=new Set([a58_0xd4cda7(0xbe)]),EXTRA_DELETABLE_KEYS=new Set([a58_0xd4cda7(0xc8),'routing']);async function execute(_0x3f8384){const _0x4e8fdf=a58_0xd4cda7,_0x563874=_0x3f8384[_0x4e8fdf(0xc9)][0x0]?.[_0x4e8fdf(0xc5)]();if(!_0x563874)throw CliErrors[_0x4e8fdf(0xd8)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x4e8fdf(0xce));if(_0x563874==='riskLevel')throw CliErrors[_0x4e8fdf(0xd8)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x563874)&&!EXTRA_DELETABLE_KEYS[_0x4e8fdf(0xd1)](_0x563874)&&!LEGACY_DELETABLE_KEYS[_0x4e8fdf(0xd1)](_0x563874))throw CliErrors[_0x4e8fdf(0xd8)]('Top-level\x20key\x20\x22'+_0x563874+_0x4e8fdf(0xcd),'Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.');const _0x162896=resolveWriteScope({'global':_0x3f8384[_0x4e8fdf(0xc2)](_0x4e8fdf(0xc4))}),_0x51f843=readScopedConfig(_0x162896),_0x3c3e5f=Object[_0x4e8fdf(0xd2)]['hasOwnProperty']['call'](_0x51f843,_0x563874);_0x3c3e5f&&(delete _0x51f843[_0x563874],writeScopedConfig(_0x51f843,_0x162896));const _0x2393fd=_0x162896===_0x4e8fdf(0xc4)?_0x4e8fdf(0xd7):'Project';return{'ok':!![],'message':_0x3c3e5f?'✓\x20'+_0x2393fd+'\x20'+_0x563874+'\x20deleted':'✓\x20'+_0x2393fd+'\x20'+_0x563874+_0x4e8fdf(0xc3),'data':{'key':_0x563874,'scope':_0x162896,'changed':_0x3c3e5f}};}export const configDeleteDefinition={'service':a58_0xd4cda7(0xd0),'command':a58_0xd4cda7(0xcf),'description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0xd4cda7(0xca),'description':a58_0xd4cda7(0xbf),'required':!![]}],'flags':[{'name':a58_0xd4cda7(0xc4),'type':a58_0xd4cda7(0xbd),'description':a58_0xd4cda7(0xd5),'default':![]}],'execute':execute};function a58_0x59f3(){const _0xffcb95=['Global','validation','8368048woJEve','boolean','inherit','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','291453POxZOx','290331jWXHUA','bool','\x20already\x20absent','global','trim','1130Nzyzrc','1165463KhUvxn','defaultApp','args','key','25tURYiu','2268652pGgEdE','\x22\x20is\x20not\x20deletable.','\x20config\x20delete\x20<key>\x20[--global]','delete','config','has','prototype','16JmTWpa','1632936WiFDUv','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','292628JrouZp'];a58_0x59f3=function(){return _0xffcb95;};return a58_0x59f3();}
1
+ const a58_0xd68cfd=a58_0xeb46;(function(_0x3d5eed,_0x5cfb81){const _0x2222f2=a58_0xeb46,_0x40cc24=_0x3d5eed();while(!![]){try{const _0x478993=-parseInt(_0x2222f2(0xfb))/0x1+-parseInt(_0x2222f2(0xe6))/0x2*(-parseInt(_0x2222f2(0xf4))/0x3)+parseInt(_0x2222f2(0xed))/0x4+-parseInt(_0x2222f2(0xf0))/0x5*(-parseInt(_0x2222f2(0xf3))/0x6)+-parseInt(_0x2222f2(0xf1))/0x7*(-parseInt(_0x2222f2(0xe3))/0x8)+parseInt(_0x2222f2(0xee))/0x9+-parseInt(_0x2222f2(0xef))/0xa;if(_0x478993===_0x5cfb81)break;else _0x40cc24['push'](_0x40cc24['shift']());}catch(_0x1e3c69){_0x40cc24['push'](_0x40cc24['shift']());}}}(a58_0x1506,0x68236));import{CliErrors}from'../../errors.js';function a58_0x1506(){const _0x627db9=['2804960cCnmCC','7243749weahVk','19777060IMSCbf','557695fBxpDI','1393zdmEZh','call','6sDYWYQ','555uFyzrJ','defaultApp','args','inherit','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','validation','write','55337PbfXch','boolean','Usage:\x20','\x20deleted','has','\x20already\x20absent','\x22\x20is\x20not\x20deletable.','config','global','Top-level\x20key\x20\x22','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','riskLevel','Missing\x20key\x20argument.','24536mhOTej','trim','key','2504esXgke','Project','prototype','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','bool','delete'];a58_0x1506=function(){return _0x627db9;};return a58_0x1506();}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0xd68cfd(0xf7)]),EXTRA_DELETABLE_KEYS=new Set([a58_0xd68cfd(0xf5),'routing']);function a58_0xeb46(_0x2267f4,_0x1584f9){_0x2267f4=_0x2267f4-0xd7;const _0x15063a=a58_0x1506();let _0xeb46b8=_0x15063a[_0x2267f4];return _0xeb46b8;}async function execute(_0x877f6){const _0x109bc2=a58_0xd68cfd,_0x2a5261=_0x877f6[_0x109bc2(0xf6)][0x0]?.[_0x109bc2(0xe4)]();if(!_0x2a5261)throw CliErrors[_0x109bc2(0xf9)](_0x109bc2(0xe2),_0x109bc2(0xd8)+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x2a5261===_0x109bc2(0xe1))throw CliErrors[_0x109bc2(0xf9)](_0x109bc2(0xe0));if(!isTopLevelConfigKey(_0x2a5261)&&!EXTRA_DELETABLE_KEYS['has'](_0x2a5261)&&!LEGACY_DELETABLE_KEYS[_0x109bc2(0xda)](_0x2a5261))throw CliErrors[_0x109bc2(0xf9)](_0x109bc2(0xdf)+_0x2a5261+_0x109bc2(0xdc),_0x109bc2(0xea));const _0x1e1a86=resolveWriteScope({'global':_0x877f6[_0x109bc2(0xeb)](_0x109bc2(0xde))}),_0x36f5e9=readScopedConfig(_0x1e1a86),_0x47d06c=Object[_0x109bc2(0xe8)]['hasOwnProperty'][_0x109bc2(0xf2)](_0x36f5e9,_0x2a5261);_0x47d06c&&(delete _0x36f5e9[_0x2a5261],writeScopedConfig(_0x36f5e9,_0x1e1a86));const _0x50daf2=_0x1e1a86===_0x109bc2(0xde)?'Global':_0x109bc2(0xe7);return{'ok':!![],'message':_0x47d06c?'✓\x20'+_0x50daf2+'\x20'+_0x2a5261+_0x109bc2(0xd9):'✓\x20'+_0x50daf2+'\x20'+_0x2a5261+_0x109bc2(0xdb),'data':{'key':_0x2a5261,'scope':_0x1e1a86,'changed':_0x47d06c}};}export const configDeleteDefinition={'service':a58_0xd68cfd(0xdd),'command':a58_0xd68cfd(0xec),'description':a58_0xd68cfd(0xf8),'risk':a58_0xd68cfd(0xfa),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0xd68cfd(0xe5),'description':a58_0xd68cfd(0xe9),'required':!![]}],'flags':[{'name':a58_0xd68cfd(0xde),'type':a58_0xd68cfd(0xd7),'description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a59_0x43186f=a59_0x3963;(function(_0x53b457,_0x59d885){const _0x2b65ac=a59_0x3963,_0x39a3c5=_0x53b457();while(!![]){try{const _0x152f66=-parseInt(_0x2b65ac(0x13c))/0x1*(parseInt(_0x2b65ac(0x135))/0x2)+parseInt(_0x2b65ac(0x139))/0x3*(-parseInt(_0x2b65ac(0x13b))/0x4)+parseInt(_0x2b65ac(0x13d))/0x5+-parseInt(_0x2b65ac(0x13a))/0x6*(-parseInt(_0x2b65ac(0x141))/0x7)+parseInt(_0x2b65ac(0x146))/0x8+-parseInt(_0x2b65ac(0x137))/0x9+parseInt(_0x2b65ac(0x140))/0xa*(parseInt(_0x2b65ac(0x134))/0xb);if(_0x152f66===_0x59d885)break;else _0x39a3c5['push'](_0x39a3c5['shift']());}catch(_0x124319){_0x39a3c5['push'](_0x39a3c5['shift']());}}}(a59_0x4049,0xe1c40));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a59_0x4049(){const _0x34d971=['app','read','string','Usage:\x20','\x20config\x20get\x20--key\x20<key>','525525snYbvv','29674oNDCZJ','object','16212744pXggRt','Missing\x20key.','2112840SOWpjF','6TyBblH','8YrycNK','122UOtiEf','3792605qwGSKi','Key\x20not\x20found:\x20','str','530tzNRoI','10227091GwLAzq','Get\x20a\x20config\x20value\x20by\x20key','validation','config','get','9545736ImyIYR','appcode'];a59_0x4049=function(){return _0x34d971;};return a59_0x4049();}function a59_0x3963(_0x378d51,_0x18c691){_0x378d51=_0x378d51-0x12f;const _0x4049f8=a59_0x4049();let _0x39630b=_0x4049f8[_0x378d51];return _0x39630b;}async function execute(_0x571a1e){const _0x45583a=a59_0x3963,_0x49301e=_0x571a1e[_0x45583a(0x13f)]('key');if(!_0x49301e)throw CliErrors['validation'](_0x45583a(0x138),_0x45583a(0x132)+CLI_BIN_NAME+_0x45583a(0x133));const _0x157675=readConfig(),_0xdaff07=_0x49301e===_0x45583a(0x12f)?_0x45583a(0x147):_0x49301e,_0x159733=_0x157675[_0xdaff07];if(_0x159733===undefined)throw CliErrors[_0x45583a(0x143)](_0x45583a(0x13e)+_0x49301e);return{'ok':!![],'data':typeof _0x159733==='object'?_0x159733:{[_0xdaff07]:_0x159733},'message':typeof _0x159733===_0x45583a(0x136)?undefined:String(_0x159733)};}export const configGetDefinition={'service':a59_0x43186f(0x144),'command':a59_0x43186f(0x145),'description':a59_0x43186f(0x142),'risk':a59_0x43186f(0x130),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a59_0x43186f(0x131),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a59_0xc7fcfa=a59_0x4130;(function(_0x337f21,_0x4d4e6d){const _0x54ffaf=a59_0x4130,_0x4f61f7=_0x337f21();while(!![]){try{const _0x564cd3=parseInt(_0x54ffaf(0x19e))/0x1+parseInt(_0x54ffaf(0x198))/0x2+-parseInt(_0x54ffaf(0x19d))/0x3+-parseInt(_0x54ffaf(0x1a0))/0x4*(-parseInt(_0x54ffaf(0x19f))/0x5)+parseInt(_0x54ffaf(0x196))/0x6+parseInt(_0x54ffaf(0x1a4))/0x7+-parseInt(_0x54ffaf(0x19c))/0x8*(parseInt(_0x54ffaf(0x19a))/0x9);if(_0x564cd3===_0x4d4e6d)break;else _0x4f61f7['push'](_0x4f61f7['shift']());}catch(_0x291070){_0x4f61f7['push'](_0x4f61f7['shift']());}}}(a59_0x4212,0xdc240));function a59_0x4130(_0x2d0c42,_0x5cfdc1){_0x2d0c42=_0x2d0c42-0x195;const _0x4212e0=a59_0x4212();let _0x4130e6=_0x4212e0[_0x2d0c42];return _0x4130e6;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xe7af7){const _0x510716=a59_0x4130,_0x59be80=_0xe7af7[_0x510716(0x19b)](_0x510716(0x1a5));if(!_0x59be80)throw CliErrors[_0x510716(0x1a3)]('Missing\x20key.',_0x510716(0x195)+CLI_BIN_NAME+_0x510716(0x199));const _0x321475=readConfig(),_0x19bf28=_0x59be80===_0x510716(0x1a6)?'appcode':_0x59be80,_0xfd8b0c=_0x321475[_0x19bf28];if(_0xfd8b0c===undefined)throw CliErrors[_0x510716(0x1a3)](_0x510716(0x1a1)+_0x59be80);return{'ok':!![],'data':typeof _0xfd8b0c===_0x510716(0x1a8)?_0xfd8b0c:{[_0x19bf28]:_0xfd8b0c},'message':typeof _0xfd8b0c===_0x510716(0x1a8)?undefined:String(_0xfd8b0c)};}export const configGetDefinition={'service':'config','command':a59_0xc7fcfa(0x1a2),'description':a59_0xc7fcfa(0x197),'risk':a59_0xc7fcfa(0x1a7),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0xc7fcfa(0x1a5),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a59_0x4212(){const _0x6aac2b=['object','Usage:\x20','7814322ECsysg','Get\x20a\x20config\x20value\x20by\x20key','2404724EHeDah','\x20config\x20get\x20--key\x20<key>','9WPiIeM','str','21723152IpdeeM','1950567lNrFmv','604112PRxXtZ','55ryIVKb','337104vNUQKL','Key\x20not\x20found:\x20','get','validation','1619674suUGdH','key','app','read'];a59_0x4212=function(){return _0x6aac2b;};return a59_0x4212();}