@lovrabet/rabetbase-cli 2.5.3-beta.2 → 2.5.3-beta.4

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 (393) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.d.ts +22 -0
  3. package/lib/api/api-group.js +1 -0
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.d.ts +18 -2
  6. package/lib/api/generate-api-file.js +1 -1
  7. package/lib/api/generate-sdk-config-file.js +1 -1
  8. package/lib/api/legacy-api-file.d.ts +11 -0
  9. package/lib/api/legacy-api-file.js +1 -0
  10. package/lib/api/model-registry-file.d.ts +36 -0
  11. package/lib/api/model-registry-file.js +1 -0
  12. package/lib/api/model-registry-scaffold.d.ts +7 -0
  13. package/lib/api/model-registry-scaffold.js +1 -0
  14. package/lib/api/model-source.d.ts +6 -0
  15. package/lib/api/model-source.js +1 -0
  16. package/lib/auth/auth-server-ui.js +1 -1
  17. package/lib/auth/auth-server.js +1 -1
  18. package/lib/auth/constant.js +1 -1
  19. package/lib/auth/get-cookie.js +1 -1
  20. package/lib/auth/get-session-user.js +1 -1
  21. package/lib/auth/is-session-valid.js +1 -1
  22. package/lib/auth/login-success-html.js +1 -1
  23. package/lib/auth/logout.js +1 -1
  24. package/lib/cli-flags.js +1 -1
  25. package/lib/cli.js +1 -1
  26. package/lib/commands/api/generate.js +1 -1
  27. package/lib/commands/api/index.js +1 -1
  28. package/lib/commands/api/list.js +1 -1
  29. package/lib/commands/api/pull.js +1 -1
  30. package/lib/commands/api/shared.js +1 -1
  31. package/lib/commands/app/index.js +1 -1
  32. package/lib/commands/app/list.js +1 -1
  33. package/lib/commands/app/members-list.js +1 -1
  34. package/lib/commands/app/remote-directory.js +1 -1
  35. package/lib/commands/app/shared.js +1 -1
  36. package/lib/commands/app-config/delete.js +1 -1
  37. package/lib/commands/app-config/get.js +1 -1
  38. package/lib/commands/app-config/index.js +1 -1
  39. package/lib/commands/app-config/list.js +1 -1
  40. package/lib/commands/app-config/set.js +1 -1
  41. package/lib/commands/app-config/shared.js +1 -1
  42. package/lib/commands/auth/index.js +1 -1
  43. package/lib/commands/bff/create.js +1 -1
  44. package/lib/commands/bff/delete.js +1 -1
  45. package/lib/commands/bff/detail.js +1 -1
  46. package/lib/commands/bff/index.js +1 -1
  47. package/lib/commands/bff/list.js +1 -1
  48. package/lib/commands/bff/logs.js +1 -1
  49. package/lib/commands/bff/pull.js +1 -1
  50. package/lib/commands/bff/push.js +1 -1
  51. package/lib/commands/bff/status.js +1 -1
  52. package/lib/commands/cli-skill/index.js +1 -1
  53. package/lib/commands/cli-update.js +1 -1
  54. package/lib/commands/codegen/index.js +1 -1
  55. package/lib/commands/codegen/sdk.js +1 -1
  56. package/lib/commands/codegen/sql.js +1 -1
  57. package/lib/commands/common/app-registry.js +1 -1
  58. package/lib/commands/common/app-selector.js +1 -1
  59. package/lib/commands/common/async-task.js +1 -1
  60. package/lib/commands/common/dry-run.js +1 -1
  61. package/lib/commands/common/flags.d.ts +7 -0
  62. package/lib/commands/common/flags.js +1 -1
  63. package/lib/commands/common/local-file.js +1 -1
  64. package/lib/commands/common/validate.js +1 -1
  65. package/lib/commands/config/delete.js +1 -1
  66. package/lib/commands/config/get.js +1 -1
  67. package/lib/commands/config/index.js +1 -1
  68. package/lib/commands/config/init.js +1 -1
  69. package/lib/commands/config/list.js +1 -1
  70. package/lib/commands/config/set.js +1 -1
  71. package/lib/commands/config/shared.js +1 -1
  72. package/lib/commands/dataset/batch-design.js +1 -1
  73. package/lib/commands/dataset/business-group-update.js +1 -1
  74. package/lib/commands/dataset/business-groups.js +1 -1
  75. package/lib/commands/dataset/capability.js +1 -1
  76. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  77. package/lib/commands/dataset/cross-relation-create.js +1 -0
  78. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  80. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-list.js +1 -0
  82. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  83. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  84. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  85. package/lib/commands/dataset/cross-relation-update.js +1 -0
  86. package/lib/commands/dataset/delete.js +1 -1
  87. package/lib/commands/dataset/detail.js +1 -1
  88. package/lib/commands/dataset/extend-update.js +1 -1
  89. package/lib/commands/dataset/field-restore.js +1 -1
  90. package/lib/commands/dataset/field-update.js +1 -1
  91. package/lib/commands/dataset/generate.js +1 -1
  92. package/lib/commands/dataset/index.js +1 -1
  93. package/lib/commands/dataset/list.js +1 -1
  94. package/lib/commands/dataset/operations.js +1 -1
  95. package/lib/commands/dataset/relation-audit.js +1 -1
  96. package/lib/commands/dataset/relation-create.js +1 -1
  97. package/lib/commands/dataset/relation-delete.js +1 -1
  98. package/lib/commands/dataset/relation-shared.js +1 -1
  99. package/lib/commands/dataset/relation-update.js +1 -1
  100. package/lib/commands/dataset/relations.js +1 -1
  101. package/lib/commands/dataset/rename.js +1 -1
  102. package/lib/commands/dataset/restore.js +1 -1
  103. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  104. package/lib/commands/db/analysis-batching.js +1 -1
  105. package/lib/commands/db/analyze-batch-plan.js +1 -1
  106. package/lib/commands/db/analyze-cancel.js +1 -1
  107. package/lib/commands/db/analyze-start.js +1 -1
  108. package/lib/commands/db/analyze-status.js +1 -1
  109. package/lib/commands/db/create.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/service.js +1 -1
  183. package/lib/commands/menu/shared/sync-core.js +1 -1
  184. package/lib/commands/menu/shared/update-core.js +1 -1
  185. package/lib/commands/menu/shared/valid-url.js +1 -1
  186. package/lib/commands/menu/sync.js +1 -1
  187. package/lib/commands/menu/visibility-update.js +1 -1
  188. package/lib/commands/notification/config-create.js +1 -1
  189. package/lib/commands/notification/config-delete.js +1 -1
  190. package/lib/commands/notification/config-list.js +1 -1
  191. package/lib/commands/notification/config-update.js +1 -1
  192. package/lib/commands/notification/index.js +1 -1
  193. package/lib/commands/notification/shared.js +1 -1
  194. package/lib/commands/ocr/index.js +1 -1
  195. package/lib/commands/page/create.js +1 -1
  196. package/lib/commands/page/custom/detail.js +1 -1
  197. package/lib/commands/page/custom/list.js +1 -1
  198. package/lib/commands/page/custom/publish.js +1 -1
  199. package/lib/commands/page/custom/shared.js +1 -1
  200. package/lib/commands/page/custom/syntax.js +1 -1
  201. package/lib/commands/page/custom/update.js +1 -1
  202. package/lib/commands/page/data-list-status.js +1 -1
  203. package/lib/commands/page/generate-start.js +1 -1
  204. package/lib/commands/page/generate-status.js +1 -1
  205. package/lib/commands/page/index.js +1 -1
  206. package/lib/commands/page/pull.js +1 -1
  207. package/lib/commands/page/push.js +1 -1
  208. package/lib/commands/page/relation-audit.js +1 -1
  209. package/lib/commands/page/restore.js +1 -1
  210. package/lib/commands/page/shared.js +1 -1
  211. package/lib/commands/page/sync.js +1 -1
  212. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  213. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  214. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  215. package/lib/commands/project/create/format-elapsed.js +1 -1
  216. package/lib/commands/project/create/main.js +1 -1
  217. package/lib/commands/project/create/materialize-project-template.js +1 -1
  218. package/lib/commands/project/create/project-name.js +1 -1
  219. package/lib/commands/project/create/project-template-archive.js +1 -1
  220. package/lib/commands/project/create/project-template-path.js +1 -1
  221. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  222. package/lib/commands/project/create/use-format-code.js +1 -1
  223. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  224. package/lib/commands/project/domain-routing-sync.js +1 -1
  225. package/lib/commands/project/index.js +1 -1
  226. package/lib/commands/project/upgrade.d.ts +30 -1
  227. package/lib/commands/project/upgrade.js +1 -1
  228. package/lib/commands/registry.js +1 -1
  229. package/lib/commands/role/delete.js +1 -1
  230. package/lib/commands/role/detail.js +1 -1
  231. package/lib/commands/role/index.js +1 -1
  232. package/lib/commands/role/list.js +1 -1
  233. package/lib/commands/role/shared.js +1 -1
  234. package/lib/commands/role/update.js +1 -1
  235. package/lib/commands/role/user-add.js +1 -1
  236. package/lib/commands/role/user-remove.js +1 -1
  237. package/lib/commands/role/user-resolve.js +1 -1
  238. package/lib/commands/rule/get.js +1 -1
  239. package/lib/commands/rule/index.js +1 -1
  240. package/lib/commands/rule/list.js +1 -1
  241. package/lib/commands/rule/set.js +1 -1
  242. package/lib/commands/rule/shared.js +1 -1
  243. package/lib/commands/run/index.js +1 -1
  244. package/lib/commands/schema.js +1 -1
  245. package/lib/commands/sql/create.js +1 -1
  246. package/lib/commands/sql/delete.js +1 -1
  247. package/lib/commands/sql/detail.js +1 -1
  248. package/lib/commands/sql/exec.js +1 -1
  249. package/lib/commands/sql/index.js +1 -1
  250. package/lib/commands/sql/list.js +1 -1
  251. package/lib/commands/sql/pull.js +1 -1
  252. package/lib/commands/sql/push.js +1 -1
  253. package/lib/commands/sql/shared.js +1 -1
  254. package/lib/commands/sql/status.js +1 -1
  255. package/lib/commands/sql/validate.js +1 -1
  256. package/lib/commands/task/index.js +1 -1
  257. package/lib/commands/task/status.js +1 -1
  258. package/lib/commands/tenant/index.js +1 -1
  259. package/lib/commands/tenant/members-list.js +1 -1
  260. package/lib/commands/tenant/shared.js +1 -1
  261. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  262. package/lib/commands/user-account/index.js +1 -1
  263. package/lib/commands/workspace/add.js +1 -1
  264. package/lib/commands/workspace/index.js +1 -1
  265. package/lib/commands/workspace/remove.js +1 -1
  266. package/lib/config/domain-config.js +1 -1
  267. package/lib/config/project-domain-routing.js +1 -1
  268. package/lib/config/region-config.js +1 -1
  269. package/lib/config/schema.js +1 -1
  270. package/lib/constant/cdn.d.ts +5 -3
  271. package/lib/constant/cdn.js +1 -1
  272. package/lib/constant/cli.js +1 -1
  273. package/lib/constant/defaults.js +1 -1
  274. package/lib/constant/domain.js +1 -1
  275. package/lib/constant/env.js +1 -1
  276. package/lib/constant/output.js +1 -1
  277. package/lib/constant/paths.js +1 -1
  278. package/lib/constant/region.js +1 -1
  279. package/lib/constant/risk.js +1 -1
  280. package/lib/constant/routing-profile.js +1 -1
  281. package/lib/context/app-resolver.d.ts +2 -0
  282. package/lib/context/app-resolver.js +1 -1
  283. package/lib/context/auth-resolver.js +1 -1
  284. package/lib/context/config-loader.js +1 -1
  285. package/lib/context.d.ts +2 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.d.ts +13 -17
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.d.ts +6 -0
  290. package/lib/core/api-client.js +1 -1
  291. package/lib/core/bff/config.js +1 -1
  292. package/lib/core/bff/file-system.js +1 -1
  293. package/lib/core/bff/hash.js +1 -1
  294. package/lib/core/bff/hook-directory.js +1 -1
  295. package/lib/core/bff/lock.js +1 -1
  296. package/lib/core/bff/utils.js +1 -1
  297. package/lib/core/cross-db-relation.d.ts +41 -0
  298. package/lib/core/cross-db-relation.js +1 -0
  299. package/lib/core/db-resolver.js +1 -1
  300. package/lib/core/flow-config.js +1 -1
  301. package/lib/core/instant-api-policy/config.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.d.ts +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.js +1 -1
  332. package/lib/generated/routing-contract.js +1 -1
  333. package/lib/help.js +1 -1
  334. package/lib/postinstall.js +1 -1
  335. package/lib/runtime/confirmation.js +1 -1
  336. package/lib/runtime/event.js +1 -1
  337. package/lib/runtime/index.js +1 -1
  338. package/lib/runtime/queue.js +1 -1
  339. package/lib/runtime/resolve.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.d.ts +0 -10
  343. package/lib/skills/npx-skills-add.js +1 -1
  344. package/lib/skills/skill-presence.js +1 -1
  345. package/lib/telemetry/cli-command-trace.js +1 -1
  346. package/lib/telemetry/cli-help-trace.js +1 -1
  347. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  348. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  349. package/lib/telemetry/send-cli-trace-log.js +1 -1
  350. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  351. package/lib/types/index.d.ts +11 -1
  352. package/lib/utils/ai_config.js +1 -1
  353. package/lib/utils/apply-jq-filter.js +1 -1
  354. package/lib/utils/cdn-config.js +1 -1
  355. package/lib/utils/check-sdk-version.js +1 -1
  356. package/lib/utils/cli-version-check.js +1 -1
  357. package/lib/utils/cli-version-policy.d.ts +19 -0
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +6 -1
  375. package/skills/rabetbase/SKILL.md +16 -10
  376. package/skills/rabetbase/guides/backend-function.md +5 -1
  377. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  378. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  379. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  380. package/skills/rabetbase/guides/sdk-client-generation.md +112 -61
  381. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  382. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  383. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  384. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  385. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  386. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +64 -0
  387. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  388. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  389. package/skills/rabetbase.manifest.json +5 -3
  390. package/templates/README.md +46 -6
  391. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  392. package/templates/generate-api/profile-api.ts.tpl +21 -0
  393. package/templates/generate-api/profile-client.ts.tpl +14 -0
