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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +1 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  359. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a44_0x25d61a=a44_0x5465;(function(_0x34c1de,_0x52b9e4){const _0x51ec08=a44_0x5465,_0x34e1df=_0x34c1de();while(!![]){try{const _0x4d1b6e=parseInt(_0x51ec08(0x228))/0x1*(-parseInt(_0x51ec08(0x248))/0x2)+-parseInt(_0x51ec08(0x20a))/0x3+-parseInt(_0x51ec08(0x204))/0x4*(-parseInt(_0x51ec08(0x1f0))/0x5)+parseInt(_0x51ec08(0x1e3))/0x6+parseInt(_0x51ec08(0x24c))/0x7+parseInt(_0x51ec08(0x216))/0x8*(-parseInt(_0x51ec08(0x1ec))/0x9)+parseInt(_0x51ec08(0x205))/0xa*(-parseInt(_0x51ec08(0x215))/0xb);if(_0x4d1b6e===_0x52b9e4)break;else _0x34e1df['push'](_0x34e1df['shift']());}catch(_0x10cf0e){_0x34e1df['push'](_0x34e1df['shift']());}}}(a44_0x5858,0x76860));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';function a44_0x5465(_0x55547a,_0x347fc1){_0x55547a=_0x55547a-0x1de;const _0x58586b=a44_0x5858();let _0x54655a=_0x58586b[_0x55547a];return _0x54655a;}import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a44_0x25d61a(0x226),'command':a44_0x25d61a(0x201),'description':a44_0x25d61a(0x1f2),'risk':a44_0x25d61a(0x1e2),'structuredErrors':!![],'flags':[{'name':a44_0x25d61a(0x235),'type':a44_0x25d61a(0x1ee),'description':'Push\x20only\x20this\x20script\x20type','enum':[a44_0x25d61a(0x1fa),a44_0x25d61a(0x249),a44_0x25d61a(0x1e1)]},{'name':'name','type':a44_0x25d61a(0x1ee),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a44_0x25d61a(0x234),'type':a44_0x25d61a(0x1f6),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x5a91b1){const _0x1854bf=a44_0x25d61a,_0x38d427=loadBffProjectConfig(_0x5a91b1[_0x1854bf(0x221)]),_0x436638=await readBffLockFile(_0x38d427[_0x1854bf(0x207)]),{appLock:_0x1c7810}=ensureLockScope(_0x436638??createEmptyBffLock(),_0x5a91b1['appCode'],_0x38d427[_0x1854bf(0x1e8)],'push'),_0x162997=await getTargetFunctions(_0x38d427,_0x5a91b1),_0x11d70f=_0x162997[_0x1854bf(0x24d)](_0x3b7066=>_0x3b7066[_0x1854bf(0x235)]===_0x1854bf(0x1e1))?await scanLocalBffFunctions(_0x38d427,_0x1854bf(0x1e1)):_0x162997,_0x355751=await buildHookMaps(_0x5a91b1['appCode'],_0x5a91b1['apiDir'],_0x11d70f,_0x1c7810,_0x5a91b1[_0x1854bf(0x200)]||_0x5a91b1[_0x1854bf(0x1ea)]?.[_0x1854bf(0x20c)]||_0x5a91b1['mergedCli']?.[_0x1854bf(0x217)]),_0x5e7c1b=_0x5a91b1[_0x1854bf(0x1ed)]('force'),_0x29f7bf=[];for(const _0x1f3c5b of _0x162997){const _0x37064b=await computeFileHash(_0x1f3c5b['filePath']),_0x4248c8=_0x1c7810['functions'][_0x1f3c5b[_0x1854bf(0x21c)]],_0x41419e=!!_0x4248c8&&_0x4248c8[_0x1854bf(0x206)]===_0x37064b,_0x441d1c=_0x355751[_0x1854bf(0x230)][_0x1854bf(0x20f)](_0x1f3c5b[_0x1854bf(0x21c)]),_0x3b3f18=!!_0x4248c8?.[_0x1854bf(0x1ff)]&&_0x4248c8[_0x1854bf(0x21f)]==null&&(_0x5e7c1b||!_0x41419e),_0x2ff632=_0x3b3f18?missingRemoteVersionConflict(_0x1f3c5b,_0x4248c8):undefined,_0xaa6059=_0x355751[_0x1854bf(0x209)][_0x1854bf(0x1e6)](_0x1f3c5b[_0x1854bf(0x21c)])?_0x1854bf(0x203):!_0x5e7c1b&&_0x41419e?_0x1854bf(0x225):_0x2ff632?'conflict':_0x1854bf(0x208);_0x29f7bf[_0x1854bf(0x201)]({'lockKey':_0x1f3c5b['lockKey'],'filePath':_0x1f3c5b['filePath'],'remoteId':_0x4248c8?.[_0x1854bf(0x1ff)]??null,'mode':_0x4248c8?.[_0x1854bf(0x1ff)]?_0x1854bf(0x247):_0x1854bf(0x241),'status':_0xaa6059,..._0x355751[_0x1854bf(0x209)][_0x1854bf(0x1e6)](_0x1f3c5b[_0x1854bf(0x21c)])?{'error':_0x355751[_0x1854bf(0x209)][_0x1854bf(0x20f)](_0x1f3c5b[_0x1854bf(0x21c)])}:{},..._0x2ff632?{'conflict':_0x2ff632}:{},..._0x355751[_0x1854bf(0x23a)][_0x1854bf(0x1e6)](_0x1f3c5b['lockKey'])?{'datasetCode':_0x4248c8?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x1f3c5b[_0x1854bf(0x21c)])]}:{},..._0x441d1c?{'alias':_0x441d1c['alias']??null,'datasetCode':_0x441d1c[_0x1854bf(0x24b)],'operationType':_0x1f3c5b[_0x1854bf(0x242)],'functionNode':_0x1f3c5b['functionNode'],'warnings':_0x441d1c[_0x1854bf(0x214)]}:{}});}return{'method':'POST','url':_0x1854bf(0x238),'body':{'appCode':_0x5a91b1['appCode'],'force':_0x5e7c1b,'files':_0x29f7bf,'cacheClearAtRuntime':_0x29f7bf['some'](_0x3d5f83=>_0x3d5f83[_0x1854bf(0x227)]===_0x1854bf(0x208)),'cacheClearAtRuntimeTimes':_0x29f7bf[_0x1854bf(0x24d)](_0x2fff1a=>_0x2fff1a[_0x1854bf(0x227)]===_0x1854bf(0x208))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x1854bf(0x22a)+_0x29f7bf[_0x1854bf(0x24e)]+_0x1854bf(0x1e4)};},async 'execute'(_0x3e42a9){const _0x31c120=a44_0x25d61a,_0x1dbfa9=loadBffProjectConfig(_0x3e42a9[_0x31c120(0x221)]),_0x844f1b=await readBffLockFile(_0x1dbfa9[_0x31c120(0x207)]),{lockData:_0x1cf820,appLock:_0x290281}=ensureLockScope(_0x844f1b??createEmptyBffLock(),_0x3e42a9['appCode'],_0x1dbfa9[_0x31c120(0x1e8)],_0x31c120(0x201)),_0x356c54=await getTargetFunctions(_0x1dbfa9,_0x3e42a9);if(_0x356c54[_0x31c120(0x24e)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':_0x31c120(0x222)};const _0x4e07f0=_0x3e42a9[_0x31c120(0x1ed)](_0x31c120(0x234)),_0x5a12c6=JSON[_0x31c120(0x1f1)](JSON[_0x31c120(0x21e)](_0x1cf820)),_0x4cdf10=_0x5a12c6[_0x31c120(0x1fc)][_0x3e42a9[_0x31c120(0x221)]];if(!_0x4cdf10)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x3e42a9['appCode']+_0x31c120(0x23e));const _0x7b253b=_0x356c54[_0x31c120(0x24d)](_0x297c94=>_0x297c94[_0x31c120(0x235)]===_0x31c120(0x1e1))?await scanLocalBffFunctions(_0x1dbfa9,_0x31c120(0x1e1)):_0x356c54,_0x20fe3d=await buildHookMaps(_0x3e42a9[_0x31c120(0x221)],_0x3e42a9[_0x31c120(0x231)],_0x7b253b,_0x4cdf10,_0x3e42a9[_0x31c120(0x200)]||_0x3e42a9[_0x31c120(0x1ea)]?.[_0x31c120(0x20c)]||_0x3e42a9[_0x31c120(0x1ea)]?.[_0x31c120(0x217)]),_0x17bac9=[],_0x51f48e=[],_0x2433f4=[],_0x49e40c=[];for(const _0x2d66a1 of _0x356c54){const _0x438f4a=_0x20fe3d[_0x31c120(0x209)][_0x31c120(0x20f)](_0x2d66a1[_0x31c120(0x21c)]);if(_0x438f4a){_0x49e40c[_0x31c120(0x201)]({'lockKey':_0x2d66a1[_0x31c120(0x21c)],'error':_0x438f4a});continue;}const _0x14c9ce=await computeFileHash(_0x2d66a1[_0x31c120(0x1f3)]),_0x1525a3=_0x4cdf10[_0x31c120(0x233)][_0x2d66a1[_0x31c120(0x21c)]];if(!_0x4e07f0&&_0x1525a3&&_0x1525a3['hash']===_0x14c9ce){_0x51f48e['push']({'lockKey':_0x2d66a1[_0x31c120(0x21c)],'reason':_0x31c120(0x225)});continue;}if(_0x1525a3?.[_0x31c120(0x1ff)]&&_0x1525a3[_0x31c120(0x21f)]==null){_0x2433f4[_0x31c120(0x201)](missingRemoteVersionConflict(_0x2d66a1,_0x1525a3));continue;}try{await uploadSingleFunction(_0x3e42a9[_0x31c120(0x221)],_0x2d66a1,_0x4cdf10,_0x20fe3d);const _0x4f2f55=_0x4cdf10[_0x31c120(0x233)][_0x2d66a1[_0x31c120(0x21c)]];_0x17bac9[_0x31c120(0x201)]({'lockKey':_0x2d66a1['lockKey'],'remoteId':_0x4f2f55?.[_0x31c120(0x1ff)]??0x0});}catch(_0x41e7b9){const _0xdeccd=remoteVersionChangedConflict(_0x2d66a1,_0x1525a3,_0x41e7b9);if(_0xdeccd){_0x2433f4[_0x31c120(0x201)](_0xdeccd);continue;}_0x49e40c[_0x31c120(0x201)]({'lockKey':_0x2d66a1[_0x31c120(0x21c)],'error':_0x41e7b9 instanceof Error?_0x41e7b9[_0x31c120(0x21a)]:String(_0x41e7b9)});}}_0x4cdf10[_0x31c120(0x23b)]=new Date()[_0x31c120(0x22c)](),await writeBffLockFile(_0x1dbfa9['lockFilePath'],_0x5a12c6),await waitForUploadedLockEntries(_0x1dbfa9[_0x31c120(0x207)],_0x3e42a9[_0x31c120(0x221)],_0x17bac9[_0x31c120(0x245)](_0x4ea7b0=>_0x4ea7b0[_0x31c120(0x21c)]));let _0x4e6d32={'attempted':![],'cleared':![]};if(_0x17bac9['length']>0x0)try{let _0x5d423e='';for(let _0x497573=0x0;_0x497573<CACHE_CLEAR_ATTEMPTS;_0x497573+=0x1){_0x5d423e=await clearBffScriptCache(),_0x497573<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4e6d32={'attempted':!![],'cleared':!![],'message':_0x5d423e||_0x31c120(0x1e7)};}catch(_0x5e1e84){_0x4e6d32={'attempted':!![],'cleared':![],'error':_0x5e1e84 instanceof Error?_0x5e1e84[_0x31c120(0x21a)]:String(_0x5e1e84)};}const _0x5e87c5=_0x49e40c['length']===0x0&&(_0x4e6d32['attempted']?_0x4e6d32[_0x31c120(0x219)]:!![]),_0x3d9a15=_0x5e87c5,_0x28893b=_0x4e6d32[_0x31c120(0x1de)]?_0x4e6d32[_0x31c120(0x219)]?_0x31c120(0x24a):'runtime\x20cache\x20clear\x20failed':'runtime\x20cache\x20not\x20needed';return{'ok':_0x3d9a15,'data':{'uploaded':_0x17bac9,'skipped':_0x51f48e,'conflicts':_0x2433f4,'failed':_0x49e40c,'cacheClear':_0x4e6d32,'warnings':[...[..._0x20fe3d['resolutions'][_0x31c120(0x1fd)]()][_0x31c120(0x1fb)](_0x5a4c58=>_0x5a4c58[_0x31c120(0x214)]),...[..._0x20fe3d[_0x31c120(0x23a)]]['map'](existingHookWarning)]},'message':formatPushMessage(_0x17bac9['length'],_0x51f48e[_0x31c120(0x24e)],_0x2433f4['length'],_0x49e40c[_0x31c120(0x24e)],_0x28893b)};}};function missingRemoteVersionConflict(_0x15cfc5,_0x4191e1){const _0x3cfc12=a44_0x25d61a;return remoteVersionConflict(_0x15cfc5,_0x4191e1,_0x3cfc12(0x1fe),_0x3cfc12(0x224));}function remoteVersionChangedConflict(_0x1f8e0c,_0x241513,_0x27467a){const _0x4da84e=a44_0x25d61a;if(!_0x241513?.[_0x4da84e(0x1ff)]||_0x241513[_0x4da84e(0x21f)]==null||!isRemoteVersionConflict(_0x27467a))return undefined;return remoteVersionConflict(_0x1f8e0c,_0x241513,_0x4da84e(0x218),_0x4da84e(0x212));}function remoteVersionConflict(_0x23e7ae,_0x460ae4,_0x191302,_0x2d2197){const _0x48692e=a44_0x25d61a;return{'code':_0x191302,'lockKey':_0x23e7ae[_0x48692e(0x21c)],'filePath':_0x23e7ae[_0x48692e(0x1f3)],'remoteId':_0x460ae4[_0x48692e(0x1ff)],..._0x460ae4[_0x48692e(0x21f)]!=null?{'expectedVersion':_0x460ae4[_0x48692e(0x21f)]}:{},'message':_0x2d2197,'nextAction':{'action':_0x48692e(0x1e5),'command':CLI_BIN_NAME+_0x48692e(0x23f)+_0x460ae4['remoteId']+_0x48692e(0x239),'requiresReview':!![],'message':'Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.'}};}function isRemoteVersionConflict(_0x316c1e){const _0x1fd387=a44_0x25d61a,_0x4dadc7=_0x316c1e instanceof Error?_0x316c1e['message']:String(_0x316c1e),_0x111578=getPlatformErrorCode(_0x316c1e)??'';return[_0x4dadc7,_0x111578][_0x1fd387(0x24d)](_0x207a18=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i['test'](_0x207a18));}function formatPushMessage(_0x1b74d9,_0x2ed6f4,_0x415e76,_0x14a044,_0x4cee23){const _0xd1d928=a44_0x25d61a,_0x53333f=[_0xd1d928(0x1e9)+_0x1b74d9+_0xd1d928(0x232),_0x2ed6f4+_0xd1d928(0x20b)];_0x415e76>0x0&&_0x53333f[_0xd1d928(0x201)](_0x415e76+_0xd1d928(0x23d)+(_0x415e76===0x1?'':'s')+'\x20'+(_0x415e76===0x1?_0xd1d928(0x22e):_0xd1d928(0x220))+_0xd1d928(0x20d));if(_0x14a044>0x0)_0x53333f[_0xd1d928(0x201)](_0x14a044+'\x20failed');return _0x53333f[_0xd1d928(0x201)](_0x4cee23),_0x53333f[_0xd1d928(0x202)](',\x20');}async function getTargetFunctions(_0x56b4ef,_0x9a6e31){const _0x45b4f5=a44_0x25d61a,_0x27e1be=_0x9a6e31[_0x45b4f5(0x22b)](_0x45b4f5(0x235)),_0x3a68dc=_0x9a6e31['str'](_0x45b4f5(0x246)),_0x530d67=normalizeBffType(_0x27e1be)??undefined;if(_0x3a68dc&&!_0x530d67)throw CliErrors[_0x45b4f5(0x23c)](_0x45b4f5(0x1df));const _0x55d27e=await scanLocalBffFunctions(_0x56b4ef,_0x530d67);if(_0x3a68dc){const _0x4fb350=_0x55d27e[_0x45b4f5(0x1f4)](_0x536741=>_0x536741[_0x45b4f5(0x246)]===_0x3a68dc);if(_0x4fb350[_0x45b4f5(0x24e)]===0x0)throw CliErrors[_0x45b4f5(0x23c)](_0x45b4f5(0x22f)+_0x530d67+'/'+_0x3a68dc);return _0x4fb350;}return _0x55d27e;}function existingHookWarning(_0x58c51a){const _0x6522b3=a44_0x25d61a;return{'code':_0x6522b3(0x237),'lockKey':_0x58c51a,'message':'Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.'};}async function buildHookMaps(_0x3b6a12,_0x419361,_0x438576,_0x4bb41c,_0xa5d0f9){const _0x1071ea=a44_0x25d61a,_0xdd64f5=_0x438576[_0x1071ea(0x24d)](_0x277485=>_0x277485[_0x1071ea(0x235)]===_0x1071ea(0x1e1));if(!_0xdd64f5)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x3d7700=resolveApiModelSource(_0x419361,_0x3b6a12,_0xa5d0f9),_0xd5eb35=loadAliasMap(_0x419361,undefined,_0x3d7700[_0x1071ea(0x1f3)],_0x3d7700[_0x1071ea(0x236)]);assertUnambiguousHookAliases(_0xd5eb35);const _0x34fdbd=[..._0xd5eb35[_0x1071ea(0x245)](_0x21cc59=>[_0x21cc59[_0x1071ea(0x1f8)],_0x21cc59['datasetCode']]),...trackedHookDirectoryMappings(_0x4bb41c)[_0x1071ea(0x245)](_0x15b661=>[_0x15b661[_0x1071ea(0x1f8)],_0x15b661[_0x1071ea(0x24b)]])],_0x2ed8aa=await listDatasets(_0x3b6a12);assertUnambiguousHookDirectoryMappings(_0x34fdbd[_0x1071ea(0x245)](([_0x36536c,_0x1e69ba])=>({'alias':_0x36536c,'datasetCode':_0x1e69ba})));const _0x36eb87=buildHookDirectoryIndexes(_0x2ed8aa,_0x34fdbd),_0x5e4950=new Map(),_0x1dbbc8=preflightPushHookDirectories(_0x438576,_0x4bb41c,_0x36eb87,_0x5e4950),_0x51a39e=new Set(),_0x428510=_0x438576['filter'](_0x6d4699=>_0x5e4950[_0x1071ea(0x20f)](_0x6d4699[_0x1071ea(0x21c)])?.[_0x1071ea(0x22d)](_0x1071ea(0x210))&&_0x4bb41c[_0x1071ea(0x233)][_0x6d4699[_0x1071ea(0x21c)]]?.['remoteId']&&_0x4bb41c[_0x1071ea(0x233)][_0x6d4699[_0x1071ea(0x21c)]]?.[_0x1071ea(0x24b)]);if(_0x428510[_0x1071ea(0x24e)]>0x0){let _0x4d7458;try{_0x4d7458=await getBffScriptStatistics(_0x3b6a12);}catch(_0x29a7d9){for(const _0x464a8b of _0x428510)_0x5e4950[_0x1071ea(0x20e)](_0x464a8b[_0x1071ea(0x21c)],_0x1071ea(0x1ef)+(_0x29a7d9 instanceof Error?_0x29a7d9[_0x1071ea(0x21a)]:String(_0x29a7d9)));return{'resolutions':_0x1dbbc8,'failures':_0x5e4950,'existingHooks':_0x51a39e};}for(const _0x19d525 of _0x428510){const _0x42feb7=_0x4bb41c['functions'][_0x19d525[_0x1071ea(0x21c)]];try{const _0x179b90=new Set(_0x438576[_0x1071ea(0x1f4)](_0x515dc0=>_0x515dc0[_0x1071ea(0x235)]===_0x1071ea(0x1e1)&&_0x4bb41c[_0x1071ea(0x233)][_0x515dc0[_0x1071ea(0x21c)]]?.[_0x1071ea(0x24b)]===_0x42feb7[_0x1071ea(0x24b)])[_0x1071ea(0x245)](_0x4c534a=>_0x4c534a[_0x1071ea(0x1f8)]));if(_0x179b90[_0x1071ea(0x1f5)]>0x1)throw CliErrors[_0x1071ea(0x23c)](_0x1071ea(0x24f));const _0x25120f=_0x4d7458[_0x1071ea(0x1fb)](_0xfe421b=>[{'datasetCode':_0xfe421b[_0x1071ea(0x24b)],'operationType':snakeToCamel(_0xfe421b[_0x1071ea(0x242)]),'functionNode':_0x1071ea(0x211),'id':_0xfe421b[_0x1071ea(0x223)]},{'datasetCode':_0xfe421b[_0x1071ea(0x24b)],'operationType':snakeToCamel(_0xfe421b[_0x1071ea(0x242)]),'functionNode':'after','id':_0xfe421b['afterScriptId']}])[_0x1071ea(0x1f4)](_0x30f7c5=>_0x30f7c5['id']===_0x42feb7[_0x1071ea(0x1ff)]),_0x8d2483=await getBffScriptInfo(_0x42feb7[_0x1071ea(0x1ff)]);if(_0x8d2483['id']!==_0x42feb7['remoteId']||_0x8d2483['appCode']!==_0x3b6a12||_0x8d2483[_0x1071ea(0x243)]!==_0x1071ea(0x1e1)||_0x8d2483[_0x1071ea(0x229)]!==_0x19d525[_0x1071ea(0x246)]||_0x42feb7[_0x1071ea(0x21f)]==null||_0x8d2483[_0x1071ea(0x21f)]!==_0x42feb7['version']||_0x25120f['length']!==0x1||_0x25120f[0x0]['datasetCode']!==_0x42feb7[_0x1071ea(0x24b)]||_0x25120f[0x0][_0x1071ea(0x242)]!==_0x19d525[_0x1071ea(0x242)]||_0x25120f[0x0]['functionNode']!==_0x19d525[_0x1071ea(0x21d)]||_0x42feb7[_0x1071ea(0x242)]!==_0x19d525['operationType']||_0x42feb7[_0x1071ea(0x21d)]!==_0x19d525['functionNode'])throw CliErrors[_0x1071ea(0x23c)](_0x1071ea(0x244));_0x51a39e[_0x1071ea(0x213)](_0x19d525[_0x1071ea(0x21c)]),_0x5e4950[_0x1071ea(0x1eb)](_0x19d525['lockKey']);}catch(_0xac8995){_0x5e4950[_0x1071ea(0x20e)](_0x19d525['lockKey'],_0xac8995 instanceof Error?_0xac8995[_0x1071ea(0x21a)]:String(_0xac8995));}}}return{'resolutions':_0x1dbbc8,'failures':_0x5e4950,'existingHooks':_0x51a39e};}async function uploadSingleFunction(_0x2940cd,_0x431b7e,_0x2ab26a,_0x2800bb){const _0x22aa93=a44_0x25d61a,_0x1b5dda=await readFile(_0x431b7e[_0x22aa93(0x1f3)],'utf8'),_0x300233=await computeFileHash(_0x431b7e[_0x22aa93(0x1f3)]),_0x383846=_0x2ab26a[_0x22aa93(0x233)][_0x431b7e['lockKey']];if(_0x383846?.['remoteId']&&_0x383846[_0x22aa93(0x21f)]==null)throw CliErrors[_0x22aa93(0x23c)](_0x431b7e['lockKey']+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x5195ef=extractScriptDescription(_0x1b5dda);if(!_0x5195ef&&_0x383846?.[_0x22aa93(0x1ff)]){const _0x209ebc=await getBffScriptInfo(_0x383846[_0x22aa93(0x1ff)]);_0x5195ef=_0x209ebc[_0x22aa93(0x21b)]||undefined;}const _0x148ccf={'appCode':_0x2940cd,'functionName':_0x431b7e[_0x22aa93(0x246)],'scriptType':_0x431b7e['type'],'scriptContent':_0x1b5dda};if(_0x383846?.['remoteId'])_0x148ccf['id']=_0x383846[_0x22aa93(0x1ff)];if(_0x383846?.[_0x22aa93(0x21f)]!=null)_0x148ccf[_0x22aa93(0x21f)]=_0x383846[_0x22aa93(0x21f)];if(_0x5195ef)_0x148ccf[_0x22aa93(0x21b)]=_0x5195ef;if(_0x431b7e['type']===_0x22aa93(0x1e1)){const _0x51b7b1=_0x2800bb[_0x22aa93(0x230)]['get'](_0x431b7e['lockKey']);if(!_0x51b7b1&&!_0x2800bb['existingHooks'][_0x22aa93(0x1e6)](_0x431b7e['lockKey'])||!_0x431b7e[_0x22aa93(0x242)]||!_0x431b7e[_0x22aa93(0x21d)])throw CliErrors[_0x22aa93(0x23c)](_0x22aa93(0x1f9)+_0x431b7e[_0x22aa93(0x21c)]);_0x51b7b1&&(_0x148ccf[_0x22aa93(0x240)]=_0x51b7b1['dataset']['id'],_0x148ccf[_0x22aa93(0x242)]=_0x431b7e[_0x22aa93(0x242)]),_0x148ccf[_0x22aa93(0x21d)]=_0x431b7e[_0x22aa93(0x21d)];}const _0x118b8d=await saveBffScript(_0x148ccf),_0x511fb8=_0x118b8d['id'],_0x4643f4=_0x118b8d[_0x22aa93(0x1f7)]??await getBffScriptInfo(_0x511fb8),_0x330508={'hash':_0x300233,'remoteId':_0x511fb8,'version':_0x4643f4['version']};if(_0x431b7e[_0x22aa93(0x235)]===_0x22aa93(0x1e1)){const _0x39e1a7=_0x2800bb['resolutions'][_0x22aa93(0x20f)](_0x431b7e[_0x22aa93(0x21c)]);if(!_0x39e1a7){_0x2ab26a[_0x22aa93(0x233)][_0x431b7e['lockKey']]={..._0x383846,..._0x330508};return;}_0x330508[_0x22aa93(0x1f8)]=_0x39e1a7[_0x22aa93(0x1f8)]??_0x383846?.[_0x22aa93(0x1f8)],_0x330508['datasetCode']=_0x39e1a7['datasetCode'],_0x330508[_0x22aa93(0x242)]=_0x431b7e['operationType'],_0x330508[_0x22aa93(0x21d)]=_0x431b7e[_0x22aa93(0x21d)];}_0x2ab26a[_0x22aa93(0x233)][_0x431b7e[_0x22aa93(0x21c)]]=_0x330508;}function a44_0x5858(){const _0x1c88a5=['--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','every','HOOK','write','1376526ByXrtH','\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','review_remote_and_merge','has','Runtime\x20script\x20cache\x20cleared.','scriptsRoot','Push\x20complete:\x20','mergedCli','delete','1114983orHACe','bool','string','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','75015ZhXKlz','parse','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','filePath','filter','size','boolean','script','alias','Incomplete\x20HOOK\x20path:\x20','COMMON','flatMap','apps','values','BFF_REMOTE_VERSION_MISSING','remoteId','selectedAppName','push','join','failed','224aimvqF','1511910Ckzvnn','hash','lockFilePath','would_push','failures','763536KNvTBg','\x20skipped','currentApp','\x20resolution','set','get','HOOK_DATASET_NOT_FOUND:','before','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','add','warnings','33arypXl','8hfGosU','defaultApp','BFF_REMOTE_VERSION_CHANGED','cleared','message','description','lockKey','functionNode','stringify','version','require','appCode','No\x20local\x20Backend\x20Function\x20scripts\x20found.','beforeScriptId','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','unchanged','bff','status','333517BRBWuy','functionName','Would\x20inspect\x20','str','toISOString','startsWith','requires','Local\x20function\x20not\x20found:\x20','resolutions','apiDir','\x20uploaded','functions','force','type','profileName','EXISTING_HOOK_BINDING_PRESERVED','/api/management/library/scripts/save','\x20--format\x20compress','existingHooks','lastSync','validation','\x20conflict','\x22\x20not\x20found\x20after\x20ensureLockScope.','\x20bff\x20detail\x20--id\x20','datasetId','create','operationType','scriptType','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','map','name','update','2dOLWKV','ENDPOINT','runtime\x20cache\x20cleared','datasetCode','4069604ApyxVC','some','length','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','attempted'];a44_0x5858=function(){return _0x1c88a5;};return a44_0x5858();}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x790598,_0x3ad7b5,_0x4d0c77){const _0xc42198=a44_0x25d61a;if(_0x4d0c77[_0xc42198(0x24e)]===0x0)return;for(let _0x5acb02=0x0;_0x5acb02<LOCK_SETTLE_RETRY_COUNT;_0x5acb02+=0x1){const _0x5bdc7e=await readBffLockFile(_0x790598),_0x2608b1=_0x5bdc7e?.[_0xc42198(0x1fc)]?.[_0x3ad7b5]?.[_0xc42198(0x233)]??{},_0x5281d5=_0x4d0c77[_0xc42198(0x1e0)](_0x2bb42e=>!!_0x2608b1[_0x2bb42e]?.[_0xc42198(0x1ff)]);if(_0x5281d5)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error('Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20'+_0x4d0c77[_0xc42198(0x202)](',\x20')+'.');}
1
+ const a44_0x577b3d=a44_0x18c8;(function(_0x46c5ed,_0x38d7cc){const _0x5f0ea9=a44_0x18c8,_0x5bcc09=_0x46c5ed();while(!![]){try{const _0x24bea1=parseInt(_0x5f0ea9(0xc6))/0x1*(-parseInt(_0x5f0ea9(0xa0))/0x2)+parseInt(_0x5f0ea9(0xde))/0x3+-parseInt(_0x5f0ea9(0xe0))/0x4+-parseInt(_0x5f0ea9(0xb6))/0x5*(-parseInt(_0x5f0ea9(0xa1))/0x6)+-parseInt(_0x5f0ea9(0x90))/0x7+parseInt(_0x5f0ea9(0xe5))/0x8*(-parseInt(_0x5f0ea9(0x94))/0x9)+-parseInt(_0x5f0ea9(0xee))/0xa*(-parseInt(_0x5f0ea9(0xef))/0xb);if(_0x24bea1===_0x38d7cc)break;else _0x5bcc09['push'](_0x5bcc09['shift']());}catch(_0x573232){_0x5bcc09['push'](_0x5bcc09['shift']());}}}(a44_0x3762,0x43a7c));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,getBffScriptStatistics,getPlatformErrorCode,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{buildHookDirectoryIndexes,assertUnambiguousHookAliases,assertUnambiguousHookDirectoryMappings,preflightPushHookDirectories,trackedHookDirectoryMappings}from'../../core/bff/hook-directory.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription,snakeToCamel}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':'bff','command':a44_0x577b3d(0xce),'description':a44_0x577b3d(0xa2),'risk':a44_0x577b3d(0xf6),'structuredErrors':!![],'flags':[{'name':a44_0x577b3d(0xc0),'type':a44_0x577b3d(0xae),'description':a44_0x577b3d(0xa8),'enum':[a44_0x577b3d(0x93),'ENDPOINT',a44_0x577b3d(0x9b)]},{'name':a44_0x577b3d(0x92),'type':a44_0x577b3d(0xae),'description':a44_0x577b3d(0xab)},{'name':a44_0x577b3d(0xda),'type':a44_0x577b3d(0xb0),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x3ec32a){const _0x5ee715=a44_0x577b3d,_0x5da82d=loadBffProjectConfig(_0x3ec32a[_0x5ee715(0xbc)]),_0x390169=await readBffLockFile(_0x5da82d['lockFilePath']),{appLock:_0x38d399}=ensureLockScope(_0x390169??createEmptyBffLock(),_0x3ec32a[_0x5ee715(0xbc)],_0x5da82d[_0x5ee715(0x91)],_0x5ee715(0xce)),_0x4479c5=await getTargetFunctions(_0x5da82d,_0x3ec32a),_0x24f267=_0x4479c5[_0x5ee715(0xe4)](_0x16d57a=>_0x16d57a[_0x5ee715(0xc0)]===_0x5ee715(0x9b))?await scanLocalBffFunctions(_0x5da82d,_0x5ee715(0x9b)):_0x4479c5,_0x4e7656=await buildHookMaps(_0x3ec32a[_0x5ee715(0xbc)],_0x3ec32a[_0x5ee715(0xc5)],_0x24f267,_0x38d399,_0x3ec32a[_0x5ee715(0xbe)]||_0x3ec32a[_0x5ee715(0xe2)]?.[_0x5ee715(0x95)]||_0x3ec32a[_0x5ee715(0xe2)]?.[_0x5ee715(0xa9)]),_0x314f20=_0x3ec32a['bool'](_0x5ee715(0xda)),_0x2576fd=[];for(const _0x445501 of _0x4479c5){const _0x1a215f=await computeFileHash(_0x445501[_0x5ee715(0xc3)]),_0x4abca2=_0x38d399[_0x5ee715(0x8e)][_0x445501[_0x5ee715(0xa3)]],_0x1029da=!!_0x4abca2&&_0x4abca2['hash']===_0x1a215f,_0x2e8dde=_0x4e7656['resolutions']['get'](_0x445501[_0x5ee715(0xa3)]),_0x15c9bf=!!_0x4abca2?.[_0x5ee715(0xd0)]&&_0x4abca2[_0x5ee715(0xf0)]==null&&(_0x314f20||!_0x1029da),_0x3ef523=_0x15c9bf?missingRemoteVersionConflict(_0x445501,_0x4abca2):undefined,_0x180dc7=_0x4e7656['failures']['has'](_0x445501['lockKey'])?_0x5ee715(0xad):!_0x314f20&&_0x1029da?_0x5ee715(0xdd):_0x3ef523?_0x5ee715(0xc2):'would_push';_0x2576fd['push']({'lockKey':_0x445501[_0x5ee715(0xa3)],'filePath':_0x445501['filePath'],'remoteId':_0x4abca2?.[_0x5ee715(0xd0)]??null,'mode':_0x4abca2?.[_0x5ee715(0xd0)]?_0x5ee715(0xea):_0x5ee715(0xd9),'status':_0x180dc7,..._0x4e7656[_0x5ee715(0xd2)][_0x5ee715(0x9f)](_0x445501['lockKey'])?{'error':_0x4e7656[_0x5ee715(0xd2)][_0x5ee715(0x9e)](_0x445501[_0x5ee715(0xa3)])}:{},..._0x3ef523?{'conflict':_0x3ef523}:{},..._0x4e7656[_0x5ee715(0xc1)][_0x5ee715(0x9f)](_0x445501[_0x5ee715(0xa3)])?{'datasetCode':_0x4abca2?.['datasetCode'],'bindingPreserved':!![],'warnings':[existingHookWarning(_0x445501['lockKey'])]}:{},..._0x2e8dde?{'alias':_0x2e8dde[_0x5ee715(0xbf)]??null,'datasetCode':_0x2e8dde['datasetCode'],'operationType':_0x445501[_0x5ee715(0xcb)],'functionNode':_0x445501[_0x5ee715(0xaa)],'warnings':_0x2e8dde['warnings']}:{}});}return{'method':'POST','url':_0x5ee715(0xd6),'body':{'appCode':_0x3ec32a[_0x5ee715(0xbc)],'force':_0x314f20,'files':_0x2576fd,'cacheClearAtRuntime':_0x2576fd['some'](_0x2e063d=>_0x2e063d[_0x5ee715(0xb2)]===_0x5ee715(0xca)),'cacheClearAtRuntimeTimes':_0x2576fd[_0x5ee715(0xe4)](_0x579f78=>_0x579f78[_0x5ee715(0xb2)]===_0x5ee715(0xca))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x5ee715(0xe7)+_0x2576fd[_0x5ee715(0xed)]+'\x20local\x20Backend\x20Function\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x43a284){const _0x1620be=a44_0x577b3d,_0x1329c1=loadBffProjectConfig(_0x43a284['appCode']),_0x2c47fe=await readBffLockFile(_0x1329c1[_0x1620be(0xd3)]),{lockData:_0x126f20,appLock:_0x575024}=ensureLockScope(_0x2c47fe??createEmptyBffLock(),_0x43a284['appCode'],_0x1329c1[_0x1620be(0x91)],'push'),_0x535391=await getTargetFunctions(_0x1329c1,_0x43a284);if(_0x535391[_0x1620be(0xed)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'conflicts':[],'failed':[]},'message':'No\x20local\x20Backend\x20Function\x20scripts\x20found.'};const _0x6586f9=_0x43a284[_0x1620be(0xdb)](_0x1620be(0xda)),_0x259f10=JSON[_0x1620be(0x8c)](JSON['stringify'](_0x126f20)),_0x16d7e7=_0x259f10[_0x1620be(0x9c)][_0x43a284['appCode']];if(!_0x16d7e7)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x43a284[_0x1620be(0xbc)]+_0x1620be(0xdc));const _0x5150d8=_0x535391[_0x1620be(0xe4)](_0x17a2e3=>_0x17a2e3['type']===_0x1620be(0x9b))?await scanLocalBffFunctions(_0x1329c1,'HOOK'):_0x535391,_0x22f7d9=await buildHookMaps(_0x43a284['appCode'],_0x43a284[_0x1620be(0xc5)],_0x5150d8,_0x16d7e7,_0x43a284[_0x1620be(0xbe)]||_0x43a284[_0x1620be(0xe2)]?.[_0x1620be(0x95)]||_0x43a284[_0x1620be(0xe2)]?.[_0x1620be(0xa9)]),_0x232374=[],_0x24382c=[],_0x4e7519=[],_0x300a57=[];for(const _0x411573 of _0x535391){const _0x4a789e=_0x22f7d9['failures'][_0x1620be(0x9e)](_0x411573['lockKey']);if(_0x4a789e){_0x300a57[_0x1620be(0xce)]({'lockKey':_0x411573[_0x1620be(0xa3)],'error':_0x4a789e});continue;}const _0x250789=await computeFileHash(_0x411573[_0x1620be(0xc3)]),_0x216b01=_0x16d7e7['functions'][_0x411573[_0x1620be(0xa3)]];if(!_0x6586f9&&_0x216b01&&_0x216b01[_0x1620be(0xf3)]===_0x250789){_0x24382c['push']({'lockKey':_0x411573[_0x1620be(0xa3)],'reason':'unchanged'});continue;}if(_0x216b01?.[_0x1620be(0xd0)]&&_0x216b01['version']==null){_0x4e7519[_0x1620be(0xce)](missingRemoteVersionConflict(_0x411573,_0x216b01));continue;}try{await uploadSingleFunction(_0x43a284[_0x1620be(0xbc)],_0x411573,_0x16d7e7,_0x22f7d9);const _0x57f224=_0x16d7e7['functions'][_0x411573[_0x1620be(0xa3)]];_0x232374[_0x1620be(0xce)]({'lockKey':_0x411573[_0x1620be(0xa3)],'remoteId':_0x57f224?.['remoteId']??0x0});}catch(_0x1d43ef){const _0x226fe1=remoteVersionChangedConflict(_0x411573,_0x216b01,_0x1d43ef);if(_0x226fe1){_0x4e7519[_0x1620be(0xce)](_0x226fe1);continue;}_0x300a57[_0x1620be(0xce)]({'lockKey':_0x411573['lockKey'],'error':_0x1d43ef instanceof Error?_0x1d43ef[_0x1620be(0xf1)]:String(_0x1d43ef)});}}_0x16d7e7[_0x1620be(0xba)]=new Date()['toISOString'](),await writeBffLockFile(_0x1329c1[_0x1620be(0xd3)],_0x259f10),await waitForUploadedLockEntries(_0x1329c1[_0x1620be(0xd3)],_0x43a284[_0x1620be(0xbc)],_0x232374[_0x1620be(0xf5)](_0x4f3477=>_0x4f3477['lockKey']));let _0x186ae1={'attempted':![],'cleared':![]};if(_0x232374[_0x1620be(0xed)]>0x0)try{let _0x4a6339='';for(let _0x4e8bb7=0x0;_0x4e8bb7<CACHE_CLEAR_ATTEMPTS;_0x4e8bb7+=0x1){_0x4a6339=await clearBffScriptCache(),_0x4e8bb7<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x186ae1={'attempted':!![],'cleared':!![],'message':_0x4a6339||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x2ec88f){_0x186ae1={'attempted':!![],'cleared':![],'error':_0x2ec88f instanceof Error?_0x2ec88f['message']:String(_0x2ec88f)};}const _0x48e7b6=_0x300a57[_0x1620be(0xed)]===0x0&&(_0x186ae1[_0x1620be(0xec)]?_0x186ae1[_0x1620be(0xd7)]:!![]),_0x4e468d=_0x48e7b6,_0x338c7b=_0x186ae1[_0x1620be(0xec)]?_0x186ae1[_0x1620be(0xd7)]?_0x1620be(0xd4):_0x1620be(0xa6):'runtime\x20cache\x20not\x20needed';return{'ok':_0x4e468d,'data':{'uploaded':_0x232374,'skipped':_0x24382c,'conflicts':_0x4e7519,'failed':_0x300a57,'cacheClear':_0x186ae1,'warnings':[...[..._0x22f7d9['resolutions'][_0x1620be(0x8f)]()][_0x1620be(0xac)](_0x4f5a14=>_0x4f5a14[_0x1620be(0x96)]),...[..._0x22f7d9[_0x1620be(0xc1)]][_0x1620be(0xf5)](existingHookWarning)]},'message':formatPushMessage(_0x232374[_0x1620be(0xed)],_0x24382c['length'],_0x4e7519[_0x1620be(0xed)],_0x300a57[_0x1620be(0xed)],_0x338c7b)};}};function missingRemoteVersionConflict(_0x18777a,_0xa4db4b){const _0x5f4265=a44_0x577b3d;return remoteVersionConflict(_0x18777a,_0xa4db4b,'BFF_REMOTE_VERSION_MISSING',_0x5f4265(0xb8));}function a44_0x3762(){const _0x3c1712=['review_remote_and_merge','attempted','length','283580DecFcs','132ofmACT','version','message','scriptType','hash','utf8','map','write','afterScriptId','Remote\x20script\x20version\x20changed\x20since\x20the\x20last\x20pull.','after','join','parse','size','functions','values','1781906emfVYW','scriptsRoot','name','COMMON','562482mJdwVL','currentApp','warnings','\x20skipped','every','delete','datasetCode','HOOK','apps','\x20resolution','get','has','4SGaqtS','251382QJgOmb','Push\x20local\x20Backend\x20Function\x20scripts\x20to\x20remote','lockKey','resolutions','HOOK_DATASET_NOT_FOUND:','runtime\x20cache\x20clear\x20failed','description','Push\x20only\x20this\x20script\x20type','defaultApp','functionNode','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','flatMap','failed','string','Existing\x20HOOK\x20identity,\x20version\x20or\x20binding\x20does\x20not\x20match\x20the\x20local\x20lock.\x20Pull\x20and\x20review\x20before\x20pushing.','boolean','\x20bff\x20detail\x20--id\x20','status','Cannot\x20verify\x20existing\x20HOOK\x20binding:\x20','\x20failed',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','50ONCgzR','Local\x20function\x20not\x20found:\x20','The\x20local\x20sync\x20lock\x20has\x20no\x20remote\x20version\x20for\x20this\x20script.','BFF_REMOTE_VERSION_CHANGED','lastSync','validation','appCode','functionName','selectedAppName','alias','type','existingHooks','conflict','filePath','before','apiDir','17428mNDegr','set','Incomplete\x20HOOK\x20path:\x20','EXISTING_HOOK_BINDING_PRESERVED','would_push','operationType','profileName','Push\x20complete:\x20','push','str','remoteId','Review\x20the\x20current\x20remote\x20source,\x20merge\x20it\x20into\x20the\x20local\x20script,\x20then\x20retry\x20push.\x20Do\x20not\x20use\x20--force\x20unless\x20you\x20intentionally\x20discard\x20local\x20changes.','failures','lockFilePath','runtime\x20cache\x20cleared','dataset','/api/management/library/scripts/save','cleared','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','create','force','bool','\x22\x20not\x20found\x20after\x20ensureLockScope.','unchanged','338583LtApOM','filter','472412KsEXNE','startsWith','mergedCli','\x20--format\x20compress','some','24VfhjRQ','requires','Would\x20inspect\x20','Multiple\x20HOOK\x20directories\x20reference\x20the\x20same\x20missing\x20Dataset.\x20Resolve\x20duplicate\x20directories\x20before\x20pushing.','Dataset\x20metadata\x20is\x20unavailable;\x20the\x20existing\x20script\x20and\x20binding\x20were\x20verified.\x20Update\x20by\x20script\x20ID\x20without\x20rebinding.','update'];a44_0x3762=function(){return _0x3c1712;};return a44_0x3762();}function remoteVersionChangedConflict(_0x5c2739,_0x4f719f,_0xb2d384){const _0x35bb95=a44_0x577b3d;if(!_0x4f719f?.['remoteId']||_0x4f719f[_0x35bb95(0xf0)]==null||!isRemoteVersionConflict(_0xb2d384))return undefined;return remoteVersionConflict(_0x5c2739,_0x4f719f,_0x35bb95(0xb9),_0x35bb95(0xf8));}function remoteVersionConflict(_0x143af0,_0x519c4d,_0x4de2f7,_0x231362){const _0x5d4522=a44_0x577b3d;return{'code':_0x4de2f7,'lockKey':_0x143af0[_0x5d4522(0xa3)],'filePath':_0x143af0[_0x5d4522(0xc3)],'remoteId':_0x519c4d['remoteId'],..._0x519c4d[_0x5d4522(0xf0)]!=null?{'expectedVersion':_0x519c4d[_0x5d4522(0xf0)]}:{},'message':_0x231362,'nextAction':{'action':_0x5d4522(0xeb),'command':CLI_BIN_NAME+_0x5d4522(0xb1)+_0x519c4d['remoteId']+_0x5d4522(0xe3),'requiresReview':!![],'message':_0x5d4522(0xd1)}};}function isRemoteVersionConflict(_0x395bd8){const _0x549dac=a44_0x577b3d,_0x4fe495=_0x395bd8 instanceof Error?_0x395bd8['message']:String(_0x395bd8),_0xe546a9=getPlatformErrorCode(_0x395bd8)??'';return[_0x4fe495,_0xe546a9][_0x549dac(0xe4)](_0x138534=>/(?:version|optimistic)[\s_-]*(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)|(?:conflict|mismatch|changed|stale|out[\s_-]*of[\s_-]*date)[\s_-]*(?:version|optimistic)/i['test'](_0x138534));}function formatPushMessage(_0x46fa99,_0x137b53,_0x906dd3,_0x5b98f6,_0x2c22f9){const _0x20884c=a44_0x577b3d,_0x2a6a4a=[_0x20884c(0xcd)+_0x46fa99+'\x20uploaded',_0x137b53+_0x20884c(0x97)];_0x906dd3>0x0&&_0x2a6a4a[_0x20884c(0xce)](_0x906dd3+'\x20conflict'+(_0x906dd3===0x1?'':'s')+'\x20'+(_0x906dd3===0x1?_0x20884c(0xe6):'require')+_0x20884c(0x9d));if(_0x5b98f6>0x0)_0x2a6a4a[_0x20884c(0xce)](_0x5b98f6+_0x20884c(0xb4));return _0x2a6a4a[_0x20884c(0xce)](_0x2c22f9),_0x2a6a4a['join'](',\x20');}async function getTargetFunctions(_0x1c268f,_0x5b8762){const _0x58896b=a44_0x577b3d,_0x43f790=_0x5b8762[_0x58896b(0xcf)]('type'),_0x1438b7=_0x5b8762[_0x58896b(0xcf)](_0x58896b(0x92)),_0x3940f2=normalizeBffType(_0x43f790)??undefined;if(_0x1438b7&&!_0x3940f2)throw CliErrors['validation']('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x5581c7=await scanLocalBffFunctions(_0x1c268f,_0x3940f2);if(_0x1438b7){const _0xba561=_0x5581c7['filter'](_0x27644e=>_0x27644e[_0x58896b(0x92)]===_0x1438b7);if(_0xba561[_0x58896b(0xed)]===0x0)throw CliErrors[_0x58896b(0xbb)](_0x58896b(0xb7)+_0x3940f2+'/'+_0x1438b7);return _0xba561;}return _0x5581c7;}function existingHookWarning(_0x1a010f){const _0x1dfb4f=a44_0x577b3d;return{'code':_0x1dfb4f(0xc9),'lockKey':_0x1a010f,'message':_0x1dfb4f(0xe9)};}function a44_0x18c8(_0x1e1e53,_0x401244){_0x1e1e53=_0x1e1e53-0x8c;const _0x3762ff=a44_0x3762();let _0x18c8b1=_0x3762ff[_0x1e1e53];return _0x18c8b1;}async function buildHookMaps(_0x4dfb89,_0x46e184,_0x31f0ab,_0x471e48,_0x602c55){const _0x40a955=a44_0x577b3d,_0x28f491=_0x31f0ab[_0x40a955(0xe4)](_0x277ccd=>_0x277ccd[_0x40a955(0xc0)]===_0x40a955(0x9b));if(!_0x28f491)return{'resolutions':new Map(),'failures':new Map(),'existingHooks':new Set()};const _0x362327=resolveApiModelSource(_0x46e184,_0x4dfb89,_0x602c55),_0x58e972=loadAliasMap(_0x46e184,undefined,_0x362327[_0x40a955(0xc3)],_0x362327[_0x40a955(0xcc)]);assertUnambiguousHookAliases(_0x58e972);const _0x4acc19=[..._0x58e972[_0x40a955(0xf5)](_0x1151db=>[_0x1151db[_0x40a955(0xbf)],_0x1151db['datasetCode']]),...trackedHookDirectoryMappings(_0x471e48)['map'](_0x2ff531=>[_0x2ff531[_0x40a955(0xbf)],_0x2ff531[_0x40a955(0x9a)]])],_0x1adc70=await listDatasets(_0x4dfb89);assertUnambiguousHookDirectoryMappings(_0x4acc19['map'](([_0x50fede,_0x5cce03])=>({'alias':_0x50fede,'datasetCode':_0x5cce03})));const _0x4a2d7c=buildHookDirectoryIndexes(_0x1adc70,_0x4acc19),_0x176f07=new Map(),_0x47bec1=preflightPushHookDirectories(_0x31f0ab,_0x471e48,_0x4a2d7c,_0x176f07),_0xb2cb6b=new Set(),_0xe8c2a0=_0x31f0ab[_0x40a955(0xdf)](_0x3ae20d=>_0x176f07[_0x40a955(0x9e)](_0x3ae20d['lockKey'])?.[_0x40a955(0xe1)](_0x40a955(0xa5))&&_0x471e48[_0x40a955(0x8e)][_0x3ae20d[_0x40a955(0xa3)]]?.[_0x40a955(0xd0)]&&_0x471e48[_0x40a955(0x8e)][_0x3ae20d[_0x40a955(0xa3)]]?.[_0x40a955(0x9a)]);if(_0xe8c2a0['length']>0x0){let _0x2e3d86;try{_0x2e3d86=await getBffScriptStatistics(_0x4dfb89);}catch(_0x59f9df){for(const _0x12c648 of _0xe8c2a0)_0x176f07[_0x40a955(0xc7)](_0x12c648['lockKey'],_0x40a955(0xb3)+(_0x59f9df instanceof Error?_0x59f9df[_0x40a955(0xf1)]:String(_0x59f9df)));return{'resolutions':_0x47bec1,'failures':_0x176f07,'existingHooks':_0xb2cb6b};}for(const _0x42e0ce of _0xe8c2a0){const _0x3ca5b7=_0x471e48['functions'][_0x42e0ce['lockKey']];try{const _0x3207f0=new Set(_0x31f0ab[_0x40a955(0xdf)](_0x8c10a8=>_0x8c10a8[_0x40a955(0xc0)]===_0x40a955(0x9b)&&_0x471e48[_0x40a955(0x8e)][_0x8c10a8[_0x40a955(0xa3)]]?.[_0x40a955(0x9a)]===_0x3ca5b7['datasetCode'])[_0x40a955(0xf5)](_0x39e692=>_0x39e692['alias']));if(_0x3207f0[_0x40a955(0x8d)]>0x1)throw CliErrors[_0x40a955(0xbb)](_0x40a955(0xe8));const _0x5b5e7a=_0x2e3d86['flatMap'](_0x313d75=>[{'datasetCode':_0x313d75[_0x40a955(0x9a)],'operationType':snakeToCamel(_0x313d75[_0x40a955(0xcb)]),'functionNode':_0x40a955(0xc4),'id':_0x313d75['beforeScriptId']},{'datasetCode':_0x313d75['datasetCode'],'operationType':snakeToCamel(_0x313d75[_0x40a955(0xcb)]),'functionNode':_0x40a955(0xf9),'id':_0x313d75[_0x40a955(0xf7)]}])[_0x40a955(0xdf)](_0x469011=>_0x469011['id']===_0x3ca5b7[_0x40a955(0xd0)]),_0x50ef72=await getBffScriptInfo(_0x3ca5b7[_0x40a955(0xd0)]);if(_0x50ef72['id']!==_0x3ca5b7[_0x40a955(0xd0)]||_0x50ef72[_0x40a955(0xbc)]!==_0x4dfb89||_0x50ef72[_0x40a955(0xf2)]!==_0x40a955(0x9b)||_0x50ef72[_0x40a955(0xbd)]!==_0x42e0ce[_0x40a955(0x92)]||_0x3ca5b7[_0x40a955(0xf0)]==null||_0x50ef72['version']!==_0x3ca5b7[_0x40a955(0xf0)]||_0x5b5e7a[_0x40a955(0xed)]!==0x1||_0x5b5e7a[0x0][_0x40a955(0x9a)]!==_0x3ca5b7[_0x40a955(0x9a)]||_0x5b5e7a[0x0][_0x40a955(0xcb)]!==_0x42e0ce[_0x40a955(0xcb)]||_0x5b5e7a[0x0][_0x40a955(0xaa)]!==_0x42e0ce[_0x40a955(0xaa)]||_0x3ca5b7[_0x40a955(0xcb)]!==_0x42e0ce['operationType']||_0x3ca5b7['functionNode']!==_0x42e0ce[_0x40a955(0xaa)])throw CliErrors['validation'](_0x40a955(0xaf));_0xb2cb6b['add'](_0x42e0ce[_0x40a955(0xa3)]),_0x176f07[_0x40a955(0x99)](_0x42e0ce['lockKey']);}catch(_0x3699c3){_0x176f07[_0x40a955(0xc7)](_0x42e0ce[_0x40a955(0xa3)],_0x3699c3 instanceof Error?_0x3699c3[_0x40a955(0xf1)]:String(_0x3699c3));}}}return{'resolutions':_0x47bec1,'failures':_0x176f07,'existingHooks':_0xb2cb6b};}async function uploadSingleFunction(_0x1a9315,_0x28d9ee,_0x557246,_0x162215){const _0x9f1118=a44_0x577b3d,_0x286b0e=await readFile(_0x28d9ee['filePath'],_0x9f1118(0xf4)),_0x5c5796=await computeFileHash(_0x28d9ee['filePath']),_0x29244e=_0x557246['functions'][_0x28d9ee[_0x9f1118(0xa3)]];if(_0x29244e?.[_0x9f1118(0xd0)]&&_0x29244e[_0x9f1118(0xf0)]==null)throw CliErrors[_0x9f1118(0xbb)](_0x28d9ee[_0x9f1118(0xa3)]+_0x9f1118(0xb5));let _0x313e9e=extractScriptDescription(_0x286b0e);if(!_0x313e9e&&_0x29244e?.[_0x9f1118(0xd0)]){const _0x31fd8f=await getBffScriptInfo(_0x29244e[_0x9f1118(0xd0)]);_0x313e9e=_0x31fd8f[_0x9f1118(0xa7)]||undefined;}const _0x2e2b19={'appCode':_0x1a9315,'functionName':_0x28d9ee[_0x9f1118(0x92)],'scriptType':_0x28d9ee[_0x9f1118(0xc0)],'scriptContent':_0x286b0e};if(_0x29244e?.[_0x9f1118(0xd0)])_0x2e2b19['id']=_0x29244e[_0x9f1118(0xd0)];if(_0x29244e?.[_0x9f1118(0xf0)]!=null)_0x2e2b19[_0x9f1118(0xf0)]=_0x29244e[_0x9f1118(0xf0)];if(_0x313e9e)_0x2e2b19[_0x9f1118(0xa7)]=_0x313e9e;if(_0x28d9ee[_0x9f1118(0xc0)]==='HOOK'){const _0x5e8a78=_0x162215[_0x9f1118(0xa4)][_0x9f1118(0x9e)](_0x28d9ee[_0x9f1118(0xa3)]);if(!_0x5e8a78&&!_0x162215[_0x9f1118(0xc1)][_0x9f1118(0x9f)](_0x28d9ee[_0x9f1118(0xa3)])||!_0x28d9ee['operationType']||!_0x28d9ee[_0x9f1118(0xaa)])throw CliErrors[_0x9f1118(0xbb)](_0x9f1118(0xc8)+_0x28d9ee[_0x9f1118(0xa3)]);_0x5e8a78&&(_0x2e2b19['datasetId']=_0x5e8a78[_0x9f1118(0xd5)]['id'],_0x2e2b19[_0x9f1118(0xcb)]=_0x28d9ee[_0x9f1118(0xcb)]),_0x2e2b19[_0x9f1118(0xaa)]=_0x28d9ee[_0x9f1118(0xaa)];}const _0x217564=await saveBffScript(_0x2e2b19),_0x4bfff1=_0x217564['id'],_0x398bf5=_0x217564['script']??await getBffScriptInfo(_0x4bfff1),_0x5d13f3={'hash':_0x5c5796,'remoteId':_0x4bfff1,'version':_0x398bf5['version']};if(_0x28d9ee[_0x9f1118(0xc0)]===_0x9f1118(0x9b)){const _0x24f6b5=_0x162215[_0x9f1118(0xa4)]['get'](_0x28d9ee[_0x9f1118(0xa3)]);if(!_0x24f6b5){_0x557246['functions'][_0x28d9ee['lockKey']]={..._0x29244e,..._0x5d13f3};return;}_0x5d13f3[_0x9f1118(0xbf)]=_0x24f6b5[_0x9f1118(0xbf)]??_0x29244e?.[_0x9f1118(0xbf)],_0x5d13f3[_0x9f1118(0x9a)]=_0x24f6b5[_0x9f1118(0x9a)],_0x5d13f3['operationType']=_0x28d9ee['operationType'],_0x5d13f3[_0x9f1118(0xaa)]=_0x28d9ee[_0x9f1118(0xaa)];}_0x557246[_0x9f1118(0x8e)][_0x28d9ee[_0x9f1118(0xa3)]]=_0x5d13f3;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x4ad106,_0x325bc2,_0x5118e7){const _0x5f31b7=a44_0x577b3d;if(_0x5118e7['length']===0x0)return;for(let _0x2116ba=0x0;_0x2116ba<LOCK_SETTLE_RETRY_COUNT;_0x2116ba+=0x1){const _0xb82afa=await readBffLockFile(_0x4ad106),_0x52d01a=_0xb82afa?.[_0x5f31b7(0x9c)]?.[_0x325bc2]?.[_0x5f31b7(0x8e)]??{},_0xd71695=_0x5118e7[_0x5f31b7(0x98)](_0x4b857a=>!!_0x52d01a[_0x4b857a]?.[_0x5f31b7(0xd0)]);if(_0xd71695)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x5f31b7(0xd8)+_0x5118e7[_0x5f31b7(0xfa)](',\x20')+'.');}
@@ -1 +1 @@
1
- function a45_0x1398(){const _0x34033c=['8507464htdUxv','selectedAppName','datasetCode','lockFilePath','apiDir','585290kDHUvv','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','4652020RRxwHs','scriptsRoot','functions','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','921840NECEms','filePath','bool','lockKey','\x20modified,\x20','profileName','status','bff','all','remote','has','alias','length','672rIGBtk','map','hash','4jHjmuF','currentApp','151857WurMnw','\x20remote-only','read','boolean','20178lEVIvq','mergedCli','defaultApp','\x20added,\x20','push','342yUaGLI','appCode','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','144292fBNeAQ'];a45_0x1398=function(){return _0x34033c;};return a45_0x1398();}const a45_0xb5ed7f=a45_0x32c5;(function(_0x45b806,_0x5a6499){const _0x4d59a0=a45_0x32c5,_0x284483=_0x45b806();while(!![]){try{const _0x4a30ba=-parseInt(_0x4d59a0(0x17b))/0x1+-parseInt(_0x4d59a0(0x16f))/0x2+parseInt(_0x4d59a0(0x163))/0x3*(-parseInt(_0x4d59a0(0x161))/0x4)+parseInt(_0x4d59a0(0x177))/0x5+-parseInt(_0x4d59a0(0x167))/0x6*(parseInt(_0x4d59a0(0x15e))/0x7)+-parseInt(_0x4d59a0(0x170))/0x8+-parseInt(_0x4d59a0(0x16c))/0x9*(-parseInt(_0x4d59a0(0x175))/0xa);if(_0x4a30ba===_0x5a6499)break;else _0x284483['push'](_0x284483['shift']());}catch(_0x28c780){_0x284483['push'](_0x284483['shift']());}}}(a45_0x1398,0xb0aa4));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a45_0x32c5(_0x3d59e8,_0x141da2){_0x3d59e8=_0x3d59e8-0x157;const _0x13988c=a45_0x1398();let _0x32c57e=_0x13988c[_0x3d59e8];return _0x32c57e;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a45_0xb5ed7f(0x158),'command':'status','description':a45_0xb5ed7f(0x16e),'risk':a45_0xb5ed7f(0x165),'flags':[{'name':'remote','type':a45_0xb5ed7f(0x166),'description':a45_0xb5ed7f(0x176)}],async 'execute'(_0x4319e2){const _0x35476c=a45_0xb5ed7f,_0x13328b=loadBffProjectConfig(_0x4319e2[_0x35476c(0x16d)]),_0xfc899c=await readBffLockFile(_0x13328b[_0x35476c(0x173)]),{appLock:_0x167de5}=ensureLockScope(_0xfc899c??createEmptyBffLock(),_0x4319e2[_0x35476c(0x16d)],_0x13328b[_0x35476c(0x178)],_0x35476c(0x157)),_0x506a5a=await scanLocalBffFunctions(_0x13328b),_0x4a0514=[],_0x5805fe=[],_0x59fbf6=[];for(const _0x10c9ae of _0x506a5a){const _0x28eb52=await computeFileHash(_0x10c9ae[_0x35476c(0x17c)]),_0x52a4f6=_0x167de5['functions'][_0x10c9ae['lockKey']];if(!_0x52a4f6)_0x4a0514[_0x35476c(0x16b)](_0x10c9ae['lockKey']);else _0x52a4f6[_0x35476c(0x160)]!==_0x28eb52?_0x5805fe[_0x35476c(0x16b)](_0x10c9ae[_0x35476c(0x17e)]):_0x59fbf6[_0x35476c(0x16b)](_0x10c9ae[_0x35476c(0x17e)]);}const _0x26720d=[];if(_0x4319e2[_0x35476c(0x17d)](_0x35476c(0x15a))){const _0x5cf777=resolveApiModelSource(_0x4319e2['apiDir'],_0x4319e2[_0x35476c(0x16d)],_0x4319e2[_0x35476c(0x171)]||_0x4319e2[_0x35476c(0x168)]?.[_0x35476c(0x162)]||_0x4319e2['mergedCli']?.[_0x35476c(0x169)]),_0x2d6463=loadAliasMap(_0x4319e2[_0x35476c(0x174)],undefined,_0x5cf777[_0x35476c(0x17c)],_0x5cf777[_0x35476c(0x180)]),_0x376e63=new Map(_0x2d6463[_0x35476c(0x15f)](_0x1bb35d=>[_0x1bb35d[_0x35476c(0x172)],_0x1bb35d[_0x35476c(0x15c)]])),[_0x5de932,_0x8adb4c]=await Promise[_0x35476c(0x159)]([listBffScripts(_0x4319e2[_0x35476c(0x16d)]),getBffScriptStatistics(_0x4319e2[_0x35476c(0x16d)])]),_0x4ba7e8=createHookLocationMap(_0x8adb4c),_0x2c16d9=new Set(_0x506a5a['map'](_0x47c9ef=>_0x47c9ef['lockKey']));for(const _0x2fa2cb of _0x5de932){const _0xd649=resolveRemoteScriptTarget(_0x13328b,_0x2fa2cb,_0x4ba7e8,_0x167de5[_0x35476c(0x179)],_0x376e63);_0xd649&&!_0x2c16d9[_0x35476c(0x15b)](_0xd649[_0x35476c(0x17e)])&&_0x26720d[_0x35476c(0x16b)](_0xd649[_0x35476c(0x17e)]);}}const _0xaee2a4=_0x4a0514[_0x35476c(0x15d)]===0x0&&_0x5805fe[_0x35476c(0x15d)]===0x0&&_0x26720d[_0x35476c(0x15d)]===0x0;return{'ok':!![],'data':{'added':_0x4a0514,'modified':_0x5805fe,'unchanged':_0x59fbf6,'remoteOnly':_0x26720d},'message':_0xaee2a4?_0x35476c(0x17a):_0x4a0514[_0x35476c(0x15d)]+_0x35476c(0x16a)+_0x5805fe['length']+_0x35476c(0x17f)+_0x59fbf6[_0x35476c(0x15d)]+'\x20unchanged'+(_0x26720d[_0x35476c(0x15d)]>0x0?',\x20'+_0x26720d[_0x35476c(0x15d)]+_0x35476c(0x164):'')};}};
1
+ const a45_0x3f4539=a45_0x2ec1;(function(_0x126065,_0x187bf5){const _0x5ec55a=a45_0x2ec1,_0x3a3a85=_0x126065();while(!![]){try{const _0x116ca4=-parseInt(_0x5ec55a(0x89))/0x1+-parseInt(_0x5ec55a(0x79))/0x2+parseInt(_0x5ec55a(0x69))/0x3+parseInt(_0x5ec55a(0x75))/0x4+parseInt(_0x5ec55a(0x77))/0x5+parseInt(_0x5ec55a(0x87))/0x6+-parseInt(_0x5ec55a(0x76))/0x7;if(_0x116ca4===_0x187bf5)break;else _0x3a3a85['push'](_0x3a3a85['shift']());}catch(_0x1f48f0){_0x3a3a85['push'](_0x3a3a85['shift']());}}}(a45_0x31fe,0x9cd51));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a45_0x31fe(){const _0x89a036=['apiDir','5529606vOIbQt','bool','717454euqLwu','defaultApp','push','alias','622425vAdcjm','All\x20Backend\x20Function\x20scripts\x20are\x20in\x20sync.','\x20remote-only','map','\x20modified,\x20','functions','scriptsRoot','all','has','length','lockKey','\x20added,\x20','2876108Cgdruy','503251HxBlhm','1560995IeEfMC','remote','1457140VHXwAZ','profileName','datasetCode','\x20unchanged','appCode','mergedCli','hash','Check\x20local\x20Backend\x20Function\x20sync\x20status\x20against\x20lock\x20file','bff','boolean','filePath','status','read'];a45_0x31fe=function(){return _0x89a036;};return a45_0x31fe();}function a45_0x2ec1(_0x1775d0,_0xda9b38){_0x1775d0=_0x1775d0-0x67;const _0x31fea7=a45_0x31fe();let _0x2ec107=_0x31fea7[_0x1775d0];return _0x2ec107;}import{resolveApiModelSource}from'../../api/model-source.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a45_0x3f4539(0x81),'command':a45_0x3f4539(0x84),'description':a45_0x3f4539(0x80),'risk':a45_0x3f4539(0x85),'flags':[{'name':'remote','type':a45_0x3f4539(0x82),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x536076){const _0x463d93=a45_0x3f4539,_0x2288f1=loadBffProjectConfig(_0x536076[_0x463d93(0x7d)]),_0xd2d026=await readBffLockFile(_0x2288f1['lockFilePath']),{appLock:_0x5209ff}=ensureLockScope(_0xd2d026??createEmptyBffLock(),_0x536076[_0x463d93(0x7d)],_0x2288f1[_0x463d93(0x6f)],'status'),_0x341a4f=await scanLocalBffFunctions(_0x2288f1),_0x57bdef=[],_0x1f7157=[],_0x4b1cd1=[];for(const _0x404a84 of _0x341a4f){const _0x4f5773=await computeFileHash(_0x404a84['filePath']),_0x515b6a=_0x5209ff[_0x463d93(0x6e)][_0x404a84[_0x463d93(0x73)]];if(!_0x515b6a)_0x57bdef[_0x463d93(0x67)](_0x404a84[_0x463d93(0x73)]);else _0x515b6a[_0x463d93(0x7f)]!==_0x4f5773?_0x1f7157[_0x463d93(0x67)](_0x404a84['lockKey']):_0x4b1cd1[_0x463d93(0x67)](_0x404a84['lockKey']);}const _0xc046d4=[];if(_0x536076[_0x463d93(0x88)](_0x463d93(0x78))){const _0x5bc006=resolveApiModelSource(_0x536076['apiDir'],_0x536076['appCode'],_0x536076['selectedAppName']||_0x536076[_0x463d93(0x7e)]?.['currentApp']||_0x536076['mergedCli']?.[_0x463d93(0x8a)]),_0x1a16e1=loadAliasMap(_0x536076[_0x463d93(0x86)],undefined,_0x5bc006[_0x463d93(0x83)],_0x5bc006[_0x463d93(0x7a)]),_0x1c112f=new Map(_0x1a16e1['map'](_0xfacbda=>[_0xfacbda[_0x463d93(0x7b)],_0xfacbda[_0x463d93(0x68)]])),[_0x27708d,_0x2e280f]=await Promise[_0x463d93(0x70)]([listBffScripts(_0x536076[_0x463d93(0x7d)]),getBffScriptStatistics(_0x536076[_0x463d93(0x7d)])]),_0xd024c4=createHookLocationMap(_0x2e280f),_0x389803=new Set(_0x341a4f[_0x463d93(0x6c)](_0x2983c1=>_0x2983c1[_0x463d93(0x73)]));for(const _0x23e5a2 of _0x27708d){const _0x1b022a=resolveRemoteScriptTarget(_0x2288f1,_0x23e5a2,_0xd024c4,_0x5209ff['functions'],_0x1c112f);_0x1b022a&&!_0x389803[_0x463d93(0x71)](_0x1b022a['lockKey'])&&_0xc046d4[_0x463d93(0x67)](_0x1b022a[_0x463d93(0x73)]);}}const _0x120f8f=_0x57bdef[_0x463d93(0x72)]===0x0&&_0x1f7157[_0x463d93(0x72)]===0x0&&_0xc046d4[_0x463d93(0x72)]===0x0;return{'ok':!![],'data':{'added':_0x57bdef,'modified':_0x1f7157,'unchanged':_0x4b1cd1,'remoteOnly':_0xc046d4},'message':_0x120f8f?_0x463d93(0x6a):_0x57bdef[_0x463d93(0x72)]+_0x463d93(0x74)+_0x1f7157['length']+_0x463d93(0x6d)+_0x4b1cd1[_0x463d93(0x72)]+_0x463d93(0x7c)+(_0xc046d4[_0x463d93(0x72)]>0x0?',\x20'+_0xc046d4['length']+_0x463d93(0x6b):'')};}};
@@ -1 +1 @@
1
- const a46_0x10b21e=a46_0x35a1;(function(_0x11cd75,_0x4dff9b){const _0x36c980=a46_0x35a1,_0x42f1ad=_0x11cd75();while(!![]){try{const _0x2d486b=-parseInt(_0x36c980(0x117))/0x1*(-parseInt(_0x36c980(0x100))/0x2)+parseInt(_0x36c980(0x109))/0x3*(-parseInt(_0x36c980(0x107))/0x4)+parseInt(_0x36c980(0x10d))/0x5+-parseInt(_0x36c980(0xfa))/0x6*(parseInt(_0x36c980(0x116))/0x7)+parseInt(_0x36c980(0x10f))/0x8*(parseInt(_0x36c980(0x108))/0x9)+-parseInt(_0x36c980(0xfc))/0xa+parseInt(_0x36c980(0x10c))/0xb*(parseInt(_0x36c980(0x118))/0xc);if(_0x2d486b===_0x4dff9b)break;else _0x42f1ad['push'](_0x42f1ad['shift']());}catch(_0x3b9b7c){_0x42f1ad['push'](_0x42f1ad['shift']());}}}(a46_0x5bc1,0x8b8ba));function a46_0x5bc1(){const _0x3ef7ad=['8PCVlCY','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','unknown','\x20at\x20','install','error','cwd','80mcPqVE','397755GHqEjh','30660PQIkpy','repairCommand',']:\x20','682zLRAYj','150030CtpBGU','CLI\x20Built-in\x20Skill\x20','80NaCFvg','\x20via\x20skills@latest','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','installedPath','info','\x20installed','cli-skill','1442VStjUL','245553jEamNh','83244vFcTpe','read','skillVersion','\x20is\x20already\x20current','inherit','426DiDsDw','apiError','10936580mxVDgt','setLogPath','nonInteractive','changed'];a46_0x5bc1=function(){return _0x3ef7ad;};return a46_0x5bc1();}import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x35a1(_0xc966a8,_0x34950b){_0xc966a8=_0xc966a8-0xf7;const _0x5bc151=a46_0x5bc1();let _0x35a130=_0x5bc151[_0xc966a8];return _0x35a130;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':a46_0x10b21e(0x115),'command':a46_0x10b21e(0x104),'description':a46_0x10b21e(0x101),'risk':a46_0x10b21e(0x119),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x14e9ca){const _0x41b331=a46_0x10b21e;logger[_0x41b331(0xfd)](process[_0x41b331(0x106)]()),logger[_0x41b331(0x113)]('cli-skill-install',_0x41b331(0x111));const _0x531a91=installBuiltinSkill({'stdio':_0x14e9ca[_0x41b331(0xfe)]?'pipe':_0x41b331(0xf9)});if(!_0x531a91['ok'])throw CliErrors[_0x41b331(0xfb)]('Built-in\x20Skill\x20install\x20failed\x20['+_0x531a91['code']+_0x41b331(0x10b)+(_0x531a91[_0x41b331(0x105)]||_0x41b331(0x102)),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x531a91[_0x41b331(0x10a)]);return console['log'](_0x531a91[_0x41b331(0xff)]?'CLI\x20Built-in\x20Skill\x20'+_0x531a91[_0x41b331(0xf7)]+_0x41b331(0x114)+(_0x531a91[_0x41b331(0x112)]?_0x41b331(0x103)+_0x531a91[_0x41b331(0x112)]:_0x41b331(0x110)):_0x41b331(0x10e)+_0x531a91['skillVersion']+_0x41b331(0xf8)+(_0x531a91['installedPath']?_0x41b331(0x103)+_0x531a91[_0x41b331(0x112)]:'')),{'ok':!![]};}}];
1
+ const a46_0x30a292=a46_0x3784;function a46_0x270b(){const _0x23c19c=['\x20via\x20skills@latest','changed','info','installedPath','Installing\x20CLI\x20Built-in\x20Skill\x20from\x20the\x20current\x20package.','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','skillVersion','7DUztLi','33636Qsmglj','207cAdErW','CLI\x20Built-in\x20Skill\x20','1352604fKUNzm','error','\x20at\x20','12478518LFGViz','1fIKZsQ','read','cli-skill-install','inherit','4959136oFygKp',']:\x20','unknown','log','nonInteractive','\x20is\x20already\x20current','519555XGHZIS','1802958DfUQqL','Built-in\x20Skill\x20install\x20failed\x20[','13332640ZbvoOG','setLogPath'];a46_0x270b=function(){return _0x23c19c;};return a46_0x270b();}(function(_0x335e69,_0x1fff67){const _0x150713=a46_0x3784,_0x5ab4ed=_0x335e69();while(!![]){try{const _0x2fd5de=parseInt(_0x150713(0x106))/0x1*(-parseInt(_0x150713(0x102))/0x2)+parseInt(_0x150713(0x100))/0x3*(parseInt(_0x150713(0xff))/0x4)+parseInt(_0x150713(0x110))/0x5+parseInt(_0x150713(0x111))/0x6*(parseInt(_0x150713(0xfe))/0x7)+parseInt(_0x150713(0x10a))/0x8+-parseInt(_0x150713(0x105))/0x9+parseInt(_0x150713(0x113))/0xa;if(_0x2fd5de===_0x1fff67)break;else _0x5ab4ed['push'](_0x5ab4ed['shift']());}catch(_0x275387){_0x5ab4ed['push'](_0x5ab4ed['shift']());}}}(a46_0x270b,0xd59e1));import{CliErrors}from'../../errors.js';import{installBuiltinSkill}from'../../skills/builtin-skill.js';function a46_0x3784(_0x7fc208,_0x1f16ee){_0x7fc208=_0x7fc208-0xfe;const _0x270b71=a46_0x270b();let _0x37841d=_0x270b71[_0x7fc208];return _0x37841d;}import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':'install','description':a46_0x30a292(0x11a),'risk':a46_0x30a292(0x107),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x126e26){const _0x400d27=a46_0x30a292;logger[_0x400d27(0x114)](process['cwd']()),logger[_0x400d27(0x117)](_0x400d27(0x108),_0x400d27(0x119));const _0x49ebc5=installBuiltinSkill({'stdio':_0x126e26[_0x400d27(0x10e)]?'pipe':_0x400d27(0x109)});if(!_0x49ebc5['ok'])throw CliErrors['apiError'](_0x400d27(0x112)+_0x49ebc5['code']+_0x400d27(0x10b)+(_0x49ebc5[_0x400d27(0x103)]||_0x400d27(0x10c)),'Resolve\x20the\x20Skills\x20CLI\x20installation\x20issue\x20and\x20run:\x20'+_0x49ebc5['repairCommand']);return console[_0x400d27(0x10d)](_0x49ebc5[_0x400d27(0x116)]?_0x400d27(0x101)+_0x49ebc5[_0x400d27(0x11b)]+'\x20installed'+(_0x49ebc5['installedPath']?'\x20at\x20'+_0x49ebc5[_0x400d27(0x118)]:_0x400d27(0x115)):_0x400d27(0x101)+_0x49ebc5[_0x400d27(0x11b)]+_0x400d27(0x10f)+(_0x49ebc5[_0x400d27(0x118)]?_0x400d27(0x104)+_0x49ebc5[_0x400d27(0x118)]:'')),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a47_0x475063=a47_0x3f3b;(function(_0x64c62,_0x130b97){const _0x2ab167=a47_0x3f3b,_0x4cc25b=_0x64c62();while(!![]){try{const _0x441bd4=parseInt(_0x2ab167(0x102))/0x1*(parseInt(_0x2ab167(0x153))/0x2)+-parseInt(_0x2ab167(0x136))/0x3*(parseInt(_0x2ab167(0x105))/0x4)+parseInt(_0x2ab167(0x11c))/0x5*(parseInt(_0x2ab167(0x10b))/0x6)+parseInt(_0x2ab167(0x125))/0x7+parseInt(_0x2ab167(0x143))/0x8*(-parseInt(_0x2ab167(0x11a))/0x9)+parseInt(_0x2ab167(0x13a))/0xa*(-parseInt(_0x2ab167(0x13b))/0xb)+parseInt(_0x2ab167(0xfd))/0xc*(-parseInt(_0x2ab167(0x123))/0xd);if(_0x441bd4===_0x130b97)break;else _0x4cc25b['push'](_0x4cc25b['shift']());}catch(_0x59bcf8){_0x4cc25b['push'](_0x4cc25b['shift']());}}}(a47_0x39e7,0x74768));import a47_0x15b6ed from'chalk';import a47_0x620eca from'ora';import a47_0x2d3743 from'semver';function a47_0x3f3b(_0x453277,_0x2fb6ab){_0x453277=_0x453277-0xfb;const _0x39e715=a47_0x39e7();let _0x3f3bc0=_0x39e715[_0x453277];return _0x3f3bc0;}import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x157c3c=a47_0x3f3b;return GIT_COMMIT!==_0x157c3c(0x112)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x157c3c(0x118)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3a1cb9=a47_0x3f3b,_0x2dc873=process[_0x3a1cb9(0x101)][_0x3a1cb9(0x12c)]();if(_0x2dc873[_0x3a1cb9(0x121)](_0x3a1cb9(0x133)))return _0x3a1cb9(0x133);return _0x3a1cb9(0x10c);}const updateFlags=[{'name':'beta','type':'boolean','description':a47_0x475063(0x12d),'default':![]},{'name':a47_0x475063(0x12a),'type':a47_0x475063(0x120),'description':a47_0x475063(0x13f)}];function getRequestedVersion(_0x2cbfb2){return _0x2cbfb2['str']('version')['trim']();}async function validateUpdateFlags(_0x14b3b8){const _0x45093a=a47_0x475063,_0x150826=_0x14b3b8[_0x45093a(0x10a)](_0x45093a(0x134)),_0x595bd4=getRequestedVersion(_0x14b3b8);if(_0x150826&&_0x595bd4)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x45093a(0x14a));if(_0x595bd4&&!a47_0x2d3743[_0x45093a(0x132)](_0x595bd4))throw CliErrors[_0x45093a(0x140)](_0x45093a(0x146)+_0x595bd4,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2237c6=a47_0x475063;try{const _0x229d4e=await fetch(_0x2237c6(0x109)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x2237c6(0x127),{'signal':AbortSignal[_0x2237c6(0x11e)](0x2710)});if(!_0x229d4e['ok'])return null;const _0x4d37c8=await _0x229d4e['json']();if(!_0x4d37c8||typeof _0x4d37c8!==_0x2237c6(0x130))return null;return Object[_0x2237c6(0x111)](Object['entries'](_0x4d37c8)[_0x2237c6(0x141)](([,_0x534d4f])=>typeof _0x534d4f==='string'&&_0x534d4f[_0x2237c6(0x14d)]()[_0x2237c6(0x149)]>0x0)['map'](([_0x154115,_0x4a2ad4])=>[_0x154115,String(_0x4a2ad4)[_0x2237c6(0x14d)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x3787ca){const _0x2ca1cf=await fetchNpmDistTags();return _0x2ca1cf?.[_0x3787ca]??null;}async function fetchLatestVersion(){const _0x5b26fa=a47_0x475063;return fetchNpmDistTagVersion(_0x5b26fa(0x14e));}async function resolveTargetVersion(_0x1f5503){const _0x5b0db7=a47_0x475063,_0x18ed8c=getRequestedVersion(_0x1f5503);if(_0x18ed8c)return{'version':_0x18ed8c,'source':_0x5b0db7(0x12a)};if(_0x1f5503[_0x5b0db7(0x10a)](_0x5b0db7(0x134))){const _0x2fd2f7=await fetchNpmDistTagVersion(_0x5b0db7(0x134));if(!_0x2fd2f7)return null;return{'version':_0x2fd2f7,'source':_0x5b0db7(0x134)};}const _0x19a33a=await fetchLatestVersion();if(!_0x19a33a)return null;return{'version':_0x19a33a,'source':_0x5b0db7(0x14e)};}function shouldInstallTarget(_0x5be5d8,_0x1a6117){const _0xbb79b=a47_0x475063;if(_0x1a6117[_0xbb79b(0x117)]===_0xbb79b(0x12a)||_0x1a6117[_0xbb79b(0x117)]===_0xbb79b(0x134))return!a47_0x2d3743['eq'](_0x5be5d8,_0x1a6117['version']);return a47_0x2d3743['lt'](_0x5be5d8,_0x1a6117[_0xbb79b(0x12a)]);}function getInstallPlanLabel(_0x5857e3,_0x13783f){const _0x7e093=a47_0x475063;switch(_0x13783f[_0x7e093(0x117)]){case _0x7e093(0x134):return _0x7e093(0xfe)+a47_0x15b6ed['yellow'](_0x5857e3)+_0x7e093(0x128)+a47_0x15b6ed[_0x7e093(0x124)](_0x13783f[_0x7e093(0x12a)]);case _0x7e093(0x12a):return _0x7e093(0x126)+a47_0x15b6ed['yellow'](_0x5857e3)+_0x7e093(0x128)+a47_0x15b6ed['green'](_0x13783f['version']);case _0x7e093(0x14e):default:return _0x7e093(0x108)+a47_0x15b6ed['yellow'](_0x5857e3)+'\x20→\x20'+a47_0x15b6ed[_0x7e093(0x124)](_0x13783f[_0x7e093(0x12a)]);}}function repairCurrentBuiltinSkill(){const _0x345ed9=a47_0x475063;console[_0x345ed9(0x155)](a47_0x15b6ed[_0x345ed9(0x145)](_0x345ed9(0xff)));const _0x2aeeab=installBuiltinSkill();if(_0x2aeeab['ok']){console['log'](a47_0x15b6ed['gray'](_0x345ed9(0x11b)+_0x2aeeab[_0x345ed9(0x13c)]+'\x20is\x20up\x20to\x20date.'));return;}throw CliErrors[_0x345ed9(0x113)](_0x345ed9(0x110)+_0x2aeeab[_0x345ed9(0x106)]+']:\x20'+(_0x2aeeab['error']||_0x345ed9(0x112)),_0x345ed9(0xfb)+_0x2aeeab[_0x345ed9(0x104)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+_0x345ed9(0x151));}function verifyUpdatedBuiltinSkill(_0x15b4c2){const _0xd6e759=a47_0x475063,_0x295f5e=inspectInstalledBuiltinSkillVersion(_0x15b4c2);if(_0x295f5e[_0xd6e759(0x10d)]==='current'){console[_0xd6e759(0x155)](a47_0x15b6ed[_0xd6e759(0x145)](_0xd6e759(0x11b)+_0x15b4c2+_0xd6e759(0x144)));return;}const _0x253ea1=_0x295f5e[_0xd6e759(0x13c)]?_0xd6e759(0x131)+_0x15b4c2+_0xd6e759(0x137)+_0x295f5e['skillVersion']:_0xd6e759(0x131)+_0x15b4c2+_0xd6e759(0x11f)+_0x295f5e['state'];throw CliErrors[_0xd6e759(0x113)](_0xd6e759(0xfc)+_0x15b4c2+_0xd6e759(0x135)+_0x253ea1,_0xd6e759(0xfb)+_0x295f5e[_0xd6e759(0x104)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}async function execute(_0x17cea4){const _0x1224ec=a47_0x475063;await validateUpdateFlags(_0x17cea4);const _0x5cf634=getCurrentVersion();console['log'](_0x1224ec(0x12f)+_0x5cf634);const _0x375294=a47_0x620eca(_0x1224ec(0x10e))[_0x1224ec(0x148)](),_0x2d9fea=await resolveTargetVersion(_0x17cea4);if(!_0x2d9fea){const _0x50bb86=_0x17cea4['bool']('beta')?_0x1224ec(0x12e):_0x1224ec(0x12b);return _0x375294[_0x1224ec(0x14b)](_0x50bb86),console['log'](a47_0x15b6ed[_0x1224ec(0x145)](_0x1224ec(0x114)+NPM_PACKAGE_NAME+_0x1224ec(0x14f))),{'ok':![],'message':_0x50bb86};}const _0x2d06ee=a47_0x2d3743[_0x1224ec(0x132)](VERSION),_0x169e91=a47_0x2d3743[_0x1224ec(0x132)](_0x2d9fea['version']);if(!_0x2d06ee||!_0x169e91)return _0x375294[_0x1224ec(0x14b)](_0x1224ec(0x139)),{'ok':![],'message':_0x1224ec(0x139)};if(!shouldInstallTarget(_0x2d06ee,_0x2d9fea)){const _0x38ff0c=_0x2d9fea[_0x1224ec(0x117)]===_0x1224ec(0x12a)?_0x1224ec(0x11d)+_0x2d9fea[_0x1224ec(0x12a)]+')':a47_0x2d3743['gt'](_0x2d06ee,_0x169e91)?_0x1224ec(0x100)+_0x5cf634+_0x1224ec(0x129)+_0x2d9fea['version']:'Already\x20up\x20to\x20date\x20(v'+_0x2d9fea['version']+')';return _0x375294[_0x1224ec(0x103)](_0x38ff0c),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x375294[_0x1224ec(0x13d)](getInstallPlanLabel(_0x5cf634,_0x2d9fea));const _0x1b7804=detectPackageManager(),_0x52a288=_0x1b7804===_0x1224ec(0x10c)?resolveNpmBin(_0x1224ec(0x10c)):_0x1b7804,_0x49ff75=a47_0x620eca('Updating\x20via\x20'+_0x1b7804+_0x1224ec(0x10f))[_0x1224ec(0x148)]();try{await execa(_0x52a288,[_0x1224ec(0x150),'-g',NPM_PACKAGE_NAME+'@'+_0x2d9fea[_0x1224ec(0x12a)]],{'stdio':_0x1224ec(0x138)}),_0x49ff75['succeed'](_0x1224ec(0x119)+_0x2d9fea['version']),console['log'](a47_0x15b6ed[_0x1224ec(0x145)](_0x1224ec(0x13e)));}catch(_0x181636){return _0x49ff75['fail'](_0x1224ec(0x107)),console[_0x1224ec(0x142)](a47_0x15b6ed[_0x1224ec(0x115)]('\x20\x20'+_0x181636[_0x1224ec(0x116)])),console[_0x1224ec(0x155)](a47_0x15b6ed[_0x1224ec(0x145)](_0x1224ec(0x14c)+_0x1b7804+_0x1224ec(0x122)+NPM_PACKAGE_NAME+'@'+_0x2d9fea[_0x1224ec(0x12a)])),{'ok':![],'message':_0x181636[_0x1224ec(0x116)]};}return verifyUpdatedBuiltinSkill(_0x2d9fea['version']),{'ok':!![]};}function a47_0x39e7(){const _0x48e35a=['start','length','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','fail','\x20\x20Try\x20manually:\x20','trim','latest','@latest','install','\x20doctor','read','2adkCsx','run','log','Run:\x20','CLI\x20updated\x20to\x20v','1062216DTpKMW','Beta\x20version:\x20','Checking\x20CLI\x20Built-in\x20Skill...','Current\x20version\x20v','execPath','593804mQNqlx','succeed','repairCommand','7596FWHDcm','code','Update\x20failed','Update\x20available:\x20','https://registry.npmjs.org/-/package/','bool','885426jtEFMe','npm','state','Checking\x20for\x20updates...','...','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','fromEntries','unknown','apiError','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','red','message','source','slice','Updated\x20to\x20v','3879qRSGzE','\x20\x20CLI\x20Built-in\x20Skill\x20','10phjCqT','Already\x20on\x20requested\x20version\x20(v','timeout',',\x20state\x20','string','includes','\x20install\x20-g\x20','104UmlqHt','green','3420732DoGovn','Requested\x20version:\x20','/dist-tags','\x20→\x20','\x20is\x20newer\x20than\x20npm\x20latest\x20v','version','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','toLowerCase','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','Current\x20version:\x20','object','expected\x20','valid','bun','beta',',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20','111nZTMFR',',\x20found\x20','pipe','Version\x20comparison\x20failed','520ffvLLx','3509tDBNNR','skillVersion','info','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Install\x20a\x20specific\x20CLI\x20version','validation','filter','error','1960PEIJJg','\x20is\x20up\x20to\x20date.','gray','Invalid\x20version:\x20','update'];a47_0x39e7=function(){return _0x48e35a;};return a47_0x39e7();}export const updateDefinition={'service':a47_0x475063(0x147),'command':a47_0x475063(0x154),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a47_0x475063(0x152),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a47_0x205d1a=a47_0x31af;(function(_0x96bdce,_0x147416){const _0x475f42=a47_0x31af,_0x5487be=_0x96bdce();while(!![]){try{const _0xa8e311=-parseInt(_0x475f42(0xeb))/0x1+parseInt(_0x475f42(0xda))/0x2*(parseInt(_0x475f42(0xcd))/0x3)+parseInt(_0x475f42(0xea))/0x4*(parseInt(_0x475f42(0x100))/0x5)+parseInt(_0x475f42(0xc0))/0x6+parseInt(_0x475f42(0xf6))/0x7*(parseInt(_0x475f42(0xef))/0x8)+-parseInt(_0x475f42(0x103))/0x9+parseInt(_0x475f42(0x106))/0xa*(-parseInt(_0x475f42(0xc8))/0xb);if(_0xa8e311===_0x147416)break;else _0x5487be['push'](_0x5487be['shift']());}catch(_0x22af76){_0x5487be['push'](_0x5487be['shift']());}}}(a47_0x3f40,0x34ba2));import a47_0xdb17e0 from'chalk';import a47_0x1200e6 from'ora';import a47_0x7a46f from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{inspectInstalledBuiltinSkillVersion,installBuiltinSkill}from'../skills/builtin-skill.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x3603bc=a47_0x31af;return GIT_COMMIT!==_0x3603bc(0xcb)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3603bc(0xf1)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x41e46a=a47_0x31af,_0x4a683d=process[_0x41e46a(0xd2)][_0x41e46a(0x10d)]();if(_0x4a683d['includes'](_0x41e46a(0xcf)))return'bun';return _0x41e46a(0xc1);}const updateFlags=[{'name':'beta','type':a47_0x205d1a(0xc5),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a47_0x205d1a(0x114),'type':'string','description':a47_0x205d1a(0xe0)}];function getRequestedVersion(_0x32df1d){const _0x4122de=a47_0x205d1a;return _0x32df1d[_0x4122de(0x10c)]('version')[_0x4122de(0xd9)]();}async function validateUpdateFlags(_0x4420f7){const _0x132495=a47_0x205d1a,_0x1d443f=_0x4420f7[_0x132495(0x101)](_0x132495(0xce)),_0x27c6cf=getRequestedVersion(_0x4420f7);if(_0x1d443f&&_0x27c6cf)throw CliErrors[_0x132495(0xed)](_0x132495(0xd5),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x27c6cf&&!a47_0x7a46f['valid'](_0x27c6cf))throw CliErrors[_0x132495(0xed)](_0x132495(0x111)+_0x27c6cf,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x30232f=a47_0x205d1a;try{const _0x2aa8b8=await fetch(_0x30232f(0xdb)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x30232f(0xf9),{'signal':AbortSignal[_0x30232f(0xf2)](0x2710)});if(!_0x2aa8b8['ok'])return null;const _0x44af25=await _0x2aa8b8[_0x30232f(0x107)]();if(!_0x44af25||typeof _0x44af25!==_0x30232f(0xd7))return null;return Object[_0x30232f(0x117)](Object[_0x30232f(0xd1)](_0x44af25)[_0x30232f(0xf7)](([,_0x51f596])=>typeof _0x51f596===_0x30232f(0xf3)&&_0x51f596[_0x30232f(0xd9)]()[_0x30232f(0xe1)]>0x0)[_0x30232f(0xd3)](([_0xb07365,_0x92abca])=>[_0xb07365,String(_0x92abca)[_0x30232f(0xd9)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x212141){const _0x54d6fd=await fetchNpmDistTags();return _0x54d6fd?.[_0x212141]??null;}async function fetchLatestVersion(){const _0x8931d0=a47_0x205d1a;return fetchNpmDistTagVersion(_0x8931d0(0xe4));}async function resolveTargetVersion(_0x94ed47){const _0x57da60=a47_0x205d1a,_0x423ba0=getRequestedVersion(_0x94ed47);if(_0x423ba0)return{'version':_0x423ba0,'source':'version'};if(_0x94ed47[_0x57da60(0x101)](_0x57da60(0xce))){const _0x543625=await fetchNpmDistTagVersion(_0x57da60(0xce));if(!_0x543625)return null;return{'version':_0x543625,'source':_0x57da60(0xce)};}const _0x59620f=await fetchLatestVersion();if(!_0x59620f)return null;return{'version':_0x59620f,'source':_0x57da60(0xe4)};}function shouldInstallTarget(_0x454cf5,_0x14d3c4){const _0x465516=a47_0x205d1a;if(_0x14d3c4[_0x465516(0x116)]===_0x465516(0x114)||_0x14d3c4[_0x465516(0x116)]===_0x465516(0xce))return!a47_0x7a46f['eq'](_0x454cf5,_0x14d3c4[_0x465516(0x114)]);return a47_0x7a46f['lt'](_0x454cf5,_0x14d3c4[_0x465516(0x114)]);}function getInstallPlanLabel(_0x3e4ace,_0x2efee6){const _0x1ba70a=a47_0x205d1a;switch(_0x2efee6[_0x1ba70a(0x116)]){case _0x1ba70a(0xce):return _0x1ba70a(0xec)+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6[_0x1ba70a(0x114)]);case _0x1ba70a(0x114):return _0x1ba70a(0xc2)+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6[_0x1ba70a(0x114)]);case _0x1ba70a(0xe4):default:return'Update\x20available:\x20'+a47_0xdb17e0[_0x1ba70a(0xe5)](_0x3e4ace)+_0x1ba70a(0x10b)+a47_0xdb17e0[_0x1ba70a(0xd6)](_0x2efee6['version']);}}function repairCurrentBuiltinSkill(){const _0x32c654=a47_0x205d1a;console[_0x32c654(0xfc)](a47_0xdb17e0[_0x32c654(0x119)](_0x32c654(0xe6)));const _0x411fbc=installBuiltinSkill();if(_0x411fbc['ok']){console[_0x32c654(0xfc)](a47_0xdb17e0['gray'](_0x32c654(0xf8)+_0x411fbc[_0x32c654(0xc3)]+_0x32c654(0xf5)));return;}throw CliErrors[_0x32c654(0xde)](_0x32c654(0xc7)+_0x411fbc[_0x32c654(0xd8)]+_0x32c654(0xcc)+(_0x411fbc['error']||_0x32c654(0xcb)),'Run:\x20'+_0x411fbc[_0x32c654(0xc6)]+',\x20then\x20verify\x20with:\x20'+CLI_BIN_NAME+'\x20doctor');}function a47_0x3f40(){const _0x13a6d9=['4332oyoGsi','beta','bun','Updated\x20to\x20v','entries','execPath','map','message','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','green','object','code','trim','158svRTlJ','https://registry.npmjs.org/-/package/','Updating\x20via\x20',',\x20then\x20verify\x20with:\x20','apiError','install','Install\x20a\x20specific\x20CLI\x20version','length','Already\x20on\x20requested\x20version\x20(v','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','latest','yellow','Checking\x20CLI\x20Built-in\x20Skill...','...','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','9820VRZXwu','27020TrXFKs','Beta\x20version:\x20','validation','succeed','8qHUnkx','run','slice','timeout','string','fail','\x20is\x20up\x20to\x20date.','2167557VcfXJk','filter','\x20\x20CLI\x20Built-in\x20Skill\x20','/dist-tags','Version\x20comparison\x20failed','@latest','log','Current\x20version:\x20','update','Run:\x20','125mySwkK','bool','Current\x20version\x20v','2696328lypWdN','state','pipe','39470WUmYou','json','\x20is\x20newer\x20than\x20npm\x20latest\x20v','expected\x20',',\x20found\x20','\x20→\x20','str','toLowerCase','valid','start','Update\x20failed','Invalid\x20version:\x20','read',',\x20state\x20','version','Checking\x20for\x20updates...','source','fromEntries','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','gray','510654ckDAum','npm','Requested\x20version:\x20','skillVersion','info','boolean','repairCommand','CLI\x20Built-in\x20Skill\x20repair\x20failed\x20[','77JDlYtD','red','\x20install\x20-g\x20','unknown',']:\x20'];a47_0x3f40=function(){return _0x13a6d9;};return a47_0x3f40();}function verifyUpdatedBuiltinSkill(_0x7572d5){const _0x59530e=a47_0x205d1a,_0x344f37=inspectInstalledBuiltinSkillVersion(_0x7572d5);if(_0x344f37[_0x59530e(0x104)]==='current'){console['log'](a47_0xdb17e0[_0x59530e(0x119)](_0x59530e(0xf8)+_0x7572d5+'\x20is\x20up\x20to\x20date.'));return;}const _0x218063=_0x344f37[_0x59530e(0xc3)]?_0x59530e(0x109)+_0x7572d5+_0x59530e(0x10a)+_0x344f37[_0x59530e(0xc3)]:'expected\x20'+_0x7572d5+_0x59530e(0x113)+_0x344f37[_0x59530e(0x104)];throw CliErrors[_0x59530e(0xde)]('CLI\x20updated\x20to\x20v'+_0x7572d5+',\x20but\x20Built-in\x20Skill\x20verification\x20failed:\x20'+_0x218063,_0x59530e(0xff)+_0x344f37[_0x59530e(0xc6)]+_0x59530e(0xdd)+CLI_BIN_NAME+'\x20doctor');}function a47_0x31af(_0x1d7bd4,_0x32a5df){_0x1d7bd4=_0x1d7bd4-0xc0;const _0x3f40fb=a47_0x3f40();let _0x31af3a=_0x3f40fb[_0x1d7bd4];return _0x31af3a;}async function execute(_0x11d403){const _0x410bb5=a47_0x205d1a;await validateUpdateFlags(_0x11d403);const _0x932772=getCurrentVersion();console[_0x410bb5(0xfc)](_0x410bb5(0xfd)+_0x932772);const _0x3fb20f=a47_0x1200e6(_0x410bb5(0x115))[_0x410bb5(0x10f)](),_0x2f2ded=await resolveTargetVersion(_0x11d403);if(!_0x2f2ded){const _0x147cb3=_0x11d403[_0x410bb5(0x101)](_0x410bb5(0xce))?_0x410bb5(0xe3):_0x410bb5(0xe9);return _0x3fb20f['fail'](_0x147cb3),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)](_0x410bb5(0x118)+NPM_PACKAGE_NAME+_0x410bb5(0xfb))),{'ok':![],'message':_0x147cb3};}const _0x2a6098=a47_0x7a46f['valid'](VERSION),_0x4da338=a47_0x7a46f[_0x410bb5(0x10e)](_0x2f2ded[_0x410bb5(0x114)]);if(!_0x2a6098||!_0x4da338)return _0x3fb20f[_0x410bb5(0xf4)](_0x410bb5(0xfa)),{'ok':![],'message':_0x410bb5(0xfa)};if(!shouldInstallTarget(_0x2a6098,_0x2f2ded)){const _0x2b2b0b=_0x2f2ded[_0x410bb5(0x116)]===_0x410bb5(0x114)?_0x410bb5(0xe2)+_0x2f2ded[_0x410bb5(0x114)]+')':a47_0x7a46f['gt'](_0x2a6098,_0x4da338)?_0x410bb5(0x102)+_0x932772+_0x410bb5(0x108)+_0x2f2ded[_0x410bb5(0x114)]:'Already\x20up\x20to\x20date\x20(v'+_0x2f2ded[_0x410bb5(0x114)]+')';return _0x3fb20f[_0x410bb5(0xee)](_0x2b2b0b),repairCurrentBuiltinSkill(),{'ok':!![]};}_0x3fb20f[_0x410bb5(0xc4)](getInstallPlanLabel(_0x932772,_0x2f2ded));const _0x2c54a0=detectPackageManager(),_0x40d12d=_0x2c54a0==='npm'?resolveNpmBin(_0x410bb5(0xc1)):_0x2c54a0,_0x352ca9=a47_0x1200e6(_0x410bb5(0xdc)+_0x2c54a0+_0x410bb5(0xe7))[_0x410bb5(0x10f)]();try{await execa(_0x40d12d,[_0x410bb5(0xdf),'-g',NPM_PACKAGE_NAME+'@'+_0x2f2ded[_0x410bb5(0x114)]],{'stdio':_0x410bb5(0x105)}),_0x352ca9[_0x410bb5(0xee)](_0x410bb5(0xd0)+_0x2f2ded['version']),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.'));}catch(_0x259486){return _0x352ca9[_0x410bb5(0xf4)](_0x410bb5(0x110)),console['error'](a47_0xdb17e0[_0x410bb5(0xc9)]('\x20\x20'+_0x259486[_0x410bb5(0xd4)])),console[_0x410bb5(0xfc)](a47_0xdb17e0[_0x410bb5(0x119)]('\x20\x20Try\x20manually:\x20'+_0x2c54a0+_0x410bb5(0xca)+NPM_PACKAGE_NAME+'@'+_0x2f2ded['version'])),{'ok':![],'message':_0x259486[_0x410bb5(0xd4)]};}return verifyUpdatedBuiltinSkill(_0x2f2ded['version']),{'ok':!![]};}export const updateDefinition={'service':a47_0x205d1a(0xfe),'command':a47_0x205d1a(0xf0),'description':a47_0x205d1a(0xe8),'risk':a47_0x205d1a(0x112),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a48_0x249f(_0x521cd0,_0x3c065c){_0x521cd0=_0x521cd0-0x92;const _0x2c85d1=a48_0x2c85();let _0x249f30=_0x2c85d1[_0x521cd0];return _0x249f30;}(function(_0x50369f,_0x17f0d9){const _0xdd7426=a48_0x249f,_0x168125=_0x50369f();while(!![]){try{const _0x9a464c=-parseInt(_0xdd7426(0x95))/0x1*(-parseInt(_0xdd7426(0x9a))/0x2)+-parseInt(_0xdd7426(0x9b))/0x3*(-parseInt(_0xdd7426(0x92))/0x4)+parseInt(_0xdd7426(0x99))/0x5+-parseInt(_0xdd7426(0x94))/0x6*(-parseInt(_0xdd7426(0x96))/0x7)+parseInt(_0xdd7426(0x93))/0x8+-parseInt(_0xdd7426(0x97))/0x9*(parseInt(_0xdd7426(0x9c))/0xa)+-parseInt(_0xdd7426(0x98))/0xb;if(_0x9a464c===_0x17f0d9)break;else _0x168125['push'](_0x168125['shift']());}catch(_0x3ce5ee){_0x168125['push'](_0x168125['shift']());}}}(a48_0x2c85,0x785c9));function a48_0x2c85(){const _0x47a30e=['3178055tWZTjp','4454taVBDr','32289sYVgii','20udUSqi','120pUiWXN','2370936hROpBA','276zsQoRj','424yPYhbt','8841hAHwXl','3961026WxNKQU','9723835xTQYUT'];a48_0x2c85=function(){return _0x47a30e;};return a48_0x2c85();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x4cea8b,_0x1f91cf){const _0x3562b0=a48_0x2be7,_0x29b44c=_0x4cea8b();while(!![]){try{const _0x1652aa=-parseInt(_0x3562b0(0xcc))/0x1+parseInt(_0x3562b0(0xce))/0x2+-parseInt(_0x3562b0(0xd0))/0x3+parseInt(_0x3562b0(0xcb))/0x4+parseInt(_0x3562b0(0xd2))/0x5*(-parseInt(_0x3562b0(0xd1))/0x6)+-parseInt(_0x3562b0(0xca))/0x7*(parseInt(_0x3562b0(0xcd))/0x8)+parseInt(_0x3562b0(0xcf))/0x9;if(_0x1652aa===_0x1f91cf)break;else _0x29b44c['push'](_0x29b44c['shift']());}catch(_0x5f2f35){_0x29b44c['push'](_0x29b44c['shift']());}}}(a48_0x1ec2,0x2de17));function a48_0x2be7(_0x5e8951,_0x21bab2){_0x5e8951=_0x5e8951-0xca;const _0x1ec29e=a48_0x1ec2();let _0x2be737=_0x1ec29e[_0x5e8951];return _0x2be737;}function a48_0x1ec2(){const _0x301aab=['1113RuNyEz','762676dzybTS','70621LWtuWP','3672vQTkTH','327632DmruQf','6137973tfbpye','1006281rwdMUD','876WZtudK','12655jzOlgg'];a48_0x1ec2=function(){return _0x301aab;};return a48_0x1ec2();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a49_0x344dc8=a49_0x4fe8;(function(_0x2ab674,_0x225413){const _0x51ae96=a49_0x4fe8,_0x2bc512=_0x2ab674();while(!![]){try{const _0xb64bb6=parseInt(_0x51ae96(0x1f5))/0x1+-parseInt(_0x51ae96(0x1fd))/0x2+parseInt(_0x51ae96(0x1ee))/0x3+parseInt(_0x51ae96(0x1f7))/0x4+parseInt(_0x51ae96(0x1fc))/0x5+parseInt(_0x51ae96(0x1f2))/0x6+-parseInt(_0x51ae96(0x1f4))/0x7*(parseInt(_0x51ae96(0x1fb))/0x8);if(_0xb64bb6===_0x225413)break;else _0x2bc512['push'](_0x2bc512['shift']());}catch(_0x3eb32c){_0x2bc512['push'](_0x2bc512['shift']());}}}(a49_0x12e9,0x84780));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a49_0x12e9(){const _0x4dbca2=['Omit\x20import\x20statements\x20from\x20generated\x20code','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1629447hrAJtw','str','skip-imports','operation','5700204grMBAE','name','10091809ciVSUG','1070182HeVXaa','boolean','626816vmzdfO','code','appCode','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','8OpmbOd','187955EPAfVX','1546762VVmLGN','alias','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'];a49_0x12e9=function(){return _0x4dbca2;};return a49_0x12e9();}function a49_0x4fe8(_0xce8a26,_0x4387d0){_0xce8a26=_0xce8a26-0x1eb;const _0x12e99c=a49_0x12e9();let _0x4fe8d3=_0x12e99c[_0xce8a26];return _0x4fe8d3;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':'sdk','description':a49_0x344dc8(0x1fa),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x344dc8(0x1fe),'type':'string','description':a49_0x344dc8(0x1eb)},{'name':a49_0x344dc8(0x1f1),'type':'string','required':!![],'description':a49_0x344dc8(0x1ed)},{'name':a49_0x344dc8(0x1f0),'type':a49_0x344dc8(0x1f6),'description':a49_0x344dc8(0x1ec)}],async 'execute'(_0x40eb2b){const _0x9dff8c=a49_0x344dc8,{dataset:_0x183973,operation:_0x183e50}=await getOperationDetail(_0x40eb2b[_0x9dff8c(0x1f9)],_0x40eb2b['str'](_0x9dff8c(0x1f8)),_0x40eb2b[_0x9dff8c(0x1ef)](_0x9dff8c(0x1f1))),_0x251c42=generateSdkCode(_0x183973,_0x183e50,{'includeImports':!_0x40eb2b['bool'](_0x9dff8c(0x1f0))});return{'ok':!![],'data':{'dataset':{'name':_0x183973[_0x9dff8c(0x1f3)],'code':_0x183973[_0x9dff8c(0x1f8)],'tableName':_0x183973['tableName']},'operation':_0x40eb2b['str']('operation'),'code':_0x251c42}};}};
1
+ function a49_0x31be(){const _0x31aae6=['appCode','494232ToCaFw','alias','bool','116pdzGnK','code','142423tjFkBY','sdk','string','Omit\x20import\x20statements\x20from\x20generated\x20code','1241628AlNIlE','boolean','95247rMhRYM','read','64526LNLXKG','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','codegen','str','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','4629KtMZxT','310TXdRdU','29220gJNmVp','52MdrQgu','tableName','skip-imports'];a49_0x31be=function(){return _0x31aae6;};return a49_0x31be();}const a49_0x1df60b=a49_0x35e0;function a49_0x35e0(_0x3f1393,_0x14b20c){_0x3f1393=_0x3f1393-0xb3;const _0x31be77=a49_0x31be();let _0x35e01c=_0x31be77[_0x3f1393];return _0x35e01c;}(function(_0x17eb8f,_0x2bdd2d){const _0x2adeda=a49_0x35e0,_0x1a1e87=_0x17eb8f();while(!![]){try{const _0xdb0720=-parseInt(_0x2adeda(0xb9))/0x1+-parseInt(_0x2adeda(0xb7))/0x2*(-parseInt(_0x2adeda(0xc8))/0x3)+parseInt(_0x2adeda(0xcb))/0x4*(parseInt(_0x2adeda(0xca))/0x5)+-parseInt(_0x2adeda(0xbd))/0x6+parseInt(_0x2adeda(0xc1))/0x7+parseInt(_0x2adeda(0xb4))/0x8+-parseInt(_0x2adeda(0xbf))/0x9*(-parseInt(_0x2adeda(0xc9))/0xa);if(_0xdb0720===_0x2bdd2d)break;else _0x1a1e87['push'](_0x1a1e87['shift']());}catch(_0xd046cf){_0x1a1e87['push'](_0x1a1e87['shift']());}}}(a49_0x31be,0x34887));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a49_0x1df60b(0xc4),'command':a49_0x1df60b(0xba),'description':a49_0x1df60b(0xc7),'risk':a49_0x1df60b(0xc0),'flags':[CODE_FLAG_OPTIONAL,{'name':a49_0x1df60b(0xb5),'type':a49_0x1df60b(0xbb),'description':a49_0x1df60b(0xc3)},{'name':a49_0x1df60b(0xc2),'type':a49_0x1df60b(0xbb),'required':!![],'description':a49_0x1df60b(0xc6)},{'name':a49_0x1df60b(0xcd),'type':a49_0x1df60b(0xbe),'description':a49_0x1df60b(0xbc)}],async 'execute'(_0x2d47f0){const _0x5f332d=a49_0x1df60b,{dataset:_0x59e223,operation:_0x416413}=await getOperationDetail(_0x2d47f0[_0x5f332d(0xb3)],_0x2d47f0[_0x5f332d(0xc5)](_0x5f332d(0xb8)),_0x2d47f0[_0x5f332d(0xc5)](_0x5f332d(0xc2))),_0x3dd70b=generateSdkCode(_0x59e223,_0x416413,{'includeImports':!_0x2d47f0[_0x5f332d(0xb6)](_0x5f332d(0xcd))});return{'ok':!![],'data':{'dataset':{'name':_0x59e223['name'],'code':_0x59e223['code'],'tableName':_0x59e223[_0x5f332d(0xcc)]},'operation':_0x2d47f0[_0x5f332d(0xc5)]('operation'),'code':_0x3dd70b}};}};
@@ -1 +1 @@
1
- const a50_0x48ace5=a50_0x2ac3;(function(_0x1abb76,_0x5b665e){const _0x4c2b6f=a50_0x2ac3,_0x26e131=_0x1abb76();while(!![]){try{const _0x4228e4=parseInt(_0x4c2b6f(0x167))/0x1*(-parseInt(_0x4c2b6f(0x154))/0x2)+parseInt(_0x4c2b6f(0x16c))/0x3+-parseInt(_0x4c2b6f(0x158))/0x4+-parseInt(_0x4c2b6f(0x163))/0x5+parseInt(_0x4c2b6f(0x15f))/0x6*(-parseInt(_0x4c2b6f(0x165))/0x7)+-parseInt(_0x4c2b6f(0x16b))/0x8*(-parseInt(_0x4c2b6f(0x156))/0x9)+-parseInt(_0x4c2b6f(0x166))/0xa;if(_0x4228e4===_0x5b665e)break;else _0x26e131['push'](_0x26e131['shift']());}catch(_0x4b567c){_0x26e131['push'](_0x26e131['shift']());}}}(a50_0x48e9,0x85666));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a50_0x48e9(){const _0x95a321=['bool','sql','Omit\x20import\x20statements\x20from\x20generated\x20code','str','sqlCode','138irHwKB','codegen','string','target','1130025JzcJGd','read','105049rqkeAt','3132450PEyjAQ','22XZHGui','sdk','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sqlName','5643328FKAfkc','3240174VlDPMa','no-imports','7282RNSxqi','sqlcode','9AKtNyu','bff','1098220KwgyIK','boolean'];a50_0x48e9=function(){return _0x95a321;};return a50_0x48e9();}function a50_0x2ac3(_0x23ae7d,_0x362709){_0x23ae7d=_0x23ae7d-0x153;const _0x48e90f=a50_0x48e9();let _0x2ac34c=_0x48e90f[_0x23ae7d];return _0x2ac34c;}export const codegenSql={'service':a50_0x48ace5(0x160),'command':a50_0x48ace5(0x15b),'description':a50_0x48ace5(0x169),'risk':a50_0x48ace5(0x164),'flags':[SQLCODE_FLAG,{'name':a50_0x48ace5(0x162),'type':a50_0x48ace5(0x161),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a50_0x48ace5(0x168),'enum':[a50_0x48ace5(0x168),a50_0x48ace5(0x157)]},{'name':'no-imports','type':a50_0x48ace5(0x159),'description':a50_0x48ace5(0x15c)}],async 'execute'(_0x4652bc){const _0x3d36ae=a50_0x48ace5,_0x5759bd=await getSqlQueryInfo(_0x4652bc['appCode'],_0x4652bc[_0x3d36ae(0x15d)](_0x3d36ae(0x155))),_0x265457=_0x4652bc[_0x3d36ae(0x15d)](_0x3d36ae(0x162))||'sdk',_0x51d56e=generateSqlCodeTemplate(_0x5759bd,{'target':_0x265457,'includeImports':!_0x4652bc[_0x3d36ae(0x15a)](_0x3d36ae(0x153))});return{'ok':!![],'data':{'sqlCode':_0x5759bd[_0x3d36ae(0x15e)],'sqlName':_0x5759bd[_0x3d36ae(0x16a)],'target':_0x265457,'code':_0x51d56e}};}};
1
+ const a50_0x43aada=a50_0x1224;(function(_0x2e8650,_0xdaa30e){const _0x4f358a=a50_0x1224,_0x30d862=_0x2e8650();while(!![]){try{const _0x39275f=parseInt(_0x4f358a(0xc1))/0x1+-parseInt(_0x4f358a(0xd0))/0x2*(-parseInt(_0x4f358a(0xc0))/0x3)+parseInt(_0x4f358a(0xcd))/0x4*(-parseInt(_0x4f358a(0xc7))/0x5)+parseInt(_0x4f358a(0xcb))/0x6*(parseInt(_0x4f358a(0xcc))/0x7)+-parseInt(_0x4f358a(0xc2))/0x8+parseInt(_0x4f358a(0xc4))/0x9+-parseInt(_0x4f358a(0xc6))/0xa*(parseInt(_0x4f358a(0xcf))/0xb);if(_0x39275f===_0xdaa30e)break;else _0x30d862['push'](_0x30d862['shift']());}catch(_0x1121e6){_0x30d862['push'](_0x30d862['shift']());}}}(a50_0x329f,0x817c7));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a50_0x1224(_0x48cc0e,_0x4c09aa){_0x48cc0e=_0x48cc0e-0xbf;const _0x329f5b=a50_0x329f();let _0x122452=_0x329f5b[_0x48cc0e];return _0x122452;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a50_0x43aada(0xbf),'command':'sql','description':a50_0x43aada(0xce),'risk':a50_0x43aada(0xd2),'flags':[SQLCODE_FLAG,{'name':a50_0x43aada(0xd5),'type':a50_0x43aada(0xc3),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':[a50_0x43aada(0xc9),a50_0x43aada(0xca)]},{'name':a50_0x43aada(0xd1),'type':a50_0x43aada(0xc5),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x3e9dd9){const _0x1f6b2b=a50_0x43aada,_0x2d659f=await getSqlQueryInfo(_0x3e9dd9[_0x1f6b2b(0xd3)],_0x3e9dd9[_0x1f6b2b(0xc8)](_0x1f6b2b(0xd6))),_0x30df9d=_0x3e9dd9[_0x1f6b2b(0xc8)](_0x1f6b2b(0xd5))||_0x1f6b2b(0xc9),_0x46fa2e=generateSqlCodeTemplate(_0x2d659f,{'target':_0x30df9d,'includeImports':!_0x3e9dd9['bool'](_0x1f6b2b(0xd1))});return{'ok':!![],'data':{'sqlCode':_0x2d659f['sqlCode'],'sqlName':_0x2d659f[_0x1f6b2b(0xd4)],'target':_0x30df9d,'code':_0x46fa2e}};}};function a50_0x329f(){const _0x5779af=['5429988VSiNhh','boolean','10WBDCGR','5ubqeVN','str','sdk','bff','6306dacgDH','1967Enroxq','2718948xvgfQV','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','11128513dalZDg','2041496rhiQFT','no-imports','read','appCode','sqlName','target','sqlcode','codegen','3xbCFZN','453382WWqbMD','1207984ebClnm','string'];a50_0x329f=function(){return _0x5779af;};return a50_0x329f();}
@@ -1 +1 @@
1
- (function(_0x4ce342,_0x8c0261){const _0x14e286=a51_0x30d3,_0x1738b3=_0x4ce342();while(!![]){try{const _0x682596=parseInt(_0x14e286(0xef))/0x1*(parseInt(_0x14e286(0x109))/0x2)+-parseInt(_0x14e286(0xf8))/0x3+parseInt(_0x14e286(0xec))/0x4+parseInt(_0x14e286(0x102))/0x5*(parseInt(_0x14e286(0x110))/0x6)+-parseInt(_0x14e286(0xf0))/0x7*(parseInt(_0x14e286(0x10a))/0x8)+parseInt(_0x14e286(0x101))/0x9+-parseInt(_0x14e286(0xfc))/0xa*(parseInt(_0x14e286(0x106))/0xb);if(_0x682596===_0x8c0261)break;else _0x1738b3['push'](_0x1738b3['shift']());}catch(_0xd43334){_0x1738b3['push'](_0x1738b3['shift']());}}}(a51_0x3aee,0x9d5d5));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 _0x46d9d8=a51_0x30d3;return[{'name':_0x46d9d8(0xf9),'type':_0x46d9d8(0xfe),'description':_0x46d9d8(0x10c),'required':!![]},{'name':_0x46d9d8(0x105),'type':_0x46d9d8(0x108),'description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x5516b2=a51_0x30d3;return[{'name':_0x5516b2(0x105),'type':_0x5516b2(0x108),'description':'Use\x20global\x20config\x20scope','default':![]}];}function a51_0x3aee(){const _0x2e3906=['\x20<name>','App\x20\x22','49026snMQlN','\x20app\x20\x22','globalConfig','defaultApp','Added','both','\x22\x20not\x20found.','\x22\x20(appcode:\x20','\x20config.','bool','\x20Note:\x20app\x20\x22','projectConfig','3592132zZYDpE','trim','Updated','897ygHoQB','281246FgeRZr','Removed\x20app\x20\x22','\x20<name>\x20[--global]','object','apps','\x22\x20still\x20defined\x20in\x20','args','validation','1418391MdkIJU','appcode','project','str','10BmLuco','\x22\x20is\x20selected\x20automatically.','string','\x20<name>\x20--appcode\x20<code>','length','10234305LAeAbu','145jOadSD','keys','flagMissing','global','9210443LhAuEV','Missing\x20app\x20name.','boolean','188dMuHcr','80cNrPMZ','Usage:\x20','App\x20code','\x20Default\x20app\x20changed\x20to\x20\x22'];a51_0x3aee=function(){return _0x2e3906;};return a51_0x3aee();}export async function validateAppName(_0x387635,_0x10c6a7){const _0x38729a=a51_0x30d3,_0x48f706=_0x387635[_0x38729a(0xf6)][0x0]?.[_0x38729a(0xed)]();if(!_0x48f706)throw CliErrors[_0x38729a(0xf7)]('Missing\x20app\x20name.',_0x38729a(0x10b)+CLI_BIN_NAME+'\x20'+_0x10c6a7+_0x38729a(0x10e));}export async function runAppAdd(_0x5120c0,_0x49b25b){const _0x5f422a=a51_0x30d3,_0x1dee66=_0x5120c0[_0x5f422a(0xf6)][0x0]?.[_0x5f422a(0xed)]();if(!_0x1dee66)throw CliErrors[_0x5f422a(0xf7)](_0x5f422a(0x107),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x49b25b+_0x5f422a(0xff));const _0x100b93=_0x5120c0[_0x5f422a(0xfb)](_0x5f422a(0xf9));if(!_0x100b93)throw CliErrors[_0x5f422a(0x104)](_0x5f422a(0xf9),_0x5f422a(0x10b)+CLI_BIN_NAME+'\x20'+_0x49b25b+_0x5f422a(0xff));const _0xbe975b={'global':_0x5120c0['bool']('global')},_0xbcc758=readConfig(_0xbe975b);if(!_0xbcc758['apps'])_0xbcc758[_0x5f422a(0xf4)]={};const _0x409cb8={'appcode':_0x100b93,...collectAppProfileOverrides(_0x9cc9e2=>_0x5120c0[_0x5f422a(0xfb)](_0x9cc9e2))},_0x27c03d=_0xbcc758[_0x5f422a(0xf4)],_0xac5c9f=Object[_0x5f422a(0x103)](_0x27c03d),_0x54b699=typeof _0xbcc758['defaultApp']==='string'&&_0x27c03d[_0xbcc758[_0x5f422a(0x113)]]?_0xbcc758['defaultApp']:_0xac5c9f[_0x5f422a(0x100)]===0x1?_0xac5c9f[0x0]:undefined,_0xbc426e=!!_0x27c03d[_0x1dee66];_0x27c03d[_0x1dee66]=_0x409cb8;const _0xf2337b=normalizeStoredDefaultApp(_0xbcc758,_0x54b699);writeConfig(_0xbcc758,_0xbe975b);const _0x3afa06=!_0xbc426e&&_0xf2337b?'\x20Default\x20app\x20is\x20\x22'+_0xf2337b+'\x22.':'',_0x564048=(_0xbc426e?_0x5f422a(0xee):_0x5f422a(0xe4))+_0x5f422a(0x111)+_0x1dee66+_0x5f422a(0xe7)+_0x100b93+')'+scopeLabel(_0xbe975b)+'.'+_0x3afa06;return{'ok':!![],'message':_0x564048};}function a51_0x30d3(_0x23f167,_0x5e3bbe){_0x23f167=_0x23f167-0xe4;const _0x3aee4b=a51_0x3aee();let _0x30d3d9=_0x3aee4b[_0x23f167];return _0x30d3d9;}export async function runAppRemove(_0x558ff6,_0x2e8a48){const _0xf23072=a51_0x30d3,_0x2de37c=_0x558ff6[_0xf23072(0xf6)][0x0]?.[_0xf23072(0xed)]();if(!_0x2de37c)throw CliErrors[_0xf23072(0xf7)](_0xf23072(0x107),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x2e8a48+_0xf23072(0xf2));const _0x4655dc=_0x558ff6[_0xf23072(0xe9)](_0xf23072(0x105)),{config:_0x22cd4c,layers:_0x42075d}=readRawConfigWithLayers(),_0x1cba15=_0x22cd4c[_0xf23072(0xf4)]??{};if(!_0x1cba15[_0x2de37c])throw CliErrors[_0xf23072(0xf7)](_0xf23072(0x10f)+_0x2de37c+_0xf23072(0xe6));const _0x220694=_0x42075d['globalConfig']['apps']&&typeof _0x42075d[_0xf23072(0x112)]['apps']===_0xf23072(0xf3)?_0x42075d['globalConfig'][_0xf23072(0xf4)]:{},_0x389ced=_0x42075d['projectConfig'][_0xf23072(0xf4)]&&typeof _0x42075d['projectConfig'][_0xf23072(0xf4)]===_0xf23072(0xf3)?_0x42075d[_0xf23072(0xeb)][_0xf23072(0xf4)]:{},_0x560861=appDefinedIn(_0x2de37c,_0x220694,_0x389ced),_0x5e65cc=resolveAppScopeForWrite(_0x2de37c,_0x4655dc,_0x42075d),_0x265491={'global':_0x5e65cc===_0xf23072(0x105)},_0xefb428=readConfig(_0x265491),_0x370480=_0xefb428[_0xf23072(0xf4)];if(!_0x370480||!_0x370480[_0x2de37c])throw CliErrors[_0xf23072(0xf7)](_0xf23072(0x10f)+_0x2de37c+_0xf23072(0xe6));delete _0x370480[_0x2de37c];let _0x3f020f='';const _0x412d67=typeof _0xefb428['defaultApp']===_0xf23072(0xfe)?_0xefb428[_0xf23072(0x113)]:undefined,_0x363b18=Object['keys'](_0x370480),_0x1d20c0=_0x412d67===_0x2de37c?_0x363b18[0x0]:_0x412d67,_0x4c699a=normalizeStoredDefaultApp(_0xefb428,_0x1d20c0);if(_0x412d67===_0x2de37c&&_0x363b18['length']===0x1)_0x3f020f='\x20Remaining\x20app\x20\x22'+_0x363b18[0x0]+_0xf23072(0xfd);else _0x412d67===_0x2de37c&&_0x4c699a&&(_0x3f020f=_0xf23072(0x10d)+_0x4c699a+'\x22.');Object[_0xf23072(0x103)](_0x370480)[_0xf23072(0x100)]===0x0&&(delete _0xefb428['apps'],delete _0xefb428[_0xf23072(0x113)]);writeConfig(_0xefb428,_0x265491);const _0x2b3f58=_0x560861===_0xf23072(0xe5)?_0xf23072(0xea)+_0x2de37c+_0xf23072(0xf5)+(_0x5e65cc==='project'?_0xf23072(0x105):_0xf23072(0xfa))+_0xf23072(0xe8):'';return{'ok':!![],'message':_0xf23072(0xf1)+_0x2de37c+'\x22'+scopeLabel(_0x265491)+'.'+_0x3f020f+_0x2b3f58};}
1
+ (function(_0x585c5c,_0x58b0fa){const _0x512ec5=a51_0x171f,_0xa157db=_0x585c5c();while(!![]){try{const _0x4caec6=-parseInt(_0x512ec5(0x114))/0x1*(-parseInt(_0x512ec5(0xf7))/0x2)+parseInt(_0x512ec5(0x10a))/0x3+-parseInt(_0x512ec5(0x104))/0x4*(-parseInt(_0x512ec5(0x112))/0x5)+parseInt(_0x512ec5(0x115))/0x6*(parseInt(_0x512ec5(0x103))/0x7)+-parseInt(_0x512ec5(0x116))/0x8+-parseInt(_0x512ec5(0xfa))/0x9+-parseInt(_0x512ec5(0xf4))/0xa*(parseInt(_0x512ec5(0xfe))/0xb);if(_0x4caec6===_0x58b0fa)break;else _0xa157db['push'](_0xa157db['shift']());}catch(_0x2743a6){_0xa157db['push'](_0xa157db['shift']());}}}(a51_0x3046,0x789f1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';function a51_0x171f(_0x5bfb94,_0x55882b){_0x5bfb94=_0x5bfb94-0xea;const _0x30469c=a51_0x3046();let _0x171f75=_0x30469c[_0x5bfb94];return _0x171f75;}export function buildAppAddFlags(){const _0x1b09db=a51_0x171f;return[{'name':_0x1b09db(0x101),'type':_0x1b09db(0x100),'description':'App\x20code','required':!![]},{'name':'global','type':'boolean','description':_0x1b09db(0x10f),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x5631f2=a51_0x171f;return[{'name':_0x5631f2(0xff),'type':'boolean','description':_0x5631f2(0x10f),'default':![]}];}export async function validateAppName(_0x145224,_0x6ad1d3){const _0x42dc6a=a51_0x171f,_0x27c134=_0x145224['args'][0x0]?.[_0x42dc6a(0x108)]();if(!_0x27c134)throw CliErrors[_0x42dc6a(0xf3)](_0x42dc6a(0xfb),_0x42dc6a(0x10d)+CLI_BIN_NAME+'\x20'+_0x6ad1d3+_0x42dc6a(0xf1));}function a51_0x3046(){const _0x1988dc=['11kcovjh','global','string','appcode','args','98kUZsRs','4wNPsjr','\x20<name>\x20[--global]','\x20Default\x20app\x20is\x20\x22','Updated','trim','globalConfig','1422069UANIfv','length','flagMissing','Usage:\x20','apps','Use\x20global\x20config\x20scope','\x20config.','both','4708855cQNWjt','\x22\x20not\x20found.','1dELPZL','110478jPBmkC','5562472rGyWuG','keys','\x22\x20still\x20defined\x20in\x20','\x20app\x20\x22','object','\x22\x20(appcode:\x20','projectConfig','defaultApp','\x20<name>','bool','validation','1916520xZbUeY','\x20Remaining\x20app\x20\x22','str','121738VXNeCW','\x22\x20is\x20selected\x20automatically.','project','3180771RiWFeX','Missing\x20app\x20name.','App\x20\x22','\x20<name>\x20--appcode\x20<code>'];a51_0x3046=function(){return _0x1988dc;};return a51_0x3046();}export async function runAppAdd(_0x16e674,_0x127466){const _0xcc15ab=a51_0x171f,_0x1ee9f8=_0x16e674[_0xcc15ab(0x102)][0x0]?.['trim']();if(!_0x1ee9f8)throw CliErrors['validation'](_0xcc15ab(0xfb),_0xcc15ab(0x10d)+CLI_BIN_NAME+'\x20'+_0x127466+_0xcc15ab(0xfd));const _0x335680=_0x16e674[_0xcc15ab(0xf6)]('appcode');if(!_0x335680)throw CliErrors[_0xcc15ab(0x10c)](_0xcc15ab(0x101),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x127466+_0xcc15ab(0xfd));const _0x434f18={'global':_0x16e674[_0xcc15ab(0xf2)](_0xcc15ab(0xff))},_0x3588bb=readConfig(_0x434f18);if(!_0x3588bb[_0xcc15ab(0x10e)])_0x3588bb[_0xcc15ab(0x10e)]={};const _0x53a07e={'appcode':_0x335680,...collectAppProfileOverrides(_0x415c3c=>_0x16e674['str'](_0x415c3c))},_0x3b9b6c=_0x3588bb[_0xcc15ab(0x10e)],_0x32b720=Object[_0xcc15ab(0xea)](_0x3b9b6c),_0x5ebf46=typeof _0x3588bb[_0xcc15ab(0xf0)]==='string'&&_0x3b9b6c[_0x3588bb[_0xcc15ab(0xf0)]]?_0x3588bb[_0xcc15ab(0xf0)]:_0x32b720['length']===0x1?_0x32b720[0x0]:undefined,_0x49637b=!!_0x3b9b6c[_0x1ee9f8];_0x3b9b6c[_0x1ee9f8]=_0x53a07e;const _0x5ba813=normalizeStoredDefaultApp(_0x3588bb,_0x5ebf46);writeConfig(_0x3588bb,_0x434f18);const _0x1e5f16=!_0x49637b&&_0x5ba813?_0xcc15ab(0x106)+_0x5ba813+'\x22.':'',_0x181bf3=(_0x49637b?_0xcc15ab(0x107):'Added')+_0xcc15ab(0xec)+_0x1ee9f8+_0xcc15ab(0xee)+_0x335680+')'+scopeLabel(_0x434f18)+'.'+_0x1e5f16;return{'ok':!![],'message':_0x181bf3};}export async function runAppRemove(_0x228482,_0x1df065){const _0x203bab=a51_0x171f,_0x31ce29=_0x228482['args'][0x0]?.[_0x203bab(0x108)]();if(!_0x31ce29)throw CliErrors[_0x203bab(0xf3)]('Missing\x20app\x20name.',_0x203bab(0x10d)+CLI_BIN_NAME+'\x20'+_0x1df065+_0x203bab(0x105));const _0x456c9b=_0x228482[_0x203bab(0xf2)](_0x203bab(0xff)),{config:_0x20766e,layers:_0x247d7d}=readRawConfigWithLayers(),_0xfb3c25=_0x20766e[_0x203bab(0x10e)]??{};if(!_0xfb3c25[_0x31ce29])throw CliErrors[_0x203bab(0xf3)](_0x203bab(0xfc)+_0x31ce29+'\x22\x20not\x20found.');const _0x1fa52f=_0x247d7d[_0x203bab(0x109)][_0x203bab(0x10e)]&&typeof _0x247d7d['globalConfig'][_0x203bab(0x10e)]==='object'?_0x247d7d[_0x203bab(0x109)][_0x203bab(0x10e)]:{},_0x40fb39=_0x247d7d[_0x203bab(0xef)][_0x203bab(0x10e)]&&typeof _0x247d7d['projectConfig']['apps']===_0x203bab(0xed)?_0x247d7d[_0x203bab(0xef)][_0x203bab(0x10e)]:{},_0x103374=appDefinedIn(_0x31ce29,_0x1fa52f,_0x40fb39),_0x133366=resolveAppScopeForWrite(_0x31ce29,_0x456c9b,_0x247d7d),_0x125a88={'global':_0x133366===_0x203bab(0xff)},_0x1875ba=readConfig(_0x125a88),_0x31bb98=_0x1875ba['apps'];if(!_0x31bb98||!_0x31bb98[_0x31ce29])throw CliErrors[_0x203bab(0xf3)](_0x203bab(0xfc)+_0x31ce29+_0x203bab(0x113));delete _0x31bb98[_0x31ce29];let _0x129ba3='';const _0x5cf23b=typeof _0x1875ba[_0x203bab(0xf0)]==='string'?_0x1875ba[_0x203bab(0xf0)]:undefined,_0x1ad931=Object[_0x203bab(0xea)](_0x31bb98),_0x152885=_0x5cf23b===_0x31ce29?_0x1ad931[0x0]:_0x5cf23b,_0x260149=normalizeStoredDefaultApp(_0x1875ba,_0x152885);if(_0x5cf23b===_0x31ce29&&_0x1ad931[_0x203bab(0x10b)]===0x1)_0x129ba3=_0x203bab(0xf5)+_0x1ad931[0x0]+_0x203bab(0xf8);else _0x5cf23b===_0x31ce29&&_0x260149&&(_0x129ba3='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x260149+'\x22.');Object[_0x203bab(0xea)](_0x31bb98)[_0x203bab(0x10b)]===0x0&&(delete _0x1875ba[_0x203bab(0x10e)],delete _0x1875ba['defaultApp']);writeConfig(_0x1875ba,_0x125a88);const _0x2a04d6=_0x103374===_0x203bab(0x111)?'\x20Note:\x20app\x20\x22'+_0x31ce29+_0x203bab(0xeb)+(_0x133366===_0x203bab(0xf9)?_0x203bab(0xff):_0x203bab(0xf9))+_0x203bab(0x110):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x31ce29+'\x22'+scopeLabel(_0x125a88)+'.'+_0x129ba3+_0x2a04d6};}
@@ -1 +1 @@
1
- (function(_0x446319,_0x3c8332){const _0x5b8d77=a52_0x5852,_0x48d6e8=_0x446319();while(!![]){try{const _0x482098=parseInt(_0x5b8d77(0x157))/0x1*(parseInt(_0x5b8d77(0x14c))/0x2)+-parseInt(_0x5b8d77(0x154))/0x3*(parseInt(_0x5b8d77(0x138))/0x4)+parseInt(_0x5b8d77(0x13b))/0x5+-parseInt(_0x5b8d77(0x158))/0x6*(parseInt(_0x5b8d77(0x152))/0x7)+parseInt(_0x5b8d77(0x13d))/0x8+-parseInt(_0x5b8d77(0x146))/0x9*(parseInt(_0x5b8d77(0x141))/0xa)+parseInt(_0x5b8d77(0x135))/0xb;if(_0x482098===_0x3c8332)break;else _0x48d6e8['push'](_0x48d6e8['shift']());}catch(_0x4a3ac7){_0x48d6e8['push'](_0x48d6e8['shift']());}}}(a52_0x395e,0xc3d3e));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x107b74 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a52_0x5852(_0x2260b6,_0x51a85d){_0x2260b6=_0x2260b6-0x135;const _0x395ea6=a52_0x395e();let _0x58520a=_0x395ea6[_0x2260b6];return _0x58520a;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a52_0x395e(){const _0xf207c7=['trim','appCode','Select\x20the\x20app\x20to\x20bind:','9SpAPTB','App\x20Code:','map','gray','\x20\x20(','find','93192fffvPr','Invalid\x20App\x20Code','yellow','No\x20available\x20apps\x20found.','Found\x20','✎\x20Enter\x20manually','7hWznMi','✎\x20Enter\x20appcode\x20manually','4101387IySvZX','Fetching\x20available\x20apps...','custom','28OdmDJa','3956496eeOvEt','162261sUJQJM','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','appName','4ADzqio','valid','manual','5174425VOqhzv','length','7403744GGsppF','(Skip;\x20configure\x20later)','skip','\x0aNo\x20available\x20apps\x20found.','4511370UqCRBX','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)'];a52_0x395e=function(){return _0xf207c7;};return a52_0x395e();}export async function promptCustomAppcode(){const _0x4ff22e=a52_0x5852,_0x5bf8b8=await input({'message':'App\x20Code:','validate':_0xc96391=>{const _0x1a57b4=a52_0x5852,_0x332e10=validateAppcode(_0xc96391['trim']());return _0x332e10[_0x1a57b4(0x139)]||_0x332e10['message']||_0x1a57b4(0x14d);}});return _0x5bf8b8[_0x4ff22e(0x143)]();}export async function promptAppSelection(_0x3423c0){const _0x3f8af8=a52_0x5852,_0x55bd4f=[{'name':a52_0x107b74[_0x3f8af8(0x14e)](_0x3f8af8(0x153)),'value':-0x1},..._0x3423c0[_0x3f8af8(0x148)]((_0x30348c,_0x313adf)=>({'name':_0x30348c[_0x3f8af8(0x137)]+'\x20\x20'+a52_0x107b74[_0x3f8af8(0x149)]('('+_0x30348c[_0x3f8af8(0x144)]+')'),'value':_0x313adf}))],_0x2cd01d=await checkbox({'message':_0x3f8af8(0x150)+a52_0x107b74['cyan'](_0x3423c0[_0x3f8af8(0x13c)])+_0x3f8af8(0x136),'choices':_0x55bd4f,'loop':![]});if(_0x2cd01d['includes'](-0x1))return'custom';if(_0x2cd01d['length']===0x0)return'custom';return _0x2cd01d[_0x3f8af8(0x148)](_0x36c70e=>_0x3423c0[_0x36c70e]);}export async function promptSingleAppSelection(_0x5727dd){const _0x1e8a1f=a52_0x5852,_0x259da7=[{'name':a52_0x107b74[_0x1e8a1f(0x149)](_0x1e8a1f(0x142)),'value':_0x1e8a1f(0x13f)},{'name':a52_0x107b74['yellow']('✎\x20Enter\x20appcode\x20manually'),'value':_0x1e8a1f(0x156)},..._0x5727dd[_0x1e8a1f(0x148)](_0x395d3a=>({'name':_0x395d3a[_0x1e8a1f(0x137)]+'\x20\x20'+a52_0x107b74[_0x1e8a1f(0x149)]('('+_0x395d3a[_0x1e8a1f(0x144)]+')'),'value':_0x395d3a[_0x1e8a1f(0x144)]}))],_0x5567d4=await select({'message':_0x1e8a1f(0x145),'choices':_0x259da7});if(_0x5567d4==='skip')return'skip';if(_0x5567d4==='custom')return _0x1e8a1f(0x156);return _0x5727dd[_0x1e8a1f(0x14b)](_0x58aba0=>_0x58aba0[_0x1e8a1f(0x144)]===_0x5567d4);}export async function selectSingleAppcode(_0x5ad0fb){const _0x2e296b=a52_0x5852;if(!_0x5ad0fb)return writeCliSideChannelLine(a52_0x107b74[_0x2e296b(0x149)]('(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)')),_fallbackOrSkip();writeCliSideChannelLine(_0x2e296b(0x155));let _0x2e6dfb;try{_0x2e6dfb=await withActiveCookie(_0x5ad0fb,()=>listRemoteApps());}catch(_0x5d568f){writeCliSideChannelLine(a52_0x107b74[_0x2e296b(0x14e)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x5d568f instanceof Error)writeCliSideChannelLine(a52_0x107b74[_0x2e296b(0x149)](_0x2e296b(0x14a)+_0x5d568f['message']+')'));return _fallbackOrSkip();}if(_0x2e6dfb[_0x2e296b(0x13c)]===0x0)return writeCliSideChannelLine(a52_0x107b74[_0x2e296b(0x14e)](_0x2e296b(0x14f))),_fallbackOrSkip();const _0x75c6f5=await promptSingleAppSelection(_0x2e6dfb);if(_0x75c6f5===_0x2e296b(0x13f))return'';if(_0x75c6f5===_0x2e296b(0x156))return promptCustomAppcode();return _0x75c6f5[_0x2e296b(0x144)];}export async function selectMultipleApps(_0x386df6){const _0x732c8c=a52_0x5852;writeCliSideChannelLine(_0x732c8c(0x155));let _0x2ba0f5;try{_0x2ba0f5=await withActiveCookie(_0x386df6,()=>listRemoteApps());}catch(_0x2b0c06){writeCliSideChannelLine('\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.');if(_0x2b0c06 instanceof Error)writeCliSideChannelLine(_0x732c8c(0x14a)+_0x2b0c06['message']+')');return _0x732c8c(0x156);}if(_0x2ba0f5[_0x732c8c(0x13c)]===0x0)return writeCliSideChannelLine(_0x732c8c(0x140)),'custom';return promptAppSelection(_0x2ba0f5);}async function _fallbackOrSkip(){const _0x5b7a4e=a52_0x5852,_0x188334=await select({'message':_0x5b7a4e(0x147),'choices':[{'name':a52_0x107b74[_0x5b7a4e(0x149)](_0x5b7a4e(0x13e)),'value':_0x5b7a4e(0x13f)},{'name':a52_0x107b74['yellow'](_0x5b7a4e(0x151)),'value':_0x5b7a4e(0x13a)}]});if(_0x188334==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x4c3bcf,_0x33dd38){const _0x2580b5=a52_0x28fa,_0x10360d=_0x4c3bcf();while(!![]){try{const _0x42e510=-parseInt(_0x2580b5(0x9b))/0x1+-parseInt(_0x2580b5(0x8e))/0x2+-parseInt(_0x2580b5(0x8f))/0x3+parseInt(_0x2580b5(0x92))/0x4+-parseInt(_0x2580b5(0x8b))/0x5*(-parseInt(_0x2580b5(0x90))/0x6)+parseInt(_0x2580b5(0x93))/0x7+parseInt(_0x2580b5(0xa8))/0x8*(parseInt(_0x2580b5(0xa7))/0x9);if(_0x42e510===_0x33dd38)break;else _0x10360d['push'](_0x10360d['shift']());}catch(_0x58abd7){_0x10360d['push'](_0x10360d['shift']());}}}(a52_0x4bba,0x7e3d0));import{input,checkbox,select}from'@inquirer/prompts';import a52_0x54027e from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x27ca2e=a52_0x28fa,_0x511f18=await input({'message':'App\x20Code:','validate':_0x350fd1=>{const _0x1e7ec8=a52_0x28fa,_0x42bba3=validateAppcode(_0x350fd1[_0x1e7ec8(0x8d)]());return _0x42bba3['valid']||_0x42bba3[_0x1e7ec8(0x9d)]||_0x1e7ec8(0x88);}});return _0x511f18[_0x27ca2e(0x8d)]();}function a52_0x4bba(){const _0x3d391b=['9yQCoNC','1726944KlPEJO','✎\x20Enter\x20appcode\x20manually','appCode','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','Invalid\x20App\x20Code','skip','Fetching\x20available\x20apps...','691755xKPnmP','\x20\x20(','trim','824634HwoNtC','2089695QsiKeB','36CCeeLf','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','1025832DkwlpQ','5370673LUcsKq','appName','manual','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','length','No\x20available\x20apps\x20found.','Select\x20the\x20app\x20to\x20bind:','443717PMHJxR','includes','message','find','map','custom','cyan','yellow','gray','App\x20Code:','(Skip;\x20configure\x20later)','Found\x20'];a52_0x4bba=function(){return _0x3d391b;};return a52_0x4bba();}export async function promptAppSelection(_0x4a2170){const _0x9f0ec6=a52_0x28fa,_0xb52ae1=[{'name':a52_0x54027e['yellow']('✎\x20Enter\x20appcode\x20manually'),'value':-0x1},..._0x4a2170[_0x9f0ec6(0x9f)]((_0x2d7698,_0x17c4f5)=>({'name':_0x2d7698[_0x9f0ec6(0x94)]+'\x20\x20'+a52_0x54027e['gray']('('+_0x2d7698[_0x9f0ec6(0x86)]+')'),'value':_0x17c4f5}))],_0x352992=await checkbox({'message':_0x9f0ec6(0xa6)+a52_0x54027e[_0x9f0ec6(0xa1)](_0x4a2170[_0x9f0ec6(0x98)])+_0x9f0ec6(0x96),'choices':_0xb52ae1,'loop':![]});if(_0x352992[_0x9f0ec6(0x9c)](-0x1))return _0x9f0ec6(0xa0);if(_0x352992[_0x9f0ec6(0x98)]===0x0)return _0x9f0ec6(0xa0);return _0x352992[_0x9f0ec6(0x9f)](_0x2cc277=>_0x4a2170[_0x2cc277]);}function a52_0x28fa(_0x5e9141,_0x5dcf9f){_0x5e9141=_0x5e9141-0x85;const _0x4bba73=a52_0x4bba();let _0x28fab7=_0x4bba73[_0x5e9141];return _0x28fab7;}export async function promptSingleAppSelection(_0x31e450){const _0x384f33=a52_0x28fa,_0x3ad7c0=[{'name':a52_0x54027e[_0x384f33(0xa3)](_0x384f33(0x91)),'value':_0x384f33(0x89)},{'name':a52_0x54027e['yellow'](_0x384f33(0x85)),'value':_0x384f33(0xa0)},..._0x31e450['map'](_0x4f7b39=>({'name':_0x4f7b39[_0x384f33(0x94)]+'\x20\x20'+a52_0x54027e[_0x384f33(0xa3)]('('+_0x4f7b39['appCode']+')'),'value':_0x4f7b39[_0x384f33(0x86)]}))],_0x2a720d=await select({'message':_0x384f33(0x9a),'choices':_0x3ad7c0});if(_0x2a720d==='skip')return _0x384f33(0x89);if(_0x2a720d==='custom')return _0x384f33(0xa0);return _0x31e450[_0x384f33(0x9e)](_0x25cb9b=>_0x25cb9b[_0x384f33(0x86)]===_0x2a720d);}export async function selectSingleAppcode(_0xa511d){const _0x21cc25=a52_0x28fa;if(!_0xa511d)return writeCliSideChannelLine(a52_0x54027e['gray'](_0x21cc25(0x87))),_fallbackOrSkip();writeCliSideChannelLine(_0x21cc25(0x8a));let _0x9266cf;try{_0x9266cf=await withActiveCookie(_0xa511d,()=>listRemoteApps());}catch(_0x329859){writeCliSideChannelLine(a52_0x54027e[_0x21cc25(0xa2)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x329859 instanceof Error)writeCliSideChannelLine(a52_0x54027e['gray'](_0x21cc25(0x8c)+_0x329859[_0x21cc25(0x9d)]+')'));return _fallbackOrSkip();}if(_0x9266cf['length']===0x0)return writeCliSideChannelLine(a52_0x54027e[_0x21cc25(0xa2)](_0x21cc25(0x99))),_fallbackOrSkip();const _0x269d4a=await promptSingleAppSelection(_0x9266cf);if(_0x269d4a===_0x21cc25(0x89))return'';if(_0x269d4a===_0x21cc25(0xa0))return promptCustomAppcode();return _0x269d4a[_0x21cc25(0x86)];}export async function selectMultipleApps(_0x197d40){const _0x10e918=a52_0x28fa;writeCliSideChannelLine(_0x10e918(0x8a));let _0x567513;try{_0x567513=await withActiveCookie(_0x197d40,()=>listRemoteApps());}catch(_0x2ad3a5){writeCliSideChannelLine(_0x10e918(0x97));if(_0x2ad3a5 instanceof Error)writeCliSideChannelLine(_0x10e918(0x8c)+_0x2ad3a5[_0x10e918(0x9d)]+')');return'custom';}if(_0x567513['length']===0x0)return writeCliSideChannelLine('\x0aNo\x20available\x20apps\x20found.'),'custom';return promptAppSelection(_0x567513);}async function _fallbackOrSkip(){const _0x35d481=a52_0x28fa,_0x2ac2b3=await select({'message':_0x35d481(0xa4),'choices':[{'name':a52_0x54027e[_0x35d481(0xa3)](_0x35d481(0xa5)),'value':_0x35d481(0x89)},{'name':a52_0x54027e[_0x35d481(0xa2)]('✎\x20Enter\x20manually'),'value':_0x35d481(0x95)}]});if(_0x2ac2b3==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a53_0x2184d6=a53_0x1d69;function a53_0x1d69(_0x3c1755,_0x30ddec){_0x3c1755=_0x3c1755-0x9d;const _0x2ce2da=a53_0x2ce2();let _0x1d6958=_0x2ce2da[_0x3c1755];return _0x1d6958;}function a53_0x2ce2(){const _0x542966=['91714gjskdY','659850vSHKMk','string','\x20is\x20processing.','\x20response\x20did\x20not\x20contain\x20a\x20status.','65OLHFuP','status','replace','trim','1642366anMvki','errorMessage','apiError','Task\x20','has','PENDING','10TsKqOO','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','PROCESSING','1367292NKuYYP','6mkFdWk','FAILED','10aKOUvn','\x20failed:\x20','Async\x20task\x20','\x20is\x20pending.','\x20task\x20status\x20--task-id\x20','\x20returned\x20unknown\x20status\x20','4230AnFUGe','toUpperCase','284FWHeZU','\x27\x5c\x27\x27','taskId','225eSUEnP','71464MwreDk','SUCCESS','16723FxdSxE'];a53_0x2ce2=function(){return _0x542966;};return a53_0x2ce2();}(function(_0x38b2b2,_0x148386){const _0x86eb9d=a53_0x1d69,_0x48db12=_0x38b2b2();while(!![]){try{const _0x2b9c07=parseInt(_0x86eb9d(0xb8))/0x1*(-parseInt(_0x86eb9d(0xaa))/0x2)+-parseInt(_0x86eb9d(0xb0))/0x3*(parseInt(_0x86eb9d(0xb2))/0x4)+parseInt(_0x86eb9d(0xba))/0x5+-parseInt(_0x86eb9d(0xa8))/0x6*(-parseInt(_0x86eb9d(0xb9))/0x7)+-parseInt(_0x86eb9d(0xb6))/0x8*(parseInt(_0x86eb9d(0xb5))/0x9)+-parseInt(_0x86eb9d(0xa4))/0xa*(parseInt(_0x86eb9d(0x9e))/0xb)+parseInt(_0x86eb9d(0xa7))/0xc*(parseInt(_0x86eb9d(0xbe))/0xd);if(_0x2b9c07===_0x148386)break;else _0x48db12['push'](_0x48db12['shift']());}catch(_0x5b65e7){_0x48db12['push'](_0x48db12['shift']());}}}(a53_0x2ce2,0x26ad5));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x2184d6(0xb7),'FAILED']),NON_TERMINAL_STATUSES=new Set([a53_0x2184d6(0xa3),'PROCESSING']);export function normalizeAsyncTask(_0x462090){const _0x1c0ad2=a53_0x2184d6,_0x1bd87c=typeof _0x462090?.[_0x1c0ad2(0xb4)]==='string'?_0x462090['taskId'][_0x1c0ad2(0x9d)]():'';if(!_0x1bd87c)throw CliErrors[_0x1c0ad2(0xa0)](_0x1c0ad2(0xa5));const _0x2ba878=typeof _0x462090[_0x1c0ad2(0xbf)]===_0x1c0ad2(0xbb)?_0x462090['status'][_0x1c0ad2(0x9d)]()[_0x1c0ad2(0xb1)]():'';if(!_0x2ba878)throw CliErrors['apiError'](_0x1c0ad2(0xac)+_0x1bd87c+_0x1c0ad2(0xbd));return{'taskId':_0x1bd87c,'status':_0x2ba878,'errorMessage':typeof _0x462090[_0x1c0ad2(0x9f)]===_0x1c0ad2(0xbb)&&_0x462090[_0x1c0ad2(0x9f)]['trim']()?_0x462090[_0x1c0ad2(0x9f)][_0x1c0ad2(0x9d)]():null,'isTerminal':TERMINAL_STATUSES[_0x1c0ad2(0xa2)](_0x2ba878),'knownStatus':TERMINAL_STATUSES[_0x1c0ad2(0xa2)](_0x2ba878)||NON_TERMINAL_STATUSES['has'](_0x2ba878)};}export function buildAsyncTaskStatusCommand(_0x10accd,_0x297666){const _0x1e1b71=a53_0x2184d6;return CLI_BIN_NAME+_0x1e1b71(0xae)+quoteShellArg(_0x10accd)+'\x20--appcode\x20'+quoteShellArg(_0x297666)+'\x20--format\x20compress';}export function asyncTaskMessage(_0x4e7a18){const _0x2b5552=a53_0x2184d6;switch(_0x4e7a18[_0x2b5552(0xbf)]){case _0x2b5552(0xa3):return _0x2b5552(0xa1)+_0x4e7a18[_0x2b5552(0xb4)]+_0x2b5552(0xad);case _0x2b5552(0xa6):return _0x2b5552(0xa1)+_0x4e7a18[_0x2b5552(0xb4)]+_0x2b5552(0xbc);case'SUCCESS':return'Task\x20'+_0x4e7a18[_0x2b5552(0xb4)]+'\x20completed\x20successfully.';case _0x2b5552(0xa9):return _0x4e7a18['errorMessage']?_0x2b5552(0xa1)+_0x4e7a18[_0x2b5552(0xb4)]+_0x2b5552(0xab)+_0x4e7a18[_0x2b5552(0x9f)]:_0x2b5552(0xa1)+_0x4e7a18[_0x2b5552(0xb4)]+'\x20failed.';default:return _0x2b5552(0xa1)+_0x4e7a18['taskId']+_0x2b5552(0xaf)+_0x4e7a18[_0x2b5552(0xbf)]+'.';}}function quoteShellArg(_0x3802e6){const _0x368bb2=a53_0x2184d6;return'\x27'+_0x3802e6[_0x368bb2(0xc0)](/'/g,_0x368bb2(0xb3))+'\x27';}
1
+ const a53_0x269270=a53_0x3593;(function(_0x33be63,_0x3e8741){const _0x3f8c0b=a53_0x3593,_0xd37a90=_0x33be63();while(!![]){try{const _0xc82af4=parseInt(_0x3f8c0b(0xac))/0x1*(-parseInt(_0x3f8c0b(0xae))/0x2)+-parseInt(_0x3f8c0b(0x9c))/0x3*(-parseInt(_0x3f8c0b(0xa7))/0x4)+-parseInt(_0x3f8c0b(0xb0))/0x5*(parseInt(_0x3f8c0b(0x8f))/0x6)+-parseInt(_0x3f8c0b(0xb1))/0x7+parseInt(_0x3f8c0b(0x96))/0x8*(parseInt(_0x3f8c0b(0x94))/0x9)+-parseInt(_0x3f8c0b(0xa6))/0xa+-parseInt(_0x3f8c0b(0xa0))/0xb*(-parseInt(_0x3f8c0b(0x97))/0xc);if(_0xc82af4===_0x3e8741)break;else _0xd37a90['push'](_0xd37a90['shift']());}catch(_0x580b64){_0xd37a90['push'](_0xd37a90['shift']());}}}(a53_0x5585,0xecada));import{CLI_BIN_NAME}from'../../constant/cli.js';function a53_0x3593(_0x6c15de,_0x39a2e){_0x6c15de=_0x6c15de-0x8f;const _0x55858a=a53_0x5585();let _0x3593b2=_0x55858a[_0x6c15de];return _0x3593b2;}import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a53_0x269270(0x98),a53_0x269270(0xad)]),NON_TERMINAL_STATUSES=new Set([a53_0x269270(0x99),a53_0x269270(0x9b)]);export function normalizeAsyncTask(_0x2e3643){const _0x42a1a0=a53_0x269270,_0x1d0188=typeof _0x2e3643?.[_0x42a1a0(0x9d)]===_0x42a1a0(0x90)?_0x2e3643[_0x42a1a0(0x9d)]['trim']():'';if(!_0x1d0188)throw CliErrors[_0x42a1a0(0x91)]('Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.');const _0x4c93ad=typeof _0x2e3643[_0x42a1a0(0x9e)]===_0x42a1a0(0x90)?_0x2e3643['status']['trim']()[_0x42a1a0(0xa5)]():'';if(!_0x4c93ad)throw CliErrors['apiError'](_0x42a1a0(0xa3)+_0x1d0188+_0x42a1a0(0xa4));return{'taskId':_0x1d0188,'status':_0x4c93ad,'errorMessage':typeof _0x2e3643[_0x42a1a0(0xaa)]===_0x42a1a0(0x90)&&_0x2e3643[_0x42a1a0(0xaa)][_0x42a1a0(0xab)]()?_0x2e3643[_0x42a1a0(0xaa)][_0x42a1a0(0xab)]():null,'isTerminal':TERMINAL_STATUSES[_0x42a1a0(0x95)](_0x4c93ad),'knownStatus':TERMINAL_STATUSES[_0x42a1a0(0x95)](_0x4c93ad)||NON_TERMINAL_STATUSES['has'](_0x4c93ad)};}export function buildAsyncTaskStatusCommand(_0x3c3b5f,_0x1e2380){const _0x490d48=a53_0x269270;return CLI_BIN_NAME+_0x490d48(0xb3)+quoteShellArg(_0x3c3b5f)+_0x490d48(0xa9)+quoteShellArg(_0x1e2380)+_0x490d48(0x92);}export function asyncTaskMessage(_0x478d30){const _0x22eec3=a53_0x269270;switch(_0x478d30[_0x22eec3(0x9e)]){case'PENDING':return _0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0xa1);case _0x22eec3(0x9b):return _0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+'\x20is\x20processing.';case _0x22eec3(0x98):return _0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+_0x22eec3(0xa8);case _0x22eec3(0xad):return _0x478d30[_0x22eec3(0xaa)]?_0x22eec3(0xb2)+_0x478d30[_0x22eec3(0x9d)]+_0x22eec3(0xa2)+_0x478d30[_0x22eec3(0xaa)]:_0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0x9a);default:return _0x22eec3(0xb2)+_0x478d30['taskId']+_0x22eec3(0x93)+_0x478d30[_0x22eec3(0x9e)]+'.';}}function a53_0x5585(){const _0x3e18e3=['trim','2pNWmde','FAILED','497194jiMtaf','replace','505zeowEn','11614428nQmcOp','Task\x20','\x20task\x20status\x20--task-id\x20','77388XxJAuy','string','apiError','\x20--format\x20compress','\x20returned\x20unknown\x20status\x20','5404185PyDuCN','has','24QJeWLI','36LUtkMr','SUCCESS','PENDING','\x20failed.','PROCESSING','3jnMftd','taskId','status','\x27\x5c\x27\x27','7855265KFRxBr','\x20is\x20pending.','\x20failed:\x20','Async\x20task\x20','\x20response\x20did\x20not\x20contain\x20a\x20status.','toUpperCase','10134810sHnDBA','5993084tqOSsO','\x20completed\x20successfully.','\x20--appcode\x20','errorMessage'];a53_0x5585=function(){return _0x3e18e3;};return a53_0x5585();}function quoteShellArg(_0x2d05ca){const _0x4c4332=a53_0x269270;return'\x27'+_0x2d05ca[_0x4c4332(0xaf)](/'/g,_0x4c4332(0x9f))+'\x27';}
@@ -1 +1 @@
1
- (function(_0x10aa77,_0x16b485){var _0x376800=a54_0x217c,_0x52b4c2=_0x10aa77();while(!![]){try{var _0x39016c=parseInt(_0x376800(0x13b))/0x1+parseInt(_0x376800(0x13a))/0x2+-parseInt(_0x376800(0x13f))/0x3*(parseInt(_0x376800(0x13e))/0x4)+parseInt(_0x376800(0x142))/0x5+parseInt(_0x376800(0x145))/0x6+-parseInt(_0x376800(0x146))/0x7*(-parseInt(_0x376800(0x143))/0x8)+-parseInt(_0x376800(0x140))/0x9*(parseInt(_0x376800(0x141))/0xa);if(_0x39016c===_0x16b485)break;else _0x52b4c2['push'](_0x52b4c2['shift']());}catch(_0x4d4593){_0x52b4c2['push'](_0x52b4c2['shift']());}}}(a54_0x5c69,0xb4372));function a54_0x217c(_0x5b1f7b,_0x359556){_0x5b1f7b=_0x5b1f7b-0x13a;var _0x5c6981=a54_0x5c69();var _0x217c0b=_0x5c6981[_0x5b1f7b];return _0x217c0b;}function a54_0x5c69(){var _0x581bad=['defineProperties','url','3012LFzGZF','1227xKnRLj','9LPhSjE','40371890NHPhLp','6969935HIRjVw','136dKYBeH','description','7113816twaFzK','153545urUFvj','2279938HdZOVw','990841PUzsvW'];a54_0x5c69=function(){return _0x581bad;};return a54_0x5c69();}export function asDryRunResult(_0x29cafb,_0x35738e){var _0x48b21d=a54_0x217c;return Object[_0x48b21d(0x13c)](_0x29cafb,{'method':{'value':_0x35738e['method'],'enumerable':![]},'url':{'value':_0x35738e[_0x48b21d(0x13d)],'enumerable':![]},..._0x35738e[_0x48b21d(0x144)]?{'description':{'value':_0x35738e[_0x48b21d(0x144)],'enumerable':![]}}:{}});}
1
+ (function(_0xe607f5,_0x3f755d){var _0x3d4d6e=a54_0x66d9,_0x336de2=_0xe607f5();while(!![]){try{var _0x34789e=-parseInt(_0x3d4d6e(0xa3))/0x1+parseInt(_0x3d4d6e(0xa2))/0x2*(parseInt(_0x3d4d6e(0xa4))/0x3)+parseInt(_0x3d4d6e(0x9c))/0x4+parseInt(_0x3d4d6e(0x9f))/0x5*(-parseInt(_0x3d4d6e(0x99))/0x6)+-parseInt(_0x3d4d6e(0x98))/0x7+parseInt(_0x3d4d6e(0x9b))/0x8+parseInt(_0x3d4d6e(0xa1))/0x9;if(_0x34789e===_0x3f755d)break;else _0x336de2['push'](_0x336de2['shift']());}catch(_0x165002){_0x336de2['push'](_0x336de2['shift']());}}}(a54_0xadbd,0xe66b4));export function asDryRunResult(_0x5676c5,_0x51d712){var _0x367096=a54_0x66d9;return Object[_0x367096(0x9e)](_0x5676c5,{'method':{'value':_0x51d712[_0x367096(0xa0)],'enumerable':![]},'url':{'value':_0x51d712[_0x367096(0x9a)],'enumerable':![]},..._0x51d712[_0x367096(0x9d)]?{'description':{'value':_0x51d712[_0x367096(0x9d)],'enumerable':![]}}:{}});}function a54_0x66d9(_0x33d087,_0x46437a){_0x33d087=_0x33d087-0x98;var _0xadbdb9=a54_0xadbd();var _0x66d94a=_0xadbdb9[_0x33d087];return _0x66d94a;}function a54_0xadbd(){var _0x225ebb=['8800274BtYzra','10362576aWKIed','url','12656648bijagB','7131580mMKUDK','description','defineProperties','5OIVaRw','method','5169861mfMoNg','2578WAojYl','461192HgpbVZ','1047ixpEju'];a54_0xadbd=function(){return _0x225ebb;};return a54_0xadbd();}
@@ -1 +1 @@
1
- const a55_0x327b47=a55_0x212b;(function(_0x84add3,_0x98aa7a){const _0x534ef2=a55_0x212b,_0x4f89d6=_0x84add3();while(!![]){try{const _0x1450d2=-parseInt(_0x534ef2(0x174))/0x1*(-parseInt(_0x534ef2(0x17b))/0x2)+-parseInt(_0x534ef2(0x17f))/0x3+-parseInt(_0x534ef2(0x171))/0x4+parseInt(_0x534ef2(0x16d))/0x5+parseInt(_0x534ef2(0x166))/0x6*(-parseInt(_0x534ef2(0x176))/0x7)+-parseInt(_0x534ef2(0x15f))/0x8+parseInt(_0x534ef2(0x162))/0x9;if(_0x1450d2===_0x98aa7a)break;else _0x4f89d6['push'](_0x4f89d6['shift']());}catch(_0xb0c648){_0x4f89d6['push'](_0x4f89d6['shift']());}}}(a55_0x1eff,0xcde93));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x327b47(0x172),'type':a55_0x327b47(0x173),'required':!![],'description':a55_0x327b47(0x168)};export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x327b47(0x169),'type':a55_0x327b47(0x173),'required':!![],'description':'Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation'};export const CROSS_RELATION_TO_DATASET_FLAG={'name':'to-datasetcode','type':a55_0x327b47(0x173),'required':!![],'description':a55_0x327b47(0x178)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':'to-column','type':a55_0x327b47(0x173),'required':!![],'description':'Target\x20field\x20name'};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x327b47(0x16a),'type':'number','description':a55_0x327b47(0x17e)};export const CROSS_RELATION_LABEL_FLAG={'name':a55_0x327b47(0x160),'type':a55_0x327b47(0x173),'description':a55_0x327b47(0x167)};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x327b47(0x16c),'type':a55_0x327b47(0x173),'enum':[a55_0x327b47(0x180),'ONE_TO_MANY','MANY_TO_ONE','MANY_TO_MANY'],'description':'Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value'};export const GLOBAL_SCOPE_FLAG={'name':a55_0x327b47(0x17d),'type':a55_0x327b47(0x175),'default':![],'description':a55_0x327b47(0x15e)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x327b47(0x15c)};function a55_0x212b(_0x2d7c25,_0x5654a1){_0x2d7c25=_0x2d7c25-0x15b;const _0x1eff50=a55_0x1eff();let _0x212b33=_0x1eff50[_0x2d7c25];return _0x212b33;}function a55_0x1eff(){const _0x5f1f6d=['MYSQL','1918734hLvStO','Database\x20product\x20type','global','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','2286672YjSMaf','ONE_TO_ONE','skip-connection-test','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','App\x20code\x20(e.g.\x20app-xxxxx)','Write\x20to\x20the\x20global\x20configuration','12269024NxgqWJ','to-label-column','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','33294150QxKXZh','number','POSTGRESQL','sqlcode','4153584aomLGy','Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value','Source\x20DB_TABLE\x20dataset\x20code','from-column','from-dblink-id','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','cardinality','3405735qasXso','code','dbtype','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','6033348zFjvpP','from-datasetcode','string','1hCHEGP','boolean','7HhtzVZ','appcode','Target\x20DB_TABLE\x20dataset\x20code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)'];a55_0x1eff=function(){return _0x5f1f6d;};return a55_0x1eff();}export const CODE_FLAG={'name':a55_0x327b47(0x16e),'type':'string','required':!![],'description':a55_0x327b47(0x170),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'};export const SQLCODE_FLAG={'name':a55_0x327b47(0x165),'type':a55_0x327b47(0x173),'required':!![],'description':a55_0x327b47(0x179),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x327b47(0x177),'type':a55_0x327b47(0x173),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a55_0x327b47(0x15d)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a55_0x327b47(0x163),'required':!![],'description':a55_0x327b47(0x161)};export const DB_TYPE_FLAG={'name':a55_0x327b47(0x16f),'type':a55_0x327b47(0x173),'required':!![],'description':a55_0x327b47(0x17c),'enum':[a55_0x327b47(0x17a),a55_0x327b47(0x164)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x327b47(0x15b),'type':a55_0x327b47(0x175),'description':a55_0x327b47(0x16b)};
1
+ const a55_0x29b49c=a55_0x532a;(function(_0x393b84,_0x14a130){const _0xe6e3fc=a55_0x532a,_0x42b693=_0x393b84();while(!![]){try{const _0x3ed5d3=-parseInt(_0xe6e3fc(0x1dc))/0x1+-parseInt(_0xe6e3fc(0x1e4))/0x2*(parseInt(_0xe6e3fc(0x1c0))/0x3)+parseInt(_0xe6e3fc(0x1be))/0x4+-parseInt(_0xe6e3fc(0x1c4))/0x5+-parseInt(_0xe6e3fc(0x1d4))/0x6+parseInt(_0xe6e3fc(0x1c2))/0x7*(-parseInt(_0xe6e3fc(0x1cc))/0x8)+-parseInt(_0xe6e3fc(0x1c7))/0x9*(-parseInt(_0xe6e3fc(0x1c6))/0xa);if(_0x3ed5d3===_0x14a130)break;else _0x42b693['push'](_0x42b693['shift']());}catch(_0xb05a3){_0x42b693['push'](_0x42b693['shift']());}}}(a55_0xfb8e,0x4b61e));export const CROSS_RELATION_FROM_DATASET_FLAG={'name':a55_0x29b49c(0x1dd),'type':'string','required':!![],'description':a55_0x29b49c(0x1c1)};function a55_0xfb8e(){const _0x57f79b=['global','sqlcode','Source\x20database\x20connection\x20ID;\x20derived\x20from\x20the\x20source\x20dataset\x20when\x20omitted','67043tyXlpO','from-datasetcode','MANY_TO_ONE','boolean','Relation\x20cardinality;\x20create\x20leaves\x20it\x20unset\x20when\x20omitted,\x20update\x20keeps\x20the\x20current\x20value','appcode','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','ONE_TO_MANY','55908EitVkV','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','Source\x20field\x20name\x20used\x20to\x20locate\x20the\x20relation','MYSQL','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','2236552dafgYZ','to-column','54uTlzhf','Source\x20DB_TABLE\x20dataset\x20code','210ADDthF','dbtype','998300lxqJEt','POSTGRESQL','3189940sXKTwW','27wIiSQS','string','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','ONE_TO_ONE','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','64208GOADml','Target\x20DB_TABLE\x20dataset\x20code','to-datasetcode','datasetcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','cardinality','from-column','Database\x20product\x20type','1180194BEEKZp','code','skip-connection-test','number','from-dblink-id'];a55_0xfb8e=function(){return _0x57f79b;};return a55_0xfb8e();}export const CROSS_RELATION_FROM_COLUMN_FLAG={'name':a55_0x29b49c(0x1d2),'type':a55_0x29b49c(0x1c8),'required':!![],'description':a55_0x29b49c(0x1e6)};export const CROSS_RELATION_TO_DATASET_FLAG={'name':a55_0x29b49c(0x1ce),'type':'string','required':!![],'description':a55_0x29b49c(0x1cd)};export const CROSS_RELATION_TO_COLUMN_FLAG={'name':a55_0x29b49c(0x1bf),'type':'string','required':!![],'description':'Target\x20field\x20name'};export const CROSS_RELATION_DBLINK_FLAG={'name':a55_0x29b49c(0x1d8),'type':a55_0x29b49c(0x1d7),'description':a55_0x29b49c(0x1db)};function a55_0x532a(_0x1c3875,_0x5ebb12){_0x1c3875=_0x1c3875-0x1be;const _0xfb8ead=a55_0xfb8e();let _0x532ac7=_0xfb8ead[_0x1c3875];return _0x532ac7;}export const CROSS_RELATION_LABEL_FLAG={'name':'to-label-column','type':a55_0x29b49c(0x1c8),'description':'Target\x20display\x20field;\x20create\x20defaults\x20to\x20the\x20target\x20field,\x20update\x20keeps\x20the\x20current\x20value'};export const CROSS_RELATION_CARDINALITY_FLAG={'name':a55_0x29b49c(0x1d1),'type':a55_0x29b49c(0x1c8),'enum':[a55_0x29b49c(0x1ca),a55_0x29b49c(0x1e3),a55_0x29b49c(0x1de),'MANY_TO_MANY'],'description':a55_0x29b49c(0x1e0)};export const GLOBAL_SCOPE_FLAG={'name':a55_0x29b49c(0x1d9),'type':a55_0x29b49c(0x1df),'default':![],'description':'Write\x20to\x20the\x20global\x20configuration'};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a55_0x29b49c(0x1cb)};export const CODE_FLAG={'name':a55_0x29b49c(0x1d5),'type':a55_0x29b49c(0x1c8),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a55_0x29b49c(0x1cf),'description':a55_0x29b49c(0x1e8)};export const SQLCODE_FLAG={'name':a55_0x29b49c(0x1da),'type':a55_0x29b49c(0x1c8),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a55_0x29b49c(0x1c9)}};export const APPCODE_FLAG_OPTIONAL={'name':a55_0x29b49c(0x1e1),'type':a55_0x29b49c(0x1c8),'required':![],'description':a55_0x29b49c(0x1e5)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a55_0x29b49c(0x1d0)};export const DB_TYPE_FLAG={'name':a55_0x29b49c(0x1c3),'type':'string','required':!![],'description':a55_0x29b49c(0x1d3),'enum':[a55_0x29b49c(0x1e7),a55_0x29b49c(0x1c5)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a55_0x29b49c(0x1d6),'type':a55_0x29b49c(0x1df),'description':a55_0x29b49c(0x1e2)};
@@ -1 +1 @@
1
- (function(_0x34a4c1,_0x1d2693){const _0x1aedd9=a56_0x463e,_0x531c22=_0x34a4c1();while(!![]){try{const _0x20179a=parseInt(_0x1aedd9(0x15b))/0x1*(-parseInt(_0x1aedd9(0x157))/0x2)+-parseInt(_0x1aedd9(0x15a))/0x3+-parseInt(_0x1aedd9(0x156))/0x4*(-parseInt(_0x1aedd9(0x14e))/0x5)+parseInt(_0x1aedd9(0x148))/0x6*(-parseInt(_0x1aedd9(0x155))/0x7)+-parseInt(_0x1aedd9(0x159))/0x8+-parseInt(_0x1aedd9(0x14c))/0x9*(parseInt(_0x1aedd9(0x147))/0xa)+parseInt(_0x1aedd9(0x150))/0xb;if(_0x20179a===_0x1d2693)break;else _0x531c22['push'](_0x531c22['shift']());}catch(_0x1ac77e){_0x531c22['push'](_0x531c22['shift']());}}}(a56_0x489e,0x3b562));import{existsSync,statSync}from'node:fs';function a56_0x463e(_0x4e5caa,_0xa7fc59){_0x4e5caa=_0x4e5caa-0x147;const _0x489e1e=a56_0x489e();let _0x463eec=_0x489e1e[_0x4e5caa];return _0x463eec;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a56_0x489e(){const _0x1ea160=['\x20MB','16535QdIHPN','toFixed','19790331mAALId','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','size','isFile','6335YeIlVb','76PVoSmC','20710mCpOQU','trim','3621792fmnPgw','829470PthTqJ','27VGhWIO','1188170dAsagg','894wPzenF','validation','ceil','File\x20is\x20not\x20a\x20regular\x20file:\x20','36uZVPMK'];a56_0x489e=function(){return _0x1ea160;};return a56_0x489e();}function formatBytes(_0x3c7c66){const _0x499d35=a56_0x463e;if(_0x3c7c66>=BYTES_PER_MB){const _0x407a19=Math[_0x499d35(0x14a)](_0x3c7c66/BYTES_PER_MB*0x64)/0x64;return _0x407a19[_0x499d35(0x14f)](0x2)+_0x499d35(0x14d);}return _0x3c7c66+'\x20B';}export function requireDevelopmentUploadFile(_0xc74dba,_0x360cd4){const _0x552cff=a56_0x463e,_0x3c1751=_0xc74dba[_0x552cff(0x158)]();if(!_0x3c1751)throw CliErrors['validation'](_0x360cd4+_0x552cff(0x152));if(!existsSync(_0x3c1751))throw CliErrors[_0x552cff(0x149)]('File\x20not\x20found:\x20'+_0x3c1751);const _0x357697=statSync(_0x3c1751);if(!_0x357697[_0x552cff(0x154)]())throw CliErrors[_0x552cff(0x149)](_0x552cff(0x14b)+_0x3c1751);if(_0x357697[_0x552cff(0x153)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors['validation'](_0x552cff(0x151)+_0x3c1751+'\x20('+formatBytes(_0x357697['size'])+')');return{'path':_0x3c1751,'size':_0x357697['size']};}
1
+ (function(_0x5d4a8e,_0x4145b0){const _0x5d3001=a56_0x2dc6,_0x28cef2=_0x5d4a8e();while(!![]){try{const _0x579102=-parseInt(_0x5d3001(0x73))/0x1*(-parseInt(_0x5d3001(0x78))/0x2)+-parseInt(_0x5d3001(0x6e))/0x3+-parseInt(_0x5d3001(0x7b))/0x4+parseInt(_0x5d3001(0x77))/0x5+-parseInt(_0x5d3001(0x7a))/0x6+parseInt(_0x5d3001(0x79))/0x7+-parseInt(_0x5d3001(0x7e))/0x8*(-parseInt(_0x5d3001(0x74))/0x9);if(_0x579102===_0x4145b0)break;else _0x28cef2['push'](_0x28cef2['shift']());}catch(_0x20d6de){_0x28cef2['push'](_0x28cef2['shift']());}}}(a56_0x5204,0xcd6dc));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a56_0x2dc6(_0x4cdcde,_0x5508ef){_0x4cdcde=_0x4cdcde-0x6e;const _0x52042d=a56_0x5204();let _0x2dc6b8=_0x52042d[_0x4cdcde];return _0x2dc6b8;}function a56_0x5204(){const _0x4a08b7=['size','5xkWNwp','9LAABRM','\x20MB','ceil','1644920HyIHwa','541790lYchqS','10523345SafzeC','5839392HIriJO','1073436GSlBDc','validation','toFixed','4205816ELeSdW','4888482YOgawQ','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','\x20path\x20is\x20required.','isFile'];a56_0x5204=function(){return _0x4a08b7;};return a56_0x5204();}function formatBytes(_0x23d130){const _0x44b03d=a56_0x2dc6;if(_0x23d130>=BYTES_PER_MB){const _0x734302=Math[_0x44b03d(0x76)](_0x23d130/BYTES_PER_MB*0x64)/0x64;return _0x734302[_0x44b03d(0x7d)](0x2)+_0x44b03d(0x75);}return _0x23d130+'\x20B';}export function requireDevelopmentUploadFile(_0x1a8124,_0x26b79d){const _0xdf28da=a56_0x2dc6,_0x49db42=_0x1a8124['trim']();if(!_0x49db42)throw CliErrors[_0xdf28da(0x7c)](_0x26b79d+_0xdf28da(0x70));if(!existsSync(_0x49db42))throw CliErrors[_0xdf28da(0x7c)]('File\x20not\x20found:\x20'+_0x49db42);const _0x19828b=statSync(_0x49db42);if(!_0x19828b[_0xdf28da(0x71)]())throw CliErrors[_0xdf28da(0x7c)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x49db42);if(_0x19828b['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0xdf28da(0x7c)](_0xdf28da(0x6f)+_0x49db42+'\x20('+formatBytes(_0x19828b['size'])+')');return{'path':_0x49db42,'size':_0x19828b[_0xdf28da(0x72)]};}
@@ -1 +1 @@
1
- (function(_0x2f4417,_0x549dcc){const _0x10aa2c=a57_0x3edf,_0x53b4eb=_0x2f4417();while(!![]){try{const _0xd443b9=-parseInt(_0x10aa2c(0x134))/0x1*(-parseInt(_0x10aa2c(0x138))/0x2)+parseInt(_0x10aa2c(0x13c))/0x3*(-parseInt(_0x10aa2c(0x135))/0x4)+-parseInt(_0x10aa2c(0x136))/0x5*(-parseInt(_0x10aa2c(0x131))/0x6)+parseInt(_0x10aa2c(0x139))/0x7*(parseInt(_0x10aa2c(0x13b))/0x8)+-parseInt(_0x10aa2c(0x12d))/0x9*(-parseInt(_0x10aa2c(0x133))/0xa)+-parseInt(_0x10aa2c(0x12e))/0xb+parseInt(_0x10aa2c(0x13a))/0xc*(-parseInt(_0x10aa2c(0x132))/0xd);if(_0xd443b9===_0x549dcc)break;else _0x53b4eb['push'](_0x53b4eb['shift']());}catch(_0x4ad6c6){_0x53b4eb['push'](_0x53b4eb['shift']());}}}(a57_0x2580,0xca1db));function a57_0x2580(){const _0x4519ee=['trim','389058VcIcbD','90311GOMuYe','410BiQmhb','11086kEMeOf','1304AXFWdG','40OmdNgn','length','10mEnsYu','920815HErOKi','948cBeGnu','80zYvSsi','3204DPBJCp','53478ptgryH','4492378OfASbc','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a57_0x2580=function(){return _0x4519ee;};return a57_0x2580();}function a57_0x3edf(_0x46b0bc,_0x696912){_0x46b0bc=_0x46b0bc-0x12d;const _0x258052=a57_0x2580();let _0x3edf2d=_0x258052[_0x46b0bc];return _0x3edf2d;}export function validateAppcode(_0x409226){const _0x5a393d=a57_0x3edf,_0x4ebb6e=_0x409226[_0x5a393d(0x130)]();if(!_0x4ebb6e)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x4ebb6e[_0x5a393d(0x137)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x4ebb6e))return{'valid':![],'message':_0x5a393d(0x12f)};return{'valid':!![]};}
1
+ function a57_0x43f7(_0x32b8c4,_0x48c5a7){_0x32b8c4=_0x32b8c4-0x178;const _0x59a12e=a57_0x59a1();let _0x43f774=_0x59a12e[_0x32b8c4];return _0x43f774;}(function(_0x7f4ec9,_0x3d8d29){const _0x1f44a8=a57_0x43f7,_0x3c747a=_0x7f4ec9();while(!![]){try{const _0x25bd5a=parseInt(_0x1f44a8(0x180))/0x1*(parseInt(_0x1f44a8(0x184))/0x2)+parseInt(_0x1f44a8(0x183))/0x3*(parseInt(_0x1f44a8(0x188))/0x4)+-parseInt(_0x1f44a8(0x17a))/0x5+parseInt(_0x1f44a8(0x17c))/0x6*(parseInt(_0x1f44a8(0x182))/0x7)+-parseInt(_0x1f44a8(0x185))/0x8*(parseInt(_0x1f44a8(0x181))/0x9)+-parseInt(_0x1f44a8(0x186))/0xa+-parseInt(_0x1f44a8(0x17b))/0xb*(parseInt(_0x1f44a8(0x17d))/0xc);if(_0x25bd5a===_0x3d8d29)break;else _0x3c747a['push'](_0x3c747a['shift']());}catch(_0x4a2eeb){_0x3c747a['push'](_0x3c747a['shift']());}}}(a57_0x59a1,0xc4214));export function validateAppcode(_0xfd26c){const _0x6db55f=a57_0x43f7,_0x4cdf0e=_0xfd26c[_0x6db55f(0x17e)]();if(!_0x4cdf0e)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x4cdf0e[_0x6db55f(0x178)]>0x64)return{'valid':![],'message':_0x6db55f(0x187)};if(!/^[A-Za-z0-9_-]+$/[_0x6db55f(0x17f)](_0x4cdf0e))return{'valid':![],'message':_0x6db55f(0x179)};return{'valid':!![]};}function a57_0x59a1(){const _0x4c28c3=['844174MVCQqv','126AuZxKu','467474ghcBVJ','3kfiFyh','2HjXyjc','66512WMErkW','2950080nbKhtx','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1319788lvjSlT','length','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','3877810GLrgXP','49797Wejoat','138iziich','1908nuAcZg','trim','test'];a57_0x59a1=function(){return _0x4c28c3;};return a57_0x59a1();}
@@ -1 +1 @@
1
- function a58_0x497d(_0x5cb7bc,_0x216705){_0x5cb7bc=_0x5cb7bc-0x1a4;const _0xd2af0=a58_0xd2af();let _0x497df9=_0xd2af0[_0x5cb7bc];return _0x497df9;}const a58_0x28eb98=a58_0x497d;(function(_0x2e8791,_0x3fd328){const _0x14deb1=a58_0x497d,_0x5bf2bb=_0x2e8791();while(!![]){try{const _0x2d2ac0=parseInt(_0x14deb1(0x1aa))/0x1+-parseInt(_0x14deb1(0x1bd))/0x2+parseInt(_0x14deb1(0x1a8))/0x3+-parseInt(_0x14deb1(0x1b2))/0x4+parseInt(_0x14deb1(0x1a9))/0x5*(parseInt(_0x14deb1(0x1a7))/0x6)+parseInt(_0x14deb1(0x1b1))/0x7+-parseInt(_0x14deb1(0x1ad))/0x8;if(_0x2d2ac0===_0x3fd328)break;else _0x5bf2bb['push'](_0x5bf2bb['shift']());}catch(_0x5f378c){_0x5bf2bb['push'](_0x5bf2bb['shift']());}}}(a58_0xd2af,0xbd14d));import{CliErrors}from'../../errors.js';function a58_0xd2af(){const _0x58997e=['8650572jnuXUy','4282854DHXrXG','5kJxpoc','848752PYOoJi','config','write','15946096jxHxsp','hasOwnProperty','args','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','2916235iwdCZe','2272524tvlxUm','has','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','delete','defaultApp','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','\x20deleted','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','\x20config\x20delete\x20<key>\x20[--global]','Project','1597734GfysWa','validation','\x20already\x20absent','routing','Missing\x20key\x20argument.','trim','\x22\x20is\x20not\x20deletable.','Top-level\x20key\x20\x22','riskLevel'];a58_0xd2af=function(){return _0x58997e;};return a58_0xd2af();}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set(['inherit']),EXTRA_DELETABLE_KEYS=new Set([a58_0x28eb98(0x1b6),a58_0x28eb98(0x1c0)]);async function execute(_0x2cbadf){const _0x24fb77=a58_0x28eb98,_0xad5783=_0x2cbadf[_0x24fb77(0x1af)][0x0]?.[_0x24fb77(0x1c2)]();if(!_0xad5783)throw CliErrors[_0x24fb77(0x1be)](_0x24fb77(0x1c1),'Usage:\x20'+CLI_BIN_NAME+_0x24fb77(0x1bb));if(_0xad5783===_0x24fb77(0x1a6))throw CliErrors['validation'](_0x24fb77(0x1b0));if(!isTopLevelConfigKey(_0xad5783)&&!EXTRA_DELETABLE_KEYS[_0x24fb77(0x1b3)](_0xad5783)&&!LEGACY_DELETABLE_KEYS['has'](_0xad5783))throw CliErrors[_0x24fb77(0x1be)](_0x24fb77(0x1a5)+_0xad5783+_0x24fb77(0x1a4),_0x24fb77(0x1ba));const _0x77b198=resolveWriteScope({'global':_0x2cbadf['bool']('global')}),_0x41224e=readScopedConfig(_0x77b198),_0x3cce2c=Object['prototype'][_0x24fb77(0x1ae)]['call'](_0x41224e,_0xad5783);_0x3cce2c&&(delete _0x41224e[_0xad5783],writeScopedConfig(_0x41224e,_0x77b198));const _0x2ffcbb=_0x77b198==='global'?'Global':_0x24fb77(0x1bc);return{'ok':!![],'message':_0x3cce2c?'✓\x20'+_0x2ffcbb+'\x20'+_0xad5783+_0x24fb77(0x1b9):'✓\x20'+_0x2ffcbb+'\x20'+_0xad5783+_0x24fb77(0x1bf),'data':{'key':_0xad5783,'scope':_0x77b198,'changed':_0x3cce2c}};}export const configDeleteDefinition={'service':a58_0x28eb98(0x1ab),'command':a58_0x28eb98(0x1b5),'description':a58_0x28eb98(0x1b7),'risk':a58_0x28eb98(0x1ac),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'key','description':a58_0x28eb98(0x1b4),'required':!![]}],'flags':[{'name':'global','type':'boolean','description':a58_0x28eb98(0x1b8),'default':![]}],'execute':execute};
1
+ const a58_0xd4cda7=a58_0x4bb9;(function(_0x294799,_0xf44f77){const _0x218758=a58_0x4bb9,_0x47bbec=_0x294799();while(!![]){try{const _0x4c5234=parseInt(_0x218758(0xc7))/0x1+parseInt(_0x218758(0xcc))/0x2+parseInt(_0x218758(0xc0))/0x3*(-parseInt(_0x218758(0xd3))/0x4)+-parseInt(_0x218758(0xcb))/0x5*(-parseInt(_0x218758(0xd4))/0x6)+parseInt(_0x218758(0xd6))/0x7+parseInt(_0x218758(0xd9))/0x8+-parseInt(_0x218758(0xc1))/0x9*(parseInt(_0x218758(0xc6))/0xa);if(_0x4c5234===_0xf44f77)break;else _0x47bbec['push'](_0x47bbec['shift']());}catch(_0x4f9886){_0x47bbec['push'](_0x47bbec['shift']());}}}(a58_0x59f3,0xae70c));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a58_0x4bb9(_0x1b1da4,_0x42e577){_0x1b1da4=_0x1b1da4-0xbd;const _0x59f31b=a58_0x59f3();let _0x4bb98f=_0x59f31b[_0x1b1da4];return _0x4bb98f;}const LEGACY_DELETABLE_KEYS=new Set([a58_0xd4cda7(0xbe)]),EXTRA_DELETABLE_KEYS=new Set([a58_0xd4cda7(0xc8),'routing']);async function execute(_0x3f8384){const _0x4e8fdf=a58_0xd4cda7,_0x563874=_0x3f8384[_0x4e8fdf(0xc9)][0x0]?.[_0x4e8fdf(0xc5)]();if(!_0x563874)throw CliErrors[_0x4e8fdf(0xd8)]('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+_0x4e8fdf(0xce));if(_0x563874==='riskLevel')throw CliErrors[_0x4e8fdf(0xd8)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x563874)&&!EXTRA_DELETABLE_KEYS[_0x4e8fdf(0xd1)](_0x563874)&&!LEGACY_DELETABLE_KEYS[_0x4e8fdf(0xd1)](_0x563874))throw CliErrors[_0x4e8fdf(0xd8)]('Top-level\x20key\x20\x22'+_0x563874+_0x4e8fdf(0xcd),'Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.');const _0x162896=resolveWriteScope({'global':_0x3f8384[_0x4e8fdf(0xc2)](_0x4e8fdf(0xc4))}),_0x51f843=readScopedConfig(_0x162896),_0x3c3e5f=Object[_0x4e8fdf(0xd2)]['hasOwnProperty']['call'](_0x51f843,_0x563874);_0x3c3e5f&&(delete _0x51f843[_0x563874],writeScopedConfig(_0x51f843,_0x162896));const _0x2393fd=_0x162896===_0x4e8fdf(0xc4)?_0x4e8fdf(0xd7):'Project';return{'ok':!![],'message':_0x3c3e5f?'✓\x20'+_0x2393fd+'\x20'+_0x563874+'\x20deleted':'✓\x20'+_0x2393fd+'\x20'+_0x563874+_0x4e8fdf(0xc3),'data':{'key':_0x563874,'scope':_0x162896,'changed':_0x3c3e5f}};}export const configDeleteDefinition={'service':a58_0xd4cda7(0xd0),'command':a58_0xd4cda7(0xcf),'description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a58_0xd4cda7(0xca),'description':a58_0xd4cda7(0xbf),'required':!![]}],'flags':[{'name':a58_0xd4cda7(0xc4),'type':a58_0xd4cda7(0xbd),'description':a58_0xd4cda7(0xd5),'default':![]}],'execute':execute};function a58_0x59f3(){const _0xffcb95=['Global','validation','8368048woJEve','boolean','inherit','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','291453POxZOx','290331jWXHUA','bool','\x20already\x20absent','global','trim','1130Nzyzrc','1165463KhUvxn','defaultApp','args','key','25tURYiu','2268652pGgEdE','\x22\x20is\x20not\x20deletable.','\x20config\x20delete\x20<key>\x20[--global]','delete','config','has','prototype','16JmTWpa','1632936WiFDUv','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','292628JrouZp'];a58_0x59f3=function(){return _0xffcb95;};return a58_0x59f3();}