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

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 (372) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/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.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  251. package/lib/commands/user-account/feishu-bind.js +1 -0
  252. package/lib/commands/user-account/index.js +1 -1
  253. package/lib/commands/workspace/add.js +1 -1
  254. package/lib/commands/workspace/index.js +1 -1
  255. package/lib/commands/workspace/remove.js +1 -1
  256. package/lib/config/domain-config.d.ts +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.js +1 -1
  260. package/lib/config/schema.d.ts +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.d.ts +4 -0
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.d.ts +1 -1
  271. package/lib/constant/region.js +1 -1
  272. package/lib/constant/risk.js +1 -1
  273. package/lib/constant/routing-profile.d.ts +14 -1
  274. package/lib/constant/routing-profile.js +1 -1
  275. package/lib/context/app-resolver.d.ts +1 -0
  276. package/lib/context/app-resolver.js +1 -1
  277. package/lib/context/auth-resolver.js +1 -1
  278. package/lib/context/config-loader.js +1 -1
  279. package/lib/context.js +1 -1
  280. package/lib/core/alias-resolver.js +1 -1
  281. package/lib/core/api-client.d.ts +2 -0
  282. package/lib/core/api-client.js +1 -1
  283. package/lib/core/bff/config.js +1 -1
  284. package/lib/core/bff/file-system.js +1 -1
  285. package/lib/core/bff/hash.js +1 -1
  286. package/lib/core/bff/hook-directory.js +1 -1
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/utils.js +1 -1
  289. package/lib/core/cross-db-relation.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.js +1 -1
  292. package/lib/core/instant-api-policy/config.js +1 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.js +1 -1
  305. package/lib/errors.js +1 -1
  306. package/lib/framework/build-all-flags.js +1 -1
  307. package/lib/framework/error-output.js +1 -1
  308. package/lib/framework/explicit-yes.js +1 -1
  309. package/lib/framework/flags.js +1 -1
  310. package/lib/framework/help.js +1 -1
  311. package/lib/framework/index.js +1 -1
  312. package/lib/framework/output.js +1 -1
  313. package/lib/framework/response.js +1 -1
  314. package/lib/framework/runner-alias.js +1 -1
  315. package/lib/framework/runner.js +1 -1
  316. package/lib/framework/schema-export.js +1 -1
  317. package/lib/framework/supported-flags.js +1 -1
  318. package/lib/framework/types.js +1 -1
  319. package/lib/generated/build-info.d.ts +4 -4
  320. package/lib/generated/build-info.js +1 -1
  321. package/lib/generated/official-routing.d.ts +15 -3
  322. package/lib/generated/official-routing.js +1 -1
  323. package/lib/generated/routing-contract.d.ts +2 -2
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.d.ts +5 -0
  335. package/lib/skills/npx-skills-add.js +1 -1
  336. package/lib/skills/skill-presence.js +1 -1
  337. package/lib/telemetry/cli-command-trace.js +1 -1
  338. package/lib/telemetry/cli-help-trace.js +1 -1
  339. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  340. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  341. package/lib/telemetry/send-cli-trace-log.js +1 -1
  342. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.js +1 -1
  350. package/lib/utils/entity-with-id.js +1 -1
  351. package/lib/utils/file-utils.js +1 -1
  352. package/lib/utils/guides-cdn.js +1 -1
  353. package/lib/utils/http-client.js +1 -1
  354. package/lib/utils/is-non-interactive.js +1 -1
  355. package/lib/utils/logger.js +1 -1
  356. package/lib/utils/params.js +1 -1
  357. package/lib/utils/platform.js +1 -1
  358. package/lib/utils/sleep.js +1 -1
  359. package/lib/utils/template-replacer.js +1 -1
  360. package/lib/utils/update-notice.js +1 -1
  361. package/lib/utils/version.js +1 -1
  362. package/lib/utils/with-active-cookie.js +1 -1
  363. package/lib/utils/write-cli-side-channel.js +1 -1
  364. package/package.json +1 -1
  365. package/skills/rabetbase/SKILL.md +4 -3
  366. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  367. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  368. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  369. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  370. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  371. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  372. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a43_0x43c118=a43_0x2eb4;(function(_0x372a49,_0x51da0e){const _0x12cd34=a43_0x2eb4,_0x37478c=_0x372a49();while(!![]){try{const _0x3cd443=parseInt(_0x12cd34(0x199))/0x1+-parseInt(_0x12cd34(0x13f))/0x2+-parseInt(_0x12cd34(0x16f))/0x3*(-parseInt(_0x12cd34(0x150))/0x4)+-parseInt(_0x12cd34(0x12f))/0x5+-parseInt(_0x12cd34(0x18e))/0x6*(parseInt(_0x12cd34(0x13d))/0x7)+parseInt(_0x12cd34(0x18b))/0x8*(parseInt(_0x12cd34(0x16d))/0x9)+parseInt(_0x12cd34(0x133))/0xa;if(_0x3cd443===_0x51da0e)break;else _0x37478c['push'](_0x37478c['shift']());}catch(_0x21a676){_0x37478c['push'](_0x37478c['shift']());}}}(a43_0x3d5e,0x65486));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';function a43_0x2eb4(_0x542375,_0x5df4a9){_0x542375=_0x542375-0x125;const _0x3d5e62=a43_0x3d5e();let _0x2eb422=_0x3d5e62[_0x542375];return _0x2eb422;}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':a43_0x43c118(0x185),'command':'push','description':'Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','risk':a43_0x43c118(0x139),'structuredErrors':!![],'flags':[{'name':a43_0x43c118(0x164),'type':a43_0x43c118(0x16e),'description':a43_0x43c118(0x12a),'enum':[a43_0x43c118(0x149),'ENDPOINT',a43_0x43c118(0x177)]},{'name':'name','type':a43_0x43c118(0x16e),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a43_0x43c118(0x17d),'type':a43_0x43c118(0x165),'description':a43_0x43c118(0x15b)}],async 'dryRun'(_0x269912){const _0x3a99af=a43_0x43c118,_0x3709fd=loadBffProjectConfig(_0x269912[_0x3a99af(0x15c)]),_0x3c3393=await readBffLockFile(_0x3709fd[_0x3a99af(0x175)]),{appLock:_0x1bc278}=ensureLockScope(_0x3c3393??createEmptyBffLock(),_0x269912[_0x3a99af(0x15c)],_0x3709fd[_0x3a99af(0x162)],'push'),_0x27abfb=await getTargetFunctions(_0x3709fd,_0x269912),_0x189bb4=_0x27abfb[_0x3a99af(0x148)](_0x48f537=>_0x48f537[_0x3a99af(0x164)]===_0x3a99af(0x177))?await scanLocalBffFunctions(_0x3709fd,'HOOK'):_0x27abfb,_0x4f2f00=await buildHookMaps(_0x269912[_0x3a99af(0x15c)],_0x269912[_0x3a99af(0x173)],_0x189bb4,_0x1bc278,_0x269912[_0x3a99af(0x126)]||_0x269912[_0x3a99af(0x154)]?.[_0x3a99af(0x147)]||_0x269912[_0x3a99af(0x154)]?.[_0x3a99af(0x14e)]),_0x56237b=_0x269912[_0x3a99af(0x151)]('force'),_0x4a6027=[];for(const _0x681517 of _0x27abfb){const _0x3245ec=await computeFileHash(_0x681517[_0x3a99af(0x145)]),_0x342b4f=_0x1bc278['functions'][_0x681517[_0x3a99af(0x17c)]],_0x17d9f4=!!_0x342b4f&&_0x342b4f[_0x3a99af(0x170)]===_0x3245ec,_0x4d9508=_0x4f2f00[_0x3a99af(0x174)][_0x3a99af(0x15d)](_0x681517['lockKey']),_0x19fd25=!!_0x342b4f?.[_0x3a99af(0x131)]&&_0x342b4f[_0x3a99af(0x13e)]==null&&(_0x56237b||!_0x17d9f4),_0xd2f81b=_0x19fd25?missingRemoteVersionConflict(_0x681517,_0x342b4f):undefined,_0x2a8c76=_0x4f2f00[_0x3a99af(0x157)][_0x3a99af(0x14b)](_0x681517[_0x3a99af(0x17c)])?'failed':!_0x56237b&&_0x17d9f4?_0x3a99af(0x17e):_0xd2f81b?_0x3a99af(0x186):'would_push';_0x4a6027[_0x3a99af(0x13b)]({'lockKey':_0x681517[_0x3a99af(0x17c)],'filePath':_0x681517['filePath'],'remoteId':_0x342b4f?.['remoteId']??null,'mode':_0x342b4f?.[_0x3a99af(0x131)]?_0x3a99af(0x16c):_0x3a99af(0x17a),'status':_0x2a8c76,..._0x4f2f00['failures'][_0x3a99af(0x14b)](_0x681517[_0x3a99af(0x17c)])?{'error':_0x4f2f00['failures'][_0x3a99af(0x15d)](_0x681517[_0x3a99af(0x17c)])}:{},..._0xd2f81b?{'conflict':_0xd2f81b}:{},..._0x4f2f00['existingHooks'][_0x3a99af(0x14b)](_0x681517[_0x3a99af(0x17c)])?{'datasetCode':_0x342b4f?.[_0x3a99af(0x161)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x681517[_0x3a99af(0x17c)])]}:{},..._0x4d9508?{'alias':_0x4d9508[_0x3a99af(0x166)]??null,'datasetCode':_0x4d9508[_0x3a99af(0x161)],'operationType':_0x681517['operationType'],'functionNode':_0x681517[_0x3a99af(0x18c)],'warnings':_0x4d9508[_0x3a99af(0x184)]}:{}});}return{'method':_0x3a99af(0x16a),'url':_0x3a99af(0x171),'body':{'appCode':_0x269912[_0x3a99af(0x15c)],'force':_0x56237b,'files':_0x4a6027,'cacheClearAtRuntime':_0x4a6027[_0x3a99af(0x148)](_0x3c82ef=>_0x3c82ef[_0x3a99af(0x125)]==='would_push'),'cacheClearAtRuntimeTimes':_0x4a6027[_0x3a99af(0x148)](_0x1b1dce=>_0x1b1dce[_0x3a99af(0x125)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x3a99af(0x155)+_0x4a6027[_0x3a99af(0x146)]+_0x3a99af(0x178)};},async 'execute'(_0x3b78c6){const _0x5dc1fe=a43_0x43c118,_0x30fe88=loadBffProjectConfig(_0x3b78c6['appCode']),_0x28d1c4=await readBffLockFile(_0x30fe88[_0x5dc1fe(0x175)]),{lockData:_0x4ada86,appLock:_0x5bef99}=ensureLockScope(_0x28d1c4??createEmptyBffLock(),_0x3b78c6[_0x5dc1fe(0x15c)],_0x30fe88[_0x5dc1fe(0x162)],_0x5dc1fe(0x13b)),_0x1f0779=await getTargetFunctions(_0x30fe88,_0x3b78c6);if(_0x1f0779[_0x5dc1fe(0x146)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x5dc1fe(0x15a)};const _0x34851e=_0x3b78c6[_0x5dc1fe(0x151)]('force'),_0x5547a2=JSON[_0x5dc1fe(0x169)](JSON[_0x5dc1fe(0x132)](_0x4ada86)),_0x118cec=_0x5547a2[_0x5dc1fe(0x152)][_0x3b78c6[_0x5dc1fe(0x15c)]];if(!_0x118cec)throw new Error(_0x5dc1fe(0x19a)+_0x3b78c6[_0x5dc1fe(0x15c)]+_0x5dc1fe(0x138));const _0x1e9352=_0x1f0779['some'](_0x313b40=>_0x313b40['type']==='HOOK')?await scanLocalBffFunctions(_0x30fe88,_0x5dc1fe(0x177)):_0x1f0779,_0x51a275=await buildHookMaps(_0x3b78c6['appCode'],_0x3b78c6[_0x5dc1fe(0x173)],_0x1e9352,_0x118cec,_0x3b78c6['selectedAppName']||_0x3b78c6[_0x5dc1fe(0x154)]?.[_0x5dc1fe(0x147)]||_0x3b78c6[_0x5dc1fe(0x154)]?.[_0x5dc1fe(0x14e)]),_0x370a64=[],_0xdc0981=[],_0xc3a9fa=[],_0x14841b=[];for(const _0x175da7 of _0x1f0779){const _0x1e5f7c=_0x51a275['failures']['get'](_0x175da7[_0x5dc1fe(0x17c)]);if(_0x1e5f7c){_0x14841b[_0x5dc1fe(0x13b)]({'lockKey':_0x175da7[_0x5dc1fe(0x17c)],'error':_0x1e5f7c});continue;}const _0x165284=await computeFileHash(_0x175da7[_0x5dc1fe(0x145)]),_0xa29fac=_0x118cec['functions'][_0x175da7[_0x5dc1fe(0x17c)]];if(!_0x34851e&&_0xa29fac&&_0xa29fac[_0x5dc1fe(0x170)]===_0x165284){_0xdc0981['push']({'lockKey':_0x175da7[_0x5dc1fe(0x17c)],'reason':_0x5dc1fe(0x17e)});continue;}if(_0xa29fac?.['remoteId']&&_0xa29fac[_0x5dc1fe(0x13e)]==null){_0xc3a9fa[_0x5dc1fe(0x13b)](missingRemoteVersionConflict(_0x175da7,_0xa29fac));continue;}try{await uploadSingleFunction(_0x3b78c6['appCode'],_0x175da7,_0x118cec,_0x51a275);const _0x10c2b6=_0x118cec[_0x5dc1fe(0x167)][_0x175da7[_0x5dc1fe(0x17c)]];_0x370a64[_0x5dc1fe(0x13b)]({'lockKey':_0x175da7[_0x5dc1fe(0x17c)],'remoteId':_0x10c2b6?.[_0x5dc1fe(0x131)]??0x0});}catch(_0x1e2d49){const _0x2aed77=remoteVersionChangedConflict(_0x175da7,_0xa29fac,_0x1e2d49);if(_0x2aed77){_0xc3a9fa[_0x5dc1fe(0x13b)](_0x2aed77);continue;}_0x14841b[_0x5dc1fe(0x13b)]({'lockKey':_0x175da7[_0x5dc1fe(0x17c)],'error':_0x1e2d49 instanceof Error?_0x1e2d49[_0x5dc1fe(0x12d)]:String(_0x1e2d49)});}}_0x118cec[_0x5dc1fe(0x176)]=new Date()[_0x5dc1fe(0x168)](),await writeBffLockFile(_0x30fe88[_0x5dc1fe(0x175)],_0x5547a2),await waitForUploadedLockEntries(_0x30fe88[_0x5dc1fe(0x175)],_0x3b78c6[_0x5dc1fe(0x15c)],_0x370a64['map'](_0x1654fa=>_0x1654fa[_0x5dc1fe(0x17c)]));let _0x4c46e3={'attempted':![],'cleared':![]};if(_0x370a64['length']>0x0)try{let _0x28e05d='';for(let _0xf1aaaa=0x0;_0xf1aaaa<CACHE_CLEAR_ATTEMPTS;_0xf1aaaa+=0x1){_0x28e05d=await clearBffScriptCache(),_0xf1aaaa<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4c46e3={'attempted':!![],'cleared':!![],'message':_0x28e05d||_0x5dc1fe(0x187)};}catch(_0x356e51){_0x4c46e3={'attempted':!![],'cleared':![],'error':_0x356e51 instanceof Error?_0x356e51['message']:String(_0x356e51)};}const _0x127fa7=_0x14841b[_0x5dc1fe(0x146)]===0x0&&(_0x4c46e3[_0x5dc1fe(0x198)]?_0x4c46e3[_0x5dc1fe(0x135)]:!![]),_0x4502ff=_0x127fa7,_0x1f8852=_0x4c46e3['attempted']?_0x4c46e3[_0x5dc1fe(0x135)]?_0x5dc1fe(0x15e):'runtime\x20cache\x20clear\x20failed':_0x5dc1fe(0x192);return{'ok':_0x4502ff,'data':{'uploaded':_0x370a64,'skipped':_0xdc0981,'conflicts':_0xc3a9fa,'failed':_0x14841b,'cacheClear':_0x4c46e3,'warnings':[...[..._0x51a275[_0x5dc1fe(0x174)][_0x5dc1fe(0x181)]()]['flatMap'](_0x14f170=>_0x14f170['warnings']),...[..._0x51a275[_0x5dc1fe(0x128)]][_0x5dc1fe(0x14c)](existingHookWarning)]},'message':formatPushMessage(_0x370a64[_0x5dc1fe(0x146)],_0xdc0981[_0x5dc1fe(0x146)],_0xc3a9fa[_0x5dc1fe(0x146)],_0x14841b['length'],_0x1f8852)};}};function missingRemoteVersionConflict(_0x25ed0e,_0x2fade2){const _0x5496b5=a43_0x43c118;return remoteVersionConflict(_0x25ed0e,_0x2fade2,_0x5496b5(0x197),_0x5496b5(0x188));}function remoteVersionChangedConflict(_0x299bf9,_0x13d875,_0x303b01){const _0x37a81e=a43_0x43c118;if(!_0x13d875?.[_0x37a81e(0x131)]||_0x13d875[_0x37a81e(0x13e)]==null||!isRemoteVersionConflict(_0x303b01))return undefined;return remoteVersionConflict(_0x299bf9,_0x13d875,'BFF_REMOTE_VERSION_CHANGED',_0x37a81e(0x142));}function remoteVersionConflict(_0x1f5073,_0x37a574,_0x2e63e4,_0x2559d6){const _0x1a3c19=a43_0x43c118;return{'code':_0x2e63e4,'lockKey':_0x1f5073[_0x1a3c19(0x17c)],'filePath':_0x1f5073[_0x1a3c19(0x145)],'remoteId':_0x37a574[_0x1a3c19(0x131)],..._0x37a574[_0x1a3c19(0x13e)]!=null?{'expectedVersion':_0x37a574['version']}:{},'message':_0x2559d6,'nextAction':{'action':_0x1a3c19(0x190),'command':CLI_BIN_NAME+_0x1a3c19(0x196)+_0x37a574[_0x1a3c19(0x131)]+_0x1a3c19(0x14f),'requiresReview':!![],'message':_0x1a3c19(0x18f)}};}function isRemoteVersionConflict(_0x5d2502){const _0x5ae8eb=a43_0x43c118,_0x510128=_0x5d2502 instanceof Error?_0x5d2502[_0x5ae8eb(0x12d)]:String(_0x5d2502),_0x40e088=getPlatformErrorCode(_0x5d2502)??'';return[_0x510128,_0x40e088][_0x5ae8eb(0x148)](_0x126978=>/(?: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[_0x5ae8eb(0x14a)](_0x126978));}function a43_0x3d5e(){const _0x4027f1=['HOOK','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','profileName','create','delete','lockKey','force','unchanged','filter','set','values','\x20conflict','after','warnings','bff','conflict','Runtime\x20script\x20cache\x20cleared.','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','requires','Push\x20complete:\x20','504hkpiLD','functionNode','scriptType','6hSPUTY','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.','review_remote_and_merge','operationType','runtime\x20cache\x20not\x20needed',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','EXISTING_HOOK_BINDING_PRESERVED','join','\x20bff\x20detail\x20--id\x20','BFF_REMOTE_VERSION_MISSING','attempted','543394vAzKDK','Lock\x20scope\x20for\x20app\x20\x22','status','selectedAppName','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','existingHooks','\x20uploaded','Push\x20only\x20this\x20script\x20type','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','afterScriptId','message','functionName','3502245DtILBC','every','remoteId','stringify','9616930ohZhSE','validation','cleared','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','\x20skipped','\x22\x20not\x20found\x20after\x20ensureLockScope.','write','startsWith','push','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','773584hbCygz','version','1472258FHKdXZ','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','description','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','utf8','HOOK_DATASET_NOT_FOUND:','filePath','length','currentApp','some','COMMON','test','has','map','name','defaultApp','\x20--format\x20compress','422780kpbELY','bool','apps','\x20resolution','mergedCli','Would\x20inspect\x20','size','failures','flatMap','script','No\x20local\x20Backend\x20Function\x20scripts\x20found.','Force\x20push\x20ignoring\x20hash\x20protection','appCode','get','runtime\x20cache\x20cleared','str','Local\x20function\x20not\x20found:\x20','datasetCode','scriptsRoot','beforeScriptId','type','boolean','alias','functions','toISOString','parse','POST','dataset','update','50166XOVQMy','string','3AhHxIT','hash','/api/management/library/scripts/save','add','apiDir','resolutions','lockFilePath','lastSync'];a43_0x3d5e=function(){return _0x4027f1;};return a43_0x3d5e();}function formatPushMessage(_0x12ad29,_0x15c1ca,_0x83af63,_0x47ad46,_0x176693){const _0x1cc8cf=a43_0x43c118,_0x3313d1=[_0x1cc8cf(0x18a)+_0x12ad29+_0x1cc8cf(0x129),_0x15c1ca+_0x1cc8cf(0x137)];_0x83af63>0x0&&_0x3313d1['push'](_0x83af63+_0x1cc8cf(0x182)+(_0x83af63===0x1?'':'s')+'\x20'+(_0x83af63===0x1?_0x1cc8cf(0x189):'require')+_0x1cc8cf(0x153));if(_0x47ad46>0x0)_0x3313d1[_0x1cc8cf(0x13b)](_0x47ad46+'\x20failed');return _0x3313d1[_0x1cc8cf(0x13b)](_0x176693),_0x3313d1[_0x1cc8cf(0x195)](',\x20');}async function getTargetFunctions(_0x175773,_0x93c12f){const _0xf03b1f=a43_0x43c118,_0x1d0472=_0x93c12f['str'](_0xf03b1f(0x164)),_0x38377a=_0x93c12f[_0xf03b1f(0x15f)](_0xf03b1f(0x14d)),_0x5964a7=normalizeBffType(_0x1d0472)??undefined;if(_0x38377a&&!_0x5964a7)throw CliErrors[_0xf03b1f(0x134)](_0xf03b1f(0x136));const _0x3ce44e=await scanLocalBffFunctions(_0x175773,_0x5964a7);if(_0x38377a){const _0xe2608d=_0x3ce44e['filter'](_0x333db6=>_0x333db6[_0xf03b1f(0x14d)]===_0x38377a);if(_0xe2608d['length']===0x0)throw CliErrors['validation'](_0xf03b1f(0x160)+_0x5964a7+'/'+_0x38377a);return _0xe2608d;}return _0x3ce44e;}function existingHookWarning(_0x4e86de){const _0x15ccf1=a43_0x43c118;return{'code':_0x15ccf1(0x194),'lockKey':_0x4e86de,'message':_0x15ccf1(0x127)};}async function buildHookMaps(_0x34f074,_0x53b7b9,_0xc1d4c4,_0x186663,_0x5c4010){const _0x16f622=a43_0x43c118,_0x2c1a9e=_0xc1d4c4[_0x16f622(0x148)](_0x1a57c0=>_0x1a57c0[_0x16f622(0x164)]===_0x16f622(0x177));if(!_0x2c1a9e)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x223705=resolveApiModelSource(_0x53b7b9,_0x34f074,_0x5c4010),_0x23b154=loadAliasMap(_0x53b7b9,undefined,_0x223705['filePath'],_0x223705[_0x16f622(0x179)]);assertUnambiguousHookAliases(_0x23b154);const _0x18fef7=[..._0x23b154['map'](_0x25e8de=>[_0x25e8de[_0x16f622(0x166)],_0x25e8de[_0x16f622(0x161)]]),...trackedHookDirectoryMappings(_0x186663)['map'](_0x451352=>[_0x451352[_0x16f622(0x166)],_0x451352['datasetCode']])],_0xff7340=await listDatasets(_0x34f074);assertUnambiguousHookDirectoryMappings(_0x18fef7[_0x16f622(0x14c)](([_0xee0d0a,_0x27f34d])=>({'alias':_0xee0d0a,'datasetCode':_0x27f34d})));const _0x39a8d2=buildHookDirectoryIndexes(_0xff7340,_0x18fef7),_0x4d3e16=new Map(),_0x255aa1=preflightPushHookDirectories(_0xc1d4c4,_0x186663,_0x39a8d2,_0x4d3e16),_0x3c69f3=new Set(),_0x3b7de1=_0xc1d4c4[_0x16f622(0x17f)](_0x224ac0=>_0x4d3e16['get'](_0x224ac0[_0x16f622(0x17c)])?.[_0x16f622(0x13a)](_0x16f622(0x144))&&_0x186663['functions'][_0x224ac0['lockKey']]?.['remoteId']&&_0x186663['functions'][_0x224ac0[_0x16f622(0x17c)]]?.['datasetCode']);if(_0x3b7de1[_0x16f622(0x146)]>0x0){let _0x3e1651;try{_0x3e1651=await getBffScriptStatistics(_0x34f074);}catch(_0x578d93){for(const _0x4351e5 of _0x3b7de1)_0x4d3e16[_0x16f622(0x180)](_0x4351e5[_0x16f622(0x17c)],_0x16f622(0x140)+(_0x578d93 instanceof Error?_0x578d93['message']:String(_0x578d93)));return{'resolutions':_0x255aa1,'failures':_0x4d3e16,'existingHooks':_0x3c69f3};}for(const _0x6a8efe of _0x3b7de1){const _0x1e2780=_0x186663[_0x16f622(0x167)][_0x6a8efe['lockKey']];try{const _0x5a756c=new Set(_0xc1d4c4[_0x16f622(0x17f)](_0x3abd4f=>_0x3abd4f[_0x16f622(0x164)]===_0x16f622(0x177)&&_0x186663['functions'][_0x3abd4f['lockKey']]?.[_0x16f622(0x161)]===_0x1e2780[_0x16f622(0x161)])[_0x16f622(0x14c)](_0x6f6dbe=>_0x6f6dbe[_0x16f622(0x166)]));if(_0x5a756c[_0x16f622(0x156)]>0x1)throw CliErrors[_0x16f622(0x134)]('Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.');const _0x14ed8b=_0x3e1651[_0x16f622(0x158)](_0x2fabe1=>[{'datasetCode':_0x2fabe1['datasetCode'],'operationType':snakeToCamel(_0x2fabe1[_0x16f622(0x191)]),'functionNode':'before','id':_0x2fabe1[_0x16f622(0x163)]},{'datasetCode':_0x2fabe1[_0x16f622(0x161)],'operationType':snakeToCamel(_0x2fabe1[_0x16f622(0x191)]),'functionNode':_0x16f622(0x183),'id':_0x2fabe1[_0x16f622(0x12c)]}])['filter'](_0x4574f7=>_0x4574f7['id']===_0x1e2780[_0x16f622(0x131)]),_0x28cdb9=await getBffScriptInfo(_0x1e2780[_0x16f622(0x131)]);if(_0x28cdb9['id']!==_0x1e2780['remoteId']||_0x28cdb9[_0x16f622(0x15c)]!==_0x34f074||_0x28cdb9[_0x16f622(0x18d)]!==_0x16f622(0x177)||_0x28cdb9[_0x16f622(0x12e)]!==_0x6a8efe[_0x16f622(0x14d)]||_0x1e2780[_0x16f622(0x13e)]==null||_0x28cdb9[_0x16f622(0x13e)]!==_0x1e2780['version']||_0x14ed8b['length']!==0x1||_0x14ed8b[0x0]['datasetCode']!==_0x1e2780[_0x16f622(0x161)]||_0x14ed8b[0x0][_0x16f622(0x191)]!==_0x6a8efe[_0x16f622(0x191)]||_0x14ed8b[0x0]['functionNode']!==_0x6a8efe[_0x16f622(0x18c)]||_0x1e2780['operationType']!==_0x6a8efe[_0x16f622(0x191)]||_0x1e2780[_0x16f622(0x18c)]!==_0x6a8efe[_0x16f622(0x18c)])throw CliErrors[_0x16f622(0x134)](_0x16f622(0x13c));_0x3c69f3[_0x16f622(0x172)](_0x6a8efe[_0x16f622(0x17c)]),_0x4d3e16[_0x16f622(0x17b)](_0x6a8efe[_0x16f622(0x17c)]);}catch(_0x278c13){_0x4d3e16['set'](_0x6a8efe['lockKey'],_0x278c13 instanceof Error?_0x278c13[_0x16f622(0x12d)]:String(_0x278c13));}}}return{'resolutions':_0x255aa1,'failures':_0x4d3e16,'existingHooks':_0x3c69f3};}async function uploadSingleFunction(_0x1e8f63,_0x267863,_0x47fc75,_0x14d17c){const _0x160df8=a43_0x43c118,_0x4cf6ca=await readFile(_0x267863[_0x160df8(0x145)],_0x160df8(0x143)),_0x451076=await computeFileHash(_0x267863[_0x160df8(0x145)]),_0x127552=_0x47fc75[_0x160df8(0x167)][_0x267863[_0x160df8(0x17c)]];if(_0x127552?.[_0x160df8(0x131)]&&_0x127552[_0x160df8(0x13e)]==null)throw CliErrors[_0x160df8(0x134)](_0x267863['lockKey']+_0x160df8(0x193));let _0x2d2034=extractScriptDescription(_0x4cf6ca);if(!_0x2d2034&&_0x127552?.['remoteId']){const _0x105764=await getBffScriptInfo(_0x127552[_0x160df8(0x131)]);_0x2d2034=_0x105764[_0x160df8(0x141)]||undefined;}const _0x5123b8={'appCode':_0x1e8f63,'functionName':_0x267863['name'],'scriptType':_0x267863[_0x160df8(0x164)],'scriptContent':_0x4cf6ca};if(_0x127552?.[_0x160df8(0x131)])_0x5123b8['id']=_0x127552[_0x160df8(0x131)];if(_0x127552?.[_0x160df8(0x13e)]!=null)_0x5123b8[_0x160df8(0x13e)]=_0x127552[_0x160df8(0x13e)];if(_0x2d2034)_0x5123b8[_0x160df8(0x141)]=_0x2d2034;if(_0x267863[_0x160df8(0x164)]==='HOOK'){const _0x45cc38=_0x14d17c[_0x160df8(0x174)]['get'](_0x267863[_0x160df8(0x17c)]);if(!_0x45cc38&&!_0x14d17c[_0x160df8(0x128)][_0x160df8(0x14b)](_0x267863[_0x160df8(0x17c)])||!_0x267863[_0x160df8(0x191)]||!_0x267863[_0x160df8(0x18c)])throw CliErrors[_0x160df8(0x134)]('Incomplete\x20HOOK\x20path:\x20'+_0x267863[_0x160df8(0x17c)]);_0x45cc38&&(_0x5123b8['datasetId']=_0x45cc38[_0x160df8(0x16b)]['id'],_0x5123b8['operationType']=_0x267863['operationType']),_0x5123b8[_0x160df8(0x18c)]=_0x267863[_0x160df8(0x18c)];}const _0x3023a7=await saveBffScript(_0x5123b8),_0x443800=_0x3023a7['id'],_0x52b236=_0x3023a7[_0x160df8(0x159)]??await getBffScriptInfo(_0x443800),_0x2f8cc1={'hash':_0x451076,'remoteId':_0x443800,'version':_0x52b236[_0x160df8(0x13e)]};if(_0x267863[_0x160df8(0x164)]==='HOOK'){const _0x333b47=_0x14d17c[_0x160df8(0x174)]['get'](_0x267863[_0x160df8(0x17c)]);if(!_0x333b47){_0x47fc75[_0x160df8(0x167)][_0x267863['lockKey']]={..._0x127552,..._0x2f8cc1};return;}_0x2f8cc1[_0x160df8(0x166)]=_0x333b47['alias']??_0x127552?.[_0x160df8(0x166)],_0x2f8cc1[_0x160df8(0x161)]=_0x333b47[_0x160df8(0x161)],_0x2f8cc1[_0x160df8(0x191)]=_0x267863[_0x160df8(0x191)],_0x2f8cc1[_0x160df8(0x18c)]=_0x267863[_0x160df8(0x18c)];}_0x47fc75[_0x160df8(0x167)][_0x267863[_0x160df8(0x17c)]]=_0x2f8cc1;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x2a59a0,_0x4bb002,_0x594986){const _0x46cb01=a43_0x43c118;if(_0x594986[_0x46cb01(0x146)]===0x0)return;for(let _0x30ee18=0x0;_0x30ee18<LOCK_SETTLE_RETRY_COUNT;_0x30ee18+=0x1){const _0x476e59=await readBffLockFile(_0x2a59a0),_0x222403=_0x476e59?.[_0x46cb01(0x152)]?.[_0x4bb002]?.[_0x46cb01(0x167)]??{},_0x7f4052=_0x594986[_0x46cb01(0x130)](_0x4ddf1b=>!!_0x222403[_0x4ddf1b]?.['remoteId']);if(_0x7f4052)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x46cb01(0x12b)+_0x594986[_0x46cb01(0x195)](',\x20')+'.');}
1
+ const a43_0x254bcd=a43_0x4ea9;(function(_0x13cdc4,_0x5b0eb3){const _0x243309=a43_0x4ea9,_0x49bf6f=_0x13cdc4();while(!![]){try{const _0x297e6b=parseInt(_0x243309(0x1af))/0x1+-parseInt(_0x243309(0x1de))/0x2*(-parseInt(_0x243309(0x1c3))/0x3)+-parseInt(_0x243309(0x1da))/0x4+parseInt(_0x243309(0x197))/0x5*(parseInt(_0x243309(0x19f))/0x6)+parseInt(_0x243309(0x1e7))/0x7+parseInt(_0x243309(0x1c5))/0x8*(parseInt(_0x243309(0x1ec))/0x9)+-parseInt(_0x243309(0x1b7))/0xa;if(_0x297e6b===_0x5b0eb3)break;else _0x49bf6f['push'](_0x49bf6f['shift']());}catch(_0x2ecd5f){_0x49bf6f['push'](_0x49bf6f['shift']());}}}(a43_0x1857,0x7d949));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';function a43_0x4ea9(_0x52f7ff,_0x3ba263){_0x52f7ff=_0x52f7ff-0x197;const _0x1857cd=a43_0x1857();let _0x4ea9bf=_0x1857cd[_0x52f7ff];return _0x4ea9bf;}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':a43_0x254bcd(0x1d2),'description':a43_0x254bcd(0x1f6),'risk':a43_0x254bcd(0x1d1),'structuredErrors':!![],'flags':[{'name':a43_0x254bcd(0x19c),'type':a43_0x254bcd(0x1e8),'description':'Push\x20only\x20this\x20script\x20type','enum':['COMMON','ENDPOINT',a43_0x254bcd(0x1c4)]},{'name':a43_0x254bcd(0x1c7),'type':a43_0x254bcd(0x1e8),'description':a43_0x254bcd(0x1c0)},{'name':a43_0x254bcd(0x200),'type':'boolean','description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x2d8649){const _0xb2a441=a43_0x254bcd,_0x13018d=loadBffProjectConfig(_0x2d8649[_0xb2a441(0x1b1)]),_0x3fc8e9=await readBffLockFile(_0x13018d['lockFilePath']),{appLock:_0x5af0bb}=ensureLockScope(_0x3fc8e9??createEmptyBffLock(),_0x2d8649[_0xb2a441(0x1b1)],_0x13018d[_0xb2a441(0x1b2)],_0xb2a441(0x1d2)),_0x12d8a1=await getTargetFunctions(_0x13018d,_0x2d8649),_0x1e804a=_0x12d8a1[_0xb2a441(0x1d5)](_0x3c7693=>_0x3c7693[_0xb2a441(0x19c)]===_0xb2a441(0x1c4))?await scanLocalBffFunctions(_0x13018d,_0xb2a441(0x1c4)):_0x12d8a1,_0x508752=await buildHookMaps(_0x2d8649[_0xb2a441(0x1b1)],_0x2d8649['apiDir'],_0x1e804a,_0x5af0bb,_0x2d8649[_0xb2a441(0x1e2)]||_0x2d8649[_0xb2a441(0x1cf)]?.[_0xb2a441(0x198)]||_0x2d8649[_0xb2a441(0x1cf)]?.[_0xb2a441(0x1fd)]),_0x778d07=_0x2d8649['bool']('force'),_0x16e457=[];for(const _0x5bcf1c of _0x12d8a1){const _0x5e6134=await computeFileHash(_0x5bcf1c['filePath']),_0x49281a=_0x5af0bb['functions'][_0x5bcf1c['lockKey']],_0x875525=!!_0x49281a&&_0x49281a['hash']===_0x5e6134,_0x288890=_0x508752[_0xb2a441(0x1a4)]['get'](_0x5bcf1c['lockKey']),_0x15f470=!!_0x49281a?.['remoteId']&&_0x49281a[_0xb2a441(0x1c1)]==null&&(_0x778d07||!_0x875525),_0x4b589e=_0x15f470?missingRemoteVersionConflict(_0x5bcf1c,_0x49281a):undefined,_0x33b21e=_0x508752[_0xb2a441(0x1ce)][_0xb2a441(0x1a9)](_0x5bcf1c[_0xb2a441(0x1ff)])?_0xb2a441(0x1a5):!_0x778d07&&_0x875525?_0xb2a441(0x1d3):_0x4b589e?_0xb2a441(0x1f4):'would_push';_0x16e457[_0xb2a441(0x1d2)]({'lockKey':_0x5bcf1c['lockKey'],'filePath':_0x5bcf1c[_0xb2a441(0x1ba)],'remoteId':_0x49281a?.[_0xb2a441(0x1b4)]??null,'mode':_0x49281a?.[_0xb2a441(0x1b4)]?'update':'create','status':_0x33b21e,..._0x508752[_0xb2a441(0x1ce)][_0xb2a441(0x1a9)](_0x5bcf1c[_0xb2a441(0x1ff)])?{'error':_0x508752['failures'][_0xb2a441(0x1c9)](_0x5bcf1c[_0xb2a441(0x1ff)])}:{},..._0x4b589e?{'conflict':_0x4b589e}:{},..._0x508752['existingHooks'][_0xb2a441(0x1a9)](_0x5bcf1c[_0xb2a441(0x1ff)])?{'datasetCode':_0x49281a?.[_0xb2a441(0x19a)],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x5bcf1c[_0xb2a441(0x1ff)])]}:{},..._0x288890?{'alias':_0x288890[_0xb2a441(0x1a7)]??null,'datasetCode':_0x288890[_0xb2a441(0x19a)],'operationType':_0x5bcf1c[_0xb2a441(0x1db)],'functionNode':_0x5bcf1c[_0xb2a441(0x1ac)],'warnings':_0x288890[_0xb2a441(0x199)]}:{}});}return{'method':_0xb2a441(0x1b0),'url':_0xb2a441(0x1ae),'body':{'appCode':_0x2d8649[_0xb2a441(0x1b1)],'force':_0x778d07,'files':_0x16e457,'cacheClearAtRuntime':_0x16e457[_0xb2a441(0x1d5)](_0x289185=>_0x289185[_0xb2a441(0x202)]===_0xb2a441(0x1f9)),'cacheClearAtRuntimeTimes':_0x16e457['some'](_0x1bc0c9=>_0x1bc0c9[_0xb2a441(0x202)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0xb2a441(0x1bb)+_0x16e457[_0xb2a441(0x1b6)]+_0xb2a441(0x1b8)};},async 'execute'(_0x223dba){const _0x21a8cb=a43_0x254bcd,_0x59122d=loadBffProjectConfig(_0x223dba[_0x21a8cb(0x1b1)]),_0x20a553=await readBffLockFile(_0x59122d['lockFilePath']),{lockData:_0xfd7f53,appLock:_0x1406ae}=ensureLockScope(_0x20a553??createEmptyBffLock(),_0x223dba[_0x21a8cb(0x1b1)],_0x59122d[_0x21a8cb(0x1b2)],_0x21a8cb(0x1d2)),_0x412f0a=await getTargetFunctions(_0x59122d,_0x223dba);if(_0x412f0a[_0x21a8cb(0x1b6)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x21a8cb(0x1ea)};const _0xf9d7d2=_0x223dba['bool']('force'),_0x42a1a0=JSON['parse'](JSON[_0x21a8cb(0x1ca)](_0xfd7f53)),_0x255f3b=_0x42a1a0[_0x21a8cb(0x1bf)][_0x223dba[_0x21a8cb(0x1b1)]];if(!_0x255f3b)throw new Error(_0x21a8cb(0x1aa)+_0x223dba[_0x21a8cb(0x1b1)]+_0x21a8cb(0x1be));const _0x4ad1f1=_0x412f0a[_0x21a8cb(0x1d5)](_0x25d34d=>_0x25d34d[_0x21a8cb(0x19c)]===_0x21a8cb(0x1c4))?await scanLocalBffFunctions(_0x59122d,_0x21a8cb(0x1c4)):_0x412f0a,_0x1c6212=await buildHookMaps(_0x223dba[_0x21a8cb(0x1b1)],_0x223dba['apiDir'],_0x4ad1f1,_0x255f3b,_0x223dba[_0x21a8cb(0x1e2)]||_0x223dba[_0x21a8cb(0x1cf)]?.[_0x21a8cb(0x198)]||_0x223dba[_0x21a8cb(0x1cf)]?.['defaultApp']),_0x5e31e6=[],_0xa1c29c=[],_0x449434=[],_0x34369c=[];for(const _0xaebfba of _0x412f0a){const _0x3dfc45=_0x1c6212[_0x21a8cb(0x1ce)][_0x21a8cb(0x1c9)](_0xaebfba[_0x21a8cb(0x1ff)]);if(_0x3dfc45){_0x34369c[_0x21a8cb(0x1d2)]({'lockKey':_0xaebfba[_0x21a8cb(0x1ff)],'error':_0x3dfc45});continue;}const _0x54f4e2=await computeFileHash(_0xaebfba['filePath']),_0x28d370=_0x255f3b[_0x21a8cb(0x1df)][_0xaebfba[_0x21a8cb(0x1ff)]];if(!_0xf9d7d2&&_0x28d370&&_0x28d370[_0x21a8cb(0x1bc)]===_0x54f4e2){_0xa1c29c[_0x21a8cb(0x1d2)]({'lockKey':_0xaebfba['lockKey'],'reason':'unchanged'});continue;}if(_0x28d370?.[_0x21a8cb(0x1b4)]&&_0x28d370[_0x21a8cb(0x1c1)]==null){_0x449434['push'](missingRemoteVersionConflict(_0xaebfba,_0x28d370));continue;}try{await uploadSingleFunction(_0x223dba[_0x21a8cb(0x1b1)],_0xaebfba,_0x255f3b,_0x1c6212);const _0x2cd6f2=_0x255f3b['functions'][_0xaebfba['lockKey']];_0x5e31e6[_0x21a8cb(0x1d2)]({'lockKey':_0xaebfba[_0x21a8cb(0x1ff)],'remoteId':_0x2cd6f2?.[_0x21a8cb(0x1b4)]??0x0});}catch(_0x35505c){const _0x2298a0=remoteVersionChangedConflict(_0xaebfba,_0x28d370,_0x35505c);if(_0x2298a0){_0x449434[_0x21a8cb(0x1d2)](_0x2298a0);continue;}_0x34369c[_0x21a8cb(0x1d2)]({'lockKey':_0xaebfba['lockKey'],'error':_0x35505c instanceof Error?_0x35505c[_0x21a8cb(0x1f8)]:String(_0x35505c)});}}_0x255f3b[_0x21a8cb(0x1e3)]=new Date()[_0x21a8cb(0x1e0)](),await writeBffLockFile(_0x59122d[_0x21a8cb(0x1fe)],_0x42a1a0),await waitForUploadedLockEntries(_0x59122d['lockFilePath'],_0x223dba['appCode'],_0x5e31e6[_0x21a8cb(0x1f7)](_0x542958=>_0x542958[_0x21a8cb(0x1ff)]));let _0x201d72={'attempted':![],'cleared':![]};if(_0x5e31e6['length']>0x0)try{let _0x407a31='';for(let _0x2306f0=0x0;_0x2306f0<CACHE_CLEAR_ATTEMPTS;_0x2306f0+=0x1){_0x407a31=await clearBffScriptCache(),_0x2306f0<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x201d72={'attempted':!![],'cleared':!![],'message':_0x407a31||_0x21a8cb(0x19d)};}catch(_0x3378b8){_0x201d72={'attempted':!![],'cleared':![],'error':_0x3378b8 instanceof Error?_0x3378b8[_0x21a8cb(0x1f8)]:String(_0x3378b8)};}const _0xe2ace1=_0x34369c[_0x21a8cb(0x1b6)]===0x0&&(_0x201d72['attempted']?_0x201d72[_0x21a8cb(0x1bd)]:!![]),_0x1bd856=_0xe2ace1,_0x266ea4=_0x201d72['attempted']?_0x201d72[_0x21a8cb(0x1bd)]?_0x21a8cb(0x1f2):_0x21a8cb(0x1d7):_0x21a8cb(0x1f3);return{'ok':_0x1bd856,'data':{'uploaded':_0x5e31e6,'skipped':_0xa1c29c,'conflicts':_0x449434,'failed':_0x34369c,'cacheClear':_0x201d72,'warnings':[...[..._0x1c6212[_0x21a8cb(0x1a4)]['values']()][_0x21a8cb(0x1d9)](_0x379aff=>_0x379aff[_0x21a8cb(0x199)]),...[..._0x1c6212['existingHooks']][_0x21a8cb(0x1f7)](existingHookWarning)]},'message':formatPushMessage(_0x5e31e6[_0x21a8cb(0x1b6)],_0xa1c29c[_0x21a8cb(0x1b6)],_0x449434[_0x21a8cb(0x1b6)],_0x34369c[_0x21a8cb(0x1b6)],_0x266ea4)};}};function missingRemoteVersionConflict(_0x4c060c,_0x27b47e){const _0x3b1724=a43_0x254bcd;return remoteVersionConflict(_0x4c060c,_0x27b47e,_0x3b1724(0x1ed),_0x3b1724(0x1a6));}function remoteVersionChangedConflict(_0x454c22,_0x16a8fb,_0x3091f3){const _0x356092=a43_0x254bcd;if(!_0x16a8fb?.[_0x356092(0x1b4)]||_0x16a8fb['version']==null||!isRemoteVersionConflict(_0x3091f3))return undefined;return remoteVersionConflict(_0x454c22,_0x16a8fb,_0x356092(0x1d0),'Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.');}function remoteVersionConflict(_0x468980,_0x2ac06f,_0x3907fe,_0x1a431d){const _0x3a6f76=a43_0x254bcd;return{'code':_0x3907fe,'lockKey':_0x468980[_0x3a6f76(0x1ff)],'filePath':_0x468980[_0x3a6f76(0x1ba)],'remoteId':_0x2ac06f['remoteId'],..._0x2ac06f['version']!=null?{'expectedVersion':_0x2ac06f['version']}:{},'message':_0x1a431d,'nextAction':{'action':_0x3a6f76(0x1e9),'command':CLI_BIN_NAME+_0x3a6f76(0x1c2)+_0x2ac06f[_0x3a6f76(0x1b4)]+_0x3a6f76(0x1a0),'requiresReview':!![],'message':_0x3a6f76(0x1f1)}};}function isRemoteVersionConflict(_0x3e6566){const _0x92af24=a43_0x254bcd,_0x24ef9a=_0x3e6566 instanceof Error?_0x3e6566[_0x92af24(0x1f8)]:String(_0x3e6566),_0x2a5a8f=getPlatformErrorCode(_0x3e6566)??'';return[_0x24ef9a,_0x2a5a8f][_0x92af24(0x1d5)](_0x878431=>/(?: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[_0x92af24(0x1e5)](_0x878431));}function formatPushMessage(_0x5a2c84,_0x3f7635,_0x1ac85c,_0x55f6ca,_0x20ece6){const _0x2a318f=a43_0x254bcd,_0x4b7641=[_0x2a318f(0x1a1)+_0x5a2c84+_0x2a318f(0x1c6),_0x3f7635+'\x20skipped'];_0x1ac85c>0x0&&_0x4b7641[_0x2a318f(0x1d2)](_0x1ac85c+_0x2a318f(0x1dd)+(_0x1ac85c===0x1?'':'s')+'\x20'+(_0x1ac85c===0x1?_0x2a318f(0x1cb):_0x2a318f(0x1b9))+_0x2a318f(0x201));if(_0x55f6ca>0x0)_0x4b7641[_0x2a318f(0x1d2)](_0x55f6ca+_0x2a318f(0x1d8));return _0x4b7641[_0x2a318f(0x1d2)](_0x20ece6),_0x4b7641[_0x2a318f(0x1e1)](',\x20');}async function getTargetFunctions(_0x4c30ff,_0xa8fe30){const _0x6e4250=a43_0x254bcd,_0x4db6fe=_0xa8fe30[_0x6e4250(0x1a3)](_0x6e4250(0x19c)),_0x1e9325=_0xa8fe30[_0x6e4250(0x1a3)](_0x6e4250(0x1c7)),_0x1d00ed=normalizeBffType(_0x4db6fe)??undefined;if(_0x1e9325&&!_0x1d00ed)throw CliErrors[_0x6e4250(0x1fb)](_0x6e4250(0x19b));const _0x59b48b=await scanLocalBffFunctions(_0x4c30ff,_0x1d00ed);if(_0x1e9325){const _0x109fd5=_0x59b48b[_0x6e4250(0x1cd)](_0x38a57f=>_0x38a57f['name']===_0x1e9325);if(_0x109fd5[_0x6e4250(0x1b6)]===0x0)throw CliErrors[_0x6e4250(0x1fb)](_0x6e4250(0x1ab)+_0x1d00ed+'/'+_0x1e9325);return _0x109fd5;}return _0x59b48b;}function existingHookWarning(_0x389363){const _0x1f3411=a43_0x254bcd;return{'code':_0x1f3411(0x1f5),'lockKey':_0x389363,'message':_0x1f3411(0x1cc)};}function a43_0x1857(){const _0x3a6c70=['appCode','scriptsRoot','script','remoteId','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','length','19629190clKZaD','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','require','filePath','Would\x20inspect\x20','hash','cleared','\x22\x20not\x20found\x20after\x20ensureLockScope.','apps','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','version','\x20bff\x20detail\x20--id\x20','543GbmqCO','HOOK','35656ApsRPa','\x20uploaded','name','utf8','get','stringify','requires','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','filter','failures','mergedCli','BFF_REMOTE_VERSION_CHANGED','write','push','unchanged','every','some','existingHooks','runtime\x20cache\x20clear\x20failed','\x20failed','flatMap','1522536AFHXzj','operationType','set','\x20conflict','9578RUcOFQ','functions','toISOString','join','selectedAppName','lastSync','HOOK_DATASET_NOT_FOUND:','test','beforeScriptId','5469499tHdBPN','string','review_remote_and_merge','No\x20local\x20Backend\x20Function\x20scripts\x20found.','datasetId','1917CizQEG','BFF_REMOTE_VERSION_MISSING','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','dataset','description','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.','runtime\x20cache\x20cleared','runtime\x20cache\x20not\x20needed','conflict','EXISTING_HOOK_BINDING_PRESERVED','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','map','message','would_push',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','validation','add','defaultApp','lockFilePath','lockKey','force','\x20resolution','status','20WNuBav','currentApp','warnings','datasetCode','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','type','Runtime\x20script\x20cache\x20cleared.','delete','203754RojoLa','\x20--format\x20compress','Push\x20complete:\x20','startsWith','str','resolutions','failed','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','alias','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','has','Lock\x20scope\x20for\x20app\x20\x22','Local\x20function\x20not\x20found:\x20','functionNode','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','/api/management/library/scripts/save','124587jdmpEj','POST'];a43_0x1857=function(){return _0x3a6c70;};return a43_0x1857();}async function buildHookMaps(_0xab5fc6,_0x1bb6b1,_0x48e64c,_0x5e0362,_0x47aa8e){const _0x1ae22d=a43_0x254bcd,_0x5d239b=_0x48e64c[_0x1ae22d(0x1d5)](_0x1d38c6=>_0x1d38c6['type']===_0x1ae22d(0x1c4));if(!_0x5d239b)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x5a1462=resolveApiModelSource(_0x1bb6b1,_0xab5fc6,_0x47aa8e),_0x2fa2d9=loadAliasMap(_0x1bb6b1,undefined,_0x5a1462[_0x1ae22d(0x1ba)],_0x5a1462['profileName']);assertUnambiguousHookAliases(_0x2fa2d9);const _0x289087=[..._0x2fa2d9[_0x1ae22d(0x1f7)](_0x429b55=>[_0x429b55[_0x1ae22d(0x1a7)],_0x429b55[_0x1ae22d(0x19a)]]),...trackedHookDirectoryMappings(_0x5e0362)[_0x1ae22d(0x1f7)](_0x5f5bc0=>[_0x5f5bc0[_0x1ae22d(0x1a7)],_0x5f5bc0[_0x1ae22d(0x19a)]])],_0x2aa81a=await listDatasets(_0xab5fc6);assertUnambiguousHookDirectoryMappings(_0x289087[_0x1ae22d(0x1f7)](([_0x359e28,_0x1950a3])=>({'alias':_0x359e28,'datasetCode':_0x1950a3})));const _0x58da4e=buildHookDirectoryIndexes(_0x2aa81a,_0x289087),_0x14bccc=new Map(),_0x18ade9=preflightPushHookDirectories(_0x48e64c,_0x5e0362,_0x58da4e,_0x14bccc),_0x5b6b84=new Set(),_0x51fe59=_0x48e64c[_0x1ae22d(0x1cd)](_0x3a46d6=>_0x14bccc[_0x1ae22d(0x1c9)](_0x3a46d6[_0x1ae22d(0x1ff)])?.[_0x1ae22d(0x1a2)](_0x1ae22d(0x1e4))&&_0x5e0362['functions'][_0x3a46d6[_0x1ae22d(0x1ff)]]?.['remoteId']&&_0x5e0362['functions'][_0x3a46d6['lockKey']]?.[_0x1ae22d(0x19a)]);if(_0x51fe59[_0x1ae22d(0x1b6)]>0x0){let _0x3368b4;try{_0x3368b4=await getBffScriptStatistics(_0xab5fc6);}catch(_0x21fb27){for(const _0x4e090e of _0x51fe59)_0x14bccc[_0x1ae22d(0x1dc)](_0x4e090e['lockKey'],_0x1ae22d(0x1ad)+(_0x21fb27 instanceof Error?_0x21fb27[_0x1ae22d(0x1f8)]:String(_0x21fb27)));return{'resolutions':_0x18ade9,'failures':_0x14bccc,'existingHooks':_0x5b6b84};}for(const _0x286b2c of _0x51fe59){const _0x2d5906=_0x5e0362['functions'][_0x286b2c[_0x1ae22d(0x1ff)]];try{const _0x20e1e8=new Set(_0x48e64c[_0x1ae22d(0x1cd)](_0x29a750=>_0x29a750[_0x1ae22d(0x19c)]===_0x1ae22d(0x1c4)&&_0x5e0362[_0x1ae22d(0x1df)][_0x29a750[_0x1ae22d(0x1ff)]]?.[_0x1ae22d(0x19a)]===_0x2d5906[_0x1ae22d(0x19a)])['map'](_0x446d37=>_0x446d37[_0x1ae22d(0x1a7)]));if(_0x20e1e8['size']>0x1)throw CliErrors['validation'](_0x1ae22d(0x1b5));const _0x109a89=_0x3368b4[_0x1ae22d(0x1d9)](_0x1767dc=>[{'datasetCode':_0x1767dc['datasetCode'],'operationType':snakeToCamel(_0x1767dc['operationType']),'functionNode':'before','id':_0x1767dc[_0x1ae22d(0x1e6)]},{'datasetCode':_0x1767dc['datasetCode'],'operationType':snakeToCamel(_0x1767dc[_0x1ae22d(0x1db)]),'functionNode':'after','id':_0x1767dc['afterScriptId']}])[_0x1ae22d(0x1cd)](_0x505e0b=>_0x505e0b['id']===_0x2d5906['remoteId']),_0x3f2c80=await getBffScriptInfo(_0x2d5906[_0x1ae22d(0x1b4)]);if(_0x3f2c80['id']!==_0x2d5906[_0x1ae22d(0x1b4)]||_0x3f2c80['appCode']!==_0xab5fc6||_0x3f2c80['scriptType']!==_0x1ae22d(0x1c4)||_0x3f2c80['functionName']!==_0x286b2c[_0x1ae22d(0x1c7)]||_0x2d5906[_0x1ae22d(0x1c1)]==null||_0x3f2c80[_0x1ae22d(0x1c1)]!==_0x2d5906[_0x1ae22d(0x1c1)]||_0x109a89[_0x1ae22d(0x1b6)]!==0x1||_0x109a89[0x0][_0x1ae22d(0x19a)]!==_0x2d5906['datasetCode']||_0x109a89[0x0][_0x1ae22d(0x1db)]!==_0x286b2c[_0x1ae22d(0x1db)]||_0x109a89[0x0][_0x1ae22d(0x1ac)]!==_0x286b2c['functionNode']||_0x2d5906['operationType']!==_0x286b2c['operationType']||_0x2d5906[_0x1ae22d(0x1ac)]!==_0x286b2c['functionNode'])throw CliErrors[_0x1ae22d(0x1fb)](_0x1ae22d(0x1ee));_0x5b6b84[_0x1ae22d(0x1fc)](_0x286b2c['lockKey']),_0x14bccc[_0x1ae22d(0x19e)](_0x286b2c['lockKey']);}catch(_0x121f0c){_0x14bccc[_0x1ae22d(0x1dc)](_0x286b2c[_0x1ae22d(0x1ff)],_0x121f0c instanceof Error?_0x121f0c['message']:String(_0x121f0c));}}}return{'resolutions':_0x18ade9,'failures':_0x14bccc,'existingHooks':_0x5b6b84};}async function uploadSingleFunction(_0x1811c6,_0x17489a,_0x306538,_0x21375b){const _0x3b728b=a43_0x254bcd,_0xb41902=await readFile(_0x17489a[_0x3b728b(0x1ba)],_0x3b728b(0x1c8)),_0x35100e=await computeFileHash(_0x17489a[_0x3b728b(0x1ba)]),_0x59cf52=_0x306538['functions'][_0x17489a[_0x3b728b(0x1ff)]];if(_0x59cf52?.['remoteId']&&_0x59cf52[_0x3b728b(0x1c1)]==null)throw CliErrors['validation'](_0x17489a[_0x3b728b(0x1ff)]+_0x3b728b(0x1fa));let _0x5ac50b=extractScriptDescription(_0xb41902);if(!_0x5ac50b&&_0x59cf52?.[_0x3b728b(0x1b4)]){const _0xddf6da=await getBffScriptInfo(_0x59cf52[_0x3b728b(0x1b4)]);_0x5ac50b=_0xddf6da[_0x3b728b(0x1f0)]||undefined;}const _0x54eae3={'appCode':_0x1811c6,'functionName':_0x17489a[_0x3b728b(0x1c7)],'scriptType':_0x17489a[_0x3b728b(0x19c)],'scriptContent':_0xb41902};if(_0x59cf52?.[_0x3b728b(0x1b4)])_0x54eae3['id']=_0x59cf52[_0x3b728b(0x1b4)];if(_0x59cf52?.[_0x3b728b(0x1c1)]!=null)_0x54eae3[_0x3b728b(0x1c1)]=_0x59cf52[_0x3b728b(0x1c1)];if(_0x5ac50b)_0x54eae3[_0x3b728b(0x1f0)]=_0x5ac50b;if(_0x17489a[_0x3b728b(0x19c)]===_0x3b728b(0x1c4)){const _0x188cc5=_0x21375b['resolutions'][_0x3b728b(0x1c9)](_0x17489a[_0x3b728b(0x1ff)]);if(!_0x188cc5&&!_0x21375b[_0x3b728b(0x1d6)]['has'](_0x17489a[_0x3b728b(0x1ff)])||!_0x17489a[_0x3b728b(0x1db)]||!_0x17489a[_0x3b728b(0x1ac)])throw CliErrors[_0x3b728b(0x1fb)]('Incomplete\x20HOOK\x20path:\x20'+_0x17489a[_0x3b728b(0x1ff)]);_0x188cc5&&(_0x54eae3[_0x3b728b(0x1eb)]=_0x188cc5[_0x3b728b(0x1ef)]['id'],_0x54eae3[_0x3b728b(0x1db)]=_0x17489a[_0x3b728b(0x1db)]),_0x54eae3[_0x3b728b(0x1ac)]=_0x17489a[_0x3b728b(0x1ac)];}const _0x4576a8=await saveBffScript(_0x54eae3),_0x283539=_0x4576a8['id'],_0x3dfc38=_0x4576a8[_0x3b728b(0x1b3)]??await getBffScriptInfo(_0x283539),_0x4bd4b8={'hash':_0x35100e,'remoteId':_0x283539,'version':_0x3dfc38[_0x3b728b(0x1c1)]};if(_0x17489a[_0x3b728b(0x19c)]===_0x3b728b(0x1c4)){const _0x18b6e0=_0x21375b[_0x3b728b(0x1a4)][_0x3b728b(0x1c9)](_0x17489a[_0x3b728b(0x1ff)]);if(!_0x18b6e0){_0x306538['functions'][_0x17489a[_0x3b728b(0x1ff)]]={..._0x59cf52,..._0x4bd4b8};return;}_0x4bd4b8[_0x3b728b(0x1a7)]=_0x18b6e0['alias']??_0x59cf52?.['alias'],_0x4bd4b8[_0x3b728b(0x19a)]=_0x18b6e0[_0x3b728b(0x19a)],_0x4bd4b8[_0x3b728b(0x1db)]=_0x17489a[_0x3b728b(0x1db)],_0x4bd4b8[_0x3b728b(0x1ac)]=_0x17489a[_0x3b728b(0x1ac)];}_0x306538[_0x3b728b(0x1df)][_0x17489a[_0x3b728b(0x1ff)]]=_0x4bd4b8;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x192d13,_0x21fbdf,_0x1d48e3){const _0x2f74fb=a43_0x254bcd;if(_0x1d48e3[_0x2f74fb(0x1b6)]===0x0)return;for(let _0x17b430=0x0;_0x17b430<LOCK_SETTLE_RETRY_COUNT;_0x17b430+=0x1){const _0x18296b=await readBffLockFile(_0x192d13),_0x5195c0=_0x18296b?.[_0x2f74fb(0x1bf)]?.[_0x21fbdf]?.['functions']??{},_0x15685c=_0x1d48e3[_0x2f74fb(0x1d4)](_0x50b184=>!!_0x5195c0[_0x50b184]?.[_0x2f74fb(0x1b4)]);if(_0x15685c)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x2f74fb(0x1a8)+_0x1d48e3[_0x2f74fb(0x1e1)](',\x20')+'.');}
@@ -1 +1 @@
1
- function a44_0x8592(_0x4a26b0,_0x4cd340){_0x4a26b0=_0x4a26b0-0x8e;const _0x2753c2=a44_0x2753();let _0x8592b7=_0x2753c2[_0x4a26b0];return _0x8592b7;}function a44_0x2753(){const _0x3f6cfb=['18208nyAHZt','bool','2592380XptRuu','\x20remote-only','21561723YGxUHT','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','mergedCli','\x20modified,\x20','remote','push','filePath','6966704kAopWC','apiDir','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','boolean','scriptsRoot','96OWqoVH','read','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','all','datasetCode','3iOmBtJ','profileName','status','currentApp','length','map','\x20added,\x20','selectedAppName','functions','lockFilePath','8552166dqJdxV','defaultApp','\x20unchanged','2920160mQjapu','has','lockKey','5586516PmIamg','appCode'];a44_0x2753=function(){return _0x3f6cfb;};return a44_0x2753();}const a44_0x14b217=a44_0x8592;(function(_0x4e5cb1,_0x176d80){const _0xd4cc02=a44_0x8592,_0x653b03=_0x4e5cb1();while(!![]){try{const _0x50219d=-parseInt(_0xd4cc02(0x9c))/0x1*(parseInt(_0xd4cc02(0xb3))/0x2)+-parseInt(_0xd4cc02(0xa1))/0x3*(-parseInt(_0xd4cc02(0x97))/0x4)+-parseInt(_0xd4cc02(0x8e))/0x5+-parseInt(_0xd4cc02(0xb1))/0x6+-parseInt(_0xd4cc02(0xab))/0x7+parseInt(_0xd4cc02(0xae))/0x8+parseInt(_0xd4cc02(0x90))/0x9;if(_0x50219d===_0x176d80)break;else _0x653b03['push'](_0x653b03['shift']());}catch(_0x18533f){_0x653b03['push'](_0x653b03['shift']());}}}(a44_0x2753,0xe9ae7));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';export const bffStatus={'service':'bff','command':a44_0x14b217(0xa3),'description':a44_0x14b217(0x91),'risk':a44_0x14b217(0x9d),'flags':[{'name':a44_0x14b217(0x94),'type':a44_0x14b217(0x9a),'description':a44_0x14b217(0x9e)}],async 'execute'(_0x4033d9){const _0x39c8b3=a44_0x14b217,_0xbf57ac=loadBffProjectConfig(_0x4033d9[_0x39c8b3(0xb2)]),_0x3aefaf=await readBffLockFile(_0xbf57ac[_0x39c8b3(0xaa)]),{appLock:_0x42594f}=ensureLockScope(_0x3aefaf??createEmptyBffLock(),_0x4033d9[_0x39c8b3(0xb2)],_0xbf57ac[_0x39c8b3(0x9b)],_0x39c8b3(0xa3)),_0x24c7f7=await scanLocalBffFunctions(_0xbf57ac),_0x4a4961=[],_0x477203=[],_0x4d9ced=[];for(const _0x4b7f65 of _0x24c7f7){const _0x50ca1=await computeFileHash(_0x4b7f65['filePath']),_0x47ec19=_0x42594f[_0x39c8b3(0xa9)][_0x4b7f65[_0x39c8b3(0xb0)]];if(!_0x47ec19)_0x4a4961['push'](_0x4b7f65[_0x39c8b3(0xb0)]);else _0x47ec19['hash']!==_0x50ca1?_0x477203[_0x39c8b3(0x95)](_0x4b7f65[_0x39c8b3(0xb0)]):_0x4d9ced[_0x39c8b3(0x95)](_0x4b7f65['lockKey']);}const _0x42fbcd=[];if(_0x4033d9[_0x39c8b3(0xb4)](_0x39c8b3(0x94))){const _0x2195bc=resolveApiModelSource(_0x4033d9['apiDir'],_0x4033d9[_0x39c8b3(0xb2)],_0x4033d9[_0x39c8b3(0xa8)]||_0x4033d9['mergedCli']?.[_0x39c8b3(0xa4)]||_0x4033d9[_0x39c8b3(0x92)]?.[_0x39c8b3(0xac)]),_0x42e0e4=loadAliasMap(_0x4033d9[_0x39c8b3(0x98)],undefined,_0x2195bc[_0x39c8b3(0x96)],_0x2195bc[_0x39c8b3(0xa2)]),_0x2ebb56=new Map(_0x42e0e4[_0x39c8b3(0xa6)](_0x314191=>[_0x314191[_0x39c8b3(0xa0)],_0x314191['alias']])),[_0x443c11,_0x145fd2]=await Promise[_0x39c8b3(0x9f)]([listBffScripts(_0x4033d9['appCode']),getBffScriptStatistics(_0x4033d9[_0x39c8b3(0xb2)])]),_0x57b353=createHookLocationMap(_0x145fd2),_0x51e59d=new Set(_0x24c7f7[_0x39c8b3(0xa6)](_0x48887f=>_0x48887f[_0x39c8b3(0xb0)]));for(const _0x18933d of _0x443c11){const _0x41d66b=resolveRemoteScriptTarget(_0xbf57ac,_0x18933d,_0x57b353,_0x42594f[_0x39c8b3(0xa9)],_0x2ebb56);_0x41d66b&&!_0x51e59d[_0x39c8b3(0xaf)](_0x41d66b[_0x39c8b3(0xb0)])&&_0x42fbcd['push'](_0x41d66b[_0x39c8b3(0xb0)]);}}const _0x4e5259=_0x4a4961[_0x39c8b3(0xa5)]===0x0&&_0x477203[_0x39c8b3(0xa5)]===0x0&&_0x42fbcd[_0x39c8b3(0xa5)]===0x0;return{'ok':!![],'data':{'added':_0x4a4961,'modified':_0x477203,'unchanged':_0x4d9ced,'remoteOnly':_0x42fbcd},'message':_0x4e5259?_0x39c8b3(0x99):_0x4a4961[_0x39c8b3(0xa5)]+_0x39c8b3(0xa7)+_0x477203[_0x39c8b3(0xa5)]+_0x39c8b3(0x93)+_0x4d9ced[_0x39c8b3(0xa5)]+_0x39c8b3(0xad)+(_0x42fbcd[_0x39c8b3(0xa5)]>0x0?',\x20'+_0x42fbcd[_0x39c8b3(0xa5)]+_0x39c8b3(0x8f):'')};}};
1
+ function a44_0x12be(_0x1987b6,_0x1789bb){_0x1987b6=_0x1987b6-0x138;const _0x14250e=a44_0x1425();let _0x12be73=_0x14250e[_0x1987b6];return _0x12be73;}const a44_0x2d99c9=a44_0x12be;(function(_0x1e8b44,_0x451445){const _0x132732=a44_0x12be,_0x4ec8b0=_0x1e8b44();while(!![]){try{const _0x5516c0=parseInt(_0x132732(0x138))/0x1*(-parseInt(_0x132732(0x13f))/0x2)+-parseInt(_0x132732(0x146))/0x3*(parseInt(_0x132732(0x13e))/0x4)+parseInt(_0x132732(0x150))/0x5+parseInt(_0x132732(0x14f))/0x6*(-parseInt(_0x132732(0x148))/0x7)+parseInt(_0x132732(0x158))/0x8+parseInt(_0x132732(0x15a))/0x9*(parseInt(_0x132732(0x145))/0xa)+parseInt(_0x132732(0x156))/0xb*(-parseInt(_0x132732(0x141))/0xc);if(_0x5516c0===_0x451445)break;else _0x4ec8b0['push'](_0x4ec8b0['shift']());}catch(_0x53816e){_0x4ec8b0['push'](_0x4ec8b0['shift']());}}}(a44_0x1425,0xbc11e));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';export const bffStatus={'service':a44_0x2d99c9(0x14c),'command':a44_0x2d99c9(0x149),'description':a44_0x2d99c9(0x142),'risk':a44_0x2d99c9(0x153),'flags':[{'name':'remote','type':a44_0x2d99c9(0x143),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x24a5c5){const _0x12ea71=a44_0x2d99c9,_0x550106=loadBffProjectConfig(_0x24a5c5[_0x12ea71(0x13a)]),_0x322b29=await readBffLockFile(_0x550106[_0x12ea71(0x154)]),{appLock:_0x149da7}=ensureLockScope(_0x322b29??createEmptyBffLock(),_0x24a5c5[_0x12ea71(0x13a)],_0x550106['scriptsRoot'],_0x12ea71(0x149)),_0x1e50f6=await scanLocalBffFunctions(_0x550106),_0x4d83eb=[],_0x1980c1=[],_0x27bcda=[];for(const _0x5cc3f0 of _0x1e50f6){const _0x3135ca=await computeFileHash(_0x5cc3f0['filePath']),_0xa7ead5=_0x149da7['functions'][_0x5cc3f0['lockKey']];if(!_0xa7ead5)_0x4d83eb[_0x12ea71(0x157)](_0x5cc3f0[_0x12ea71(0x144)]);else _0xa7ead5['hash']!==_0x3135ca?_0x1980c1['push'](_0x5cc3f0['lockKey']):_0x27bcda[_0x12ea71(0x157)](_0x5cc3f0['lockKey']);}const _0x16e3cc=[];if(_0x24a5c5['bool']('remote')){const _0x38a500=resolveApiModelSource(_0x24a5c5[_0x12ea71(0x155)],_0x24a5c5['appCode'],_0x24a5c5[_0x12ea71(0x139)]||_0x24a5c5[_0x12ea71(0x159)]?.[_0x12ea71(0x147)]||_0x24a5c5[_0x12ea71(0x159)]?.[_0x12ea71(0x13b)]),_0x4600ff=loadAliasMap(_0x24a5c5[_0x12ea71(0x155)],undefined,_0x38a500['filePath'],_0x38a500[_0x12ea71(0x151)]),_0x25f558=new Map(_0x4600ff[_0x12ea71(0x14b)](_0x58cac8=>[_0x58cac8['datasetCode'],_0x58cac8['alias']])),[_0x5a54d4,_0xd072c5]=await Promise[_0x12ea71(0x152)]([listBffScripts(_0x24a5c5[_0x12ea71(0x13a)]),getBffScriptStatistics(_0x24a5c5[_0x12ea71(0x13a)])]),_0x477af5=createHookLocationMap(_0xd072c5),_0x44b1a7=new Set(_0x1e50f6[_0x12ea71(0x14b)](_0x559f1d=>_0x559f1d['lockKey']));for(const _0x5cc923 of _0x5a54d4){const _0xf43398=resolveRemoteScriptTarget(_0x550106,_0x5cc923,_0x477af5,_0x149da7[_0x12ea71(0x13d)],_0x25f558);_0xf43398&&!_0x44b1a7[_0x12ea71(0x14d)](_0xf43398[_0x12ea71(0x144)])&&_0x16e3cc[_0x12ea71(0x157)](_0xf43398[_0x12ea71(0x144)]);}}const _0x584e71=_0x4d83eb['length']===0x0&&_0x1980c1['length']===0x0&&_0x16e3cc[_0x12ea71(0x140)]===0x0;return{'ok':!![],'data':{'added':_0x4d83eb,'modified':_0x1980c1,'unchanged':_0x27bcda,'remoteOnly':_0x16e3cc},'message':_0x584e71?_0x12ea71(0x14a):_0x4d83eb[_0x12ea71(0x140)]+'\x20added,\x20'+_0x1980c1['length']+'\x20modified,\x20'+_0x27bcda[_0x12ea71(0x140)]+_0x12ea71(0x13c)+(_0x16e3cc['length']>0x0?',\x20'+_0x16e3cc['length']+_0x12ea71(0x14e):'')};}};function a44_0x1425(){const _0x2c72b9=['currentApp','287dRaoIW','status','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','map','bff','has','\x20remote-only','104712SmhHuv','5621215BkuQRZ','profileName','all','read','lockFilePath','apiDir','4037GvEtzf','push','7618320InpOub','mergedCli','915507EofJeT','69731YAGIdJ','selectedAppName','appCode','defaultApp','\x20unchanged','functions','513556RPtMZB','34vHPxtn','length','15396sfiWoN','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','boolean','lockKey','130WVruhz','6vJiiGT'];a44_0x1425=function(){return _0x2c72b9;};return a44_0x1425();}
@@ -1 +1 @@
1
- const a45_0x49e6b8=a45_0x2b75;function a45_0x2b75(_0x4ee267,_0x22f4a0){_0x4ee267=_0x4ee267-0x96;const _0x16e2ba=a45_0x16e2();let _0x2b75c4=_0x16e2ba[_0x4ee267];return _0x2b75c4;}(function(_0x341fbf,_0x53836a){const _0x483865=a45_0x2b75,_0x4a820a=_0x341fbf();while(!![]){try{const _0x45faac=parseInt(_0x483865(0xae))/0x1+-parseInt(_0x483865(0xa4))/0x2*(-parseInt(_0x483865(0xad))/0x3)+-parseInt(_0x483865(0xa7))/0x4+-parseInt(_0x483865(0xa0))/0x5+parseInt(_0x483865(0xb0))/0x6+parseInt(_0x483865(0x98))/0x7+-parseInt(_0x483865(0xa6))/0x8*(parseInt(_0x483865(0x9b))/0x9);if(_0x45faac===_0x53836a)break;else _0x4a820a['push'](_0x4a820a['shift']());}catch(_0x1bbc68){_0x4a820a['push'](_0x4a820a['shift']());}}}(a45_0x16e2,0xdc3b7));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a45_0x16e2(){const _0x1f7c4b=['9bNuIGk','error','repairCommand','skillVersion','code','1067980PMiOhv','unknown','install','Built-in\x20Skill\x20install\x20failed\x20[','652244oAnTUl','\x20at\x20','11315368fRWcpA','5013164lzTtik','cwd','apiError','read','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','inherit','15oxQTeZ','68207WfQVOa','\x20is\x20already\x20current','9883998BTAvdr','cli-skill-install','cli-skill','setLogPath','CLI\x20Built-in\x20Skill\x20','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','changed','installedPath','3060603onpCSK','nonInteractive','info'];a45_0x16e2=function(){return _0x1f7c4b;};return a45_0x16e2();}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a45_0x49e6b8(0xb2),'command':a45_0x49e6b8(0xa2),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a45_0x49e6b8(0xaa),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49ac4f){const _0x37610a=a45_0x49e6b8;logger[_0x37610a(0xb3)](process[_0x37610a(0xa8)]()),logger[_0x37610a(0x9a)](_0x37610a(0xb1),_0x37610a(0xb5));const _0x4790de=installBuiltinSkill({'stdio':_0x49ac4f[_0x37610a(0x99)]?'pipe':_0x37610a(0xac)});if(!_0x4790de['ok'])throw CliErrors[_0x37610a(0xa9)](_0x37610a(0xa3)+_0x4790de[_0x37610a(0x9f)]+']:\x20'+(_0x4790de[_0x37610a(0x9c)]||_0x37610a(0xa1)),_0x37610a(0xab)+_0x4790de[_0x37610a(0x9d)]);return console['log'](_0x4790de[_0x37610a(0x96)]?_0x37610a(0xb4)+_0x4790de[_0x37610a(0x9e)]+'\x20installed'+(_0x4790de[_0x37610a(0x97)]?_0x37610a(0xa5)+_0x4790de[_0x37610a(0x97)]:'\x20via\x20skills@latest'):_0x37610a(0xb4)+_0x4790de[_0x37610a(0x9e)]+_0x37610a(0xaf)+(_0x4790de[_0x37610a(0x97)]?_0x37610a(0xa5)+_0x4790de[_0x37610a(0x97)]:'')),{'ok':!![]};}}];
1
+ const a45_0x4c83fc=a45_0x5a2d;function a45_0xf833(){const _0x5ee199=['read','CLI\x20Built-in\x20Skill\x20','Built-in\x20Skill\x20install\x20failed\x20[','1346780OJHjAY','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','8rNyyNz','skillVersion','code','installedPath','920crVMhN','622111ZaJrst','\x20at\x20','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','changed','cwd','\x20via\x20skills@latest','\x20installed','2KmOxPS','install','repairCommand','cli-skill','nonInteractive','3978DXtyOS','1149665wGawqE','error',']:\x20','setLogPath','509163QMqNeI','cli-skill-install','5070232HGkiFf','3003549fZSmxE','12XqMLoD'];a45_0xf833=function(){return _0x5ee199;};return a45_0xf833();}(function(_0x37bf9c,_0x11bbce){const _0x43dcf0=a45_0x5a2d,_0x39eec7=_0x37bf9c();while(!![]){try{const _0x20bf76=-parseInt(_0x43dcf0(0xe7))/0x1+parseInt(_0x43dcf0(0xdd))/0x2*(parseInt(_0x43dcf0(0xea))/0x3)+parseInt(_0x43dcf0(0xf1))/0x4*(-parseInt(_0x43dcf0(0xef))/0x5)+parseInt(_0x43dcf0(0xeb))/0x6*(parseInt(_0x43dcf0(0xf6))/0x7)+parseInt(_0x43dcf0(0xe9))/0x8+parseInt(_0x43dcf0(0xe2))/0x9*(-parseInt(_0x43dcf0(0xf5))/0xa)+-parseInt(_0x43dcf0(0xe3))/0xb;if(_0x20bf76===_0x11bbce)break;else _0x39eec7['push'](_0x39eec7['shift']());}catch(_0x5071d9){_0x39eec7['push'](_0x39eec7['shift']());}}}(a45_0xf833,0x97486));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a45_0x5a2d(_0x1ae849,_0x38c8e5){_0x1ae849=_0x1ae849-0xd8;const _0xf83382=a45_0xf833();let _0x5a2d77=_0xf83382[_0x1ae849];return _0x5a2d77;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a45_0x4c83fc(0xe0),'command':a45_0x4c83fc(0xde),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a45_0x4c83fc(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2cb238){const _0x379147=a45_0x4c83fc;logger[_0x379147(0xe6)](process[_0x379147(0xda)]()),logger['info'](_0x379147(0xe8),_0x379147(0xf0));const _0x34d5c3=installBuiltinSkill({'stdio':_0x2cb238[_0x379147(0xe1)]?'pipe':'inherit'});if(!_0x34d5c3['ok'])throw CliErrors['apiError'](_0x379147(0xee)+_0x34d5c3[_0x379147(0xf3)]+_0x379147(0xe5)+(_0x34d5c3[_0x379147(0xe4)]||'unknown'),_0x379147(0xd8)+_0x34d5c3[_0x379147(0xdf)]);return console['log'](_0x34d5c3[_0x379147(0xd9)]?_0x379147(0xed)+_0x34d5c3[_0x379147(0xf2)]+_0x379147(0xdc)+(_0x34d5c3[_0x379147(0xf4)]?'\x20at\x20'+_0x34d5c3['installedPath']:_0x379147(0xdb)):_0x379147(0xed)+_0x34d5c3[_0x379147(0xf2)]+'\x20is\x20already\x20current'+(_0x34d5c3[_0x379147(0xf4)]?_0x379147(0xf7)+_0x34d5c3[_0x379147(0xf4)]:'')),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a46_0x6622b0=a46_0x229d;(function(_0xc07e98,_0x124eaf){const _0xd4bf46=a46_0x229d,_0x55a506=_0xc07e98();while(!![]){try{const _0x253d16=-parseInt(_0xd4bf46(0x111))/0x1*(parseInt(_0xd4bf46(0xeb))/0x2)+parseInt(_0xd4bf46(0x100))/0x3*(-parseInt(_0xd4bf46(0xfa))/0x4)+parseInt(_0xd4bf46(0xe2))/0x5*(-parseInt(_0xd4bf46(0xe5))/0x6)+-parseInt(_0xd4bf46(0xfd))/0x7+parseInt(_0xd4bf46(0xfb))/0x8*(-parseInt(_0xd4bf46(0xee))/0x9)+-parseInt(_0xd4bf46(0xe0))/0xa*(-parseInt(_0xd4bf46(0xda))/0xb)+parseInt(_0xd4bf46(0xfe))/0xc;if(_0x253d16===_0x124eaf)break;else _0x55a506['push'](_0x55a506['shift']());}catch(_0x55d70b){_0x55a506['push'](_0x55a506['shift']());}}}(a46_0x2b4e,0x49442));import a46_0x6c1d3a from'chalk';import a46_0x43f9c4 from'ora';import a46_0x232578 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 _0x4d0a45=a46_0x229d;return GIT_COMMIT!==_0x4d0a45(0xe6)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xed3f19=a46_0x229d,_0x984af=process['execPath']['toLowerCase']();if(_0x984af[_0xed3f19(0xf3)](_0xed3f19(0xe4)))return _0xed3f19(0xe4);return _0xed3f19(0xf2);}const updateFlags=[{'name':a46_0x6622b0(0x119),'type':'boolean','description':a46_0x6622b0(0x11e),'default':![]},{'name':a46_0x6622b0(0x115),'type':a46_0x6622b0(0xd8),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function a46_0x229d(_0x26debf,_0x210a6c){_0x26debf=_0x26debf-0xd3;const _0x2b4ed7=a46_0x2b4e();let _0x229ded=_0x2b4ed7[_0x26debf];return _0x229ded;}function getRequestedVersion(_0x4c39d5){const _0x3b24dd=a46_0x6622b0;return _0x4c39d5[_0x3b24dd(0x11b)](_0x3b24dd(0x115))[_0x3b24dd(0x121)]();}async function validateUpdateFlags(_0x52b780){const _0x2ea8c1=a46_0x6622b0,_0x3f441d=_0x52b780[_0x2ea8c1(0x108)](_0x2ea8c1(0x119)),_0x506731=getRequestedVersion(_0x52b780);if(_0x3f441d&&_0x506731)throw CliErrors[_0x2ea8c1(0x10d)](_0x2ea8c1(0x120),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x506731&&!a46_0x232578[_0x2ea8c1(0xed)](_0x506731))throw CliErrors[_0x2ea8c1(0x10d)]('Invalid\x20version:\x20'+_0x506731,_0x2ea8c1(0xd3));}async function fetchNpmDistTags(){const _0x3b340f=a46_0x6622b0;try{const _0x32888f=await fetch(_0x3b340f(0xd7)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x3b340f(0xea),{'signal':AbortSignal[_0x3b340f(0xf5)](0x2710)});if(!_0x32888f['ok'])return null;const _0x1cb13a=await _0x32888f[_0x3b340f(0xef)]();if(!_0x1cb13a||typeof _0x1cb13a!=='object')return null;return Object[_0x3b340f(0xdf)](Object[_0x3b340f(0xf6)](_0x1cb13a)[_0x3b340f(0x11d)](([,_0xcd43db])=>typeof _0xcd43db===_0x3b340f(0xd8)&&_0xcd43db['trim']()[_0x3b340f(0xdb)]>0x0)['map'](([_0x2627b7,_0x47a920])=>[_0x2627b7,String(_0x47a920)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2ca0ba){const _0xb48317=await fetchNpmDistTags();return _0xb48317?.[_0x2ca0ba]??null;}async function fetchLatestVersion(){const _0x27ccf6=a46_0x6622b0;return fetchNpmDistTagVersion(_0x27ccf6(0xe8));}async function resolveTargetVersion(_0xbd8cf7){const _0x589920=a46_0x6622b0,_0x33879a=getRequestedVersion(_0xbd8cf7);if(_0x33879a)return{'version':_0x33879a,'source':_0x589920(0x115)};if(_0xbd8cf7[_0x589920(0x108)](_0x589920(0x119))){const _0x1d433=await fetchNpmDistTagVersion(_0x589920(0x119));if(!_0x1d433)return null;return{'version':_0x1d433,'source':_0x589920(0x119)};}const _0x39c920=await fetchLatestVersion();if(!_0x39c920)return null;return{'version':_0x39c920,'source':_0x589920(0xe8)};}function shouldInstallTarget(_0x474a8b,_0x20f9d7){const _0x68ed72=a46_0x6622b0;if(_0x20f9d7[_0x68ed72(0x10b)]===_0x68ed72(0x115)||_0x20f9d7[_0x68ed72(0x10b)]===_0x68ed72(0x119))return!a46_0x232578['eq'](_0x474a8b,_0x20f9d7['version']);return a46_0x232578['lt'](_0x474a8b,_0x20f9d7[_0x68ed72(0x115)]);}function getInstallPlanLabel(_0x2f805d,_0x5375ba){const _0x618ec9=a46_0x6622b0;switch(_0x5375ba['source']){case _0x618ec9(0x119):return'Beta\x20version:\x20'+a46_0x6c1d3a[_0x618ec9(0xe9)](_0x2f805d)+_0x618ec9(0xf1)+a46_0x6c1d3a[_0x618ec9(0x102)](_0x5375ba[_0x618ec9(0x115)]);case'version':return _0x618ec9(0x103)+a46_0x6c1d3a[_0x618ec9(0xe9)](_0x2f805d)+_0x618ec9(0xf1)+a46_0x6c1d3a[_0x618ec9(0x102)](_0x5375ba['version']);case _0x618ec9(0xe8):default:return'Update\x20available:\x20'+a46_0x6c1d3a[_0x618ec9(0xe9)](_0x2f805d)+_0x618ec9(0xf1)+a46_0x6c1d3a[_0x618ec9(0x102)](_0x5375ba['version']);}}function repairCurrentBuiltinSkill(){const _0x1f7b21=a46_0x6622b0;console[_0x1f7b21(0x126)](a46_0x6c1d3a[_0x1f7b21(0x112)](_0x1f7b21(0xe7)));const _0x4efd34=installBuiltinSkill();if(_0x4efd34['ok']){console[_0x1f7b21(0x126)](a46_0x6c1d3a[_0x1f7b21(0x112)](_0x1f7b21(0x10a)+_0x4efd34[_0x1f7b21(0x106)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors['apiError'](_0x1f7b21(0x109)+_0x4efd34[_0x1f7b21(0x101)]+_0x1f7b21(0x11c)+(_0x4efd34['error']||_0x1f7b21(0xe6)),_0x1f7b21(0x104)+_0x4efd34['repairCommand']+_0x1f7b21(0xe3)+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x3a9d98){const _0x58f145=a46_0x6622b0,_0x11d025=inspectInstalledBuiltinSkillVersion(_0x3a9d98);if(_0x11d025['state']==='current'){console['log'](a46_0x6c1d3a[_0x58f145(0x112)](_0x58f145(0x10a)+_0x3a9d98+_0x58f145(0x11f)));return;}const _0x2e81a8=_0x11d025[_0x58f145(0x106)]?_0x58f145(0xde)+_0x3a9d98+_0x58f145(0x105)+_0x11d025[_0x58f145(0x106)]:_0x58f145(0xde)+_0x3a9d98+_0x58f145(0xf8)+_0x11d025[_0x58f145(0xdc)];throw CliErrors[_0x58f145(0x10f)](_0x58f145(0x122)+_0x3a9d98+_0x58f145(0xd4)+_0x2e81a8,'Run:\x20'+_0x11d025[_0x58f145(0x125)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x58f145(0x118));}function a46_0x2b4e(){const _0xbc86a0=['CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','\x20\x20CLI\x20Built-in\x20Skill\x20','source','error','validation','Checking\x20for\x20updates...','apiError','fail','5283Pjlrpm','gray','start','update','version','Version\x20comparison\x20failed','Update\x20failed','\x20doctor','beta','\x20\x20Try\x20manually:\x20','str',']:\x20','filter','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20is\x20up\x20to\x20date.','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','trim','CLI\x20updated\x20to\x20v','install','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','repairCommand','log','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','Updated\x20to\x20v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','https://registry.npmjs.org/-/package/','string','Current\x20version:\x20','1934273tWvMJx','length','state','message','expected\x20','fromEntries','30LoDfba','\x20is\x20newer\x20than\x20npm\x20latest\x20v','878260MwRQYF',',\x20then\x20verify\x20with:\x20','bun','6TCKcdj','unknown','Checking\x20CLI\x20Built-in\x20Skill...','latest','yellow','/dist-tags','210qjcmWI','succeed','valid','987579HWwmYH','json','...','\x20→\x20','npm','includes','pipe','timeout','entries','Already\x20on\x20requested\x20version\x20(v',',\x20state\x20','Updating\x20via\x20','1325224uFRhGx','8lewimi','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','735028ERAVGp','12587724RTUdit','run','3JFptqc','code','green','Requested\x20version:\x20','Run:\x20',',\x20found\x20','skillVersion','\x20install\x20-g\x20','bool'];a46_0x2b4e=function(){return _0xbc86a0;};return a46_0x2b4e();}async function execute(_0x19280b){const _0x513331=a46_0x6622b0;await validateUpdateFlags(_0x19280b);const _0x41607b=getCurrentVersion();console['log'](_0x513331(0xd9)+_0x41607b);const _0x307d36=a46_0x43f9c4(_0x513331(0x10e))['start'](),_0x54e186=await resolveTargetVersion(_0x19280b);if(!_0x54e186){const _0x55be4b=_0x19280b[_0x513331(0x108)](_0x513331(0x119))?_0x513331(0xfc):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x307d36['fail'](_0x55be4b),console['log'](a46_0x6c1d3a['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x55be4b};}const _0xd95a35=a46_0x232578[_0x513331(0xed)](VERSION),_0x31ad57=a46_0x232578[_0x513331(0xed)](_0x54e186[_0x513331(0x115)]);if(!_0xd95a35||!_0x31ad57)return _0x307d36[_0x513331(0x110)](_0x513331(0x116)),{'ok':![],'message':_0x513331(0x116)};if(!shouldInstallTarget(_0xd95a35,_0x54e186)){const _0x5b25ff=_0x54e186[_0x513331(0x10b)]==='version'?_0x513331(0xf7)+_0x54e186['version']+')':a46_0x232578['gt'](_0xd95a35,_0x31ad57)?'Current\x20version\x20v'+_0x41607b+_0x513331(0xe1)+_0x54e186[_0x513331(0x115)]:'Already\x20up\x20to\x20date\x20(v'+_0x54e186[_0x513331(0x115)]+')';return _0x307d36[_0x513331(0xec)](_0x5b25ff),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x307d36['info'](getInstallPlanLabel(_0x41607b,_0x54e186));const _0x41af71=detectPackageManager(),_0x4ba771=_0x41af71===_0x513331(0xf2)?resolveNpmBin(_0x513331(0xf2)):_0x41af71,_0x346b73=a46_0x43f9c4(_0x513331(0xf9)+_0x41af71+_0x513331(0xf0))[_0x513331(0x113)]();try{await execa(_0x4ba771,[_0x513331(0x123),'-g',NPM_PACKAGE_NAME+'@'+_0x54e186[_0x513331(0x115)]],{'stdio':_0x513331(0xf4)}),_0x346b73['succeed'](_0x513331(0xd5)+_0x54e186[_0x513331(0x115)]),console[_0x513331(0x126)](a46_0x6c1d3a[_0x513331(0x112)](_0x513331(0xd6)));}catch(_0x406d1e){return _0x346b73['fail'](_0x513331(0x117)),console[_0x513331(0x10c)](a46_0x6c1d3a['red']('\x20\x20'+_0x406d1e['message'])),console[_0x513331(0x126)](a46_0x6c1d3a[_0x513331(0x112)](_0x513331(0x11a)+_0x41af71+_0x513331(0x107)+NPM_PACKAGE_NAME+'@'+_0x54e186['version'])),{'ok':![],'message':_0x406d1e[_0x513331(0xdd)]};}return verifyUpdatedBuiltinSkill(_0x54e186['version']),{'ok':!![]};}export const updateDefinition={'service':a46_0x6622b0(0x114),'command':a46_0x6622b0(0xff),'description':a46_0x6622b0(0x124),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a46_0x532fea=a46_0x1887;(function(_0x588f3e,_0xc529d){const _0x2d05d2=a46_0x1887,_0x4678e4=_0x588f3e();while(!![]){try{const _0x239180=-parseInt(_0x2d05d2(0x102))/0x1+parseInt(_0x2d05d2(0xef))/0x2*(-parseInt(_0x2d05d2(0xea))/0x3)+parseInt(_0x2d05d2(0x10a))/0x4*(-parseInt(_0x2d05d2(0x106))/0x5)+-parseInt(_0x2d05d2(0x12b))/0x6*(parseInt(_0x2d05d2(0x12d))/0x7)+parseInt(_0x2d05d2(0xe9))/0x8+-parseInt(_0x2d05d2(0x117))/0x9*(-parseInt(_0x2d05d2(0xed))/0xa)+parseInt(_0x2d05d2(0x124))/0xb;if(_0x239180===_0xc529d)break;else _0x4678e4['push'](_0x4678e4['shift']());}catch(_0x23f4f1){_0x4678e4['push'](_0x4678e4['shift']());}}}(a46_0x3891,0x99995));import a46_0x29a64a from'chalk';import a46_0x49fe43 from'ora';import a46_0x1493d8 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 a46_0x1887(_0xffa483,_0x6024f9){_0xffa483=_0xffa483-0xe5;const _0x389113=a46_0x3891();let _0x18871c=_0x389113[_0xffa483];return _0x18871c;}function getCurrentVersion(){const _0x4ba7ef=a46_0x1887;return GIT_COMMIT!==_0x4ba7ef(0x131)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4ba7ef(0xf2)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xcd085a=a46_0x1887,_0x517927=process[_0xcd085a(0x103)][_0xcd085a(0xe5)]();if(_0x517927['includes'](_0xcd085a(0x120)))return _0xcd085a(0x120);return _0xcd085a(0x123);}const updateFlags=[{'name':'beta','type':a46_0x532fea(0x12e),'description':a46_0x532fea(0x11d),'default':![]},{'name':'version','type':a46_0x532fea(0xf7),'description':a46_0x532fea(0x113)}];function a46_0x3891(){const _0x38ed26=['succeed','bool','latest','str','fail','filter','read','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','code','run','2667618ONxHgg','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Already\x20on\x20requested\x20version\x20(v','\x20→\x20','Beta\x20version:\x20',',\x20state\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Current\x20version\x20v','Updated\x20to\x20v','bun','Version\x20comparison\x20failed','skillVersion','npm','27753781hNKEQh','\x20\x20CLI\x20Built-in\x20Skill\x20','pipe','Checking\x20for\x20updates...','validation','Updating\x20via\x20','...','6sGpvKL','state','4210066XFRVKx','boolean','error','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','unknown','Update\x20failed','map','message','source','\x20doctor','fromEntries','toLowerCase','green','gray','Run:\x20','3071752kHikGF','21SoIhIl',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','20LmwjcH','version','157198pZOjiT','install','@latest','slice',',\x20then\x20verify\x20with:\x20','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','beta','log','string','Invalid\x20version:\x20','repairCommand','\x20is\x20up\x20to\x20date.','expected\x20','apiError','update','yellow','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','entries','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','700452jDXDdW','execPath','valid','length','60mfGTIG','object','red','\x20\x20Try\x20manually:\x20','339540gQbVrz','start'];a46_0x3891=function(){return _0x38ed26;};return a46_0x3891();}function getRequestedVersion(_0x5be0fe){const _0x3bcd63=a46_0x532fea;return _0x5be0fe[_0x3bcd63(0x10f)](_0x3bcd63(0xee))['trim']();}async function validateUpdateFlags(_0x251ce4){const _0xf9217f=a46_0x532fea,_0x45eb76=_0x251ce4['bool'](_0xf9217f(0xf5)),_0x4f685e=getRequestedVersion(_0x251ce4);if(_0x45eb76&&_0x4f685e)throw CliErrors[_0xf9217f(0x128)](_0xf9217f(0x118),_0xf9217f(0x101));if(_0x4f685e&&!a46_0x1493d8['valid'](_0x4f685e))throw CliErrors[_0xf9217f(0x128)](_0xf9217f(0xf8)+_0x4f685e,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x3951e5=a46_0x532fea;try{const _0x4bfcbe=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal['timeout'](0x2710)});if(!_0x4bfcbe['ok'])return null;const _0x3fc81c=await _0x4bfcbe['json']();if(!_0x3fc81c||typeof _0x3fc81c!==_0x3951e5(0x107))return null;return Object[_0x3951e5(0x137)](Object[_0x3951e5(0x100)](_0x3fc81c)[_0x3951e5(0x111)](([,_0x2dbc26])=>typeof _0x2dbc26==='string'&&_0x2dbc26['trim']()[_0x3951e5(0x105)]>0x0)[_0x3951e5(0x133)](([_0x1315fc,_0x1eb2b8])=>[_0x1315fc,String(_0x1eb2b8)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x432b2e){const _0x2a68e6=await fetchNpmDistTags();return _0x2a68e6?.[_0x432b2e]??null;}async function fetchLatestVersion(){const _0x4fceba=a46_0x532fea;return fetchNpmDistTagVersion(_0x4fceba(0x10e));}async function resolveTargetVersion(_0x247c6d){const _0x254547=a46_0x532fea,_0x30f1d0=getRequestedVersion(_0x247c6d);if(_0x30f1d0)return{'version':_0x30f1d0,'source':_0x254547(0xee)};if(_0x247c6d[_0x254547(0x10d)]('beta')){const _0x45249=await fetchNpmDistTagVersion(_0x254547(0xf5));if(!_0x45249)return null;return{'version':_0x45249,'source':_0x254547(0xf5)};}const _0x37d0c9=await fetchLatestVersion();if(!_0x37d0c9)return null;return{'version':_0x37d0c9,'source':_0x254547(0x10e)};}function shouldInstallTarget(_0x13c26c,_0xe6f1cb){const _0x53cc62=a46_0x532fea;if(_0xe6f1cb[_0x53cc62(0x135)]===_0x53cc62(0xee)||_0xe6f1cb[_0x53cc62(0x135)]===_0x53cc62(0xf5))return!a46_0x1493d8['eq'](_0x13c26c,_0xe6f1cb[_0x53cc62(0xee)]);return a46_0x1493d8['lt'](_0x13c26c,_0xe6f1cb[_0x53cc62(0xee)]);}function getInstallPlanLabel(_0x1ee935,_0x3bacd2){const _0x14a5ea=a46_0x532fea;switch(_0x3bacd2[_0x14a5ea(0x135)]){case _0x14a5ea(0xf5):return _0x14a5ea(0x11b)+a46_0x29a64a[_0x14a5ea(0xfe)](_0x1ee935)+'\x20→\x20'+a46_0x29a64a[_0x14a5ea(0xe6)](_0x3bacd2[_0x14a5ea(0xee)]);case _0x14a5ea(0xee):return'Requested\x20version:\x20'+a46_0x29a64a[_0x14a5ea(0xfe)](_0x1ee935)+_0x14a5ea(0x11a)+a46_0x29a64a[_0x14a5ea(0xe6)](_0x3bacd2[_0x14a5ea(0xee)]);case _0x14a5ea(0x10e):default:return'Update\x20available:\x20'+a46_0x29a64a[_0x14a5ea(0xfe)](_0x1ee935)+_0x14a5ea(0x11a)+a46_0x29a64a[_0x14a5ea(0xe6)](_0x3bacd2['version']);}}function repairCurrentBuiltinSkill(){const _0x2b6885=a46_0x532fea;console['log'](a46_0x29a64a[_0x2b6885(0xe7)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x9dd1b3=installBuiltinSkill();if(_0x9dd1b3['ok']){console[_0x2b6885(0xf6)](a46_0x29a64a['gray'](_0x2b6885(0x125)+_0x9dd1b3[_0x2b6885(0x122)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors[_0x2b6885(0xfc)](_0x2b6885(0xf4)+_0x9dd1b3[_0x2b6885(0x115)]+']:\x20'+(_0x9dd1b3[_0x2b6885(0x12f)]||_0x2b6885(0x131)),_0x2b6885(0xe8)+_0x9dd1b3[_0x2b6885(0xf9)]+_0x2b6885(0xf3)+CLI_BIN_NAME+'\x20doctor');}function verifyUpdatedBuiltinSkill(_0x2d32ab){const _0xcbd8e7=a46_0x532fea,_0x3a5890=inspectInstalledBuiltinSkillVersion(_0x2d32ab);if(_0x3a5890[_0xcbd8e7(0x12c)]==='current'){console['log'](a46_0x29a64a[_0xcbd8e7(0xe7)](_0xcbd8e7(0x125)+_0x2d32ab+_0xcbd8e7(0xfa)));return;}const _0x1d54b0=_0x3a5890[_0xcbd8e7(0x122)]?'expected\x20'+_0x2d32ab+',\x20found\x20'+_0x3a5890['skillVersion']:_0xcbd8e7(0xfb)+_0x2d32ab+_0xcbd8e7(0x11c)+_0x3a5890['state'];throw CliErrors[_0xcbd8e7(0xfc)]('CLI\x20updated\x20to\x20v'+_0x2d32ab+_0xcbd8e7(0xeb)+_0x1d54b0,_0xcbd8e7(0xe8)+_0x3a5890[_0xcbd8e7(0xf9)]+_0xcbd8e7(0xf3)+CLI_BIN_NAME+_0xcbd8e7(0x136));}async function execute(_0x4602cd){const _0x12da9e=a46_0x532fea;await validateUpdateFlags(_0x4602cd);const _0x539d70=getCurrentVersion();console[_0x12da9e(0xf6)]('Current\x20version:\x20'+_0x539d70);const _0x46f1a2=a46_0x49fe43(_0x12da9e(0x127))[_0x12da9e(0x10b)](),_0x4db213=await resolveTargetVersion(_0x4602cd);if(!_0x4db213){const _0x411ed6=_0x4602cd[_0x12da9e(0x10d)]('beta')?_0x12da9e(0xff):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x46f1a2['fail'](_0x411ed6),console[_0x12da9e(0xf6)](a46_0x29a64a[_0x12da9e(0xe7)](_0x12da9e(0x130)+NPM_PACKAGE_NAME+_0x12da9e(0xf1))),{'ok':![],'message':_0x411ed6};}const _0x114112=a46_0x1493d8[_0x12da9e(0x104)](VERSION),_0x48262b=a46_0x1493d8[_0x12da9e(0x104)](_0x4db213[_0x12da9e(0xee)]);if(!_0x114112||!_0x48262b)return _0x46f1a2[_0x12da9e(0x110)](_0x12da9e(0x121)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x114112,_0x4db213)){const _0x3e74a7=_0x4db213[_0x12da9e(0x135)]==='version'?_0x12da9e(0x119)+_0x4db213['version']+')':a46_0x1493d8['gt'](_0x114112,_0x48262b)?_0x12da9e(0x11e)+_0x539d70+'\x20is\x20newer\x20than\x20npm\x20latest\x20v'+_0x4db213[_0x12da9e(0xee)]:'Already\x20up\x20to\x20date\x20(v'+_0x4db213[_0x12da9e(0xee)]+')';return _0x46f1a2[_0x12da9e(0x10c)](_0x3e74a7),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x46f1a2['info'](getInstallPlanLabel(_0x539d70,_0x4db213));const _0x348d48=detectPackageManager(),_0x58c5ec=_0x348d48==='npm'?resolveNpmBin(_0x12da9e(0x123)):_0x348d48,_0x3ace5e=a46_0x49fe43(_0x12da9e(0x129)+_0x348d48+_0x12da9e(0x12a))['start']();try{await execa(_0x58c5ec,[_0x12da9e(0xf0),'-g',NPM_PACKAGE_NAME+'@'+_0x4db213[_0x12da9e(0xee)]],{'stdio':_0x12da9e(0x126)}),_0x3ace5e['succeed'](_0x12da9e(0x11f)+_0x4db213[_0x12da9e(0xee)]),console[_0x12da9e(0xf6)](a46_0x29a64a[_0x12da9e(0xe7)](_0x12da9e(0x114)));}catch(_0x3e068d){return _0x3ace5e[_0x12da9e(0x110)](_0x12da9e(0x132)),console[_0x12da9e(0x12f)](a46_0x29a64a[_0x12da9e(0x108)]('\x20\x20'+_0x3e068d[_0x12da9e(0x134)])),console[_0x12da9e(0xf6)](a46_0x29a64a[_0x12da9e(0xe7)](_0x12da9e(0x109)+_0x348d48+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4db213['version'])),{'ok':![],'message':_0x3e068d[_0x12da9e(0x134)]};}return verifyUpdatedBuiltinSkill(_0x4db213[_0x12da9e(0xee)]),{'ok':!![]};}export const updateDefinition={'service':a46_0x532fea(0xfd),'command':a46_0x532fea(0x116),'description':a46_0x532fea(0xec),'risk':a46_0x532fea(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x51f16b,_0x5d3580){const _0x5be852=a47_0x112d,_0x3927ca=_0x51f16b();while(!![]){try{const _0x17e19b=-parseInt(_0x5be852(0xec))/0x1+parseInt(_0x5be852(0xf1))/0x2*(-parseInt(_0x5be852(0xef))/0x3)+parseInt(_0x5be852(0xe9))/0x4+-parseInt(_0x5be852(0xeb))/0x5*(-parseInt(_0x5be852(0xee))/0x6)+-parseInt(_0x5be852(0xf0))/0x7*(parseInt(_0x5be852(0xe8))/0x8)+parseInt(_0x5be852(0xed))/0x9*(parseInt(_0x5be852(0xf2))/0xa)+parseInt(_0x5be852(0xea))/0xb;if(_0x17e19b===_0x5d3580)break;else _0x3927ca['push'](_0x3927ca['shift']());}catch(_0x45b603){_0x3927ca['push'](_0x3927ca['shift']());}}}(a47_0x4cce,0x5eb10));import{codegenSdk}from'../../commands/codegen/sdk.js';function a47_0x4cce(){const _0x591020=['5291909iSFVgC','614xCwdtb','9170iNIMiL','8fMvXuP','2169188JiRHUN','2375032XXuDDh','40xwNsnh','248179coWPpg','5472cROdMM','61122jNLNHN','51nDnfKq'];a47_0x4cce=function(){return _0x591020;};return a47_0x4cce();}import{codegenSql}from'../../commands/codegen/sql.js';function a47_0x112d(_0x1770bd,_0x5e1eca){_0x1770bd=_0x1770bd-0xe8;const _0x4ccec3=a47_0x4cce();let _0x112d7b=_0x4ccec3[_0x1770bd];return _0x112d7b;}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x5d5002,_0x208f12){const _0x2aae7a=a47_0x5955,_0x3aa4e9=_0x5d5002();while(!![]){try{const _0x2bc66e=-parseInt(_0x2aae7a(0x145))/0x1*(-parseInt(_0x2aae7a(0x13d))/0x2)+parseInt(_0x2aae7a(0x140))/0x3*(parseInt(_0x2aae7a(0x141))/0x4)+-parseInt(_0x2aae7a(0x142))/0x5+-parseInt(_0x2aae7a(0x143))/0x6*(parseInt(_0x2aae7a(0x144))/0x7)+parseInt(_0x2aae7a(0x13f))/0x8+-parseInt(_0x2aae7a(0x147))/0x9*(-parseInt(_0x2aae7a(0x13e))/0xa)+-parseInt(_0x2aae7a(0x146))/0xb;if(_0x2bc66e===_0x208f12)break;else _0x3aa4e9['push'](_0x3aa4e9['shift']());}catch(_0xd01d71){_0x3aa4e9['push'](_0x3aa4e9['shift']());}}}(a47_0x1d7f,0x6d1d3));import{codegenSdk}from'../../commands/codegen/sdk.js';function a47_0x5955(_0x1b5300,_0x59f806){_0x1b5300=_0x1b5300-0x13d;const _0x1d7f2e=a47_0x1d7f();let _0x59550f=_0x1d7f2e[_0x1b5300];return _0x59550f;}function a47_0x1d7f(){const _0x191479=['6010642zlWvOV','81czJwIH','10hflZIl','970870vlabFX','4330368XgRdsq','39687YdvgUx','56RokGmg','3068965ygkkRE','45138NFfUAi','406tYQsYV','88639YsDwPX'];a47_0x1d7f=function(){return _0x191479;};return a47_0x1d7f();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a48_0x30a008=a48_0x44be;(function(_0x25befd,_0x53f223){const _0x2be962=a48_0x44be,_0x4d5f55=_0x25befd();while(!![]){try{const _0x36e337=parseInt(_0x2be962(0x12b))/0x1*(-parseInt(_0x2be962(0x12a))/0x2)+parseInt(_0x2be962(0x120))/0x3+parseInt(_0x2be962(0x124))/0x4+parseInt(_0x2be962(0x12d))/0x5*(-parseInt(_0x2be962(0x11a))/0x6)+parseInt(_0x2be962(0x11e))/0x7+parseInt(_0x2be962(0x121))/0x8+-parseInt(_0x2be962(0x126))/0x9;if(_0x36e337===_0x53f223)break;else _0x4d5f55['push'](_0x4d5f55['shift']());}catch(_0x18994d){_0x4d5f55['push'](_0x4d5f55['shift']());}}}(a48_0x5878,0xeae57));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a48_0x5878(){const _0xcb7ace=['Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','name','13182099jjhqAy','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','2364159qZEqky','10159776FacqxG','boolean','alias','1946304KHjGBL','str','17053416mwctnP','tableName','sdk','operation','14Bfutaj','119005CxtDnb','appCode','1844410WLAMsc','Omit\x20import\x20statements\x20from\x20generated\x20code','skip-imports','bool','read','codegen','12ThJFBu','string'];a48_0x5878=function(){return _0xcb7ace;};return a48_0x5878();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x44be(_0x15ec51,_0x404415){_0x15ec51=_0x15ec51-0x115;const _0x58785c=a48_0x5878();let _0x44be77=_0x58785c[_0x15ec51];return _0x44be77;}export const codegenSdk={'service':a48_0x30a008(0x119),'command':a48_0x30a008(0x128),'description':a48_0x30a008(0x11c),'risk':a48_0x30a008(0x118),'flags':[CODE_FLAG_OPTIONAL,{'name':a48_0x30a008(0x123),'type':a48_0x30a008(0x11b),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a48_0x30a008(0x129),'type':'string','required':!![],'description':a48_0x30a008(0x11f)},{'name':a48_0x30a008(0x116),'type':a48_0x30a008(0x122),'description':a48_0x30a008(0x115)}],async 'execute'(_0x56af4a){const _0x463ce6=a48_0x30a008,{dataset:_0x2f24fc,operation:_0x279963}=await getOperationDetail(_0x56af4a[_0x463ce6(0x12c)],_0x56af4a[_0x463ce6(0x125)]('code'),_0x56af4a[_0x463ce6(0x125)](_0x463ce6(0x129))),_0x48214d=generateSdkCode(_0x2f24fc,_0x279963,{'includeImports':!_0x56af4a[_0x463ce6(0x117)](_0x463ce6(0x116))});return{'ok':!![],'data':{'dataset':{'name':_0x2f24fc[_0x463ce6(0x11d)],'code':_0x2f24fc['code'],'tableName':_0x2f24fc[_0x463ce6(0x127)]},'operation':_0x56af4a[_0x463ce6(0x125)](_0x463ce6(0x129)),'code':_0x48214d}};}};
1
+ const a48_0x3d9707=a48_0x2d0b;(function(_0x588182,_0x2fa23e){const _0x1b39d0=a48_0x2d0b,_0x2be660=_0x588182();while(!![]){try{const _0x599fcc=-parseInt(_0x1b39d0(0x92))/0x1+-parseInt(_0x1b39d0(0x9a))/0x2*(parseInt(_0x1b39d0(0x8f))/0x3)+-parseInt(_0x1b39d0(0x8d))/0x4+-parseInt(_0x1b39d0(0x99))/0x5+parseInt(_0x1b39d0(0x93))/0x6*(parseInt(_0x1b39d0(0xa4))/0x7)+-parseInt(_0x1b39d0(0xa3))/0x8*(parseInt(_0x1b39d0(0x9b))/0x9)+-parseInt(_0x1b39d0(0x91))/0xa*(-parseInt(_0x1b39d0(0x8e))/0xb);if(_0x599fcc===_0x2fa23e)break;else _0x2be660['push'](_0x2be660['shift']());}catch(_0x58cec0){_0x2be660['push'](_0x2be660['shift']());}}}(a48_0x5ca4,0x6d54d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x2d0b(_0x4f365f,_0x17472b){_0x4f365f=_0x4f365f-0x8d;const _0x5ca40d=a48_0x5ca4();let _0x2d0ba1=_0x5ca40d[_0x4f365f];return _0x2d0ba1;}function a48_0x5ca4(){const _0x23550b=['str','sdk','operation','skip-imports','code','456NUcRXu','7ABKFBD','codegen','2150924jWJFRa','5478dVFQYx','3327xmgPfe','name','26210ketapK','369259KTDedH','4151778SYfqGs','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','string','743295aZHXLO','32tarWVe','75159HrXwUd','tableName','alias'];a48_0x5ca4=function(){return _0x23550b;};return a48_0x5ca4();}export const codegenSdk={'service':a48_0x3d9707(0xa5),'command':a48_0x3d9707(0x9f),'description':a48_0x3d9707(0x97),'risk':a48_0x3d9707(0x95),'flags':[CODE_FLAG_OPTIONAL,{'name':a48_0x3d9707(0x9d),'type':a48_0x3d9707(0x98),'description':a48_0x3d9707(0x96)},{'name':a48_0x3d9707(0xa0),'type':a48_0x3d9707(0x98),'required':!![],'description':a48_0x3d9707(0x94)},{'name':'skip-imports','type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0xa2eb5b){const _0x2f164d=a48_0x3d9707,{dataset:_0x5566ff,operation:_0x56d8d0}=await getOperationDetail(_0xa2eb5b['appCode'],_0xa2eb5b[_0x2f164d(0x9e)](_0x2f164d(0xa2)),_0xa2eb5b[_0x2f164d(0x9e)](_0x2f164d(0xa0))),_0x5618f0=generateSdkCode(_0x5566ff,_0x56d8d0,{'includeImports':!_0xa2eb5b['bool'](_0x2f164d(0xa1))});return{'ok':!![],'data':{'dataset':{'name':_0x5566ff[_0x2f164d(0x90)],'code':_0x5566ff[_0x2f164d(0xa2)],'tableName':_0x5566ff[_0x2f164d(0x9c)]},'operation':_0xa2eb5b[_0x2f164d(0x9e)](_0x2f164d(0xa0)),'code':_0x5618f0}};}};
@@ -1 +1 @@
1
- function a49_0x266e(){const _0x48ce7b=['sqlCode','6376568ZmvYGp','1874310vDwBib','str','boolean','108844JnMHWs','bool','read','117ybjuRN','4hcUgfd','sqlName','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','343606HOBzin','string','871968awVnqa','codegen','sql','678byyZwB','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','no-imports','sdk','bff','3595977NoxKUx','25605eeLMly','sqlcode','Omit\x20import\x20statements\x20from\x20generated\x20code','target'];a49_0x266e=function(){return _0x48ce7b;};return a49_0x266e();}const a49_0x3bf142=a49_0x1de9;(function(_0x2be00a,_0x3a429d){const _0x3f4e68=a49_0x1de9,_0x49757e=_0x2be00a();while(!![]){try{const _0x4f27a4=-parseInt(_0x3f4e68(0x17e))/0x1*(-parseInt(_0x3f4e68(0x181))/0x2)+parseInt(_0x3f4e68(0x183))/0x3+parseInt(_0x3f4e68(0x17a))/0x4+parseInt(_0x3f4e68(0x171))/0x5*(parseInt(_0x3f4e68(0x186))/0x6)+parseInt(_0x3f4e68(0x170))/0x7+parseInt(_0x3f4e68(0x176))/0x8+parseInt(_0x3f4e68(0x17d))/0x9*(-parseInt(_0x3f4e68(0x177))/0xa);if(_0x4f27a4===_0x3a429d)break;else _0x49757e['push'](_0x49757e['shift']());}catch(_0x18166f){_0x49757e['push'](_0x49757e['shift']());}}}(a49_0x266e,0x6fccb));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a49_0x1de9(_0x3a7ca8,_0x23f3fd){_0x3a7ca8=_0x3a7ca8-0x16c;const _0x266e97=a49_0x266e();let _0x1de94e=_0x266e97[_0x3a7ca8];return _0x1de94e;}export const codegenSql={'service':a49_0x3bf142(0x184),'command':a49_0x3bf142(0x185),'description':a49_0x3bf142(0x180),'risk':a49_0x3bf142(0x17c),'flags':[SQLCODE_FLAG,{'name':a49_0x3bf142(0x174),'type':a49_0x3bf142(0x182),'description':a49_0x3bf142(0x16c),'default':a49_0x3bf142(0x16e),'enum':[a49_0x3bf142(0x16e),a49_0x3bf142(0x16f)]},{'name':a49_0x3bf142(0x16d),'type':a49_0x3bf142(0x179),'description':a49_0x3bf142(0x173)}],async 'execute'(_0x2a26df){const _0x2fc452=a49_0x3bf142,_0xc3d33f=await getSqlQueryInfo(_0x2a26df['appCode'],_0x2a26df['str'](_0x2fc452(0x172))),_0x69b765=_0x2a26df[_0x2fc452(0x178)](_0x2fc452(0x174))||_0x2fc452(0x16e),_0x180056=generateSqlCodeTemplate(_0xc3d33f,{'target':_0x69b765,'includeImports':!_0x2a26df[_0x2fc452(0x17b)](_0x2fc452(0x16d))});return{'ok':!![],'data':{'sqlCode':_0xc3d33f[_0x2fc452(0x175)],'sqlName':_0xc3d33f[_0x2fc452(0x17f)],'target':_0x69b765,'code':_0x180056}};}};
1
+ const a49_0x4f5fa3=a49_0x2e78;function a49_0x2e78(_0x3fc346,_0x5e08a7){_0x3fc346=_0x3fc346-0x196;const _0x39d0bd=a49_0x39d0();let _0x2e78b6=_0x39d0bd[_0x3fc346];return _0x2e78b6;}(function(_0x5f1ea0,_0x4d380f){const _0x32f915=a49_0x2e78,_0x3253cb=_0x5f1ea0();while(!![]){try{const _0x562491=-parseInt(_0x32f915(0x1ab))/0x1+parseInt(_0x32f915(0x197))/0x2+-parseInt(_0x32f915(0x1a1))/0x3+-parseInt(_0x32f915(0x1a2))/0x4*(parseInt(_0x32f915(0x19b))/0x5)+parseInt(_0x32f915(0x1a6))/0x6+-parseInt(_0x32f915(0x19e))/0x7+parseInt(_0x32f915(0x198))/0x8*(parseInt(_0x32f915(0x1a9))/0x9);if(_0x562491===_0x4d380f)break;else _0x3253cb['push'](_0x3253cb['shift']());}catch(_0x4ad9ae){_0x3253cb['push'](_0x3253cb['shift']());}}}(a49_0x39d0,0xf39af));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a49_0x39d0(){const _0x544674=['8120812KamKxQ','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','2196507KjVlVw','283292mMcHIJ','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','appCode','no-imports','8158068bgJhbN','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sdk','1676178prGjhT','str','1236520bhUTlq','boolean','codegen','1431238HcOZJn','152TsZwxP','target','sql','105nzoqhG','sqlCode','bff'];a49_0x39d0=function(){return _0x544674;};return a49_0x39d0();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a49_0x4f5fa3(0x196),'command':a49_0x4f5fa3(0x19a),'description':a49_0x4f5fa3(0x1a7),'risk':'read','flags':[SQLCODE_FLAG,{'name':a49_0x4f5fa3(0x199),'type':'string','description':a49_0x4f5fa3(0x1a3),'default':a49_0x4f5fa3(0x1a8),'enum':[a49_0x4f5fa3(0x1a8),a49_0x4f5fa3(0x19d)]},{'name':a49_0x4f5fa3(0x1a5),'type':a49_0x4f5fa3(0x1ac),'description':a49_0x4f5fa3(0x1a0)}],async 'execute'(_0xe2117c){const _0x22ab5d=a49_0x4f5fa3,_0x4e2262=await getSqlQueryInfo(_0xe2117c[_0x22ab5d(0x1a4)],_0xe2117c[_0x22ab5d(0x1aa)]('sqlcode')),_0x1601f9=_0xe2117c[_0x22ab5d(0x1aa)]('target')||'sdk',_0x57e231=generateSqlCodeTemplate(_0x4e2262,{'target':_0x1601f9,'includeImports':!_0xe2117c['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x4e2262[_0x22ab5d(0x19c)],'sqlName':_0x4e2262[_0x22ab5d(0x19f)],'target':_0x1601f9,'code':_0x57e231}};}};
@@ -1 +1 @@
1
- function a50_0x48d2(){const _0x36e9a5=['\x20config.','global','args','boolean','length','\x20Note:\x20app\x20\x22','globalConfig','148HqRiBq','Removed\x20app\x20\x22','both','App\x20code','\x22\x20is\x20selected\x20automatically.','trim','\x20Remaining\x20app\x20\x22','projectConfig','\x20<name>\x20[--global]','str','\x22\x20not\x20found.','\x20app\x20\x22','flagMissing','\x20Default\x20app\x20changed\x20to\x20\x22','App\x20\x22','6261JjFTUb','string','object','Usage:\x20','validation','Use\x20global\x20config\x20scope','\x20<name>','apps','Missing\x20app\x20name.','project','appcode','1806828LViMjg','defaultApp','17605eMQmix','40vXCOhx','Updated','385759OnyxXi','bool','1683675NsmCXw','\x20<name>\x20--appcode\x20<code>','400uEZHZw','294BWMLzE','564066HHuEPs','keys','414465niNZxa'];a50_0x48d2=function(){return _0x36e9a5;};return a50_0x48d2();}(function(_0x5ebeb2,_0x2f5487){const _0x1ce081=a50_0x2440,_0x3695e8=_0x5ebeb2();while(!![]){try{const _0x2a7455=-parseInt(_0x1ce081(0x97))/0x1*(parseInt(_0x1ce081(0xb7))/0x2)+-parseInt(_0x1ce081(0xaf))/0x3+-parseInt(_0x1ce081(0xa2))/0x4+-parseInt(_0x1ce081(0xa4))/0x5*(parseInt(_0x1ce081(0xac))/0x6)+-parseInt(_0x1ce081(0xa9))/0x7+-parseInt(_0x1ce081(0xa5))/0x8*(-parseInt(_0x1ce081(0xad))/0x9)+-parseInt(_0x1ce081(0xab))/0xa*(-parseInt(_0x1ce081(0xa7))/0xb);if(_0x2a7455===_0x2f5487)break;else _0x3695e8['push'](_0x3695e8['shift']());}catch(_0x372a38){_0x3695e8['push'](_0x3695e8['shift']());}}}(a50_0x48d2,0x3d02c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x1817f4=a50_0x2440;return[{'name':_0x1817f4(0xa1),'type':'string','description':_0x1817f4(0xba),'required':!![]},{'name':_0x1817f4(0xb1),'type':_0x1817f4(0xb3),'description':_0x1817f4(0x9c),'default':![]},...getAppProfileFlagDefs()];}function a50_0x2440(_0x2df700,_0x1c3ced){_0x2df700=_0x2df700-0x90;const _0x48d226=a50_0x48d2();let _0x24401f=_0x48d226[_0x2df700];return _0x24401f;}export function buildAppRemoveFlags(){const _0x5bed2b=a50_0x2440;return[{'name':_0x5bed2b(0xb1),'type':_0x5bed2b(0xb3),'description':_0x5bed2b(0x9c),'default':![]}];}export async function validateAppName(_0x17af07,_0x34fb53){const _0x180b9e=a50_0x2440,_0x521fb2=_0x17af07[_0x180b9e(0xb2)][0x0]?.['trim']();if(!_0x521fb2)throw CliErrors[_0x180b9e(0x9b)](_0x180b9e(0x9f),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x34fb53+_0x180b9e(0x9d));}export async function runAppAdd(_0x2af63b,_0x548455){const _0x2e30f0=a50_0x2440,_0xb52805=_0x2af63b['args'][0x0]?.[_0x2e30f0(0xbc)]();if(!_0xb52805)throw CliErrors[_0x2e30f0(0x9b)](_0x2e30f0(0x9f),_0x2e30f0(0x9a)+CLI_BIN_NAME+'\x20'+_0x548455+_0x2e30f0(0xaa));const _0x5a3e1b=_0x2af63b[_0x2e30f0(0x91)](_0x2e30f0(0xa1));if(!_0x5a3e1b)throw CliErrors[_0x2e30f0(0x94)](_0x2e30f0(0xa1),_0x2e30f0(0x9a)+CLI_BIN_NAME+'\x20'+_0x548455+_0x2e30f0(0xaa));const _0x2c116a={'global':_0x2af63b[_0x2e30f0(0xa8)](_0x2e30f0(0xb1))},_0x1c8408=readConfig(_0x2c116a);if(!_0x1c8408[_0x2e30f0(0x9e)])_0x1c8408[_0x2e30f0(0x9e)]={};const _0xe8d92e={'appcode':_0x5a3e1b,...collectAppProfileOverrides(_0x4f2ac8=>_0x2af63b['str'](_0x4f2ac8))},_0x49efb3=_0x1c8408[_0x2e30f0(0x9e)],_0x3b463b=Object['keys'](_0x49efb3),_0x51067b=typeof _0x1c8408[_0x2e30f0(0xa3)]==='string'&&_0x49efb3[_0x1c8408[_0x2e30f0(0xa3)]]?_0x1c8408[_0x2e30f0(0xa3)]:_0x3b463b[_0x2e30f0(0xb4)]===0x1?_0x3b463b[0x0]:undefined,_0x69ff5e=!!_0x49efb3[_0xb52805];_0x49efb3[_0xb52805]=_0xe8d92e;const _0x2adae2=normalizeStoredDefaultApp(_0x1c8408,_0x51067b);writeConfig(_0x1c8408,_0x2c116a);const _0x47009d=!_0x69ff5e&&_0x2adae2?'\x20Default\x20app\x20is\x20\x22'+_0x2adae2+'\x22.':'',_0x28b543=(_0x69ff5e?_0x2e30f0(0xa6):'Added')+_0x2e30f0(0x93)+_0xb52805+'\x22\x20(appcode:\x20'+_0x5a3e1b+')'+scopeLabel(_0x2c116a)+'.'+_0x47009d;return{'ok':!![],'message':_0x28b543};}export async function runAppRemove(_0x3e7a6f,_0x4cf7a4){const _0x59c272=a50_0x2440,_0x5e1d58=_0x3e7a6f[_0x59c272(0xb2)][0x0]?.[_0x59c272(0xbc)]();if(!_0x5e1d58)throw CliErrors[_0x59c272(0x9b)](_0x59c272(0x9f),_0x59c272(0x9a)+CLI_BIN_NAME+'\x20'+_0x4cf7a4+_0x59c272(0x90));const _0x2b98f5=_0x3e7a6f[_0x59c272(0xa8)](_0x59c272(0xb1)),{config:_0x15fc8a,layers:_0x13b663}=readRawConfigWithLayers(),_0x209cf8=_0x15fc8a['apps']??{};if(!_0x209cf8[_0x5e1d58])throw CliErrors[_0x59c272(0x9b)](_0x59c272(0x96)+_0x5e1d58+_0x59c272(0x92));const _0x56f921=_0x13b663['globalConfig'][_0x59c272(0x9e)]&&typeof _0x13b663[_0x59c272(0xb6)][_0x59c272(0x9e)]==='object'?_0x13b663[_0x59c272(0xb6)][_0x59c272(0x9e)]:{},_0x43b6aa=_0x13b663[_0x59c272(0xbe)][_0x59c272(0x9e)]&&typeof _0x13b663[_0x59c272(0xbe)][_0x59c272(0x9e)]===_0x59c272(0x99)?_0x13b663[_0x59c272(0xbe)]['apps']:{},_0x1ab868=appDefinedIn(_0x5e1d58,_0x56f921,_0x43b6aa),_0x430bf9=resolveAppScopeForWrite(_0x5e1d58,_0x2b98f5,_0x13b663),_0x410d3c={'global':_0x430bf9==='global'},_0x28ebb5=readConfig(_0x410d3c),_0x1de6cb=_0x28ebb5[_0x59c272(0x9e)];if(!_0x1de6cb||!_0x1de6cb[_0x5e1d58])throw CliErrors[_0x59c272(0x9b)]('App\x20\x22'+_0x5e1d58+_0x59c272(0x92));delete _0x1de6cb[_0x5e1d58];let _0x19c721='';const _0x168a8b=typeof _0x28ebb5[_0x59c272(0xa3)]===_0x59c272(0x98)?_0x28ebb5[_0x59c272(0xa3)]:undefined,_0x41059f=Object[_0x59c272(0xae)](_0x1de6cb),_0x159a31=_0x168a8b===_0x5e1d58?_0x41059f[0x0]:_0x168a8b,_0x437930=normalizeStoredDefaultApp(_0x28ebb5,_0x159a31);if(_0x168a8b===_0x5e1d58&&_0x41059f[_0x59c272(0xb4)]===0x1)_0x19c721=_0x59c272(0xbd)+_0x41059f[0x0]+_0x59c272(0xbb);else _0x168a8b===_0x5e1d58&&_0x437930&&(_0x19c721=_0x59c272(0x95)+_0x437930+'\x22.');Object[_0x59c272(0xae)](_0x1de6cb)[_0x59c272(0xb4)]===0x0&&(delete _0x28ebb5[_0x59c272(0x9e)],delete _0x28ebb5[_0x59c272(0xa3)]);writeConfig(_0x28ebb5,_0x410d3c);const _0x523088=_0x1ab868===_0x59c272(0xb9)?_0x59c272(0xb5)+_0x5e1d58+'\x22\x20still\x20defined\x20in\x20'+(_0x430bf9==='project'?_0x59c272(0xb1):_0x59c272(0xa0))+_0x59c272(0xb0):'';return{'ok':!![],'message':_0x59c272(0xb8)+_0x5e1d58+'\x22'+scopeLabel(_0x410d3c)+'.'+_0x19c721+_0x523088};}
1
+ (function(_0x48d862,_0x4e3275){const _0x13b67e=a50_0x1a7d,_0xdaf102=_0x48d862();while(!![]){try{const _0x2dd516=parseInt(_0x13b67e(0x16f))/0x1+parseInt(_0x13b67e(0x17a))/0x2*(parseInt(_0x13b67e(0x175))/0x3)+parseInt(_0x13b67e(0x174))/0x4+parseInt(_0x13b67e(0x155))/0x5*(parseInt(_0x13b67e(0x158))/0x6)+parseInt(_0x13b67e(0x15f))/0x7+-parseInt(_0x13b67e(0x17c))/0x8*(parseInt(_0x13b67e(0x177))/0x9)+-parseInt(_0x13b67e(0x16e))/0xa;if(_0x2dd516===_0x4e3275)break;else _0xdaf102['push'](_0xdaf102['shift']());}catch(_0x4c552b){_0xdaf102['push'](_0xdaf102['shift']());}}}(a50_0xbc73,0x60d49));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x22655c=a50_0x1a7d;return[{'name':_0x22655c(0x164),'type':_0x22655c(0x16b),'description':_0x22655c(0x16a),'required':!![]},{'name':_0x22655c(0x15a),'type':_0x22655c(0x161),'description':_0x22655c(0x178),'default':![]},...getAppProfileFlagDefs()];}function a50_0x1a7d(_0xca0cd0,_0x5a5fbb){_0xca0cd0=_0xca0cd0-0x152;const _0xbc732e=a50_0xbc73();let _0x1a7d54=_0xbc732e[_0xca0cd0];return _0x1a7d54;}export function buildAppRemoveFlags(){const _0x5c9aff=a50_0x1a7d;return[{'name':_0x5c9aff(0x15a),'type':'boolean','description':_0x5c9aff(0x178),'default':![]}];}export async function validateAppName(_0x4d0dc0,_0x305e5e){const _0x878849=a50_0x1a7d,_0xb533f8=_0x4d0dc0[_0x878849(0x176)][0x0]?.['trim']();if(!_0xb533f8)throw CliErrors[_0x878849(0x156)](_0x878849(0x163),_0x878849(0x152)+CLI_BIN_NAME+'\x20'+_0x305e5e+'\x20<name>');}export async function runAppAdd(_0x3f9889,_0x119ea1){const _0x4ed831=a50_0x1a7d,_0x567477=_0x3f9889['args'][0x0]?.[_0x4ed831(0x17b)]();if(!_0x567477)throw CliErrors[_0x4ed831(0x156)](_0x4ed831(0x163),_0x4ed831(0x152)+CLI_BIN_NAME+'\x20'+_0x119ea1+'\x20<name>\x20--appcode\x20<code>');const _0x1a3669=_0x3f9889[_0x4ed831(0x179)]('appcode');if(!_0x1a3669)throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x119ea1+_0x4ed831(0x159));const _0x3eb0cd={'global':_0x3f9889[_0x4ed831(0x157)](_0x4ed831(0x15a))},_0x3fe476=readConfig(_0x3eb0cd);if(!_0x3fe476['apps'])_0x3fe476[_0x4ed831(0x162)]={};const _0x3065aa={'appcode':_0x1a3669,...collectAppProfileOverrides(_0x1f7a7f=>_0x3f9889[_0x4ed831(0x179)](_0x1f7a7f))},_0x4b1c6a=_0x3fe476[_0x4ed831(0x162)],_0x2a7cc9=Object[_0x4ed831(0x169)](_0x4b1c6a),_0xfbc9dd=typeof _0x3fe476['defaultApp']===_0x4ed831(0x16b)&&_0x4b1c6a[_0x3fe476[_0x4ed831(0x15e)]]?_0x3fe476[_0x4ed831(0x15e)]:_0x2a7cc9[_0x4ed831(0x168)]===0x1?_0x2a7cc9[0x0]:undefined,_0xfb872b=!!_0x4b1c6a[_0x567477];_0x4b1c6a[_0x567477]=_0x3065aa;const _0x27d33e=normalizeStoredDefaultApp(_0x3fe476,_0xfbc9dd);writeConfig(_0x3fe476,_0x3eb0cd);const _0x13f867=!_0xfb872b&&_0x27d33e?'\x20Default\x20app\x20is\x20\x22'+_0x27d33e+'\x22.':'',_0x24a881=(_0xfb872b?_0x4ed831(0x15c):_0x4ed831(0x170))+_0x4ed831(0x172)+_0x567477+'\x22\x20(appcode:\x20'+_0x1a3669+')'+scopeLabel(_0x3eb0cd)+'.'+_0x13f867;return{'ok':!![],'message':_0x24a881};}export async function runAppRemove(_0x45e458,_0x350e08){const _0x1056f1=a50_0x1a7d,_0xccf7ad=_0x45e458[_0x1056f1(0x176)][0x0]?.[_0x1056f1(0x17b)]();if(!_0xccf7ad)throw CliErrors[_0x1056f1(0x156)]('Missing\x20app\x20name.',_0x1056f1(0x152)+CLI_BIN_NAME+'\x20'+_0x350e08+_0x1056f1(0x167));const _0x316bc5=_0x45e458[_0x1056f1(0x157)](_0x1056f1(0x15a)),{config:_0x14eeac,layers:_0x4b8d95}=readRawConfigWithLayers(),_0x55829d=_0x14eeac[_0x1056f1(0x162)]??{};if(!_0x55829d[_0xccf7ad])throw CliErrors[_0x1056f1(0x156)](_0x1056f1(0x173)+_0xccf7ad+_0x1056f1(0x15d));const _0x5921a3=_0x4b8d95[_0x1056f1(0x160)][_0x1056f1(0x162)]&&typeof _0x4b8d95['globalConfig'][_0x1056f1(0x162)]==='object'?_0x4b8d95[_0x1056f1(0x160)][_0x1056f1(0x162)]:{},_0x55f9e5=_0x4b8d95[_0x1056f1(0x165)][_0x1056f1(0x162)]&&typeof _0x4b8d95[_0x1056f1(0x165)][_0x1056f1(0x162)]===_0x1056f1(0x17d)?_0x4b8d95[_0x1056f1(0x165)][_0x1056f1(0x162)]:{},_0x53e008=appDefinedIn(_0xccf7ad,_0x5921a3,_0x55f9e5),_0x1aa28d=resolveAppScopeForWrite(_0xccf7ad,_0x316bc5,_0x4b8d95),_0x106991={'global':_0x1aa28d===_0x1056f1(0x15a)},_0x24215a=readConfig(_0x106991),_0x5913b0=_0x24215a[_0x1056f1(0x162)];if(!_0x5913b0||!_0x5913b0[_0xccf7ad])throw CliErrors[_0x1056f1(0x156)]('App\x20\x22'+_0xccf7ad+_0x1056f1(0x15d));delete _0x5913b0[_0xccf7ad];let _0x121e92='';const _0x57b40e=typeof _0x24215a[_0x1056f1(0x15e)]===_0x1056f1(0x16b)?_0x24215a[_0x1056f1(0x15e)]:undefined,_0x54626d=Object[_0x1056f1(0x169)](_0x5913b0),_0x583a61=_0x57b40e===_0xccf7ad?_0x54626d[0x0]:_0x57b40e,_0x260037=normalizeStoredDefaultApp(_0x24215a,_0x583a61);if(_0x57b40e===_0xccf7ad&&_0x54626d[_0x1056f1(0x168)]===0x1)_0x121e92=_0x1056f1(0x15b)+_0x54626d[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0x57b40e===_0xccf7ad&&_0x260037&&(_0x121e92='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x260037+'\x22.');Object[_0x1056f1(0x169)](_0x5913b0)[_0x1056f1(0x168)]===0x0&&(delete _0x24215a[_0x1056f1(0x162)],delete _0x24215a[_0x1056f1(0x15e)]);writeConfig(_0x24215a,_0x106991);const _0x2a52f6=_0x53e008===_0x1056f1(0x16d)?_0x1056f1(0x166)+_0xccf7ad+_0x1056f1(0x16c)+(_0x1aa28d===_0x1056f1(0x154)?_0x1056f1(0x15a):_0x1056f1(0x154))+_0x1056f1(0x171):'';return{'ok':!![],'message':_0x1056f1(0x153)+_0xccf7ad+'\x22'+scopeLabel(_0x106991)+'.'+_0x121e92+_0x2a52f6};}function a50_0xbc73(){const _0x3b51d6=['14460EbySrt','\x20<name>\x20--appcode\x20<code>','global','\x20Remaining\x20app\x20\x22','Updated','\x22\x20not\x20found.','defaultApp','3062339sdProb','globalConfig','boolean','apps','Missing\x20app\x20name.','appcode','projectConfig','\x20Note:\x20app\x20\x22','\x20<name>\x20[--global]','length','keys','App\x20code','string','\x22\x20still\x20defined\x20in\x20','both','14545700OVBeWm','724897ShCfqa','Added','\x20config.','\x20app\x20\x22','App\x20\x22','2608488VkqddG','129cVyxzF','args','215739fkrWMr','Use\x20global\x20config\x20scope','str','20206FdAAsy','trim','144vPEFkb','object','Usage:\x20','Removed\x20app\x20\x22','project','70mKAWDR','validation','bool'];a50_0xbc73=function(){return _0x3b51d6;};return a50_0xbc73();}
@@ -1 +1 @@
1
- (function(_0x5f3457,_0x5e19ac){const _0x3326cc=a51_0x3b87,_0x608660=_0x5f3457();while(!![]){try{const _0x59413e=-parseInt(_0x3326cc(0x77))/0x1*(parseInt(_0x3326cc(0x86))/0x2)+parseInt(_0x3326cc(0x96))/0x3*(-parseInt(_0x3326cc(0x90))/0x4)+-parseInt(_0x3326cc(0x98))/0x5+-parseInt(_0x3326cc(0x79))/0x6*(parseInt(_0x3326cc(0x8b))/0x7)+parseInt(_0x3326cc(0x8d))/0x8+parseInt(_0x3326cc(0x93))/0x9*(-parseInt(_0x3326cc(0x8c))/0xa)+parseInt(_0x3326cc(0x91))/0xb;if(_0x59413e===_0x5e19ac)break;else _0x608660['push'](_0x608660['shift']());}catch(_0x2a6922){_0x608660['push'](_0x608660['shift']());}}}(a51_0xcf1d,0xdd52b));import{input,checkbox,select}from'@inquirer/prompts';import a51_0x4574a3 from'chalk';function a51_0xcf1d(){const _0x2319e0=['\x20\x20(','appName','trim','skip','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','184dRlxoZ','manual','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','length','message','7000CWUJaA','40zGubEe','3054712iCOHYG','appCode','gray','1004HpcOVu','71385193mslyaw','custom','3232899BUyFIw','No\x20available\x20apps\x20found.','valid','10377cJBChd','App\x20Code:','8009310DkugfI','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','Select\x20the\x20app\x20to\x20bind:','map','✎\x20Enter\x20manually','15119pSpXZJ','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','4002rUhPVL','✎\x20Enter\x20appcode\x20manually','yellow','find','includes','\x0aNo\x20available\x20apps\x20found.','(Skip;\x20configure\x20later)','Fetching\x20available\x20apps...'];a51_0xcf1d=function(){return _0x2319e0;};return a51_0xcf1d();}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 _0x35c3ca=a51_0x3b87,_0x488f44=await input({'message':_0x35c3ca(0x97),'validate':_0x43b69d=>{const _0x407ee6=_0x35c3ca,_0x3cb496=validateAppcode(_0x43b69d[_0x407ee6(0x83)]());return _0x3cb496[_0x407ee6(0x95)]||_0x3cb496[_0x407ee6(0x8a)]||'Invalid\x20App\x20Code';}});return _0x488f44[_0x35c3ca(0x83)]();}function a51_0x3b87(_0x51f43f,_0x26d3e1){_0x51f43f=_0x51f43f-0x76;const _0xcf1d16=a51_0xcf1d();let _0x3b871d=_0xcf1d16[_0x51f43f];return _0x3b871d;}export async function promptAppSelection(_0x2a2427){const _0x50f591=a51_0x3b87,_0x2e680d=[{'name':a51_0x4574a3[_0x50f591(0x7b)](_0x50f591(0x7a)),'value':-0x1},..._0x2a2427[_0x50f591(0x9b)]((_0x4c6ad8,_0x10f2d3)=>({'name':_0x4c6ad8[_0x50f591(0x82)]+'\x20\x20'+a51_0x4574a3[_0x50f591(0x8f)]('('+_0x4c6ad8[_0x50f591(0x8e)]+')'),'value':_0x10f2d3}))],_0xe45195=await checkbox({'message':'Found\x20'+a51_0x4574a3['cyan'](_0x2a2427['length'])+_0x50f591(0x88),'choices':_0x2e680d,'loop':![]});if(_0xe45195[_0x50f591(0x7d)](-0x1))return _0x50f591(0x92);if(_0xe45195[_0x50f591(0x89)]===0x0)return'custom';return _0xe45195['map'](_0x3c2849=>_0x2a2427[_0x3c2849]);}export async function promptSingleAppSelection(_0x29a0e5){const _0x52fb6d=a51_0x3b87,_0x225dab=[{'name':a51_0x4574a3[_0x52fb6d(0x8f)]('(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)'),'value':_0x52fb6d(0x84)},{'name':a51_0x4574a3[_0x52fb6d(0x7b)](_0x52fb6d(0x7a)),'value':'custom'},..._0x29a0e5[_0x52fb6d(0x9b)](_0x4d96c9=>({'name':_0x4d96c9[_0x52fb6d(0x82)]+'\x20\x20'+a51_0x4574a3[_0x52fb6d(0x8f)]('('+_0x4d96c9[_0x52fb6d(0x8e)]+')'),'value':_0x4d96c9[_0x52fb6d(0x8e)]}))],_0x37abf4=await select({'message':_0x52fb6d(0x9a),'choices':_0x225dab});if(_0x37abf4==='skip')return _0x52fb6d(0x84);if(_0x37abf4==='custom')return _0x52fb6d(0x92);return _0x29a0e5[_0x52fb6d(0x7c)](_0x49890f=>_0x49890f[_0x52fb6d(0x8e)]===_0x37abf4);}export async function selectSingleAppcode(_0x385fcc){const _0x3e6109=a51_0x3b87;if(!_0x385fcc)return writeCliSideChannelLine(a51_0x4574a3['gray'](_0x3e6109(0x85))),_fallbackOrSkip();writeCliSideChannelLine(_0x3e6109(0x80));let _0x26fa2f;try{_0x26fa2f=await withActiveCookie(_0x385fcc,()=>listRemoteApps());}catch(_0x2a96c4){writeCliSideChannelLine(a51_0x4574a3[_0x3e6109(0x7b)](_0x3e6109(0x78)));if(_0x2a96c4 instanceof Error)writeCliSideChannelLine(a51_0x4574a3[_0x3e6109(0x8f)]('\x20\x20('+_0x2a96c4[_0x3e6109(0x8a)]+')'));return _fallbackOrSkip();}if(_0x26fa2f[_0x3e6109(0x89)]===0x0)return writeCliSideChannelLine(a51_0x4574a3['yellow'](_0x3e6109(0x94))),_fallbackOrSkip();const _0x40b7e6=await promptSingleAppSelection(_0x26fa2f);if(_0x40b7e6===_0x3e6109(0x84))return'';if(_0x40b7e6===_0x3e6109(0x92))return promptCustomAppcode();return _0x40b7e6[_0x3e6109(0x8e)];}export async function selectMultipleApps(_0x5cb6ae){const _0x39bc83=a51_0x3b87;writeCliSideChannelLine(_0x39bc83(0x80));let _0x492196;try{_0x492196=await withActiveCookie(_0x5cb6ae,()=>listRemoteApps());}catch(_0x4005fd){writeCliSideChannelLine(_0x39bc83(0x99));if(_0x4005fd instanceof Error)writeCliSideChannelLine(_0x39bc83(0x81)+_0x4005fd[_0x39bc83(0x8a)]+')');return _0x39bc83(0x92);}if(_0x492196['length']===0x0)return writeCliSideChannelLine(_0x39bc83(0x7e)),'custom';return promptAppSelection(_0x492196);}async function _fallbackOrSkip(){const _0x1dc355=a51_0x3b87,_0x432243=await select({'message':_0x1dc355(0x97),'choices':[{'name':a51_0x4574a3[_0x1dc355(0x8f)](_0x1dc355(0x7f)),'value':_0x1dc355(0x84)},{'name':a51_0x4574a3['yellow'](_0x1dc355(0x76)),'value':_0x1dc355(0x87)}]});if(_0x432243===_0x1dc355(0x84))return'';return promptCustomAppcode();}
1
+ function a51_0x441e(_0x4adc0b,_0x4a33b4){_0x4adc0b=_0x4adc0b-0x1d1;const _0x518898=a51_0x5188();let _0x441edf=_0x518898[_0x4adc0b];return _0x441edf;}(function(_0x34defd,_0x3a3410){const _0x232f52=a51_0x441e,_0x410b52=_0x34defd();while(!![]){try{const _0x48f49a=parseInt(_0x232f52(0x1f8))/0x1*(parseInt(_0x232f52(0x1f5))/0x2)+parseInt(_0x232f52(0x1db))/0x3+-parseInt(_0x232f52(0x1e4))/0x4+parseInt(_0x232f52(0x1f0))/0x5+-parseInt(_0x232f52(0x1de))/0x6+-parseInt(_0x232f52(0x1e7))/0x7*(parseInt(_0x232f52(0x1f2))/0x8)+parseInt(_0x232f52(0x1e1))/0x9*(parseInt(_0x232f52(0x1ea))/0xa);if(_0x48f49a===_0x3a3410)break;else _0x410b52['push'](_0x410b52['shift']());}catch(_0x2a6a43){_0x410b52['push'](_0x410b52['shift']());}}}(a51_0x5188,0xdb68d));import{input,checkbox,select}from'@inquirer/prompts';import a51_0x319e2f 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 _0x56c7e6=a51_0x441e,_0x38c14e=await input({'message':_0x56c7e6(0x1e8),'validate':_0x1674c1=>{const _0x482679=_0x56c7e6,_0x2efddd=validateAppcode(_0x1674c1[_0x482679(0x1f4)]());return _0x2efddd[_0x482679(0x1dc)]||_0x2efddd['message']||_0x482679(0x1e9);}});return _0x38c14e['trim']();}export async function promptAppSelection(_0x452918){const _0xc05c8a=a51_0x441e,_0x5488d8=[{'name':a51_0x319e2f['yellow'](_0xc05c8a(0x1d8)),'value':-0x1},..._0x452918['map']((_0x528750,_0x4fb07f)=>({'name':_0x528750[_0xc05c8a(0x1e2)]+'\x20\x20'+a51_0x319e2f[_0xc05c8a(0x1e3)]('('+_0x528750[_0xc05c8a(0x1d3)]+')'),'value':_0x4fb07f}))],_0x5ad034=await checkbox({'message':_0xc05c8a(0x1eb)+a51_0x319e2f['cyan'](_0x452918[_0xc05c8a(0x1ec)])+_0xc05c8a(0x1f1),'choices':_0x5488d8,'loop':![]});if(_0x5ad034[_0xc05c8a(0x1f3)](-0x1))return'custom';if(_0x5ad034[_0xc05c8a(0x1ec)]===0x0)return _0xc05c8a(0x1e6);return _0x5ad034['map'](_0x3e0a6e=>_0x452918[_0x3e0a6e]);}export async function promptSingleAppSelection(_0x4a1cc8){const _0x10da75=a51_0x441e,_0x2ac8eb=[{'name':a51_0x319e2f[_0x10da75(0x1e3)](_0x10da75(0x1f7)),'value':_0x10da75(0x1d1)},{'name':a51_0x319e2f[_0x10da75(0x1ee)](_0x10da75(0x1d8)),'value':'custom'},..._0x4a1cc8[_0x10da75(0x1ed)](_0x5a87d2=>({'name':_0x5a87d2[_0x10da75(0x1e2)]+'\x20\x20'+a51_0x319e2f[_0x10da75(0x1e3)]('('+_0x5a87d2[_0x10da75(0x1d3)]+')'),'value':_0x5a87d2[_0x10da75(0x1d3)]}))],_0x2a75ed=await select({'message':_0x10da75(0x1d4),'choices':_0x2ac8eb});if(_0x2a75ed==='skip')return _0x10da75(0x1d1);if(_0x2a75ed===_0x10da75(0x1e6))return'custom';return _0x4a1cc8[_0x10da75(0x1ef)](_0x55ad46=>_0x55ad46[_0x10da75(0x1d3)]===_0x2a75ed);}export async function selectSingleAppcode(_0x37dc39){const _0x5874f6=a51_0x441e;if(!_0x37dc39)return writeCliSideChannelLine(a51_0x319e2f[_0x5874f6(0x1e3)](_0x5874f6(0x1d7))),_fallbackOrSkip();writeCliSideChannelLine(_0x5874f6(0x1e0));let _0x1a08f7;try{_0x1a08f7=await withActiveCookie(_0x37dc39,()=>listRemoteApps());}catch(_0x156f94){writeCliSideChannelLine(a51_0x319e2f[_0x5874f6(0x1ee)](_0x5874f6(0x1da)));if(_0x156f94 instanceof Error)writeCliSideChannelLine(a51_0x319e2f[_0x5874f6(0x1e3)](_0x5874f6(0x1df)+_0x156f94[_0x5874f6(0x1f6)]+')'));return _fallbackOrSkip();}if(_0x1a08f7[_0x5874f6(0x1ec)]===0x0)return writeCliSideChannelLine(a51_0x319e2f['yellow'](_0x5874f6(0x1d2))),_fallbackOrSkip();const _0x2ac468=await promptSingleAppSelection(_0x1a08f7);if(_0x2ac468==='skip')return'';if(_0x2ac468==='custom')return promptCustomAppcode();return _0x2ac468['appCode'];}function a51_0x5188(){const _0x187f92=['\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','1642312nNUxTK','includes','trim','90094SsUDct','message','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','11LCrplo','skip','No\x20available\x20apps\x20found.','appCode','Select\x20the\x20app\x20to\x20bind:','(Skip;\x20configure\x20later)','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','✎\x20Enter\x20appcode\x20manually','✎\x20Enter\x20manually','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','163374SqPmnT','valid','manual','1956720MNNVYd','\x20\x20(','Fetching\x20available\x20apps...','27lmtHeq','appName','gray','1822728koBRIp','\x0aNo\x20available\x20apps\x20found.','custom','14fTftgw','App\x20Code:','Invalid\x20App\x20Code','2752970UPXMsJ','Found\x20','length','map','yellow','find','3576075HHorfh'];a51_0x5188=function(){return _0x187f92;};return a51_0x5188();}export async function selectMultipleApps(_0x38ab16){const _0x37ce57=a51_0x441e;writeCliSideChannelLine(_0x37ce57(0x1e0));let _0x14479a;try{_0x14479a=await withActiveCookie(_0x38ab16,()=>listRemoteApps());}catch(_0x114bda){writeCliSideChannelLine(_0x37ce57(0x1d6));if(_0x114bda instanceof Error)writeCliSideChannelLine(_0x37ce57(0x1df)+_0x114bda['message']+')');return _0x37ce57(0x1e6);}if(_0x14479a['length']===0x0)return writeCliSideChannelLine(_0x37ce57(0x1e5)),'custom';return promptAppSelection(_0x14479a);}async function _fallbackOrSkip(){const _0x564cc5=a51_0x441e,_0x3dce23=await select({'message':_0x564cc5(0x1e8),'choices':[{'name':a51_0x319e2f[_0x564cc5(0x1e3)](_0x564cc5(0x1d5)),'value':'skip'},{'name':a51_0x319e2f[_0x564cc5(0x1ee)](_0x564cc5(0x1d9)),'value':_0x564cc5(0x1dd)}]});if(_0x3dce23===_0x564cc5(0x1d1))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a52_0x51bd1a=a52_0x3984;function a52_0x3984(_0x462efc,_0x15c405){_0x462efc=_0x462efc-0xe7;const _0x405689=a52_0x4056();let _0x39841c=_0x405689[_0x462efc];return _0x39841c;}(function(_0x1b96f6,_0x288d0a){const _0x110243=a52_0x3984,_0x5cfdb5=_0x1b96f6();while(!![]){try{const _0x262608=-parseInt(_0x110243(0xe8))/0x1+parseInt(_0x110243(0xeb))/0x2+-parseInt(_0x110243(0x105))/0x3+parseInt(_0x110243(0xf7))/0x4+parseInt(_0x110243(0xee))/0x5*(parseInt(_0x110243(0xf0))/0x6)+-parseInt(_0x110243(0x100))/0x7*(parseInt(_0x110243(0xf6))/0x8)+parseInt(_0x110243(0x106))/0x9*(parseInt(_0x110243(0xef))/0xa);if(_0x262608===_0x288d0a)break;else _0x5cfdb5['push'](_0x5cfdb5['shift']());}catch(_0x5ed117){_0x5cfdb5['push'](_0x5cfdb5['shift']());}}}(a52_0x4056,0xaf85d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a52_0x51bd1a(0x107),a52_0x51bd1a(0xff)]),NON_TERMINAL_STATUSES=new Set([a52_0x51bd1a(0xe7),a52_0x51bd1a(0xf3)]);export function normalizeAsyncTask(_0x2ae0d4){const _0x894bbd=a52_0x51bd1a,_0x4cf4ea=typeof _0x2ae0d4?.[_0x894bbd(0xf4)]===_0x894bbd(0xea)?_0x2ae0d4['taskId']['trim']():'';if(!_0x4cf4ea)throw CliErrors[_0x894bbd(0xed)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x234688=typeof _0x2ae0d4[_0x894bbd(0xfa)]==='string'?_0x2ae0d4[_0x894bbd(0xfa)][_0x894bbd(0x101)]()[_0x894bbd(0xe9)]():'';if(!_0x234688)throw CliErrors[_0x894bbd(0xed)](_0x894bbd(0xf8)+_0x4cf4ea+_0x894bbd(0x104));return{'taskId':_0x4cf4ea,'status':_0x234688,'errorMessage':typeof _0x2ae0d4['errorMessage']===_0x894bbd(0xea)&&_0x2ae0d4['errorMessage']['trim']()?_0x2ae0d4[_0x894bbd(0xf9)][_0x894bbd(0x101)]():null,'isTerminal':TERMINAL_STATUSES[_0x894bbd(0x102)](_0x234688),'knownStatus':TERMINAL_STATUSES[_0x894bbd(0x102)](_0x234688)||NON_TERMINAL_STATUSES[_0x894bbd(0x102)](_0x234688)};}export function buildAsyncTaskStatusCommand(_0x37654f,_0x268d42){const _0x28be1b=a52_0x51bd1a;return CLI_BIN_NAME+_0x28be1b(0x103)+quoteShellArg(_0x37654f)+_0x28be1b(0x108)+quoteShellArg(_0x268d42)+_0x28be1b(0xf2);}export function asyncTaskMessage(_0xb54a17){const _0xcc8064=a52_0x51bd1a;switch(_0xb54a17[_0xcc8064(0xfa)]){case'PENDING':return _0xcc8064(0xfb)+_0xb54a17['taskId']+_0xcc8064(0xec);case _0xcc8064(0xf3):return _0xcc8064(0xfb)+_0xb54a17[_0xcc8064(0xf4)]+_0xcc8064(0xfc);case'SUCCESS':return _0xcc8064(0xfb)+_0xb54a17[_0xcc8064(0xf4)]+_0xcc8064(0xfe);case'FAILED':return _0xb54a17[_0xcc8064(0xf9)]?_0xcc8064(0xfb)+_0xb54a17[_0xcc8064(0xf4)]+'\x20failed:\x20'+_0xb54a17[_0xcc8064(0xf9)]:_0xcc8064(0xfb)+_0xb54a17[_0xcc8064(0xf4)]+_0xcc8064(0xf1);default:return _0xcc8064(0xfb)+_0xb54a17[_0xcc8064(0xf4)]+_0xcc8064(0x109)+_0xb54a17['status']+'.';}}function a52_0x4056(){const _0x35acd4=['249526cgJSBB','toUpperCase','string','835790OXjcsm','\x20is\x20pending.','apiError','5hbgtyN','3950biFsRB','579234hMDxXv','\x20failed.','\x20--format\x20compress','PROCESSING','taskId','replace','24NXkBgI','1651132NFjePJ','Async\x20task\x20','errorMessage','status','Task\x20','\x20is\x20processing.','\x27\x5c\x27\x27','\x20completed\x20successfully.','FAILED','2530906CTOxic','trim','has','\x20task\x20status\x20--task-id\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','954588eOpMOv','32904LrAmqN','SUCCESS','\x20--appcode\x20','\x20returned\x20unknown\x20status\x20','PENDING'];a52_0x4056=function(){return _0x35acd4;};return a52_0x4056();}function quoteShellArg(_0x2bca14){const _0x45bb80=a52_0x51bd1a;return'\x27'+_0x2bca14[_0x45bb80(0xf5)](/'/g,_0x45bb80(0xfd))+'\x27';}
1
+ function a52_0x1be8(_0x271ba5,_0x43caf7){_0x271ba5=_0x271ba5-0xe0;const _0x3bc2a3=a52_0x3bc2();let _0x1be85d=_0x3bc2a3[_0x271ba5];return _0x1be85d;}const a52_0x392fe5=a52_0x1be8;(function(_0x3f9dea,_0x253696){const _0x4a1972=a52_0x1be8,_0x3a472a=_0x3f9dea();while(!![]){try{const _0x4da29d=-parseInt(_0x4a1972(0xef))/0x1*(parseInt(_0x4a1972(0xe8))/0x2)+-parseInt(_0x4a1972(0xe2))/0x3*(parseInt(_0x4a1972(0xfe))/0x4)+-parseInt(_0x4a1972(0xff))/0x5*(-parseInt(_0x4a1972(0xed))/0x6)+-parseInt(_0x4a1972(0xea))/0x7+parseInt(_0x4a1972(0xfc))/0x8+parseInt(_0x4a1972(0xf2))/0x9+-parseInt(_0x4a1972(0xe4))/0xa*(parseInt(_0x4a1972(0xf8))/0xb);if(_0x4da29d===_0x253696)break;else _0x3a472a['push'](_0x3a472a['shift']());}catch(_0x574700){_0x3a472a['push'](_0x3a472a['shift']());}}}(a52_0x3bc2,0x8e7c4));function a52_0x3bc2(){const _0x16f415=['\x20completed\x20successfully.','has','30wCvvOn','trim','2507AmXDcf','\x20is\x20processing.','\x20--appcode\x20','2501073RBJYfH','PENDING','\x20returned\x20unknown\x20status\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','taskId','\x20failed.','2750sIEZRw','Task\x20','toUpperCase','\x20is\x20pending.','5585680HYVWJX','errorMessage','8gCxSIu','75355WFQsPr','\x20task\x20status\x20--task-id\x20','\x20--format\x20compress','SUCCESS','FAILED','apiError','331026fzCzcR','string','8870EPWiCC','status','\x20failed:\x20','PROCESSING','12NOEjqn','\x27\x5c\x27\x27','72562uzyUCq'];a52_0x3bc2=function(){return _0x16f415;};return a52_0x3bc2();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a52_0x392fe5(0x102),a52_0x392fe5(0xe0)]),NON_TERMINAL_STATUSES=new Set([a52_0x392fe5(0xf3),'PROCESSING']);export function normalizeAsyncTask(_0x3dd9a2){const _0x4fd00b=a52_0x392fe5,_0x173575=typeof _0x3dd9a2?.[_0x4fd00b(0xf6)]===_0x4fd00b(0xe3)?_0x3dd9a2[_0x4fd00b(0xf6)]['trim']():'';if(!_0x173575)throw CliErrors[_0x4fd00b(0xe1)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x144d89=typeof _0x3dd9a2[_0x4fd00b(0xe5)]===_0x4fd00b(0xe3)?_0x3dd9a2[_0x4fd00b(0xe5)][_0x4fd00b(0xee)]()[_0x4fd00b(0xfa)]():'';if(!_0x144d89)throw CliErrors['apiError']('Async\x20task\x20'+_0x173575+_0x4fd00b(0xf5));return{'taskId':_0x173575,'status':_0x144d89,'errorMessage':typeof _0x3dd9a2[_0x4fd00b(0xfd)]===_0x4fd00b(0xe3)&&_0x3dd9a2[_0x4fd00b(0xfd)]['trim']()?_0x3dd9a2['errorMessage'][_0x4fd00b(0xee)]():null,'isTerminal':TERMINAL_STATUSES[_0x4fd00b(0xec)](_0x144d89),'knownStatus':TERMINAL_STATUSES[_0x4fd00b(0xec)](_0x144d89)||NON_TERMINAL_STATUSES[_0x4fd00b(0xec)](_0x144d89)};}export function buildAsyncTaskStatusCommand(_0x255169,_0x4b9775){const _0x123beb=a52_0x392fe5;return CLI_BIN_NAME+_0x123beb(0x100)+quoteShellArg(_0x255169)+_0x123beb(0xf1)+quoteShellArg(_0x4b9775)+_0x123beb(0x101);}export function asyncTaskMessage(_0x56c75b){const _0x2ee97b=a52_0x392fe5;switch(_0x56c75b[_0x2ee97b(0xe5)]){case _0x2ee97b(0xf3):return _0x2ee97b(0xf9)+_0x56c75b[_0x2ee97b(0xf6)]+_0x2ee97b(0xfb);case _0x2ee97b(0xe7):return _0x2ee97b(0xf9)+_0x56c75b[_0x2ee97b(0xf6)]+_0x2ee97b(0xf0);case _0x2ee97b(0x102):return _0x2ee97b(0xf9)+_0x56c75b[_0x2ee97b(0xf6)]+_0x2ee97b(0xeb);case'FAILED':return _0x56c75b[_0x2ee97b(0xfd)]?_0x2ee97b(0xf9)+_0x56c75b[_0x2ee97b(0xf6)]+_0x2ee97b(0xe6)+_0x56c75b['errorMessage']:_0x2ee97b(0xf9)+_0x56c75b[_0x2ee97b(0xf6)]+_0x2ee97b(0xf7);default:return _0x2ee97b(0xf9)+_0x56c75b['taskId']+_0x2ee97b(0xf4)+_0x56c75b[_0x2ee97b(0xe5)]+'.';}}function quoteShellArg(_0x1396b5){const _0x396f36=a52_0x392fe5;return'\x27'+_0x1396b5['replace'](/'/g,_0x396f36(0xe9))+'\x27';}
@@ -1 +1 @@
1
- (function(_0x2f3f4c,_0x26687e){var _0x434265=a53_0x4534,_0x39e931=_0x2f3f4c();while(!![]){try{var _0x1e07f9=-parseInt(_0x434265(0xa5))/0x1*(parseInt(_0x434265(0xa7))/0x2)+-parseInt(_0x434265(0xa0))/0x3*(parseInt(_0x434265(0xab))/0x4)+parseInt(_0x434265(0xa8))/0x5*(parseInt(_0x434265(0xaa))/0x6)+-parseInt(_0x434265(0xa9))/0x7+parseInt(_0x434265(0xa4))/0x8*(parseInt(_0x434265(0xa3))/0x9)+parseInt(_0x434265(0xa2))/0xa+parseInt(_0x434265(0x9f))/0xb;if(_0x1e07f9===_0x26687e)break;else _0x39e931['push'](_0x39e931['shift']());}catch(_0x132a71){_0x39e931['push'](_0x39e931['shift']());}}}(a53_0x41d0,0xbd149));function a53_0x41d0(){var _0x172c37=['method','24343011xSePIk','21EGwRvD','defineProperties','2311690mkUxqx','4316787Eyfazq','8VrkeIm','1137146iBTcGv','description','2hgkSny','195JvplHp','8507212dPwvNY','95586SHCMiN','238964LXdcDJ'];a53_0x41d0=function(){return _0x172c37;};return a53_0x41d0();}function a53_0x4534(_0x38a8ee,_0x410c4a){_0x38a8ee=_0x38a8ee-0x9e;var _0x41d055=a53_0x41d0();var _0x45349f=_0x41d055[_0x38a8ee];return _0x45349f;}export function asDryRunResult(_0x10850b,_0x1a8dcd){var _0x180139=a53_0x4534;return Object[_0x180139(0xa1)](_0x10850b,{'method':{'value':_0x1a8dcd[_0x180139(0x9e)],'enumerable':![]},'url':{'value':_0x1a8dcd['url'],'enumerable':![]},..._0x1a8dcd[_0x180139(0xa6)]?{'description':{'value':_0x1a8dcd[_0x180139(0xa6)],'enumerable':![]}}:{}});}
1
+ (function(_0x23ed71,_0x4cba5f){var _0x61a63c=a53_0x4e8d,_0x983269=_0x23ed71();while(!![]){try{var _0x4bdc42=parseInt(_0x61a63c(0xe5))/0x1*(-parseInt(_0x61a63c(0xe7))/0x2)+-parseInt(_0x61a63c(0xf2))/0x3*(-parseInt(_0x61a63c(0xe6))/0x4)+-parseInt(_0x61a63c(0xee))/0x5+parseInt(_0x61a63c(0xf3))/0x6*(parseInt(_0x61a63c(0xed))/0x7)+-parseInt(_0x61a63c(0xeb))/0x8*(parseInt(_0x61a63c(0xea))/0x9)+-parseInt(_0x61a63c(0xe9))/0xa+parseInt(_0x61a63c(0xf0))/0xb;if(_0x4bdc42===_0x4cba5f)break;else _0x983269['push'](_0x983269['shift']());}catch(_0x1e9f41){_0x983269['push'](_0x983269['shift']());}}}(a53_0x5a29,0x1bdb8));export function asDryRunResult(_0x1b63b0,_0x1ed89a){var _0x435600=a53_0x4e8d;return Object[_0x435600(0xef)](_0x1b63b0,{'method':{'value':_0x1ed89a[_0x435600(0xec)],'enumerable':![]},'url':{'value':_0x1ed89a[_0x435600(0xe8)],'enumerable':![]},..._0x1ed89a['description']?{'description':{'value':_0x1ed89a[_0x435600(0xf1)],'enumerable':![]}}:{}});}function a53_0x4e8d(_0x6bbb3a,_0x1810c8){_0x6bbb3a=_0x6bbb3a-0xe5;var _0x5a29d7=a53_0x5a29();var _0x4e8dc8=_0x5a29d7[_0x6bbb3a];return _0x4e8dc8;}function a53_0x5a29(){var _0xeaf4f8=['15HNOCKX','112668Qljquu','13tzUeop','46272bleBiG','31232cgEkBi','url','1343810qMjjNL','9jQJATP','884872SELeKy','method','49OGUtRW','32055RJheEP','defineProperties','4171497szHGhi','description'];a53_0x5a29=function(){return _0xeaf4f8;};return a53_0x5a29();}
@@ -1 +1 @@
1
- const a54_0x347eb0=a54_0x1327;(function(_0x444d87,_0x31c8a0){const _0x34dc11=a54_0x1327,_0x15a8bd=_0x444d87();while(!![]){try{const _0x402533=parseInt(_0x34dc11(0xde))/0x1+parseInt(_0x34dc11(0xbf))/0x2*(-parseInt(_0x34dc11(0xc4))/0x3)+-parseInt(_0x34dc11(0xbd))/0x4+-parseInt(_0x34dc11(0xe0))/0x5*(-parseInt(_0x34dc11(0xd2))/0x6)+-parseInt(_0x34dc11(0xda))/0x7*(parseInt(_0x34dc11(0xd3))/0x8)+-parseInt(_0x34dc11(0xc5))/0x9*(-parseInt(_0x34dc11(0xc1))/0xa)+parseInt(_0x34dc11(0xe3))/0xb;if(_0x402533===_0x31c8a0)break;else _0x15a8bd['push'](_0x15a8bd['shift']());}catch(_0x359007){_0x15a8bd['push'](_0x15a8bd['shift']());}}}(a54_0x5568,0xb6f8a));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a54_0x347eb0(0xd0),'type':a54_0x347eb0(0xd1),'required':!![],'description':a54_0x347eb0(0xd8)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a54_0x347eb0(0xd5),'type':a54_0x347eb0(0xd1),'required':!![],'description':a54_0x347eb0(0xc0)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':'to-datasetcode','type':'string','required':!![],'description':a54_0x347eb0(0xc6)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':'to-column','type':a54_0x347eb0(0xd1),'required':!![],'description':a54_0x347eb0(0xd7)};export const CROSS_RELATION_DBLINK_FLAG={'name':a54_0x347eb0(0xc7),'type':'number','description':a54_0x347eb0(0xd6)};export const CROSS_RELATION_LABEL_FLAG={'name':'to-label-column','type':a54_0x347eb0(0xd1),'description':a54_0x347eb0(0xbc)};export const CROSS_RELATION_CARDINALITY_FLAG={'name':'cardinality','type':a54_0x347eb0(0xd1),'enum':[a54_0x347eb0(0xe1),a54_0x347eb0(0xdb),'MANY_TO_ONE',a54_0x347eb0(0xca)],'description':a54_0x347eb0(0xc2)};export const GLOBAL_SCOPE_FLAG={'name':a54_0x347eb0(0xdd),'type':a54_0x347eb0(0xcf),'default':![],'description':a54_0x347eb0(0xce)};function a54_0x5568(){const _0x34d37f=['238514ZZbEmn','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','4407280lvrSzo','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','33xZHGxL','18CpKANa','Target\x20DB_TABLE\x20dataset\x20code','from-dblink-id','sqlcode','dbtype','MANY_TO_MANY','POSTGRESQL','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','MYSQL','Write\x20to\x20the\x20global\x20configuration','boolean','from-datasetcode','string','3888582GCQfMi','200TOHPIP','appcode','from-column','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','Target\x20field\x20name','Source\x20DB_TABLE\x20dataset\x20code','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','293734sCjhyX','ONE_TO_MANY','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','global','1156123lCnqaa','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','5rZQdlC','ONE_TO_ONE','App\x20code\x20(e.g.\x20app-xxxxx)','20669374bSFFgq','datasetcode','Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value','5817532FQDuBi','number'];a54_0x5568=function(){return _0x34d37f;};return a54_0x5568();}export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a54_0x347eb0(0xcc)};export const CODE_FLAG={'name':'code','type':a54_0x347eb0(0xd1),'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':a54_0x347eb0(0xe4),'description':a54_0x347eb0(0xdf)};export const SQLCODE_FLAG={'name':a54_0x347eb0(0xc8),'type':a54_0x347eb0(0xd1),'required':!![],'description':a54_0x347eb0(0xdc),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a54_0x347eb0(0xd4),'type':a54_0x347eb0(0xd1),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a54_0x347eb0(0xe2)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a54_0x1327(_0x2c43a1,_0xc39db1){_0x2c43a1=_0x2c43a1-0xbc;const _0x5568d1=a54_0x5568();let _0x1327b1=_0x5568d1[_0x2c43a1];return _0x1327b1;}export const DBLINK_ID_FLAG={'name':'id','type':a54_0x347eb0(0xbe),'required':!![],'description':a54_0x347eb0(0xc3)};export const DB_TYPE_FLAG={'name':a54_0x347eb0(0xc9),'type':a54_0x347eb0(0xd1),'required':!![],'description':'Database\x20product\x20type','enum':[a54_0x347eb0(0xcd),a54_0x347eb0(0xcb)]};export const SKIP_CONNECTION_TEST_FLAG={'name':'skip-connection-test','type':a54_0x347eb0(0xcf),'description':a54_0x347eb0(0xd9)};
1
+ const a54_0x4cc138=a54_0x2043;(function(_0x2ddd51,_0x36587b){const _0xbe49b6=a54_0x2043,_0x1f9345=_0x2ddd51();while(!![]){try{const _0x5d7339=-parseInt(_0xbe49b6(0x158))/0x1+-parseInt(_0xbe49b6(0x15a))/0x2+-parseInt(_0xbe49b6(0x177))/0x3*(parseInt(_0xbe49b6(0x170))/0x4)+-parseInt(_0xbe49b6(0x155))/0x5*(-parseInt(_0xbe49b6(0x16a))/0x6)+parseInt(_0xbe49b6(0x161))/0x7+parseInt(_0xbe49b6(0x160))/0x8*(parseInt(_0xbe49b6(0x164))/0x9)+-parseInt(_0xbe49b6(0x159))/0xa*(-parseInt(_0xbe49b6(0x163))/0xb);if(_0x5d7339===_0x36587b)break;else _0x1f9345['push'](_0x1f9345['shift']());}catch(_0x441b27){_0x1f9345['push'](_0x1f9345['shift']());}}}(a54_0x1e78,0xd15be));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a54_0x4cc138(0x179),'type':a54_0x4cc138(0x16f),'required':!![],'description':a54_0x4cc138(0x17b)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a54_0x4cc138(0x172),'type':a54_0x4cc138(0x16f),'required':!![],'description':a54_0x4cc138(0x15c)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a54_0x4cc138(0x167),'type':a54_0x4cc138(0x16f),'required':!![],'description':'Target\x20DB_TABLE\x20dataset\x20code'};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a54_0x4cc138(0x174),'type':'string','required':!![],'description':'Target\x20field\x20name'};function a54_0x2043(_0x46d97f,_0x4ad157){_0x46d97f=_0x46d97f-0x153;const _0x1e7822=a54_0x1e78();let _0x2043ba=_0x1e7822[_0x46d97f];return _0x2043ba;}export const CROSS_RELATION_DBLINK_FLAG={'name':a54_0x4cc138(0x156),'type':a54_0x4cc138(0x15d),'description':a54_0x4cc138(0x17c)};export const CROSS_RELATION_LABEL_FLAG={'name':a54_0x4cc138(0x15e),'type':a54_0x4cc138(0x16f),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a54_0x4cc138(0x15b),'type':a54_0x4cc138(0x16f),'enum':[a54_0x4cc138(0x17a),a54_0x4cc138(0x16c),'MANY_TO_ONE',a54_0x4cc138(0x173)],'description':a54_0x4cc138(0x154)};function a54_0x1e78(){const _0x2b4f6d=['1422289BggyXU','1216215FZgYGD','Database\x20product\x20type','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','to-datasetcode','dbtype','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','6CKeNWZ','POSTGRESQL','ONE_TO_MANY','skip-connection-test','MYSQL','string','4188384nHBcQc','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','from-column','MANY_TO_MANY','to-column','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','appcode','3mdWCis','global','from-datasetcode','ONE_TO_ONE','Source\x20DB_TABLE\x20dataset\x20code','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','sqlcode','boolean','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','1757455eSmchE','from-dblink-id','code','1258745ViBYSz','10diDCxh','190204KYWBDz','cardinality','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','number','to-label-column','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','72FwwYmY','10930304GtZIaD','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'];a54_0x1e78=function(){return _0x2b4f6d;};return a54_0x1e78();}export const GLOBAL_SCOPE_FLAG={'name':a54_0x4cc138(0x178),'type':'boolean','default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a54_0x4cc138(0x175)};export const CODE_FLAG={'name':a54_0x4cc138(0x157),'type':'string','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':'datasetcode','description':a54_0x4cc138(0x162)};export const SQLCODE_FLAG={'name':a54_0x4cc138(0x17d),'type':a54_0x4cc138(0x16f),'required':!![],'description':a54_0x4cc138(0x169),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a54_0x4cc138(0x176),'type':a54_0x4cc138(0x16f),'required':![],'description':a54_0x4cc138(0x171)};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':a54_0x4cc138(0x15d),'required':!![],'description':a54_0x4cc138(0x166)};export const DB_TYPE_FLAG={'name':a54_0x4cc138(0x168),'type':a54_0x4cc138(0x16f),'required':!![],'description':a54_0x4cc138(0x165),'enum':[a54_0x4cc138(0x16e),a54_0x4cc138(0x16b)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a54_0x4cc138(0x16d),'type':a54_0x4cc138(0x153),'description':a54_0x4cc138(0x15f)};
@@ -1 +1 @@
1
- (function(_0xa1774f,_0x15df7a){const _0x189f6c=a55_0x17f4,_0x31269c=_0xa1774f();while(!![]){try{const _0x2c41de=parseInt(_0x189f6c(0x78))/0x1*(-parseInt(_0x189f6c(0x7a))/0x2)+parseInt(_0x189f6c(0x8d))/0x3*(parseInt(_0x189f6c(0x7e))/0x4)+-parseInt(_0x189f6c(0x86))/0x5*(parseInt(_0x189f6c(0x89))/0x6)+parseInt(_0x189f6c(0x80))/0x7+-parseInt(_0x189f6c(0x85))/0x8*(-parseInt(_0x189f6c(0x7d))/0x9)+-parseInt(_0x189f6c(0x81))/0xa*(-parseInt(_0x189f6c(0x8b))/0xb)+-parseInt(_0x189f6c(0x8a))/0xc*(-parseInt(_0x189f6c(0x79))/0xd);if(_0x2c41de===_0x15df7a)break;else _0x31269c['push'](_0x31269c['shift']());}catch(_0x1161cc){_0x31269c['push'](_0x31269c['shift']());}}}(a55_0xdb50,0xd35e6));import{existsSync,statSync}from'node:fs';function a55_0x17f4(_0x5eadfa,_0xad86f5){_0x5eadfa=_0x5eadfa-0x77;const _0xdb50b3=a55_0xdb50();let _0x17f4d6=_0xdb50b3[_0x5eadfa];return _0x17f4d6;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x5eb510){const _0x2d5a03=a55_0x17f4;if(_0x5eb510>=BYTES_PER_MB){const _0x4e5460=Math['ceil'](_0x5eb510/BYTES_PER_MB*0x64)/0x64;return _0x4e5460[_0x2d5a03(0x7c)](0x2)+_0x2d5a03(0x84);}return _0x5eb510+'\x20B';}function a55_0xdb50(){const _0xe4b48f=['isFile','78SMsNov','24yzXXYK','145563QmPGym','File\x20not\x20found:\x20','33EdrKmF','\x20path\x20is\x20required.','21vtGLnu','3350932HTbYSw','150204UjNuOT','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','toFixed','9OmlFWH','164292Fasruc','trim','4386039aGcCCU','450coZXdC','size','validation','\x20MB','2358632DzJDnz','15890fBxBGl','File\x20is\x20not\x20a\x20regular\x20file:\x20'];a55_0xdb50=function(){return _0xe4b48f;};return a55_0xdb50();}export function requireDevelopmentUploadFile(_0x586719,_0x568e75){const _0x1058cf=a55_0x17f4,_0x2d3604=_0x586719[_0x1058cf(0x7f)]();if(!_0x2d3604)throw CliErrors[_0x1058cf(0x83)](_0x568e75+_0x1058cf(0x77));if(!existsSync(_0x2d3604))throw CliErrors['validation'](_0x1058cf(0x8c)+_0x2d3604);const _0x291f52=statSync(_0x2d3604);if(!_0x291f52[_0x1058cf(0x88)]())throw CliErrors['validation'](_0x1058cf(0x87)+_0x2d3604);if(_0x291f52[_0x1058cf(0x82)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x1058cf(0x7b)+_0x2d3604+'\x20('+formatBytes(_0x291f52[_0x1058cf(0x82)])+')');return{'path':_0x2d3604,'size':_0x291f52[_0x1058cf(0x82)]};}
1
+ (function(_0x4430b9,_0x4825b4){const _0x2aad20=a55_0x31fd,_0x3f8dbc=_0x4430b9();while(!![]){try{const _0x239fad=parseInt(_0x2aad20(0x1d1))/0x1+parseInt(_0x2aad20(0x1d0))/0x2*(parseInt(_0x2aad20(0x1cc))/0x3)+parseInt(_0x2aad20(0x1d4))/0x4*(-parseInt(_0x2aad20(0x1d6))/0x5)+-parseInt(_0x2aad20(0x1cf))/0x6*(parseInt(_0x2aad20(0x1c5))/0x7)+-parseInt(_0x2aad20(0x1cd))/0x8*(-parseInt(_0x2aad20(0x1c7))/0x9)+parseInt(_0x2aad20(0x1c6))/0xa+parseInt(_0x2aad20(0x1d7))/0xb*(-parseInt(_0x2aad20(0x1d2))/0xc);if(_0x239fad===_0x4825b4)break;else _0x3f8dbc['push'](_0x3f8dbc['shift']());}catch(_0x3e2d58){_0x3f8dbc['push'](_0x3f8dbc['shift']());}}}(a55_0x3b9d,0xb59be));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a55_0x31fd(_0x43b99d,_0xd21187){_0x43b99d=_0x43b99d-0x1c4;const _0x3b9d63=a55_0x3b9d();let _0x31fd01=_0x3b9d63[_0x43b99d];return _0x31fd01;}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x839d56){const _0x20c0a9=a55_0x31fd;if(_0x839d56>=BYTES_PER_MB){const _0x199eaf=Math[_0x20c0a9(0x1ca)](_0x839d56/BYTES_PER_MB*0x64)/0x64;return _0x199eaf['toFixed'](0x2)+_0x20c0a9(0x1cb);}return _0x839d56+'\x20B';}function a55_0x3b9d(){const _0x508d7a=['40IXevxH','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','261670zYlJBo','16529579KyMumL','trim','isFile','98lAYQwk','13646960fExCUR','99Vgaltt','validation','\x20path\x20is\x20required.','ceil','\x20MB','231288OKadMt','270120LvpowF','File\x20not\x20found:\x20','629868GGpiLu','34PnVEAA','1192848UiOkrk','12TsmdPI','size'];a55_0x3b9d=function(){return _0x508d7a;};return a55_0x3b9d();}export function requireDevelopmentUploadFile(_0x18784d,_0x3af839){const _0x5cfac4=a55_0x31fd,_0x1d5bf6=_0x18784d[_0x5cfac4(0x1d8)]();if(!_0x1d5bf6)throw CliErrors[_0x5cfac4(0x1c8)](_0x3af839+_0x5cfac4(0x1c9));if(!existsSync(_0x1d5bf6))throw CliErrors['validation'](_0x5cfac4(0x1ce)+_0x1d5bf6);const _0x504e39=statSync(_0x1d5bf6);if(!_0x504e39[_0x5cfac4(0x1c4)]())throw CliErrors[_0x5cfac4(0x1c8)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x1d5bf6);if(_0x504e39[_0x5cfac4(0x1d3)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x5cfac4(0x1c8)](_0x5cfac4(0x1d5)+_0x1d5bf6+'\x20('+formatBytes(_0x504e39[_0x5cfac4(0x1d3)])+')');return{'path':_0x1d5bf6,'size':_0x504e39[_0x5cfac4(0x1d3)]};}
@@ -1 +1 @@
1
- function a56_0x34a9(_0x517d40,_0x2ee636){_0x517d40=_0x517d40-0x14a;const _0x5cf6d9=a56_0x5cf6();let _0x34a91e=_0x5cf6d9[_0x517d40];return _0x34a91e;}(function(_0x30220b,_0x19fb00){const _0x386965=a56_0x34a9,_0x28822d=_0x30220b();while(!![]){try{const _0x1803ac=parseInt(_0x386965(0x158))/0x1*(-parseInt(_0x386965(0x14d))/0x2)+parseInt(_0x386965(0x153))/0x3*(-parseInt(_0x386965(0x152))/0x4)+parseInt(_0x386965(0x14f))/0x5*(parseInt(_0x386965(0x151))/0x6)+parseInt(_0x386965(0x156))/0x7*(parseInt(_0x386965(0x159))/0x8)+-parseInt(_0x386965(0x154))/0x9*(-parseInt(_0x386965(0x14c))/0xa)+parseInt(_0x386965(0x155))/0xb*(-parseInt(_0x386965(0x14e))/0xc)+-parseInt(_0x386965(0x157))/0xd*(-parseInt(_0x386965(0x14a))/0xe);if(_0x1803ac===_0x19fb00)break;else _0x28822d['push'](_0x28822d['shift']());}catch(_0x5072c0){_0x28822d['push'](_0x28822d['shift']());}}}(a56_0x5cf6,0x895b6));export function validateAppcode(_0x382dac){const _0x4f2268=a56_0x34a9,_0x43420c=_0x382dac[_0x4f2268(0x14b)]();if(!_0x43420c)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x43420c['length']>0x64)return{'valid':![],'message':_0x4f2268(0x15a)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x43420c))return{'valid':![],'message':_0x4f2268(0x150)};return{'valid':!![]};}function a56_0x5cf6(){const _0x18f7b8=['73915znqQjD','2958448WMkqwg','App\x20Code\x20cannot\x20exceed\x20100\x20characters','252ZOphfl','trim','10WmtLHQ','14HKMARE','2586036SxHJov','145CjRFst','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','60330KGdGfk','8tksuFB','1053666TUfPEC','3754287fmCMgW','11iqePad','7jUdgLz','664027mPOcjD'];a56_0x5cf6=function(){return _0x18f7b8;};return a56_0x5cf6();}
1
+ function a56_0x6de1(){const _0x495cc8=['73vVCSXX','4665414GZmcAR','603507holLNB','App\x20Code\x20cannot\x20be\x20empty','trim','10943624ZVdFFV','8Vesybi','490023fgXLJm','38162jQcBki','230PiPlEN','4264915fAcyxU','1480248ASpJyG','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','length'];a56_0x6de1=function(){return _0x495cc8;};return a56_0x6de1();}function a56_0x328f(_0x4f2324,_0x5a35a6){_0x4f2324=_0x4f2324-0xb1;const _0x6de1d2=a56_0x6de1();let _0x328f04=_0x6de1d2[_0x4f2324];return _0x328f04;}(function(_0x11b25e,_0x406ff5){const _0x5e3047=a56_0x328f,_0x331fd7=_0x11b25e();while(!![]){try{const _0x2fbca4=-parseInt(_0x5e3047(0xbb))/0x1*(parseInt(_0x5e3047(0xb5))/0x2)+parseInt(_0x5e3047(0xbd))/0x3*(parseInt(_0x5e3047(0xb3))/0x4)+parseInt(_0x5e3047(0xb7))/0x5+parseInt(_0x5e3047(0xbc))/0x6+parseInt(_0x5e3047(0xb8))/0x7+-parseInt(_0x5e3047(0xb2))/0x8+-parseInt(_0x5e3047(0xb4))/0x9*(-parseInt(_0x5e3047(0xb6))/0xa);if(_0x2fbca4===_0x406ff5)break;else _0x331fd7['push'](_0x331fd7['shift']());}catch(_0x4eb753){_0x331fd7['push'](_0x331fd7['shift']());}}}(a56_0x6de1,0xb3a19));export function validateAppcode(_0x50433c){const _0xf11c5c=a56_0x328f,_0x1ac24f=_0x50433c[_0xf11c5c(0xb1)]();if(!_0x1ac24f)return{'valid':![],'message':_0xf11c5c(0xbe)};if(_0x1ac24f[_0xf11c5c(0xba)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x1ac24f))return{'valid':![],'message':_0xf11c5c(0xb9)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a57_0x2af096=a57_0x3464;(function(_0x2ddd3f,_0x43fd57){const _0x1877ab=a57_0x3464,_0x39866e=_0x2ddd3f();while(!![]){try{const _0x58e81b=parseInt(_0x1877ab(0xf7))/0x1+-parseInt(_0x1877ab(0xf5))/0x2*(parseInt(_0x1877ab(0xeb))/0x3)+parseInt(_0x1877ab(0xf4))/0x4+-parseInt(_0x1877ab(0xe5))/0x5*(-parseInt(_0x1877ab(0xea))/0x6)+parseInt(_0x1877ab(0xe6))/0x7+parseInt(_0x1877ab(0xe9))/0x8*(parseInt(_0x1877ab(0xe1))/0x9)+-parseInt(_0x1877ab(0xe4))/0xa;if(_0x58e81b===_0x43fd57)break;else _0x39866e['push'](_0x39866e['shift']());}catch(_0xc98bc3){_0x39866e['push'](_0x39866e['shift']());}}}(a57_0x5c65,0x35998));import{CliErrors}from'../../errors.js';function a57_0x5c65(){const _0xf70bdb=['123138baxAFp','\x22\x20is\x20not\x20deletable.','hasOwnProperty','6890220VBbGoF','2095AAbVYh','2819355ZApRhJ','prototype','boolean','72NExRXp','222bHojlS','9etmctI','validation','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','args','key','riskLevel','Project','\x20config\x20delete\x20<key>\x20[--global]','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','677480KdFBTF','154738PcWeel','routing','429897TldzNn','inherit','call','Global','has','config','global'];a57_0x5c65=function(){return _0xf70bdb;};return a57_0x5c65();}function a57_0x3464(_0x9a12fa,_0x3987cf){_0x9a12fa=_0x9a12fa-0xdd;const _0x5c65bd=a57_0x5c65();let _0x34649f=_0x5c65bd[_0x9a12fa];return _0x34649f;}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a57_0x2af096(0xf8)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp',a57_0x2af096(0xf6)]);async function execute(_0xf28788){const _0xb732a=a57_0x2af096,_0x23da58=_0xf28788[_0xb732a(0xee)][0x0]?.['trim']();if(!_0x23da58)throw CliErrors[_0xb732a(0xec)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0xb732a(0xf2));if(_0x23da58===_0xb732a(0xf0))throw CliErrors[_0xb732a(0xec)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x23da58)&&!EXTRA_DELETABLE_KEYS[_0xb732a(0xde)](_0x23da58)&&!LEGACY_DELETABLE_KEYS[_0xb732a(0xde)](_0x23da58))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x23da58+_0xb732a(0xe2),_0xb732a(0xed));const _0x4fb0fd=resolveWriteScope({'global':_0xf28788['bool'](_0xb732a(0xe0))}),_0x57e956=readScopedConfig(_0x4fb0fd),_0x2dc525=Object[_0xb732a(0xe7)][_0xb732a(0xe3)][_0xb732a(0xf9)](_0x57e956,_0x23da58);_0x2dc525&&(delete _0x57e956[_0x23da58],writeScopedConfig(_0x57e956,_0x4fb0fd));const _0x267049=_0x4fb0fd===_0xb732a(0xe0)?_0xb732a(0xdd):_0xb732a(0xf1);return{'ok':!![],'message':_0x2dc525?'✓\x20'+_0x267049+'\x20'+_0x23da58+'\x20deleted':'✓\x20'+_0x267049+'\x20'+_0x23da58+'\x20already\x20absent','data':{'key':_0x23da58,'scope':_0x4fb0fd,'changed':_0x2dc525}};}export const configDeleteDefinition={'service':a57_0x2af096(0xdf),'command':'delete','description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a57_0x2af096(0xef),'description':a57_0x2af096(0xf3),'required':!![]}],'flags':[{'name':a57_0x2af096(0xe0),'type':a57_0x2af096(0xe8),'description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a57_0x40229a=a57_0x45e9;function a57_0x2a14(){const _0xe6069e=['global','9ahhLnd','Usage:\x20','634504QYSuze','669uXgfPs','Missing\x20key\x20argument.','1132wypjLD','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','\x20already\x20absent','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','key','\x20config\x20delete\x20<key>\x20[--global]','36hrnOfT','5220714jsxOpl','delete','routing','\x20deleted','call','defaultApp','\x22\x20is\x20not\x20deletable.','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','riskLevel','validation','776XJEmDv','215091fXCvcN','inherit','7HfYVNp','Project','858skTgGd','288gtIMvu','args','390JKoZoV','1227935FoeLKG','Top-level\x20key\x20\x22','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.'];a57_0x2a14=function(){return _0xe6069e;};return a57_0x2a14();}function a57_0x45e9(_0x3d4d10,_0x536c4c){_0x3d4d10=_0x3d4d10-0x143;const _0x2a14e3=a57_0x2a14();let _0x45e97b=_0x2a14e3[_0x3d4d10];return _0x45e97b;}(function(_0x3b2993,_0x5d1b04){const _0x922383=a57_0x45e9,_0x7bdf85=_0x3b2993();while(!![]){try{const _0x33726e=parseInt(_0x922383(0x159))/0x1*(parseInt(_0x922383(0x15b))/0x2)+parseInt(_0x922383(0x14a))/0x3*(parseInt(_0x922383(0x161))/0x4)+parseInt(_0x922383(0x152))/0x5+parseInt(_0x922383(0x162))/0x6*(parseInt(_0x922383(0x14c))/0x7)+parseInt(_0x922383(0x149))/0x8*(parseInt(_0x922383(0x156))/0x9)+-parseInt(_0x922383(0x151))/0xa*(-parseInt(_0x922383(0x14e))/0xb)+parseInt(_0x922383(0x14f))/0xc*(-parseInt(_0x922383(0x158))/0xd);if(_0x33726e===_0x5d1b04)break;else _0x7bdf85['push'](_0x7bdf85['shift']());}catch(_0x2ac56b){_0x7bdf85['push'](_0x7bdf85['shift']());}}}(a57_0x2a14,0xed274));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a57_0x40229a(0x14b)]),EXTRA_DELETABLE_KEYS=new Set([a57_0x40229a(0x144),a57_0x40229a(0x164)]);async function execute(_0x19e3c1){const _0x2ed675=a57_0x40229a,_0x1aa6c9=_0x19e3c1[_0x2ed675(0x150)][0x0]?.['trim']();if(!_0x1aa6c9)throw CliErrors[_0x2ed675(0x148)](_0x2ed675(0x15a),_0x2ed675(0x157)+CLI_BIN_NAME+_0x2ed675(0x160));if(_0x1aa6c9===_0x2ed675(0x147))throw CliErrors[_0x2ed675(0x148)](_0x2ed675(0x154));if(!isTopLevelConfigKey(_0x1aa6c9)&&!EXTRA_DELETABLE_KEYS['has'](_0x1aa6c9)&&!LEGACY_DELETABLE_KEYS['has'](_0x1aa6c9))throw CliErrors['validation'](_0x2ed675(0x153)+_0x1aa6c9+_0x2ed675(0x145),_0x2ed675(0x146));const _0x15e33c=resolveWriteScope({'global':_0x19e3c1['bool'](_0x2ed675(0x155))}),_0x45e8a4=readScopedConfig(_0x15e33c),_0x23a95a=Object['prototype']['hasOwnProperty'][_0x2ed675(0x143)](_0x45e8a4,_0x1aa6c9);_0x23a95a&&(delete _0x45e8a4[_0x1aa6c9],writeScopedConfig(_0x45e8a4,_0x15e33c));const _0xd812c5=_0x15e33c==='global'?'Global':_0x2ed675(0x14d);return{'ok':!![],'message':_0x23a95a?'✓\x20'+_0xd812c5+'\x20'+_0x1aa6c9+_0x2ed675(0x165):'✓\x20'+_0xd812c5+'\x20'+_0x1aa6c9+_0x2ed675(0x15d),'data':{'key':_0x1aa6c9,'scope':_0x15e33c,'changed':_0x23a95a}};}export const configDeleteDefinition={'service':'config','command':a57_0x40229a(0x163),'description':a57_0x40229a(0x15c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a57_0x40229a(0x15f),'description':a57_0x40229a(0x15e),'required':!![]}],'flags':[{'name':a57_0x40229a(0x155),'type':'boolean','description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};