@lovrabet/rabetbase-cli 2.5.5-beta.2 → 2.5.5

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 (363) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +3 -3
  358. package/skills/rabetbase/guides/independent-deployment.md +11 -1
  359. package/skills/rabetbase/references/rabetbase-config.md +16 -19
  360. package/skills/rabetbase/references/rabetbase-menu-visibility-update.md +5 -4
  361. package/skills/rabetbase/references/rabetbase-workspace.md +3 -1
  362. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  363. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a44_0x6afd0b=a44_0x35b8;(function(_0x3c5e7a,_0x2441c6){const _0x2c00d6=a44_0x35b8,_0x4e6a0b=_0x3c5e7a();while(!![]){try{const _0x42a20b=-parseInt(_0x2c00d6(0x153))/0x1+-parseInt(_0x2c00d6(0x187))/0x2+parseInt(_0x2c00d6(0x16f))/0x3*(-parseInt(_0x2c00d6(0x156))/0x4)+-parseInt(_0x2c00d6(0x143))/0x5*(-parseInt(_0x2c00d6(0x18f))/0x6)+parseInt(_0x2c00d6(0x175))/0x7*(parseInt(_0x2c00d6(0x125))/0x8)+parseInt(_0x2c00d6(0x13b))/0x9+parseInt(_0x2c00d6(0x18c))/0xa*(parseInt(_0x2c00d6(0x15a))/0xb);if(_0x42a20b===_0x2441c6)break;else _0x4e6a0b['push'](_0x4e6a0b['shift']());}catch(_0x15ba75){_0x4e6a0b['push'](_0x4e6a0b['shift']());}}}(a44_0x340d,0x898db));import{readFile}from'node:fs/promises';function a44_0x340d(){const _0xb6b133=['datasetCode','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','values','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','description','create','ENDPOINT','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','hash','str','existingHooks','has','after','509357sMnTHc','failures','runtime\x20cache\x20not\x20needed','1302456rXAMUy','toISOString','flatMap','currentApp','55yXHjSu','Local\x20function\x20not\x20found:\x20','size','afterScriptId','functionNode',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','boolean','\x20skipped','startsWith','script','type','Runtime\x20script\x20cache\x20cleared.','add','parse','test','beforeScriptId','operationType','selectedAppName','POST','Push\x20complete:\x20','resolutions','9wDwTeF','profileName','Lock\x20scope\x20for\x20app\x20\x22','lockFilePath','version','COMMON','7TfqfzR','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','filePath','would_push','push','length','validation','string','bool','HOOK','require','update','datasetId','every','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','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.','dataset','scriptsRoot','650348gIEZwW','scriptType','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','\x20resolution','runtime\x20cache\x20clear\x20failed','725540YgIUhZ','functions','Incomplete\x20HOOK\x20path:\x20','4346814ZLopSe','write','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','name','cleared','\x22\x20not\x20found\x20after\x20ensureLockScope.','requires','4100552ZZnmAY','lockKey','apiDir','join','defaultApp','attempted','remoteId','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','filter','Push\x20only\x20this\x20script\x20type','force','appCode','status','lastSync','delete','HOOK_DATASET_NOT_FOUND:','mergedCli','conflict','\x20bff\x20detail\x20--id\x20','warnings','alias','map','6974856tyXYtZ','\x20--format\x20compress','message','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','get','set','failed','some','5vFGggF','apps'];a44_0x340d=function(){return _0xb6b133;};return a44_0x340d();}import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';function a44_0x35b8(_0x7d62f2,_0x350e45){_0x7d62f2=_0x7d62f2-0x125;const _0x340df8=a44_0x340d();let _0x35b89f=_0x340df8[_0x7d62f2];return _0x35b89f;}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_0x6afd0b(0x179),'description':a44_0x6afd0b(0x191),'risk':a44_0x6afd0b(0x190),'structuredErrors':!![],'flags':[{'name':a44_0x6afd0b(0x164),'type':a44_0x6afd0b(0x17c),'description':a44_0x6afd0b(0x12e),'enum':[a44_0x6afd0b(0x174),a44_0x6afd0b(0x14c),a44_0x6afd0b(0x17e)]},{'name':a44_0x6afd0b(0x192),'type':a44_0x6afd0b(0x17c),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a44_0x6afd0b(0x12f),'type':a44_0x6afd0b(0x160),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x36a04a){const _0x56b073=a44_0x6afd0b,_0x5a4c05=loadBffProjectConfig(_0x36a04a[_0x56b073(0x130)]),_0x521f9f=await readBffLockFile(_0x5a4c05[_0x56b073(0x172)]),{appLock:_0x335db0}=ensureLockScope(_0x521f9f??createEmptyBffLock(),_0x36a04a[_0x56b073(0x130)],_0x5a4c05[_0x56b073(0x186)],_0x56b073(0x179)),_0x3a476b=await getTargetFunctions(_0x5a4c05,_0x36a04a),_0x10609e=_0x3a476b[_0x56b073(0x142)](_0xfdb37=>_0xfdb37[_0x56b073(0x164)]===_0x56b073(0x17e))?await scanLocalBffFunctions(_0x5a4c05,_0x56b073(0x17e)):_0x3a476b,_0x627b3e=await buildHookMaps(_0x36a04a[_0x56b073(0x130)],_0x36a04a['apiDir'],_0x10609e,_0x335db0,_0x36a04a[_0x56b073(0x16b)]||_0x36a04a[_0x56b073(0x135)]?.[_0x56b073(0x159)]||_0x36a04a[_0x56b073(0x135)]?.['defaultApp']),_0x280eab=_0x36a04a[_0x56b073(0x17d)](_0x56b073(0x12f)),_0x33aef0=[];for(const _0xdfc48a of _0x3a476b){const _0x439afb=await computeFileHash(_0xdfc48a[_0x56b073(0x177)]),_0x37df44=_0x335db0[_0x56b073(0x18d)][_0xdfc48a['lockKey']],_0x4f29e5=!!_0x37df44&&_0x37df44[_0x56b073(0x14e)]===_0x439afb,_0x167862=_0x627b3e['resolutions']['get'](_0xdfc48a[_0x56b073(0x126)]),_0x28354f=!!_0x37df44?.[_0x56b073(0x12b)]&&_0x37df44['version']==null&&(_0x280eab||!_0x4f29e5),_0x2043eb=_0x28354f?missingRemoteVersionConflict(_0xdfc48a,_0x37df44):undefined,_0x275e13=_0x627b3e['failures'][_0x56b073(0x151)](_0xdfc48a[_0x56b073(0x126)])?_0x56b073(0x141):!_0x280eab&&_0x4f29e5?'unchanged':_0x2043eb?_0x56b073(0x136):'would_push';_0x33aef0[_0x56b073(0x179)]({'lockKey':_0xdfc48a[_0x56b073(0x126)],'filePath':_0xdfc48a[_0x56b073(0x177)],'remoteId':_0x37df44?.[_0x56b073(0x12b)]??null,'mode':_0x37df44?.['remoteId']?_0x56b073(0x180):_0x56b073(0x14b),'status':_0x275e13,..._0x627b3e[_0x56b073(0x154)][_0x56b073(0x151)](_0xdfc48a['lockKey'])?{'error':_0x627b3e[_0x56b073(0x154)][_0x56b073(0x13f)](_0xdfc48a['lockKey'])}:{},..._0x2043eb?{'conflict':_0x2043eb}:{},..._0x627b3e[_0x56b073(0x150)][_0x56b073(0x151)](_0xdfc48a[_0x56b073(0x126)])?{'datasetCode':_0x37df44?.[_0x56b073(0x145)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0xdfc48a[_0x56b073(0x126)])]}:{},..._0x167862?{'alias':_0x167862[_0x56b073(0x139)]??null,'datasetCode':_0x167862[_0x56b073(0x145)],'operationType':_0xdfc48a[_0x56b073(0x16a)],'functionNode':_0xdfc48a[_0x56b073(0x15e)],'warnings':_0x167862[_0x56b073(0x138)]}:{}});}return{'method':_0x56b073(0x16c),'url':'/api/management/library/scripts/save','body':{'appCode':_0x36a04a[_0x56b073(0x130)],'force':_0x280eab,'files':_0x33aef0,'cacheClearAtRuntime':_0x33aef0[_0x56b073(0x142)](_0x4b41f5=>_0x4b41f5[_0x56b073(0x131)]===_0x56b073(0x178)),'cacheClearAtRuntimeTimes':_0x33aef0[_0x56b073(0x142)](_0x12c1a9=>_0x12c1a9[_0x56b073(0x131)]===_0x56b073(0x178))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x33aef0[_0x56b073(0x17a)]+_0x56b073(0x12c)};},async 'execute'(_0x598181){const _0x5ff28e=a44_0x6afd0b,_0x8b97f6=loadBffProjectConfig(_0x598181[_0x5ff28e(0x130)]),_0x3a1901=await readBffLockFile(_0x8b97f6['lockFilePath']),{lockData:_0x29c007,appLock:_0x3cb677}=ensureLockScope(_0x3a1901??createEmptyBffLock(),_0x598181[_0x5ff28e(0x130)],_0x8b97f6[_0x5ff28e(0x186)],'push'),_0x3c5013=await getTargetFunctions(_0x8b97f6,_0x598181);if(_0x3c5013['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x98f49=_0x598181[_0x5ff28e(0x17d)](_0x5ff28e(0x12f)),_0x57217a=JSON[_0x5ff28e(0x167)](JSON['stringify'](_0x29c007)),_0x52b12e=_0x57217a['apps'][_0x598181[_0x5ff28e(0x130)]];if(!_0x52b12e)throw new Error(_0x5ff28e(0x171)+_0x598181[_0x5ff28e(0x130)]+_0x5ff28e(0x194));const _0x223a38=_0x3c5013[_0x5ff28e(0x142)](_0x4322a1=>_0x4322a1['type']===_0x5ff28e(0x17e))?await scanLocalBffFunctions(_0x8b97f6,_0x5ff28e(0x17e)):_0x3c5013,_0x1429fb=await buildHookMaps(_0x598181[_0x5ff28e(0x130)],_0x598181[_0x5ff28e(0x127)],_0x223a38,_0x52b12e,_0x598181[_0x5ff28e(0x16b)]||_0x598181[_0x5ff28e(0x135)]?.[_0x5ff28e(0x159)]||_0x598181[_0x5ff28e(0x135)]?.[_0x5ff28e(0x129)]),_0x20feb9=[],_0x1cce43=[],_0x2188eb=[],_0x7f0275=[];for(const _0x35fd1c of _0x3c5013){const _0x5f7eec=_0x1429fb[_0x5ff28e(0x154)]['get'](_0x35fd1c[_0x5ff28e(0x126)]);if(_0x5f7eec){_0x7f0275[_0x5ff28e(0x179)]({'lockKey':_0x35fd1c[_0x5ff28e(0x126)],'error':_0x5f7eec});continue;}const _0x3c199b=await computeFileHash(_0x35fd1c[_0x5ff28e(0x177)]),_0x4105b2=_0x52b12e[_0x5ff28e(0x18d)][_0x35fd1c['lockKey']];if(!_0x98f49&&_0x4105b2&&_0x4105b2['hash']===_0x3c199b){_0x1cce43[_0x5ff28e(0x179)]({'lockKey':_0x35fd1c[_0x5ff28e(0x126)],'reason':'unchanged'});continue;}if(_0x4105b2?.[_0x5ff28e(0x12b)]&&_0x4105b2[_0x5ff28e(0x173)]==null){_0x2188eb[_0x5ff28e(0x179)](missingRemoteVersionConflict(_0x35fd1c,_0x4105b2));continue;}try{await uploadSingleFunction(_0x598181['appCode'],_0x35fd1c,_0x52b12e,_0x1429fb);const _0x5c5aeb=_0x52b12e[_0x5ff28e(0x18d)][_0x35fd1c['lockKey']];_0x20feb9[_0x5ff28e(0x179)]({'lockKey':_0x35fd1c[_0x5ff28e(0x126)],'remoteId':_0x5c5aeb?.[_0x5ff28e(0x12b)]??0x0});}catch(_0x34cacf){const _0x48837a=remoteVersionChangedConflict(_0x35fd1c,_0x4105b2,_0x34cacf);if(_0x48837a){_0x2188eb['push'](_0x48837a);continue;}_0x7f0275[_0x5ff28e(0x179)]({'lockKey':_0x35fd1c[_0x5ff28e(0x126)],'error':_0x34cacf instanceof Error?_0x34cacf[_0x5ff28e(0x13d)]:String(_0x34cacf)});}}_0x52b12e[_0x5ff28e(0x132)]=new Date()[_0x5ff28e(0x157)](),await writeBffLockFile(_0x8b97f6[_0x5ff28e(0x172)],_0x57217a),await waitForUploadedLockEntries(_0x8b97f6[_0x5ff28e(0x172)],_0x598181[_0x5ff28e(0x130)],_0x20feb9['map'](_0x1de602=>_0x1de602[_0x5ff28e(0x126)]));let _0x3802bd={'attempted':![],'cleared':![]};if(_0x20feb9[_0x5ff28e(0x17a)]>0x0)try{let _0x222dd7='';for(let _0x3bc578=0x0;_0x3bc578<CACHE_CLEAR_ATTEMPTS;_0x3bc578+=0x1){_0x222dd7=await clearBffScriptCache(),_0x3bc578<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x3802bd={'attempted':!![],'cleared':!![],'message':_0x222dd7||_0x5ff28e(0x165)};}catch(_0x528b42){_0x3802bd={'attempted':!![],'cleared':![],'error':_0x528b42 instanceof Error?_0x528b42['message']:String(_0x528b42)};}const _0x4f51a9=_0x7f0275['length']===0x0&&(_0x3802bd['attempted']?_0x3802bd[_0x5ff28e(0x193)]:!![]),_0x456c36=_0x4f51a9,_0x46eaa9=_0x3802bd[_0x5ff28e(0x12a)]?_0x3802bd['cleared']?'runtime\x20cache\x20cleared':_0x5ff28e(0x18b):_0x5ff28e(0x155);return{'ok':_0x456c36,'data':{'uploaded':_0x20feb9,'skipped':_0x1cce43,'conflicts':_0x2188eb,'failed':_0x7f0275,'cacheClear':_0x3802bd,'warnings':[...[..._0x1429fb[_0x5ff28e(0x16e)][_0x5ff28e(0x148)]()]['flatMap'](_0x71608f=>_0x71608f[_0x5ff28e(0x138)]),...[..._0x1429fb[_0x5ff28e(0x150)]][_0x5ff28e(0x13a)](existingHookWarning)]},'message':formatPushMessage(_0x20feb9[_0x5ff28e(0x17a)],_0x1cce43['length'],_0x2188eb[_0x5ff28e(0x17a)],_0x7f0275[_0x5ff28e(0x17a)],_0x46eaa9)};}};function missingRemoteVersionConflict(_0x3884c2,_0x5d8e84){const _0x5ccc6f=a44_0x6afd0b;return remoteVersionConflict(_0x3884c2,_0x5d8e84,'BFF_REMOTE_VERSION_MISSING',_0x5ccc6f(0x183));}function remoteVersionChangedConflict(_0x59eef2,_0x5231f5,_0x2349e8){const _0x38fd70=a44_0x6afd0b;if(!_0x5231f5?.[_0x38fd70(0x12b)]||_0x5231f5[_0x38fd70(0x173)]==null||!isRemoteVersionConflict(_0x2349e8))return undefined;return remoteVersionConflict(_0x59eef2,_0x5231f5,'BFF_REMOTE_VERSION_CHANGED',_0x38fd70(0x189));}function remoteVersionConflict(_0x4e30f5,_0x34338c,_0x5e8bbe,_0x526dc8){const _0x3bcd55=a44_0x6afd0b;return{'code':_0x5e8bbe,'lockKey':_0x4e30f5[_0x3bcd55(0x126)],'filePath':_0x4e30f5[_0x3bcd55(0x177)],'remoteId':_0x34338c[_0x3bcd55(0x12b)],..._0x34338c[_0x3bcd55(0x173)]!=null?{'expectedVersion':_0x34338c[_0x3bcd55(0x173)]}:{},'message':_0x526dc8,'nextAction':{'action':'review_remote_and_merge','command':CLI_BIN_NAME+_0x3bcd55(0x137)+_0x34338c['remoteId']+_0x3bcd55(0x13c),'requiresReview':!![],'message':_0x3bcd55(0x184)}};}function isRemoteVersionConflict(_0x16588e){const _0x21913d=a44_0x6afd0b,_0x21ac70=_0x16588e instanceof Error?_0x16588e[_0x21913d(0x13d)]:String(_0x16588e),_0x47ae45=getPlatformErrorCode(_0x16588e)??'';return[_0x21ac70,_0x47ae45][_0x21913d(0x142)](_0x110a93=>/(?: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[_0x21913d(0x168)](_0x110a93));}function formatPushMessage(_0x5a8a94,_0x3549f3,_0x1fd805,_0x2e04ae,_0x5268aa){const _0x418c64=a44_0x6afd0b,_0x1e9adc=[_0x418c64(0x16d)+_0x5a8a94+'\x20uploaded',_0x3549f3+_0x418c64(0x161)];_0x1fd805>0x0&&_0x1e9adc[_0x418c64(0x179)](_0x1fd805+'\x20conflict'+(_0x1fd805===0x1?'':'s')+'\x20'+(_0x1fd805===0x1?_0x418c64(0x195):_0x418c64(0x17f))+_0x418c64(0x18a));if(_0x2e04ae>0x0)_0x1e9adc[_0x418c64(0x179)](_0x2e04ae+'\x20failed');return _0x1e9adc[_0x418c64(0x179)](_0x5268aa),_0x1e9adc[_0x418c64(0x128)](',\x20');}async function getTargetFunctions(_0x4e5666,_0x4731fc){const _0x1c8fbd=a44_0x6afd0b,_0x2d55f2=_0x4731fc[_0x1c8fbd(0x14f)](_0x1c8fbd(0x164)),_0x13b299=_0x4731fc[_0x1c8fbd(0x14f)](_0x1c8fbd(0x192)),_0x394a8b=normalizeBffType(_0x2d55f2)??undefined;if(_0x13b299&&!_0x394a8b)throw CliErrors['validation'](_0x1c8fbd(0x14d));const _0x5153bc=await scanLocalBffFunctions(_0x4e5666,_0x394a8b);if(_0x13b299){const _0x57803e=_0x5153bc[_0x1c8fbd(0x12d)](_0x3db7e3=>_0x3db7e3[_0x1c8fbd(0x192)]===_0x13b299);if(_0x57803e[_0x1c8fbd(0x17a)]===0x0)throw CliErrors['validation'](_0x1c8fbd(0x15b)+_0x394a8b+'/'+_0x13b299);return _0x57803e;}return _0x5153bc;}function existingHookWarning(_0x1b2383){const _0x1cf927=a44_0x6afd0b;return{'code':'EXISTING_HOOK_BINDING_PRESERVED','lockKey':_0x1b2383,'message':_0x1cf927(0x13e)};}async function buildHookMaps(_0x4b1c7d,_0x3efad6,_0x158bb9,_0x516453,_0x4b12d1){const _0x31ff22=a44_0x6afd0b,_0x554d7f=_0x158bb9[_0x31ff22(0x142)](_0x197dad=>_0x197dad[_0x31ff22(0x164)]==='HOOK');if(!_0x554d7f)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0xcdac0b=resolveApiModelSource(_0x3efad6,_0x4b1c7d,_0x4b12d1),_0x1153c7=loadAliasMap(_0x3efad6,undefined,_0xcdac0b[_0x31ff22(0x177)],_0xcdac0b[_0x31ff22(0x170)]);assertUnambiguousHookAliases(_0x1153c7);const _0x51f322=[..._0x1153c7['map'](_0x4d425d=>[_0x4d425d['alias'],_0x4d425d[_0x31ff22(0x145)]]),...trackedHookDirectoryMappings(_0x516453)[_0x31ff22(0x13a)](_0x23172a=>[_0x23172a[_0x31ff22(0x139)],_0x23172a['datasetCode']])],_0x2824e5=await listDatasets(_0x4b1c7d);assertUnambiguousHookDirectoryMappings(_0x51f322['map'](([_0x44e6ee,_0x1fb8fc])=>({'alias':_0x44e6ee,'datasetCode':_0x1fb8fc})));const _0x4deea2=buildHookDirectoryIndexes(_0x2824e5,_0x51f322),_0x29652a=new Map(),_0x7d9da7=preflightPushHookDirectories(_0x158bb9,_0x516453,_0x4deea2,_0x29652a),_0x1ce4ba=new Set(),_0x523ff8=_0x158bb9[_0x31ff22(0x12d)](_0x245408=>_0x29652a[_0x31ff22(0x13f)](_0x245408['lockKey'])?.[_0x31ff22(0x162)](_0x31ff22(0x134))&&_0x516453['functions'][_0x245408[_0x31ff22(0x126)]]?.['remoteId']&&_0x516453[_0x31ff22(0x18d)][_0x245408[_0x31ff22(0x126)]]?.[_0x31ff22(0x145)]);if(_0x523ff8['length']>0x0){let _0x486e99;try{_0x486e99=await getBffScriptStatistics(_0x4b1c7d);}catch(_0x1561e4){for(const _0x42e479 of _0x523ff8)_0x29652a[_0x31ff22(0x140)](_0x42e479[_0x31ff22(0x126)],_0x31ff22(0x146)+(_0x1561e4 instanceof Error?_0x1561e4['message']:String(_0x1561e4)));return{'resolutions':_0x7d9da7,'failures':_0x29652a,'existingHooks':_0x1ce4ba};}for(const _0x54df33 of _0x523ff8){const _0x2254e1=_0x516453[_0x31ff22(0x18d)][_0x54df33[_0x31ff22(0x126)]];try{const _0x42a758=new Set(_0x158bb9['filter'](_0x329b4c=>_0x329b4c['type']===_0x31ff22(0x17e)&&_0x516453[_0x31ff22(0x18d)][_0x329b4c[_0x31ff22(0x126)]]?.['datasetCode']===_0x2254e1['datasetCode'])['map'](_0x547f63=>_0x547f63[_0x31ff22(0x139)]));if(_0x42a758[_0x31ff22(0x15c)]>0x1)throw CliErrors[_0x31ff22(0x17b)](_0x31ff22(0x149));const _0x2aa85e=_0x486e99[_0x31ff22(0x158)](_0x2a0fd8=>[{'datasetCode':_0x2a0fd8['datasetCode'],'operationType':snakeToCamel(_0x2a0fd8[_0x31ff22(0x16a)]),'functionNode':'before','id':_0x2a0fd8[_0x31ff22(0x169)]},{'datasetCode':_0x2a0fd8[_0x31ff22(0x145)],'operationType':snakeToCamel(_0x2a0fd8['operationType']),'functionNode':_0x31ff22(0x152),'id':_0x2a0fd8[_0x31ff22(0x15d)]}])[_0x31ff22(0x12d)](_0x51fd94=>_0x51fd94['id']===_0x2254e1['remoteId']),_0x871390=await getBffScriptInfo(_0x2254e1[_0x31ff22(0x12b)]);if(_0x871390['id']!==_0x2254e1['remoteId']||_0x871390[_0x31ff22(0x130)]!==_0x4b1c7d||_0x871390[_0x31ff22(0x188)]!=='HOOK'||_0x871390['functionName']!==_0x54df33['name']||_0x2254e1[_0x31ff22(0x173)]==null||_0x871390[_0x31ff22(0x173)]!==_0x2254e1['version']||_0x2aa85e[_0x31ff22(0x17a)]!==0x1||_0x2aa85e[0x0][_0x31ff22(0x145)]!==_0x2254e1[_0x31ff22(0x145)]||_0x2aa85e[0x0][_0x31ff22(0x16a)]!==_0x54df33[_0x31ff22(0x16a)]||_0x2aa85e[0x0]['functionNode']!==_0x54df33[_0x31ff22(0x15e)]||_0x2254e1[_0x31ff22(0x16a)]!==_0x54df33[_0x31ff22(0x16a)]||_0x2254e1['functionNode']!==_0x54df33[_0x31ff22(0x15e)])throw CliErrors[_0x31ff22(0x17b)](_0x31ff22(0x147));_0x1ce4ba[_0x31ff22(0x166)](_0x54df33['lockKey']),_0x29652a[_0x31ff22(0x133)](_0x54df33[_0x31ff22(0x126)]);}catch(_0x53d69d){_0x29652a[_0x31ff22(0x140)](_0x54df33['lockKey'],_0x53d69d instanceof Error?_0x53d69d[_0x31ff22(0x13d)]:String(_0x53d69d));}}}return{'resolutions':_0x7d9da7,'failures':_0x29652a,'existingHooks':_0x1ce4ba};}async function uploadSingleFunction(_0x2df0db,_0x10b7a4,_0x1a5106,_0x14e60d){const _0x5c6f6a=a44_0x6afd0b,_0x4c1403=await readFile(_0x10b7a4[_0x5c6f6a(0x177)],'utf8'),_0x44f56d=await computeFileHash(_0x10b7a4[_0x5c6f6a(0x177)]),_0x309736=_0x1a5106[_0x5c6f6a(0x18d)][_0x10b7a4[_0x5c6f6a(0x126)]];if(_0x309736?.['remoteId']&&_0x309736[_0x5c6f6a(0x173)]==null)throw CliErrors[_0x5c6f6a(0x17b)](_0x10b7a4[_0x5c6f6a(0x126)]+_0x5c6f6a(0x15f));let _0x26ca92=extractScriptDescription(_0x4c1403);if(!_0x26ca92&&_0x309736?.[_0x5c6f6a(0x12b)]){const _0x2e97c9=await getBffScriptInfo(_0x309736[_0x5c6f6a(0x12b)]);_0x26ca92=_0x2e97c9[_0x5c6f6a(0x14a)]||undefined;}const _0xa1bfbb={'appCode':_0x2df0db,'functionName':_0x10b7a4[_0x5c6f6a(0x192)],'scriptType':_0x10b7a4[_0x5c6f6a(0x164)],'scriptContent':_0x4c1403};if(_0x309736?.[_0x5c6f6a(0x12b)])_0xa1bfbb['id']=_0x309736[_0x5c6f6a(0x12b)];if(_0x309736?.[_0x5c6f6a(0x173)]!=null)_0xa1bfbb[_0x5c6f6a(0x173)]=_0x309736[_0x5c6f6a(0x173)];if(_0x26ca92)_0xa1bfbb[_0x5c6f6a(0x14a)]=_0x26ca92;if(_0x10b7a4[_0x5c6f6a(0x164)]===_0x5c6f6a(0x17e)){const _0x485567=_0x14e60d[_0x5c6f6a(0x16e)][_0x5c6f6a(0x13f)](_0x10b7a4[_0x5c6f6a(0x126)]);if(!_0x485567&&!_0x14e60d[_0x5c6f6a(0x150)][_0x5c6f6a(0x151)](_0x10b7a4[_0x5c6f6a(0x126)])||!_0x10b7a4[_0x5c6f6a(0x16a)]||!_0x10b7a4[_0x5c6f6a(0x15e)])throw CliErrors[_0x5c6f6a(0x17b)](_0x5c6f6a(0x18e)+_0x10b7a4[_0x5c6f6a(0x126)]);_0x485567&&(_0xa1bfbb[_0x5c6f6a(0x181)]=_0x485567[_0x5c6f6a(0x185)]['id'],_0xa1bfbb[_0x5c6f6a(0x16a)]=_0x10b7a4[_0x5c6f6a(0x16a)]),_0xa1bfbb[_0x5c6f6a(0x15e)]=_0x10b7a4['functionNode'];}const _0x1684e8=await saveBffScript(_0xa1bfbb),_0x1faa1e=_0x1684e8['id'],_0x5e2111=_0x1684e8[_0x5c6f6a(0x163)]??await getBffScriptInfo(_0x1faa1e),_0x2fd0b4={'hash':_0x44f56d,'remoteId':_0x1faa1e,'version':_0x5e2111[_0x5c6f6a(0x173)]};if(_0x10b7a4[_0x5c6f6a(0x164)]===_0x5c6f6a(0x17e)){const _0x462bbe=_0x14e60d[_0x5c6f6a(0x16e)][_0x5c6f6a(0x13f)](_0x10b7a4[_0x5c6f6a(0x126)]);if(!_0x462bbe){_0x1a5106['functions'][_0x10b7a4['lockKey']]={..._0x309736,..._0x2fd0b4};return;}_0x2fd0b4[_0x5c6f6a(0x139)]=_0x462bbe[_0x5c6f6a(0x139)]??_0x309736?.[_0x5c6f6a(0x139)],_0x2fd0b4[_0x5c6f6a(0x145)]=_0x462bbe[_0x5c6f6a(0x145)],_0x2fd0b4['operationType']=_0x10b7a4['operationType'],_0x2fd0b4[_0x5c6f6a(0x15e)]=_0x10b7a4[_0x5c6f6a(0x15e)];}_0x1a5106[_0x5c6f6a(0x18d)][_0x10b7a4[_0x5c6f6a(0x126)]]=_0x2fd0b4;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x586bc7,_0x4aab5c,_0x5f1276){const _0x1f0687=a44_0x6afd0b;if(_0x5f1276[_0x1f0687(0x17a)]===0x0)return;for(let _0xd06ee8=0x0;_0xd06ee8<LOCK_SETTLE_RETRY_COUNT;_0xd06ee8+=0x1){const _0x382a53=await readBffLockFile(_0x586bc7),_0x3273e5=_0x382a53?.[_0x1f0687(0x144)]?.[_0x4aab5c]?.[_0x1f0687(0x18d)]??{},_0x11de04=_0x5f1276[_0x1f0687(0x182)](_0x11c5cd=>!!_0x3273e5[_0x11c5cd]?.[_0x1f0687(0x12b)]);if(_0x11de04)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x1f0687(0x176)+_0x5f1276[_0x1f0687(0x128)](',\x20')+'.');}
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 +1 @@
1
- const a45_0x20fc59=a45_0x2f11;(function(_0x3bf029,_0x2d2dd6){const _0x4390f9=a45_0x2f11,_0x35a416=_0x3bf029();while(!![]){try{const _0x37ae1f=parseInt(_0x4390f9(0x13c))/0x1+parseInt(_0x4390f9(0x14c))/0x2+-parseInt(_0x4390f9(0x146))/0x3+-parseInt(_0x4390f9(0x13e))/0x4*(parseInt(_0x4390f9(0x13a))/0x5)+-parseInt(_0x4390f9(0x12b))/0x6*(parseInt(_0x4390f9(0x12f))/0x7)+-parseInt(_0x4390f9(0x13b))/0x8+parseInt(_0x4390f9(0x141))/0x9;if(_0x37ae1f===_0x2d2dd6)break;else _0x35a416['push'](_0x35a416['shift']());}catch(_0x5ddd9b){_0x35a416['push'](_0x35a416['shift']());}}}(a45_0x471c,0xf14f3));function a45_0x2f11(_0xe26108,_0x15f0fd){_0xe26108=_0xe26108-0x129;const _0x471cdd=a45_0x471c();let _0x2f11f6=_0x471cdd[_0xe26108];return _0x2f11f6;}import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a45_0x471c(){const _0xe0c1ba=['map','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','13412412GlxgWf','\x20modified,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','read','mergedCli','194307leCybJ','lockFilePath','boolean','length','push','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','2342638APNCKb','remote','scriptsRoot','222Xqxrdn','\x20remote-only','filePath','profileName','342041nPnZJM','all','selectedAppName','lockKey','apiDir','currentApp','functions','hash','status','appCode','bool','25DghhgI','4069128gxnTow','1422792sCFufP','\x20unchanged','571708emJVKY'];a45_0x471c=function(){return _0xe0c1ba;};return a45_0x471c();}export const bffStatus={'service':'bff','command':a45_0x20fc59(0x137),'description':a45_0x20fc59(0x14b),'risk':a45_0x20fc59(0x144),'flags':[{'name':a45_0x20fc59(0x129),'type':a45_0x20fc59(0x148),'description':a45_0x20fc59(0x143)}],async 'execute'(_0x170cc0){const _0x1d0085=a45_0x20fc59,_0x613012=loadBffProjectConfig(_0x170cc0['appCode']),_0x329ab2=await readBffLockFile(_0x613012[_0x1d0085(0x147)]),{appLock:_0x2b8cdd}=ensureLockScope(_0x329ab2??createEmptyBffLock(),_0x170cc0['appCode'],_0x613012[_0x1d0085(0x12a)],_0x1d0085(0x137)),_0xe04c46=await scanLocalBffFunctions(_0x613012),_0xe0530c=[],_0x2d931f=[],_0x45287b=[];for(const _0x57e622 of _0xe04c46){const _0x241f62=await computeFileHash(_0x57e622[_0x1d0085(0x12d)]),_0x581c9d=_0x2b8cdd[_0x1d0085(0x135)][_0x57e622[_0x1d0085(0x132)]];if(!_0x581c9d)_0xe0530c[_0x1d0085(0x14a)](_0x57e622[_0x1d0085(0x132)]);else _0x581c9d[_0x1d0085(0x136)]!==_0x241f62?_0x2d931f['push'](_0x57e622['lockKey']):_0x45287b[_0x1d0085(0x14a)](_0x57e622[_0x1d0085(0x132)]);}const _0x5639ec=[];if(_0x170cc0[_0x1d0085(0x139)](_0x1d0085(0x129))){const _0x3b6e29=resolveApiModelSource(_0x170cc0[_0x1d0085(0x133)],_0x170cc0['appCode'],_0x170cc0[_0x1d0085(0x131)]||_0x170cc0['mergedCli']?.[_0x1d0085(0x134)]||_0x170cc0[_0x1d0085(0x145)]?.['defaultApp']),_0x56716f=loadAliasMap(_0x170cc0[_0x1d0085(0x133)],undefined,_0x3b6e29[_0x1d0085(0x12d)],_0x3b6e29[_0x1d0085(0x12e)]),_0x7faa20=new Map(_0x56716f[_0x1d0085(0x13f)](_0x469e8f=>[_0x469e8f['datasetCode'],_0x469e8f['alias']])),[_0x266b23,_0x316be7]=await Promise[_0x1d0085(0x130)]([listBffScripts(_0x170cc0[_0x1d0085(0x138)]),getBffScriptStatistics(_0x170cc0['appCode'])]),_0x26d3ed=createHookLocationMap(_0x316be7),_0x3ea720=new Set(_0xe04c46[_0x1d0085(0x13f)](_0x356b94=>_0x356b94[_0x1d0085(0x132)]));for(const _0xcc08db of _0x266b23){const _0x10e0da=resolveRemoteScriptTarget(_0x613012,_0xcc08db,_0x26d3ed,_0x2b8cdd['functions'],_0x7faa20);_0x10e0da&&!_0x3ea720['has'](_0x10e0da['lockKey'])&&_0x5639ec['push'](_0x10e0da['lockKey']);}}const _0xd05a4d=_0xe0530c['length']===0x0&&_0x2d931f[_0x1d0085(0x149)]===0x0&&_0x5639ec[_0x1d0085(0x149)]===0x0;return{'ok':!![],'data':{'added':_0xe0530c,'modified':_0x2d931f,'unchanged':_0x45287b,'remoteOnly':_0x5639ec},'message':_0xd05a4d?_0x1d0085(0x140):_0xe0530c[_0x1d0085(0x149)]+'\x20added,\x20'+_0x2d931f[_0x1d0085(0x149)]+_0x1d0085(0x142)+_0x45287b[_0x1d0085(0x149)]+_0x1d0085(0x13d)+(_0x5639ec['length']>0x0?',\x20'+_0x5639ec['length']+_0x1d0085(0x12c):'')};}};
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 +1 @@
1
- function a46_0x1d8f(_0x949894,_0x2f8327){_0x949894=_0x949894-0x16d;const _0x12bfce=a46_0x12bf();let _0x1d8f9a=_0x12bfce[_0x949894];return _0x1d8f9a;}const a46_0x1823af=a46_0x1d8f;(function(_0x5276de,_0x1fd0ba){const _0x2a4f3f=a46_0x1d8f,_0x42b6c0=_0x5276de();while(!![]){try{const _0x3fa87b=parseInt(_0x2a4f3f(0x181))/0x1+parseInt(_0x2a4f3f(0x18a))/0x2*(parseInt(_0x2a4f3f(0x188))/0x3)+-parseInt(_0x2a4f3f(0x186))/0x4*(parseInt(_0x2a4f3f(0x17a))/0x5)+parseInt(_0x2a4f3f(0x187))/0x6+-parseInt(_0x2a4f3f(0x17c))/0x7*(parseInt(_0x2a4f3f(0x172))/0x8)+parseInt(_0x2a4f3f(0x170))/0x9+parseInt(_0x2a4f3f(0x177))/0xa;if(_0x3fa87b===_0x1fd0ba)break;else _0x42b6c0['push'](_0x42b6c0['shift']());}catch(_0x510b0a){_0x42b6c0['push'](_0x42b6c0['shift']());}}}(a46_0x12bf,0xd188e));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x12bf(){const _0x3ede1e=['CLI\x20Built-in\x20Skill\x20','skillVersion','5021199zqTKKA','apiError','8BWxbwk','cli-skill','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','error','Built-in\x20Skill\x20install\x20failed\x20[','10582000iFKuTv','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.',']:\x20','604645WqSgib','installedPath','2847747NTtocv','pipe','log','\x20is\x20already\x20current','cli-skill-install','451321MjqIov','setLogPath','read','\x20at\x20','\x20installed','52fFbLcX','761052BUBpqx','6GUQJVh','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','642878delqOC','changed','unknown','repairCommand'];a46_0x12bf=function(){return _0x3ede1e;};return a46_0x12bf();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a46_0x1823af(0x173),'command':'install','description':a46_0x1823af(0x174),'risk':a46_0x1823af(0x183),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xad1456){const _0x5459fc=a46_0x1823af;logger[_0x5459fc(0x182)](process['cwd']()),logger['info'](_0x5459fc(0x180),_0x5459fc(0x178));const _0xd123cb=installBuiltinSkill({'stdio':_0xad1456['nonInteractive']?_0x5459fc(0x17d):'inherit'});if(!_0xd123cb['ok'])throw CliErrors[_0x5459fc(0x171)](_0x5459fc(0x176)+_0xd123cb['code']+_0x5459fc(0x179)+(_0xd123cb[_0x5459fc(0x175)]||_0x5459fc(0x18c)),_0x5459fc(0x189)+_0xd123cb[_0x5459fc(0x16d)]);return console[_0x5459fc(0x17e)](_0xd123cb[_0x5459fc(0x18b)]?'CLI\x20Built-in\x20Skill\x20'+_0xd123cb[_0x5459fc(0x16f)]+_0x5459fc(0x185)+(_0xd123cb['installedPath']?'\x20at\x20'+_0xd123cb[_0x5459fc(0x17b)]:'\x20via\x20skills@latest'):_0x5459fc(0x16e)+_0xd123cb[_0x5459fc(0x16f)]+_0x5459fc(0x17f)+(_0xd123cb[_0x5459fc(0x17b)]?_0x5459fc(0x184)+_0xd123cb[_0x5459fc(0x17b)]:'')),{'ok':!![]};}}];
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 +1 @@
1
- const a47_0x4e4a9d=a47_0x1fba;(function(_0x1362c0,_0x59f4c7){const _0x1e6fb0=a47_0x1fba,_0x2c5a8a=_0x1362c0();while(!![]){try{const _0x2f6c23=parseInt(_0x1e6fb0(0x13e))/0x1+-parseInt(_0x1e6fb0(0x127))/0x2+parseInt(_0x1e6fb0(0x119))/0x3+parseInt(_0x1e6fb0(0x141))/0x4+-parseInt(_0x1e6fb0(0x155))/0x5*(-parseInt(_0x1e6fb0(0x143))/0x6)+parseInt(_0x1e6fb0(0x117))/0x7*(parseInt(_0x1e6fb0(0x135))/0x8)+-parseInt(_0x1e6fb0(0x113))/0x9;if(_0x2f6c23===_0x59f4c7)break;else _0x2c5a8a['push'](_0x2c5a8a['shift']());}catch(_0x9431a2){_0x2c5a8a['push'](_0x2c5a8a['shift']());}}}(a47_0x5ee2,0xe2286));import a47_0x3e4eb0 from'chalk';import a47_0x263ce3 from'ora';import a47_0x18b019 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a47_0x1fba(_0x129351,_0x5ec34f){_0x129351=_0x129351-0x110;const _0x5ee20b=a47_0x5ee2();let _0x1fbaed=_0x5ee20b[_0x129351];return _0x1fbaed;}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 _0x3bd82f=a47_0x1fba;return GIT_COMMIT!==_0x3bd82f(0x11e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3bd82f(0x131)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x1891b8=a47_0x1fba,_0x186fdc=process[_0x1891b8(0x13d)]['toLowerCase']();if(_0x186fdc[_0x1891b8(0x139)](_0x1891b8(0x112)))return _0x1891b8(0x112);return _0x1891b8(0x14a);}const updateFlags=[{'name':a47_0x4e4a9d(0x15e),'type':a47_0x4e4a9d(0x136),'description':a47_0x4e4a9d(0x15a),'default':![]},{'name':a47_0x4e4a9d(0x142),'type':a47_0x4e4a9d(0x146),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x4e441a){const _0x376f3b=a47_0x4e4a9d;return _0x4e441a['str']('version')[_0x376f3b(0x123)]();}async function validateUpdateFlags(_0x65d930){const _0x1cc66c=a47_0x4e4a9d,_0x388cbd=_0x65d930[_0x1cc66c(0x152)](_0x1cc66c(0x15e)),_0x48430a=getRequestedVersion(_0x65d930);if(_0x388cbd&&_0x48430a)throw CliErrors[_0x1cc66c(0x118)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x48430a&&!a47_0x18b019['valid'](_0x48430a))throw CliErrors['validation'](_0x1cc66c(0x110)+_0x48430a,_0x1cc66c(0x12c));}async function fetchNpmDistTags(){const _0x2fef9c=a47_0x4e4a9d;try{const _0x1d59fd=await fetch(_0x2fef9c(0x12f)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal['timeout'](0x2710)});if(!_0x1d59fd['ok'])return null;const _0x161457=await _0x1d59fd[_0x2fef9c(0x11b)]();if(!_0x161457||typeof _0x161457!==_0x2fef9c(0x13c))return null;return Object[_0x2fef9c(0x116)](Object[_0x2fef9c(0x144)](_0x161457)[_0x2fef9c(0x122)](([,_0x34b88a])=>typeof _0x34b88a==='string'&&_0x34b88a[_0x2fef9c(0x123)]()[_0x2fef9c(0x156)]>0x0)[_0x2fef9c(0x15c)](([_0x4273b6,_0x23e5d5])=>[_0x4273b6,String(_0x23e5d5)[_0x2fef9c(0x123)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x28cc2b){const _0x1ee26c=await fetchNpmDistTags();return _0x1ee26c?.[_0x28cc2b]??null;}async function fetchLatestVersion(){const _0x2604ea=a47_0x4e4a9d;return fetchNpmDistTagVersion(_0x2604ea(0x13b));}function a47_0x5ee2(){const _0x350aac=['3117484kExgGJ','version','56244KGXjPo','entries','green','string','current','Checking\x20for\x20updates...','...','npm','apiError','info','\x20doctor','state','Run:\x20','Updated\x20to\x20v','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','bool',']:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','785orSxth','length','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Update\x20failed',',\x20state\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','pipe','map','update','beta','Invalid\x20version:\x20','error','bun','30769650zMZDZc','yellow','\x20install\x20-g\x20','fromEntries','7gOhXFZ','validation','4490541wcaJil','repairCommand','json','CLI\x20updated\x20to\x20v','log','unknown','red','source','Already\x20up\x20to\x20date\x20(v','filter','trim','\x20\x20Try\x20manually:\x20','expected\x20',',\x20then\x20verify\x20with:\x20','1307128BYHGdr','install',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','Current\x20version\x20v','@latest','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','fail','Beta\x20version:\x20','https://registry.npmjs.org/-/package/','skillVersion','slice','\x20→\x20','succeed','gray','4854760igMDAX','boolean','message','start','includes','read','latest','object','execPath','643975xYvPaP','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Version\x20comparison\x20failed'];a47_0x5ee2=function(){return _0x350aac;};return a47_0x5ee2();}async function resolveTargetVersion(_0x21a5ba){const _0x579896=a47_0x4e4a9d,_0x10f4c3=getRequestedVersion(_0x21a5ba);if(_0x10f4c3)return{'version':_0x10f4c3,'source':'version'};if(_0x21a5ba[_0x579896(0x152)](_0x579896(0x15e))){const _0x1fd4ee=await fetchNpmDistTagVersion(_0x579896(0x15e));if(!_0x1fd4ee)return null;return{'version':_0x1fd4ee,'source':_0x579896(0x15e)};}const _0x47e365=await fetchLatestVersion();if(!_0x47e365)return null;return{'version':_0x47e365,'source':'latest'};}function shouldInstallTarget(_0x5e2b42,_0x43de22){const _0x7bb12b=a47_0x4e4a9d;if(_0x43de22[_0x7bb12b(0x120)]===_0x7bb12b(0x142)||_0x43de22['source']==='beta')return!a47_0x18b019['eq'](_0x5e2b42,_0x43de22['version']);return a47_0x18b019['lt'](_0x5e2b42,_0x43de22['version']);}function getInstallPlanLabel(_0xc7a901,_0x278fc8){const _0x1c7644=a47_0x4e4a9d;switch(_0x278fc8['source']){case _0x1c7644(0x15e):return _0x1c7644(0x12e)+a47_0x3e4eb0[_0x1c7644(0x114)](_0xc7a901)+'\x20→\x20'+a47_0x3e4eb0[_0x1c7644(0x145)](_0x278fc8[_0x1c7644(0x142)]);case _0x1c7644(0x142):return'Requested\x20version:\x20'+a47_0x3e4eb0[_0x1c7644(0x114)](_0xc7a901)+_0x1c7644(0x132)+a47_0x3e4eb0[_0x1c7644(0x145)](_0x278fc8[_0x1c7644(0x142)]);case _0x1c7644(0x13b):default:return'Update\x20available:\x20'+a47_0x3e4eb0[_0x1c7644(0x114)](_0xc7a901)+_0x1c7644(0x132)+a47_0x3e4eb0[_0x1c7644(0x145)](_0x278fc8[_0x1c7644(0x142)]);}}function repairCurrentBuiltinSkill(){const _0x94b18=a47_0x4e4a9d;console[_0x94b18(0x11d)](a47_0x3e4eb0[_0x94b18(0x134)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x2d278d=installBuiltinSkill();if(_0x2d278d['ok']){console[_0x94b18(0x11d)](a47_0x3e4eb0[_0x94b18(0x134)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x2d278d[_0x94b18(0x130)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors[_0x94b18(0x14b)]('CLI\x20Built-in\x20Skill\x20repair\x20failed\x20['+_0x2d278d['code']+_0x94b18(0x153)+(_0x2d278d[_0x94b18(0x111)]||_0x94b18(0x11e)),'Run:\x20'+_0x2d278d['repairCommand']+_0x94b18(0x126)+CLI_BIN_NAME+_0x94b18(0x14d));}function verifyUpdatedBuiltinSkill(_0x184fba){const _0x48a8a7=a47_0x4e4a9d,_0x7bf9e5=inspectInstalledBuiltinSkillVersion(_0x184fba);if(_0x7bf9e5[_0x48a8a7(0x14e)]===_0x48a8a7(0x147)){console[_0x48a8a7(0x11d)](a47_0x3e4eb0[_0x48a8a7(0x134)](_0x48a8a7(0x154)+_0x184fba+'\x20is\x20up\x20to\x20date.'));return;}const _0x3f149d=_0x7bf9e5[_0x48a8a7(0x130)]?_0x48a8a7(0x125)+_0x184fba+',\x20found\x20'+_0x7bf9e5['skillVersion']:_0x48a8a7(0x125)+_0x184fba+_0x48a8a7(0x159)+_0x7bf9e5['state'];throw CliErrors['apiError'](_0x48a8a7(0x11c)+_0x184fba+_0x48a8a7(0x129)+_0x3f149d,_0x48a8a7(0x14f)+_0x7bf9e5[_0x48a8a7(0x11a)]+_0x48a8a7(0x126)+CLI_BIN_NAME+_0x48a8a7(0x14d));}async function execute(_0x720a38){const _0x33c2b3=a47_0x4e4a9d;await validateUpdateFlags(_0x720a38);const _0x45afe4=getCurrentVersion();console[_0x33c2b3(0x11d)]('Current\x20version:\x20'+_0x45afe4);const _0x5aa01d=a47_0x263ce3(_0x33c2b3(0x148))['start'](),_0x113c21=await resolveTargetVersion(_0x720a38);if(!_0x113c21){const _0x4a1783=_0x720a38[_0x33c2b3(0x152)](_0x33c2b3(0x15e))?_0x33c2b3(0x151):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x5aa01d['fail'](_0x4a1783),console[_0x33c2b3(0x11d)](a47_0x3e4eb0[_0x33c2b3(0x134)](_0x33c2b3(0x13f)+NPM_PACKAGE_NAME+_0x33c2b3(0x12b))),{'ok':![],'message':_0x4a1783};}const _0x5338c1=a47_0x18b019['valid'](VERSION),_0x349f6d=a47_0x18b019['valid'](_0x113c21[_0x33c2b3(0x142)]);if(!_0x5338c1||!_0x349f6d)return _0x5aa01d[_0x33c2b3(0x12d)](_0x33c2b3(0x140)),{'ok':![],'message':_0x33c2b3(0x140)};if(!shouldInstallTarget(_0x5338c1,_0x113c21)){const _0x30d723=_0x113c21[_0x33c2b3(0x120)]===_0x33c2b3(0x142)?'Already\x20on\x20requested\x20version\x20(v'+_0x113c21[_0x33c2b3(0x142)]+')':a47_0x18b019['gt'](_0x5338c1,_0x349f6d)?_0x33c2b3(0x12a)+_0x45afe4+'\x20is\x20newer\x20than\x20npm\x20latest\x20v'+_0x113c21[_0x33c2b3(0x142)]:_0x33c2b3(0x121)+_0x113c21[_0x33c2b3(0x142)]+')';return _0x5aa01d['succeed'](_0x30d723),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x5aa01d[_0x33c2b3(0x14c)](getInstallPlanLabel(_0x45afe4,_0x113c21));const _0x59301d=detectPackageManager(),_0x32bad8=_0x59301d==='npm'?resolveNpmBin(_0x33c2b3(0x14a)):_0x59301d,_0x270acc=a47_0x263ce3('Updating\x20via\x20'+_0x59301d+_0x33c2b3(0x149))[_0x33c2b3(0x138)]();try{await execa(_0x32bad8,[_0x33c2b3(0x128),'-g',NPM_PACKAGE_NAME+'@'+_0x113c21[_0x33c2b3(0x142)]],{'stdio':_0x33c2b3(0x15b)}),_0x270acc[_0x33c2b3(0x133)](_0x33c2b3(0x150)+_0x113c21[_0x33c2b3(0x142)]),console['log'](a47_0x3e4eb0[_0x33c2b3(0x134)](_0x33c2b3(0x157)));}catch(_0xc25ffc){return _0x270acc[_0x33c2b3(0x12d)](_0x33c2b3(0x158)),console[_0x33c2b3(0x111)](a47_0x3e4eb0[_0x33c2b3(0x11f)]('\x20\x20'+_0xc25ffc[_0x33c2b3(0x137)])),console[_0x33c2b3(0x11d)](a47_0x3e4eb0[_0x33c2b3(0x134)](_0x33c2b3(0x124)+_0x59301d+_0x33c2b3(0x115)+NPM_PACKAGE_NAME+'@'+_0x113c21[_0x33c2b3(0x142)])),{'ok':![],'message':_0xc25ffc['message']};}return verifyUpdatedBuiltinSkill(_0x113c21[_0x33c2b3(0x142)]),{'ok':!![]};}export const updateDefinition={'service':a47_0x4e4a9d(0x15d),'command':'run','description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a47_0x4e4a9d(0x13a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
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 +1 @@
1
- (function(_0x5a1175,_0x3d3195){const _0x157bcc=a48_0x7ac2,_0x4f946d=_0x5a1175();while(!![]){try{const _0x1e63aa=-parseInt(_0x157bcc(0x1b6))/0x1+-parseInt(_0x157bcc(0x1ad))/0x2+-parseInt(_0x157bcc(0x1ae))/0x3*(parseInt(_0x157bcc(0x1b4))/0x4)+parseInt(_0x157bcc(0x1b2))/0x5+-parseInt(_0x157bcc(0x1b0))/0x6*(-parseInt(_0x157bcc(0x1b5))/0x7)+-parseInt(_0x157bcc(0x1af))/0x8+-parseInt(_0x157bcc(0x1b3))/0x9*(-parseInt(_0x157bcc(0x1b1))/0xa);if(_0x1e63aa===_0x3d3195)break;else _0x4f946d['push'](_0x4f946d['shift']());}catch(_0x573d9e){_0x4f946d['push'](_0x4f946d['shift']());}}}(a48_0x51f5,0xd83cc));function a48_0x7ac2(_0x433ef4,_0x1737b7){_0x433ef4=_0x433ef4-0x1ad;const _0x51f5ff=a48_0x51f5();let _0x7ac272=_0x51f5ff[_0x433ef4];return _0x7ac272;}import{codegenSdk}from'../../commands/codegen/sdk.js';function a48_0x51f5(){const _0x57ec78=['3AfNEXi','11182928Kgbflh','35124sVpzNL','22730770wkxIWA','8484015ZMlkVS','9eAXcZD','855692sLXLqP','826cZkeXA','1696494alxEVL','933322vUkmvz'];a48_0x51f5=function(){return _0x57ec78;};return a48_0x51f5();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
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 +1 @@
1
- const a49_0x853356=a49_0x19e8;(function(_0x56b9cc,_0x101113){const _0x5a2f79=a49_0x19e8,_0x3a722c=_0x56b9cc();while(!![]){try{const _0xb25054=parseInt(_0x5a2f79(0x1e9))/0x1*(-parseInt(_0x5a2f79(0x1f8))/0x2)+parseInt(_0x5a2f79(0x200))/0x3*(-parseInt(_0x5a2f79(0x1fc))/0x4)+parseInt(_0x5a2f79(0x1f2))/0x5+-parseInt(_0x5a2f79(0x1ed))/0x6+-parseInt(_0x5a2f79(0x1f3))/0x7+parseInt(_0x5a2f79(0x1f1))/0x8+parseInt(_0x5a2f79(0x1fe))/0x9*(parseInt(_0x5a2f79(0x1f9))/0xa);if(_0xb25054===_0x101113)break;else _0x3a722c['push'](_0x3a722c['shift']());}catch(_0x5c125a){_0x3a722c['push'](_0x3a722c['shift']());}}}(a49_0x200b,0x2d1ae));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a49_0x19e8(_0xae39bb,_0x4fa0a5){_0xae39bb=_0xae39bb-0x1e9;const _0x200b90=a49_0x200b();let _0x19e8a8=_0x200b90[_0xae39bb];return _0x19e8a8;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x200b(){const _0x5eecb1=['alias','bool','811566aYpCJS','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Omit\x20import\x20statements\x20from\x20generated\x20code','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','2778432UqVcsX','790110ICoDxu','2095492RrlzEa','string','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','operation','str','10674AmZUBl','50GiOZup','code','sdk','52bQhdFY','skip-imports','552555psLtoE','tableName','26049YinTJg','15hbNRvx','read'];a49_0x200b=function(){return _0x5eecb1;};return a49_0x200b();}export const codegenSdk={'service':'codegen','command':a49_0x853356(0x1fb),'description':a49_0x853356(0x1f0),'risk':a49_0x853356(0x1ea),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x853356(0x1eb),'type':a49_0x853356(0x1f4),'description':a49_0x853356(0x1ee)},{'name':'operation','type':a49_0x853356(0x1f4),'required':!![],'description':a49_0x853356(0x1f5)},{'name':a49_0x853356(0x1fd),'type':'boolean','description':a49_0x853356(0x1ef)}],async 'execute'(_0x3e2bd4){const _0x3530cf=a49_0x853356,{dataset:_0x222e48,operation:_0x147f5b}=await getOperationDetail(_0x3e2bd4['appCode'],_0x3e2bd4[_0x3530cf(0x1f7)](_0x3530cf(0x1fa)),_0x3e2bd4[_0x3530cf(0x1f7)]('operation')),_0x1d3b36=generateSdkCode(_0x222e48,_0x147f5b,{'includeImports':!_0x3e2bd4[_0x3530cf(0x1ec)](_0x3530cf(0x1fd))});return{'ok':!![],'data':{'dataset':{'name':_0x222e48['name'],'code':_0x222e48['code'],'tableName':_0x222e48[_0x3530cf(0x1ff)]},'operation':_0x3e2bd4['str'](_0x3530cf(0x1f6)),'code':_0x1d3b36}};}};
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 +1 @@
1
- const a50_0x3fe6f2=a50_0x3b07;function a50_0x5171(){const _0x5786b0=['appCode','string','sdk','bool','4303554EdsVkg','5LRtyKL','6797976Qqbiqw','458930xhsKPg','2261520jfKEbF','target','read','codegen','boolean','9978786NrBktR','7yVAnXO','sql','sqlcode','no-imports','789045SoEJMK','sqlName','682CMsrTS','Omit\x20import\x20statements\x20from\x20generated\x20code','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','str','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','2GjcvLX','bff','725229USTbcU'];a50_0x5171=function(){return _0x5786b0;};return a50_0x5171();}(function(_0x5d9961,_0x269961){const _0x1d5f03=a50_0x3b07,_0x246507=_0x5d9961();while(!![]){try{const _0x48ae14=-parseInt(_0x1d5f03(0x11a))/0x1*(parseInt(_0x1d5f03(0x134))/0x2)+parseInt(_0x1d5f03(0x12d))/0x3+-parseInt(_0x1d5f03(0x123))/0x4+parseInt(_0x1d5f03(0x120))/0x5*(-parseInt(_0x1d5f03(0x11f))/0x6)+parseInt(_0x1d5f03(0x129))/0x7*(parseInt(_0x1d5f03(0x121))/0x8)+-parseInt(_0x1d5f03(0x128))/0x9+parseInt(_0x1d5f03(0x122))/0xa*(parseInt(_0x1d5f03(0x12f))/0xb);if(_0x48ae14===_0x269961)break;else _0x246507['push'](_0x246507['shift']());}catch(_0x151a9d){_0x246507['push'](_0x246507['shift']());}}}(a50_0x5171,0xcd722));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x3b07(_0x532be8,_0x156870){_0x532be8=_0x532be8-0x11a;const _0x5171b3=a50_0x5171();let _0x3b07a2=_0x5171b3[_0x532be8];return _0x3b07a2;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x3fe6f2(0x126),'command':a50_0x3fe6f2(0x12a),'description':a50_0x3fe6f2(0x133),'risk':a50_0x3fe6f2(0x125),'flags':[SQLCODE_FLAG,{'name':a50_0x3fe6f2(0x124),'type':a50_0x3fe6f2(0x11c),'description':a50_0x3fe6f2(0x131),'default':a50_0x3fe6f2(0x11d),'enum':[a50_0x3fe6f2(0x11d),a50_0x3fe6f2(0x135)]},{'name':a50_0x3fe6f2(0x12c),'type':a50_0x3fe6f2(0x127),'description':a50_0x3fe6f2(0x130)}],async 'execute'(_0x1c0701){const _0x1cec83=a50_0x3fe6f2,_0xd1126d=await getSqlQueryInfo(_0x1c0701[_0x1cec83(0x11b)],_0x1c0701[_0x1cec83(0x132)](_0x1cec83(0x12b))),_0x18f076=_0x1c0701[_0x1cec83(0x132)](_0x1cec83(0x124))||_0x1cec83(0x11d),_0x5da1d2=generateSqlCodeTemplate(_0xd1126d,{'target':_0x18f076,'includeImports':!_0x1c0701[_0x1cec83(0x11e)](_0x1cec83(0x12c))});return{'ok':!![],'data':{'sqlCode':_0xd1126d['sqlCode'],'sqlName':_0xd1126d[_0x1cec83(0x12e)],'target':_0x18f076,'code':_0x5da1d2}};}};
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 +1 @@
1
- (function(_0x2a94c6,_0x2dbefd){const _0x341e13=a51_0x435a,_0x35737b=_0x2a94c6();while(!![]){try{const _0x3ff9c5=parseInt(_0x341e13(0x1a0))/0x1*(parseInt(_0x341e13(0x1b1))/0x2)+-parseInt(_0x341e13(0x1ab))/0x3*(-parseInt(_0x341e13(0x1ad))/0x4)+parseInt(_0x341e13(0x194))/0x5*(-parseInt(_0x341e13(0x195))/0x6)+parseInt(_0x341e13(0x1ba))/0x7+parseInt(_0x341e13(0x1bb))/0x8+parseInt(_0x341e13(0x197))/0x9*(-parseInt(_0x341e13(0x199))/0xa)+parseInt(_0x341e13(0x1b8))/0xb*(-parseInt(_0x341e13(0x196))/0xc);if(_0x3ff9c5===_0x2dbefd)break;else _0x35737b['push'](_0x35737b['shift']());}catch(_0x5a9f61){_0x35737b['push'](_0x35737b['shift']());}}}(a51_0x230e,0xb1472));import{CliErrors}from'../../errors.js';function a51_0x230e(){const _0x2564bd=['string','trim','App\x20\x22','bool','369bBdiwP','\x20<name>\x20--appcode\x20<code>','1628hWrsAr','\x20Remaining\x20app\x20\x22','\x22\x20not\x20found.','appcode','16TVqYlY','str','Use\x20global\x20config\x20scope','apps','Usage:\x20','Updated','keys','1170323Eobiyu','\x22\x20(appcode:\x20','8896461jvsytI','7567560Ddxsin','Added','\x20Default\x20app\x20is\x20\x22','boolean','length','\x22\x20is\x20selected\x20automatically.','Removed\x20app\x20\x22','globalConfig','project','args','15ZdxiJg','170256stnUMD','228nwhASh','927ZcFNgM','App\x20code','19640LzNskx','both','object','\x20<name>\x20[--global]','Missing\x20app\x20name.','\x20config.','\x20<name>','96011LSaozM','\x22\x20still\x20defined\x20in\x20','projectConfig','validation','\x20app\x20\x22','defaultApp','global'];a51_0x230e=function(){return _0x2564bd;};return a51_0x230e();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';function a51_0x435a(_0x2eefdb,_0x4a1eee){_0x2eefdb=_0x2eefdb-0x192;const _0x230eb8=a51_0x230e();let _0x435a9b=_0x230eb8[_0x2eefdb];return _0x435a9b;}import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x20fe96=a51_0x435a;return[{'name':'appcode','type':_0x20fe96(0x1a7),'description':_0x20fe96(0x198),'required':!![]},{'name':_0x20fe96(0x1a6),'type':_0x20fe96(0x1be),'description':_0x20fe96(0x1b3),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x33f35d=a51_0x435a;return[{'name':_0x33f35d(0x1a6),'type':_0x33f35d(0x1be),'description':_0x33f35d(0x1b3),'default':![]}];}export async function validateAppName(_0x9a0785,_0x12ea91){const _0x4b078a=a51_0x435a,_0xf95cd=_0x9a0785[_0x4b078a(0x193)][0x0]?.[_0x4b078a(0x1a8)]();if(!_0xf95cd)throw CliErrors['validation'](_0x4b078a(0x19d),_0x4b078a(0x1b5)+CLI_BIN_NAME+'\x20'+_0x12ea91+_0x4b078a(0x19f));}export async function runAppAdd(_0x22eb73,_0x41ca57){const _0x52dac3=a51_0x435a,_0x3364f1=_0x22eb73[_0x52dac3(0x193)][0x0]?.[_0x52dac3(0x1a8)]();if(!_0x3364f1)throw CliErrors[_0x52dac3(0x1a3)](_0x52dac3(0x19d),_0x52dac3(0x1b5)+CLI_BIN_NAME+'\x20'+_0x41ca57+_0x52dac3(0x1ac));const _0x4077a3=_0x22eb73[_0x52dac3(0x1b2)](_0x52dac3(0x1b0));if(!_0x4077a3)throw CliErrors['flagMissing'](_0x52dac3(0x1b0),_0x52dac3(0x1b5)+CLI_BIN_NAME+'\x20'+_0x41ca57+'\x20<name>\x20--appcode\x20<code>');const _0x480277={'global':_0x22eb73[_0x52dac3(0x1aa)]('global')},_0x188c75=readConfig(_0x480277);if(!_0x188c75[_0x52dac3(0x1b4)])_0x188c75[_0x52dac3(0x1b4)]={};const _0x168814={'appcode':_0x4077a3,...collectAppProfileOverrides(_0x22e6c3=>_0x22eb73[_0x52dac3(0x1b2)](_0x22e6c3))},_0x1bfc8c=_0x188c75[_0x52dac3(0x1b4)],_0x371caa=Object[_0x52dac3(0x1b7)](_0x1bfc8c),_0x58d46b=typeof _0x188c75[_0x52dac3(0x1a5)]===_0x52dac3(0x1a7)&&_0x1bfc8c[_0x188c75['defaultApp']]?_0x188c75[_0x52dac3(0x1a5)]:_0x371caa[_0x52dac3(0x1bf)]===0x1?_0x371caa[0x0]:undefined,_0x5e442b=!!_0x1bfc8c[_0x3364f1];_0x1bfc8c[_0x3364f1]=_0x168814;const _0xe79cca=normalizeStoredDefaultApp(_0x188c75,_0x58d46b);writeConfig(_0x188c75,_0x480277);const _0x483922=!_0x5e442b&&_0xe79cca?_0x52dac3(0x1bd)+_0xe79cca+'\x22.':'',_0x4d0179=(_0x5e442b?_0x52dac3(0x1b6):_0x52dac3(0x1bc))+_0x52dac3(0x1a4)+_0x3364f1+_0x52dac3(0x1b9)+_0x4077a3+')'+scopeLabel(_0x480277)+'.'+_0x483922;return{'ok':!![],'message':_0x4d0179};}export async function runAppRemove(_0x3b1c53,_0x2a3cef){const _0x3e0443=a51_0x435a,_0x390058=_0x3b1c53[_0x3e0443(0x193)][0x0]?.['trim']();if(!_0x390058)throw CliErrors['validation'](_0x3e0443(0x19d),_0x3e0443(0x1b5)+CLI_BIN_NAME+'\x20'+_0x2a3cef+_0x3e0443(0x19c));const _0x5d0f04=_0x3b1c53['bool'](_0x3e0443(0x1a6)),{config:_0x3ddfc2,layers:_0x2eec81}=readRawConfigWithLayers(),_0xfe4a15=_0x3ddfc2[_0x3e0443(0x1b4)]??{};if(!_0xfe4a15[_0x390058])throw CliErrors[_0x3e0443(0x1a3)](_0x3e0443(0x1a9)+_0x390058+_0x3e0443(0x1af));const _0x989896=_0x2eec81[_0x3e0443(0x1c2)]['apps']&&typeof _0x2eec81[_0x3e0443(0x1c2)][_0x3e0443(0x1b4)]==='object'?_0x2eec81[_0x3e0443(0x1c2)][_0x3e0443(0x1b4)]:{},_0x2ff462=_0x2eec81[_0x3e0443(0x1a2)][_0x3e0443(0x1b4)]&&typeof _0x2eec81[_0x3e0443(0x1a2)][_0x3e0443(0x1b4)]===_0x3e0443(0x19b)?_0x2eec81['projectConfig'][_0x3e0443(0x1b4)]:{},_0x5df2f4=appDefinedIn(_0x390058,_0x989896,_0x2ff462),_0xdf788a=resolveAppScopeForWrite(_0x390058,_0x5d0f04,_0x2eec81),_0x3daa62={'global':_0xdf788a===_0x3e0443(0x1a6)},_0x35223e=readConfig(_0x3daa62),_0x2899c8=_0x35223e[_0x3e0443(0x1b4)];if(!_0x2899c8||!_0x2899c8[_0x390058])throw CliErrors[_0x3e0443(0x1a3)]('App\x20\x22'+_0x390058+'\x22\x20not\x20found.');delete _0x2899c8[_0x390058];let _0x426804='';const _0x39872e=typeof _0x35223e[_0x3e0443(0x1a5)]===_0x3e0443(0x1a7)?_0x35223e[_0x3e0443(0x1a5)]:undefined,_0x4009b2=Object['keys'](_0x2899c8),_0x53101f=_0x39872e===_0x390058?_0x4009b2[0x0]:_0x39872e,_0x3a4912=normalizeStoredDefaultApp(_0x35223e,_0x53101f);if(_0x39872e===_0x390058&&_0x4009b2[_0x3e0443(0x1bf)]===0x1)_0x426804=_0x3e0443(0x1ae)+_0x4009b2[0x0]+_0x3e0443(0x1c0);else _0x39872e===_0x390058&&_0x3a4912&&(_0x426804='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x3a4912+'\x22.');Object[_0x3e0443(0x1b7)](_0x2899c8)[_0x3e0443(0x1bf)]===0x0&&(delete _0x35223e[_0x3e0443(0x1b4)],delete _0x35223e['defaultApp']);writeConfig(_0x35223e,_0x3daa62);const _0x39bef4=_0x5df2f4===_0x3e0443(0x19a)?'\x20Note:\x20app\x20\x22'+_0x390058+_0x3e0443(0x1a1)+(_0xdf788a===_0x3e0443(0x192)?_0x3e0443(0x1a6):'project')+_0x3e0443(0x19e):'';return{'ok':!![],'message':_0x3e0443(0x1c1)+_0x390058+'\x22'+scopeLabel(_0x3daa62)+'.'+_0x426804+_0x39bef4};}
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 +1 @@
1
- function a52_0xab31(_0x304bef,_0x22ff97){_0x304bef=_0x304bef-0xd3;const _0x4ea2b3=a52_0x4ea2();let _0xab31ef=_0x4ea2b3[_0x304bef];return _0xab31ef;}(function(_0x589635,_0x30475e){const _0xe14a3a=a52_0xab31,_0x4555c4=_0x589635();while(!![]){try{const _0x22ed46=-parseInt(_0xe14a3a(0xd5))/0x1+parseInt(_0xe14a3a(0xde))/0x2*(parseInt(_0xe14a3a(0xe2))/0x3)+-parseInt(_0xe14a3a(0xe1))/0x4+-parseInt(_0xe14a3a(0xdc))/0x5+parseInt(_0xe14a3a(0xea))/0x6*(-parseInt(_0xe14a3a(0xdf))/0x7)+parseInt(_0xe14a3a(0xda))/0x8*(parseInt(_0xe14a3a(0xd3))/0x9)+parseInt(_0xe14a3a(0xdb))/0xa*(parseInt(_0xe14a3a(0xd9))/0xb);if(_0x22ed46===_0x30475e)break;else _0x4555c4['push'](_0x4555c4['shift']());}catch(_0x31389b){_0x4555c4['push'](_0x4555c4['shift']());}}}(a52_0x4ea2,0x6731f));import{input,checkbox,select}from'@inquirer/prompts';import a52_0xa7d2ae 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 _0x486215=a52_0xab31,_0xb5fa53=await input({'message':_0x486215(0xec),'validate':_0x489dbb=>{const _0x381a8d=_0x486215,_0x9808c5=validateAppcode(_0x489dbb[_0x381a8d(0xd8)]());return _0x9808c5['valid']||_0x9808c5[_0x381a8d(0xf0)]||'Invalid\x20App\x20Code';}});return _0xb5fa53['trim']();}export async function promptAppSelection(_0x1c5d07){const _0x27f47c=a52_0xab31,_0xf8807a=[{'name':a52_0xa7d2ae[_0x27f47c(0xe9)](_0x27f47c(0xdd)),'value':-0x1},..._0x1c5d07['map']((_0x56762b,_0x195eb2)=>({'name':_0x56762b[_0x27f47c(0xed)]+'\x20\x20'+a52_0xa7d2ae[_0x27f47c(0xef)]('('+_0x56762b[_0x27f47c(0xf1)]+')'),'value':_0x195eb2}))],_0x22cc09=await checkbox({'message':_0x27f47c(0xeb)+a52_0xa7d2ae[_0x27f47c(0xd6)](_0x1c5d07[_0x27f47c(0xe4)])+_0x27f47c(0xf3),'choices':_0xf8807a,'loop':![]});if(_0x22cc09[_0x27f47c(0xd7)](-0x1))return _0x27f47c(0xe7);if(_0x22cc09['length']===0x0)return'custom';return _0x22cc09['map'](_0xeae846=>_0x1c5d07[_0xeae846]);}export async function promptSingleAppSelection(_0x5a7b06){const _0x1b9d3c=a52_0xab31,_0x3a8378=[{'name':a52_0xa7d2ae[_0x1b9d3c(0xef)](_0x1b9d3c(0xe0)),'value':_0x1b9d3c(0xe8)},{'name':a52_0xa7d2ae['yellow']('✎\x20Enter\x20appcode\x20manually'),'value':_0x1b9d3c(0xe7)},..._0x5a7b06['map'](_0x5f1e5c=>({'name':_0x5f1e5c[_0x1b9d3c(0xed)]+'\x20\x20'+a52_0xa7d2ae[_0x1b9d3c(0xef)]('('+_0x5f1e5c[_0x1b9d3c(0xf1)]+')'),'value':_0x5f1e5c[_0x1b9d3c(0xf1)]}))],_0x3e03ee=await select({'message':'Select\x20the\x20app\x20to\x20bind:','choices':_0x3a8378});if(_0x3e03ee===_0x1b9d3c(0xe8))return _0x1b9d3c(0xe8);if(_0x3e03ee===_0x1b9d3c(0xe7))return _0x1b9d3c(0xe7);return _0x5a7b06['find'](_0x4a31d1=>_0x4a31d1['appCode']===_0x3e03ee);}function a52_0x4ea2(){const _0x43f3e8=['84267SUOEtm','cyan','includes','trim','44nkqKgN','401456rCGjuj','2175110CRcfkf','2470015bPfXkc','✎\x20Enter\x20appcode\x20manually','5806aFHynG','631589AXaHBy','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','2379204CjswjV','366pXKotY','\x0aNo\x20available\x20apps\x20found.','length','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','\x20\x20(','custom','skip','yellow','12ByjAeK','Found\x20','App\x20Code:','appName','Fetching\x20available\x20apps...','gray','message','appCode','✎\x20Enter\x20manually','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','99jKOOcn','No\x20available\x20apps\x20found.'];a52_0x4ea2=function(){return _0x43f3e8;};return a52_0x4ea2();}export async function selectSingleAppcode(_0x4a9b01){const _0x242c19=a52_0xab31;if(!_0x4a9b01)return writeCliSideChannelLine(a52_0xa7d2ae['gray']('(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)')),_fallbackOrSkip();writeCliSideChannelLine(_0x242c19(0xee));let _0x27c752;try{_0x27c752=await withActiveCookie(_0x4a9b01,()=>listRemoteApps());}catch(_0x25dd13){writeCliSideChannelLine(a52_0xa7d2ae['yellow'](_0x242c19(0xe5)));if(_0x25dd13 instanceof Error)writeCliSideChannelLine(a52_0xa7d2ae[_0x242c19(0xef)]('\x20\x20('+_0x25dd13['message']+')'));return _fallbackOrSkip();}if(_0x27c752['length']===0x0)return writeCliSideChannelLine(a52_0xa7d2ae[_0x242c19(0xe9)](_0x242c19(0xd4))),_fallbackOrSkip();const _0xfba701=await promptSingleAppSelection(_0x27c752);if(_0xfba701===_0x242c19(0xe8))return'';if(_0xfba701===_0x242c19(0xe7))return promptCustomAppcode();return _0xfba701['appCode'];}export async function selectMultipleApps(_0x208d87){const _0x4cd386=a52_0xab31;writeCliSideChannelLine(_0x4cd386(0xee));let _0x1a14af;try{_0x1a14af=await withActiveCookie(_0x208d87,()=>listRemoteApps());}catch(_0x2747da){writeCliSideChannelLine('\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.');if(_0x2747da instanceof Error)writeCliSideChannelLine(_0x4cd386(0xe6)+_0x2747da['message']+')');return _0x4cd386(0xe7);}if(_0x1a14af[_0x4cd386(0xe4)]===0x0)return writeCliSideChannelLine(_0x4cd386(0xe3)),_0x4cd386(0xe7);return promptAppSelection(_0x1a14af);}async function _fallbackOrSkip(){const _0x17aaa2=a52_0xab31,_0x29703e=await select({'message':_0x17aaa2(0xec),'choices':[{'name':a52_0xa7d2ae[_0x17aaa2(0xef)]('(Skip;\x20configure\x20later)'),'value':_0x17aaa2(0xe8)},{'name':a52_0xa7d2ae[_0x17aaa2(0xe9)](_0x17aaa2(0xf2)),'value':'manual'}]});if(_0x29703e===_0x17aaa2(0xe8))return'';return promptCustomAppcode();}
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 +1 @@
1
- const a53_0x52d346=a53_0x3ff4;(function(_0xaf7aad,_0x5b2bb8){const _0x5088c2=a53_0x3ff4,_0x3deb3a=_0xaf7aad();while(!![]){try{const _0x49e267=parseInt(_0x5088c2(0x181))/0x1*(parseInt(_0x5088c2(0x17e))/0x2)+-parseInt(_0x5088c2(0x17b))/0x3*(parseInt(_0x5088c2(0x170))/0x4)+parseInt(_0x5088c2(0x173))/0x5+parseInt(_0x5088c2(0x182))/0x6+parseInt(_0x5088c2(0x185))/0x7*(parseInt(_0x5088c2(0x16c))/0x8)+-parseInt(_0x5088c2(0x16b))/0x9+-parseInt(_0x5088c2(0x172))/0xa;if(_0x49e267===_0x5b2bb8)break;else _0x3deb3a['push'](_0x3deb3a['shift']());}catch(_0x566ae9){_0x3deb3a['push'](_0x3deb3a['shift']());}}}(a53_0x2314,0x4f3e3));function a53_0x3ff4(_0x4437d1,_0x4728e8){_0x4437d1=_0x4437d1-0x16a;const _0x2314f0=a53_0x2314();let _0x3ff40a=_0x2314f0[_0x4437d1];return _0x3ff40a;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x52d346(0x16a),a53_0x52d346(0x16f)]),NON_TERMINAL_STATUSES=new Set([a53_0x52d346(0x183),a53_0x52d346(0x179)]);function a53_0x2314(){const _0x27f4ad=['\x20failed:\x20','errorMessage','PROCESSING','\x20task\x20status\x20--task-id\x20','942309ATRNUk','\x20returned\x20unknown\x20status\x20','\x20is\x20pending.','22BGYpAo','has','taskId','13921wAnpLu','1302018ziftlL','PENDING','\x20--appcode\x20','14buQldy','\x20completed\x20successfully.','status','SUCCESS','2851434jIJnWl','216344suoKqe','replace','string','FAILED','4FUhThI','trim','459960riYGiP','2886420rseDME','\x20--format\x20compress','\x20is\x20processing.','Task\x20'];a53_0x2314=function(){return _0x27f4ad;};return a53_0x2314();}export function normalizeAsyncTask(_0x17b390){const _0x1f1fa9=a53_0x52d346,_0x288b46=typeof _0x17b390?.[_0x1f1fa9(0x180)]===_0x1f1fa9(0x16e)?_0x17b390[_0x1f1fa9(0x180)][_0x1f1fa9(0x171)]():'';if(!_0x288b46)throw CliErrors['apiError']('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x7574c1=typeof _0x17b390[_0x1f1fa9(0x187)]===_0x1f1fa9(0x16e)?_0x17b390[_0x1f1fa9(0x187)][_0x1f1fa9(0x171)]()['toUpperCase']():'';if(!_0x7574c1)throw CliErrors['apiError']('Async\x20task\x20'+_0x288b46+'\x20response\x20did\x20not\x20contain\x20a\x20status.');return{'taskId':_0x288b46,'status':_0x7574c1,'errorMessage':typeof _0x17b390['errorMessage']==='string'&&_0x17b390[_0x1f1fa9(0x178)][_0x1f1fa9(0x171)]()?_0x17b390[_0x1f1fa9(0x178)]['trim']():null,'isTerminal':TERMINAL_STATUSES['has'](_0x7574c1),'knownStatus':TERMINAL_STATUSES[_0x1f1fa9(0x17f)](_0x7574c1)||NON_TERMINAL_STATUSES[_0x1f1fa9(0x17f)](_0x7574c1)};}export function buildAsyncTaskStatusCommand(_0x553ca1,_0x438bf2){const _0x5f0d4a=a53_0x52d346;return CLI_BIN_NAME+_0x5f0d4a(0x17a)+quoteShellArg(_0x553ca1)+_0x5f0d4a(0x184)+quoteShellArg(_0x438bf2)+_0x5f0d4a(0x174);}export function asyncTaskMessage(_0x7667ad){const _0x2b47df=a53_0x52d346;switch(_0x7667ad[_0x2b47df(0x187)]){case _0x2b47df(0x183):return _0x2b47df(0x176)+_0x7667ad[_0x2b47df(0x180)]+_0x2b47df(0x17d);case _0x2b47df(0x179):return _0x2b47df(0x176)+_0x7667ad[_0x2b47df(0x180)]+_0x2b47df(0x175);case _0x2b47df(0x16a):return'Task\x20'+_0x7667ad[_0x2b47df(0x180)]+_0x2b47df(0x186);case'FAILED':return _0x7667ad['errorMessage']?_0x2b47df(0x176)+_0x7667ad[_0x2b47df(0x180)]+_0x2b47df(0x177)+_0x7667ad[_0x2b47df(0x178)]:_0x2b47df(0x176)+_0x7667ad['taskId']+'\x20failed.';default:return _0x2b47df(0x176)+_0x7667ad[_0x2b47df(0x180)]+_0x2b47df(0x17c)+_0x7667ad['status']+'.';}}function quoteShellArg(_0x3ce344){const _0x48c907=a53_0x52d346;return'\x27'+_0x3ce344[_0x48c907(0x16d)](/'/g,'\x27\x5c\x27\x27')+'\x27';}
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 +1 @@
1
- function a54_0x2fe6(_0x4a0d6b,_0x22a5b9){_0x4a0d6b=_0x4a0d6b-0x1dc;var _0x40068f=a54_0x4006();var _0x2fe6eb=_0x40068f[_0x4a0d6b];return _0x2fe6eb;}(function(_0x1ca39a,_0x4ed5f4){var _0x552a9b=a54_0x2fe6,_0x5d879a=_0x1ca39a();while(!![]){try{var _0x4680d=parseInt(_0x552a9b(0x1df))/0x1+parseInt(_0x552a9b(0x1e4))/0x2+-parseInt(_0x552a9b(0x1dd))/0x3+parseInt(_0x552a9b(0x1e2))/0x4+-parseInt(_0x552a9b(0x1e0))/0x5*(parseInt(_0x552a9b(0x1e6))/0x6)+parseInt(_0x552a9b(0x1de))/0x7+-parseInt(_0x552a9b(0x1e3))/0x8;if(_0x4680d===_0x4ed5f4)break;else _0x5d879a['push'](_0x5d879a['shift']());}catch(_0x24dc0d){_0x5d879a['push'](_0x5d879a['shift']());}}}(a54_0x4006,0xe4e0b));function a54_0x4006(){var _0x235137=['949844nbnKdc','25ukrjWZ','description','3060236RhBPeT','23581608IQRqBm','2480500dMFPpD','url','110910mehTHf','defineProperties','2377584bntHBN','12704888KRhrNj'];a54_0x4006=function(){return _0x235137;};return a54_0x4006();}export function asDryRunResult(_0x1bd68a,_0x4bb61d){var _0x20484e=a54_0x2fe6;return Object[_0x20484e(0x1dc)](_0x1bd68a,{'method':{'value':_0x4bb61d['method'],'enumerable':![]},'url':{'value':_0x4bb61d[_0x20484e(0x1e5)],'enumerable':![]},..._0x4bb61d[_0x20484e(0x1e1)]?{'description':{'value':_0x4bb61d[_0x20484e(0x1e1)],'enumerable':![]}}:{}});}
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 +1 @@
1
- const a55_0x5d3fb4=a55_0x19d1;(function(_0x4d77c4,_0x53ef03){const _0xaba81d=a55_0x19d1,_0x51f767=_0x4d77c4();while(!![]){try{const _0x273a06=parseInt(_0xaba81d(0x205))/0x1*(-parseInt(_0xaba81d(0x1f4))/0x2)+parseInt(_0xaba81d(0x1fc))/0x3+parseInt(_0xaba81d(0x201))/0x4+parseInt(_0xaba81d(0x204))/0x5+-parseInt(_0xaba81d(0x1e9))/0x6*(parseInt(_0xaba81d(0x1ec))/0x7)+parseInt(_0xaba81d(0x1ee))/0x8*(parseInt(_0xaba81d(0x1f3))/0x9)+-parseInt(_0xaba81d(0x1ef))/0xa*(-parseInt(_0xaba81d(0x1ed))/0xb);if(_0x273a06===_0x53ef03)break;else _0x51f767['push'](_0x51f767['shift']());}catch(_0x4dbe89){_0x51f767['push'](_0x51f767['shift']());}}}(a55_0x259e,0x19ce3));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x5d3fb4(0x1ea),'type':a55_0x5d3fb4(0x1fa),'required':!![],'description':a55_0x5d3fb4(0x1e0)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x5d3fb4(0x1fb),'type':a55_0x5d3fb4(0x1fa),'required':!![],'description':a55_0x5d3fb4(0x1eb)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x5d3fb4(0x1f7),'type':a55_0x5d3fb4(0x1fa),'required':!![],'description':a55_0x5d3fb4(0x1e1)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x5d3fb4(0x1fd),'type':'string','required':!![],'description':'Target\x20field\x20name'};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x5d3fb4(0x1f1),'type':a55_0x5d3fb4(0x1f8),'description':a55_0x5d3fb4(0x1f5)};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x5d3fb4(0x200),'type':a55_0x5d3fb4(0x1fa),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x5d3fb4(0x1e8),'type':a55_0x5d3fb4(0x1fa),'enum':[a55_0x5d3fb4(0x1f9),'ONE_TO_MANY','MANY_TO_ONE',a55_0x5d3fb4(0x1df)],'description':a55_0x5d3fb4(0x1e7)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x5d3fb4(0x1ff),'type':a55_0x5d3fb4(0x1f6),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x5d3fb4(0x1de)};export const CODE_FLAG={'name':a55_0x5d3fb4(0x1e3),'type':a55_0x5d3fb4(0x1fa),'required':!![],'description':a55_0x5d3fb4(0x1f0),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x5d3fb4(0x1fe),'description':a55_0x5d3fb4(0x1f0)};function a55_0x19d1(_0x71f306,_0x1e6f8e){_0x71f306=_0x71f306-0x1de;const _0x259e4e=a55_0x259e();let _0x19d173=_0x259e4e[_0x71f306];return _0x19d173;}export const SQLCODE_FLAG={'name':a55_0x5d3fb4(0x203),'type':a55_0x5d3fb4(0x1fa),'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':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a55_0x259e(){const _0x5cb1ca=['17145rJqwVe','to-column','datasetcode','global','to-label-column','254044EmJtbK','dbtype','sqlcode','780920cbhtYU','187ECOmAO','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','MANY_TO_MANY','Source\x20DB_TABLE\x20dataset\x20code','Target\x20DB_TABLE\x20dataset\x20code','POSTGRESQL','code','MYSQL','skip-connection-test','App\x20code\x20(e.g.\x20app-xxxxx)','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','cardinality','4044AKsBmY','from-datasetcode','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','1799CZPiiz','1001561yGnTps','8336CrPfgk','20veKdAG','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','from-dblink-id','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','477HIfcIC','1966QLXpFm','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','boolean','to-datasetcode','number','ONE_TO_ONE','string','from-column'];a55_0x259e=function(){return _0x5cb1ca;};return a55_0x259e();}export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':'string','required':![],'description':a55_0x5d3fb4(0x1f2)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x5d3fb4(0x1e6)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x5d3fb4(0x1f8),'required':!![],'description':a55_0x5d3fb4(0x206)};export const DB_TYPE_FLAG={'name':a55_0x5d3fb4(0x202),'type':'string','required':!![],'description':'Database\x20product\x20type','enum':[a55_0x5d3fb4(0x1e4),a55_0x5d3fb4(0x1e2)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x5d3fb4(0x1e5),'type':'boolean','description':a55_0x5d3fb4(0x207)};
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 +1 @@
1
- function a56_0x4d78(){const _0xbac14c=['File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','969465IiyYaR','3459296HyHGir','983385Fbtyxv','File\x20not\x20found:\x20','4hFJXbo','validation','639330OGqbrQ','487620luokTN','25934uuuMEY','78323jmCSug','trim','size'];a56_0x4d78=function(){return _0xbac14c;};return a56_0x4d78();}(function(_0x4e8be7,_0x5ee592){const _0x537332=a56_0x3a65,_0x395528=_0x4e8be7();while(!![]){try{const _0x1d3acf=-parseInt(_0x537332(0x134))/0x1+parseInt(_0x537332(0x133))/0x2+-parseInt(_0x537332(0x12d))/0x3+parseInt(_0x537332(0x12f))/0x4*(-parseInt(_0x537332(0x132))/0x5)+parseInt(_0x537332(0x131))/0x6+parseInt(_0x537332(0x12b))/0x7+parseInt(_0x537332(0x12c))/0x8;if(_0x1d3acf===_0x5ee592)break;else _0x395528['push'](_0x395528['shift']());}catch(_0x48e8f){_0x395528['push'](_0x395528['shift']());}}}(a56_0x4d78,0x2d9a3));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a56_0x3a65(_0xaad310,_0x59c1ca){_0xaad310=_0xaad310-0x12b;const _0x4d78e1=a56_0x4d78();let _0x3a655c=_0x4d78e1[_0xaad310];return _0x3a655c;}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5ccba0){if(_0x5ccba0>=BYTES_PER_MB){const _0x46e264=Math['ceil'](_0x5ccba0/BYTES_PER_MB*0x64)/0x64;return _0x46e264['toFixed'](0x2)+'\x20MB';}return _0x5ccba0+'\x20B';}export function requireDevelopmentUploadFile(_0x2d8c3c,_0xa563e2){const _0x459d5e=a56_0x3a65,_0x55f7a0=_0x2d8c3c[_0x459d5e(0x135)]();if(!_0x55f7a0)throw CliErrors[_0x459d5e(0x130)](_0xa563e2+_0x459d5e(0x138));if(!existsSync(_0x55f7a0))throw CliErrors[_0x459d5e(0x130)](_0x459d5e(0x12e)+_0x55f7a0);const _0x3e484d=statSync(_0x55f7a0);if(!_0x3e484d['isFile']())throw CliErrors['validation']('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x55f7a0);if(_0x3e484d[_0x459d5e(0x136)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x459d5e(0x137)+_0x55f7a0+'\x20('+formatBytes(_0x3e484d['size'])+')');return{'path':_0x55f7a0,'size':_0x3e484d['size']};}
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 +1 @@
1
- (function(_0x50e75e,_0x420334){const _0x4607b9=a57_0x529b,_0x6c01fa=_0x50e75e();while(!![]){try{const _0x1afbfe=parseInt(_0x4607b9(0xac))/0x1*(-parseInt(_0x4607b9(0xaf))/0x2)+-parseInt(_0x4607b9(0xb7))/0x3*(-parseInt(_0x4607b9(0xb2))/0x4)+-parseInt(_0x4607b9(0xb4))/0x5*(-parseInt(_0x4607b9(0xb9))/0x6)+parseInt(_0x4607b9(0xb3))/0x7+parseInt(_0x4607b9(0xb6))/0x8*(-parseInt(_0x4607b9(0xae))/0x9)+-parseInt(_0x4607b9(0xb8))/0xa*(-parseInt(_0x4607b9(0xba))/0xb)+-parseInt(_0x4607b9(0xab))/0xc;if(_0x1afbfe===_0x420334)break;else _0x6c01fa['push'](_0x6c01fa['shift']());}catch(_0x7090a4){_0x6c01fa['push'](_0x6c01fa['shift']());}}}(a57_0x2229,0x8979f));function a57_0x529b(_0x420871,_0x189ae0){_0x420871=_0x420871-0xaa;const _0x222917=a57_0x2229();let _0x529b8b=_0x222917[_0x420871];return _0x529b8b;}export function validateAppcode(_0x4bd428){const _0x241ca0=a57_0x529b,_0x50675b=_0x4bd428[_0x241ca0(0xad)]();if(!_0x50675b)return{'valid':![],'message':_0x241ca0(0xb0)};if(_0x50675b['length']>0x64)return{'valid':![],'message':_0x241ca0(0xb1)};if(!/^[A-Za-z0-9_-]+$/[_0x241ca0(0xaa)](_0x50675b))return{'valid':![],'message':_0x241ca0(0xb5)};return{'valid':!![]};}function a57_0x2229(){const _0x2d6eb5=['206294zzIkhe','test','13841736sLYsjo','15kabsIL','trim','342ZcPScI','72570AvxawS','App\x20Code\x20cannot\x20be\x20empty','App\x20Code\x20cannot\x20exceed\x20100\x20characters','40884FRDQBM','6763092jSQUew','5xBUQGH','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','55120ACjAzu','123AefboG','190guIbso','4686798yOVDAR'];a57_0x2229=function(){return _0x2d6eb5;};return a57_0x2229();}
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 +1 @@
1
- const a58_0x21a13a=a58_0x3269;(function(_0x11cd13,_0x4fa123){const _0x47fb7d=a58_0x3269,_0x3ebb1c=_0x11cd13();while(!![]){try{const _0x2a4ec9=parseInt(_0x47fb7d(0x96))/0x1+-parseInt(_0x47fb7d(0x86))/0x2+parseInt(_0x47fb7d(0x8d))/0x3*(-parseInt(_0x47fb7d(0x89))/0x4)+-parseInt(_0x47fb7d(0x93))/0x5+parseInt(_0x47fb7d(0x87))/0x6+parseInt(_0x47fb7d(0x7f))/0x7+parseInt(_0x47fb7d(0x8a))/0x8;if(_0x2a4ec9===_0x4fa123)break;else _0x3ebb1c['push'](_0x3ebb1c['shift']());}catch(_0x290836){_0x3ebb1c['push'](_0x3ebb1c['shift']());}}}(a58_0x2cd5,0xea057));import{CliErrors}from'../../errors.js';function a58_0x3269(_0x3d7931,_0x280f80){_0x3d7931=_0x3d7931-0x7f;const _0x2cd5a9=a58_0x2cd5();let _0x32694d=_0x2cd5a9[_0x3d7931];return _0x32694d;}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a58_0x21a13a(0x9a)]),EXTRA_DELETABLE_KEYS=new Set([a58_0x21a13a(0x98),a58_0x21a13a(0x91)]);async function execute(_0x1bdb3b){const _0x4439b2=a58_0x21a13a,_0x52064c=_0x1bdb3b[_0x4439b2(0x95)][0x0]?.[_0x4439b2(0x8e)]();if(!_0x52064c)throw CliErrors[_0x4439b2(0x88)](_0x4439b2(0x9c),_0x4439b2(0x84)+CLI_BIN_NAME+_0x4439b2(0x8f));if(_0x52064c===_0x4439b2(0x85))throw CliErrors[_0x4439b2(0x88)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x52064c)&&!EXTRA_DELETABLE_KEYS[_0x4439b2(0x90)](_0x52064c)&&!LEGACY_DELETABLE_KEYS[_0x4439b2(0x90)](_0x52064c))throw CliErrors[_0x4439b2(0x88)](_0x4439b2(0x92)+_0x52064c+'\x22\x20is\x20not\x20deletable.',_0x4439b2(0x81));const _0x4ca96f=resolveWriteScope({'global':_0x1bdb3b['bool']('global')}),_0x4cfaef=readScopedConfig(_0x4ca96f),_0x2161ad=Object['prototype'][_0x4439b2(0x82)]['call'](_0x4cfaef,_0x52064c);_0x2161ad&&(delete _0x4cfaef[_0x52064c],writeScopedConfig(_0x4cfaef,_0x4ca96f));const _0xa30680=_0x4ca96f===_0x4439b2(0x8b)?_0x4439b2(0x99):'Project';return{'ok':!![],'message':_0x2161ad?'✓\x20'+_0xa30680+'\x20'+_0x52064c+_0x4439b2(0x8c):'✓\x20'+_0xa30680+'\x20'+_0x52064c+_0x4439b2(0x9b),'data':{'key':_0x52064c,'scope':_0x4ca96f,'changed':_0x2161ad}};}export const configDeleteDefinition={'service':a58_0x21a13a(0x80),'command':'delete','description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':'key','description':a58_0x21a13a(0x94),'required':!![]}],'flags':[{'name':a58_0x21a13a(0x8b),'type':a58_0x21a13a(0x83),'description':a58_0x21a13a(0x97),'default':![]}],'execute':execute};function a58_0x2cd5(){const _0x540565=['1266303XNwjJp','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','defaultApp','Global','inherit','\x20already\x20absent','Missing\x20key\x20argument.','11697210LgEWPo','config','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','hasOwnProperty','boolean','Usage:\x20','riskLevel','3823302MyljjE','9654144jNAeTP','validation','2597276gQbwJh','4441112UBShpO','global','\x20deleted','3wtZPJJ','trim','\x20config\x20delete\x20<key>\x20[--global]','has','routing','Top-level\x20key\x20\x22','7909875ZhUaEZ','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','args'];a58_0x2cd5=function(){return _0x540565;};return a58_0x2cd5();}
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 +1 @@
1
- function a59_0x2e83(_0x1cff53,_0x5147e2){_0x1cff53=_0x1cff53-0x88;const _0x5f7693=a59_0x5f76();let _0x2e8387=_0x5f7693[_0x1cff53];return _0x2e8387;}const a59_0x1b9c90=a59_0x2e83;(function(_0x29b83c,_0x6eced8){const _0x19ccf1=a59_0x2e83,_0x208e9b=_0x29b83c();while(!![]){try{const _0x59d5c5=parseInt(_0x19ccf1(0x9f))/0x1*(-parseInt(_0x19ccf1(0x93))/0x2)+parseInt(_0x19ccf1(0x90))/0x3+-parseInt(_0x19ccf1(0x8f))/0x4+parseInt(_0x19ccf1(0x89))/0x5+parseInt(_0x19ccf1(0x94))/0x6+-parseInt(_0x19ccf1(0x95))/0x7*(parseInt(_0x19ccf1(0x96))/0x8)+parseInt(_0x19ccf1(0x91))/0x9*(parseInt(_0x19ccf1(0x98))/0xa);if(_0x59d5c5===_0x6eced8)break;else _0x208e9b['push'](_0x208e9b['shift']());}catch(_0x194cd1){_0x208e9b['push'](_0x208e9b['shift']());}}}(a59_0x5f76,0x3f39f));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a59_0x5f76(){const _0x42a777=['1423667DDawLS','16TleGwt','validation','3739440gEKsBv','key','appcode','config','get','string','object','53397vrXfUb','\x20config\x20get\x20--key\x20<key>','1884395hJhNWH','Get\x20a\x20config\x20value\x20by\x20key','Missing\x20key.','Key\x20not\x20found:\x20','str','read','1285348UiBwxT','35073boqNXu','18WwBmgs','Usage:\x20','12YpMCGi','1025988VLKPJu'];a59_0x5f76=function(){return _0x42a777;};return a59_0x5f76();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x55e6c7){const _0x2f93d4=a59_0x2e83,_0x375c4d=_0x55e6c7[_0x2f93d4(0x8d)](_0x2f93d4(0x99));if(!_0x375c4d)throw CliErrors[_0x2f93d4(0x97)](_0x2f93d4(0x8b),_0x2f93d4(0x92)+CLI_BIN_NAME+_0x2f93d4(0x88));const _0x5bf4b5=readConfig(),_0x2de04d=_0x375c4d==='app'?_0x2f93d4(0x9a):_0x375c4d,_0xac7537=_0x5bf4b5[_0x2de04d];if(_0xac7537===undefined)throw CliErrors[_0x2f93d4(0x97)](_0x2f93d4(0x8c)+_0x375c4d);return{'ok':!![],'data':typeof _0xac7537===_0x2f93d4(0x9e)?_0xac7537:{[_0x2de04d]:_0xac7537},'message':typeof _0xac7537===_0x2f93d4(0x9e)?undefined:String(_0xac7537)};}export const configGetDefinition={'service':a59_0x1b9c90(0x9b),'command':a59_0x1b9c90(0x9c),'description':a59_0x1b9c90(0x8a),'risk':a59_0x1b9c90(0x8e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a59_0x1b9c90(0x99),'type':a59_0x1b9c90(0x9d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
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};