@lovrabet/rabetbase-cli 2.5.1-beta.5 → 2.5.1-beta.6

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 (319) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-restore.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  80. package/lib/commands/db/analysis-batching.js +1 -1
  81. package/lib/commands/db/analyze-batch-plan.js +1 -1
  82. package/lib/commands/db/analyze-cancel.js +1 -1
  83. package/lib/commands/db/analyze-start.js +1 -1
  84. package/lib/commands/db/analyze-status.js +1 -1
  85. package/lib/commands/db/create.js +1 -1
  86. package/lib/commands/db/delete.js +1 -1
  87. package/lib/commands/db/detail.js +1 -1
  88. package/lib/commands/db/diff-refresh-start.js +1 -1
  89. package/lib/commands/db/diff-refresh-status.js +1 -1
  90. package/lib/commands/db/diff.js +1 -1
  91. package/lib/commands/db/index.js +1 -1
  92. package/lib/commands/db/list.js +1 -1
  93. package/lib/commands/db/shared.js +1 -1
  94. package/lib/commands/db/table-diff-shared.js +1 -1
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/deployment/auto-sync.js +1 -1
  99. package/lib/commands/deployment/index.js +1 -1
  100. package/lib/commands/deployment/sync.js +1 -1
  101. package/lib/commands/doctor.js +1 -1
  102. package/lib/commands/file/index.js +1 -1
  103. package/lib/commands/issue/index.js +1 -1
  104. package/lib/commands/issue/nudge.js +1 -1
  105. package/lib/commands/issue/report.js +1 -1
  106. package/lib/commands/issue/shared.js +1 -1
  107. package/lib/commands/kb/create.js +1 -1
  108. package/lib/commands/kb/delete.js +1 -1
  109. package/lib/commands/kb/detail.js +1 -1
  110. package/lib/commands/kb/index.js +1 -1
  111. package/lib/commands/kb/list.js +1 -1
  112. package/lib/commands/kb/search.js +1 -1
  113. package/lib/commands/kb/shared.js +1 -1
  114. package/lib/commands/kb/update.js +1 -1
  115. package/lib/commands/logs/index.js +1 -1
  116. package/lib/commands/menu/asset-update.js +1 -1
  117. package/lib/commands/menu/delete.js +1 -1
  118. package/lib/commands/menu/external-link-create.js +1 -1
  119. package/lib/commands/menu/external-link-update.js +1 -1
  120. package/lib/commands/menu/group-create.js +1 -1
  121. package/lib/commands/menu/group-update.js +1 -1
  122. package/lib/commands/menu/index.js +1 -1
  123. package/lib/commands/menu/list.js +1 -1
  124. package/lib/commands/menu/move.js +1 -1
  125. package/lib/commands/menu/regroup-start.js +1 -1
  126. package/lib/commands/menu/rename.js +1 -1
  127. package/lib/commands/menu/shared/compare-table.js +1 -1
  128. package/lib/commands/menu/shared/delete-plan.js +1 -1
  129. package/lib/commands/menu/shared/facts.js +1 -1
  130. package/lib/commands/menu/shared/index.js +1 -1
  131. package/lib/commands/menu/shared/inquirer.js +1 -1
  132. package/lib/commands/menu/shared/local-pages.js +1 -1
  133. package/lib/commands/menu/shared/logic.js +1 -1
  134. package/lib/commands/menu/shared/mutations.js +1 -1
  135. package/lib/commands/menu/shared/service.js +1 -1
  136. package/lib/commands/menu/shared/sync-core.js +1 -1
  137. package/lib/commands/menu/shared/update-core.js +1 -1
  138. package/lib/commands/menu/shared/valid-url.js +1 -1
  139. package/lib/commands/menu/sync.js +1 -1
  140. package/lib/commands/menu/visibility-update.js +1 -1
  141. package/lib/commands/notification/config-create.js +1 -1
  142. package/lib/commands/notification/config-delete.js +1 -1
  143. package/lib/commands/notification/config-list.js +1 -1
  144. package/lib/commands/notification/config-update.js +1 -1
  145. package/lib/commands/notification/index.js +1 -1
  146. package/lib/commands/notification/shared.js +1 -1
  147. package/lib/commands/ocr/index.js +1 -1
  148. package/lib/commands/page/create.js +1 -1
  149. package/lib/commands/page/custom/detail.js +1 -1
  150. package/lib/commands/page/custom/list.js +1 -1
  151. package/lib/commands/page/custom/publish.js +1 -1
  152. package/lib/commands/page/custom/shared.js +1 -1
  153. package/lib/commands/page/custom/syntax.js +1 -1
  154. package/lib/commands/page/custom/template.js +1 -1
  155. package/lib/commands/page/custom/update.js +1 -1
  156. package/lib/commands/page/data-list-status.js +1 -1
  157. package/lib/commands/page/generate-start.js +1 -1
  158. package/lib/commands/page/generate-status.js +1 -1
  159. package/lib/commands/page/index.js +1 -1
  160. package/lib/commands/page/pull.js +1 -1
  161. package/lib/commands/page/push.js +1 -1
  162. package/lib/commands/page/relation-audit.js +1 -1
  163. package/lib/commands/page/restore.js +1 -1
  164. package/lib/commands/page/shared.js +1 -1
  165. package/lib/commands/page/sync.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/domain-routing-sync.js +1 -1
  177. package/lib/commands/project/index.js +1 -1
  178. package/lib/commands/project/upgrade.js +1 -1
  179. package/lib/commands/registry.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/rule/get.js +1 -1
  190. package/lib/commands/rule/index.js +1 -1
  191. package/lib/commands/rule/list.js +1 -1
  192. package/lib/commands/rule/set.js +1 -1
  193. package/lib/commands/rule/shared.js +1 -1
  194. package/lib/commands/run/index.js +1 -1
  195. package/lib/commands/schema.js +1 -1
  196. package/lib/commands/sql/create.js +1 -1
  197. package/lib/commands/sql/delete.js +1 -1
  198. package/lib/commands/sql/detail.js +1 -1
  199. package/lib/commands/sql/exec.js +1 -1
  200. package/lib/commands/sql/index.js +1 -1
  201. package/lib/commands/sql/list.js +1 -1
  202. package/lib/commands/sql/pull.js +1 -1
  203. package/lib/commands/sql/push.js +1 -1
  204. package/lib/commands/sql/shared.js +1 -1
  205. package/lib/commands/sql/status.js +1 -1
  206. package/lib/commands/sql/validate.js +1 -1
  207. package/lib/commands/task/index.js +1 -1
  208. package/lib/commands/task/status.js +1 -1
  209. package/lib/commands/tenant/index.js +1 -1
  210. package/lib/commands/tenant/members-list.js +1 -1
  211. package/lib/commands/tenant/shared.js +1 -1
  212. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  213. package/lib/commands/user-account/index.js +1 -1
  214. package/lib/commands/workspace/add.js +1 -1
  215. package/lib/commands/workspace/index.js +1 -1
  216. package/lib/commands/workspace/remove.js +1 -1
  217. package/lib/config/deployment-sync.js +1 -1
  218. package/lib/config/domain-config.js +1 -1
  219. package/lib/config/project-domain-routing.js +1 -1
  220. package/lib/config/schema.js +1 -1
  221. package/lib/constant/cdn.js +1 -1
  222. package/lib/constant/cli.js +1 -1
  223. package/lib/constant/defaults.js +1 -1
  224. package/lib/constant/domain.js +1 -1
  225. package/lib/constant/env.js +1 -1
  226. package/lib/constant/output.js +1 -1
  227. package/lib/constant/paths.js +1 -1
  228. package/lib/constant/region.js +1 -1
  229. package/lib/constant/risk.js +1 -1
  230. package/lib/constant/routing-profile.js +1 -1
  231. package/lib/context/app-resolver.js +1 -1
  232. package/lib/context/auth-resolver.js +1 -1
  233. package/lib/context/config-loader.js +1 -1
  234. package/lib/context.js +1 -1
  235. package/lib/core/alias-resolver.js +1 -1
  236. package/lib/core/api-client.d.ts +0 -16
  237. package/lib/core/api-client.js +1 -1
  238. package/lib/core/bff/config.js +1 -1
  239. package/lib/core/bff/file-system.js +1 -1
  240. package/lib/core/bff/hash.js +1 -1
  241. package/lib/core/bff/lock.js +1 -1
  242. package/lib/core/bff/utils.js +1 -1
  243. package/lib/core/db-resolver.js +1 -1
  244. package/lib/core/kb-search-client.d.ts +30 -0
  245. package/lib/core/kb-search-client.js +1 -0
  246. package/lib/core/page/file-system.js +1 -1
  247. package/lib/core/page/hash.js +1 -1
  248. package/lib/core/page/lock.js +1 -1
  249. package/lib/core/sql-index-auditor.js +1 -1
  250. package/lib/core/sql-sync/config.js +1 -1
  251. package/lib/core/sql-sync/file-system.js +1 -1
  252. package/lib/core/sql-sync/hash.js +1 -1
  253. package/lib/core/sql-sync/lock.js +1 -1
  254. package/lib/core/sql-sync/utils.js +1 -1
  255. package/lib/core/sql-validator.js +1 -1
  256. package/lib/errors.js +1 -1
  257. package/lib/framework/build-all-flags.js +1 -1
  258. package/lib/framework/error-output.js +1 -1
  259. package/lib/framework/explicit-yes.js +1 -1
  260. package/lib/framework/flags.js +1 -1
  261. package/lib/framework/help.js +1 -1
  262. package/lib/framework/index.js +1 -1
  263. package/lib/framework/output.js +1 -1
  264. package/lib/framework/response.js +1 -1
  265. package/lib/framework/runner-alias.js +1 -1
  266. package/lib/framework/runner.js +1 -1
  267. package/lib/framework/schema-export.js +1 -1
  268. package/lib/framework/types.d.ts +1 -0
  269. package/lib/framework/types.js +1 -1
  270. package/lib/generated/build-info.d.ts +4 -4
  271. package/lib/generated/build-info.js +1 -1
  272. package/lib/generated/official-routing.js +1 -1
  273. package/lib/generated/routing-contract.js +1 -1
  274. package/lib/help.js +1 -1
  275. package/lib/postinstall.js +1 -1
  276. package/lib/runtime/confirmation.js +1 -1
  277. package/lib/runtime/event.js +1 -1
  278. package/lib/runtime/index.js +1 -1
  279. package/lib/runtime/queue.js +1 -1
  280. package/lib/runtime/resolve.js +1 -1
  281. package/lib/skills/builtin-skill.js +1 -1
  282. package/lib/skills/main.js +1 -1
  283. package/lib/skills/npx-skills-add.js +1 -1
  284. package/lib/skills/skill-presence.js +1 -1
  285. package/lib/telemetry/cli-command-trace.js +1 -1
  286. package/lib/telemetry/cli-help-trace.js +1 -1
  287. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  288. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  289. package/lib/telemetry/send-cli-trace-log.js +1 -1
  290. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  291. package/lib/utils/ai_config.js +1 -1
  292. package/lib/utils/apply-jq-filter.js +1 -1
  293. package/lib/utils/cdn-config.js +1 -1
  294. package/lib/utils/check-sdk-version.js +1 -1
  295. package/lib/utils/cli-version-check.js +1 -1
  296. package/lib/utils/cli-version-policy.js +1 -1
  297. package/lib/utils/config.js +1 -1
  298. package/lib/utils/entity-with-id.js +1 -1
  299. package/lib/utils/file-utils.js +1 -1
  300. package/lib/utils/guides-cdn.js +1 -1
  301. package/lib/utils/http-client.js +1 -1
  302. package/lib/utils/is-non-interactive.js +1 -1
  303. package/lib/utils/logger.js +1 -1
  304. package/lib/utils/params.js +1 -1
  305. package/lib/utils/platform.js +1 -1
  306. package/lib/utils/sleep.js +1 -1
  307. package/lib/utils/template-replacer.js +1 -1
  308. package/lib/utils/update-notice.js +1 -1
  309. package/lib/utils/version.js +1 -1
  310. package/lib/utils/with-active-cookie.js +1 -1
  311. package/lib/utils/write-cli-side-channel.js +1 -1
  312. package/package.json +1 -1
  313. package/skills/rabetbase/SKILL.md +3 -3
  314. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  315. package/skills/rabetbase/references/rabetbase-database-template.md +36 -0
  316. package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
  317. package/skills/rabetbase/references/rabetbase-kb.md +8 -7
  318. package/skills/rabetbase/references/rabetbase-rule.md +15 -0
  319. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- (function(_0x1419f7,_0x31bba7){const _0x2ed7cf=a19_0x1df8,_0xed16d8=_0x1419f7();while(!![]){try{const _0x490b9d=-parseInt(_0x2ed7cf(0x100))/0x1*(-parseInt(_0x2ed7cf(0xff))/0x2)+-parseInt(_0x2ed7cf(0x108))/0x3*(parseInt(_0x2ed7cf(0x103))/0x4)+-parseInt(_0x2ed7cf(0x102))/0x5+-parseInt(_0x2ed7cf(0x105))/0x6*(parseInt(_0x2ed7cf(0x104))/0x7)+-parseInt(_0x2ed7cf(0x106))/0x8*(parseInt(_0x2ed7cf(0x101))/0x9)+parseInt(_0x2ed7cf(0x109))/0xa+parseInt(_0x2ed7cf(0x107))/0xb;if(_0x490b9d===_0x31bba7)break;else _0xed16d8['push'](_0xed16d8['shift']());}catch(_0x52ca21){_0xed16d8['push'](_0xed16d8['shift']());}}}(a19_0x2403,0x9005d));import{appListDefinition}from'../../commands/app/list.js';function a19_0x1df8(_0xdab8c4,_0x7f5bef){_0xdab8c4=_0xdab8c4-0xff;const _0x2403cb=a19_0x2403();let _0x1df8c1=_0x2403cb[_0xdab8c4];return _0x1df8c1;}import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0x2403(){const _0x1d2e93=['351510kbuGGd','8662120gshtRO','2lgJshw','246615YxMFxu','267993CSIogZ','1850765lgbHup','12TitNeD','268779arnPAO','144vJacDK','296hJYioB','24442330oSmRvu'];a19_0x2403=function(){return _0x1d2e93;};return a19_0x2403();}export const appDefinitions=[appListDefinition,appMembersListDefinition];
