@lovrabet/rabetbase-cli 2.5.2-beta.4 → 2.5.2-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) 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.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync-all.js +1 -1
  101. package/lib/commands/deployment/sync-jobs.js +1 -1
  102. package/lib/commands/deployment/sync-status.js +1 -1
  103. package/lib/commands/deployment/sync.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/schema.js +1 -1
  232. package/lib/constant/cdn.js +1 -1
  233. package/lib/constant/cli.js +1 -1
  234. package/lib/constant/defaults.js +1 -1
  235. package/lib/constant/domain.js +1 -1
  236. package/lib/constant/env.js +1 -1
  237. package/lib/constant/output.js +1 -1
  238. package/lib/constant/paths.js +1 -1
  239. package/lib/constant/region.js +1 -1
  240. package/lib/constant/risk.js +1 -1
  241. package/lib/constant/routing-profile.js +1 -1
  242. package/lib/context/app-resolver.js +1 -1
  243. package/lib/context/auth-resolver.js +1 -1
  244. package/lib/context/config-loader.js +1 -1
  245. package/lib/context.js +1 -1
  246. package/lib/core/alias-resolver.js +1 -1
  247. package/lib/core/api-client.js +1 -1
  248. package/lib/core/bff/config.js +1 -1
  249. package/lib/core/bff/file-system.js +1 -1
  250. package/lib/core/bff/hash.js +1 -1
  251. package/lib/core/bff/lock.js +1 -1
  252. package/lib/core/bff/utils.js +1 -1
  253. package/lib/core/db-resolver.js +1 -1
  254. package/lib/core/instant-api-policy/config.js +1 -1
  255. package/lib/core/kb-search-client.js +1 -1
  256. package/lib/core/page/file-system.js +1 -1
  257. package/lib/core/page/hash.js +1 -1
  258. package/lib/core/page/lock.js +1 -1
  259. package/lib/core/sql-index-auditor.js +1 -1
  260. package/lib/core/sql-sync/config.js +1 -1
  261. package/lib/core/sql-sync/file-system.js +1 -1
  262. package/lib/core/sql-sync/hash.js +1 -1
  263. package/lib/core/sql-sync/lock.js +1 -1
  264. package/lib/core/sql-sync/utils.js +1 -1
  265. package/lib/core/sql-validator.js +1 -1
  266. package/lib/errors.js +1 -1
  267. package/lib/framework/build-all-flags.js +1 -1
  268. package/lib/framework/error-output.js +1 -1
  269. package/lib/framework/explicit-yes.js +1 -1
  270. package/lib/framework/flags.js +1 -1
  271. package/lib/framework/help.js +1 -1
  272. package/lib/framework/index.js +1 -1
  273. package/lib/framework/output.js +1 -1
  274. package/lib/framework/response.js +1 -1
  275. package/lib/framework/runner-alias.js +1 -1
  276. package/lib/framework/runner.js +1 -1
  277. package/lib/framework/schema-export.js +1 -1
  278. package/lib/framework/supported-flags.js +1 -1
  279. package/lib/framework/types.js +1 -1
  280. package/lib/generated/build-info.d.ts +4 -4
  281. package/lib/generated/build-info.js +1 -1
  282. package/lib/generated/official-routing.js +1 -1
  283. package/lib/generated/routing-contract.js +1 -1
  284. package/lib/help.js +1 -1
  285. package/lib/postinstall.js +1 -1
  286. package/lib/runtime/confirmation.js +1 -1
  287. package/lib/runtime/event.js +1 -1
  288. package/lib/runtime/index.js +1 -1
  289. package/lib/runtime/queue.js +1 -1
  290. package/lib/runtime/resolve.js +1 -1
  291. package/lib/skills/builtin-skill.js +1 -1
  292. package/lib/skills/main.js +1 -1
  293. package/lib/skills/npx-skills-add.js +1 -1
  294. package/lib/skills/skill-presence.js +1 -1
  295. package/lib/telemetry/cli-command-trace.js +1 -1
  296. package/lib/telemetry/cli-help-trace.js +1 -1
  297. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  298. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  299. package/lib/telemetry/send-cli-trace-log.js +1 -1
  300. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  301. package/lib/utils/ai_config.js +1 -1
  302. package/lib/utils/apply-jq-filter.js +1 -1
  303. package/lib/utils/cdn-config.js +1 -1
  304. package/lib/utils/check-sdk-version.js +1 -1
  305. package/lib/utils/cli-version-check.js +1 -1
  306. package/lib/utils/cli-version-policy.js +1 -1
  307. package/lib/utils/config.js +1 -1
  308. package/lib/utils/entity-with-id.js +1 -1
  309. package/lib/utils/file-utils.js +1 -1
  310. package/lib/utils/guides-cdn.js +1 -1
  311. package/lib/utils/http-client.js +1 -1
  312. package/lib/utils/is-non-interactive.js +1 -1
  313. package/lib/utils/logger.js +1 -1
  314. package/lib/utils/params.js +1 -1
  315. package/lib/utils/platform.d.ts +6 -5
  316. package/lib/utils/platform.js +1 -1
  317. package/lib/utils/sleep.js +1 -1
  318. package/lib/utils/template-replacer.js +1 -1
  319. package/lib/utils/update-notice.js +1 -1
  320. package/lib/utils/version.js +1 -1
  321. package/lib/utils/with-active-cookie.js +1 -1
  322. package/lib/utils/write-cli-side-channel.js +1 -1
  323. package/package.json +1 -1
  324. package/skills/rabetbase/SKILL.md +1 -1
  325. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a33_0x3849(_0x319dad,_0x1d2bd0){_0x319dad=_0x319dad-0xd9;const _0x12d0c6=a33_0x12d0();let _0x38495c=_0x12d0c6[_0x319dad];return _0x38495c;}const a33_0x58ca3a=a33_0x3849;(function(_0x3cafe3,_0x45264f){const _0x1b553f=a33_0x3849,_0x4157d2=_0x3cafe3();while(!![]){try{const _0x4e3526=parseInt(_0x1b553f(0xe0))/0x1+parseInt(_0x1b553f(0xed))/0x2*(parseInt(_0x1b553f(0xea))/0x3)+parseInt(_0x1b553f(0xe2))/0x4*(parseInt(_0x1b553f(0xdc))/0x5)+-parseInt(_0x1b553f(0xe6))/0x6*(-parseInt(_0x1b553f(0xe5))/0x7)+-parseInt(_0x1b553f(0xdb))/0x8*(parseInt(_0x1b553f(0xec))/0x9)+parseInt(_0x1b553f(0xde))/0xa+-parseInt(_0x1b553f(0xf0))/0xb;if(_0x4e3526===_0x45264f)break;else _0x4157d2['push'](_0x4157d2['shift']());}catch(_0x15cc42){_0x4157d2['push'](_0x4157d2['shift']());}}}(a33_0x12d0,0x18ca7));import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':'bff','command':a33_0x58ca3a(0xe8),'description':a33_0x58ca3a(0xdf),'risk':a33_0x58ca3a(0xe4),'flags':[{'name':'id','type':'number','required':!![],'description':a33_0x58ca3a(0xee)},{'name':'verbose','type':a33_0x58ca3a(0xef),'description':a33_0x58ca3a(0xdd)}],async 'execute'(_0x546721){const _0xd214b8=a33_0x58ca3a,_0x351abc=await getBffScriptInfo(_0x546721['num']('id')),_0x55eaed=_0x546721['bool'](_0xd214b8(0xe1));if(_0x55eaed)return{'ok':!![],'data':_0x351abc};return{'ok':!![],'data':{'id':_0x351abc['id'],'functionName':_0x351abc[_0xd214b8(0xeb)]??'','version':_0x351abc[_0xd214b8(0xda)]??'','updateUserName':_0x351abc[_0xd214b8(0xe3)]??'','appCode':_0x351abc[_0xd214b8(0xf1)],'scriptType':_0x351abc[_0xd214b8(0xd9)],'description':_0x351abc[_0xd214b8(0xf2)]||_0xd214b8(0xe7),'createdTime':_0x351abc['createdTime']??'','updatedTime':_0x351abc['updatedTime']??'','scriptContent':_0x351abc[_0xd214b8(0xe9)]??''}};}};function a33_0x12d0(){const _0xee78e5=['scriptType','version','1448kaPzcJ','16735zLDFiX','Return\x20full\x20raw\x20script\x20object','1960730mocsWL','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','149186ywllCo','verbose','232xPDWPM','updateUserName','read','536669xcFlxS','6tZxENk','(none)','detail','scriptContent','6APNiqf','functionName','1791sfZTVq','179650BRMsiG','Script\x20ID','boolean','7239540VQqujP','appCode','description'];a33_0x12d0=function(){return _0xee78e5;};return a33_0x12d0();}
