@lovrabet/rabetbase-cli 2.4.7-beta.2 → 2.5.0-beta.1

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 (364) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +13 -3
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +7 -0
  6. package/lib/api/generate-sdk-config-file.js +1 -0
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.d.ts +2 -5
  27. package/lib/commands/app/shared.js +1 -1
  28. package/lib/commands/app-config/delete.js +1 -1
  29. package/lib/commands/app-config/get.js +1 -1
  30. package/lib/commands/app-config/index.js +1 -1
  31. package/lib/commands/app-config/list.js +1 -1
  32. package/lib/commands/app-config/set.js +1 -1
  33. package/lib/commands/app-config/shared.js +1 -1
  34. package/lib/commands/auth/index.js +1 -1
  35. package/lib/commands/bff/create.js +1 -1
  36. package/lib/commands/bff/delete.js +1 -1
  37. package/lib/commands/bff/detail.js +1 -1
  38. package/lib/commands/bff/index.js +1 -1
  39. package/lib/commands/bff/list.js +1 -1
  40. package/lib/commands/bff/pull.js +1 -1
  41. package/lib/commands/bff/push.js +1 -1
  42. package/lib/commands/bff/status.js +1 -1
  43. package/lib/commands/cli-skill/index.js +1 -1
  44. package/lib/commands/cli-update.js +1 -1
  45. package/lib/commands/codegen/index.js +1 -1
  46. package/lib/commands/codegen/sdk.js +1 -1
  47. package/lib/commands/codegen/sql.js +1 -1
  48. package/lib/commands/common/app-registry.js +1 -1
  49. package/lib/commands/common/app-selector.js +1 -1
  50. package/lib/commands/common/async-task.js +1 -1
  51. package/lib/commands/common/dry-run.js +1 -1
  52. package/lib/commands/common/flags.js +1 -1
  53. package/lib/commands/common/local-file.js +1 -1
  54. package/lib/commands/common/validate.js +1 -1
  55. package/lib/commands/config/delete.d.ts +5 -0
  56. package/lib/commands/config/delete.js +1 -0
  57. package/lib/commands/config/get.js +1 -1
  58. package/lib/commands/config/index.js +1 -1
  59. package/lib/commands/config/init.d.ts +12 -0
  60. package/lib/commands/config/init.js +1 -0
  61. package/lib/commands/config/list.js +1 -1
  62. package/lib/commands/config/set.js +1 -1
  63. package/lib/commands/config/shared.js +1 -1
  64. package/lib/commands/dataset/business-group-update.js +1 -1
  65. package/lib/commands/dataset/business-groups.js +1 -1
  66. package/lib/commands/dataset/capability.js +1 -1
  67. package/lib/commands/dataset/delete.js +1 -1
  68. package/lib/commands/dataset/detail.js +1 -1
  69. package/lib/commands/dataset/extend-update.js +1 -1
  70. package/lib/commands/dataset/field-update.js +1 -1
  71. package/lib/commands/dataset/generate.js +1 -1
  72. package/lib/commands/dataset/index.js +1 -1
  73. package/lib/commands/dataset/list.js +1 -1
  74. package/lib/commands/dataset/operations.js +1 -1
  75. package/lib/commands/dataset/relation-audit.js +1 -1
  76. package/lib/commands/dataset/relation-create.js +1 -1
  77. package/lib/commands/dataset/relation-delete.js +1 -1
  78. package/lib/commands/dataset/relation-shared.js +1 -1
  79. package/lib/commands/dataset/relation-update.js +1 -1
  80. package/lib/commands/dataset/relations.js +1 -1
  81. package/lib/commands/dataset/rename.js +1 -1
  82. package/lib/commands/dataset/restore.js +1 -1
  83. package/lib/commands/db/analysis-batching.js +1 -1
  84. package/lib/commands/db/analyze-batch-plan.js +1 -1
  85. package/lib/commands/db/analyze-cancel.js +1 -1
  86. package/lib/commands/db/analyze-start.js +1 -1
  87. package/lib/commands/db/analyze-status.js +1 -1
  88. package/lib/commands/db/create.js +1 -1
  89. package/lib/commands/db/delete.js +1 -1
  90. package/lib/commands/db/detail.js +1 -1
  91. package/lib/commands/db/diff-refresh-start.js +1 -1
  92. package/lib/commands/db/diff-refresh-status.js +1 -1
  93. package/lib/commands/db/diff.js +1 -1
  94. package/lib/commands/db/index.js +1 -1
  95. package/lib/commands/db/list.js +1 -1
  96. package/lib/commands/db/shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/doctor.js +1 -1
  101. package/lib/commands/file/index.js +1 -1
  102. package/lib/commands/issue/index.js +1 -1
  103. package/lib/commands/issue/nudge.js +1 -1
  104. package/lib/commands/issue/report.js +1 -1
  105. package/lib/commands/issue/shared.js +1 -1
  106. package/lib/commands/kb/create.js +1 -1
  107. package/lib/commands/kb/delete.js +1 -1
  108. package/lib/commands/kb/detail.js +1 -1
  109. package/lib/commands/kb/index.js +1 -1
  110. package/lib/commands/kb/list.js +1 -1
  111. package/lib/commands/kb/search.js +1 -1
  112. package/lib/commands/kb/shared.js +1 -1
  113. package/lib/commands/kb/update.js +1 -1
  114. package/lib/commands/logs/index.js +1 -1
  115. package/lib/commands/menu/asset-update.js +1 -1
  116. package/lib/commands/menu/delete.js +1 -1
  117. package/lib/commands/menu/external-link-create.js +1 -1
  118. package/lib/commands/menu/external-link-update.js +1 -1
  119. package/lib/commands/menu/group-create.js +1 -1
  120. package/lib/commands/menu/group-update.js +1 -1
  121. package/lib/commands/menu/index.js +1 -1
  122. package/lib/commands/menu/list.js +1 -1
  123. package/lib/commands/menu/move.js +1 -1
  124. package/lib/commands/menu/regroup-start.js +1 -1
  125. package/lib/commands/menu/rename.js +1 -1
  126. package/lib/commands/menu/shared/compare-table.js +1 -1
  127. package/lib/commands/menu/shared/delete-plan.js +1 -1
  128. package/lib/commands/menu/shared/facts.js +1 -1
  129. package/lib/commands/menu/shared/index.js +1 -1
  130. package/lib/commands/menu/shared/inquirer.js +1 -1
  131. package/lib/commands/menu/shared/local-pages.js +1 -1
  132. package/lib/commands/menu/shared/logic.js +1 -1
  133. package/lib/commands/menu/shared/mutations.js +1 -1
  134. package/lib/commands/menu/shared/service.js +1 -1
  135. package/lib/commands/menu/shared/sync-core.js +1 -1
  136. package/lib/commands/menu/shared/update-core.js +1 -1
  137. package/lib/commands/menu/shared/valid-url.js +1 -1
  138. package/lib/commands/menu/sync.js +1 -1
  139. package/lib/commands/menu/visibility-update.js +1 -1
  140. package/lib/commands/notification/config-create.js +1 -1
  141. package/lib/commands/notification/config-delete.js +1 -1
  142. package/lib/commands/notification/config-list.js +1 -1
  143. package/lib/commands/notification/config-update.js +1 -1
  144. package/lib/commands/notification/index.js +1 -1
  145. package/lib/commands/notification/shared.js +1 -1
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/create.js +1 -1
  148. package/lib/commands/page/custom/detail.js +1 -1
  149. package/lib/commands/page/custom/list.js +1 -1
  150. package/lib/commands/page/custom/publish.js +1 -1
  151. package/lib/commands/page/custom/shared.js +1 -1
  152. package/lib/commands/page/custom/syntax.js +1 -1
  153. package/lib/commands/page/custom/template.js +1 -1
  154. package/lib/commands/page/custom/update.js +1 -1
  155. package/lib/commands/page/data-list-status.js +1 -1
  156. package/lib/commands/page/generate-start.js +1 -1
  157. package/lib/commands/page/generate-status.js +1 -1
  158. package/lib/commands/page/index.js +1 -1
  159. package/lib/commands/page/pull.js +1 -1
  160. package/lib/commands/page/push.js +1 -1
  161. package/lib/commands/page/relation-audit.js +1 -1
  162. package/lib/commands/page/restore.js +1 -1
  163. package/lib/commands/page/shared.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  166. package/lib/commands/project/create/format-elapsed.js +1 -1
  167. package/lib/commands/project/create/main.d.ts +1 -0
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.d.ts +6 -2
  170. package/lib/commands/project/create/materialize-project-template.js +1 -1
  171. package/lib/commands/project/create/project-name.js +1 -1
  172. package/lib/commands/project/create/project-template-archive.js +1 -1
  173. package/lib/commands/project/create/project-template-path.js +1 -1
  174. package/lib/commands/project/create/use-copy-project-template.d.ts +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.d.ts +2 -2
  181. package/lib/commands/registry.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.d.ts +1 -1
  187. package/lib/commands/role/shared.js +1 -1
  188. package/lib/commands/role/update.js +1 -1
  189. package/lib/commands/role/user-add.js +1 -1
  190. package/lib/commands/role/user-remove.js +1 -1
  191. package/lib/commands/role/user-resolve.js +1 -1
  192. package/lib/commands/run/index.js +1 -1
  193. package/lib/commands/schema.js +1 -1
  194. package/lib/commands/sql/create.js +1 -1
  195. package/lib/commands/sql/delete.js +1 -1
  196. package/lib/commands/sql/detail.js +1 -1
  197. package/lib/commands/sql/exec.js +1 -1
  198. package/lib/commands/sql/index.js +1 -1
  199. package/lib/commands/sql/list.js +1 -1
  200. package/lib/commands/sql/pull.js +1 -1
  201. package/lib/commands/sql/push.js +1 -1
  202. package/lib/commands/sql/shared.js +1 -1
  203. package/lib/commands/sql/status.js +1 -1
  204. package/lib/commands/sql/validate.js +1 -1
  205. package/lib/commands/task/index.js +1 -1
  206. package/lib/commands/task/status.js +1 -1
  207. package/lib/commands/tenant/index.js +1 -1
  208. package/lib/commands/tenant/members-list.js +1 -1
  209. package/lib/commands/tenant/shared.js +1 -1
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  211. package/lib/commands/user-account/index.js +1 -1
  212. package/lib/commands/workspace/add.js +1 -1
  213. package/lib/commands/workspace/index.js +1 -1
  214. package/lib/commands/workspace/remove.js +1 -1
  215. package/lib/config/domain-config.d.ts +10 -0
  216. package/lib/config/domain-config.js +1 -0
  217. package/lib/config/schema.d.ts +3 -1
  218. package/lib/config/schema.js +1 -1
  219. package/lib/constant/cdn.js +1 -1
  220. package/lib/constant/cli.js +1 -1
  221. package/lib/constant/defaults.js +1 -1
  222. package/lib/constant/domain.d.ts +23 -1
  223. package/lib/constant/domain.js +1 -1
  224. package/lib/constant/env.js +1 -1
  225. package/lib/constant/output.js +1 -1
  226. package/lib/constant/paths.js +1 -1
  227. package/lib/constant/region.d.ts +9 -0
  228. package/lib/constant/region.js +1 -0
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/context/app-resolver.js +1 -1
  231. package/lib/context/auth-resolver.js +1 -1
  232. package/lib/context/config-loader.d.ts +4 -6
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.d.ts +2 -2
  235. package/lib/context.js +1 -1
  236. package/lib/core/alias-resolver.js +1 -1
  237. package/lib/core/api-client.d.ts +2 -0
  238. package/lib/core/api-client.js +1 -1
  239. package/lib/core/bff/config.js +1 -1
  240. package/lib/core/bff/file-system.js +1 -1
  241. package/lib/core/bff/hash.js +1 -1
  242. package/lib/core/bff/lock.js +1 -1
  243. package/lib/core/bff/utils.js +1 -1
  244. package/lib/core/db-resolver.js +1 -1
  245. package/lib/core/page/file-system.js +1 -1
  246. package/lib/core/page/hash.js +1 -1
  247. package/lib/core/page/lock.js +1 -1
  248. package/lib/core/sql-index-auditor.js +1 -1
  249. package/lib/core/sql-sync/config.js +1 -1
  250. package/lib/core/sql-sync/file-system.js +1 -1
  251. package/lib/core/sql-sync/hash.js +1 -1
  252. package/lib/core/sql-sync/lock.js +1 -1
  253. package/lib/core/sql-sync/utils.js +1 -1
  254. package/lib/core/sql-validator.js +1 -1
  255. package/lib/errors.d.ts +11 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.d.ts +2 -2
  262. package/lib/framework/help.js +1 -1
  263. package/lib/framework/index.js +1 -1
  264. package/lib/framework/output.js +1 -1
  265. package/lib/framework/response.js +1 -1
  266. package/lib/framework/runner-alias.js +1 -1
  267. package/lib/framework/runner.js +1 -1
  268. package/lib/framework/schema-export.js +1 -1
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/help.js +1 -1
  273. package/lib/postinstall.js +1 -1
  274. package/lib/runtime/confirmation.js +1 -1
  275. package/lib/runtime/event.js +1 -1
  276. package/lib/runtime/index.js +1 -1
  277. package/lib/runtime/queue.js +1 -1
  278. package/lib/runtime/resolve.js +1 -1
  279. package/lib/skills/builtin-skill.js +1 -1
  280. package/lib/skills/main.js +1 -1
  281. package/lib/skills/npx-skills-add.js +1 -1
  282. package/lib/skills/skill-presence.js +1 -1
  283. package/lib/telemetry/cli-command-trace.js +1 -1
  284. package/lib/telemetry/cli-help-trace.js +1 -1
  285. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  286. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  287. package/lib/telemetry/send-cli-trace-log.js +1 -1
  288. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  289. package/lib/types/index.d.ts +28 -0
  290. package/lib/utils/ai_config.d.ts +1 -2
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -3
  313. package/skills/rabetbase/SKILL.md +33 -28
  314. package/skills/rabetbase/guides/backend-function.md +41 -12
  315. package/skills/rabetbase/guides/bff-creation-workflow.md +6 -4
  316. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  317. package/skills/rabetbase/guides/data-api-guidelines.md +8 -8
  318. package/skills/rabetbase/guides/database-connection-workflow.md +8 -16
  319. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +1 -6
  320. package/skills/rabetbase/guides/sdk-client-generation.md +146 -0
  321. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  322. package/skills/rabetbase/guides/troubleshooting.md +1 -1
  323. package/skills/rabetbase/guides/typescript-sdk.md +46 -10
  324. package/skills/rabetbase/references/rabetbase-api-list.md +4 -4
  325. package/skills/rabetbase/references/rabetbase-api-pull.md +44 -29
  326. package/skills/rabetbase/references/rabetbase-app-list.md +2 -2
  327. package/skills/rabetbase/references/rabetbase-auth-login.md +4 -2
  328. package/skills/rabetbase/references/rabetbase-bff-push.md +3 -1
  329. package/skills/rabetbase/references/rabetbase-codegen-sql.md +3 -1
  330. package/skills/rabetbase/references/rabetbase-config.md +75 -30
  331. package/skills/rabetbase/references/rabetbase-dataset-detail.md +1 -1
  332. package/skills/rabetbase/references/rabetbase-db-analyze.md +3 -3
  333. package/skills/rabetbase/references/rabetbase-db-detail.md +2 -2
  334. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -4
  335. package/skills/rabetbase/references/rabetbase-db-diff.md +6 -9
  336. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  337. package/skills/rabetbase/references/rabetbase-init.md +57 -51
  338. package/skills/rabetbase/references/rabetbase-kb.md +2 -0
  339. package/skills/rabetbase/references/rabetbase-page-create.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-custom-detail.md +3 -3
  341. package/skills/rabetbase/references/rabetbase-page-custom-list.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +12 -3
  343. package/skills/rabetbase/references/rabetbase-project-upgrade.md +2 -2
  344. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-user-account.md +1 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +6 -6
  347. package/skills/rabetbase.manifest.json +4 -3
  348. package/templates/README.md +17 -28
  349. package/templates/generate-api/api.ts.tpl +3 -3
  350. package/templates/generate-api/client.ts.tpl +10 -37
  351. package/lib/commands/data/filter.d.ts +0 -7
  352. package/lib/commands/data/filter.js +0 -1
  353. package/lib/commands/data/getOne.d.ts +0 -7
  354. package/lib/commands/data/getOne.js +0 -1
  355. package/lib/commands/data/index.d.ts +0 -8
  356. package/lib/commands/data/index.js +0 -1
  357. package/lib/commands/data/shared.d.ts +0 -33
  358. package/lib/commands/data/shared.js +0 -1
  359. package/lib/commands/init/index.d.ts +0 -11
  360. package/lib/commands/init/index.js +0 -1
  361. package/lib/utils/rules-cdn.d.ts +0 -38
  362. package/lib/utils/rules-cdn.js +0 -1
  363. package/templates/rules/lovrabet_rules.mdc.tpl +0 -893
  364. package/templates/skill/SKILL.md.tpl +0 -120
