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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/README.md +28 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.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/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/table-diff-shared.js +1 -1
  94. package/lib/commands/db/tables.js +1 -1
  95. package/lib/commands/db/test.js +1 -1
  96. package/lib/commands/db/update.js +1 -1
  97. package/lib/commands/doctor.js +1 -1
  98. package/lib/commands/file/index.js +1 -1
  99. package/lib/commands/issue/index.js +1 -1
  100. package/lib/commands/issue/nudge.js +1 -1
  101. package/lib/commands/issue/report.js +1 -1
  102. package/lib/commands/issue/shared.js +1 -1
  103. package/lib/commands/kb/create.js +1 -1
  104. package/lib/commands/kb/delete.js +1 -1
  105. package/lib/commands/kb/detail.js +1 -1
  106. package/lib/commands/kb/index.js +1 -1
  107. package/lib/commands/kb/list.js +1 -1
  108. package/lib/commands/kb/search.js +1 -1
  109. package/lib/commands/kb/shared.js +1 -1
  110. package/lib/commands/kb/update.js +1 -1
  111. package/lib/commands/logs/index.js +1 -1
  112. package/lib/commands/menu/asset-update.js +1 -1
  113. package/lib/commands/menu/delete.js +1 -1
  114. package/lib/commands/menu/external-link-create.js +1 -1
  115. package/lib/commands/menu/external-link-update.js +1 -1
  116. package/lib/commands/menu/group-create.js +1 -1
  117. package/lib/commands/menu/group-update.js +1 -1
  118. package/lib/commands/menu/index.js +1 -1
  119. package/lib/commands/menu/list.js +1 -1
  120. package/lib/commands/menu/move.js +1 -1
  121. package/lib/commands/menu/regroup-start.js +1 -1
  122. package/lib/commands/menu/rename.js +1 -1
  123. package/lib/commands/menu/shared/compare-table.js +1 -1
  124. package/lib/commands/menu/shared/delete-plan.js +1 -1
  125. package/lib/commands/menu/shared/facts.js +1 -1
  126. package/lib/commands/menu/shared/index.js +1 -1
  127. package/lib/commands/menu/shared/inquirer.js +1 -1
  128. package/lib/commands/menu/shared/local-pages.js +1 -1
  129. package/lib/commands/menu/shared/logic.js +1 -1
  130. package/lib/commands/menu/shared/mutations.js +1 -1
  131. package/lib/commands/menu/shared/service.js +1 -1
  132. package/lib/commands/menu/shared/sync-core.js +1 -1
  133. package/lib/commands/menu/shared/update-core.js +1 -1
  134. package/lib/commands/menu/shared/valid-url.js +1 -1
  135. package/lib/commands/menu/sync.js +1 -1
  136. package/lib/commands/menu/visibility-update.js +1 -1
  137. package/lib/commands/notification/config-create.js +1 -1
  138. package/lib/commands/notification/config-delete.js +1 -1
  139. package/lib/commands/notification/config-list.js +1 -1
  140. package/lib/commands/notification/config-update.js +1 -1
  141. package/lib/commands/notification/index.js +1 -1
  142. package/lib/commands/notification/shared.js +1 -1
  143. package/lib/commands/ocr/index.js +1 -1
  144. package/lib/commands/page/create.js +1 -1
  145. package/lib/commands/page/custom/detail.js +1 -1
  146. package/lib/commands/page/custom/list.js +1 -1
  147. package/lib/commands/page/custom/publish.js +1 -1
  148. package/lib/commands/page/custom/shared.js +1 -1
  149. package/lib/commands/page/custom/syntax.js +1 -1
  150. package/lib/commands/page/custom/template.js +1 -1
  151. package/lib/commands/page/custom/update.js +1 -1
  152. package/lib/commands/page/data-list-status.js +1 -1
  153. package/lib/commands/page/generate-start.js +1 -1
  154. package/lib/commands/page/generate-status.js +1 -1
  155. package/lib/commands/page/index.js +1 -1
  156. package/lib/commands/page/pull.js +1 -1
  157. package/lib/commands/page/push.js +1 -1
  158. package/lib/commands/page/relation-audit.js +1 -1
  159. package/lib/commands/page/restore.js +1 -1
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/sync.js +1 -1
  162. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  163. package/lib/commands/project/create/format-elapsed.js +1 -1
  164. package/lib/commands/project/create/main.js +1 -1
  165. package/lib/commands/project/create/materialize-project-template.js +1 -1
  166. package/lib/commands/project/create/project-name.js +1 -1
  167. package/lib/commands/project/create/project-template-archive.js +1 -1
  168. package/lib/commands/project/create/project-template-path.js +1 -1
  169. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  170. package/lib/commands/project/create/use-format-code.js +1 -1
  171. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  172. package/lib/commands/project/index.js +1 -1
  173. package/lib/commands/project/upgrade.js +1 -1
  174. package/lib/commands/registry.js +1 -1
  175. package/lib/commands/role/delete.js +1 -1
  176. package/lib/commands/role/detail.js +1 -1
  177. package/lib/commands/role/index.js +1 -1
  178. package/lib/commands/role/list.js +1 -1
  179. package/lib/commands/role/shared.js +1 -1
  180. package/lib/commands/role/update.js +1 -1
  181. package/lib/commands/role/user-add.js +1 -1
  182. package/lib/commands/role/user-remove.js +1 -1
  183. package/lib/commands/role/user-resolve.js +1 -1
  184. package/lib/commands/run/index.js +1 -1
  185. package/lib/commands/schema.js +1 -1
  186. package/lib/commands/sql/create.js +1 -1
  187. package/lib/commands/sql/delete.js +1 -1
  188. package/lib/commands/sql/detail.js +1 -1
  189. package/lib/commands/sql/exec.js +1 -1
  190. package/lib/commands/sql/index.js +1 -1
  191. package/lib/commands/sql/list.js +1 -1
  192. package/lib/commands/sql/pull.js +1 -1
  193. package/lib/commands/sql/push.js +1 -1
  194. package/lib/commands/sql/shared.js +1 -1
  195. package/lib/commands/sql/status.js +1 -1
  196. package/lib/commands/sql/validate.js +1 -1
  197. package/lib/commands/task/index.js +1 -1
  198. package/lib/commands/task/status.js +1 -1
  199. package/lib/commands/tenant/index.js +1 -1
  200. package/lib/commands/tenant/members-list.js +1 -1
  201. package/lib/commands/tenant/shared.js +1 -1
  202. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  203. package/lib/commands/user-account/index.js +1 -1
  204. package/lib/commands/workspace/add.js +1 -1
  205. package/lib/commands/workspace/index.js +1 -1
  206. package/lib/commands/workspace/remove.js +1 -1
  207. package/lib/config/domain-config.js +1 -1
  208. package/lib/config/schema.js +1 -1
  209. package/lib/constant/cdn.js +1 -1
  210. package/lib/constant/cli.js +1 -1
  211. package/lib/constant/defaults.js +1 -1
  212. package/lib/constant/domain.js +1 -1
  213. package/lib/constant/env.js +1 -1
  214. package/lib/constant/output.js +1 -1
  215. package/lib/constant/paths.js +1 -1
  216. package/lib/constant/region.js +1 -1
  217. package/lib/constant/risk.js +1 -1
  218. package/lib/context/app-resolver.js +1 -1
  219. package/lib/context/auth-resolver.js +1 -1
  220. package/lib/context/config-loader.js +1 -1
  221. package/lib/context.js +1 -1
  222. package/lib/core/alias-resolver.js +1 -1
  223. package/lib/core/api-client.js +1 -1
  224. package/lib/core/bff/config.js +1 -1
  225. package/lib/core/bff/file-system.js +1 -1
  226. package/lib/core/bff/hash.js +1 -1
  227. package/lib/core/bff/lock.js +1 -1
  228. package/lib/core/bff/utils.js +1 -1
  229. package/lib/core/db-resolver.js +1 -1
  230. package/lib/core/page/file-system.js +1 -1
  231. package/lib/core/page/hash.js +1 -1
  232. package/lib/core/page/lock.js +1 -1
  233. package/lib/core/sql-index-auditor.js +1 -1
  234. package/lib/core/sql-sync/config.js +1 -1
  235. package/lib/core/sql-sync/file-system.js +1 -1
  236. package/lib/core/sql-sync/hash.js +1 -1
  237. package/lib/core/sql-sync/lock.js +1 -1
  238. package/lib/core/sql-sync/utils.js +1 -1
  239. package/lib/core/sql-validator.js +1 -1
  240. package/lib/errors.js +1 -1
  241. package/lib/framework/build-all-flags.js +1 -1
  242. package/lib/framework/error-output.js +1 -1
  243. package/lib/framework/explicit-yes.js +1 -1
  244. package/lib/framework/flags.js +1 -1
  245. package/lib/framework/help.js +1 -1
  246. package/lib/framework/index.js +1 -1
  247. package/lib/framework/output.js +1 -1
  248. package/lib/framework/response.js +1 -1
  249. package/lib/framework/runner-alias.js +1 -1
  250. package/lib/framework/runner.js +1 -1
  251. package/lib/framework/schema-export.js +1 -1
  252. package/lib/framework/types.js +1 -1
  253. package/lib/generated/build-info.d.ts +4 -4
  254. package/lib/generated/build-info.js +1 -1
  255. package/lib/help.js +1 -1
  256. package/lib/postinstall.js +1 -1
  257. package/lib/runtime/confirmation.js +1 -1
  258. package/lib/runtime/event.js +1 -1
  259. package/lib/runtime/index.js +1 -1
  260. package/lib/runtime/queue.js +1 -1
  261. package/lib/runtime/resolve.js +1 -1
  262. package/lib/skills/builtin-skill.js +1 -1
  263. package/lib/skills/main.js +1 -1
  264. package/lib/skills/npx-skills-add.js +1 -1
  265. package/lib/skills/skill-presence.js +1 -1
  266. package/lib/telemetry/cli-command-trace.js +1 -1
  267. package/lib/telemetry/cli-help-trace.js +1 -1
  268. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  269. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  270. package/lib/telemetry/send-cli-trace-log.js +1 -1
  271. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  272. package/lib/utils/ai_config.js +1 -1
  273. package/lib/utils/apply-jq-filter.js +1 -1
  274. package/lib/utils/cdn-config.js +1 -1
  275. package/lib/utils/check-sdk-version.js +1 -1
  276. package/lib/utils/cli-version-check.js +1 -1
  277. package/lib/utils/cli-version-policy.js +1 -1
  278. package/lib/utils/config.js +1 -1
  279. package/lib/utils/entity-with-id.js +1 -1
  280. package/lib/utils/file-utils.js +1 -1
  281. package/lib/utils/guides-cdn.js +1 -1
  282. package/lib/utils/http-client.js +1 -1
  283. package/lib/utils/is-non-interactive.js +1 -1
  284. package/lib/utils/logger.js +1 -1
  285. package/lib/utils/params.js +1 -1
  286. package/lib/utils/platform.js +1 -1
  287. package/lib/utils/sleep.js +1 -1
  288. package/lib/utils/template-replacer.js +1 -1
  289. package/lib/utils/update-notice.js +1 -1
  290. package/lib/utils/version.js +1 -1
  291. package/lib/utils/with-active-cookie.js +1 -1
  292. package/lib/utils/write-cli-side-channel.js +1 -1
  293. package/package.json +1 -1
  294. package/skills/rabetbase/SKILL.md +1 -1
  295. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x4be717,_0x428708){const _0x4055f5=a18_0xea1c,_0x57a196=_0x4be717();while(!![]){try{const _0x45f233=-parseInt(_0x4055f5(0x78))/0x1*(parseInt(_0x4055f5(0x90))/0x2)+parseInt(_0x4055f5(0x8a))/0x3*(parseInt(_0x4055f5(0x80))/0x4)+parseInt(_0x4055f5(0x8d))/0x5*(-parseInt(_0x4055f5(0x81))/0x6)+parseInt(_0x4055f5(0x7f))/0x7*(-parseInt(_0x4055f5(0x8f))/0x8)+parseInt(_0x4055f5(0x79))/0x9*(parseInt(_0x4055f5(0x82))/0xa)+parseInt(_0x4055f5(0x85))/0xb*(parseInt(_0x4055f5(0x83))/0xc)+parseInt(_0x4055f5(0x84))/0xd;if(_0x45f233===_0x428708)break;else _0x57a196['push'](_0x57a196['shift']());}catch(_0x500888){_0x57a196['push'](_0x57a196['shift']());}}}(a18_0x5bd8,0x305be));import{getMultiAppConfigs}from'../../utils/config.js';function a18_0x5bd8(){const _0x1c5939=['10dgbzoW','bool','112zVIyGv','35042NsKlLr','21qHSSPO','18ZOkitK','map','length','selectedAppName','validation','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','57841KoOBXp','606028GniKpg','866196qxSrEr','1422130zidtDo','660ODbKKa','4669795iJGaFk','35057QuEBSE','filter','name','join','global','3maSiiX','project','App\x20\x22'];a18_0x5bd8=function(){return _0x1c5939;};return a18_0x5bd8();}function a18_0xea1c(_0x5d5d57,_0x40827d){_0x5d5d57=_0x5d5d57-0x78;const _0x5bd877=a18_0x5bd8();let _0xea1c56=_0x5bd877[_0x5d5d57];return _0xea1c56;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x81154e,_0x4e6ddd){const _0x58c734=a18_0xea1c;if(_0x4e6ddd)return null;const _0x3dca25=_0x81154e[_0x58c734(0x8e)](_0x58c734(0x89))?'merged':_0x58c734(0x8b);let _0x111a81=getMultiAppConfigs(_0x3dca25);if(!_0x111a81||_0x111a81[_0x58c734(0x7b)]===0x0)return null;if(_0x81154e[_0x58c734(0x7c)]){const _0xe0c422=_0x111a81[_0x58c734(0x86)](_0x308672=>_0x308672[_0x58c734(0x87)]===_0x81154e[_0x58c734(0x7c)]);if(_0xe0c422[_0x58c734(0x7b)]===0x0){const _0xd9dbe7=_0x111a81[_0x58c734(0x7a)](_0x15b01e=>_0x15b01e[_0x58c734(0x87)])[_0x58c734(0x88)](',\x20');throw CliErrors[_0x58c734(0x7d)](_0x58c734(0x8c)+_0x81154e[_0x58c734(0x7c)]+_0x58c734(0x7e)+_0xd9dbe7);}_0x111a81=_0xe0c422;}return _0x111a81;}
