@lovrabet/rabetbase-cli 2.3.10-beta.2 → 2.3.10

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 (259) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/regroup-start.js +1 -1
  109. package/lib/commands/menu/shared/compare-table.js +1 -1
  110. package/lib/commands/menu/shared/delete-plan.js +1 -1
  111. package/lib/commands/menu/shared/facts.js +1 -1
  112. package/lib/commands/menu/shared/index.js +1 -1
  113. package/lib/commands/menu/shared/inquirer.js +1 -1
  114. package/lib/commands/menu/shared/local-pages.js +1 -1
  115. package/lib/commands/menu/shared/logic.js +1 -1
  116. package/lib/commands/menu/shared/mutations.js +1 -1
  117. package/lib/commands/menu/shared/service.js +1 -1
  118. package/lib/commands/menu/shared/sync-core.js +1 -1
  119. package/lib/commands/menu/shared/update-core.js +1 -1
  120. package/lib/commands/menu/shared/valid-url.js +1 -1
  121. package/lib/commands/menu/sync.js +1 -1
  122. package/lib/commands/menu/update.js +1 -1
  123. package/lib/commands/notification/config-list.js +1 -1
  124. package/lib/commands/notification/index.js +1 -1
  125. package/lib/commands/page/generate-start.js +1 -1
  126. package/lib/commands/page/generate-status.js +1 -1
  127. package/lib/commands/page/index.js +1 -1
  128. package/lib/commands/page/pull.js +1 -1
  129. package/lib/commands/page/push.js +1 -1
  130. package/lib/commands/page/relation-audit.js +1 -1
  131. package/lib/commands/page/shared.js +1 -1
  132. package/lib/commands/page/standard-page-status.js +1 -1
  133. package/lib/commands/page/sync.js +1 -1
  134. package/lib/commands/permit/index.js +1 -1
  135. package/lib/commands/permit/page-get.js +1 -1
  136. package/lib/commands/permit/page-set.js +1 -1
  137. package/lib/commands/permit/role-apis-set.js +1 -1
  138. package/lib/commands/permit/role-menus-set.js +1 -1
  139. package/lib/commands/permit/role-menus.js +1 -1
  140. package/lib/commands/permit/shared.js +1 -1
  141. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  142. package/lib/commands/project/create/format-elapsed.js +1 -1
  143. package/lib/commands/project/create/main.js +1 -1
  144. package/lib/commands/project/create/non-interactive.js +1 -1
  145. package/lib/commands/project/create/project-template-path.js +1 -1
  146. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  147. package/lib/commands/project/create/use-format-code.js +1 -1
  148. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  149. package/lib/commands/project/index.js +1 -1
  150. package/lib/commands/project/init.js +1 -1
  151. package/lib/commands/project/upgrade.js +1 -1
  152. package/lib/commands/registry.js +1 -1
  153. package/lib/commands/role/create.js +1 -1
  154. package/lib/commands/role/delete.js +1 -1
  155. package/lib/commands/role/detail.js +1 -1
  156. package/lib/commands/role/index.js +1 -1
  157. package/lib/commands/role/list.js +1 -1
  158. package/lib/commands/role/shared.js +1 -1
  159. package/lib/commands/role/update.js +1 -1
  160. package/lib/commands/role/user-add.js +1 -1
  161. package/lib/commands/role/user-remove.js +1 -1
  162. package/lib/commands/role/user-resolve.js +1 -1
  163. package/lib/commands/run/index.js +1 -1
  164. package/lib/commands/schema.js +1 -1
  165. package/lib/commands/sql/create.js +1 -1
  166. package/lib/commands/sql/delete.js +1 -1
  167. package/lib/commands/sql/detail.js +1 -1
  168. package/lib/commands/sql/exec.js +1 -1
  169. package/lib/commands/sql/index.js +1 -1
  170. package/lib/commands/sql/list.js +1 -1
  171. package/lib/commands/sql/pull.js +1 -1
  172. package/lib/commands/sql/push.js +1 -1
  173. package/lib/commands/sql/save.js +1 -1
  174. package/lib/commands/sql/shared.js +1 -1
  175. package/lib/commands/sql/status.js +1 -1
  176. package/lib/commands/sql/validate.js +1 -1
  177. package/lib/commands/task/index.js +1 -1
  178. package/lib/commands/task/status.js +1 -1
  179. package/lib/commands/workspace/add.js +1 -1
  180. package/lib/commands/workspace/index.js +1 -1
  181. package/lib/commands/workspace/remove.js +1 -1
  182. package/lib/config/schema.js +1 -1
  183. package/lib/constant/cdn.js +1 -1
  184. package/lib/constant/cli.js +1 -1
  185. package/lib/constant/defaults.js +1 -1
  186. package/lib/constant/domain.js +1 -1
  187. package/lib/constant/env.js +1 -1
  188. package/lib/constant/output.js +1 -1
  189. package/lib/constant/paths.js +1 -1
  190. package/lib/constant/risk.js +1 -1
  191. package/lib/context/app-resolver.js +1 -1
  192. package/lib/context/auth-resolver.js +1 -1
  193. package/lib/context/config-loader.js +1 -1
  194. package/lib/context.js +1 -1
  195. package/lib/core/alias-resolver.js +1 -1
  196. package/lib/core/api-client.js +1 -1
  197. package/lib/core/bff/config.js +1 -1
  198. package/lib/core/bff/file-system.js +1 -1
  199. package/lib/core/bff/hash.js +1 -1
  200. package/lib/core/bff/lock.js +1 -1
  201. package/lib/core/bff/utils.js +1 -1
  202. package/lib/core/db-resolver.js +1 -1
  203. package/lib/core/page/file-system.js +1 -1
  204. package/lib/core/page/hash.js +1 -1
  205. package/lib/core/page/lock.js +1 -1
  206. package/lib/core/sql-index-auditor.js +1 -1
  207. package/lib/core/sql-sync/config.js +1 -1
  208. package/lib/core/sql-sync/file-system.js +1 -1
  209. package/lib/core/sql-sync/hash.js +1 -1
  210. package/lib/core/sql-sync/lock.js +1 -1
  211. package/lib/core/sql-sync/utils.js +1 -1
  212. package/lib/core/sql-validator.js +1 -1
  213. package/lib/errors.js +1 -1
  214. package/lib/framework/build-all-flags.js +1 -1
  215. package/lib/framework/error-output.js +1 -1
  216. package/lib/framework/explicit-yes.js +1 -1
  217. package/lib/framework/flags.js +1 -1
  218. package/lib/framework/help.js +1 -1
  219. package/lib/framework/index.js +1 -1
  220. package/lib/framework/output.js +1 -1
  221. package/lib/framework/response.js +1 -1
  222. package/lib/framework/runner-alias.js +1 -1
  223. package/lib/framework/runner.js +1 -1
  224. package/lib/framework/schema-export.js +1 -1
  225. package/lib/framework/types.js +1 -1
  226. package/lib/generated/build-info.js +1 -1
  227. package/lib/help.js +1 -1
  228. package/lib/skills/main.js +1 -1
  229. package/lib/skills/npx-skills-add.js +1 -1
  230. package/lib/telemetry/cli-command-trace.js +1 -1
  231. package/lib/telemetry/cli-help-trace.js +1 -1
  232. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  233. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  234. package/lib/telemetry/send-cli-trace-log.js +1 -1
  235. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  236. package/lib/utils/ai_config.js +1 -1
  237. package/lib/utils/apply-jq-filter.js +1 -1
  238. package/lib/utils/cdn-config.js +1 -1
  239. package/lib/utils/check-sdk-version.js +1 -1
  240. package/lib/utils/cli-version-check.js +1 -1
  241. package/lib/utils/cli-version-policy.js +1 -1
  242. package/lib/utils/config.js +1 -1
  243. package/lib/utils/copy-directory.js +1 -1
  244. package/lib/utils/entity-with-id.js +1 -1
  245. package/lib/utils/file-utils.js +1 -1
  246. package/lib/utils/guides-cdn.js +1 -1
  247. package/lib/utils/http-client.js +1 -1
  248. package/lib/utils/is-non-interactive.js +1 -1
  249. package/lib/utils/logger.js +1 -1
  250. package/lib/utils/params.js +1 -1
  251. package/lib/utils/platform.js +1 -1
  252. package/lib/utils/rules-cdn.js +1 -1
  253. package/lib/utils/sleep.js +1 -1
  254. package/lib/utils/template-replacer.js +1 -1
  255. package/lib/utils/update-notice.js +1 -1
  256. package/lib/utils/version.js +1 -1
  257. package/lib/utils/with-active-cookie.js +1 -1
  258. package/lib/utils/write-cli-side-channel.js +1 -1
  259. package/package.json +1 -1
