@lovrabet/rabetbase-cli 2.4.3 → 2.4.4-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.d.ts +2 -0
  87. package/lib/commands/db/diff-refresh-start.js +1 -0
  88. package/lib/commands/db/diff-refresh-status.d.ts +2 -0
  89. package/lib/commands/db/diff-refresh-status.js +1 -0
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/init/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/notification/config-create.d.ts +2 -0
  137. package/lib/commands/notification/config-create.js +1 -0
  138. package/lib/commands/notification/config-delete.d.ts +2 -0
  139. package/lib/commands/notification/config-delete.js +1 -0
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.d.ts +2 -0
  142. package/lib/commands/notification/config-update.js +1 -0
  143. package/lib/commands/notification/index.js +1 -1
  144. package/lib/commands/notification/shared.d.ts +97 -0
  145. package/lib/commands/notification/shared.js +1 -0
  146. package/lib/commands/ocr/index.js +1 -1
  147. package/lib/commands/page/generate-start.js +1 -1
  148. package/lib/commands/page/generate-status.js +1 -1
  149. package/lib/commands/page/index.js +1 -1
  150. package/lib/commands/page/pull.js +1 -1
  151. package/lib/commands/page/push.js +1 -1
  152. package/lib/commands/page/react/create.js +1 -1
  153. package/lib/commands/page/react/detail.js +1 -1
  154. package/lib/commands/page/react/list.js +1 -1
  155. package/lib/commands/page/react/publish.js +1 -1
  156. package/lib/commands/page/react/shared.js +1 -1
  157. package/lib/commands/page/react/syntax.js +1 -1
  158. package/lib/commands/page/react/template.js +1 -1
  159. package/lib/commands/page/react/update.js +1 -1
  160. package/lib/commands/page/relation-audit.js +1 -1
  161. package/lib/commands/page/restore.js +1 -1
  162. package/lib/commands/page/shared.js +1 -1
  163. package/lib/commands/page/standard-page-status.js +1 -1
  164. package/lib/commands/page/sync.js +1 -1
  165. package/lib/commands/permit/index.js +1 -1
  166. package/lib/commands/permit/page-get.js +1 -1
  167. package/lib/commands/permit/page-set.js +1 -1
  168. package/lib/commands/permit/role-apis-set.js +1 -1
  169. package/lib/commands/permit/role-menus-set.js +1 -1
  170. package/lib/commands/permit/role-menus.js +1 -1
  171. package/lib/commands/permit/shared.js +1 -1
  172. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  173. package/lib/commands/project/create/format-elapsed.js +1 -1
  174. package/lib/commands/project/create/main.d.ts +1 -0
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.d.ts +11 -0
  177. package/lib/commands/project/create/materialize-project-template.js +1 -0
  178. package/lib/commands/project/create/project-name.d.ts +2 -0
  179. package/lib/commands/project/create/project-name.js +1 -0
  180. package/lib/commands/project/create/project-template-archive.d.ts +6 -0
  181. package/lib/commands/project/create/project-template-archive.js +1 -0
  182. package/lib/commands/project/create/project-template-path.d.ts +1 -3
  183. package/lib/commands/project/create/project-template-path.js +1 -1
  184. package/lib/commands/project/create/use-copy-project-template.d.ts +2 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/index.js +1 -1
  189. package/lib/commands/project/upgrade.js +1 -1
  190. package/lib/commands/registry.js +1 -1
  191. package/lib/commands/role/create.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/run/index.js +1 -1
  202. package/lib/commands/schema.js +1 -1
  203. package/lib/commands/sql/create.js +1 -1
  204. package/lib/commands/sql/delete.js +1 -1
  205. package/lib/commands/sql/detail.js +1 -1
  206. package/lib/commands/sql/exec.js +1 -1
  207. package/lib/commands/sql/index.js +1 -1
  208. package/lib/commands/sql/list.js +1 -1
  209. package/lib/commands/sql/pull.js +1 -1
  210. package/lib/commands/sql/push.js +1 -1
  211. package/lib/commands/sql/shared.js +1 -1
  212. package/lib/commands/sql/status.js +1 -1
  213. package/lib/commands/sql/validate.js +1 -1
  214. package/lib/commands/task/index.js +1 -1
  215. package/lib/commands/task/status.js +1 -1
  216. package/lib/commands/tenant/index.js +1 -1
  217. package/lib/commands/tenant/members-list.js +1 -1
  218. package/lib/commands/tenant/shared.js +1 -1
  219. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  220. package/lib/commands/user-account/index.js +1 -1
  221. package/lib/commands/workspace/add.js +1 -1
  222. package/lib/commands/workspace/index.js +1 -1
  223. package/lib/commands/workspace/remove.js +1 -1
  224. package/lib/config/schema.js +1 -1
  225. package/lib/constant/cdn.d.ts +2 -0
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.js +1 -1
  230. package/lib/constant/env.js +1 -1
  231. package/lib/constant/output.js +1 -1
  232. package/lib/constant/paths.js +1 -1
  233. package/lib/constant/risk.js +1 -1
  234. package/lib/context/app-resolver.js +1 -1
  235. package/lib/context/auth-resolver.js +1 -1
  236. package/lib/context/config-loader.js +1 -1
  237. package/lib/context.d.ts +1 -1
  238. package/lib/context.js +1 -1
  239. package/lib/core/alias-resolver.js +1 -1
  240. package/lib/core/api-client.d.ts +29 -2
  241. package/lib/core/api-client.js +1 -1
  242. package/lib/core/bff/config.js +1 -1
  243. package/lib/core/bff/file-system.js +1 -1
  244. package/lib/core/bff/hash.js +1 -1
  245. package/lib/core/bff/lock.js +1 -1
  246. package/lib/core/bff/utils.js +1 -1
  247. package/lib/core/db-resolver.js +1 -1
  248. package/lib/core/page/file-system.js +1 -1
  249. package/lib/core/page/hash.js +1 -1
  250. package/lib/core/page/lock.js +1 -1
  251. package/lib/core/sql-index-auditor.js +1 -1
  252. package/lib/core/sql-sync/config.js +1 -1
  253. package/lib/core/sql-sync/file-system.js +1 -1
  254. package/lib/core/sql-sync/hash.js +1 -1
  255. package/lib/core/sql-sync/lock.js +1 -1
  256. package/lib/core/sql-sync/utils.js +1 -1
  257. package/lib/core/sql-validator.js +1 -1
  258. package/lib/errors.js +1 -1
  259. package/lib/framework/build-all-flags.js +1 -1
  260. package/lib/framework/error-output.js +1 -1
  261. package/lib/framework/explicit-yes.js +1 -1
  262. package/lib/framework/flags.js +1 -1
  263. package/lib/framework/help.js +1 -1
  264. package/lib/framework/index.js +1 -1
  265. package/lib/framework/output.js +1 -1
  266. package/lib/framework/response.js +1 -1
  267. package/lib/framework/runner-alias.js +1 -1
  268. package/lib/framework/runner.js +1 -1
  269. package/lib/framework/schema-export.js +1 -1
  270. package/lib/framework/types.js +1 -1
  271. package/lib/generated/build-info.d.ts +4 -4
  272. package/lib/generated/build-info.js +1 -1
  273. package/lib/help.js +1 -1
  274. package/lib/postinstall.js +1 -1
  275. package/lib/runtime/confirmation.js +1 -1
  276. package/lib/runtime/event.js +1 -1
  277. package/lib/runtime/index.js +1 -1
  278. package/lib/runtime/queue.js +1 -1
  279. package/lib/runtime/resolve.js +1 -1
  280. package/lib/skills/builtin-skill.js +1 -1
  281. package/lib/skills/main.js +1 -1
  282. package/lib/skills/npx-skills-add.js +1 -1
  283. package/lib/skills/skill-presence.js +1 -1
  284. package/lib/telemetry/cli-command-trace.js +1 -1
  285. package/lib/telemetry/cli-help-trace.js +1 -1
  286. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  287. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  288. package/lib/telemetry/send-cli-trace-log.js +1 -1
  289. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  290. package/lib/utils/ai_config.js +1 -1
  291. package/lib/utils/apply-jq-filter.js +1 -1
  292. package/lib/utils/cdn-config.js +1 -1
  293. package/lib/utils/check-sdk-version.js +1 -1
  294. package/lib/utils/cli-version-check.js +1 -1
  295. package/lib/utils/cli-version-policy.d.ts +13 -0
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/rules-cdn.js +1 -1
  307. package/lib/utils/sleep.js +1 -1
  308. package/lib/utils/template-replacer.js +1 -1
  309. package/lib/utils/update-notice.js +1 -1
  310. package/lib/utils/version.js +1 -1
  311. package/lib/utils/with-active-cookie.js +1 -1
  312. package/lib/utils/write-cli-side-channel.js +1 -1
  313. package/package.json +9 -4
  314. package/skills/rabetbase/SKILL.md +33 -22
  315. package/skills/rabetbase/guides/backend-function.md +5 -3
  316. package/skills/rabetbase/guides/bff-creation-workflow.md +2 -2
  317. package/skills/rabetbase/guides/conflict-detection.md +2 -2
  318. package/skills/rabetbase/guides/database-connection-workflow.md +39 -5
  319. package/skills/rabetbase/guides/react-custom-page-workflow.md +16 -4
  320. package/skills/rabetbase/guides/sql-creation-workflow.md +4 -2
  321. package/skills/rabetbase/guides/sql-mybatis.md +2 -2
  322. package/skills/rabetbase/knowledge/page-schema/YtPage.md +3 -37
  323. package/skills/rabetbase/knowledge/react-page/generation-standards.md +14 -3
  324. package/skills/rabetbase/references/rabetbase-app-config.md +2 -2
  325. package/skills/rabetbase/references/rabetbase-bff-push.md +4 -5
  326. package/skills/rabetbase/references/rabetbase-bff-save.md +3 -3
  327. package/skills/rabetbase/references/rabetbase-config.md +2 -2
  328. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  329. package/skills/rabetbase/references/rabetbase-db-detail.md +3 -0
  330. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +53 -0
  331. package/skills/rabetbase/references/rabetbase-db-diff.md +40 -21
  332. package/skills/rabetbase/references/rabetbase-db-list.md +1 -1
  333. package/skills/rabetbase/references/rabetbase-kb.md +5 -3
  334. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +9 -10
  335. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +1 -3
  336. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +2 -3
  337. package/skills/rabetbase/references/rabetbase-notification-config-list.md +2 -2
  338. package/skills/rabetbase/references/rabetbase-notification-config-mutations.md +56 -0
  339. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  340. package/skills/rabetbase/references/rabetbase-page-react-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-page-react-publish.md +2 -2
  342. package/skills/rabetbase/references/rabetbase-project-create.md +3 -0
  343. package/skills/rabetbase/references/rabetbase-run.md +1 -1
  344. package/skills/rabetbase/references/rabetbase-sql-create.md +1 -1
  345. package/skills/rabetbase/references/rabetbase-sql-push.md +3 -4
  346. package/skills/rabetbase/references/rabetbase-user-account.md +0 -1
  347. package/skills/rabetbase.manifest.json +5 -5
  348. package/templates/README.md +14 -2
  349. package/lib/commands/project/create/non-interactive.d.ts +0 -9
  350. package/lib/commands/project/create/non-interactive.js +0 -1
  351. package/lib/utils/copy-directory.d.ts +0 -1
  352. package/lib/utils/copy-directory.js +0 -1
  353. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +0 -291
  354. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +0 -223
  355. package/templates/projects/sub-app-react-demo/.prettierrc +0 -1
  356. package/templates/projects/sub-app-react-demo/CHANGELOG.md +0 -67
  357. package/templates/projects/sub-app-react-demo/README.md +0 -246
  358. package/templates/projects/sub-app-react-demo/docs/quick-start.md +0 -245
  359. package/templates/projects/sub-app-react-demo/index.html +0 -27
  360. package/templates/projects/sub-app-react-demo/package.json +0 -34
  361. package/templates/projects/sub-app-react-demo/public/logo.svg +0 -1
  362. package/templates/projects/sub-app-react-demo/public/vite.svg +0 -1
  363. package/templates/projects/sub-app-react-demo/src/api/api.ts +0 -26
  364. package/templates/projects/sub-app-react-demo/src/api/client.ts +0 -32
  365. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +0 -28
  366. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +0 -55
  367. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +0 -308
  368. package/templates/projects/sub-app-react-demo/src/main.tsx +0 -52
  369. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +0 -570
  370. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +0 -531
  371. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +0 -500
  372. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +0 -641
  373. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +0 -536
  374. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +0 -295
  375. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +0 -242
  376. package/templates/projects/sub-app-react-demo/src/router/index.tsx +0 -30
  377. package/templates/projects/sub-app-react-demo/src/style.css +0 -108
  378. package/templates/projects/sub-app-react-demo/src/utils/api.ts +0 -12
  379. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +0 -2
  380. package/templates/projects/sub-app-react-demo/tsconfig.json +0 -26
  381. package/templates/projects/sub-app-react-demo/vite.config.ts +0 -111