1
+ (function(_0x346a47,_0x141b91){const _0x1c7a2f=a18_0x59cc,_0x788f9c=_0x346a47();while(!![]){try{const _0x387fb3=-parseInt(_0x1c7a2f(0xeb))/0x1*(-parseInt(_0x1c7a2f(0xed))/0x2)+-parseInt(_0x1c7a2f(0xf0))/0x3+parseInt(_0x1c7a2f(0xee))/0x4*(parseInt(_0x1c7a2f(0xe8))/0x5)+parseInt(_0x1c7a2f(0xf1))/0x6+parseInt(_0x1c7a2f(0xf3))/0x7+-parseInt(_0x1c7a2f(0xec))/0x8*(-parseInt(_0x1c7a2f(0xf2))/0x9)+-parseInt(_0x1c7a2f(0xe7))/0xa*(parseInt(_0x1c7a2f(0xe6))/0xb);if(_0x387fb3===_0x141b91)break;else _0x788f9c['push'](_0x788f9c['shift']());}catch(_0x263337){_0x788f9c['push'](_0x788f9c['shift']());}}}(a18_0x3c7b,0xede52));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';function a18_0x3c7b(){const _0x1a106b=['selectedAppName','11xBasRn','21573040eVNlwI','33820UKHUMd','merged','project','1774ciFJLV','8xUGmcY','622wqtxVt','452TGxsnB','global','3465339kCzFSC','7257276lJLmoc','13514751bWABoe','1817228BmvIWE','bool','filter','map','length','name','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','validation'];a18_0x3c7b=function(){return _0x1a106b;};return a18_0x3c7b();}function a18_0x59cc(_0x415460,_0x1144ed){_0x415460=_0x415460-0xe0;const _0x3c7b4c=a18_0x3c7b();let _0x59ccd4=_0x3c7b4c[_0x415460];return _0x59ccd4;}export function resolveTargetApps(_0x73d452,_0x2e2f32){const _0x5e7166=a18_0x59cc;if(_0x2e2f32)return null;const _0x47f3b2=_0x73d452[_0x5e7166(0xf4)](_0x5e7166(0xef))?_0x5e7166(0xe9):_0x5e7166(0xea);let _0x581c75=getMultiAppConfigs(_0x47f3b2);if(!_0x581c75||_0x581c75['length']===0x0)return null;if(_0x73d452[_0x5e7166(0xe5)]){const _0x68f6f3=_0x581c75[_0x5e7166(0xf5)](_0x2ecfa7=>_0x2ecfa7[_0x5e7166(0xe2)]===_0x73d452[_0x5e7166(0xe5)]);if(_0x68f6f3[_0x5e7166(0xe1)]===0x0){const _0x39de9e=_0x581c75[_0x5e7166(0xe0)](_0x529bf4=>_0x529bf4[_0x5e7166(0xe2)])['join'](',\x20');throw CliErrors[_0x5e7166(0xe4)]('App\x20\x22'+_0x73d452[_0x5e7166(0xe5)]+_0x5e7166(0xe3)+_0x39de9e);}_0x581c75=_0x68f6f3;}return _0x581c75;}
@@ -1 +1 @@
1
- (function(_0x483c80,_0x167444){const _0x439cba=a19_0x116c,_0x4c2613=_0x483c80();while(!![]){try{const _0xc1209e=parseInt(_0x439cba(0x171))/0x1+parseInt(_0x439cba(0x16e))/0x2+-parseInt(_0x439cba(0x170))/0x3*(parseInt(_0x439cba(0x16a))/0x4)+-parseInt(_0x439cba(0x173))/0x5*(parseInt(_0x439cba(0x16b))/0x6)+parseInt(_0x439cba(0x172))/0x7*(-parseInt(_0x439cba(0x16f))/0x8)+-parseInt(_0x439cba(0x16c))/0x9+parseInt(_0x439cba(0x16d))/0xa*(parseInt(_0x439cba(0x174))/0xb);if(_0xc1209e===_0x167444)break;else _0x4c2613['push'](_0x4c2613['shift']());}catch(_0x49f56a){_0x4c2613['push'](_0x4c2613['shift']());}}}(a19_0x5aa9,0x1eb8c));import{appListDefinition}from'../../commands/app/list.js';function a19_0x5aa9(){const _0x3fa6e5=['398124LNlmfT','56024kJtJay','184293usxxuh','73126yBIsDi','175AXzQdh','401110dsAvcV','11ljDJvf','4zPnsiU','6Onwhig','1216458FohhJB','3055380ktgmCl'];a19_0x5aa9=function(){return _0x3fa6e5;};return a19_0x5aa9();}import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0x116c(_0x439764,_0x136936){_0x439764=_0x439764-0x16a;const _0x5aa954=a19_0x5aa9();let _0x116cf3=_0x5aa954[_0x439764];return _0x116cf3;}export const appDefinitions=[appListDefinition,appMembersListDefinition];
1
+ (function(_0x6653d5,_0x476c7c){const _0x1f75ef=a19_0xac3e,_0x5b64e8=_0x6653d5();while(!![]){try{const _0x4b6042=parseInt(_0x1f75ef(0x168))/0x1+parseInt(_0x1f75ef(0x16d))/0x2*(parseInt(_0x1f75ef(0x165))/0x3)+parseInt(_0x1f75ef(0x16c))/0x4+parseInt(_0x1f75ef(0x167))/0x5+-parseInt(_0x1f75ef(0x169))/0x6+-parseInt(_0x1f75ef(0x166))/0x7*(-parseInt(_0x1f75ef(0x16b))/0x8)+-parseInt(_0x1f75ef(0x16a))/0x9;if(_0x4b6042===_0x476c7c)break;else _0x5b64e8['push'](_0x5b64e8['shift']());}catch(_0x3f0e5d){_0x5b64e8['push'](_0x5b64e8['shift']());}}}(a19_0x4279,0x7c65d));import{appListDefinition}from'../../commands/app/list.js';function a19_0x4279(){const _0x2bde0d=['2504076bvdQVz','17771238giClmo','8JqguJB','2703580VNiGdT','10Kpzzuc','13647GaMFPK','4734254zcousu','4043160EYdCYn','717867QihghA'];a19_0x4279=function(){return _0x2bde0d;};return a19_0x4279();}import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0xac3e(_0x58b9f1,_0x10fc8a){_0x58b9f1=_0x58b9f1-0x165;const _0x427930=a19_0x4279();let _0xac3ea=_0x427930[_0x58b9f1];return _0xac3ea;}export const appDefinitions=[appListDefinition,appMembersListDefinition];
@@ -1 +1 @@
1
- const a20_0x447b66=a20_0x56e7;(function(_0x4a7380,_0x58e280){const _0x3435eb=a20_0x56e7,_0x6c8e23=_0x4a7380();while(!![]){try{const _0x2c4a28=-parseInt(_0x3435eb(0x1cb))/0x1*(parseInt(_0x3435eb(0x1ac))/0x2)+parseInt(_0x3435eb(0x1ae))/0x3+-parseInt(_0x3435eb(0x1c7))/0x4+-parseInt(_0x3435eb(0x1b2))/0x5+-parseInt(_0x3435eb(0x1c1))/0x6*(parseInt(_0x3435eb(0x1b3))/0x7)+-parseInt(_0x3435eb(0x1bc))/0x8*(parseInt(_0x3435eb(0x1b8))/0x9)+parseInt(_0x3435eb(0x1c2))/0xa;if(_0x2c4a28===_0x58e280)break;else _0x6c8e23['push'](_0x6c8e23['shift']());}catch(_0x2ac746){_0x6c8e23['push'](_0x6c8e23['shift']());}}}(a20_0x24da,0x8139b));import{readRawConfigWithLayers}from'../../context.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a20_0x24da(){const _0x28ac17=['117999ouqLBO','list','object','mergedCli','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','9jCAXFK','projectPath','projectConfig','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','8214664yTCyjK','\x20config','find','defaultApp','global','252pSMtQZ','32978710mkFrrK','globalPath','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','remote','bool','2607020PDFNAD','boolean','appcode','globalConfig','37KxnaOn','project','map','app','No\x20apps\x20configured','entries','keys','optional','push','.\x20Use\x20`','merged','length','apps','9302PVIbhb','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','1099278vdxRAC','\x20in\x20','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','read','2881605pXWpfu'];a20_0x24da=function(){return _0x28ac17;};return a20_0x24da();}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(_0x1e0a3b,_0x2f5d3c){const _0x3072f7=a20_0x56e7,_0x457fc7=[],_0x5562c3=_0x1e0a3b[_0x3072f7(0x1ab)]&&typeof _0x1e0a3b[_0x3072f7(0x1ab)]===_0x3072f7(0x1b5)?_0x1e0a3b[_0x3072f7(0x1ab)]:{},_0x1b7042=_0x1e0a3b[_0x3072f7(0x1bf)]||undefined,_0x3ff6be=_0x1b7042??(Object[_0x3072f7(0x1d1)](_0x5562c3)[_0x3072f7(0x1aa)]===0x1?Object[_0x3072f7(0x1d1)](_0x5562c3)[0x0]:undefined);for(const [_0x1dac0f,_0x4c96ed]of Object[_0x3072f7(0x1d0)](_0x5562c3)){if(!_0x4c96ed||typeof _0x4c96ed!==_0x3072f7(0x1b5)||!_0x4c96ed['appcode'])continue;_0x457fc7[_0x3072f7(0x1a7)]({'name':_0x1dac0f,'appcode':_0x4c96ed[_0x3072f7(0x1c9)],'named':!![],'definedIn':_0x2f5d3c,'isDefault':_0x1dac0f===_0x3ff6be,...buildAppProfileListFields(_0x4c96ed)});}return _0x457fc7;}function a20_0x56e7(_0x2eb393,_0x56398f){_0x2eb393=_0x2eb393-0x1a6;const _0x24da55=a20_0x24da();let _0x56e79=_0x24da55[_0x2eb393];return _0x56e79;}function buildMergedItems(_0x2d0cc8,_0x2bd36f){const _0x106c2b=a20_0x56e7,{apps:apps={}}=_0x2d0cc8,_0x3fa440=_0x2d0cc8['defaultApp'],_0x4ff5be=_0x3fa440??(Object['keys'](apps)[_0x106c2b(0x1aa)]===0x1?Object['keys'](apps)[0x0]:undefined),_0x2e058a=_0x2bd36f[_0x106c2b(0x1ca)][_0x106c2b(0x1ab)]&&typeof _0x2bd36f[_0x106c2b(0x1ca)][_0x106c2b(0x1ab)]===_0x106c2b(0x1b5)?_0x2bd36f[_0x106c2b(0x1ca)][_0x106c2b(0x1ab)]:{},_0x4ea0f6=_0x2bd36f[_0x106c2b(0x1ba)]['apps']&&typeof _0x2bd36f[_0x106c2b(0x1ba)][_0x106c2b(0x1ab)]===_0x106c2b(0x1b5)?_0x2bd36f[_0x106c2b(0x1ba)][_0x106c2b(0x1ab)]:{},_0x1ce2b7=Object[_0x106c2b(0x1d0)](apps),_0x13534e=_0x1ce2b7[_0x106c2b(0x1cd)](([_0x720c37,_0x5d40ac])=>({'name':_0x720c37,'appcode':_0x5d40ac['appcode'],'named':!![],'definedIn':appDefinedIn(_0x720c37,_0x2e058a,_0x4ea0f6),'isDefault':_0x720c37===_0x4ff5be,...buildAppProfileListFields(_0x5d40ac)}));return _0x13534e;}function validateAppListFlags(_0x8534d){const _0x2ec763=a20_0x56e7;if(!_0x8534d['bool'](_0x2ec763(0x1c5)))return;if(!_0x8534d[_0x2ec763(0x1c6)](_0x2ec763(0x1c0))&&!_0x8534d['bool']('project'))return;throw CliErrors['validation'](_0x2ec763(0x1bb),'Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.');}async function execute(_0x19f79e){const _0x5b8e17=a20_0x56e7;validateAppListFlags(_0x19f79e);if(_0x19f79e[_0x5b8e17(0x1c6)]('remote'))return{'ok':!![],'data':await listRemoteAppDirectory(_0x19f79e)};const _0x10adc0=_0x19f79e[_0x5b8e17(0x1c6)](_0x5b8e17(0x1c0)),_0x5375a6=_0x19f79e[_0x5b8e17(0x1c6)]('project'),_0xc81f3e=_0x10adc0?'global':_0x5375a6?_0x5b8e17(0x1cc):_0x5b8e17(0x1a9),{config:_0xf8d4e1,layers:_0x3819f0}=readRawConfigWithLayers(),_0x3b6ab2=resolveDefaultAppSource(_0x3819f0),{defaultApp:_0x2ed42c}=_0xf8d4e1;let _0xce63d5,_0x690c;switch(_0xc81f3e){case _0x5b8e17(0x1c0):_0xce63d5=buildItemsFromLayer(_0x3819f0[_0x5b8e17(0x1ca)],_0x5b8e17(0x1c0)),_0x690c=_0x3819f0['globalPath'];break;case _0x5b8e17(0x1cc):_0xce63d5=buildItemsFromLayer(_0x3819f0[_0x5b8e17(0x1ba)],_0x5b8e17(0x1cc)),_0x690c=_0x3819f0[_0x5b8e17(0x1b9)];break;default:_0xce63d5=buildMergedItems(_0xf8d4e1,_0x3819f0);break;}enrichAppListItemsWithMergedSelection(_0xce63d5,_0x19f79e[_0x5b8e17(0x1b6)]);if(_0xce63d5[_0x5b8e17(0x1aa)]===0x0){const _0x32edd6=_0xc81f3e==='merged'?'':_0x5b8e17(0x1af)+_0xc81f3e+_0x5b8e17(0x1bd);return{'ok':!![],'data':[],'message':_0x5b8e17(0x1cf)+_0x32edd6+_0x5b8e17(0x1a8)+CLI_BIN_NAME+_0x5b8e17(0x1c4)};}const _0x48f20f=_0xce63d5[_0x5b8e17(0x1be)](_0x559b7f=>_0x559b7f['isCurrent']===!![]),_0x247d7c=_0x2ed42c??_0x48f20f?.['name']??null,_0x2ab8da=_0xc81f3e===_0x5b8e17(0x1a9)?{'globalPath':_0x3819f0[_0x5b8e17(0x1c3)]??null,'projectPath':_0x3819f0[_0x5b8e17(0x1b9)]??null,'defaultApp':_0x247d7c,'defaultAppSource':_0x2ed42c!=null?_0x3b6ab2:null}:{'scope':_0xc81f3e,'configPath':_0x690c??null};return{'ok':!![],'data':{'items':_0xce63d5,'meta':_0x2ab8da}};}export const appListDefinition={'service':a20_0x447b66(0x1ce),'command':a20_0x447b66(0x1b4),'description':a20_0x447b66(0x1b0),'risk':a20_0x447b66(0x1b1),'auth':a20_0x447b66(0x1a6),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'remote','type':a20_0x447b66(0x1c8),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','default':![]},{'name':a20_0x447b66(0x1c0),'type':a20_0x447b66(0x1c8),'description':a20_0x447b66(0x1ad),'default':![]},{'name':a20_0x447b66(0x1cc),'type':a20_0x447b66(0x1c8),'description':a20_0x447b66(0x1b7),'default':![]}],async 'validate'(_0x68a6a6){validateAppListFlags(_0x68a6a6);},'execute':execute};
1
+ const a20_0x35dc54=a20_0x4514;(function(_0x37a906,_0x3d797b){const _0x439a88=a20_0x4514,_0x5bd7a8=_0x37a906();while(!![]){try{const _0x4c7b35=parseInt(_0x439a88(0x13e))/0x1+parseInt(_0x439a88(0x126))/0x2*(parseInt(_0x439a88(0x136))/0x3)+-parseInt(_0x439a88(0x13d))/0x4*(-parseInt(_0x439a88(0x14d))/0x5)+parseInt(_0x439a88(0x131))/0x6+-parseInt(_0x439a88(0x139))/0x7*(-parseInt(_0x439a88(0x14f))/0x8)+parseInt(_0x439a88(0x144))/0x9+-parseInt(_0x439a88(0x129))/0xa;if(_0x4c7b35===_0x3d797b)break;else _0x5bd7a8['push'](_0x5bd7a8['shift']());}catch(_0x1918a7){_0x5bd7a8['push'](_0x5bd7a8['shift']());}}}(a20_0x2993,0x7d139));function a20_0x4514(_0x526871,_0x11ab7e){_0x526871=_0x526871-0x126;const _0x29930b=a20_0x2993();let _0x4514b8=_0x29930b[_0x526871];return _0x4514b8;}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(_0x39e401,_0x362870){const _0x7650d7=a20_0x4514,_0x15569d=[],_0xf304e0=_0x39e401[_0x7650d7(0x14c)]&&typeof _0x39e401[_0x7650d7(0x14c)]===_0x7650d7(0x138)?_0x39e401[_0x7650d7(0x14c)]:{},_0x4fb02e=_0x39e401[_0x7650d7(0x134)]||undefined,_0x921f03=_0x4fb02e??(Object['keys'](_0xf304e0)[_0x7650d7(0x132)]===0x1?Object[_0x7650d7(0x148)](_0xf304e0)[0x0]:undefined);for(const [_0x836e19,_0x172fd8]of Object['entries'](_0xf304e0)){if(!_0x172fd8||typeof _0x172fd8!==_0x7650d7(0x138)||!_0x172fd8[_0x7650d7(0x12e)])continue;_0x15569d[_0x7650d7(0x13b)]({'name':_0x836e19,'appcode':_0x172fd8[_0x7650d7(0x12e)],'named':!![],'definedIn':_0x362870,'isDefault':_0x836e19===_0x921f03,...buildAppProfileListFields(_0x172fd8)});}return _0x15569d;}function buildMergedItems(_0x348999,_0x4a1f02){const _0x2220b2=a20_0x4514,{apps:apps={}}=_0x348999,_0x43b2d5=_0x348999[_0x2220b2(0x134)],_0x43aeb2=_0x43b2d5??(Object[_0x2220b2(0x148)](apps)[_0x2220b2(0x132)]===0x1?Object[_0x2220b2(0x148)](apps)[0x0]:undefined),_0x5a17e7=_0x4a1f02['globalConfig'][_0x2220b2(0x14c)]&&typeof _0x4a1f02[_0x2220b2(0x133)]['apps']===_0x2220b2(0x138)?_0x4a1f02[_0x2220b2(0x133)][_0x2220b2(0x14c)]:{},_0x56ccf4=_0x4a1f02[_0x2220b2(0x14e)][_0x2220b2(0x14c)]&&typeof _0x4a1f02[_0x2220b2(0x14e)][_0x2220b2(0x14c)]===_0x2220b2(0x138)?_0x4a1f02[_0x2220b2(0x14e)]['apps']:{},_0x25ee46=Object['entries'](apps),_0x223989=_0x25ee46[_0x2220b2(0x12b)](([_0x2ea93d,_0x3b7e26])=>({'name':_0x2ea93d,'appcode':_0x3b7e26[_0x2220b2(0x12e)],'named':!![],'definedIn':appDefinedIn(_0x2ea93d,_0x5a17e7,_0x56ccf4),'isDefault':_0x2ea93d===_0x43aeb2,...buildAppProfileListFields(_0x3b7e26)}));return _0x223989;}function validateAppListFlags(_0x199cbe){const _0x316dc0=a20_0x4514;if(!_0x199cbe[_0x316dc0(0x140)](_0x316dc0(0x13a)))return;if(!_0x199cbe[_0x316dc0(0x140)](_0x316dc0(0x12f))&&!_0x199cbe['bool']('project'))return;throw CliErrors[_0x316dc0(0x130)](_0x316dc0(0x142),_0x316dc0(0x145));}async function execute(_0xffa9b0){const _0xc2535b=a20_0x4514;validateAppListFlags(_0xffa9b0);if(_0xffa9b0[_0xc2535b(0x140)](_0xc2535b(0x13a)))return{'ok':!![],'data':await listRemoteAppDirectory(_0xffa9b0)};const _0x412a74=_0xffa9b0[_0xc2535b(0x140)]('global'),_0x74b3b0=_0xffa9b0[_0xc2535b(0x140)](_0xc2535b(0x146)),_0x46b78b=_0x412a74?_0xc2535b(0x12f):_0x74b3b0?_0xc2535b(0x146):_0xc2535b(0x149),{config:_0x47f538,layers:_0xcad55c}=readRawConfigWithLayers(),_0xded4cd=resolveDefaultAppSource(_0xcad55c),{defaultApp:_0x42788d}=_0x47f538;let _0xe78d3a,_0x32ea5f;switch(_0x46b78b){case'global':_0xe78d3a=buildItemsFromLayer(_0xcad55c[_0xc2535b(0x133)],_0xc2535b(0x12f)),_0x32ea5f=_0xcad55c[_0xc2535b(0x137)];break;case _0xc2535b(0x146):_0xe78d3a=buildItemsFromLayer(_0xcad55c['projectConfig'],_0xc2535b(0x146)),_0x32ea5f=_0xcad55c[_0xc2535b(0x13c)];break;default:_0xe78d3a=buildMergedItems(_0x47f538,_0xcad55c);break;}enrichAppListItemsWithMergedSelection(_0xe78d3a,_0xffa9b0['mergedCli']);if(_0xe78d3a[_0xc2535b(0x132)]===0x0){const _0x5d7857=_0x46b78b===_0xc2535b(0x149)?'':_0xc2535b(0x14a)+_0x46b78b+_0xc2535b(0x150);return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x5d7857+_0xc2535b(0x141)+CLI_BIN_NAME+_0xc2535b(0x151)};}const _0x47c6bd=_0xe78d3a[_0xc2535b(0x12d)](_0x1ecb81=>_0x1ecb81[_0xc2535b(0x12a)]===!![]),_0x394f8b=_0x42788d??_0x47c6bd?.[_0xc2535b(0x13f)]??null,_0x24529e=_0x46b78b==='merged'?{'globalPath':_0xcad55c['globalPath']??null,'projectPath':_0xcad55c[_0xc2535b(0x13c)]??null,'defaultApp':_0x394f8b,'defaultAppSource':_0x42788d!=null?_0xded4cd:null}:{'scope':_0x46b78b,'configPath':_0x32ea5f??null};return{'ok':!![],'data':{'items':_0xe78d3a,'meta':_0x24529e}};}function a20_0x2993(){const _0x261885=['global','validation','5977788GblbEK','length','globalConfig','defaultApp','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','3RfUPpn','globalPath','object','14287jasSFi','remote','push','projectPath','16000aaKQxv','739367zeyQBb','name','bool','.\x20Use\x20`','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','list','1299447VkZycH','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','project','optional','keys','merged','\x20in\x20','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','apps','335kpybqa','projectConfig','3976CuUjBH','\x20config','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','read','565798mfhxXt','app','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','29330110YLdhrb','isCurrent','map','boolean','find','appcode'];a20_0x2993=function(){return _0x261885;};return a20_0x2993();}export const appListDefinition={'service':a20_0x35dc54(0x127),'command':a20_0x35dc54(0x143),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a20_0x35dc54(0x152),'auth':a20_0x35dc54(0x147),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'remote','type':'boolean','description':a20_0x35dc54(0x135),'default':![]},{'name':a20_0x35dc54(0x12f),'type':a20_0x35dc54(0x12c),'description':a20_0x35dc54(0x14b),'default':![]},{'name':a20_0x35dc54(0x146),'type':a20_0x35dc54(0x12c),'description':a20_0x35dc54(0x128),'default':![]}],async 'validate'(_0x28dafb){validateAppListFlags(_0x28dafb);},'execute':execute};
@@ -1 +1 @@
1
- function a21_0x551d(_0x48fca0,_0x3f0f9d){_0x48fca0=_0x48fca0-0x12b;const _0x217860=a21_0x2178();let _0x551d3f=_0x217860[_0x48fca0];return _0x551d3f;}function a21_0x2178(){const _0x184b2c=['read','Found\x20','45912vxznFA','appCode','length','745581woAwYV','2577990TJKNVY','members-list','1456YoHdTa','1428536AkYRFP','4800EzUvJL','2331kaxBGb','List\x20application\x20members\x20with\x20their\x20role\x20memberships','\x20application\x20member(s)','909933OGwSID','8651165kkZuKi'];a21_0x2178=function(){return _0x184b2c;};return a21_0x2178();}const a21_0x35a791=a21_0x551d;(function(_0x49ad29,_0x53d774){const _0x116148=a21_0x551d,_0x6028e=_0x49ad29();while(!![]){try{const _0x32fce1=-parseInt(_0x116148(0x12e))/0x1+parseInt(_0x116148(0x12f))/0x2+parseInt(_0x116148(0x137))/0x3+-parseInt(_0x116148(0x132))/0x4+parseInt(_0x116148(0x138))/0x5+parseInt(_0x116148(0x133))/0x6*(parseInt(_0x116148(0x131))/0x7)+-parseInt(_0x116148(0x12b))/0x8*(parseInt(_0x116148(0x134))/0x9);if(_0x32fce1===_0x53d774)break;else _0x6028e['push'](_0x6028e['shift']());}catch(_0x64a661){_0x6028e['push'](_0x6028e['shift']());}}}(a21_0x2178,0xdbaef));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':'app','command':a21_0x35a791(0x130),'description':a21_0x35a791(0x135),'risk':a21_0x35a791(0x139),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x198844){const _0x323e2b=a21_0x35a791,_0x547e8a=projectAppMembers(await listRoleUsers(_0x198844['appCode']));return{'ok':!![],'data':{'appCode':_0x198844[_0x323e2b(0x12c)],'items':_0x547e8a,'totalCount':_0x547e8a[_0x323e2b(0x12d)]},'message':_0x323e2b(0x13a)+_0x547e8a['length']+_0x323e2b(0x136)};}};
1
+ function a21_0x4834(_0x168cda,_0x491d78){_0x168cda=_0x168cda-0xdb;const _0x2fada8=a21_0x2fad();let _0x483455=_0x2fada8[_0x168cda];return _0x483455;}function a21_0x2fad(){const _0x4af157=['1306197nQybdt','4831128kvDhZj','329792Zemmet','Found\x20','1842cGGKYW','\x20application\x20member(s)','48740wOTFCY','length','15646464CnqEnT','6vPljQF','members-list','141793WQWMnL','4ENkoyt','List\x20application\x20members\x20with\x20their\x20role\x20memberships','10445KyqUas','245sKWavZ','1276kZnhLw','read','app','appCode'];a21_0x2fad=function(){return _0x4af157;};return a21_0x2fad();}const a21_0x24429d=a21_0x4834;(function(_0x4a63f9,_0x7b357){const _0x1d6445=a21_0x4834,_0x1eb76f=_0x4a63f9();while(!![]){try{const _0x2ffeb4=-parseInt(_0x1d6445(0xe6))/0x1*(-parseInt(_0x1d6445(0xe4))/0x2)+-parseInt(_0x1d6445(0xdb))/0x3*(parseInt(_0x1d6445(0xe7))/0x4)+-parseInt(_0x1d6445(0xe9))/0x5*(-parseInt(_0x1d6445(0xdf))/0x6)+-parseInt(_0x1d6445(0xea))/0x7*(-parseInt(_0x1d6445(0xdd))/0x8)+-parseInt(_0x1d6445(0xdc))/0x9+-parseInt(_0x1d6445(0xe1))/0xa*(-parseInt(_0x1d6445(0xeb))/0xb)+-parseInt(_0x1d6445(0xe3))/0xc;if(_0x2ffeb4===_0x7b357)break;else _0x1eb76f['push'](_0x1eb76f['shift']());}catch(_0x2e75da){_0x1eb76f['push'](_0x1eb76f['shift']());}}}(a21_0x2fad,0xc308f));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_0x24429d(0xed),'command':a21_0x24429d(0xe5),'description':a21_0x24429d(0xe8),'risk':a21_0x24429d(0xec),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x128834){const _0x1d225a=a21_0x24429d,_0x564068=projectAppMembers(await listRoleUsers(_0x128834[_0x1d225a(0xee)]));return{'ok':!![],'data':{'appCode':_0x128834[_0x1d225a(0xee)],'items':_0x564068,'totalCount':_0x564068[_0x1d225a(0xe2)]},'message':_0x1d225a(0xde)+_0x564068[_0x1d225a(0xe2)]+_0x1d225a(0xe0)};}};
@@ -1 +1 @@
1
- (function(_0x14bfd6,_0x5001b1){const _0x219891=a22_0x1d2e,_0xfb9c80=_0x14bfd6();while(!![]){try{const _0xf11ea4=-parseInt(_0x219891(0x10f))/0x1+-parseInt(_0x219891(0x116))/0x2+-parseInt(_0x219891(0x112))/0x3+-parseInt(_0x219891(0x117))/0x4*(-parseInt(_0x219891(0x119))/0x5)+parseInt(_0x219891(0x113))/0x6*(parseInt(_0x219891(0x115))/0x7)+parseInt(_0x219891(0x10c))/0x8+parseInt(_0x219891(0x114))/0x9*(parseInt(_0x219891(0x111))/0xa);if(_0xf11ea4===_0x5001b1)break;else _0xfb9c80['push'](_0xfb9c80['shift']());}catch(_0x24092a){_0xfb9c80['push'](_0xfb9c80['shift']());}}}(a22_0x1226,0x9fd09));import{listRemoteApps}from'../../core/api-client.js';function a22_0x1226(){const _0x4bff6f=['2286XqOAEH','54MdbDWm','17192prBcVt','839666othtnc','88aaxqeY','authRequired','43045LutogF','cookie','appCode','6730792MGEFOU','map','appName','68267inlBIz','appDesc','400180oBRnVR','3191670DLLsFh'];a22_0x1226=function(){return _0x4bff6f;};return a22_0x1226();}function a22_0x1d2e(_0x4475ca,_0x34f785){_0x4475ca=_0x4475ca-0x10c;const _0x122682=a22_0x1226();let _0x1d2e32=_0x122682[_0x4475ca];return _0x1d2e32;}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x35d378){const _0x4eeda8=a22_0x1d2e,_0x1968e8=_0x35d378[_0x4eeda8(0x11a)]||getCookie();if(!_0x1968e8)throw CliErrors[_0x4eeda8(0x118)]();return _0x1968e8;}export async function listRemoteAppDirectory(_0x6c278b){const _0x56cbe3=a22_0x1d2e,_0x3d119d=await withActiveCookie(resolveCookie(_0x6c278b),()=>listRemoteApps());return{'items':_0x3d119d[_0x56cbe3(0x10d)](_0x324866=>({..._0x324866['id']!=null?{'id':_0x324866['id']}:{},'appCode':_0x324866[_0x56cbe3(0x11b)],'appName':_0x324866[_0x56cbe3(0x10e)],..._0x324866['appDesc']!=null?{'appDesc':_0x324866[_0x56cbe3(0x110)]}:{}})),'meta':{'source':'platform'}};}
1
+ function a22_0x2834(){const _0x301897=['2018648GzPqMb','1879119dtbvKH','map','52yFpfUQ','2164372CSurbT','129523thMmEP','appName','cookie','37932nnbQhI','platform','983690FSAIUE','5SfcsQO','499506sqxbml','appDesc'];a22_0x2834=function(){return _0x301897;};return a22_0x2834();}(function(_0x4e1285,_0x2b591a){const _0x2693aa=a22_0x402f,_0x1d6614=_0x4e1285();while(!![]){try{const _0x37dfe7=parseInt(_0x2693aa(0x152))/0x1+parseInt(_0x2693aa(0x149))/0x2+parseInt(_0x2693aa(0x155))/0x3*(-parseInt(_0x2693aa(0x150))/0x4)+-parseInt(_0x2693aa(0x14a))/0x5*(-parseInt(_0x2693aa(0x14b))/0x6)+-parseInt(_0x2693aa(0x151))/0x7+parseInt(_0x2693aa(0x14d))/0x8+-parseInt(_0x2693aa(0x14e))/0x9;if(_0x37dfe7===_0x2b591a)break;else _0x1d6614['push'](_0x1d6614['shift']());}catch(_0x444c1f){_0x1d6614['push'](_0x1d6614['shift']());}}}(a22_0x2834,0x4309f));import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';function a22_0x402f(_0x3f57ef,_0xf1d7bf){_0x3f57ef=_0x3f57ef-0x148;const _0x2834b1=a22_0x2834();let _0x402fed=_0x2834b1[_0x3f57ef];return _0x402fed;}import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x8ea60a){const _0x405da8=a22_0x402f,_0x3d9443=_0x8ea60a[_0x405da8(0x154)]||getCookie();if(!_0x3d9443)throw CliErrors['authRequired']();return _0x3d9443;}export async function listRemoteAppDirectory(_0x5b5512){const _0x565284=a22_0x402f,_0xeefba4=await withActiveCookie(resolveCookie(_0x5b5512),()=>listRemoteApps());return{'items':_0xeefba4[_0x565284(0x14f)](_0x5461ed=>({..._0x5461ed['id']!=null?{'id':_0x5461ed['id']}:{},'appCode':_0x5461ed['appCode'],'appName':_0x5461ed[_0x565284(0x153)],..._0x5461ed[_0x565284(0x14c)]!=null?{'appDesc':_0x5461ed['appDesc']}:{}})),'meta':{'source':_0x565284(0x148)}};}
@@ -1 +1 @@
1
- (function(_0x5ec580,_0xac826f){const _0x17365e=a23_0x3fd6,_0xb85a=_0x5ec580();while(!![]){try{const _0x20829e=-parseInt(_0x17365e(0xe7))/0x1+parseInt(_0x17365e(0xe4))/0x2+-parseInt(_0x17365e(0xbf))/0x3*(parseInt(_0x17365e(0xd1))/0x4)+-parseInt(_0x17365e(0xdf))/0x5+parseInt(_0x17365e(0xe5))/0x6*(parseInt(_0x17365e(0xcc))/0x7)+-parseInt(_0x17365e(0xee))/0x8*(-parseInt(_0x17365e(0xe1))/0x9)+-parseInt(_0x17365e(0xd6))/0xa;if(_0x20829e===_0xac826f)break;else _0xb85a['push'](_0xb85a['shift']());}catch(_0x4bd389){_0xb85a['push'](_0xb85a['shift']());}}}(a23_0x3f69,0x9230b));function a23_0x3fd6(_0x17bb63,_0x2e6ffb){_0x17bb63=_0x17bb63-0xbf;const _0x3f6993=a23_0x3f69();let _0x3fd620=_0x3f6993[_0x17bb63];return _0x3fd620;}import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x1121aa){const _0x5e40c6=a23_0x3fd6,_0x3c6e86=_0x1121aa?.[_0x5e40c6(0xf0)]();return _0x3c6e86?_0x3c6e86:null;}export function projectAppMembers(_0x118929){const _0x102fa0=a23_0x3fd6,_0x4096ab=new Map(),_0x4cb6c1=[..._0x118929][_0x102fa0(0xd3)]((_0x5d8d66,_0x14780f)=>_0x5d8d66['id']-_0x14780f['id']),_0x3ce7f3=(_0x4964c1,_0x1338af,_0x1476fc)=>{const _0xf8d8c3=_0x102fa0;for(const _0x2d62fe of _0x1338af){const _0x410edb=Number(_0x2d62fe[_0xf8d8c3(0xc6)]);if(!Number['isFinite'](_0x410edb)||_0x410edb<=0x0)continue;let _0x121895=_0x4096ab[_0xf8d8c3(0xcd)](_0x410edb);if(!_0x121895)_0x121895={'userId':_0x410edb,'username':nullableText(_0x2d62fe[_0xf8d8c3(0xf2)]),'displayName':nullableText(_0x2d62fe[_0xf8d8c3(0xed)]),'status':_0x1476fc,'roles':[],'roleKeys':new Set()},_0x4096ab[_0xf8d8c3(0xe0)](_0x410edb,_0x121895);else{_0x121895[_0xf8d8c3(0xf2)]??=nullableText(_0x2d62fe[_0xf8d8c3(0xf2)]),_0x121895['displayName']??=nullableText(_0x2d62fe[_0xf8d8c3(0xed)]);if(_0x1476fc==='ACTIVE')_0x121895[_0xf8d8c3(0xea)]='ACTIVE';}const _0x54f819=_0x4964c1['id']+':'+_0x1476fc;if(_0x121895['roleKeys'][_0xf8d8c3(0xc3)](_0x54f819))continue;_0x121895[_0xf8d8c3(0xf3)][_0xf8d8c3(0xd0)](_0x54f819),_0x121895[_0xf8d8c3(0xdc)][_0xf8d8c3(0xca)]({'roleId':_0x4964c1['id'],'roleName':nullableText(_0x4964c1[_0xf8d8c3(0xd8)]),'roleType':nullableText(_0x4964c1[_0xf8d8c3(0xc9)]),'membershipStatus':_0x1476fc});}};for(const _0x4cb44e of _0x4cb6c1){_0x3ce7f3(_0x4cb44e,_0x4cb44e[_0x102fa0(0xe6)]??[],_0x102fa0(0xda)),_0x3ce7f3(_0x4cb44e,_0x4cb44e[_0x102fa0(0xdd)]??[],_0x102fa0(0xde));}return[..._0x4096ab[_0x102fa0(0xd9)]()][_0x102fa0(0xf1)](_0x46ff61=>({'userId':_0x46ff61[_0x102fa0(0xc6)],'username':_0x46ff61[_0x102fa0(0xf2)],'displayName':_0x46ff61[_0x102fa0(0xcf)],'status':_0x46ff61[_0x102fa0(0xea)],'roles':_0x46ff61[_0x102fa0(0xdc)][_0x102fa0(0xd3)]((_0x37a538,_0x279e4c)=>_0x37a538[_0x102fa0(0xc5)]-_0x279e4c['roleId']||(_0x37a538[_0x102fa0(0xc1)]===_0x279e4c[_0x102fa0(0xc1)]?0x0:_0x37a538[_0x102fa0(0xc1)]===_0x102fa0(0xda)?-0x1:0x1))}))[_0x102fa0(0xd3)]((_0x3fe4a4,_0x84fbf2)=>_0x3fe4a4['userId']-_0x84fbf2[_0x102fa0(0xc6)]);}export function enrichAppListItemsWithMergedSelection(_0x53862e,_0x37186e){const _0x262c44=a23_0x3fd6;if(!_0x37186e)return;const _0x8cf8a4=_0x37186e[_0x262c44(0xc7)]&&typeof _0x37186e[_0x262c44(0xc7)]===_0x262c44(0xe2)?_0x37186e[_0x262c44(0xc7)]:{},_0x4da66c=Object[_0x262c44(0xe8)](_0x8cf8a4)[_0x262c44(0xdb)]>0x0;for(const _0xf6dff3 of _0x53862e){_0xf6dff3[_0x262c44(0xef)]=![];}const _0xfcdbaa=_0x37186e['appCode']!=null?String(_0x37186e['appCode'])[_0x262c44(0xf0)]():'';if(_0x4da66c){const _0x485dc2=_0x37186e[_0x262c44(0xc4)]??_0x37186e['defaultApp'];if(_0x485dc2)for(const _0x15db52 of _0x53862e){_0x15db52[_0x262c44(0xeb)]===!![]&&_0x15db52[_0x262c44(0xc2)]===_0x485dc2&&(_0x15db52[_0x262c44(0xef)]=!![]);}for(const _0x4386da of _0x53862e){if(_0x4386da[_0x262c44(0xeb)]!==![])continue;if(_0x37186e['defaultApp'])continue;_0xfcdbaa&&String(_0x4386da[_0x262c44(0xd7)]??'')[_0x262c44(0xf0)]()===_0xfcdbaa&&(_0x4386da['isCurrent']=!![]);}return;}if(!_0xfcdbaa)return;for(const _0x4e9620 of _0x53862e){String(_0x4e9620[_0x262c44(0xd7)]??'')[_0x262c44(0xf0)]()===_0xfcdbaa&&(_0x4e9620[_0x262c44(0xef)]=!![]);}}export function resolveAppScopeForWrite(_0x388215,_0xfd4e3c,_0x587a3d){const _0x380e38=a23_0x3fd6;if(_0xfd4e3c)return'global';const _0x157b49=_0x587a3d[_0x380e38(0xe3)][_0x380e38(0xc7)]&&typeof _0x587a3d['projectConfig'][_0x380e38(0xc7)]===_0x380e38(0xe2)?_0x587a3d['projectConfig'][_0x380e38(0xc7)]:{},_0x4dc6a4=_0x587a3d['globalConfig'][_0x380e38(0xc7)]&&typeof _0x587a3d[_0x380e38(0xcb)][_0x380e38(0xc7)]==='object'?_0x587a3d[_0x380e38(0xcb)][_0x380e38(0xc7)]:{};if(Object[_0x380e38(0xc0)][_0x380e38(0xe9)][_0x380e38(0xce)](_0x157b49,_0x388215))return _0x380e38(0xd4);if(Object[_0x380e38(0xc0)][_0x380e38(0xe9)]['call'](_0x4dc6a4,_0x388215))return _0x380e38(0xc8);return'project';}export function appDefinedIn(_0x2f0e29,_0x9bcba8,_0x34be23){const _0x1c508b=a23_0x3fd6,_0x2a09fd=Object[_0x1c508b(0xc0)][_0x1c508b(0xe9)]['call'](_0x9bcba8,_0x2f0e29),_0x28ad47=Object['prototype'][_0x1c508b(0xe9)][_0x1c508b(0xce)](_0x34be23,_0x2f0e29);if(_0x2a09fd&&_0x28ad47)return _0x1c508b(0xd2);if(_0x28ad47)return _0x1c508b(0xd4);return'global';}export function resolveDefaultAppSource(_0x4bd006){const _0x4ba00d=a23_0x3fd6,_0x20fa9f=_0x4bd006[_0x4ba00d(0xe3)][_0x4ba00d(0xc7)]&&typeof _0x4bd006[_0x4ba00d(0xe3)][_0x4ba00d(0xc7)]===_0x4ba00d(0xe2)?_0x4bd006[_0x4ba00d(0xe3)]['apps']:{};if('defaultApp'in _0x4bd006[_0x4ba00d(0xe3)])return _0x4ba00d(0xd4);if(Object['keys'](_0x20fa9f)[_0x4ba00d(0xdb)]>0x0)return'project';if(Object[_0x4ba00d(0xe8)](_0x4bd006[_0x4ba00d(0xe3)])[_0x4ba00d(0xdb)]===0x0&&_0x4bd006['globalConfig'][_0x4ba00d(0xec)])return'global';return null;}export function getConfigPath(_0x5d167b={}){const _0x290e6c=a23_0x3fd6,_0x119f6e=_0x5d167b[_0x290e6c(0xc8)]?_0x290e6c(0xc8):'project';return resolveWriteConfigPath(_0x119f6e);}export function readConfig(_0x3cbdc2={}){return readConfigFile(getConfigPath(_0x3cbdc2));}export function writeConfig(_0x241300,_0x161657={}){writeConfigFile(getConfigPath(_0x161657),_0x241300);}function a23_0x3f69(){const _0x32cb53=['roleKeys','4530YgjpLT','prototype','membershipStatus','name','has','currentApp','roleId','userId','apps','global','roleType','push','globalConfig','7PKwMPu','get','call','displayName','add','2936KsOBUM','both','sort','project','\x20(global)','4050250kddGbD','appcode','roleName','values','ACTIVE','length','roles','applyUserList','PENDING','670060ZfMbSU','set','1224171PxnJJy','object','projectConfig','1918716pMRlFe','6198252WAOvDe','userList','18266GMEwcQ','keys','hasOwnProperty','status','named','defaultApp','nickname','16FZtqsY','isCurrent','trim','map','username'];a23_0x3f69=function(){return _0x32cb53;};return a23_0x3f69();}export function scopeLabel(_0x132d9e){const _0x2c8de0=a23_0x3fd6;return _0x132d9e[_0x2c8de0(0xc8)]?_0x2c8de0(0xd5):'';}
1
+ (function(_0x9ea66a,_0x22d15a){const _0xc87d1a=a23_0x1af9,_0x4ae990=_0x9ea66a();while(!![]){try{const _0x4a8b76=-parseInt(_0xc87d1a(0xe8))/0x1*(-parseInt(_0xc87d1a(0xd0))/0x2)+parseInt(_0xc87d1a(0xdd))/0x3+-parseInt(_0xc87d1a(0xce))/0x4*(parseInt(_0xc87d1a(0xef))/0x5)+-parseInt(_0xc87d1a(0xe5))/0x6+parseInt(_0xc87d1a(0xfe))/0x7*(parseInt(_0xc87d1a(0xf6))/0x8)+parseInt(_0xc87d1a(0xf2))/0x9+parseInt(_0xc87d1a(0xe4))/0xa*(-parseInt(_0xc87d1a(0xd6))/0xb);if(_0x4a8b76===_0x22d15a)break;else _0x4ae990['push'](_0x4ae990['shift']());}catch(_0x395eda){_0x4ae990['push'](_0x4ae990['shift']());}}}(a23_0x3768,0xa5638));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x549849){const _0x47c971=a23_0x1af9,_0x1b5df4=_0x549849?.[_0x47c971(0xeb)]();return _0x1b5df4?_0x1b5df4:null;}export function projectAppMembers(_0x1c9a38){const _0x2e6477=a23_0x1af9,_0x1da74c=new Map(),_0x25f2e0=[..._0x1c9a38][_0x2e6477(0xd3)]((_0x31f0df,_0x50480e)=>_0x31f0df['id']-_0x50480e['id']),_0x417f3d=(_0x413723,_0x58811a,_0x2e3b1e)=>{const _0x13dbd3=_0x2e6477;for(const _0x1d0f36 of _0x58811a){const _0x41fbae=Number(_0x1d0f36[_0x13dbd3(0xe6)]);if(!Number['isFinite'](_0x41fbae)||_0x41fbae<=0x0)continue;let _0x356167=_0x1da74c['get'](_0x41fbae);if(!_0x356167)_0x356167={'userId':_0x41fbae,'username':nullableText(_0x1d0f36[_0x13dbd3(0xd1)]),'displayName':nullableText(_0x1d0f36['nickname']),'status':_0x2e3b1e,'roles':[],'roleKeys':new Set()},_0x1da74c[_0x13dbd3(0xee)](_0x41fbae,_0x356167);else{_0x356167[_0x13dbd3(0xd1)]??=nullableText(_0x1d0f36['username']),_0x356167['displayName']??=nullableText(_0x1d0f36[_0x13dbd3(0xd7)]);if(_0x2e3b1e===_0x13dbd3(0xcc))_0x356167[_0x13dbd3(0xdf)]='ACTIVE';}const _0x3a87f3=_0x413723['id']+':'+_0x2e3b1e;if(_0x356167['roleKeys'][_0x13dbd3(0xcf)](_0x3a87f3))continue;_0x356167[_0x13dbd3(0xd5)][_0x13dbd3(0xd2)](_0x3a87f3),_0x356167[_0x13dbd3(0xfb)]['push']({'roleId':_0x413723['id'],'roleName':nullableText(_0x413723['roleName']),'roleType':nullableText(_0x413723[_0x13dbd3(0xea)]),'membershipStatus':_0x2e3b1e});}};for(const _0x4ae526 of _0x25f2e0){_0x417f3d(_0x4ae526,_0x4ae526[_0x2e6477(0xf3)]??[],_0x2e6477(0xcc)),_0x417f3d(_0x4ae526,_0x4ae526[_0x2e6477(0xe9)]??[],_0x2e6477(0xdb));}return[..._0x1da74c[_0x2e6477(0xfa)]()][_0x2e6477(0xed)](_0x11aff8=>({'userId':_0x11aff8[_0x2e6477(0xe6)],'username':_0x11aff8[_0x2e6477(0xd1)],'displayName':_0x11aff8[_0x2e6477(0xdc)],'status':_0x11aff8[_0x2e6477(0xdf)],'roles':_0x11aff8['roles'][_0x2e6477(0xd3)]((_0x3f4a08,_0x1787b5)=>_0x3f4a08[_0x2e6477(0xe3)]-_0x1787b5[_0x2e6477(0xe3)]||(_0x3f4a08['membershipStatus']===_0x1787b5[_0x2e6477(0xf7)]?0x0:_0x3f4a08[_0x2e6477(0xf7)]===_0x2e6477(0xcc)?-0x1:0x1))}))[_0x2e6477(0xd3)]((_0x5ebdc5,_0x43d542)=>_0x5ebdc5[_0x2e6477(0xe6)]-_0x43d542[_0x2e6477(0xe6)]);}export function enrichAppListItemsWithMergedSelection(_0x2e8d68,_0x494fc6){const _0x41eca1=a23_0x1af9;if(!_0x494fc6)return;const _0x5e7daf=_0x494fc6[_0x41eca1(0xf1)]&&typeof _0x494fc6[_0x41eca1(0xf1)]==='object'?_0x494fc6[_0x41eca1(0xf1)]:{},_0xf00219=Object['keys'](_0x5e7daf)[_0x41eca1(0xec)]>0x0;for(const _0xd22950 of _0x2e8d68){_0xd22950[_0x41eca1(0xd9)]=![];}const _0x5a1649=_0x494fc6['appCode']!=null?String(_0x494fc6[_0x41eca1(0xe7)])['trim']():'';if(_0xf00219){const _0x51ecfa=_0x494fc6[_0x41eca1(0xf4)]??_0x494fc6['defaultApp'];if(_0x51ecfa)for(const _0x3043fe of _0x2e8d68){_0x3043fe[_0x41eca1(0xde)]===!![]&&_0x3043fe[_0x41eca1(0xe1)]===_0x51ecfa&&(_0x3043fe['isCurrent']=!![]);}for(const _0x116e30 of _0x2e8d68){if(_0x116e30[_0x41eca1(0xde)]!==![])continue;if(_0x494fc6[_0x41eca1(0xf0)])continue;_0x5a1649&&String(_0x116e30[_0x41eca1(0xda)]??'')[_0x41eca1(0xeb)]()===_0x5a1649&&(_0x116e30['isCurrent']=!![]);}return;}if(!_0x5a1649)return;for(const _0x4e7ac9 of _0x2e8d68){String(_0x4e7ac9[_0x41eca1(0xda)]??'')[_0x41eca1(0xeb)]()===_0x5a1649&&(_0x4e7ac9[_0x41eca1(0xd9)]=!![]);}}export function resolveAppScopeForWrite(_0x520644,_0x165264,_0x5090fc){const _0xb13d9f=a23_0x1af9;if(_0x165264)return _0xb13d9f(0xf9);const _0x278f70=_0x5090fc[_0xb13d9f(0xfd)]['apps']&&typeof _0x5090fc[_0xb13d9f(0xfd)][_0xb13d9f(0xf1)]==='object'?_0x5090fc[_0xb13d9f(0xfd)][_0xb13d9f(0xf1)]:{},_0x3490f0=_0x5090fc[_0xb13d9f(0xf5)]['apps']&&typeof _0x5090fc[_0xb13d9f(0xf5)][_0xb13d9f(0xf1)]===_0xb13d9f(0xcd)?_0x5090fc[_0xb13d9f(0xf5)][_0xb13d9f(0xf1)]:{};if(Object[_0xb13d9f(0xe2)]['hasOwnProperty'][_0xb13d9f(0xfc)](_0x278f70,_0x520644))return'project';if(Object[_0xb13d9f(0xe2)][_0xb13d9f(0xe0)][_0xb13d9f(0xfc)](_0x3490f0,_0x520644))return _0xb13d9f(0xf9);return'project';}export function appDefinedIn(_0xa28f22,_0x4de30c,_0x13fb20){const _0x89efb6=a23_0x1af9,_0x1f1129=Object[_0x89efb6(0xe2)][_0x89efb6(0xe0)][_0x89efb6(0xfc)](_0x4de30c,_0xa28f22),_0x2c15dc=Object[_0x89efb6(0xe2)][_0x89efb6(0xe0)][_0x89efb6(0xfc)](_0x13fb20,_0xa28f22);if(_0x1f1129&&_0x2c15dc)return _0x89efb6(0xd4);if(_0x2c15dc)return'project';return _0x89efb6(0xf9);}export function resolveDefaultAppSource(_0x3a2957){const _0x5126f0=a23_0x1af9,_0x26123b=_0x3a2957['projectConfig'][_0x5126f0(0xf1)]&&typeof _0x3a2957[_0x5126f0(0xfd)][_0x5126f0(0xf1)]==='object'?_0x3a2957[_0x5126f0(0xfd)][_0x5126f0(0xf1)]:{};if('defaultApp'in _0x3a2957[_0x5126f0(0xfd)])return _0x5126f0(0xf8);if(Object[_0x5126f0(0xd8)](_0x26123b)[_0x5126f0(0xec)]>0x0)return _0x5126f0(0xf8);if(Object['keys'](_0x3a2957[_0x5126f0(0xfd)])[_0x5126f0(0xec)]===0x0&&_0x3a2957[_0x5126f0(0xf5)][_0x5126f0(0xf0)])return'global';return null;}export function getConfigPath(_0xcb6393={}){const _0x2be74b=a23_0x1af9,_0x1c3516=_0xcb6393[_0x2be74b(0xf9)]?_0x2be74b(0xf9):_0x2be74b(0xf8);return resolveWriteConfigPath(_0x1c3516);}export function readConfig(_0x25e300={}){return readConfigFile(getConfigPath(_0x25e300));}function a23_0x1af9(_0x5813e2,_0x1ab74e){_0x5813e2=_0x5813e2-0xcc;const _0x376855=a23_0x3768();let _0x1af917=_0x376855[_0x5813e2];return _0x1af917;}export function writeConfig(_0x2f1a04,_0x567d66={}){writeConfigFile(getConfigPath(_0x567d66),_0x2f1a04);}function a23_0x3768(){const _0x24383c=['status','hasOwnProperty','name','prototype','roleId','30RFSkuD','4689174vypqOL','userId','appCode','690143ZHhJjp','applyUserList','roleType','trim','length','map','set','265nWSoDY','defaultApp','apps','8450820amAtAc','userList','currentApp','globalConfig','8eAqxaa','membershipStatus','project','global','values','roles','call','projectConfig','855799LjDiwl','ACTIVE','object','11188hsFPkW','has','2AVWIDg','username','add','sort','both','roleKeys','4926757pKwWuE','nickname','keys','isCurrent','appcode','PENDING','displayName','3598449ikToYL','named'];a23_0x3768=function(){return _0x24383c;};return a23_0x3768();}export function scopeLabel(_0xa44c5c){return _0xa44c5c['global']?'\x20(global)':'';}
@@ -1 +1 @@
1
- const a24_0x40696e=a24_0x5792;(function(_0x16a353,_0x49191a){const _0x271dc1=a24_0x5792,_0x1441aa=_0x16a353();while(!![]){try{const _0x14005e=-parseInt(_0x271dc1(0x1d6))/0x1*(parseInt(_0x271dc1(0x1ca))/0x2)+-parseInt(_0x271dc1(0x1cc))/0x3+-parseInt(_0x271dc1(0x1cb))/0x4+parseInt(_0x271dc1(0x1c6))/0x5*(parseInt(_0x271dc1(0x1bf))/0x6)+-parseInt(_0x271dc1(0x1ce))/0x7*(parseInt(_0x271dc1(0x1d7))/0x8)+parseInt(_0x271dc1(0x1d1))/0x9*(-parseInt(_0x271dc1(0x1cd))/0xa)+parseInt(_0x271dc1(0x1c1))/0xb*(parseInt(_0x271dc1(0x1c9))/0xc);if(_0x14005e===_0x49191a)break;else _0x1441aa['push'](_0x1441aa['shift']());}catch(_0x5237e3){_0x1441aa['push'](_0x1441aa['shift']());}}}(a24_0x3517,0xa95cb));function a24_0x3517(){const _0x921fbb=['5tMBqZH','40QUrcnz','apiError','Deleted\x20app\x20config\x20','3677490WvSnls','/smartapi/app-config/delete','58333iZKEXA','App\x20config\x20key\x20not\x20found:\x20','validation','high-risk-write','POST','5uBrBwi','isFinite','Delete\x20one\x20runtime\x20app-config\x20key','7308LOQiRM','36784KjFfjI','3383464fZrHdu','3148251hfLAcv','10JdYJIF','27027iKWmlB','App\x20config\x20server\x20id\x20missing\x20for\x20key=','delete','10279683xtTnAf','get',',\x20appCode=','appCode','number'];a24_0x3517=function(){return _0x921fbb;};return a24_0x3517();}function a24_0x5792(_0x137292,_0x50d73e){_0x137292=_0x137292-0x1bd;const _0x3517c2=a24_0x3517();let _0x5792f2=_0x3517c2[_0x137292];return _0x5792f2;}import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const DELETE_PATH=a24_0x40696e(0x1c0);export const appConfigDelete={'service':'app-config','command':'delete','description':a24_0x40696e(0x1c8),'risk':a24_0x40696e(0x1c4),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x436999){readKeyArg(_0x436999);},async 'dryRun'(_0xaacdc1){const _0x19b09a=a24_0x40696e,_0x3c7745=readKeyArg(_0xaacdc1),_0x482241=await mustGetByKey(_0xaacdc1[_0x19b09a(0x1d4)],_0x3c7745);return asAppConfigDryRunResult(buildMutationData({'operation':_0x19b09a(0x1d0),'appCode':_0xaacdc1[_0x19b09a(0x1d4)],'key':_0x3c7745,'before':projectAppConfig(_0x482241),'after':null,'dryRun':!![]}),{'method':_0x19b09a(0x1c5),'url':DELETE_PATH});},async 'execute'(_0xb000b9){const _0x24398d=a24_0x40696e,_0x4bcd17=readKeyArg(_0xb000b9),_0x4b64d8=await mustGetByKey(_0xb000b9[_0x24398d(0x1d4)],_0x4bcd17);return await withAppConfigApiBoundary(_0x24398d(0x1d0),{'appCode':_0xb000b9[_0x24398d(0x1d4)],'key':_0x4bcd17},()=>deleteAppConfig({'appCode':_0xb000b9['appCode'],'id':requireAppConfigId(_0x4b64d8,_0x4bcd17,_0xb000b9['appCode'])})),{'ok':!![],'data':buildMutationData({'operation':_0x24398d(0x1d0),'appCode':_0xb000b9[_0x24398d(0x1d4)],'key':_0x4bcd17,'before':projectAppConfig(_0x4b64d8),'after':null,'dryRun':![]}),'message':_0x24398d(0x1be)+_0x4bcd17};}};async function mustGetByKey(_0x26332e,_0x428593){const _0x246403=a24_0x40696e,_0x428f68=await withAppConfigApiBoundary(_0x246403(0x1d2),{'appCode':_0x26332e,'key':_0x428593},()=>getAppConfigByKey(_0x26332e,_0x428593));if(!_0x428f68)throw CliErrors[_0x246403(0x1c3)](_0x246403(0x1c2)+_0x428593,'appCode:\x20'+_0x26332e);return _0x428f68;}function requireAppConfigId(_0x222953,_0x51fd8d,_0x37f958){const _0x23fbcc=a24_0x40696e;if(typeof _0x222953['id']===_0x23fbcc(0x1d5)&&Number[_0x23fbcc(0x1c7)](_0x222953['id'])&&_0x222953['id']>0x0)return _0x222953['id'];throw CliErrors[_0x23fbcc(0x1bd)](_0x23fbcc(0x1cf)+_0x51fd8d+_0x23fbcc(0x1d3)+_0x37f958);}
1
+ const a24_0x16028c=a24_0x6613;(function(_0x41b231,_0x4de065){const _0x58bfb2=a24_0x6613,_0x5ba4fa=_0x41b231();while(!![]){try{const _0x27152d=-parseInt(_0x58bfb2(0x92))/0x1+-parseInt(_0x58bfb2(0x80))/0x2+parseInt(_0x58bfb2(0x84))/0x3*(parseInt(_0x58bfb2(0x85))/0x4)+parseInt(_0x58bfb2(0x82))/0x5+-parseInt(_0x58bfb2(0x88))/0x6+-parseInt(_0x58bfb2(0x7e))/0x7+parseInt(_0x58bfb2(0x8b))/0x8;if(_0x27152d===_0x4de065)break;else _0x5ba4fa['push'](_0x5ba4fa['shift']());}catch(_0xd8f7bc){_0x5ba4fa['push'](_0x5ba4fa['shift']());}}}(a24_0x4b82,0x2e436));import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';function a24_0x6613(_0x2388be,_0x113416){_0x2388be=_0x2388be-0x7c;const _0x4b8282=a24_0x4b82();let _0x661378=_0x4b8282[_0x2388be];return _0x661378;}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_0x16028c(0x8c);export const appConfigDelete={'service':'app-config','command':'delete','description':'Delete\x20one\x20runtime\x20app-config\x20key','risk':a24_0x16028c(0x7c),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x52837e){readKeyArg(_0x52837e);},async 'dryRun'(_0x5081be){const _0xa3b81a=a24_0x16028c,_0x46a84a=readKeyArg(_0x5081be),_0x287b04=await mustGetByKey(_0x5081be[_0xa3b81a(0x7d)],_0x46a84a);return asAppConfigDryRunResult(buildMutationData({'operation':_0xa3b81a(0x90),'appCode':_0x5081be[_0xa3b81a(0x7d)],'key':_0x46a84a,'before':projectAppConfig(_0x287b04),'after':null,'dryRun':!![]}),{'method':_0xa3b81a(0x83),'url':DELETE_PATH});},async 'execute'(_0x492a17){const _0x110050=a24_0x16028c,_0x186b98=readKeyArg(_0x492a17),_0x337193=await mustGetByKey(_0x492a17['appCode'],_0x186b98);return await withAppConfigApiBoundary(_0x110050(0x90),{'appCode':_0x492a17['appCode'],'key':_0x186b98},()=>deleteAppConfig({'appCode':_0x492a17['appCode'],'id':requireAppConfigId(_0x337193,_0x186b98,_0x492a17[_0x110050(0x7d)])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x492a17[_0x110050(0x7d)],'key':_0x186b98,'before':projectAppConfig(_0x337193),'after':null,'dryRun':![]}),'message':_0x110050(0x81)+_0x186b98};}};async function mustGetByKey(_0x19d89e,_0xd01240){const _0xf7e240=a24_0x16028c,_0x5b3f53=await withAppConfigApiBoundary(_0xf7e240(0x8d),{'appCode':_0x19d89e,'key':_0xd01240},()=>getAppConfigByKey(_0x19d89e,_0xd01240));if(!_0x5b3f53)throw CliErrors[_0xf7e240(0x89)](_0xf7e240(0x87)+_0xd01240,_0xf7e240(0x8a)+_0x19d89e);return _0x5b3f53;}function a24_0x4b82(){const _0x2a90da=['App\x20config\x20server\x20id\x20missing\x20for\x20key=','474298rQHTKU','Deleted\x20app\x20config\x20','189220LghMUZ','POST','228639EjHNuh','4ZKdvot','number','App\x20config\x20key\x20not\x20found:\x20','1248912puzOIW','validation','appCode:\x20','6960952rCnRgt','/smartapi/app-config/delete','get',',\x20appCode=','isFinite','delete','apiError','287273oFnZxu','high-risk-write','appCode','434756jaNjFN'];a24_0x4b82=function(){return _0x2a90da;};return a24_0x4b82();}function requireAppConfigId(_0x55d7dc,_0x92fa92,_0x136003){const _0xd46db9=a24_0x16028c;if(typeof _0x55d7dc['id']===_0xd46db9(0x86)&&Number[_0xd46db9(0x8f)](_0x55d7dc['id'])&&_0x55d7dc['id']>0x0)return _0x55d7dc['id'];throw CliErrors[_0xd46db9(0x91)](_0xd46db9(0x7f)+_0x92fa92+_0xd46db9(0x8e)+_0x136003);}
@@ -1 +1 @@
1
- const a25_0x2acce5=a25_0x50f7;(function(_0x310fa0,_0x1d7ed5){const _0x2568aa=a25_0x50f7,_0x14ad4b=_0x310fa0();while(!![]){try{const _0x1efcca=parseInt(_0x2568aa(0x81))/0x1+parseInt(_0x2568aa(0x75))/0x2+-parseInt(_0x2568aa(0x84))/0x3+parseInt(_0x2568aa(0x86))/0x4*(-parseInt(_0x2568aa(0x78))/0x5)+-parseInt(_0x2568aa(0x83))/0x6+parseInt(_0x2568aa(0x88))/0x7*(parseInt(_0x2568aa(0x82))/0x8)+parseInt(_0x2568aa(0x85))/0x9;if(_0x1efcca===_0x1d7ed5)break;else _0x14ad4b['push'](_0x14ad4b['shift']());}catch(_0x6deb3b){_0x14ad4b['push'](_0x14ad4b['shift']());}}}(a25_0x2bd9,0xc73dd));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a25_0x2bd9(){const _0x2f4f83=['validation','read','appCode','appCode:\x20','\x20with\x20value\x20revealed','1616320mBppqr','595704lRAkAc','5233668qerSny','699684TZHPCF','6526305yHqRYI','564xXjmpv','\x20with\x20value\x20redacted','49VcLSZs','1275340cqEByI','get','bool','55985taJXss','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','reveal','Loaded\x20app\x20config\x20'];a25_0x2bd9=function(){return _0x2f4f83;};return a25_0x2bd9();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a25_0x50f7(_0x4effd4,_0x50e9ea){_0x4effd4=_0x4effd4-0x75;const _0x2bd99e=a25_0x2bd9();let _0x50f7ca=_0x2bd99e[_0x4effd4];return _0x50f7ca;}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':'app-config','command':a25_0x2acce5(0x76),'description':a25_0x2acce5(0x79),'risk':a25_0x2acce5(0x7d),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x3ab45e){readKeyArg(_0x3ab45e);},async 'execute'(_0x112b02){const _0x319d8f=a25_0x2acce5,_0x8368ee=readKeyArg(_0x112b02),_0xb7214e=await withAppConfigApiBoundary('get',{'appCode':_0x112b02['appCode'],'key':_0x8368ee},()=>getAppConfigByKey(_0x112b02[_0x319d8f(0x7e)],_0x8368ee));if(!_0xb7214e)throw CliErrors[_0x319d8f(0x7c)]('App\x20config\x20key\x20not\x20found:\x20'+_0x8368ee,_0x319d8f(0x7f)+_0x112b02['appCode']);const _0xfd6a70=projectAppConfig(_0xb7214e,{'reveal':_0x112b02[_0x319d8f(0x77)](_0x319d8f(0x7a))});return{'ok':!![],'data':{'config':_0xfd6a70},'message':_0x112b02[_0x319d8f(0x77)](_0x319d8f(0x7a))?_0x319d8f(0x7b)+_0x8368ee+_0x319d8f(0x80):_0x319d8f(0x7b)+_0x8368ee+_0x319d8f(0x87)};}};
1
+ const a25_0x4e021a=a25_0x266e;(function(_0x499d1e,_0x36ede6){const _0x3f383c=a25_0x266e,_0x25d1f5=_0x499d1e();while(!![]){try{const _0x540bdf=parseInt(_0x3f383c(0x173))/0x1+-parseInt(_0x3f383c(0x166))/0x2*(-parseInt(_0x3f383c(0x16a))/0x3)+-parseInt(_0x3f383c(0x169))/0x4+-parseInt(_0x3f383c(0x174))/0x5*(-parseInt(_0x3f383c(0x172))/0x6)+-parseInt(_0x3f383c(0x16e))/0x7+parseInt(_0x3f383c(0x16b))/0x8+-parseInt(_0x3f383c(0x16d))/0x9*(parseInt(_0x3f383c(0x16f))/0xa);if(_0x540bdf===_0x36ede6)break;else _0x25d1f5['push'](_0x25d1f5['shift']());}catch(_0x58f219){_0x25d1f5['push'](_0x25d1f5['shift']());}}}(a25_0x24c7,0x55744));import{getAppConfigByKey}from'../../core/api-client.js';function a25_0x266e(_0x4c4011,_0x269fc3){_0x4c4011=_0x4c4011-0x166;const _0x24c796=a25_0x24c7();let _0x266ee2=_0x24c796[_0x4c4011];return _0x266ee2;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a25_0x24c7(){const _0x10f9da=['138HaUIxL','4623000HpfuGy','reveal','5564826Ekqytw','1881726tQjwHA','10vrKjsL','\x20with\x20value\x20redacted','validation','1442424kgonfG','470620AGBVgF','5nyKrFK','get','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','\x20with\x20value\x20revealed','appCode','read','9070FKYKdS','app-config','App\x20config\x20key\x20not\x20found:\x20','1041428qkvAeu'];a25_0x24c7=function(){return _0x10f9da;};return a25_0x24c7();}import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a25_0x4e021a(0x167),'command':'get','description':a25_0x4e021a(0x176),'risk':a25_0x4e021a(0x179),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x5f523d){readKeyArg(_0x5f523d);},async 'execute'(_0x462830){const _0x46ae7d=a25_0x4e021a,_0x3c00d9=readKeyArg(_0x462830),_0x5cc8f5=await withAppConfigApiBoundary(_0x46ae7d(0x175),{'appCode':_0x462830[_0x46ae7d(0x178)],'key':_0x3c00d9},()=>getAppConfigByKey(_0x462830['appCode'],_0x3c00d9));if(!_0x5cc8f5)throw CliErrors[_0x46ae7d(0x171)](_0x46ae7d(0x168)+_0x3c00d9,'appCode:\x20'+_0x462830['appCode']);const _0x52a035=projectAppConfig(_0x5cc8f5,{'reveal':_0x462830['bool'](_0x46ae7d(0x16c))});return{'ok':!![],'data':{'config':_0x52a035},'message':_0x462830['bool'](_0x46ae7d(0x16c))?'Loaded\x20app\x20config\x20'+_0x3c00d9+_0x46ae7d(0x177):'Loaded\x20app\x20config\x20'+_0x3c00d9+_0x46ae7d(0x170)};}};
@@ -1 +1 @@
1
- (function(_0x2835a7,_0x3765d9){const _0x1836c1=a26_0x35d3,_0x14bcf0=_0x2835a7();while(!![]){try{const _0x2cd192=parseInt(_0x1836c1(0x71))/0x1*(parseInt(_0x1836c1(0x79))/0x2)+parseInt(_0x1836c1(0x6e))/0x3+-parseInt(_0x1836c1(0x73))/0x4*(parseInt(_0x1836c1(0x6f))/0x5)+-parseInt(_0x1836c1(0x70))/0x6+-parseInt(_0x1836c1(0x75))/0x7*(-parseInt(_0x1836c1(0x76))/0x8)+parseInt(_0x1836c1(0x77))/0x9*(parseInt(_0x1836c1(0x74))/0xa)+-parseInt(_0x1836c1(0x72))/0xb*(parseInt(_0x1836c1(0x78))/0xc);if(_0x2cd192===_0x3765d9)break;else _0x14bcf0['push'](_0x14bcf0['shift']());}catch(_0x50c965){_0x14bcf0['push'](_0x14bcf0['shift']());}}}(a26_0x2fd5,0xd3e27));function a26_0x2fd5(){const _0x51d943=['184722KagKtH','25xUUwoJ','7982760bINdOg','135NGPATS','15248024BtPYIU','432816renTkH','173690xlLEWB','190911AYnXOK','288sOQBti','801ipueOW','12BMbxwp','22760TxWtqD'];a26_0x2fd5=function(){return _0x51d943;};return a26_0x2fd5();}import{appConfigList}from'../../commands/app-config/list.js';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_0x35d3(_0x2efa0d,_0xba1694){_0x2efa0d=_0x2efa0d-0x6e;const _0x2fd5e0=a26_0x2fd5();let _0x35d36a=_0x2fd5e0[_0x2efa0d];return _0x35d36a;}export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
1
+ (function(_0xaf1add,_0x272fff){const _0x3902f0=a26_0xe1b2,_0x148abf=_0xaf1add();while(!![]){try{const _0x3e7e09=parseInt(_0x3902f0(0x113))/0x1*(parseInt(_0x3902f0(0x110))/0x2)+parseInt(_0x3902f0(0x111))/0x3*(-parseInt(_0x3902f0(0x10c))/0x4)+-parseInt(_0x3902f0(0x10f))/0x5*(parseInt(_0x3902f0(0x10b))/0x6)+-parseInt(_0x3902f0(0x112))/0x7+parseInt(_0x3902f0(0x10d))/0x8+-parseInt(_0x3902f0(0x10e))/0x9+-parseInt(_0x3902f0(0x114))/0xa*(-parseInt(_0x3902f0(0x10a))/0xb);if(_0x3e7e09===_0x272fff)break;else _0x148abf['push'](_0x148abf['shift']());}catch(_0x3a223d){_0x148abf['push'](_0x148abf['shift']());}}}(a26_0xbe74,0x6f3f3));function a26_0xbe74(){const _0x24a4ec=['5386766BznNpq','255475DwwQnQ','18060mFFeKS','13431EMKCqe','66yecmhV','24nQaZjp','2701728hlEjbS','4119768MKTiVD','338990qlKSyK','2AvKKmQ','184791oINZxu'];a26_0xbe74=function(){return _0x24a4ec;};return a26_0xbe74();}import{appConfigList}from'../../commands/app-config/list.js';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_0xe1b2(_0x21053f,_0x7ca8d5){_0x21053f=_0x21053f-0x10a;const _0xbe7450=a26_0xbe74();let _0xe1b26e=_0xbe7450[_0x21053f];return _0xe1b26e;}export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
@@ -1 +1 @@
1
- const a27_0x3825dc=a27_0x3cc9;(function(_0x294727,_0x832692){const _0x18d747=a27_0x3cc9,_0x5f581d=_0x294727();while(!![]){try{const _0x5e27b0=-parseInt(_0x18d747(0xa1))/0x1*(-parseInt(_0x18d747(0xa2))/0x2)+-parseInt(_0x18d747(0xac))/0x3*(parseInt(_0x18d747(0x9d))/0x4)+-parseInt(_0x18d747(0xa6))/0x5+-parseInt(_0x18d747(0xae))/0x6*(parseInt(_0x18d747(0xa4))/0x7)+-parseInt(_0x18d747(0xb0))/0x8+-parseInt(_0x18d747(0x9a))/0x9*(-parseInt(_0x18d747(0x9b))/0xa)+parseInt(_0x18d747(0xaa))/0xb;if(_0x5e27b0===_0x832692)break;else _0x5f581d['push'](_0x5f581d['shift']());}catch(_0x2ce70e){_0x5f581d['push'](_0x5f581d['shift']());}}}(a27_0x44b3,0x8c1dd));function a27_0x3cc9(_0x1e3359,_0x541c1d){_0x1e3359=_0x1e3359-0x9a;const _0x44b378=a27_0x44b3();let _0x3cc9be=_0x44b378[_0x1e3359];return _0x3cc9be;}function a27_0x44b3(){const _0x41415c=['1OtORVj','1306532GpygjU','length','34951qZoyZe','list','234900sMgzmf','map','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','app-config','23082532JVDsPF','string','1500ggNApA','read','486bLoAZU','trim','6807176rJWelt','str','1075941jwyErb','10gZodkX','key','7960eLXJOT','appCode','Filter\x20by\x20exact\x20config\x20key','Found\x20'];a27_0x44b3=function(){return _0x41415c;};return a27_0x44b3();}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_0x3825dc(0xa9),'command':a27_0x3825dc(0xa5),'description':a27_0x3825dc(0xa8),'risk':a27_0x3825dc(0xad),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'key','type':a27_0x3825dc(0xab),'description':a27_0x3825dc(0x9f)},TAGS_FLAG],async 'validate'(_0xe18799){const _0x57484f=a27_0x3825dc,_0x4ac373=_0xe18799[_0x57484f(0xb1)](_0x57484f(0x9c))['trim']();if(_0x4ac373)validateKey(_0x4ac373);readOptionalTags(_0xe18799);},async 'execute'(_0x41e36e){const _0x4c16ad=a27_0x3825dc,_0x334106=_0x41e36e['str'](_0x4c16ad(0x9c))[_0x4c16ad(0xaf)]()||undefined,_0x5cf18b=readOptionalTags(_0x41e36e),_0x325489=await withAppConfigApiBoundary('list',{'appCode':_0x41e36e['appCode']},()=>listAppConfigs(_0x41e36e['appCode'],{'key':_0x334106,'tags':_0x5cf18b})),_0x16fee1=_0x325489[_0x4c16ad(0xa7)](_0x243106=>projectAppConfig(_0x243106));return{'ok':!![],'data':{'appCode':_0x41e36e[_0x4c16ad(0x9e)],'count':_0x16fee1[_0x4c16ad(0xa3)],'configs':_0x16fee1},'message':_0x4c16ad(0xa0)+_0x16fee1[_0x4c16ad(0xa3)]+'\x20app\x20config(s)'};}};
1
+ const a27_0x50102a=a27_0x35a9;function a27_0x4815(){const _0x54ccfc=['1253RtIKlF','7132908KYpUez','8618985xvOnZz','length','416nyIUWp','trim','12550308PBuvDX','appCode','app-config','576NhQQqm','map','Found\x20','11692VerIAu','key','171389BQsGAU','str','37340yHjuha','Filter\x20by\x20exact\x20config\x20key','10NAhOqn','31952MAyJMN','list','read','22ZDNBQl'];a27_0x4815=function(){return _0x54ccfc;};return a27_0x4815();}(function(_0x924627,_0x8c9f14){const _0x499865=a27_0x35a9,_0xdde824=_0x924627();while(!![]){try{const _0x15bb92=parseInt(_0x499865(0x11f))/0x1+parseInt(_0x499865(0x11d))/0x2*(-parseInt(_0x499865(0x131))/0x3)+-parseInt(_0x499865(0x12c))/0x4*(-parseInt(_0x499865(0x121))/0x5)+-parseInt(_0x499865(0x129))/0x6+parseInt(_0x499865(0x128))/0x7*(-parseInt(_0x499865(0x124))/0x8)+-parseInt(_0x499865(0x12a))/0x9*(-parseInt(_0x499865(0x123))/0xa)+-parseInt(_0x499865(0x127))/0xb*(-parseInt(_0x499865(0x12e))/0xc);if(_0x15bb92===_0x8c9f14)break;else _0xdde824['push'](_0xdde824['shift']());}catch(_0x44cf05){_0xdde824['push'](_0xdde824['shift']());}}}(a27_0x4815,0xed204));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';function a27_0x35a9(_0x39c2fd,_0x10ea16){_0x39c2fd=_0x39c2fd-0x11d;const _0x481546=a27_0x4815();let _0x35a9a6=_0x481546[_0x39c2fd];return _0x35a9a6;}export const appConfigList={'service':a27_0x50102a(0x130),'command':a27_0x50102a(0x125),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':a27_0x50102a(0x126),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x50102a(0x11e),'type':'string','description':a27_0x50102a(0x122)},TAGS_FLAG],async 'validate'(_0x9e715){const _0x4c0c0f=a27_0x50102a,_0x3f4498=_0x9e715[_0x4c0c0f(0x120)]('key')[_0x4c0c0f(0x12d)]();if(_0x3f4498)validateKey(_0x3f4498);readOptionalTags(_0x9e715);},async 'execute'(_0x470e49){const _0x1f403d=a27_0x50102a,_0x6ae03f=_0x470e49[_0x1f403d(0x120)](_0x1f403d(0x11e))['trim']()||undefined,_0x312fca=readOptionalTags(_0x470e49),_0x228516=await withAppConfigApiBoundary(_0x1f403d(0x125),{'appCode':_0x470e49['appCode']},()=>listAppConfigs(_0x470e49[_0x1f403d(0x12f)],{'key':_0x6ae03f,'tags':_0x312fca})),_0x308088=_0x228516[_0x1f403d(0x132)](_0x32930c=>projectAppConfig(_0x32930c));return{'ok':!![],'data':{'appCode':_0x470e49[_0x1f403d(0x12f)],'count':_0x308088[_0x1f403d(0x12b)],'configs':_0x308088},'message':_0x1f403d(0x133)+_0x308088[_0x1f403d(0x12b)]+'\x20app\x20config(s)'};}};
@@ -1 +1 @@
1
- function a28_0x1112(){const _0x58ec41=['/smartapi/app-config/create','40786xhWBHv','2377932siuOBK','12jTHSiO','appCode','get','file','string',',\x20appCode=','4696752iHKAAT','26IsGUhM','11942037fdUocl','32jJhlxd','write','apiError','\x20app\x20config\x20','565922DiSRJa','app-config','2767135eiiBZA','App\x20config\x20server\x20id\x20missing\x20for\x20key=','209050xlvMGg','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','create','Created','Read\x20config\x20value\x20from\x20file','set','update','308uAeHdf'];a28_0x1112=function(){return _0x58ec41;};return a28_0x1112();}const a28_0x238d9e=a28_0x2086;(function(_0x58cf2e,_0x325052){const _0x3e9593=a28_0x2086,_0x2da9d0=_0x58cf2e();while(!![]){try{const _0x3d7279=-parseInt(_0x3e9593(0x1fb))/0x1*(-parseInt(_0x3e9593(0x204))/0x2)+-parseInt(_0x3e9593(0x1fc))/0x3+-parseInt(_0x3e9593(0x203))/0x4+parseInt(_0x3e9593(0x1f0))/0x5*(parseInt(_0x3e9593(0x1fd))/0x6)+-parseInt(_0x3e9593(0x20a))/0x7*(-parseInt(_0x3e9593(0x206))/0x8)+parseInt(_0x3e9593(0x205))/0x9+-parseInt(_0x3e9593(0x1f2))/0xa*(parseInt(_0x3e9593(0x1f9))/0xb);if(_0x3d7279===_0x325052)break;else _0x2da9d0['push'](_0x2da9d0['shift']());}catch(_0x3f4293){_0x2da9d0['push'](_0x2da9d0['shift']());}}}(a28_0x1112,0xb37c9));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';function a28_0x2086(_0x300b61,_0x3f8f01){_0x300b61=_0x300b61-0x1ef;const _0x111227=a28_0x1112();let _0x208623=_0x111227[_0x300b61];return _0x208623;}const CREATE_PATH=a28_0x238d9e(0x1fa),UPDATE_PATH='/smartapi/app-config/update';export const appConfigSet={'service':a28_0x238d9e(0x1ef),'command':a28_0x238d9e(0x1f7),'description':a28_0x238d9e(0x1f3),'risk':a28_0x238d9e(0x207),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0x238d9e(0x200),'type':a28_0x238d9e(0x201),'description':a28_0x238d9e(0x1f6)}],async 'validate'(_0x2c3ad6){readKeyArg(_0x2c3ad6),readOptionalTags(_0x2c3ad6),assertSingleValueSource(_0x2c3ad6);},async 'dryRun'(_0x408677){const _0x44d297=a28_0x238d9e,_0x31e9e2=readKeyArg(_0x408677),_0x28ab14=readOptionalTags(_0x408677),_0x2ada52=assertSingleValueSource(_0x408677);await assertValueSourceReadable(_0x2ada52);const _0x5184b4=await withAppConfigApiBoundary(_0x44d297(0x1ff),{'appCode':_0x408677[_0x44d297(0x1fe)],'key':_0x31e9e2},()=>getAppConfigByKey(_0x408677[_0x44d297(0x1fe)],_0x31e9e2)),_0x15aad1=_0x5184b4?_0x44d297(0x1f8):_0x44d297(0x1f4),_0x13032e=_0x5184b4?projectAppConfig(_0x5184b4):null,_0x1da9e7=plannedAppConfig({'appCode':_0x408677[_0x44d297(0x1fe)],'key':_0x31e9e2,'tags':_0x28ab14??_0x5184b4?.['tags'],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x15aad1,'appCode':_0x408677[_0x44d297(0x1fe)],'key':_0x31e9e2,'before':_0x13032e,'after':_0x1da9e7,'dryRun':!![]}),{'method':'POST','url':_0x15aad1===_0x44d297(0x1f8)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x4042d3){const _0x218af9=a28_0x238d9e,_0x586782=readKeyArg(_0x4042d3),_0x28a6d7=readOptionalTags(_0x4042d3),_0x33c704=await withAppConfigApiBoundary(_0x218af9(0x1ff),{'appCode':_0x4042d3['appCode'],'key':_0x586782},()=>getAppConfigByKey(_0x4042d3[_0x218af9(0x1fe)],_0x586782)),_0x4e597c=_0x33c704?projectAppConfig(_0x33c704):null,_0x463554=_0x33c704?_0x218af9(0x1f8):'create',{value:_0x88fc12,warnings:_0x25be1c}=await readAppConfigValue(_0x4042d3),_0x41c104={'appCode':_0x4042d3[_0x218af9(0x1fe)],'key':_0x586782,'value':_0x88fc12,'tags':_0x28a6d7??_0x33c704?.['tags']??undefined};await withAppConfigApiBoundary(_0x463554,{'appCode':_0x4042d3[_0x218af9(0x1fe)],'key':_0x586782},async()=>{const _0x7689be=_0x218af9;_0x33c704?await updateAppConfig({..._0x41c104,'id':requireAppConfigId(_0x33c704,_0x586782,_0x4042d3[_0x7689be(0x1fe)])}):await createAppConfig(_0x41c104);});const _0x2055fb=await withAppConfigApiBoundary('get',{'appCode':_0x4042d3[_0x218af9(0x1fe)],'key':_0x586782},()=>getAppConfigByKey(_0x4042d3[_0x218af9(0x1fe)],_0x586782)),_0x59eb00=_0x2055fb?projectAppConfig(_0x2055fb):plannedAppConfig({'appCode':_0x4042d3['appCode'],'key':_0x586782,'tags':_0x41c104['tags'],'hasValue':_0x88fc12!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x463554,'appCode':_0x4042d3['appCode'],'key':_0x586782,'before':_0x4e597c,'after':_0x59eb00,'dryRun':![],'warnings':_0x25be1c}),'message':(_0x463554===_0x218af9(0x1f8)?'Updated':_0x218af9(0x1f5))+_0x218af9(0x209)+_0x586782};}};function requireAppConfigId(_0xe728fd,_0x2da980,_0x45ab75){const _0x148d88=a28_0x238d9e;if(typeof _0xe728fd['id']==='number'&&Number['isFinite'](_0xe728fd['id'])&&_0xe728fd['id']>0x0)return _0xe728fd['id'];throw CliErrors[_0x148d88(0x208)](_0x148d88(0x1f1)+_0x2da980+_0x148d88(0x202)+_0x45ab75);}
1
+ const a28_0xe00e65=a28_0x2b4a;(function(_0x59662c,_0x3e2b3a){const _0x2838cf=a28_0x2b4a,_0x31a075=_0x59662c();while(!![]){try{const _0x29815c=parseInt(_0x2838cf(0x12e))/0x1+parseInt(_0x2838cf(0x137))/0x2*(parseInt(_0x2838cf(0x139))/0x3)+parseInt(_0x2838cf(0x125))/0x4*(parseInt(_0x2838cf(0x122))/0x5)+parseInt(_0x2838cf(0x135))/0x6+parseInt(_0x2838cf(0x129))/0x7+-parseInt(_0x2838cf(0x121))/0x8*(-parseInt(_0x2838cf(0x12c))/0x9)+parseInt(_0x2838cf(0x120))/0xa*(-parseInt(_0x2838cf(0x128))/0xb);if(_0x29815c===_0x3e2b3a)break;else _0x31a075['push'](_0x31a075['shift']());}catch(_0x2e89f9){_0x31a075['push'](_0x31a075['shift']());}}}(a28_0x47ca,0x5a0b7));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a28_0x47ca(){const _0x2f7c75=['/smartapi/app-config/create','15267604mvAyrA','12026UYKqkm','tags','get','104697CaIObY','Updated','528628QtPkub','Read\x20config\x20value\x20from\x20file','App\x20config\x20server\x20id\x20missing\x20for\x20key=','string','POST','appCode','file','1049844ASerQi',',\x20appCode=','33578tcHjHb','set','117CjzqBc','/smartapi/app-config/update','\x20app\x20config\x20','write','apiError','isFinite','10HZZaNS','56SSccCl','425tKQcPr','update','create','14836WiQWYu','Created'];a28_0x47ca=function(){return _0x2f7c75;};return a28_0x47ca();}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_0xe00e65(0x127),UPDATE_PATH=a28_0xe00e65(0x11b);function a28_0x2b4a(_0x52973b,_0x401d5d){_0x52973b=_0x52973b-0x11b;const _0x47cafe=a28_0x47ca();let _0x2b4a98=_0x47cafe[_0x52973b];return _0x2b4a98;}export const appConfigSet={'service':'app-config','command':a28_0xe00e65(0x138),'description':'Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','risk':a28_0xe00e65(0x11d),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0xe00e65(0x134),'type':a28_0xe00e65(0x131),'description':a28_0xe00e65(0x12f)}],async 'validate'(_0x5b6f95){readKeyArg(_0x5b6f95),readOptionalTags(_0x5b6f95),assertSingleValueSource(_0x5b6f95);},async 'dryRun'(_0x46fbed){const _0x107194=a28_0xe00e65,_0x57e2ad=readKeyArg(_0x46fbed),_0x36ec06=readOptionalTags(_0x46fbed),_0x36ed5b=assertSingleValueSource(_0x46fbed);await assertValueSourceReadable(_0x36ed5b);const _0x4e3f6d=await withAppConfigApiBoundary(_0x107194(0x12b),{'appCode':_0x46fbed[_0x107194(0x133)],'key':_0x57e2ad},()=>getAppConfigByKey(_0x46fbed['appCode'],_0x57e2ad)),_0x2ef997=_0x4e3f6d?_0x107194(0x123):'create',_0xf4268a=_0x4e3f6d?projectAppConfig(_0x4e3f6d):null,_0x44f179=plannedAppConfig({'appCode':_0x46fbed['appCode'],'key':_0x57e2ad,'tags':_0x36ec06??_0x4e3f6d?.[_0x107194(0x12a)],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x2ef997,'appCode':_0x46fbed[_0x107194(0x133)],'key':_0x57e2ad,'before':_0xf4268a,'after':_0x44f179,'dryRun':!![]}),{'method':_0x107194(0x132),'url':_0x2ef997===_0x107194(0x123)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x527727){const _0x3d651b=a28_0xe00e65,_0x5ee183=readKeyArg(_0x527727),_0x116cb8=readOptionalTags(_0x527727),_0x10b507=await withAppConfigApiBoundary(_0x3d651b(0x12b),{'appCode':_0x527727[_0x3d651b(0x133)],'key':_0x5ee183},()=>getAppConfigByKey(_0x527727[_0x3d651b(0x133)],_0x5ee183)),_0xb5a3ec=_0x10b507?projectAppConfig(_0x10b507):null,_0x461176=_0x10b507?_0x3d651b(0x123):_0x3d651b(0x124),{value:_0x4ecf8d,warnings:_0x7181f1}=await readAppConfigValue(_0x527727),_0x2077e1={'appCode':_0x527727['appCode'],'key':_0x5ee183,'value':_0x4ecf8d,'tags':_0x116cb8??_0x10b507?.[_0x3d651b(0x12a)]??undefined};await withAppConfigApiBoundary(_0x461176,{'appCode':_0x527727[_0x3d651b(0x133)],'key':_0x5ee183},async()=>{const _0x3333b3=_0x3d651b;_0x10b507?await updateAppConfig({..._0x2077e1,'id':requireAppConfigId(_0x10b507,_0x5ee183,_0x527727[_0x3333b3(0x133)])}):await createAppConfig(_0x2077e1);});const _0x47fb0f=await withAppConfigApiBoundary(_0x3d651b(0x12b),{'appCode':_0x527727[_0x3d651b(0x133)],'key':_0x5ee183},()=>getAppConfigByKey(_0x527727[_0x3d651b(0x133)],_0x5ee183)),_0x33d29a=_0x47fb0f?projectAppConfig(_0x47fb0f):plannedAppConfig({'appCode':_0x527727[_0x3d651b(0x133)],'key':_0x5ee183,'tags':_0x2077e1[_0x3d651b(0x12a)],'hasValue':_0x4ecf8d!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x461176,'appCode':_0x527727[_0x3d651b(0x133)],'key':_0x5ee183,'before':_0xb5a3ec,'after':_0x33d29a,'dryRun':![],'warnings':_0x7181f1}),'message':(_0x461176===_0x3d651b(0x123)?_0x3d651b(0x12d):_0x3d651b(0x126))+_0x3d651b(0x11c)+_0x5ee183};}};function requireAppConfigId(_0x276270,_0x34ebfd,_0x2e6270){const _0x378b71=a28_0xe00e65;if(typeof _0x276270['id']==='number'&&Number[_0x378b71(0x11f)](_0x276270['id'])&&_0x276270['id']>0x0)return _0x276270['id'];throw CliErrors[_0x378b71(0x11e)](_0x378b71(0x130)+_0x34ebfd+_0x378b71(0x136)+_0x2e6270);}
@@ -1 +1 @@
1
- const a29_0x5415f3=a29_0x582e;(function(_0x2a21f9,_0x15197a){const _0x15d3d5=a29_0x582e,_0x1de161=_0x2a21f9();while(!![]){try{const _0x59b0ce=parseInt(_0x15d3d5(0x167))/0x1*(parseInt(_0x15d3d5(0x166))/0x2)+parseInt(_0x15d3d5(0x172))/0x3*(parseInt(_0x15d3d5(0x178))/0x4)+-parseInt(_0x15d3d5(0x161))/0x5*(parseInt(_0x15d3d5(0x191))/0x6)+-parseInt(_0x15d3d5(0x187))/0x7+parseInt(_0x15d3d5(0x17f))/0x8*(parseInt(_0x15d3d5(0x170))/0x9)+-parseInt(_0x15d3d5(0x16b))/0xa+-parseInt(_0x15d3d5(0x18a))/0xb;if(_0x59b0ce===_0x15197a)break;else _0x1de161['push'](_0x1de161['shift']());}catch(_0x3194b8){_0x1de161['push'](_0x1de161['shift']());}}}(a29_0x3e88,0x42fee));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':'key','description':a29_0x5415f3(0x19b),'required':!![]};export const VALUE_ARG={'name':a29_0x5415f3(0x18e),'description':a29_0x5415f3(0x18b),'required':![]};export const TAGS_FLAG={'name':a29_0x5415f3(0x168),'type':a29_0x5415f3(0x17c),'description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':a29_0x5415f3(0x193),'type':a29_0x5415f3(0x162),'description':a29_0x5415f3(0x195),'default':![]};function a29_0x3e88(){const _0x2348ce=['5vRvxkI','boolean','validation','once','file','6346yjwvzg','44qrflwL','tags','appCode','error','1827350EaXTZN','after','hasValue','kind','slice','4888179vxVDax','args','3prrzdg','valueRedacted','App\x20config\x20value\x20source\x20is\x20ambiguous.','reveal','push','warnings','2075068gAjWyy','operation','name','Failed\x20to\x20','string','key','utf8','8RKmRPo','before','str','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','Value\x20file\x20is\x20not\x20readable:\x20','apiError','\x20app\x20config.','path','3800153CQQoml','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','data','1355728zeGWzI','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','join','bool','value','argument','setEncoding','469404OzDFts','Environment\x20variable\x20is\x20not\x20set:\x20','stdin','Missing\x20app-config\x20key.','Read\x20config\x20value\x20from\x20stdin','trim','end','length','method','value\x20is\x20redacted','Runtime\x20app-config\x20key','env','key:\x20','from-env','flag','url','gmtCreate'];a29_0x3e88=function(){return _0x2348ce;};return a29_0x3e88();}export const FROM_ENV_FLAG={'name':a29_0x5415f3(0x15d),'type':a29_0x5415f3(0x17c),'description':'Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable'};export const REVEAL_FLAG={'name':a29_0x5415f3(0x175),'type':a29_0x5415f3(0x162),'description':'Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','default':![]};export function readKeyArg(_0x4b1ffc){const _0x228c75=a29_0x5415f3,_0xf92d71=_0x4b1ffc[_0x228c75(0x171)][0x0]?.[_0x228c75(0x196)]()??'';return validateKey(_0xf92d71),_0xf92d71;}export function readOptionalTags(_0x34e1d7){const _0x3d975d=a29_0x5415f3,_0x3762b3=_0x34e1d7['str'](_0x3d975d(0x168))[_0x3d975d(0x196)]();if(!_0x3762b3)return undefined;if(_0x3762b3[_0x3d975d(0x198)]>0x20)throw CliErrors['validation'](_0x3d975d(0x188));return _0x3762b3;}export function validateKey(_0x5690c8){const _0xc0c109=a29_0x5415f3;if(!_0x5690c8)throw CliErrors[_0xc0c109(0x163)](_0xc0c109(0x194));if(_0x5690c8[_0xc0c109(0x198)]>0x100)throw CliErrors[_0xc0c109(0x163)]('App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.');}export function projectAppConfig(_0x49e688,_0x4f25ba){const _0x2bbeea=a29_0x5415f3,_0x46be2e=_0x49e688[_0x2bbeea(0x18e)]!==undefined&&_0x49e688[_0x2bbeea(0x18e)]!==null&&_0x49e688[_0x2bbeea(0x18e)]!=='',_0x3ea5be={'appCode':_0x49e688[_0x2bbeea(0x169)],'key':_0x49e688[_0x2bbeea(0x17d)],'tags':_0x49e688[_0x2bbeea(0x168)]??undefined,'hasValue':_0x46be2e,'valueRedacted':_0x46be2e&&!_0x4f25ba?.['reveal'],'gmtCreate':_0x49e688[_0x2bbeea(0x160)],'gmtModified':_0x49e688['gmtModified']};return _0x4f25ba?.[_0x2bbeea(0x175)]&&(_0x3ea5be[_0x2bbeea(0x18e)]=_0x49e688['value']??'',_0x3ea5be[_0x2bbeea(0x173)]=![]),_0x3ea5be;}export function plannedAppConfig(_0xbde607){const _0x357acd=a29_0x5415f3,_0xcf42c0=_0xbde607[_0x357acd(0x16d)]??!![];return{'appCode':_0xbde607[_0x357acd(0x169)],'key':_0xbde607[_0x357acd(0x17d)],'tags':_0xbde607[_0x357acd(0x168)]??undefined,'hasValue':_0xcf42c0,'valueRedacted':_0xcf42c0};}export function buildMutationData(_0x673b0f){const _0x534953=a29_0x5415f3;return{'operation':_0x673b0f[_0x534953(0x179)],'selector':{'appCode':_0x673b0f[_0x534953(0x169)],'key':_0x673b0f['key']},'before':_0x673b0f[_0x534953(0x180)],'after':_0x673b0f[_0x534953(0x16c)],'dryRun':_0x673b0f['dryRun'],'warnings':_0x673b0f[_0x534953(0x177)]??[]};}export async function withAppConfigApiBoundary(_0x314b3d,_0x591683,_0x5cbc49){const _0x412c97=a29_0x5415f3;try{return await _0x5cbc49();}catch{const _0xefd10a=['appCode:\x20'+_0x591683[_0x412c97(0x169)]];if(_0x591683[_0x412c97(0x17d)])_0xefd10a[_0x412c97(0x176)](_0x412c97(0x15c)+_0x591683[_0x412c97(0x17d)]);_0xefd10a[_0x412c97(0x176)](_0x412c97(0x19a));throw CliErrors[_0x412c97(0x184)](_0x412c97(0x17b)+_0x314b3d+_0x412c97(0x185),_0xefd10a['join'](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x26bc20,_0x88d635){const _0x666e55=a29_0x5415f3;return Object['defineProperties'](_0x26bc20,{'method':{'value':_0x88d635[_0x666e55(0x199)],'enumerable':![]},'url':{'value':_0x88d635[_0x666e55(0x15f)],'enumerable':![]}});}function a29_0x582e(_0x56a984,_0x42cd61){_0x56a984=_0x56a984-0x15b;const _0x3e8884=a29_0x3e88();let _0x582e21=_0x3e8884[_0x56a984];return _0x582e21;}export function assertSingleValueSource(_0x38aad0){const _0x5a739e=a29_0x5415f3,_0x826a5b=[];_0x38aad0[_0x5a739e(0x171)][_0x5a739e(0x198)]>0x1&&_0x826a5b[_0x5a739e(0x176)]({'kind':_0x5a739e(0x18f),'value':_0x38aad0['args'][_0x5a739e(0x16f)](0x1)[_0x5a739e(0x18c)]('\x20')});const _0x34f5aa=_0x38aad0[_0x5a739e(0x15e)](_0x5a739e(0x18e));_0x34f5aa!==undefined&&_0x34f5aa!==null&&_0x826a5b[_0x5a739e(0x176)]({'kind':_0x5a739e(0x18f),'value':String(_0x34f5aa)});_0x38aad0[_0x5a739e(0x18d)](_0x5a739e(0x193))&&_0x826a5b[_0x5a739e(0x176)]({'kind':_0x5a739e(0x193)});const _0x30fc67=_0x38aad0[_0x5a739e(0x181)](_0x5a739e(0x15d))[_0x5a739e(0x196)]();_0x30fc67&&_0x826a5b[_0x5a739e(0x176)]({'kind':'env','name':_0x30fc67});const _0x5e0fd0=_0x38aad0[_0x5a739e(0x181)](_0x5a739e(0x165))[_0x5a739e(0x196)]();_0x5e0fd0&&_0x826a5b[_0x5a739e(0x176)]({'kind':_0x5a739e(0x165),'path':_0x5e0fd0});if(_0x826a5b[_0x5a739e(0x198)]===0x0)throw CliErrors[_0x5a739e(0x163)]('Missing\x20app-config\x20value\x20source.',_0x5a739e(0x182));if(_0x826a5b['length']>0x1)throw CliErrors['validation'](_0x5a739e(0x174),'Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.');return _0x826a5b[0x0];}export async function assertValueSourceReadable(_0x1d7e0a){const _0x93aba9=a29_0x5415f3;if(_0x1d7e0a[_0x93aba9(0x16e)]==='env'&&!(_0x1d7e0a[_0x93aba9(0x17a)]in process.env))throw CliErrors['validation']('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x1d7e0a['name']);if(_0x1d7e0a['kind']===_0x93aba9(0x165))try{await access(_0x1d7e0a[_0x93aba9(0x186)]);}catch{throw CliErrors[_0x93aba9(0x163)](_0x93aba9(0x183)+_0x1d7e0a[_0x93aba9(0x186)]);}}export async function readAppConfigValue(_0x50d93d){const _0x4d7743=a29_0x5415f3,_0xd708dc=assertSingleValueSource(_0x50d93d),_0x292737=[];if(_0xd708dc[_0x4d7743(0x16e)]===_0x4d7743(0x18f))return _0x292737['push']('Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.'),{'value':_0xd708dc[_0x4d7743(0x18e)]??'','source':_0xd708dc[_0x4d7743(0x16e)],'warnings':_0x292737};if(_0xd708dc[_0x4d7743(0x16e)]==='stdin')return{'value':await readStdin(),'source':_0xd708dc['kind'],'warnings':_0x292737};if(_0xd708dc[_0x4d7743(0x16e)]===_0x4d7743(0x15b)){if(!(_0xd708dc[_0x4d7743(0x17a)]in process.env))throw CliErrors[_0x4d7743(0x163)](_0x4d7743(0x192)+_0xd708dc['name']);return{'value':process.env[_0xd708dc.name]??'','source':_0xd708dc[_0x4d7743(0x16e)],'warnings':_0x292737};}return{'value':await readFile(_0xd708dc['path'],_0x4d7743(0x17e)),'source':_0xd708dc['kind'],'warnings':_0x292737};}function readStdin(){return new Promise((_0x3ded5c,_0x1206ae)=>{const _0x31ae7f=a29_0x582e;let _0x365423='';process[_0x31ae7f(0x193)][_0x31ae7f(0x190)](_0x31ae7f(0x17e)),process[_0x31ae7f(0x193)]['on'](_0x31ae7f(0x189),_0x28322d=>{_0x365423+=_0x28322d;}),process[_0x31ae7f(0x193)][_0x31ae7f(0x164)](_0x31ae7f(0x197),()=>_0x3ded5c(_0x365423)),process[_0x31ae7f(0x193)][_0x31ae7f(0x164)](_0x31ae7f(0x16a),_0x1206ae);});}
1
+ const a29_0x13b7b4=a29_0x2527;(function(_0x39b777,_0x2733fe){const _0xb468cf=a29_0x2527,_0x592a09=_0x39b777();while(!![]){try{const _0x410cd5=parseInt(_0xb468cf(0x1de))/0x1+-parseInt(_0xb468cf(0x1db))/0x2*(-parseInt(_0xb468cf(0x1e2))/0x3)+parseInt(_0xb468cf(0x1e1))/0x4+-parseInt(_0xb468cf(0x1d0))/0x5*(-parseInt(_0xb468cf(0x1f2))/0x6)+parseInt(_0xb468cf(0x1fe))/0x7*(-parseInt(_0xb468cf(0x1eb))/0x8)+parseInt(_0xb468cf(0x1fa))/0x9+-parseInt(_0xb468cf(0x1cf))/0xa*(parseInt(_0xb468cf(0x1d2))/0xb);if(_0x410cd5===_0x2733fe)break;else _0x592a09['push'](_0x592a09['shift']());}catch(_0x29810b){_0x592a09['push'](_0x592a09['shift']());}}}(a29_0x1854,0x1975d));import{access,readFile}from'node:fs/promises';function a29_0x1854(){const _0x2e3b5b=['Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','152549bkHsec','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','792504imlDAR','3aVoUOH','flag','validation','trim','boolean','setEncoding','appCode:\x20','Failed\x20to\x20','Environment\x20variable\x20is\x20not\x20set:\x20','8ztkScR','argument','App\x20config\x20value\x20source\x20is\x20ambiguous.','gmtCreate','tags','kind','file','1050XfpXXC','slice','path','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','before','value\x20is\x20redacted','after','push','578601DQzDtC','gmtModified','length','end','765002htuzHE','args','operation','name','appCode','once','stdin','defineProperties','string','bool','utf8','reveal','valueRedacted','apiError','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','\x20app\x20config.','Read\x20config\x20value\x20from\x20stdin','140YAXyQr','2580JtuoLR','from-env','390775sDwbqj','method','value','str','key','join','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','warnings','env','411314MHvcKX','key:\x20'];a29_0x1854=function(){return _0x2e3b5b;};return a29_0x1854();}import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x13b7b4(0x1d6),'description':'Runtime\x20app-config\x20key','required':!![]};export const VALUE_ARG={'name':a29_0x13b7b4(0x1d4),'description':a29_0x13b7b4(0x1d8),'required':![]};function a29_0x2527(_0x166eec,_0x37e1ea){_0x166eec=_0x166eec-0x1c9;const _0x1854f9=a29_0x1854();let _0x252711=_0x1854f9[_0x166eec];return _0x252711;}export const TAGS_FLAG={'name':a29_0x13b7b4(0x1ef),'type':'string','description':'Config\x20tags\x20for\x20filtering/display\x20metadata'};export const STDIN_FLAG={'name':a29_0x13b7b4(0x204),'type':'boolean','description':a29_0x13b7b4(0x1ce),'default':![]};export const FROM_ENV_FLAG={'name':a29_0x13b7b4(0x1d1),'type':a29_0x13b7b4(0x206),'description':a29_0x13b7b4(0x1f5)};export const REVEAL_FLAG={'name':'reveal','type':a29_0x13b7b4(0x1e6),'description':a29_0x13b7b4(0x1e0),'default':![]};export function readKeyArg(_0x165431){const _0x2ad6c7=_0x165431['args'][0x0]?.['trim']()??'';return validateKey(_0x2ad6c7),_0x2ad6c7;}export function readOptionalTags(_0x5e7380){const _0x4fa338=a29_0x13b7b4,_0x4188ca=_0x5e7380['str'](_0x4fa338(0x1ef))[_0x4fa338(0x1e5)]();if(!_0x4188ca)return undefined;if(_0x4188ca[_0x4fa338(0x1fc)]>0x20)throw CliErrors['validation']('App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.');return _0x4188ca;}export function validateKey(_0xeb6b26){const _0x58082b=a29_0x13b7b4;if(!_0xeb6b26)throw CliErrors['validation']('Missing\x20app-config\x20key.');if(_0xeb6b26['length']>0x100)throw CliErrors[_0x58082b(0x1e4)](_0x58082b(0x1cc));}export function projectAppConfig(_0x4e86c8,_0x5f46b9){const _0x54f43c=a29_0x13b7b4,_0x4f3053=_0x4e86c8['value']!==undefined&&_0x4e86c8[_0x54f43c(0x1d4)]!==null&&_0x4e86c8[_0x54f43c(0x1d4)]!=='',_0x386e1f={'appCode':_0x4e86c8[_0x54f43c(0x202)],'key':_0x4e86c8[_0x54f43c(0x1d6)],'tags':_0x4e86c8[_0x54f43c(0x1ef)]??undefined,'hasValue':_0x4f3053,'valueRedacted':_0x4f3053&&!_0x5f46b9?.[_0x54f43c(0x1c9)],'gmtCreate':_0x4e86c8[_0x54f43c(0x1ee)],'gmtModified':_0x4e86c8[_0x54f43c(0x1fb)]};return _0x5f46b9?.[_0x54f43c(0x1c9)]&&(_0x386e1f[_0x54f43c(0x1d4)]=_0x4e86c8[_0x54f43c(0x1d4)]??'',_0x386e1f[_0x54f43c(0x1ca)]=![]),_0x386e1f;}export function plannedAppConfig(_0x104882){const _0x5c3cce=a29_0x13b7b4,_0x37be2a=_0x104882['hasValue']??!![];return{'appCode':_0x104882[_0x5c3cce(0x202)],'key':_0x104882['key'],'tags':_0x104882[_0x5c3cce(0x1ef)]??undefined,'hasValue':_0x37be2a,'valueRedacted':_0x37be2a};}export function buildMutationData(_0x34c599){const _0x28e62f=a29_0x13b7b4;return{'operation':_0x34c599[_0x28e62f(0x200)],'selector':{'appCode':_0x34c599[_0x28e62f(0x202)],'key':_0x34c599['key']},'before':_0x34c599[_0x28e62f(0x1f6)],'after':_0x34c599[_0x28e62f(0x1f8)],'dryRun':_0x34c599['dryRun'],'warnings':_0x34c599[_0x28e62f(0x1d9)]??[]};}export async function withAppConfigApiBoundary(_0x475c16,_0x4c034f,_0x35dd96){const _0x1f5623=a29_0x13b7b4;try{return await _0x35dd96();}catch{const _0x4ae492=[_0x1f5623(0x1e8)+_0x4c034f['appCode']];if(_0x4c034f[_0x1f5623(0x1d6)])_0x4ae492[_0x1f5623(0x1f9)](_0x1f5623(0x1dc)+_0x4c034f['key']);_0x4ae492[_0x1f5623(0x1f9)](_0x1f5623(0x1f7));throw CliErrors[_0x1f5623(0x1cb)](_0x1f5623(0x1e9)+_0x475c16+_0x1f5623(0x1cd),_0x4ae492[_0x1f5623(0x1d7)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x51cbd1,_0x3596e0){const _0x5221d2=a29_0x13b7b4;return Object[_0x5221d2(0x205)](_0x51cbd1,{'method':{'value':_0x3596e0[_0x5221d2(0x1d3)],'enumerable':![]},'url':{'value':_0x3596e0['url'],'enumerable':![]}});}export function assertSingleValueSource(_0x189b50){const _0x48670f=a29_0x13b7b4,_0x669f88=[];_0x189b50[_0x48670f(0x1ff)][_0x48670f(0x1fc)]>0x1&&_0x669f88[_0x48670f(0x1f9)]({'kind':_0x48670f(0x1ec),'value':_0x189b50[_0x48670f(0x1ff)][_0x48670f(0x1f3)](0x1)[_0x48670f(0x1d7)]('\x20')});const _0x64576=_0x189b50[_0x48670f(0x1e3)]('value');_0x64576!==undefined&&_0x64576!==null&&_0x669f88['push']({'kind':_0x48670f(0x1ec),'value':String(_0x64576)});_0x189b50[_0x48670f(0x207)](_0x48670f(0x204))&&_0x669f88[_0x48670f(0x1f9)]({'kind':'stdin'});const _0x3cc109=_0x189b50[_0x48670f(0x1d5)](_0x48670f(0x1d1))[_0x48670f(0x1e5)]();_0x3cc109&&_0x669f88[_0x48670f(0x1f9)]({'kind':'env','name':_0x3cc109});const _0x46a498=_0x189b50['str'](_0x48670f(0x1f1))['trim']();_0x46a498&&_0x669f88[_0x48670f(0x1f9)]({'kind':_0x48670f(0x1f1),'path':_0x46a498});if(_0x669f88['length']===0x0)throw CliErrors['validation']('Missing\x20app-config\x20value\x20source.',_0x48670f(0x1dd));if(_0x669f88[_0x48670f(0x1fc)]>0x1)throw CliErrors[_0x48670f(0x1e4)](_0x48670f(0x1ed),_0x48670f(0x1df));return _0x669f88[0x0];}export async function assertValueSourceReadable(_0x54c31a){const _0x504e9a=a29_0x13b7b4;if(_0x54c31a[_0x504e9a(0x1f0)]===_0x504e9a(0x1da)&&!(_0x54c31a[_0x504e9a(0x201)]in process.env))throw CliErrors[_0x504e9a(0x1e4)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x54c31a[_0x504e9a(0x201)]);if(_0x54c31a[_0x504e9a(0x1f0)]===_0x504e9a(0x1f1))try{await access(_0x54c31a['path']);}catch{throw CliErrors[_0x504e9a(0x1e4)]('Value\x20file\x20is\x20not\x20readable:\x20'+_0x54c31a[_0x504e9a(0x1f4)]);}}export async function readAppConfigValue(_0x5dd612){const _0x2d9b8a=a29_0x13b7b4,_0xef1719=assertSingleValueSource(_0x5dd612),_0x2a403a=[];if(_0xef1719[_0x2d9b8a(0x1f0)]===_0x2d9b8a(0x1ec))return _0x2a403a[_0x2d9b8a(0x1f9)]('Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.'),{'value':_0xef1719['value']??'','source':_0xef1719[_0x2d9b8a(0x1f0)],'warnings':_0x2a403a};if(_0xef1719[_0x2d9b8a(0x1f0)]===_0x2d9b8a(0x204))return{'value':await readStdin(),'source':_0xef1719[_0x2d9b8a(0x1f0)],'warnings':_0x2a403a};if(_0xef1719[_0x2d9b8a(0x1f0)]==='env'){if(!(_0xef1719[_0x2d9b8a(0x201)]in process.env))throw CliErrors[_0x2d9b8a(0x1e4)](_0x2d9b8a(0x1ea)+_0xef1719[_0x2d9b8a(0x201)]);return{'value':process.env[_0xef1719.name]??'','source':_0xef1719[_0x2d9b8a(0x1f0)],'warnings':_0x2a403a};}return{'value':await readFile(_0xef1719[_0x2d9b8a(0x1f4)],_0x2d9b8a(0x208)),'source':_0xef1719[_0x2d9b8a(0x1f0)],'warnings':_0x2a403a};}function readStdin(){return new Promise((_0x4f8418,_0x24e465)=>{const _0x345681=a29_0x2527;let _0x106fb2='';process[_0x345681(0x204)][_0x345681(0x1e7)](_0x345681(0x208)),process[_0x345681(0x204)]['on']('data',_0x303c5f=>{_0x106fb2+=_0x303c5f;}),process[_0x345681(0x204)]['once'](_0x345681(0x1fd),()=>_0x4f8418(_0x106fb2)),process[_0x345681(0x204)][_0x345681(0x203)]('error',_0x24e465);});}
@@ -1 +1 @@
1
- function a30_0x5164(){const _0x38cc6a=['!\x20Not\x20logged\x20in','log','auth','write','1668096EAkIAh','boolean','264ezqLHR','470001OnFMsr','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','yes','213927eZVmtC','448gJRKDz','bool','Clear\x20login\x20session','6OBIHkT','4278330tbKpZh','539349tMlxXB','Login\x20via\x20browser','logout','14695mKukaX','../../auth/auth-server-ui.js'];a30_0x5164=function(){return _0x38cc6a;};return a30_0x5164();}const a30_0x5d9474=a30_0xa447;(function(_0x36afd1,_0x2f710e){const _0xbedbd3=a30_0xa447,_0x2457ff=_0x36afd1();while(!![]){try{const _0x375cd2=parseInt(_0xbedbd3(0x1c3))/0x1+-parseInt(_0xbedbd3(0x1ca))/0x2*(-parseInt(_0xbedbd3(0x1cc))/0x3)+-parseInt(_0xbedbd3(0x1c0))/0x4+-parseInt(_0xbedbd3(0x1cf))/0x5*(-parseInt(_0xbedbd3(0x1c2))/0x6)+parseInt(_0xbedbd3(0x1c6))/0x7+-parseInt(_0xbedbd3(0x1c7))/0x8+-parseInt(_0xbedbd3(0x1cb))/0x9;if(_0x375cd2===_0x2f710e)break;else _0x2457ff['push'](_0x2457ff['shift']());}catch(_0x4fefb7){_0x2457ff['push'](_0x2457ff['shift']());}}}(a30_0x5164,0x43929));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';function a30_0xa447(_0x34e914,_0x4a8177){_0x34e914=_0x34e914-0x1be;const _0x5164d6=a30_0x5164();let _0xa4476f=_0x5164d6[_0x34e914];return _0xa4476f;}export const authDefinitions=[{'service':a30_0x5d9474(0x1be),'command':'login','description':a30_0x5d9474(0x1cd),'risk':a30_0x5d9474(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x5d9474(0x1c5),'type':a30_0x5d9474(0x1c1),'description':a30_0x5d9474(0x1c4),'default':![]}],async 'execute'(_0x131a4c){const _0x35fa28=a30_0x5d9474,{runAuthServer:_0x510832}=await import(_0x35fa28(0x1d0));return await _0x510832({'autoYes':_0x131a4c[_0x35fa28(0x1c8)]('yes'),'nonInteractive':_0x131a4c['nonInteractive']}),{'ok':!![]};}},{'service':a30_0x5d9474(0x1be),'command':a30_0x5d9474(0x1ce),'description':a30_0x5d9474(0x1c9),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x31d07d){const _0x1ee21f=a30_0x5d9474;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1ee21f(0x1d2)]('✓\x20Logged\x20out')):console[_0x1ee21f(0x1d2)](_0x1ee21f(0x1d1)),{'ok':!![]};}}];
1
+ function a30_0xbdc9(_0x343fa4,_0x2a3722){_0x343fa4=_0x343fa4-0xce;const _0x39923a=a30_0x3992();let _0xbdc9d6=_0x39923a[_0x343fa4];return _0xbdc9d6;}const a30_0x78b56e=a30_0xbdc9;(function(_0x333378,_0x4ad8ac){const _0x438d17=a30_0xbdc9,_0x5b4b00=_0x333378();while(!![]){try{const _0x332d9f=parseInt(_0x438d17(0xd7))/0x1+parseInt(_0x438d17(0xd8))/0x2*(-parseInt(_0x438d17(0xd6))/0x3)+-parseInt(_0x438d17(0xd2))/0x4+parseInt(_0x438d17(0xd4))/0x5*(parseInt(_0x438d17(0xd0))/0x6)+-parseInt(_0x438d17(0xdf))/0x7+parseInt(_0x438d17(0xe3))/0x8*(parseInt(_0x438d17(0xe1))/0x9)+parseInt(_0x438d17(0xce))/0xa;if(_0x332d9f===_0x4ad8ac)break;else _0x5b4b00['push'](_0x5b4b00['shift']());}catch(_0x539b38){_0x5b4b00['push'](_0x5b4b00['shift']());}}}(a30_0x3992,0x5751a));function a30_0x3992(){const _0x5b4f92=['6936870ZPHfkL','!\x20Not\x20logged\x20in','6852INyWVG','logout','2108160knkzCX','yes','2130neRBek','../../auth/auth-server-ui.js','19956DgtHBK','481508qiDJsg','200LxgoGf','nonInteractive','auth','write','log','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','Login\x20via\x20browser','4389280nupkvc','login','4637259VnWxPq','Clear\x20login\x20session','8XppkdN'];a30_0x3992=function(){return _0x5b4f92;};return a30_0x3992();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':'auth','command':a30_0x78b56e(0xe0),'description':a30_0x78b56e(0xde),'risk':a30_0x78b56e(0xdb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x78b56e(0xd3),'type':'boolean','description':a30_0x78b56e(0xdd),'default':![]}],async 'execute'(_0x430866){const _0x50594c=a30_0x78b56e,{runAuthServer:_0x25a25f}=await import(_0x50594c(0xd5));return await _0x25a25f({'autoYes':_0x430866['bool'](_0x50594c(0xd3)),'nonInteractive':_0x430866[_0x50594c(0xd9)]}),{'ok':!![]};}},{'service':a30_0x78b56e(0xda),'command':a30_0x78b56e(0xd1),'description':a30_0x78b56e(0xe2),'risk':a30_0x78b56e(0xdb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x990cae){const _0x50ec60=a30_0x78b56e;return existsSync(cookieFile)?(unlinkSync(cookieFile),console['log']('✓\x20Logged\x20out')):console[_0x50ec60(0xdc)](_0x50ec60(0xcf)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a31_0x2dc698=a31_0x4d29;(function(_0x2cb92d,_0x517c40){const _0x2a05f5=a31_0x4d29,_0x1ccb7e=_0x2cb92d();while(!![]){try{const _0x538ee6=parseInt(_0x2a05f5(0x1c9))/0x1*(parseInt(_0x2a05f5(0x227))/0x2)+parseInt(_0x2a05f5(0x226))/0x3*(parseInt(_0x2a05f5(0x219))/0x4)+-parseInt(_0x2a05f5(0x1fa))/0x5*(-parseInt(_0x2a05f5(0x1c7))/0x6)+parseInt(_0x2a05f5(0x1c6))/0x7*(parseInt(_0x2a05f5(0x1bb))/0x8)+parseInt(_0x2a05f5(0x1e5))/0x9+-parseInt(_0x2a05f5(0x1ef))/0xa+-parseInt(_0x2a05f5(0x1ec))/0xb;if(_0x538ee6===_0x517c40)break;else _0x1ccb7e['push'](_0x1ccb7e['shift']());}catch(_0x31c30c){_0x1ccb7e['push'](_0x1ccb7e['shift']());}}}(a31_0x30f0,0xd7656));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';function a31_0x4d29(_0x5d49b8,_0x4a1f03){_0x5d49b8=_0x5d49b8-0x1b8;const _0x30f0d5=a31_0x30f0();let _0x4d29f0=_0x30f0d5[_0x5d49b8];return _0x4d29f0;}function a31_0x30f0(){const _0x500684=['join','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','12605200vVgHQo','HOOK','Select\x20trigger\x20node:','Trigger\x20node\x20(HOOK\x20only)','after','tableName','question','string','appCode','Select\x20dataset:','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','15ptWElM','str','source','stdin','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','includes','/data/dataset/','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','function-node','length','/ENDPOINT/','bff','scriptsRootDir','functionNode','UNKNOWN','Function\x20name\x20(valid\x20JS\x20identifier)','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','type','Invalid\x20function\x20name\x20\x22','Operation\x20type\x20(HOOK\x20only)','No\x20operation\x20types\x20found\x20for\x20dataset\x20','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','description','\x20api\x20pull`\x20to\x20refresh.','\x22\x20not\x20found.\x20','parseInt','create','\x0a\x20*\x20[平台配置]\x20','Created\x20','191876nQJiei','Script\x20description','\x22.\x20','operation-type','validation','\x0a\x20*\x20[接口路径]\x20POST\x20/api/','\x22,\x20params\x20})\x0a','.js\x0a\x20*\x20[触发节点]\x20','The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','trim','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','Script\x20type','18lXggJx','844726DfwWlk','\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','/HOOK/','8ZoXOdj','Invalid\x20dataset\x20selection.',']\x20(','File\x20already\x20exists:\x20','alias','当前响应结果','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','code','Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)','\x20function:\x20','5983411wfeygV','497202GjNXga','stderr','3BdbxGA','apiDir','ENDPOINT','.js\x0a','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','/COMMON/','.js','find','COMMON','\x22\x20not\x20found\x20for\x20dataset\x20','Available\x20aliases:\x20','nonInteractive','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','Dataset\x20not\x20found\x20for\x20code\x20\x22','read','Select\x20operation\x20type:','\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','datasetId','Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','before','/**\x0a\x20*\x20','write','utf8','Alias\x20\x22','close','name','datasetcode','datasetCode','1165644EmZzAh','operationType','修改后的请求参数','No\x20api.ts\x20found.\x20Run\x20`','HOOK\x20requires\x20alias/operation/node\x20options.','修改后的响应结果','entries','7095121hHhQgN'];a31_0x30f0=function(){return _0x500684;};return a31_0x30f0();}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_0x2dc698(0x206),'command':a31_0x2dc698(0x216),'description':a31_0x2dc698(0x1db),'risk':a31_0x2dc698(0x1d7),'flags':[{'name':'type','type':a31_0x2dc698(0x1f6),'required':!![],'enum':[a31_0x2dc698(0x1d1),'ENDPOINT','HOOK'],'description':a31_0x2dc698(0x225)},{'name':a31_0x2dc698(0x1e2),'type':a31_0x2dc698(0x1f6),'required':!![],'description':a31_0x2dc698(0x20a)},{'name':'description','type':'string','description':a31_0x2dc698(0x21a)},{'name':a31_0x2dc698(0x1bf),'type':a31_0x2dc698(0x1f6),'description':a31_0x2dc698(0x1c4)},{'name':a31_0x2dc698(0x1e3),'type':a31_0x2dc698(0x1f6),'description':a31_0x2dc698(0x1cd)},{'name':'operation-type','type':a31_0x2dc698(0x1f6),'description':a31_0x2dc698(0x20e)},{'name':'function-node','type':a31_0x2dc698(0x1f6),'description':a31_0x2dc698(0x1f2),'enum':[a31_0x2dc698(0x1dc),a31_0x2dc698(0x1f3)]}],async 'validate'(_0x3df0ad){const _0x5e10b6=a31_0x2dc698,_0x2a431d=_0x3df0ad[_0x5e10b6(0x1fb)](_0x5e10b6(0x1e2));if(!isValidBffFunctionName(_0x2a431d))throw CliErrors['validation'](_0x5e10b6(0x20d)+_0x2a431d+_0x5e10b6(0x222));},async 'execute'(_0x8dc1eb){const _0x48a4bf=a31_0x2dc698,_0x10afe6=loadBffProjectConfig(_0x8dc1eb['appCode']),_0x2f5541=_0x8dc1eb['str'](_0x48a4bf(0x20c)),_0x249bae=_0x8dc1eb[_0x48a4bf(0x1fb)](_0x48a4bf(0x1e2)),_0x15866c=_0x8dc1eb[_0x48a4bf(0x1fb)](_0x48a4bf(0x212))||undefined,_0x3fa8bd=_0x2f5541===_0x48a4bf(0x1f0)?await resolveHookOptions(_0x10afe6,_0x8dc1eb):undefined,_0x25104c=buildFilePath(_0x10afe6,_0x2f5541,_0x249bae,_0x3fa8bd);if(await fileExists(_0x25104c))throw CliErrors[_0x48a4bf(0x21d)](_0x48a4bf(0x1be)+_0x25104c);await mkdir(dirname(_0x25104c),{'recursive':!![]});const _0xfae4c8=generateTemplate(_0x2f5541,_0x249bae,_0x8dc1eb[_0x48a4bf(0x1f7)],_0x15866c,_0x3fa8bd);await writeFile(_0x25104c,_0xfae4c8,_0x48a4bf(0x1df));const _0x2985b5={'type':_0x2f5541,'name':_0x249bae,'path':_0x25104c};if(_0x15866c)_0x2985b5['description']=_0x15866c;if(_0x3fa8bd){if(_0x3fa8bd[_0x48a4bf(0x1bf)])_0x2985b5['alias']=_0x3fa8bd[_0x48a4bf(0x1bf)];_0x2985b5[_0x48a4bf(0x1e4)]=_0x3fa8bd[_0x48a4bf(0x1e4)],_0x2985b5[_0x48a4bf(0x1e6)]=_0x3fa8bd[_0x48a4bf(0x1e6)],_0x2985b5[_0x48a4bf(0x208)]=_0x3fa8bd[_0x48a4bf(0x208)];}return{'ok':!![],'data':_0x2985b5,'message':_0x48a4bf(0x218)+_0x2f5541+_0x48a4bf(0x1c5)+_0x249bae};}};async function resolveHookOptions(_0x2fdbc5,_0x39c9b7){const _0x131bb7=a31_0x2dc698,_0x3724e0=loadAliasMap(_0x39c9b7[_0x131bb7(0x1ca)],undefined,resolveApiFilePath(_0x39c9b7[_0x131bb7(0x1ca)],_0x39c9b7[_0x131bb7(0x1f7)])),_0x150a11=_0x3724e0['length']>0x0;let _0x4b24e6,_0x313219,_0x177eb9;const _0xdfa149=_0x39c9b7[_0x131bb7(0x1fb)]('alias'),_0x49319e=_0x39c9b7[_0x131bb7(0x1fb)](_0x131bb7(0x1e3));if(_0xdfa149){const _0x3be297=resolveAlias(_0x39c9b7[_0x131bb7(0x1ca)],_0xdfa149,undefined,resolveApiFilePath(_0x39c9b7[_0x131bb7(0x1ca)],_0x39c9b7['appCode']));if(!_0x3be297){const _0x168f9d=_0x150a11?_0x131bb7(0x1d3)+_0x3724e0['map'](_0x530c62=>_0x530c62['alias'])[_0x131bb7(0x1ed)](',\x20'):_0x131bb7(0x1e8)+CLI_BIN_NAME+_0x131bb7(0x224);throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x1e0)+_0xdfa149+_0x131bb7(0x214)+_0x168f9d);}_0x4b24e6=_0xdfa149,_0x313219=_0x3be297;}else{if(_0x49319e){_0x313219=_0x49319e;const _0x2033ed=_0x3724e0[_0x131bb7(0x1d0)](_0x461aa6=>_0x461aa6[_0x131bb7(0x1e4)]===_0x49319e);_0x4b24e6=_0x2033ed?.['alias'];}else{if(_0x39c9b7[_0x131bb7(0x1d4)])throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x20b));else{if(_0x150a11){const _0x2ba3fa=_0x3724e0['map'](_0x5a19da=>_0x5a19da[_0x131bb7(0x1bf)]+'\x20('+_0x5a19da[_0x131bb7(0x1f4)]+')'),_0x5dab3f=await promptSelect('Select\x20dataset:',_0x2ba3fa),_0x3d4a0e=_0x3724e0[_0x5dab3f];if(!_0x3d4a0e)throw CliErrors[_0x131bb7(0x21d)]('Invalid\x20dataset\x20selection.');_0x4b24e6=_0x3d4a0e['alias'],_0x313219=_0x3d4a0e[_0x131bb7(0x1e4)];}else{const _0xf4a239=await listDatasets(_0x39c9b7[_0x131bb7(0x1f7)]);if(_0xf4a239[_0x131bb7(0x204)]===0x0)throw CliErrors[_0x131bb7(0x21d)]('No\x20datasets\x20found\x20for\x20this\x20app.');const _0x2a2ab6=_0xf4a239['map'](_0x1a1d41=>_0x1a1d41[_0x131bb7(0x1e2)]+'\x20['+(_0x1a1d41[_0x131bb7(0x1fc)]??_0x131bb7(0x209))+_0x131bb7(0x1bd)+_0x1a1d41[_0x131bb7(0x1c3)]+')'),_0x3e04fe=await promptSelect(_0x131bb7(0x1f8),_0x2a2ab6),_0x3f1d40=_0xf4a239[_0x3e04fe];if(!_0x3f1d40)throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x1bc));_0x313219=_0x3f1d40[_0x131bb7(0x1c3)],_0x4b24e6=undefined;}}}}const _0x1e90df=await listDatasets(_0x39c9b7['appCode']),_0x1125ef=_0x1e90df[_0x131bb7(0x1d0)](_0x48758d=>_0x48758d['code']===_0x313219);if(!_0x1125ef)throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x1d6)+_0x313219+_0x131bb7(0x21b)+(_0x4b24e6?_0x131bb7(0x221)+CLI_BIN_NAME+_0x131bb7(0x213):''));_0x177eb9=_0x1125ef['id'];const _0x2c6771=_0x4b24e6??_0x313219,_0x4328b3=await listBffDatasetOperations(_0x39c9b7['appCode'],_0x177eb9),_0x524f31=_0x4328b3?Object['keys'](_0x4328b3):[];if(_0x524f31[_0x131bb7(0x204)]===0x0)throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x20f)+_0x2c6771+'.');let _0x3a0a7b;const _0x548532=_0x39c9b7[_0x131bb7(0x1fb)](_0x131bb7(0x21c));if(_0x548532){if(!_0x524f31[_0x131bb7(0x1ff)](_0x548532))throw CliErrors[_0x131bb7(0x21d)]('Operation\x20type\x20\x22'+_0x548532+_0x131bb7(0x1d2)+_0x2c6771+'.\x20'+('Available:\x20'+_0x524f31[_0x131bb7(0x1ed)](',\x20')));_0x3a0a7b=_0x548532;}else{if(_0x39c9b7['nonInteractive'])throw CliErrors['validation'](_0x131bb7(0x1c2));const _0x5950d9=await promptSelect(_0x131bb7(0x1d8),_0x524f31);_0x3a0a7b=_0x524f31[_0x5950d9]??_0x524f31[0x0];}let _0x5ba04c=normalizeHookFunctionNode(_0x39c9b7['str'](_0x131bb7(0x203)));if(!_0x5ba04c){if(_0x39c9b7['str']('function-node'))throw CliErrors[_0x131bb7(0x21d)](_0x131bb7(0x210));if(_0x39c9b7[_0x131bb7(0x1d4)])throw CliErrors['validation'](_0x131bb7(0x1c1));const _0x53e5a4=await promptSelect(_0x131bb7(0x1f1),[_0x131bb7(0x1dc),'after']);_0x5ba04c=[_0x131bb7(0x1dc),_0x131bb7(0x1f3)][_0x53e5a4]??_0x131bb7(0x1dc);}return{'alias':_0x4b24e6,'datasetCode':_0x313219,'datasetId':_0x177eb9,'operationType':_0x3a0a7b,'functionNode':_0x5ba04c};}async function promptSelect(_0x3ac9d2,_0x174401){const _0xdc5dcd=a31_0x2dc698;if(_0x174401[_0xdc5dcd(0x204)]===0x1)return 0x0;for(const [_0x2ef540,_0x760016]of _0x174401[_0xdc5dcd(0x1eb)]()){process[_0xdc5dcd(0x1c8)]['write']('\x20\x20'+(_0x2ef540+0x1)+'.\x20'+_0x760016+'\x0a');}const _0x37fb81=createInterface({'input':process[_0xdc5dcd(0x1fd)],'output':process[_0xdc5dcd(0x1c8)]});while(!![]){const _0x172086=await new Promise(_0x219e76=>{const _0x254898=_0xdc5dcd;_0x37fb81[_0x254898(0x1f5)](_0x3ac9d2+'\x20',_0x219e76);}),_0x49477e=Number[_0xdc5dcd(0x215)](_0x172086[_0xdc5dcd(0x223)](),0xa);if(Number['isInteger'](_0x49477e)&&_0x49477e>=0x1&&_0x49477e<=_0x174401[_0xdc5dcd(0x204)])return _0x37fb81[_0xdc5dcd(0x1e1)](),_0x49477e-0x1;process[_0xdc5dcd(0x1c8)][_0xdc5dcd(0x1de)]('\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20'+_0x174401[_0xdc5dcd(0x204)]+'.\x0a');}}function buildFilePath(_0xa21845,_0x39c6d9,_0x578107,_0x23db14){const _0x385756=a31_0x2dc698;if(_0x39c6d9===_0x385756(0x1f0)){if(!_0x23db14)throw CliErrors[_0x385756(0x21d)](_0x385756(0x1e9));const _0x40c11e=_0x23db14[_0x385756(0x1bf)]??_0x23db14[_0x385756(0x1e4)];return join(_0xa21845[_0x385756(0x207)],_0x385756(0x1f0),_0x40c11e,_0x23db14[_0x385756(0x1e6)],_0x23db14['functionNode'],_0x578107+_0x385756(0x1cf));}return join(_0xa21845[_0x385756(0x207)],_0x39c6d9,_0x578107+'.js');}export function generateTemplate(_0x3055bd,_0x554ea3,_0x4e6ebe,_0x173b5c,_0x5136fe){const _0x51065e=a31_0x2dc698,_0x2586f7=_0x173b5c?.[_0x51065e(0x223)]()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x2df96d=getAppBaseUrl(_0x4e6ebe),_0x55de15=_0x51065e(0x1fe);if(_0x3055bd===_0x51065e(0x1d1))return _0x51065e(0x1dd)+_0x2586f7+_0x51065e(0x1b9)+_0x554ea3+_0x51065e(0x217)+_0x2df96d+_0x51065e(0x201)+_0x4e6ebe+_0x51065e(0x1ce)+_0x554ea3+_0x51065e(0x211)+_0x554ea3+_0x51065e(0x21f)+_0x55de15+'\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'+_0x554ea3+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(_0x3055bd===_0x51065e(0x1cb))return'/**\x0a\x20*\x20'+_0x2586f7+'\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20'+_0x554ea3+_0x51065e(0x1ee)+_0x4e6ebe+'/'+_0x554ea3+_0x51065e(0x217)+_0x2df96d+_0x51065e(0x201)+_0x4e6ebe+_0x51065e(0x205)+_0x554ea3+_0x51065e(0x1cc)+_0x55de15+_0x51065e(0x1d9)+_0x554ea3+_0x51065e(0x202);if(!_0x5136fe)throw CliErrors[_0x51065e(0x21d)]('HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.');const _0x39a2b7=_0x5136fe[_0x51065e(0x1bf)]??_0x5136fe[_0x51065e(0x1e4)],_0x2cd838=_0x5136fe[_0x51065e(0x208)]===_0x51065e(0x1dc)?'当前请求参数':_0x51065e(0x1c0),_0x1018d5=_0x5136fe[_0x51065e(0x208)]==='before'?_0x51065e(0x1e7):_0x51065e(0x1ea);return'/**\x0a\x20*\x20'+_0x2586f7+_0x51065e(0x1d5)+_0x554ea3+_0x51065e(0x21e)+_0x4e6ebe+'/'+_0x5136fe[_0x51065e(0x1e4)]+'/'+_0x5136fe['operationType']+_0x51065e(0x217)+_0x2df96d+_0x51065e(0x200)+_0x5136fe[_0x51065e(0x1da)]+'#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/'+_0x4e6ebe+_0x51065e(0x1ba)+_0x39a2b7+'/'+_0x5136fe['operationType']+'/'+_0x5136fe['functionNode']+'/'+_0x554ea3+_0x51065e(0x220)+_0x5136fe[_0x51065e(0x208)]+'\x0a'+_0x55de15+_0x51065e(0x1f9)+_0x2cd838+'\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20'+_0x1018d5+_0x51065e(0x1b8)+_0x554ea3+_0x51065e(0x202);}
1
+ function a31_0x2e5e(_0x30a515,_0x38612a){_0x30a515=_0x30a515-0x1c6;const _0x1ea9ab=a31_0x1ea9();let _0x2e5ebb=_0x1ea9ab[_0x30a515];return _0x2e5ebb;}const a31_0x51863f=a31_0x2e5e;(function(_0x127173,_0x56fb59){const _0xafc6fd=a31_0x2e5e,_0x4d359e=_0x127173();while(!![]){try{const _0x487440=parseInt(_0xafc6fd(0x1d9))/0x1*(parseInt(_0xafc6fd(0x227))/0x2)+parseInt(_0xafc6fd(0x20e))/0x3*(parseInt(_0xafc6fd(0x20f))/0x4)+-parseInt(_0xafc6fd(0x1e4))/0x5*(-parseInt(_0xafc6fd(0x1d8))/0x6)+parseInt(_0xafc6fd(0x21e))/0x7*(-parseInt(_0xafc6fd(0x221))/0x8)+-parseInt(_0xafc6fd(0x1e0))/0x9*(parseInt(_0xafc6fd(0x1d6))/0xa)+parseInt(_0xafc6fd(0x1ff))/0xb+-parseInt(_0xafc6fd(0x1c6))/0xc*(parseInt(_0xafc6fd(0x1f7))/0xd);if(_0x487440===_0x56fb59)break;else _0x4d359e['push'](_0x4d359e['shift']());}catch(_0x5c236a){_0x4d359e['push'](_0x4d359e['shift']());}}}(a31_0x1ea9,0xda789));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_0x1ea9(){const _0x2306db=['functionNode','80925EKlKee','stdin','before','appCode','code','function-node','after','COMMON','17236197gHCJty','\x22\x20not\x20found\x20for\x20dataset\x20','datasetId','Operation\x20type\x20(HOOK\x20only)','Available\x20aliases:\x20','\x22,\x20params\x20})\x0a','Select\x20trigger\x20node:','scriptsRootDir','.js','Dataset\x20code\x20(HOOK\x20only,\x20fallback\x20when\x20alias\x20unavailable)','operationType','name','Dataset\x20not\x20found\x20for\x20code\x20\x22','No\x20operation\x20types\x20found\x20for\x20dataset\x20','\x20*\x20[依赖数据集]\x20无(如有依赖,DB_TABLE\x20填物理表名;METADATA\x20填数据集编码与用途)\x0a\x20*\x20[调用\x20BF]\x20无(如有调用,填写脚本名称与用途)\x0a\x20*\x20[执行\x20SQL]\x20无(如有执行,填写\x20SQL\x20名称与用途)\x0a\x20*\x20[副作用]\x20无(如有通知或外部调用,说明影响与失败策略)','388791RDlnRv','40qURhny','datasetcode','HOOK\x20requires\x20hookOptions\x20for\x20template\x20generation.','validation','修改后的响应结果','.js\x0a\x20*\x20[调用方式]\x20context.client.bff.execute({\x20scriptName:\x20\x22','Operation\x20type\x20\x22','/ENDPOINT/','--function-node\x20must\x20be\x20\x27before\x27\x20or\x20\x27after\x27.','Invalid\x20dataset\x20selection.','\x0a\x20*\x20@param\x20{Object}\x20context\x20平台注入的执行上下文\x0a\x20*\x20@returns\x20{Promise<Object>}\x20','Select\x20operation\x20type:','question','entries','\x22.\x20Must\x20be\x20a\x20valid\x20JS\x20identifier\x20(e.g.\x20createOrder,\x20beforeFilter).','2445583lOoLkH','apiDir','修改后的请求参数','24JdPmlA','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20HOOK\x0a\x20*\x20[脚本名称]\x20','(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a','string','tableName','.js\x0a\x20*\x20[触发节点]\x20','1148rFRftl','/data/backend-function\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','\x20function:\x20','/HOOK/','nonInteractive','No\x20api.ts\x20found.\x20Run\x20`','--function-node\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','\x22\x20not\x20found.\x20','stderr','length','\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','3228vCohBS','--alias\x20or\x20--datasetcode\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.','write','Script\x20description','/**\x0a\x20*\x20','str','isInteger','map','No\x20datasets\x20found\x20for\x20this\x20app.','\x20api\x20pull`\x20first,\x20or\x20use\x20--datasetcode\x20instead.','HOOK','parseInt','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20COMMON\x0a\x20*\x20[脚本名称]\x20','Invalid\x20function\x20name\x20\x22','operation-type','read','2935340BfBYQd','\x0a\x20*\x20[平台配置]\x20','46236srbbaW','2086hoBWUR','\x0a\x20*\x20[参数字段]\x20按实际输入为\x20params.<字段名>\x20补充\x20JSDoc\x20参数标签;无字段时仅保留根参数\x0a\x20*\x20[异常说明]\x20无;显式抛出异常时补充异常类型与触发条件\x0a\x20*\x0a\x20*\x20@param\x20{Object}\x20params\x20','Created\x20','ENDPOINT','source','\x20api\x20pull`\x20to\x20refresh.','.js\x0a','45EENPIc','\x20\x20Enter\x20a\x20number\x20between\x201\x20and\x20','当前请求参数','\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','665OsYFIc','description','keys','\x22.\x20','close','alias','Available:\x20','join','type','\x0a\x20*\x0a\x20*\x20[脚本类型]\x20ENDPOINT\x0a\x20*\x20[脚本名称]\x20','find','\x0a\x20*\x20[接口路径]\x20POST\x20/api/endpoint/','当前响应结果',']\x20(','#api-list\x0a\x20*\x20[本地路径]\x20.rabetbase/bff/','datasetCode','Alias\x20\x22','UNKNOWN'];a31_0x1ea9=function(){return _0x2306db;};return a31_0x1ea9();}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':'bff','command':'create','description':'Scaffold\x20a\x20new\x20Backend\x20Function\x20script\x20from\x20template','risk':a31_0x51863f(0x1d5),'flags':[{'name':a31_0x51863f(0x1ec),'type':a31_0x51863f(0x224),'required':!![],'enum':[a31_0x51863f(0x1fe),a31_0x51863f(0x1dc),a31_0x51863f(0x1d0)],'description':'Script\x20type'},{'name':a31_0x51863f(0x20a),'type':a31_0x51863f(0x224),'required':!![],'description':'Function\x20name\x20(valid\x20JS\x20identifier)'},{'name':a31_0x51863f(0x1e5),'type':a31_0x51863f(0x224),'description':a31_0x51863f(0x1c9)},{'name':a31_0x51863f(0x1e9),'type':a31_0x51863f(0x224),'description':'Dataset\x20alias\x20from\x20api.ts\x20(HOOK\x20only,\x20preferred)'},{'name':a31_0x51863f(0x210),'type':a31_0x51863f(0x224),'description':a31_0x51863f(0x208)},{'name':a31_0x51863f(0x1d4),'type':a31_0x51863f(0x224),'description':a31_0x51863f(0x202)},{'name':a31_0x51863f(0x1fc),'type':a31_0x51863f(0x224),'description':'Trigger\x20node\x20(HOOK\x20only)','enum':[a31_0x51863f(0x1f9),a31_0x51863f(0x1fd)]}],async 'validate'(_0x5875fa){const _0x2f48b5=a31_0x51863f,_0x208a8d=_0x5875fa['str'](_0x2f48b5(0x20a));if(!isValidBffFunctionName(_0x208a8d))throw CliErrors['validation'](_0x2f48b5(0x1d3)+_0x208a8d+_0x2f48b5(0x21d));},async 'execute'(_0x53316d){const _0xdd2fee=a31_0x51863f,_0x2b7e34=loadBffProjectConfig(_0x53316d[_0xdd2fee(0x1fa)]),_0x720717=_0x53316d[_0xdd2fee(0x1cb)](_0xdd2fee(0x1ec)),_0x42390b=_0x53316d[_0xdd2fee(0x1cb)](_0xdd2fee(0x20a)),_0x5c9bc0=_0x53316d['str'](_0xdd2fee(0x1e5))||undefined,_0x14f3e7=_0x720717===_0xdd2fee(0x1d0)?await resolveHookOptions(_0x2b7e34,_0x53316d):undefined,_0x6abb87=buildFilePath(_0x2b7e34,_0x720717,_0x42390b,_0x14f3e7);if(await fileExists(_0x6abb87))throw CliErrors[_0xdd2fee(0x212)]('File\x20already\x20exists:\x20'+_0x6abb87);await mkdir(dirname(_0x6abb87),{'recursive':!![]});const _0x5c5d43=generateTemplate(_0x720717,_0x42390b,_0x53316d['appCode'],_0x5c9bc0,_0x14f3e7);await writeFile(_0x6abb87,_0x5c5d43,'utf8');const _0x3628a8={'type':_0x720717,'name':_0x42390b,'path':_0x6abb87};if(_0x5c9bc0)_0x3628a8[_0xdd2fee(0x1e5)]=_0x5c9bc0;if(_0x14f3e7){if(_0x14f3e7[_0xdd2fee(0x1e9)])_0x3628a8[_0xdd2fee(0x1e9)]=_0x14f3e7[_0xdd2fee(0x1e9)];_0x3628a8[_0xdd2fee(0x1f3)]=_0x14f3e7[_0xdd2fee(0x1f3)],_0x3628a8['operationType']=_0x14f3e7[_0xdd2fee(0x209)],_0x3628a8[_0xdd2fee(0x1f6)]=_0x14f3e7['functionNode'];}return{'ok':!![],'data':_0x3628a8,'message':_0xdd2fee(0x1db)+_0x720717+_0xdd2fee(0x229)+_0x42390b};}};async function resolveHookOptions(_0xa773af,_0x27c6db){const _0x214d4b=a31_0x51863f,_0x2b20fa=loadAliasMap(_0x27c6db['apiDir'],undefined,resolveApiFilePath(_0x27c6db[_0x214d4b(0x21f)],_0x27c6db['appCode'])),_0x3978df=_0x2b20fa['length']>0x0;let _0x328ac3,_0x33aa17,_0x45b06d;const _0x3a9878=_0x27c6db[_0x214d4b(0x1cb)](_0x214d4b(0x1e9)),_0x59cce1=_0x27c6db[_0x214d4b(0x1cb)](_0x214d4b(0x210));if(_0x3a9878){const _0xfdc0c=resolveAlias(_0x27c6db[_0x214d4b(0x21f)],_0x3a9878,undefined,resolveApiFilePath(_0x27c6db[_0x214d4b(0x21f)],_0x27c6db[_0x214d4b(0x1fa)]));if(!_0xfdc0c){const _0x5efc93=_0x3978df?_0x214d4b(0x203)+_0x2b20fa[_0x214d4b(0x1cd)](_0x1ec527=>_0x1ec527[_0x214d4b(0x1e9)])[_0x214d4b(0x1eb)](',\x20'):_0x214d4b(0x22c)+CLI_BIN_NAME+_0x214d4b(0x1cf);throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x1f4)+_0x3a9878+_0x214d4b(0x22e)+_0x5efc93);}_0x328ac3=_0x3a9878,_0x33aa17=_0xfdc0c;}else{if(_0x59cce1){_0x33aa17=_0x59cce1;const _0x32b8f5=_0x2b20fa['find'](_0x4f2e71=>_0x4f2e71[_0x214d4b(0x1f3)]===_0x59cce1);_0x328ac3=_0x32b8f5?.[_0x214d4b(0x1e9)];}else{if(_0x27c6db[_0x214d4b(0x22b)])throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x1c7));else{if(_0x3978df){const _0x5a8a11=_0x2b20fa['map'](_0x265ec4=>_0x265ec4[_0x214d4b(0x1e9)]+'\x20('+_0x265ec4[_0x214d4b(0x225)]+')'),_0x4b83a8=await promptSelect('Select\x20dataset:',_0x5a8a11),_0x56b9ec=_0x2b20fa[_0x4b83a8];if(!_0x56b9ec)throw CliErrors['validation'](_0x214d4b(0x218));_0x328ac3=_0x56b9ec[_0x214d4b(0x1e9)],_0x33aa17=_0x56b9ec[_0x214d4b(0x1f3)];}else{const _0x4692be=await listDatasets(_0x27c6db['appCode']);if(_0x4692be[_0x214d4b(0x230)]===0x0)throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x1ce));const _0x214dd3=_0x4692be[_0x214d4b(0x1cd)](_0x496d90=>_0x496d90[_0x214d4b(0x20a)]+'\x20['+(_0x496d90[_0x214d4b(0x1dd)]??_0x214d4b(0x1f5))+_0x214d4b(0x1f1)+_0x496d90[_0x214d4b(0x1fb)]+')'),_0x12b7cf=await promptSelect('Select\x20dataset:',_0x214dd3),_0x45924a=_0x4692be[_0x12b7cf];if(!_0x45924a)throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x218));_0x33aa17=_0x45924a['code'],_0x328ac3=undefined;}}}}const _0x4b15cf=await listDatasets(_0x27c6db['appCode']),_0x3342df=_0x4b15cf[_0x214d4b(0x1ee)](_0x5c13c5=>_0x5c13c5[_0x214d4b(0x1fb)]===_0x33aa17);if(!_0x3342df)throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x20b)+_0x33aa17+_0x214d4b(0x1e7)+(_0x328ac3?'The\x20api.ts\x20may\x20be\x20stale\x20—\x20run\x20`'+CLI_BIN_NAME+_0x214d4b(0x1de):''));_0x45b06d=_0x3342df['id'];const _0x421541=_0x328ac3??_0x33aa17,_0x3954c8=await listBffDatasetOperations(_0x27c6db['appCode'],_0x45b06d),_0xa6ad19=_0x3954c8?Object[_0x214d4b(0x1e6)](_0x3954c8):[];if(_0xa6ad19[_0x214d4b(0x230)]===0x0)throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x20c)+_0x421541+'.');let _0xcd8250;const _0x19c6d1=_0x27c6db[_0x214d4b(0x1cb)](_0x214d4b(0x1d4));if(_0x19c6d1){if(!_0xa6ad19['includes'](_0x19c6d1))throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x215)+_0x19c6d1+_0x214d4b(0x200)+_0x421541+'.\x20'+(_0x214d4b(0x1ea)+_0xa6ad19[_0x214d4b(0x1eb)](',\x20')));_0xcd8250=_0x19c6d1;}else{if(_0x27c6db[_0x214d4b(0x22b)])throw CliErrors[_0x214d4b(0x212)]('--operation-type\x20is\x20required\x20for\x20HOOK\x20in\x20non-interactive\x20mode.');const _0x100d0e=await promptSelect(_0x214d4b(0x21a),_0xa6ad19);_0xcd8250=_0xa6ad19[_0x100d0e]??_0xa6ad19[0x0];}let _0x47f82d=normalizeHookFunctionNode(_0x27c6db[_0x214d4b(0x1cb)](_0x214d4b(0x1fc)));if(!_0x47f82d){if(_0x27c6db[_0x214d4b(0x1cb)](_0x214d4b(0x1fc)))throw CliErrors['validation'](_0x214d4b(0x217));if(_0x27c6db[_0x214d4b(0x22b)])throw CliErrors[_0x214d4b(0x212)](_0x214d4b(0x22d));const _0x4350de=await promptSelect(_0x214d4b(0x205),[_0x214d4b(0x1f9),_0x214d4b(0x1fd)]);_0x47f82d=['before','after'][_0x4350de]??'before';}return{'alias':_0x328ac3,'datasetCode':_0x33aa17,'datasetId':_0x45b06d,'operationType':_0xcd8250,'functionNode':_0x47f82d};}async function promptSelect(_0x5c6f25,_0x2c5522){const _0x59bb30=a31_0x51863f;if(_0x2c5522['length']===0x1)return 0x0;for(const [_0x25e60f,_0x1c5692]of _0x2c5522[_0x59bb30(0x21c)]()){process['stderr'][_0x59bb30(0x1c8)]('\x20\x20'+(_0x25e60f+0x1)+'.\x20'+_0x1c5692+'\x0a');}const _0x15d2cc=createInterface({'input':process[_0x59bb30(0x1f8)],'output':process[_0x59bb30(0x22f)]});while(!![]){const _0x4b9a0=await new Promise(_0x55d603=>{const _0x555ccc=_0x59bb30;_0x15d2cc[_0x555ccc(0x21b)](_0x5c6f25+'\x20',_0x55d603);}),_0x5ac5b7=Number[_0x59bb30(0x1d1)](_0x4b9a0['trim'](),0xa);if(Number[_0x59bb30(0x1cc)](_0x5ac5b7)&&_0x5ac5b7>=0x1&&_0x5ac5b7<=_0x2c5522[_0x59bb30(0x230)])return _0x15d2cc[_0x59bb30(0x1e8)](),_0x5ac5b7-0x1;process['stderr'][_0x59bb30(0x1c8)](_0x59bb30(0x1e1)+_0x2c5522[_0x59bb30(0x230)]+'.\x0a');}}function buildFilePath(_0x456bf8,_0x1430c2,_0x1d6cd9,_0xfa6a7){const _0x381ae3=a31_0x51863f;if(_0x1430c2===_0x381ae3(0x1d0)){if(!_0xfa6a7)throw CliErrors['validation']('HOOK\x20requires\x20alias/operation/node\x20options.');const _0x1e39a5=_0xfa6a7[_0x381ae3(0x1e9)]??_0xfa6a7[_0x381ae3(0x1f3)];return join(_0x456bf8[_0x381ae3(0x206)],_0x381ae3(0x1d0),_0x1e39a5,_0xfa6a7[_0x381ae3(0x209)],_0xfa6a7[_0x381ae3(0x1f6)],_0x1d6cd9+_0x381ae3(0x207));}return join(_0x456bf8[_0x381ae3(0x206)],_0x1430c2,_0x1d6cd9+_0x381ae3(0x207));}export function generateTemplate(_0xe3d58f,_0x1244a9,_0xd88fc0,_0x3073f8,_0x350dbc){const _0x5c022f=a31_0x51863f,_0x4815bd=_0x3073f8?.['trim']()||DEFAULT_BFF_SCRIPT_DESCRIPTION,_0x346a0b=getAppBaseUrl(_0xd88fc0),_0x35ea03=_0x5c022f(0x20d);if(_0xe3d58f===_0x5c022f(0x1fe))return'/**\x0a\x20*\x20'+_0x4815bd+_0x5c022f(0x1d2)+_0x1244a9+_0x5c022f(0x1d7)+_0x346a0b+_0x5c022f(0x228)+_0xd88fc0+'/COMMON/'+_0x1244a9+_0x5c022f(0x214)+_0x1244a9+_0x5c022f(0x204)+_0x35ea03+_0x5c022f(0x231)+_0x1244a9+_0x5c022f(0x223);if(_0xe3d58f==='ENDPOINT')return _0x5c022f(0x1ca)+_0x4815bd+_0x5c022f(0x1ed)+_0x1244a9+_0x5c022f(0x1ef)+_0xd88fc0+'/'+_0x1244a9+_0x5c022f(0x1d7)+_0x346a0b+_0x5c022f(0x228)+_0xd88fc0+_0x5c022f(0x216)+_0x1244a9+_0x5c022f(0x1df)+_0x35ea03+_0x5c022f(0x1e3)+_0x1244a9+'(params,\x20context)\x20{\x0a\x20\x20return\x20params;\x0a}\x0a';if(!_0x350dbc)throw CliErrors[_0x5c022f(0x212)](_0x5c022f(0x211));const _0x54cb3=_0x350dbc[_0x5c022f(0x1e9)]??_0x350dbc[_0x5c022f(0x1f3)],_0xf88e3d=_0x350dbc[_0x5c022f(0x1f6)]==='before'?_0x5c022f(0x1e2):_0x5c022f(0x1f0),_0x1a5773=_0x350dbc[_0x5c022f(0x1f6)]===_0x5c022f(0x1f9)?_0x5c022f(0x220):_0x5c022f(0x213);return _0x5c022f(0x1ca)+_0x4815bd+_0x5c022f(0x222)+_0x1244a9+'\x0a\x20*\x20[接口路径]\x20POST\x20/api/'+_0xd88fc0+'/'+_0x350dbc['datasetCode']+'/'+_0x350dbc[_0x5c022f(0x209)]+_0x5c022f(0x1d7)+_0x346a0b+'/data/dataset/'+_0x350dbc[_0x5c022f(0x201)]+_0x5c022f(0x1f2)+_0xd88fc0+_0x5c022f(0x22a)+_0x54cb3+'/'+_0x350dbc[_0x5c022f(0x209)]+'/'+_0x350dbc[_0x5c022f(0x1f6)]+'/'+_0x1244a9+_0x5c022f(0x226)+_0x350dbc[_0x5c022f(0x1f6)]+'\x0a'+_0x35ea03+_0x5c022f(0x1da)+_0xf88e3d+_0x5c022f(0x219)+_0x1a5773+'\x0a\x20*/\x0aexport\x20default\x20async\x20function\x20'+_0x1244a9+_0x5c022f(0x223);}