1
+ const a33_0x2548d4=a33_0x50fe;function a33_0x50fe(_0x2d0953,_0x4b463d){_0x2d0953=_0x2d0953-0xee;const _0x593a3e=a33_0x593a();let _0x50fedd=_0x593a3e[_0x2d0953];return _0x50fedd;}function a33_0x593a(){const _0x38cdbf=['6JHIdTH','894750JuEija','5130585MOwkXj','read','updateUserName','verbose','449100aqDgAJ','Return\x20full\x20raw\x20script\x20object','scriptType','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','205930DXCtuz','num','detail','845690uJLeHz','24dYwFQh','bool','4029942DFYOgc','functionName','198tINfZp','appCode','16AMoNrJ','scriptContent','description','888801xjeoon','Script\x20ID'];a33_0x593a=function(){return _0x38cdbf;};return a33_0x593a();}(function(_0x234d4a,_0x40a7a2){const _0x24c7cf=a33_0x50fe,_0x3f51cd=_0x234d4a();while(!![]){try{const _0x2d6972=parseInt(_0x24c7cf(0x106))/0x1*(-parseInt(_0x24c7cf(0xfc))/0x2)+parseInt(_0x24c7cf(0xfa))/0x3+-parseInt(_0x24c7cf(0xf1))/0x4*(parseInt(_0x24c7cf(0xfd))/0x5)+-parseInt(_0x24c7cf(0x102))/0x6+-parseInt(_0x24c7cf(0xf3))/0x7*(-parseInt(_0x24c7cf(0xf7))/0x8)+-parseInt(_0x24c7cf(0xfe))/0x9+parseInt(_0x24c7cf(0xf0))/0xa*(parseInt(_0x24c7cf(0xf5))/0xb);if(_0x2d6972===_0x40a7a2)break;else _0x3f51cd['push'](_0x3f51cd['shift']());}catch(_0x2b5141){_0x3f51cd['push'](_0x3f51cd['shift']());}}}(a33_0x593a,0x9aaac));import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':'bff','command':a33_0x2548d4(0xef),'description':a33_0x2548d4(0x105),'risk':a33_0x2548d4(0xff),'flags':[{'name':'id','type':'number','required':!![],'description':a33_0x2548d4(0xfb)},{'name':a33_0x2548d4(0x101),'type':'boolean','description':a33_0x2548d4(0x103)}],async 'execute'(_0x146438){const _0x31d60a=a33_0x2548d4,_0x1a03a7=await getBffScriptInfo(_0x146438[_0x31d60a(0xee)]('id')),_0x13d84f=_0x146438[_0x31d60a(0xf2)](_0x31d60a(0x101));if(_0x13d84f)return{'ok':!![],'data':_0x1a03a7};return{'ok':!![],'data':{'id':_0x1a03a7['id'],'functionName':_0x1a03a7[_0x31d60a(0xf4)]??'','version':_0x1a03a7['version']??'','updateUserName':_0x1a03a7[_0x31d60a(0x100)]??'','appCode':_0x1a03a7[_0x31d60a(0xf6)],'scriptType':_0x1a03a7[_0x31d60a(0x104)],'description':_0x1a03a7[_0x31d60a(0xf9)]||'(none)','createdTime':_0x1a03a7['createdTime']??'','updatedTime':_0x1a03a7['updatedTime']??'','scriptContent':_0x1a03a7[_0x31d60a(0xf8)]??''}};}};
@@ -1 +1 @@
1
- (function(_0x2c2877,_0x115731){const _0xb6dff7=a34_0x110e,_0x505d5a=_0x2c2877();while(!![]){try{const _0x5320ee=-parseInt(_0xb6dff7(0x6c))/0x1+parseInt(_0xb6dff7(0x69))/0x2+-parseInt(_0xb6dff7(0x6e))/0x3+-parseInt(_0xb6dff7(0x66))/0x4+-parseInt(_0xb6dff7(0x6d))/0x5*(parseInt(_0xb6dff7(0x68))/0x6)+-parseInt(_0xb6dff7(0x67))/0x7+parseInt(_0xb6dff7(0x6b))/0x8*(parseInt(_0xb6dff7(0x6a))/0x9);if(_0x5320ee===_0x115731)break;else _0x505d5a['push'](_0x505d5a['shift']());}catch(_0x5ca353){_0x505d5a['push'](_0x505d5a['shift']());}}}(a34_0x15ab,0xa0caf));import{bffList}from'../../commands/bff/list.js';import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';function a34_0x15ab(){const _0x3069c0=['2873500xDUOMf','735162NzkTEo','602242ubOxoC','1017DWcQno','154944SjMLzb','419791fxJhWW','35uPsSJX','280128jMZDMt','198968nISJvn'];a34_0x15ab=function(){return _0x3069c0;};return a34_0x15ab();}import{bffCreate}from'../../commands/bff/create.js';function a34_0x110e(_0x2ae98e,_0x543d0a){_0x2ae98e=_0x2ae98e-0x66;const _0x15ab0b=a34_0x15ab();let _0x110e4b=_0x15ab0b[_0x2ae98e];return _0x110e4b;}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
+ (function(_0x331eb4,_0x36855b){const _0x31c7e6=a34_0x40a4,_0x582635=_0x331eb4();while(!![]){try{const _0x9af1ae=parseInt(_0x31c7e6(0x94))/0x1*(parseInt(_0x31c7e6(0x92))/0x2)+-parseInt(_0x31c7e6(0x97))/0x3+parseInt(_0x31c7e6(0x93))/0x4+-parseInt(_0x31c7e6(0x91))/0x5*(parseInt(_0x31c7e6(0x9b))/0x6)+parseInt(_0x31c7e6(0x98))/0x7*(-parseInt(_0x31c7e6(0x95))/0x8)+parseInt(_0x31c7e6(0x9a))/0x9+-parseInt(_0x31c7e6(0x99))/0xa*(parseInt(_0x31c7e6(0x96))/0xb);if(_0x9af1ae===_0x36855b)break;else _0x582635['push'](_0x582635['shift']());}catch(_0x8b80fa){_0x582635['push'](_0x582635['shift']());}}}(a34_0x3761,0x2e241));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';import{bffPush}from'../../commands/bff/push.js';import{bffPull}from'../../commands/bff/pull.js';function a34_0x40a4(_0x78322,_0x111ac2){_0x78322=_0x78322-0x91;const _0x3761fe=a34_0x3761();let _0x40a407=_0x3761fe[_0x78322];return _0x40a407;}import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];function a34_0x3761(){const _0x299661=['399470DxbUid','1404135uHSepZ','13038OmiWKL','165hsBBSJ','25448McgYEY','990720olwUeW','10FtKNRv','16PezpeX','11WJCuZW','557904zuaVad','155113HVGPTN'];a34_0x3761=function(){return _0x299661;};return a34_0x3761();}
@@ -1 +1 @@
1
- function a35_0x3fb8(_0x3d44a5,_0x2e0270){_0x3d44a5=_0x3d44a5-0x134;const _0x166a06=a35_0x166a();let _0x3fb82e=_0x166a06[_0x3d44a5];return _0x3fb82e;}const a35_0x4a91d1=a35_0x3fb8;(function(_0x2d05ce,_0x31b244){const _0x46da42=a35_0x3fb8,_0x5b9297=_0x2d05ce();while(!![]){try{const _0x17cb38=-parseInt(_0x46da42(0x13a))/0x1*(parseInt(_0x46da42(0x13d))/0x2)+-parseInt(_0x46da42(0x143))/0x3*(parseInt(_0x46da42(0x135))/0x4)+parseInt(_0x46da42(0x145))/0x5+-parseInt(_0x46da42(0x14f))/0x6+parseInt(_0x46da42(0x146))/0x7*(parseInt(_0x46da42(0x141))/0x8)+parseInt(_0x46da42(0x14b))/0x9+parseInt(_0x46da42(0x136))/0xa;if(_0x17cb38===_0x31b244)break;else _0x5b9297['push'](_0x5b9297['shift']());}catch(_0x5382b8){_0x5b9297['push'](_0x5b9297['shift']());}}}(a35_0x166a,0x975b5));function a35_0x166a(){const _0x39b513=['7741062miHvoz','string','name','No\x20Backend\x20Function\x20scripts\x20found.','2713890qfRMXR','boolean','(unnamed)','29572xwmRHi','3223790QcIHVO','description','bool','Script\x20type\x20filter','21269BIsyFg','ENDPOINT','List\x20Backend\x20Function\x20scripts','102XbcsCP','verbose','list','functionName','3708728EnvRMD','Filter\x20by\x20script\x20name','321ObNLrt','read','4191815sNfmNI','14KnVKCG','str','type','map','length'];a35_0x166a=function(){return _0x39b513;};return a35_0x166a();}import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':'bff','command':a35_0x4a91d1(0x13f),'description':a35_0x4a91d1(0x13c),'risk':a35_0x4a91d1(0x144),'flags':[{'name':a35_0x4a91d1(0x148),'type':a35_0x4a91d1(0x14c),'description':a35_0x4a91d1(0x139),'default':a35_0x4a91d1(0x13b),'enum':['ENDPOINT','COMMON']},{'name':a35_0x4a91d1(0x14d),'type':'string','description':a35_0x4a91d1(0x142)},{'name':a35_0x4a91d1(0x13e),'type':a35_0x4a91d1(0x150),'description':'Return\x20full\x20script\x20objects'}],async 'execute'(_0x952299){const _0x16a914=a35_0x4a91d1,_0x171970=await listBffScripts(_0x952299['appCode'],_0x952299[_0x16a914(0x147)](_0x16a914(0x148)),{'scriptName':_0x952299[_0x16a914(0x147)](_0x16a914(0x14d))||undefined}),_0x361015=_0x952299[_0x16a914(0x138)](_0x16a914(0x13e));return{'ok':!![],'data':_0x361015?_0x171970:_0x171970[_0x16a914(0x149)](_0x37938c=>({'id':_0x37938c['id'],'functionName':_0x37938c[_0x16a914(0x140)]??'','description':_0x37938c[_0x16a914(0x137)]||_0x16a914(0x134),'scriptType':_0x37938c['scriptType']})),'message':_0x171970[_0x16a914(0x14a)]===0x0?_0x16a914(0x14e):undefined};}};
1
+ const a35_0x49bbc7=a35_0x29d9;(function(_0x4d31d9,_0x5a5daf){const _0x32be54=a35_0x29d9,_0x30e89f=_0x4d31d9();while(!![]){try{const _0x2ea96e=parseInt(_0x32be54(0x146))/0x1*(parseInt(_0x32be54(0x13f))/0x2)+-parseInt(_0x32be54(0x141))/0x3+-parseInt(_0x32be54(0x13e))/0x4+parseInt(_0x32be54(0x143))/0x5*(-parseInt(_0x32be54(0x140))/0x6)+parseInt(_0x32be54(0x12e))/0x7*(parseInt(_0x32be54(0x144))/0x8)+-parseInt(_0x32be54(0x130))/0x9*(-parseInt(_0x32be54(0x142))/0xa)+parseInt(_0x32be54(0x139))/0xb;if(_0x2ea96e===_0x5a5daf)break;else _0x30e89f['push'](_0x30e89f['shift']());}catch(_0x29dcf8){_0x30e89f['push'](_0x30e89f['shift']());}}}(a35_0x445a,0xec657));function a35_0x445a(){const _0x45af3d=['(unnamed)','Script\x20type\x20filter','bool','ENDPOINT','3594690YvUHwa','COMMON','verbose','type','List\x20Backend\x20Function\x20scripts','7687388FSAFZy','33874YwEuRQ','12jHtjEy','384690TNlYgI','42910cahVvp','953080VEGAbU','34464dltXbD','name','59LTfqtn','length','description','read','str','map','2163POqhcG','functionName','1557ThAMmV','Filter\x20by\x20script\x20name','Return\x20full\x20script\x20objects','string','boolean'];a35_0x445a=function(){return _0x45af3d;};return a35_0x445a();}function a35_0x29d9(_0x377b5c,_0x4b0fa9){_0x377b5c=_0x377b5c-0x12c;const _0x445a9f=a35_0x445a();let _0x29d9e5=_0x445a9f[_0x377b5c];return _0x29d9e5;}import{listBffScripts}from'../../core/api-client.js';export const bffList={'service':'bff','command':'list','description':a35_0x49bbc7(0x13d),'risk':a35_0x49bbc7(0x149),'flags':[{'name':a35_0x49bbc7(0x13c),'type':a35_0x49bbc7(0x133),'description':a35_0x49bbc7(0x136),'default':a35_0x49bbc7(0x138),'enum':[a35_0x49bbc7(0x138),a35_0x49bbc7(0x13a)]},{'name':a35_0x49bbc7(0x145),'type':'string','description':a35_0x49bbc7(0x131)},{'name':a35_0x49bbc7(0x13b),'type':a35_0x49bbc7(0x134),'description':a35_0x49bbc7(0x132)}],async 'execute'(_0x5b5c25){const _0x2b94c2=a35_0x49bbc7,_0x697288=await listBffScripts(_0x5b5c25['appCode'],_0x5b5c25[_0x2b94c2(0x12c)]('type'),{'scriptName':_0x5b5c25['str'](_0x2b94c2(0x145))||undefined}),_0xaca872=_0x5b5c25[_0x2b94c2(0x137)](_0x2b94c2(0x13b));return{'ok':!![],'data':_0xaca872?_0x697288:_0x697288[_0x2b94c2(0x12d)](_0x459f69=>({'id':_0x459f69['id'],'functionName':_0x459f69[_0x2b94c2(0x12f)]??'','description':_0x459f69[_0x2b94c2(0x148)]||_0x2b94c2(0x135),'scriptType':_0x459f69['scriptType']})),'message':_0x697288[_0x2b94c2(0x147)]===0x0?'No\x20Backend\x20Function\x20scripts\x20found.':undefined};}};
@@ -1 +1 @@
1
- const a36_0x3bcfd7=a36_0x2a94;(function(_0x112c9c,_0x54e6ea){const _0x4ef6cf=a36_0x2a94,_0x8da5fc=_0x112c9c();while(!![]){try{const _0x136e2d=-parseInt(_0x4ef6cf(0x182))/0x1+parseInt(_0x4ef6cf(0x18d))/0x2*(parseInt(_0x4ef6cf(0x17a))/0x3)+-parseInt(_0x4ef6cf(0x16e))/0x4+-parseInt(_0x4ef6cf(0x17c))/0x5*(-parseInt(_0x4ef6cf(0x19a))/0x6)+-parseInt(_0x4ef6cf(0x189))/0x7+-parseInt(_0x4ef6cf(0x188))/0x8+parseInt(_0x4ef6cf(0x199))/0x9;if(_0x136e2d===_0x54e6ea)break;else _0x8da5fc['push'](_0x8da5fc['shift']());}catch(_0xc8542c){_0x8da5fc['push'](_0x8da5fc['shift']());}}}(a36_0x4e48,0xd7d83));import{createInterface}from'node:readline';import{writeFile}from'node:fs/promises';function a36_0x4e48(){const _0x53c8ee=['Remote\x20script\x20missing\x20id.','1501609zkZqNn','COMMON','functionName','toLowerCase','parse','force','9988032jaELPD','7705327vabZtG','unresolvable\x20target\x20path','filePath','Pull\x20remote\x20Backend\x20Function\x20scripts\x20to\x20local','544754VxbZxp','scriptContent','\x20pulled,\x20','lockKey','ENDPOINT','local\x20unsynced\x20changes','close','length','Pull\x20complete:\x20','Pull\x20only\x20this\x20script\x20type','\x20remote\x20Backend\x20Function\x20script(s)\x20for\x20pull','functions','33295302LTlkTM','6pkqHfm','all','str','datasetCode','lockFilePath','question','appCode','stringify','lastSync','Force\x20pull\x20cancelled.','\x22\x20not\x20found\x20after\x20ensureLockScope.','Lock\x20scope\x20for\x20app\x20\x22','would_pull','nonInteractive','scriptsRoot','push','read','map','conflict','pull','stdin','scriptType','HOOK','apps','&type=','2379888lBbvqg','includes','utf8','cancelled','string','message','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','alias','\x20failed','hash','functionNode','bff','15ijihBu','apiDir','1342910qOSzfQ','type','GET','\x20skipped,\x20','hookLocation'];a36_0x4e48=function(){return _0x53c8ee;};return a36_0x4e48();}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_0x3bcfd7(0x179),'command':a36_0x3bcfd7(0x1ad),'description':a36_0x3bcfd7(0x18c),'risk':a36_0x3bcfd7(0x1aa),'flags':[{'name':a36_0x3bcfd7(0x17d),'type':a36_0x3bcfd7(0x172),'description':a36_0x3bcfd7(0x196),'enum':[a36_0x3bcfd7(0x183),a36_0x3bcfd7(0x191),'HOOK']},{'name':a36_0x3bcfd7(0x187),'type':'boolean','description':'Force\x20overwrite\x20local\x20unsynced\x20changes'}],async 'dryRun'(_0x1bc4fe){const _0x3e7b7f=a36_0x3bcfd7,_0xf064e3=loadBffProjectConfig(_0x1bc4fe[_0x3e7b7f(0x1a0)]),_0x1595ef=await readBffLockFile(_0xf064e3[_0x3e7b7f(0x19e)]),{appLock:_0x403cac}=ensureLockScope(_0x1595ef??createEmptyBffLock(),_0x1bc4fe[_0x3e7b7f(0x1a0)],_0xf064e3[_0x3e7b7f(0x1a8)],_0x3e7b7f(0x1ad)),_0x1120c1=normalizeBffType(_0x1bc4fe[_0x3e7b7f(0x19c)](_0x3e7b7f(0x17d)))??undefined,_0x459e37=buildDatasetCodeToAliasMap(_0x1bc4fe[_0x3e7b7f(0x17b)],_0x1bc4fe[_0x3e7b7f(0x1a0)]),[_0x5601ed,_0x40b255]=await Promise[_0x3e7b7f(0x19b)]([listBffScripts(_0x1bc4fe[_0x3e7b7f(0x1a0)],_0x1120c1),getBffScriptStatistics(_0x1bc4fe[_0x3e7b7f(0x1a0)])]),_0x3b502c=createHookLocationMap(_0x40b255),_0x364bcf=[];for(const _0x1903ac of _0x5601ed){const _0x5667df=resolveRemoteScriptTarget(_0xf064e3,_0x1903ac,_0x3b502c,_0x403cac[_0x3e7b7f(0x198)],_0x459e37);if(!_0x5667df){_0x364bcf['push']({'scriptType':_0x1903ac['scriptType'],'functionName':_0x1903ac['functionName']??'','status':'skipped','reason':_0x3e7b7f(0x18a)});continue;}const _0x5e03c8=_0x403cac[_0x3e7b7f(0x198)][_0x5667df[_0x3e7b7f(0x190)]],_0x3d22d7=_0x1903ac[_0x3e7b7f(0x18e)]!=null?computeContentHash(_0x1903ac[_0x3e7b7f(0x18e)]):undefined,_0x45872e=await hasUnsyncedLocalChanges(_0x5667df[_0x3e7b7f(0x18b)],_0x5e03c8,_0x3d22d7);_0x364bcf['push']({'lockKey':_0x5667df['lockKey'],'filePath':_0x5667df['filePath'],'remoteId':_0x1903ac['id']??null,'status':_0x45872e?_0x3e7b7f(0x1ac):_0x3e7b7f(0x1a6)});}return{'method':_0x3e7b7f(0x17e),'url':'/api/management/library/scripts/list?appCode='+_0x1bc4fe[_0x3e7b7f(0x1a0)]+(_0x1120c1?_0x3e7b7f(0x16d)+_0x1120c1:''),'body':{'appCode':_0x1bc4fe[_0x3e7b7f(0x1a0)],'filterType':_0x1120c1??null,'files':_0x364bcf},'description':'Would\x20inspect\x20'+_0x364bcf[_0x3e7b7f(0x194)]+_0x3e7b7f(0x197)};},async 'execute'(_0x40f536){const _0x522df4=a36_0x3bcfd7,_0x38c0aa=loadBffProjectConfig(_0x40f536[_0x522df4(0x1a0)]),_0xf589b8=await readBffLockFile(_0x38c0aa[_0x522df4(0x19e)]),{lockData:_0x339823,appLock:_0x3b6033}=ensureLockScope(_0xf589b8??createEmptyBffLock(),_0x40f536[_0x522df4(0x1a0)],_0x38c0aa[_0x522df4(0x1a8)],'pull'),_0x2868ec=normalizeBffType(_0x40f536[_0x522df4(0x19c)](_0x522df4(0x17d)))??undefined;if(_0x40f536[_0x522df4(0x19c)](_0x522df4(0x17d))&&!_0x2868ec)throw CliErrors['validation'](_0x522df4(0x174));const [_0x3a9d5f,_0x1789e2]=await Promise[_0x522df4(0x19b)]([listBffScripts(_0x40f536[_0x522df4(0x1a0)],_0x2868ec),getBffScriptStatistics(_0x40f536[_0x522df4(0x1a0)])]);if(_0x3a9d5f[_0x522df4(0x194)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':'No\x20remote\x20Backend\x20Function\x20scripts\x20found.'};const _0xbd5ac4=_0x40f536['bool']('force');if(_0xbd5ac4&&!_0x40f536['nonInteractive']){const _0x2bd262=await confirmForce();if(!_0x2bd262)throw CliErrors[_0x522df4(0x171)](_0x522df4(0x1a3));}if(_0xbd5ac4&&_0x40f536[_0x522df4(0x1a7)]){}const _0x46c73e=buildDatasetCodeToAliasMap(_0x40f536[_0x522df4(0x17b)],_0x40f536['appCode']),_0x451905=createHookLocationMap(_0x1789e2),_0x2bc126=JSON[_0x522df4(0x186)](JSON[_0x522df4(0x1a1)](_0x339823)),_0x429f61=_0x40f536['appCode'],_0x18bd4c=_0x2bc126[_0x522df4(0x16c)][_0x429f61];if(!_0x18bd4c)throw new Error(_0x522df4(0x1a5)+_0x429f61+_0x522df4(0x1a4));const _0x15ede4=[],_0x1c3c88=[],_0x5bc9ae=[];for(const _0x61c22a of _0x3a9d5f){const _0xb0d2ef=resolveRemoteScriptTarget(_0x38c0aa,_0x61c22a,_0x451905,_0x3b6033[_0x522df4(0x198)],_0x46c73e);if(!_0xb0d2ef){_0x1c3c88[_0x522df4(0x1a9)]({'lockKey':_0x61c22a[_0x522df4(0x1af)]+'/'+_0x61c22a[_0x522df4(0x184)],'reason':_0x522df4(0x18a)});continue;}const _0x33ff8a=_0x3b6033[_0x522df4(0x198)][_0xb0d2ef[_0x522df4(0x190)]];try{if(!_0x61c22a['id'])throw new Error(_0x522df4(0x181));if(_0x61c22a[_0x522df4(0x18e)]==null)throw new Error('Remote\x20script\x20missing\x20content.');const _0x4ded90=_0x61c22a[_0x522df4(0x18e)],_0xefe192=computeContentHash(_0x4ded90);if(!_0xbd5ac4){const _0x2a6eff=await hasUnsyncedLocalChanges(_0xb0d2ef['filePath'],_0x33ff8a,_0xefe192);if(_0x2a6eff){_0x1c3c88[_0x522df4(0x1a9)]({'lockKey':_0xb0d2ef['lockKey'],'reason':_0x522df4(0x192)});continue;}}await ensureParentDirectory(_0xb0d2ef[_0x522df4(0x18b)]),await writeFile(_0xb0d2ef[_0x522df4(0x18b)],_0x4ded90,_0x522df4(0x170));const _0x1dc574={'hash':_0xefe192,'remoteId':_0x61c22a['id'],'version':_0x61c22a['version']};_0xb0d2ef[_0x522df4(0x17d)]===_0x522df4(0x16b)&&_0xb0d2ef['hookLocation']&&(_0x1dc574[_0x522df4(0x175)]=_0xb0d2ef[_0x522df4(0x180)]['alias'],_0x1dc574[_0x522df4(0x19d)]=_0xb0d2ef[_0x522df4(0x180)][_0x522df4(0x19d)],_0x1dc574['operationType']=_0xb0d2ef[_0x522df4(0x180)]['operationType'],_0x1dc574[_0x522df4(0x178)]=_0xb0d2ef['hookLocation'][_0x522df4(0x178)]),_0x18bd4c['functions'][_0xb0d2ef['lockKey']]=_0x1dc574,_0x15ede4['push']({'lockKey':_0xb0d2ef[_0x522df4(0x190)],'remoteId':_0x61c22a['id']});}catch(_0x3ddd8f){_0x5bc9ae[_0x522df4(0x1a9)]({'lockKey':_0xb0d2ef[_0x522df4(0x190)],'error':_0x3ddd8f instanceof Error?_0x3ddd8f[_0x522df4(0x173)]:String(_0x3ddd8f)});}}return _0x18bd4c[_0x522df4(0x1a2)]=new Date()['toISOString'](),await writeBffLockFile(_0x38c0aa['lockFilePath'],_0x2bc126),{'ok':_0x5bc9ae[_0x522df4(0x194)]===0x0,'data':{'pulled':_0x15ede4,'skipped':_0x1c3c88,'failed':_0x5bc9ae},'message':_0x522df4(0x195)+_0x15ede4[_0x522df4(0x194)]+_0x522df4(0x18f)+_0x1c3c88[_0x522df4(0x194)]+_0x522df4(0x17f)+_0x5bc9ae[_0x522df4(0x194)]+_0x522df4(0x176)};}};async function hasUnsyncedLocalChanges(_0xbbb00f,_0x365025,_0x3b59ce){const _0x2590c8=a36_0x3bcfd7;if(!await fileExists(_0xbbb00f))return![];const _0x2a624a=await computeFileHash(_0xbbb00f);if(!_0x365025)return _0x3b59ce?_0x2a624a!==_0x3b59ce:!![];return _0x2a624a!==_0x365025[_0x2590c8(0x177)];}function buildDatasetCodeToAliasMap(_0x1d2754,_0x18836d){const _0x3ceb17=a36_0x3bcfd7,_0x28df8d=loadAliasMap(_0x1d2754,undefined,resolveApiFilePath(_0x1d2754,_0x18836d));return new Map(_0x28df8d[_0x3ceb17(0x1ab)](_0xcf6e1c=>[_0xcf6e1c['datasetCode'],_0xcf6e1c[_0x3ceb17(0x175)]]));}function a36_0x2a94(_0x4715b0,_0x10e241){_0x4715b0=_0x4715b0-0x16b;const _0x4e488e=a36_0x4e48();let _0x2a9482=_0x4e488e[_0x4715b0];return _0x2a9482;}async function confirmForce(){const _0x521b31=a36_0x3bcfd7,_0x17aa81=createInterface({'input':process[_0x521b31(0x1ae)],'output':process['stderr']}),_0x17f396=await new Promise(_0x265d84=>{const _0x4ec8b7=_0x521b31;_0x17aa81[_0x4ec8b7(0x19f)]('Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20',_0x265d84);});return _0x17aa81[_0x521b31(0x193)](),['y','yes'][_0x521b31(0x16f)](_0x17f396['trim']()[_0x521b31(0x185)]());}
1
+ const a36_0xd8957e=a36_0x32d2;function a36_0x32d2(_0x2e72bf,_0x40b40b){_0x2e72bf=_0x2e72bf-0x169;const _0x2f4b9f=a36_0x2f4b();let _0x32d22b=_0x2f4b9f[_0x2e72bf];return _0x32d22b;}(function(_0x1e8063,_0x24ef47){const _0x5b28c0=a36_0x32d2,_0x3ecaf1=_0x1e8063();while(!![]){try{const _0x7a44b1=-parseInt(_0x5b28c0(0x187))/0x1+parseInt(_0x5b28c0(0x170))/0x2*(parseInt(_0x5b28c0(0x1a1))/0x3)+-parseInt(_0x5b28c0(0x1ac))/0x4*(parseInt(_0x5b28c0(0x1a7))/0x5)+parseInt(_0x5b28c0(0x17d))/0x6*(parseInt(_0x5b28c0(0x196))/0x7)+-parseInt(_0x5b28c0(0x174))/0x8*(parseInt(_0x5b28c0(0x19c))/0x9)+parseInt(_0x5b28c0(0x17c))/0xa+parseInt(_0x5b28c0(0x18e))/0xb;if(_0x7a44b1===_0x24ef47)break;else _0x3ecaf1['push'](_0x3ecaf1['shift']());}catch(_0x278e12){_0x3ecaf1['push'](_0x3ecaf1['shift']());}}}(a36_0x2f4b,0x64ccd));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':'bff','command':'pull','description':a36_0xd8957e(0x172),'risk':a36_0xd8957e(0x16d),'flags':[{'name':a36_0xd8957e(0x194),'type':a36_0xd8957e(0x185),'description':a36_0xd8957e(0x19a),'enum':[a36_0xd8957e(0x1af),'ENDPOINT',a36_0xd8957e(0x188)]},{'name':'force','type':'boolean','description':a36_0xd8957e(0x183)}],async 'dryRun'(_0x3042ea){const _0x13c374=a36_0xd8957e,_0x6fef31=loadBffProjectConfig(_0x3042ea[_0x13c374(0x179)]),_0x4a1da4=await readBffLockFile(_0x6fef31[_0x13c374(0x16c)]),{appLock:_0x31692e}=ensureLockScope(_0x4a1da4??createEmptyBffLock(),_0x3042ea[_0x13c374(0x179)],_0x6fef31['scriptsRoot'],'pull'),_0x46b44e=normalizeBffType(_0x3042ea[_0x13c374(0x18f)](_0x13c374(0x194)))??undefined,_0xd4d824=buildDatasetCodeToAliasMap(_0x3042ea[_0x13c374(0x17f)],_0x3042ea[_0x13c374(0x179)]),[_0x49fe90,_0x49caca]=await Promise[_0x13c374(0x199)]([listBffScripts(_0x3042ea['appCode'],_0x46b44e),getBffScriptStatistics(_0x3042ea[_0x13c374(0x179)])]),_0x783063=createHookLocationMap(_0x49caca),_0x371392=[];for(const _0x50d92d of _0x49fe90){const _0x218580=resolveRemoteScriptTarget(_0x6fef31,_0x50d92d,_0x783063,_0x31692e['functions'],_0xd4d824);if(!_0x218580){_0x371392[_0x13c374(0x18a)]({'scriptType':_0x50d92d[_0x13c374(0x1a6)],'functionName':_0x50d92d[_0x13c374(0x1a3)]??'','status':'skipped','reason':'unresolvable\x20target\x20path'});continue;}const _0x164263=_0x31692e[_0x13c374(0x1ad)][_0x218580['lockKey']],_0x29568f=_0x50d92d['scriptContent']!=null?computeContentHash(_0x50d92d[_0x13c374(0x184)]):undefined,_0x1896cb=await hasUnsyncedLocalChanges(_0x218580[_0x13c374(0x1a9)],_0x164263,_0x29568f);_0x371392[_0x13c374(0x18a)]({'lockKey':_0x218580['lockKey'],'filePath':_0x218580[_0x13c374(0x1a9)],'remoteId':_0x50d92d['id']??null,'status':_0x1896cb?_0x13c374(0x16e):_0x13c374(0x1ae)});}return{'method':'GET','url':'/api/management/library/scripts/list?appCode='+_0x3042ea[_0x13c374(0x179)]+(_0x46b44e?_0x13c374(0x198)+_0x46b44e:''),'body':{'appCode':_0x3042ea[_0x13c374(0x179)],'filterType':_0x46b44e??null,'files':_0x371392},'description':'Would\x20inspect\x20'+_0x371392['length']+_0x13c374(0x16b)};},async 'execute'(_0x1b797d){const _0x33509f=a36_0xd8957e,_0x438577=loadBffProjectConfig(_0x1b797d[_0x33509f(0x179)]),_0x4b7fe5=await readBffLockFile(_0x438577[_0x33509f(0x16c)]),{lockData:_0x4898ba,appLock:_0x4d4e43}=ensureLockScope(_0x4b7fe5??createEmptyBffLock(),_0x1b797d[_0x33509f(0x179)],_0x438577[_0x33509f(0x193)],_0x33509f(0x16f)),_0x1c61fb=normalizeBffType(_0x1b797d[_0x33509f(0x18f)]('type'))??undefined;if(_0x1b797d[_0x33509f(0x18f)](_0x33509f(0x194))&&!_0x1c61fb)throw CliErrors[_0x33509f(0x169)](_0x33509f(0x190));const [_0x56a9fc,_0x5b8daa]=await Promise['all']([listBffScripts(_0x1b797d[_0x33509f(0x179)],_0x1c61fb),getBffScriptStatistics(_0x1b797d[_0x33509f(0x179)])]);if(_0x56a9fc[_0x33509f(0x1a4)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x33509f(0x18c)};const _0x192419=_0x1b797d[_0x33509f(0x1a5)](_0x33509f(0x19e));if(_0x192419&&!_0x1b797d[_0x33509f(0x191)]){const _0xb17747=await confirmForce();if(!_0xb17747)throw CliErrors['cancelled']('Force\x20pull\x20cancelled.');}if(_0x192419&&_0x1b797d['nonInteractive']){}const _0xf63bb5=buildDatasetCodeToAliasMap(_0x1b797d[_0x33509f(0x17f)],_0x1b797d[_0x33509f(0x179)]),_0x2488f9=createHookLocationMap(_0x5b8daa),_0x5f328d=JSON['parse'](JSON[_0x33509f(0x178)](_0x4898ba)),_0x58fd86=_0x1b797d[_0x33509f(0x179)],_0x551fbf=_0x5f328d['apps'][_0x58fd86];if(!_0x551fbf)throw new Error(_0x33509f(0x17e)+_0x58fd86+_0x33509f(0x18d));const _0x5d0911=[],_0x548031=[],_0x1f7087=[];for(const _0x3c64c0 of _0x56a9fc){const _0x727726=resolveRemoteScriptTarget(_0x438577,_0x3c64c0,_0x2488f9,_0x4d4e43[_0x33509f(0x1ad)],_0xf63bb5);if(!_0x727726){_0x548031[_0x33509f(0x18a)]({'lockKey':_0x3c64c0['scriptType']+'/'+_0x3c64c0[_0x33509f(0x1a3)],'reason':_0x33509f(0x19b)});continue;}const _0x1f311b=_0x4d4e43[_0x33509f(0x1ad)][_0x727726[_0x33509f(0x176)]];try{if(!_0x3c64c0['id'])throw new Error('Remote\x20script\x20missing\x20id.');if(_0x3c64c0[_0x33509f(0x184)]==null)throw new Error(_0x33509f(0x182));const _0x18e28d=_0x3c64c0['scriptContent'],_0x147a19=computeContentHash(_0x18e28d);if(!_0x192419){const _0x45aede=await hasUnsyncedLocalChanges(_0x727726[_0x33509f(0x1a9)],_0x1f311b,_0x147a19);if(_0x45aede){_0x548031[_0x33509f(0x18a)]({'lockKey':_0x727726[_0x33509f(0x176)],'reason':_0x33509f(0x17a)});continue;}}await ensureParentDirectory(_0x727726[_0x33509f(0x1a9)]),await writeFile(_0x727726[_0x33509f(0x1a9)],_0x18e28d,_0x33509f(0x171));const _0x2852a9={'hash':_0x147a19,'remoteId':_0x3c64c0['id'],'version':_0x3c64c0[_0x33509f(0x180)]};_0x727726[_0x33509f(0x194)]===_0x33509f(0x188)&&_0x727726[_0x33509f(0x177)]&&(_0x2852a9['alias']=_0x727726[_0x33509f(0x177)]['alias'],_0x2852a9[_0x33509f(0x1a8)]=_0x727726[_0x33509f(0x177)][_0x33509f(0x1a8)],_0x2852a9[_0x33509f(0x195)]=_0x727726[_0x33509f(0x177)][_0x33509f(0x195)],_0x2852a9[_0x33509f(0x175)]=_0x727726[_0x33509f(0x177)][_0x33509f(0x175)]),_0x551fbf[_0x33509f(0x1ad)][_0x727726['lockKey']]=_0x2852a9,_0x5d0911[_0x33509f(0x18a)]({'lockKey':_0x727726[_0x33509f(0x176)],'remoteId':_0x3c64c0['id']});}catch(_0xd2bd5c){_0x1f7087[_0x33509f(0x18a)]({'lockKey':_0x727726[_0x33509f(0x176)],'error':_0xd2bd5c instanceof Error?_0xd2bd5c['message']:String(_0xd2bd5c)});}}return _0x551fbf[_0x33509f(0x1aa)]=new Date()[_0x33509f(0x197)](),await writeBffLockFile(_0x438577['lockFilePath'],_0x5f328d),{'ok':_0x1f7087[_0x33509f(0x1a4)]===0x0,'data':{'pulled':_0x5d0911,'skipped':_0x548031,'failed':_0x1f7087},'message':_0x33509f(0x18b)+_0x5d0911['length']+_0x33509f(0x192)+_0x548031[_0x33509f(0x1a4)]+_0x33509f(0x173)+_0x1f7087['length']+_0x33509f(0x181)};}};async function hasUnsyncedLocalChanges(_0x369d16,_0x261bc9,_0x38c29d){if(!await fileExists(_0x369d16))return![];const _0x471c31=await computeFileHash(_0x369d16);if(!_0x261bc9)return _0x38c29d?_0x471c31!==_0x38c29d:!![];return _0x471c31!==_0x261bc9['hash'];}function buildDatasetCodeToAliasMap(_0x283dca,_0x31286b){const _0x3c6716=a36_0xd8957e,_0x171e85=loadAliasMap(_0x283dca,undefined,resolveApiFilePath(_0x283dca,_0x31286b));return new Map(_0x171e85[_0x3c6716(0x19f)](_0x1762b0=>[_0x1762b0['datasetCode'],_0x1762b0[_0x3c6716(0x1ab)]]));}function a36_0x2f4b(){const _0x20c1ff=['close','\x20remote\x20Backend\x20Function\x20script(s)\x20for\x20pull','lockFilePath','read','conflict','pull','2WCEIpt','utf8','Pull\x20remote\x20Backend\x20Function\x20scripts\x20to\x20local','\x20skipped,\x20','1146456jpALbd','functionNode','lockKey','hookLocation','stringify','appCode','local\x20unsynced\x20changes','trim','4083150OCiFHh','3687132cBOsdV','Lock\x20scope\x20for\x20app\x20\x22','apiDir','version','\x20failed','Remote\x20script\x20missing\x20content.','Force\x20overwrite\x20local\x20unsynced\x20changes','scriptContent','string','question','758147agpakH','HOOK','stdin','push','Pull\x20complete:\x20','No\x20remote\x20Backend\x20Function\x20scripts\x20found.','\x22\x20not\x20found\x20after\x20ensureLockScope.','3442428DjyoNn','str','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','nonInteractive','\x20pulled,\x20','scriptsRoot','type','operationType','7NkkDMm','toISOString','&type=','all','Pull\x20only\x20this\x20script\x20type','unresolvable\x20target\x20path','18rDIhKM','yes','force','map','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','1043481RxzmEV','toLowerCase','functionName','length','bool','scriptType','10tbfqPm','datasetCode','filePath','lastSync','alias','451948UIItia','functions','would_pull','COMMON','validation'];a36_0x2f4b=function(){return _0x20c1ff;};return a36_0x2f4b();}async function confirmForce(){const _0x11be3a=a36_0xd8957e,_0x4560c3=createInterface({'input':process[_0x11be3a(0x189)],'output':process['stderr']}),_0x308e6b=await new Promise(_0xded04c=>{const _0x33894e=_0x11be3a;_0x4560c3[_0x33894e(0x186)](_0x33894e(0x1a0),_0xded04c);});return _0x4560c3[_0x11be3a(0x16a)](),['y',_0x11be3a(0x19d)]['includes'](_0x308e6b[_0x11be3a(0x17b)]()[_0x11be3a(0x1a2)]());}
@@ -1 +1 @@
1
- const a37_0x366196=a37_0x3241;function a37_0x52fb(){const _0x19f1ff=['version','operationType','\x22\x20not\x20found\x20after\x20ensureLockScope.','2437130xCIqMY','Push\x20only\x20this\x20script\x20type','cleared','code','utf8','runtime\x20cache\x20not\x20needed','datasetCode','values','27TepRnX','Local\x20function\x20not\x20found:\x20','functionNode','datasetId','281986MbgrVH',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','validation','create','scriptsRoot','lockKey','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','datasetCodeToDataset','toISOString','/api/management/library/scripts/save','649368VURfNm','would_push','filePath','name','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','map','30ckMsKN','alias','15474FokNJN','HOOK','No\x20local\x20Backend\x20Function\x20scripts\x20found.','Force\x20push\x20ignoring\x20hash\x20protection','POST','unchanged','aliasToDatasetCode','force','Incomplete\x20HOOK\x20path:\x20','script','type','status','Lock\x20scope\x20for\x20app\x20\x22','Push\x20complete:\x20','set','remoteId','boolean','COMMON','Runtime\x20script\x20cache\x20cleared.','204564EFEdDU','\x22.\x20','Would\x20inspect\x20','push','bool','bff','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','description','2338608ukLsBE','length','has','66OsdQGR','130HqJHFv','string','runtime\x20cache\x20clear\x20failed','\x20uploaded,\x20','\x20skipped,\x20','filter','str','update','appCode','apps','runtime\x20cache\x20cleared','stringify','some','1920436ClYiEs','lastSync',',\x20deployment\x20sync\x20','6flNkLX','lockFilePath','get','functions','attempted'];a37_0x52fb=function(){return _0x19f1ff;};return a37_0x52fb();}(function(_0x5bc47e,_0x253cd6){const _0x40a15a=a37_0x3241,_0x1911ce=_0x5bc47e();while(!![]){try{const _0x118b77=-parseInt(_0x40a15a(0x206))/0x1*(-parseInt(_0x40a15a(0x21a))/0x2)+parseInt(_0x40a15a(0x22b))/0x3*(-parseInt(_0x40a15a(0x240))/0x4)+-parseInt(_0x40a15a(0x1f6))/0x5*(parseInt(_0x40a15a(0x22d))/0x6)+-parseInt(_0x40a15a(0x203))/0x7+parseInt(_0x40a15a(0x225))/0x8+parseInt(_0x40a15a(0x216))/0x9*(-parseInt(_0x40a15a(0x20e))/0xa)+parseInt(_0x40a15a(0x1f5))/0xb*(parseInt(_0x40a15a(0x1f2))/0xc);if(_0x118b77===_0x253cd6)break;else _0x1911ce['push'](_0x1911ce['shift']());}catch(_0x3dff0b){_0x1911ce['push'](_0x1911ce['shift']());}}}(a37_0x52fb,0x7d1e2));import{readFile}from'node:fs/promises';function a37_0x3241(_0x3aeac5,_0x309f51){_0x3aeac5=_0x3aeac5-0x1ef;const _0x52fb91=a37_0x52fb();let _0x324107=_0x52fb91[_0x3aeac5];return _0x324107;}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';import{sleep}from'../../utils/sleep.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{automaticDeploymentSyncSucceeded,buildAutomaticDeploymentSyncPreview,runAutomaticDeploymentSync}from'../../commands/deployment/auto-sync.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':'bff','command':'push','description':a37_0x366196(0x1f0),'risk':'write','flags':[{'name':a37_0x366196(0x237),'type':'string','description':a37_0x366196(0x20f),'enum':[a37_0x366196(0x23e),'ENDPOINT','HOOK']},{'name':a37_0x366196(0x228),'type':a37_0x366196(0x1f7),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a37_0x366196(0x234),'type':a37_0x366196(0x23d),'description':a37_0x366196(0x230)}],async 'dryRun'(_0x322d9c){const _0x4e7478=a37_0x366196,_0x3525cf=loadBffProjectConfig(_0x322d9c[_0x4e7478(0x1fe)]),_0x313ef9=await readBffLockFile(_0x3525cf[_0x4e7478(0x207)]),{appLock:_0x343627}=ensureLockScope(_0x313ef9??createEmptyBffLock(),_0x322d9c[_0x4e7478(0x1fe)],_0x3525cf[_0x4e7478(0x21e)],_0x4e7478(0x243)),_0x51e99b=await getTargetFunctions(_0x3525cf,_0x322d9c),_0x1a6e48=_0x322d9c['bool'](_0x4e7478(0x234)),_0x153e1a=[],_0x1bcafb=[];for(const _0x349850 of _0x51e99b){const _0x17814e=await computeFileHash(_0x349850[_0x4e7478(0x227)]),_0x3fdff5=_0x343627[_0x4e7478(0x209)][_0x349850[_0x4e7478(0x21f)]],_0x11f36c=!!_0x3fdff5&&_0x3fdff5['hash']===_0x17814e,_0x29c309=!_0x1a6e48&&_0x11f36c?'unchanged':_0x4e7478(0x226);_0x153e1a[_0x4e7478(0x243)]({'lockKey':_0x349850[_0x4e7478(0x21f)],'filePath':_0x349850[_0x4e7478(0x227)],'remoteId':_0x3fdff5?.[_0x4e7478(0x23c)]??null,'mode':_0x3fdff5?.['remoteId']?_0x4e7478(0x1fd):_0x4e7478(0x21d),'status':_0x29c309});if(_0x29c309===_0x4e7478(0x226))_0x1bcafb[_0x4e7478(0x243)](_0x349850[_0x4e7478(0x228)]);}return{'method':_0x4e7478(0x231),'url':_0x4e7478(0x224),'deploymentSync':buildAutomaticDeploymentSyncPreview('bff',_0x1bcafb),'body':{'appCode':_0x322d9c[_0x4e7478(0x1fe)],'force':_0x1a6e48,'files':_0x153e1a,'cacheClearAtRuntime':_0x153e1a[_0x4e7478(0x202)](_0x3f6efe=>_0x3f6efe[_0x4e7478(0x238)]===_0x4e7478(0x226)),'cacheClearAtRuntimeTimes':_0x153e1a[_0x4e7478(0x202)](_0x156650=>_0x156650[_0x4e7478(0x238)]===_0x4e7478(0x226))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x4e7478(0x242)+_0x153e1a[_0x4e7478(0x1f3)]+_0x4e7478(0x221)};},async 'execute'(_0x47a211){const _0x29e298=a37_0x366196,_0x22f732=loadBffProjectConfig(_0x47a211[_0x29e298(0x1fe)]),_0x4033f3=await readBffLockFile(_0x22f732[_0x29e298(0x207)]),{lockData:_0x13f318,appLock:_0x558684}=ensureLockScope(_0x4033f3??createEmptyBffLock(),_0x47a211['appCode'],_0x22f732[_0x29e298(0x21e)],'push'),_0x3722c3=await getTargetFunctions(_0x22f732,_0x47a211);if(_0x3722c3['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x29e298(0x22f)};const _0x4e6989=_0x47a211[_0x29e298(0x244)](_0x29e298(0x234)),_0x48f11c=JSON['parse'](JSON[_0x29e298(0x201)](_0x13f318)),_0x3a79bc=_0x48f11c[_0x29e298(0x1ff)][_0x47a211[_0x29e298(0x1fe)]];if(!_0x3a79bc)throw new Error(_0x29e298(0x239)+_0x47a211['appCode']+_0x29e298(0x20d));const _0x7de08d=await buildHookMaps(_0x47a211['appCode'],_0x47a211['apiDir'],_0x3722c3,_0x3a79bc),_0x2b25ff=[],_0x261425=[],_0x3d9184=[],_0x5ed73e=[];for(const _0x1dc3e9 of _0x3722c3){const _0x119a92=await computeFileHash(_0x1dc3e9[_0x29e298(0x227)]),_0x44ee1c=_0x3a79bc['functions'][_0x1dc3e9[_0x29e298(0x21f)]];if(!_0x4e6989&&_0x44ee1c&&_0x44ee1c['hash']===_0x119a92){_0x3d9184[_0x29e298(0x243)]({'lockKey':_0x1dc3e9[_0x29e298(0x21f)],'reason':_0x29e298(0x232)});continue;}try{await uploadSingleFunction(_0x47a211['appCode'],_0x1dc3e9,_0x3a79bc,_0x7de08d);const _0x43ec8a=_0x3a79bc[_0x29e298(0x209)][_0x1dc3e9[_0x29e298(0x21f)]];_0x2b25ff[_0x29e298(0x243)]({'lockKey':_0x1dc3e9['lockKey'],'remoteId':_0x43ec8a?.[_0x29e298(0x23c)]??0x0}),_0x261425[_0x29e298(0x243)](_0x1dc3e9[_0x29e298(0x228)]);}catch(_0x798947){_0x5ed73e['push']({'lockKey':_0x1dc3e9['lockKey'],'error':_0x798947 instanceof Error?_0x798947['message']:String(_0x798947)});}}_0x3a79bc[_0x29e298(0x204)]=new Date()[_0x29e298(0x223)](),await writeBffLockFile(_0x22f732[_0x29e298(0x207)],_0x48f11c),await waitForUploadedLockEntries(_0x22f732[_0x29e298(0x207)],_0x47a211[_0x29e298(0x1fe)],_0x2b25ff[_0x29e298(0x22a)](_0x3849bd=>_0x3849bd[_0x29e298(0x21f)]));let _0x37816b={'attempted':![],'cleared':![]};if(_0x2b25ff[_0x29e298(0x1f3)]>0x0)try{let _0x49c28b='';for(let _0xf6df56=0x0;_0xf6df56<CACHE_CLEAR_ATTEMPTS;_0xf6df56+=0x1){_0x49c28b=await clearBffScriptCache(),_0xf6df56<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x37816b={'attempted':!![],'cleared':!![],'message':_0x49c28b||_0x29e298(0x23f)};}catch(_0x202980){_0x37816b={'attempted':!![],'cleared':![],'error':_0x202980 instanceof Error?_0x202980['message']:String(_0x202980)};}const _0xdeed78=_0x5ed73e[_0x29e298(0x1f3)]===0x0&&(_0x37816b[_0x29e298(0x20a)]?_0x37816b[_0x29e298(0x210)]:!![]),_0x1c7bfc=await runAutomaticDeploymentSync(_0x47a211,_0x29e298(0x245),_0x261425,_0xdeed78),_0x294f60=_0xdeed78&&automaticDeploymentSyncSucceeded(_0x1c7bfc),_0x4391fb=_0x37816b['attempted']?_0x37816b[_0x29e298(0x210)]?_0x29e298(0x200):_0x29e298(0x1f8):_0x29e298(0x213),_0x842809=_0x29e298(0x205)+_0x1c7bfc['status'];return{'ok':_0x294f60,'data':{'uploaded':_0x2b25ff,'skipped':_0x3d9184,'failed':_0x5ed73e,'cacheClear':_0x37816b,'deploymentSync':_0x1c7bfc},'message':_0x29e298(0x23a)+_0x2b25ff[_0x29e298(0x1f3)]+_0x29e298(0x1f9)+_0x3d9184[_0x29e298(0x1f3)]+_0x29e298(0x1fa)+_0x5ed73e[_0x29e298(0x1f3)]+'\x20failed,\x20'+_0x4391fb+_0x842809};}};async function getTargetFunctions(_0x4f09d5,_0x3a2f2a){const _0x3b3722=a37_0x366196,_0x29d077=_0x3a2f2a['str']('type'),_0x24a7c3=_0x3a2f2a[_0x3b3722(0x1fc)]('name'),_0x3c46ba=normalizeBffType(_0x29d077)??undefined;if(_0x24a7c3&&!_0x3c46ba)throw CliErrors['validation'](_0x3b3722(0x229));const _0x3ca95c=await scanLocalBffFunctions(_0x4f09d5,_0x3c46ba);if(_0x24a7c3){const _0x19f49f=_0x3ca95c[_0x3b3722(0x1fb)](_0xf36f75=>_0xf36f75[_0x3b3722(0x228)]===_0x24a7c3);if(_0x19f49f[_0x3b3722(0x1f3)]===0x0)throw CliErrors['validation'](_0x3b3722(0x217)+_0x3c46ba+'/'+_0x24a7c3);return _0x19f49f;}return _0x3ca95c;}async function buildHookMaps(_0x13020d,_0x3f299d,_0x5613ad,_0x14defc){const _0xa37306=a37_0x366196,_0x536ad0=_0x5613ad[_0xa37306(0x202)](_0x489509=>_0x489509[_0xa37306(0x237)]===_0xa37306(0x22e));if(!_0x536ad0)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x2df0db=loadAliasMap(_0x3f299d,undefined,resolveApiFilePath(_0x3f299d,_0x13020d)),_0x22d8fd=new Map(_0x2df0db[_0xa37306(0x22a)](_0x50f7ca=>[_0x50f7ca[_0xa37306(0x22c)],_0x50f7ca[_0xa37306(0x214)]]));for(const _0x427e73 of Object[_0xa37306(0x215)](_0x14defc['functions'])){_0x427e73[_0xa37306(0x22c)]&&_0x427e73[_0xa37306(0x214)]&&!_0x22d8fd[_0xa37306(0x1f4)](_0x427e73[_0xa37306(0x22c)])&&_0x22d8fd[_0xa37306(0x23b)](_0x427e73[_0xa37306(0x22c)],_0x427e73[_0xa37306(0x214)]);}const _0x3dca3b=await listDatasets(_0x13020d),_0x3e4f86=new Map(_0x3dca3b[_0xa37306(0x22a)](_0x3dd250=>[_0x3dd250[_0xa37306(0x211)],_0x3dd250]));return{'aliasToDatasetCode':_0x22d8fd,'datasetCodeToDataset':_0x3e4f86};}async function uploadSingleFunction(_0x491f94,_0x3cd60f,_0xec32b,_0x406698){const _0x330f5a=a37_0x366196,_0x3392ca=await readFile(_0x3cd60f[_0x330f5a(0x227)],_0x330f5a(0x212)),_0x18633f=await computeFileHash(_0x3cd60f[_0x330f5a(0x227)]),_0x47e9dc=_0xec32b[_0x330f5a(0x209)][_0x3cd60f[_0x330f5a(0x21f)]];if(_0x47e9dc?.[_0x330f5a(0x23c)]&&_0x47e9dc[_0x330f5a(0x20b)]==null)throw CliErrors['validation'](_0x3cd60f['lockKey']+_0x330f5a(0x21b));let _0x413cf3=extractScriptDescription(_0x3392ca);if(!_0x413cf3&&_0x47e9dc?.[_0x330f5a(0x23c)]){const _0x157a3d=await getBffScriptInfo(_0x47e9dc[_0x330f5a(0x23c)]);_0x413cf3=_0x157a3d[_0x330f5a(0x1f1)]||undefined;}const _0x1cfae9={'appCode':_0x491f94,'functionName':_0x3cd60f[_0x330f5a(0x228)],'scriptType':_0x3cd60f['type'],'scriptContent':_0x3392ca};if(_0x47e9dc?.[_0x330f5a(0x23c)])_0x1cfae9['id']=_0x47e9dc[_0x330f5a(0x23c)];if(_0x47e9dc?.[_0x330f5a(0x20b)]!=null)_0x1cfae9[_0x330f5a(0x20b)]=_0x47e9dc[_0x330f5a(0x20b)];if(_0x413cf3)_0x1cfae9[_0x330f5a(0x1f1)]=_0x413cf3;if(_0x3cd60f['type']===_0x330f5a(0x22e)){const _0x53a205=_0x3cd60f[_0x330f5a(0x22c)];if(!_0x53a205||!_0x3cd60f[_0x330f5a(0x20c)]||!_0x3cd60f[_0x330f5a(0x218)])throw CliErrors['validation'](_0x330f5a(0x235)+_0x3cd60f[_0x330f5a(0x21f)]);const _0x347f01=_0x406698['aliasToDatasetCode']['get'](_0x53a205)??_0x47e9dc?.[_0x330f5a(0x214)]??_0x53a205,_0x338d04=_0x406698[_0x330f5a(0x222)][_0x330f5a(0x208)](_0x347f01);if(!_0x338d04)throw CliErrors[_0x330f5a(0x21c)]('Cannot\x20resolve\x20dataset\x20for\x20\x22'+_0x53a205+_0x330f5a(0x241)+('Run\x20`'+CLI_BIN_NAME+_0x330f5a(0x220)));_0x1cfae9[_0x330f5a(0x219)]=_0x338d04['id'],_0x1cfae9[_0x330f5a(0x20c)]=_0x3cd60f['operationType'],_0x1cfae9[_0x330f5a(0x218)]=_0x3cd60f[_0x330f5a(0x218)];}const _0x51fa77=await saveBffScript(_0x1cfae9),_0x2c1789=_0x51fa77['id'],_0x33fcf6=_0x51fa77[_0x330f5a(0x236)]??await getBffScriptInfo(_0x2c1789),_0x1cad00={'hash':_0x18633f,'remoteId':_0x2c1789,'version':_0x33fcf6[_0x330f5a(0x20b)]};if(_0x3cd60f[_0x330f5a(0x237)]==='HOOK'){const _0xb0445b=_0x3cd60f[_0x330f5a(0x22c)],_0x10c2ff=_0x406698[_0x330f5a(0x233)][_0x330f5a(0x208)](_0xb0445b)??_0x47e9dc?.['datasetCode']??_0xb0445b;_0x406698[_0x330f5a(0x233)]['has'](_0xb0445b)?_0x1cad00[_0x330f5a(0x22c)]=_0xb0445b:_0x1cad00[_0x330f5a(0x22c)]=_0x47e9dc?.[_0x330f5a(0x22c)],_0x1cad00[_0x330f5a(0x214)]=_0x10c2ff,_0x1cad00[_0x330f5a(0x20c)]=_0x3cd60f[_0x330f5a(0x20c)],_0x1cad00[_0x330f5a(0x218)]=_0x3cd60f[_0x330f5a(0x218)];}_0xec32b[_0x330f5a(0x209)][_0x3cd60f[_0x330f5a(0x21f)]]=_0x1cad00;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x4e44b7,_0x5880a9,_0x15206d){const _0x7a7263=a37_0x366196;if(_0x15206d['length']===0x0)return;for(let _0x33327b=0x0;_0x33327b<LOCK_SETTLE_RETRY_COUNT;_0x33327b+=0x1){const _0xc6ad7b=await readBffLockFile(_0x4e44b7),_0x29c9d9=_0xc6ad7b?.['apps']?.[_0x5880a9]?.[_0x7a7263(0x209)]??{},_0x55a7bf=_0x15206d['every'](_0xc49505=>!!_0x29c9d9[_0xc49505]?.[_0x7a7263(0x23c)]);if(_0x55a7bf)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x7a7263(0x1ef)+_0x15206d['join'](',\x20')+'.');}
1
+ const a37_0x39cf98=a37_0x57de;(function(_0x22f9f2,_0x13d5c6){const _0xe70399=a37_0x57de,_0x26aa49=_0x22f9f2();while(!![]){try{const _0x49271d=-parseInt(_0xe70399(0x17a))/0x1+-parseInt(_0xe70399(0x16b))/0x2*(-parseInt(_0xe70399(0x141))/0x3)+parseInt(_0xe70399(0x16a))/0x4+-parseInt(_0xe70399(0x143))/0x5*(parseInt(_0xe70399(0x130))/0x6)+-parseInt(_0xe70399(0x173))/0x7*(parseInt(_0xe70399(0x14d))/0x8)+-parseInt(_0xe70399(0x15d))/0x9*(-parseInt(_0xe70399(0x135))/0xa)+-parseInt(_0xe70399(0x174))/0xb*(-parseInt(_0xe70399(0x12a))/0xc);if(_0x49271d===_0x13d5c6)break;else _0x26aa49['push'](_0x26aa49['shift']());}catch(_0x4fbc83){_0x26aa49['push'](_0x26aa49['shift']());}}}(a37_0x1cab,0xbcce5));import{readFile}from'node:fs/promises';function a37_0x57de(_0x5cbdee,_0x4bed17){_0x5cbdee=_0x5cbdee-0x12a;const _0x1cab7c=a37_0x1cab();let _0x57de20=_0x1cab7c[_0x5cbdee];return _0x57de20;}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';function a37_0x1cab(){const _0x287b49=['Run\x20`','3QbhxKi','Cannot\x20resolve\x20dataset\x20for\x20\x22','1223805nLcUsz','datasetCode','bff',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','scriptsRoot','string','map','Push\x20complete:\x20','description','status','532568rYHSUa','/api/management/library/scripts/save','lastSync','every','apps','hash','join','length','No\x20local\x20Backend\x20Function\x20scripts\x20found.','alias','type','runtime\x20cache\x20cleared','apiDir','set','remoteId','name','819BNtyeT','Would\x20inspect\x20','ENDPOINT','cleared','Force\x20push\x20ignoring\x20hash\x20protection','Lock\x20scope\x20for\x20app\x20\x22','attempted','aliasToDatasetCode',',\x20deployment\x20sync\x20','lockKey','utf8','validation','get','3212204fjqJSs','254614VYbPsx','\x22\x20not\x20found\x20after\x20ensureLockScope.','bool','\x20failed,\x20','boolean','create','update','Runtime\x20script\x20cache\x20cleared.','7qKIRhg','44zJFBoA','filePath','runtime\x20cache\x20not\x20needed','lockFilePath','stringify','datasetCodeToDataset','181591oDdmaw','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','functions','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','980988JmaqmP','HOOK','unchanged','Push\x20only\x20this\x20script\x20type','some','\x22.\x20','6NetFUB','datasetId','would_push','version','appCode','980UeZgvv','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','Incomplete\x20HOOK\x20path:\x20','POST','operationType','script','functionNode','force','push','\x20uploaded,\x20','values'];a37_0x1cab=function(){return _0x287b49;};return a37_0x1cab();}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';import{automaticDeploymentSyncSucceeded,buildAutomaticDeploymentSyncPreview,runAutomaticDeploymentSync}from'../../commands/deployment/auto-sync.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a37_0x39cf98(0x145),'command':a37_0x39cf98(0x13d),'description':'Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','risk':'write','flags':[{'name':'type','type':a37_0x39cf98(0x148),'description':a37_0x39cf98(0x12d),'enum':['COMMON',a37_0x39cf98(0x15f),a37_0x39cf98(0x12b)]},{'name':'name','type':a37_0x39cf98(0x148),'description':a37_0x39cf98(0x136)},{'name':a37_0x39cf98(0x13c),'type':a37_0x39cf98(0x16f),'description':a37_0x39cf98(0x161)}],async 'dryRun'(_0x2c71c5){const _0x8cd7f9=a37_0x39cf98,_0x329fb5=loadBffProjectConfig(_0x2c71c5[_0x8cd7f9(0x134)]),_0x3696f4=await readBffLockFile(_0x329fb5[_0x8cd7f9(0x177)]),{appLock:_0x3f1f49}=ensureLockScope(_0x3696f4??createEmptyBffLock(),_0x2c71c5[_0x8cd7f9(0x134)],_0x329fb5[_0x8cd7f9(0x147)],'push'),_0x210b48=await getTargetFunctions(_0x329fb5,_0x2c71c5),_0x4aea26=_0x2c71c5[_0x8cd7f9(0x16d)](_0x8cd7f9(0x13c)),_0xe3539b=[],_0x8d8d0e=[];for(const _0x17c742 of _0x210b48){const _0x2c684a=await computeFileHash(_0x17c742[_0x8cd7f9(0x175)]),_0x47405e=_0x3f1f49[_0x8cd7f9(0x17c)][_0x17c742['lockKey']],_0x312ecb=!!_0x47405e&&_0x47405e[_0x8cd7f9(0x152)]===_0x2c684a,_0x284ecd=!_0x4aea26&&_0x312ecb?_0x8cd7f9(0x12c):'would_push';_0xe3539b['push']({'lockKey':_0x17c742['lockKey'],'filePath':_0x17c742[_0x8cd7f9(0x175)],'remoteId':_0x47405e?.[_0x8cd7f9(0x15b)]??null,'mode':_0x47405e?.[_0x8cd7f9(0x15b)]?_0x8cd7f9(0x171):_0x8cd7f9(0x170),'status':_0x284ecd});if(_0x284ecd===_0x8cd7f9(0x132))_0x8d8d0e[_0x8cd7f9(0x13d)](_0x17c742[_0x8cd7f9(0x15c)]);}return{'method':_0x8cd7f9(0x138),'url':_0x8cd7f9(0x14e),'deploymentSync':buildAutomaticDeploymentSyncPreview(_0x8cd7f9(0x145),_0x8d8d0e),'body':{'appCode':_0x2c71c5[_0x8cd7f9(0x134)],'force':_0x4aea26,'files':_0xe3539b,'cacheClearAtRuntime':_0xe3539b[_0x8cd7f9(0x12e)](_0x45b5fe=>_0x45b5fe[_0x8cd7f9(0x14c)]===_0x8cd7f9(0x132)),'cacheClearAtRuntimeTimes':_0xe3539b[_0x8cd7f9(0x12e)](_0x317dcf=>_0x317dcf[_0x8cd7f9(0x14c)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x8cd7f9(0x15e)+_0xe3539b[_0x8cd7f9(0x154)]+_0x8cd7f9(0x17d)};},async 'execute'(_0x4aff4c){const _0x1a9ecc=a37_0x39cf98,_0x2b4e8e=loadBffProjectConfig(_0x4aff4c[_0x1a9ecc(0x134)]),_0x12249e=await readBffLockFile(_0x2b4e8e[_0x1a9ecc(0x177)]),{lockData:_0x5b7342,appLock:_0x1b63bf}=ensureLockScope(_0x12249e??createEmptyBffLock(),_0x4aff4c['appCode'],_0x2b4e8e[_0x1a9ecc(0x147)],_0x1a9ecc(0x13d)),_0x142d4f=await getTargetFunctions(_0x2b4e8e,_0x4aff4c);if(_0x142d4f[_0x1a9ecc(0x154)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x1a9ecc(0x155)};const _0x1a1b5b=_0x4aff4c[_0x1a9ecc(0x16d)](_0x1a9ecc(0x13c)),_0xcd2bd4=JSON['parse'](JSON[_0x1a9ecc(0x178)](_0x5b7342)),_0x5ce1ef=_0xcd2bd4[_0x1a9ecc(0x151)][_0x4aff4c[_0x1a9ecc(0x134)]];if(!_0x5ce1ef)throw new Error(_0x1a9ecc(0x162)+_0x4aff4c[_0x1a9ecc(0x134)]+_0x1a9ecc(0x16c));const _0x5bd2f3=await buildHookMaps(_0x4aff4c[_0x1a9ecc(0x134)],_0x4aff4c[_0x1a9ecc(0x159)],_0x142d4f,_0x5ce1ef),_0x3efc85=[],_0x14339d=[],_0x5b46b3=[],_0x5030ee=[];for(const _0x3fd603 of _0x142d4f){const _0x4969db=await computeFileHash(_0x3fd603['filePath']),_0x3bb3a0=_0x5ce1ef[_0x1a9ecc(0x17c)][_0x3fd603['lockKey']];if(!_0x1a1b5b&&_0x3bb3a0&&_0x3bb3a0[_0x1a9ecc(0x152)]===_0x4969db){_0x5b46b3[_0x1a9ecc(0x13d)]({'lockKey':_0x3fd603[_0x1a9ecc(0x166)],'reason':_0x1a9ecc(0x12c)});continue;}try{await uploadSingleFunction(_0x4aff4c[_0x1a9ecc(0x134)],_0x3fd603,_0x5ce1ef,_0x5bd2f3);const _0x1885ca=_0x5ce1ef[_0x1a9ecc(0x17c)][_0x3fd603['lockKey']];_0x3efc85[_0x1a9ecc(0x13d)]({'lockKey':_0x3fd603['lockKey'],'remoteId':_0x1885ca?.[_0x1a9ecc(0x15b)]??0x0}),_0x14339d['push'](_0x3fd603[_0x1a9ecc(0x15c)]);}catch(_0x2f7c73){_0x5030ee[_0x1a9ecc(0x13d)]({'lockKey':_0x3fd603[_0x1a9ecc(0x166)],'error':_0x2f7c73 instanceof Error?_0x2f7c73['message']:String(_0x2f7c73)});}}_0x5ce1ef[_0x1a9ecc(0x14f)]=new Date()['toISOString'](),await writeBffLockFile(_0x2b4e8e['lockFilePath'],_0xcd2bd4),await waitForUploadedLockEntries(_0x2b4e8e[_0x1a9ecc(0x177)],_0x4aff4c['appCode'],_0x3efc85[_0x1a9ecc(0x149)](_0x31896e=>_0x31896e[_0x1a9ecc(0x166)]));let _0x545ea7={'attempted':![],'cleared':![]};if(_0x3efc85[_0x1a9ecc(0x154)]>0x0)try{let _0x4267f3='';for(let _0x497741=0x0;_0x497741<CACHE_CLEAR_ATTEMPTS;_0x497741+=0x1){_0x4267f3=await clearBffScriptCache(),_0x497741<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x545ea7={'attempted':!![],'cleared':!![],'message':_0x4267f3||_0x1a9ecc(0x172)};}catch(_0x4d6f6b){_0x545ea7={'attempted':!![],'cleared':![],'error':_0x4d6f6b instanceof Error?_0x4d6f6b['message']:String(_0x4d6f6b)};}const _0x2b9b97=_0x5030ee['length']===0x0&&(_0x545ea7[_0x1a9ecc(0x163)]?_0x545ea7[_0x1a9ecc(0x160)]:!![]),_0x320b9d=await runAutomaticDeploymentSync(_0x4aff4c,_0x1a9ecc(0x145),_0x14339d,_0x2b9b97),_0x42e959=_0x2b9b97&&automaticDeploymentSyncSucceeded(_0x320b9d),_0x4c383d=_0x545ea7[_0x1a9ecc(0x163)]?_0x545ea7['cleared']?_0x1a9ecc(0x158):'runtime\x20cache\x20clear\x20failed':_0x1a9ecc(0x176),_0x2a6080=_0x1a9ecc(0x165)+_0x320b9d[_0x1a9ecc(0x14c)];return{'ok':_0x42e959,'data':{'uploaded':_0x3efc85,'skipped':_0x5b46b3,'failed':_0x5030ee,'cacheClear':_0x545ea7,'deploymentSync':_0x320b9d},'message':_0x1a9ecc(0x14a)+_0x3efc85['length']+_0x1a9ecc(0x13e)+_0x5b46b3[_0x1a9ecc(0x154)]+'\x20skipped,\x20'+_0x5030ee[_0x1a9ecc(0x154)]+_0x1a9ecc(0x16e)+_0x4c383d+_0x2a6080};}};async function getTargetFunctions(_0x195e42,_0x36e528){const _0x2b5d3d=a37_0x39cf98,_0x1e1ddb=_0x36e528['str'](_0x2b5d3d(0x157)),_0x2d5f80=_0x36e528['str'](_0x2b5d3d(0x15c)),_0x2bf215=normalizeBffType(_0x1e1ddb)??undefined;if(_0x2d5f80&&!_0x2bf215)throw CliErrors[_0x2b5d3d(0x168)]('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x3c599a=await scanLocalBffFunctions(_0x195e42,_0x2bf215);if(_0x2d5f80){const _0x3f66e0=_0x3c599a['filter'](_0x482caa=>_0x482caa[_0x2b5d3d(0x15c)]===_0x2d5f80);if(_0x3f66e0['length']===0x0)throw CliErrors[_0x2b5d3d(0x168)]('Local\x20function\x20not\x20found:\x20'+_0x2bf215+'/'+_0x2d5f80);return _0x3f66e0;}return _0x3c599a;}async function buildHookMaps(_0x3a6c93,_0xc16629,_0x4aeae9,_0x4c12b1){const _0x3c87c0=a37_0x39cf98,_0xc590e1=_0x4aeae9[_0x3c87c0(0x12e)](_0x3173ca=>_0x3173ca['type']===_0x3c87c0(0x12b));if(!_0xc590e1)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x122dfa=loadAliasMap(_0xc16629,undefined,resolveApiFilePath(_0xc16629,_0x3a6c93)),_0x45a05f=new Map(_0x122dfa[_0x3c87c0(0x149)](_0x1299e9=>[_0x1299e9[_0x3c87c0(0x156)],_0x1299e9[_0x3c87c0(0x144)]]));for(const _0x30a533 of Object[_0x3c87c0(0x13f)](_0x4c12b1[_0x3c87c0(0x17c)])){_0x30a533[_0x3c87c0(0x156)]&&_0x30a533[_0x3c87c0(0x144)]&&!_0x45a05f['has'](_0x30a533['alias'])&&_0x45a05f[_0x3c87c0(0x15a)](_0x30a533['alias'],_0x30a533[_0x3c87c0(0x144)]);}const _0x503317=await listDatasets(_0x3a6c93),_0x3bf920=new Map(_0x503317[_0x3c87c0(0x149)](_0x2f0174=>[_0x2f0174['code'],_0x2f0174]));return{'aliasToDatasetCode':_0x45a05f,'datasetCodeToDataset':_0x3bf920};}async function uploadSingleFunction(_0x1918ed,_0x314b55,_0x2e422e,_0x404b34){const _0x5101ff=a37_0x39cf98,_0x419e23=await readFile(_0x314b55[_0x5101ff(0x175)],_0x5101ff(0x167)),_0x413c5f=await computeFileHash(_0x314b55['filePath']),_0x681134=_0x2e422e[_0x5101ff(0x17c)][_0x314b55['lockKey']];if(_0x681134?.[_0x5101ff(0x15b)]&&_0x681134[_0x5101ff(0x133)]==null)throw CliErrors[_0x5101ff(0x168)](_0x314b55[_0x5101ff(0x166)]+_0x5101ff(0x146));let _0x7b574c=extractScriptDescription(_0x419e23);if(!_0x7b574c&&_0x681134?.['remoteId']){const _0x9c7dc6=await getBffScriptInfo(_0x681134['remoteId']);_0x7b574c=_0x9c7dc6[_0x5101ff(0x14b)]||undefined;}const _0x50a57d={'appCode':_0x1918ed,'functionName':_0x314b55[_0x5101ff(0x15c)],'scriptType':_0x314b55['type'],'scriptContent':_0x419e23};if(_0x681134?.[_0x5101ff(0x15b)])_0x50a57d['id']=_0x681134['remoteId'];if(_0x681134?.[_0x5101ff(0x133)]!=null)_0x50a57d[_0x5101ff(0x133)]=_0x681134[_0x5101ff(0x133)];if(_0x7b574c)_0x50a57d[_0x5101ff(0x14b)]=_0x7b574c;if(_0x314b55['type']===_0x5101ff(0x12b)){const _0x30cf31=_0x314b55[_0x5101ff(0x156)];if(!_0x30cf31||!_0x314b55['operationType']||!_0x314b55[_0x5101ff(0x13b)])throw CliErrors[_0x5101ff(0x168)](_0x5101ff(0x137)+_0x314b55[_0x5101ff(0x166)]);const _0x148b09=_0x404b34[_0x5101ff(0x164)][_0x5101ff(0x169)](_0x30cf31)??_0x681134?.[_0x5101ff(0x144)]??_0x30cf31,_0x44789a=_0x404b34[_0x5101ff(0x179)][_0x5101ff(0x169)](_0x148b09);if(!_0x44789a)throw CliErrors[_0x5101ff(0x168)](_0x5101ff(0x142)+_0x30cf31+_0x5101ff(0x12f)+(_0x5101ff(0x140)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.'));_0x50a57d[_0x5101ff(0x131)]=_0x44789a['id'],_0x50a57d['operationType']=_0x314b55[_0x5101ff(0x139)],_0x50a57d[_0x5101ff(0x13b)]=_0x314b55[_0x5101ff(0x13b)];}const _0x5c10ab=await saveBffScript(_0x50a57d),_0x930d8e=_0x5c10ab['id'],_0x3d8051=_0x5c10ab[_0x5101ff(0x13a)]??await getBffScriptInfo(_0x930d8e),_0x160d50={'hash':_0x413c5f,'remoteId':_0x930d8e,'version':_0x3d8051['version']};if(_0x314b55[_0x5101ff(0x157)]===_0x5101ff(0x12b)){const _0x18b3ff=_0x314b55[_0x5101ff(0x156)],_0x1b5c5b=_0x404b34[_0x5101ff(0x164)][_0x5101ff(0x169)](_0x18b3ff)??_0x681134?.[_0x5101ff(0x144)]??_0x18b3ff;_0x404b34[_0x5101ff(0x164)]['has'](_0x18b3ff)?_0x160d50[_0x5101ff(0x156)]=_0x18b3ff:_0x160d50[_0x5101ff(0x156)]=_0x681134?.[_0x5101ff(0x156)],_0x160d50[_0x5101ff(0x144)]=_0x1b5c5b,_0x160d50[_0x5101ff(0x139)]=_0x314b55[_0x5101ff(0x139)],_0x160d50[_0x5101ff(0x13b)]=_0x314b55['functionNode'];}_0x2e422e['functions'][_0x314b55[_0x5101ff(0x166)]]=_0x160d50;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x450d79,_0x1f8b99,_0x4bbd6d){const _0x3a1bb5=a37_0x39cf98;if(_0x4bbd6d[_0x3a1bb5(0x154)]===0x0)return;for(let _0x32e6ab=0x0;_0x32e6ab<LOCK_SETTLE_RETRY_COUNT;_0x32e6ab+=0x1){const _0x3ed457=await readBffLockFile(_0x450d79),_0x124b98=_0x3ed457?.[_0x3a1bb5(0x151)]?.[_0x1f8b99]?.[_0x3a1bb5(0x17c)]??{},_0x3932db=_0x4bbd6d[_0x3a1bb5(0x150)](_0x429d69=>!!_0x124b98[_0x429d69]?.[_0x3a1bb5(0x15b)]);if(_0x3932db)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x3a1bb5(0x17b)+_0x4bbd6d[_0x3a1bb5(0x153)](',\x20')+'.');}
@@ -1 +1 @@
1
- const a38_0x4192bf=a38_0x1296;(function(_0x5ebd4c,_0x2e76fc){const _0x4b80b8=a38_0x1296,_0x2ac774=_0x5ebd4c();while(!![]){try{const _0x211fc1=parseInt(_0x4b80b8(0x157))/0x1*(parseInt(_0x4b80b8(0x153))/0x2)+parseInt(_0x4b80b8(0x161))/0x3+parseInt(_0x4b80b8(0x158))/0x4+-parseInt(_0x4b80b8(0x15b))/0x5+-parseInt(_0x4b80b8(0x15f))/0x6*(parseInt(_0x4b80b8(0x163))/0x7)+parseInt(_0x4b80b8(0x154))/0x8+-parseInt(_0x4b80b8(0x155))/0x9;if(_0x211fc1===_0x2e76fc)break;else _0x2ac774['push'](_0x2ac774['shift']());}catch(_0x34af75){_0x2ac774['push'](_0x2ac774['shift']());}}}(a38_0x363c,0xa9d39));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';function a38_0x1296(_0x4116e2,_0x36b8ea){_0x4116e2=_0x4116e2-0x146;const _0x363c85=a38_0x363c();let _0x12963c=_0x363c85[_0x4116e2];return _0x12963c;}import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';function a38_0x363c(){const _0x468a2a=['read','length','lockKey','bool','alias','appCode','bff','scriptsRoot','datasetCode','remote','push','status','all','2112722BFJNQe','1301720nKCXQu','10441116uXRWgN','\x20unchanged','1WKXmNG','3909484tdrgcH','functions','filePath','2856570dFadaP','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','lockFilePath','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','5922pwVOvG','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','1748877EMMZEH','map','2499mvzHzr','apiDir'];a38_0x363c=function(){return _0x468a2a;};return a38_0x363c();}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a38_0x4192bf(0x14c),'command':'status','description':a38_0x4192bf(0x15c),'risk':a38_0x4192bf(0x146),'flags':[{'name':a38_0x4192bf(0x14f),'type':'boolean','description':a38_0x4192bf(0x160)}],async 'execute'(_0x3478fc){const _0x22b578=a38_0x4192bf,_0x2bc594=loadBffProjectConfig(_0x3478fc[_0x22b578(0x14b)]),_0x2618fb=await readBffLockFile(_0x2bc594[_0x22b578(0x15d)]),{appLock:_0x5869fc}=ensureLockScope(_0x2618fb??createEmptyBffLock(),_0x3478fc[_0x22b578(0x14b)],_0x2bc594[_0x22b578(0x14d)],_0x22b578(0x151)),_0xa9f31c=await scanLocalBffFunctions(_0x2bc594),_0x2bf89c=[],_0x216266=[],_0x255141=[];for(const _0x2d0de0 of _0xa9f31c){const _0x2b0837=await computeFileHash(_0x2d0de0[_0x22b578(0x15a)]),_0x1579cc=_0x5869fc[_0x22b578(0x159)][_0x2d0de0[_0x22b578(0x148)]];if(!_0x1579cc)_0x2bf89c['push'](_0x2d0de0[_0x22b578(0x148)]);else _0x1579cc['hash']!==_0x2b0837?_0x216266[_0x22b578(0x150)](_0x2d0de0[_0x22b578(0x148)]):_0x255141[_0x22b578(0x150)](_0x2d0de0['lockKey']);}const _0x1e4665=[];if(_0x3478fc[_0x22b578(0x149)](_0x22b578(0x14f))){const _0x121f5c=loadAliasMap(_0x3478fc[_0x22b578(0x164)],undefined,resolveApiFilePath(_0x3478fc[_0x22b578(0x164)],_0x3478fc['appCode'])),_0xc12dba=new Map(_0x121f5c[_0x22b578(0x162)](_0x390846=>[_0x390846[_0x22b578(0x14e)],_0x390846[_0x22b578(0x14a)]])),[_0x5d73f8,_0x40ef70]=await Promise[_0x22b578(0x152)]([listBffScripts(_0x3478fc[_0x22b578(0x14b)]),getBffScriptStatistics(_0x3478fc[_0x22b578(0x14b)])]),_0x73b336=createHookLocationMap(_0x40ef70),_0x4c9977=new Set(_0xa9f31c[_0x22b578(0x162)](_0x57b181=>_0x57b181[_0x22b578(0x148)]));for(const _0x49747e of _0x5d73f8){const _0x55f1ab=resolveRemoteScriptTarget(_0x2bc594,_0x49747e,_0x73b336,_0x5869fc[_0x22b578(0x159)],_0xc12dba);_0x55f1ab&&!_0x4c9977['has'](_0x55f1ab[_0x22b578(0x148)])&&_0x1e4665[_0x22b578(0x150)](_0x55f1ab[_0x22b578(0x148)]);}}const _0xd02aa9=_0x2bf89c[_0x22b578(0x147)]===0x0&&_0x216266[_0x22b578(0x147)]===0x0&&_0x1e4665['length']===0x0;return{'ok':!![],'data':{'added':_0x2bf89c,'modified':_0x216266,'unchanged':_0x255141,'remoteOnly':_0x1e4665},'message':_0xd02aa9?_0x22b578(0x15e):_0x2bf89c['length']+'\x20added,\x20'+_0x216266[_0x22b578(0x147)]+'\x20modified,\x20'+_0x255141[_0x22b578(0x147)]+_0x22b578(0x156)+(_0x1e4665[_0x22b578(0x147)]>0x0?',\x20'+_0x1e4665[_0x22b578(0x147)]+'\x20remote-only':'')};}};
1
+ const a38_0x3bff6f=a38_0x5e68;function a38_0x5e68(_0xf3d6ca,_0x4c8ab4){_0xf3d6ca=_0xf3d6ca-0x1b6;const _0x4273e1=a38_0x4273();let _0x5e6835=_0x4273e1[_0xf3d6ca];return _0x5e6835;}(function(_0x478b8a,_0x40a740){const _0x5cac59=a38_0x5e68,_0x5db4ac=_0x478b8a();while(!![]){try{const _0x47df1e=-parseInt(_0x5cac59(0x1ba))/0x1+parseInt(_0x5cac59(0x1bf))/0x2*(parseInt(_0x5cac59(0x1bb))/0x3)+parseInt(_0x5cac59(0x1d2))/0x4+-parseInt(_0x5cac59(0x1d0))/0x5+-parseInt(_0x5cac59(0x1bd))/0x6*(parseInt(_0x5cac59(0x1c2))/0x7)+-parseInt(_0x5cac59(0x1d5))/0x8+parseInt(_0x5cac59(0x1b9))/0x9;if(_0x47df1e===_0x40a740)break;else _0x5db4ac['push'](_0x5db4ac['shift']());}catch(_0x6d67f2){_0x5db4ac['push'](_0x5db4ac['shift']());}}}(a38_0x4273,0x513e9));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,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_0x3bff6f(0x1cb),'command':a38_0x3bff6f(0x1ce),'description':a38_0x3bff6f(0x1d3),'risk':'read','flags':[{'name':'remote','type':a38_0x3bff6f(0x1c4),'description':a38_0x3bff6f(0x1cf)}],async 'execute'(_0x289929){const _0x142e61=a38_0x3bff6f,_0x11623b=loadBffProjectConfig(_0x289929[_0x142e61(0x1b7)]),_0x19d19e=await readBffLockFile(_0x11623b[_0x142e61(0x1cd)]),{appLock:_0x4c55dc}=ensureLockScope(_0x19d19e??createEmptyBffLock(),_0x289929[_0x142e61(0x1b7)],_0x11623b[_0x142e61(0x1c1)],_0x142e61(0x1ce)),_0x4085fa=await scanLocalBffFunctions(_0x11623b),_0x2f4ac7=[],_0x12880b=[],_0x38330e=[];for(const _0x497a60 of _0x4085fa){const _0x1923cd=await computeFileHash(_0x497a60[_0x142e61(0x1c6)]),_0x5a5e88=_0x4c55dc[_0x142e61(0x1c7)][_0x497a60['lockKey']];if(!_0x5a5e88)_0x2f4ac7[_0x142e61(0x1d6)](_0x497a60[_0x142e61(0x1c9)]);else _0x5a5e88[_0x142e61(0x1d1)]!==_0x1923cd?_0x12880b['push'](_0x497a60['lockKey']):_0x38330e[_0x142e61(0x1d6)](_0x497a60[_0x142e61(0x1c9)]);}const _0x4166c2=[];if(_0x289929[_0x142e61(0x1c8)](_0x142e61(0x1be))){const _0x2dfe87=loadAliasMap(_0x289929[_0x142e61(0x1c3)],undefined,resolveApiFilePath(_0x289929[_0x142e61(0x1c3)],_0x289929[_0x142e61(0x1b7)])),_0x13d00e=new Map(_0x2dfe87[_0x142e61(0x1b8)](_0xa2a12e=>[_0xa2a12e[_0x142e61(0x1b6)],_0xa2a12e[_0x142e61(0x1c5)]])),[_0x394b53,_0x4a7a69]=await Promise[_0x142e61(0x1d4)]([listBffScripts(_0x289929[_0x142e61(0x1b7)]),getBffScriptStatistics(_0x289929[_0x142e61(0x1b7)])]),_0x3bb414=createHookLocationMap(_0x4a7a69),_0x507d02=new Set(_0x4085fa[_0x142e61(0x1b8)](_0x1182db=>_0x1182db['lockKey']));for(const _0x5af5a2 of _0x394b53){const _0x2eaa4e=resolveRemoteScriptTarget(_0x11623b,_0x5af5a2,_0x3bb414,_0x4c55dc['functions'],_0x13d00e);_0x2eaa4e&&!_0x507d02['has'](_0x2eaa4e[_0x142e61(0x1c9)])&&_0x4166c2['push'](_0x2eaa4e[_0x142e61(0x1c9)]);}}const _0x4313b6=_0x2f4ac7['length']===0x0&&_0x12880b['length']===0x0&&_0x4166c2[_0x142e61(0x1ca)]===0x0;return{'ok':!![],'data':{'added':_0x2f4ac7,'modified':_0x12880b,'unchanged':_0x38330e,'remoteOnly':_0x4166c2},'message':_0x4313b6?_0x142e61(0x1cc):_0x2f4ac7[_0x142e61(0x1ca)]+_0x142e61(0x1bc)+_0x12880b[_0x142e61(0x1ca)]+_0x142e61(0x1c0)+_0x38330e[_0x142e61(0x1ca)]+'\x20unchanged'+(_0x4166c2[_0x142e61(0x1ca)]>0x0?',\x20'+_0x4166c2['length']+'\x20remote-only':'')};}};function a38_0x4273(){const _0x95496d=['\x20modified,\x20','scriptsRoot','7tMSSVa','apiDir','boolean','alias','filePath','functions','bool','lockKey','length','bff','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','lockFilePath','status','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','3093360BzEvLe','hash','1117808wTSYwb','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','all','2511208KJFDSl','push','datasetCode','appCode','map','16775127BXrCcp','464754OfiyaY','3339dzvpQJ','\x20added,\x20','2686524ZgRQLE','remote','62nDtWtG'];a38_0x4273=function(){return _0x95496d;};return a38_0x4273();}
@@ -1 +1 @@
1
- function a39_0x1d96(_0x20362f,_0x4673e1){_0x20362f=_0x20362f-0xe0;const _0x560ab7=a39_0x560a();let _0x1d968f=_0x560ab7[_0x20362f];return _0x1d968f;}const a39_0x185beb=a39_0x1d96;(function(_0x2e5579,_0x4e2404){const _0x3df623=a39_0x1d96,_0x59e2a3=_0x2e5579();while(!![]){try{const _0x4871e5=parseInt(_0x3df623(0xea))/0x1*(-parseInt(_0x3df623(0xf1))/0x2)+-parseInt(_0x3df623(0xe9))/0x3*(parseInt(_0x3df623(0xfb))/0x4)+-parseInt(_0x3df623(0xe8))/0x5+-parseInt(_0x3df623(0xe4))/0x6*(-parseInt(_0x3df623(0xeb))/0x7)+parseInt(_0x3df623(0xf8))/0x8+-parseInt(_0x3df623(0xe1))/0x9+parseInt(_0x3df623(0xfd))/0xa;if(_0x4871e5===_0x4e2404)break;else _0x59e2a3['push'](_0x59e2a3['shift']());}catch(_0xf4d434){_0x59e2a3['push'](_0x59e2a3['shift']());}}}(a39_0x560a,0xa87f8));function a39_0x560a(){const _0x5b22b5=['2667766zmEPCp','nonInteractive','repairCommand','CLI\x20Built-in\x20Skill\x20',']:\x20','setLogPath','cli-skill-install','4976936BrUJKe','\x20at\x20','inherit','115448xnbxCL','apiError','25940170VnnDKY','info','\x20installed','error','cli-skill','10531611zndADT','installedPath','changed','6126LQbyjj','Built-in\x20Skill\x20install\x20failed\x20[','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','\x20is\x20already\x20current','631210DFYiEg','132HkhyhJ','1vTUgKw','9422VwLVLa','read','code','unknown','install','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.'];a39_0x560a=function(){return _0x5b22b5;};return a39_0x560a();}import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a39_0x185beb(0xe0),'command':a39_0x185beb(0xef),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a39_0x185beb(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xfe541e){const _0x42cd1a=a39_0x185beb;logger[_0x42cd1a(0xf6)](process['cwd']()),logger[_0x42cd1a(0xfe)](_0x42cd1a(0xf7),_0x42cd1a(0xf0));const _0x3c88b2=installBuiltinSkill({'stdio':_0xfe541e[_0x42cd1a(0xf2)]?'pipe':_0x42cd1a(0xfa)});if(!_0x3c88b2['ok'])throw CliErrors[_0x42cd1a(0xfc)](_0x42cd1a(0xe5)+_0x3c88b2[_0x42cd1a(0xed)]+_0x42cd1a(0xf5)+(_0x3c88b2[_0x42cd1a(0x100)]||_0x42cd1a(0xee)),_0x42cd1a(0xe6)+_0x3c88b2[_0x42cd1a(0xf3)]);return console['log'](_0x3c88b2[_0x42cd1a(0xe3)]?_0x42cd1a(0xf4)+_0x3c88b2['skillVersion']+_0x42cd1a(0xff)+(_0x3c88b2[_0x42cd1a(0xe2)]?_0x42cd1a(0xf9)+_0x3c88b2[_0x42cd1a(0xe2)]:'\x20via\x20skills@latest'):_0x42cd1a(0xf4)+_0x3c88b2['skillVersion']+_0x42cd1a(0xe7)+(_0x3c88b2['installedPath']?_0x42cd1a(0xf9)+_0x3c88b2['installedPath']:'')),{'ok':!![]};}}];
1
+ const a39_0x12999d=a39_0x3500;(function(_0x5d1a4a,_0x2b4973){const _0x1429d9=a39_0x3500,_0x13b43a=_0x5d1a4a();while(!![]){try{const _0x9b7bf7=-parseInt(_0x1429d9(0x1e5))/0x1*(parseInt(_0x1429d9(0x1f5))/0x2)+parseInt(_0x1429d9(0x200))/0x3+-parseInt(_0x1429d9(0x1f0))/0x4*(parseInt(_0x1429d9(0x1f9))/0x5)+parseInt(_0x1429d9(0x1ff))/0x6*(-parseInt(_0x1429d9(0x1eb))/0x7)+-parseInt(_0x1429d9(0x1fc))/0x8*(parseInt(_0x1429d9(0x1e6))/0x9)+-parseInt(_0x1429d9(0x201))/0xa*(parseInt(_0x1429d9(0x1e9))/0xb)+parseInt(_0x1429d9(0x1fb))/0xc;if(_0x9b7bf7===_0x2b4973)break;else _0x13b43a['push'](_0x13b43a['shift']());}catch(_0x19c5d5){_0x13b43a['push'](_0x13b43a['shift']());}}}(a39_0x4bd8,0xf1989));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_0x12999d(0x1f1),'description':'Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','risk':a39_0x12999d(0x1e8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x15a126){const _0x49606a=a39_0x12999d;logger[_0x49606a(0x1ed)](process[_0x49606a(0x1e3)]()),logger[_0x49606a(0x1f7)]('cli-skill-install',_0x49606a(0x1e2));const _0x21cad0=installBuiltinSkill({'stdio':_0x15a126['nonInteractive']?'pipe':_0x49606a(0x202)});if(!_0x21cad0['ok'])throw CliErrors['apiError']('Built-in\x20Skill\x20install\x20failed\x20['+_0x21cad0[_0x49606a(0x1e4)]+_0x49606a(0x1f6)+(_0x21cad0['error']||_0x49606a(0x1ee)),_0x49606a(0x1fd)+_0x21cad0[_0x49606a(0x1ef)]);return console[_0x49606a(0x1e7)](_0x21cad0[_0x49606a(0x1ea)]?_0x49606a(0x1f4)+_0x21cad0[_0x49606a(0x1f2)]+_0x49606a(0x1ec)+(_0x21cad0[_0x49606a(0x1f3)]?_0x49606a(0x1fa)+_0x21cad0[_0x49606a(0x1f3)]:_0x49606a(0x1fe)):'CLI\x20Built-in\x20Skill\x20'+_0x21cad0[_0x49606a(0x1f2)]+_0x49606a(0x1f8)+(_0x21cad0[_0x49606a(0x1f3)]?'\x20at\x20'+_0x21cad0[_0x49606a(0x1f3)]:'')),{'ok':!![]};}}];function a39_0x3500(_0x3b3a27,_0x5637d4){_0x3b3a27=_0x3b3a27-0x1e2;const _0x4bd838=a39_0x4bd8();let _0x3500f8=_0x4bd838[_0x3b3a27];return _0x3500f8;}function a39_0x4bd8(){const _0x4fc069=['7152wtDyXA','2386632ndRxui','60wvdbeG','inherit','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','cwd','code','1uRLqTe','9yLfpGJ','log','read','2885773yViNjD','changed','6503maySlG','\x20installed','setLogPath','unknown','repairCommand','312qEcdQT','install','skillVersion','installedPath','CLI\x20Built-in\x20Skill\x20','101604OrarJC',']:\x20','info','\x20is\x20already\x20current','41170pHGSsq','\x20at\x20','51252324YEgfwo','5620112VhzEsB','Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20','\x20via\x20skills@latest'];a39_0x4bd8=function(){return _0x4fc069;};return a39_0x4bd8();}
@@ -1 +1 @@
1
- const a40_0xe7baf=a40_0x3e54;(function(_0xb9a69b,_0x4fd177){const _0x54d9a3=a40_0x3e54,_0x5ac09f=_0xb9a69b();while(!![]){try{const _0x157dd6=-parseInt(_0x54d9a3(0x164))/0x1+-parseInt(_0x54d9a3(0x188))/0x2+parseInt(_0x54d9a3(0x15a))/0x3*(parseInt(_0x54d9a3(0x174))/0x4)+parseInt(_0x54d9a3(0x149))/0x5+-parseInt(_0x54d9a3(0x151))/0x6+-parseInt(_0x54d9a3(0x15e))/0x7+parseInt(_0x54d9a3(0x18d))/0x8;if(_0x157dd6===_0x4fd177)break;else _0x5ac09f['push'](_0x5ac09f['shift']());}catch(_0x3669a4){_0x5ac09f['push'](_0x5ac09f['shift']());}}}(a40_0x1166,0x99f02));function a40_0x3e54(_0x4996ec,_0x9387be){_0x4996ec=_0x4996ec-0x142;const _0x11660f=a40_0x1166();let _0x3e5469=_0x11660f[_0x4996ec];return _0x3e5469;}import a40_0x62de63 from'chalk';import a40_0x2ead4e from'ora';import a40_0x47df77 from'semver';import{execa}from'execa';function a40_0x1166(){const _0x259ed3=['toLowerCase','Current\x20version:\x20','1938912SPMavA','run','Update\x20available:\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','bun','unknown','warn','json','Already\x20up\x20to\x20date\x20(v','381eBwsUQ','npm','source','Update\x20failed','8095941LNgqem','error','yellow','expected\x20','\x20\x20Run\x20manually:\x20','code','205565VQaXqV','\x20\x20CLI\x20Built-in\x20Skill\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','slice','valid','version','Beta\x20version:\x20','log','@latest','\x20→\x20','boolean','trim','/dist-tags','Current\x20version\x20v','update','30956RQSIGo','\x20cli-skill\x20install','includes','filter','beta','validation','start','Already\x20on\x20requested\x20version\x20(v','Requested\x20version:\x20','latest','red','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Version\x20comparison\x20failed','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','info','\x20\x20Built-in\x20Skill\x20verification\x20failed:\x20','succeed','\x20is\x20newer\x20than\x20npm\x20latest\x20v','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)',',\x20found\x20','1824112GLFdVY','str','\x20\x20CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','execPath','Invalid\x20version:\x20','10256784MdUCNJ','\x20install\x20-g\x20','fail','Checking\x20for\x20updates...','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','current','...','message','string','object','Updating\x20via\x20','https://registry.npmjs.org/-/package/','timeout','green','state','fromEntries','skillVersion','4814575hxLnvi','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','entries','bool','gray','Checking\x20CLI\x20Built-in\x20Skill...'];a40_0x1166=function(){return _0x259ed3;};return a40_0x1166();}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 _0x4d8d54=a40_0x3e54;return GIT_COMMIT!==_0x4d8d54(0x156)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4d8d54(0x168)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x337618=a40_0x3e54,_0x59da06=process[_0x337618(0x18b)][_0x337618(0x14f)]();if(_0x59da06[_0x337618(0x176)](_0x337618(0x155)))return _0x337618(0x155);return _0x337618(0x15b);}const updateFlags=[{'name':a40_0xe7baf(0x178),'type':a40_0xe7baf(0x16f),'description':a40_0xe7baf(0x191),'default':![]},{'name':a40_0xe7baf(0x16a),'type':a40_0xe7baf(0x196),'description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x3f5d38){const _0x3cbc84=a40_0xe7baf;return _0x3f5d38[_0x3cbc84(0x189)](_0x3cbc84(0x16a))[_0x3cbc84(0x170)]();}async function validateUpdateFlags(_0x4bec93){const _0xe85b70=a40_0xe7baf,_0x35df06=_0x4bec93[_0xe85b70(0x14c)](_0xe85b70(0x178)),_0x3c56b0=getRequestedVersion(_0x4bec93);if(_0x35df06&&_0x3c56b0)throw CliErrors['validation'](_0xe85b70(0x192),_0xe85b70(0x154));if(_0x3c56b0&&!a40_0x47df77[_0xe85b70(0x169)](_0x3c56b0))throw CliErrors[_0xe85b70(0x179)](_0xe85b70(0x18c)+_0x3c56b0,_0xe85b70(0x167));}async function fetchNpmDistTags(){const _0x20b561=a40_0xe7baf;try{const _0x206974=await fetch(_0x20b561(0x143)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x20b561(0x171),{'signal':AbortSignal[_0x20b561(0x144)](0x2710)});if(!_0x206974['ok'])return null;const _0x11c008=await _0x206974[_0x20b561(0x158)]();if(!_0x11c008||typeof _0x11c008!==_0x20b561(0x197))return null;return Object[_0x20b561(0x147)](Object[_0x20b561(0x14b)](_0x11c008)[_0x20b561(0x177)](([,_0x3e888d])=>typeof _0x3e888d===_0x20b561(0x196)&&_0x3e888d[_0x20b561(0x170)]()['length']>0x0)['map'](([_0x2fedca,_0x55704e])=>[_0x2fedca,String(_0x55704e)[_0x20b561(0x170)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x8d3449){const _0x1fffcd=await fetchNpmDistTags();return _0x1fffcd?.[_0x8d3449]??null;}async function fetchLatestVersion(){const _0x598dd5=a40_0xe7baf;return fetchNpmDistTagVersion(_0x598dd5(0x17d));}async function resolveTargetVersion(_0x4402aa){const _0x4adb3e=a40_0xe7baf,_0x350dea=getRequestedVersion(_0x4402aa);if(_0x350dea)return{'version':_0x350dea,'source':'version'};if(_0x4402aa[_0x4adb3e(0x14c)](_0x4adb3e(0x178))){const _0x24527d=await fetchNpmDistTagVersion(_0x4adb3e(0x178));if(!_0x24527d)return null;return{'version':_0x24527d,'source':'beta'};}const _0x31dcab=await fetchLatestVersion();if(!_0x31dcab)return null;return{'version':_0x31dcab,'source':_0x4adb3e(0x17d)};}function shouldInstallTarget(_0x43f68d,_0x3dd855){const _0x31f47d=a40_0xe7baf;if(_0x3dd855[_0x31f47d(0x15c)]==='version'||_0x3dd855[_0x31f47d(0x15c)]===_0x31f47d(0x178))return!a40_0x47df77['eq'](_0x43f68d,_0x3dd855[_0x31f47d(0x16a)]);return a40_0x47df77['lt'](_0x43f68d,_0x3dd855[_0x31f47d(0x16a)]);}function getInstallPlanLabel(_0x6ce6c0,_0x2c5792){const _0x328cb8=a40_0xe7baf;switch(_0x2c5792[_0x328cb8(0x15c)]){case _0x328cb8(0x178):return _0x328cb8(0x16b)+a40_0x62de63[_0x328cb8(0x160)](_0x6ce6c0)+_0x328cb8(0x16e)+a40_0x62de63[_0x328cb8(0x145)](_0x2c5792[_0x328cb8(0x16a)]);case _0x328cb8(0x16a):return _0x328cb8(0x17c)+a40_0x62de63[_0x328cb8(0x160)](_0x6ce6c0)+_0x328cb8(0x16e)+a40_0x62de63[_0x328cb8(0x145)](_0x2c5792[_0x328cb8(0x16a)]);case _0x328cb8(0x17d):default:return _0x328cb8(0x153)+a40_0x62de63[_0x328cb8(0x160)](_0x6ce6c0)+_0x328cb8(0x16e)+a40_0x62de63[_0x328cb8(0x145)](_0x2c5792[_0x328cb8(0x16a)]);}}function repairCurrentBuiltinSkill(){const _0x2b7137=a40_0xe7baf;console[_0x2b7137(0x16c)](a40_0x62de63[_0x2b7137(0x14d)](_0x2b7137(0x14e)));const _0x6d7d24=installBuiltinSkill();if(_0x6d7d24['ok'])return console[_0x2b7137(0x16c)](a40_0x62de63[_0x2b7137(0x14d)](_0x2b7137(0x165)+_0x6d7d24[_0x2b7137(0x148)]+'\x20is\x20up\x20to\x20date.')),!![];return console['warn'](a40_0x62de63[_0x2b7137(0x160)](_0x2b7137(0x18a)+_0x6d7d24[_0x2b7137(0x163)]+']:\x20'+(_0x6d7d24[_0x2b7137(0x15f)]||'unknown'))),console[_0x2b7137(0x16c)](a40_0x62de63['gray'](_0x2b7137(0x162)+CLI_BIN_NAME+_0x2b7137(0x175))),![];}function verifyUpdatedBuiltinSkill(_0x71a7e1){const _0x56d775=a40_0xe7baf,_0x2e7951=inspectInstalledBuiltinSkillVersion(_0x71a7e1);if(_0x2e7951[_0x56d775(0x146)]===_0x56d775(0x193))return console['log'](a40_0x62de63[_0x56d775(0x14d)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x71a7e1+'\x20is\x20up\x20to\x20date.')),!![];const _0x57aa52=_0x2e7951[_0x56d775(0x148)]?_0x56d775(0x161)+_0x71a7e1+_0x56d775(0x187)+_0x2e7951[_0x56d775(0x148)]:_0x56d775(0x161)+_0x71a7e1+',\x20state\x20'+_0x2e7951[_0x56d775(0x146)];return console[_0x56d775(0x157)](a40_0x62de63[_0x56d775(0x160)](_0x56d775(0x183)+_0x57aa52)),console[_0x56d775(0x16c)](a40_0x62de63[_0x56d775(0x14d)]('\x20\x20Run\x20manually:\x20'+_0x2e7951['repairCommand'])),![];}async function execute(_0x9db0a0){const _0xe34d64=a40_0xe7baf;await validateUpdateFlags(_0x9db0a0);const _0x1b9b11=getCurrentVersion();console[_0xe34d64(0x16c)](_0xe34d64(0x150)+_0x1b9b11);const _0x8c59c2=a40_0x2ead4e(_0xe34d64(0x190))['start'](),_0x18ecd7=await resolveTargetVersion(_0x9db0a0);if(!_0x18ecd7){const _0x589b95=_0x9db0a0[_0xe34d64(0x14c)]('beta')?_0xe34d64(0x181):_0xe34d64(0x186);return _0x8c59c2[_0xe34d64(0x18f)](_0x589b95),console[_0xe34d64(0x16c)](a40_0x62de63[_0xe34d64(0x14d)](_0xe34d64(0x14a)+NPM_PACKAGE_NAME+_0xe34d64(0x16d))),{'ok':![],'message':_0x589b95};}const _0x24f579=a40_0x47df77[_0xe34d64(0x169)](VERSION),_0x55046b=a40_0x47df77[_0xe34d64(0x169)](_0x18ecd7[_0xe34d64(0x16a)]);if(!_0x24f579||!_0x55046b)return _0x8c59c2[_0xe34d64(0x18f)](_0xe34d64(0x180)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x24f579,_0x18ecd7)){const _0x475927=_0x18ecd7[_0xe34d64(0x15c)]==='version'?_0xe34d64(0x17b)+_0x18ecd7[_0xe34d64(0x16a)]+')':a40_0x47df77['gt'](_0x24f579,_0x55046b)?_0xe34d64(0x172)+_0x1b9b11+_0xe34d64(0x185)+_0x18ecd7[_0xe34d64(0x16a)]:_0xe34d64(0x159)+_0x18ecd7[_0xe34d64(0x16a)]+')';return _0x8c59c2[_0xe34d64(0x184)](_0x475927),{'ok':repairCurrentBuiltinSkill()};}_0x8c59c2[_0xe34d64(0x182)](getInstallPlanLabel(_0x1b9b11,_0x18ecd7));const _0x3c842d=detectPackageManager(),_0x42f4e9=_0x3c842d===_0xe34d64(0x15b)?resolveNpmBin(_0xe34d64(0x15b)):_0x3c842d,_0x10d1c8=a40_0x2ead4e(_0xe34d64(0x142)+_0x3c842d+_0xe34d64(0x194))[_0xe34d64(0x17a)]();try{return await execa(_0x42f4e9,['install','-g',NPM_PACKAGE_NAME+'@'+_0x18ecd7[_0xe34d64(0x16a)]],{'stdio':'pipe'}),_0x10d1c8[_0xe34d64(0x184)]('Updated\x20to\x20v'+_0x18ecd7['version']),console[_0xe34d64(0x16c)](a40_0x62de63[_0xe34d64(0x14d)](_0xe34d64(0x17f))),{'ok':verifyUpdatedBuiltinSkill(_0x18ecd7[_0xe34d64(0x16a)])};}catch(_0x562411){return _0x10d1c8[_0xe34d64(0x18f)](_0xe34d64(0x15d)),console['error'](a40_0x62de63[_0xe34d64(0x17e)]('\x20\x20'+_0x562411[_0xe34d64(0x195)])),console['log'](a40_0x62de63[_0xe34d64(0x14d)]('\x20\x20Try\x20manually:\x20'+_0x3c842d+_0xe34d64(0x18e)+NPM_PACKAGE_NAME+'@'+_0x18ecd7[_0xe34d64(0x16a)])),{'ok':![],'message':_0x562411['message']};}}export const updateDefinition={'service':a40_0xe7baf(0x173),'command':a40_0xe7baf(0x152),'description':a40_0xe7baf(0x166),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a40_0x26af69=a40_0x374e;(function(_0x164892,_0x3af0cf){const _0x8964aa=a40_0x374e,_0x2368e0=_0x164892();while(!![]){try{const _0x523a39=parseInt(_0x8964aa(0x1ef))/0x1*(-parseInt(_0x8964aa(0x20f))/0x2)+parseInt(_0x8964aa(0x1d1))/0x3+parseInt(_0x8964aa(0x1da))/0x4*(-parseInt(_0x8964aa(0x1d2))/0x5)+parseInt(_0x8964aa(0x1e1))/0x6+parseInt(_0x8964aa(0x1e6))/0x7+-parseInt(_0x8964aa(0x203))/0x8*(-parseInt(_0x8964aa(0x1e4))/0x9)+-parseInt(_0x8964aa(0x1ea))/0xa*(-parseInt(_0x8964aa(0x1f2))/0xb);if(_0x523a39===_0x3af0cf)break;else _0x2368e0['push'](_0x2368e0['shift']());}catch(_0x6e048d){_0x2368e0['push'](_0x2368e0['shift']());}}}(a40_0x5a4b,0xe7643));import a40_0x4671f4 from'chalk';import a40_0x4e55b3 from'ora';import a40_0x553b63 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';function a40_0x374e(_0x36cd54,_0x3ae2cb){_0x36cd54=_0x36cd54-0x1c1;const _0x5a4bd8=a40_0x5a4b();let _0x374e31=_0x5a4bd8[_0x36cd54];return _0x374e31;}import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x207135=a40_0x374e;return GIT_COMMIT!==_0x207135(0x202)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x207135(0x1f3)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x132aea=a40_0x374e,_0x162d01=process[_0x132aea(0x1d4)][_0x132aea(0x201)]();if(_0x162d01['includes'](_0x132aea(0x1d7)))return _0x132aea(0x1d7);return _0x132aea(0x213);}const updateFlags=[{'name':a40_0x26af69(0x1c9),'type':'boolean','description':a40_0x26af69(0x1cc),'default':![]},{'name':a40_0x26af69(0x1ce),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'}];function getRequestedVersion(_0x5e7b75){const _0x764842=a40_0x26af69;return _0x5e7b75[_0x764842(0x1d0)](_0x764842(0x1ce))[_0x764842(0x1eb)]();}async function validateUpdateFlags(_0x3f245e){const _0x2984e6=a40_0x26af69,_0xa47eeb=_0x3f245e[_0x2984e6(0x1e0)](_0x2984e6(0x1c9)),_0x49e1d0=getRequestedVersion(_0x3f245e);if(_0xa47eeb&&_0x49e1d0)throw CliErrors[_0x2984e6(0x1dd)](_0x2984e6(0x209),_0x2984e6(0x210));if(_0x49e1d0&&!a40_0x553b63[_0x2984e6(0x1c5)](_0x49e1d0))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x49e1d0,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x6806ef=a40_0x26af69;try{const _0x31dd66=await fetch(_0x6806ef(0x1e9)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x6806ef(0x1fe),{'signal':AbortSignal[_0x6806ef(0x1c3)](0x2710)});if(!_0x31dd66['ok'])return null;const _0x134f31=await _0x31dd66[_0x6806ef(0x207)]();if(!_0x134f31||typeof _0x134f31!==_0x6806ef(0x211))return null;return Object[_0x6806ef(0x205)](Object[_0x6806ef(0x1d5)](_0x134f31)[_0x6806ef(0x1f6)](([,_0x36cc56])=>typeof _0x36cc56==='string'&&_0x36cc56[_0x6806ef(0x1eb)]()[_0x6806ef(0x208)]>0x0)['map'](([_0xcea7f8,_0x11cd01])=>[_0xcea7f8,String(_0x11cd01)[_0x6806ef(0x1eb)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x33454c){const _0x5a684d=await fetchNpmDistTags();return _0x5a684d?.[_0x33454c]??null;}async function fetchLatestVersion(){const _0x718f1a=a40_0x26af69;return fetchNpmDistTagVersion(_0x718f1a(0x20e));}async function resolveTargetVersion(_0x1bf362){const _0x5c4455=a40_0x26af69,_0x4ec0e5=getRequestedVersion(_0x1bf362);if(_0x4ec0e5)return{'version':_0x4ec0e5,'source':'version'};if(_0x1bf362['bool']('beta')){const _0x54de7e=await fetchNpmDistTagVersion(_0x5c4455(0x1c9));if(!_0x54de7e)return null;return{'version':_0x54de7e,'source':'beta'};}const _0x20ee0f=await fetchLatestVersion();if(!_0x20ee0f)return null;return{'version':_0x20ee0f,'source':_0x5c4455(0x20e)};}function a40_0x5a4b(){const _0x4bb934=['info','str','147615dafear','15CBErcN','skillVersion','execPath','entries',']:\x20','bun',',\x20then\x20verify\x20with:\x20','start','1953172GwmVPs',',\x20state\x20','green','validation','red','Updated\x20to\x20v','bool','5377476QDsNal','\x20doctor','@latest','18rrNIgU','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','8963703tcWpIr','CLI\x20updated\x20to\x20v','pipe','https://registry.npmjs.org/-/package/','10WUtIYg','trim','code','error','...','105WBzffb','Current\x20version:\x20','log','17536673ORANlv','slice','\x20→\x20','gray','filter','repairCommand','succeed','\x20\x20Try\x20manually:\x20','fail','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','state','run','/dist-tags','Beta\x20version:\x20','Requested\x20version:\x20','toLowerCase','unknown','1043960uNktoz','source','fromEntries','apiError','json','length','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Update\x20failed','\x20is\x20newer\x20than\x20npm\x20latest\x20v','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Version\x20comparison\x20failed','latest','31782ntFdfg','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','object','Run:\x20','npm','yellow','message',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','timeout','\x20\x20CLI\x20Built-in\x20Skill\x20','valid','\x20is\x20up\x20to\x20date.','Checking\x20for\x20updates...','Already\x20up\x20to\x20date\x20(v','beta','expected\x20','Updating\x20via\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','version'];a40_0x5a4b=function(){return _0x4bb934;};return a40_0x5a4b();}function shouldInstallTarget(_0x2c6107,_0x536c51){const _0xc5f254=a40_0x26af69;if(_0x536c51[_0xc5f254(0x204)]===_0xc5f254(0x1ce)||_0x536c51[_0xc5f254(0x204)]===_0xc5f254(0x1c9))return!a40_0x553b63['eq'](_0x2c6107,_0x536c51[_0xc5f254(0x1ce)]);return a40_0x553b63['lt'](_0x2c6107,_0x536c51[_0xc5f254(0x1ce)]);}function getInstallPlanLabel(_0x317f8b,_0x33dd87){const _0x2dae94=a40_0x26af69;switch(_0x33dd87[_0x2dae94(0x204)]){case _0x2dae94(0x1c9):return _0x2dae94(0x1ff)+a40_0x4671f4['yellow'](_0x317f8b)+'\x20→\x20'+a40_0x4671f4[_0x2dae94(0x1dc)](_0x33dd87['version']);case _0x2dae94(0x1ce):return _0x2dae94(0x200)+a40_0x4671f4[_0x2dae94(0x214)](_0x317f8b)+_0x2dae94(0x1f4)+a40_0x4671f4[_0x2dae94(0x1dc)](_0x33dd87['version']);case _0x2dae94(0x20e):default:return'Update\x20available:\x20'+a40_0x4671f4['yellow'](_0x317f8b)+_0x2dae94(0x1f4)+a40_0x4671f4['green'](_0x33dd87['version']);}}function repairCurrentBuiltinSkill(){const _0x483852=a40_0x26af69;console['log'](a40_0x4671f4[_0x483852(0x1f5)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x134c91=installBuiltinSkill();if(_0x134c91['ok']){console[_0x483852(0x1f1)](a40_0x4671f4['gray'](_0x483852(0x1c4)+_0x134c91[_0x483852(0x1d3)]+_0x483852(0x1c6)));return;}throw CliErrors[_0x483852(0x206)](_0x483852(0x1cd)+_0x134c91[_0x483852(0x1ec)]+_0x483852(0x1d6)+(_0x134c91[_0x483852(0x1ed)]||_0x483852(0x202)),'Run:\x20'+_0x134c91['repairCommand']+_0x483852(0x1d8)+CLI_BIN_NAME+_0x483852(0x1e2));}function verifyUpdatedBuiltinSkill(_0x39d4a7){const _0x320458=a40_0x26af69,_0x5847f2=inspectInstalledBuiltinSkillVersion(_0x39d4a7);if(_0x5847f2[_0x320458(0x1fc)]==='current'){console[_0x320458(0x1f1)](a40_0x4671f4[_0x320458(0x1f5)]('\x20\x20CLI\x20Built-in\x20Skill\x20'+_0x39d4a7+_0x320458(0x1c6)));return;}const _0x5dedc3=_0x5847f2['skillVersion']?_0x320458(0x1ca)+_0x39d4a7+',\x20found\x20'+_0x5847f2[_0x320458(0x1d3)]:_0x320458(0x1ca)+_0x39d4a7+_0x320458(0x1db)+_0x5847f2[_0x320458(0x1fc)];throw CliErrors[_0x320458(0x206)](_0x320458(0x1e7)+_0x39d4a7+_0x320458(0x1c1)+_0x5dedc3,_0x320458(0x212)+_0x5847f2[_0x320458(0x1f7)]+_0x320458(0x1d8)+CLI_BIN_NAME+_0x320458(0x1e2));}async function execute(_0x3d37d){const _0x347334=a40_0x26af69;await validateUpdateFlags(_0x3d37d);const _0x24096d=getCurrentVersion();console[_0x347334(0x1f1)](_0x347334(0x1f0)+_0x24096d);const _0x34b2f7=a40_0x4e55b3(_0x347334(0x1c7))[_0x347334(0x1d9)](),_0x4dfac3=await resolveTargetVersion(_0x3d37d);if(!_0x4dfac3){const _0x306587=_0x3d37d[_0x347334(0x1e0)](_0x347334(0x1c9))?_0x347334(0x1fb):_0x347334(0x1c2);return _0x34b2f7[_0x347334(0x1fa)](_0x306587),console[_0x347334(0x1f1)](a40_0x4671f4['gray'](_0x347334(0x20c)+NPM_PACKAGE_NAME+_0x347334(0x1e3))),{'ok':![],'message':_0x306587};}const _0x44c443=a40_0x553b63[_0x347334(0x1c5)](VERSION),_0x390359=a40_0x553b63[_0x347334(0x1c5)](_0x4dfac3[_0x347334(0x1ce)]);if(!_0x44c443||!_0x390359)return _0x34b2f7[_0x347334(0x1fa)](_0x347334(0x20d)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x44c443,_0x4dfac3)){const _0x476cde=_0x4dfac3[_0x347334(0x204)]===_0x347334(0x1ce)?'Already\x20on\x20requested\x20version\x20(v'+_0x4dfac3[_0x347334(0x1ce)]+')':a40_0x553b63['gt'](_0x44c443,_0x390359)?'Current\x20version\x20v'+_0x24096d+_0x347334(0x20b)+_0x4dfac3[_0x347334(0x1ce)]:_0x347334(0x1c8)+_0x4dfac3[_0x347334(0x1ce)]+')';return _0x34b2f7[_0x347334(0x1f8)](_0x476cde),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x34b2f7[_0x347334(0x1cf)](getInstallPlanLabel(_0x24096d,_0x4dfac3));const _0x4e7493=detectPackageManager(),_0x330f4a=_0x4e7493===_0x347334(0x213)?resolveNpmBin(_0x347334(0x213)):_0x4e7493,_0x301a81=a40_0x4e55b3(_0x347334(0x1cb)+_0x4e7493+_0x347334(0x1ee))[_0x347334(0x1d9)]();try{await execa(_0x330f4a,['install','-g',NPM_PACKAGE_NAME+'@'+_0x4dfac3[_0x347334(0x1ce)]],{'stdio':_0x347334(0x1e8)}),_0x301a81[_0x347334(0x1f8)](_0x347334(0x1df)+_0x4dfac3[_0x347334(0x1ce)]),console[_0x347334(0x1f1)](a40_0x4671f4[_0x347334(0x1f5)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x24e22e){return _0x301a81[_0x347334(0x1fa)](_0x347334(0x20a)),console['error'](a40_0x4671f4[_0x347334(0x1de)]('\x20\x20'+_0x24e22e[_0x347334(0x215)])),console[_0x347334(0x1f1)](a40_0x4671f4[_0x347334(0x1f5)](_0x347334(0x1f9)+_0x4e7493+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x4dfac3[_0x347334(0x1ce)])),{'ok':![],'message':_0x24e22e[_0x347334(0x215)]};}return verifyUpdatedBuiltinSkill(_0x4dfac3[_0x347334(0x1ce)]),{'ok':!![]};}export const updateDefinition={'service':'update','command':a40_0x26af69(0x1fd),'description':a40_0x26af69(0x1e5),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2903b4,_0x10103f){const _0x3b3e17=a41_0x4da3,_0x5a62d1=_0x2903b4();while(!![]){try{const _0x4372d9=parseInt(_0x3b3e17(0x123))/0x1+parseInt(_0x3b3e17(0x128))/0x2*(-parseInt(_0x3b3e17(0x126))/0x3)+-parseInt(_0x3b3e17(0x12a))/0x4*(-parseInt(_0x3b3e17(0x12c))/0x5)+-parseInt(_0x3b3e17(0x124))/0x6+-parseInt(_0x3b3e17(0x127))/0x7+-parseInt(_0x3b3e17(0x12b))/0x8*(parseInt(_0x3b3e17(0x125))/0x9)+parseInt(_0x3b3e17(0x129))/0xa;if(_0x4372d9===_0x10103f)break;else _0x5a62d1['push'](_0x5a62d1['shift']());}catch(_0x4246dc){_0x5a62d1['push'](_0x5a62d1['shift']());}}}(a41_0x280a,0xd0a42));function a41_0x4da3(_0x45d8d4,_0x4f7584){_0x45d8d4=_0x45d8d4-0x123;const _0x280a2a=a41_0x280a();let _0x4da379=_0x280a2a[_0x45d8d4];return _0x4da379;}function a41_0x280a(){const _0x30b602=['682884cVkshd','8718948bWnHGl','4rlVSjZ','32231040sxFQgs','241996atVIJb','2723944IXsRMN','5jpYiuj','14603JbbyQU','2413794Xucdpq','9hHKgeL'];a41_0x280a=function(){return _0x30b602;};return a41_0x280a();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x3ffa2f,_0x570e3d){const _0x247cde=a41_0x4147,_0x277d18=_0x3ffa2f();while(!![]){try{const _0x2c9b5f=parseInt(_0x247cde(0x1e1))/0x1+parseInt(_0x247cde(0x1e3))/0x2*(parseInt(_0x247cde(0x1dd))/0x3)+-parseInt(_0x247cde(0x1e4))/0x4*(-parseInt(_0x247cde(0x1e2))/0x5)+-parseInt(_0x247cde(0x1e6))/0x6+-parseInt(_0x247cde(0x1df))/0x7*(parseInt(_0x247cde(0x1e0))/0x8)+parseInt(_0x247cde(0x1e5))/0x9*(-parseInt(_0x247cde(0x1dc))/0xa)+parseInt(_0x247cde(0x1de))/0xb;if(_0x2c9b5f===_0x570e3d)break;else _0x277d18['push'](_0x277d18['shift']());}catch(_0x147eba){_0x277d18['push'](_0x277d18['shift']());}}}(a41_0x124c,0xa900f));function a41_0x4147(_0x4f5dc3,_0x555543){_0x4f5dc3=_0x4f5dc3-0x1dc;const _0x124cff=a41_0x124c();let _0x41475b=_0x124cff[_0x4f5dc3];return _0x41475b;}function a41_0x124c(){const _0x55f687=['917144ZdROLx','1182084sFHfwS','10LXoUOn','46LRpZaH','259156VZABOH','10476153fSpdyi','8181720kbdskM','10AQvbRb','140118jYejjJ','11695882VFQxWa','14ImglmW'];a41_0x124c=function(){return _0x55f687;};return a41_0x124c();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a42_0x28f355=a42_0x3dcf;(function(_0x59284d,_0x46426a){const _0x254d0d=a42_0x3dcf,_0x22e14e=_0x59284d();while(!![]){try{const _0x3e8742=parseInt(_0x254d0d(0x19a))/0x1+-parseInt(_0x254d0d(0x18c))/0x2+parseInt(_0x254d0d(0x188))/0x3*(-parseInt(_0x254d0d(0x1a0))/0x4)+-parseInt(_0x254d0d(0x19b))/0x5*(parseInt(_0x254d0d(0x18a))/0x6)+parseInt(_0x254d0d(0x18e))/0x7*(-parseInt(_0x254d0d(0x186))/0x8)+-parseInt(_0x254d0d(0x199))/0x9*(parseInt(_0x254d0d(0x1a1))/0xa)+-parseInt(_0x254d0d(0x193))/0xb*(-parseInt(_0x254d0d(0x187))/0xc);if(_0x3e8742===_0x46426a)break;else _0x22e14e['push'](_0x22e14e['shift']());}catch(_0x3e9795){_0x22e14e['push'](_0x22e14e['shift']());}}}(a42_0x2c41,0xad313));function a42_0x3dcf(_0xc7137d,_0x1fddb1){_0xc7137d=_0xc7137d-0x185;const _0x2c4174=a42_0x2c41();let _0x3dcfec=_0x2c4174[_0xc7137d];return _0x3dcfec;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a42_0x2c41(){const _0x2e81de=['codegen','name','120gwnJDm','2785356AsRfGO','305367sEWXjD','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','4310832pmmQYw','skip-imports','236600zDZhwk','str','524111wZUAja','read','tableName','string','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','176jZiyTU','operation','sdk','bool','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','boolean','8027991BDquml','356398pMuxRo','5dyvAmP','code','alias','Omit\x20import\x20statements\x20from\x20generated\x20code','appCode','20KJfztS','10whBmhT'];a42_0x2c41=function(){return _0x2e81de;};return a42_0x2c41();}export const codegenSdk={'service':a42_0x28f355(0x1a2),'command':a42_0x28f355(0x195),'description':a42_0x28f355(0x192),'risk':a42_0x28f355(0x18f),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0x28f355(0x19d),'type':a42_0x28f355(0x191),'description':a42_0x28f355(0x189)},{'name':'operation','type':a42_0x28f355(0x191),'required':!![],'description':a42_0x28f355(0x197)},{'name':a42_0x28f355(0x18b),'type':a42_0x28f355(0x198),'description':a42_0x28f355(0x19e)}],async 'execute'(_0x4dddbd){const _0x420f5d=a42_0x28f355,{dataset:_0x87311c,operation:_0x5d71c9}=await getOperationDetail(_0x4dddbd[_0x420f5d(0x19f)],_0x4dddbd[_0x420f5d(0x18d)](_0x420f5d(0x19c)),_0x4dddbd['str'](_0x420f5d(0x194))),_0x126274=generateSdkCode(_0x87311c,_0x5d71c9,{'includeImports':!_0x4dddbd[_0x420f5d(0x196)](_0x420f5d(0x18b))});return{'ok':!![],'data':{'dataset':{'name':_0x87311c[_0x420f5d(0x185)],'code':_0x87311c[_0x420f5d(0x19c)],'tableName':_0x87311c[_0x420f5d(0x190)]},'operation':_0x4dddbd['str']('operation'),'code':_0x126274}};}};
1
+ const a42_0x1c7d24=a42_0x54ba;function a42_0x54ba(_0x334cc1,_0xe8d225){_0x334cc1=_0x334cc1-0x1a9;const _0x348264=a42_0x3482();let _0x54ba78=_0x348264[_0x334cc1];return _0x54ba78;}(function(_0xccfd69,_0x55dafe){const _0x3ad815=a42_0x54ba,_0x499226=_0xccfd69();while(!![]){try{const _0x42e817=parseInt(_0x3ad815(0x1b2))/0x1*(parseInt(_0x3ad815(0x1bb))/0x2)+-parseInt(_0x3ad815(0x1c1))/0x3+parseInt(_0x3ad815(0x1b4))/0x4+parseInt(_0x3ad815(0x1b9))/0x5*(parseInt(_0x3ad815(0x1af))/0x6)+-parseInt(_0x3ad815(0x1ba))/0x7*(-parseInt(_0x3ad815(0x1ac))/0x8)+parseInt(_0x3ad815(0x1ab))/0x9*(parseInt(_0x3ad815(0x1bf))/0xa)+-parseInt(_0x3ad815(0x1c3))/0xb*(parseInt(_0x3ad815(0x1b0))/0xc);if(_0x42e817===_0x55dafe)break;else _0x499226['push'](_0x499226['shift']());}catch(_0x1091e4){_0x499226['push'](_0x499226['shift']());}}}(a42_0x3482,0x7059f));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a42_0x3482(){const _0x5d1345=['bool','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','2629020oWOoQC','1152fpWYyo','read','178QVeWel','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','2532616bbflWB','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','alias','str','string','5UnHYLg','216510pScdSP','542fDLFHp','boolean','Omit\x20import\x20statements\x20from\x20generated\x20code','operation','265390xzsjsx','code','1593636CqrjSi','appCode','28358aQckBh','skip-imports','name','9nCjnkj','24BsaRHx'];a42_0x3482=function(){return _0x5d1345;};return a42_0x3482();}export const codegenSdk={'service':'codegen','command':'sdk','description':a42_0x1c7d24(0x1b3),'risk':a42_0x1c7d24(0x1b1),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0x1c7d24(0x1b6),'type':a42_0x1c7d24(0x1b8),'description':a42_0x1c7d24(0x1b5)},{'name':a42_0x1c7d24(0x1be),'type':a42_0x1c7d24(0x1b8),'required':!![],'description':a42_0x1c7d24(0x1ae)},{'name':'skip-imports','type':a42_0x1c7d24(0x1bc),'description':a42_0x1c7d24(0x1bd)}],async 'execute'(_0x1d357e){const _0x7d30d0=a42_0x1c7d24,{dataset:_0x30126f,operation:_0x288615}=await getOperationDetail(_0x1d357e[_0x7d30d0(0x1c2)],_0x1d357e[_0x7d30d0(0x1b7)](_0x7d30d0(0x1c0)),_0x1d357e[_0x7d30d0(0x1b7)](_0x7d30d0(0x1be))),_0x28e9c0=generateSdkCode(_0x30126f,_0x288615,{'includeImports':!_0x1d357e[_0x7d30d0(0x1ad)](_0x7d30d0(0x1a9))});return{'ok':!![],'data':{'dataset':{'name':_0x30126f[_0x7d30d0(0x1aa)],'code':_0x30126f[_0x7d30d0(0x1c0)],'tableName':_0x30126f['tableName']},'operation':_0x1d357e[_0x7d30d0(0x1b7)](_0x7d30d0(0x1be)),'code':_0x28e9c0}};}};
@@ -1 +1 @@
1
- const a43_0x4d5389=a43_0x21f8;(function(_0x3eccd3,_0x49ba41){const _0x2c3649=a43_0x21f8,_0x32b1bc=_0x3eccd3();while(!![]){try{const _0x167837=-parseInt(_0x2c3649(0xb5))/0x1+-parseInt(_0x2c3649(0xbc))/0x2+-parseInt(_0x2c3649(0xab))/0x3+parseInt(_0x2c3649(0xb2))/0x4+-parseInt(_0x2c3649(0xac))/0x5*(-parseInt(_0x2c3649(0xb0))/0x6)+parseInt(_0x2c3649(0xad))/0x7+parseInt(_0x2c3649(0xb8))/0x8;if(_0x167837===_0x49ba41)break;else _0x32b1bc['push'](_0x32b1bc['shift']());}catch(_0x38e03f){_0x32b1bc['push'](_0x32b1bc['shift']());}}}(a43_0x5eea,0x5db42));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a43_0x21f8(_0x151ffb,_0xd5ed29){_0x151ffb=_0x151ffb-0xa9;const _0x5eea0d=a43_0x5eea();let _0x21f80d=_0x5eea0d[_0x151ffb];return _0x21f80d;}function a43_0x5eea(){const _0x2740ef=['821862qXdwOl','5efyPeF','2456587pNAOgw','no-imports','bool','1508958epjYMg','sqlcode','2571960BMtxbd','sqlCode','sdk','531951yDxssT','str','codegen','2187840UumewU','sql','target','Omit\x20import\x20statements\x20from\x20generated\x20code','658378nSWMQu','read','sqlName'];a43_0x5eea=function(){return _0x2740ef;};return a43_0x5eea();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a43_0x4d5389(0xb7),'command':a43_0x4d5389(0xb9),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a43_0x4d5389(0xa9),'flags':[SQLCODE_FLAG,{'name':a43_0x4d5389(0xba),'type':'string','description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a43_0x4d5389(0xb4),'enum':[a43_0x4d5389(0xb4),'bff']},{'name':a43_0x4d5389(0xae),'type':'boolean','description':a43_0x4d5389(0xbb)}],async 'execute'(_0x5d4a14){const _0x5ddf1=a43_0x4d5389,_0x4bbc12=await getSqlQueryInfo(_0x5d4a14['appCode'],_0x5d4a14[_0x5ddf1(0xb6)](_0x5ddf1(0xb1))),_0x170752=_0x5d4a14[_0x5ddf1(0xb6)]('target')||_0x5ddf1(0xb4),_0x3fef13=generateSqlCodeTemplate(_0x4bbc12,{'target':_0x170752,'includeImports':!_0x5d4a14[_0x5ddf1(0xaf)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x4bbc12[_0x5ddf1(0xb3)],'sqlName':_0x4bbc12[_0x5ddf1(0xaa)],'target':_0x170752,'code':_0x3fef13}};}};
1
+ const a43_0x161fbb=a43_0x54d7;(function(_0x3d4d2f,_0x327d2b){const _0xf9b86e=a43_0x54d7,_0x22c635=_0x3d4d2f();while(!![]){try{const _0xca9b75=-parseInt(_0xf9b86e(0xbc))/0x1*(-parseInt(_0xf9b86e(0xbd))/0x2)+parseInt(_0xf9b86e(0xa2))/0x3*(-parseInt(_0xf9b86e(0xb1))/0x4)+-parseInt(_0xf9b86e(0xab))/0x5*(-parseInt(_0xf9b86e(0xb0))/0x6)+-parseInt(_0xf9b86e(0xac))/0x7*(-parseInt(_0xf9b86e(0xaf))/0x8)+parseInt(_0xf9b86e(0xa8))/0x9*(-parseInt(_0xf9b86e(0xbe))/0xa)+parseInt(_0xf9b86e(0xb3))/0xb*(parseInt(_0xf9b86e(0xad))/0xc)+-parseInt(_0xf9b86e(0xa4))/0xd;if(_0xca9b75===_0x327d2b)break;else _0x22c635['push'](_0x22c635['shift']());}catch(_0x2b7991){_0x22c635['push'](_0x22c635['shift']());}}}(a43_0x5e39,0x9c62b));function a43_0x54d7(_0x5278a4,_0x1b8ade){_0x5278a4=_0x5278a4-0xa2;const _0x5e39cc=a43_0x5e39();let _0x54d7a9=_0x5e39cc[_0x5278a4];return _0x54d7a9;}function a43_0x5e39(){const _0x337309=['Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','271315kTjXtn','1122611wffghW','3744cLtwmi','sqlCode','24XafjCH','54uQbvOY','5992dbpblZ','string','31768wGSELm','sqlcode','bool','codegen','read','target','sql','str','Omit\x20import\x20statements\x20from\x20generated\x20code','69XGwZVw','28990LMwhVa','1730870zWAsVI','appCode','285sdrqzZ','boolean','11390899UeiBvG','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sdk','63AXsYRn','bff'];a43_0x5e39=function(){return _0x337309;};return a43_0x5e39();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a43_0x161fbb(0xb6),'command':a43_0x161fbb(0xb9),'description':a43_0x161fbb(0xaa),'risk':a43_0x161fbb(0xb7),'flags':[SQLCODE_FLAG,{'name':a43_0x161fbb(0xb8),'type':a43_0x161fbb(0xb2),'description':a43_0x161fbb(0xa6),'default':a43_0x161fbb(0xa7),'enum':[a43_0x161fbb(0xa7),a43_0x161fbb(0xa9)]},{'name':a43_0x161fbb(0xa5),'type':a43_0x161fbb(0xa3),'description':a43_0x161fbb(0xbb)}],async 'execute'(_0x3991ce){const _0x382224=a43_0x161fbb,_0x4c326d=await getSqlQueryInfo(_0x3991ce[_0x382224(0xbf)],_0x3991ce['str'](_0x382224(0xb4))),_0xaad404=_0x3991ce[_0x382224(0xba)](_0x382224(0xb8))||_0x382224(0xa7),_0x43ea7d=generateSqlCodeTemplate(_0x4c326d,{'target':_0xaad404,'includeImports':!_0x3991ce[_0x382224(0xb5)](_0x382224(0xa5))});return{'ok':!![],'data':{'sqlCode':_0x4c326d[_0x382224(0xae)],'sqlName':_0x4c326d['sqlName'],'target':_0xaad404,'code':_0x43ea7d}};}};
@@ -1 +1 @@
1
- function a44_0x3abb(_0x30d9bd,_0x472664){_0x30d9bd=_0x30d9bd-0x1ed;const _0x1bf1f0=a44_0x1bf1();let _0x3abbd6=_0x1bf1f0[_0x30d9bd];return _0x3abbd6;}(function(_0x3b4173,_0x2967fb){const _0x3f13c2=a44_0x3abb,_0x283365=_0x3b4173();while(!![]){try{const _0x28313b=-parseInt(_0x3f13c2(0x215))/0x1+parseInt(_0x3f13c2(0x20d))/0x2+parseInt(_0x3f13c2(0x1ed))/0x3*(parseInt(_0x3f13c2(0x211))/0x4)+-parseInt(_0x3f13c2(0x20f))/0x5+-parseInt(_0x3f13c2(0x1ef))/0x6*(-parseInt(_0x3f13c2(0x213))/0x7)+-parseInt(_0x3f13c2(0x201))/0x8+parseInt(_0x3f13c2(0x208))/0x9;if(_0x28313b===_0x2967fb)break;else _0x283365['push'](_0x283365['shift']());}catch(_0xfec0bd){_0x283365['push'](_0x283365['shift']());}}}(a44_0x1bf1,0x4944e));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x3c0449=a44_0x3abb;return[{'name':_0x3c0449(0x1ff),'type':_0x3c0449(0x20b),'description':_0x3c0449(0x204),'required':!![]},{'name':'global','type':_0x3c0449(0x206),'description':_0x3c0449(0x1f0),'default':![]},...getAppProfileFlagDefs()];}function a44_0x1bf1(){const _0x8cd931=['\x20config.','\x20<name>\x20[--global]','validation','appcode','apps','2204000nfHSDa','Usage:\x20','\x22\x20still\x20defined\x20in\x20','App\x20code','\x20Note:\x20app\x20\x22','boolean','str','8191008oVxwuR','keys','project','string','globalConfig','777324leDSgN','App\x20\x22','2895525xwCKBQ','Updated','4yYEJNk','bool','11494iCESPs','trim','553256CWnZzi','\x20<name>','\x20<name>\x20--appcode\x20<code>','defaultApp','args','153723DEhGpV','Added','1308bhfhMe','Use\x20global\x20config\x20scope','Removed\x20app\x20\x22','\x22\x20not\x20found.','\x22\x20(appcode:\x20','projectConfig','\x20app\x20\x22','global','Missing\x20app\x20name.','\x20Default\x20app\x20changed\x20to\x20\x22','length','object','\x20Default\x20app\x20is\x20\x22'];a44_0x1bf1=function(){return _0x8cd931;};return a44_0x1bf1();}export function buildAppRemoveFlags(){const _0x34a9ed=a44_0x3abb;return[{'name':_0x34a9ed(0x1f6),'type':_0x34a9ed(0x206),'description':_0x34a9ed(0x1f0),'default':![]}];}export async function validateAppName(_0x20456c,_0x1672d7){const _0x438d77=a44_0x3abb,_0x104110=_0x20456c[_0x438d77(0x219)][0x0]?.[_0x438d77(0x214)]();if(!_0x104110)throw CliErrors[_0x438d77(0x1fe)](_0x438d77(0x1f7),_0x438d77(0x202)+CLI_BIN_NAME+'\x20'+_0x1672d7+_0x438d77(0x216));}export async function runAppAdd(_0x4715d4,_0x285d47){const _0x330f98=a44_0x3abb,_0x234963=_0x4715d4[_0x330f98(0x219)][0x0]?.['trim']();if(!_0x234963)throw CliErrors['validation'](_0x330f98(0x1f7),_0x330f98(0x202)+CLI_BIN_NAME+'\x20'+_0x285d47+_0x330f98(0x217));const _0x50e5a3=_0x4715d4[_0x330f98(0x207)](_0x330f98(0x1ff));if(!_0x50e5a3)throw CliErrors['flagMissing']('appcode',_0x330f98(0x202)+CLI_BIN_NAME+'\x20'+_0x285d47+_0x330f98(0x217));const _0x34e38a={'global':_0x4715d4[_0x330f98(0x212)]('global')},_0x57feeb=readConfig(_0x34e38a);if(!_0x57feeb[_0x330f98(0x200)])_0x57feeb[_0x330f98(0x200)]={};const _0x26735c={'appcode':_0x50e5a3,...collectAppProfileOverrides(_0x15e803=>_0x4715d4[_0x330f98(0x207)](_0x15e803))},_0x19fbe0=_0x57feeb[_0x330f98(0x200)],_0x10264c=Object[_0x330f98(0x209)](_0x19fbe0),_0xcd2b12=typeof _0x57feeb[_0x330f98(0x218)]==='string'&&_0x19fbe0[_0x57feeb[_0x330f98(0x218)]]?_0x57feeb[_0x330f98(0x218)]:_0x10264c[_0x330f98(0x1f9)]===0x1?_0x10264c[0x0]:undefined,_0x1b7128=!!_0x19fbe0[_0x234963];_0x19fbe0[_0x234963]=_0x26735c;const _0x258c2a=normalizeStoredDefaultApp(_0x57feeb,_0xcd2b12);writeConfig(_0x57feeb,_0x34e38a);const _0xa0db40=!_0x1b7128&&_0x258c2a?_0x330f98(0x1fb)+_0x258c2a+'\x22.':'',_0x5e68a6=(_0x1b7128?_0x330f98(0x210):_0x330f98(0x1ee))+_0x330f98(0x1f5)+_0x234963+_0x330f98(0x1f3)+_0x50e5a3+')'+scopeLabel(_0x34e38a)+'.'+_0xa0db40;return{'ok':!![],'message':_0x5e68a6};}export async function runAppRemove(_0xaf56b0,_0x173c13){const _0x5d90fa=a44_0x3abb,_0x44fb4f=_0xaf56b0[_0x5d90fa(0x219)][0x0]?.[_0x5d90fa(0x214)]();if(!_0x44fb4f)throw CliErrors[_0x5d90fa(0x1fe)](_0x5d90fa(0x1f7),_0x5d90fa(0x202)+CLI_BIN_NAME+'\x20'+_0x173c13+_0x5d90fa(0x1fd));const _0x319d49=_0xaf56b0[_0x5d90fa(0x212)]('global'),{config:_0x4a1837,layers:_0x3bdba5}=readRawConfigWithLayers(),_0x58eff7=_0x4a1837[_0x5d90fa(0x200)]??{};if(!_0x58eff7[_0x44fb4f])throw CliErrors['validation'](_0x5d90fa(0x20e)+_0x44fb4f+_0x5d90fa(0x1f2));const _0x2d9c04=_0x3bdba5[_0x5d90fa(0x20c)]['apps']&&typeof _0x3bdba5[_0x5d90fa(0x20c)]['apps']==='object'?_0x3bdba5[_0x5d90fa(0x20c)][_0x5d90fa(0x200)]:{},_0x3d3a5e=_0x3bdba5[_0x5d90fa(0x1f4)]['apps']&&typeof _0x3bdba5['projectConfig'][_0x5d90fa(0x200)]===_0x5d90fa(0x1fa)?_0x3bdba5[_0x5d90fa(0x1f4)][_0x5d90fa(0x200)]:{},_0x51ecf9=appDefinedIn(_0x44fb4f,_0x2d9c04,_0x3d3a5e),_0x4cedcf=resolveAppScopeForWrite(_0x44fb4f,_0x319d49,_0x3bdba5),_0x1952dc={'global':_0x4cedcf==='global'},_0x2e18ff=readConfig(_0x1952dc),_0x2fd863=_0x2e18ff[_0x5d90fa(0x200)];if(!_0x2fd863||!_0x2fd863[_0x44fb4f])throw CliErrors[_0x5d90fa(0x1fe)]('App\x20\x22'+_0x44fb4f+_0x5d90fa(0x1f2));delete _0x2fd863[_0x44fb4f];let _0xa3c404='';const _0x85aedc=typeof _0x2e18ff['defaultApp']===_0x5d90fa(0x20b)?_0x2e18ff['defaultApp']:undefined,_0x37af81=Object[_0x5d90fa(0x209)](_0x2fd863),_0x444add=_0x85aedc===_0x44fb4f?_0x37af81[0x0]:_0x85aedc,_0x4739c1=normalizeStoredDefaultApp(_0x2e18ff,_0x444add);if(_0x85aedc===_0x44fb4f&&_0x37af81[_0x5d90fa(0x1f9)]===0x1)_0xa3c404='\x20Remaining\x20app\x20\x22'+_0x37af81[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0x85aedc===_0x44fb4f&&_0x4739c1&&(_0xa3c404=_0x5d90fa(0x1f8)+_0x4739c1+'\x22.');Object[_0x5d90fa(0x209)](_0x2fd863)[_0x5d90fa(0x1f9)]===0x0&&(delete _0x2e18ff['apps'],delete _0x2e18ff[_0x5d90fa(0x218)]);writeConfig(_0x2e18ff,_0x1952dc);const _0xce1d96=_0x51ecf9==='both'?_0x5d90fa(0x205)+_0x44fb4f+_0x5d90fa(0x203)+(_0x4cedcf==='project'?_0x5d90fa(0x1f6):_0x5d90fa(0x20a))+_0x5d90fa(0x1fc):'';return{'ok':!![],'message':_0x5d90fa(0x1f1)+_0x44fb4f+'\x22'+scopeLabel(_0x1952dc)+'.'+_0xa3c404+_0xce1d96};}
1
+ function a44_0x47c6(_0x5e5e62,_0x34d155){_0x5e5e62=_0x5e5e62-0x1c1;const _0x26efeb=a44_0x26ef();let _0x47c646=_0x26efeb[_0x5e5e62];return _0x47c646;}(function(_0xfc1b0f,_0x47ad08){const _0x2ed7ea=a44_0x47c6,_0xec88c8=_0xfc1b0f();while(!![]){try{const _0x43c04e=parseInt(_0x2ed7ea(0x1ea))/0x1+-parseInt(_0x2ed7ea(0x1cc))/0x2+parseInt(_0x2ed7ea(0x1d3))/0x3+-parseInt(_0x2ed7ea(0x1e6))/0x4+parseInt(_0x2ed7ea(0x1d6))/0x5*(-parseInt(_0x2ed7ea(0x1e9))/0x6)+-parseInt(_0x2ed7ea(0x1c4))/0x7+parseInt(_0x2ed7ea(0x1e4))/0x8;if(_0x43c04e===_0x47ad08)break;else _0xec88c8['push'](_0xec88c8['shift']());}catch(_0x10f310){_0xec88c8['push'](_0xec88c8['shift']());}}}(a44_0x26ef,0x7a719));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x38acb8=a44_0x47c6;return[{'name':_0x38acb8(0x1c3),'type':_0x38acb8(0x1c7),'description':'App\x20code','required':!![]},{'name':_0x38acb8(0x1df),'type':'boolean','description':_0x38acb8(0x1ca),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x42b7bf=a44_0x47c6;return[{'name':_0x42b7bf(0x1df),'type':_0x42b7bf(0x1eb),'description':'Use\x20global\x20config\x20scope','default':![]}];}function a44_0x26ef(){const _0x5d33b3=['Missing\x20app\x20name.','4378092VoVyvZ','338865mMPVPr','boolean','\x20app\x20\x22','\x20Default\x20app\x20is\x20\x22','defaultApp','bool','appcode','6082384zVDzfK','projectConfig','flagMissing','string','\x22\x20(appcode:\x20','str','Use\x20global\x20config\x20scope','length','461570vlqjQg','Updated','project','\x20<name>\x20[--global]','object','\x20Note:\x20app\x20\x22','apps','521841RqnImb','both','validation','5udfkAz','\x20Remaining\x20app\x20\x22','Usage:\x20','globalConfig','\x22\x20not\x20found.','\x20<name>','\x20<name>\x20--appcode\x20<code>','\x20config.','keys','global','Added','trim','Removed\x20app\x20\x22','App\x20\x22','18948920YVHTBj','\x20Default\x20app\x20changed\x20to\x20\x22','2202076xjwPib','args'];a44_0x26ef=function(){return _0x5d33b3;};return a44_0x26ef();}export async function validateAppName(_0x43b696,_0x3c578c){const _0x3671b7=a44_0x47c6,_0x195f69=_0x43b696[_0x3671b7(0x1e7)][0x0]?.[_0x3671b7(0x1e1)]();if(!_0x195f69)throw CliErrors[_0x3671b7(0x1d5)](_0x3671b7(0x1e8),_0x3671b7(0x1d8)+CLI_BIN_NAME+'\x20'+_0x3c578c+_0x3671b7(0x1db));}export async function runAppAdd(_0x7b7e05,_0x32f8d3){const _0x3474d6=a44_0x47c6,_0x140a25=_0x7b7e05['args'][0x0]?.[_0x3474d6(0x1e1)]();if(!_0x140a25)throw CliErrors[_0x3474d6(0x1d5)](_0x3474d6(0x1e8),_0x3474d6(0x1d8)+CLI_BIN_NAME+'\x20'+_0x32f8d3+_0x3474d6(0x1dc));const _0x39ac62=_0x7b7e05[_0x3474d6(0x1c9)](_0x3474d6(0x1c3));if(!_0x39ac62)throw CliErrors[_0x3474d6(0x1c6)](_0x3474d6(0x1c3),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x32f8d3+'\x20<name>\x20--appcode\x20<code>');const _0xbf8fb9={'global':_0x7b7e05[_0x3474d6(0x1c2)](_0x3474d6(0x1df))},_0x4495fd=readConfig(_0xbf8fb9);if(!_0x4495fd[_0x3474d6(0x1d2)])_0x4495fd[_0x3474d6(0x1d2)]={};const _0x545cfd={'appcode':_0x39ac62,...collectAppProfileOverrides(_0x5537de=>_0x7b7e05[_0x3474d6(0x1c9)](_0x5537de))},_0x46dd75=_0x4495fd[_0x3474d6(0x1d2)],_0x5ad531=Object[_0x3474d6(0x1de)](_0x46dd75),_0x28a0aa=typeof _0x4495fd[_0x3474d6(0x1c1)]===_0x3474d6(0x1c7)&&_0x46dd75[_0x4495fd[_0x3474d6(0x1c1)]]?_0x4495fd[_0x3474d6(0x1c1)]:_0x5ad531['length']===0x1?_0x5ad531[0x0]:undefined,_0x542a8a=!!_0x46dd75[_0x140a25];_0x46dd75[_0x140a25]=_0x545cfd;const _0x79d37e=normalizeStoredDefaultApp(_0x4495fd,_0x28a0aa);writeConfig(_0x4495fd,_0xbf8fb9);const _0x1e6591=!_0x542a8a&&_0x79d37e?_0x3474d6(0x1ed)+_0x79d37e+'\x22.':'',_0x587362=(_0x542a8a?_0x3474d6(0x1cd):_0x3474d6(0x1e0))+_0x3474d6(0x1ec)+_0x140a25+_0x3474d6(0x1c8)+_0x39ac62+')'+scopeLabel(_0xbf8fb9)+'.'+_0x1e6591;return{'ok':!![],'message':_0x587362};}export async function runAppRemove(_0x485ae3,_0x269f59){const _0x1f0f43=a44_0x47c6,_0x290d11=_0x485ae3[_0x1f0f43(0x1e7)][0x0]?.[_0x1f0f43(0x1e1)]();if(!_0x290d11)throw CliErrors['validation'](_0x1f0f43(0x1e8),_0x1f0f43(0x1d8)+CLI_BIN_NAME+'\x20'+_0x269f59+_0x1f0f43(0x1cf));const _0xfce546=_0x485ae3[_0x1f0f43(0x1c2)](_0x1f0f43(0x1df)),{config:_0x7b0760,layers:_0x491428}=readRawConfigWithLayers(),_0x38f1e2=_0x7b0760[_0x1f0f43(0x1d2)]??{};if(!_0x38f1e2[_0x290d11])throw CliErrors[_0x1f0f43(0x1d5)](_0x1f0f43(0x1e3)+_0x290d11+_0x1f0f43(0x1da));const _0x532c94=_0x491428[_0x1f0f43(0x1d9)]['apps']&&typeof _0x491428[_0x1f0f43(0x1d9)][_0x1f0f43(0x1d2)]===_0x1f0f43(0x1d0)?_0x491428[_0x1f0f43(0x1d9)][_0x1f0f43(0x1d2)]:{},_0x23a0e8=_0x491428[_0x1f0f43(0x1c5)]['apps']&&typeof _0x491428[_0x1f0f43(0x1c5)][_0x1f0f43(0x1d2)]==='object'?_0x491428[_0x1f0f43(0x1c5)]['apps']:{},_0x583be6=appDefinedIn(_0x290d11,_0x532c94,_0x23a0e8),_0x3cb996=resolveAppScopeForWrite(_0x290d11,_0xfce546,_0x491428),_0x51bf4d={'global':_0x3cb996===_0x1f0f43(0x1df)},_0x377fbe=readConfig(_0x51bf4d),_0x1a3595=_0x377fbe[_0x1f0f43(0x1d2)];if(!_0x1a3595||!_0x1a3595[_0x290d11])throw CliErrors[_0x1f0f43(0x1d5)](_0x1f0f43(0x1e3)+_0x290d11+_0x1f0f43(0x1da));delete _0x1a3595[_0x290d11];let _0x27a6e7='';const _0x31c024=typeof _0x377fbe['defaultApp']===_0x1f0f43(0x1c7)?_0x377fbe['defaultApp']:undefined,_0x20305a=Object[_0x1f0f43(0x1de)](_0x1a3595),_0x19d6d0=_0x31c024===_0x290d11?_0x20305a[0x0]:_0x31c024,_0x3dc36a=normalizeStoredDefaultApp(_0x377fbe,_0x19d6d0);if(_0x31c024===_0x290d11&&_0x20305a[_0x1f0f43(0x1cb)]===0x1)_0x27a6e7=_0x1f0f43(0x1d7)+_0x20305a[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0x31c024===_0x290d11&&_0x3dc36a&&(_0x27a6e7=_0x1f0f43(0x1e5)+_0x3dc36a+'\x22.');Object[_0x1f0f43(0x1de)](_0x1a3595)[_0x1f0f43(0x1cb)]===0x0&&(delete _0x377fbe[_0x1f0f43(0x1d2)],delete _0x377fbe['defaultApp']);writeConfig(_0x377fbe,_0x51bf4d);const _0x154236=_0x583be6===_0x1f0f43(0x1d4)?_0x1f0f43(0x1d1)+_0x290d11+'\x22\x20still\x20defined\x20in\x20'+(_0x3cb996===_0x1f0f43(0x1ce)?_0x1f0f43(0x1df):'project')+_0x1f0f43(0x1dd):'';return{'ok':!![],'message':_0x1f0f43(0x1e2)+_0x290d11+'\x22'+scopeLabel(_0x51bf4d)+'.'+_0x27a6e7+_0x154236};}
@@ -1 +1 @@
1
- (function(_0x5da7f7,_0x42806e){const _0x1d761d=a45_0x2002,_0x569311=_0x5da7f7();while(!![]){try{const _0xbfacda=parseInt(_0x1d761d(0x76))/0x1*(parseInt(_0x1d761d(0x91))/0x2)+parseInt(_0x1d761d(0x7e))/0x3*(-parseInt(_0x1d761d(0x97))/0x4)+-parseInt(_0x1d761d(0x79))/0x5*(parseInt(_0x1d761d(0x8a))/0x6)+parseInt(_0x1d761d(0x94))/0x7*(-parseInt(_0x1d761d(0x75))/0x8)+-parseInt(_0x1d761d(0x93))/0x9+-parseInt(_0x1d761d(0x7d))/0xa+parseInt(_0x1d761d(0x8c))/0xb*(parseInt(_0x1d761d(0x7c))/0xc);if(_0xbfacda===_0x42806e)break;else _0x569311['push'](_0x569311['shift']());}catch(_0x2949bc){_0x569311['push'](_0x569311['shift']());}}}(a45_0x4a88,0xb9fae));import{input,checkbox,select}from'@inquirer/prompts';function a45_0x2002(_0x442cf2,_0x159e1a){_0x442cf2=_0x442cf2-0x73;const _0x4a8815=a45_0x4a88();let _0x20026f=_0x4a8815[_0x442cf2];return _0x20026f;}function a45_0x4a88(){const _0x2d128f=['trim','21972qpQkGu','318880dfhhZr','15300TMSQgW','App\x20Code:','length','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','Fetching\x20available\x20apps...','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','custom','manual','gray','(Skip;\x20configure\x20later)','yellow','534PkFmGX','appName','17996ouzVRC','✎\x20Enter\x20appcode\x20manually','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','\x20\x20(','cyan','123982YVWLoE','map','1114902dKLQqo','14WpwXzy','message','✎\x20Enter\x20manually','872aoEgKO','appCode','No\x20available\x20apps\x20found.','Select\x20the\x20app\x20to\x20bind:','skip','521064wcYjzw','9GklKeb','includes','Invalid\x20App\x20Code','78305uyFDzK','valid'];a45_0x4a88=function(){return _0x2d128f;};return a45_0x4a88();}import a45_0x4406a5 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 _0x149614=await input({'message':'App\x20Code:','validate':_0x2e313b=>{const _0x5e8f84=a45_0x2002,_0x217ae5=validateAppcode(_0x2e313b[_0x5e8f84(0x7b)]());return _0x217ae5[_0x5e8f84(0x7a)]||_0x217ae5['message']||_0x5e8f84(0x78);}});return _0x149614['trim']();}export async function promptAppSelection(_0x573077){const _0x560873=a45_0x2002,_0x346d24=[{'name':a45_0x4406a5[_0x560873(0x89)](_0x560873(0x8d)),'value':-0x1},..._0x573077[_0x560873(0x92)]((_0x1d52c0,_0x52ef84)=>({'name':_0x1d52c0[_0x560873(0x8b)]+'\x20\x20'+a45_0x4406a5[_0x560873(0x87)]('('+_0x1d52c0[_0x560873(0x98)]+')'),'value':_0x52ef84}))],_0x449356=await checkbox({'message':'Found\x20'+a45_0x4406a5[_0x560873(0x90)](_0x573077[_0x560873(0x80)])+_0x560873(0x8e),'choices':_0x346d24,'loop':![]});if(_0x449356[_0x560873(0x77)](-0x1))return _0x560873(0x85);if(_0x449356[_0x560873(0x80)]===0x0)return _0x560873(0x85);return _0x449356['map'](_0xa11e24=>_0x573077[_0xa11e24]);}export async function promptSingleAppSelection(_0x227e8e){const _0x296eda=a45_0x2002,_0x340db6=[{'name':a45_0x4406a5['gray']('(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)'),'value':_0x296eda(0x74)},{'name':a45_0x4406a5[_0x296eda(0x89)](_0x296eda(0x8d)),'value':_0x296eda(0x85)},..._0x227e8e[_0x296eda(0x92)](_0x4db2e9=>({'name':_0x4db2e9[_0x296eda(0x8b)]+'\x20\x20'+a45_0x4406a5[_0x296eda(0x87)]('('+_0x4db2e9[_0x296eda(0x98)]+')'),'value':_0x4db2e9[_0x296eda(0x98)]}))],_0x1232bf=await select({'message':_0x296eda(0x73),'choices':_0x340db6});if(_0x1232bf===_0x296eda(0x74))return'skip';if(_0x1232bf===_0x296eda(0x85))return _0x296eda(0x85);return _0x227e8e['find'](_0x228348=>_0x228348[_0x296eda(0x98)]===_0x1232bf);}export async function selectSingleAppcode(_0x2965d1){const _0x5312b4=a45_0x2002;if(!_0x2965d1)return writeCliSideChannelLine(a45_0x4406a5[_0x5312b4(0x87)](_0x5312b4(0x84))),_fallbackOrSkip();writeCliSideChannelLine(_0x5312b4(0x83));let _0x1727b2;try{_0x1727b2=await withActiveCookie(_0x2965d1,()=>listRemoteApps());}catch(_0xd83663){writeCliSideChannelLine(a45_0x4406a5[_0x5312b4(0x89)](_0x5312b4(0x82)));if(_0xd83663 instanceof Error)writeCliSideChannelLine(a45_0x4406a5[_0x5312b4(0x87)]('\x20\x20('+_0xd83663[_0x5312b4(0x95)]+')'));return _fallbackOrSkip();}if(_0x1727b2[_0x5312b4(0x80)]===0x0)return writeCliSideChannelLine(a45_0x4406a5[_0x5312b4(0x89)](_0x5312b4(0x99))),_fallbackOrSkip();const _0x141654=await promptSingleAppSelection(_0x1727b2);if(_0x141654==='skip')return'';if(_0x141654===_0x5312b4(0x85))return promptCustomAppcode();return _0x141654[_0x5312b4(0x98)];}export async function selectMultipleApps(_0xe18a1){const _0xee3acf=a45_0x2002;writeCliSideChannelLine(_0xee3acf(0x83));let _0x5370fa;try{_0x5370fa=await withActiveCookie(_0xe18a1,()=>listRemoteApps());}catch(_0x18144a){writeCliSideChannelLine(_0xee3acf(0x81));if(_0x18144a instanceof Error)writeCliSideChannelLine(_0xee3acf(0x8f)+_0x18144a[_0xee3acf(0x95)]+')');return _0xee3acf(0x85);}if(_0x5370fa['length']===0x0)return writeCliSideChannelLine('\x0aNo\x20available\x20apps\x20found.'),'custom';return promptAppSelection(_0x5370fa);}async function _fallbackOrSkip(){const _0x4338a2=a45_0x2002,_0xe7578b=await select({'message':_0x4338a2(0x7f),'choices':[{'name':a45_0x4406a5['gray'](_0x4338a2(0x88)),'value':_0x4338a2(0x74)},{'name':a45_0x4406a5[_0x4338a2(0x89)](_0x4338a2(0x96)),'value':_0x4338a2(0x86)}]});if(_0xe7578b===_0x4338a2(0x74))return'';return promptCustomAppcode();}
1
+ function a45_0x1b65(){const _0x21377b=['Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','map','17785ANGOtK','trim','Select\x20the\x20app\x20to\x20bind:','✎\x20Enter\x20manually','gray','\x20\x20(','2750Ahncth','21ISNYEq','appName','2734644lTOQpx','28ryrrlE','1472912PNdurP','2ckqCDs','appCode','Invalid\x20App\x20Code','9vSdEDX','yellow','message','length','19943nvYGaF','319784yVJYBi','970491TDWZao','App\x20Code:','valid','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','No\x20available\x20apps\x20found.','890034FALQqm','Fetching\x20available\x20apps...','custom','Found\x20','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','skip','✎\x20Enter\x20appcode\x20manually'];a45_0x1b65=function(){return _0x21377b;};return a45_0x1b65();}(function(_0x1f9a7b,_0x1d61fe){const _0x4c707a=a45_0x36ac,_0x363202=_0x1f9a7b();while(!![]){try{const _0x53538f=parseInt(_0x4c707a(0xc1))/0x1+parseInt(_0x4c707a(0xdc))/0x2*(-parseInt(_0x4c707a(0xc2))/0x3)+-parseInt(_0x4c707a(0xda))/0x4*(-parseInt(_0x4c707a(0xd0))/0x5)+parseInt(_0x4c707a(0xc7))/0x6*(-parseInt(_0x4c707a(0xd7))/0x7)+parseInt(_0x4c707a(0xdb))/0x8*(parseInt(_0x4c707a(0xbc))/0x9)+parseInt(_0x4c707a(0xd6))/0xa*(parseInt(_0x4c707a(0xc0))/0xb)+parseInt(_0x4c707a(0xd9))/0xc;if(_0x53538f===_0x1d61fe)break;else _0x363202['push'](_0x363202['shift']());}catch(_0x37a5b1){_0x363202['push'](_0x363202['shift']());}}}(a45_0x1b65,0x76d59));import{input,checkbox,select}from'@inquirer/prompts';import a45_0x42c823 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 _0x27916b=a45_0x36ac,_0x5a8351=await input({'message':_0x27916b(0xc3),'validate':_0x10c8b7=>{const _0x34a6d1=_0x27916b,_0x1f2829=validateAppcode(_0x10c8b7[_0x34a6d1(0xd1)]());return _0x1f2829[_0x34a6d1(0xc4)]||_0x1f2829[_0x34a6d1(0xbe)]||_0x34a6d1(0xbb);}});return _0x5a8351[_0x27916b(0xd1)]();}export async function promptAppSelection(_0x2a06a0){const _0x52ed9c=a45_0x36ac,_0xc5fcb3=[{'name':a45_0x42c823[_0x52ed9c(0xbd)](_0x52ed9c(0xcd)),'value':-0x1},..._0x2a06a0[_0x52ed9c(0xcf)]((_0x155159,_0x267b5a)=>({'name':_0x155159[_0x52ed9c(0xd8)]+'\x20\x20'+a45_0x42c823[_0x52ed9c(0xd4)]('('+_0x155159[_0x52ed9c(0xdd)]+')'),'value':_0x267b5a}))],_0x11454f=await checkbox({'message':_0x52ed9c(0xca)+a45_0x42c823['cyan'](_0x2a06a0[_0x52ed9c(0xbf)])+_0x52ed9c(0xc5),'choices':_0xc5fcb3,'loop':![]});if(_0x11454f['includes'](-0x1))return _0x52ed9c(0xc9);if(_0x11454f[_0x52ed9c(0xbf)]===0x0)return _0x52ed9c(0xc9);return _0x11454f[_0x52ed9c(0xcf)](_0x49d4a0=>_0x2a06a0[_0x49d4a0]);}function a45_0x36ac(_0x22b5de,_0x5e9498){_0x22b5de=_0x22b5de-0xbb;const _0x1b65f3=a45_0x1b65();let _0x36ac7d=_0x1b65f3[_0x22b5de];return _0x36ac7d;}export async function promptSingleAppSelection(_0x38347b){const _0x1899be=a45_0x36ac,_0x3dee40=[{'name':a45_0x42c823[_0x1899be(0xd4)](_0x1899be(0xcb)),'value':_0x1899be(0xcc)},{'name':a45_0x42c823[_0x1899be(0xbd)]('✎\x20Enter\x20appcode\x20manually'),'value':_0x1899be(0xc9)},..._0x38347b['map'](_0x1782aa=>({'name':_0x1782aa[_0x1899be(0xd8)]+'\x20\x20'+a45_0x42c823['gray']('('+_0x1782aa[_0x1899be(0xdd)]+')'),'value':_0x1782aa['appCode']}))],_0x478bd9=await select({'message':_0x1899be(0xd2),'choices':_0x3dee40});if(_0x478bd9===_0x1899be(0xcc))return _0x1899be(0xcc);if(_0x478bd9===_0x1899be(0xc9))return _0x1899be(0xc9);return _0x38347b['find'](_0x54fbff=>_0x54fbff[_0x1899be(0xdd)]===_0x478bd9);}export async function selectSingleAppcode(_0x547cbc){const _0x27d9bc=a45_0x36ac;if(!_0x547cbc)return writeCliSideChannelLine(a45_0x42c823['gray']('(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)')),_fallbackOrSkip();writeCliSideChannelLine('Fetching\x20available\x20apps...');let _0x29cdbc;try{_0x29cdbc=await withActiveCookie(_0x547cbc,()=>listRemoteApps());}catch(_0x5b7d62){writeCliSideChannelLine(a45_0x42c823[_0x27d9bc(0xbd)](_0x27d9bc(0xce)));if(_0x5b7d62 instanceof Error)writeCliSideChannelLine(a45_0x42c823['gray'](_0x27d9bc(0xd5)+_0x5b7d62['message']+')'));return _fallbackOrSkip();}if(_0x29cdbc['length']===0x0)return writeCliSideChannelLine(a45_0x42c823[_0x27d9bc(0xbd)](_0x27d9bc(0xc6))),_fallbackOrSkip();const _0x4ae01b=await promptSingleAppSelection(_0x29cdbc);if(_0x4ae01b===_0x27d9bc(0xcc))return'';if(_0x4ae01b==='custom')return promptCustomAppcode();return _0x4ae01b[_0x27d9bc(0xdd)];}export async function selectMultipleApps(_0xab8e2a){const _0x575815=a45_0x36ac;writeCliSideChannelLine(_0x575815(0xc8));let _0x50ba54;try{_0x50ba54=await withActiveCookie(_0xab8e2a,()=>listRemoteApps());}catch(_0x13a4aa){writeCliSideChannelLine('\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.');if(_0x13a4aa instanceof Error)writeCliSideChannelLine(_0x575815(0xd5)+_0x13a4aa[_0x575815(0xbe)]+')');return _0x575815(0xc9);}if(_0x50ba54['length']===0x0)return writeCliSideChannelLine('\x0aNo\x20available\x20apps\x20found.'),_0x575815(0xc9);return promptAppSelection(_0x50ba54);}async function _fallbackOrSkip(){const _0x3f8482=a45_0x36ac,_0x443a56=await select({'message':_0x3f8482(0xc3),'choices':[{'name':a45_0x42c823['gray']('(Skip;\x20configure\x20later)'),'value':_0x3f8482(0xcc)},{'name':a45_0x42c823['yellow'](_0x3f8482(0xd3)),'value':'manual'}]});if(_0x443a56==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a46_0x3ad6fc=a46_0x58f4;(function(_0x329127,_0x3b5d38){const _0x4a3ead=a46_0x58f4,_0x12f8cd=_0x329127();while(!![]){try{const _0x112dc6=-parseInt(_0x4a3ead(0xe2))/0x1*(parseInt(_0x4a3ead(0xe4))/0x2)+parseInt(_0x4a3ead(0xe6))/0x3+-parseInt(_0x4a3ead(0xd8))/0x4+parseInt(_0x4a3ead(0xea))/0x5+parseInt(_0x4a3ead(0xdc))/0x6+-parseInt(_0x4a3ead(0xd9))/0x7*(-parseInt(_0x4a3ead(0xdf))/0x8)+-parseInt(_0x4a3ead(0xd2))/0x9*(parseInt(_0x4a3ead(0xd1))/0xa);if(_0x112dc6===_0x3b5d38)break;else _0x12f8cd['push'](_0x12f8cd['shift']());}catch(_0x4795ad){_0x12f8cd['push'](_0x12f8cd['shift']());}}}(a46_0xf0aa,0x5b73c));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a46_0x3ad6fc(0xcf),a46_0x3ad6fc(0xe3)]),NON_TERMINAL_STATUSES=new Set([a46_0x3ad6fc(0xed),'PROCESSING']);function a46_0xf0aa(){const _0x532299=['has','360774GZzjGa','errorMessage','\x20is\x20pending.','2694752Rexnzi','\x20completed\x20successfully.','\x20failed.','839fsavSF','FAILED','564pqCBEI','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','2174916pMQYAX','replace','\x27\x5c\x27\x27','trim','524505RFTFzC','apiError','\x20response\x20did\x20not\x20contain\x20a\x20status.','PENDING','Task\x20','toUpperCase','taskId','string','\x20returned\x20unknown\x20status\x20','SUCCESS','Async\x20task\x20','10ljWrEd','1860309sLNtYQ','PROCESSING','\x20is\x20processing.','\x20--appcode\x20','\x20task\x20status\x20--task-id\x20','status','1635836tpAonF','7tseBDi','\x20failed:\x20'];a46_0xf0aa=function(){return _0x532299;};return a46_0xf0aa();}export function normalizeAsyncTask(_0xb8b463){const _0x101449=a46_0x3ad6fc,_0x1c7f44=typeof _0xb8b463?.['taskId']===_0x101449(0xcd)?_0xb8b463['taskId'][_0x101449(0xe9)]():'';if(!_0x1c7f44)throw CliErrors[_0x101449(0xeb)](_0x101449(0xe5));const _0x5933b5=typeof _0xb8b463['status']===_0x101449(0xcd)?_0xb8b463[_0x101449(0xd7)][_0x101449(0xe9)]()[_0x101449(0xef)]():'';if(!_0x5933b5)throw CliErrors[_0x101449(0xeb)](_0x101449(0xd0)+_0x1c7f44+_0x101449(0xec));return{'taskId':_0x1c7f44,'status':_0x5933b5,'errorMessage':typeof _0xb8b463[_0x101449(0xdd)]==='string'&&_0xb8b463[_0x101449(0xdd)]['trim']()?_0xb8b463[_0x101449(0xdd)][_0x101449(0xe9)]():null,'isTerminal':TERMINAL_STATUSES[_0x101449(0xdb)](_0x5933b5),'knownStatus':TERMINAL_STATUSES[_0x101449(0xdb)](_0x5933b5)||NON_TERMINAL_STATUSES[_0x101449(0xdb)](_0x5933b5)};}export function buildAsyncTaskStatusCommand(_0x2f7f67,_0x2423be){const _0x21db71=a46_0x3ad6fc;return CLI_BIN_NAME+_0x21db71(0xd6)+quoteShellArg(_0x2f7f67)+_0x21db71(0xd5)+quoteShellArg(_0x2423be)+'\x20--format\x20compress';}function a46_0x58f4(_0xa2cbff,_0x50e5f0){_0xa2cbff=_0xa2cbff-0xcc;const _0xf0aa81=a46_0xf0aa();let _0x58f419=_0xf0aa81[_0xa2cbff];return _0x58f419;}export function asyncTaskMessage(_0x1afca6){const _0x49161c=a46_0x3ad6fc;switch(_0x1afca6[_0x49161c(0xd7)]){case _0x49161c(0xed):return _0x49161c(0xee)+_0x1afca6['taskId']+_0x49161c(0xde);case _0x49161c(0xd3):return _0x49161c(0xee)+_0x1afca6[_0x49161c(0xcc)]+_0x49161c(0xd4);case _0x49161c(0xcf):return _0x49161c(0xee)+_0x1afca6[_0x49161c(0xcc)]+_0x49161c(0xe0);case _0x49161c(0xe3):return _0x1afca6['errorMessage']?_0x49161c(0xee)+_0x1afca6['taskId']+_0x49161c(0xda)+_0x1afca6[_0x49161c(0xdd)]:_0x49161c(0xee)+_0x1afca6[_0x49161c(0xcc)]+_0x49161c(0xe1);default:return _0x49161c(0xee)+_0x1afca6[_0x49161c(0xcc)]+_0x49161c(0xce)+_0x1afca6[_0x49161c(0xd7)]+'.';}}function quoteShellArg(_0x5c121a){const _0x513a26=a46_0x3ad6fc;return'\x27'+_0x5c121a[_0x513a26(0xe7)](/'/g,_0x513a26(0xe8))+'\x27';}
1
+ function a46_0x3af9(){const _0x4591f1=['PROCESSING','string','177392mqvWTC','\x20failed:\x20','SUCCESS','trim','80TeHJac','4GxUSVw','\x20returned\x20unknown\x20status\x20','apiError','has','\x20response\x20did\x20not\x20contain\x20a\x20status.','\x20--appcode\x20','taskId','Task\x20','3603546rLrmVo','PENDING','status','errorMessage','\x20--format\x20compress','2722467HjbmRX','1575144SXHtNR','273YyLCCr','FAILED','259347vsInvv','\x20completed\x20successfully.','Async\x20task\x20','4857110UynUgx','1568544TLFfQB'];a46_0x3af9=function(){return _0x4591f1;};return a46_0x3af9();}const a46_0x12f64a=a46_0x2a3d;(function(_0x380e3c,_0x5e9fd4){const _0xe1ac65=a46_0x2a3d,_0x175a9f=_0x380e3c();while(!![]){try{const _0x5bccec=-parseInt(_0xe1ac65(0x1b1))/0x1+parseInt(_0xe1ac65(0x1ae))/0x2+-parseInt(_0xe1ac65(0x1ad))/0x3+parseInt(_0xe1ac65(0x1bd))/0x4*(-parseInt(_0xe1ac65(0x1b4))/0x5)+-parseInt(_0xe1ac65(0x1b5))/0x6+parseInt(_0xe1ac65(0x1af))/0x7*(-parseInt(_0xe1ac65(0x1b8))/0x8)+parseInt(_0xe1ac65(0x1c5))/0x9*(parseInt(_0xe1ac65(0x1bc))/0xa);if(_0x5bccec===_0x5e9fd4)break;else _0x175a9f['push'](_0x175a9f['shift']());}catch(_0x37755a){_0x175a9f['push'](_0x175a9f['shift']());}}}(a46_0x3af9,0xb14f0));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a46_0x12f64a(0x1ba),a46_0x12f64a(0x1b0)]),NON_TERMINAL_STATUSES=new Set([a46_0x12f64a(0x1c6),a46_0x12f64a(0x1b6)]);function a46_0x2a3d(_0x27104f,_0x285b13){_0x27104f=_0x27104f-0x1ac;const _0x3af9d1=a46_0x3af9();let _0x2a3db7=_0x3af9d1[_0x27104f];return _0x2a3db7;}export function normalizeAsyncTask(_0x5ab494){const _0x1bbf22=a46_0x12f64a,_0x133372=typeof _0x5ab494?.[_0x1bbf22(0x1c3)]===_0x1bbf22(0x1b7)?_0x5ab494[_0x1bbf22(0x1c3)]['trim']():'';if(!_0x133372)throw CliErrors[_0x1bbf22(0x1bf)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x370698=typeof _0x5ab494[_0x1bbf22(0x1c7)]===_0x1bbf22(0x1b7)?_0x5ab494[_0x1bbf22(0x1c7)][_0x1bbf22(0x1bb)]()['toUpperCase']():'';if(!_0x370698)throw CliErrors[_0x1bbf22(0x1bf)](_0x1bbf22(0x1b3)+_0x133372+_0x1bbf22(0x1c1));return{'taskId':_0x133372,'status':_0x370698,'errorMessage':typeof _0x5ab494[_0x1bbf22(0x1c8)]===_0x1bbf22(0x1b7)&&_0x5ab494['errorMessage'][_0x1bbf22(0x1bb)]()?_0x5ab494[_0x1bbf22(0x1c8)][_0x1bbf22(0x1bb)]():null,'isTerminal':TERMINAL_STATUSES[_0x1bbf22(0x1c0)](_0x370698),'knownStatus':TERMINAL_STATUSES['has'](_0x370698)||NON_TERMINAL_STATUSES[_0x1bbf22(0x1c0)](_0x370698)};}export function buildAsyncTaskStatusCommand(_0x43a58d,_0x1c7524){const _0x4ebab3=a46_0x12f64a;return CLI_BIN_NAME+'\x20task\x20status\x20--task-id\x20'+quoteShellArg(_0x43a58d)+_0x4ebab3(0x1c2)+quoteShellArg(_0x1c7524)+_0x4ebab3(0x1ac);}export function asyncTaskMessage(_0x5b086d){const _0x308a13=a46_0x12f64a;switch(_0x5b086d[_0x308a13(0x1c7)]){case _0x308a13(0x1c6):return _0x308a13(0x1c4)+_0x5b086d['taskId']+'\x20is\x20pending.';case'PROCESSING':return _0x308a13(0x1c4)+_0x5b086d[_0x308a13(0x1c3)]+'\x20is\x20processing.';case'SUCCESS':return _0x308a13(0x1c4)+_0x5b086d[_0x308a13(0x1c3)]+_0x308a13(0x1b2);case'FAILED':return _0x5b086d[_0x308a13(0x1c8)]?_0x308a13(0x1c4)+_0x5b086d['taskId']+_0x308a13(0x1b9)+_0x5b086d[_0x308a13(0x1c8)]:_0x308a13(0x1c4)+_0x5b086d[_0x308a13(0x1c3)]+'\x20failed.';default:return _0x308a13(0x1c4)+_0x5b086d[_0x308a13(0x1c3)]+_0x308a13(0x1be)+_0x5b086d[_0x308a13(0x1c7)]+'.';}}function quoteShellArg(_0x4564ec){return'\x27'+_0x4564ec['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}
@@ -1 +1 @@
1
- function a47_0x326e(_0x332881,_0x57cfa5){_0x332881=_0x332881-0x19f;var _0x5e93bd=a47_0x5e93();var _0x326ee6=_0x5e93bd[_0x332881];return _0x326ee6;}function a47_0x5e93(){var _0x5f1522=['method','2393937QLjmTT','376152DFdLEF','url','2254090eyKTxF','4ekhzSo','1932504jCyXhG','1799816rJdAUC','810WRWkkR','description','4708qiVkIY','1280hPiRcY','7IYbxHy','472vphQyo'];a47_0x5e93=function(){return _0x5f1522;};return a47_0x5e93();}(function(_0x57a408,_0xf29bc5){var _0x475c4f=a47_0x326e,_0x5cc100=_0x57a408();while(!![]){try{var _0xc886b8=parseInt(_0x475c4f(0x1a4))/0x1*(parseInt(_0x475c4f(0x1a2))/0x2)+-parseInt(_0x475c4f(0x1a7))/0x3*(parseInt(_0x475c4f(0x1aa))/0x4)+parseInt(_0x475c4f(0x1a9))/0x5+-parseInt(_0x475c4f(0x1ab))/0x6+parseInt(_0x475c4f(0x1a3))/0x7*(parseInt(_0x475c4f(0x1ac))/0x8)+-parseInt(_0x475c4f(0x1a6))/0x9+-parseInt(_0x475c4f(0x19f))/0xa*(parseInt(_0x475c4f(0x1a1))/0xb);if(_0xc886b8===_0xf29bc5)break;else _0x5cc100['push'](_0x5cc100['shift']());}catch(_0x389adf){_0x5cc100['push'](_0x5cc100['shift']());}}}(a47_0x5e93,0x38172));export function asDryRunResult(_0x363f79,_0x250c30){var _0x5799b2=a47_0x326e;return Object['defineProperties'](_0x363f79,{'method':{'value':_0x250c30[_0x5799b2(0x1a5)],'enumerable':![]},'url':{'value':_0x250c30[_0x5799b2(0x1a8)],'enumerable':![]},..._0x250c30[_0x5799b2(0x1a0)]?{'description':{'value':_0x250c30[_0x5799b2(0x1a0)],'enumerable':![]}}:{}});}
1
+ (function(_0x4a21c5,_0x145b43){var _0x43b9bc=a47_0x57ad,_0x3517f3=_0x4a21c5();while(!![]){try{var _0x2d49e0=parseInt(_0x43b9bc(0x19c))/0x1+-parseInt(_0x43b9bc(0x1a2))/0x2*(parseInt(_0x43b9bc(0x19d))/0x3)+-parseInt(_0x43b9bc(0x1a0))/0x4+parseInt(_0x43b9bc(0x19e))/0x5+parseInt(_0x43b9bc(0x1a4))/0x6*(parseInt(_0x43b9bc(0x1a1))/0x7)+parseInt(_0x43b9bc(0x19f))/0x8+-parseInt(_0x43b9bc(0x1a6))/0x9;if(_0x2d49e0===_0x145b43)break;else _0x3517f3['push'](_0x3517f3['shift']());}catch(_0x5c3770){_0x3517f3['push'](_0x3517f3['shift']());}}}(a47_0x57b7,0x4b4ad));function a47_0x57ad(_0x872b8e,_0x7dcfb5){_0x872b8e=_0x872b8e-0x19c;var _0x57b7bc=a47_0x57b7();var _0x57ad5c=_0x57b7bc[_0x872b8e];return _0x57ad5c;}export function asDryRunResult(_0x37019a,_0x1465ee){var _0x123ea1=a47_0x57ad;return Object[_0x123ea1(0x1a3)](_0x37019a,{'method':{'value':_0x1465ee['method'],'enumerable':![]},'url':{'value':_0x1465ee['url'],'enumerable':![]},..._0x1465ee[_0x123ea1(0x1a5)]?{'description':{'value':_0x1465ee[_0x123ea1(0x1a5)],'enumerable':![]}}:{}});}function a47_0x57b7(){var _0x373d75=['243467hZVjkO','959374eNmqoW','defineProperties','72oQnSHL','description','4071321TkyZms','450273fcmRJK','3rTULSp','1045960YKSwQP','2854728rDUbVM','772900amiSHC'];a47_0x57b7=function(){return _0x373d75;};return a47_0x57b7();}