@lovrabet/rabetbase-cli 2.5.3-beta.1 → 2.5.3-beta.3

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 (419) 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.d.ts +7 -0
  49. package/lib/commands/bff/logs.js +1 -0
  50. package/lib/commands/bff/pull.js +1 -1
  51. package/lib/commands/bff/push.js +1 -1
  52. package/lib/commands/bff/status.js +1 -1
  53. package/lib/commands/cli-skill/index.js +1 -1
  54. package/lib/commands/cli-update.js +1 -1
  55. package/lib/commands/codegen/index.js +1 -1
  56. package/lib/commands/codegen/sdk.js +1 -1
  57. package/lib/commands/codegen/sql.js +1 -1
  58. package/lib/commands/common/app-registry.js +1 -1
  59. package/lib/commands/common/app-selector.js +1 -1
  60. package/lib/commands/common/async-task.js +1 -1
  61. package/lib/commands/common/dry-run.js +1 -1
  62. package/lib/commands/common/flags.d.ts +7 -0
  63. package/lib/commands/common/flags.js +1 -1
  64. package/lib/commands/common/local-file.js +1 -1
  65. package/lib/commands/common/validate.js +1 -1
  66. package/lib/commands/config/delete.js +1 -1
  67. package/lib/commands/config/get.js +1 -1
  68. package/lib/commands/config/index.js +1 -1
  69. package/lib/commands/config/init.js +1 -1
  70. package/lib/commands/config/list.js +1 -1
  71. package/lib/commands/config/set.js +1 -1
  72. package/lib/commands/config/shared.js +1 -1
  73. package/lib/commands/dataset/batch-design.d.ts +21 -0
  74. package/lib/commands/dataset/batch-design.js +1 -0
  75. package/lib/commands/dataset/business-group-update.js +1 -1
  76. package/lib/commands/dataset/business-groups.js +1 -1
  77. package/lib/commands/dataset/capability.js +1 -1
  78. package/lib/commands/dataset/cross-relation-create.d.ts +2 -0
  79. package/lib/commands/dataset/cross-relation-create.js +1 -0
  80. package/lib/commands/dataset/cross-relation-delete.d.ts +2 -0
  81. package/lib/commands/dataset/cross-relation-delete.js +1 -0
  82. package/lib/commands/dataset/cross-relation-list.d.ts +2 -0
  83. package/lib/commands/dataset/cross-relation-list.js +1 -0
  84. package/lib/commands/dataset/cross-relation-shared.d.ts +190 -0
  85. package/lib/commands/dataset/cross-relation-shared.js +1 -0
  86. package/lib/commands/dataset/cross-relation-update.d.ts +2 -0
  87. package/lib/commands/dataset/cross-relation-update.js +1 -0
  88. package/lib/commands/dataset/delete.js +1 -1
  89. package/lib/commands/dataset/detail.js +1 -1
  90. package/lib/commands/dataset/extend-update.js +1 -1
  91. package/lib/commands/dataset/field-restore.js +1 -1
  92. package/lib/commands/dataset/field-update.js +1 -1
  93. package/lib/commands/dataset/generate.js +1 -1
  94. package/lib/commands/dataset/index.js +1 -1
  95. package/lib/commands/dataset/list.js +1 -1
  96. package/lib/commands/dataset/operations.js +1 -1
  97. package/lib/commands/dataset/relation-audit.js +1 -1
  98. package/lib/commands/dataset/relation-create.js +1 -1
  99. package/lib/commands/dataset/relation-delete.js +1 -1
  100. package/lib/commands/dataset/relation-shared.js +1 -1
  101. package/lib/commands/dataset/relation-update.js +1 -1
  102. package/lib/commands/dataset/relations.js +1 -1
  103. package/lib/commands/dataset/rename.js +1 -1
  104. package/lib/commands/dataset/restore.js +1 -1
  105. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  106. package/lib/commands/db/analysis-batching.js +1 -1
  107. package/lib/commands/db/analyze-batch-plan.js +1 -1
  108. package/lib/commands/db/analyze-cancel.js +1 -1
  109. package/lib/commands/db/analyze-start.js +1 -1
  110. package/lib/commands/db/analyze-status.js +1 -1
  111. package/lib/commands/db/create.js +1 -1
  112. package/lib/commands/db/delete.js +1 -1
  113. package/lib/commands/db/detail.js +1 -1
  114. package/lib/commands/db/diff-refresh-start.js +1 -1
  115. package/lib/commands/db/diff-refresh-status.js +1 -1
  116. package/lib/commands/db/diff.js +1 -1
  117. package/lib/commands/db/index.js +1 -1
  118. package/lib/commands/db/list.js +1 -1
  119. package/lib/commands/db/shared.js +1 -1
  120. package/lib/commands/db/table-diff-shared.js +1 -1
  121. package/lib/commands/db/tables.js +1 -1
  122. package/lib/commands/db/test.js +1 -1
  123. package/lib/commands/db/update.js +1 -1
  124. package/lib/commands/deployment/index.js +1 -1
  125. package/lib/commands/deployment/sync-all.js +1 -1
  126. package/lib/commands/deployment/sync-jobs.js +1 -1
  127. package/lib/commands/deployment/sync-status.js +1 -1
  128. package/lib/commands/doctor.js +1 -1
  129. package/lib/commands/file/index.js +1 -1
  130. package/lib/commands/flow/create.d.ts +2 -0
  131. package/lib/commands/flow/create.js +1 -0
  132. package/lib/commands/flow/detail.d.ts +2 -0
  133. package/lib/commands/flow/detail.js +1 -0
  134. package/lib/commands/flow/index.d.ts +3 -0
  135. package/lib/commands/flow/index.js +1 -0
  136. package/lib/commands/flow/list.d.ts +2 -0
  137. package/lib/commands/flow/list.js +1 -0
  138. package/lib/commands/flow/publish.d.ts +2 -0
  139. package/lib/commands/flow/publish.js +1 -0
  140. package/lib/commands/flow/runtime-resources-shared.d.ts +40 -0
  141. package/lib/commands/flow/runtime-resources-shared.js +1 -0
  142. package/lib/commands/flow/runtime-role-list.d.ts +2 -0
  143. package/lib/commands/flow/runtime-role-list.js +1 -0
  144. package/lib/commands/flow/runtime-role-user-list.d.ts +2 -0
  145. package/lib/commands/flow/runtime-role-user-list.js +1 -0
  146. package/lib/commands/flow/runtime-user-search.d.ts +2 -0
  147. package/lib/commands/flow/runtime-user-search.js +1 -0
  148. package/lib/commands/flow/shared.d.ts +41 -0
  149. package/lib/commands/flow/shared.js +1 -0
  150. package/lib/commands/flow/update.d.ts +2 -0
  151. package/lib/commands/flow/update.js +1 -0
  152. package/lib/commands/flow/validate.d.ts +3 -0
  153. package/lib/commands/flow/validate.js +1 -0
  154. package/lib/commands/instant-api-policy/current.js +1 -1
  155. package/lib/commands/instant-api-policy/index.js +1 -1
  156. package/lib/commands/instant-api-policy/init.js +1 -1
  157. package/lib/commands/instant-api-policy/publish.js +1 -1
  158. package/lib/commands/instant-api-policy/pull.js +1 -1
  159. package/lib/commands/instant-api-policy/revision.js +1 -1
  160. package/lib/commands/instant-api-policy/revisions.js +1 -1
  161. package/lib/commands/instant-api-policy/rollback.js +1 -1
  162. package/lib/commands/instant-api-policy/shared.js +1 -1
  163. package/lib/commands/instant-api-policy/validate.js +1 -1
  164. package/lib/commands/issue/index.js +1 -1
  165. package/lib/commands/issue/nudge.js +1 -1
  166. package/lib/commands/issue/report.js +1 -1
  167. package/lib/commands/issue/shared.js +1 -1
  168. package/lib/commands/kb/create.js +1 -1
  169. package/lib/commands/kb/delete.js +1 -1
  170. package/lib/commands/kb/detail.js +1 -1
  171. package/lib/commands/kb/index.js +1 -1
  172. package/lib/commands/kb/list.js +1 -1
  173. package/lib/commands/kb/search.js +1 -1
  174. package/lib/commands/kb/shared.js +1 -1
  175. package/lib/commands/kb/update.js +1 -1
  176. package/lib/commands/logs/index.js +1 -1
  177. package/lib/commands/menu/asset-update.js +1 -1
  178. package/lib/commands/menu/delete.js +1 -1
  179. package/lib/commands/menu/external-link-create.js +1 -1
  180. package/lib/commands/menu/external-link-update.js +1 -1
  181. package/lib/commands/menu/group-create.js +1 -1
  182. package/lib/commands/menu/group-update.js +1 -1
  183. package/lib/commands/menu/index.js +1 -1
  184. package/lib/commands/menu/list.js +1 -1
  185. package/lib/commands/menu/move.js +1 -1
  186. package/lib/commands/menu/regroup-start.js +1 -1
  187. package/lib/commands/menu/rename.js +1 -1
  188. package/lib/commands/menu/shared/compare-table.js +1 -1
  189. package/lib/commands/menu/shared/delete-plan.js +1 -1
  190. package/lib/commands/menu/shared/facts.js +1 -1
  191. package/lib/commands/menu/shared/index.js +1 -1
  192. package/lib/commands/menu/shared/inquirer.js +1 -1
  193. package/lib/commands/menu/shared/local-pages.js +1 -1
  194. package/lib/commands/menu/shared/logic.js +1 -1
  195. package/lib/commands/menu/shared/mutations.js +1 -1
  196. package/lib/commands/menu/shared/service.js +1 -1
  197. package/lib/commands/menu/shared/sync-core.js +1 -1
  198. package/lib/commands/menu/shared/update-core.js +1 -1
  199. package/lib/commands/menu/shared/valid-url.js +1 -1
  200. package/lib/commands/menu/sync.js +1 -1
  201. package/lib/commands/menu/visibility-update.js +1 -1
  202. package/lib/commands/notification/config-create.js +1 -1
  203. package/lib/commands/notification/config-delete.js +1 -1
  204. package/lib/commands/notification/config-list.js +1 -1
  205. package/lib/commands/notification/config-update.js +1 -1
  206. package/lib/commands/notification/index.js +1 -1
  207. package/lib/commands/notification/shared.js +1 -1
  208. package/lib/commands/ocr/index.js +1 -1
  209. package/lib/commands/page/create.js +1 -1
  210. package/lib/commands/page/custom/detail.js +1 -1
  211. package/lib/commands/page/custom/list.js +1 -1
  212. package/lib/commands/page/custom/publish.js +1 -1
  213. package/lib/commands/page/custom/shared.js +1 -1
  214. package/lib/commands/page/custom/syntax.js +1 -1
  215. package/lib/commands/page/custom/update.js +1 -1
  216. package/lib/commands/page/data-list-status.js +1 -1
  217. package/lib/commands/page/generate-start.js +1 -1
  218. package/lib/commands/page/generate-status.js +1 -1
  219. package/lib/commands/page/index.js +1 -1
  220. package/lib/commands/page/pull.js +1 -1
  221. package/lib/commands/page/push.js +1 -1
  222. package/lib/commands/page/relation-audit.js +1 -1
  223. package/lib/commands/page/restore.js +1 -1
  224. package/lib/commands/page/shared.js +1 -1
  225. package/lib/commands/page/sync.js +1 -1
  226. package/lib/commands/project/api-architecture-upgrade.d.ts +28 -0
  227. package/lib/commands/project/api-architecture-upgrade.js +1 -0
  228. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  229. package/lib/commands/project/create/format-elapsed.js +1 -1
  230. package/lib/commands/project/create/main.js +1 -1
  231. package/lib/commands/project/create/materialize-project-template.js +1 -1
  232. package/lib/commands/project/create/project-name.js +1 -1
  233. package/lib/commands/project/create/project-template-archive.js +1 -1
  234. package/lib/commands/project/create/project-template-path.js +1 -1
  235. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  236. package/lib/commands/project/create/use-format-code.js +1 -1
  237. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  238. package/lib/commands/project/domain-routing-sync.js +1 -1
  239. package/lib/commands/project/index.js +1 -1
  240. package/lib/commands/project/upgrade.d.ts +30 -1
  241. package/lib/commands/project/upgrade.js +1 -1
  242. package/lib/commands/registry.js +1 -1
  243. package/lib/commands/role/delete.js +1 -1
  244. package/lib/commands/role/detail.js +1 -1
  245. package/lib/commands/role/index.js +1 -1
  246. package/lib/commands/role/list.js +1 -1
  247. package/lib/commands/role/shared.js +1 -1
  248. package/lib/commands/role/update.js +1 -1
  249. package/lib/commands/role/user-add.js +1 -1
  250. package/lib/commands/role/user-remove.js +1 -1
  251. package/lib/commands/role/user-resolve.js +1 -1
  252. package/lib/commands/rule/get.js +1 -1
  253. package/lib/commands/rule/index.js +1 -1
  254. package/lib/commands/rule/list.js +1 -1
  255. package/lib/commands/rule/set.js +1 -1
  256. package/lib/commands/rule/shared.js +1 -1
  257. package/lib/commands/run/index.js +1 -1
  258. package/lib/commands/schema.js +1 -1
  259. package/lib/commands/sql/create.js +1 -1
  260. package/lib/commands/sql/delete.js +1 -1
  261. package/lib/commands/sql/detail.js +1 -1
  262. package/lib/commands/sql/exec.js +1 -1
  263. package/lib/commands/sql/index.js +1 -1
  264. package/lib/commands/sql/list.js +1 -1
  265. package/lib/commands/sql/pull.js +1 -1
  266. package/lib/commands/sql/push.js +1 -1
  267. package/lib/commands/sql/shared.js +1 -1
  268. package/lib/commands/sql/status.js +1 -1
  269. package/lib/commands/sql/validate.js +1 -1
  270. package/lib/commands/task/index.js +1 -1
  271. package/lib/commands/task/status.js +1 -1
  272. package/lib/commands/tenant/index.js +1 -1
  273. package/lib/commands/tenant/members-list.js +1 -1
  274. package/lib/commands/tenant/shared.js +1 -1
  275. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  276. package/lib/commands/user-account/index.js +1 -1
  277. package/lib/commands/workspace/add.js +1 -1
  278. package/lib/commands/workspace/index.js +1 -1
  279. package/lib/commands/workspace/remove.js +1 -1
  280. package/lib/config/domain-config.js +1 -1
  281. package/lib/config/project-domain-routing.js +1 -1
  282. package/lib/config/region-config.js +1 -1
  283. package/lib/config/schema.js +1 -1
  284. package/lib/constant/cdn.js +1 -1
  285. package/lib/constant/cli.js +1 -1
  286. package/lib/constant/defaults.js +1 -1
  287. package/lib/constant/domain.js +1 -1
  288. package/lib/constant/env.js +1 -1
  289. package/lib/constant/output.js +1 -1
  290. package/lib/constant/paths.js +1 -1
  291. package/lib/constant/region.js +1 -1
  292. package/lib/constant/risk.js +1 -1
  293. package/lib/constant/routing-profile.js +1 -1
  294. package/lib/context/app-resolver.d.ts +2 -0
  295. package/lib/context/app-resolver.js +1 -1
  296. package/lib/context/auth-resolver.js +1 -1
  297. package/lib/context/config-loader.js +1 -1
  298. package/lib/context.d.ts +2 -1
  299. package/lib/context.js +1 -1
  300. package/lib/core/alias-resolver.d.ts +13 -17
  301. package/lib/core/alias-resolver.js +1 -1
  302. package/lib/core/api-client.d.ts +176 -1
  303. package/lib/core/api-client.js +1 -1
  304. package/lib/core/bff/config.js +1 -1
  305. package/lib/core/bff/file-system.js +1 -1
  306. package/lib/core/bff/hash.js +1 -1
  307. package/lib/core/bff/hook-directory.d.ts +55 -0
  308. package/lib/core/bff/hook-directory.js +1 -0
  309. package/lib/core/bff/lock.js +1 -1
  310. package/lib/core/bff/types.d.ts +15 -0
  311. package/lib/core/bff/utils.js +1 -1
  312. package/lib/core/cross-db-relation.d.ts +41 -0
  313. package/lib/core/cross-db-relation.js +1 -0
  314. package/lib/core/db-resolver.js +1 -1
  315. package/lib/core/flow-config.d.ts +628 -0
  316. package/lib/core/flow-config.js +1 -0
  317. package/lib/core/instant-api-policy/config.js +1 -1
  318. package/lib/core/kb-search-client.js +1 -1
  319. package/lib/core/page/file-system.js +1 -1
  320. package/lib/core/page/hash.js +1 -1
  321. package/lib/core/page/lock.js +1 -1
  322. package/lib/core/page/lr-smart-jsx.js +1 -1
  323. package/lib/core/sql-index-auditor.js +1 -1
  324. package/lib/core/sql-sync/config.js +1 -1
  325. package/lib/core/sql-sync/file-system.js +1 -1
  326. package/lib/core/sql-sync/hash.js +1 -1
  327. package/lib/core/sql-sync/lock.js +1 -1
  328. package/lib/core/sql-sync/utils.js +1 -1
  329. package/lib/core/sql-validator.js +1 -1
  330. package/lib/errors.js +1 -1
  331. package/lib/framework/build-all-flags.js +1 -1
  332. package/lib/framework/error-output.js +1 -1
  333. package/lib/framework/explicit-yes.js +1 -1
  334. package/lib/framework/flags.js +1 -1
  335. package/lib/framework/help.js +1 -1
  336. package/lib/framework/index.js +1 -1
  337. package/lib/framework/output.js +1 -1
  338. package/lib/framework/response.js +1 -1
  339. package/lib/framework/runner-alias.d.ts +1 -1
  340. package/lib/framework/runner-alias.js +1 -1
  341. package/lib/framework/runner.js +1 -1
  342. package/lib/framework/schema-export.js +1 -1
  343. package/lib/framework/supported-flags.js +1 -1
  344. package/lib/framework/types.js +1 -1
  345. package/lib/generated/build-info.d.ts +4 -4
  346. package/lib/generated/build-info.js +1 -1
  347. package/lib/generated/official-routing.js +1 -1
  348. package/lib/generated/routing-contract.js +1 -1
  349. package/lib/help.js +1 -1
  350. package/lib/postinstall.js +1 -1
  351. package/lib/runtime/confirmation.js +1 -1
  352. package/lib/runtime/event.js +1 -1
  353. package/lib/runtime/index.js +1 -1
  354. package/lib/runtime/queue.js +1 -1
  355. package/lib/runtime/resolve.js +1 -1
  356. package/lib/skills/builtin-skill.js +1 -1
  357. package/lib/skills/main.js +1 -1
  358. package/lib/skills/npx-skills-add.d.ts +0 -10
  359. package/lib/skills/npx-skills-add.js +1 -1
  360. package/lib/skills/skill-presence.js +1 -1
  361. package/lib/telemetry/cli-command-trace.js +1 -1
  362. package/lib/telemetry/cli-help-trace.js +1 -1
  363. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  364. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  365. package/lib/telemetry/send-cli-trace-log.js +1 -1
  366. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  367. package/lib/types/index.d.ts +11 -1
  368. package/lib/utils/ai_config.js +1 -1
  369. package/lib/utils/apply-jq-filter.js +1 -1
  370. package/lib/utils/cdn-config.js +1 -1
  371. package/lib/utils/check-sdk-version.js +1 -1
  372. package/lib/utils/cli-version-check.js +1 -1
  373. package/lib/utils/cli-version-policy.d.ts +12 -0
  374. package/lib/utils/cli-version-policy.js +1 -1
  375. package/lib/utils/config.js +1 -1
  376. package/lib/utils/entity-with-id.js +1 -1
  377. package/lib/utils/file-utils.js +1 -1
  378. package/lib/utils/guides-cdn.js +1 -1
  379. package/lib/utils/http-client.js +1 -1
  380. package/lib/utils/is-non-interactive.js +1 -1
  381. package/lib/utils/logger.js +1 -1
  382. package/lib/utils/params.js +1 -1
  383. package/lib/utils/platform.js +1 -1
  384. package/lib/utils/sleep.js +1 -1
  385. package/lib/utils/template-replacer.js +1 -1
  386. package/lib/utils/update-notice.js +1 -1
  387. package/lib/utils/version.js +1 -1
  388. package/lib/utils/with-active-cookie.js +1 -1
  389. package/lib/utils/write-cli-side-channel.js +1 -1
  390. package/package.json +4 -1
  391. package/skills/rabetbase/SKILL.md +31 -9
  392. package/skills/rabetbase/guides/approval-flow-development-workflow.md +137 -0
  393. package/skills/rabetbase/guides/backend-function.md +19 -9
  394. package/skills/rabetbase/guides/bff-creation-workflow.md +10 -1
  395. package/skills/rabetbase/guides/conflict-detection.md +2 -0
  396. package/skills/rabetbase/guides/sdk-client-generation.md +112 -60
  397. package/skills/rabetbase/guides/typescript-sdk.md +9 -0
  398. package/skills/rabetbase/knowledge/approval-flow/config-json-schema.md +290 -0
  399. package/skills/rabetbase/references/rabetbase-api-pull.md +30 -19
  400. package/skills/rabetbase/references/rabetbase-app-list.md +1 -1
  401. package/skills/rabetbase/references/rabetbase-bff-create.md +1 -1
  402. package/skills/rabetbase/references/rabetbase-bff-logs.md +47 -0
  403. package/skills/rabetbase/references/rabetbase-bff-pull.md +7 -3
  404. package/skills/rabetbase/references/rabetbase-bff-push.md +10 -2
  405. package/skills/rabetbase/references/rabetbase-config.md +2 -1
  406. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +60 -0
  407. package/skills/rabetbase/references/rabetbase-dataset-generate.md +52 -2
  408. package/skills/rabetbase/references/rabetbase-flow-commands.md +86 -0
  409. package/skills/rabetbase/references/rabetbase-flow-resources.md +83 -0
  410. package/skills/rabetbase/references/rabetbase-flow-runtime-boundary.md +25 -0
  411. package/skills/rabetbase/references/rabetbase-instant-api-policy.md +103 -11
  412. package/skills/rabetbase/references/rabetbase-notification-config-list.md +17 -0
  413. package/skills/rabetbase/references/rabetbase-project-create.md +3 -3
  414. package/skills/rabetbase/references/rabetbase-project-upgrade.md +24 -13
  415. package/skills/rabetbase.manifest.json +10 -3
  416. package/templates/README.md +16 -4
  417. package/templates/generate-api/model-runtime.ts.tpl +101 -0
  418. package/templates/generate-api/profile-api.ts.tpl +21 -0
  419. package/templates/generate-api/profile-client.ts.tpl +14 -0