@@ -1 +1 @@
1
- function a32_0x3ce5(){const _0x53a99d=['Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','1876904iQEWQB','1qcZWpT','verbose','bff','createdTime','1103684fgJvqU','updatedTime','12nawhXt','functionName','description','335505chSsbZ','scriptContent','scriptType','read','num','1905oPCqiS','33728bjXfXx','13866WOGhyW','994OYaZDR','appCode','Script\x20ID','boolean','detail','1440538fxqGLz','Return\x20full\x20raw\x20script\x20object','20ssmzQH','3011427bidixl'];a32_0x3ce5=function(){return _0x53a99d;};return a32_0x3ce5();}const a32_0x2e8064=a32_0x893c;(function(_0x1ba369,_0x88ea12){const _0x5e590b=a32_0x893c,_0x4a51a1=_0x1ba369();while(!![]){try{const _0x58c0b5=-parseInt(_0x5e590b(0x1df))/0x1*(-parseInt(_0x5e590b(0x1c7))/0x2)+parseInt(_0x5e590b(0x1cc))/0x3+parseInt(_0x5e590b(0x1de))/0x4+-parseInt(_0x5e590b(0x1d1))/0x5*(parseInt(_0x5e590b(0x1d3))/0x6)+parseInt(_0x5e590b(0x1d4))/0x7*(-parseInt(_0x5e590b(0x1d2))/0x8)+parseInt(_0x5e590b(0x1dc))/0x9*(parseInt(_0x5e590b(0x1db))/0xa)+-parseInt(_0x5e590b(0x1d9))/0xb*(-parseInt(_0x5e590b(0x1c9))/0xc);if(_0x58c0b5===_0x88ea12)break;else _0x4a51a1['push'](_0x4a51a1['shift']());}catch(_0x461887){_0x4a51a1['push'](_0x4a51a1['shift']());}}}(a32_0x3ce5,0x6ed10));import{getBffScriptInfo}from'../../core/api-client.js';function a32_0x893c(_0x4c947e,_0x145d82){_0x4c947e=_0x4c947e-0x1c6;const _0x3ce5e3=a32_0x3ce5();let _0x893c83=_0x3ce5e3[_0x4c947e];return _0x893c83;}export const bffDetail={'service':a32_0x2e8064(0x1e1),'command':a32_0x2e8064(0x1d8),'description':a32_0x2e8064(0x1dd),'risk':a32_0x2e8064(0x1cf),'flags':[{'name':'id','type':'number','required':!![],'description':a32_0x2e8064(0x1d6)},{'name':'verbose','type':a32_0x2e8064(0x1d7),'description':a32_0x2e8064(0x1da)}],async 'execute'(_0x39d93b){const _0x588d22=a32_0x2e8064,_0xf4c4df=await getBffScriptInfo(_0x39d93b[_0x588d22(0x1d0)]('id')),_0x4681e7=_0x39d93b['bool'](_0x588d22(0x1e0));if(_0x4681e7)return{'ok':!![],'data':_0xf4c4df};return{'ok':!![],'data':{'id':_0xf4c4df['id'],'functionName':_0xf4c4df[_0x588d22(0x1ca)]??'','version':_0xf4c4df['version']??'','updateUserName':_0xf4c4df['updateUserName']??'','appCode':_0xf4c4df[_0x588d22(0x1d5)],'scriptType':_0xf4c4df[_0x588d22(0x1ce)],'description':_0xf4c4df[_0x588d22(0x1cb)]||'(none)','createdTime':_0xf4c4df[_0x588d22(0x1c6)]??'','updatedTime':_0xf4c4df[_0x588d22(0x1c8)]??'','scriptContent':_0xf4c4df[_0x588d22(0x1cd)]??''}};}};
1
+ const a33_0x5ecbeb=a33_0x2841;function a33_0x3ebd(){const _0x324703=['(none)','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','verbose','updateUserName','appCode','17956bRxvTd','51930jlHoNX','scriptContent','version','6060425SIVQmR','bool','3SfTESQ','4479695ZTFybR','411tWvEQA','Script\x20ID','70Wxbpdl','378012pcqJDi','35312916EUqOgi','bff','functionName','description','createdTime','414866XFvQBr','8BxIQbM','Return\x20full\x20raw\x20script\x20object','531nWUbdi'];a33_0x3ebd=function(){return _0x324703;};return a33_0x3ebd();}(function(_0x3f5a76,_0x26ede9){const _0x22c4a1=a33_0x2841,_0x214deb=_0x3f5a76();while(!![]){try{const _0x441de7=-parseInt(_0x22c4a1(0xb5))/0x1*(parseInt(_0x22c4a1(0xc0))/0x2)+-parseInt(_0x22c4a1(0xb7))/0x3*(-parseInt(_0x22c4a1(0xaf))/0x4)+parseInt(_0x22c4a1(0xb9))/0x5*(-parseInt(_0x22c4a1(0xba))/0x6)+-parseInt(_0x22c4a1(0xb3))/0x7*(parseInt(_0x22c4a1(0xc1))/0x8)+-parseInt(_0x22c4a1(0xc3))/0x9*(parseInt(_0x22c4a1(0xb0))/0xa)+-parseInt(_0x22c4a1(0xb6))/0xb+parseInt(_0x22c4a1(0xbb))/0xc;if(_0x441de7===_0x26ede9)break;else _0x214deb['push'](_0x214deb['shift']());}catch(_0x114d3d){_0x214deb['push'](_0x214deb['shift']());}}}(a33_0x3ebd,0x73b92));function a33_0x2841(_0x3d3098,_0x2e70b4){_0x3d3098=_0x3d3098-0xab;const _0x3ebd7f=a33_0x3ebd();let _0x28418b=_0x3ebd7f[_0x3d3098];return _0x28418b;}import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a33_0x5ecbeb(0xbc),'command':'detail','description':a33_0x5ecbeb(0xab),'risk':'read','flags':[{'name':'id','type':'number','required':!![],'description':a33_0x5ecbeb(0xb8)},{'name':'verbose','type':'boolean','description':a33_0x5ecbeb(0xc2)}],async 'execute'(_0x387b09){const _0x131ba6=a33_0x5ecbeb,_0x4ac2e3=await getBffScriptInfo(_0x387b09['num']('id')),_0x408818=_0x387b09[_0x131ba6(0xb4)](_0x131ba6(0xac));if(_0x408818)return{'ok':!![],'data':_0x4ac2e3};return{'ok':!![],'data':{'id':_0x4ac2e3['id'],'functionName':_0x4ac2e3[_0x131ba6(0xbd)]??'','version':_0x4ac2e3[_0x131ba6(0xb2)]??'','updateUserName':_0x4ac2e3[_0x131ba6(0xad)]??'','appCode':_0x4ac2e3[_0x131ba6(0xae)],'scriptType':_0x4ac2e3['scriptType'],'description':_0x4ac2e3[_0x131ba6(0xbe)]||_0x131ba6(0xc4),'createdTime':_0x4ac2e3[_0x131ba6(0xbf)]??'','updatedTime':_0x4ac2e3['updatedTime']??'','scriptContent':_0x4ac2e3[_0x131ba6(0xb1)]??''}};}};
@@ -1 +1 @@
1
- (function(_0x2d2643,_0x4e0f3f){const _0x3a29f9=a33_0x3117,_0x11c24e=_0x2d2643();while(!![]){try{const _0x2d40a7=parseInt(_0x3a29f9(0x81))/0x1+-parseInt(_0x3a29f9(0x89))/0x2+-parseInt(_0x3a29f9(0x82))/0x3+-parseInt(_0x3a29f9(0x84))/0x4*(parseInt(_0x3a29f9(0x88))/0x5)+-parseInt(_0x3a29f9(0x85))/0x6+parseInt(_0x3a29f9(0x87))/0x7*(parseInt(_0x3a29f9(0x86))/0x8)+-parseInt(_0x3a29f9(0x83))/0x9;if(_0x2d40a7===_0x4e0f3f)break;else _0x11c24e['push'](_0x11c24e['shift']());}catch(_0xd6ab){_0x11c24e['push'](_0x11c24e['shift']());}}}(a33_0x5151,0x34cbf));import{bffList}from'../../commands/bff/list.js';function a33_0x3117(_0x3a4bc8,_0x4eadd3){_0x3a4bc8=_0x3a4bc8-0x81;const _0x51517d=a33_0x5151();let _0x311747=_0x51517d[_0x3a4bc8];return _0x311747;}import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';import{bffPush}from'../../commands/bff/push.js';function a33_0x5151(){const _0x40c619=['288824VzDzRb','378773uwdQLp','230862OaFIHA','587754ytETkw','389224zWWlYy','66912bvQbhE','32QRwQUd','407071UzcljY','5uLLLrS'];a33_0x5151=function(){return _0x40c619;};return a33_0x5151();}import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];
1
+ function a34_0x2555(_0x44676a,_0x4bacbf){_0x44676a=_0x44676a-0x19c;const _0x4de13f=a34_0x4de1();let _0x2555fa=_0x4de13f[_0x44676a];return _0x2555fa;}(function(_0x3281a3,_0xc659){const _0x31679a=a34_0x2555,_0x4e157e=_0x3281a3();while(!![]){try{const _0x44f913=-parseInt(_0x31679a(0x1a1))/0x1+-parseInt(_0x31679a(0x19d))/0x2*(parseInt(_0x31679a(0x19c))/0x3)+-parseInt(_0x31679a(0x1a2))/0x4+parseInt(_0x31679a(0x19f))/0x5+parseInt(_0x31679a(0x1a0))/0x6*(parseInt(_0x31679a(0x19e))/0x7)+parseInt(_0x31679a(0x1a3))/0x8+parseInt(_0x31679a(0x1a4))/0x9;if(_0x44f913===_0xc659)break;else _0x4e157e['push'](_0x4e157e['shift']());}catch(_0x5c325b){_0x4e157e['push'](_0x4e157e['shift']());}}}(a34_0x4de1,0x231da));import{bffList}from'../../commands/bff/list.js';import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';function a34_0x4de1(){const _0x2c720a=['12zlUOmC','12937ArvbyU','14588bKBXny','1092744MTcUZf','1763622GeDnwQ','634659CiQpqM','2qSUHrJ','90076RGPjsI','68420sDhZIk'];a34_0x4de1=function(){return _0x2c720a;};return a34_0x4de1();}import{bffPush}from'../../commands/bff/push.js';import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];
@@ -1 +1 @@
1
- function a34_0xef61(){const _0x41eb82=['boolean','bff','6018830LjXpMe','Filter\x20by\x20script\x20name','functionName','type','length','938959yJxVpV','Return\x20full\x20script\x20objects','1885256qhqTxP','179348YefFbp','string','48kYEoSo','scriptType','(unnamed)','verbose','list','13469710kcgvrF','bool','name','ENDPOINT','12128144DoDzkV','description','str','List\x20Backend\x20Function\x20scripts','78pqWKTB','9YzXDBD','1625549IPjFUu'];a34_0xef61=function(){return _0x41eb82;};return a34_0xef61();}const a34_0xb443f6=a34_0x575f;(function(_0x1317e0,_0x542c54){const _0x21275e=a34_0x575f,_0x47f00f=_0x1317e0();while(!![]){try{const _0x14f402=-parseInt(_0x21275e(0xf6))/0x1+-parseInt(_0x21275e(0xe4))/0x2+-parseInt(_0x21275e(0xe7))/0x3*(-parseInt(_0x21275e(0xe5))/0x4)+parseInt(_0x21275e(0xdd))/0x5+-parseInt(_0x21275e(0xf4))/0x6*(-parseInt(_0x21275e(0xe2))/0x7)+-parseInt(_0x21275e(0xf0))/0x8+parseInt(_0x21275e(0xf5))/0x9*(parseInt(_0x21275e(0xec))/0xa);if(_0x14f402===_0x542c54)break;else _0x47f00f['push'](_0x47f00f['shift']());}catch(_0x322ff6){_0x47f00f['push'](_0x47f00f['shift']());}}}(a34_0xef61,0xe27e3));function a34_0x575f(_0x5ed1fe,_0x4e4a9f){_0x5ed1fe=_0x5ed1fe-0xdd;const _0xef6172=a34_0xef61();let _0x575f20=_0xef6172[_0x5ed1fe];return _0x575f20;}import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':a34_0xb443f6(0xf8),'command':a34_0xb443f6(0xeb),'description':a34_0xb443f6(0xf3),'risk':'read','flags':[{'name':'type','type':a34_0xb443f6(0xe6),'description':'Script\x20type\x20filter','default':a34_0xb443f6(0xef),'enum':[a34_0xb443f6(0xef),'COMMON']},{'name':a34_0xb443f6(0xee),'type':'string','description':a34_0xb443f6(0xde)},{'name':a34_0xb443f6(0xea),'type':a34_0xb443f6(0xf7),'description':a34_0xb443f6(0xe3)}],async 'execute'(_0x5b47b8){const _0x2c584d=a34_0xb443f6,_0x3dee09=await listBffScripts(_0x5b47b8['appCode'],_0x5b47b8[_0x2c584d(0xf2)](_0x2c584d(0xe0)),{'scriptName':_0x5b47b8[_0x2c584d(0xf2)]('name')||undefined}),_0x51c419=_0x5b47b8[_0x2c584d(0xed)](_0x2c584d(0xea));return{'ok':!![],'data':_0x51c419?_0x3dee09:_0x3dee09['map'](_0xb2083e=>({'id':_0xb2083e['id'],'functionName':_0xb2083e[_0x2c584d(0xdf)]??'','description':_0xb2083e[_0x2c584d(0xf1)]||_0x2c584d(0xe9),'scriptType':_0xb2083e[_0x2c584d(0xe8)]})),'message':_0x3dee09[_0x2c584d(0xe1)]===0x0?'No\x20Backend\x20Function\x20scripts\x20found.':undefined};}};
1
+ function a35_0x466e(_0x29b8e1,_0x20cae6){_0x29b8e1=_0x29b8e1-0x66;const _0x30d9d3=a35_0x30d9();let _0x466e83=_0x30d9d3[_0x29b8e1];return _0x466e83;}const a35_0x319f4c=a35_0x466e;(function(_0x258078,_0x5bb12e){const _0x205c3f=a35_0x466e,_0x14727e=_0x258078();while(!![]){try{const _0x5eea55=-parseInt(_0x205c3f(0x70))/0x1+-parseInt(_0x205c3f(0x6c))/0x2+parseInt(_0x205c3f(0x6d))/0x3+-parseInt(_0x205c3f(0x78))/0x4*(-parseInt(_0x205c3f(0x72))/0x5)+-parseInt(_0x205c3f(0x66))/0x6+parseInt(_0x205c3f(0x7c))/0x7*(parseInt(_0x205c3f(0x75))/0x8)+-parseInt(_0x205c3f(0x7e))/0x9*(parseInt(_0x205c3f(0x76))/0xa);if(_0x5eea55===_0x5bb12e)break;else _0x14727e['push'](_0x14727e['shift']());}catch(_0x491540){_0x14727e['push'](_0x14727e['shift']());}}}(a35_0x30d9,0x194b6));function a35_0x30d9(){const _0x5afadb=['verbose','583107yDZmVo','length','9QYeGWc','boolean','name','type','Script\x20type\x20filter','appCode','641820yoBJGc','ENDPOINT','read','string','COMMON','(unnamed)','10460IQSunX','109914lUglhB','scriptType','Filter\x20by\x20script\x20name','58847LTHaxu','map','11675MpEDTc','functionName','list','8YgPAup','110710CiZmgH','str','284fUYjOi','No\x20Backend\x20Function\x20scripts\x20found.','description'];a35_0x30d9=function(){return _0x5afadb;};return a35_0x30d9();}import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':'bff','command':a35_0x319f4c(0x74),'description':'List\x20Backend\x20Function\x20scripts','risk':a35_0x319f4c(0x68),'flags':[{'name':'type','type':a35_0x319f4c(0x69),'description':a35_0x319f4c(0x82),'default':a35_0x319f4c(0x67),'enum':[a35_0x319f4c(0x67),a35_0x319f4c(0x6a)]},{'name':a35_0x319f4c(0x80),'type':a35_0x319f4c(0x69),'description':a35_0x319f4c(0x6f)},{'name':a35_0x319f4c(0x7b),'type':a35_0x319f4c(0x7f),'description':'Return\x20full\x20script\x20objects'}],async 'execute'(_0x3631d9){const _0x46e999=a35_0x319f4c,_0x5bc856=await listBffScripts(_0x3631d9[_0x46e999(0x83)],_0x3631d9[_0x46e999(0x77)](_0x46e999(0x81)),{'scriptName':_0x3631d9[_0x46e999(0x77)](_0x46e999(0x80))||undefined}),_0x2d3b6e=_0x3631d9['bool'](_0x46e999(0x7b));return{'ok':!![],'data':_0x2d3b6e?_0x5bc856:_0x5bc856[_0x46e999(0x71)](_0x2b8b69=>({'id':_0x2b8b69['id'],'functionName':_0x2b8b69[_0x46e999(0x73)]??'','description':_0x2b8b69[_0x46e999(0x7a)]||_0x46e999(0x6b),'scriptType':_0x2b8b69[_0x46e999(0x6e)]})),'message':_0x5bc856[_0x46e999(0x7d)]===0x0?_0x46e999(0x79):undefined};}};
@@ -1 +1 @@
1
- const a35_0x6eb12=a35_0xf5e0;(function(_0x2bec7c,_0x27c396){const _0x337292=a35_0xf5e0,_0x50769d=_0x2bec7c();while(!![]){try{const _0x14841c=-parseInt(_0x337292(0x211))/0x1*(parseInt(_0x337292(0x204))/0x2)+-parseInt(_0x337292(0x1fe))/0x3+-parseInt(_0x337292(0x216))/0x4+parseInt(_0x337292(0x1ec))/0x5*(-parseInt(_0x337292(0x214))/0x6)+parseInt(_0x337292(0x1e2))/0x7*(-parseInt(_0x337292(0x206))/0x8)+parseInt(_0x337292(0x1f7))/0x9*(parseInt(_0x337292(0x1fd))/0xa)+parseInt(_0x337292(0x20b))/0xb;if(_0x14841c===_0x27c396)break;else _0x50769d['push'](_0x50769d['shift']());}catch(_0x48a96b){_0x50769d['push'](_0x50769d['shift']());}}}(a35_0x3a62,0xc6097));function a35_0x3a62(){const _0x723f26=['pull','\x20pulled,\x20','functionNode','push','Pull\x20only\x20this\x20script\x20type','all','operationType','Pull\x20complete:\x20','functionName','\x20remote\x20Backend\x20Function\x20script(s)\x20for\x20pull','length','functions','map','bff','boolean','119rvdAYx','type','stdin','includes','No\x20remote\x20Backend\x20Function\x20scripts\x20found.','GET','alias','hookLocation','hash','Would\x20inspect\x20','424405wLnqiP','\x22\x20not\x20found\x20after\x20ensureLockScope.','trim','filePath','validation','Force\x20pull\x20cancelled.','\x20skipped,\x20','bool','Pull\x20remote\x20Backend\x20Function\x20scripts\x20to\x20local','cancelled','lockKey','549eqnukr','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','appCode','&type=','conflict','scriptType','120830nHWUGS','1689450JJOnXx','would_pull','datasetCode','\x20failed','HOOK','version','1210868nnBIGD','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','78424SxZSdP','local\x20unsynced\x20changes','stringify','apiDir','force','25429679eCHTEb','unresolvable\x20target\x20path','toLowerCase','scriptContent','Lock\x20scope\x20for\x20app\x20\x22','skipped','1XlTlEn','parse','message','36GlYjnm','str','1572688nYsRbB','close','lockFilePath'];a35_0x3a62=function(){return _0x723f26;};return a35_0x3a62();}import{createInterface}from'node:readline';import{writeFile}from'node:fs/promises';import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,ensureParentDirectory,fileExists,normalizeBffType,resolveRemoteScriptTarget}from'../../core/bff/file-system.js';import{computeContentHash,computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffPull={'service':a35_0x6eb12(0x1e0),'command':a35_0x6eb12(0x219),'description':a35_0x6eb12(0x1f4),'risk':'read','flags':[{'name':a35_0x6eb12(0x1e3),'type':'string','description':a35_0x6eb12(0x21d),'enum':['COMMON','ENDPOINT',a35_0x6eb12(0x202)]},{'name':a35_0x6eb12(0x20a),'type':a35_0x6eb12(0x1e1),'description':'Force\x20overwrite\x20local\x20unsynced\x20changes'}],async 'dryRun'(_0x213feb){const _0x723f35=a35_0x6eb12,_0x42359e=loadBffProjectConfig(_0x213feb[_0x723f35(0x1f9)]),_0x5037b7=await readBffLockFile(_0x42359e[_0x723f35(0x218)]),{appLock:_0x49b805}=ensureLockScope(_0x5037b7??createEmptyBffLock(),_0x213feb[_0x723f35(0x1f9)],_0x42359e['scriptsRoot'],_0x723f35(0x219)),_0x49c7ca=normalizeBffType(_0x213feb[_0x723f35(0x215)](_0x723f35(0x1e3)))??undefined,_0x11c42c=buildDatasetCodeToAliasMap(_0x213feb['apiDir'],_0x213feb['appCode']),[_0x4965d2,_0x44e064]=await Promise['all']([listBffScripts(_0x213feb[_0x723f35(0x1f9)],_0x49c7ca),getBffScriptStatistics(_0x213feb[_0x723f35(0x1f9)])]),_0x117baf=createHookLocationMap(_0x44e064),_0x314210=[];for(const _0x42eabe of _0x4965d2){const _0x5b930d=resolveRemoteScriptTarget(_0x42359e,_0x42eabe,_0x117baf,_0x49b805[_0x723f35(0x224)],_0x11c42c);if(!_0x5b930d){_0x314210[_0x723f35(0x21c)]({'scriptType':_0x42eabe[_0x723f35(0x1fc)],'functionName':_0x42eabe[_0x723f35(0x221)]??'','status':_0x723f35(0x210),'reason':_0x723f35(0x20c)});continue;}const _0x7d84f3=_0x49b805['functions'][_0x5b930d[_0x723f35(0x1f6)]],_0x3e4899=_0x42eabe[_0x723f35(0x20e)]!=null?computeContentHash(_0x42eabe['scriptContent']):undefined,_0x3da1ba=await hasUnsyncedLocalChanges(_0x5b930d[_0x723f35(0x1ef)],_0x7d84f3,_0x3e4899);_0x314210[_0x723f35(0x21c)]({'lockKey':_0x5b930d[_0x723f35(0x1f6)],'filePath':_0x5b930d[_0x723f35(0x1ef)],'remoteId':_0x42eabe['id']??null,'status':_0x3da1ba?_0x723f35(0x1fb):_0x723f35(0x1ff)});}return{'method':_0x723f35(0x1e7),'url':'/api/management/library/scripts/list?appCode='+_0x213feb[_0x723f35(0x1f9)]+(_0x49c7ca?_0x723f35(0x1fa)+_0x49c7ca:''),'body':{'appCode':_0x213feb['appCode'],'filterType':_0x49c7ca??null,'files':_0x314210},'description':_0x723f35(0x1eb)+_0x314210[_0x723f35(0x223)]+_0x723f35(0x222)};},async 'execute'(_0x5396ee){const _0x55b082=a35_0x6eb12,_0x37a6b8=loadBffProjectConfig(_0x5396ee[_0x55b082(0x1f9)]),_0x582f7d=await readBffLockFile(_0x37a6b8[_0x55b082(0x218)]),{lockData:_0x31bf60,appLock:_0x3dd54b}=ensureLockScope(_0x582f7d??createEmptyBffLock(),_0x5396ee[_0x55b082(0x1f9)],_0x37a6b8['scriptsRoot'],_0x55b082(0x219)),_0x4e01f2=normalizeBffType(_0x5396ee[_0x55b082(0x215)]('type'))??undefined;if(_0x5396ee[_0x55b082(0x215)](_0x55b082(0x1e3))&&!_0x4e01f2)throw CliErrors[_0x55b082(0x1f0)](_0x55b082(0x1f8));const [_0x4353ef,_0x2ff2a9]=await Promise[_0x55b082(0x21e)]([listBffScripts(_0x5396ee['appCode'],_0x4e01f2),getBffScriptStatistics(_0x5396ee['appCode'])]);if(_0x4353ef['length']===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x55b082(0x1e6)};const _0x148d66=_0x5396ee[_0x55b082(0x1f3)](_0x55b082(0x20a));if(_0x148d66&&!_0x5396ee['nonInteractive']){const _0x15c732=await confirmForce();if(!_0x15c732)throw CliErrors[_0x55b082(0x1f5)](_0x55b082(0x1f1));}if(_0x148d66&&_0x5396ee['nonInteractive']){}const _0x44f5c7=buildDatasetCodeToAliasMap(_0x5396ee[_0x55b082(0x209)],_0x5396ee[_0x55b082(0x1f9)]),_0x320088=createHookLocationMap(_0x2ff2a9),_0x13547f=JSON[_0x55b082(0x212)](JSON[_0x55b082(0x208)](_0x31bf60)),_0x599173=_0x5396ee[_0x55b082(0x1f9)],_0x2eafb3=_0x13547f['apps'][_0x599173];if(!_0x2eafb3)throw new Error(_0x55b082(0x20f)+_0x599173+_0x55b082(0x1ed));const _0x46e276=[],_0x5f139a=[],_0x41b857=[];for(const _0x5882ae of _0x4353ef){const _0x3ec23d=resolveRemoteScriptTarget(_0x37a6b8,_0x5882ae,_0x320088,_0x3dd54b[_0x55b082(0x224)],_0x44f5c7);if(!_0x3ec23d){_0x5f139a[_0x55b082(0x21c)]({'lockKey':_0x5882ae[_0x55b082(0x1fc)]+'/'+_0x5882ae[_0x55b082(0x221)],'reason':_0x55b082(0x20c)});continue;}const _0x2cb92f=_0x3dd54b[_0x55b082(0x224)][_0x3ec23d['lockKey']];try{if(!_0x5882ae['id'])throw new Error('Remote\x20script\x20missing\x20id.');if(_0x5882ae[_0x55b082(0x20e)]==null)throw new Error('Remote\x20script\x20missing\x20content.');const _0x2b326c=_0x5882ae['scriptContent'],_0x5222af=computeContentHash(_0x2b326c);if(!_0x148d66){const _0x352ab7=await hasUnsyncedLocalChanges(_0x3ec23d[_0x55b082(0x1ef)],_0x2cb92f,_0x5222af);if(_0x352ab7){_0x5f139a['push']({'lockKey':_0x3ec23d[_0x55b082(0x1f6)],'reason':_0x55b082(0x207)});continue;}}await ensureParentDirectory(_0x3ec23d['filePath']),await writeFile(_0x3ec23d[_0x55b082(0x1ef)],_0x2b326c,'utf8');const _0x4ddcc1={'hash':_0x5222af,'remoteId':_0x5882ae['id'],'version':_0x5882ae[_0x55b082(0x203)]};_0x3ec23d[_0x55b082(0x1e3)]==='HOOK'&&_0x3ec23d[_0x55b082(0x1e9)]&&(_0x4ddcc1['alias']=_0x3ec23d['hookLocation'][_0x55b082(0x1e8)],_0x4ddcc1['datasetCode']=_0x3ec23d['hookLocation'][_0x55b082(0x200)],_0x4ddcc1[_0x55b082(0x21f)]=_0x3ec23d[_0x55b082(0x1e9)][_0x55b082(0x21f)],_0x4ddcc1[_0x55b082(0x21b)]=_0x3ec23d['hookLocation'][_0x55b082(0x21b)]),_0x2eafb3[_0x55b082(0x224)][_0x3ec23d['lockKey']]=_0x4ddcc1,_0x46e276['push']({'lockKey':_0x3ec23d[_0x55b082(0x1f6)],'remoteId':_0x5882ae['id']});}catch(_0x4f6ec5){_0x41b857[_0x55b082(0x21c)]({'lockKey':_0x3ec23d[_0x55b082(0x1f6)],'error':_0x4f6ec5 instanceof Error?_0x4f6ec5[_0x55b082(0x213)]:String(_0x4f6ec5)});}}return _0x2eafb3['lastSync']=new Date()['toISOString'](),await writeBffLockFile(_0x37a6b8[_0x55b082(0x218)],_0x13547f),{'ok':_0x41b857[_0x55b082(0x223)]===0x0,'data':{'pulled':_0x46e276,'skipped':_0x5f139a,'failed':_0x41b857},'message':_0x55b082(0x220)+_0x46e276[_0x55b082(0x223)]+_0x55b082(0x21a)+_0x5f139a[_0x55b082(0x223)]+_0x55b082(0x1f2)+_0x41b857[_0x55b082(0x223)]+_0x55b082(0x201)};}};async function hasUnsyncedLocalChanges(_0x4f9beb,_0x3443da,_0x7574aa){const _0x2c732c=a35_0x6eb12;if(!await fileExists(_0x4f9beb))return![];const _0x5544e8=await computeFileHash(_0x4f9beb);if(!_0x3443da)return _0x7574aa?_0x5544e8!==_0x7574aa:!![];return _0x5544e8!==_0x3443da[_0x2c732c(0x1ea)];}function a35_0xf5e0(_0x45bee8,_0x1089b0){_0x45bee8=_0x45bee8-0x1df;const _0x3a62d5=a35_0x3a62();let _0xf5e0f1=_0x3a62d5[_0x45bee8];return _0xf5e0f1;}function buildDatasetCodeToAliasMap(_0x47b2ee,_0x5546a6){const _0x253783=a35_0x6eb12,_0x159c98=loadAliasMap(_0x47b2ee,undefined,resolveApiFilePath(_0x47b2ee,_0x5546a6));return new Map(_0x159c98[_0x253783(0x1df)](_0x518ef8=>[_0x518ef8[_0x253783(0x200)],_0x518ef8[_0x253783(0x1e8)]]));}async function confirmForce(){const _0x2a8e1f=a35_0x6eb12,_0x324c17=createInterface({'input':process[_0x2a8e1f(0x1e4)],'output':process['stderr']}),_0x400538=await new Promise(_0x17d964=>{const _0x39dbe1=_0x2a8e1f;_0x324c17['question'](_0x39dbe1(0x205),_0x17d964);});return _0x324c17[_0x2a8e1f(0x217)](),['y','yes'][_0x2a8e1f(0x1e5)](_0x400538[_0x2a8e1f(0x1ee)]()[_0x2a8e1f(0x20d)]());}
1
+ function a36_0x36d8(){const _0x32c00b=['stringify','\x20skipped,\x20','ENDPOINT','unresolvable\x20target\x20path','COMMON','Lock\x20scope\x20for\x20app\x20\x22','Force\x20pull\x20cancelled.','skipped','stderr','1585befVYW','Pull\x20complete:\x20','message','lockKey','887477NwXvxU','12077199uNpdNA','apiDir','force','functionNode','toISOString','\x20remote\x20Backend\x20Function\x20script(s)\x20for\x20pull','parse','toLowerCase','all','conflict','2TlqWGS','Pull\x20remote\x20Backend\x20Function\x20scripts\x20to\x20local','validation','would_pull','scriptContent','close','\x20failed','yes','read','bff','8xKcvOV','lockFilePath','utf8','includes','29726567SAhJYe','Would\x20inspect\x20','filePath','568LyGglC','scriptType','scriptsRoot','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','alias','appCode','datasetCode','hookLocation','push','2533368HajbTa','bool','HOOK','Force\x20overwrite\x20local\x20unsynced\x20changes','1757289xZzERh','Remote\x20script\x20missing\x20id.','10cyBCSC','pull','version','hash','length','lastSync','\x20pulled,\x20','functionName','cancelled','5334cXoTFA','functions','Pull\x20only\x20this\x20script\x20type','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','44EqdUNf','/api/management/library/scripts/list?appCode=','nonInteractive','operationType','27492xeHpNj','trim','boolean','str','type'];a36_0x36d8=function(){return _0x32c00b;};return a36_0x36d8();}const a36_0x542a35=a36_0x3561;(function(_0x7c55c,_0x296c19){const _0xc2ecce=a36_0x3561,_0x1b320e=_0x7c55c();while(!![]){try{const _0x2bcc7a=-parseInt(_0xc2ecce(0xc3))/0x1*(-parseInt(_0xc2ecce(0xce))/0x2)+-parseInt(_0xc2ecce(0x9e))/0x3*(-parseInt(_0xc2ecce(0xd8))/0x4)+parseInt(_0xc2ecce(0xbf))/0x5*(-parseInt(_0xc2ecce(0xb1))/0x6)+-parseInt(_0xc2ecce(0xa9))/0x7*(-parseInt(_0xc2ecce(0xdf))/0x8)+-parseInt(_0xc2ecce(0xc4))/0x9*(parseInt(_0xc2ecce(0xa0))/0xa)+-parseInt(_0xc2ecce(0xad))/0xb*(parseInt(_0xc2ecce(0x9a))/0xc)+parseInt(_0xc2ecce(0xdc))/0xd;if(_0x2bcc7a===_0x296c19)break;else _0x1b320e['push'](_0x1b320e['shift']());}catch(_0x4b7790){_0x1b320e['push'](_0x1b320e['shift']());}}}(a36_0x36d8,0xb9c47));import{createInterface}from'node:readline';import{writeFile}from'node:fs/promises';import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,ensureParentDirectory,fileExists,normalizeBffType,resolveRemoteScriptTarget}from'../../core/bff/file-system.js';import{computeContentHash,computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffPull={'service':a36_0x542a35(0xd7),'command':a36_0x542a35(0xa1),'description':a36_0x542a35(0xcf),'risk':a36_0x542a35(0xd6),'flags':[{'name':a36_0x542a35(0xb5),'type':'string','description':a36_0x542a35(0xab),'enum':[a36_0x542a35(0xba),a36_0x542a35(0xb8),a36_0x542a35(0x9c)]},{'name':a36_0x542a35(0xc6),'type':a36_0x542a35(0xb3),'description':a36_0x542a35(0x9d)}],async 'dryRun'(_0x36fe54){const _0x1b3a25=a36_0x542a35,_0x2bb992=loadBffProjectConfig(_0x36fe54['appCode']),_0x21e792=await readBffLockFile(_0x2bb992[_0x1b3a25(0xd9)]),{appLock:_0x5380c5}=ensureLockScope(_0x21e792??createEmptyBffLock(),_0x36fe54[_0x1b3a25(0x96)],_0x2bb992[_0x1b3a25(0xe1)],'pull'),_0x5e515c=normalizeBffType(_0x36fe54[_0x1b3a25(0xb4)](_0x1b3a25(0xb5)))??undefined,_0x5b21ad=buildDatasetCodeToAliasMap(_0x36fe54['apiDir'],_0x36fe54['appCode']),[_0x3b3ccb,_0x470df0]=await Promise[_0x1b3a25(0xcc)]([listBffScripts(_0x36fe54[_0x1b3a25(0x96)],_0x5e515c),getBffScriptStatistics(_0x36fe54[_0x1b3a25(0x96)])]),_0xee485d=createHookLocationMap(_0x470df0),_0x430da5=[];for(const _0x351473 of _0x3b3ccb){const _0x1a49f5=resolveRemoteScriptTarget(_0x2bb992,_0x351473,_0xee485d,_0x5380c5['functions'],_0x5b21ad);if(!_0x1a49f5){_0x430da5['push']({'scriptType':_0x351473[_0x1b3a25(0xe0)],'functionName':_0x351473[_0x1b3a25(0xa7)]??'','status':_0x1b3a25(0xbd),'reason':_0x1b3a25(0xb9)});continue;}const _0x524938=_0x5380c5[_0x1b3a25(0xaa)][_0x1a49f5[_0x1b3a25(0xc2)]],_0x21a048=_0x351473[_0x1b3a25(0xd2)]!=null?computeContentHash(_0x351473['scriptContent']):undefined,_0x18b5d7=await hasUnsyncedLocalChanges(_0x1a49f5['filePath'],_0x524938,_0x21a048);_0x430da5[_0x1b3a25(0x99)]({'lockKey':_0x1a49f5[_0x1b3a25(0xc2)],'filePath':_0x1a49f5[_0x1b3a25(0xde)],'remoteId':_0x351473['id']??null,'status':_0x18b5d7?_0x1b3a25(0xcd):_0x1b3a25(0xd1)});}return{'method':'GET','url':_0x1b3a25(0xae)+_0x36fe54[_0x1b3a25(0x96)]+(_0x5e515c?'&type='+_0x5e515c:''),'body':{'appCode':_0x36fe54[_0x1b3a25(0x96)],'filterType':_0x5e515c??null,'files':_0x430da5},'description':_0x1b3a25(0xdd)+_0x430da5['length']+_0x1b3a25(0xc9)};},async 'execute'(_0x46d4c8){const _0x28e715=a36_0x542a35,_0xfeae32=loadBffProjectConfig(_0x46d4c8['appCode']),_0x3a97e3=await readBffLockFile(_0xfeae32[_0x28e715(0xd9)]),{lockData:_0x1ae6d9,appLock:_0x5a7a7e}=ensureLockScope(_0x3a97e3??createEmptyBffLock(),_0x46d4c8[_0x28e715(0x96)],_0xfeae32['scriptsRoot'],'pull'),_0x13ca38=normalizeBffType(_0x46d4c8[_0x28e715(0xb4)](_0x28e715(0xb5)))??undefined;if(_0x46d4c8[_0x28e715(0xb4)](_0x28e715(0xb5))&&!_0x13ca38)throw CliErrors[_0x28e715(0xd0)](_0x28e715(0xac));const [_0x1e381d,_0x184d9c]=await Promise[_0x28e715(0xcc)]([listBffScripts(_0x46d4c8['appCode'],_0x13ca38),getBffScriptStatistics(_0x46d4c8[_0x28e715(0x96)])]);if(_0x1e381d['length']===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':'No\x20remote\x20Backend\x20Function\x20scripts\x20found.'};const _0x55b3e4=_0x46d4c8[_0x28e715(0x9b)](_0x28e715(0xc6));if(_0x55b3e4&&!_0x46d4c8[_0x28e715(0xaf)]){const _0x203e73=await confirmForce();if(!_0x203e73)throw CliErrors[_0x28e715(0xa8)](_0x28e715(0xbc));}if(_0x55b3e4&&_0x46d4c8[_0x28e715(0xaf)]){}const _0x332f84=buildDatasetCodeToAliasMap(_0x46d4c8[_0x28e715(0xc5)],_0x46d4c8[_0x28e715(0x96)]),_0x46442a=createHookLocationMap(_0x184d9c),_0x11e79b=JSON[_0x28e715(0xca)](JSON[_0x28e715(0xb6)](_0x1ae6d9)),_0x3d5f11=_0x46d4c8['appCode'],_0x303f94=_0x11e79b['apps'][_0x3d5f11];if(!_0x303f94)throw new Error(_0x28e715(0xbb)+_0x3d5f11+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x32d96b=[],_0x33bc74=[],_0x2d882f=[];for(const _0x3cb7c8 of _0x1e381d){const _0x28b9b4=resolveRemoteScriptTarget(_0xfeae32,_0x3cb7c8,_0x46442a,_0x5a7a7e[_0x28e715(0xaa)],_0x332f84);if(!_0x28b9b4){_0x33bc74[_0x28e715(0x99)]({'lockKey':_0x3cb7c8[_0x28e715(0xe0)]+'/'+_0x3cb7c8['functionName'],'reason':_0x28e715(0xb9)});continue;}const _0x1a488b=_0x5a7a7e[_0x28e715(0xaa)][_0x28b9b4[_0x28e715(0xc2)]];try{if(!_0x3cb7c8['id'])throw new Error(_0x28e715(0x9f));if(_0x3cb7c8[_0x28e715(0xd2)]==null)throw new Error('Remote\x20script\x20missing\x20content.');const _0x125a83=_0x3cb7c8['scriptContent'],_0x5f43f2=computeContentHash(_0x125a83);if(!_0x55b3e4){const _0x3690cd=await hasUnsyncedLocalChanges(_0x28b9b4[_0x28e715(0xde)],_0x1a488b,_0x5f43f2);if(_0x3690cd){_0x33bc74['push']({'lockKey':_0x28b9b4[_0x28e715(0xc2)],'reason':'local\x20unsynced\x20changes'});continue;}}await ensureParentDirectory(_0x28b9b4[_0x28e715(0xde)]),await writeFile(_0x28b9b4[_0x28e715(0xde)],_0x125a83,_0x28e715(0xda));const _0x2c4631={'hash':_0x5f43f2,'remoteId':_0x3cb7c8['id'],'version':_0x3cb7c8[_0x28e715(0xa2)]};_0x28b9b4['type']==='HOOK'&&_0x28b9b4['hookLocation']&&(_0x2c4631[_0x28e715(0xe3)]=_0x28b9b4[_0x28e715(0x98)][_0x28e715(0xe3)],_0x2c4631['datasetCode']=_0x28b9b4[_0x28e715(0x98)][_0x28e715(0x97)],_0x2c4631['operationType']=_0x28b9b4['hookLocation'][_0x28e715(0xb0)],_0x2c4631[_0x28e715(0xc7)]=_0x28b9b4[_0x28e715(0x98)]['functionNode']),_0x303f94[_0x28e715(0xaa)][_0x28b9b4[_0x28e715(0xc2)]]=_0x2c4631,_0x32d96b['push']({'lockKey':_0x28b9b4['lockKey'],'remoteId':_0x3cb7c8['id']});}catch(_0x36f537){_0x2d882f['push']({'lockKey':_0x28b9b4[_0x28e715(0xc2)],'error':_0x36f537 instanceof Error?_0x36f537[_0x28e715(0xc1)]:String(_0x36f537)});}}return _0x303f94[_0x28e715(0xa5)]=new Date()[_0x28e715(0xc8)](),await writeBffLockFile(_0xfeae32[_0x28e715(0xd9)],_0x11e79b),{'ok':_0x2d882f[_0x28e715(0xa4)]===0x0,'data':{'pulled':_0x32d96b,'skipped':_0x33bc74,'failed':_0x2d882f},'message':_0x28e715(0xc0)+_0x32d96b[_0x28e715(0xa4)]+_0x28e715(0xa6)+_0x33bc74[_0x28e715(0xa4)]+_0x28e715(0xb7)+_0x2d882f[_0x28e715(0xa4)]+_0x28e715(0xd4)};}};async function hasUnsyncedLocalChanges(_0x2cf0b0,_0x41d06a,_0x5340ff){const _0x54e6ff=a36_0x542a35;if(!await fileExists(_0x2cf0b0))return![];const _0x5142e5=await computeFileHash(_0x2cf0b0);if(!_0x41d06a)return _0x5340ff?_0x5142e5!==_0x5340ff:!![];return _0x5142e5!==_0x41d06a[_0x54e6ff(0xa3)];}function a36_0x3561(_0x1b5a12,_0x3174d1){_0x1b5a12=_0x1b5a12-0x96;const _0x36d8c2=a36_0x36d8();let _0x3561a6=_0x36d8c2[_0x1b5a12];return _0x3561a6;}function buildDatasetCodeToAliasMap(_0x2b708a,_0x4d8e7f){const _0x58177a=a36_0x542a35,_0x166796=loadAliasMap(_0x2b708a,undefined,resolveApiFilePath(_0x2b708a,_0x4d8e7f));return new Map(_0x166796['map'](_0x19ff46=>[_0x19ff46[_0x58177a(0x97)],_0x19ff46[_0x58177a(0xe3)]]));}async function confirmForce(){const _0x561413=a36_0x542a35,_0x5be65a=createInterface({'input':process['stdin'],'output':process[_0x561413(0xbe)]}),_0x13b3ed=await new Promise(_0x30b08b=>{const _0x27b637=_0x561413;_0x5be65a['question'](_0x27b637(0xe2),_0x30b08b);});return _0x5be65a[_0x561413(0xd3)](),['y',_0x561413(0xd5)][_0x561413(0xdb)](_0x13b3ed[_0x561413(0xb2)]()[_0x561413(0xcb)]());}
@@ -1 +1 @@
1
- const a36_0x4faabe=a36_0x204a;(function(_0x14b5b4,_0x32fcb3){const _0x369ff8=a36_0x204a,_0x2422b8=_0x14b5b4();while(!![]){try{const _0x275535=parseInt(_0x369ff8(0xaf))/0x1+parseInt(_0x369ff8(0xc2))/0x2+-parseInt(_0x369ff8(0xc1))/0x3+parseInt(_0x369ff8(0xd9))/0x4*(-parseInt(_0x369ff8(0xea))/0x5)+parseInt(_0x369ff8(0xb6))/0x6*(parseInt(_0x369ff8(0xb9))/0x7)+-parseInt(_0x369ff8(0xd2))/0x8+-parseInt(_0x369ff8(0xf8))/0x9;if(_0x275535===_0x32fcb3)break;else _0x2422b8['push'](_0x2422b8['shift']());}catch(_0x1cce3e){_0x2422b8['push'](_0x2422b8['shift']());}}}(a36_0x2892,0xeda6c));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription}from'../../core/bff/utils.js';function a36_0x204a(_0x544503,_0x2c810c){_0x544503=_0x544503-0xa9;const _0x289299=a36_0x2892();let _0x204ae0=_0x289299[_0x544503];return _0x204ae0;}import{sleep}from'../../utils/sleep.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':'bff','command':a36_0x4faabe(0xdd),'description':a36_0x4faabe(0xbf),'risk':a36_0x4faabe(0xcf),'flags':[{'name':'type','type':a36_0x4faabe(0xc6),'description':a36_0x4faabe(0xf6),'enum':[a36_0x4faabe(0xd4),'ENDPOINT',a36_0x4faabe(0xd6)]},{'name':'name','type':a36_0x4faabe(0xc6),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':'force','type':'boolean','description':a36_0x4faabe(0xe0)}],async 'dryRun'(_0x2c270d){const _0x446ee5=a36_0x4faabe,_0x1e5ad0=loadBffProjectConfig(_0x2c270d[_0x446ee5(0xfa)]),_0x5a1ce6=await readBffLockFile(_0x1e5ad0[_0x446ee5(0xe4)]),{appLock:_0x36fe63}=ensureLockScope(_0x5a1ce6??createEmptyBffLock(),_0x2c270d[_0x446ee5(0xfa)],_0x1e5ad0['scriptsRoot'],_0x446ee5(0xdd)),_0x4d43a0=await getTargetFunctions(_0x1e5ad0,_0x2c270d),_0x29b24f=_0x2c270d['bool'](_0x446ee5(0xf1)),_0x2af7c=[];for(const _0x5c3335 of _0x4d43a0){const _0x1ca159=await computeFileHash(_0x5c3335['filePath']),_0x955661=_0x36fe63['functions'][_0x5c3335[_0x446ee5(0xee)]],_0x5867ee=!!_0x955661&&_0x955661['hash']===_0x1ca159;_0x2af7c[_0x446ee5(0xdd)]({'lockKey':_0x5c3335[_0x446ee5(0xee)],'filePath':_0x5c3335[_0x446ee5(0xe7)],'remoteId':_0x955661?.[_0x446ee5(0xb4)]??null,'mode':_0x955661?.['remoteId']?_0x446ee5(0xc5):_0x446ee5(0xf0),'status':!_0x29b24f&&_0x5867ee?'unchanged':'would_push'});}return{'method':_0x446ee5(0xd7),'url':_0x446ee5(0xb7),'body':{'appCode':_0x2c270d[_0x446ee5(0xfa)],'force':_0x29b24f,'files':_0x2af7c,'cacheClearAtRuntime':_0x2af7c[_0x446ee5(0xac)](_0x212867=>_0x212867[_0x446ee5(0xda)]===_0x446ee5(0xaa)),'cacheClearAtRuntimeTimes':_0x2af7c[_0x446ee5(0xac)](_0x1c9269=>_0x1c9269['status']===_0x446ee5(0xaa))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x2af7c[_0x446ee5(0xce)]+_0x446ee5(0xef)};},async 'execute'(_0x535a08){const _0x1316c5=a36_0x4faabe,_0x5efff5=loadBffProjectConfig(_0x535a08[_0x1316c5(0xfa)]),_0x78853c=await readBffLockFile(_0x5efff5[_0x1316c5(0xe4)]),{lockData:_0x4555ac,appLock:_0x214d56}=ensureLockScope(_0x78853c??createEmptyBffLock(),_0x535a08['appCode'],_0x5efff5[_0x1316c5(0xbd)],_0x1316c5(0xdd)),_0xf3ef60=await getTargetFunctions(_0x5efff5,_0x535a08);if(_0xf3ef60['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x1316c5(0xf4)};const _0x48ea6a=_0x535a08[_0x1316c5(0xdf)](_0x1316c5(0xf1)),_0x522b34=JSON[_0x1316c5(0xe2)](JSON[_0x1316c5(0xde)](_0x4555ac)),_0x46ece3=_0x522b34[_0x1316c5(0xc3)][_0x535a08[_0x1316c5(0xfa)]];if(!_0x46ece3)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x535a08[_0x1316c5(0xfa)]+_0x1316c5(0xfb));const _0x983fae=await buildHookMaps(_0x535a08[_0x1316c5(0xfa)],_0x535a08[_0x1316c5(0xed)],_0xf3ef60,_0x46ece3),_0xbda3f8=[],_0x38d8ab=[],_0x10376e=[];for(const _0x3905a2 of _0xf3ef60){const _0x11c196=await computeFileHash(_0x3905a2[_0x1316c5(0xe7)]),_0x42aa7d=_0x46ece3['functions'][_0x3905a2[_0x1316c5(0xee)]];if(!_0x48ea6a&&_0x42aa7d&&_0x42aa7d['hash']===_0x11c196){_0x38d8ab[_0x1316c5(0xdd)]({'lockKey':_0x3905a2[_0x1316c5(0xee)],'reason':_0x1316c5(0xdb)});continue;}try{await uploadSingleFunction(_0x535a08[_0x1316c5(0xfa)],_0x3905a2,_0x46ece3,_0x983fae);const _0x511f34=_0x46ece3['functions'][_0x3905a2[_0x1316c5(0xee)]];_0xbda3f8[_0x1316c5(0xdd)]({'lockKey':_0x3905a2['lockKey'],'remoteId':_0x511f34?.[_0x1316c5(0xb4)]??0x0});}catch(_0x25f5a4){_0x10376e['push']({'lockKey':_0x3905a2[_0x1316c5(0xee)],'error':_0x25f5a4 instanceof Error?_0x25f5a4[_0x1316c5(0xd5)]:String(_0x25f5a4)});}}_0x46ece3[_0x1316c5(0xcc)]=new Date()[_0x1316c5(0xa9)](),await writeBffLockFile(_0x5efff5[_0x1316c5(0xe4)],_0x522b34),await waitForUploadedLockEntries(_0x5efff5['lockFilePath'],_0x535a08[_0x1316c5(0xfa)],_0xbda3f8['map'](_0x5f35ad=>_0x5f35ad[_0x1316c5(0xee)]));let _0x493077={'attempted':![],'cleared':![]};if(_0xbda3f8['length']>0x0)try{let _0x48b2a9='';for(let _0x3771cf=0x0;_0x3771cf<CACHE_CLEAR_ATTEMPTS;_0x3771cf+=0x1){_0x48b2a9=await clearBffScriptCache(),_0x3771cf<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x493077={'attempted':!![],'cleared':!![],'message':_0x48b2a9||_0x1316c5(0xba)};}catch(_0x150856){_0x493077={'attempted':!![],'cleared':![],'error':_0x150856 instanceof Error?_0x150856[_0x1316c5(0xd5)]:String(_0x150856)};}const _0x3b9e9e=_0x10376e['length']===0x0&&(_0x493077['attempted']?_0x493077[_0x1316c5(0xfc)]:!![]),_0x5ab5bb=_0x493077[_0x1316c5(0xec)]?_0x493077['cleared']?'runtime\x20cache\x20cleared':_0x1316c5(0xbe):'runtime\x20cache\x20not\x20needed';return{'ok':_0x3b9e9e,'data':{'uploaded':_0xbda3f8,'skipped':_0x38d8ab,'failed':_0x10376e,'cacheClear':_0x493077},'message':_0x1316c5(0xb8)+_0xbda3f8[_0x1316c5(0xce)]+_0x1316c5(0xf7)+_0x38d8ab[_0x1316c5(0xce)]+_0x1316c5(0xf3)+_0x10376e['length']+_0x1316c5(0xb5)+_0x5ab5bb};}};async function getTargetFunctions(_0x236952,_0x48b5dd){const _0x105d3a=a36_0x4faabe,_0x45d1b7=_0x48b5dd[_0x105d3a(0xdc)](_0x105d3a(0xb3)),_0x44651f=_0x48b5dd[_0x105d3a(0xdc)](_0x105d3a(0xb0)),_0x1d1c8c=normalizeBffType(_0x45d1b7)??undefined;if(_0x44651f&&!_0x1d1c8c)throw CliErrors[_0x105d3a(0xca)](_0x105d3a(0xc0));const _0x318319=await scanLocalBffFunctions(_0x236952,_0x1d1c8c);if(_0x44651f){const _0x322da6=_0x318319[_0x105d3a(0xe3)](_0xe187bb=>_0xe187bb[_0x105d3a(0xb0)]===_0x44651f);if(_0x322da6['length']===0x0)throw CliErrors[_0x105d3a(0xca)](_0x105d3a(0xeb)+_0x1d1c8c+'/'+_0x44651f);return _0x322da6;}return _0x318319;}async function buildHookMaps(_0x378c2f,_0x1f16d5,_0x5c3798,_0x20411c){const _0x53133e=a36_0x4faabe,_0x3cafac=_0x5c3798[_0x53133e(0xac)](_0x41b406=>_0x41b406[_0x53133e(0xb3)]===_0x53133e(0xd6));if(!_0x3cafac)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x5d7553=loadAliasMap(_0x1f16d5,undefined,resolveApiFilePath(_0x1f16d5,_0x378c2f)),_0x40b424=new Map(_0x5d7553[_0x53133e(0xd0)](_0x4df4d0=>[_0x4df4d0[_0x53133e(0xe5)],_0x4df4d0['datasetCode']]));for(const _0x47545a of Object[_0x53133e(0xe6)](_0x20411c[_0x53133e(0xd3)])){_0x47545a[_0x53133e(0xe5)]&&_0x47545a['datasetCode']&&!_0x40b424[_0x53133e(0xcb)](_0x47545a[_0x53133e(0xe5)])&&_0x40b424[_0x53133e(0xc9)](_0x47545a[_0x53133e(0xe5)],_0x47545a['datasetCode']);}const _0x3b3752=await listDatasets(_0x378c2f),_0x1c26e2=new Map(_0x3b3752[_0x53133e(0xd0)](_0xae1675=>[_0xae1675[_0x53133e(0xf5)],_0xae1675]));return{'aliasToDatasetCode':_0x40b424,'datasetCodeToDataset':_0x1c26e2};}async function uploadSingleFunction(_0x1a1610,_0x226b00,_0xb3195,_0x34d07a){const _0x5a30ec=a36_0x4faabe,_0x59745=await readFile(_0x226b00[_0x5a30ec(0xe7)],'utf8'),_0x4879c2=await computeFileHash(_0x226b00[_0x5a30ec(0xe7)]),_0x284f0a=_0xb3195['functions'][_0x226b00[_0x5a30ec(0xee)]];if(_0x284f0a?.[_0x5a30ec(0xb4)]&&_0x284f0a[_0x5a30ec(0xab)]==null)throw CliErrors[_0x5a30ec(0xca)](_0x226b00[_0x5a30ec(0xee)]+_0x5a30ec(0xe9));let _0x2b86a6=extractScriptDescription(_0x59745);if(!_0x2b86a6&&_0x284f0a?.['remoteId']){const _0x16924e=await getBffScriptInfo(_0x284f0a[_0x5a30ec(0xb4)]);_0x2b86a6=_0x16924e[_0x5a30ec(0xc8)]||undefined;}const _0xeb6c09={'appCode':_0x1a1610,'functionName':_0x226b00[_0x5a30ec(0xb0)],'scriptType':_0x226b00['type'],'scriptContent':_0x59745};if(_0x284f0a?.[_0x5a30ec(0xb4)])_0xeb6c09['id']=_0x284f0a[_0x5a30ec(0xb4)];if(_0x284f0a?.['version']!=null)_0xeb6c09[_0x5a30ec(0xab)]=_0x284f0a[_0x5a30ec(0xab)];if(_0x2b86a6)_0xeb6c09[_0x5a30ec(0xc8)]=_0x2b86a6;if(_0x226b00[_0x5a30ec(0xb3)]==='HOOK'){const _0x1a80ae=_0x226b00[_0x5a30ec(0xe5)];if(!_0x1a80ae||!_0x226b00[_0x5a30ec(0xd8)]||!_0x226b00[_0x5a30ec(0xd1)])throw CliErrors[_0x5a30ec(0xca)](_0x5a30ec(0xe1)+_0x226b00[_0x5a30ec(0xee)]);const _0x2f3511=_0x34d07a['aliasToDatasetCode'][_0x5a30ec(0xc4)](_0x1a80ae)??_0x284f0a?.[_0x5a30ec(0xb1)]??_0x1a80ae,_0x512dba=_0x34d07a[_0x5a30ec(0xe8)]['get'](_0x2f3511);if(!_0x512dba)throw CliErrors[_0x5a30ec(0xca)](_0x5a30ec(0xcd)+_0x1a80ae+_0x5a30ec(0xbc)+(_0x5a30ec(0xf9)+CLI_BIN_NAME+_0x5a30ec(0xf2)));_0xeb6c09[_0x5a30ec(0xbb)]=_0x512dba['id'],_0xeb6c09[_0x5a30ec(0xd8)]=_0x226b00[_0x5a30ec(0xd8)],_0xeb6c09[_0x5a30ec(0xd1)]=_0x226b00[_0x5a30ec(0xd1)];}const _0x2bae9a=await saveBffScript(_0xeb6c09),_0x3cf652=_0x2bae9a['id'],_0x25e558=_0x2bae9a['script']??await getBffScriptInfo(_0x3cf652),_0x3c685e={'hash':_0x4879c2,'remoteId':_0x3cf652,'version':_0x25e558[_0x5a30ec(0xab)]};if(_0x226b00['type']===_0x5a30ec(0xd6)){const _0x34eb9a=_0x226b00[_0x5a30ec(0xe5)],_0x325108=_0x34d07a[_0x5a30ec(0xad)][_0x5a30ec(0xc4)](_0x34eb9a)??_0x284f0a?.['datasetCode']??_0x34eb9a;_0x34d07a[_0x5a30ec(0xad)][_0x5a30ec(0xcb)](_0x34eb9a)?_0x3c685e[_0x5a30ec(0xe5)]=_0x34eb9a:_0x3c685e[_0x5a30ec(0xe5)]=_0x284f0a?.[_0x5a30ec(0xe5)],_0x3c685e[_0x5a30ec(0xb1)]=_0x325108,_0x3c685e['operationType']=_0x226b00[_0x5a30ec(0xd8)],_0x3c685e[_0x5a30ec(0xd1)]=_0x226b00[_0x5a30ec(0xd1)];}_0xb3195[_0x5a30ec(0xd3)][_0x226b00[_0x5a30ec(0xee)]]=_0x3c685e;}function a36_0x2892(){const _0xde4f74=['/api/management/library/scripts/save','Push\x20complete:\x20','112RZJZUt','Runtime\x20script\x20cache\x20cleared.','datasetId','\x22.\x20','scriptsRoot','runtime\x20cache\x20clear\x20failed','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','1620573rHbDbu','2199746QvWjyc','apps','get','update','string','join','description','set','validation','has','lastSync','Cannot\x20resolve\x20dataset\x20for\x20\x22','length','write','map','functionNode','819256SUPmJh','functions','COMMON','message','HOOK','POST','operationType','396236ZzmLiY','status','unchanged','str','push','stringify','bool','Force\x20push\x20ignoring\x20hash\x20protection','Incomplete\x20HOOK\x20path:\x20','parse','filter','lockFilePath','alias','values','filePath','datasetCodeToDataset',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','75ZztJmj','Local\x20function\x20not\x20found:\x20','attempted','apiDir','lockKey','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','create','force','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','\x20skipped,\x20','No\x20local\x20Backend\x20Function\x20scripts\x20found.','code','Push\x20only\x20this\x20script\x20type','\x20uploaded,\x20','7558146OMfWnm','Run\x20`','appCode','\x22\x20not\x20found\x20after\x20ensureLockScope.','cleared','toISOString','would_push','version','some','aliasToDatasetCode','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','1719184agTLvX','name','datasetCode','every','type','remoteId','\x20failed,\x20','420990NtDEmO'];a36_0x2892=function(){return _0xde4f74;};return a36_0x2892();}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x22a889,_0x4f363e,_0x2bea71){const _0x4fe587=a36_0x4faabe;if(_0x2bea71['length']===0x0)return;for(let _0x23ca7c=0x0;_0x23ca7c<LOCK_SETTLE_RETRY_COUNT;_0x23ca7c+=0x1){const _0x184459=await readBffLockFile(_0x22a889),_0x72bdd8=_0x184459?.[_0x4fe587(0xc3)]?.[_0x4f363e]?.[_0x4fe587(0xd3)]??{},_0x1bdf9f=_0x2bea71[_0x4fe587(0xb2)](_0x51f97d=>!!_0x72bdd8[_0x51f97d]?.['remoteId']);if(_0x1bdf9f)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x4fe587(0xae)+_0x2bea71[_0x4fe587(0xc7)](',\x20')+'.');}
1
+ const a37_0x2bf9d5=a37_0x1866;(function(_0x801413,_0x4e9d7f){const _0x2906ef=a37_0x1866,_0x545769=_0x801413();while(!![]){try{const _0xc4bf7b=-parseInt(_0x2906ef(0xe2))/0x1*(parseInt(_0x2906ef(0x101))/0x2)+parseInt(_0x2906ef(0xef))/0x3*(parseInt(_0x2906ef(0xe6))/0x4)+parseInt(_0x2906ef(0xf7))/0x5*(-parseInt(_0x2906ef(0xec))/0x6)+-parseInt(_0x2906ef(0xc4))/0x7+parseInt(_0x2906ef(0xcf))/0x8*(parseInt(_0x2906ef(0xea))/0x9)+-parseInt(_0x2906ef(0xd0))/0xa+parseInt(_0x2906ef(0xcc))/0xb;if(_0xc4bf7b===_0x4e9d7f)break;else _0x545769['push'](_0x545769['shift']());}catch(_0x2d7b37){_0x545769['push'](_0x545769['shift']());}}}(a37_0x2a60,0x6a851));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a37_0x2a60(){const _0x1d7dfc=['HOOK','functions','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','validation','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','datasetId','status','Force\x20push\x20ignoring\x20hash\x20protection','filter','4308hmAHMJ','would_push','bff','script','values','type','Runtime\x20script\x20cache\x20cleared.','toISOString','filePath','lastSync','ENDPOINT','parse','message','\x20skipped,\x20','appCode','Incomplete\x20HOOK\x20path:\x20','force','version','datasetCodeToDataset','attempted','string','lockKey','utf8','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','functionNode','map','1288294chnfKB','No\x20local\x20Backend\x20Function\x20scripts\x20found.','cleared','join','POST','Would\x20inspect\x20','\x20failed,\x20','lockFilePath','10807236OFiWzZ','operationType','write','6008EJpRLa','3823220JvnpTc','length','apiDir','Local\x20function\x20not\x20found:\x20','hash','runtime\x20cache\x20clear\x20failed','remoteId','Lock\x20scope\x20for\x20app\x20\x22','runtime\x20cache\x20not\x20needed','\x20uploaded,\x20','/api/management/library/scripts/save','description','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','COMMON','Push\x20only\x20this\x20script\x20type','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','apps','push','248ojmeEg','unchanged','name','code','4396DuONsP','aliasToDatasetCode','bool','some','2313TBPDdH','alias','2849766VHDwWj','\x22.\x20','get','2283uXPMgL','has','datasetCode','scriptsRoot','runtime\x20cache\x20cleared','boolean','str','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','5Bredfi'];a37_0x2a60=function(){return _0x1d7dfc;};return a37_0x2a60();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;function a37_0x1866(_0x5521b0,_0x1242c6){_0x5521b0=_0x5521b0-0xae;const _0x2a6035=a37_0x2a60();let _0x1866b7=_0x2a6035[_0x5521b0];return _0x1866b7;}export const bffPush={'service':a37_0x2bf9d5(0x103),'command':a37_0x2bf9d5(0xe1),'description':a37_0x2bf9d5(0xf6),'risk':a37_0x2bf9d5(0xce),'flags':[{'name':a37_0x2bf9d5(0xaf),'type':'string','description':a37_0x2bf9d5(0xde),'enum':[a37_0x2bf9d5(0xdd),a37_0x2bf9d5(0xb4),a37_0x2bf9d5(0xf8)]},{'name':'name','type':a37_0x2bf9d5(0xbe),'description':a37_0x2bf9d5(0xdc)},{'name':a37_0x2bf9d5(0xba),'type':a37_0x2bf9d5(0xf4),'description':a37_0x2bf9d5(0xff)}],async 'dryRun'(_0x438b18){const _0x41e79d=a37_0x2bf9d5,_0x1d357b=loadBffProjectConfig(_0x438b18['appCode']),_0x290a16=await readBffLockFile(_0x1d357b[_0x41e79d(0xcb)]),{appLock:_0x35f644}=ensureLockScope(_0x290a16??createEmptyBffLock(),_0x438b18['appCode'],_0x1d357b[_0x41e79d(0xf2)],'push'),_0x4edb58=await getTargetFunctions(_0x1d357b,_0x438b18),_0x30fa7d=_0x438b18[_0x41e79d(0xe8)](_0x41e79d(0xba)),_0x716ae8=[];for(const _0x586b1c of _0x4edb58){const _0x4d1d73=await computeFileHash(_0x586b1c['filePath']),_0x5680f8=_0x35f644[_0x41e79d(0xf9)][_0x586b1c[_0x41e79d(0xbf)]],_0x3dbd09=!!_0x5680f8&&_0x5680f8[_0x41e79d(0xd4)]===_0x4d1d73;_0x716ae8['push']({'lockKey':_0x586b1c[_0x41e79d(0xbf)],'filePath':_0x586b1c['filePath'],'remoteId':_0x5680f8?.[_0x41e79d(0xd6)]??null,'mode':_0x5680f8?.[_0x41e79d(0xd6)]?'update':'create','status':!_0x30fa7d&&_0x3dbd09?'unchanged':_0x41e79d(0x102)});}return{'method':_0x41e79d(0xc8),'url':_0x41e79d(0xda),'body':{'appCode':_0x438b18[_0x41e79d(0xb8)],'force':_0x30fa7d,'files':_0x716ae8,'cacheClearAtRuntime':_0x716ae8[_0x41e79d(0xe9)](_0x486429=>_0x486429[_0x41e79d(0xfe)]===_0x41e79d(0x102)),'cacheClearAtRuntimeTimes':_0x716ae8[_0x41e79d(0xe9)](_0x28cc86=>_0x28cc86[_0x41e79d(0xfe)]===_0x41e79d(0x102))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x41e79d(0xc9)+_0x716ae8['length']+_0x41e79d(0xfa)};},async 'execute'(_0x5d8271){const _0x2c6305=a37_0x2bf9d5,_0x1d7e24=loadBffProjectConfig(_0x5d8271['appCode']),_0x1c6c87=await readBffLockFile(_0x1d7e24[_0x2c6305(0xcb)]),{lockData:_0x2745ed,appLock:_0x2224e3}=ensureLockScope(_0x1c6c87??createEmptyBffLock(),_0x5d8271[_0x2c6305(0xb8)],_0x1d7e24['scriptsRoot'],_0x2c6305(0xe1)),_0x2fab36=await getTargetFunctions(_0x1d7e24,_0x5d8271);if(_0x2fab36[_0x2c6305(0xd1)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x2c6305(0xc5)};const _0x25e99b=_0x5d8271['bool'](_0x2c6305(0xba)),_0x141ecb=JSON[_0x2c6305(0xb5)](JSON['stringify'](_0x2745ed)),_0x307a5a=_0x141ecb[_0x2c6305(0xe0)][_0x5d8271[_0x2c6305(0xb8)]];if(!_0x307a5a)throw new Error(_0x2c6305(0xd7)+_0x5d8271['appCode']+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x540acf=await buildHookMaps(_0x5d8271[_0x2c6305(0xb8)],_0x5d8271[_0x2c6305(0xd2)],_0x2fab36,_0x307a5a),_0x4637c5=[],_0x14d718=[],_0x40b718=[];for(const _0x441d01 of _0x2fab36){const _0x52278d=await computeFileHash(_0x441d01[_0x2c6305(0xb2)]),_0x372b49=_0x307a5a[_0x2c6305(0xf9)][_0x441d01[_0x2c6305(0xbf)]];if(!_0x25e99b&&_0x372b49&&_0x372b49['hash']===_0x52278d){_0x14d718['push']({'lockKey':_0x441d01[_0x2c6305(0xbf)],'reason':_0x2c6305(0xe3)});continue;}try{await uploadSingleFunction(_0x5d8271[_0x2c6305(0xb8)],_0x441d01,_0x307a5a,_0x540acf);const _0x310a10=_0x307a5a[_0x2c6305(0xf9)][_0x441d01[_0x2c6305(0xbf)]];_0x4637c5[_0x2c6305(0xe1)]({'lockKey':_0x441d01[_0x2c6305(0xbf)],'remoteId':_0x310a10?.[_0x2c6305(0xd6)]??0x0});}catch(_0x1ad45b){_0x40b718['push']({'lockKey':_0x441d01[_0x2c6305(0xbf)],'error':_0x1ad45b instanceof Error?_0x1ad45b[_0x2c6305(0xb6)]:String(_0x1ad45b)});}}_0x307a5a[_0x2c6305(0xb3)]=new Date()[_0x2c6305(0xb1)](),await writeBffLockFile(_0x1d7e24[_0x2c6305(0xcb)],_0x141ecb),await waitForUploadedLockEntries(_0x1d7e24[_0x2c6305(0xcb)],_0x5d8271['appCode'],_0x4637c5[_0x2c6305(0xc3)](_0x4fd891=>_0x4fd891[_0x2c6305(0xbf)]));let _0x4b8988={'attempted':![],'cleared':![]};if(_0x4637c5[_0x2c6305(0xd1)]>0x0)try{let _0x4d63cc='';for(let _0x21b201=0x0;_0x21b201<CACHE_CLEAR_ATTEMPTS;_0x21b201+=0x1){_0x4d63cc=await clearBffScriptCache(),_0x21b201<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4b8988={'attempted':!![],'cleared':!![],'message':_0x4d63cc||_0x2c6305(0xb0)};}catch(_0x58f955){_0x4b8988={'attempted':!![],'cleared':![],'error':_0x58f955 instanceof Error?_0x58f955[_0x2c6305(0xb6)]:String(_0x58f955)};}const _0x488a68=_0x40b718[_0x2c6305(0xd1)]===0x0&&(_0x4b8988[_0x2c6305(0xbd)]?_0x4b8988['cleared']:!![]),_0x26e996=_0x4b8988[_0x2c6305(0xbd)]?_0x4b8988[_0x2c6305(0xc6)]?_0x2c6305(0xf3):_0x2c6305(0xd5):_0x2c6305(0xd8);return{'ok':_0x488a68,'data':{'uploaded':_0x4637c5,'skipped':_0x14d718,'failed':_0x40b718,'cacheClear':_0x4b8988},'message':'Push\x20complete:\x20'+_0x4637c5[_0x2c6305(0xd1)]+_0x2c6305(0xd9)+_0x14d718[_0x2c6305(0xd1)]+_0x2c6305(0xb7)+_0x40b718['length']+_0x2c6305(0xca)+_0x26e996};}};async function getTargetFunctions(_0xcb2935,_0x30b744){const _0x467b0a=a37_0x2bf9d5,_0x24853b=_0x30b744[_0x467b0a(0xf5)](_0x467b0a(0xaf)),_0x3c8c34=_0x30b744[_0x467b0a(0xf5)](_0x467b0a(0xe4)),_0x20ecf3=normalizeBffType(_0x24853b)??undefined;if(_0x3c8c34&&!_0x20ecf3)throw CliErrors[_0x467b0a(0xfb)](_0x467b0a(0xfc));const _0x5d5a9e=await scanLocalBffFunctions(_0xcb2935,_0x20ecf3);if(_0x3c8c34){const _0x13ee5c=_0x5d5a9e[_0x467b0a(0x100)](_0x52fa90=>_0x52fa90['name']===_0x3c8c34);if(_0x13ee5c[_0x467b0a(0xd1)]===0x0)throw CliErrors[_0x467b0a(0xfb)](_0x467b0a(0xd3)+_0x20ecf3+'/'+_0x3c8c34);return _0x13ee5c;}return _0x5d5a9e;}async function buildHookMaps(_0x1a9c36,_0x1e4ccd,_0x57e4e7,_0x4cd76c){const _0x4ac34e=a37_0x2bf9d5,_0x12a998=_0x57e4e7[_0x4ac34e(0xe9)](_0x37dbbe=>_0x37dbbe[_0x4ac34e(0xaf)]===_0x4ac34e(0xf8));if(!_0x12a998)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x507c09=loadAliasMap(_0x1e4ccd,undefined,resolveApiFilePath(_0x1e4ccd,_0x1a9c36)),_0x4578c6=new Map(_0x507c09[_0x4ac34e(0xc3)](_0x4a7f45=>[_0x4a7f45[_0x4ac34e(0xeb)],_0x4a7f45[_0x4ac34e(0xf1)]]));for(const _0x3710e0 of Object[_0x4ac34e(0xae)](_0x4cd76c['functions'])){_0x3710e0[_0x4ac34e(0xeb)]&&_0x3710e0[_0x4ac34e(0xf1)]&&!_0x4578c6[_0x4ac34e(0xf0)](_0x3710e0[_0x4ac34e(0xeb)])&&_0x4578c6['set'](_0x3710e0[_0x4ac34e(0xeb)],_0x3710e0['datasetCode']);}const _0x86c5fe=await listDatasets(_0x1a9c36),_0x1debc9=new Map(_0x86c5fe['map'](_0x28d0ee=>[_0x28d0ee[_0x4ac34e(0xe5)],_0x28d0ee]));return{'aliasToDatasetCode':_0x4578c6,'datasetCodeToDataset':_0x1debc9};}async function uploadSingleFunction(_0x1b7359,_0x2c2674,_0x3e020a,_0x58268c){const _0x3779e7=a37_0x2bf9d5,_0x5dc271=await readFile(_0x2c2674[_0x3779e7(0xb2)],_0x3779e7(0xc0)),_0x4737a9=await computeFileHash(_0x2c2674[_0x3779e7(0xb2)]),_0x3699dd=_0x3e020a[_0x3779e7(0xf9)][_0x2c2674[_0x3779e7(0xbf)]];if(_0x3699dd?.[_0x3779e7(0xd6)]&&_0x3699dd[_0x3779e7(0xbb)]==null)throw CliErrors[_0x3779e7(0xfb)](_0x2c2674[_0x3779e7(0xbf)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0xf12a72=extractScriptDescription(_0x5dc271);if(!_0xf12a72&&_0x3699dd?.[_0x3779e7(0xd6)]){const _0x3613a5=await getBffScriptInfo(_0x3699dd[_0x3779e7(0xd6)]);_0xf12a72=_0x3613a5[_0x3779e7(0xdb)]||undefined;}const _0x24f172={'appCode':_0x1b7359,'functionName':_0x2c2674[_0x3779e7(0xe4)],'scriptType':_0x2c2674[_0x3779e7(0xaf)],'scriptContent':_0x5dc271};if(_0x3699dd?.[_0x3779e7(0xd6)])_0x24f172['id']=_0x3699dd[_0x3779e7(0xd6)];if(_0x3699dd?.[_0x3779e7(0xbb)]!=null)_0x24f172['version']=_0x3699dd[_0x3779e7(0xbb)];if(_0xf12a72)_0x24f172[_0x3779e7(0xdb)]=_0xf12a72;if(_0x2c2674[_0x3779e7(0xaf)]===_0x3779e7(0xf8)){const _0x3ef952=_0x2c2674[_0x3779e7(0xeb)];if(!_0x3ef952||!_0x2c2674['operationType']||!_0x2c2674[_0x3779e7(0xc2)])throw CliErrors[_0x3779e7(0xfb)](_0x3779e7(0xb9)+_0x2c2674[_0x3779e7(0xbf)]);const _0x273473=_0x58268c['aliasToDatasetCode'][_0x3779e7(0xee)](_0x3ef952)??_0x3699dd?.[_0x3779e7(0xf1)]??_0x3ef952,_0x6f7937=_0x58268c[_0x3779e7(0xbc)]['get'](_0x273473);if(!_0x6f7937)throw CliErrors[_0x3779e7(0xfb)]('Cannot\x20resolve\x20dataset\x20for\x20\x22'+_0x3ef952+_0x3779e7(0xed)+('Run\x20`'+CLI_BIN_NAME+_0x3779e7(0xdf)));_0x24f172[_0x3779e7(0xfd)]=_0x6f7937['id'],_0x24f172[_0x3779e7(0xcd)]=_0x2c2674[_0x3779e7(0xcd)],_0x24f172[_0x3779e7(0xc2)]=_0x2c2674[_0x3779e7(0xc2)];}const _0xbf3354=await saveBffScript(_0x24f172),_0x55071e=_0xbf3354['id'],_0x3b7516=_0xbf3354[_0x3779e7(0x104)]??await getBffScriptInfo(_0x55071e),_0x4528ab={'hash':_0x4737a9,'remoteId':_0x55071e,'version':_0x3b7516['version']};if(_0x2c2674[_0x3779e7(0xaf)]===_0x3779e7(0xf8)){const _0x475c04=_0x2c2674[_0x3779e7(0xeb)],_0x480013=_0x58268c[_0x3779e7(0xe7)][_0x3779e7(0xee)](_0x475c04)??_0x3699dd?.[_0x3779e7(0xf1)]??_0x475c04;_0x58268c[_0x3779e7(0xe7)][_0x3779e7(0xf0)](_0x475c04)?_0x4528ab[_0x3779e7(0xeb)]=_0x475c04:_0x4528ab['alias']=_0x3699dd?.[_0x3779e7(0xeb)],_0x4528ab[_0x3779e7(0xf1)]=_0x480013,_0x4528ab[_0x3779e7(0xcd)]=_0x2c2674[_0x3779e7(0xcd)],_0x4528ab[_0x3779e7(0xc2)]=_0x2c2674[_0x3779e7(0xc2)];}_0x3e020a[_0x3779e7(0xf9)][_0x2c2674['lockKey']]=_0x4528ab;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x315a3f,_0x5ec3c5,_0x1ba675){const _0x403f53=a37_0x2bf9d5;if(_0x1ba675[_0x403f53(0xd1)]===0x0)return;for(let _0x323dff=0x0;_0x323dff<LOCK_SETTLE_RETRY_COUNT;_0x323dff+=0x1){const _0x4b9fbc=await readBffLockFile(_0x315a3f),_0x3978de=_0x4b9fbc?.[_0x403f53(0xe0)]?.[_0x5ec3c5]?.['functions']??{},_0x1ee7b6=_0x1ba675['every'](_0x5c9526=>!!_0x3978de[_0x5c9526]?.[_0x403f53(0xd6)]);if(_0x1ee7b6)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x403f53(0xc1)+_0x1ba675[_0x403f53(0xc7)](',\x20')+'.');}
@@ -1 +1 @@
1
- const a37_0x1b76e1=a37_0x18c7;(function(_0x434379,_0x19c7b9){const _0x13d600=a37_0x18c7,_0x1c5a2d=_0x434379();while(!![]){try{const _0x2d673a=-parseInt(_0x13d600(0x178))/0x1*(parseInt(_0x13d600(0x179))/0x2)+-parseInt(_0x13d600(0x173))/0x3*(parseInt(_0x13d600(0x15f))/0x4)+parseInt(_0x13d600(0x17b))/0x5*(-parseInt(_0x13d600(0x166))/0x6)+parseInt(_0x13d600(0x16b))/0x7*(-parseInt(_0x13d600(0x15e))/0x8)+parseInt(_0x13d600(0x160))/0x9+parseInt(_0x13d600(0x15c))/0xa*(parseInt(_0x13d600(0x17d))/0xb)+-parseInt(_0x13d600(0x162))/0xc*(-parseInt(_0x13d600(0x16c))/0xd);if(_0x2d673a===_0x19c7b9)break;else _0x1c5a2d['push'](_0x1c5a2d['shift']());}catch(_0x2545fe){_0x1c5a2d['push'](_0x1c5a2d['shift']());}}}(a37_0x3440,0x66513));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a37_0x3440(){const _0x12afa5=['lockKey','263269xGLwsd','2aKGLVI','\x20remote-only','268620ARxlVS','appCode','2236542iLDhyT','status','lockFilePath','boolean','10XatIhd','push','781800dDESTm','36620HsAbpl','6857055kPzccW','bff','156dStgjm','all','functions','\x20unchanged','30HlZAEc','\x20modified,\x20','alias','scriptsRoot','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','14xmfnTp','400933GSnzMx','map','filePath','bool','length','hash','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','72ujsvwN','apiDir','remote','\x20added,\x20'];a37_0x3440=function(){return _0x12afa5;};return a37_0x3440();}function a37_0x18c7(_0x58b459,_0x3a7028){_0x58b459=_0x58b459-0x159;const _0x3440ef=a37_0x3440();let _0x18c755=_0x3440ef[_0x58b459];return _0x18c755;}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.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':a37_0x1b76e1(0x161),'command':'status','description':a37_0x1b76e1(0x16a),'risk':'read','flags':[{'name':'remote','type':a37_0x1b76e1(0x15b),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x1e8b7e){const _0x33cff4=a37_0x1b76e1,_0x520a43=loadBffProjectConfig(_0x1e8b7e[_0x33cff4(0x17c)]),_0x3e5305=await readBffLockFile(_0x520a43[_0x33cff4(0x15a)]),{appLock:_0x4ecc7f}=ensureLockScope(_0x3e5305??createEmptyBffLock(),_0x1e8b7e[_0x33cff4(0x17c)],_0x520a43[_0x33cff4(0x169)],_0x33cff4(0x159)),_0x22201c=await scanLocalBffFunctions(_0x520a43),_0x55e26a=[],_0x58bcba=[],_0x29f30e=[];for(const _0x33e39a of _0x22201c){const _0x14ae46=await computeFileHash(_0x33e39a[_0x33cff4(0x16e)]),_0x2b2970=_0x4ecc7f[_0x33cff4(0x164)][_0x33e39a[_0x33cff4(0x177)]];if(!_0x2b2970)_0x55e26a['push'](_0x33e39a[_0x33cff4(0x177)]);else _0x2b2970[_0x33cff4(0x171)]!==_0x14ae46?_0x58bcba[_0x33cff4(0x15d)](_0x33e39a['lockKey']):_0x29f30e[_0x33cff4(0x15d)](_0x33e39a[_0x33cff4(0x177)]);}const _0x4ea309=[];if(_0x1e8b7e[_0x33cff4(0x16f)](_0x33cff4(0x175))){const _0x55842a=loadAliasMap(_0x1e8b7e[_0x33cff4(0x174)],undefined,resolveApiFilePath(_0x1e8b7e[_0x33cff4(0x174)],_0x1e8b7e[_0x33cff4(0x17c)])),_0x487069=new Map(_0x55842a[_0x33cff4(0x16d)](_0x5e79c3=>[_0x5e79c3['datasetCode'],_0x5e79c3[_0x33cff4(0x168)]])),[_0x326abb,_0x518c93]=await Promise[_0x33cff4(0x163)]([listBffScripts(_0x1e8b7e[_0x33cff4(0x17c)]),getBffScriptStatistics(_0x1e8b7e[_0x33cff4(0x17c)])]),_0x46fb3b=createHookLocationMap(_0x518c93),_0xb57a27=new Set(_0x22201c['map'](_0x581f94=>_0x581f94[_0x33cff4(0x177)]));for(const _0x1716b1 of _0x326abb){const _0x4d3f58=resolveRemoteScriptTarget(_0x520a43,_0x1716b1,_0x46fb3b,_0x4ecc7f['functions'],_0x487069);_0x4d3f58&&!_0xb57a27['has'](_0x4d3f58[_0x33cff4(0x177)])&&_0x4ea309[_0x33cff4(0x15d)](_0x4d3f58['lockKey']);}}const _0x8ee5a5=_0x55e26a['length']===0x0&&_0x58bcba[_0x33cff4(0x170)]===0x0&&_0x4ea309[_0x33cff4(0x170)]===0x0;return{'ok':!![],'data':{'added':_0x55e26a,'modified':_0x58bcba,'unchanged':_0x29f30e,'remoteOnly':_0x4ea309},'message':_0x8ee5a5?_0x33cff4(0x172):_0x55e26a[_0x33cff4(0x170)]+_0x33cff4(0x176)+_0x58bcba['length']+_0x33cff4(0x167)+_0x29f30e[_0x33cff4(0x170)]+_0x33cff4(0x165)+(_0x4ea309[_0x33cff4(0x170)]>0x0?',\x20'+_0x4ea309[_0x33cff4(0x170)]+_0x33cff4(0x17a):'')};}};
1
+ const a38_0x812e44=a38_0x489a;function a38_0x489a(_0xdf9f9e,_0x34cf6d){_0xdf9f9e=_0xdf9f9e-0x174;const _0x429189=a38_0x4291();let _0x489a54=_0x429189[_0xdf9f9e];return _0x489a54;}(function(_0x55b813,_0xcf4bba){const _0x280f95=a38_0x489a,_0x18ebf6=_0x55b813();while(!![]){try{const _0x39f688=parseInt(_0x280f95(0x181))/0x1*(-parseInt(_0x280f95(0x17b))/0x2)+-parseInt(_0x280f95(0x190))/0x3+parseInt(_0x280f95(0x187))/0x4+-parseInt(_0x280f95(0x191))/0x5+parseInt(_0x280f95(0x177))/0x6*(-parseInt(_0x280f95(0x18e))/0x7)+parseInt(_0x280f95(0x182))/0x8*(-parseInt(_0x280f95(0x18b))/0x9)+-parseInt(_0x280f95(0x17d))/0xa*(-parseInt(_0x280f95(0x18d))/0xb);if(_0x39f688===_0xcf4bba)break;else _0x18ebf6['push'](_0x18ebf6['shift']());}catch(_0x3f9123){_0x18ebf6['push'](_0x18ebf6['shift']());}}}(a38_0x4291,0xf3683));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a38_0x4291(){const _0xfb34da=['15129krhRMY','boolean','70648028poAlhN','137081bcsWmF','bff','1041972siwqpp','6876880WhkCxT','map','bool','scriptsRoot','lockFilePath','264QngaIM','has','remote','read','36JRrCbA','\x20remote-only','10FMXXIP','apiDir','lockKey','\x20unchanged','93591prdfhP','5560UVHJtz','length','appCode','functions','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','46928PAQles','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','alias','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file'];a38_0x4291=function(){return _0xfb34da;};return a38_0x4291();}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':a38_0x812e44(0x18f),'command':'status','description':a38_0x812e44(0x18a),'risk':a38_0x812e44(0x17a),'flags':[{'name':a38_0x812e44(0x179),'type':a38_0x812e44(0x18c),'description':a38_0x812e44(0x186)}],async 'execute'(_0xd2d3de){const _0xf7d67c=a38_0x812e44,_0x4e3744=loadBffProjectConfig(_0xd2d3de[_0xf7d67c(0x184)]),_0x4eced7=await readBffLockFile(_0x4e3744[_0xf7d67c(0x176)]),{appLock:_0x9800e9}=ensureLockScope(_0x4eced7??createEmptyBffLock(),_0xd2d3de[_0xf7d67c(0x184)],_0x4e3744[_0xf7d67c(0x175)],'status'),_0x4c5809=await scanLocalBffFunctions(_0x4e3744),_0x18c159=[],_0x5851d3=[],_0x21db64=[];for(const _0x36f9d3 of _0x4c5809){const _0x35dc90=await computeFileHash(_0x36f9d3['filePath']),_0x5b484c=_0x9800e9[_0xf7d67c(0x185)][_0x36f9d3[_0xf7d67c(0x17f)]];if(!_0x5b484c)_0x18c159['push'](_0x36f9d3[_0xf7d67c(0x17f)]);else _0x5b484c['hash']!==_0x35dc90?_0x5851d3['push'](_0x36f9d3['lockKey']):_0x21db64['push'](_0x36f9d3[_0xf7d67c(0x17f)]);}const _0x146115=[];if(_0xd2d3de[_0xf7d67c(0x174)](_0xf7d67c(0x179))){const _0x1f0c40=loadAliasMap(_0xd2d3de[_0xf7d67c(0x17e)],undefined,resolveApiFilePath(_0xd2d3de[_0xf7d67c(0x17e)],_0xd2d3de[_0xf7d67c(0x184)])),_0xd06ac5=new Map(_0x1f0c40[_0xf7d67c(0x192)](_0xec1da7=>[_0xec1da7['datasetCode'],_0xec1da7[_0xf7d67c(0x189)]])),[_0x24f5a6,_0x301ce4]=await Promise['all']([listBffScripts(_0xd2d3de[_0xf7d67c(0x184)]),getBffScriptStatistics(_0xd2d3de['appCode'])]),_0x301e98=createHookLocationMap(_0x301ce4),_0x10ce11=new Set(_0x4c5809['map'](_0x47b99c=>_0x47b99c['lockKey']));for(const _0x377a5a of _0x24f5a6){const _0x45a0fb=resolveRemoteScriptTarget(_0x4e3744,_0x377a5a,_0x301e98,_0x9800e9['functions'],_0xd06ac5);_0x45a0fb&&!_0x10ce11[_0xf7d67c(0x178)](_0x45a0fb[_0xf7d67c(0x17f)])&&_0x146115['push'](_0x45a0fb[_0xf7d67c(0x17f)]);}}const _0xf47cde=_0x18c159[_0xf7d67c(0x183)]===0x0&&_0x5851d3[_0xf7d67c(0x183)]===0x0&&_0x146115[_0xf7d67c(0x183)]===0x0;return{'ok':!![],'data':{'added':_0x18c159,'modified':_0x5851d3,'unchanged':_0x21db64,'remoteOnly':_0x146115},'message':_0xf47cde?_0xf7d67c(0x188):_0x18c159[_0xf7d67c(0x183)]+'\x20added,\x20'+_0x5851d3[_0xf7d67c(0x183)]+'\x20modified,\x20'+_0x21db64[_0xf7d67c(0x183)]+_0xf7d67c(0x180)+(_0x146115[_0xf7d67c(0x183)]>0x0?',\x20'+_0x146115[_0xf7d67c(0x183)]+_0xf7d67c(0x17c):'')};}};
@@ -1 +1 @@
1
- function a38_0x195f(_0x4ff73f,_0x16c5df){_0x4ff73f=_0x4ff73f-0x1f3;const _0x256057=a38_0x2560();let _0x195fa8=_0x256057[_0x4ff73f];return _0x195fa8;}const a38_0x37f79b=a38_0x195f;(function(_0x3c4287,_0x40c2a7){const _0xe651ac=a38_0x195f,_0x4a7f42=_0x3c4287();while(!![]){try{const _0x4bc45f=-parseInt(_0xe651ac(0x218))/0x1+parseInt(_0xe651ac(0x213))/0x2*(-parseInt(_0xe651ac(0x20d))/0x3)+-parseInt(_0xe651ac(0x20e))/0x4*(parseInt(_0xe651ac(0x1f3))/0x5)+-parseInt(_0xe651ac(0x215))/0x6*(parseInt(_0xe651ac(0x214))/0x7)+parseInt(_0xe651ac(0x20a))/0x8*(-parseInt(_0xe651ac(0x208))/0x9)+-parseInt(_0xe651ac(0x207))/0xa*(-parseInt(_0xe651ac(0x1f4))/0xb)+parseInt(_0xe651ac(0x210))/0xc*(parseInt(_0xe651ac(0x20b))/0xd);if(_0x4bc45f===_0x40c2a7)break;else _0x4a7f42['push'](_0x4a7f42['shift']());}catch(_0xf79cb){_0x4a7f42['push'](_0x4a7f42['shift']());}}}(a38_0x2560,0x4b3f3));import{CliErrors}from'../../errors.js';function a38_0x2560(){const _0x56d7f2=['4063110WUAasU','9ewnIZB','code','4801256OWFVhy','351273Zfhjli','\x20at\x20','953283gVupjk','205804ECNhQx','nonInteractive','876OPyVWm','apiError','Built-in\x20Skill\x20install\x20failed\x20[','2tjOPWE','2552221rAwgmx','6mIaikr','\x20via\x20skills@latest','install','273602DWiMWR','error','50nEBMSR','11vYKLXj','log','repairCommand','installedPath','CLI\x20Built-in\x20Skill\x20','info','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','cli-skill-install',']:\x20','skillVersion','setLogPath','unknown','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','\x20installed','cli-skill','changed','read','\x20is\x20already\x20current','cwd'];a38_0x2560=function(){return _0x56d7f2;};return a38_0x2560();}import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a38_0x37f79b(0x202),'command':a38_0x37f79b(0x217),'description':a38_0x37f79b(0x200),'risk':a38_0x37f79b(0x204),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x26d1d1){const _0x9bcaac=a38_0x37f79b;logger[_0x9bcaac(0x1fe)](process[_0x9bcaac(0x206)]()),logger[_0x9bcaac(0x1f9)](_0x9bcaac(0x1fb),'Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.');const _0x1337d5=installBuiltinSkill({'stdio':_0x26d1d1[_0x9bcaac(0x20f)]?'pipe':'inherit'});if(!_0x1337d5['ok'])throw CliErrors[_0x9bcaac(0x211)](_0x9bcaac(0x212)+_0x1337d5[_0x9bcaac(0x209)]+_0x9bcaac(0x1fc)+(_0x1337d5[_0x9bcaac(0x219)]||_0x9bcaac(0x1ff)),_0x9bcaac(0x1fa)+_0x1337d5[_0x9bcaac(0x1f6)]);return console[_0x9bcaac(0x1f5)](_0x1337d5[_0x9bcaac(0x203)]?_0x9bcaac(0x1f8)+_0x1337d5[_0x9bcaac(0x1fd)]+_0x9bcaac(0x201)+(_0x1337d5[_0x9bcaac(0x1f7)]?_0x9bcaac(0x20c)+_0x1337d5[_0x9bcaac(0x1f7)]:_0x9bcaac(0x216)):_0x9bcaac(0x1f8)+_0x1337d5['skillVersion']+_0x9bcaac(0x205)+(_0x1337d5[_0x9bcaac(0x1f7)]?_0x9bcaac(0x20c)+_0x1337d5['installedPath']:'')),{'ok':!![]};}}];
1
+ const a39_0xeb3f0=a39_0x2ffd;function a39_0x2ffd(_0x84a2ee,_0x68ce77){_0x84a2ee=_0x84a2ee-0x97;const _0x4c8eb8=a39_0x4c8e();let _0x2ffd31=_0x4c8eb8[_0x84a2ee];return _0x2ffd31;}function a39_0x4c8e(){const _0x2be748=['error','1069723meMMPg','skillVersion','Built-in\x20Skill\x20install\x20failed\x20[','cwd','1164uMyWmj','inherit','2618150wRKTbm','info','3991552vPcWfq','839037jdeOJg','cli-skill-install','43677BGLDHy','CLI\x20Built-in\x20Skill\x20',']:\x20','\x20at\x20','log','nonInteractive','\x20is\x20already\x20current','install','690bRXxbq','2aRNAZb','changed','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','setLogPath','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','read','code','\x20installed','unknown','2787617mIgSIz','1192jsxWla','\x20via\x20skills@latest','installedPath','apiError','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'];a39_0x4c8e=function(){return _0x2be748;};return a39_0x4c8e();}(function(_0x300e9c,_0x458c93){const _0x4f15ca=a39_0x2ffd,_0x4ddeca=_0x300e9c();while(!![]){try{const _0xd00790=parseInt(_0x4f15ca(0xa8))/0x1+parseInt(_0x4f15ca(0x98))/0x2*(-parseInt(_0x4f15ca(0xb1))/0x3)+-parseInt(_0x4f15ca(0xb0))/0x4+parseInt(_0x4f15ca(0x97))/0x5*(-parseInt(_0x4f15ca(0xac))/0x6)+parseInt(_0x4f15ca(0xa1))/0x7+-parseInt(_0x4f15ca(0xa2))/0x8*(-parseInt(_0x4f15ca(0xb3))/0x9)+-parseInt(_0x4f15ca(0xae))/0xa;if(_0xd00790===_0x458c93)break;else _0x4ddeca['push'](_0x4ddeca['shift']());}catch(_0x1bf865){_0x4ddeca['push'](_0x4ddeca['shift']());}}}(a39_0x4c8e,0x98901));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a39_0xeb3f0(0xba),'description':a39_0xeb3f0(0x9a),'risk':a39_0xeb3f0(0x9d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x13e6ae){const _0x2d8445=a39_0xeb3f0;logger[_0x2d8445(0x9b)](process[_0x2d8445(0xab)]()),logger[_0x2d8445(0xaf)](_0x2d8445(0xb2),_0x2d8445(0x9c));const _0x30a2e9=installBuiltinSkill({'stdio':_0x13e6ae[_0x2d8445(0xb8)]?'pipe':_0x2d8445(0xad)});if(!_0x30a2e9['ok'])throw CliErrors[_0x2d8445(0xa5)](_0x2d8445(0xaa)+_0x30a2e9[_0x2d8445(0x9e)]+_0x2d8445(0xb5)+(_0x30a2e9[_0x2d8445(0xa7)]||_0x2d8445(0xa0)),_0x2d8445(0xa6)+_0x30a2e9['repairCommand']);return console[_0x2d8445(0xb7)](_0x30a2e9[_0x2d8445(0x99)]?_0x2d8445(0xb4)+_0x30a2e9[_0x2d8445(0xa9)]+_0x2d8445(0x9f)+(_0x30a2e9[_0x2d8445(0xa4)]?_0x2d8445(0xb6)+_0x30a2e9[_0x2d8445(0xa4)]:_0x2d8445(0xa3)):_0x2d8445(0xb4)+_0x30a2e9[_0x2d8445(0xa9)]+_0x2d8445(0xb9)+(_0x30a2e9[_0x2d8445(0xa4)]?_0x2d8445(0xb6)+_0x30a2e9[_0x2d8445(0xa4)]:'')),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a39_0x2b92fb=a39_0x1da0;(function(_0x9d2571,_0x1c136a){const _0xd7d043=a39_0x1da0,_0x135e26=_0x9d2571();while(!![]){try{const _0x4bc891=-parseInt(_0xd7d043(0xcd))/0x1*(parseInt(_0xd7d043(0x104))/0x2)+-parseInt(_0xd7d043(0x105))/0x3+parseInt(_0xd7d043(0xf1))/0x4*(-parseInt(_0xd7d043(0x112))/0x5)+parseInt(_0xd7d043(0xcf))/0x6*(parseInt(_0xd7d043(0xef))/0x7)+-parseInt(_0xd7d043(0xea))/0x8+-parseInt(_0xd7d043(0x119))/0x9*(-parseInt(_0xd7d043(0xce))/0xa)+parseInt(_0xd7d043(0xd0))/0xb*(parseInt(_0xd7d043(0xe7))/0xc);if(_0x4bc891===_0x1c136a)break;else _0x135e26['push'](_0x135e26['shift']());}catch(_0x22f967){_0x135e26['push'](_0x135e26['shift']());}}}(a39_0x56bd,0x8a6b5));function a39_0x1da0(_0x273831,_0x44f5bf){_0x273831=_0x273831-0xc4;const _0x56bd36=a39_0x56bd();let _0x1da008=_0x56bd36[_0x273831];return _0x1da008;}import a39_0xa5d30f from'chalk';import a39_0x15bb54 from'ora';import a39_0x5f4367 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 _0xa1d1b4=a39_0x1da0;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xa1d1b4(0x114)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x51a2e9=a39_0x1da0,_0x2bb651=process[_0x51a2e9(0xc7)][_0x51a2e9(0xfa)]();if(_0x2bb651[_0x51a2e9(0xde)]('bun'))return _0x51a2e9(0xc4);return'npm';}const updateFlags=[{'name':a39_0x2b92fb(0x106),'type':a39_0x2b92fb(0xe1),'description':a39_0x2b92fb(0x116),'default':![]},{'name':'version','type':a39_0x2b92fb(0xe3),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x2fc906){const _0x32c2fb=a39_0x2b92fb;return _0x2fc906['str'](_0x32c2fb(0xfd))[_0x32c2fb(0x101)]();}async function validateUpdateFlags(_0x288761){const _0x579a8c=a39_0x2b92fb,_0x45933c=_0x288761['bool'](_0x579a8c(0x106)),_0x91bda7=getRequestedVersion(_0x288761);if(_0x45933c&&_0x91bda7)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x579a8c(0x102));if(_0x91bda7&&!a39_0x5f4367[_0x579a8c(0xc5)](_0x91bda7))throw CliErrors['validation'](_0x579a8c(0xfb)+_0x91bda7,_0x579a8c(0xf2));}async function fetchNpmDistTags(){const _0x51c55c=a39_0x2b92fb;try{const _0x583695=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x51c55c(0xf5),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x583695['ok'])return null;const _0x451d57=await _0x583695[_0x51c55c(0xd1)]();if(!_0x451d57||typeof _0x451d57!==_0x51c55c(0xd9))return null;return Object['fromEntries'](Object['entries'](_0x451d57)[_0x51c55c(0xff)](([,_0x28a595])=>typeof _0x28a595===_0x51c55c(0xe3)&&_0x28a595['trim']()[_0x51c55c(0xcc)]>0x0)[_0x51c55c(0xe0)](([_0x2c7d51,_0x478dd9])=>[_0x2c7d51,String(_0x478dd9)[_0x51c55c(0x101)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x5cef20){const _0x22fe85=await fetchNpmDistTags();return _0x22fe85?.[_0x5cef20]??null;}function a39_0x56bd(){const _0x3467ca=['694669xmVTzk','2426210tphKwE','18594QrGiSv','41899EVGdir','json','warn','Checking\x20CLI\x20Built-in\x20Skill...','Already\x20on\x20requested\x20version\x20(v','yellow','current','Already\x20up\x20to\x20date\x20(v','npm','object','update','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','source','log','includes','Version\x20comparison\x20failed','map','boolean','Updated\x20to\x20v','string',',\x20found\x20','run','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','5604SDhTFq','Update\x20failed','Beta\x20version:\x20','2459808NvZeOc','succeed','\x20cli-skill\x20install','gray','info','1582BJoctL','Requested\x20version:\x20','366516FnkPwk','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','\x20is\x20up\x20to\x20date.','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','/dist-tags','install','fail',',\x20state\x20','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','toLowerCase','Invalid\x20version:\x20','...','version','error','filter','bool','trim','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','2UKfjik','2633403tRFArw','beta','green','code','skillVersion','latest','Current\x20version:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','pipe','message','@latest','\x20→\x20','start','15RZqLRN','expected\x20','slice','state','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20install\x20-g\x20','\x20\x20Try\x20manually:\x20','9LexPxd','read','bun','valid','unknown','execPath','\x20\x20Run\x20manually:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Updating\x20via\x20','Update\x20available:\x20','length'];a39_0x56bd=function(){return _0x3467ca;};return a39_0x56bd();}async function fetchLatestVersion(){const _0x1923b2=a39_0x2b92fb;return fetchNpmDistTagVersion(_0x1923b2(0x10a));}async function resolveTargetVersion(_0x475e7b){const _0x39c85c=a39_0x2b92fb,_0x5471b0=getRequestedVersion(_0x475e7b);if(_0x5471b0)return{'version':_0x5471b0,'source':_0x39c85c(0xfd)};if(_0x475e7b[_0x39c85c(0x100)]('beta')){const _0x33db4a=await fetchNpmDistTagVersion(_0x39c85c(0x106));if(!_0x33db4a)return null;return{'version':_0x33db4a,'source':'beta'};}const _0x5591b3=await fetchLatestVersion();if(!_0x5591b3)return null;return{'version':_0x5591b3,'source':_0x39c85c(0x10a)};}function shouldInstallTarget(_0x241d61,_0x1eb5ab){const _0x1cb7b9=a39_0x2b92fb;if(_0x1eb5ab[_0x1cb7b9(0xdc)]==='version'||_0x1eb5ab[_0x1cb7b9(0xdc)]===_0x1cb7b9(0x106))return!a39_0x5f4367['eq'](_0x241d61,_0x1eb5ab[_0x1cb7b9(0xfd)]);return a39_0x5f4367['lt'](_0x241d61,_0x1eb5ab[_0x1cb7b9(0xfd)]);}function getInstallPlanLabel(_0x5810b4,_0x1ef68a){const _0x18aacb=a39_0x2b92fb;switch(_0x1ef68a['source']){case _0x18aacb(0x106):return _0x18aacb(0xe9)+a39_0xa5d30f['yellow'](_0x5810b4)+_0x18aacb(0x110)+a39_0xa5d30f[_0x18aacb(0x107)](_0x1ef68a[_0x18aacb(0xfd)]);case _0x18aacb(0xfd):return _0x18aacb(0xf0)+a39_0xa5d30f[_0x18aacb(0xd5)](_0x5810b4)+'\x20→\x20'+a39_0xa5d30f[_0x18aacb(0x107)](_0x1ef68a[_0x18aacb(0xfd)]);case _0x18aacb(0x10a):default:return _0x18aacb(0xcb)+a39_0xa5d30f[_0x18aacb(0xd5)](_0x5810b4)+_0x18aacb(0x110)+a39_0xa5d30f['green'](_0x1ef68a[_0x18aacb(0xfd)]);}}function repairCurrentBuiltinSkill(){const _0x39b46d=a39_0x2b92fb;console[_0x39b46d(0xdd)](a39_0xa5d30f[_0x39b46d(0xed)](_0x39b46d(0xd3)));const _0x57def1=installBuiltinSkill();if(_0x57def1['ok'])return console['log'](a39_0xa5d30f['gray'](_0x39b46d(0x10c)+_0x57def1['skillVersion']+_0x39b46d(0xf3))),!![];return console[_0x39b46d(0xd2)](a39_0xa5d30f['yellow'](_0x39b46d(0xf4)+_0x57def1[_0x39b46d(0x108)]+']:\x20'+(_0x57def1['error']||_0x39b46d(0xc6)))),console['log'](a39_0xa5d30f[_0x39b46d(0xed)](_0x39b46d(0xc8)+CLI_BIN_NAME+_0x39b46d(0xec))),![];}function verifyUpdatedBuiltinSkill(_0x59f78e){const _0x4adedf=a39_0x2b92fb,_0x3f0eaa=inspectInstalledBuiltinSkillVersion(_0x59f78e);if(_0x3f0eaa[_0x4adedf(0x115)]===_0x4adedf(0xd6))return console[_0x4adedf(0xdd)](a39_0xa5d30f[_0x4adedf(0xed)](_0x4adedf(0x10c)+_0x59f78e+_0x4adedf(0xf3))),!![];const _0x5ee74a=_0x3f0eaa[_0x4adedf(0x109)]?_0x4adedf(0x113)+_0x59f78e+_0x4adedf(0xe4)+_0x3f0eaa[_0x4adedf(0x109)]:_0x4adedf(0x113)+_0x59f78e+_0x4adedf(0xf8)+_0x3f0eaa['state'];return console[_0x4adedf(0xd2)](a39_0xa5d30f[_0x4adedf(0xd5)](_0x4adedf(0xf9)+_0x5ee74a)),console['log'](a39_0xa5d30f[_0x4adedf(0xed)](_0x4adedf(0xc8)+_0x3f0eaa['repairCommand'])),![];}async function execute(_0x5635cf){const _0x3c3881=a39_0x2b92fb;await validateUpdateFlags(_0x5635cf);const _0x52dca1=getCurrentVersion();console[_0x3c3881(0xdd)](_0x3c3881(0x10b)+_0x52dca1);const _0x588fe4=a39_0x15bb54('Checking\x20for\x20updates...')['start'](),_0x2ef321=await resolveTargetVersion(_0x5635cf);if(!_0x2ef321){const _0x17e08e=_0x5635cf['bool'](_0x3c3881(0x106))?_0x3c3881(0x103):_0x3c3881(0xdb);return _0x588fe4[_0x3c3881(0xf7)](_0x17e08e),console[_0x3c3881(0xdd)](a39_0xa5d30f[_0x3c3881(0xed)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x3c3881(0x10f))),{'ok':![],'message':_0x17e08e};}const _0x1e9667=a39_0x5f4367[_0x3c3881(0xc5)](VERSION),_0x2a6dc4=a39_0x5f4367[_0x3c3881(0xc5)](_0x2ef321['version']);if(!_0x1e9667||!_0x2a6dc4)return _0x588fe4['fail']('Version\x20comparison\x20failed'),{'ok':![],'message':_0x3c3881(0xdf)};if(!shouldInstallTarget(_0x1e9667,_0x2ef321)){const _0x5873c9=_0x2ef321['source']==='version'?_0x3c3881(0xd4)+_0x2ef321[_0x3c3881(0xfd)]+')':_0x3c3881(0xd7)+_0x2ef321[_0x3c3881(0xfd)]+')';return _0x588fe4[_0x3c3881(0xeb)](_0x5873c9),{'ok':repairCurrentBuiltinSkill()};}_0x588fe4[_0x3c3881(0xee)](getInstallPlanLabel(_0x52dca1,_0x2ef321));const _0x2a424b=detectPackageManager(),_0x565a0c=_0x2a424b===_0x3c3881(0xd8)?resolveNpmBin('npm'):_0x2a424b,_0x5e49a3=a39_0x15bb54(_0x3c3881(0xca)+_0x2a424b+_0x3c3881(0xfc))[_0x3c3881(0x111)]();try{return await execa(_0x565a0c,[_0x3c3881(0xf6),'-g',NPM_PACKAGE_NAME+'@'+_0x2ef321[_0x3c3881(0xfd)]],{'stdio':_0x3c3881(0x10d)}),_0x5e49a3[_0x3c3881(0xeb)](_0x3c3881(0xe2)+_0x2ef321[_0x3c3881(0xfd)]),console[_0x3c3881(0xdd)](a39_0xa5d30f[_0x3c3881(0xed)](_0x3c3881(0xe6))),{'ok':verifyUpdatedBuiltinSkill(_0x2ef321[_0x3c3881(0xfd)])};}catch(_0x4cd413){return _0x5e49a3[_0x3c3881(0xf7)](_0x3c3881(0xe8)),console[_0x3c3881(0xfe)](a39_0xa5d30f['red']('\x20\x20'+_0x4cd413['message'])),console[_0x3c3881(0xdd)](a39_0xa5d30f[_0x3c3881(0xed)](_0x3c3881(0x118)+_0x2a424b+_0x3c3881(0x117)+NPM_PACKAGE_NAME+'@'+_0x2ef321[_0x3c3881(0xfd)])),{'ok':![],'message':_0x4cd413[_0x3c3881(0x10e)]};}}export const updateDefinition={'service':a39_0x2b92fb(0xda),'command':a39_0x2b92fb(0xe5),'description':a39_0x2b92fb(0xc9),'risk':a39_0x2b92fb(0x11a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a40_0x44b987=a40_0x43dc;(function(_0x305508,_0x103cfe){const _0x3035a0=a40_0x43dc,_0x2e0fc5=_0x305508();while(!![]){try{const _0x163a20=-parseInt(_0x3035a0(0x83))/0x1*(parseInt(_0x3035a0(0x79))/0x2)+parseInt(_0x3035a0(0xa4))/0x3*(-parseInt(_0x3035a0(0x7d))/0x4)+parseInt(_0x3035a0(0xc1))/0x5+parseInt(_0x3035a0(0x87))/0x6+parseInt(_0x3035a0(0x94))/0x7+-parseInt(_0x3035a0(0xb8))/0x8+parseInt(_0x3035a0(0xb4))/0x9*(-parseInt(_0x3035a0(0xa8))/0xa);if(_0x163a20===_0x103cfe)break;else _0x2e0fc5['push'](_0x2e0fc5['shift']());}catch(_0x4dbe38){_0x2e0fc5['push'](_0x2e0fc5['shift']());}}}(a40_0x4f5e,0x64953));import a40_0x92a8d1 from'chalk';import a40_0x49106c from'ora';import a40_0xd533f6 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 _0x14721b=a40_0x43dc;return GIT_COMMIT!==_0x14721b(0xae)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x14721b(0xa6)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x4b482d=a40_0x43dc,_0x375248=process['execPath']['toLowerCase']();if(_0x375248[_0x4b482d(0x91)](_0x4b482d(0x9d)))return _0x4b482d(0x9d);return _0x4b482d(0x85);}const updateFlags=[{'name':a40_0x44b987(0xb7),'type':a40_0x44b987(0x97),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a40_0x44b987(0x80),'type':a40_0x44b987(0xbb),'description':a40_0x44b987(0xa3)}];function getRequestedVersion(_0x4a3d20){const _0x6cad9b=a40_0x44b987;return _0x4a3d20['str'](_0x6cad9b(0x80))['trim']();}async function validateUpdateFlags(_0x455c65){const _0x487303=a40_0x44b987,_0x331d9=_0x455c65[_0x487303(0x9c)](_0x487303(0xb7)),_0x4d716a=getRequestedVersion(_0x455c65);if(_0x331d9&&_0x4d716a)throw CliErrors['validation'](_0x487303(0x8b),_0x487303(0x8c));if(_0x4d716a&&!a40_0xd533f6['valid'](_0x4d716a))throw CliErrors[_0x487303(0xbd)](_0x487303(0xbc)+_0x4d716a,_0x487303(0xc2));}async function fetchNpmDistTags(){const _0x4d64d0=a40_0x44b987;try{const _0x4a4bee=await fetch(_0x4d64d0(0xb3)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x4d64d0(0x8f),{'signal':AbortSignal[_0x4d64d0(0xbe)](0x2710)});if(!_0x4a4bee['ok'])return null;const _0x573801=await _0x4a4bee['json']();if(!_0x573801||typeof _0x573801!==_0x4d64d0(0x95))return null;return Object[_0x4d64d0(0x75)](Object[_0x4d64d0(0xb6)](_0x573801)[_0x4d64d0(0xc0)](([,_0x448b72])=>typeof _0x448b72==='string'&&_0x448b72[_0x4d64d0(0xac)]()[_0x4d64d0(0xba)]>0x0)[_0x4d64d0(0x82)](([_0x552e87,_0x1e68a4])=>[_0x552e87,String(_0x1e68a4)[_0x4d64d0(0xac)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0xf46972){const _0x14d116=await fetchNpmDistTags();return _0x14d116?.[_0xf46972]??null;}async function fetchLatestVersion(){const _0x44cbba=a40_0x44b987;return fetchNpmDistTagVersion(_0x44cbba(0x7b));}async function resolveTargetVersion(_0x32bfed){const _0xf73fd8=a40_0x44b987,_0x33bb78=getRequestedVersion(_0x32bfed);if(_0x33bb78)return{'version':_0x33bb78,'source':_0xf73fd8(0x80)};if(_0x32bfed['bool'](_0xf73fd8(0xb7))){const _0x5bf582=await fetchNpmDistTagVersion(_0xf73fd8(0xb7));if(!_0x5bf582)return null;return{'version':_0x5bf582,'source':'beta'};}const _0x3714ac=await fetchLatestVersion();if(!_0x3714ac)return null;return{'version':_0x3714ac,'source':_0xf73fd8(0x7b)};}function shouldInstallTarget(_0x4ba377,_0x1e1265){const _0x370818=a40_0x44b987;if(_0x1e1265[_0x370818(0x89)]===_0x370818(0x80)||_0x1e1265[_0x370818(0x89)]===_0x370818(0xb7))return!a40_0xd533f6['eq'](_0x4ba377,_0x1e1265[_0x370818(0x80)]);return a40_0xd533f6['lt'](_0x4ba377,_0x1e1265[_0x370818(0x80)]);}function a40_0x4f5e(){const _0x1418b5=['Checking\x20for\x20updates...','Current\x20version:\x20','\x20\x20CLI\x20Built-in\x20Skill\x20','read','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Install\x20a\x20specific\x20CLI\x20version','652719cuHHhf','valid','slice','expected\x20','20530bYmRvL','skillVersion','\x20\x20Try\x20manually:\x20','Update\x20available:\x20','trim','Checking\x20CLI\x20Built-in\x20Skill...','unknown','fail','\x20is\x20newer\x20than\x20npm\x20latest\x20v','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','code','https://registry.npmjs.org/-/package/','2043luUHVF','warn','entries','beta','1370608WspdJK','\x20cli-skill\x20install','length','string','Invalid\x20version:\x20','validation','timeout','install','filter','3309755zAbElU','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.',',\x20state\x20','error','succeed','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','green','fromEntries','start','update','\x20→\x20','134990rcuJwb','\x20install\x20-g\x20','latest','Beta\x20version:\x20','4GkDGzL','log','red','version','yellow','map','7YWMdZz','current','npm','message','3311616BPbRVc','Updating\x20via\x20','source','\x20is\x20up\x20to\x20date.','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Update\x20failed',']:\x20','/dist-tags','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','includes','Already\x20on\x20requested\x20version\x20(v','\x20\x20Run\x20manually:\x20','3678465VpQHFh','object','Version\x20comparison\x20failed','boolean','Updated\x20to\x20v','gray','pipe','@latest','bool','bun'];a40_0x4f5e=function(){return _0x1418b5;};return a40_0x4f5e();}function getInstallPlanLabel(_0x4c4c06,_0x474997){const _0x304515=a40_0x44b987;switch(_0x474997[_0x304515(0x89)]){case _0x304515(0xb7):return _0x304515(0x7c)+a40_0x92a8d1[_0x304515(0x81)](_0x4c4c06)+'\x20→\x20'+a40_0x92a8d1[_0x304515(0x74)](_0x474997[_0x304515(0x80)]);case'version':return'Requested\x20version:\x20'+a40_0x92a8d1[_0x304515(0x81)](_0x4c4c06)+_0x304515(0x78)+a40_0x92a8d1[_0x304515(0x74)](_0x474997[_0x304515(0x80)]);case _0x304515(0x7b):default:return _0x304515(0xab)+a40_0x92a8d1[_0x304515(0x81)](_0x4c4c06)+'\x20→\x20'+a40_0x92a8d1[_0x304515(0x74)](_0x474997[_0x304515(0x80)]);}}function repairCurrentBuiltinSkill(){const _0x2e6ec7=a40_0x44b987;console[_0x2e6ec7(0x7e)](a40_0x92a8d1[_0x2e6ec7(0x99)](_0x2e6ec7(0xad)));const _0x3f6a9c=installBuiltinSkill();if(_0x3f6a9c['ok'])return console[_0x2e6ec7(0x7e)](a40_0x92a8d1[_0x2e6ec7(0x99)](_0x2e6ec7(0xa0)+_0x3f6a9c[_0x2e6ec7(0xa9)]+'\x20is\x20up\x20to\x20date.')),!![];return console[_0x2e6ec7(0xb5)](a40_0x92a8d1[_0x2e6ec7(0x81)](_0x2e6ec7(0x90)+_0x3f6a9c[_0x2e6ec7(0xb2)]+_0x2e6ec7(0x8e)+(_0x3f6a9c[_0x2e6ec7(0xc4)]||_0x2e6ec7(0xae)))),console[_0x2e6ec7(0x7e)](a40_0x92a8d1['gray'](_0x2e6ec7(0x93)+CLI_BIN_NAME+_0x2e6ec7(0xb9))),![];}function verifyUpdatedBuiltinSkill(_0x7a65eb){const _0x479d41=a40_0x44b987,_0xfe77c6=inspectInstalledBuiltinSkillVersion(_0x7a65eb);if(_0xfe77c6['state']===_0x479d41(0x84))return console[_0x479d41(0x7e)](a40_0x92a8d1[_0x479d41(0x99)](_0x479d41(0xa0)+_0x7a65eb+_0x479d41(0x8a))),!![];const _0x315b00=_0xfe77c6[_0x479d41(0xa9)]?_0x479d41(0xa7)+_0x7a65eb+',\x20found\x20'+_0xfe77c6['skillVersion']:_0x479d41(0xa7)+_0x7a65eb+_0x479d41(0xc3)+_0xfe77c6['state'];return console['warn'](a40_0x92a8d1[_0x479d41(0x81)](_0x479d41(0xc6)+_0x315b00)),console['log'](a40_0x92a8d1[_0x479d41(0x99)](_0x479d41(0x93)+_0xfe77c6['repairCommand'])),![];}function a40_0x43dc(_0x2def37,_0x24424d){_0x2def37=_0x2def37-0x74;const _0x4f5ef7=a40_0x4f5e();let _0x43dcd0=_0x4f5ef7[_0x2def37];return _0x43dcd0;}async function execute(_0x275105){const _0x42e373=a40_0x44b987;await validateUpdateFlags(_0x275105);const _0x368801=getCurrentVersion();console[_0x42e373(0x7e)](_0x42e373(0x9f)+_0x368801);const _0x576a6c=a40_0x49106c(_0x42e373(0x9e))[_0x42e373(0x76)](),_0x13f059=await resolveTargetVersion(_0x275105);if(!_0x13f059){const _0x21762a=_0x275105['bool'](_0x42e373(0xb7))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x42e373(0xa2);return _0x576a6c[_0x42e373(0xaf)](_0x21762a),console[_0x42e373(0x7e)](a40_0x92a8d1[_0x42e373(0x99)](_0x42e373(0xb1)+NPM_PACKAGE_NAME+_0x42e373(0x9b))),{'ok':![],'message':_0x21762a};}const _0x44849f=a40_0xd533f6[_0x42e373(0xa5)](VERSION),_0x6621bf=a40_0xd533f6[_0x42e373(0xa5)](_0x13f059[_0x42e373(0x80)]);if(!_0x44849f||!_0x6621bf)return _0x576a6c[_0x42e373(0xaf)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x42e373(0x96)};if(!shouldInstallTarget(_0x44849f,_0x13f059)){const _0x30c29d=_0x13f059[_0x42e373(0x89)]===_0x42e373(0x80)?_0x42e373(0x92)+_0x13f059['version']+')':a40_0xd533f6['gt'](_0x44849f,_0x6621bf)?'Current\x20version\x20v'+_0x368801+_0x42e373(0xb0)+_0x13f059['version']:'Already\x20up\x20to\x20date\x20(v'+_0x13f059[_0x42e373(0x80)]+')';return _0x576a6c[_0x42e373(0xc5)](_0x30c29d),{'ok':repairCurrentBuiltinSkill()};}_0x576a6c['info'](getInstallPlanLabel(_0x368801,_0x13f059));const _0x423e94=detectPackageManager(),_0x496714=_0x423e94==='npm'?resolveNpmBin(_0x42e373(0x85)):_0x423e94,_0x5b510b=a40_0x49106c(_0x42e373(0x88)+_0x423e94+'...')[_0x42e373(0x76)]();try{return await execa(_0x496714,[_0x42e373(0xbf),'-g',NPM_PACKAGE_NAME+'@'+_0x13f059[_0x42e373(0x80)]],{'stdio':_0x42e373(0x9a)}),_0x5b510b['succeed'](_0x42e373(0x98)+_0x13f059[_0x42e373(0x80)]),console[_0x42e373(0x7e)](a40_0x92a8d1[_0x42e373(0x99)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':verifyUpdatedBuiltinSkill(_0x13f059[_0x42e373(0x80)])};}catch(_0x47bf3c){return _0x5b510b[_0x42e373(0xaf)](_0x42e373(0x8d)),console[_0x42e373(0xc4)](a40_0x92a8d1[_0x42e373(0x7f)]('\x20\x20'+_0x47bf3c['message'])),console[_0x42e373(0x7e)](a40_0x92a8d1[_0x42e373(0x99)](_0x42e373(0xaa)+_0x423e94+_0x42e373(0x7a)+NPM_PACKAGE_NAME+'@'+_0x13f059[_0x42e373(0x80)])),{'ok':![],'message':_0x47bf3c[_0x42e373(0x86)]};}}export const updateDefinition={'service':a40_0x44b987(0x77),'command':'run','description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a40_0x44b987(0xa1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x45d6bb,_0xf6c73){const _0x39a494=a40_0x3d5b,_0x448f4a=_0x45d6bb();while(!![]){try{const _0x2bd92d=parseInt(_0x39a494(0xb9))/0x1*(parseInt(_0x39a494(0xbd))/0x2)+-parseInt(_0x39a494(0xbe))/0x3+-parseInt(_0x39a494(0xb7))/0x4+-parseInt(_0x39a494(0xbb))/0x5+-parseInt(_0x39a494(0xba))/0x6+-parseInt(_0x39a494(0xbc))/0x7+parseInt(_0x39a494(0xb8))/0x8;if(_0x2bd92d===_0xf6c73)break;else _0x448f4a['push'](_0x448f4a['shift']());}catch(_0x5b1345){_0x448f4a['push'](_0x448f4a['shift']());}}}(a40_0x422d,0xa9e89));function a40_0x422d(){const _0x2bf92b=['368631wxWERQ','4938436qtwHoN','26289712Xhfgqp','33855lydULf','6767004aZKFrb','4708970CgmlJf','1014650amqLcT','58cLcGvX'];a40_0x422d=function(){return _0x2bf92b;};return a40_0x422d();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a40_0x3d5b(_0x3bf01a,_0xab4564){_0x3bf01a=_0x3bf01a-0xb7;const _0x422d87=a40_0x422d();let _0x3d5bfc=_0x422d87[_0x3bf01a];return _0x3d5bfc;}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x21c5c6,_0x2c16ed){const _0x127b76=a41_0x5962,_0x3ba5c8=_0x21c5c6();while(!![]){try{const _0x16c7c1=-parseInt(_0x127b76(0x18a))/0x1*(parseInt(_0x127b76(0x18c))/0x2)+parseInt(_0x127b76(0x189))/0x3+-parseInt(_0x127b76(0x190))/0x4+parseInt(_0x127b76(0x18f))/0x5*(parseInt(_0x127b76(0x18e))/0x6)+-parseInt(_0x127b76(0x18b))/0x7+parseInt(_0x127b76(0x191))/0x8+parseInt(_0x127b76(0x188))/0x9*(-parseInt(_0x127b76(0x18d))/0xa);if(_0x16c7c1===_0x2c16ed)break;else _0x3ba5c8['push'](_0x3ba5c8['shift']());}catch(_0x3db9f7){_0x3ba5c8['push'](_0x3ba5c8['shift']());}}}(a41_0x41b4,0xea4ef));function a41_0x5962(_0x1f774d,_0x16f49e){_0x1f774d=_0x1f774d-0x188;const _0x41b45a=a41_0x41b4();let _0x596221=_0x41b45a[_0x1f774d];return _0x596221;}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a41_0x41b4(){const _0x57ef3a=['1742332LxEdYk','10658048yhuJBA','43479qvzDJe','5744001NxSZHV','4702xiWopA','12431321jQWLzS','20UoHhhq','3730tiYztY','18aChNqt','2955455rLGwJy'];a41_0x41b4=function(){return _0x57ef3a;};return a41_0x41b4();}
@@ -1 +1 @@
1
- const a41_0x35c1f4=a41_0x153b;(function(_0x1bb4b8,_0x62c82f){const _0x1dc823=a41_0x153b,_0xbded10=_0x1bb4b8();while(!![]){try{const _0x4cc104=-parseInt(_0x1dc823(0x157))/0x1+parseInt(_0x1dc823(0x15e))/0x2+-parseInt(_0x1dc823(0x158))/0x3+-parseInt(_0x1dc823(0x160))/0x4*(-parseInt(_0x1dc823(0x155))/0x5)+-parseInt(_0x1dc823(0x15d))/0x6+parseInt(_0x1dc823(0x15b))/0x7*(parseInt(_0x1dc823(0x163))/0x8)+-parseInt(_0x1dc823(0x152))/0x9*(-parseInt(_0x1dc823(0x156))/0xa);if(_0x4cc104===_0x62c82f)break;else _0xbded10['push'](_0xbded10['shift']());}catch(_0x34a613){_0xbded10['push'](_0xbded10['shift']());}}}(a41_0x34d6,0x3530c));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a41_0x153b(_0x19d6f0,_0x25c473){_0x19d6f0=_0x19d6f0-0x151;const _0x34d690=a41_0x34d6();let _0x153b4a=_0x34d690[_0x19d6f0];return _0x153b4a;}function a41_0x34d6(){const _0x3a12ac=['70LmbNAZ','320312OMPMCi','257301Qpmiix','sdk','name','2493778auiXdj','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','1812042IGnbwZ','185950yVBqrE','string','61928hkuLEg','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Omit\x20import\x20statements\x20from\x20generated\x20code','8gpeWqX','code','alias','read','str','95391nItYqt','operation','appCode','130jIVBOR'];a41_0x34d6=function(){return _0x3a12ac;};return a41_0x34d6();}export const codegenSdk={'service':'codegen','command':a41_0x35c1f4(0x159),'description':a41_0x35c1f4(0x15c),'risk':a41_0x35c1f4(0x166),'flags':[CODE_FLAG_OPTIONAL,{'name':a41_0x35c1f4(0x165),'type':a41_0x35c1f4(0x15f),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a41_0x35c1f4(0x153),'type':a41_0x35c1f4(0x15f),'required':!![],'description':a41_0x35c1f4(0x161)},{'name':'skip-imports','type':'boolean','description':a41_0x35c1f4(0x162)}],async 'execute'(_0xcb23dc){const _0xb88910=a41_0x35c1f4,{dataset:_0x4a00f8,operation:_0x345311}=await getOperationDetail(_0xcb23dc[_0xb88910(0x154)],_0xcb23dc[_0xb88910(0x151)](_0xb88910(0x164)),_0xcb23dc[_0xb88910(0x151)]('operation')),_0x4554d5=generateSdkCode(_0x4a00f8,_0x345311,{'includeImports':!_0xcb23dc['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x4a00f8[_0xb88910(0x15a)],'code':_0x4a00f8['code'],'tableName':_0x4a00f8['tableName']},'operation':_0xcb23dc[_0xb88910(0x151)](_0xb88910(0x153)),'code':_0x4554d5}};}};
1
+ function a42_0x2356(_0x20659c,_0x50bca8){_0x20659c=_0x20659c-0x1ee;const _0x29777a=a42_0x2977();let _0x2356c5=_0x29777a[_0x20659c];return _0x2356c5;}const a42_0x14db3d=a42_0x2356;(function(_0x2741ec,_0x59032e){const _0x34319e=a42_0x2356,_0x2f728e=_0x2741ec();while(!![]){try{const _0x397610=parseInt(_0x34319e(0x1f6))/0x1*(parseInt(_0x34319e(0x1f0))/0x2)+parseInt(_0x34319e(0x1f8))/0x3*(parseInt(_0x34319e(0x1fb))/0x4)+-parseInt(_0x34319e(0x1fc))/0x5*(-parseInt(_0x34319e(0x1f1))/0x6)+-parseInt(_0x34319e(0x203))/0x7*(parseInt(_0x34319e(0x209))/0x8)+parseInt(_0x34319e(0x1ef))/0x9*(parseInt(_0x34319e(0x1f7))/0xa)+parseInt(_0x34319e(0x1ff))/0xb+-parseInt(_0x34319e(0x200))/0xc;if(_0x397610===_0x59032e)break;else _0x2f728e['push'](_0x2f728e['shift']());}catch(_0x19a44a){_0x2f728e['push'](_0x2f728e['shift']());}}}(a42_0x2977,0x497fe));function a42_0x2977(){const _0x2d97ce=['562243faCWzu','1516380cVwocA','codegen','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','14VONpxZ','read','alias','operation','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','sdk','1861616lwZZsT','appCode','bool','54RXINcI','414gBEnVQ','4404DGEAKd','tableName','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','Omit\x20import\x20statements\x20from\x20generated\x20code','name','773KpAOlH','78990ypSKli','10473wRoUbK','boolean','skip-imports','604rgrHpM','730EiQzUj','code','str'];a42_0x2977=function(){return _0x2d97ce;};return a42_0x2977();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a42_0x14db3d(0x201),'command':a42_0x14db3d(0x208),'description':a42_0x14db3d(0x1f3),'risk':a42_0x14db3d(0x204),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0x14db3d(0x205),'type':'string','description':a42_0x14db3d(0x202)},{'name':a42_0x14db3d(0x206),'type':'string','required':!![],'description':a42_0x14db3d(0x207)},{'name':a42_0x14db3d(0x1fa),'type':a42_0x14db3d(0x1f9),'description':a42_0x14db3d(0x1f4)}],async 'execute'(_0x4d44cd){const _0x268dac=a42_0x14db3d,{dataset:_0x494bd1,operation:_0x64a83b}=await getOperationDetail(_0x4d44cd[_0x268dac(0x20a)],_0x4d44cd[_0x268dac(0x1fe)](_0x268dac(0x1fd)),_0x4d44cd['str']('operation')),_0x469962=generateSdkCode(_0x494bd1,_0x64a83b,{'includeImports':!_0x4d44cd[_0x268dac(0x1ee)](_0x268dac(0x1fa))});return{'ok':!![],'data':{'dataset':{'name':_0x494bd1[_0x268dac(0x1f5)],'code':_0x494bd1[_0x268dac(0x1fd)],'tableName':_0x494bd1[_0x268dac(0x1f2)]},'operation':_0x4d44cd['str'](_0x268dac(0x206)),'code':_0x469962}};}};
@@ -1 +1 @@
1
- const a42_0x285043=a42_0x5409;function a42_0x5409(_0x3be252,_0x2a34e7){_0x3be252=_0x3be252-0x140;const _0x10b7c7=a42_0x10b7();let _0x54091f=_0x10b7c7[_0x3be252];return _0x54091f;}(function(_0x39aa58,_0x1102bb){const _0x5a8f58=a42_0x5409,_0x382614=_0x39aa58();while(!![]){try{const _0x4ed77e=-parseInt(_0x5a8f58(0x154))/0x1+parseInt(_0x5a8f58(0x14d))/0x2+-parseInt(_0x5a8f58(0x158))/0x3*(-parseInt(_0x5a8f58(0x14e))/0x4)+-parseInt(_0x5a8f58(0x14a))/0x5+parseInt(_0x5a8f58(0x153))/0x6*(parseInt(_0x5a8f58(0x150))/0x7)+-parseInt(_0x5a8f58(0x14f))/0x8*(-parseInt(_0x5a8f58(0x146))/0x9)+-parseInt(_0x5a8f58(0x140))/0xa;if(_0x4ed77e===_0x1102bb)break;else _0x382614['push'](_0x382614['shift']());}catch(_0x50c204){_0x382614['push'](_0x382614['shift']());}}}(a42_0x10b7,0x65dde));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a42_0x10b7(){const _0x5d0f7e=['Code\x20target:\x20sdk\x20(default)\x20or\x20bff','boolean','sql','bff','read','90jEBrrQ','target','no-imports','sqlCode','710770rryLKM','codegen','str','611456RvtGoL','1923676zBYGMS','550232aCvyEB','602hSpmCN','sqlName','sdk','19554DSmzmL','439165wLixrp','sqlcode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','bool','3ILhBKV','7561460kmazsd'];a42_0x10b7=function(){return _0x5d0f7e;};return a42_0x10b7();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a42_0x285043(0x14b),'command':a42_0x285043(0x143),'description':a42_0x285043(0x156),'risk':a42_0x285043(0x145),'flags':[SQLCODE_FLAG,{'name':'target','type':'string','description':a42_0x285043(0x141),'default':a42_0x285043(0x152),'enum':['sdk',a42_0x285043(0x144)]},{'name':a42_0x285043(0x148),'type':a42_0x285043(0x142),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x2a3473){const _0x1148a4=a42_0x285043,_0xc4563a=await getSqlQueryInfo(_0x2a3473['appCode'],_0x2a3473[_0x1148a4(0x14c)](_0x1148a4(0x155))),_0x2557c2=_0x2a3473['str'](_0x1148a4(0x147))||_0x1148a4(0x152),_0x373246=generateSqlCodeTemplate(_0xc4563a,{'target':_0x2557c2,'includeImports':!_0x2a3473[_0x1148a4(0x157)](_0x1148a4(0x148))});return{'ok':!![],'data':{'sqlCode':_0xc4563a[_0x1148a4(0x149)],'sqlName':_0xc4563a[_0x1148a4(0x151)],'target':_0x2557c2,'code':_0x373246}};}};
1
+ const a43_0x33b0b7=a43_0x4c19;(function(_0x5cc60c,_0x40af11){const _0x5cfcb5=a43_0x4c19,_0x469250=_0x5cc60c();while(!![]){try{const _0x2b9c06=parseInt(_0x5cfcb5(0xf3))/0x1+parseInt(_0x5cfcb5(0xf5))/0x2*(-parseInt(_0x5cfcb5(0xe8))/0x3)+-parseInt(_0x5cfcb5(0xe6))/0x4+-parseInt(_0x5cfcb5(0xfa))/0x5*(-parseInt(_0x5cfcb5(0xe7))/0x6)+parseInt(_0x5cfcb5(0xea))/0x7*(parseInt(_0x5cfcb5(0xf8))/0x8)+-parseInt(_0x5cfcb5(0xfd))/0x9+parseInt(_0x5cfcb5(0xfb))/0xa;if(_0x2b9c06===_0x40af11)break;else _0x469250['push'](_0x469250['shift']());}catch(_0x5d0758){_0x469250['push'](_0x469250['shift']());}}}(a43_0x5ea4,0x4fb4d));function a43_0x5ea4(){const _0x1aab22=['appCode','Omit\x20import\x20statements\x20from\x20generated\x20code','1442456KnwIcv','string','55PGiMWG','5728790xVqEcj','no-imports','1336050heaAvl','sqlcode','2572156SMtFGP','142986YKZUsj','42xzhIeR','codegen','7waLqYY','sdk','target','boolean','sqlCode','bool','read','str','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','407685EbwKoS','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','43578DfHkLT'];a43_0x5ea4=function(){return _0x1aab22;};return a43_0x5ea4();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a43_0x4c19(_0x48432e,_0x4c8b41){_0x48432e=_0x48432e-0xe6;const _0x5ea4a4=a43_0x5ea4();let _0x4c1957=_0x5ea4a4[_0x48432e];return _0x4c1957;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a43_0x33b0b7(0xe9),'command':'sql','description':a43_0x33b0b7(0xf2),'risk':a43_0x33b0b7(0xf0),'flags':[SQLCODE_FLAG,{'name':a43_0x33b0b7(0xec),'type':a43_0x33b0b7(0xf9),'description':a43_0x33b0b7(0xf4),'default':a43_0x33b0b7(0xeb),'enum':[a43_0x33b0b7(0xeb),'bff']},{'name':a43_0x33b0b7(0xfc),'type':a43_0x33b0b7(0xed),'description':a43_0x33b0b7(0xf7)}],async 'execute'(_0x5070ba){const _0x38bee9=a43_0x33b0b7,_0x5e0769=await getSqlQueryInfo(_0x5070ba[_0x38bee9(0xf6)],_0x5070ba['str'](_0x38bee9(0xfe))),_0xc6b794=_0x5070ba[_0x38bee9(0xf1)]('target')||_0x38bee9(0xeb),_0x33aaaf=generateSqlCodeTemplate(_0x5e0769,{'target':_0xc6b794,'includeImports':!_0x5070ba[_0x38bee9(0xef)](_0x38bee9(0xfc))});return{'ok':!![],'data':{'sqlCode':_0x5e0769[_0x38bee9(0xee)],'sqlName':_0x5e0769['sqlName'],'target':_0xc6b794,'code':_0x33aaaf}};}};
@@ -1 +1 @@
1
- (function(_0x3e4234,_0x57c1ef){const _0x58fa51=a43_0xe2a2,_0x386051=_0x3e4234();while(!![]){try{const _0x10efd1=-parseInt(_0x58fa51(0x98))/0x1+parseInt(_0x58fa51(0x9a))/0x2*(-parseInt(_0x58fa51(0x8f))/0x3)+parseInt(_0x58fa51(0x82))/0x4*(-parseInt(_0x58fa51(0x80))/0x5)+-parseInt(_0x58fa51(0x9e))/0x6*(-parseInt(_0x58fa51(0x7e))/0x7)+-parseInt(_0x58fa51(0x7c))/0x8*(-parseInt(_0x58fa51(0x8c))/0x9)+-parseInt(_0x58fa51(0x9f))/0xa*(-parseInt(_0x58fa51(0x91))/0xb)+parseInt(_0x58fa51(0x96))/0xc;if(_0x10efd1===_0x57c1ef)break;else _0x386051['push'](_0x386051['shift']());}catch(_0x35752f){_0x386051['push'](_0x386051['shift']());}}}(a43_0x157b,0xf0a3c));import{CliErrors}from'../../errors.js';function a43_0x157b(){const _0x195a6c=['29195RrXjjC','object','92ihjzKx','Usage:\x20','projectConfig','string','validation','args','apps','str','Removed\x20app\x20\x22','App\x20\x22','324909WEPMPM','\x22\x20(appcode:\x20','global','37725fEuzsp','Added','1871507kdcKkq','Use\x20global\x20config\x20scope','Missing\x20app\x20name.','inherit','\x20config.','6021636qLrihW','appcode','1718110CqshEV','\x20Set\x20as\x20default\x20app.','34XlvaaN','\x20Note:\x20app\x20\x22','globalConfig','trim','444NVCYNT','20VtyLvu','defaultApp','\x20<name>\x20[--global]','boolean','keys','bool','\x20<name>\x20--appcode\x20<code>','flagMissing','232yUzHBh','Updated','109998ZLEdTm','both'];a43_0x157b=function(){return _0x195a6c;};return a43_0x157b();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x5390af=a43_0xe2a2;return[{'name':_0x5390af(0x97),'type':_0x5390af(0x85),'description':'App\x20code','required':!![]},{'name':_0x5390af(0x8e),'type':_0x5390af(0xa2),'description':_0x5390af(0x92),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x97ec25=a43_0xe2a2;return[{'name':_0x97ec25(0x8e),'type':'boolean','description':_0x97ec25(0x92),'default':![]}];}export async function validateAppName(_0x458975,_0x58bbc4){const _0x30d68b=a43_0xe2a2,_0x8a56d7=_0x458975[_0x30d68b(0x87)][0x0]?.[_0x30d68b(0x9d)]();if(!_0x8a56d7)throw CliErrors['validation'](_0x30d68b(0x93),_0x30d68b(0x83)+CLI_BIN_NAME+'\x20'+_0x58bbc4+'\x20<name>');}export async function runAppAdd(_0x5ef5cc,_0xe3d675){const _0x3464b5=a43_0xe2a2,_0x4f0c0e=_0x5ef5cc[_0x3464b5(0x87)][0x0]?.[_0x3464b5(0x9d)]();if(!_0x4f0c0e)throw CliErrors[_0x3464b5(0x86)](_0x3464b5(0x93),_0x3464b5(0x83)+CLI_BIN_NAME+'\x20'+_0xe3d675+_0x3464b5(0x7a));const _0x4b45c4=_0x5ef5cc[_0x3464b5(0x89)](_0x3464b5(0x97));if(!_0x4b45c4)throw CliErrors[_0x3464b5(0x7b)](_0x3464b5(0x97),_0x3464b5(0x83)+CLI_BIN_NAME+'\x20'+_0xe3d675+_0x3464b5(0x7a));const _0x20aded={'global':_0x5ef5cc[_0x3464b5(0x79)](_0x3464b5(0x8e))},_0x2a9f18=readConfig(_0x20aded);if(!_0x2a9f18[_0x3464b5(0x88)])_0x2a9f18[_0x3464b5(0x88)]={};const _0x1d612d={'appcode':_0x4b45c4,...collectAppProfileOverrides(_0x28e5e3=>_0x5ef5cc[_0x3464b5(0x89)](_0x28e5e3))},_0x3b5627=_0x2a9f18[_0x3464b5(0x88)],_0x27d9d4=!!_0x3b5627[_0x4f0c0e];_0x3b5627[_0x4f0c0e]=_0x1d612d;if(!_0x2a9f18[_0x3464b5(0xa0)])_0x2a9f18[_0x3464b5(0xa0)]=_0x4f0c0e;writeConfig(_0x2a9f18,_0x20aded);const _0x464963=!_0x27d9d4&&_0x2a9f18[_0x3464b5(0xa0)]===_0x4f0c0e?_0x3464b5(0x99):'',_0x4b68ad=(_0x27d9d4?_0x3464b5(0x7d):_0x3464b5(0x90))+'\x20app\x20\x22'+_0x4f0c0e+_0x3464b5(0x8d)+_0x4b45c4+')'+scopeLabel(_0x20aded)+'.'+_0x464963;return{'ok':!![],'message':_0x4b68ad};}function a43_0xe2a2(_0x2f4c4c,_0x3f00b8){_0x2f4c4c=_0x2f4c4c-0x79;const _0x157b46=a43_0x157b();let _0xe2a2f7=_0x157b46[_0x2f4c4c];return _0xe2a2f7;}export async function runAppRemove(_0x9bce32,_0x13eeff){const _0x2ec842=a43_0xe2a2,_0x3b27bd=_0x9bce32[_0x2ec842(0x87)][0x0]?.[_0x2ec842(0x9d)]();if(!_0x3b27bd)throw CliErrors[_0x2ec842(0x86)](_0x2ec842(0x93),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x13eeff+_0x2ec842(0xa1));const _0x4fc667=_0x9bce32[_0x2ec842(0x79)](_0x2ec842(0x8e)),{config:_0xf10244,layers:_0x4aa0e2}=readRawConfigWithLayers(),_0x37781e=_0xf10244[_0x2ec842(0x88)]??{};if(!_0x37781e[_0x3b27bd])throw CliErrors['validation'](_0x2ec842(0x8b)+_0x3b27bd+'\x22\x20not\x20found.');const _0x2e4cbf=_0x4aa0e2['globalConfig'][_0x2ec842(0x88)]&&typeof _0x4aa0e2[_0x2ec842(0x9c)]['apps']==='object'?_0x4aa0e2['globalConfig'][_0x2ec842(0x88)]:{},_0x1c2e53=_0x4aa0e2[_0x2ec842(0x84)]['apps']&&typeof _0x4aa0e2[_0x2ec842(0x84)][_0x2ec842(0x88)]===_0x2ec842(0x81)?_0x4aa0e2[_0x2ec842(0x84)][_0x2ec842(0x88)]:{},_0x2d8a03=appDefinedIn(_0x3b27bd,_0x2e4cbf,_0x1c2e53,_0x4aa0e2[_0x2ec842(0x84)][_0x2ec842(0x94)]===![]),_0xf44bce=resolveAppScopeForWrite(_0x3b27bd,_0x4fc667,_0x4aa0e2),_0x2e4828={'global':_0xf44bce===_0x2ec842(0x8e)},_0x272035=readConfig(_0x2e4828),_0x4126cd=_0x272035['apps'];if(!_0x4126cd||!_0x4126cd[_0x3b27bd])throw CliErrors[_0x2ec842(0x86)](_0x2ec842(0x8b)+_0x3b27bd+'\x22\x20not\x20found.');delete _0x4126cd[_0x3b27bd];let _0x4c5dd3='';if(_0x272035[_0x2ec842(0xa0)]===_0x3b27bd){const _0x47932d=Object['keys'](_0x4126cd);_0x272035[_0x2ec842(0xa0)]=_0x47932d['length']>0x0?_0x47932d[0x0]:undefined,_0x272035['defaultApp']?_0x4c5dd3='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x272035[_0x2ec842(0xa0)]+'\x22.':delete _0x272035[_0x2ec842(0xa0)];}Object[_0x2ec842(0xa3)](_0x4126cd)['length']===0x0&&(delete _0x272035[_0x2ec842(0x88)],delete _0x272035[_0x2ec842(0xa0)]);writeConfig(_0x272035,_0x2e4828);const _0x16b4df=_0x2d8a03===_0x2ec842(0x7f)?_0x2ec842(0x9b)+_0x3b27bd+'\x22\x20still\x20defined\x20in\x20'+(_0xf44bce==='project'?'global':'project')+_0x2ec842(0x95):'';return{'ok':!![],'message':_0x2ec842(0x8a)+_0x3b27bd+'\x22'+scopeLabel(_0x2e4828)+'.'+_0x4c5dd3+_0x16b4df};}
1
+ (function(_0x3bd9e0,_0x375061){const _0xaa6bdb=a44_0x2fe0,_0x4fe6b0=_0x3bd9e0();while(!![]){try{const _0x5ae52b=-parseInt(_0xaa6bdb(0x1f4))/0x1*(parseInt(_0xaa6bdb(0x1f1))/0x2)+-parseInt(_0xaa6bdb(0x1e3))/0x3+parseInt(_0xaa6bdb(0x1d8))/0x4+parseInt(_0xaa6bdb(0x1ea))/0x5+-parseInt(_0xaa6bdb(0x1d9))/0x6*(-parseInt(_0xaa6bdb(0x1dc))/0x7)+-parseInt(_0xaa6bdb(0x1f6))/0x8*(-parseInt(_0xaa6bdb(0x1df))/0x9)+-parseInt(_0xaa6bdb(0x1e9))/0xa*(-parseInt(_0xaa6bdb(0x1e0))/0xb);if(_0x5ae52b===_0x375061)break;else _0x4fe6b0['push'](_0x4fe6b0['shift']());}catch(_0x233529){_0x4fe6b0['push'](_0x4fe6b0['shift']());}}}(a44_0x4bc4,0x50817));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';function a44_0x2fe0(_0x2e06d5,_0x5f5039){_0x2e06d5=_0x2e06d5-0x1d6;const _0x4bc4a6=a44_0x4bc4();let _0x2fe010=_0x4bc4a6[_0x2e06d5];return _0x2fe010;}import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x14996a=a44_0x2fe0;return[{'name':_0x14996a(0x1da),'type':'string','description':_0x14996a(0x1e4),'required':!![]},{'name':_0x14996a(0x201),'type':_0x14996a(0x1e5),'description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}function a44_0x4bc4(){const _0x27f1bf=['flagMissing','10332GdMGdy','Updated','globalConfig','36cAoaot','8789gMeaAW','both','\x22\x20is\x20selected\x20automatically.','1832472NggOCP','App\x20code','boolean','object','string','project','5150plwhXz','223315EAiVbF','args','defaultApp','\x20<name>\x20--appcode\x20<code>','Use\x20global\x20config\x20scope','length','Removed\x20app\x20\x22','298TbRvzy','\x20<name>','Missing\x20app\x20name.','1238NojbPI','apps','444264bJkfTp','\x22\x20still\x20defined\x20in\x20','trim','bool','validation','\x20app\x20\x22','Usage:\x20','keys','projectConfig','\x20Note:\x20app\x20\x22','\x20config.','global','\x22\x20not\x20found.','App\x20\x22','\x20Default\x20app\x20is\x20\x22','139812EXftPz','1674jviMEV','appcode'];a44_0x4bc4=function(){return _0x27f1bf;};return a44_0x4bc4();}export function buildAppRemoveFlags(){const _0x40ea08=a44_0x2fe0;return[{'name':_0x40ea08(0x201),'type':'boolean','description':_0x40ea08(0x1ee),'default':![]}];}export async function validateAppName(_0x55be56,_0x3aa11b){const _0x42d98f=a44_0x2fe0,_0x3c9611=_0x55be56[_0x42d98f(0x1eb)][0x0]?.[_0x42d98f(0x1f8)]();if(!_0x3c9611)throw CliErrors[_0x42d98f(0x1fa)](_0x42d98f(0x1f3),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x3aa11b+_0x42d98f(0x1f2));}export async function runAppAdd(_0x24e428,_0x2355e4){const _0x860cca=a44_0x2fe0,_0x252422=_0x24e428[_0x860cca(0x1eb)][0x0]?.[_0x860cca(0x1f8)]();if(!_0x252422)throw CliErrors[_0x860cca(0x1fa)](_0x860cca(0x1f3),_0x860cca(0x1fc)+CLI_BIN_NAME+'\x20'+_0x2355e4+_0x860cca(0x1ed));const _0x98a145=_0x24e428['str'](_0x860cca(0x1da));if(!_0x98a145)throw CliErrors[_0x860cca(0x1db)](_0x860cca(0x1da),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x2355e4+'\x20<name>\x20--appcode\x20<code>');const _0x2b3036={'global':_0x24e428[_0x860cca(0x1f9)](_0x860cca(0x201))},_0x24d815=readConfig(_0x2b3036);if(!_0x24d815[_0x860cca(0x1f5)])_0x24d815[_0x860cca(0x1f5)]={};const _0x59248f={'appcode':_0x98a145,...collectAppProfileOverrides(_0xea571c=>_0x24e428['str'](_0xea571c))},_0x9b1c=_0x24d815['apps'],_0x3178e5=Object[_0x860cca(0x1fd)](_0x9b1c),_0x59605b=typeof _0x24d815[_0x860cca(0x1ec)]===_0x860cca(0x1e7)&&_0x9b1c[_0x24d815[_0x860cca(0x1ec)]]?_0x24d815[_0x860cca(0x1ec)]:_0x3178e5[_0x860cca(0x1ef)]===0x1?_0x3178e5[0x0]:undefined,_0x24d059=!!_0x9b1c[_0x252422];_0x9b1c[_0x252422]=_0x59248f;const _0x49e5ee=normalizeStoredDefaultApp(_0x24d815,_0x59605b);writeConfig(_0x24d815,_0x2b3036);const _0x370f41=!_0x24d059&&_0x49e5ee?_0x860cca(0x1d7)+_0x49e5ee+'\x22.':'',_0x24e871=(_0x24d059?_0x860cca(0x1dd):'Added')+_0x860cca(0x1fb)+_0x252422+'\x22\x20(appcode:\x20'+_0x98a145+')'+scopeLabel(_0x2b3036)+'.'+_0x370f41;return{'ok':!![],'message':_0x24e871};}export async function runAppRemove(_0x4ba238,_0x36ea1b){const _0x3eb548=a44_0x2fe0,_0x3a4209=_0x4ba238[_0x3eb548(0x1eb)][0x0]?.[_0x3eb548(0x1f8)]();if(!_0x3a4209)throw CliErrors['validation']('Missing\x20app\x20name.',_0x3eb548(0x1fc)+CLI_BIN_NAME+'\x20'+_0x36ea1b+'\x20<name>\x20[--global]');const _0x4f5091=_0x4ba238['bool'](_0x3eb548(0x201)),{config:_0x191262,layers:_0x1dfbdc}=readRawConfigWithLayers(),_0x47f96f=_0x191262[_0x3eb548(0x1f5)]??{};if(!_0x47f96f[_0x3a4209])throw CliErrors['validation'](_0x3eb548(0x1d6)+_0x3a4209+_0x3eb548(0x202));const _0x504c88=_0x1dfbdc['globalConfig'][_0x3eb548(0x1f5)]&&typeof _0x1dfbdc[_0x3eb548(0x1de)][_0x3eb548(0x1f5)]===_0x3eb548(0x1e6)?_0x1dfbdc[_0x3eb548(0x1de)][_0x3eb548(0x1f5)]:{},_0x380bb6=_0x1dfbdc['projectConfig'][_0x3eb548(0x1f5)]&&typeof _0x1dfbdc['projectConfig'][_0x3eb548(0x1f5)]==='object'?_0x1dfbdc[_0x3eb548(0x1fe)][_0x3eb548(0x1f5)]:{},_0xf33a47=appDefinedIn(_0x3a4209,_0x504c88,_0x380bb6),_0x4037d0=resolveAppScopeForWrite(_0x3a4209,_0x4f5091,_0x1dfbdc),_0x3b4934={'global':_0x4037d0===_0x3eb548(0x201)},_0x1db43a=readConfig(_0x3b4934),_0x3d50b2=_0x1db43a[_0x3eb548(0x1f5)];if(!_0x3d50b2||!_0x3d50b2[_0x3a4209])throw CliErrors[_0x3eb548(0x1fa)](_0x3eb548(0x1d6)+_0x3a4209+'\x22\x20not\x20found.');delete _0x3d50b2[_0x3a4209];let _0xaa85f8='';const _0x401544=typeof _0x1db43a[_0x3eb548(0x1ec)]==='string'?_0x1db43a[_0x3eb548(0x1ec)]:undefined,_0x3c6d52=Object[_0x3eb548(0x1fd)](_0x3d50b2),_0x52a83e=_0x401544===_0x3a4209?_0x3c6d52[0x0]:_0x401544,_0x768d54=normalizeStoredDefaultApp(_0x1db43a,_0x52a83e);if(_0x401544===_0x3a4209&&_0x3c6d52[_0x3eb548(0x1ef)]===0x1)_0xaa85f8='\x20Remaining\x20app\x20\x22'+_0x3c6d52[0x0]+_0x3eb548(0x1e2);else _0x401544===_0x3a4209&&_0x768d54&&(_0xaa85f8='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x768d54+'\x22.');Object['keys'](_0x3d50b2)['length']===0x0&&(delete _0x1db43a[_0x3eb548(0x1f5)],delete _0x1db43a[_0x3eb548(0x1ec)]);writeConfig(_0x1db43a,_0x3b4934);const _0x4befbb=_0xf33a47===_0x3eb548(0x1e1)?_0x3eb548(0x1ff)+_0x3a4209+_0x3eb548(0x1f7)+(_0x4037d0==='project'?_0x3eb548(0x201):_0x3eb548(0x1e8))+_0x3eb548(0x200):'';return{'ok':!![],'message':_0x3eb548(0x1f0)+_0x3a4209+'\x22'+scopeLabel(_0x3b4934)+'.'+_0xaa85f8+_0x4befbb};}
@@ -1 +1 @@
1
- (function(_0x3697d2,_0x1539c6){const _0x298b70=a44_0x3c15,_0x226f9d=_0x3697d2();while(!![]){try{const _0x3f41e2=parseInt(_0x298b70(0xc8))/0x1+-parseInt(_0x298b70(0xec))/0x2*(-parseInt(_0x298b70(0xda))/0x3)+parseInt(_0x298b70(0xd4))/0x4*(parseInt(_0x298b70(0xd8))/0x5)+parseInt(_0x298b70(0xe7))/0x6+-parseInt(_0x298b70(0xe8))/0x7+-parseInt(_0x298b70(0xe6))/0x8+-parseInt(_0x298b70(0xce))/0x9;if(_0x3f41e2===_0x1539c6)break;else _0x226f9d['push'](_0x226f9d['shift']());}catch(_0x26bc30){_0x226f9d['push'](_0x226f9d['shift']());}}}(a44_0x4c9c,0x6228c));import{input,checkbox,select}from'@inquirer/prompts';import a44_0xc5ca69 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 _0x45173a=a44_0x3c15,_0x43c9e1=await input({'message':'请输入\x20App\x20Code:','validate':_0x462ae2=>{const _0x169443=a44_0x3c15,_0x4359e2=validateAppcode(_0x462ae2[_0x169443(0xe3)]());return _0x4359e2[_0x169443(0xca)]||_0x4359e2['message']||_0x169443(0xd7);}});return _0x43c9e1[_0x45173a(0xe3)]();}export async function promptAppSelection(_0x29fe92){const _0x27030d=a44_0x3c15,_0x210b52=[{'name':a44_0xc5ca69[_0x27030d(0xcd)]('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x29fe92[_0x27030d(0xc9)]((_0x5a529c,_0x23dfe6)=>({'name':_0x5a529c[_0x27030d(0xde)]+'\x20\x20'+a44_0xc5ca69['gray']('('+_0x5a529c[_0x27030d(0xcc)]+')'),'value':_0x23dfe6}))],_0x2a6dd3=await checkbox({'message':_0x27030d(0xdf)+a44_0xc5ca69['cyan'](_0x29fe92[_0x27030d(0xd0)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x210b52,'loop':![]});if(_0x2a6dd3[_0x27030d(0xd2)](-0x1))return _0x27030d(0xeb);if(_0x2a6dd3['length']===0x0)return _0x27030d(0xeb);return _0x2a6dd3[_0x27030d(0xc9)](_0x1aca26=>_0x29fe92[_0x1aca26]);}export async function promptSingleAppSelection(_0x425dcc){const _0x4643e1=a44_0x3c15,_0x1e5e30=[{'name':a44_0xc5ca69['gray'](_0x4643e1(0xd3)),'value':_0x4643e1(0xea)},{'name':a44_0xc5ca69[_0x4643e1(0xcd)](_0x4643e1(0xd1)),'value':'custom'},..._0x425dcc[_0x4643e1(0xc9)](_0x2d0efd=>({'name':_0x2d0efd[_0x4643e1(0xde)]+'\x20\x20'+a44_0xc5ca69[_0x4643e1(0xcb)]('('+_0x2d0efd[_0x4643e1(0xcc)]+')'),'value':_0x2d0efd[_0x4643e1(0xcc)]}))],_0x1e3af8=await select({'message':_0x4643e1(0xd6),'choices':_0x1e5e30});if(_0x1e3af8===_0x4643e1(0xea))return _0x4643e1(0xea);if(_0x1e3af8===_0x4643e1(0xeb))return _0x4643e1(0xeb);return _0x425dcc['find'](_0x27f618=>_0x27f618['appCode']===_0x1e3af8);}function a44_0x3c15(_0x3cc884,_0x28cf61){_0x3cc884=_0x3cc884-0xc8;const _0x4c9ca6=a44_0x4c9c();let _0x3c15c6=_0x4c9ca6[_0x3cc884];return _0x3c15c6;}export async function selectSingleAppcode(_0x64e4e6){const _0xeb9794=a44_0x3c15;if(!_0x64e4e6)return writeCliSideChannelLine(a44_0xc5ca69['gray'](_0xeb9794(0xe1))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x5ddb39;try{_0x5ddb39=await withActiveCookie(_0x64e4e6,()=>listRemoteApps());}catch(_0x49882c){writeCliSideChannelLine(a44_0xc5ca69[_0xeb9794(0xcd)](_0xeb9794(0xe4)));if(_0x49882c instanceof Error)writeCliSideChannelLine(a44_0xc5ca69[_0xeb9794(0xcb)](_0xeb9794(0xe9)+_0x49882c[_0xeb9794(0xdc)]+')'));return _fallbackOrSkip();}if(_0x5ddb39['length']===0x0)return writeCliSideChannelLine(a44_0xc5ca69[_0xeb9794(0xcd)](_0xeb9794(0xe2))),_fallbackOrSkip();const _0x4dd1c8=await promptSingleAppSelection(_0x5ddb39);if(_0x4dd1c8==='skip')return'';if(_0x4dd1c8===_0xeb9794(0xeb))return promptCustomAppcode();return _0x4dd1c8['appCode'];}export async function selectMultipleApps(_0xc2dcbe){const _0x148bee=a44_0x3c15;writeCliSideChannelLine(_0x148bee(0xdb));let _0x11a8c1;try{_0x11a8c1=await withActiveCookie(_0xc2dcbe,()=>listRemoteApps());}catch(_0x248d06){writeCliSideChannelLine(_0x148bee(0xe0));if(_0x248d06 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x248d06[_0x148bee(0xdc)]+')');return _0x148bee(0xeb);}if(_0x11a8c1[_0x148bee(0xd0)]===0x0)return writeCliSideChannelLine(_0x148bee(0xdd)),_0x148bee(0xeb);return promptAppSelection(_0x11a8c1);}function a44_0x4c9c(){const _0x45eb31=['2064360jCxPLv','4154430FMnOag','\x20\x20(','skip','custom','121256sBJWHM','157067xxSvyh','map','valid','gray','appCode','yellow','2460825VlyOnz','(跳过,稍后配置)','length','✎\x20自定义输入\x20appcode','includes','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','8xBAJMa','manual','请选择要绑定的应用:','Invalid\x20App\x20Code','1494120LnwmgM','✎\x20手动输入','12oqRcVH','正在获取可用应用列表...','message','\x0a未找到可用应用。','appName','获取到\x20','\x0a无法获取远程应用列表,请手动输入。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','未找到可用应用。','trim','无法获取远程应用列表,请手动输入。','App\x20Code:','578496CKyxsa'];a44_0x4c9c=function(){return _0x45eb31;};return a44_0x4c9c();}async function _fallbackOrSkip(){const _0x552354=a44_0x3c15,_0x5a66b6=await select({'message':_0x552354(0xe5),'choices':[{'name':a44_0xc5ca69[_0x552354(0xcb)](_0x552354(0xcf)),'value':_0x552354(0xea)},{'name':a44_0xc5ca69[_0x552354(0xcd)](_0x552354(0xd9)),'value':_0x552354(0xd5)}]});if(_0x5a66b6==='skip')return'';return promptCustomAppcode();}
1
+ function a45_0x2e03(_0x43f70c,_0x35ce72){_0x43f70c=_0x43f70c-0xa7;const _0x43c83d=a45_0x43c8();let _0x2e03f4=_0x43c83d[_0x43f70c];return _0x2e03f4;}(function(_0x339513,_0x195829){const _0x4bb641=a45_0x2e03,_0x262e02=_0x339513();while(!![]){try{const _0x46d406=-parseInt(_0x4bb641(0xbb))/0x1+-parseInt(_0x4bb641(0xc5))/0x2+-parseInt(_0x4bb641(0xc2))/0x3*(parseInt(_0x4bb641(0xb4))/0x4)+parseInt(_0x4bb641(0xb2))/0x5+parseInt(_0x4bb641(0xc7))/0x6*(parseInt(_0x4bb641(0xb3))/0x7)+parseInt(_0x4bb641(0xbf))/0x8+parseInt(_0x4bb641(0xc6))/0x9;if(_0x46d406===_0x195829)break;else _0x262e02['push'](_0x262e02['shift']());}catch(_0x526c4b){_0x262e02['push'](_0x262e02['shift']());}}}(a45_0x43c8,0xc1a06));import{input,checkbox,select}from'@inquirer/prompts';import a45_0xd3ad2c 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 _0x1ec969=a45_0x2e03,_0x4b7b72=await input({'message':_0x1ec969(0xaa),'validate':_0x1cdd1c=>{const _0x5a2a08=_0x1ec969,_0x1465ce=validateAppcode(_0x1cdd1c[_0x5a2a08(0xbd)]());return _0x1465ce[_0x5a2a08(0xab)]||_0x1465ce[_0x5a2a08(0xbe)]||_0x5a2a08(0xa7);}});return _0x4b7b72['trim']();}export async function promptAppSelection(_0x177697){const _0x25eafa=a45_0x2e03,_0x63aa99=[{'name':a45_0xd3ad2c[_0x25eafa(0xc8)](_0x25eafa(0xb1)),'value':-0x1},..._0x177697['map']((_0x342186,_0x47be27)=>({'name':_0x342186[_0x25eafa(0xad)]+'\x20\x20'+a45_0xd3ad2c['gray']('('+_0x342186[_0x25eafa(0xc3)]+')'),'value':_0x47be27}))],_0x35d844=await checkbox({'message':'Found\x20'+a45_0xd3ad2c[_0x25eafa(0xbc)](_0x177697[_0x25eafa(0xb0)])+_0x25eafa(0xb9),'choices':_0x63aa99,'loop':![]});if(_0x35d844[_0x25eafa(0xa9)](-0x1))return _0x25eafa(0xb5);if(_0x35d844[_0x25eafa(0xb0)]===0x0)return _0x25eafa(0xb5);return _0x35d844['map'](_0x413300=>_0x177697[_0x413300]);}export async function promptSingleAppSelection(_0x305802){const _0x52be35=a45_0x2e03,_0x3bcba2=[{'name':a45_0xd3ad2c[_0x52be35(0xca)](_0x52be35(0xc4)),'value':'skip'},{'name':a45_0xd3ad2c[_0x52be35(0xc8)](_0x52be35(0xb1)),'value':_0x52be35(0xb5)},..._0x305802['map'](_0x1f7508=>({'name':_0x1f7508['appName']+'\x20\x20'+a45_0xd3ad2c['gray']('('+_0x1f7508[_0x52be35(0xc3)]+')'),'value':_0x1f7508[_0x52be35(0xc3)]}))],_0x562bc1=await select({'message':_0x52be35(0xc1),'choices':_0x3bcba2});if(_0x562bc1==='skip')return _0x52be35(0xae);if(_0x562bc1===_0x52be35(0xb5))return _0x52be35(0xb5);return _0x305802[_0x52be35(0xa8)](_0x2e7e89=>_0x2e7e89[_0x52be35(0xc3)]===_0x562bc1);}export async function selectSingleAppcode(_0x370b65){const _0x36ad57=a45_0x2e03;if(!_0x370b65)return writeCliSideChannelLine(a45_0xd3ad2c[_0x36ad57(0xca)](_0x36ad57(0xb7))),_fallbackOrSkip();writeCliSideChannelLine(_0x36ad57(0xb8));let _0x629a14;try{_0x629a14=await withActiveCookie(_0x370b65,()=>listRemoteApps());}catch(_0x5bf28b){writeCliSideChannelLine(a45_0xd3ad2c['yellow'](_0x36ad57(0xba)));if(_0x5bf28b instanceof Error)writeCliSideChannelLine(a45_0xd3ad2c[_0x36ad57(0xca)](_0x36ad57(0xc0)+_0x5bf28b[_0x36ad57(0xbe)]+')'));return _fallbackOrSkip();}if(_0x629a14[_0x36ad57(0xb0)]===0x0)return writeCliSideChannelLine(a45_0xd3ad2c['yellow'](_0x36ad57(0xac))),_fallbackOrSkip();const _0x481474=await promptSingleAppSelection(_0x629a14);if(_0x481474===_0x36ad57(0xae))return'';if(_0x481474===_0x36ad57(0xb5))return promptCustomAppcode();return _0x481474['appCode'];}export async function selectMultipleApps(_0x4303c0){const _0x4b5dc2=a45_0x2e03;writeCliSideChannelLine(_0x4b5dc2(0xb8));let _0x238ef1;try{_0x238ef1=await withActiveCookie(_0x4303c0,()=>listRemoteApps());}catch(_0x3e2c24){writeCliSideChannelLine(_0x4b5dc2(0xb6));if(_0x3e2c24 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x3e2c24[_0x4b5dc2(0xbe)]+')');return'custom';}if(_0x238ef1[_0x4b5dc2(0xb0)]===0x0)return writeCliSideChannelLine(_0x4b5dc2(0xaf)),_0x4b5dc2(0xb5);return promptAppSelection(_0x238ef1);}function a45_0x43c8(){const _0x490633=['15523929YBRvij','6DbjxOm','yellow','✎\x20Enter\x20manually','gray','Invalid\x20App\x20Code','find','includes','App\x20Code:','valid','No\x20available\x20apps\x20found.','appName','skip','\x0aNo\x20available\x20apps\x20found.','length','✎\x20Enter\x20appcode\x20manually','4108665PEnYys','1855847FUosmB','249476Timqef','custom','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','Fetching\x20available\x20apps...','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','1281000UvwQPA','cyan','trim','message','2646160iHiOKB','\x20\x20(','Select\x20the\x20app\x20to\x20bind:','42amqiBw','appCode','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','390490zeiYpJ'];a45_0x43c8=function(){return _0x490633;};return a45_0x43c8();}async function _fallbackOrSkip(){const _0x4203c8=a45_0x2e03,_0x3d9053=await select({'message':_0x4203c8(0xaa),'choices':[{'name':a45_0xd3ad2c[_0x4203c8(0xca)]('(Skip;\x20configure\x20later)'),'value':_0x4203c8(0xae)},{'name':a45_0xd3ad2c[_0x4203c8(0xc8)](_0x4203c8(0xc9)),'value':'manual'}]});if(_0x3d9053===_0x4203c8(0xae))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a45_0x4aaa30=a45_0x1979;function a45_0x1979(_0x5d1a6d,_0x53fc66){_0x5d1a6d=_0x5d1a6d-0x91;const _0x3722ad=a45_0x3722();let _0x1979a7=_0x3722ad[_0x5d1a6d];return _0x1979a7;}(function(_0x458255,_0x1bf63e){const _0x294386=a45_0x1979,_0x3d1702=_0x458255();while(!![]){try{const _0x13a66a=-parseInt(_0x294386(0x98))/0x1+-parseInt(_0x294386(0x93))/0x2*(parseInt(_0x294386(0xb2))/0x3)+parseInt(_0x294386(0x94))/0x4*(parseInt(_0x294386(0x92))/0x5)+parseInt(_0x294386(0xb1))/0x6+parseInt(_0x294386(0xa6))/0x7+-parseInt(_0x294386(0xa1))/0x8+-parseInt(_0x294386(0xae))/0x9*(-parseInt(_0x294386(0xa2))/0xa);if(_0x13a66a===_0x1bf63e)break;else _0x3d1702['push'](_0x3d1702['shift']());}catch(_0x1867b4){_0x3d1702['push'](_0x3d1702['shift']());}}}(a45_0x3722,0xd3b30));function a45_0x3722(){const _0x196712=['Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','apiError','errorMessage','\x27\x5c\x27\x27','status','FAILED','295533xDqijM','toUpperCase','replace','1748826JKiVDn','3jQRFIz','trim','Task\x20','\x20returned\x20unknown\x20status\x20','string','745kvWrEa','1460598LWbmmc','13480TNPeyG','has','Async\x20task\x20','\x20is\x20processing.','660219ThzoBH','\x20completed\x20successfully.','\x20failed.','\x20response\x20did\x20not\x20contain\x20a\x20status.','PROCESSING','PENDING','SUCCESS','\x20is\x20pending.','\x20--appcode\x20','9352488qleEYy','730pcBSEq','taskId','\x20task\x20status\x20--task-id\x20','\x20--format\x20compress','1651979UEnwTG','\x20failed:\x20'];a45_0x3722=function(){return _0x196712;};return a45_0x3722();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a45_0x4aaa30(0xad)]),NON_TERMINAL_STATUSES=new Set(['PENDING',a45_0x4aaa30(0x9c)]);export function normalizeAsyncTask(_0x41b1cd){const _0x4830a1=a45_0x4aaa30,_0x21887e=typeof _0x41b1cd?.['taskId']===_0x4830a1(0x91)?_0x41b1cd[_0x4830a1(0xa3)][_0x4830a1(0xb3)]():'';if(!_0x21887e)throw CliErrors[_0x4830a1(0xa9)](_0x4830a1(0xa8));const _0x2fd8ec=typeof _0x41b1cd[_0x4830a1(0xac)]===_0x4830a1(0x91)?_0x41b1cd['status'][_0x4830a1(0xb3)]()[_0x4830a1(0xaf)]():'';if(!_0x2fd8ec)throw CliErrors[_0x4830a1(0xa9)](_0x4830a1(0x96)+_0x21887e+_0x4830a1(0x9b));return{'taskId':_0x21887e,'status':_0x2fd8ec,'errorMessage':typeof _0x41b1cd[_0x4830a1(0xaa)]==='string'&&_0x41b1cd[_0x4830a1(0xaa)][_0x4830a1(0xb3)]()?_0x41b1cd['errorMessage'][_0x4830a1(0xb3)]():null,'isTerminal':TERMINAL_STATUSES[_0x4830a1(0x95)](_0x2fd8ec),'knownStatus':TERMINAL_STATUSES['has'](_0x2fd8ec)||NON_TERMINAL_STATUSES[_0x4830a1(0x95)](_0x2fd8ec)};}export function buildAsyncTaskStatusCommand(_0x2a6ae1,_0x35bfd9){const _0x32b5a0=a45_0x4aaa30;return CLI_BIN_NAME+_0x32b5a0(0xa4)+quoteShellArg(_0x2a6ae1)+_0x32b5a0(0xa0)+quoteShellArg(_0x35bfd9)+_0x32b5a0(0xa5);}export function asyncTaskMessage(_0x783dc7){const _0x283602=a45_0x4aaa30;switch(_0x783dc7[_0x283602(0xac)]){case _0x283602(0x9d):return _0x283602(0xb4)+_0x783dc7[_0x283602(0xa3)]+_0x283602(0x9f);case _0x283602(0x9c):return _0x283602(0xb4)+_0x783dc7['taskId']+_0x283602(0x97);case _0x283602(0x9e):return _0x283602(0xb4)+_0x783dc7['taskId']+_0x283602(0x99);case _0x283602(0xad):return _0x783dc7[_0x283602(0xaa)]?_0x283602(0xb4)+_0x783dc7['taskId']+_0x283602(0xa7)+_0x783dc7[_0x283602(0xaa)]:_0x283602(0xb4)+_0x783dc7[_0x283602(0xa3)]+_0x283602(0x9a);default:return'Task\x20'+_0x783dc7[_0x283602(0xa3)]+_0x283602(0xb5)+_0x783dc7[_0x283602(0xac)]+'.';}}function quoteShellArg(_0x1ac1ce){const _0x83395=a45_0x4aaa30;return'\x27'+_0x1ac1ce[_0x83395(0xb0)](/'/g,_0x83395(0xab))+'\x27';}
1
+ const a46_0x30b0d3=a46_0x7de6;(function(_0x342ccc,_0x1aecc4){const _0x22ac94=a46_0x7de6,_0x202135=_0x342ccc();while(!![]){try{const _0x58cbae=parseInt(_0x22ac94(0x12f))/0x1+-parseInt(_0x22ac94(0x142))/0x2*(parseInt(_0x22ac94(0x14a))/0x3)+parseInt(_0x22ac94(0x130))/0x4+parseInt(_0x22ac94(0x14b))/0x5*(-parseInt(_0x22ac94(0x135))/0x6)+parseInt(_0x22ac94(0x134))/0x7*(parseInt(_0x22ac94(0x144))/0x8)+-parseInt(_0x22ac94(0x12e))/0x9*(parseInt(_0x22ac94(0x139))/0xa)+-parseInt(_0x22ac94(0x12a))/0xb*(-parseInt(_0x22ac94(0x141))/0xc);if(_0x58cbae===_0x1aecc4)break;else _0x202135['push'](_0x202135['shift']());}catch(_0x4a56fb){_0x202135['push'](_0x202135['shift']());}}}(a46_0x23d7,0x227a2));import{CLI_BIN_NAME}from'../../constant/cli.js';function a46_0x23d7(){const _0x5c9206=['808227VTHWFk','16350LlmILr','556692wFDujz','\x20is\x20processing.','replace','has','133994UpUCRh','54rggGum','\x20response\x20did\x20not\x20contain\x20a\x20status.','toUpperCase','apiError','20lLXttH','\x20task\x20status\x20--task-id\x20','string','errorMessage','PROCESSING','\x20failed:\x20','\x20--format\x20compress','Async\x20task\x20','1784676rNdQvp','2IeFPVa','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','16ZjbbFN','FAILED','trim','\x20is\x20pending.','status','\x20--appcode\x20','528102FygWMA','79510klGMXa','taskId','33Ebgksa','SUCCESS','\x27\x5c\x27\x27','Task\x20'];a46_0x23d7=function(){return _0x5c9206;};return a46_0x23d7();}function a46_0x7de6(_0x5b59d2,_0x4b14f8){_0x5b59d2=_0x5b59d2-0x129;const _0x23d754=a46_0x23d7();let _0x7de6a5=_0x23d754[_0x5b59d2];return _0x7de6a5;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set(['SUCCESS',a46_0x30b0d3(0x145)]),NON_TERMINAL_STATUSES=new Set(['PENDING',a46_0x30b0d3(0x13d)]);export function normalizeAsyncTask(_0x35a547){const _0x273573=a46_0x30b0d3,_0x32de25=typeof _0x35a547?.[_0x273573(0x129)]===_0x273573(0x13b)?_0x35a547['taskId'][_0x273573(0x146)]():'';if(!_0x32de25)throw CliErrors[_0x273573(0x138)](_0x273573(0x143));const _0x2259e5=typeof _0x35a547[_0x273573(0x148)]==='string'?_0x35a547[_0x273573(0x148)][_0x273573(0x146)]()[_0x273573(0x137)]():'';if(!_0x2259e5)throw CliErrors[_0x273573(0x138)](_0x273573(0x140)+_0x32de25+_0x273573(0x136));return{'taskId':_0x32de25,'status':_0x2259e5,'errorMessage':typeof _0x35a547[_0x273573(0x13c)]==='string'&&_0x35a547[_0x273573(0x13c)][_0x273573(0x146)]()?_0x35a547[_0x273573(0x13c)][_0x273573(0x146)]():null,'isTerminal':TERMINAL_STATUSES['has'](_0x2259e5),'knownStatus':TERMINAL_STATUSES[_0x273573(0x133)](_0x2259e5)||NON_TERMINAL_STATUSES['has'](_0x2259e5)};}export function buildAsyncTaskStatusCommand(_0x2f8f57,_0x2f5234){const _0x320481=a46_0x30b0d3;return CLI_BIN_NAME+_0x320481(0x13a)+quoteShellArg(_0x2f8f57)+_0x320481(0x149)+quoteShellArg(_0x2f5234)+_0x320481(0x13f);}export function asyncTaskMessage(_0x104eb5){const _0x441666=a46_0x30b0d3;switch(_0x104eb5[_0x441666(0x148)]){case'PENDING':return'Task\x20'+_0x104eb5[_0x441666(0x129)]+_0x441666(0x147);case'PROCESSING':return _0x441666(0x12d)+_0x104eb5[_0x441666(0x129)]+_0x441666(0x131);case _0x441666(0x12b):return _0x441666(0x12d)+_0x104eb5[_0x441666(0x129)]+'\x20completed\x20successfully.';case _0x441666(0x145):return _0x104eb5[_0x441666(0x13c)]?_0x441666(0x12d)+_0x104eb5[_0x441666(0x129)]+_0x441666(0x13e)+_0x104eb5[_0x441666(0x13c)]:_0x441666(0x12d)+_0x104eb5[_0x441666(0x129)]+'\x20failed.';default:return _0x441666(0x12d)+_0x104eb5[_0x441666(0x129)]+'\x20returned\x20unknown\x20status\x20'+_0x104eb5[_0x441666(0x148)]+'.';}}function quoteShellArg(_0x58641d){const _0x45ad91=a46_0x30b0d3;return'\x27'+_0x58641d[_0x45ad91(0x132)](/'/g,_0x45ad91(0x12c))+'\x27';}
@@ -1 +1 @@
1
- function a46_0x4103(){var _0x29c8a1=['30kGlSPv','81194XMxDaj','446yVrcfI','url','363429NyaeIy','description','2778ZXLzLW','880070GISbkq','8790496QeEfcA','defineProperties','586278fIWpXC','1558344YzgDWG','30ZafYka','8VxoNmi'];a46_0x4103=function(){return _0x29c8a1;};return a46_0x4103();}(function(_0x42e3b5,_0x4a2b71){var _0x2b6d87=a46_0x430e,_0x326f33=_0x42e3b5();while(!![]){try{var _0x3c4ebd=-parseInt(_0x2b6d87(0x120))/0x1+parseInt(_0x2b6d87(0x113))/0x2*(parseInt(_0x2b6d87(0x117))/0x3)+-parseInt(_0x2b6d87(0x11e))/0x4*(parseInt(_0x2b6d87(0x118))/0x5)+-parseInt(_0x2b6d87(0x11d))/0x6*(parseInt(_0x2b6d87(0x11b))/0x7)+parseInt(_0x2b6d87(0x11c))/0x8+parseInt(_0x2b6d87(0x115))/0x9*(-parseInt(_0x2b6d87(0x11f))/0xa)+parseInt(_0x2b6d87(0x119))/0xb;if(_0x3c4ebd===_0x4a2b71)break;else _0x326f33['push'](_0x326f33['shift']());}catch(_0x2fac20){_0x326f33['push'](_0x326f33['shift']());}}}(a46_0x4103,0x377dc));function a46_0x430e(_0x17787c,_0x4a0f9e){_0x17787c=_0x17787c-0x113;var _0x41033a=a46_0x4103();var _0x430e3e=_0x41033a[_0x17787c];return _0x430e3e;}export function asDryRunResult(_0x546f2b,_0x1c7249){var _0x38a718=a46_0x430e;return Object[_0x38a718(0x11a)](_0x546f2b,{'method':{'value':_0x1c7249['method'],'enumerable':![]},'url':{'value':_0x1c7249[_0x38a718(0x114)],'enumerable':![]},..._0x1c7249[_0x38a718(0x116)]?{'description':{'value':_0x1c7249[_0x38a718(0x116)],'enumerable':![]}}:{}});}
1
+ function a47_0x3ffd(){var _0x13067b=['method','description','657912jrdiyp','1HSMcLc','url','5970500dwQSrf','7604850oyTYKR','1122JVnWNN','9eGYiEY','defineProperties','1132940TlTQRl','12eisNFq','8261858bwbdvA','623GgtXzn','1069460RcFGuw'];a47_0x3ffd=function(){return _0x13067b;};return a47_0x3ffd();}(function(_0x419308,_0x289c90){var _0xed5709=a47_0x18f9,_0x1f57db=_0x419308();while(!![]){try{var _0x3a5976=-parseInt(_0xed5709(0x12e))/0x1*(-parseInt(_0xed5709(0x126))/0x2)+parseInt(_0xed5709(0x127))/0x3*(-parseInt(_0xed5709(0x12a))/0x4)+parseInt(_0xed5709(0x121))/0x5+-parseInt(_0xed5709(0x123))/0x6*(-parseInt(_0xed5709(0x129))/0x7)+parseInt(_0xed5709(0x12d))/0x8*(-parseInt(_0xed5709(0x124))/0x9)+parseInt(_0xed5709(0x122))/0xa+-parseInt(_0xed5709(0x128))/0xb;if(_0x3a5976===_0x289c90)break;else _0x1f57db['push'](_0x1f57db['shift']());}catch(_0x5ab722){_0x1f57db['push'](_0x1f57db['shift']());}}}(a47_0x3ffd,0x9b029));function a47_0x18f9(_0x2facb0,_0x7822dc){_0x2facb0=_0x2facb0-0x120;var _0x3ffdae=a47_0x3ffd();var _0x18f93e=_0x3ffdae[_0x2facb0];return _0x18f93e;}export function asDryRunResult(_0x45d96a,_0x35878f){var _0x2fb0a1=a47_0x18f9;return Object[_0x2fb0a1(0x125)](_0x45d96a,{'method':{'value':_0x35878f[_0x2fb0a1(0x12b)],'enumerable':![]},'url':{'value':_0x35878f[_0x2fb0a1(0x120)],'enumerable':![]},..._0x35878f['description']?{'description':{'value':_0x35878f[_0x2fb0a1(0x12c)],'enumerable':![]}}:{}});}