@@ -1 +1 @@
1
- const a284_0x3ab3f4=a284_0x50f1;(function(_0x3cca1c,_0x57a58f){const _0x5b1421=a284_0x50f1,_0x2f0a56=_0x3cca1c();while(!![]){try{const _0x2c9183=-parseInt(_0x5b1421(0xb1))/0x1*(parseInt(_0x5b1421(0xab))/0x2)+parseInt(_0x5b1421(0xde))/0x3*(parseInt(_0x5b1421(0x9c))/0x4)+parseInt(_0x5b1421(0xc8))/0x5*(parseInt(_0x5b1421(0xf1))/0x6)+parseInt(_0x5b1421(0xac))/0x7*(-parseInt(_0x5b1421(0xe4))/0x8)+parseInt(_0x5b1421(0xd8))/0x9+parseInt(_0x5b1421(0xa7))/0xa*(-parseInt(_0x5b1421(0xd4))/0xb)+-parseInt(_0x5b1421(0xd6))/0xc*(-parseInt(_0x5b1421(0xb4))/0xd);if(_0x2c9183===_0x57a58f)break;else _0x2f0a56['push'](_0x2f0a56['shift']());}catch(_0x257ca9){_0x2f0a56['push'](_0x2f0a56['shift']());}}}(a284_0x2b59,0x3ba48));const MYBATIS_OUTER_TAGS=new Map([[a284_0x3ab3f4(0xb2),'SELECT'],[a284_0x3ab3f4(0xae),a284_0x3ab3f4(0xb3)],[a284_0x3ab3f4(0xdf),a284_0x3ab3f4(0xc9)],[a284_0x3ab3f4(0xe5),a284_0x3ab3f4(0xe0)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a284_0x3ab3f4(0xfb),a284_0x3ab3f4(0xad),a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),'otherwise',a284_0x3ab3f4(0xb5),'set','bind','include',a284_0x3ab3f4(0xf5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach',a284_0x3ab3f4(0xe9),a284_0x3ab3f4(0xbc),a284_0x3ab3f4(0xd1)]);export const MYBATIS_DYNAMIC_START_MARKER=a284_0x3ab3f4(0xd7);export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a284_0x3ab3f4(0xef);const UNRESOLVED_SQL_FRAGMENT=a284_0x3ab3f4(0xb8),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a284_0x3ab3f4(0xaa)+[...MYBATIS_OUTER_TAGS[a284_0x3ab3f4(0xc1)]()][a284_0x3ab3f4(0xeb)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4ce25c){const _0x2bc6dd=a284_0x3ab3f4,_0x23c5a3=typeof _0x4ce25c===_0x2bc6dd(0xa2)?_0x4ce25c:'';if(!startsWithMybatisStatementWrapper(_0x23c5a3))return{'sql':_0x23c5a3,'mode':_0x2bc6dd(0xee)};let _0x16c2d5=0x0,_0x4607a0='',_0x1d357b,_0x3b2759=![],_0x4bd089=![];const _0x10d06f=[];while(_0x16c2d5<_0x23c5a3[_0x2bc6dd(0xd9)]){if(_0x23c5a3[_0x2bc6dd(0xfa)]('<!--',_0x16c2d5)){const _0x1ed66=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xec),_0x16c2d5+0x4);if(_0x1ed66<0x0)return invalidMybatisSource(_0x2bc6dd(0xfd));_0x4607a0+='\x20',_0x16c2d5=_0x1ed66+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)](_0x2bc6dd(0xfc),_0x16c2d5)){if(!_0x3b2759||_0x4bd089)return invalidMybatisSource('CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');const _0x10e482=_0x23c5a3[_0x2bc6dd(0xb9)](_0x2bc6dd(0xea),_0x16c2d5+0x9);if(_0x10e482<0x0)return invalidMybatisSource(_0x2bc6dd(0xc0));_0x4607a0+=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5+0x9,_0x10e482),_0x16c2d5=_0x10e482+0x3;continue;}if(_0x23c5a3[_0x2bc6dd(0xfa)]('<?',_0x16c2d5)){if(_0x3b2759)return invalidMybatisSource(_0x2bc6dd(0xa4));const _0x17accb=_0x23c5a3['indexOf']('?>',_0x16c2d5+0x2);if(_0x17accb<0x0)return invalidMybatisSource(_0x2bc6dd(0x9f));_0x4607a0+='\x20',_0x16c2d5=_0x17accb+0x2;continue;}if(_0x23c5a3[_0x16c2d5]!=='<'){const _0x5e08ed=_0x23c5a3['indexOf']('<',_0x16c2d5),_0x188b67=_0x5e08ed<0x0?_0x23c5a3['length']:_0x5e08ed,_0x40fd7e=_0x23c5a3['slice'](_0x16c2d5,_0x188b67);if((!_0x3b2759||_0x4bd089)&&_0x40fd7e['trim']())return invalidMybatisSource(_0x2bc6dd(0xf3));if(_0x3b2759&&!_0x4bd089){const _0x1bab4d=decodeXmlEntities(_0x40fd7e);if(_0x1bab4d===null)return invalidMybatisSource(_0x2bc6dd(0xf7));_0x4607a0+=_0x1bab4d;}else _0x4607a0+='\x20';_0x16c2d5=_0x188b67;continue;}const _0x551de8=findXmlTagEnd(_0x23c5a3,_0x16c2d5);if(_0x551de8<0x0)return invalidMybatisSource(_0x2bc6dd(0xcd));const _0x168dd6=_0x23c5a3[_0x2bc6dd(0xb6)](_0x16c2d5,_0x551de8+0x1),_0x5a0648=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2bc6dd(0xed)](_0x168dd6);if(!_0x5a0648)return invalidMybatisSource(_0x2bc6dd(0xc6));const _0x3ee21d=_0x5a0648[0x1]==='/',_0x24b68b=_0x5a0648[0x2]??'',_0x47f451=_0x24b68b['toLowerCase'](),_0x168d73=_0x5a0648[0x3]??'',_0x15907e=_0x5a0648[0x4]==='/',_0x1b1145=MYBATIS_OUTER_TAGS['get'](_0x47f451);if(!_0x1b1145&&!MYBATIS_DYNAMIC_TAGS[_0x2bc6dd(0xe6)](_0x47f451))return invalidMybatisSource(_0x2bc6dd(0xc4)+_0x47f451+'>.');if(!_0x1b1145&&_0x24b68b!==_0x47f451)return invalidMybatisSource(_0x2bc6dd(0xe8)+_0x24b68b+'>.');if(_0x3ee21d){if(_0x168d73[_0x2bc6dd(0xb5)]()||_0x15907e)return invalidMybatisSource(_0x2bc6dd(0xf6)+_0x24b68b+'>.');const _0x575236=_0x10d06f['at'](-0x1);if(!_0x575236||(_0x575236[_0x2bc6dd(0xaf)]?_0x575236['tagName']!==_0x47f451:_0x575236['rawName']!==_0x24b68b))return invalidMybatisSource(_0x2bc6dd(0xc7)+_0x24b68b+'>.');_0x10d06f[_0x2bc6dd(0xba)]();if(_0x575236[_0x2bc6dd(0xaf)])_0x4bd089=!![];_0x4607a0+=MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x168d73))return invalidMybatisSource(_0x2bc6dd(0xf9)+_0x24b68b+'>.');if(_0x47f451===_0x2bc6dd(0xf5)&&(!_0x15907e||_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa3)]!==_0x2bc6dd(0xa6)))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0x1b1145){if(_0x3b2759||_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource(_0x2bc6dd(0xe7));_0x3b2759=!![],_0x4bd089=_0x15907e,_0x1d357b=_0x1b1145;}else{if(!_0x3b2759||_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xc5)+_0x24b68b+'>.');}_0x4607a0+=_0x47f451===_0x2bc6dd(0xfb)?_0x2bc6dd(0xd5):_0x47f451===_0x2bc6dd(0x9a)?_0x2bc6dd(0xcb):_0x47f451===_0x2bc6dd(0xa6)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2bc6dd(0xe6)](_0x47f451)&&!_0x15907e?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x15907e&&_0x10d06f['push']({'rawName':_0x24b68b,'tagName':_0x47f451,'outer':!!_0x1b1145});}_0x16c2d5=_0x551de8+0x1;}if(_0x10d06f[_0x2bc6dd(0xd9)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x10d06f['at'](-0x1)?.[_0x2bc6dd(0xa9)]+'>.');if(!_0x3b2759||!_0x4bd089)return invalidMybatisSource(_0x2bc6dd(0xd3));return{'sql':_0x4607a0[_0x2bc6dd(0xb5)](),'mode':_0x2bc6dd(0xbf),..._0x1d357b?{'statementType':_0x1d357b}:{}};}function hasWellFormedXmlAttributes(_0x5bda43){const _0x46dea2=a284_0x3ab3f4;let _0x435148=0x0;const _0x9ead10=new Set();while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]){while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x435148>=_0x5bda43[_0x46dea2(0xd9)])return!![];const _0x4a8ad9=/^[A-Za-z_:][\w:.-]*/[_0x46dea2(0xed)](_0x5bda43[_0x46dea2(0xb6)](_0x435148)),_0x3bea42=_0x4a8ad9?.[0x0];if(!_0x3bea42||_0x9ead10[_0x46dea2(0xe6)](_0x3bea42))return![];_0x9ead10['add'](_0x3bea42),_0x435148+=_0x3bea42[_0x46dea2(0xd9)];while(_0x435148<_0x5bda43[_0x46dea2(0xd9)]&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;if(_0x5bda43[_0x435148]!=='=')return![];_0x435148+=0x1;while(_0x435148<_0x5bda43['length']&&/\s/[_0x46dea2(0xdd)](_0x5bda43[_0x435148]??''))_0x435148+=0x1;const _0x1c9cbe=_0x5bda43[_0x435148];if(_0x1c9cbe!=='\x22'&&_0x1c9cbe!=='\x27')return![];_0x435148+=0x1;const _0x37888a=_0x5bda43[_0x46dea2(0xb9)](_0x1c9cbe,_0x435148);if(_0x37888a<0x0)return![];if(decodeXmlEntities(_0x5bda43[_0x46dea2(0xb6)](_0x435148,_0x37888a))===null)return![];_0x435148=_0x37888a+0x1;}return!![];}function a284_0x50f1(_0x5f383a,_0x34fc04){_0x5f383a=_0x5f383a-0x9a;const _0x2b597e=a284_0x2b59();let _0x50f150=_0x2b597e[_0x5f383a];return _0x50f150;}function a284_0x2b59(){const _0x450438=['from','mybatisXml','Unterminated\x20CDATA\x20section.','keys','matchAll','error','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Invalid\x20MyBatis\x20XML\x20tag.','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','5fGgrlB','UPDATE','parseInt','\x20SET\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20','Unterminated\x20MyBatis\x20XML\x20tag.','&quot;','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','<!--','otherwise','add','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','143CuLkMQ','\x20WHERE\x20','195732eTFxoj','__RABETBASE_MYBATIS_DYNAMIC_START__','1770210pZmmcX','length','fromCodePoint','SELECT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','1351539rTVnJO','update','DELETE','split','reason','SQL\x20content\x20is\x20empty','32RILYvw','delete','has','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','choose',']]>','join','-->','exec','sql','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','&lt;','349158bBZgdI','WITH','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','replaceAll','property','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Invalid\x20XML\x20entity\x20reference.','toUpperCase','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','startsWith','where','<![CDATA[','Unterminated\x20XML\x20comment.','set','UNKNOWN','4YKghCs','\x20with\x20parameters:\x20','&amp;','Unterminated\x20XML\x20declaration.','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','push','string','tagName','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','type','include','83470kLEXKO','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','rawName','^<\x5cs*(?:','30468NCoLOy','538937fnhRqC','foreach','insert','outer','replace','4aRXGTS','select','INSERT','13snCNYe','trim','slice','unknown\x20table(s)','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','indexOf','pop','&gt;','when','match'];a284_0x2b59=function(){return _0x450438;};return a284_0x2b59();}function startsWithMybatisStatementWrapper(_0xad77f){const _0x437393=a284_0x3ab3f4;let _0x2ae26a=0x0;const _0x558aab=()=>{const _0x57ac4c=a284_0x50f1;while(_0x2ae26a<_0xad77f[_0x57ac4c(0xd9)]&&/\s/[_0x57ac4c(0xdd)](_0xad77f[_0x2ae26a]??''))_0x2ae26a+=0x1;};_0x558aab();while(_0x2ae26a<_0xad77f[_0x437393(0xd9)]){if(_0xad77f['startsWith'](_0x437393(0xd0),_0x2ae26a)){const _0x22f49a=_0xad77f['indexOf'](_0x437393(0xec),_0x2ae26a+0x4);if(_0x22f49a<0x0)return!![];_0x2ae26a=_0x22f49a+0x3,_0x558aab();continue;}if(_0xad77f[_0x437393(0xfa)]('<?',_0x2ae26a)){const _0x1e47c9=_0xad77f['indexOf']('?>',_0x2ae26a+0x2);if(_0x1e47c9<0x0)return!![];_0x2ae26a=_0x1e47c9+0x2,_0x558aab();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0xad77f[_0x437393(0xb6)](_0x2ae26a));}function invalidMybatisSource(_0x1bd5d8){const _0x4ca939=a284_0x3ab3f4;return{'sql':'','mode':_0x4ca939(0xbf),'error':_0x1bd5d8};}function findXmlTagEnd(_0x32f2c7,_0xf7a5e7){const _0x263196=a284_0x3ab3f4;let _0x5326e5;for(let _0x36f230=_0xf7a5e7+0x1;_0x36f230<_0x32f2c7[_0x263196(0xd9)];_0x36f230+=0x1){const _0x32a457=_0x32f2c7[_0x36f230];if(_0x5326e5){if(_0x32a457===_0x5326e5)_0x5326e5=undefined;continue;}if(_0x32a457==='\x22'||_0x32a457==='\x27'){_0x5326e5=_0x32a457;continue;}if(_0x32a457==='>')return _0x36f230;}return-0x1;}function decodeXmlEntities(_0x3dd5ad){const _0x4b0a48=a284_0x3ab3f4;let _0x43a2be=![];const _0x1e2683=_0x3dd5ad[_0x4b0a48(0xb0)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x580084=>{const _0x3c7195=_0x4b0a48;if(_0x580084===_0x3c7195(0xf0))return'<';if(_0x580084===_0x3c7195(0xbb))return'>';if(_0x580084===_0x3c7195(0xce))return'\x22';if(_0x580084==='&apos;')return'\x27';if(_0x580084===_0x3c7195(0x9e))return'&';const _0x214271=/^&#(?:x([0-9a-f]+)|([0-9]+));$/['exec'](_0x580084);if(_0x214271){const _0x3d15ff=_0x214271[0x1],_0x336737=_0x214271[0x2],_0xa7ef0c=Number[_0x3c7195(0xca)](_0x3d15ff??_0x336737??'',_0x3d15ff?0x10:0xa);if(isValidXmlCharacter(_0xa7ef0c))return String[_0x3c7195(0xda)](_0xa7ef0c);}return _0x43a2be=!![],'';});return _0x43a2be?null:_0x1e2683;}function isValidXmlCharacter(_0x5abe41){return _0x5abe41===0x9||_0x5abe41===0xa||_0x5abe41===0xd||_0x5abe41>=0x20&&_0x5abe41<=0xd7ff||_0x5abe41>=0xe000&&_0x5abe41<=0xfffd||_0x5abe41>=0x10000&&_0x5abe41<=0x10ffff;}export function detectSqlType(_0x364187){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x364187));}function detectNormalizedSqlType(_0x4b2083){const _0x599944=a284_0x3ab3f4;if(_0x4b2083['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x4b2083[_0x599944(0xc3)]};if(!_0x4b2083[_0x599944(0xee)]['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x599944(0xe3)};const _0x2584f5=stripStaticAnalysisMarkers(_0x4b2083[_0x599944(0xee)])[_0x599944(0xb0)](/#\{[^}]*\}/g,'?')[_0x599944(0xb0)](/\$\{[^}]*\}/g,'?')[_0x599944(0xb0)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x599944(0xb0)](/\/\*[\s\S]*?\*\//g,'')[_0x599944(0xb5)](),_0x1814b9=_0x2584f5[_0x599944(0xe1)]('\x0a');let _0x2f23d5='';for(const _0x112dbb of _0x1814b9){const _0x576742=_0x112dbb[_0x599944(0xb5)]();if(!_0x576742||_0x576742[_0x599944(0xfa)]('--')||_0x576742[_0x599944(0xfa)]('/*'))continue;_0x2f23d5=_0x576742;break;}const _0x844797=_0x2f23d5[_0x599944(0xf8)](),_0x152f7c=_0x4b2083['statementType'],_0x1ec8d9=maskSqlTextForBlockedKeywordScan(_0x2584f5),_0x56ab40=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x1ec8d9);if(_0x152f7c===_0x599944(0xdb)||!_0x152f7c&&(_0x844797[_0x599944(0xfa)](_0x599944(0xdb))||_0x844797['startsWith'](_0x599944(0xf2)))){const _0x1dd64c=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x599944(0xdd)](_0x2584f5);return{'type':_0x599944(0xdb),'isSelectOnly':!_0x1dd64c,'isDangerous':_0x1dd64c,'reason':_0x1dd64c?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x152f7c===_0x599944(0xb3)||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xb3)))return{'type':_0x599944(0xb3),'isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='UPDATE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xc9)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x56ab40,'reason':_0x56ab40?_0x599944(0xa0):undefined};if(_0x152f7c==='DELETE'||!_0x152f7c&&_0x844797[_0x599944(0xfa)](_0x599944(0xe0)))return{'type':_0x599944(0xe0),'isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xcf)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x599944(0xdd)](_0x844797))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x599944(0xdc)};return{'type':_0x599944(0x9b),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x827b22){const _0x572f3e=a284_0x3ab3f4;return _0x827b22[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x572f3e(0xf4)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x5491fb){const _0x12a5f4=a284_0x3ab3f4;return _0x5491fb[_0x12a5f4(0xb0)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x12a5f4(0xb0)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x12a5f4(0xb0)](/--.*$/gm,'\x20')[_0x12a5f4(0xb0)](/#.*$/gm,'\x20')[_0x12a5f4(0xb0)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x50e8d7){const _0x15c557=a284_0x3ab3f4,_0x4712b8=_0x50e8d7[_0x15c557(0xb0)](/#\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/\$\{[^}]*\}/g,'?')[_0x15c557(0xb0)](/'[^']*'/g,'\x27\x27')[_0x15c557(0xb0)](/--.*$/gm,'')[_0x15c557(0xb0)](/\/\*[\s\S]*?\*\//g,''),_0x2713f0=[],_0x159152=_0x4712b8[_0x15c557(0xbd)](/FROM\s+([^\s,)(]+)/i);addTable(_0x2713f0,_0x159152?.[0x1]);for(const _0x289b4e of _0x4712b8['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2713f0,_0x289b4e[0x1]);}const _0x25d583=_0x4712b8[_0x15c557(0xbd)](/INTO\s+([^\s(]+)/i);addTable(_0x2713f0,_0x25d583?.[0x1]);const _0x45df50=_0x4712b8['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2713f0,_0x45df50?.[0x1]),_0x2713f0;}function addTable(_0x158d39,_0x52d8c6){const _0x5878a4=a284_0x3ab3f4,_0x94af64=_0x52d8c6?.['replace'](/[`"]/g,'');_0x94af64&&_0x94af64!==UNRESOLVED_SQL_FRAGMENT&&!_0x158d39['includes'](_0x94af64)&&_0x158d39[_0x5878a4(0xa1)](_0x94af64);}function extractParameters(_0x3555c2){const _0x5806d9=a284_0x3ab3f4,_0x69595e=new Set();for(const _0x138b58 of _0x3555c2[_0x5806d9(0xc2)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x138b58[0x1])_0x69595e[_0x5806d9(0xd2)](_0x138b58[0x1]);}return Array[_0x5806d9(0xbe)](_0x69595e);}export function validateSql(_0x1ee76e){const _0x5c525b=a284_0x3ab3f4,_0x44f1f5=normalizeSqlForStaticAnalysis(_0x1ee76e),_0x500b46=detectNormalizedSqlType(_0x44f1f5),_0x24dd6d=stripStaticAnalysisMarkers(_0x44f1f5['sql']),_0x35f5bb=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractTables(_0x24dd6d),_0x51ee4d=_0x44f1f5[_0x5c525b(0xc3)]?[]:extractParameters(_0x24dd6d);if(_0x500b46['isDangerous'])return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xe2)]||_0x500b46['type']+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0x500b46['type']===_0x5c525b(0x9b))return{'valid':![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x44f1f5[_0x5c525b(0xc3)]?_0x5c525b(0xcc)+_0x44f1f5['error']:_0x5c525b(0xa8)};return{'valid':!![],'sqlType':_0x500b46,'tables':_0x35f5bb,'parameters':_0x51ee4d,'message':_0x500b46[_0x5c525b(0xa5)]+'\x20query\x20targeting\x20'+(_0x35f5bb[_0x5c525b(0xd9)]?_0x35f5bb[_0x5c525b(0xeb)](',\x20'):_0x5c525b(0xb7))+(_0x51ee4d[_0x5c525b(0xd9)]?_0x5c525b(0x9d)+_0x51ee4d['join'](',\x20'):'')};}
1
+ const a296_0xe2d21f=a296_0x2ec3;(function(_0x8ddda8,_0x112b3e){const _0x1833c8=a296_0x2ec3,_0x505990=_0x8ddda8();while(!![]){try{const _0x366195=parseInt(_0x1833c8(0x164))/0x1*(-parseInt(_0x1833c8(0x199))/0x2)+-parseInt(_0x1833c8(0x181))/0x3*(parseInt(_0x1833c8(0x17b))/0x4)+parseInt(_0x1833c8(0x154))/0x5+-parseInt(_0x1833c8(0x14a))/0x6*(-parseInt(_0x1833c8(0x15f))/0x7)+parseInt(_0x1833c8(0x17a))/0x8*(-parseInt(_0x1833c8(0x177))/0x9)+-parseInt(_0x1833c8(0x166))/0xa*(parseInt(_0x1833c8(0x159))/0xb)+parseInt(_0x1833c8(0x170))/0xc;if(_0x366195===_0x112b3e)break;else _0x505990['push'](_0x505990['shift']());}catch(_0x25f45f){_0x505990['push'](_0x505990['shift']());}}}(a296_0x5868,0xbb8ef));const MYBATIS_OUTER_TAGS=new Map([[a296_0xe2d21f(0x185),a296_0xe2d21f(0x14c)],[a296_0xe2d21f(0x15a),a296_0xe2d21f(0x1ab)],[a296_0xe2d21f(0x19c),a296_0xe2d21f(0x19b)],['delete',a296_0xe2d21f(0x1ad)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a296_0xe2d21f(0x18d),a296_0xe2d21f(0x18a),'choose',a296_0xe2d21f(0x149),a296_0xe2d21f(0x197),a296_0xe2d21f(0x16a),a296_0xe2d21f(0x19a),a296_0xe2d21f(0x1a4),'include','property']),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0xe2d21f(0x18a),a296_0xe2d21f(0x14f),a296_0xe2d21f(0x149),a296_0xe2d21f(0x197)]);export const MYBATIS_DYNAMIC_START_MARKER=a296_0xe2d21f(0x157);function a296_0x2ec3(_0x195ea1,_0xb7b919){_0x195ea1=_0x195ea1-0x149;const _0x586834=a296_0x5868();let _0x2ec347=_0x586834[_0x195ea1];return _0x2ec347;}export const MYBATIS_DYNAMIC_END_MARKER='__RABETBASE_MYBATIS_DYNAMIC_END__';export const MYBATIS_INCLUDE_MARKER=a296_0xe2d21f(0x179);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0xe2d21f(0x1a7)+[...MYBATIS_OUTER_TAGS[a296_0xe2d21f(0x1a3)]()][a296_0xe2d21f(0x150)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x856003){const _0x3cfd8b=a296_0xe2d21f,_0xbbb8ad=typeof _0x856003===_0x3cfd8b(0x19f)?_0x856003:'';if(!startsWithMybatisStatementWrapper(_0xbbb8ad))return{'sql':_0xbbb8ad,'mode':'sql'};let _0x4bf2ac=0x0,_0x192f21='',_0x11f694,_0x2744ee=![],_0x3858a=![];const _0x2db200=[];while(_0x4bf2ac<_0xbbb8ad[_0x3cfd8b(0x15d)]){if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x18f),_0x4bf2ac)){const _0x2837b5=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x182),_0x4bf2ac+0x4);if(_0x2837b5<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x192f21+='\x20',_0x4bf2ac=_0x2837b5+0x3;continue;}if(_0xbbb8ad['startsWith'](_0x3cfd8b(0x187),_0x4bf2ac)){if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x1b2));const _0xc20c22=_0xbbb8ad[_0x3cfd8b(0x17f)](_0x3cfd8b(0x189),_0x4bf2ac+0x9);if(_0xc20c22<0x0)return invalidMybatisSource(_0x3cfd8b(0x169));_0x192f21+=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac+0x9,_0xc20c22),_0x4bf2ac=_0xc20c22+0x3;continue;}if(_0xbbb8ad[_0x3cfd8b(0x190)]('<?',_0x4bf2ac)){if(_0x2744ee)return invalidMybatisSource(_0x3cfd8b(0x176));const _0x886883=_0xbbb8ad[_0x3cfd8b(0x17f)]('?>',_0x4bf2ac+0x2);if(_0x886883<0x0)return invalidMybatisSource(_0x3cfd8b(0x156));_0x192f21+='\x20',_0x4bf2ac=_0x886883+0x2;continue;}if(_0xbbb8ad[_0x4bf2ac]!=='<'){const _0xc615c8=_0xbbb8ad[_0x3cfd8b(0x17f)]('<',_0x4bf2ac),_0x91f3ab=_0xc615c8<0x0?_0xbbb8ad['length']:_0xc615c8,_0x4c1eae=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x91f3ab);if((!_0x2744ee||_0x3858a)&&_0x4c1eae[_0x3cfd8b(0x16a)]())return invalidMybatisSource(_0x3cfd8b(0x160));if(_0x2744ee&&!_0x3858a){const _0x18ae4c=decodeXmlEntities(_0x4c1eae);if(_0x18ae4c===null)return invalidMybatisSource(_0x3cfd8b(0x167));_0x192f21+=_0x18ae4c;}else _0x192f21+='\x20';_0x4bf2ac=_0x91f3ab;continue;}const _0x34888e=findXmlTagEnd(_0xbbb8ad,_0x4bf2ac);if(_0x34888e<0x0)return invalidMybatisSource(_0x3cfd8b(0x14b));const _0x3cff79=_0xbbb8ad[_0x3cfd8b(0x1ac)](_0x4bf2ac,_0x34888e+0x1),_0x1f2ae1=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x3cfd8b(0x168)](_0x3cff79);if(!_0x1f2ae1)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x5a5dfe=_0x1f2ae1[0x1]==='/',_0x472d44=_0x1f2ae1[0x2]??'',_0x541bd0=_0x472d44[_0x3cfd8b(0x15c)](),_0x346f03=_0x1f2ae1[0x3]??'',_0x1c2e29=_0x1f2ae1[0x4]==='/',_0x54ec71=MYBATIS_OUTER_TAGS[_0x3cfd8b(0x174)](_0x541bd0);if(!_0x54ec71&&!MYBATIS_DYNAMIC_TAGS['has'](_0x541bd0))return invalidMybatisSource(_0x3cfd8b(0x152)+_0x541bd0+'>.');if(!_0x54ec71&&_0x472d44!==_0x541bd0)return invalidMybatisSource(_0x3cfd8b(0x18b)+_0x472d44+'>.');if(_0x5a5dfe){if(_0x346f03[_0x3cfd8b(0x16a)]()||_0x1c2e29)return invalidMybatisSource(_0x3cfd8b(0x1b0)+_0x472d44+'>.');const _0x2691d2=_0x2db200['at'](-0x1);if(!_0x2691d2||(_0x2691d2[_0x3cfd8b(0x15e)]?_0x2691d2[_0x3cfd8b(0x17e)]!==_0x541bd0:_0x2691d2[_0x3cfd8b(0x196)]!==_0x472d44))return invalidMybatisSource(_0x3cfd8b(0x186)+_0x472d44+'>.');_0x2db200[_0x3cfd8b(0x172)]();if(_0x2691d2['outer'])_0x3858a=!![];_0x192f21+=MYBATIS_BRANCH_TAGS[_0x3cfd8b(0x171)](_0x541bd0)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x346f03))return invalidMybatisSource(_0x3cfd8b(0x1a2)+_0x472d44+'>.');if(_0x541bd0===_0x3cfd8b(0x1a6)&&(!_0x1c2e29||_0x2db200['at'](-0x1)?.['tagName']!=='include'))return invalidMybatisSource(_0x3cfd8b(0x195));if(_0x54ec71){if(_0x2744ee||_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x2744ee=!![],_0x3858a=_0x1c2e29,_0x11f694=_0x54ec71;}else{if(!_0x2744ee||_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16d)+_0x472d44+'>.');}_0x192f21+=_0x541bd0===_0x3cfd8b(0x18d)?_0x3cfd8b(0x19e):_0x541bd0===_0x3cfd8b(0x19a)?_0x3cfd8b(0x1a0):_0x541bd0===_0x3cfd8b(0x1b1)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x541bd0)&&!_0x1c2e29?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1c2e29&&_0x2db200[_0x3cfd8b(0x193)]({'rawName':_0x472d44,'tagName':_0x541bd0,'outer':!!_0x54ec71});}_0x4bf2ac=_0x34888e+0x1;}if(_0x2db200[_0x3cfd8b(0x15d)]>0x0)return invalidMybatisSource('Unclosed\x20MyBatis\x20XML\x20tag:\x20<'+_0x2db200['at'](-0x1)?.['rawName']+'>.');if(!_0x2744ee||!_0x3858a)return invalidMybatisSource(_0x3cfd8b(0x16f));return{'sql':_0x192f21[_0x3cfd8b(0x16a)](),'mode':_0x3cfd8b(0x18e),..._0x11f694?{'statementType':_0x11f694}:{}};}function hasWellFormedXmlAttributes(_0x5e3b74){const _0x1402e2=a296_0xe2d21f;let _0x2f7121=0x0;const _0x1d089c=new Set();while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]){while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/['test'](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x2f7121>=_0x5e3b74[_0x1402e2(0x15d)])return!![];const _0x18f6fd=/^[A-Za-z_:][\w:.-]*/[_0x1402e2(0x168)](_0x5e3b74['slice'](_0x2f7121)),_0x4c6b31=_0x18f6fd?.[0x0];if(!_0x4c6b31||_0x1d089c[_0x1402e2(0x171)](_0x4c6b31))return![];_0x1d089c[_0x1402e2(0x173)](_0x4c6b31),_0x2f7121+=_0x4c6b31['length'];while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;if(_0x5e3b74[_0x2f7121]!=='=')return![];_0x2f7121+=0x1;while(_0x2f7121<_0x5e3b74[_0x1402e2(0x15d)]&&/\s/[_0x1402e2(0x15b)](_0x5e3b74[_0x2f7121]??''))_0x2f7121+=0x1;const _0x355165=_0x5e3b74[_0x2f7121];if(_0x355165!=='\x22'&&_0x355165!=='\x27')return![];_0x2f7121+=0x1;const _0x2c64cc=_0x5e3b74['indexOf'](_0x355165,_0x2f7121);if(_0x2c64cc<0x0)return![];if(decodeXmlEntities(_0x5e3b74[_0x1402e2(0x1ac)](_0x2f7121,_0x2c64cc))===null)return![];_0x2f7121=_0x2c64cc+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x53f97c){const _0xf26426=a296_0xe2d21f;let _0xd98e8f=0x0;const _0x10504a=()=>{const _0x484c6c=a296_0x2ec3;while(_0xd98e8f<_0x53f97c['length']&&/\s/[_0x484c6c(0x15b)](_0x53f97c[_0xd98e8f]??''))_0xd98e8f+=0x1;};_0x10504a();while(_0xd98e8f<_0x53f97c[_0xf26426(0x15d)]){if(_0x53f97c[_0xf26426(0x190)](_0xf26426(0x18f),_0xd98e8f)){const _0x10a420=_0x53f97c['indexOf']('-->',_0xd98e8f+0x4);if(_0x10a420<0x0)return!![];_0xd98e8f=_0x10a420+0x3,_0x10504a();continue;}if(_0x53f97c[_0xf26426(0x190)]('<?',_0xd98e8f)){const _0x51b866=_0x53f97c[_0xf26426(0x17f)]('?>',_0xd98e8f+0x2);if(_0x51b866<0x0)return!![];_0xd98e8f=_0x51b866+0x2,_0x10504a();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0xf26426(0x15b)](_0x53f97c[_0xf26426(0x1ac)](_0xd98e8f));}function invalidMybatisSource(_0x4de398){const _0x20c912=a296_0xe2d21f;return{'sql':'','mode':_0x20c912(0x18e),'error':_0x4de398};}function a296_0x5868(){const _0x52d053=['insert','test','toLowerCase','length','outer','15596HODdNQ','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','&amp;','Unable\x20to\x20detect\x20SQL\x20type.\x20','\x20query\x20targeting\x20','452LYDvAe','parseInt','904170KiwaOG','Invalid\x20XML\x20entity\x20reference.','exec','Unterminated\x20CDATA\x20section.','trim','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','reason','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','match','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','8664948yGUDlY','has','pop','add','get','replace','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','9606852IhtvuC','WITH','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','8QzstLr','52HguCUN','statementType','includes','tagName','indexOf','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','9777qBFsax','-->','isDangerous','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','select','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','<![CDATA[','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save',']]>','foreach','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','fromCodePoint','where','mybatisXml','<!--','startsWith','replaceAll','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','push','&gt;','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','rawName','otherwise','&lt;','974RdxrTL','set','UPDATE','update','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20WHERE\x20','string','\x20SET\x20','type','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','keys','bind','matchAll','property','^<\x5cs*(?:','from','DDL','unknown\x20table(s)','INSERT','slice','DELETE','&apos;','SQL\x20content\x20is\x20empty','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','include','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','when','582ueLses','Unterminated\x20MyBatis\x20XML\x20tag.','SELECT','UNKNOWN','toUpperCase','choose','join','sql','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','&quot;','7156070pnjKPi','\x20with\x20parameters:\x20','Unterminated\x20XML\x20declaration.','__RABETBASE_MYBATIS_DYNAMIC_START__','error','33DjDmCG'];a296_0x5868=function(){return _0x52d053;};return a296_0x5868();}function findXmlTagEnd(_0x5d04c5,_0x5bdbbc){const _0x4c1e54=a296_0xe2d21f;let _0x5da384;for(let _0x29d50d=_0x5bdbbc+0x1;_0x29d50d<_0x5d04c5[_0x4c1e54(0x15d)];_0x29d50d+=0x1){const _0xfdf964=_0x5d04c5[_0x29d50d];if(_0x5da384){if(_0xfdf964===_0x5da384)_0x5da384=undefined;continue;}if(_0xfdf964==='\x22'||_0xfdf964==='\x27'){_0x5da384=_0xfdf964;continue;}if(_0xfdf964==='>')return _0x29d50d;}return-0x1;}function decodeXmlEntities(_0x4133e8){let _0x523e46=![];const _0x28eb5d=_0x4133e8['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x44d883=>{const _0x377011=a296_0x2ec3;if(_0x44d883===_0x377011(0x198))return'<';if(_0x44d883===_0x377011(0x194))return'>';if(_0x44d883===_0x377011(0x153))return'\x22';if(_0x44d883===_0x377011(0x1ae))return'\x27';if(_0x44d883===_0x377011(0x161))return'&';const _0x545f39=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x377011(0x168)](_0x44d883);if(_0x545f39){const _0x392be8=_0x545f39[0x1],_0x4a3dba=_0x545f39[0x2],_0x2de19a=Number[_0x377011(0x165)](_0x392be8??_0x4a3dba??'',_0x392be8?0x10:0xa);if(isValidXmlCharacter(_0x2de19a))return String[_0x377011(0x18c)](_0x2de19a);}return _0x523e46=!![],'';});return _0x523e46?null:_0x28eb5d;}function isValidXmlCharacter(_0x52e1ef){return _0x52e1ef===0x9||_0x52e1ef===0xa||_0x52e1ef===0xd||_0x52e1ef>=0x20&&_0x52e1ef<=0xd7ff||_0x52e1ef>=0xe000&&_0x52e1ef<=0xfffd||_0x52e1ef>=0x10000&&_0x52e1ef<=0x10ffff;}export function detectSqlType(_0xf2c179){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0xf2c179));}function detectNormalizedSqlType(_0x40dcb8){const _0x4c775b=a296_0xe2d21f;if(_0x40dcb8[_0x4c775b(0x158)])return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x40dcb8['error']};if(!_0x40dcb8[_0x4c775b(0x151)]['trim']())return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![],'reason':_0x4c775b(0x1af)};const _0x4756c8=stripStaticAnalysisMarkers(_0x40dcb8[_0x4c775b(0x151)])[_0x4c775b(0x175)](/#\{[^}]*\}/g,'?')[_0x4c775b(0x175)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x4c775b(0x175)](/\/\*[\s\S]*?\*\//g,'')[_0x4c775b(0x16a)](),_0x594e3d=_0x4756c8['split']('\x0a');let _0x4ece22='';for(const _0x4722bb of _0x594e3d){const _0x22b92d=_0x4722bb[_0x4c775b(0x16a)]();if(!_0x22b92d||_0x22b92d[_0x4c775b(0x190)]('--')||_0x22b92d[_0x4c775b(0x190)]('/*'))continue;_0x4ece22=_0x22b92d;break;}const _0x538f54=_0x4ece22[_0x4c775b(0x14e)](),_0x152122=_0x40dcb8[_0x4c775b(0x17c)],_0x39125e=maskSqlTextForBlockedKeywordScan(_0x4756c8),_0x17a027=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x4c775b(0x15b)](_0x39125e);if(_0x152122===_0x4c775b(0x14c)||!_0x152122&&(_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x14c))||_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x178)))){const _0x21e423=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4756c8);return{'type':'SELECT','isSelectOnly':!_0x21e423,'isDangerous':_0x21e423,'reason':_0x21e423?_0x4c775b(0x180):undefined};}if(_0x152122===_0x4c775b(0x1ab)||!_0x152122&&_0x538f54['startsWith']('INSERT'))return{'type':_0x4c775b(0x1ab),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?_0x4c775b(0x184):undefined};if(_0x152122===_0x4c775b(0x19b)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x19b)))return{'type':_0x4c775b(0x19b),'isSelectOnly':![],'isDangerous':_0x17a027,'reason':_0x17a027?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x152122===_0x4c775b(0x1ad)||!_0x152122&&_0x538f54[_0x4c775b(0x190)](_0x4c775b(0x1ad)))return{'type':_0x4c775b(0x1ad),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x19d)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x4c775b(0x15b)](_0x538f54))return{'type':_0x4c775b(0x1a9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x4c775b(0x188)};return{'type':_0x4c775b(0x14d),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0xc687c8){const _0x6e44f1=a296_0xe2d21f;return _0xc687c8[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x6e44f1(0x191)](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x1db35e){const _0x4f4aae=a296_0xe2d21f;return _0x1db35e[_0x4f4aae(0x175)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x4f4aae(0x175)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x4f4aae(0x175)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x4f4aae(0x175)](/--.*$/gm,'\x20')[_0x4f4aae(0x175)](/#.*$/gm,'\x20')[_0x4f4aae(0x175)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x2b2e3c){const _0x313f23=a296_0xe2d21f,_0x8e3b69=_0x2b2e3c[_0x313f23(0x175)](/#\{[^}]*\}/g,'?')[_0x313f23(0x175)](/\$\{[^}]*\}/g,'?')[_0x313f23(0x175)](/'[^']*'/g,'\x27\x27')[_0x313f23(0x175)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x143fa7=[],_0x7cfa44=_0x8e3b69[_0x313f23(0x16e)](/FROM\s+([^\s,)(]+)/i);addTable(_0x143fa7,_0x7cfa44?.[0x1]);for(const _0x3a42d5 of _0x8e3b69[_0x313f23(0x1a5)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x143fa7,_0x3a42d5[0x1]);}const _0x5c1fae=_0x8e3b69[_0x313f23(0x16e)](/INTO\s+([^\s(]+)/i);addTable(_0x143fa7,_0x5c1fae?.[0x1]);const _0x32626f=_0x8e3b69[_0x313f23(0x16e)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x143fa7,_0x32626f?.[0x1]),_0x143fa7;}function addTable(_0x5d9557,_0x5d4884){const _0x2256b2=a296_0xe2d21f,_0x276345=_0x5d4884?.[_0x2256b2(0x175)](/[`"]/g,'');_0x276345&&_0x276345!==UNRESOLVED_SQL_FRAGMENT&&!_0x5d9557[_0x2256b2(0x17d)](_0x276345)&&_0x5d9557[_0x2256b2(0x193)](_0x276345);}function extractParameters(_0x5669bb){const _0x967fae=a296_0xe2d21f,_0x1977d1=new Set();for(const _0x1f736d of _0x5669bb[_0x967fae(0x1a5)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x1f736d[0x1])_0x1977d1[_0x967fae(0x173)](_0x1f736d[0x1]);}return Array[_0x967fae(0x1a8)](_0x1977d1);}export function validateSql(_0x4ac5f3){const _0x267eda=a296_0xe2d21f,_0x1bb99d=normalizeSqlForStaticAnalysis(_0x4ac5f3),_0x574bcf=detectNormalizedSqlType(_0x1bb99d),_0x56fb6a=stripStaticAnalysisMarkers(_0x1bb99d[_0x267eda(0x151)]),_0x2214c2=_0x1bb99d[_0x267eda(0x158)]?[]:extractTables(_0x56fb6a),_0x2c9b7d=_0x1bb99d[_0x267eda(0x158)]?[]:extractParameters(_0x56fb6a);if(_0x574bcf[_0x267eda(0x183)])return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf[_0x267eda(0x16c)]||_0x574bcf[_0x267eda(0x1a1)]+_0x267eda(0x16b)};if(_0x574bcf['type']===_0x267eda(0x14d))return{'valid':![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x1bb99d[_0x267eda(0x158)]?_0x267eda(0x162)+_0x1bb99d[_0x267eda(0x158)]:_0x267eda(0x192)};return{'valid':!![],'sqlType':_0x574bcf,'tables':_0x2214c2,'parameters':_0x2c9b7d,'message':_0x574bcf['type']+_0x267eda(0x163)+(_0x2214c2[_0x267eda(0x15d)]?_0x2214c2[_0x267eda(0x150)](',\x20'):_0x267eda(0x1aa))+(_0x2c9b7d['length']?_0x267eda(0x155)+_0x2c9b7d[_0x267eda(0x150)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a285_0x565d80=a285_0x5774;function a285_0x3202(){const _0x220ef5=['Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20project\x20directory','601741SeHBDH','1301907BMVlAd','4aIKBjq','Network\x20error:\x20','apiError','\x20--help`\x20to\x20see\x20available\x20commands.','Run\x20`','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','Configuration\x20file\x20not\x20found','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','576452AhSyiD','flag_missing','Missing\x20required\x20flag:\x20--','config_missing','Authentication\x20required','Set\x20appcode\x20via\x20`','Operation\x20cancelled.','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','cancelled','333160ZnQCUa','unknown_command','3633156AxRLaF','\x20auth`\x20to\x20login\x20first.','5265544rBmYxo','not_in_project','Not\x20in\x20a\x20','1349593pgoDar'];a285_0x3202=function(){return _0x220ef5;};return a285_0x3202();}(function(_0x49fcdd,_0x581101){const _0x1dca3b=a285_0x5774,_0x3c1c58=_0x49fcdd();while(!![]){try{const _0xea4126=parseInt(_0x1dca3b(0x16e))/0x1+-parseInt(_0x1dca3b(0x178))/0x2+parseInt(_0x1dca3b(0x16f))/0x3+parseInt(_0x1dca3b(0x170))/0x4*(-parseInt(_0x1dca3b(0x164))/0x5)+parseInt(_0x1dca3b(0x166))/0x6+-parseInt(_0x1dca3b(0x16b))/0x7+-parseInt(_0x1dca3b(0x168))/0x8;if(_0xea4126===_0x581101)break;else _0x3c1c58['push'](_0x3c1c58['shift']());}catch(_0x54bf91){_0x3c1c58['push'](_0x3c1c58['shift']());}}}(a285_0x3202,0x6a4ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a285_0x5774(_0x5b9560,_0x2bfc34){_0x5b9560=_0x5b9560-0x15d;const _0x32027e=a285_0x3202();let _0x5774e1=_0x32027e[_0x5b9560];return _0x5774e1;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a285_0x565d80(0x174)+CLI_BIN_NAME+a285_0x565d80(0x167),'configMissingHint':a285_0x565d80(0x160)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`'+CLI_BIN_NAME+a285_0x565d80(0x162),'notInProjectHint':a285_0x565d80(0x16c)});export const CliErrors={'authRequired'(_0x279181){const _0x376181=a285_0x565d80;return new CliError('auth_required',0x1,_0x376181(0x15f),_0x279181??_0x376181(0x174)+CLI_BIN_NAME+_0x376181(0x167));},'configMissing'(_0x2791be){const _0x16e3c5=a285_0x565d80;return new CliError(_0x16e3c5(0x15e),0x1,_0x16e3c5(0x176),_0x2791be??_0x16e3c5(0x160)+CLI_BIN_NAME+_0x16e3c5(0x177)+CLI_BIN_NAME+_0x16e3c5(0x162));},'notInProject'(){const _0x1c3ecb=a285_0x565d80;return new CliError(_0x1c3ecb(0x169),0x1,_0x1c3ecb(0x16a)+CLI_BIN_NAME+_0x1c3ecb(0x16d),_0x1c3ecb(0x16c));},'apiError'(_0x55d727,_0x33afc1){const _0x50b1e5=a285_0x565d80;return baseCliErrors[_0x50b1e5(0x172)](_0x55d727,_0x33afc1);},'networkError'(_0x1a6c74){const _0x4df8f6=a285_0x565d80;return new CliError('network_error',0x2,_0x4df8f6(0x171)+_0x1a6c74,_0x4df8f6(0x175));},'unknownCommand'(_0x57ede0){const _0x597769=a285_0x565d80;return new CliError(_0x597769(0x165),0x1,'Unknown\x20command:\x20'+_0x57ede0,_0x597769(0x174)+CLI_BIN_NAME+_0x597769(0x173));},'flagMissing'(_0x44ca98,_0x2f6ba1){const _0x539eb2=a285_0x565d80;return new CliError(_0x539eb2(0x179),0x1,_0x539eb2(0x15d)+_0x44ca98,_0x2f6ba1);},'validation'(_0x12f2a8,_0x3d0d02){return baseCliErrors['validation'](_0x12f2a8,_0x3d0d02);},'cancelled'(_0x3685f6){const _0x36ceac=a285_0x565d80;return new CliError(_0x36ceac(0x163),0x0,_0x3685f6??_0x36ceac(0x161));}};
1
+ function a297_0x1eee(){const _0x3d7667=['4800840BrtIFn','auth_required','Configuration\x20file\x20not\x20found','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','\x20project\x20directory','Authentication\x20required','Missing\x20required\x20flag:\x20--','\x20--help`\x20to\x20see\x20available\x20commands.','176224yRCBxq','2907474HhtrOo','683358RMbQib','config_missing','Run\x20`','\x20auth`\x20to\x20login\x20first.','apiError','cancelled','network_error','Set\x20appcode\x20via\x20`','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','Not\x20in\x20a\x20','not_in_project','651drJUYJ','flag_missing','4707552ztcXhj','103384HqMymf','Operation\x20cancelled.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','843975ZNxyEQ','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'];a297_0x1eee=function(){return _0x3d7667;};return a297_0x1eee();}const a297_0x2dfe78=a297_0x5068;(function(_0x3aa0bc,_0x18528e){const _0x268f61=a297_0x5068,_0x4667c4=_0x3aa0bc();while(!![]){try{const _0x1300fc=parseInt(_0x268f61(0x1cf))/0x1+-parseInt(_0x268f61(0x1d1))/0x2+-parseInt(_0x268f61(0x1d0))/0x3+parseInt(_0x268f61(0x1e4))/0x4+parseInt(_0x268f61(0x1e2))/0x5+-parseInt(_0x268f61(0x1de))/0x6+parseInt(_0x268f61(0x1dc))/0x7*(parseInt(_0x268f61(0x1df))/0x8);if(_0x1300fc===_0x18528e)break;else _0x4667c4['push'](_0x4667c4['shift']());}catch(_0x43d1aa){_0x4667c4['push'](_0x4667c4['shift']());}}}(a297_0x1eee,0x9f177));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a297_0x5068(_0x120152,_0x14cb37){_0x120152=_0x120152-0x1cc;const _0x1eee3f=a297_0x1eee();let _0x5068f7=_0x1eee3f[_0x120152];return _0x5068f7;}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a297_0x2dfe78(0x1d3)+CLI_BIN_NAME+a297_0x2dfe78(0x1d4),'configMissingHint':'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a297_0x2dfe78(0x1d9)+CLI_BIN_NAME+'\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','notInProjectHint':a297_0x2dfe78(0x1e3)});export const CliErrors={'authRequired'(_0x32dbb8){const _0x5c803e=a297_0x2dfe78;return new CliError(_0x5c803e(0x1e5),0x1,_0x5c803e(0x1cc),_0x32dbb8??'Run\x20`'+CLI_BIN_NAME+_0x5c803e(0x1d4));},'configMissing'(_0x45fd2e){const _0x498acc=a297_0x2dfe78;return new CliError(_0x498acc(0x1d2),0x1,_0x498acc(0x1e6),_0x45fd2e??_0x498acc(0x1d8)+CLI_BIN_NAME+_0x498acc(0x1d9)+CLI_BIN_NAME+_0x498acc(0x1e7));},'notInProject'(){const _0x5c8bdd=a297_0x2dfe78;return new CliError(_0x5c8bdd(0x1db),0x1,_0x5c8bdd(0x1da)+CLI_BIN_NAME+_0x5c8bdd(0x1e8),_0x5c8bdd(0x1e3));},'apiError'(_0x502d3c,_0x100a0f){const _0x5f3e98=a297_0x2dfe78;return baseCliErrors[_0x5f3e98(0x1d5)](_0x502d3c,_0x100a0f);},'networkError'(_0x34e8c8){const _0x1534af=a297_0x2dfe78;return new CliError(_0x1534af(0x1d7),0x2,'Network\x20error:\x20'+_0x34e8c8,_0x1534af(0x1e1));},'unknownCommand'(_0x2547c2){const _0x248e26=a297_0x2dfe78;return new CliError('unknown_command',0x1,'Unknown\x20command:\x20'+_0x2547c2,_0x248e26(0x1d3)+CLI_BIN_NAME+_0x248e26(0x1ce));},'flagMissing'(_0x281e02,_0xa8414d){const _0x45d045=a297_0x2dfe78;return new CliError(_0x45d045(0x1dd),0x1,_0x45d045(0x1cd)+_0x281e02,_0xa8414d);},'validation'(_0x3d7774,_0xb17acc){return baseCliErrors['validation'](_0x3d7774,_0xb17acc);},'cancelled'(_0x347f27){const _0x289848=a297_0x2dfe78;return new CliError(_0x289848(0x1d6),0x0,_0x347f27??_0x289848(0x1e0));}};
@@ -1 +1 @@
1
- (function(_0x5f49b8,_0x3c63d8){const _0x518786=a286_0x531f,_0x507f78=_0x5f49b8();while(!![]){try{const _0x5c6bb3=-parseInt(_0x518786(0x1fb))/0x1+-parseInt(_0x518786(0x1f3))/0x2+parseInt(_0x518786(0x1f5))/0x3*(-parseInt(_0x518786(0x1f6))/0x4)+parseInt(_0x518786(0x1fd))/0x5*(parseInt(_0x518786(0x1fa))/0x6)+-parseInt(_0x518786(0x1f9))/0x7+-parseInt(_0x518786(0x1f8))/0x8+-parseInt(_0x518786(0x1fe))/0x9*(-parseInt(_0x518786(0x1f4))/0xa);if(_0x5c6bb3===_0x3c63d8)break;else _0x507f78['push'](_0x507f78['shift']());}catch(_0x5b9281){_0x507f78['push'](_0x507f78['shift']());}}}(a286_0x26bb,0xabbd8));function a286_0x531f(_0x13a3c9,_0x285a21){_0x13a3c9=_0x13a3c9-0x1f2;const _0x26bbb0=a286_0x26bb();let _0x531fd7=_0x26bbb0[_0x13a3c9];return _0x531fd7;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a286_0x5f17c9}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x3e55dc){const _0xda049b=a286_0x531f,_0x3ef490=a286_0x5f17c9(_0x3e55dc,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x3e55dc))return _0x3ef490;return _0x3ef490[_0xda049b(0x1f2)](_0x43c788=>_0x43c788[_0xda049b(0x1f7)]===_0xda049b(0x1fc)?{..._0x43c788,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x43c788);}function a286_0x26bb(){const _0x2abac4=['name','4373056soOWpt','8836177iiyheO','6IHYQDA','704438ZTHcAC','yes','6617870qRusrW','323991WYVzFv','map','1698354bejQpV','1030heSXVj','579279CCVklT','20rqolCH'];a286_0x26bb=function(){return _0x2abac4;};return a286_0x26bb();}
1
+ function a298_0x262f(){const _0x1beba5=['171651YRgEZS','map','8BVZbzi','7985CaCibZ','5301303Mbzyhn','17304939HTQbGJ','yes','549453BBpHAc','628WnZHGS','7437072fwloVL','1601722JXELhX'];a298_0x262f=function(){return _0x1beba5;};return a298_0x262f();}(function(_0x50a9e3,_0x3d9d0d){const _0x56c0b9=a298_0x3042,_0x41280b=_0x50a9e3();while(!![]){try{const _0x449e29=-parseInt(_0x56c0b9(0x102))/0x1+parseInt(_0x56c0b9(0x101))/0x2+-parseInt(_0x56c0b9(0xfe))/0x3+parseInt(_0x56c0b9(0xff))/0x4*(parseInt(_0x56c0b9(0x105))/0x5)+-parseInt(_0x56c0b9(0x100))/0x6+-parseInt(_0x56c0b9(0x106))/0x7+-parseInt(_0x56c0b9(0x104))/0x8*(-parseInt(_0x56c0b9(0x107))/0x9);if(_0x449e29===_0x3d9d0d)break;else _0x41280b['push'](_0x41280b['shift']());}catch(_0x1b5d05){_0x41280b['push'](_0x41280b['shift']());}}}(a298_0x262f,0x9807e));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a298_0x41b6bc}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a298_0x3042(_0x1a79f6,_0x510be5){_0x1a79f6=_0x1a79f6-0xfd;const _0x262fab=a298_0x262f();let _0x304211=_0x262fab[_0x1a79f6];return _0x304211;}export function buildAllFlags(_0xec9820){const _0x4547b2=a298_0x3042,_0x3b598f=a298_0x41b6bc(_0xec9820,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xec9820))return _0x3b598f;return _0x3b598f[_0x4547b2(0x103)](_0x47cf6a=>_0x47cf6a['name']===_0x4547b2(0xfd)?{..._0x47cf6a,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x47cf6a);}
@@ -1 +1 @@
1
- (function(_0x43bd5b,_0x53373a){var _0x35378a=a287_0x2b41,_0x5b81a4=_0x43bd5b();while(!![]){try{var _0x3e72b6=parseInt(_0x35378a(0xc4))/0x1+parseInt(_0x35378a(0xc0))/0x2+parseInt(_0x35378a(0xc3))/0x3*(parseInt(_0x35378a(0xc2))/0x4)+-parseInt(_0x35378a(0xbe))/0x5+-parseInt(_0x35378a(0xbf))/0x6+parseInt(_0x35378a(0xbd))/0x7+-parseInt(_0x35378a(0xbc))/0x8;if(_0x3e72b6===_0x53373a)break;else _0x5b81a4['push'](_0x5b81a4['shift']());}catch(_0x2863d8){_0x5b81a4['push'](_0x5b81a4['shift']());}}}(a287_0x559d,0x29f31));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x345388){return _0x345388?.['structuredErrors']===!![];}function a287_0x2b41(_0x2ed509,_0x5d2162){_0x2ed509=_0x2ed509-0xbb;var _0x559de3=a287_0x559d();var _0x2b41e2=_0x559de3[_0x2ed509];return _0x2b41e2;}export function resolveErrorOutputFormat(_0x182218){var _0x4e83c3=a287_0x2b41;if(!_0x182218['def'])return _0x182218['defaultFormat']??_0x4e83c3(0xbb);return resolveOutputConfig({'flags':_0x182218['flags']??{},'def':_0x182218[_0x4e83c3(0xc5)],'configDefault':_0x182218[_0x4e83c3(0xc1)]})['format'];}function a287_0x559d(){var _0x22980f=['defaultFormat','4Xmsotg','946032gKvdwz','179586mzfcqI','def','compress','2653440TZEAXa','852985ThIeXJ','179315WpEkel','2042538oZUpuQ','526012xmPyuC'];a287_0x559d=function(){return _0x22980f;};return a287_0x559d();}
1
+ function a299_0x9742(_0x2f5a9f,_0x17a05f){_0x2f5a9f=_0x2f5a9f-0x1c3;var _0x4ae908=a299_0x4ae9();var _0x974201=_0x4ae908[_0x2f5a9f];return _0x974201;}function a299_0x4ae9(){var _0x2ee87c=['5601871VSfwbT','structuredErrors','defaultFormat','3160530EePmsJ','780507VEqfrg','7suOLRd','def','compress','flags','6439938lTYFNw','4295yyPVkT','36964TOdvRO','48CiCIdU','9UoOSeE','1129936uaKleN','format','2228REQPTs'];a299_0x4ae9=function(){return _0x2ee87c;};return a299_0x4ae9();}(function(_0x1444b9,_0x488236){var _0x23c64c=a299_0x9742,_0x454b6f=_0x1444b9();while(!![]){try{var _0x1c9fa3=-parseInt(_0x23c64c(0x1cd))/0x1*(-parseInt(_0x23c64c(0x1ce))/0x2)+-parseInt(_0x23c64c(0x1c6))/0x3+parseInt(_0x23c64c(0x1d2))/0x4*(-parseInt(_0x23c64c(0x1cc))/0x5)+parseInt(_0x23c64c(0x1cb))/0x6*(parseInt(_0x23c64c(0x1c7))/0x7)+-parseInt(_0x23c64c(0x1d0))/0x8*(-parseInt(_0x23c64c(0x1cf))/0x9)+-parseInt(_0x23c64c(0x1c5))/0xa+-parseInt(_0x23c64c(0x1d3))/0xb;if(_0x1c9fa3===_0x488236)break;else _0x454b6f['push'](_0x454b6f['shift']());}catch(_0x5deb0a){_0x454b6f['push'](_0x454b6f['shift']());}}}(a299_0x4ae9,0x8349b));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2be325){var _0x34db4b=a299_0x9742;return _0x2be325?.[_0x34db4b(0x1c3)]===!![];}export function resolveErrorOutputFormat(_0xc576b9){var _0x28641a=a299_0x9742;if(!_0xc576b9[_0x28641a(0x1c8)])return _0xc576b9[_0x28641a(0x1c4)]??_0x28641a(0x1c9);return resolveOutputConfig({'flags':_0xc576b9[_0x28641a(0x1ca)]??{},'def':_0xc576b9[_0x28641a(0x1c8)],'configDefault':_0xc576b9[_0x28641a(0x1c4)]})[_0x28641a(0x1d1)];}
@@ -1 +1 @@
1
- function a288_0x5331(_0x46ab09,_0x39dcd8){_0x46ab09=_0x46ab09-0x1c4;const _0xdb8c76=a288_0xdb8c();let _0x533138=_0xdb8c76[_0x46ab09];return _0x533138;}const a288_0x5ad891=a288_0x5331;(function(_0xca97b8,_0x51b0ba){const _0x48b55e=a288_0x5331,_0x259deb=_0xca97b8();while(!![]){try{const _0x4ed778=-parseInt(_0x48b55e(0x1ca))/0x1*(parseInt(_0x48b55e(0x1c4))/0x2)+-parseInt(_0x48b55e(0x1d2))/0x3+-parseInt(_0x48b55e(0x1d3))/0x4+parseInt(_0x48b55e(0x1c7))/0x5+-parseInt(_0x48b55e(0x1d1))/0x6*(-parseInt(_0x48b55e(0x1c8))/0x7)+-parseInt(_0x48b55e(0x1cc))/0x8+parseInt(_0x48b55e(0x1cb))/0x9;if(_0x4ed778===_0x51b0ba)break;else _0x259deb['push'](_0x259deb['shift']());}catch(_0xde73bf){_0x259deb['push'](_0x259deb['shift']());}}}(a288_0xdb8c,0x30c2f));const EXPLICIT_YES_COMMANDS=new Set([a288_0x5ad891(0x1ce),a288_0x5ad891(0x1cd),'notification\x20config-update',a288_0x5ad891(0x1c9)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a288_0x5ad891(0x1cf);export function requiresExplicitYes(_0x99d488){const _0x49c0a4=a288_0x5ad891;return EXPLICIT_YES_COMMANDS[_0x49c0a4(0x1d0)](_0x99d488[_0x49c0a4(0x1c6)]+'\x20'+_0x99d488[_0x49c0a4(0x1c5)]);}function a288_0xdb8c(){const _0x58b58d=['command','service','838690UcOZUu','21YzPLCD','notification\x20config-delete','8542zRKBpm','6469119fWhljP','1919904tDTUgE','kb\x20delete','menu\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','has','525930nRFQxN','40197xNtYLr','1521304AqFTcO','74lATDrN'];a288_0xdb8c=function(){return _0x58b58d;};return a288_0xdb8c();}
1
+ function a300_0x3cc8(_0x14cda6,_0x5e0b6f){_0x14cda6=_0x14cda6-0x194;const _0x55407f=a300_0x5540();let _0x3cc824=_0x55407f[_0x14cda6];return _0x3cc824;}const a300_0x47bff8=a300_0x3cc8;(function(_0x270666,_0x3da663){const _0x4b2bef=a300_0x3cc8,_0x6ab338=_0x270666();while(!![]){try{const _0x211636=parseInt(_0x4b2bef(0x1a2))/0x1+-parseInt(_0x4b2bef(0x19b))/0x2*(-parseInt(_0x4b2bef(0x194))/0x3)+-parseInt(_0x4b2bef(0x19c))/0x4+parseInt(_0x4b2bef(0x1a1))/0x5*(-parseInt(_0x4b2bef(0x196))/0x6)+parseInt(_0x4b2bef(0x197))/0x7+-parseInt(_0x4b2bef(0x195))/0x8+-parseInt(_0x4b2bef(0x1a3))/0x9*(-parseInt(_0x4b2bef(0x199))/0xa);if(_0x211636===_0x3da663)break;else _0x6ab338['push'](_0x6ab338['shift']());}catch(_0x55cb34){_0x6ab338['push'](_0x6ab338['shift']());}}}(a300_0x5540,0x41787));const EXPLICIT_YES_COMMANDS=new Set([a300_0x47bff8(0x19f),a300_0x47bff8(0x19a),a300_0x47bff8(0x1a0),a300_0x47bff8(0x19e)]);function a300_0x5540(){const _0x432ac5=['12432tERWDd','29012oYhaMo','command','notification\x20config-delete','menu\x20delete','notification\x20config-update','5Yutiow','64999XIHzPj','108GRQxBQ','108eAgZzX','1611264ZIjuMz','2552658gYFaoc','901964KADtoy','has','403870ZMomyd','kb\x20delete'];a300_0x5540=function(){return _0x432ac5;};return a300_0x5540();}export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x49f05a){const _0xd1d0ac=a300_0x47bff8;return EXPLICIT_YES_COMMANDS[_0xd1d0ac(0x198)](_0x49f05a['service']+'\x20'+_0x49f05a[_0xd1d0ac(0x19d)]);}
@@ -1 +1 @@
1
- const a289_0x4c6ba1=a289_0x5c57;function a289_0x5c53(){const _0x5ae16c=['24ynHPdQ','1207073DZabCh','validateFlags','132843pWayQl','4710627KDaZYV','165667MhfuaZ','994694eQQNRj','36OcdGMo','833815ZyaaQC','parseFlags','2432958ftNRzb'];a289_0x5c53=function(){return _0x5ae16c;};return a289_0x5c53();}(function(_0x2a8596,_0x309891){const _0xe63808=a289_0x5c57,_0x1b0b1f=_0x2a8596();while(!![]){try{const _0x5f0552=parseInt(_0xe63808(0x1ce))/0x1+parseInt(_0xe63808(0x1cf))/0x2+parseInt(_0xe63808(0x1d7))/0x3*(parseInt(_0xe63808(0x1d0))/0x4)+-parseInt(_0xe63808(0x1d1))/0x5+parseInt(_0xe63808(0x1d3))/0x6+parseInt(_0xe63808(0x1d5))/0x7*(-parseInt(_0xe63808(0x1d4))/0x8)+-parseInt(_0xe63808(0x1d8))/0x9;if(_0x5f0552===_0x309891)break;else _0x1b0b1f['push'](_0x1b0b1f['shift']());}catch(_0x1a8144){_0x1b0b1f['push'](_0x1b0b1f['shift']());}}}(a289_0x5c53,0x3f5e1));import{createFlagHelpers}from'@lovrabet/cli-framework';function a289_0x5c57(_0x1ed717,_0x326099){_0x1ed717=_0x1ed717-0x1ce;const _0x5c5355=a289_0x5c53();let _0x5c57fd=_0x5c5355[_0x1ed717];return _0x5c57fd;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a289_0x4c6ba1(0x1d2)];export const validateFlags=helpers[a289_0x4c6ba1(0x1d6)];
1
+ const a301_0xa544df=a301_0xf221;(function(_0x180349,_0x5c9a49){const _0x4ae3c4=a301_0xf221,_0x4129fe=_0x180349();while(!![]){try{const _0x35f84a=-parseInt(_0x4ae3c4(0x15a))/0x1*(parseInt(_0x4ae3c4(0x159))/0x2)+-parseInt(_0x4ae3c4(0x15b))/0x3*(-parseInt(_0x4ae3c4(0x153))/0x4)+-parseInt(_0x4ae3c4(0x154))/0x5*(-parseInt(_0x4ae3c4(0x152))/0x6)+parseInt(_0x4ae3c4(0x158))/0x7+-parseInt(_0x4ae3c4(0x156))/0x8+parseInt(_0x4ae3c4(0x157))/0x9*(-parseInt(_0x4ae3c4(0x151))/0xa)+parseInt(_0x4ae3c4(0x15c))/0xb;if(_0x35f84a===_0x5c9a49)break;else _0x4129fe['push'](_0x4129fe['shift']());}catch(_0x3a962a){_0x4129fe['push'](_0x4129fe['shift']());}}}(a301_0x3473,0x8afa3));import{createFlagHelpers}from'@lovrabet/cli-framework';function a301_0xf221(_0x12748a,_0x30ec36){_0x12748a=_0x12748a-0x151;const _0x3473cd=a301_0x3473();let _0xf2212a=_0x3473cd[_0x12748a];return _0xf2212a;}function a301_0x3473(){const _0x408701=['4543784QlogYa','387458FxBTlS','3lcnyCh','79818BEuPuC','705969MaWYTc','parseFlags','190lhAtQP','4080DUIWZP','136xOMcIz','5935OiMzJH','validateFlags','6393592YNrXYu','225198ovlTBc'];a301_0x3473=function(){return _0x408701;};return a301_0x3473();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a301_0xa544df(0x15d)];export const validateFlags=helpers[a301_0xa544df(0x155)];
@@ -1 +1 @@
1
- (function(_0x563662,_0x1c0817){const _0x21a7ba=a290_0x5df5,_0x29d9a9=_0x563662();while(!![]){try{const _0x15af07=-parseInt(_0x21a7ba(0x19d))/0x1*(parseInt(_0x21a7ba(0x1a0))/0x2)+-parseInt(_0x21a7ba(0x19c))/0x3+parseInt(_0x21a7ba(0x1a1))/0x4+-parseInt(_0x21a7ba(0x1a6))/0x5*(parseInt(_0x21a7ba(0x19e))/0x6)+-parseInt(_0x21a7ba(0x1a7))/0x7*(-parseInt(_0x21a7ba(0x1a4))/0x8)+parseInt(_0x21a7ba(0x1a3))/0x9+-parseInt(_0x21a7ba(0x1a8))/0xa;if(_0x15af07===_0x1c0817)break;else _0x29d9a9['push'](_0x29d9a9['shift']());}catch(_0x7ae74d){_0x29d9a9['push'](_0x29d9a9['shift']());}}}(a290_0x3a76,0x38ae0));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a290_0x5df5(_0x1405f8,_0x111e8c){_0x1405f8=_0x1405f8-0x19b;const _0x3a76c0=a290_0x3a76();let _0x5df5d7=_0x3a76c0[_0x1405f8];return _0x5df5d7;}import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x18f4c0=a290_0x5df5;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x319b21=>serviceGroups[_0x18f4c0(0x1a9)](_0x319b21),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+_0x18f4c0(0x1a2),'serviceUsageSuffix':'\x20[args]\x20[flags]'});}export function generateCommandHelp(_0x4031cd){const _0x4f3711=a290_0x5df5,_0x32f3e9=createGenerators()['generateCommandHelp'](_0x4031cd);if(!requiresExplicitYes(_0x4031cd))return _0x32f3e9;return _0x32f3e9[_0x4f3711(0x19f)](_0x4f3711(0x19b),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}function a290_0x3a76(){const _0x5a96db=['1GfhbkA','120486ZIVQKO','replace','713046MDlJyM','1825536GXpaOn','\x20workspace\x20init`\x20or\x20--appcode).','1857168qeQmQv','13072MMLHKP','generateServiceHelp','55JIAPGN','1785WzPaNs','2404640duLlNA','get','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','88104MoQNnB'];a290_0x3a76=function(){return _0x5a96db;};return a290_0x3a76();}export function generateServiceHelp(_0x3d5f23){const _0x11904a=a290_0x5df5;return createGenerators()[_0x11904a(0x1a5)](_0x3d5f23);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}
1
+ (function(_0x357b65,_0x243d02){const _0x1ec732=a302_0xf68a,_0x3c7999=_0x357b65();while(!![]){try{const _0x1b538f=parseInt(_0x1ec732(0x90))/0x1*(parseInt(_0x1ec732(0x7f))/0x2)+-parseInt(_0x1ec732(0x91))/0x3*(-parseInt(_0x1ec732(0x8f))/0x4)+-parseInt(_0x1ec732(0x80))/0x5+-parseInt(_0x1ec732(0x87))/0x6*(-parseInt(_0x1ec732(0x8a))/0x7)+parseInt(_0x1ec732(0x85))/0x8*(-parseInt(_0x1ec732(0x83))/0x9)+parseInt(_0x1ec732(0x8d))/0xa+parseInt(_0x1ec732(0x89))/0xb*(-parseInt(_0x1ec732(0x82))/0xc);if(_0x1b538f===_0x243d02)break;else _0x3c7999['push'](_0x3c7999['shift']());}catch(_0xf5fce0){_0x3c7999['push'](_0x3c7999['shift']());}}}(a302_0x49f2,0x69021));function a302_0x49f2(){const _0x1d9904=['7090CgWNTr','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','4oOduHD','207123kvmqHl','1489257XLOtRn','get','6tCcJQv','2333175gOtTKe','replace','468oLGTGm','2537469xFkBbu','\x20workspace\x20init`\x20or\x20--appcode).','24fvMixf','Requires\x20appcode\x20(set\x20via\x20`','66VoJLJv','generateFullHelp','38841mXsQNQ','484771vEMEmZ','\x20[args]\x20[flags]','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a302_0x49f2=function(){return _0x1d9904;};return a302_0x49f2();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a302_0xf68a(_0x5a482a,_0x422121){_0x5a482a=_0x5a482a-0x7f;const _0x49f264=a302_0x49f2();let _0xf68af4=_0x49f264[_0x5a482a];return _0xf68af4;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function createGenerators(){const _0x1d7ff9=a302_0xf68a;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xed39cd=>serviceGroups[_0x1d7ff9(0x92)](_0xed39cd),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1d7ff9(0x86)+CLI_BIN_NAME+_0x1d7ff9(0x84),'serviceUsageSuffix':_0x1d7ff9(0x8b)});}export function generateCommandHelp(_0x1c7964){const _0x1ac8f0=a302_0xf68a,_0x1f5819=createGenerators()['generateCommandHelp'](_0x1c7964);if(!requiresExplicitYes(_0x1c7964))return _0x1f5819;return _0x1f5819[_0x1ac8f0(0x81)](_0x1ac8f0(0x8c),_0x1ac8f0(0x8e));}export function generateServiceHelp(_0x2ffcde){return createGenerators()['generateServiceHelp'](_0x2ffcde);}export function generateFullHelp(){const _0x2b4058=a302_0xf68a;return createGenerators()[_0x2b4058(0x88)]();}
@@ -1 +1 @@
1
- (function(_0x38df58,_0x38316b){var _0x1f60bd=a291_0x2605,_0x125c66=_0x38df58();while(!![]){try{var _0x419c6c=-parseInt(_0x1f60bd(0x100))/0x1*(parseInt(_0x1f60bd(0xf8))/0x2)+-parseInt(_0x1f60bd(0xfd))/0x3+-parseInt(_0x1f60bd(0xfa))/0x4+parseInt(_0x1f60bd(0x101))/0x5*(parseInt(_0x1f60bd(0xff))/0x6)+-parseInt(_0x1f60bd(0xf9))/0x7+parseInt(_0x1f60bd(0xfc))/0x8+parseInt(_0x1f60bd(0xfe))/0x9*(parseInt(_0x1f60bd(0xfb))/0xa);if(_0x419c6c===_0x38316b)break;else _0x125c66['push'](_0x125c66['shift']());}catch(_0x12970e){_0x125c66['push'](_0x125c66['shift']());}}}(a291_0x22e8,0xd416e));export{runCommand}from'../framework/runner.js';function a291_0x22e8(){var _0x529f51=['7727300IddpNw','3647532MPkqCI','10DOasVf','6898320OZJZJl','2503947QKFdvI','29426013cxhaut','3906ZXoSUa','2hhFDES','605VADckU','491468UUzVbS'];a291_0x22e8=function(){return _0x529f51;};return a291_0x22e8();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a291_0x2605(_0x9f5092,_0x203f61){_0x9f5092=_0x9f5092-0xf8;var _0x22e8ad=a291_0x22e8();var _0x2605f3=_0x22e8ad[_0x9f5092];return _0x2605f3;}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4437fe,_0x19a45d){var _0x2e0090=a303_0x3a99,_0x4c7518=_0x4437fe();while(!![]){try{var _0x52c932=-parseInt(_0x2e0090(0x1f3))/0x1+parseInt(_0x2e0090(0x1f9))/0x2*(-parseInt(_0x2e0090(0x1f4))/0x3)+parseInt(_0x2e0090(0x1f7))/0x4+parseInt(_0x2e0090(0x1f6))/0x5*(-parseInt(_0x2e0090(0x1f2))/0x6)+-parseInt(_0x2e0090(0x1f1))/0x7+parseInt(_0x2e0090(0x1f8))/0x8+parseInt(_0x2e0090(0x1f5))/0x9;if(_0x52c932===_0x19a45d)break;else _0x4c7518['push'](_0x4c7518['shift']());}catch(_0x4807d5){_0x4c7518['push'](_0x4c7518['shift']());}}}(a303_0x4cd7,0x87995));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a303_0x3a99(_0x226d46,_0x2a3d07){_0x226d46=_0x226d46-0x1f1;var _0x4cd7cb=a303_0x4cd7();var _0x3a99d1=_0x4cd7cb[_0x226d46];return _0x3a99d1;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a303_0x4cd7(){var _0x54a4f5=['927192TcEqwV','1375792XjVjpn','1746074JNnfpx','6414926NSJhIm','48252VrTkoo','596992lxnLiC','3EdIGCS','30731994MhoGGD','545rZnEXF'];a303_0x4cd7=function(){return _0x54a4f5;};return a303_0x4cd7();}
@@ -1 +1 @@
1
- (function(_0x3a1e91,_0x4b8671){const _0x5dad50=a292_0x3ee5,_0x198f5f=_0x3a1e91();while(!![]){try{const _0x12cc76=parseInt(_0x5dad50(0xb0))/0x1*(parseInt(_0x5dad50(0xa6))/0x2)+-parseInt(_0x5dad50(0x9f))/0x3*(-parseInt(_0x5dad50(0xa5))/0x4)+parseInt(_0x5dad50(0xac))/0x5*(-parseInt(_0x5dad50(0xa7))/0x6)+-parseInt(_0x5dad50(0xae))/0x7+parseInt(_0x5dad50(0x95))/0x8+parseInt(_0x5dad50(0xa9))/0x9*(parseInt(_0x5dad50(0xa8))/0xa)+-parseInt(_0x5dad50(0xa4))/0xb;if(_0x12cc76===_0x4b8671)break;else _0x198f5f['push'](_0x198f5f['shift']());}catch(_0x5789b0){_0x198f5f['push'](_0x198f5f['shift']());}}}(a292_0x32d5,0x6ebca));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a292_0x3ee5(_0x4ca0d6,_0x5e557b){_0x4ca0d6=_0x4ca0d6-0x94;const _0x32d5c5=a292_0x32d5();let _0x3ee556=_0x32d5c5[_0x4ca0d6];return _0x3ee556;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x41b2ca,_0x3533a5){const _0x4ed5e1=a292_0x3ee5,_0x385e87=_0x41b2ca['_notice'],{_notice:_0x1917b4,..._0x213886}=_0x41b2ca;void _0x1917b4,baseFormatOutput(_0x213886,_0x3533a5),_0x3533a5[_0x4ed5e1(0x9e)]===_0x4ed5e1(0x98)&&printPrettyNotice(_0x385e87);}export function formatCliError(_0x132f96,_0x39fb9f){const _0x14ecc5=a292_0x3ee5;if(_0x39fb9f['format']===_0x14ecc5(0x98))return![];const _0x432f8c=_0x132f96[_0x14ecc5(0xa3)],_0x2c14aa={'ok':![],'command':_0x39fb9f[_0x14ecc5(0x94)],'risk':_0x39fb9f[_0x14ecc5(0x9a)],'data':_0x432f8c??null,'error':{'code':_0x132f96[_0x14ecc5(0x97)],'message':_0x132f96[_0x14ecc5(0x9b)],..._0x132f96[_0x14ecc5(0xaa)]?{'hint':_0x132f96[_0x14ecc5(0xaa)]}:{}}},_0x445df9=_0x39fb9f[_0x14ecc5(0x9e)]==='json'?JSON[_0x14ecc5(0x96)](_0x2c14aa,null,0x2):JSON[_0x14ecc5(0x96)](_0x2c14aa);let _0x99a133=_0x445df9;if(_0x39fb9f[_0x14ecc5(0x9d)]?.[_0x14ecc5(0x99)]())try{_0x99a133=applyJqFilter(_0x445df9,_0x39fb9f[_0x14ecc5(0x9d)]);}catch(_0x3e44c5){const _0x539f27=_0x3e44c5 instanceof CliError?_0x3e44c5:CliErrors['validation'](_0x14ecc5(0xa2)+(_0x3e44c5 instanceof Error?_0x3e44c5[_0x14ecc5(0x9b)]:String(_0x3e44c5))),_0x5d333f={..._0x2c14aa,'error':{'code':_0x539f27['code'],'message':_0x539f27[_0x14ecc5(0x9b)],..._0x539f27[_0x14ecc5(0xaa)]?{'hint':_0x539f27['hint']}:{},'cause':_0x2c14aa['error']}};_0x99a133=_0x39fb9f[_0x14ecc5(0x9e)]===_0x14ecc5(0xab)?JSON[_0x14ecc5(0x96)](_0x5d333f,null,0x2):JSON['stringify'](_0x5d333f);}return process['stdout'][_0x14ecc5(0xad)](_0x99a133[_0x14ecc5(0x9c)]('\x0a')?_0x99a133:_0x99a133+'\x0a'),!![];}function a292_0x32d5(){const _0x536777=['7004696dLjzwj','stringify','code','pretty','trim','risk','message','endsWith','jqFilter','format','3wlpSBh','error','update','jq:\x20','data','8358119HRGQgQ','2247636MaPMEy','110qVKVjb','15894LtMfvc','370iivNSm','73881LeXAxG','hint','json','1420nVzUfn','write','4621652hQrmvT','url','16086WSSwpz','command'];a292_0x32d5=function(){return _0x536777;};return a292_0x32d5();}function printPrettyNotice(_0x27ab53){const _0x1f1a98=a292_0x3ee5;if(!_0x27ab53?.[_0x1f1a98(0xa1)])return;console[_0x1f1a98(0xa0)](_0x27ab53['update']['message']+'\x20('+_0x27ab53[_0x1f1a98(0xa1)][_0x1f1a98(0xaf)]+')');}
1
+ (function(_0x2562fc,_0x3e15b1){const _0x4211a5=a304_0x1389,_0x5181d6=_0x2562fc();while(!![]){try{const _0x16c220=-parseInt(_0x4211a5(0xf7))/0x1+parseInt(_0x4211a5(0xe8))/0x2*(-parseInt(_0x4211a5(0xff))/0x3)+parseInt(_0x4211a5(0xec))/0x4+-parseInt(_0x4211a5(0xf2))/0x5*(-parseInt(_0x4211a5(0xee))/0x6)+-parseInt(_0x4211a5(0xe7))/0x7*(-parseInt(_0x4211a5(0xfc))/0x8)+-parseInt(_0x4211a5(0xed))/0x9*(-parseInt(_0x4211a5(0x100))/0xa)+-parseInt(_0x4211a5(0xef))/0xb*(parseInt(_0x4211a5(0xf0))/0xc);if(_0x16c220===_0x3e15b1)break;else _0x5181d6['push'](_0x5181d6['shift']());}catch(_0x5faebd){_0x5181d6['push'](_0x5181d6['shift']());}}}(a304_0x1ae4,0xa8c4b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a304_0x1ae4(){const _0x1e1b8e=['hint','2815312xXJYvO','1373283gignQK','383166vLHFcP','11lfirmb','15686904vIRYYm','jqFilter','15QMEvkc','update','error','format','stringify','116307Ahyjcz','endsWith','command','jq:\x20','url','9871432mqwtwV','trim','write','3QQeHjq','10MiOIkg','pretty','json','message','7iiMSao','334206HOMhQH','validation','code'];a304_0x1ae4=function(){return _0x1e1b8e;};return a304_0x1ae4();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x51dfc9,_0x379614){const _0x471889=a304_0x1389,_0x384184=_0x51dfc9['_notice'],{_notice:_0x295cf0,..._0x321c5c}=_0x51dfc9;void _0x295cf0,baseFormatOutput(_0x321c5c,_0x379614),_0x379614['format']===_0x471889(0x101)&&printPrettyNotice(_0x384184);}export function formatCliError(_0x28fb20,_0xa57cd0){const _0x402cb7=a304_0x1389;if(_0xa57cd0[_0x402cb7(0xf5)]==='pretty')return![];const _0x18cd92=_0x28fb20['data'],_0x593c86={'ok':![],'command':_0xa57cd0[_0x402cb7(0xf9)],'risk':_0xa57cd0['risk'],'data':_0x18cd92??null,'error':{'code':_0x28fb20[_0x402cb7(0xea)],'message':_0x28fb20[_0x402cb7(0xe6)],..._0x28fb20[_0x402cb7(0xeb)]?{'hint':_0x28fb20[_0x402cb7(0xeb)]}:{}}},_0x1fe561=_0xa57cd0['format']===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x593c86,null,0x2):JSON[_0x402cb7(0xf6)](_0x593c86);let _0x3c8c2f=_0x1fe561;if(_0xa57cd0[_0x402cb7(0xf1)]?.[_0x402cb7(0xfd)]())try{_0x3c8c2f=applyJqFilter(_0x1fe561,_0xa57cd0[_0x402cb7(0xf1)]);}catch(_0x125813){const _0xbf20b2=_0x125813 instanceof CliError?_0x125813:CliErrors[_0x402cb7(0xe9)](_0x402cb7(0xfa)+(_0x125813 instanceof Error?_0x125813[_0x402cb7(0xe6)]:String(_0x125813))),_0x154f12={..._0x593c86,'error':{'code':_0xbf20b2[_0x402cb7(0xea)],'message':_0xbf20b2[_0x402cb7(0xe6)],..._0xbf20b2['hint']?{'hint':_0xbf20b2[_0x402cb7(0xeb)]}:{},'cause':_0x593c86['error']}};_0x3c8c2f=_0xa57cd0[_0x402cb7(0xf5)]===_0x402cb7(0xe5)?JSON[_0x402cb7(0xf6)](_0x154f12,null,0x2):JSON[_0x402cb7(0xf6)](_0x154f12);}return process['stdout'][_0x402cb7(0xfe)](_0x3c8c2f[_0x402cb7(0xf8)]('\x0a')?_0x3c8c2f:_0x3c8c2f+'\x0a'),!![];}function a304_0x1389(_0x2ef5fd,_0x2d0c63){_0x2ef5fd=_0x2ef5fd-0xe5;const _0x1ae493=a304_0x1ae4();let _0x1389aa=_0x1ae493[_0x2ef5fd];return _0x1389aa;}function printPrettyNotice(_0xb809da){const _0x9817f8=a304_0x1389;if(!_0xb809da?.[_0x9817f8(0xf3)])return;console[_0x9817f8(0xf4)](_0xb809da[_0x9817f8(0xf3)][_0x9817f8(0xe6)]+'\x20('+_0xb809da['update'][_0x9817f8(0xfb)]+')');}
@@ -1 +1 @@
1
- (function(_0x21ada6,_0x466818){var _0x2303f0=a293_0x776f,_0x3be0e8=_0x21ada6();while(!![]){try{var _0x3541f3=-parseInt(_0x2303f0(0xb2))/0x1*(parseInt(_0x2303f0(0xae))/0x2)+-parseInt(_0x2303f0(0xb6))/0x3+parseInt(_0x2303f0(0xb0))/0x4*(parseInt(_0x2303f0(0xb4))/0x5)+-parseInt(_0x2303f0(0xac))/0x6+parseInt(_0x2303f0(0xad))/0x7*(-parseInt(_0x2303f0(0xb3))/0x8)+parseInt(_0x2303f0(0xb1))/0x9*(-parseInt(_0x2303f0(0xab))/0xa)+-parseInt(_0x2303f0(0xaf))/0xb*(-parseInt(_0x2303f0(0xb5))/0xc);if(_0x3541f3===_0x466818)break;else _0x3be0e8['push'](_0x3be0e8['shift']());}catch(_0x3c1a21){_0x3be0e8['push'](_0x3be0e8['shift']());}}}(a293_0x4715,0x3d912));function a293_0x776f(_0x1ccc7a,_0x679ea8){_0x1ccc7a=_0x1ccc7a-0xab;var _0x47157a=a293_0x4715();var _0x776fbf=_0x47157a[_0x1ccc7a];return _0x776fbf;}function a293_0x4715(){var _0x375ddb=['13UvDXxr','2784vALJge','25JBLKjd','3275532epAgls','686940EkdQYo','90ommfQM','413406ightrh','7560WAbqIO','26578vcOjan','44UdgJkw','33580kTXmaM','35163zTAzDm'];a293_0x4715=function(){return _0x375ddb;};return a293_0x4715();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x3e2b54,_0x32e996){var _0x28d8f3=a305_0x2c6f,_0x144bec=_0x3e2b54();while(!![]){try{var _0x2fcd91=parseInt(_0x28d8f3(0xca))/0x1*(parseInt(_0x28d8f3(0xcc))/0x2)+parseInt(_0x28d8f3(0xcd))/0x3+-parseInt(_0x28d8f3(0xc8))/0x4*(parseInt(_0x28d8f3(0xcb))/0x5)+parseInt(_0x28d8f3(0xc6))/0x6+parseInt(_0x28d8f3(0xc5))/0x7+parseInt(_0x28d8f3(0xc9))/0x8+-parseInt(_0x28d8f3(0xce))/0x9*(parseInt(_0x28d8f3(0xc7))/0xa);if(_0x2fcd91===_0x32e996)break;else _0x144bec['push'](_0x144bec['shift']());}catch(_0x3debd5){_0x144bec['push'](_0x144bec['shift']());}}}(a305_0x4961,0x74ea5));function a305_0x2c6f(_0x511126,_0x448d84){_0x511126=_0x511126-0xc5;var _0x4961ca=a305_0x4961();var _0x2c6fd7=_0x4961ca[_0x511126];return _0x2c6fd7;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a305_0x4961(){var _0x1cc8d4=['4682766qDYwPc','160GBnGSR','27164ntlUlG','4425280NiTDCt','4203qdgset','310PjXfsF','158aGGNvm','1881555JZrtZi','1213326gelOlO','5348756RXKwOS'];a305_0x4961=function(){return _0x1cc8d4;};return a305_0x4961();}
@@ -11,4 +11,4 @@ import type { ParsedFlags } from "@lovrabet/cli-framework";
11
11
  *
12
12
  * 未声明 alias flag 的命令不受影响。
13
13
  */
14
- export declare function resolveAliasToCode(def: CommandDefinition, flags: ParsedFlags, apiDir: string, commandLabel: string): void;
14
+ export declare function resolveAliasToCode(def: CommandDefinition, flags: ParsedFlags, apiDir: string, commandLabel: string, appCode?: string, selectedAppName?: string): void;
@@ -1 +1 @@
1
- function a294_0x1cd0(){const _0xb6dd79=['code','`\x20requires\x20either\x20--code\x20or\x20--alias.','name','9760086AbWDMb','7914USYEij','10836120IwJfit','type','\x22.\x20','No\x20api.ts\x20found\x20in\x20','\x20api\x20pull`\x20first.','Unknown\x20alias\x20\x22','string','993AFLvJb','some','.\x20Run\x20`','4418796iUgjQg','Available\x20aliases:\x20','join','5836607hRREIh','alias','length','validation','flags','6WnvFRF','7075395qHkAhF','1377038ccXatr','map'];a294_0x1cd0=function(){return _0xb6dd79;};return a294_0x1cd0();}(function(_0x1c7a14,_0x5aae07){const _0xf04d2e=a294_0x93a5,_0x41d43d=_0x1c7a14();while(!![]){try{const _0xfdfd19=-parseInt(_0xf04d2e(0xdc))/0x1+-parseInt(_0xf04d2e(0xe2))/0x2*(-parseInt(_0xf04d2e(0xea))/0x3)+parseInt(_0xf04d2e(0xed))/0x4+-parseInt(_0xf04d2e(0xdb))/0x5+-parseInt(_0xf04d2e(0xda))/0x6*(-parseInt(_0xf04d2e(0xf0))/0x7)+parseInt(_0xf04d2e(0xe3))/0x8+-parseInt(_0xf04d2e(0xe1))/0x9;if(_0xfdfd19===_0x5aae07)break;else _0x41d43d['push'](_0x41d43d['shift']());}catch(_0x4d922f){_0x41d43d['push'](_0x41d43d['shift']());}}}(a294_0x1cd0,0xb14c3));import{CliErrors}from'../errors.js';function a294_0x93a5(_0x2b59e4,_0x26ba9a){_0x2b59e4=_0x2b59e4-0xd8;const _0x1cd03c=a294_0x1cd0();let _0x93a56d=_0x1cd03c[_0x2b59e4];return _0x93a56d;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x140a95,_0x1e3429,_0x485f56,_0x565343){const _0x129d81=a294_0x93a5,_0xf54f3f=_0x140a95[_0x129d81(0xd9)][_0x129d81(0xeb)](_0x3671f1=>_0x3671f1[_0x129d81(0xe0)]===_0x129d81(0xde)&&_0x3671f1[_0x129d81(0xe4)]===_0x129d81(0xe9)),_0x273a7c=_0x140a95[_0x129d81(0xd9)]['some'](_0x487068=>_0x487068[_0x129d81(0xe0)]===_0x129d81(0xf1)&&_0x487068[_0x129d81(0xe4)]===_0x129d81(0xe9));if(!_0xf54f3f||!_0x273a7c)return;const _0x3f4513=_0x1e3429[_0x129d81(0xde)]?String(_0x1e3429[_0x129d81(0xde)]):'',_0x437922=_0x1e3429['alias']?String(_0x1e3429[_0x129d81(0xf1)]):'';if(!_0x3f4513&&!_0x437922)throw CliErrors[_0x129d81(0xd8)]('`'+_0x565343+_0x129d81(0xdf));if(_0x437922&&!_0x3f4513){const _0x457bcc=resolveAlias(_0x485f56,_0x437922);if(!_0x457bcc){const _0x50651b=listAliases(_0x485f56)[_0x129d81(0xdd)](_0x2a4608=>_0x2a4608[_0x129d81(0xf1)]),_0x46562c=_0x50651b[_0x129d81(0xf2)]?_0x129d81(0xee)+_0x50651b[_0x129d81(0xef)](',\x20'):_0x129d81(0xe6)+_0x485f56+_0x129d81(0xec)+CLI_BIN_NAME+_0x129d81(0xe7);throw CliErrors[_0x129d81(0xd8)](_0x129d81(0xe8)+_0x437922+_0x129d81(0xe5)+_0x46562c);}_0x1e3429[_0x129d81(0xde)]=_0x457bcc;}}
1
+ (function(_0x204c82,_0x4f5998){const _0x105add=a306_0xf16e,_0x55b3ae=_0x204c82();while(!![]){try{const _0x5a3006=-parseInt(_0x105add(0x19d))/0x1+parseInt(_0x105add(0x193))/0x2*(-parseInt(_0x105add(0x191))/0x3)+parseInt(_0x105add(0x199))/0x4*(parseInt(_0x105add(0x188))/0x5)+-parseInt(_0x105add(0x18d))/0x6*(parseInt(_0x105add(0x19f))/0x7)+parseInt(_0x105add(0x19b))/0x8*(parseInt(_0x105add(0x194))/0x9)+parseInt(_0x105add(0x18e))/0xa+parseInt(_0x105add(0x198))/0xb;if(_0x5a3006===_0x4f5998)break;else _0x55b3ae['push'](_0x55b3ae['shift']());}catch(_0x142473){_0x55b3ae['push'](_0x55b3ae['shift']());}}}(a306_0xa1c8,0x44b85));import{CliErrors}from'../errors.js';function a306_0xf16e(_0x4dc48c,_0x4d817f){_0x4dc48c=_0x4dc48c-0x187;const _0xa1c89f=a306_0xa1c8();let _0xf16e74=_0xa1c89f[_0x4dc48c];return _0xf16e74;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x2216ec,_0xf47c5,_0x35aac5,_0x455f5c,_0x4e393c,_0x45d582){const _0x4a7204=a306_0xf16e,_0x2d486b=_0x2216ec['flags']['some'](_0x1dc106=>_0x1dc106['name']==='code'&&_0x1dc106['type']===_0x4a7204(0x1a1)),_0x4a3a2d=_0x2216ec[_0x4a7204(0x18b)]['some'](_0x28de63=>_0x28de63[_0x4a7204(0x19c)]===_0x4a7204(0x19a)&&_0x28de63[_0x4a7204(0x19e)]==='string');if(!_0x2d486b||!_0x4a3a2d)return;const _0x1eb1b1=_0xf47c5[_0x4a7204(0x192)]?String(_0xf47c5[_0x4a7204(0x192)]):'',_0x1e503a=_0xf47c5[_0x4a7204(0x19a)]?String(_0xf47c5[_0x4a7204(0x19a)]):'';if(!_0x1eb1b1&&!_0x1e503a)throw CliErrors[_0x4a7204(0x189)]('`'+_0x455f5c+_0x4a7204(0x195));if(_0x1e503a&&!_0x1eb1b1){const _0x293912=resolveApiModelSource(_0x35aac5,_0x4e393c,_0x45d582),_0x17dcf4=resolveAlias(_0x35aac5,_0x1e503a,undefined,_0x293912[_0x4a7204(0x197)],_0x293912[_0x4a7204(0x187)]);if(!_0x17dcf4){const _0x1a08ad=listAliases(_0x35aac5,undefined,_0x293912['filePath'],_0x293912[_0x4a7204(0x187)])[_0x4a7204(0x18c)](_0x3febbf=>_0x3febbf[_0x4a7204(0x19a)]),_0xa25492=_0x1a08ad[_0x4a7204(0x196)]?'Available\x20aliases:\x20'+_0x1a08ad[_0x4a7204(0x1a0)](',\x20'):_0x4a7204(0x1a2)+_0x35aac5+_0x4a7204(0x18f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4a7204(0x189)](_0x4a7204(0x190)+_0x1e503a+_0x4a7204(0x18a)+_0xa25492);}_0xf47c5[_0x4a7204(0x192)]=_0x17dcf4;}}function a306_0xa1c8(){const _0x2e6af9=['.\x20Run\x20`','Unknown\x20alias\x20\x22','111YeFWRR','code','4362vYRoPC','54pFzoff','`\x20requires\x20either\x20--code\x20or\x20--alias.','length','filePath','7428421wCouPG','4aLXhxb','alias','536832ZsCknZ','name','534798JyUrtg','type','7sUmcYs','join','string','No\x20model\x20aliases\x20found\x20in\x20','profileName','972825RJrkFi','validation','\x22.\x20','flags','map','2920914gIMfXa','1112910GmhFQi'];a306_0xa1c8=function(){return _0x2e6af9;};return a306_0xa1c8();}
@@ -1 +1 @@
1
- (function(_0x1e3dcf,_0x15bc76){const _0x578f98=a295_0x2475,_0x21f7d2=_0x1e3dcf();while(!![]){try{const _0x2e3013=-parseInt(_0x578f98(0x178))/0x1+parseInt(_0x578f98(0x166))/0x2*(parseInt(_0x578f98(0x147))/0x3)+-parseInt(_0x578f98(0x14d))/0x4*(parseInt(_0x578f98(0x160))/0x5)+parseInt(_0x578f98(0x156))/0x6*(-parseInt(_0x578f98(0x15b))/0x7)+parseInt(_0x578f98(0x161))/0x8+parseInt(_0x578f98(0x148))/0x9+parseInt(_0x578f98(0x19a))/0xa*(parseInt(_0x578f98(0x149))/0xb);if(_0x2e3013===_0x15bc76)break;else _0x21f7d2['push'](_0x21f7d2['shift']());}catch(_0x12298b){_0x21f7d2['push'](_0x21f7d2['shift']());}}}(a295_0x471f,0x32dd6));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a295_0x27d548}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x54a059){const _0x5a46bf=a295_0x2475;return typeof _0x54a059===_0x5a46bf(0x146)&&_0x54a059[_0x5a46bf(0x18c)]()?_0x54a059[_0x5a46bf(0x18c)]():undefined;}function resolveEnvAppCode(){const _0x285a17=a295_0x2475,_0x1752ba=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1752ba)return{'name':_0x285a17(0x153),'value':_0x1752ba};const _0x5b9889=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b9889)return{'name':_0x285a17(0x199),'value':_0x5b9889};return undefined;}function a295_0x471f(){const _0x57d9ef=['selectedAppName','LOVRABET_APPCODE','10hgWpaq','name','message','hint','requiresAppCode','string','3ymNmIF','1735929ZAUOze','1051743RGOGUp','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','nonInteractive','production','4vJGnCX','format','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','pretty','isNonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','RABETBASE_APPCODE','Edit\x20the\x20config\x20file\x20manually','doctor','10158nscgZu','filter','_notice','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','appcode','1211lNSnMI','value','object','\x20\x20\x20Continue?\x20[y/N]\x20','has','1713890FEFtOS','1972712LNdCaO','\x0a\x20\x20','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','formatOutput','rawFlags','770402PfRxEx','defaultVerbose','join','authRequired','explicitAppName','includes','meowKey','⚠\x20\x20High-risk\x20operation:\x20','apps','../constant/env.js','defaultPageSize','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','some','configMissing','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','command','replace','76275QSzCUE','confirmHighRisk','pageSize','App\x20\x22','../core/api-client.js','find','keys','apiDir','High-risk\x20operation\x20`','cancelled','defaultApp','length','resolveAppCode','Current\x20resolved\x20appcode\x20is\x20\x22','resolveApiDomain','Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`','execute','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','service','update','trim','currentApp','appCode','none','schema','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','validation','Available:\x20','risk','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','all','mergedCli'];a295_0x471f=function(){return _0x57d9ef;};return a295_0x471f();}function a295_0x2475(_0x202e39,_0x4c5a83){_0x202e39=_0x202e39-0x144;const _0x471f17=a295_0x471f();let _0x2475b4=_0x471f17[_0x202e39];return _0x2475b4;}function hasExplicitAppCode(_0xc9e69f,_0x3256c5){const _0x1db3f0=a295_0x2475;return!!(stringFlag(_0xc9e69f[_0x1db3f0(0x15a)])||stringFlag(_0x3256c5[_0x1db3f0(0x15a)]));}function assertEnvAppCodeNotIgnored(_0x214fd8,_0x2d8c1b,_0x3d8d80){const _0xe1ac9d=a295_0x2475;if(!_0x2d8c1b||_0x3d8d80||_0x214fd8===_0x2d8c1b['value'])return;const _0x3aeb69=_0x214fd8?_0xe1ac9d(0x185)+_0x214fd8+'\x22.':_0xe1ac9d(0x195);throw CliErrors[_0xe1ac9d(0x192)](_0x2d8c1b[_0xe1ac9d(0x19b)]+'='+_0x2d8c1b[_0xe1ac9d(0x15c)]+_0xe1ac9d(0x171)+_0x3aeb69+'\x20'+(_0xe1ac9d(0x172)+_0x2d8c1b[_0xe1ac9d(0x19b)]+'\x22.'));}export function createPipelineEnv(_0x2a0700,_0x303ffd,_0x198a90=[]){const _0x5f34d5=a295_0x2475;return{'rawFlags':_0x303ffd,'args':_0x198a90,'resolveAppCode':()=>_0x2a0700['appCode'],'resolveCookie':()=>_0x2a0700['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a295_0x27d548(_0x303ffd),'defaultFormat':_0x2a0700[_0x5f34d5(0x14e)],'defaultPageSize':_0x2a0700[_0x5f34d5(0x17a)],'defaultVerbose':_0x2a0700['verbose'],'apiDir':_0x2a0700[_0x5f34d5(0x17f)],'riskLevel':_0x2a0700['riskLevel'],'selectedAppName':_0x2a0700[_0x5f34d5(0x16a)],'mergedCli':{'defaultApp':_0x2a0700[_0x5f34d5(0x182)],'currentApp':_0x2a0700['currentApp'],'appCode':_0x2a0700[_0x5f34d5(0x18e)],'apps':_0x2a0700[_0x5f34d5(0x16e)]}};}export function createRabetbaseRunnerAdapter(_0x2e37ef={}){const _0x766989=a295_0x2475;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x766989(0x157)](_0x126925=>PIPELINE_FLAG_NAMES[_0x766989(0x15f)](_0x126925[_0x766989(0x19b)]))['map'](({name:_0x551676,type:_0x1c7267,description:_0xe1b8d9})=>({'name':_0x551676,'type':_0x1c7267,'description':_0xe1b8d9})),'formatOutput':_0x2e37ef[_0x766989(0x164)]??formatOutput,'getCommandLabel'(_0x1a4cb7){const _0x1bb95a=_0x766989;return CLI_BIN_NAME+'\x20'+_0x1a4cb7[_0x1bb95a(0x18a)]+'\x20'+_0x1a4cb7[_0x1bb95a(0x176)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xca2ee2,{def:_0x19bde5}){const _0x2c6ed5=_0x766989,_0x92dfc5=_0xca2ee2[_0x2c6ed5(0x16b)](_0x2c6ed5(0x154))?_0x2c6ed5(0x175):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x19bde5[_0x2c6ed5(0x194)]+_0x2c6ed5(0x191)+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x2c6ed5(0x192)](_0xca2ee2+_0x2c6ed5(0x162)+_0x92dfc5);}},async 'prepare'(_0x2f4714,_0x56fcf8,_0x522814,_0x3681c7){const _0x2e8a68=_0x766989,_0x1a2aee=_0x56fcf8[_0x2e8a68(0x17f)]||DEFAULT_API_DIR;resolveAliasToCode(_0x2f4714,_0x522814,_0x1a2aee,_0x3681c7);const _0x3393d4=resolveCommandAuthMode(_0x2f4714);let _0x2091f9='';if(_0x3393d4!==_0x2e8a68(0x18f)){_0x2091f9=_0x56fcf8['resolveCookie']()||'';if(!_0x2091f9){if(_0x3393d4==='required')throw CliErrors[_0x2e8a68(0x169)]();}else{const {setActiveCookie:_0x45a6ca}=await import('../core/api-client.js');_0x45a6ca(_0x2091f9);}}const _0x5a4fa8=_0x56fcf8[_0x2e8a68(0x184)]()??'';if(_0x2f4714[_0x2e8a68(0x145)]!==![]){const _0x19ce0f=hasExplicitAppCode(_0x522814,_0x56fcf8['rawFlags']),_0x381b1c=_0x56fcf8['mergedCli']?.[_0x2e8a68(0x16e)]??{},_0x46b597=_0x56fcf8[_0x2e8a68(0x198)]||_0x56fcf8['mergedCli']?.[_0x2e8a68(0x18d)]||_0x56fcf8[_0x2e8a68(0x197)]?.[_0x2e8a68(0x182)];if(!_0x19ce0f&&_0x46b597&&!_0x381b1c[_0x46b597]){const _0xba47dc=Object[_0x2e8a68(0x17e)](_0x381b1c);throw CliErrors[_0x2e8a68(0x192)](_0x2e8a68(0x17b)+_0x46b597+_0x2e8a68(0x14a),_0xba47dc[_0x2e8a68(0x183)]>0x0?_0x2e8a68(0x193)+_0xba47dc[_0x2e8a68(0x168)](',\x20')+_0x2e8a68(0x189)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x2e8a68(0x14f)+CLI_BIN_NAME+_0x2e8a68(0x163));}assertEnvAppCodeNotIgnored(_0x5a4fa8,resolveEnvAppCode(),_0x19ce0f);if(!_0x5a4fa8){const _0x5be4bf=Object['keys'](_0x381b1c);if(!_0x46b597&&_0x5be4bf['length']>0x1)throw CliErrors[_0x2e8a68(0x174)](_0x2e8a68(0x187)+CLI_BIN_NAME+_0x2e8a68(0x159)+_0x5be4bf['join'](',\x20')+'.');throw CliErrors[_0x2e8a68(0x174)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x56fcf8[_0x2e8a68(0x167)]},'numbers':{'pagesize':_0x56fcf8[_0x2e8a68(0x170)]}},'extras':{'appCode':_0x5a4fa8,'cookie':_0x2091f9,'apiDomain':_0x56fcf8[_0x2e8a68(0x186)](),'apiDir':_0x1a2aee,'selectedAppName':_0x56fcf8[_0x2e8a68(0x198)],'mergedCli':_0x56fcf8[_0x2e8a68(0x197)]}};},'confirmHighRisk':_0x2e37ef[_0x766989(0x179)]??(async({env:_0x482c31,commandLabel:_0x30f044})=>{const _0x235643=_0x766989;if(_0x482c31[_0x235643(0x151)])throw CliErrors['validation'](_0x235643(0x180)+_0x30f044+_0x235643(0x152));await requireConfirmationPrompt({'lines':[_0x235643(0x16d)+_0x30f044,_0x235643(0x15e)],'createCancelledError':_0x4ef0d4=>CliErrors[_0x235643(0x181)](_0x4ef0d4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x2bcd4a=a295_0x2475,{clearActiveCookie:_0x40f8fe}=await import(_0x2bcd4a(0x17c));_0x40f8fe();}export async function finalizeRabetbaseRuntimeState(){const _0xae751a=a295_0x2475;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x320e6c},{initEnv:_0x3e4725}]=await Promise[_0xae751a(0x196)]([import('../constant/domain.js'),import(_0xae751a(0x16f))]);_0x320e6c(),_0x3e4725(_0xae751a(0x14c));}}export async function runCommand(_0x3cf2ee,_0x54e890,_0x1a274c=terminalRunnerAdapter){const _0x10ff94=a295_0x2475;assertRejectedFlags(_0x3cf2ee,_0x54e890[_0x10ff94(0x165)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3cf2ee)?withUpdateNotice(_0x3cf2ee):_0x3cf2ee,_0x54e890,_0x1a274c);}function assertRejectedFlags(_0x8826c,_0x3d6b65){const _0x52ce86=a295_0x2475;for(const _0x196700 of _0x8826c['rejectedFlags']??[]){const _0x56b6c8=GLOBAL_FLAGS[_0x52ce86(0x17d)](_0x2b5940=>_0x2b5940['name']===_0x196700[_0x52ce86(0x19b)]),_0x5b1e27=new Set([_0x196700[_0x52ce86(0x19b)],toCamelCase(_0x196700['name']),_0x56b6c8?.[_0x52ce86(0x16c)]]),_0x4e7a19=[..._0x5b1e27][_0x52ce86(0x173)](_0x914c12=>{if(!_0x914c12)return![];const _0x505c69=_0x3d6b65[_0x914c12];return _0x505c69!==undefined&&_0x505c69!==null&&_0x505c69!==![];});if(_0x4e7a19)throw CliErrors[_0x52ce86(0x192)](_0x196700[_0x52ce86(0x19c)],_0x196700[_0x52ce86(0x144)]);}}function toCamelCase(_0x469397){const _0x495826=a295_0x2475;return _0x469397[_0x495826(0x177)](/-([a-z])/g,(_0x5a2128,_0x2ad1b2)=>_0x2ad1b2['toUpperCase']());}function shouldAttachUpdateNotice(_0x1242c8){const _0x237505=a295_0x2475;if(_0x1242c8['hasFormat']===![])return![];return![_0x237505(0x18b),_0x237505(0x190),_0x237505(0x155)][_0x237505(0x16b)](_0x1242c8[_0x237505(0x18a)]);}function withUpdateNotice(_0x961a67){return{..._0x961a67,async 'execute'(_0x2125d2){const _0x427951=a295_0x2475,_0x21f859=shouldResolveUpdateNotice(_0x2125d2)?resolveLatestUpdateNotice()['catch'](()=>null):Promise['resolve'](null),_0xb4974=await _0x961a67[_0x427951(0x188)](_0x2125d2);return attachUpdateNotice(_0xb4974,await _0x21f859);}};}function shouldResolveUpdateNotice(_0x31c928){const _0x782ba3=a295_0x2475;return _0x31c928[_0x782ba3(0x14e)]===_0x782ba3(0x150)&&!_0x31c928[_0x782ba3(0x14b)];}function attachUpdateNotice(_0x53c319,_0x3ee622){const _0x3c7a6d=a295_0x2475;if(!_0x3ee622||!_0x53c319||typeof _0x53c319!=='object')return _0x53c319;const _0x26e7a=_0x53c319,_0xe60592=typeof _0x26e7a['_notice']===_0x3c7a6d(0x15d)&&_0x26e7a[_0x3c7a6d(0x158)]!==null?_0x26e7a[_0x3c7a6d(0x158)]:{};return{..._0x26e7a,'_notice':{..._0xe60592,'update':_0x3ee622}};}
1
+ (function(_0x2fe19b,_0x5b7f76){const _0x2b5aa1=a307_0x6595,_0x23d5bd=_0x2fe19b();while(!![]){try{const _0x253e30=-parseInt(_0x2b5aa1(0x1f1))/0x1*(-parseInt(_0x2b5aa1(0x20f))/0x2)+parseInt(_0x2b5aa1(0x1db))/0x3*(parseInt(_0x2b5aa1(0x1d1))/0x4)+-parseInt(_0x2b5aa1(0x208))/0x5*(parseInt(_0x2b5aa1(0x1c5))/0x6)+-parseInt(_0x2b5aa1(0x1bc))/0x7+parseInt(_0x2b5aa1(0x1c3))/0x8+-parseInt(_0x2b5aa1(0x210))/0x9+parseInt(_0x2b5aa1(0x1ef))/0xa*(parseInt(_0x2b5aa1(0x1fe))/0xb);if(_0x253e30===_0x5b7f76)break;else _0x23d5bd['push'](_0x23d5bd['shift']());}catch(_0x36adcb){_0x23d5bd['push'](_0x23d5bd['shift']());}}}(a307_0x1952,0x805ba));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a307_0x6595(_0x56b0a2,_0x147a0e){_0x56b0a2=_0x56b0a2-0x1b7;const _0x195232=a307_0x1952();let _0x659560=_0x195232[_0x56b0a2];return _0x659560;}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a307_0x3c3373}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4d5ede){const _0x23a279=a307_0x6595;return typeof _0x4d5ede===_0x23a279(0x1f2)&&_0x4d5ede[_0x23a279(0x1e9)]()?_0x4d5ede['trim']():undefined;}function resolveEnvAppCode(){const _0x44c6f5=a307_0x6595,_0x2c290b=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2c290b)return{'name':_0x44c6f5(0x1bf),'value':_0x2c290b};const _0x39fe69=stringFlag(process.env.LOVRABET_APPCODE);if(_0x39fe69)return{'name':_0x44c6f5(0x1bd),'value':_0x39fe69};return undefined;}function a307_0x1952(){const _0xb1b751=['\x0a\x20\x20','High-risk\x20operation\x20`','risk','entries','Set\x20appcode\x20via\x20`','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','947441WDoURd','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','object','defaultPageSize','selectedAppName','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','pageSize','keys','apps','nonInteractive','1120870KZqxfe','required','replace','toUpperCase','all','name','appcode','489170hPxZjg','3362409tGSoyu','command','../constant/env.js','hasFormat','none','riskLevel','defaultVerbose','length','includes','4869074PvkWLE','LOVRABET_APPCODE','schema','RABETBASE_APPCODE','service','appCode','isNonInteractive','5230808OhufSR','Edit\x20the\x20config\x20file\x20manually','24SDYzde','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','cookie','map','find','explicitAppName','rawFlags','message','confirmHighRisk','apiDir','filter','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','4gaWYyN','doctor','defaultApp','../constant/domain.js','update','value','some','join','resolveAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','128517urjVkF','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','verbose','hint','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','App\x20\x22','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','currentApp','catch','requiresAppCode','has','trim','cancelled','authRequired','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','_notice','180TfMXTZ','execute','1cWZPQA','string','validation','AppCode\x20\x22','production','formatOutput','meowKey'];a307_0x1952=function(){return _0xb1b751;};return a307_0x1952();}function hasExplicitAppCode(_0x182599,_0xf1bfe3){const _0x123c9a=a307_0x6595;return!!(stringFlag(_0x182599['appcode'])||stringFlag(_0xf1bfe3[_0x123c9a(0x20e)]));}function assertEnvAppCodeNotIgnored(_0x555ca6,_0xa23268,_0xd2099f){const _0x51af0f=a307_0x6595;if(!_0xa23268||_0xd2099f||_0x555ca6===_0xa23268[_0x51af0f(0x1d6)])return;const _0x3eb80d=_0x555ca6?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x555ca6+'\x22.':_0x51af0f(0x1da);throw CliErrors[_0x51af0f(0x1f3)](_0xa23268['name']+'='+_0xa23268[_0x51af0f(0x1d6)]+_0x51af0f(0x1fd)+_0x3eb80d+'\x20'+(_0x51af0f(0x1ed)+_0xa23268[_0x51af0f(0x20d)]+'\x22.'));}export function createPipelineEnv(_0x5dbd27,_0x5e4508,_0x1f6c53=[]){const _0x39afd9=a307_0x6595;return{'rawFlags':_0x5e4508,'args':_0x1f6c53,'resolveAppCode':()=>_0x5dbd27[_0x39afd9(0x1c1)],'resolveCookie':()=>_0x5dbd27[_0x39afd9(0x1c7)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x3c3373(_0x5e4508),'defaultFormat':_0x5dbd27['format'],'defaultPageSize':_0x5dbd27[_0x39afd9(0x204)],'defaultVerbose':_0x5dbd27[_0x39afd9(0x1e0)],'apiDir':_0x5dbd27[_0x39afd9(0x1ce)],'riskLevel':_0x5dbd27[_0x39afd9(0x1b8)],'selectedAppName':_0x5dbd27[_0x39afd9(0x1ca)],'mergedCli':{'defaultApp':_0x5dbd27[_0x39afd9(0x1d3)],'currentApp':_0x5dbd27['currentApp'],'appCode':_0x5dbd27[_0x39afd9(0x1c1)],'apps':_0x5dbd27[_0x39afd9(0x206)]}};}export function createRabetbaseRunnerAdapter(_0x10b0b8={}){const _0x4a77ec=a307_0x6595;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4cdb3d=>PIPELINE_FLAG_NAMES[_0x4a77ec(0x1e8)](_0x4cdb3d['name']))[_0x4a77ec(0x1c8)](({name:_0x23cf30,type:_0x32d61b,description:_0x30f3dd})=>({'name':_0x23cf30,'type':_0x32d61b,'description':_0x30f3dd})),'formatOutput':_0x10b0b8[_0x4a77ec(0x1f6)]??formatOutput,'getCommandLabel'(_0x3b1dd2){const _0x6675ff=_0x4a77ec;return CLI_BIN_NAME+'\x20'+_0x3b1dd2[_0x6675ff(0x1c0)]+'\x20'+_0x3b1dd2[_0x6675ff(0x211)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x48f377,{def:_0x3eed86}){const _0x42a23f=_0x4a77ec,_0x527369=_0x48f377[_0x42a23f(0x1bb)](_0x42a23f(0x1c4))?'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.':_0x42a23f(0x1e2)+_0x3eed86[_0x42a23f(0x1fa)]+_0x42a23f(0x1e4)+_0x42a23f(0x1ec);return CliErrors[_0x42a23f(0x1f3)](_0x48f377+_0x42a23f(0x1f8)+_0x527369);}},async 'prepare'(_0x2f20ad,_0x38e560,_0x2eecc1,_0x246a27){const _0x3a25fa=_0x4a77ec,_0x72417a=_0x38e560[_0x3a25fa(0x1ce)]||DEFAULT_API_DIR,_0x632bc2=hasExplicitAppCode(_0x2eecc1,_0x38e560[_0x3a25fa(0x1cb)]),_0x3ac4ae=stringFlag(_0x2eecc1[_0x3a25fa(0x20e)])||stringFlag(_0x38e560[_0x3a25fa(0x1cb)]['appcode']),_0x4e5b2f=_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x206)]??{},_0x2bd915=_0x38e560['selectedAppName']||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1e5)]||_0x38e560[_0x3a25fa(0x1de)]?.[_0x3a25fa(0x1d3)],_0x46be07=_0x3ac4ae?Object[_0x3a25fa(0x1fb)](_0x4e5b2f)[_0x3a25fa(0x1cf)](([,_0x2d4727])=>_0x2d4727[_0x3a25fa(0x20e)]===_0x3ac4ae)['map'](([_0x1cf32f])=>_0x1cf32f):[];if(_0x46be07[_0x3a25fa(0x1ba)]>0x1&&!_0x38e560[_0x3a25fa(0x202)])throw CliErrors[_0x3a25fa(0x1f3)](_0x3a25fa(0x1f4)+_0x3ac4ae+_0x3a25fa(0x1c6)+_0x46be07['join'](',\x20')+'.',_0x3a25fa(0x1dc));resolveAliasToCode(_0x2f20ad,_0x2eecc1,_0x72417a,_0x246a27,_0x38e560['resolveAppCode'](),_0x2bd915);const _0x565a60=resolveCommandAuthMode(_0x2f20ad);let _0x3b4e46='';if(_0x565a60!==_0x3a25fa(0x1b7)){_0x3b4e46=_0x38e560['resolveCookie']()||'';if(!_0x3b4e46){if(_0x565a60===_0x3a25fa(0x209))throw CliErrors[_0x3a25fa(0x1eb)]();}else{const {setActiveCookie:_0x5729ed}=await import('../core/api-client.js');_0x5729ed(_0x3b4e46);}}const _0x557d28=_0x38e560[_0x3a25fa(0x1d9)]()??'';if(_0x2f20ad[_0x3a25fa(0x1e7)]!==![]){if(!_0x632bc2&&_0x2bd915&&!_0x4e5b2f[_0x2bd915]){const _0x47d811=Object['keys'](_0x4e5b2f);throw CliErrors['validation'](_0x3a25fa(0x1e3)+_0x2bd915+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x47d811[_0x3a25fa(0x1ba)]>0x0?'Available:\x20'+_0x47d811['join'](',\x20')+_0x3a25fa(0x1dd)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':_0x3a25fa(0x1d0)+CLI_BIN_NAME+_0x3a25fa(0x203));}assertEnvAppCodeNotIgnored(_0x557d28,resolveEnvAppCode(),_0x632bc2);if(!_0x557d28){const _0x3516e5=Object[_0x3a25fa(0x205)](_0x4e5b2f);if(!_0x2bd915&&_0x3516e5[_0x3a25fa(0x1ba)]>0x1)throw CliErrors['configMissing']('Multiple\x20apps\x20are\x20configured\x20but\x20no\x20default\x20app\x20is\x20selected.\x20Use\x20--app\x20<name>\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20'+_0x3516e5[_0x3a25fa(0x1d8)](',\x20')+'.');throw CliErrors['configMissing'](_0x3a25fa(0x1fc)+CLI_BIN_NAME+_0x3a25fa(0x1ff));}}return{'defaults':{'booleans':{'verbose':_0x38e560[_0x3a25fa(0x1b9)]},'numbers':{'pagesize':_0x38e560[_0x3a25fa(0x201)]}},'extras':{'appCode':_0x557d28,'cookie':_0x3b4e46,'apiDomain':_0x38e560['resolveApiDomain'](),'apiDir':_0x72417a,'selectedAppName':_0x38e560[_0x3a25fa(0x202)],'mergedCli':_0x38e560[_0x3a25fa(0x1de)]}};},'confirmHighRisk':_0x10b0b8[_0x4a77ec(0x1cd)]??(async({env:_0x2505fc,commandLabel:_0x22e2b6})=>{const _0x256aff=_0x4a77ec;if(_0x2505fc[_0x256aff(0x1c2)])throw CliErrors['validation'](_0x256aff(0x1f9)+_0x22e2b6+_0x256aff(0x1df));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x22e2b6,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x554d74=>CliErrors[_0x256aff(0x1ea)](_0x554d74)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x2f0530}=await import('../core/api-client.js');_0x2f0530();}export async function finalizeRabetbaseRuntimeState(){const _0x1bfd77=a307_0x6595;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x292efa},{initEnv:_0x37e33f}]=await Promise[_0x1bfd77(0x20c)]([import(_0x1bfd77(0x1d4)),import(_0x1bfd77(0x212))]);_0x292efa(),_0x37e33f(_0x1bfd77(0x1f5));}}export async function runCommand(_0x88b3c8,_0x4ff4d,_0x213090=terminalRunnerAdapter){const _0x24154f=a307_0x6595;assertRejectedFlags(_0x88b3c8,_0x4ff4d[_0x24154f(0x1cb)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x88b3c8)?withUpdateNotice(_0x88b3c8):_0x88b3c8,_0x4ff4d,_0x213090);}function assertRejectedFlags(_0x51988f,_0xb4b668){const _0x564983=a307_0x6595;for(const _0x475a58 of _0x51988f['rejectedFlags']??[]){const _0x30091f=GLOBAL_FLAGS[_0x564983(0x1c9)](_0x209c5f=>_0x209c5f[_0x564983(0x20d)]===_0x475a58[_0x564983(0x20d)]),_0x4afed0=new Set([_0x475a58[_0x564983(0x20d)],toCamelCase(_0x475a58[_0x564983(0x20d)]),_0x30091f?.[_0x564983(0x1f7)]]),_0x14bfae=[..._0x4afed0][_0x564983(0x1d7)](_0x5ce584=>{if(!_0x5ce584)return![];const _0x5a0a8d=_0xb4b668[_0x5ce584];return _0x5a0a8d!==undefined&&_0x5a0a8d!==null&&_0x5a0a8d!==![];});if(_0x14bfae)throw CliErrors[_0x564983(0x1f3)](_0x475a58[_0x564983(0x1cc)],_0x475a58[_0x564983(0x1e1)]);}}function toCamelCase(_0x475207){const _0x41855a=a307_0x6595;return _0x475207[_0x41855a(0x20a)](/-([a-z])/g,(_0x3749f5,_0x1fcec3)=>_0x1fcec3[_0x41855a(0x20b)]());}function shouldAttachUpdateNotice(_0x3bf941){const _0xb0eb70=a307_0x6595;if(_0x3bf941[_0xb0eb70(0x213)]===![])return![];return![_0xb0eb70(0x1d5),_0xb0eb70(0x1be),_0xb0eb70(0x1d2)][_0xb0eb70(0x1bb)](_0x3bf941[_0xb0eb70(0x1c0)]);}function withUpdateNotice(_0x16d4ba){return{..._0x16d4ba,async 'execute'(_0x274442){const _0x54bb54=a307_0x6595,_0x5b3762=shouldResolveUpdateNotice(_0x274442)?resolveLatestUpdateNotice()[_0x54bb54(0x1e6)](()=>null):Promise['resolve'](null),_0x1a2e55=await _0x16d4ba[_0x54bb54(0x1f0)](_0x274442);return attachUpdateNotice(_0x1a2e55,await _0x5b3762);}};}function shouldResolveUpdateNotice(_0x18daa0){const _0x23da2a=a307_0x6595;return _0x18daa0['format']==='pretty'&&!_0x18daa0[_0x23da2a(0x207)];}function attachUpdateNotice(_0x627e24,_0x40ed13){const _0x3a4a66=a307_0x6595;if(!_0x40ed13||!_0x627e24||typeof _0x627e24!==_0x3a4a66(0x200))return _0x627e24;const _0x7ba7cd=_0x627e24,_0x317d4e=typeof _0x7ba7cd[_0x3a4a66(0x1ee)]===_0x3a4a66(0x200)&&_0x7ba7cd['_notice']!==null?_0x7ba7cd[_0x3a4a66(0x1ee)]:{};return{..._0x7ba7cd,'_notice':{..._0x317d4e,'update':_0x40ed13}};}
@@ -1 +1 @@
1
- function a296_0x56f6(_0x352c6d,_0x5234ea){_0x352c6d=_0x352c6d-0x119;const _0x41be62=a296_0x41be();let _0x56f68b=_0x41be62[_0x352c6d];return _0x56f68b;}function a296_0x41be(){const _0x5adef9=['1618715GSyxBv','88HPmcrM','487641uSEAPX','14301954YEPobP','6255144hnCdKK','166376ypSqRG','474bjLZSy','2139tqnNEX','625868BQodKH'];a296_0x41be=function(){return _0x5adef9;};return a296_0x41be();}(function(_0x7e9a49,_0x433373){const _0x4a3387=a296_0x56f6,_0xfcc15e=_0x7e9a49();while(!![]){try{const _0x5904c5=parseInt(_0x4a3387(0x11a))/0x1*(parseInt(_0x4a3387(0x119))/0x2)+-parseInt(_0x4a3387(0x11e))/0x3+parseInt(_0x4a3387(0x11b))/0x4+parseInt(_0x4a3387(0x11c))/0x5+parseInt(_0x4a3387(0x120))/0x6+parseInt(_0x4a3387(0x121))/0x7*(parseInt(_0x4a3387(0x11d))/0x8)+-parseInt(_0x4a3387(0x11f))/0x9;if(_0x5904c5===_0x433373)break;else _0xfcc15e['push'](_0xfcc15e['shift']());}catch(_0x52736d){_0xfcc15e['push'](_0xfcc15e['shift']());}}}(a296_0x41be,0x83b50));import{buildSchemaPayload as a296_0x501e9c}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x49db85,findDefinition:_0x371999}=await import('../commands/registry.js');return a296_0x501e9c({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x49db85,'buildAllFlags':buildAllFlags,'findDefinition':_0x371999});}
1
+ (function(_0x1f1f52,_0x5c1e42){const _0x3e8688=a308_0x15d2,_0x38b763=_0x1f1f52();while(!![]){try{const _0x599587=-parseInt(_0x3e8688(0x192))/0x1*(-parseInt(_0x3e8688(0x191))/0x2)+parseInt(_0x3e8688(0x195))/0x3+-parseInt(_0x3e8688(0x193))/0x4+-parseInt(_0x3e8688(0x190))/0x5+-parseInt(_0x3e8688(0x197))/0x6+parseInt(_0x3e8688(0x198))/0x7+parseInt(_0x3e8688(0x194))/0x8;if(_0x599587===_0x5c1e42)break;else _0x38b763['push'](_0x38b763['shift']());}catch(_0x335162){_0x38b763['push'](_0x38b763['shift']());}}}(a308_0x4e8f,0xc1769));import{buildSchemaPayload as a308_0xcccc18}from'@lovrabet/cli-framework';function a308_0x4e8f(){const _0x27896f=['1094880ffDwxQ','591920RWVSHr','3321040hkVecB','1685234iRQrBH','1rDCazM','4531940nkzKBi','12795656EBlLnt','736392YSllAV','../commands/registry.js'];a308_0x4e8f=function(){return _0x27896f;};return a308_0x4e8f();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a308_0x15d2(_0x2b9edb,_0x25033d){_0x2b9edb=_0x2b9edb-0x190;const _0x4e8f82=a308_0x4e8f();let _0x15d250=_0x4e8f82[_0x2b9edb];return _0x15d250;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4c80a7=a308_0x15d2,{serviceRegistry:_0x1cb725,findDefinition:_0x189a95}=await import(_0x4c80a7(0x196));return a308_0xcccc18({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x1cb725,'buildAllFlags':buildAllFlags,'findDefinition':_0x189a95});}
@@ -1 +1 @@
1
- (function(_0x497a1f,_0xfc7618){const _0xb65e27=a297_0x4e3e,_0x182f0a=_0x497a1f();while(!![]){try{const _0x28d564=parseInt(_0xb65e27(0xe6))/0x1*(-parseInt(_0xb65e27(0xde))/0x2)+parseInt(_0xb65e27(0xf9))/0x3*(-parseInt(_0xb65e27(0xe7))/0x4)+parseInt(_0xb65e27(0xe3))/0x5*(parseInt(_0xb65e27(0xf2))/0x6)+-parseInt(_0xb65e27(0xed))/0x7*(-parseInt(_0xb65e27(0xec))/0x8)+parseInt(_0xb65e27(0xe0))/0x9+parseInt(_0xb65e27(0xea))/0xa+parseInt(_0xb65e27(0xdf))/0xb;if(_0x28d564===_0xfc7618)break;else _0x182f0a['push'](_0x182f0a['shift']());}catch(_0x2079d5){_0x182f0a['push'](_0x182f0a['shift']());}}}(a297_0x4939,0x3a084));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a297_0x4e3e(_0x141843,_0x290d09){_0x141843=_0x141843-0xdc;const _0x4939c1=a297_0x4939();let _0x4e3e68=_0x4939c1[_0x141843];return _0x4e3e68;}function a297_0x4939(){const _0xd7bf45=['2914457MAeufi','meowKey','toLowerCase','name','Unsupported\x20flag\x20--','194118cZfdeC','version','help','has','$1-$2','filter','add','1085541reWZih','alias','find','command','service','43108DOYNre','1092949wtKOyd','2774709CGaQEg','validation','length','20StHiGs','isArray','toUpperCase','21TtCOwF','4CZnSKi','replace','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','987580npLKBy','entries','8xUwEnl'];a297_0x4939=function(){return _0xd7bf45;};return a297_0x4939();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x288465,_0x45fe56){const _0x303434=a297_0x4e3e;if(!_0x288465['strictFlags'])return;const _0x439582=new Set([_0x303434(0xf4),_0x303434(0xf3)]),_0x48b879=GLOBAL_FLAGS[_0x303434(0xf7)](_0x13546b=>PIPELINE_FLAG_NAMES[_0x303434(0xf5)](_0x13546b[_0x303434(0xf0)]));for(const _0xa03654 of[..._0x288465['flags'],..._0x48b879]){addFlagCandidates(_0x439582,_0xa03654);}for(const [_0x3ab0e1,_0x22c1c3]of Object[_0x303434(0xeb)](_0x45fe56)){if(!isExplicitValue(_0x22c1c3)||_0x439582[_0x303434(0xf5)](_0x3ab0e1))continue;const _0x15ca4b=GLOBAL_FLAGS[_0x303434(0xfb)](_0xa6d034=>_0xa6d034[_0x303434(0xee)]===_0x3ab0e1)?.['name']??toKebabCase(_0x3ab0e1);throw CliErrors[_0x303434(0xe1)](_0x303434(0xf1)+_0x15ca4b+'\x20for\x20`'+CLI_BIN_NAME+'\x20'+_0x288465[_0x303434(0xdd)]+'\x20'+_0x288465[_0x303434(0xdc)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x288465[_0x303434(0xdd)]+'\x20'+_0x288465[_0x303434(0xdc)]+_0x303434(0xe9));}}function addFlagCandidates(_0x52f9a0,_0x28623f){const _0x3eb2f4=a297_0x4e3e,_0x24bf42=_0x3eb2f4(0xee)in _0x28623f?[_0x28623f[_0x3eb2f4(0xf0)],_0x28623f['meowKey']]:[_0x28623f[_0x3eb2f4(0xf0)],_0x28623f[_0x3eb2f4(0xfa)]];for(const _0x362ed7 of _0x24bf42){if(!_0x362ed7)continue;_0x52f9a0[_0x3eb2f4(0xf8)](_0x362ed7),_0x52f9a0['add'](toCamelCase(_0x362ed7));}}function isExplicitValue(_0x15a103){const _0x408172=a297_0x4e3e;return _0x15a103!==undefined&&_0x15a103!==null&&_0x15a103!==![]&&(!Array[_0x408172(0xe4)](_0x15a103)||_0x15a103[_0x408172(0xe2)]>0x0);}function toCamelCase(_0x5952d6){const _0x569885=a297_0x4e3e;return _0x5952d6[_0x569885(0xe8)](/-([a-z])/g,(_0x16c31f,_0x56432f)=>_0x56432f[_0x569885(0xe5)]());}function toKebabCase(_0x5312ab){const _0x3b3ac8=a297_0x4e3e;return _0x5312ab[_0x3b3ac8(0xe8)](/([a-z0-9])([A-Z])/g,_0x3b3ac8(0xf6))[_0x3b3ac8(0xef)]();}
1
+ (function(_0x58a0aa,_0x28304f){const _0x2c8218=a309_0x41e8,_0x23b986=_0x58a0aa();while(!![]){try{const _0x37beed=-parseInt(_0x2c8218(0x77))/0x1+parseInt(_0x2c8218(0x7f))/0x2*(parseInt(_0x2c8218(0x73))/0x3)+-parseInt(_0x2c8218(0x76))/0x4+parseInt(_0x2c8218(0x7a))/0x5*(-parseInt(_0x2c8218(0x91))/0x6)+-parseInt(_0x2c8218(0x8c))/0x7*(parseInt(_0x2c8218(0x90))/0x8)+-parseInt(_0x2c8218(0x80))/0x9+parseInt(_0x2c8218(0x79))/0xa;if(_0x37beed===_0x28304f)break;else _0x23b986['push'](_0x23b986['shift']());}catch(_0x2daff1){_0x23b986['push'](_0x23b986['shift']());}}}(a309_0x47e4,0x4fac2));function a309_0x41e8(_0x437feb,_0x43b1f7){_0x437feb=_0x437feb-0x71;const _0x47e403=a309_0x47e4();let _0x41e8f5=_0x47e403[_0x437feb];return _0x41e8f5;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0xa7f6fd,_0x1f480d){const _0x4959ff=a309_0x41e8;if(!_0xa7f6fd[_0x4959ff(0x82)])return;const _0x2d2993=new Set([_0x4959ff(0x7e),_0x4959ff(0x7c)]),_0x2e99f5=GLOBAL_FLAGS['filter'](_0x1bbd21=>PIPELINE_FLAG_NAMES[_0x4959ff(0x84)](_0x1bbd21[_0x4959ff(0x8d)]));for(const _0x92f8b8 of[..._0xa7f6fd[_0x4959ff(0x8f)],..._0x2e99f5]){addFlagCandidates(_0x2d2993,_0x92f8b8);}for(const [_0x47ceb9,_0x27eec2]of Object[_0x4959ff(0x71)](_0x1f480d)){if(!isExplicitValue(_0x27eec2)||_0x2d2993[_0x4959ff(0x84)](_0x47ceb9))continue;const _0x1b53bc=GLOBAL_FLAGS[_0x4959ff(0x86)](_0x224287=>_0x224287[_0x4959ff(0x72)]===_0x47ceb9)?.[_0x4959ff(0x8d)]??toKebabCase(_0x47ceb9);throw CliErrors[_0x4959ff(0x8b)](_0x4959ff(0x74)+_0x1b53bc+_0x4959ff(0x81)+CLI_BIN_NAME+'\x20'+_0xa7f6fd[_0x4959ff(0x89)]+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+'`.',_0x4959ff(0x7b)+CLI_BIN_NAME+'\x20'+_0xa7f6fd['service']+'\x20'+_0xa7f6fd[_0x4959ff(0x8a)]+_0x4959ff(0x85));}}function a309_0x47e4(){const _0x4b3c26=['519832GFWttj','193193RVnkKi','alias','12115480xlnIAn','30ZUfxzA','Run\x20`','version','isArray','help','368786DeyrSQ','1706814rYegqZ','\x20for\x20`','strictFlags','toUpperCase','has','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','find','replace','$1-$2','service','command','validation','318556uZXUEF','name','add','flags','72qhekxZ','147234iaCaWO','entries','meowKey','3tUVUVl','Unsupported\x20flag\x20--','length'];a309_0x47e4=function(){return _0x4b3c26;};return a309_0x47e4();}function addFlagCandidates(_0x4546d8,_0x462b0e){const _0x233224=a309_0x41e8,_0x4ba227=_0x233224(0x72)in _0x462b0e?[_0x462b0e[_0x233224(0x8d)],_0x462b0e[_0x233224(0x72)]]:[_0x462b0e['name'],_0x462b0e[_0x233224(0x78)]];for(const _0x133912 of _0x4ba227){if(!_0x133912)continue;_0x4546d8[_0x233224(0x8e)](_0x133912),_0x4546d8['add'](toCamelCase(_0x133912));}}function isExplicitValue(_0x2e0f61){const _0x4392a8=a309_0x41e8;return _0x2e0f61!==undefined&&_0x2e0f61!==null&&_0x2e0f61!==![]&&(!Array[_0x4392a8(0x7d)](_0x2e0f61)||_0x2e0f61[_0x4392a8(0x75)]>0x0);}function toCamelCase(_0x442b4b){const _0xea88de=a309_0x41e8;return _0x442b4b[_0xea88de(0x87)](/-([a-z])/g,(_0x4cd3bb,_0x276d32)=>_0x276d32[_0xea88de(0x83)]());}function toKebabCase(_0x3e66cc){const _0x2b77d1=a309_0x41e8;return _0x3e66cc['replace'](/([a-z0-9])([A-Z])/g,_0x2b77d1(0x88))['toLowerCase']();}
@@ -1 +1 @@
1
- function a298_0x3890(_0x300f53,_0x2d9591){_0x300f53=_0x300f53-0x14b;var _0x3ebd60=a298_0x3ebd();var _0x3890d8=_0x3ebd60[_0x300f53];return _0x3890d8;}(function(_0x4988c9,_0x11c714){var _0x39f475=a298_0x3890,_0x429b68=_0x4988c9();while(!![]){try{var _0x45374b=parseInt(_0x39f475(0x14c))/0x1+parseInt(_0x39f475(0x14b))/0x2*(-parseInt(_0x39f475(0x152))/0x3)+-parseInt(_0x39f475(0x150))/0x4+parseInt(_0x39f475(0x154))/0x5*(parseInt(_0x39f475(0x14f))/0x6)+-parseInt(_0x39f475(0x14d))/0x7*(-parseInt(_0x39f475(0x153))/0x8)+-parseInt(_0x39f475(0x14e))/0x9+-parseInt(_0x39f475(0x151))/0xa;if(_0x45374b===_0x11c714)break;else _0x429b68['push'](_0x429b68['shift']());}catch(_0x5a3223){_0x429b68['push'](_0x429b68['shift']());}}}(a298_0x3ebd,0xea38a));function a298_0x3ebd(){var _0x3b6204=['3756180KlWoAQ','513716sciuLX','7696030WCkIkt','1298079mVxvee','608bTcQdk','15axtNfJ','6pIyUqw','1384407HvGKfQ','92162JEIJFF','9968688gRkPKF'];a298_0x3ebd=function(){return _0x3b6204;};return a298_0x3ebd();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x1a00f2,_0x1dba30){var _0x404362=a310_0x51c0,_0x17cb6b=_0x1a00f2();while(!![]){try{var _0x528366=parseInt(_0x404362(0x18e))/0x1*(-parseInt(_0x404362(0x18b))/0x2)+parseInt(_0x404362(0x189))/0x3+parseInt(_0x404362(0x18d))/0x4*(-parseInt(_0x404362(0x18a))/0x5)+parseInt(_0x404362(0x18c))/0x6+parseInt(_0x404362(0x191))/0x7+-parseInt(_0x404362(0x192))/0x8+parseInt(_0x404362(0x18f))/0x9*(parseInt(_0x404362(0x190))/0xa);if(_0x528366===_0x1dba30)break;else _0x17cb6b['push'](_0x17cb6b['shift']());}catch(_0x28b014){_0x17cb6b['push'](_0x17cb6b['shift']());}}}(a310_0xc3ae,0x5a0f2));function a310_0xc3ae(){var _0x5dccd2=['1796432DJuLWC','1422942SGIbsr','5GHtawU','6HpOnAu','3435780GeQBxI','1587676BKuTIW','226531kCAbqe','9CpIRmF','211520bQKdjr','4212964fnVXiZ'];a310_0xc3ae=function(){return _0x5dccd2;};return a310_0xc3ae();}function a310_0x51c0(_0x444b5f,_0x39eb3c){_0x444b5f=_0x444b5f-0x189;var _0xc3aeef=a310_0xc3ae();var _0x51c039=_0xc3aeef[_0x444b5f];return _0x51c039;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.3-beta.2";
2
- export declare const GIT_TAG = "v2.5.3-beta.2";
3
- export declare const GIT_COMMIT = "0c830ca3";
4
- export declare const BUILD_TIME = "2026-09-10T12:10:35.825Z";
1
+ export declare const VERSION = "2.5.3-beta.4";
2
+ export declare const GIT_TAG = "v2.5.3-beta.4";
3
+ export declare const GIT_COMMIT = "e78aef00";
4
+ export declare const BUILD_TIME = "2026-09-12T15:33:19.354Z";
@@ -1 +1 @@
1
- const a299_0x251ce3=a299_0x39fd;(function(_0x8f666d,_0x3aeee3){const _0xd7169d=a299_0x39fd,_0x114864=_0x8f666d();while(!![]){try{const _0x345056=-parseInt(_0xd7169d(0x1ee))/0x1+-parseInt(_0xd7169d(0x1f0))/0x2+parseInt(_0xd7169d(0x1ef))/0x3*(parseInt(_0xd7169d(0x1eb))/0x4)+-parseInt(_0xd7169d(0x1f4))/0x5+-parseInt(_0xd7169d(0x1f5))/0x6*(-parseInt(_0xd7169d(0x1ec))/0x7)+-parseInt(_0xd7169d(0x1f2))/0x8+parseInt(_0xd7169d(0x1ed))/0x9;if(_0x345056===_0x3aeee3)break;else _0x114864['push'](_0x114864['shift']());}catch(_0x1576fc){_0x114864['push'](_0x114864['shift']());}}}(a299_0x3fe3,0x84621));export const VERSION='2.5.3-beta.2';export const GIT_TAG='v2.5.3-beta.2';export const GIT_COMMIT=a299_0x251ce3(0x1f1);function a299_0x39fd(_0x105ef8,_0x4b42af){_0x105ef8=_0x105ef8-0x1eb;const _0x3fe327=a299_0x3fe3();let _0x39fd73=_0x3fe327[_0x105ef8];return _0x39fd73;}function a299_0x3fe3(){const _0x1c133f=['139208EnIiGf','3720101PVQIFa','10045647ZSkrjG','597522IMfMuo','57dqmfZk','874510OfZalD','0c830ca3','2686624deWaPA','2026-09-10T12:10:35.825Z','1980090mmcdSf','6KijMao'];a299_0x3fe3=function(){return _0x1c133f;};return a299_0x3fe3();}export const BUILD_TIME=a299_0x251ce3(0x1f3);
1
+ const a311_0xd0aaa9=a311_0x56bb;(function(_0x4b34d4,_0x221815){const _0x2c4c44=a311_0x56bb,_0xed8b8d=_0x4b34d4();while(!![]){try{const _0x14d577=parseInt(_0x2c4c44(0x161))/0x1*(-parseInt(_0x2c4c44(0x16a))/0x2)+-parseInt(_0x2c4c44(0x162))/0x3+-parseInt(_0x2c4c44(0x164))/0x4*(parseInt(_0x2c4c44(0x165))/0x5)+-parseInt(_0x2c4c44(0x160))/0x6*(-parseInt(_0x2c4c44(0x16b))/0x7)+-parseInt(_0x2c4c44(0x168))/0x8+-parseInt(_0x2c4c44(0x167))/0x9*(parseInt(_0x2c4c44(0x169))/0xa)+parseInt(_0x2c4c44(0x16c))/0xb*(parseInt(_0x2c4c44(0x16d))/0xc);if(_0x14d577===_0x221815)break;else _0xed8b8d['push'](_0xed8b8d['shift']());}catch(_0x407247){_0xed8b8d['push'](_0xed8b8d['shift']());}}}(a311_0x599e,0x600b5));export const VERSION='2.5.3-beta.4';function a311_0x56bb(_0x105551,_0x5b0893){_0x105551=_0x105551-0x160;const _0x599ee4=a311_0x599e();let _0x56bb66=_0x599ee4[_0x105551];return _0x56bb66;}export const GIT_TAG=a311_0xd0aaa9(0x166);export const GIT_COMMIT='e78aef00';export const BUILD_TIME=a311_0xd0aaa9(0x163);function a311_0x599e(){const _0x40d826=['v2.5.3-beta.4','4555548SvgQvM','802688nxPJNB','10SpNDMx','10NFKifn','559762xYupth','24403555nAGkaB','12EgXLfu','6kNUrXL','66931wHqepd','1624485OBBKAr','2026-09-12T15:33:19.354Z','211208RYUQSv','40SQMpMl'];a311_0x599e=function(){return _0x40d826;};return a311_0x599e();}
@@ -1 +1 @@
1
- const a300_0x503daa=a300_0x33c7;(function(_0x441a7e,_0x599b22){const _0x54daaf=a300_0x33c7,_0x24939d=_0x441a7e();while(!![]){try{const _0x18d946=parseInt(_0x54daaf(0xd3))/0x1*(parseInt(_0x54daaf(0xd4))/0x2)+-parseInt(_0x54daaf(0xd5))/0x3+parseInt(_0x54daaf(0xf4))/0x4*(parseInt(_0x54daaf(0xe9))/0x5)+parseInt(_0x54daaf(0xee))/0x6*(parseInt(_0x54daaf(0xd1))/0x7)+-parseInt(_0x54daaf(0xf1))/0x8+parseInt(_0x54daaf(0xf0))/0x9+parseInt(_0x54daaf(0xef))/0xa*(-parseInt(_0x54daaf(0xde))/0xb);if(_0x18d946===_0x599b22)break;else _0x24939d['push'](_0x24939d['shift']());}catch(_0x3ba37a){_0x24939d['push'](_0x24939d['shift']());}}}(a300_0x1506,0xe3306));function a300_0x33c7(_0x488618,_0x517f0c){_0x488618=_0x488618-0xd0;const _0x1506c8=a300_0x1506();let _0x33c7f4=_0x1506c8[_0x488618];return _0x33c7f4;}export const ROUTING_CATALOG_DIGEST=a300_0x503daa(0xe5);function a300_0x1506(){const _0x444afb=['5496475IvYbdq','Mainland\x20China','https://skills-daily.lovrabet.com','https://daily-runtime.lovrabet.com','https://g.alicdn.com/code/lib','3168312ubhvYV','2098610atJJrX','12545073izoyDX','12559664jXploY','https://api.lovrabet.id','https://dev.lovrabet.com','4WikUut','https://api.lovrabet.ai','21NrSnkR','https://skills.lovrabet.com','521377Jvhdqz','2AONUls','4405854nxLKZp','https://daily-api.lovrabet.com','https://user.lovrabet.id','https://runtime.lovrabet.id','https://api.lovrabet.com','https://dev.lovrabet.ai','https://g.lovrabet.id','Indonesia','https://cdnjs.cloudflare.com/ajax/libs','33fGICFb','https://runtime.lovrabet.ai','https://app.lovrabet.ai','https://dev.lovrabet.id','https://user.lovrabet.com','Global','china','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://skills.lovrabet.ai','https://app.lovrabet.com','indonesia'];a300_0x1506=function(){return _0x444afb;};return a300_0x1506();}export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a300_0x503daa(0xea),'aliases':[a300_0x503daa(0xe4)],'serviceDomains':{'production':{'user':a300_0x503daa(0xe2),'api':'https://api.lovrabet.com','runtime':'https://runtime.lovrabet.com','skill':a300_0x503daa(0xd2),'kb':a300_0x503daa(0xd9),'app':a300_0x503daa(0xe7)},'daily':{'user':'https://user-daily.lovrabet.com','api':a300_0x503daa(0xd6),'runtime':a300_0x503daa(0xec),'skill':a300_0x503daa(0xeb),'kb':'https://daily-api.lovrabet.com','app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a300_0x503daa(0xed),'lovrabet':'https://g.lovrabet.com'},'local':{'origin':a300_0x503daa(0xf3)}},'id':{'enabled':!![],'label':a300_0x503daa(0xdc),'aliases':[a300_0x503daa(0xe8)],'serviceDomains':{'production':{'user':a300_0x503daa(0xd7),'api':a300_0x503daa(0xf2),'runtime':a300_0x503daa(0xd8),'skill':'https://skills.lovrabet.id','kb':a300_0x503daa(0xf2),'app':'https://app.lovrabet.id'}},'cdn':{'libraries':a300_0x503daa(0xdd),'lovrabet':a300_0x503daa(0xdb)},'local':{'origin':a300_0x503daa(0xe1)}},'global':{'enabled':![],'label':a300_0x503daa(0xe3),'aliases':[],'serviceDomains':{'production':{'user':'https://user.lovrabet.ai','api':a300_0x503daa(0xd0),'runtime':a300_0x503daa(0xdf),'skill':a300_0x503daa(0xe6),'kb':a300_0x503daa(0xd0),'app':a300_0x503daa(0xe0)}},'cdn':{'libraries':a300_0x503daa(0xdd)},'local':{'origin':a300_0x503daa(0xda)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
1
+ const a312_0x9456df=a312_0x308c;(function(_0x8ce8e7,_0x3db769){const _0x53fbe2=a312_0x308c,_0x4b4163=_0x8ce8e7();while(!![]){try{const _0x526d25=-parseInt(_0x53fbe2(0x1d8))/0x1*(parseInt(_0x53fbe2(0x1d6))/0x2)+-parseInt(_0x53fbe2(0x1d4))/0x3*(parseInt(_0x53fbe2(0x1c3))/0x4)+parseInt(_0x53fbe2(0x1b2))/0x5*(-parseInt(_0x53fbe2(0x1c1))/0x6)+parseInt(_0x53fbe2(0x1d7))/0x7*(parseInt(_0x53fbe2(0x1c4))/0x8)+parseInt(_0x53fbe2(0x1bd))/0x9*(parseInt(_0x53fbe2(0x1da))/0xa)+-parseInt(_0x53fbe2(0x1ce))/0xb*(parseInt(_0x53fbe2(0x1c5))/0xc)+parseInt(_0x53fbe2(0x1cc))/0xd;if(_0x526d25===_0x3db769)break;else _0x4b4163['push'](_0x4b4163['shift']());}catch(_0x2ee497){_0x4b4163['push'](_0x4b4163['shift']());}}}(a312_0x3aff,0x2d082));function a312_0x3aff(){const _0x1d5f7a=['https://app.lovrabet.id','20QsJsUG','https://skills.lovrabet.ai','5dhykeN','https://g.lovrabet.id','https://dev.lovrabet.ai','Global','https://g.lovrabet.com','https://user.lovrabet.com','indonesia','https://api.lovrabet.com','https://skills-daily.lovrabet.com','https://daily-api.lovrabet.com','Mainland\x20China','145647HWGAUW','https://app.lovrabet.com','https://runtime.lovrabet.id','https://user.lovrabet.id','769962DsptUl','https://runtime.lovrabet.ai','333964ZhbBeO','8QkHcwQ','3875616poIwDS','https://skills.lovrabet.com','Indonesia','china','https://user-daily.lovrabet.com','https://g.alicdn.com/code/lib','https://api.lovrabet.id','10777715OCFVkw','https://cdnjs.cloudflare.com/ajax/libs','11bKQTVf','https://dev.lovrabet.id','https://api.lovrabet.ai','https://daily-runtime.lovrabet.com','3106fb4f7940b1f4446307e8a7f0c6f6e4a71affd6f8ebe7e5f23e055c08ca3f','https://user.lovrabet.ai','3CrjUYc','https://skills.lovrabet.id','45188DQLtpt','111811bzZTUc','7keeHGp'];a312_0x3aff=function(){return _0x1d5f7a;};return a312_0x3aff();}function a312_0x308c(_0x1a006e,_0x314906){_0x1a006e=_0x1a006e-0x1b2;const _0x3aff77=a312_0x3aff();let _0x308c9c=_0x3aff77[_0x1a006e];return _0x308c9c;}export const ROUTING_CATALOG_DIGEST=a312_0x9456df(0x1d2);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a312_0x9456df(0x1bc),'aliases':[a312_0x9456df(0x1c8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1b7),'api':a312_0x9456df(0x1b9),'runtime':'https://runtime.lovrabet.com','skill':a312_0x9456df(0x1c6),'kb':a312_0x9456df(0x1b9),'app':a312_0x9456df(0x1be)},'daily':{'user':a312_0x9456df(0x1c9),'api':'https://daily-api.lovrabet.com','runtime':a312_0x9456df(0x1d1),'skill':a312_0x9456df(0x1ba),'kb':a312_0x9456df(0x1bb),'app':'https://daily.lovrabet.com'}},'cdn':{'libraries':a312_0x9456df(0x1ca),'lovrabet':a312_0x9456df(0x1b6)},'local':{'origin':'https://dev.lovrabet.com'}},'id':{'enabled':!![],'label':a312_0x9456df(0x1c7),'aliases':[a312_0x9456df(0x1b8)],'serviceDomains':{'production':{'user':a312_0x9456df(0x1c0),'api':a312_0x9456df(0x1cb),'runtime':a312_0x9456df(0x1bf),'skill':a312_0x9456df(0x1d5),'kb':a312_0x9456df(0x1cb),'app':a312_0x9456df(0x1d9)}},'cdn':{'libraries':a312_0x9456df(0x1cd),'lovrabet':a312_0x9456df(0x1b3)},'local':{'origin':a312_0x9456df(0x1cf)}},'global':{'enabled':![],'label':a312_0x9456df(0x1b5),'aliases':[],'serviceDomains':{'production':{'user':a312_0x9456df(0x1d3),'api':a312_0x9456df(0x1d0),'runtime':a312_0x9456df(0x1c2),'skill':a312_0x9456df(0x1db),'kb':a312_0x9456df(0x1d0),'app':'https://app.lovrabet.ai'}},'cdn':{'libraries':'https://cdnjs.cloudflare.com/ajax/libs'},'local':{'origin':a312_0x9456df(0x1b4)}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
@@ -1 +1 @@
1
- const a301_0x14c646=a301_0xf314;(function(_0x36654c,_0xc8973){const _0x4237e6=a301_0xf314,_0x65957a=_0x36654c();while(!![]){try{const _0x1a81da=parseInt(_0x4237e6(0x17a))/0x1*(parseInt(_0x4237e6(0x16d))/0x2)+-parseInt(_0x4237e6(0x16f))/0x3+-parseInt(_0x4237e6(0x177))/0x4*(parseInt(_0x4237e6(0x175))/0x5)+-parseInt(_0x4237e6(0x17b))/0x6+-parseInt(_0x4237e6(0x172))/0x7+parseInt(_0x4237e6(0x17c))/0x8+parseInt(_0x4237e6(0x171))/0x9;if(_0x1a81da===_0xc8973)break;else _0x65957a['push'](_0x65957a['shift']());}catch(_0x4de9a2){_0x65957a['push'](_0x65957a['shift']());}}}(a301_0x5259,0xeaecd));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a301_0x14c646(0x174);export const ENTERPRISE_ROUTING_PROTOCOL='lovrabet-routing/v1';export const ENTERPRISE_ROUTING_KIND=a301_0x14c646(0x170);function a301_0xf314(_0x4f2df4,_0x17ce6e){_0x4f2df4=_0x4f2df4-0x16c;const _0x52597d=a301_0x5259();let _0xf3141a=_0x52597d[_0x4f2df4];return _0xf3141a;}export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a301_0x14c646(0x17d),a301_0x14c646(0x179),'runtimeDomain',a301_0x14c646(0x16c),'kbDomain','appDomain',a301_0x14c646(0x16e),a301_0x14c646(0x178)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a301_0x14c646(0x17d),a301_0x14c646(0x179),a301_0x14c646(0x17e),a301_0x14c646(0x16c),'kbDomain',a301_0x14c646(0x173)];export const ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a301_0x14c646(0x176)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=['libraries',a301_0x14c646(0x176)];function a301_0x5259(){const _0x502a0c=['13319894kNzGXS','appDomain','d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc','15qgonJF','lovrabet','2451052WuWIeZ','certificateDomain','apiDomain','1051uPnAUv','11053002bRFRFA','5127440IYCNCZ','userDomain','runtimeDomain','skillDomain','2078Leyddz','localDomain','3913071xyltZx','enterprise','55052901MeXagG'];a301_0x5259=function(){return _0x502a0c;};return a301_0x5259();}
1
+ const a313_0x45ef78=a313_0x3ec1;(function(_0x53ad6f,_0x1c95b0){const _0x3990d4=a313_0x3ec1,_0x53c3e7=_0x53ad6f();while(!![]){try{const _0x1e24a3=-parseInt(_0x3990d4(0x13d))/0x1*(parseInt(_0x3990d4(0x144))/0x2)+-parseInt(_0x3990d4(0x138))/0x3*(parseInt(_0x3990d4(0x146))/0x4)+-parseInt(_0x3990d4(0x145))/0x5+parseInt(_0x3990d4(0x13b))/0x6+-parseInt(_0x3990d4(0x135))/0x7+-parseInt(_0x3990d4(0x136))/0x8+parseInt(_0x3990d4(0x140))/0x9;if(_0x1e24a3===_0x1c95b0)break;else _0x53c3e7['push'](_0x53c3e7['shift']());}catch(_0x19a6e6){_0x53c3e7['push'](_0x53c3e7['shift']());}}}(a313_0xad0a,0xba7c1));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST='d83929cbced3959b68435d16131e5ff12a4bfc6095e6b7f15bada2bfd03a72cc';export const ENTERPRISE_ROUTING_PROTOCOL=a313_0x45ef78(0x13e);function a313_0x3ec1(_0x5134e9,_0x597840){_0x5134e9=_0x5134e9-0x132;const _0xad0ab8=a313_0xad0a();let _0x3ec1f5=_0xad0ab8[_0x5134e9];return _0x3ec1f5;}export const ENTERPRISE_ROUTING_KIND=a313_0x45ef78(0x143);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),'apiDomain',a313_0x45ef78(0x13c),a313_0x45ef78(0x142),'kbDomain',a313_0x45ef78(0x139),a313_0x45ef78(0x141),a313_0x45ef78(0x133)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a313_0x45ef78(0x137),a313_0x45ef78(0x134),'runtimeDomain',a313_0x45ef78(0x142),a313_0x45ef78(0x132),a313_0x45ef78(0x139)];function a313_0xad0a(){const _0x44136b=['7153510kWmhcN','8NNRFtV','kbDomain','certificateDomain','apiDomain','2338329nnEAHm','6572696XEJCLW','userDomain','152403XGHjoT','appDomain','libraries','8665740YyRnUq','runtimeDomain','41777revfnh','lovrabet-routing/v1','lovrabet','18819387sbftwU','localDomain','skillDomain','enterprise','4SZkAiU'];a313_0xad0a=function(){return _0x44136b;};return a313_0xad0a();}export const ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];export const REQUIRED_ENTERPRISE_ROUTING_CDN_FIELDS=[a313_0x45ef78(0x13a),a313_0x45ef78(0x13f)];
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a302_0x14a5(_0xe4d219,_0x2d0e66){_0xe4d219=_0xe4d219-0xfa;var _0x32d106=a302_0x32d1();var _0x14a513=_0x32d106[_0xe4d219];return _0x14a513;}(function(_0xf8c728,_0x557f77){var _0x1f64e2=a302_0x14a5,_0x3b6dd1=_0xf8c728();while(!![]){try{var _0x1d8b1f=parseInt(_0x1f64e2(0x100))/0x1*(-parseInt(_0x1f64e2(0x105))/0x2)+-parseInt(_0x1f64e2(0x109))/0x3*(parseInt(_0x1f64e2(0x10a))/0x4)+parseInt(_0x1f64e2(0xfe))/0x5*(parseInt(_0x1f64e2(0x10b))/0x6)+parseInt(_0x1f64e2(0x106))/0x7*(-parseInt(_0x1f64e2(0xfc))/0x8)+-parseInt(_0x1f64e2(0xfa))/0x9+-parseInt(_0x1f64e2(0xfb))/0xa*(parseInt(_0x1f64e2(0x107))/0xb)+parseInt(_0x1f64e2(0x102))/0xc;if(_0x1d8b1f===_0x557f77)break;else _0x3b6dd1['push'](_0x3b6dd1['shift']());}catch(_0x2f1026){_0x3b6dd1['push'](_0x3b6dd1['shift']());}}}(a302_0x32d1,0xeac9e));function a302_0x32d1(){var _0x231a06=['546thLRYS','24CZokDP','36vYRtxH','16835715pqmRzF','253090IiCRog','24qgkJvA','\x20to\x20view\x20available\x20commands.','306845lXkkLR','\x20--help','295eKhGzT','green','74826468kUMbCH','\x20\x20Use\x20','log','6494TIEwXI','4436467hZvxnW','396YzYedZ','bold'];a302_0x32d1=function(){return _0x231a06;};return a302_0x32d1();}import a302_0x2aad66 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x479a95=a302_0x14a5;console[_0x479a95(0x104)](),console[_0x479a95(0x104)](a302_0x2aad66['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x479a95(0x104)](),console[_0x479a95(0x104)](_0x479a95(0x103)+a302_0x2aad66[_0x479a95(0x101)][_0x479a95(0x108)](CLI_BIN_NAME+_0x479a95(0xff))+_0x479a95(0xfd)),console[_0x479a95(0x104)]();}
1
+ function a314_0x17bb(){var _0x16fbf2=['413400HwcThL','2235191meCESF','green','24366366xMUXIc','\x20to\x20view\x20available\x20commands.','bold','8mlAyCm','620008gtSAfo','\x20--help','1654491AnLECP','839910jaoaRj','25sjyRzH','log','2136172lYRaRs'];a314_0x17bb=function(){return _0x16fbf2;};return a314_0x17bb();}function a314_0x5ec8(_0x1b6a2b,_0x467fb4){_0x1b6a2b=_0x1b6a2b-0x167;var _0x17bbc7=a314_0x17bb();var _0x5ec821=_0x17bbc7[_0x1b6a2b];return _0x5ec821;}(function(_0x316b5d,_0x151abd){var _0x5326ba=a314_0x5ec8,_0x1d6fe8=_0x316b5d();while(!![]){try{var _0x46b176=-parseInt(_0x5326ba(0x16e))/0x1+parseInt(_0x5326ba(0x16b))/0x2+-parseInt(_0x5326ba(0x16d))/0x3+-parseInt(_0x5326ba(0x171))/0x4+parseInt(_0x5326ba(0x16f))/0x5*(-parseInt(_0x5326ba(0x172))/0x6)+parseInt(_0x5326ba(0x173))/0x7*(-parseInt(_0x5326ba(0x16a))/0x8)+parseInt(_0x5326ba(0x167))/0x9;if(_0x46b176===_0x151abd)break;else _0x1d6fe8['push'](_0x1d6fe8['shift']());}catch(_0x479d2e){_0x1d6fe8['push'](_0x1d6fe8['shift']());}}}(a314_0x17bb,0x68853));import a314_0x6a9467 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x58bfb9=a314_0x5ec8;console['log'](),console[_0x58bfb9(0x170)](a314_0x6a9467[_0x58bfb9(0x174)][_0x58bfb9(0x169)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x58bfb9(0x170)](),console['log']('\x20\x20Use\x20'+a314_0x6a9467['green'][_0x58bfb9(0x169)](CLI_BIN_NAME+_0x58bfb9(0x16c))+_0x58bfb9(0x168)),console[_0x58bfb9(0x170)]();}
@@ -1 +1 @@
1
- function a303_0x1724(){const _0x593ed3=['changed','FAILED','Rabetbase\x20Built-in\x20Skill\x20','5pIwsgz','code','4197172OisiQk','16cqqAOd','1947bQBixM','544634FUeGrR','2385sbcUad','repairCommand','2164tQaOPg','already\x20current','Installation\x20failed','816739HzNUTt','15970YHlcMv','[BUILTIN_SKILL_INSTALL_','installed','12vRsFMw','\x20via\x20skills@latest','skillVersion','installedPath','SOURCE_INVALID','1BjHcBC','error','2212638xAKUBF','42310216VexOVp','warn','\x20at\x20'];a303_0x1724=function(){return _0x593ed3;};return a303_0x1724();}(function(_0x5eebfa,_0x46fe57){const _0x39ca4c=a303_0x5dac,_0x1e1819=_0x5eebfa();while(!![]){try{const _0x2ba731=parseInt(_0x39ca4c(0x182))/0x1*(-parseInt(_0x39ca4c(0x173))/0x2)+-parseInt(_0x39ca4c(0x172))/0x3*(parseInt(_0x39ca4c(0x176))/0x4)+-parseInt(_0x39ca4c(0x16e))/0x5*(parseInt(_0x39ca4c(0x184))/0x6)+-parseInt(_0x39ca4c(0x170))/0x7*(parseInt(_0x39ca4c(0x171))/0x8)+parseInt(_0x39ca4c(0x174))/0x9*(-parseInt(_0x39ca4c(0x17a))/0xa)+-parseInt(_0x39ca4c(0x179))/0xb*(-parseInt(_0x39ca4c(0x17d))/0xc)+parseInt(_0x39ca4c(0x185))/0xd;if(_0x2ba731===_0x46fe57)break;else _0x1e1819['push'](_0x1e1819['shift']());}catch(_0x415001){_0x1e1819['push'](_0x1e1819['shift']());}}}(a303_0x1724,0xae62d));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a303_0x5dac(_0x34224f,_0x5607b1){_0x34224f=_0x34224f-0x16d;const _0x1724d5=a303_0x1724();let _0x5dacb4=_0x1724d5[_0x34224f];return _0x5dacb4;}export async function runPostinstall(_0x6ab075={}){const _0x208399=a303_0x5dac,_0x14c1c8=installBuiltinSkill(_0x6ab075);if(_0x14c1c8['ok']){const _0x1a2524=_0x14c1c8[_0x208399(0x188)]?_0x208399(0x17c):_0x208399(0x177),_0x374cf1=_0x14c1c8['installedPath']?_0x208399(0x187)+_0x14c1c8[_0x208399(0x180)]:_0x208399(0x17e);return console['log'](_0x208399(0x16d)+_0x14c1c8[_0x208399(0x17f)]+'\x20'+_0x1a2524+_0x374cf1),_0x14c1c8;}const _0x3d1707=_0x208399(0x17b)+(_0x14c1c8[_0x208399(0x16f)]??_0x208399(0x189))+']\x20'+(_0x14c1c8[_0x208399(0x183)]??_0x208399(0x178))+'.\x20'+('Repair\x20with:\x20'+_0x14c1c8[_0x208399(0x175)]);if(_0x14c1c8[_0x208399(0x16f)]===_0x208399(0x181))throw new Error(_0x3d1707);return console[_0x208399(0x186)](_0x3d1707),_0x14c1c8;}
1
+ (function(_0x2d570a,_0x5ab28b){const _0x3af79e=a315_0x2d10,_0x10af07=_0x2d570a();while(!![]){try{const _0x3b1ece=-parseInt(_0x3af79e(0xcc))/0x1*(-parseInt(_0x3af79e(0xd0))/0x2)+parseInt(_0x3af79e(0xc8))/0x3+-parseInt(_0x3af79e(0xd1))/0x4*(parseInt(_0x3af79e(0xd7))/0x5)+parseInt(_0x3af79e(0xd5))/0x6+parseInt(_0x3af79e(0xd2))/0x7+-parseInt(_0x3af79e(0xce))/0x8*(-parseInt(_0x3af79e(0xc3))/0x9)+-parseInt(_0x3af79e(0xc5))/0xa;if(_0x3b1ece===_0x5ab28b)break;else _0x10af07['push'](_0x10af07['shift']());}catch(_0x3066c2){_0x10af07['push'](_0x10af07['shift']());}}}(a315_0x18c1,0x5dc9a));function a315_0x2d10(_0x46473b,_0x436c67){_0x46473b=_0x46473b-0xc3;const _0x18c19e=a315_0x18c1();let _0x2d106c=_0x18c19e[_0x46473b];return _0x2d106c;}import{installBuiltinSkill}from'./skills/builtin-skill.js';function a315_0x18c1(){const _0x117015=['repairCommand','log','4165224jNPGyL','changed','5HRfGOW','640818HfvhuS','Repair\x20with:\x20','12886310gsYZVZ','Installation\x20failed','error','1888041eVGKCr','installedPath','\x20at\x20','SOURCE_INVALID','297MgUoTG','already\x20current','16mabpOx','FAILED','1306qqVOqm','2861156uJKQhd','5097246fBudwT'];a315_0x18c1=function(){return _0x117015;};return a315_0x18c1();}export async function runPostinstall(_0x248d2a={}){const _0x47ff1d=a315_0x2d10,_0x7802da=installBuiltinSkill(_0x248d2a);if(_0x7802da['ok']){const _0x574523=_0x7802da[_0x47ff1d(0xd6)]?'installed':_0x47ff1d(0xcd),_0x52a00c=_0x7802da[_0x47ff1d(0xc9)]?_0x47ff1d(0xca)+_0x7802da[_0x47ff1d(0xc9)]:'\x20via\x20skills@latest';return console[_0x47ff1d(0xd4)]('Rabetbase\x20Built-in\x20Skill\x20'+_0x7802da['skillVersion']+'\x20'+_0x574523+_0x52a00c),_0x7802da;}const _0x5386ba='[BUILTIN_SKILL_INSTALL_'+(_0x7802da['code']??_0x47ff1d(0xcf))+']\x20'+(_0x7802da[_0x47ff1d(0xc7)]??_0x47ff1d(0xc6))+'.\x20'+(_0x47ff1d(0xc4)+_0x7802da[_0x47ff1d(0xd3)]);if(_0x7802da['code']===_0x47ff1d(0xcb))throw new Error(_0x5386ba);return console['warn'](_0x5386ba),_0x7802da;}
@@ -1 +1 @@
1
- (function(_0xd1bc10,_0x2872e4){const _0x5923d0=a304_0x5163,_0xca5e67=_0xd1bc10();while(!![]){try{const _0x41cfa0=-parseInt(_0x5923d0(0x181))/0x1*(-parseInt(_0x5923d0(0x184))/0x2)+parseInt(_0x5923d0(0x183))/0x3*(-parseInt(_0x5923d0(0x187))/0x4)+-parseInt(_0x5923d0(0x17a))/0x5+-parseInt(_0x5923d0(0x178))/0x6+parseInt(_0x5923d0(0x17f))/0x7*(parseInt(_0x5923d0(0x180))/0x8)+parseInt(_0x5923d0(0x17d))/0x9+parseInt(_0x5923d0(0x17e))/0xa;if(_0x41cfa0===_0x2872e4)break;else _0xca5e67['push'](_0xca5e67['shift']());}catch(_0xb60b23){_0xca5e67['push'](_0xca5e67['shift']());}}}(a304_0x1d0d,0xda606));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x5375aa,_0x2d00c,_0x1f924e){const _0x3333ce=a304_0x5163,_0x1645ee=normalizeText(_0x5375aa[_0x3333ce(0x189)],DESCRIPTION_MAX_LENGTH),_0x5ed1bf=_0x1645ee||normalizeText(defaultDescription(requireWriteRisk(_0x5375aa),_0x2d00c),DESCRIPTION_MAX_LENGTH);return{'operation':_0x2d00c,'risk':requireWriteRisk(_0x5375aa),'description':_0x5ed1bf,..._0x1f924e?{'signal':_0x1f924e}:{}};}function a304_0x5163(_0x960e97,_0x2b4812){_0x960e97=_0x960e97-0x175;const _0x1d0d9b=a304_0x1d0d();let _0x516360=_0x1d0d9b[_0x960e97];return _0x516360;}function requireWriteRisk(_0x3012ff){const _0x53f89f=a304_0x5163;if(_0x3012ff['risk']===_0x53f89f(0x188)||_0x3012ff[_0x53f89f(0x186)]===_0x53f89f(0x182))return _0x3012ff['risk'];throw new Error(_0x53f89f(0x177));}function defaultDescription(_0x18862f,_0x155469){const _0x384581=a304_0x5163;if(_0x18862f===_0x384581(0x182))return _0x384581(0x185)+_0x155469+'.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.';return _0x384581(0x17b)+_0x155469+_0x384581(0x175);}function a304_0x1d0d(){const _0x5ba4be=['confirmationDescription','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','replace','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','5851890VvTJQW','trim','2958160QJUZVz','This\x20will\x20run\x20the\x20write\x20','slice','4172769uBdCtf','18666310sMWPhb','1413272XpRJau','8ABJVwV','1831PycoSz','high-risk-write','50598nXiOnt','1286bQHLuV','This\x20will\x20run\x20the\x20high-risk\x20write\x20','risk','296YCWyaQ','write'];a304_0x1d0d=function(){return _0x5ba4be;};return a304_0x1d0d();}function normalizeText(_0x4e8b3e,_0xcdbc86){const _0x17c755=a304_0x5163;if(typeof _0x4e8b3e!=='string')return'';return _0x4e8b3e[_0x17c755(0x176)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x17c755(0x179)]()[_0x17c755(0x17c)](0x0,_0xcdbc86);}
1
+ (function(_0x2672f4,_0x543150){const _0x198fc7=a316_0x3b31,_0x2ac571=_0x2672f4();while(!![]){try{const _0x20faae=parseInt(_0x198fc7(0x85))/0x1+parseInt(_0x198fc7(0x7e))/0x2+-parseInt(_0x198fc7(0x80))/0x3*(parseInt(_0x198fc7(0x86))/0x4)+parseInt(_0x198fc7(0x83))/0x5*(-parseInt(_0x198fc7(0x89))/0x6)+-parseInt(_0x198fc7(0x8b))/0x7+-parseInt(_0x198fc7(0x87))/0x8+parseInt(_0x198fc7(0x82))/0x9;if(_0x20faae===_0x543150)break;else _0x2ac571['push'](_0x2ac571['shift']());}catch(_0x51fdfb){_0x2ac571['push'](_0x2ac571['shift']());}}}(a316_0x5cfa,0x52924));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x31221c,_0x4319ea,_0x32585d){const _0x3e1116=a316_0x3b31,_0x1d0b0f=normalizeText(_0x31221c[_0x3e1116(0x8d)],DESCRIPTION_MAX_LENGTH),_0xc75aa8=_0x1d0b0f||normalizeText(defaultDescription(requireWriteRisk(_0x31221c),_0x4319ea),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4319ea,'risk':requireWriteRisk(_0x31221c),'description':_0xc75aa8,..._0x32585d?{'signal':_0x32585d}:{}};}function a316_0x3b31(_0x475470,_0x36c99f){_0x475470=_0x475470-0x7b;const _0x5cfa87=a316_0x5cfa();let _0x3b3153=_0x5cfa87[_0x475470];return _0x3b3153;}function a316_0x5cfa(){const _0x17e4c1=['7591698uUIgXb','45PWjhUF','replace','73490ShxREX','8KkrlIe','41432HKXISS','high-risk-write','121854nakByU','.\x20It\x20may\x20create\x20or\x20change\x20business\x20data\x20or\x20local\x20configuration.','846230PCROcm','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','confirmationDescription','.\x20It\x20may\x20overwrite,\x20delete,\x20or\x20materially\x20change\x20live\x20behavior.','slice','string','write','638828XXHxwj','risk','884046bYTBCf','trim'];a316_0x5cfa=function(){return _0x17e4c1;};return a316_0x5cfa();}function requireWriteRisk(_0x2d81fa){const _0x4002ac=a316_0x3b31;if(_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x7d)||_0x2d81fa[_0x4002ac(0x7f)]===_0x4002ac(0x88))return _0x2d81fa[_0x4002ac(0x7f)];throw new Error(_0x4002ac(0x8c));}function defaultDescription(_0x40d678,_0x4161d1){const _0x5d3879=a316_0x3b31;if(_0x40d678==='high-risk-write')return'This\x20will\x20run\x20the\x20high-risk\x20write\x20'+_0x4161d1+_0x5d3879(0x8e);return'This\x20will\x20run\x20the\x20write\x20'+_0x4161d1+_0x5d3879(0x8a);}function normalizeText(_0x466e28,_0x9abfa0){const _0x17735d=a316_0x3b31;if(typeof _0x466e28!==_0x17735d(0x7c))return'';return _0x466e28['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x17735d(0x84)](/\s+/g,'\x20')[_0x17735d(0x81)]()[_0x17735d(0x7b)](0x0,_0x9abfa0);}