@lovrabet/rabetbase-cli 2.3.9-beta.3 → 2.3.10-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (258) 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/group-create.js +1 -1
  104. package/lib/commands/menu/group-update.js +1 -1
  105. package/lib/commands/menu/index.js +1 -1
  106. package/lib/commands/menu/list.js +1 -1
  107. package/lib/commands/menu/regroup-start.js +1 -1
  108. package/lib/commands/menu/shared/compare-table.js +1 -1
  109. package/lib/commands/menu/shared/delete-plan.js +1 -1
  110. package/lib/commands/menu/shared/facts.js +1 -1
  111. package/lib/commands/menu/shared/index.js +1 -1
  112. package/lib/commands/menu/shared/inquirer.js +1 -1
  113. package/lib/commands/menu/shared/local-pages.js +1 -1
  114. package/lib/commands/menu/shared/logic.js +1 -1
  115. package/lib/commands/menu/shared/mutations.js +1 -1
  116. package/lib/commands/menu/shared/service.js +1 -1
  117. package/lib/commands/menu/shared/sync-core.js +1 -1
  118. package/lib/commands/menu/shared/update-core.js +1 -1
  119. package/lib/commands/menu/shared/valid-url.js +1 -1
  120. package/lib/commands/menu/sync.js +1 -1
  121. package/lib/commands/menu/update.js +1 -1
  122. package/lib/commands/notification/config-list.js +1 -1
  123. package/lib/commands/notification/index.js +1 -1
  124. package/lib/commands/page/generate-start.js +1 -1
  125. package/lib/commands/page/generate-status.js +1 -1
  126. package/lib/commands/page/index.js +1 -1
  127. package/lib/commands/page/pull.js +1 -1
  128. package/lib/commands/page/push.js +1 -1
  129. package/lib/commands/page/relation-audit.js +1 -1
  130. package/lib/commands/page/shared.js +1 -1
  131. package/lib/commands/page/standard-page-status.js +1 -1
  132. package/lib/commands/page/sync.js +1 -1
  133. package/lib/commands/permit/index.js +1 -1
  134. package/lib/commands/permit/page-get.js +1 -1
  135. package/lib/commands/permit/page-set.js +1 -1
  136. package/lib/commands/permit/role-apis-set.js +1 -1
  137. package/lib/commands/permit/role-menus-set.js +1 -1
  138. package/lib/commands/permit/role-menus.js +1 -1
  139. package/lib/commands/permit/shared.js +1 -1
  140. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  141. package/lib/commands/project/create/format-elapsed.js +1 -1
  142. package/lib/commands/project/create/main.js +1 -1
  143. package/lib/commands/project/create/non-interactive.js +1 -1
  144. package/lib/commands/project/create/project-template-path.js +1 -1
  145. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  146. package/lib/commands/project/create/use-format-code.js +1 -1
  147. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  148. package/lib/commands/project/index.js +1 -1
  149. package/lib/commands/project/init.js +1 -1
  150. package/lib/commands/project/upgrade.js +1 -1
  151. package/lib/commands/registry.js +1 -1
  152. package/lib/commands/role/create.js +1 -1
  153. package/lib/commands/role/delete.js +1 -1
  154. package/lib/commands/role/detail.js +1 -1
  155. package/lib/commands/role/index.js +1 -1
  156. package/lib/commands/role/list.js +1 -1
  157. package/lib/commands/role/shared.js +1 -1
  158. package/lib/commands/role/update.js +1 -1
  159. package/lib/commands/role/user-add.js +1 -1
  160. package/lib/commands/role/user-remove.js +1 -1
  161. package/lib/commands/role/user-resolve.js +1 -1
  162. package/lib/commands/run/index.js +1 -1
  163. package/lib/commands/schema.js +1 -1
  164. package/lib/commands/sql/create.js +1 -1
  165. package/lib/commands/sql/delete.js +1 -1
  166. package/lib/commands/sql/detail.js +1 -1
  167. package/lib/commands/sql/exec.js +1 -1
  168. package/lib/commands/sql/index.js +1 -1
  169. package/lib/commands/sql/list.js +1 -1
  170. package/lib/commands/sql/pull.js +1 -1
  171. package/lib/commands/sql/push.js +1 -1
  172. package/lib/commands/sql/save.js +1 -1
  173. package/lib/commands/sql/shared.js +1 -1
  174. package/lib/commands/sql/status.js +1 -1
  175. package/lib/commands/sql/validate.js +1 -1
  176. package/lib/commands/task/index.js +1 -1
  177. package/lib/commands/task/status.js +1 -1
  178. package/lib/commands/workspace/add.js +1 -1
  179. package/lib/commands/workspace/index.js +1 -1
  180. package/lib/commands/workspace/remove.js +1 -1
  181. package/lib/config/schema.js +1 -1
  182. package/lib/constant/cdn.js +1 -1
  183. package/lib/constant/cli.js +1 -1
  184. package/lib/constant/defaults.js +1 -1
  185. package/lib/constant/domain.js +1 -1
  186. package/lib/constant/env.js +1 -1
  187. package/lib/constant/output.js +1 -1
  188. package/lib/constant/paths.js +1 -1
  189. package/lib/constant/risk.js +1 -1
  190. package/lib/context/app-resolver.js +1 -1
  191. package/lib/context/auth-resolver.js +1 -1
  192. package/lib/context/config-loader.js +1 -1
  193. package/lib/context.js +1 -1
  194. package/lib/core/alias-resolver.js +1 -1
  195. package/lib/core/api-client.js +1 -1
  196. package/lib/core/bff/config.js +1 -1
  197. package/lib/core/bff/file-system.js +1 -1
  198. package/lib/core/bff/hash.js +1 -1
  199. package/lib/core/bff/lock.js +1 -1
  200. package/lib/core/bff/utils.js +1 -1
  201. package/lib/core/db-resolver.js +1 -1
  202. package/lib/core/page/file-system.js +1 -1
  203. package/lib/core/page/hash.js +1 -1
  204. package/lib/core/page/lock.js +1 -1
  205. package/lib/core/sql-index-auditor.js +1 -1
  206. package/lib/core/sql-sync/config.js +1 -1
  207. package/lib/core/sql-sync/file-system.js +1 -1
  208. package/lib/core/sql-sync/hash.js +1 -1
  209. package/lib/core/sql-sync/lock.js +1 -1
  210. package/lib/core/sql-sync/utils.js +1 -1
  211. package/lib/core/sql-validator.js +1 -1
  212. package/lib/errors.js +1 -1
  213. package/lib/framework/build-all-flags.js +1 -1
  214. package/lib/framework/error-output.js +1 -1
  215. package/lib/framework/explicit-yes.js +1 -1
  216. package/lib/framework/flags.js +1 -1
  217. package/lib/framework/help.js +1 -1
  218. package/lib/framework/index.js +1 -1
  219. package/lib/framework/output.js +1 -1
  220. package/lib/framework/response.js +1 -1
  221. package/lib/framework/runner-alias.js +1 -1
  222. package/lib/framework/runner.js +1 -1
  223. package/lib/framework/schema-export.js +1 -1
  224. package/lib/framework/types.js +1 -1
  225. package/lib/generated/build-info.js +1 -1
  226. package/lib/help.js +1 -1
  227. package/lib/skills/main.js +1 -1
  228. package/lib/skills/npx-skills-add.js +1 -1
  229. package/lib/telemetry/cli-command-trace.js +1 -1
  230. package/lib/telemetry/cli-help-trace.js +1 -1
  231. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  232. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  233. package/lib/telemetry/send-cli-trace-log.js +1 -1
  234. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  235. package/lib/utils/ai_config.js +1 -1
  236. package/lib/utils/apply-jq-filter.js +1 -1
  237. package/lib/utils/cdn-config.js +1 -1
  238. package/lib/utils/check-sdk-version.js +1 -1
  239. package/lib/utils/cli-version-check.js +1 -1
  240. package/lib/utils/cli-version-policy.js +1 -1
  241. package/lib/utils/config.js +1 -1
  242. package/lib/utils/copy-directory.js +1 -1
  243. package/lib/utils/entity-with-id.js +1 -1
  244. package/lib/utils/file-utils.js +1 -1
  245. package/lib/utils/guides-cdn.js +1 -1
  246. package/lib/utils/http-client.js +1 -1
  247. package/lib/utils/is-non-interactive.js +1 -1
  248. package/lib/utils/logger.js +1 -1
  249. package/lib/utils/params.js +1 -1
  250. package/lib/utils/platform.js +1 -1
  251. package/lib/utils/rules-cdn.js +1 -1
  252. package/lib/utils/sleep.js +1 -1
  253. package/lib/utils/template-replacer.js +1 -1
  254. package/lib/utils/update-notice.js +1 -1
  255. package/lib/utils/version.js +1 -1
  256. package/lib/utils/with-active-cookie.js +1 -1
  257. package/lib/utils/write-cli-side-channel.js +1 -1
  258. package/package.json +1 -1