@@ -1 +1 @@
1
- const a209_0xce19b6=a209_0x596f;function a209_0x6389(){const _0x1b95b2=['5tRxcBW','2733160uUVNkO','7621132iDpqvP','296tMvbCa','18777375ZtZrhw','sql.lock.json','/sql','23051mAGeVG','1719114cxgqth','210141qoZMeH','10XePcfQ','474607MYmQEd'];a209_0x6389=function(){return _0x1b95b2;};return a209_0x6389();}(function(_0x2027e4,_0x35e185){const _0x2b56d4=a209_0x596f,_0x207efd=_0x2027e4();while(!![]){try{const _0x410fd2=-parseInt(_0x2b56d4(0x13f))/0x1+parseInt(_0x2b56d4(0x141))/0x2+parseInt(_0x2b56d4(0x13d))/0x3+-parseInt(_0x2b56d4(0x142))/0x4*(parseInt(_0x2b56d4(0x140))/0x5)+-parseInt(_0x2b56d4(0x148))/0x6+parseInt(_0x2b56d4(0x147))/0x7*(parseInt(_0x2b56d4(0x143))/0x8)+parseInt(_0x2b56d4(0x144))/0x9*(parseInt(_0x2b56d4(0x13e))/0xa);if(_0x410fd2===_0x35e185)break;else _0x207efd['push'](_0x207efd['shift']());}catch(_0x20681c){_0x207efd['push'](_0x207efd['shift']());}}}(a209_0x6389,0xeee02));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a209_0x596f(_0x2b7ec4,_0x37c955){_0x2b7ec4=_0x2b7ec4-0x13d;const _0x6389a=a209_0x6389();let _0x596f63=_0x6389a[_0x2b7ec4];return _0x596f63;}const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a209_0xce19b6(0x145),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x28c62e,_0x493f37){const _0x5803b9=a209_0xce19b6,_0x2c7cf8=resolve(_0x493f37??findProjectRootDirectory()),_0x3e849a=DOT_DIR+_0x5803b9(0x146),_0x4ea283=_0x3e849a+'/'+_0x28c62e;return{'projectRoot':_0x2c7cf8,'appCode':_0x28c62e,'sqlWorkspaceRoot':_0x3e849a,'sqlRoot':_0x4ea283,'sqlRootDir':resolve(_0x2c7cf8,DOT_DIR,'sql',_0x28c62e),'lockFilePath':resolve(_0x2c7cf8,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x2c7cf8,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a209_0x2907(_0x38295e,_0x59511e){_0x38295e=_0x38295e-0x198;const _0x5a1811=a209_0x5a18();let _0x290726=_0x5a1811[_0x38295e];return _0x290726;}const a209_0x231d93=a209_0x2907;(function(_0x53d3a3,_0x586177){const _0x120808=a209_0x2907,_0x252d95=_0x53d3a3();while(!![]){try{const _0x2c6861=parseInt(_0x120808(0x1a4))/0x1+parseInt(_0x120808(0x198))/0x2*(parseInt(_0x120808(0x1a5))/0x3)+-parseInt(_0x120808(0x199))/0x4*(-parseInt(_0x120808(0x19f))/0x5)+parseInt(_0x120808(0x19e))/0x6*(parseInt(_0x120808(0x1a6))/0x7)+parseInt(_0x120808(0x1a9))/0x8*(-parseInt(_0x120808(0x19b))/0x9)+-parseInt(_0x120808(0x19c))/0xa*(parseInt(_0x120808(0x1a2))/0xb)+-parseInt(_0x120808(0x19d))/0xc*(parseInt(_0x120808(0x1a0))/0xd);if(_0x2c6861===_0x586177)break;else _0x252d95['push'](_0x252d95['shift']());}catch(_0x41c954){_0x252d95['push'](_0x252d95['shift']());}}}(a209_0x5a18,0x5b055));import{resolve}from'node:path';function a209_0x5a18(){const _0x45cbe8=['3493VMbeJI','sql-trash','sql.lock.json','1629120ucrcmZ','1226eIoUeg','8DqQaYx','.rabetbase','27aNAuKI','330gmfSvN','14844XZzyMS','7080SyQFMQ','1441635KuFiKm','9100zleCNl','sql','27698ujvDXj','/sql','61698MFeQJs','3453cgnKVf'];a209_0x5a18=function(){return _0x45cbe8;};return a209_0x5a18();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a209_0x231d93(0x19a),LOCK_FILE_NAME=a209_0x231d93(0x1a8),TRASH_DIR_NAME=a209_0x231d93(0x1a7);export function loadSqlProjectConfig(_0x1b27e7,_0xf05b3d){const _0x144b8d=a209_0x231d93,_0xd29502=resolve(_0xf05b3d??findProjectRootDirectory()),_0x2d3b78=DOT_DIR+_0x144b8d(0x1a3),_0x20df23=_0x2d3b78+'/'+_0x1b27e7;return{'projectRoot':_0xd29502,'appCode':_0x1b27e7,'sqlWorkspaceRoot':_0x2d3b78,'sqlRoot':_0x20df23,'sqlRootDir':resolve(_0xd29502,DOT_DIR,_0x144b8d(0x1a1),_0x1b27e7),'lockFilePath':resolve(_0xd29502,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xd29502,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x38893e,_0x54b38e){const _0x5eb605=a210_0x5b7d,_0x12ee35=_0x38893e();while(!![]){try{const _0x8b3be6=parseInt(_0x5eb605(0x12b))/0x1*(-parseInt(_0x5eb605(0x133))/0x2)+-parseInt(_0x5eb605(0x131))/0x3*(-parseInt(_0x5eb605(0x13a))/0x4)+parseInt(_0x5eb605(0x123))/0x5*(-parseInt(_0x5eb605(0x13b))/0x6)+-parseInt(_0x5eb605(0x136))/0x7*(parseInt(_0x5eb605(0x12c))/0x8)+parseInt(_0x5eb605(0x139))/0x9*(-parseInt(_0x5eb605(0x132))/0xa)+-parseInt(_0x5eb605(0x141))/0xb+parseInt(_0x5eb605(0x128))/0xc;if(_0x8b3be6===_0x54b38e)break;else _0x12ee35['push'](_0x12ee35['shift']());}catch(_0x31b512){_0x12ee35['push'](_0x12ee35['shift']());}}}(a210_0x131a,0x6d420));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x37a561){const _0xf16e6b=a210_0x5b7d;if(_0x37a561==='.sql')return'sql';if(_0x37a561===_0xf16e6b(0x130))return _0xf16e6b(0x121);return undefined;}async function scanSqlFilesRecursively(_0x61748a,_0x52e622){const _0x3c666d=a210_0x5b7d,_0x5716c2=[];try{const _0x51a56b=await readdir(_0x61748a,{'withFileTypes':!![]});for(const _0x46a7c6 of _0x51a56b){const _0x570370=join(_0x61748a,_0x46a7c6[_0x3c666d(0x135)]);if(_0x46a7c6['isDirectory']()){_0x5716c2[_0x3c666d(0x12d)](...await scanSqlFilesRecursively(_0x570370,_0x52e622));continue;}if(!_0x46a7c6[_0x3c666d(0x124)]())continue;const _0x45c586=extname(_0x46a7c6[_0x3c666d(0x135)])[_0x3c666d(0x143)](),_0x43e709=extensionToMode(_0x45c586);if(!_0x43e709)continue;const _0x5cd4d1=relative(_0x52e622,_0x570370)[_0x3c666d(0x13f)](/\\/g,'/'),_0x3c1c60=_0x5cd4d1[_0x3c666d(0x140)]('/')[_0x3c666d(0x129)](Boolean),_0x253a9d=parseSqlPath(_0x3c1c60,_0x46a7c6[_0x3c666d(0x135)],_0x45c586);if(!_0x253a9d)continue;_0x5716c2['push']({'sqlCode':_0x253a9d['sqlCode'],'sqlName':_0x253a9d[_0x3c666d(0x13d)],'dbDirectory':_0x3c1c60[0x0],'filePath':_0x570370,'relativePath':_0x5cd4d1,'lockKey':_0x253a9d[_0x3c666d(0x12f)],'mode':_0x43e709});}}catch(_0x5cd19a){if(_0x5cd19a[_0x3c666d(0x125)]!==_0x3c666d(0x137))throw _0x5cd19a;}return _0x5716c2;}export async function scanLocalSqlQueries(_0x55777e){const _0x2b2be3=a210_0x5b7d;return scanSqlFilesRecursively(_0x55777e[_0x2b2be3(0x138)],_0x55777e[_0x2b2be3(0x138)]);}function a210_0x131a(){const _0xa5ae62=['30GoDXyR','dbId','sqlName','mode','replace','split','7477371lxufej','slice','toLowerCase','dbName','mybatisXml','length','88915SciFhO','isFile','code','isDirectory','path','29591376TpIDPM','filter','indexOf','424789igxLrK','3043864JymkjG','push','test','sqlCode','.xml','33411DMDOxB','20mPJyPg','4FirqbF','sql','name','7QULAgP','ENOENT','sqlRootDir','940590JVRveH','68hPboDn'];a210_0x131a=function(){return _0xa5ae62;};return a210_0x131a();}export function resolveLocalSqlFilePath(_0x45addc,_0xed85ec,_0x576f98){const _0x983f58=a210_0x5b7d,_0x2fa0e2=_0x576f98?.[_0x983f58(0x127)]||(_0x576f98?.['sqlName']||_0x576f98?.[_0x983f58(0x120)]?buildSqlRelativePath(_0xed85ec,_0x576f98?.['sqlName'],_0x576f98?.[_0x983f58(0x120)],_0x576f98?.[_0x983f58(0x13e)]||_0x983f58(0x134),_0x576f98?.[_0x983f58(0x13c)]):buildDefaultSqlFileName(_0xed85ec,_0x576f98?.[_0x983f58(0x13e)]||_0x983f58(0x134)));return join(_0x45addc[_0x983f58(0x138)],_0x2fa0e2);}export async function directoryExists(_0x3784c2){const _0x4bd563=a210_0x5b7d;try{const _0x3e9484=await stat(_0x3784c2);return _0x3e9484[_0x4bd563(0x126)]();}catch{return![];}}function parseSqlPath(_0x2250a1,_0x207136,_0x314ec6){const _0xca041d=a210_0x5b7d,_0x19f749=_0x207136[_0xca041d(0x142)](0x0,-_0x314ec6[_0xca041d(0x122)]);if(_0x2250a1[_0xca041d(0x122)]<0x2)return null;const _0x49b07c=_0x19f749[_0xca041d(0x12a)]('_');if(_0x49b07c<=0x0||_0x49b07c>=_0x19f749[_0xca041d(0x122)]-0x1)return null;const _0x2d9b4a=_0x19f749['slice'](0x0,_0x49b07c);if(!isLikelySqlCode(_0x2d9b4a))return null;return{'sqlCode':_0x2d9b4a,'sqlName':_0x19f749[_0xca041d(0x142)](_0x49b07c+0x1)};}function a210_0x5b7d(_0x258346,_0x57961a){_0x258346=_0x258346-0x120;const _0x131a6b=a210_0x131a();let _0x5b7dd3=_0x131a6b[_0x258346];return _0x5b7dd3;}function isLikelySqlCode(_0x5abcfc){const _0x4f2d59=a210_0x5b7d;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x4f2d59(0x12e)](_0x5abcfc);}
1
+ (function(_0x39862f,_0x15c4b0){const _0x1f9041=a210_0x4f2e,_0x510d9a=_0x39862f();while(!![]){try{const _0x5c0116=-parseInt(_0x1f9041(0x19e))/0x1*(-parseInt(_0x1f9041(0x1a7))/0x2)+-parseInt(_0x1f9041(0x198))/0x3*(-parseInt(_0x1f9041(0x196))/0x4)+parseInt(_0x1f9041(0x19b))/0x5*(-parseInt(_0x1f9041(0x19c))/0x6)+-parseInt(_0x1f9041(0x1a8))/0x7*(parseInt(_0x1f9041(0x1a1))/0x8)+-parseInt(_0x1f9041(0x19f))/0x9*(parseInt(_0x1f9041(0x193))/0xa)+parseInt(_0x1f9041(0x199))/0xb+parseInt(_0x1f9041(0x1a0))/0xc;if(_0x5c0116===_0x15c4b0)break;else _0x510d9a['push'](_0x510d9a['shift']());}catch(_0x2b1898){_0x510d9a['push'](_0x510d9a['shift']());}}}(a210_0x3b3f,0xe0aab));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4e70e2){const _0x45cac2=a210_0x4f2e;if(_0x4e70e2===_0x45cac2(0x19d))return _0x45cac2(0x1ab);if(_0x4e70e2===_0x45cac2(0x19a))return _0x45cac2(0x1ad);return undefined;}async function scanSqlFilesRecursively(_0x426f3c,_0x30aee2){const _0x1af0d3=a210_0x4f2e,_0x3f6568=[];try{const _0x10925c=await readdir(_0x426f3c,{'withFileTypes':!![]});for(const _0x137d28 of _0x10925c){const _0x149a18=join(_0x426f3c,_0x137d28[_0x1af0d3(0x1a2)]);if(_0x137d28['isDirectory']()){_0x3f6568[_0x1af0d3(0x191)](...await scanSqlFilesRecursively(_0x149a18,_0x30aee2));continue;}if(!_0x137d28[_0x1af0d3(0x1a6)]())continue;const _0x4b62b8=extname(_0x137d28[_0x1af0d3(0x1a2)])[_0x1af0d3(0x18d)](),_0x3d35d7=extensionToMode(_0x4b62b8);if(!_0x3d35d7)continue;const _0x2c43a6=relative(_0x30aee2,_0x149a18)['replace'](/\\/g,'/'),_0x272a32=_0x2c43a6[_0x1af0d3(0x1a3)]('/')['filter'](Boolean),_0x46f818=parseSqlPath(_0x272a32,_0x137d28[_0x1af0d3(0x1a2)],_0x4b62b8);if(!_0x46f818)continue;_0x3f6568[_0x1af0d3(0x191)]({'sqlCode':_0x46f818['sqlCode'],'sqlName':_0x46f818[_0x1af0d3(0x195)],'dbDirectory':_0x272a32[0x0],'filePath':_0x149a18,'relativePath':_0x2c43a6,'lockKey':_0x46f818[_0x1af0d3(0x1aa)],'mode':_0x3d35d7});}}catch(_0x585815){if(_0x585815[_0x1af0d3(0x190)]!=='ENOENT')throw _0x585815;}return _0x3f6568;}function a210_0x4f2e(_0x5da532,_0x2dd441){_0x5da532=_0x5da532-0x18d;const _0x3b3f40=a210_0x3b3f();let _0x4f2e06=_0x3b3f40[_0x5da532];return _0x4f2e06;}export async function scanLocalSqlQueries(_0x5e8142){const _0x295934=a210_0x4f2e;return scanSqlFilesRecursively(_0x5e8142[_0x295934(0x197)],_0x5e8142['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x29babd,_0x338f5b,_0x3bea9b){const _0x4b9e49=a210_0x4f2e,_0x407cbd=_0x3bea9b?.[_0x4b9e49(0x18f)]||(_0x3bea9b?.[_0x4b9e49(0x195)]||_0x3bea9b?.['dbName']?buildSqlRelativePath(_0x338f5b,_0x3bea9b?.['sqlName'],_0x3bea9b?.[_0x4b9e49(0x194)],_0x3bea9b?.['mode']||'sql',_0x3bea9b?.[_0x4b9e49(0x1ae)]):buildDefaultSqlFileName(_0x338f5b,_0x3bea9b?.[_0x4b9e49(0x192)]||_0x4b9e49(0x1ab)));return join(_0x29babd[_0x4b9e49(0x197)],_0x407cbd);}function a210_0x3b3f(){const _0x194a25=['slice','path','code','push','mode','1449730mNZEzg','dbName','sqlName','1040atbXxa','sqlRootDir','2367DRSAVR','14780095RzhJAS','.xml','115XFCGTc','47562fgEdIm','.sql','1039grNtcY','9DnLQYd','5400168vJquCm','16DuKUGu','name','split','isDirectory','indexOf','isFile','392BSTlZj','3342199opUvvU','test','sqlCode','sql','length','mybatisXml','dbId','toLowerCase'];a210_0x3b3f=function(){return _0x194a25;};return a210_0x3b3f();}export async function directoryExists(_0x5ea181){const _0x22dd78=a210_0x4f2e;try{const _0x41ed06=await stat(_0x5ea181);return _0x41ed06[_0x22dd78(0x1a4)]();}catch{return![];}}function parseSqlPath(_0x4ad9d9,_0xacccd8,_0xc474c9){const _0x5aba77=a210_0x4f2e,_0x1ba36c=_0xacccd8[_0x5aba77(0x18e)](0x0,-_0xc474c9[_0x5aba77(0x1ac)]);if(_0x4ad9d9[_0x5aba77(0x1ac)]<0x2)return null;const _0x153bc9=_0x1ba36c[_0x5aba77(0x1a5)]('_');if(_0x153bc9<=0x0||_0x153bc9>=_0x1ba36c[_0x5aba77(0x1ac)]-0x1)return null;const _0x480ba6=_0x1ba36c[_0x5aba77(0x18e)](0x0,_0x153bc9);if(!isLikelySqlCode(_0x480ba6))return null;return{'sqlCode':_0x480ba6,'sqlName':_0x1ba36c['slice'](_0x153bc9+0x1)};}function isLikelySqlCode(_0xc8cbc7){const _0xcd49c0=a210_0x4f2e;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xcd49c0(0x1a9)](_0xc8cbc7);}
@@ -1 +1 @@
1
- (function(_0xce1e11,_0x5d3108){const _0x409cf2=a211_0x4255,_0x4f0dd8=_0xce1e11();while(!![]){try{const _0x58299c=-parseInt(_0x409cf2(0x162))/0x1+parseInt(_0x409cf2(0x160))/0x2*(-parseInt(_0x409cf2(0x15a))/0x3)+parseInt(_0x409cf2(0x15b))/0x4+-parseInt(_0x409cf2(0x163))/0x5+-parseInt(_0x409cf2(0x15d))/0x6+parseInt(_0x409cf2(0x15c))/0x7+-parseInt(_0x409cf2(0x161))/0x8*(-parseInt(_0x409cf2(0x15f))/0x9);if(_0x58299c===_0x5d3108)break;else _0x4f0dd8['push'](_0x4f0dd8['shift']());}catch(_0x551827){_0x4f0dd8['push'](_0x4f0dd8['shift']());}}}(a211_0x38c0,0xe2c3a));import{readFile}from'node:fs/promises';function a211_0x4255(_0x4665ea,_0x1fe261){_0x4665ea=_0x4665ea-0x15a;const _0x38c0b7=a211_0x38c0();let _0x42550f=_0x38c0b7[_0x4665ea];return _0x42550f;}function a211_0x38c0(){const _0x288d2e=['2640520wAHuBw','1184939kOQstv','9573762IqAoUo','update','16047873bcYqzk','4NTntXY','24wJjGUU','1783993zIBDeH','5158960KtxsgZ','createHash','utf8','1257690zUUfOL'];a211_0x38c0=function(){return _0x288d2e;};return a211_0x38c0();}import a211_0x2956aa from'node:crypto';export function computeSqlContentHash(_0x514e23){const _0x5148d9=a211_0x4255;return a211_0x2956aa[_0x5148d9(0x164)]('md5')[_0x5148d9(0x15e)](_0x514e23)['digest']('hex');}export async function computeSqlFileHash(_0x2bfc16){const _0xe798b6=a211_0x4255,_0x544d7d=await readFile(_0x2bfc16,_0xe798b6(0x165));return computeSqlContentHash(_0x544d7d);}
1
+ (function(_0x1294eb,_0x162e89){const _0xb6a5ff=a211_0x302f,_0x2d502b=_0x1294eb();while(!![]){try{const _0x439b8f=parseInt(_0xb6a5ff(0x1a7))/0x1*(-parseInt(_0xb6a5ff(0x1a8))/0x2)+parseInt(_0xb6a5ff(0x1a9))/0x3+-parseInt(_0xb6a5ff(0x19e))/0x4*(parseInt(_0xb6a5ff(0x1aa))/0x5)+parseInt(_0xb6a5ff(0x1a1))/0x6*(parseInt(_0xb6a5ff(0x1a2))/0x7)+-parseInt(_0xb6a5ff(0x1ab))/0x8*(-parseInt(_0xb6a5ff(0x1a0))/0x9)+-parseInt(_0xb6a5ff(0x1a6))/0xa+parseInt(_0xb6a5ff(0x19d))/0xb;if(_0x439b8f===_0x162e89)break;else _0x2d502b['push'](_0x2d502b['shift']());}catch(_0x13740b){_0x2d502b['push'](_0x2d502b['shift']());}}}(a211_0x6d99,0x52c37));import{readFile}from'node:fs/promises';function a211_0x6d99(){const _0x20bdbf=['168502EKSzEe','974601JXCFRA','1640gvZTOo','1224tmvcHY','createHash','utf8','13409517mQMoHO','8144VJohSa','update','12249SInsyf','12fFnAop','173915sZuoxG','md5','hex','digest','3737750BLbCBp','5tIyYuo'];a211_0x6d99=function(){return _0x20bdbf;};return a211_0x6d99();}function a211_0x302f(_0x1bd713,_0x4f75c6){_0x1bd713=_0x1bd713-0x19b;const _0x6d99fe=a211_0x6d99();let _0x302f63=_0x6d99fe[_0x1bd713];return _0x302f63;}import a211_0x53f07 from'node:crypto';export function computeSqlContentHash(_0x2be3b2){const _0x2a6c77=a211_0x302f;return a211_0x53f07[_0x2a6c77(0x19b)](_0x2a6c77(0x1a3))[_0x2a6c77(0x19f)](_0x2be3b2)[_0x2a6c77(0x1a5)](_0x2a6c77(0x1a4));}export async function computeSqlFileHash(_0x5f3602){const _0x24699a=a211_0x302f,_0x16fa85=await readFile(_0x5f3602,_0x24699a(0x19c));return computeSqlContentHash(_0x16fa85);}
@@ -1 +1 @@
1
- (function(_0x3419c4,_0x164511){const _0x1e8d27=a212_0xbade,_0x292955=_0x3419c4();while(!![]){try{const _0x1dc71e=-parseInt(_0x1e8d27(0x1ac))/0x1*(-parseInt(_0x1e8d27(0x1ab))/0x2)+parseInt(_0x1e8d27(0x1b5))/0x3+-parseInt(_0x1e8d27(0x1a4))/0x4+-parseInt(_0x1e8d27(0x1a3))/0x5*(parseInt(_0x1e8d27(0x1a2))/0x6)+-parseInt(_0x1e8d27(0x1af))/0x7+parseInt(_0x1e8d27(0x1ae))/0x8*(parseInt(_0x1e8d27(0x19e))/0x9)+-parseInt(_0x1e8d27(0x1a8))/0xa*(-parseInt(_0x1e8d27(0x1a1))/0xb);if(_0x1dc71e===_0x164511)break;else _0x292955['push'](_0x292955['shift']());}catch(_0x2f87ca){_0x292955['push'](_0x292955['shift']());}}}(a212_0x3f57,0xe59c3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a212_0xbade(_0x1532f8,_0x51afe1){_0x1532f8=_0x1532f8-0x19e;const _0x3f5749=a212_0x3f57();let _0xbadefd=_0x3f5749[_0x1532f8];return _0xbadefd;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x44b078,_0xfa7f73,_0x2542d7,_0x55d0c4){const _0x2c88ca=a212_0xbade,_0x33743e=_0x44b078??createEmptySqlLock();let _0x483b24=_0x33743e['apps'][_0xfa7f73];if(!_0x483b24)return _0x483b24={'sqlRoot':_0x2542d7,'lastSync':'','sqls':{}},_0x33743e[_0x2c88ca(0x1a6)][_0xfa7f73]=_0x483b24,{'lockData':_0x33743e,'appLock':_0x483b24};if(!_0x483b24[_0x2c88ca(0x19f)])_0x483b24[_0x2c88ca(0x19f)]=_0x2542d7;else{if(_0x483b24[_0x2c88ca(0x19f)]!==_0x2542d7)throw new Error(_0x55d0c4+_0x2c88ca(0x1b0)+_0x2542d7+'\x22\x20vs\x20lock\x20\x22'+_0x483b24[_0x2c88ca(0x19f)]+_0x2c88ca(0x1b1)+_0x2c88ca(0x1a7));}return!_0x483b24[_0x2c88ca(0x1b3)]&&(_0x483b24[_0x2c88ca(0x1b3)]={}),!_0x483b24['lastSync']&&(_0x483b24[_0x2c88ca(0x1a0)]=''),{'lockData':_0x33743e,'appLock':_0x483b24};}function a212_0x3f57(){const _0x130757=['ENOENT','utf8','323978nxjHbR','8eyItfG','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','316264PSvpLQ','4723971wKbvfe',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22.\x20','parse','sqls','code','585375PmdxxV','423ZGqbeE','sqlRoot','lastSync','223751HtIxiT','1326FrgqiM','37720BwlTcn','3764764xCvPAK','stringify','apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','430IPgzJg'];a212_0x3f57=function(){return _0x130757;};return a212_0x3f57();}export async function readSqlLockFile(_0x55298f){const _0xdc3615=a212_0xbade;try{const _0x3b4598=await readFile(_0x55298f,_0xdc3615(0x1aa));return JSON[_0xdc3615(0x1b2)](_0x3b4598);}catch(_0x31fa44){if(_0x31fa44[_0xdc3615(0x1b4)]===_0xdc3615(0x1a9))return null;throw new Error(_0xdc3615(0x1ad)+String(_0x31fa44));}}export async function writeSqlLockFile(_0x335a77,_0x136882){const _0x3274ed=a212_0xbade;await mkdir(dirname(_0x335a77),{'recursive':!![]}),await writeFile(_0x335a77,JSON[_0x3274ed(0x1a5)](_0x136882,null,0x2),'utf8');}
1
+ (function(_0xa2e4a7,_0xa198a4){const _0x3d3820=a212_0x4267,_0xf5d495=_0xa2e4a7();while(!![]){try{const _0x248e46=-parseInt(_0x3d3820(0x19c))/0x1+parseInt(_0x3d3820(0x190))/0x2+-parseInt(_0x3d3820(0x19a))/0x3+parseInt(_0x3d3820(0x19e))/0x4*(parseInt(_0x3d3820(0x19d))/0x5)+parseInt(_0x3d3820(0x195))/0x6+parseInt(_0x3d3820(0x199))/0x7+parseInt(_0x3d3820(0x197))/0x8*(parseInt(_0x3d3820(0x198))/0x9);if(_0x248e46===_0xa198a4)break;else _0xf5d495['push'](_0xf5d495['shift']());}catch(_0x5e56e3){_0xf5d495['push'](_0xf5d495['shift']());}}}(a212_0x2006,0x4629e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a212_0x4267(_0x5f37dc,_0x91efdf){_0x5f37dc=_0x5f37dc-0x18c;const _0x200653=a212_0x2006();let _0x426718=_0x200653[_0x5f37dc];return _0x426718;}function a212_0x2006(){const _0x3cf385=['1281528rXNUzR','stringify','493781iCFXsb','5mqSSVd','342596uITdwL','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','sqlRoot','apps',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','545002VZXBSv','\x22\x20vs\x20lock\x20\x22','sqls','utf8','code','2136654tIYvcw','parse','16bxPRJS','2173194wvtFCl','78092PTYzKa'];a212_0x2006=function(){return _0x3cf385;};return a212_0x2006();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5122fd,_0x2264a0,_0x2cff2f,_0x332961){const _0x380970=a212_0x4267,_0x1a05f1=_0x5122fd??createEmptySqlLock();let _0x9dd95d=_0x1a05f1[_0x380970(0x18e)][_0x2264a0];if(!_0x9dd95d)return _0x9dd95d={'sqlRoot':_0x2cff2f,'lastSync':'','sqls':{}},_0x1a05f1['apps'][_0x2264a0]=_0x9dd95d,{'lockData':_0x1a05f1,'appLock':_0x9dd95d};if(!_0x9dd95d['sqlRoot'])_0x9dd95d[_0x380970(0x18d)]=_0x2cff2f;else{if(_0x9dd95d['sqlRoot']!==_0x2cff2f)throw new Error(_0x332961+_0x380970(0x18f)+_0x2cff2f+_0x380970(0x191)+_0x9dd95d['sqlRoot']+'\x22.\x20'+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x9dd95d[_0x380970(0x192)]&&(_0x9dd95d[_0x380970(0x192)]={}),!_0x9dd95d['lastSync']&&(_0x9dd95d[_0x380970(0x18c)]=''),{'lockData':_0x1a05f1,'appLock':_0x9dd95d};}export async function readSqlLockFile(_0x39d4f4){const _0x2e2d76=a212_0x4267;try{const _0x536c20=await readFile(_0x39d4f4,'utf8');return JSON[_0x2e2d76(0x196)](_0x536c20);}catch(_0x5a40de){if(_0x5a40de[_0x2e2d76(0x194)]==='ENOENT')return null;throw new Error(_0x2e2d76(0x19f)+String(_0x5a40de));}}export async function writeSqlLockFile(_0x399c93,_0x5b94ee){const _0x1a6e42=a212_0x4267;await mkdir(dirname(_0x399c93),{'recursive':!![]}),await writeFile(_0x399c93,JSON[_0x1a6e42(0x19b)](_0x5b94ee,null,0x2),_0x1a6e42(0x193));}
@@ -1 +1 @@
1
- (function(_0x1b9a05,_0x5e80f0){const _0x3ef7db=a214_0x550f,_0x586847=_0x1b9a05();while(!![]){try{const _0x583c4f=parseInt(_0x3ef7db(0x198))/0x1+parseInt(_0x3ef7db(0x19c))/0x2+parseInt(_0x3ef7db(0x190))/0x3*(-parseInt(_0x3ef7db(0x196))/0x4)+-parseInt(_0x3ef7db(0x18e))/0x5+parseInt(_0x3ef7db(0x191))/0x6+-parseInt(_0x3ef7db(0x19f))/0x7*(-parseInt(_0x3ef7db(0x199))/0x8)+parseInt(_0x3ef7db(0x194))/0x9*(-parseInt(_0x3ef7db(0x19b))/0xa);if(_0x583c4f===_0x5e80f0)break;else _0x586847['push'](_0x586847['shift']());}catch(_0x4f02bc){_0x586847['push'](_0x586847['shift']());}}}(a214_0x322f,0xd7781));export function detectSqlMode(_0x21576c){const _0x3bb495=a214_0x550f,_0x33e05e=_0x21576c[_0x3bb495(0x193)]();if(/^<(select|insert|update|delete)\b/i[_0x3bb495(0x18f)](_0x33e05e))return _0x3bb495(0x19e);return _0x3bb495(0x192);}export function getSqlFileExtension(_0x78d709){const _0x7e6f48=a214_0x550f;return _0x78d709===_0x7e6f48(0x19e)?'.xml':_0x7e6f48(0x19d);}export function buildDefaultSqlFileName(_0x364788,_0x1ec7cd){return''+_0x364788+getSqlFileExtension(_0x1ec7cd);}export function sanitizeSqlPathSegment(_0x2b3a02,_0x16625){const _0x22dc9d=a214_0x550f,_0xb5ea3e=String(_0x2b3a02??'')[_0x22dc9d(0x197)](),_0x15be1b=_0xb5ea3e[_0x22dc9d(0x19a)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x22dc9d(0x19a)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x22dc9d(0x19a)](/^\.+/,'')['replace'](/\.+$/,'')[_0x22dc9d(0x19a)](/^-+/,'')[_0x22dc9d(0x19a)](/-+$/,'');return _0x15be1b||_0x16625;}export function buildDbDirectoryName(_0x1f138f,_0x4c12c3){return sanitizeSqlPathSegment(_0x1f138f,_0x4c12c3!=null?'db-'+_0x4c12c3:'unknown-db');}export function buildSqlRelativePath(_0x4d424b,_0x4f78b6,_0x52ced8,_0x4d8600,_0x3a9326){const _0x2b6361=a214_0x550f,_0x615d8=buildDbDirectoryName(_0x52ced8,_0x3a9326),_0x36ad44=sanitizeSqlPathSegment(_0x4d424b,_0x2b6361(0x195)),_0x5469ff=sanitizeSqlPathSegment(_0x4f78b6,_0x36ad44);return _0x615d8+'/'+_0x36ad44+'_'+_0x5469ff+getSqlFileExtension(_0x4d8600);}function a214_0x550f(_0xb915c,_0x4d2cdf){_0xb915c=_0xb915c-0x18e;const _0x322fd0=a214_0x322f();let _0x550f04=_0x322fd0[_0xb915c];return _0x550f04;}function a214_0x322f(){const _0x5722a9=['7127274QtLvEl','sql','trimStart','14013OXheeU','unknown-sql','8gpFGim','trim','193872uysGgd','2616yabIQe','replace','1710sWIqBE','389882RQTrug','.sql','mybatisXml','11165YMEhvz','3715835tLJfXO','test','309423hAjkBc'];a214_0x322f=function(){return _0x5722a9;};return a214_0x322f();}
1
+ function a214_0x1164(_0x2b1216,_0x254c41){_0x2b1216=_0x2b1216-0x174;const _0x176f16=a214_0x176f();let _0x1164d9=_0x176f16[_0x2b1216];return _0x1164d9;}(function(_0x1772e7,_0x85b5e2){const _0x4c6392=a214_0x1164,_0x329887=_0x1772e7();while(!![]){try{const _0x20ece8=-parseInt(_0x4c6392(0x17e))/0x1*(-parseInt(_0x4c6392(0x186))/0x2)+-parseInt(_0x4c6392(0x179))/0x3*(-parseInt(_0x4c6392(0x185))/0x4)+parseInt(_0x4c6392(0x17f))/0x5+-parseInt(_0x4c6392(0x188))/0x6*(parseInt(_0x4c6392(0x182))/0x7)+parseInt(_0x4c6392(0x17d))/0x8*(-parseInt(_0x4c6392(0x17a))/0x9)+parseInt(_0x4c6392(0x184))/0xa*(parseInt(_0x4c6392(0x176))/0xb)+-parseInt(_0x4c6392(0x180))/0xc;if(_0x20ece8===_0x85b5e2)break;else _0x329887['push'](_0x329887['shift']());}catch(_0xf0c75e){_0x329887['push'](_0x329887['shift']());}}}(a214_0x176f,0x4675c));export function detectSqlMode(_0x1e5ae0){const _0x504cb3=a214_0x1164,_0x4d2f4a=_0x1e5ae0['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x504cb3(0x17b)](_0x4d2f4a))return'mybatisXml';return _0x504cb3(0x178);}export function getSqlFileExtension(_0x2b2bc4){const _0x648bfb=a214_0x1164;return _0x2b2bc4===_0x648bfb(0x17c)?_0x648bfb(0x174):'.sql';}export function buildDefaultSqlFileName(_0x2fecac,_0x43c5e0){return''+_0x2fecac+getSqlFileExtension(_0x43c5e0);}export function sanitizeSqlPathSegment(_0x3cda3f,_0x410a5f){const _0x28bf88=a214_0x1164,_0x14c370=String(_0x3cda3f??'')[_0x28bf88(0x181)](),_0x1744ac=_0x14c370[_0x28bf88(0x187)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x28bf88(0x187)](/\s+/g,'-')[_0x28bf88(0x187)](/-+/g,'-')[_0x28bf88(0x187)](/^\.+/,'')[_0x28bf88(0x187)](/\.+$/,'')[_0x28bf88(0x187)](/^-+/,'')[_0x28bf88(0x187)](/-+$/,'');return _0x1744ac||_0x410a5f;}export function buildDbDirectoryName(_0x28b1fe,_0x439691){const _0x38ebaf=a214_0x1164;return sanitizeSqlPathSegment(_0x28b1fe,_0x439691!=null?_0x38ebaf(0x177)+_0x439691:_0x38ebaf(0x175));}function a214_0x176f(){const _0x3b43ba=['205453mXaNVA','2125745FThIfV','6676416KDGcRc','trim','217mEhqFC','unknown-sql','2189840FZGijX','2656qDfkCg','4xWUrhV','replace','59442ZAvEmA','.xml','unknown-db','11cjfjkH','db-','sql','2481FdcBQM','369882OyibET','test','mybatisXml','88ZUIlXs'];a214_0x176f=function(){return _0x3b43ba;};return a214_0x176f();}export function buildSqlRelativePath(_0x5709c2,_0x3534f8,_0x49c8c5,_0x2041c5,_0x4e0715){const _0x4abda2=a214_0x1164,_0x30b9c8=buildDbDirectoryName(_0x49c8c5,_0x4e0715),_0x370b53=sanitizeSqlPathSegment(_0x5709c2,_0x4abda2(0x183)),_0x324851=sanitizeSqlPathSegment(_0x3534f8,_0x370b53);return _0x30b9c8+'/'+_0x370b53+'_'+_0x324851+getSqlFileExtension(_0x2041c5);}
@@ -1 +1 @@
1
- (function(_0x7604c2,_0x3bbcc5){const _0x490d06=a215_0x2f39,_0x10418d=_0x7604c2();while(!![]){try{const _0x1683af=parseInt(_0x490d06(0x144))/0x1*(parseInt(_0x490d06(0x13f))/0x2)+-parseInt(_0x490d06(0x12f))/0x3+parseInt(_0x490d06(0x137))/0x4+-parseInt(_0x490d06(0x146))/0x5+-parseInt(_0x490d06(0x142))/0x6+parseInt(_0x490d06(0x150))/0x7+-parseInt(_0x490d06(0x135))/0x8*(parseInt(_0x490d06(0x14b))/0x9);if(_0x1683af===_0x3bbcc5)break;else _0x10418d['push'](_0x10418d['shift']());}catch(_0x2ec2ed){_0x10418d['push'](_0x10418d['shift']());}}}(a215_0x4abc,0x2480c));export function detectSqlType(_0x245a0c){const _0x46113b=a215_0x2f39;if(!_0x245a0c?.[_0x46113b(0x13a)]())return{'type':_0x46113b(0x14e),'isSelectOnly':![],'isDangerous':![],'reason':_0x46113b(0x14c)};const _0x49f0d0=_0x245a0c[_0x46113b(0x130)](/#\{[^}]*\}/g,'?')[_0x46113b(0x130)](/\$\{[^}]*\}/g,'?')[_0x46113b(0x130)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x46113b(0x130)](/\/\*[\s\S]*?\*\//g,'')[_0x46113b(0x13a)](),_0x13f601=_0x49f0d0[_0x46113b(0x147)]('\x0a');let _0x20e4cf='';for(const _0x4b1633 of _0x13f601){const _0x435e5d=_0x4b1633[_0x46113b(0x13a)]();if(!_0x435e5d||_0x435e5d[_0x46113b(0x12d)]('--')||_0x435e5d['startsWith']('/*'))continue;_0x20e4cf=_0x435e5d;break;}const _0x14f314=_0x20e4cf[_0x46113b(0x13b)]();if(_0x14f314[_0x46113b(0x12d)]('SELECT')||_0x14f314[_0x46113b(0x12d)](_0x46113b(0x143))){const _0x1a42df=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x46113b(0x13c)](_0x49f0d0);return{'type':_0x46113b(0x14f),'isSelectOnly':!_0x1a42df,'isDangerous':_0x1a42df,'reason':_0x1a42df?_0x46113b(0x131):undefined};}if(_0x14f314[_0x46113b(0x12d)]('INSERT'))return{'type':_0x46113b(0x13d),'isSelectOnly':![],'isDangerous':![]};if(_0x14f314[_0x46113b(0x12d)](_0x46113b(0x145)))return{'type':_0x46113b(0x145),'isSelectOnly':![],'isDangerous':![]};if(_0x14f314[_0x46113b(0x12d)]('DELETE'))return{'type':_0x46113b(0x12e),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x46113b(0x13c)](_0x14f314))return{'type':_0x46113b(0x153),'isSelectOnly':![],'isDangerous':!![],'reason':_0x46113b(0x134)};return{'type':_0x46113b(0x14e),'isSelectOnly':![],'isDangerous':![]};}function a215_0x2f39(_0x84260a,_0x41004c){_0x84260a=_0x84260a-0x12c;const _0x4abcb5=a215_0x4abc();let _0x2f393b=_0x4abcb5[_0x84260a];return _0x2f393b;}function a215_0x4abc(){const _0x41424f=['matchAll','2007XepiLI','SQL\x20content\x20is\x20empty','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','UNKNOWN','SELECT','1872129yeZLPp','type','join','DDL','unknown\x20table(s)','startsWith','DELETE','611652dZgcVh','replace','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','\x20query\x20targeting\x20','\x20with\x20parameters:\x20','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','6024nWKvsC','match','998964WGOciD','includes','length','trim','toUpperCase','test','INSERT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','55912YnWTBq','reason','from','351882HTYFvo','WITH','7eTCDwc','UPDATE','664570SgELJT','split','push','add'];a215_0x4abc=function(){return _0x41424f;};return a215_0x4abc();}function extractTables(_0x35f894){const _0x5463c3=a215_0x2f39,_0x2ea1bd=_0x35f894[_0x5463c3(0x130)](/#\{[^}]*\}/g,'?')[_0x5463c3(0x130)](/\$\{[^}]*\}/g,'?')[_0x5463c3(0x130)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x5463c3(0x130)](/\/\*[\s\S]*?\*\//g,''),_0x35c6d7=[],_0x2f333d=_0x2ea1bd['match'](/FROM\s+([^\s,)(]+)/i);if(_0x2f333d?.[0x1])_0x35c6d7[_0x5463c3(0x148)](_0x2f333d[0x1][_0x5463c3(0x130)](/[`"]/g,''));for(const _0x404337 of _0x2ea1bd[_0x5463c3(0x14a)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x548cf3=_0x404337[0x1]?.[_0x5463c3(0x130)](/[`"]/g,'');if(_0x548cf3&&!_0x35c6d7['includes'](_0x548cf3))_0x35c6d7[_0x5463c3(0x148)](_0x548cf3);}const _0x5e247a=_0x2ea1bd[_0x5463c3(0x136)](/INTO\s+([^\s(]+)/i);if(_0x5e247a?.[0x1]){const _0x17d9ac=_0x5e247a[0x1][_0x5463c3(0x130)](/[`"]/g,'');if(!_0x35c6d7['includes'](_0x17d9ac))_0x35c6d7[_0x5463c3(0x148)](_0x17d9ac);}const _0x2ba1e2=_0x2ea1bd[_0x5463c3(0x136)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2ba1e2?.[0x1]){const _0x415d0d=_0x2ba1e2[0x1][_0x5463c3(0x130)](/[`"]/g,'');if(!_0x35c6d7[_0x5463c3(0x138)](_0x415d0d))_0x35c6d7[_0x5463c3(0x148)](_0x415d0d);}return _0x35c6d7;}function extractParameters(_0x21a93a){const _0x202670=a215_0x2f39,_0x21ab04=new Set();for(const _0x43fc7a of _0x21a93a[_0x202670(0x14a)](/#\{(\w+)\}/g))if(_0x43fc7a[0x1])_0x21ab04[_0x202670(0x149)](_0x43fc7a[0x1]);for(const _0x3836ee of _0x21a93a[_0x202670(0x14a)](/\$\{(\w+)\}/g))if(_0x3836ee[0x1])_0x21ab04[_0x202670(0x149)](_0x3836ee[0x1]);return Array[_0x202670(0x141)](_0x21ab04);}export function validateSql(_0x959379){const _0x4f146f=a215_0x2f39,_0x6ad454=detectSqlType(_0x959379),_0x4d53cc=extractTables(_0x959379),_0x29aea2=extractParameters(_0x959379);if(_0x6ad454['isDangerous'])return{'valid':![],'sqlType':_0x6ad454,'tables':_0x4d53cc,'parameters':_0x29aea2,'message':_0x6ad454[_0x4f146f(0x140)]||_0x6ad454[_0x4f146f(0x151)]+_0x4f146f(0x13e)};if(_0x6ad454[_0x4f146f(0x151)]===_0x4f146f(0x14e))return{'valid':![],'sqlType':_0x6ad454,'tables':_0x4d53cc,'parameters':_0x29aea2,'message':_0x4f146f(0x14d)};return{'valid':!![],'sqlType':_0x6ad454,'tables':_0x4d53cc,'parameters':_0x29aea2,'message':_0x6ad454[_0x4f146f(0x151)]+_0x4f146f(0x132)+(_0x4d53cc[_0x4f146f(0x139)]?_0x4d53cc[_0x4f146f(0x152)](',\x20'):_0x4f146f(0x12c))+(_0x29aea2[_0x4f146f(0x139)]?_0x4f146f(0x133)+_0x29aea2['join'](',\x20'):'')};}
1
+ (function(_0x552303,_0x19e49b){const _0x40ee4e=a215_0x1006,_0x1beb2e=_0x552303();while(!![]){try{const _0x12daed=-parseInt(_0x40ee4e(0x16d))/0x1*(parseInt(_0x40ee4e(0x185))/0x2)+-parseInt(_0x40ee4e(0x172))/0x3+-parseInt(_0x40ee4e(0x17a))/0x4*(parseInt(_0x40ee4e(0x18d))/0x5)+-parseInt(_0x40ee4e(0x181))/0x6*(-parseInt(_0x40ee4e(0x188))/0x7)+-parseInt(_0x40ee4e(0x174))/0x8*(-parseInt(_0x40ee4e(0x176))/0x9)+parseInt(_0x40ee4e(0x18b))/0xa+-parseInt(_0x40ee4e(0x189))/0xb*(-parseInt(_0x40ee4e(0x16f))/0xc);if(_0x12daed===_0x19e49b)break;else _0x1beb2e['push'](_0x1beb2e['shift']());}catch(_0xe01724){_0x1beb2e['push'](_0x1beb2e['shift']());}}}(a215_0x323b,0xd2b24));export function detectSqlType(_0xc55425){const _0x2668a1=a215_0x1006;if(!_0xc55425?.[_0x2668a1(0x18e)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x2668a1(0x175)};const _0x9b4eee=_0xc55425[_0x2668a1(0x171)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x2668a1(0x171)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x2668a1(0x18e)](),_0x4d55b1=_0x9b4eee['split']('\x0a');let _0x3fb4ba='';for(const _0xbe9417 of _0x4d55b1){const _0x5e0ba7=_0xbe9417['trim']();if(!_0x5e0ba7||_0x5e0ba7[_0x2668a1(0x16c)]('--')||_0x5e0ba7['startsWith']('/*'))continue;_0x3fb4ba=_0x5e0ba7;break;}const _0x45efff=_0x3fb4ba[_0x2668a1(0x17c)]();if(_0x45efff['startsWith'](_0x2668a1(0x16a))||_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x190))){const _0x1cd8be=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2668a1(0x18f)](_0x9b4eee);return{'type':_0x2668a1(0x16a),'isSelectOnly':!_0x1cd8be,'isDangerous':_0x1cd8be,'reason':_0x1cd8be?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x173)))return{'type':_0x2668a1(0x173),'isSelectOnly':![],'isDangerous':![]};if(_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x17e)))return{'type':_0x2668a1(0x17e),'isSelectOnly':![],'isDangerous':![]};if(_0x45efff['startsWith'](_0x2668a1(0x17b)))return{'type':_0x2668a1(0x17b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2668a1(0x179)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x45efff))return{'type':_0x2668a1(0x191),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2668a1(0x180),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x40bcbc){const _0x48cbe9=a215_0x1006,_0x26ae98=_0x40bcbc[_0x48cbe9(0x171)](/#\{[^}]*\}/g,'?')[_0x48cbe9(0x171)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x48cbe9(0x171)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x334c2e=[],_0x391e9d=_0x26ae98['match'](/FROM\s+([^\s,)(]+)/i);if(_0x391e9d?.[0x1])_0x334c2e[_0x48cbe9(0x16b)](_0x391e9d[0x1]['replace'](/[`"]/g,''));for(const _0x83972a of _0x26ae98['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4b3731=_0x83972a[0x1]?.[_0x48cbe9(0x171)](/[`"]/g,'');if(_0x4b3731&&!_0x334c2e['includes'](_0x4b3731))_0x334c2e[_0x48cbe9(0x16b)](_0x4b3731);}const _0x225c64=_0x26ae98[_0x48cbe9(0x183)](/INTO\s+([^\s(]+)/i);if(_0x225c64?.[0x1]){const _0x23d752=_0x225c64[0x1][_0x48cbe9(0x171)](/[`"]/g,'');if(!_0x334c2e[_0x48cbe9(0x17f)](_0x23d752))_0x334c2e[_0x48cbe9(0x16b)](_0x23d752);}const _0x5cd49c=_0x26ae98['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x5cd49c?.[0x1]){const _0xc3446d=_0x5cd49c[0x1][_0x48cbe9(0x171)](/[`"]/g,'');if(!_0x334c2e[_0x48cbe9(0x17f)](_0xc3446d))_0x334c2e[_0x48cbe9(0x16b)](_0xc3446d);}return _0x334c2e;}function a215_0x323b(){const _0x2e3326=['UNKNOWN','6280098bhpjCg','type','match','matchAll','46dFgKTg','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','reason','7bOAMvI','894124FmdDXS','from','12764480YTCWyi','join','6984545GzXNbD','trim','test','WITH','DDL','SELECT','push','startsWith','66670hIiGrj','add','216yXeUMW','\x20query\x20targeting\x20','replace','2092236CDHhWv','INSERT','5636000KgkJsA','SQL\x20content\x20is\x20empty','9FuhWMW','isDangerous','length','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','4ZerkaK','DELETE','toUpperCase','unknown\x20table(s)','UPDATE','includes'];a215_0x323b=function(){return _0x2e3326;};return a215_0x323b();}function extractParameters(_0x2d08c3){const _0x4cf01d=a215_0x1006,_0x1a671e=new Set();for(const _0xa51a37 of _0x2d08c3[_0x4cf01d(0x184)](/#\{(\w+)\}/g))if(_0xa51a37[0x1])_0x1a671e[_0x4cf01d(0x16e)](_0xa51a37[0x1]);for(const _0x4a664d of _0x2d08c3[_0x4cf01d(0x184)](/\$\{(\w+)\}/g))if(_0x4a664d[0x1])_0x1a671e['add'](_0x4a664d[0x1]);return Array[_0x4cf01d(0x18a)](_0x1a671e);}function a215_0x1006(_0x3c3c4c,_0x46ab2d){_0x3c3c4c=_0x3c3c4c-0x16a;const _0x323b42=a215_0x323b();let _0x1006a1=_0x323b42[_0x3c3c4c];return _0x1006a1;}export function validateSql(_0x1b0863){const _0x3b2687=a215_0x1006,_0xe94960=detectSqlType(_0x1b0863),_0x362621=extractTables(_0x1b0863),_0x1a399e=extractParameters(_0x1b0863);if(_0xe94960[_0x3b2687(0x177)])return{'valid':![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0xe94960[_0x3b2687(0x187)]||_0xe94960[_0x3b2687(0x182)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0xe94960[_0x3b2687(0x182)]===_0x3b2687(0x180))return{'valid':![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0x3b2687(0x186)};return{'valid':!![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0xe94960['type']+_0x3b2687(0x170)+(_0x362621[_0x3b2687(0x178)]?_0x362621[_0x3b2687(0x18c)](',\x20'):_0x3b2687(0x17d))+(_0x1a399e[_0x3b2687(0x178)]?'\x20with\x20parameters:\x20'+_0x1a399e[_0x3b2687(0x18c)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a216_0x5576(){const _0x403e0e=['4292799qRUdCQ','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','9177751qExaJs','582533xTGvcs','20pOdJqe','114rotipR','11388BRXTUF','322gVFroP','Tip:\x20`','1259260JqzrHH','3684kdTfJy','4130lFeUTB','Run\x20`','20968JlovAf','10lGABRW','1377zttiPv','\x20auth`\x20to\x20login\x20first.'];a216_0x5576=function(){return _0x403e0e;};return a216_0x5576();}const a216_0x2fb150=a216_0x4306;(function(_0x2eefec,_0x1b13a7){const _0x4a7953=a216_0x4306,_0x294999=_0x2eefec();while(!![]){try{const _0x5c825e=-parseInt(_0x4a7953(0x1d2))/0x1*(parseInt(_0x4a7953(0x1ce))/0x2)+parseInt(_0x4a7953(0x1d8))/0x3+-parseInt(_0x4a7953(0x1cb))/0x4*(parseInt(_0x4a7953(0x1d0))/0x5)+-parseInt(_0x4a7953(0x1cc))/0x6*(-parseInt(_0x4a7953(0x1ca))/0x7)+-parseInt(_0x4a7953(0x1d4))/0x8*(-parseInt(_0x4a7953(0x1d6))/0x9)+-parseInt(_0x4a7953(0x1d5))/0xa*(parseInt(_0x4a7953(0x1c9))/0xb)+-parseInt(_0x4a7953(0x1d1))/0xc*(-parseInt(_0x4a7953(0x1cd))/0xd);if(_0x5c825e===_0x1b13a7)break;else _0x294999['push'](_0x294999['shift']());}catch(_0x25dd5e){_0x294999['push'](_0x294999['shift']());}}}(a216_0x5576,0xe1774));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a216_0x4306(_0x36eebd,_0x1b9e32){_0x36eebd=_0x36eebd-0x1c9;const _0x557662=a216_0x5576();let _0x4306ab=_0x557662[_0x36eebd];return _0x4306ab;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a216_0x2fb150(0x1d3)+CLI_BIN_NAME+a216_0x2fb150(0x1d7),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a216_0x2fb150(0x1cf)+CLI_BIN_NAME+a216_0x2fb150(0x1d9)]['join']('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ function a216_0xe5ee(){const _0x568e19=['175YxWepa','\x0a\x20\x20\x20\x20\x20\x20\x20','1760747kqJQCe','66644PkrWEA','27ryJHFB','8708RoyMXB','24835844nLCcCi','4543670jwsAAX','Tip:\x20`','1491426IygKnM','2648TlJLlf','2dZmJVg','\x20auth`\x20to\x20login\x20first.','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','892773EjgVQi'];a216_0xe5ee=function(){return _0x568e19;};return a216_0xe5ee();}const a216_0x10e57c=a216_0x153f;(function(_0x1025ab,_0x5f4b4c){const _0x403bbe=a216_0x153f,_0x5454f6=_0x1025ab();while(!![]){try{const _0x553fba=parseInt(_0x403bbe(0x12a))/0x1*(-parseInt(_0x403bbe(0x133))/0x2)+parseInt(_0x403bbe(0x127))/0x3+parseInt(_0x403bbe(0x12b))/0x4*(-parseInt(_0x403bbe(0x128))/0x5)+-parseInt(_0x403bbe(0x131))/0x6+parseInt(_0x403bbe(0x12d))/0x7*(-parseInt(_0x403bbe(0x132))/0x8)+-parseInt(_0x403bbe(0x12c))/0x9*(-parseInt(_0x403bbe(0x12f))/0xa)+parseInt(_0x403bbe(0x12e))/0xb;if(_0x553fba===_0x5f4b4c)break;else _0x5454f6['push'](_0x5454f6['shift']());}catch(_0x214c7b){_0x5454f6['push'](_0x5454f6['shift']());}}}(a216_0xe5ee,0xdf367));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a216_0x153f(_0x2f3766,_0x5b228e){_0x2f3766=_0x2f3766-0x126;const _0xe5ee13=a216_0xe5ee();let _0x153fd1=_0xe5ee13[_0x2f3766];return _0x153fd1;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a216_0x10e57c(0x135)+CLI_BIN_NAME+a216_0x10e57c(0x134),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a216_0x10e57c(0x126),a216_0x10e57c(0x130)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a216_0x10e57c(0x129)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- function a217_0x522d(){const _0x422d8d=['4821032RqCver','910CxsTcM','824287pZaybV','map','1051755NsAOgc','2hMKvns','1809hnZHaq','6993FrIkuM','1844HaGkam','5802665YYUswp','name','625975CzCZsK','6MgfcZf','12MzgGZt'];a217_0x522d=function(){return _0x422d8d;};return a217_0x522d();}(function(_0x5411c9,_0x1cf268){const _0x11f152=a217_0x3a78,_0x941da3=_0x5411c9();while(!![]){try{const _0x59464e=-parseInt(_0x11f152(0x107))/0x1*(-parseInt(_0x11f152(0xfc))/0x2)+parseInt(_0x11f152(0xfd))/0x3*(-parseInt(_0x11f152(0xff))/0x4)+-parseInt(_0x11f152(0x109))/0x5*(parseInt(_0x11f152(0x103))/0x6)+parseInt(_0x11f152(0x102))/0x7+-parseInt(_0x11f152(0x105))/0x8+parseInt(_0x11f152(0xfe))/0x9*(parseInt(_0x11f152(0x106))/0xa)+-parseInt(_0x11f152(0x100))/0xb*(-parseInt(_0x11f152(0x104))/0xc);if(_0x59464e===_0x1cf268)break;else _0x941da3['push'](_0x941da3['shift']());}catch(_0x27ee88){_0x941da3['push'](_0x941da3['shift']());}}}(a217_0x522d,0x66c6b));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a217_0x40de4c}from'@lovrabet/cli-framework';function a217_0x3a78(_0x3fa607,_0xde7dee){_0x3fa607=_0x3fa607-0xfc;const _0x522d5b=a217_0x522d();let _0x3a785c=_0x522d5b[_0x3fa607];return _0x3a785c;}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xb5f5da){const _0x29282b=a217_0x3a78,_0x5be6a1=a217_0x40de4c(_0xb5f5da,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xb5f5da))return _0x5be6a1;return _0x5be6a1[_0x29282b(0x108)](_0x85e27=>_0x85e27[_0x29282b(0x101)]==='yes'?{..._0x85e27,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x85e27);}
1
+ (function(_0x2d65f1,_0x11d50e){const _0xba05db=a217_0x29f7,_0x50be20=_0x2d65f1();while(!![]){try{const _0x39092d=-parseInt(_0xba05db(0xa1))/0x1*(-parseInt(_0xba05db(0x97))/0x2)+parseInt(_0xba05db(0xa2))/0x3*(parseInt(_0xba05db(0x9f))/0x4)+-parseInt(_0xba05db(0xa3))/0x5*(parseInt(_0xba05db(0x9d))/0x6)+-parseInt(_0xba05db(0x9a))/0x7+-parseInt(_0xba05db(0x9e))/0x8*(parseInt(_0xba05db(0x9b))/0x9)+parseInt(_0xba05db(0x9c))/0xa+-parseInt(_0xba05db(0xa4))/0xb*(parseInt(_0xba05db(0x99))/0xc);if(_0x39092d===_0x11d50e)break;else _0x50be20['push'](_0x50be20['shift']());}catch(_0x2e14bc){_0x50be20['push'](_0x50be20['shift']());}}}(a217_0x2cd2,0x61fef));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a217_0x2cd2(){const _0xa5b74c=['348136iZHkso','2752008kdheCY','yes','251078BsdnJu','3xbDrMp','45AvNdLm','22YhfxAV','2wNdUqq','map','978060qctqBu','4065747YKlxto','45EYrbUA','4251940JbNIbM','978vKQslb'];a217_0x2cd2=function(){return _0xa5b74c;};return a217_0x2cd2();}function a217_0x29f7(_0x5c4449,_0x844a0a){_0x5c4449=_0x5c4449-0x97;const _0x2cd2fa=a217_0x2cd2();let _0x29f773=_0x2cd2fa[_0x5c4449];return _0x29f773;}import{buildAllFlags as a217_0x577b32}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x2e15d4){const _0x2ba5ac=a217_0x29f7,_0x294cf5=a217_0x577b32(_0x2e15d4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x2e15d4))return _0x294cf5;return _0x294cf5[_0x2ba5ac(0x98)](_0x2940e2=>_0x2940e2['name']===_0x2ba5ac(0xa0)?{..._0x2940e2,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x2940e2);}
@@ -1 +1 @@
1
- function a218_0x39dc(){var _0xfbfbfb=['structuredErrors','985104nYWvRe','def','28vQnvNI','2791710qsafxs','677862gnAXAz','2153836cZGWHA','1704726iaHVeg','1004aegIha','350oQbzbn','22615QKDGlx','4049560lozxdx','compress'];a218_0x39dc=function(){return _0xfbfbfb;};return a218_0x39dc();}(function(_0x2cd5d2,_0x45ec2f){var _0x17ac00=a218_0x7871,_0x5e170b=_0x2cd5d2();while(!![]){try{var _0x40c0ae=parseInt(_0x17ac00(0x1d8))/0x1+parseInt(_0x17ac00(0x1d9))/0x2+parseInt(_0x17ac00(0x1d7))/0x3+-parseInt(_0x17ac00(0x1ce))/0x4*(-parseInt(_0x17ac00(0x1d0))/0x5)+parseInt(_0x17ac00(0x1da))/0x6*(parseInt(_0x17ac00(0x1d6))/0x7)+-parseInt(_0x17ac00(0x1d1))/0x8+parseInt(_0x17ac00(0x1d4))/0x9*(-parseInt(_0x17ac00(0x1cf))/0xa);if(_0x40c0ae===_0x45ec2f)break;else _0x5e170b['push'](_0x5e170b['shift']());}catch(_0x3b7829){_0x5e170b['push'](_0x5e170b['shift']());}}}(a218_0x39dc,0x975b0));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2d9ea1){var _0x3da33e=a218_0x7871;return _0x2d9ea1?.[_0x3da33e(0x1d3)]===!![];}function a218_0x7871(_0xd59a0c,_0x368636){_0xd59a0c=_0xd59a0c-0x1ce;var _0x39dcbf=a218_0x39dc();var _0x78713d=_0x39dcbf[_0xd59a0c];return _0x78713d;}export function resolveErrorOutputFormat(_0x1e296c){var _0x58a14a=a218_0x7871;if(!_0x1e296c[_0x58a14a(0x1d5)])return _0x1e296c['defaultFormat']??_0x58a14a(0x1d2);return resolveOutputConfig({'flags':_0x1e296c['flags']??{},'def':_0x1e296c[_0x58a14a(0x1d5)],'configDefault':_0x1e296c['defaultFormat']})['format'];}
1
+ (function(_0x5c5a9c,_0x24987e){var _0x5ba1e2=a218_0x4cfd,_0x54e626=_0x5c5a9c();while(!![]){try{var _0x3cb477=-parseInt(_0x5ba1e2(0x163))/0x1*(parseInt(_0x5ba1e2(0x160))/0x2)+-parseInt(_0x5ba1e2(0x15f))/0x3*(-parseInt(_0x5ba1e2(0x168))/0x4)+-parseInt(_0x5ba1e2(0x15c))/0x5*(-parseInt(_0x5ba1e2(0x161))/0x6)+-parseInt(_0x5ba1e2(0x165))/0x7*(-parseInt(_0x5ba1e2(0x15d))/0x8)+parseInt(_0x5ba1e2(0x16b))/0x9+-parseInt(_0x5ba1e2(0x166))/0xa+parseInt(_0x5ba1e2(0x167))/0xb*(-parseInt(_0x5ba1e2(0x162))/0xc);if(_0x3cb477===_0x24987e)break;else _0x54e626['push'](_0x54e626['shift']());}catch(_0x746a48){_0x54e626['push'](_0x54e626['shift']());}}}(a218_0x440f,0xe9e0f));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a218_0x440f(){var _0x1e79ea=['186954zSWqXh','20449764fmYqxv','307AFuAiM','format','21XJRosS','3425370WYXHyU','11ZMqkWq','8EiYHZt','defaultFormat','def','7670916mrPCDx','295KAmHwG','3159392GAafCz','flags','971394tOwJZa','9892NcmTGX'];a218_0x440f=function(){return _0x1e79ea;};return a218_0x440f();}function a218_0x4cfd(_0x506fa8,_0x5df327){_0x506fa8=_0x506fa8-0x15c;var _0x440fa5=a218_0x440f();var _0x4cfd70=_0x440fa5[_0x506fa8];return _0x4cfd70;}export function usesStructuredErrorOutput(_0x37ddcc){return _0x37ddcc?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x24b1b6){var _0x5b4f5d=a218_0x4cfd;if(!_0x24b1b6[_0x5b4f5d(0x16a)])return _0x24b1b6[_0x5b4f5d(0x169)]??'compress';return resolveOutputConfig({'flags':_0x24b1b6[_0x5b4f5d(0x15e)]??{},'def':_0x24b1b6[_0x5b4f5d(0x16a)],'configDefault':_0x24b1b6[_0x5b4f5d(0x169)]})[_0x5b4f5d(0x164)];}
@@ -1 +1 @@
1
- const a219_0x4f6c62=a219_0x3a75;function a219_0x2888(){const _0x3004e9=['446210NdhbEd','menu\x20regroup-start','70ycokLB','11641nkmBjP','659336fLdVxW','1480vNLtwj','menu\x20delete','menu\x20external-link-create','30963tGoXge','menu\x20group-create','1592226aZisov','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','99adnvig','menu\x20group-update','198201EipWfd','service','609380CZeIzg','command'];a219_0x2888=function(){return _0x3004e9;};return a219_0x2888();}(function(_0x4d35e4,_0x351c9f){const _0x2c1af0=a219_0x3a75,_0x44e6bd=_0x4d35e4();while(!![]){try{const _0x253c8c=parseInt(_0x2c1af0(0x16f))/0x1+parseInt(_0x2c1af0(0x175))/0x2*(parseInt(_0x2c1af0(0x17b))/0x3)+parseInt(_0x2c1af0(0x177))/0x4+parseInt(_0x2c1af0(0x171))/0x5+parseInt(_0x2c1af0(0x17d))/0x6+-parseInt(_0x2c1af0(0x176))/0x7*(parseInt(_0x2c1af0(0x178))/0x8)+parseInt(_0x2c1af0(0x17f))/0x9*(-parseInt(_0x2c1af0(0x173))/0xa);if(_0x253c8c===_0x351c9f)break;else _0x44e6bd['push'](_0x44e6bd['shift']());}catch(_0x859a20){_0x44e6bd['push'](_0x44e6bd['shift']());}}}(a219_0x2888,0x4c6c7));const EXPLICIT_YES_COMMANDS=new Set([a219_0x4f6c62(0x17a),a219_0x4f6c62(0x179),a219_0x4f6c62(0x17c),a219_0x4f6c62(0x16e),a219_0x4f6c62(0x174)]);function a219_0x3a75(_0x3e64ab,_0x3a4cc2){_0x3e64ab=_0x3e64ab-0x16e;const _0x288875=a219_0x2888();let _0x3a7583=_0x288875[_0x3e64ab];return _0x3a7583;}export const EXPLICIT_YES_FLAG_DESCRIPTION=a219_0x4f6c62(0x17e);export function requiresExplicitYes(_0x4283a9){const _0x57cc82=a219_0x4f6c62;return EXPLICIT_YES_COMMANDS['has'](_0x4283a9[_0x57cc82(0x170)]+'\x20'+_0x4283a9[_0x57cc82(0x172)]);}
1
+ const a219_0x40b2af=a219_0x24cd;(function(_0xd8b38a,_0x279815){const _0x474bbf=a219_0x24cd,_0x54d471=_0xd8b38a();while(!![]){try{const _0x29793b=-parseInt(_0x474bbf(0x10a))/0x1+parseInt(_0x474bbf(0x10c))/0x2*(parseInt(_0x474bbf(0x111))/0x3)+parseInt(_0x474bbf(0x10e))/0x4*(parseInt(_0x474bbf(0x114))/0x5)+-parseInt(_0x474bbf(0x10b))/0x6*(-parseInt(_0x474bbf(0x112))/0x7)+-parseInt(_0x474bbf(0x119))/0x8*(parseInt(_0x474bbf(0x109))/0x9)+parseInt(_0x474bbf(0x10f))/0xa+-parseInt(_0x474bbf(0x113))/0xb;if(_0x29793b===_0x279815)break;else _0x54d471['push'](_0x54d471['shift']());}catch(_0x42d28a){_0x54d471['push'](_0x54d471['shift']());}}}(a219_0x1364,0x9afe8));function a219_0x1364(){const _0x4155df=['3219880GNsLhx','command','15UbfDVN','49DTMQnV','12293600xzOouV','40BDyyRt','has','menu\x20group-create','menu\x20delete','menu\x20regroup-start','336296pApFNt','45dJzQjJ','129094rlgIgW','997956afFhXN','8026jowuTN','service','292700bcwFid'];a219_0x1364=function(){return _0x4155df;};return a219_0x1364();}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a219_0x40b2af(0x117),a219_0x40b2af(0x116),'menu\x20group-update',a219_0x40b2af(0x118)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';function a219_0x24cd(_0x5c0a1b,_0x122200){_0x5c0a1b=_0x5c0a1b-0x109;const _0x13643d=a219_0x1364();let _0x24cd3a=_0x13643d[_0x5c0a1b];return _0x24cd3a;}export function requiresExplicitYes(_0x417f36){const _0x308a7c=a219_0x40b2af;return EXPLICIT_YES_COMMANDS[_0x308a7c(0x115)](_0x417f36[_0x308a7c(0x10d)]+'\x20'+_0x417f36[_0x308a7c(0x110)]);}
@@ -1 +1 @@
1
- const a220_0xbc429b=a220_0x37cc;(function(_0x2c88ca,_0x50cce6){const _0xa04a83=a220_0x37cc,_0x228797=_0x2c88ca();while(!![]){try{const _0x4cca9b=-parseInt(_0xa04a83(0x176))/0x1+-parseInt(_0xa04a83(0x178))/0x2+-parseInt(_0xa04a83(0x173))/0x3+parseInt(_0xa04a83(0x177))/0x4*(parseInt(_0xa04a83(0x172))/0x5)+-parseInt(_0xa04a83(0x16f))/0x6+parseInt(_0xa04a83(0x170))/0x7+-parseInt(_0xa04a83(0x175))/0x8*(-parseInt(_0xa04a83(0x179))/0x9);if(_0x4cca9b===_0x50cce6)break;else _0x228797['push'](_0x228797['shift']());}catch(_0x2e7df5){_0x228797['push'](_0x228797['shift']());}}}(a220_0x1b1c,0x640ec));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a220_0xbc429b(0x174)];export const validateFlags=helpers[a220_0xbc429b(0x171)];function a220_0x37cc(_0x2e2c9c,_0x5a269c){_0x2e2c9c=_0x2e2c9c-0x16f;const _0x1b1c86=a220_0x1b1c();let _0x37cc9f=_0x1b1c86[_0x2e2c9c];return _0x37cc9f;}function a220_0x1b1c(){const _0x1ffe92=['2028564uyBpjV','parseFlags','122328qOWjms','184343GoMiRr','92564gTPvHL','1235568YEetzE','873YsSjPj','1801062hlDfDn','238084bJExRY','validateFlags','145PhQStD'];a220_0x1b1c=function(){return _0x1ffe92;};return a220_0x1b1c();}
1
+ const a220_0x37a0ad=a220_0x3b0b;function a220_0x5b6d(){const _0x1b7dd3=['4AwiGRy','validateFlags','1209096WwPHIW','2418220IMVhpY','222457zMIuXY','2eLUygS','1547660RZrCOd','988290IaslGF','846726ZPRTeL','208377zOWSva'];a220_0x5b6d=function(){return _0x1b7dd3;};return a220_0x5b6d();}(function(_0x1a0f2b,_0x402e95){const _0x43c447=a220_0x3b0b,_0x4a8546=_0x1a0f2b();while(!![]){try{const _0x4c1ac5=parseInt(_0x43c447(0x1a6))/0x1*(parseInt(_0x43c447(0x1a7))/0x2)+-parseInt(_0x43c447(0x1aa))/0x3*(parseInt(_0x43c447(0x1ac))/0x4)+parseInt(_0x43c447(0x1a8))/0x5+parseInt(_0x43c447(0x1a9))/0x6+-parseInt(_0x43c447(0x1af))/0x7+parseInt(_0x43c447(0x1ae))/0x8+-parseInt(_0x43c447(0x1ab))/0x9;if(_0x4c1ac5===_0x402e95)break;else _0x4a8546['push'](_0x4a8546['shift']());}catch(_0x3016f9){_0x4a8546['push'](_0x4a8546['shift']());}}}(a220_0x5b6d,0x3017a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a220_0x3b0b(_0x22930b,_0x18bcf0){_0x22930b=_0x22930b-0x1a6;const _0x5b6d46=a220_0x5b6d();let _0x3b0b91=_0x5b6d46[_0x22930b];return _0x3b0b91;}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a220_0x37a0ad(0x1ad)];
@@ -1 +1 @@
1
- const a221_0x2a14a3=a221_0x32ce;function a221_0x544f(){const _0x23eed8=['8529405nXFYoS','4xaQNEJ','646712dIrvkR','get','generateFullHelp','14772220fEsMDo','141918Jypsvr','112NWESgD','2054949qXSNaO','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','913518OREJgu','8PgRxsy','1020nxCdYo','replace','504TeVGVe','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','69367KKFHga','\x20workspace\x20init`\x20or\x20--appcode).'];a221_0x544f=function(){return _0x23eed8;};return a221_0x544f();}(function(_0x580d9a,_0x30d12d){const _0x13095a=a221_0x32ce,_0x2f81e7=_0x580d9a();while(!![]){try{const _0x1ed34c=parseInt(_0x13095a(0xdc))/0x1*(parseInt(_0x13095a(0xdf))/0x2)+-parseInt(_0x13095a(0xe6))/0x3*(parseInt(_0x13095a(0xea))/0x4)+-parseInt(_0x13095a(0xde))/0x5+parseInt(_0x13095a(0xe4))/0x6*(parseInt(_0x13095a(0xda))/0x7)+parseInt(_0x13095a(0xe5))/0x8*(-parseInt(_0x13095a(0xe9))/0x9)+-parseInt(_0x13095a(0xe3))/0xa+-parseInt(_0x13095a(0xe0))/0xb*(-parseInt(_0x13095a(0xd8))/0xc);if(_0x1ed34c===_0x30d12d)break;else _0x2f81e7['push'](_0x2f81e7['shift']());}catch(_0x3b247e){_0x2f81e7['push'](_0x2f81e7['shift']());}}}(a221_0x544f,0xd32cd));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a221_0x32ce(_0x5100d9,_0x40a805){_0x5100d9=_0x5100d9-0xd8;const _0x544ffd=a221_0x544f();let _0x32ce09=_0x544ffd[_0x5100d9];return _0x32ce09;}import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x57be34=>serviceGroups[a221_0x2a14a3(0xe1)](_0x57be34),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a221_0x2a14a3(0xe7)+CLI_BIN_NAME+a221_0x2a14a3(0xdd),'serviceUsageSuffix':a221_0x2a14a3(0xe8)});export function generateCommandHelp(_0x2e14b8){const _0x6f0a1d=a221_0x2a14a3,_0x3e617e=generators['generateCommandHelp'](_0x2e14b8);if(!requiresExplicitYes(_0x2e14b8))return _0x3e617e;return _0x3e617e[_0x6f0a1d(0xd9)](_0x6f0a1d(0xdb),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a221_0x2a14a3(0xe2)];
1
+ const a221_0x2743ce=a221_0x40b3;(function(_0x30a50c,_0x1b8354){const _0x3ac08e=a221_0x40b3,_0x5863aa=_0x30a50c();while(!![]){try{const _0x4b1c13=parseInt(_0x3ac08e(0x178))/0x1*(-parseInt(_0x3ac08e(0x170))/0x2)+parseInt(_0x3ac08e(0x180))/0x3+-parseInt(_0x3ac08e(0x176))/0x4+-parseInt(_0x3ac08e(0x17f))/0x5*(parseInt(_0x3ac08e(0x17c))/0x6)+parseInt(_0x3ac08e(0x16f))/0x7*(parseInt(_0x3ac08e(0x17a))/0x8)+parseInt(_0x3ac08e(0x177))/0x9*(-parseInt(_0x3ac08e(0x17e))/0xa)+parseInt(_0x3ac08e(0x172))/0xb;if(_0x4b1c13===_0x1b8354)break;else _0x5863aa['push'](_0x5863aa['shift']());}catch(_0x30ab82){_0x5863aa['push'](_0x5863aa['shift']());}}}(a221_0x3040,0x643bd));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function a221_0x3040(){const _0x3ef87e=['100VZWSWn','174430eacNNt','380364uUunpO','generateCommandHelp','316386dOqlve','908qbnhgy','\x20workspace\x20init`\x20or\x20--appcode).','21776975NBATvu','Requires\x20appcode\x20(set\x20via\x20`','generateServiceHelp','\x20[args]\x20[flags]','3129408GJcObH','514467gfGnVh','81YTiumK','replace','88bLWCgU','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','138DdZekw','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.'];a221_0x3040=function(){return _0x3ef87e;};return a221_0x3040();}function a221_0x40b3(_0x2dbf22,_0x520a49){_0x2dbf22=_0x2dbf22-0x16f;const _0x3040b3=a221_0x3040();let _0x40b3b7=_0x3040b3[_0x2dbf22];return _0x40b3b7;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x49061c=>serviceGroups['get'](_0x49061c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a221_0x2743ce(0x173)+CLI_BIN_NAME+a221_0x2743ce(0x171),'serviceUsageSuffix':a221_0x2743ce(0x175)});export function generateCommandHelp(_0x455fb5){const _0x5dcca7=a221_0x2743ce,_0x342d5b=generators[_0x5dcca7(0x181)](_0x455fb5);if(!requiresExplicitYes(_0x455fb5))return _0x342d5b;return _0x342d5b[_0x5dcca7(0x179)](_0x5dcca7(0x17b),_0x5dcca7(0x17d));}export const generateServiceHelp=generators[a221_0x2743ce(0x174)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x114764,_0x317f81){var _0x3867a8=a222_0x5a68,_0x2768ce=_0x114764();while(!![]){try{var _0x573c4d=parseInt(_0x3867a8(0xc8))/0x1+-parseInt(_0x3867a8(0xd1))/0x2+parseInt(_0x3867a8(0xcf))/0x3*(-parseInt(_0x3867a8(0xce))/0x4)+parseInt(_0x3867a8(0xd2))/0x5*(parseInt(_0x3867a8(0xd0))/0x6)+-parseInt(_0x3867a8(0xca))/0x7*(parseInt(_0x3867a8(0xcb))/0x8)+parseInt(_0x3867a8(0xcd))/0x9*(-parseInt(_0x3867a8(0xcc))/0xa)+-parseInt(_0x3867a8(0xc9))/0xb;if(_0x573c4d===_0x317f81)break;else _0x2768ce['push'](_0x2768ce['shift']());}catch(_0x2d9ef5){_0x2768ce['push'](_0x2768ce['shift']());}}}(a222_0x2752,0x6898d));export{runCommand}from'../framework/runner.js';function a222_0x5a68(_0x3d9bf4,_0x368eb5){_0x3d9bf4=_0x3d9bf4-0xc8;var _0x2752c3=a222_0x2752();var _0x5a6898=_0x2752c3[_0x3d9bf4];return _0x5a6898;}export{parseFlags,validateFlags}from'../framework/flags.js';function a222_0x2752(){var _0x11bbd0=['668139DEsaIA','26172SXlbdr','53704GCaCGr','595UpGnKp','690193nmFEXl','3382621kcdHOW','1435acDtfL','752AHezam','80xxsqMx','230058gdiqZQ','4dmCniw'];a222_0x2752=function(){return _0x11bbd0;};return a222_0x2752();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x58affd,_0x2b0af4){var _0xc56e17=a222_0xd9e6,_0x2d67b1=_0x58affd();while(!![]){try{var _0x50d7e5=parseInt(_0xc56e17(0x145))/0x1+parseInt(_0xc56e17(0x13f))/0x2+parseInt(_0xc56e17(0x142))/0x3+parseInt(_0xc56e17(0x140))/0x4+-parseInt(_0xc56e17(0x13d))/0x5+-parseInt(_0xc56e17(0x143))/0x6*(parseInt(_0xc56e17(0x13e))/0x7)+-parseInt(_0xc56e17(0x144))/0x8*(parseInt(_0xc56e17(0x141))/0x9);if(_0x50d7e5===_0x2b0af4)break;else _0x2d67b1['push'](_0x2d67b1['shift']());}catch(_0x45f298){_0x2d67b1['push'](_0x2d67b1['shift']());}}}(a222_0x7648,0x39faa));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a222_0x7648(){var _0x490962=['9hmnFyD','403197gSFEkd','6nxLHjP','768440yRNQmq','340954kmBhJF','2160830HDjAGo','64967tpZZQT','334664lxtKaD','529196CemOyT'];a222_0x7648=function(){return _0x490962;};return a222_0x7648();}export{formatOutput}from'../framework/output.js';function a222_0xd9e6(_0x2ca482,_0x57fd0d){_0x2ca482=_0x2ca482-0x13d;var _0x76487a=a222_0x7648();var _0xd9e6c8=_0x76487a[_0x2ca482];return _0xd9e6c8;}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(_0x2f01c4,_0x254cbd){const _0x2b66bd=a223_0x1b13,_0x59a49e=_0x2f01c4();while(!![]){try{const _0x465f72=parseInt(_0x2b66bd(0x134))/0x1*(-parseInt(_0x2b66bd(0x138))/0x2)+-parseInt(_0x2b66bd(0x139))/0x3+-parseInt(_0x2b66bd(0x144))/0x4*(parseInt(_0x2b66bd(0x133))/0x5)+-parseInt(_0x2b66bd(0x13f))/0x6*(-parseInt(_0x2b66bd(0x13e))/0x7)+-parseInt(_0x2b66bd(0x135))/0x8*(-parseInt(_0x2b66bd(0x137))/0x9)+parseInt(_0x2b66bd(0x13b))/0xa+parseInt(_0x2b66bd(0x143))/0xb;if(_0x465f72===_0x254cbd)break;else _0x59a49e['push'](_0x59a49e['shift']());}catch(_0x4420f1){_0x59a49e['push'](_0x59a49e['shift']());}}}(a223_0xfe32,0xb68b8));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()}});function a223_0xfe32(){const _0x160e63=['endsWith','error','validation','jq:\x20','jqFilter','risk','command','pretty','message','3875PDTvcr','470333eTdqkP','2728dkLuNE','hint','34083zkvQHB','2ZKQsKK','4122039UbPezb','json','10098600tRMKFT','code','stringify','371602NtfPVS','90yJleXl','data','_notice','update','5675813rXsaXJ','5272dzPCek','format'];a223_0xfe32=function(){return _0x160e63;};return a223_0xfe32();}export function formatOutput(_0x29000a,_0x4011b2){const _0x2dd974=a223_0x1b13,_0x2177a3=_0x29000a[_0x2dd974(0x141)],{_notice:_0x5c28cd,..._0x534293}=_0x29000a;void _0x5c28cd,baseFormatOutput(_0x534293,_0x4011b2),_0x4011b2[_0x2dd974(0x145)]===_0x2dd974(0x131)&&printPrettyNotice(_0x2177a3);}export function formatCliError(_0x140c6c,_0x34102e){const _0x49f60d=a223_0x1b13;if(_0x34102e[_0x49f60d(0x145)]===_0x49f60d(0x131))return![];const _0x134eab=_0x140c6c[_0x49f60d(0x140)],_0x39c80e={'ok':![],'command':_0x34102e[_0x49f60d(0x14c)],'risk':_0x34102e[_0x49f60d(0x14b)],'data':_0x134eab??null,'error':{'code':_0x140c6c[_0x49f60d(0x13c)],'message':_0x140c6c['message'],..._0x140c6c[_0x49f60d(0x136)]?{'hint':_0x140c6c[_0x49f60d(0x136)]}:{}}},_0x153e5a=_0x34102e[_0x49f60d(0x145)]===_0x49f60d(0x13a)?JSON[_0x49f60d(0x13d)](_0x39c80e,null,0x2):JSON[_0x49f60d(0x13d)](_0x39c80e);let _0x176e70=_0x153e5a;if(_0x34102e[_0x49f60d(0x14a)]?.['trim']())try{_0x176e70=applyJqFilter(_0x153e5a,_0x34102e['jqFilter']);}catch(_0x11817e){const _0x3d0393=_0x11817e instanceof CliError?_0x11817e:CliErrors[_0x49f60d(0x148)](_0x49f60d(0x149)+(_0x11817e instanceof Error?_0x11817e['message']:String(_0x11817e))),_0x5015f7={..._0x39c80e,'error':{'code':_0x3d0393[_0x49f60d(0x13c)],'message':_0x3d0393['message'],..._0x3d0393[_0x49f60d(0x136)]?{'hint':_0x3d0393[_0x49f60d(0x136)]}:{},'cause':_0x39c80e['error']}};_0x176e70=_0x34102e[_0x49f60d(0x145)]==='json'?JSON['stringify'](_0x5015f7,null,0x2):JSON[_0x49f60d(0x13d)](_0x5015f7);}return process['stdout']['write'](_0x176e70[_0x49f60d(0x146)]('\x0a')?_0x176e70:_0x176e70+'\x0a'),!![];}function a223_0x1b13(_0x1d87cc,_0x2a304c){_0x1d87cc=_0x1d87cc-0x131;const _0xfe3273=a223_0xfe32();let _0x1b139d=_0xfe3273[_0x1d87cc];return _0x1b139d;}function printPrettyNotice(_0xb298d4){const _0xf0ba79=a223_0x1b13;if(!_0xb298d4?.[_0xf0ba79(0x142)])return;console[_0xf0ba79(0x147)](_0xb298d4[_0xf0ba79(0x142)][_0xf0ba79(0x132)]+'\x20('+_0xb298d4[_0xf0ba79(0x142)]['url']+')');}
1
+ (function(_0x228d00,_0x4ab66f){const _0x311de2=a223_0x16ed,_0x1339b2=_0x228d00();while(!![]){try{const _0x4cc77f=-parseInt(_0x311de2(0x125))/0x1*(-parseInt(_0x311de2(0x10b))/0x2)+-parseInt(_0x311de2(0x11f))/0x3*(parseInt(_0x311de2(0x10c))/0x4)+parseInt(_0x311de2(0x117))/0x5+parseInt(_0x311de2(0x116))/0x6*(parseInt(_0x311de2(0x128))/0x7)+-parseInt(_0x311de2(0x11e))/0x8+-parseInt(_0x311de2(0x124))/0x9+parseInt(_0x311de2(0x10e))/0xa;if(_0x4cc77f===_0x4ab66f)break;else _0x1339b2['push'](_0x1339b2['shift']());}catch(_0x39d1c5){_0x1339b2['push'](_0x1339b2['shift']());}}}(a223_0x9488,0x5832a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a223_0x9488(){const _0x382676=['validation','jq:\x20','trim','error','stdout','_notice','write','6MFAuXo','250710OIoUqc','jqFilter','risk','message','update','stringify','command','5070896pDWHQE','9FsGoFe','endsWith','data','hint','code','529677EEgXhK','9JURbYf','format','pretty','2539859xnKTTX','144868xBdHRC','784016RYaXFs','json','5771000lVpVDu'];a223_0x9488=function(){return _0x382676;};return a223_0x9488();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3bd723,_0x140f3d){const _0x58a314=a223_0x16ed,_0x2ce516=_0x3bd723[_0x58a314(0x114)],{_notice:_0x316533,..._0x395e94}=_0x3bd723;void _0x316533,baseFormatOutput(_0x395e94,_0x140f3d),_0x140f3d[_0x58a314(0x126)]===_0x58a314(0x127)&&printPrettyNotice(_0x2ce516);}export function formatCliError(_0x49c474,_0x1d2272){const _0x3b1378=a223_0x16ed;if(_0x1d2272[_0x3b1378(0x126)]===_0x3b1378(0x127))return![];const _0x7b9cce=_0x49c474[_0x3b1378(0x121)],_0x21c1ba={'ok':![],'command':_0x1d2272[_0x3b1378(0x11d)],'risk':_0x1d2272[_0x3b1378(0x119)],'data':_0x7b9cce??null,'error':{'code':_0x49c474['code'],'message':_0x49c474[_0x3b1378(0x11a)],..._0x49c474['hint']?{'hint':_0x49c474[_0x3b1378(0x122)]}:{}}},_0x2c93a9=_0x1d2272[_0x3b1378(0x126)]===_0x3b1378(0x10d)?JSON[_0x3b1378(0x11c)](_0x21c1ba,null,0x2):JSON[_0x3b1378(0x11c)](_0x21c1ba);let _0x4deec1=_0x2c93a9;if(_0x1d2272[_0x3b1378(0x118)]?.[_0x3b1378(0x111)]())try{_0x4deec1=applyJqFilter(_0x2c93a9,_0x1d2272[_0x3b1378(0x118)]);}catch(_0x139d7f){const _0x31e872=_0x139d7f instanceof CliError?_0x139d7f:CliErrors[_0x3b1378(0x10f)](_0x3b1378(0x110)+(_0x139d7f instanceof Error?_0x139d7f['message']:String(_0x139d7f))),_0x257130={..._0x21c1ba,'error':{'code':_0x31e872[_0x3b1378(0x123)],'message':_0x31e872[_0x3b1378(0x11a)],..._0x31e872[_0x3b1378(0x122)]?{'hint':_0x31e872[_0x3b1378(0x122)]}:{},'cause':_0x21c1ba[_0x3b1378(0x112)]}};_0x4deec1=_0x1d2272['format']===_0x3b1378(0x10d)?JSON['stringify'](_0x257130,null,0x2):JSON[_0x3b1378(0x11c)](_0x257130);}return process[_0x3b1378(0x113)][_0x3b1378(0x115)](_0x4deec1[_0x3b1378(0x120)]('\x0a')?_0x4deec1:_0x4deec1+'\x0a'),!![];}function a223_0x16ed(_0x2bf581,_0x326239){_0x2bf581=_0x2bf581-0x10b;const _0x9488f1=a223_0x9488();let _0x16ed0f=_0x9488f1[_0x2bf581];return _0x16ed0f;}function printPrettyNotice(_0x40e221){const _0x31651a=a223_0x16ed;if(!_0x40e221?.[_0x31651a(0x11b)])return;console[_0x31651a(0x112)](_0x40e221[_0x31651a(0x11b)]['message']+'\x20('+_0x40e221[_0x31651a(0x11b)]['url']+')');}
@@ -1 +1 @@
1
- function a224_0x2db8(_0x3cd20b,_0x24fe1c){_0x3cd20b=_0x3cd20b-0x109;var _0x448d01=a224_0x448d();var _0x2db89c=_0x448d01[_0x3cd20b];return _0x2db89c;}(function(_0x608c5,_0x1b3983){var _0x197ea1=a224_0x2db8,_0x278e2c=_0x608c5();while(!![]){try{var _0x453385=parseInt(_0x197ea1(0x10a))/0x1*(parseInt(_0x197ea1(0x109))/0x2)+-parseInt(_0x197ea1(0x10f))/0x3+-parseInt(_0x197ea1(0x10c))/0x4*(parseInt(_0x197ea1(0x113))/0x5)+-parseInt(_0x197ea1(0x10b))/0x6+parseInt(_0x197ea1(0x111))/0x7+-parseInt(_0x197ea1(0x110))/0x8*(parseInt(_0x197ea1(0x112))/0x9)+-parseInt(_0x197ea1(0x10e))/0xa*(-parseInt(_0x197ea1(0x10d))/0xb);if(_0x453385===_0x1b3983)break;else _0x278e2c['push'](_0x278e2c['shift']());}catch(_0x510ab9){_0x278e2c['push'](_0x278e2c['shift']());}}}(a224_0x448d,0xad491));function a224_0x448d(){var _0x311900=['5334325nxIlFL','2qxYxbu','1096146lvczmU','7023384pGLfNC','4wIGAtP','793133KiPzZf','170PxRffr','249543vnfrQA','500064YtUliz','9772546xlpFGF','99ySJAZK'];a224_0x448d=function(){return _0x311900;};return a224_0x448d();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a224_0x3307(_0x43dc6e,_0x34e3e3){_0x43dc6e=_0x43dc6e-0x1a9;var _0x402d15=a224_0x402d();var _0x3307a2=_0x402d15[_0x43dc6e];return _0x3307a2;}(function(_0x181987,_0x32fda3){var _0xaaa538=a224_0x3307,_0x57f1b6=_0x181987();while(!![]){try{var _0x422e43=-parseInt(_0xaaa538(0x1aa))/0x1+-parseInt(_0xaaa538(0x1a9))/0x2+parseInt(_0xaaa538(0x1ad))/0x3+-parseInt(_0xaaa538(0x1ab))/0x4+parseInt(_0xaaa538(0x1af))/0x5+parseInt(_0xaaa538(0x1b0))/0x6+-parseInt(_0xaaa538(0x1ae))/0x7*(parseInt(_0xaaa538(0x1ac))/0x8);if(_0x422e43===_0x32fda3)break;else _0x57f1b6['push'](_0x57f1b6['shift']());}catch(_0x556c02){_0x57f1b6['push'](_0x57f1b6['shift']());}}}(a224_0x402d,0x86004));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a224_0x402d(){var _0x1d46bd=['5324890uqphyq','3649986Yibznc','1081960jmoyoR','271828PoMIoU','2645524nmuiVQ','8CXxJGJ','1454037InenyO','944517kZHiTi'];a224_0x402d=function(){return _0x1d46bd;};return a224_0x402d();}
@@ -1 +1 @@
1
- function a225_0x75aa(){const _0x52d2dd=['Available\x20aliases:\x20','validation','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','name','2736522tbgNjA','string','alias','some','join','4246522QKliPF','8344776ZbVBAk','12jXkAHQ','\x22.\x20','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','map','12317913FaLPIw','code','635512JInskc','26jtbyIb','No\x20api.ts\x20found\x20in\x20','length','type','841080eHMRuY','10662GnbePG'];a225_0x75aa=function(){return _0x52d2dd;};return a225_0x75aa();}function a225_0x1e1f(_0x5ea327,_0x42bb43){_0x5ea327=_0x5ea327-0xdd;const _0x75aa12=a225_0x75aa();let _0x1e1ff7=_0x75aa12[_0x5ea327];return _0x1e1ff7;}(function(_0x5d183b,_0x2b8fc6){const _0x44e397=a225_0x1e1f,_0x302ad3=_0x5d183b();while(!![]){try{const _0x27d784=parseInt(_0x44e397(0xde))/0x1*(parseInt(_0x44e397(0xf3))/0x2)+-parseInt(_0x44e397(0xeb))/0x3*(parseInt(_0x44e397(0xf2))/0x4)+-parseInt(_0x44e397(0xdd))/0x5+parseInt(_0x44e397(0xe4))/0x6+parseInt(_0x44e397(0xe9))/0x7+-parseInt(_0x44e397(0xea))/0x8+parseInt(_0x44e397(0xf0))/0x9;if(_0x27d784===_0x2b8fc6)break;else _0x302ad3['push'](_0x302ad3['shift']());}catch(_0x42b4ef){_0x302ad3['push'](_0x302ad3['shift']());}}}(a225_0x75aa,0xb08e3));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x3d20c9,_0x20123d,_0x3713e6,_0x1f7eb7){const _0x459bac=a225_0x1e1f,_0x435fb6=_0x3d20c9[_0x459bac(0xe2)][_0x459bac(0xe7)](_0x30ace4=>_0x30ace4[_0x459bac(0xe3)]===_0x459bac(0xf1)&&_0x30ace4['type']===_0x459bac(0xe5)),_0x7a9de6=_0x3d20c9[_0x459bac(0xe2)][_0x459bac(0xe7)](_0x4e29bb=>_0x4e29bb[_0x459bac(0xe3)]===_0x459bac(0xe6)&&_0x4e29bb[_0x459bac(0xf6)]===_0x459bac(0xe5));if(!_0x435fb6||!_0x7a9de6)return;const _0xb43f86=_0x20123d[_0x459bac(0xf1)]?String(_0x20123d[_0x459bac(0xf1)]):'',_0x537204=_0x20123d['alias']?String(_0x20123d[_0x459bac(0xe6)]):'';if(!_0xb43f86&&!_0x537204)throw CliErrors[_0x459bac(0xe0)]('`'+_0x1f7eb7+_0x459bac(0xe1));if(_0x537204&&!_0xb43f86){const _0x19a979=resolveAlias(_0x3713e6,_0x537204);if(!_0x19a979){const _0x2d9b58=listAliases(_0x3713e6)[_0x459bac(0xef)](_0x568f8e=>_0x568f8e[_0x459bac(0xe6)]),_0x37d033=_0x2d9b58[_0x459bac(0xf5)]?_0x459bac(0xdf)+_0x2d9b58[_0x459bac(0xe8)](',\x20'):_0x459bac(0xf4)+_0x3713e6+'.\x20Run\x20`'+CLI_BIN_NAME+_0x459bac(0xee);throw CliErrors[_0x459bac(0xe0)](_0x459bac(0xed)+_0x537204+_0x459bac(0xec)+_0x37d033);}_0x20123d[_0x459bac(0xf1)]=_0x19a979;}}
1
+ (function(_0x139903,_0x3d1b1c){const _0x10fa1a=a225_0x472d,_0x3b0a6b=_0x139903();while(!![]){try{const _0x45ff07=-parseInt(_0x10fa1a(0x1b2))/0x1*(parseInt(_0x10fa1a(0x1c2))/0x2)+parseInt(_0x10fa1a(0x1bb))/0x3+-parseInt(_0x10fa1a(0x1b4))/0x4*(-parseInt(_0x10fa1a(0x1b0))/0x5)+parseInt(_0x10fa1a(0x1b8))/0x6+parseInt(_0x10fa1a(0x1be))/0x7+-parseInt(_0x10fa1a(0x1b7))/0x8+-parseInt(_0x10fa1a(0x1bd))/0x9;if(_0x45ff07===_0x3d1b1c)break;else _0x3b0a6b['push'](_0x3b0a6b['shift']());}catch(_0x11155b){_0x3b0a6b['push'](_0x3b0a6b['shift']());}}}(a225_0x2d2b,0xd801c));function a225_0x2d2b(){const _0x151613=['2978412ClNRpc','type','name','13131488snpFQR','6421608CrxleU','Available\x20aliases:\x20','\x20api\x20pull`\x20first.','2744493MSZdHn','No\x20api.ts\x20found\x20in\x20','8581914TAOSqu','6900719nhQqJC','Unknown\x20alias\x20\x22','flags','code','2OskENr','some','string','alias','5IVPeDW','map','235773FNvHfY','length'];a225_0x2d2b=function(){return _0x151613;};return a225_0x2d2b();}import{CliErrors}from'../errors.js';function a225_0x472d(_0x5cd7c5,_0x5422b7){_0x5cd7c5=_0x5cd7c5-0x1b0;const _0x2d2bd7=a225_0x2d2b();let _0x472dcb=_0x2d2bd7[_0x5cd7c5];return _0x472dcb;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4cfa3c,_0x522240,_0x15a9b8,_0x3e5536){const _0x5872ae=a225_0x472d,_0x538d59=_0x4cfa3c[_0x5872ae(0x1c0)][_0x5872ae(0x1c3)](_0x1a7d0d=>_0x1a7d0d[_0x5872ae(0x1b6)]==='code'&&_0x1a7d0d[_0x5872ae(0x1b5)]===_0x5872ae(0x1c4)),_0x47437c=_0x4cfa3c['flags'][_0x5872ae(0x1c3)](_0x8ab457=>_0x8ab457[_0x5872ae(0x1b6)]===_0x5872ae(0x1c5)&&_0x8ab457[_0x5872ae(0x1b5)]==='string');if(!_0x538d59||!_0x47437c)return;const _0x44c532=_0x522240[_0x5872ae(0x1c1)]?String(_0x522240[_0x5872ae(0x1c1)]):'',_0x28d543=_0x522240['alias']?String(_0x522240[_0x5872ae(0x1c5)]):'';if(!_0x44c532&&!_0x28d543)throw CliErrors['validation']('`'+_0x3e5536+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x28d543&&!_0x44c532){const _0x19c6fa=resolveAlias(_0x15a9b8,_0x28d543);if(!_0x19c6fa){const _0x36bbb8=listAliases(_0x15a9b8)[_0x5872ae(0x1b1)](_0x4cc547=>_0x4cc547['alias']),_0x52b355=_0x36bbb8[_0x5872ae(0x1b3)]?_0x5872ae(0x1b9)+_0x36bbb8['join'](',\x20'):_0x5872ae(0x1bc)+_0x15a9b8+'.\x20Run\x20`'+CLI_BIN_NAME+_0x5872ae(0x1ba);throw CliErrors['validation'](_0x5872ae(0x1bf)+_0x28d543+'\x22.\x20'+_0x52b355);}_0x522240[_0x5872ae(0x1c1)]=_0x19c6fa;}}
@@ -1 +1 @@
1
- const a226_0x480213=a226_0x3b11;(function(_0x2c3f2d,_0x43f98d){const _0x574b55=a226_0x3b11,_0x273478=_0x2c3f2d();while(!![]){try{const _0x1b560f=parseInt(_0x574b55(0x20e))/0x1+-parseInt(_0x574b55(0x206))/0x2*(-parseInt(_0x574b55(0x203))/0x3)+parseInt(_0x574b55(0x224))/0x4+-parseInt(_0x574b55(0x21d))/0x5+parseInt(_0x574b55(0x1fd))/0x6*(parseInt(_0x574b55(0x207))/0x7)+-parseInt(_0x574b55(0x22a))/0x8*(parseInt(_0x574b55(0x217))/0x9)+-parseInt(_0x574b55(0x21c))/0xa;if(_0x1b560f===_0x43f98d)break;else _0x273478['push'](_0x273478['shift']());}catch(_0x409fce){_0x273478['push'](_0x273478['shift']());}}}(a226_0xc657,0x93868));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 a226_0x4a7313}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1ca0b8){const _0x4f32a4=a226_0x3b11;return typeof _0x1ca0b8===_0x4f32a4(0x1f0)&&_0x1ca0b8[_0x4f32a4(0x212)]()?_0x1ca0b8[_0x4f32a4(0x212)]():undefined;}function resolveEnvAppCode(){const _0x38a4bf=a226_0x3b11,_0x198174=stringFlag(process.env.RABETBASE_APPCODE);if(_0x198174)return{'name':_0x38a4bf(0x1ff),'value':_0x198174};const _0x43ff56=stringFlag(process.env.LOVRABET_APPCODE);if(_0x43ff56)return{'name':'LOVRABET_APPCODE','value':_0x43ff56};return undefined;}function hasExplicitAppCode(_0x1d0186,_0xcb13af){const _0x12a34e=a226_0x3b11;return!!(stringFlag(_0x1d0186[_0x12a34e(0x205)])||stringFlag(_0xcb13af[_0x12a34e(0x205)]));}function assertEnvAppCodeNotIgnored(_0x5cd3ef,_0x16db64,_0x35c9cc){const _0x53e4fe=a226_0x3b11;if(!_0x16db64||_0x35c9cc||_0x5cd3ef===_0x16db64[_0x53e4fe(0x1fe)])return;const _0x2c6277=_0x5cd3ef?_0x53e4fe(0x1ef)+_0x5cd3ef+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x53e4fe(0x222)](_0x16db64[_0x53e4fe(0x1fa)]+'='+_0x16db64['value']+_0x53e4fe(0x22b)+_0x2c6277+'\x20'+(_0x53e4fe(0x226)+_0x16db64[_0x53e4fe(0x1fa)]+'\x22.'));}function a226_0x3b11(_0x217215,_0x15feb7){_0x217215=_0x217215-0x1ee;const _0xc65701=a226_0xc657();let _0x3b11f3=_0xc65701[_0x217215];return _0x3b11f3;}export function createPipelineEnv(_0x4fb55f,_0x716c14,_0x1b31fa=[]){const _0x33423e=a226_0x3b11;return{'rawFlags':_0x716c14,'args':_0x1b31fa,'resolveAppCode':()=>_0x4fb55f[_0x33423e(0x1f3)],'resolveCookie':()=>_0x4fb55f['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a226_0x4a7313(_0x716c14),'defaultFormat':_0x4fb55f[_0x33423e(0x218)],'defaultPageSize':_0x4fb55f[_0x33423e(0x1f5)],'defaultVerbose':_0x4fb55f[_0x33423e(0x1f1)],'apiDir':_0x4fb55f[_0x33423e(0x21a)],'riskLevel':_0x4fb55f['riskLevel'],'selectedAppName':_0x4fb55f[_0x33423e(0x209)],'mergedCli':{'defaultApp':_0x4fb55f[_0x33423e(0x1fc)],'currentApp':_0x4fb55f[_0x33423e(0x221)],'appCode':_0x4fb55f[_0x33423e(0x1f3)],'apps':_0x4fb55f[_0x33423e(0x214)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a226_0x480213(0x227)](_0x1aea0d=>PIPELINE_FLAG_NAMES['has'](_0x1aea0d[a226_0x480213(0x1fa)]))[a226_0x480213(0x20c)](({name:_0x4addd4,type:_0x2656a1,description:_0x48ed8b})=>({'name':_0x4addd4,'type':_0x2656a1,'description':_0x48ed8b})),'formatOutput':formatOutput,'getCommandLabel'(_0x44bad4){const _0x232850=a226_0x480213;return CLI_BIN_NAME+'\x20'+_0x44bad4[_0x232850(0x213)]+'\x20'+_0x44bad4['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1de474){const _0x2dae8a=a226_0x480213;return CliErrors[_0x2dae8a(0x222)](_0x1de474);}},async 'prepare'(_0x51ff20,_0x3537a5,_0xdf4216,_0x4c1be9){const _0x229581=a226_0x480213,_0x4e93e2=_0x3537a5[_0x229581(0x21a)]||DEFAULT_API_DIR;resolveAliasToCode(_0x51ff20,_0xdf4216,_0x4e93e2,_0x4c1be9);const _0xb30e9f=resolveCommandAuthMode(_0x51ff20);let _0x1e8544='';if(_0xb30e9f!==_0x229581(0x1ee)){_0x1e8544=_0x3537a5['resolveCookie']()||'';if(!_0x1e8544){if(_0xb30e9f===_0x229581(0x21b))throw CliErrors[_0x229581(0x20f)]();}else{const {setActiveCookie:_0x22e610}=await import(_0x229581(0x20a));_0x22e610(_0x1e8544);}}const _0xe2f7ce=_0x3537a5[_0x229581(0x21f)]()??'';if(_0x51ff20['requiresAppCode']!==![]){assertEnvAppCodeNotIgnored(_0xe2f7ce,resolveEnvAppCode(),hasExplicitAppCode(_0xdf4216,_0x3537a5[_0x229581(0x1f6)]));if(!_0xe2f7ce)throw CliErrors[_0x229581(0x201)](_0x229581(0x223)+CLI_BIN_NAME+_0x229581(0x1f9));}return{'defaults':{'booleans':{'verbose':_0x3537a5[_0x229581(0x229)]},'numbers':{'pagesize':_0x3537a5[_0x229581(0x228)]}},'extras':{'appCode':_0xe2f7ce,'cookie':_0x1e8544,'apiDomain':_0x3537a5['resolveApiDomain'](),'apiDir':_0x4e93e2,'selectedAppName':_0x3537a5[_0x229581(0x21e)],'mergedCli':_0x3537a5[_0x229581(0x202)]}};},async 'confirmHighRisk'({env:_0x494839,commandLabel:_0x2d56a0}){const _0xa3af33=a226_0x480213;if(_0x494839['isNonInteractive'])throw CliErrors['validation']('High-risk\x20operation\x20`'+_0x2d56a0+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2d56a0,_0xa3af33(0x204)],'createCancelledError':_0x1c61d4=>CliErrors[_0xa3af33(0x1f7)](_0x1c61d4)});},async 'finalize'(){const _0x3489c8=a226_0x480213,{clearActiveCookie:_0x32a491}=await import(_0x3489c8(0x20a));_0x32a491();}};export async function runCommand(_0x2427cc,_0x51593b){assertRejectedFlags(_0x2427cc,_0x51593b['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2427cc)?withUpdateNotice(_0x2427cc):_0x2427cc,_0x51593b,runnerAdapter);}function assertRejectedFlags(_0x3fadc3,_0x158c56){const _0x42f941=a226_0x480213;for(const _0x5c2f64 of _0x3fadc3[_0x42f941(0x210)]??[]){const _0x464f75=GLOBAL_FLAGS[_0x42f941(0x1f2)](_0xe1b061=>_0xe1b061[_0x42f941(0x1fa)]===_0x5c2f64['name']),_0x10c7ed=new Set([_0x5c2f64[_0x42f941(0x1fa)],toCamelCase(_0x5c2f64[_0x42f941(0x1fa)]),_0x464f75?.[_0x42f941(0x216)]]),_0x1e2bc3=[..._0x10c7ed][_0x42f941(0x220)](_0x11246d=>{if(!_0x11246d)return![];const _0x2c6ed3=_0x158c56[_0x11246d];return _0x2c6ed3!==undefined&&_0x2c6ed3!==null&&_0x2c6ed3!==![];});if(_0x1e2bc3)throw CliErrors[_0x42f941(0x222)](_0x5c2f64[_0x42f941(0x1fb)],_0x5c2f64[_0x42f941(0x219)]);}}function toCamelCase(_0x3a76e8){const _0x456825=a226_0x480213;return _0x3a76e8[_0x456825(0x208)](/-([a-z])/g,(_0x5173b5,_0x46f69b)=>_0x46f69b[_0x456825(0x1f4)]());}function shouldAttachUpdateNotice(_0x6f3d51){const _0x4ed794=a226_0x480213;if(_0x6f3d51[_0x4ed794(0x200)]===![])return![];return![_0x4ed794(0x20b),'schema',_0x4ed794(0x211)][_0x4ed794(0x20d)](_0x6f3d51[_0x4ed794(0x213)]);}function withUpdateNotice(_0x239316){return{..._0x239316,async 'execute'(_0x50e8df){const _0x503804=a226_0x3b11,_0x1f5a1a=shouldResolveUpdateNotice(_0x50e8df)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x503804(0x22d)](null),_0xff4c6f=await _0x239316[_0x503804(0x1f8)](_0x50e8df);return attachUpdateNotice(_0xff4c6f,await _0x1f5a1a);}};}function shouldResolveUpdateNotice(_0x5b010f){const _0x46a2fb=a226_0x480213;return _0x5b010f['format']===_0x46a2fb(0x215)&&!_0x5b010f['nonInteractive'];}function a226_0xc657(){const _0x534934=['pretty','meowKey','4938471TJdRKF','format','hint','apiDir','required','7240160jCMqkX','5853585QMBXbv','selectedAppName','resolveAppCode','some','currentApp','validation','Set\x20appcode\x20via\x20`','3690460yUhYoF','object','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','filter','defaultPageSize','defaultVerbose','16XjEVUF','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','_notice','resolve','none','Current\x20resolved\x20appcode\x20is\x20\x22','string','verbose','find','appCode','toUpperCase','pageSize','rawFlags','cancelled','execute','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','name','message','defaultApp','6xlQmwY','value','RABETBASE_APPCODE','hasFormat','configMissing','mergedCli','2718726hLwinx','\x20\x20\x20Continue?\x20[y/N]\x20','appcode','2RqVJqN','4893623FhzTWO','replace','explicitAppName','../core/api-client.js','update','map','includes','1068489vjaFYm','authRequired','rejectedFlags','doctor','trim','service','apps'];a226_0xc657=function(){return _0x534934;};return a226_0xc657();}function attachUpdateNotice(_0x31e450,_0x1123e3){const _0x1adffd=a226_0x480213;if(!_0x1123e3||!_0x31e450||typeof _0x31e450!==_0x1adffd(0x225))return _0x31e450;const _0x2478ce=_0x31e450,_0x4e5a86=typeof _0x2478ce[_0x1adffd(0x22c)]===_0x1adffd(0x225)&&_0x2478ce[_0x1adffd(0x22c)]!==null?_0x2478ce[_0x1adffd(0x22c)]:{};return{..._0x2478ce,'_notice':{..._0x4e5a86,'update':_0x1123e3}};}
1
+ const a226_0x22ba80=a226_0x5737;(function(_0x140faf,_0x37961b){const _0x22f930=a226_0x5737,_0x89338b=_0x140faf();while(!![]){try{const _0x133769=-parseInt(_0x22f930(0xf9))/0x1*(-parseInt(_0x22f930(0xec))/0x2)+-parseInt(_0x22f930(0xed))/0x3*(parseInt(_0x22f930(0xf6))/0x4)+-parseInt(_0x22f930(0xbf))/0x5*(-parseInt(_0x22f930(0xf7))/0x6)+parseInt(_0x22f930(0xc4))/0x7+-parseInt(_0x22f930(0xdf))/0x8*(parseInt(_0x22f930(0xc2))/0x9)+parseInt(_0x22f930(0xcf))/0xa*(-parseInt(_0x22f930(0xdc))/0xb)+parseInt(_0x22f930(0xe5))/0xc*(parseInt(_0x22f930(0xd4))/0xd);if(_0x133769===_0x37961b)break;else _0x89338b['push'](_0x89338b['shift']());}catch(_0x5be216){_0x89338b['push'](_0x89338b['shift']());}}}(a226_0x3249,0x9c956));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 a226_0x2a8655}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a226_0x5737(_0x52bfce,_0x30987d){_0x52bfce=_0x52bfce-0xbf;const _0x3249b5=a226_0x3249();let _0x573733=_0x3249b5[_0x52bfce];return _0x573733;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x266b2e){const _0x31caec=a226_0x5737;return typeof _0x266b2e===_0x31caec(0xf4)&&_0x266b2e[_0x31caec(0xcc)]()?_0x266b2e[_0x31caec(0xcc)]():undefined;}function resolveEnvAppCode(){const _0x2b5919=a226_0x5737,_0x3aec31=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3aec31)return{'name':_0x2b5919(0xf8),'value':_0x3aec31};const _0x30968a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x30968a)return{'name':_0x2b5919(0xce),'value':_0x30968a};return undefined;}function a226_0x3249(){const _0x411be5=['nonInteractive','appcode','execute','High-risk\x20operation\x20`','30685812vWvTfL','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','resolveAppCode','\x20\x20\x20Continue?\x20[y/N]\x20','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','find','schema','904gbAIVm','186SuSojZ','catch','selectedAppName','pageSize','defaultVerbose','hint','format','string','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','61172aRfWnX','11694hQBLuH','RABETBASE_APPCODE','2077XBWqYJ','rawFlags','apiDir','Current\x20resolved\x20appcode\x20is\x20\x22','defaultPageSize','965NrXcVW','riskLevel','replace','9BfKcXL','verbose','435694fFNeNi','filter','⚠\x20\x20High-risk\x20operation:\x20','requiresAppCode','update','hasFormat','command','_notice','trim','none','LOVRABET_APPCODE','60dEOrQW','object','service','resolveCookie','cookie','13sneVNg','doctor','includes','defaultApp','name','../core/api-client.js','apps','Set\x20appcode\x20via\x20`','2012538tkhwfV','mergedCli','value','9976592tNpyyy','validation'];a226_0x3249=function(){return _0x411be5;};return a226_0x3249();}function hasExplicitAppCode(_0x2714c8,_0x4fdcca){const _0x56731a=a226_0x5737;return!!(stringFlag(_0x2714c8[_0x56731a(0xe2)])||stringFlag(_0x4fdcca[_0x56731a(0xe2)]));}function assertEnvAppCodeNotIgnored(_0x14595c,_0x43a02d,_0x452a1b){const _0x11185d=a226_0x5737;if(!_0x43a02d||_0x452a1b||_0x14595c===_0x43a02d['value'])return;const _0x546858=_0x14595c?_0x11185d(0xfc)+_0x14595c+'\x22.':_0x11185d(0xf5);throw CliErrors['validation'](_0x43a02d[_0x11185d(0xd8)]+'='+_0x43a02d[_0x11185d(0xde)]+_0x11185d(0xe9)+_0x546858+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x43a02d[_0x11185d(0xd8)]+'\x22.'));}export function createPipelineEnv(_0x3f2f53,_0x2ea02a,_0x579d9f=[]){const _0x524f9f=a226_0x5737;return{'rawFlags':_0x2ea02a,'args':_0x579d9f,'resolveAppCode':()=>_0x3f2f53['appCode'],'resolveCookie':()=>_0x3f2f53[_0x524f9f(0xd3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a226_0x2a8655(_0x2ea02a),'defaultFormat':_0x3f2f53[_0x524f9f(0xf3)],'defaultPageSize':_0x3f2f53[_0x524f9f(0xf0)],'defaultVerbose':_0x3f2f53[_0x524f9f(0xc3)],'apiDir':_0x3f2f53['apiDir'],'riskLevel':_0x3f2f53[_0x524f9f(0xc0)],'selectedAppName':_0x3f2f53['explicitAppName'],'mergedCli':{'defaultApp':_0x3f2f53[_0x524f9f(0xd7)],'currentApp':_0x3f2f53['currentApp'],'appCode':_0x3f2f53['appCode'],'apps':_0x3f2f53[_0x524f9f(0xda)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a226_0x22ba80(0xc5)](_0x520608=>PIPELINE_FLAG_NAMES['has'](_0x520608[a226_0x22ba80(0xd8)]))['map'](({name:_0x28c732,type:_0x2f5b35,description:_0x25ad1f})=>({'name':_0x28c732,'type':_0x2f5b35,'description':_0x25ad1f})),'formatOutput':formatOutput,'getCommandLabel'(_0x311b60){const _0x2664b1=a226_0x22ba80;return CLI_BIN_NAME+'\x20'+_0x311b60[_0x2664b1(0xd1)]+'\x20'+_0x311b60[_0x2664b1(0xca)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4d9e1b){return CliErrors['validation'](_0x4d9e1b);}},async 'prepare'(_0xbb12ed,_0x221951,_0x139f9e,_0xe57f30){const _0x3b2f02=a226_0x22ba80,_0x36140a=_0x221951[_0x3b2f02(0xfb)]||DEFAULT_API_DIR;resolveAliasToCode(_0xbb12ed,_0x139f9e,_0x36140a,_0xe57f30);const _0x4cce60=resolveCommandAuthMode(_0xbb12ed);let _0x2e06bc='';if(_0x4cce60!==_0x3b2f02(0xcd)){_0x2e06bc=_0x221951[_0x3b2f02(0xd2)]()||'';if(!_0x2e06bc){if(_0x4cce60==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0xed9483}=await import(_0x3b2f02(0xd9));_0xed9483(_0x2e06bc);}}const _0xbba68c=_0x221951[_0x3b2f02(0xe7)]()??'';if(_0xbb12ed[_0x3b2f02(0xc7)]!==![]){assertEnvAppCodeNotIgnored(_0xbba68c,resolveEnvAppCode(),hasExplicitAppCode(_0x139f9e,_0x221951['rawFlags']));if(!_0xbba68c)throw CliErrors['configMissing'](_0x3b2f02(0xdb)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x221951[_0x3b2f02(0xf1)]},'numbers':{'pagesize':_0x221951[_0x3b2f02(0xfd)]}},'extras':{'appCode':_0xbba68c,'cookie':_0x2e06bc,'apiDomain':_0x221951['resolveApiDomain'](),'apiDir':_0x36140a,'selectedAppName':_0x221951[_0x3b2f02(0xef)],'mergedCli':_0x221951[_0x3b2f02(0xdd)]}};},async 'confirmHighRisk'({env:_0xc4478d,commandLabel:_0x485fab}){const _0x444ef9=a226_0x22ba80;if(_0xc4478d['isNonInteractive'])throw CliErrors['validation'](_0x444ef9(0xe4)+_0x485fab+_0x444ef9(0xe6));await requireConfirmationPrompt({'lines':[_0x444ef9(0xc6)+_0x485fab,_0x444ef9(0xe8)],'createCancelledError':_0x171ec7=>CliErrors['cancelled'](_0x171ec7)});},async 'finalize'(){const _0x5a352d=a226_0x22ba80,{clearActiveCookie:_0x4760b1}=await import(_0x5a352d(0xd9));_0x4760b1();}};export async function runCommand(_0x5758aa,_0x5e00d7){const _0x37e550=a226_0x22ba80;assertRejectedFlags(_0x5758aa,_0x5e00d7[_0x37e550(0xfa)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x5758aa)?withUpdateNotice(_0x5758aa):_0x5758aa,_0x5e00d7,runnerAdapter);}function assertRejectedFlags(_0x3bcd3d,_0x47a9da){const _0x69f262=a226_0x22ba80;for(const _0x341a6f of _0x3bcd3d['rejectedFlags']??[]){const _0x52cadd=GLOBAL_FLAGS[_0x69f262(0xea)](_0x34574b=>_0x34574b[_0x69f262(0xd8)]===_0x341a6f['name']),_0x1b4bc6=new Set([_0x341a6f[_0x69f262(0xd8)],toCamelCase(_0x341a6f['name']),_0x52cadd?.['meowKey']]),_0x2da03f=[..._0x1b4bc6]['some'](_0x4fcbae=>{if(!_0x4fcbae)return![];const _0x52931f=_0x47a9da[_0x4fcbae];return _0x52931f!==undefined&&_0x52931f!==null&&_0x52931f!==![];});if(_0x2da03f)throw CliErrors[_0x69f262(0xe0)](_0x341a6f['message'],_0x341a6f[_0x69f262(0xf2)]);}}function toCamelCase(_0x2b6b33){const _0x3edc12=a226_0x22ba80;return _0x2b6b33[_0x3edc12(0xc1)](/-([a-z])/g,(_0x2960e6,_0x7a424b)=>_0x7a424b['toUpperCase']());}function shouldAttachUpdateNotice(_0x5a0ffa){const _0x5a9003=a226_0x22ba80;if(_0x5a0ffa[_0x5a9003(0xc9)]===![])return![];return![_0x5a9003(0xc8),_0x5a9003(0xeb),_0x5a9003(0xd5)][_0x5a9003(0xd6)](_0x5a0ffa['service']);}function withUpdateNotice(_0x1de41b){return{..._0x1de41b,async 'execute'(_0xe7a748){const _0x1da4a1=a226_0x5737,_0x46433f=shouldResolveUpdateNotice(_0xe7a748)?resolveLatestUpdateNotice()[_0x1da4a1(0xee)](()=>null):Promise['resolve'](null),_0xbc9e4b=await _0x1de41b[_0x1da4a1(0xe3)](_0xe7a748);return attachUpdateNotice(_0xbc9e4b,await _0x46433f);}};}function shouldResolveUpdateNotice(_0x227ed3){const _0xa86c67=a226_0x22ba80;return _0x227ed3[_0xa86c67(0xf3)]==='pretty'&&!_0x227ed3[_0xa86c67(0xe1)];}function attachUpdateNotice(_0x2144c5,_0x51d8a8){const _0x284ca6=a226_0x22ba80;if(!_0x51d8a8||!_0x2144c5||typeof _0x2144c5!==_0x284ca6(0xd0))return _0x2144c5;const _0x308bc5=_0x2144c5,_0x5c86e2=typeof _0x308bc5[_0x284ca6(0xcb)]===_0x284ca6(0xd0)&&_0x308bc5['_notice']!==null?_0x308bc5[_0x284ca6(0xcb)]:{};return{..._0x308bc5,'_notice':{..._0x5c86e2,'update':_0x51d8a8}};}
@@ -1 +1 @@
1
- function a227_0x3e05(_0x287f76,_0x48dbfe){_0x287f76=_0x287f76-0x1b7;const _0x4d0eb5=a227_0x4d0e();let _0x3e05b4=_0x4d0eb5[_0x287f76];return _0x3e05b4;}(function(_0x38fe27,_0x5bfbb1){const _0x52ee87=a227_0x3e05,_0x25094e=_0x38fe27();while(!![]){try{const _0x1310b0=-parseInt(_0x52ee87(0x1bc))/0x1*(-parseInt(_0x52ee87(0x1c2))/0x2)+parseInt(_0x52ee87(0x1c3))/0x3*(parseInt(_0x52ee87(0x1c0))/0x4)+-parseInt(_0x52ee87(0x1c1))/0x5+-parseInt(_0x52ee87(0x1b8))/0x6*(-parseInt(_0x52ee87(0x1bb))/0x7)+parseInt(_0x52ee87(0x1bf))/0x8+-parseInt(_0x52ee87(0x1b9))/0x9*(parseInt(_0x52ee87(0x1bd))/0xa)+parseInt(_0x52ee87(0x1be))/0xb*(-parseInt(_0x52ee87(0x1b7))/0xc);if(_0x1310b0===_0x5bfbb1)break;else _0x25094e['push'](_0x25094e['shift']());}catch(_0x5239ab){_0x25094e['push'](_0x25094e['shift']());}}}(a227_0x4d0e,0x2d30f));import{buildSchemaPayload as a227_0x2bfd11}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x43e63f=a227_0x3e05,{serviceRegistry:_0x5e446f,findDefinition:_0xda2141}=await import(_0x43e63f(0x1ba));return a227_0x2bfd11({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x5e446f,'buildAllFlags':buildAllFlags,'findDefinition':_0xda2141});}function a227_0x4d0e(){const _0x18eff5=['2EBByRW','75wziGiD','36ciMkug','2334wjUqGF','180ZFiRek','../commands/registry.js','3465InFIYv','305286Gcofvk','11650reifJb','1729849hAMrna','1573376FjjjzY','46496GuqCkT','1524665hnXgtX'];a227_0x4d0e=function(){return _0x18eff5;};return a227_0x4d0e();}
1
+ (function(_0x3624c8,_0x4e67ea){const _0x2f7736=a227_0x5f48,_0xd25622=_0x3624c8();while(!![]){try{const _0x521a7a=parseInt(_0x2f7736(0x1cd))/0x1+parseInt(_0x2f7736(0x1ca))/0x2+-parseInt(_0x2f7736(0x1cb))/0x3*(parseInt(_0x2f7736(0x1c6))/0x4)+parseInt(_0x2f7736(0x1cc))/0x5*(parseInt(_0x2f7736(0x1c9))/0x6)+-parseInt(_0x2f7736(0x1c8))/0x7+parseInt(_0x2f7736(0x1c7))/0x8*(-parseInt(_0x2f7736(0x1c5))/0x9)+parseInt(_0x2f7736(0x1c4))/0xa*(parseInt(_0x2f7736(0x1ce))/0xb);if(_0x521a7a===_0x4e67ea)break;else _0xd25622['push'](_0xd25622['shift']());}catch(_0x16dd6f){_0xd25622['push'](_0xd25622['shift']());}}}(a227_0x4bea,0x23b68));import{buildSchemaPayload as a227_0x111191}from'@lovrabet/cli-framework';function a227_0x4bea(){const _0x2889a7=['69963UlziNT','55121LbGpwf','460BmsQAQ','9ewCYQx','20xZvVXk','1604696PemwhL','124677gKMVUz','163488BMEivr','205164lgmqiz','88419KqiaUM','20eWmdsY'];a227_0x4bea=function(){return _0x2889a7;};return a227_0x4bea();}function a227_0x5f48(_0x77f541,_0x295948){_0x77f541=_0x77f541-0x1c4;const _0x4bea68=a227_0x4bea();let _0x5f4809=_0x4bea68[_0x77f541];return _0x5f4809;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x4e0f0c,findDefinition:_0x30eebe}=await import('../commands/registry.js');return a227_0x111191({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x4e0f0c,'buildAllFlags':buildAllFlags,'findDefinition':_0x30eebe});}
@@ -1 +1 @@
1
- function a228_0xe9bf(_0x5c9581,_0x518282){_0x5c9581=_0x5c9581-0x88;var _0x57cf5f=a228_0x57cf();var _0xe9bf1f=_0x57cf5f[_0x5c9581];return _0xe9bf1f;}function a228_0x57cf(){var _0x2ebdde=['2766784BnWAKH','27oSACfp','2121021xrDGZX','287192wRFsyY','344208uWIMix','39DUeGJm','1764735ITuZrl','125140SzAkMR','60068ooXsMr','2PAvivp'];a228_0x57cf=function(){return _0x2ebdde;};return a228_0x57cf();}(function(_0x46af21,_0x57790a){var _0x46cbff=a228_0xe9bf,_0x291321=_0x46af21();while(!![]){try{var _0x7a64f9=-parseInt(_0x46cbff(0x8a))/0x1*(parseInt(_0x46cbff(0x8e))/0x2)+-parseInt(_0x46cbff(0x90))/0x3*(-parseInt(_0x46cbff(0x89))/0x4)+parseInt(_0x46cbff(0x91))/0x5+-parseInt(_0x46cbff(0x8f))/0x6+parseInt(_0x46cbff(0x8d))/0x7+-parseInt(_0x46cbff(0x8b))/0x8+-parseInt(_0x46cbff(0x8c))/0x9*(-parseInt(_0x46cbff(0x88))/0xa);if(_0x7a64f9===_0x57790a)break;else _0x291321['push'](_0x291321['shift']());}catch(_0x5ec246){_0x291321['push'](_0x291321['shift']());}}}(a228_0x57cf,0x306a1));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a228_0x452c(_0x39d815,_0x5dd637){_0x39d815=_0x39d815-0xd3;var _0x55aba7=a228_0x55ab();var _0x452c70=_0x55aba7[_0x39d815];return _0x452c70;}(function(_0x369d65,_0x4dd4dd){var _0x92aad0=a228_0x452c,_0x44c60a=_0x369d65();while(!![]){try{var _0x5b3cb0=parseInt(_0x92aad0(0xd4))/0x1+-parseInt(_0x92aad0(0xd3))/0x2+parseInt(_0x92aad0(0xd6))/0x3+-parseInt(_0x92aad0(0xd8))/0x4+parseInt(_0x92aad0(0xd9))/0x5+parseInt(_0x92aad0(0xd7))/0x6*(parseInt(_0x92aad0(0xd5))/0x7)+-parseInt(_0x92aad0(0xda))/0x8;if(_0x5b3cb0===_0x4dd4dd)break;else _0x44c60a['push'](_0x44c60a['shift']());}catch(_0x1d3f2a){_0x44c60a['push'](_0x44c60a['shift']());}}}(a228_0x55ab,0x70023));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a228_0x55ab(){var _0x11e605=['1552472WgvXvo','1185835nGWLIk','5093360hLBjUN','507888WCFKhO','445062IvoBVO','7PAXWSe','1362957UpLVyh','3605826PoafYc'];a228_0x55ab=function(){return _0x11e605;};return a228_0x55ab();}
@@ -1 +1 @@
1
- const a229_0x158744=a229_0x5899;(function(_0x595a69,_0x536244){const _0x216ce5=a229_0x5899,_0x464692=_0x595a69();while(!![]){try{const _0xd185ca=parseInt(_0x216ce5(0x18a))/0x1*(parseInt(_0x216ce5(0x187))/0x2)+-parseInt(_0x216ce5(0x18b))/0x3+parseInt(_0x216ce5(0x186))/0x4+-parseInt(_0x216ce5(0x191))/0x5+-parseInt(_0x216ce5(0x18d))/0x6*(-parseInt(_0x216ce5(0x18f))/0x7)+parseInt(_0x216ce5(0x190))/0x8+parseInt(_0x216ce5(0x188))/0x9;if(_0xd185ca===_0x536244)break;else _0x464692['push'](_0x464692['shift']());}catch(_0x4dd57a){_0x464692['push'](_0x464692['shift']());}}}(a229_0x527f,0x66b6b));function a229_0x527f(){const _0x4f2a42=['67559ab','498BcSUXs','2026-08-01T08:13:02.979Z','1603jldMuq','5099680iQrbGN','2577070kXqKqU','v2.3.10-beta.2','980628lQftnU','8566byyJcN','4386969tmKQtp','2.3.10-beta.2','73DDkHDB','2296785psoUiP'];a229_0x527f=function(){return _0x4f2a42;};return a229_0x527f();}function a229_0x5899(_0x237341,_0x116e41){_0x237341=_0x237341-0x186;const _0x527fd0=a229_0x527f();let _0x58992a=_0x527fd0[_0x237341];return _0x58992a;}export const VERSION=a229_0x158744(0x189);export const GIT_TAG=a229_0x158744(0x192);export const GIT_COMMIT=a229_0x158744(0x18c);export const BUILD_TIME=a229_0x158744(0x18e);
1
+ const a229_0x59bd70=a229_0x2563;(function(_0x16fbc5,_0x1de716){const _0x1269a3=a229_0x2563,_0x206826=_0x16fbc5();while(!![]){try{const _0x8d89a5=-parseInt(_0x1269a3(0x190))/0x1*(parseInt(_0x1269a3(0x18c))/0x2)+-parseInt(_0x1269a3(0x185))/0x3*(parseInt(_0x1269a3(0x188))/0x4)+-parseInt(_0x1269a3(0x189))/0x5+-parseInt(_0x1269a3(0x18e))/0x6*(-parseInt(_0x1269a3(0x18a))/0x7)+parseInt(_0x1269a3(0x191))/0x8*(parseInt(_0x1269a3(0x18f))/0x9)+parseInt(_0x1269a3(0x18b))/0xa*(-parseInt(_0x1269a3(0x187))/0xb)+parseInt(_0x1269a3(0x186))/0xc;if(_0x8d89a5===_0x1de716)break;else _0x206826['push'](_0x206826['shift']());}catch(_0x3179ad){_0x206826['push'](_0x206826['shift']());}}}(a229_0x369e,0xa0356));function a229_0x2563(_0x1009e3,_0x43795e){_0x1009e3=_0x1009e3-0x184;const _0x369e73=a229_0x369e();let _0x25635b=_0x369e73[_0x1009e3];return _0x25635b;}function a229_0x369e(){const _0x365317=['4631nRKdgp','2996FmbHLi','5530580AmGTWf','21KByjAw','15340WZKJtp','2idBhXD','67559ab','198336CsILNG','4203cpzVpn','1157670edvwYO','18912eVSWNE','2.3.10','1059vcKDVG','31524660MTvycy'];a229_0x369e=function(){return _0x365317;};return a229_0x369e();}export const VERSION=a229_0x59bd70(0x184);export const GIT_TAG='v2.3.10-beta.2';export const GIT_COMMIT=a229_0x59bd70(0x18d);export const BUILD_TIME='2026-08-01T08:26:05.205Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3f0f8d,_0x3943be){var _0x4a9547=a230_0x3810,_0x4f8ab4=_0x3f0f8d();while(!![]){try{var _0x1a9d43=-parseInt(_0x4a9547(0x11c))/0x1+parseInt(_0x4a9547(0x113))/0x2+parseInt(_0x4a9547(0x112))/0x3+parseInt(_0x4a9547(0x11b))/0x4*(parseInt(_0x4a9547(0x11d))/0x5)+-parseInt(_0x4a9547(0x116))/0x6*(parseInt(_0x4a9547(0x115))/0x7)+-parseInt(_0x4a9547(0x11e))/0x8+parseInt(_0x4a9547(0x120))/0x9*(parseInt(_0x4a9547(0x11a))/0xa);if(_0x1a9d43===_0x3943be)break;else _0x4f8ab4['push'](_0x4f8ab4['shift']());}catch(_0x5480cf){_0x4f8ab4['push'](_0x4f8ab4['shift']());}}}(a230_0x24d0,0xb68f6));import a230_0x4a8ca1 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a230_0x3810(_0x277341,_0x161e27){_0x277341=_0x277341-0x111;var _0x24d0db=a230_0x24d0();var _0x3810db=_0x24d0db[_0x277341];return _0x3810db;}function a230_0x24d0(){var _0x5a9ecf=['388744qMkZsv','\x20to\x20view\x20available\x20commands.','772646lYLcdo','66LTFgFN','green','bold','log','1630GgOvhB','323812harFFh','538736ijJDfU','80yVmsgk','9209248xXXaty','\x20--help','113733iZtByc','\x20\x20Use\x20','307095jUfqrP'];a230_0x24d0=function(){return _0x5a9ecf;};return a230_0x24d0();}export function showHelp(){var _0x1e482e=a230_0x3810;console[_0x1e482e(0x119)](),console['log'](a230_0x4a8ca1[_0x1e482e(0x117)][_0x1e482e(0x118)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x1e482e(0x119)](_0x1e482e(0x111)+a230_0x4a8ca1['green']['bold'](CLI_BIN_NAME+_0x1e482e(0x11f))+_0x1e482e(0x114)),console['log']();}
1
+ (function(_0xa1cc81,_0x4f488a){var _0x555535=a230_0x47f4,_0x22b170=_0xa1cc81();while(!![]){try{var _0x2de2d2=-parseInt(_0x555535(0xfa))/0x1+parseInt(_0x555535(0xf4))/0x2*(-parseInt(_0x555535(0xf1))/0x3)+-parseInt(_0x555535(0xf6))/0x4*(-parseInt(_0x555535(0xf7))/0x5)+-parseInt(_0x555535(0xf9))/0x6*(-parseInt(_0x555535(0xf0))/0x7)+-parseInt(_0x555535(0xef))/0x8*(-parseInt(_0x555535(0xec))/0x9)+parseInt(_0x555535(0xf8))/0xa+-parseInt(_0x555535(0xf2))/0xb;if(_0x2de2d2===_0x4f488a)break;else _0x22b170['push'](_0x22b170['shift']());}catch(_0x195b8d){_0x22b170['push'](_0x22b170['shift']());}}}(a230_0x478e,0xbfad7));import a230_0x200dd9 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a230_0x47f4(_0x247ca1,_0x32cccb){_0x247ca1=_0x247ca1-0xec;var _0x478e28=a230_0x478e();var _0x47f453=_0x478e28[_0x247ca1];return _0x47f453;}export function showHelp(){var _0x1fc715=a230_0x47f4;console[_0x1fc715(0xf5)](),console[_0x1fc715(0xf5)](a230_0x200dd9[_0x1fc715(0xf3)][_0x1fc715(0xee)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1fc715(0xf5)](),console[_0x1fc715(0xf5)](_0x1fc715(0xed)+a230_0x200dd9['green'][_0x1fc715(0xee)](CLI_BIN_NAME+'\x20--help')+'\x20to\x20view\x20available\x20commands.'),console[_0x1fc715(0xf5)]();}function a230_0x478e(){var _0x1232f5=['7004990GuMjww','762JbwOFk','820113XsWYet','4005PQDGsc','\x20\x20Use\x20','bold','8616qJElhk','41594GEdkYJ','2537925lcxRHc','4660843WKXWXL','green','2DwemEF','log','3368HSiFVG','5585seZIUF'];a230_0x478e=function(){return _0x1232f5;};return a230_0x478e();}
@@ -1 +1 @@
1
- function a231_0x5721(_0x40e946,_0x1241da){_0x40e946=_0x40e946-0x1ab;const _0x37963c=a231_0x3796();let _0x5721e=_0x37963c[_0x40e946];return _0x5721e;}(function(_0x3f85a2,_0xa7ad48){const _0x14952d=a231_0x5721,_0x5ac03f=_0x3f85a2();while(!![]){try{const _0x5fbaa8=-parseInt(_0x14952d(0x1c4))/0x1*(-parseInt(_0x14952d(0x1bb))/0x2)+-parseInt(_0x14952d(0x1c6))/0x3+parseInt(_0x14952d(0x1b4))/0x4+parseInt(_0x14952d(0x1ba))/0x5+-parseInt(_0x14952d(0x1be))/0x6*(parseInt(_0x14952d(0x1cc))/0x7)+-parseInt(_0x14952d(0x1c0))/0x8*(parseInt(_0x14952d(0x1bf))/0x9)+-parseInt(_0x14952d(0x1af))/0xa*(parseInt(_0x14952d(0x1ab))/0xb);if(_0x5fbaa8===_0xa7ad48)break;else _0x5ac03f['push'](_0x5ac03f['shift']());}catch(_0x1e6026){_0x5ac03f['push'](_0x5ac03f['shift']());}}}(a231_0x3796,0x99e70));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x21ec77){const _0x5b3e6e=a231_0x5721,_0x43aaad=[];for(const [_0x10791f,_0x395871]of Object[_0x5b3e6e(0x1c7)](_0x21ec77)){if(_0x395871===!![]){const _0xa8b29c=_0x10791f['replace'](/([A-Z])/g,'-$1')['toLowerCase']();_0x43aaad[_0x5b3e6e(0x1ac)](_0xa8b29c);}}return _0x43aaad;}export function parseDynamicFlags(){const _0x3823a2=a231_0x5721,_0x1c78d5=[];for(let _0x510a21=0x3;_0x510a21<process[_0x3823a2(0x1b9)][_0x3823a2(0x1b8)];_0x510a21++){const _0x49db01=process[_0x3823a2(0x1b9)][_0x510a21];if(_0x49db01&&_0x49db01['startsWith']('--')){const _0x2e8e44=_0x49db01['slice'](0x2);_0x2e8e44&&!_0x2e8e44['includes']('=')&&_0x1c78d5[_0x3823a2(0x1ac)](_0x2e8e44);}}return _0x1c78d5;}function a231_0x3796(){const _0x57fca3=['add','skill','不支持的命令:\x20','120626rojlcs','\x0aAvailable\x20commands:','983724uzBhaX','entries','log','Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','cwd','3962rzhjPj','2112FnVPUO','push','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','from','36190oGsjKa','dangerously-bff-save','enable-bff-save','error','help','4611612UAoDaw','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','(empty)','setLogPath','length','argv','5221195YXaqjX','18OJsWos','has','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','4686TWFqVh','1068831baAwIe','80fuUacK'];a231_0x3796=function(){return _0x57fca3;};return a231_0x3796();}export function getAllProvidedFlags(_0x22b934){const _0x48d31f=a231_0x5721,_0xe59337=camelCaseFlagsToKebab(_0x22b934),_0xeb6d0a=parseDynamicFlags(),_0xb64cb=new Set([..._0xe59337,..._0xeb6d0a]);return Array[_0x48d31f(0x1ae)](_0xb64cb);}export function normalizeLegacyBffSaveFlags(_0x366172){const _0x3107d9=a231_0x5721,_0x13eeae=new Set(_0x366172);return _0x13eeae[_0x3107d9(0x1bc)](_0x3107d9(0x1b0))&&_0x13eeae[_0x3107d9(0x1c1)](_0x3107d9(0x1b1)),Array[_0x3107d9(0x1ae)](_0x13eeae);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x533f91,_0x29b67c,_0x550497){const _0x1c9e01=a231_0x5721;logger[_0x1c9e01(0x1b7)](process[_0x1c9e01(0x1cb)]());if(_0x550497?.[_0x1c9e01(0x1b3)]||_0x533f91==='--help'){showHelp();return;}console['error'](_0x1c9e01(0x1ca)+(_0x533f91||_0x1c9e01(0x1b6))),console['log'](_0x1c9e01(0x1c5)),console[_0x1c9e01(0x1c8)]('\x20\x20'+CLI_BIN_NAME+_0x1c9e01(0x1bd)),console['log'](''),console[_0x1c9e01(0x1c8)](_0x1c9e01(0x1c9)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1c9e01(0x1b2)](_0x1c9e01(0x1c2),_0x1c9e01(0x1c3)+_0x533f91),process['exit'](0x1);}function showHelp(){const _0x164302=a231_0x5721;console[_0x164302(0x1c8)](_0x164302(0x1ad)+CLI_BIN_NAME+_0x164302(0x1b5)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x5ef231,_0x42eb83){const _0x3e96e7=a231_0x58aa,_0x44b4c9=_0x5ef231();while(!![]){try{const _0x352d82=-parseInt(_0x3e96e7(0x178))/0x1*(-parseInt(_0x3e96e7(0x17a))/0x2)+parseInt(_0x3e96e7(0x173))/0x3+-parseInt(_0x3e96e7(0x15e))/0x4*(parseInt(_0x3e96e7(0x15c))/0x5)+parseInt(_0x3e96e7(0x175))/0x6*(-parseInt(_0x3e96e7(0x174))/0x7)+-parseInt(_0x3e96e7(0x168))/0x8+-parseInt(_0x3e96e7(0x16b))/0x9*(-parseInt(_0x3e96e7(0x16d))/0xa)+parseInt(_0x3e96e7(0x177))/0xb;if(_0x352d82===_0x42eb83)break;else _0x44b4c9['push'](_0x44b4c9['shift']());}catch(_0x3bfa92){_0x44b4c9['push'](_0x44b4c9['shift']());}}}(a231_0xc52b,0xd8ccd));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x5e0e48){const _0x17bf52=a231_0x58aa,_0x53c3fc=[];for(const [_0x285b40,_0x7ade4d]of Object['entries'](_0x5e0e48)){if(_0x7ade4d===!![]){const _0x5b73e3=_0x285b40[_0x17bf52(0x16c)](/([A-Z])/g,'-$1')['toLowerCase']();_0x53c3fc[_0x17bf52(0x15f)](_0x5b73e3);}}return _0x53c3fc;}function a231_0x58aa(_0x2c5088,_0x472126){_0x2c5088=_0x2c5088-0x157;const _0xc52bbc=a231_0xc52b();let _0x58aa9f=_0xc52bbc[_0x2c5088];return _0x58aa9f;}export function parseDynamicFlags(){const _0x50159b=a231_0x58aa,_0x469cde=[];for(let _0x407897=0x3;_0x407897<process['argv'][_0x50159b(0x165)];_0x407897++){const _0x5e029a=process[_0x50159b(0x163)][_0x407897];if(_0x5e029a&&_0x5e029a[_0x50159b(0x15a)]('--')){const _0x244692=_0x5e029a[_0x50159b(0x179)](0x2);_0x244692&&!_0x244692[_0x50159b(0x167)]('=')&&_0x469cde['push'](_0x244692);}}return _0x469cde;}export function getAllProvidedFlags(_0x8d0c26){const _0x383aaa=a231_0x58aa,_0x105c22=camelCaseFlagsToKebab(_0x8d0c26),_0x1a8723=parseDynamicFlags(),_0x47ab4d=new Set([..._0x105c22,..._0x1a8723]);return Array[_0x383aaa(0x158)](_0x47ab4d);}export function normalizeLegacyBffSaveFlags(_0x56c80b){const _0x37814c=a231_0x58aa,_0xc7f437=new Set(_0x56c80b);return _0xc7f437[_0x37814c(0x16e)]('dangerously-bff-save')&&_0xc7f437['add'](_0x37814c(0x172)),Array[_0x37814c(0x158)](_0xc7f437);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a231_0xc52b(){const _0x49685f=['cwd','enable-bff-save','1662918LBFOqt','7FtqPHh','6027576vAjpuB','log','6765924rKNblD','16487Kxastm','slice','142VfJCwZ','exit','skill','from','--help','startsWith','help','43095wJmKQG','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','260HhTUeC','push','不支持的命令:\x20','error','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','argv','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','setLogPath','includes','5945480VisueY','Error:\x20Unsupported\x20command:\x20','(empty)','4482WDPiyM','replace','17190JLLzrY','has','Equivalent\x20command:\x20','\x0aAvailable\x20commands:'];a231_0xc52b=function(){return _0x49685f;};return a231_0xc52b();}export async function skillsCommand(_0x9d3441,_0x400c67,_0x14a983){const _0x4635ac=a231_0x58aa;logger[_0x4635ac(0x166)](process[_0x4635ac(0x171)]());if(_0x14a983?.[_0x4635ac(0x15b)]||_0x9d3441===_0x4635ac(0x159)){showHelp();return;}console[_0x4635ac(0x161)](_0x4635ac(0x169)+(_0x9d3441||_0x4635ac(0x16a))),console[_0x4635ac(0x176)](_0x4635ac(0x170)),console[_0x4635ac(0x176)]('\x20\x20'+CLI_BIN_NAME+_0x4635ac(0x164)),console[_0x4635ac(0x176)](''),console[_0x4635ac(0x176)](_0x4635ac(0x16f)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4635ac(0x161)](_0x4635ac(0x157),_0x4635ac(0x160)+_0x9d3441),process[_0x4635ac(0x17b)](0x1);}function showHelp(){const _0x4270ce=a231_0x58aa;console[_0x4270ce(0x176)](_0x4270ce(0x162)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4270ce(0x15d));}
@@ -1 +1 @@
1
- function a232_0x2804(){const _0x3f1af5=['push','trim','skill','1086uBgmBH','536267bCtJnI','15MkYnvM','status','stdout','--skill','pipe','48tTcLmV','stdio','4777290JLTzuG','lovrabet/rabetbase','exit\x20','add','154hSzSAb','18377350JudTHy','1301780mqTQyk','join','npx','remove','33362DdFlqS','6612192itZfKo','unknown','stderr','log','skills','inherit','toString'];a232_0x2804=function(){return _0x3f1af5;};return a232_0x2804();}const a232_0x320289=a232_0x1013;(function(_0x14a65b,_0x9463dc){const _0x438324=a232_0x1013,_0x285b01=_0x14a65b();while(!![]){try{const _0x5a6b91=-parseInt(_0x438324(0x99))/0x1+-parseInt(_0x438324(0xa5))/0x2*(parseInt(_0x438324(0x98))/0x3)+-parseInt(_0x438324(0xa7))/0x4*(-parseInt(_0x438324(0x9a))/0x5)+-parseInt(_0x438324(0xa1))/0x6+parseInt(_0x438324(0xab))/0x7*(-parseInt(_0x438324(0x9f))/0x8)+-parseInt(_0x438324(0xac))/0x9+parseInt(_0x438324(0xa6))/0xa;if(_0x5a6b91===_0x9463dc)break;else _0x285b01['push'](_0x285b01['shift']());}catch(_0x2f70fb){_0x285b01['push'](_0x285b01['shift']());}}}(a232_0x2804,0xa88fe));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';function a232_0x1013(_0x117159,_0x4d2525){_0x117159=_0x117159-0x8f;const _0x280491=a232_0x2804();let _0x101351=_0x280491[_0x117159];return _0x101351;}export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a232_0x320289(0x92);export const NPX_SKILLS_SUBCOMMAND_ADD=a232_0x320289(0xa4);export const NPX_SKILLS_FLAG_SKILL=a232_0x320289(0x9d);export const RABETBASE_SKILL_SOURCE=a232_0x320289(0xa2);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0xd772d3){const _0x553a7f=a232_0x320289,_0x76c124=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0xd772d3&&_0x76c124[_0x553a7f(0x95)](NPX_SKILLS_FLAG_SKILL,_0xd772d3),_0x76c124;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a232_0x320289(0xa9),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x363ba7,_0x3d83a0){const _0x19662e=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x46b4b8=_0x3d83a0?.[_0x19662e(0xa0)]??'inherit',_0x4ac33a=resolveNpmBin(_0x19662e(0xa9)),_0x53ce74=buildNpxSkillsAddArgv(_0x3d83a0?.[_0x19662e(0x97)]),_0x67b7a1=[_0x19662e(0xa9),..._0x53ce74]['join']('\x20');console[_0x19662e(0x91)]('*\x20'+_0x67b7a1);const _0x5ccfdd=spawnSync(_0x4ac33a,_0x53ce74,{'cwd':_0x363ba7,'stdio':_0x46b4b8,'env':process.env,'shell':![]}),_0x132b8a=_0x5ccfdd['status'];if(_0x132b8a===0x0)return{'ok':!![],'status':0x0};let _0x442677=_0x19662e(0xa3)+(_0x132b8a??_0x19662e(0x8f));if(_0x46b4b8===_0x19662e(0x9e)){const _0x115ae6=_0x5ccfdd[_0x19662e(0x90)]?_0x5ccfdd[_0x19662e(0x90)][_0x19662e(0x94)]()[_0x19662e(0x96)]():'',_0x1859cc=_0x5ccfdd[_0x19662e(0x9c)]?_0x5ccfdd[_0x19662e(0x9c)][_0x19662e(0x94)]()[_0x19662e(0x96)]():'';if(_0x115ae6)_0x442677=_0x115ae6;else{if(_0x1859cc)_0x442677=_0x1859cc;}}return{'ok':![],'status':_0x132b8a??null,'error':_0x442677};}export function runNpxSkillsRemove(_0x349fee,_0x31dd08,_0x359675=LEGACY_RABETBASE_SKILL_SOURCE){const _0x4ba1da=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x24e247=_0x31dd08?.['stdio']??_0x4ba1da(0x93),_0x4582b8=resolveNpmBin(_0x4ba1da(0xa9)),_0xbcc947=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x4ba1da(0xaa),_0x359675,NPX_SKILLS_FLAG_SKILL,_0x31dd08?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x31dd08?.['yes']?['-y']:[]],_0x20b9f7=[_0x4582b8,..._0xbcc947][_0x4ba1da(0xa8)]('\x20');console[_0x4ba1da(0x91)]('*\x20'+_0x20b9f7);const _0x4d43d1=spawnSync(_0x4582b8,_0xbcc947,{'cwd':_0x349fee,'stdio':_0x24e247,'env':process.env,'shell':![]}),_0x1f7dd4=_0x4d43d1[_0x4ba1da(0x9b)];if(_0x1f7dd4===0x0)return{'ok':!![],'status':0x0};let _0x3267f9=_0x4ba1da(0xa3)+(_0x1f7dd4??_0x4ba1da(0x8f));if(_0x24e247==='pipe'){const _0x192e7b=_0x4d43d1[_0x4ba1da(0x90)]?_0x4d43d1['stderr'][_0x4ba1da(0x94)]()['trim']():'',_0x3110db=_0x4d43d1['stdout']?_0x4d43d1[_0x4ba1da(0x9c)][_0x4ba1da(0x94)]()[_0x4ba1da(0x96)]():'';if(_0x192e7b)_0x3267f9=_0x192e7b;else{if(_0x3110db)_0x3267f9=_0x3110db;}}return{'ok':![],'status':_0x1f7dd4??null,'error':_0x3267f9};}export function runNpxSkillsAddGlobal(_0x4002b7,_0x1bd062,_0x164e7a){const _0x1c6931=a232_0x320289;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x266ef0=_0x164e7a?.[_0x1c6931(0xa0)]??'inherit',_0x5c9fd5=resolveNpmBin(_0x1c6931(0xa9)),_0x4eae6f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1bd062,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x82751=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x1bd062,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');console[_0x1c6931(0x91)]('*\x20'+_0x82751);const _0x4961d6=spawnSync(_0x5c9fd5,_0x4eae6f,{'cwd':_0x4002b7,'stdio':_0x266ef0,'env':process.env,'shell':![]}),_0x1db5ef=_0x4961d6[_0x1c6931(0x9b)];if(_0x1db5ef===0x0)return{'ok':!![],'status':0x0};let _0x278eec=_0x1c6931(0xa3)+(_0x1db5ef??_0x1c6931(0x8f));if(_0x266ef0===_0x1c6931(0x9e)){const _0x5c0385=_0x4961d6[_0x1c6931(0x90)]?_0x4961d6[_0x1c6931(0x90)][_0x1c6931(0x94)]()[_0x1c6931(0x96)]():'',_0x3b1851=_0x4961d6[_0x1c6931(0x9c)]?_0x4961d6[_0x1c6931(0x9c)]['toString']()['trim']():'';if(_0x5c0385)_0x278eec=_0x5c0385;else{if(_0x3b1851)_0x278eec=_0x3b1851;}}return{'ok':![],'status':_0x1db5ef??null,'error':_0x278eec};}
1
+ const a232_0x7bd440=a232_0x5473;(function(_0x56edc3,_0x36c8bc){const _0x501929=a232_0x5473,_0x3eb611=_0x56edc3();while(!![]){try{const _0x6733bb=-parseInt(_0x501929(0x159))/0x1+parseInt(_0x501929(0x161))/0x2+parseInt(_0x501929(0x16d))/0x3+parseInt(_0x501929(0x16c))/0x4*(-parseInt(_0x501929(0x168))/0x5)+parseInt(_0x501929(0x163))/0x6*(-parseInt(_0x501929(0x171))/0x7)+-parseInt(_0x501929(0x15c))/0x8+parseInt(_0x501929(0x157))/0x9;if(_0x6733bb===_0x36c8bc)break;else _0x3eb611['push'](_0x3eb611['shift']());}catch(_0x4c07a5){_0x3eb611['push'](_0x3eb611['shift']());}}}(a232_0x32af,0xf2422));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a232_0x7bd440(0x169);export const RABETBASE_SKILL_SOURCE=a232_0x7bd440(0x162);export const LEGACY_RABETBASE_SKILL_SOURCE=a232_0x7bd440(0x165);export const DEFAULT_RABETBASE_SKILL_NAME=a232_0x7bd440(0x15a);function a232_0x32af(){const _0x2a324b=['lovrabet/rabetbase','74370dxRiLZ','join','lovrabet/lovrabet-skill','stderr','log','326335AJYURA','--skill','remove','unknown','68aWpWyN','5407533nibRyv','status','trim','stdout','1043ybnzrZ','inherit','skill','stdio','33252111CqCQru','pipe','863795bCUwrv','Lovrabet','toString','11750272SyTuEz','exit\x20','push','yes','npx','1568146HBMypU'];a232_0x32af=function(){return _0x2a324b;};return a232_0x32af();}function a232_0x5473(_0x4481a0,_0x2a2949){_0x4481a0=_0x4481a0-0x156;const _0x32af80=a232_0x32af();let _0x547362=_0x32af80[_0x4481a0];return _0x547362;}export function buildNpxSkillsAddArgv(_0x39c759){const _0x25af6c=a232_0x7bd440,_0x58563a=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x39c759&&_0x58563a[_0x25af6c(0x15e)](NPX_SKILLS_FLAG_SKILL,_0x39c759),_0x58563a;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a232_0x7bd440(0x164)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a232_0x7bd440(0x160),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a232_0x7bd440(0x164)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x47bf6b,_0x35a814){const _0x53eb43=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x6662b1=_0x35a814?.[_0x53eb43(0x156)]??_0x53eb43(0x172),_0x4941dc=resolveNpmBin(_0x53eb43(0x160)),_0x242f9d=buildNpxSkillsAddArgv(_0x35a814?.[_0x53eb43(0x173)]),_0x11bdb1=[_0x53eb43(0x160),..._0x242f9d]['join']('\x20');console['log']('*\x20'+_0x11bdb1);const _0x3930d2=spawnSync(_0x4941dc,_0x242f9d,{'cwd':_0x47bf6b,'stdio':_0x6662b1,'env':process.env,'shell':![]}),_0x24729b=_0x3930d2[_0x53eb43(0x16e)];if(_0x24729b===0x0)return{'ok':!![],'status':0x0};let _0x58e16c=_0x53eb43(0x15d)+(_0x24729b??_0x53eb43(0x16b));if(_0x6662b1==='pipe'){const _0x56f0aa=_0x3930d2['stderr']?_0x3930d2[_0x53eb43(0x166)][_0x53eb43(0x15b)]()[_0x53eb43(0x16f)]():'',_0x20acd7=_0x3930d2[_0x53eb43(0x170)]?_0x3930d2['stdout']['toString']()[_0x53eb43(0x16f)]():'';if(_0x56f0aa)_0x58e16c=_0x56f0aa;else{if(_0x20acd7)_0x58e16c=_0x20acd7;}}return{'ok':![],'status':_0x24729b??null,'error':_0x58e16c};}export function runNpxSkillsRemove(_0x27caa9,_0x10ebbd,_0x25961e=LEGACY_RABETBASE_SKILL_SOURCE){const _0x6d25fe=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d1498=_0x10ebbd?.['stdio']??_0x6d25fe(0x172),_0x1a693e=resolveNpmBin(_0x6d25fe(0x160)),_0x2eaa43=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x6d25fe(0x16a),_0x25961e,NPX_SKILLS_FLAG_SKILL,_0x10ebbd?.[_0x6d25fe(0x173)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x10ebbd?.[_0x6d25fe(0x15f)]?['-y']:[]],_0x2d74e0=[_0x1a693e,..._0x2eaa43][_0x6d25fe(0x164)]('\x20');console[_0x6d25fe(0x167)]('*\x20'+_0x2d74e0);const _0x5c61df=spawnSync(_0x1a693e,_0x2eaa43,{'cwd':_0x27caa9,'stdio':_0x3d1498,'env':process.env,'shell':![]}),_0x298c0d=_0x5c61df[_0x6d25fe(0x16e)];if(_0x298c0d===0x0)return{'ok':!![],'status':0x0};let _0x1268f0=_0x6d25fe(0x15d)+(_0x298c0d??_0x6d25fe(0x16b));if(_0x3d1498===_0x6d25fe(0x158)){const _0x72ae99=_0x5c61df[_0x6d25fe(0x166)]?_0x5c61df['stderr'][_0x6d25fe(0x15b)]()[_0x6d25fe(0x16f)]():'',_0x478aa4=_0x5c61df[_0x6d25fe(0x170)]?_0x5c61df[_0x6d25fe(0x170)][_0x6d25fe(0x15b)]()[_0x6d25fe(0x16f)]():'';if(_0x72ae99)_0x1268f0=_0x72ae99;else{if(_0x478aa4)_0x1268f0=_0x478aa4;}}return{'ok':![],'status':_0x298c0d??null,'error':_0x1268f0};}export function runNpxSkillsAddGlobal(_0x2154c5,_0x4f6ce9,_0x2c2b02){const _0x344cfb=a232_0x7bd440;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5b5ff0=_0x2c2b02?.[_0x344cfb(0x156)]??'inherit',_0x5387ad=resolveNpmBin(_0x344cfb(0x160)),_0x1f73aa=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f6ce9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x285d64=[_0x344cfb(0x160),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4f6ce9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x344cfb(0x164)]('\x20');console[_0x344cfb(0x167)]('*\x20'+_0x285d64);const _0xe8080b=spawnSync(_0x5387ad,_0x1f73aa,{'cwd':_0x2154c5,'stdio':_0x5b5ff0,'env':process.env,'shell':![]}),_0x12cd87=_0xe8080b[_0x344cfb(0x16e)];if(_0x12cd87===0x0)return{'ok':!![],'status':0x0};let _0x42df69='exit\x20'+(_0x12cd87??_0x344cfb(0x16b));if(_0x5b5ff0===_0x344cfb(0x158)){const _0x320d0b=_0xe8080b['stderr']?_0xe8080b[_0x344cfb(0x166)][_0x344cfb(0x15b)]()[_0x344cfb(0x16f)]():'',_0x1867d8=_0xe8080b[_0x344cfb(0x170)]?_0xe8080b[_0x344cfb(0x170)][_0x344cfb(0x15b)]()[_0x344cfb(0x16f)]():'';if(_0x320d0b)_0x42df69=_0x320d0b;else{if(_0x1867d8)_0x42df69=_0x1867d8;}}return{'ok':![],'status':_0x12cd87??null,'error':_0x42df69};}