@@ -1 +1 @@
1
- const a19_0x1d4307=a19_0x441b;(function(_0xc4d978,_0x34183c){const _0x3f0605=a19_0x441b,_0x4e8778=_0xc4d978();while(!![]){try{const _0x3c08f1=parseInt(_0x3f0605(0x1c8))/0x1+-parseInt(_0x3f0605(0x1c9))/0x2*(-parseInt(_0x3f0605(0x1e6))/0x3)+-parseInt(_0x3f0605(0x1e1))/0x4+-parseInt(_0x3f0605(0x1d1))/0x5+-parseInt(_0x3f0605(0x1cc))/0x6*(parseInt(_0x3f0605(0x1e8))/0x7)+parseInt(_0x3f0605(0x1d5))/0x8*(parseInt(_0x3f0605(0x1c7))/0x9)+parseInt(_0x3f0605(0x1dd))/0xa;if(_0x3c08f1===_0x34183c)break;else _0x4e8778['push'](_0x4e8778['shift']());}catch(_0x4d3e3c){_0x4e8778['push'](_0x4e8778['shift']());}}}(a19_0x3dd4,0x8a6ea));import{readRawConfigWithLayers}from'../../context.js';function a19_0x3dd4(){const _0x14ae37=['defaultApp','1052430ztktrt','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','projectConfig','globalPath','271280klDfKQ','boolean','bool','appcode','global','49809OptBMk','project','6209581GdRqun','length','apps','globalConfig','entries','\x20config','isCurrent','mergedCli','9IwNmel','143832Kdicxp','82AYflQg','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','remote','6HVlrnL','projectPath','object','merged','read','1328220eELroM','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','list','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','6862136SHdjhH','optional','inherit','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','app','\x20in\x20','validation'];a19_0x3dd4=function(){return _0x14ae37;};return a19_0x3dd4();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function buildItemsFromLayer(_0x25e44b,_0x448f21){const _0x22027f=a19_0x441b,_0x345862=[],_0x4ee950=_0x25e44b['apps']&&typeof _0x25e44b[_0x22027f(0x1ea)]===_0x22027f(0x1ce)?_0x25e44b[_0x22027f(0x1ea)]:{},_0x37ad80=_0x25e44b[_0x22027f(0x1dc)]||undefined;for(const [_0x1e79e8,_0x228816]of Object['entries'](_0x4ee950)){if(!_0x228816||typeof _0x228816!==_0x22027f(0x1ce)||!_0x228816['appcode'])continue;_0x345862['push']({'name':_0x1e79e8,'appcode':_0x228816[_0x22027f(0x1e4)],'named':!![],'definedIn':_0x448f21,'isDefault':_0x1e79e8===_0x37ad80,...buildAppProfileListFields(_0x228816)});}return _0x345862;}function buildMergedItems(_0x507faa,_0xffbf7b){const _0x4c93a7=a19_0x441b,{apps:apps={},defaultApp:_0x385eab}=_0x507faa,_0x3cc52c=_0xffbf7b['globalConfig']['apps']&&typeof _0xffbf7b['globalConfig'][_0x4c93a7(0x1ea)]==='object'?_0xffbf7b['globalConfig']['apps']:{},_0x2ce3ed=_0xffbf7b[_0x4c93a7(0x1df)][_0x4c93a7(0x1ea)]&&typeof _0xffbf7b[_0x4c93a7(0x1df)][_0x4c93a7(0x1ea)]==='object'?_0xffbf7b['projectConfig']['apps']:{},_0x2fdb62=_0xffbf7b[_0x4c93a7(0x1df)][_0x4c93a7(0x1d7)]===![],_0x250f99=Object[_0x4c93a7(0x1ec)](apps),_0x1e1adb=_0x250f99['map'](([_0x56a514,_0x444a7a])=>({'name':_0x56a514,'appcode':_0x444a7a[_0x4c93a7(0x1e4)],'named':!![],'definedIn':appDefinedIn(_0x56a514,_0x3cc52c,_0x2ce3ed,_0x2fdb62),'isDefault':_0x56a514===_0x385eab,...buildAppProfileListFields(_0x444a7a)}));return _0x1e1adb;}function validateAppListFlags(_0x2775cd){const _0x33f5e7=a19_0x441b;if(!_0x2775cd['bool'](_0x33f5e7(0x1cb)))return;if(!_0x2775cd[_0x33f5e7(0x1e3)](_0x33f5e7(0x1e5))&&!_0x2775cd[_0x33f5e7(0x1e3)](_0x33f5e7(0x1e7)))return;throw CliErrors[_0x33f5e7(0x1db)](_0x33f5e7(0x1de),_0x33f5e7(0x1d8));}function a19_0x441b(_0x14d8c3,_0x2c309d){_0x14d8c3=_0x14d8c3-0x1c5;const _0x3dd4aa=a19_0x3dd4();let _0x441bef=_0x3dd4aa[_0x14d8c3];return _0x441bef;}async function execute(_0x1197cc){const _0x838ed0=a19_0x441b;validateAppListFlags(_0x1197cc);if(_0x1197cc['bool'](_0x838ed0(0x1cb)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x1197cc)};const _0x17c6c2=_0x1197cc[_0x838ed0(0x1e3)](_0x838ed0(0x1e5)),_0x19487c=_0x1197cc['bool'](_0x838ed0(0x1e7)),_0x259e67=_0x17c6c2?'global':_0x19487c?_0x838ed0(0x1e7):_0x838ed0(0x1cf),{config:_0x155655,layers:_0x468137}=readRawConfigWithLayers(),_0x30b653=resolveDefaultAppSource(_0x468137),{defaultApp:_0x19f8ff}=_0x155655;let _0x1034d7,_0x47bb96;switch(_0x259e67){case _0x838ed0(0x1e5):_0x1034d7=buildItemsFromLayer(_0x468137[_0x838ed0(0x1eb)],_0x838ed0(0x1e5)),_0x47bb96=_0x468137[_0x838ed0(0x1e0)];break;case _0x838ed0(0x1e7):_0x1034d7=buildItemsFromLayer(_0x468137[_0x838ed0(0x1df)],_0x838ed0(0x1e7)),_0x47bb96=_0x468137['projectPath'];break;default:_0x1034d7=buildMergedItems(_0x155655,_0x468137);break;}enrichAppListItemsWithMergedSelection(_0x1034d7,_0x1197cc[_0x838ed0(0x1c6)]);if(_0x1034d7[_0x838ed0(0x1e9)]===0x0){const _0x207f9d=_0x259e67===_0x838ed0(0x1cf)?'':_0x838ed0(0x1da)+_0x259e67+_0x838ed0(0x1ed);return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x207f9d+'.\x20Use\x20`'+CLI_BIN_NAME+_0x838ed0(0x1ca)};}const _0x3c8846=_0x1034d7['find'](_0x588e39=>_0x588e39[_0x838ed0(0x1c5)]===!![]),_0x2e18fe=_0x19f8ff??_0x3c8846?.[_0x838ed0(0x1e4)]??null,_0x187167=_0x259e67===_0x838ed0(0x1cf)?{'globalPath':_0x468137[_0x838ed0(0x1e0)]??null,'projectPath':_0x468137[_0x838ed0(0x1cd)]??null,'defaultApp':_0x2e18fe,'defaultAppSource':_0x19f8ff!=null?_0x30b653:null}:{'scope':_0x259e67,'configPath':_0x47bb96??null};return{'ok':!![],'data':{'items':_0x1034d7,'meta':_0x187167}};}export const appListDefinition={'service':a19_0x1d4307(0x1d9),'command':a19_0x1d4307(0x1d3),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a19_0x1d4307(0x1d0),'auth':a19_0x1d4307(0x1d6),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x1d4307(0x1cb),'type':'boolean','description':a19_0x1d4307(0x1d2),'default':![]},{'name':'global','type':a19_0x1d4307(0x1e2),'description':'Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','default':![]},{'name':'project','type':a19_0x1d4307(0x1e2),'description':a19_0x1d4307(0x1d4),'default':![]}],async 'validate'(_0x5b631a){validateAppListFlags(_0x5b631a);},'execute':execute};
1
+ const a19_0x92b4b1=a19_0x4efd;(function(_0x46aa13,_0x18099f){const _0x3ee033=a19_0x4efd,_0x5387cd=_0x46aa13();while(!![]){try{const _0x502c2e=parseInt(_0x3ee033(0x8e))/0x1*(-parseInt(_0x3ee033(0xae))/0x2)+parseInt(_0x3ee033(0xaa))/0x3+parseInt(_0x3ee033(0xa4))/0x4*(-parseInt(_0x3ee033(0x9f))/0x5)+-parseInt(_0x3ee033(0x93))/0x6*(-parseInt(_0x3ee033(0x90))/0x7)+-parseInt(_0x3ee033(0xaf))/0x8*(parseInt(_0x3ee033(0xb0))/0x9)+parseInt(_0x3ee033(0xb2))/0xa+parseInt(_0x3ee033(0xb9))/0xb;if(_0x502c2e===_0x18099f)break;else _0x5387cd['push'](_0x5387cd['shift']());}catch(_0x38aa98){_0x5387cd['push'](_0x5387cd['shift']());}}}(a19_0xfc79,0xd86a6));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';import{buildAppProfileListFields}from'../../config/schema.js';import{appDefinedIn,enrichAppListItemsWithMergedSelection,resolveDefaultAppSource}from'../../commands/app/shared.js';import{listRemoteAppDirectory}from'../../commands/app/remote-directory.js';function a19_0x4efd(_0x46391e,_0x1f4959){_0x46391e=_0x46391e-0x8e;const _0xfc79c9=a19_0xfc79();let _0x4efdaf=_0xfc79c9[_0x46391e];return _0x4efdaf;}function buildItemsFromLayer(_0x4d731b,_0x50de7a){const _0x53a2e2=a19_0x4efd,_0x4e9415=[],_0x5b7382=_0x4d731b[_0x53a2e2(0xb1)]&&typeof _0x4d731b['apps']===_0x53a2e2(0x94)?_0x4d731b['apps']:{},_0x3c6d18=_0x4d731b[_0x53a2e2(0xb4)]||undefined;for(const [_0x425dc2,_0x13283a]of Object[_0x53a2e2(0xb7)](_0x5b7382)){if(!_0x13283a||typeof _0x13283a!==_0x53a2e2(0x94)||!_0x13283a['appcode'])continue;_0x4e9415['push']({'name':_0x425dc2,'appcode':_0x13283a[_0x53a2e2(0xb6)],'named':!![],'definedIn':_0x50de7a,'isDefault':_0x425dc2===_0x3c6d18,...buildAppProfileListFields(_0x13283a)});}return _0x4e9415;}function a19_0xfc79(){const _0x5aad42=['globalConfig','90XwmWxh','\x20config','No\x20apps\x20configured','global','app','221484EddFWf','map','isCurrent','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','project','find','3254025QKejOA','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','globalPath','\x20in\x20','86OTHqgi','2356856zajDNY','18DTcKzN','apps','1161180caIQIm','list','defaultApp','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','appcode','entries','boolean','5277371GgqWPk','1597PRQcdP','bool','6023129LRAJKS','validation','projectPath','6OWCwlh','object','remote','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','read','optional','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','projectConfig','mergedCli','length','merged'];a19_0xfc79=function(){return _0x5aad42;};return a19_0xfc79();}function buildMergedItems(_0x2de32b,_0x35459e){const _0x33e6de=a19_0x4efd,{apps:apps={},defaultApp:_0x12a29d}=_0x2de32b,_0x267712=_0x35459e[_0x33e6de(0x9e)]['apps']&&typeof _0x35459e['globalConfig'][_0x33e6de(0xb1)]==='object'?_0x35459e[_0x33e6de(0x9e)][_0x33e6de(0xb1)]:{},_0x1d639d=_0x35459e['projectConfig']['apps']&&typeof _0x35459e[_0x33e6de(0x9a)]['apps']===_0x33e6de(0x94)?_0x35459e[_0x33e6de(0x9a)][_0x33e6de(0xb1)]:{},_0x542c2a=_0x35459e['projectConfig']['inherit']===![],_0x424557=Object['entries'](apps),_0xd1eb81=_0x424557[_0x33e6de(0xa5)](([_0x1c8de1,_0x20c8ea])=>({'name':_0x1c8de1,'appcode':_0x20c8ea[_0x33e6de(0xb6)],'named':!![],'definedIn':appDefinedIn(_0x1c8de1,_0x267712,_0x1d639d,_0x542c2a),'isDefault':_0x1c8de1===_0x12a29d,...buildAppProfileListFields(_0x20c8ea)}));return _0xd1eb81;}function validateAppListFlags(_0x3bd193){const _0x19310b=a19_0x4efd;if(!_0x3bd193[_0x19310b(0x8f)]('remote'))return;if(!_0x3bd193['bool'](_0x19310b(0xa2))&&!_0x3bd193[_0x19310b(0x8f)](_0x19310b(0xa8)))return;throw CliErrors[_0x19310b(0x91)](_0x19310b(0x96),'Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.');}async function execute(_0x56c5bf){const _0x56868f=a19_0x4efd;validateAppListFlags(_0x56c5bf);if(_0x56c5bf['bool'](_0x56868f(0x95)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x56c5bf)};const _0xa60e2c=_0x56c5bf['bool'](_0x56868f(0xa2)),_0x5edd87=_0x56c5bf[_0x56868f(0x8f)](_0x56868f(0xa8)),_0x120ef3=_0xa60e2c?_0x56868f(0xa2):_0x5edd87?'project':'merged',{config:_0x2feefd,layers:_0x33235c}=readRawConfigWithLayers(),_0x2f3d31=resolveDefaultAppSource(_0x33235c),{defaultApp:_0x116342}=_0x2feefd;let _0x5a47c9,_0xba6bb;switch(_0x120ef3){case _0x56868f(0xa2):_0x5a47c9=buildItemsFromLayer(_0x33235c[_0x56868f(0x9e)],_0x56868f(0xa2)),_0xba6bb=_0x33235c[_0x56868f(0xac)];break;case _0x56868f(0xa8):_0x5a47c9=buildItemsFromLayer(_0x33235c[_0x56868f(0x9a)],'project'),_0xba6bb=_0x33235c[_0x56868f(0x92)];break;default:_0x5a47c9=buildMergedItems(_0x2feefd,_0x33235c);break;}enrichAppListItemsWithMergedSelection(_0x5a47c9,_0x56c5bf[_0x56868f(0x9b)]);if(_0x5a47c9[_0x56868f(0x9c)]===0x0){const _0x475175=_0x120ef3==='merged'?'':_0x56868f(0xad)+_0x120ef3+_0x56868f(0xa0);return{'ok':!![],'data':[],'message':_0x56868f(0xa1)+_0x475175+'.\x20Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.'};}const _0x58a119=_0x5a47c9[_0x56868f(0xa9)](_0x1d66a5=>_0x1d66a5[_0x56868f(0xa6)]===!![]),_0x439626=_0x116342??_0x58a119?.[_0x56868f(0xb6)]??null,_0xa2163b=_0x120ef3===_0x56868f(0x9d)?{'globalPath':_0x33235c['globalPath']??null,'projectPath':_0x33235c[_0x56868f(0x92)]??null,'defaultApp':_0x439626,'defaultAppSource':_0x116342!=null?_0x2f3d31:null}:{'scope':_0x120ef3,'configPath':_0xba6bb??null};return{'ok':!![],'data':{'items':_0x5a47c9,'meta':_0xa2163b}};}export const appListDefinition={'service':a19_0x92b4b1(0xa3),'command':a19_0x92b4b1(0xb3),'description':a19_0x92b4b1(0xab),'risk':a19_0x92b4b1(0x97),'auth':a19_0x92b4b1(0x98),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a19_0x92b4b1(0x95),'type':a19_0x92b4b1(0xb8),'description':a19_0x92b4b1(0xb5),'default':![]},{'name':a19_0x92b4b1(0xa2),'type':a19_0x92b4b1(0xb8),'description':a19_0x92b4b1(0x99),'default':![]},{'name':a19_0x92b4b1(0xa8),'type':a19_0x92b4b1(0xb8),'description':a19_0x92b4b1(0xa7),'default':![]}],async 'validate'(_0x3066b3){validateAppListFlags(_0x3066b3);},'execute':execute};
@@ -1 +1 @@
1
- function a20_0x2451(_0xcd94a1,_0x3712c8){_0xcd94a1=_0xcd94a1-0x196;const _0x11bba8=a20_0x11bb();let _0x245113=_0x11bba8[_0xcd94a1];return _0x245113;}const a20_0xd8081b=a20_0x2451;(function(_0x1f35e7,_0x40c4ee){const _0x3ccf53=a20_0x2451,_0xa9866=_0x1f35e7();while(!![]){try{const _0x8cc412=parseInt(_0x3ccf53(0x19d))/0x1+-parseInt(_0x3ccf53(0x19e))/0x2*(-parseInt(_0x3ccf53(0x1a5))/0x3)+-parseInt(_0x3ccf53(0x1a6))/0x4*(-parseInt(_0x3ccf53(0x19a))/0x5)+-parseInt(_0x3ccf53(0x1a2))/0x6*(parseInt(_0x3ccf53(0x196))/0x7)+parseInt(_0x3ccf53(0x1a0))/0x8*(-parseInt(_0x3ccf53(0x1a3))/0x9)+-parseInt(_0x3ccf53(0x198))/0xa+parseInt(_0x3ccf53(0x19b))/0xb*(parseInt(_0x3ccf53(0x197))/0xc);if(_0x8cc412===_0x40c4ee)break;else _0xa9866['push'](_0xa9866['shift']());}catch(_0xd4449f){_0xa9866['push'](_0xa9866['shift']());}}}(a20_0x11bb,0x6703c));function a20_0x11bb(){const _0x311033=['2249810fUNzpk','length','1510MkqmPQ','44cuwleS','read','48990UpEcQw','2ZItboA','members-list','1397008xxCpEH','appCode','2295948FHEydD','9uCJzVX','Found\x20','436191cbTrzh','10940JNNrIL','app','7eSxOfP','551568oGZjaP'];a20_0x11bb=function(){return _0x311033;};return a20_0x11bb();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a20_0xd8081b(0x1a7),'command':a20_0xd8081b(0x19f),'description':'List\x20application\x20members\x20with\x20their\x20role\x20memberships','risk':a20_0xd8081b(0x19c),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x115166){const _0x578cdb=a20_0xd8081b,_0x58261d=projectAppMembers(await listRoleUsers(_0x115166[_0x578cdb(0x1a1)]));return{'ok':!![],'data':{'appCode':_0x115166[_0x578cdb(0x1a1)],'items':_0x58261d,'totalCount':_0x58261d[_0x578cdb(0x199)]},'message':_0x578cdb(0x1a4)+_0x58261d['length']+'\x20application\x20member(s)'};}};
1
+ function a20_0x10c8(){const _0x25de99=['2274400AqFbOh','appCode','read','161524oqKxyd','3138276JUAnjh','5129194QfmYXt','160vvZBRn','341883TKoYLo','784881kJklSL','length','app','292583AgYMZY','5DgXyEM'];a20_0x10c8=function(){return _0x25de99;};return a20_0x10c8();}const a20_0x1e167e=a20_0x2195;(function(_0x3d1018,_0x5ccae4){const _0x513f77=a20_0x2195,_0x308b53=_0x3d1018();while(!![]){try{const _0x1e85a5=parseInt(_0x513f77(0xd4))/0x1+-parseInt(_0x513f77(0xd9))/0x2+parseInt(_0x513f77(0xd0))/0x3+-parseInt(_0x513f77(0xd6))/0x4*(-parseInt(_0x513f77(0xd5))/0x5)+parseInt(_0x513f77(0xda))/0x6+parseInt(_0x513f77(0xce))/0x7+-parseInt(_0x513f77(0xcf))/0x8*(parseInt(_0x513f77(0xd1))/0x9);if(_0x1e85a5===_0x5ccae4)break;else _0x308b53['push'](_0x308b53['shift']());}catch(_0x32ca5f){_0x308b53['push'](_0x308b53['shift']());}}}(a20_0x10c8,0x631e6));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';function a20_0x2195(_0x17db37,_0x255a87){_0x17db37=_0x17db37-0xce;const _0x10c8e9=a20_0x10c8();let _0x2195cf=_0x10c8e9[_0x17db37];return _0x2195cf;}import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':a20_0x1e167e(0xd3),'command':'members-list','description':'List\x20application\x20members\x20with\x20their\x20role\x20memberships','risk':a20_0x1e167e(0xd8),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4ed5a5){const _0x4990d8=a20_0x1e167e,_0x2b7173=projectAppMembers(await listRoleUsers(_0x4ed5a5[_0x4990d8(0xd7)]));return{'ok':!![],'data':{'appCode':_0x4ed5a5['appCode'],'items':_0x2b7173,'totalCount':_0x2b7173[_0x4990d8(0xd2)]},'message':'Found\x20'+_0x2b7173['length']+'\x20application\x20member(s)'};}};
@@ -1 +1 @@
1
- (function(_0x220a09,_0x340303){const _0x452454=a21_0x23f5,_0x52c665=_0x220a09();while(!![]){try{const _0x4cff3e=-parseInt(_0x452454(0xf9))/0x1+parseInt(_0x452454(0xfd))/0x2+-parseInt(_0x452454(0x106))/0x3*(-parseInt(_0x452454(0xfc))/0x4)+parseInt(_0x452454(0x100))/0x5*(-parseInt(_0x452454(0x104))/0x6)+-parseInt(_0x452454(0x107))/0x7+-parseInt(_0x452454(0xff))/0x8*(-parseInt(_0x452454(0xfb))/0x9)+parseInt(_0x452454(0xf8))/0xa;if(_0x4cff3e===_0x340303)break;else _0x52c665['push'](_0x52c665['shift']());}catch(_0x34f68e){_0x52c665['push'](_0x52c665['shift']());}}}(a21_0x4dcd,0x238fa));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';function a21_0x23f5(_0x3a2f47,_0x39d842){_0x3a2f47=_0x3a2f47-0xf8;const _0x4dcdc7=a21_0x4dcd();let _0x23f5df=_0x4dcdc7[_0x3a2f47];return _0x23f5df;}import{withActiveCookie}from'../../utils/with-active-cookie.js';function a21_0x4dcd(){const _0x5d7e2a=['appDesc','18imYmRD','appCode','3EffKwo','361781Ifcrdv','1186520TfGbBw','108785ZnMPzn','cookie','36VLUjWF','190744rJUcHj','250870qubzfu','platform','106664emnpdn','64965vVlYZu','authRequired','appName'];a21_0x4dcd=function(){return _0x5d7e2a;};return a21_0x4dcd();}function resolveCookie(_0x474ecd){const _0x471d19=a21_0x23f5,_0x1438e0=_0x474ecd[_0x471d19(0xfa)]||getCookie();if(!_0x1438e0)throw CliErrors[_0x471d19(0x101)]();return _0x1438e0;}export async function listRemoteAppDirectory(_0x1695af){const _0x1f445e=a21_0x23f5,_0x174a4f=await withActiveCookie(resolveCookie(_0x1695af),()=>listRemoteApps());return{'items':_0x174a4f['map'](_0x468ca9=>({..._0x468ca9['id']!=null?{'id':_0x468ca9['id']}:{},'appCode':_0x468ca9[_0x1f445e(0x105)],'appName':_0x468ca9[_0x1f445e(0x102)],..._0x468ca9[_0x1f445e(0x103)]!=null?{'appDesc':_0x468ca9[_0x1f445e(0x103)]}:{}})),'meta':{'source':_0x1f445e(0xfe)}};}
1
+ (function(_0x2f2c5f,_0x3588e7){const _0x222734=a21_0x1b1c,_0x58fc95=_0x2f2c5f();while(!![]){try{const _0x452481=parseInt(_0x222734(0x1dd))/0x1+-parseInt(_0x222734(0x1db))/0x2*(parseInt(_0x222734(0x1d6))/0x3)+parseInt(_0x222734(0x1e4))/0x4+parseInt(_0x222734(0x1e5))/0x5+-parseInt(_0x222734(0x1df))/0x6+parseInt(_0x222734(0x1e0))/0x7*(-parseInt(_0x222734(0x1d8))/0x8)+-parseInt(_0x222734(0x1de))/0x9;if(_0x452481===_0x3588e7)break;else _0x58fc95['push'](_0x58fc95['shift']());}catch(_0x54164c){_0x58fc95['push'](_0x58fc95['shift']());}}}(a21_0x24fc,0x7f1c0));import{listRemoteApps}from'../../core/api-client.js';function a21_0x1b1c(_0x1d08b3,_0x396e6e){_0x1d08b3=_0x1d08b3-0x1d6;const _0x24fc86=a21_0x24fc();let _0x1b1c3b=_0x24fc86[_0x1d08b3];return _0x1b1c3b;}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x26088f){const _0x592989=a21_0x1b1c,_0x2d6001=_0x26088f[_0x592989(0x1e3)]||getCookie();if(!_0x2d6001)throw CliErrors[_0x592989(0x1d9)]();return _0x2d6001;}function a21_0x24fc(){const _0x2de6f6=['appName','cookie','2297216bQcIiw','2696320eLrGUa','9tlwCNO','appDesc','2168Bmgwjt','authRequired','appCode','168774tajnfQ','platform','953946EhXRMe','141894IEfirJ','6059568thlijD','6923ZxFYXl','map'];a21_0x24fc=function(){return _0x2de6f6;};return a21_0x24fc();}export async function listRemoteAppDirectory(_0x5054d5){const _0x1c69f5=a21_0x1b1c,_0x17d73d=await withActiveCookie(resolveCookie(_0x5054d5),()=>listRemoteApps());return{'items':_0x17d73d[_0x1c69f5(0x1e1)](_0x10d8f6=>({..._0x10d8f6['id']!=null?{'id':_0x10d8f6['id']}:{},'appCode':_0x10d8f6[_0x1c69f5(0x1da)],'appName':_0x10d8f6[_0x1c69f5(0x1e2)],..._0x10d8f6[_0x1c69f5(0x1d7)]!=null?{'appDesc':_0x10d8f6['appDesc']}:{}})),'meta':{'source':_0x1c69f5(0x1dc)}};}
@@ -1 +1 @@
1
- (function(_0x583971,_0x13a654){const _0x5113b9=a22_0x2785,_0x515b86=_0x583971();while(!![]){try{const _0x4653b0=-parseInt(_0x5113b9(0x145))/0x1*(parseInt(_0x5113b9(0x132))/0x2)+parseInt(_0x5113b9(0x13d))/0x3+-parseInt(_0x5113b9(0x133))/0x4+parseInt(_0x5113b9(0x155))/0x5*(-parseInt(_0x5113b9(0x15a))/0x6)+parseInt(_0x5113b9(0x130))/0x7+parseInt(_0x5113b9(0x15b))/0x8+parseInt(_0x5113b9(0x14f))/0x9*(parseInt(_0x5113b9(0x149))/0xa);if(_0x4653b0===_0x13a654)break;else _0x515b86['push'](_0x515b86['shift']());}catch(_0x3eefda){_0x515b86['push'](_0x515b86['shift']());}}}(a22_0x1b9a,0x85ab0));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a22_0x1b9a(){const _0x37f508=['object','appcode','status','1vWzmfl','applyUserList','length','roleName','739730BMyXSh','projectConfig','roles','apps','defaultApp','sort','9HzpdNx','globalConfig','call','isCurrent','values','global','160URCEGK','map','\x20(global)','push','isFinite','29976BQVRMO','7142296QvBCpA','hasOwnProperty','roleType','name','keys','currentApp','nickname','project','roleId','named','5967017Tofjgu','ACTIVE','1431516jkwkJm','2636168VqGDMp','appCode','prototype','trim','get','username','set','membershipStatus','roleKeys','has','788955ZrGxtt','PENDING','displayName','add','userId'];a22_0x1b9a=function(){return _0x37f508;};return a22_0x1b9a();}function nullableText(_0x448714){const _0x14f565=a22_0x2785,_0x20a493=_0x448714?.[_0x14f565(0x136)]();return _0x20a493?_0x20a493:null;}export function projectAppMembers(_0x45c2b8){const _0x109bdc=a22_0x2785,_0xebe54a=new Map(),_0x1a1128=[..._0x45c2b8][_0x109bdc(0x14e)]((_0x29c865,_0x2d8baa)=>_0x29c865['id']-_0x2d8baa['id']),_0x2cd96d=(_0x5e66ab,_0x1e8a9e,_0xe9887c)=>{const _0x457876=_0x109bdc;for(const _0x359ba4 of _0x1e8a9e){const _0x5f2492=Number(_0x359ba4[_0x457876(0x141)]);if(!Number[_0x457876(0x159)](_0x5f2492)||_0x5f2492<=0x0)continue;let _0x134157=_0xebe54a[_0x457876(0x137)](_0x5f2492);if(!_0x134157)_0x134157={'userId':_0x5f2492,'username':nullableText(_0x359ba4['username']),'displayName':nullableText(_0x359ba4[_0x457876(0x161)]),'status':_0xe9887c,'roles':[],'roleKeys':new Set()},_0xebe54a[_0x457876(0x139)](_0x5f2492,_0x134157);else{_0x134157[_0x457876(0x138)]??=nullableText(_0x359ba4['username']),_0x134157[_0x457876(0x13f)]??=nullableText(_0x359ba4['nickname']);if(_0xe9887c==='ACTIVE')_0x134157[_0x457876(0x144)]=_0x457876(0x131);}const _0xd98873=_0x5e66ab['id']+':'+_0xe9887c;if(_0x134157[_0x457876(0x13b)][_0x457876(0x13c)](_0xd98873))continue;_0x134157[_0x457876(0x13b)][_0x457876(0x140)](_0xd98873),_0x134157[_0x457876(0x14b)][_0x457876(0x158)]({'roleId':_0x5e66ab['id'],'roleName':nullableText(_0x5e66ab[_0x457876(0x148)]),'roleType':nullableText(_0x5e66ab[_0x457876(0x15d)]),'membershipStatus':_0xe9887c});}};for(const _0x41cbfd of _0x1a1128){_0x2cd96d(_0x41cbfd,_0x41cbfd['userList']??[],_0x109bdc(0x131)),_0x2cd96d(_0x41cbfd,_0x41cbfd[_0x109bdc(0x146)]??[],_0x109bdc(0x13e));}return[..._0xebe54a[_0x109bdc(0x153)]()][_0x109bdc(0x156)](_0x2e6dd5=>({'userId':_0x2e6dd5[_0x109bdc(0x141)],'username':_0x2e6dd5[_0x109bdc(0x138)],'displayName':_0x2e6dd5[_0x109bdc(0x13f)],'status':_0x2e6dd5[_0x109bdc(0x144)],'roles':_0x2e6dd5[_0x109bdc(0x14b)][_0x109bdc(0x14e)]((_0x3f8df7,_0x3d9964)=>_0x3f8df7[_0x109bdc(0x12e)]-_0x3d9964[_0x109bdc(0x12e)]||(_0x3f8df7[_0x109bdc(0x13a)]===_0x3d9964[_0x109bdc(0x13a)]?0x0:_0x3f8df7['membershipStatus']===_0x109bdc(0x131)?-0x1:0x1))}))[_0x109bdc(0x14e)]((_0x58477a,_0x579715)=>_0x58477a[_0x109bdc(0x141)]-_0x579715[_0x109bdc(0x141)]);}export function enrichAppListItemsWithMergedSelection(_0xfb77cc,_0x57b874){const _0x5ac810=a22_0x2785;if(!_0x57b874)return;const _0x52cac1=_0x57b874[_0x5ac810(0x14c)]&&typeof _0x57b874[_0x5ac810(0x14c)]===_0x5ac810(0x142)?_0x57b874['apps']:{},_0x36840d=Object[_0x5ac810(0x15f)](_0x52cac1)[_0x5ac810(0x147)]>0x0;for(const _0x3c4b7f of _0xfb77cc){_0x3c4b7f['isCurrent']=![];}const _0x2dbf23=_0x57b874[_0x5ac810(0x134)]!=null?String(_0x57b874['appCode'])[_0x5ac810(0x136)]():'';if(_0x36840d){const _0x139657=_0x57b874[_0x5ac810(0x160)]??_0x57b874[_0x5ac810(0x14d)];if(_0x139657)for(const _0x1830f1 of _0xfb77cc){_0x1830f1[_0x5ac810(0x12f)]===!![]&&_0x1830f1[_0x5ac810(0x15e)]===_0x139657&&(_0x1830f1['isCurrent']=!![]);}for(const _0x40c779 of _0xfb77cc){if(_0x40c779[_0x5ac810(0x12f)]!==![])continue;if(_0x57b874[_0x5ac810(0x14d)])continue;_0x2dbf23&&String(_0x40c779[_0x5ac810(0x143)]??'')[_0x5ac810(0x136)]()===_0x2dbf23&&(_0x40c779[_0x5ac810(0x152)]=!![]);}return;}if(!_0x2dbf23)return;for(const _0x1f9ccc of _0xfb77cc){String(_0x1f9ccc[_0x5ac810(0x143)]??'')['trim']()===_0x2dbf23&&(_0x1f9ccc['isCurrent']=!![]);}}export function resolveAppScopeForWrite(_0x1c1e7f,_0x3c4ae5,_0x17d232){const _0x21fd20=a22_0x2785;if(_0x3c4ae5)return _0x21fd20(0x154);const _0x20b15b=_0x17d232['projectConfig'][_0x21fd20(0x14c)]&&typeof _0x17d232[_0x21fd20(0x14a)][_0x21fd20(0x14c)]===_0x21fd20(0x142)?_0x17d232[_0x21fd20(0x14a)]['apps']:{},_0x54c927=_0x17d232[_0x21fd20(0x150)][_0x21fd20(0x14c)]&&typeof _0x17d232[_0x21fd20(0x150)][_0x21fd20(0x14c)]===_0x21fd20(0x142)?_0x17d232['globalConfig'][_0x21fd20(0x14c)]:{};if(Object[_0x21fd20(0x135)][_0x21fd20(0x15c)][_0x21fd20(0x151)](_0x20b15b,_0x1c1e7f))return _0x21fd20(0x12d);if(Object[_0x21fd20(0x135)][_0x21fd20(0x15c)][_0x21fd20(0x151)](_0x54c927,_0x1c1e7f))return _0x21fd20(0x154);return'project';}function a22_0x2785(_0x3a4fdc,_0x3b032d){_0x3a4fdc=_0x3a4fdc-0x12d;const _0x1b9a7e=a22_0x1b9a();let _0x27852d=_0x1b9a7e[_0x3a4fdc];return _0x27852d;}export function appDefinedIn(_0xc69d34,_0x598e89,_0x8b3bde,_0x141914){const _0x597cfa=a22_0x2785;if(_0x141914)return Object['prototype'][_0x597cfa(0x15c)][_0x597cfa(0x151)](_0x8b3bde,_0xc69d34)?_0x597cfa(0x12d):_0x597cfa(0x154);const _0x549812=Object['prototype'][_0x597cfa(0x15c)][_0x597cfa(0x151)](_0x598e89,_0xc69d34),_0x44238b=Object['prototype']['hasOwnProperty'][_0x597cfa(0x151)](_0x8b3bde,_0xc69d34);if(_0x549812&&_0x44238b)return'both';if(_0x44238b)return _0x597cfa(0x12d);return _0x597cfa(0x154);}export function resolveDefaultAppSource(_0x54c20e){const _0x1bffaf=a22_0x2785,_0x3874a3=_0x54c20e['projectConfig']['apps']&&typeof _0x54c20e[_0x1bffaf(0x14a)]['apps']===_0x1bffaf(0x142)?_0x54c20e[_0x1bffaf(0x14a)][_0x1bffaf(0x14c)]:{};if(_0x1bffaf(0x14d)in _0x54c20e[_0x1bffaf(0x14a)])return'project';if(Object[_0x1bffaf(0x15f)](_0x3874a3)['length']>0x0)return _0x1bffaf(0x12d);if(_0x54c20e[_0x1bffaf(0x14a)]['inherit']===![])return null;if(_0x54c20e[_0x1bffaf(0x150)][_0x1bffaf(0x14d)])return _0x1bffaf(0x154);return null;}export function getConfigPath(_0x490645={}){const _0x5c3281=a22_0x2785,_0x314792=_0x490645[_0x5c3281(0x154)]?_0x5c3281(0x154):_0x5c3281(0x12d);return resolveWriteConfigPath(_0x314792);}export function readConfig(_0x5804b6={}){return readConfigFile(getConfigPath(_0x5804b6));}export function writeConfig(_0x354145,_0x5c950a={}){writeConfigFile(getConfigPath(_0x5c950a),_0x354145);}export function scopeLabel(_0x160c9c){const _0x3eec55=a22_0x2785;return _0x160c9c[_0x3eec55(0x154)]?_0x3eec55(0x157):'';}
1
+ (function(_0x44ea1b,_0x2988c2){const _0x5c5012=a22_0x2bda,_0x495ba6=_0x44ea1b();while(!![]){try{const _0x457564=-parseInt(_0x5c5012(0x1a2))/0x1+-parseInt(_0x5c5012(0x1b4))/0x2*(-parseInt(_0x5c5012(0x189))/0x3)+-parseInt(_0x5c5012(0x1a9))/0x4+parseInt(_0x5c5012(0x1b1))/0x5+parseInt(_0x5c5012(0x195))/0x6+-parseInt(_0x5c5012(0x1a7))/0x7+parseInt(_0x5c5012(0x193))/0x8*(parseInt(_0x5c5012(0x18b))/0x9);if(_0x457564===_0x2988c2)break;else _0x495ba6['push'](_0x495ba6['shift']());}catch(_0x1b0c72){_0x495ba6['push'](_0x495ba6['shift']());}}}(a22_0x3bde,0xb4f0f));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x1958cc){const _0x102328=a22_0x2bda,_0x1de7ac=_0x1958cc?.[_0x102328(0x197)]();return _0x1de7ac?_0x1de7ac:null;}export function projectAppMembers(_0x237107){const _0x3ce2c1=a22_0x2bda,_0x59113c=new Map(),_0x457931=[..._0x237107][_0x3ce2c1(0x1ae)]((_0x180402,_0x1d9508)=>_0x180402['id']-_0x1d9508['id']),_0x55c8fb=(_0x130446,_0x4558c0,_0x14684b)=>{const _0x4428d7=_0x3ce2c1;for(const _0x4c5093 of _0x4558c0){const _0x4e1ac4=Number(_0x4c5093['userId']);if(!Number[_0x4428d7(0x192)](_0x4e1ac4)||_0x4e1ac4<=0x0)continue;let _0x32279e=_0x59113c['get'](_0x4e1ac4);if(!_0x32279e)_0x32279e={'userId':_0x4e1ac4,'username':nullableText(_0x4c5093[_0x4428d7(0x1a4)]),'displayName':nullableText(_0x4c5093[_0x4428d7(0x19d)]),'status':_0x14684b,'roles':[],'roleKeys':new Set()},_0x59113c[_0x4428d7(0x18d)](_0x4e1ac4,_0x32279e);else{_0x32279e[_0x4428d7(0x1a4)]??=nullableText(_0x4c5093['username']),_0x32279e[_0x4428d7(0x18a)]??=nullableText(_0x4c5093[_0x4428d7(0x19d)]);if(_0x14684b===_0x4428d7(0x198))_0x32279e['status']=_0x4428d7(0x198);}const _0x370012=_0x130446['id']+':'+_0x14684b;if(_0x32279e[_0x4428d7(0x1af)][_0x4428d7(0x190)](_0x370012))continue;_0x32279e[_0x4428d7(0x1af)][_0x4428d7(0x1b0)](_0x370012),_0x32279e[_0x4428d7(0x19f)]['push']({'roleId':_0x130446['id'],'roleName':nullableText(_0x130446[_0x4428d7(0x1a8)]),'roleType':nullableText(_0x130446[_0x4428d7(0x1a6)]),'membershipStatus':_0x14684b});}};for(const _0x48c0bc of _0x457931){_0x55c8fb(_0x48c0bc,_0x48c0bc[_0x3ce2c1(0x191)]??[],_0x3ce2c1(0x198)),_0x55c8fb(_0x48c0bc,_0x48c0bc[_0x3ce2c1(0x1ad)]??[],'PENDING');}return[..._0x59113c[_0x3ce2c1(0x1b2)]()]['map'](_0x1e1fea=>({'userId':_0x1e1fea['userId'],'username':_0x1e1fea[_0x3ce2c1(0x1a4)],'displayName':_0x1e1fea['displayName'],'status':_0x1e1fea['status'],'roles':_0x1e1fea[_0x3ce2c1(0x19f)][_0x3ce2c1(0x1ae)]((_0x3a374c,_0x3c5562)=>_0x3a374c[_0x3ce2c1(0x1b6)]-_0x3c5562[_0x3ce2c1(0x1b6)]||(_0x3a374c[_0x3ce2c1(0x1b3)]===_0x3c5562['membershipStatus']?0x0:_0x3a374c['membershipStatus']===_0x3ce2c1(0x198)?-0x1:0x1))}))['sort']((_0x38363e,_0x38329a)=>_0x38363e[_0x3ce2c1(0x18c)]-_0x38329a[_0x3ce2c1(0x18c)]);}export function enrichAppListItemsWithMergedSelection(_0x1291e4,_0x34e7b0){const _0x551ccc=a22_0x2bda;if(!_0x34e7b0)return;const _0x49d309=_0x34e7b0[_0x551ccc(0x194)]&&typeof _0x34e7b0[_0x551ccc(0x194)]===_0x551ccc(0x196)?_0x34e7b0[_0x551ccc(0x194)]:{},_0x5bb921=Object['keys'](_0x49d309)[_0x551ccc(0x1b5)]>0x0;for(const _0x4e9ef7 of _0x1291e4){_0x4e9ef7[_0x551ccc(0x19c)]=![];}const _0x5d6fae=_0x34e7b0['appCode']!=null?String(_0x34e7b0[_0x551ccc(0x18e)])['trim']():'';if(_0x5bb921){const _0x454fbd=_0x34e7b0['currentApp']??_0x34e7b0[_0x551ccc(0x1a1)];if(_0x454fbd)for(const _0x1249f7 of _0x1291e4){_0x1249f7['named']===!![]&&_0x1249f7['name']===_0x454fbd&&(_0x1249f7[_0x551ccc(0x19c)]=!![]);}for(const _0x2f8fe0 of _0x1291e4){if(_0x2f8fe0[_0x551ccc(0x1ab)]!==![])continue;if(_0x34e7b0[_0x551ccc(0x1a1)])continue;_0x5d6fae&&String(_0x2f8fe0[_0x551ccc(0x1a0)]??'')[_0x551ccc(0x197)]()===_0x5d6fae&&(_0x2f8fe0[_0x551ccc(0x19c)]=!![]);}return;}if(!_0x5d6fae)return;for(const _0x18fd1e of _0x1291e4){String(_0x18fd1e[_0x551ccc(0x1a0)]??'')[_0x551ccc(0x197)]()===_0x5d6fae&&(_0x18fd1e[_0x551ccc(0x19c)]=!![]);}}function a22_0x2bda(_0x4194c6,_0x329f8f){_0x4194c6=_0x4194c6-0x188;const _0x3bdeb6=a22_0x3bde();let _0x2bdab9=_0x3bdeb6[_0x4194c6];return _0x2bdab9;}export function resolveAppScopeForWrite(_0x1c70ba,_0x128dc7,_0x52761f){const _0x28bba5=a22_0x2bda;if(_0x128dc7)return'global';const _0x1e8704=_0x52761f[_0x28bba5(0x19b)][_0x28bba5(0x194)]&&typeof _0x52761f[_0x28bba5(0x19b)][_0x28bba5(0x194)]===_0x28bba5(0x196)?_0x52761f[_0x28bba5(0x19b)][_0x28bba5(0x194)]:{},_0x52ed9e=_0x52761f[_0x28bba5(0x1a5)][_0x28bba5(0x194)]&&typeof _0x52761f[_0x28bba5(0x1a5)][_0x28bba5(0x194)]===_0x28bba5(0x196)?_0x52761f[_0x28bba5(0x1a5)][_0x28bba5(0x194)]:{};if(Object[_0x28bba5(0x19a)][_0x28bba5(0x1aa)][_0x28bba5(0x1a3)](_0x1e8704,_0x1c70ba))return'project';if(Object['prototype'][_0x28bba5(0x1aa)][_0x28bba5(0x1a3)](_0x52ed9e,_0x1c70ba))return'global';return _0x28bba5(0x18f);}function a22_0x3bde(){const _0x3eea1b=['inherit','prototype','projectConfig','isCurrent','nickname','keys','roles','appcode','defaultApp','549631Qwblim','call','username','globalConfig','roleType','5893125cxzWPY','roleName','4149536ZfWXjl','hasOwnProperty','named','global','applyUserList','sort','roleKeys','add','1234675TOGJbg','values','membershipStatus','4OhbZmE','length','roleId','both','1952172SjSioI','displayName','9aElQIx','userId','set','appCode','project','has','userList','isFinite','4049304WsHaXE','apps','6692874DryBpq','object','trim','ACTIVE'];a22_0x3bde=function(){return _0x3eea1b;};return a22_0x3bde();}export function appDefinedIn(_0x167fcc,_0x2ae0d6,_0x27bcd7,_0x4e0c53){const _0x67da8f=a22_0x2bda;if(_0x4e0c53)return Object[_0x67da8f(0x19a)][_0x67da8f(0x1aa)]['call'](_0x27bcd7,_0x167fcc)?_0x67da8f(0x18f):_0x67da8f(0x1ac);const _0x4d1dfc=Object['prototype']['hasOwnProperty']['call'](_0x2ae0d6,_0x167fcc),_0x33e78c=Object[_0x67da8f(0x19a)][_0x67da8f(0x1aa)][_0x67da8f(0x1a3)](_0x27bcd7,_0x167fcc);if(_0x4d1dfc&&_0x33e78c)return _0x67da8f(0x188);if(_0x33e78c)return'project';return _0x67da8f(0x1ac);}export function resolveDefaultAppSource(_0x50d94e){const _0xdda5f6=a22_0x2bda,_0x2e67e9=_0x50d94e[_0xdda5f6(0x19b)][_0xdda5f6(0x194)]&&typeof _0x50d94e[_0xdda5f6(0x19b)]['apps']==='object'?_0x50d94e[_0xdda5f6(0x19b)][_0xdda5f6(0x194)]:{};if(_0xdda5f6(0x1a1)in _0x50d94e[_0xdda5f6(0x19b)])return'project';if(Object[_0xdda5f6(0x19e)](_0x2e67e9)['length']>0x0)return _0xdda5f6(0x18f);if(_0x50d94e[_0xdda5f6(0x19b)][_0xdda5f6(0x199)]===![])return null;if(_0x50d94e[_0xdda5f6(0x1a5)][_0xdda5f6(0x1a1)])return _0xdda5f6(0x1ac);return null;}export function getConfigPath(_0x284f31={}){const _0x38f1bf=a22_0x2bda,_0xf48594=_0x284f31['global']?_0x38f1bf(0x1ac):_0x38f1bf(0x18f);return resolveWriteConfigPath(_0xf48594);}export function readConfig(_0x231d96={}){return readConfigFile(getConfigPath(_0x231d96));}export function writeConfig(_0x213099,_0x2f2dd8={}){writeConfigFile(getConfigPath(_0x2f2dd8),_0x213099);}export function scopeLabel(_0x4d1949){const _0x4e570d=a22_0x2bda;return _0x4d1949[_0x4e570d(0x1ac)]?'\x20(global)':'';}
@@ -1 +1 @@
1
- const a23_0x4ea155=a23_0x1ab5;(function(_0xfb5ae2,_0x41650b){const _0x297c68=a23_0x1ab5,_0x3197de=_0xfb5ae2();while(!![]){try{const _0x448648=-parseInt(_0x297c68(0x1f4))/0x1*(-parseInt(_0x297c68(0x1e0))/0x2)+-parseInt(_0x297c68(0x1ed))/0x3*(-parseInt(_0x297c68(0x1f2))/0x4)+-parseInt(_0x297c68(0x1ea))/0x5+-parseInt(_0x297c68(0x1f3))/0x6+parseInt(_0x297c68(0x1e8))/0x7+parseInt(_0x297c68(0x1e9))/0x8*(-parseInt(_0x297c68(0x1ee))/0x9)+-parseInt(_0x297c68(0x1e5))/0xa*(-parseInt(_0x297c68(0x1eb))/0xb);if(_0x448648===_0x41650b)break;else _0x3197de['push'](_0x3197de['shift']());}catch(_0x3b00e6){_0x3197de['push'](_0x3197de['shift']());}}}(a23_0x2698,0x3912f));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a23_0x4ea155(0x1f5);export const appConfigDelete={'service':a23_0x4ea155(0x1e4),'command':a23_0x4ea155(0x1ec),'description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':'high-risk-write','args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x50bac3){readKeyArg(_0x50bac3);},async 'dryRun'(_0x5f9941){const _0x50b5fb=a23_0x4ea155,_0x148759=readKeyArg(_0x5f9941),_0x100ee1=await mustGetByKey(_0x5f9941[_0x50b5fb(0x1e7)],_0x148759);return asAppConfigDryRunResult(buildMutationData({'operation':'delete','appCode':_0x5f9941[_0x50b5fb(0x1e7)],'key':_0x148759,'before':projectAppConfig(_0x100ee1),'after':null,'dryRun':!![]}),{'method':_0x50b5fb(0x1e1),'url':DELETE_PATH});},async 'execute'(_0x5586e3){const _0x430577=a23_0x4ea155,_0x1869e3=readKeyArg(_0x5586e3),_0x1ae33e=await mustGetByKey(_0x5586e3[_0x430577(0x1e7)],_0x1869e3);return await withAppConfigApiBoundary(_0x430577(0x1ec),{'appCode':_0x5586e3[_0x430577(0x1e7)],'key':_0x1869e3},()=>deleteAppConfig({'appCode':_0x5586e3[_0x430577(0x1e7)],'id':requireAppConfigId(_0x1ae33e,_0x1869e3,_0x5586e3[_0x430577(0x1e7)])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x5586e3[_0x430577(0x1e7)],'key':_0x1869e3,'before':projectAppConfig(_0x1ae33e),'after':null,'dryRun':![]}),'message':'Deleted\x20app\x20config\x20'+_0x1869e3};}};function a23_0x1ab5(_0x3f810c,_0x49bfe6){_0x3f810c=_0x3f810c-0x1e0;const _0x26988a=a23_0x2698();let _0x1ab56a=_0x26988a[_0x3f810c];return _0x1ab56a;}async function mustGetByKey(_0x4239b7,_0x26cb76){const _0x2ef76d=a23_0x4ea155,_0x194313=await withAppConfigApiBoundary(_0x2ef76d(0x1ef),{'appCode':_0x4239b7,'key':_0x26cb76},()=>getAppConfigByKey(_0x4239b7,_0x26cb76));if(!_0x194313)throw CliErrors[_0x2ef76d(0x1e2)]('App\x20config\x20key\x20not\x20found:\x20'+_0x26cb76,'appCode:\x20'+_0x4239b7);return _0x194313;}function requireAppConfigId(_0x530d5d,_0x30990b,_0x198c73){const _0x2728b6=a23_0x4ea155;if(typeof _0x530d5d['id']===_0x2728b6(0x1f1)&&Number[_0x2728b6(0x1e3)](_0x530d5d['id'])&&_0x530d5d['id']>0x0)return _0x530d5d['id'];throw CliErrors['apiError'](_0x2728b6(0x1f0)+_0x30990b+_0x2728b6(0x1e6)+_0x198c73);}function a23_0x2698(){const _0x506476=['9SHhzLa','/smartapi/app-config/delete','51202tLBZcB','POST','validation','isFinite','app-config','20vwnxjx',',\x20appCode=','appCode','1403549oKTwkd','392HCybEm','1952570mVJUSl','2158970MTtEkT','delete','6KYMvpL','33876ypwaJg','get','App\x20config\x20server\x20id\x20missing\x20for\x20key=','number','232528IKzqIf','785970tcWYJf'];a23_0x2698=function(){return _0x506476;};return a23_0x2698();}
1
+ const a23_0xf9de19=a23_0x65ff;(function(_0x183763,_0x2eee06){const _0xa751f7=a23_0x65ff,_0x1e263d=_0x183763();while(!![]){try{const _0x3cbc8a=parseInt(_0xa751f7(0x16c))/0x1+parseInt(_0xa751f7(0x182))/0x2*(parseInt(_0xa751f7(0x181))/0x3)+-parseInt(_0xa751f7(0x176))/0x4*(-parseInt(_0xa751f7(0x183))/0x5)+-parseInt(_0xa751f7(0x17e))/0x6*(parseInt(_0xa751f7(0x171))/0x7)+parseInt(_0xa751f7(0x180))/0x8*(-parseInt(_0xa751f7(0x17c))/0x9)+parseInt(_0xa751f7(0x178))/0xa+-parseInt(_0xa751f7(0x17f))/0xb;if(_0x3cbc8a===_0x2eee06)break;else _0x1e263d['push'](_0x1e263d['shift']());}catch(_0x30a18e){_0x1e263d['push'](_0x1e263d['shift']());}}}(a23_0x283c,0x75b18));function a23_0x65ff(_0xf0deab,_0x1da849){_0xf0deab=_0xf0deab-0x16b;const _0x283c7f=a23_0x283c();let _0x65ffb=_0x283c7f[_0xf0deab];return _0x65ffb;}function a23_0x283c(){const _0x2972f0=['924376NZUgyN','/smartapi/app-config/delete','7648470hYziId','POST','validation','appCode','3571389qcxjaq','App\x20config\x20server\x20id\x20missing\x20for\x20key=','12YhceZt','11322047wVltKL','8YpoGtE','732siXvIs','4932eDMwmq','5uyCCZg','App\x20config\x20key\x20not\x20found:\x20','isFinite',',\x20appCode=','377321iohLIo','Deleted\x20app\x20config\x20','number','delete','app-config','233786eyvlFw','get','apiError','appCode:\x20','high-risk-write'];a23_0x283c=function(){return _0x2972f0;};return a23_0x283c();}import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a23_0xf9de19(0x177);export const appConfigDelete={'service':a23_0xf9de19(0x170),'command':'delete','description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':a23_0xf9de19(0x175),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1a0c12){readKeyArg(_0x1a0c12);},async 'dryRun'(_0x530acb){const _0x4e46e4=a23_0xf9de19,_0x4f471c=readKeyArg(_0x530acb),_0x2fd157=await mustGetByKey(_0x530acb[_0x4e46e4(0x17b)],_0x4f471c);return asAppConfigDryRunResult(buildMutationData({'operation':_0x4e46e4(0x16f),'appCode':_0x530acb[_0x4e46e4(0x17b)],'key':_0x4f471c,'before':projectAppConfig(_0x2fd157),'after':null,'dryRun':!![]}),{'method':_0x4e46e4(0x179),'url':DELETE_PATH});},async 'execute'(_0xd9ff0){const _0x761c3c=a23_0xf9de19,_0x219b8b=readKeyArg(_0xd9ff0),_0x5a1bee=await mustGetByKey(_0xd9ff0['appCode'],_0x219b8b);return await withAppConfigApiBoundary(_0x761c3c(0x16f),{'appCode':_0xd9ff0[_0x761c3c(0x17b)],'key':_0x219b8b},()=>deleteAppConfig({'appCode':_0xd9ff0[_0x761c3c(0x17b)],'id':requireAppConfigId(_0x5a1bee,_0x219b8b,_0xd9ff0[_0x761c3c(0x17b)])})),{'ok':!![],'data':buildMutationData({'operation':_0x761c3c(0x16f),'appCode':_0xd9ff0[_0x761c3c(0x17b)],'key':_0x219b8b,'before':projectAppConfig(_0x5a1bee),'after':null,'dryRun':![]}),'message':_0x761c3c(0x16d)+_0x219b8b};}};async function mustGetByKey(_0x34bdf2,_0x3158de){const _0x3801fa=a23_0xf9de19,_0x153ac3=await withAppConfigApiBoundary(_0x3801fa(0x172),{'appCode':_0x34bdf2,'key':_0x3158de},()=>getAppConfigByKey(_0x34bdf2,_0x3158de));if(!_0x153ac3)throw CliErrors[_0x3801fa(0x17a)](_0x3801fa(0x184)+_0x3158de,_0x3801fa(0x174)+_0x34bdf2);return _0x153ac3;}function requireAppConfigId(_0x116302,_0x3b7dcd,_0x892c3f){const _0x7bd822=a23_0xf9de19;if(typeof _0x116302['id']===_0x7bd822(0x16e)&&Number[_0x7bd822(0x185)](_0x116302['id'])&&_0x116302['id']>0x0)return _0x116302['id'];throw CliErrors[_0x7bd822(0x173)](_0x7bd822(0x17d)+_0x3b7dcd+_0x7bd822(0x16b)+_0x892c3f);}
@@ -1 +1 @@
1
- const a24_0x482750=a24_0x4ed7;(function(_0x4ae021,_0x5e141a){const _0x427029=a24_0x4ed7,_0x43e376=_0x4ae021();while(!![]){try{const _0x20cd61=parseInt(_0x427029(0x1fc))/0x1+parseInt(_0x427029(0x1fa))/0x2+parseInt(_0x427029(0x1ef))/0x3+-parseInt(_0x427029(0x1f7))/0x4+-parseInt(_0x427029(0x1f4))/0x5+parseInt(_0x427029(0x1f8))/0x6*(-parseInt(_0x427029(0x1fe))/0x7)+-parseInt(_0x427029(0x1f9))/0x8*(parseInt(_0x427029(0x1ed))/0x9);if(_0x20cd61===_0x5e141a)break;else _0x43e376['push'](_0x43e376['shift']());}catch(_0x2d3ff1){_0x43e376['push'](_0x43e376['shift']());}}}(a24_0x2e8e,0xec2d5));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';function a24_0x4ed7(_0x1ff910,_0x5ee5ce){_0x1ff910=_0x1ff910-0x1eb;const _0x2e8e84=a24_0x2e8e();let _0x4ed733=_0x2e8e84[_0x1ff910];return _0x4ed733;}export const appConfigGet={'service':'app-config','command':a24_0x482750(0x1ee),'description':'Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','risk':a24_0x482750(0x1f5),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x5ea8c5){readKeyArg(_0x5ea8c5);},async 'execute'(_0x2ce050){const _0x44d4ed=a24_0x482750,_0x4e2913=readKeyArg(_0x2ce050),_0x4413b3=await withAppConfigApiBoundary('get',{'appCode':_0x2ce050[_0x44d4ed(0x1fd)],'key':_0x4e2913},()=>getAppConfigByKey(_0x2ce050[_0x44d4ed(0x1fd)],_0x4e2913));if(!_0x4413b3)throw CliErrors[_0x44d4ed(0x1fb)](_0x44d4ed(0x1ec)+_0x4e2913,_0x44d4ed(0x1f2)+_0x2ce050[_0x44d4ed(0x1fd)]);const _0x5daf19=projectAppConfig(_0x4413b3,{'reveal':_0x2ce050[_0x44d4ed(0x1f0)](_0x44d4ed(0x1f6))});return{'ok':!![],'data':{'config':_0x5daf19},'message':_0x2ce050[_0x44d4ed(0x1f0)](_0x44d4ed(0x1f6))?_0x44d4ed(0x1eb)+_0x4e2913+_0x44d4ed(0x1f3):'Loaded\x20app\x20config\x20'+_0x4e2913+_0x44d4ed(0x1f1)};}};function a24_0x2e8e(){const _0x24acc8=['5915852OvGmCb','162dsUmNR','10847128jkQjKR','3635394taxqGp','validation','999331wKvQdr','appCode','90006ceqDAw','Loaded\x20app\x20config\x20','App\x20config\x20key\x20not\x20found:\x20','9HAzhcK','get','5158167qbgnJy','bool','\x20with\x20value\x20redacted','appCode:\x20','\x20with\x20value\x20revealed','1935080YcrXsN','read','reveal'];a24_0x2e8e=function(){return _0x24acc8;};return a24_0x2e8e();}
1
+ const a24_0x59084f=a24_0x94ba;(function(_0x2d66ef,_0x313577){const _0x4f18b6=a24_0x94ba,_0x4e22e0=_0x2d66ef();while(!![]){try{const _0x4d1503=-parseInt(_0x4f18b6(0xe9))/0x1*(parseInt(_0x4f18b6(0xdf))/0x2)+-parseInt(_0x4f18b6(0xe0))/0x3+parseInt(_0x4f18b6(0xed))/0x4*(parseInt(_0x4f18b6(0xe8))/0x5)+-parseInt(_0x4f18b6(0xe6))/0x6*(parseInt(_0x4f18b6(0xe5))/0x7)+parseInt(_0x4f18b6(0xe1))/0x8*(parseInt(_0x4f18b6(0xe3))/0x9)+-parseInt(_0x4f18b6(0xec))/0xa*(-parseInt(_0x4f18b6(0xf3))/0xb)+parseInt(_0x4f18b6(0xeb))/0xc*(parseInt(_0x4f18b6(0xf0))/0xd);if(_0x4d1503===_0x313577)break;else _0x4e22e0['push'](_0x4e22e0['shift']());}catch(_0x5b72ae){_0x4e22e0['push'](_0x4e22e0['shift']());}}}(a24_0x4572,0x5a202));function a24_0x4572(){const _0x508048=['52CABARw','598266fbiyJD','377032ZwHiCN','read','9vtjwIq','appCode:\x20','56HvLYHj','258486GlwGFF','bool','5bzqiWI','23245akBqlJ','appCode','1956crMBqD','2420uaGYuk','2620084AtRPvn','validation','app-config','11206vNSYlA','get','App\x20config\x20key\x20not\x20found:\x20','30679kjdnSw','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','Loaded\x20app\x20config\x20'];a24_0x4572=function(){return _0x508048;};return a24_0x4572();}import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a24_0x94ba(_0x5a7e90,_0x3cbc0d){_0x5a7e90=_0x5a7e90-0xde;const _0x457254=a24_0x4572();let _0x94baca=_0x457254[_0x5a7e90];return _0x94baca;}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a24_0x59084f(0xef),'command':a24_0x59084f(0xf1),'description':a24_0x59084f(0xf4),'risk':a24_0x59084f(0xe2),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x40f59b){readKeyArg(_0x40f59b);},async 'execute'(_0x4ade4e){const _0x53a1d8=a24_0x59084f,_0x5aeec5=readKeyArg(_0x4ade4e),_0x303170=await withAppConfigApiBoundary(_0x53a1d8(0xf1),{'appCode':_0x4ade4e['appCode'],'key':_0x5aeec5},()=>getAppConfigByKey(_0x4ade4e[_0x53a1d8(0xea)],_0x5aeec5));if(!_0x303170)throw CliErrors[_0x53a1d8(0xee)](_0x53a1d8(0xf2)+_0x5aeec5,_0x53a1d8(0xe4)+_0x4ade4e[_0x53a1d8(0xea)]);const _0x51be7c=projectAppConfig(_0x303170,{'reveal':_0x4ade4e[_0x53a1d8(0xe7)]('reveal')});return{'ok':!![],'data':{'config':_0x51be7c},'message':_0x4ade4e[_0x53a1d8(0xe7)]('reveal')?_0x53a1d8(0xde)+_0x5aeec5+'\x20with\x20value\x20revealed':_0x53a1d8(0xde)+_0x5aeec5+'\x20with\x20value\x20redacted'};}};
@@ -1 +1 @@
1
- (function(_0x145219,_0x38bb59){const _0x52f6a6=a25_0x2a06,_0x3d6be3=_0x145219();while(!![]){try{const _0x368816=-parseInt(_0x52f6a6(0xcc))/0x1+parseInt(_0x52f6a6(0xca))/0x2*(-parseInt(_0x52f6a6(0xce))/0x3)+parseInt(_0x52f6a6(0xd0))/0x4*(parseInt(_0x52f6a6(0xcd))/0x5)+-parseInt(_0x52f6a6(0xcf))/0x6*(parseInt(_0x52f6a6(0xc9))/0x7)+-parseInt(_0x52f6a6(0xd1))/0x8+-parseInt(_0x52f6a6(0xd2))/0x9+-parseInt(_0x52f6a6(0xcb))/0xa*(-parseInt(_0x52f6a6(0xd3))/0xb);if(_0x368816===_0x38bb59)break;else _0x3d6be3['push'](_0x3d6be3['shift']());}catch(_0x2d1219){_0x3d6be3['push'](_0x3d6be3['shift']());}}}(a25_0x3d1b,0xa3cf8));import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';function a25_0x3d1b(){const _0x525629=['36tVGJxe','24zymele','5322152GllweO','10347399YiXHop','11ahYctA','537257gwumgP','571630iUOQCo','35958590CUvoGO','961623oPBrFv','736540JZIeuk','6ZUxlEq'];a25_0x3d1b=function(){return _0x525629;};return a25_0x3d1b();}import{appConfigSet}from'../../commands/app-config/set.js';function a25_0x2a06(_0x114e0d,_0x5f20f5){_0x114e0d=_0x114e0d-0xc9;const _0x3d1b5d=a25_0x3d1b();let _0x2a0639=_0x3d1b5d[_0x114e0d];return _0x2a0639;}import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
1
+ (function(_0x44bb2d,_0x5a1673){const _0x2d591a=a25_0x5bd1,_0x531b48=_0x44bb2d();while(!![]){try{const _0x538979=parseInt(_0x2d591a(0xc4))/0x1+parseInt(_0x2d591a(0xbf))/0x2*(parseInt(_0x2d591a(0xc2))/0x3)+-parseInt(_0x2d591a(0xbe))/0x4*(-parseInt(_0x2d591a(0xc8))/0x5)+-parseInt(_0x2d591a(0xc7))/0x6+-parseInt(_0x2d591a(0xc1))/0x7*(-parseInt(_0x2d591a(0xc3))/0x8)+-parseInt(_0x2d591a(0xc0))/0x9+-parseInt(_0x2d591a(0xc6))/0xa*(parseInt(_0x2d591a(0xc5))/0xb);if(_0x538979===_0x5a1673)break;else _0x531b48['push'](_0x531b48['shift']());}catch(_0x2a2661){_0x531b48['push'](_0x531b48['shift']());}}}(a25_0x5469,0x311f4));import{appConfigList}from'../../commands/app-config/list.js';function a25_0x5bd1(_0x2ab11f,_0x280c16){_0x2ab11f=_0x2ab11f-0xbe;const _0x546977=a25_0x5469();let _0x5bd15b=_0x546977[_0x2ab11f];return _0x5bd15b;}function a25_0x5469(){const _0x12100d=['3DCZSLQ','56rIVRds','176982fuLpLR','768053wORPib','40tsAUZP','1250976OAFuBG','130lMFhge','51532YcpHOY','494842WSNbiQ','2812554WvMfYV','242137xyUCxy'];a25_0x5469=function(){return _0x12100d;};return a25_0x5469();}import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
@@ -1 +1 @@
1
- const a26_0x1dddd2=a26_0x4990;(function(_0x46619b,_0x1de65b){const _0x780c5e=a26_0x4990,_0x14b3b4=_0x46619b();while(!![]){try{const _0x3fb0a3=parseInt(_0x780c5e(0xfa))/0x1*(parseInt(_0x780c5e(0xfb))/0x2)+parseInt(_0x780c5e(0xfd))/0x3+-parseInt(_0x780c5e(0xf9))/0x4+parseInt(_0x780c5e(0xf3))/0x5+-parseInt(_0x780c5e(0xf1))/0x6*(-parseInt(_0x780c5e(0xf6))/0x7)+parseInt(_0x780c5e(0xf5))/0x8*(-parseInt(_0x780c5e(0xf4))/0x9)+-parseInt(_0x780c5e(0xf2))/0xa*(-parseInt(_0x780c5e(0xf8))/0xb);if(_0x3fb0a3===_0x1de65b)break;else _0x14b3b4['push'](_0x14b3b4['shift']());}catch(_0x209473){_0x14b3b4['push'](_0x14b3b4['shift']());}}}(a26_0x1f5b,0xda1d2));import{listAppConfigs}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigList={'service':a26_0x1dddd2(0xfc),'command':a26_0x1dddd2(0xfe),'description':a26_0x1dddd2(0xeb),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0x1dddd2(0xed),'type':'string','description':a26_0x1dddd2(0xef)},TAGS_FLAG],async 'validate'(_0x4f0503){const _0x28576d=a26_0x1dddd2,_0x1dcc19=_0x4f0503['str'](_0x28576d(0xed))['trim']();if(_0x1dcc19)validateKey(_0x1dcc19);readOptionalTags(_0x4f0503);},async 'execute'(_0x3aa3e9){const _0x4632d0=a26_0x1dddd2,_0xc66680=_0x3aa3e9[_0x4632d0(0xf7)]('key')[_0x4632d0(0xec)]()||undefined,_0x44a391=readOptionalTags(_0x3aa3e9),_0x1215dc=await withAppConfigApiBoundary(_0x4632d0(0xfe),{'appCode':_0x3aa3e9[_0x4632d0(0xf0)]},()=>listAppConfigs(_0x3aa3e9[_0x4632d0(0xf0)],{'key':_0xc66680,'tags':_0x44a391})),_0x26c7f8=_0x1215dc[_0x4632d0(0xff)](_0x51f69a=>projectAppConfig(_0x51f69a));return{'ok':!![],'data':{'appCode':_0x3aa3e9[_0x4632d0(0xf0)],'count':_0x26c7f8[_0x4632d0(0xea)],'configs':_0x26c7f8},'message':'Found\x20'+_0x26c7f8[_0x4632d0(0xea)]+_0x4632d0(0xee)};}};function a26_0x4990(_0x50e713,_0x2dd146){_0x50e713=_0x50e713-0xea;const _0x1f5bde=a26_0x1f5b();let _0x499098=_0x1f5bde[_0x50e713];return _0x499098;}function a26_0x1f5b(){const _0x45ec73=['length','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','trim','key','\x20app\x20config(s)','Filter\x20by\x20exact\x20config\x20key','appCode','11274yBPYnm','1630UnepWI','8210555CCGONG','333BBIguL','171736CAhDub','2170WKJepy','str','27049STlxiV','6336692DqMZUA','116141DFnMLW','8mVVwyt','app-config','545592JEnMVU','list','map'];a26_0x1f5b=function(){return _0x45ec73;};return a26_0x1f5b();}
1
+ const a26_0x3ee6e2=a26_0x32cb;(function(_0x3e2297,_0x17e997){const _0x123b46=a26_0x32cb,_0x2f982e=_0x3e2297();while(!![]){try{const _0x15de78=parseInt(_0x123b46(0x1b1))/0x1+parseInt(_0x123b46(0x1aa))/0x2*(-parseInt(_0x123b46(0x1a8))/0x3)+parseInt(_0x123b46(0x1ab))/0x4*(-parseInt(_0x123b46(0x1ad))/0x5)+-parseInt(_0x123b46(0x1a2))/0x6*(parseInt(_0x123b46(0x1ac))/0x7)+-parseInt(_0x123b46(0x1b3))/0x8*(parseInt(_0x123b46(0x1a3))/0x9)+-parseInt(_0x123b46(0x1a5))/0xa*(parseInt(_0x123b46(0x19f))/0xb)+parseInt(_0x123b46(0x1b6))/0xc*(parseInt(_0x123b46(0x1b0))/0xd);if(_0x15de78===_0x17e997)break;else _0x2f982e['push'](_0x2f982e['shift']());}catch(_0x2a8790){_0x2f982e['push'](_0x2f982e['shift']());}}}(a26_0x4d8c,0x7a5ea));import{listAppConfigs}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a26_0x32cb(_0x5e90aa,_0x2a0da5){_0x5e90aa=_0x5e90aa-0x19f;const _0x4d8cac=a26_0x4d8c();let _0x32cbda=_0x4d8cac[_0x5e90aa];return _0x32cbda;}import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';function a26_0x4d8c(){const _0x2485bb=['16262311GidzEi','609598CMjAEZ','appCode','1406056LXdbpa','list','app-config','24xEEvkZ','2551802jumrbz','map','string','12UnSXSH','45BQJOSZ','trim','20DrmFPi','Found\x20','str','33549gjJSYG','key','14JVYVNN','3896jyAIIq','695373mfCviT','5085UjsaYb','length','\x20app\x20config(s)'];a26_0x4d8c=function(){return _0x2485bb;};return a26_0x4d8c();}export const appConfigList={'service':a26_0x3ee6e2(0x1b5),'command':'list','description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a26_0x3ee6e2(0x1a9),'type':a26_0x3ee6e2(0x1a1),'description':'Filter\x20by\x20exact\x20config\x20key'},TAGS_FLAG],async 'validate'(_0x277dab){const _0xd2d200=a26_0x3ee6e2,_0x157f6f=_0x277dab[_0xd2d200(0x1a7)](_0xd2d200(0x1a9))['trim']();if(_0x157f6f)validateKey(_0x157f6f);readOptionalTags(_0x277dab);},async 'execute'(_0x4796f1){const _0x21e19d=a26_0x3ee6e2,_0x31830a=_0x4796f1[_0x21e19d(0x1a7)](_0x21e19d(0x1a9))[_0x21e19d(0x1a4)]()||undefined,_0x3e08cf=readOptionalTags(_0x4796f1),_0x40d8e9=await withAppConfigApiBoundary(_0x21e19d(0x1b4),{'appCode':_0x4796f1['appCode']},()=>listAppConfigs(_0x4796f1['appCode'],{'key':_0x31830a,'tags':_0x3e08cf})),_0x35e7db=_0x40d8e9[_0x21e19d(0x1a0)](_0x3ca90f=>projectAppConfig(_0x3ca90f));return{'ok':!![],'data':{'appCode':_0x4796f1[_0x21e19d(0x1b2)],'count':_0x35e7db[_0x21e19d(0x1ae)],'configs':_0x35e7db},'message':_0x21e19d(0x1a6)+_0x35e7db[_0x21e19d(0x1ae)]+_0x21e19d(0x1af)};}};
@@ -1 +1 @@
1
- const a27_0x3dfa92=a27_0x431c;(function(_0x33101b,_0x3487fc){const _0x4255d3=a27_0x431c,_0x55a9c4=_0x33101b();while(!![]){try{const _0x24fc57=parseInt(_0x4255d3(0x17d))/0x1+parseInt(_0x4255d3(0x183))/0x2*(-parseInt(_0x4255d3(0x177))/0x3)+parseInt(_0x4255d3(0x17c))/0x4*(-parseInt(_0x4255d3(0x17b))/0x5)+parseInt(_0x4255d3(0x181))/0x6+parseInt(_0x4255d3(0x170))/0x7*(-parseInt(_0x4255d3(0x17a))/0x8)+-parseInt(_0x4255d3(0x176))/0x9+parseInt(_0x4255d3(0x173))/0xa;if(_0x24fc57===_0x3487fc)break;else _0x55a9c4['push'](_0x55a9c4['shift']());}catch(_0x1b9473){_0x55a9c4['push'](_0x55a9c4['shift']());}}}(a27_0x3590,0x5500a));function a27_0x3590(){const _0x4c3e95=['tags','8396970jMMOPJ','get','file','2572146OQQBZh','566682wsvakf','App\x20config\x20server\x20id\x20missing\x20for\x20key=','create','55392hLjthP','303005ebnfyf','36QjInks','575356aTDFIi','POST','isFinite','high-risk-write','508620oxKpIf','Updated','2MIHkJF','appCode','Read\x20config\x20value\x20from\x20file',',\x20appCode=','app-config','update','apiError','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','133HyRGZZ','Created'];a27_0x3590=function(){return _0x4c3e95;};return a27_0x3590();}import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH='/smartapi/app-config/create',UPDATE_PATH='/smartapi/app-config/update';export const appConfigSet={'service':a27_0x3dfa92(0x187),'command':'set','description':a27_0x3dfa92(0x18a),'risk':a27_0x3dfa92(0x180),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a27_0x3dfa92(0x175),'type':'string','description':a27_0x3dfa92(0x185)}],async 'validate'(_0x4be537){readKeyArg(_0x4be537),readOptionalTags(_0x4be537),assertSingleValueSource(_0x4be537);},async 'dryRun'(_0xbe31a7){const _0x336066=a27_0x3dfa92,_0xce6208=readKeyArg(_0xbe31a7),_0x580f46=readOptionalTags(_0xbe31a7),_0x5b6ed8=assertSingleValueSource(_0xbe31a7);await assertValueSourceReadable(_0x5b6ed8);const _0x51abe5=await withAppConfigApiBoundary('get',{'appCode':_0xbe31a7[_0x336066(0x184)],'key':_0xce6208},()=>getAppConfigByKey(_0xbe31a7[_0x336066(0x184)],_0xce6208)),_0x56fd08=_0x51abe5?_0x336066(0x188):_0x336066(0x179),_0x447ff9=_0x51abe5?projectAppConfig(_0x51abe5):null,_0x29dae8=plannedAppConfig({'appCode':_0xbe31a7['appCode'],'key':_0xce6208,'tags':_0x580f46??_0x51abe5?.[_0x336066(0x172)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x56fd08,'appCode':_0xbe31a7[_0x336066(0x184)],'key':_0xce6208,'before':_0x447ff9,'after':_0x29dae8,'dryRun':!![]}),{'method':_0x336066(0x17e),'url':_0x56fd08===_0x336066(0x188)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x21613f){const _0x2dc60b=a27_0x3dfa92,_0x993dc8=readKeyArg(_0x21613f),_0x2c601c=readOptionalTags(_0x21613f),_0x2a57fe=await withAppConfigApiBoundary(_0x2dc60b(0x174),{'appCode':_0x21613f[_0x2dc60b(0x184)],'key':_0x993dc8},()=>getAppConfigByKey(_0x21613f[_0x2dc60b(0x184)],_0x993dc8)),_0x411d17=_0x2a57fe?projectAppConfig(_0x2a57fe):null,_0x956313=_0x2a57fe?_0x2dc60b(0x188):_0x2dc60b(0x179),{value:_0x595149,warnings:_0xf10b30}=await readAppConfigValue(_0x21613f),_0x277dcf={'appCode':_0x21613f['appCode'],'key':_0x993dc8,'value':_0x595149,'tags':_0x2c601c??_0x2a57fe?.[_0x2dc60b(0x172)]??undefined};await withAppConfigApiBoundary(_0x956313,{'appCode':_0x21613f['appCode'],'key':_0x993dc8},async()=>{const _0x532bb0=_0x2dc60b;_0x2a57fe?await updateAppConfig({..._0x277dcf,'id':requireAppConfigId(_0x2a57fe,_0x993dc8,_0x21613f[_0x532bb0(0x184)])}):await createAppConfig(_0x277dcf);});const _0x26dc66=await withAppConfigApiBoundary(_0x2dc60b(0x174),{'appCode':_0x21613f['appCode'],'key':_0x993dc8},()=>getAppConfigByKey(_0x21613f['appCode'],_0x993dc8)),_0xb59ca7=_0x26dc66?projectAppConfig(_0x26dc66):plannedAppConfig({'appCode':_0x21613f[_0x2dc60b(0x184)],'key':_0x993dc8,'tags':_0x277dcf[_0x2dc60b(0x172)],'hasValue':_0x595149!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x956313,'appCode':_0x21613f[_0x2dc60b(0x184)],'key':_0x993dc8,'before':_0x411d17,'after':_0xb59ca7,'dryRun':![],'warnings':_0xf10b30}),'message':(_0x956313===_0x2dc60b(0x188)?_0x2dc60b(0x182):_0x2dc60b(0x171))+'\x20app\x20config\x20'+_0x993dc8};}};function a27_0x431c(_0x2b9774,_0x4dd3a1){_0x2b9774=_0x2b9774-0x170;const _0x3590ca=a27_0x3590();let _0x431c44=_0x3590ca[_0x2b9774];return _0x431c44;}function requireAppConfigId(_0x3b46f9,_0x253986,_0xeb7ba5){const _0x1aab1a=a27_0x3dfa92;if(typeof _0x3b46f9['id']==='number'&&Number[_0x1aab1a(0x17f)](_0x3b46f9['id'])&&_0x3b46f9['id']>0x0)return _0x3b46f9['id'];throw CliErrors[_0x1aab1a(0x189)](_0x1aab1a(0x178)+_0x253986+_0x1aab1a(0x186)+_0xeb7ba5);}
1
+ const a27_0x479f3a=a27_0x5ede;(function(_0x4aab85,_0x32348a){const _0x181ec5=a27_0x5ede,_0x450dcd=_0x4aab85();while(!![]){try{const _0x138585=parseInt(_0x181ec5(0x12b))/0x1+parseInt(_0x181ec5(0x122))/0x2+-parseInt(_0x181ec5(0x133))/0x3+-parseInt(_0x181ec5(0x13d))/0x4*(-parseInt(_0x181ec5(0x13b))/0x5)+-parseInt(_0x181ec5(0x137))/0x6+-parseInt(_0x181ec5(0x134))/0x7*(-parseInt(_0x181ec5(0x12c))/0x8)+parseInt(_0x181ec5(0x12f))/0x9*(-parseInt(_0x181ec5(0x128))/0xa);if(_0x138585===_0x32348a)break;else _0x450dcd['push'](_0x450dcd['shift']());}catch(_0x46f17e){_0x450dcd['push'](_0x450dcd['shift']());}}}(a27_0x2872,0x6d921));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a27_0x5ede(_0xfbdf01,_0xac4e75){_0xfbdf01=_0xfbdf01-0x121;const _0x287252=a27_0x2872();let _0x5ede11=_0x287252[_0xfbdf01];return _0x5ede11;}function a27_0x2872(){const _0x483547=['4115605JDOoCp','POST','4qGKkPm','Updated','set','521194ImwNeO','get','update','string','App\x20config\x20server\x20id\x20missing\x20for\x20key=','/smartapi/app-config/update','2910gYPHMi','\x20app\x20config\x20','/smartapi/app-config/create','594823MDegUs','4793944sAiyUs','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','write','45648WusdMY','create','isFinite','app-config','1056693oRPDOh','7CgNzRr','appCode','Created','4800pWFCoy','number','tags','Read\x20config\x20value\x20from\x20file'];a27_0x2872=function(){return _0x483547;};return a27_0x2872();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH=a27_0x479f3a(0x12a),UPDATE_PATH=a27_0x479f3a(0x127);export const appConfigSet={'service':a27_0x479f3a(0x132),'command':a27_0x479f3a(0x121),'description':a27_0x479f3a(0x12d),'risk':a27_0x479f3a(0x12e),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':'file','type':a27_0x479f3a(0x125),'description':a27_0x479f3a(0x13a)}],async 'validate'(_0x410141){readKeyArg(_0x410141),readOptionalTags(_0x410141),assertSingleValueSource(_0x410141);},async 'dryRun'(_0xefe9b6){const _0x2092e5=a27_0x479f3a,_0x484ad6=readKeyArg(_0xefe9b6),_0x4aef86=readOptionalTags(_0xefe9b6),_0x8adb6a=assertSingleValueSource(_0xefe9b6);await assertValueSourceReadable(_0x8adb6a);const _0x15c7f3=await withAppConfigApiBoundary(_0x2092e5(0x123),{'appCode':_0xefe9b6[_0x2092e5(0x135)],'key':_0x484ad6},()=>getAppConfigByKey(_0xefe9b6[_0x2092e5(0x135)],_0x484ad6)),_0x403c69=_0x15c7f3?_0x2092e5(0x124):_0x2092e5(0x130),_0x57c460=_0x15c7f3?projectAppConfig(_0x15c7f3):null,_0x1bb686=plannedAppConfig({'appCode':_0xefe9b6[_0x2092e5(0x135)],'key':_0x484ad6,'tags':_0x4aef86??_0x15c7f3?.[_0x2092e5(0x139)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x403c69,'appCode':_0xefe9b6[_0x2092e5(0x135)],'key':_0x484ad6,'before':_0x57c460,'after':_0x1bb686,'dryRun':!![]}),{'method':_0x2092e5(0x13c),'url':_0x403c69===_0x2092e5(0x124)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x67c0a8){const _0x1c738d=a27_0x479f3a,_0x17594c=readKeyArg(_0x67c0a8),_0x13235c=readOptionalTags(_0x67c0a8),_0x35053a=await withAppConfigApiBoundary(_0x1c738d(0x123),{'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c},()=>getAppConfigByKey(_0x67c0a8[_0x1c738d(0x135)],_0x17594c)),_0x3156d3=_0x35053a?projectAppConfig(_0x35053a):null,_0x5d732a=_0x35053a?'update':_0x1c738d(0x130),{value:_0x293dcf,warnings:_0x5292ea}=await readAppConfigValue(_0x67c0a8),_0x31b0c7={'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c,'value':_0x293dcf,'tags':_0x13235c??_0x35053a?.[_0x1c738d(0x139)]??undefined};await withAppConfigApiBoundary(_0x5d732a,{'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c},async()=>{_0x35053a?await updateAppConfig({..._0x31b0c7,'id':requireAppConfigId(_0x35053a,_0x17594c,_0x67c0a8['appCode'])}):await createAppConfig(_0x31b0c7);});const _0x1dd26d=await withAppConfigApiBoundary(_0x1c738d(0x123),{'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c},()=>getAppConfigByKey(_0x67c0a8[_0x1c738d(0x135)],_0x17594c)),_0x26f9f2=_0x1dd26d?projectAppConfig(_0x1dd26d):plannedAppConfig({'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c,'tags':_0x31b0c7[_0x1c738d(0x139)],'hasValue':_0x293dcf!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x5d732a,'appCode':_0x67c0a8[_0x1c738d(0x135)],'key':_0x17594c,'before':_0x3156d3,'after':_0x26f9f2,'dryRun':![],'warnings':_0x5292ea}),'message':(_0x5d732a==='update'?_0x1c738d(0x13e):_0x1c738d(0x136))+_0x1c738d(0x129)+_0x17594c};}};function requireAppConfigId(_0x44357c,_0xdf2084,_0x304f8d){const _0x25f08b=a27_0x479f3a;if(typeof _0x44357c['id']===_0x25f08b(0x138)&&Number[_0x25f08b(0x131)](_0x44357c['id'])&&_0x44357c['id']>0x0)return _0x44357c['id'];throw CliErrors['apiError'](_0x25f08b(0x126)+_0xdf2084+',\x20appCode='+_0x304f8d);}
@@ -1 +1 @@
1
- const a28_0x5d8f43=a28_0x342c;(function(_0x371b4b,_0x3db3f2){const _0x1a896d=a28_0x342c,_0x3ae362=_0x371b4b();while(!![]){try{const _0x135839=-parseInt(_0x1a896d(0x169))/0x1*(parseInt(_0x1a896d(0x188))/0x2)+parseInt(_0x1a896d(0x14b))/0x3+parseInt(_0x1a896d(0x157))/0x4*(parseInt(_0x1a896d(0x18f))/0x5)+parseInt(_0x1a896d(0x171))/0x6*(-parseInt(_0x1a896d(0x154))/0x7)+parseInt(_0x1a896d(0x179))/0x8*(-parseInt(_0x1a896d(0x14f))/0x9)+-parseInt(_0x1a896d(0x16d))/0xa*(parseInt(_0x1a896d(0x174))/0xb)+parseInt(_0x1a896d(0x14e))/0xc;if(_0x135839===_0x3db3f2)break;else _0x3ae362['push'](_0x3ae362['shift']());}catch(_0x4a324d){_0x3ae362['push'](_0x3ae362['shift']());}}}(a28_0x3bd2,0x772cf));function a28_0x3bd2(){const _0x47605b=['value\x20is\x20redacted','name','7677112pfbaaB','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','reveal','push','operation','value','utf8','\x20app\x20config.','Missing\x20app-config\x20value\x20source.','join','setEncoding','env','key','from-env','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','2vwOfIL','length','validation','stdin','tags','App\x20config\x20value\x20source\x20is\x20ambiguous.','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','150NJNbhK','1667874obMHjz','before','data','23106240UewlUb','9spTboV','bool','end','method','path','21slDfyc','Failed\x20to\x20','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','44248QhkqZK','trim','dryRun','Missing\x20app-config\x20key.','boolean','Environment\x20variable\x20is\x20not\x20set:\x20','slice','Read\x20config\x20value\x20from\x20stdin','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','string','gmtModified','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','appCode','args','Runtime\x20app-config\x20key','Value\x20file\x20is\x20not\x20readable:\x20','flag','warnings','740521GCsKcr','Config\x20tags\x20for\x20filtering/display\x20metadata','argument','apiError','3280VAeZCQ','hasValue','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','str','927318UTPkHi','kind','once','5412iMjmUn','after','gmtCreate'];a28_0x3bd2=function(){return _0x47605b;};return a28_0x3bd2();}import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a28_0x5d8f43(0x185),'description':a28_0x5d8f43(0x165),'required':!![]};export const VALUE_ARG={'name':a28_0x5d8f43(0x17e),'description':a28_0x5d8f43(0x18e),'required':![]};export const TAGS_FLAG={'name':'tags','type':a28_0x5d8f43(0x160),'description':a28_0x5d8f43(0x16a)};export const STDIN_FLAG={'name':a28_0x5d8f43(0x18b),'type':a28_0x5d8f43(0x15b),'description':a28_0x5d8f43(0x15e),'default':![]};export const FROM_ENV_FLAG={'name':'from-env','type':'string','description':a28_0x5d8f43(0x162)};export const REVEAL_FLAG={'name':a28_0x5d8f43(0x17b),'type':'boolean','description':a28_0x5d8f43(0x16f),'default':![]};export function readKeyArg(_0x5d5441){const _0x40d5f6=a28_0x5d8f43,_0x5ae3e6=_0x5d5441['args'][0x0]?.[_0x40d5f6(0x158)]()??'';return validateKey(_0x5ae3e6),_0x5ae3e6;}export function readOptionalTags(_0x354707){const _0xa4a7a6=a28_0x5d8f43,_0x298f64=_0x354707['str'](_0xa4a7a6(0x18c))[_0xa4a7a6(0x158)]();if(!_0x298f64)return undefined;if(_0x298f64[_0xa4a7a6(0x189)]>0x20)throw CliErrors[_0xa4a7a6(0x18a)](_0xa4a7a6(0x156));return _0x298f64;}export function validateKey(_0x2cd29d){const _0x10a376=a28_0x5d8f43;if(!_0x2cd29d)throw CliErrors['validation'](_0x10a376(0x15a));if(_0x2cd29d[_0x10a376(0x189)]>0x100)throw CliErrors['validation']('App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.');}export function projectAppConfig(_0x3a5ff6,_0x254f16){const _0x695fe6=a28_0x5d8f43,_0xf7c021=_0x3a5ff6[_0x695fe6(0x17e)]!==undefined&&_0x3a5ff6[_0x695fe6(0x17e)]!==null&&_0x3a5ff6[_0x695fe6(0x17e)]!=='',_0x1e4f9b={'appCode':_0x3a5ff6['appCode'],'key':_0x3a5ff6[_0x695fe6(0x185)],'tags':_0x3a5ff6[_0x695fe6(0x18c)]??undefined,'hasValue':_0xf7c021,'valueRedacted':_0xf7c021&&!_0x254f16?.[_0x695fe6(0x17b)],'gmtCreate':_0x3a5ff6[_0x695fe6(0x176)],'gmtModified':_0x3a5ff6[_0x695fe6(0x161)]};return _0x254f16?.[_0x695fe6(0x17b)]&&(_0x1e4f9b[_0x695fe6(0x17e)]=_0x3a5ff6['value']??'',_0x1e4f9b['valueRedacted']=![]),_0x1e4f9b;}export function plannedAppConfig(_0xb02ecc){const _0x37c625=a28_0x5d8f43,_0x560771=_0xb02ecc[_0x37c625(0x16e)]??!![];return{'appCode':_0xb02ecc['appCode'],'key':_0xb02ecc[_0x37c625(0x185)],'tags':_0xb02ecc['tags']??undefined,'hasValue':_0x560771,'valueRedacted':_0x560771};}export function buildMutationData(_0x1f5e7d){const _0x387867=a28_0x5d8f43;return{'operation':_0x1f5e7d[_0x387867(0x17d)],'selector':{'appCode':_0x1f5e7d[_0x387867(0x163)],'key':_0x1f5e7d[_0x387867(0x185)]},'before':_0x1f5e7d[_0x387867(0x14c)],'after':_0x1f5e7d[_0x387867(0x175)],'dryRun':_0x1f5e7d[_0x387867(0x159)],'warnings':_0x1f5e7d[_0x387867(0x168)]??[]};}export async function withAppConfigApiBoundary(_0x5134e9,_0x2c1c87,_0x2530ca){const _0x343215=a28_0x5d8f43;try{return await _0x2530ca();}catch{const _0x4c16e4=['appCode:\x20'+_0x2c1c87['appCode']];if(_0x2c1c87[_0x343215(0x185)])_0x4c16e4[_0x343215(0x17c)]('key:\x20'+_0x2c1c87['key']);_0x4c16e4[_0x343215(0x17c)](_0x343215(0x177));throw CliErrors[_0x343215(0x16c)](_0x343215(0x155)+_0x5134e9+_0x343215(0x180),_0x4c16e4[_0x343215(0x182)](';\x20')+'.');}}function a28_0x342c(_0x4d30a,_0x37880a){_0x4d30a=_0x4d30a-0x14b;const _0x3bd299=a28_0x3bd2();let _0x342c7b=_0x3bd299[_0x4d30a];return _0x342c7b;}export function asAppConfigDryRunResult(_0x9122dd,_0x5184a5){const _0xb3a1d3=a28_0x5d8f43;return Object['defineProperties'](_0x9122dd,{'method':{'value':_0x5184a5[_0xb3a1d3(0x152)],'enumerable':![]},'url':{'value':_0x5184a5['url'],'enumerable':![]}});}export function assertSingleValueSource(_0x354531){const _0x2aa3c3=a28_0x5d8f43,_0x397390=[];_0x354531['args'][_0x2aa3c3(0x189)]>0x1&&_0x397390[_0x2aa3c3(0x17c)]({'kind':_0x2aa3c3(0x16b),'value':_0x354531[_0x2aa3c3(0x164)][_0x2aa3c3(0x15d)](0x1)[_0x2aa3c3(0x182)]('\x20')});const _0x361b74=_0x354531[_0x2aa3c3(0x167)](_0x2aa3c3(0x17e));_0x361b74!==undefined&&_0x361b74!==null&&_0x397390[_0x2aa3c3(0x17c)]({'kind':'argument','value':String(_0x361b74)});_0x354531[_0x2aa3c3(0x150)](_0x2aa3c3(0x18b))&&_0x397390[_0x2aa3c3(0x17c)]({'kind':'stdin'});const _0x34ae00=_0x354531[_0x2aa3c3(0x170)](_0x2aa3c3(0x186))[_0x2aa3c3(0x158)]();_0x34ae00&&_0x397390[_0x2aa3c3(0x17c)]({'kind':_0x2aa3c3(0x184),'name':_0x34ae00});const _0x599605=_0x354531[_0x2aa3c3(0x170)]('file')['trim']();_0x599605&&_0x397390['push']({'kind':'file','path':_0x599605});if(_0x397390[_0x2aa3c3(0x189)]===0x0)throw CliErrors[_0x2aa3c3(0x18a)](_0x2aa3c3(0x181),_0x2aa3c3(0x15f));if(_0x397390[_0x2aa3c3(0x189)]>0x1)throw CliErrors['validation'](_0x2aa3c3(0x18d),_0x2aa3c3(0x187));return _0x397390[0x0];}export async function assertValueSourceReadable(_0x5aa504){const _0x425f78=a28_0x5d8f43;if(_0x5aa504[_0x425f78(0x172)]===_0x425f78(0x184)&&!(_0x5aa504['name']in process.env))throw CliErrors[_0x425f78(0x18a)](_0x425f78(0x15c)+_0x5aa504['name']);if(_0x5aa504['kind']==='file')try{await access(_0x5aa504[_0x425f78(0x153)]);}catch{throw CliErrors['validation'](_0x425f78(0x166)+_0x5aa504[_0x425f78(0x153)]);}}export async function readAppConfigValue(_0x57bc38){const _0x5af919=a28_0x5d8f43,_0x8f9120=assertSingleValueSource(_0x57bc38),_0x375e8f=[];if(_0x8f9120[_0x5af919(0x172)]===_0x5af919(0x16b))return _0x375e8f['push'](_0x5af919(0x17a)),{'value':_0x8f9120['value']??'','source':_0x8f9120[_0x5af919(0x172)],'warnings':_0x375e8f};if(_0x8f9120[_0x5af919(0x172)]===_0x5af919(0x18b))return{'value':await readStdin(),'source':_0x8f9120['kind'],'warnings':_0x375e8f};if(_0x8f9120[_0x5af919(0x172)]===_0x5af919(0x184)){if(!(_0x8f9120[_0x5af919(0x178)]in process.env))throw CliErrors['validation']('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x8f9120['name']);return{'value':process.env[_0x8f9120.name]??'','source':_0x8f9120[_0x5af919(0x172)],'warnings':_0x375e8f};}return{'value':await readFile(_0x8f9120['path'],_0x5af919(0x17f)),'source':_0x8f9120['kind'],'warnings':_0x375e8f};}function readStdin(){return new Promise((_0x4d9ca0,_0x4c86cf)=>{const _0x1d2362=a28_0x342c;let _0x1243bb='';process[_0x1d2362(0x18b)][_0x1d2362(0x183)](_0x1d2362(0x17f)),process[_0x1d2362(0x18b)]['on'](_0x1d2362(0x14d),_0x53ac8c=>{_0x1243bb+=_0x53ac8c;}),process[_0x1d2362(0x18b)][_0x1d2362(0x173)](_0x1d2362(0x151),()=>_0x4d9ca0(_0x1243bb)),process[_0x1d2362(0x18b)][_0x1d2362(0x173)]('error',_0x4c86cf);});}
1
+ const a28_0x4bf1b7=a28_0x3c46;(function(_0x20caba,_0x368a67){const _0x6b32a3=a28_0x3c46,_0x275945=_0x20caba();while(!![]){try{const _0x1f03ea=parseInt(_0x6b32a3(0x15e))/0x1*(parseInt(_0x6b32a3(0x158))/0x2)+parseInt(_0x6b32a3(0x152))/0x3*(parseInt(_0x6b32a3(0x18e))/0x4)+parseInt(_0x6b32a3(0x14d))/0x5*(parseInt(_0x6b32a3(0x16b))/0x6)+-parseInt(_0x6b32a3(0x189))/0x7+parseInt(_0x6b32a3(0x17b))/0x8*(parseInt(_0x6b32a3(0x179))/0x9)+parseInt(_0x6b32a3(0x186))/0xa*(-parseInt(_0x6b32a3(0x174))/0xb)+parseInt(_0x6b32a3(0x188))/0xc*(-parseInt(_0x6b32a3(0x148))/0xd);if(_0x1f03ea===_0x368a67)break;else _0x275945['push'](_0x275945['shift']());}catch(_0x24e89a){_0x275945['push'](_0x275945['shift']());}}}(a28_0x14df,0x3caf3));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':'key','description':a28_0x4bf1b7(0x165),'required':!![]};export const VALUE_ARG={'name':a28_0x4bf1b7(0x17c),'description':a28_0x4bf1b7(0x178),'required':![]};export const TAGS_FLAG={'name':a28_0x4bf1b7(0x182),'type':a28_0x4bf1b7(0x14e),'description':a28_0x4bf1b7(0x159)};export const STDIN_FLAG={'name':a28_0x4bf1b7(0x150),'type':a28_0x4bf1b7(0x167),'description':a28_0x4bf1b7(0x15d),'default':![]};export const FROM_ENV_FLAG={'name':a28_0x4bf1b7(0x15c),'type':a28_0x4bf1b7(0x14e),'description':a28_0x4bf1b7(0x153)};export const REVEAL_FLAG={'name':a28_0x4bf1b7(0x155),'type':'boolean','description':a28_0x4bf1b7(0x163),'default':![]};export function readKeyArg(_0x3e2618){const _0x2d3510=a28_0x4bf1b7,_0x42f189=_0x3e2618[_0x2d3510(0x17a)][0x0]?.[_0x2d3510(0x162)]()??'';return validateKey(_0x42f189),_0x42f189;}export function readOptionalTags(_0x52fef2){const _0x5b9e3f=a28_0x4bf1b7,_0x21e600=_0x52fef2[_0x5b9e3f(0x15b)]('tags')['trim']();if(!_0x21e600)return undefined;if(_0x21e600[_0x5b9e3f(0x168)]>0x20)throw CliErrors[_0x5b9e3f(0x184)]('App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.');return _0x21e600;}export function validateKey(_0x25052b){const _0x272201=a28_0x4bf1b7;if(!_0x25052b)throw CliErrors[_0x272201(0x184)](_0x272201(0x160));if(_0x25052b['length']>0x100)throw CliErrors['validation'](_0x272201(0x14b));}function a28_0x14df(){const _0x54acd0=['5PvJVRr','string','bool','stdin','argument','3vcQbLb','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','warnings','reveal','path','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','778acfXcD','Config\x20tags\x20for\x20filtering/display\x20metadata','Missing\x20app-config\x20value\x20source.','str','from-env','Read\x20config\x20value\x20from\x20stdin','102Niijml','defineProperties','Missing\x20app-config\x20key.','push','trim','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','setEncoding','Runtime\x20app-config\x20key','join','boolean','length','key','apiError','1657038nJujVR','dryRun','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','url','kind','env','after','method','Environment\x20variable\x20is\x20not\x20set:\x20','2761UbXNOo','value\x20is\x20redacted','Failed\x20to\x20','Value\x20file\x20is\x20not\x20readable:\x20','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','9mXJwiQ','args','795176kngtYQ','value','error','appCode','hasValue','before','slice','tags','gmtModified','validation','end','3010MudaMZ','operation','48Cbivyn','222943iUjcUB','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','data','file','valueRedacted','999756VxCAHD','1004978VugqWD','\x20app\x20config.','name','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','utf8'];a28_0x14df=function(){return _0x54acd0;};return a28_0x14df();}export function projectAppConfig(_0x3c7f66,_0x5dd890){const _0xce2fd1=a28_0x4bf1b7,_0x4a3159=_0x3c7f66['value']!==undefined&&_0x3c7f66[_0xce2fd1(0x17c)]!==null&&_0x3c7f66[_0xce2fd1(0x17c)]!=='',_0x7c52c2={'appCode':_0x3c7f66[_0xce2fd1(0x17e)],'key':_0x3c7f66[_0xce2fd1(0x169)],'tags':_0x3c7f66['tags']??undefined,'hasValue':_0x4a3159,'valueRedacted':_0x4a3159&&!_0x5dd890?.[_0xce2fd1(0x155)],'gmtCreate':_0x3c7f66['gmtCreate'],'gmtModified':_0x3c7f66[_0xce2fd1(0x183)]};return _0x5dd890?.[_0xce2fd1(0x155)]&&(_0x7c52c2['value']=_0x3c7f66['value']??'',_0x7c52c2[_0xce2fd1(0x18d)]=![]),_0x7c52c2;}export function plannedAppConfig(_0x48bfc1){const _0x459670=a28_0x4bf1b7,_0x12c428=_0x48bfc1[_0x459670(0x17f)]??!![];return{'appCode':_0x48bfc1[_0x459670(0x17e)],'key':_0x48bfc1[_0x459670(0x169)],'tags':_0x48bfc1[_0x459670(0x182)]??undefined,'hasValue':_0x12c428,'valueRedacted':_0x12c428};}export function buildMutationData(_0xe124d){const _0x3a6ff2=a28_0x4bf1b7;return{'operation':_0xe124d[_0x3a6ff2(0x187)],'selector':{'appCode':_0xe124d[_0x3a6ff2(0x17e)],'key':_0xe124d[_0x3a6ff2(0x169)]},'before':_0xe124d[_0x3a6ff2(0x180)],'after':_0xe124d[_0x3a6ff2(0x171)],'dryRun':_0xe124d[_0x3a6ff2(0x16c)],'warnings':_0xe124d[_0x3a6ff2(0x154)]??[]};}export async function withAppConfigApiBoundary(_0xc8e92c,_0x24a37b,_0x927fff){const _0xd0c324=a28_0x4bf1b7;try{return await _0x927fff();}catch{const _0x1eeb87=['appCode:\x20'+_0x24a37b[_0xd0c324(0x17e)]];if(_0x24a37b[_0xd0c324(0x169)])_0x1eeb87[_0xd0c324(0x161)]('key:\x20'+_0x24a37b[_0xd0c324(0x169)]);_0x1eeb87[_0xd0c324(0x161)](_0xd0c324(0x175));throw CliErrors[_0xd0c324(0x16a)](_0xd0c324(0x176)+_0xc8e92c+_0xd0c324(0x149),_0x1eeb87[_0xd0c324(0x166)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x398588,_0x20796b){const _0x5a874a=a28_0x4bf1b7;return Object[_0x5a874a(0x15f)](_0x398588,{'method':{'value':_0x20796b[_0x5a874a(0x172)],'enumerable':![]},'url':{'value':_0x20796b[_0x5a874a(0x16e)],'enumerable':![]}});}export function assertSingleValueSource(_0x263216){const _0x29bef8=a28_0x4bf1b7,_0x5cff90=[];_0x263216[_0x29bef8(0x17a)][_0x29bef8(0x168)]>0x1&&_0x5cff90[_0x29bef8(0x161)]({'kind':'argument','value':_0x263216[_0x29bef8(0x17a)][_0x29bef8(0x181)](0x1)[_0x29bef8(0x166)]('\x20')});const _0x2c07a6=_0x263216['flag'](_0x29bef8(0x17c));_0x2c07a6!==undefined&&_0x2c07a6!==null&&_0x5cff90[_0x29bef8(0x161)]({'kind':_0x29bef8(0x151),'value':String(_0x2c07a6)});_0x263216[_0x29bef8(0x14f)]('stdin')&&_0x5cff90[_0x29bef8(0x161)]({'kind':_0x29bef8(0x150)});const _0x4549f9=_0x263216['str'](_0x29bef8(0x15c))['trim']();_0x4549f9&&_0x5cff90['push']({'kind':_0x29bef8(0x170),'name':_0x4549f9});const _0x1c1acf=_0x263216[_0x29bef8(0x15b)](_0x29bef8(0x18c))[_0x29bef8(0x162)]();_0x1c1acf&&_0x5cff90[_0x29bef8(0x161)]({'kind':'file','path':_0x1c1acf});if(_0x5cff90[_0x29bef8(0x168)]===0x0)throw CliErrors[_0x29bef8(0x184)](_0x29bef8(0x15a),_0x29bef8(0x18a));if(_0x5cff90[_0x29bef8(0x168)]>0x1)throw CliErrors[_0x29bef8(0x184)]('App\x20config\x20value\x20source\x20is\x20ambiguous.',_0x29bef8(0x157));return _0x5cff90[0x0];}function a28_0x3c46(_0x44e4fb,_0x4ee164){_0x44e4fb=_0x44e4fb-0x148;const _0x14df8c=a28_0x14df();let _0x3c4680=_0x14df8c[_0x44e4fb];return _0x3c4680;}export async function assertValueSourceReadable(_0x92b843){const _0x18d29e=a28_0x4bf1b7;if(_0x92b843[_0x18d29e(0x16f)]===_0x18d29e(0x170)&&!(_0x92b843[_0x18d29e(0x14a)]in process.env))throw CliErrors['validation']('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x92b843[_0x18d29e(0x14a)]);if(_0x92b843[_0x18d29e(0x16f)]===_0x18d29e(0x18c))try{await access(_0x92b843[_0x18d29e(0x156)]);}catch{throw CliErrors['validation'](_0x18d29e(0x177)+_0x92b843['path']);}}export async function readAppConfigValue(_0x2fd6e9){const _0x4e782c=a28_0x4bf1b7,_0x387a45=assertSingleValueSource(_0x2fd6e9),_0x537918=[];if(_0x387a45[_0x4e782c(0x16f)]===_0x4e782c(0x151))return _0x537918[_0x4e782c(0x161)](_0x4e782c(0x16d)),{'value':_0x387a45[_0x4e782c(0x17c)]??'','source':_0x387a45[_0x4e782c(0x16f)],'warnings':_0x537918};if(_0x387a45['kind']==='stdin')return{'value':await readStdin(),'source':_0x387a45[_0x4e782c(0x16f)],'warnings':_0x537918};if(_0x387a45['kind']===_0x4e782c(0x170)){if(!(_0x387a45[_0x4e782c(0x14a)]in process.env))throw CliErrors['validation'](_0x4e782c(0x173)+_0x387a45[_0x4e782c(0x14a)]);return{'value':process.env[_0x387a45.name]??'','source':_0x387a45[_0x4e782c(0x16f)],'warnings':_0x537918};}return{'value':await readFile(_0x387a45[_0x4e782c(0x156)],_0x4e782c(0x14c)),'source':_0x387a45[_0x4e782c(0x16f)],'warnings':_0x537918};}function readStdin(){return new Promise((_0x45b6ea,_0x40e315)=>{const _0x3b4c82=a28_0x3c46;let _0x29b084='';process['stdin'][_0x3b4c82(0x164)]('utf8'),process[_0x3b4c82(0x150)]['on'](_0x3b4c82(0x18b),_0x1d481b=>{_0x29b084+=_0x1d481b;}),process[_0x3b4c82(0x150)]['once'](_0x3b4c82(0x185),()=>_0x45b6ea(_0x29b084)),process[_0x3b4c82(0x150)]['once'](_0x3b4c82(0x17d),_0x40e315);});}
@@ -1 +1 @@
1
- function a29_0x3829(){const _0x53a6fb=['nonInteractive','Login\x20via\x20browser','17576QYVzkk','4468kQiqyJ','bool','../../auth/auth-server-ui.js','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','385068IjPfkM','1788365bNtvXd','✓\x20Logged\x20out','logout','login','1232712QGfJBL','write','log','174ZQnPKI','3nDoWwV','994mfIeal','1030ZCLCAG','92257YGqXQz','auth','yes','1599390FZEkXz','read'];a29_0x3829=function(){return _0x53a6fb;};return a29_0x3829();}const a29_0xdb3d3b=a29_0x527e;function a29_0x527e(_0x5f40f9,_0x5548f5){_0x5f40f9=_0x5f40f9-0x7c;const _0x382910=a29_0x3829();let _0x527e6f=_0x382910[_0x5f40f9];return _0x527e6f;}(function(_0x51f503,_0x40d405){const _0x711274=a29_0x527e,_0x26bf8d=_0x51f503();while(!![]){try{const _0x31bfcc=parseInt(_0x711274(0x7d))/0x1*(-parseInt(_0x711274(0x89))/0x2)+parseInt(_0x711274(0x8a))/0x3*(parseInt(_0x711274(0x81))/0x4)+parseInt(_0x711274(0x82))/0x5+-parseInt(_0x711274(0x90))/0x6+-parseInt(_0x711274(0x8b))/0x7*(parseInt(_0x711274(0x7c))/0x8)+-parseInt(_0x711274(0x86))/0x9+parseInt(_0x711274(0x8c))/0xa*(parseInt(_0x711274(0x8d))/0xb);if(_0x31bfcc===_0x40d405)break;else _0x26bf8d['push'](_0x26bf8d['shift']());}catch(_0x5ec53a){_0x26bf8d['push'](_0x26bf8d['shift']());}}}(a29_0x3829,0x3424a));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':a29_0xdb3d3b(0x8e),'command':a29_0xdb3d3b(0x85),'description':a29_0xdb3d3b(0x93),'risk':a29_0xdb3d3b(0x91),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a29_0xdb3d3b(0x8f),'type':'boolean','description':a29_0xdb3d3b(0x80),'default':![]}],async 'execute'(_0x1e132f){const _0x1000e3=a29_0xdb3d3b,{runAuthServer:_0x5792f3}=await import(_0x1000e3(0x7f));return await _0x5792f3({'autoYes':_0x1e132f[_0x1000e3(0x7e)]('yes'),'nonInteractive':_0x1e132f[_0x1000e3(0x92)]}),{'ok':!![]};}},{'service':a29_0xdb3d3b(0x8e),'command':a29_0xdb3d3b(0x84),'description':'Clear\x20login\x20session','risk':a29_0xdb3d3b(0x87),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x832f3a){const _0x479b03=a29_0xdb3d3b;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x479b03(0x88)](_0x479b03(0x83))):console[_0x479b03(0x88)]('!\x20Not\x20logged\x20in'),{'ok':!![]};}}];
1
+ const a29_0xa58f99=a29_0x4b39;function a29_0x1305(){const _0x266cc7=['logout','773985PwOQTx','write','80951fRgUab','22312dVHhUA','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','!\x20Not\x20logged\x20in','1710741KnzQkJ','bool','12rWkYVp','4622496YkVcgh','read','yes','auth','8620BFXBQi','log','nonInteractive','40865QPvtUv','login','4626QVJmpW','Login\x20via\x20browser','44shQeat','1109437DPasnO'];a29_0x1305=function(){return _0x266cc7;};return a29_0x1305();}(function(_0x2defc8,_0x47862d){const _0x17e3ca=a29_0x4b39,_0x300e65=_0x2defc8();while(!![]){try{const _0x4fec9b=-parseInt(_0x17e3ca(0x7b))/0x1*(parseInt(_0x17e3ca(0x76))/0x2)+-parseInt(_0x17e3ca(0x7f))/0x3+-parseInt(_0x17e3ca(0x82))/0x4+parseInt(_0x17e3ca(0x79))/0x5+parseInt(_0x17e3ca(0x81))/0x6*(-parseInt(_0x17e3ca(0x77))/0x7)+-parseInt(_0x17e3ca(0x7c))/0x8*(-parseInt(_0x17e3ca(0x74))/0x9)+parseInt(_0x17e3ca(0x6f))/0xa*(parseInt(_0x17e3ca(0x72))/0xb);if(_0x4fec9b===_0x47862d)break;else _0x300e65['push'](_0x300e65['shift']());}catch(_0x29aae2){_0x300e65['push'](_0x300e65['shift']());}}}(a29_0x1305,0xec0f2));function a29_0x4b39(_0x309a50,_0x30d916){_0x309a50=_0x309a50-0x6c;const _0x1305c1=a29_0x1305();let _0x4b3977=_0x1305c1[_0x309a50];return _0x4b3977;}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':a29_0xa58f99(0x6e),'command':a29_0xa58f99(0x73),'description':a29_0xa58f99(0x75),'risk':a29_0xa58f99(0x6c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a29_0xa58f99(0x6d),'type':'boolean','description':a29_0xa58f99(0x7d),'default':![]}],async 'execute'(_0x26f710){const _0x177aa5=a29_0xa58f99,{runAuthServer:_0x413f1f}=await import('../../auth/auth-server-ui.js');return await _0x413f1f({'autoYes':_0x26f710[_0x177aa5(0x80)](_0x177aa5(0x6d)),'nonInteractive':_0x26f710[_0x177aa5(0x71)]}),{'ok':!![]};}},{'service':'auth','command':a29_0xa58f99(0x78),'description':'Clear\x20login\x20session','risk':a29_0xa58f99(0x7a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x16c2dd){const _0x5e1beb=a29_0xa58f99;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5e1beb(0x70)]('✓\x20Logged\x20out')):console[_0x5e1beb(0x70)](_0x5e1beb(0x7e)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a30_0x4797bc=a30_0x4818;(function(_0x5345fb,_0x3b7757){const _0x526c9c=a30_0x4818,_0xc5c91d=_0x5345fb();while(!![]){try{const _0x22b1f6=parseInt(_0x526c9c(0x18d))/0x1*(parseInt(_0x526c9c(0x1cc))/0x2)+-parseInt(_0x526c9c(0x182))/0x3*(-parseInt(_0x526c9c(0x1c7))/0x4)+parseInt(_0x526c9c(0x19c))/0x5*(parseInt(_0x526c9c(0x197))/0x6)+-parseInt(_0x526c9c(0x1b7))/0x7*(parseInt(_0x526c9c(0x174))/0x8)+-parseInt(_0x526c9c(0x186))/0x9+-parseInt(_0x526c9c(0x19a))/0xa+parseInt(_0x526c9c(0x1c1))/0xb;if(_0x22b1f6===_0x3b7757)break;else _0xc5c91d['push'](_0xc5c91d['shift']());}catch(_0x471e5a){_0xc5c91d['push'](_0xc5c91d['shift']());}}}(a30_0x436f,0x7ef26));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';function a30_0x4818(_0x23f1bd,_0x21522e){_0x23f1bd=_0x23f1bd-0x171;const _0x436f8b=a30_0x436f();let _0x48180c=_0x436f8b[_0x23f1bd];return _0x48180c;}import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists}from'../../core/bff/file-system.js';import{isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';function a30_0x436f(){const _0x3675fa=['Operation\x20type\x20\x22','source','\x22\x20not\x20found\x20for\x20dataset\x20','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/{appCode}/{scriptName}\x0a\x20*\x20[当前示例]\x20POST\x20/api/endpoint/','Available\x20aliases:\x20','find','53EjDTaD','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','No\x20api.ts\x20found.\x20Run\x20`','.js\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Input\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Processing\x20result.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','TODO:\x20add\x20script\x20description','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','string','/**\x0a\x20*\x20HOOK\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','Scaffold\x20a\x20new\x20BFF\x20function\x20from\x20template','scriptsRootDir','6UZojpi','Select\x20dataset:','functionNode','10179590yEZdzS','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','1132170sZGfbT','\x20api\x20pull`\x20to\x20refresh.','Created\x20','/**\x0a\x20*\x20ENDPOINT\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','name','apiDir','Invalid\x20dataset\x20selection.','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','read','datasetcode','COMMON','isInteger','nonInteractive','datasetCode','.js','validation','No\x20datasets\x20found\x20for\x20this\x20app.','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','alias',']\x20(','ENDPOINT','\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Current\x20request\x20params\x20or\x20response\x20result.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Modified\x20params\x20object.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','\x0a\x20*\x20[脚本名称]\x20','Dataset\x20not\x20found\x20for\x20code\x20\x22','No\x20operation\x20types\x20found\x20for\x20dataset\x20','5859637XTBzWH','UNKNOWN','Operation\x20type\x20(HOOK\x20only)','Select\x20trigger\x20node:','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','Alias\x20\x22','\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/COMMON/','map','join','parseInt','22334697nxNchT','HOOK\x20requires\x20alias/operation/node\x20options.','appCode','bff','operationType','function-node','209004YMtEuy','stderr','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','tableName','Trigger\x20node\x20(HOOK\x20only)','18590LzsnbH','trim','before','HOOK','\x22.\x20','close','after','keys','8clMHjH','description','question','Available:\x20','\x22\x20not\x20found.\x20','Invalid\x20function\x20name\x20\x22','includes','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','code','Function\x20name\x20(valid\x20JS\x20identifier)','type','create','stdin','write','21CGAoaJ','Script\x20type','length','str','6662061jwUfvZ'];a30_0x436f=function(){return _0x3675fa;};return a30_0x436f();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const bffCreate={'service':a30_0x4797bc(0x1c4),'command':a30_0x4797bc(0x17f),'description':a30_0x4797bc(0x195),'risk':a30_0x4797bc(0x1a6),'flags':[{'name':a30_0x4797bc(0x17e),'type':'string','required':!![],'enum':[a30_0x4797bc(0x1a8),a30_0x4797bc(0x1b2),'HOOK'],'description':a30_0x4797bc(0x183)},{'name':'name','type':a30_0x4797bc(0x193),'required':!![],'description':a30_0x4797bc(0x17d)},{'name':'description','type':a30_0x4797bc(0x193),'description':'Script\x20description'},{'name':a30_0x4797bc(0x1b0),'type':'string','description':a30_0x4797bc(0x1a5)},{'name':a30_0x4797bc(0x1a7),'type':'string','description':'Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)'},{'name':'operation-type','type':a30_0x4797bc(0x193),'description':a30_0x4797bc(0x1b9)},{'name':a30_0x4797bc(0x1c6),'type':a30_0x4797bc(0x193),'description':a30_0x4797bc(0x1cb),'enum':[a30_0x4797bc(0x1ce),a30_0x4797bc(0x172)]}],async 'validate'(_0x4a2cfc){const _0x5ee3d7=a30_0x4797bc,_0x4cf0aa=_0x4a2cfc[_0x5ee3d7(0x185)]('name');if(!isValidBffFunctionName(_0x4cf0aa))throw CliErrors[_0x5ee3d7(0x1ad)](_0x5ee3d7(0x179)+_0x4cf0aa+_0x5ee3d7(0x1a0));},async 'execute'(_0xcd497a){const _0x1b5ee0=a30_0x4797bc,_0x30a85f=loadBffProjectConfig(_0xcd497a[_0x1b5ee0(0x1c3)]),_0x2050d9=_0xcd497a[_0x1b5ee0(0x185)](_0x1b5ee0(0x17e)),_0x5cc0f6=_0xcd497a[_0x1b5ee0(0x185)](_0x1b5ee0(0x1a2)),_0x53d618=_0xcd497a[_0x1b5ee0(0x185)](_0x1b5ee0(0x175))||undefined,_0x18a477=_0x2050d9===_0x1b5ee0(0x1cf)?await resolveHookOptions(_0x30a85f,_0xcd497a):undefined,_0x5b4277=buildFilePath(_0x30a85f,_0x2050d9,_0x5cc0f6,_0x18a477);if(await fileExists(_0x5b4277))throw CliErrors[_0x1b5ee0(0x1ad)]('File\x20already\x20exists:\x20'+_0x5b4277);await mkdir(dirname(_0x5b4277),{'recursive':!![]});const _0x304f29=generateTemplate(_0x2050d9,_0x5cc0f6,_0xcd497a[_0x1b5ee0(0x1c3)],_0x53d618,_0x18a477);await writeFile(_0x5b4277,_0x304f29,'utf8');const _0x59daac={'type':_0x2050d9,'name':_0x5cc0f6,'path':_0x5b4277};if(_0x53d618)_0x59daac[_0x1b5ee0(0x175)]=_0x53d618;if(_0x18a477){if(_0x18a477['alias'])_0x59daac[_0x1b5ee0(0x1b0)]=_0x18a477[_0x1b5ee0(0x1b0)];_0x59daac[_0x1b5ee0(0x1ab)]=_0x18a477['datasetCode'],_0x59daac[_0x1b5ee0(0x1c5)]=_0x18a477[_0x1b5ee0(0x1c5)],_0x59daac[_0x1b5ee0(0x199)]=_0x18a477[_0x1b5ee0(0x199)];}return{'ok':!![],'data':_0x59daac,'message':_0x1b5ee0(0x19e)+_0x2050d9+'\x20function:\x20'+_0x5cc0f6};}};async function resolveHookOptions(_0x20ef6c,_0x513168){const _0x316053=a30_0x4797bc,_0x33bec6=loadAliasMap(_0x513168[_0x316053(0x1a3)],undefined,resolveApiFilePath(_0x513168[_0x316053(0x1a3)],_0x513168['appCode'])),_0x38f620=_0x33bec6[_0x316053(0x184)]>0x0;let _0x4acfbe,_0x17757a,_0x1894b4;const _0x5816a7=_0x513168[_0x316053(0x185)](_0x316053(0x1b0)),_0xcd2f28=_0x513168['str'](_0x316053(0x1a7));if(_0x5816a7){const _0x19f053=resolveAlias(_0x513168[_0x316053(0x1a3)],_0x5816a7,undefined,resolveApiFilePath(_0x513168[_0x316053(0x1a3)],_0x513168['appCode']));if(!_0x19f053){const _0x2080d6=_0x38f620?_0x316053(0x18b)+_0x33bec6[_0x316053(0x1be)](_0x2a0b25=>_0x2a0b25[_0x316053(0x1b0)])[_0x316053(0x1bf)](',\x20'):_0x316053(0x18f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.';throw CliErrors['validation'](_0x316053(0x1bc)+_0x5816a7+_0x316053(0x178)+_0x2080d6);}_0x4acfbe=_0x5816a7,_0x17757a=_0x19f053;}else{if(_0xcd2f28){_0x17757a=_0xcd2f28;const _0x3d84d2=_0x33bec6[_0x316053(0x18c)](_0x461894=>_0x461894[_0x316053(0x1ab)]===_0xcd2f28);_0x4acfbe=_0x3d84d2?.[_0x316053(0x1b0)];}else{if(_0x513168[_0x316053(0x1aa)])throw CliErrors[_0x316053(0x1ad)]('--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');else{if(_0x38f620){const _0x3d0680=_0x33bec6[_0x316053(0x1be)](_0x2c228b=>_0x2c228b['alias']+'\x20('+_0x2c228b[_0x316053(0x1ca)]+')'),_0x585741=await promptSelect(_0x316053(0x198),_0x3d0680),_0x582e4b=_0x33bec6[_0x585741];if(!_0x582e4b)throw CliErrors[_0x316053(0x1ad)]('Invalid\x20dataset\x20selection.');_0x4acfbe=_0x582e4b[_0x316053(0x1b0)],_0x17757a=_0x582e4b[_0x316053(0x1ab)];}else{const _0x54a29e=await listDatasets(_0x513168['appCode']);if(_0x54a29e[_0x316053(0x184)]===0x0)throw CliErrors[_0x316053(0x1ad)](_0x316053(0x1ae));const _0x96f653=_0x54a29e[_0x316053(0x1be)](_0x332037=>_0x332037[_0x316053(0x1a2)]+'\x20['+(_0x332037[_0x316053(0x188)]??_0x316053(0x1b8))+_0x316053(0x1b1)+_0x332037[_0x316053(0x17c)]+')'),_0x4c6eb0=await promptSelect(_0x316053(0x198),_0x96f653),_0x2172cc=_0x54a29e[_0x4c6eb0];if(!_0x2172cc)throw CliErrors[_0x316053(0x1ad)](_0x316053(0x1a4));_0x17757a=_0x2172cc['code'],_0x4acfbe=undefined;}}}}const _0x336193=await listDatasets(_0x513168['appCode']),_0x4b5b90=_0x336193['find'](_0x19d264=>_0x19d264[_0x316053(0x17c)]===_0x17757a);if(!_0x4b5b90)throw CliErrors[_0x316053(0x1ad)](_0x316053(0x1b5)+_0x17757a+_0x316053(0x1d0)+(_0x4acfbe?_0x316053(0x192)+CLI_BIN_NAME+_0x316053(0x19d):''));_0x1894b4=_0x4b5b90['id'];const _0x5d3431=_0x4acfbe??_0x17757a,_0x22481b=await listBffDatasetOperations(_0x513168[_0x316053(0x1c3)],_0x1894b4),_0x5ce87a=_0x22481b?Object[_0x316053(0x173)](_0x22481b):[];if(_0x5ce87a[_0x316053(0x184)]===0x0)throw CliErrors[_0x316053(0x1ad)](_0x316053(0x1b6)+_0x5d3431+'.');let _0x26ce2b;const _0x120277=_0x513168[_0x316053(0x185)]('operation-type');if(_0x120277){if(!_0x5ce87a[_0x316053(0x17a)](_0x120277))throw CliErrors[_0x316053(0x1ad)](_0x316053(0x187)+_0x120277+_0x316053(0x189)+_0x5d3431+'.\x20'+(_0x316053(0x177)+_0x5ce87a[_0x316053(0x1bf)](',\x20')));_0x26ce2b=_0x120277;}else{if(_0x513168[_0x316053(0x1aa)])throw CliErrors['validation'](_0x316053(0x18e));const _0x598f95=await promptSelect('Select\x20operation\x20type:',_0x5ce87a);_0x26ce2b=_0x5ce87a[_0x598f95]??_0x5ce87a[0x0];}let _0x52d0f5=normalizeHookFunctionNode(_0x513168[_0x316053(0x185)](_0x316053(0x1c6)));if(!_0x52d0f5){if(_0x513168[_0x316053(0x185)](_0x316053(0x1c6)))throw CliErrors[_0x316053(0x1ad)](_0x316053(0x17b));if(_0x513168[_0x316053(0x1aa)])throw CliErrors[_0x316053(0x1ad)](_0x316053(0x1af));const _0x4fe209=await promptSelect(_0x316053(0x1ba),[_0x316053(0x1ce),_0x316053(0x172)]);_0x52d0f5=[_0x316053(0x1ce),'after'][_0x4fe209]??_0x316053(0x1ce);}return{'alias':_0x4acfbe,'datasetCode':_0x17757a,'datasetId':_0x1894b4,'operationType':_0x26ce2b,'functionNode':_0x52d0f5};}async function promptSelect(_0x1fadf0,_0x1c2580){const _0x401129=a30_0x4797bc;if(_0x1c2580[_0x401129(0x184)]===0x1)return 0x0;for(const [_0x40b9de,_0x38fb99]of _0x1c2580['entries']()){process['stderr'][_0x401129(0x181)]('\x20\x20'+(_0x40b9de+0x1)+'.\x20'+_0x38fb99+'\x0a');}const _0x31c974=createInterface({'input':process[_0x401129(0x180)],'output':process[_0x401129(0x1c8)]});while(!![]){const _0x5b9f42=await new Promise(_0xb0a44c=>{const _0xe719a4=_0x401129;_0x31c974[_0xe719a4(0x176)](_0x1fadf0+'\x20',_0xb0a44c);}),_0x5b2168=Number[_0x401129(0x1c0)](_0x5b9f42[_0x401129(0x1cd)](),0xa);if(Number[_0x401129(0x1a9)](_0x5b2168)&&_0x5b2168>=0x1&&_0x5b2168<=_0x1c2580['length'])return _0x31c974[_0x401129(0x171)](),_0x5b2168-0x1;process['stderr'][_0x401129(0x181)](_0x401129(0x1bb)+_0x1c2580['length']+'.\x0a');}}function buildFilePath(_0x5da9f7,_0x47cbaa,_0x5c72fd,_0x3fa344){const _0x566a0f=a30_0x4797bc;if(_0x47cbaa===_0x566a0f(0x1cf)){if(!_0x3fa344)throw CliErrors['validation'](_0x566a0f(0x1c2));const _0x1c541c=_0x3fa344[_0x566a0f(0x1b0)]??_0x3fa344[_0x566a0f(0x1ab)];return join(_0x5da9f7[_0x566a0f(0x196)],_0x566a0f(0x1cf),_0x1c541c,_0x3fa344['operationType'],_0x3fa344[_0x566a0f(0x199)],_0x5c72fd+_0x566a0f(0x1ac));}return join(_0x5da9f7[_0x566a0f(0x196)],_0x47cbaa,_0x5c72fd+_0x566a0f(0x1ac));}export function generateTemplate(_0x56723c,_0x27539a,_0x1ef437,_0x215367,_0x27f126){const _0xf3692c=a30_0x4797bc,_0xc56a07=_0x215367?.['trim']()||_0xf3692c(0x191);if(_0x56723c==='COMMON')return'/**\x0a\x20*\x20COMMON\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20'+_0xc56a07+_0xf3692c(0x1b4)+_0x27539a+_0xf3692c(0x1bd)+_0x27539a+_0xf3692c(0x190)+_0x27539a+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(_0x56723c==='ENDPOINT')return _0xf3692c(0x19f)+_0xc56a07+_0xf3692c(0x18a)+_0x1ef437+'/'+_0x27539a+'\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Request\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Business\x20result\x20(wrapped\x20in\x20response.data).\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x27539a+_0xf3692c(0x1c9);if(!_0x27f126)throw CliErrors[_0xf3692c(0x1ad)](_0xf3692c(0x19b));return _0xf3692c(0x194)+_0xc56a07+_0xf3692c(0x1a1)+_0x1ef437+'/'+_0x27f126['datasetCode']+'/'+_0x27f126[_0xf3692c(0x1c5)]+'\x0a\x20*\x20[触发节点]\x20'+_0x27f126[_0xf3692c(0x199)]+_0xf3692c(0x1b3)+_0x27539a+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';}
1
+ const a30_0x5cb832=a30_0x24b3;(function(_0x127678,_0x13172e){const _0x1a633c=a30_0x24b3,_0x5585bf=_0x127678();while(!![]){try{const _0x34b1c8=parseInt(_0x1a633c(0x216))/0x1+-parseInt(_0x1a633c(0x238))/0x2*(-parseInt(_0x1a633c(0x210))/0x3)+parseInt(_0x1a633c(0x206))/0x4*(-parseInt(_0x1a633c(0x22e))/0x5)+-parseInt(_0x1a633c(0x203))/0x6*(parseInt(_0x1a633c(0x201))/0x7)+-parseInt(_0x1a633c(0x21e))/0x8*(-parseInt(_0x1a633c(0x220))/0x9)+-parseInt(_0x1a633c(0x209))/0xa+parseInt(_0x1a633c(0x245))/0xb*(parseInt(_0x1a633c(0x207))/0xc);if(_0x34b1c8===_0x13172e)break;else _0x5585bf['push'](_0x5585bf['shift']());}catch(_0x15b902){_0x5585bf['push'](_0x5585bf['shift']());}}}(a30_0x2ff1,0x8298a));import{createInterface}from'node:readline';import{mkdir,writeFile}from'node:fs/promises';import{dirname,join}from'node:path';import{listDatasets,listBffDatasetOperations}from'../../core/api-client.js';import{loadAliasMap,resolveAlias}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a30_0x2ff1(){const _0xcc01c3=['\x20function:\x20','139202TJQcfr','trim','108wjpGux','name','question','76vGnWkf','12947196zCgyqR','utf8','1961030HWUgJJ','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','parseInt','Operation\x20type\x20(HOOK\x20only)','ENDPOINT','/**\x0a\x20*\x20COMMON\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','description','3aCUywO','nonInteractive','/**\x0a\x20*\x20ENDPOINT\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','code','stderr','Script\x20type','90006cKCDaL','write','File\x20already\x20exists:\x20','\x22\x20not\x20found\x20for\x20dataset\x20','includes','Alias\x20\x22','\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Request\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Business\x20result\x20(wrapped\x20in\x20response.data).\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','apiDir','16TbQdFN','length','1235727IbBskB','Invalid\x20dataset\x20selection.','join','tableName','read','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','operationType','find','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','Operation\x20type\x20\x22','operation-type','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','HOOK\x20requires\x20alias/operation/node\x20options.','type','281330JRtQcT','Select\x20trigger\x20node:','alias','bff','str','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','\x0a\x20*\x20[触发节点]\x20','close','keys','No\x20operation\x20types\x20found\x20for\x20dataset\x20','1428964xETeDq','appCode','stdin','source','functionNode','/**\x0a\x20*\x20HOOK\x20function\x20template.\x0a\x20*\x0a\x20*\x20[脚本描述]\x20','Script\x20description','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','HOOK','Created\x20','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','string','No\x20api.ts\x20found.\x20Run\x20`','11gawxch','validation','datasetCode','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.',']\x20(','map','function-node','Available:\x20','after','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','COMMON','create','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','Select\x20operation\x20type:','UNKNOWN','Invalid\x20function\x20name\x20\x22','TODO:\x20add\x20script\x20description','Scaffold\x20a\x20new\x20BFF\x20function\x20from\x20template','before'];a30_0x2ff1=function(){return _0xcc01c3;};return a30_0x2ff1();}import{fileExists}from'../../core/bff/file-system.js';function a30_0x24b3(_0x43cd42,_0x3ef6fe){_0x43cd42=_0x43cd42-0x1f4;const _0x2ff10c=a30_0x2ff1();let _0x24b36c=_0x2ff10c[_0x43cd42];return _0x24b36c;}import{isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const bffCreate={'service':a30_0x5cb832(0x231),'command':a30_0x5cb832(0x1f8),'description':a30_0x5cb832(0x1fe),'risk':a30_0x5cb832(0x224),'flags':[{'name':a30_0x5cb832(0x22d),'type':a30_0x5cb832(0x243),'required':!![],'enum':[a30_0x5cb832(0x1f7),'ENDPOINT','HOOK'],'description':a30_0x5cb832(0x215)},{'name':a30_0x5cb832(0x204),'type':a30_0x5cb832(0x243),'required':!![],'description':'Function\x20name\x20(valid\x20JS\x20identifier)'},{'name':a30_0x5cb832(0x20f),'type':'string','description':a30_0x5cb832(0x23e)},{'name':a30_0x5cb832(0x230),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':'datasetcode','type':'string','description':a30_0x5cb832(0x233)},{'name':a30_0x5cb832(0x22a),'type':a30_0x5cb832(0x243),'description':a30_0x5cb832(0x20c)},{'name':a30_0x5cb832(0x24b),'type':'string','description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a30_0x5cb832(0x1ff),a30_0x5cb832(0x1f5)]}],async 'validate'(_0x2cb2f9){const _0x5de8fa=a30_0x5cb832,_0x2c499f=_0x2cb2f9[_0x5de8fa(0x232)](_0x5de8fa(0x204));if(!isValidBffFunctionName(_0x2c499f))throw CliErrors[_0x5de8fa(0x246)](_0x5de8fa(0x1fc)+_0x2c499f+_0x5de8fa(0x242));},async 'execute'(_0x592b02){const _0x2c2177=a30_0x5cb832,_0x3daf3a=loadBffProjectConfig(_0x592b02[_0x2c2177(0x239)]),_0x2e2885=_0x592b02['str'](_0x2c2177(0x22d)),_0x330fee=_0x592b02[_0x2c2177(0x232)](_0x2c2177(0x204)),_0x178445=_0x592b02[_0x2c2177(0x232)]('description')||undefined,_0x3028c9=_0x2e2885===_0x2c2177(0x240)?await resolveHookOptions(_0x3daf3a,_0x592b02):undefined,_0x1208a7=buildFilePath(_0x3daf3a,_0x2e2885,_0x330fee,_0x3028c9);if(await fileExists(_0x1208a7))throw CliErrors[_0x2c2177(0x246)](_0x2c2177(0x218)+_0x1208a7);await mkdir(dirname(_0x1208a7),{'recursive':!![]});const _0x29adb6=generateTemplate(_0x2e2885,_0x330fee,_0x592b02[_0x2c2177(0x239)],_0x178445,_0x3028c9);await writeFile(_0x1208a7,_0x29adb6,_0x2c2177(0x208));const _0x21fee4={'type':_0x2e2885,'name':_0x330fee,'path':_0x1208a7};if(_0x178445)_0x21fee4[_0x2c2177(0x20f)]=_0x178445;if(_0x3028c9){if(_0x3028c9[_0x2c2177(0x230)])_0x21fee4[_0x2c2177(0x230)]=_0x3028c9[_0x2c2177(0x230)];_0x21fee4['datasetCode']=_0x3028c9['datasetCode'],_0x21fee4[_0x2c2177(0x226)]=_0x3028c9['operationType'],_0x21fee4['functionNode']=_0x3028c9['functionNode'];}return{'ok':!![],'data':_0x21fee4,'message':_0x2c2177(0x241)+_0x2e2885+_0x2c2177(0x200)+_0x330fee};}};async function resolveHookOptions(_0x4b00d7,_0x62b78c){const _0x58170a=a30_0x5cb832,_0x41eab8=loadAliasMap(_0x62b78c[_0x58170a(0x21d)],undefined,resolveApiFilePath(_0x62b78c[_0x58170a(0x21d)],_0x62b78c[_0x58170a(0x239)])),_0x5cafef=_0x41eab8[_0x58170a(0x21f)]>0x0;let _0x81e432,_0x51aaf5,_0x1e2480;const _0x1a391b=_0x62b78c[_0x58170a(0x232)]('alias'),_0x181983=_0x62b78c[_0x58170a(0x232)]('datasetcode');if(_0x1a391b){const _0x125e34=resolveAlias(_0x62b78c['apiDir'],_0x1a391b,undefined,resolveApiFilePath(_0x62b78c[_0x58170a(0x21d)],_0x62b78c['appCode']));if(!_0x125e34){const _0x23f6c4=_0x5cafef?'Available\x20aliases:\x20'+_0x41eab8[_0x58170a(0x24a)](_0x20c166=>_0x20c166['alias'])[_0x58170a(0x222)](',\x20'):_0x58170a(0x244)+CLI_BIN_NAME+_0x58170a(0x1f9);throw CliErrors[_0x58170a(0x246)](_0x58170a(0x21b)+_0x1a391b+'\x22\x20not\x20found.\x20'+_0x23f6c4);}_0x81e432=_0x1a391b,_0x51aaf5=_0x125e34;}else{if(_0x181983){_0x51aaf5=_0x181983;const _0x28d861=_0x41eab8['find'](_0x3fcd25=>_0x3fcd25[_0x58170a(0x247)]===_0x181983);_0x81e432=_0x28d861?.[_0x58170a(0x230)];}else{if(_0x62b78c[_0x58170a(0x211)])throw CliErrors['validation'](_0x58170a(0x248));else{if(_0x5cafef){const _0x1b2b4c=_0x41eab8[_0x58170a(0x24a)](_0x1e58ed=>_0x1e58ed['alias']+'\x20('+_0x1e58ed[_0x58170a(0x223)]+')'),_0x29268f=await promptSelect('Select\x20dataset:',_0x1b2b4c),_0xe091b7=_0x41eab8[_0x29268f];if(!_0xe091b7)throw CliErrors[_0x58170a(0x246)](_0x58170a(0x221));_0x81e432=_0xe091b7[_0x58170a(0x230)],_0x51aaf5=_0xe091b7[_0x58170a(0x247)];}else{const _0xd11320=await listDatasets(_0x62b78c[_0x58170a(0x239)]);if(_0xd11320['length']===0x0)throw CliErrors['validation']('No\x20datasets\x20found\x20for\x20this\x20app.');const _0x59eb35=_0xd11320[_0x58170a(0x24a)](_0x14df69=>_0x14df69[_0x58170a(0x204)]+'\x20['+(_0x14df69[_0x58170a(0x23b)]??_0x58170a(0x1fb))+_0x58170a(0x249)+_0x14df69[_0x58170a(0x213)]+')'),_0x526028=await promptSelect('Select\x20dataset:',_0x59eb35),_0x2ef2a0=_0xd11320[_0x526028];if(!_0x2ef2a0)throw CliErrors[_0x58170a(0x246)](_0x58170a(0x221));_0x51aaf5=_0x2ef2a0[_0x58170a(0x213)],_0x81e432=undefined;}}}}const _0x20ebc0=await listDatasets(_0x62b78c[_0x58170a(0x239)]),_0x57b1bc=_0x20ebc0[_0x58170a(0x227)](_0xdffb7=>_0xdffb7['code']===_0x51aaf5);if(!_0x57b1bc)throw CliErrors[_0x58170a(0x246)]('Dataset\x20not\x20found\x20for\x20code\x20\x22'+_0x51aaf5+'\x22.\x20'+(_0x81e432?_0x58170a(0x228)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh.':''));_0x1e2480=_0x57b1bc['id'];const _0x4f69c9=_0x81e432??_0x51aaf5,_0x7840e0=await listBffDatasetOperations(_0x62b78c[_0x58170a(0x239)],_0x1e2480),_0x31a908=_0x7840e0?Object[_0x58170a(0x236)](_0x7840e0):[];if(_0x31a908[_0x58170a(0x21f)]===0x0)throw CliErrors[_0x58170a(0x246)](_0x58170a(0x237)+_0x4f69c9+'.');let _0x1fc73e;const _0x5df032=_0x62b78c['str'](_0x58170a(0x22a));if(_0x5df032){if(!_0x31a908[_0x58170a(0x21a)](_0x5df032))throw CliErrors[_0x58170a(0x246)](_0x58170a(0x229)+_0x5df032+_0x58170a(0x219)+_0x4f69c9+'.\x20'+(_0x58170a(0x1f4)+_0x31a908['join'](',\x20')));_0x1fc73e=_0x5df032;}else{if(_0x62b78c['nonInteractive'])throw CliErrors['validation']('--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0xcdcb27=await promptSelect(_0x58170a(0x1fa),_0x31a908);_0x1fc73e=_0x31a908[_0xcdcb27]??_0x31a908[0x0];}let _0x4c9253=normalizeHookFunctionNode(_0x62b78c['str'](_0x58170a(0x24b)));if(!_0x4c9253){if(_0x62b78c['str'](_0x58170a(0x24b)))throw CliErrors[_0x58170a(0x246)](_0x58170a(0x225));if(_0x62b78c[_0x58170a(0x211)])throw CliErrors['validation'](_0x58170a(0x23f));const _0x20203a=await promptSelect(_0x58170a(0x22f),[_0x58170a(0x1ff),_0x58170a(0x1f5)]);_0x4c9253=['before','after'][_0x20203a]??'before';}return{'alias':_0x81e432,'datasetCode':_0x51aaf5,'datasetId':_0x1e2480,'operationType':_0x1fc73e,'functionNode':_0x4c9253};}async function promptSelect(_0x3b6f67,_0x523f23){const _0x591da7=a30_0x5cb832;if(_0x523f23[_0x591da7(0x21f)]===0x1)return 0x0;for(const [_0x28c293,_0xa9c876]of _0x523f23['entries']()){process[_0x591da7(0x214)][_0x591da7(0x217)]('\x20\x20'+(_0x28c293+0x1)+'.\x20'+_0xa9c876+'\x0a');}const _0x3e7f9b=createInterface({'input':process[_0x591da7(0x23a)],'output':process[_0x591da7(0x214)]});while(!![]){const _0x44d32a=await new Promise(_0x4658a7=>{const _0x4415e9=_0x591da7;_0x3e7f9b[_0x4415e9(0x205)](_0x3b6f67+'\x20',_0x4658a7);}),_0x4f6a05=Number[_0x591da7(0x20b)](_0x44d32a[_0x591da7(0x202)](),0xa);if(Number['isInteger'](_0x4f6a05)&&_0x4f6a05>=0x1&&_0x4f6a05<=_0x523f23[_0x591da7(0x21f)])return _0x3e7f9b[_0x591da7(0x235)](),_0x4f6a05-0x1;process[_0x591da7(0x214)]['write']('\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20'+_0x523f23[_0x591da7(0x21f)]+'.\x0a');}}function buildFilePath(_0x25d204,_0x17fed7,_0x440f22,_0x550c74){const _0x3113ea=a30_0x5cb832;if(_0x17fed7===_0x3113ea(0x240)){if(!_0x550c74)throw CliErrors[_0x3113ea(0x246)](_0x3113ea(0x22c));const _0x570418=_0x550c74[_0x3113ea(0x230)]??_0x550c74[_0x3113ea(0x247)];return join(_0x25d204['scriptsRootDir'],_0x3113ea(0x240),_0x570418,_0x550c74[_0x3113ea(0x226)],_0x550c74[_0x3113ea(0x23c)],_0x440f22+'.js');}return join(_0x25d204['scriptsRootDir'],_0x17fed7,_0x440f22+'.js');}export function generateTemplate(_0xdcb278,_0x350590,_0x5100cc,_0x3c29d8,_0x28627a){const _0x279ed8=a30_0x5cb832,_0x377ce6=_0x3c29d8?.[_0x279ed8(0x202)]()||_0x279ed8(0x1fd);if(_0xdcb278===_0x279ed8(0x1f7))return _0x279ed8(0x20e)+_0x377ce6+'\x0a\x20*\x20[脚本名称]\x20'+_0x350590+'\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/COMMON/'+_0x350590+'.js\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Input\x20parameters.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Processing\x20result.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x350590+_0x279ed8(0x20a);if(_0xdcb278===_0x279ed8(0x20d))return _0x279ed8(0x212)+_0x377ce6+'\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/{appCode}/{scriptName}\x0a\x20*\x20[当前示例]\x20POST\x20/api/endpoint/'+_0x5100cc+'/'+_0x350590+_0x279ed8(0x21c)+_0x350590+_0x279ed8(0x20a);if(!_0x28627a)throw CliErrors[_0x279ed8(0x246)](_0x279ed8(0x1f6));return _0x279ed8(0x23d)+_0x377ce6+_0x279ed8(0x22b)+_0x5100cc+'/'+_0x28627a[_0x279ed8(0x247)]+'/'+_0x28627a[_0x279ed8(0x226)]+_0x279ed8(0x234)+_0x28627a[_0x279ed8(0x23c)]+'\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20-\x20Current\x20request\x20params\x20or\x20response\x20result.\x0a\x20*\x20@param\x20{Object}\x20context\x20-\x20Execution\x20context\x20(injected\x20by\x20platform).\x0a\x20*\x20@returns\x20{Promise<Object>}\x20Modified\x20params\x20object.\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x350590+_0x279ed8(0x20a);}
@@ -1 +1 @@
1
- const a31_0x31ffc3=a31_0x1b1a;(function(_0x3b4719,_0x53e1fc){const _0x4ee127=a31_0x1b1a,_0x12fcef=_0x3b4719();while(!![]){try{const _0x4df4a5=parseInt(_0x4ee127(0x203))/0x1+-parseInt(_0x4ee127(0x1f7))/0x2+-parseInt(_0x4ee127(0x1f3))/0x3*(parseInt(_0x4ee127(0x1ec))/0x4)+-parseInt(_0x4ee127(0x205))/0x5+-parseInt(_0x4ee127(0x20a))/0x6*(parseInt(_0x4ee127(0x1f0))/0x7)+-parseInt(_0x4ee127(0x1f1))/0x8+parseInt(_0x4ee127(0x201))/0x9*(parseInt(_0x4ee127(0x1fb))/0xa);if(_0x4df4a5===_0x53e1fc)break;else _0x12fcef['push'](_0x12fcef['shift']());}catch(_0x194b47){_0x12fcef['push'](_0x12fcef['shift']());}}}(a31_0x153d,0x49c63));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';function a31_0x1b1a(_0x5cd648,_0x387a5b){_0x5cd648=_0x5cd648-0x1e8;const _0x153d8b=a31_0x153d();let _0x1b1af5=_0x153d8b[_0x5cd648];return _0x1b1af5;}import{dirname,join,relative,resolve,sep}from'node:path';import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':a31_0x31ffc3(0x1fd),'command':a31_0x31ffc3(0x20c),'description':'Delete\x20a\x20BFF\x20script\x20from\x20remote\x20and\x20local','risk':a31_0x31ffc3(0x210),'flags':[{'name':'target','type':'string','required':!![],'description':a31_0x31ffc3(0x209)}],async 'validate'(_0x23a3cd){const _0x5c24b1=a31_0x31ffc3,_0xcf4b74=loadBffProjectConfig(_0x23a3cd[_0x5c24b1(0x1eb)]),_0x5dd661=await readBffLockFile(_0xcf4b74['lockFilePath']);if(!_0x5dd661)throw CliErrors['validation'](_0x5c24b1(0x1ff));},async 'dryRun'(_0x3cd9db){const _0x4363b2=a31_0x31ffc3,_0x2f29e3=loadBffProjectConfig(_0x3cd9db[_0x4363b2(0x1eb)]),_0x386951=await readBffLockFile(_0x2f29e3['lockFilePath']);if(!_0x386951)throw CliErrors[_0x4363b2(0x216)](_0x4363b2(0x1f9));const {appLock:_0x3b48ee}=ensureLockScope(_0x386951,_0x3cd9db['appCode'],_0x2f29e3['scriptsRoot'],_0x4363b2(0x20c)),_0x3c4424=_0x3cd9db[_0x4363b2(0x200)](_0x4363b2(0x21a)),_0x13a34e=Object['keys'](_0x3b48ee[_0x4363b2(0x1ef)]),_0xba749=resolveDeleteTarget(_0x3c4424,_0x13a34e),_0x519958=_0x3b48ee[_0x4363b2(0x1ef)][_0xba749];if(!_0x519958)throw CliErrors[_0x4363b2(0x216)]('No\x20lock\x20entry\x20found\x20for\x20\x22'+_0xba749+'\x22.');const _0x13873d=resolveLocalFilePathFromLockKey(_0x2f29e3,_0xba749),_0x2f4e8c=relative(_0x2f29e3[_0x4363b2(0x1fc)],_0x13873d),_0x3c72b9=join(_0x2f29e3['trashDir'],_0x4363b2(0x20e),_0x2f4e8c);return{'method':_0x4363b2(0x215),'url':'/api/management/library/scripts/delete','body':{'appCode':_0x3cd9db[_0x4363b2(0x1eb)],'target':_0xba749,'remoteId':_0x519958[_0x4363b2(0x207)],'localFilePath':_0x13873d,'trashedPath':_0x3c72b9},'description':'Would\x20delete\x20'+_0xba749+_0x4363b2(0x211)};},async 'execute'(_0x2e1f62){const _0x15b0b6=a31_0x31ffc3,_0x409340=loadBffProjectConfig(_0x2e1f62[_0x15b0b6(0x1eb)]),_0xe6acd8=await readBffLockFile(_0x409340[_0x15b0b6(0x1fa)]);if(!_0xe6acd8)throw CliErrors[_0x15b0b6(0x216)](_0x15b0b6(0x1f9));const {lockData:_0x10851e,appLock:_0x495a40}=ensureLockScope(_0xe6acd8,_0x2e1f62[_0x15b0b6(0x1eb)],_0x409340[_0x15b0b6(0x202)],'delete'),_0x4ae6cf=JSON[_0x15b0b6(0x218)](JSON[_0x15b0b6(0x1f2)](_0x10851e)),_0x226fa0=_0x4ae6cf[_0x15b0b6(0x1ee)][_0x2e1f62['appCode']];if(!_0x226fa0)throw new Error(_0x15b0b6(0x1f5)+_0x2e1f62['appCode']+_0x15b0b6(0x1fe));const _0x1c9a71=_0x2e1f62['str'](_0x15b0b6(0x21a)),_0x18b07e=Object[_0x15b0b6(0x1ea)](_0x226fa0[_0x15b0b6(0x1ef)]),_0x4449e4=resolveDeleteTarget(_0x1c9a71,_0x18b07e),_0x43351b=_0x226fa0[_0x15b0b6(0x1ef)][_0x4449e4];if(!_0x43351b)throw CliErrors[_0x15b0b6(0x216)](_0x15b0b6(0x1f6)+_0x4449e4+'\x22.');await deleteBffScript(_0x43351b[_0x15b0b6(0x207)]),delete _0x226fa0[_0x15b0b6(0x1ef)][_0x4449e4],_0x226fa0[_0x15b0b6(0x20b)]=new Date()[_0x15b0b6(0x212)](),await writeBffLockFile(_0x409340[_0x15b0b6(0x1fa)],_0x4ae6cf);const _0x15f102=resolveLocalFilePathFromLockKey(_0x409340,_0x4449e4);let _0x23752c;await fileExists(_0x15f102)&&(_0x23752c=await moveToTrash(_0x409340[_0x15b0b6(0x1fc)],_0x409340[_0x15b0b6(0x1f4)],_0x15f102),await cleanupEmptyDirectories(dirname(_0x15f102),_0x409340[_0x15b0b6(0x217)]));await waitForDeleteSettlement(_0x409340['lockFilePath'],_0x2e1f62[_0x15b0b6(0x1eb)],_0x4449e4,_0x15f102),await sleep(0x96);const _0x3a69cf={'deleted':_0x4449e4,'remoteId':_0x43351b[_0x15b0b6(0x207)]};if(_0x23752c)_0x3a69cf[_0x15b0b6(0x213)]=_0x23752c;return{'ok':!![],'data':_0x3a69cf,'message':'Deleted\x20'+_0x4449e4+(_0x23752c?_0x15b0b6(0x214):'')};}};function resolveDeleteTarget(_0x58f851,_0x3b3e3f){const _0x313415=a31_0x31ffc3;if(_0x58f851[_0x313415(0x1ed)]('/')){const _0x20d196=_0x3b3e3f[_0x313415(0x206)](_0x5a21b3=>_0x5a21b3===_0x58f851);if(!_0x20d196)throw CliErrors[_0x313415(0x216)](_0x313415(0x219)+_0x58f851);return _0x20d196;}const _0x442f4e=_0x3b3e3f['filter'](_0x58659b=>_0x58659b['split']('/')['at'](-0x1)===_0x58f851);if(_0x442f4e[_0x313415(0x208)]===0x0)throw CliErrors[_0x313415(0x216)](_0x313415(0x219)+_0x58f851);if(_0x442f4e[_0x313415(0x208)]>0x1)throw CliErrors[_0x313415(0x216)]('Multiple\x20functions\x20match\x20\x22'+_0x58f851+_0x313415(0x1e8)+_0x442f4e[_0x313415(0x20f)](_0x823603=>_0x313415(0x204)+_0x823603)[_0x313415(0x20d)]('\x0a'));return _0x442f4e[0x0];}function a31_0x153d(){const _0x70250f=['toISOString','trashedTo','\x20(local\x20file\x20moved\x20to\x20trash)','POST','validation','scriptsRootDir','parse','Function\x20not\x20found:\x20','target','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','replace','keys','appCode','124idVhJx','includes','apps','functions','7qHTWFc','1366288tJgoYR','stringify','24546YUoZZR','trashDir','Lock\x20scope\x20for\x20app\x20\x22','No\x20lock\x20entry\x20found\x20for\x20\x22','353504oMRThO','startsWith','BFF\x20lock\x20file\x20not\x20found.','lockFilePath','260EYgbeu','projectRoot','bff','\x22\x20not\x20found\x20after\x20ensureLockScope.','BFF\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','str','380007GfUUaR','scriptsRoot','585824srMBOl','\x20\x20-\x20','2972100MjGNhb','find','remoteId','length','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','1115058lHlIac','lastSync','delete','join','<timestamp>','map','high-risk-write','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash'];a31_0x153d=function(){return _0x70250f;};return a31_0x153d();}async function moveToTrash(_0x5e8846,_0x373927,_0x3f99e9){const _0x38d611=a31_0x31ffc3,_0x5e96be=new Date()[_0x38d611(0x212)]()[_0x38d611(0x1e9)](/[:.]/g,'-'),_0x4315f6=relative(_0x5e8846,_0x3f99e9),_0x3f924e=join(_0x373927,_0x5e96be,_0x4315f6);return await mkdir(dirname(_0x3f924e),{'recursive':!![]}),await rename(_0x3f99e9,_0x3f924e),_0x3f924e;}async function cleanupEmptyDirectories(_0x4d9096,_0x18b6ae){const _0x2ca1bb=a31_0x31ffc3;let _0x39bc02=resolve(_0x4d9096);const _0x5afb4d=resolve(_0x18b6ae);while(_0x39bc02[_0x2ca1bb(0x1f8)](''+_0x5afb4d+sep)||_0x39bc02===_0x5afb4d){if(_0x39bc02===_0x5afb4d)return;try{const _0x55b272=await readdir(_0x39bc02);if(_0x55b272[_0x2ca1bb(0x208)]>0x0)return;await rmdir(_0x39bc02);}catch{return;}_0x39bc02=dirname(_0x39bc02);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x53aca6,_0x3ffecc,_0x28b446,_0x4ca18a){const _0x285f52=a31_0x31ffc3;for(let _0x16a2c2=0x0;_0x16a2c2<DELETE_SETTLE_RETRY_COUNT;_0x16a2c2+=0x1){const _0x51bfcc=await readBffLockFile(_0x53aca6),_0x2d3f41=!!_0x51bfcc?.[_0x285f52(0x1ee)]?.[_0x3ffecc]?.[_0x285f52(0x1ef)]?.[_0x28b446],_0x4f4d91=await fileExists(_0x4ca18a);if(!_0x2d3f41&&!_0x4f4d91)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error('Local\x20delete\x20not\x20settled\x20for\x20'+_0x28b446+'.');}
1
+ const a31_0x1871f7=a31_0xa9a8;function a31_0xa9a8(_0x1a9043,_0x2f2df0){_0x1a9043=_0x1a9043-0x1c2;const _0x2c9c5e=a31_0x2c9c();let _0xa9a813=_0x2c9c5e[_0x1a9043];return _0xa9a813;}(function(_0xfbb454,_0x12cefd){const _0xb898e=a31_0xa9a8,_0x562552=_0xfbb454();while(!![]){try{const _0x29fe74=-parseInt(_0xb898e(0x1dc))/0x1*(parseInt(_0xb898e(0x1e5))/0x2)+-parseInt(_0xb898e(0x1e4))/0x3*(-parseInt(_0xb898e(0x1c6))/0x4)+parseInt(_0xb898e(0x1f0))/0x5+-parseInt(_0xb898e(0x1ed))/0x6+parseInt(_0xb898e(0x1cd))/0x7+parseInt(_0xb898e(0x1c7))/0x8+parseInt(_0xb898e(0x1da))/0x9*(-parseInt(_0xb898e(0x1d7))/0xa);if(_0x29fe74===_0x12cefd)break;else _0x562552['push'](_0x562552['shift']());}catch(_0x2f85eb){_0x562552['push'](_0x562552['shift']());}}}(a31_0x2c9c,0x594f3));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';import{dirname,join,relative,resolve,sep}from'node:path';import{deleteBffScript}from'../../core/api-client.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a31_0x2c9c(){const _0x3d065d=['1181330YkuAuh','Function\x20not\x20found:\x20','Deleted\x20','27kVSfYi','length','1KlcnWe','POST','trashDir','remoteId','scriptsRootDir','<timestamp>','split','parse','885SdiVKn','290266AIcCuG','validation','join','startsWith','apps','toISOString','\x22\x20not\x20found\x20after\x20ensureLockScope.','lockFilePath','3346422fBRcjZ','No\x20lock\x20entry\x20found\x20for\x20\x22','Delete\x20a\x20BFF\x20script\x20from\x20remote\x20and\x20local','1990730EMHeCz','Multiple\x20functions\x20match\x20\x22','replace','/api/management/library/scripts/delete','appCode','str','projectRoot','604SdBify','2686400XuZGXR','stringify','high-risk-write','includes','find','target','4512123WizCBV','BFF\x20lock\x20file\x20not\x20found.','map','delete','BFF\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','keys','Local\x20delete\x20not\x20settled\x20for\x20','\x20(local\x20file\x20moved\x20to\x20trash)','functions','\x20\x20-\x20'];a31_0x2c9c=function(){return _0x3d065d;};return a31_0x2c9c();}import{fileExists,resolveLocalFilePathFromLockKey}from'../../core/bff/file-system.js';import{ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';import{sleep}from'../../utils/sleep.js';export const bffDelete={'service':'bff','command':a31_0x1871f7(0x1d0),'description':a31_0x1871f7(0x1ef),'risk':a31_0x1871f7(0x1c9),'flags':[{'name':a31_0x1871f7(0x1cc),'type':'string','required':!![],'description':'Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name'}],async 'validate'(_0x4d5a6b){const _0x5275ee=a31_0x1871f7,_0x37bfbc=loadBffProjectConfig(_0x4d5a6b[_0x5275ee(0x1c3)]),_0xd15250=await readBffLockFile(_0x37bfbc[_0x5275ee(0x1ec)]);if(!_0xd15250)throw CliErrors[_0x5275ee(0x1e6)](_0x5275ee(0x1d1));},async 'dryRun'(_0x4b2a38){const _0x515d87=a31_0x1871f7,_0x1a4195=loadBffProjectConfig(_0x4b2a38[_0x515d87(0x1c3)]),_0xfc0afb=await readBffLockFile(_0x1a4195[_0x515d87(0x1ec)]);if(!_0xfc0afb)throw CliErrors['validation'](_0x515d87(0x1ce));const {appLock:_0x312571}=ensureLockScope(_0xfc0afb,_0x4b2a38['appCode'],_0x1a4195['scriptsRoot'],_0x515d87(0x1d0)),_0xb3facf=_0x4b2a38['str'](_0x515d87(0x1cc)),_0x9f9bbd=Object[_0x515d87(0x1d2)](_0x312571[_0x515d87(0x1d5)]),_0x1f4222=resolveDeleteTarget(_0xb3facf,_0x9f9bbd),_0x151fdd=_0x312571[_0x515d87(0x1d5)][_0x1f4222];if(!_0x151fdd)throw CliErrors['validation']('No\x20lock\x20entry\x20found\x20for\x20\x22'+_0x1f4222+'\x22.');const _0x1bb46d=resolveLocalFilePathFromLockKey(_0x1a4195,_0x1f4222),_0x3c9b32=relative(_0x1a4195[_0x515d87(0x1c5)],_0x1bb46d),_0xd8f9df=join(_0x1a4195[_0x515d87(0x1de)],_0x515d87(0x1e1),_0x3c9b32);return{'method':_0x515d87(0x1dd),'url':_0x515d87(0x1c2),'body':{'appCode':_0x4b2a38[_0x515d87(0x1c3)],'target':_0x1f4222,'remoteId':_0x151fdd['remoteId'],'localFilePath':_0x1bb46d,'trashedPath':_0xd8f9df},'description':'Would\x20delete\x20'+_0x1f4222+'\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash'};},async 'execute'(_0x158573){const _0x84e388=a31_0x1871f7,_0x42ed5a=loadBffProjectConfig(_0x158573[_0x84e388(0x1c3)]),_0x256055=await readBffLockFile(_0x42ed5a[_0x84e388(0x1ec)]);if(!_0x256055)throw CliErrors[_0x84e388(0x1e6)](_0x84e388(0x1ce));const {lockData:_0x4706f4,appLock:_0x23637c}=ensureLockScope(_0x256055,_0x158573['appCode'],_0x42ed5a['scriptsRoot'],'delete'),_0x2540c7=JSON[_0x84e388(0x1e3)](JSON[_0x84e388(0x1c8)](_0x4706f4)),_0xd76ea8=_0x2540c7[_0x84e388(0x1e9)][_0x158573[_0x84e388(0x1c3)]];if(!_0xd76ea8)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x158573['appCode']+_0x84e388(0x1eb));const _0xcd38f1=_0x158573[_0x84e388(0x1c4)](_0x84e388(0x1cc)),_0x301754=Object[_0x84e388(0x1d2)](_0xd76ea8[_0x84e388(0x1d5)]),_0x5a10df=resolveDeleteTarget(_0xcd38f1,_0x301754),_0x4b1085=_0xd76ea8['functions'][_0x5a10df];if(!_0x4b1085)throw CliErrors[_0x84e388(0x1e6)](_0x84e388(0x1ee)+_0x5a10df+'\x22.');await deleteBffScript(_0x4b1085[_0x84e388(0x1df)]),delete _0xd76ea8[_0x84e388(0x1d5)][_0x5a10df],_0xd76ea8['lastSync']=new Date()['toISOString'](),await writeBffLockFile(_0x42ed5a['lockFilePath'],_0x2540c7);const _0x2607a1=resolveLocalFilePathFromLockKey(_0x42ed5a,_0x5a10df);let _0x3b92e0;await fileExists(_0x2607a1)&&(_0x3b92e0=await moveToTrash(_0x42ed5a['projectRoot'],_0x42ed5a[_0x84e388(0x1de)],_0x2607a1),await cleanupEmptyDirectories(dirname(_0x2607a1),_0x42ed5a[_0x84e388(0x1e0)]));await waitForDeleteSettlement(_0x42ed5a['lockFilePath'],_0x158573[_0x84e388(0x1c3)],_0x5a10df,_0x2607a1),await sleep(0x96);const _0x3ecbac={'deleted':_0x5a10df,'remoteId':_0x4b1085[_0x84e388(0x1df)]};if(_0x3b92e0)_0x3ecbac['trashedTo']=_0x3b92e0;return{'ok':!![],'data':_0x3ecbac,'message':_0x84e388(0x1d9)+_0x5a10df+(_0x3b92e0?_0x84e388(0x1d4):'')};}};function resolveDeleteTarget(_0x51245b,_0x532808){const _0x59d64c=a31_0x1871f7;if(_0x51245b[_0x59d64c(0x1ca)]('/')){const _0x45cb4c=_0x532808[_0x59d64c(0x1cb)](_0x5853b1=>_0x5853b1===_0x51245b);if(!_0x45cb4c)throw CliErrors[_0x59d64c(0x1e6)]('Function\x20not\x20found:\x20'+_0x51245b);return _0x45cb4c;}const _0x145dcf=_0x532808['filter'](_0x4666f1=>_0x4666f1[_0x59d64c(0x1e2)]('/')['at'](-0x1)===_0x51245b);if(_0x145dcf[_0x59d64c(0x1db)]===0x0)throw CliErrors[_0x59d64c(0x1e6)](_0x59d64c(0x1d8)+_0x51245b);if(_0x145dcf['length']>0x1)throw CliErrors[_0x59d64c(0x1e6)](_0x59d64c(0x1f1)+_0x51245b+'\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a'+_0x145dcf[_0x59d64c(0x1cf)](_0x526171=>_0x59d64c(0x1d6)+_0x526171)[_0x59d64c(0x1e7)]('\x0a'));return _0x145dcf[0x0];}async function moveToTrash(_0x3d5740,_0x2133b2,_0x11b85c){const _0x3fc1c3=a31_0x1871f7,_0x26d3b8=new Date()[_0x3fc1c3(0x1ea)]()[_0x3fc1c3(0x1f2)](/[:.]/g,'-'),_0xe6ab3=relative(_0x3d5740,_0x11b85c),_0x2f7a9=join(_0x2133b2,_0x26d3b8,_0xe6ab3);return await mkdir(dirname(_0x2f7a9),{'recursive':!![]}),await rename(_0x11b85c,_0x2f7a9),_0x2f7a9;}async function cleanupEmptyDirectories(_0x20ab98,_0x569e9b){const _0x9bade9=a31_0x1871f7;let _0xbc32c0=resolve(_0x20ab98);const _0xfb063d=resolve(_0x569e9b);while(_0xbc32c0[_0x9bade9(0x1e8)](''+_0xfb063d+sep)||_0xbc32c0===_0xfb063d){if(_0xbc32c0===_0xfb063d)return;try{const _0x4f4856=await readdir(_0xbc32c0);if(_0x4f4856[_0x9bade9(0x1db)]>0x0)return;await rmdir(_0xbc32c0);}catch{return;}_0xbc32c0=dirname(_0xbc32c0);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0xa96fd5,_0x103c2d,_0x20d4dc,_0x10e52d){const _0x414a59=a31_0x1871f7;for(let _0x5f22c0=0x0;_0x5f22c0<DELETE_SETTLE_RETRY_COUNT;_0x5f22c0+=0x1){const _0x1be371=await readBffLockFile(_0xa96fd5),_0x4a3656=!!_0x1be371?.[_0x414a59(0x1e9)]?.[_0x103c2d]?.['functions']?.[_0x20d4dc],_0x174bf6=await fileExists(_0x10e52d);if(!_0x4a3656&&!_0x174bf6)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error(_0x414a59(0x1d3)+_0x20d4dc+'.');}
@@ -1 +1 @@
1
- const a32_0x226e66=a32_0x3ba2;(function(_0x30b8c3,_0x213347){const _0x3ecddb=a32_0x3ba2,_0x3cdd5d=_0x30b8c3();while(!![]){try{const _0x139d1d=parseInt(_0x3ecddb(0xd8))/0x1+-parseInt(_0x3ecddb(0xc0))/0x2*(parseInt(_0x3ecddb(0xd0))/0x3)+parseInt(_0x3ecddb(0xd2))/0x4*(parseInt(_0x3ecddb(0xda))/0x5)+parseInt(_0x3ecddb(0xcb))/0x6+parseInt(_0x3ecddb(0xc1))/0x7*(-parseInt(_0x3ecddb(0xc9))/0x8)+-parseInt(_0x3ecddb(0xcd))/0x9+parseInt(_0x3ecddb(0xce))/0xa*(parseInt(_0x3ecddb(0xc3))/0xb);if(_0x139d1d===_0x213347)break;else _0x3cdd5d['push'](_0x3cdd5d['shift']());}catch(_0x45c4d6){_0x3cdd5d['push'](_0x3cdd5d['shift']());}}}(a32_0x7c22,0x84783));function a32_0x7c22(){const _0x2e20be=['1066495yhCqAr','8irGkBQ','4796309JOBzgl','detail','44jaieHT','boolean','bff','scriptType','Script\x20ID','appCode','8DSBApz','description','435270OcyECo','Get\x20BFF\x20script\x20details\x20by\x20ID','8479062zTrKCB','5029600qsLhbP','(none)','776535VStDPN','verbose','8AlgRSl','Return\x20full\x20raw\x20script\x20object','createdTime','number','scriptContent','read','694297fgoMpc','bool'];a32_0x7c22=function(){return _0x2e20be;};return a32_0x7c22();}import{getBffScriptInfo}from'../../core/api-client.js';function a32_0x3ba2(_0x24d319,_0x3c92f4){_0x24d319=_0x24d319-0xc0;const _0x7c2204=a32_0x7c22();let _0x3ba258=_0x7c2204[_0x24d319];return _0x3ba258;}export const bffDetail={'service':a32_0x226e66(0xc5),'command':a32_0x226e66(0xc2),'description':a32_0x226e66(0xcc),'risk':a32_0x226e66(0xd7),'flags':[{'name':'id','type':a32_0x226e66(0xd5),'required':!![],'description':a32_0x226e66(0xc7)},{'name':a32_0x226e66(0xd1),'type':a32_0x226e66(0xc4),'description':a32_0x226e66(0xd3)}],async 'execute'(_0x43837e){const _0x2b4b3b=a32_0x226e66,_0x114869=await getBffScriptInfo(_0x43837e['num']('id')),_0x5c790f=_0x43837e[_0x2b4b3b(0xd9)](_0x2b4b3b(0xd1));if(_0x5c790f)return{'ok':!![],'data':_0x114869};return{'ok':!![],'data':{'id':_0x114869['id'],'appCode':_0x114869[_0x2b4b3b(0xc8)],'scriptType':_0x114869[_0x2b4b3b(0xc6)],'description':_0x114869[_0x2b4b3b(0xca)]||_0x2b4b3b(0xcf),'createdTime':_0x114869[_0x2b4b3b(0xd4)]??'','updatedTime':_0x114869['updatedTime']??'','scriptContent':_0x114869[_0x2b4b3b(0xd6)]??''}};}};
1
+ const a32_0x40c529=a32_0x23f7;(function(_0xc4fed4,_0x3467b8){const _0x49ac36=a32_0x23f7,_0x4dda8a=_0xc4fed4();while(!![]){try{const _0x59e6f2=-parseInt(_0x49ac36(0x1c2))/0x1*(parseInt(_0x49ac36(0x1c5))/0x2)+parseInt(_0x49ac36(0x1ca))/0x3+-parseInt(_0x49ac36(0x1cd))/0x4+-parseInt(_0x49ac36(0x1c1))/0x5*(-parseInt(_0x49ac36(0x1bd))/0x6)+parseInt(_0x49ac36(0x1cc))/0x7+parseInt(_0x49ac36(0x1bf))/0x8*(-parseInt(_0x49ac36(0x1c8))/0x9)+-parseInt(_0x49ac36(0x1b9))/0xa*(-parseInt(_0x49ac36(0x1c0))/0xb);if(_0x59e6f2===_0x3467b8)break;else _0x4dda8a['push'](_0x4dda8a['shift']());}catch(_0x57ff5a){_0x4dda8a['push'](_0x4dda8a['shift']());}}}(a32_0x596f,0x41d6e));function a32_0x23f7(_0x3cfedc,_0x4c7890){_0x3cfedc=_0x3cfedc-0x1b9;const _0x596fd9=a32_0x596f();let _0x23f7c7=_0x596fd9[_0x3cfedc];return _0x23f7c7;}function a32_0x596f(){const _0x393809=['62114TjcXpk','read','verbose','427410VLzqEh','detail','907242tbycHg','(none)','1657747oZXDyC','1388424EywTwk','number','bff','scriptContent','1855890fnpCSd','updatedTime','Script\x20ID','num','1541718LfBbFG','Get\x20BFF\x20script\x20details\x20by\x20ID','56ATyHOu','33YAojUl','5FpfzbB','13WicYgY','boolean','scriptType'];a32_0x596f=function(){return _0x393809;};return a32_0x596f();}import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a32_0x40c529(0x1cf),'command':a32_0x40c529(0x1c9),'description':a32_0x40c529(0x1be),'risk':a32_0x40c529(0x1c6),'flags':[{'name':'id','type':a32_0x40c529(0x1ce),'required':!![],'description':a32_0x40c529(0x1bb)},{'name':a32_0x40c529(0x1c7),'type':a32_0x40c529(0x1c3),'description':'Return\x20full\x20raw\x20script\x20object'}],async 'execute'(_0x332a68){const _0x606926=a32_0x40c529,_0x1a7c4a=await getBffScriptInfo(_0x332a68[_0x606926(0x1bc)]('id')),_0x12f398=_0x332a68['bool'](_0x606926(0x1c7));if(_0x12f398)return{'ok':!![],'data':_0x1a7c4a};return{'ok':!![],'data':{'id':_0x1a7c4a['id'],'appCode':_0x1a7c4a['appCode'],'scriptType':_0x1a7c4a[_0x606926(0x1c4)],'description':_0x1a7c4a['description']||_0x606926(0x1cb),'createdTime':_0x1a7c4a['createdTime']??'','updatedTime':_0x1a7c4a[_0x606926(0x1ba)]??'','scriptContent':_0x1a7c4a[_0x606926(0x1d0)]??''}};}};
@@ -1 +1 @@
1
- (function(_0x4e630d,_0x23dce9){const _0x3f590c=a33_0xb166,_0x4dfc37=_0x4e630d();while(!![]){try{const _0x1b70d4=parseInt(_0x3f590c(0xb2))/0x1*(parseInt(_0x3f590c(0xad))/0x2)+-parseInt(_0x3f590c(0xab))/0x3+parseInt(_0x3f590c(0xae))/0x4+parseInt(_0x3f590c(0xaf))/0x5+-parseInt(_0x3f590c(0xaa))/0x6*(parseInt(_0x3f590c(0xb1))/0x7)+-parseInt(_0x3f590c(0xb0))/0x8+parseInt(_0x3f590c(0xac))/0x9;if(_0x1b70d4===_0x23dce9)break;else _0x4dfc37['push'](_0x4dfc37['shift']());}catch(_0x225f93){_0x4dfc37['push'](_0x4dfc37['shift']());}}}(a33_0xdcd5,0x8cbbf));function a33_0xb166(_0x407de0,_0x15cdde){_0x407de0=_0x407de0-0xaa;const _0xdcd5b8=a33_0xdcd5();let _0xb1664b=_0xdcd5b8[_0x407de0];return _0xb1664b;}import{bffList}from'../../commands/bff/list.js';import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';import{bffPush}from'../../commands/bff/push.js';function a33_0xdcd5(){const _0x266e70=['1INaHKy','1550742QuTDHk','2354073PWZkzo','9037350opDjpc','1056282PEzjWC','2042520dDIcpW','1919140jsXECd','2321920HHLOrZ','21qPLsPv'];a33_0xdcd5=function(){return _0x266e70;};return a33_0xdcd5();}import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];
1
+ (function(_0x5703aa,_0x1b5c84){const _0x2a0793=a33_0x1d42,_0x2fbd80=_0x5703aa();while(!![]){try{const _0x915a8=-parseInt(_0x2a0793(0xdd))/0x1*(parseInt(_0x2a0793(0xe0))/0x2)+parseInt(_0x2a0793(0xe5))/0x3*(-parseInt(_0x2a0793(0xde))/0x4)+-parseInt(_0x2a0793(0xe8))/0x5+parseInt(_0x2a0793(0xdf))/0x6*(parseInt(_0x2a0793(0xe4))/0x7)+parseInt(_0x2a0793(0xe7))/0x8*(parseInt(_0x2a0793(0xe1))/0x9)+-parseInt(_0x2a0793(0xe6))/0xa*(-parseInt(_0x2a0793(0xe3))/0xb)+parseInt(_0x2a0793(0xe2))/0xc;if(_0x915a8===_0x1b5c84)break;else _0x2fbd80['push'](_0x2fbd80['shift']());}catch(_0x3a1914){_0x2fbd80['push'](_0x2fbd80['shift']());}}}(a33_0x4b9d,0x84e8e));function a33_0x1d42(_0x4726e9,_0x452de6){_0x4726e9=_0x4726e9-0xdd;const _0x4b9d19=a33_0x4b9d();let _0x1d4216=_0x4b9d19[_0x4726e9];return _0x1d4216;}import{bffList}from'../../commands/bff/list.js';import{bffDetail}from'../../commands/bff/detail.js';import{bffStatus}from'../../commands/bff/status.js';import{bffCreate}from'../../commands/bff/create.js';import{bffPush}from'../../commands/bff/push.js';function a33_0x4b9d(){const _0x5dd60d=['5108ebbosw','3386316SRtkWr','3924534GzWwIB','18BLMFzB','513603ySYbIf','9094968GemTof','56452KgRXuh','7GoAqIG','3jVhpym','690uDfyqT','8VykLTc','1931145VRiiUh'];a33_0x4b9d=function(){return _0x5dd60d;};return a33_0x4b9d();}import{bffPull}from'../../commands/bff/pull.js';import{bffDelete}from'../../commands/bff/delete.js';export const bffDefinitions=[bffList,bffDetail,bffStatus,bffCreate,bffPush,bffPull,bffDelete];