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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/README.md +28 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/auth/auth-server-ui.js +1 -1
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.js +1 -1
  57. package/lib/commands/config/list.js +1 -1
  58. package/lib/commands/config/set.js +1 -1
  59. package/lib/commands/config/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/business-groups.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff-refresh-start.js +1 -1
  88. package/lib/commands/db/diff-refresh-status.js +1 -1
  89. package/lib/commands/db/diff.js +1 -1
  90. package/lib/commands/db/index.js +1 -1
  91. package/lib/commands/db/list.js +1 -1
  92. package/lib/commands/db/shared.js +1 -1
  93. package/lib/commands/db/table-diff-shared.d.ts +13 -0
  94. package/lib/commands/db/table-diff-shared.js +1 -0
  95. package/lib/commands/db/tables.js +1 -1
  96. package/lib/commands/db/test.js +1 -1
  97. package/lib/commands/db/update.js +1 -1
  98. package/lib/commands/doctor.js +1 -1
  99. package/lib/commands/file/index.js +1 -1
  100. package/lib/commands/issue/index.js +1 -1
  101. package/lib/commands/issue/nudge.js +1 -1
  102. package/lib/commands/issue/report.js +1 -1
  103. package/lib/commands/issue/shared.js +1 -1
  104. package/lib/commands/kb/create.js +1 -1
  105. package/lib/commands/kb/delete.js +1 -1
  106. package/lib/commands/kb/detail.js +1 -1
  107. package/lib/commands/kb/index.js +1 -1
  108. package/lib/commands/kb/list.js +1 -1
  109. package/lib/commands/kb/search.js +1 -1
  110. package/lib/commands/kb/shared.js +1 -1
  111. package/lib/commands/kb/update.js +1 -1
  112. package/lib/commands/logs/index.js +1 -1
  113. package/lib/commands/menu/asset-update.js +1 -1
  114. package/lib/commands/menu/delete.js +1 -1
  115. package/lib/commands/menu/external-link-create.js +1 -1
  116. package/lib/commands/menu/external-link-update.js +1 -1
  117. package/lib/commands/menu/group-create.js +1 -1
  118. package/lib/commands/menu/group-update.js +1 -1
  119. package/lib/commands/menu/index.js +1 -1
  120. package/lib/commands/menu/list.js +1 -1
  121. package/lib/commands/menu/move.js +1 -1
  122. package/lib/commands/menu/regroup-start.js +1 -1
  123. package/lib/commands/menu/rename.js +1 -1
  124. package/lib/commands/menu/shared/compare-table.js +1 -1
  125. package/lib/commands/menu/shared/delete-plan.js +1 -1
  126. package/lib/commands/menu/shared/facts.js +1 -1
  127. package/lib/commands/menu/shared/index.js +1 -1
  128. package/lib/commands/menu/shared/inquirer.js +1 -1
  129. package/lib/commands/menu/shared/local-pages.js +1 -1
  130. package/lib/commands/menu/shared/logic.js +1 -1
  131. package/lib/commands/menu/shared/mutations.js +1 -1
  132. package/lib/commands/menu/shared/service.js +1 -1
  133. package/lib/commands/menu/shared/sync-core.js +1 -1
  134. package/lib/commands/menu/shared/update-core.js +1 -1
  135. package/lib/commands/menu/shared/valid-url.js +1 -1
  136. package/lib/commands/menu/sync.js +1 -1
  137. package/lib/commands/menu/visibility-update.js +1 -1
  138. package/lib/commands/notification/config-create.js +1 -1
  139. package/lib/commands/notification/config-delete.js +1 -1
  140. package/lib/commands/notification/config-list.js +1 -1
  141. package/lib/commands/notification/config-update.js +1 -1
  142. package/lib/commands/notification/index.js +1 -1
  143. package/lib/commands/notification/shared.js +1 -1
  144. package/lib/commands/ocr/index.js +1 -1
  145. package/lib/commands/page/create.js +1 -1
  146. package/lib/commands/page/custom/detail.js +1 -1
  147. package/lib/commands/page/custom/list.js +1 -1
  148. package/lib/commands/page/custom/publish.js +1 -1
  149. package/lib/commands/page/custom/shared.js +1 -1
  150. package/lib/commands/page/custom/syntax.js +1 -1
  151. package/lib/commands/page/custom/template.js +1 -1
  152. package/lib/commands/page/custom/update.js +1 -1
  153. package/lib/commands/page/data-list-status.js +1 -1
  154. package/lib/commands/page/generate-start.js +1 -1
  155. package/lib/commands/page/generate-status.js +1 -1
  156. package/lib/commands/page/index.js +1 -1
  157. package/lib/commands/page/pull.js +1 -1
  158. package/lib/commands/page/push.js +1 -1
  159. package/lib/commands/page/relation-audit.js +1 -1
  160. package/lib/commands/page/restore.js +1 -1
  161. package/lib/commands/page/shared.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  164. package/lib/commands/project/create/format-elapsed.js +1 -1
  165. package/lib/commands/project/create/main.js +1 -1
  166. package/lib/commands/project/create/materialize-project-template.js +1 -1
  167. package/lib/commands/project/create/project-name.js +1 -1
  168. package/lib/commands/project/create/project-template-archive.js +1 -1
  169. package/lib/commands/project/create/project-template-path.js +1 -1
  170. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  171. package/lib/commands/project/create/use-format-code.js +1 -1
  172. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  173. package/lib/commands/project/index.js +1 -1
  174. package/lib/commands/project/upgrade.js +1 -1
  175. package/lib/commands/registry.js +1 -1
  176. package/lib/commands/role/delete.js +1 -1
  177. package/lib/commands/role/detail.js +1 -1
  178. package/lib/commands/role/index.js +1 -1
  179. package/lib/commands/role/list.js +1 -1
  180. package/lib/commands/role/shared.js +1 -1
  181. package/lib/commands/role/update.js +1 -1
  182. package/lib/commands/role/user-add.js +1 -1
  183. package/lib/commands/role/user-remove.js +1 -1
  184. package/lib/commands/role/user-resolve.js +1 -1
  185. package/lib/commands/run/index.js +1 -1
  186. package/lib/commands/schema.js +1 -1
  187. package/lib/commands/sql/create.js +1 -1
  188. package/lib/commands/sql/delete.js +1 -1
  189. package/lib/commands/sql/detail.js +1 -1
  190. package/lib/commands/sql/exec.js +1 -1
  191. package/lib/commands/sql/index.js +1 -1
  192. package/lib/commands/sql/list.js +1 -1
  193. package/lib/commands/sql/pull.js +1 -1
  194. package/lib/commands/sql/push.js +1 -1
  195. package/lib/commands/sql/shared.js +1 -1
  196. package/lib/commands/sql/status.js +1 -1
  197. package/lib/commands/sql/validate.js +1 -1
  198. package/lib/commands/task/index.js +1 -1
  199. package/lib/commands/task/status.js +1 -1
  200. package/lib/commands/tenant/index.js +1 -1
  201. package/lib/commands/tenant/members-list.js +1 -1
  202. package/lib/commands/tenant/shared.js +1 -1
  203. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  204. package/lib/commands/user-account/index.js +1 -1
  205. package/lib/commands/workspace/add.js +1 -1
  206. package/lib/commands/workspace/index.js +1 -1
  207. package/lib/commands/workspace/remove.js +1 -1
  208. package/lib/config/domain-config.js +1 -1
  209. package/lib/config/schema.js +1 -1
  210. package/lib/constant/cdn.js +1 -1
  211. package/lib/constant/cli.js +1 -1
  212. package/lib/constant/defaults.js +1 -1
  213. package/lib/constant/domain.js +1 -1
  214. package/lib/constant/env.js +1 -1
  215. package/lib/constant/output.js +1 -1
  216. package/lib/constant/paths.js +1 -1
  217. package/lib/constant/region.js +1 -1
  218. package/lib/constant/risk.js +1 -1
  219. package/lib/context/app-resolver.js +1 -1
  220. package/lib/context/auth-resolver.js +1 -1
  221. package/lib/context/config-loader.js +1 -1
  222. package/lib/context.js +1 -1
  223. package/lib/core/alias-resolver.js +1 -1
  224. package/lib/core/api-client.d.ts +1 -7
  225. package/lib/core/api-client.js +1 -1
  226. package/lib/core/bff/config.js +1 -1
  227. package/lib/core/bff/file-system.js +1 -1
  228. package/lib/core/bff/hash.js +1 -1
  229. package/lib/core/bff/lock.js +1 -1
  230. package/lib/core/bff/utils.js +1 -1
  231. package/lib/core/db-resolver.js +1 -1
  232. package/lib/core/page/file-system.js +1 -1
  233. package/lib/core/page/hash.js +1 -1
  234. package/lib/core/page/lock.js +1 -1
  235. package/lib/core/sql-index-auditor.js +1 -1
  236. package/lib/core/sql-sync/config.js +1 -1
  237. package/lib/core/sql-sync/file-system.js +1 -1
  238. package/lib/core/sql-sync/hash.js +1 -1
  239. package/lib/core/sql-sync/lock.js +1 -1
  240. package/lib/core/sql-sync/utils.js +1 -1
  241. package/lib/core/sql-validator.js +1 -1
  242. package/lib/errors.js +1 -1
  243. package/lib/framework/build-all-flags.js +1 -1
  244. package/lib/framework/error-output.js +1 -1
  245. package/lib/framework/explicit-yes.js +1 -1
  246. package/lib/framework/flags.js +1 -1
  247. package/lib/framework/help.js +1 -1
  248. package/lib/framework/index.js +1 -1
  249. package/lib/framework/output.js +1 -1
  250. package/lib/framework/response.js +1 -1
  251. package/lib/framework/runner-alias.js +1 -1
  252. package/lib/framework/runner.js +1 -1
  253. package/lib/framework/schema-export.js +1 -1
  254. package/lib/framework/types.js +1 -1
  255. package/lib/generated/build-info.d.ts +4 -4
  256. package/lib/generated/build-info.js +1 -1
  257. package/lib/help.js +1 -1
  258. package/lib/postinstall.js +1 -1
  259. package/lib/runtime/confirmation.js +1 -1
  260. package/lib/runtime/event.js +1 -1
  261. package/lib/runtime/index.js +1 -1
  262. package/lib/runtime/queue.js +1 -1
  263. package/lib/runtime/resolve.js +1 -1
  264. package/lib/skills/builtin-skill.js +1 -1
  265. package/lib/skills/main.js +1 -1
  266. package/lib/skills/npx-skills-add.js +1 -1
  267. package/lib/skills/skill-presence.js +1 -1
  268. package/lib/telemetry/cli-command-trace.js +1 -1
  269. package/lib/telemetry/cli-help-trace.js +1 -1
  270. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  271. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  272. package/lib/telemetry/send-cli-trace-log.js +1 -1
  273. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  274. package/lib/utils/ai_config.js +1 -1
  275. package/lib/utils/apply-jq-filter.js +1 -1
  276. package/lib/utils/cdn-config.js +1 -1
  277. package/lib/utils/check-sdk-version.js +1 -1
  278. package/lib/utils/cli-version-check.js +1 -1
  279. package/lib/utils/cli-version-policy.js +1 -1
  280. package/lib/utils/config.js +1 -1
  281. package/lib/utils/entity-with-id.js +1 -1
  282. package/lib/utils/file-utils.js +1 -1
  283. package/lib/utils/guides-cdn.js +1 -1
  284. package/lib/utils/http-client.js +1 -1
  285. package/lib/utils/is-non-interactive.js +1 -1
  286. package/lib/utils/logger.js +1 -1
  287. package/lib/utils/params.js +1 -1
  288. package/lib/utils/platform.js +1 -1
  289. package/lib/utils/sleep.js +1 -1
  290. package/lib/utils/template-replacer.js +1 -1
  291. package/lib/utils/update-notice.js +1 -1
  292. package/lib/utils/version.js +1 -1
  293. package/lib/utils/with-active-cookie.js +1 -1
  294. package/lib/utils/write-cli-side-channel.js +1 -1
  295. package/package.json +1 -1
  296. package/skills/rabetbase/SKILL.md +6 -6
  297. package/skills/rabetbase/guides/database-connection-workflow.md +9 -9
  298. package/skills/rabetbase/references/rabetbase-config.md +2 -3
  299. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -2
  300. package/skills/rabetbase/references/rabetbase-db-diff-refresh.md +4 -3
  301. package/skills/rabetbase/references/rabetbase-db-diff.md +7 -22
  302. package/skills/rabetbase/references/rabetbase-db-tables.md +14 -2
  303. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a48_0x5dbd87=a48_0x31c2;(function(_0x455050,_0x350aae){const _0x3a4442=a48_0x31c2,_0x215580=_0x455050();while(!![]){try{const _0x1cf891=parseInt(_0x3a4442(0x1b8))/0x1+parseInt(_0x3a4442(0x1b5))/0x2+-parseInt(_0x3a4442(0x1c3))/0x3*(parseInt(_0x3a4442(0x1bf))/0x4)+parseInt(_0x3a4442(0x1be))/0x5*(parseInt(_0x3a4442(0x1b6))/0x6)+-parseInt(_0x3a4442(0x1c9))/0x7+parseInt(_0x3a4442(0x1b4))/0x8*(-parseInt(_0x3a4442(0x1c7))/0x9)+-parseInt(_0x3a4442(0x1c2))/0xa*(parseInt(_0x3a4442(0x1c8))/0xb);if(_0x1cf891===_0x350aae)break;else _0x215580['push'](_0x215580['shift']());}catch(_0x34233a){_0x215580['push'](_0x215580['shift']());}}}(a48_0x4b87,0xb87fe));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x5dbd87(0x1b7)};function a48_0x31c2(_0x47d972,_0x509a3e){_0x47d972=_0x47d972-0x1b0;const _0x4b876d=a48_0x4b87();let _0x31c234=_0x4b876d[_0x47d972];return _0x31c234;}export const CODE_FLAG={'name':a48_0x5dbd87(0x1b2),'type':'string','required':!![],'description':a48_0x5dbd87(0x1c4),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a48_0x5dbd87(0x1c4)};export const SQLCODE_FLAG={'name':a48_0x5dbd87(0x1b1),'type':a48_0x5dbd87(0x1b3),'required':!![],'description':a48_0x5dbd87(0x1ca),'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':a48_0x5dbd87(0x1b0),'type':a48_0x5dbd87(0x1b3),'required':![],'description':a48_0x5dbd87(0x1cb)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a48_0x5dbd87(0x1ba)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a48_0x4b87(){const _0x323b96=['10dEbEpv','3488wwJaKG','boolean','skip-connection-test','1130aOCNvN','1707qWjoqC','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update','Database\x20product\x20type','1998YfWmxU','53438ntqAOA','46613Avxoxd','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','sqlcode','code','string','15808uqxLIK','1756800tNddOO','707298KPfMfP','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','1131997SlLYDX','MYSQL','App\x20code\x20(e.g.\x20app-xxxxx)','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','number','POSTGRESQL'];a48_0x4b87=function(){return _0x323b96;};return a48_0x4b87();}export const DBLINK_ID_FLAG={'name':'id','type':a48_0x5dbd87(0x1bc),'required':!![],'description':a48_0x5dbd87(0x1bb)};export const DB_TYPE_FLAG={'name':'dbtype','type':'string','required':!![],'description':a48_0x5dbd87(0x1c6),'enum':[a48_0x5dbd87(0x1b9),a48_0x5dbd87(0x1bd)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a48_0x5dbd87(0x1c1),'type':a48_0x5dbd87(0x1c0),'description':a48_0x5dbd87(0x1c5)};
1
+ const a48_0x2fd2bb=a48_0x8045;(function(_0x11e44d,_0x7baba7){const _0x595e61=a48_0x8045,_0x5ee74d=_0x11e44d();while(!![]){try{const _0x37c8bd=-parseInt(_0x595e61(0xd9))/0x1*(parseInt(_0x595e61(0xe4))/0x2)+parseInt(_0x595e61(0xdb))/0x3*(-parseInt(_0x595e61(0xe3))/0x4)+parseInt(_0x595e61(0xce))/0x5*(-parseInt(_0x595e61(0xd8))/0x6)+-parseInt(_0x595e61(0xde))/0x7*(parseInt(_0x595e61(0xd3))/0x8)+-parseInt(_0x595e61(0xda))/0x9*(parseInt(_0x595e61(0xe1))/0xa)+parseInt(_0x595e61(0xd5))/0xb*(parseInt(_0x595e61(0xcf))/0xc)+parseInt(_0x595e61(0xdc))/0xd;if(_0x37c8bd===_0x7baba7)break;else _0x5ee74d['push'](_0x5ee74d['shift']());}catch(_0x1074e0){_0x5ee74d['push'](_0x5ee74d['shift']());}}}(a48_0x47d6,0x5288e));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}(?:_[^_\s]+_[^_\s]+)?$/i,'description':a48_0x2fd2bb(0xe6)};export const CODE_FLAG={'name':a48_0x2fd2bb(0xe2),'type':'string','required':!![],'description':a48_0x2fd2bb(0xcc),'pattern':DATASET_CODE_PATTERN};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)'};function a48_0x47d6(){const _0x3c6123=['dbtype','66DLspda','appcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','3368196pdRQsx','1nrHnDw','45iyZHZx','66879HaAEqt','25539176WusiOB','skip-connection-test','4449382jETdBl','string','POSTGRESQL','549910mwZsDh','code','48EwgnsY','53402PBjYYj','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','a\x2032-character\x20hex\x20code,\x20optionally\x20with\x20`_xx_xx`\x20suffix\x20(e.g.\x2099a909313f1fa7153186431e1c551588\x20or\x2099a909313f1fa7153186431e1c551588_75_3c7120aa)','Dataset\x20code\x20(32-char\x20hex,\x20optionally\x20with\x20_xx_xx\x20suffix)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','5xtQGpy','279348lcvDUn','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','MYSQL','App\x20code\x20(e.g.\x20app-xxxxx)','8vdOGLx'];a48_0x47d6=function(){return _0x3c6123;};return a48_0x47d6();}export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a48_0x2fd2bb(0xcd),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a48_0x2fd2bb(0xd0)}};export const APPCODE_FLAG_OPTIONAL={'name':a48_0x2fd2bb(0xd6),'type':a48_0x2fd2bb(0xdf),'required':![],'description':a48_0x2fd2bb(0xe5)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a48_0x2fd2bb(0xd2)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a48_0x8045(_0x3556c4,_0x2bc94a){_0x3556c4=_0x3556c4-0xcc;const _0x47d69e=a48_0x47d6();let _0x804520=_0x47d69e[_0x3556c4];return _0x804520;}export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a48_0x2fd2bb(0xd7)};export const DB_TYPE_FLAG={'name':a48_0x2fd2bb(0xd4),'type':a48_0x2fd2bb(0xdf),'required':!![],'description':'Database\x20product\x20type','enum':[a48_0x2fd2bb(0xd1),a48_0x2fd2bb(0xe0)]};export const SKIP_CONNECTION_TEST_FLAG={'name':a48_0x2fd2bb(0xdd),'type':'boolean','description':'Skip\x20testing\x20the\x20unsaved\x20database\x20configuration\x20before\x20create/update'};
@@ -1 +1 @@
1
- (function(_0x1b13ca,_0x936510){const _0x480787=a49_0x476d,_0x275e53=_0x1b13ca();while(!![]){try{const _0x282235=parseInt(_0x480787(0x149))/0x1*(parseInt(_0x480787(0x148))/0x2)+parseInt(_0x480787(0x150))/0x3*(-parseInt(_0x480787(0x15b))/0x4)+parseInt(_0x480787(0x14e))/0x5*(-parseInt(_0x480787(0x14d))/0x6)+-parseInt(_0x480787(0x15c))/0x7+parseInt(_0x480787(0x14b))/0x8*(-parseInt(_0x480787(0x157))/0x9)+-parseInt(_0x480787(0x154))/0xa*(parseInt(_0x480787(0x151))/0xb)+-parseInt(_0x480787(0x14c))/0xc*(-parseInt(_0x480787(0x158))/0xd);if(_0x282235===_0x936510)break;else _0x275e53['push'](_0x275e53['shift']());}catch(_0x490040){_0x275e53['push'](_0x275e53['shift']());}}}(a49_0xfeed,0x8abfb));import{existsSync,statSync}from'node:fs';function a49_0xfeed(){const _0x333c9e=['ceil','size','45gHnxGH','184678CYnatj','File\x20is\x20not\x20a\x20regular\x20file:\x20','File\x20not\x20found:\x20','20czlKdt','31297xWxNmm','toFixed','994958EFHavq','2yYABHr','trim','702664edCMJJ','1704qRCkqM','382488CvLWUA','10hDdhTh','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','597675FZhXPn','1377574wMtcmV','validation','isFile','70DPVeTj'];a49_0xfeed=function(){return _0x333c9e;};return a49_0xfeed();}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x1b49f7){const _0x37a194=a49_0x476d;if(_0x1b49f7>=BYTES_PER_MB){const _0x246e50=Math[_0x37a194(0x155)](_0x1b49f7/BYTES_PER_MB*0x64)/0x64;return _0x246e50[_0x37a194(0x15d)](0x2)+'\x20MB';}return _0x1b49f7+'\x20B';}function a49_0x476d(_0x26a86c,_0x3951b8){_0x26a86c=_0x26a86c-0x148;const _0xfeed68=a49_0xfeed();let _0x476dbb=_0xfeed68[_0x26a86c];return _0x476dbb;}export function requireDevelopmentUploadFile(_0x4b87d2,_0x260e7c){const _0x3fb865=a49_0x476d,_0x30ad3f=_0x4b87d2[_0x3fb865(0x14a)]();if(!_0x30ad3f)throw CliErrors[_0x3fb865(0x152)](_0x260e7c+'\x20path\x20is\x20required.');if(!existsSync(_0x30ad3f))throw CliErrors[_0x3fb865(0x152)](_0x3fb865(0x15a)+_0x30ad3f);const _0x22f110=statSync(_0x30ad3f);if(!_0x22f110[_0x3fb865(0x153)]())throw CliErrors[_0x3fb865(0x152)](_0x3fb865(0x159)+_0x30ad3f);if(_0x22f110['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x3fb865(0x152)](_0x3fb865(0x14f)+_0x30ad3f+'\x20('+formatBytes(_0x22f110[_0x3fb865(0x156)])+')');return{'path':_0x30ad3f,'size':_0x22f110[_0x3fb865(0x156)]};}
1
+ (function(_0x35cf93,_0x53e756){const _0x51d6fa=a49_0x3de3,_0x409fd3=_0x35cf93();while(!![]){try{const _0x4cb16c=parseInt(_0x51d6fa(0x16c))/0x1+-parseInt(_0x51d6fa(0x171))/0x2+parseInt(_0x51d6fa(0x175))/0x3*(-parseInt(_0x51d6fa(0x179))/0x4)+parseInt(_0x51d6fa(0x176))/0x5*(-parseInt(_0x51d6fa(0x172))/0x6)+-parseInt(_0x51d6fa(0x16d))/0x7+parseInt(_0x51d6fa(0x17b))/0x8+parseInt(_0x51d6fa(0x174))/0x9;if(_0x4cb16c===_0x53e756)break;else _0x409fd3['push'](_0x409fd3['shift']());}catch(_0x30e40a){_0x409fd3['push'](_0x409fd3['shift']());}}}(a49_0x55f5,0x9445a));function a49_0x3de3(_0xc7a323,_0x3cb41e){_0xc7a323=_0xc7a323-0x16c;const _0x55f517=a49_0x55f5();let _0x3de3f5=_0x55f517[_0xc7a323];return _0x3de3f5;}function a49_0x55f5(){const _0x36f0a5=['983590hWtshc','1925028HuUwul','File\x20is\x20not\x20a\x20regular\x20file:\x20','5761206aczspF','3qbXQta','5BkIggG','ceil','validation','950248aeGsMz','isFile','2778512cEjhjJ','File\x20not\x20found:\x20','\x20path\x20is\x20required.','786869XCVIQa','817600GnMyIl','toFixed','trim','size'];a49_0x55f5=function(){return _0x36f0a5;};return a49_0x55f5();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0x376b3){const _0x459e24=a49_0x3de3;if(_0x376b3>=BYTES_PER_MB){const _0x1a7a12=Math[_0x459e24(0x177)](_0x376b3/BYTES_PER_MB*0x64)/0x64;return _0x1a7a12[_0x459e24(0x16e)](0x2)+'\x20MB';}return _0x376b3+'\x20B';}export function requireDevelopmentUploadFile(_0x4b35c2,_0x4523c7){const _0x3f12f1=a49_0x3de3,_0x2980fe=_0x4b35c2[_0x3f12f1(0x16f)]();if(!_0x2980fe)throw CliErrors['validation'](_0x4523c7+_0x3f12f1(0x17d));if(!existsSync(_0x2980fe))throw CliErrors['validation'](_0x3f12f1(0x17c)+_0x2980fe);const _0x2587dc=statSync(_0x2980fe);if(!_0x2587dc[_0x3f12f1(0x17a)]())throw CliErrors[_0x3f12f1(0x178)](_0x3f12f1(0x173)+_0x2980fe);if(_0x2587dc[_0x3f12f1(0x170)]>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors['validation']('File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x2980fe+'\x20('+formatBytes(_0x2587dc[_0x3f12f1(0x170)])+')');return{'path':_0x2980fe,'size':_0x2587dc[_0x3f12f1(0x170)]};}
@@ -1 +1 @@
1
- function a50_0x1698(_0x3bf1f3,_0x2b3d00){_0x3bf1f3=_0x3bf1f3-0x10f;const _0xc0c82a=a50_0xc0c8();let _0x169840=_0xc0c82a[_0x3bf1f3];return _0x169840;}(function(_0x459576,_0x6f6257){const _0x12c9da=a50_0x1698,_0x575c80=_0x459576();while(!![]){try{const _0x169211=-parseInt(_0x12c9da(0x112))/0x1+-parseInt(_0x12c9da(0x118))/0x2*(parseInt(_0x12c9da(0x114))/0x3)+parseInt(_0x12c9da(0x11b))/0x4+parseInt(_0x12c9da(0x119))/0x5+parseInt(_0x12c9da(0x116))/0x6+-parseInt(_0x12c9da(0x110))/0x7+parseInt(_0x12c9da(0x10f))/0x8;if(_0x169211===_0x6f6257)break;else _0x575c80['push'](_0x575c80['shift']());}catch(_0x3d81c8){_0x575c80['push'](_0x575c80['shift']());}}}(a50_0xc0c8,0xb46c1));function a50_0xc0c8(){const _0x1113f3=['App\x20Code\x20cannot\x20be\x20empty','501DsNnVy','length','1779516kjYQMd','trim','17410rGVqoy','4524980fksENK','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','5102340wgVuWt','App\x20Code\x20cannot\x20exceed\x20100\x20characters','16088712yhvmrf','9759127LMcmsJ','test','901351HfzLwl'];a50_0xc0c8=function(){return _0x1113f3;};return a50_0xc0c8();}export function validateAppcode(_0x99374f){const _0x7d0e13=a50_0x1698,_0x4744eb=_0x99374f[_0x7d0e13(0x117)]();if(!_0x4744eb)return{'valid':![],'message':_0x7d0e13(0x113)};if(_0x4744eb[_0x7d0e13(0x115)]>0x64)return{'valid':![],'message':_0x7d0e13(0x11c)};if(!/^[A-Za-z0-9_-]+$/[_0x7d0e13(0x111)](_0x4744eb))return{'valid':![],'message':_0x7d0e13(0x11a)};return{'valid':!![]};}
1
+ (function(_0x106ff2,_0x4076aa){const _0x5beb2f=a50_0x1329,_0x2a221a=_0x106ff2();while(!![]){try{const _0x1f00d7=parseInt(_0x5beb2f(0x123))/0x1+-parseInt(_0x5beb2f(0x119))/0x2*(-parseInt(_0x5beb2f(0x122))/0x3)+parseInt(_0x5beb2f(0x11c))/0x4*(parseInt(_0x5beb2f(0x121))/0x5)+parseInt(_0x5beb2f(0x11b))/0x6*(-parseInt(_0x5beb2f(0x117))/0x7)+-parseInt(_0x5beb2f(0x11f))/0x8+parseInt(_0x5beb2f(0x118))/0x9+parseInt(_0x5beb2f(0x120))/0xa;if(_0x1f00d7===_0x4076aa)break;else _0x2a221a['push'](_0x2a221a['shift']());}catch(_0x19c302){_0x2a221a['push'](_0x2a221a['shift']());}}}(a50_0x4f1f,0x33903));export function validateAppcode(_0x43c4f1){const _0x1ac813=a50_0x1329,_0xdb8f40=_0x43c4f1[_0x1ac813(0x11e)]();if(!_0xdb8f40)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0xdb8f40['length']>0x64)return{'valid':![],'message':_0x1ac813(0x11d)};if(!/^[A-Za-z0-9_-]+$/[_0x1ac813(0x11a)](_0xdb8f40))return{'valid':![],'message':_0x1ac813(0x116)};return{'valid':!![]};}function a50_0x1329(_0x5235b7,_0x134d1d){_0x5235b7=_0x5235b7-0x116;const _0x4f1f11=a50_0x4f1f();let _0x13295f=_0x4f1f11[_0x5235b7];return _0x13295f;}function a50_0x4f1f(){const _0x26f9f6=['259650gMvwMu','366308gXMcqW','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','375184etPFaC','2996910mpLGvB','5pKpWfc','39TtxJmc','70391cYhJBz','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','56hRqcPu','1118925butpIV','2818bHASRJ','test'];a50_0x4f1f=function(){return _0x26f9f6;};return a50_0x4f1f();}
@@ -1 +1 @@
1
- const a51_0x16899a=a51_0x4be7;function a51_0x4be7(_0x4e1dfd,_0x398340){_0x4e1dfd=_0x4e1dfd-0x161;const _0x40d07a=a51_0x40d0();let _0x4be7a7=_0x40d07a[_0x4e1dfd];return _0x4be7a7;}function a51_0x40d0(){const _0x4109e7=['riskLevel','610548KNqXOq','45870BJePjy','1342683zdDrYu','config','Global','2rklMqv','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','\x20config\x20delete\x20<key>\x20[--global]','679yVLOuc','Top-level\x20key\x20\x22','81986THdtTa','call','Usage:\x20','\x22\x20is\x20not\x20deletable.','\x20already\x20absent','trim','boolean','Delete\x20a\x20config\x20value\x20from\x20one\x20scope','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','5fIYGhe','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','898428GlqQrn','prototype','3156GZdWqF','key','args','defaultApp','36360bCoDzs','688923MoYlXC','global','30xMRZIu','\x20deleted','Missing\x20key\x20argument.','delete','validation'];a51_0x40d0=function(){return _0x4109e7;};return a51_0x40d0();}(function(_0x241e4e,_0x14e8d2){const _0x12282d=a51_0x4be7,_0x45141c=_0x241e4e();while(!![]){try{const _0x3f6b37=parseInt(_0x12282d(0x17a))/0x1*(parseInt(_0x12282d(0x17f))/0x2)+parseInt(_0x12282d(0x177))/0x3+parseInt(_0x12282d(0x166))/0x4*(parseInt(_0x12282d(0x163))/0x5)+-parseInt(_0x12282d(0x175))/0x6+-parseInt(_0x12282d(0x17d))/0x7*(-parseInt(_0x12282d(0x16c))/0x8)+parseInt(_0x12282d(0x16d))/0x9*(parseInt(_0x12282d(0x16f))/0xa)+-parseInt(_0x12282d(0x176))/0xb*(parseInt(_0x12282d(0x168))/0xc);if(_0x3f6b37===_0x14e8d2)break;else _0x45141c['push'](_0x45141c['shift']());}catch(_0x227d72){_0x45141c['push'](_0x45141c['shift']());}}}(a51_0x40d0,0x37390));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_0x16899a(0x16b)]);async function execute(_0x2fb029){const _0xc32d8f=a51_0x16899a,_0x559ef0=_0x2fb029[_0xc32d8f(0x16a)][0x0]?.[_0xc32d8f(0x184)]();if(!_0x559ef0)throw CliErrors[_0xc32d8f(0x173)](_0xc32d8f(0x171),_0xc32d8f(0x181)+CLI_BIN_NAME+_0xc32d8f(0x17c));if(_0x559ef0===_0xc32d8f(0x174))throw CliErrors['validation'](_0xc32d8f(0x165));if(!isTopLevelConfigKey(_0x559ef0)&&!EXTRA_DELETABLE_KEYS['has'](_0x559ef0)&&!LEGACY_DELETABLE_KEYS['has'](_0x559ef0))throw CliErrors[_0xc32d8f(0x173)](_0xc32d8f(0x17e)+_0x559ef0+_0xc32d8f(0x182),_0xc32d8f(0x162));const _0x395eaf=resolveWriteScope({'global':_0x2fb029['bool'](_0xc32d8f(0x16e))}),_0x5c8248=readScopedConfig(_0x395eaf),_0x512ab0=Object[_0xc32d8f(0x167)]['hasOwnProperty'][_0xc32d8f(0x180)](_0x5c8248,_0x559ef0);_0x512ab0&&(delete _0x5c8248[_0x559ef0],writeScopedConfig(_0x5c8248,_0x395eaf));const _0x417dd6=_0x395eaf==='global'?_0xc32d8f(0x179):'Project';return{'ok':!![],'message':_0x512ab0?'✓\x20'+_0x417dd6+'\x20'+_0x559ef0+_0xc32d8f(0x170):'✓\x20'+_0x417dd6+'\x20'+_0x559ef0+_0xc32d8f(0x183),'data':{'key':_0x559ef0,'scope':_0x395eaf,'changed':_0x512ab0}};}export const configDeleteDefinition={'service':a51_0x16899a(0x178),'command':a51_0x16899a(0x172),'description':a51_0x16899a(0x161),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x16899a(0x169),'description':a51_0x16899a(0x17b),'required':!![]}],'flags':[{'name':'global','type':a51_0x16899a(0x185),'description':a51_0x16899a(0x164),'default':![]}],'execute':execute};
1
+ const a51_0x36faac=a51_0x581b;(function(_0x4a2f5e,_0x2a4241){const _0x4aa61e=a51_0x581b,_0x6f7f84=_0x4a2f5e();while(!![]){try{const _0x1f914d=parseInt(_0x4aa61e(0x1c4))/0x1+parseInt(_0x4aa61e(0x1c9))/0x2+-parseInt(_0x4aa61e(0x1be))/0x3*(parseInt(_0x4aa61e(0x1c7))/0x4)+-parseInt(_0x4aa61e(0x1ca))/0x5*(-parseInt(_0x4aa61e(0x1c8))/0x6)+parseInt(_0x4aa61e(0x1b4))/0x7*(parseInt(_0x4aa61e(0x1c1))/0x8)+parseInt(_0x4aa61e(0x1b0))/0x9+-parseInt(_0x4aa61e(0x1c3))/0xa;if(_0x1f914d===_0x2a4241)break;else _0x6f7f84['push'](_0x6f7f84['shift']());}catch(_0x42652e){_0x6f7f84['push'](_0x6f7f84['shift']());}}}(a51_0x4e46,0xce625));import{CliErrors}from'../../errors.js';function a51_0x581b(_0x11ad1f,_0x4b9c23){_0x11ad1f=_0x11ad1f-0x1ad;const _0x4e4658=a51_0x4e46();let _0x581bdc=_0x4e4658[_0x11ad1f];return _0x581bdc;}import{CLI_BIN_NAME,isTopLevelConfigKey,readScopedConfig,resolveWriteScope,writeScopedConfig}from'../../commands/config/shared.js';const LEGACY_DELETABLE_KEYS=new Set([a51_0x36faac(0x1b9)]),EXTRA_DELETABLE_KEYS=new Set(['defaultApp']);function a51_0x4e46(){const _0x35eb59=['1078014krIOSY','Top-level\x20key\x20\x22','trim','1180hBAsrp','1146FnULgq','1017526hEJATq','1250wyTxfC','write','global','call','Delete\x20from\x20global\x20config\x20(~/.rabetbase.json)','5978664tzgoGv','key','Project','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','443086mCknrn','validation','delete','riskLevel','has','inherit','prototype','Use\x20workspace\x20commands\x20to\x20modify\x20apps\x20and\x20their\x20default\x20selection.','Top-level\x20config\x20key;\x20legacy\x20inherit\x20is\x20accepted\x20for\x20migration','bool','12744hnGNcV','args','Global','184gjQEYP','\x22\x20is\x20not\x20deletable.','16561680QXHBeO'];a51_0x4e46=function(){return _0x35eb59;};return a51_0x4e46();}async function execute(_0x16c364){const _0x4ac3d6=a51_0x36faac,_0x50d93e=_0x16c364[_0x4ac3d6(0x1bf)][0x0]?.[_0x4ac3d6(0x1c6)]();if(!_0x50d93e)throw CliErrors['validation']('Missing\x20key\x20argument.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20<key>\x20[--global]');if(_0x50d93e===_0x4ac3d6(0x1b7))throw CliErrors[_0x4ac3d6(0x1b5)](_0x4ac3d6(0x1b3));if(!isTopLevelConfigKey(_0x50d93e)&&!EXTRA_DELETABLE_KEYS[_0x4ac3d6(0x1b8)](_0x50d93e)&&!LEGACY_DELETABLE_KEYS[_0x4ac3d6(0x1b8)](_0x50d93e))throw CliErrors[_0x4ac3d6(0x1b5)](_0x4ac3d6(0x1c5)+_0x50d93e+_0x4ac3d6(0x1c2),_0x4ac3d6(0x1bb));const _0x466a38=resolveWriteScope({'global':_0x16c364[_0x4ac3d6(0x1bd)](_0x4ac3d6(0x1ad))}),_0x555b30=readScopedConfig(_0x466a38),_0x3c2b9d=Object[_0x4ac3d6(0x1ba)]['hasOwnProperty'][_0x4ac3d6(0x1ae)](_0x555b30,_0x50d93e);_0x3c2b9d&&(delete _0x555b30[_0x50d93e],writeScopedConfig(_0x555b30,_0x466a38));const _0xce02b5=_0x466a38===_0x4ac3d6(0x1ad)?_0x4ac3d6(0x1c0):_0x4ac3d6(0x1b2);return{'ok':!![],'message':_0x3c2b9d?'✓\x20'+_0xce02b5+'\x20'+_0x50d93e+'\x20deleted':'✓\x20'+_0xce02b5+'\x20'+_0x50d93e+'\x20already\x20absent','data':{'key':_0x50d93e,'scope':_0x466a38,'changed':_0x3c2b9d}};}export const configDeleteDefinition={'service':'config','command':a51_0x36faac(0x1b6),'description':'Delete\x20a\x20config\x20value\x20from\x20one\x20scope','risk':a51_0x36faac(0x1cb),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':a51_0x36faac(0x1b1),'description':a51_0x36faac(0x1bc),'required':!![]}],'flags':[{'name':a51_0x36faac(0x1ad),'type':'boolean','description':a51_0x36faac(0x1af),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a52_0x32eb6d=a52_0x5778;(function(_0x4eafc2,_0x217142){const _0x47d6b4=a52_0x5778,_0x1110fa=_0x4eafc2();while(!![]){try{const _0x3d81c6=parseInt(_0x47d6b4(0x71))/0x1+parseInt(_0x47d6b4(0x77))/0x2+parseInt(_0x47d6b4(0x6b))/0x3+-parseInt(_0x47d6b4(0x79))/0x4+parseInt(_0x47d6b4(0x6c))/0x5+parseInt(_0x47d6b4(0x6d))/0x6+-parseInt(_0x47d6b4(0x6e))/0x7;if(_0x3d81c6===_0x217142)break;else _0x1110fa['push'](_0x1110fa['shift']());}catch(_0xdcd24c){_0x1110fa['push'](_0x1110fa['shift']());}}}(a52_0x50e1,0x44657));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a52_0x5778(_0x38013c,_0x4aa23c){_0x38013c=_0x38013c-0x6b;const _0x50e1b2=a52_0x50e1();let _0x5778ec=_0x50e1b2[_0x38013c];return _0x5778ec;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xc22bf1){const _0xacf5b=a52_0x5778,_0x3cd4b2=_0xc22bf1['str'](_0xacf5b(0x70));if(!_0x3cd4b2)throw CliErrors[_0xacf5b(0x7a)]('Missing\x20key.',_0xacf5b(0x74)+CLI_BIN_NAME+_0xacf5b(0x73));const _0x197ff2=readConfig(),_0x42d860=_0x3cd4b2===_0xacf5b(0x72)?_0xacf5b(0x6f):_0x3cd4b2,_0x1ed020=_0x197ff2[_0x42d860];if(_0x1ed020===undefined)throw CliErrors[_0xacf5b(0x7a)](_0xacf5b(0x75)+_0x3cd4b2);return{'ok':!![],'data':typeof _0x1ed020==='object'?_0x1ed020:{[_0x42d860]:_0x1ed020},'message':typeof _0x1ed020===_0xacf5b(0x7c)?undefined:String(_0x1ed020)};}function a52_0x50e1(){const _0x1ae132=['1108014vgkNzh','Get\x20a\x20config\x20value\x20by\x20key','1246620YWMfnF','validation','get','object','1130373ZIZnyL','2095930rCRizv','3346044JPzncA','12095069syZryo','appcode','key','412015oZiMXM','app','\x20config\x20get\x20--key\x20<key>','Usage:\x20','Key\x20not\x20found:\x20','string'];a52_0x50e1=function(){return _0x1ae132;};return a52_0x50e1();}export const configGetDefinition={'service':'config','command':a52_0x32eb6d(0x7b),'description':a52_0x32eb6d(0x78),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x32eb6d(0x70),'type':a52_0x32eb6d(0x76),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a52_0x395137=a52_0x4a8c;(function(_0x14b649,_0x4e2b10){const _0x30873c=a52_0x4a8c,_0x5cf8a5=_0x14b649();while(!![]){try{const _0x3a6649=parseInt(_0x30873c(0x172))/0x1+parseInt(_0x30873c(0x17e))/0x2+-parseInt(_0x30873c(0x185))/0x3*(-parseInt(_0x30873c(0x176))/0x4)+-parseInt(_0x30873c(0x17a))/0x5*(parseInt(_0x30873c(0x181))/0x6)+parseInt(_0x30873c(0x173))/0x7+-parseInt(_0x30873c(0x178))/0x8*(parseInt(_0x30873c(0x180))/0x9)+-parseInt(_0x30873c(0x17d))/0xa;if(_0x3a6649===_0x4e2b10)break;else _0x5cf8a5['push'](_0x5cf8a5['shift']());}catch(_0x4a6d56){_0x5cf8a5['push'](_0x5cf8a5['shift']());}}}(a52_0x2ae0,0x590c7));import{CliErrors}from'../../errors.js';function a52_0x2ae0(){const _0x10e190=['818342KVJaQf','Missing\x20key.','9pkPcXE','4278rmJUnU','read','key','Usage:\x20','887613sSLIQY','app','Get\x20a\x20config\x20value\x20by\x20key','213425egJQgX','4698960nXwGAq','appcode','get','4QUCsWN','object','4903112DcYkVH','\x20config\x20get\x20--key\x20<key>','1200xdndvL','validation','string','4409950lZlwoW'];a52_0x2ae0=function(){return _0x10e190;};return a52_0x2ae0();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a52_0x4a8c(_0x132f6f,_0x216e97){_0x132f6f=_0x132f6f-0x170;const _0x2ae0f1=a52_0x2ae0();let _0x4a8c4f=_0x2ae0f1[_0x132f6f];return _0x4a8c4f;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x3f8f63){const _0x1a0dd6=a52_0x4a8c,_0x1cf69c=_0x3f8f63['str'](_0x1a0dd6(0x183));if(!_0x1cf69c)throw CliErrors['validation'](_0x1a0dd6(0x17f),_0x1a0dd6(0x184)+CLI_BIN_NAME+_0x1a0dd6(0x179));const _0x23293c=readConfig(),_0x262a4c=_0x1cf69c===_0x1a0dd6(0x170)?_0x1a0dd6(0x174):_0x1cf69c,_0x344d86=_0x23293c[_0x262a4c];if(_0x344d86===undefined)throw CliErrors[_0x1a0dd6(0x17b)]('Key\x20not\x20found:\x20'+_0x1cf69c);return{'ok':!![],'data':typeof _0x344d86==='object'?_0x344d86:{[_0x262a4c]:_0x344d86},'message':typeof _0x344d86===_0x1a0dd6(0x177)?undefined:String(_0x344d86)};}export const configGetDefinition={'service':'config','command':a52_0x395137(0x175),'description':a52_0x395137(0x171),'risk':a52_0x395137(0x182),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x395137(0x183),'type':a52_0x395137(0x17c),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a53_0x36b1(){const _0xfde355=['774hRTqIv','9162811xXFcPn','20680FQNGAp','4uwiyax','406huxMzm','2808000PHXalk','3401499kADTXS','78770OyPWGT','6346590bnwpTg','6691ByuQIh','8wQmpem','12828XIDAYH'];a53_0x36b1=function(){return _0xfde355;};return a53_0x36b1();}(function(_0x4f4ac7,_0xd07c0){const _0x27d87a=a53_0x3dc9,_0x1d3417=_0x4f4ac7();while(!![]){try{const _0x3fa943=-parseInt(_0x27d87a(0xe2))/0x1*(-parseInt(_0x27d87a(0xdd))/0x2)+-parseInt(_0x27d87a(0xdf))/0x3*(parseInt(_0x27d87a(0xdc))/0x4)+-parseInt(_0x27d87a(0xde))/0x5+parseInt(_0x27d87a(0xe1))/0x6+-parseInt(_0x27d87a(0xe6))/0x7*(parseInt(_0x27d87a(0xe3))/0x8)+-parseInt(_0x27d87a(0xe5))/0x9*(parseInt(_0x27d87a(0xe0))/0xa)+parseInt(_0x27d87a(0xe7))/0xb*(parseInt(_0x27d87a(0xe4))/0xc);if(_0x3fa943===_0xd07c0)break;else _0x1d3417['push'](_0x1d3417['shift']());}catch(_0x5d9ccb){_0x1d3417['push'](_0x1d3417['shift']());}}}(a53_0x36b1,0xb59fa));function a53_0x3dc9(_0x4b704c,_0x4851d0){_0x4b704c=_0x4b704c-0xdc;const _0x36b1c6=a53_0x36b1();let _0x3dc9e2=_0x36b1c6[_0x4b704c];return _0x3dc9e2;}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';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];
1
+ (function(_0x32bc18,_0x42f5aa){const _0x4b5d11=a53_0x4401,_0x2132ee=_0x32bc18();while(!![]){try{const _0x51d3ca=parseInt(_0x4b5d11(0x91))/0x1*(parseInt(_0x4b5d11(0x8e))/0x2)+parseInt(_0x4b5d11(0x90))/0x3+-parseInt(_0x4b5d11(0x97))/0x4+parseInt(_0x4b5d11(0x96))/0x5+-parseInt(_0x4b5d11(0x93))/0x6*(parseInt(_0x4b5d11(0x8f))/0x7)+-parseInt(_0x4b5d11(0x95))/0x8+-parseInt(_0x4b5d11(0x94))/0x9*(parseInt(_0x4b5d11(0x92))/0xa);if(_0x51d3ca===_0x42f5aa)break;else _0x2132ee['push'](_0x2132ee['shift']());}catch(_0x2cddbf){_0x2132ee['push'](_0x2132ee['shift']());}}}(a53_0x6b79,0x2e6fa));function a53_0x4401(_0x2f370a,_0x4cf3ba){_0x2f370a=_0x2f370a-0x8e;const _0x6b79a7=a53_0x6b79();let _0x44010d=_0x6b79a7[_0x2f370a];return _0x44010d;}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';export const configDefinitions=[configInitDefinition,configListDefinition,configGetDefinition,configSetDefinition,configDeleteDefinition];function a53_0x6b79(){const _0x11a147=['852423mcnjwY','3467sxdqHi','20sHizpK','35124zXisae','467595oovOSx','414352dzOJlV','1291230hkmVVE','1413396EzBcse','104tOzosR','28tJZPmH'];a53_0x6b79=function(){return _0x11a147;};return a53_0x6b79();}
@@ -1 +1 @@
1
- const a54_0x3b5a79=a54_0x55e3;(function(_0x51e7d1,_0x355189){const _0x5f1142=a54_0x55e3,_0x265c4f=_0x51e7d1();while(!![]){try{const _0x292704=parseInt(_0x5f1142(0xcf))/0x1+-parseInt(_0x5f1142(0xdf))/0x2*(parseInt(_0x5f1142(0xe1))/0x3)+-parseInt(_0x5f1142(0xcb))/0x4*(parseInt(_0x5f1142(0xc9))/0x5)+parseInt(_0x5f1142(0xf4))/0x6*(parseInt(_0x5f1142(0xca))/0x7)+-parseInt(_0x5f1142(0xc2))/0x8*(-parseInt(_0x5f1142(0xe6))/0x9)+-parseInt(_0x5f1142(0xdd))/0xa+parseInt(_0x5f1142(0xe3))/0xb;if(_0x292704===_0x355189)break;else _0x265c4f['push'](_0x265c4f['shift']());}catch(_0x334248){_0x265c4f['push'](_0x265c4f['shift']());}}}(a54_0xc621,0x60e24));import{select}from'@inquirer/prompts';function a54_0xc621(){const _0x31ee5a=['region','75zAZpCF','70hBeUIs','88008PdlwMn','name','user-domain','Custom\x20platform\x20API\x20HTTPS\x20origin','360507MYxCDA','assign','global','Rabetbase\x20connection\x20configured\x20for\x20region:\x20','Independent-deployment\x20Domain\x20JSON\x20file','Indonesia\x20(id)','Available\x20regions:\x20','validation','independent','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','cancelled','app-domain','Official\x20Lovrabet\x20region:\x20cn\x20or\x20id','6704230bheIDp','Custom\x20knowledge-base\x20HTTPS\x20origin','38vcfKUl','str','58095WWJHSe','init','8981654EvHiLb','string','Custom\x20User\x20HTTPS\x20origin','4743QWjYAf','api-domain','runtime-domain','join','Region\x20\x22','keys','Custom\x20SkillHub\x20HTTPS\x20origin','skill-domain','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','write','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','Mainland\x20China\x20(cn)','ExitPromptError','kb-domain','109764muTzys','domain-config','6152YopPeU','Select\x20Lovrabet\x20region','config','nonInteractive','Custom\x20Runtime\x20HTTPS\x20origin','length'];a54_0xc621=function(){return _0x31ee5a;};return a54_0xc621();}import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainFlags}from'../../config/domain-config.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';export const configInitFlags=[{'name':a54_0x3b5a79(0xc8),'type':a54_0x3b5a79(0xe4),'description':a54_0x3b5a79(0xdc),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x3b5a79(0xf5),'type':'string','description':a54_0x3b5a79(0xd3)},{'name':a54_0x3b5a79(0xcd),'type':a54_0x3b5a79(0xe4),'description':a54_0x3b5a79(0xe5)},{'name':a54_0x3b5a79(0xe7),'type':a54_0x3b5a79(0xe4),'description':a54_0x3b5a79(0xce)},{'name':a54_0x3b5a79(0xe8),'type':a54_0x3b5a79(0xe4),'description':a54_0x3b5a79(0xc6)},{'name':a54_0x3b5a79(0xed),'type':'string','description':a54_0x3b5a79(0xec)},{'name':a54_0x3b5a79(0xf3),'type':'string','description':a54_0x3b5a79(0xde)},{'name':a54_0x3b5a79(0xdb),'type':a54_0x3b5a79(0xe4),'description':a54_0x3b5a79(0xee)}];async function resolveRegion(_0x548f7c){const _0x3abfac=a54_0x3b5a79,_0x833533=_0x548f7c['str'](_0x3abfac(0xc8));if(_0x833533){if(!isEnabledLovrabetRegion(_0x833533))throw CliErrors[_0x3abfac(0xd6)](_0x3abfac(0xea)+_0x833533+'\x22\x20is\x20not\x20currently\x20available.',_0x3abfac(0xd5)+ENABLED_LOVRABET_REGION_VALUES[_0x3abfac(0xe9)](',\x20'));return _0x833533;}if(_0x548f7c[_0x3abfac(0xc5)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x3abfac(0xc3),'default':DEFAULT_LOVRABET_REGION,'choices':[{'name':_0x3abfac(0xf1),'value':'cn'},{'name':_0x3abfac(0xd4),'value':'id'}]});}catch(_0x18ec14){if(_0x18ec14?.[_0x3abfac(0xcc)]===_0x3abfac(0xf2))throw CliErrors[_0x3abfac(0xda)]();throw _0x18ec14;}}export async function executeConfigInit(_0x465e82){const _0x3c3bb6=a54_0x3b5a79,_0x444d50=resolveDomainFlags(_0x465e82),_0xef71e4=Object[_0x3c3bb6(0xeb)](_0x444d50)[_0x3c3bb6(0xc7)]>0x0;if(_0xef71e4&&_0x465e82[_0x3c3bb6(0xe0)](_0x3c3bb6(0xc8)))throw CliErrors[_0x3c3bb6(0xd6)](_0x3c3bb6(0xf0));const _0x33768f=readScopedConfig('global');for(const _0x4d9408 of DOMAIN_CONFIG_FIELDS)delete _0x33768f[_0x4d9408];for(const _0x3440d3 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x33768f[_0x3440d3];let _0x1040b4=null;if(_0xef71e4)delete _0x33768f[_0x3c3bb6(0xc8)],Object[_0x3c3bb6(0xd0)](_0x33768f,_0x444d50);else{_0x1040b4=await resolveRegion(_0x465e82);if(_0x1040b4===DEFAULT_LOVRABET_REGION)delete _0x33768f['region'];else _0x33768f['region']=_0x1040b4;}return writeScopedConfig(_0x33768f,_0x3c3bb6(0xd1)),{'ok':!![],'message':_0xef71e4?_0x3c3bb6(0xd9)+Object[_0x3c3bb6(0xeb)](_0x444d50)[_0x3c3bb6(0xe9)](',\x20')+'.':_0x3c3bb6(0xd2)+_0x1040b4+'.','data':{'mode':_0xef71e4?_0x3c3bb6(0xd7):'official','region':_0x1040b4,'domains':_0x444d50}};}function a54_0x55e3(_0x179b7a,_0x4e8421){_0x179b7a=_0x179b7a-0xc2;const _0xc621df=a54_0xc621();let _0x55e3e6=_0xc621df[_0x179b7a];return _0x55e3e6;}export const configInitDefinition={'service':a54_0x3b5a79(0xc4),'command':a54_0x3b5a79(0xe2),'description':a54_0x3b5a79(0xd8),'risk':a54_0x3b5a79(0xef),'confirmationDescription':'Updates\x20the\x20global\x20Rabetbase\x20region\x20or\x20independent-deployment\x20domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
1
+ function a54_0x4017(_0x5af0fb,_0x381777){_0x5af0fb=_0x5af0fb-0x96;const _0x4671a9=a54_0x4671();let _0x40178c=_0x4671a9[_0x5af0fb];return _0x40178c;}const a54_0x22e924=a54_0x4017;(function(_0x37bb61,_0x1fbd85){const _0x4b317f=a54_0x4017,_0xb57902=_0x37bb61();while(!![]){try{const _0x55c423=parseInt(_0x4b317f(0xb7))/0x1+parseInt(_0x4b317f(0x99))/0x2*(parseInt(_0x4b317f(0xae))/0x3)+-parseInt(_0x4b317f(0x96))/0x4*(parseInt(_0x4b317f(0xa5))/0x5)+-parseInt(_0x4b317f(0x9c))/0x6+-parseInt(_0x4b317f(0xbc))/0x7*(-parseInt(_0x4b317f(0x9d))/0x8)+parseInt(_0x4b317f(0xbf))/0x9+-parseInt(_0x4b317f(0xb9))/0xa;if(_0x55c423===_0x1fbd85)break;else _0xb57902['push'](_0xb57902['shift']());}catch(_0x1cadf7){_0xb57902['push'](_0xb57902['shift']());}}}(a54_0x4671,0x282d5));import{select}from'@inquirer/prompts';import{CliErrors}from'../../errors.js';import{readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{DOMAIN_CONFIG_FIELDS,LEGACY_DOMAIN_CONFIG_FIELDS,resolveDomainFlags}from'../../config/domain-config.js';import{DEFAULT_LOVRABET_REGION,ENABLED_LOVRABET_REGION_VALUES,isEnabledLovrabetRegion}from'../../constant/region.js';export const configInitFlags=[{'name':'region','type':a54_0x22e924(0xbe),'description':a54_0x22e924(0x9e),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':a54_0x22e924(0xac),'type':a54_0x22e924(0xbe),'description':a54_0x22e924(0xb1)},{'name':a54_0x22e924(0xa8),'type':a54_0x22e924(0xbe),'description':a54_0x22e924(0xc1)},{'name':a54_0x22e924(0xb8),'type':'string','description':a54_0x22e924(0xb4)},{'name':a54_0x22e924(0xa7),'type':'string','description':'Custom\x20Runtime\x20HTTPS\x20origin'},{'name':'skill-domain','type':a54_0x22e924(0xbe),'description':a54_0x22e924(0x9b)},{'name':'kb-domain','type':a54_0x22e924(0xbe),'description':a54_0x22e924(0xb5)},{'name':a54_0x22e924(0xb0),'type':a54_0x22e924(0xbe),'description':a54_0x22e924(0xa2)}];async function resolveRegion(_0x1a3642){const _0x15aa43=a54_0x22e924,_0x59392f=_0x1a3642['str'](_0x15aa43(0xb6));if(_0x59392f){if(!isEnabledLovrabetRegion(_0x59392f))throw CliErrors[_0x15aa43(0x98)](_0x15aa43(0xa3)+_0x59392f+_0x15aa43(0xaa),_0x15aa43(0xc4)+ENABLED_LOVRABET_REGION_VALUES['join'](',\x20'));return _0x59392f;}if(_0x1a3642[_0x15aa43(0xbb)])return DEFAULT_LOVRABET_REGION;try{return await select({'message':_0x15aa43(0xb2),'default':DEFAULT_LOVRABET_REGION,'choices':[{'name':_0x15aa43(0x9a),'value':'cn'},{'name':_0x15aa43(0xa9),'value':'id'}]});}catch(_0xaf939b){if(_0xaf939b?.[_0x15aa43(0xba)]===_0x15aa43(0xaf))throw CliErrors[_0x15aa43(0x97)]();throw _0xaf939b;}}export async function executeConfigInit(_0x2a78be){const _0x1412ef=a54_0x22e924,_0x2a9954=resolveDomainFlags(_0x2a78be),_0x2333f4=Object[_0x1412ef(0xc0)](_0x2a9954)[_0x1412ef(0xc3)]>0x0;if(_0x2333f4&&_0x2a78be[_0x1412ef(0xbd)](_0x1412ef(0xb6)))throw CliErrors[_0x1412ef(0x98)](_0x1412ef(0xa6));const _0x4f6d13=readScopedConfig(_0x1412ef(0x9f));for(const _0x14c58b of DOMAIN_CONFIG_FIELDS)delete _0x4f6d13[_0x14c58b];for(const _0x3d5352 of LEGACY_DOMAIN_CONFIG_FIELDS)delete _0x4f6d13[_0x3d5352];let _0x40fb1d=null;if(_0x2333f4)delete _0x4f6d13[_0x1412ef(0xb6)],Object[_0x1412ef(0xa1)](_0x4f6d13,_0x2a9954);else{_0x40fb1d=await resolveRegion(_0x2a78be);if(_0x40fb1d===DEFAULT_LOVRABET_REGION)delete _0x4f6d13[_0x1412ef(0xb6)];else _0x4f6d13[_0x1412ef(0xb6)]=_0x40fb1d;}return writeScopedConfig(_0x4f6d13,'global'),{'ok':!![],'message':_0x2333f4?_0x1412ef(0xab)+Object[_0x1412ef(0xc0)](_0x2a9954)[_0x1412ef(0xa0)](',\x20')+'.':'Rabetbase\x20connection\x20configured\x20for\x20region:\x20'+_0x40fb1d+'.','data':{'mode':_0x2333f4?'independent':'official','region':_0x40fb1d,'domains':_0x2a9954}};}function a54_0x4671(){const _0x185d72=['api-domain','1089710HLSCzy','name','nonInteractive','875yixxbo','str','string','1266498PONpIR','keys','Custom\x20User\x20HTTPS\x20origin','config','length','Available\x20regions:\x20','4456AQYwmb','cancelled','validation','1096XTNJqI','Mainland\x20China\x20(cn)','Custom\x20SkillHub\x20HTTPS\x20origin','1840542FxtSmW','20968OGORsK','Official\x20Lovrabet\x20region:\x20cn\x20or\x20id','global','join','assign','Custom\x20Lovrabet\x20workspace\x20HTTPS\x20origin','Region\x20\x22','Initialize\x20the\x20global\x20Lovrabet\x20region\x20or\x20independent-deployment\x20Domains','1295PIOMuZ','Choose\x20either\x20an\x20official\x20region\x20or\x20independent-deployment\x20Domains,\x20not\x20both.','runtime-domain','user-domain','Indonesia\x20(id)','\x22\x20is\x20not\x20currently\x20available.','Rabetbase\x20connection\x20configured\x20for\x20independent\x20deployment.\x20Domains:\x20','domain-config','write','741HYzAMn','ExitPromptError','app-domain','Independent-deployment\x20Domain\x20JSON\x20file','Select\x20Lovrabet\x20region','Updates\x20the\x20global\x20Rabetbase\x20region\x20or\x20independent-deployment\x20domain\x20configuration.\x20Cookie,\x20output\x20format,\x20and\x20app\x20bindings\x20stay\x20unchanged.','Custom\x20platform\x20API\x20HTTPS\x20origin','Custom\x20knowledge-base\x20HTTPS\x20origin','region','265116YKWksP'];a54_0x4671=function(){return _0x185d72;};return a54_0x4671();}export const configInitDefinition={'service':a54_0x22e924(0xc2),'command':'init','description':a54_0x22e924(0xa4),'risk':a54_0x22e924(0xad),'confirmationDescription':a54_0x22e924(0xb3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':configInitFlags,'execute':executeConfigInit};
@@ -1 +1 @@
1
- const a55_0x3a84b8=a55_0x52eb;(function(_0x3c3dad,_0x14727b){const _0x36487d=a55_0x52eb,_0xbb15ae=_0x3c3dad();while(!![]){try{const _0x63e90f=parseInt(_0x36487d(0x6f))/0x1+parseInt(_0x36487d(0x73))/0x2+-parseInt(_0x36487d(0x6e))/0x3+-parseInt(_0x36487d(0x7a))/0x4*(parseInt(_0x36487d(0x78))/0x5)+parseInt(_0x36487d(0x77))/0x6+-parseInt(_0x36487d(0x75))/0x7+-parseInt(_0x36487d(0x71))/0x8*(parseInt(_0x36487d(0x76))/0x9);if(_0x63e90f===_0x14727b)break;else _0xbb15ae['push'](_0xbb15ae['shift']());}catch(_0x14d2da){_0xbb15ae['push'](_0xbb15ae['shift']());}}}(a55_0x29d0,0xc3744));function a55_0x52eb(_0xcccba0,_0x2b5b4c){_0xcccba0=_0xcccba0-0x6e;const _0x29d013=a55_0x29d0();let _0x52eb01=_0x29d013[_0xcccba0];return _0x52eb01;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a55_0x29d0(){const _0x2c9191=['global','95221esRSDX','2792421GsDNNA','3649710zaRYPN','10ASQdQr','config','833320PYyMbT','list','2166948xLfrsv','1125847CBxnzg','List\x20all\x20config\x20values','16GqMugJ','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','1679130sWhOxi'];a55_0x29d0=function(){return _0x2c9191;};return a55_0x29d0();}async function execute(_0x362d6c){const _0x3f52ca=a55_0x52eb,_0x233eba=_0x362d6c['bool'](_0x3f52ca(0x74))?readScopedConfig(_0x3f52ca(0x74)):readConfig();return{'ok':!![],'data':_0x233eba};}export const configListDefinition={'service':a55_0x3a84b8(0x79),'command':a55_0x3a84b8(0x7b),'description':a55_0x3a84b8(0x70),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a55_0x3a84b8(0x74),'type':'boolean','description':a55_0x3a84b8(0x72),'default':![]}],'execute':execute};
1
+ const a55_0x119a5e=a55_0x66c8;(function(_0xa17f42,_0x2c5b51){const _0x88c45f=a55_0x66c8,_0x153515=_0xa17f42();while(!![]){try{const _0x1ea79c=parseInt(_0x88c45f(0x142))/0x1+-parseInt(_0x88c45f(0x13c))/0x2+-parseInt(_0x88c45f(0x139))/0x3+-parseInt(_0x88c45f(0x13b))/0x4+parseInt(_0x88c45f(0x13d))/0x5+parseInt(_0x88c45f(0x13f))/0x6*(parseInt(_0x88c45f(0x143))/0x7)+parseInt(_0x88c45f(0x13a))/0x8*(-parseInt(_0x88c45f(0x138))/0x9);if(_0x1ea79c===_0x2c5b51)break;else _0x153515['push'](_0x153515['shift']());}catch(_0x38256d){_0x153515['push'](_0x153515['shift']());}}}(a55_0x166f,0xd3198));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a55_0x66c8(_0x44b4c6,_0x3eb523){_0x44b4c6=_0x44b4c6-0x138;const _0x166f11=a55_0x166f();let _0x66c876=_0x166f11[_0x44b4c6];return _0x66c876;}function a55_0x166f(){const _0x4afc2e=['bool','426CjLPrw','boolean','global','1495436vBCHIz','56357mOtzHH','57654GpvzlB','496653FhotSG','392lDoXeV','4576388CksNJK','1439694XsiQDD','5704980AbckWF'];a55_0x166f=function(){return _0x4afc2e;};return a55_0x166f();}async function execute(_0x2445a1){const _0x1a1f71=a55_0x66c8,_0x2f57fc=_0x2445a1[_0x1a1f71(0x13e)]('global')?readScopedConfig(_0x1a1f71(0x141)):readConfig();return{'ok':!![],'data':_0x2f57fc};}export const configListDefinition={'service':'config','command':'list','description':'List\x20all\x20config\x20values','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a55_0x119a5e(0x140),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a56_0x41eb03=a56_0x2d6d;(function(_0x1177b6,_0x45220b){const _0x20026c=a56_0x2d6d,_0x730393=_0x1177b6();while(!![]){try{const _0xa896be=-parseInt(_0x20026c(0x164))/0x1+-parseInt(_0x20026c(0x180))/0x2+parseInt(_0x20026c(0x173))/0x3+-parseInt(_0x20026c(0x175))/0x4+parseInt(_0x20026c(0x184))/0x5+-parseInt(_0x20026c(0x165))/0x6+parseInt(_0x20026c(0x16e))/0x7;if(_0xa896be===_0x45220b)break;else _0x730393['push'](_0x730393['shift']());}catch(_0x9b0d7f){_0x730393['push'](_0x730393['shift']());}}}(a56_0x257c,0x68d5a));function a56_0x2d6d(_0x95504e,_0x1e2f21){_0x95504e=_0x95504e-0x15e;const _0x257c19=a56_0x257c();let _0x2d6d95=_0x257c19[_0x95504e];return _0x2d6d95;}import{CliErrors}from'../../errors.js';function a56_0x257c(){const _0x329c3d=['\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','12740266lAuXmx','Project','env','bool','Top-level\x20key\x20\x22','1252668LmVwYQ','Missing\x20key.','3067252EPsKIC','write','keys','str','app','value','appcode','`,\x20`','apps','Usage:\x20','includes','839906uVMWCU','boolean','validation','Set\x20a\x20config\x20value','251640veXjHx','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','locale','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Invalid\x20locale\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','length','\x22.\x20Allowed:\x20','config','key','Global','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Settable\x20top-level\x20keys:\x20','\x20appcode\x20set\x20to:\x20','string','object','425576kfHIIk','1477068cFgBoz','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','join','\x20set\x20to:\x20','Use\x20`','global','riskLevel','Invalid\x20value\x20for\x20\x22'];a56_0x257c=function(){return _0x329c3d;};return a56_0x257c();}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(_0x5b4a13){const _0x57c61d=a56_0x2d6d,_0x362e5b=_0x5b4a13[_0x57c61d(0x178)](_0x57c61d(0x18d)),_0x5f1301=_0x5b4a13[_0x57c61d(0x178)](_0x57c61d(0x17a));if(!_0x362e5b)throw CliErrors[_0x57c61d(0x182)](_0x57c61d(0x174),_0x57c61d(0x17e)+CLI_BIN_NAME+_0x57c61d(0x16d));if(_0x5f1301===undefined||_0x5f1301==='')throw CliErrors[_0x57c61d(0x182)]('Missing\x20value.','Usage:\x20'+CLI_BIN_NAME+_0x57c61d(0x16d));let _0x50d504=_0x362e5b,_0x53646f=_0x5f1301;if(_0x5f1301[_0x57c61d(0x18a)]>0x1f4)throw CliErrors[_0x57c61d(0x182)](_0x57c61d(0x189));if(_0x362e5b===_0x57c61d(0x16b))throw CliErrors[_0x57c61d(0x182)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x362e5b))throw CliErrors[_0x57c61d(0x182)](_0x57c61d(0x172)+_0x362e5b+'\x22\x20is\x20not\x20settable.',_0x57c61d(0x160)+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x362e5b]&&!CONFIG_ENUM_VALUES[_0x362e5b][_0x57c61d(0x17f)](_0x5f1301))throw CliErrors['validation'](_0x57c61d(0x16c)+_0x362e5b+_0x57c61d(0x18b)+CONFIG_ENUM_VALUES[_0x362e5b][_0x57c61d(0x167)](',\x20'));if(_0x362e5b==='locale'&&!normalizeLocale(_0x5f1301))throw CliErrors[_0x57c61d(0x182)](_0x57c61d(0x188),_0x57c61d(0x187));DOMAIN_CONFIG_FIELDS[_0x57c61d(0x17f)](_0x362e5b)&&(_0x53646f=normalizeDomainOrigin(_0x362e5b,_0x5f1301));const _0x39d4a5={'global':_0x5b4a13[_0x57c61d(0x171)](_0x57c61d(0x16a))},_0x197ecd=resolveWriteScope(_0x39d4a5),_0x5cf049=readScopedConfig(_0x197ecd);_0x362e5b===_0x57c61d(0x179)&&(_0x50d504=_0x57c61d(0x17b),delete _0x5cf049['app']);_0x362e5b===_0x57c61d(0x186)&&(_0x53646f=normalizeLocale(_0x5f1301));if(_0x362e5b===_0x57c61d(0x170)){_0x53646f=normalizeEnv(_0x5f1301);if(!isProduction(_0x53646f)&&!isDaily(_0x53646f))throw CliErrors[_0x57c61d(0x182)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x362e5b===_0x57c61d(0x17b)){const _0x268f05=_0x5cf049[_0x57c61d(0x17d)]&&typeof _0x5cf049[_0x57c61d(0x17d)]===_0x57c61d(0x163)?Object[_0x57c61d(0x177)](_0x5cf049[_0x57c61d(0x17d)]):[];if(_0x268f05[_0x57c61d(0x18a)]>0x0)throw CliErrors[_0x57c61d(0x182)](_0x57c61d(0x15f),_0x57c61d(0x169)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x53646f+_0x57c61d(0x17c)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x5a2791=buildCanonicalProjectConfig({..._0x5cf049},{'appCodes':[_0x53646f],'env':typeof _0x5cf049[_0x57c61d(0x170)]===_0x57c61d(0x162)?_0x5cf049[_0x57c61d(0x170)]:undefined});writeScopedConfig(_0x5a2791,_0x197ecd);const _0x4db565=_0x197ecd==='global'?_0x57c61d(0x15e):_0x57c61d(0x16f);return{'ok':!![],'message':'✓\x20'+_0x4db565+_0x57c61d(0x161)+_0x53646f+_0x57c61d(0x166)};}_0x5cf049[_0x50d504]=_0x53646f,writeScopedConfig(_0x5cf049,_0x197ecd);const _0xb55e2d=_0x197ecd===_0x57c61d(0x16a)?'Global':_0x57c61d(0x16f);return{'ok':!![],'message':'✓\x20'+_0xb55e2d+'\x20'+_0x50d504+_0x57c61d(0x168)+_0x53646f};}export const configSetDefinition={'service':a56_0x41eb03(0x18c),'command':'set','description':a56_0x41eb03(0x183),'risk':a56_0x41eb03(0x176),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a56_0x41eb03(0x18d),'type':a56_0x41eb03(0x162),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a56_0x41eb03(0x162),'description':'Config\x20value','required':!![]},{'name':a56_0x41eb03(0x16a),'type':a56_0x41eb03(0x181),'description':a56_0x41eb03(0x185),'default':![]}],'execute':execute};
1
+ const a56_0x383948=a56_0x4670;(function(_0x380b5e,_0x14ccad){const _0x33232b=a56_0x4670,_0x16bddb=_0x380b5e();while(!![]){try{const _0x191adb=parseInt(_0x33232b(0x94))/0x1*(parseInt(_0x33232b(0xb8))/0x2)+-parseInt(_0x33232b(0xae))/0x3*(-parseInt(_0x33232b(0x9d))/0x4)+parseInt(_0x33232b(0xa3))/0x5*(parseInt(_0x33232b(0xa7))/0x6)+parseInt(_0x33232b(0xc3))/0x7+-parseInt(_0x33232b(0xa4))/0x8+parseInt(_0x33232b(0x9c))/0x9+parseInt(_0x33232b(0xa2))/0xa*(-parseInt(_0x33232b(0xab))/0xb);if(_0x191adb===_0x14ccad)break;else _0x16bddb['push'](_0x16bddb['shift']());}catch(_0x6a2941){_0x16bddb['push'](_0x16bddb['shift']());}}}(a56_0x4255,0x63491));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';function a56_0x4670(_0x97e0cb,_0x5e8bb4){_0x97e0cb=_0x97e0cb-0x94;const _0x42551a=a56_0x4255();let _0x4670fc=_0x42551a[_0x97e0cb];return _0x4670fc;}function a56_0x4255(){const _0x3fb5d2=['includes','length','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x22.\x20Allowed:\x20','set','join','keys','Project','\x20set\x20to:\x20','Top-level\x20key\x20\x22','1970332woPRcz','apps','1PAkxih','riskLevel','string','env','Missing\x20key.','bool','value','validation','3438612LpLfcK','2553016DgpKNh','key','Invalid\x20value\x20for\x20\x22','global','appcode','1530SJIENn','2527690WMObmC','3900368dSCSbk','Missing\x20value.','app','6NeHvui','\x20(stored\x20as\x20a\x20single\x20app\x20profile)','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','103345lQfvKL','locale','`,\x20`','3TROPXR','Usage:\x20','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','\x20appcode\x20set\x20to:\x20','Invalid\x20locale\x20value.','Set\x20a\x20config\x20value','config','write','str','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','1048636NWdexS'];a56_0x4255=function(){return _0x3fb5d2;};return a56_0x4255();}async function execute(_0x4080a1){const _0x2cf3d1=a56_0x4670,_0x1491c9=_0x4080a1[_0x2cf3d1(0xb6)]('key'),_0x25ad38=_0x4080a1[_0x2cf3d1(0xb6)]('value');if(!_0x1491c9)throw CliErrors[_0x2cf3d1(0x9b)](_0x2cf3d1(0x98),_0x2cf3d1(0xaf)+CLI_BIN_NAME+_0x2cf3d1(0xb7));if(_0x25ad38===undefined||_0x25ad38==='')throw CliErrors['validation'](_0x2cf3d1(0xa5),_0x2cf3d1(0xaf)+CLI_BIN_NAME+_0x2cf3d1(0xb7));let _0x119dd2=_0x1491c9,_0x6a4f65=_0x25ad38;if(_0x25ad38[_0x2cf3d1(0xba)]>0x1f4)throw CliErrors[_0x2cf3d1(0x9b)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x1491c9===_0x2cf3d1(0x95))throw CliErrors[_0x2cf3d1(0x9b)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(!isTopLevelConfigKey(_0x1491c9))throw CliErrors[_0x2cf3d1(0x9b)](_0x2cf3d1(0xc2)+_0x1491c9+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(CONFIG_ENUM_VALUES[_0x1491c9]&&!CONFIG_ENUM_VALUES[_0x1491c9][_0x2cf3d1(0xb9)](_0x25ad38))throw CliErrors[_0x2cf3d1(0x9b)](_0x2cf3d1(0x9f)+_0x1491c9+_0x2cf3d1(0xbc)+CONFIG_ENUM_VALUES[_0x1491c9][_0x2cf3d1(0xbe)](',\x20'));if(_0x1491c9==='locale'&&!normalizeLocale(_0x25ad38))throw CliErrors[_0x2cf3d1(0x9b)](_0x2cf3d1(0xb2),_0x2cf3d1(0xa9));DOMAIN_CONFIG_FIELDS[_0x2cf3d1(0xb9)](_0x1491c9)&&(_0x6a4f65=normalizeDomainOrigin(_0x1491c9,_0x25ad38));const _0x18bc03={'global':_0x4080a1[_0x2cf3d1(0x99)](_0x2cf3d1(0xa0))},_0x233593=resolveWriteScope(_0x18bc03),_0x13475a=readScopedConfig(_0x233593);_0x1491c9===_0x2cf3d1(0xa6)&&(_0x119dd2='appcode',delete _0x13475a[_0x2cf3d1(0xa6)]);_0x1491c9===_0x2cf3d1(0xac)&&(_0x6a4f65=normalizeLocale(_0x25ad38));if(_0x1491c9===_0x2cf3d1(0x97)){_0x6a4f65=normalizeEnv(_0x25ad38);if(!isProduction(_0x6a4f65)&&!isDaily(_0x6a4f65))throw CliErrors[_0x2cf3d1(0x9b)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x2cf3d1(0xb0));}if(_0x1491c9===_0x2cf3d1(0xa1)){const _0x2960ca=_0x13475a[_0x2cf3d1(0xc4)]&&typeof _0x13475a[_0x2cf3d1(0xc4)]==='object'?Object[_0x2cf3d1(0xbf)](_0x13475a[_0x2cf3d1(0xc4)]):[];if(_0x2960ca['length']>0x0)throw CliErrors[_0x2cf3d1(0x9b)](_0x2cf3d1(0xbb),'Use\x20`'+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20'+_0x6a4f65+_0x2cf3d1(0xad)+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0xa00a67=buildCanonicalProjectConfig({..._0x13475a},{'appCodes':[_0x6a4f65],'env':typeof _0x13475a['env']===_0x2cf3d1(0x96)?_0x13475a['env']:undefined});writeScopedConfig(_0xa00a67,_0x233593);const _0x421a88=_0x233593===_0x2cf3d1(0xa0)?'Global':_0x2cf3d1(0xc0);return{'ok':!![],'message':'✓\x20'+_0x421a88+_0x2cf3d1(0xb1)+_0x6a4f65+_0x2cf3d1(0xa8)};}_0x13475a[_0x119dd2]=_0x6a4f65,writeScopedConfig(_0x13475a,_0x233593);const _0x33755d=_0x233593==='global'?'Global':_0x2cf3d1(0xc0);return{'ok':!![],'message':'✓\x20'+_0x33755d+'\x20'+_0x119dd2+_0x2cf3d1(0xc1)+_0x6a4f65};}export const configSetDefinition={'service':a56_0x383948(0xb4),'command':a56_0x383948(0xbd),'description':a56_0x383948(0xb3),'risk':a56_0x383948(0xb5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a56_0x383948(0x9e),'type':a56_0x383948(0x96),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a56_0x383948(0x9a),'type':a56_0x383948(0x96),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':a56_0x383948(0xaa),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x50c953,_0x28c1bb){var _0x475eaa=a57_0x5ba8,_0x7c87ca=_0x50c953();while(!![]){try{var _0x305900=parseInt(_0x475eaa(0x161))/0x1*(-parseInt(_0x475eaa(0x15f))/0x2)+-parseInt(_0x475eaa(0x15b))/0x3+-parseInt(_0x475eaa(0x164))/0x4+-parseInt(_0x475eaa(0x15c))/0x5+-parseInt(_0x475eaa(0x165))/0x6*(-parseInt(_0x475eaa(0x163))/0x7)+parseInt(_0x475eaa(0x15e))/0x8+parseInt(_0x475eaa(0x15d))/0x9;if(_0x305900===_0x28c1bb)break;else _0x7c87ca['push'](_0x7c87ca['shift']());}catch(_0x3d963f){_0x7c87ca['push'](_0x7c87ca['shift']());}}}(a57_0xff69,0xc1d30));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a57_0x5ba8(_0xf01125,_0x302464){_0xf01125=_0xf01125-0x15b;var _0xff69b6=a57_0xff69();var _0x5ba824=_0xff69b6[_0xf01125];return _0x5ba824;}export{CLI_BIN_NAME};export{normalizeLocale};function a57_0xff69(){var _0x6b5bfc=['280634KjiHGj','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','10NKwwRq','global','14VIcQlW','4127704VcAXrb','3375708urafjz','1541496nLvuqV','7237905FkWlGM','31921146rInmPx','4147064apvUKD'];a57_0xff69=function(){return _0x6b5bfc;};return a57_0xff69();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x3a5e3e){var _0x481a01=a57_0x5ba8;if(_0x3a5e3e[_0x481a01(0x162)])return _0x481a01(0x162);if(!isInProject())throw CliErrors['validation'](_0x481a01(0x160),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return'project';}export function readScopedConfig(_0x4cf3d6){return readConfigFile(resolveWriteConfigPath(_0x4cf3d6));}export function writeScopedConfig(_0x3b8372,_0x47c5e5){writeConfigFile(resolveWriteConfigPath(_0x47c5e5),_0x3b8372);}
1
+ (function(_0x202755,_0x3d37bf){var _0x1c0429=a57_0x3ef1,_0x37640d=_0x202755();while(!![]){try{var _0x4e7af7=-parseInt(_0x1c0429(0xf0))/0x1+-parseInt(_0x1c0429(0xfc))/0x2*(-parseInt(_0x1c0429(0xfb))/0x3)+-parseInt(_0x1c0429(0xf2))/0x4+parseInt(_0x1c0429(0xf4))/0x5*(-parseInt(_0x1c0429(0xf9))/0x6)+parseInt(_0x1c0429(0xf5))/0x7+parseInt(_0x1c0429(0xfa))/0x8+-parseInt(_0x1c0429(0xf7))/0x9*(parseInt(_0x1c0429(0xf8))/0xa);if(_0x4e7af7===_0x3d37bf)break;else _0x37640d['push'](_0x37640d['shift']());}catch(_0x8f5bfe){_0x37640d['push'](_0x37640d['shift']());}}}(a57_0x1a58,0xc6862));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';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};function a57_0x1a58(){var _0x5e5d9f=['55CZdLFC','11254285RimyaZ','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1936539ShUHUz','10wjNuHg','536592zJeieZ','2554864WJosWy','3219789gBtaRv','2jaNflm','33714BCIGZr','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3818340lYInTs','project'];a57_0x1a58=function(){return _0x5e5d9f;};return a57_0x1a58();}export{normalizeLocale};function a57_0x3ef1(_0xef34b2,_0x237d9f){_0xef34b2=_0xef34b2-0xf0;var _0x1a5834=a57_0x1a58();var _0x3ef132=_0x1a5834[_0xef34b2];return _0x3ef132;}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x5875ea){var _0x71735f=a57_0x3ef1;if(_0x5875ea['global'])return'global';if(!isInProject())throw CliErrors['validation'](_0x71735f(0xf6),_0x71735f(0xf1)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20first.');return _0x71735f(0xf3);}export function readScopedConfig(_0x355f86){return readConfigFile(resolveWriteConfigPath(_0x355f86));}export function writeScopedConfig(_0x47965d,_0x54d048){writeConfigFile(resolveWriteConfigPath(_0x54d048),_0x47965d);}
@@ -1 +1 @@
1
- const a58_0x26e644=a58_0x2cd3;(function(_0x4c8803,_0x597c37){const _0xe695b0=a58_0x2cd3,_0x10732d=_0x4c8803();while(!![]){try{const _0x42c811=-parseInt(_0xe695b0(0xb5))/0x1+-parseInt(_0xe695b0(0xaf))/0x2*(-parseInt(_0xe695b0(0xdf))/0x3)+-parseInt(_0xe695b0(0xa3))/0x4+parseInt(_0xe695b0(0xac))/0x5*(-parseInt(_0xe695b0(0xcd))/0x6)+-parseInt(_0xe695b0(0xcf))/0x7*(-parseInt(_0xe695b0(0xb1))/0x8)+parseInt(_0xe695b0(0xc7))/0x9+parseInt(_0xe695b0(0xc9))/0xa*(parseInt(_0xe695b0(0xd7))/0xb);if(_0x42c811===_0x597c37)break;else _0x10732d['push'](_0x10732d['shift']());}catch(_0x4bb0e4){_0x10732d['push'](_0x10732d['shift']());}}}(a58_0x5b6d,0xa0737));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';function a58_0x2cd3(_0x2c25e0,_0x385443){_0x2c25e0=_0x2c25e0-0xa0;const _0x5b6d4e=a58_0x5b6d();let _0x2cd336=_0x5b6d4e[_0x2c25e0];return _0x2cd336;}import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const BACKEND_PATH=a58_0x26e644(0xc2),UNGROUPED_BUSINESS_GROUP='ungrouped';export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x54edd4,input:_0xf6f245,dryRun:_0x23ed40}){const _0x4eaa52=a58_0x26e644;validateInput(_0xf6f245);const _0x59edfa=normalizeBusinessGroupArgument(_0xf6f245[_0x4eaa52(0xca)]),_0x4d7023=await getDatasetDetail(_0xf6f245[_0x4eaa52(0xc1)]),_0x1d5b29=resolveBusinessGroupDataset(_0x4d7023,_0xf6f245[_0x4eaa52(0xc1)]),_0x44518b=loadCurrentBusinessGroup(_0x4d7023,_0x1d5b29);assertExpectedBusinessGroup(_0x44518b,_0xf6f245['expectBusinessGroup']);const _0x3776ff=buildBackendPayload(_0x54edd4,_0x1d5b29,_0x59edfa),_0x3ec2b7=_0x44518b!==_0x59edfa;let _0x3fe1c9;if(_0x3ec2b7&&!_0x23ed40){await updateErBusinessGroup(_0x3776ff);const _0x10ade4=await getDatasetDetail(_0x1d5b29[_0x4eaa52(0xc1)]),_0x5e1632=resolveBusinessGroupDataset(_0x10ade4,_0x1d5b29['code']),_0x461187=loadCurrentBusinessGroup(_0x10ade4,_0x5e1632);if(_0x461187!==_0x59edfa)throw CliErrors[_0x4eaa52(0xbf)](_0x4eaa52(0xb4),_0x4eaa52(0xa4)+JSON['stringify'](_0x59edfa)+_0x4eaa52(0xbc)+JSON[_0x4eaa52(0xdd)](_0x461187)+'.');_0x3fe1c9={'verified':!![],'status':'matched','afterReadback':{'businessGroup':_0x461187}};}else!_0x3ec2b7&&(_0x3fe1c9={'verified':!![],'status':_0x4eaa52(0xbe),'afterReadback':{'businessGroup':_0x44518b}});const _0x520f94={'operation':'update','appCode':_0x54edd4,'selector':{'code':_0x1d5b29['code']},'dataset':_0x1d5b29,'before':{'businessGroup':_0x44518b},'after':{'businessGroup':_0x59edfa},'changed':_0x3ec2b7,'dryRun':_0x23ed40,'submitted':_0x3ec2b7&&!_0x23ed40,'backend':{'method':_0x4eaa52(0xc3),'path':BACKEND_PATH,'payload':_0x3776ff},..._0x3fe1c9?{'verification':_0x3fe1c9}:{},'warnings':[]};return{'ok':!![],'data':_0x520f94,'message':_0x3ec2b7?_0x23ed40?_0x4eaa52(0xba)+_0x1d5b29[_0x4eaa52(0xc1)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x1d5b29[_0x4eaa52(0xc1)]:_0x4eaa52(0xbd)+_0x1d5b29[_0x4eaa52(0xc1)]};}export const datasetBusinessGroupUpdate={'service':a58_0x26e644(0xdc),'command':a58_0x26e644(0xb3),'description':a58_0x26e644(0xbb),'risk':a58_0x26e644(0xc6),'flags':[CODE_FLAG,{'name':a58_0x26e644(0xa7),'type':a58_0x26e644(0xd1),'required':!![],'description':a58_0x26e644(0xd5)},{'name':a58_0x26e644(0xad),'type':'string','required':![],'description':a58_0x26e644(0xae)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x1e5e78){validateInput(readBusinessGroupUpdateInput(_0x1e5e78));},async 'dryRun'(_0xdef949){const _0x2e4566=a58_0x26e644,_0x47ff74=await buildDatasetBusinessGroupUpdateResult({'appCode':_0xdef949[_0x2e4566(0xab)],'input':readBusinessGroupUpdateInput(_0xdef949),'dryRun':!![]});return{'method':_0x2e4566(0xc3),'url':BACKEND_PATH,'body':_0x47ff74[_0x2e4566(0xd6)][_0x2e4566(0xa2)][_0x2e4566(0xcc)],'description':_0x47ff74['message'],..._0x47ff74[_0x2e4566(0xd6)]};},async 'execute'(_0x49546e){const _0x525874=a58_0x26e644;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x49546e[_0x525874(0xab)],'input':readBusinessGroupUpdateInput(_0x49546e),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x1157ea){const _0x5eca2b=a58_0x26e644,_0x4f23de=_0x1157ea[_0x5eca2b(0xc5)](_0x5eca2b(0xad));return{'code':trim(_0x1157ea[_0x5eca2b(0xc5)](_0x5eca2b(0xc1))),'businessGroup':_0x1157ea['str']('business-group'),'expectBusinessGroup':_0x4f23de===undefined||_0x4f23de===''?undefined:_0x4f23de};}function validateInput(_0x5c59b7){const _0x15c531=a58_0x26e644;if(!trim(_0x5c59b7[_0x15c531(0xc1)]))throw CliErrors[_0x15c531(0xd8)](_0x15c531(0xb2));if(_0x5c59b7['businessGroup']===undefined)throw CliErrors[_0x15c531(0xd8)](_0x15c531(0xdb));}function resolveBusinessGroupDataset(_0x354197,_0x14f2a6){const _0x3ed040=a58_0x26e644,_0x2bf8c1=asPlainObject(_0x354197[_0x3ed040(0xdc)]),_0x4da178=asPlainObject(_0x354197['dbtableConfig']),_0x5bbc83=resolveSourceType(_0x354197,_0x2bf8c1,_0x4da178),_0x2541dd=firstString(_0x354197['modelCode'],_0x354197[_0x3ed040(0xc1)],_0x2bf8c1[_0x3ed040(0xa8)],_0x14f2a6)||_0x14f2a6;return{'id':firstNumber(_0x354197[_0x3ed040(0xc8)],_0x354197['id'],_0x2bf8c1['datasetId'])??firstString(_0x354197[_0x3ed040(0xc8)],_0x354197['id'],_0x2bf8c1[_0x3ed040(0xd3)])??null,'code':_0x2541dd,'name':firstString(_0x354197[_0x3ed040(0xb7)],_0x2bf8c1[_0x3ed040(0xc0)],_0x2bf8c1[_0x3ed040(0xb7)])||null,'sourceType':_0x5bbc83};}function resolveSourceType(_0x38cf63,_0x5cf129,_0x3b0e60){const _0x172997=a58_0x26e644,_0x3a0528=firstString(_0x38cf63[_0x172997(0xd9)],_0x38cf63[_0x172997(0xb9)],_0x5cf129[_0x172997(0xd9)],_0x5cf129[_0x172997(0xb9)])?.[_0x172997(0xa0)]()[_0x172997(0xd0)]();if(_0x3a0528===_0x172997(0xa6)||_0x3a0528==='METADATA')return _0x3a0528;if(Object['keys'](_0x3b0e60)[_0x172997(0xa5)]>0x0)return _0x172997(0xa6);throw CliErrors['validation']('Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.');}function loadCurrentBusinessGroup(_0x5ded24,_0x49658c){const _0x4efee9=a58_0x26e644,_0xc74bae=readBusinessGroupFromDatasetDetail(_0x5ded24,_0x49658c[_0x4efee9(0xb9)]);if(_0xc74bae['found'])return normalizeBusinessGroup(_0xc74bae[_0x4efee9(0xb0)]);if(_0x49658c[_0x4efee9(0xb9)]===_0x4efee9(0xde))return'';throw CliErrors[_0x4efee9(0xd8)](_0x4efee9(0xd2),_0x4efee9(0xa9));}function readBusinessGroupFromDatasetDetail(_0x3a2f00,_0x1d78d5){const _0x41e65a=a58_0x26e644,_0x6b8446=asPlainObject(_0x3a2f00[_0x41e65a(0xdc)]),_0x54491b=firstPresent(_0x3a2f00[_0x41e65a(0xca)]);if(_0x54491b[_0x41e65a(0xb8)])return _0x54491b;const _0x5e7376=firstPresent(_0x6b8446[_0x41e65a(0xca)]);if(_0x5e7376['found'])return _0x5e7376;if(_0x1d78d5==='DB_TABLE')return{'found':![]};const _0x3e7605=readBusinessGroupFromExtend(_0x3a2f00[_0x41e65a(0xcb)]);if(_0x3e7605['found'])return _0x3e7605;return readBusinessGroupFromExtend(_0x6b8446['extend']);}function readBusinessGroupFromExtend(_0x495c11){const _0x1afc7c=a58_0x26e644;if(_0x495c11===undefined||_0x495c11===null||_0x495c11==='')return{'found':![]};if(typeof _0x495c11===_0x1afc7c(0xd1))try{const _0x11f36a=JSON[_0x1afc7c(0xa1)](_0x495c11);return readBusinessGroupFromExtend(_0x11f36a);}catch{return{'found':![]};}const _0x4f0d9d=asPlainObject(_0x495c11);if(Object[_0x1afc7c(0xce)]['hasOwnProperty'][_0x1afc7c(0xda)](_0x4f0d9d,_0x1afc7c(0xca)))return{'found':!![],'value':_0x4f0d9d[_0x1afc7c(0xca)]};return{'found':![]};}function a58_0x5b6d(){const _0x5d5c4b=['dataset','stringify','METADATA','1614ClJqEz','trim','parse','backend','3220632lQhjHi','Expected\x20','length','DB_TABLE','business-group','datasetCode','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','object','appCode','1759285iPhQru','expect-business-group','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','4190zNPhXe','value','7380592WPmNhi','--code\x20is\x20required','business-group-update','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','1300253vpKrBl','number','name','found','sourceType','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Update\x20business\x20scenario\x20group',',\x20actual\x20','No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','unchanged','apiError','datasetName','code','/smartapi/question/er-config/business-group/edit','POST','isArray','str','write','3847392cqCmvi','modelId','10uxocua','businessGroup','extend','payload','18GVJdqr','prototype','7XmDfuk','toUpperCase','string','Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.','datasetId','isFinite','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed,\x20or\x20the\x20reserved\x20value\x20ungrouped\x20to\x20clear\x20it','data','14751187hZSDvQ','validation','source','call','--business-group\x20is\x20required'];a58_0x5b6d=function(){return _0x5d5c4b;};return a58_0x5b6d();}function firstPresent(..._0x29fe6d){for(const _0x1bbeda of _0x29fe6d){if(_0x1bbeda!==undefined&&_0x1bbeda!==null)return{'found':!![],'value':_0x1bbeda};}return{'found':![]};}function assertExpectedBusinessGroup(_0x126a15,_0x221ee8){const _0x26894c=a58_0x26e644;if(_0x221ee8===undefined)return;const _0x54288b=normalizeBusinessGroupArgument(_0x221ee8);if(_0x126a15!==_0x54288b)throw CliErrors[_0x26894c(0xd8)]('Expectation\x20mismatch\x20at\x20businessGroup',_0x26894c(0xa4)+JSON[_0x26894c(0xdd)](_0x54288b)+',\x20actual\x20'+JSON['stringify'](_0x126a15));}function buildBackendPayload(_0x2ad9fb,_0x12d5b1,_0x571c97){const _0x5b570e=a58_0x26e644;return{'appCode':_0x2ad9fb,'datasetCode':_0x12d5b1[_0x5b570e(0xc1)],'businessGroup':_0x571c97};}function normalizeBusinessGroup(_0x77298a){if(_0x77298a===undefined||_0x77298a===null)return'';return String(_0x77298a)['trim']();}function normalizeBusinessGroupArgument(_0x17f343){const _0x95f7d0=normalizeBusinessGroup(_0x17f343);return _0x95f7d0===UNGROUPED_BUSINESS_GROUP?'':_0x95f7d0;}function asPlainObject(_0x5f06c8){const _0x90031a=a58_0x26e644;if(!_0x5f06c8||typeof _0x5f06c8!==_0x90031a(0xaa)||Array[_0x90031a(0xc4)](_0x5f06c8))return{};return _0x5f06c8;}function firstString(..._0x58ef1a){const _0x4b5132=a58_0x26e644;for(const _0x47e0f3 of _0x58ef1a){if(typeof _0x47e0f3==='string'&&_0x47e0f3[_0x4b5132(0xa0)]())return _0x47e0f3['trim']();if(typeof _0x47e0f3===_0x4b5132(0xb6)&&Number[_0x4b5132(0xd4)](_0x47e0f3))return String(_0x47e0f3);}return undefined;}function firstNumber(..._0xb9bda9){const _0x511151=a58_0x26e644;for(const _0x556e7f of _0xb9bda9){if(typeof _0x556e7f===_0x511151(0xb6)&&Number[_0x511151(0xd4)](_0x556e7f))return _0x556e7f;if(typeof _0x556e7f===_0x511151(0xd1)&&_0x556e7f[_0x511151(0xa0)]()&&Number['isFinite'](Number(_0x556e7f)))return Number(_0x556e7f);}return null;}function trim(_0x1a7636){const _0xfabfd6=a58_0x26e644;return String(_0x1a7636||'')[_0xfabfd6(0xa0)]();}
1
+ const a58_0x3f0364=a58_0x3e8a;(function(_0x4ad3b6,_0x1a7b9c){const _0x4e0045=a58_0x3e8a,_0x3a60b6=_0x4ad3b6();while(!![]){try{const _0x36cdb3=parseInt(_0x4e0045(0x1bc))/0x1+parseInt(_0x4e0045(0x1d6))/0x2*(parseInt(_0x4e0045(0x1d5))/0x3)+parseInt(_0x4e0045(0x1e2))/0x4+parseInt(_0x4e0045(0x1a7))/0x5+-parseInt(_0x4e0045(0x1dd))/0x6*(parseInt(_0x4e0045(0x1d0))/0x7)+-parseInt(_0x4e0045(0x1ca))/0x8+-parseInt(_0x4e0045(0x1cb))/0x9;if(_0x36cdb3===_0x1a7b9c)break;else _0x3a60b6['push'](_0x3a60b6['shift']());}catch(_0x37c21b){_0x3a60b6['push'](_0x3a60b6['shift']());}}}(a58_0x36a4,0xbf737));import{APPCODE_FLAG_OPTIONAL,CODE_FLAG}from'../../commands/common/flags.js';import{getDatasetDetail,updateErBusinessGroup}from'../../core/api-client.js';function a58_0x36a4(){const _0x1431ab=['No\x20changes\x20for\x20business\x20scenario\x20group\x20on\x20dataset\x20','ungrouped','code','validation','10083vEpUwm','604JGxWCa','appCode','datasetId','Expected\x20','hasOwnProperty','isFinite','data','26214EcndRN','Business\x20scenario\x20group\x20readback\x20must\x20be\x20available\x20by\x20datasetCode;\x20upgrade\x20the\x20backend\x20read\x20contract\x20instead\x20of\x20using\x20dblinkId/tableName.','POST','write','matched','6229668EOULyW','Business\x20scenario\x20group\x20(not\x20technical):\x20use\x20<scenario>,\x20<domain>---<scenario>\x20when\x20needed,\x20or\x20the\x20reserved\x20value\x20ungrouped\x20to\x20clear\x20it','parse','--business-group\x20is\x20required','2703640szzfIg','DB_TABLE','extend','expect-business-group','found','str','/smartapi/question/er-config/business-group/edit','--code\x20is\x20required','business-group','backend','Expected\x20current\x20business\x20scenario\x20group;\x20use\x20ungrouped\x20to\x20expect\x20no\x20group;\x20mismatch\x20aborts\x20without\x20writing','dataset','call','value','payload','Expectation\x20mismatch\x20at\x20businessGroup','trim','source','length','dbtableConfig','apiError','338012oYaZoN','Dry-run:\x20business\x20scenario\x20group\x20would\x20change\x20for\x20dataset\x20','Dataset\x20sourceType\x20is\x20required\x20and\x20must\x20be\x20DB_TABLE\x20or\x20METADATA.','string','message','businessGroup','stringify','modelCode','sourceType','datasetCode','number','datasetName','Update\x20business\x20scenario\x20group','name','9907224DVYdBo','9868941QVrsVN',',\x20actual\x20','METADATA','unchanged','Business\x20scenario\x20group\x20update\x20did\x20not\x20match\x20dataset\x20detail\x20readback.','532AfFcwb'];a58_0x36a4=function(){return _0x1431ab;};return a58_0x36a4();}import{CliErrors}from'../../errors.js';const BACKEND_PATH=a58_0x3f0364(0x1ad),UNGROUPED_BUSINESS_GROUP=a58_0x3f0364(0x1d2);export async function buildDatasetBusinessGroupUpdateResult({appCode:_0x36475b,input:_0x368204,dryRun:_0x15d4eb}){const _0x22d656=a58_0x3f0364;validateInput(_0x368204);const _0x4e111f=normalizeBusinessGroupArgument(_0x368204['businessGroup']),_0x4f52d2=await getDatasetDetail(_0x368204[_0x22d656(0x1d3)]),_0x5c790b=resolveBusinessGroupDataset(_0x4f52d2,_0x368204[_0x22d656(0x1d3)]),_0x27dc15=loadCurrentBusinessGroup(_0x4f52d2,_0x5c790b);assertExpectedBusinessGroup(_0x27dc15,_0x368204['expectBusinessGroup']);const _0x115a1b=buildBackendPayload(_0x36475b,_0x5c790b,_0x4e111f),_0x291997=_0x27dc15!==_0x4e111f;let _0x32bb4f;if(_0x291997&&!_0x15d4eb){await updateErBusinessGroup(_0x115a1b);const _0x12b209=await getDatasetDetail(_0x5c790b['code']),_0x4ab811=resolveBusinessGroupDataset(_0x12b209,_0x5c790b[_0x22d656(0x1d3)]),_0x3d572a=loadCurrentBusinessGroup(_0x12b209,_0x4ab811);if(_0x3d572a!==_0x4e111f)throw CliErrors[_0x22d656(0x1bb)](_0x22d656(0x1cf),_0x22d656(0x1d9)+JSON[_0x22d656(0x1c2)](_0x4e111f)+_0x22d656(0x1cc)+JSON[_0x22d656(0x1c2)](_0x3d572a)+'.');_0x32bb4f={'verified':!![],'status':_0x22d656(0x1e1),'afterReadback':{'businessGroup':_0x3d572a}};}else!_0x291997&&(_0x32bb4f={'verified':!![],'status':_0x22d656(0x1ce),'afterReadback':{'businessGroup':_0x27dc15}});const _0xafa9b6={'operation':'update','appCode':_0x36475b,'selector':{'code':_0x5c790b[_0x22d656(0x1d3)]},'dataset':_0x5c790b,'before':{'businessGroup':_0x27dc15},'after':{'businessGroup':_0x4e111f},'changed':_0x291997,'dryRun':_0x15d4eb,'submitted':_0x291997&&!_0x15d4eb,'backend':{'method':_0x22d656(0x1df),'path':BACKEND_PATH,'payload':_0x115a1b},..._0x32bb4f?{'verification':_0x32bb4f}:{},'warnings':[]};return{'ok':!![],'data':_0xafa9b6,'message':_0x291997?_0x15d4eb?_0x22d656(0x1bd)+_0x5c790b[_0x22d656(0x1d3)]:'Updated\x20business\x20scenario\x20group\x20for\x20dataset\x20'+_0x5c790b[_0x22d656(0x1d3)]:_0x22d656(0x1d1)+_0x5c790b[_0x22d656(0x1d3)]};}export const datasetBusinessGroupUpdate={'service':a58_0x3f0364(0x1b2),'command':'business-group-update','description':a58_0x3f0364(0x1c8),'risk':a58_0x3f0364(0x1e0),'flags':[CODE_FLAG,{'name':a58_0x3f0364(0x1af),'type':'string','required':!![],'description':a58_0x3f0364(0x1e3)},{'name':a58_0x3f0364(0x1aa),'type':a58_0x3f0364(0x1bf),'required':![],'description':a58_0x3f0364(0x1b1)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3b9797){validateInput(readBusinessGroupUpdateInput(_0x3b9797));},async 'dryRun'(_0x109d6b){const _0x586b38=a58_0x3f0364,_0x2e295a=await buildDatasetBusinessGroupUpdateResult({'appCode':_0x109d6b[_0x586b38(0x1d7)],'input':readBusinessGroupUpdateInput(_0x109d6b),'dryRun':!![]});return{'method':'POST','url':BACKEND_PATH,'body':_0x2e295a[_0x586b38(0x1dc)][_0x586b38(0x1b0)][_0x586b38(0x1b5)],'description':_0x2e295a[_0x586b38(0x1c0)],..._0x2e295a[_0x586b38(0x1dc)]};},async 'execute'(_0x58f305){const _0x4184d3=a58_0x3f0364;return buildDatasetBusinessGroupUpdateResult({'appCode':_0x58f305[_0x4184d3(0x1d7)],'input':readBusinessGroupUpdateInput(_0x58f305),'dryRun':![]});}};function readBusinessGroupUpdateInput(_0x24b493){const _0x15cddd=a58_0x3f0364,_0x2ddbc7=_0x24b493[_0x15cddd(0x1ac)](_0x15cddd(0x1aa));return{'code':trim(_0x24b493['str'](_0x15cddd(0x1d3))),'businessGroup':_0x24b493[_0x15cddd(0x1ac)](_0x15cddd(0x1af)),'expectBusinessGroup':_0x2ddbc7===undefined||_0x2ddbc7===''?undefined:_0x2ddbc7};}function validateInput(_0x4c0a84){const _0x4ae2eb=a58_0x3f0364;if(!trim(_0x4c0a84[_0x4ae2eb(0x1d3)]))throw CliErrors[_0x4ae2eb(0x1d4)](_0x4ae2eb(0x1ae));if(_0x4c0a84['businessGroup']===undefined)throw CliErrors['validation'](_0x4ae2eb(0x1a6));}function resolveBusinessGroupDataset(_0x5cc217,_0xec4440){const _0x43e5b9=a58_0x3f0364,_0x577e3c=asPlainObject(_0x5cc217[_0x43e5b9(0x1b2)]),_0x4bf064=asPlainObject(_0x5cc217[_0x43e5b9(0x1ba)]),_0x232f4a=resolveSourceType(_0x5cc217,_0x577e3c,_0x4bf064),_0x1431bf=firstString(_0x5cc217[_0x43e5b9(0x1c3)],_0x5cc217[_0x43e5b9(0x1d3)],_0x577e3c[_0x43e5b9(0x1c5)],_0xec4440)||_0xec4440;return{'id':firstNumber(_0x5cc217['modelId'],_0x5cc217['id'],_0x577e3c['datasetId'])??firstString(_0x5cc217['modelId'],_0x5cc217['id'],_0x577e3c[_0x43e5b9(0x1d8)])??null,'code':_0x1431bf,'name':firstString(_0x5cc217[_0x43e5b9(0x1c9)],_0x577e3c[_0x43e5b9(0x1c7)],_0x577e3c[_0x43e5b9(0x1c9)])||null,'sourceType':_0x232f4a};}function resolveSourceType(_0x40a7d6,_0x5d0369,_0x57dd6a){const _0x4f12f3=a58_0x3f0364,_0x4fb66d=firstString(_0x40a7d6[_0x4f12f3(0x1b8)],_0x40a7d6[_0x4f12f3(0x1c4)],_0x5d0369[_0x4f12f3(0x1b8)],_0x5d0369[_0x4f12f3(0x1c4)])?.[_0x4f12f3(0x1b7)]()['toUpperCase']();if(_0x4fb66d===_0x4f12f3(0x1a8)||_0x4fb66d===_0x4f12f3(0x1cd))return _0x4fb66d;if(Object['keys'](_0x57dd6a)[_0x4f12f3(0x1b9)]>0x0)return _0x4f12f3(0x1a8);throw CliErrors[_0x4f12f3(0x1d4)](_0x4f12f3(0x1be));}function loadCurrentBusinessGroup(_0x2830bd,_0x22eb1f){const _0x1b474d=a58_0x3f0364,_0x54ba82=readBusinessGroupFromDatasetDetail(_0x2830bd,_0x22eb1f['sourceType']);if(_0x54ba82[_0x1b474d(0x1ab)])return normalizeBusinessGroup(_0x54ba82[_0x1b474d(0x1b4)]);if(_0x22eb1f[_0x1b474d(0x1c4)]===_0x1b474d(0x1cd))return'';throw CliErrors[_0x1b474d(0x1d4)]('Dataset\x20detail\x20does\x20not\x20expose\x20businessGroup.',_0x1b474d(0x1de));}function readBusinessGroupFromDatasetDetail(_0x3f0011,_0x41004f){const _0x59f08b=a58_0x3f0364,_0x3799b4=asPlainObject(_0x3f0011[_0x59f08b(0x1b2)]),_0x367da7=firstPresent(_0x3f0011[_0x59f08b(0x1c1)]);if(_0x367da7['found'])return _0x367da7;const _0x148280=firstPresent(_0x3799b4[_0x59f08b(0x1c1)]);if(_0x148280[_0x59f08b(0x1ab)])return _0x148280;if(_0x41004f===_0x59f08b(0x1a8))return{'found':![]};const _0x41311b=readBusinessGroupFromExtend(_0x3f0011[_0x59f08b(0x1a9)]);if(_0x41311b['found'])return _0x41311b;return readBusinessGroupFromExtend(_0x3799b4[_0x59f08b(0x1a9)]);}function readBusinessGroupFromExtend(_0x4909ad){const _0x31e5bd=a58_0x3f0364;if(_0x4909ad===undefined||_0x4909ad===null||_0x4909ad==='')return{'found':![]};if(typeof _0x4909ad===_0x31e5bd(0x1bf))try{const _0x514aba=JSON[_0x31e5bd(0x1e4)](_0x4909ad);return readBusinessGroupFromExtend(_0x514aba);}catch{return{'found':![]};}const _0x1f549e=asPlainObject(_0x4909ad);if(Object['prototype'][_0x31e5bd(0x1da)][_0x31e5bd(0x1b3)](_0x1f549e,_0x31e5bd(0x1c1)))return{'found':!![],'value':_0x1f549e[_0x31e5bd(0x1c1)]};return{'found':![]};}function firstPresent(..._0x5db198){for(const _0x240ad0 of _0x5db198){if(_0x240ad0!==undefined&&_0x240ad0!==null)return{'found':!![],'value':_0x240ad0};}return{'found':![]};}function a58_0x3e8a(_0x649732,_0xaf468c){_0x649732=_0x649732-0x1a6;const _0x36a4b9=a58_0x36a4();let _0x3e8ac8=_0x36a4b9[_0x649732];return _0x3e8ac8;}function assertExpectedBusinessGroup(_0x256648,_0x2bb2d7){const _0x5ace63=a58_0x3f0364;if(_0x2bb2d7===undefined)return;const _0x4a1599=normalizeBusinessGroupArgument(_0x2bb2d7);if(_0x256648!==_0x4a1599)throw CliErrors[_0x5ace63(0x1d4)](_0x5ace63(0x1b6),_0x5ace63(0x1d9)+JSON[_0x5ace63(0x1c2)](_0x4a1599)+_0x5ace63(0x1cc)+JSON[_0x5ace63(0x1c2)](_0x256648));}function buildBackendPayload(_0x3f3245,_0x18e166,_0x349851){const _0xc036fb=a58_0x3f0364;return{'appCode':_0x3f3245,'datasetCode':_0x18e166[_0xc036fb(0x1d3)],'businessGroup':_0x349851};}function normalizeBusinessGroup(_0x197f60){const _0x5b2326=a58_0x3f0364;if(_0x197f60===undefined||_0x197f60===null)return'';return String(_0x197f60)[_0x5b2326(0x1b7)]();}function normalizeBusinessGroupArgument(_0x112dfe){const _0x4ad919=normalizeBusinessGroup(_0x112dfe);return _0x4ad919===UNGROUPED_BUSINESS_GROUP?'':_0x4ad919;}function asPlainObject(_0x4f16e5){if(!_0x4f16e5||typeof _0x4f16e5!=='object'||Array['isArray'](_0x4f16e5))return{};return _0x4f16e5;}function firstString(..._0x91e6ff){const _0x41a288=a58_0x3f0364;for(const _0x453afc of _0x91e6ff){if(typeof _0x453afc===_0x41a288(0x1bf)&&_0x453afc[_0x41a288(0x1b7)]())return _0x453afc[_0x41a288(0x1b7)]();if(typeof _0x453afc===_0x41a288(0x1c6)&&Number[_0x41a288(0x1db)](_0x453afc))return String(_0x453afc);}return undefined;}function firstNumber(..._0x10a53f){const _0x54e438=a58_0x3f0364;for(const _0x52f46b of _0x10a53f){if(typeof _0x52f46b===_0x54e438(0x1c6)&&Number[_0x54e438(0x1db)](_0x52f46b))return _0x52f46b;if(typeof _0x52f46b===_0x54e438(0x1bf)&&_0x52f46b['trim']()&&Number[_0x54e438(0x1db)](Number(_0x52f46b)))return Number(_0x52f46b);}return null;}function trim(_0x236b64){const _0x57adff=a58_0x3f0364;return String(_0x236b64||'')[_0x57adff(0x1b7)]();}
@@ -1 +1 @@
1
- const a59_0x259e38=a59_0x30f0;(function(_0x11ecaa,_0x349210){const _0x5ef527=a59_0x30f0,_0x134879=_0x11ecaa();while(!![]){try{const _0x318060=parseInt(_0x5ef527(0x169))/0x1+parseInt(_0x5ef527(0x165))/0x2*(-parseInt(_0x5ef527(0x16f))/0x3)+-parseInt(_0x5ef527(0x174))/0x4+parseInt(_0x5ef527(0x166))/0x5+parseInt(_0x5ef527(0x16c))/0x6+parseInt(_0x5ef527(0x162))/0x7*(-parseInt(_0x5ef527(0x161))/0x8)+parseInt(_0x5ef527(0x172))/0x9;if(_0x318060===_0x349210)break;else _0x134879['push'](_0x134879['shift']());}catch(_0xd6360c){_0x134879['push'](_0x134879['shift']());}}}(a59_0x3bc3,0xd7c26));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0x30f0(_0x52afe2,_0x54e162){_0x52afe2=_0x52afe2-0x160;const _0x3bc31f=a59_0x3bc3();let _0x30f0f0=_0x3bc31f[_0x52afe2];return _0x30f0f0;}export const datasetBusinessGroups={'service':a59_0x259e38(0x168),'command':'business-groups','description':a59_0x259e38(0x167),'risk':a59_0x259e38(0x160),'flags':[{'name':a59_0x259e38(0x164),'type':'number','required':!![],'description':a59_0x259e38(0x171)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x166621){const _0x567f5a=a59_0x259e38,_0x29aadf=_0x166621[_0x567f5a(0x16d)]('dbid'),_0x29fa97=await getErBusinessGroupSummary(_0x166621[_0x567f5a(0x16a)],_0x29aadf);return{'ok':!![],'data':{..._0x29fa97,'scope':_0x567f5a(0x163)},'message':_0x567f5a(0x16e)+_0x29fa97[_0x567f5a(0x170)][_0x567f5a(0x173)]+_0x567f5a(0x16b)+_0x29aadf};}};function a59_0x3bc3(){const _0x130af1=['num','Found\x20','93EVLOwo','groups','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','2068281hhjYdY','length','1506304VhuMJs','read','8SxQcaS','10472630mWvnXZ','DB_TABLE','dbid','2344HLarta','3143965GGbCzJ','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','dataset','1669075baLrvJ','appCode','\x20business\x20group(s)\x20for\x20database\x20connection\x20','1590426QOUUJt'];a59_0x3bc3=function(){return _0x130af1;};return a59_0x3bc3();}
1
+ function a59_0x551c(){const _0x4659d6=['num','dbid','3vmUUOC','76503GQWWsW','120468CDPblc','business-groups','1495769YwQDfR','20BvISby','25cFqZol','List\x20DB_TABLE\x20dataset\x20business\x20groups\x20for\x20a\x20database\x20connection;\x20does\x20not\x20include\x20METADATA','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','89042rTdfIr','1156280ZwfPis','number','1339898clBqri','dataset','1012264eTGuht','9cVkqui','DB_TABLE','\x20business\x20group(s)\x20for\x20database\x20connection\x20','read'];a59_0x551c=function(){return _0x4659d6;};return a59_0x551c();}const a59_0x23cd4e=a59_0xd3c5;(function(_0xb0cfb5,_0x527e48){const _0x54bd42=a59_0xd3c5,_0x42e2e1=_0xb0cfb5();while(!![]){try{const _0x503ee0=parseInt(_0x54bd42(0x10a))/0x1+-parseInt(_0x54bd42(0xfd))/0x2+-parseInt(_0x54bd42(0x109))/0x3*(-parseInt(_0x54bd42(0x102))/0x4)+parseInt(_0x54bd42(0xfa))/0x5*(parseInt(_0x54bd42(0x10b))/0x6)+parseInt(_0x54bd42(0x100))/0x7+-parseInt(_0x54bd42(0xfe))/0x8*(parseInt(_0x54bd42(0x103))/0x9)+-parseInt(_0x54bd42(0x10e))/0xa*(parseInt(_0x54bd42(0x10d))/0xb);if(_0x503ee0===_0x527e48)break;else _0x42e2e1['push'](_0x42e2e1['shift']());}catch(_0x30d854){_0x42e2e1['push'](_0x42e2e1['shift']());}}}(a59_0x551c,0x27267));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getErBusinessGroupSummary}from'../../core/api-client.js';function a59_0xd3c5(_0x34b35f,_0x102374){_0x34b35f=_0x34b35f-0xfa;const _0x551c49=a59_0x551c();let _0xd3c5ab=_0x551c49[_0x34b35f];return _0xd3c5ab;}export const datasetBusinessGroups={'service':a59_0x23cd4e(0x101),'command':a59_0x23cd4e(0x10c),'description':a59_0x23cd4e(0xfb),'risk':a59_0x23cd4e(0x106),'flags':[{'name':a59_0x23cd4e(0x108),'type':a59_0x23cd4e(0xff),'required':!![],'description':a59_0x23cd4e(0xfc)},APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3752a2){const _0x211dc1=a59_0x23cd4e,_0x339873=_0x3752a2[_0x211dc1(0x107)]('dbid'),_0x30ff43=await getErBusinessGroupSummary(_0x3752a2['appCode'],_0x339873);return{'ok':!![],'data':{..._0x30ff43,'scope':_0x211dc1(0x104)},'message':'Found\x20'+_0x30ff43['groups']['length']+_0x211dc1(0x105)+_0x339873};}};
@@ -1 +1 @@
1
- const a60_0x1dbcac=a60_0x245d;(function(_0x473593,_0x41733f){const _0x3eb746=a60_0x245d,_0x5a350a=_0x473593();while(!![]){try{const _0x2aeaeb=parseInt(_0x3eb746(0x199))/0x1+-parseInt(_0x3eb746(0x1b6))/0x2*(-parseInt(_0x3eb746(0x1ad))/0x3)+-parseInt(_0x3eb746(0x1af))/0x4*(parseInt(_0x3eb746(0x1ae))/0x5)+parseInt(_0x3eb746(0x19a))/0x6+parseInt(_0x3eb746(0x1a5))/0x7+parseInt(_0x3eb746(0x1b0))/0x8*(parseInt(_0x3eb746(0x19e))/0x9)+parseInt(_0x3eb746(0x1b7))/0xa*(-parseInt(_0x3eb746(0x19c))/0xb);if(_0x2aeaeb===_0x41733f)break;else _0x5a350a['push'](_0x5a350a['shift']());}catch(_0xf359d6){_0x5a350a['push'](_0x5a350a['shift']());}}}(a60_0x492a,0xde0fc));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a60_0x1dbcac(0x1a4),'getOne':a60_0x1dbcac(0x19f)};function a60_0x492a(){const _0x4dd245=['datasetName','tableName','3LaFSfk','2409285WIWDRc','8NXQtSG','2012232KbUTJR','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','sourceType','name','length','dataset','577908cFYAkZ','50EQIcJT','toUpperCase','1488480ALAoRr','4936368MpvqUG','unknown','6516037kPDjHA','filter','45OtsrjL','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','dbId','UNKNOWN','join','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','6841142BKTpDj','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','trim','The\x20current\x20dataset\x20\x22','validation'];a60_0x492a=function(){return _0x4dd245;};return a60_0x492a();}export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x1dbcac(0x1a0);function valueToString(_0x2c21e6){const _0x1e52ee=a60_0x1dbcac;return _0x2c21e6==null?'':String(_0x2c21e6)[_0x1e52ee(0x1a8)]();}function getDatasetCode(_0x2e8419){const _0x1f16bd=a60_0x1dbcac;return valueToString(_0x2e8419['code']??_0x2e8419['modelCode']??_0x2e8419[_0x1f16bd(0x1b5)]?.['datasetCode']);}function a60_0x245d(_0x1e2e7a,_0xbc9d2c){_0x1e2e7a=_0x1e2e7a-0x198;const _0x492a57=a60_0x492a();let _0x245d16=_0x492a57[_0x1e2e7a];return _0x245d16;}function getDatasetName(_0x1c511c){const _0x56f3e1=a60_0x1dbcac;return valueToString(_0x1c511c[_0x56f3e1(0x1b3)]??_0x1c511c['dataset']?.[_0x56f3e1(0x1ab)])||_0x56f3e1(0x19b);}function getDatasetSource(_0x7b35c6){const _0xd6c082=a60_0x1dbcac;return valueToString(_0x7b35c6['source']??_0x7b35c6[_0xd6c082(0x1b5)]?.[_0xd6c082(0x1b2)])[_0xd6c082(0x198)]();}function getDbtableConfig(_0x27ee70){const _0x3f0d04=_0x27ee70['dbtableConfig']??_0x27ee70['dbtable'];return _0x3f0d04&&typeof _0x3f0d04==='object'?_0x3f0d04:{};}export function isDbTableBackedDataset(_0x4d581e){const _0x5530b1=a60_0x1dbcac,_0x1b9bdb=getDatasetSource(_0x4d581e);if(_0x1b9bdb==='METADATA')return![];const _0x14f247=getDbtableConfig(_0x4d581e),_0x146b07=_0x14f247[_0x5530b1(0x1a1)]??_0x14f247['id'],_0x1b31a8=valueToString(_0x14f247[_0x5530b1(0x1ac)]??_0x4d581e[_0x5530b1(0x1ac)]??_0x4d581e[_0x5530b1(0x1b5)]?.[_0x5530b1(0x1ac)]);return _0x146b07!==undefined&&_0x146b07!==null&&_0x1b31a8[_0x5530b1(0x1b4)]>0x0;}export function filterDbTableBackedDatasets(_0x4c28f4){const _0x4204e8=a60_0x1dbcac;return _0x4c28f4[_0x4204e8(0x19d)](_0x3ae71f=>isDbTableBackedDataset(_0x3ae71f));}export function buildDbTableBackedRequirementMessage(_0x38ca03,_0x3214e1='SQL\x20schema\x20validation'){const _0x5c558d=a60_0x1dbcac,_0x3f8982=getDatasetSource(_0x38ca03)||_0x5c558d(0x1a2),_0x2f6db2=getDatasetName(_0x38ca03),_0x5271d1=getDatasetCode(_0x38ca03),_0x2a6d83=_0x5271d1?'\x20('+_0x5271d1+')':'';return[_0x5c558d(0x1a9)+_0x2f6db2+'\x22'+_0x2a6d83+'\x20is\x20'+_0x3f8982+_0x5c558d(0x1a7)+_0x3214e1+'.',_0x5c558d(0x1b1),'Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.',_0x5c558d(0x1a6)+RUNTIME_DATA_ACCESS_COMMANDS[_0x5c558d(0x19d)]+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'.'][_0x5c558d(0x1a3)]('\x20');}export function assertDatasetIsDbTableBacked(_0x109402,_0x107a4c){const _0x4ddb2e=a60_0x1dbcac;if(!isDbTableBackedDataset(_0x109402))throw CliErrors[_0x4ddb2e(0x1aa)](buildDbTableBackedRequirementMessage(_0x109402,_0x107a4c));}
1
+ const a60_0x565e9a=a60_0x197f;(function(_0x1afb3d,_0x439d84){const _0x42fade=a60_0x197f,_0x6d7c27=_0x1afb3d();while(!![]){try{const _0x5bc1e6=parseInt(_0x42fade(0x107))/0x1+parseInt(_0x42fade(0x114))/0x2*(-parseInt(_0x42fade(0x10d))/0x3)+parseInt(_0x42fade(0x109))/0x4+-parseInt(_0x42fade(0x120))/0x5*(-parseInt(_0x42fade(0x122))/0x6)+parseInt(_0x42fade(0x10e))/0x7*(parseInt(_0x42fade(0x10c))/0x8)+parseInt(_0x42fade(0x125))/0x9+-parseInt(_0x42fade(0x106))/0xa;if(_0x5bc1e6===_0x439d84)break;else _0x6d7c27['push'](_0x6d7c27['shift']());}catch(_0x193154){_0x6d7c27['push'](_0x6d7c27['shift']());}}}(a60_0x2264,0x366b0));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a60_0x565e9a(0x118),'filter':a60_0x565e9a(0x115),'getOne':a60_0x565e9a(0x10f)};function a60_0x2264(){const _0x1a00d8=['filter','dbtableConfig','getOne','modelCode','Reason:\x20schema\x20introspection\x20and\x20custom\x20SQL\x20require\x20source=DB_TABLE,\x20dbtableConfig.dbId,\x20dbtableConfig.tableName,\x20and\x20a\x20database\x20connection\x20context.','dbtable','\x20and\x20has\x20no\x20DB_TABLE\x20data-source\x20context\x20for\x20','95wpdhLj','object','139284KnKlZG','join','SQL\x20schema\x20validation','2626479qzFgVS','METADATA','validation','To\x20inspect\x20real\x20runtime\x20rows,\x20switch\x20to\x20lovrabet\x20CLI:\x20','dbId','Upgrade\x20or\x20migrate\x20this\x20dataset\x20to\x20a\x20DB_TABLE\x20dataset,\x20then\x20continue\x20with\x20the\x20new\x20dataset\x20code.','5416850eFyKjk','68135HLXXar','source','351716dfyhiX','datasetCode','tableName','14984pvzMbu','21peveVk','826FcCuNj','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','The\x20current\x20dataset\x20\x22','UNKNOWN','dataset','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','98684nKfiLJ','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','datasetName','\x20is\x20','lovrabet'];a60_0x2264=function(){return _0x1a00d8;};return a60_0x2264();}function a60_0x197f(_0x15d690,_0x2206e8){_0x15d690=_0x15d690-0x101;const _0x2264f9=a60_0x2264();let _0x197f48=_0x2264f9[_0x15d690];return _0x197f48;}export const RUNTIME_DATA_ACCESS_SUMMARY=a60_0x565e9a(0x113);function valueToString(_0x4bbf36){return _0x4bbf36==null?'':String(_0x4bbf36)['trim']();}function getDatasetCode(_0x48c5e4){const _0x5bdb8f=a60_0x565e9a;return valueToString(_0x48c5e4['code']??_0x48c5e4[_0x5bdb8f(0x11c)]??_0x48c5e4[_0x5bdb8f(0x112)]?.[_0x5bdb8f(0x10a)]);}function getDatasetName(_0x1ee976){const _0x31cda0=a60_0x565e9a;return valueToString(_0x1ee976['name']??_0x1ee976[_0x31cda0(0x112)]?.[_0x31cda0(0x116)])||'unknown';}function getDatasetSource(_0x2557f7){const _0x4cfc3c=a60_0x565e9a;return valueToString(_0x2557f7[_0x4cfc3c(0x108)]??_0x2557f7['dataset']?.['sourceType'])['toUpperCase']();}function getDbtableConfig(_0x13300d){const _0x4863cc=a60_0x565e9a,_0x115e42=_0x13300d[_0x4863cc(0x11a)]??_0x13300d[_0x4863cc(0x11e)];return _0x115e42&&typeof _0x115e42===_0x4863cc(0x121)?_0x115e42:{};}export function isDbTableBackedDataset(_0x4ffef6){const _0x1b97bb=a60_0x565e9a,_0x7eeb1f=getDatasetSource(_0x4ffef6);if(_0x7eeb1f===_0x1b97bb(0x101))return![];const _0x481b52=getDbtableConfig(_0x4ffef6),_0x19f2fe=_0x481b52[_0x1b97bb(0x104)]??_0x481b52['id'],_0x5734c3=valueToString(_0x481b52[_0x1b97bb(0x10b)]??_0x4ffef6['tableName']??_0x4ffef6[_0x1b97bb(0x112)]?.[_0x1b97bb(0x10b)]);return _0x19f2fe!==undefined&&_0x19f2fe!==null&&_0x5734c3['length']>0x0;}export function filterDbTableBackedDatasets(_0x12de33){const _0x33f6bb=a60_0x565e9a;return _0x12de33[_0x33f6bb(0x119)](_0x56d3e3=>isDbTableBackedDataset(_0x56d3e3));}export function buildDbTableBackedRequirementMessage(_0x15b2a7,_0x40d5b6=a60_0x565e9a(0x124)){const _0x252bb3=a60_0x565e9a,_0x59ef63=getDatasetSource(_0x15b2a7)||_0x252bb3(0x111),_0x4bd9d3=getDatasetName(_0x15b2a7),_0x26adc3=getDatasetCode(_0x15b2a7),_0x578678=_0x26adc3?'\x20('+_0x26adc3+')':'';return[_0x252bb3(0x110)+_0x4bd9d3+'\x22'+_0x578678+_0x252bb3(0x117)+_0x59ef63+_0x252bb3(0x11f)+_0x40d5b6+'.',_0x252bb3(0x11d),_0x252bb3(0x105),_0x252bb3(0x103)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';\x20'+RUNTIME_DATA_ACCESS_COMMANDS[_0x252bb3(0x11b)]+'.'][_0x252bb3(0x123)]('\x20');}export function assertDatasetIsDbTableBacked(_0x43ae67,_0x255008){const _0x12e6f5=a60_0x565e9a;if(!isDbTableBackedDataset(_0x43ae67))throw CliErrors[_0x12e6f5(0x102)](buildDbTableBackedRequirementMessage(_0x43ae67,_0x255008));}
@@ -1 +1 @@
1
- function a61_0x48f7(){const _0x4bc4f1=['16251858JViuCl','Matched\x20','bool','number','validation','\x20--appcode\x20','196KKvlwP','2101445HqatvD','\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.','cascade','add','778954YDVVuA','num','828870VMlbQu','Required\x20to\x20execute\x20dataset\x20deletion','message','appCode','id=','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','771156LdTxXs','relatedPages','push','dbName','tableName','232904exIkGh','deleted','dbtableConfig','\x20failed','type','map','dbId','4ZIiyMy','/smartapi/dataset/delete?cascade=','expected-count','title','length','delete','source','Dataset\x20id','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','name','relatedPageInfoList','rabetbase\x20page\x20restore\x20--id\x20','boolean','Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm','object','dbid','226398gAHvBE','filter','false','code','\x20dataset(s)','isArray','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','str','description'];a61_0x48f7=function(){return _0x4bc4f1;};return a61_0x48f7();}const a61_0x225019=a61_0xcf5b;(function(_0x3fd2bc,_0x37bcec){const _0xb735ed=a61_0xcf5b,_0xf02c8a=_0x3fd2bc();while(!![]){try{const _0x596049=-parseInt(_0xb735ed(0xdb))/0x1+-parseInt(_0xb735ed(0xe3))/0x2+parseInt(_0xb735ed(0x100))/0x3+parseInt(_0xb735ed(0xef))/0x4*(parseInt(_0xb735ed(0xd7))/0x5)+parseInt(_0xb735ed(0xdd))/0x6+-parseInt(_0xb735ed(0xd6))/0x7*(parseInt(_0xb735ed(0xe8))/0x8)+parseInt(_0xb735ed(0xd0))/0x9;if(_0x596049===_0x37bcec)break;else _0xf02c8a['push'](_0xf02c8a['shift']());}catch(_0x4bb6ea){_0xf02c8a['push'](_0xf02c8a['shift']());}}}(a61_0x48f7,0x704be));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';function a61_0xcf5b(_0x341c99,_0x4bb35d){_0x341c99=_0x341c99-0xce;const _0x48f7a2=a61_0x48f7();let _0xcf5bc3=_0x48f7a2[_0x341c99];return _0xcf5bc3;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x225019(0xd3),'description':a61_0x225019(0xf6)},DBID_FLAG={'name':a61_0x225019(0xff),'type':a61_0x225019(0xd3),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':a61_0x225019(0xfc),'description':a61_0x225019(0xde)},CASCADE_FLAG={'name':'cascade','type':a61_0x225019(0xfc),'description':a61_0x225019(0xfd)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a61_0x225019(0xd3),'description':a61_0x225019(0xf7)};export const datasetDelete={'service':'dataset','command':a61_0x225019(0xf4),'description':a61_0x225019(0xf8),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2ed89b){const _0x5406aa=a61_0x225019,_0xcb5761=_0x2ed89b[_0x5406aa(0xdc)]('id'),_0x2204bf=_0x2ed89b[_0x5406aa(0xce)](_0x5406aa(0x103)),_0x4ed765=_0x2ed89b['num'](_0x5406aa(0xff)),_0xe495f2=[_0xcb5761>0x0,Boolean(_0x2204bf),_0x4ed765>0x0]['filter'](Boolean);if(_0xe495f2[_0x5406aa(0xf3)]===0x0)throw CliErrors['validation'](_0x5406aa(0x106));if(_0xe495f2[_0x5406aa(0xf3)]>0x1)throw CliErrors[_0x5406aa(0xd4)](_0x5406aa(0xe2));},async 'dryRun'(_0x5d568c){const _0x1285cf=a61_0x225019,_0x138e7c=await resolveTargets(_0x5d568c),_0x2acf0d=_0x5d568c['bool'](_0x1285cf(0xd9));return{'method':'POST','url':_0x1285cf(0xf0)+(_0x2acf0d?'true':_0x1285cf(0x102)),'body':{'count':_0x138e7c[_0x1285cf(0xf3)],'cascade':_0x2acf0d,'datasets':_0x138e7c},'description':_0x2acf0d?'Would\x20delete\x20'+_0x138e7c[_0x1285cf(0xf3)]+'\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.':'Would\x20safely\x20delete\x20'+_0x138e7c['length']+_0x1285cf(0xd8)};},async 'execute'(_0x420400){const _0x5b9d0a=a61_0x225019;if(!_0x420400['bool']('confirm'))throw CliErrors[_0x5b9d0a(0xd4)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x2ad2a0=await resolveTargets(_0x420400),_0x38cd35=_0x420400[_0x5b9d0a(0xd2)](_0x5b9d0a(0xd9)),_0x386c41=[],_0x1a6811=[];for(const _0x3f429e of _0x2ad2a0){try{await deleteDataset(_0x3f429e['id'],_0x38cd35),_0x386c41[_0x5b9d0a(0xe5)](_0x3f429e);}catch(_0x59e116){_0x1a6811[_0x5b9d0a(0xe5)]({..._0x3f429e,'error':_0x59e116 instanceof Error?_0x59e116[_0x5b9d0a(0xdf)]:String(_0x59e116)});}}if(_0x1a6811['length']>0x0){const _0x18866d=buildPageRestoreCommands(_0x420400['appCode'],_0x38cd35?_0x386c41:[]);return{'ok':![],'data':{'requested':_0x2ad2a0[_0x5b9d0a(0xf3)],'cascade':_0x38cd35,'deletedCount':_0x386c41['length'],'failedCount':_0x1a6811[_0x5b9d0a(0xf3)],'deleted':_0x386c41,'failed':_0x1a6811,'pageRestoreCommands':_0x18866d},'message':'Deleted\x20'+_0x386c41[_0x5b9d0a(0xf3)]+'/'+_0x2ad2a0['length']+'\x20dataset(s);\x20'+_0x1a6811[_0x5b9d0a(0xf3)]+_0x5b9d0a(0xeb)};}return{'ok':!![],'data':{'requested':_0x2ad2a0[_0x5b9d0a(0xf3)],'cascade':_0x38cd35,'deletedCount':_0x386c41[_0x5b9d0a(0xf3)],'deleted':_0x386c41,'pageRestoreCommands':buildPageRestoreCommands(_0x420400[_0x5b9d0a(0xe0)],_0x38cd35?_0x386c41:[])},'message':'Deleted\x20'+_0x386c41['length']+_0x5b9d0a(0x104)};}};async function resolveTargets(_0x3e9f3d){const _0x39f51c=a61_0x225019,_0x328d50=_0x3e9f3d[_0x39f51c(0xdc)]('id'),_0x308e9e=_0x3e9f3d['str'](_0x39f51c(0x103)),_0x2ba3c6=_0x3e9f3d['num'](_0x39f51c(0xff));let _0x59a0ce;_0x308e9e?(_0x59a0ce=await listDatasets(_0x3e9f3d[_0x39f51c(0xe0)],{'code':_0x308e9e}),_0x59a0ce=_0x59a0ce[_0x39f51c(0x101)](_0x5d5237=>_0x5d5237[_0x39f51c(0x103)]===_0x308e9e)):(_0x59a0ce=await listDatasets(_0x3e9f3d[_0x39f51c(0xe0)]),_0x328d50>0x0&&(_0x59a0ce=_0x59a0ce[_0x39f51c(0x101)](_0x5cc81d=>_0x5cc81d['id']===_0x328d50)),_0x2ba3c6>0x0&&(_0x59a0ce=_0x59a0ce[_0x39f51c(0x101)](_0x14d531=>_0x14d531[_0x39f51c(0xea)]?.[_0x39f51c(0xee)]===_0x2ba3c6)));const _0x516450=[];for(const _0x418dab of _0x59a0ce){const _0x1ad68f=await getDatasetDetail(_0x418dab[_0x39f51c(0x103)]),_0x28f28a=Array[_0x39f51c(0x105)](_0x1ad68f[_0x39f51c(0xfa)])?_0x1ad68f[_0x39f51c(0xfa)][_0x39f51c(0x101)](_0x2489c4=>_0x2489c4!=null&&typeof _0x2489c4===_0x39f51c(0xfe)&&_0x2489c4[_0x39f51c(0xe9)]!==!![]):[];_0x516450['push'](normalizeTarget(_0x418dab,_0x28f28a));}if(_0x516450[_0x39f51c(0xf3)]===0x0){const _0x2ba06c=_0x308e9e||(_0x328d50>0x0?_0x39f51c(0xe1)+_0x328d50:'dbid='+_0x2ba3c6);throw CliErrors[_0x39f51c(0xd4)]('No\x20undeleted\x20dataset\x20found\x20for\x20'+_0x2ba06c+'.');}const _0xe6b602=_0x3e9f3d[_0x39f51c(0xdc)](_0x39f51c(0xf1));if(_0xe6b602>0x0&&_0x516450[_0x39f51c(0xf3)]!==_0xe6b602)throw CliErrors[_0x39f51c(0xd4)](_0x39f51c(0xd1)+_0x516450[_0x39f51c(0xf3)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0xe6b602+'.');return _0x516450;}function normalizeTarget(_0x304421,_0x22b338){const _0xbf4941=a61_0x225019,_0x4a5d6e=_0x304421['dbtableConfig']??{},_0x2ac955=_0x22b338[_0xbf4941(0xed)](_0x168b68=>{const _0x2b714b=_0xbf4941;if(_0x168b68==null||typeof _0x168b68!==_0x2b714b(0xfe))return null;const _0x366580=_0x168b68,_0x48596e=Number(_0x366580['id']);if(!Number['isInteger'](_0x48596e)||_0x48596e<=0x0)return null;const _0x1d5ac9=_0x366580[_0x2b714b(0xf2)]??_0x366580[_0x2b714b(0xf9)];return{'id':_0x48596e,..._0x1d5ac9?{'name':String(_0x1d5ac9)}:{},..._0x366580['type']?{'type':String(_0x366580[_0x2b714b(0xec)])}:{}};})[_0xbf4941(0x101)](_0x32d761=>_0x32d761!==null);return{'id':_0x304421['id'],'code':_0x304421[_0xbf4941(0x103)],'name':_0x304421[_0xbf4941(0xf9)],'description':_0x304421[_0xbf4941(0xcf)],'source':_0x304421[_0xbf4941(0xf5)],'dbId':_0x4a5d6e[_0xbf4941(0xee)],'dbName':_0x4a5d6e[_0xbf4941(0xe6)],'tableName':_0x4a5d6e[_0xbf4941(0xe7)],'relatedPageCount':_0x2ac955[_0xbf4941(0xf3)],'relatedPages':_0x2ac955};}function buildPageRestoreCommands(_0x38036e,_0x38ed3f){const _0x4cdd13=a61_0x225019,_0x62f83e=new Set();for(const _0x4bc98d of _0x38ed3f){for(const _0x37d68f of _0x4bc98d[_0x4cdd13(0xe4)])_0x62f83e[_0x4cdd13(0xda)](_0x37d68f['id']);}return[..._0x62f83e][_0x4cdd13(0xed)](_0x1277a4=>_0x4cdd13(0xfb)+_0x1277a4+_0x4cdd13(0xd5)+_0x38036e);}
1
+ const a61_0x5f0ddb=a61_0x3405;(function(_0x2a4340,_0x3c0cf6){const _0x220e74=a61_0x3405,_0x104850=_0x2a4340();while(!![]){try{const _0x32a6d2=parseInt(_0x220e74(0x11c))/0x1*(parseInt(_0x220e74(0xf5))/0x2)+-parseInt(_0x220e74(0xf3))/0x3*(-parseInt(_0x220e74(0xef))/0x4)+-parseInt(_0x220e74(0x105))/0x5+-parseInt(_0x220e74(0x11d))/0x6*(-parseInt(_0x220e74(0xfc))/0x7)+parseInt(_0x220e74(0xe9))/0x8+parseInt(_0x220e74(0x11b))/0x9*(-parseInt(_0x220e74(0xfe))/0xa)+parseInt(_0x220e74(0x110))/0xb*(-parseInt(_0x220e74(0x10d))/0xc);if(_0x32a6d2===_0x3c0cf6)break;else _0x104850['push'](_0x104850['shift']());}catch(_0x47d80a){_0x104850['push'](_0x104850['shift']());}}}(a61_0x2cae,0xd7a21));import{deleteDataset,getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a61_0x3405(_0x3604ad,_0x271339){_0x3604ad=_0x3604ad-0xe2;const _0x2cae88=a61_0x2cae();let _0x3405f5=_0x2cae88[_0x3604ad];return _0x3405f5;}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a61_0x5f0ddb(0xeb),'description':'Dataset\x20id'},DBID_FLAG={'name':a61_0x5f0ddb(0xe5),'type':a61_0x5f0ddb(0xeb),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a61_0x5f0ddb(0xe8)},CASCADE_FLAG={'name':a61_0x5f0ddb(0xfb),'type':'boolean','description':a61_0x5f0ddb(0xf6)},EXPECTED_COUNT_FLAG={'name':a61_0x5f0ddb(0xfa),'type':a61_0x5f0ddb(0xeb),'description':a61_0x5f0ddb(0xff)};export const datasetDelete={'service':'dataset','command':a61_0x5f0ddb(0xf1),'description':a61_0x5f0ddb(0x101),'risk':a61_0x5f0ddb(0xf8),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CASCADE_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x200fc0){const _0x1e4e05=a61_0x5f0ddb,_0x238ba7=_0x200fc0[_0x1e4e05(0xf7)]('id'),_0x49f467=_0x200fc0['str']('code'),_0x157042=_0x200fc0[_0x1e4e05(0xf7)]('dbid'),_0x1bcc78=[_0x238ba7>0x0,Boolean(_0x49f467),_0x157042>0x0][_0x1e4e05(0xfd)](Boolean);if(_0x1bcc78[_0x1e4e05(0xf9)]===0x0)throw CliErrors[_0x1e4e05(0x116)](_0x1e4e05(0x10e));if(_0x1bcc78[_0x1e4e05(0xf9)]>0x1)throw CliErrors[_0x1e4e05(0x116)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x32e791){const _0x5bb48=a61_0x5f0ddb,_0x4b88e2=await resolveTargets(_0x32e791),_0x5aa897=_0x32e791[_0x5bb48(0x113)]('cascade');return{'method':_0x5bb48(0xe6),'url':_0x5bb48(0xec)+(_0x5aa897?'true':'false'),'body':{'count':_0x4b88e2['length'],'cascade':_0x5aa897,'datasets':_0x4b88e2},'description':_0x5aa897?_0x5bb48(0x118)+_0x4b88e2[_0x5bb48(0xf9)]+_0x5bb48(0x115):_0x5bb48(0xe4)+_0x4b88e2[_0x5bb48(0xf9)]+_0x5bb48(0xea)};},async 'execute'(_0x4fcdfa){const _0x5a3c22=a61_0x5f0ddb;if(!_0x4fcdfa[_0x5a3c22(0x113)]('confirm'))throw CliErrors[_0x5a3c22(0x116)](_0x5a3c22(0xf0),_0x5a3c22(0x10a));const _0x4979d6=await resolveTargets(_0x4fcdfa),_0x294f71=_0x4fcdfa[_0x5a3c22(0x113)](_0x5a3c22(0xfb)),_0x5c48e2=[],_0x16e1e7=[];for(const _0x3b3af8 of _0x4979d6){try{await deleteDataset(_0x3b3af8['id'],_0x294f71),_0x5c48e2[_0x5a3c22(0xe7)](_0x3b3af8);}catch(_0x47285d){_0x16e1e7[_0x5a3c22(0xe7)]({..._0x3b3af8,'error':_0x47285d instanceof Error?_0x47285d[_0x5a3c22(0x111)]:String(_0x47285d)});}}if(_0x16e1e7[_0x5a3c22(0xf9)]>0x0){const _0x39354a=buildPageRestoreCommands(_0x4fcdfa['appCode'],_0x294f71?_0x5c48e2:[]);return{'ok':![],'data':{'requested':_0x4979d6[_0x5a3c22(0xf9)],'cascade':_0x294f71,'deletedCount':_0x5c48e2[_0x5a3c22(0xf9)],'failedCount':_0x16e1e7[_0x5a3c22(0xf9)],'deleted':_0x5c48e2,'failed':_0x16e1e7,'pageRestoreCommands':_0x39354a},'message':'Deleted\x20'+_0x5c48e2[_0x5a3c22(0xf9)]+'/'+_0x4979d6['length']+_0x5a3c22(0x119)+_0x16e1e7[_0x5a3c22(0xf9)]+'\x20failed'};}return{'ok':!![],'data':{'requested':_0x4979d6[_0x5a3c22(0xf9)],'cascade':_0x294f71,'deletedCount':_0x5c48e2[_0x5a3c22(0xf9)],'deleted':_0x5c48e2,'pageRestoreCommands':buildPageRestoreCommands(_0x4fcdfa[_0x5a3c22(0x112)],_0x294f71?_0x5c48e2:[])},'message':_0x5a3c22(0x100)+_0x5c48e2[_0x5a3c22(0xf9)]+'\x20dataset(s)'};}};async function resolveTargets(_0x4a6ae9){const _0x575ee6=a61_0x5f0ddb,_0x8fa139=_0x4a6ae9[_0x575ee6(0xf7)]('id'),_0x5a64ec=_0x4a6ae9[_0x575ee6(0x104)]('code'),_0x504769=_0x4a6ae9[_0x575ee6(0xf7)](_0x575ee6(0xe5));let _0x3bf53d;_0x5a64ec?(_0x3bf53d=await listDatasets(_0x4a6ae9[_0x575ee6(0x112)],{'code':_0x5a64ec}),_0x3bf53d=_0x3bf53d[_0x575ee6(0xfd)](_0x3d0dbd=>_0x3d0dbd[_0x575ee6(0x114)]===_0x5a64ec)):(_0x3bf53d=await listDatasets(_0x4a6ae9[_0x575ee6(0x112)]),_0x8fa139>0x0&&(_0x3bf53d=_0x3bf53d['filter'](_0x26430e=>_0x26430e['id']===_0x8fa139)),_0x504769>0x0&&(_0x3bf53d=_0x3bf53d[_0x575ee6(0xfd)](_0x1a995b=>_0x1a995b[_0x575ee6(0xed)]?.['dbId']===_0x504769)));const _0x4e2afb=[];for(const _0x2bf086 of _0x3bf53d){const _0x15b253=await getDatasetDetail(_0x2bf086[_0x575ee6(0x114)]),_0x444f03=Array[_0x575ee6(0x107)](_0x15b253['relatedPageInfoList'])?_0x15b253['relatedPageInfoList'][_0x575ee6(0xfd)](_0x35c6ba=>_0x35c6ba!=null&&typeof _0x35c6ba===_0x575ee6(0xee)&&_0x35c6ba[_0x575ee6(0x117)]!==!![]):[];_0x4e2afb[_0x575ee6(0xe7)](normalizeTarget(_0x2bf086,_0x444f03));}if(_0x4e2afb['length']===0x0){const _0x4eaa46=_0x5a64ec||(_0x8fa139>0x0?'id='+_0x8fa139:'dbid='+_0x504769);throw CliErrors['validation'](_0x575ee6(0x11a)+_0x4eaa46+'.');}const _0x228978=_0x4a6ae9[_0x575ee6(0xf7)](_0x575ee6(0xfa));if(_0x228978>0x0&&_0x4e2afb[_0x575ee6(0xf9)]!==_0x228978)throw CliErrors[_0x575ee6(0x116)]('Matched\x20'+_0x4e2afb[_0x575ee6(0xf9)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x228978+'.');return _0x4e2afb;}function normalizeTarget(_0xe175a3,_0x2ee535){const _0x54ecd5=a61_0x5f0ddb,_0x13f001=_0xe175a3['dbtableConfig']??{},_0x18491a=_0x2ee535[_0x54ecd5(0xe2)](_0xd8f71c=>{const _0x2fd4b3=_0x54ecd5;if(_0xd8f71c==null||typeof _0xd8f71c!==_0x2fd4b3(0xee))return null;const _0x1874de=_0xd8f71c,_0x1c41c7=Number(_0x1874de['id']);if(!Number[_0x2fd4b3(0xe3)](_0x1c41c7)||_0x1c41c7<=0x0)return null;const _0x479649=_0x1874de[_0x2fd4b3(0xf2)]??_0x1874de[_0x2fd4b3(0x10c)];return{'id':_0x1c41c7,..._0x479649?{'name':String(_0x479649)}:{},..._0x1874de[_0x2fd4b3(0x109)]?{'type':String(_0x1874de[_0x2fd4b3(0x109)])}:{}};})[_0x54ecd5(0xfd)](_0xe4488=>_0xe4488!==null);return{'id':_0xe175a3['id'],'code':_0xe175a3['code'],'name':_0xe175a3['name'],'description':_0xe175a3[_0x54ecd5(0x108)],'source':_0xe175a3[_0x54ecd5(0x10b)],'dbId':_0x13f001[_0x54ecd5(0x103)],'dbName':_0x13f001[_0x54ecd5(0x106)],'tableName':_0x13f001[_0x54ecd5(0xf4)],'relatedPageCount':_0x18491a['length'],'relatedPages':_0x18491a};}function buildPageRestoreCommands(_0x210f72,_0x3b1a5a){const _0x2a1dcf=a61_0x5f0ddb,_0x232f65=new Set();for(const _0x965b80 of _0x3b1a5a){for(const _0x441b5e of _0x965b80[_0x2a1dcf(0x102)])_0x232f65[_0x2a1dcf(0x10f)](_0x441b5e['id']);}return[..._0x232f65]['map'](_0x490460=>'rabetbase\x20page\x20restore\x20--id\x20'+_0x490460+'\x20--appcode\x20'+_0x210f72);}function a61_0x2cae(){const _0x59ed26=['message','appCode','bool','code','\x20dataset(s)\x20and\x20their\x20listed\x20related\x20pages/menus.\x20Restore\x20each\x20Dataset\x20first,\x20then\x20restore\x20pages\x20explicitly\x20when\x20needed.','validation','deleted','Would\x20delete\x20','\x20dataset(s);\x20','No\x20undeleted\x20dataset\x20found\x20for\x20','9RpTURE','1737434FXLRzR','1146npnAsb','map','isInteger','Would\x20safely\x20delete\x20','dbid','POST','push','Required\x20to\x20execute\x20dataset\x20deletion','8783192YQEkhS','\x20dataset(s)\x20without\x20cascading\x20to\x20pages.\x20The\x20server\x20blocks\x20a\x20Dataset\x20that\x20still\x20has\x20related\x20pages.','number','/smartapi/dataset/delete?cascade=','dbtableConfig','object','4AsKnnH','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','delete','title','4301496WDAgkD','tableName','2qmJzrt','Also\x20delete\x20related\x20pages\x20and\x20menus;\x20requires\x20explicit\x20--confirm','num','high-risk-write','length','expected-count','cascade','64722XlXaGk','filter','2298710fqAYtU','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Deleted\x20','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','relatedPages','dbId','str','4542940SXegmj','dbName','isArray','description','type','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','source','name','31092NmnzVV','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','add','17039lEDqcR'];a61_0x2cae=function(){return _0x59ed26;};return a61_0x2cae();}
@@ -1 +1 @@
1
- function a62_0x45c1(_0x2735f7,_0x435bd0){_0x2735f7=_0x2735f7-0x10f;const _0x3db210=a62_0x3db2();let _0x45c1d7=_0x3db210[_0x2735f7];return _0x45c1d7;}const a62_0x44ec3b=a62_0x45c1;(function(_0x16d933,_0x2723d3){const _0x48f8af=a62_0x45c1,_0x2bea92=_0x16d933();while(!![]){try{const _0x1c875c=parseInt(_0x48f8af(0x13c))/0x1*(parseInt(_0x48f8af(0x127))/0x2)+-parseInt(_0x48f8af(0x15d))/0x3+parseInt(_0x48f8af(0x148))/0x4*(parseInt(_0x48f8af(0x118))/0x5)+-parseInt(_0x48f8af(0x142))/0x6*(-parseInt(_0x48f8af(0x146))/0x7)+parseInt(_0x48f8af(0x136))/0x8*(parseInt(_0x48f8af(0x15a))/0x9)+parseInt(_0x48f8af(0x158))/0xa*(-parseInt(_0x48f8af(0x110))/0xb)+parseInt(_0x48f8af(0x160))/0xc;if(_0x1c875c===_0x2723d3)break;else _0x2bea92['push'](_0x2bea92['shift']());}catch(_0x44e694){_0x2bea92['push'](_0x2bea92['shift']());}}}(a62_0x3db2,0x429a0));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x1ed1c5){const _0x364e7f=a62_0x45c1;if(_0x1ed1c5[_0x364e7f(0x128)])return null;const _0x93df25=Boolean(_0x1ed1c5[_0x364e7f(0x15e)]!==undefined||_0x1ed1c5['doType']!==undefined);let _0x25ea02={};if(!_0x93df25&&typeof _0x1ed1c5[_0x364e7f(0x12f)]===_0x364e7f(0x134))try{_0x25ea02=JSON[_0x364e7f(0x152)](_0x1ed1c5['extend']);}catch{}const _0x539fa9=_0x93df25?_0x1ed1c5[_0x364e7f(0x130)]:_0x1ed1c5['code'],_0x26dc49=_0x93df25?_0x1ed1c5[_0x364e7f(0x15e)]:_0x1ed1c5['name'],_0x44ebd5=_0x93df25?_0x1ed1c5[_0x364e7f(0x126)]:_0x1ed1c5['type']||_0x1ed1c5[_0x364e7f(0x115)],_0x1dd17d=_0x93df25?_0x1ed1c5[_0x364e7f(0x13b)]===!![]:_0x25ea02[_0x364e7f(0x13b)]===!![],_0x531302=_0x93df25?_0x1ed1c5[_0x364e7f(0x155)]===!![]:_0x25ea02['required']===!![],_0x17bdb0=_0x93df25?_0x1ed1c5[_0x364e7f(0x114)]??null:_0x25ea02[_0x364e7f(0x114)]??null,_0x3b37d4={'name':_0x539fa9,'displayName':_0x26dc49||_0x539fa9,'type':_0x44ebd5,'dbType':_0x1ed1c5[_0x364e7f(0x137)],'pk':_0x1dd17d,'required':_0x531302,'deprecated':_0x1ed1c5['deprecated']===!![],'description':_0x1ed1c5[_0x364e7f(0x129)]||undefined};return Array['isArray'](_0x17bdb0)&&_0x17bdb0['length']>0x0&&(_0x3b37d4[_0x364e7f(0x114)]=_0x17bdb0),_0x3b37d4;}function parseJsonMaybe(_0x3fd578){const _0x25974f=a62_0x45c1;if(typeof _0x3fd578!=='string')return _0x3fd578;try{return JSON[_0x25974f(0x152)](_0x3fd578);}catch{return _0x3fd578;}}function a62_0x3db2(){const _0x2f3073=['dbName','909kNnVBG','requestBody','relationId','1561158EuEeOq','displayName','toDatasetCode','7717152ndTsVq','requestFields','code','modelCode','type','fields','title','updateTimeField','2547248VudbGg','alias','columnCodeListWithDeleted','toFieldLabel','options','dataType','str','allFieldNames','237355lJNPFX','formatRules','cardinality','labelField','isArray','object','toField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','creatorIdField','filter','logicField','sourceType','fromField','host','doType','129468EKqWon','deleted','description','toDatasetName','trim','modifierIdField','method','relatedPageInfoList','extend','name','path','dbId','doVersion','string','tableName','5688gdUUug','dbType','beforeScriptId','length','main_sub','pkField','1yiQyTM','datasetKey','modelId','dataset','properties','source','901026mRJbFi','map','relations','operations','7kwazfz','modifierNameField','8HylJLY','allFields','entries','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','bizRelationType','createTimeField','indexes','dblinkInfoDTO','tableComment','validateRules','parse','responseFields','afterScriptId','required','read','responseBody','10OzcGMu'];a62_0x3db2=function(){return _0x2f3073;};return a62_0x3db2();}function normalizeOperationEntry(_0x49b086,_0x5be020){const _0x53757f=a62_0x45c1;if(!_0x5be020||typeof _0x5be020!==_0x53757f(0x11d))return null;if(!_0x5be020[_0x53757f(0x12d)]||!_0x5be020[_0x53757f(0x131)])return null;const _0x4a274d={'name':_0x49b086,'method':_0x5be020[_0x53757f(0x12d)],'path':_0x5be020[_0x53757f(0x131)]};if(_0x5be020[_0x53757f(0x125)])_0x4a274d[_0x53757f(0x125)]=_0x5be020['host'];if(_0x5be020['requestBody']!=null){const _0x2c77bc=parseJsonMaybe(_0x5be020['requestBody']);_0x4a274d[_0x53757f(0x15b)]=_0x2c77bc;}if(_0x5be020['responseBody']!=null){const _0x294aaa=parseJsonMaybe(_0x5be020['responseBody']);_0x4a274d[_0x53757f(0x157)]=_0x294aaa;}if(_0x5be020['beforeScriptId']!=null)_0x4a274d[_0x53757f(0x138)]=_0x5be020[_0x53757f(0x138)];if(_0x5be020[_0x53757f(0x154)]!=null)_0x4a274d[_0x53757f(0x154)]=_0x5be020['afterScriptId'];if(Array[_0x53757f(0x11c)](_0x5be020[_0x53757f(0x161)]))_0x4a274d[_0x53757f(0x161)]=_0x5be020['requestFields'];if(Array[_0x53757f(0x11c)](_0x5be020[_0x53757f(0x153)]))_0x4a274d[_0x53757f(0x153)]=_0x5be020[_0x53757f(0x153)];return _0x4a274d;}function summarizeDbtable(_0x3b2004){const _0x495b5b=a62_0x45c1,_0x255a62={},_0x222f90=[_0x495b5b(0x132),'dbName',_0x495b5b(0x135),_0x495b5b(0x13d),_0x495b5b(0x13b),_0x495b5b(0x149),_0x495b5b(0x122),_0x495b5b(0x14d),_0x495b5b(0x10f),_0x495b5b(0x120),'creatorNameField',_0x495b5b(0x12c),_0x495b5b(0x147),_0x495b5b(0x11b),_0x495b5b(0x14f)];for(const _0x4e2444 of _0x222f90){if(_0x3b2004[_0x4e2444]!==undefined)_0x255a62[_0x4e2444]=_0x3b2004[_0x4e2444];}return typeof _0x255a62[_0x495b5b(0x149)]===_0x495b5b(0x134)&&_0x255a62[_0x495b5b(0x149)]['length']>0x0&&(_0x255a62[_0x495b5b(0x117)]=_0x255a62[_0x495b5b(0x149)]['split'](',')['map'](_0x22c91f=>_0x22c91f[_0x495b5b(0x12b)]())[_0x495b5b(0x121)](Boolean)),_0x255a62;}function normalizeRelatedPages(_0xb75ad7){const _0x34c222=a62_0x45c1;if(!Array[_0x34c222(0x11c)](_0xb75ad7))return[];return _0xb75ad7[_0x34c222(0x121)](_0xafd42a=>_0xafd42a&&typeof _0xafd42a===_0x34c222(0x11d))[_0x34c222(0x143)](_0x4978b6=>({'id':_0x4978b6['id'],'type':_0x4978b6[_0x34c222(0x164)],'code':_0x4978b6[_0x34c222(0x162)],'title':_0x4978b6[_0x34c222(0x166)],'deleted':_0x4978b6[_0x34c222(0x128)]===!![]}));}export const datasetDetail={'service':a62_0x44ec3b(0x13f),'command':'detail','description':a62_0x44ec3b(0x14b),'risk':a62_0x44ec3b(0x156),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x44ec3b(0x111),'type':'string','description':a62_0x44ec3b(0x11f)}],async 'execute'(_0x151488){const _0x308cc1=a62_0x44ec3b,_0x502bcd=await getDatasetDetail(_0x151488[_0x308cc1(0x116)](_0x308cc1(0x162))),_0x4759df=Array[_0x308cc1(0x11c)](_0x502bcd[_0x308cc1(0x165)])?_0x502bcd['fields']:Array['isArray'](_0x502bcd[_0x308cc1(0x140)])?_0x502bcd['properties']:[],_0x405d23=_0x4759df[_0x308cc1(0x143)](_0x38b12a=>normalizeField(_0x38b12a))[_0x308cc1(0x121)](_0x4695cd=>_0x4695cd!==null),_0x42052b=_0x502bcd[_0x308cc1(0x145)]??{},_0x2ab6d6=[];for(const [_0x2d5bb3,_0x260066]of Object[_0x308cc1(0x14a)](_0x42052b)){const _0x30024f=normalizeOperationEntry(_0x2d5bb3,_0x260066);if(_0x30024f)_0x2ab6d6['push'](_0x30024f);}const _0x5d322b=_0x502bcd['dbtableConfig']??{},_0x1b09d5=_0x502bcd[_0x308cc1(0x13f)]??{},_0x39e443=_0x5d322b['dbId']!=null?{'id':_0x5d322b[_0x308cc1(0x132)],'name':_0x5d322b[_0x308cc1(0x159)]??null}:undefined;let _0x3f987a;return typeof _0x502bcd['extend']===_0x308cc1(0x134)&&(_0x3f987a=parseJsonMaybe(_0x502bcd[_0x308cc1(0x12f)])),{'ok':!![],'data':{'id':_0x502bcd[_0x308cc1(0x13e)]??_0x502bcd['id'],'name':_0x502bcd['name'],'code':_0x502bcd[_0x308cc1(0x163)]||_0x502bcd[_0x308cc1(0x162)],'doVersion':_0x502bcd[_0x308cc1(0x133)],'description':_0x502bcd[_0x308cc1(0x129)]||_0x1b09d5[_0x308cc1(0x150)]||undefined,'source':_0x502bcd[_0x308cc1(0x141)]||_0x1b09d5[_0x308cc1(0x123)],'table':_0x5d322b['tableName']||_0x1b09d5[_0x308cc1(0x135)],'datasetKey':_0x5d322b['datasetKey'],'pk':_0x5d322b[_0x308cc1(0x13b)],'db':_0x39e443,'dbtable':summarizeDbtable(_0x5d322b),'fields':_0x405d23,'operations':_0x2ab6d6,'indexes':Array[_0x308cc1(0x11c)](_0x1b09d5[_0x308cc1(0x14e)])?_0x1b09d5[_0x308cc1(0x14e)]:[],'relations':Array[_0x308cc1(0x11c)](_0x502bcd[_0x308cc1(0x144)])?_0x502bcd[_0x308cc1(0x144)][_0x308cc1(0x143)](_0x23a57f=>({..._0x23a57f[_0x308cc1(0x15c)]!=null?{'relationId':_0x23a57f[_0x308cc1(0x15c)]}:{},'fromDataset':_0x502bcd[_0x308cc1(0x130)],'fromCode':_0x502bcd['modelCode']||_0x502bcd[_0x308cc1(0x162)],'fromTable':_0x5d322b[_0x308cc1(0x135)]||_0x1b09d5['tableName'],'fromField':_0x23a57f[_0x308cc1(0x124)],'toDataset':_0x23a57f[_0x308cc1(0x12a)],'toCode':_0x23a57f[_0x308cc1(0x15f)],'toTable':_0x23a57f['toTableName'],'toField':_0x23a57f[_0x308cc1(0x11e)],'labelField':_0x23a57f[_0x308cc1(0x113)]||undefined,'cardinality':_0x23a57f[_0x308cc1(0x11a)]||undefined,'bizRelationType':_0x23a57f[_0x308cc1(0x14c)]===_0x308cc1(0x13a)?'main_sub':null})):[],'relatedPages':normalizeRelatedPages(_0x502bcd[_0x308cc1(0x12e)]),...Array[_0x308cc1(0x11c)](_0x502bcd[_0x308cc1(0x112)])?{'columnCodeListWithDeleted':_0x502bcd[_0x308cc1(0x112)]}:{},'formatRules':Array[_0x308cc1(0x11c)](_0x502bcd[_0x308cc1(0x119)])?_0x502bcd['formatRules']:[],'validateRules':Array[_0x308cc1(0x11c)](_0x502bcd['validateRules'])?_0x502bcd[_0x308cc1(0x151)]:[],..._0x3f987a!==undefined?{'extend':_0x3f987a}:{},'stats':{'fieldCount':_0x405d23[_0x308cc1(0x139)],'operationCount':_0x2ab6d6['length']}}};}};
1
+ const a62_0x479680=a62_0x1b36;(function(_0x2682d4,_0x4c2323){const _0x3def3e=a62_0x1b36,_0x1da120=_0x2682d4();while(!![]){try{const _0x35a506=parseInt(_0x3def3e(0xc8))/0x1*(parseInt(_0x3def3e(0xcb))/0x2)+-parseInt(_0x3def3e(0xec))/0x3+parseInt(_0x3def3e(0xfc))/0x4*(-parseInt(_0x3def3e(0xbb))/0x5)+-parseInt(_0x3def3e(0xd4))/0x6*(parseInt(_0x3def3e(0xb6))/0x7)+parseInt(_0x3def3e(0xeb))/0x8+-parseInt(_0x3def3e(0x103))/0x9*(-parseInt(_0x3def3e(0xf2))/0xa)+-parseInt(_0x3def3e(0xf7))/0xb;if(_0x35a506===_0x4c2323)break;else _0x1da120['push'](_0x1da120['shift']());}catch(_0x41558e){_0x1da120['push'](_0x1da120['shift']());}}}(a62_0x53a7,0x94da0));import{getDatasetDetail}from'../../core/api-client.js';function a62_0x53a7(){const _0x217cae=['extend','dbtableConfig','labelField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','5374032hddWMm','143601bWXQqV','fromField','description','map','push','dbName','7587440cswfjn','main_sub','responseBody','creatorIdField','allFields','1775015FAOaOv','allFieldNames','type','code','trim','65476hvGEnn','updateTimeField','modelId','alias','requestBody','beforeScriptId','string','9RjyyCe','dbId','split','afterScriptId','7zfyMlx','datasetKey','responseFields','options','requestFields','285xBXRlC','source','cardinality','read','path','host','displayName','relations','modifierIdField','method','toTableName','deprecated','dataType','4LJZUPx','object','creatorNameField','352390iulgSV','title','dbType','relationId','operations','parse','validateRules','toDatasetName','tableName','2299902KbPkNU','dataset','properties','columnCodeListWithDeleted','deleted','formatRules','isArray','indexes','modelCode','relatedPageInfoList','pkField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','entries','length','required','name','doVersion','detail','filter'];a62_0x53a7=function(){return _0x217cae;};return a62_0x53a7();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x39737e){const _0x21cc88=a62_0x1b36;if(_0x39737e[_0x21cc88(0xd8)])return null;const _0x3d084d=Boolean(_0x39737e[_0x21cc88(0xc1)]!==undefined||_0x39737e['doType']!==undefined);let _0x4c08a9={};if(!_0x3d084d&&typeof _0x39737e[_0x21cc88(0xe7)]===_0x21cc88(0x102))try{_0x4c08a9=JSON[_0x21cc88(0xd0)](_0x39737e[_0x21cc88(0xe7)]);}catch{}const _0x4ebcae=_0x3d084d?_0x39737e[_0x21cc88(0xe3)]:_0x39737e[_0x21cc88(0xfa)],_0x21015b=_0x3d084d?_0x39737e['displayName']:_0x39737e[_0x21cc88(0xe3)],_0x1d27b1=_0x3d084d?_0x39737e['doType']:_0x39737e[_0x21cc88(0xf9)]||_0x39737e[_0x21cc88(0xc7)],_0x5b7139=_0x3d084d?_0x39737e['pkField']===!![]:_0x4c08a9[_0x21cc88(0xde)]===!![],_0x403bcd=_0x3d084d?_0x39737e[_0x21cc88(0xe2)]===!![]:_0x4c08a9[_0x21cc88(0xe2)]===!![],_0x57807d=_0x3d084d?_0x39737e[_0x21cc88(0xb9)]??null:_0x4c08a9[_0x21cc88(0xb9)]??null,_0x576418={'name':_0x4ebcae,'displayName':_0x21015b||_0x4ebcae,'type':_0x1d27b1,'dbType':_0x39737e[_0x21cc88(0xcd)],'pk':_0x5b7139,'required':_0x403bcd,'deprecated':_0x39737e[_0x21cc88(0xc6)]===!![],'description':_0x39737e[_0x21cc88(0xee)]||undefined};return Array['isArray'](_0x57807d)&&_0x57807d[_0x21cc88(0xe1)]>0x0&&(_0x576418[_0x21cc88(0xb9)]=_0x57807d),_0x576418;}function parseJsonMaybe(_0x1bffa5){const _0x404fae=a62_0x1b36;if(typeof _0x1bffa5!=='string')return _0x1bffa5;try{return JSON[_0x404fae(0xd0)](_0x1bffa5);}catch{return _0x1bffa5;}}function normalizeOperationEntry(_0x34490a,_0x51c944){const _0x319a0d=a62_0x1b36;if(!_0x51c944||typeof _0x51c944!=='object')return null;if(!_0x51c944[_0x319a0d(0xc4)]||!_0x51c944[_0x319a0d(0xbf)])return null;const _0x58896b={'name':_0x34490a,'method':_0x51c944[_0x319a0d(0xc4)],'path':_0x51c944['path']};if(_0x51c944['host'])_0x58896b[_0x319a0d(0xc0)]=_0x51c944[_0x319a0d(0xc0)];if(_0x51c944[_0x319a0d(0x100)]!=null){const _0x458e83=parseJsonMaybe(_0x51c944['requestBody']);_0x58896b['requestBody']=_0x458e83;}if(_0x51c944[_0x319a0d(0xf4)]!=null){const _0x4ebcc8=parseJsonMaybe(_0x51c944[_0x319a0d(0xf4)]);_0x58896b[_0x319a0d(0xf4)]=_0x4ebcc8;}if(_0x51c944[_0x319a0d(0x101)]!=null)_0x58896b[_0x319a0d(0x101)]=_0x51c944[_0x319a0d(0x101)];if(_0x51c944[_0x319a0d(0xb5)]!=null)_0x58896b[_0x319a0d(0xb5)]=_0x51c944[_0x319a0d(0xb5)];if(Array[_0x319a0d(0xda)](_0x51c944[_0x319a0d(0xba)]))_0x58896b[_0x319a0d(0xba)]=_0x51c944[_0x319a0d(0xba)];if(Array['isArray'](_0x51c944['responseFields']))_0x58896b[_0x319a0d(0xb8)]=_0x51c944[_0x319a0d(0xb8)];return _0x58896b;}function summarizeDbtable(_0x3e03ab){const _0x5e0772=a62_0x1b36,_0x2ad5a9={},_0x4ca27b=[_0x5e0772(0x104),_0x5e0772(0xf1),'tableName','datasetKey',_0x5e0772(0xde),_0x5e0772(0xf6),'logicField','createTimeField',_0x5e0772(0xfd),_0x5e0772(0xf5),_0x5e0772(0xca),_0x5e0772(0xc3),'modifierNameField',_0x5e0772(0xe9),'dblinkInfoDTO'];for(const _0xb6a287 of _0x4ca27b){if(_0x3e03ab[_0xb6a287]!==undefined)_0x2ad5a9[_0xb6a287]=_0x3e03ab[_0xb6a287];}return typeof _0x2ad5a9['allFields']===_0x5e0772(0x102)&&_0x2ad5a9[_0x5e0772(0xf6)][_0x5e0772(0xe1)]>0x0&&(_0x2ad5a9[_0x5e0772(0xf8)]=_0x2ad5a9['allFields'][_0x5e0772(0x105)](',')[_0x5e0772(0xef)](_0x2a2596=>_0x2a2596[_0x5e0772(0xfb)]())[_0x5e0772(0xe6)](Boolean)),_0x2ad5a9;}function normalizeRelatedPages(_0x3b9a27){const _0x32a1ea=a62_0x1b36;if(!Array['isArray'](_0x3b9a27))return[];return _0x3b9a27[_0x32a1ea(0xe6)](_0x4ef09a=>_0x4ef09a&&typeof _0x4ef09a===_0x32a1ea(0xc9))[_0x32a1ea(0xef)](_0x112b48=>({'id':_0x112b48['id'],'type':_0x112b48['type'],'code':_0x112b48[_0x32a1ea(0xfa)],'title':_0x112b48[_0x32a1ea(0xcc)],'deleted':_0x112b48['deleted']===!![]}));}function a62_0x1b36(_0x482a50,_0x577d83){_0x482a50=_0x482a50-0xb5;const _0x53a71a=a62_0x53a7();let _0x1b3629=_0x53a71a[_0x482a50];return _0x1b3629;}export const datasetDetail={'service':a62_0x479680(0xd5),'command':a62_0x479680(0xe5),'description':a62_0x479680(0xea),'risk':a62_0x479680(0xbe),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a62_0x479680(0xff),'type':'string','description':a62_0x479680(0xdf)}],async 'execute'(_0x1adefa){const _0x3519b5=a62_0x479680,_0x5150f1=await getDatasetDetail(_0x1adefa['str'](_0x3519b5(0xfa))),_0x37f76f=Array['isArray'](_0x5150f1['fields'])?_0x5150f1['fields']:Array[_0x3519b5(0xda)](_0x5150f1['properties'])?_0x5150f1[_0x3519b5(0xd6)]:[],_0x4c4026=_0x37f76f[_0x3519b5(0xef)](_0x5b8d44=>normalizeField(_0x5b8d44))[_0x3519b5(0xe6)](_0x13376a=>_0x13376a!==null),_0x1bb3e8=_0x5150f1[_0x3519b5(0xcf)]??{},_0x3c2863=[];for(const [_0x1a4579,_0x2572ed]of Object[_0x3519b5(0xe0)](_0x1bb3e8)){const _0x4df482=normalizeOperationEntry(_0x1a4579,_0x2572ed);if(_0x4df482)_0x3c2863[_0x3519b5(0xf0)](_0x4df482);}const _0x2b90a6=_0x5150f1[_0x3519b5(0xe8)]??{},_0x13ce8b=_0x5150f1[_0x3519b5(0xd5)]??{},_0x170165=_0x2b90a6[_0x3519b5(0x104)]!=null?{'id':_0x2b90a6[_0x3519b5(0x104)],'name':_0x2b90a6['dbName']??null}:undefined;let _0x55f6b8;return typeof _0x5150f1[_0x3519b5(0xe7)]===_0x3519b5(0x102)&&(_0x55f6b8=parseJsonMaybe(_0x5150f1[_0x3519b5(0xe7)])),{'ok':!![],'data':{'id':_0x5150f1[_0x3519b5(0xfe)]??_0x5150f1['id'],'name':_0x5150f1['name'],'code':_0x5150f1[_0x3519b5(0xdc)]||_0x5150f1[_0x3519b5(0xfa)],'doVersion':_0x5150f1[_0x3519b5(0xe4)],'description':_0x5150f1[_0x3519b5(0xee)]||_0x13ce8b['tableComment']||undefined,'source':_0x5150f1[_0x3519b5(0xbc)]||_0x13ce8b['sourceType'],'table':_0x2b90a6[_0x3519b5(0xd3)]||_0x13ce8b[_0x3519b5(0xd3)],'datasetKey':_0x2b90a6[_0x3519b5(0xb7)],'pk':_0x2b90a6['pkField'],'db':_0x170165,'dbtable':summarizeDbtable(_0x2b90a6),'fields':_0x4c4026,'operations':_0x3c2863,'indexes':Array[_0x3519b5(0xda)](_0x13ce8b[_0x3519b5(0xdb)])?_0x13ce8b[_0x3519b5(0xdb)]:[],'relations':Array[_0x3519b5(0xda)](_0x5150f1['relations'])?_0x5150f1[_0x3519b5(0xc2)][_0x3519b5(0xef)](_0x5d34e1=>({..._0x5d34e1[_0x3519b5(0xce)]!=null?{'relationId':_0x5d34e1[_0x3519b5(0xce)]}:{},'fromDataset':_0x5150f1['name'],'fromCode':_0x5150f1[_0x3519b5(0xdc)]||_0x5150f1[_0x3519b5(0xfa)],'fromTable':_0x2b90a6[_0x3519b5(0xd3)]||_0x13ce8b['tableName'],'fromField':_0x5d34e1[_0x3519b5(0xed)],'toDataset':_0x5d34e1[_0x3519b5(0xd2)],'toCode':_0x5d34e1['toDatasetCode'],'toTable':_0x5d34e1[_0x3519b5(0xc5)],'toField':_0x5d34e1['toField'],'labelField':_0x5d34e1['toFieldLabel']||undefined,'cardinality':_0x5d34e1[_0x3519b5(0xbd)]||undefined,'bizRelationType':_0x5d34e1['bizRelationType']===_0x3519b5(0xf3)?_0x3519b5(0xf3):null})):[],'relatedPages':normalizeRelatedPages(_0x5150f1[_0x3519b5(0xdd)]),...Array[_0x3519b5(0xda)](_0x5150f1[_0x3519b5(0xd7)])?{'columnCodeListWithDeleted':_0x5150f1[_0x3519b5(0xd7)]}:{},'formatRules':Array[_0x3519b5(0xda)](_0x5150f1[_0x3519b5(0xd9)])?_0x5150f1['formatRules']:[],'validateRules':Array[_0x3519b5(0xda)](_0x5150f1[_0x3519b5(0xd1)])?_0x5150f1[_0x3519b5(0xd1)]:[],..._0x55f6b8!==undefined?{'extend':_0x55f6b8}:{},'stats':{'fieldCount':_0x4c4026[_0x3519b5(0xe1)],'operationCount':_0x3c2863[_0x3519b5(0xe1)]}}};}};