1
+ function a19_0x489a(_0x1d66ea,_0xd69fb1){_0x1d66ea=_0x1d66ea-0x144;const _0x2c3d96=a19_0x2c3d();let _0x489a56=_0x2c3d96[_0x1d66ea];return _0x489a56;}function a19_0x2c3d(){const _0x1f12a2=['35ukIKkK','4599HvORir','141NCfnuT','159003teQXBa','52295rBVjui','9048jqrtTi','66ZUGfGw','72876FqVVVU','2310972XDumRV','2539840rrsVne','104YQtier','12898AYMauR'];a19_0x2c3d=function(){return _0x1f12a2;};return a19_0x2c3d();}(function(_0x581a99,_0x30b89d){const _0x563220=a19_0x489a,_0x32c4c0=_0x581a99();while(!![]){try{const _0x55f0be=parseInt(_0x563220(0x148))/0x1+parseInt(_0x563220(0x144))/0x2*(-parseInt(_0x563220(0x147))/0x3)+parseInt(_0x563220(0x14f))/0x4*(-parseInt(_0x563220(0x149))/0x5)+parseInt(_0x563220(0x14c))/0x6*(-parseInt(_0x563220(0x145))/0x7)+parseInt(_0x563220(0x14a))/0x8*(-parseInt(_0x563220(0x146))/0x9)+parseInt(_0x563220(0x14e))/0xa+-parseInt(_0x563220(0x14b))/0xb*(-parseInt(_0x563220(0x14d))/0xc);if(_0x55f0be===_0x30b89d)break;else _0x32c4c0['push'](_0x32c4c0['shift']());}catch(_0x3ce204){_0x32c4c0['push'](_0x32c4c0['shift']());}}}(a19_0x2c3d,0x569cd));import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';export const appDefinitions=[appListDefinition,appMembersListDefinition];
@@ -1 +1 @@
1
- const a20_0x148e6f=a20_0x3532;(function(_0x4e7d9f,_0x3c958a){const _0x459c6e=a20_0x3532,_0x1d2e30=_0x4e7d9f();while(!![]){try{const _0x5c11f1=parseInt(_0x459c6e(0x1e1))/0x1*(-parseInt(_0x459c6e(0x1de))/0x2)+-parseInt(_0x459c6e(0x1bd))/0x3*(parseInt(_0x459c6e(0x1e0))/0x4)+parseInt(_0x459c6e(0x1db))/0x5*(parseInt(_0x459c6e(0x1c9))/0x6)+-parseInt(_0x459c6e(0x1d0))/0x7+parseInt(_0x459c6e(0x1bc))/0x8*(-parseInt(_0x459c6e(0x1d9))/0x9)+-parseInt(_0x459c6e(0x1e3))/0xa+parseInt(_0x459c6e(0x1df))/0xb;if(_0x5c11f1===_0x3c958a)break;else _0x1d2e30['push'](_0x1d2e30['shift']());}catch(_0x24bc98){_0x1d2e30['push'](_0x1d2e30['shift']());}}}(a20_0x5992,0x789d4));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a20_0x3532(_0x4a862b,_0x49e71d){_0x4a862b=_0x4a862b-0x1bb;const _0x5992f3=a20_0x5992();let _0x3532dd=_0x5992f3[_0x4a862b];return _0x3532dd;}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 a20_0x5992(){const _0x15dd3b=['projectPath','appcode','optional','defaultApp','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','project','30EGDOsS','keys','boolean','merged','projectConfig','bool','.\x20Use\x20`','3113677krAtnv','mergedCli','entries','push','length','list','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','object','remote','107478YZBpwe','globalPath','464115qfjaZe','global','map','42uwPRfr','33172711mcFXoq','44fmPDhP','15279EmSatO','apps','9413700VGqWQu','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','328Mwvcru','215214cZjFXj','find','No\x20apps\x20configured','globalConfig','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','\x20in\x20'];a20_0x5992=function(){return _0x15dd3b;};return a20_0x5992();}function buildItemsFromLayer(_0xb95f79,_0x335321){const _0x364f16=a20_0x3532,_0x48628d=[],_0x383601=_0xb95f79[_0x364f16(0x1e2)]&&typeof _0xb95f79[_0x364f16(0x1e2)]===_0x364f16(0x1d7)?_0xb95f79[_0x364f16(0x1e2)]:{},_0x39a072=_0xb95f79[_0x364f16(0x1c6)]||undefined,_0x4d9bf2=_0x39a072??(Object['keys'](_0x383601)['length']===0x1?Object[_0x364f16(0x1ca)](_0x383601)[0x0]:undefined);for(const [_0x3ab326,_0x14bc4b]of Object[_0x364f16(0x1d2)](_0x383601)){if(!_0x14bc4b||typeof _0x14bc4b!=='object'||!_0x14bc4b[_0x364f16(0x1c4)])continue;_0x48628d[_0x364f16(0x1d3)]({'name':_0x3ab326,'appcode':_0x14bc4b[_0x364f16(0x1c4)],'named':!![],'definedIn':_0x335321,'isDefault':_0x3ab326===_0x4d9bf2,...buildAppProfileListFields(_0x14bc4b)});}return _0x48628d;}function buildMergedItems(_0x598f6f,_0x38f1fa){const _0xd0b4f1=a20_0x3532,{apps:apps={}}=_0x598f6f,_0x2d46bf=_0x598f6f[_0xd0b4f1(0x1c6)],_0x21d7c2=_0x2d46bf??(Object[_0xd0b4f1(0x1ca)](apps)[_0xd0b4f1(0x1d4)]===0x1?Object['keys'](apps)[0x0]:undefined),_0x58b0fd=_0x38f1fa[_0xd0b4f1(0x1c0)][_0xd0b4f1(0x1e2)]&&typeof _0x38f1fa['globalConfig'][_0xd0b4f1(0x1e2)]===_0xd0b4f1(0x1d7)?_0x38f1fa[_0xd0b4f1(0x1c0)][_0xd0b4f1(0x1e2)]:{},_0x5ea388=_0x38f1fa[_0xd0b4f1(0x1cd)][_0xd0b4f1(0x1e2)]&&typeof _0x38f1fa[_0xd0b4f1(0x1cd)]['apps']===_0xd0b4f1(0x1d7)?_0x38f1fa[_0xd0b4f1(0x1cd)][_0xd0b4f1(0x1e2)]:{},_0x12ad8e=Object['entries'](apps),_0x41563f=_0x12ad8e[_0xd0b4f1(0x1dd)](([_0x44dc79,_0x3a0860])=>({'name':_0x44dc79,'appcode':_0x3a0860[_0xd0b4f1(0x1c4)],'named':!![],'definedIn':appDefinedIn(_0x44dc79,_0x58b0fd,_0x5ea388),'isDefault':_0x44dc79===_0x21d7c2,...buildAppProfileListFields(_0x3a0860)}));return _0x41563f;}function validateAppListFlags(_0x347f08){const _0x52a68d=a20_0x3532;if(!_0x347f08[_0x52a68d(0x1ce)](_0x52a68d(0x1d8)))return;if(!_0x347f08[_0x52a68d(0x1ce)](_0x52a68d(0x1dc))&&!_0x347f08[_0x52a68d(0x1ce)](_0x52a68d(0x1c8)))return;throw CliErrors['validation']('`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.',_0x52a68d(0x1c7));}async function execute(_0x571bb4){const _0x1c4be9=a20_0x3532;validateAppListFlags(_0x571bb4);if(_0x571bb4['bool']('remote'))return{'ok':!![],'data':await listRemoteAppDirectory(_0x571bb4)};const _0x5aed56=_0x571bb4[_0x1c4be9(0x1ce)](_0x1c4be9(0x1dc)),_0x347d46=_0x571bb4[_0x1c4be9(0x1ce)]('project'),_0x2e6310=_0x5aed56?_0x1c4be9(0x1dc):_0x347d46?_0x1c4be9(0x1c8):'merged',{config:_0x25feb5,layers:_0x25f10f}=readRawConfigWithLayers(),_0x518956=resolveDefaultAppSource(_0x25f10f),{defaultApp:_0x5bcf54}=_0x25feb5;let _0x4a3334,_0x1be737;switch(_0x2e6310){case _0x1c4be9(0x1dc):_0x4a3334=buildItemsFromLayer(_0x25f10f['globalConfig'],_0x1c4be9(0x1dc)),_0x1be737=_0x25f10f[_0x1c4be9(0x1da)];break;case _0x1c4be9(0x1c8):_0x4a3334=buildItemsFromLayer(_0x25f10f['projectConfig'],_0x1c4be9(0x1c8)),_0x1be737=_0x25f10f[_0x1c4be9(0x1c3)];break;default:_0x4a3334=buildMergedItems(_0x25feb5,_0x25f10f);break;}enrichAppListItemsWithMergedSelection(_0x4a3334,_0x571bb4[_0x1c4be9(0x1d1)]);if(_0x4a3334['length']===0x0){const _0x3d8621=_0x2e6310===_0x1c4be9(0x1cc)?'':_0x1c4be9(0x1c2)+_0x2e6310+'\x20config';return{'ok':!![],'data':[],'message':_0x1c4be9(0x1bf)+_0x3d8621+_0x1c4be9(0x1cf)+CLI_BIN_NAME+_0x1c4be9(0x1bb)};}const _0x523d2e=_0x4a3334[_0x1c4be9(0x1be)](_0x18ebac=>_0x18ebac['isCurrent']===!![]),_0x2e4438=_0x5bcf54??_0x523d2e?.['name']??null,_0x2ac6b9=_0x2e6310===_0x1c4be9(0x1cc)?{'globalPath':_0x25f10f['globalPath']??null,'projectPath':_0x25f10f[_0x1c4be9(0x1c3)]??null,'defaultApp':_0x2e4438,'defaultAppSource':_0x5bcf54!=null?_0x518956:null}:{'scope':_0x2e6310,'configPath':_0x1be737??null};return{'ok':!![],'data':{'items':_0x4a3334,'meta':_0x2ac6b9}};}export const appListDefinition={'service':'app','command':a20_0x148e6f(0x1d5),'description':a20_0x148e6f(0x1d6),'risk':'read','auth':a20_0x148e6f(0x1c5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a20_0x148e6f(0x1d8),'type':a20_0x148e6f(0x1cb),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','default':![]},{'name':'global','type':a20_0x148e6f(0x1cb),'description':a20_0x148e6f(0x1c1),'default':![]},{'name':'project','type':a20_0x148e6f(0x1cb),'description':'Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','default':![]}],async 'validate'(_0x1ab4c5){validateAppListFlags(_0x1ab4c5);},'execute':execute};
1
+ function a20_0x2141(_0x34ed2d,_0x1953d7){_0x34ed2d=_0x34ed2d-0x162;const _0x16c3a4=a20_0x16c3();let _0x21418e=_0x16c3a4[_0x34ed2d];return _0x21418e;}const a20_0x1d252c=a20_0x2141;(function(_0x44382d,_0x3798c8){const _0x11423b=a20_0x2141,_0x599e30=_0x44382d();while(!![]){try{const _0x310ff0=-parseInt(_0x11423b(0x16f))/0x1+-parseInt(_0x11423b(0x17b))/0x2+-parseInt(_0x11423b(0x18c))/0x3*(parseInt(_0x11423b(0x178))/0x4)+-parseInt(_0x11423b(0x188))/0x5*(parseInt(_0x11423b(0x182))/0x6)+-parseInt(_0x11423b(0x180))/0x7*(parseInt(_0x11423b(0x17c))/0x8)+-parseInt(_0x11423b(0x175))/0x9*(parseInt(_0x11423b(0x18e))/0xa)+parseInt(_0x11423b(0x183))/0xb;if(_0x310ff0===_0x3798c8)break;else _0x599e30['push'](_0x599e30['shift']());}catch(_0x257562){_0x599e30['push'](_0x599e30['shift']());}}}(a20_0x16c3,0x1e31a));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 buildItemsFromLayer(_0x6eba01,_0xc0ded0){const _0x2af4a0=a20_0x2141,_0x4422a1=[],_0x29e060=_0x6eba01[_0x2af4a0(0x184)]&&typeof _0x6eba01['apps']===_0x2af4a0(0x167)?_0x6eba01[_0x2af4a0(0x184)]:{},_0x1decfb=_0x6eba01['defaultApp']||undefined,_0x2380fd=_0x1decfb??(Object[_0x2af4a0(0x165)](_0x29e060)[_0x2af4a0(0x174)]===0x1?Object[_0x2af4a0(0x165)](_0x29e060)[0x0]:undefined);for(const [_0x41a10b,_0x5dfa1a]of Object[_0x2af4a0(0x164)](_0x29e060)){if(!_0x5dfa1a||typeof _0x5dfa1a!==_0x2af4a0(0x167)||!_0x5dfa1a[_0x2af4a0(0x18f)])continue;_0x4422a1[_0x2af4a0(0x162)]({'name':_0x41a10b,'appcode':_0x5dfa1a[_0x2af4a0(0x18f)],'named':!![],'definedIn':_0xc0ded0,'isDefault':_0x41a10b===_0x2380fd,...buildAppProfileListFields(_0x5dfa1a)});}return _0x4422a1;}function buildMergedItems(_0x32186a,_0x516d49){const _0x33e9a6=a20_0x2141,{apps:apps={}}=_0x32186a,_0x59180d=_0x32186a[_0x33e9a6(0x181)],_0x5ea338=_0x59180d??(Object[_0x33e9a6(0x165)](apps)[_0x33e9a6(0x174)]===0x1?Object[_0x33e9a6(0x165)](apps)[0x0]:undefined),_0x248939=_0x516d49[_0x33e9a6(0x17a)][_0x33e9a6(0x184)]&&typeof _0x516d49[_0x33e9a6(0x17a)][_0x33e9a6(0x184)]===_0x33e9a6(0x167)?_0x516d49[_0x33e9a6(0x17a)]['apps']:{},_0x172476=_0x516d49[_0x33e9a6(0x18b)][_0x33e9a6(0x184)]&&typeof _0x516d49['projectConfig'][_0x33e9a6(0x184)]===_0x33e9a6(0x167)?_0x516d49[_0x33e9a6(0x18b)][_0x33e9a6(0x184)]:{},_0x4def5b=Object[_0x33e9a6(0x164)](apps),_0x34ebd5=_0x4def5b[_0x33e9a6(0x166)](([_0x120a6c,_0x1805c5])=>({'name':_0x120a6c,'appcode':_0x1805c5[_0x33e9a6(0x18f)],'named':!![],'definedIn':appDefinedIn(_0x120a6c,_0x248939,_0x172476),'isDefault':_0x120a6c===_0x5ea338,...buildAppProfileListFields(_0x1805c5)}));return _0x34ebd5;}function validateAppListFlags(_0x1ffae9){const _0xa4fbe3=a20_0x2141;if(!_0x1ffae9['bool']('remote'))return;if(!_0x1ffae9[_0xa4fbe3(0x16d)](_0xa4fbe3(0x171))&&!_0x1ffae9[_0xa4fbe3(0x16d)]('project'))return;throw CliErrors[_0xa4fbe3(0x173)](_0xa4fbe3(0x179),_0xa4fbe3(0x18d));}async function execute(_0x4de353){const _0x6b8513=a20_0x2141;validateAppListFlags(_0x4de353);if(_0x4de353[_0x6b8513(0x16d)](_0x6b8513(0x16e)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x4de353)};const _0x245ee5=_0x4de353[_0x6b8513(0x16d)](_0x6b8513(0x171)),_0x1bb725=_0x4de353['bool'](_0x6b8513(0x17f)),_0xad7dac=_0x245ee5?_0x6b8513(0x171):_0x1bb725?_0x6b8513(0x17f):_0x6b8513(0x190),{config:_0x5d9b1e,layers:_0x3c3394}=readRawConfigWithLayers(),_0x488f89=resolveDefaultAppSource(_0x3c3394),{defaultApp:_0x15b352}=_0x5d9b1e;let _0x26e309,_0x38d066;switch(_0xad7dac){case'global':_0x26e309=buildItemsFromLayer(_0x3c3394['globalConfig'],'global'),_0x38d066=_0x3c3394['globalPath'];break;case _0x6b8513(0x17f):_0x26e309=buildItemsFromLayer(_0x3c3394[_0x6b8513(0x18b)],_0x6b8513(0x17f)),_0x38d066=_0x3c3394[_0x6b8513(0x16b)];break;default:_0x26e309=buildMergedItems(_0x5d9b1e,_0x3c3394);break;}enrichAppListItemsWithMergedSelection(_0x26e309,_0x4de353[_0x6b8513(0x177)]);if(_0x26e309['length']===0x0){const _0x47c76b=_0xad7dac==='merged'?'':'\x20in\x20'+_0xad7dac+'\x20config';return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x47c76b+_0x6b8513(0x189)+CLI_BIN_NAME+_0x6b8513(0x17d)};}const _0x3801ba=_0x26e309[_0x6b8513(0x172)](_0xf9751f=>_0xf9751f[_0x6b8513(0x16c)]===!![]),_0x5c5e61=_0x15b352??_0x3801ba?.[_0x6b8513(0x168)]??null,_0x7d381a=_0xad7dac==='merged'?{'globalPath':_0x3c3394[_0x6b8513(0x17e)]??null,'projectPath':_0x3c3394[_0x6b8513(0x16b)]??null,'defaultApp':_0x5c5e61,'defaultAppSource':_0x15b352!=null?_0x488f89:null}:{'scope':_0xad7dac,'configPath':_0x38d066??null};return{'ok':!![],'data':{'items':_0x26e309,'meta':_0x7d381a}};}function a20_0x16c3(){const _0x1013f0=['apps','optional','list','boolean','17965cjYbfo','.\x20Use\x20`','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','projectConfig','279DhjxVV','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','1430GoQaRQ','appcode','merged','push','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','entries','keys','map','object','name','app','read','projectPath','isCurrent','bool','remote','240335yIRCYC','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','global','find','validation','length','7929rAkmAf','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','mergedCli','2100MlEPpX','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','globalConfig','285674BsFlJk','1848vthsAL','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','globalPath','project','3031RPktRK','defaultApp','150KrKHBg','9586522XNgyyz'];a20_0x16c3=function(){return _0x1013f0;};return a20_0x16c3();}export const appListDefinition={'service':a20_0x1d252c(0x169),'command':a20_0x1d252c(0x186),'description':a20_0x1d252c(0x163),'risk':a20_0x1d252c(0x16a),'auth':a20_0x1d252c(0x185),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a20_0x1d252c(0x16e),'type':a20_0x1d252c(0x187),'description':a20_0x1d252c(0x18a),'default':![]},{'name':a20_0x1d252c(0x171),'type':a20_0x1d252c(0x187),'description':a20_0x1d252c(0x170),'default':![]},{'name':a20_0x1d252c(0x17f),'type':a20_0x1d252c(0x187),'description':a20_0x1d252c(0x176),'default':![]}],async 'validate'(_0x36658a){validateAppListFlags(_0x36658a);},'execute':execute};
@@ -1 +1 @@
1
- const a21_0x26ff1c=a21_0x5607;(function(_0x16396e,_0x22f063){const _0x3c8268=a21_0x5607,_0x23b48e=_0x16396e();while(!![]){try{const _0x5df12e=-parseInt(_0x3c8268(0xa4))/0x1+parseInt(_0x3c8268(0xa0))/0x2+-parseInt(_0x3c8268(0xa7))/0x3+-parseInt(_0x3c8268(0x9e))/0x4+-parseInt(_0x3c8268(0x9c))/0x5*(-parseInt(_0x3c8268(0x99))/0x6)+-parseInt(_0x3c8268(0xa8))/0x7+parseInt(_0x3c8268(0x9f))/0x8;if(_0x5df12e===_0x22f063)break;else _0x23b48e['push'](_0x23b48e['shift']());}catch(_0x3f22be){_0x23b48e['push'](_0x23b48e['shift']());}}}(a21_0x2216,0x8adfe));function a21_0x5607(_0x5c5775,_0x48db65){_0x5c5775=_0x5c5775-0x99;const _0x221653=a21_0x2216();let _0x56078a=_0x221653[_0x5c5775];return _0x56078a;}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':a21_0x26ff1c(0x9d),'command':a21_0x26ff1c(0x9a),'description':a21_0x26ff1c(0xa3),'risk':a21_0x26ff1c(0xa1),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x7e436c){const _0x10c5ff=a21_0x26ff1c,_0x2182f4=projectAppMembers(await listRoleUsers(_0x7e436c[_0x10c5ff(0xa5)]));return{'ok':!![],'data':{'appCode':_0x7e436c[_0x10c5ff(0xa5)],'items':_0x2182f4,'totalCount':_0x2182f4[_0x10c5ff(0x9b)]},'message':_0x10c5ff(0xa6)+_0x2182f4['length']+_0x10c5ff(0xa2)};}};function a21_0x2216(){const _0x132ed4=['List\x20application\x20members\x20with\x20their\x20role\x20memberships','614925JiIeir','appCode','Found\x20','1779354JbRWRC','2037644ngMEXA','308820ARnNXG','members-list','length','85CFmnbV','app','1814028BoZdHc','8361872moAkyb','1202496ctcIcD','read','\x20application\x20member(s)'];a21_0x2216=function(){return _0x132ed4;};return a21_0x2216();}
1
+ const a21_0x21455f=a21_0x61b1;function a21_0x181b(){const _0x13fbaf=['3qZlgMT','appCode','read','2815wHLlod','249302hMhSAL','9107ZdBtnV','\x20application\x20member(s)','app','6504fjvCOt','11780KNLWfD','3404744kmWMiv','18aECirR','935914FmgOtH','11792860nYPgYf','5269YjzbEh','Found\x20','7206HwOZVM','length'];a21_0x181b=function(){return _0x13fbaf;};return a21_0x181b();}(function(_0x222746,_0x6b000f){const _0x1033b5=a21_0x61b1,_0x22c934=_0x222746();while(!![]){try{const _0xb65913=parseInt(_0x1033b5(0xbe))/0x1+parseInt(_0x1033b5(0xc8))/0x2*(parseInt(_0x1033b5(0xc4))/0x3)+-parseInt(_0x1033b5(0xbb))/0x4*(parseInt(_0x1033b5(0xc7))/0x5)+parseInt(_0x1033b5(0xc2))/0x6*(parseInt(_0x1033b5(0xb7))/0x7)+-parseInt(_0x1033b5(0xbc))/0x8*(-parseInt(_0x1033b5(0xbd))/0x9)+-parseInt(_0x1033b5(0xbf))/0xa+parseInt(_0x1033b5(0xc0))/0xb*(parseInt(_0x1033b5(0xba))/0xc);if(_0xb65913===_0x6b000f)break;else _0x22c934['push'](_0x22c934['shift']());}catch(_0x4cd722){_0x22c934['push'](_0x22c934['shift']());}}}(a21_0x181b,0xdae25));function a21_0x61b1(_0x19ee71,_0x322fda){_0x19ee71=_0x19ee71-0xb7;const _0x181b4c=a21_0x181b();let _0x61b18c=_0x181b4c[_0x19ee71];return _0x61b18c;}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':a21_0x21455f(0xb9),'command':'members-list','description':'List\x20application\x20members\x20with\x20their\x20role\x20memberships','risk':a21_0x21455f(0xc6),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4d56d1){const _0x439f3b=a21_0x21455f,_0x3e4265=projectAppMembers(await listRoleUsers(_0x4d56d1[_0x439f3b(0xc5)]));return{'ok':!![],'data':{'appCode':_0x4d56d1[_0x439f3b(0xc5)],'items':_0x3e4265,'totalCount':_0x3e4265[_0x439f3b(0xc3)]},'message':_0x439f3b(0xc1)+_0x3e4265['length']+_0x439f3b(0xb8)};}};
@@ -1 +1 @@
1
- function a22_0x3c45(_0x5419e8,_0x16941e){_0x5419e8=_0x5419e8-0x11f;const _0x48ff5c=a22_0x48ff();let _0x3c451f=_0x48ff5c[_0x5419e8];return _0x3c451f;}(function(_0x26b8de,_0x55fc87){const _0x3a8542=a22_0x3c45,_0x2a8187=_0x26b8de();while(!![]){try{const _0x94777a=-parseInt(_0x3a8542(0x126))/0x1*(parseInt(_0x3a8542(0x122))/0x2)+parseInt(_0x3a8542(0x123))/0x3*(parseInt(_0x3a8542(0x12f))/0x4)+parseInt(_0x3a8542(0x12b))/0x5*(-parseInt(_0x3a8542(0x12e))/0x6)+parseInt(_0x3a8542(0x11f))/0x7*(-parseInt(_0x3a8542(0x120))/0x8)+-parseInt(_0x3a8542(0x12a))/0x9+parseInt(_0x3a8542(0x124))/0xa*(parseInt(_0x3a8542(0x12d))/0xb)+-parseInt(_0x3a8542(0x12c))/0xc*(-parseInt(_0x3a8542(0x129))/0xd);if(_0x94777a===_0x55fc87)break;else _0x2a8187['push'](_0x2a8187['shift']());}catch(_0x4837fe){_0x2a8187['push'](_0x2a8187['shift']());}}}(a22_0x48ff,0x28f7a));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a22_0x48ff(){const _0x11871c=['11EAxRMT','18zNhKsJ','1048fGCHUL','map','14tqlvnn','924552CcTPyJ','appCode','6ntBwiK','1659SEDWDO','1843910daCizT','cookie','85223sybCDt','appName','appDesc','845XxNmMd','2311398KtEjOK','493435yzmmYP','162132PSuBlf'];a22_0x48ff=function(){return _0x11871c;};return a22_0x48ff();}function resolveCookie(_0x506530){const _0x156024=a22_0x3c45,_0x5bc795=_0x506530[_0x156024(0x125)]||getCookie();if(!_0x5bc795)throw CliErrors['authRequired']();return _0x5bc795;}export async function listRemoteAppDirectory(_0x475146){const _0x323d4d=a22_0x3c45,_0x10a33b=await withActiveCookie(resolveCookie(_0x475146),()=>listRemoteApps());return{'items':_0x10a33b[_0x323d4d(0x130)](_0xd773e9=>({..._0xd773e9['id']!=null?{'id':_0xd773e9['id']}:{},'appCode':_0xd773e9[_0x323d4d(0x121)],'appName':_0xd773e9[_0x323d4d(0x127)],..._0xd773e9['appDesc']!=null?{'appDesc':_0xd773e9[_0x323d4d(0x128)]}:{}})),'meta':{'source':'platform'}};}
1
+ (function(_0x26c5f9,_0x57ac3b){const _0x3c611c=a22_0xc0f1,_0x271cc6=_0x26c5f9();while(!![]){try{const _0x3a6c3e=-parseInt(_0x3c611c(0x8b))/0x1*(parseInt(_0x3c611c(0x96))/0x2)+-parseInt(_0x3c611c(0x90))/0x3+parseInt(_0x3c611c(0x94))/0x4+parseInt(_0x3c611c(0x8f))/0x5+-parseInt(_0x3c611c(0x99))/0x6*(parseInt(_0x3c611c(0x91))/0x7)+-parseInt(_0x3c611c(0x9a))/0x8*(-parseInt(_0x3c611c(0x8c))/0x9)+parseInt(_0x3c611c(0x8e))/0xa;if(_0x3a6c3e===_0x57ac3b)break;else _0x271cc6['push'](_0x271cc6['shift']());}catch(_0x47bac8){_0x271cc6['push'](_0x271cc6['shift']());}}}(a22_0x5d03,0xbaae1));function a22_0xc0f1(_0xfc66be,_0x1b367e){_0xfc66be=_0xfc66be-0x8b;const _0x5d030b=a22_0x5d03();let _0xc0f1f=_0x5d030b[_0xfc66be];return _0xc0f1f;}import{listRemoteApps}from'../../core/api-client.js';function a22_0x5d03(){const _0x19413c=['10719VavmPP','appName','6212720oSUHos','7640945mRmXsO','4124319HmqwNQ','12579DPoqBC','appDesc','map','2709156bfxPqW','appCode','162XbcSYC','authRequired','platform','1758KqgXUi','2224LClLMS','6073RzNLmI'];a22_0x5d03=function(){return _0x19413c;};return a22_0x5d03();}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x530795){const _0x30457b=a22_0xc0f1,_0x3f1e2d=_0x530795['cookie']||getCookie();if(!_0x3f1e2d)throw CliErrors[_0x30457b(0x97)]();return _0x3f1e2d;}export async function listRemoteAppDirectory(_0x159787){const _0x793178=a22_0xc0f1,_0x50221d=await withActiveCookie(resolveCookie(_0x159787),()=>listRemoteApps());return{'items':_0x50221d[_0x793178(0x93)](_0x2cb70a=>({..._0x2cb70a['id']!=null?{'id':_0x2cb70a['id']}:{},'appCode':_0x2cb70a[_0x793178(0x95)],'appName':_0x2cb70a[_0x793178(0x8d)],..._0x2cb70a[_0x793178(0x92)]!=null?{'appDesc':_0x2cb70a[_0x793178(0x92)]}:{}})),'meta':{'source':_0x793178(0x98)}};}
@@ -1 +1 @@
1
- (function(_0x47733e,_0x2dd622){const _0x12b1ba=a23_0x3c3d,_0x2c9fb1=_0x47733e();while(!![]){try{const _0x5e55a3=parseInt(_0x12b1ba(0x1e8))/0x1+-parseInt(_0x12b1ba(0x1ed))/0x2*(parseInt(_0x12b1ba(0x1df))/0x3)+parseInt(_0x12b1ba(0x1f8))/0x4*(-parseInt(_0x12b1ba(0x1d4))/0x5)+parseInt(_0x12b1ba(0x1dd))/0x6+-parseInt(_0x12b1ba(0x1cb))/0x7+parseInt(_0x12b1ba(0x1e4))/0x8+-parseInt(_0x12b1ba(0x1f4))/0x9*(parseInt(_0x12b1ba(0x1e9))/0xa);if(_0x5e55a3===_0x2dd622)break;else _0x2c9fb1['push'](_0x2c9fb1['shift']());}catch(_0x593ef6){_0x2c9fb1['push'](_0x2c9fb1['shift']());}}}(a23_0x1212,0xb8418));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a23_0x3c3d(_0x351ff7,_0x484a29){_0x351ff7=_0x351ff7-0x1ca;const _0x121282=a23_0x1212();let _0x3c3d5a=_0x121282[_0x351ff7];return _0x3c3d5a;}function nullableText(_0x164f94){const _0xa8396d=a23_0x3c3d,_0x45303a=_0x164f94?.[_0xa8396d(0x1e5)]();return _0x45303a?_0x45303a:null;}export function projectAppMembers(_0x371822){const _0x59c415=a23_0x3c3d,_0x4bd02c=new Map(),_0x5a2f65=[..._0x371822][_0x59c415(0x1de)]((_0x238bb5,_0x387a84)=>_0x238bb5['id']-_0x387a84['id']),_0x42ead0=(_0x1c79c0,_0xf21cb1,_0x4b0f45)=>{const _0x3d318f=_0x59c415;for(const _0x15a207 of _0xf21cb1){const _0x25cecd=Number(_0x15a207[_0x3d318f(0x1d9)]);if(!Number['isFinite'](_0x25cecd)||_0x25cecd<=0x0)continue;let _0x2a8cff=_0x4bd02c[_0x3d318f(0x1d5)](_0x25cecd);if(!_0x2a8cff)_0x2a8cff={'userId':_0x25cecd,'username':nullableText(_0x15a207[_0x3d318f(0x1e7)]),'displayName':nullableText(_0x15a207['nickname']),'status':_0x4b0f45,'roles':[],'roleKeys':new Set()},_0x4bd02c[_0x3d318f(0x1ea)](_0x25cecd,_0x2a8cff);else{_0x2a8cff['username']??=nullableText(_0x15a207[_0x3d318f(0x1e7)]),_0x2a8cff[_0x3d318f(0x1d6)]??=nullableText(_0x15a207[_0x3d318f(0x1ef)]);if(_0x4b0f45===_0x3d318f(0x1f1))_0x2a8cff[_0x3d318f(0x1d3)]=_0x3d318f(0x1f1);}const _0x31708e=_0x1c79c0['id']+':'+_0x4b0f45;if(_0x2a8cff[_0x3d318f(0x1ec)][_0x3d318f(0x1e6)](_0x31708e))continue;_0x2a8cff[_0x3d318f(0x1ec)][_0x3d318f(0x1db)](_0x31708e),_0x2a8cff[_0x3d318f(0x1cf)][_0x3d318f(0x1eb)]({'roleId':_0x1c79c0['id'],'roleName':nullableText(_0x1c79c0['roleName']),'roleType':nullableText(_0x1c79c0['roleType']),'membershipStatus':_0x4b0f45});}};for(const _0x267fc8 of _0x5a2f65){_0x42ead0(_0x267fc8,_0x267fc8[_0x59c415(0x1d7)]??[],_0x59c415(0x1f1)),_0x42ead0(_0x267fc8,_0x267fc8[_0x59c415(0x1f5)]??[],'PENDING');}return[..._0x4bd02c[_0x59c415(0x1d0)]()][_0x59c415(0x1d2)](_0x3c3c44=>({'userId':_0x3c3c44[_0x59c415(0x1d9)],'username':_0x3c3c44['username'],'displayName':_0x3c3c44['displayName'],'status':_0x3c3c44[_0x59c415(0x1d3)],'roles':_0x3c3c44[_0x59c415(0x1cf)][_0x59c415(0x1de)]((_0x1bbaf8,_0x3f648a)=>_0x1bbaf8[_0x59c415(0x1fb)]-_0x3f648a[_0x59c415(0x1fb)]||(_0x1bbaf8[_0x59c415(0x1f0)]===_0x3f648a['membershipStatus']?0x0:_0x1bbaf8[_0x59c415(0x1f0)]==='ACTIVE'?-0x1:0x1))}))['sort']((_0x9224b3,_0x1a42e2)=>_0x9224b3[_0x59c415(0x1d9)]-_0x1a42e2['userId']);}export function enrichAppListItemsWithMergedSelection(_0x482f87,_0x5ec533){const _0xc31ce6=a23_0x3c3d;if(!_0x5ec533)return;const _0x1a5188=_0x5ec533[_0xc31ce6(0x1fa)]&&typeof _0x5ec533[_0xc31ce6(0x1fa)]===_0xc31ce6(0x1cd)?_0x5ec533[_0xc31ce6(0x1fa)]:{},_0x4c8265=Object[_0xc31ce6(0x1d8)](_0x1a5188)[_0xc31ce6(0x1f7)]>0x0;for(const _0x20eabd of _0x482f87){_0x20eabd['isCurrent']=![];}const _0x3ed1e0=_0x5ec533[_0xc31ce6(0x1ee)]!=null?String(_0x5ec533[_0xc31ce6(0x1ee)])[_0xc31ce6(0x1e5)]():'';if(_0x4c8265){const _0x4357c4=_0x5ec533[_0xc31ce6(0x1e0)]??_0x5ec533[_0xc31ce6(0x1e1)];if(_0x4357c4)for(const _0x3326e0 of _0x482f87){_0x3326e0[_0xc31ce6(0x1ca)]===!![]&&_0x3326e0[_0xc31ce6(0x1da)]===_0x4357c4&&(_0x3326e0[_0xc31ce6(0x1ce)]=!![]);}for(const _0x5c8bed of _0x482f87){if(_0x5c8bed[_0xc31ce6(0x1ca)]!==![])continue;if(_0x5ec533[_0xc31ce6(0x1e1)])continue;_0x3ed1e0&&String(_0x5c8bed[_0xc31ce6(0x1cc)]??'')[_0xc31ce6(0x1e5)]()===_0x3ed1e0&&(_0x5c8bed[_0xc31ce6(0x1ce)]=!![]);}return;}if(!_0x3ed1e0)return;for(const _0x55ae3c of _0x482f87){String(_0x55ae3c['appcode']??'')[_0xc31ce6(0x1e5)]()===_0x3ed1e0&&(_0x55ae3c[_0xc31ce6(0x1ce)]=!![]);}}export function resolveAppScopeForWrite(_0x2a3999,_0xbf4be4,_0x57fbf8){const _0x4caf57=a23_0x3c3d;if(_0xbf4be4)return _0x4caf57(0x1f6);const _0x385002=_0x57fbf8[_0x4caf57(0x1d1)][_0x4caf57(0x1fa)]&&typeof _0x57fbf8[_0x4caf57(0x1d1)]['apps']===_0x4caf57(0x1cd)?_0x57fbf8[_0x4caf57(0x1d1)]['apps']:{},_0x1b17b0=_0x57fbf8[_0x4caf57(0x1f3)][_0x4caf57(0x1fa)]&&typeof _0x57fbf8['globalConfig']['apps']===_0x4caf57(0x1cd)?_0x57fbf8['globalConfig'][_0x4caf57(0x1fa)]:{};if(Object[_0x4caf57(0x1e3)][_0x4caf57(0x1dc)]['call'](_0x385002,_0x2a3999))return _0x4caf57(0x1f2);if(Object['prototype'][_0x4caf57(0x1dc)]['call'](_0x1b17b0,_0x2a3999))return _0x4caf57(0x1f6);return _0x4caf57(0x1f2);}export function appDefinedIn(_0x49f06d,_0x4f0603,_0x599728){const _0x4141d5=a23_0x3c3d,_0x39020d=Object[_0x4141d5(0x1e3)]['hasOwnProperty'][_0x4141d5(0x1e2)](_0x4f0603,_0x49f06d),_0x29cccf=Object[_0x4141d5(0x1e3)][_0x4141d5(0x1dc)]['call'](_0x599728,_0x49f06d);if(_0x39020d&&_0x29cccf)return'both';if(_0x29cccf)return _0x4141d5(0x1f2);return _0x4141d5(0x1f6);}export function resolveDefaultAppSource(_0x3a503f){const _0x26e724=a23_0x3c3d,_0x39817a=_0x3a503f[_0x26e724(0x1d1)][_0x26e724(0x1fa)]&&typeof _0x3a503f['projectConfig']['apps']==='object'?_0x3a503f['projectConfig'][_0x26e724(0x1fa)]:{};if(_0x26e724(0x1e1)in _0x3a503f[_0x26e724(0x1d1)])return _0x26e724(0x1f2);if(Object['keys'](_0x39817a)[_0x26e724(0x1f7)]>0x0)return _0x26e724(0x1f2);if(Object[_0x26e724(0x1d8)](_0x3a503f[_0x26e724(0x1d1)])[_0x26e724(0x1f7)]===0x0&&_0x3a503f[_0x26e724(0x1f3)][_0x26e724(0x1e1)])return _0x26e724(0x1f6);return null;}export function getConfigPath(_0xe234d1={}){const _0x363653=a23_0x3c3d,_0x25fbd4=_0xe234d1[_0x363653(0x1f6)]?_0x363653(0x1f6):_0x363653(0x1f2);return resolveWriteConfigPath(_0x25fbd4);}export function readConfig(_0x423db1={}){return readConfigFile(getConfigPath(_0x423db1));}export function writeConfig(_0x556b0b,_0x34774e={}){writeConfigFile(getConfigPath(_0x34774e),_0x556b0b);}function a23_0x1212(){const _0x245a71=['20NSPMKG','get','displayName','userList','keys','userId','name','add','hasOwnProperty','4656846NelTFU','sort','1797762xHOGsa','currentApp','defaultApp','call','prototype','9146880PdbNJK','trim','has','username','566637OvmWLY','20420iXSuuA','set','push','roleKeys','2BdycIF','appCode','nickname','membershipStatus','ACTIVE','project','globalConfig','153TqtGjN','applyUserList','global','length','91496RWVKLc','\x20(global)','apps','roleId','named','7041734DgIsaN','appcode','object','isCurrent','roles','values','projectConfig','map','status'];a23_0x1212=function(){return _0x245a71;};return a23_0x1212();}export function scopeLabel(_0x28096b){const _0x3fc6bb=a23_0x3c3d;return _0x28096b[_0x3fc6bb(0x1f6)]?_0x3fc6bb(0x1f9):'';}
1
+ function a23_0x18dc(_0x9759bf,_0x3345ff){_0x9759bf=_0x9759bf-0x171;const _0x180916=a23_0x1809();let _0x18dc62=_0x180916[_0x9759bf];return _0x18dc62;}(function(_0x3314b3,_0x220464){const _0x3087da=a23_0x18dc,_0x2ddce2=_0x3314b3();while(!![]){try{const _0x24114d=-parseInt(_0x3087da(0x18c))/0x1*(parseInt(_0x3087da(0x172))/0x2)+parseInt(_0x3087da(0x18d))/0x3*(-parseInt(_0x3087da(0x186))/0x4)+parseInt(_0x3087da(0x183))/0x5*(-parseInt(_0x3087da(0x171))/0x6)+parseInt(_0x3087da(0x191))/0x7+parseInt(_0x3087da(0x195))/0x8*(-parseInt(_0x3087da(0x17e))/0x9)+parseInt(_0x3087da(0x17d))/0xa*(parseInt(_0x3087da(0x1a1))/0xb)+parseInt(_0x3087da(0x192))/0xc;if(_0x24114d===_0x220464)break;else _0x2ddce2['push'](_0x2ddce2['shift']());}catch(_0x3bb68f){_0x2ddce2['push'](_0x2ddce2['shift']());}}}(a23_0x1809,0xd5b25));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x470037){const _0x1c74aa=_0x470037?.['trim']();return _0x1c74aa?_0x1c74aa:null;}export function projectAppMembers(_0x16bcb0){const _0x23b475=a23_0x18dc,_0x19b71=new Map(),_0x382143=[..._0x16bcb0][_0x23b475(0x194)]((_0x391953,_0x4290fe)=>_0x391953['id']-_0x4290fe['id']),_0x4afc76=(_0x32e40b,_0x5e7244,_0x2927de)=>{const _0x10981f=_0x23b475;for(const _0x2dae51 of _0x5e7244){const _0x5b210a=Number(_0x2dae51[_0x10981f(0x184)]);if(!Number[_0x10981f(0x19b)](_0x5b210a)||_0x5b210a<=0x0)continue;let _0x1b29da=_0x19b71['get'](_0x5b210a);if(!_0x1b29da)_0x1b29da={'userId':_0x5b210a,'username':nullableText(_0x2dae51[_0x10981f(0x182)]),'displayName':nullableText(_0x2dae51[_0x10981f(0x19a)]),'status':_0x2927de,'roles':[],'roleKeys':new Set()},_0x19b71[_0x10981f(0x189)](_0x5b210a,_0x1b29da);else{_0x1b29da[_0x10981f(0x182)]??=nullableText(_0x2dae51[_0x10981f(0x182)]),_0x1b29da['displayName']??=nullableText(_0x2dae51['nickname']);if(_0x2927de===_0x10981f(0x185))_0x1b29da[_0x10981f(0x19e)]=_0x10981f(0x185);}const _0x2e6489=_0x32e40b['id']+':'+_0x2927de;if(_0x1b29da[_0x10981f(0x176)][_0x10981f(0x19d)](_0x2e6489))continue;_0x1b29da[_0x10981f(0x176)][_0x10981f(0x18a)](_0x2e6489),_0x1b29da['roles']['push']({'roleId':_0x32e40b['id'],'roleName':nullableText(_0x32e40b['roleName']),'roleType':nullableText(_0x32e40b[_0x10981f(0x178)]),'membershipStatus':_0x2927de});}};for(const _0x4b98e6 of _0x382143){_0x4afc76(_0x4b98e6,_0x4b98e6[_0x23b475(0x193)]??[],_0x23b475(0x185)),_0x4afc76(_0x4b98e6,_0x4b98e6[_0x23b475(0x18f)]??[],_0x23b475(0x190));}return[..._0x19b71[_0x23b475(0x1a5)]()][_0x23b475(0x17a)](_0x1e2ee1=>({'userId':_0x1e2ee1[_0x23b475(0x184)],'username':_0x1e2ee1[_0x23b475(0x182)],'displayName':_0x1e2ee1[_0x23b475(0x197)],'status':_0x1e2ee1[_0x23b475(0x19e)],'roles':_0x1e2ee1[_0x23b475(0x188)]['sort']((_0x470eff,_0x1b55fa)=>_0x470eff['roleId']-_0x1b55fa[_0x23b475(0x175)]||(_0x470eff[_0x23b475(0x181)]===_0x1b55fa[_0x23b475(0x181)]?0x0:_0x470eff[_0x23b475(0x181)]===_0x23b475(0x185)?-0x1:0x1))}))[_0x23b475(0x194)]((_0x3c9841,_0x2dabcf)=>_0x3c9841['userId']-_0x2dabcf['userId']);}export function enrichAppListItemsWithMergedSelection(_0x3a42f8,_0x432242){const _0x4a03e6=a23_0x18dc;if(!_0x432242)return;const _0x25f23b=_0x432242[_0x4a03e6(0x17b)]&&typeof _0x432242[_0x4a03e6(0x17b)]===_0x4a03e6(0x199)?_0x432242['apps']:{},_0x38ae21=Object[_0x4a03e6(0x1a4)](_0x25f23b)[_0x4a03e6(0x198)]>0x0;for(const _0x3d861b of _0x3a42f8){_0x3d861b[_0x4a03e6(0x196)]=![];}const _0x1ffb34=_0x432242['appCode']!=null?String(_0x432242['appCode'])[_0x4a03e6(0x17f)]():'';if(_0x38ae21){const _0x41c79e=_0x432242[_0x4a03e6(0x179)]??_0x432242[_0x4a03e6(0x1a3)];if(_0x41c79e)for(const _0xac958f of _0x3a42f8){_0xac958f[_0x4a03e6(0x17c)]===!![]&&_0xac958f[_0x4a03e6(0x19f)]===_0x41c79e&&(_0xac958f['isCurrent']=!![]);}for(const _0x10339d of _0x3a42f8){if(_0x10339d[_0x4a03e6(0x17c)]!==![])continue;if(_0x432242[_0x4a03e6(0x1a3)])continue;_0x1ffb34&&String(_0x10339d[_0x4a03e6(0x177)]??'')['trim']()===_0x1ffb34&&(_0x10339d['isCurrent']=!![]);}return;}if(!_0x1ffb34)return;for(const _0x283331 of _0x3a42f8){String(_0x283331[_0x4a03e6(0x177)]??'')['trim']()===_0x1ffb34&&(_0x283331[_0x4a03e6(0x196)]=!![]);}}export function resolveAppScopeForWrite(_0x55338b,_0x210505,_0x1141f6){const _0x58fea8=a23_0x18dc;if(_0x210505)return _0x58fea8(0x187);const _0x27e054=_0x1141f6['projectConfig']['apps']&&typeof _0x1141f6[_0x58fea8(0x1a0)][_0x58fea8(0x17b)]==='object'?_0x1141f6['projectConfig']['apps']:{},_0x4d2cac=_0x1141f6['globalConfig'][_0x58fea8(0x17b)]&&typeof _0x1141f6[_0x58fea8(0x19c)][_0x58fea8(0x17b)]===_0x58fea8(0x199)?_0x1141f6[_0x58fea8(0x19c)][_0x58fea8(0x17b)]:{};if(Object['prototype'][_0x58fea8(0x18e)][_0x58fea8(0x173)](_0x27e054,_0x55338b))return _0x58fea8(0x174);if(Object[_0x58fea8(0x18b)]['hasOwnProperty'][_0x58fea8(0x173)](_0x4d2cac,_0x55338b))return _0x58fea8(0x187);return _0x58fea8(0x174);}export function appDefinedIn(_0x45d9b6,_0xe0ada2,_0x567cab){const _0x198e9d=a23_0x18dc,_0x1eba3a=Object[_0x198e9d(0x18b)][_0x198e9d(0x18e)]['call'](_0xe0ada2,_0x45d9b6),_0x362a44=Object[_0x198e9d(0x18b)]['hasOwnProperty']['call'](_0x567cab,_0x45d9b6);if(_0x1eba3a&&_0x362a44)return _0x198e9d(0x180);if(_0x362a44)return _0x198e9d(0x174);return _0x198e9d(0x187);}export function resolveDefaultAppSource(_0x53078e){const _0x21cd10=a23_0x18dc,_0x7e3c2e=_0x53078e[_0x21cd10(0x1a0)][_0x21cd10(0x17b)]&&typeof _0x53078e[_0x21cd10(0x1a0)][_0x21cd10(0x17b)]===_0x21cd10(0x199)?_0x53078e[_0x21cd10(0x1a0)][_0x21cd10(0x17b)]:{};if(_0x21cd10(0x1a3)in _0x53078e[_0x21cd10(0x1a0)])return _0x21cd10(0x174);if(Object[_0x21cd10(0x1a4)](_0x7e3c2e)[_0x21cd10(0x198)]>0x0)return'project';if(Object[_0x21cd10(0x1a4)](_0x53078e[_0x21cd10(0x1a0)])['length']===0x0&&_0x53078e[_0x21cd10(0x19c)][_0x21cd10(0x1a3)])return _0x21cd10(0x187);return null;}function a23_0x1809(){const _0x41e137=['ACTIVE','12WodrZe','global','roles','set','add','prototype','2729uLRAKP','634701XtVGIt','hasOwnProperty','applyUserList','PENDING','4730110NzEhbZ','20930940ZFjBwy','userList','sort','4780696Uuaejw','isCurrent','displayName','length','object','nickname','isFinite','globalConfig','has','status','name','projectConfig','10898756noHfis','\x20(global)','defaultApp','keys','values','7737222LrNPvk','10GKpJvx','call','project','roleId','roleKeys','appcode','roleType','currentApp','map','apps','named','10RrrwTM','9dTbJoK','trim','both','membershipStatus','username','5fcxgZs','userId'];a23_0x1809=function(){return _0x41e137;};return a23_0x1809();}export function getConfigPath(_0xc316c9={}){const _0x357ae7=a23_0x18dc,_0xf92684=_0xc316c9['global']?_0x357ae7(0x187):'project';return resolveWriteConfigPath(_0xf92684);}export function readConfig(_0x513261={}){return readConfigFile(getConfigPath(_0x513261));}export function writeConfig(_0x5cc66f,_0x4d698f={}){writeConfigFile(getConfigPath(_0x4d698f),_0x5cc66f);}export function scopeLabel(_0x4b310a){const _0x1ad8f5=a23_0x18dc;return _0x4b310a[_0x1ad8f5(0x187)]?_0x1ad8f5(0x1a2):'';}
@@ -1 +1 @@
1
- const a24_0x38d54f=a24_0x1e0d;(function(_0x19d3aa,_0x5626d5){const _0x48380d=a24_0x1e0d,_0x25f78a=_0x19d3aa();while(!![]){try{const _0x1b1256=-parseInt(_0x48380d(0x144))/0x1+-parseInt(_0x48380d(0x13e))/0x2+-parseInt(_0x48380d(0x143))/0x3+-parseInt(_0x48380d(0x145))/0x4*(parseInt(_0x48380d(0x14f))/0x5)+-parseInt(_0x48380d(0x148))/0x6+parseInt(_0x48380d(0x14b))/0x7*(-parseInt(_0x48380d(0x14d))/0x8)+parseInt(_0x48380d(0x13c))/0x9*(parseInt(_0x48380d(0x149))/0xa);if(_0x1b1256===_0x5626d5)break;else _0x25f78a['push'](_0x25f78a['shift']());}catch(_0x3250ad){_0x25f78a['push'](_0x25f78a['shift']());}}}(a24_0x4152,0x7cf94));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';function a24_0x1e0d(_0x103746,_0x2a191b){_0x103746=_0x103746-0x13c;const _0x41525b=a24_0x4152();let _0x1e0dce=_0x41525b[_0x103746];return _0x1e0dce;}const DELETE_PATH=a24_0x38d54f(0x150);export const appConfigDelete={'service':a24_0x38d54f(0x14e),'command':a24_0x38d54f(0x141),'description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':a24_0x38d54f(0x13f),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x937b39){readKeyArg(_0x937b39);},async 'dryRun'(_0x45ef18){const _0x32da60=a24_0x38d54f,_0x2f4feb=readKeyArg(_0x45ef18),_0x19c2c6=await mustGetByKey(_0x45ef18[_0x32da60(0x140)],_0x2f4feb);return asAppConfigDryRunResult(buildMutationData({'operation':_0x32da60(0x141),'appCode':_0x45ef18[_0x32da60(0x140)],'key':_0x2f4feb,'before':projectAppConfig(_0x19c2c6),'after':null,'dryRun':!![]}),{'method':_0x32da60(0x13d),'url':DELETE_PATH});},async 'execute'(_0x2a3418){const _0x4f6918=a24_0x38d54f,_0x3ddc85=readKeyArg(_0x2a3418),_0x5aa2d3=await mustGetByKey(_0x2a3418[_0x4f6918(0x140)],_0x3ddc85);return await withAppConfigApiBoundary(_0x4f6918(0x141),{'appCode':_0x2a3418['appCode'],'key':_0x3ddc85},()=>deleteAppConfig({'appCode':_0x2a3418['appCode'],'id':requireAppConfigId(_0x5aa2d3,_0x3ddc85,_0x2a3418[_0x4f6918(0x140)])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x2a3418['appCode'],'key':_0x3ddc85,'before':projectAppConfig(_0x5aa2d3),'after':null,'dryRun':![]}),'message':_0x4f6918(0x146)+_0x3ddc85};}};async function mustGetByKey(_0x31aa28,_0x26793e){const _0x1e1fa4=a24_0x38d54f,_0x6b2954=await withAppConfigApiBoundary('get',{'appCode':_0x31aa28,'key':_0x26793e},()=>getAppConfigByKey(_0x31aa28,_0x26793e));if(!_0x6b2954)throw CliErrors['validation'](_0x1e1fa4(0x151)+_0x26793e,_0x1e1fa4(0x142)+_0x31aa28);return _0x6b2954;}function requireAppConfigId(_0x572bc5,_0x26497c,_0x5ca96d){const _0x16f0ce=a24_0x38d54f;if(typeof _0x572bc5['id']===_0x16f0ce(0x14c)&&Number[_0x16f0ce(0x14a)](_0x572bc5['id'])&&_0x572bc5['id']>0x0)return _0x572bc5['id'];throw CliErrors[_0x16f0ce(0x153)](_0x16f0ce(0x152)+_0x26497c+_0x16f0ce(0x147)+_0x5ca96d);}function a24_0x4152(){const _0x46d2a3=['appCode:\x20','868800oLYeGY','627352IHRdkM','4zmrzxt','Deleted\x20app\x20config\x20',',\x20appCode=','4765224qYZLCc','10mTmWrj','isFinite','7smTvlC','number','3585928mznjCd','app-config','4369645DeuGPC','/smartapi/app-config/delete','App\x20config\x20key\x20not\x20found:\x20','App\x20config\x20server\x20id\x20missing\x20for\x20key=','apiError','36940077EuVhCR','POST','1118470QyPxOa','high-risk-write','appCode','delete'];a24_0x4152=function(){return _0x46d2a3;};return a24_0x4152();}
1
+ const a24_0x46d549=a24_0x223b;(function(_0x2413ea,_0xd86c34){const _0xc85637=a24_0x223b,_0x13ce90=_0x2413ea();while(!![]){try{const _0x4933b4=-parseInt(_0xc85637(0x1e2))/0x1*(-parseInt(_0xc85637(0x1df))/0x2)+-parseInt(_0xc85637(0x1d8))/0x3+-parseInt(_0xc85637(0x1ce))/0x4+-parseInt(_0xc85637(0x1de))/0x5+parseInt(_0xc85637(0x1d9))/0x6+parseInt(_0xc85637(0x1cc))/0x7*(-parseInt(_0xc85637(0x1d5))/0x8)+parseInt(_0xc85637(0x1e1))/0x9*(parseInt(_0xc85637(0x1d0))/0xa);if(_0x4933b4===_0xd86c34)break;else _0x13ce90['push'](_0x13ce90['shift']());}catch(_0xeb0006){_0x13ce90['push'](_0x13ce90['shift']());}}}(a24_0x5ea4,0xb643d));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';function a24_0x223b(_0x3a4087,_0x273df2){_0x3a4087=_0x3a4087-0x1cc;const _0x5ea4bd=a24_0x5ea4();let _0x223be1=_0x5ea4bd[_0x3a4087];return _0x223be1;}function a24_0x5ea4(){const _0x2a3c45=['isFinite','1135184awvocU','appCode',',\x20appCode=','2591385ZlRdoo','5231196jieUfz','get','POST','validation','number','3326455KOVgBb','3992gdDfMU','/smartapi/app-config/delete','477IJoAkM','734coCnUO','app-config','56UbrFxT','Delete\x20one\x20runtime\x20app-config\x20key','5293384ERDUea','App\x20config\x20key\x20not\x20found:\x20','452310jSLwhT','delete','high-risk-write','appCode:\x20'];a24_0x5ea4=function(){return _0x2a3c45;};return a24_0x5ea4();}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=a24_0x46d549(0x1e0);export const appConfigDelete={'service':a24_0x46d549(0x1e3),'command':'delete','description':a24_0x46d549(0x1cd),'risk':a24_0x46d549(0x1d2),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1a67f3){readKeyArg(_0x1a67f3);},async 'dryRun'(_0x1f18fd){const _0x6221ce=a24_0x46d549,_0x5222c3=readKeyArg(_0x1f18fd),_0x3876be=await mustGetByKey(_0x1f18fd[_0x6221ce(0x1d6)],_0x5222c3);return asAppConfigDryRunResult(buildMutationData({'operation':_0x6221ce(0x1d1),'appCode':_0x1f18fd[_0x6221ce(0x1d6)],'key':_0x5222c3,'before':projectAppConfig(_0x3876be),'after':null,'dryRun':!![]}),{'method':_0x6221ce(0x1db),'url':DELETE_PATH});},async 'execute'(_0x40c071){const _0x92a310=a24_0x46d549,_0x3a2c32=readKeyArg(_0x40c071),_0x1ff79a=await mustGetByKey(_0x40c071[_0x92a310(0x1d6)],_0x3a2c32);return await withAppConfigApiBoundary(_0x92a310(0x1d1),{'appCode':_0x40c071[_0x92a310(0x1d6)],'key':_0x3a2c32},()=>deleteAppConfig({'appCode':_0x40c071['appCode'],'id':requireAppConfigId(_0x1ff79a,_0x3a2c32,_0x40c071[_0x92a310(0x1d6)])})),{'ok':!![],'data':buildMutationData({'operation':_0x92a310(0x1d1),'appCode':_0x40c071[_0x92a310(0x1d6)],'key':_0x3a2c32,'before':projectAppConfig(_0x1ff79a),'after':null,'dryRun':![]}),'message':'Deleted\x20app\x20config\x20'+_0x3a2c32};}};async function mustGetByKey(_0x56089d,_0x51e2c8){const _0x22399d=a24_0x46d549,_0x2303f9=await withAppConfigApiBoundary(_0x22399d(0x1da),{'appCode':_0x56089d,'key':_0x51e2c8},()=>getAppConfigByKey(_0x56089d,_0x51e2c8));if(!_0x2303f9)throw CliErrors[_0x22399d(0x1dc)](_0x22399d(0x1cf)+_0x51e2c8,_0x22399d(0x1d3)+_0x56089d);return _0x2303f9;}function requireAppConfigId(_0x1c0724,_0x2a00f2,_0x293744){const _0x307082=a24_0x46d549;if(typeof _0x1c0724['id']===_0x307082(0x1dd)&&Number[_0x307082(0x1d4)](_0x1c0724['id'])&&_0x1c0724['id']>0x0)return _0x1c0724['id'];throw CliErrors['apiError']('App\x20config\x20server\x20id\x20missing\x20for\x20key='+_0x2a00f2+_0x307082(0x1d7)+_0x293744);}
@@ -1 +1 @@
1
- const a25_0x1c398b=a25_0x1b3a;(function(_0x42223f,_0x288ebc){const _0x473ae0=a25_0x1b3a,_0x28df06=_0x42223f();while(!![]){try{const _0x1b1a9e=parseInt(_0x473ae0(0x88))/0x1*(-parseInt(_0x473ae0(0x8f))/0x2)+-parseInt(_0x473ae0(0x83))/0x3*(parseInt(_0x473ae0(0x8a))/0x4)+-parseInt(_0x473ae0(0x8d))/0x5*(-parseInt(_0x473ae0(0x90))/0x6)+-parseInt(_0x473ae0(0x91))/0x7*(-parseInt(_0x473ae0(0x81))/0x8)+parseInt(_0x473ae0(0x8b))/0x9+-parseInt(_0x473ae0(0x86))/0xa+-parseInt(_0x473ae0(0x7b))/0xb*(-parseInt(_0x473ae0(0x8e))/0xc);if(_0x1b1a9e===_0x288ebc)break;else _0x28df06['push'](_0x28df06['shift']());}catch(_0x4f1e9e){_0x28df06['push'](_0x28df06['shift']());}}}(a25_0xf160,0xd8e5d));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a25_0xf160(){const _0x4f4e21=['2733798yKdzlu','\x20with\x20value\x20redacted','App\x20config\x20key\x20not\x20found:\x20','3561860ViIvfG','get','2UeZUdx','app-config','4GmjTbC','8451261ubQZPA','reveal','2121865dLBmCj','19524GAIcfl','1223654mBnpBu','6EOphQt','658sSJbId','3817iuuxeB','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','appCode','validation','bool','appCode:\x20','123536fVVRiZ','read'];a25_0xf160=function(){return _0x4f4e21;};return a25_0xf160();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a25_0x1b3a(_0xb156b9,_0x381d17){_0xb156b9=_0xb156b9-0x7b;const _0xf1603=a25_0xf160();let _0x1b3a5b=_0xf1603[_0xb156b9];return _0x1b3a5b;}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a25_0x1c398b(0x89),'command':'get','description':a25_0x1c398b(0x7c),'risk':a25_0x1c398b(0x82),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x4a4378){readKeyArg(_0x4a4378);},async 'execute'(_0x4f8d8c){const _0xa6e4d7=a25_0x1c398b,_0x5e3e2c=readKeyArg(_0x4f8d8c),_0x428879=await withAppConfigApiBoundary(_0xa6e4d7(0x87),{'appCode':_0x4f8d8c[_0xa6e4d7(0x7d)],'key':_0x5e3e2c},()=>getAppConfigByKey(_0x4f8d8c[_0xa6e4d7(0x7d)],_0x5e3e2c));if(!_0x428879)throw CliErrors[_0xa6e4d7(0x7e)](_0xa6e4d7(0x85)+_0x5e3e2c,_0xa6e4d7(0x80)+_0x4f8d8c[_0xa6e4d7(0x7d)]);const _0x16f18d=projectAppConfig(_0x428879,{'reveal':_0x4f8d8c[_0xa6e4d7(0x7f)]('reveal')});return{'ok':!![],'data':{'config':_0x16f18d},'message':_0x4f8d8c[_0xa6e4d7(0x7f)](_0xa6e4d7(0x8c))?'Loaded\x20app\x20config\x20'+_0x5e3e2c+'\x20with\x20value\x20revealed':'Loaded\x20app\x20config\x20'+_0x5e3e2c+_0xa6e4d7(0x84)};}};
1
+ const a25_0x758387=a25_0x5b91;function a25_0x5b91(_0x412b76,_0x5c6f10){_0x412b76=_0x412b76-0x1e0;const _0x31aeb9=a25_0x31ae();let _0x5b91d4=_0x31aeb9[_0x412b76];return _0x5b91d4;}function a25_0x31ae(){const _0x3e51a2=['\x20with\x20value\x20revealed','8497rJfIYS','713240YqCglM','18995742hqdRah','validation','appCode','\x20with\x20value\x20redacted','136464rfQrKd','App\x20config\x20key\x20not\x20found:\x20','read','88WRcnTP','135OYeEtu','10993136UpSwVu','appCode:\x20','Loaded\x20app\x20config\x20','reveal','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','get','bool','5170884XwqJXa','3358377VhIgqy'];a25_0x31ae=function(){return _0x3e51a2;};return a25_0x31ae();}(function(_0xb27cce,_0xf74adf){const _0x49c9a0=a25_0x5b91,_0x106815=_0xb27cce();while(!![]){try{const _0x4d3111=-parseInt(_0x49c9a0(0x1ee))/0x1*(parseInt(_0x49c9a0(0x1e2))/0x2)+parseInt(_0x49c9a0(0x1ec))/0x3+parseInt(_0x49c9a0(0x1eb))/0x4+parseInt(_0x49c9a0(0x1e3))/0x5*(-parseInt(_0x49c9a0(0x1f4))/0x6)+parseInt(_0x49c9a0(0x1e4))/0x7+-parseInt(_0x49c9a0(0x1ef))/0x8+-parseInt(_0x49c9a0(0x1f0))/0x9;if(_0x4d3111===_0xf74adf)break;else _0x106815['push'](_0x106815['shift']());}catch(_0x16677a){_0x106815['push'](_0x106815['shift']());}}}(a25_0x31ae,0xc20ff));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';export const appConfigGet={'service':'app-config','command':'get','description':a25_0x758387(0x1e8),'risk':a25_0x758387(0x1e1),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x5c17f2){readKeyArg(_0x5c17f2);},async 'execute'(_0x15f63a){const _0x22ea6b=a25_0x758387,_0x1f1ab9=readKeyArg(_0x15f63a),_0x5a02f5=await withAppConfigApiBoundary(_0x22ea6b(0x1e9),{'appCode':_0x15f63a[_0x22ea6b(0x1f2)],'key':_0x1f1ab9},()=>getAppConfigByKey(_0x15f63a[_0x22ea6b(0x1f2)],_0x1f1ab9));if(!_0x5a02f5)throw CliErrors[_0x22ea6b(0x1f1)](_0x22ea6b(0x1e0)+_0x1f1ab9,_0x22ea6b(0x1e5)+_0x15f63a[_0x22ea6b(0x1f2)]);const _0x23ca58=projectAppConfig(_0x5a02f5,{'reveal':_0x15f63a[_0x22ea6b(0x1ea)]('reveal')});return{'ok':!![],'data':{'config':_0x23ca58},'message':_0x15f63a['bool'](_0x22ea6b(0x1e7))?'Loaded\x20app\x20config\x20'+_0x1f1ab9+_0x22ea6b(0x1ed):_0x22ea6b(0x1e6)+_0x1f1ab9+_0x22ea6b(0x1f3)};}};
@@ -1 +1 @@
1
- function a26_0x5e8e(){const _0x420604=['5ciWXsS','4256814kRZMTA','2383400tHSzOn','305901twwuhr','14162553stuBXV','6905610mrjejq','1uHirkU','7991102dxODsB','8sHZQYM','2757662qKVhfa'];a26_0x5e8e=function(){return _0x420604;};return a26_0x5e8e();}(function(_0x50837d,_0xf5dcfb){const _0x39961c=a26_0xed36,_0x9e68b5=_0x50837d();while(!![]){try{const _0x397c48=parseInt(_0x39961c(0xbb))/0x1*(-parseInt(_0x39961c(0xbe))/0x2)+parseInt(_0x39961c(0xb8))/0x3+-parseInt(_0x39961c(0xb7))/0x4+-parseInt(_0x39961c(0xbf))/0x5*(-parseInt(_0x39961c(0xc0))/0x6)+-parseInt(_0x39961c(0xbc))/0x7*(-parseInt(_0x39961c(0xbd))/0x8)+parseInt(_0x39961c(0xb9))/0x9+-parseInt(_0x39961c(0xba))/0xa;if(_0x397c48===_0xf5dcfb)break;else _0x9e68b5['push'](_0x9e68b5['shift']());}catch(_0x35f764){_0x9e68b5['push'](_0x9e68b5['shift']());}}}(a26_0x5e8e,0xd24d5));import{appConfigList}from'../../commands/app-config/list.js';import{appConfigGet}from'../../commands/app-config/get.js';function a26_0xed36(_0x51541e,_0x2a0fc2){_0x51541e=_0x51541e-0xb7;const _0x5e8e7f=a26_0x5e8e();let _0xed362d=_0x5e8e7f[_0x51541e];return _0xed362d;}import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
1
+ (function(_0x4b8f5a,_0x3e4694){const _0x2cc85c=a26_0x3229,_0x46aa4a=_0x4b8f5a();while(!![]){try{const _0x2d8b0a=parseInt(_0x2cc85c(0x1e9))/0x1+-parseInt(_0x2cc85c(0x1e6))/0x2+-parseInt(_0x2cc85c(0x1e8))/0x3+-parseInt(_0x2cc85c(0x1ec))/0x4*(parseInt(_0x2cc85c(0x1e7))/0x5)+parseInt(_0x2cc85c(0x1ea))/0x6+parseInt(_0x2cc85c(0x1e5))/0x7+parseInt(_0x2cc85c(0x1ed))/0x8*(parseInt(_0x2cc85c(0x1eb))/0x9);if(_0x2d8b0a===_0x3e4694)break;else _0x46aa4a['push'](_0x46aa4a['shift']());}catch(_0x1f90cd){_0x46aa4a['push'](_0x46aa4a['shift']());}}}(a26_0x1f35,0x783b5));import{appConfigList}from'../../commands/app-config/list.js';function a26_0x1f35(){const _0x531d18=['324094xePhhI','4244826JGFjSJ','297GJOapP','40SxEkba','26624QPeyxF','4800775sxMpmK','1613978npiATx','109290sNZPld','927528QSIjzn'];a26_0x1f35=function(){return _0x531d18;};return a26_0x1f35();}import{appConfigGet}from'../../commands/app-config/get.js';import{appConfigSet}from'../../commands/app-config/set.js';import{appConfigDelete}from'../../commands/app-config/delete.js';function a26_0x3229(_0x15244a,_0x2c59a7){_0x15244a=_0x15244a-0x1e5;const _0x1f35e8=a26_0x1f35();let _0x3229f9=_0x1f35e8[_0x15244a];return _0x3229f9;}export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
@@ -1 +1 @@
1
- const a27_0x4325ae=a27_0x1303;(function(_0xbcbbb5,_0x1c30e8){const _0x158e3e=a27_0x1303,_0x3a480a=_0xbcbbb5();while(!![]){try{const _0x41abf8=parseInt(_0x158e3e(0x1a3))/0x1*(parseInt(_0x158e3e(0x1a1))/0x2)+parseInt(_0x158e3e(0x190))/0x3*(parseInt(_0x158e3e(0x19d))/0x4)+parseInt(_0x158e3e(0x19c))/0x5*(parseInt(_0x158e3e(0x1a2))/0x6)+-parseInt(_0x158e3e(0x18f))/0x7*(parseInt(_0x158e3e(0x19f))/0x8)+parseInt(_0x158e3e(0x19e))/0x9+parseInt(_0x158e3e(0x19b))/0xa+-parseInt(_0x158e3e(0x194))/0xb;if(_0x41abf8===_0x1c30e8)break;else _0x3a480a['push'](_0x3a480a['shift']());}catch(_0x525448){_0x3a480a['push'](_0x3a480a['shift']());}}}(a27_0xde41,0xe2b2a));import{listAppConfigs}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a27_0xde41(){const _0x53a18f=['appCode','8WvGYwB','90jyjSxP','233850buvilW','35FOPfHp','1203JFcHCx','app-config','read','trim','27640019Ihgtgg','list','Found\x20','map','length','key','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','9146970ghIqZQ','279975yOLigZ','11636LnuIFF','2262798XpPouo','1066672wIicls'];a27_0xde41=function(){return _0x53a18f;};return a27_0xde41();}import{projectAppConfig,readOptionalTags,TAGS_FLAG,validateKey,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';function a27_0x1303(_0x3d0cc4,_0x463433){_0x3d0cc4=_0x3d0cc4-0x18f;const _0xde41cc=a27_0xde41();let _0x1303d0=_0xde41cc[_0x3d0cc4];return _0x1303d0;}export const appConfigList={'service':a27_0x4325ae(0x191),'command':a27_0x4325ae(0x195),'description':a27_0x4325ae(0x19a),'risk':a27_0x4325ae(0x192),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x4325ae(0x199),'type':'string','description':'Filter\x20by\x20exact\x20config\x20key'},TAGS_FLAG],async 'validate'(_0x2baade){const _0x2890f4=a27_0x4325ae,_0xa76630=_0x2baade['str'](_0x2890f4(0x199))[_0x2890f4(0x193)]();if(_0xa76630)validateKey(_0xa76630);readOptionalTags(_0x2baade);},async 'execute'(_0x5b9bb6){const _0xf34369=a27_0x4325ae,_0x3ac53e=_0x5b9bb6['str'](_0xf34369(0x199))['trim']()||undefined,_0x333a66=readOptionalTags(_0x5b9bb6),_0x3c64d8=await withAppConfigApiBoundary('list',{'appCode':_0x5b9bb6[_0xf34369(0x1a0)]},()=>listAppConfigs(_0x5b9bb6[_0xf34369(0x1a0)],{'key':_0x3ac53e,'tags':_0x333a66})),_0x155c4a=_0x3c64d8[_0xf34369(0x197)](_0xcf41e5=>projectAppConfig(_0xcf41e5));return{'ok':!![],'data':{'appCode':_0x5b9bb6[_0xf34369(0x1a0)],'count':_0x155c4a['length'],'configs':_0x155c4a},'message':_0xf34369(0x196)+_0x155c4a[_0xf34369(0x198)]+'\x20app\x20config(s)'};}};
1
+ function a27_0x1996(_0x57c7b1,_0x1eff84){_0x57c7b1=_0x57c7b1-0x184;const _0x3bb76c=a27_0x3bb7();let _0x199610=_0x3bb76c[_0x57c7b1];return _0x199610;}function a27_0x3bb7(){const _0x30cf3a=['Found\x20','list','trim','38678002wOLvow','map','160yuDZVG','29030NusxHY','appCode','read','3019392wOLUjg','340824EiVisg','Filter\x20by\x20exact\x20config\x20key','app-config','4707ASSwVC','string','203758KShKDY','key','length','\x20app\x20config(s)','13cYsSpt','str','11112qgmfjD','7896xNBnTN','3813816mxBYdG'];a27_0x3bb7=function(){return _0x30cf3a;};return a27_0x3bb7();}const a27_0x2d0b44=a27_0x1996;(function(_0x510133,_0xcb32e8){const _0x58393d=a27_0x1996,_0x25d85a=_0x510133();while(!![]){try{const _0x466168=parseInt(_0x58393d(0x186))/0x1*(-parseInt(_0x58393d(0x19a))/0x2)+parseInt(_0x58393d(0x194))/0x3+-parseInt(_0x58393d(0x18a))/0x4+-parseInt(_0x58393d(0x190))/0x5*(-parseInt(_0x58393d(0x195))/0x6)+-parseInt(_0x58393d(0x189))/0x7*(parseInt(_0x58393d(0x188))/0x8)+parseInt(_0x58393d(0x198))/0x9*(-parseInt(_0x58393d(0x191))/0xa)+parseInt(_0x58393d(0x18e))/0xb;if(_0x466168===_0xcb32e8)break;else _0x25d85a['push'](_0x25d85a['shift']());}catch(_0x35fc91){_0x25d85a['push'](_0x25d85a['shift']());}}}(a27_0x3bb7,0xeea18));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':a27_0x2d0b44(0x197),'command':a27_0x2d0b44(0x18c),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a27_0x2d0b44(0x193),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x2d0b44(0x19b),'type':a27_0x2d0b44(0x199),'description':a27_0x2d0b44(0x196)},TAGS_FLAG],async 'validate'(_0x2933ba){const _0x550442=a27_0x2d0b44,_0x102f99=_0x2933ba[_0x550442(0x187)]('key')[_0x550442(0x18d)]();if(_0x102f99)validateKey(_0x102f99);readOptionalTags(_0x2933ba);},async 'execute'(_0x2f2983){const _0x3a49b0=a27_0x2d0b44,_0xbae17a=_0x2f2983[_0x3a49b0(0x187)](_0x3a49b0(0x19b))[_0x3a49b0(0x18d)]()||undefined,_0x45ffbb=readOptionalTags(_0x2f2983),_0x67d264=await withAppConfigApiBoundary(_0x3a49b0(0x18c),{'appCode':_0x2f2983[_0x3a49b0(0x192)]},()=>listAppConfigs(_0x2f2983[_0x3a49b0(0x192)],{'key':_0xbae17a,'tags':_0x45ffbb})),_0x421b6d=_0x67d264[_0x3a49b0(0x18f)](_0x61354c=>projectAppConfig(_0x61354c));return{'ok':!![],'data':{'appCode':_0x2f2983['appCode'],'count':_0x421b6d[_0x3a49b0(0x184)],'configs':_0x421b6d},'message':_0x3a49b0(0x18b)+_0x421b6d['length']+_0x3a49b0(0x185)};}};
@@ -1 +1 @@
1
- const a28_0x563009=a28_0x4292;function a28_0x4292(_0x301372,_0x57baa6){_0x301372=_0x301372-0x81;const _0xd360a9=a28_0xd360();let _0x4292d0=_0xd360a9[_0x301372];return _0x4292d0;}(function(_0x1e8cb5,_0x48e87f){const _0x5f531f=a28_0x4292,_0x5d795a=_0x1e8cb5();while(!![]){try{const _0x27ec56=parseInt(_0x5f531f(0x84))/0x1*(-parseInt(_0x5f531f(0x93))/0x2)+-parseInt(_0x5f531f(0x97))/0x3+-parseInt(_0x5f531f(0x8c))/0x4+parseInt(_0x5f531f(0x89))/0x5+-parseInt(_0x5f531f(0x82))/0x6+-parseInt(_0x5f531f(0x8e))/0x7*(-parseInt(_0x5f531f(0x86))/0x8)+parseInt(_0x5f531f(0x90))/0x9;if(_0x27ec56===_0x48e87f)break;else _0x5d795a['push'](_0x5d795a['shift']());}catch(_0x5d9cc6){_0x5d795a['push'](_0x5d795a['shift']());}}}(a28_0xd360,0xce2f3));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a28_0xd360(){const _0x132ace=['app-config','5419704JxOqpm','Created','144zQDCiY','/smartapi/app-config/create','8TAMZiS','get','file','7778225xvlZXi','apiError','tags','6376372HfwlmJ','/smartapi/app-config/update','2939209amoHLh','create','23964444QSBwqm','appCode','string','5906HdwfyT','write','Updated','\x20app\x20config\x20','2613324zNQvuu','update','number','set'];a28_0xd360=function(){return _0x132ace;};return a28_0xd360();}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=a28_0x563009(0x85),UPDATE_PATH=a28_0x563009(0x8d);export const appConfigSet={'service':a28_0x563009(0x81),'command':a28_0x563009(0x9a),'description':'Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','risk':a28_0x563009(0x94),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0x563009(0x88),'type':a28_0x563009(0x92),'description':'Read\x20config\x20value\x20from\x20file'}],async 'validate'(_0x1d570c){readKeyArg(_0x1d570c),readOptionalTags(_0x1d570c),assertSingleValueSource(_0x1d570c);},async 'dryRun'(_0xb8f183){const _0x174a59=a28_0x563009,_0x7d2135=readKeyArg(_0xb8f183),_0x408c2e=readOptionalTags(_0xb8f183),_0x5bbe5f=assertSingleValueSource(_0xb8f183);await assertValueSourceReadable(_0x5bbe5f);const _0x2b9015=await withAppConfigApiBoundary(_0x174a59(0x87),{'appCode':_0xb8f183['appCode'],'key':_0x7d2135},()=>getAppConfigByKey(_0xb8f183[_0x174a59(0x91)],_0x7d2135)),_0x126732=_0x2b9015?'update':_0x174a59(0x8f),_0x23a113=_0x2b9015?projectAppConfig(_0x2b9015):null,_0x8b359d=plannedAppConfig({'appCode':_0xb8f183[_0x174a59(0x91)],'key':_0x7d2135,'tags':_0x408c2e??_0x2b9015?.[_0x174a59(0x8b)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x126732,'appCode':_0xb8f183['appCode'],'key':_0x7d2135,'before':_0x23a113,'after':_0x8b359d,'dryRun':!![]}),{'method':'POST','url':_0x126732===_0x174a59(0x98)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x1a077d){const _0x3f3cd3=a28_0x563009,_0x13207e=readKeyArg(_0x1a077d),_0x6cc538=readOptionalTags(_0x1a077d),_0x3cd5d5=await withAppConfigApiBoundary(_0x3f3cd3(0x87),{'appCode':_0x1a077d['appCode'],'key':_0x13207e},()=>getAppConfigByKey(_0x1a077d[_0x3f3cd3(0x91)],_0x13207e)),_0x16d6f8=_0x3cd5d5?projectAppConfig(_0x3cd5d5):null,_0x5330c6=_0x3cd5d5?_0x3f3cd3(0x98):_0x3f3cd3(0x8f),{value:_0x4c3d67,warnings:_0x3a7539}=await readAppConfigValue(_0x1a077d),_0x2e7d45={'appCode':_0x1a077d['appCode'],'key':_0x13207e,'value':_0x4c3d67,'tags':_0x6cc538??_0x3cd5d5?.[_0x3f3cd3(0x8b)]??undefined};await withAppConfigApiBoundary(_0x5330c6,{'appCode':_0x1a077d[_0x3f3cd3(0x91)],'key':_0x13207e},async()=>{const _0xaf5da2=_0x3f3cd3;_0x3cd5d5?await updateAppConfig({..._0x2e7d45,'id':requireAppConfigId(_0x3cd5d5,_0x13207e,_0x1a077d[_0xaf5da2(0x91)])}):await createAppConfig(_0x2e7d45);});const _0x14e698=await withAppConfigApiBoundary(_0x3f3cd3(0x87),{'appCode':_0x1a077d['appCode'],'key':_0x13207e},()=>getAppConfigByKey(_0x1a077d[_0x3f3cd3(0x91)],_0x13207e)),_0x14047f=_0x14e698?projectAppConfig(_0x14e698):plannedAppConfig({'appCode':_0x1a077d[_0x3f3cd3(0x91)],'key':_0x13207e,'tags':_0x2e7d45[_0x3f3cd3(0x8b)],'hasValue':_0x4c3d67!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x5330c6,'appCode':_0x1a077d[_0x3f3cd3(0x91)],'key':_0x13207e,'before':_0x16d6f8,'after':_0x14047f,'dryRun':![],'warnings':_0x3a7539}),'message':(_0x5330c6===_0x3f3cd3(0x98)?_0x3f3cd3(0x95):_0x3f3cd3(0x83))+_0x3f3cd3(0x96)+_0x13207e};}};function requireAppConfigId(_0x10632c,_0x290df7,_0x3453f7){const _0x176bc1=a28_0x563009;if(typeof _0x10632c['id']===_0x176bc1(0x99)&&Number['isFinite'](_0x10632c['id'])&&_0x10632c['id']>0x0)return _0x10632c['id'];throw CliErrors[_0x176bc1(0x8a)]('App\x20config\x20server\x20id\x20missing\x20for\x20key='+_0x290df7+',\x20appCode='+_0x3453f7);}
1
+ function a28_0x4a10(){const _0x2c78e5=['/smartapi/app-config/create','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','isFinite','app-config','number','set','create','tags','25VgANGo','get','5250160FcdPvI','string','77255YfHkQd','apiError','update','/smartapi/app-config/update','App\x20config\x20server\x20id\x20missing\x20for\x20key=','appCode','16693160EwvqQR','38001UlhWqt','7792IvTtxE','5532156vSDDpK','84IgmINv','\x20app\x20config\x20','write','307302yIExgm','14YqcXZm'];a28_0x4a10=function(){return _0x2c78e5;};return a28_0x4a10();}const a28_0x4012f8=a28_0x5278;function a28_0x5278(_0x29252f,_0x56c4b2){_0x29252f=_0x29252f-0x188;const _0x4a105e=a28_0x4a10();let _0x5278a6=_0x4a105e[_0x29252f];return _0x5278a6;}(function(_0x19a17f,_0x12a95c){const _0x4f9e33=a28_0x5278,_0x4e68c1=_0x19a17f();while(!![]){try{const _0x3ad40f=parseInt(_0x4f9e33(0x18e))/0x1*(-parseInt(_0x4f9e33(0x19c))/0x2)+-parseInt(_0x4f9e33(0x195))/0x3+-parseInt(_0x4f9e33(0x18c))/0x4+-parseInt(_0x4f9e33(0x18a))/0x5*(-parseInt(_0x4f9e33(0x19b))/0x6)+parseInt(_0x4f9e33(0x198))/0x7*(parseInt(_0x4f9e33(0x196))/0x8)+parseInt(_0x4f9e33(0x197))/0x9+parseInt(_0x4f9e33(0x194))/0xa;if(_0x3ad40f===_0x12a95c)break;else _0x4e68c1['push'](_0x4e68c1['shift']());}catch(_0x179b59){_0x4e68c1['push'](_0x4e68c1['shift']());}}}(a28_0x4a10,0xa76d5));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=a28_0x4012f8(0x19d),UPDATE_PATH=a28_0x4012f8(0x191);export const appConfigSet={'service':a28_0x4012f8(0x1a0),'command':a28_0x4012f8(0x1a2),'description':a28_0x4012f8(0x19e),'risk':a28_0x4012f8(0x19a),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':'file','type':a28_0x4012f8(0x18d),'description':'Read\x20config\x20value\x20from\x20file'}],async 'validate'(_0x5987c8){readKeyArg(_0x5987c8),readOptionalTags(_0x5987c8),assertSingleValueSource(_0x5987c8);},async 'dryRun'(_0x5a0abf){const _0x44334d=a28_0x4012f8,_0x1a256b=readKeyArg(_0x5a0abf),_0xa82af6=readOptionalTags(_0x5a0abf),_0x303da4=assertSingleValueSource(_0x5a0abf);await assertValueSourceReadable(_0x303da4);const _0x5d6c30=await withAppConfigApiBoundary(_0x44334d(0x18b),{'appCode':_0x5a0abf['appCode'],'key':_0x1a256b},()=>getAppConfigByKey(_0x5a0abf[_0x44334d(0x193)],_0x1a256b)),_0x105f12=_0x5d6c30?_0x44334d(0x190):_0x44334d(0x188),_0x5a6f35=_0x5d6c30?projectAppConfig(_0x5d6c30):null,_0x98eae6=plannedAppConfig({'appCode':_0x5a0abf[_0x44334d(0x193)],'key':_0x1a256b,'tags':_0xa82af6??_0x5d6c30?.['tags'],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x105f12,'appCode':_0x5a0abf[_0x44334d(0x193)],'key':_0x1a256b,'before':_0x5a6f35,'after':_0x98eae6,'dryRun':!![]}),{'method':'POST','url':_0x105f12===_0x44334d(0x190)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x3a8167){const _0x154da8=a28_0x4012f8,_0x4ee063=readKeyArg(_0x3a8167),_0x1f0368=readOptionalTags(_0x3a8167),_0x2bd07a=await withAppConfigApiBoundary(_0x154da8(0x18b),{'appCode':_0x3a8167[_0x154da8(0x193)],'key':_0x4ee063},()=>getAppConfigByKey(_0x3a8167[_0x154da8(0x193)],_0x4ee063)),_0x655c3c=_0x2bd07a?projectAppConfig(_0x2bd07a):null,_0x25c36e=_0x2bd07a?_0x154da8(0x190):_0x154da8(0x188),{value:_0x2bddf6,warnings:_0x2d1ed0}=await readAppConfigValue(_0x3a8167),_0x337a63={'appCode':_0x3a8167[_0x154da8(0x193)],'key':_0x4ee063,'value':_0x2bddf6,'tags':_0x1f0368??_0x2bd07a?.[_0x154da8(0x189)]??undefined};await withAppConfigApiBoundary(_0x25c36e,{'appCode':_0x3a8167['appCode'],'key':_0x4ee063},async()=>{const _0x3a933e=_0x154da8;_0x2bd07a?await updateAppConfig({..._0x337a63,'id':requireAppConfigId(_0x2bd07a,_0x4ee063,_0x3a8167[_0x3a933e(0x193)])}):await createAppConfig(_0x337a63);});const _0x201d9d=await withAppConfigApiBoundary('get',{'appCode':_0x3a8167[_0x154da8(0x193)],'key':_0x4ee063},()=>getAppConfigByKey(_0x3a8167[_0x154da8(0x193)],_0x4ee063)),_0x5efa01=_0x201d9d?projectAppConfig(_0x201d9d):plannedAppConfig({'appCode':_0x3a8167[_0x154da8(0x193)],'key':_0x4ee063,'tags':_0x337a63[_0x154da8(0x189)],'hasValue':_0x2bddf6!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x25c36e,'appCode':_0x3a8167['appCode'],'key':_0x4ee063,'before':_0x655c3c,'after':_0x5efa01,'dryRun':![],'warnings':_0x2d1ed0}),'message':(_0x25c36e===_0x154da8(0x190)?'Updated':'Created')+_0x154da8(0x199)+_0x4ee063};}};function requireAppConfigId(_0x196723,_0x1b9ea4,_0x36a6b0){const _0x5e8726=a28_0x4012f8;if(typeof _0x196723['id']===_0x5e8726(0x1a1)&&Number[_0x5e8726(0x19f)](_0x196723['id'])&&_0x196723['id']>0x0)return _0x196723['id'];throw CliErrors[_0x5e8726(0x18f)](_0x5e8726(0x192)+_0x1b9ea4+',\x20appCode='+_0x36a6b0);}
@@ -1 +1 @@
1
- const a29_0x27feca=a29_0x3166;(function(_0x33d0b2,_0x400a1c){const _0x500b3b=a29_0x3166,_0x5770ec=_0x33d0b2();while(!![]){try{const _0x7d1fd6=parseInt(_0x500b3b(0x1e2))/0x1+-parseInt(_0x500b3b(0x212))/0x2+-parseInt(_0x500b3b(0x1eb))/0x3*(parseInt(_0x500b3b(0x207))/0x4)+-parseInt(_0x500b3b(0x1f3))/0x5*(-parseInt(_0x500b3b(0x208))/0x6)+parseInt(_0x500b3b(0x1db))/0x7+-parseInt(_0x500b3b(0x1e5))/0x8*(-parseInt(_0x500b3b(0x1fc))/0x9)+-parseInt(_0x500b3b(0x20c))/0xa;if(_0x7d1fd6===_0x400a1c)break;else _0x5770ec['push'](_0x5770ec['shift']());}catch(_0x43eb67){_0x5770ec['push'](_0x5770ec['shift']());}}}(a29_0x4f65,0x72730));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x27feca(0x1e9),'description':a29_0x27feca(0x1e6),'required':!![]};export const VALUE_ARG={'name':'value','description':a29_0x27feca(0x1d4),'required':![]};export const TAGS_FLAG={'name':a29_0x27feca(0x1e4),'type':a29_0x27feca(0x1de),'description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':a29_0x27feca(0x1f0),'type':a29_0x27feca(0x210),'description':a29_0x27feca(0x1ea),'default':![]};export const FROM_ENV_FLAG={'name':a29_0x27feca(0x213),'type':a29_0x27feca(0x1de),'description':a29_0x27feca(0x1ef)};export const REVEAL_FLAG={'name':a29_0x27feca(0x216),'type':a29_0x27feca(0x210),'description':a29_0x27feca(0x1f6),'default':![]};export function readKeyArg(_0x367f34){const _0x55db38=_0x367f34['args'][0x0]?.['trim']()??'';return validateKey(_0x55db38),_0x55db38;}export function readOptionalTags(_0x396ab9){const _0x46bda5=a29_0x27feca,_0x465fac=_0x396ab9[_0x46bda5(0x1d6)](_0x46bda5(0x1e4))[_0x46bda5(0x1d7)]();if(!_0x465fac)return undefined;if(_0x465fac['length']>0x20)throw CliErrors[_0x46bda5(0x20b)](_0x46bda5(0x206));return _0x465fac;}export function validateKey(_0x89fe00){const _0x5cc0f9=a29_0x27feca;if(!_0x89fe00)throw CliErrors[_0x5cc0f9(0x20b)](_0x5cc0f9(0x1fd));if(_0x89fe00[_0x5cc0f9(0x1fa)]>0x100)throw CliErrors['validation'](_0x5cc0f9(0x1f5));}export function projectAppConfig(_0x173f98,_0x2a8540){const _0xd6e293=a29_0x27feca,_0x37800d=_0x173f98[_0xd6e293(0x203)]!==undefined&&_0x173f98[_0xd6e293(0x203)]!==null&&_0x173f98['value']!=='',_0x43438a={'appCode':_0x173f98[_0xd6e293(0x211)],'key':_0x173f98[_0xd6e293(0x1e9)],'tags':_0x173f98[_0xd6e293(0x1e4)]??undefined,'hasValue':_0x37800d,'valueRedacted':_0x37800d&&!_0x2a8540?.['reveal'],'gmtCreate':_0x173f98[_0xd6e293(0x20a)],'gmtModified':_0x173f98[_0xd6e293(0x1ed)]};return _0x2a8540?.[_0xd6e293(0x216)]&&(_0x43438a[_0xd6e293(0x203)]=_0x173f98[_0xd6e293(0x203)]??'',_0x43438a[_0xd6e293(0x1ec)]=![]),_0x43438a;}export function plannedAppConfig(_0x1558a2){const _0x4ddc04=a29_0x27feca,_0x41b0d0=_0x1558a2[_0x4ddc04(0x205)]??!![];return{'appCode':_0x1558a2['appCode'],'key':_0x1558a2[_0x4ddc04(0x1e9)],'tags':_0x1558a2[_0x4ddc04(0x1e4)]??undefined,'hasValue':_0x41b0d0,'valueRedacted':_0x41b0d0};}export function buildMutationData(_0x1695a3){const _0x351e73=a29_0x27feca;return{'operation':_0x1695a3[_0x351e73(0x1e3)],'selector':{'appCode':_0x1695a3['appCode'],'key':_0x1695a3['key']},'before':_0x1695a3['before'],'after':_0x1695a3[_0x351e73(0x1fb)],'dryRun':_0x1695a3[_0x351e73(0x1d5)],'warnings':_0x1695a3[_0x351e73(0x215)]??[]};}function a29_0x4f65(){const _0x570b56=['Missing\x20app-config\x20key.','once','env','appCode:\x20','method','name','value','key:\x20','hasValue','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','20mqlIwJ','3433596caGmcr','Environment\x20variable\x20is\x20not\x20set:\x20','gmtCreate','validation','438050ZETcmA','setEncoding','end','path','boolean','appCode','1700396YkPdVj','from-env','file','warnings','reveal','data','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','dryRun','str','trim','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','App\x20config\x20value\x20source\x20is\x20ambiguous.','args','4463830nJvxbu','argument','slice','string','kind','value\x20is\x20redacted','bool','121035QyuXmi','operation','tags','1648808DTyKav','Runtime\x20app-config\x20key','error','push','key','Read\x20config\x20value\x20from\x20stdin','104583tOwESA','valueRedacted','gmtModified','\x20app\x20config.','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','stdin','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','Value\x20file\x20is\x20not\x20readable:\x20','5pOXNmB','flag','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','utf8','apiError','defineProperties','length','after','9dWFRNo'];a29_0x4f65=function(){return _0x570b56;};return a29_0x4f65();}export async function withAppConfigApiBoundary(_0xabdf88,_0x45011e,_0x571cb8){const _0x252e8c=a29_0x27feca;try{return await _0x571cb8();}catch{const _0x5662dd=[_0x252e8c(0x200)+_0x45011e[_0x252e8c(0x211)]];if(_0x45011e[_0x252e8c(0x1e9)])_0x5662dd['push'](_0x252e8c(0x204)+_0x45011e['key']);_0x5662dd['push'](_0x252e8c(0x1e0));throw CliErrors[_0x252e8c(0x1f8)]('Failed\x20to\x20'+_0xabdf88+_0x252e8c(0x1ee),_0x5662dd['join'](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x4a9be9,_0x555e11){const _0x1920d5=a29_0x27feca;return Object[_0x1920d5(0x1f9)](_0x4a9be9,{'method':{'value':_0x555e11[_0x1920d5(0x201)],'enumerable':![]},'url':{'value':_0x555e11['url'],'enumerable':![]}});}export function assertSingleValueSource(_0x195948){const _0x4eea99=a29_0x27feca,_0x5b3dba=[];_0x195948[_0x4eea99(0x1da)][_0x4eea99(0x1fa)]>0x1&&_0x5b3dba[_0x4eea99(0x1e8)]({'kind':_0x4eea99(0x1dc),'value':_0x195948[_0x4eea99(0x1da)][_0x4eea99(0x1dd)](0x1)['join']('\x20')});const _0x2a8703=_0x195948[_0x4eea99(0x1f4)](_0x4eea99(0x203));_0x2a8703!==undefined&&_0x2a8703!==null&&_0x5b3dba[_0x4eea99(0x1e8)]({'kind':_0x4eea99(0x1dc),'value':String(_0x2a8703)});_0x195948[_0x4eea99(0x1e1)]('stdin')&&_0x5b3dba['push']({'kind':_0x4eea99(0x1f0)});const _0x3d1f43=_0x195948[_0x4eea99(0x1d6)](_0x4eea99(0x213))[_0x4eea99(0x1d7)]();_0x3d1f43&&_0x5b3dba['push']({'kind':'env','name':_0x3d1f43});const _0x36cc74=_0x195948[_0x4eea99(0x1d6)](_0x4eea99(0x214))[_0x4eea99(0x1d7)]();_0x36cc74&&_0x5b3dba[_0x4eea99(0x1e8)]({'kind':_0x4eea99(0x214),'path':_0x36cc74});if(_0x5b3dba[_0x4eea99(0x1fa)]===0x0)throw CliErrors[_0x4eea99(0x20b)]('Missing\x20app-config\x20value\x20source.','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.');if(_0x5b3dba[_0x4eea99(0x1fa)]>0x1)throw CliErrors[_0x4eea99(0x20b)](_0x4eea99(0x1d9),_0x4eea99(0x1f1));return _0x5b3dba[0x0];}export async function assertValueSourceReadable(_0x2a0380){const _0x19373a=a29_0x27feca;if(_0x2a0380[_0x19373a(0x1df)]==='env'&&!(_0x2a0380['name']in process.env))throw CliErrors[_0x19373a(0x20b)](_0x19373a(0x209)+_0x2a0380[_0x19373a(0x202)]);if(_0x2a0380[_0x19373a(0x1df)]===_0x19373a(0x214))try{await access(_0x2a0380[_0x19373a(0x20f)]);}catch{throw CliErrors[_0x19373a(0x20b)](_0x19373a(0x1f2)+_0x2a0380[_0x19373a(0x20f)]);}}function a29_0x3166(_0x141435,_0x27d8aa){_0x141435=_0x141435-0x1d3;const _0x4f657b=a29_0x4f65();let _0x3166e1=_0x4f657b[_0x141435];return _0x3166e1;}export async function readAppConfigValue(_0x5c1bd3){const _0x287388=a29_0x27feca,_0x335c87=assertSingleValueSource(_0x5c1bd3),_0x59716b=[];if(_0x335c87[_0x287388(0x1df)]===_0x287388(0x1dc))return _0x59716b['push'](_0x287388(0x1d8)),{'value':_0x335c87[_0x287388(0x203)]??'','source':_0x335c87['kind'],'warnings':_0x59716b};if(_0x335c87[_0x287388(0x1df)]==='stdin')return{'value':await readStdin(),'source':_0x335c87[_0x287388(0x1df)],'warnings':_0x59716b};if(_0x335c87['kind']===_0x287388(0x1ff)){if(!(_0x335c87['name']in process.env))throw CliErrors['validation'](_0x287388(0x209)+_0x335c87[_0x287388(0x202)]);return{'value':process.env[_0x335c87.name]??'','source':_0x335c87['kind'],'warnings':_0x59716b};}return{'value':await readFile(_0x335c87['path'],_0x287388(0x1f7)),'source':_0x335c87[_0x287388(0x1df)],'warnings':_0x59716b};}function readStdin(){return new Promise((_0x46a0e5,_0x2dd73a)=>{const _0x463013=a29_0x3166;let _0x4f1238='';process[_0x463013(0x1f0)][_0x463013(0x20d)](_0x463013(0x1f7)),process[_0x463013(0x1f0)]['on'](_0x463013(0x1d3),_0x38fda6=>{_0x4f1238+=_0x38fda6;}),process[_0x463013(0x1f0)][_0x463013(0x1fe)](_0x463013(0x20e),()=>_0x46a0e5(_0x4f1238)),process[_0x463013(0x1f0)][_0x463013(0x1fe)](_0x463013(0x1e7),_0x2dd73a);});}
1
+ const a29_0x25d7b0=a29_0x1eb6;(function(_0x26bac2,_0x41d2eb){const _0x38c13b=a29_0x1eb6,_0x29470d=_0x26bac2();while(!![]){try{const _0x334cf0=parseInt(_0x38c13b(0x1ab))/0x1+-parseInt(_0x38c13b(0x1b6))/0x2+parseInt(_0x38c13b(0x1a2))/0x3*(-parseInt(_0x38c13b(0x188))/0x4)+-parseInt(_0x38c13b(0x18e))/0x5*(-parseInt(_0x38c13b(0x1b0))/0x6)+-parseInt(_0x38c13b(0x19a))/0x7*(parseInt(_0x38c13b(0x1b4))/0x8)+parseInt(_0x38c13b(0x1b8))/0x9+parseInt(_0x38c13b(0x191))/0xa*(parseInt(_0x38c13b(0x1af))/0xb);if(_0x334cf0===_0x41d2eb)break;else _0x29470d['push'](_0x29470d['shift']());}catch(_0x2d2d61){_0x29470d['push'](_0x29470d['shift']());}}}(a29_0x2150,0x92b6f));function a29_0x2150(){const _0x3ee100=['join','hasValue','args','gmtModified','21469Bcpuic','dryRun','kind','App\x20config\x20value\x20source\x20is\x20ambiguous.','boolean','file','Config\x20tags\x20for\x20filtering/display\x20metadata','once','45078ReVbin','path','apiError','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','Missing\x20app-config\x20key.','key:\x20','value','str','key','162361QjVOIR','validation','Environment\x20variable\x20is\x20not\x20set:\x20','appCode','12158707jiOXqh','657894bvDYYP','name','Read\x20config\x20value\x20from\x20stdin','from-env','584RmxEth','error','1547100RiaDVz','bool','5911119ACJotu','method','before','flag','push','utf8','after','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','length','\x20app\x20config.','Value\x20file\x20is\x20not\x20readable:\x20','appCode:\x20','data','setEncoding','116JQFhEH','reveal','operation','value\x20is\x20redacted','slice','valueRedacted','5sqkpUv','tags','env','10PHzpVy','argument','trim','stdin','string'];a29_0x2150=function(){return _0x3ee100;};return a29_0x2150();}import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x25d7b0(0x1aa),'description':'Runtime\x20app-config\x20key','required':!![]};export const VALUE_ARG={'name':'value','description':a29_0x25d7b0(0x1a5),'required':![]};export const TAGS_FLAG={'name':a29_0x25d7b0(0x18f),'type':a29_0x25d7b0(0x195),'description':a29_0x25d7b0(0x1a0)};export const STDIN_FLAG={'name':a29_0x25d7b0(0x194),'type':a29_0x25d7b0(0x19e),'description':a29_0x25d7b0(0x1b2),'default':![]};export const FROM_ENV_FLAG={'name':a29_0x25d7b0(0x1b3),'type':a29_0x25d7b0(0x195),'description':'Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable'};export const REVEAL_FLAG={'name':a29_0x25d7b0(0x189),'type':a29_0x25d7b0(0x19e),'description':a29_0x25d7b0(0x181),'default':![]};function a29_0x1eb6(_0x155f82,_0x3a86cb){_0x155f82=_0x155f82-0x180;const _0x215067=a29_0x2150();let _0x1eb62c=_0x215067[_0x155f82];return _0x1eb62c;}export function readKeyArg(_0x1de529){const _0x3c4e71=a29_0x25d7b0,_0x227e68=_0x1de529[_0x3c4e71(0x198)][0x0]?.[_0x3c4e71(0x193)]()??'';return validateKey(_0x227e68),_0x227e68;}export function readOptionalTags(_0x249fd9){const _0x43ae69=a29_0x25d7b0,_0x573433=_0x249fd9[_0x43ae69(0x1a9)](_0x43ae69(0x18f))[_0x43ae69(0x193)]();if(!_0x573433)return undefined;if(_0x573433['length']>0x20)throw CliErrors['validation']('App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.');return _0x573433;}export function validateKey(_0x408352){const _0x4f3573=a29_0x25d7b0;if(!_0x408352)throw CliErrors[_0x4f3573(0x1ac)](_0x4f3573(0x1a6));if(_0x408352['length']>0x100)throw CliErrors[_0x4f3573(0x1ac)]('App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.');}export function projectAppConfig(_0x40c420,_0x30dd38){const _0x2f49d0=a29_0x25d7b0,_0x1a4c27=_0x40c420[_0x2f49d0(0x1a8)]!==undefined&&_0x40c420[_0x2f49d0(0x1a8)]!==null&&_0x40c420['value']!=='',_0x52ea63={'appCode':_0x40c420[_0x2f49d0(0x1ae)],'key':_0x40c420[_0x2f49d0(0x1aa)],'tags':_0x40c420[_0x2f49d0(0x18f)]??undefined,'hasValue':_0x1a4c27,'valueRedacted':_0x1a4c27&&!_0x30dd38?.['reveal'],'gmtCreate':_0x40c420['gmtCreate'],'gmtModified':_0x40c420[_0x2f49d0(0x199)]};return _0x30dd38?.['reveal']&&(_0x52ea63[_0x2f49d0(0x1a8)]=_0x40c420[_0x2f49d0(0x1a8)]??'',_0x52ea63[_0x2f49d0(0x18d)]=![]),_0x52ea63;}export function plannedAppConfig(_0x238c3c){const _0x1052d3=a29_0x25d7b0,_0x34a285=_0x238c3c[_0x1052d3(0x197)]??!![];return{'appCode':_0x238c3c[_0x1052d3(0x1ae)],'key':_0x238c3c[_0x1052d3(0x1aa)],'tags':_0x238c3c['tags']??undefined,'hasValue':_0x34a285,'valueRedacted':_0x34a285};}export function buildMutationData(_0x2532e7){const _0x3fbbd5=a29_0x25d7b0;return{'operation':_0x2532e7[_0x3fbbd5(0x18a)],'selector':{'appCode':_0x2532e7['appCode'],'key':_0x2532e7['key']},'before':_0x2532e7[_0x3fbbd5(0x1ba)],'after':_0x2532e7[_0x3fbbd5(0x180)],'dryRun':_0x2532e7[_0x3fbbd5(0x19b)],'warnings':_0x2532e7['warnings']??[]};}export async function withAppConfigApiBoundary(_0x55a7fb,_0x332851,_0x2c42d9){const _0x338bf4=a29_0x25d7b0;try{return await _0x2c42d9();}catch{const _0x3d0d3a=[_0x338bf4(0x185)+_0x332851[_0x338bf4(0x1ae)]];if(_0x332851['key'])_0x3d0d3a['push'](_0x338bf4(0x1a7)+_0x332851[_0x338bf4(0x1aa)]);_0x3d0d3a['push'](_0x338bf4(0x18b));throw CliErrors[_0x338bf4(0x1a4)]('Failed\x20to\x20'+_0x55a7fb+_0x338bf4(0x183),_0x3d0d3a[_0x338bf4(0x196)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x7b5581,_0x532f23){const _0x416a56=a29_0x25d7b0;return Object['defineProperties'](_0x7b5581,{'method':{'value':_0x532f23[_0x416a56(0x1b9)],'enumerable':![]},'url':{'value':_0x532f23['url'],'enumerable':![]}});}export function assertSingleValueSource(_0x4b540d){const _0x1ed5e7=a29_0x25d7b0,_0x1088a2=[];_0x4b540d[_0x1ed5e7(0x198)][_0x1ed5e7(0x182)]>0x1&&_0x1088a2['push']({'kind':_0x1ed5e7(0x192),'value':_0x4b540d[_0x1ed5e7(0x198)][_0x1ed5e7(0x18c)](0x1)['join']('\x20')});const _0x1b6437=_0x4b540d[_0x1ed5e7(0x1bb)](_0x1ed5e7(0x1a8));_0x1b6437!==undefined&&_0x1b6437!==null&&_0x1088a2['push']({'kind':_0x1ed5e7(0x192),'value':String(_0x1b6437)});_0x4b540d[_0x1ed5e7(0x1b7)](_0x1ed5e7(0x194))&&_0x1088a2[_0x1ed5e7(0x1bc)]({'kind':_0x1ed5e7(0x194)});const _0x3e7227=_0x4b540d['str'](_0x1ed5e7(0x1b3))[_0x1ed5e7(0x193)]();_0x3e7227&&_0x1088a2[_0x1ed5e7(0x1bc)]({'kind':_0x1ed5e7(0x190),'name':_0x3e7227});const _0x3151be=_0x4b540d['str'](_0x1ed5e7(0x19f))['trim']();_0x3151be&&_0x1088a2['push']({'kind':_0x1ed5e7(0x19f),'path':_0x3151be});if(_0x1088a2['length']===0x0)throw CliErrors['validation']('Missing\x20app-config\x20value\x20source.','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.');if(_0x1088a2['length']>0x1)throw CliErrors['validation'](_0x1ed5e7(0x19d),'Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.');return _0x1088a2[0x0];}export async function assertValueSourceReadable(_0x1d3700){const _0x2e0fdc=a29_0x25d7b0;if(_0x1d3700[_0x2e0fdc(0x19c)]===_0x2e0fdc(0x190)&&!(_0x1d3700['name']in process.env))throw CliErrors[_0x2e0fdc(0x1ac)](_0x2e0fdc(0x1ad)+_0x1d3700[_0x2e0fdc(0x1b1)]);if(_0x1d3700['kind']===_0x2e0fdc(0x19f))try{await access(_0x1d3700[_0x2e0fdc(0x1a3)]);}catch{throw CliErrors[_0x2e0fdc(0x1ac)](_0x2e0fdc(0x184)+_0x1d3700[_0x2e0fdc(0x1a3)]);}}export async function readAppConfigValue(_0x23c1b2){const _0x5af12d=a29_0x25d7b0,_0x2004af=assertSingleValueSource(_0x23c1b2),_0x1bee15=[];if(_0x2004af[_0x5af12d(0x19c)]===_0x5af12d(0x192))return _0x1bee15['push']('Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.'),{'value':_0x2004af['value']??'','source':_0x2004af[_0x5af12d(0x19c)],'warnings':_0x1bee15};if(_0x2004af[_0x5af12d(0x19c)]===_0x5af12d(0x194))return{'value':await readStdin(),'source':_0x2004af[_0x5af12d(0x19c)],'warnings':_0x1bee15};if(_0x2004af['kind']===_0x5af12d(0x190)){if(!(_0x2004af[_0x5af12d(0x1b1)]in process.env))throw CliErrors[_0x5af12d(0x1ac)](_0x5af12d(0x1ad)+_0x2004af[_0x5af12d(0x1b1)]);return{'value':process.env[_0x2004af.name]??'','source':_0x2004af[_0x5af12d(0x19c)],'warnings':_0x1bee15};}return{'value':await readFile(_0x2004af[_0x5af12d(0x1a3)],_0x5af12d(0x1bd)),'source':_0x2004af[_0x5af12d(0x19c)],'warnings':_0x1bee15};}function readStdin(){return new Promise((_0x370081,_0x1232b1)=>{const _0x850169=a29_0x1eb6;let _0x76f601='';process[_0x850169(0x194)][_0x850169(0x187)](_0x850169(0x1bd)),process[_0x850169(0x194)]['on'](_0x850169(0x186),_0x3783d8=>{_0x76f601+=_0x3783d8;}),process[_0x850169(0x194)][_0x850169(0x1a1)]('end',()=>_0x370081(_0x76f601)),process[_0x850169(0x194)]['once'](_0x850169(0x1b5),_0x1232b1);});}
@@ -1 +1 @@
1
- function a30_0x2a99(){const _0x22c3a3=['login','../../auth/auth-server-ui.js','6tlYldy','4fyTTBp','✓\x20Logged\x20out','1358319KGutzB','log','nonInteractive','48744lcYMPY','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','27fmZvoG','Login\x20via\x20browser','boolean','Clear\x20login\x20session','675035aiaASn','yes','write','bool','466945AZXCln','2931334GHiyKB','778910dCcmyj','840758SrBGcv','auth'];a30_0x2a99=function(){return _0x22c3a3;};return a30_0x2a99();}const a30_0x5f08ef=a30_0x17b7;(function(_0xc9e6fb,_0x2fbf17){const _0x3e8a90=a30_0x17b7,_0x35f0bc=_0xc9e6fb();while(!![]){try{const _0x19a689=parseInt(_0x3e8a90(0x13b))/0x1+parseInt(_0x3e8a90(0x13e))/0x2+parseInt(_0x3e8a90(0x12e))/0x3*(-parseInt(_0x3e8a90(0x12c))/0x4)+parseInt(_0x3e8a90(0x137))/0x5+parseInt(_0x3e8a90(0x12b))/0x6*(-parseInt(_0x3e8a90(0x13c))/0x7)+-parseInt(_0x3e8a90(0x131))/0x8*(-parseInt(_0x3e8a90(0x133))/0x9)+parseInt(_0x3e8a90(0x13d))/0xa;if(_0x19a689===_0x2fbf17)break;else _0x35f0bc['push'](_0x35f0bc['shift']());}catch(_0x4572ea){_0x35f0bc['push'](_0x35f0bc['shift']());}}}(a30_0x2a99,0x3c4b6));function a30_0x17b7(_0x48f7fd,_0xb506bf){_0x48f7fd=_0x48f7fd-0x12b;const _0x2a9936=a30_0x2a99();let _0x17b7f6=_0x2a9936[_0x48f7fd];return _0x17b7f6;}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':'auth','command':a30_0x5f08ef(0x140),'description':a30_0x5f08ef(0x134),'risk':a30_0x5f08ef(0x139),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x5f08ef(0x138),'type':a30_0x5f08ef(0x135),'description':a30_0x5f08ef(0x132),'default':![]}],async 'execute'(_0xc0a1cf){const _0xdf3519=a30_0x5f08ef,{runAuthServer:_0x40806d}=await import(_0xdf3519(0x141));return await _0x40806d({'autoYes':_0xc0a1cf[_0xdf3519(0x13a)](_0xdf3519(0x138)),'nonInteractive':_0xc0a1cf[_0xdf3519(0x130)]}),{'ok':!![]};}},{'service':a30_0x5f08ef(0x13f),'command':'logout','description':a30_0x5f08ef(0x136),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x41c94e){const _0x3c5242=a30_0x5f08ef;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3c5242(0x12f)](_0x3c5242(0x12d))):console[_0x3c5242(0x12f)]('!\x20Not\x20logged\x20in'),{'ok':!![]};}}];
1
+ const a30_0x39482b=a30_0x5493;(function(_0x5bad60,_0x5c4be7){const _0x1e640f=a30_0x5493,_0x331812=_0x5bad60();while(!![]){try{const _0x13bb74=parseInt(_0x1e640f(0x1a1))/0x1+parseInt(_0x1e640f(0x199))/0x2*(parseInt(_0x1e640f(0x1ac))/0x3)+parseInt(_0x1e640f(0x19b))/0x4*(-parseInt(_0x1e640f(0x1a7))/0x5)+-parseInt(_0x1e640f(0x197))/0x6*(parseInt(_0x1e640f(0x1a8))/0x7)+-parseInt(_0x1e640f(0x1a3))/0x8+-parseInt(_0x1e640f(0x19a))/0x9*(-parseInt(_0x1e640f(0x1a5))/0xa)+-parseInt(_0x1e640f(0x1a6))/0xb*(parseInt(_0x1e640f(0x1aa))/0xc);if(_0x13bb74===_0x5c4be7)break;else _0x331812['push'](_0x331812['shift']());}catch(_0x1773d7){_0x331812['push'](_0x331812['shift']());}}}(a30_0x465c,0x33c70));import{unlinkSync,existsSync}from'node:fs';function a30_0x5493(_0xadddfc,_0x455cf4){_0xadddfc=_0xadddfc-0x195;const _0x465cb8=a30_0x465c();let _0x5493d6=_0x465cb8[_0xadddfc];return _0x5493d6;}function a30_0x465c(){const _0x996779=['63IrGkzt','!\x20Not\x20logged\x20in','20820abwJeJ','login','573PqJWki','Login\x20via\x20browser','✓\x20Logged\x20out','logout','1908RqmDOj','bool','3946wWASaY','568791PxRBXo','353032UfDSRz','Clear\x20login\x20session','boolean','auth','write','yes','300435XkZenU','log','2885440tMvTBL','../../auth/auth-server-ui.js','30qLEKvs','1287vMdFCb','5ypQxUu'];a30_0x465c=function(){return _0x996779;};return a30_0x465c();}import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':'auth','command':a30_0x39482b(0x1ab),'description':a30_0x39482b(0x1ad),'risk':a30_0x39482b(0x19f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x39482b(0x1a0),'type':a30_0x39482b(0x19d),'description':'Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','default':![]}],async 'execute'(_0x1acf8e){const _0x1a917b=a30_0x39482b,{runAuthServer:_0xd804d7}=await import(_0x1a917b(0x1a4));return await _0xd804d7({'autoYes':_0x1acf8e[_0x1a917b(0x198)](_0x1a917b(0x1a0)),'nonInteractive':_0x1acf8e['nonInteractive']}),{'ok':!![]};}},{'service':a30_0x39482b(0x19e),'command':a30_0x39482b(0x196),'description':a30_0x39482b(0x19c),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x269655){const _0x139971=a30_0x39482b;return existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0x139971(0x195))):console[_0x139971(0x1a2)](_0x139971(0x1a9)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a31_0x21d038=a31_0x1fff;(function(_0x2cefb7,_0x2c3e41){const _0x1b375f=a31_0x1fff,_0x22ba77=_0x2cefb7();while(!![]){try{const _0x25f060=parseInt(_0x1b375f(0x125))/0x1*(-parseInt(_0x1b375f(0x134))/0x2)+-parseInt(_0x1b375f(0x151))/0x3*(-parseInt(_0x1b375f(0x143))/0x4)+-parseInt(_0x1b375f(0x144))/0x5*(parseInt(_0x1b375f(0x135))/0x6)+-parseInt(_0x1b375f(0x123))/0x7+parseInt(_0x1b375f(0x158))/0x8*(-parseInt(_0x1b375f(0x16a))/0x9)+parseInt(_0x1b375f(0x118))/0xa+-parseInt(_0x1b375f(0x142))/0xb*(-parseInt(_0x1b375f(0x12c))/0xc);if(_0x25f060===_0x2c3e41)break;else _0x22ba77['push'](_0x22ba77['shift']());}catch(_0x4d26cc){_0x22ba77['push'](_0x22ba77['shift']());}}}(a31_0x575a,0x1ad08));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';import{fileExists}from'../../core/bff/file-system.js';function a31_0x575a(){const _0x3b8475=['927XsvNug','/ENDPOINT/','当前请求参数','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','type','Available:\x20','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','Invalid\x20dataset\x20selection.','Select\x20operation\x20type:','Select\x20trigger\x20node:','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','\x0a\x20*\x20[参数字段]\x20按实际请求体为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20HTTP\x20请求体参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充业务返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','trim','\x0a\x20*\x20[平台配置]\x20','after','No\x20datasets\x20found\x20for\x20this\x20app.','修改后的请求参数','Created\x20','HOOK\x20requires\x20alias/operation/node\x20options.','stdin','read','\x22.\x20','datasetId','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','code','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','string','.js','Alias\x20\x22','208130FpOMmr','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','No\x20api.ts\x20found.\x20Run\x20`','HOOK','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','appCode','/COMMON/','validation','File\x20already\x20exists:\x20','900676WYGejn','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','2oWjQrK','\x22\x20not\x20found.\x20','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','.js\x0a\x20*\x20[触发节点]\x20','datasetcode','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','entries','102636JdrxbJ','write','Available\x20aliases:\x20','Dataset\x20not\x20found\x20for\x20code\x20\x22','Script\x20type','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','apiDir','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','158564dhttCF','6PhIvcB','/HOOK/','nonInteractive','utf8','datasetCode','name','operation-type','keys','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','find','\x20api\x20pull`\x20to\x20refresh.','stderr','description','473roWDrf','372yzlCGY','399790IFshax','isInteger','join','functionNode','Function\x20name\x20(valid\x20JS\x20identifier)','ENDPOINT','function-node','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','bff','COMMON','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','\x22\x20not\x20found\x20for\x20dataset\x20','scriptsRootDir','3753kyywRA','question','UNKNOWN','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','operationType','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','includes','2168cHzxEk','map','parseInt',']\x20(','before','str','/**\x0a\x20*\x20','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','length','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','Operation\x20type\x20\x22','修改后的响应结果','/data/dataset/','当前响应结果','Operation\x20type\x20(HOOK\x20only)','alias','Select\x20dataset:','Script\x20description'];a31_0x575a=function(){return _0x3b8475;};return a31_0x575a();}import{DEFAULT_BFF_SCRIPT_DESCRIPTION,isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';function a31_0x1fff(_0x3789bb,_0x559f52){_0x3789bb=_0x3789bb-0x10c;const _0x575abc=a31_0x575a();let _0x1ffff1=_0x575abc[_0x3789bb];return _0x1ffff1;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getAppBaseUrl}from'../../constant/domain.js';export const bffCreate={'service':a31_0x21d038(0x14c),'command':'create','description':'Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','risk':a31_0x21d038(0x10f),'flags':[{'name':a31_0x21d038(0x16e),'type':a31_0x21d038(0x115),'required':!![],'enum':[a31_0x21d038(0x14d),a31_0x21d038(0x149),a31_0x21d038(0x11b)],'description':a31_0x21d038(0x130)},{'name':a31_0x21d038(0x13a),'type':a31_0x21d038(0x115),'required':!![],'description':a31_0x21d038(0x148)},{'name':'description','type':a31_0x21d038(0x115),'description':a31_0x21d038(0x169)},{'name':'alias','type':a31_0x21d038(0x115),'description':a31_0x21d038(0x131)},{'name':a31_0x21d038(0x129),'type':a31_0x21d038(0x115),'description':a31_0x21d038(0x16d)},{'name':a31_0x21d038(0x13b),'type':a31_0x21d038(0x115),'description':a31_0x21d038(0x166)},{'name':a31_0x21d038(0x14a),'type':a31_0x21d038(0x115),'description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a31_0x21d038(0x15c),a31_0x21d038(0x178)]}],async 'validate'(_0x27715d){const _0x3aa98d=a31_0x21d038,_0x573e48=_0x27715d['str'](_0x3aa98d(0x13a));if(!isValidBffFunctionName(_0x573e48))throw CliErrors[_0x3aa98d(0x121)]('Invalid\x20function\x20name\x20\x22'+_0x573e48+_0x3aa98d(0x12a));},async 'execute'(_0x339af9){const _0x1fd0ec=a31_0x21d038,_0xbf8f5a=loadBffProjectConfig(_0x339af9['appCode']),_0x291612=_0x339af9['str'](_0x1fd0ec(0x16e)),_0x384d3a=_0x339af9['str'](_0x1fd0ec(0x13a)),_0x26643b=_0x339af9[_0x1fd0ec(0x15d)](_0x1fd0ec(0x141))||undefined,_0xba5820=_0x291612===_0x1fd0ec(0x11b)?await resolveHookOptions(_0xbf8f5a,_0x339af9):undefined,_0x4f54be=buildFilePath(_0xbf8f5a,_0x291612,_0x384d3a,_0xba5820);if(await fileExists(_0x4f54be))throw CliErrors[_0x1fd0ec(0x121)](_0x1fd0ec(0x122)+_0x4f54be);await mkdir(dirname(_0x4f54be),{'recursive':!![]});const _0x2c242f=generateTemplate(_0x291612,_0x384d3a,_0x339af9[_0x1fd0ec(0x11f)],_0x26643b,_0xba5820);await writeFile(_0x4f54be,_0x2c242f,_0x1fd0ec(0x138));const _0x38089a={'type':_0x291612,'name':_0x384d3a,'path':_0x4f54be};if(_0x26643b)_0x38089a['description']=_0x26643b;if(_0xba5820){if(_0xba5820[_0x1fd0ec(0x167)])_0x38089a[_0x1fd0ec(0x167)]=_0xba5820[_0x1fd0ec(0x167)];_0x38089a[_0x1fd0ec(0x139)]=_0xba5820['datasetCode'],_0x38089a[_0x1fd0ec(0x155)]=_0xba5820['operationType'],_0x38089a[_0x1fd0ec(0x147)]=_0xba5820[_0x1fd0ec(0x147)];}return{'ok':!![],'data':_0x38089a,'message':_0x1fd0ec(0x10c)+_0x291612+'\x20function:\x20'+_0x384d3a};}};async function resolveHookOptions(_0x453e44,_0x32c0a1){const _0x3deb0d=a31_0x21d038,_0x493b02=loadAliasMap(_0x32c0a1['apiDir'],undefined,resolveApiFilePath(_0x32c0a1[_0x3deb0d(0x132)],_0x32c0a1[_0x3deb0d(0x11f)])),_0x377467=_0x493b02[_0x3deb0d(0x160)]>0x0;let _0x566a82,_0x1400b5,_0x3eb280;const _0x6512df=_0x32c0a1['str'](_0x3deb0d(0x167)),_0x4fa310=_0x32c0a1[_0x3deb0d(0x15d)](_0x3deb0d(0x129));if(_0x6512df){const _0x3c81a1=resolveAlias(_0x32c0a1[_0x3deb0d(0x132)],_0x6512df,undefined,resolveApiFilePath(_0x32c0a1['apiDir'],_0x32c0a1[_0x3deb0d(0x11f)]));if(!_0x3c81a1){const _0x1ac483=_0x377467?_0x3deb0d(0x12e)+_0x493b02[_0x3deb0d(0x159)](_0x55b3dd=>_0x55b3dd['alias'])[_0x3deb0d(0x146)](',\x20'):_0x3deb0d(0x11a)+CLI_BIN_NAME+_0x3deb0d(0x11e);throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x117)+_0x6512df+_0x3deb0d(0x126)+_0x1ac483);}_0x566a82=_0x6512df,_0x1400b5=_0x3c81a1;}else{if(_0x4fa310){_0x1400b5=_0x4fa310;const _0x289f32=_0x493b02[_0x3deb0d(0x13e)](_0x523c38=>_0x523c38['datasetCode']===_0x4fa310);_0x566a82=_0x289f32?.['alias'];}else{if(_0x32c0a1[_0x3deb0d(0x137)])throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x174));else{if(_0x377467){const _0x41fe19=_0x493b02[_0x3deb0d(0x159)](_0x8c2f52=>_0x8c2f52[_0x3deb0d(0x167)]+'\x20('+_0x8c2f52['tableName']+')'),_0x5abdbf=await promptSelect(_0x3deb0d(0x168),_0x41fe19),_0x4be192=_0x493b02[_0x5abdbf];if(!_0x4be192)throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x171));_0x566a82=_0x4be192[_0x3deb0d(0x167)],_0x1400b5=_0x4be192[_0x3deb0d(0x139)];}else{const _0x451af6=await listDatasets(_0x32c0a1[_0x3deb0d(0x11f)]);if(_0x451af6[_0x3deb0d(0x160)]===0x0)throw CliErrors['validation'](_0x3deb0d(0x179));const _0x116478=_0x451af6[_0x3deb0d(0x159)](_0x1e36c6=>_0x1e36c6[_0x3deb0d(0x13a)]+'\x20['+(_0x1e36c6['source']??_0x3deb0d(0x153))+_0x3deb0d(0x15b)+_0x1e36c6['code']+')'),_0x556d72=await promptSelect(_0x3deb0d(0x168),_0x116478),_0x299e5e=_0x451af6[_0x556d72];if(!_0x299e5e)throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x171));_0x1400b5=_0x299e5e[_0x3deb0d(0x113)],_0x566a82=undefined;}}}}const _0x741272=await listDatasets(_0x32c0a1[_0x3deb0d(0x11f)]),_0x381a0f=_0x741272[_0x3deb0d(0x13e)](_0x5ea4d1=>_0x5ea4d1[_0x3deb0d(0x113)]===_0x1400b5);if(!_0x381a0f)throw CliErrors['validation'](_0x3deb0d(0x12f)+_0x1400b5+_0x3deb0d(0x110)+(_0x566a82?_0x3deb0d(0x170)+CLI_BIN_NAME+_0x3deb0d(0x13f):''));_0x3eb280=_0x381a0f['id'];const _0x5c0477=_0x566a82??_0x1400b5,_0x402dbd=await listBffDatasetOperations(_0x32c0a1[_0x3deb0d(0x11f)],_0x3eb280),_0xa3ad88=_0x402dbd?Object[_0x3deb0d(0x13c)](_0x402dbd):[];if(_0xa3ad88['length']===0x0)throw CliErrors[_0x3deb0d(0x121)]('No\x20operation\x20types\x20found\x20for\x20dataset\x20'+_0x5c0477+'.');let _0x34bfd1;const _0x17ae03=_0x32c0a1['str'](_0x3deb0d(0x13b));if(_0x17ae03){if(!_0xa3ad88[_0x3deb0d(0x157)](_0x17ae03))throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x162)+_0x17ae03+_0x3deb0d(0x14f)+_0x5c0477+'.\x20'+(_0x3deb0d(0x16f)+_0xa3ad88[_0x3deb0d(0x146)](',\x20')));_0x34bfd1=_0x17ae03;}else{if(_0x32c0a1['nonInteractive'])throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x127));const _0xeddd21=await promptSelect(_0x3deb0d(0x172),_0xa3ad88);_0x34bfd1=_0xa3ad88[_0xeddd21]??_0xa3ad88[0x0];}let _0x4b19c3=normalizeHookFunctionNode(_0x32c0a1[_0x3deb0d(0x15d)](_0x3deb0d(0x14a)));if(!_0x4b19c3){if(_0x32c0a1[_0x3deb0d(0x15d)]('function-node'))throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x15f));if(_0x32c0a1[_0x3deb0d(0x137)])throw CliErrors[_0x3deb0d(0x121)](_0x3deb0d(0x14b));const _0x521438=await promptSelect(_0x3deb0d(0x173),[_0x3deb0d(0x15c),_0x3deb0d(0x178)]);_0x4b19c3=['before',_0x3deb0d(0x178)][_0x521438]??'before';}return{'alias':_0x566a82,'datasetCode':_0x1400b5,'datasetId':_0x3eb280,'operationType':_0x34bfd1,'functionNode':_0x4b19c3};}async function promptSelect(_0x4c5e7d,_0xc65de8){const _0x3b1f30=a31_0x21d038;if(_0xc65de8[_0x3b1f30(0x160)]===0x1)return 0x0;for(const [_0x1e01ea,_0x4c16c6]of _0xc65de8[_0x3b1f30(0x12b)]()){process[_0x3b1f30(0x140)][_0x3b1f30(0x12d)]('\x20\x20'+(_0x1e01ea+0x1)+'.\x20'+_0x4c16c6+'\x0a');}const _0x337541=createInterface({'input':process[_0x3b1f30(0x10e)],'output':process[_0x3b1f30(0x140)]});while(!![]){const _0x5a27b9=await new Promise(_0x361cc3=>{const _0x1c37f4=_0x3b1f30;_0x337541[_0x1c37f4(0x152)](_0x4c5e7d+'\x20',_0x361cc3);}),_0xd68817=Number[_0x3b1f30(0x15a)](_0x5a27b9[_0x3b1f30(0x176)](),0xa);if(Number[_0x3b1f30(0x145)](_0xd68817)&&_0xd68817>=0x1&&_0xd68817<=_0xc65de8[_0x3b1f30(0x160)])return _0x337541['close'](),_0xd68817-0x1;process['stderr'][_0x3b1f30(0x12d)]('\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20'+_0xc65de8[_0x3b1f30(0x160)]+'.\x0a');}}function buildFilePath(_0x587641,_0x4ae4a9,_0x253bf1,_0x20bda3){const _0x3eaa96=a31_0x21d038;if(_0x4ae4a9===_0x3eaa96(0x11b)){if(!_0x20bda3)throw CliErrors[_0x3eaa96(0x121)](_0x3eaa96(0x10d));const _0x2f63ec=_0x20bda3['alias']??_0x20bda3[_0x3eaa96(0x139)];return join(_0x587641[_0x3eaa96(0x150)],_0x3eaa96(0x11b),_0x2f63ec,_0x20bda3[_0x3eaa96(0x155)],_0x20bda3[_0x3eaa96(0x147)],_0x253bf1+_0x3eaa96(0x116));}return join(_0x587641[_0x3eaa96(0x150)],_0x4ae4a9,_0x253bf1+_0x3eaa96(0x116));}export function generateTemplate(_0x828223,_0x3cd909,_0xab55e4,_0x4ab1be,_0x55afa3){const _0x4d2108=a31_0x21d038,_0x279a1d=_0x4ab1be?.[_0x4d2108(0x176)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x1b2f3b=getAppBaseUrl(_0xab55e4),_0x11f458=_0x4d2108(0x154);if(_0x828223===_0x4d2108(0x14d))return _0x4d2108(0x15e)+_0x279a1d+_0x4d2108(0x161)+_0x3cd909+_0x4d2108(0x177)+_0x1b2f3b+_0x4d2108(0x11c)+_0xab55e4+_0x4d2108(0x120)+_0x3cd909+_0x4d2108(0x14e)+_0x3cd909+'\x22,\x20params\x20})\x0a'+_0x11f458+'\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20请求参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x3cd909+_0x4d2108(0x133);if(_0x828223==='ENDPOINT')return'/**\x0a\x20*\x20'+_0x279a1d+_0x4d2108(0x114)+_0x3cd909+'\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/'+_0xab55e4+'/'+_0x3cd909+_0x4d2108(0x177)+_0x1b2f3b+_0x4d2108(0x11c)+_0xab55e4+_0x4d2108(0x16b)+_0x3cd909+'.js\x0a'+_0x11f458+_0x4d2108(0x175)+_0x3cd909+_0x4d2108(0x133);if(!_0x55afa3)throw CliErrors[_0x4d2108(0x121)](_0x4d2108(0x156));const _0x35ce97=_0x55afa3[_0x4d2108(0x167)]??_0x55afa3[_0x4d2108(0x139)],_0x4c2069=_0x55afa3[_0x4d2108(0x147)]===_0x4d2108(0x15c)?_0x4d2108(0x16c):_0x4d2108(0x165),_0x204a18=_0x55afa3[_0x4d2108(0x147)]===_0x4d2108(0x15c)?_0x4d2108(0x17a):_0x4d2108(0x163);return'/**\x0a\x20*\x20'+_0x279a1d+_0x4d2108(0x119)+_0x3cd909+_0x4d2108(0x124)+_0xab55e4+'/'+_0x55afa3[_0x4d2108(0x139)]+'/'+_0x55afa3['operationType']+_0x4d2108(0x177)+_0x1b2f3b+_0x4d2108(0x164)+_0x55afa3[_0x4d2108(0x111)]+_0x4d2108(0x112)+_0xab55e4+_0x4d2108(0x136)+_0x35ce97+'/'+_0x55afa3[_0x4d2108(0x155)]+'/'+_0x55afa3[_0x4d2108(0x147)]+'/'+_0x3cd909+_0x4d2108(0x128)+_0x55afa3['functionNode']+'\x0a'+_0x11f458+_0x4d2108(0x13d)+_0x4c2069+_0x4d2108(0x11d)+_0x204a18+'\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x3cd909+_0x4d2108(0x133);}
1
+ function a31_0x4d45(_0x298c6c,_0x11afb0){_0x298c6c=_0x298c6c-0x1eb;const _0x303202=a31_0x3032();let _0x4d4548=_0x303202[_0x298c6c];return _0x4d4548;}const a31_0x2bbac4=a31_0x4d45;function a31_0x3032(){const _0x43c92a=['\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','isInteger','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','HOOK','COMMON','\x20api\x20pull`\x20to\x20refresh.','.js','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','No\x20operation\x20types\x20found\x20for\x20dataset\x20','includes','after','scriptsRootDir','\x0a\x20*\x20[参数字段]\x20按实际请求体为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20HTTP\x20请求体参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充业务返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','join','datasetcode','bff','\x22,\x20params\x20})\x0a','File\x20already\x20exists:\x20','read','datasetId','Script\x20type','No\x20api.ts\x20found.\x20Run\x20`','name','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','4053623QhYbIW','/COMMON/','12xfjvdZ','\x0a\x20*\x20[平台配置]\x20','str','238395gOMMzV','992JuCRZR','type','string','functionNode','function-node','Created\x20','Select\x20operation\x20type:','.js\x0a','\x20function:\x20','map','Select\x20trigger\x20node:','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','create','Operation\x20type\x20\x22','Invalid\x20dataset\x20selection.','4334628eLgKEJ','4FUOFAY','trim','当前响应结果','appCode','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','2610aAZiEL','write','Available:\x20','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','datasetCode','Invalid\x20function\x20name\x20\x22','question','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20请求参数\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20TODO:\x20补充返回数据结构\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','34870BGgSkX','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','stderr','nonInteractive','alias','operationType','4780ydPpoA','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','1146772exNheh','Script\x20description','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','Available\x20aliases:\x20','1433859cromkE','/**\x0a\x20*\x20','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','stdin','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','13OdEHRy','\x22.\x20','当前请求参数','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','修改后的响应结果','HOOK\x20requires\x20alias/operation/node\x20options.','/HOOK/','code','修改后的请求参数','3apdWlX','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','description','validation','before','operation-type','Dataset\x20not\x20found\x20for\x20code\x20\x22','Function\x20name\x20(valid\x20JS\x20identifier)','No\x20datasets\x20found\x20for\x20this\x20app.','length','entries','find','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','UNKNOWN','Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','close','apiDir'];a31_0x3032=function(){return _0x43c92a;};return a31_0x3032();}(function(_0x37faf7,_0x118fe0){const _0x20338=a31_0x4d45,_0x497c69=_0x37faf7();while(!![]){try{const _0x1bc3df=parseInt(_0x20338(0x223))/0x1+-parseInt(_0x20338(0x21f))/0x2*(parseInt(_0x20338(0x233))/0x3)+-parseInt(_0x20338(0x209))/0x4*(parseInt(_0x20338(0x1f8))/0x5)+parseInt(_0x20338(0x1f5))/0x6*(parseInt(_0x20338(0x1f3))/0x7)+-parseInt(_0x20338(0x1f9))/0x8*(-parseInt(_0x20338(0x20e))/0x9)+-parseInt(_0x20338(0x21c))/0xa*(parseInt(_0x20338(0x216))/0xb)+-parseInt(_0x20338(0x208))/0xc*(-parseInt(_0x20338(0x228))/0xd);if(_0x1bc3df===_0x118fe0)break;else _0x497c69['push'](_0x497c69['shift']());}catch(_0x57650c){_0x497c69['push'](_0x497c69['shift']());}}}(a31_0x3032,0xd039b));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';import{fileExists}from'../../core/bff/file-system.js';import{DEFAULT_BFF_SCRIPT_DESCRIPTION,isValidBffFunctionName,normalizeHookFunctionNode}from'../../core/bff/utils.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getAppBaseUrl}from'../../constant/domain.js';export const bffCreate={'service':a31_0x2bbac4(0x254),'command':a31_0x2bbac4(0x205),'description':a31_0x2bbac4(0x242),'risk':a31_0x2bbac4(0x1ed),'flags':[{'name':a31_0x2bbac4(0x1fa),'type':'string','required':!![],'enum':[a31_0x2bbac4(0x249),'ENDPOINT',a31_0x2bbac4(0x248)],'description':a31_0x2bbac4(0x1ef)},{'name':a31_0x2bbac4(0x1f1),'type':'string','required':!![],'description':a31_0x2bbac4(0x23a)},{'name':a31_0x2bbac4(0x235),'type':a31_0x2bbac4(0x1fb),'description':a31_0x2bbac4(0x220)},{'name':a31_0x2bbac4(0x21a),'type':a31_0x2bbac4(0x1fb),'description':a31_0x2bbac4(0x204)},{'name':a31_0x2bbac4(0x253),'type':a31_0x2bbac4(0x1fb),'description':a31_0x2bbac4(0x247)},{'name':a31_0x2bbac4(0x238),'type':'string','description':'Operation\x20type\x20(HOOK\x20only)'},{'name':a31_0x2bbac4(0x1fd),'type':a31_0x2bbac4(0x1fb),'description':'Trigger\x20node\x20(HOOK\x20only)','enum':['before',a31_0x2bbac4(0x24f)]}],async 'validate'(_0xe8567d){const _0x3e875b=a31_0x2bbac4,_0x501044=_0xe8567d['str'](_0x3e875b(0x1f1));if(!isValidBffFunctionName(_0x501044))throw CliErrors[_0x3e875b(0x236)](_0x3e875b(0x213)+_0x501044+_0x3e875b(0x245));},async 'execute'(_0x318a7b){const _0x23e4dc=a31_0x2bbac4,_0x2744b0=loadBffProjectConfig(_0x318a7b[_0x23e4dc(0x20c)]),_0x2eba59=_0x318a7b[_0x23e4dc(0x1f7)](_0x23e4dc(0x1fa)),_0x277889=_0x318a7b['str']('name'),_0x2dccec=_0x318a7b['str'](_0x23e4dc(0x235))||undefined,_0x4470d9=_0x2eba59===_0x23e4dc(0x248)?await resolveHookOptions(_0x2744b0,_0x318a7b):undefined,_0x45dd44=buildFilePath(_0x2744b0,_0x2eba59,_0x277889,_0x4470d9);if(await fileExists(_0x45dd44))throw CliErrors[_0x23e4dc(0x236)](_0x23e4dc(0x1ec)+_0x45dd44);await mkdir(dirname(_0x45dd44),{'recursive':!![]});const _0x5dfd77=generateTemplate(_0x2eba59,_0x277889,_0x318a7b['appCode'],_0x2dccec,_0x4470d9);await writeFile(_0x45dd44,_0x5dfd77,'utf8');const _0x525271={'type':_0x2eba59,'name':_0x277889,'path':_0x45dd44};if(_0x2dccec)_0x525271[_0x23e4dc(0x235)]=_0x2dccec;if(_0x4470d9){if(_0x4470d9[_0x23e4dc(0x21a)])_0x525271[_0x23e4dc(0x21a)]=_0x4470d9[_0x23e4dc(0x21a)];_0x525271['datasetCode']=_0x4470d9[_0x23e4dc(0x212)],_0x525271[_0x23e4dc(0x21b)]=_0x4470d9[_0x23e4dc(0x21b)],_0x525271[_0x23e4dc(0x1fc)]=_0x4470d9['functionNode'];}return{'ok':!![],'data':_0x525271,'message':_0x23e4dc(0x1fe)+_0x2eba59+_0x23e4dc(0x201)+_0x277889};}};async function resolveHookOptions(_0x122fe4,_0x482e28){const _0x3c48d2=a31_0x2bbac4,_0x3e4a5e=loadAliasMap(_0x482e28[_0x3c48d2(0x244)],undefined,resolveApiFilePath(_0x482e28[_0x3c48d2(0x244)],_0x482e28[_0x3c48d2(0x20c)])),_0x2728e9=_0x3e4a5e[_0x3c48d2(0x23c)]>0x0;let _0x59b6c5,_0x298709,_0x15fbb2;const _0x53497b=_0x482e28[_0x3c48d2(0x1f7)](_0x3c48d2(0x21a)),_0x1f34ff=_0x482e28[_0x3c48d2(0x1f7)](_0x3c48d2(0x253));if(_0x53497b){const _0x4f9acf=resolveAlias(_0x482e28[_0x3c48d2(0x244)],_0x53497b,undefined,resolveApiFilePath(_0x482e28[_0x3c48d2(0x244)],_0x482e28[_0x3c48d2(0x20c)]));if(!_0x4f9acf){const _0x38f879=_0x2728e9?_0x3c48d2(0x222)+_0x3e4a5e['map'](_0x6b1f34=>_0x6b1f34['alias'])[_0x3c48d2(0x252)](',\x20'):_0x3c48d2(0x1f0)+CLI_BIN_NAME+'\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.';throw CliErrors[_0x3c48d2(0x236)]('Alias\x20\x22'+_0x53497b+'\x22\x20not\x20found.\x20'+_0x38f879);}_0x59b6c5=_0x53497b,_0x298709=_0x4f9acf;}else{if(_0x1f34ff){_0x298709=_0x1f34ff;const _0x1652c3=_0x3e4a5e[_0x3c48d2(0x23e)](_0x1ce40e=>_0x1ce40e[_0x3c48d2(0x212)]===_0x1f34ff);_0x59b6c5=_0x1652c3?.[_0x3c48d2(0x21a)];}else{if(_0x482e28[_0x3c48d2(0x219)])throw CliErrors[_0x3c48d2(0x236)]('--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');else{if(_0x2728e9){const _0x1cab24=_0x3e4a5e[_0x3c48d2(0x202)](_0x355a89=>_0x355a89[_0x3c48d2(0x21a)]+'\x20('+_0x355a89['tableName']+')'),_0x4a2862=await promptSelect('Select\x20dataset:',_0x1cab24),_0x1fa508=_0x3e4a5e[_0x4a2862];if(!_0x1fa508)throw CliErrors[_0x3c48d2(0x236)]('Invalid\x20dataset\x20selection.');_0x59b6c5=_0x1fa508['alias'],_0x298709=_0x1fa508[_0x3c48d2(0x212)];}else{const _0x1425c=await listDatasets(_0x482e28[_0x3c48d2(0x20c)]);if(_0x1425c[_0x3c48d2(0x23c)]===0x0)throw CliErrors[_0x3c48d2(0x236)](_0x3c48d2(0x23b));const _0x5c6407=_0x1425c[_0x3c48d2(0x202)](_0x2e8f80=>_0x2e8f80[_0x3c48d2(0x1f1)]+'\x20['+(_0x2e8f80['source']??_0x3c48d2(0x241))+']\x20('+_0x2e8f80[_0x3c48d2(0x231)]+')'),_0xa91889=await promptSelect('Select\x20dataset:',_0x5c6407),_0x55ac32=_0x1425c[_0xa91889];if(!_0x55ac32)throw CliErrors[_0x3c48d2(0x236)](_0x3c48d2(0x207));_0x298709=_0x55ac32[_0x3c48d2(0x231)],_0x59b6c5=undefined;}}}}const _0xab5b48=await listDatasets(_0x482e28['appCode']),_0x53bdbe=_0xab5b48[_0x3c48d2(0x23e)](_0x2484b5=>_0x2484b5['code']===_0x298709);if(!_0x53bdbe)throw CliErrors[_0x3c48d2(0x236)](_0x3c48d2(0x239)+_0x298709+_0x3c48d2(0x229)+(_0x59b6c5?_0x3c48d2(0x22c)+CLI_BIN_NAME+_0x3c48d2(0x24a):''));_0x15fbb2=_0x53bdbe['id'];const _0x3509e7=_0x59b6c5??_0x298709,_0x5c6bd6=await listBffDatasetOperations(_0x482e28['appCode'],_0x15fbb2),_0x20c11a=_0x5c6bd6?Object['keys'](_0x5c6bd6):[];if(_0x20c11a[_0x3c48d2(0x23c)]===0x0)throw CliErrors['validation'](_0x3c48d2(0x24d)+_0x3509e7+'.');let _0x53b428;const _0x157722=_0x482e28['str'](_0x3c48d2(0x238));if(_0x157722){if(!_0x20c11a[_0x3c48d2(0x24e)](_0x157722))throw CliErrors[_0x3c48d2(0x236)](_0x3c48d2(0x206)+_0x157722+'\x22\x20not\x20found\x20for\x20dataset\x20'+_0x3509e7+'.\x20'+(_0x3c48d2(0x210)+_0x20c11a['join'](',\x20')));_0x53b428=_0x157722;}else{if(_0x482e28[_0x3c48d2(0x219)])throw CliErrors[_0x3c48d2(0x236)](_0x3c48d2(0x22b));const _0x32883d=await promptSelect(_0x3c48d2(0x1ff),_0x20c11a);_0x53b428=_0x20c11a[_0x32883d]??_0x20c11a[0x0];}let _0x5df83a=normalizeHookFunctionNode(_0x482e28['str'](_0x3c48d2(0x1fd)));if(!_0x5df83a){if(_0x482e28[_0x3c48d2(0x1f7)](_0x3c48d2(0x1fd)))throw CliErrors[_0x3c48d2(0x236)]('--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.');if(_0x482e28[_0x3c48d2(0x219)])throw CliErrors[_0x3c48d2(0x236)]('--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0x5707e6=await promptSelect(_0x3c48d2(0x203),[_0x3c48d2(0x237),'after']);_0x5df83a=[_0x3c48d2(0x237),_0x3c48d2(0x24f)][_0x5707e6]??'before';}return{'alias':_0x59b6c5,'datasetCode':_0x298709,'datasetId':_0x15fbb2,'operationType':_0x53b428,'functionNode':_0x5df83a};}async function promptSelect(_0x827d69,_0x1ade7d){const _0x2c2d33=a31_0x2bbac4;if(_0x1ade7d[_0x2c2d33(0x23c)]===0x1)return 0x0;for(const [_0x1b0511,_0x26e1ea]of _0x1ade7d[_0x2c2d33(0x23d)]()){process[_0x2c2d33(0x218)][_0x2c2d33(0x20f)]('\x20\x20'+(_0x1b0511+0x1)+'.\x20'+_0x26e1ea+'\x0a');}const _0x281fc2=createInterface({'input':process[_0x2c2d33(0x226)],'output':process[_0x2c2d33(0x218)]});while(!![]){const _0xd38f2=await new Promise(_0x32145a=>{const _0x35d9b1=_0x2c2d33;_0x281fc2[_0x35d9b1(0x214)](_0x827d69+'\x20',_0x32145a);}),_0x1d0612=Number['parseInt'](_0xd38f2[_0x2c2d33(0x20a)](),0xa);if(Number[_0x2c2d33(0x246)](_0x1d0612)&&_0x1d0612>=0x1&&_0x1d0612<=_0x1ade7d[_0x2c2d33(0x23c)])return _0x281fc2[_0x2c2d33(0x243)](),_0x1d0612-0x1;process[_0x2c2d33(0x218)]['write'](_0x2c2d33(0x1f2)+_0x1ade7d[_0x2c2d33(0x23c)]+'.\x0a');}}function buildFilePath(_0xd25372,_0x2d74ff,_0xe7a85d,_0x4189cd){const _0x9b611a=a31_0x2bbac4;if(_0x2d74ff===_0x9b611a(0x248)){if(!_0x4189cd)throw CliErrors['validation'](_0x9b611a(0x22f));const _0x2e9cee=_0x4189cd[_0x9b611a(0x21a)]??_0x4189cd['datasetCode'];return join(_0xd25372[_0x9b611a(0x250)],_0x9b611a(0x248),_0x2e9cee,_0x4189cd['operationType'],_0x4189cd['functionNode'],_0xe7a85d+_0x9b611a(0x24b));}return join(_0xd25372['scriptsRootDir'],_0x2d74ff,_0xe7a85d+_0x9b611a(0x24b));}export function generateTemplate(_0x207e89,_0x22a18d,_0x569d61,_0x49760e,_0x2424c3){const _0x85eac3=a31_0x2bbac4,_0x2df930=_0x49760e?.[_0x85eac3(0x20a)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x445f00=getAppBaseUrl(_0x569d61),_0x3e5ba7=_0x85eac3(0x24c);if(_0x207e89===_0x85eac3(0x249))return _0x85eac3(0x224)+_0x2df930+_0x85eac3(0x22d)+_0x22a18d+'\x0a\x20*\x20[平台配置]\x20'+_0x445f00+_0x85eac3(0x234)+_0x569d61+_0x85eac3(0x1f4)+_0x22a18d+_0x85eac3(0x211)+_0x22a18d+_0x85eac3(0x1eb)+_0x3e5ba7+_0x85eac3(0x215)+_0x22a18d+_0x85eac3(0x225);if(_0x207e89==='ENDPOINT')return _0x85eac3(0x224)+_0x2df930+_0x85eac3(0x21d)+_0x22a18d+_0x85eac3(0x21e)+_0x569d61+'/'+_0x22a18d+_0x85eac3(0x1f6)+_0x445f00+'/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/'+_0x569d61+'/ENDPOINT/'+_0x22a18d+_0x85eac3(0x200)+_0x3e5ba7+_0x85eac3(0x251)+_0x22a18d+_0x85eac3(0x225);if(!_0x2424c3)throw CliErrors[_0x85eac3(0x236)](_0x85eac3(0x20d));const _0x4adb5b=_0x2424c3['alias']??_0x2424c3[_0x85eac3(0x212)],_0x354bf6=_0x2424c3[_0x85eac3(0x1fc)]===_0x85eac3(0x237)?_0x85eac3(0x22a):_0x85eac3(0x20b),_0x3ea22f=_0x2424c3[_0x85eac3(0x1fc)]===_0x85eac3(0x237)?_0x85eac3(0x232):_0x85eac3(0x22e);return _0x85eac3(0x224)+_0x2df930+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20'+_0x22a18d+_0x85eac3(0x23f)+_0x569d61+'/'+_0x2424c3[_0x85eac3(0x212)]+'/'+_0x2424c3[_0x85eac3(0x21b)]+'\x0a\x20*\x20[平台配置]\x20'+_0x445f00+'/data/dataset/'+_0x2424c3[_0x85eac3(0x1ee)]+_0x85eac3(0x227)+_0x569d61+_0x85eac3(0x230)+_0x4adb5b+'/'+_0x2424c3['operationType']+'/'+_0x2424c3[_0x85eac3(0x1fc)]+'/'+_0x22a18d+'.js\x0a\x20*\x20[触发节点]\x20'+_0x2424c3[_0x85eac3(0x1fc)]+'\x0a'+_0x3e5ba7+_0x85eac3(0x217)+_0x354bf6+_0x85eac3(0x221)+_0x3ea22f+_0x85eac3(0x240)+_0x22a18d+_0x85eac3(0x225);}
@@ -1 +1 @@
1
- const a32_0x3baceb=a32_0x7dd1;(function(_0x3e6b40,_0x29c608){const _0x1ad06b=a32_0x7dd1,_0x41700b=_0x3e6b40();while(!![]){try{const _0x5bb828=-parseInt(_0x1ad06b(0x10d))/0x1*(parseInt(_0x1ad06b(0x108))/0x2)+parseInt(_0x1ad06b(0xea))/0x3+-parseInt(_0x1ad06b(0x109))/0x4*(parseInt(_0x1ad06b(0xe6))/0x5)+parseInt(_0x1ad06b(0xff))/0x6+-parseInt(_0x1ad06b(0xde))/0x7+-parseInt(_0x1ad06b(0xfa))/0x8+-parseInt(_0x1ad06b(0xe0))/0x9*(-parseInt(_0x1ad06b(0xe3))/0xa);if(_0x5bb828===_0x29c608)break;else _0x41700b['push'](_0x41700b['shift']());}catch(_0xdf504b){_0x41700b['push'](_0x41700b['shift']());}}}(a32_0x237a,0xdbfaa));function a32_0x7dd1(_0x5e8e2e,_0x3a7a42){_0x5e8e2e=_0x5e8e2e-0xdc;const _0x237a92=a32_0x237a();let _0x7dd1ac=_0x237a92[_0x5e8e2e];return _0x7dd1ac;}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';function a32_0x237a(){const _0x3e159f=['str','6147974liSwXA','map','6651KetbVr','Backend\x20Function\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','35560LYitcp','delete','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash','85QHDlMC','join','startsWith','target','3259125Azljbs','lockFilePath','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','Lock\x20scope\x20for\x20app\x20\x22','/api/management/library/scripts/delete','string','parse','projectRoot','toISOString','Deleted\x20','includes','apps','Backend\x20Function\x20lock\x20file\x20not\x20found.','remoteId','filter','POST','6217568ixeVMZ','length','trashDir','\x20(local\x20file\x20moved\x20to\x20trash)','find','5399466ZyMnWh','bff','Multiple\x20functions\x20match\x20\x22','\x20\x20-\x20','functions','No\x20lock\x20entry\x20found\x20for\x20\x22','split','Local\x20delete\x20not\x20settled\x20for\x20','scriptsRootDir','61558mnPVrb','187228JdSTcG','appCode','<timestamp>','validation','41XAsDGx','scriptsRoot','Delete\x20a\x20Backend\x20Function\x20script\x20from\x20remote\x20and\x20local'];a32_0x237a=function(){return _0x3e159f;};return a32_0x237a();}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':a32_0x3baceb(0x100),'command':a32_0x3baceb(0xe4),'description':a32_0x3baceb(0xdc),'risk':'high-risk-write','flags':[{'name':a32_0x3baceb(0xe9),'type':a32_0x3baceb(0xef),'required':!![],'description':a32_0x3baceb(0xec)}],async 'validate'(_0x589188){const _0x1a23b4=a32_0x3baceb,_0x1f7043=loadBffProjectConfig(_0x589188[_0x1a23b4(0x10a)]),_0x26039a=await readBffLockFile(_0x1f7043[_0x1a23b4(0xeb)]);if(!_0x26039a)throw CliErrors[_0x1a23b4(0x10c)](_0x1a23b4(0xe1));},async 'dryRun'(_0x47d0dc){const _0x3c1d7f=a32_0x3baceb,_0x5b3295=loadBffProjectConfig(_0x47d0dc[_0x3c1d7f(0x10a)]),_0x957a8d=await readBffLockFile(_0x5b3295[_0x3c1d7f(0xeb)]);if(!_0x957a8d)throw CliErrors[_0x3c1d7f(0x10c)]('Backend\x20Function\x20lock\x20file\x20not\x20found.');const {appLock:_0x2d461e}=ensureLockScope(_0x957a8d,_0x47d0dc[_0x3c1d7f(0x10a)],_0x5b3295[_0x3c1d7f(0x10e)],'delete'),_0x558763=_0x47d0dc[_0x3c1d7f(0xdd)](_0x3c1d7f(0xe9)),_0x4a5931=Object['keys'](_0x2d461e['functions']),_0x2c2526=resolveDeleteTarget(_0x558763,_0x4a5931),_0x21586b=_0x2d461e['functions'][_0x2c2526];if(!_0x21586b)throw CliErrors[_0x3c1d7f(0x10c)](_0x3c1d7f(0x104)+_0x2c2526+'\x22.');const _0x47249d=resolveLocalFilePathFromLockKey(_0x5b3295,_0x2c2526),_0x3669f2=relative(_0x5b3295[_0x3c1d7f(0xf1)],_0x47249d),_0xe63531=join(_0x5b3295['trashDir'],_0x3c1d7f(0x10b),_0x3669f2);return{'method':_0x3c1d7f(0xf9),'url':_0x3c1d7f(0xee),'body':{'appCode':_0x47d0dc[_0x3c1d7f(0x10a)],'target':_0x2c2526,'remoteId':_0x21586b['remoteId'],'localFilePath':_0x47249d,'trashedPath':_0xe63531},'description':'Would\x20delete\x20'+_0x2c2526+_0x3c1d7f(0xe5)};},async 'execute'(_0x5db6be){const _0x28db59=a32_0x3baceb,_0xa528ef=loadBffProjectConfig(_0x5db6be[_0x28db59(0x10a)]),_0x39417b=await readBffLockFile(_0xa528ef[_0x28db59(0xeb)]);if(!_0x39417b)throw CliErrors[_0x28db59(0x10c)](_0x28db59(0xf6));const {lockData:_0x32aca4,appLock:_0x393bc8}=ensureLockScope(_0x39417b,_0x5db6be[_0x28db59(0x10a)],_0xa528ef[_0x28db59(0x10e)],_0x28db59(0xe4)),_0x1cb2ab=JSON[_0x28db59(0xf0)](JSON['stringify'](_0x32aca4)),_0x214007=_0x1cb2ab[_0x28db59(0xf5)][_0x5db6be['appCode']];if(!_0x214007)throw new Error(_0x28db59(0xed)+_0x5db6be[_0x28db59(0x10a)]+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x5b1acb=_0x5db6be['str'](_0x28db59(0xe9)),_0x11a455=Object['keys'](_0x214007[_0x28db59(0x103)]),_0x16a7df=resolveDeleteTarget(_0x5b1acb,_0x11a455),_0x44cded=_0x214007[_0x28db59(0x103)][_0x16a7df];if(!_0x44cded)throw CliErrors[_0x28db59(0x10c)]('No\x20lock\x20entry\x20found\x20for\x20\x22'+_0x16a7df+'\x22.');await deleteBffScript(_0x44cded[_0x28db59(0xf7)]),delete _0x214007[_0x28db59(0x103)][_0x16a7df],_0x214007['lastSync']=new Date()[_0x28db59(0xf2)](),await writeBffLockFile(_0xa528ef[_0x28db59(0xeb)],_0x1cb2ab);const _0x1b252e=resolveLocalFilePathFromLockKey(_0xa528ef,_0x16a7df);let _0x2e5d2f;await fileExists(_0x1b252e)&&(_0x2e5d2f=await moveToTrash(_0xa528ef[_0x28db59(0xf1)],_0xa528ef[_0x28db59(0xfc)],_0x1b252e),await cleanupEmptyDirectories(dirname(_0x1b252e),_0xa528ef[_0x28db59(0x107)]));await waitForDeleteSettlement(_0xa528ef[_0x28db59(0xeb)],_0x5db6be[_0x28db59(0x10a)],_0x16a7df,_0x1b252e),await sleep(0x96);const _0x5035c6={'deleted':_0x16a7df,'remoteId':_0x44cded[_0x28db59(0xf7)]};if(_0x2e5d2f)_0x5035c6['trashedTo']=_0x2e5d2f;return{'ok':!![],'data':_0x5035c6,'message':_0x28db59(0xf3)+_0x16a7df+(_0x2e5d2f?_0x28db59(0xfd):'')};}};function resolveDeleteTarget(_0x423e79,_0x112bf5){const _0x100a34=a32_0x3baceb;if(_0x423e79[_0x100a34(0xf4)]('/')){const _0x2d5d74=_0x112bf5[_0x100a34(0xfe)](_0x3d0095=>_0x3d0095===_0x423e79);if(!_0x2d5d74)throw CliErrors['validation']('Function\x20not\x20found:\x20'+_0x423e79);return _0x2d5d74;}const _0x17548a=_0x112bf5[_0x100a34(0xf8)](_0x907dd7=>_0x907dd7[_0x100a34(0x105)]('/')['at'](-0x1)===_0x423e79);if(_0x17548a[_0x100a34(0xfb)]===0x0)throw CliErrors[_0x100a34(0x10c)]('Function\x20not\x20found:\x20'+_0x423e79);if(_0x17548a[_0x100a34(0xfb)]>0x1)throw CliErrors['validation'](_0x100a34(0x101)+_0x423e79+_0x100a34(0xe2)+_0x17548a[_0x100a34(0xdf)](_0x81c6a9=>_0x100a34(0x102)+_0x81c6a9)[_0x100a34(0xe7)]('\x0a'));return _0x17548a[0x0];}async function moveToTrash(_0x4f42ed,_0x578b1b,_0x174cdb){const _0x5c6e6a=a32_0x3baceb,_0xb7c380=new Date()[_0x5c6e6a(0xf2)]()['replace'](/[:.]/g,'-'),_0x279b03=relative(_0x4f42ed,_0x174cdb),_0x3a7c1a=join(_0x578b1b,_0xb7c380,_0x279b03);return await mkdir(dirname(_0x3a7c1a),{'recursive':!![]}),await rename(_0x174cdb,_0x3a7c1a),_0x3a7c1a;}async function cleanupEmptyDirectories(_0xf057e4,_0x2d71d0){const _0xd13a7b=a32_0x3baceb;let _0x70e808=resolve(_0xf057e4);const _0x4d9781=resolve(_0x2d71d0);while(_0x70e808[_0xd13a7b(0xe8)](''+_0x4d9781+sep)||_0x70e808===_0x4d9781){if(_0x70e808===_0x4d9781)return;try{const _0x3767b7=await readdir(_0x70e808);if(_0x3767b7[_0xd13a7b(0xfb)]>0x0)return;await rmdir(_0x70e808);}catch{return;}_0x70e808=dirname(_0x70e808);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x47ce5c,_0x18a82e,_0x26ddfb,_0x335554){const _0x2cde12=a32_0x3baceb;for(let _0x298728=0x0;_0x298728<DELETE_SETTLE_RETRY_COUNT;_0x298728+=0x1){const _0x18193a=await readBffLockFile(_0x47ce5c),_0x3cb9a8=!!_0x18193a?.['apps']?.[_0x18a82e]?.['functions']?.[_0x26ddfb],_0x10780e=await fileExists(_0x335554);if(!_0x3cb9a8&&!_0x10780e)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error(_0x2cde12(0x106)+_0x26ddfb+'.');}
1
+ const a32_0x4703a4=a32_0x5b91;(function(_0xd564db,_0x4b194d){const _0x56397c=a32_0x5b91,_0x34f5a3=_0xd564db();while(!![]){try{const _0x765973=parseInt(_0x56397c(0xd1))/0x1+-parseInt(_0x56397c(0xe3))/0x2+-parseInt(_0x56397c(0xdf))/0x3+-parseInt(_0x56397c(0xe0))/0x4*(-parseInt(_0x56397c(0xcd))/0x5)+parseInt(_0x56397c(0xda))/0x6+-parseInt(_0x56397c(0xc4))/0x7*(-parseInt(_0x56397c(0xd9))/0x8)+-parseInt(_0x56397c(0xd3))/0x9;if(_0x765973===_0x4b194d)break;else _0x34f5a3['push'](_0x34f5a3['shift']());}catch(_0x107262){_0x34f5a3['push'](_0x34f5a3['shift']());}}}(a32_0x156b,0x40127));import{mkdir,readdir,rename,rmdir}from'node:fs/promises';function a32_0x156b(){const _0x5ae6bc=['Function\x20not\x20found:\x20','apps','56CAkUUT','2517528zxiXrI','No\x20lock\x20entry\x20found\x20for\x20\x22','Lock\x20key\x20(e.g.\x20ENDPOINT/createOrder)\x20or\x20short\x20function\x20name','/api/management/library/scripts/delete','target','440076cHLUcQ','123868trAaRM','trashedTo','filter','663914HkPEsl','toISOString','<timestamp>','validation','\x22\x20not\x20found\x20after\x20ensureLockScope.','str','includes','map','appCode','high-risk-write','bff','Delete\x20a\x20Backend\x20Function\x20script\x20from\x20remote\x20and\x20local','lockFilePath','length','Deleted\x20','split','Lock\x20scope\x20for\x20app\x20\x22','472024FYiIiR','POST','trashDir','\x20from\x20remote\x20and\x20move\x20local\x20file\x20to\x20trash','\x20\x20-\x20','stringify','\x22.\x20Use\x20the\x20full\x20lock\x20key:\x0a','Backend\x20Function\x20lock\x20file\x20not\x20found.','remoteId','45phfpFQ','delete','string','scriptsRoot','459075YMIMDL','replace','7994718OAvsAY','functions','projectRoot','keys'];a32_0x156b=function(){return _0x5ae6bc;};return a32_0x156b();}import{dirname,join,relative,resolve,sep}from'node:path';function a32_0x5b91(_0x26853b,_0x5450f8){_0x26853b=_0x26853b-0xb6;const _0x156bfc=a32_0x156b();let _0x5b9179=_0x156bfc[_0x26853b];return _0x5b9179;}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':a32_0x4703a4(0xbd),'command':a32_0x4703a4(0xce),'description':a32_0x4703a4(0xbe),'risk':a32_0x4703a4(0xbc),'flags':[{'name':a32_0x4703a4(0xde),'type':a32_0x4703a4(0xcf),'required':!![],'description':a32_0x4703a4(0xdc)}],async 'validate'(_0x22f2eb){const _0x43fde1=a32_0x4703a4,_0x40508b=loadBffProjectConfig(_0x22f2eb['appCode']),_0x16def2=await readBffLockFile(_0x40508b[_0x43fde1(0xbf)]);if(!_0x16def2)throw CliErrors[_0x43fde1(0xb6)]('Backend\x20Function\x20lock\x20file\x20not\x20found.\x20Run\x20`push`\x20or\x20`pull`\x20first\x20to\x20initialize\x20sync\x20state.');},async 'dryRun'(_0x5505e2){const _0x51134b=a32_0x4703a4,_0x2f70e7=loadBffProjectConfig(_0x5505e2[_0x51134b(0xbb)]),_0x2c63b7=await readBffLockFile(_0x2f70e7[_0x51134b(0xbf)]);if(!_0x2c63b7)throw CliErrors[_0x51134b(0xb6)](_0x51134b(0xcb));const {appLock:_0x147e9b}=ensureLockScope(_0x2c63b7,_0x5505e2['appCode'],_0x2f70e7[_0x51134b(0xd0)],_0x51134b(0xce)),_0x4d2a25=_0x5505e2[_0x51134b(0xb8)](_0x51134b(0xde)),_0x1c8c39=Object[_0x51134b(0xd6)](_0x147e9b['functions']),_0x1ad855=resolveDeleteTarget(_0x4d2a25,_0x1c8c39),_0x367dcf=_0x147e9b[_0x51134b(0xd4)][_0x1ad855];if(!_0x367dcf)throw CliErrors['validation'](_0x51134b(0xdb)+_0x1ad855+'\x22.');const _0x103c50=resolveLocalFilePathFromLockKey(_0x2f70e7,_0x1ad855),_0x2f6d7b=relative(_0x2f70e7[_0x51134b(0xd5)],_0x103c50),_0x21fbfd=join(_0x2f70e7['trashDir'],_0x51134b(0xe5),_0x2f6d7b);return{'method':_0x51134b(0xc5),'url':_0x51134b(0xdd),'body':{'appCode':_0x5505e2[_0x51134b(0xbb)],'target':_0x1ad855,'remoteId':_0x367dcf[_0x51134b(0xcc)],'localFilePath':_0x103c50,'trashedPath':_0x21fbfd},'description':'Would\x20delete\x20'+_0x1ad855+_0x51134b(0xc7)};},async 'execute'(_0x34d79f){const _0x5561e6=a32_0x4703a4,_0x3bd11c=loadBffProjectConfig(_0x34d79f[_0x5561e6(0xbb)]),_0x561030=await readBffLockFile(_0x3bd11c[_0x5561e6(0xbf)]);if(!_0x561030)throw CliErrors[_0x5561e6(0xb6)](_0x5561e6(0xcb));const {lockData:_0x1be941,appLock:_0x53e4f8}=ensureLockScope(_0x561030,_0x34d79f[_0x5561e6(0xbb)],_0x3bd11c[_0x5561e6(0xd0)],'delete'),_0x499f86=JSON['parse'](JSON[_0x5561e6(0xc9)](_0x1be941)),_0x2f0769=_0x499f86[_0x5561e6(0xd8)][_0x34d79f[_0x5561e6(0xbb)]];if(!_0x2f0769)throw new Error(_0x5561e6(0xc3)+_0x34d79f['appCode']+_0x5561e6(0xb7));const _0x12fc45=_0x34d79f['str'](_0x5561e6(0xde)),_0x3270bd=Object[_0x5561e6(0xd6)](_0x2f0769[_0x5561e6(0xd4)]),_0x3dc170=resolveDeleteTarget(_0x12fc45,_0x3270bd),_0x462684=_0x2f0769[_0x5561e6(0xd4)][_0x3dc170];if(!_0x462684)throw CliErrors[_0x5561e6(0xb6)](_0x5561e6(0xdb)+_0x3dc170+'\x22.');await deleteBffScript(_0x462684['remoteId']),delete _0x2f0769[_0x5561e6(0xd4)][_0x3dc170],_0x2f0769['lastSync']=new Date()[_0x5561e6(0xe4)](),await writeBffLockFile(_0x3bd11c[_0x5561e6(0xbf)],_0x499f86);const _0x4cc6fb=resolveLocalFilePathFromLockKey(_0x3bd11c,_0x3dc170);let _0x119f1b;await fileExists(_0x4cc6fb)&&(_0x119f1b=await moveToTrash(_0x3bd11c[_0x5561e6(0xd5)],_0x3bd11c[_0x5561e6(0xc6)],_0x4cc6fb),await cleanupEmptyDirectories(dirname(_0x4cc6fb),_0x3bd11c['scriptsRootDir']));await waitForDeleteSettlement(_0x3bd11c[_0x5561e6(0xbf)],_0x34d79f[_0x5561e6(0xbb)],_0x3dc170,_0x4cc6fb),await sleep(0x96);const _0x3baa6b={'deleted':_0x3dc170,'remoteId':_0x462684['remoteId']};if(_0x119f1b)_0x3baa6b[_0x5561e6(0xe1)]=_0x119f1b;return{'ok':!![],'data':_0x3baa6b,'message':_0x5561e6(0xc1)+_0x3dc170+(_0x119f1b?'\x20(local\x20file\x20moved\x20to\x20trash)':'')};}};function resolveDeleteTarget(_0x7cb706,_0xab2c93){const _0x2154c4=a32_0x4703a4;if(_0x7cb706[_0x2154c4(0xb9)]('/')){const _0x1167f7=_0xab2c93['find'](_0x5a2ee8=>_0x5a2ee8===_0x7cb706);if(!_0x1167f7)throw CliErrors[_0x2154c4(0xb6)](_0x2154c4(0xd7)+_0x7cb706);return _0x1167f7;}const _0x51ac13=_0xab2c93[_0x2154c4(0xe2)](_0x1e5f32=>_0x1e5f32[_0x2154c4(0xc2)]('/')['at'](-0x1)===_0x7cb706);if(_0x51ac13[_0x2154c4(0xc0)]===0x0)throw CliErrors[_0x2154c4(0xb6)](_0x2154c4(0xd7)+_0x7cb706);if(_0x51ac13['length']>0x1)throw CliErrors[_0x2154c4(0xb6)]('Multiple\x20functions\x20match\x20\x22'+_0x7cb706+_0x2154c4(0xca)+_0x51ac13[_0x2154c4(0xba)](_0x16e0ce=>_0x2154c4(0xc8)+_0x16e0ce)['join']('\x0a'));return _0x51ac13[0x0];}async function moveToTrash(_0x5c4a7c,_0x5cbf50,_0x497077){const _0x13ac19=a32_0x4703a4,_0x42b16f=new Date()[_0x13ac19(0xe4)]()[_0x13ac19(0xd2)](/[:.]/g,'-'),_0x5c26aa=relative(_0x5c4a7c,_0x497077),_0x3c0b45=join(_0x5cbf50,_0x42b16f,_0x5c26aa);return await mkdir(dirname(_0x3c0b45),{'recursive':!![]}),await rename(_0x497077,_0x3c0b45),_0x3c0b45;}async function cleanupEmptyDirectories(_0x27bc8d,_0x15946d){const _0x39e42a=a32_0x4703a4;let _0x3ebafc=resolve(_0x27bc8d);const _0x1cd20e=resolve(_0x15946d);while(_0x3ebafc['startsWith'](''+_0x1cd20e+sep)||_0x3ebafc===_0x1cd20e){if(_0x3ebafc===_0x1cd20e)return;try{const _0x409064=await readdir(_0x3ebafc);if(_0x409064[_0x39e42a(0xc0)]>0x0)return;await rmdir(_0x3ebafc);}catch{return;}_0x3ebafc=dirname(_0x3ebafc);}}const DELETE_SETTLE_RETRY_COUNT=0x14,DELETE_SETTLE_DELAY_MS=0x64;async function waitForDeleteSettlement(_0x134ff0,_0x262212,_0xdae17a,_0x40fe64){const _0x369312=a32_0x4703a4;for(let _0x291aaa=0x0;_0x291aaa<DELETE_SETTLE_RETRY_COUNT;_0x291aaa+=0x1){const _0x5e3b37=await readBffLockFile(_0x134ff0),_0x5b1e12=!!_0x5e3b37?.[_0x369312(0xd8)]?.[_0x262212]?.[_0x369312(0xd4)]?.[_0xdae17a],_0x4ef0b3=await fileExists(_0x40fe64);if(!_0x5b1e12&&!_0x4ef0b3)return;await sleep(DELETE_SETTLE_DELAY_MS);}throw new Error('Local\x20delete\x20not\x20settled\x20for\x20'+_0xdae17a+'.');}
@@ -1 +1 @@
1
- function a33_0x40d3(_0x4e37c2,_0x5481b3){_0x4e37c2=_0x4e37c2-0x1ea;const _0x1024b8=a33_0x1024();let _0x40d301=_0x1024b8[_0x4e37c2];return _0x40d301;}const a33_0x47832e=a33_0x40d3;(function(_0x1c2a33,_0x2af784){const _0x111e63=a33_0x40d3,_0x245d87=_0x1c2a33();while(!![]){try{const _0x5cbb98=parseInt(_0x111e63(0x1ea))/0x1*(parseInt(_0x111e63(0x201))/0x2)+parseInt(_0x111e63(0x1ec))/0x3*(-parseInt(_0x111e63(0x1f3))/0x4)+-parseInt(_0x111e63(0x1f1))/0x5+-parseInt(_0x111e63(0x1ee))/0x6*(-parseInt(_0x111e63(0x207))/0x7)+parseInt(_0x111e63(0x202))/0x8*(parseInt(_0x111e63(0x1f9))/0x9)+parseInt(_0x111e63(0x1f4))/0xa*(parseInt(_0x111e63(0x1fb))/0xb)+-parseInt(_0x111e63(0x205))/0xc;if(_0x5cbb98===_0x2af784)break;else _0x245d87['push'](_0x245d87['shift']());}catch(_0x328672){_0x245d87['push'](_0x245d87['shift']());}}}(a33_0x1024,0x9a9f6));function a33_0x1024(){const _0x19e9a9=['696648SfCDsl','updateUserName','version','12082452kBehxM','detail','148946CJxnGF','1trYalS','number','30pfRsED','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','342IZGVLl','bff','updatedTime','1348925hsskfZ','functionName','495052BfZySR','779740KEhHvl','appCode','bool','Return\x20full\x20raw\x20script\x20object','scriptType','63LBcTWk','(none)','143GwLZak','read','boolean','num','description','verbose','623090rrAUdg'];a33_0x1024=function(){return _0x19e9a9;};return a33_0x1024();}import{getBffScriptInfo}from'../../core/api-client.js';export const bffDetail={'service':a33_0x47832e(0x1ef),'command':a33_0x47832e(0x206),'description':a33_0x47832e(0x1ed),'risk':a33_0x47832e(0x1fc),'flags':[{'name':'id','type':a33_0x47832e(0x1eb),'required':!![],'description':'Script\x20ID'},{'name':a33_0x47832e(0x200),'type':a33_0x47832e(0x1fd),'description':a33_0x47832e(0x1f7)}],async 'execute'(_0x4ea4b3){const _0x5a3ec9=a33_0x47832e,_0x6aeaa0=await getBffScriptInfo(_0x4ea4b3[_0x5a3ec9(0x1fe)]('id')),_0x5d65e0=_0x4ea4b3[_0x5a3ec9(0x1f6)](_0x5a3ec9(0x200));if(_0x5d65e0)return{'ok':!![],'data':_0x6aeaa0};return{'ok':!![],'data':{'id':_0x6aeaa0['id'],'functionName':_0x6aeaa0[_0x5a3ec9(0x1f2)]??'','version':_0x6aeaa0[_0x5a3ec9(0x204)]??'','updateUserName':_0x6aeaa0[_0x5a3ec9(0x203)]??'','appCode':_0x6aeaa0[_0x5a3ec9(0x1f5)],'scriptType':_0x6aeaa0[_0x5a3ec9(0x1f8)],'description':_0x6aeaa0[_0x5a3ec9(0x1ff)]||_0x5a3ec9(0x1fa),'createdTime':_0x6aeaa0['createdTime']??'','updatedTime':_0x6aeaa0[_0x5a3ec9(0x1f0)]??'','scriptContent':_0x6aeaa0['scriptContent']??''}};}};
1
+ const a33_0x2c323e=a33_0x908f;function a33_0x908f(_0x502d3a,_0x22c8a5){_0x502d3a=_0x502d3a-0x8d;const _0x4e2024=a33_0x4e20();let _0x908f2c=_0x4e2024[_0x502d3a];return _0x908f2c;}(function(_0x4f26a9,_0x1fbd56){const _0x42f53b=a33_0x908f,_0x3590d7=_0x4f26a9();while(!![]){try{const _0x48817b=-parseInt(_0x42f53b(0xa2))/0x1+-parseInt(_0x42f53b(0x98))/0x2+parseInt(_0x42f53b(0xa1))/0x3+-parseInt(_0x42f53b(0x9c))/0x4+-parseInt(_0x42f53b(0x8d))/0x5+parseInt(_0x42f53b(0xa0))/0x6*(-parseInt(_0x42f53b(0x8f))/0x7)+-parseInt(_0x42f53b(0x9d))/0x8*(-parseInt(_0x42f53b(0x9a))/0x9);if(_0x48817b===_0x1fbd56)break;else _0x3590d7['push'](_0x3590d7['shift']());}catch(_0x3255be){_0x3590d7['push'](_0x3590d7['shift']());}}}(a33_0x4e20,0x4a6ea));import{getBffScriptInfo}from'../../core/api-client.js';function a33_0x4e20(){const _0x18c54a=['248008HkMFYN','version','number','36695guipSw','verbose','1812797fwHwxn','description','num','read','bff','Get\x20Backend\x20Function\x20script\x20details\x20by\x20ID','updateUserName','Script\x20ID','createdTime','118152KnJPaa','bool','8514tTJsVv','(none)','458176JyYxfb','5752tYsBWJ','scriptType','appCode','6kTHcyL','937914tzMHxR'];a33_0x4e20=function(){return _0x18c54a;};return a33_0x4e20();}export const bffDetail={'service':a33_0x2c323e(0x93),'command':'detail','description':a33_0x2c323e(0x94),'risk':a33_0x2c323e(0x92),'flags':[{'name':'id','type':a33_0x2c323e(0xa4),'required':!![],'description':a33_0x2c323e(0x96)},{'name':a33_0x2c323e(0x8e),'type':'boolean','description':'Return\x20full\x20raw\x20script\x20object'}],async 'execute'(_0x2d4e65){const _0x4d74ac=a33_0x2c323e,_0x34faeb=await getBffScriptInfo(_0x2d4e65[_0x4d74ac(0x91)]('id')),_0x1b829a=_0x2d4e65[_0x4d74ac(0x99)](_0x4d74ac(0x8e));if(_0x1b829a)return{'ok':!![],'data':_0x34faeb};return{'ok':!![],'data':{'id':_0x34faeb['id'],'functionName':_0x34faeb['functionName']??'','version':_0x34faeb[_0x4d74ac(0xa3)]??'','updateUserName':_0x34faeb[_0x4d74ac(0x95)]??'','appCode':_0x34faeb[_0x4d74ac(0x9f)],'scriptType':_0x34faeb[_0x4d74ac(0x9e)],'description':_0x34faeb[_0x4d74ac(0x90)]||_0x4d74ac(0x9b),'createdTime':_0x34faeb[_0x4d74ac(0x97)]??'','updatedTime':_0x34faeb['updatedTime']??'','scriptContent':_0x34faeb['scriptContent']??''}};}};