@@ -1 +1 @@
1
- const a208_0x4301dd=a208_0x4352;function a208_0x5144(){const _0x10e8da=['5892754swEfnH','795184AqHzgU','151266xVrFRX','.rabetbase','sql','1719496FMbYVd','sql.lock.json','9743830dlJWWX','6SXpNek','165vHbpiM','3258afcDoE','12944eBIrrq','452826GfzosT'];a208_0x5144=function(){return _0x10e8da;};return a208_0x5144();}function a208_0x4352(_0x487aaf,_0x14ae12){_0x487aaf=_0x487aaf-0x12e;const _0x514412=a208_0x5144();let _0x43521f=_0x514412[_0x487aaf];return _0x43521f;}(function(_0x1827af,_0x47bc2c){const _0x556143=a208_0x4352,_0x2e5a35=_0x1827af();while(!![]){try{const _0x53d8aa=parseInt(_0x556143(0x133))/0x1+parseInt(_0x556143(0x131))/0x2+parseInt(_0x556143(0x13a))/0x3*(parseInt(_0x556143(0x137))/0x4)+-parseInt(_0x556143(0x12e))/0x5*(parseInt(_0x556143(0x134))/0x6)+-parseInt(_0x556143(0x132))/0x7+parseInt(_0x556143(0x130))/0x8*(-parseInt(_0x556143(0x12f))/0x9)+parseInt(_0x556143(0x139))/0xa;if(_0x53d8aa===_0x47bc2c)break;else _0x2e5a35['push'](_0x2e5a35['shift']());}catch(_0x147da6){_0x2e5a35['push'](_0x2e5a35['shift']());}}}(a208_0x5144,0x91903));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a208_0x4301dd(0x135),LOCK_FILE_NAME=a208_0x4301dd(0x138),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x43bb4f,_0xc75412){const _0x27f4cf=a208_0x4301dd,_0x5351dd=resolve(_0xc75412??findProjectRootDirectory()),_0x441e41=DOT_DIR+'/sql',_0x506484=_0x441e41+'/'+_0x43bb4f;return{'projectRoot':_0x5351dd,'appCode':_0x43bb4f,'sqlWorkspaceRoot':_0x441e41,'sqlRoot':_0x506484,'sqlRootDir':resolve(_0x5351dd,DOT_DIR,_0x27f4cf(0x136),_0x43bb4f),'lockFilePath':resolve(_0x5351dd,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5351dd,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a208_0x575e4d=a208_0xba26;function a208_0xba26(_0x12e97a,_0x11943b){_0x12e97a=_0x12e97a-0xb9;const _0xd46f66=a208_0xd46f();let _0xba2699=_0xd46f66[_0x12e97a];return _0xba2699;}(function(_0x330a70,_0x43ee23){const _0x3a05ce=a208_0xba26,_0x56e231=_0x330a70();while(!![]){try{const _0x1bc505=parseInt(_0x3a05ce(0xbc))/0x1*(-parseInt(_0x3a05ce(0xb9))/0x2)+-parseInt(_0x3a05ce(0xc2))/0x3*(parseInt(_0x3a05ce(0xc5))/0x4)+parseInt(_0x3a05ce(0xc4))/0x5*(parseInt(_0x3a05ce(0xbe))/0x6)+-parseInt(_0x3a05ce(0xc8))/0x7*(-parseInt(_0x3a05ce(0xbb))/0x8)+-parseInt(_0x3a05ce(0xc6))/0x9+-parseInt(_0x3a05ce(0xba))/0xa*(-parseInt(_0x3a05ce(0xc0))/0xb)+-parseInt(_0x3a05ce(0xc7))/0xc;if(_0x1bc505===_0x43ee23)break;else _0x56e231['push'](_0x56e231['shift']());}catch(_0x1fe0fa){_0x56e231['push'](_0x56e231['shift']());}}}(a208_0xd46f,0x4c75f));import{resolve}from'node:path';function a208_0xd46f(){const _0x5daa47=['665370LGyjhw','sql-trash','11orajmi','.rabetbase','3429OrHTUr','sql','10kAgAgn','164BOWiiq','897894IGXesa','6465192rdOYKE','1882055ibTGTt','332unWqGS','5110770XckEMQ','8MbJRAD','19gaeqvI','/sql'];a208_0xd46f=function(){return _0x5daa47;};return a208_0xd46f();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a208_0x575e4d(0xc1),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a208_0x575e4d(0xbf);export function loadSqlProjectConfig(_0x54be52,_0x16dab3){const _0x5c9762=a208_0x575e4d,_0x4dbd12=resolve(_0x16dab3??findProjectRootDirectory()),_0x36a6c5=DOT_DIR+_0x5c9762(0xbd),_0x59afc3=_0x36a6c5+'/'+_0x54be52;return{'projectRoot':_0x4dbd12,'appCode':_0x54be52,'sqlWorkspaceRoot':_0x36a6c5,'sqlRoot':_0x59afc3,'sqlRootDir':resolve(_0x4dbd12,DOT_DIR,_0x5c9762(0xc3),_0x54be52),'lockFilePath':resolve(_0x4dbd12,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x4dbd12,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x43371d,_0x4da355){const _0x2f8058=a209_0xa076,_0x810a75=_0x43371d();while(!![]){try{const _0x1016c5=-parseInt(_0x2f8058(0x1e4))/0x1*(parseInt(_0x2f8058(0x1d6))/0x2)+parseInt(_0x2f8058(0x1d3))/0x3+-parseInt(_0x2f8058(0x1e6))/0x4*(-parseInt(_0x2f8058(0x1e2))/0x5)+parseInt(_0x2f8058(0x1d4))/0x6+parseInt(_0x2f8058(0x1df))/0x7*(parseInt(_0x2f8058(0x1d8))/0x8)+-parseInt(_0x2f8058(0x1cc))/0x9+parseInt(_0x2f8058(0x1d1))/0xa*(-parseInt(_0x2f8058(0x1dc))/0xb);if(_0x1016c5===_0x4da355)break;else _0x810a75['push'](_0x810a75['shift']());}catch(_0x44ac77){_0x810a75['push'](_0x810a75['shift']());}}}(a209_0x13b8,0x65c28));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x129941){const _0x6aeaca=a209_0xa076;if(_0x129941==='.sql')return'sql';if(_0x129941===_0x6aeaca(0x1d0))return _0x6aeaca(0x1d5);return undefined;}async function scanSqlFilesRecursively(_0x46b170,_0x5698c3){const _0x482938=a209_0xa076,_0x1d487c=[];try{const _0x5b7c49=await readdir(_0x46b170,{'withFileTypes':!![]});for(const _0x162d7d of _0x5b7c49){const _0x47679d=join(_0x46b170,_0x162d7d[_0x482938(0x1e7)]);if(_0x162d7d[_0x482938(0x1d9)]()){_0x1d487c['push'](...await scanSqlFilesRecursively(_0x47679d,_0x5698c3));continue;}if(!_0x162d7d[_0x482938(0x1e0)]())continue;const _0x341a45=extname(_0x162d7d[_0x482938(0x1e7)])[_0x482938(0x1d2)](),_0x2bacd4=extensionToMode(_0x341a45);if(!_0x2bacd4)continue;const _0x2fa46d=relative(_0x5698c3,_0x47679d)[_0x482938(0x1e5)](/\\/g,'/'),_0x288ec8=_0x2fa46d['split']('/')['filter'](Boolean),_0x115b9c=parseSqlPath(_0x288ec8,_0x162d7d[_0x482938(0x1e7)],_0x341a45);if(!_0x115b9c)continue;_0x1d487c[_0x482938(0x1da)]({'sqlCode':_0x115b9c[_0x482938(0x1e3)],'sqlName':_0x115b9c[_0x482938(0x1cf)],'dbDirectory':_0x288ec8[0x0],'filePath':_0x47679d,'relativePath':_0x2fa46d,'lockKey':_0x115b9c[_0x482938(0x1e3)],'mode':_0x2bacd4});}}catch(_0x1f681f){if(_0x1f681f[_0x482938(0x1cd)]!==_0x482938(0x1d7))throw _0x1f681f;}return _0x1d487c;}export async function scanLocalSqlQueries(_0x221d03){const _0x17860e=a209_0xa076;return scanSqlFilesRecursively(_0x221d03[_0x17860e(0x1dd)],_0x221d03['sqlRootDir']);}function a209_0x13b8(){const _0xeefa30=['dbName','5191020pYeUTY','code','slice','sqlName','.xml','50HBMrhF','toLowerCase','2129676GcxKzE','3213420dNEFIE','mybatisXml','1568hjRWWl','ENOENT','8seQHMZ','isDirectory','push','mode','543279KHoiuo','sqlRootDir','length','4986891mjEVpl','isFile','indexOf','5QRyQVA','sqlCode','1018RGUgjn','replace','323080FophmF','name','test','dbId'];a209_0x13b8=function(){return _0xeefa30;};return a209_0x13b8();}function a209_0xa076(_0xc04261,_0x380269){_0xc04261=_0xc04261-0x1c9;const _0x13b807=a209_0x13b8();let _0xa076c0=_0x13b807[_0xc04261];return _0xa076c0;}export function resolveLocalSqlFilePath(_0x42d8aa,_0x4717a8,_0x547226){const _0x3f75c6=a209_0xa076,_0x239704=_0x547226?.['path']||(_0x547226?.[_0x3f75c6(0x1cf)]||_0x547226?.['dbName']?buildSqlRelativePath(_0x4717a8,_0x547226?.['sqlName'],_0x547226?.[_0x3f75c6(0x1cb)],_0x547226?.[_0x3f75c6(0x1db)]||'sql',_0x547226?.[_0x3f75c6(0x1ca)]):buildDefaultSqlFileName(_0x4717a8,_0x547226?.[_0x3f75c6(0x1db)]||'sql'));return join(_0x42d8aa['sqlRootDir'],_0x239704);}export async function directoryExists(_0x5062b6){const _0x2b76a2=a209_0xa076;try{const _0x528f31=await stat(_0x5062b6);return _0x528f31[_0x2b76a2(0x1d9)]();}catch{return![];}}function parseSqlPath(_0x4a4daa,_0x11f1e6,_0x38646d){const _0x30cb17=a209_0xa076,_0x415823=_0x11f1e6[_0x30cb17(0x1ce)](0x0,-_0x38646d['length']);if(_0x4a4daa[_0x30cb17(0x1de)]<0x2)return null;const _0x3b1eda=_0x415823[_0x30cb17(0x1e1)]('_');if(_0x3b1eda<=0x0||_0x3b1eda>=_0x415823[_0x30cb17(0x1de)]-0x1)return null;const _0x382078=_0x415823[_0x30cb17(0x1ce)](0x0,_0x3b1eda);if(!isLikelySqlCode(_0x382078))return null;return{'sqlCode':_0x382078,'sqlName':_0x415823[_0x30cb17(0x1ce)](_0x3b1eda+0x1)};}function isLikelySqlCode(_0x5380bf){const _0x1eeb50=a209_0xa076;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1eeb50(0x1c9)](_0x5380bf);}
1
+ (function(_0x10cd82,_0x2ed519){const _0x16d092=a209_0xc0c8,_0x4b1dfe=_0x10cd82();while(!![]){try{const _0x4d53e6=-parseInt(_0x16d092(0xfd))/0x1*(parseInt(_0x16d092(0x102))/0x2)+parseInt(_0x16d092(0xfe))/0x3*(-parseInt(_0x16d092(0xf6))/0x4)+-parseInt(_0x16d092(0xfb))/0x5+parseInt(_0x16d092(0xf0))/0x6+parseInt(_0x16d092(0x10a))/0x7+parseInt(_0x16d092(0x108))/0x8+-parseInt(_0x16d092(0x10d))/0x9;if(_0x4d53e6===_0x2ed519)break;else _0x4b1dfe['push'](_0x4b1dfe['shift']());}catch(_0x3e41d4){_0x4b1dfe['push'](_0x4b1dfe['shift']());}}}(a209_0x13b5,0xd9e08));function a209_0xc0c8(_0xae7887,_0x3e9c61){_0xae7887=_0xae7887-0xf0;const _0x13b5c6=a209_0x13b5();let _0xc0c8fd=_0x13b5c6[_0xae7887];return _0xc0c8fd;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4779e0){const _0x520675=a209_0xc0c8;if(_0x4779e0===_0x520675(0x100))return _0x520675(0x101);if(_0x4779e0===_0x520675(0xf3))return _0x520675(0xf5);return undefined;}async function scanSqlFilesRecursively(_0x4fe54a,_0x9f8bec){const _0x3820fe=a209_0xc0c8,_0x21d7b8=[];try{const _0x2ea1fa=await readdir(_0x4fe54a,{'withFileTypes':!![]});for(const _0x2d8a01 of _0x2ea1fa){const _0x3e5739=join(_0x4fe54a,_0x2d8a01[_0x3820fe(0xff)]);if(_0x2d8a01[_0x3820fe(0xf8)]()){_0x21d7b8[_0x3820fe(0x106)](...await scanSqlFilesRecursively(_0x3e5739,_0x9f8bec));continue;}if(!_0x2d8a01[_0x3820fe(0x109)]())continue;const _0x121a67=extname(_0x2d8a01[_0x3820fe(0xff)])[_0x3820fe(0x10b)](),_0x2efbbe=extensionToMode(_0x121a67);if(!_0x2efbbe)continue;const _0x40b4c0=relative(_0x9f8bec,_0x3e5739)['replace'](/\\/g,'/'),_0x1eebbc=_0x40b4c0[_0x3820fe(0xf7)]('/')[_0x3820fe(0xf4)](Boolean),_0x1157f8=parseSqlPath(_0x1eebbc,_0x2d8a01[_0x3820fe(0xff)],_0x121a67);if(!_0x1157f8)continue;_0x21d7b8[_0x3820fe(0x106)]({'sqlCode':_0x1157f8[_0x3820fe(0x105)],'sqlName':_0x1157f8[_0x3820fe(0x103)],'dbDirectory':_0x1eebbc[0x0],'filePath':_0x3e5739,'relativePath':_0x40b4c0,'lockKey':_0x1157f8[_0x3820fe(0x105)],'mode':_0x2efbbe});}}catch(_0x489869){if(_0x489869['code']!==_0x3820fe(0xf2))throw _0x489869;}return _0x21d7b8;}export async function scanLocalSqlQueries(_0x48f0fa){const _0x46a85f=a209_0xc0c8;return scanSqlFilesRecursively(_0x48f0fa['sqlRootDir'],_0x48f0fa[_0x46a85f(0xf9)]);}export function resolveLocalSqlFilePath(_0x42a61c,_0x226c0e,_0xf4f1c){const _0x250423=a209_0xc0c8,_0x1dcc92=_0xf4f1c?.[_0x250423(0x104)]||(_0xf4f1c?.['sqlName']||_0xf4f1c?.['dbName']?buildSqlRelativePath(_0x226c0e,_0xf4f1c?.['sqlName'],_0xf4f1c?.[_0x250423(0x10c)],_0xf4f1c?.[_0x250423(0xfc)]||_0x250423(0x101),_0xf4f1c?.[_0x250423(0xf1)]):buildDefaultSqlFileName(_0x226c0e,_0xf4f1c?.['mode']||_0x250423(0x101)));return join(_0x42a61c[_0x250423(0xf9)],_0x1dcc92);}export async function directoryExists(_0x4fca5e){const _0x46d887=a209_0xc0c8;try{const _0x473d01=await stat(_0x4fca5e);return _0x473d01[_0x46d887(0xf8)]();}catch{return![];}}function parseSqlPath(_0x5b0193,_0x1155da,_0x33bf11){const _0x24c895=a209_0xc0c8,_0x528cfc=_0x1155da[_0x24c895(0xfa)](0x0,-_0x33bf11['length']);if(_0x5b0193[_0x24c895(0x107)]<0x2)return null;const _0x46705a=_0x528cfc['indexOf']('_');if(_0x46705a<=0x0||_0x46705a>=_0x528cfc['length']-0x1)return null;const _0x4d9246=_0x528cfc['slice'](0x0,_0x46705a);if(!isLikelySqlCode(_0x4d9246))return null;return{'sqlCode':_0x4d9246,'sqlName':_0x528cfc[_0x24c895(0xfa)](_0x46705a+0x1)};}function a209_0x13b5(){const _0xe444ae=['sql','8oTUZiX','sqlName','path','sqlCode','push','length','8431752uhewrX','isFile','11012358KlqEcC','toLowerCase','dbName','3897603JNoVDK','4441686jRfLis','dbId','ENOENT','.xml','filter','mybatisXml','292eKVeCw','split','isDirectory','sqlRootDir','slice','1961210EToyHi','mode','346527fBgOrl','10833etbRln','name','.sql'];a209_0x13b5=function(){return _0xe444ae;};return a209_0x13b5();}function isLikelySqlCode(_0x445676){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x445676);}
@@ -1 +1 @@
1
- (function(_0x58911d,_0x27f84c){const _0x5637ce=a210_0x4894,_0x352cae=_0x58911d();while(!![]){try{const _0x5f4da6=-parseInt(_0x5637ce(0x19d))/0x1*(-parseInt(_0x5637ce(0x1a5))/0x2)+parseInt(_0x5637ce(0x19b))/0x3*(parseInt(_0x5637ce(0x1a3))/0x4)+parseInt(_0x5637ce(0x19a))/0x5+-parseInt(_0x5637ce(0x19c))/0x6+parseInt(_0x5637ce(0x1a1))/0x7*(parseInt(_0x5637ce(0x1a2))/0x8)+-parseInt(_0x5637ce(0x1a0))/0x9+-parseInt(_0x5637ce(0x1a4))/0xa;if(_0x5f4da6===_0x27f84c)break;else _0x352cae['push'](_0x352cae['shift']());}catch(_0x4e837d){_0x352cae['push'](_0x352cae['shift']());}}}(a210_0x2898,0x85b13));function a210_0x2898(){const _0x525f63=['12881270lgYbsk','406RTMUfA','2278505ySWqAp','65133GDwoRv','561432ZsmzOJ','3349VcqoHJ','md5','hex','2337174DconqS','7vJkNTj','2348440coecCR','140mLccph'];a210_0x2898=function(){return _0x525f63;};return a210_0x2898();}import{readFile}from'node:fs/promises';function a210_0x4894(_0x2568c4,_0x5e944d){_0x2568c4=_0x2568c4-0x19a;const _0x2898bf=a210_0x2898();let _0x489499=_0x2898bf[_0x2568c4];return _0x489499;}import a210_0x38acfc from'node:crypto';export function computeSqlContentHash(_0x44472c){const _0x322933=a210_0x4894;return a210_0x38acfc['createHash'](_0x322933(0x19e))['update'](_0x44472c)['digest'](_0x322933(0x19f));}export async function computeSqlFileHash(_0x5756b0){const _0x5de175=await readFile(_0x5756b0,'utf8');return computeSqlContentHash(_0x5de175);}
1
+ (function(_0x271fe1,_0xcefc7e){const _0x17a7b9=a210_0x144c,_0x55ddff=_0x271fe1();while(!![]){try{const _0x57cac7=parseInt(_0x17a7b9(0x73))/0x1*(-parseInt(_0x17a7b9(0x6c))/0x2)+parseInt(_0x17a7b9(0x69))/0x3+-parseInt(_0x17a7b9(0x72))/0x4+-parseInt(_0x17a7b9(0x6e))/0x5*(-parseInt(_0x17a7b9(0x65))/0x6)+-parseInt(_0x17a7b9(0x6f))/0x7*(parseInt(_0x17a7b9(0x67))/0x8)+parseInt(_0x17a7b9(0x66))/0x9*(-parseInt(_0x17a7b9(0x6a))/0xa)+parseInt(_0x17a7b9(0x70))/0xb*(parseInt(_0x17a7b9(0x6b))/0xc);if(_0x57cac7===_0xcefc7e)break;else _0x55ddff['push'](_0x55ddff['shift']());}catch(_0x5788e7){_0x55ddff['push'](_0x55ddff['shift']());}}}(a210_0x5cb3,0xe5fa6));import{readFile}from'node:fs/promises';import a210_0x42753c from'node:crypto';export function computeSqlContentHash(_0x3ed830){const _0x59f987=a210_0x144c;return a210_0x42753c[_0x59f987(0x71)](_0x59f987(0x6d))[_0x59f987(0x64)](_0x3ed830)[_0x59f987(0x68)](_0x59f987(0x74));}function a210_0x5cb3(){const _0x3b7830=['374091nlHRFW','hex','update','8022138SiHJQT','10683YfMnyY','31592Sigwdv','digest','2997531DwzgzU','6810sTgGiI','206292CfGWRg','6HseHuY','md5','5aPANZU','2338DbQvzV','1254dtFYaQ','createHash','417592psiZvE'];a210_0x5cb3=function(){return _0x3b7830;};return a210_0x5cb3();}function a210_0x144c(_0x3c8616,_0x14f33b){_0x3c8616=_0x3c8616-0x64;const _0x5cb35e=a210_0x5cb3();let _0x144c50=_0x5cb35e[_0x3c8616];return _0x144c50;}export async function computeSqlFileHash(_0x48498d){const _0x51b080=await readFile(_0x48498d,'utf8');return computeSqlContentHash(_0x51b080);}
@@ -1 +1 @@
1
- function a211_0x3424(_0x502fd2,_0x2584c8){_0x502fd2=_0x502fd2-0xab;const _0x5dedf7=a211_0x5ded();let _0x342467=_0x5dedf7[_0x502fd2];return _0x342467;}(function(_0x241c6a,_0x38177b){const _0x517f29=a211_0x3424,_0x3c4740=_0x241c6a();while(!![]){try{const _0x2409ac=-parseInt(_0x517f29(0xbe))/0x1+-parseInt(_0x517f29(0xaf))/0x2*(-parseInt(_0x517f29(0xb5))/0x3)+-parseInt(_0x517f29(0xc0))/0x4+-parseInt(_0x517f29(0xb2))/0x5+-parseInt(_0x517f29(0xb3))/0x6*(-parseInt(_0x517f29(0xab))/0x7)+parseInt(_0x517f29(0xb6))/0x8*(parseInt(_0x517f29(0xbd))/0x9)+parseInt(_0x517f29(0xb9))/0xa*(parseInt(_0x517f29(0xb0))/0xb);if(_0x2409ac===_0x38177b)break;else _0x3c4740['push'](_0x3c4740['shift']());}catch(_0x105192){_0x3c4740['push'](_0x3c4740['shift']());}}}(a211_0x5ded,0x3222e));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1e04ca,_0x384184,_0x1cc5a4,_0x38e7f6){const _0x43dcb4=a211_0x3424,_0x5e234f=_0x1e04ca??createEmptySqlLock();let _0x286750=_0x5e234f[_0x43dcb4(0xbb)][_0x384184];if(!_0x286750)return _0x286750={'sqlRoot':_0x1cc5a4,'lastSync':'','sqls':{}},_0x5e234f[_0x43dcb4(0xbb)][_0x384184]=_0x286750,{'lockData':_0x5e234f,'appLock':_0x286750};if(!_0x286750[_0x43dcb4(0xad)])_0x286750[_0x43dcb4(0xad)]=_0x1cc5a4;else{if(_0x286750[_0x43dcb4(0xad)]!==_0x1cc5a4)throw new Error(_0x38e7f6+_0x43dcb4(0xae)+_0x1cc5a4+_0x43dcb4(0xb1)+_0x286750[_0x43dcb4(0xad)]+'\x22.\x20'+_0x43dcb4(0xba));}return!_0x286750[_0x43dcb4(0xbc)]&&(_0x286750['sqls']={}),!_0x286750[_0x43dcb4(0xb7)]&&(_0x286750['lastSync']=''),{'lockData':_0x5e234f,'appLock':_0x286750};}export async function readSqlLockFile(_0x403a7a){const _0x1d75c0=a211_0x3424;try{const _0x389b12=await readFile(_0x403a7a,_0x1d75c0(0xb8));return JSON[_0x1d75c0(0xc1)](_0x389b12);}catch(_0x3c8dc0){if(_0x3c8dc0['code']===_0x1d75c0(0xac))return null;throw new Error(_0x1d75c0(0xbf)+String(_0x3c8dc0));}}export async function writeSqlLockFile(_0x5f25da,_0x22e311){const _0x3b8057=a211_0x3424;await mkdir(dirname(_0x5f25da),{'recursive':!![]}),await writeFile(_0x5f25da,JSON[_0x3b8057(0xb4)](_0x22e311,null,0x2),_0x3b8057(0xb8));}function a211_0x5ded(){const _0x25b281=['\x22\x20vs\x20lock\x20\x22','939985nyDDuI','12gDXQBy','stringify','4881AToTjm','72bigxcP','lastSync','utf8','265570fFCuEc','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','apps','sqls','171567dDwSIZ','227321ZmxTEV','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','465144qVqtCd','parse','364574fkiUST','ENOENT','sqlRoot',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','12DtFvgU','187XDvzBz'];a211_0x5ded=function(){return _0x25b281;};return a211_0x5ded();}
1
+ (function(_0x122acd,_0x1b608a){const _0x1d71e7=a211_0x24ce,_0x179231=_0x122acd();while(!![]){try{const _0x18cbd7=-parseInt(_0x1d71e7(0x1be))/0x1*(-parseInt(_0x1d71e7(0x1bb))/0x2)+-parseInt(_0x1d71e7(0x1b2))/0x3*(-parseInt(_0x1d71e7(0x1b9))/0x4)+parseInt(_0x1d71e7(0x1bf))/0x5*(parseInt(_0x1d71e7(0x1b4))/0x6)+parseInt(_0x1d71e7(0x1c4))/0x7+parseInt(_0x1d71e7(0x1af))/0x8*(parseInt(_0x1d71e7(0x1c3))/0x9)+-parseInt(_0x1d71e7(0x1ae))/0xa*(parseInt(_0x1d71e7(0x1c2))/0xb)+-parseInt(_0x1d71e7(0x1c5))/0xc*(parseInt(_0x1d71e7(0x1b7))/0xd);if(_0x18cbd7===_0x1b608a)break;else _0x179231['push'](_0x179231['shift']());}catch(_0x1bfd6d){_0x179231['push'](_0x179231['shift']());}}}(a211_0x47d2,0x2cd4a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a211_0x47d2(){const _0x64ddb3=['sqls','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','295189BySXnc','115VxqauE','\x22\x20vs\x20lock\x20\x22','lastSync','11MMpVoi','1544958HjznXa','1832887aeuNfO','4983576cfleun','utf8','2257450OpWnWl','8bdPoYs','sqlRoot','ENOENT','21246tGNzLK','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','23190xvDsva','apps',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','13NsFlOc','stringify','4ZDyQBP','code','2ABJnlg'];a211_0x47d2=function(){return _0x64ddb3;};return a211_0x47d2();}export function createEmptySqlLock(){return{'apps':{}};}function a211_0x24ce(_0x42d6a8,_0x2fb66a){_0x42d6a8=_0x42d6a8-0x1ae;const _0x47d2a1=a211_0x47d2();let _0x24cec4=_0x47d2a1[_0x42d6a8];return _0x24cec4;}export function ensureSqlLockScope(_0x298c1d,_0x51296b,_0x460cbd,_0x11df01){const _0x82860f=a211_0x24ce,_0x5bf317=_0x298c1d??createEmptySqlLock();let _0x4b9960=_0x5bf317[_0x82860f(0x1b5)][_0x51296b];if(!_0x4b9960)return _0x4b9960={'sqlRoot':_0x460cbd,'lastSync':'','sqls':{}},_0x5bf317[_0x82860f(0x1b5)][_0x51296b]=_0x4b9960,{'lockData':_0x5bf317,'appLock':_0x4b9960};if(!_0x4b9960['sqlRoot'])_0x4b9960[_0x82860f(0x1b0)]=_0x460cbd;else{if(_0x4b9960[_0x82860f(0x1b0)]!==_0x460cbd)throw new Error(_0x11df01+_0x82860f(0x1b6)+_0x460cbd+_0x82860f(0x1c0)+_0x4b9960['sqlRoot']+'\x22.\x20'+_0x82860f(0x1b3));}return!_0x4b9960[_0x82860f(0x1bc)]&&(_0x4b9960[_0x82860f(0x1bc)]={}),!_0x4b9960[_0x82860f(0x1c1)]&&(_0x4b9960[_0x82860f(0x1c1)]=''),{'lockData':_0x5bf317,'appLock':_0x4b9960};}export async function readSqlLockFile(_0x3d4ec9){const _0x2d994e=a211_0x24ce;try{const _0x50cd8c=await readFile(_0x3d4ec9,'utf8');return JSON['parse'](_0x50cd8c);}catch(_0x49e412){if(_0x49e412[_0x2d994e(0x1ba)]===_0x2d994e(0x1b1))return null;throw new Error(_0x2d994e(0x1bd)+String(_0x49e412));}}export async function writeSqlLockFile(_0x26d583,_0x5c849e){const _0x3f1bfc=a211_0x24ce;await mkdir(dirname(_0x26d583),{'recursive':!![]}),await writeFile(_0x26d583,JSON[_0x3f1bfc(0x1b8)](_0x5c849e,null,0x2),_0x3f1bfc(0x1c6));}
@@ -1 +1 @@
1
- function a213_0x36be(_0x5fc2b4,_0x3034d1){_0x5fc2b4=_0x5fc2b4-0xfb;const _0x4d530f=a213_0x4d53();let _0x36be78=_0x4d530f[_0x5fc2b4];return _0x36be78;}(function(_0x2a96c2,_0x54b0b8){const _0x322e50=a213_0x36be,_0x296c20=_0x2a96c2();while(!![]){try{const _0x39a081=parseInt(_0x322e50(0xfd))/0x1*(-parseInt(_0x322e50(0x102))/0x2)+-parseInt(_0x322e50(0xfb))/0x3+parseInt(_0x322e50(0x104))/0x4+parseInt(_0x322e50(0xfe))/0x5*(parseInt(_0x322e50(0x105))/0x6)+parseInt(_0x322e50(0x108))/0x7*(parseInt(_0x322e50(0x103))/0x8)+-parseInt(_0x322e50(0xfc))/0x9*(-parseInt(_0x322e50(0x109))/0xa)+parseInt(_0x322e50(0x10c))/0xb*(-parseInt(_0x322e50(0x107))/0xc);if(_0x39a081===_0x54b0b8)break;else _0x296c20['push'](_0x296c20['shift']());}catch(_0x5b14ee){_0x296c20['push'](_0x296c20['shift']());}}}(a213_0x4d53,0xdcf81));export function detectSqlMode(_0x1f0466){const _0x1cdac6=a213_0x36be,_0x5a176a=_0x1f0466[_0x1cdac6(0xff)]();if(/^<(select|insert|update|delete)\b/i[_0x1cdac6(0x10a)](_0x5a176a))return'mybatisXml';return'sql';}function a213_0x4d53(){const _0x4ccaf6=['1399409ehwWbk','replace','2914122PvTAqh','1719SbBupS','3ELsngf','2615wSeovQ','trimStart','unknown-db','mybatisXml','1159182PUJTJr','555848LFHVuL','4935592caamha','6852WRyHUk','db-','120bSimxh','175XjlLYC','69070kIPodu','test','.xml'];a213_0x4d53=function(){return _0x4ccaf6;};return a213_0x4d53();}export function getSqlFileExtension(_0x5eb7ed){const _0x47c15b=a213_0x36be;return _0x5eb7ed===_0x47c15b(0x101)?_0x47c15b(0x10b):'.sql';}export function buildDefaultSqlFileName(_0x1f83b7,_0x1400b7){return''+_0x1f83b7+getSqlFileExtension(_0x1400b7);}export function sanitizeSqlPathSegment(_0xf1b699,_0x46b645){const _0x2e57b4=a213_0x36be,_0x1d9d66=String(_0xf1b699??'')['trim'](),_0x4c041d=_0x1d9d66[_0x2e57b4(0x10d)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2e57b4(0x10d)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x2e57b4(0x10d)](/^\.+/,'')[_0x2e57b4(0x10d)](/\.+$/,'')['replace'](/^-+/,'')['replace'](/-+$/,'');return _0x4c041d||_0x46b645;}export function buildDbDirectoryName(_0x414d73,_0x13b649){const _0x2a8361=a213_0x36be;return sanitizeSqlPathSegment(_0x414d73,_0x13b649!=null?_0x2a8361(0x106)+_0x13b649:_0x2a8361(0x100));}export function buildSqlRelativePath(_0x842964,_0x110f5b,_0x3a6b84,_0xbf7182,_0x10abf9){const _0x32f848=buildDbDirectoryName(_0x3a6b84,_0x10abf9),_0x337593=sanitizeSqlPathSegment(_0x842964,'unknown-sql'),_0x265c72=sanitizeSqlPathSegment(_0x110f5b,_0x337593);return _0x32f848+'/'+_0x337593+'_'+_0x265c72+getSqlFileExtension(_0xbf7182);}
1
+ (function(_0x123e21,_0x106f61){const _0x4b391b=a213_0x2417,_0x221428=_0x123e21();while(!![]){try{const _0x3cc984=parseInt(_0x4b391b(0xde))/0x1*(-parseInt(_0x4b391b(0xd6))/0x2)+-parseInt(_0x4b391b(0xdf))/0x3*(-parseInt(_0x4b391b(0xe4))/0x4)+parseInt(_0x4b391b(0xd3))/0x5*(-parseInt(_0x4b391b(0xd8))/0x6)+-parseInt(_0x4b391b(0xe5))/0x7*(parseInt(_0x4b391b(0xe2))/0x8)+-parseInt(_0x4b391b(0xe3))/0x9+parseInt(_0x4b391b(0xe6))/0xa*(parseInt(_0x4b391b(0xdd))/0xb)+parseInt(_0x4b391b(0xdb))/0xc;if(_0x3cc984===_0x106f61)break;else _0x221428['push'](_0x221428['shift']());}catch(_0x45ef27){_0x221428['push'](_0x221428['shift']());}}}(a213_0x5708,0xa3de6));export function detectSqlMode(_0x454556){const _0x4aa4db=a213_0x2417,_0x13106b=_0x454556[_0x4aa4db(0xd9)]();if(/^<(select|insert|update|delete)\b/i[_0x4aa4db(0xda)](_0x13106b))return _0x4aa4db(0xd7);return _0x4aa4db(0xd2);}export function getSqlFileExtension(_0x1f0e5a){const _0x340355=a213_0x2417;return _0x1f0e5a===_0x340355(0xd7)?_0x340355(0xd4):'.sql';}function a213_0x2417(_0x3aa6ee,_0x24ea06){_0x3aa6ee=_0x3aa6ee-0xd2;const _0x5708ed=a213_0x5708();let _0x241715=_0x5708ed[_0x3aa6ee];return _0x241715;}export function buildDefaultSqlFileName(_0x1bb861,_0x2aa7ef){return''+_0x1bb861+getSqlFileExtension(_0x2aa7ef);}export function sanitizeSqlPathSegment(_0x1ca21b,_0x1ed95e){const _0x3db21a=a213_0x2417,_0x3d2089=String(_0x1ca21b??'')[_0x3db21a(0xdc)](),_0x21ad10=_0x3d2089[_0x3db21a(0xe1)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x3db21a(0xe1)](/\s+/g,'-')[_0x3db21a(0xe1)](/-+/g,'-')['replace'](/^\.+/,'')[_0x3db21a(0xe1)](/\.+$/,'')[_0x3db21a(0xe1)](/^-+/,'')[_0x3db21a(0xe1)](/-+$/,'');return _0x21ad10||_0x1ed95e;}function a213_0x5708(){const _0x138bc9=['trim','77hbbBnf','1mpGmOB','201897pCCYoH','unknown-db','replace','40SpFHuo','8021574aRFjcz','44DJLgQh','343861PsLybZ','349880JnqDrc','db-','sql','165CqlVjQ','.xml','unknown-sql','2391614XZBKYe','mybatisXml','218328ecBDVF','trimStart','test','38634156baOcpG'];a213_0x5708=function(){return _0x138bc9;};return a213_0x5708();}export function buildDbDirectoryName(_0x41374d,_0x3b11f6){const _0x36c5bc=a213_0x2417;return sanitizeSqlPathSegment(_0x41374d,_0x3b11f6!=null?_0x36c5bc(0xe7)+_0x3b11f6:_0x36c5bc(0xe0));}export function buildSqlRelativePath(_0x56391b,_0x39e1ea,_0x2c1bb4,_0x3901ff,_0x360c8d){const _0xcb4a95=a213_0x2417,_0x14a6ef=buildDbDirectoryName(_0x2c1bb4,_0x360c8d),_0x5a5013=sanitizeSqlPathSegment(_0x56391b,_0xcb4a95(0xd5)),_0x5bf39c=sanitizeSqlPathSegment(_0x39e1ea,_0x5a5013);return _0x14a6ef+'/'+_0x5a5013+'_'+_0x5bf39c+getSqlFileExtension(_0x3901ff);}
@@ -1 +1 @@
1
- function a214_0x109b(_0x8929aa,_0x864e6){_0x8929aa=_0x8929aa-0x185;const _0x3485d5=a214_0x3485();let _0x109b74=_0x3485d5[_0x8929aa];return _0x109b74;}(function(_0x5b9c87,_0x5f15f2){const _0x5ef02e=a214_0x109b,_0x1d762f=_0x5b9c87();while(!![]){try{const _0x3156b4=-parseInt(_0x5ef02e(0x18f))/0x1+-parseInt(_0x5ef02e(0x189))/0x2+parseInt(_0x5ef02e(0x1a4))/0x3*(-parseInt(_0x5ef02e(0x193))/0x4)+parseInt(_0x5ef02e(0x18b))/0x5+parseInt(_0x5ef02e(0x1a8))/0x6*(-parseInt(_0x5ef02e(0x195))/0x7)+parseInt(_0x5ef02e(0x196))/0x8*(parseInt(_0x5ef02e(0x1ac))/0x9)+-parseInt(_0x5ef02e(0x18d))/0xa*(-parseInt(_0x5ef02e(0x18c))/0xb);if(_0x3156b4===_0x5f15f2)break;else _0x1d762f['push'](_0x1d762f['shift']());}catch(_0x1e3ad4){_0x1d762f['push'](_0x1d762f['shift']());}}}(a214_0x3485,0xcdfa4));export function detectSqlType(_0x4f820b){const _0x1cc1fa=a214_0x109b;if(!_0x4f820b?.[_0x1cc1fa(0x185)]())return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![],'reason':_0x1cc1fa(0x19c)};const _0x2e5eb4=_0x4f820b[_0x1cc1fa(0x186)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x1cc1fa(0x186)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x1cc1fa(0x185)](),_0x26a6cd=_0x2e5eb4[_0x1cc1fa(0x19b)]('\x0a');let _0x768063='';for(const _0xd00e97 of _0x26a6cd){const _0x5f0574=_0xd00e97[_0x1cc1fa(0x185)]();if(!_0x5f0574||_0x5f0574[_0x1cc1fa(0x18e)]('--')||_0x5f0574[_0x1cc1fa(0x18e)]('/*'))continue;_0x768063=_0x5f0574;break;}const _0x366312=_0x768063[_0x1cc1fa(0x1a1)]();if(_0x366312[_0x1cc1fa(0x18e)]('SELECT')||_0x366312['startsWith'](_0x1cc1fa(0x1ab))){const _0x18bf13=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x1cc1fa(0x1a3)](_0x2e5eb4);return{'type':_0x1cc1fa(0x19a),'isSelectOnly':!_0x18bf13,'isDangerous':_0x18bf13,'reason':_0x18bf13?_0x1cc1fa(0x1a9):undefined};}if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x18a)))return{'type':_0x1cc1fa(0x18a),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)](_0x1cc1fa(0x1a2)))return{'type':_0x1cc1fa(0x1a2),'isSelectOnly':![],'isDangerous':![]};if(_0x366312[_0x1cc1fa(0x18e)]('DELETE'))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x366312))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':_0x1cc1fa(0x19d)};return{'type':_0x1cc1fa(0x192),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x184d24){const _0x228658=a214_0x109b,_0x34fc94=_0x184d24[_0x228658(0x186)](/#\{[^}]*\}/g,'?')[_0x228658(0x186)](/\$\{[^}]*\}/g,'?')[_0x228658(0x186)](/'[^']*'/g,'\x27\x27')[_0x228658(0x186)](/--.*$/gm,'')[_0x228658(0x186)](/\/\*[\s\S]*?\*\//g,''),_0x3f8fdc=[],_0x31eaed=_0x34fc94[_0x228658(0x188)](/FROM\s+([^\s,)(]+)/i);if(_0x31eaed?.[0x1])_0x3f8fdc[_0x228658(0x199)](_0x31eaed[0x1][_0x228658(0x186)](/[`"]/g,''));for(const _0x58d772 of _0x34fc94['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x2e023d=_0x58d772[0x1]?.['replace'](/[`"]/g,'');if(_0x2e023d&&!_0x3f8fdc[_0x228658(0x194)](_0x2e023d))_0x3f8fdc[_0x228658(0x199)](_0x2e023d);}const _0x505b97=_0x34fc94[_0x228658(0x188)](/INTO\s+([^\s(]+)/i);if(_0x505b97?.[0x1]){const _0x157ec6=_0x505b97[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x157ec6))_0x3f8fdc[_0x228658(0x199)](_0x157ec6);}const _0x2c1394=_0x34fc94[_0x228658(0x188)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2c1394?.[0x1]){const _0x5d7773=_0x2c1394[0x1][_0x228658(0x186)](/[`"]/g,'');if(!_0x3f8fdc[_0x228658(0x194)](_0x5d7773))_0x3f8fdc['push'](_0x5d7773);}return _0x3f8fdc;}function extractParameters(_0x189065){const _0x586084=a214_0x109b,_0x1156dc=new Set();for(const _0x5a7251 of _0x189065[_0x586084(0x191)](/#\{(\w+)\}/g))if(_0x5a7251[0x1])_0x1156dc['add'](_0x5a7251[0x1]);for(const _0x189208 of _0x189065[_0x586084(0x191)](/\$\{(\w+)\}/g))if(_0x189208[0x1])_0x1156dc[_0x586084(0x1a6)](_0x189208[0x1]);return Array[_0x586084(0x197)](_0x1156dc);}function a214_0x3485(){const _0xed68b8=['3652doUQKW','includes','3428222JxbnKY','5879624bBADMr','from','\x20with\x20parameters:\x20','push','SELECT','split','SQL\x20content\x20is\x20empty','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','type','length','join','toUpperCase','UPDATE','test','2307UjEKco','reason','add','\x20query\x20targeting\x20','6HGdpEm','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','WITH','18csHGjx','trim','replace','isDangerous','match','98162NLSQKB','INSERT','3598200aNQhbZ','64229MkDUls','10sZXKql','startsWith','110777IPGuGr','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','matchAll','UNKNOWN'];a214_0x3485=function(){return _0xed68b8;};return a214_0x3485();}export function validateSql(_0xe67c97){const _0x45e70d=a214_0x109b,_0x156e25=detectSqlType(_0xe67c97),_0x481db8=extractTables(_0xe67c97),_0x3c6ada=extractParameters(_0xe67c97);if(_0x156e25[_0x45e70d(0x187)])return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x1a5)]||_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x190)};if(_0x156e25[_0x45e70d(0x19e)]===_0x45e70d(0x192))return{'valid':![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x156e25,'tables':_0x481db8,'parameters':_0x3c6ada,'message':_0x156e25[_0x45e70d(0x19e)]+_0x45e70d(0x1a7)+(_0x481db8['length']?_0x481db8[_0x45e70d(0x1a0)](',\x20'):_0x45e70d(0x1aa))+(_0x3c6ada[_0x45e70d(0x19f)]?_0x45e70d(0x198)+_0x3c6ada[_0x45e70d(0x1a0)](',\x20'):'')};}
1
+ function a214_0x29d8(){const _0x2de24e=['UNKNOWN','1381163CAjZji','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','UPDATE','matchAll','3514390whWrUy','startsWith','556863LgzoAk','reason','length','unknown\x20table(s)','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','push','427409Eyzxyq','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','type','WITH','1679704rorIdY','test','replace','SQL\x20content\x20is\x20empty','16cyCerQ','isDangerous','match','16726488lCfMMF','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','add','trim','join','split','\x20query\x20targeting\x20','DELETE','SELECT','includes','toUpperCase','DDL','INSERT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','5272032TVIOZJ'];a214_0x29d8=function(){return _0x2de24e;};return a214_0x29d8();}function a214_0x31ef(_0x2c3e90,_0x43d0db){_0x2c3e90=_0x2c3e90-0x178;const _0x29d80c=a214_0x29d8();let _0x31ef62=_0x29d80c[_0x2c3e90];return _0x31ef62;}(function(_0x1a3a48,_0xe5c48){const _0x52c2c1=a214_0x31ef,_0x396c08=_0x1a3a48();while(!![]){try{const _0x2da350=parseInt(_0x52c2c1(0x189))/0x1+-parseInt(_0x52c2c1(0x18d))/0x2+parseInt(_0x52c2c1(0x183))/0x3*(-parseInt(_0x52c2c1(0x191))/0x4)+parseInt(_0x52c2c1(0x181))/0x5+-parseInt(_0x52c2c1(0x17b))/0x6+-parseInt(_0x52c2c1(0x17d))/0x7+parseInt(_0x52c2c1(0x194))/0x8;if(_0x2da350===_0xe5c48)break;else _0x396c08['push'](_0x396c08['shift']());}catch(_0xbd2b56){_0x396c08['push'](_0x396c08['shift']());}}}(a214_0x29d8,0x8965d));export function detectSqlType(_0x3cb815){const _0x5cf9df=a214_0x31ef;if(!_0x3cb815?.['trim']())return{'type':_0x5cf9df(0x17c),'isSelectOnly':![],'isDangerous':![],'reason':_0x5cf9df(0x190)};const _0x55ce50=_0x3cb815[_0x5cf9df(0x18f)](/#\{[^}]*\}/g,'?')[_0x5cf9df(0x18f)](/\$\{[^}]*\}/g,'?')[_0x5cf9df(0x18f)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x5cf9df(0x18f)](/\/\*[\s\S]*?\*\//g,'')[_0x5cf9df(0x197)](),_0x12b4f1=_0x55ce50[_0x5cf9df(0x199)]('\x0a');let _0x4dd811='';for(const _0x224104 of _0x12b4f1){const _0x2adc78=_0x224104[_0x5cf9df(0x197)]();if(!_0x2adc78||_0x2adc78[_0x5cf9df(0x182)]('--')||_0x2adc78['startsWith']('/*'))continue;_0x4dd811=_0x2adc78;break;}const _0x385ad5=_0x4dd811[_0x5cf9df(0x19e)]();if(_0x385ad5[_0x5cf9df(0x182)](_0x5cf9df(0x19c))||_0x385ad5[_0x5cf9df(0x182)](_0x5cf9df(0x18c))){const _0x4220e1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5cf9df(0x18e)](_0x55ce50);return{'type':'SELECT','isSelectOnly':!_0x4220e1,'isDangerous':_0x4220e1,'reason':_0x4220e1?_0x5cf9df(0x17e):undefined};}if(_0x385ad5[_0x5cf9df(0x182)](_0x5cf9df(0x179)))return{'type':_0x5cf9df(0x179),'isSelectOnly':![],'isDangerous':![]};if(_0x385ad5[_0x5cf9df(0x182)]('UPDATE'))return{'type':_0x5cf9df(0x17f),'isSelectOnly':![],'isDangerous':![]};if(_0x385ad5[_0x5cf9df(0x182)](_0x5cf9df(0x19b)))return{'type':_0x5cf9df(0x19b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5cf9df(0x195)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x5cf9df(0x18e)](_0x385ad5))return{'type':_0x5cf9df(0x178),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5cf9df(0x17a)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0xeab787){const _0x523910=a214_0x31ef,_0x4c5f7f=_0xeab787['replace'](/#\{[^}]*\}/g,'?')[_0x523910(0x18f)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x523910(0x18f)](/--.*$/gm,'')[_0x523910(0x18f)](/\/\*[\s\S]*?\*\//g,''),_0x238d2f=[],_0xe7e4cb=_0x4c5f7f['match'](/FROM\s+([^\s,)(]+)/i);if(_0xe7e4cb?.[0x1])_0x238d2f[_0x523910(0x188)](_0xe7e4cb[0x1][_0x523910(0x18f)](/[`"]/g,''));for(const _0x45f0d0 of _0x4c5f7f[_0x523910(0x180)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x22e2b1=_0x45f0d0[0x1]?.[_0x523910(0x18f)](/[`"]/g,'');if(_0x22e2b1&&!_0x238d2f[_0x523910(0x19d)](_0x22e2b1))_0x238d2f[_0x523910(0x188)](_0x22e2b1);}const _0x41ad52=_0x4c5f7f['match'](/INTO\s+([^\s(]+)/i);if(_0x41ad52?.[0x1]){const _0x20b80e=_0x41ad52[0x1][_0x523910(0x18f)](/[`"]/g,'');if(!_0x238d2f['includes'](_0x20b80e))_0x238d2f[_0x523910(0x188)](_0x20b80e);}const _0x59da84=_0x4c5f7f[_0x523910(0x193)](/UPDATE\s+([^\s,)(]+)/i);if(_0x59da84?.[0x1]){const _0x4f7b09=_0x59da84[0x1][_0x523910(0x18f)](/[`"]/g,'');if(!_0x238d2f[_0x523910(0x19d)](_0x4f7b09))_0x238d2f[_0x523910(0x188)](_0x4f7b09);}return _0x238d2f;}function extractParameters(_0x2dd54c){const _0x12168e=a214_0x31ef,_0x3f214d=new Set();for(const _0x9d76c of _0x2dd54c[_0x12168e(0x180)](/#\{(\w+)\}/g))if(_0x9d76c[0x1])_0x3f214d[_0x12168e(0x196)](_0x9d76c[0x1]);for(const _0x3bc40d of _0x2dd54c['matchAll'](/\$\{(\w+)\}/g))if(_0x3bc40d[0x1])_0x3f214d['add'](_0x3bc40d[0x1]);return Array['from'](_0x3f214d);}export function validateSql(_0x3c26db){const _0x3879a5=a214_0x31ef,_0x268fef=detectSqlType(_0x3c26db),_0x2d6034=extractTables(_0x3c26db),_0x5013cf=extractParameters(_0x3c26db);if(_0x268fef[_0x3879a5(0x192)])return{'valid':![],'sqlType':_0x268fef,'tables':_0x2d6034,'parameters':_0x5013cf,'message':_0x268fef[_0x3879a5(0x184)]||_0x268fef['type']+_0x3879a5(0x187)};if(_0x268fef[_0x3879a5(0x18b)]===_0x3879a5(0x17c))return{'valid':![],'sqlType':_0x268fef,'tables':_0x2d6034,'parameters':_0x5013cf,'message':_0x3879a5(0x18a)};return{'valid':!![],'sqlType':_0x268fef,'tables':_0x2d6034,'parameters':_0x5013cf,'message':_0x268fef['type']+_0x3879a5(0x19a)+(_0x2d6034[_0x3879a5(0x185)]?_0x2d6034[_0x3879a5(0x198)](',\x20'):_0x3879a5(0x186))+(_0x5013cf[_0x3879a5(0x185)]?'\x20with\x20parameters:\x20'+_0x5013cf[_0x3879a5(0x198)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a215_0x91ee9b=a215_0x1b9d;(function(_0x51711e,_0x5d82e6){const _0x496953=a215_0x1b9d,_0x16fc8a=_0x51711e();while(!![]){try{const _0x31cc67=-parseInt(_0x496953(0x8f))/0x1+-parseInt(_0x496953(0x93))/0x2+-parseInt(_0x496953(0x9a))/0x3+-parseInt(_0x496953(0x91))/0x4+parseInt(_0x496953(0x96))/0x5*(-parseInt(_0x496953(0x97))/0x6)+-parseInt(_0x496953(0x95))/0x7+parseInt(_0x496953(0x90))/0x8;if(_0x31cc67===_0x5d82e6)break;else _0x16fc8a['push'](_0x16fc8a['shift']());}catch(_0x575a07){_0x16fc8a['push'](_0x16fc8a['shift']());}}}(a215_0x535a,0x59f0e));function a215_0x535a(){const _0x37951b=['5wSQtho','2582706qDXyXc','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','1535973dbCcpj','Tip:\x20`','Set\x20appcode\x20via\x20`','413780FIBjsC','21289160RnAYJk','267976FljiFP','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','857136Ystiwp','Run\x20`','3086741gYHAGk'];a215_0x535a=function(){return _0x37951b;};return a215_0x535a();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a215_0x1b9d(_0x560f83,_0x813bf7){_0x560f83=_0x560f83-0x8d;const _0x535ad5=a215_0x535a();let _0x1b9dbd=_0x535ad5[_0x560f83];return _0x1b9dbd;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a215_0x91ee9b(0x94)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a215_0x91ee9b(0x8e)+CLI_BIN_NAME+a215_0x91ee9b(0x98),a215_0x91ee9b(0x8d)+CLI_BIN_NAME+a215_0x91ee9b(0x92)]['join'](a215_0x91ee9b(0x99)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a215_0x5b56bb=a215_0x289d;(function(_0x28a950,_0x573f3a){const _0x24b066=a215_0x289d,_0x591809=_0x28a950();while(!![]){try{const _0x43047d=parseInt(_0x24b066(0xca))/0x1*(-parseInt(_0x24b066(0xce))/0x2)+-parseInt(_0x24b066(0xc6))/0x3*(parseInt(_0x24b066(0xcf))/0x4)+-parseInt(_0x24b066(0xcb))/0x5*(parseInt(_0x24b066(0xd6))/0x6)+-parseInt(_0x24b066(0xd4))/0x7*(-parseInt(_0x24b066(0xd5))/0x8)+-parseInt(_0x24b066(0xcc))/0x9*(parseInt(_0x24b066(0xc8))/0xa)+parseInt(_0x24b066(0xd3))/0xb*(-parseInt(_0x24b066(0xc7))/0xc)+parseInt(_0x24b066(0xd0))/0xd*(parseInt(_0x24b066(0xc9))/0xe);if(_0x43047d===_0x573f3a)break;else _0x591809['push'](_0x591809['shift']());}catch(_0x4333a7){_0x591809['push'](_0x591809['shift']());}}}(a215_0x4f94,0x5579e));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a215_0x4f94(){const _0x599d62=['384735CTlPvx','233244fdSjsR','\x0a\x20\x20\x20\x20\x20\x20\x20','164156IshInh','52vmReJJ','52Qlwnqm','\x20auth`\x20to\x20login\x20first.','Tip:\x20`','275CjbBWY','7iwwBTU','3283816cftGxu','12fhUZaE','99930bFPXJa','270780GSQnyJ','250cMEpXW','6946856XUksdQ','3onqpWD'];a215_0x4f94=function(){return _0x599d62;};return a215_0x4f94();}import{CLI_BIN_NAME}from'./constant/cli.js';function a215_0x289d(_0x28ce5b,_0x28bd8a){_0x28ce5b=_0x28ce5b-0xc6;const _0x4f947a=a215_0x4f94();let _0x289d55=_0x4f947a[_0x28ce5b];return _0x289d55;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a215_0x5b56bb(0xd1),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a215_0x5b56bb(0xd2)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a215_0x5b56bb(0xcd)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x119ba1,_0x5bd936){const _0x17e16d=a216_0x48f1,_0x306ee5=_0x119ba1();while(!![]){try{const _0x3767a6=-parseInt(_0x17e16d(0x1a4))/0x1*(parseInt(_0x17e16d(0x1a5))/0x2)+-parseInt(_0x17e16d(0x1a0))/0x3+-parseInt(_0x17e16d(0x1a2))/0x4*(-parseInt(_0x17e16d(0x19c))/0x5)+parseInt(_0x17e16d(0x19b))/0x6+parseInt(_0x17e16d(0x1a7))/0x7*(-parseInt(_0x17e16d(0x19f))/0x8)+parseInt(_0x17e16d(0x19e))/0x9+parseInt(_0x17e16d(0x19d))/0xa*(parseInt(_0x17e16d(0x1a6))/0xb);if(_0x3767a6===_0x5bd936)break;else _0x306ee5['push'](_0x306ee5['shift']());}catch(_0x5cf24c){_0x306ee5['push'](_0x306ee5['shift']());}}}(a216_0x16d8,0x6f3f4));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a216_0x16d8(){const _0x4b691b=['7073ZEDPCW','7iKlIAk','436668cemDOM','25danHoY','14540hxinNB','3728646SJuKNK','2724760tEleYY','1036197INjZRB','yes','51196ywYNZn','map','344327mzRHAK','2StFyDj'];a216_0x16d8=function(){return _0x4b691b;};return a216_0x16d8();}function a216_0x48f1(_0x3fe42a,_0x3608e1){_0x3fe42a=_0x3fe42a-0x19b;const _0x16d83a=a216_0x16d8();let _0x48f13d=_0x16d83a[_0x3fe42a];return _0x48f13d;}import{buildAllFlags as a216_0x5428d3}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x5a6f23){const _0x1a076c=a216_0x48f1,_0x31b294=a216_0x5428d3(_0x5a6f23,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x5a6f23))return _0x31b294;return _0x31b294[_0x1a076c(0x1a3)](_0x22c55f=>_0x22c55f['name']===_0x1a076c(0x1a1)?{..._0x22c55f,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x22c55f);}
1
+ (function(_0x4882af,_0x7549e0){const _0xc81d99=a216_0x40bf,_0x4fb8de=_0x4882af();while(!![]){try{const _0x14e333=parseInt(_0xc81d99(0x163))/0x1+parseInt(_0xc81d99(0x15e))/0x2*(-parseInt(_0xc81d99(0x167))/0x3)+-parseInt(_0xc81d99(0x162))/0x4*(parseInt(_0xc81d99(0x165))/0x5)+parseInt(_0xc81d99(0x160))/0x6+parseInt(_0xc81d99(0x15d))/0x7+-parseInt(_0xc81d99(0x168))/0x8*(parseInt(_0xc81d99(0x164))/0x9)+parseInt(_0xc81d99(0x15f))/0xa*(-parseInt(_0xc81d99(0x169))/0xb);if(_0x14e333===_0x7549e0)break;else _0x4fb8de['push'](_0x4fb8de['shift']());}catch(_0x3a485b){_0x4fb8de['push'](_0x4fb8de['shift']());}}}(a216_0x3d21,0xc91f2));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a216_0x3dca9a}from'@lovrabet/cli-framework';function a216_0x3d21(){const _0x2dcc39=['13002doANhs','9375912alUmaO','2KdnJsv','4000lSmxzM','3843630jLREMF','yes','4pIYZNr','1117740AKULcZ','1132371TaqRtb','4018685mkaNQn','name','2614833CMMqJc','8TPDWIw'];a216_0x3d21=function(){return _0x2dcc39;};return a216_0x3d21();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a216_0x40bf(_0x3a3dd3,_0x40882c){_0x3a3dd3=_0x3a3dd3-0x15d;const _0x3d21a3=a216_0x3d21();let _0x40bfef=_0x3d21a3[_0x3a3dd3];return _0x40bfef;}export function buildAllFlags(_0x47977f){const _0x2da838=a216_0x40bf,_0x168a5e=a216_0x3dca9a(_0x47977f,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x47977f))return _0x168a5e;return _0x168a5e['map'](_0x3560e5=>_0x3560e5[_0x2da838(0x166)]===_0x2da838(0x161)?{..._0x3560e5,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x3560e5);}
@@ -1 +1 @@
1
- function a217_0x94ba(){var _0x2a9056=['defaultFormat','format','11mswiXC','flags','26437548KmOUez','628270eCwQiw','7121165QrCjse','50309cTbzoZ','structuredErrors','988014ZTLySM','279hGnjSh','5IbyfvL','248672wglpuH','4DQpgWZ','246bvzcWW','def','171090zTXhzv'];a217_0x94ba=function(){return _0x2a9056;};return a217_0x94ba();}(function(_0x2d240f,_0x14c24f){var _0x58e3b8=a217_0x34d2,_0x2d5bd3=_0x2d240f();while(!![]){try{var _0x415de3=-parseInt(_0x58e3b8(0x140))/0x1*(-parseInt(_0x58e3b8(0x145))/0x2)+parseInt(_0x58e3b8(0x13e))/0x3+parseInt(_0x58e3b8(0x142))/0x4*(-parseInt(_0x58e3b8(0x13b))/0x5)+-parseInt(_0x58e3b8(0x143))/0x6*(-parseInt(_0x58e3b8(0x13c))/0x7)+parseInt(_0x58e3b8(0x141))/0x8*(-parseInt(_0x58e3b8(0x13f))/0x9)+-parseInt(_0x58e3b8(0x13a))/0xa+parseInt(_0x58e3b8(0x148))/0xb*(parseInt(_0x58e3b8(0x139))/0xc);if(_0x415de3===_0x14c24f)break;else _0x2d5bd3['push'](_0x2d5bd3['shift']());}catch(_0x2d6a1e){_0x2d5bd3['push'](_0x2d5bd3['shift']());}}}(a217_0x94ba,0xc4563));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x55ac95){var _0x22485c=a217_0x34d2;return _0x55ac95?.[_0x22485c(0x13d)]===!![];}function a217_0x34d2(_0x44f5ba,_0x58d124){_0x44f5ba=_0x44f5ba-0x138;var _0x94ba1d=a217_0x94ba();var _0x34d25a=_0x94ba1d[_0x44f5ba];return _0x34d25a;}export function resolveErrorOutputFormat(_0x90cfd9){var _0x6faa5c=a217_0x34d2;if(!_0x90cfd9['def'])return _0x90cfd9[_0x6faa5c(0x146)]??'compress';return resolveOutputConfig({'flags':_0x90cfd9[_0x6faa5c(0x138)]??{},'def':_0x90cfd9[_0x6faa5c(0x144)],'configDefault':_0x90cfd9['defaultFormat']})[_0x6faa5c(0x147)];}
1
+ (function(_0x3d1ab8,_0x307dbf){var _0x179c09=a217_0x4a14,_0x2e82fc=_0x3d1ab8();while(!![]){try{var _0x1c7e54=parseInt(_0x179c09(0x164))/0x1*(parseInt(_0x179c09(0x15c))/0x2)+parseInt(_0x179c09(0x15b))/0x3*(-parseInt(_0x179c09(0x156))/0x4)+parseInt(_0x179c09(0x162))/0x5+-parseInt(_0x179c09(0x15f))/0x6+-parseInt(_0x179c09(0x15a))/0x7*(-parseInt(_0x179c09(0x15d))/0x8)+parseInt(_0x179c09(0x163))/0x9+parseInt(_0x179c09(0x160))/0xa;if(_0x1c7e54===_0x307dbf)break;else _0x2e82fc['push'](_0x2e82fc['shift']());}catch(_0x16c64d){_0x2e82fc['push'](_0x2e82fc['shift']());}}}(a217_0x2bde,0x2edab));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2ac51b){var _0x419778=a217_0x4a14;return _0x2ac51b?.[_0x419778(0x15e)]===!![];}function a217_0x4a14(_0x7998e,_0x15e064){_0x7998e=_0x7998e-0x156;var _0x2bde9e=a217_0x2bde();var _0x4a1482=_0x2bde9e[_0x7998e];return _0x4a1482;}function a217_0x2bde(){var _0x2ba94c=['compress','877120pEzjej','2262096DWjpUA','5931djPXoQ','4NTltBZ','flags','def','defaultFormat','982632gjEcfT','1057299TyoxZv','72eBkHEN','8WWlUHy','structuredErrors','1822578oFGwfh','674510dMzWTi'];a217_0x2bde=function(){return _0x2ba94c;};return a217_0x2bde();}export function resolveErrorOutputFormat(_0x18151f){var _0x1d9284=a217_0x4a14;if(!_0x18151f[_0x1d9284(0x158)])return _0x18151f['defaultFormat']??_0x1d9284(0x161);return resolveOutputConfig({'flags':_0x18151f[_0x1d9284(0x157)]??{},'def':_0x18151f[_0x1d9284(0x158)],'configDefault':_0x18151f[_0x1d9284(0x159)]})['format'];}
@@ -1 +1 @@
1
- const a218_0x41e7f6=a218_0x25e4;(function(_0x51030f,_0x5d536a){const _0x8ec2d4=a218_0x25e4,_0x1723ef=_0x51030f();while(!![]){try{const _0x30d73f=-parseInt(_0x8ec2d4(0x1b0))/0x1*(parseInt(_0x8ec2d4(0x1b7))/0x2)+parseInt(_0x8ec2d4(0x1b1))/0x3*(-parseInt(_0x8ec2d4(0x1b9))/0x4)+parseInt(_0x8ec2d4(0x1a7))/0x5*(parseInt(_0x8ec2d4(0x1ae))/0x6)+parseInt(_0x8ec2d4(0x1ba))/0x7+-parseInt(_0x8ec2d4(0x1ab))/0x8*(-parseInt(_0x8ec2d4(0x1b2))/0x9)+parseInt(_0x8ec2d4(0x1b5))/0xa+parseInt(_0x8ec2d4(0x1b6))/0xb*(-parseInt(_0x8ec2d4(0x1a8))/0xc);if(_0x30d73f===_0x5d536a)break;else _0x1723ef['push'](_0x1723ef['shift']());}catch(_0x4add02){_0x1723ef['push'](_0x1723ef['shift']());}}}(a218_0xcc21,0x49a6f));const EXPLICIT_YES_COMMANDS=new Set([a218_0x41e7f6(0x1b3),a218_0x41e7f6(0x1aa),a218_0x41e7f6(0x1a9),a218_0x41e7f6(0x1ad)]);function a218_0x25e4(_0x558eb7,_0x404ee7){_0x558eb7=_0x558eb7-0x1a7;const _0xcc2104=a218_0xcc21();let _0x25e4ce=_0xcc2104[_0x558eb7];return _0x25e4ce;}function a218_0xcc21(){const _0x593c7c=['987640kNiApY','1661UKVtKj','1006738aulKip','service','4yLDPCp','1045569bCnGjj','123470ptMyKl','5244zbDpYl','menu\x20group-update','menu\x20group-create','3096LgizBg','command','menu\x20regroup-start','96VlTXXT','has','1WzGGWa','609954IidjEA','10026ZivVTm','menu\x20delete','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan'];a218_0xcc21=function(){return _0x593c7c;};return a218_0xcc21();}export const EXPLICIT_YES_FLAG_DESCRIPTION=a218_0x41e7f6(0x1b4);export function requiresExplicitYes(_0x558dd4){const _0x2f9a26=a218_0x41e7f6;return EXPLICIT_YES_COMMANDS[_0x2f9a26(0x1af)](_0x558dd4[_0x2f9a26(0x1b8)]+'\x20'+_0x558dd4[_0x2f9a26(0x1ac)]);}
1
+ const a218_0x2f7b1e=a218_0x57e1;(function(_0x1865a0,_0x281fc1){const _0x1188e9=a218_0x57e1,_0x5d967f=_0x1865a0();while(!![]){try{const _0x5acf5b=parseInt(_0x1188e9(0x1fb))/0x1*(parseInt(_0x1188e9(0x1f5))/0x2)+-parseInt(_0x1188e9(0x1ef))/0x3+parseInt(_0x1188e9(0x1f0))/0x4*(-parseInt(_0x1188e9(0x1f8))/0x5)+parseInt(_0x1188e9(0x1ee))/0x6+-parseInt(_0x1188e9(0x1f1))/0x7+-parseInt(_0x1188e9(0x1fe))/0x8*(parseInt(_0x1188e9(0x1fa))/0x9)+parseInt(_0x1188e9(0x1f4))/0xa*(parseInt(_0x1188e9(0x1ed))/0xb);if(_0x5acf5b===_0x281fc1)break;else _0x5d967f['push'](_0x5d967f['shift']());}catch(_0x459ff4){_0x5d967f['push'](_0x5d967f['shift']());}}}(a218_0x112b,0x4be5a));const EXPLICIT_YES_COMMANDS=new Set([a218_0x2f7b1e(0x1fc),a218_0x2f7b1e(0x1f7),a218_0x2f7b1e(0x1f9),a218_0x2f7b1e(0x1f3)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a218_0x2f7b1e(0x1f6);function a218_0x57e1(_0xcea933,_0x5baf14){_0xcea933=_0xcea933-0x1ed;const _0x112ba9=a218_0x112b();let _0x57e12d=_0x112ba9[_0xcea933];return _0x57e12d;}export function requiresExplicitYes(_0x540f66){const _0x8affaa=a218_0x2f7b1e;return EXPLICIT_YES_COMMANDS[_0x8affaa(0x1f2)](_0x540f66[_0x8affaa(0x1fd)]+'\x20'+_0x540f66['command']);}function a218_0x112b(){const _0x508f14=['36vIokYN','78362ffXxkU','menu\x20delete','service','1078184llfsDv','77xvSkmY','3647298yBcNyT','1392678dIfmfm','2099732ZxrzAG','3878077HtbldD','has','menu\x20regroup-start','2326470KSXfud','4MALPYa','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20group-create','5AWEBsF','menu\x20group-update'];a218_0x112b=function(){return _0x508f14;};return a218_0x112b();}
@@ -1 +1 @@
1
- const a219_0x33b076=a219_0x57b2;function a219_0x57b2(_0x78158a,_0x4c4215){_0x78158a=_0x78158a-0x10b;const _0x3c65fe=a219_0x3c65();let _0x57b22f=_0x3c65fe[_0x78158a];return _0x57b22f;}function a219_0x3c65(){const _0x5a5a55=['30DbpbVh','1316922yjgwPE','parseFlags','2QUCSce','949874eNSGRc','1390914nPIgma','4110806dhEuYV','48TwVQDX','145196icEePu','5UgidPA','50243842OqAxpq','8768990hEphaE'];a219_0x3c65=function(){return _0x5a5a55;};return a219_0x3c65();}(function(_0x4d7eeb,_0x1ec895){const _0x2dc72f=a219_0x57b2,_0x46789b=_0x4d7eeb();while(!![]){try{const _0x597a27=-parseInt(_0x2dc72f(0x114))/0x1*(parseInt(_0x2dc72f(0x115))/0x2)+parseInt(_0x2dc72f(0x111))/0x3*(-parseInt(_0x2dc72f(0x10d))/0x4)+-parseInt(_0x2dc72f(0x10e))/0x5*(parseInt(_0x2dc72f(0x112))/0x6)+-parseInt(_0x2dc72f(0x10b))/0x7+-parseInt(_0x2dc72f(0x10c))/0x8*(parseInt(_0x2dc72f(0x116))/0x9)+-parseInt(_0x2dc72f(0x110))/0xa+parseInt(_0x2dc72f(0x10f))/0xb;if(_0x597a27===_0x1ec895)break;else _0x46789b['push'](_0x46789b['shift']());}catch(_0x1e400a){_0x46789b['push'](_0x46789b['shift']());}}}(a219_0x3c65,0x9d2fe));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a219_0x33b076(0x113)];export const validateFlags=helpers['validateFlags'];
1
+ const a219_0x38fc58=a219_0x5c41;(function(_0x36670e,_0x119790){const _0x4347d9=a219_0x5c41,_0x2cc679=_0x36670e();while(!![]){try{const _0x175d29=-parseInt(_0x4347d9(0x155))/0x1+parseInt(_0x4347d9(0x151))/0x2*(parseInt(_0x4347d9(0x15a))/0x3)+parseInt(_0x4347d9(0x154))/0x4+parseInt(_0x4347d9(0x157))/0x5+-parseInt(_0x4347d9(0x156))/0x6*(parseInt(_0x4347d9(0x152))/0x7)+parseInt(_0x4347d9(0x15b))/0x8+parseInt(_0x4347d9(0x153))/0x9;if(_0x175d29===_0x119790)break;else _0x2cc679['push'](_0x2cc679['shift']());}catch(_0x2ed898){_0x2cc679['push'](_0x2cc679['shift']());}}}(a219_0x1c9a,0x56bfa));function a219_0x1c9a(){const _0x252ad6=['115190sJtKHd','validateFlags','parseFlags','3gbYISF','2160216UZOavf','436642oMnAME','433034JQarjv','1931463fTUkmT','121236pWbWGy','153532lUWhhW','24OmHZMm'];a219_0x1c9a=function(){return _0x252ad6;};return a219_0x1c9a();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a219_0x5c41(_0x59c5d0,_0x277994){_0x59c5d0=_0x59c5d0-0x151;const _0x1c9a96=a219_0x1c9a();let _0x5c41cf=_0x1c9a96[_0x59c5d0];return _0x5c41cf;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a219_0x38fc58(0x159)];export const validateFlags=helpers[a219_0x38fc58(0x158)];
@@ -1 +1 @@
1
- const a220_0x36619d=a220_0x5dd1;(function(_0x5aa96a,_0x2cc7e0){const _0xbb47fc=a220_0x5dd1,_0x2933e4=_0x5aa96a();while(!![]){try{const _0x48ed23=parseInt(_0xbb47fc(0x17b))/0x1*(-parseInt(_0xbb47fc(0x181))/0x2)+parseInt(_0xbb47fc(0x178))/0x3+parseInt(_0xbb47fc(0x187))/0x4*(parseInt(_0xbb47fc(0x17e))/0x5)+-parseInt(_0xbb47fc(0x17d))/0x6*(-parseInt(_0xbb47fc(0x173))/0x7)+-parseInt(_0xbb47fc(0x184))/0x8+parseInt(_0xbb47fc(0x176))/0x9*(parseInt(_0xbb47fc(0x17a))/0xa)+-parseInt(_0xbb47fc(0x183))/0xb*(parseInt(_0xbb47fc(0x172))/0xc);if(_0x48ed23===_0x2cc7e0)break;else _0x2933e4['push'](_0x2933e4['shift']());}catch(_0x309be7){_0x2933e4['push'](_0x2933e4['shift']());}}}(a220_0x4386,0xb93d8));function a220_0x4386(){const _0x3641d9=['2285880VnQtXu','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20appcode\x20(set\x20via\x20`','244wRYIPq','12COliJe','765933tklyXR','\x20[args]\x20[flags]','\x20workspace\x20init`\x20or\x20--appcode).','7911Efyyku','get','2611239hDLBlb','generateCommandHelp','8870ZCzXAR','35JlzqxB','generateServiceHelp','60jxAhIR','58495xyNBdg','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','replace','79394yhBNHT','generateFullHelp','11264451wrkhpg'];a220_0x4386=function(){return _0x3641d9;};return a220_0x4386();}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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2502af=>serviceGroups[a220_0x36619d(0x177)](_0x2502af),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a220_0x36619d(0x186)+CLI_BIN_NAME+a220_0x36619d(0x175),'serviceUsageSuffix':a220_0x36619d(0x174)});function a220_0x5dd1(_0xed4324,_0x1b8bb7){_0xed4324=_0xed4324-0x172;const _0x4386cd=a220_0x4386();let _0x5dd1e8=_0x4386cd[_0xed4324];return _0x5dd1e8;}export function generateCommandHelp(_0x297cd8){const _0x2ade2f=a220_0x36619d,_0x50c2c3=generators[_0x2ade2f(0x179)](_0x297cd8);if(!requiresExplicitYes(_0x297cd8))return _0x50c2c3;return _0x50c2c3[_0x2ade2f(0x180)](_0x2ade2f(0x17f),_0x2ade2f(0x185));}export const generateServiceHelp=generators[a220_0x36619d(0x17c)];export const generateFullHelp=generators[a220_0x36619d(0x182)];
1
+ const a220_0x256782=a220_0x36a6;(function(_0x380cc1,_0x233c8d){const _0x277579=a220_0x36a6,_0x1addc1=_0x380cc1();while(!![]){try{const _0x30acc1=parseInt(_0x277579(0xbb))/0x1*(parseInt(_0x277579(0xba))/0x2)+-parseInt(_0x277579(0xc2))/0x3+-parseInt(_0x277579(0xc9))/0x4*(-parseInt(_0x277579(0xcd))/0x5)+parseInt(_0x277579(0xc3))/0x6+-parseInt(_0x277579(0xbf))/0x7*(parseInt(_0x277579(0xc6))/0x8)+parseInt(_0x277579(0xcb))/0x9*(parseInt(_0x277579(0xc0))/0xa)+-parseInt(_0x277579(0xbc))/0xb;if(_0x30acc1===_0x233c8d)break;else _0x1addc1['push'](_0x1addc1['shift']());}catch(_0x2391ae){_0x1addc1['push'](_0x1addc1['shift']());}}}(a220_0x19f6,0xa2c47));function a220_0x19f6(){const _0x21c7cf=['generateServiceHelp','22424PblxkY','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','\x20[args]\x20[flags]','3868xPZPXu','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','9ueBuQu','generateCommandHelp','1085YuLnUu','82KOcmCp','19595NnRwgp','1176835fYVIdP','Requires\x20appcode\x20(set\x20via\x20`','\x20workspace\x20init`\x20or\x20--appcode).','2982wlNYKW','12588400OAHRcs','replace','1583307FYyGGH','1340718HZwRYv','get'];a220_0x19f6=function(){return _0x21c7cf;};return a220_0x19f6();}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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x5b45bb=>serviceGroups[a220_0x256782(0xc4)](_0x5b45bb),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a220_0x256782(0xbd)+CLI_BIN_NAME+a220_0x256782(0xbe),'serviceUsageSuffix':a220_0x256782(0xc8)});function a220_0x36a6(_0x2765c2,_0x1ed3c0){_0x2765c2=_0x2765c2-0xba;const _0x19f6b3=a220_0x19f6();let _0x36a6fc=_0x19f6b3[_0x2765c2];return _0x36a6fc;}export function generateCommandHelp(_0x5bcef2){const _0x51df03=a220_0x256782,_0x501818=generators[_0x51df03(0xcc)](_0x5bcef2);if(!requiresExplicitYes(_0x5bcef2))return _0x501818;return _0x501818[_0x51df03(0xc1)](_0x51df03(0xc7),_0x51df03(0xca));}export const generateServiceHelp=generators[a220_0x256782(0xc5)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x4e329b,_0xd876c7){var _0xd6e1d5=a221_0x5a1e,_0x1cb3df=_0x4e329b();while(!![]){try{var _0x43d732=parseInt(_0xd6e1d5(0x83))/0x1+parseInt(_0xd6e1d5(0x89))/0x2+parseInt(_0xd6e1d5(0x85))/0x3+parseInt(_0xd6e1d5(0x87))/0x4*(-parseInt(_0xd6e1d5(0x84))/0x5)+-parseInt(_0xd6e1d5(0x86))/0x6+-parseInt(_0xd6e1d5(0x88))/0x7+-parseInt(_0xd6e1d5(0x81))/0x8*(-parseInt(_0xd6e1d5(0x82))/0x9);if(_0x43d732===_0xd876c7)break;else _0x1cb3df['push'](_0x1cb3df['shift']());}catch(_0x45beda){_0x1cb3df['push'](_0x1cb3df['shift']());}}}(a221_0x242c,0xb2269));function a221_0x242c(){var _0x111605=['4jceAtQ','5715346PtDMYK','739298Vhxzbr','32EQiphs','2440188kfppth','1131675RboOKX','4134265KQARnn','1926894IFqFXS','5130684ymSaPP'];a221_0x242c=function(){return _0x111605;};return a221_0x242c();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a221_0x5a1e(_0xc4a7cc,_0x503179){_0xc4a7cc=_0xc4a7cc-0x81;var _0x242cc1=a221_0x242c();var _0x5a1e42=_0x242cc1[_0xc4a7cc];return _0x5a1e42;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x55580f,_0x2af841){var _0x255f7c=a221_0x1897,_0x4d464e=_0x55580f();while(!![]){try{var _0x5f1413=parseInt(_0x255f7c(0x15e))/0x1+parseInt(_0x255f7c(0x15d))/0x2+-parseInt(_0x255f7c(0x159))/0x3+parseInt(_0x255f7c(0x15f))/0x4*(-parseInt(_0x255f7c(0x160))/0x5)+parseInt(_0x255f7c(0x15c))/0x6*(parseInt(_0x255f7c(0x162))/0x7)+-parseInt(_0x255f7c(0x15b))/0x8+-parseInt(_0x255f7c(0x15a))/0x9*(-parseInt(_0x255f7c(0x161))/0xa);if(_0x5f1413===_0x2af841)break;else _0x4d464e['push'](_0x4d464e['shift']());}catch(_0x427e2a){_0x4d464e['push'](_0x4d464e['shift']());}}}(a221_0x36a5,0x54074));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a221_0x36a5(){var _0x1876d4=['15Indhix','24140uoeClj','110341WoBTCx','1163295atBcAr','1629nECKHE','336080EmXNLl','258XdEtcA','243744yHIOGJ','18867IzxEdl','642036onsQCD'];a221_0x36a5=function(){return _0x1876d4;};return a221_0x36a5();}function a221_0x1897(_0x4d01b7,_0x42123d){_0x4d01b7=_0x4d01b7-0x159;var _0x36a5ba=a221_0x36a5();var _0x1897a1=_0x36a5ba[_0x4d01b7];return _0x1897a1;}export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x15db5d,_0x58fe70){const _0x39c95f=a222_0x281b,_0x54e417=_0x15db5d();while(!![]){try{const _0x42731e=-parseInt(_0x39c95f(0x131))/0x1+-parseInt(_0x39c95f(0x142))/0x2*(-parseInt(_0x39c95f(0x134))/0x3)+parseInt(_0x39c95f(0x137))/0x4+-parseInt(_0x39c95f(0x133))/0x5*(-parseInt(_0x39c95f(0x13f))/0x6)+parseInt(_0x39c95f(0x147))/0x7+parseInt(_0x39c95f(0x132))/0x8*(-parseInt(_0x39c95f(0x149))/0x9)+parseInt(_0x39c95f(0x13c))/0xa*(parseInt(_0x39c95f(0x144))/0xb);if(_0x42731e===_0x58fe70)break;else _0x54e417['push'](_0x54e417['shift']());}catch(_0x1285b8){_0x54e417['push'](_0x54e417['shift']());}}}(a222_0x5769,0x3c508));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a222_0x5769(){const _0x23f1a3=['13572ajDfld','pretty','update','endsWith','json','423531wvKXxr','2584oOzYps','653045rTPTWg','141YoMagq','risk','_notice','657336eTYuBf','data','hint','message','code','7602370buhGvY','format','jq:\x20','6usyLlP','error','jqFilter','2700XkVsZd','stringify','11vsyTYx','url','command','273231KOhNjI','stdout'];a222_0x5769=function(){return _0x23f1a3;};return a222_0x5769();}function a222_0x281b(_0x50f1c1,_0x46a1e8){_0x50f1c1=_0x50f1c1-0x131;const _0x57691d=a222_0x5769();let _0x281b1a=_0x57691d[_0x50f1c1];return _0x281b1a;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x498a9d,_0x396d73){const _0x12eaf6=a222_0x281b,_0x4ac4f4=_0x498a9d[_0x12eaf6(0x136)],{_notice:_0x47c6fa,..._0x1e2803}=_0x498a9d;void _0x47c6fa,baseFormatOutput(_0x1e2803,_0x396d73),_0x396d73[_0x12eaf6(0x13d)]==='pretty'&&printPrettyNotice(_0x4ac4f4);}export function formatCliError(_0x6c441c,_0x3b2867){const _0x41daf1=a222_0x281b;if(_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14a))return![];const _0x21c535=_0x6c441c[_0x41daf1(0x138)],_0x3aafc5={'ok':![],'command':_0x3b2867[_0x41daf1(0x146)],'risk':_0x3b2867[_0x41daf1(0x135)],'data':_0x21c535??null,'error':{'code':_0x6c441c['code'],'message':_0x6c441c[_0x41daf1(0x13a)],..._0x6c441c[_0x41daf1(0x139)]?{'hint':_0x6c441c['hint']}:{}}},_0x21f6d0=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x3aafc5,null,0x2):JSON[_0x41daf1(0x143)](_0x3aafc5);let _0x439f8f=_0x21f6d0;if(_0x3b2867[_0x41daf1(0x141)]?.['trim']())try{_0x439f8f=applyJqFilter(_0x21f6d0,_0x3b2867['jqFilter']);}catch(_0x4af5ff){const _0x35172e=_0x4af5ff instanceof CliError?_0x4af5ff:CliErrors['validation'](_0x41daf1(0x13e)+(_0x4af5ff instanceof Error?_0x4af5ff[_0x41daf1(0x13a)]:String(_0x4af5ff))),_0x5f19d0={..._0x3aafc5,'error':{'code':_0x35172e[_0x41daf1(0x13b)],'message':_0x35172e[_0x41daf1(0x13a)],..._0x35172e[_0x41daf1(0x139)]?{'hint':_0x35172e[_0x41daf1(0x139)]}:{},'cause':_0x3aafc5[_0x41daf1(0x140)]}};_0x439f8f=_0x3b2867[_0x41daf1(0x13d)]===_0x41daf1(0x14d)?JSON[_0x41daf1(0x143)](_0x5f19d0,null,0x2):JSON[_0x41daf1(0x143)](_0x5f19d0);}return process[_0x41daf1(0x148)]['write'](_0x439f8f[_0x41daf1(0x14c)]('\x0a')?_0x439f8f:_0x439f8f+'\x0a'),!![];}function printPrettyNotice(_0x27cb16){const _0x2642c6=a222_0x281b;if(!_0x27cb16?.[_0x2642c6(0x14b)])return;console['error'](_0x27cb16['update']['message']+'\x20('+_0x27cb16['update'][_0x2642c6(0x145)]+')');}
1
+ (function(_0x14633c,_0x2c993a){const _0x1b9ee5=a222_0x4caf,_0x322e13=_0x14633c();while(!![]){try{const _0x342614=-parseInt(_0x1b9ee5(0x133))/0x1*(-parseInt(_0x1b9ee5(0x123))/0x2)+parseInt(_0x1b9ee5(0x132))/0x3+parseInt(_0x1b9ee5(0x130))/0x4+-parseInt(_0x1b9ee5(0x134))/0x5+-parseInt(_0x1b9ee5(0x121))/0x6*(-parseInt(_0x1b9ee5(0x12d))/0x7)+parseInt(_0x1b9ee5(0x11f))/0x8+-parseInt(_0x1b9ee5(0x127))/0x9;if(_0x342614===_0x2c993a)break;else _0x322e13['push'](_0x322e13['shift']());}catch(_0x2d0704){_0x322e13['push'](_0x322e13['shift']());}}}(a222_0x268c,0xf1374));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a222_0x4caf(_0x19fbb9,_0x1209f2){_0x19fbb9=_0x19fbb9-0x11e;const _0x268c35=a222_0x268c();let _0x4caf11=_0x268c35[_0x19fbb9];return _0x4caf11;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x1ccf38,_0x4a5ef4){const _0x30a5b7=a222_0x4caf,_0xb36136=_0x1ccf38[_0x30a5b7(0x12c)],{_notice:_0x225299,..._0x3f8343}=_0x1ccf38;void _0x225299,baseFormatOutput(_0x3f8343,_0x4a5ef4),_0x4a5ef4['format']==='pretty'&&printPrettyNotice(_0xb36136);}function a222_0x268c(){const _0x13ca44=['code','29900196NbRfip','error','endsWith','json','hint','_notice','754838NoGhWl','jq:\x20','stringify','7590160rtSLCa','message','1759170yGBMdd','278515NXAyPV','5959910eYCnex','update','8115656vhYEwn','url','96eRFJlq','format','2IjGxpG','validation','command'];a222_0x268c=function(){return _0x13ca44;};return a222_0x268c();}export function formatCliError(_0x551119,_0x55ba39){const _0x5f09c1=a222_0x4caf;if(_0x55ba39['format']==='pretty')return![];const _0x1b261a=_0x551119['data'],_0x7af43f={'ok':![],'command':_0x55ba39[_0x5f09c1(0x125)],'risk':_0x55ba39['risk'],'data':_0x1b261a??null,'error':{'code':_0x551119[_0x5f09c1(0x126)],'message':_0x551119[_0x5f09c1(0x131)],..._0x551119[_0x5f09c1(0x12b)]?{'hint':_0x551119['hint']}:{}}},_0x1e67e3=_0x55ba39[_0x5f09c1(0x122)]===_0x5f09c1(0x12a)?JSON[_0x5f09c1(0x12f)](_0x7af43f,null,0x2):JSON[_0x5f09c1(0x12f)](_0x7af43f);let _0x2b74ac=_0x1e67e3;if(_0x55ba39['jqFilter']?.['trim']())try{_0x2b74ac=applyJqFilter(_0x1e67e3,_0x55ba39['jqFilter']);}catch(_0x56522e){const _0x47ee0c=_0x56522e instanceof CliError?_0x56522e:CliErrors[_0x5f09c1(0x124)](_0x5f09c1(0x12e)+(_0x56522e instanceof Error?_0x56522e[_0x5f09c1(0x131)]:String(_0x56522e))),_0x368535={..._0x7af43f,'error':{'code':_0x47ee0c['code'],'message':_0x47ee0c[_0x5f09c1(0x131)],..._0x47ee0c['hint']?{'hint':_0x47ee0c['hint']}:{},'cause':_0x7af43f[_0x5f09c1(0x128)]}};_0x2b74ac=_0x55ba39[_0x5f09c1(0x122)]===_0x5f09c1(0x12a)?JSON[_0x5f09c1(0x12f)](_0x368535,null,0x2):JSON[_0x5f09c1(0x12f)](_0x368535);}return process['stdout']['write'](_0x2b74ac[_0x5f09c1(0x129)]('\x0a')?_0x2b74ac:_0x2b74ac+'\x0a'),!![];}function printPrettyNotice(_0x21b993){const _0xe925ca=a222_0x4caf;if(!_0x21b993?.[_0xe925ca(0x11e)])return;console[_0xe925ca(0x128)](_0x21b993[_0xe925ca(0x11e)][_0xe925ca(0x131)]+'\x20('+_0x21b993[_0xe925ca(0x11e)][_0xe925ca(0x120)]+')');}
@@ -1 +1 @@
1
- (function(_0x55454f,_0x2e8ad5){var _0x1d092d=a223_0x4904,_0x1dd53c=_0x55454f();while(!![]){try{var _0x43fca0=-parseInt(_0x1d092d(0x87))/0x1*(parseInt(_0x1d092d(0x8c))/0x2)+-parseInt(_0x1d092d(0x8b))/0x3+-parseInt(_0x1d092d(0x8e))/0x4+-parseInt(_0x1d092d(0x8f))/0x5+parseInt(_0x1d092d(0x8a))/0x6+parseInt(_0x1d092d(0x89))/0x7*(-parseInt(_0x1d092d(0x88))/0x8)+parseInt(_0x1d092d(0x8d))/0x9;if(_0x43fca0===_0x2e8ad5)break;else _0x1dd53c['push'](_0x1dd53c['shift']());}catch(_0x29d255){_0x1dd53c['push'](_0x1dd53c['shift']());}}}(a223_0x1c57,0xd853f));function a223_0x4904(_0x58b668,_0x4d96f6){_0x58b668=_0x58b668-0x87;var _0x1c577a=a223_0x1c57();var _0x490448=_0x1c577a[_0x58b668];return _0x490448;}function a223_0x1c57(){var _0x5b3ec5=['8rHyPir','1747613bdaFYY','9304686TWkcUP','3726429hNGIsE','4oeQZla','22171131oCOPLz','2676616KNlnpK','2236095uOoxya','259993AnbvHp'];a223_0x1c57=function(){return _0x5b3ec5;};return a223_0x1c57();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a223_0x348a(_0x1d57fa,_0x3a2ba8){_0x1d57fa=_0x1d57fa-0x1c1;var _0x46164f=a223_0x4616();var _0x348a86=_0x46164f[_0x1d57fa];return _0x348a86;}function a223_0x4616(){var _0x10052f=['81WMFfUd','10cCdlCW','249965SIOlym','1972atpTch','183180uQngWz','1947ZuLlAU','1049772NXOASs','1761160QFplzU','1724142jrontg','39880vfHjUA'];a223_0x4616=function(){return _0x10052f;};return a223_0x4616();}(function(_0x405860,_0xc7d1e3){var _0x2e1d9c=a223_0x348a,_0x3d7292=_0x405860();while(!![]){try{var _0x40baeb=-parseInt(_0x2e1d9c(0x1c7))/0x1+-parseInt(_0x2e1d9c(0x1c9))/0x2+-parseInt(_0x2e1d9c(0x1ca))/0x3*(-parseInt(_0x2e1d9c(0x1c8))/0x4)+-parseInt(_0x2e1d9c(0x1c6))/0x5*(-parseInt(_0x2e1d9c(0x1c1))/0x6)+-parseInt(_0x2e1d9c(0x1c3))/0x7+-parseInt(_0x2e1d9c(0x1c4))/0x8*(parseInt(_0x2e1d9c(0x1c5))/0x9)+parseInt(_0x2e1d9c(0x1c2))/0xa;if(_0x40baeb===_0xc7d1e3)break;else _0x3d7292['push'](_0x3d7292['shift']());}catch(_0x2a33a5){_0x3d7292['push'](_0x3d7292['shift']());}}}(a223_0x4616,0x34117));export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x14be5b,_0x5dc341){const _0x52c9a0=a224_0x37cc,_0x1bd699=_0x14be5b();while(!![]){try{const _0x45a0a7=parseInt(_0x52c9a0(0x8f))/0x1+parseInt(_0x52c9a0(0x93))/0x2+parseInt(_0x52c9a0(0x8a))/0x3*(-parseInt(_0x52c9a0(0x8e))/0x4)+parseInt(_0x52c9a0(0x81))/0x5*(parseInt(_0x52c9a0(0x90))/0x6)+-parseInt(_0x52c9a0(0x7c))/0x7+-parseInt(_0x52c9a0(0x8d))/0x8*(-parseInt(_0x52c9a0(0x7d))/0x9)+-parseInt(_0x52c9a0(0x88))/0xa*(-parseInt(_0x52c9a0(0x92))/0xb);if(_0x45a0a7===_0x5dc341)break;else _0x1bd699['push'](_0x1bd699['shift']());}catch(_0x3a6f41){_0x1bd699['push'](_0x1bd699['shift']());}}}(a224_0x4810,0x65798));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a224_0x37cc(_0x4d26bb,_0x65514e){_0x4d26bb=_0x4d26bb-0x7a;const _0x4810e6=a224_0x4810();let _0x37ccb9=_0x4810e6[_0x4d26bb];return _0x37ccb9;}function a224_0x4810(){const _0x740c94=['code','No\x20api.ts\x20found\x20in\x20','25295SqOFaa','validation','name','some','type','map','Unknown\x20alias\x20\x22','487310uhxfal','alias','3JdTukx','\x22.\x20','string','310328IImSun','1992892HUnUts','460229YRsFcP','582YmCJTm','join','33XFDaaJ','607138ErUqmw','flags','.\x20Run\x20`','4494105nztjkU','36mbhvMI','length'];a224_0x4810=function(){return _0x740c94;};return a224_0x4810();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1fee23,_0x12e883,_0x152d02,_0x34afa7){const _0x4df740=a224_0x37cc,_0x2d5a3e=_0x1fee23['flags'][_0x4df740(0x84)](_0x465e89=>_0x465e89[_0x4df740(0x83)]===_0x4df740(0x7f)&&_0x465e89[_0x4df740(0x85)]===_0x4df740(0x8c)),_0x57de47=_0x1fee23[_0x4df740(0x7a)][_0x4df740(0x84)](_0x1c1b53=>_0x1c1b53['name']===_0x4df740(0x89)&&_0x1c1b53['type']===_0x4df740(0x8c));if(!_0x2d5a3e||!_0x57de47)return;const _0x1a0468=_0x12e883['code']?String(_0x12e883['code']):'',_0x550d86=_0x12e883[_0x4df740(0x89)]?String(_0x12e883['alias']):'';if(!_0x1a0468&&!_0x550d86)throw CliErrors[_0x4df740(0x82)]('`'+_0x34afa7+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x550d86&&!_0x1a0468){const _0x57d7e9=resolveAlias(_0x152d02,_0x550d86);if(!_0x57d7e9){const _0x41a6d3=listAliases(_0x152d02)[_0x4df740(0x86)](_0x41860b=>_0x41860b['alias']),_0x1cc426=_0x41a6d3[_0x4df740(0x7e)]?'Available\x20aliases:\x20'+_0x41a6d3[_0x4df740(0x91)](',\x20'):_0x4df740(0x80)+_0x152d02+_0x4df740(0x7b)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x4df740(0x82)](_0x4df740(0x87)+_0x550d86+_0x4df740(0x8b)+_0x1cc426);}_0x12e883[_0x4df740(0x7f)]=_0x57d7e9;}}
1
+ (function(_0x5df49e,_0x3df5d0){const _0x35b9a0=a224_0x5246,_0x7b2080=_0x5df49e();while(!![]){try{const _0x43f822=-parseInt(_0x35b9a0(0x12d))/0x1*(parseInt(_0x35b9a0(0x11a))/0x2)+parseInt(_0x35b9a0(0x127))/0x3*(-parseInt(_0x35b9a0(0x115))/0x4)+parseInt(_0x35b9a0(0x12a))/0x5*(-parseInt(_0x35b9a0(0x120))/0x6)+-parseInt(_0x35b9a0(0x116))/0x7*(parseInt(_0x35b9a0(0x117))/0x8)+-parseInt(_0x35b9a0(0x125))/0x9+parseInt(_0x35b9a0(0x11d))/0xa*(-parseInt(_0x35b9a0(0x11b))/0xb)+parseInt(_0x35b9a0(0x12c))/0xc*(parseInt(_0x35b9a0(0x12e))/0xd);if(_0x43f822===_0x3df5d0)break;else _0x7b2080['push'](_0x7b2080['shift']());}catch(_0x14dee8){_0x7b2080['push'](_0x7b2080['shift']());}}}(a224_0x7b84,0x85be8));function a224_0x7b84(){const _0xf26a06=['Available\x20aliases:\x20','7608933yoEMwV','map','146427ZWSkvt','type','Unknown\x20alias\x20\x22','16150zwKifg','No\x20api.ts\x20found\x20in\x20','2196roevyA','1SouZSM','310375ouTqCi','validation','string','flags','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x22.\x20','4umxcMl','3017042kpxypI','8XTKxqX','\x20api\x20pull`\x20first.','.\x20Run\x20`','1838762znvKxc','7999046SwTWQx','some','10FTBHkX','code','length','1578IUICLb','name','alias','join'];a224_0x7b84=function(){return _0xf26a06;};return a224_0x7b84();}function a224_0x5246(_0x2dbaca,_0x7cf76a){_0x2dbaca=_0x2dbaca-0x114;const _0x7b8434=a224_0x7b84();let _0x52466c=_0x7b8434[_0x2dbaca];return _0x52466c;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x12da96,_0x85c651,_0x14f748,_0x372aad){const _0x49d622=a224_0x5246,_0x57d69b=_0x12da96[_0x49d622(0x131)][_0x49d622(0x11c)](_0x1680a3=>_0x1680a3[_0x49d622(0x121)]===_0x49d622(0x11e)&&_0x1680a3[_0x49d622(0x128)]===_0x49d622(0x130)),_0x328099=_0x12da96[_0x49d622(0x131)][_0x49d622(0x11c)](_0x225fd3=>_0x225fd3['name']===_0x49d622(0x122)&&_0x225fd3[_0x49d622(0x128)]===_0x49d622(0x130));if(!_0x57d69b||!_0x328099)return;const _0x513181=_0x85c651[_0x49d622(0x11e)]?String(_0x85c651[_0x49d622(0x11e)]):'',_0x43f9e5=_0x85c651[_0x49d622(0x122)]?String(_0x85c651[_0x49d622(0x122)]):'';if(!_0x513181&&!_0x43f9e5)throw CliErrors[_0x49d622(0x12f)]('`'+_0x372aad+_0x49d622(0x132));if(_0x43f9e5&&!_0x513181){const _0x5a36ee=resolveAlias(_0x14f748,_0x43f9e5);if(!_0x5a36ee){const _0x553c8b=listAliases(_0x14f748)[_0x49d622(0x126)](_0x5a3ae0=>_0x5a3ae0['alias']),_0x2e1a98=_0x553c8b[_0x49d622(0x11f)]?_0x49d622(0x124)+_0x553c8b[_0x49d622(0x123)](',\x20'):_0x49d622(0x12b)+_0x14f748+_0x49d622(0x119)+CLI_BIN_NAME+_0x49d622(0x118);throw CliErrors['validation'](_0x49d622(0x129)+_0x43f9e5+_0x49d622(0x114)+_0x2e1a98);}_0x85c651[_0x49d622(0x11e)]=_0x5a36ee;}}
@@ -1 +1 @@
1
- function a225_0x1f9e(_0x39bff4,_0x4da228){_0x39bff4=_0x39bff4-0xc1;const _0x5848c8=a225_0x5848();let _0x1f9e7f=_0x5848c8[_0x39bff4];return _0x1f9e7f;}const a225_0x58486a=a225_0x1f9e;(function(_0x1003b4,_0x200c80){const _0x5883c3=a225_0x1f9e,_0x219b72=_0x1003b4();while(!![]){try{const _0x49a392=parseInt(_0x5883c3(0xfa))/0x1*(parseInt(_0x5883c3(0xd7))/0x2)+parseInt(_0x5883c3(0xfd))/0x3+parseInt(_0x5883c3(0xe8))/0x4*(-parseInt(_0x5883c3(0xf8))/0x5)+parseInt(_0x5883c3(0xc1))/0x6+-parseInt(_0x5883c3(0xc6))/0x7*(-parseInt(_0x5883c3(0xe1))/0x8)+parseInt(_0x5883c3(0x100))/0x9*(parseInt(_0x5883c3(0xd0))/0xa)+parseInt(_0x5883c3(0xe2))/0xb*(-parseInt(_0x5883c3(0xc5))/0xc);if(_0x49a392===_0x200c80)break;else _0x219b72['push'](_0x219b72['shift']());}catch(_0x2fb412){_0x219b72['push'](_0x219b72['shift']());}}}(a225_0x5848,0xb0e25));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 a225_0x295cbd}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x5e5fde){const _0x456e9a=a225_0x1f9e;return typeof _0x5e5fde==='string'&&_0x5e5fde['trim']()?_0x5e5fde[_0x456e9a(0xc9)]():undefined;}function resolveEnvAppCode(){const _0x284652=a225_0x1f9e,_0x3e5595=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3e5595)return{'name':_0x284652(0xdc),'value':_0x3e5595};const _0x2dbf43=stringFlag(process.env.LOVRABET_APPCODE);if(_0x2dbf43)return{'name':_0x284652(0xe0),'value':_0x2dbf43};return undefined;}function hasExplicitAppCode(_0x424b92,_0x274682){const _0x2ac2e2=a225_0x1f9e;return!!(stringFlag(_0x424b92[_0x2ac2e2(0x101)])||stringFlag(_0x274682[_0x2ac2e2(0x101)]));}function assertEnvAppCodeNotIgnored(_0xc26526,_0x1711ae,_0x2ff216){const _0x78b39=a225_0x1f9e;if(!_0x1711ae||_0x2ff216||_0xc26526===_0x1711ae[_0x78b39(0xcd)])return;const _0x44d10c=_0xc26526?_0x78b39(0xe5)+_0xc26526+'\x22.':_0x78b39(0xda);throw CliErrors[_0x78b39(0xf0)](_0x1711ae[_0x78b39(0xed)]+'='+_0x1711ae[_0x78b39(0xcd)]+_0x78b39(0xd2)+_0x44d10c+'\x20'+(_0x78b39(0xfc)+_0x1711ae['name']+'\x22.'));}export function createPipelineEnv(_0x36f774,_0x425d9b,_0x1d193e=[]){const _0xa5d171=a225_0x1f9e;return{'rawFlags':_0x425d9b,'args':_0x1d193e,'resolveAppCode':()=>_0x36f774['appCode'],'resolveCookie':()=>_0x36f774[_0xa5d171(0x105)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a225_0x295cbd(_0x425d9b),'defaultFormat':_0x36f774[_0xa5d171(0xd6)],'defaultPageSize':_0x36f774[_0xa5d171(0xcb)],'defaultVerbose':_0x36f774[_0xa5d171(0xe4)],'apiDir':_0x36f774[_0xa5d171(0xd8)],'riskLevel':_0x36f774[_0xa5d171(0xff)],'selectedAppName':_0x36f774[_0xa5d171(0xcf)],'mergedCli':{'defaultApp':_0x36f774[_0xa5d171(0xd1)],'currentApp':_0x36f774[_0xa5d171(0xef)],'appCode':_0x36f774[_0xa5d171(0xdb)],'apps':_0x36f774[_0xa5d171(0x104)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a225_0x58486a(0x107)](_0x4dde24=>PIPELINE_FLAG_NAMES[a225_0x58486a(0xe6)](_0x4dde24[a225_0x58486a(0xed)]))[a225_0x58486a(0xf1)](({name:_0x27f147,type:_0x3de7d0,description:_0x21726e})=>({'name':_0x27f147,'type':_0x3de7d0,'description':_0x21726e})),'formatOutput':formatOutput,'getCommandLabel'(_0x486acc){const _0x5f47e8=a225_0x58486a;return CLI_BIN_NAME+'\x20'+_0x486acc[_0x5f47e8(0xe3)]+'\x20'+_0x486acc[_0x5f47e8(0xc2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1c554d){const _0x3dd70f=a225_0x58486a;return CliErrors[_0x3dd70f(0xf0)](_0x1c554d);}},async 'prepare'(_0x1ff5a8,_0x4a3ae2,_0x1a69f3,_0x3de832){const _0x11bbe3=a225_0x58486a,_0x5ebb11=_0x4a3ae2['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x1ff5a8,_0x1a69f3,_0x5ebb11,_0x3de832);const _0x4a525e=resolveCommandAuthMode(_0x1ff5a8);let _0x5baa39='';if(_0x4a525e!==_0x11bbe3(0xf5)){_0x5baa39=_0x4a3ae2['resolveCookie']()||'';if(!_0x5baa39){if(_0x4a525e==='required')throw CliErrors[_0x11bbe3(0xd5)]();}else{const {setActiveCookie:_0x101902}=await import(_0x11bbe3(0xc8));_0x101902(_0x5baa39);}}const _0xc69b77=_0x4a3ae2[_0x11bbe3(0xd4)]()??'';if(_0x1ff5a8[_0x11bbe3(0xc4)]!==![]){assertEnvAppCodeNotIgnored(_0xc69b77,resolveEnvAppCode(),hasExplicitAppCode(_0x1a69f3,_0x4a3ae2[_0x11bbe3(0xe7)]));if(!_0xc69b77)throw CliErrors[_0x11bbe3(0xec)](_0x11bbe3(0xd9)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4a3ae2[_0x11bbe3(0xce)]},'numbers':{'pagesize':_0x4a3ae2[_0x11bbe3(0xea)]}},'extras':{'appCode':_0xc69b77,'cookie':_0x5baa39,'apiDomain':_0x4a3ae2[_0x11bbe3(0xeb)](),'apiDir':_0x5ebb11,'selectedAppName':_0x4a3ae2['selectedAppName'],'mergedCli':_0x4a3ae2[_0x11bbe3(0x108)]}};},async 'confirmHighRisk'({env:_0x385225,commandLabel:_0x23846f}){const _0x3a695b=a225_0x58486a;if(_0x385225[_0x3a695b(0xee)])throw CliErrors[_0x3a695b(0xf0)](_0x3a695b(0xf6)+_0x23846f+_0x3a695b(0xfe));await requireConfirmationPrompt({'lines':[_0x3a695b(0xf4)+_0x23846f,_0x3a695b(0xcc)],'createCancelledError':_0x564d69=>CliErrors[_0x3a695b(0xfb)](_0x564d69)});},async 'finalize'(){const _0xcb413b=a225_0x58486a,{clearActiveCookie:_0x9a6be1}=await import(_0xcb413b(0xc8));_0x9a6be1();}};export async function runCommand(_0x45f124,_0xb2d42e){const _0x22c279=a225_0x58486a;assertRejectedFlags(_0x45f124,_0xb2d42e[_0x22c279(0xe7)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x45f124)?withUpdateNotice(_0x45f124):_0x45f124,_0xb2d42e,runnerAdapter);}function assertRejectedFlags(_0x1ac90c,_0x2547b7){const _0x354f3e=a225_0x58486a;for(const _0x4be72c of _0x1ac90c['rejectedFlags']??[]){const _0x27fd79=GLOBAL_FLAGS[_0x354f3e(0xf3)](_0x3f4918=>_0x3f4918[_0x354f3e(0xed)]===_0x4be72c[_0x354f3e(0xed)]),_0x1e4741=new Set([_0x4be72c[_0x354f3e(0xed)],toCamelCase(_0x4be72c['name']),_0x27fd79?.[_0x354f3e(0x102)]]),_0x59bf69=[..._0x1e4741]['some'](_0x527b7c=>{if(!_0x527b7c)return![];const _0x54f64e=_0x2547b7[_0x527b7c];return _0x54f64e!==undefined&&_0x54f64e!==null&&_0x54f64e!==![];});if(_0x59bf69)throw CliErrors['validation'](_0x4be72c['message'],_0x4be72c['hint']);}}function toCamelCase(_0x3f042e){const _0x4acf5c=a225_0x58486a;return _0x3f042e[_0x4acf5c(0xc3)](/-([a-z])/g,(_0x43715d,_0x390995)=>_0x390995[_0x4acf5c(0xf9)]());}function shouldAttachUpdateNotice(_0x383035){const _0x346f67=a225_0x58486a;if(_0x383035[_0x346f67(0xf7)]===![])return![];return![_0x346f67(0xdd),_0x346f67(0xc7),_0x346f67(0x103)][_0x346f67(0xf2)](_0x383035[_0x346f67(0xe3)]);}function withUpdateNotice(_0x271474){return{..._0x271474,async 'execute'(_0x4e6e74){const _0x36da1a=a225_0x1f9e,_0x505961=shouldResolveUpdateNotice(_0x4e6e74)?resolveLatestUpdateNotice()[_0x36da1a(0xca)](()=>null):Promise[_0x36da1a(0xe9)](null),_0x5ef424=await _0x271474[_0x36da1a(0x106)](_0x4e6e74);return attachUpdateNotice(_0x5ef424,await _0x505961);}};}function a225_0x5848(){const _0xdf57b4=['resolve','defaultPageSize','resolveApiDomain','configMissing','name','isNonInteractive','currentApp','validation','map','includes','find','⚠\x20\x20High-risk\x20operation:\x20','none','High-risk\x20operation\x20`','hasFormat','104695qFrpQi','toUpperCase','1FKWOGs','cancelled','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','3112833GAelou','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','riskLevel','1023723qRlqnf','appcode','meowKey','doctor','apps','cookie','execute','filter','mergedCli','7162026rrhlVZ','command','replace','requiresAppCode','744ThUdJX','7YLycRT','schema','../core/api-client.js','trim','catch','pageSize','\x20\x20\x20Continue?\x20[y/N]\x20','value','defaultVerbose','explicitAppName','70lnfiHx','defaultApp','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','object','resolveAppCode','authRequired','format','2606494VCjHGe','apiDir','Set\x20appcode\x20via\x20`','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','appCode','RABETBASE_APPCODE','update','_notice','pretty','LOVRABET_APPCODE','920848hjhnGa','656524oILNzn','service','verbose','Current\x20resolved\x20appcode\x20is\x20\x22','has','rawFlags','4bQbHUs'];a225_0x5848=function(){return _0xdf57b4;};return a225_0x5848();}function shouldResolveUpdateNotice(_0x6a7833){const _0xf4ac30=a225_0x58486a;return _0x6a7833[_0xf4ac30(0xd6)]===_0xf4ac30(0xdf)&&!_0x6a7833['nonInteractive'];}function attachUpdateNotice(_0x22e90b,_0x4b7255){const _0xa5403f=a225_0x58486a;if(!_0x4b7255||!_0x22e90b||typeof _0x22e90b!==_0xa5403f(0xd3))return _0x22e90b;const _0x55e669=_0x22e90b,_0x21dddc=typeof _0x55e669['_notice']===_0xa5403f(0xd3)&&_0x55e669[_0xa5403f(0xde)]!==null?_0x55e669[_0xa5403f(0xde)]:{};return{..._0x55e669,'_notice':{..._0x21dddc,'update':_0x4b7255}};}
1
+ const a225_0x14c925=a225_0x5060;(function(_0x5a7f13,_0x4b7d39){const _0x2d6361=a225_0x5060,_0x4dd1b1=_0x5a7f13();while(!![]){try{const _0x35d642=-parseInt(_0x2d6361(0x212))/0x1*(-parseInt(_0x2d6361(0x20c))/0x2)+parseInt(_0x2d6361(0x201))/0x3+parseInt(_0x2d6361(0x223))/0x4*(parseInt(_0x2d6361(0x22e))/0x5)+-parseInt(_0x2d6361(0x208))/0x6+-parseInt(_0x2d6361(0x1fd))/0x7+-parseInt(_0x2d6361(0x22d))/0x8+parseInt(_0x2d6361(0x216))/0x9;if(_0x35d642===_0x4b7d39)break;else _0x4dd1b1['push'](_0x4dd1b1['shift']());}catch(_0x49fd33){_0x4dd1b1['push'](_0x4dd1b1['shift']());}}}(a225_0x5ea0,0xf1ebb));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a225_0x5060(_0x735430,_0x52beb2){_0x735430=_0x735430-0x1f1;const _0x5ea028=a225_0x5ea0();let _0x506072=_0x5ea028[_0x735430];return _0x506072;}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 a225_0x252e9b}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x44ef6c){const _0x4efedd=a225_0x5060;return typeof _0x44ef6c==='string'&&_0x44ef6c[_0x4efedd(0x21b)]()?_0x44ef6c[_0x4efedd(0x21b)]():undefined;}function resolveEnvAppCode(){const _0x392b93=a225_0x5060,_0x183f68=stringFlag(process.env.RABETBASE_APPCODE);if(_0x183f68)return{'name':_0x392b93(0x209),'value':_0x183f68};const _0x3410e9=stringFlag(process.env.LOVRABET_APPCODE);if(_0x3410e9)return{'name':'LOVRABET_APPCODE','value':_0x3410e9};return undefined;}function hasExplicitAppCode(_0x541bf5,_0x33e389){const _0x40a1e1=a225_0x5060;return!!(stringFlag(_0x541bf5[_0x40a1e1(0x21d)])||stringFlag(_0x33e389[_0x40a1e1(0x21d)]));}function assertEnvAppCodeNotIgnored(_0xf14838,_0x11171a,_0x224ce7){const _0x4a391b=a225_0x5060;if(!_0x11171a||_0x224ce7||_0xf14838===_0x11171a[_0x4a391b(0x206)])return;const _0x4ad434=_0xf14838?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0xf14838+'\x22.':_0x4a391b(0x1f7);throw CliErrors[_0x4a391b(0x20f)](_0x11171a['name']+'='+_0x11171a['value']+_0x4a391b(0x218)+_0x4ad434+'\x20'+(_0x4a391b(0x20b)+_0x11171a['name']+'\x22.'));}export function createPipelineEnv(_0x27edc1,_0x1b69e1,_0x28bb86=[]){const _0x46e4e2=a225_0x5060;return{'rawFlags':_0x1b69e1,'args':_0x28bb86,'resolveAppCode':()=>_0x27edc1[_0x46e4e2(0x1f9)],'resolveCookie':()=>_0x27edc1['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a225_0x252e9b(_0x1b69e1),'defaultFormat':_0x27edc1[_0x46e4e2(0x1fc)],'defaultPageSize':_0x27edc1['pageSize'],'defaultVerbose':_0x27edc1[_0x46e4e2(0x1f1)],'apiDir':_0x27edc1[_0x46e4e2(0x1f6)],'riskLevel':_0x27edc1[_0x46e4e2(0x204)],'selectedAppName':_0x27edc1[_0x46e4e2(0x205)],'mergedCli':{'defaultApp':_0x27edc1['defaultApp'],'currentApp':_0x27edc1['currentApp'],'appCode':_0x27edc1[_0x46e4e2(0x1f9)],'apps':_0x27edc1[_0x46e4e2(0x1ff)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x42a1a9=>PIPELINE_FLAG_NAMES['has'](_0x42a1a9[a225_0x14c925(0x228)]))[a225_0x14c925(0x21c)](({name:_0x348cf5,type:_0x3f77d0,description:_0x24429c})=>({'name':_0x348cf5,'type':_0x3f77d0,'description':_0x24429c})),'formatOutput':formatOutput,'getCommandLabel'(_0x15d745){const _0x1ccdc6=a225_0x14c925;return CLI_BIN_NAME+'\x20'+_0x15d745[_0x1ccdc6(0x20e)]+'\x20'+_0x15d745['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1a4f4a){return CliErrors['validation'](_0x1a4f4a);}},async 'prepare'(_0x30a826,_0x28a723,_0x562aee,_0x5847b9){const _0x520acc=a225_0x14c925,_0x465bbc=_0x28a723[_0x520acc(0x1f6)]||DEFAULT_API_DIR;resolveAliasToCode(_0x30a826,_0x562aee,_0x465bbc,_0x5847b9);const _0x2fdcf7=resolveCommandAuthMode(_0x30a826);let _0x3beb23='';if(_0x2fdcf7!==_0x520acc(0x22a)){_0x3beb23=_0x28a723[_0x520acc(0x1f3)]()||'';if(!_0x3beb23){if(_0x2fdcf7===_0x520acc(0x215))throw CliErrors[_0x520acc(0x21a)]();}else{const {setActiveCookie:_0x40c6ed}=await import(_0x520acc(0x1fa));_0x40c6ed(_0x3beb23);}}const _0xd5d6be=_0x28a723[_0x520acc(0x210)]()??'';if(_0x30a826[_0x520acc(0x21f)]!==![]){assertEnvAppCodeNotIgnored(_0xd5d6be,resolveEnvAppCode(),hasExplicitAppCode(_0x562aee,_0x28a723[_0x520acc(0x20a)]));if(!_0xd5d6be)throw CliErrors[_0x520acc(0x202)](_0x520acc(0x226)+CLI_BIN_NAME+_0x520acc(0x200));}return{'defaults':{'booleans':{'verbose':_0x28a723[_0x520acc(0x219)]},'numbers':{'pagesize':_0x28a723[_0x520acc(0x213)]}},'extras':{'appCode':_0xd5d6be,'cookie':_0x3beb23,'apiDomain':_0x28a723[_0x520acc(0x214)](),'apiDir':_0x465bbc,'selectedAppName':_0x28a723[_0x520acc(0x225)],'mergedCli':_0x28a723[_0x520acc(0x1f2)]}};},async 'confirmHighRisk'({env:_0xb971b4,commandLabel:_0x313c19}){const _0x427a6b=a225_0x14c925;if(_0xb971b4['isNonInteractive'])throw CliErrors[_0x427a6b(0x20f)]('High-risk\x20operation\x20`'+_0x313c19+_0x427a6b(0x22b));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x313c19,_0x427a6b(0x21e)],'createCancelledError':_0x1143e5=>CliErrors[_0x427a6b(0x1f8)](_0x1143e5)});},async 'finalize'(){const {clearActiveCookie:_0x4c14bf}=await import('../core/api-client.js');_0x4c14bf();}};export async function runCommand(_0x221434,_0x3b686d){const _0x5a9636=a225_0x14c925;assertRejectedFlags(_0x221434,_0x3b686d[_0x5a9636(0x20a)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x221434)?withUpdateNotice(_0x221434):_0x221434,_0x3b686d,runnerAdapter);}function assertRejectedFlags(_0x1a41e3,_0x56d121){const _0x3b4237=a225_0x14c925;for(const _0x13f795 of _0x1a41e3[_0x3b4237(0x1fb)]??[]){const _0x556848=GLOBAL_FLAGS['find'](_0xb74082=>_0xb74082[_0x3b4237(0x228)]===_0x13f795[_0x3b4237(0x228)]),_0x44911a=new Set([_0x13f795[_0x3b4237(0x228)],toCamelCase(_0x13f795[_0x3b4237(0x228)]),_0x556848?.[_0x3b4237(0x20d)]]),_0x35a4ed=[..._0x44911a][_0x3b4237(0x1f4)](_0x37cb08=>{if(!_0x37cb08)return![];const _0x301812=_0x56d121[_0x37cb08];return _0x301812!==undefined&&_0x301812!==null&&_0x301812!==![];});if(_0x35a4ed)throw CliErrors[_0x3b4237(0x20f)](_0x13f795['message'],_0x13f795[_0x3b4237(0x217)]);}}function toCamelCase(_0x53cc10){const _0x300a75=a225_0x14c925;return _0x53cc10[_0x300a75(0x224)](/-([a-z])/g,(_0x3c14b9,_0x3887f8)=>_0x3887f8[_0x300a75(0x1f5)]());}function shouldAttachUpdateNotice(_0x170eb1){const _0x5aec4c=a225_0x14c925;if(_0x170eb1[_0x5aec4c(0x221)]===![])return![];return![_0x5aec4c(0x229),_0x5aec4c(0x1fe),_0x5aec4c(0x211)][_0x5aec4c(0x207)](_0x170eb1[_0x5aec4c(0x20e)]);}function withUpdateNotice(_0x3f5077){return{..._0x3f5077,async 'execute'(_0x22ac83){const _0x5a7366=a225_0x5060,_0x200fba=shouldResolveUpdateNotice(_0x22ac83)?resolveLatestUpdateNotice()[_0x5a7366(0x22c)](()=>null):Promise[_0x5a7366(0x227)](null),_0x31037a=await _0x3f5077['execute'](_0x22ac83);return attachUpdateNotice(_0x31037a,await _0x200fba);}};}function shouldResolveUpdateNotice(_0x6c0e9f){const _0x289b0c=a225_0x14c925;return _0x6c0e9f[_0x289b0c(0x1fc)]===_0x289b0c(0x222)&&!_0x6c0e9f['nonInteractive'];}function a225_0x5ea0(){const _0x27c5c6=['_notice','riskLevel','explicitAppName','value','includes','6168996kMWinb','RABETBASE_APPCODE','rawFlags','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','408758FQLbWQ','meowKey','service','validation','resolveAppCode','doctor','1nydTHW','defaultPageSize','resolveApiDomain','required','34409997UYXjPr','hint','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','defaultVerbose','authRequired','trim','map','appcode','\x20\x20\x20Continue?\x20[y/N]\x20','requiresAppCode','object','hasFormat','pretty','20ODpPwV','replace','selectedAppName','Set\x20appcode\x20via\x20`','resolve','name','update','none','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','catch','3671760nlQAsp','158995hfnOOn','verbose','mergedCli','resolveCookie','some','toUpperCase','apiDir','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','cancelled','appCode','../core/api-client.js','rejectedFlags','format','13310150CRiqGM','schema','apps','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','578358imrsJc','configMissing'];a225_0x5ea0=function(){return _0x27c5c6;};return a225_0x5ea0();}function attachUpdateNotice(_0x565401,_0x2047d1){const _0x37315c=a225_0x14c925;if(!_0x2047d1||!_0x565401||typeof _0x565401!==_0x37315c(0x220))return _0x565401;const _0x40f8aa=_0x565401,_0x2c0db2=typeof _0x40f8aa[_0x37315c(0x203)]==='object'&&_0x40f8aa['_notice']!==null?_0x40f8aa[_0x37315c(0x203)]:{};return{..._0x40f8aa,'_notice':{..._0x2c0db2,'update':_0x2047d1}};}
@@ -1 +1 @@
1
- (function(_0x57a822,_0x55d7ee){const _0x4b539b=a226_0x4c66,_0xa1da92=_0x57a822();while(!![]){try{const _0x47042d=parseInt(_0x4b539b(0x1a6))/0x1+-parseInt(_0x4b539b(0x1a9))/0x2+-parseInt(_0x4b539b(0x1ae))/0x3*(-parseInt(_0x4b539b(0x1af))/0x4)+-parseInt(_0x4b539b(0x1ac))/0x5+-parseInt(_0x4b539b(0x1ab))/0x6*(-parseInt(_0x4b539b(0x1aa))/0x7)+parseInt(_0x4b539b(0x1b0))/0x8*(parseInt(_0x4b539b(0x1a5))/0x9)+-parseInt(_0x4b539b(0x1ad))/0xa*(-parseInt(_0x4b539b(0x1a8))/0xb);if(_0x47042d===_0x55d7ee)break;else _0xa1da92['push'](_0xa1da92['shift']());}catch(_0x3cea8f){_0xa1da92['push'](_0xa1da92['shift']());}}}(a226_0x38bf,0x882e3));import{buildSchemaPayload as a226_0x22119f}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';function a226_0x38bf(){const _0x5d114a=['3592tfudix','216OgkaFW','948564LPBbbj','../commands/registry.js','11qzetPA','1720426WrZjAR','301eyPPGn','15774yKmLFl','3833225NPhEAv','8398250scXINV','3309XvcOCE','988DXojTR'];a226_0x38bf=function(){return _0x5d114a;};return a226_0x38bf();}import{getCliVersion}from'../utils/version.js';function a226_0x4c66(_0x48c612,_0x2b81c8){_0x48c612=_0x48c612-0x1a5;const _0x38bf73=a226_0x38bf();let _0x4c669d=_0x38bf73[_0x48c612];return _0x4c669d;}export async function buildSchemaPayload(){const _0x1651cc=a226_0x4c66,{serviceRegistry:_0xb11549,findDefinition:_0x575404}=await import(_0x1651cc(0x1a7));return a226_0x22119f({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xb11549,'buildAllFlags':buildAllFlags,'findDefinition':_0x575404});}
1
+ function a226_0x24f5(_0x573870,_0x5c42de){_0x573870=_0x573870-0x1ae;const _0xd56c49=a226_0xd56c();let _0x24f59f=_0xd56c49[_0x573870];return _0x24f59f;}(function(_0x3f6fd7,_0x5c9ef4){const _0x1c699d=a226_0x24f5,_0x62e6ba=_0x3f6fd7();while(!![]){try{const _0x417bb9=parseInt(_0x1c699d(0x1af))/0x1+-parseInt(_0x1c699d(0x1b2))/0x2*(parseInt(_0x1c699d(0x1b5))/0x3)+-parseInt(_0x1c699d(0x1b3))/0x4+parseInt(_0x1c699d(0x1ae))/0x5+-parseInt(_0x1c699d(0x1b7))/0x6*(-parseInt(_0x1c699d(0x1b0))/0x7)+parseInt(_0x1c699d(0x1b1))/0x8*(parseInt(_0x1c699d(0x1b9))/0x9)+-parseInt(_0x1c699d(0x1b8))/0xa*(parseInt(_0x1c699d(0x1b4))/0xb);if(_0x417bb9===_0x5c9ef4)break;else _0x62e6ba['push'](_0x62e6ba['shift']());}catch(_0xed19b6){_0x62e6ba['push'](_0x62e6ba['shift']());}}}(a226_0xd56c,0xc3c87));import{buildSchemaPayload as a226_0xcca925}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a226_0xd56c(){const _0x29543d=['6193mKrxfI','81321PlZlbZ','../commands/registry.js','3118398GEmTXR','61410IdpiFo','906138Zgbuyu','7725460BkZDHH','1588890ICqJKc','7XLPUfY','112QCbVuw','28hDTVtG','1697820iEpuCF'];a226_0xd56c=function(){return _0x29543d;};return a226_0xd56c();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x52601f=a226_0x24f5,{serviceRegistry:_0xdc0251,findDefinition:_0x12af79}=await import(_0x52601f(0x1b6));return a226_0xcca925({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xdc0251,'buildAllFlags':buildAllFlags,'findDefinition':_0x12af79});}
@@ -1 +1 @@
1
- function a227_0x36fe(_0x172920,_0x337aa5){_0x172920=_0x172920-0x1f3;var _0x3ea060=a227_0x3ea0();var _0x36fe5f=_0x3ea060[_0x172920];return _0x36fe5f;}(function(_0x20fd97,_0x4d514a){var _0x283310=a227_0x36fe,_0x380ac2=_0x20fd97();while(!![]){try{var _0x91ea84=-parseInt(_0x283310(0x1f3))/0x1+-parseInt(_0x283310(0x1f6))/0x2*(parseInt(_0x283310(0x1f5))/0x3)+-parseInt(_0x283310(0x1f7))/0x4+parseInt(_0x283310(0x1f4))/0x5+parseInt(_0x283310(0x1f8))/0x6+parseInt(_0x283310(0x1fb))/0x7*(-parseInt(_0x283310(0x1f9))/0x8)+parseInt(_0x283310(0x1fa))/0x9;if(_0x91ea84===_0x4d514a)break;else _0x380ac2['push'](_0x380ac2['shift']());}catch(_0x57833c){_0x380ac2['push'](_0x380ac2['shift']());}}}(a227_0x3ea0,0x882f0));function a227_0x3ea0(){var _0x42ffed=['22044033ghebpA','7LBuhWs','550105UDWJGs','320425MCopYq','3hODfGy','287366qlLqPo','2637992EuioZO','2762862dWhHEa','8502440MNEWRx'];a227_0x3ea0=function(){return _0x42ffed;};return a227_0x3ea0();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ (function(_0x444641,_0x3359a6){var _0x490844=a227_0x2fc6,_0x52ce67=_0x444641();while(!![]){try{var _0x3babbd=-parseInt(_0x490844(0x159))/0x1+parseInt(_0x490844(0x157))/0x2+-parseInt(_0x490844(0x15c))/0x3+-parseInt(_0x490844(0x155))/0x4+-parseInt(_0x490844(0x156))/0x5*(parseInt(_0x490844(0x15a))/0x6)+-parseInt(_0x490844(0x158))/0x7*(parseInt(_0x490844(0x15b))/0x8)+parseInt(_0x490844(0x154))/0x9;if(_0x3babbd===_0x3359a6)break;else _0x52ce67['push'](_0x52ce67['shift']());}catch(_0x211868){_0x52ce67['push'](_0x52ce67['shift']());}}}(a227_0x19e7,0xd06f6));function a227_0x19e7(){var _0x47767d=['52167609dQYEzl','5495228hLOlYO','100PYVKti','615258YWlzsR','21LemWkK','1057090aQukAt','153618peCvzE','4016680NDcaKS','2403204BNJmwh'];a227_0x19e7=function(){return _0x47767d;};return a227_0x19e7();}function a227_0x2fc6(_0x4f14ee,_0x26c2c3){_0x4f14ee=_0x4f14ee-0x154;var _0x19e7d1=a227_0x19e7();var _0x2fc6ed=_0x19e7d1[_0x4f14ee];return _0x2fc6ed;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a228_0x381bb7=a228_0x2a05;(function(_0x371f51,_0x595a51){const _0xdbca2b=a228_0x2a05,_0x116fe4=_0x371f51();while(!![]){try{const _0x31040a=-parseInt(_0xdbca2b(0x88))/0x1+parseInt(_0xdbca2b(0x86))/0x2+-parseInt(_0xdbca2b(0x8c))/0x3+-parseInt(_0xdbca2b(0x89))/0x4*(parseInt(_0xdbca2b(0x87))/0x5)+parseInt(_0xdbca2b(0x8a))/0x6+-parseInt(_0xdbca2b(0x84))/0x7*(parseInt(_0xdbca2b(0x81))/0x8)+parseInt(_0xdbca2b(0x80))/0x9*(parseInt(_0xdbca2b(0x83))/0xa);if(_0x31040a===_0x595a51)break;else _0x116fe4['push'](_0x116fe4['shift']());}catch(_0x51dd6c){_0x116fe4['push'](_0x116fe4['shift']());}}}(a228_0x2311,0xaea63));export const VERSION='2.3.9-beta.3';function a228_0x2a05(_0x1328b4,_0x242ddc){_0x1328b4=_0x1328b4-0x80;const _0x231194=a228_0x2311();let _0x2a056a=_0x231194[_0x1328b4];return _0x2a056a;}export const GIT_TAG=a228_0x381bb7(0x85);export const GIT_COMMIT=a228_0x381bb7(0x82);function a228_0x2311(){const _0x190830=['2855HLuQeG','1215244BYADwB','3368CLDABk','8337228GCTNxi','2026-07-30T11:38:52.477Z','3909891FvgClk','27mxYNfD','13296QTzdQf','04c0461','7897870hAduws','2149lmyfuj','v2.3.9-beta.3','932042HbVJNy'];a228_0x2311=function(){return _0x190830;};return a228_0x2311();}export const BUILD_TIME=a228_0x381bb7(0x8b);
1
+ const a228_0x5b325e=a228_0x247a;(function(_0xe4593a,_0x1a2c23){const _0x5c3c6a=a228_0x247a,_0x516982=_0xe4593a();while(!![]){try{const _0x96717=-parseInt(_0x5c3c6a(0xbf))/0x1+parseInt(_0x5c3c6a(0xbe))/0x2+parseInt(_0x5c3c6a(0xbb))/0x3*(-parseInt(_0x5c3c6a(0xb8))/0x4)+parseInt(_0x5c3c6a(0xb6))/0x5+parseInt(_0x5c3c6a(0xb7))/0x6+parseInt(_0x5c3c6a(0xb5))/0x7*(parseInt(_0x5c3c6a(0xba))/0x8)+-parseInt(_0x5c3c6a(0xbd))/0x9*(parseInt(_0x5c3c6a(0xb4))/0xa);if(_0x96717===_0x1a2c23)break;else _0x516982['push'](_0x516982['shift']());}catch(_0x1d862d){_0x516982['push'](_0x516982['shift']());}}}(a228_0x3061,0xd7e96));export const VERSION='2.3.10-beta.1';function a228_0x247a(_0x4ec017,_0x12c1a8){_0x4ec017=_0x4ec017-0xb4;const _0x30613c=a228_0x3061();let _0x247a9d=_0x30613c[_0x4ec017];return _0x247a9d;}export const GIT_TAG=a228_0x5b325e(0xbc);export const GIT_COMMIT='8dbf1a4';export const BUILD_TIME=a228_0x5b325e(0xb9);function a228_0x3061(){const _0x32978c=['130ofBixA','429401qAHCwU','4608860zaGSgm','9971196JYKPFB','4eaTfEz','2026-07-30T15:50:10.856Z','168EUfRNc','2106150XeBgON','v2.3.10-beta.1','1000953MulVXF','690476snfwQy','1184834LnCtVb'];a228_0x3061=function(){return _0x32978c;};return a228_0x3061();}
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a229_0xce00(){var _0x336dd0=['\x20\x20Use\x20','2HtvyYc','4051707rtXgeY','3571337xvJWxu','2565959gmdMRd','green','1450395RGqIJa','307500OJbfli','\x20to\x20view\x20available\x20commands.','18FoCLjG','70tkhzAQ','18kUcEoz','2046936McNkkE','85920vdeQdq','log','bold'];a229_0xce00=function(){return _0x336dd0;};return a229_0xce00();}(function(_0x3a3f1c,_0x3cd77f){var _0x25adbd=a229_0x5ef8,_0x578ef3=_0x3a3f1c();while(!![]){try{var _0x334c30=parseInt(_0x25adbd(0x74))/0x1+-parseInt(_0x25adbd(0x7e))/0x2*(parseInt(_0x25adbd(0x7f))/0x3)+parseInt(_0x25adbd(0x79))/0x4+parseInt(_0x25adbd(0x73))/0x5*(-parseInt(_0x25adbd(0x76))/0x6)+parseInt(_0x25adbd(0x70))/0x7+-parseInt(_0x25adbd(0x7a))/0x8*(parseInt(_0x25adbd(0x78))/0x9)+-parseInt(_0x25adbd(0x77))/0xa*(-parseInt(_0x25adbd(0x71))/0xb);if(_0x334c30===_0x3cd77f)break;else _0x578ef3['push'](_0x578ef3['shift']());}catch(_0x4534ea){_0x578ef3['push'](_0x578ef3['shift']());}}}(a229_0xce00,0xafc96));import a229_0xc657b3 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a229_0x5ef8(_0x15c2be,_0x1ef3a3){_0x15c2be=_0x15c2be-0x70;var _0xce00ac=a229_0xce00();var _0x5ef843=_0xce00ac[_0x15c2be];return _0x5ef843;}export function showHelp(){var _0x3f29dc=a229_0x5ef8;console[_0x3f29dc(0x7b)](),console['log'](a229_0xc657b3[_0x3f29dc(0x72)][_0x3f29dc(0x7c)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x3f29dc(0x7b)](),console[_0x3f29dc(0x7b)](_0x3f29dc(0x7d)+a229_0xc657b3['green'][_0x3f29dc(0x7c)](CLI_BIN_NAME+'\x20--help')+_0x3f29dc(0x75)),console['log']();}
1
+ function a229_0x5203(_0x5794f9,_0x20c7c1){_0x5794f9=_0x5794f9-0x10e;var _0xa84f61=a229_0xa84f();var _0x5203a9=_0xa84f61[_0x5794f9];return _0x5203a9;}(function(_0x55ff02,_0x11a126){var _0x54abcf=a229_0x5203,_0x3b9155=_0x55ff02();while(!![]){try{var _0x244b70=-parseInt(_0x54abcf(0x11a))/0x1+-parseInt(_0x54abcf(0x119))/0x2+-parseInt(_0x54abcf(0x111))/0x3*(parseInt(_0x54abcf(0x113))/0x4)+parseInt(_0x54abcf(0x115))/0x5*(-parseInt(_0x54abcf(0x112))/0x6)+parseInt(_0x54abcf(0x114))/0x7+parseInt(_0x54abcf(0x11c))/0x8+parseInt(_0x54abcf(0x110))/0x9*(parseInt(_0x54abcf(0x118))/0xa);if(_0x244b70===_0x11a126)break;else _0x3b9155['push'](_0x3b9155['shift']());}catch(_0x184195){_0x3b9155['push'](_0x3b9155['shift']());}}}(a229_0xa84f,0xcccfe));function a229_0xa84f(){var _0x9c97e7=['8373592QhuAWX','log','green','175716Ybdijp','42xmQIOd','354QdlDkL','41204LCYJEx','8680028UjeHJn','33385EcgfuE','\x20\x20Use\x20','\x20--help','430BgGpwF','818494TVObNF','1339921HXILgY','\x20to\x20view\x20available\x20commands.'];a229_0xa84f=function(){return _0x9c97e7;};return a229_0xa84f();}import a229_0x50a9a4 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x55ebf5=a229_0x5203;console[_0x55ebf5(0x10e)](),console['log'](a229_0x50a9a4['green']['bold']('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x55ebf5(0x10e)](_0x55ebf5(0x116)+a229_0x50a9a4[_0x55ebf5(0x10f)]['bold'](CLI_BIN_NAME+_0x55ebf5(0x117))+_0x55ebf5(0x11b)),console[_0x55ebf5(0x10e)]();}
@@ -1 +1 @@
1
- (function(_0x37e4df,_0x497600){const _0x1175cd=a230_0x4ace,_0x5053c6=_0x37e4df();while(!![]){try{const _0x5258c2=-parseInt(_0x1175cd(0x11b))/0x1+parseInt(_0x1175cd(0x121))/0x2+parseInt(_0x1175cd(0x128))/0x3*(parseInt(_0x1175cd(0x125))/0x4)+parseInt(_0x1175cd(0x129))/0x5*(parseInt(_0x1175cd(0x127))/0x6)+parseInt(_0x1175cd(0x11c))/0x7+-parseInt(_0x1175cd(0x12a))/0x8+parseInt(_0x1175cd(0x122))/0x9*(parseInt(_0x1175cd(0x130))/0xa);if(_0x5258c2===_0x497600)break;else _0x5053c6['push'](_0x5053c6['shift']());}catch(_0x24e893){_0x5053c6['push'](_0x5053c6['shift']());}}}(a230_0x3efc,0x1ae2c));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';function a230_0x3efc(){const _0x3bb9ae=['push','197254CVAQgP','974743IzBKTx','includes','replace','Error:\x20Unsupported\x20command:\x20','argv','341362VyhUUd','9AvoVkQ','--help','has','52KCAaUd','from','270dSRYJr','13971llfplx','4015WUrQOo','1116920UUpytr','log','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','(empty)','error','403870nnDIjI','Equivalent\x20command:\x20','不支持的命令:\x20','startsWith','skill','enable-bff-save','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill'];a230_0x3efc=function(){return _0x3bb9ae;};return a230_0x3efc();}export function camelCaseFlagsToKebab(_0x27bec6){const _0x2ed17d=a230_0x4ace,_0x4736d0=[];for(const [_0x2a8a61,_0x5a88d2]of Object['entries'](_0x27bec6)){if(_0x5a88d2===!![]){const _0x119f21=_0x2a8a61[_0x2ed17d(0x11e)](/([A-Z])/g,_0x2ed17d(0x12d))['toLowerCase']();_0x4736d0[_0x2ed17d(0x11a)](_0x119f21);}}return _0x4736d0;}function a230_0x4ace(_0x44cf71,_0x477936){_0x44cf71=_0x44cf71-0x114;const _0x3efcfa=a230_0x3efc();let _0x4ace0a=_0x3efcfa[_0x44cf71];return _0x4ace0a;}export function parseDynamicFlags(){const _0x45d4b3=a230_0x4ace,_0x24af5d=[];for(let _0x2dc032=0x3;_0x2dc032<process['argv']['length'];_0x2dc032++){const _0x13f4b6=process[_0x45d4b3(0x120)][_0x2dc032];if(_0x13f4b6&&_0x13f4b6[_0x45d4b3(0x116)]('--')){const _0x3d2a92=_0x13f4b6['slice'](0x2);_0x3d2a92&&!_0x3d2a92[_0x45d4b3(0x11d)]('=')&&_0x24af5d['push'](_0x3d2a92);}}return _0x24af5d;}export function getAllProvidedFlags(_0x498820){const _0x3dce2c=a230_0x4ace,_0x4cc8c9=camelCaseFlagsToKebab(_0x498820),_0x257102=parseDynamicFlags(),_0x4bec26=new Set([..._0x4cc8c9,..._0x257102]);return Array[_0x3dce2c(0x126)](_0x4bec26);}export function normalizeLegacyBffSaveFlags(_0x12aef6){const _0x4d4860=a230_0x4ace,_0x20539d=new Set(_0x12aef6);return _0x20539d[_0x4d4860(0x124)]('dangerously-bff-save')&&_0x20539d['add'](_0x4d4860(0x118)),Array[_0x4d4860(0x126)](_0x20539d);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x14f420,_0x277fe5,_0x4bbe11){const _0x278ae7=a230_0x4ace;logger['setLogPath'](process['cwd']());if(_0x4bbe11?.['help']||_0x14f420===_0x278ae7(0x123)){showHelp();return;}console[_0x278ae7(0x12f)](_0x278ae7(0x11f)+(_0x14f420||_0x278ae7(0x12e))),console['log']('\x0aAvailable\x20commands:'),console[_0x278ae7(0x12b)]('\x20\x20'+CLI_BIN_NAME+_0x278ae7(0x119)),console[_0x278ae7(0x12b)](''),console[_0x278ae7(0x12b)](_0x278ae7(0x114)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x278ae7(0x12f)](_0x278ae7(0x117),_0x278ae7(0x115)+_0x14f420),process['exit'](0x1);}function showHelp(){const _0x340ffa=a230_0x4ace;console[_0x340ffa(0x12b)](_0x340ffa(0x12c)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
1
+ (function(_0x48063b,_0x1b3898){const _0xce634d=a230_0x5d10,_0x5ec1d5=_0x48063b();while(!![]){try{const _0x442c6e=parseInt(_0xce634d(0x1ba))/0x1*(parseInt(_0xce634d(0x1c9))/0x2)+-parseInt(_0xce634d(0x1c4))/0x3+parseInt(_0xce634d(0x1db))/0x4+-parseInt(_0xce634d(0x1d1))/0x5*(-parseInt(_0xce634d(0x1c8))/0x6)+parseInt(_0xce634d(0x1d6))/0x7*(parseInt(_0xce634d(0x1bd))/0x8)+parseInt(_0xce634d(0x1c7))/0x9+-parseInt(_0xce634d(0x1d7))/0xa*(parseInt(_0xce634d(0x1d8))/0xb);if(_0x442c6e===_0x1b3898)break;else _0x5ec1d5['push'](_0x5ec1d5['shift']());}catch(_0x391551){_0x5ec1d5['push'](_0x5ec1d5['shift']());}}}(a230_0x2de7,0x9b4cb));function a230_0x2de7(){const _0x29bad9=['1291824GNdzcW','cwd','startsWith','enable-bff-save','entries','help','Equivalent\x20command:\x20','554664eLJcwl','toLowerCase','dangerously-bff-save','6191352yMmzYn','2971488gwxidW','230oDypkI','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Error:\x20Unsupported\x20command:\x20','不支持的命令:\x20','--help','log','length','skill','10jvljOF','error','exit','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','-$1','21nUgCqY','5546910xRTKjw','55eWmbYi','includes','replace','1040348qzyCPr','\x0aAvailable\x20commands:','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','(empty)','setLogPath','has','10187EnOXKD','argv','push'];a230_0x2de7=function(){return _0x29bad9;};return a230_0x2de7();}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a230_0x5d10(_0x580833,_0x452caa){_0x580833=_0x580833-0x1b8;const _0x2de736=a230_0x2de7();let _0x5d1033=_0x2de736[_0x580833];return _0x5d1033;}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x191104){const _0x4e9c2f=a230_0x5d10,_0x500ac8=[];for(const [_0x24cfd6,_0x273206]of Object[_0x4e9c2f(0x1c1)](_0x191104)){if(_0x273206===!![]){const _0x3a9bb0=_0x24cfd6[_0x4e9c2f(0x1da)](/([A-Z])/g,_0x4e9c2f(0x1d5))[_0x4e9c2f(0x1c5)]();_0x500ac8[_0x4e9c2f(0x1bc)](_0x3a9bb0);}}return _0x500ac8;}export function parseDynamicFlags(){const _0x2c7174=a230_0x5d10,_0x26e48e=[];for(let _0x42fd6c=0x3;_0x42fd6c<process['argv'][_0x2c7174(0x1cf)];_0x42fd6c++){const _0x32d895=process[_0x2c7174(0x1bb)][_0x42fd6c];if(_0x32d895&&_0x32d895[_0x2c7174(0x1bf)]('--')){const _0x336d9b=_0x32d895['slice'](0x2);_0x336d9b&&!_0x336d9b[_0x2c7174(0x1d9)]('=')&&_0x26e48e[_0x2c7174(0x1bc)](_0x336d9b);}}return _0x26e48e;}export function getAllProvidedFlags(_0x354779){const _0x3bd797=camelCaseFlagsToKebab(_0x354779),_0x239426=parseDynamicFlags(),_0x3284e9=new Set([..._0x3bd797,..._0x239426]);return Array['from'](_0x3284e9);}export function normalizeLegacyBffSaveFlags(_0x3ba132){const _0x108143=a230_0x5d10,_0x500a3f=new Set(_0x3ba132);return _0x500a3f[_0x108143(0x1b9)](_0x108143(0x1c6))&&_0x500a3f['add'](_0x108143(0x1c0)),Array['from'](_0x500a3f);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x441fdf,_0x51afac,_0x15daa9){const _0x111b9e=a230_0x5d10;logger[_0x111b9e(0x1b8)](process[_0x111b9e(0x1be)]());if(_0x15daa9?.[_0x111b9e(0x1c2)]||_0x441fdf===_0x111b9e(0x1cd)){showHelp();return;}console[_0x111b9e(0x1d2)](_0x111b9e(0x1cb)+(_0x441fdf||_0x111b9e(0x1de))),console[_0x111b9e(0x1ce)](_0x111b9e(0x1dc)),console['log']('\x20\x20'+CLI_BIN_NAME+_0x111b9e(0x1ca)),console['log'](''),console[_0x111b9e(0x1ce)](_0x111b9e(0x1c3)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x111b9e(0x1d2)](_0x111b9e(0x1d0),_0x111b9e(0x1cc)+_0x441fdf),process[_0x111b9e(0x1d3)](0x1);}function showHelp(){const _0x1c1040=a230_0x5d10;console[_0x1c1040(0x1ce)](_0x1c1040(0x1d4)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1c1040(0x1dd));}
@@ -1 +1 @@
1
- const a231_0x4774bf=a231_0x3b90;(function(_0x420e70,_0x1f6697){const _0x3490b1=a231_0x3b90,_0x578ae0=_0x420e70();while(!![]){try{const _0x2c846a=-parseInt(_0x3490b1(0x97))/0x1+parseInt(_0x3490b1(0xa5))/0x2+-parseInt(_0x3490b1(0x95))/0x3*(parseInt(_0x3490b1(0xaa))/0x4)+parseInt(_0x3490b1(0x91))/0x5+-parseInt(_0x3490b1(0x9c))/0x6+-parseInt(_0x3490b1(0xa2))/0x7*(parseInt(_0x3490b1(0x9b))/0x8)+-parseInt(_0x3490b1(0x92))/0x9*(-parseInt(_0x3490b1(0x94))/0xa);if(_0x2c846a===_0x1f6697)break;else _0x578ae0['push'](_0x578ae0['shift']());}catch(_0x386b74){_0x578ae0['push'](_0x578ae0['shift']());}}}(a231_0x25a0,0x40399));function a231_0x25a0(){const _0x6f8e88=['status','79540jPGccU','lovrabet/lovrabet-skill','pipe','npx','join','508225nOUGOA','2890917SUzCtp','push','40iFMBMe','39hhDqNe','skill','257107IYgeLa','skills','stderr','exit\x20','2434712ZJjUsX','2822736FFnUiZ','log','--skill','inherit','trim','stdio','7ossSQH','remove','add','333950BnMOVH','toString','unknown','stdout'];a231_0x25a0=function(){return _0x6f8e88;};return a231_0x25a0();}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';function a231_0x3b90(_0x357d06,_0x2fdbc3){_0x357d06=_0x357d06-0x8f;const _0x25a049=a231_0x25a0();let _0x3b9012=_0x25a049[_0x357d06];return _0x3b9012;}export const NPX_SKILLS_CLI=a231_0x4774bf(0x98);export const NPX_SKILLS_SUBCOMMAND_ADD=a231_0x4774bf(0xa4);export const NPX_SKILLS_FLAG_SKILL=a231_0x4774bf(0x9e);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a231_0x4774bf(0xab);export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x46d745){const _0x58dab7=a231_0x4774bf,_0xdbd1c=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x46d745&&_0xdbd1c[_0x58dab7(0x93)](NPX_SKILLS_FLAG_SKILL,_0x46d745),_0xdbd1c;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a231_0x4774bf(0x90)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a231_0x4774bf(0x8f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a231_0x4774bf(0x90)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x3e8a66,_0x48ab62){const _0x5c1a07=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x44e97e=_0x48ab62?.[_0x5c1a07(0xa1)]??'inherit',_0x17d89c=resolveNpmBin(_0x5c1a07(0x8f)),_0x827ada=buildNpxSkillsAddArgv(_0x48ab62?.[_0x5c1a07(0x96)]),_0x2d5f7e=[_0x5c1a07(0x8f),..._0x827ada][_0x5c1a07(0x90)]('\x20');console[_0x5c1a07(0x9d)]('*\x20'+_0x2d5f7e);const _0x40426f=spawnSync(_0x17d89c,_0x827ada,{'cwd':_0x3e8a66,'stdio':_0x44e97e,'env':process.env,'shell':![]}),_0x48d66a=_0x40426f[_0x5c1a07(0xa9)];if(_0x48d66a===0x0)return{'ok':!![],'status':0x0};let _0x259ed8=_0x5c1a07(0x9a)+(_0x48d66a??_0x5c1a07(0xa7));if(_0x44e97e===_0x5c1a07(0xac)){const _0x424f45=_0x40426f[_0x5c1a07(0x99)]?_0x40426f['stderr'][_0x5c1a07(0xa6)]()[_0x5c1a07(0xa0)]():'',_0x2ebe63=_0x40426f['stdout']?_0x40426f[_0x5c1a07(0xa8)][_0x5c1a07(0xa6)]()['trim']():'';if(_0x424f45)_0x259ed8=_0x424f45;else{if(_0x2ebe63)_0x259ed8=_0x2ebe63;}}return{'ok':![],'status':_0x48d66a??null,'error':_0x259ed8};}export function runNpxSkillsRemove(_0x241c7e,_0xbd7665,_0x42aa7a=LEGACY_RABETBASE_SKILL_SOURCE){const _0x37ef7e=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x305b07=_0xbd7665?.[_0x37ef7e(0xa1)]??_0x37ef7e(0x9f),_0x1367b8=resolveNpmBin(_0x37ef7e(0x8f)),_0x1993f3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x37ef7e(0xa3),_0x42aa7a,NPX_SKILLS_FLAG_SKILL,_0xbd7665?.[_0x37ef7e(0x96)]??DEFAULT_RABETBASE_SKILL_NAME,..._0xbd7665?.['yes']?['-y']:[]],_0x460976=[_0x1367b8,..._0x1993f3][_0x37ef7e(0x90)]('\x20');console[_0x37ef7e(0x9d)]('*\x20'+_0x460976);const _0x11d9ae=spawnSync(_0x1367b8,_0x1993f3,{'cwd':_0x241c7e,'stdio':_0x305b07,'env':process.env,'shell':![]}),_0x27f4fa=_0x11d9ae['status'];if(_0x27f4fa===0x0)return{'ok':!![],'status':0x0};let _0x2b5278=_0x37ef7e(0x9a)+(_0x27f4fa??_0x37ef7e(0xa7));if(_0x305b07===_0x37ef7e(0xac)){const _0x38fd81=_0x11d9ae[_0x37ef7e(0x99)]?_0x11d9ae[_0x37ef7e(0x99)][_0x37ef7e(0xa6)]()[_0x37ef7e(0xa0)]():'',_0x569bb3=_0x11d9ae[_0x37ef7e(0xa8)]?_0x11d9ae[_0x37ef7e(0xa8)]['toString']()[_0x37ef7e(0xa0)]():'';if(_0x38fd81)_0x2b5278=_0x38fd81;else{if(_0x569bb3)_0x2b5278=_0x569bb3;}}return{'ok':![],'status':_0x27f4fa??null,'error':_0x2b5278};}export function runNpxSkillsAddGlobal(_0x1bc429,_0x35aaea,_0x336c3e){const _0x506cff=a231_0x4774bf;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5ab9d3=_0x336c3e?.[_0x506cff(0xa1)]??_0x506cff(0x9f),_0x2cbe1b=resolveNpmBin(_0x506cff(0x8f)),_0x5409d8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x35aaea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x379b4b=[_0x506cff(0x8f),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x35aaea,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x506cff(0x90)]('\x20');console[_0x506cff(0x9d)]('*\x20'+_0x379b4b);const _0x527e9c=spawnSync(_0x2cbe1b,_0x5409d8,{'cwd':_0x1bc429,'stdio':_0x5ab9d3,'env':process.env,'shell':![]}),_0x3e3e27=_0x527e9c[_0x506cff(0xa9)];if(_0x3e3e27===0x0)return{'ok':!![],'status':0x0};let _0x189b5e='exit\x20'+(_0x3e3e27??_0x506cff(0xa7));if(_0x5ab9d3===_0x506cff(0xac)){const _0x3425b6=_0x527e9c[_0x506cff(0x99)]?_0x527e9c[_0x506cff(0x99)][_0x506cff(0xa6)]()[_0x506cff(0xa0)]():'',_0xe8e7b8=_0x527e9c['stdout']?_0x527e9c[_0x506cff(0xa8)][_0x506cff(0xa6)]()[_0x506cff(0xa0)]():'';if(_0x3425b6)_0x189b5e=_0x3425b6;else{if(_0xe8e7b8)_0x189b5e=_0xe8e7b8;}}return{'ok':![],'status':_0x3e3e27??null,'error':_0x189b5e};}
1
+ const a231_0x14c7e2=a231_0x3348;(function(_0x105506,_0x5be0b4){const _0x31bdb5=a231_0x3348,_0x46120f=_0x105506();while(!![]){try{const _0x5bd23d=parseInt(_0x31bdb5(0x162))/0x1+parseInt(_0x31bdb5(0x15e))/0x2*(-parseInt(_0x31bdb5(0x14d))/0x3)+-parseInt(_0x31bdb5(0x161))/0x4*(-parseInt(_0x31bdb5(0x14b))/0x5)+parseInt(_0x31bdb5(0x158))/0x6*(-parseInt(_0x31bdb5(0x165))/0x7)+parseInt(_0x31bdb5(0x152))/0x8*(-parseInt(_0x31bdb5(0x167))/0x9)+-parseInt(_0x31bdb5(0x14e))/0xa+parseInt(_0x31bdb5(0x164))/0xb*(parseInt(_0x31bdb5(0x15c))/0xc);if(_0x5bd23d===_0x5be0b4)break;else _0x46120f['push'](_0x46120f['shift']());}catch(_0x534826){_0x46120f['push'](_0x46120f['shift']());}}}(a231_0x3601,0xec0cf));function a231_0x3348(_0x4a2209,_0x1d1584){_0x4a2209=_0x4a2209-0x148;const _0x3601c0=a231_0x3601();let _0x33485a=_0x3601c0[_0x4a2209];return _0x33485a;}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=a231_0x14c7e2(0x168);export const NPX_SKILLS_SUBCOMMAND_ADD=a231_0x14c7e2(0x15f);export const NPX_SKILLS_FLAG_SKILL=a231_0x14c7e2(0x15b);export const RABETBASE_SKILL_SOURCE=a231_0x14c7e2(0x14a);export const LEGACY_RABETBASE_SKILL_SOURCE=a231_0x14c7e2(0x155);export const DEFAULT_RABETBASE_SKILL_NAME=a231_0x14c7e2(0x153);export function buildNpxSkillsAddArgv(_0x14e245){const _0x5ae022=a231_0x14c7e2,_0x542aa8=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x14e245&&_0x542aa8[_0x5ae022(0x166)](NPX_SKILLS_FLAG_SKILL,_0x14e245),_0x542aa8;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a231_0x14c7e2(0x156),...buildNpxSkillsAddArgv()]['join']('\x20');function a231_0x3601(){const _0x36d83f=['yes','lovrabet/lovrabet-skill','npx','trim','8998602bjqhtG','status','stdio','--skill','36pyXqVl','exit\x20','4aHXnbc','add','unknown','964kZIdJO','692559OMFVyg','join','11832623eALtev','7kHcGMI','push','9QVFAHW','skills','stdout','log','pipe','lovrabet/rabetbase','5730WLmhyw','remove','145668asYxII','8407700HSVGOz','stderr','inherit','toString','6330496sofaVw','Lovrabet'];a231_0x3601=function(){return _0x36d83f;};return a231_0x3601();}export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a231_0x14c7e2(0x156),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a231_0x14c7e2(0x163)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2a7a56,_0x105de3){const _0x1e38ab=a231_0x14c7e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x302fe5=_0x105de3?.[_0x1e38ab(0x15a)]??'inherit',_0x1f5c6c=resolveNpmBin(_0x1e38ab(0x156)),_0x27883b=buildNpxSkillsAddArgv(_0x105de3?.['skill']),_0x48a29b=['npx',..._0x27883b][_0x1e38ab(0x163)]('\x20');console[_0x1e38ab(0x148)]('*\x20'+_0x48a29b);const _0x2e79b9=spawnSync(_0x1f5c6c,_0x27883b,{'cwd':_0x2a7a56,'stdio':_0x302fe5,'env':process.env,'shell':![]}),_0x558536=_0x2e79b9['status'];if(_0x558536===0x0)return{'ok':!![],'status':0x0};let _0x3f96cf=_0x1e38ab(0x15d)+(_0x558536??_0x1e38ab(0x160));if(_0x302fe5==='pipe'){const _0x50a0b4=_0x2e79b9[_0x1e38ab(0x14f)]?_0x2e79b9[_0x1e38ab(0x14f)]['toString']()[_0x1e38ab(0x157)]():'',_0x391a9b=_0x2e79b9['stdout']?_0x2e79b9[_0x1e38ab(0x169)][_0x1e38ab(0x151)]()[_0x1e38ab(0x157)]():'';if(_0x50a0b4)_0x3f96cf=_0x50a0b4;else{if(_0x391a9b)_0x3f96cf=_0x391a9b;}}return{'ok':![],'status':_0x558536??null,'error':_0x3f96cf};}export function runNpxSkillsRemove(_0x47d7b9,_0x2a41f3,_0x580f01=LEGACY_RABETBASE_SKILL_SOURCE){const _0x500b65=a231_0x14c7e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x493b7f=_0x2a41f3?.[_0x500b65(0x15a)]??_0x500b65(0x150),_0x279e69=resolveNpmBin('npx'),_0x29b8e7=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x500b65(0x14c),_0x580f01,NPX_SKILLS_FLAG_SKILL,_0x2a41f3?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0x2a41f3?.[_0x500b65(0x154)]?['-y']:[]],_0x1d2080=[_0x279e69,..._0x29b8e7]['join']('\x20');console['log']('*\x20'+_0x1d2080);const _0x237f59=spawnSync(_0x279e69,_0x29b8e7,{'cwd':_0x47d7b9,'stdio':_0x493b7f,'env':process.env,'shell':![]}),_0x2e5671=_0x237f59[_0x500b65(0x159)];if(_0x2e5671===0x0)return{'ok':!![],'status':0x0};let _0x4691b2='exit\x20'+(_0x2e5671??_0x500b65(0x160));if(_0x493b7f===_0x500b65(0x149)){const _0x184d96=_0x237f59[_0x500b65(0x14f)]?_0x237f59['stderr'][_0x500b65(0x151)]()[_0x500b65(0x157)]():'',_0x4ab27c=_0x237f59[_0x500b65(0x169)]?_0x237f59['stdout'][_0x500b65(0x151)]()[_0x500b65(0x157)]():'';if(_0x184d96)_0x4691b2=_0x184d96;else{if(_0x4ab27c)_0x4691b2=_0x4ab27c;}}return{'ok':![],'status':_0x2e5671??null,'error':_0x4691b2};}export function runNpxSkillsAddGlobal(_0x355b80,_0x54a94b,_0x49c0ee){const _0x11f9ca=a231_0x14c7e2;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4ba8a5=_0x49c0ee?.[_0x11f9ca(0x15a)]??'inherit',_0x2b17f1=resolveNpmBin(_0x11f9ca(0x156)),_0x4906df=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x54a94b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x591be7=[_0x11f9ca(0x156),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x54a94b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x11f9ca(0x163)]('\x20');console['log']('*\x20'+_0x591be7);const _0x3c7f69=spawnSync(_0x2b17f1,_0x4906df,{'cwd':_0x355b80,'stdio':_0x4ba8a5,'env':process.env,'shell':![]}),_0x196dbb=_0x3c7f69[_0x11f9ca(0x159)];if(_0x196dbb===0x0)return{'ok':!![],'status':0x0};let _0x164dbc=_0x11f9ca(0x15d)+(_0x196dbb??_0x11f9ca(0x160));if(_0x4ba8a5==='pipe'){const _0x40e0df=_0x3c7f69[_0x11f9ca(0x14f)]?_0x3c7f69[_0x11f9ca(0x14f)][_0x11f9ca(0x151)]()[_0x11f9ca(0x157)]():'',_0x259c10=_0x3c7f69[_0x11f9ca(0x169)]?_0x3c7f69[_0x11f9ca(0x169)]['toString']()[_0x11f9ca(0x157)]():'';if(_0x40e0df)_0x164dbc=_0x40e0df;else{if(_0x259c10)_0x164dbc=_0x259c10;}}return{'ok':![],'status':_0x196dbb??null,'error':_0x164dbc};}