@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/region-config.d.ts +23 -0
  232. package/lib/config/region-config.js +1 -0
  233. package/lib/config/schema.d.ts +15 -0
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.js +1 -1
  239. package/lib/constant/env.js +1 -1
  240. package/lib/constant/output.js +1 -1
  241. package/lib/constant/paths.js +1 -1
  242. package/lib/constant/region.js +1 -1
  243. package/lib/constant/risk.js +1 -1
  244. package/lib/constant/routing-profile.js +1 -1
  245. package/lib/context/app-resolver.d.ts +6 -0
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.d.ts +13 -0
  250. package/lib/context.js +1 -1
  251. package/lib/core/alias-resolver.js +1 -1
  252. package/lib/core/api-client.d.ts +2 -0
  253. package/lib/core/api-client.js +1 -1
  254. package/lib/core/bff/config.js +1 -1
  255. package/lib/core/bff/file-system.js +1 -1
  256. package/lib/core/bff/hash.js +1 -1
  257. package/lib/core/bff/lock.js +1 -1
  258. package/lib/core/bff/utils.js +1 -1
  259. package/lib/core/db-resolver.js +1 -1
  260. package/lib/core/instant-api-policy/config.js +1 -1
  261. package/lib/core/kb-search-client.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  266. package/lib/core/page/lr-smart-jsx.js +1 -0
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.js +1 -1
  291. package/lib/generated/routing-contract.js +1 -1
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +1 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.d.ts +2 -8
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.d.ts +2 -1
  328. package/lib/utils/template-replacer.js +1 -1
  329. package/lib/utils/update-notice.js +1 -1
  330. package/lib/utils/version.js +1 -1
  331. package/lib/utils/with-active-cookie.js +1 -1
  332. package/lib/utils/write-cli-side-channel.js +1 -1
  333. package/package.json +1 -1
  334. package/skills/rabetbase/SKILL.md +6 -5
  335. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  336. package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
  337. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  338. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  339. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  340. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
  342. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  343. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  344. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  347. package/skills/rabetbase.manifest.json +3 -3
  348. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- const a17_0x3df496=a17_0x94a9;(function(_0x59a842,_0x20729c){const _0x46b4f5=a17_0x94a9,_0x5494d3=_0x59a842();while(!![]){try{const _0x276e3d=-parseInt(_0x46b4f5(0xe6))/0x1+-parseInt(_0x46b4f5(0xdc))/0x2+parseInt(_0x46b4f5(0xed))/0x3*(parseInt(_0x46b4f5(0xee))/0x4)+-parseInt(_0x46b4f5(0xe4))/0x5*(-parseInt(_0x46b4f5(0x103))/0x6)+-parseInt(_0x46b4f5(0x104))/0x7+-parseInt(_0x46b4f5(0xef))/0x8*(-parseInt(_0x46b4f5(0xe2))/0x9)+parseInt(_0x46b4f5(0xdd))/0xa*(parseInt(_0x46b4f5(0xca))/0xb);if(_0x276e3d===_0x20729c)break;else _0x5494d3['push'](_0x5494d3['shift']());}catch(_0x5afeda){_0x5494d3['push'](_0x5494d3['shift']());}}}(a17_0x4904,0x2d2ec));import a17_0x58ea27 from'ora';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getSdkClientRoutingConfig}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';const EXISTING_TS_HINT='Existing\x20TypeScript\x20was\x20not\x20updated.\x20Merge\x20data.models\x20into\x20it\x20(see\x20skills/rabetbase/guides/sdk-client-generation.md),\x20or\x20rerun\x20with\x20--force\x20--yes\x20to\x20replace\x20api.ts\x20and\x20client.ts.';function toPullData(_0x9903d){const _0x385640=a17_0x94a9;return{'appCode':_0x9903d[_0x385640(0xf8)],'configName':_0x9903d[_0x385640(0xe0)],'isDefaultConfig':_0x9903d[_0x385640(0x106)],'models':_0x9903d[_0x385640(0xc9)],'sdkRouting':_0x9903d[_0x385640(0xfe)],'files':_0x9903d['files'],'needsAgentMerge':_0x9903d[_0x385640(0xf6)],'apiFilePath':_0x9903d[_0x385640(0xda)],'clientFilePath':_0x9903d[_0x385640(0xea)],'sdkConfigPath':_0x9903d[_0x385640(0xe9)],'datasetCount':_0x9903d[_0x385640(0xd8)],'modelCount':_0x9903d[_0x385640(0xd8)]};}function a17_0x4904(){const _0x5984fd=['appCode','action','Fetched\x20','validation','\x20dataset\x20fact(s)\x20and\x20refreshed\x20sdk-config.ts.\x20','slice','sdkRouting','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','split','env','boolean','6xligPu','2584680vseifr','succeed','isDefaultConfig','...','force','\x20\x20•\x20','models','3553aOnOzn','message','output','global','Pulling\x20API\x20config\x20for\x20','\x20app(s)\x20failed','files','\x20dataset\x20fact(s)\x20and\x20replaced\x20the\x20TypeScript\x20scaffold\x20with\x20','pull','bool','fail','yes','str','Pull\x20dataset\x20facts,\x20refresh\x20sdk-config.ts,\x20and\x20write\x20API\x20scaffold\x20if\x20missing\x20(','modelCount','cookie','apiFilePath','--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20existing\x20api.ts\x20and\x20client.ts.','100948ejWofW','6740sZowYW','Replace\x20existing\x20api.ts\x20and\x20client.ts;\x20requires\x20--yes\x20and\x20discards\x20local\x20customizations','api','configName',')...','970155UDdCbG','read','611025ZOIrJi','apiDir','215691uGdXTH','rawFlags','string','sdkConfigPath','clientFilePath','name','\x20model(s)','471543ORRCwd','4JofoOC','24JFYDDG','includes','\x20dataset\x20fact(s)\x20and\x20wrote\x20a\x20scaffold\x20with\x20','overwritten','isDefault','push','\x20succeeded,\x20','needsAgentMerge','appcode'];a17_0x4904=function(){return _0x5984fd;};return a17_0x4904();}function a17_0x94a9(_0x3f922d,_0x2100ce){_0x3f922d=_0x3f922d-0xc6;const _0x49042f=a17_0x4904();let _0x94a94c=_0x49042f[_0x3f922d];return _0x94a94c;}function describePull(_0x3a4a90){const _0x38b284=a17_0x94a9;if(_0x3a4a90['needsAgentMerge'])return _0x38b284(0xfa)+_0x3a4a90[_0x38b284(0xd8)]+_0x38b284(0xfc)+EXISTING_TS_HINT;if(_0x3a4a90[_0x38b284(0xd0)][_0x38b284(0xdf)][_0x38b284(0xf9)]===_0x38b284(0xf2)||_0x3a4a90[_0x38b284(0xd0)]['client'][_0x38b284(0xf9)]===_0x38b284(0xf2))return'Fetched\x20'+_0x3a4a90[_0x38b284(0xd8)]+_0x38b284(0xd1)+_0x3a4a90[_0x38b284(0xd8)]+_0x38b284(0xec);return _0x38b284(0xfa)+_0x3a4a90[_0x38b284(0xd8)]+_0x38b284(0xf1)+_0x3a4a90[_0x38b284(0xd8)]+_0x38b284(0xec);}export const apiPull={'service':'api','command':a17_0x3df496(0xd2),'description':a17_0x3df496(0xd7)+DEFAULT_API_DIR+'/)','risk':a17_0x3df496(0xe3),'requiresAppCode':!![],'hasFormat':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a17_0x3df496(0xcc),'type':a17_0x3df496(0xe8),'description':'Output\x20directory\x20(default:\x20'+DEFAULT_API_DIR+'/)'},{'name':a17_0x3df496(0xcd),'type':a17_0x3df496(0x102),'description':a17_0x3df496(0xff),'default':![]},{'name':a17_0x3df496(0xc7),'type':a17_0x3df496(0x102),'description':a17_0x3df496(0xde),'default':![]}],async 'validate'(_0x30e880){const _0x23d48b=a17_0x3df496;if(_0x30e880[_0x23d48b(0xd3)](_0x23d48b(0xc7))&&!_0x30e880[_0x23d48b(0xd3)](_0x23d48b(0xd5)))throw CliErrors[_0x23d48b(0xfb)](_0x23d48b(0xdb),'Review\x20local\x20customizations,\x20then\x20rerun\x20with\x20--force\x20--yes.');},async 'execute'(_0x4d638c){const _0x40046f=a17_0x3df496,_0xb3e3a6=_0x4d638c[_0x40046f(0xe7)][_0x40046f(0xf7)]?String(_0x4d638c[_0x40046f(0xe7)][_0x40046f(0xf7)]):undefined,_0x4d22ab=_0x4d638c[_0x40046f(0xd6)](_0x40046f(0xcc))||undefined,_0x4ed148=_0x4d638c[_0x40046f(0xd3)](_0x40046f(0xc7)),_0x216cbd=resolveTargetApps(_0x4d638c,_0xb3e3a6);if(_0x216cbd){let _0x4c460a=0x0,_0x5748fc=0x0;const _0x55831c=[];for(const _0x3086f9 of _0x216cbd){const _0x554676=_0x3086f9[_0x40046f(0xd9)]||_0x4d638c['cookie'],_0x447ed6=_0x3086f9[_0x40046f(0x101)]||'production';initEnv(_0x447ed6);const _0x19f57c=_0x3086f9[_0x40046f(0xe5)]||_0x4d22ab||_0x4d638c['apiDir']||DEFAULT_API_DIR,_0x2fb0ca=_0x3086f9[_0x40046f(0xf3)]?'':_0x3086f9['name']||_0x3086f9[_0x40046f(0xf7)],_0xb6d336=a17_0x58ea27('Pulling\x20'+_0x3086f9[_0x40046f(0xeb)]+'\x20('+_0x3086f9['appcode']+_0x40046f(0xe1))['start']();try{const {configArray:_0x29d66c}=await fetchModelList(_0x3086f9['appcode'],_0x554676),_0x2f4076=await generateApiFile(_0x29d66c,_0x2fb0ca,_0x3086f9['appcode'],_0x3086f9['isDefault'],_0x447ed6,_0x19f57c,_0x3086f9[_0x40046f(0xeb)],getSdkClientRoutingConfig(),{'overwriteTypescript':_0x4ed148});_0xb6d336[_0x40046f(0x105)](_0x3086f9[_0x40046f(0xeb)]+':\x20'+describePull(_0x2f4076)),writeCliSideChannelLine(_0x40046f(0xc8)+_0x2f4076['sdkConfigPath']),writeCliSideChannelLine(_0x40046f(0xc8)+_0x2f4076['apiFilePath']),writeCliSideChannelLine(_0x40046f(0xc8)+_0x2f4076[_0x40046f(0xea)]),_0x55831c[_0x40046f(0xf4)](toPullData(_0x2f4076)),_0x4c460a++;}catch(_0xe37aa8){_0xb6d336[_0x40046f(0xd4)](_0x3086f9[_0x40046f(0xeb)]+':\x20'+(_0xe37aa8 instanceof Error?_0xe37aa8[_0x40046f(0xcb)]:String(_0xe37aa8))),_0x5748fc++;}}writeCliSideChannelLine('');if(_0x5748fc>0x0)writeCliSideChannelLine('!\x20'+_0x5748fc+_0x40046f(0xcf));return{'ok':_0x5748fc===0x0,'message':'Done:\x20'+_0x4c460a+_0x40046f(0xf5)+_0x5748fc+'\x20failed','data':{'apps':_0x55831c,'succeeded':_0x4c460a,'failed':_0x5748fc}};}const _0x25ac87=_0xb3e3a6&&_0xb3e3a6[_0x40046f(0xf0)]('-')?_0xb3e3a6[_0x40046f(0x100)]('-')[_0x40046f(0xfd)](0x1)['join']('-'):'',_0x285b44=_0x4d22ab||_0x4d638c[_0x40046f(0xe5)]||DEFAULT_API_DIR,_0x2ee880=!_0xb3e3a6,_0x2f1ad0=a17_0x58ea27(_0x40046f(0xce)+_0x4d638c['appCode']+_0x40046f(0xc6))['start']();try{const {configArray:_0x4bb1ba}=await fetchModelList(_0x4d638c[_0x40046f(0xf8)],_0x4d638c[_0x40046f(0xd9)]),_0x1d2717=await generateApiFile(_0x4bb1ba,_0x25ac87,_0x4d638c[_0x40046f(0xf8)],_0x2ee880,getEnv(),_0x285b44,undefined,getSdkClientRoutingConfig(),{'overwriteTypescript':_0x4ed148});return _0x2f1ad0[_0x40046f(0x105)](describePull(_0x1d2717)),writeCliSideChannelLine(_0x40046f(0xc8)+_0x1d2717[_0x40046f(0xe9)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x1d2717['apiFilePath']),writeCliSideChannelLine('\x20\x20•\x20'+_0x1d2717[_0x40046f(0xea)]),{'ok':!![],'message':describePull(_0x1d2717),'data':toPullData(_0x1d2717)};}catch(_0x151852){_0x2f1ad0[_0x40046f(0xd4)]('Failed:\x20'+(_0x151852 instanceof Error?_0x151852['message']:String(_0x151852)));throw _0x151852;}}};
1
+ const a17_0x5d35f9=a17_0x3dda;(function(_0x3af114,_0x1807c5){const _0x281d17=a17_0x3dda,_0x5b3715=_0x3af114();while(!![]){try{const _0x4a52a0=-parseInt(_0x281d17(0x91))/0x1+-parseInt(_0x281d17(0x74))/0x2*(-parseInt(_0x281d17(0x8f))/0x3)+-parseInt(_0x281d17(0x9f))/0x4+parseInt(_0x281d17(0x96))/0x5+parseInt(_0x281d17(0x92))/0x6*(-parseInt(_0x281d17(0x7d))/0x7)+parseInt(_0x281d17(0xa7))/0x8+parseInt(_0x281d17(0xac))/0x9*(-parseInt(_0x281d17(0x79))/0xa);if(_0x4a52a0===_0x1807c5)break;else _0x5b3715['push'](_0x5b3715['shift']());}catch(_0x2c967e){_0x5b3715['push'](_0x5b3715['shift']());}}}(a17_0x3a97,0xebe11));function a17_0x3dda(_0x26a7ae,_0x2a825a){_0x26a7ae=_0x26a7ae-0x74;const _0x3a97f5=a17_0x3a97();let _0x3dda02=_0x3a97f5[_0x26a7ae];return _0x3dda02;}import a17_0x2fbdc2 from'ora';import{getEnv}from'../../constant/env.js';import{fetchModelList}from'../../core/api-client.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{getSdkClientRoutingConfig}from'../../constant/domain.js';import{CliErrors}from'../../errors.js';function a17_0x3a97(){const _0x4a571e=['validation','slice','706ZfJXqb','apiFilePath','Replace\x20existing\x20api.ts\x20and\x20client.ts;\x20requires\x20--yes\x20and\x20discards\x20local\x20customizations','read','\x20dataset\x20fact(s)\x20and\x20wrote\x20a\x20scaffold\x20with\x20','436590VmqWyB','Fetched\x20','needsAgentMerge','api','42490nRAoDu','push','global','force','\x20failed','cookie','boolean','models','client','Pull\x20dataset\x20facts,\x20refresh\x20sdk-config.ts,\x20and\x20write\x20API\x20scaffold\x20if\x20missing\x20(','message','split','\x20\x20•\x20','isDefault','\x20app(s)\x20failed','basename','\x20model(s)','start','9099aQtbhj','sdkConfigPath','792713vyxVFU','654OYaHZf','appCode',')...','Done:\x20','6739495jMySUD','fail','clientFilePath','rawFlags','files','yes','modelCount','...','name','545352uvZCJj','action','apiDir','succeed','output','join','sdkRouting','overwritten','8441064xkrPzO','Review\x20local\x20customizations,\x20then\x20rerun\x20with\x20--force\x20--yes.','Failed:\x20','appcode','Output\x20directory\x20(default:\x20','189KvZIPH','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','bool'];a17_0x3a97=function(){return _0x4a571e;};return a17_0x3a97();}import{initMultiAppEnvironment}from'../../context.js';import a17_0x40dd77 from'node:path';const EXISTING_TS_HINT='Existing\x20TypeScript\x20was\x20not\x20updated.\x20Merge\x20data.models\x20into\x20it\x20(see\x20skills/rabetbase/guides/sdk-client-generation.md),\x20or\x20rerun\x20with\x20--force\x20--yes\x20to\x20replace\x20api.ts\x20and\x20client.ts.';function toPullData(_0x24d315){const _0x83f391=a17_0x3dda;return{'appCode':_0x24d315[_0x83f391(0x93)],'configName':_0x24d315['configName'],'isDefaultConfig':_0x24d315['isDefaultConfig'],'models':_0x24d315[_0x83f391(0x84)],'sdkRouting':_0x24d315[_0x83f391(0xa5)],'files':_0x24d315['files'],'needsAgentMerge':_0x24d315[_0x83f391(0x7b)],'apiFilePath':_0x24d315[_0x83f391(0x75)],'clientFilePath':_0x24d315[_0x83f391(0x98)],'sdkConfigPath':_0x24d315['sdkConfigPath'],'datasetCount':_0x24d315[_0x83f391(0x9c)],'modelCount':_0x24d315[_0x83f391(0x9c)]};}function describePull(_0x301cf8){const _0x301994=a17_0x3dda,_0x1f1f95=a17_0x40dd77[_0x301994(0x8c)](_0x301cf8[_0x301994(0x90)]);if(_0x301cf8[_0x301994(0x7b)])return'Fetched\x20'+_0x301cf8[_0x301994(0x9c)]+'\x20dataset\x20fact(s)\x20and\x20refreshed\x20'+_0x1f1f95+'.\x20'+EXISTING_TS_HINT;if(_0x301cf8[_0x301994(0x9a)]['api'][_0x301994(0xa0)]===_0x301994(0xa6)||_0x301cf8[_0x301994(0x9a)][_0x301994(0x85)]['action']===_0x301994(0xa6))return _0x301994(0x7a)+_0x301cf8['modelCount']+'\x20dataset\x20fact(s)\x20and\x20replaced\x20the\x20TypeScript\x20scaffold\x20with\x20'+_0x301cf8[_0x301994(0x9c)]+_0x301994(0x8d);return'Fetched\x20'+_0x301cf8[_0x301994(0x9c)]+_0x301994(0x78)+_0x301cf8[_0x301994(0x9c)]+_0x301994(0x8d);}export const apiPull={'service':a17_0x5d35f9(0x7c),'command':'pull','description':a17_0x5d35f9(0x86)+DEFAULT_API_DIR+'/)','risk':a17_0x5d35f9(0x77),'requiresAppCode':!![],'hasFormat':!![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a17_0x5d35f9(0xa3),'type':'string','description':a17_0x5d35f9(0xab)+DEFAULT_API_DIR+'/)'},{'name':a17_0x5d35f9(0x7f),'type':a17_0x5d35f9(0x83),'description':a17_0x5d35f9(0xad),'default':![]},{'name':a17_0x5d35f9(0x80),'type':a17_0x5d35f9(0x83),'description':a17_0x5d35f9(0x76),'default':![]}],async 'validate'(_0x157406){const _0x40c69b=a17_0x5d35f9;if(_0x157406[_0x40c69b(0xae)](_0x40c69b(0x80))&&!_0x157406['bool'](_0x40c69b(0x9b)))throw CliErrors[_0x40c69b(0xaf)]('--force\x20requires\x20--yes\x20because\x20it\x20replaces\x20existing\x20api.ts\x20and\x20client.ts.',_0x40c69b(0xa8));},async 'execute'(_0x2919e7){const _0x44e76a=a17_0x5d35f9,_0x47b8c2=_0x2919e7[_0x44e76a(0x99)][_0x44e76a(0xaa)]?String(_0x2919e7[_0x44e76a(0x99)]['appcode']):undefined,_0x33367c=_0x2919e7['str'](_0x44e76a(0xa3))||undefined,_0x4a4714=_0x2919e7['bool'](_0x44e76a(0x80)),_0x5ab519=resolveTargetApps(_0x2919e7,_0x47b8c2);if(_0x5ab519){let _0x1a597d=0x0,_0x140987=0x0;const _0x30a44f=[];for(const _0x527f5e of _0x5ab519){const _0x16c477=_0x527f5e[_0x44e76a(0x82)]||_0x2919e7[_0x44e76a(0x82)],_0x60a9d9=_0x527f5e['env']||'production';await initMultiAppEnvironment(_0x527f5e);const _0x3b16b3=_0x527f5e[_0x44e76a(0xa1)]||_0x33367c||_0x2919e7[_0x44e76a(0xa1)]||DEFAULT_API_DIR,_0x51133e=_0x527f5e[_0x44e76a(0x8a)]?'':_0x527f5e[_0x44e76a(0x9e)]||_0x527f5e[_0x44e76a(0xaa)],_0x2f4c1d=a17_0x2fbdc2('Pulling\x20'+_0x527f5e['name']+'\x20('+_0x527f5e['appcode']+_0x44e76a(0x94))[_0x44e76a(0x8e)]();try{const {configArray:_0x460b05}=await fetchModelList(_0x527f5e[_0x44e76a(0xaa)],_0x16c477),_0x52042d=await generateApiFile(_0x460b05,_0x51133e,_0x527f5e['appcode'],_0x527f5e['isDefault'],_0x60a9d9,_0x3b16b3,_0x527f5e[_0x44e76a(0x9e)],getSdkClientRoutingConfig(),{'overwriteTypescript':_0x4a4714});_0x2f4c1d[_0x44e76a(0xa2)](_0x527f5e[_0x44e76a(0x9e)]+':\x20'+describePull(_0x52042d)),writeCliSideChannelLine(_0x44e76a(0x89)+_0x52042d[_0x44e76a(0x90)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x52042d[_0x44e76a(0x75)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x52042d[_0x44e76a(0x98)]),_0x30a44f[_0x44e76a(0x7e)](toPullData(_0x52042d)),_0x1a597d++;}catch(_0x17f626){_0x2f4c1d[_0x44e76a(0x97)](_0x527f5e[_0x44e76a(0x9e)]+':\x20'+(_0x17f626 instanceof Error?_0x17f626[_0x44e76a(0x87)]:String(_0x17f626))),_0x140987++;}}writeCliSideChannelLine('');if(_0x140987>0x0)writeCliSideChannelLine('!\x20'+_0x140987+_0x44e76a(0x8b));return{'ok':_0x140987===0x0,'message':_0x44e76a(0x95)+_0x1a597d+'\x20succeeded,\x20'+_0x140987+_0x44e76a(0x81),'data':{'apps':_0x30a44f,'succeeded':_0x1a597d,'failed':_0x140987}};}const _0x30c025=_0x47b8c2&&_0x47b8c2['includes']('-')?_0x47b8c2[_0x44e76a(0x88)]('-')[_0x44e76a(0xb0)](0x1)[_0x44e76a(0xa4)]('-'):'',_0x5d0df3=_0x33367c||_0x2919e7[_0x44e76a(0xa1)]||DEFAULT_API_DIR,_0x2bd813=!_0x47b8c2,_0xa93511=a17_0x2fbdc2('Pulling\x20API\x20config\x20for\x20'+_0x2919e7['appCode']+_0x44e76a(0x9d))['start']();try{const {configArray:_0x26ac9b}=await fetchModelList(_0x2919e7[_0x44e76a(0x93)],_0x2919e7[_0x44e76a(0x82)]),_0x5e88d4=await generateApiFile(_0x26ac9b,_0x30c025,_0x2919e7['appCode'],_0x2bd813,getEnv(),_0x5d0df3,undefined,getSdkClientRoutingConfig(),{'overwriteTypescript':_0x4a4714});return _0xa93511[_0x44e76a(0xa2)](describePull(_0x5e88d4)),writeCliSideChannelLine(_0x44e76a(0x89)+_0x5e88d4[_0x44e76a(0x90)]),writeCliSideChannelLine('\x20\x20•\x20'+_0x5e88d4['apiFilePath']),writeCliSideChannelLine(_0x44e76a(0x89)+_0x5e88d4['clientFilePath']),{'ok':!![],'message':describePull(_0x5e88d4),'data':toPullData(_0x5e88d4)};}catch(_0x5932ca){_0xa93511[_0x44e76a(0x97)](_0x44e76a(0xa9)+(_0x5932ca instanceof Error?_0x5932ca[_0x44e76a(0x87)]:String(_0x5932ca)));throw _0x5932ca;}}};
@@ -1 +1 @@
1
- function a18_0x3da9(){const _0x28c44f=['110faycqs','2920126ldGtQf','6aPuIVr','selectedAppName','length','project','global','963536ugIUmw','filter','merged','47103LjaRlL','85332oMVgce','8395875FyYtTb','18LunaIx','2611710lANNmu','720LYnauO','validation','1675230UaDrFC','App\x20\x22','join','bool','name'];a18_0x3da9=function(){return _0x28c44f;};return a18_0x3da9();}(function(_0x48c89f,_0x10201d){const _0x33011d=a18_0xc781,_0x4f97e8=_0x48c89f();while(!![]){try{const _0x24ed04=-parseInt(_0x33011d(0xf0))/0x1*(-parseInt(_0x33011d(0xe3))/0x2)+parseInt(_0x33011d(0xe6))/0x3+-parseInt(_0x33011d(0xdf))/0x4+-parseInt(_0x33011d(0xe9))/0x5*(-parseInt(_0x33011d(0xe5))/0x6)+-parseInt(_0x33011d(0xe2))/0x7*(-parseInt(_0x33011d(0xe7))/0x8)+parseInt(_0x33011d(0xe4))/0x9+parseInt(_0x33011d(0xee))/0xa*(-parseInt(_0x33011d(0xef))/0xb);if(_0x24ed04===_0x10201d)break;else _0x4f97e8['push'](_0x4f97e8['shift']());}catch(_0x519f0f){_0x4f97e8['push'](_0x4f97e8['shift']());}}}(a18_0x3da9,0x7c4fb));import{getMultiAppConfigs}from'../../utils/config.js';function a18_0xc781(_0x4e76e7,_0x192cac){_0x4e76e7=_0x4e76e7-0xdf;const _0x3da993=a18_0x3da9();let _0xc78159=_0x3da993[_0x4e76e7];return _0xc78159;}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x2f8763,_0x62ed3e){const _0x498e39=a18_0xc781;if(_0x62ed3e)return null;const _0x4cd07f=_0x2f8763[_0x498e39(0xec)](_0x498e39(0xf4))?_0x498e39(0xe1):_0x498e39(0xf3);let _0x3090ae=getMultiAppConfigs(_0x4cd07f);if(!_0x3090ae||_0x3090ae[_0x498e39(0xf2)]===0x0)return null;if(_0x2f8763['selectedAppName']){const _0xa18d2f=_0x3090ae[_0x498e39(0xe0)](_0x4de74f=>_0x4de74f[_0x498e39(0xed)]===_0x2f8763['selectedAppName']);if(_0xa18d2f[_0x498e39(0xf2)]===0x0){const _0x410f80=_0x3090ae['map'](_0x41d28=>_0x41d28['name'])[_0x498e39(0xeb)](',\x20');throw CliErrors[_0x498e39(0xe8)](_0x498e39(0xea)+_0x2f8763[_0x498e39(0xf1)]+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x410f80);}_0x3090ae=_0xa18d2f;}return _0x3090ae;}
1
+ (function(_0x454938,_0x187c8b){const _0x383838=a18_0x4f04,_0x212587=_0x454938();while(!![]){try{const _0x400d6e=parseInt(_0x383838(0x164))/0x1+-parseInt(_0x383838(0x160))/0x2+parseInt(_0x383838(0x15d))/0x3*(parseInt(_0x383838(0x15c))/0x4)+parseInt(_0x383838(0x169))/0x5+-parseInt(_0x383838(0x15f))/0x6+-parseInt(_0x383838(0x162))/0x7+-parseInt(_0x383838(0x16a))/0x8;if(_0x400d6e===_0x187c8b)break;else _0x212587['push'](_0x212587['shift']());}catch(_0x12ba1e){_0x212587['push'](_0x212587['shift']());}}}(a18_0x1525,0x45c88));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x147d94,_0x294165){const _0x1c2517=a18_0x4f04;if(_0x294165)return null;const _0x249cdd=_0x147d94[_0x1c2517(0x159)](_0x1c2517(0x158))?_0x1c2517(0x168):_0x1c2517(0x163);let _0xe32938=getMultiAppConfigs(_0x249cdd);if(!_0xe32938||_0xe32938[_0x1c2517(0x15a)]===0x0)return null;if(_0x147d94['selectedAppName']){const _0x510702=_0xe32938['filter'](_0x1d7692=>_0x1d7692[_0x1c2517(0x157)]===_0x147d94['selectedAppName']);if(_0x510702[_0x1c2517(0x15a)]===0x0){const _0x2577ac=_0xe32938[_0x1c2517(0x165)](_0x3a3da4=>_0x3a3da4[_0x1c2517(0x157)])[_0x1c2517(0x15b)](',\x20');throw CliErrors[_0x1c2517(0x167)](_0x1c2517(0x161)+_0x147d94[_0x1c2517(0x166)]+_0x1c2517(0x15e)+_0x2577ac);}_0xe32938=_0x510702;}return _0xe32938;}function a18_0x4f04(_0x3b4015,_0x19db7f){_0x3b4015=_0x3b4015-0x157;const _0x1525b3=a18_0x1525();let _0x4f04b9=_0x1525b3[_0x3b4015];return _0x4f04b9;}function a18_0x1525(){const _0x1fba6f=['selectedAppName','validation','merged','2605110xSitBg','637168KrkTwB','name','global','bool','length','join','8pBuGfp','631443aslTOl','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','1445892SKSUeV','695550jMYQQR','App\x20\x22','3701894ZALMrq','project','541093NXdNdb','map'];a18_0x1525=function(){return _0x1fba6f;};return a18_0x1525();}
@@ -1 +1 @@
1
- function a19_0x1744(_0x1329be,_0x5f0c20){_0x1329be=_0x1329be-0x1da;const _0x20e8b7=a19_0x20e8();let _0x174483=_0x20e8b7[_0x1329be];return _0x174483;}(function(_0x197ddf,_0x279a18){const _0x100fa0=a19_0x1744,_0x52b07f=_0x197ddf();while(!![]){try{const _0x323b77=-parseInt(_0x100fa0(0x1da))/0x1+-parseInt(_0x100fa0(0x1dd))/0x2*(-parseInt(_0x100fa0(0x1e3))/0x3)+parseInt(_0x100fa0(0x1db))/0x4*(-parseInt(_0x100fa0(0x1dc))/0x5)+parseInt(_0x100fa0(0x1e0))/0x6+parseInt(_0x100fa0(0x1e2))/0x7+parseInt(_0x100fa0(0x1df))/0x8+parseInt(_0x100fa0(0x1e1))/0x9*(-parseInt(_0x100fa0(0x1de))/0xa);if(_0x323b77===_0x279a18)break;else _0x52b07f['push'](_0x52b07f['shift']());}catch(_0xf67d79){_0x52b07f['push'](_0x52b07f['shift']());}}}(a19_0x20e8,0x6f72e));import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0x20e8(){const _0x39b53b=['2620056duIisY','9RatdFT','3717371OqxlrO','459777orSLXm','717126QdEXEG','4BDZRtG','2656670SgRvGs','6lGyGIe','2027420qtYZjf','3841520mlmjXZ'];a19_0x20e8=function(){return _0x39b53b;};return a19_0x20e8();}export const appDefinitions=[appListDefinition,appMembersListDefinition];
1
+ (function(_0x1cf977,_0x585e75){const _0x1318e3=a19_0xd840,_0x5daf6e=_0x1cf977();while(!![]){try{const _0xc0eba3=parseInt(_0x1318e3(0xc7))/0x1*(parseInt(_0x1318e3(0xcd))/0x2)+-parseInt(_0x1318e3(0xc9))/0x3+parseInt(_0x1318e3(0xcc))/0x4+parseInt(_0x1318e3(0xcb))/0x5*(parseInt(_0x1318e3(0xca))/0x6)+-parseInt(_0x1318e3(0xc5))/0x7+-parseInt(_0x1318e3(0xc6))/0x8*(parseInt(_0x1318e3(0xc8))/0x9)+parseInt(_0x1318e3(0xce))/0xa;if(_0xc0eba3===_0x585e75)break;else _0x5daf6e['push'](_0x5daf6e['shift']());}catch(_0x5355f6){_0x5daf6e['push'](_0x5daf6e['shift']());}}}(a19_0x2b21,0xb8bb1));import{appListDefinition}from'../../commands/app/list.js';import{appMembersListDefinition}from'../../commands/app/members-list.js';function a19_0xd840(_0x24df0c,_0x52ed1c){_0x24df0c=_0x24df0c-0xc5;const _0x2b214e=a19_0x2b21();let _0xd8403f=_0x2b214e[_0x24df0c];return _0xd8403f;}function a19_0x2b21(){const _0x2e2549=['83022hwpGef','305CmrBon','5499940zbTWCa','448TBFRcw','12715990oAurns','7155575Rcnczo','1696rbguqq','4277TJHTLu','62631fihapZ','3583497jYYuAI'];a19_0x2b21=function(){return _0x2e2549;};return a19_0x2b21();}export const appDefinitions=[appListDefinition,appMembersListDefinition];
@@ -1 +1 @@
1
- const a20_0x4a89fd=a20_0x3e73;(function(_0x617d58,_0x239a12){const _0x540522=a20_0x3e73,_0x67aa51=_0x617d58();while(!![]){try{const _0x106842=-parseInt(_0x540522(0x89))/0x1+parseInt(_0x540522(0xa4))/0x2+parseInt(_0x540522(0x93))/0x3+parseInt(_0x540522(0x8c))/0x4*(parseInt(_0x540522(0x96))/0x5)+-parseInt(_0x540522(0x98))/0x6+parseInt(_0x540522(0xa3))/0x7+-parseInt(_0x540522(0xab))/0x8;if(_0x106842===_0x239a12)break;else _0x67aa51['push'](_0x67aa51['shift']());}catch(_0x337548){_0x67aa51['push'](_0x67aa51['shift']());}}}(a20_0x3e21,0x6441b));function a20_0x3e21(){const _0x73ed2d=['projectConfig','6787072LXFnLh','map','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.','push','projectPath','validation','boolean','301633jBaPyZ','optional','object','48gKFgKd','Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','entries','global','bool','length','merged','2251026GIvkXU','remote','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','195515LUinOQ','isCurrent','4517088uiyCei','Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','\x20config','keys','list','defaultApp','globalConfig','app','read','appcode','mergedCli','3778957XYKCdJ','1108174pzhIRQ','find','project','.\x20Use\x20`','apps','globalPath'];a20_0x3e21=function(){return _0x73ed2d;};return a20_0x3e21();}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(_0x5e9f41,_0xf24287){const _0x417760=a20_0x3e73,_0x1a4f7b=[],_0x2def81=_0x5e9f41['apps']&&typeof _0x5e9f41['apps']==='object'?_0x5e9f41[_0x417760(0xa8)]:{},_0x226e24=_0x5e9f41[_0x417760(0x9d)]||undefined,_0x54f158=_0x226e24??(Object['keys'](_0x2def81)[_0x417760(0x91)]===0x1?Object[_0x417760(0x9b)](_0x2def81)[0x0]:undefined);for(const [_0x387e20,_0x3f0b49]of Object[_0x417760(0x8e)](_0x2def81)){if(!_0x3f0b49||typeof _0x3f0b49!==_0x417760(0x8b)||!_0x3f0b49[_0x417760(0xa1)])continue;_0x1a4f7b[_0x417760(0x85)]({'name':_0x387e20,'appcode':_0x3f0b49[_0x417760(0xa1)],'named':!![],'definedIn':_0xf24287,'isDefault':_0x387e20===_0x54f158,...buildAppProfileListFields(_0x3f0b49)});}return _0x1a4f7b;}function buildMergedItems(_0x340d79,_0x5a0801){const _0x542d43=a20_0x3e73,{apps:apps={}}=_0x340d79,_0x521f34=_0x340d79['defaultApp'],_0x335e36=_0x521f34??(Object['keys'](apps)[_0x542d43(0x91)]===0x1?Object['keys'](apps)[0x0]:undefined),_0x377972=_0x5a0801[_0x542d43(0x9e)][_0x542d43(0xa8)]&&typeof _0x5a0801[_0x542d43(0x9e)][_0x542d43(0xa8)]===_0x542d43(0x8b)?_0x5a0801[_0x542d43(0x9e)]['apps']:{},_0x2faa2f=_0x5a0801[_0x542d43(0xaa)][_0x542d43(0xa8)]&&typeof _0x5a0801[_0x542d43(0xaa)]['apps']===_0x542d43(0x8b)?_0x5a0801[_0x542d43(0xaa)]['apps']:{},_0x1c45fd=Object[_0x542d43(0x8e)](apps),_0x19b8f8=_0x1c45fd[_0x542d43(0xac)](([_0x20f8d4,_0x17b5a8])=>({'name':_0x20f8d4,'appcode':_0x17b5a8[_0x542d43(0xa1)],'named':!![],'definedIn':appDefinedIn(_0x20f8d4,_0x377972,_0x2faa2f),'isDefault':_0x20f8d4===_0x335e36,...buildAppProfileListFields(_0x17b5a8)}));return _0x19b8f8;}function validateAppListFlags(_0x24001b){const _0x3f0640=a20_0x3e73;if(!_0x24001b['bool'](_0x3f0640(0x94)))return;if(!_0x24001b[_0x3f0640(0x90)](_0x3f0640(0x8f))&&!_0x24001b[_0x3f0640(0x90)](_0x3f0640(0xa6)))return;throw CliErrors[_0x3f0640(0x87)]('`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.',_0x3f0640(0xad));}async function execute(_0x37d320){const _0x1ec0f4=a20_0x3e73;validateAppListFlags(_0x37d320);if(_0x37d320[_0x1ec0f4(0x90)](_0x1ec0f4(0x94)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x37d320)};const _0x35df12=_0x37d320[_0x1ec0f4(0x90)](_0x1ec0f4(0x8f)),_0x290c3e=_0x37d320[_0x1ec0f4(0x90)](_0x1ec0f4(0xa6)),_0x81afcb=_0x35df12?_0x1ec0f4(0x8f):_0x290c3e?'project':_0x1ec0f4(0x92),{config:_0x21093e,layers:_0x899ece}=readRawConfigWithLayers(),_0x5285fb=resolveDefaultAppSource(_0x899ece),{defaultApp:_0x4de897}=_0x21093e;let _0x238ed0,_0x51fa64;switch(_0x81afcb){case _0x1ec0f4(0x8f):_0x238ed0=buildItemsFromLayer(_0x899ece[_0x1ec0f4(0x9e)],_0x1ec0f4(0x8f)),_0x51fa64=_0x899ece['globalPath'];break;case _0x1ec0f4(0xa6):_0x238ed0=buildItemsFromLayer(_0x899ece[_0x1ec0f4(0xaa)],_0x1ec0f4(0xa6)),_0x51fa64=_0x899ece[_0x1ec0f4(0x86)];break;default:_0x238ed0=buildMergedItems(_0x21093e,_0x899ece);break;}enrichAppListItemsWithMergedSelection(_0x238ed0,_0x37d320[_0x1ec0f4(0xa2)]);if(_0x238ed0[_0x1ec0f4(0x91)]===0x0){const _0x50eda5=_0x81afcb===_0x1ec0f4(0x92)?'':'\x20in\x20'+_0x81afcb+_0x1ec0f4(0x9a);return{'ok':!![],'data':[],'message':'No\x20apps\x20configured'+_0x50eda5+_0x1ec0f4(0xa7)+CLI_BIN_NAME+_0x1ec0f4(0x95)};}const _0x122b5f=_0x238ed0[_0x1ec0f4(0xa5)](_0x2ff072=>_0x2ff072[_0x1ec0f4(0x97)]===!![]),_0x5c8b20=_0x4de897??_0x122b5f?.['name']??null,_0x1e929e=_0x81afcb===_0x1ec0f4(0x92)?{'globalPath':_0x899ece[_0x1ec0f4(0xa9)]??null,'projectPath':_0x899ece[_0x1ec0f4(0x86)]??null,'defaultApp':_0x5c8b20,'defaultAppSource':_0x4de897!=null?_0x5285fb:null}:{'scope':_0x81afcb,'configPath':_0x51fa64??null};return{'ok':!![],'data':{'items':_0x238ed0,'meta':_0x1e929e}};}function a20_0x3e73(_0x3e789c,_0x11de1e){_0x3e789c=_0x3e789c-0x85;const _0x3e218d=a20_0x3e21();let _0x3e7349=_0x3e218d[_0x3e789c];return _0x3e7349;}export const appListDefinition={'service':a20_0x4a89fd(0x9f),'command':a20_0x4a89fd(0x9c),'description':'List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','risk':a20_0x4a89fd(0xa0),'auth':a20_0x4a89fd(0x8a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a20_0x4a89fd(0x94),'type':a20_0x4a89fd(0x88),'description':'List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','default':![]},{'name':a20_0x4a89fd(0x8f),'type':a20_0x4a89fd(0x88),'description':a20_0x4a89fd(0x99),'default':![]},{'name':a20_0x4a89fd(0xa6),'type':a20_0x4a89fd(0x88),'description':a20_0x4a89fd(0x8d),'default':![]}],async 'validate'(_0x244476){validateAppListFlags(_0x244476);},'execute':execute};
1
+ const a20_0x4b78f9=a20_0x1f24;(function(_0x38146d,_0x3333dd){const _0x443fbb=a20_0x1f24,_0x8147fa=_0x38146d();while(!![]){try{const _0x310f66=parseInt(_0x443fbb(0x9f))/0x1+parseInt(_0x443fbb(0x9e))/0x2*(-parseInt(_0x443fbb(0xc4))/0x3)+parseInt(_0x443fbb(0xa6))/0x4*(parseInt(_0x443fbb(0xcc))/0x5)+-parseInt(_0x443fbb(0xb5))/0x6*(-parseInt(_0x443fbb(0xbc))/0x7)+-parseInt(_0x443fbb(0xa5))/0x8+-parseInt(_0x443fbb(0xa9))/0x9+parseInt(_0x443fbb(0xc0))/0xa;if(_0x310f66===_0x3333dd)break;else _0x8147fa['push'](_0x8147fa['shift']());}catch(_0x40b540){_0x8147fa['push'](_0x8147fa['shift']());}}}(a20_0x3a0b,0x332e1));import{readRawConfigWithLayers}from'../../context.js';function a20_0x3a0b(){const _0x2f9cc6=['Show\x20only\x20apps\x20from\x20global\x20~/.rabetbase.json','277587IjKPFR','source','appcode','apps','project','validation','name','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>`\x20to\x20add\x20one.','1262435PVNcsB','defaultApp','6unBrzi','114517yYGntD','length','list','isCurrent','projectConfig','hasOwnProperty','716680HMuNME','4Krkpxq','prototype','region','496584bBjlLG','No\x20apps\x20configured','\x20config','find','map','bool','List\x20apps\x20available\x20on\x20the\x20platform\x20for\x20the\x20current\x20login','boolean','entries','remote','merged','globalConfig','6EekZSN','globalPath','app','read','object','optional','`--remote`\x20cannot\x20be\x20used\x20with\x20`--global`\x20or\x20`--project`.','617085pivvyV','global','keys','List\x20configured\x20apps,\x20or\x20platform\x20apps\x20with\x20--remote','1768220RWeeyZ','\x20in\x20','Use\x20`rabetbase\x20app\x20list\x20--remote`\x20for\x20the\x20platform\x20directory,\x20or\x20`rabetbase\x20app\x20list\x20--global/--project`\x20for\x20local\x20config.'];a20_0x3a0b=function(){return _0x2f9cc6;};return a20_0x3a0b();}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';import{resolveEffectiveRegion}from'../../config/region-config.js';function a20_0x1f24(_0x2d209d,_0x516069){_0x2d209d=_0x2d209d-0x9e;const _0x3a0b0=a20_0x3a0b();let _0x1f244c=_0x3a0b0[_0x2d209d];return _0x1f244c;}function buildItemsFromLayer(_0x341aca,_0x56ef99,_0x360830){const _0x46e112=a20_0x1f24,_0x38c63f=[],_0x2f0a5a=_0x341aca['apps']&&typeof _0x341aca['apps']===_0x46e112(0xb9)?_0x341aca[_0x46e112(0xc7)]:{},_0x451860=_0x341aca[_0x46e112(0xcd)]||undefined,_0x35e982=_0x451860??(Object[_0x46e112(0xbe)](_0x2f0a5a)[_0x46e112(0xa0)]===0x1?Object['keys'](_0x2f0a5a)[0x0]:undefined);for(const [_0x31fb84,_0x268d67]of Object['entries'](_0x2f0a5a)){if(!_0x268d67||typeof _0x268d67!=='object'||!_0x268d67[_0x46e112(0xc6)])continue;const _0x1bec57=resolveEffectiveRegion({'appRegion':_0x268d67['region'],'projectRegion':_0x56ef99===_0x46e112(0xc8)?_0x341aca[_0x46e112(0xa8)]:undefined,'globalRegion':_0x56ef99===_0x46e112(0xbd)?_0x341aca[_0x46e112(0xa8)]:_0x360830,'appName':_0x31fb84});_0x38c63f['push']({'name':_0x31fb84,'appcode':_0x268d67['appcode'],'named':!![],'definedIn':_0x56ef99,'isDefault':_0x31fb84===_0x35e982,...buildAppProfileListFields(_0x268d67),'effectiveRegion':_0x1bec57[_0x46e112(0xa8)],'regionSource':_0x1bec57[_0x46e112(0xc5)]});}return _0x38c63f;}function buildMergedItems(_0x2d9e31,_0xe03d9a){const _0x1cf58f=a20_0x1f24,{apps:apps={}}=_0x2d9e31,_0x502dfe=_0x2d9e31[_0x1cf58f(0xcd)],_0x4be5a5=_0x502dfe??(Object[_0x1cf58f(0xbe)](apps)[_0x1cf58f(0xa0)]===0x1?Object[_0x1cf58f(0xbe)](apps)[0x0]:undefined),_0x4dd6d1=_0xe03d9a[_0x1cf58f(0xb4)][_0x1cf58f(0xc7)]&&typeof _0xe03d9a[_0x1cf58f(0xb4)]['apps']==='object'?_0xe03d9a[_0x1cf58f(0xb4)][_0x1cf58f(0xc7)]:{},_0x4c9578=_0xe03d9a['projectConfig'][_0x1cf58f(0xc7)]&&typeof _0xe03d9a['projectConfig']['apps']===_0x1cf58f(0xb9)?_0xe03d9a['projectConfig']['apps']:{},_0x5b754d=Object[_0x1cf58f(0xb1)](apps),_0x15f206=_0x5b754d[_0x1cf58f(0xad)](([_0x2c930b,_0x180f53])=>{const _0xbfef62=_0x1cf58f,_0x4c5813=appDefinedIn(_0x2c930b,_0x4dd6d1,_0x4c9578),_0x5556bf=Object[_0xbfef62(0xa7)][_0xbfef62(0xa4)]['call'](_0x4c9578,_0x2c930b),_0x3ef18f=resolveEffectiveRegion({'appRegion':_0x180f53[_0xbfef62(0xa8)],'projectRegion':_0x5556bf?_0xe03d9a['projectConfig'][_0xbfef62(0xa8)]:undefined,'globalRegion':_0xe03d9a[_0xbfef62(0xb4)][_0xbfef62(0xa8)],'mergedRegion':_0x2d9e31[_0xbfef62(0xa8)],'appName':_0x2c930b});return{'name':_0x2c930b,'appcode':_0x180f53[_0xbfef62(0xc6)],'named':!![],'definedIn':_0x4c5813,'isDefault':_0x2c930b===_0x4be5a5,...buildAppProfileListFields(_0x180f53),'effectiveRegion':_0x3ef18f['region'],'regionSource':_0x3ef18f[_0xbfef62(0xc5)]};});return _0x15f206;}function validateAppListFlags(_0x4ed15b){const _0x167a6a=a20_0x1f24;if(!_0x4ed15b[_0x167a6a(0xae)](_0x167a6a(0xb2)))return;if(!_0x4ed15b[_0x167a6a(0xae)](_0x167a6a(0xbd))&&!_0x4ed15b[_0x167a6a(0xae)](_0x167a6a(0xc8)))return;throw CliErrors[_0x167a6a(0xc9)](_0x167a6a(0xbb),_0x167a6a(0xc2));}async function execute(_0x34b6ab){const _0x85aec0=a20_0x1f24;validateAppListFlags(_0x34b6ab);if(_0x34b6ab[_0x85aec0(0xae)](_0x85aec0(0xb2)))return{'ok':!![],'data':await listRemoteAppDirectory(_0x34b6ab)};const _0x2247be=_0x34b6ab[_0x85aec0(0xae)](_0x85aec0(0xbd)),_0x4a78ac=_0x34b6ab[_0x85aec0(0xae)]('project'),_0x458a99=_0x2247be?_0x85aec0(0xbd):_0x4a78ac?_0x85aec0(0xc8):'merged',{config:_0x456287,layers:_0x2c2873}=readRawConfigWithLayers(),_0x2183b1=resolveDefaultAppSource(_0x2c2873),{defaultApp:_0x469d1e}=_0x456287;let _0xacabf6,_0xe880d0;switch(_0x458a99){case _0x85aec0(0xbd):_0xacabf6=buildItemsFromLayer(_0x2c2873[_0x85aec0(0xb4)],_0x85aec0(0xbd)),_0xe880d0=_0x2c2873[_0x85aec0(0xb6)];break;case _0x85aec0(0xc8):_0xacabf6=buildItemsFromLayer(_0x2c2873[_0x85aec0(0xa3)],_0x85aec0(0xc8),_0x2c2873[_0x85aec0(0xb4)]['region']),_0xe880d0=_0x2c2873['projectPath'];break;default:_0xacabf6=buildMergedItems(_0x456287,_0x2c2873);break;}enrichAppListItemsWithMergedSelection(_0xacabf6,_0x34b6ab['mergedCli']);if(_0xacabf6[_0x85aec0(0xa0)]===0x0){const _0x231a70=_0x458a99===_0x85aec0(0xb3)?'':_0x85aec0(0xc1)+_0x458a99+_0x85aec0(0xab);return{'ok':!![],'data':[],'message':_0x85aec0(0xaa)+_0x231a70+'.\x20Use\x20`'+CLI_BIN_NAME+_0x85aec0(0xcb)};}const _0x4f77c1=_0xacabf6[_0x85aec0(0xac)](_0x91213c=>_0x91213c[_0x85aec0(0xa2)]===!![]),_0x493eb8=_0x469d1e??_0x4f77c1?.[_0x85aec0(0xca)]??null,_0x374922=_0x458a99===_0x85aec0(0xb3)?{'globalPath':_0x2c2873[_0x85aec0(0xb6)]??null,'projectPath':_0x2c2873['projectPath']??null,'defaultApp':_0x493eb8,'defaultAppSource':_0x469d1e!=null?_0x2183b1:null}:{'scope':_0x458a99,'configPath':_0xe880d0??null};return{'ok':!![],'data':{'items':_0xacabf6,'meta':_0x374922}};}export const appListDefinition={'service':a20_0x4b78f9(0xb7),'command':a20_0x4b78f9(0xa1),'description':a20_0x4b78f9(0xbf),'risk':a20_0x4b78f9(0xb8),'auth':a20_0x4b78f9(0xba),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'remote','type':a20_0x4b78f9(0xb0),'description':a20_0x4b78f9(0xaf),'default':![]},{'name':'global','type':a20_0x4b78f9(0xb0),'description':a20_0x4b78f9(0xc3),'default':![]},{'name':a20_0x4b78f9(0xc8),'type':'boolean','description':'Show\x20only\x20apps\x20from\x20project\x20.rabetbase.json','default':![]}],async 'validate'(_0x2e718c){validateAppListFlags(_0x2e718c);},'execute':execute};
@@ -1 +1 @@
1
- const a21_0x52f685=a21_0x4930;function a21_0x3d6a(){const _0x19ba47=['1611847ptyTKF','7fNxbUV','read','5hXctwi','10QIrego','1141528mDhOPZ','app','928320ZtBSct','length','1693455yODunz','appCode','11501289RvXkiE','2007668UyOZBx','5769726maskMF'];a21_0x3d6a=function(){return _0x19ba47;};return a21_0x3d6a();}(function(_0x17ffb0,_0x5d4804){const _0x1fc175=a21_0x4930,_0x10beb1=_0x17ffb0();while(!![]){try{const _0x482a38=parseInt(_0x1fc175(0x97))/0x1+parseInt(_0x1fc175(0x9e))/0x2+-parseInt(_0x1fc175(0xa0))/0x3+-parseInt(_0x1fc175(0x95))/0x4+-parseInt(_0x1fc175(0x9a))/0x5*(-parseInt(_0x1fc175(0x96))/0x6)+parseInt(_0x1fc175(0x98))/0x7*(parseInt(_0x1fc175(0x9c))/0x8)+-parseInt(_0x1fc175(0x94))/0x9*(parseInt(_0x1fc175(0x9b))/0xa);if(_0x482a38===_0x5d4804)break;else _0x10beb1['push'](_0x10beb1['shift']());}catch(_0x49692d){_0x10beb1['push'](_0x10beb1['shift']());}}}(a21_0x3d6a,0xcc19c));function a21_0x4930(_0x5cd96f,_0x49ecf7){_0x5cd96f=_0x5cd96f-0x94;const _0x3d6a72=a21_0x3d6a();let _0x493016=_0x3d6a72[_0x5cd96f];return _0x493016;}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_0x52f685(0x9d),'command':'members-list','description':'List\x20application\x20members\x20with\x20their\x20role\x20memberships','risk':a21_0x52f685(0x99),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5a2aac){const _0x44c7fa=a21_0x52f685,_0x1ea569=projectAppMembers(await listRoleUsers(_0x5a2aac[_0x44c7fa(0xa1)]));return{'ok':!![],'data':{'appCode':_0x5a2aac[_0x44c7fa(0xa1)],'items':_0x1ea569,'totalCount':_0x1ea569[_0x44c7fa(0x9f)]},'message':'Found\x20'+_0x1ea569[_0x44c7fa(0x9f)]+'\x20application\x20member(s)'};}};
1
+ const a21_0x61e700=a21_0x7559;function a21_0x2d04(){const _0x45c76c=['length','498NypEmC','appCode','18IFCNrr','1396384giQshM','\x20application\x20member(s)','List\x20application\x20members\x20with\x20their\x20role\x20memberships','members-list','1ymcanp','6989140elVxNH','477140pmeBhO','1007150gRnlYx','read','52164YExDOS','2129104ddhKGL','1599411lbrwZN'];a21_0x2d04=function(){return _0x45c76c;};return a21_0x2d04();}(function(_0x5abe5b,_0x2ef5ff){const _0x189c62=a21_0x7559,_0x49ea97=_0x5abe5b();while(!![]){try{const _0x182057=parseInt(_0x189c62(0x161))/0x1*(parseInt(_0x189c62(0x164))/0x2)+-parseInt(_0x189c62(0x158))/0x3+-parseInt(_0x189c62(0x15d))/0x4+-parseInt(_0x189c62(0x163))/0x5+-parseInt(_0x189c62(0x15a))/0x6*(-parseInt(_0x189c62(0x166))/0x7)+-parseInt(_0x189c62(0x157))/0x8*(parseInt(_0x189c62(0x15c))/0x9)+parseInt(_0x189c62(0x162))/0xa;if(_0x182057===_0x2ef5ff)break;else _0x49ea97['push'](_0x49ea97['shift']());}catch(_0x455ed1){_0x49ea97['push'](_0x49ea97['shift']());}}}(a21_0x2d04,0x4bf1c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{projectAppMembers}from'../../commands/app/shared.js';function a21_0x7559(_0x502e26,_0x7b339b){_0x502e26=_0x502e26-0x157;const _0x2d04c3=a21_0x2d04();let _0x755915=_0x2d04c3[_0x502e26];return _0x755915;}import{listRoleUsers}from'../../core/api-client.js';export const appMembersListDefinition={'service':'app','command':a21_0x61e700(0x160),'description':a21_0x61e700(0x15f),'risk':a21_0x61e700(0x165),'requiresAuth':!![],'requiresAppCode':!![],'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x123b30){const _0x32113e=a21_0x61e700,_0x47c888=projectAppMembers(await listRoleUsers(_0x123b30[_0x32113e(0x15b)]));return{'ok':!![],'data':{'appCode':_0x123b30['appCode'],'items':_0x47c888,'totalCount':_0x47c888[_0x32113e(0x159)]},'message':'Found\x20'+_0x47c888[_0x32113e(0x159)]+_0x32113e(0x15e)};}};
@@ -1 +1 @@
1
- (function(_0x40c15f,_0x37f27f){const _0x21acfc=a22_0x4382,_0x2ad690=_0x40c15f();while(!![]){try{const _0xf0ffdd=-parseInt(_0x21acfc(0x13c))/0x1*(-parseInt(_0x21acfc(0x13a))/0x2)+-parseInt(_0x21acfc(0x13b))/0x3+parseInt(_0x21acfc(0x137))/0x4*(parseInt(_0x21acfc(0x139))/0x5)+-parseInt(_0x21acfc(0x138))/0x6+parseInt(_0x21acfc(0x12f))/0x7*(parseInt(_0x21acfc(0x132))/0x8)+parseInt(_0x21acfc(0x131))/0x9*(-parseInt(_0x21acfc(0x12e))/0xa)+parseInt(_0x21acfc(0x130))/0xb*(parseInt(_0x21acfc(0x134))/0xc);if(_0xf0ffdd===_0x37f27f)break;else _0x2ad690['push'](_0x2ad690['shift']());}catch(_0x160e4b){_0x2ad690['push'](_0x2ad690['shift']());}}}(a22_0x3d05,0x87489));function a22_0x3d05(){const _0x4e4abb=['2233ASoQUH','943481LfkVRs','315QzMRkh','264yXcHHs','platform','48bgTToR','appName','authRequired','28UcHOMm','2353518ScuZSm','559035ZeqFGX','38hfhHBO','998052WPXPCJ','55217HGMYzf','appDesc','258950eCNEvC'];a22_0x3d05=function(){return _0x4e4abb;};return a22_0x3d05();}import{listRemoteApps}from'../../core/api-client.js';function a22_0x4382(_0x15d5d8,_0x52d6cf){_0x15d5d8=_0x15d5d8-0x12d;const _0x3d0595=a22_0x3d05();let _0x438280=_0x3d0595[_0x15d5d8];return _0x438280;}import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x38f876){const _0x73a481=a22_0x4382,_0x5e95ff=_0x38f876['cookie']||getCookie();if(!_0x5e95ff)throw CliErrors[_0x73a481(0x136)]();return _0x5e95ff;}export async function listRemoteAppDirectory(_0x37b7aa){const _0x433a9b=a22_0x4382,_0x428f15=await withActiveCookie(resolveCookie(_0x37b7aa),()=>listRemoteApps());return{'items':_0x428f15['map'](_0xcd3d28=>({..._0xcd3d28['id']!=null?{'id':_0xcd3d28['id']}:{},'appCode':_0xcd3d28['appCode'],'appName':_0xcd3d28[_0x433a9b(0x135)],..._0xcd3d28['appDesc']!=null?{'appDesc':_0xcd3d28[_0x433a9b(0x12d)]}:{}})),'meta':{'source':_0x433a9b(0x133)}};}
1
+ (function(_0x5a9cb1,_0x59dbee){const _0xb64375=a22_0x5d03,_0x1ceb56=_0x5a9cb1();while(!![]){try{const _0x254e3f=parseInt(_0xb64375(0x148))/0x1+parseInt(_0xb64375(0x14b))/0x2+-parseInt(_0xb64375(0x14e))/0x3*(-parseInt(_0xb64375(0x146))/0x4)+-parseInt(_0xb64375(0x14d))/0x5+-parseInt(_0xb64375(0x14f))/0x6*(-parseInt(_0xb64375(0x150))/0x7)+parseInt(_0xb64375(0x145))/0x8+parseInt(_0xb64375(0x147))/0x9*(-parseInt(_0xb64375(0x14c))/0xa);if(_0x254e3f===_0x59dbee)break;else _0x1ceb56['push'](_0x1ceb56['shift']());}catch(_0x5afb3b){_0x1ceb56['push'](_0x1ceb56['shift']());}}}(a22_0x3b62,0x6674b));function a22_0x5d03(_0x4e7607,_0x5beae4){_0x4e7607=_0x4e7607-0x144;const _0x3b620f=a22_0x3b62();let _0x5d03f7=_0x3b620f[_0x4e7607];return _0x5d03f7;}function a22_0x3b62(){const _0x5e430b=['24190740AaZPFW','153350VyofWF','879ypLzxZ','1350fASmiM','24997KMQtrA','map','platform','5453464GtrTtW','8716lqbxcx','9Noipbu','75089wkbyVL','appName','appDesc','1341418WUYVOx'];a22_0x3b62=function(){return _0x5e430b;};return a22_0x3b62();}import{listRemoteApps}from'../../core/api-client.js';import{getCookie}from'../../auth/get-cookie.js';import{CliErrors}from'../../errors.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function resolveCookie(_0x1a8319){const _0x4be212=_0x1a8319['cookie']||getCookie();if(!_0x4be212)throw CliErrors['authRequired']();return _0x4be212;}export async function listRemoteAppDirectory(_0x16dedc){const _0x58dd4a=a22_0x5d03,_0x1dc594=await withActiveCookie(resolveCookie(_0x16dedc),()=>listRemoteApps());return{'items':_0x1dc594[_0x58dd4a(0x151)](_0x434fe1=>({..._0x434fe1['id']!=null?{'id':_0x434fe1['id']}:{},'appCode':_0x434fe1['appCode'],'appName':_0x434fe1[_0x58dd4a(0x149)],..._0x434fe1['appDesc']!=null?{'appDesc':_0x434fe1[_0x58dd4a(0x14a)]}:{}})),'meta':{'source':_0x58dd4a(0x144)}};}
@@ -1 +1 @@
1
- (function(_0x466e53,_0xdf55ba){const _0x3238e4=a23_0x2f28,_0x1ca646=_0x466e53();while(!![]){try{const _0x29636f=parseInt(_0x3238e4(0xd5))/0x1+-parseInt(_0x3238e4(0xd6))/0x2+-parseInt(_0x3238e4(0x104))/0x3+-parseInt(_0x3238e4(0xfa))/0x4*(parseInt(_0x3238e4(0xd4))/0x5)+parseInt(_0x3238e4(0xda))/0x6+-parseInt(_0x3238e4(0xf5))/0x7+parseInt(_0x3238e4(0xeb))/0x8;if(_0x29636f===_0xdf55ba)break;else _0x1ca646['push'](_0x1ca646['shift']());}catch(_0x29cdfd){_0x1ca646['push'](_0x1ca646['shift']());}}}(a23_0x944a,0xa572a));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x4ed300){const _0x2ad5b4=_0x4ed300?.['trim']();return _0x2ad5b4?_0x2ad5b4:null;}export function projectAppMembers(_0x4bbead){const _0x5eb2e0=a23_0x2f28,_0x317ce3=new Map(),_0x326fbc=[..._0x4bbead][_0x5eb2e0(0x103)]((_0x84e88e,_0x369f27)=>_0x84e88e['id']-_0x369f27['id']),_0x2e4922=(_0x48ea83,_0x57e76b,_0x3b1acf)=>{const _0x478201=_0x5eb2e0;for(const _0x45d4c1 of _0x57e76b){const _0x126941=Number(_0x45d4c1[_0x478201(0xf7)]);if(!Number[_0x478201(0x102)](_0x126941)||_0x126941<=0x0)continue;let _0x422ea0=_0x317ce3[_0x478201(0xec)](_0x126941);if(!_0x422ea0)_0x422ea0={'userId':_0x126941,'username':nullableText(_0x45d4c1[_0x478201(0xef)]),'displayName':nullableText(_0x45d4c1[_0x478201(0xf8)]),'status':_0x3b1acf,'roles':[],'roleKeys':new Set()},_0x317ce3[_0x478201(0xe6)](_0x126941,_0x422ea0);else{_0x422ea0['username']??=nullableText(_0x45d4c1[_0x478201(0xef)]),_0x422ea0[_0x478201(0xf1)]??=nullableText(_0x45d4c1[_0x478201(0xf8)]);if(_0x3b1acf===_0x478201(0xd2))_0x422ea0[_0x478201(0xe4)]=_0x478201(0xd2);}const _0x4cbfbd=_0x48ea83['id']+':'+_0x3b1acf;if(_0x422ea0[_0x478201(0xd8)][_0x478201(0x100)](_0x4cbfbd))continue;_0x422ea0[_0x478201(0xd8)][_0x478201(0xe1)](_0x4cbfbd),_0x422ea0[_0x478201(0x101)][_0x478201(0xfe)]({'roleId':_0x48ea83['id'],'roleCode':_0x48ea83[_0x478201(0xf9)],'roleName':nullableText(_0x48ea83[_0x478201(0xf4)]),'roleType':nullableText(_0x48ea83[_0x478201(0xe9)]),'membershipStatus':_0x3b1acf});}};for(const _0x55d96b of _0x326fbc){_0x2e4922(_0x55d96b,_0x55d96b['userList']??[],_0x5eb2e0(0xd2)),_0x2e4922(_0x55d96b,_0x55d96b[_0x5eb2e0(0xfb)]??[],_0x5eb2e0(0xfc));}return[..._0x317ce3[_0x5eb2e0(0xe7)]()][_0x5eb2e0(0xff)](_0x246474=>({'userId':_0x246474[_0x5eb2e0(0xf7)],'username':_0x246474[_0x5eb2e0(0xef)],'displayName':_0x246474[_0x5eb2e0(0xf1)],'status':_0x246474[_0x5eb2e0(0xe4)],'roles':_0x246474[_0x5eb2e0(0x101)]['sort']((_0x499c15,_0x1acfea)=>_0x499c15['roleId']-_0x1acfea['roleId']||(_0x499c15['membershipStatus']===_0x1acfea[_0x5eb2e0(0xe0)]?0x0:_0x499c15['membershipStatus']===_0x5eb2e0(0xd2)?-0x1:0x1))}))['sort']((_0xb03d1b,_0x5e0855)=>_0xb03d1b[_0x5eb2e0(0xf7)]-_0x5e0855[_0x5eb2e0(0xf7)]);}export function enrichAppListItemsWithMergedSelection(_0x1b7dfa,_0x430bcb){const _0x3c5863=a23_0x2f28;if(!_0x430bcb)return;const _0x43c1fc=_0x430bcb[_0x3c5863(0xdc)]&&typeof _0x430bcb[_0x3c5863(0xdc)]==='object'?_0x430bcb['apps']:{},_0x182386=Object[_0x3c5863(0xee)](_0x43c1fc)['length']>0x0;for(const _0x5e01f7 of _0x1b7dfa){_0x5e01f7[_0x3c5863(0xf2)]=![];}const _0x312c3c=_0x430bcb[_0x3c5863(0xe2)]!=null?String(_0x430bcb[_0x3c5863(0xe2)])['trim']():'';if(_0x182386){const _0x5242cb=_0x430bcb[_0x3c5863(0xf6)]??_0x430bcb[_0x3c5863(0xe8)];if(_0x5242cb)for(const _0x2b5808 of _0x1b7dfa){_0x2b5808[_0x3c5863(0xdd)]===!![]&&_0x2b5808['name']===_0x5242cb&&(_0x2b5808[_0x3c5863(0xf2)]=!![]);}for(const _0x10985d of _0x1b7dfa){if(_0x10985d[_0x3c5863(0xdd)]!==![])continue;if(_0x430bcb[_0x3c5863(0xe8)])continue;_0x312c3c&&String(_0x10985d[_0x3c5863(0xfd)]??'')[_0x3c5863(0xd3)]()===_0x312c3c&&(_0x10985d[_0x3c5863(0xf2)]=!![]);}return;}if(!_0x312c3c)return;for(const _0x342d64 of _0x1b7dfa){String(_0x342d64['appcode']??'')[_0x3c5863(0xd3)]()===_0x312c3c&&(_0x342d64[_0x3c5863(0xf2)]=!![]);}}function a23_0x2f28(_0x1a1f16,_0x3e1991){_0x1a1f16=_0x1a1f16-0xd2;const _0x944a31=a23_0x944a();let _0x2f284d=_0x944a31[_0x1a1f16];return _0x2f284d;}export function resolveAppScopeForWrite(_0x545b51,_0x1f0882,_0x385dc6){const _0x4140b7=a23_0x2f28;if(_0x1f0882)return _0x4140b7(0xdf);const _0x3fe264=_0x385dc6[_0x4140b7(0xf0)][_0x4140b7(0xdc)]&&typeof _0x385dc6[_0x4140b7(0xf0)][_0x4140b7(0xdc)]===_0x4140b7(0xea)?_0x385dc6[_0x4140b7(0xf0)][_0x4140b7(0xdc)]:{},_0x27f39=_0x385dc6[_0x4140b7(0xed)][_0x4140b7(0xdc)]&&typeof _0x385dc6[_0x4140b7(0xed)][_0x4140b7(0xdc)]===_0x4140b7(0xea)?_0x385dc6[_0x4140b7(0xed)]['apps']:{};if(Object[_0x4140b7(0xd7)][_0x4140b7(0xf3)][_0x4140b7(0xd9)](_0x3fe264,_0x545b51))return _0x4140b7(0xde);if(Object['prototype'][_0x4140b7(0xf3)][_0x4140b7(0xd9)](_0x27f39,_0x545b51))return _0x4140b7(0xdf);return'project';}export function appDefinedIn(_0x330d62,_0x2c22e5,_0x447f9b){const _0x177ce6=a23_0x2f28,_0x23eca9=Object[_0x177ce6(0xd7)][_0x177ce6(0xf3)]['call'](_0x2c22e5,_0x330d62),_0x19f39c=Object['prototype'][_0x177ce6(0xf3)][_0x177ce6(0xd9)](_0x447f9b,_0x330d62);if(_0x23eca9&&_0x19f39c)return _0x177ce6(0xe3);if(_0x19f39c)return'project';return _0x177ce6(0xdf);}export function resolveDefaultAppSource(_0x413e6a){const _0x3ab258=a23_0x2f28,_0x5504f9=_0x413e6a['projectConfig'][_0x3ab258(0xdc)]&&typeof _0x413e6a['projectConfig']['apps']===_0x3ab258(0xea)?_0x413e6a[_0x3ab258(0xf0)][_0x3ab258(0xdc)]:{};if(_0x3ab258(0xe8)in _0x413e6a['projectConfig'])return _0x3ab258(0xde);if(Object[_0x3ab258(0xee)](_0x5504f9)[_0x3ab258(0xe5)]>0x0)return _0x3ab258(0xde);if(Object[_0x3ab258(0xee)](_0x413e6a[_0x3ab258(0xf0)])[_0x3ab258(0xe5)]===0x0&&_0x413e6a['globalConfig'][_0x3ab258(0xe8)])return _0x3ab258(0xdf);return null;}export function getConfigPath(_0x359f66={}){const _0x19f699=a23_0x2f28,_0xb783c0=_0x359f66[_0x19f699(0xdf)]?_0x19f699(0xdf):_0x19f699(0xde);return resolveWriteConfigPath(_0xb783c0);}export function readConfig(_0x519eb1={}){return readConfigFile(getConfigPath(_0x519eb1));}function a23_0x944a(){const _0x3ac4ff=['values','defaultApp','roleType','object','14079208fdbkkw','get','globalConfig','keys','username','projectConfig','displayName','isCurrent','hasOwnProperty','roleName','8009169lVoMUX','currentApp','userId','nickname','roleCode','312420SqohVN','applyUserList','PENDING','appcode','push','map','has','roles','isFinite','sort','1518429OXVpYk','ACTIVE','trim','15zzhGgQ','570958BwmySI','1698714YCyUap','prototype','roleKeys','call','6484782itSWoH','\x20(global)','apps','named','project','global','membershipStatus','add','appCode','both','status','length','set'];a23_0x944a=function(){return _0x3ac4ff;};return a23_0x944a();}export function writeConfig(_0xc0aa64,_0x58f35b={}){writeConfigFile(getConfigPath(_0x58f35b),_0xc0aa64);}export function scopeLabel(_0x23b917){const _0x26c2ba=a23_0x2f28;return _0x23b917['global']?_0x26c2ba(0xdb):'';}
1
+ (function(_0x15d705,_0x453afd){const _0x41f51a=a23_0x38df,_0x3ec231=_0x15d705();while(!![]){try{const _0x4c2d98=parseInt(_0x41f51a(0xa5))/0x1*(-parseInt(_0x41f51a(0xad))/0x2)+-parseInt(_0x41f51a(0xbb))/0x3+parseInt(_0x41f51a(0xaf))/0x4*(-parseInt(_0x41f51a(0x96))/0x5)+-parseInt(_0x41f51a(0xb8))/0x6+-parseInt(_0x41f51a(0xbf))/0x7+-parseInt(_0x41f51a(0xa8))/0x8*(-parseInt(_0x41f51a(0xc0))/0x9)+-parseInt(_0x41f51a(0x9f))/0xa*(-parseInt(_0x41f51a(0xaa))/0xb);if(_0x4c2d98===_0x453afd)break;else _0x3ec231['push'](_0x3ec231['shift']());}catch(_0x401df1){_0x3ec231['push'](_0x3ec231['shift']());}}}(a23_0x3be6,0xee715));import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function nullableText(_0x2bc4c4){const _0x5a52ce=_0x2bc4c4?.['trim']();return _0x5a52ce?_0x5a52ce:null;}export function projectAppMembers(_0xc55b84){const _0x1513eb=a23_0x38df,_0x456810=new Map(),_0x39c1fe=[..._0xc55b84][_0x1513eb(0xb2)]((_0x138ab6,_0x34953a)=>_0x138ab6['id']-_0x34953a['id']),_0x5a6193=(_0x127cb8,_0x5b4766,_0x5a8364)=>{const _0x53a9b1=_0x1513eb;for(const _0x3b52f6 of _0x5b4766){const _0x2aff04=Number(_0x3b52f6[_0x53a9b1(0xbe)]);if(!Number['isFinite'](_0x2aff04)||_0x2aff04<=0x0)continue;let _0x4f8669=_0x456810[_0x53a9b1(0xc7)](_0x2aff04);if(!_0x4f8669)_0x4f8669={'userId':_0x2aff04,'username':nullableText(_0x3b52f6[_0x53a9b1(0x98)]),'displayName':nullableText(_0x3b52f6[_0x53a9b1(0xc3)]),'status':_0x5a8364,'roles':[],'roleKeys':new Set()},_0x456810['set'](_0x2aff04,_0x4f8669);else{_0x4f8669['username']??=nullableText(_0x3b52f6[_0x53a9b1(0x98)]),_0x4f8669[_0x53a9b1(0xb9)]??=nullableText(_0x3b52f6[_0x53a9b1(0xc3)]);if(_0x5a8364===_0x53a9b1(0xa2))_0x4f8669['status']='ACTIVE';}const _0x3b2caf=_0x127cb8['id']+':'+_0x5a8364;if(_0x4f8669[_0x53a9b1(0xae)][_0x53a9b1(0xb0)](_0x3b2caf))continue;_0x4f8669[_0x53a9b1(0xae)][_0x53a9b1(0xa3)](_0x3b2caf),_0x4f8669[_0x53a9b1(0xba)][_0x53a9b1(0xac)]({'roleId':_0x127cb8['id'],'roleCode':_0x127cb8[_0x53a9b1(0x9e)],'roleName':nullableText(_0x127cb8[_0x53a9b1(0x99)]),'roleType':nullableText(_0x127cb8[_0x53a9b1(0xbd)]),'membershipStatus':_0x5a8364});}};for(const _0x2e7f02 of _0x39c1fe){_0x5a6193(_0x2e7f02,_0x2e7f02[_0x1513eb(0x97)]??[],_0x1513eb(0xa2)),_0x5a6193(_0x2e7f02,_0x2e7f02['applyUserList']??[],_0x1513eb(0xc6));}return[..._0x456810[_0x1513eb(0x9d)]()]['map'](_0xc2e5ad=>({'userId':_0xc2e5ad[_0x1513eb(0xbe)],'username':_0xc2e5ad[_0x1513eb(0x98)],'displayName':_0xc2e5ad[_0x1513eb(0xb9)],'status':_0xc2e5ad[_0x1513eb(0xa7)],'roles':_0xc2e5ad['roles']['sort']((_0x3cf4a8,_0x13dc99)=>_0x3cf4a8[_0x1513eb(0xb6)]-_0x13dc99[_0x1513eb(0xb6)]||(_0x3cf4a8[_0x1513eb(0xc4)]===_0x13dc99[_0x1513eb(0xc4)]?0x0:_0x3cf4a8[_0x1513eb(0xc4)]==='ACTIVE'?-0x1:0x1))}))[_0x1513eb(0xb2)]((_0x1eb45c,_0x40672a)=>_0x1eb45c[_0x1513eb(0xbe)]-_0x40672a[_0x1513eb(0xbe)]);}export function enrichAppListItemsWithMergedSelection(_0x137327,_0x4a690f){const _0x9d85ae=a23_0x38df;if(!_0x4a690f)return;const _0xae193d=_0x4a690f[_0x9d85ae(0xb4)]&&typeof _0x4a690f[_0x9d85ae(0xb4)]==='object'?_0x4a690f[_0x9d85ae(0xb4)]:{},_0x5137e6=Object[_0x9d85ae(0xbc)](_0xae193d)[_0x9d85ae(0xab)]>0x0;for(const _0x2fe2db of _0x137327){_0x2fe2db[_0x9d85ae(0xa0)]=![];}const _0x42aa0a=_0x4a690f[_0x9d85ae(0xa9)]!=null?String(_0x4a690f[_0x9d85ae(0xa9)])[_0x9d85ae(0xa1)]():'';if(_0x5137e6){const _0x33d1e4=_0x4a690f[_0x9d85ae(0xb7)]??_0x4a690f[_0x9d85ae(0x9b)];if(_0x33d1e4)for(const _0x314673 of _0x137327){_0x314673[_0x9d85ae(0xc2)]===!![]&&_0x314673[_0x9d85ae(0xb5)]===_0x33d1e4&&(_0x314673[_0x9d85ae(0xa0)]=!![]);}for(const _0x102dd8 of _0x137327){if(_0x102dd8['named']!==![])continue;if(_0x4a690f[_0x9d85ae(0x9b)])continue;_0x42aa0a&&String(_0x102dd8[_0x9d85ae(0xa4)]??'')[_0x9d85ae(0xa1)]()===_0x42aa0a&&(_0x102dd8[_0x9d85ae(0xa0)]=!![]);}return;}if(!_0x42aa0a)return;for(const _0x340f6c of _0x137327){String(_0x340f6c[_0x9d85ae(0xa4)]??'')[_0x9d85ae(0xa1)]()===_0x42aa0a&&(_0x340f6c[_0x9d85ae(0xa0)]=!![]);}}export function resolveAppScopeForWrite(_0x1c6238,_0x484b3c,_0x20a78f){const _0x49b911=a23_0x38df;if(_0x484b3c)return _0x49b911(0xb1);const _0x7a03c=_0x20a78f[_0x49b911(0xc9)][_0x49b911(0xb4)]&&typeof _0x20a78f[_0x49b911(0xc9)][_0x49b911(0xb4)]==='object'?_0x20a78f[_0x49b911(0xc9)][_0x49b911(0xb4)]:{},_0x4bc012=_0x20a78f[_0x49b911(0x9a)][_0x49b911(0xb4)]&&typeof _0x20a78f['globalConfig'][_0x49b911(0xb4)]===_0x49b911(0xa6)?_0x20a78f[_0x49b911(0x9a)][_0x49b911(0xb4)]:{};if(Object[_0x49b911(0x9c)][_0x49b911(0xc1)][_0x49b911(0xc5)](_0x7a03c,_0x1c6238))return _0x49b911(0xb3);if(Object[_0x49b911(0x9c)]['hasOwnProperty']['call'](_0x4bc012,_0x1c6238))return _0x49b911(0xb1);return _0x49b911(0xb3);}function a23_0x38df(_0x4e89a0,_0x7c3870){_0x4e89a0=_0x4e89a0-0x96;const _0x3be625=a23_0x3be6();let _0x38dfbd=_0x3be625[_0x4e89a0];return _0x38dfbd;}export function appDefinedIn(_0x11ac1b,_0x3c61bf,_0x5f0d17){const _0x11c7ce=a23_0x38df,_0x4dea93=Object[_0x11c7ce(0x9c)][_0x11c7ce(0xc1)][_0x11c7ce(0xc5)](_0x3c61bf,_0x11ac1b),_0x22972a=Object['prototype']['hasOwnProperty']['call'](_0x5f0d17,_0x11ac1b);if(_0x4dea93&&_0x22972a)return'both';if(_0x22972a)return'project';return _0x11c7ce(0xb1);}export function resolveDefaultAppSource(_0x6d18b6){const _0x5a16ce=a23_0x38df,_0x493884=_0x6d18b6['projectConfig'][_0x5a16ce(0xb4)]&&typeof _0x6d18b6[_0x5a16ce(0xc9)][_0x5a16ce(0xb4)]===_0x5a16ce(0xa6)?_0x6d18b6[_0x5a16ce(0xc9)]['apps']:{};if('defaultApp'in _0x6d18b6[_0x5a16ce(0xc9)])return _0x5a16ce(0xb3);if(Object['keys'](_0x493884)['length']>0x0)return _0x5a16ce(0xb3);if(Object[_0x5a16ce(0xbc)](_0x6d18b6[_0x5a16ce(0xc9)])[_0x5a16ce(0xab)]===0x0&&_0x6d18b6['globalConfig'][_0x5a16ce(0x9b)])return'global';return null;}export function getConfigPath(_0x16e6f8={}){const _0x4461da=a23_0x38df,_0x3e8d76=_0x16e6f8[_0x4461da(0xb1)]?_0x4461da(0xb1):_0x4461da(0xb3);return resolveWriteConfigPath(_0x3e8d76);}function a23_0x3be6(){const _0x582277=['named','nickname','membershipStatus','call','PENDING','get','\x20(global)','projectConfig','160bGHONM','userList','username','roleName','globalConfig','defaultApp','prototype','values','roleCode','90XyuWiw','isCurrent','trim','ACTIVE','add','appcode','3FwIxXO','object','status','2676976QKWugD','appCode','7736091tRcbLA','length','push','1070838HBqguu','roleKeys','151896jgBbex','has','global','sort','project','apps','name','roleId','currentApp','2394696icKSGN','displayName','roles','2262474JVdkON','keys','roleType','userId','11989537IvbsUf','9mkwhrU','hasOwnProperty'];a23_0x3be6=function(){return _0x582277;};return a23_0x3be6();}export function readConfig(_0x13eaef={}){return readConfigFile(getConfigPath(_0x13eaef));}export function writeConfig(_0x3a7b3d,_0x4a867f={}){writeConfigFile(getConfigPath(_0x4a867f),_0x3a7b3d);}export function scopeLabel(_0x53b1c1){const _0x275954=a23_0x38df;return _0x53b1c1[_0x275954(0xb1)]?_0x275954(0xc8):'';}
@@ -1 +1 @@
1
- const a24_0x4b6c59=a24_0x28bb;(function(_0x4560f9,_0x26c55f){const _0x253841=a24_0x28bb,_0x89e678=_0x4560f9();while(!![]){try{const _0x3fc2c7=parseInt(_0x253841(0x92))/0x1+-parseInt(_0x253841(0x98))/0x2*(parseInt(_0x253841(0xaa))/0x3)+-parseInt(_0x253841(0xa2))/0x4*(-parseInt(_0x253841(0xa9))/0x5)+-parseInt(_0x253841(0xa6))/0x6+parseInt(_0x253841(0x99))/0x7*(-parseInt(_0x253841(0x9e))/0x8)+-parseInt(_0x253841(0x95))/0x9*(-parseInt(_0x253841(0x9b))/0xa)+parseInt(_0x253841(0x9c))/0xb;if(_0x3fc2c7===_0x26c55f)break;else _0x89e678['push'](_0x89e678['shift']());}catch(_0x2bab4e){_0x89e678['push'](_0x89e678['shift']());}}}(a24_0x51a7,0x72da2));function a24_0x51a7(){const _0x3146bd=['high-risk-write','isFinite','949257RriRdZ',',\x20appCode=','delete','836SVQYYm','4116189ZBxtqE','Delete\x20one\x20runtime\x20app-config\x20key','50bvjDyc','2056692vrpKnx','apiError','8pQvBTl','/smartapi/app-config/delete','appCode','validation','2644AYXYHo','App\x20config\x20key\x20not\x20found:\x20','number','App\x20config\x20server\x20id\x20missing\x20for\x20key=','2241324OXgXFv','app-config','get','2190qvHEch','165oonTdZ','451150niaGXh'];a24_0x51a7=function(){return _0x3146bd;};return a24_0x51a7();}import{deleteAppConfig,getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asAppConfigDryRunResult,buildMutationData,KEY_ARG,projectAppConfig,readKeyArg,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';function a24_0x28bb(_0x4a4d6b,_0x2f3eea){_0x4a4d6b=_0x4a4d6b-0x92;const _0x51a709=a24_0x51a7();let _0x28bb4c=_0x51a709[_0x4a4d6b];return _0x28bb4c;}const DELETE_PATH=a24_0x4b6c59(0x9f);export const appConfigDelete={'service':a24_0x4b6c59(0xa7),'command':a24_0x4b6c59(0x97),'description':a24_0x4b6c59(0x9a),'risk':a24_0x4b6c59(0x93),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1542a7){readKeyArg(_0x1542a7);},async 'dryRun'(_0x32baf4){const _0x41a099=a24_0x4b6c59,_0x4c4306=readKeyArg(_0x32baf4),_0x2fe05d=await mustGetByKey(_0x32baf4['appCode'],_0x4c4306);return asAppConfigDryRunResult(buildMutationData({'operation':_0x41a099(0x97),'appCode':_0x32baf4['appCode'],'key':_0x4c4306,'before':projectAppConfig(_0x2fe05d),'after':null,'dryRun':!![]}),{'method':'POST','url':DELETE_PATH});},async 'execute'(_0x468a29){const _0x2f0d13=a24_0x4b6c59,_0x588cb5=readKeyArg(_0x468a29),_0x2f6b3e=await mustGetByKey(_0x468a29[_0x2f0d13(0xa0)],_0x588cb5);return await withAppConfigApiBoundary(_0x2f0d13(0x97),{'appCode':_0x468a29[_0x2f0d13(0xa0)],'key':_0x588cb5},()=>deleteAppConfig({'appCode':_0x468a29[_0x2f0d13(0xa0)],'id':requireAppConfigId(_0x2f6b3e,_0x588cb5,_0x468a29[_0x2f0d13(0xa0)])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x468a29[_0x2f0d13(0xa0)],'key':_0x588cb5,'before':projectAppConfig(_0x2f6b3e),'after':null,'dryRun':![]}),'message':'Deleted\x20app\x20config\x20'+_0x588cb5};}};async function mustGetByKey(_0x356320,_0x59949b){const _0x1703a3=a24_0x4b6c59,_0x308e97=await withAppConfigApiBoundary(_0x1703a3(0xa8),{'appCode':_0x356320,'key':_0x59949b},()=>getAppConfigByKey(_0x356320,_0x59949b));if(!_0x308e97)throw CliErrors[_0x1703a3(0xa1)](_0x1703a3(0xa3)+_0x59949b,'appCode:\x20'+_0x356320);return _0x308e97;}function requireAppConfigId(_0x329a3f,_0xd7f0d8,_0x420fe6){const _0x22f5b9=a24_0x4b6c59;if(typeof _0x329a3f['id']===_0x22f5b9(0xa4)&&Number[_0x22f5b9(0x94)](_0x329a3f['id'])&&_0x329a3f['id']>0x0)return _0x329a3f['id'];throw CliErrors[_0x22f5b9(0x9d)](_0x22f5b9(0xa5)+_0xd7f0d8+_0x22f5b9(0x96)+_0x420fe6);}
1
+ const a24_0x2b36eb=a24_0x1878;(function(_0xc4c37c,_0x2d50ab){const _0x2b7c38=a24_0x1878,_0x3a8392=_0xc4c37c();while(!![]){try{const _0x4ee63b=parseInt(_0x2b7c38(0x148))/0x1+-parseInt(_0x2b7c38(0x150))/0x2+parseInt(_0x2b7c38(0x14b))/0x3+-parseInt(_0x2b7c38(0x14f))/0x4*(parseInt(_0x2b7c38(0x149))/0x5)+-parseInt(_0x2b7c38(0x15e))/0x6*(parseInt(_0x2b7c38(0x158))/0x7)+parseInt(_0x2b7c38(0x15c))/0x8+-parseInt(_0x2b7c38(0x14d))/0x9*(parseInt(_0x2b7c38(0x14a))/0xa);if(_0x4ee63b===_0x2d50ab)break;else _0x3a8392['push'](_0x3a8392['shift']());}catch(_0x50c214){_0x3a8392['push'](_0x3a8392['shift']());}}}(a24_0xc23d,0xa3b2d));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_0x2b36eb(0x151);function a24_0x1878(_0xbd9f3d,_0x231698){_0xbd9f3d=_0xbd9f3d-0x147;const _0xc23d4e=a24_0xc23d();let _0x18786a=_0xc23d4e[_0xbd9f3d];return _0x18786a;}export const appConfigDelete={'service':a24_0x2b36eb(0x15b),'command':'delete','description':a24_0x2b36eb(0x15d),'risk':a24_0x2b36eb(0x14e),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5da1e7){readKeyArg(_0x5da1e7);},async 'dryRun'(_0x280397){const _0x340e0e=a24_0x2b36eb,_0x242e9a=readKeyArg(_0x280397),_0x407593=await mustGetByKey(_0x280397['appCode'],_0x242e9a);return asAppConfigDryRunResult(buildMutationData({'operation':_0x340e0e(0x15f),'appCode':_0x280397[_0x340e0e(0x14c)],'key':_0x242e9a,'before':projectAppConfig(_0x407593),'after':null,'dryRun':!![]}),{'method':_0x340e0e(0x152),'url':DELETE_PATH});},async 'execute'(_0x121eab){const _0x546949=a24_0x2b36eb,_0x30a9c3=readKeyArg(_0x121eab),_0x9f5e77=await mustGetByKey(_0x121eab[_0x546949(0x14c)],_0x30a9c3);return await withAppConfigApiBoundary(_0x546949(0x15f),{'appCode':_0x121eab[_0x546949(0x14c)],'key':_0x30a9c3},()=>deleteAppConfig({'appCode':_0x121eab[_0x546949(0x14c)],'id':requireAppConfigId(_0x9f5e77,_0x30a9c3,_0x121eab['appCode'])})),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x121eab[_0x546949(0x14c)],'key':_0x30a9c3,'before':projectAppConfig(_0x9f5e77),'after':null,'dryRun':![]}),'message':_0x546949(0x155)+_0x30a9c3};}};async function mustGetByKey(_0x12c859,_0x4c32ff){const _0x17d6d4=a24_0x2b36eb,_0x4bab28=await withAppConfigApiBoundary(_0x17d6d4(0x153),{'appCode':_0x12c859,'key':_0x4c32ff},()=>getAppConfigByKey(_0x12c859,_0x4c32ff));if(!_0x4bab28)throw CliErrors[_0x17d6d4(0x157)]('App\x20config\x20key\x20not\x20found:\x20'+_0x4c32ff,_0x17d6d4(0x160)+_0x12c859);return _0x4bab28;}function requireAppConfigId(_0x42c44c,_0x1c3e3c,_0x426b8b){const _0x363f79=a24_0x2b36eb;if(typeof _0x42c44c['id']===_0x363f79(0x154)&&Number[_0x363f79(0x156)](_0x42c44c['id'])&&_0x42c44c['id']>0x0)return _0x42c44c['id'];throw CliErrors[_0x363f79(0x159)](_0x363f79(0x147)+_0x1c3e3c+_0x363f79(0x15a)+_0x426b8b);}function a24_0xc23d(){const _0x531beb=['/smartapi/app-config/delete','POST','get','number','Deleted\x20app\x20config\x20','isFinite','validation','57295nOXgfc','apiError',',\x20appCode=','app-config','7218880BdtpwA','Delete\x20one\x20runtime\x20app-config\x20key','6STesaD','delete','appCode:\x20','App\x20config\x20server\x20id\x20missing\x20for\x20key=','1000281JkhGCP','10rDTCbJ','1495910NiTWSX','3014610ayHnZK','appCode','9ZsCNEM','high-risk-write','2222252vZViYJ','1936200dutnRs'];a24_0xc23d=function(){return _0x531beb;};return a24_0xc23d();}
@@ -1 +1 @@
1
- const a25_0x20a0a8=a25_0x36bf;(function(_0x4186a5,_0x4a6090){const _0x45e4cb=a25_0x36bf,_0x1f1854=_0x4186a5();while(!![]){try{const _0x3bd278=parseInt(_0x45e4cb(0x131))/0x1+-parseInt(_0x45e4cb(0x135))/0x2*(parseInt(_0x45e4cb(0x145))/0x3)+parseInt(_0x45e4cb(0x141))/0x4*(parseInt(_0x45e4cb(0x13f))/0x5)+-parseInt(_0x45e4cb(0x132))/0x6+-parseInt(_0x45e4cb(0x140))/0x7+parseInt(_0x45e4cb(0x139))/0x8+parseInt(_0x45e4cb(0x137))/0x9;if(_0x3bd278===_0x4a6090)break;else _0x1f1854['push'](_0x1f1854['shift']());}catch(_0x4d66c7){_0x1f1854['push'](_0x1f1854['shift']());}}}(a25_0x581d,0xb0cae));import{getAppConfigByKey}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a25_0x36bf(_0x2a732b,_0x1b7029){_0x2a732b=_0x2a732b-0x131;const _0x581db5=a25_0x581d();let _0x36bfb0=_0x581db5[_0x2a732b];return _0x36bfb0;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a25_0x20a0a8(0x133),'command':'get','description':a25_0x20a0a8(0x144),'risk':a25_0x20a0a8(0x13b),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x2bc5b1){readKeyArg(_0x2bc5b1);},async 'execute'(_0xdffe12){const _0x5d4610=a25_0x20a0a8,_0x13f005=readKeyArg(_0xdffe12),_0x292b9f=await withAppConfigApiBoundary('get',{'appCode':_0xdffe12[_0x5d4610(0x134)],'key':_0x13f005},()=>getAppConfigByKey(_0xdffe12[_0x5d4610(0x134)],_0x13f005));if(!_0x292b9f)throw CliErrors[_0x5d4610(0x142)](_0x5d4610(0x13e)+_0x13f005,_0x5d4610(0x13d)+_0xdffe12[_0x5d4610(0x134)]);const _0x39bd66=projectAppConfig(_0x292b9f,{'reveal':_0xdffe12['bool'](_0x5d4610(0x143))});return{'ok':!![],'data':{'config':_0x39bd66},'message':_0xdffe12[_0x5d4610(0x136)](_0x5d4610(0x143))?_0x5d4610(0x13c)+_0x13f005+_0x5d4610(0x138):'Loaded\x20app\x20config\x20'+_0x13f005+_0x5d4610(0x13a)};}};function a25_0x581d(){const _0x48131a=['bool','22123233DcKdXU','\x20with\x20value\x20revealed','3237912mPWqOg','\x20with\x20value\x20redacted','read','Loaded\x20app\x20config\x20','appCode:\x20','App\x20config\x20key\x20not\x20found:\x20','5BmAVqS','7905135WvaVIk','248656VftgYx','validation','reveal','Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','2931SxfJFi','912188uZgLPx','6087582DIpWNC','app-config','appCode','1984UyKdXO'];a25_0x581d=function(){return _0x48131a;};return a25_0x581d();}
1
+ const a25_0xe36777=a25_0x3bf8;(function(_0x4f7d9f,_0x3e7c74){const _0x52a82e=a25_0x3bf8,_0x4255de=_0x4f7d9f();while(!![]){try{const _0x5b3561=-parseInt(_0x52a82e(0x140))/0x1+parseInt(_0x52a82e(0x144))/0x2+-parseInt(_0x52a82e(0x13c))/0x3+-parseInt(_0x52a82e(0x13e))/0x4+-parseInt(_0x52a82e(0x137))/0x5+parseInt(_0x52a82e(0x13b))/0x6+parseInt(_0x52a82e(0x132))/0x7*(parseInt(_0x52a82e(0x136))/0x8);if(_0x5b3561===_0x3e7c74)break;else _0x4255de['push'](_0x4255de['shift']());}catch(_0x674b63){_0x4255de['push'](_0x4255de['shift']());}}}(a25_0x4386,0xd4431));import{getAppConfigByKey}from'../../core/api-client.js';function a25_0x4386(){const _0x44d1ed=['get','validation','4307718Jqnivl','205056lRLULH','bool','6810472oLnUOZ','Loaded\x20app\x20config\x20','772012yrcUvo','read','\x20with\x20value\x20revealed','appCode:\x20','2944168JhmLOJ','\x20with\x20value\x20redacted','6807388tmxNuZ','appCode','app-config','reveal','24ujVYoX','8475410VPXmCz','App\x20config\x20key\x20not\x20found:\x20'];a25_0x4386=function(){return _0x44d1ed;};return a25_0x4386();}function a25_0x3bf8(_0x42b92f,_0x4c1502){_0x42b92f=_0x42b92f-0x132;const _0x4386b9=a25_0x4386();let _0x3bf8f7=_0x4386b9[_0x42b92f];return _0x3bf8f7;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{KEY_ARG,projectAppConfig,readKeyArg,REVEAL_FLAG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';export const appConfigGet={'service':a25_0xe36777(0x134),'command':a25_0xe36777(0x139),'description':'Inspect\x20one\x20runtime\x20app-config\x20key;\x20value\x20is\x20redacted\x20unless\x20--reveal\x20is\x20used','risk':a25_0xe36777(0x141),'args':[KEY_ARG],'flags':[APPCODE_FLAG_OPTIONAL,REVEAL_FLAG],async 'validate'(_0x1c2dee){readKeyArg(_0x1c2dee);},async 'execute'(_0x25e676){const _0x3bbf21=a25_0xe36777,_0x5b6894=readKeyArg(_0x25e676),_0x170b6a=await withAppConfigApiBoundary(_0x3bbf21(0x139),{'appCode':_0x25e676[_0x3bbf21(0x133)],'key':_0x5b6894},()=>getAppConfigByKey(_0x25e676[_0x3bbf21(0x133)],_0x5b6894));if(!_0x170b6a)throw CliErrors[_0x3bbf21(0x13a)](_0x3bbf21(0x138)+_0x5b6894,_0x3bbf21(0x143)+_0x25e676[_0x3bbf21(0x133)]);const _0x31dcc7=projectAppConfig(_0x170b6a,{'reveal':_0x25e676[_0x3bbf21(0x13d)](_0x3bbf21(0x135))});return{'ok':!![],'data':{'config':_0x31dcc7},'message':_0x25e676[_0x3bbf21(0x13d)]('reveal')?_0x3bbf21(0x13f)+_0x5b6894+_0x3bbf21(0x142):_0x3bbf21(0x13f)+_0x5b6894+_0x3bbf21(0x145)};}};
@@ -1 +1 @@
1
- function a26_0x5947(){const _0x4c22e9=['30TxTkXV','4108056keBTak','18092gBnjbh','6zQgfOF','1022910zdpeOl','1109101fCCTNg','719243WQxYbp','2007428Doczua','5275647kkakAZ'];a26_0x5947=function(){return _0x4c22e9;};return a26_0x5947();}(function(_0x461965,_0x24f972){const _0x40a4ce=a26_0x19b3,_0x4e9485=_0x461965();while(!![]){try{const _0x100a42=-parseInt(_0x40a4ce(0xfe))/0x1+parseInt(_0x40a4ce(0xfa))/0x2*(parseInt(_0x40a4ce(0xfb))/0x3)+parseInt(_0x40a4ce(0xff))/0x4+-parseInt(_0x40a4ce(0xfc))/0x5+-parseInt(_0x40a4ce(0xf8))/0x6*(-parseInt(_0x40a4ce(0xfd))/0x7)+-parseInt(_0x40a4ce(0xf9))/0x8+parseInt(_0x40a4ce(0x100))/0x9;if(_0x100a42===_0x24f972)break;else _0x4e9485['push'](_0x4e9485['shift']());}catch(_0x57af87){_0x4e9485['push'](_0x4e9485['shift']());}}}(a26_0x5947,0x708d7));function a26_0x19b3(_0x5e2cf3,_0x46dccf){_0x5e2cf3=_0x5e2cf3-0xf8;const _0x5947e0=a26_0x5947();let _0x19b3be=_0x5947e0[_0x5e2cf3];return _0x19b3be;}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';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];
1
+ (function(_0x2aa682,_0x348b9f){const _0x446c50=a26_0x2e7c,_0x697d5e=_0x2aa682();while(!![]){try{const _0x779959=-parseInt(_0x446c50(0xf7))/0x1+parseInt(_0x446c50(0xf8))/0x2+-parseInt(_0x446c50(0xf5))/0x3+parseInt(_0x446c50(0xfa))/0x4*(-parseInt(_0x446c50(0xf6))/0x5)+parseInt(_0x446c50(0xfd))/0x6*(parseInt(_0x446c50(0xf9))/0x7)+parseInt(_0x446c50(0xfc))/0x8*(parseInt(_0x446c50(0xf4))/0x9)+parseInt(_0x446c50(0xfb))/0xa;if(_0x779959===_0x348b9f)break;else _0x697d5e['push'](_0x697d5e['shift']());}catch(_0x305cee){_0x697d5e['push'](_0x697d5e['shift']());}}}(a26_0x4a73,0x4ab23));function a26_0x2e7c(_0x804d59,_0x235f64){_0x804d59=_0x804d59-0xf4;const _0x4a73a0=a26_0x4a73();let _0x2e7cb3=_0x4a73a0[_0x804d59];return _0x2e7cb3;}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';export const appConfigDefinitions=[appConfigList,appConfigGet,appConfigSet,appConfigDelete];function a26_0x4a73(){const _0x5cca39=['229397aTkfGO','716smpEhR','2240350abBJbl','448JUCcFj','36zEIyBh','63675EXYcuM','47280kJrrkq','7985ucBamj','444219HGBAzK','469872zEYTkw'];a26_0x4a73=function(){return _0x5cca39;};return a26_0x4a73();}
@@ -1 +1 @@
1
- const a27_0x2ecc65=a27_0x2406;(function(_0x2096f0,_0x3b28c8){const _0x4c5d9d=a27_0x2406,_0x1e3a89=_0x2096f0();while(!![]){try{const _0xca3ae3=-parseInt(_0x4c5d9d(0x100))/0x1+parseInt(_0x4c5d9d(0x102))/0x2*(parseInt(_0x4c5d9d(0x10c))/0x3)+-parseInt(_0x4c5d9d(0xfb))/0x4*(-parseInt(_0x4c5d9d(0x10a))/0x5)+parseInt(_0x4c5d9d(0x101))/0x6+-parseInt(_0x4c5d9d(0x105))/0x7+-parseInt(_0x4c5d9d(0x10e))/0x8*(parseInt(_0x4c5d9d(0x109))/0x9)+-parseInt(_0x4c5d9d(0x10d))/0xa;if(_0xca3ae3===_0x3b28c8)break;else _0x1e3a89['push'](_0x1e3a89['shift']());}catch(_0xe759db){_0x1e3a89['push'](_0x1e3a89['shift']());}}}(a27_0x225d,0x7f679));function a27_0x225d(){const _0x422c9d=['762LazMfw','app-config','Found\x20','3500763HRNAtJ','string','List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','length','207gCMObb','414985QFrTlY','trim','5361gqgWTK','2396000oXrmIR','15856eYgUqC','list','\x20app\x20config(s)','read','24NfFqLh','str','key','map','appCode','572148UNLOmm','4202778igADNQ'];a27_0x225d=function(){return _0x422c9d;};return a27_0x225d();}function a27_0x2406(_0x1950ed,_0x369583){_0x1950ed=_0x1950ed-0xf9;const _0x225db7=a27_0x225d();let _0x240622=_0x225db7[_0x1950ed];return _0x240622;}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_0x2ecc65(0x103),'command':'list','description':a27_0x2ecc65(0x107),'risk':a27_0x2ecc65(0xfa),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a27_0x2ecc65(0xfd),'type':a27_0x2ecc65(0x106),'description':'Filter\x20by\x20exact\x20config\x20key'},TAGS_FLAG],async 'validate'(_0x4d89fe){const _0x25b03e=a27_0x2ecc65,_0x10684e=_0x4d89fe[_0x25b03e(0xfc)](_0x25b03e(0xfd))['trim']();if(_0x10684e)validateKey(_0x10684e);readOptionalTags(_0x4d89fe);},async 'execute'(_0x2f9479){const _0x468e62=a27_0x2ecc65,_0x5b8a86=_0x2f9479[_0x468e62(0xfc)]('key')[_0x468e62(0x10b)]()||undefined,_0x31c268=readOptionalTags(_0x2f9479),_0x46c79d=await withAppConfigApiBoundary(_0x468e62(0x10f),{'appCode':_0x2f9479[_0x468e62(0xff)]},()=>listAppConfigs(_0x2f9479[_0x468e62(0xff)],{'key':_0x5b8a86,'tags':_0x31c268})),_0x56f651=_0x46c79d[_0x468e62(0xfe)](_0x379899=>projectAppConfig(_0x379899));return{'ok':!![],'data':{'appCode':_0x2f9479[_0x468e62(0xff)],'count':_0x56f651[_0x468e62(0x108)],'configs':_0x56f651},'message':_0x468e62(0x104)+_0x56f651[_0x468e62(0x108)]+_0x468e62(0xf9)};}};
1
+ const a27_0x261e1b=a27_0x4de7;function a27_0x45f8(){const _0x46d9b5=['4973140ImoRAi','Found\x20','2746944nfTvEj','trim','657102bEHDgN','\x20app\x20config(s)','Filter\x20by\x20exact\x20config\x20key','15KKFLxv','2531658Vzycxd','key','4546880wzWZHC','appCode','map','22DbpKmB','1742cYTZiW','list','str','161IIhbAO','631816eeJVdE','length','1958Grirgw'];a27_0x45f8=function(){return _0x46d9b5;};return a27_0x45f8();}(function(_0x2fadd0,_0x169d95){const _0x3ed004=a27_0x4de7,_0x566bda=_0x2fadd0();while(!![]){try{const _0x4f209f=-parseInt(_0x3ed004(0xa4))/0x1*(-parseInt(_0x3ed004(0xaa))/0x2)+parseInt(_0x3ed004(0xaf))/0x3+-parseInt(_0x3ed004(0xb5))/0x4+-parseInt(_0x3ed004(0xb2))/0x5*(-parseInt(_0x3ed004(0xb3))/0x6)+parseInt(_0x3ed004(0xa7))/0x7*(-parseInt(_0x3ed004(0xa8))/0x8)+-parseInt(_0x3ed004(0xad))/0x9+-parseInt(_0x3ed004(0xab))/0xa*(-parseInt(_0x3ed004(0xa3))/0xb);if(_0x4f209f===_0x169d95)break;else _0x566bda['push'](_0x566bda['shift']());}catch(_0x5a12d3){_0x566bda['push'](_0x566bda['shift']());}}}(a27_0x45f8,0xe2326));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_0x4de7(_0xfb0547,_0x2db3a7){_0xfb0547=_0xfb0547-0xa3;const _0x45f888=a27_0x45f8();let _0x4de7a4=_0x45f888[_0xfb0547];return _0x4de7a4;}export const appConfigList={'service':'app-config','command':a27_0x261e1b(0xa5),'description':'List\x20runtime\x20app-config\x20key\x20metadata\x20without\x20printing\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'key','type':'string','description':a27_0x261e1b(0xb1)},TAGS_FLAG],async 'validate'(_0x548c5a){const _0x155e8b=a27_0x261e1b,_0x472f26=_0x548c5a['str'](_0x155e8b(0xb4))[_0x155e8b(0xae)]();if(_0x472f26)validateKey(_0x472f26);readOptionalTags(_0x548c5a);},async 'execute'(_0x17588e){const _0x33c124=a27_0x261e1b,_0x4a18bd=_0x17588e[_0x33c124(0xa6)](_0x33c124(0xb4))[_0x33c124(0xae)]()||undefined,_0x3f6aeb=readOptionalTags(_0x17588e),_0x2602ca=await withAppConfigApiBoundary(_0x33c124(0xa5),{'appCode':_0x17588e[_0x33c124(0xb6)]},()=>listAppConfigs(_0x17588e[_0x33c124(0xb6)],{'key':_0x4a18bd,'tags':_0x3f6aeb})),_0x56dbfd=_0x2602ca[_0x33c124(0xb7)](_0x1ecae7=>projectAppConfig(_0x1ecae7));return{'ok':!![],'data':{'appCode':_0x17588e['appCode'],'count':_0x56dbfd[_0x33c124(0xa9)],'configs':_0x56dbfd},'message':_0x33c124(0xac)+_0x56dbfd[_0x33c124(0xa9)]+_0x33c124(0xb0)};}};
@@ -1 +1 @@
1
- const a28_0x28cd20=a28_0x5472;function a28_0x5472(_0x4857aa,_0x17486c){_0x4857aa=_0x4857aa-0xe3;const _0x239ca0=a28_0x239c();let _0x547272=_0x239ca0[_0x4857aa];return _0x547272;}(function(_0x99d73c,_0x3b1a0c){const _0xe8a74=a28_0x5472,_0x419aa8=_0x99d73c();while(!![]){try{const _0x5ac901=parseInt(_0xe8a74(0xf4))/0x1*(-parseInt(_0xe8a74(0xe5))/0x2)+-parseInt(_0xe8a74(0xe7))/0x3+parseInt(_0xe8a74(0xe6))/0x4*(parseInt(_0xe8a74(0xfd))/0x5)+parseInt(_0xe8a74(0xf8))/0x6+parseInt(_0xe8a74(0xfe))/0x7+-parseInt(_0xe8a74(0xea))/0x8+-parseInt(_0xe8a74(0xec))/0x9;if(_0x5ac901===_0x3b1a0c)break;else _0x419aa8['push'](_0x419aa8['shift']());}catch(_0x3792f7){_0x419aa8['push'](_0x419aa8['shift']());}}}(a28_0x239c,0x62200));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a28_0x239c(){const _0x30542f=['get','37405nWSbVA','5029920sIhoDY','tags','app-config','App\x20config\x20server\x20id\x20missing\x20for\x20key=','15076sSBYRw','356LkJBba','367575TDxlSd','Read\x20config\x20value\x20from\x20file','apiError','5829456XhiVMo','file','2759886mQUjjp','/smartapi/app-config/update','\x20app\x20config\x20','Updated','isFinite','update','string','set','75fAMsBc','create','appCode','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','4444572PbGskZ',',\x20appCode=','number','write'];a28_0x239c=function(){return _0x30542f;};return a28_0x239c();}import{assertSingleValueSource,assertValueSourceReadable,asAppConfigDryRunResult,buildMutationData,FROM_ENV_FLAG,KEY_ARG,plannedAppConfig,projectAppConfig,readAppConfigValue,readKeyArg,readOptionalTags,STDIN_FLAG,TAGS_FLAG,VALUE_ARG,withAppConfigApiBoundary}from'../../commands/app-config/shared.js';const CREATE_PATH='/smartapi/app-config/create',UPDATE_PATH=a28_0x28cd20(0xed);export const appConfigSet={'service':a28_0x28cd20(0xe3),'command':a28_0x28cd20(0xf3),'description':a28_0x28cd20(0xf7),'risk':a28_0x28cd20(0xfb),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':a28_0x28cd20(0xeb),'type':a28_0x28cd20(0xf2),'description':a28_0x28cd20(0xe8)}],async 'validate'(_0x52dfa9){readKeyArg(_0x52dfa9),readOptionalTags(_0x52dfa9),assertSingleValueSource(_0x52dfa9);},async 'dryRun'(_0x57fd35){const _0x1035b0=a28_0x28cd20,_0x1ab126=readKeyArg(_0x57fd35),_0x18b4cb=readOptionalTags(_0x57fd35),_0x4ded04=assertSingleValueSource(_0x57fd35);await assertValueSourceReadable(_0x4ded04);const _0x2d250e=await withAppConfigApiBoundary('get',{'appCode':_0x57fd35['appCode'],'key':_0x1ab126},()=>getAppConfigByKey(_0x57fd35[_0x1035b0(0xf6)],_0x1ab126)),_0x7b40e=_0x2d250e?_0x1035b0(0xf1):_0x1035b0(0xf5),_0x4a9247=_0x2d250e?projectAppConfig(_0x2d250e):null,_0xf953f8=plannedAppConfig({'appCode':_0x57fd35[_0x1035b0(0xf6)],'key':_0x1ab126,'tags':_0x18b4cb??_0x2d250e?.['tags'],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x7b40e,'appCode':_0x57fd35[_0x1035b0(0xf6)],'key':_0x1ab126,'before':_0x4a9247,'after':_0xf953f8,'dryRun':!![]}),{'method':'POST','url':_0x7b40e===_0x1035b0(0xf1)?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x1bd52b){const _0x1ec6be=a28_0x28cd20,_0x5d1f0b=readKeyArg(_0x1bd52b),_0x5c1d8f=readOptionalTags(_0x1bd52b),_0x59a5c5=await withAppConfigApiBoundary('get',{'appCode':_0x1bd52b[_0x1ec6be(0xf6)],'key':_0x5d1f0b},()=>getAppConfigByKey(_0x1bd52b[_0x1ec6be(0xf6)],_0x5d1f0b)),_0x2af6ff=_0x59a5c5?projectAppConfig(_0x59a5c5):null,_0x20a9ab=_0x59a5c5?_0x1ec6be(0xf1):_0x1ec6be(0xf5),{value:_0x5bd613,warnings:_0x133848}=await readAppConfigValue(_0x1bd52b),_0x528bc8={'appCode':_0x1bd52b['appCode'],'key':_0x5d1f0b,'value':_0x5bd613,'tags':_0x5c1d8f??_0x59a5c5?.[_0x1ec6be(0xff)]??undefined};await withAppConfigApiBoundary(_0x20a9ab,{'appCode':_0x1bd52b[_0x1ec6be(0xf6)],'key':_0x5d1f0b},async()=>{const _0x146caa=_0x1ec6be;_0x59a5c5?await updateAppConfig({..._0x528bc8,'id':requireAppConfigId(_0x59a5c5,_0x5d1f0b,_0x1bd52b[_0x146caa(0xf6)])}):await createAppConfig(_0x528bc8);});const _0xbe96ff=await withAppConfigApiBoundary(_0x1ec6be(0xfc),{'appCode':_0x1bd52b[_0x1ec6be(0xf6)],'key':_0x5d1f0b},()=>getAppConfigByKey(_0x1bd52b[_0x1ec6be(0xf6)],_0x5d1f0b)),_0x4f63be=_0xbe96ff?projectAppConfig(_0xbe96ff):plannedAppConfig({'appCode':_0x1bd52b[_0x1ec6be(0xf6)],'key':_0x5d1f0b,'tags':_0x528bc8[_0x1ec6be(0xff)],'hasValue':_0x5bd613!==''});return{'ok':!![],'data':buildMutationData({'operation':_0x20a9ab,'appCode':_0x1bd52b[_0x1ec6be(0xf6)],'key':_0x5d1f0b,'before':_0x2af6ff,'after':_0x4f63be,'dryRun':![],'warnings':_0x133848}),'message':(_0x20a9ab==='update'?_0x1ec6be(0xef):'Created')+_0x1ec6be(0xee)+_0x5d1f0b};}};function requireAppConfigId(_0x2c5bcc,_0x2f2e0f,_0xa4cd3d){const _0x2c97b0=a28_0x28cd20;if(typeof _0x2c5bcc['id']===_0x2c97b0(0xfa)&&Number[_0x2c97b0(0xf0)](_0x2c5bcc['id'])&&_0x2c5bcc['id']>0x0)return _0x2c5bcc['id'];throw CliErrors[_0x2c97b0(0xe9)](_0x2c97b0(0xe4)+_0x2f2e0f+_0x2c97b0(0xf9)+_0xa4cd3d);}
1
+ const a28_0x17273f=a28_0x4499;(function(_0x5ac33a,_0x1c8484){const _0x4de31e=a28_0x4499,_0xef4690=_0x5ac33a();while(!![]){try{const _0x522ef8=-parseInt(_0x4de31e(0x141))/0x1+parseInt(_0x4de31e(0x142))/0x2*(parseInt(_0x4de31e(0x13e))/0x3)+-parseInt(_0x4de31e(0x147))/0x4+-parseInt(_0x4de31e(0x151))/0x5*(-parseInt(_0x4de31e(0x140))/0x6)+parseInt(_0x4de31e(0x13b))/0x7+parseInt(_0x4de31e(0x13d))/0x8+-parseInt(_0x4de31e(0x143))/0x9;if(_0x522ef8===_0x1c8484)break;else _0xef4690['push'](_0xef4690['shift']());}catch(_0x8c99db){_0xef4690['push'](_0xef4690['shift']());}}}(a28_0x2a20,0x2bb7b));import{createAppConfig,getAppConfigByKey,updateAppConfig}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a28_0x4499(_0x5ebba8,_0x18e17e){_0x5ebba8=_0x5ebba8-0x139;const _0x2a200e=a28_0x2a20();let _0x449904=_0x2a200e[_0x5ebba8];return _0x449904;}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_0x2a20(){const _0x4e9377=['1430032GFUdng','Read\x20config\x20value\x20from\x20file','Updated','get','write','create','/smartapi/app-config/create','update','tags','isFinite','1019640vrGocS','appCode','POST','set','app-config','App\x20config\x20server\x20id\x20missing\x20for\x20key=','\x20app\x20config\x20','887474RQuaIj','apiError','1599928dPylRx','36scQyGo','Create\x20or\x20update\x20one\x20runtime\x20app-config\x20key','6ydkKVr','12086QNFhFh','51396WBVrAW','2613744BPfOpS','number',',\x20appCode=','Created'];a28_0x2a20=function(){return _0x4e9377;};return a28_0x2a20();}const CREATE_PATH=a28_0x17273f(0x14d),UPDATE_PATH='/smartapi/app-config/update';export const appConfigSet={'service':a28_0x17273f(0x155),'command':a28_0x17273f(0x154),'description':a28_0x17273f(0x13f),'risk':a28_0x17273f(0x14b),'args':[KEY_ARG,VALUE_ARG],'flags':[APPCODE_FLAG_OPTIONAL,TAGS_FLAG,STDIN_FLAG,FROM_ENV_FLAG,{'name':'file','type':'string','description':a28_0x17273f(0x148)}],async 'validate'(_0x27d8ab){readKeyArg(_0x27d8ab),readOptionalTags(_0x27d8ab),assertSingleValueSource(_0x27d8ab);},async 'dryRun'(_0x550de){const _0x164a8a=a28_0x17273f,_0x57e653=readKeyArg(_0x550de),_0x179fda=readOptionalTags(_0x550de),_0x2bb1b7=assertSingleValueSource(_0x550de);await assertValueSourceReadable(_0x2bb1b7);const _0x5a4980=await withAppConfigApiBoundary(_0x164a8a(0x14a),{'appCode':_0x550de[_0x164a8a(0x152)],'key':_0x57e653},()=>getAppConfigByKey(_0x550de[_0x164a8a(0x152)],_0x57e653)),_0x4d2eb1=_0x5a4980?_0x164a8a(0x14e):_0x164a8a(0x14c),_0x34d64b=_0x5a4980?projectAppConfig(_0x5a4980):null,_0x58a4b0=plannedAppConfig({'appCode':_0x550de[_0x164a8a(0x152)],'key':_0x57e653,'tags':_0x179fda??_0x5a4980?.['tags'],'hasValue':!![]});return asAppConfigDryRunResult(buildMutationData({'operation':_0x4d2eb1,'appCode':_0x550de[_0x164a8a(0x152)],'key':_0x57e653,'before':_0x34d64b,'after':_0x58a4b0,'dryRun':!![]}),{'method':_0x164a8a(0x153),'url':_0x4d2eb1==='update'?UPDATE_PATH:CREATE_PATH});},async 'execute'(_0x4e23f1){const _0x21b38c=a28_0x17273f,_0x1f88d2=readKeyArg(_0x4e23f1),_0x1a18cc=readOptionalTags(_0x4e23f1),_0x1542fe=await withAppConfigApiBoundary(_0x21b38c(0x14a),{'appCode':_0x4e23f1[_0x21b38c(0x152)],'key':_0x1f88d2},()=>getAppConfigByKey(_0x4e23f1[_0x21b38c(0x152)],_0x1f88d2)),_0x17413c=_0x1542fe?projectAppConfig(_0x1542fe):null,_0xb61f5a=_0x1542fe?_0x21b38c(0x14e):_0x21b38c(0x14c),{value:_0x576b89,warnings:_0x437f48}=await readAppConfigValue(_0x4e23f1),_0x49320a={'appCode':_0x4e23f1[_0x21b38c(0x152)],'key':_0x1f88d2,'value':_0x576b89,'tags':_0x1a18cc??_0x1542fe?.[_0x21b38c(0x14f)]??undefined};await withAppConfigApiBoundary(_0xb61f5a,{'appCode':_0x4e23f1['appCode'],'key':_0x1f88d2},async()=>{_0x1542fe?await updateAppConfig({..._0x49320a,'id':requireAppConfigId(_0x1542fe,_0x1f88d2,_0x4e23f1['appCode'])}):await createAppConfig(_0x49320a);});const _0x2dd118=await withAppConfigApiBoundary(_0x21b38c(0x14a),{'appCode':_0x4e23f1[_0x21b38c(0x152)],'key':_0x1f88d2},()=>getAppConfigByKey(_0x4e23f1[_0x21b38c(0x152)],_0x1f88d2)),_0x36a9d9=_0x2dd118?projectAppConfig(_0x2dd118):plannedAppConfig({'appCode':_0x4e23f1[_0x21b38c(0x152)],'key':_0x1f88d2,'tags':_0x49320a[_0x21b38c(0x14f)],'hasValue':_0x576b89!==''});return{'ok':!![],'data':buildMutationData({'operation':_0xb61f5a,'appCode':_0x4e23f1[_0x21b38c(0x152)],'key':_0x1f88d2,'before':_0x17413c,'after':_0x36a9d9,'dryRun':![],'warnings':_0x437f48}),'message':(_0xb61f5a==='update'?_0x21b38c(0x149):_0x21b38c(0x146))+_0x21b38c(0x13a)+_0x1f88d2};}};function requireAppConfigId(_0x4bac5e,_0x2d821f,_0x2283f5){const _0xb7b8b6=a28_0x17273f;if(typeof _0x4bac5e['id']===_0xb7b8b6(0x144)&&Number[_0xb7b8b6(0x150)](_0x4bac5e['id'])&&_0x4bac5e['id']>0x0)return _0x4bac5e['id'];throw CliErrors[_0xb7b8b6(0x13c)](_0xb7b8b6(0x139)+_0x2d821f+_0xb7b8b6(0x145)+_0x2283f5);}
@@ -1 +1 @@
1
- const a29_0x1b2bd3=a29_0x2edc;(function(_0x5d878,_0x1f435a){const _0xaba202=a29_0x2edc,_0xf2b7f3=_0x5d878();while(!![]){try{const _0x1f33a9=-parseInt(_0xaba202(0x1bb))/0x1*(parseInt(_0xaba202(0x1df))/0x2)+parseInt(_0xaba202(0x1cc))/0x3+parseInt(_0xaba202(0x1bd))/0x4+-parseInt(_0xaba202(0x1c6))/0x5*(-parseInt(_0xaba202(0x1c0))/0x6)+-parseInt(_0xaba202(0x1dc))/0x7*(-parseInt(_0xaba202(0x1a5))/0x8)+parseInt(_0xaba202(0x1d0))/0x9+-parseInt(_0xaba202(0x1a7))/0xa;if(_0x1f33a9===_0x1f435a)break;else _0xf2b7f3['push'](_0xf2b7f3['shift']());}catch(_0x101115){_0xf2b7f3['push'](_0xf2b7f3['shift']());}}}(a29_0x401d,0xc6f29));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x1b2bd3(0x1b4),'description':a29_0x1b2bd3(0x1c4),'required':!![]};export const VALUE_ARG={'name':'value','description':'Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','required':![]};export const TAGS_FLAG={'name':a29_0x1b2bd3(0x1c9),'type':a29_0x1b2bd3(0x1d5),'description':a29_0x1b2bd3(0x1b8)};export const STDIN_FLAG={'name':'stdin','type':a29_0x1b2bd3(0x1b9),'description':a29_0x1b2bd3(0x1b1),'default':![]};export const FROM_ENV_FLAG={'name':a29_0x1b2bd3(0x1d9),'type':'string','description':a29_0x1b2bd3(0x1cb)};export const REVEAL_FLAG={'name':'reveal','type':a29_0x1b2bd3(0x1b9),'description':a29_0x1b2bd3(0x1cd),'default':![]};export function readKeyArg(_0x4a4a3f){const _0x39125b=a29_0x1b2bd3,_0x12d093=_0x4a4a3f[_0x39125b(0x1ae)][0x0]?.[_0x39125b(0x1af)]()??'';return validateKey(_0x12d093),_0x12d093;}export function readOptionalTags(_0x25675a){const _0x2b74f4=a29_0x1b2bd3,_0x485c93=_0x25675a[_0x2b74f4(0x1bc)]('tags')[_0x2b74f4(0x1af)]();if(!_0x485c93)return undefined;if(_0x485c93[_0x2b74f4(0x1da)]>0x20)throw CliErrors['validation'](_0x2b74f4(0x1b3));return _0x485c93;}export function validateKey(_0x2b7da3){const _0xcc603b=a29_0x1b2bd3;if(!_0x2b7da3)throw CliErrors[_0xcc603b(0x1ca)](_0xcc603b(0x1b0));if(_0x2b7da3[_0xcc603b(0x1da)]>0x100)throw CliErrors[_0xcc603b(0x1ca)]('App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.');}export function projectAppConfig(_0x5d2868,_0x4bfd14){const _0x1aa382=a29_0x1b2bd3,_0x30b738=_0x5d2868[_0x1aa382(0x1aa)]!==undefined&&_0x5d2868['value']!==null&&_0x5d2868[_0x1aa382(0x1aa)]!=='',_0x2d6f8d={'appCode':_0x5d2868['appCode'],'key':_0x5d2868[_0x1aa382(0x1b4)],'tags':_0x5d2868[_0x1aa382(0x1c9)]??undefined,'hasValue':_0x30b738,'valueRedacted':_0x30b738&&!_0x4bfd14?.[_0x1aa382(0x1a9)],'gmtCreate':_0x5d2868[_0x1aa382(0x1a2)],'gmtModified':_0x5d2868['gmtModified']};return _0x4bfd14?.[_0x1aa382(0x1a9)]&&(_0x2d6f8d[_0x1aa382(0x1aa)]=_0x5d2868[_0x1aa382(0x1aa)]??'',_0x2d6f8d[_0x1aa382(0x1cf)]=![]),_0x2d6f8d;}function a29_0x2edc(_0x2408cf,_0x4b0732){_0x2408cf=_0x2408cf-0x1a1;const _0x401d4d=a29_0x401d();let _0x2edca5=_0x401d4d[_0x2408cf];return _0x2edca5;}export function plannedAppConfig(_0x1d40df){const _0x182de5=a29_0x1b2bd3,_0x272c79=_0x1d40df[_0x182de5(0x1ac)]??!![];return{'appCode':_0x1d40df['appCode'],'key':_0x1d40df[_0x182de5(0x1b4)],'tags':_0x1d40df[_0x182de5(0x1c9)]??undefined,'hasValue':_0x272c79,'valueRedacted':_0x272c79};}export function buildMutationData(_0x1d3c65){const _0x515774=a29_0x1b2bd3;return{'operation':_0x1d3c65[_0x515774(0x1ad)],'selector':{'appCode':_0x1d3c65[_0x515774(0x1a3)],'key':_0x1d3c65[_0x515774(0x1b4)]},'before':_0x1d3c65[_0x515774(0x1c7)],'after':_0x1d3c65[_0x515774(0x1e1)],'dryRun':_0x1d3c65[_0x515774(0x1a4)],'warnings':_0x1d3c65[_0x515774(0x1c5)]??[]};}export async function withAppConfigApiBoundary(_0x2adb24,_0x19547d,_0x33983a){const _0x1de802=a29_0x1b2bd3;try{return await _0x33983a();}catch{const _0x39207d=[_0x1de802(0x1d7)+_0x19547d[_0x1de802(0x1a3)]];if(_0x19547d[_0x1de802(0x1b4)])_0x39207d[_0x1de802(0x1c2)](_0x1de802(0x1d3)+_0x19547d[_0x1de802(0x1b4)]);_0x39207d[_0x1de802(0x1c2)](_0x1de802(0x1d6));throw CliErrors['apiError'](_0x1de802(0x1db)+_0x2adb24+_0x1de802(0x1d2),_0x39207d[_0x1de802(0x1a1)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x32aa80,_0x365d15){const _0x1100f2=a29_0x1b2bd3;return Object['defineProperties'](_0x32aa80,{'method':{'value':_0x365d15[_0x1100f2(0x1dd)],'enumerable':![]},'url':{'value':_0x365d15[_0x1100f2(0x1c3)],'enumerable':![]}});}export function assertSingleValueSource(_0x5195a6){const _0x3c85c1=a29_0x1b2bd3,_0x521714=[];_0x5195a6[_0x3c85c1(0x1ae)][_0x3c85c1(0x1da)]>0x1&&_0x521714[_0x3c85c1(0x1c2)]({'kind':'argument','value':_0x5195a6['args'][_0x3c85c1(0x1d4)](0x1)[_0x3c85c1(0x1a1)]('\x20')});const _0x51c58b=_0x5195a6[_0x3c85c1(0x1ba)](_0x3c85c1(0x1aa));_0x51c58b!==undefined&&_0x51c58b!==null&&_0x521714['push']({'kind':_0x3c85c1(0x1a8),'value':String(_0x51c58b)});_0x5195a6[_0x3c85c1(0x1ab)](_0x3c85c1(0x1a6))&&_0x521714[_0x3c85c1(0x1c2)]({'kind':_0x3c85c1(0x1a6)});const _0x4878cb=_0x5195a6[_0x3c85c1(0x1bc)](_0x3c85c1(0x1d9))[_0x3c85c1(0x1af)]();_0x4878cb&&_0x521714['push']({'kind':'env','name':_0x4878cb});const _0x1e9f89=_0x5195a6[_0x3c85c1(0x1bc)](_0x3c85c1(0x1be))[_0x3c85c1(0x1af)]();_0x1e9f89&&_0x521714[_0x3c85c1(0x1c2)]({'kind':_0x3c85c1(0x1be),'path':_0x1e9f89});if(_0x521714[_0x3c85c1(0x1da)]===0x0)throw CliErrors[_0x3c85c1(0x1ca)]('Missing\x20app-config\x20value\x20source.','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.');if(_0x521714[_0x3c85c1(0x1da)]>0x1)throw CliErrors[_0x3c85c1(0x1ca)](_0x3c85c1(0x1b6),_0x3c85c1(0x1ce));return _0x521714[0x0];}export async function assertValueSourceReadable(_0x4f1ce4){const _0x592593=a29_0x1b2bd3;if(_0x4f1ce4[_0x592593(0x1bf)]===_0x592593(0x1d1)&&!(_0x4f1ce4[_0x592593(0x1de)]in process.env))throw CliErrors['validation'](_0x592593(0x1b5)+_0x4f1ce4[_0x592593(0x1de)]);if(_0x4f1ce4[_0x592593(0x1bf)]===_0x592593(0x1be))try{await access(_0x4f1ce4[_0x592593(0x1c8)]);}catch{throw CliErrors[_0x592593(0x1ca)]('Value\x20file\x20is\x20not\x20readable:\x20'+_0x4f1ce4[_0x592593(0x1c8)]);}}export async function readAppConfigValue(_0x529e0c){const _0x161eb4=a29_0x1b2bd3,_0xb13eef=assertSingleValueSource(_0x529e0c),_0x20c519=[];if(_0xb13eef[_0x161eb4(0x1bf)]===_0x161eb4(0x1a8))return _0x20c519[_0x161eb4(0x1c2)](_0x161eb4(0x1d8)),{'value':_0xb13eef[_0x161eb4(0x1aa)]??'','source':_0xb13eef[_0x161eb4(0x1bf)],'warnings':_0x20c519};if(_0xb13eef['kind']===_0x161eb4(0x1a6))return{'value':await readStdin(),'source':_0xb13eef['kind'],'warnings':_0x20c519};if(_0xb13eef['kind']===_0x161eb4(0x1d1)){if(!(_0xb13eef[_0x161eb4(0x1de)]in process.env))throw CliErrors[_0x161eb4(0x1ca)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0xb13eef[_0x161eb4(0x1de)]);return{'value':process.env[_0xb13eef.name]??'','source':_0xb13eef['kind'],'warnings':_0x20c519};}return{'value':await readFile(_0xb13eef[_0x161eb4(0x1c8)],'utf8'),'source':_0xb13eef[_0x161eb4(0x1bf)],'warnings':_0x20c519};}function a29_0x401d(){const _0x592513=['kind','12Fqwneh','end','push','url','Runtime\x20app-config\x20key','warnings','3335935bAHyiZ','before','path','tags','validation','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','900669csgOCc','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','valueRedacted','354510pbNWKE','env','\x20app\x20config.','key:\x20','slice','string','value\x20is\x20redacted','appCode:\x20','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','from-env','length','Failed\x20to\x20','99708caJGmU','method','name','136cggZyr','setEncoding','after','join','gmtCreate','appCode','dryRun','64kRIWTY','stdin','17427520HgQEZe','argument','reveal','value','bool','hasValue','operation','args','trim','Missing\x20app-config\x20key.','Read\x20config\x20value\x20from\x20stdin','data','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','key','Environment\x20variable\x20is\x20not\x20set:\x20','App\x20config\x20value\x20source\x20is\x20ambiguous.','error','Config\x20tags\x20for\x20filtering/display\x20metadata','boolean','flag','10834OgIrfJ','str','6025656vKUSqz','file'];a29_0x401d=function(){return _0x592513;};return a29_0x401d();}function readStdin(){return new Promise((_0x38e539,_0x15283f)=>{const _0x2e7045=a29_0x2edc;let _0x3c86b2='';process[_0x2e7045(0x1a6)][_0x2e7045(0x1e0)]('utf8'),process['stdin']['on'](_0x2e7045(0x1b2),_0x578990=>{_0x3c86b2+=_0x578990;}),process['stdin']['once'](_0x2e7045(0x1c1),()=>_0x38e539(_0x3c86b2)),process[_0x2e7045(0x1a6)]['once'](_0x2e7045(0x1b7),_0x15283f);});}
1
+ const a29_0x335365=a29_0x582f;(function(_0x4ede35,_0x115ef3){const _0x24ad61=a29_0x582f,_0x22b0ba=_0x4ede35();while(!![]){try{const _0x3bcd79=-parseInt(_0x24ad61(0x1f6))/0x1+-parseInt(_0x24ad61(0x1d2))/0x2*(-parseInt(_0x24ad61(0x1f9))/0x3)+-parseInt(_0x24ad61(0x1f7))/0x4*(-parseInt(_0x24ad61(0x1e0))/0x5)+-parseInt(_0x24ad61(0x1de))/0x6*(-parseInt(_0x24ad61(0x201))/0x7)+parseInt(_0x24ad61(0x1c5))/0x8+-parseInt(_0x24ad61(0x1cd))/0x9*(parseInt(_0x24ad61(0x1c1))/0xa)+parseInt(_0x24ad61(0x1cb))/0xb*(-parseInt(_0x24ad61(0x1c9))/0xc);if(_0x3bcd79===_0x115ef3)break;else _0x22b0ba['push'](_0x22b0ba['shift']());}catch(_0x42874c){_0x22b0ba['push'](_0x22b0ba['shift']());}}}(a29_0x5d39,0x80866));import{access,readFile}from'node:fs/promises';import{CliErrors}from'../../errors.js';export const KEY_ARG={'name':a29_0x335365(0x200),'description':a29_0x335365(0x1fc),'required':!![]};export const VALUE_ARG={'name':'value','description':a29_0x335365(0x1d4),'required':![]};export const TAGS_FLAG={'name':'tags','type':a29_0x335365(0x1cc),'description':a29_0x335365(0x1ef)};export const STDIN_FLAG={'name':a29_0x335365(0x1d6),'type':a29_0x335365(0x1e7),'description':'Read\x20config\x20value\x20from\x20stdin','default':![]};export const FROM_ENV_FLAG={'name':'from-env','type':'string','description':a29_0x335365(0x1c2)};export const REVEAL_FLAG={'name':a29_0x335365(0x1bf),'type':'boolean','description':a29_0x335365(0x1f4),'default':![]};export function readKeyArg(_0x2f4d76){const _0xcd19ce=a29_0x335365,_0x58689e=_0x2f4d76[_0xcd19ce(0x1f2)][0x0]?.[_0xcd19ce(0x1e1)]()??'';return validateKey(_0x58689e),_0x58689e;}export function readOptionalTags(_0xed8530){const _0xf1af25=a29_0x335365,_0x3e444c=_0xed8530[_0xf1af25(0x1f5)](_0xf1af25(0x1c3))[_0xf1af25(0x1e1)]();if(!_0x3e444c)return undefined;if(_0x3e444c[_0xf1af25(0x1fe)]>0x20)throw CliErrors[_0xf1af25(0x1e8)](_0xf1af25(0x1e9));return _0x3e444c;}export function validateKey(_0xf3880c){const _0x34127e=a29_0x335365;if(!_0xf3880c)throw CliErrors['validation'](_0x34127e(0x1d0));if(_0xf3880c[_0x34127e(0x1fe)]>0x100)throw CliErrors[_0x34127e(0x1e8)](_0x34127e(0x1c7));}export function projectAppConfig(_0x476bb6,_0x28ba97){const _0x240221=a29_0x335365,_0x1eaf0e=_0x476bb6[_0x240221(0x1df)]!==undefined&&_0x476bb6[_0x240221(0x1df)]!==null&&_0x476bb6[_0x240221(0x1df)]!=='',_0x23cf77={'appCode':_0x476bb6['appCode'],'key':_0x476bb6['key'],'tags':_0x476bb6[_0x240221(0x1c3)]??undefined,'hasValue':_0x1eaf0e,'valueRedacted':_0x1eaf0e&&!_0x28ba97?.['reveal'],'gmtCreate':_0x476bb6[_0x240221(0x1e6)],'gmtModified':_0x476bb6[_0x240221(0x1f8)]};return _0x28ba97?.[_0x240221(0x1bf)]&&(_0x23cf77[_0x240221(0x1df)]=_0x476bb6[_0x240221(0x1df)]??'',_0x23cf77[_0x240221(0x1cf)]=![]),_0x23cf77;}export function plannedAppConfig(_0x3241be){const _0x51e9ce=a29_0x335365,_0x135503=_0x3241be[_0x51e9ce(0x1d5)]??!![];return{'appCode':_0x3241be[_0x51e9ce(0x1f3)],'key':_0x3241be['key'],'tags':_0x3241be[_0x51e9ce(0x1c3)]??undefined,'hasValue':_0x135503,'valueRedacted':_0x135503};}export function buildMutationData(_0x11641a){const _0x5c6a58=a29_0x335365;return{'operation':_0x11641a['operation'],'selector':{'appCode':_0x11641a[_0x5c6a58(0x1f3)],'key':_0x11641a[_0x5c6a58(0x200)]},'before':_0x11641a[_0x5c6a58(0x1ec)],'after':_0x11641a[_0x5c6a58(0x1c6)],'dryRun':_0x11641a['dryRun'],'warnings':_0x11641a[_0x5c6a58(0x1e3)]??[]};}export async function withAppConfigApiBoundary(_0x4475f8,_0x2688c8,_0x4d8eb0){const _0x2b45da=a29_0x335365;try{return await _0x4d8eb0();}catch{const _0x17c9a2=[_0x2b45da(0x202)+_0x2688c8[_0x2b45da(0x1f3)]];if(_0x2688c8[_0x2b45da(0x200)])_0x17c9a2['push'](_0x2b45da(0x1fb)+_0x2688c8[_0x2b45da(0x200)]);_0x17c9a2[_0x2b45da(0x1f1)](_0x2b45da(0x1ed));throw CliErrors[_0x2b45da(0x1d9)]('Failed\x20to\x20'+_0x4475f8+'\x20app\x20config.',_0x17c9a2[_0x2b45da(0x1ca)](';\x20')+'.');}}export function asAppConfigDryRunResult(_0x2282e5,_0x3f6d8d){const _0x3ad301=a29_0x335365;return Object['defineProperties'](_0x2282e5,{'method':{'value':_0x3f6d8d[_0x3ad301(0x1f0)],'enumerable':![]},'url':{'value':_0x3f6d8d[_0x3ad301(0x1eb)],'enumerable':![]}});}function a29_0x5d39(){const _0x458fdc=['value','145jjgBjt','trim','file','warnings','path','name','gmtCreate','boolean','validation','App\x20config\x20tags\x20length\x20cannot\x20exceed\x2032.','env','url','before','value\x20is\x20redacted','flag','Config\x20tags\x20for\x20filtering/display\x20metadata','method','push','args','appCode','Reveal\x20the\x20sensitive\x20value\x20for\x20this\x20single\x20key','str','53366KBdhjK','143236rbmXiy','gmtModified','3ieyvVe','Value\x20was\x20provided\x20as\x20a\x20command\x20argument;\x20prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','key:\x20','Runtime\x20app-config\x20key','utf8','length','argument','key','791ixRUPo','appCode:\x20','reveal','slice','10FOZqUr','Read\x20config\x20value\x20from\x20the\x20named\x20environment\x20variable','tags','setEncoding','7860856xQdzcv','after','App\x20config\x20key\x20length\x20cannot\x20exceed\x20256.','end','26661108OslNPV','join','11NuABJJ','string','4022577vYwaag','Use\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','valueRedacted','Missing\x20app-config\x20key.','Environment\x20variable\x20is\x20not\x20set:\x20','2041090XWLslq','error','Sensitive\x20config\x20value.\x20Prefer\x20--stdin,\x20--from-env,\x20or\x20--file\x20for\x20secrets.','hasValue','stdin','data','bool','apiError','kind','Use\x20exactly\x20one\x20of:\x20positional\x20<value>,\x20--stdin,\x20--from-env\x20<NAME>,\x20or\x20--file\x20<path>.','from-env','Missing\x20app-config\x20value\x20source.','10986MnEboO'];a29_0x5d39=function(){return _0x458fdc;};return a29_0x5d39();}export function assertSingleValueSource(_0x3bef75){const _0x3fc21b=a29_0x335365,_0x5b1ce2=[];_0x3bef75[_0x3fc21b(0x1f2)][_0x3fc21b(0x1fe)]>0x1&&_0x5b1ce2['push']({'kind':_0x3fc21b(0x1ff),'value':_0x3bef75[_0x3fc21b(0x1f2)][_0x3fc21b(0x1c0)](0x1)['join']('\x20')});const _0x22cd0b=_0x3bef75[_0x3fc21b(0x1ee)](_0x3fc21b(0x1df));_0x22cd0b!==undefined&&_0x22cd0b!==null&&_0x5b1ce2[_0x3fc21b(0x1f1)]({'kind':'argument','value':String(_0x22cd0b)});_0x3bef75[_0x3fc21b(0x1d8)](_0x3fc21b(0x1d6))&&_0x5b1ce2[_0x3fc21b(0x1f1)]({'kind':'stdin'});const _0x10878d=_0x3bef75[_0x3fc21b(0x1f5)](_0x3fc21b(0x1dc))['trim']();_0x10878d&&_0x5b1ce2['push']({'kind':'env','name':_0x10878d});const _0x12d8e0=_0x3bef75[_0x3fc21b(0x1f5)](_0x3fc21b(0x1e2))[_0x3fc21b(0x1e1)]();_0x12d8e0&&_0x5b1ce2[_0x3fc21b(0x1f1)]({'kind':_0x3fc21b(0x1e2),'path':_0x12d8e0});if(_0x5b1ce2['length']===0x0)throw CliErrors[_0x3fc21b(0x1e8)](_0x3fc21b(0x1dd),_0x3fc21b(0x1ce));if(_0x5b1ce2['length']>0x1)throw CliErrors[_0x3fc21b(0x1e8)]('App\x20config\x20value\x20source\x20is\x20ambiguous.',_0x3fc21b(0x1db));return _0x5b1ce2[0x0];}function a29_0x582f(_0x5365a4,_0x2d0373){_0x5365a4=_0x5365a4-0x1bf;const _0x5d393a=a29_0x5d39();let _0x582fb8=_0x5d393a[_0x5365a4];return _0x582fb8;}export async function assertValueSourceReadable(_0x121593){const _0x4b5e26=a29_0x335365;if(_0x121593['kind']===_0x4b5e26(0x1ea)&&!(_0x121593['name']in process.env))throw CliErrors[_0x4b5e26(0x1e8)](_0x4b5e26(0x1d1)+_0x121593[_0x4b5e26(0x1e5)]);if(_0x121593['kind']===_0x4b5e26(0x1e2))try{await access(_0x121593[_0x4b5e26(0x1e4)]);}catch{throw CliErrors[_0x4b5e26(0x1e8)]('Value\x20file\x20is\x20not\x20readable:\x20'+_0x121593[_0x4b5e26(0x1e4)]);}}export async function readAppConfigValue(_0x1e8c8e){const _0x2a922f=a29_0x335365,_0x29d78b=assertSingleValueSource(_0x1e8c8e),_0x260cf4=[];if(_0x29d78b[_0x2a922f(0x1da)]===_0x2a922f(0x1ff))return _0x260cf4[_0x2a922f(0x1f1)](_0x2a922f(0x1fa)),{'value':_0x29d78b[_0x2a922f(0x1df)]??'','source':_0x29d78b['kind'],'warnings':_0x260cf4};if(_0x29d78b[_0x2a922f(0x1da)]==='stdin')return{'value':await readStdin(),'source':_0x29d78b[_0x2a922f(0x1da)],'warnings':_0x260cf4};if(_0x29d78b[_0x2a922f(0x1da)]===_0x2a922f(0x1ea)){if(!(_0x29d78b[_0x2a922f(0x1e5)]in process.env))throw CliErrors[_0x2a922f(0x1e8)]('Environment\x20variable\x20is\x20not\x20set:\x20'+_0x29d78b['name']);return{'value':process.env[_0x29d78b.name]??'','source':_0x29d78b['kind'],'warnings':_0x260cf4};}return{'value':await readFile(_0x29d78b[_0x2a922f(0x1e4)],_0x2a922f(0x1fd)),'source':_0x29d78b[_0x2a922f(0x1da)],'warnings':_0x260cf4};}function readStdin(){return new Promise((_0x578eab,_0x4282c5)=>{const _0x2f1ea8=a29_0x582f;let _0x4bbe2c='';process['stdin'][_0x2f1ea8(0x1c4)](_0x2f1ea8(0x1fd)),process[_0x2f1ea8(0x1d6)]['on'](_0x2f1ea8(0x1d7),_0x1b750b=>{_0x4bbe2c+=_0x1b750b;}),process['stdin']['once'](_0x2f1ea8(0x1c8),()=>_0x578eab(_0x4bbe2c)),process[_0x2f1ea8(0x1d6)]['once'](_0x2f1ea8(0x1d3),_0x4282c5);});}
@@ -1 +1 @@
1
- const a30_0x4f91be=a30_0x8840;(function(_0x314e5e,_0x219418){const _0x14dc0f=a30_0x8840,_0x2b3611=_0x314e5e();while(!![]){try{const _0x4265f5=parseInt(_0x14dc0f(0x11f))/0x1*(parseInt(_0x14dc0f(0x129))/0x2)+-parseInt(_0x14dc0f(0x127))/0x3*(parseInt(_0x14dc0f(0x123))/0x4)+parseInt(_0x14dc0f(0x130))/0x5*(-parseInt(_0x14dc0f(0x125))/0x6)+-parseInt(_0x14dc0f(0x126))/0x7*(parseInt(_0x14dc0f(0x12e))/0x8)+-parseInt(_0x14dc0f(0x117))/0x9+-parseInt(_0x14dc0f(0x11c))/0xa*(parseInt(_0x14dc0f(0x12d))/0xb)+-parseInt(_0x14dc0f(0x121))/0xc*(-parseInt(_0x14dc0f(0x120))/0xd);if(_0x4265f5===_0x219418)break;else _0x2b3611['push'](_0x2b3611['shift']());}catch(_0x4aa482){_0x2b3611['push'](_0x2b3611['shift']());}}}(a30_0x55f0,0x95bd2));function a30_0x55f0(){const _0x1b9970=['login','4ONlhLx','auth','1517574pzNoUs','1857877cBJmmD','1330386BQBzts','../../auth/auth-server-ui.js','12638rqbXZJ','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','boolean','bool','627oZIyZn','24eNTUsR','Clear\x20login\x20session','20qiTamj','Login\x20via\x20browser','5921847TFCEcX','log','!\x20Not\x20logged\x20in','nonInteractive','yes','142610WvdSFz','✓\x20Logged\x20out','write','43HBKmxq','2431yVaEmC','260784pFPcIe'];a30_0x55f0=function(){return _0x1b9970;};return a30_0x55f0();}import{unlinkSync,existsSync}from'node:fs';function a30_0x8840(_0x4ceb20,_0x2e037a){_0x4ceb20=_0x4ceb20-0x117;const _0x55f09b=a30_0x55f0();let _0x8840cb=_0x55f09b[_0x4ceb20];return _0x8840cb;}import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':a30_0x4f91be(0x124),'command':a30_0x4f91be(0x122),'description':a30_0x4f91be(0x131),'risk':a30_0x4f91be(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x4f91be(0x11b),'type':a30_0x4f91be(0x12b),'description':a30_0x4f91be(0x12a),'default':![]}],async 'execute'(_0x384fd6){const _0x154d6a=a30_0x4f91be,{runAuthServer:_0x51ad8e}=await import(_0x154d6a(0x128));return await _0x51ad8e({'autoYes':_0x384fd6[_0x154d6a(0x12c)](_0x154d6a(0x11b)),'nonInteractive':_0x384fd6[_0x154d6a(0x11a)]}),{'ok':!![]};}},{'service':a30_0x4f91be(0x124),'command':'logout','description':a30_0x4f91be(0x12f),'risk':a30_0x4f91be(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x797b9c){const _0x447083=a30_0x4f91be;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x447083(0x118)](_0x447083(0x11d))):console['log'](_0x447083(0x119)),{'ok':!![]};}}];
1
+ const a30_0x281baa=a30_0x238b;(function(_0x427bc0,_0xa5d5f6){const _0x243cd8=a30_0x238b,_0x473f9c=_0x427bc0();while(!![]){try{const _0x49cba1=parseInt(_0x243cd8(0x164))/0x1*(-parseInt(_0x243cd8(0x15b))/0x2)+parseInt(_0x243cd8(0x15c))/0x3+-parseInt(_0x243cd8(0x16e))/0x4*(parseInt(_0x243cd8(0x15a))/0x5)+-parseInt(_0x243cd8(0x15f))/0x6*(-parseInt(_0x243cd8(0x159))/0x7)+parseInt(_0x243cd8(0x170))/0x8*(parseInt(_0x243cd8(0x162))/0x9)+-parseInt(_0x243cd8(0x163))/0xa+-parseInt(_0x243cd8(0x161))/0xb*(-parseInt(_0x243cd8(0x166))/0xc);if(_0x49cba1===_0xa5d5f6)break;else _0x473f9c['push'](_0x473f9c['shift']());}catch(_0x523119){_0x473f9c['push'](_0x473f9c['shift']());}}}(a30_0x59a2,0x1bb6e));import{unlinkSync,existsSync}from'node:fs';function a30_0x59a2(){const _0x54eb8b=['156316VWOgSb','225582xOgikV','bool','Skip\x20login\x20confirmation\x20and\x20start\x20browser\x20auth\x20immediately','260448djHOYi','log','1133vAdodF','36mJBKUU','560150sHlbRm','1gWjOtF','nonInteractive','3516QKbDcV','✓\x20Logged\x20out','!\x20Not\x20logged\x20in','Login\x20via\x20browser','yes','Clear\x20login\x20session','boolean','login','4dGuoYo','../../auth/auth-server-ui.js','156888fIkCWH','logout','write','auth','35HIxaRb','765830MGskLS'];a30_0x59a2=function(){return _0x54eb8b;};return a30_0x59a2();}function a30_0x238b(_0x2f3dfc,_0x41c69e){_0x2f3dfc=_0x2f3dfc-0x158;const _0x59a2bd=a30_0x59a2();let _0x238b83=_0x59a2bd[_0x2f3dfc];return _0x238b83;}import{cookieFile}from'../../auth/constant.js';export const authDefinitions=[{'service':a30_0x281baa(0x158),'command':a30_0x281baa(0x16d),'description':a30_0x281baa(0x169),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[{'name':a30_0x281baa(0x16a),'type':a30_0x281baa(0x16c),'description':a30_0x281baa(0x15e),'default':![]}],async 'execute'(_0x1fc4a4){const _0x4313f6=a30_0x281baa,{runAuthServer:_0x233c4b}=await import(_0x4313f6(0x16f));return await _0x233c4b({'autoYes':_0x1fc4a4[_0x4313f6(0x15d)](_0x4313f6(0x16a)),'nonInteractive':_0x1fc4a4[_0x4313f6(0x165)]}),{'ok':!![]};}},{'service':a30_0x281baa(0x158),'command':a30_0x281baa(0x171),'description':a30_0x281baa(0x16b),'risk':a30_0x281baa(0x172),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2f85f3){const _0x18cf2f=a30_0x281baa;return existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x18cf2f(0x160)](_0x18cf2f(0x167))):console['log'](_0x18cf2f(0x168)),{'ok':!![]};}}];