@@ -1 +1 @@
1
- (function(_0x5f2ce2,_0x3c09cd){const _0x3cb069=a263_0x4570,_0x5b39bb=_0x5f2ce2();while(!![]){try{const _0x5936d1=parseInt(_0x3cb069(0xaa))/0x1*(parseInt(_0x3cb069(0xc4))/0x2)+-parseInt(_0x3cb069(0xa9))/0x3+parseInt(_0x3cb069(0xac))/0x4*(-parseInt(_0x3cb069(0xb8))/0x5)+-parseInt(_0x3cb069(0xc3))/0x6*(parseInt(_0x3cb069(0xaf))/0x7)+-parseInt(_0x3cb069(0xb1))/0x8*(-parseInt(_0x3cb069(0xc2))/0x9)+parseInt(_0x3cb069(0xba))/0xa*(parseInt(_0x3cb069(0xa7))/0xb)+parseInt(_0x3cb069(0xad))/0xc;if(_0x5936d1===_0x3c09cd)break;else _0x5b39bb['push'](_0x5b39bb['shift']());}catch(_0x662e82){_0x5b39bb['push'](_0x5b39bb['shift']());}}}(a263_0x4e8c,0xe9ff5));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x53e6d2){const _0x4bb234=a263_0x4570;if(_0x53e6d2===_0x4bb234(0xb7))return _0x4bb234(0xb2);if(_0x53e6d2===_0x4bb234(0xb5))return _0x4bb234(0xc5);return undefined;}function a263_0x4570(_0x3fcdab,_0x17c908){_0x3fcdab=_0x3fcdab-0xa7;const _0x4e8ce2=a263_0x4e8c();let _0x4570d7=_0x4e8ce2[_0x3fcdab];return _0x4570d7;}async function scanSqlFilesRecursively(_0x31bd41,_0x19a530){const _0x25b329=a263_0x4570,_0x4d3823=[];try{const _0x1fc0c1=await readdir(_0x31bd41,{'withFileTypes':!![]});for(const _0x2cb42b of _0x1fc0c1){const _0x32caf8=join(_0x31bd41,_0x2cb42b[_0x25b329(0xbe)]);if(_0x2cb42b['isDirectory']()){_0x4d3823['push'](...await scanSqlFilesRecursively(_0x32caf8,_0x19a530));continue;}if(!_0x2cb42b['isFile']())continue;const _0x244d19=extname(_0x2cb42b[_0x25b329(0xbe)])[_0x25b329(0xb9)](),_0x487b01=extensionToMode(_0x244d19);if(!_0x487b01)continue;const _0x4e173d=relative(_0x19a530,_0x32caf8)[_0x25b329(0xb4)](/\\/g,'/'),_0x436e8d=_0x4e173d[_0x25b329(0xc1)]('/')[_0x25b329(0xa8)](Boolean),_0x145396=parseSqlPath(_0x436e8d,_0x2cb42b[_0x25b329(0xbe)],_0x244d19);if(!_0x145396)continue;_0x4d3823['push']({'sqlCode':_0x145396[_0x25b329(0xc6)],'sqlName':_0x145396[_0x25b329(0xc0)],'dbDirectory':_0x436e8d[0x0],'filePath':_0x32caf8,'relativePath':_0x4e173d,'lockKey':_0x145396[_0x25b329(0xc6)],'mode':_0x487b01});}}catch(_0x4f3e4d){if(_0x4f3e4d['code']!==_0x25b329(0xbc))throw _0x4f3e4d;}return _0x4d3823;}export async function scanLocalSqlQueries(_0x2bb64f){const _0x4295bd=a263_0x4570;return scanSqlFilesRecursively(_0x2bb64f[_0x4295bd(0xb3)],_0x2bb64f[_0x4295bd(0xb3)]);}export function resolveLocalSqlFilePath(_0x57efd4,_0x3ce81f,_0x4c83a5){const _0x384596=a263_0x4570,_0x4678b2=_0x4c83a5?.[_0x384596(0xb6)]||(_0x4c83a5?.['sqlName']||_0x4c83a5?.[_0x384596(0xbf)]?buildSqlRelativePath(_0x3ce81f,_0x4c83a5?.[_0x384596(0xc0)],_0x4c83a5?.[_0x384596(0xbf)],_0x4c83a5?.[_0x384596(0xbb)]||_0x384596(0xb2),_0x4c83a5?.[_0x384596(0xae)]):buildDefaultSqlFileName(_0x3ce81f,_0x4c83a5?.[_0x384596(0xbb)]||_0x384596(0xb2)));return join(_0x57efd4['sqlRootDir'],_0x4678b2);}export async function directoryExists(_0x375666){try{const _0x2e1f6d=await stat(_0x375666);return _0x2e1f6d['isDirectory']();}catch{return![];}}function parseSqlPath(_0x43d603,_0x33fc71,_0x2c2ebd){const _0x461138=a263_0x4570,_0x4815e8=_0x33fc71[_0x461138(0xb0)](0x0,-_0x2c2ebd[_0x461138(0xbd)]);if(_0x43d603[_0x461138(0xbd)]<0x2)return null;const _0x414100=_0x4815e8['indexOf']('_');if(_0x414100<=0x0||_0x414100>=_0x4815e8[_0x461138(0xbd)]-0x1)return null;const _0x4926ac=_0x4815e8[_0x461138(0xb0)](0x0,_0x414100);if(!isLikelySqlCode(_0x4926ac))return null;return{'sqlCode':_0x4926ac,'sqlName':_0x4815e8[_0x461138(0xb0)](_0x414100+0x1)};}function a263_0x4e8c(){const _0x331247=['288UjebBc','6qmMOmo','2cKmbnu','mybatisXml','sqlCode','18210126fdcmdA','filter','2516574JRjyuL','1094459NeKQpj','test','5164596NCwXyd','4238532xSiEbp','dbId','5541004KuhgVi','slice','194224DVVTjA','sql','sqlRootDir','replace','.xml','path','.sql','5INTxdO','toLowerCase','10DWzbCy','mode','ENOENT','length','name','dbName','sqlName','split'];a263_0x4e8c=function(){return _0x331247;};return a263_0x4e8c();}function isLikelySqlCode(_0x22211b){const _0x16f3fb=a263_0x4570;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x16f3fb(0xab)](_0x22211b);}
1
+ (function(_0x4e76e4,_0x206b98){const _0x25ed4f=a291_0x36b4,_0x1dceff=_0x4e76e4();while(!![]){try{const _0x264cdf=-parseInt(_0x25ed4f(0xaa))/0x1*(parseInt(_0x25ed4f(0x8f))/0x2)+-parseInt(_0x25ed4f(0xa8))/0x3+parseInt(_0x25ed4f(0xa2))/0x4*(parseInt(_0x25ed4f(0x9c))/0x5)+-parseInt(_0x25ed4f(0xa3))/0x6*(-parseInt(_0x25ed4f(0xad))/0x7)+parseInt(_0x25ed4f(0x97))/0x8*(parseInt(_0x25ed4f(0x98))/0x9)+parseInt(_0x25ed4f(0xa5))/0xa*(parseInt(_0x25ed4f(0xae))/0xb)+parseInt(_0x25ed4f(0xab))/0xc*(parseInt(_0x25ed4f(0xb0))/0xd);if(_0x264cdf===_0x206b98)break;else _0x1dceff['push'](_0x1dceff['shift']());}catch(_0x19ba47){_0x1dceff['push'](_0x1dceff['shift']());}}}(a291_0x375f,0x3ccdb));import{readdir,stat}from'node:fs/promises';function a291_0x36b4(_0x2132cb,_0x52e55a){_0x2132cb=_0x2132cb-0x8f;const _0x375f88=a291_0x375f();let _0x36b4c8=_0x375f88[_0x2132cb];return _0x36b4c8;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x52e772){const _0x26586d=a291_0x36b4;if(_0x52e772===_0x26586d(0x99))return _0x26586d(0x9f);if(_0x52e772===_0x26586d(0xac))return _0x26586d(0x93);return undefined;}async function scanSqlFilesRecursively(_0x2a9f54,_0x723fb0){const _0x5ec383=a291_0x36b4,_0x9816b=[];try{const _0x2a2d83=await readdir(_0x2a9f54,{'withFileTypes':!![]});for(const _0x3b261c of _0x2a2d83){const _0x521626=join(_0x2a9f54,_0x3b261c[_0x5ec383(0x90)]);if(_0x3b261c['isDirectory']()){_0x9816b['push'](...await scanSqlFilesRecursively(_0x521626,_0x723fb0));continue;}if(!_0x3b261c[_0x5ec383(0xa1)]())continue;const _0x26d1a8=extname(_0x3b261c[_0x5ec383(0x90)])[_0x5ec383(0xaf)](),_0x3d010d=extensionToMode(_0x26d1a8);if(!_0x3d010d)continue;const _0x3bb764=relative(_0x723fb0,_0x521626)[_0x5ec383(0xa9)](/\\/g,'/'),_0x51ec13=_0x3bb764[_0x5ec383(0x9a)]('/')[_0x5ec383(0x92)](Boolean),_0x25cc2f=parseSqlPath(_0x51ec13,_0x3b261c[_0x5ec383(0x90)],_0x26d1a8);if(!_0x25cc2f)continue;_0x9816b[_0x5ec383(0x9b)]({'sqlCode':_0x25cc2f['sqlCode'],'sqlName':_0x25cc2f[_0x5ec383(0xa0)],'dbDirectory':_0x51ec13[0x0],'filePath':_0x521626,'relativePath':_0x3bb764,'lockKey':_0x25cc2f[_0x5ec383(0x9d)],'mode':_0x3d010d});}}catch(_0x5ac3e4){if(_0x5ac3e4[_0x5ec383(0x94)]!=='ENOENT')throw _0x5ac3e4;}return _0x9816b;}export async function scanLocalSqlQueries(_0x245688){const _0x2bd818=a291_0x36b4;return scanSqlFilesRecursively(_0x245688[_0x2bd818(0x91)],_0x245688['sqlRootDir']);}function a291_0x375f(){const _0x3c42a9=['15kSljKY','sqlCode','mode','sql','sqlName','isFile','44772evWXtU','2095278ppzxbL','length','2630qYdmUE','dbName','test','1058946PMAJoa','replace','179206KCwhCD','652332cnEwKV','.xml','7BDlUta','6941OQLzra','toLowerCase','26zGfhGB','4WnmCmX','name','sqlRootDir','filter','mybatisXml','code','slice','dbId','56368ZQxnmn','387qIPDjs','.sql','split','push'];a291_0x375f=function(){return _0x3c42a9;};return a291_0x375f();}export function resolveLocalSqlFilePath(_0x95efd1,_0x25f994,_0x257c15){const _0x5a9e45=a291_0x36b4,_0x13a14d=_0x257c15?.['path']||(_0x257c15?.[_0x5a9e45(0xa0)]||_0x257c15?.[_0x5a9e45(0xa6)]?buildSqlRelativePath(_0x25f994,_0x257c15?.[_0x5a9e45(0xa0)],_0x257c15?.[_0x5a9e45(0xa6)],_0x257c15?.[_0x5a9e45(0x9e)]||_0x5a9e45(0x9f),_0x257c15?.[_0x5a9e45(0x96)]):buildDefaultSqlFileName(_0x25f994,_0x257c15?.['mode']||'sql'));return join(_0x95efd1['sqlRootDir'],_0x13a14d);}export async function directoryExists(_0x3554be){try{const _0x464fe1=await stat(_0x3554be);return _0x464fe1['isDirectory']();}catch{return![];}}function parseSqlPath(_0x451f6b,_0x3603b8,_0x479c09){const _0x79238b=a291_0x36b4,_0x2d9461=_0x3603b8[_0x79238b(0x95)](0x0,-_0x479c09['length']);if(_0x451f6b['length']<0x2)return null;const _0xdedfbe=_0x2d9461['indexOf']('_');if(_0xdedfbe<=0x0||_0xdedfbe>=_0x2d9461[_0x79238b(0xa4)]-0x1)return null;const _0xea2bae=_0x2d9461[_0x79238b(0x95)](0x0,_0xdedfbe);if(!isLikelySqlCode(_0xea2bae))return null;return{'sqlCode':_0xea2bae,'sqlName':_0x2d9461['slice'](_0xdedfbe+0x1)};}function isLikelySqlCode(_0x157e29){const _0x2de480=a291_0x36b4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2de480(0xa7)](_0x157e29);}
@@ -1 +1 @@
1
- (function(_0x1301fa,_0x3c2fad){const _0x400422=a264_0x4e8e,_0x3739d8=_0x1301fa();while(!![]){try{const _0x1510e6=parseInt(_0x400422(0x1dd))/0x1*(-parseInt(_0x400422(0x1df))/0x2)+parseInt(_0x400422(0x1d8))/0x3+parseInt(_0x400422(0x1da))/0x4+parseInt(_0x400422(0x1db))/0x5+-parseInt(_0x400422(0x1e1))/0x6*(-parseInt(_0x400422(0x1e4))/0x7)+parseInt(_0x400422(0x1d9))/0x8+parseInt(_0x400422(0x1e3))/0x9*(-parseInt(_0x400422(0x1e0))/0xa);if(_0x1510e6===_0x3c2fad)break;else _0x3739d8['push'](_0x3739d8['shift']());}catch(_0x206c2a){_0x3739d8['push'](_0x3739d8['shift']());}}}(a264_0x4fc3,0x840d3));import{readFile}from'node:fs/promises';import a264_0x297fe0 from'node:crypto';export function computeSqlContentHash(_0x34ea46){const _0x4b5fbe=a264_0x4e8e;return a264_0x297fe0['createHash'](_0x4b5fbe(0x1de))[_0x4b5fbe(0x1dc)](_0x34ea46)['digest']('hex');}function a264_0x4fc3(){const _0x47b40c=['2455176OiYszx','4893765pgIJeo','update','6oMOvha','md5','168106DZGtqm','30tbIhcE','745530fNpfNI','utf8','5217489hFLhLD','7ywRqtm','1671375tlwlvg','4083496wXTnZh'];a264_0x4fc3=function(){return _0x47b40c;};return a264_0x4fc3();}function a264_0x4e8e(_0x57e3de,_0x52da34){_0x57e3de=_0x57e3de-0x1d8;const _0x4fc3e9=a264_0x4fc3();let _0x4e8ec=_0x4fc3e9[_0x57e3de];return _0x4e8ec;}export async function computeSqlFileHash(_0x372c30){const _0x54a946=a264_0x4e8e,_0x3db966=await readFile(_0x372c30,_0x54a946(0x1e2));return computeSqlContentHash(_0x3db966);}
1
+ (function(_0x59cad6,_0xe05ddf){const _0xd19838=a292_0x2b37,_0x21161e=_0x59cad6();while(!![]){try{const _0xa87dc3=-parseInt(_0xd19838(0xbc))/0x1+parseInt(_0xd19838(0xc5))/0x2*(-parseInt(_0xd19838(0xc4))/0x3)+parseInt(_0xd19838(0xc3))/0x4*(parseInt(_0xd19838(0xc1))/0x5)+parseInt(_0xd19838(0xbf))/0x6*(-parseInt(_0xd19838(0xc7))/0x7)+parseInt(_0xd19838(0xc2))/0x8*(parseInt(_0xd19838(0xca))/0x9)+parseInt(_0xd19838(0xbb))/0xa+-parseInt(_0xd19838(0xc6))/0xb*(-parseInt(_0xd19838(0xbe))/0xc);if(_0xa87dc3===_0xe05ddf)break;else _0x21161e['push'](_0x21161e['shift']());}catch(_0x2b3caa){_0x21161e['push'](_0x21161e['shift']());}}}(a292_0x1cf5,0x6c350));function a292_0x1cf5(){const _0x164dfa=['md5','4199139SQRzGS','3171440EdPYmT','534428wyaItC','createHash','7498128YsDEIl','218628giTWFa','update','33795lyOrWx','8VxHHoX','48DzTTMS','7077HEZFjb','346TbdWqb','22mLqpQE','140ZgFGbt','hex'];a292_0x1cf5=function(){return _0x164dfa;};return a292_0x1cf5();}function a292_0x2b37(_0x4b05e1,_0x34e323){_0x4b05e1=_0x4b05e1-0xbb;const _0x1cf59a=a292_0x1cf5();let _0x2b37a8=_0x1cf59a[_0x4b05e1];return _0x2b37a8;}import{readFile}from'node:fs/promises';import a292_0x57d021 from'node:crypto';export function computeSqlContentHash(_0xc316c2){const _0xba0f50=a292_0x2b37;return a292_0x57d021[_0xba0f50(0xbd)](_0xba0f50(0xc9))[_0xba0f50(0xc0)](_0xc316c2)['digest'](_0xba0f50(0xc8));}export async function computeSqlFileHash(_0x155c3d){const _0x58c95b=await readFile(_0x155c3d,'utf8');return computeSqlContentHash(_0x58c95b);}
@@ -1 +1 @@
1
- (function(_0x5743f5,_0xf506da){const _0x14a7ee=a265_0x1e77,_0x9b9ac7=_0x5743f5();while(!![]){try{const _0x199630=parseInt(_0x14a7ee(0xc9))/0x1+-parseInt(_0x14a7ee(0xc3))/0x2+-parseInt(_0x14a7ee(0xc8))/0x3*(-parseInt(_0x14a7ee(0xc4))/0x4)+-parseInt(_0x14a7ee(0xd0))/0x5+-parseInt(_0x14a7ee(0xcc))/0x6*(parseInt(_0x14a7ee(0xd4))/0x7)+-parseInt(_0x14a7ee(0xcf))/0x8*(parseInt(_0x14a7ee(0xcb))/0x9)+-parseInt(_0x14a7ee(0xcd))/0xa*(-parseInt(_0x14a7ee(0xc5))/0xb);if(_0x199630===_0xf506da)break;else _0x9b9ac7['push'](_0x9b9ac7['shift']());}catch(_0x154c88){_0x9b9ac7['push'](_0x9b9ac7['shift']());}}}(a265_0x4d40,0x7a1a3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a265_0x1e77(_0x23166e,_0x24ad6f){_0x23166e=_0x23166e-0xc3;const _0x4d40fe=a265_0x4d40();let _0x1e779d=_0x4d40fe[_0x23166e];return _0x1e779d;}function a265_0x4d40(){const _0x1f738a=['9rJbwUT','1266AzpWmQ','5930oNORlG','code','1799864xRBZvi','3606725MjtVSt','sqlRoot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','3136lZsNIS','\x22.\x20','1938588iPTmOS','3841476RRUxbH','22264ZYeAuB','\x22\x20vs\x20lock\x20\x22','lastSync','3HAZjwU','349680GPNVmT','ENOENT'];a265_0x4d40=function(){return _0x1f738a;};return a265_0x4d40();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1ddb4a,_0x5eca6a,_0x4a952c,_0x24a020){const _0x39f9cd=a265_0x1e77,_0x2442e8=_0x1ddb4a??createEmptySqlLock();let _0x54574f=_0x2442e8[_0x39f9cd(0xd3)][_0x5eca6a];if(!_0x54574f)return _0x54574f={'sqlRoot':_0x4a952c,'lastSync':'','sqls':{}},_0x2442e8[_0x39f9cd(0xd3)][_0x5eca6a]=_0x54574f,{'lockData':_0x2442e8,'appLock':_0x54574f};if(!_0x54574f[_0x39f9cd(0xd1)])_0x54574f['sqlRoot']=_0x4a952c;else{if(_0x54574f[_0x39f9cd(0xd1)]!==_0x4a952c)throw new Error(_0x24a020+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x4a952c+_0x39f9cd(0xc6)+_0x54574f[_0x39f9cd(0xd1)]+_0x39f9cd(0xd5)+_0x39f9cd(0xd2));}return!_0x54574f['sqls']&&(_0x54574f['sqls']={}),!_0x54574f['lastSync']&&(_0x54574f[_0x39f9cd(0xc7)]=''),{'lockData':_0x2442e8,'appLock':_0x54574f};}export async function readSqlLockFile(_0x506e42){const _0x541411=a265_0x1e77;try{const _0x1ffcad=await readFile(_0x506e42,'utf8');return JSON['parse'](_0x1ffcad);}catch(_0x51c70b){if(_0x51c70b[_0x541411(0xce)]===_0x541411(0xca))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x51c70b));}}export async function writeSqlLockFile(_0x57e72a,_0x59f2cc){await mkdir(dirname(_0x57e72a),{'recursive':!![]}),await writeFile(_0x57e72a,JSON['stringify'](_0x59f2cc,null,0x2),'utf8');}
1
+ (function(_0x27802d,_0x5ee995){const _0x1d8cfa=a293_0x4419,_0x2d45a9=_0x27802d();while(!![]){try{const _0x14c1fb=parseInt(_0x1d8cfa(0x153))/0x1*(-parseInt(_0x1d8cfa(0x148))/0x2)+parseInt(_0x1d8cfa(0x158))/0x3+-parseInt(_0x1d8cfa(0x150))/0x4+parseInt(_0x1d8cfa(0x14a))/0x5*(-parseInt(_0x1d8cfa(0x145))/0x6)+parseInt(_0x1d8cfa(0x146))/0x7*(parseInt(_0x1d8cfa(0x152))/0x8)+-parseInt(_0x1d8cfa(0x151))/0x9*(-parseInt(_0x1d8cfa(0x144))/0xa)+-parseInt(_0x1d8cfa(0x159))/0xb*(-parseInt(_0x1d8cfa(0x156))/0xc);if(_0x14c1fb===_0x5ee995)break;else _0x2d45a9['push'](_0x2d45a9['shift']());}catch(_0x665b55){_0x2d45a9['push'](_0x2d45a9['shift']());}}}(a293_0x16c6,0x19934));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0xd641d3,_0x58968f,_0x395b8c,_0xc2eff3){const _0x4d0016=a293_0x4419,_0x1c7baf=_0xd641d3??createEmptySqlLock();let _0x179814=_0x1c7baf['apps'][_0x58968f];if(!_0x179814)return _0x179814={'sqlRoot':_0x395b8c,'lastSync':'','sqls':{}},_0x1c7baf[_0x4d0016(0x14b)][_0x58968f]=_0x179814,{'lockData':_0x1c7baf,'appLock':_0x179814};if(!_0x179814['sqlRoot'])_0x179814[_0x4d0016(0x14f)]=_0x395b8c;else{if(_0x179814['sqlRoot']!==_0x395b8c)throw new Error(_0xc2eff3+_0x4d0016(0x147)+_0x395b8c+'\x22\x20vs\x20lock\x20\x22'+_0x179814['sqlRoot']+_0x4d0016(0x14c)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x179814[_0x4d0016(0x143)]&&(_0x179814['sqls']={}),!_0x179814[_0x4d0016(0x14e)]&&(_0x179814[_0x4d0016(0x14e)]=''),{'lockData':_0x1c7baf,'appLock':_0x179814};}export async function readSqlLockFile(_0x35e826){const _0x5e27c6=a293_0x4419;try{const _0x57c285=await readFile(_0x35e826,_0x5e27c6(0x155));return JSON[_0x5e27c6(0x154)](_0x57c285);}catch(_0x22a031){if(_0x22a031['code']===_0x5e27c6(0x149))return null;throw new Error(_0x5e27c6(0x157)+String(_0x22a031));}}function a293_0x16c6(){const _0x4931ed=['618876WqczIe','11jYYBou','sqls','10HGLYnb','42dvXzXq','119LhcurC',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','2fUUDbO','ENOENT','127450jkhHbm','apps','\x22.\x20','stringify','lastSync','sqlRoot','565716fUVrFv','1127799vHvOHT','43864cHIBUA','158870FFjhHd','parse','utf8','1904052Uwzzpz','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'];a293_0x16c6=function(){return _0x4931ed;};return a293_0x16c6();}function a293_0x4419(_0x10e56b,_0x4ada2c){_0x10e56b=_0x10e56b-0x143;const _0x16c631=a293_0x16c6();let _0x4419f6=_0x16c631[_0x10e56b];return _0x4419f6;}export async function writeSqlLockFile(_0x5c145e,_0x5771db){const _0x1de471=a293_0x4419;await mkdir(dirname(_0x5c145e),{'recursive':!![]}),await writeFile(_0x5c145e,JSON[_0x1de471(0x14d)](_0x5771db,null,0x2),_0x1de471(0x155));}
@@ -1 +1 @@
1
- function a267_0x3ae8(){const _0x2d477b=['1058344atukCY','.sql','1317012RacXdX','trim','1571256SJAvOj','457406ENoSbV','mybatisXml','427lpOZho','replace','1612sFXvyo','sql','10895kjpyxl','unknown-sql','4yyjICu','1671210VVHBjm','.xml','unknown-db','db-','68844OFyTLO'];a267_0x3ae8=function(){return _0x2d477b;};return a267_0x3ae8();}(function(_0x175cec,_0x61443c){const _0x469508=a267_0x5510,_0x1cb276=_0x175cec();while(!![]){try{const _0x54b960=-parseInt(_0x469508(0x126))/0x1+parseInt(_0x469508(0x11b))/0x2*(parseInt(_0x469508(0x123))/0x3)+-parseInt(_0x469508(0x117))/0x4*(parseInt(_0x469508(0x119))/0x5)+parseInt(_0x469508(0x120))/0x6*(parseInt(_0x469508(0x115))/0x7)+-parseInt(_0x469508(0x121))/0x8+parseInt(_0x469508(0x125))/0x9+parseInt(_0x469508(0x11c))/0xa;if(_0x54b960===_0x61443c)break;else _0x1cb276['push'](_0x1cb276['shift']());}catch(_0x39d880){_0x1cb276['push'](_0x1cb276['shift']());}}}(a267_0x3ae8,0x6e4cf));export function detectSqlMode(_0x191083){const _0x45919c=a267_0x5510,_0x1efbbd=_0x191083['trimStart']();if(/^<(select|insert|update|delete)\b/i['test'](_0x1efbbd))return _0x45919c(0x127);return _0x45919c(0x118);}export function getSqlFileExtension(_0x566426){const _0xb80006=a267_0x5510;return _0x566426===_0xb80006(0x127)?_0xb80006(0x11d):_0xb80006(0x122);}export function buildDefaultSqlFileName(_0x567999,_0x2794cc){return''+_0x567999+getSqlFileExtension(_0x2794cc);}export function sanitizeSqlPathSegment(_0x3c6f3f,_0x3888de){const _0x85d534=a267_0x5510,_0x4857c6=String(_0x3c6f3f??'')[_0x85d534(0x124)](),_0x120773=_0x4857c6['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')['replace'](/-+/g,'-')[_0x85d534(0x116)](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x120773||_0x3888de;}export function buildDbDirectoryName(_0x2de34b,_0x5d0d6a){const _0x5f576c=a267_0x5510;return sanitizeSqlPathSegment(_0x2de34b,_0x5d0d6a!=null?_0x5f576c(0x11f)+_0x5d0d6a:_0x5f576c(0x11e));}function a267_0x5510(_0x4c9518,_0x453f00){_0x4c9518=_0x4c9518-0x115;const _0x3ae848=a267_0x3ae8();let _0x551000=_0x3ae848[_0x4c9518];return _0x551000;}export function buildSqlRelativePath(_0x3d2524,_0x14a733,_0x99527a,_0x59f905,_0x3dc640){const _0x395b16=a267_0x5510,_0x273243=buildDbDirectoryName(_0x99527a,_0x3dc640),_0x288737=sanitizeSqlPathSegment(_0x3d2524,_0x395b16(0x11a)),_0x5d0c4d=sanitizeSqlPathSegment(_0x14a733,_0x288737);return _0x273243+'/'+_0x288737+'_'+_0x5d0c4d+getSqlFileExtension(_0x59f905);}
1
+ (function(_0x44c65a,_0x6afc9d){const _0x4b4516=a295_0x1689,_0xfaaeda=_0x44c65a();while(!![]){try{const _0x3a26c1=parseInt(_0x4b4516(0xcd))/0x1+parseInt(_0x4b4516(0xc9))/0x2+parseInt(_0x4b4516(0xce))/0x3*(-parseInt(_0x4b4516(0xcf))/0x4)+parseInt(_0x4b4516(0xd3))/0x5*(parseInt(_0x4b4516(0xd4))/0x6)+-parseInt(_0x4b4516(0xca))/0x7+parseInt(_0x4b4516(0xd2))/0x8*(parseInt(_0x4b4516(0xc6))/0x9)+-parseInt(_0x4b4516(0xd5))/0xa;if(_0x3a26c1===_0x6afc9d)break;else _0xfaaeda['push'](_0xfaaeda['shift']());}catch(_0x442e4c){_0xfaaeda['push'](_0xfaaeda['shift']());}}}(a295_0x5d66,0xd594f));export function detectSqlMode(_0x43e949){const _0x4fbae0=a295_0x1689,_0x133670=_0x43e949[_0x4fbae0(0xcb)]();if(/^<(select|insert|update|delete)\b/i[_0x4fbae0(0xd7)](_0x133670))return _0x4fbae0(0xcc);return _0x4fbae0(0xc7);}export function getSqlFileExtension(_0x46dcc8){const _0x293bcc=a295_0x1689;return _0x46dcc8==='mybatisXml'?_0x293bcc(0xd1):'.sql';}function a295_0x5d66(){const _0x3969e9=['trimStart','mybatisXml','515436ocMXQN','432885tgOqoA','28LjonrJ','unknown-db','.xml','8QyfUtF','3854140pmPJRv','12NDQPjO','17496880PZXymd','db-','test','3670011bzdOcK','sql','replace','3144128qwJXXK','2816457QRlRqr'];a295_0x5d66=function(){return _0x3969e9;};return a295_0x5d66();}function a295_0x1689(_0x208414,_0x143f5f){_0x208414=_0x208414-0xc6;const _0x5d66b5=a295_0x5d66();let _0x1689f0=_0x5d66b5[_0x208414];return _0x1689f0;}export function buildDefaultSqlFileName(_0x48e35c,_0x50e59b){return''+_0x48e35c+getSqlFileExtension(_0x50e59b);}export function sanitizeSqlPathSegment(_0x287e4d,_0x565c15){const _0x4fdd0f=a295_0x1689,_0x3ced88=String(_0x287e4d??'')['trim'](),_0x51d24f=_0x3ced88[_0x4fdd0f(0xc8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4fdd0f(0xc8)](/\s+/g,'-')[_0x4fdd0f(0xc8)](/-+/g,'-')[_0x4fdd0f(0xc8)](/^\.+/,'')[_0x4fdd0f(0xc8)](/\.+$/,'')['replace'](/^-+/,'')[_0x4fdd0f(0xc8)](/-+$/,'');return _0x51d24f||_0x565c15;}export function buildDbDirectoryName(_0x207cc5,_0x6669ed){const _0x26fab1=a295_0x1689;return sanitizeSqlPathSegment(_0x207cc5,_0x6669ed!=null?_0x26fab1(0xd6)+_0x6669ed:_0x26fab1(0xd0));}export function buildSqlRelativePath(_0x2361a2,_0x1c10c2,_0x2963d4,_0x557c17,_0x460a0e){const _0x8424a6=buildDbDirectoryName(_0x2963d4,_0x460a0e),_0x28948e=sanitizeSqlPathSegment(_0x2361a2,'unknown-sql'),_0x1a109b=sanitizeSqlPathSegment(_0x1c10c2,_0x28948e);return _0x8424a6+'/'+_0x28948e+'_'+_0x1a109b+getSqlFileExtension(_0x557c17);}
@@ -1 +1 @@
1
- const a268_0x18081a=a268_0x36b4;(function(_0x4804c5,_0x479d50){const _0x4792b9=a268_0x36b4,_0x59c1cb=_0x4804c5();while(!![]){try{const _0x2d267a=parseInt(_0x4792b9(0x135))/0x1+parseInt(_0x4792b9(0xf5))/0x2+-parseInt(_0x4792b9(0x114))/0x3*(parseInt(_0x4792b9(0x11f))/0x4)+-parseInt(_0x4792b9(0x136))/0x5*(parseInt(_0x4792b9(0x13a))/0x6)+-parseInt(_0x4792b9(0x116))/0x7*(parseInt(_0x4792b9(0xfd))/0x8)+parseInt(_0x4792b9(0x12b))/0x9+-parseInt(_0x4792b9(0x11a))/0xa*(-parseInt(_0x4792b9(0xed))/0xb);if(_0x2d267a===_0x479d50)break;else _0x59c1cb['push'](_0x59c1cb['shift']());}catch(_0x139d9f){_0x59c1cb['push'](_0x59c1cb['shift']());}}}(a268_0x3a79,0x7b22e));const MYBATIS_OUTER_TAGS=new Map([[a268_0x18081a(0x11b),a268_0x18081a(0x113)],[a268_0x18081a(0x109),a268_0x18081a(0x127)],['update',a268_0x18081a(0x11c)],['delete','DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a268_0x18081a(0xf3),'foreach',a268_0x18081a(0x110),'when',a268_0x18081a(0x124),'trim','set',a268_0x18081a(0xf8),a268_0x18081a(0x129),a268_0x18081a(0xe5)]),MYBATIS_BRANCH_TAGS=new Set(['if','foreach','choose',a268_0x18081a(0x13d),a268_0x18081a(0x124)]);export const MYBATIS_DYNAMIC_START_MARKER=a268_0x18081a(0x134);export const MYBATIS_DYNAMIC_END_MARKER=a268_0x18081a(0x137);export const MYBATIS_INCLUDE_MARKER=a268_0x18081a(0x10c);const UNRESOLVED_SQL_FRAGMENT=a268_0x18081a(0xf1),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a268_0x18081a(0x101)+[...MYBATIS_OUTER_TAGS[a268_0x18081a(0x121)]()][a268_0x18081a(0xec)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4a9bfb){const _0x2045ec=a268_0x18081a,_0x2c722e=typeof _0x4a9bfb===_0x2045ec(0x111)?_0x4a9bfb:'';if(!startsWithMybatisStatementWrapper(_0x2c722e))return{'sql':_0x2c722e,'mode':_0x2045ec(0x107)};let _0x28868f=0x0,_0x39e1e5='',_0x2b04bd,_0x5894a4=![],_0x54c4d1=![];const _0x341686=[];while(_0x28868f<_0x2c722e[_0x2045ec(0x13c)]){if(_0x2c722e[_0x2045ec(0x118)](_0x2045ec(0x115),_0x28868f)){const _0x2242e5=_0x2c722e[_0x2045ec(0x12a)](_0x2045ec(0x131),_0x28868f+0x4);if(_0x2242e5<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x39e1e5+='\x20',_0x28868f=_0x2242e5+0x3;continue;}if(_0x2c722e[_0x2045ec(0x118)]('<![CDATA[',_0x28868f)){if(!_0x5894a4||_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xe8));const _0x2f00e5=_0x2c722e[_0x2045ec(0x12a)](']]>',_0x28868f+0x9);if(_0x2f00e5<0x0)return invalidMybatisSource('Unterminated\x20CDATA\x20section.');_0x39e1e5+=_0x2c722e[_0x2045ec(0x122)](_0x28868f+0x9,_0x2f00e5),_0x28868f=_0x2f00e5+0x3;continue;}if(_0x2c722e[_0x2045ec(0x118)]('<?',_0x28868f)){if(_0x5894a4)return invalidMybatisSource(_0x2045ec(0x120));const _0x4267c6=_0x2c722e[_0x2045ec(0x12a)]('?>',_0x28868f+0x2);if(_0x4267c6<0x0)return invalidMybatisSource(_0x2045ec(0x125));_0x39e1e5+='\x20',_0x28868f=_0x4267c6+0x2;continue;}if(_0x2c722e[_0x28868f]!=='<'){const _0x514945=_0x2c722e[_0x2045ec(0x12a)]('<',_0x28868f),_0x2c1ca9=_0x514945<0x0?_0x2c722e['length']:_0x514945,_0x44b200=_0x2c722e['slice'](_0x28868f,_0x2c1ca9);if((!_0x5894a4||_0x54c4d1)&&_0x44b200[_0x2045ec(0xe7)]())return invalidMybatisSource(_0x2045ec(0xe4));if(_0x5894a4&&!_0x54c4d1){const _0x230b6a=decodeXmlEntities(_0x44b200);if(_0x230b6a===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x39e1e5+=_0x230b6a;}else _0x39e1e5+='\x20';_0x28868f=_0x2c1ca9;continue;}const _0x156529=findXmlTagEnd(_0x2c722e,_0x28868f);if(_0x156529<0x0)return invalidMybatisSource(_0x2045ec(0x100));const _0x5d100b=_0x2c722e[_0x2045ec(0x122)](_0x28868f,_0x156529+0x1),_0x535eac=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x5d100b);if(!_0x535eac)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20tag.');const _0x511c81=_0x535eac[0x1]==='/',_0x5b16aa=_0x535eac[0x2]??'',_0xdebc83=_0x5b16aa[_0x2045ec(0x132)](),_0x553bf8=_0x535eac[0x3]??'',_0x1d2d1f=_0x535eac[0x4]==='/',_0x38c9a5=MYBATIS_OUTER_TAGS[_0x2045ec(0xf6)](_0xdebc83);if(!_0x38c9a5&&!MYBATIS_DYNAMIC_TAGS[_0x2045ec(0x102)](_0xdebc83))return invalidMybatisSource(_0x2045ec(0x12d)+_0xdebc83+'>.');if(!_0x38c9a5&&_0x5b16aa!==_0xdebc83)return invalidMybatisSource(_0x2045ec(0x10f)+_0x5b16aa+'>.');if(_0x511c81){if(_0x553bf8[_0x2045ec(0xe7)]()||_0x1d2d1f)return invalidMybatisSource(_0x2045ec(0x12f)+_0x5b16aa+'>.');const _0x272851=_0x341686['at'](-0x1);if(!_0x272851||(_0x272851['outer']?_0x272851[_0x2045ec(0x103)]!==_0xdebc83:_0x272851[_0x2045ec(0x104)]!==_0x5b16aa))return invalidMybatisSource('Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x5b16aa+'>.');_0x341686[_0x2045ec(0xf9)]();if(_0x272851[_0x2045ec(0x140)])_0x54c4d1=!![];_0x39e1e5+=MYBATIS_BRANCH_TAGS[_0x2045ec(0x102)](_0xdebc83)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x553bf8))return invalidMybatisSource(_0x2045ec(0x117)+_0x5b16aa+'>.');if(_0xdebc83===_0x2045ec(0xe5)&&(!_0x1d2d1f||_0x341686['at'](-0x1)?.[_0x2045ec(0x103)]!=='include'))return invalidMybatisSource(_0x2045ec(0xe9));if(_0x38c9a5){if(_0x5894a4||_0x341686[_0x2045ec(0x13c)]>0x0)return invalidMybatisSource(_0x2045ec(0xe6));_0x5894a4=!![],_0x54c4d1=_0x1d2d1f,_0x2b04bd=_0x38c9a5;}else{if(!_0x5894a4||_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xff)+_0x5b16aa+'>.');}_0x39e1e5+=_0xdebc83===_0x2045ec(0xf3)?'\x20WHERE\x20':_0xdebc83===_0x2045ec(0x108)?_0x2045ec(0xf2):_0xdebc83===_0x2045ec(0x129)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0xdebc83)&&!_0x1d2d1f?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x1d2d1f&&_0x341686[_0x2045ec(0xeb)]({'rawName':_0x5b16aa,'tagName':_0xdebc83,'outer':!!_0x38c9a5});}_0x28868f=_0x156529+0x1;}if(_0x341686[_0x2045ec(0x13c)]>0x0)return invalidMybatisSource(_0x2045ec(0x11e)+_0x341686['at'](-0x1)?.[_0x2045ec(0x104)]+'>.');if(!_0x5894a4||!_0x54c4d1)return invalidMybatisSource(_0x2045ec(0xf4));return{'sql':_0x39e1e5[_0x2045ec(0xe7)](),'mode':_0x2045ec(0xf7),..._0x2b04bd?{'statementType':_0x2b04bd}:{}};}function hasWellFormedXmlAttributes(_0x21220a){const _0x23c268=a268_0x18081a;let _0xe9f684=0x0;const _0x955e00=new Set();while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]){while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]&&/\s/['test'](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;if(_0xe9f684>=_0x21220a['length'])return!![];const _0x31bef6=/^[A-Za-z_:][\w:.-]*/[_0x23c268(0x126)](_0x21220a[_0x23c268(0x122)](_0xe9f684)),_0x3d6458=_0x31bef6?.[0x0];if(!_0x3d6458||_0x955e00[_0x23c268(0x102)](_0x3d6458))return![];_0x955e00[_0x23c268(0x10e)](_0x3d6458),_0xe9f684+=_0x3d6458[_0x23c268(0x13c)];while(_0xe9f684<_0x21220a['length']&&/\s/['test'](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;if(_0x21220a[_0xe9f684]!=='=')return![];_0xe9f684+=0x1;while(_0xe9f684<_0x21220a[_0x23c268(0x13c)]&&/\s/[_0x23c268(0x13b)](_0x21220a[_0xe9f684]??''))_0xe9f684+=0x1;const _0x5db30c=_0x21220a[_0xe9f684];if(_0x5db30c!=='\x22'&&_0x5db30c!=='\x27')return![];_0xe9f684+=0x1;const _0xb679cf=_0x21220a[_0x23c268(0x12a)](_0x5db30c,_0xe9f684);if(_0xb679cf<0x0)return![];if(decodeXmlEntities(_0x21220a[_0x23c268(0x122)](_0xe9f684,_0xb679cf))===null)return![];_0xe9f684=_0xb679cf+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x5a0591){const _0x42ddc2=a268_0x18081a;let _0x2e4ecd=0x0;const _0x457b82=()=>{const _0x3277fd=a268_0x36b4;while(_0x2e4ecd<_0x5a0591['length']&&/\s/[_0x3277fd(0x13b)](_0x5a0591[_0x2e4ecd]??''))_0x2e4ecd+=0x1;};_0x457b82();while(_0x2e4ecd<_0x5a0591['length']){if(_0x5a0591['startsWith']('<!--',_0x2e4ecd)){const _0x2ed3c6=_0x5a0591[_0x42ddc2(0x12a)]('-->',_0x2e4ecd+0x4);if(_0x2ed3c6<0x0)return!![];_0x2e4ecd=_0x2ed3c6+0x3,_0x457b82();continue;}if(_0x5a0591[_0x42ddc2(0x118)]('<?',_0x2e4ecd)){const _0x442bbe=_0x5a0591[_0x42ddc2(0x12a)]('?>',_0x2e4ecd+0x2);if(_0x442bbe<0x0)return!![];_0x2e4ecd=_0x442bbe+0x2,_0x457b82();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x42ddc2(0x13b)](_0x5a0591['slice'](_0x2e4ecd));}function invalidMybatisSource(_0x1d8e30){const _0x201337=a268_0x18081a;return{'sql':'','mode':_0x201337(0xf7),'error':_0x1d8e30};}function findXmlTagEnd(_0x56da9a,_0x251aa6){const _0x100f4e=a268_0x18081a;let _0x569f8d;for(let _0x4338ea=_0x251aa6+0x1;_0x4338ea<_0x56da9a[_0x100f4e(0x13c)];_0x4338ea+=0x1){const _0x4d13eb=_0x56da9a[_0x4338ea];if(_0x569f8d){if(_0x4d13eb===_0x569f8d)_0x569f8d=undefined;continue;}if(_0x4d13eb==='\x22'||_0x4d13eb==='\x27'){_0x569f8d=_0x4d13eb;continue;}if(_0x4d13eb==='>')return _0x4338ea;}return-0x1;}function decodeXmlEntities(_0x3de34d){let _0x1836d4=![];const _0x5d4be7=_0x3de34d['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0xaa342e=>{const _0x3cb016=a268_0x36b4;if(_0xaa342e===_0x3cb016(0x130))return'<';if(_0xaa342e===_0x3cb016(0x10d))return'>';if(_0xaa342e===_0x3cb016(0x128))return'\x22';if(_0xaa342e===_0x3cb016(0x10a))return'\x27';if(_0xaa342e==='&amp;')return'&';const _0x5b3b3a=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x3cb016(0x126)](_0xaa342e);if(_0x5b3b3a){const _0xa72075=_0x5b3b3a[0x1],_0x206354=_0x5b3b3a[0x2],_0x2758c1=Number[_0x3cb016(0x10b)](_0xa72075??_0x206354??'',_0xa72075?0x10:0xa);if(isValidXmlCharacter(_0x2758c1))return String['fromCodePoint'](_0x2758c1);}return _0x1836d4=!![],'';});return _0x1836d4?null:_0x5d4be7;}function isValidXmlCharacter(_0x5814d4){return _0x5814d4===0x9||_0x5814d4===0xa||_0x5814d4===0xd||_0x5814d4>=0x20&&_0x5814d4<=0xd7ff||_0x5814d4>=0xe000&&_0x5814d4<=0xfffd||_0x5814d4>=0x10000&&_0x5814d4<=0x10ffff;}function a268_0x3a79(){const _0x3a101f=['include','indexOf','1350567DCNwss','error','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','&lt;','-->','toLowerCase','match','__RABETBASE_MYBATIS_DYNAMIC_START__','971723SaRGhw','3385wsfOGy','__RABETBASE_MYBATIS_DYNAMIC_END__','\x20with\x20parameters:\x20','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','5550ZWjxfu','test','length','when','DELETE','WITH','outer','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','property','Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.','trim','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','unknown\x20table(s)','push','join','66nMIvYf','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','includes','replaceAll','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','\x20SET\x20','where','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','1843232CFnehi','get','mybatisXml','bind','pop','UNKNOWN','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','replace','1973096hnuWPk','split','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','Unterminated\x20MyBatis\x20XML\x20tag.','^<\x5cs*(?:','has','tagName','rawName','matchAll','Unable\x20to\x20detect\x20SQL\x20type.\x20','sql','set','insert','&apos;','parseInt','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','&gt;','add','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','choose','string','type','SELECT','942MvDjbf','<!--','7JinfZd','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','startsWith','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','101750IbrwdK','select','UPDATE','DDL','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','9264bxEeVk','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','keys','slice','statementType','otherwise','Unterminated\x20XML\x20declaration.','exec','INSERT','&quot;'];a268_0x3a79=function(){return _0x3a101f;};return a268_0x3a79();}export function detectSqlType(_0x5da672){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5da672));}function detectNormalizedSqlType(_0x5bad0d){const _0x38083e=a268_0x18081a;if(_0x5bad0d[_0x38083e(0x12c)])return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![],'reason':_0x5bad0d[_0x38083e(0x12c)]};if(!_0x5bad0d[_0x38083e(0x107)]['trim']())return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x3fbd3f=stripStaticAnalysisMarkers(_0x5bad0d['sql'])[_0x38083e(0xfc)](/#\{[^}]*\}/g,'?')[_0x38083e(0xfc)](/\$\{[^}]*\}/g,'?')[_0x38083e(0xfc)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x38083e(0xe7)](),_0x4a3b16=_0x3fbd3f[_0x38083e(0xfe)]('\x0a');let _0x4434db='';for(const _0x4f97ac of _0x4a3b16){const _0x14ba93=_0x4f97ac['trim']();if(!_0x14ba93||_0x14ba93[_0x38083e(0x118)]('--')||_0x14ba93['startsWith']('/*'))continue;_0x4434db=_0x14ba93;break;}const _0x858642=_0x4434db['toUpperCase'](),_0x505c39=_0x5bad0d[_0x38083e(0x123)],_0x178292=maskSqlTextForBlockedKeywordScan(_0x3fbd3f),_0x533980=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x178292);if(_0x505c39===_0x38083e(0x113)||!_0x505c39&&(_0x858642['startsWith'](_0x38083e(0x113))||_0x858642[_0x38083e(0x118)](_0x38083e(0x13f)))){const _0x1ee446=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x38083e(0x13b)](_0x3fbd3f);return{'type':'SELECT','isSelectOnly':!_0x1ee446,'isDangerous':_0x1ee446,'reason':_0x1ee446?_0x38083e(0x139):undefined};}if(_0x505c39===_0x38083e(0x127)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x127)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x533980,'reason':_0x533980?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0x505c39===_0x38083e(0x11c)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x11c)))return{'type':_0x38083e(0x11c),'isSelectOnly':![],'isDangerous':_0x533980,'reason':_0x533980?_0x38083e(0x12e):undefined};if(_0x505c39===_0x38083e(0x13e)||!_0x505c39&&_0x858642[_0x38083e(0x118)](_0x38083e(0x13e)))return{'type':_0x38083e(0x13e),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x38083e(0x13b)](_0x858642))return{'type':_0x38083e(0x11d),'isSelectOnly':![],'isDangerous':!![],'reason':_0x38083e(0x119)};return{'type':_0x38083e(0xfa),'isSelectOnly':![],'isDangerous':![]};}function a268_0x36b4(_0x246316,_0x96fa64){_0x246316=_0x246316-0xe4;const _0x3a79d1=a268_0x3a79();let _0x36b4b6=_0x3a79d1[_0x246316];return _0x36b4b6;}function stripStaticAnalysisMarkers(_0x2be65c){const _0x489b12=a268_0x18081a;return _0x2be65c[_0x489b12(0xf0)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x489b12(0xf0)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x32c0dc){const _0x2192c7=a268_0x18081a;return _0x32c0dc[_0x2192c7(0xfc)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x2192c7(0xfc)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x2192c7(0xfc)](/--.*$/gm,'\x20')[_0x2192c7(0xfc)](/#.*$/gm,'\x20')[_0x2192c7(0xfc)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x5a8240){const _0xbf0a5f=a268_0x18081a,_0x364621=_0x5a8240[_0xbf0a5f(0xfc)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0xbf0a5f(0xfc)](/'[^']*'/g,'\x27\x27')[_0xbf0a5f(0xfc)](/--.*$/gm,'')[_0xbf0a5f(0xfc)](/\/\*[\s\S]*?\*\//g,''),_0x34034b=[],_0xa6d260=_0x364621[_0xbf0a5f(0x133)](/FROM\s+([^\s,)(]+)/i);addTable(_0x34034b,_0xa6d260?.[0x1]);for(const _0x41438b of _0x364621[_0xbf0a5f(0x105)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x34034b,_0x41438b[0x1]);}const _0x44621a=_0x364621['match'](/INTO\s+([^\s(]+)/i);addTable(_0x34034b,_0x44621a?.[0x1]);const _0x56f184=_0x364621['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x34034b,_0x56f184?.[0x1]),_0x34034b;}function addTable(_0x7d3b52,_0x15c6f4){const _0x578c80=a268_0x18081a,_0x109159=_0x15c6f4?.[_0x578c80(0xfc)](/[`"]/g,'');_0x109159&&_0x109159!==UNRESOLVED_SQL_FRAGMENT&&!_0x7d3b52[_0x578c80(0xef)](_0x109159)&&_0x7d3b52[_0x578c80(0xeb)](_0x109159);}function extractParameters(_0x257c39){const _0x381b32=a268_0x18081a,_0x2b7254=new Set();for(const _0x3c6273 of _0x257c39['matchAll'](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x3c6273[0x1])_0x2b7254[_0x381b32(0x10e)](_0x3c6273[0x1]);}return Array['from'](_0x2b7254);}export function validateSql(_0x2772e4){const _0x302ee0=a268_0x18081a,_0x5b316a=normalizeSqlForStaticAnalysis(_0x2772e4),_0x44e483=detectNormalizedSqlType(_0x5b316a),_0x22889f=stripStaticAnalysisMarkers(_0x5b316a['sql']),_0x1a1477=_0x5b316a[_0x302ee0(0x12c)]?[]:extractTables(_0x22889f),_0x3af217=_0x5b316a[_0x302ee0(0x12c)]?[]:extractParameters(_0x22889f);if(_0x44e483['isDangerous'])return{'valid':![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x44e483['reason']||_0x44e483[_0x302ee0(0x112)]+_0x302ee0(0xfb)};if(_0x44e483[_0x302ee0(0x112)]===_0x302ee0(0xfa))return{'valid':![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x5b316a[_0x302ee0(0x12c)]?_0x302ee0(0x106)+_0x5b316a[_0x302ee0(0x12c)]:_0x302ee0(0xee)};return{'valid':!![],'sqlType':_0x44e483,'tables':_0x1a1477,'parameters':_0x3af217,'message':_0x44e483[_0x302ee0(0x112)]+'\x20query\x20targeting\x20'+(_0x1a1477[_0x302ee0(0x13c)]?_0x1a1477[_0x302ee0(0xec)](',\x20'):_0x302ee0(0xea))+(_0x3af217[_0x302ee0(0x13c)]?_0x302ee0(0x138)+_0x3af217['join'](',\x20'):'')};}
1
+ const a296_0x4caa84=a296_0x5ad5;(function(_0x4d578c,_0xbe92d3){const _0x4b35af=a296_0x5ad5,_0x2ed514=_0x4d578c();while(!![]){try{const _0x25adc1=-parseInt(_0x4b35af(0x117))/0x1+-parseInt(_0x4b35af(0x109))/0x2+-parseInt(_0x4b35af(0xf6))/0x3+-parseInt(_0x4b35af(0x10e))/0x4*(-parseInt(_0x4b35af(0x10a))/0x5)+-parseInt(_0x4b35af(0xef))/0x6+parseInt(_0x4b35af(0xfc))/0x7+-parseInt(_0x4b35af(0xf9))/0x8*(-parseInt(_0x4b35af(0x130))/0x9);if(_0x25adc1===_0xbe92d3)break;else _0x2ed514['push'](_0x2ed514['shift']());}catch(_0x525745){_0x2ed514['push'](_0x2ed514['shift']());}}}(a296_0x2af3,0x6dbd1));const MYBATIS_OUTER_TAGS=new Map([['select','SELECT'],['insert',a296_0x4caa84(0x106)],[a296_0x4caa84(0x115),'UPDATE'],[a296_0x4caa84(0xea),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where','foreach',a296_0x4caa84(0x129),a296_0x4caa84(0xf4),a296_0x4caa84(0x126),a296_0x4caa84(0x10f),a296_0x4caa84(0x125),a296_0x4caa84(0xdc),'include',a296_0x4caa84(0x114)]),MYBATIS_BRANCH_TAGS=new Set(['if',a296_0x4caa84(0xe7),'choose',a296_0x4caa84(0xf4),a296_0x4caa84(0x126)]);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a296_0x4caa84(0xe8);export const MYBATIS_INCLUDE_MARKER=a296_0x4caa84(0xed);const UNRESOLVED_SQL_FRAGMENT=a296_0x4caa84(0xe2),MYBATIS_OUTER_TAG_PATTERN=new RegExp(a296_0x4caa84(0x122)+[...MYBATIS_OUTER_TAGS[a296_0x4caa84(0x12a)]()][a296_0x4caa84(0xde)]('|')+a296_0x4caa84(0x116),'i');export function normalizeSqlForStaticAnalysis(_0x85a518){const _0x392382=a296_0x4caa84,_0x3baf08=typeof _0x85a518==='string'?_0x85a518:'';if(!startsWithMybatisStatementWrapper(_0x3baf08))return{'sql':_0x3baf08,'mode':_0x392382(0x108)};let _0x51e8ee=0x0,_0x23ab9e='',_0x5d99ea,_0x318a10=![],_0x2ff84e=![];const _0x5610a5=[];while(_0x51e8ee<_0x3baf08[_0x392382(0xdf)]){if(_0x3baf08['startsWith'](_0x392382(0x11a),_0x51e8ee)){const _0x1edf1d=_0x3baf08['indexOf'](_0x392382(0x119),_0x51e8ee+0x4);if(_0x1edf1d<0x0)return invalidMybatisSource(_0x392382(0x11d));_0x23ab9e+='\x20',_0x51e8ee=_0x1edf1d+0x3;continue;}if(_0x3baf08[_0x392382(0xf0)]('<![CDATA[',_0x51e8ee)){if(!_0x318a10||_0x2ff84e)return invalidMybatisSource(_0x392382(0xf5));const _0x4781fa=_0x3baf08['indexOf'](_0x392382(0xe3),_0x51e8ee+0x9);if(_0x4781fa<0x0)return invalidMybatisSource(_0x392382(0x11c));_0x23ab9e+=_0x3baf08[_0x392382(0x12f)](_0x51e8ee+0x9,_0x4781fa),_0x51e8ee=_0x4781fa+0x3;continue;}if(_0x3baf08[_0x392382(0xf0)]('<?',_0x51e8ee)){if(_0x318a10)return invalidMybatisSource(_0x392382(0xfe));const _0x32e319=_0x3baf08[_0x392382(0x112)]('?>',_0x51e8ee+0x2);if(_0x32e319<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x23ab9e+='\x20',_0x51e8ee=_0x32e319+0x2;continue;}if(_0x3baf08[_0x51e8ee]!=='<'){const _0x44b5bb=_0x3baf08[_0x392382(0x112)]('<',_0x51e8ee),_0x225287=_0x44b5bb<0x0?_0x3baf08['length']:_0x44b5bb,_0x7e92a0=_0x3baf08[_0x392382(0x12f)](_0x51e8ee,_0x225287);if((!_0x318a10||_0x2ff84e)&&_0x7e92a0[_0x392382(0x10f)]())return invalidMybatisSource(_0x392382(0xfd));if(_0x318a10&&!_0x2ff84e){const _0x344a93=decodeXmlEntities(_0x7e92a0);if(_0x344a93===null)return invalidMybatisSource(_0x392382(0xf1));_0x23ab9e+=_0x344a93;}else _0x23ab9e+='\x20';_0x51e8ee=_0x225287;continue;}const _0x5afce4=findXmlTagEnd(_0x3baf08,_0x51e8ee);if(_0x5afce4<0x0)return invalidMybatisSource('Unterminated\x20MyBatis\x20XML\x20tag.');const _0x7a000f=_0x3baf08[_0x392382(0x12f)](_0x51e8ee,_0x5afce4+0x1),_0x4a2420=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x7a000f);if(!_0x4a2420)return invalidMybatisSource(_0x392382(0xda));const _0x1ab07b=_0x4a2420[0x1]==='/',_0x3370ae=_0x4a2420[0x2]??'',_0x553e68=_0x3370ae['toLowerCase'](),_0x474222=_0x4a2420[0x3]??'',_0x25a216=_0x4a2420[0x4]==='/',_0xaf798c=MYBATIS_OUTER_TAGS[_0x392382(0xd8)](_0x553e68);if(!_0xaf798c&&!MYBATIS_DYNAMIC_TAGS[_0x392382(0x102)](_0x553e68))return invalidMybatisSource(_0x392382(0xfb)+_0x553e68+'>.');if(!_0xaf798c&&_0x3370ae!==_0x553e68)return invalidMybatisSource(_0x392382(0xee)+_0x3370ae+'>.');if(_0x1ab07b){if(_0x474222[_0x392382(0x10f)]()||_0x25a216)return invalidMybatisSource(_0x392382(0x118)+_0x3370ae+'>.');const _0x2305d6=_0x5610a5['at'](-0x1);if(!_0x2305d6||(_0x2305d6['outer']?_0x2305d6['tagName']!==_0x553e68:_0x2305d6[_0x392382(0xff)]!==_0x3370ae))return invalidMybatisSource(_0x392382(0x104)+_0x3370ae+'>.');_0x5610a5[_0x392382(0xf3)]();if(_0x2305d6[_0x392382(0x11f)])_0x2ff84e=!![];_0x23ab9e+=MYBATIS_BRANCH_TAGS[_0x392382(0x102)](_0x553e68)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x474222))return invalidMybatisSource(_0x392382(0x120)+_0x3370ae+'>.');if(_0x553e68===_0x392382(0x114)&&(!_0x25a216||_0x5610a5['at'](-0x1)?.['tagName']!==_0x392382(0x107)))return invalidMybatisSource('MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.');if(_0xaf798c){if(_0x318a10||_0x5610a5[_0x392382(0xdf)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x318a10=!![],_0x2ff84e=_0x25a216,_0x5d99ea=_0xaf798c;}else{if(!_0x318a10||_0x2ff84e)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<'+_0x3370ae+'>.');}_0x23ab9e+=_0x553e68===_0x392382(0xe4)?'\x20WHERE\x20':_0x553e68===_0x392382(0x125)?_0x392382(0x12b):_0x553e68==='include'?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0x553e68)&&!_0x25a216?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x25a216&&_0x5610a5[_0x392382(0xd9)]({'rawName':_0x3370ae,'tagName':_0x553e68,'outer':!!_0xaf798c});}_0x51e8ee=_0x5afce4+0x1;}if(_0x5610a5[_0x392382(0xdf)]>0x0)return invalidMybatisSource(_0x392382(0x11b)+_0x5610a5['at'](-0x1)?.['rawName']+'>.');if(!_0x318a10||!_0x2ff84e)return invalidMybatisSource(_0x392382(0x111));return{'sql':_0x23ab9e[_0x392382(0x10f)](),'mode':_0x392382(0x10d),..._0x5d99ea?{'statementType':_0x5d99ea}:{}};}function hasWellFormedXmlAttributes(_0x7428aa){const _0x1993b8=a296_0x4caa84;let _0xca4904=0x0;const _0x956d89=new Set();while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]){while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;if(_0xca4904>=_0x7428aa[_0x1993b8(0xdf)])return!![];const _0x565528=/^[A-Za-z_:][\w:.-]*/[_0x1993b8(0x121)](_0x7428aa[_0x1993b8(0x12f)](_0xca4904)),_0x29a4f5=_0x565528?.[0x0];if(!_0x29a4f5||_0x956d89['has'](_0x29a4f5))return![];_0x956d89['add'](_0x29a4f5),_0xca4904+=_0x29a4f5['length'];while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;if(_0x7428aa[_0xca4904]!=='=')return![];_0xca4904+=0x1;while(_0xca4904<_0x7428aa[_0x1993b8(0xdf)]&&/\s/[_0x1993b8(0xdb)](_0x7428aa[_0xca4904]??''))_0xca4904+=0x1;const _0x38cb4a=_0x7428aa[_0xca4904];if(_0x38cb4a!=='\x22'&&_0x38cb4a!=='\x27')return![];_0xca4904+=0x1;const _0x977c79=_0x7428aa[_0x1993b8(0x112)](_0x38cb4a,_0xca4904);if(_0x977c79<0x0)return![];if(decodeXmlEntities(_0x7428aa[_0x1993b8(0x12f)](_0xca4904,_0x977c79))===null)return![];_0xca4904=_0x977c79+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0xd32ef4){const _0x50f029=a296_0x4caa84;let _0x412cb2=0x0;const _0x15f432=()=>{const _0x3b26f2=a296_0x5ad5;while(_0x412cb2<_0xd32ef4[_0x3b26f2(0xdf)]&&/\s/[_0x3b26f2(0xdb)](_0xd32ef4[_0x412cb2]??''))_0x412cb2+=0x1;};_0x15f432();while(_0x412cb2<_0xd32ef4[_0x50f029(0xdf)]){if(_0xd32ef4['startsWith'](_0x50f029(0x11a),_0x412cb2)){const _0x20fcdf=_0xd32ef4[_0x50f029(0x112)]('-->',_0x412cb2+0x4);if(_0x20fcdf<0x0)return!![];_0x412cb2=_0x20fcdf+0x3,_0x15f432();continue;}if(_0xd32ef4[_0x50f029(0xf0)]('<?',_0x412cb2)){const _0x173fe1=_0xd32ef4['indexOf']('?>',_0x412cb2+0x2);if(_0x173fe1<0x0)return!![];_0x412cb2=_0x173fe1+0x2,_0x15f432();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x50f029(0xdb)](_0xd32ef4[_0x50f029(0x12f)](_0x412cb2));}function a296_0x2af3(){const _0x37db7d=['pop','when','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','406323fFxqEu','unknown\x20table(s)','WITH','9443944eLsRNh','from','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','4131708QfZhIe','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','rawName','UPDATE','replace','has','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','DDL','INSERT','include','sql','1517056xyPuAA','15gnBmxm','toUpperCase','UNKNOWN','mybatisXml','548008BvCEDf','trim','matchAll','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','indexOf','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','property','update',')\x5cb','492835LPffQp','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','-->','<!--','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','Unterminated\x20CDATA\x20section.','Unterminated\x20XML\x20comment.','&lt;','outer','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','exec','^<\x5cs*(?:','\x20with\x20parameters:\x20','&amp;','set','otherwise','error','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','choose','keys','\x20SET\x20','DELETE','fromCodePoint','match','slice','9NoBKjA','get','push','Invalid\x20MyBatis\x20XML\x20tag.','test','bind','reason','join','length','replaceAll','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',']]>','where','type','add','foreach','__RABETBASE_MYBATIS_DYNAMIC_END__','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','delete','&gt;','SELECT','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','2072700KQFFfL','startsWith','Invalid\x20XML\x20entity\x20reference.','\x20query\x20targeting\x20'];a296_0x2af3=function(){return _0x37db7d;};return a296_0x2af3();}function invalidMybatisSource(_0x31e52d){return{'sql':'','mode':'mybatisXml','error':_0x31e52d};}function findXmlTagEnd(_0x9b1ee4,_0x2507e9){let _0x23de5e;for(let _0x27a78d=_0x2507e9+0x1;_0x27a78d<_0x9b1ee4['length'];_0x27a78d+=0x1){const _0x1c5345=_0x9b1ee4[_0x27a78d];if(_0x23de5e){if(_0x1c5345===_0x23de5e)_0x23de5e=undefined;continue;}if(_0x1c5345==='\x22'||_0x1c5345==='\x27'){_0x23de5e=_0x1c5345;continue;}if(_0x1c5345==='>')return _0x27a78d;}return-0x1;}function decodeXmlEntities(_0x279340){const _0xad19f7=a296_0x4caa84;let _0x3fd221=![];const _0x1bfb62=_0x279340[_0xad19f7(0x101)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x47c3d0=>{const _0x38b4ba=_0xad19f7;if(_0x47c3d0===_0x38b4ba(0x11e))return'<';if(_0x47c3d0===_0x38b4ba(0xeb))return'>';if(_0x47c3d0==='&quot;')return'\x22';if(_0x47c3d0==='&apos;')return'\x27';if(_0x47c3d0===_0x38b4ba(0x124))return'&';const _0x4c685e=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x38b4ba(0x121)](_0x47c3d0);if(_0x4c685e){const _0x249c30=_0x4c685e[0x1],_0x541a4c=_0x4c685e[0x2],_0x284399=Number['parseInt'](_0x249c30??_0x541a4c??'',_0x249c30?0x10:0xa);if(isValidXmlCharacter(_0x284399))return String[_0x38b4ba(0x12d)](_0x284399);}return _0x3fd221=!![],'';});return _0x3fd221?null:_0x1bfb62;}function isValidXmlCharacter(_0x5b8d5f){return _0x5b8d5f===0x9||_0x5b8d5f===0xa||_0x5b8d5f===0xd||_0x5b8d5f>=0x20&&_0x5b8d5f<=0xd7ff||_0x5b8d5f>=0xe000&&_0x5b8d5f<=0xfffd||_0x5b8d5f>=0x10000&&_0x5b8d5f<=0x10ffff;}export function detectSqlType(_0x38d93a){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x38d93a));}function detectNormalizedSqlType(_0x41d9a4){const _0x87e821=a296_0x4caa84;if(_0x41d9a4[_0x87e821(0x127)])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x41d9a4['error']};if(!_0x41d9a4[_0x87e821(0x108)][_0x87e821(0x10f)]())return{'type':_0x87e821(0x10c),'isSelectOnly':![],'isDangerous':![],'reason':'SQL\x20content\x20is\x20empty'};const _0x120167=stripStaticAnalysisMarkers(_0x41d9a4['sql'])[_0x87e821(0x101)](/#\{[^}]*\}/g,'?')[_0x87e821(0x101)](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')[_0x87e821(0x101)](/\/\*[\s\S]*?\*\//g,'')[_0x87e821(0x10f)](),_0x4a31a0=_0x120167['split']('\x0a');let _0x7e3c39='';for(const _0x58a3e0 of _0x4a31a0){const _0xbb0ef7=_0x58a3e0[_0x87e821(0x10f)]();if(!_0xbb0ef7||_0xbb0ef7[_0x87e821(0xf0)]('--')||_0xbb0ef7[_0x87e821(0xf0)]('/*'))continue;_0x7e3c39=_0xbb0ef7;break;}const _0x5a1f30=_0x7e3c39[_0x87e821(0x10b)](),_0xcd2571=_0x41d9a4['statementType'],_0x16ec2e=maskSqlTextForBlockedKeywordScan(_0x120167),_0x3a4dab=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x87e821(0xdb)](_0x16ec2e);if(_0xcd2571===_0x87e821(0xec)||!_0xcd2571&&(_0x5a1f30[_0x87e821(0xf0)]('SELECT')||_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0xf8)))){const _0x6de971=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x87e821(0xdb)](_0x120167);return{'type':_0x87e821(0xec),'isSelectOnly':!_0x6de971,'isDangerous':_0x6de971,'reason':_0x6de971?_0x87e821(0xe1):undefined};}if(_0xcd2571===_0x87e821(0x106)||!_0xcd2571&&_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0x106)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x3a4dab,'reason':_0x3a4dab?'SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements':undefined};if(_0xcd2571===_0x87e821(0x100)||!_0xcd2571&&_0x5a1f30[_0x87e821(0xf0)](_0x87e821(0x100)))return{'type':_0x87e821(0x100),'isSelectOnly':![],'isDangerous':_0x3a4dab,'reason':_0x3a4dab?_0x87e821(0x128):undefined};if(_0xcd2571==='DELETE'||!_0xcd2571&&_0x5a1f30['startsWith'](_0x87e821(0x12c)))return{'type':_0x87e821(0x12c),'isSelectOnly':![],'isDangerous':!![],'reason':_0x87e821(0x113)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x5a1f30))return{'type':_0x87e821(0x105),'isSelectOnly':![],'isDangerous':!![],'reason':_0x87e821(0x103)};return{'type':_0x87e821(0x10c),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x57d346){const _0x1e3737=a296_0x4caa84;return _0x57d346[_0x1e3737(0xe0)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x1e3737(0xe0)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x1e3737(0xe0)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function a296_0x5ad5(_0xd33b7d,_0xa4fa26){_0xd33b7d=_0xd33b7d-0xd8;const _0x2af3ed=a296_0x2af3();let _0x5ad5fb=_0x2af3ed[_0xd33b7d];return _0x5ad5fb;}function maskSqlTextForBlockedKeywordScan(_0x354158){const _0x2e65ae=a296_0x4caa84;return _0x354158[_0x2e65ae(0x101)](/'(?:''|\\.|[^'])*'/g,'\x20')['replace'](/"(?:""|\\.|[^"])*"/g,'\x20')[_0x2e65ae(0x101)](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x2e65ae(0x101)](/--.*$/gm,'\x20')[_0x2e65ae(0x101)](/#.*$/gm,'\x20')[_0x2e65ae(0x101)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x27cee6){const _0x44f5df=a296_0x4caa84,_0x461e9f=_0x27cee6[_0x44f5df(0x101)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x44f5df(0x101)](/--.*$/gm,'')[_0x44f5df(0x101)](/\/\*[\s\S]*?\*\//g,''),_0x228176=[],_0x1c0ee9=_0x461e9f[_0x44f5df(0x12e)](/FROM\s+([^\s,)(]+)/i);addTable(_0x228176,_0x1c0ee9?.[0x1]);for(const _0x3a61d8 of _0x461e9f[_0x44f5df(0x110)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x228176,_0x3a61d8[0x1]);}const _0x99b52b=_0x461e9f[_0x44f5df(0x12e)](/INTO\s+([^\s(]+)/i);addTable(_0x228176,_0x99b52b?.[0x1]);const _0x498b09=_0x461e9f[_0x44f5df(0x12e)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x228176,_0x498b09?.[0x1]),_0x228176;}function addTable(_0x3fc962,_0x54e5c5){const _0x1ec31d=a296_0x4caa84,_0x5c982e=_0x54e5c5?.[_0x1ec31d(0x101)](/[`"]/g,'');_0x5c982e&&_0x5c982e!==UNRESOLVED_SQL_FRAGMENT&&!_0x3fc962['includes'](_0x5c982e)&&_0x3fc962[_0x1ec31d(0xd9)](_0x5c982e);}function extractParameters(_0x122106){const _0xf595eb=a296_0x4caa84,_0x1c579b=new Set();for(const _0x4b66b8 of _0x122106[_0xf595eb(0x110)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x4b66b8[0x1])_0x1c579b[_0xf595eb(0xe6)](_0x4b66b8[0x1]);}return Array[_0xf595eb(0xfa)](_0x1c579b);}export function validateSql(_0x585605){const _0x12a826=a296_0x4caa84,_0x2850e0=normalizeSqlForStaticAnalysis(_0x585605),_0xc61baa=detectNormalizedSqlType(_0x2850e0),_0x54ff2=stripStaticAnalysisMarkers(_0x2850e0[_0x12a826(0x108)]),_0x1727ee=_0x2850e0[_0x12a826(0x127)]?[]:extractTables(_0x54ff2),_0xdf60de=_0x2850e0[_0x12a826(0x127)]?[]:extractParameters(_0x54ff2);if(_0xc61baa['isDangerous'])return{'valid':![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0xc61baa[_0x12a826(0xdd)]||_0xc61baa[_0x12a826(0xe5)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0xc61baa[_0x12a826(0xe5)]===_0x12a826(0x10c))return{'valid':![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0x2850e0[_0x12a826(0x127)]?'Unable\x20to\x20detect\x20SQL\x20type.\x20'+_0x2850e0[_0x12a826(0x127)]:_0x12a826(0xe9)};return{'valid':!![],'sqlType':_0xc61baa,'tables':_0x1727ee,'parameters':_0xdf60de,'message':_0xc61baa[_0x12a826(0xe5)]+_0x12a826(0xf2)+(_0x1727ee[_0x12a826(0xdf)]?_0x1727ee[_0x12a826(0xde)](',\x20'):_0x12a826(0xf7))+(_0xdf60de['length']?_0x12a826(0x123)+_0xdf60de[_0x12a826(0xde)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a269_0x3725(_0x42a1aa,_0x4736a4){_0x42a1aa=_0x42a1aa-0x113;const _0xbdc6ae=a269_0xbdc6();let _0x372542=_0xbdc6ae[_0x42a1aa];return _0x372542;}const a269_0x624b95=a269_0x3725;(function(_0x24f394,_0x253e15){const _0x56d34f=a269_0x3725,_0x39d43a=_0x24f394();while(!![]){try{const _0x1534b1=parseInt(_0x56d34f(0x113))/0x1*(parseInt(_0x56d34f(0x122))/0x2)+-parseInt(_0x56d34f(0x127))/0x3*(-parseInt(_0x56d34f(0x12d))/0x4)+parseInt(_0x56d34f(0x11c))/0x5*(parseInt(_0x56d34f(0x116))/0x6)+parseInt(_0x56d34f(0x11e))/0x7*(-parseInt(_0x56d34f(0x121))/0x8)+parseInt(_0x56d34f(0x129))/0x9+-parseInt(_0x56d34f(0x120))/0xa+-parseInt(_0x56d34f(0x123))/0xb;if(_0x1534b1===_0x253e15)break;else _0x39d43a['push'](_0x39d43a['shift']());}catch(_0x35f373){_0x39d43a['push'](_0x39d43a['shift']());}}}(a269_0xbdc6,0x574a3));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a269_0xbdc6(){const _0xb0dc82=['6792082pyYnHH','Not\x20in\x20a\x20','config_missing','\x20--help`\x20to\x20see\x20available\x20commands.','251133GykLKF','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','2844180FYiUjB','network_error','apiError','\x20auth`\x20to\x20login\x20first.','28CgPjck','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','auth_required','unknown_command','cancelled','5kqUNuk','Configuration\x20file\x20not\x20found','Operation\x20cancelled.','4872ieUNIm','not_in_project','Set\x20appcode\x20via\x20`','Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','2120TkgUon','validation','2863SnnwAO','Authentication\x20required','2286840zAcczp','6040NygzPU','106478NLYdfJ'];a269_0xbdc6=function(){return _0xb0dc82;};return a269_0xbdc6();}export{CliError};const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a269_0x624b95(0x12c),'configMissingHint':a269_0x624b95(0x118)+CLI_BIN_NAME+a269_0x624b95(0x128)+CLI_BIN_NAME+a269_0x624b95(0x12e),'notInProjectHint':a269_0x624b95(0x11a)});export const CliErrors={'authRequired'(_0x347461){const _0x51a4aa=a269_0x624b95;return new CliError(_0x51a4aa(0x12f),0x1,_0x51a4aa(0x11f),_0x347461??'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.');},'configMissing'(_0x3450a4){const _0x35a94a=a269_0x624b95;return new CliError(_0x35a94a(0x125),0x1,_0x35a94a(0x114),_0x3450a4??'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x35a94a(0x128)+CLI_BIN_NAME+_0x35a94a(0x12e));},'notInProject'(){const _0x275232=a269_0x624b95;return new CliError(_0x275232(0x117),0x1,_0x275232(0x124)+CLI_BIN_NAME+'\x20project\x20directory','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x3b88f2,_0x455bac){const _0x1c18f1=a269_0x624b95;return baseCliErrors[_0x1c18f1(0x12b)](_0x3b88f2,_0x455bac);},'networkError'(_0x3b2427){const _0x2adf89=a269_0x624b95;return new CliError(_0x2adf89(0x12a),0x2,'Network\x20error:\x20'+_0x3b2427,_0x2adf89(0x11b));},'unknownCommand'(_0x468eae){const _0x1470cd=a269_0x624b95;return new CliError(_0x1470cd(0x130),0x1,'Unknown\x20command:\x20'+_0x468eae,_0x1470cd(0x119)+CLI_BIN_NAME+_0x1470cd(0x126));},'flagMissing'(_0x4b25cc,_0x5839f0){return new CliError('flag_missing',0x1,'Missing\x20required\x20flag:\x20--'+_0x4b25cc,_0x5839f0);},'validation'(_0x4d8a1d,_0x5c10cb){const _0x4575ff=a269_0x624b95;return baseCliErrors[_0x4575ff(0x11d)](_0x4d8a1d,_0x5c10cb);},'cancelled'(_0x3b7818){const _0x1ce234=a269_0x624b95;return new CliError(_0x1ce234(0x131),0x0,_0x3b7818??_0x1ce234(0x115));}};
1
+ const a297_0x59ce2e=a297_0x1d91;(function(_0x383fdf,_0x2c6cac){const _0x52aec2=a297_0x1d91,_0x2c17f6=_0x383fdf();while(!![]){try{const _0x14855a=-parseInt(_0x52aec2(0xb3))/0x1*(parseInt(_0x52aec2(0xb8))/0x2)+parseInt(_0x52aec2(0xc3))/0x3+parseInt(_0x52aec2(0xc0))/0x4*(parseInt(_0x52aec2(0xc6))/0x5)+-parseInt(_0x52aec2(0xb6))/0x6*(parseInt(_0x52aec2(0xbf))/0x7)+parseInt(_0x52aec2(0xbc))/0x8+-parseInt(_0x52aec2(0xbe))/0x9*(-parseInt(_0x52aec2(0xc1))/0xa)+-parseInt(_0x52aec2(0xbd))/0xb*(-parseInt(_0x52aec2(0xba))/0xc);if(_0x14855a===_0x2c6cac)break;else _0x2c17f6['push'](_0x2c17f6['shift']());}catch(_0x1246f3){_0x2c17f6['push'](_0x2c17f6['shift']());}}}(a297_0x2038,0x9de43));function a297_0x1d91(_0x195cd0,_0x1ca7af){_0x195cd0=_0x195cd0-0xaf;const _0x2038e2=a297_0x2038();let _0x1d9161=_0x2038e2[_0x195cd0];return _0x1d9161;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a297_0x2038(){const _0x165231=['\x20auth`\x20to\x20login\x20first.','12CpMduv','cancelled','8560928PjiROF','4531428DZjLbZ','494775xwpKAF','14hXAiGB','682676iAeNJH','50KzbxRn','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.\x0a\x20\x20\x20\x20\x20\x20\x20Tip:\x20`','831663hLaQns','Missing\x20required\x20flag:\x20--','Authentication\x20required','10QHVpTN','Unknown\x20command:\x20','not_in_project','apiError','Check\x20your\x20internet\x20connection\x20and\x20try\x20again.','auth_required','\x20--help`\x20to\x20see\x20available\x20commands.','\x20project\x20directory','flag_missing','\x20workspace\x20add\x20<name>\x20--appcode\x20<code>\x20--global`\x20registers\x20a\x20reusable\x20global\x20app\x20profile.','Run\x20`','unknown_command','1ITMrxP','Network\x20error:\x20','Set\x20appcode\x20via\x20`','2280474FndzFR','Operation\x20cancelled.','1937234PUqXAM'];a297_0x2038=function(){return _0x165231;};return a297_0x2038();}const baseCliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a297_0x59ce2e(0xb1)+CLI_BIN_NAME+a297_0x59ce2e(0xb9),'configMissingHint':a297_0x59ce2e(0xb5)+CLI_BIN_NAME+a297_0x59ce2e(0xc2)+CLI_BIN_NAME+a297_0x59ce2e(0xb0),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});export const CliErrors={'authRequired'(_0x56bda6){const _0x5d856d=a297_0x59ce2e;return new CliError(_0x5d856d(0xcb),0x1,_0x5d856d(0xc5),_0x56bda6??_0x5d856d(0xb1)+CLI_BIN_NAME+_0x5d856d(0xb9));},'configMissing'(_0x393f11){const _0x3988cf=a297_0x59ce2e;return new CliError('config_missing',0x1,'Configuration\x20file\x20not\x20found',_0x393f11??'Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x3988cf(0xc2)+CLI_BIN_NAME+_0x3988cf(0xb0));},'notInProject'(){const _0x4c526d=a297_0x59ce2e;return new CliError(_0x4c526d(0xc8),0x1,'Not\x20in\x20a\x20'+CLI_BIN_NAME+_0x4c526d(0xcd),'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.');},'apiError'(_0x2bfc72,_0x568114){const _0x46e0be=a297_0x59ce2e;return baseCliErrors[_0x46e0be(0xc9)](_0x2bfc72,_0x568114);},'networkError'(_0x143f34){const _0x4164c1=a297_0x59ce2e;return new CliError('network_error',0x2,_0x4164c1(0xb4)+_0x143f34,_0x4164c1(0xca));},'unknownCommand'(_0x5c579e){const _0x323d12=a297_0x59ce2e;return new CliError(_0x323d12(0xb2),0x1,_0x323d12(0xc7)+_0x5c579e,_0x323d12(0xb1)+CLI_BIN_NAME+_0x323d12(0xcc));},'flagMissing'(_0x120ec9,_0x17ced1){const _0x10083f=a297_0x59ce2e;return new CliError(_0x10083f(0xaf),0x1,_0x10083f(0xc4)+_0x120ec9,_0x17ced1);},'validation'(_0x3fa504,_0x3ca016){return baseCliErrors['validation'](_0x3fa504,_0x3ca016);},'cancelled'(_0x420db9){const _0x3ded41=a297_0x59ce2e;return new CliError(_0x3ded41(0xbb),0x0,_0x420db9??_0x3ded41(0xb7));}};
@@ -1 +1 @@
1
- function a270_0xaded(_0x16230e,_0x2cbc66){_0x16230e=_0x16230e-0x1e6;const _0xa20282=a270_0xa202();let _0xaded4=_0xa20282[_0x16230e];return _0xaded4;}(function(_0x3b5907,_0x316a07){const _0x37225a=a270_0xaded,_0x44adf8=_0x3b5907();while(!![]){try{const _0x2762d7=-parseInt(_0x37225a(0x1e6))/0x1+-parseInt(_0x37225a(0x1ee))/0x2+parseInt(_0x37225a(0x1f2))/0x3+-parseInt(_0x37225a(0x1ea))/0x4*(parseInt(_0x37225a(0x1e8))/0x5)+-parseInt(_0x37225a(0x1f1))/0x6*(parseInt(_0x37225a(0x1e7))/0x7)+parseInt(_0x37225a(0x1ed))/0x8*(parseInt(_0x37225a(0x1e9))/0x9)+-parseInt(_0x37225a(0x1f0))/0xa*(-parseInt(_0x37225a(0x1ef))/0xb);if(_0x2762d7===_0x316a07)break;else _0x44adf8['push'](_0x44adf8['shift']());}catch(_0x6fde32){_0x44adf8['push'](_0x44adf8['shift']());}}}(a270_0xa202,0x45514));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a270_0x5034f9}from'@lovrabet/cli-framework';function a270_0xa202(){const _0x8f875d=['6SsvkEv','84840ACayRe','445207gLGrPO','2956163TiWPAQ','64755SfOBaw','38853VaKZPb','60JeQFkV','map','name','456gyKpIw','35636GvYdsw','11tYrMBO','10891740vUwFKP'];a270_0xa202=function(){return _0x8f875d;};return a270_0xa202();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xa1d246){const _0x11c81d=a270_0xaded,_0x16aa57=a270_0x5034f9(_0xa1d246,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xa1d246))return _0x16aa57;return _0x16aa57[_0x11c81d(0x1eb)](_0x3d2ef8=>_0x3d2ef8[_0x11c81d(0x1ec)]==='yes'?{..._0x3d2ef8,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x3d2ef8);}
1
+ (function(_0x5eaa2c,_0x128563){const _0xaac772=a298_0x51a9,_0x2a51b1=_0x5eaa2c();while(!![]){try{const _0x23b863=-parseInt(_0xaac772(0x145))/0x1*(parseInt(_0xaac772(0x143))/0x2)+-parseInt(_0xaac772(0x14c))/0x3*(parseInt(_0xaac772(0x140))/0x4)+parseInt(_0xaac772(0x14b))/0x5*(parseInt(_0xaac772(0x148))/0x6)+-parseInt(_0xaac772(0x13f))/0x7*(-parseInt(_0xaac772(0x146))/0x8)+-parseInt(_0xaac772(0x149))/0x9+parseInt(_0xaac772(0x144))/0xa*(parseInt(_0xaac772(0x14a))/0xb)+parseInt(_0xaac772(0x147))/0xc;if(_0x23b863===_0x128563)break;else _0x2a51b1['push'](_0x2a51b1['shift']());}catch(_0x5438cf){_0x2a51b1['push'](_0x2a51b1['shift']());}}}(a298_0x3120,0x3e1b2));function a298_0x51a9(_0xefab05,_0x21e2d8){_0xefab05=_0xefab05-0x13f;const _0x31207f=a298_0x3120();let _0x51a954=_0x31207f[_0xefab05];return _0x51a954;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a298_0x48807a}from'@lovrabet/cli-framework';function a298_0x3120(){const _0x537860=['name','4146ckCmyG','245450wgTPlb','13yYnzCX','1061576KqpOkO','2128704rqBrwv','1506JcyEzf','1677294vfUBxH','55KlHEhy','6805zClIcK','460086EPWWzs','7bjKHlN','8xXpbJi','yes'];a298_0x3120=function(){return _0x537860;};return a298_0x3120();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x5d5f9e){const _0x29bbb6=a298_0x51a9,_0x3eb4be=a298_0x48807a(_0x5d5f9e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x5d5f9e))return _0x3eb4be;return _0x3eb4be['map'](_0x35bdb2=>_0x35bdb2[_0x29bbb6(0x142)]===_0x29bbb6(0x141)?{..._0x35bdb2,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x35bdb2);}
@@ -1 +1 @@
1
- (function(_0x5e346e,_0x1cb68b){var _0x3d17d1=a271_0x3655,_0x11e8bd=_0x5e346e();while(!![]){try{var _0xc947f6=parseInt(_0x3d17d1(0xe0))/0x1*(parseInt(_0x3d17d1(0xdd))/0x2)+parseInt(_0x3d17d1(0xdb))/0x3+parseInt(_0x3d17d1(0xdf))/0x4+-parseInt(_0x3d17d1(0xdc))/0x5*(-parseInt(_0x3d17d1(0xd6))/0x6)+-parseInt(_0x3d17d1(0xd4))/0x7+parseInt(_0x3d17d1(0xda))/0x8+-parseInt(_0x3d17d1(0xd8))/0x9;if(_0xc947f6===_0x1cb68b)break;else _0x11e8bd['push'](_0x11e8bd['shift']());}catch(_0x41450f){_0x11e8bd['push'](_0x11e8bd['shift']());}}}(a271_0x3f51,0xb80ad));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x1a06d7){var _0x321959=a271_0x3655;return _0x1a06d7?.[_0x321959(0xd7)]===!![];}function a271_0x3655(_0x2022f8,_0x336fac){_0x2022f8=_0x2022f8-0xd4;var _0x3f5198=a271_0x3f51();var _0x365591=_0x3f5198[_0x2022f8];return _0x365591;}export function resolveErrorOutputFormat(_0x51ad41){var _0x3b7e09=a271_0x3655;if(!_0x51ad41['def'])return _0x51ad41[_0x3b7e09(0xd5)]??_0x3b7e09(0xd9);return resolveOutputConfig({'flags':_0x51ad41['flags']??{},'def':_0x51ad41[_0x3b7e09(0xde)],'configDefault':_0x51ad41[_0x3b7e09(0xd5)]})[_0x3b7e09(0xe1)];}function a271_0x3f51(){var _0x20bdb3=['format','8457064UFRuiD','defaultFormat','451092ZPmWuI','structuredErrors','17009136fGefOM','compress','5982376YsfaKz','1246590ioTzae','90tmAyWZ','16Dpckft','def','740232lpflBW','143779YgGQXl'];a271_0x3f51=function(){return _0x20bdb3;};return a271_0x3f51();}
1
+ function a299_0x578a(_0xccba7b,_0x4b6cb5){_0xccba7b=_0xccba7b-0x181;var _0x2a7cb5=a299_0x2a7c();var _0x578a67=_0x2a7cb5[_0xccba7b];return _0x578a67;}(function(_0x18a973,_0x1a54bb){var _0x5f5833=a299_0x578a,_0x572b23=_0x18a973();while(!![]){try{var _0x4290e0=parseInt(_0x5f5833(0x189))/0x1*(parseInt(_0x5f5833(0x186))/0x2)+parseInt(_0x5f5833(0x185))/0x3+-parseInt(_0x5f5833(0x18e))/0x4+-parseInt(_0x5f5833(0x18d))/0x5*(-parseInt(_0x5f5833(0x18b))/0x6)+parseInt(_0x5f5833(0x18a))/0x7+parseInt(_0x5f5833(0x188))/0x8*(parseInt(_0x5f5833(0x182))/0x9)+-parseInt(_0x5f5833(0x183))/0xa;if(_0x4290e0===_0x1a54bb)break;else _0x572b23['push'](_0x572b23['shift']());}catch(_0x56e2f0){_0x572b23['push'](_0x572b23['shift']());}}}(a299_0x2a7c,0xf10de));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x523f14){return _0x523f14?.['structuredErrors']===!![];}function a299_0x2a7c(){var _0x1a1892=['5TzndoM','1410536rRFsCn','format','97731OjhaLN','11658520fHOASx','defaultFormat','1468710oBdYsn','18pjRKXJ','flags','56yUmNfU','31105rixqQJ','3999954CvIloR','6533364oDNrvf','def'];a299_0x2a7c=function(){return _0x1a1892;};return a299_0x2a7c();}export function resolveErrorOutputFormat(_0xb2d0ba){var _0x23f5b8=a299_0x578a;if(!_0xb2d0ba[_0x23f5b8(0x18c)])return _0xb2d0ba[_0x23f5b8(0x184)]??'compress';return resolveOutputConfig({'flags':_0xb2d0ba[_0x23f5b8(0x187)]??{},'def':_0xb2d0ba[_0x23f5b8(0x18c)],'configDefault':_0xb2d0ba[_0x23f5b8(0x184)]})[_0x23f5b8(0x181)];}
@@ -1 +1 @@
1
- function a272_0x4d96(_0x5ed86b,_0x242c82){_0x5ed86b=_0x5ed86b-0x141;const _0x2b3501=a272_0x2b35();let _0x4d9675=_0x2b3501[_0x5ed86b];return _0x4d9675;}const a272_0x5910b7=a272_0x4d96;(function(_0xba6ac8,_0x3408b1){const _0x137909=a272_0x4d96,_0x5da68b=_0xba6ac8();while(!![]){try{const _0x2a1b1c=parseInt(_0x137909(0x143))/0x1+-parseInt(_0x137909(0x146))/0x2*(parseInt(_0x137909(0x14a))/0x3)+parseInt(_0x137909(0x14d))/0x4*(parseInt(_0x137909(0x142))/0x5)+-parseInt(_0x137909(0x144))/0x6+-parseInt(_0x137909(0x147))/0x7+parseInt(_0x137909(0x148))/0x8*(parseInt(_0x137909(0x141))/0x9)+parseInt(_0x137909(0x14f))/0xa;if(_0x2a1b1c===_0x3408b1)break;else _0x5da68b['push'](_0x5da68b['shift']());}catch(_0x572fb5){_0x5da68b['push'](_0x5da68b['shift']());}}}(a272_0x2b35,0x497d1));const EXPLICIT_YES_COMMANDS=new Set([a272_0x5910b7(0x14c),a272_0x5910b7(0x150),a272_0x5910b7(0x14e),a272_0x5910b7(0x145)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a272_0x5910b7(0x14b);export function requiresExplicitYes(_0x4f429a){const _0x481079=a272_0x5910b7;return EXPLICIT_YES_COMMANDS['has'](_0x4f429a['service']+'\x20'+_0x4f429a[_0x481079(0x149)]);}function a272_0x2b35(){const _0x2a4814=['341437YIrwEW','2358966aSlGYe','notification\x20config-delete','70410fLqGHf','3673348uavesX','37208pGbLeE','command','42iGCgeJ','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20delete','228uPmjmf','notification\x20config-update','10002920DzkQKF','kb\x20delete','657cRgQej','2680nEhMHA'];a272_0x2b35=function(){return _0x2a4814;};return a272_0x2b35();}
1
+ function a300_0x7fa6(_0x193d81,_0x17e917){_0x193d81=_0x193d81-0x13f;const _0x1c8d9d=a300_0x1c8d();let _0x7fa63e=_0x1c8d9d[_0x193d81];return _0x7fa63e;}const a300_0x343226=a300_0x7fa6;(function(_0x424fc9,_0x323403){const _0x14fa5c=a300_0x7fa6,_0x5d4c10=_0x424fc9();while(!![]){try{const _0x50e645=parseInt(_0x14fa5c(0x145))/0x1+parseInt(_0x14fa5c(0x150))/0x2*(parseInt(_0x14fa5c(0x14a))/0x3)+-parseInt(_0x14fa5c(0x143))/0x4+-parseInt(_0x14fa5c(0x146))/0x5+-parseInt(_0x14fa5c(0x14b))/0x6*(parseInt(_0x14fa5c(0x144))/0x7)+-parseInt(_0x14fa5c(0x14c))/0x8*(-parseInt(_0x14fa5c(0x140))/0x9)+-parseInt(_0x14fa5c(0x14e))/0xa*(-parseInt(_0x14fa5c(0x148))/0xb);if(_0x50e645===_0x323403)break;else _0x5d4c10['push'](_0x5d4c10['shift']());}catch(_0x1764a3){_0x5d4c10['push'](_0x5d4c10['shift']());}}}(a300_0x1c8d,0x9c5d2));const EXPLICIT_YES_COMMANDS=new Set([a300_0x343226(0x141),a300_0x343226(0x14d),a300_0x343226(0x142),a300_0x343226(0x149)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';export function requiresExplicitYes(_0x19d721){const _0x38f88a=a300_0x343226;return EXPLICIT_YES_COMMANDS[_0x38f88a(0x13f)](_0x19d721[_0x38f88a(0x14f)]+'\x20'+_0x19d721[_0x38f88a(0x147)]);}function a300_0x1c8d(){const _0x187212=['menu\x20delete','notification\x20config-update','1247240iyOvCs','28497ECiDzG','617138faklUc','891730PHBJDu','command','7469kUbNmc','notification\x20config-delete','547269ZjWggH','1410wNwBIw','8Zvvxyr','kb\x20delete','15880SscwuU','service','4wDXBky','has','243639bpaxFS'];a300_0x1c8d=function(){return _0x187212;};return a300_0x1c8d();}
@@ -1 +1 @@
1
- const a273_0x3e7c9c=a273_0x7fc0;function a273_0x28e2(){const _0x15740a=['8IjXOdY','310729yklyyZ','12552fWkmzz','161XYDZbI','2249322OTuyRv','2bPDTlY','459448BuXOxZ','15485830aIwHfA','79299EhXJLW','parseFlags','validateFlags','24aHTGDt','3915NDDNSy','6889473fFQgNB'];a273_0x28e2=function(){return _0x15740a;};return a273_0x28e2();}(function(_0x38b273,_0x4d7185){const _0x58f3ae=a273_0x7fc0,_0x18f74d=_0x38b273();while(!![]){try{const _0x449ecc=-parseInt(_0x58f3ae(0x118))/0x1*(-parseInt(_0x58f3ae(0x11c))/0x2)+parseInt(_0x58f3ae(0x11b))/0x3*(-parseInt(_0x58f3ae(0x117))/0x4)+parseInt(_0x58f3ae(0x115))/0x5*(parseInt(_0x58f3ae(0x119))/0x6)+parseInt(_0x58f3ae(0x11a))/0x7*(parseInt(_0x58f3ae(0x11d))/0x8)+parseInt(_0x58f3ae(0x116))/0x9+-parseInt(_0x58f3ae(0x110))/0xa+-parseInt(_0x58f3ae(0x111))/0xb*(parseInt(_0x58f3ae(0x114))/0xc);if(_0x449ecc===_0x4d7185)break;else _0x18f74d['push'](_0x18f74d['shift']());}catch(_0x2cc9ce){_0x18f74d['push'](_0x18f74d['shift']());}}}(a273_0x28e2,0xed752));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a273_0x3e7c9c(0x112)];function a273_0x7fc0(_0x5dea5f,_0x319d28){_0x5dea5f=_0x5dea5f-0x110;const _0x28e228=a273_0x28e2();let _0x7fc0e5=_0x28e228[_0x5dea5f];return _0x7fc0e5;}export const validateFlags=helpers[a273_0x3e7c9c(0x113)];
1
+ const a301_0x1b4dd3=a301_0x58d2;(function(_0x447bef,_0x25b645){const _0x371464=a301_0x58d2,_0x11a230=_0x447bef();while(!![]){try{const _0x2f889b=-parseInt(_0x371464(0x88))/0x1+-parseInt(_0x371464(0x8a))/0x2*(parseInt(_0x371464(0x85))/0x3)+-parseInt(_0x371464(0x82))/0x4+-parseInt(_0x371464(0x89))/0x5*(parseInt(_0x371464(0x83))/0x6)+parseInt(_0x371464(0x84))/0x7*(parseInt(_0x371464(0x87))/0x8)+-parseInt(_0x371464(0x86))/0x9+parseInt(_0x371464(0x8b))/0xa;if(_0x2f889b===_0x25b645)break;else _0x11a230['push'](_0x11a230['shift']());}catch(_0x5f260a){_0x11a230['push'](_0x11a230['shift']());}}}(a301_0x3e42,0x867e3));import{createFlagHelpers}from'@lovrabet/cli-framework';function a301_0x58d2(_0x17e7b2,_0x3b2c58){_0x17e7b2=_0x17e7b2-0x80;const _0x3e4271=a301_0x3e42();let _0x58d202=_0x3e4271[_0x17e7b2];return _0x58d202;}import{CliErrors}from'../errors.js';function a301_0x3e42(){const _0x57202a=['2985mnqKLC','3986532eTCUiW','4325816FyYgIM','40407lQcDTX','725060UUfHHW','1676uWNNBA','26422000eexxUF','validateFlags','parseFlags','3362088eXYxSg','42hVfMUe','14ZBzDXg'];a301_0x3e42=function(){return _0x57202a;};return a301_0x3e42();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a301_0x1b4dd3(0x81)];export const validateFlags=helpers[a301_0x1b4dd3(0x80)];
@@ -1 +1 @@
1
- (function(_0x7f1030,_0x963a6){const _0x4af81a=a274_0x1d28,_0x4f228c=_0x7f1030();while(!![]){try{const _0x2697ca=parseInt(_0x4af81a(0x102))/0x1+parseInt(_0x4af81a(0x103))/0x2*(-parseInt(_0x4af81a(0x108))/0x3)+-parseInt(_0x4af81a(0x10c))/0x4*(parseInt(_0x4af81a(0x10d))/0x5)+parseInt(_0x4af81a(0x101))/0x6*(-parseInt(_0x4af81a(0x100))/0x7)+parseInt(_0x4af81a(0x109))/0x8+-parseInt(_0x4af81a(0x107))/0x9+parseInt(_0x4af81a(0x10a))/0xa;if(_0x2697ca===_0x963a6)break;else _0x4f228c['push'](_0x4f228c['shift']());}catch(_0x9f0648){_0x4f228c['push'](_0x4f228c['shift']());}}}(a274_0x9544,0xeb3c1));function a274_0x9544(){const _0x431ae1=['generateFullHelp','42GYvkbB','120738CqJEtq','65600IDwGLl','22wqFsaS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','replace','generateCommandHelp','262404cWgCFZ','239172gObzyC','6719320wCxSIE','12313580hHTCtU','\x20[args]\x20[flags]','585976mrdXVC','5ZGepJR','generateServiceHelp'];a274_0x9544=function(){return _0x431ae1;};return a274_0x9544();}import{createHelpGenerators}from'@lovrabet/cli-framework';function a274_0x1d28(_0x412542,_0x53f549){_0x412542=_0x412542-0xfe;const _0x95442c=a274_0x9544();let _0x1d28ff=_0x95442c[_0x412542];return _0x1d28ff;}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 _0x1b80c4=a274_0x1d28;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3af5c3=>serviceGroups['get'](_0x3af5c3),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':_0x1b80c4(0x10b)});}export function generateCommandHelp(_0x5e612c){const _0x3cf967=a274_0x1d28,_0x3bf9b3=createGenerators()[_0x3cf967(0x106)](_0x5e612c);if(!requiresExplicitYes(_0x5e612c))return _0x3bf9b3;return _0x3bf9b3[_0x3cf967(0x105)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x3cf967(0x104));}export function generateServiceHelp(_0xf1ec5b){const _0x5ba719=a274_0x1d28;return createGenerators()[_0x5ba719(0xfe)](_0xf1ec5b);}export function generateFullHelp(){const _0x168453=a274_0x1d28;return createGenerators()[_0x168453(0xff)]();}
1
+ (function(_0xe13eec,_0x25a161){const _0x581b40=a302_0x33e4,_0x4db292=_0xe13eec();while(!![]){try{const _0x3b0dfc=parseInt(_0x581b40(0xfb))/0x1*(parseInt(_0x581b40(0x105))/0x2)+parseInt(_0x581b40(0x100))/0x3+parseInt(_0x581b40(0xfd))/0x4*(-parseInt(_0x581b40(0x106))/0x5)+parseInt(_0x581b40(0xf9))/0x6+parseInt(_0x581b40(0x101))/0x7+-parseInt(_0x581b40(0x104))/0x8*(parseInt(_0x581b40(0xfc))/0x9)+parseInt(_0x581b40(0xfa))/0xa;if(_0x3b0dfc===_0x25a161)break;else _0x4db292['push'](_0x4db292['shift']());}catch(_0x2f82fa){_0x4db292['push'](_0x4db292['shift']());}}}(a302_0x1fcb,0x96b77));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a302_0x33e4(_0x186067,_0x343abe){_0x186067=_0x186067-0xf8;const _0x1fcb48=a302_0x1fcb();let _0x33e429=_0x1fcb48[_0x186067];return _0x33e429;}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 _0x35cbbd=a302_0x33e4;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x42e49e=>serviceGroups['get'](_0x42e49e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x35cbbd(0xf8)+CLI_BIN_NAME+_0x35cbbd(0xfe),'serviceUsageSuffix':_0x35cbbd(0x103)});}export function generateCommandHelp(_0x4b3833){const _0xfa4c31=a302_0x33e4,_0x5e31a9=createGenerators()[_0xfa4c31(0x102)](_0x4b3833);if(!requiresExplicitYes(_0x4b3833))return _0x5e31a9;return _0x5e31a9['replace'](_0xfa4c31(0xff),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}function a302_0x1fcb(){const _0x4ca0b5=['6554WpXztr','55QaNJKU','Requires\x20appcode\x20(set\x20via\x20`','3508848xcEYro','4395870kkcJSh','267zeNyBO','63xHcyCk','269728zeECtv','\x20workspace\x20init`\x20or\x20--appcode).','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','1219221bMWxiv','1298395ooBfRA','generateCommandHelp','\x20[args]\x20[flags]','1293896CVvMaW'];a302_0x1fcb=function(){return _0x4ca0b5;};return a302_0x1fcb();}export function generateServiceHelp(_0x1551fa){return createGenerators()['generateServiceHelp'](_0x1551fa);}export function generateFullHelp(){return createGenerators()['generateFullHelp']();}
@@ -1 +1 @@
1
- (function(_0xf9633a,_0x117af0){var _0x1fd10e=a275_0x57bd,_0x531aaa=_0xf9633a();while(!![]){try{var _0x17eee8=-parseInt(_0x1fd10e(0x16d))/0x1*(parseInt(_0x1fd10e(0x16b))/0x2)+-parseInt(_0x1fd10e(0x167))/0x3*(-parseInt(_0x1fd10e(0x166))/0x4)+parseInt(_0x1fd10e(0x169))/0x5+-parseInt(_0x1fd10e(0x16f))/0x6+-parseInt(_0x1fd10e(0x165))/0x7*(parseInt(_0x1fd10e(0x168))/0x8)+parseInt(_0x1fd10e(0x16c))/0x9+parseInt(_0x1fd10e(0x16e))/0xa*(parseInt(_0x1fd10e(0x16a))/0xb);if(_0x17eee8===_0x117af0)break;else _0x531aaa['push'](_0x531aaa['shift']());}catch(_0x20c8c3){_0x531aaa['push'](_0x531aaa['shift']());}}}(a275_0x4006,0xc2c85));export{runCommand}from'../framework/runner.js';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 a275_0x57bd(_0x3de3de,_0x411787){_0x3de3de=_0x3de3de-0x165;var _0x4006e6=a275_0x4006();var _0x57bd71=_0x4006e6[_0x3de3de];return _0x57bd71;}export{riskLevelOrder}from'../framework/types.js';function a275_0x4006(){var _0x240f9a=['1238742ROZRfX','10099607GkHNqZ','724jTgniD','12237jvDQAU','8aTUwFU','4429640wrjQiV','5039672KnGXpw','26IYibwx','3923766RVNFTs','5482NLVYdG','10pPTJlb'];a275_0x4006=function(){return _0x240f9a;};return a275_0x4006();}
1
+ (function(_0x420032,_0x19eb2a){var _0x1eaacf=a303_0x179a,_0xcb072e=_0x420032();while(!![]){try{var _0x4dc1b9=parseInt(_0x1eaacf(0xf1))/0x1+parseInt(_0x1eaacf(0xf5))/0x2+parseInt(_0x1eaacf(0xf6))/0x3+parseInt(_0x1eaacf(0xf3))/0x4*(parseInt(_0x1eaacf(0xf4))/0x5)+parseInt(_0x1eaacf(0xed))/0x6*(-parseInt(_0x1eaacf(0xf2))/0x7)+-parseInt(_0x1eaacf(0xee))/0x8+parseInt(_0x1eaacf(0xef))/0x9*(-parseInt(_0x1eaacf(0xf0))/0xa);if(_0x4dc1b9===_0x19eb2a)break;else _0xcb072e['push'](_0xcb072e['shift']());}catch(_0x42f671){_0xcb072e['push'](_0xcb072e['shift']());}}}(a303_0x2942,0x47e42));export{runCommand}from'../framework/runner.js';function a303_0x2942(){var _0x55a857=['2003905TgusFO','294836zrhttM','1397076RuKeWq','3270KBYrDj','4588880nbhFSV','5856021ifZeHX','10aVdqZe','505399lhPfbp','7liZKnn','4XYQmsm'];a303_0x2942=function(){return _0x55a857;};return a303_0x2942();}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a303_0x179a(_0x58c95f,_0x533738){_0x58c95f=_0x58c95f-0xed;var _0x2942a8=a303_0x2942();var _0x179a8c=_0x2942a8[_0x58c95f];return _0x179a8c;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x420c9c,_0x2f6c34){const _0x5c9e50=a276_0x33d0,_0x22fe26=_0x420c9c();while(!![]){try{const _0x5a6a03=-parseInt(_0x5c9e50(0x102))/0x1*(-parseInt(_0x5c9e50(0x10d))/0x2)+parseInt(_0x5c9e50(0x113))/0x3+-parseInt(_0x5c9e50(0x10e))/0x4+parseInt(_0x5c9e50(0x109))/0x5*(parseInt(_0x5c9e50(0x10a))/0x6)+-parseInt(_0x5c9e50(0x101))/0x7+parseInt(_0x5c9e50(0x107))/0x8*(-parseInt(_0x5c9e50(0x106))/0x9)+parseInt(_0x5c9e50(0x104))/0xa;if(_0x5a6a03===_0x2f6c34)break;else _0x22fe26['push'](_0x22fe26['shift']());}catch(_0x1a02d9){_0x22fe26['push'](_0x22fe26['shift']());}}}(a276_0x1708,0xcd85e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a276_0x33d0(_0x4c8898,_0x4ef132){_0x4c8898=_0x4c8898-0xfc;const _0x17088d=a276_0x1708();let _0x33d0a0=_0x17088d[_0x4c8898];return _0x33d0a0;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x465f88,_0x48d928){const _0x3171b5=a276_0x33d0,_0x21fe1c=_0x465f88[_0x3171b5(0x110)],{_notice:_0xbfdeca,..._0x26434e}=_0x465f88;void _0xbfdeca,baseFormatOutput(_0x26434e,_0x48d928),_0x48d928[_0x3171b5(0x103)]===_0x3171b5(0x108)&&printPrettyNotice(_0x21fe1c);}function a276_0x1708(){const _0x634efa=['jq:\x20','4745724oatBqs','message','write','risk','code','validation','stdout','jqFilter','stringify','3387699lbGCER','89Vkuqpl','format','6000850vJquLH','data','11662659xKixav','8tiJsTC','pretty','1580yiJwUx','1956xoDKkD','trim','hint','30260MOKyRM','4039796cJBNPU','update','_notice','error'];a276_0x1708=function(){return _0x634efa;};return a276_0x1708();}export function formatCliError(_0x50bd07,_0xebaf4c){const _0x2a71d3=a276_0x33d0;if(_0xebaf4c[_0x2a71d3(0x103)]==='pretty')return![];const _0x1e454f=_0x50bd07[_0x2a71d3(0x105)],_0x578a93={'ok':![],'command':_0xebaf4c['command'],'risk':_0xebaf4c[_0x2a71d3(0x116)],'data':_0x1e454f??null,'error':{'code':_0x50bd07[_0x2a71d3(0xfc)],'message':_0x50bd07[_0x2a71d3(0x114)],..._0x50bd07[_0x2a71d3(0x10c)]?{'hint':_0x50bd07['hint']}:{}}},_0xf4af3b=_0xebaf4c[_0x2a71d3(0x103)]==='json'?JSON['stringify'](_0x578a93,null,0x2):JSON[_0x2a71d3(0x100)](_0x578a93);let _0x1c03c7=_0xf4af3b;if(_0xebaf4c[_0x2a71d3(0xff)]?.[_0x2a71d3(0x10b)]())try{_0x1c03c7=applyJqFilter(_0xf4af3b,_0xebaf4c['jqFilter']);}catch(_0x116d18){const _0x280e43=_0x116d18 instanceof CliError?_0x116d18:CliErrors[_0x2a71d3(0xfd)](_0x2a71d3(0x112)+(_0x116d18 instanceof Error?_0x116d18[_0x2a71d3(0x114)]:String(_0x116d18))),_0x586378={..._0x578a93,'error':{'code':_0x280e43[_0x2a71d3(0xfc)],'message':_0x280e43[_0x2a71d3(0x114)],..._0x280e43[_0x2a71d3(0x10c)]?{'hint':_0x280e43[_0x2a71d3(0x10c)]}:{},'cause':_0x578a93[_0x2a71d3(0x111)]}};_0x1c03c7=_0xebaf4c[_0x2a71d3(0x103)]==='json'?JSON[_0x2a71d3(0x100)](_0x586378,null,0x2):JSON[_0x2a71d3(0x100)](_0x586378);}return process[_0x2a71d3(0xfe)][_0x2a71d3(0x115)](_0x1c03c7['endsWith']('\x0a')?_0x1c03c7:_0x1c03c7+'\x0a'),!![];}function printPrettyNotice(_0x362a2c){const _0x36bdcc=a276_0x33d0;if(!_0x362a2c?.[_0x36bdcc(0x10f)])return;console[_0x36bdcc(0x111)](_0x362a2c['update'][_0x36bdcc(0x114)]+'\x20('+_0x362a2c[_0x36bdcc(0x10f)]['url']+')');}
1
+ function a304_0x11dd(_0x3d28aa,_0x5d79c8){_0x3d28aa=_0x3d28aa-0xcc;const _0x45bab2=a304_0x45ba();let _0x11ddab=_0x45bab2[_0x3d28aa];return _0x11ddab;}(function(_0x1ca0f5,_0x1517b7){const _0xb0ed8=a304_0x11dd,_0x12527d=_0x1ca0f5();while(!![]){try{const _0x483e69=parseInt(_0xb0ed8(0xe1))/0x1*(parseInt(_0xb0ed8(0xd2))/0x2)+parseInt(_0xb0ed8(0xd4))/0x3*(-parseInt(_0xb0ed8(0xde))/0x4)+parseInt(_0xb0ed8(0xe5))/0x5+parseInt(_0xb0ed8(0xcd))/0x6*(parseInt(_0xb0ed8(0xda))/0x7)+parseInt(_0xb0ed8(0xd3))/0x8*(parseInt(_0xb0ed8(0xe6))/0x9)+parseInt(_0xb0ed8(0xd1))/0xa+parseInt(_0xb0ed8(0xe0))/0xb*(-parseInt(_0xb0ed8(0xdb))/0xc);if(_0x483e69===_0x1517b7)break;else _0x12527d['push'](_0x12527d['shift']());}catch(_0x5897f2){_0x12527d['push'](_0x12527d['shift']());}}}(a304_0x45ba,0xbdd81));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';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(_0x2de0ba,_0x23352c){const _0xf5e5c2=a304_0x11dd,_0x2e22bf=_0x2de0ba['_notice'],{_notice:_0x2fa2db,..._0x38b868}=_0x2de0ba;void _0x2fa2db,baseFormatOutput(_0x38b868,_0x23352c),_0x23352c[_0xf5e5c2(0xe3)]===_0xf5e5c2(0xdd)&&printPrettyNotice(_0x2e22bf);}export function formatCliError(_0x23ad29,_0x299bad){const _0x33f3e7=a304_0x11dd;if(_0x299bad[_0x33f3e7(0xe3)]===_0x33f3e7(0xdd))return![];const _0x277582=_0x23ad29['data'],_0x3cfddf={'ok':![],'command':_0x299bad['command'],'risk':_0x299bad[_0x33f3e7(0xce)],'data':_0x277582??null,'error':{'code':_0x23ad29['code'],'message':_0x23ad29['message'],..._0x23ad29[_0x33f3e7(0xcf)]?{'hint':_0x23ad29['hint']}:{}}},_0x1b9836=_0x299bad[_0x33f3e7(0xe3)]==='json'?JSON[_0x33f3e7(0xd9)](_0x3cfddf,null,0x2):JSON['stringify'](_0x3cfddf);let _0x4c6e78=_0x1b9836;if(_0x299bad[_0x33f3e7(0xdc)]?.[_0x33f3e7(0xd8)]())try{_0x4c6e78=applyJqFilter(_0x1b9836,_0x299bad[_0x33f3e7(0xdc)]);}catch(_0x5c042c){const _0x27bba1=_0x5c042c instanceof CliError?_0x5c042c:CliErrors[_0x33f3e7(0xdf)]('jq:\x20'+(_0x5c042c instanceof Error?_0x5c042c['message']:String(_0x5c042c))),_0x34b0b2={..._0x3cfddf,'error':{'code':_0x27bba1['code'],'message':_0x27bba1[_0x33f3e7(0xd6)],..._0x27bba1[_0x33f3e7(0xcf)]?{'hint':_0x27bba1[_0x33f3e7(0xcf)]}:{},'cause':_0x3cfddf[_0x33f3e7(0xd0)]}};_0x4c6e78=_0x299bad['format']===_0x33f3e7(0xe2)?JSON[_0x33f3e7(0xd9)](_0x34b0b2,null,0x2):JSON['stringify'](_0x34b0b2);}return process[_0x33f3e7(0xe4)][_0x33f3e7(0xd7)](_0x4c6e78['endsWith']('\x0a')?_0x4c6e78:_0x4c6e78+'\x0a'),!![];}function a304_0x45ba(){const _0x1753c9=['validation','10571QVewsQ','966067NSFXJU','json','format','stdout','4978945MCNjUj','18vxgLaQ','update','12TpcaTh','risk','hint','error','9511690KckjfF','2NDxHIq','2577424lEFEAc','3zAlgVo','url','message','write','trim','stringify','4495862dPrCYx','45636PlRqUB','jqFilter','pretty','1638516opxSWQ'];a304_0x45ba=function(){return _0x1753c9;};return a304_0x45ba();}function printPrettyNotice(_0x1f3ee2){const _0x2890a3=a304_0x11dd;if(!_0x1f3ee2?.[_0x2890a3(0xcc)])return;console[_0x2890a3(0xd0)](_0x1f3ee2[_0x2890a3(0xcc)][_0x2890a3(0xd6)]+'\x20('+_0x1f3ee2[_0x2890a3(0xcc)][_0x2890a3(0xd5)]+')');}
@@ -1 +1 @@
1
- function a277_0x1aff(_0x3ba65b,_0x1803ba){_0x3ba65b=_0x3ba65b-0x126;var _0x2f7938=a277_0x2f79();var _0x1afffe=_0x2f7938[_0x3ba65b];return _0x1afffe;}(function(_0x5c7950,_0x29869b){var _0x540a40=a277_0x1aff,_0x31a52a=_0x5c7950();while(!![]){try{var _0x2eb8c8=parseInt(_0x540a40(0x128))/0x1+parseInt(_0x540a40(0x127))/0x2+parseInt(_0x540a40(0x12b))/0x3+parseInt(_0x540a40(0x12c))/0x4+parseInt(_0x540a40(0x126))/0x5*(parseInt(_0x540a40(0x12d))/0x6)+parseInt(_0x540a40(0x12a))/0x7+-parseInt(_0x540a40(0x129))/0x8;if(_0x2eb8c8===_0x29869b)break;else _0x31a52a['push'](_0x31a52a['shift']());}catch(_0x486cbf){_0x31a52a['push'](_0x31a52a['shift']());}}}(a277_0x2f79,0x43df1));function a277_0x2f79(){var _0x1e57b1=['2859594aYcYQU','5XIPybh','693510OCNFGs','307974JFYsBd','12929224bXgIBH','1285956Psnste','277587yxqrNS','1946356AmVsYb'];a277_0x2f79=function(){return _0x1e57b1;};return a277_0x2f79();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a305_0x23c5(){var _0x23d015=['8548554vHClnt','3789836GbjaUF','355162WvLbUa','2760415oyMKaF','684106RnCgrk','3MzQvfs','34185464QwFXwN','2345371HQWloz'];a305_0x23c5=function(){return _0x23d015;};return a305_0x23c5();}(function(_0x147462,_0x4637fe){var _0x295e4d=a305_0x2c46,_0x251896=_0x147462();while(!![]){try{var _0x23859b=-parseInt(_0x295e4d(0x69))/0x1+-parseInt(_0x295e4d(0x67))/0x2*(parseInt(_0x295e4d(0x6a))/0x3)+-parseInt(_0x295e4d(0x66))/0x4+-parseInt(_0x295e4d(0x68))/0x5+-parseInt(_0x295e4d(0x65))/0x6+parseInt(_0x295e4d(0x64))/0x7+parseInt(_0x295e4d(0x6b))/0x8;if(_0x23859b===_0x4637fe)break;else _0x251896['push'](_0x251896['shift']());}catch(_0x555a5d){_0x251896['push'](_0x251896['shift']());}}}(a305_0x23c5,0xc8be8));function a305_0x2c46(_0x179b47,_0x5aa25e){_0x179b47=_0x179b47-0x64;var _0x23c56f=a305_0x23c5();var _0x2c4668=_0x23c56f[_0x179b47];return _0x2c4668;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -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(_0x233eb7,_0x19a5fe){const _0x4d8d9f=a278_0x4a7b,_0xdc6f54=_0x233eb7();while(!![]){try{const _0x2a537e=-parseInt(_0x4d8d9f(0x71))/0x1*(-parseInt(_0x4d8d9f(0x67))/0x2)+parseInt(_0x4d8d9f(0x7b))/0x3+parseInt(_0x4d8d9f(0x65))/0x4*(-parseInt(_0x4d8d9f(0x75))/0x5)+parseInt(_0x4d8d9f(0x7d))/0x6*(-parseInt(_0x4d8d9f(0x74))/0x7)+-parseInt(_0x4d8d9f(0x6a))/0x8+-parseInt(_0x4d8d9f(0x6d))/0x9*(parseInt(_0x4d8d9f(0x72))/0xa)+parseInt(_0x4d8d9f(0x6c))/0xb*(parseInt(_0x4d8d9f(0x64))/0xc);if(_0x2a537e===_0x19a5fe)break;else _0xdc6f54['push'](_0xdc6f54['shift']());}catch(_0x21a31e){_0xdc6f54['push'](_0xdc6f54['shift']());}}}(a278_0x3e24,0x5b10f));function a278_0x3e24(){const _0x2d292d=['63996iPoWoE','2876QhtcwK','map','11266qvCxla','.\x20Run\x20`','some','1961920nArmcb','code','2244PJGoYx','683919vLhoKS','No\x20api.ts\x20found\x20in\x20','flags','join','62NjGdju','30OXxrAj','length','291515KGbgeE','3695jmiOII','type','name','\x22.\x20','alias','Unknown\x20alias\x20\x22','445824jXyZNd','`\x20requires\x20either\x20--code\x20or\x20--alias.','30QKNNvu'];a278_0x3e24=function(){return _0x2d292d;};return a278_0x3e24();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a278_0x4a7b(_0x614c00,_0x2ef800){_0x614c00=_0x614c00-0x64;const _0x3e2411=a278_0x3e24();let _0x4a7b49=_0x3e2411[_0x614c00];return _0x4a7b49;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x186178,_0x21883d,_0x5f3324,_0xd863fb){const _0x54626b=a278_0x4a7b,_0x9aa41c=_0x186178[_0x54626b(0x6f)][_0x54626b(0x69)](_0x58f4da=>_0x58f4da[_0x54626b(0x77)]===_0x54626b(0x6b)&&_0x58f4da[_0x54626b(0x76)]==='string'),_0x6d04df=_0x186178[_0x54626b(0x6f)][_0x54626b(0x69)](_0x4e5f38=>_0x4e5f38[_0x54626b(0x77)]===_0x54626b(0x79)&&_0x4e5f38[_0x54626b(0x76)]==='string');if(!_0x9aa41c||!_0x6d04df)return;const _0x1a94f1=_0x21883d[_0x54626b(0x6b)]?String(_0x21883d[_0x54626b(0x6b)]):'',_0x75c79e=_0x21883d[_0x54626b(0x79)]?String(_0x21883d[_0x54626b(0x79)]):'';if(!_0x1a94f1&&!_0x75c79e)throw CliErrors['validation']('`'+_0xd863fb+_0x54626b(0x7c));if(_0x75c79e&&!_0x1a94f1){const _0x9e833c=resolveAlias(_0x5f3324,_0x75c79e);if(!_0x9e833c){const _0x331410=listAliases(_0x5f3324)[_0x54626b(0x66)](_0x272e84=>_0x272e84[_0x54626b(0x79)]),_0x5e5c25=_0x331410[_0x54626b(0x73)]?'Available\x20aliases:\x20'+_0x331410[_0x54626b(0x70)](',\x20'):_0x54626b(0x6e)+_0x5f3324+_0x54626b(0x68)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation'](_0x54626b(0x7a)+_0x75c79e+_0x54626b(0x78)+_0x5e5c25);}_0x21883d['code']=_0x9e833c;}}
1
+ (function(_0x130cbc,_0x5a7395){const _0x222142=a306_0x25c9,_0x27fcc1=_0x130cbc();while(!![]){try{const _0x3f65e4=parseInt(_0x222142(0x13c))/0x1*(-parseInt(_0x222142(0x13e))/0x2)+-parseInt(_0x222142(0x129))/0x3*(parseInt(_0x222142(0x125))/0x4)+parseInt(_0x222142(0x127))/0x5*(parseInt(_0x222142(0x12b))/0x6)+-parseInt(_0x222142(0x12c))/0x7*(-parseInt(_0x222142(0x13d))/0x8)+-parseInt(_0x222142(0x12a))/0x9+-parseInt(_0x222142(0x126))/0xa*(parseInt(_0x222142(0x12e))/0xb)+parseInt(_0x222142(0x136))/0xc;if(_0x3f65e4===_0x5a7395)break;else _0x27fcc1['push'](_0x27fcc1['shift']());}catch(_0x1fe9d4){_0x27fcc1['push'](_0x27fcc1['shift']());}}}(a306_0x482b,0x32c89));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a306_0x25c9(_0x2ca1b3,_0x38d5a7){_0x2ca1b3=_0x2ca1b3-0x123;const _0x482bdb=a306_0x482b();let _0x25c9ed=_0x482bdb[_0x2ca1b3];return _0x25c9ed;}function a306_0x482b(){const _0x189aec=['`\x20requires\x20either\x20--code\x20or\x20--alias.','map','6205104xLFTOw','filePath','validation','Unknown\x20alias\x20\x22','code','flags','383ovBvzv','8MqSugO','538rJgMrE','\x20api\x20pull`\x20first.','No\x20model\x20aliases\x20found\x20in\x20','120CDEgUH','20PrMePH','1665gQgqCa','\x22.\x20','4527RXqDFr','584982HwRvhj','4458gQcbDo','240667ZOOXuM','alias','2076734EwCGdn','string','.\x20Run\x20`','type','some','name'];a306_0x482b=function(){return _0x189aec;};return a306_0x482b();}import{resolveApiModelSource}from'../api/model-source.js';export function resolveAliasToCode(_0x16a1a7,_0x4bad5b,_0x26f13c,_0x5069bc,_0x12bdb8,_0x2fbcc7){const _0xce5873=a306_0x25c9,_0x13445a=_0x16a1a7['flags']['some'](_0xaa2d66=>_0xaa2d66[_0xce5873(0x133)]===_0xce5873(0x13a)&&_0xaa2d66[_0xce5873(0x131)]===_0xce5873(0x12f)),_0x5be634=_0x16a1a7[_0xce5873(0x13b)][_0xce5873(0x132)](_0x5d780d=>_0x5d780d['name']===_0xce5873(0x12d)&&_0x5d780d[_0xce5873(0x131)]==='string');if(!_0x13445a||!_0x5be634)return;const _0x546b48=_0x4bad5b[_0xce5873(0x13a)]?String(_0x4bad5b[_0xce5873(0x13a)]):'',_0x407a79=_0x4bad5b['alias']?String(_0x4bad5b[_0xce5873(0x12d)]):'';if(!_0x546b48&&!_0x407a79)throw CliErrors['validation']('`'+_0x5069bc+_0xce5873(0x134));if(_0x407a79&&!_0x546b48){const _0xb4174f=resolveApiModelSource(_0x26f13c,_0x12bdb8,_0x2fbcc7),_0x402ad7=resolveAlias(_0x26f13c,_0x407a79,undefined,_0xb4174f[_0xce5873(0x137)],_0xb4174f['profileName']);if(!_0x402ad7){const _0x181783=listAliases(_0x26f13c,undefined,_0xb4174f[_0xce5873(0x137)],_0xb4174f['profileName'])[_0xce5873(0x135)](_0x58e842=>_0x58e842[_0xce5873(0x12d)]),_0x280621=_0x181783['length']?'Available\x20aliases:\x20'+_0x181783['join'](',\x20'):_0xce5873(0x124)+_0x26f13c+_0xce5873(0x130)+CLI_BIN_NAME+_0xce5873(0x123);throw CliErrors[_0xce5873(0x138)](_0xce5873(0x139)+_0x407a79+_0xce5873(0x128)+_0x280621);}_0x4bad5b[_0xce5873(0x13a)]=_0x402ad7;}}
@@ -1 +1 @@
1
- (function(_0x11c3bc,_0x17934e){const _0xbab801=a279_0x3a48,_0x50ceb5=_0x11c3bc();while(!![]){try{const _0x1e44b4=parseInt(_0xbab801(0x12f))/0x1*(parseInt(_0xbab801(0x146))/0x2)+-parseInt(_0xbab801(0x12b))/0x3+-parseInt(_0xbab801(0x174))/0x4*(-parseInt(_0xbab801(0x143))/0x5)+-parseInt(_0xbab801(0x17b))/0x6+-parseInt(_0xbab801(0x161))/0x7*(parseInt(_0xbab801(0x17a))/0x8)+-parseInt(_0xbab801(0x14a))/0x9+parseInt(_0xbab801(0x167))/0xa;if(_0x1e44b4===_0x17934e)break;else _0x50ceb5['push'](_0x50ceb5['shift']());}catch(_0x397583){_0x50ceb5['push'](_0x50ceb5['shift']());}}}(a279_0x21a3,0x8c25d));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 a279_0x3fd8e2}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x28b814){const _0x1a4ca7=a279_0x3a48;return typeof _0x28b814===_0x1a4ca7(0x16f)&&_0x28b814['trim']()?_0x28b814[_0x1a4ca7(0x151)]():undefined;}function resolveEnvAppCode(){const _0x502fb7=a279_0x3a48,_0x4a953f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4a953f)return{'name':_0x502fb7(0x168),'value':_0x4a953f};const _0x5b584b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5b584b)return{'name':_0x502fb7(0x138),'value':_0x5b584b};return undefined;}function hasExplicitAppCode(_0x163496,_0x4d8d0e){const _0x1e125e=a279_0x3a48;return!!(stringFlag(_0x163496[_0x1e125e(0x162)])||stringFlag(_0x4d8d0e['appcode']));}function assertEnvAppCodeNotIgnored(_0x5bfae2,_0xe32790,_0x3cb5f6){const _0xae3f49=a279_0x3a48;if(!_0xe32790||_0x3cb5f6||_0x5bfae2===_0xe32790[_0xae3f49(0x160)])return;const _0x3c4ce9=_0x5bfae2?_0xae3f49(0x175)+_0x5bfae2+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0xae3f49(0x16a)](_0xe32790[_0xae3f49(0x153)]+'='+_0xe32790[_0xae3f49(0x160)]+_0xae3f49(0x15c)+_0x3c4ce9+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0xe32790['name']+'\x22.'));}export function createPipelineEnv(_0x594114,_0x1e843c,_0x5a27c9=[]){const _0x37bcf6=a279_0x3a48;return{'rawFlags':_0x1e843c,'args':_0x5a27c9,'resolveAppCode':()=>_0x594114['appCode'],'resolveCookie':()=>_0x594114[_0x37bcf6(0x13c)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a279_0x3fd8e2(_0x1e843c),'defaultFormat':_0x594114[_0x37bcf6(0x140)],'defaultPageSize':_0x594114[_0x37bcf6(0x137)],'defaultVerbose':_0x594114[_0x37bcf6(0x136)],'apiDir':_0x594114[_0x37bcf6(0x179)],'riskLevel':_0x594114[_0x37bcf6(0x171)],'selectedAppName':_0x594114[_0x37bcf6(0x172)],'mergedCli':{'defaultApp':_0x594114[_0x37bcf6(0x159)],'currentApp':_0x594114[_0x37bcf6(0x127)],'appCode':_0x594114[_0x37bcf6(0x150)],'apps':_0x594114[_0x37bcf6(0x152)]}};}export function createRabetbaseRunnerAdapter(_0x579c57={}){const _0x4dacdc=a279_0x3a48;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4dacdc(0x163)](_0x565528=>PIPELINE_FLAG_NAMES[_0x4dacdc(0x16e)](_0x565528[_0x4dacdc(0x153)]))[_0x4dacdc(0x155)](({name:_0x5c3556,type:_0x420dff,description:_0x19f332})=>({'name':_0x5c3556,'type':_0x420dff,'description':_0x19f332})),'formatOutput':_0x579c57[_0x4dacdc(0x12a)]??formatOutput,'getCommandLabel'(_0x1b87a0){const _0x3547f7=_0x4dacdc;return CLI_BIN_NAME+'\x20'+_0x1b87a0[_0x3547f7(0x130)]+'\x20'+_0x1b87a0['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2bf24b,{def:_0x2e9543}){const _0x5ec18e=_0x4dacdc,_0x3a8822=_0x2bf24b[_0x5ec18e(0x15d)]('Edit\x20the\x20config\x20file\x20manually')?_0x5ec18e(0x135):_0x5ec18e(0x14f)+_0x2e9543['risk']+'\x22\x20if\x20this\x20operation\x20is\x20intended.\x20'+'AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.';return CliErrors[_0x5ec18e(0x16a)](_0x2bf24b+_0x5ec18e(0x128)+_0x3a8822);}},async 'prepare'(_0x128327,_0x14a0fe,_0x5e5f08,_0x48add1){const _0x3c741a=_0x4dacdc,_0xddb0c=_0x14a0fe[_0x3c741a(0x179)]||DEFAULT_API_DIR;resolveAliasToCode(_0x128327,_0x5e5f08,_0xddb0c,_0x48add1);const _0x1a620a=resolveCommandAuthMode(_0x128327);let _0x52dc6e='';if(_0x1a620a!==_0x3c741a(0x17c)){_0x52dc6e=_0x14a0fe['resolveCookie']()||'';if(!_0x52dc6e){if(_0x1a620a==='required')throw CliErrors[_0x3c741a(0x170)]();}else{const {setActiveCookie:_0x2ca5c2}=await import(_0x3c741a(0x14e));_0x2ca5c2(_0x52dc6e);}}const _0x48ab99=_0x14a0fe['resolveAppCode']()??'';if(_0x128327[_0x3c741a(0x15a)]!==![]){const _0x2a51d0=hasExplicitAppCode(_0x5e5f08,_0x14a0fe[_0x3c741a(0x176)]),_0x155933=_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x152)]??{},_0x59f472=_0x14a0fe['selectedAppName']||_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x127)]||_0x14a0fe[_0x3c741a(0x15b)]?.[_0x3c741a(0x159)];if(!_0x2a51d0&&_0x59f472&&!_0x155933[_0x59f472]){const _0x5edf4e=Object['keys'](_0x155933);throw CliErrors[_0x3c741a(0x16a)](_0x3c741a(0x12c)+_0x59f472+_0x3c741a(0x149),_0x5edf4e[_0x3c741a(0x142)]>0x0?_0x3c741a(0x132)+_0x5edf4e[_0x3c741a(0x131)](',\x20')+'.\x20Use\x20--app/--appcode,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x3c741a(0x12e):_0x3c741a(0x16c)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.');}assertEnvAppCodeNotIgnored(_0x48ab99,resolveEnvAppCode(),_0x2a51d0);if(!_0x48ab99){const _0x8cd94=Object['keys'](_0x155933);if(!_0x59f472&&_0x8cd94[_0x3c741a(0x142)]>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+_0x3c741a(0x13b)+_0x8cd94[_0x3c741a(0x131)](',\x20')+'.');throw CliErrors[_0x3c741a(0x156)](_0x3c741a(0x139)+CLI_BIN_NAME+_0x3c741a(0x144));}}return{'defaults':{'booleans':{'verbose':_0x14a0fe[_0x3c741a(0x157)]},'numbers':{'pagesize':_0x14a0fe[_0x3c741a(0x15e)]}},'extras':{'appCode':_0x48ab99,'cookie':_0x52dc6e,'apiDomain':_0x14a0fe[_0x3c741a(0x141)](),'apiDir':_0xddb0c,'selectedAppName':_0x14a0fe['selectedAppName'],'mergedCli':_0x14a0fe['mergedCli']}};},'confirmHighRisk':_0x579c57[_0x4dacdc(0x14b)]??(async({env:_0x790e59,commandLabel:_0x1e054e})=>{const _0x4cb172=_0x4dacdc;if(_0x790e59[_0x4cb172(0x178)])throw CliErrors[_0x4cb172(0x16a)](_0x4cb172(0x14c)+_0x1e054e+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4cb172(0x173)+_0x1e054e,_0x4cb172(0x14d)],'createCancelledError':_0x3a7cc4=>CliErrors[_0x4cb172(0x133)](_0x3a7cc4)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x1b7522=a279_0x3a48,{clearActiveCookie:_0xd65922}=await import(_0x1b7522(0x14e));_0xd65922();}export async function finalizeRabetbaseRuntimeState(){const _0x4f8f9f=a279_0x3a48;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x1a12f0},{initEnv:_0x10e592}]=await Promise[_0x4f8f9f(0x16b)]([import(_0x4f8f9f(0x15f)),import(_0x4f8f9f(0x12d))]);_0x1a12f0(),_0x10e592('production');}}export async function runCommand(_0x35c099,_0x2b8d09,_0x70bd06=terminalRunnerAdapter){const _0x548776=a279_0x3a48;assertRejectedFlags(_0x35c099,_0x2b8d09[_0x548776(0x176)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x35c099)?withUpdateNotice(_0x35c099):_0x35c099,_0x2b8d09,_0x70bd06);}function assertRejectedFlags(_0x43f989,_0x59b375){const _0x4dcf0f=a279_0x3a48;for(const _0x4fa557 of _0x43f989[_0x4dcf0f(0x16d)]??[]){const _0x13a09f=GLOBAL_FLAGS['find'](_0x268c0c=>_0x268c0c[_0x4dcf0f(0x153)]===_0x4fa557[_0x4dcf0f(0x153)]),_0x3145b2=new Set([_0x4fa557['name'],toCamelCase(_0x4fa557[_0x4dcf0f(0x153)]),_0x13a09f?.[_0x4dcf0f(0x166)]]),_0x1de9ac=[..._0x3145b2][_0x4dcf0f(0x13e)](_0x465649=>{if(!_0x465649)return![];const _0x358281=_0x59b375[_0x465649];return _0x358281!==undefined&&_0x358281!==null&&_0x358281!==![];});if(_0x1de9ac)throw CliErrors['validation'](_0x4fa557[_0x4dcf0f(0x154)],_0x4fa557[_0x4dcf0f(0x13a)]);}}function toCamelCase(_0x452172){const _0x2f6977=a279_0x3a48;return _0x452172[_0x2f6977(0x129)](/-([a-z])/g,(_0x568e47,_0x35d4d4)=>_0x35d4d4[_0x2f6977(0x147)]());}function shouldAttachUpdateNotice(_0x5897c4){const _0x516ed6=a279_0x3a48;if(_0x5897c4[_0x516ed6(0x13d)]===![])return![];return![_0x516ed6(0x134),_0x516ed6(0x148),_0x516ed6(0x145)][_0x516ed6(0x15d)](_0x5897c4[_0x516ed6(0x130)]);}function withUpdateNotice(_0x536cc9){return{..._0x536cc9,async 'execute'(_0x1bd63b){const _0x7e2229=a279_0x3a48,_0x2463ce=shouldResolveUpdateNotice(_0x1bd63b)?resolveLatestUpdateNotice()[_0x7e2229(0x169)](()=>null):Promise[_0x7e2229(0x158)](null),_0x40042c=await _0x536cc9['execute'](_0x1bd63b);return attachUpdateNotice(_0x40042c,await _0x2463ce);}};}function a279_0x21a3(){const _0x58a93c=['all','Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`','rejectedFlags','has','string','authRequired','riskLevel','explicitAppName','⚠\x20\x20High-risk\x20operation:\x20','393332eQehaO','Current\x20resolved\x20appcode\x20is\x20\x22','rawFlags','_notice','isNonInteractive','apiDir','152KHYTRS','3200886iKeirL','none','currentApp','\x0a\x20\x20','replace','formatOutput','2287890XERJTC','App\x20\x22','../constant/env.js','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','18KFGlig','service','join','Available:\x20','cancelled','update','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','verbose','pageSize','LOVRABET_APPCODE','Set\x20appcode\x20via\x20`','hint','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','cookie','hasFormat','some','nonInteractive','format','resolveApiDomain','length','45MOjiXu','\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','doctor','98652HkAYwC','toUpperCase','schema','\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.','3585510HArlEr','confirmHighRisk','High-risk\x20operation\x20`','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','appCode','trim','apps','name','message','map','configMissing','defaultVerbose','resolve','defaultApp','requiresAppCode','mergedCli','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','includes','defaultPageSize','../constant/domain.js','value','135667JHWqWM','appcode','filter','object','pretty','meowKey','8639200dbFDHO','RABETBASE_APPCODE','catch','validation'];a279_0x21a3=function(){return _0x58a93c;};return a279_0x21a3();}function a279_0x3a48(_0x8bc824,_0xe94a12){_0x8bc824=_0x8bc824-0x127;const _0x21a31c=a279_0x21a3();let _0x3a48d7=_0x21a31c[_0x8bc824];return _0x3a48d7;}function shouldResolveUpdateNotice(_0x3716f2){const _0x1ce590=a279_0x3a48;return _0x3716f2[_0x1ce590(0x140)]===_0x1ce590(0x165)&&!_0x3716f2[_0x1ce590(0x13f)];}function attachUpdateNotice(_0x5380c7,_0x1978ee){const _0x41eb62=a279_0x3a48;if(!_0x1978ee||!_0x5380c7||typeof _0x5380c7!==_0x41eb62(0x164))return _0x5380c7;const _0x11dfee=_0x5380c7,_0x2651aa=typeof _0x11dfee[_0x41eb62(0x177)]===_0x41eb62(0x164)&&_0x11dfee[_0x41eb62(0x177)]!==null?_0x11dfee[_0x41eb62(0x177)]:{};return{..._0x11dfee,'_notice':{..._0x2651aa,'update':_0x1978ee}};}
1
+ (function(_0x48f20b,_0x35cb5e){const _0x242022=a307_0x4473,_0x4ed0a5=_0x48f20b();while(!![]){try{const _0x364ae9=-parseInt(_0x242022(0x154))/0x1*(parseInt(_0x242022(0x178))/0x2)+parseInt(_0x242022(0x140))/0x3*(parseInt(_0x242022(0x162))/0x4)+-parseInt(_0x242022(0x12c))/0x5*(parseInt(_0x242022(0x14d))/0x6)+-parseInt(_0x242022(0x166))/0x7*(-parseInt(_0x242022(0x16f))/0x8)+-parseInt(_0x242022(0x149))/0x9+parseInt(_0x242022(0x124))/0xa*(parseInt(_0x242022(0x125))/0xb)+-parseInt(_0x242022(0x177))/0xc*(-parseInt(_0x242022(0x12e))/0xd);if(_0x364ae9===_0x35cb5e)break;else _0x4ed0a5['push'](_0x4ed0a5['shift']());}catch(_0x20f355){_0x4ed0a5['push'](_0x4ed0a5['shift']());}}}(a307_0x2ee3,0x3a3e1));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';function a307_0x4473(_0x20d156,_0x267c06){_0x20d156=_0x20d156-0x124;const _0x2ee304=a307_0x2ee3();let _0x447334=_0x2ee304[_0x20d156];return _0x447334;}import{isNonInteractive as a307_0x16c093}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x2994d6){const _0x25944d=a307_0x4473;return typeof _0x2994d6===_0x25944d(0x17b)&&_0x2994d6[_0x25944d(0x163)]()?_0x2994d6[_0x25944d(0x163)]():undefined;}function resolveEnvAppCode(){const _0x292eb1=a307_0x4473,_0xd6a1ad=stringFlag(process.env.RABETBASE_APPCODE);if(_0xd6a1ad)return{'name':_0x292eb1(0x17a),'value':_0xd6a1ad};const _0x103120=stringFlag(process.env.LOVRABET_APPCODE);if(_0x103120)return{'name':_0x292eb1(0x146),'value':_0x103120};return undefined;}function hasExplicitAppCode(_0x580229,_0x301840){const _0x2f0eb7=a307_0x4473;return!!(stringFlag(_0x580229[_0x2f0eb7(0x139)])||stringFlag(_0x301840['appcode']));}function assertEnvAppCodeNotIgnored(_0x1fa75f,_0x5c091e,_0x3f32f1){const _0x3be3d7=a307_0x4473;if(!_0x5c091e||_0x3f32f1||_0x1fa75f===_0x5c091e[_0x3be3d7(0x15c)])return;const _0x39e93c=_0x1fa75f?_0x3be3d7(0x160)+_0x1fa75f+'\x22.':_0x3be3d7(0x15f);throw CliErrors[_0x3be3d7(0x153)](_0x5c091e[_0x3be3d7(0x128)]+'='+_0x5c091e['value']+_0x3be3d7(0x159)+_0x39e93c+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x5c091e[_0x3be3d7(0x128)]+'\x22.'));}export function createPipelineEnv(_0x81c604,_0x32d53e,_0x2c785a=[]){const _0xc4443a=a307_0x4473;return{'rawFlags':_0x32d53e,'args':_0x2c785a,'resolveAppCode':()=>_0x81c604[_0xc4443a(0x145)],'resolveCookie':()=>_0x81c604[_0xc4443a(0x134)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a307_0x16c093(_0x32d53e),'defaultFormat':_0x81c604[_0xc4443a(0x155)],'defaultPageSize':_0x81c604['pageSize'],'defaultVerbose':_0x81c604[_0xc4443a(0x172)],'apiDir':_0x81c604[_0xc4443a(0x157)],'riskLevel':_0x81c604[_0xc4443a(0x16e)],'selectedAppName':_0x81c604['explicitAppName'],'mergedCli':{'defaultApp':_0x81c604[_0xc4443a(0x13d)],'currentApp':_0x81c604[_0xc4443a(0x176)],'appCode':_0x81c604[_0xc4443a(0x145)],'apps':_0x81c604['apps']}};}export function createRabetbaseRunnerAdapter(_0x448c88={}){const _0x2399b3=a307_0x4473;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x3b3e82=>PIPELINE_FLAG_NAMES['has'](_0x3b3e82[_0x2399b3(0x128)]))['map'](({name:_0x1c6109,type:_0xaec9a4,description:_0x2e8e59})=>({'name':_0x1c6109,'type':_0xaec9a4,'description':_0x2e8e59})),'formatOutput':_0x448c88[_0x2399b3(0x12b)]??formatOutput,'getCommandLabel'(_0x10ed9f){const _0x12c042=_0x2399b3;return CLI_BIN_NAME+'\x20'+_0x10ed9f[_0x12c042(0x171)]+'\x20'+_0x10ed9f['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x59c77c,{def:_0x22c52b}){const _0x3c25be=_0x2399b3,_0x309019=_0x59c77c['includes']('Edit\x20the\x20config\x20file\x20manually')?_0x3c25be(0x14a):'A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22'+_0x22c52b[_0x3c25be(0x165)]+_0x3c25be(0x175)+_0x3c25be(0x14a);return CliErrors[_0x3c25be(0x153)](_0x59c77c+'\x0a\x20\x20'+_0x309019);}},async 'prepare'(_0x3168be,_0x380108,_0x2e64bc,_0x52d341){const _0x4f84ef=_0x2399b3,_0x2581f9=_0x380108[_0x4f84ef(0x157)]||DEFAULT_API_DIR,_0x11939c=hasExplicitAppCode(_0x2e64bc,_0x380108['rawFlags']),_0x3f967c=stringFlag(_0x2e64bc[_0x4f84ef(0x139)])||stringFlag(_0x380108[_0x4f84ef(0x13b)][_0x4f84ef(0x139)]),_0x5c0d30=_0x380108[_0x4f84ef(0x150)]?.[_0x4f84ef(0x14f)]??{},_0x3402d7=_0x380108['selectedAppName']||_0x380108['mergedCli']?.[_0x4f84ef(0x176)]||_0x380108[_0x4f84ef(0x150)]?.[_0x4f84ef(0x13d)],_0x4c54e1=_0x3f967c?Object['entries'](_0x5c0d30)[_0x4f84ef(0x13a)](([,_0x1b0ad7])=>_0x1b0ad7[_0x4f84ef(0x139)]===_0x3f967c)[_0x4f84ef(0x131)](([_0x4658ed])=>_0x4658ed):[];if(_0x4c54e1[_0x4f84ef(0x129)]>0x1&&!_0x380108['selectedAppName'])throw CliErrors[_0x4f84ef(0x153)](_0x4f84ef(0x14e)+_0x3f967c+_0x4f84ef(0x141)+_0x4c54e1[_0x4f84ef(0x16d)](',\x20')+'.',_0x4f84ef(0x168));resolveAliasToCode(_0x3168be,_0x2e64bc,_0x2581f9,_0x52d341,_0x380108['resolveAppCode'](),_0x3402d7);const _0x1094b7=resolveCommandAuthMode(_0x3168be);let _0x27c7f6='';if(_0x1094b7!=='none'){_0x27c7f6=_0x380108[_0x4f84ef(0x130)]()||'';if(!_0x27c7f6){if(_0x1094b7===_0x4f84ef(0x158))throw CliErrors[_0x4f84ef(0x147)]();}else{const {setActiveCookie:_0x38a318}=await import(_0x4f84ef(0x152));_0x38a318(_0x27c7f6);}}const _0x359be4=_0x380108['resolveAppCode']()??'';if(_0x3168be[_0x4f84ef(0x16c)]!==![]){if(!_0x11939c&&_0x3402d7&&!_0x5c0d30[_0x3402d7]){const _0x21120c=Object[_0x4f84ef(0x13e)](_0x5c0d30);throw CliErrors[_0x4f84ef(0x153)]('App\x20\x22'+_0x3402d7+'\x22\x20is\x20selected\x20but\x20not\x20defined\x20in\x20the\x20effective\x20project\x20apps.',_0x21120c[_0x4f84ef(0x129)]>0x0?_0x4f84ef(0x13f)+_0x21120c['join'](',\x20')+_0x4f84ef(0x127)+CLI_BIN_NAME+'\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.':'Use\x20--appcode,\x20add\x20the\x20app\x20to\x20the\x20project\x20workspace,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x4f84ef(0x15d));}assertEnvAppCodeNotIgnored(_0x359be4,resolveEnvAppCode(),_0x11939c);if(!_0x359be4){const _0x3401ee=Object[_0x4f84ef(0x13e)](_0x5c0d30);if(!_0x3402d7&&_0x3401ee['length']>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+_0x4f84ef(0x16a)+_0x3401ee[_0x4f84ef(0x16d)](',\x20')+'.');throw CliErrors[_0x4f84ef(0x17c)](_0x4f84ef(0x136)+CLI_BIN_NAME+'\x20workspace\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}}return{'defaults':{'booleans':{'verbose':_0x380108[_0x4f84ef(0x137)]},'numbers':{'pagesize':_0x380108[_0x4f84ef(0x14c)]}},'extras':{'appCode':_0x359be4,'cookie':_0x27c7f6,'apiDomain':_0x380108[_0x4f84ef(0x126)](),'apiDir':_0x2581f9,'selectedAppName':_0x380108[_0x4f84ef(0x14b)],'mergedCli':_0x380108[_0x4f84ef(0x150)]}};},'confirmHighRisk':_0x448c88[_0x2399b3(0x143)]??(async({env:_0x273f4a,commandLabel:_0x20f2f7})=>{const _0x1970c8=_0x2399b3;if(_0x273f4a[_0x1970c8(0x15a)])throw CliErrors[_0x1970c8(0x153)](_0x1970c8(0x156)+_0x20f2f7+_0x1970c8(0x169));await requireConfirmationPrompt({'lines':[_0x1970c8(0x144)+_0x20f2f7,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3abb9d=>CliErrors[_0x1970c8(0x12a)](_0x3abb9d)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x15ac28=a307_0x4473,{clearActiveCookie:_0x24d9cc}=await import(_0x15ac28(0x152));_0x24d9cc();}export async function finalizeRabetbaseRuntimeState(){const _0x451e5f=a307_0x4473;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x2edbec},{initEnv:_0x4da25d}]=await Promise[_0x451e5f(0x133)]([import(_0x451e5f(0x173)),import(_0x451e5f(0x132))]);_0x2edbec(),_0x4da25d(_0x451e5f(0x138));}}export async function runCommand(_0x231483,_0x52985b,_0x4dad16=terminalRunnerAdapter){assertRejectedFlags(_0x231483,_0x52985b['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x231483)?withUpdateNotice(_0x231483):_0x231483,_0x52985b,_0x4dad16);}function assertRejectedFlags(_0x2daf1c,_0x5a9749){const _0x42bb65=a307_0x4473;for(const _0x1d7f46 of _0x2daf1c[_0x42bb65(0x164)]??[]){const _0xda01a3=GLOBAL_FLAGS['find'](_0x5c22ed=>_0x5c22ed[_0x42bb65(0x128)]===_0x1d7f46[_0x42bb65(0x128)]),_0xebeab3=new Set([_0x1d7f46[_0x42bb65(0x128)],toCamelCase(_0x1d7f46[_0x42bb65(0x128)]),_0xda01a3?.[_0x42bb65(0x13c)]]),_0x49bc32=[..._0xebeab3][_0x42bb65(0x151)](_0x268890=>{if(!_0x268890)return![];const _0x1efa06=_0x5a9749[_0x268890];return _0x1efa06!==undefined&&_0x1efa06!==null&&_0x1efa06!==![];});if(_0x49bc32)throw CliErrors[_0x42bb65(0x153)](_0x1d7f46[_0x42bb65(0x12f)],_0x1d7f46[_0x42bb65(0x12d)]);}}function toCamelCase(_0x3e9109){const _0x5d590f=a307_0x4473;return _0x3e9109['replace'](/-([a-z])/g,(_0x4d959a,_0x1bee56)=>_0x1bee56[_0x5d590f(0x15e)]());}function shouldAttachUpdateNotice(_0xd1819d){const _0x4f12f5=a307_0x4473;if(_0xd1819d[_0x4f12f5(0x167)]===![])return![];return![_0x4f12f5(0x174),'schema',_0x4f12f5(0x148)][_0x4f12f5(0x15b)](_0xd1819d[_0x4f12f5(0x171)]);}function a307_0x2ee3(){const _0x21fda8=['130tPWuDe','object','RABETBASE_APPCODE','string','configMissing','40xeDywk','331309VYyDRH','resolveApiDomain','.\x20Use\x20--app/--appcode,\x20or\x20run\x20`','name','length','cancelled','formatOutput','1481055ATtVMs','hint','5447vrWPpi','message','resolveCookie','map','../constant/env.js','all','cookie','pretty','Set\x20appcode\x20via\x20`','defaultVerbose','production','appcode','filter','rawFlags','meowKey','defaultApp','keys','Available:\x20','12HDcBfO','\x22\x20belongs\x20to\x20multiple\x20app\x20profiles:\x20','nonInteractive','confirmHighRisk','⚠\x20\x20High-risk\x20operation:\x20','appCode','LOVRABET_APPCODE','authRequired','doctor','4269906mnaKxC','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','selectedAppName','defaultPageSize','6neaXed','AppCode\x20\x22','apps','mergedCli','some','../core/api-client.js','validation','3499ZgrMLI','format','High-risk\x20operation\x20`','apiDir','required','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','isNonInteractive','includes','value','\x20config\x20delete\x20defaultApp`\x20to\x20repair\x20the\x20selection.','toUpperCase','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','Current\x20resolved\x20appcode\x20is\x20\x22','resolve','148612ffAARs','trim','rejectedFlags','risk','161BReWWB','hasFormat','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','\x20workspace\x20use\x20--app\x20<name>`.\x20Available:\x20','_notice','requiresAppCode','join','riskLevel','131048ijmTPS','catch','service','verbose','../constant/domain.js','update','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','currentApp','16920tPXyhJ'];a307_0x2ee3=function(){return _0x21fda8;};return a307_0x2ee3();}function withUpdateNotice(_0x479362){return{..._0x479362,async 'execute'(_0x4ae37b){const _0xc0933f=a307_0x4473,_0x28999f=shouldResolveUpdateNotice(_0x4ae37b)?resolveLatestUpdateNotice()[_0xc0933f(0x170)](()=>null):Promise[_0xc0933f(0x161)](null),_0x132b95=await _0x479362['execute'](_0x4ae37b);return attachUpdateNotice(_0x132b95,await _0x28999f);}};}function shouldResolveUpdateNotice(_0x15c1df){const _0x36c74a=a307_0x4473;return _0x15c1df[_0x36c74a(0x155)]===_0x36c74a(0x135)&&!_0x15c1df[_0x36c74a(0x142)];}function attachUpdateNotice(_0x2d0d62,_0x54392c){const _0x1347dc=a307_0x4473;if(!_0x54392c||!_0x2d0d62||typeof _0x2d0d62!==_0x1347dc(0x179))return _0x2d0d62;const _0x8e699c=_0x2d0d62,_0x4358a7=typeof _0x8e699c[_0x1347dc(0x16b)]==='object'&&_0x8e699c[_0x1347dc(0x16b)]!==null?_0x8e699c[_0x1347dc(0x16b)]:{};return{..._0x8e699c,'_notice':{..._0x4358a7,'update':_0x54392c}};}
@@ -1 +1 @@
1
- (function(_0x2cd282,_0x2954e4){const _0x305af2=a280_0x5034,_0x4d9bc3=_0x2cd282();while(!![]){try{const _0xfc468d=parseInt(_0x305af2(0x8d))/0x1+-parseInt(_0x305af2(0x89))/0x2*(parseInt(_0x305af2(0x87))/0x3)+-parseInt(_0x305af2(0x88))/0x4*(-parseInt(_0x305af2(0x8b))/0x5)+parseInt(_0x305af2(0x86))/0x6*(-parseInt(_0x305af2(0x8c))/0x7)+parseInt(_0x305af2(0x83))/0x8*(-parseInt(_0x305af2(0x84))/0x9)+parseInt(_0x305af2(0x8e))/0xa+parseInt(_0x305af2(0x8a))/0xb;if(_0xfc468d===_0x2954e4)break;else _0x4d9bc3['push'](_0x4d9bc3['shift']());}catch(_0x461dbd){_0x4d9bc3['push'](_0x4d9bc3['shift']());}}}(a280_0x1fcc,0x29db0));import{buildSchemaPayload as a280_0x5716be}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a280_0x1fcc(){const _0x339028=['../commands/registry.js','896838askUhT','9rTsCmr','52NDchrk','204908Pniddw','3909246HrPOQk','39810gAqHHX','14NglprE','217088NqrOvs','1970810koVMBX','254168nReRsA','27OVzQZo'];a280_0x1fcc=function(){return _0x339028;};return a280_0x1fcc();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a280_0x5034(_0x5947bc,_0x340101){_0x5947bc=_0x5947bc-0x83;const _0x1fcc0e=a280_0x1fcc();let _0x50342c=_0x1fcc0e[_0x5947bc];return _0x50342c;}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x3b16aa=a280_0x5034,{serviceRegistry:_0x53897b,findDefinition:_0x2d22d6}=await import(_0x3b16aa(0x85));return a280_0x5716be({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x53897b,'buildAllFlags':buildAllFlags,'findDefinition':_0x2d22d6});}
1
+ (function(_0x41a7b5,_0x234856){const _0x2f9a6d=a308_0x1794,_0x479967=_0x41a7b5();while(!![]){try{const _0x50a2a4=-parseInt(_0x2f9a6d(0x122))/0x1+parseInt(_0x2f9a6d(0x11c))/0x2*(-parseInt(_0x2f9a6d(0x11f))/0x3)+parseInt(_0x2f9a6d(0x11d))/0x4+-parseInt(_0x2f9a6d(0x120))/0x5*(-parseInt(_0x2f9a6d(0x119))/0x6)+-parseInt(_0x2f9a6d(0x11a))/0x7+-parseInt(_0x2f9a6d(0x121))/0x8+parseInt(_0x2f9a6d(0x11b))/0x9;if(_0x50a2a4===_0x234856)break;else _0x479967['push'](_0x479967['shift']());}catch(_0x5b5b69){_0x479967['push'](_0x479967['shift']());}}}(a308_0x3b61,0x5d0c9));import{buildSchemaPayload as a308_0x19cc24}from'@lovrabet/cli-framework';function a308_0x1794(_0x39a15c,_0x2cceb0){_0x39a15c=_0x39a15c-0x119;const _0x3b6197=a308_0x3b61();let _0x1794f4=_0x3b6197[_0x39a15c];return _0x1794f4;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a308_0x3b61(){const _0x3df63b=['23875HAWwYH','1223336KCsiOk','148211SUsOZN','414ynVslB','789572CazWPi','5243913RaAkxL','349454gOiDzD','230592qFauRQ','../commands/registry.js','3yUkwrw'];a308_0x3b61=function(){return _0x3df63b;};return a308_0x3b61();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2cd134=a308_0x1794,{serviceRegistry:_0x183fbe,findDefinition:_0x418fb6}=await import(_0x2cd134(0x11e));return a308_0x19cc24({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x183fbe,'buildAllFlags':buildAllFlags,'findDefinition':_0x418fb6});}
@@ -1 +1 @@
1
- (function(_0x33902f,_0x37d140){const _0x2893bf=a281_0xd3f8,_0x2ea572=_0x33902f();while(!![]){try{const _0x18f76f=parseInt(_0x2893bf(0xc5))/0x1+-parseInt(_0x2893bf(0xae))/0x2*(-parseInt(_0x2893bf(0xc2))/0x3)+parseInt(_0x2893bf(0xad))/0x4+parseInt(_0x2893bf(0xb6))/0x5*(parseInt(_0x2893bf(0xbf))/0x6)+-parseInt(_0x2893bf(0xaf))/0x7+parseInt(_0x2893bf(0xb2))/0x8+-parseInt(_0x2893bf(0xbb))/0x9*(parseInt(_0x2893bf(0xb3))/0xa);if(_0x18f76f===_0x37d140)break;else _0x2ea572['push'](_0x2ea572['shift']());}catch(_0x26ff12){_0x2ea572['push'](_0x2ea572['shift']());}}}(a281_0x3a79,0xb2f6e));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x5953ef,_0x192d30){const _0x1455d1=a281_0xd3f8;if(!_0x5953ef['strictFlags'])return;const _0xac82e4=new Set([_0x1455d1(0xc1),_0x1455d1(0xbc)]),_0x3bcc7c=GLOBAL_FLAGS[_0x1455d1(0xb7)](_0x14d401=>PIPELINE_FLAG_NAMES[_0x1455d1(0xc6)](_0x14d401['name']));for(const _0x3053d9 of[..._0x5953ef['flags'],..._0x3bcc7c]){addFlagCandidates(_0xac82e4,_0x3053d9);}for(const [_0x437b27,_0x4ba1d7]of Object[_0x1455d1(0xc3)](_0x192d30)){if(!isExplicitValue(_0x4ba1d7)||_0xac82e4[_0x1455d1(0xc6)](_0x437b27))continue;const _0x1556dd=GLOBAL_FLAGS[_0x1455d1(0xb9)](_0x19947c=>_0x19947c[_0x1455d1(0xc8)]===_0x437b27)?.[_0x1455d1(0xbd)]??toKebabCase(_0x437b27);throw CliErrors['validation'](_0x1455d1(0xc0)+_0x1556dd+_0x1455d1(0xc4)+CLI_BIN_NAME+'\x20'+_0x5953ef[_0x1455d1(0xb5)]+'\x20'+_0x5953ef['command']+'`.',_0x1455d1(0xc7)+CLI_BIN_NAME+'\x20'+_0x5953ef[_0x1455d1(0xb5)]+'\x20'+_0x5953ef['command']+_0x1455d1(0xb4));}}function addFlagCandidates(_0x30ffe3,_0x5e1d81){const _0xa25cad=a281_0xd3f8,_0x30f2d3=_0xa25cad(0xc8)in _0x5e1d81?[_0x5e1d81[_0xa25cad(0xbd)],_0x5e1d81[_0xa25cad(0xc8)]]:[_0x5e1d81[_0xa25cad(0xbd)],_0x5e1d81[_0xa25cad(0xb1)]];for(const _0xfe4ef1 of _0x30f2d3){if(!_0xfe4ef1)continue;_0x30ffe3['add'](_0xfe4ef1),_0x30ffe3[_0xa25cad(0xbe)](toCamelCase(_0xfe4ef1));}}function isExplicitValue(_0x9ab0a1){const _0x4c3f32=a281_0xd3f8;return _0x9ab0a1!==undefined&&_0x9ab0a1!==null&&_0x9ab0a1!==![]&&(!Array[_0x4c3f32(0xb8)](_0x9ab0a1)||_0x9ab0a1[_0x4c3f32(0xac)]>0x0);}function a281_0xd3f8(_0x3c67cb,_0x16bc2d){_0x3c67cb=_0x3c67cb-0xac;const _0x3a7934=a281_0x3a79();let _0xd3f836=_0x3a7934[_0x3c67cb];return _0xd3f836;}function toCamelCase(_0x1e1c84){const _0x2bdb71=a281_0xd3f8;return _0x1e1c84[_0x2bdb71(0xb0)](/-([a-z])/g,(_0x1de80e,_0x365631)=>_0x365631[_0x2bdb71(0xba)]());}function toKebabCase(_0x3d874c){const _0x31010c=a281_0xd3f8;return _0x3d874c[_0x31010c(0xb0)](/([a-z0-9])([A-Z])/g,_0x31010c(0xc9))['toLowerCase']();}function a281_0x3a79(){const _0x401549=['length','583656HOXJIZ','1455604mNDWFK','5354363ZMNTAg','replace','alias','8572400SgSWHE','5962730LmHWmd','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','service','10ysPeJD','filter','isArray','find','toUpperCase','9RTdkpp','version','name','add','437748PieqcT','Unsupported\x20flag\x20--','help','3oaauRo','entries','\x20for\x20`','3038koopdb','has','Run\x20`','meowKey','$1-$2'];a281_0x3a79=function(){return _0x401549;};return a281_0x3a79();}
1
+ (function(_0x26931f,_0x550ea4){const _0xa6e686=a309_0x209f,_0x4a7ff7=_0x26931f();while(!![]){try{const _0x30f841=parseInt(_0xa6e686(0x1e4))/0x1+-parseInt(_0xa6e686(0x1d9))/0x2+-parseInt(_0xa6e686(0x1f1))/0x3+-parseInt(_0xa6e686(0x1ed))/0x4+parseInt(_0xa6e686(0x1e9))/0x5+-parseInt(_0xa6e686(0x1ef))/0x6*(-parseInt(_0xa6e686(0x1f2))/0x7)+parseInt(_0xa6e686(0x1dc))/0x8;if(_0x30f841===_0x550ea4)break;else _0x4a7ff7['push'](_0x4a7ff7['shift']());}catch(_0x6c03ff){_0x4a7ff7['push'](_0x4a7ff7['shift']());}}}(a309_0x57d3,0x70f76));import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a309_0x57d3(){const _0x36a853=['command','version','name','2311555uGbhTh','help','toLowerCase','replace','1419220ZvutXm','$1-$2','6yESEEy','Unsupported\x20flag\x20--','2043189rsfYhV','3326841yXsAYe','service','844196VpFNmK','toUpperCase','\x20for\x20`','5610776qtCQQF','add','length','\x20--help`\x20to\x20view\x20the\x20current\x20command\x20contract.','validation','strictFlags','meowKey','has','281755bDjyMn','entries'];a309_0x57d3=function(){return _0x36a853;};return a309_0x57d3();}import{CliErrors}from'../errors.js';export function assertSupportedCommandFlags(_0x3a609f,_0x54246d){const _0x5aba18=a309_0x209f;if(!_0x3a609f[_0x5aba18(0x1e1)])return;const _0x183652=new Set([_0x5aba18(0x1ea),_0x5aba18(0x1e7)]),_0x1de8f5=GLOBAL_FLAGS['filter'](_0x3d66d8=>PIPELINE_FLAG_NAMES['has'](_0x3d66d8[_0x5aba18(0x1e8)]));for(const _0x34663a of[..._0x3a609f['flags'],..._0x1de8f5]){addFlagCandidates(_0x183652,_0x34663a);}for(const [_0x2e6612,_0x4c6c44]of Object[_0x5aba18(0x1e5)](_0x54246d)){if(!isExplicitValue(_0x4c6c44)||_0x183652[_0x5aba18(0x1e3)](_0x2e6612))continue;const _0x51bed1=GLOBAL_FLAGS['find'](_0x4ddb85=>_0x4ddb85[_0x5aba18(0x1e2)]===_0x2e6612)?.[_0x5aba18(0x1e8)]??toKebabCase(_0x2e6612);throw CliErrors[_0x5aba18(0x1e0)](_0x5aba18(0x1f0)+_0x51bed1+_0x5aba18(0x1db)+CLI_BIN_NAME+'\x20'+_0x3a609f['service']+'\x20'+_0x3a609f[_0x5aba18(0x1e6)]+'`.','Run\x20`'+CLI_BIN_NAME+'\x20'+_0x3a609f[_0x5aba18(0x1f3)]+'\x20'+_0x3a609f[_0x5aba18(0x1e6)]+_0x5aba18(0x1df));}}function addFlagCandidates(_0x542bc5,_0x2a7aa9){const _0x3c07fc=a309_0x209f,_0x38320d='meowKey'in _0x2a7aa9?[_0x2a7aa9[_0x3c07fc(0x1e8)],_0x2a7aa9[_0x3c07fc(0x1e2)]]:[_0x2a7aa9['name'],_0x2a7aa9['alias']];for(const _0x48d202 of _0x38320d){if(!_0x48d202)continue;_0x542bc5[_0x3c07fc(0x1dd)](_0x48d202),_0x542bc5[_0x3c07fc(0x1dd)](toCamelCase(_0x48d202));}}function isExplicitValue(_0x37ba5a){const _0x4621d7=a309_0x209f;return _0x37ba5a!==undefined&&_0x37ba5a!==null&&_0x37ba5a!==![]&&(!Array['isArray'](_0x37ba5a)||_0x37ba5a[_0x4621d7(0x1de)]>0x0);}function a309_0x209f(_0x375a1e,_0x2a7544){_0x375a1e=_0x375a1e-0x1d9;const _0x57d391=a309_0x57d3();let _0x209f96=_0x57d391[_0x375a1e];return _0x209f96;}function toCamelCase(_0x462430){const _0x485ca9=a309_0x209f;return _0x462430[_0x485ca9(0x1ec)](/-([a-z])/g,(_0x1d4e99,_0x57de50)=>_0x57de50[_0x485ca9(0x1da)]());}function toKebabCase(_0x2abfb5){const _0x596d36=a309_0x209f;return _0x2abfb5[_0x596d36(0x1ec)](/([a-z0-9])([A-Z])/g,_0x596d36(0x1ee))[_0x596d36(0x1eb)]();}
@@ -1 +1 @@
1
- function a282_0x1c42(_0x4541e6,_0x19c190){_0x4541e6=_0x4541e6-0x1ec;var _0x42355b=a282_0x4235();var _0x1c429e=_0x42355b[_0x4541e6];return _0x1c429e;}(function(_0x496615,_0x413d45){var _0x4e0dc3=a282_0x1c42,_0x557718=_0x496615();while(!![]){try{var _0x17818c=parseInt(_0x4e0dc3(0x1ef))/0x1*(-parseInt(_0x4e0dc3(0x1ed))/0x2)+-parseInt(_0x4e0dc3(0x1f4))/0x3*(-parseInt(_0x4e0dc3(0x1ee))/0x4)+parseInt(_0x4e0dc3(0x1f2))/0x5*(parseInt(_0x4e0dc3(0x1f5))/0x6)+parseInt(_0x4e0dc3(0x1f3))/0x7*(-parseInt(_0x4e0dc3(0x1f0))/0x8)+parseInt(_0x4e0dc3(0x1f1))/0x9+-parseInt(_0x4e0dc3(0x1ec))/0xa+-parseInt(_0x4e0dc3(0x1f6))/0xb;if(_0x17818c===_0x413d45)break;else _0x557718['push'](_0x557718['shift']());}catch(_0x2c1f8f){_0x557718['push'](_0x557718['shift']());}}}(a282_0x4235,0x18c28));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a282_0x4235(){var _0x5ae5be=['1734240hlyAyc','2IodLiU','348cdyTIG','102181OvwRrL','1256aqHZQX','1240956cVFcJE','130CJJpmH','3052nAPNLd','5034jGtjuk','42450QnsZCT','245817WsghdY'];a282_0x4235=function(){return _0x5ae5be;};return a282_0x4235();}
1
+ (function(_0x1cd4fa,_0x2f6534){var _0x55330c=a310_0x595f,_0x578fc3=_0x1cd4fa();while(!![]){try{var _0x26b514=-parseInt(_0x55330c(0x1a4))/0x1+parseInt(_0x55330c(0x1a7))/0x2*(-parseInt(_0x55330c(0x1af))/0x3)+parseInt(_0x55330c(0x1aa))/0x4*(parseInt(_0x55330c(0x1a5))/0x5)+-parseInt(_0x55330c(0x1ab))/0x6*(parseInt(_0x55330c(0x1ad))/0x7)+-parseInt(_0x55330c(0x1ac))/0x8+-parseInt(_0x55330c(0x1a9))/0x9*(-parseInt(_0x55330c(0x1a8))/0xa)+parseInt(_0x55330c(0x1a6))/0xb*(parseInt(_0x55330c(0x1ae))/0xc);if(_0x26b514===_0x2f6534)break;else _0x578fc3['push'](_0x578fc3['shift']());}catch(_0xd4a863){_0x578fc3['push'](_0x578fc3['shift']());}}}(a310_0xd51b,0x223d2));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a310_0x595f(_0x5ab9a4,_0x4ddaae){_0x5ab9a4=_0x5ab9a4-0x1a4;var _0xd51b91=a310_0xd51b();var _0x595f45=_0xd51b91[_0x5ab9a4];return _0x595f45;}function a310_0xd51b(){var _0x3ed61d=['12RilART','90KfmQlV','151200NpwtQI','130775GSZnik','3569555qLnwyy','17524aGqEwb','20IiSRhQ','1259073JCgGqZ','24zHuxhc','41610XSozzr','1100616uObRZf','70EPsfEd'];a310_0xd51b=function(){return _0x3ed61d;};return a310_0xd51b();}
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.5.3-beta.1";
2
- export declare const GIT_TAG = "v2.5.3-beta.1";
3
- export declare const GIT_COMMIT = "bb7d5183";
4
- export declare const BUILD_TIME = "2026-09-10T02:00:22.032Z";
1
+ export declare const VERSION = "2.5.3-beta.3";
2
+ export declare const GIT_TAG = "v2.5.3-beta.3";
3
+ export declare const GIT_COMMIT = "de31c63e";
4
+ export declare const BUILD_TIME = "2026-09-11T09:13:14.939Z";
@@ -1 +1 @@
1
- const a283_0x1cedca=a283_0x34c3;function a283_0x34c3(_0x20ebd3,_0x58785b){_0x20ebd3=_0x20ebd3-0x107;const _0x221271=a283_0x2212();let _0x34c38b=_0x221271[_0x20ebd3];return _0x34c38b;}function a283_0x2212(){const _0x56b3cb=['5uKwzUw','8297030VxAudN','805718mykqQj','621fvgpOa','6947382CZBEGP','3834436BuQuCr','2628249kYnjCN','91024nySFGu','1BmGCHm','2026-09-10T02:00:22.032Z','10hPEzES','30643261dUfTLQ','v2.5.3-beta.1'];a283_0x2212=function(){return _0x56b3cb;};return a283_0x2212();}(function(_0x34ad13,_0x172881){const _0x3fe8da=a283_0x34c3,_0x44489e=_0x34ad13();while(!![]){try{const _0x1003c1=-parseInt(_0x3fe8da(0x109))/0x1*(-parseInt(_0x3fe8da(0x110))/0x2)+-parseInt(_0x3fe8da(0x107))/0x3+parseInt(_0x3fe8da(0x113))/0x4+parseInt(_0x3fe8da(0x10e))/0x5*(parseInt(_0x3fe8da(0x112))/0x6)+parseInt(_0x3fe8da(0x10f))/0x7+-parseInt(_0x3fe8da(0x108))/0x8*(-parseInt(_0x3fe8da(0x111))/0x9)+parseInt(_0x3fe8da(0x10b))/0xa*(-parseInt(_0x3fe8da(0x10c))/0xb);if(_0x1003c1===_0x172881)break;else _0x44489e['push'](_0x44489e['shift']());}catch(_0x58d445){_0x44489e['push'](_0x44489e['shift']());}}}(a283_0x2212,0xca1ff));export const VERSION='2.5.3-beta.1';export const GIT_TAG=a283_0x1cedca(0x10d);export const GIT_COMMIT='bb7d5183';export const BUILD_TIME=a283_0x1cedca(0x10a);
1
+ const a311_0x3f941f=a311_0x2661;(function(_0x16f68b,_0x52923){const _0x21d5fb=a311_0x2661,_0x1f5f60=_0x16f68b();while(!![]){try{const _0x1d4d5b=-parseInt(_0x21d5fb(0xe7))/0x1+parseInt(_0x21d5fb(0xe6))/0x2*(-parseInt(_0x21d5fb(0xe8))/0x3)+parseInt(_0x21d5fb(0xea))/0x4*(parseInt(_0x21d5fb(0xf1))/0x5)+-parseInt(_0x21d5fb(0xf0))/0x6*(parseInt(_0x21d5fb(0xeb))/0x7)+parseInt(_0x21d5fb(0xef))/0x8*(parseInt(_0x21d5fb(0xee))/0x9)+parseInt(_0x21d5fb(0xed))/0xa*(parseInt(_0x21d5fb(0xe9))/0xb)+parseInt(_0x21d5fb(0xe5))/0xc;if(_0x1d4d5b===_0x52923)break;else _0x1f5f60['push'](_0x1f5f60['shift']());}catch(_0x187ac6){_0x1f5f60['push'](_0x1f5f60['shift']());}}}(a311_0x1e47,0xa8951));function a311_0x2661(_0x3b0e52,_0x4f6693){_0x3b0e52=_0x3b0e52-0xe4;const _0x1e47c8=a311_0x1e47();let _0x2661ee=_0x1e47c8[_0x3b0e52];return _0x2661ee;}export const VERSION=a311_0x3f941f(0xe4);function a311_0x1e47(){const _0x4aa4bf=['9bxrfwP','267528LNYafm','41346pIIEcY','5HqRgcr','de31c63e','2.5.3-beta.3','13245144noPeHr','2DqXRLy','1258909xFkRHT','925284eoALFG','3223leeOoE','4388308FGmezS','21fNFMKp','2026-09-11T09:13:14.939Z','1510UMFglk'];a311_0x1e47=function(){return _0x4aa4bf;};return a311_0x1e47();}export const GIT_TAG='v2.5.3-beta.3';export const GIT_COMMIT=a311_0x3f941f(0xf2);export const BUILD_TIME=a311_0x3f941f(0xec);