@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
- (function(_0x52e704,_0x4fa89e){const _0x1d27c4=a44_0x1634,_0x5a2658=_0x52e704();while(!![]){try{const _0x256c62=parseInt(_0x1d27c4(0x190))/0x1+-parseInt(_0x1d27c4(0x184))/0x2+-parseInt(_0x1d27c4(0x180))/0x3*(-parseInt(_0x1d27c4(0x170))/0x4)+parseInt(_0x1d27c4(0x186))/0x5+-parseInt(_0x1d27c4(0x178))/0x6*(-parseInt(_0x1d27c4(0x18f))/0x7)+-parseInt(_0x1d27c4(0x179))/0x8*(-parseInt(_0x1d27c4(0x169))/0x9)+-parseInt(_0x1d27c4(0x189))/0xa*(parseInt(_0x1d27c4(0x187))/0xb);if(_0x256c62===_0x4fa89e)break;else _0x5a2658['push'](_0x5a2658['shift']());}catch(_0x806e56){_0x5a2658['push'](_0x5a2658['shift']());}}}(a44_0x5a56,0x543b1));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';function a44_0x5a56(){const _0x5b3907=['Updated','7kZDaki','24761JoRcAu','Missing\x20app\x20name.','args','trim','App\x20\x22','\x20Note:\x20app\x20\x22','\x22\x20still\x20defined\x20in\x20','45TkehQO','App\x20code','\x20Default\x20app\x20is\x20\x22','\x20Default\x20app\x20changed\x20to\x20\x22','Use\x20global\x20config\x20scope','\x20<name>\x20--appcode\x20<code>','length','232RHoKAl','validation','appcode','\x20<name>','global','\x22\x20not\x20found.','bool','defaultApp','1941054SfIUuY','552664cifbDu','projectConfig','project','Usage:\x20','object','boolean','\x22\x20is\x20selected\x20automatically.','8469Obodhi','Removed\x20app\x20\x22','keys','string','453644RRZoew','apps','3422845OvSScw','10671727soNByQ','str','10CGMuRJ','\x22\x20(appcode:\x20','flagMissing','\x20Remaining\x20app\x20\x22','\x20config.'];a44_0x5a56=function(){return _0x5b3907;};return a44_0x5a56();}function a44_0x1634(_0x3bc86c,_0x21833c){_0x3bc86c=_0x3bc86c-0x163;const _0x5a5623=a44_0x5a56();let _0x1634eb=_0x5a5623[_0x3bc86c];return _0x1634eb;}export function buildAppAddFlags(){const _0x5f04bc=a44_0x1634;return[{'name':_0x5f04bc(0x172),'type':'string','description':_0x5f04bc(0x16a),'required':!![]},{'name':'global','type':_0x5f04bc(0x17e),'description':'Use\x20global\x20config\x20scope','default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x49ba8e=a44_0x1634;return[{'name':'global','type':'boolean','description':_0x49ba8e(0x16d),'default':![]}];}export async function validateAppName(_0x4e08c4,_0x36df0d){const _0x33d052=a44_0x1634,_0x166e99=_0x4e08c4[_0x33d052(0x164)][0x0]?.['trim']();if(!_0x166e99)throw CliErrors[_0x33d052(0x171)]('Missing\x20app\x20name.',_0x33d052(0x17c)+CLI_BIN_NAME+'\x20'+_0x36df0d+_0x33d052(0x173));}export async function runAppAdd(_0x5ef4ef,_0x3604f5){const _0xb91080=a44_0x1634,_0x2970e5=_0x5ef4ef['args'][0x0]?.[_0xb91080(0x165)]();if(!_0x2970e5)throw CliErrors['validation'](_0xb91080(0x163),_0xb91080(0x17c)+CLI_BIN_NAME+'\x20'+_0x3604f5+_0xb91080(0x16e));const _0x4aea75=_0x5ef4ef[_0xb91080(0x188)](_0xb91080(0x172));if(!_0x4aea75)throw CliErrors[_0xb91080(0x18b)](_0xb91080(0x172),_0xb91080(0x17c)+CLI_BIN_NAME+'\x20'+_0x3604f5+_0xb91080(0x16e));const _0x131834={'global':_0x5ef4ef[_0xb91080(0x176)]('global')},_0x4a3181=readConfig(_0x131834);if(!_0x4a3181[_0xb91080(0x185)])_0x4a3181[_0xb91080(0x185)]={};const _0x3063f4={'appcode':_0x4aea75,...collectAppProfileOverrides(_0x1b2bca=>_0x5ef4ef['str'](_0x1b2bca))},_0x4b9667=_0x4a3181[_0xb91080(0x185)],_0x41788c=Object[_0xb91080(0x182)](_0x4b9667),_0x29a852=typeof _0x4a3181[_0xb91080(0x177)]===_0xb91080(0x183)&&_0x4b9667[_0x4a3181[_0xb91080(0x177)]]?_0x4a3181[_0xb91080(0x177)]:_0x41788c[_0xb91080(0x16f)]===0x1?_0x41788c[0x0]:undefined,_0x5a3769=!!_0x4b9667[_0x2970e5];_0x4b9667[_0x2970e5]=_0x3063f4;const _0x41e6e8=normalizeStoredDefaultApp(_0x4a3181,_0x29a852);writeConfig(_0x4a3181,_0x131834);const _0x55c333=!_0x5a3769&&_0x41e6e8?_0xb91080(0x16b)+_0x41e6e8+'\x22.':'',_0x4b9182=(_0x5a3769?_0xb91080(0x18e):'Added')+'\x20app\x20\x22'+_0x2970e5+_0xb91080(0x18a)+_0x4aea75+')'+scopeLabel(_0x131834)+'.'+_0x55c333;return{'ok':!![],'message':_0x4b9182};}export async function runAppRemove(_0x44b31,_0x1c7315){const _0x181400=a44_0x1634,_0x589966=_0x44b31['args'][0x0]?.[_0x181400(0x165)]();if(!_0x589966)throw CliErrors[_0x181400(0x171)]('Missing\x20app\x20name.',_0x181400(0x17c)+CLI_BIN_NAME+'\x20'+_0x1c7315+'\x20<name>\x20[--global]');const _0x4344a0=_0x44b31[_0x181400(0x176)]('global'),{config:_0x216a93,layers:_0x4d1d24}=readRawConfigWithLayers(),_0x2f5da5=_0x216a93[_0x181400(0x185)]??{};if(!_0x2f5da5[_0x589966])throw CliErrors['validation']('App\x20\x22'+_0x589966+_0x181400(0x175));const _0x30d6df=_0x4d1d24['globalConfig'][_0x181400(0x185)]&&typeof _0x4d1d24['globalConfig']['apps']==='object'?_0x4d1d24['globalConfig'][_0x181400(0x185)]:{},_0x449dea=_0x4d1d24[_0x181400(0x17a)][_0x181400(0x185)]&&typeof _0x4d1d24[_0x181400(0x17a)][_0x181400(0x185)]===_0x181400(0x17d)?_0x4d1d24['projectConfig'][_0x181400(0x185)]:{},_0x27b4bc=appDefinedIn(_0x589966,_0x30d6df,_0x449dea),_0x9c518d=resolveAppScopeForWrite(_0x589966,_0x4344a0,_0x4d1d24),_0x4db5d0={'global':_0x9c518d===_0x181400(0x174)},_0x3e6356=readConfig(_0x4db5d0),_0x21e753=_0x3e6356[_0x181400(0x185)];if(!_0x21e753||!_0x21e753[_0x589966])throw CliErrors[_0x181400(0x171)](_0x181400(0x166)+_0x589966+_0x181400(0x175));delete _0x21e753[_0x589966];let _0x383ee6='';const _0x1cc5d6=typeof _0x3e6356[_0x181400(0x177)]===_0x181400(0x183)?_0x3e6356['defaultApp']:undefined,_0x23cae5=Object['keys'](_0x21e753),_0x2ee6d8=_0x1cc5d6===_0x589966?_0x23cae5[0x0]:_0x1cc5d6,_0x4bfa3f=normalizeStoredDefaultApp(_0x3e6356,_0x2ee6d8);if(_0x1cc5d6===_0x589966&&_0x23cae5[_0x181400(0x16f)]===0x1)_0x383ee6=_0x181400(0x18c)+_0x23cae5[0x0]+_0x181400(0x17f);else _0x1cc5d6===_0x589966&&_0x4bfa3f&&(_0x383ee6=_0x181400(0x16c)+_0x4bfa3f+'\x22.');Object[_0x181400(0x182)](_0x21e753)[_0x181400(0x16f)]===0x0&&(delete _0x3e6356[_0x181400(0x185)],delete _0x3e6356['defaultApp']);writeConfig(_0x3e6356,_0x4db5d0);const _0x2f61e2=_0x27b4bc==='both'?_0x181400(0x167)+_0x589966+_0x181400(0x168)+(_0x9c518d===_0x181400(0x17b)?_0x181400(0x174):_0x181400(0x17b))+_0x181400(0x18d):'';return{'ok':!![],'message':_0x181400(0x181)+_0x589966+'\x22'+scopeLabel(_0x4db5d0)+'.'+_0x383ee6+_0x2f61e2};}
1
+ (function(_0x4bf99c,_0x3c6710){const _0x51a3b9=a44_0x129b,_0x1590c5=_0x4bf99c();while(!![]){try{const _0x30f500=parseInt(_0x51a3b9(0x1dd))/0x1*(-parseInt(_0x51a3b9(0x1f6))/0x2)+-parseInt(_0x51a3b9(0x1e4))/0x3+-parseInt(_0x51a3b9(0x1fe))/0x4*(-parseInt(_0x51a3b9(0x1f4))/0x5)+parseInt(_0x51a3b9(0x1ed))/0x6+parseInt(_0x51a3b9(0x1f7))/0x7*(-parseInt(_0x51a3b9(0x1d9))/0x8)+-parseInt(_0x51a3b9(0x1e3))/0x9*(parseInt(_0x51a3b9(0x1ea))/0xa)+parseInt(_0x51a3b9(0x1eb))/0xb;if(_0x30f500===_0x3c6710)break;else _0x1590c5['push'](_0x1590c5['shift']());}catch(_0x521301){_0x1590c5['push'](_0x1590c5['shift']());}}}(a44_0x453e,0xa72f9));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a44_0x129b(_0x1df281,_0xc04994){_0x1df281=_0x1df281-0x1d8;const _0x453efa=a44_0x453e();let _0x129b90=_0x453efa[_0x1df281];return _0x129b90;}function a44_0x453e(){const _0x348b2e=['Use\x20global\x20config\x20scope','projectConfig','32vesoYs','length','App\x20\x22','keys','Updated','\x20<name>\x20--appcode\x20<code>','global','\x22\x20still\x20defined\x20in\x20','trim','3113768ZIANqc','boolean','args','project','1EUfUOh','Removed\x20app\x20\x22','\x20app\x20\x22','\x20Note:\x20app\x20\x22','\x22\x20(appcode:\x20','validation','9YDQHTK','3176508UzMBzD','\x20Remaining\x20app\x20\x22','\x20<name>','defaultApp','\x20Default\x20app\x20changed\x20to\x20\x22','App\x20code','2771110sIKujD','25281047yorhFO','apps','8026146fzZKnB','Usage:\x20','string','Added','\x20Default\x20app\x20is\x20\x22','object','globalConfig','557565RxvvaA','appcode','2679338HqaIpr','21unoran','flagMissing','str','bool','\x22\x20not\x20found.'];a44_0x453e=function(){return _0x348b2e;};return a44_0x453e();}import{collectAppProfileOverrides,getAppProfileFlagDefs,normalizeStoredDefaultApp}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x33a84d=a44_0x129b;return[{'name':_0x33a84d(0x1f5),'type':_0x33a84d(0x1ef),'description':_0x33a84d(0x1e9),'required':!![]},{'name':_0x33a84d(0x204),'type':_0x33a84d(0x1da),'description':_0x33a84d(0x1fc),'default':![]},...getAppProfileFlagDefs()];}export function buildAppRemoveFlags(){const _0x25ff47=a44_0x129b;return[{'name':_0x25ff47(0x204),'type':'boolean','description':'Use\x20global\x20config\x20scope','default':![]}];}export async function validateAppName(_0xc57546,_0x461fbf){const _0x398c8a=a44_0x129b,_0x4c067c=_0xc57546[_0x398c8a(0x1db)][0x0]?.[_0x398c8a(0x1d8)]();if(!_0x4c067c)throw CliErrors[_0x398c8a(0x1e2)]('Missing\x20app\x20name.',_0x398c8a(0x1ee)+CLI_BIN_NAME+'\x20'+_0x461fbf+_0x398c8a(0x1e6));}export async function runAppAdd(_0x46f62c,_0x35bd22){const _0x5654a8=a44_0x129b,_0x27d258=_0x46f62c['args'][0x0]?.['trim']();if(!_0x27d258)throw CliErrors['validation']('Missing\x20app\x20name.',_0x5654a8(0x1ee)+CLI_BIN_NAME+'\x20'+_0x35bd22+'\x20<name>\x20--appcode\x20<code>');const _0x44fe7c=_0x46f62c[_0x5654a8(0x1f9)](_0x5654a8(0x1f5));if(!_0x44fe7c)throw CliErrors[_0x5654a8(0x1f8)](_0x5654a8(0x1f5),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x35bd22+_0x5654a8(0x203));const _0x254f80={'global':_0x46f62c[_0x5654a8(0x1fa)](_0x5654a8(0x204))},_0x18dab2=readConfig(_0x254f80);if(!_0x18dab2[_0x5654a8(0x1ec)])_0x18dab2[_0x5654a8(0x1ec)]={};const _0x546efc={'appcode':_0x44fe7c,...collectAppProfileOverrides(_0x59eeaf=>_0x46f62c[_0x5654a8(0x1f9)](_0x59eeaf))},_0x3d490c=_0x18dab2['apps'],_0x789da7=Object[_0x5654a8(0x201)](_0x3d490c),_0x1191f8=typeof _0x18dab2[_0x5654a8(0x1e7)]===_0x5654a8(0x1ef)&&_0x3d490c[_0x18dab2[_0x5654a8(0x1e7)]]?_0x18dab2['defaultApp']:_0x789da7['length']===0x1?_0x789da7[0x0]:undefined,_0x851cc7=!!_0x3d490c[_0x27d258];_0x3d490c[_0x27d258]=_0x546efc;const _0x2fd214=normalizeStoredDefaultApp(_0x18dab2,_0x1191f8);writeConfig(_0x18dab2,_0x254f80);const _0x371b4b=!_0x851cc7&&_0x2fd214?_0x5654a8(0x1f1)+_0x2fd214+'\x22.':'',_0x11b896=(_0x851cc7?_0x5654a8(0x202):_0x5654a8(0x1f0))+_0x5654a8(0x1df)+_0x27d258+_0x5654a8(0x1e1)+_0x44fe7c+')'+scopeLabel(_0x254f80)+'.'+_0x371b4b;return{'ok':!![],'message':_0x11b896};}export async function runAppRemove(_0x1fd18b,_0x49f321){const _0x4f85f1=a44_0x129b,_0x49720b=_0x1fd18b[_0x4f85f1(0x1db)][0x0]?.[_0x4f85f1(0x1d8)]();if(!_0x49720b)throw CliErrors[_0x4f85f1(0x1e2)]('Missing\x20app\x20name.',_0x4f85f1(0x1ee)+CLI_BIN_NAME+'\x20'+_0x49f321+'\x20<name>\x20[--global]');const _0x506eb1=_0x1fd18b[_0x4f85f1(0x1fa)](_0x4f85f1(0x204)),{config:_0xec6a2a,layers:_0xcca454}=readRawConfigWithLayers(),_0x2a8a35=_0xec6a2a['apps']??{};if(!_0x2a8a35[_0x49720b])throw CliErrors['validation'](_0x4f85f1(0x200)+_0x49720b+_0x4f85f1(0x1fb));const _0x3fc4ce=_0xcca454[_0x4f85f1(0x1f3)][_0x4f85f1(0x1ec)]&&typeof _0xcca454['globalConfig']['apps']===_0x4f85f1(0x1f2)?_0xcca454[_0x4f85f1(0x1f3)]['apps']:{},_0xb69bba=_0xcca454[_0x4f85f1(0x1fd)][_0x4f85f1(0x1ec)]&&typeof _0xcca454[_0x4f85f1(0x1fd)][_0x4f85f1(0x1ec)]===_0x4f85f1(0x1f2)?_0xcca454['projectConfig'][_0x4f85f1(0x1ec)]:{},_0x417e80=appDefinedIn(_0x49720b,_0x3fc4ce,_0xb69bba),_0x5dfeb0=resolveAppScopeForWrite(_0x49720b,_0x506eb1,_0xcca454),_0x151efa={'global':_0x5dfeb0==='global'},_0x4426f9=readConfig(_0x151efa),_0x5a801c=_0x4426f9[_0x4f85f1(0x1ec)];if(!_0x5a801c||!_0x5a801c[_0x49720b])throw CliErrors[_0x4f85f1(0x1e2)]('App\x20\x22'+_0x49720b+_0x4f85f1(0x1fb));delete _0x5a801c[_0x49720b];let _0x42e46d='';const _0x487b87=typeof _0x4426f9[_0x4f85f1(0x1e7)]===_0x4f85f1(0x1ef)?_0x4426f9[_0x4f85f1(0x1e7)]:undefined,_0x533e6e=Object[_0x4f85f1(0x201)](_0x5a801c),_0xb18c11=_0x487b87===_0x49720b?_0x533e6e[0x0]:_0x487b87,_0xf19a9a=normalizeStoredDefaultApp(_0x4426f9,_0xb18c11);if(_0x487b87===_0x49720b&&_0x533e6e['length']===0x1)_0x42e46d=_0x4f85f1(0x1e5)+_0x533e6e[0x0]+'\x22\x20is\x20selected\x20automatically.';else _0x487b87===_0x49720b&&_0xf19a9a&&(_0x42e46d=_0x4f85f1(0x1e8)+_0xf19a9a+'\x22.');Object['keys'](_0x5a801c)[_0x4f85f1(0x1ff)]===0x0&&(delete _0x4426f9[_0x4f85f1(0x1ec)],delete _0x4426f9[_0x4f85f1(0x1e7)]);writeConfig(_0x4426f9,_0x151efa);const _0x186e02=_0x417e80==='both'?_0x4f85f1(0x1e0)+_0x49720b+_0x4f85f1(0x205)+(_0x5dfeb0===_0x4f85f1(0x1dc)?_0x4f85f1(0x204):'project')+'\x20config.':'';return{'ok':!![],'message':_0x4f85f1(0x1de)+_0x49720b+'\x22'+scopeLabel(_0x151efa)+'.'+_0x42e46d+_0x186e02};}
@@ -1 +1 @@
1
- function a45_0x4747(){const _0x4996a1=['yellow','✎\x20Enter\x20appcode\x20manually','8186650ztBNhC','\x20\x20(','5584472aOztWr','find','9596iGhzVY','Found\x20','(Skip;\x20configure\x20later)','3953404cOJJbj','appName','message','appCode','97XyDATA','No\x20available\x20apps\x20found.','11984896IebPFe','4724406jmayBg','gray','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','3480875rsxxWi','12cyLclw','Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','✎\x20Enter\x20manually','(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)','cyan','map','9fVvXAg','includes','Fetching\x20available\x20apps...','skip','trim','\x0aNo\x20available\x20apps\x20found.','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','length','App\x20Code:','Select\x20the\x20app\x20to\x20bind:','custom','manual'];a45_0x4747=function(){return _0x4996a1;};return a45_0x4747();}(function(_0x251b10,_0x3548c0){const _0x2ab9d6=a45_0x2c3d,_0x10a5f6=_0x251b10();while(!![]){try{const _0x36b078=-parseInt(_0x2ab9d6(0x104))/0x1*(parseInt(_0x2ab9d6(0xfd))/0x2)+parseInt(_0x2ab9d6(0x107))/0x3+-parseInt(_0x2ab9d6(0xfb))/0x4+-parseInt(_0x2ab9d6(0x10a))/0x5+parseInt(_0x2ab9d6(0xe4))/0x6*(parseInt(_0x2ab9d6(0x100))/0x7)+parseInt(_0x2ab9d6(0x106))/0x8+parseInt(_0x2ab9d6(0xeb))/0x9*(-parseInt(_0x2ab9d6(0xf9))/0xa);if(_0x36b078===_0x3548c0)break;else _0x10a5f6['push'](_0x10a5f6['shift']());}catch(_0x27b4a6){_0x10a5f6['push'](_0x10a5f6['shift']());}}}(a45_0x4747,0xc9aee));import{input,checkbox,select}from'@inquirer/prompts';import a45_0xa6f5e9 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x5e1bbf=a45_0x2c3d,_0x13f172=await input({'message':'App\x20Code:','validate':_0x81dc4f=>{const _0xdb9817=a45_0x2c3d,_0x31c9db=validateAppcode(_0x81dc4f['trim']());return _0x31c9db['valid']||_0x31c9db[_0xdb9817(0x102)]||'Invalid\x20App\x20Code';}});return _0x13f172[_0x5e1bbf(0xef)]();}export async function promptAppSelection(_0x10bd4e){const _0x13185e=a45_0x2c3d,_0x76fcc2=[{'name':a45_0xa6f5e9[_0x13185e(0xf7)](_0x13185e(0xf8)),'value':-0x1},..._0x10bd4e[_0x13185e(0xea)]((_0x8f0f21,_0x449811)=>({'name':_0x8f0f21[_0x13185e(0x101)]+'\x20\x20'+a45_0xa6f5e9['gray']('('+_0x8f0f21['appCode']+')'),'value':_0x449811}))],_0x4d8db3=await checkbox({'message':_0x13185e(0xfe)+a45_0xa6f5e9[_0x13185e(0xe9)](_0x10bd4e[_0x13185e(0xf2)])+_0x13185e(0xf1),'choices':_0x76fcc2,'loop':![]});if(_0x4d8db3[_0x13185e(0xec)](-0x1))return _0x13185e(0xf5);if(_0x4d8db3[_0x13185e(0xf2)]===0x0)return _0x13185e(0xf5);return _0x4d8db3[_0x13185e(0xea)](_0x221a0a=>_0x10bd4e[_0x221a0a]);}export async function promptSingleAppSelection(_0x280ff3){const _0x28a0ae=a45_0x2c3d,_0x5adb48=[{'name':a45_0xa6f5e9[_0x28a0ae(0x108)](_0x28a0ae(0x109)),'value':_0x28a0ae(0xee)},{'name':a45_0xa6f5e9[_0x28a0ae(0xf7)](_0x28a0ae(0xf8)),'value':_0x28a0ae(0xf5)},..._0x280ff3['map'](_0x3169b0=>({'name':_0x3169b0[_0x28a0ae(0x101)]+'\x20\x20'+a45_0xa6f5e9['gray']('('+_0x3169b0[_0x28a0ae(0x103)]+')'),'value':_0x3169b0[_0x28a0ae(0x103)]}))],_0x535d1d=await select({'message':_0x28a0ae(0xf4),'choices':_0x5adb48});if(_0x535d1d===_0x28a0ae(0xee))return _0x28a0ae(0xee);if(_0x535d1d===_0x28a0ae(0xf5))return _0x28a0ae(0xf5);return _0x280ff3[_0x28a0ae(0xfc)](_0x534b81=>_0x534b81['appCode']===_0x535d1d);}export async function selectSingleAppcode(_0x4b8e92){const _0x10a2f7=a45_0x2c3d;if(!_0x4b8e92)return writeCliSideChannelLine(a45_0xa6f5e9[_0x10a2f7(0x108)](_0x10a2f7(0xe8))),_fallbackOrSkip();writeCliSideChannelLine(_0x10a2f7(0xed));let _0x19bc84;try{_0x19bc84=await withActiveCookie(_0x4b8e92,()=>listRemoteApps());}catch(_0x4f98a2){writeCliSideChannelLine(a45_0xa6f5e9['yellow'](_0x10a2f7(0xe5)));if(_0x4f98a2 instanceof Error)writeCliSideChannelLine(a45_0xa6f5e9[_0x10a2f7(0x108)](_0x10a2f7(0xfa)+_0x4f98a2[_0x10a2f7(0x102)]+')'));return _fallbackOrSkip();}if(_0x19bc84['length']===0x0)return writeCliSideChannelLine(a45_0xa6f5e9[_0x10a2f7(0xf7)](_0x10a2f7(0x105))),_fallbackOrSkip();const _0x43d12c=await promptSingleAppSelection(_0x19bc84);if(_0x43d12c==='skip')return'';if(_0x43d12c===_0x10a2f7(0xf5))return promptCustomAppcode();return _0x43d12c[_0x10a2f7(0x103)];}export async function selectMultipleApps(_0x15920e){const _0x51a67a=a45_0x2c3d;writeCliSideChannelLine(_0x51a67a(0xed));let _0x140111;try{_0x140111=await withActiveCookie(_0x15920e,()=>listRemoteApps());}catch(_0x5c3c20){writeCliSideChannelLine(_0x51a67a(0xe6));if(_0x5c3c20 instanceof Error)writeCliSideChannelLine(_0x51a67a(0xfa)+_0x5c3c20['message']+')');return _0x51a67a(0xf5);}if(_0x140111[_0x51a67a(0xf2)]===0x0)return writeCliSideChannelLine(_0x51a67a(0xf0)),_0x51a67a(0xf5);return promptAppSelection(_0x140111);}function a45_0x2c3d(_0x12808b,_0x2106d2){_0x12808b=_0x12808b-0xe4;const _0x47477e=a45_0x4747();let _0x2c3de4=_0x47477e[_0x12808b];return _0x2c3de4;}async function _fallbackOrSkip(){const _0x2a1e34=a45_0x2c3d,_0x1863eb=await select({'message':_0x2a1e34(0xf3),'choices':[{'name':a45_0xa6f5e9[_0x2a1e34(0x108)](_0x2a1e34(0xff)),'value':_0x2a1e34(0xee)},{'name':a45_0xa6f5e9[_0x2a1e34(0xf7)](_0x2a1e34(0xe7)),'value':_0x2a1e34(0xf6)}]});if(_0x1863eb===_0x2a1e34(0xee))return'';return promptCustomAppcode();}
1
+ (function(_0x42efaa,_0x14903c){const _0x219d55=a45_0x184c,_0x2c2897=_0x42efaa();while(!![]){try{const _0x393d69=-parseInt(_0x219d55(0x197))/0x1*(-parseInt(_0x219d55(0x187))/0x2)+parseInt(_0x219d55(0x19f))/0x3*(parseInt(_0x219d55(0x1a0))/0x4)+parseInt(_0x219d55(0x195))/0x5*(-parseInt(_0x219d55(0x190))/0x6)+parseInt(_0x219d55(0x1a5))/0x7+-parseInt(_0x219d55(0x199))/0x8+parseInt(_0x219d55(0x18e))/0x9+-parseInt(_0x219d55(0x19d))/0xa*(parseInt(_0x219d55(0x1a7))/0xb);if(_0x393d69===_0x14903c)break;else _0x2c2897['push'](_0x2c2897['shift']());}catch(_0x474560){_0x2c2897['push'](_0x2c2897['shift']());}}}(a45_0x317d,0x743ef));import{input,checkbox,select}from'@inquirer/prompts';import a45_0x1a488f from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a45_0x317d(){const _0x1b373e=['Invalid\x20App\x20Code','gray','631994dlasBT','message','map','Found\x20','includes','trim','skip','2188179kuZNKe','find','192AkqHZb','appCode','\x20\x20(','✎\x20Enter\x20manually','custom','112730CrILZX','valid','3bShaCW','\x0aNo\x20available\x20apps\x20found.','1292304tNftDR','App\x20Code:','length','yellow','70mtZyjs','\x20apps.\x20Select\x20with\x20space,\x20a=all,\x20i=invert:','38277HfqERt','124cWfgOg','(Skip;\x20configure\x20later)','Fetching\x20available\x20apps...','cyan','(Skip;\x20configure\x20later\x20with\x20config\x20set\x20appcode)','5541816QgKSzc','appName','1601578iRsLks','\x0aCould\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.','manual','Select\x20the\x20app\x20to\x20bind:'];a45_0x317d=function(){return _0x1b373e;};return a45_0x317d();}export async function promptCustomAppcode(){const _0x11cf2f=a45_0x184c,_0x5bfb36=await input({'message':_0x11cf2f(0x19a),'validate':_0xf03b9c=>{const _0x33890e=_0x11cf2f,_0x273737=validateAppcode(_0xf03b9c[_0x33890e(0x18c)]());return _0x273737[_0x33890e(0x196)]||_0x273737[_0x33890e(0x188)]||_0x33890e(0x185);}});return _0x5bfb36[_0x11cf2f(0x18c)]();}export async function promptAppSelection(_0xe5d604){const _0x34ada6=a45_0x184c,_0x189682=[{'name':a45_0x1a488f['yellow']('✎\x20Enter\x20appcode\x20manually'),'value':-0x1},..._0xe5d604[_0x34ada6(0x189)]((_0x1931b7,_0x84e852)=>({'name':_0x1931b7[_0x34ada6(0x1a6)]+'\x20\x20'+a45_0x1a488f['gray']('('+_0x1931b7[_0x34ada6(0x191)]+')'),'value':_0x84e852}))],_0x4924c2=await checkbox({'message':_0x34ada6(0x18a)+a45_0x1a488f[_0x34ada6(0x1a3)](_0xe5d604[_0x34ada6(0x19b)])+_0x34ada6(0x19e),'choices':_0x189682,'loop':![]});if(_0x4924c2[_0x34ada6(0x18b)](-0x1))return _0x34ada6(0x194);if(_0x4924c2[_0x34ada6(0x19b)]===0x0)return _0x34ada6(0x194);return _0x4924c2[_0x34ada6(0x189)](_0x56f62a=>_0xe5d604[_0x56f62a]);}export async function promptSingleAppSelection(_0x4f8ff6){const _0x1b0574=a45_0x184c,_0x36f5de=[{'name':a45_0x1a488f[_0x1b0574(0x186)](_0x1b0574(0x1a4)),'value':'skip'},{'name':a45_0x1a488f[_0x1b0574(0x19c)]('✎\x20Enter\x20appcode\x20manually'),'value':_0x1b0574(0x194)},..._0x4f8ff6[_0x1b0574(0x189)](_0x5aa0ac=>({'name':_0x5aa0ac[_0x1b0574(0x1a6)]+'\x20\x20'+a45_0x1a488f['gray']('('+_0x5aa0ac[_0x1b0574(0x191)]+')'),'value':_0x5aa0ac[_0x1b0574(0x191)]}))],_0x136186=await select({'message':_0x1b0574(0x184),'choices':_0x36f5de});if(_0x136186==='skip')return _0x1b0574(0x18d);if(_0x136186===_0x1b0574(0x194))return _0x1b0574(0x194);return _0x4f8ff6[_0x1b0574(0x18f)](_0x2d98ac=>_0x2d98ac['appCode']===_0x136186);}export async function selectSingleAppcode(_0x252971){const _0x2cc5be=a45_0x184c;if(!_0x252971)return writeCliSideChannelLine(a45_0x1a488f['gray']('(No\x20login\x20session.\x20Enter\x20an\x20App\x20Code\x20manually\x20or\x20skip.)')),_fallbackOrSkip();writeCliSideChannelLine(_0x2cc5be(0x1a2));let _0x22eb2c;try{_0x22eb2c=await withActiveCookie(_0x252971,()=>listRemoteApps());}catch(_0x5e35d0){writeCliSideChannelLine(a45_0x1a488f[_0x2cc5be(0x19c)]('Could\x20not\x20fetch\x20the\x20remote\x20app\x20list.\x20Enter\x20an\x20App\x20Code\x20manually.'));if(_0x5e35d0 instanceof Error)writeCliSideChannelLine(a45_0x1a488f['gray'](_0x2cc5be(0x192)+_0x5e35d0['message']+')'));return _fallbackOrSkip();}if(_0x22eb2c[_0x2cc5be(0x19b)]===0x0)return writeCliSideChannelLine(a45_0x1a488f[_0x2cc5be(0x19c)]('No\x20available\x20apps\x20found.')),_fallbackOrSkip();const _0x283c79=await promptSingleAppSelection(_0x22eb2c);if(_0x283c79==='skip')return'';if(_0x283c79===_0x2cc5be(0x194))return promptCustomAppcode();return _0x283c79['appCode'];}function a45_0x184c(_0x3565cb,_0x2659cf){_0x3565cb=_0x3565cb-0x184;const _0x317da7=a45_0x317d();let _0x184c3a=_0x317da7[_0x3565cb];return _0x184c3a;}export async function selectMultipleApps(_0x372fd5){const _0x270939=a45_0x184c;writeCliSideChannelLine(_0x270939(0x1a2));let _0x3cb31d;try{_0x3cb31d=await withActiveCookie(_0x372fd5,()=>listRemoteApps());}catch(_0x1e768e){writeCliSideChannelLine(_0x270939(0x1a8));if(_0x1e768e instanceof Error)writeCliSideChannelLine(_0x270939(0x192)+_0x1e768e[_0x270939(0x188)]+')');return'custom';}if(_0x3cb31d[_0x270939(0x19b)]===0x0)return writeCliSideChannelLine(_0x270939(0x198)),_0x270939(0x194);return promptAppSelection(_0x3cb31d);}async function _fallbackOrSkip(){const _0x15e36c=a45_0x184c,_0xfccd0f=await select({'message':_0x15e36c(0x19a),'choices':[{'name':a45_0x1a488f[_0x15e36c(0x186)](_0x15e36c(0x1a1)),'value':_0x15e36c(0x18d)},{'name':a45_0x1a488f[_0x15e36c(0x19c)](_0x15e36c(0x193)),'value':_0x15e36c(0x1a9)}]});if(_0xfccd0f==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a46_0x72d995=a46_0x1556;(function(_0x267444,_0x5dc5b4){const _0xfcf50=a46_0x1556,_0x54e7d9=_0x267444();while(!![]){try{const _0x3c6682=-parseInt(_0xfcf50(0x111))/0x1*(-parseInt(_0xfcf50(0x10f))/0x2)+parseInt(_0xfcf50(0x11a))/0x3+parseInt(_0xfcf50(0x11d))/0x4*(-parseInt(_0xfcf50(0x103))/0x5)+parseInt(_0xfcf50(0x113))/0x6+-parseInt(_0xfcf50(0x117))/0x7+-parseInt(_0xfcf50(0x11e))/0x8*(parseInt(_0xfcf50(0x122))/0x9)+parseInt(_0xfcf50(0x107))/0xa*(parseInt(_0xfcf50(0x11c))/0xb);if(_0x3c6682===_0x5dc5b4)break;else _0x54e7d9['push'](_0x54e7d9['shift']());}catch(_0x210081){_0x54e7d9['push'](_0x54e7d9['shift']());}}}(a46_0xe733,0xaf00d));function a46_0x1556(_0x4d791c,_0x59ff81){_0x4d791c=_0x4d791c-0x101;const _0xe733b7=a46_0xe733();let _0x1556a1=_0xe733b7[_0x4d791c];return _0x1556a1;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a46_0x72d995(0x120),a46_0x72d995(0x118)]),NON_TERMINAL_STATUSES=new Set([a46_0x72d995(0x101),a46_0x72d995(0x10c)]);export function normalizeAsyncTask(_0x5cc57d){const _0x313139=a46_0x72d995,_0x58f2c8=typeof _0x5cc57d?.[_0x313139(0x102)]===_0x313139(0x106)?_0x5cc57d['taskId'][_0x313139(0x105)]():'';if(!_0x58f2c8)throw CliErrors[_0x313139(0x11f)](_0x313139(0x109));const _0x2e90e9=typeof _0x5cc57d[_0x313139(0x110)]===_0x313139(0x106)?_0x5cc57d['status'][_0x313139(0x105)]()[_0x313139(0x115)]():'';if(!_0x2e90e9)throw CliErrors[_0x313139(0x11f)](_0x313139(0x10d)+_0x58f2c8+_0x313139(0x123));return{'taskId':_0x58f2c8,'status':_0x2e90e9,'errorMessage':typeof _0x5cc57d[_0x313139(0x10b)]===_0x313139(0x106)&&_0x5cc57d[_0x313139(0x10b)]['trim']()?_0x5cc57d[_0x313139(0x10b)]['trim']():null,'isTerminal':TERMINAL_STATUSES[_0x313139(0x10a)](_0x2e90e9),'knownStatus':TERMINAL_STATUSES[_0x313139(0x10a)](_0x2e90e9)||NON_TERMINAL_STATUSES[_0x313139(0x10a)](_0x2e90e9)};}export function buildAsyncTaskStatusCommand(_0x3d9222,_0x4f6c63){const _0x572f26=a46_0x72d995;return CLI_BIN_NAME+_0x572f26(0x10e)+quoteShellArg(_0x3d9222)+_0x572f26(0x11b)+quoteShellArg(_0x4f6c63)+_0x572f26(0x104);}export function asyncTaskMessage(_0x419435){const _0x57ae9b=a46_0x72d995;switch(_0x419435[_0x57ae9b(0x110)]){case _0x57ae9b(0x101):return'Task\x20'+_0x419435['taskId']+'\x20is\x20pending.';case _0x57ae9b(0x10c):return'Task\x20'+_0x419435['taskId']+_0x57ae9b(0x112);case _0x57ae9b(0x120):return'Task\x20'+_0x419435[_0x57ae9b(0x102)]+_0x57ae9b(0x114);case'FAILED':return _0x419435[_0x57ae9b(0x10b)]?'Task\x20'+_0x419435[_0x57ae9b(0x102)]+_0x57ae9b(0x121)+_0x419435[_0x57ae9b(0x10b)]:_0x57ae9b(0x108)+_0x419435[_0x57ae9b(0x102)]+'\x20failed.';default:return'Task\x20'+_0x419435[_0x57ae9b(0x102)]+_0x57ae9b(0x116)+_0x419435['status']+'.';}}function a46_0xe733(){const _0x16ee1a=['FAILED','replace','96348FlZyqj','\x20--appcode\x20','11NocQbO','20DmxRXm','155496npvHXp','apiError','SUCCESS','\x20failed:\x20','441SFAjNo','\x20response\x20did\x20not\x20contain\x20a\x20status.','PENDING','taskId','211555GqkzFO','\x20--format\x20compress','trim','string','14641010byWlTx','Task\x20','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','has','errorMessage','PROCESSING','Async\x20task\x20','\x20task\x20status\x20--task-id\x20','2xTnxYy','status','1256156QmPQdh','\x20is\x20processing.','2185446RAcUbE','\x20completed\x20successfully.','toUpperCase','\x20returned\x20unknown\x20status\x20','8650831pnnfaF'];a46_0xe733=function(){return _0x16ee1a;};return a46_0xe733();}function quoteShellArg(_0x58d96b){const _0x3c886a=a46_0x72d995;return'\x27'+_0x58d96b[_0x3c886a(0x119)](/'/g,'\x27\x5c\x27\x27')+'\x27';}
1
+ function a46_0x4da6(){const _0x3efe9f=['string','2410806zlvSUA','\x20failed:\x20','FAILED','\x20is\x20pending.','PROCESSING','\x20is\x20processing.','SUCCESS','18830rfJnGs','24783JXKSpt','has','2887035egVExa','taskId','apiError','4328GnSioN','21zDheDR','1282805gSTpAe','errorMessage','PENDING','\x27\x5c\x27\x27','\x20returned\x20unknown\x20status\x20','\x20--format\x20compress','20DDOGLy','\x20response\x20did\x20not\x20contain\x20a\x20status.','\x20--appcode\x20','replace','Async\x20task\x20','status','Async\x20task\x20response\x20did\x20not\x20contain\x20a\x20taskId.','trim','8222728HhAKRs','\x20task\x20status\x20--task-id\x20','5503968ALozoM','556lZGqvU','Task\x20'];a46_0x4da6=function(){return _0x3efe9f;};return a46_0x4da6();}const a46_0x1077d0=a46_0x9a57;(function(_0x557e45,_0x24349f){const _0x3ec406=a46_0x9a57,_0x547c6d=_0x557e45();while(!![]){try{const _0x1a1b96=-parseInt(_0x3ec406(0x118))/0x1*(-parseInt(_0x3ec406(0x128))/0x2)+parseInt(_0x3ec406(0x125))/0x3+parseInt(_0x3ec406(0x130))/0x4*(parseInt(_0x3ec406(0x12a))/0x5)+-parseInt(_0x3ec406(0x11b))/0x6*(-parseInt(_0x3ec406(0x129))/0x7)+parseInt(_0x3ec406(0x115))/0x8+-parseInt(_0x3ec406(0x117))/0x9+-parseInt(_0x3ec406(0x122))/0xa*(parseInt(_0x3ec406(0x123))/0xb);if(_0x1a1b96===_0x24349f)break;else _0x547c6d['push'](_0x547c6d['shift']());}catch(_0x11b3a5){_0x547c6d['push'](_0x547c6d['shift']());}}}(a46_0x4da6,0xca0eb));import{CLI_BIN_NAME}from'../../constant/cli.js';import{CliErrors}from'../../errors.js';const TERMINAL_STATUSES=new Set([a46_0x1077d0(0x121),a46_0x1077d0(0x11d)]),NON_TERMINAL_STATUSES=new Set([a46_0x1077d0(0x12c),a46_0x1077d0(0x11f)]);export function normalizeAsyncTask(_0x475334){const _0x99b69f=a46_0x1077d0,_0x1d6c25=typeof _0x475334?.['taskId']==='string'?_0x475334[_0x99b69f(0x126)][_0x99b69f(0x114)]():'';if(!_0x1d6c25)throw CliErrors[_0x99b69f(0x127)](_0x99b69f(0x113));const _0x146259=typeof _0x475334[_0x99b69f(0x112)]===_0x99b69f(0x11a)?_0x475334[_0x99b69f(0x112)][_0x99b69f(0x114)]()['toUpperCase']():'';if(!_0x146259)throw CliErrors[_0x99b69f(0x127)](_0x99b69f(0x111)+_0x1d6c25+_0x99b69f(0x131));return{'taskId':_0x1d6c25,'status':_0x146259,'errorMessage':typeof _0x475334[_0x99b69f(0x12b)]==='string'&&_0x475334[_0x99b69f(0x12b)][_0x99b69f(0x114)]()?_0x475334[_0x99b69f(0x12b)][_0x99b69f(0x114)]():null,'isTerminal':TERMINAL_STATUSES[_0x99b69f(0x124)](_0x146259),'knownStatus':TERMINAL_STATUSES[_0x99b69f(0x124)](_0x146259)||NON_TERMINAL_STATUSES[_0x99b69f(0x124)](_0x146259)};}export function buildAsyncTaskStatusCommand(_0x56ac94,_0x32a16d){const _0x34a3ae=a46_0x1077d0;return CLI_BIN_NAME+_0x34a3ae(0x116)+quoteShellArg(_0x56ac94)+_0x34a3ae(0x132)+quoteShellArg(_0x32a16d)+_0x34a3ae(0x12f);}function a46_0x9a57(_0xc1cf2e,_0x421c92){_0xc1cf2e=_0xc1cf2e-0x111;const _0x4da6f2=a46_0x4da6();let _0x9a57c0=_0x4da6f2[_0xc1cf2e];return _0x9a57c0;}export function asyncTaskMessage(_0x3d1a3f){const _0xba2dd6=a46_0x1077d0;switch(_0x3d1a3f['status']){case _0xba2dd6(0x12c):return _0xba2dd6(0x119)+_0x3d1a3f[_0xba2dd6(0x126)]+_0xba2dd6(0x11e);case _0xba2dd6(0x11f):return _0xba2dd6(0x119)+_0x3d1a3f['taskId']+_0xba2dd6(0x120);case _0xba2dd6(0x121):return'Task\x20'+_0x3d1a3f[_0xba2dd6(0x126)]+'\x20completed\x20successfully.';case _0xba2dd6(0x11d):return _0x3d1a3f['errorMessage']?_0xba2dd6(0x119)+_0x3d1a3f[_0xba2dd6(0x126)]+_0xba2dd6(0x11c)+_0x3d1a3f[_0xba2dd6(0x12b)]:'Task\x20'+_0x3d1a3f['taskId']+'\x20failed.';default:return _0xba2dd6(0x119)+_0x3d1a3f[_0xba2dd6(0x126)]+_0xba2dd6(0x12e)+_0x3d1a3f['status']+'.';}}function quoteShellArg(_0x323259){const _0xa10a=a46_0x1077d0;return'\x27'+_0x323259[_0xa10a(0x133)](/'/g,_0xa10a(0x12d))+'\x27';}
@@ -1 +1 @@
1
- function a47_0x26eb(_0x5861cf,_0x52fc97){_0x5861cf=_0x5861cf-0xc5;var _0x1658a7=a47_0x1658();var _0x26ebf5=_0x1658a7[_0x5861cf];return _0x26ebf5;}function a47_0x1658(){var _0x1f87a4=['122419KXJcWp','10anFPaW','11512470YEEwHH','12366DAbGuX','method','627KDIwhB','6SDNwGV','102981zxYUnL','defineProperties','5378405NKFSvz','description','11656155oLUGxP','url','7608gVmcww','1428cKkkLv','10940AQubxy'];a47_0x1658=function(){return _0x1f87a4;};return a47_0x1658();}(function(_0x298c31,_0x252517){var _0x5577b6=a47_0x26eb,_0x3945a7=_0x298c31();while(!![]){try{var _0x3720d6=parseInt(_0x5577b6(0xd0))/0x1*(-parseInt(_0x5577b6(0xca))/0x2)+-parseInt(_0x5577b6(0xce))/0x3*(parseInt(_0x5577b6(0xc8))/0x4)+-parseInt(_0x5577b6(0xd2))/0x5*(parseInt(_0x5577b6(0xcf))/0x6)+parseInt(_0x5577b6(0xd4))/0x7+-parseInt(_0x5577b6(0xc6))/0x8*(-parseInt(_0x5577b6(0xcc))/0x9)+-parseInt(_0x5577b6(0xcb))/0xa+-parseInt(_0x5577b6(0xc9))/0xb*(-parseInt(_0x5577b6(0xc7))/0xc);if(_0x3720d6===_0x252517)break;else _0x3945a7['push'](_0x3945a7['shift']());}catch(_0x4d9e34){_0x3945a7['push'](_0x3945a7['shift']());}}}(a47_0x1658,0xefed6));export function asDryRunResult(_0x2adb20,_0x38fdea){var _0x4a9889=a47_0x26eb;return Object[_0x4a9889(0xd1)](_0x2adb20,{'method':{'value':_0x38fdea[_0x4a9889(0xcd)],'enumerable':![]},'url':{'value':_0x38fdea[_0x4a9889(0xc5)],'enumerable':![]},..._0x38fdea[_0x4a9889(0xd3)]?{'description':{'value':_0x38fdea[_0x4a9889(0xd3)],'enumerable':![]}}:{}});}
1
+ (function(_0x408b7c,_0x4450c4){var _0x3b822d=a47_0x3930,_0x48006b=_0x408b7c();while(!![]){try{var _0xb3c115=parseInt(_0x3b822d(0xe9))/0x1*(parseInt(_0x3b822d(0xe4))/0x2)+parseInt(_0x3b822d(0xe7))/0x3+parseInt(_0x3b822d(0xef))/0x4+-parseInt(_0x3b822d(0xeb))/0x5*(-parseInt(_0x3b822d(0xee))/0x6)+parseInt(_0x3b822d(0xed))/0x7+parseInt(_0x3b822d(0xe8))/0x8*(parseInt(_0x3b822d(0xe5))/0x9)+parseInt(_0x3b822d(0xe6))/0xa*(-parseInt(_0x3b822d(0xf1))/0xb);if(_0xb3c115===_0x4450c4)break;else _0x48006b['push'](_0x48006b['shift']());}catch(_0x147e84){_0x48006b['push'](_0x48006b['shift']());}}}(a47_0x1444,0x2d273));export function asDryRunResult(_0x10a2ac,_0x5bf965){var _0x510042=a47_0x3930;return Object[_0x510042(0xec)](_0x10a2ac,{'method':{'value':_0x5bf965[_0x510042(0xea)],'enumerable':![]},'url':{'value':_0x5bf965[_0x510042(0xf0)],'enumerable':![]},..._0x5bf965['description']?{'description':{'value':_0x5bf965['description'],'enumerable':![]}}:{}});}function a47_0x3930(_0x3385e4,_0x1ec7f8){_0x3385e4=_0x3385e4-0xe4;var _0x1444fb=a47_0x1444();var _0x393080=_0x1444fb[_0x3385e4];return _0x393080;}function a47_0x1444(){var _0x1e01e1=['3160iDNTsx','27601gkzrLJ','method','14125OXdAnV','defineProperties','923062TWbhLT','408dEOSdV','764240JdTYeN','url','517egFwLx','4GowZlt','7155xobrdA','180470nvvZHh','446709pQOqRU'];a47_0x1444=function(){return _0x1e01e1;};return a47_0x1444();}
@@ -1 +1 @@
1
- const a48_0x2ef8f7=a48_0x30fb;(function(_0xd63ba5,_0x430cc4){const _0x67336e=a48_0x30fb,_0x55ab28=_0xd63ba5();while(!![]){try{const _0x2d9ba9=parseInt(_0x67336e(0x84))/0x1+parseInt(_0x67336e(0x90))/0x2*(-parseInt(_0x67336e(0x8f))/0x3)+-parseInt(_0x67336e(0x8a))/0x4+parseInt(_0x67336e(0x81))/0x5*(parseInt(_0x67336e(0x97))/0x6)+-parseInt(_0x67336e(0x92))/0x7*(parseInt(_0x67336e(0x93))/0x8)+parseInt(_0x67336e(0x87))/0x9+-parseInt(_0x67336e(0x80))/0xa;if(_0x2d9ba9===_0x430cc4)break;else _0x55ab28['push'](_0x55ab28['shift']());}catch(_0x332a09){_0x55ab28['push'](_0x55ab28['shift']());}}}(a48_0x223c,0x3a7e0));export const GLOBAL_SCOPE_FLAG={'name':a48_0x2ef8f7(0x99),'type':a48_0x2ef8f7(0x91),'default':![],'description':a48_0x2ef8f7(0x82)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x2ef8f7(0x85)};export const CODE_FLAG={'name':'code','type':'string','required':!![],'description':a48_0x2ef8f7(0x7f),'pattern':DATASET_CODE_PATTERN};function a48_0x223c(){const _0x56b720=['Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','global','string','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','1268190UNtmsv','1753475tZeAxO','Write\x20to\x20the\x20global\x20configuration','dbtype','359540IRTzeA','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','number','1034397QIRkBF','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','POSTGRESQL','384836uNZuAP','skip-connection-test','appcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','3vOrhFH','590074BVRjxV','boolean','472633gmPnZg','8OakvfC','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','Database\x20product\x20type','MYSQL','6BrmnjH'];a48_0x223c=function(){return _0x56b720;};return a48_0x223c();}function a48_0x30fb(_0x4df84f,_0x26bba3){_0x4df84f=_0x4df84f-0x7e;const _0x223cc6=a48_0x223c();let _0x30fbcb=_0x223cc6[_0x4df84f];return _0x30fbcb;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':'Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)'};export const SQLCODE_FLAG={'name':a48_0x2ef8f7(0x8e),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a48_0x2ef8f7(0x8d)}};export const APPCODE_FLAG_OPTIONAL={'name':a48_0x2ef8f7(0x8c),'type':a48_0x2ef8f7(0x7e),'required':![],'description':a48_0x2ef8f7(0x94)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':'App\x20code\x20(e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a48_0x2ef8f7(0x86),'required':!![],'description':a48_0x2ef8f7(0x98)};export const DB_TYPE_FLAG={'name':a48_0x2ef8f7(0x83),'type':'string','required':!![],'description':a48_0x2ef8f7(0x95),'enum':[a48_0x2ef8f7(0x96),a48_0x2ef8f7(0x89)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a48_0x2ef8f7(0x8b),'type':'boolean','description':a48_0x2ef8f7(0x88)};
1
+ const a48_0x4a0fa7=a48_0x4f78;(function(_0x2490c8,_0x25c31d){const _0x46316c=a48_0x4f78,_0x2a7d76=_0x2490c8();while(!![]){try{const _0x4378ab=-parseInt(_0x46316c(0x1f6))/0x1+-parseInt(_0x46316c(0x1ef))/0x2+parseInt(_0x46316c(0x1f3))/0x3*(-parseInt(_0x46316c(0x1f8))/0x4)+-parseInt(_0x46316c(0x1f5))/0x5*(parseInt(_0x46316c(0x1ec))/0x6)+parseInt(_0x46316c(0x1ed))/0x7+parseInt(_0x46316c(0x1e5))/0x8+parseInt(_0x46316c(0x1e9))/0x9*(parseInt(_0x46316c(0x1ea))/0xa);if(_0x4378ab===_0x25c31d)break;else _0x2a7d76['push'](_0x2a7d76['shift']());}catch(_0x307d41){_0x2a7d76['push'](_0x2a7d76['shift']());}}}(a48_0x26cf,0xf077f));export const GLOBAL_SCOPE_FLAG={'name':'global','type':a48_0x4a0fa7(0x1eb),'default':![],'description':a48_0x4a0fa7(0x1e7)};export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x4a0fa7(0x1ee)};export const CODE_FLAG={'name':a48_0x4a0fa7(0x1e8),'type':a48_0x4a0fa7(0x1f7),'required':!![],'description':a48_0x4a0fa7(0x1e3),'pattern':DATASET_CODE_PATTERN};function a48_0x26cf(){const _0x11d1c1=['POSTGRESQL','datasetcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','MYSQL','6029160QkGyJV','App\x20code\x20(e.g.\x20app-xxxxx)','Write\x20to\x20the\x20global\x20configuration','code','24714jLOeMI','7790yfACVl','boolean','806568AnMpCl','2286508dxCXjD','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','2338512TWKFoH','Database\x20product\x20type','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','dbtype','6MtgEue','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','35qAOtgX','1750aqDjcZ','string','244924EYLqpV'];a48_0x26cf=function(){return _0x11d1c1;};return a48_0x26cf();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a48_0x4a0fa7(0x1fa),'description':a48_0x4a0fa7(0x1e3)};function a48_0x4f78(_0x1cd7a4,_0x5db235){_0x1cd7a4=_0x1cd7a4-0x1e3;const _0x26cfb0=a48_0x26cf();let _0x4f78c2=_0x26cfb0[_0x1cd7a4];return _0x4f78c2;}export const SQLCODE_FLAG={'name':'sqlcode','type':a48_0x4a0fa7(0x1f7),'required':!![],'description':a48_0x4a0fa7(0x1fb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':'string','required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a48_0x4a0fa7(0x1e6)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a48_0x4a0fa7(0x1f1)};export const DB_TYPE_FLAG={'name':a48_0x4a0fa7(0x1f2),'type':a48_0x4a0fa7(0x1f7),'required':!![],'description':a48_0x4a0fa7(0x1f0),'enum':[a48_0x4a0fa7(0x1e4),a48_0x4a0fa7(0x1f9)]};export const SKIP_CONNECTION_TEST_FLAG={'name':'skip-connection-test','type':a48_0x4a0fa7(0x1eb),'description':a48_0x4a0fa7(0x1f4)};
@@ -1 +1 @@
1
- (function(_0x3d6339,_0x2f4a97){const _0x308359=a49_0x450b,_0x57e9d5=_0x3d6339();while(!![]){try{const _0x2b4ac1=parseInt(_0x308359(0x1d9))/0x1+parseInt(_0x308359(0x1d2))/0x2+parseInt(_0x308359(0x1df))/0x3*(parseInt(_0x308359(0x1dc))/0x4)+-parseInt(_0x308359(0x1d3))/0x5*(-parseInt(_0x308359(0x1d0))/0x6)+parseInt(_0x308359(0x1db))/0x7+-parseInt(_0x308359(0x1cf))/0x8+parseInt(_0x308359(0x1d6))/0x9*(-parseInt(_0x308359(0x1dd))/0xa);if(_0x2b4ac1===_0x2f4a97)break;else _0x57e9d5['push'](_0x57e9d5['shift']());}catch(_0x67cb12){_0x57e9d5['push'](_0x57e9d5['shift']());}}}(a49_0x1f91,0xd3aad));import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';function a49_0x450b(_0x17f1d2,_0x264a6a){_0x17f1d2=_0x17f1d2-0x1cf;const _0x1f917e=a49_0x1f91();let _0x450b45=_0x1f917e[_0x17f1d2];return _0x450b45;}function a49_0x1f91(){const _0x4310db=['toFixed','357806XyJgyk','validation','3337040gpwfdy','4vvLxai','30NrAwEI','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','161319JoExZj','isFile','File\x20is\x20not\x20a\x20regular\x20file:\x20','ceil','11741104VyPTSi','2946DdTNhG','size','2651344BfOaZb','11060dWIIKa','\x20path\x20is\x20required.','File\x20not\x20found:\x20','2896308OZJVie','\x20MB'];a49_0x1f91=function(){return _0x4310db;};return a49_0x1f91();}const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x438d0e){const _0x4b9fdc=a49_0x450b;if(_0x438d0e>=BYTES_PER_MB){const _0x5c5253=Math[_0x4b9fdc(0x1e2)](_0x438d0e/BYTES_PER_MB*0x64)/0x64;return _0x5c5253[_0x4b9fdc(0x1d8)](0x2)+_0x4b9fdc(0x1d7);}return _0x438d0e+'\x20B';}export function requireDevelopmentUploadFile(_0x321789,_0x163ad2){const _0x3c113d=a49_0x450b,_0x59baaf=_0x321789['trim']();if(!_0x59baaf)throw CliErrors[_0x3c113d(0x1da)](_0x163ad2+_0x3c113d(0x1d4));if(!existsSync(_0x59baaf))throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1d5)+_0x59baaf);const _0x2eede2=statSync(_0x59baaf);if(!_0x2eede2[_0x3c113d(0x1e0)]())throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1e1)+_0x59baaf);if(_0x2eede2['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x3c113d(0x1da)](_0x3c113d(0x1de)+_0x59baaf+'\x20('+formatBytes(_0x2eede2[_0x3c113d(0x1d1)])+')');return{'path':_0x59baaf,'size':_0x2eede2[_0x3c113d(0x1d1)]};}
1
+ (function(_0x424a15,_0x342122){const _0x3bc57e=a49_0x43e6,_0x48c562=_0x424a15();while(!![]){try{const _0x247b20=parseInt(_0x3bc57e(0x13d))/0x1+-parseInt(_0x3bc57e(0x137))/0x2*(parseInt(_0x3bc57e(0x145))/0x3)+-parseInt(_0x3bc57e(0x148))/0x4*(-parseInt(_0x3bc57e(0x142))/0x5)+-parseInt(_0x3bc57e(0x13a))/0x6+-parseInt(_0x3bc57e(0x13f))/0x7+-parseInt(_0x3bc57e(0x143))/0x8*(-parseInt(_0x3bc57e(0x146))/0x9)+parseInt(_0x3bc57e(0x149))/0xa*(parseInt(_0x3bc57e(0x138))/0xb);if(_0x247b20===_0x342122)break;else _0x48c562['push'](_0x48c562['shift']());}catch(_0x570cc7){_0x48c562['push'](_0x48c562['shift']());}}}(a49_0x29e7,0x81b66));import{existsSync,statSync}from'node:fs';function a49_0x43e6(_0x16be6f,_0x1ade84){_0x16be6f=_0x16be6f-0x137;const _0x29e7c3=a49_0x29e7();let _0x43e68a=_0x29e7c3[_0x16be6f];return _0x43e68a;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a49_0x29e7(){const _0x87d52f=['1465544yDJYrX','185670jjWFpZ','6Oiwpeq','1122PiwWvt','trim','4932036SMqApm','toFixed','isFile','692389zEaVPW','ceil','5786998JjkHBO','\x20MB','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','5aSALLP','487128wbdsfV','validation','894369jOrslE','18iepIwN','size'];a49_0x29e7=function(){return _0x87d52f;};return a49_0x29e7();}function formatBytes(_0x2eead9){const _0x5c3423=a49_0x43e6;if(_0x2eead9>=BYTES_PER_MB){const _0x14c525=Math[_0x5c3423(0x13e)](_0x2eead9/BYTES_PER_MB*0x64)/0x64;return _0x14c525[_0x5c3423(0x13b)](0x2)+_0x5c3423(0x140);}return _0x2eead9+'\x20B';}export function requireDevelopmentUploadFile(_0x440b81,_0x1cce2d){const _0x255f32=a49_0x43e6,_0x319ef4=_0x440b81[_0x255f32(0x139)]();if(!_0x319ef4)throw CliErrors[_0x255f32(0x144)](_0x1cce2d+'\x20path\x20is\x20required.');if(!existsSync(_0x319ef4))throw CliErrors[_0x255f32(0x144)]('File\x20not\x20found:\x20'+_0x319ef4);const _0x4e93e5=statSync(_0x319ef4);if(!_0x4e93e5[_0x255f32(0x13c)]())throw CliErrors[_0x255f32(0x144)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x319ef4);if(_0x4e93e5[_0x255f32(0x147)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x255f32(0x144)](_0x255f32(0x141)+_0x319ef4+'\x20('+formatBytes(_0x4e93e5['size'])+')');return{'path':_0x319ef4,'size':_0x4e93e5['size']};}
@@ -1 +1 @@
1
- function a50_0x1f3b(_0x25e834,_0x30dbda){_0x25e834=_0x25e834-0x6c;const _0x576b19=a50_0x576b();let _0x1f3b08=_0x576b19[_0x25e834];return _0x1f3b08;}(function(_0x3c97a3,_0x257d83){const _0x55eb43=a50_0x1f3b,_0x3aef4f=_0x3c97a3();while(!![]){try{const _0x24a755=-parseInt(_0x55eb43(0x6d))/0x1*(parseInt(_0x55eb43(0x7a))/0x2)+parseInt(_0x55eb43(0x72))/0x3+-parseInt(_0x55eb43(0x78))/0x4+-parseInt(_0x55eb43(0x74))/0x5+parseInt(_0x55eb43(0x6c))/0x6*(-parseInt(_0x55eb43(0x77))/0x7)+parseInt(_0x55eb43(0x75))/0x8+parseInt(_0x55eb43(0x6e))/0x9;if(_0x24a755===_0x257d83)break;else _0x3aef4f['push'](_0x3aef4f['shift']());}catch(_0x34cbb7){_0x3aef4f['push'](_0x3aef4f['shift']());}}}(a50_0x576b,0xa2fe6));export function validateAppcode(_0x132d9c){const _0x3de70c=a50_0x1f3b,_0x16f7e1=_0x132d9c[_0x3de70c(0x70)]();if(!_0x16f7e1)return{'valid':![],'message':_0x3de70c(0x79)};if(_0x16f7e1[_0x3de70c(0x71)]>0x64)return{'valid':![],'message':_0x3de70c(0x6f)};if(!/^[A-Za-z0-9_-]+$/[_0x3de70c(0x76)](_0x16f7e1))return{'valid':![],'message':_0x3de70c(0x73)};return{'valid':!![]};}function a50_0x576b(){const _0x24a5b4=['421446avxAXH','1qpZZzd','24543774mvolTt','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','length','2488446oJcaSy','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','5042060JLeGlA','3872744qQvqsW','test','91WTCNlh','4020364iYiElf','App\x20Code\x20cannot\x20be\x20empty','892806gjGOwR'];a50_0x576b=function(){return _0x24a5b4;};return a50_0x576b();}
1
+ (function(_0x394e88,_0x18f6fb){const _0xa63882=a50_0x2425,_0x3ba0fc=_0x394e88();while(!![]){try{const _0x5932a8=parseInt(_0xa63882(0x1ef))/0x1*(-parseInt(_0xa63882(0x1e9))/0x2)+parseInt(_0xa63882(0x1e7))/0x3*(-parseInt(_0xa63882(0x1e6))/0x4)+-parseInt(_0xa63882(0x1ee))/0x5*(parseInt(_0xa63882(0x1e8))/0x6)+-parseInt(_0xa63882(0x1eb))/0x7+parseInt(_0xa63882(0x1f2))/0x8*(-parseInt(_0xa63882(0x1ed))/0x9)+-parseInt(_0xa63882(0x1f0))/0xa*(-parseInt(_0xa63882(0x1ea))/0xb)+parseInt(_0xa63882(0x1f5))/0xc;if(_0x5932a8===_0x18f6fb)break;else _0x3ba0fc['push'](_0x3ba0fc['shift']());}catch(_0x235abe){_0x3ba0fc['push'](_0x3ba0fc['shift']());}}}(a50_0x3dff,0x6a25a));function a50_0x3dff(){const _0x4513ab=['App\x20Code\x20cannot\x20be\x20empty','1468952NwwKeO','App\x20Code\x20cannot\x20exceed\x20100\x20characters','test','31218048tpScuF','length','256WpQqUq','37233BVxucv','6UxVgso','2tKwjIK','62733FjQhEq','2732611qzTYTR','trim','18wRnktd','2552845MFiFZh','748681tuKBIu','1130DUbeRy'];a50_0x3dff=function(){return _0x4513ab;};return a50_0x3dff();}function a50_0x2425(_0x43e28b,_0x43dac0){_0x43e28b=_0x43e28b-0x1e6;const _0x3dff6a=a50_0x3dff();let _0x2425b6=_0x3dff6a[_0x43e28b];return _0x2425b6;}export function validateAppcode(_0x177a8f){const _0x2659bb=a50_0x2425,_0x12cd68=_0x177a8f[_0x2659bb(0x1ec)]();if(!_0x12cd68)return{'valid':![],'message':_0x2659bb(0x1f1)};if(_0x12cd68[_0x2659bb(0x1f6)]>0x64)return{'valid':![],'message':_0x2659bb(0x1f3)};if(!/^[A-Za-z0-9_-]+$/[_0x2659bb(0x1f4)](_0x12cd68))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
@@ -1 +1 @@
1
- function a51_0x1149(_0x4a7cb7,_0x8d4348){_0x4a7cb7=_0x4a7cb7-0x178;const _0x3ea5f5=a51_0x3ea5();let _0x11499c=_0x3ea5f5[_0x4a7cb7];return _0x11499c;}const a51_0x667928=a51_0x1149;(function(_0x5af95a,_0x1c3696){const _0x100241=a51_0x1149,_0x1e480f=_0x5af95a();while(!![]){try{const _0x1dc30c=-parseInt(_0x100241(0x17e))/0x1+-parseInt(_0x100241(0x18c))/0x2*(parseInt(_0x100241(0x18f))/0x3)+-parseInt(_0x100241(0x192))/0x4+-parseInt(_0x100241(0x181))/0x5*(-parseInt(_0x100241(0x188))/0x6)+-parseInt(_0x100241(0x18a))/0x7+-parseInt(_0x100241(0x18e))/0x8*(-parseInt(_0x100241(0x191))/0x9)+parseInt(_0x100241(0x197))/0xa*(parseInt(_0x100241(0x194))/0xb);if(_0x1dc30c===_0x1c3696)break;else _0x1e480f['push'](_0x1e480f['shift']());}catch(_0x2ccb11){_0x1e480f['push'](_0x1e480f['shift']());}}}(a51_0x3ea5,0x30be8));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';function a51_0x3ea5(){const _0x916c71=['Missing\x20key\x20argument.','7518OkQmbS','bool','55657dpwnSh','key','4JbZirn','prototype','83432pevkmD','17601dikUFt','Project','288YaIwkO','800404LHFDuy','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','22LbgyrR','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','has','1310210khcfsx','trim','\x20deleted','call','inherit','riskLevel','args','182593RJNNzq','Global','\x22\x20is\x20not\x20deletable.','25REAloB','\x20already\x20absent','validation','boolean','global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.'];a51_0x3ea5=function(){return _0x916c71;};return a51_0x3ea5();}const LEGACY_DELETABLE_KEYS=new Set([a51_0x667928(0x17b)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp','routing']);async function execute(_0x4ec30e){const _0x1c9b9c=a51_0x667928,_0x5f35d7=_0x4ec30e[_0x1c9b9c(0x17d)][0x0]?.[_0x1c9b9c(0x178)]();if(!_0x5f35d7)throw CliErrors[_0x1c9b9c(0x183)](_0x1c9b9c(0x187),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x5f35d7===_0x1c9b9c(0x17c))throw CliErrors[_0x1c9b9c(0x183)](_0x1c9b9c(0x186));if(!isTopLevelConfigKey(_0x5f35d7)&&!EXTRA_DELETABLE_KEYS[_0x1c9b9c(0x196)](_0x5f35d7)&&!LEGACY_DELETABLE_KEYS['has'](_0x5f35d7))throw CliErrors[_0x1c9b9c(0x183)]('Top-level\x20key\x20\x22'+_0x5f35d7+_0x1c9b9c(0x180),_0x1c9b9c(0x193));const _0x443203=resolveWriteScope({'global':_0x4ec30e[_0x1c9b9c(0x189)]('global')}),_0x57c85e=readScopedConfig(_0x443203),_0x5919e6=Object[_0x1c9b9c(0x18d)]['hasOwnProperty'][_0x1c9b9c(0x17a)](_0x57c85e,_0x5f35d7);_0x5919e6&&(delete _0x57c85e[_0x5f35d7],writeScopedConfig(_0x57c85e,_0x443203));const _0x5a330b=_0x443203===_0x1c9b9c(0x185)?_0x1c9b9c(0x17f):_0x1c9b9c(0x190);return{'ok':!![],'message':_0x5919e6?'✓\x20'+_0x5a330b+'\x20'+_0x5f35d7+_0x1c9b9c(0x179):'✓\x20'+_0x5a330b+'\x20'+_0x5f35d7+_0x1c9b9c(0x182),'data':{'key':_0x5f35d7,'scope':_0x443203,'changed':_0x5919e6}};}export const configDeleteDefinition={'service':'config','command':'delete','description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x667928(0x18b),'description':'Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','required':!![]}],'flags':[{'name':a51_0x667928(0x185),'type':a51_0x667928(0x184),'description':a51_0x667928(0x195),'default':![]}],'execute':execute};
1
+ function a51_0x352c(){const _0x4bc9aa=['Delete\x20a\x20config\x20value\x20from\x20one\x20scope','riskLevel','1335036cwDYFq','Project','config','1706016wOiUhG','key','\x20config\x20delete\x20<key>\x20[--global]','77XfQRfB','prototype','4416318yhmlIP','\x20deleted','1530905SqTWCx','has','\x22\x20is\x20not\x20deletable.','195884SSyyGu','routing','defaultApp','write','Global','Missing\x20key\x20argument.','10KscbqQ','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x20already\x20absent','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','Top-level\x20key\x20\x22','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','global','Usage:\x20','hasOwnProperty','222279iBqstO','validation','273032WHxolc'];a51_0x352c=function(){return _0x4bc9aa;};return a51_0x352c();}const a51_0x290383=a51_0x103c;(function(_0x5ecba1,_0x48e8a2){const _0x121110=a51_0x103c,_0xa73f9c=_0x5ecba1();while(!![]){try{const _0x1ffa36=parseInt(_0x121110(0x1c9))/0x1+-parseInt(_0x121110(0x1cf))/0x2*(-parseInt(_0x121110(0x1d8))/0x3)+parseInt(_0x121110(0x1dd))/0x4+-parseInt(_0x121110(0x1e7))/0x5+-parseInt(_0x121110(0x1e0))/0x6+-parseInt(_0x121110(0x1e3))/0x7*(-parseInt(_0x121110(0x1da))/0x8)+-parseInt(_0x121110(0x1e5))/0x9;if(_0x1ffa36===_0x48e8a2)break;else _0xa73f9c['push'](_0xa73f9c['shift']());}catch(_0xdf6d26){_0xa73f9c['push'](_0xa73f9c['shift']());}}}(a51_0x352c,0x2f704));function a51_0x103c(_0xbf122a,_0x1ea32b){_0xbf122a=_0xbf122a-0x1c9;const _0x352c72=a51_0x352c();let _0x103cf1=_0x352c72[_0xbf122a];return _0x103cf1;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set(['inherit']),EXTRA_DELETABLE_KEYS=new Set([a51_0x290383(0x1cb),a51_0x290383(0x1ca)]);async function execute(_0x13475f){const _0x550289=a51_0x290383,_0x2aa032=_0x13475f['args'][0x0]?.['trim']();if(!_0x2aa032)throw CliErrors['validation'](_0x550289(0x1ce),_0x550289(0x1d6)+CLI_BIN_NAME+_0x550289(0x1e2));if(_0x2aa032===_0x550289(0x1dc))throw CliErrors[_0x550289(0x1d9)](_0x550289(0x1d0));if(!isTopLevelConfigKey(_0x2aa032)&&!EXTRA_DELETABLE_KEYS[_0x550289(0x1e8)](_0x2aa032)&&!LEGACY_DELETABLE_KEYS['has'](_0x2aa032))throw CliErrors['validation'](_0x550289(0x1d3)+_0x2aa032+_0x550289(0x1e9),_0x550289(0x1d4));const _0x2840b5=resolveWriteScope({'global':_0x13475f['bool'](_0x550289(0x1d5))}),_0x15dc54=readScopedConfig(_0x2840b5),_0xedc88=Object[_0x550289(0x1e4)][_0x550289(0x1d7)]['call'](_0x15dc54,_0x2aa032);_0xedc88&&(delete _0x15dc54[_0x2aa032],writeScopedConfig(_0x15dc54,_0x2840b5));const _0x375fe8=_0x2840b5===_0x550289(0x1d5)?_0x550289(0x1cd):_0x550289(0x1de);return{'ok':!![],'message':_0xedc88?'✓\x20'+_0x375fe8+'\x20'+_0x2aa032+_0x550289(0x1e6):'✓\x20'+_0x375fe8+'\x20'+_0x2aa032+_0x550289(0x1d1),'data':{'key':_0x2aa032,'scope':_0x2840b5,'changed':_0xedc88}};}export const configDeleteDefinition={'service':a51_0x290383(0x1df),'command':'delete','description':a51_0x290383(0x1db),'risk':a51_0x290383(0x1cc),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x290383(0x1e1),'description':a51_0x290383(0x1d2),'required':!![]}],'flags':[{'name':a51_0x290383(0x1d5),'type':'boolean','description':'Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a52_0xd22213=a52_0x5cbf;(function(_0x3fc73,_0x4e7da1){const _0x11f053=a52_0x5cbf,_0x553d44=_0x3fc73();while(!![]){try{const _0x214f48=-parseInt(_0x11f053(0x108))/0x1+-parseInt(_0x11f053(0x10c))/0x2+parseInt(_0x11f053(0x113))/0x3+parseInt(_0x11f053(0x10e))/0x4+-parseInt(_0x11f053(0x10f))/0x5*(-parseInt(_0x11f053(0x114))/0x6)+-parseInt(_0x11f053(0x111))/0x7+-parseInt(_0x11f053(0x10b))/0x8*(-parseInt(_0x11f053(0x10a))/0x9);if(_0x214f48===_0x4e7da1)break;else _0x553d44['push'](_0x553d44['shift']());}catch(_0x2aa15a){_0x553d44['push'](_0x553d44['shift']());}}}(a52_0x44fe,0x3fc65));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a52_0x5cbf(_0x1977d5,_0x1e67fd){_0x1977d5=_0x1977d5-0x106;const _0x44fe7c=a52_0x44fe();let _0x5cbfbe=_0x44fe7c[_0x1977d5];return _0x5cbfbe;}function a52_0x44fe(){const _0x255c73=['key','713216mKQegp','2108285BVUaNM','object','1447572AcqWFg','validation','174525somhcV','6gRtGaK','appcode','Missing\x20key.','read','Usage:\x20','app','53075QoHAkF','Get\x20a\x20config\x20value\x20by\x20key','4707VaXkMe','960NgBdUa','399608Anzofb'];a52_0x44fe=function(){return _0x255c73;};return a52_0x44fe();}async function execute(_0x4c0ff8){const _0x4a620f=a52_0x5cbf,_0x156854=_0x4c0ff8['str'](_0x4a620f(0x10d));if(!_0x156854)throw CliErrors[_0x4a620f(0x112)](_0x4a620f(0x116),_0x4a620f(0x106)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x28fde3=readConfig(),_0x14e651=_0x156854===_0x4a620f(0x107)?_0x4a620f(0x115):_0x156854,_0x2df699=_0x28fde3[_0x14e651];if(_0x2df699===undefined)throw CliErrors[_0x4a620f(0x112)]('Key\x20not\x20found:\x20'+_0x156854);return{'ok':!![],'data':typeof _0x2df699==='object'?_0x2df699:{[_0x14e651]:_0x2df699},'message':typeof _0x2df699===_0x4a620f(0x110)?undefined:String(_0x2df699)};}export const configGetDefinition={'service':'config','command':'get','description':a52_0xd22213(0x109),'risk':a52_0xd22213(0x117),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0xd22213(0x10d),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a52_0x590e28=a52_0xfb5e;(function(_0x889116,_0x24d089){const _0x361890=a52_0xfb5e,_0x54e61e=_0x889116();while(!![]){try{const _0x24ec00=parseInt(_0x361890(0x9e))/0x1+-parseInt(_0x361890(0x92))/0x2*(-parseInt(_0x361890(0x9c))/0x3)+parseInt(_0x361890(0x9a))/0x4+-parseInt(_0x361890(0x97))/0x5*(parseInt(_0x361890(0x95))/0x6)+parseInt(_0x361890(0xa1))/0x7*(-parseInt(_0x361890(0x99))/0x8)+parseInt(_0x361890(0x96))/0x9*(parseInt(_0x361890(0x94))/0xa)+-parseInt(_0x361890(0x90))/0xb;if(_0x24ec00===_0x24d089)break;else _0x54e61e['push'](_0x54e61e['shift']());}catch(_0x4c3234){_0x54e61e['push'](_0x54e61e['shift']());}}}(a52_0x252d,0x71afc));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a52_0x252d(){const _0x277309=['35gwjnEA','Usage:\x20','336hUBlxq','2291108UzxLeE','Key\x20not\x20found:\x20','30YdOGvZ','object','450862cNQxLg','read','appcode','152936uIZtXC','app','config','key','\x20config\x20get\x20--key\x20<key>','Get\x20a\x20config\x20value\x20by\x20key','6935137JmIDnS','string','156358mCcjvM','validation','107470Cuhler','51738KhJhHH','225nPDKgE'];a52_0x252d=function(){return _0x277309;};return a52_0x252d();}function a52_0xfb5e(_0x5700fc,_0x2ce204){_0x5700fc=_0x5700fc-0x90;const _0x252d07=a52_0x252d();let _0xfb5ef1=_0x252d07[_0x5700fc];return _0xfb5ef1;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x467ab1){const _0x4bec95=a52_0xfb5e,_0x4ec681=_0x467ab1['str'](_0x4bec95(0xa4));if(!_0x4ec681)throw CliErrors[_0x4bec95(0x93)]('Missing\x20key.',_0x4bec95(0x98)+CLI_BIN_NAME+_0x4bec95(0xa5));const _0x5a81c8=readConfig(),_0x375ee7=_0x4ec681===_0x4bec95(0xa2)?_0x4bec95(0xa0):_0x4ec681,_0x539162=_0x5a81c8[_0x375ee7];if(_0x539162===undefined)throw CliErrors[_0x4bec95(0x93)](_0x4bec95(0x9b)+_0x4ec681);return{'ok':!![],'data':typeof _0x539162===_0x4bec95(0x9d)?_0x539162:{[_0x375ee7]:_0x539162},'message':typeof _0x539162===_0x4bec95(0x9d)?undefined:String(_0x539162)};}export const configGetDefinition={'service':a52_0x590e28(0xa3),'command':'get','description':a52_0x590e28(0xa6),'risk':a52_0x590e28(0x9f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x590e28(0xa4),'type':a52_0x590e28(0x91),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x438a0b,_0x410d83){const _0x71b8bf=a53_0x1c2a,_0x28b426=_0x438a0b();while(!![]){try{const _0x34c942=-parseInt(_0x71b8bf(0x14a))/0x1*(parseInt(_0x71b8bf(0x146))/0x2)+-parseInt(_0x71b8bf(0x14b))/0x3*(parseInt(_0x71b8bf(0x150))/0x4)+parseInt(_0x71b8bf(0x148))/0x5*(parseInt(_0x71b8bf(0x14f))/0x6)+parseInt(_0x71b8bf(0x14d))/0x7*(-parseInt(_0x71b8bf(0x14e))/0x8)+parseInt(_0x71b8bf(0x14c))/0x9+-parseInt(_0x71b8bf(0x149))/0xa*(-parseInt(_0x71b8bf(0x151))/0xb)+parseInt(_0x71b8bf(0x147))/0xc;if(_0x34c942===_0x410d83)break;else _0x28b426['push'](_0x28b426['shift']());}catch(_0x5cfc18){_0x28b426['push'](_0x28b426['shift']());}}}(a53_0x5902,0x9f295));function a53_0x1c2a(_0x2ea3b9,_0x547b67){_0x2ea3b9=_0x2ea3b9-0x146;const _0x5902ce=a53_0x5902();let _0x1c2a58=_0x5902ce[_0x2ea3b9];return _0x1c2a58;}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';function a53_0x5902(){const _0x553597=['3198768RutNVl','201066EjFGqa','47132dFkbSf','165IZAnmN','575348OOaOiI','21938292FIJmes','5QdLlYg','638090PSCVua','1tleUWX','297FzYbVm','4381353Pdrkol','21MzGulm'];a53_0x5902=function(){return _0x553597;};return a53_0x5902();}export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x574e76,_0x139d36){const _0xaba4ee=a53_0x2588,_0x2a2ce4=_0x574e76();while(!![]){try{const _0xfce99a=parseInt(_0xaba4ee(0xc6))/0x1*(parseInt(_0xaba4ee(0xc7))/0x2)+-parseInt(_0xaba4ee(0xcc))/0x3*(parseInt(_0xaba4ee(0xca))/0x4)+-parseInt(_0xaba4ee(0xc5))/0x5*(-parseInt(_0xaba4ee(0xcd))/0x6)+parseInt(_0xaba4ee(0xc9))/0x7+-parseInt(_0xaba4ee(0xc4))/0x8+parseInt(_0xaba4ee(0xcb))/0x9+parseInt(_0xaba4ee(0xc8))/0xa;if(_0xfce99a===_0x139d36)break;else _0x2a2ce4['push'](_0x2a2ce4['shift']());}catch(_0x3c370a){_0x2a2ce4['push'](_0x2a2ce4['shift']());}}}(a53_0x23af,0x528e3));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a53_0x23af(){const _0x289c4f=['1508320rnNSOL','4172504HkylDY','1546880ZGtQaJ','167085rpwOln','3PfwylM','12QwsZTe','3738816yEtwYI','231485bxCBAq','167078rNATZe','4yyoSyL'];a53_0x23af=function(){return _0x289c4f;};return a53_0x23af();}import{configSetDefinition}from'../../commands/config/set.js';function a53_0x2588(_0x10a4fc,_0x2dac02){_0x10a4fc=_0x10a4fc-0xc4;const _0x23af7d=a53_0x23af();let _0x2588cc=_0x23af7d[_0x10a4fc];return _0x2588cc;}import{configDeleteDefinition}from'../../commands/config/delete.js';import{configInitDefinition}from'../../commands/config/init.js';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
@@ -1 +1 @@
1
- const a54_0x2d2f12=a54_0x1d9d;(function(_0x4785fd,_0x2476eb){const _0x3603e8=a54_0x1d9d,_0x4c5c23=_0x4785fd();while(!![]){try{const _0x4cbd48=-parseInt(_0x3603e8(0x1e8))/0x1+parseInt(_0x3603e8(0x1db))/0x2+parseInt(_0x3603e8(0x1d8))/0x3+-parseInt(_0x3603e8(0x1d7))/0x4*(-parseInt(_0x3603e8(0x1dd))/0x5)+parseInt(_0x3603e8(0x1ba))/0x6+parseInt(_0x3603e8(0x1e7))/0x7+-parseInt(_0x3603e8(0x1c4))/0x8*(parseInt(_0x3603e8(0x1d0))/0x9);if(_0x4cbd48===_0x2476eb)break;else _0x4c5c23['push'](_0x4c5c23['shift']());}catch(_0x29d1c4){_0x4c5c23['push'](_0x4c5c23['shift']());}}}(a54_0x542d,0xdc978));import{select}from'@inquirer/prompts';function a54_0x542d(){const _0x56beb6=['40LTkxUw','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','kb-domain','Custom\x20local\x20callback\x20HTTPS\x20origin','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','localDomain','certificate-domain','join','manifestDomains','api-domain','Custom\x20User\x20HTTPS\x20origin','nonInteractive','3539637bCqmwK','string','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','global','mode','Region\x20\x22','length','628676djULhx','449127KOIKAd','Independent-deployment\x20Domain\x20JSON\x20file','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','1291026vmEMAy','map','25blzHYR','runtime-domain','ExitPromptError','certificateDomain','routing','bool','validation','enterprise-v1','Custom\x20Runtime\x20HTTPS\x20origin','str','10508414ZaarAL','975175ggvZlW','domains','user-domain','Select\x20Lovrabet\x20region','project','region','independent','write','domain-config','skill-domain','keys','4577490bYzBty','cancelled','init','\x22\x20is\x20not\x20currently\x20available.','Custom\x20knowledge-base\x20HTTPS\x20origin','config','cdn','Official\x20Lovrabet\x20region:\x20','Custom\x20certificate\x20service\x20HTTPS\x20origin','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20'];a54_0x542d=function(){return _0x56beb6;};return a54_0x542d();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';function a54_0x1d9d(_0x394d5b,_0x5d0400){_0x394d5b=_0x394d5b-0x1b8;const _0x542da2=a54_0x542d();let _0x1d9d3e=_0x542da2[_0x394d5b];return _0x1d9d3e;}import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':a54_0x2d2f12(0x1ed),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c1)+ENABLED_LOVRABET_REGION_VALUES[a54_0x2d2f12(0x1cb)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x2d2f12(0x1f0),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1d9)},{'name':a54_0x2d2f12(0x1ea),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1ce)},{'name':a54_0x2d2f12(0x1cd),'type':a54_0x2d2f12(0x1d1),'description':'Custom\x20platform\x20API\x20HTTPS\x20origin'},{'name':a54_0x2d2f12(0x1de),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1e5)},{'name':a54_0x2d2f12(0x1b8),'type':a54_0x2d2f12(0x1d1),'description':'Custom\x20SkillHub\x20HTTPS\x20origin'},{'name':a54_0x2d2f12(0x1c6),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1be)},{'name':'app-domain','type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c8)},{'name':'local-domain','type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c7)},{'name':a54_0x2d2f12(0x1ca),'type':a54_0x2d2f12(0x1d1),'description':a54_0x2d2f12(0x1c2)}];async function resolveRegion(_0x410155){const _0x2ed6e7=a54_0x2d2f12,_0xfdfb15=_0x410155['str'](_0x2ed6e7(0x1ed));if(_0xfdfb15){if(!isEnabledLovrabetRegion(_0xfdfb15))throw CliErrors[_0x2ed6e7(0x1e3)](_0x2ed6e7(0x1d5)+_0xfdfb15+_0x2ed6e7(0x1bd),'Available\x20regions:\x20'+ENABLED_LOVRABET_REGION_VALUES[_0x2ed6e7(0x1cb)](',\x20'));return _0xfdfb15;}if(_0x410155[_0x2ed6e7(0x1cf)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x2ed6e7(0x1eb),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x2ed6e7(0x1dc)](_0x27f708=>({'name':getOfficialRoutingProfile(_0x27f708)['label']+'\x20('+_0x27f708+')','value':_0x27f708}))});}catch(_0x1fb83e){if(_0x1fb83e?.['name']===_0x2ed6e7(0x1df))throw CliErrors[_0x2ed6e7(0x1bb)]();throw _0x1fb83e;}}export async function executeConfigInit(_0x26f157){const _0x418e64=a54_0x2d2f12,_0x165ce0=resolveDomainConfigInput(_0x26f157),_0x1dae2a=_0x165ce0[_0x418e64(0x1e9)],_0x5bb666=Object[_0x418e64(0x1b9)](_0x1dae2a)[_0x418e64(0x1d6)]>0x0;if(_0x5bb666&&_0x26f157[_0x418e64(0x1e6)](_0x418e64(0x1ed)))throw CliErrors[_0x418e64(0x1e3)](_0x418e64(0x1c5));if(!!_0x1dae2a[_0x418e64(0x1c9)]!==!!_0x1dae2a[_0x418e64(0x1e0)])throw CliErrors[_0x418e64(0x1e3)](_0x418e64(0x1da));const _0x12c66f=_0x26f157[_0x418e64(0x1e2)](_0x418e64(0x1d3))?_0x418e64(0x1d3):_0x418e64(0x1ec),_0x28ff33=readScopedConfig(_0x12c66f);for(const _0x83d9dc of DOMAIN_CONFIG_FIELDS)delete _0x28ff33[_0x83d9dc];for(const _0x5082ea of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x28ff33[_0x5082ea];delete _0x28ff33[_0x418e64(0x1e1)];let _0x3e501a=null;if(_0x5bb666)delete _0x28ff33[_0x418e64(0x1ed)],_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?_0x28ff33['routing']={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x165ce0['manifestDomains'],'cdn':_0x165ce0[_0x418e64(0x1c0)]}:Object['assign'](_0x28ff33,_0x1dae2a);else{_0x3e501a=await resolveRegion(_0x26f157);if(_0x3e501a===DEFAULT_LOVRABET_REGION)delete _0x28ff33[_0x418e64(0x1ed)];else _0x28ff33[_0x418e64(0x1ed)]=_0x3e501a;}return writeScopedConfig(_0x28ff33,_0x12c66f),{'ok':!![],'message':_0x5bb666?_0x418e64(0x1c3)+Object[_0x418e64(0x1b9)](_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?_0x165ce0[_0x418e64(0x1cc)]:_0x1dae2a)['join'](',\x20')+'.':_0x418e64(0x1d2)+_0x3e501a+'.','data':{'mode':_0x5bb666?_0x418e64(0x1ee):'official','protocol':_0x165ce0[_0x418e64(0x1d4)]===_0x418e64(0x1e4)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0x3e501a,'domains':_0x1dae2a,'cdn':_0x165ce0[_0x418e64(0x1d4)]==='enterprise-v1'?_0x165ce0['cdn']:undefined}};}export const configInitDefinition={'service':a54_0x2d2f12(0x1bf),'command':a54_0x2d2f12(0x1bc),'description':'Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','risk':a54_0x2d2f12(0x1ef),'confirmationDescription':'Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ const a54_0x306e2a=a54_0x23aa;(function(_0x4c2d07,_0x2d15e8){const _0x114cdf=a54_0x23aa,_0x5ce460=_0x4c2d07();while(!![]){try{const _0x2a40d2=-parseInt(_0x114cdf(0xdb))/0x1+parseInt(_0x114cdf(0xd6))/0x2*(-parseInt(_0x114cdf(0xcf))/0x3)+parseInt(_0x114cdf(0x107))/0x4+-parseInt(_0x114cdf(0xe1))/0x5+-parseInt(_0x114cdf(0xf5))/0x6+parseInt(_0x114cdf(0xed))/0x7+parseInt(_0x114cdf(0xf1))/0x8*(parseInt(_0x114cdf(0xe4))/0x9);if(_0x2a40d2===_0x2d15e8)break;else _0x5ce460['push'](_0x5ce460['shift']());}catch(_0xe4c101){_0x5ce460['push'](_0x5ce460['shift']());}}}(a54_0x2167,0x9d11b));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a54_0x23aa(_0x2bcaec,_0x3efa31){_0x2bcaec=_0x2bcaec-0xcf;const _0x216777=a54_0x2167();let _0x23aaf2=_0x216777[_0x2bcaec];return _0x23aaf2;}function a54_0x2167(){const _0x1e54f0=['runtime-domain','Independent-deployment\x20Domain\x20JSON\x20file','\x22\x20is\x20not\x20currently\x20available.','manifestDomains','855769MxHlnW','validation','str','global','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','localDomain','3282735fKRGmy','Select\x20Lovrabet\x20region','map','23454vtJkAr','enterprise-v1','independent','Custom\x20knowledge-base\x20HTTPS\x20origin','official','Custom\x20platform\x20API\x20HTTPS\x20origin','kb-domain','name','user-domain','1584114DMYUHn','Initialize\x20the\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','mode','string','7520QsnSzw','Custom\x20SkillHub\x20HTTPS\x20origin','nonInteractive','routing','4398348wbllWp','Region\x20\x22','init','region','local-domain','cdn','assign','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','length','certificateDomain','join','Custom\x20Runtime\x20HTTPS\x20origin','Updates\x20the\x20selected\x20Rabetbase\x20region\x20or\x20independent-deployment\x20Domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','Available\x20regions:\x20','keys','skill-domain','write','cancelled','967568aWYZMV','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','ExitPromptError','17463AdNITz','Independent\x20deployment\x20requires\x20--local-domain\x20and\x20--certificate-domain\x20together.','Custom\x20User\x20HTTPS\x20origin','domains','bool','Custom\x20local\x20callback\x20HTTPS\x20origin','project','10cCcgdm'];a54_0x2167=function(){return _0x1e54f0;};return a54_0x2167();}import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainConfigInput}from'../../config/domain-config.js';import{ENTERPRISE_ROUTING_KIND,ENTERPRISE_ROUTING_PROTOCOL}from'../../generated/routing-contract.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';import{getOfficialRoutingProfile}from'../../constant/routing-profile.js';import{GLOBAL_SCOPE_FLAG}from'../../commands/common/flags.js';export const configInitFlags=[GLOBAL_SCOPE_FLAG,{'name':'region','type':a54_0x306e2a(0xf0),'description':'Official\x20Lovrabet\x20region:\x20'+ENABLED_LOVRABET_REGION_VALUES[a54_0x306e2a(0xff)](',\x20'),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'domain-config','type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xd8)},{'name':a54_0x306e2a(0xec),'type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xd1)},{'name':'api-domain','type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xe9)},{'name':a54_0x306e2a(0xd7),'type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0x100)},{'name':a54_0x306e2a(0x104),'type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xf2)},{'name':a54_0x306e2a(0xea),'type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xe7)},{'name':'app-domain','type':a54_0x306e2a(0xf0),'description':'Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin'},{'name':a54_0x306e2a(0xf9),'type':a54_0x306e2a(0xf0),'description':a54_0x306e2a(0xd4)},{'name':'certificate-domain','type':'string','description':'Custom\x20certificate\x20service\x20HTTPS\x20origin'}];async function resolveRegion(_0x2341c3){const _0x3d3d25=a54_0x306e2a,_0xbd8dd2=_0x2341c3['str'](_0x3d3d25(0xf8));if(_0xbd8dd2){if(!isEnabledLovrabetRegion(_0xbd8dd2))throw CliErrors[_0x3d3d25(0xdc)](_0x3d3d25(0xf6)+_0xbd8dd2+_0x3d3d25(0xd9),_0x3d3d25(0x102)+ENABLED_LOVRABET_REGION_VALUES[_0x3d3d25(0xff)](',\x20'));return _0xbd8dd2;}if(_0x2341c3[_0x3d3d25(0xf3)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x3d3d25(0xe2),'default':DEFAULT_LOVRABET_REGION,'choices':ENABLED_LOVRABET_REGION_VALUES[_0x3d3d25(0xe3)](_0x18eb0c=>({'name':getOfficialRoutingProfile(_0x18eb0c)['label']+'\x20('+_0x18eb0c+')','value':_0x18eb0c}))});}catch(_0x2539ff){if(_0x2539ff?.[_0x3d3d25(0xeb)]===_0x3d3d25(0x109))throw CliErrors[_0x3d3d25(0x106)]();throw _0x2539ff;}}export async function executeConfigInit(_0x4d589b){const _0x677b1c=a54_0x306e2a,_0x4f9367=resolveDomainConfigInput(_0x4d589b),_0x5956ff=_0x4f9367[_0x677b1c(0xd2)],_0x73465d=Object[_0x677b1c(0x103)](_0x5956ff)[_0x677b1c(0xfd)]>0x0;if(_0x73465d&&_0x4d589b[_0x677b1c(0xdd)](_0x677b1c(0xf8)))throw CliErrors[_0x677b1c(0xdc)](_0x677b1c(0xdf));if(!!_0x5956ff[_0x677b1c(0xe0)]!==!!_0x5956ff[_0x677b1c(0xfe)])throw CliErrors['validation'](_0x677b1c(0xd0));const _0x4b9f70=_0x4d589b[_0x677b1c(0xd3)](_0x677b1c(0xde))?_0x677b1c(0xde):_0x677b1c(0xd5),_0x561098=readScopedConfig(_0x4b9f70);for(const _0x3e4f6 of DOMAIN_CONFIG_FIELDS)delete _0x561098[_0x3e4f6];for(const _0x3f6a7b of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x561098[_0x3f6a7b];delete _0x561098[_0x677b1c(0xf4)];let _0xb72cad=null;if(_0x73465d)delete _0x561098['region'],_0x4f9367[_0x677b1c(0xef)]===_0x677b1c(0xe5)?_0x561098[_0x677b1c(0xf4)]={'protocol':ENTERPRISE_ROUTING_PROTOCOL,'kind':ENTERPRISE_ROUTING_KIND,'domains':_0x4f9367[_0x677b1c(0xda)],'cdn':_0x4f9367[_0x677b1c(0xfa)]}:Object[_0x677b1c(0xfb)](_0x561098,_0x5956ff);else{_0xb72cad=await resolveRegion(_0x4d589b);if(_0xb72cad===DEFAULT_LOVRABET_REGION)delete _0x561098['region'];else _0x561098[_0x677b1c(0xf8)]=_0xb72cad;}return writeScopedConfig(_0x561098,_0x4b9f70),{'ok':!![],'message':_0x73465d?_0x677b1c(0xfc)+Object['keys'](_0x4f9367[_0x677b1c(0xef)]===_0x677b1c(0xe5)?_0x4f9367[_0x677b1c(0xda)]:_0x5956ff)[_0x677b1c(0xff)](',\x20')+'.':_0x677b1c(0x108)+_0xb72cad+'.','data':{'mode':_0x73465d?_0x677b1c(0xe6):_0x677b1c(0xe8),'protocol':_0x4f9367['mode']===_0x677b1c(0xe5)?ENTERPRISE_ROUTING_PROTOCOL:undefined,'region':_0xb72cad,'domains':_0x5956ff,'cdn':_0x4f9367[_0x677b1c(0xef)]===_0x677b1c(0xe5)?_0x4f9367[_0x677b1c(0xfa)]:undefined}};}export const configInitDefinition={'service':'config','command':a54_0x306e2a(0xf7),'description':a54_0x306e2a(0xee),'risk':a54_0x306e2a(0x105),'confirmationDescription':a54_0x306e2a(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a55_0x3f4d0b=a55_0x2e03;(function(_0x47855b,_0x6b0a73){const _0x47d895=a55_0x2e03,_0x2fe822=_0x47855b();while(!![]){try{const _0x597759=parseInt(_0x47d895(0x1b4))/0x1+-parseInt(_0x47d895(0x1a8))/0x2*(parseInt(_0x47d895(0x1ab))/0x3)+-parseInt(_0x47d895(0x1aa))/0x4*(parseInt(_0x47d895(0x1a5))/0x5)+-parseInt(_0x47d895(0x1a6))/0x6*(parseInt(_0x47d895(0x1af))/0x7)+parseInt(_0x47d895(0x1a9))/0x8*(parseInt(_0x47d895(0x1ad))/0x9)+-parseInt(_0x47d895(0x1ae))/0xa+-parseInt(_0x47d895(0x1ac))/0xb*(-parseInt(_0x47d895(0x1b5))/0xc);if(_0x597759===_0x6b0a73)break;else _0x2fe822['push'](_0x2fe822['shift']());}catch(_0xaf6523){_0x2fe822['push'](_0x2fe822['shift']());}}}(a55_0x42a4,0xe7446));function a55_0x2e03(_0x45b274,_0x1044f8){_0x45b274=_0x45b274-0x1a4;const _0x42a40a=a55_0x42a4();let _0x2e03d5=_0x42a40a[_0x45b274];return _0x2e03d5;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3f66c0){const _0x2ea9ad=a55_0x2e03,_0x1a2436=_0x3f66c0['bool'](_0x2ea9ad(0x1b2))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x1a2436};}function a55_0x42a4(){const _0x3464c5=['Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','50ceHKld','84LhWvPV','List\x20all\x20config\x20values','73960chIShP','136SePbYm','662796uCsEEd','129tLWMRp','11mwoJKz','338967aiZZkl','15222100jBVPbn','846006jzZQDh','read','config','global','list','1395560gzLbVx','64473492TcJVtE'];a55_0x42a4=function(){return _0x3464c5;};return a55_0x42a4();}export const configListDefinition={'service':a55_0x3f4d0b(0x1b1),'command':a55_0x3f4d0b(0x1b3),'description':a55_0x3f4d0b(0x1a7),'risk':a55_0x3f4d0b(0x1b0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a55_0x3f4d0b(0x1a4),'default':![]}],'execute':execute};
1
+ function a55_0xd972(_0x134d9e,_0x3c4b96){_0x134d9e=_0x134d9e-0x1ac;const _0x28c196=a55_0x28c1();let _0xd972d7=_0x28c196[_0x134d9e];return _0xd972d7;}function a55_0x28c1(){const _0x1cc16b=['800AYNQLD','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','1786818jUhhiL','1011750DzzfKn','40059gIZvII','2jBnROH','read','List\x20all\x20config\x20values','2744920HmvdAG','4CjCbLc','global','config','425179IBXXrb','3797815BSdneU','list','2090811tMWOuu'];a55_0x28c1=function(){return _0x1cc16b;};return a55_0x28c1();}const a55_0xc5786c=a55_0xd972;(function(_0x22c712,_0x199fd9){const _0x35a775=a55_0xd972,_0x4bb9ff=_0x22c712();while(!![]){try{const _0x6e614a=parseInt(_0x35a775(0x1b6))/0x1*(parseInt(_0x35a775(0x1af))/0x2)+-parseInt(_0x35a775(0x1b9))/0x3*(parseInt(_0x35a775(0x1b3))/0x4)+parseInt(_0x35a775(0x1b2))/0x5+parseInt(_0x35a775(0x1ac))/0x6+parseInt(_0x35a775(0x1b7))/0x7+-parseInt(_0x35a775(0x1ba))/0x8*(parseInt(_0x35a775(0x1ae))/0x9)+-parseInt(_0x35a775(0x1ad))/0xa;if(_0x6e614a===_0x199fd9)break;else _0x4bb9ff['push'](_0x4bb9ff['shift']());}catch(_0x319fb8){_0x4bb9ff['push'](_0x4bb9ff['shift']());}}}(a55_0x28c1,0x8b7a3));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x145125){const _0x1bb04c=a55_0xd972,_0x430415=_0x145125['bool']('global')?readScopedConfig(_0x1bb04c(0x1b4)):readConfig();return{'ok':!![],'data':_0x430415};}export const configListDefinition={'service':a55_0xc5786c(0x1b5),'command':a55_0xc5786c(0x1b8),'description':a55_0xc5786c(0x1b1),'risk':a55_0xc5786c(0x1b0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a55_0xc5786c(0x1bb),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a56_0x568b80=a56_0x2a37;(function(_0x471cb3,_0x2e0dc3){const _0x83a3c1=a56_0x2a37,_0x5dffe3=_0x471cb3();while(!![]){try{const _0x448ca1=parseInt(_0x83a3c1(0x166))/0x1+parseInt(_0x83a3c1(0x16c))/0x2*(-parseInt(_0x83a3c1(0x18a))/0x3)+parseInt(_0x83a3c1(0x17d))/0x4*(-parseInt(_0x83a3c1(0x170))/0x5)+parseInt(_0x83a3c1(0x15f))/0x6*(-parseInt(_0x83a3c1(0x167))/0x7)+-parseInt(_0x83a3c1(0x174))/0x8+parseInt(_0x83a3c1(0x16f))/0x9*(-parseInt(_0x83a3c1(0x16b))/0xa)+-parseInt(_0x83a3c1(0x18e))/0xb*(-parseInt(_0x83a3c1(0x169))/0xc);if(_0x448ca1===_0x2e0dc3)break;else _0x5dffe3['push'](_0x5dffe3['shift']());}catch(_0x40b824){_0x5dffe3['push'](_0x5dffe3['shift']());}}}(a56_0x56d3,0xa4434));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';function a56_0x56d3(){const _0x18a0dc=['str','boolean','locale','value','string','join','Invalid\x20locale\x20value.','Set\x20a\x20config\x20value','Global','6120XFyiTR','app','riskLevel','object','11kvSuDF','validation','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','write','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Usage:\x20','env','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','35808ezjAEx','includes','Config\x20value','Settable\x20top-level\x20keys:\x20','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','set','41553RTUDkt','56kGBaPy','\x20set\x20to:\x20','25221696tMIlXt','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','47060ZrTDbC','398EbhIbU','Missing\x20key.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','1467lDLzNv','137120erXCCM','Project','length','`,\x20`','462328fTADXO','appcode','config','Top-level\x20key\x20\x22','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','apps','global','bool','\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','28pbjWYO','keys','Missing\x20value.','Invalid\x20value\x20for\x20\x22'];a56_0x56d3=function(){return _0x18a0dc;};return a56_0x56d3();}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x5bcf8c){const _0x4ff1f3=a56_0x2a37,_0x44213b=_0x5bcf8c[_0x4ff1f3(0x181)]('key'),_0x81fde8=_0x5bcf8c[_0x4ff1f3(0x181)]('value');if(!_0x44213b)throw CliErrors['validation'](_0x4ff1f3(0x16d),_0x4ff1f3(0x193)+CLI_BIN_NAME+_0x4ff1f3(0x190));if(_0x81fde8===undefined||_0x81fde8==='')throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x17f),_0x4ff1f3(0x193)+CLI_BIN_NAME+_0x4ff1f3(0x190));let _0x20331d=_0x44213b,_0x6b1a89=_0x81fde8;if(_0x81fde8[_0x4ff1f3(0x172)]>0x1f4)throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x178));if(_0x44213b===_0x4ff1f3(0x18c))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x192));if(!isTopLevelConfigKey(_0x44213b))throw CliErrors['validation'](_0x4ff1f3(0x177)+_0x44213b+'\x22\x20is\x20not\x20settable.',_0x4ff1f3(0x162)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x44213b]&&!CONFIG_ENUM_VALUES[_0x44213b][_0x4ff1f3(0x160)](_0x81fde8))throw CliErrors['validation'](_0x4ff1f3(0x180)+_0x44213b+_0x4ff1f3(0x163)+CONFIG_ENUM_VALUES[_0x44213b][_0x4ff1f3(0x186)](',\x20'));if(_0x44213b===_0x4ff1f3(0x183)&&!normalizeLocale(_0x81fde8))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x187),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');DOMAIN_CONFIG_FIELDS[_0x4ff1f3(0x160)](_0x44213b)&&(_0x6b1a89=normalizeDomainOrigin(_0x44213b,_0x81fde8));const _0x22afd0={'global':_0x5bcf8c[_0x4ff1f3(0x17b)](_0x4ff1f3(0x17a))},_0x1454ad=resolveWriteScope(_0x22afd0),_0x142103=readScopedConfig(_0x1454ad);_0x44213b===_0x4ff1f3(0x18b)&&(_0x20331d='appcode',delete _0x142103[_0x4ff1f3(0x18b)]);_0x44213b===_0x4ff1f3(0x183)&&(_0x6b1a89=normalizeLocale(_0x81fde8));if(_0x44213b==='env'){_0x6b1a89=normalizeEnv(_0x81fde8);if(!isProduction(_0x6b1a89)&&!isDaily(_0x6b1a89))throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x164),_0x4ff1f3(0x16e));}if(_0x44213b===_0x4ff1f3(0x175)){const _0x3b0114=_0x142103[_0x4ff1f3(0x179)]&&typeof _0x142103[_0x4ff1f3(0x179)]===_0x4ff1f3(0x18d)?Object[_0x4ff1f3(0x17e)](_0x142103['apps']):[];if(_0x3b0114['length']>0x0)throw CliErrors[_0x4ff1f3(0x18f)](_0x4ff1f3(0x15e),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x6b1a89+_0x4ff1f3(0x173)+CLI_BIN_NAME+_0x4ff1f3(0x17c));const _0x2a3143=buildCanonicalProjectConfig({..._0x142103},{'appCodes':[_0x6b1a89],'env':typeof _0x142103[_0x4ff1f3(0x15d)]===_0x4ff1f3(0x185)?_0x142103[_0x4ff1f3(0x15d)]:undefined});writeScopedConfig(_0x2a3143,_0x1454ad);const _0x3aa73b=_0x1454ad===_0x4ff1f3(0x17a)?'Global':_0x4ff1f3(0x171);return{'ok':!![],'message':'✓\x20'+_0x3aa73b+'\x20appcode\x20set\x20to:\x20'+_0x6b1a89+_0x4ff1f3(0x16a)};}_0x142103[_0x20331d]=_0x6b1a89,writeScopedConfig(_0x142103,_0x1454ad);const _0x140d84=_0x1454ad===_0x4ff1f3(0x17a)?_0x4ff1f3(0x189):_0x4ff1f3(0x171);return{'ok':!![],'message':'✓\x20'+_0x140d84+'\x20'+_0x20331d+_0x4ff1f3(0x168)+_0x6b1a89};}function a56_0x2a37(_0xb6dc54,_0xae6579){_0xb6dc54=_0xb6dc54-0x15d;const _0x56d3aa=a56_0x56d3();let _0x2a3799=_0x56d3aa[_0xb6dc54];return _0x2a3799;}export const configSetDefinition={'service':a56_0x568b80(0x176),'command':a56_0x568b80(0x165),'description':a56_0x568b80(0x188),'risk':a56_0x568b80(0x191),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x568b80(0x184),'type':a56_0x568b80(0x185),'description':a56_0x568b80(0x161),'required':!![]},{'name':'global','type':a56_0x568b80(0x182),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a56_0x1e501a=a56_0x5c35;(function(_0x55d376,_0x3bc5c3){const _0x263c16=a56_0x5c35,_0x56ccec=_0x55d376();while(!![]){try{const _0x422257=-parseInt(_0x263c16(0x191))/0x1*(-parseInt(_0x263c16(0x184))/0x2)+-parseInt(_0x263c16(0x197))/0x3*(parseInt(_0x263c16(0x170))/0x4)+-parseInt(_0x263c16(0x198))/0x5+-parseInt(_0x263c16(0x186))/0x6*(parseInt(_0x263c16(0x18a))/0x7)+parseInt(_0x263c16(0x180))/0x8+-parseInt(_0x263c16(0x16a))/0x9*(parseInt(_0x263c16(0x178))/0xa)+parseInt(_0x263c16(0x16e))/0xb;if(_0x422257===_0x3bc5c3)break;else _0x56ccec['push'](_0x56ccec['shift']());}catch(_0x1a8240){_0x56ccec['push'](_0x56ccec['shift']());}}}(a56_0x5775,0x4aec1));function a56_0x5775(){const _0x4d3c71=['6380957UvkIiQ','\x20appcode\x20set\x20to:\x20','225276FcJNcZ','length','Config\x20value','Missing\x20key.','keys','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Missing\x20value.','value','1231030IwTfww','Project','locale','global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','app','Usage:\x20','riskLevel','1234184eRqDCf','key','env','`,\x20`','284WwdGsT','write','42hzUnWf','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','appcode','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','140763yRHllc','Use\x20`','join','boolean','Set\x20a\x20config\x20value','includes','string','3929neIWtP','object','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','config','Global','\x22.\x20Allowed:\x20','15BxEmnw','968650EJZlIg','apps','validation','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','27juTcDY','str','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Invalid\x20value\x20for\x20\x22'];a56_0x5775=function(){return _0x4d3c71;};return a56_0x5775();}function a56_0x5c35(_0x511cf6,_0xb8349f){_0x511cf6=_0x511cf6-0x168;const _0x577520=a56_0x5775();let _0x5c35c9=_0x577520[_0x511cf6];return _0x5c35c9;}import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';import{DOMAIN_CONFIG_FIELDS,normalizeDomainOrigin}from'../../config/domain-config.js';async function execute(_0x554f5e){const _0x580d01=a56_0x5c35,_0x52b3a7=_0x554f5e[_0x580d01(0x16b)](_0x580d01(0x181)),_0x491080=_0x554f5e[_0x580d01(0x16b)](_0x580d01(0x177));if(!_0x52b3a7)throw CliErrors[_0x580d01(0x168)](_0x580d01(0x173),_0x580d01(0x17e)+CLI_BIN_NAME+_0x580d01(0x193));if(_0x491080===undefined||_0x491080==='')throw CliErrors[_0x580d01(0x168)](_0x580d01(0x176),_0x580d01(0x17e)+CLI_BIN_NAME+_0x580d01(0x193));let _0x6bb06d=_0x52b3a7,_0x5630e5=_0x491080;if(_0x491080[_0x580d01(0x171)]>0x1f4)throw CliErrors[_0x580d01(0x168)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x52b3a7===_0x580d01(0x17f))throw CliErrors[_0x580d01(0x168)](_0x580d01(0x189));if(!isTopLevelConfigKey(_0x52b3a7))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x52b3a7+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x52b3a7]&&!CONFIG_ENUM_VALUES[_0x52b3a7][_0x580d01(0x18f)](_0x491080))throw CliErrors['validation'](_0x580d01(0x16d)+_0x52b3a7+_0x580d01(0x196)+CONFIG_ENUM_VALUES[_0x52b3a7][_0x580d01(0x18c)](',\x20'));if(_0x52b3a7===_0x580d01(0x17a)&&!normalizeLocale(_0x491080))throw CliErrors[_0x580d01(0x168)]('Invalid\x20locale\x20value.',_0x580d01(0x17c));DOMAIN_CONFIG_FIELDS[_0x580d01(0x18f)](_0x52b3a7)&&(_0x5630e5=normalizeDomainOrigin(_0x52b3a7,_0x491080));const _0x515479={'global':_0x554f5e['bool']('global')},_0x55945a=resolveWriteScope(_0x515479),_0x976b17=readScopedConfig(_0x55945a);_0x52b3a7===_0x580d01(0x17d)&&(_0x6bb06d=_0x580d01(0x188),delete _0x976b17[_0x580d01(0x17d)]);_0x52b3a7===_0x580d01(0x17a)&&(_0x5630e5=normalizeLocale(_0x491080));if(_0x52b3a7==='env'){_0x5630e5=normalizeEnv(_0x491080);if(!isProduction(_0x5630e5)&&!isDaily(_0x5630e5))throw CliErrors[_0x580d01(0x168)](_0x580d01(0x187),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x52b3a7==='appcode'){const _0x44026c=_0x976b17[_0x580d01(0x199)]&&typeof _0x976b17[_0x580d01(0x199)]===_0x580d01(0x192)?Object[_0x580d01(0x174)](_0x976b17['apps']):[];if(_0x44026c[_0x580d01(0x171)]>0x0)throw CliErrors[_0x580d01(0x168)](_0x580d01(0x175),_0x580d01(0x18b)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x5630e5+_0x580d01(0x183)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x460d24=buildCanonicalProjectConfig({..._0x976b17},{'appCodes':[_0x5630e5],'env':typeof _0x976b17[_0x580d01(0x182)]===_0x580d01(0x190)?_0x976b17['env']:undefined});writeScopedConfig(_0x460d24,_0x55945a);const _0xdbb662=_0x55945a==='global'?_0x580d01(0x195):_0x580d01(0x179);return{'ok':!![],'message':'✓\x20'+_0xdbb662+_0x580d01(0x16f)+_0x5630e5+_0x580d01(0x16c)};}_0x976b17[_0x6bb06d]=_0x5630e5,writeScopedConfig(_0x976b17,_0x55945a);const _0xe4814a=_0x55945a==='global'?_0x580d01(0x195):'Project';return{'ok':!![],'message':'✓\x20'+_0xe4814a+'\x20'+_0x6bb06d+'\x20set\x20to:\x20'+_0x5630e5};}export const configSetDefinition={'service':a56_0x1e501a(0x194),'command':'set','description':a56_0x1e501a(0x18e),'risk':a56_0x1e501a(0x185),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a56_0x1e501a(0x190),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x1e501a(0x177),'type':'string','description':a56_0x1e501a(0x172),'required':!![]},{'name':a56_0x1e501a(0x17b),'type':a56_0x1e501a(0x18d),'description':a56_0x1e501a(0x169),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2b7b30,_0x4efae7){var _0x507ea9=a57_0x5ed1,_0x55d8af=_0x2b7b30();while(!![]){try{var _0x5343db=-parseInt(_0x507ea9(0x13a))/0x1+-parseInt(_0x507ea9(0x13c))/0x2*(parseInt(_0x507ea9(0x13d))/0x3)+-parseInt(_0x507ea9(0x13e))/0x4+parseInt(_0x507ea9(0x139))/0x5+parseInt(_0x507ea9(0x141))/0x6*(-parseInt(_0x507ea9(0x13f))/0x7)+-parseInt(_0x507ea9(0x138))/0x8+-parseInt(_0x507ea9(0x144))/0x9*(-parseInt(_0x507ea9(0x146))/0xa);if(_0x5343db===_0x4efae7)break;else _0x55d8af['push'](_0x55d8af['shift']());}catch(_0x3ee839){_0x55d8af['push'](_0x55d8af['shift']());}}}(a57_0x33bd,0x50aca));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a57_0x5ed1(_0x9fe2a5,_0x5525bc){_0x9fe2a5=_0x9fe2a5-0x138;var _0x33bd9b=a57_0x33bd();var _0x5ed1b0=_0x33bd9b[_0x9fe2a5];return _0x5ed1b0;}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a57_0x33bd(){var _0x50dab7=['1500072mpiylY','812820jausuz','293867oxbRFw','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','36VCNhiw','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','validation','2529XVtIzr','global','38530vhCQQT','3191872PsDDhc','3203830BuUNfk','38918OfuJCG','project','2KncFnX'];a57_0x33bd=function(){return _0x50dab7;};return a57_0x33bd();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x52d2e8){var _0x31114e=a57_0x5ed1;if(_0x52d2e8['global'])return _0x31114e(0x145);if(!isInProject())throw CliErrors[_0x31114e(0x143)](_0x31114e(0x142),_0x31114e(0x140)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x31114e(0x13b);}export function readScopedConfig(_0x435a3f){return readConfigFile(resolveWriteConfigPath(_0x435a3f));}export function writeScopedConfig(_0x45c29e,_0x3ef051){writeConfigFile(resolveWriteConfigPath(_0x3ef051),_0x45c29e);}
1
+ (function(_0x5f4405,_0x36fd58){var _0xac003c=a57_0x50ef,_0x24a68c=_0x5f4405();while(!![]){try{var _0xea113=parseInt(_0xac003c(0x1b4))/0x1*(parseInt(_0xac003c(0x1b3))/0x2)+parseInt(_0xac003c(0x1a9))/0x3*(-parseInt(_0xac003c(0x1ab))/0x4)+-parseInt(_0xac003c(0x1ae))/0x5+-parseInt(_0xac003c(0x1a8))/0x6*(-parseInt(_0xac003c(0x1aa))/0x7)+-parseInt(_0xac003c(0x1b5))/0x8+parseInt(_0xac003c(0x1ad))/0x9+parseInt(_0xac003c(0x1af))/0xa*(parseInt(_0xac003c(0x1ac))/0xb);if(_0xea113===_0x36fd58)break;else _0x24a68c['push'](_0x24a68c['shift']());}catch(_0x4bfdd8){_0x24a68c['push'](_0x24a68c['shift']());}}}(a57_0x1ff2,0xe8725));function a57_0x1ff2(){var _0xc77c18=['global','\x20workspace\x20init\x20--appcode\x20<code>`\x20first.','6QHBBTi','55035xFEzXW','501851jnYHVS','340odOGoQ','726pbbEvW','7263297TFGVaJ','2436085eEikhK','314110tsCHIL','project','validation','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2422886RnIufF','1LZFaUB','9317216nvEqVs','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'];a57_0x1ff2=function(){return _0xc77c18;};return a57_0x1ff2();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a57_0x50ef(_0x3a31bd,_0x31ace2){_0x3a31bd=_0x3a31bd-0x1a7;var _0x1ff2c4=a57_0x1ff2();var _0x50ef94=_0x1ff2c4[_0x3a31bd];return _0x50ef94;}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x42a2bd){var _0x1be6f8=a57_0x50ef;if(_0x42a2bd[_0x1be6f8(0x1b7)])return _0x1be6f8(0x1b7);if(!isInProject())throw CliErrors[_0x1be6f8(0x1b1)](_0x1be6f8(0x1b2),_0x1be6f8(0x1b6)+CLI_BIN_NAME+_0x1be6f8(0x1a7));return _0x1be6f8(0x1b0);}export function readScopedConfig(_0x1ebcca){return readConfigFile(resolveWriteConfigPath(_0x1ebcca));}export function writeScopedConfig(_0x5d5c9a,_0x44695e){writeConfigFile(resolveWriteConfigPath(_0x44695e),_0x5d5c9a);}
@@ -1 +1 @@
1
- const a58_0x2ed5af=a58_0x4ca9;(function(_0x3ab0fc,_0xee1078){const _0x1671c6=a58_0x4ca9,_0x4e2abe=_0x3ab0fc();while(!![]){try{const _0x220ad6=-parseInt(_0x1671c6(0x1cd))/0x1*(-parseInt(_0x1671c6(0x1d7))/0x2)+-parseInt(_0x1671c6(0x199))/0x3+parseInt(_0x1671c6(0x1b1))/0x4+parseInt(_0x1671c6(0x1ba))/0x5*(parseInt(_0x1671c6(0x1a9))/0x6)+-parseInt(_0x1671c6(0x1c8))/0x7+parseInt(_0x1671c6(0x1b0))/0x8+-parseInt(_0x1671c6(0x19c))/0x9;if(_0x220ad6===_0xee1078)break;else _0x4e2abe['push'](_0x4e2abe['shift']());}catch(_0x557245){_0x4e2abe['push'](_0x4e2abe['shift']());}}}(a58_0x347c,0x81b4a));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';function a58_0x347c(){const _0x5c4c3a=['--business-group\x20is\x20required','12024585myspXv','trim','sourceType','--code\x20is\x20required','businessGroup','extend','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','dbtableConfig','found','str','hasOwnProperty','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','code','13980jxkZOo','business-group','length','message','dataset','modelId','update','8413888jWhCdX','1920304oygMKe','apiError','kind','payload','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','/smartapi/question/er-config/business-group/edit','object','isFinite','data','835tdFbLZ',',\x20actual\x20','dbLinkId','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','toUpperCase','path','write','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','Update\x20business\x20scenario\x20group','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','Expected\x20','keys','validation','name','234080FjRebD','string','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','call','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','175TbdXgd','prototype','datasetId','backend','appCode','number','DB_TABLE','Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20','stringify','source','10036YIAnpJ','dbTableSelector','tableName','datasetName','expect-business-group','metadata','dbId','isArray','unchanged','db-table','2694879QChheo','expectBusinessGroup'];a58_0x347c=function(){return _0x5c4c3a;};return a58_0x347c();}import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH='/smartapi/dblink/updateTableBusinessGroup',METADATA_BACKEND_PATH=a58_0x2ed5af(0x1b6),UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x13896e,input:_0xa03f8e,dryRun:_0x5a8001}){const _0x1cbbbc=a58_0x2ed5af;validateInput(_0xa03f8e);const _0x514ada=normalizeBusinessGroupArgument(_0xa03f8e[_0x1cbbbc(0x1a0)]),_0x53a32e=await getDatasetDetail(_0xa03f8e[_0x1cbbbc(0x1a8)]),_0x559dd2=resolveBusinessGroupDataset(_0x53a32e,_0xa03f8e['code']);assertBusinessGroupUpdateSupported(_0x559dd2,_0x514ada);const _0x3eafa4=loadCurrentBusinessGroup(_0x53a32e,_0x559dd2);assertExpectedBusinessGroup(_0x3eafa4,_0xa03f8e[_0x1cbbbc(0x19a)]);const _0x16c3a0=buildBackendPlan(_0x13896e,_0x559dd2,_0x514ada),_0x59b900=_0x3eafa4!==_0x514ada;let _0x3e67c2;if(_0x59b900&&!_0x5a8001){_0x16c3a0[_0x1cbbbc(0x1b3)]===_0x1cbbbc(0x198)?await updateDbTableBusinessGroup(_0x16c3a0[_0x1cbbbc(0x1b4)]):await updateErBusinessGroup(_0x16c3a0[_0x1cbbbc(0x1b4)]);const _0x185bfe=await getDatasetDetail(_0x559dd2[_0x1cbbbc(0x1a8)]),_0x30ffcc=resolveBusinessGroupDataset(_0x185bfe,_0x559dd2['code']),_0x7edb51=loadCurrentBusinessGroup(_0x185bfe,_0x30ffcc);if(_0x7edb51!==_0x514ada)throw CliErrors[_0x1cbbbc(0x1b2)](_0x1cbbbc(0x1b5),_0x1cbbbc(0x1c4)+JSON[_0x1cbbbc(0x1d5)](displayBusinessGroup(_0x514ada))+',\x20actual\x20'+JSON[_0x1cbbbc(0x1d5)](displayBusinessGroup(_0x7edb51))+'.');_0x3e67c2={'verified':!![],'status':'matched','afterReadback':{'businessGroup':displayBusinessGroup(_0x7edb51)}};}else!_0x59b900&&(_0x3e67c2={'verified':!![],'status':_0x1cbbbc(0x197),'afterReadback':{'businessGroup':displayBusinessGroup(_0x3eafa4)}});const _0x11bf04={'operation':_0x1cbbbc(0x1af),'appCode':_0x13896e,'selector':{'code':_0x559dd2[_0x1cbbbc(0x1a8)]},'dataset':{'id':_0x559dd2['id'],'code':_0x559dd2[_0x1cbbbc(0x1a8)],'name':_0x559dd2[_0x1cbbbc(0x1c7)],'sourceType':_0x559dd2[_0x1cbbbc(0x19e)]},'before':{'businessGroup':displayBusinessGroup(_0x3eafa4)},'after':{'businessGroup':displayBusinessGroup(_0x514ada)},'changed':_0x59b900,'dryRun':_0x5a8001,'submitted':_0x59b900&&!_0x5a8001,'backend':{'method':_0x16c3a0['method'],'path':_0x16c3a0[_0x1cbbbc(0x1bf)],'payload':_0x16c3a0[_0x1cbbbc(0x1b4)]},..._0x3e67c2?{'verification':_0x3e67c2}:{},'warnings':[]};return{'ok':!![],'data':_0x11bf04,'message':_0x59b900?_0x5a8001?_0x1cbbbc(0x1ca)+_0x559dd2['code']:_0x1cbbbc(0x1d4)+_0x559dd2[_0x1cbbbc(0x1a8)]:'No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20'+_0x559dd2['code']};}export const datasetBusinessGroupUpdate={'service':'dataset','command':'business-group-update','description':a58_0x2ed5af(0x1c2),'risk':a58_0x2ed5af(0x1c0),'flags':[CODE_FLAG,{'name':a58_0x2ed5af(0x1aa),'type':'string','required':!![],'description':a58_0x2ed5af(0x1c3)},{'name':a58_0x2ed5af(0x1db),'type':a58_0x2ed5af(0x1c9),'required':![],'description':a58_0x2ed5af(0x1a7)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3ab76c){validateInput(readBusinessGroupUpdateInput(_0x3ab76c));},async 'dryRun'(_0x2d1d61){const _0x3856f4=a58_0x2ed5af,_0x1e3a20=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x2d1d61['appCode'],'input':readBusinessGroupUpdateInput(_0x2d1d61),'dryRun':!![]});return{'method':_0x1e3a20['data'][_0x3856f4(0x1d0)]['method'],'url':_0x1e3a20[_0x3856f4(0x1b9)]['backend'][_0x3856f4(0x1bf)],'body':_0x1e3a20['data']['backend'][_0x3856f4(0x1b4)],'description':_0x1e3a20[_0x3856f4(0x1ac)],..._0x1e3a20[_0x3856f4(0x1b9)]};},async 'execute'(_0x4bd191){const _0x1807fb=a58_0x2ed5af;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x4bd191[_0x1807fb(0x1d1)],'input':readBusinessGroupUpdateInput(_0x4bd191),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x19062c){const _0x2e1136=a58_0x2ed5af,_0x3d4ea9=_0x19062c[_0x2e1136(0x1a5)](_0x2e1136(0x1db));return{'code':trim(_0x19062c[_0x2e1136(0x1a5)](_0x2e1136(0x1a8))),'businessGroup':_0x19062c['str'](_0x2e1136(0x1aa)),'expectBusinessGroup':_0x3d4ea9===undefined||_0x3d4ea9===''?undefined:_0x3d4ea9};}function validateInput(_0x1d5331){const _0x1af983=a58_0x2ed5af;if(!trim(_0x1d5331[_0x1af983(0x1a8)]))throw CliErrors['validation'](_0x1af983(0x19f));if(_0x1d5331[_0x1af983(0x1a0)]===undefined)throw CliErrors[_0x1af983(0x1c6)](_0x1af983(0x19b));if(!trim(_0x1d5331[_0x1af983(0x1a0)]))throw CliErrors[_0x1af983(0x1c6)]('--business-group\x20must\x20not\x20be\x20blank');}function assertBusinessGroupUpdateSupported(_0x887b9a,_0x2f089b){const _0x22fad9=a58_0x2ed5af;if(_0x887b9a[_0x22fad9(0x19e)]==='DB_TABLE'&&!_0x2f089b)throw CliErrors['validation'](_0x22fad9(0x1cc));}function resolveBusinessGroupDataset(_0xa40608,_0x2a8298){const _0x1493f7=a58_0x2ed5af,_0x2bdd5d=asPlainObject(_0xa40608[_0x1493f7(0x1ad)]),_0x500e8d=asPlainObject(_0xa40608[_0x1493f7(0x1a3)]),_0x5adfaa=resolveSourceType(_0xa40608,_0x2bdd5d,_0x500e8d),_0x4d3c96=firstString(_0xa40608['modelCode'],_0xa40608[_0x1493f7(0x1a8)],_0x2bdd5d['datasetCode'],_0x2a8298)||_0x2a8298;return{'id':firstNumber(_0xa40608[_0x1493f7(0x1ae)],_0xa40608['id'],_0x2bdd5d[_0x1493f7(0x1cf)])??firstString(_0xa40608['modelId'],_0xa40608['id'],_0x2bdd5d[_0x1493f7(0x1cf)])??null,'code':_0x4d3c96,'name':firstString(_0xa40608[_0x1493f7(0x1c7)],_0x2bdd5d[_0x1493f7(0x1da)],_0x2bdd5d['name'])||null,'sourceType':_0x5adfaa,'dbTableSelector':_0x5adfaa===_0x1493f7(0x1d3)?{'dbLinkId':firstNumber(_0x500e8d[_0x1493f7(0x1dd)]),'tableName':firstString(_0x500e8d['tableName'])||null}:null};}function resolveSourceType(_0x21c5c8,_0xa0b699,_0x4d81cf){const _0x54fc69=a58_0x2ed5af,_0x4f8162=firstString(_0x21c5c8[_0x54fc69(0x1d6)],_0x21c5c8['sourceType'],_0xa0b699[_0x54fc69(0x1d6)],_0xa0b699['sourceType'])?.[_0x54fc69(0x19d)]()[_0x54fc69(0x1be)]();if(_0x4f8162===_0x54fc69(0x1d3)||_0x4f8162==='METADATA')return _0x4f8162;if(Object[_0x54fc69(0x1c5)](_0x4d81cf)[_0x54fc69(0x1ab)]>0x0)return _0x54fc69(0x1d3);throw CliErrors['validation'](_0x54fc69(0x1bd));}function loadCurrentBusinessGroup(_0x20c236,_0x1e129b){const _0x13a7e0=a58_0x2ed5af,_0xa3db18=readBusinessGroupFromDatasetDetail(_0x20c236,_0x1e129b[_0x13a7e0(0x19e)]);if(_0xa3db18[_0x13a7e0(0x1a4)])return normalizeBusinessGroup(_0xa3db18['value']);return'';}function readBusinessGroupFromDatasetDetail(_0x4f15c0,_0x39151e){const _0x2ff178=a58_0x2ed5af,_0x4c5003=asPlainObject(_0x4f15c0[_0x2ff178(0x1ad)]),_0x100ec3=firstPresent(_0x4f15c0['businessGroup']);if(_0x100ec3[_0x2ff178(0x1a4)])return _0x100ec3;const _0x5d8f0b=firstPresent(_0x4c5003[_0x2ff178(0x1a0)]);if(_0x5d8f0b[_0x2ff178(0x1a4)])return _0x5d8f0b;if(_0x39151e==='DB_TABLE')return{'found':![]};const _0x30af31=readBusinessGroupFromExtend(_0x4f15c0[_0x2ff178(0x1a1)]);if(_0x30af31[_0x2ff178(0x1a4)])return _0x30af31;return readBusinessGroupFromExtend(_0x4c5003['extend']);}function readBusinessGroupFromExtend(_0x57030b){const _0x112a16=a58_0x2ed5af;if(_0x57030b===undefined||_0x57030b===null||_0x57030b==='')return{'found':![]};if(typeof _0x57030b===_0x112a16(0x1c9))try{const _0x23578f=JSON['parse'](_0x57030b);return readBusinessGroupFromExtend(_0x23578f);}catch{return{'found':![]};}const _0x1ebe2d=asPlainObject(_0x57030b);if(Object[_0x112a16(0x1ce)][_0x112a16(0x1a6)][_0x112a16(0x1cb)](_0x1ebe2d,_0x112a16(0x1a0)))return{'found':!![],'value':_0x1ebe2d[_0x112a16(0x1a0)]};return{'found':![]};}function a58_0x4ca9(_0x3df2e7,_0x2bd703){_0x3df2e7=_0x3df2e7-0x196;const _0x347cdd=a58_0x347c();let _0x4ca924=_0x347cdd[_0x3df2e7];return _0x4ca924;}function firstPresent(..._0x5bc476){for(const _0x19d01b of _0x5bc476){if(_0x19d01b!==undefined&&_0x19d01b!==null)return{'found':!![],'value':_0x19d01b};}return{'found':![]};}function assertExpectedBusinessGroup(_0x2fda0c,_0x10b638){const _0x50c991=a58_0x2ed5af;if(_0x10b638===undefined)return;const _0x160bf4=normalizeBusinessGroupArgument(_0x10b638);if(_0x2fda0c!==_0x160bf4)throw CliErrors[_0x50c991(0x1c6)]('Expectation\x20mismatch\x20at\x20businessGroup','Expected\x20'+JSON[_0x50c991(0x1d5)](_0x160bf4)+_0x50c991(0x1bb)+JSON['stringify'](_0x2fda0c));}function buildBackendPlan(_0x212e3e,_0x3447c9,_0x3c3199){const _0xe84934=a58_0x2ed5af;if(_0x3447c9[_0xe84934(0x19e)]==='DB_TABLE'){if(!_0x3447c9['dbTableSelector']||_0x3447c9[_0xe84934(0x1d8)][_0xe84934(0x1bc)]===null||!_0x3447c9['dbTableSelector'][_0xe84934(0x1d9)])throw CliErrors['validation'](_0xe84934(0x1a2),_0xe84934(0x1c1));return{'kind':_0xe84934(0x198),'method':'POST','path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x3447c9[_0xe84934(0x1d8)][_0xe84934(0x1bc)],'tableName':_0x3447c9['dbTableSelector'][_0xe84934(0x1d9)],'businessGroup':_0x3c3199}};}return{'kind':_0xe84934(0x1dc),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x212e3e,'datasetCode':_0x3447c9[_0xe84934(0x1a8)],'businessGroup':_0x3c3199}};}function normalizeBusinessGroup(_0x5ec59b){const _0x1dbc55=a58_0x2ed5af;if(_0x5ec59b===undefined||_0x5ec59b===null)return'';return String(_0x5ec59b)[_0x1dbc55(0x19d)]();}function normalizeBusinessGroupArgument(_0x36926a){const _0x397db3=normalizeBusinessGroup(_0x36926a);return _0x397db3===UNGROUPED_BUSINESS_GROUP?'':_0x397db3;}function displayBusinessGroup(_0x2936e6){return _0x2936e6||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x34e491){const _0x2b2e85=a58_0x2ed5af;if(!_0x34e491||typeof _0x34e491!==_0x2b2e85(0x1b7)||Array[_0x2b2e85(0x196)](_0x34e491))return{};return _0x34e491;}function firstString(..._0x5158be){const _0x530908=a58_0x2ed5af;for(const _0x466bff of _0x5158be){if(typeof _0x466bff==='string'&&_0x466bff[_0x530908(0x19d)]())return _0x466bff[_0x530908(0x19d)]();if(typeof _0x466bff===_0x530908(0x1d2)&&Number[_0x530908(0x1b8)](_0x466bff))return String(_0x466bff);}return undefined;}function firstNumber(..._0x162c6f){const _0xba264=a58_0x2ed5af;for(const _0x2e1125 of _0x162c6f){if(typeof _0x2e1125===_0xba264(0x1d2)&&Number[_0xba264(0x1b8)](_0x2e1125))return _0x2e1125;if(typeof _0x2e1125===_0xba264(0x1c9)&&_0x2e1125[_0xba264(0x19d)]()&&Number[_0xba264(0x1b8)](Number(_0x2e1125)))return Number(_0x2e1125);}return null;}function trim(_0x278ec){return String(_0x278ec||'')['trim']();}
1
+ const a58_0x47f237=a58_0x3f63;(function(_0x354a8f,_0x20fa14){const _0x46e5fa=a58_0x3f63,_0x59d17c=_0x354a8f();while(!![]){try{const _0x4a782f=-parseInt(_0x46e5fa(0x191))/0x1+parseInt(_0x46e5fa(0x1ba))/0x2+parseInt(_0x46e5fa(0x1a8))/0x3*(-parseInt(_0x46e5fa(0x1ad))/0x4)+parseInt(_0x46e5fa(0x184))/0x5*(-parseInt(_0x46e5fa(0x195))/0x6)+-parseInt(_0x46e5fa(0x182))/0x7+parseInt(_0x46e5fa(0x1b2))/0x8+parseInt(_0x46e5fa(0x193))/0x9;if(_0x4a782f===_0x20fa14)break;else _0x59d17c['push'](_0x59d17c['shift']());}catch(_0x5e7e4d){_0x59d17c['push'](_0x59d17c['shift']());}}}(a58_0x3d8b,0x70a73));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateDbTableBusinessGroup,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const DB_TABLE_BACKEND_PATH=a58_0x47f237(0x1b4),METADATA_BACKEND_PATH='/smartapi/question/er-config/business-group/edit',UNGROUPED_BUSINESS_GROUP=a58_0x47f237(0x19d);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x12a6de,input:_0x3b6e74,dryRun:_0x24d420}){const _0x3dd3ea=a58_0x47f237;validateInput(_0x3b6e74);const _0x5dffa9=normalizeBusinessGroupArgument(_0x3b6e74[_0x3dd3ea(0x1c4)]),_0x3c141b=await getDatasetDetail(_0x3b6e74[_0x3dd3ea(0x1ac)]),_0x3832d9=resolveBusinessGroupDataset(_0x3c141b,_0x3b6e74[_0x3dd3ea(0x1ac)]);assertBusinessGroupUpdateSupported(_0x3832d9,_0x5dffa9);const _0x114f5b=loadCurrentBusinessGroup(_0x3c141b,_0x3832d9);assertExpectedBusinessGroup(_0x114f5b,_0x3b6e74[_0x3dd3ea(0x17e)]);const _0x45c29c=buildBackendPlan(_0x12a6de,_0x3832d9,_0x5dffa9),_0x2fef8f=_0x114f5b!==_0x5dffa9;let _0x5a3ebb;if(_0x2fef8f&&!_0x24d420){_0x45c29c[_0x3dd3ea(0x189)]===_0x3dd3ea(0x1bf)?await updateDbTableBusinessGroup(_0x45c29c[_0x3dd3ea(0x1a6)]):await updateErBusinessGroup(_0x45c29c[_0x3dd3ea(0x1a6)]);const _0x46dd18=await getDatasetDetail(_0x3832d9[_0x3dd3ea(0x1ac)]),_0x46541a=resolveBusinessGroupDataset(_0x46dd18,_0x3832d9[_0x3dd3ea(0x1ac)]),_0x1ee0b5=loadCurrentBusinessGroup(_0x46dd18,_0x46541a);if(_0x1ee0b5!==_0x5dffa9)throw CliErrors['apiError'](_0x3dd3ea(0x1ab),_0x3dd3ea(0x1b9)+JSON[_0x3dd3ea(0x180)](displayBusinessGroup(_0x5dffa9))+_0x3dd3ea(0x1b7)+JSON[_0x3dd3ea(0x180)](displayBusinessGroup(_0x1ee0b5))+'.');_0x5a3ebb={'verified':!![],'status':_0x3dd3ea(0x1a5),'afterReadback':{'businessGroup':displayBusinessGroup(_0x1ee0b5)}};}else!_0x2fef8f&&(_0x5a3ebb={'verified':!![],'status':_0x3dd3ea(0x1c8),'afterReadback':{'businessGroup':displayBusinessGroup(_0x114f5b)}});const _0x334642={'operation':_0x3dd3ea(0x1bb),'appCode':_0x12a6de,'selector':{'code':_0x3832d9[_0x3dd3ea(0x1ac)]},'dataset':{'id':_0x3832d9['id'],'code':_0x3832d9[_0x3dd3ea(0x1ac)],'name':_0x3832d9[_0x3dd3ea(0x1a7)],'sourceType':_0x3832d9['sourceType']},'before':{'businessGroup':displayBusinessGroup(_0x114f5b)},'after':{'businessGroup':displayBusinessGroup(_0x5dffa9)},'changed':_0x2fef8f,'dryRun':_0x24d420,'submitted':_0x2fef8f&&!_0x24d420,'backend':{'method':_0x45c29c[_0x3dd3ea(0x1be)],'path':_0x45c29c[_0x3dd3ea(0x19a)],'payload':_0x45c29c[_0x3dd3ea(0x1a6)]},..._0x5a3ebb?{'verification':_0x5a3ebb}:{},'warnings':[]};return{'ok':!![],'data':_0x334642,'message':_0x2fef8f?_0x24d420?_0x3dd3ea(0x187)+_0x3832d9[_0x3dd3ea(0x1ac)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x3832d9[_0x3dd3ea(0x1ac)]:_0x3dd3ea(0x181)+_0x3832d9[_0x3dd3ea(0x1ac)]};}export const datasetBusinessGroupUpdate={'service':a58_0x47f237(0x199),'command':a58_0x47f237(0x1c1),'description':a58_0x47f237(0x198),'risk':'write','flags':[CODE_FLAG,{'name':'business-group','type':a58_0x47f237(0x188),'required':!![],'description':a58_0x47f237(0x1c0)},{'name':a58_0x47f237(0x18d),'type':a58_0x47f237(0x188),'required':![],'description':a58_0x47f237(0x18f)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xd53149){validateInput(readBusinessGroupUpdateInput(_0xd53149));},async 'dryRun'(_0x6f1761){const _0x290126=a58_0x47f237,_0x15ea79=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x6f1761[_0x290126(0x186)],'input':readBusinessGroupUpdateInput(_0x6f1761),'dryRun':!![]});return{'method':_0x15ea79[_0x290126(0x1af)][_0x290126(0x19b)]['method'],'url':_0x15ea79['data'][_0x290126(0x19b)][_0x290126(0x19a)],'body':_0x15ea79[_0x290126(0x1af)][_0x290126(0x19b)][_0x290126(0x1a6)],'description':_0x15ea79['message'],..._0x15ea79['data']};},async 'execute'(_0x5e1bfe){return buildDatasetBusinessGroupUpdateResult({'appCode':_0x5e1bfe['appCode'],'input':readBusinessGroupUpdateInput(_0x5e1bfe),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x58bb0e){const _0x213c93=a58_0x47f237,_0x7d3766=_0x58bb0e[_0x213c93(0x17f)]('expect-business-group');return{'code':trim(_0x58bb0e[_0x213c93(0x17f)](_0x213c93(0x1ac))),'businessGroup':_0x58bb0e[_0x213c93(0x17f)](_0x213c93(0x1c3)),'expectBusinessGroup':_0x7d3766===undefined||_0x7d3766===''?undefined:_0x7d3766};}function validateInput(_0x69fa1f){const _0x530f2c=a58_0x47f237;if(!trim(_0x69fa1f['code']))throw CliErrors[_0x530f2c(0x19f)](_0x530f2c(0x1a0));if(_0x69fa1f[_0x530f2c(0x1c4)]===undefined)throw CliErrors[_0x530f2c(0x19f)](_0x530f2c(0x18a));if(!trim(_0x69fa1f[_0x530f2c(0x1c4)]))throw CliErrors['validation'](_0x530f2c(0x1b6));}function assertBusinessGroupUpdateSupported(_0x231992,_0x9a0a04){const _0x3518d0=a58_0x47f237;if(_0x231992[_0x3518d0(0x1ae)]===_0x3518d0(0x1bc)&&!_0x9a0a04)throw CliErrors[_0x3518d0(0x19f)](_0x3518d0(0x1a1));}function resolveBusinessGroupDataset(_0x342d95,_0x59a86b){const _0x2f0f82=a58_0x47f237,_0x475ae7=asPlainObject(_0x342d95[_0x2f0f82(0x199)]),_0x38e938=asPlainObject(_0x342d95[_0x2f0f82(0x1a9)]),_0x4a66bf=resolveSourceType(_0x342d95,_0x475ae7,_0x38e938),_0x2a3a8b=firstString(_0x342d95[_0x2f0f82(0x192)],_0x342d95[_0x2f0f82(0x1ac)],_0x475ae7[_0x2f0f82(0x1a4)],_0x59a86b)||_0x59a86b;return{'id':firstNumber(_0x342d95['modelId'],_0x342d95['id'],_0x475ae7[_0x2f0f82(0x1a3)])??firstString(_0x342d95[_0x2f0f82(0x197)],_0x342d95['id'],_0x475ae7[_0x2f0f82(0x1a3)])??null,'code':_0x2a3a8b,'name':firstString(_0x342d95[_0x2f0f82(0x1a7)],_0x475ae7['datasetName'],_0x475ae7['name'])||null,'sourceType':_0x4a66bf,'dbTableSelector':_0x4a66bf===_0x2f0f82(0x1bc)?{'dbLinkId':firstNumber(_0x38e938['dbId']),'tableName':firstString(_0x38e938[_0x2f0f82(0x1c5)])||null}:null};}function resolveSourceType(_0x404b4e,_0x6cf56a,_0x3981e9){const _0x350afb=a58_0x47f237,_0x3d19b1=firstString(_0x404b4e[_0x350afb(0x1bd)],_0x404b4e[_0x350afb(0x1ae)],_0x6cf56a[_0x350afb(0x1bd)],_0x6cf56a['sourceType'])?.[_0x350afb(0x1c7)]()[_0x350afb(0x183)]();if(_0x3d19b1===_0x350afb(0x1bc)||_0x3d19b1===_0x350afb(0x19c))return _0x3d19b1;if(Object['keys'](_0x3981e9)[_0x350afb(0x18e)]>0x0)return _0x350afb(0x1bc);throw CliErrors[_0x350afb(0x19f)](_0x350afb(0x18b));}function loadCurrentBusinessGroup(_0x308eda,_0x3612c7){const _0x1092ce=a58_0x47f237,_0x2527d7=readBusinessGroupFromDatasetDetail(_0x308eda,_0x3612c7[_0x1092ce(0x1ae)]);if(_0x2527d7[_0x1092ce(0x1c6)])return normalizeBusinessGroup(_0x2527d7['value']);return'';}function readBusinessGroupFromDatasetDetail(_0x252c1a,_0x36b35c){const _0x554a0f=a58_0x47f237,_0x1f8cb7=asPlainObject(_0x252c1a[_0x554a0f(0x199)]),_0x36b162=firstPresent(_0x252c1a[_0x554a0f(0x1c4)]);if(_0x36b162[_0x554a0f(0x1c6)])return _0x36b162;const _0xa1c2e=firstPresent(_0x1f8cb7[_0x554a0f(0x1c4)]);if(_0xa1c2e[_0x554a0f(0x1c6)])return _0xa1c2e;if(_0x36b35c===_0x554a0f(0x1bc))return{'found':![]};const _0x2e1f51=readBusinessGroupFromExtend(_0x252c1a[_0x554a0f(0x1b8)]);if(_0x2e1f51[_0x554a0f(0x1c6)])return _0x2e1f51;return readBusinessGroupFromExtend(_0x1f8cb7[_0x554a0f(0x1b8)]);}function a58_0x3f63(_0x2cb5f4,_0x463ca1){_0x2cb5f4=_0x2cb5f4-0x17e;const _0x3d8b24=a58_0x3d8b();let _0x3f6394=_0x3d8b24[_0x2cb5f4];return _0x3f6394;}function readBusinessGroupFromExtend(_0x1ff11e){const _0x3f457e=a58_0x47f237;if(_0x1ff11e===undefined||_0x1ff11e===null||_0x1ff11e==='')return{'found':![]};if(typeof _0x1ff11e===_0x3f457e(0x188))try{const _0x664610=JSON[_0x3f457e(0x196)](_0x1ff11e);return readBusinessGroupFromExtend(_0x664610);}catch{return{'found':![]};}const _0x1fe0f3=asPlainObject(_0x1ff11e);if(Object[_0x3f457e(0x190)]['hasOwnProperty']['call'](_0x1fe0f3,_0x3f457e(0x1c4)))return{'found':!![],'value':_0x1fe0f3[_0x3f457e(0x1c4)]};return{'found':![]};}function a58_0x3d8b(){const _0xacd354=['data','POST','isArray','496384SNanMm','number','/smartapi/dblink/updateTableBusinessGroup','metadata','--business-group\x20must\x20not\x20be\x20blank',',\x20actual\x20','extend','Expected\x20','691694rxRBBO','update','DB_TABLE','source','method','db-table','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed;\x20METADATA\x20accepts\x20ungrouped\x20to\x20clear\x20it','business-group-update','dbLinkId','business-group','businessGroup','tableName','found','trim','unchanged','expectBusinessGroup','str','stringify','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','872928QYzXla','toUpperCase','250610qeJZbF','dbTableSelector','appCode','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','string','kind','--business-group\x20is\x20required','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','isFinite','expect-business-group','length','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','prototype','95450AEMBZq','modelCode','8940582VGzpXY','object','42Dwndhc','parse','modelId','Update\x20business\x20scenario\x20group','dataset','path','backend','METADATA','ungrouped','Run\x20dataset\x20detail\x20and\x20complete\x20database\x20analysis\x20before\x20updating\x20the\x20business\x20group.','validation','--code\x20is\x20required','Clearing\x20business\x20scenario\x20groups\x20is\x20not\x20supported\x20for\x20DB_TABLE\x20datasets.','DB_TABLE\x20dataset\x20requires\x20dbtableConfig.dbId\x20and\x20tableName.','datasetId','datasetCode','matched','payload','name','3QAQOJd','dbtableConfig','Expectation\x20mismatch\x20at\x20businessGroup','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','code','1475432rVlTkJ','sourceType'];a58_0x3d8b=function(){return _0xacd354;};return a58_0x3d8b();}function firstPresent(..._0x305567){for(const _0x277a09 of _0x305567){if(_0x277a09!==undefined&&_0x277a09!==null)return{'found':!![],'value':_0x277a09};}return{'found':![]};}function assertExpectedBusinessGroup(_0x49e712,_0x55fc69){const _0x273599=a58_0x47f237;if(_0x55fc69===undefined)return;const _0x58f2c2=normalizeBusinessGroupArgument(_0x55fc69);if(_0x49e712!==_0x58f2c2)throw CliErrors['validation'](_0x273599(0x1aa),_0x273599(0x1b9)+JSON[_0x273599(0x180)](_0x58f2c2)+_0x273599(0x1b7)+JSON[_0x273599(0x180)](_0x49e712));}function buildBackendPlan(_0x4da668,_0x5853fe,_0x2e4b8d){const _0x18bfc0=a58_0x47f237;if(_0x5853fe['sourceType']==='DB_TABLE'){if(!_0x5853fe[_0x18bfc0(0x185)]||_0x5853fe[_0x18bfc0(0x185)][_0x18bfc0(0x1c2)]===null||!_0x5853fe[_0x18bfc0(0x185)][_0x18bfc0(0x1c5)])throw CliErrors[_0x18bfc0(0x19f)](_0x18bfc0(0x1a2),_0x18bfc0(0x19e));return{'kind':_0x18bfc0(0x1bf),'method':_0x18bfc0(0x1b0),'path':DB_TABLE_BACKEND_PATH,'payload':{'dbLinkId':_0x5853fe[_0x18bfc0(0x185)]['dbLinkId'],'tableName':_0x5853fe['dbTableSelector'][_0x18bfc0(0x1c5)],'businessGroup':_0x2e4b8d}};}return{'kind':_0x18bfc0(0x1b5),'method':'POST','path':METADATA_BACKEND_PATH,'payload':{'appCode':_0x4da668,'datasetCode':_0x5853fe[_0x18bfc0(0x1ac)],'businessGroup':_0x2e4b8d}};}function normalizeBusinessGroup(_0x5eac4c){const _0x5aea50=a58_0x47f237;if(_0x5eac4c===undefined||_0x5eac4c===null)return'';return String(_0x5eac4c)[_0x5aea50(0x1c7)]();}function normalizeBusinessGroupArgument(_0x1cfe68){const _0x2a9fc4=normalizeBusinessGroup(_0x1cfe68);return _0x2a9fc4===UNGROUPED_BUSINESS_GROUP?'':_0x2a9fc4;}function displayBusinessGroup(_0xd61f4){return _0xd61f4||UNGROUPED_BUSINESS_GROUP;}function asPlainObject(_0x11450a){const _0x3bb09e=a58_0x47f237;if(!_0x11450a||typeof _0x11450a!==_0x3bb09e(0x194)||Array[_0x3bb09e(0x1b1)](_0x11450a))return{};return _0x11450a;}function firstString(..._0x1ac682){const _0xa62aa8=a58_0x47f237;for(const _0x2f6ccf of _0x1ac682){if(typeof _0x2f6ccf==='string'&&_0x2f6ccf[_0xa62aa8(0x1c7)]())return _0x2f6ccf['trim']();if(typeof _0x2f6ccf===_0xa62aa8(0x1b3)&&Number[_0xa62aa8(0x18c)](_0x2f6ccf))return String(_0x2f6ccf);}return undefined;}function firstNumber(..._0x19ab21){const _0x1e1ddb=a58_0x47f237;for(const _0x4c81f5 of _0x19ab21){if(typeof _0x4c81f5===_0x1e1ddb(0x1b3)&&Number['isFinite'](_0x4c81f5))return _0x4c81f5;if(typeof _0x4c81f5===_0x1e1ddb(0x188)&&_0x4c81f5[_0x1e1ddb(0x1c7)]()&&Number['isFinite'](Number(_0x4c81f5)))return Number(_0x4c81f5);}return null;}function trim(_0x4667f4){const _0x4558ee=a58_0x47f237;return String(_0x4667f4||'')[_0x4558ee(0x1c7)]();}
@@ -1 +1 @@
1
- const a59_0x156784=a59_0x25b5;(function(_0x34394e,_0x5cc6c2){const _0x3d6038=a59_0x25b5,_0x5abcb4=_0x34394e();while(!![]){try{const _0x21d8fb=-parseInt(_0x3d6038(0x1a3))/0x1*(parseInt(_0x3d6038(0x1a0))/0x2)+parseInt(_0x3d6038(0x19e))/0x3+-parseInt(_0x3d6038(0x19f))/0x4+-parseInt(_0x3d6038(0x1a8))/0x5+parseInt(_0x3d6038(0x199))/0x6*(parseInt(_0x3d6038(0x195))/0x7)+-parseInt(_0x3d6038(0x1a1))/0x8+parseInt(_0x3d6038(0x1a4))/0x9;if(_0x21d8fb===_0x5cc6c2)break;else _0x5abcb4['push'](_0x5abcb4['shift']());}catch(_0x51dca6){_0x5abcb4['push'](_0x5abcb4['shift']());}}}(a59_0x3eab,0xb2ce3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a59_0x25b5(_0x4df20f,_0x46c7a8){_0x4df20f=_0x4df20f-0x195;const _0x3eab33=a59_0x3eab();let _0x25b53d=_0x3eab33[_0x4df20f];return _0x25b53d;}import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0x3eab(){const _0xe82605=['6311020vqvwKx','dbid','27671JaFYQr','appCode','\x20business\x20group(s)\x20for\x20database\x20connection\x20','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','1002dHzVJA','dataset','number','business-groups','DB_TABLE','3512967vGkSFn','5583656voXqbP','4ocXtQW','6952992sKaJyB','length','258403aNjByi','26507655iFcjzt','businessGroup','trim','num'];a59_0x3eab=function(){return _0xe82605;};return a59_0x3eab();}export const datasetBusinessGroups={'service':a59_0x156784(0x19a),'command':a59_0x156784(0x19c),'description':a59_0x156784(0x198),'risk':'read','flags':[{'name':a59_0x156784(0x1a9),'type':a59_0x156784(0x19b),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x37d357){const _0x312cd0=a59_0x156784,_0x4579ee=_0x37d357[_0x312cd0(0x1a7)]('dbid'),_0x34c957=await getErBusinessGroupSummary(_0x37d357[_0x312cd0(0x196)],_0x4579ee),_0x4ce408=_0x34c957['groups']['map'](_0x2272ec=>({..._0x2272ec,'businessGroup':_0x2272ec[_0x312cd0(0x1a5)][_0x312cd0(0x1a6)]()||'ungrouped'}));return{'ok':!![],'data':{..._0x34c957,'groups':_0x4ce408,'scope':_0x312cd0(0x19d)},'message':'Found\x20'+_0x4ce408[_0x312cd0(0x1a2)]+_0x312cd0(0x197)+_0x4579ee};}};
1
+ function a59_0x2694(_0x9056f6,_0x1a4430){_0x9056f6=_0x9056f6-0x160;const _0xe036d3=a59_0xe036();let _0x2694e1=_0xe036d3[_0x9056f6];return _0x2694e1;}const a59_0x535b78=a59_0x2694;(function(_0x1312a7,_0x4e3196){const _0x3f8f07=a59_0x2694,_0x45b8dc=_0x1312a7();while(!![]){try{const _0x511c1d=-parseInt(_0x3f8f07(0x160))/0x1+parseInt(_0x3f8f07(0x172))/0x2*(parseInt(_0x3f8f07(0x16d))/0x3)+-parseInt(_0x3f8f07(0x174))/0x4*(parseInt(_0x3f8f07(0x161))/0x5)+-parseInt(_0x3f8f07(0x169))/0x6*(-parseInt(_0x3f8f07(0x16a))/0x7)+parseInt(_0x3f8f07(0x16b))/0x8+-parseInt(_0x3f8f07(0x173))/0x9+-parseInt(_0x3f8f07(0x16c))/0xa*(-parseInt(_0x3f8f07(0x175))/0xb);if(_0x511c1d===_0x4e3196)break;else _0x45b8dc['push'](_0x45b8dc['shift']());}catch(_0x58d8d2){_0x45b8dc['push'](_0x45b8dc['shift']());}}}(a59_0xe036,0x43c93));function a59_0xe036(){const _0xb03bbf=['237Lxbvif','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','business-groups','Found\x20','groups','8494iCcWsW','1437642YeHZmF','4mHGIto','121veEvPY','appCode','277997pCoRYp','1583830pingRK','dbid','length','map','num','businessGroup','\x20business\x20group(s)\x20for\x20database\x20connection\x20','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','2190MSCMmP','8127jlyeLT','1942664dORMuW','27310vkwUUT'];a59_0xe036=function(){return _0xb03bbf;};return a59_0xe036();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';export const datasetBusinessGroups={'service':'dataset','command':a59_0x535b78(0x16f),'description':a59_0x535b78(0x168),'risk':'read','flags':[{'name':a59_0x535b78(0x162),'type':'number','required':!![],'description':a59_0x535b78(0x16e)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1a07ca){const _0x283bc2=a59_0x535b78,_0x139e43=_0x1a07ca[_0x283bc2(0x165)](_0x283bc2(0x162)),_0x21790f=await getErBusinessGroupSummary(_0x1a07ca[_0x283bc2(0x176)],_0x139e43),_0x3d24a7=_0x21790f[_0x283bc2(0x171)][_0x283bc2(0x164)](_0x59602a=>({..._0x59602a,'businessGroup':_0x59602a[_0x283bc2(0x166)]['trim']()||'ungrouped'}));return{'ok':!![],'data':{..._0x21790f,'groups':_0x3d24a7,'scope':'DB_TABLE'},'message':_0x283bc2(0x170)+_0x3d24a7[_0x283bc2(0x163)]+_0x283bc2(0x167)+_0x139e43};}};
@@ -1 +1 @@
1
- const a60_0x15aefe=a60_0xcae7;(function(_0x25c544,_0x150b46){const _0x11b36f=a60_0xcae7,_0x1397f5=_0x25c544();while(!![]){try{const _0x120d0d=parseInt(_0x11b36f(0x1b3))/0x1*(parseInt(_0x11b36f(0x19d))/0x2)+-parseInt(_0x11b36f(0x1ae))/0x3+parseInt(_0x11b36f(0x1a5))/0x4+parseInt(_0x11b36f(0x1ab))/0x5*(parseInt(_0x11b36f(0x1b8))/0x6)+-parseInt(_0x11b36f(0x1aa))/0x7+-parseInt(_0x11b36f(0x1af))/0x8*(parseInt(_0x11b36f(0x1b0))/0x9)+parseInt(_0x11b36f(0x1b2))/0xa;if(_0x120d0d===_0x150b46)break;else _0x1397f5['push'](_0x1397f5['shift']());}catch(_0x3d922e){_0x1397f5['push'](_0x1397f5['shift']());}}}(a60_0x46f4,0xa4ee8));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x15aefe(0x1a8),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x15aefe(0x1ac);function valueToString(_0x4a3b45){const _0x1937fe=a60_0x15aefe;return _0x4a3b45==null?'':String(_0x4a3b45)[_0x1937fe(0x1b4)]();}function a60_0xcae7(_0xcf47c4,_0x42e7c2){_0xcf47c4=_0xcf47c4-0x19d;const _0x46f433=a60_0x46f4();let _0xcae700=_0x46f433[_0xcf47c4];return _0xcae700;}function getDatasetCode(_0x57a4dc){const _0xbf9613=a60_0x15aefe;return valueToString(_0x57a4dc['code']??_0x57a4dc[_0xbf9613(0x1a4)]??_0x57a4dc['dataset']?.[_0xbf9613(0x1bd)]);}function getDatasetName(_0x577bd2){const _0x159517=a60_0x15aefe;return valueToString(_0x577bd2[_0x159517(0x1a2)]??_0x577bd2[_0x159517(0x1c0)]?.['datasetName'])||'unknown';}function getDatasetSource(_0x594fc3){const _0x235f12=a60_0x15aefe;return valueToString(_0x594fc3[_0x235f12(0x1bc)]??_0x594fc3['dataset']?.[_0x235f12(0x1bf)])[_0x235f12(0x1be)]();}function a60_0x46f4(){const _0x2293a9=['getOne','length','name','object','modelCode','2233564VuskfQ','UNKNOWN','SQL\x20schema\x20validation','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20is\x20','3770431cnVwzR','10Shqgph','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','filter','2177382Vmpamt','352TuhJcg','85923dkOdKg','dbId','4277230HRgWjE','1srTSXI','trim','join','dbtable','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','2648640lnUkpG','dbtableConfig','METADATA','validation','source','datasetCode','toUpperCase','sourceType','dataset','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','982122yuwrQj','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','tableName'];a60_0x46f4=function(){return _0x2293a9;};return a60_0x46f4();}function getDbtableConfig(_0x4fac61){const _0x1c4930=a60_0x15aefe,_0xb56317=_0x4fac61[_0x1c4930(0x1b9)]??_0x4fac61[_0x1c4930(0x1b6)];return _0xb56317&&typeof _0xb56317===_0x1c4930(0x1a3)?_0xb56317:{};}export function isDbTableBackedDataset(_0x2c8b51){const _0xc9459c=a60_0x15aefe,_0x2c2f25=getDatasetSource(_0x2c8b51);if(_0x2c2f25===_0xc9459c(0x1ba))return![];const _0x36a309=getDbtableConfig(_0x2c8b51),_0x46895d=_0x36a309[_0xc9459c(0x1b1)]??_0x36a309['id'],_0x1eddc3=valueToString(_0x36a309[_0xc9459c(0x19f)]??_0x2c8b51[_0xc9459c(0x19f)]??_0x2c8b51[_0xc9459c(0x1c0)]?.['tableName']);return _0x46895d!==undefined&&_0x46895d!==null&&_0x1eddc3[_0xc9459c(0x1a1)]>0x0;}export function filterDbTableBackedDatasets(_0x3bbf25){const _0x59d3fb=a60_0x15aefe;return _0x3bbf25[_0x59d3fb(0x1ad)](_0x330b0f=>isDbTableBackedDataset(_0x330b0f));}export function buildDbTableBackedRequirementMessage(_0x292365,_0x67c6f1=a60_0x15aefe(0x1a7)){const _0x4b893f=a60_0x15aefe,_0x5ef6aa=getDatasetSource(_0x292365)||_0x4b893f(0x1a6),_0x20c599=getDatasetName(_0x292365),_0xb8ce97=getDatasetCode(_0x292365),_0x26d861=_0xb8ce97?'\x20('+_0xb8ce97+')':'';return['The\x20current\x20dataset\x20\x22'+_0x20c599+'\x22'+_0x26d861+_0x4b893f(0x1a9)+_0x5ef6aa+'\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20'+_0x67c6f1+'.',_0x4b893f(0x19e),_0x4b893f(0x1c1),_0x4b893f(0x1b7)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x4b893f(0x1a0)]+'.'][_0x4b893f(0x1b5)]('\x20');}export function assertDatasetIsDbTableBacked(_0x1c7d10,_0xa26b18){const _0x3dd4a6=a60_0x15aefe;if(!isDbTableBackedDataset(_0x1c7d10))throw CliErrors[_0x3dd4a6(0x1bb)](buildDbTableBackedRequirementMessage(_0x1c7d10,_0xa26b18));}
1
+ const a60_0x4cbc48=a60_0x594f;(function(_0x1f456b,_0xeb55dc){const _0x302da6=a60_0x594f,_0x376b0a=_0x1f456b();while(!![]){try{const _0x573db7=-parseInt(_0x302da6(0xd3))/0x1*(parseInt(_0x302da6(0xc6))/0x2)+parseInt(_0x302da6(0xe6))/0x3*(parseInt(_0x302da6(0xc3))/0x4)+-parseInt(_0x302da6(0xca))/0x5+parseInt(_0x302da6(0xdf))/0x6*(-parseInt(_0x302da6(0xd6))/0x7)+parseInt(_0x302da6(0xc7))/0x8+parseInt(_0x302da6(0xce))/0x9*(parseInt(_0x302da6(0xd1))/0xa)+parseInt(_0x302da6(0xd7))/0xb;if(_0x573db7===_0xeb55dc)break;else _0x376b0a['push'](_0x376b0a['shift']());}catch(_0x1c81de){_0x376b0a['push'](_0x376b0a['shift']());}}}(a60_0x1dcb,0x58f2b));import{CliErrors}from'../../errors.js';function a60_0x1dcb(){const _0x2c08ff=['To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','tableName','validation','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','dbtable','dataset','18ZpUohy','datasetName','\x20is\x20','sourceType','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','SQL\x20schema\x20validation','filter','14079mtHnJK','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','580YYpJXp','trim','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','65612XRFMiI','3642992QsxCPb','join','dbId','2010435ryLRRT','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','UNKNOWN','dbtableConfig','18iydKeH','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','modelCode','993110JEagUW','unknown','9mHuvjJ','object','name','1310491ZyXBZI','3177130OGdjLB','getOne'];a60_0x1dcb=function(){return _0x2c08ff;};return a60_0x1dcb();}export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x4cbc48(0xe3),'getOne':a60_0x4cbc48(0xcb)};export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x4cbc48(0xe7);function valueToString(_0x1fbcb4){const _0x38e6ae=a60_0x4cbc48;return _0x1fbcb4==null?'':String(_0x1fbcb4)[_0x38e6ae(0xc4)]();}function getDatasetCode(_0x5837ff){const _0x388435=a60_0x4cbc48;return valueToString(_0x5837ff['code']??_0x5837ff[_0x388435(0xd0)]??_0x5837ff[_0x388435(0xde)]?.['datasetCode']);}function getDatasetName(_0x1348d2){const _0x13e050=a60_0x4cbc48;return valueToString(_0x1348d2[_0x13e050(0xd5)]??_0x1348d2['dataset']?.[_0x13e050(0xe0)])||_0x13e050(0xd2);}function getDatasetSource(_0x482480){const _0x30b105=a60_0x4cbc48;return valueToString(_0x482480['source']??_0x482480[_0x30b105(0xde)]?.[_0x30b105(0xe2)])['toUpperCase']();}function getDbtableConfig(_0x5b936d){const _0xd8da72=a60_0x4cbc48,_0x371856=_0x5b936d[_0xd8da72(0xcd)]??_0x5b936d[_0xd8da72(0xdd)];return _0x371856&&typeof _0x371856===_0xd8da72(0xd4)?_0x371856:{};}export function isDbTableBackedDataset(_0x5bd609){const _0x14f646=a60_0x4cbc48,_0x53cd33=getDatasetSource(_0x5bd609);if(_0x53cd33==='METADATA')return![];const _0x5c0029=getDbtableConfig(_0x5bd609),_0x496ad6=_0x5c0029[_0x14f646(0xc9)]??_0x5c0029['id'],_0x4dfe55=valueToString(_0x5c0029['tableName']??_0x5bd609[_0x14f646(0xda)]??_0x5bd609[_0x14f646(0xde)]?.[_0x14f646(0xda)]);return _0x496ad6!==undefined&&_0x496ad6!==null&&_0x4dfe55['length']>0x0;}export function filterDbTableBackedDatasets(_0x569db1){const _0x1c3dca=a60_0x4cbc48;return _0x569db1[_0x1c3dca(0xe5)](_0x4b52d8=>isDbTableBackedDataset(_0x4b52d8));}export function buildDbTableBackedRequirementMessage(_0x1ebc22,_0x198ab6=a60_0x4cbc48(0xe4)){const _0x5794e7=a60_0x4cbc48,_0x566e57=getDatasetSource(_0x1ebc22)||_0x5794e7(0xcc),_0x19aaf7=getDatasetName(_0x1ebc22),_0x3d4c90=getDatasetCode(_0x1ebc22),_0x5d67f5=_0x3d4c90?'\x20('+_0x3d4c90+')':'';return['The\x20current\x20dataset\x20\x22'+_0x19aaf7+'\x22'+_0x5d67f5+_0x5794e7(0xe1)+_0x566e57+_0x5794e7(0xdc)+_0x198ab6+'.',_0x5794e7(0xc5),_0x5794e7(0xcf),_0x5794e7(0xd9)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x5794e7(0xd8)]+'.'][_0x5794e7(0xc8)]('\x20');}function a60_0x594f(_0x44c7c5,_0xf4af15){_0x44c7c5=_0x44c7c5-0xc3;const _0x1dcb43=a60_0x1dcb();let _0x594ff5=_0x1dcb43[_0x44c7c5];return _0x594ff5;}export function assertDatasetIsDbTableBacked(_0x225850,_0x3b8bd8){const _0x40d6ba=a60_0x4cbc48;if(!isDbTableBackedDataset(_0x225850))throw CliErrors[_0x40d6ba(0xdb)](buildDbTableBackedRequirementMessage(_0x225850,_0x3b8bd8));}