@lovrabet/rabetbase-cli 2.3.4 → 2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) 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/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x583bb1,_0x24afdb){const _0x4fc79f=a196_0x5f5b,_0x21a5f0=_0x583bb1();while(!![]){try{const _0x3f0197=-parseInt(_0x4fc79f(0x193))/0x1+-parseInt(_0x4fc79f(0x19d))/0x2*(-parseInt(_0x4fc79f(0x18e))/0x3)+parseInt(_0x4fc79f(0x19a))/0x4+parseInt(_0x4fc79f(0x199))/0x5+parseInt(_0x4fc79f(0x19c))/0x6+parseInt(_0x4fc79f(0x195))/0x7*(-parseInt(_0x4fc79f(0x191))/0x8)+-parseInt(_0x4fc79f(0x18f))/0x9*(parseInt(_0x4fc79f(0x18c))/0xa);if(_0x3f0197===_0x24afdb)break;else _0x21a5f0['push'](_0x21a5f0['shift']());}catch(_0x272ac3){_0x21a5f0['push'](_0x21a5f0['shift']());}}}(a196_0x3cb3,0x571a2));export function detectSqlMode(_0xfaee4f){const _0x1e2f8b=a196_0x5f5b,_0x2ae7c9=_0xfaee4f[_0x1e2f8b(0x198)]();if(/^<(select|insert|update|delete)\b/i[_0x1e2f8b(0x190)](_0x2ae7c9))return _0x1e2f8b(0x197);return _0x1e2f8b(0x196);}export function getSqlFileExtension(_0x1fe498){const _0x5d1d3a=a196_0x5f5b;return _0x1fe498===_0x5d1d3a(0x197)?_0x5d1d3a(0x19e):_0x5d1d3a(0x194);}export function buildDefaultSqlFileName(_0x142bbd,_0x18bc9c){return''+_0x142bbd+getSqlFileExtension(_0x18bc9c);}export function sanitizeSqlPathSegment(_0xc4b334,_0x47a7dc){const _0x41c770=a196_0x5f5b,_0x5b1f8f=String(_0xc4b334??'')[_0x41c770(0x18d)](),_0x6ccc2e=_0x5b1f8f[_0x41c770(0x19b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x41c770(0x19b)](/\s+/g,'-')[_0x41c770(0x19b)](/-+/g,'-')[_0x41c770(0x19b)](/^\.+/,'')[_0x41c770(0x19b)](/\.+$/,'')[_0x41c770(0x19b)](/^-+/,'')[_0x41c770(0x19b)](/-+$/,'');return _0x6ccc2e||_0x47a7dc;}function a196_0x5f5b(_0x5a08b9,_0x2810b8){_0x5a08b9=_0x5a08b9-0x18c;const _0x3cb33e=a196_0x3cb3();let _0x5f5bc3=_0x3cb33e[_0x5a08b9];return _0x5f5bc3;}export function buildDbDirectoryName(_0x27ffd0,_0x248567){const _0x5693c3=a196_0x5f5b;return sanitizeSqlPathSegment(_0x27ffd0,_0x248567!=null?_0x5693c3(0x192)+_0x248567:'unknown-db');}export function buildSqlRelativePath(_0x5002ba,_0x26d89f,_0x4ba1d0,_0x14bf55,_0x58ef9b){const _0x561d09=buildDbDirectoryName(_0x4ba1d0,_0x58ef9b),_0x2c25c1=sanitizeSqlPathSegment(_0x5002ba,'unknown-sql'),_0x158349=sanitizeSqlPathSegment(_0x26d89f,_0x2c25c1);return _0x561d09+'/'+_0x2c25c1+'_'+_0x158349+getSqlFileExtension(_0x14bf55);}function a196_0x3cb3(){const _0x5b0738=['1829468mvMLYs','replace','735576XbJgLg','3758bWUamy','.xml','1160WbsiPo','trim','843jJbEeP','74565ISyFUi','test','678872SzeGIB','db-','164106RHlbce','.sql','7nEcSir','sql','mybatisXml','trimStart','2294165xXpFXs'];a196_0x3cb3=function(){return _0x5b0738;};return a196_0x3cb3();}
1
+ (function(_0x2aa755,_0x321d87){const _0x3c7827=a196_0x9ece,_0x2f0574=_0x2aa755();while(!![]){try{const _0x60ebc3=-parseInt(_0x3c7827(0x191))/0x1*(-parseInt(_0x3c7827(0x197))/0x2)+-parseInt(_0x3c7827(0x19b))/0x3*(-parseInt(_0x3c7827(0x193))/0x4)+-parseInt(_0x3c7827(0x196))/0x5+parseInt(_0x3c7827(0x19a))/0x6*(-parseInt(_0x3c7827(0x189))/0x7)+parseInt(_0x3c7827(0x199))/0x8+parseInt(_0x3c7827(0x192))/0x9+-parseInt(_0x3c7827(0x18b))/0xa*(-parseInt(_0x3c7827(0x198))/0xb);if(_0x60ebc3===_0x321d87)break;else _0x2f0574['push'](_0x2f0574['shift']());}catch(_0x348c9b){_0x2f0574['push'](_0x2f0574['shift']());}}}(a196_0x2bd1,0x753bb));export function detectSqlMode(_0x505900){const _0x2d284b=a196_0x9ece,_0x2f6852=_0x505900[_0x2d284b(0x187)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x2f6852))return _0x2d284b(0x190);return _0x2d284b(0x18e);}export function getSqlFileExtension(_0x24df87){const _0x4313ea=a196_0x9ece;return _0x24df87===_0x4313ea(0x190)?_0x4313ea(0x18c):_0x4313ea(0x18a);}export function buildDefaultSqlFileName(_0x2a3898,_0x26779e){return''+_0x2a3898+getSqlFileExtension(_0x26779e);}function a196_0x2bd1(){const _0x4da182=['3644055wIbbHU','48Sqlsvd','trim','unknown-db','3839055NfdSUr','6RtcJpJ','2396911TPhADd','4236216vOqTDt','282ajooKe','57588aODmxs','trimStart','db-','103978ulcSaV','.sql','30gukDEr','.xml','unknown-sql','sql','replace','mybatisXml','42553UlSUvs'];a196_0x2bd1=function(){return _0x4da182;};return a196_0x2bd1();}export function sanitizeSqlPathSegment(_0x38c620,_0x1bb958){const _0x2430b1=a196_0x9ece,_0x5cd834=String(_0x38c620??'')[_0x2430b1(0x194)](),_0x5112e8=_0x5cd834['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x2430b1(0x18f)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x2430b1(0x18f)](/^\.+/,'')[_0x2430b1(0x18f)](/\.+$/,'')[_0x2430b1(0x18f)](/^-+/,'')[_0x2430b1(0x18f)](/-+$/,'');return _0x5112e8||_0x1bb958;}export function buildDbDirectoryName(_0x187601,_0x355e9c){const _0x15ee64=a196_0x9ece;return sanitizeSqlPathSegment(_0x187601,_0x355e9c!=null?_0x15ee64(0x188)+_0x355e9c:_0x15ee64(0x195));}function a196_0x9ece(_0x163613,_0x24b2af){_0x163613=_0x163613-0x187;const _0x2bd17b=a196_0x2bd1();let _0x9ece43=_0x2bd17b[_0x163613];return _0x9ece43;}export function buildSqlRelativePath(_0x489217,_0x433868,_0x1f127f,_0x47099b,_0x2e21db){const _0xdb580c=a196_0x9ece,_0x4d5d48=buildDbDirectoryName(_0x1f127f,_0x2e21db),_0x4d0b58=sanitizeSqlPathSegment(_0x489217,_0xdb580c(0x18d)),_0xaec4e4=sanitizeSqlPathSegment(_0x433868,_0x4d0b58);return _0x4d5d48+'/'+_0x4d0b58+'_'+_0xaec4e4+getSqlFileExtension(_0x47099b);}
@@ -1 +1 @@
1
- (function(_0x219fcc,_0x15575d){const _0x201fce=a197_0x3028,_0x45e0e3=_0x219fcc();while(!![]){try{const _0x2d3aa0=parseInt(_0x201fce(0xfe))/0x1+parseInt(_0x201fce(0x10c))/0x2*(parseInt(_0x201fce(0xfa))/0x3)+-parseInt(_0x201fce(0xf0))/0x4+-parseInt(_0x201fce(0x108))/0x5*(parseInt(_0x201fce(0xf7))/0x6)+-parseInt(_0x201fce(0xf8))/0x7+parseInt(_0x201fce(0xf5))/0x8+parseInt(_0x201fce(0x107))/0x9*(parseInt(_0x201fce(0x101))/0xa);if(_0x2d3aa0===_0x15575d)break;else _0x45e0e3['push'](_0x45e0e3['shift']());}catch(_0x51018d){_0x45e0e3['push'](_0x45e0e3['shift']());}}}(a197_0xb861,0x4bd0d));export function detectSqlType(_0x44a23c){const _0x2b3a01=a197_0x3028;if(!_0x44a23c?.[_0x2b3a01(0xea)]())return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![],'reason':_0x2b3a01(0xf3)};const _0x714db=_0x44a23c['replace'](/#\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/\$\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2b3a01(0x10e)](/\/\*[\s\S]*?\*\//g,'')[_0x2b3a01(0xea)](),_0x146ae3=_0x714db[_0x2b3a01(0x105)]('\x0a');let _0x2b2a59='';for(const _0x12e657 of _0x146ae3){const _0x522bf2=_0x12e657['trim']();if(!_0x522bf2||_0x522bf2[_0x2b3a01(0xf4)]('--')||_0x522bf2[_0x2b3a01(0xf4)]('/*'))continue;_0x2b2a59=_0x522bf2;break;}const _0x1fda6c=_0x2b2a59[_0x2b3a01(0x102)]();if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xe9))||_0x1fda6c['startsWith'](_0x2b3a01(0x100))){const _0x190891=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2b3a01(0x10b)](_0x714db);return{'type':_0x2b3a01(0xe9),'isSelectOnly':!_0x190891,'isDangerous':_0x190891,'reason':_0x190891?_0x2b3a01(0xef):undefined};}if(_0x1fda6c[_0x2b3a01(0xf4)]('INSERT'))return{'type':_0x2b3a01(0xfc),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xf9)))return{'type':_0x2b3a01(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c['startsWith'](_0x2b3a01(0x10a)))return{'type':_0x2b3a01(0x10a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xec)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2b3a01(0x10b)](_0x1fda6c))return{'type':_0x2b3a01(0x103),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xf2)};return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![]};}function a197_0x3028(_0x1dafce,_0x16439f){_0x1dafce=_0x1dafce-0xe7;const _0xb861db=a197_0xb861();let _0x302803=_0xb861db[_0x1dafce];return _0x302803;}function extractTables(_0x3bf20a){const _0x23228f=a197_0x3028,_0x1b86bb=_0x3bf20a['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x23228f(0x10e)](/'[^']*'/g,'\x27\x27')[_0x23228f(0x10e)](/--.*$/gm,'')[_0x23228f(0x10e)](/\/\*[\s\S]*?\*\//g,''),_0x3213f3=[],_0x119655=_0x1b86bb[_0x23228f(0xf1)](/FROM\s+([^\s,)(]+)/i);if(_0x119655?.[0x1])_0x3213f3[_0x23228f(0xf6)](_0x119655[0x1][_0x23228f(0x10e)](/[`"]/g,''));for(const _0x255a25 of _0x1b86bb[_0x23228f(0x104)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x59e604=_0x255a25[0x1]?.[_0x23228f(0x10e)](/[`"]/g,'');if(_0x59e604&&!_0x3213f3[_0x23228f(0xee)](_0x59e604))_0x3213f3['push'](_0x59e604);}const _0x2c2688=_0x1b86bb['match'](/INTO\s+([^\s(]+)/i);if(_0x2c2688?.[0x1]){const _0x39e19b=_0x2c2688[0x1]['replace'](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x39e19b))_0x3213f3['push'](_0x39e19b);}const _0x2566d8=_0x1b86bb['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2566d8?.[0x1]){const _0x1f89c1=_0x2566d8[0x1][_0x23228f(0x10e)](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x1f89c1))_0x3213f3['push'](_0x1f89c1);}return _0x3213f3;}function extractParameters(_0x3c0aea){const _0x456da4=a197_0x3028,_0x5a44ce=new Set();for(const _0x3b12b5 of _0x3c0aea[_0x456da4(0x104)](/#\{(\w+)\}/g))if(_0x3b12b5[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x3b12b5[0x1]);for(const _0x355978 of _0x3c0aea['matchAll'](/\$\{(\w+)\}/g))if(_0x355978[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x355978[0x1]);return Array[_0x456da4(0xfb)](_0x5a44ce);}export function validateSql(_0x5633d6){const _0x2070b4=a197_0x3028,_0x4bf4af=detectSqlType(_0x5633d6),_0x10becc=extractTables(_0x5633d6),_0x3401b5=extractParameters(_0x5633d6);if(_0x4bf4af[_0x2070b4(0x106)])return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xe7)]||_0x4bf4af[_0x2070b4(0xed)]+_0x2070b4(0xff)};if(_0x4bf4af[_0x2070b4(0xed)]===_0x2070b4(0x109))return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x2070b4(0x10d)};return{'valid':!![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xed)]+'\x20query\x20targeting\x20'+(_0x10becc['length']?_0x10becc[_0x2070b4(0xe8)](',\x20'):_0x2070b4(0x10f))+(_0x3401b5[_0x2070b4(0xfd)]?'\x20with\x20parameters:\x20'+_0x3401b5['join'](',\x20'):'')};}function a197_0xb861(){const _0x11620c=['type','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','1123220urHVJv','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20content\x20is\x20empty','startsWith','1464232sRAkha','push','721398XjCOxC','2252544iZztbb','UPDATE','698862nIdtUe','from','INSERT','length','77258EPoHyM','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','WITH','2738210VqWGQe','toUpperCase','DDL','matchAll','split','isDangerous','18KdsbWx','15RJjEkA','UNKNOWN','DELETE','test','4ACXAnS','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replace','unknown\x20table(s)','reason','join','SELECT','trim','add','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a197_0xb861=function(){return _0x11620c;};return a197_0xb861();}
1
+ (function(_0x2b7bff,_0x3ced24){const _0x129f5d=a197_0x429a,_0xb74950=_0x2b7bff();while(!![]){try{const _0x426402=parseInt(_0x129f5d(0xb0))/0x1+parseInt(_0x129f5d(0xa5))/0x2+-parseInt(_0x129f5d(0xc4))/0x3*(parseInt(_0x129f5d(0xa3))/0x4)+-parseInt(_0x129f5d(0xb7))/0x5+-parseInt(_0x129f5d(0xa8))/0x6*(-parseInt(_0x129f5d(0xb8))/0x7)+-parseInt(_0x129f5d(0xb5))/0x8*(-parseInt(_0x129f5d(0xbd))/0x9)+-parseInt(_0x129f5d(0xc7))/0xa;if(_0x426402===_0x3ced24)break;else _0xb74950['push'](_0xb74950['shift']());}catch(_0x147903){_0xb74950['push'](_0xb74950['shift']());}}}(a197_0x548c,0x4563b));export function detectSqlType(_0x58c426){const _0x440f3c=a197_0x429a;if(!_0x58c426?.['trim']())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x440f3c(0xb1)};const _0x4ced3d=_0x58c426['replace'](/#\{[^}]*\}/g,'?')[_0x440f3c(0xc9)](/\$\{[^}]*\}/g,'?')[_0x440f3c(0xc9)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x440f3c(0xc9)](/\/\*[\s\S]*?\*\//g,'')[_0x440f3c(0xc8)](),_0x203fea=_0x4ced3d[_0x440f3c(0xbf)]('\x0a');let _0x5849e8='';for(const _0x4c011e of _0x203fea){const _0x2f5c39=_0x4c011e[_0x440f3c(0xc8)]();if(!_0x2f5c39||_0x2f5c39[_0x440f3c(0xaa)]('--')||_0x2f5c39[_0x440f3c(0xaa)]('/*'))continue;_0x5849e8=_0x2f5c39;break;}const _0x5053a8=_0x5849e8['toUpperCase']();if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xc6))||_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xae))){const _0x4f546a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x4ced3d);return{'type':'SELECT','isSelectOnly':!_0x4f546a,'isDangerous':_0x4f546a,'reason':_0x4f546a?_0x440f3c(0xb3):undefined};}if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xb2)))return{'type':_0x440f3c(0xb2),'isSelectOnly':![],'isDangerous':![]};if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xb6)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x5053a8[_0x440f3c(0xaa)](_0x440f3c(0xa4)))return{'type':_0x440f3c(0xa4),'isSelectOnly':![],'isDangerous':!![],'reason':_0x440f3c(0xc0)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x440f3c(0xad)](_0x5053a8))return{'type':_0x440f3c(0xac),'isSelectOnly':![],'isDangerous':!![],'reason':_0x440f3c(0xbc)};return{'type':_0x440f3c(0xa6),'isSelectOnly':![],'isDangerous':![]};}function a197_0x429a(_0x5c71c1,_0x59ace4){_0x5c71c1=_0x5c71c1-0xa3;const _0x548c27=a197_0x548c();let _0x429a4b=_0x548c27[_0x5c71c1];return _0x429a4b;}function extractTables(_0x295284){const _0x32149b=a197_0x429a,_0x2e954c=_0x295284['replace'](/#\{[^}]*\}/g,'?')[_0x32149b(0xc9)](/\$\{[^}]*\}/g,'?')[_0x32149b(0xc9)](/'[^']*'/g,'\x27\x27')[_0x32149b(0xc9)](/--.*$/gm,'')[_0x32149b(0xc9)](/\/\*[\s\S]*?\*\//g,''),_0x57f8f9=[],_0xe3cdbd=_0x2e954c['match'](/FROM\s+([^\s,)(]+)/i);if(_0xe3cdbd?.[0x1])_0x57f8f9[_0x32149b(0xc5)](_0xe3cdbd[0x1][_0x32149b(0xc9)](/[`"]/g,''));for(const _0x1b7cb4 of _0x2e954c[_0x32149b(0xc1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x221b78=_0x1b7cb4[0x1]?.[_0x32149b(0xc9)](/[`"]/g,'');if(_0x221b78&&!_0x57f8f9[_0x32149b(0xab)](_0x221b78))_0x57f8f9[_0x32149b(0xc5)](_0x221b78);}const _0x45e489=_0x2e954c[_0x32149b(0xb9)](/INTO\s+([^\s(]+)/i);if(_0x45e489?.[0x1]){const _0x18ef04=_0x45e489[0x1][_0x32149b(0xc9)](/[`"]/g,'');if(!_0x57f8f9[_0x32149b(0xab)](_0x18ef04))_0x57f8f9[_0x32149b(0xc5)](_0x18ef04);}const _0x159a2b=_0x2e954c['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x159a2b?.[0x1]){const _0x461630=_0x159a2b[0x1][_0x32149b(0xc9)](/[`"]/g,'');if(!_0x57f8f9[_0x32149b(0xab)](_0x461630))_0x57f8f9[_0x32149b(0xc5)](_0x461630);}return _0x57f8f9;}function extractParameters(_0x2a37f5){const _0x2de0e7=a197_0x429a,_0x468a35=new Set();for(const _0x29f566 of _0x2a37f5[_0x2de0e7(0xc1)](/#\{(\w+)\}/g))if(_0x29f566[0x1])_0x468a35['add'](_0x29f566[0x1]);for(const _0x5cb1fd of _0x2a37f5['matchAll'](/\$\{(\w+)\}/g))if(_0x5cb1fd[0x1])_0x468a35[_0x2de0e7(0xc2)](_0x5cb1fd[0x1]);return Array[_0x2de0e7(0xa7)](_0x468a35);}export function validateSql(_0x184f03){const _0x2df7c0=a197_0x429a,_0x56df3d=detectSqlType(_0x184f03),_0x1d168d=extractTables(_0x184f03),_0x222c4c=extractParameters(_0x184f03);if(_0x56df3d['isDangerous'])return{'valid':![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':_0x56df3d[_0x2df7c0(0xa9)]||_0x56df3d[_0x2df7c0(0xaf)]+_0x2df7c0(0xbb)};if(_0x56df3d[_0x2df7c0(0xaf)]===_0x2df7c0(0xa6))return{'valid':![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x56df3d,'tables':_0x1d168d,'parameters':_0x222c4c,'message':_0x56df3d[_0x2df7c0(0xaf)]+_0x2df7c0(0xc3)+(_0x1d168d[_0x2df7c0(0xbe)]?_0x1d168d[_0x2df7c0(0xba)](',\x20'):_0x2df7c0(0xb4))+(_0x222c4c[_0x2df7c0(0xbe)]?'\x20with\x20parameters:\x20'+_0x222c4c[_0x2df7c0(0xba)](',\x20'):'')};}function a197_0x548c(){const _0x195d64=['type','367997vUVuSt','SQL\x20content\x20is\x20empty','INSERT','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','unknown\x20table(s)','712kToXRY','UPDATE','2609960KUaDlm','3725722PTrREs','match','join','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','41085cABgSZ','length','split','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','matchAll','add','\x20query\x20targeting\x20','9pOTree','push','SELECT','4571440ATbkWK','trim','replace','749284RuuvJr','DELETE','1037580ZdOBSY','UNKNOWN','from','6xkdrIM','reason','startsWith','includes','DDL','test','WITH'];a197_0x548c=function(){return _0x195d64;};return a197_0x548c();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x137c6a=a198_0x5d97;(function(_0x30fc01,_0x30cfa2){const _0x25213c=a198_0x5d97,_0xa7fe05=_0x30fc01();while(!![]){try{const _0x5d7ecc=-parseInt(_0x25213c(0xf2))/0x1*(-parseInt(_0x25213c(0xf8))/0x2)+parseInt(_0x25213c(0x102))/0x3*(-parseInt(_0x25213c(0xfa))/0x4)+parseInt(_0x25213c(0xfb))/0x5*(parseInt(_0x25213c(0xf7))/0x6)+-parseInt(_0x25213c(0x100))/0x7+-parseInt(_0x25213c(0x101))/0x8*(parseInt(_0x25213c(0xf5))/0x9)+parseInt(_0x25213c(0xfd))/0xa+-parseInt(_0x25213c(0xf1))/0xb*(-parseInt(_0x25213c(0xf4))/0xc);if(_0x5d7ecc===_0x30cfa2)break;else _0xa7fe05['push'](_0xa7fe05['shift']());}catch(_0x4eb309){_0xa7fe05['push'](_0xa7fe05['shift']());}}}(a198_0x404a,0x943c7));function a198_0x5d97(_0x1e0420,_0x1f186d){_0x1e0420=_0x1e0420-0xf1;const _0x404a5c=a198_0x404a();let _0x5d971f=_0x404a5c[_0x1e0420];return _0x5d971f;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a198_0x404a(){const _0x4f65df=['478874GHXLRP','Set\x20appcode\x20via\x20`','96efVUyl','4245PJbklg','\x0a\x20\x20\x20\x20\x20\x20\x20','751820mTeXls','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4102609CzNnQZ','59984xkAOQw','29853dlYszu','682wEChsu','2CAiLfm','Run\x20`','190824WnSHPN','423QUhrEt','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1728YYlbSn'];a198_0x404a=function(){return _0x4f65df;};return a198_0x404a();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x137c6a(0xf3)+CLI_BIN_NAME+a198_0x137c6a(0xfe),'configMissingHint':[a198_0x137c6a(0xf9)+CLI_BIN_NAME+a198_0x137c6a(0xff),'Tip:\x20`'+CLI_BIN_NAME+a198_0x137c6a(0xf6)]['join'](a198_0x137c6a(0xfc)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a198_0x3e11a0=a198_0xe2fb;(function(_0x38ade8,_0x113cab){const _0x23a671=a198_0xe2fb,_0x51697b=_0x38ade8();while(!![]){try{const _0x4cfa8e=parseInt(_0x23a671(0x18a))/0x1*(parseInt(_0x23a671(0x190))/0x2)+parseInt(_0x23a671(0x185))/0x3+parseInt(_0x23a671(0x18f))/0x4+parseInt(_0x23a671(0x187))/0x5+parseInt(_0x23a671(0x184))/0x6+parseInt(_0x23a671(0x186))/0x7+-parseInt(_0x23a671(0x188))/0x8;if(_0x4cfa8e===_0x113cab)break;else _0x51697b['push'](_0x51697b['shift']());}catch(_0x18d225){_0x51697b['push'](_0x51697b['shift']());}}}(a198_0x3ecb,0xc582b));function a198_0xe2fb(_0x194d7b,_0x20587a){_0x194d7b=_0x194d7b-0x184;const _0x3ecbf4=a198_0x3ecb();let _0xe2fb1b=_0x3ecbf4[_0x194d7b];return _0xe2fb1b;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a198_0x3ecb(){const _0x5dac24=['Run\x20`','Tip:\x20`','4386306hTHmQY','4820946PAqTDA','4729956MfEVry','2332080NTNKCM','26584248eKUXcy','Set\x20appcode\x20via\x20`','10451ixqCmx','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20auth`\x20to\x20login\x20first.','join','\x0a\x20\x20\x20\x20\x20\x20\x20','1646016gyDtKY','46Trcpnp','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.'];a198_0x3ecb=function(){return _0x5dac24;};return a198_0x3ecb();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x3e11a0(0x192)+CLI_BIN_NAME+a198_0x3e11a0(0x18c),'configMissingHint':[a198_0x3e11a0(0x189)+CLI_BIN_NAME+a198_0x3e11a0(0x191),a198_0x3e11a0(0x193)+CLI_BIN_NAME+a198_0x3e11a0(0x18b)][a198_0x3e11a0(0x18d)](a198_0x3e11a0(0x18e)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x6810db,_0x3009f4){var _0x9a9109=a199_0x4f36,_0x3bf7f4=_0x6810db();while(!![]){try{var _0x177373=parseInt(_0x9a9109(0x181))/0x1+parseInt(_0x9a9109(0x180))/0x2*(parseInt(_0x9a9109(0x188))/0x3)+-parseInt(_0x9a9109(0x17f))/0x4+-parseInt(_0x9a9109(0x187))/0x5+parseInt(_0x9a9109(0x185))/0x6*(parseInt(_0x9a9109(0x186))/0x7)+-parseInt(_0x9a9109(0x183))/0x8*(parseInt(_0x9a9109(0x184))/0x9)+-parseInt(_0x9a9109(0x182))/0xa;if(_0x177373===_0x3009f4)break;else _0x3bf7f4['push'](_0x3bf7f4['shift']());}catch(_0x570075){_0x3bf7f4['push'](_0x3bf7f4['shift']());}}}(a199_0x569a,0xa23c3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x4dea75}from'@lovrabet/cli-framework';function a199_0x569a(){var _0x95032b=['900676zZQekW','2qZHWmT','1307270zoeYPY','3182880vQjHBG','8RHxjhu','4756086JBlVeq','2028mRtRma','12817irRbBB','2540885UFuemK','955365mtbLEA'];a199_0x569a=function(){return _0x95032b;};return a199_0x569a();}function a199_0x4f36(_0x435929,_0x5cfb92){_0x435929=_0x435929-0x17f;var _0x569ae1=a199_0x569a();var _0x4f36f6=_0x569ae1[_0x435929];return _0x4f36f6;}export function buildAllFlags(_0x195de9){return a199_0x4dea75(_0x195de9,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a199_0x5ce6(_0x184ee5,_0x4a01bd){_0x184ee5=_0x184ee5-0xd9;var _0x261dcc=a199_0x261d();var _0x5ce638=_0x261dcc[_0x184ee5];return _0x5ce638;}(function(_0x4973de,_0x11f1aa){var _0x532bf7=a199_0x5ce6,_0x3b9147=_0x4973de();while(!![]){try{var _0x549414=parseInt(_0x532bf7(0xe0))/0x1*(parseInt(_0x532bf7(0xdb))/0x2)+parseInt(_0x532bf7(0xe3))/0x3*(-parseInt(_0x532bf7(0xdd))/0x4)+parseInt(_0x532bf7(0xdc))/0x5*(parseInt(_0x532bf7(0xe1))/0x6)+parseInt(_0x532bf7(0xda))/0x7+-parseInt(_0x532bf7(0xdf))/0x8*(-parseInt(_0x532bf7(0xe2))/0x9)+parseInt(_0x532bf7(0xe4))/0xa*(parseInt(_0x532bf7(0xde))/0xb)+-parseInt(_0x532bf7(0xd9))/0xc;if(_0x549414===_0x11f1aa)break;else _0x3b9147['push'](_0x3b9147['shift']());}catch(_0x7d5013){_0x3b9147['push'](_0x3b9147['shift']());}}}(a199_0x261d,0xb87a8));function a199_0x261d(){var _0x1fca4d=['335292voUHCf','11EOaUwf','1703568nQJmEP','1508775HOmTEV','18TlgMFs','27srJfgB','21fcVyyZ','6335030uSiyfi','33934104LnekVd','2238138GcCBYf','2fEhfBK','1782295tYPBQP'];a199_0x261d=function(){return _0x1fca4d;};return a199_0x261d();}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x30222a}from'@lovrabet/cli-framework';export function buildAllFlags(_0x5e3438){return a199_0x30222a(_0x5e3438,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a200_0xfef1ef=a200_0x2c15;(function(_0x45161c,_0x3361c4){const _0x45d4cd=a200_0x2c15,_0x12079b=_0x45161c();while(!![]){try{const _0x1a2c38=parseInt(_0x45d4cd(0x107))/0x1*(-parseInt(_0x45d4cd(0x103))/0x2)+parseInt(_0x45d4cd(0x10b))/0x3+-parseInt(_0x45d4cd(0x108))/0x4+parseInt(_0x45d4cd(0x105))/0x5+parseInt(_0x45d4cd(0x104))/0x6*(-parseInt(_0x45d4cd(0x106))/0x7)+-parseInt(_0x45d4cd(0x109))/0x8*(-parseInt(_0x45d4cd(0x10a))/0x9)+parseInt(_0x45d4cd(0x10c))/0xa;if(_0x1a2c38===_0x3361c4)break;else _0x12079b['push'](_0x12079b['shift']());}catch(_0x4d657e){_0x12079b['push'](_0x12079b['shift']());}}}(a200_0x55bf,0xc38b0));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a200_0x2c15(_0x5d23c9,_0x4ad6e1){_0x5d23c9=_0x5d23c9-0x103;const _0x55bfdd=a200_0x55bf();let _0x2c1574=_0x55bfdd[_0x5d23c9];return _0x2c1574;}function a200_0x55bf(){const _0x2ae07e=['7437330SiSYoC','parseFlags','2EojWtm','42WyZEnv','5779885JpAIAr','351946IjyHLr','920827bRaaen','1592728xGngMA','120tuVYJh','329877YsnluI','67182maPwFp'];a200_0x55bf=function(){return _0x2ae07e;};return a200_0x55bf();}export const parseFlags=helpers[a200_0xfef1ef(0x10d)];export const validateFlags=helpers['validateFlags'];
1
+ function a200_0x40c9(){const _0x522b38=['validateFlags','2mUAMFx','1049351WJYVkG','19863STIHGV','262962bAdIFY','3117186sYjPiz','4332036BrHvVz','328eduGGo','75aLMBNs','9060865GoDOmP','50niagRm','307278kWnzJp','parseFlags'];a200_0x40c9=function(){return _0x522b38;};return a200_0x40c9();}const a200_0x32713d=a200_0x6c4c;function a200_0x6c4c(_0x508113,_0x5d5a67){_0x508113=_0x508113-0x1f3;const _0x40c935=a200_0x40c9();let _0x6c4c6e=_0x40c935[_0x508113];return _0x6c4c6e;}(function(_0x1ba36d,_0x44afc3){const _0x50f9f0=a200_0x6c4c,_0x16ca25=_0x1ba36d();while(!![]){try{const _0x46e6fd=-parseInt(_0x50f9f0(0x1fe))/0x1+-parseInt(_0x50f9f0(0x1fd))/0x2*(-parseInt(_0x50f9f0(0x1ff))/0x3)+-parseInt(_0x50f9f0(0x1f5))/0x4+parseInt(_0x50f9f0(0x1f7))/0x5*(parseInt(_0x50f9f0(0x1fa))/0x6)+-parseInt(_0x50f9f0(0x1f3))/0x7*(parseInt(_0x50f9f0(0x1f6))/0x8)+-parseInt(_0x50f9f0(0x1f4))/0x9+parseInt(_0x50f9f0(0x1f9))/0xa*(parseInt(_0x50f9f0(0x1f8))/0xb);if(_0x46e6fd===_0x44afc3)break;else _0x16ca25['push'](_0x16ca25['shift']());}catch(_0x2f7c96){_0x16ca25['push'](_0x16ca25['shift']());}}}(a200_0x40c9,0xd57e7));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a200_0x32713d(0x1fb)];export const validateFlags=helpers[a200_0x32713d(0x1fc)];
@@ -1 +1 @@
1
- const a201_0x5c115f=a201_0x5707;(function(_0x5217e2,_0x1f62a5){const _0x7e68f5=a201_0x5707,_0x54ee7b=_0x5217e2();while(!![]){try{const _0x5a43e5=-parseInt(_0x7e68f5(0x15f))/0x1+parseInt(_0x7e68f5(0x164))/0x2+parseInt(_0x7e68f5(0x167))/0x3*(-parseInt(_0x7e68f5(0x163))/0x4)+-parseInt(_0x7e68f5(0x160))/0x5+parseInt(_0x7e68f5(0x15d))/0x6+-parseInt(_0x7e68f5(0x169))/0x7+parseInt(_0x7e68f5(0x166))/0x8;if(_0x5a43e5===_0x1f62a5)break;else _0x54ee7b['push'](_0x54ee7b['shift']());}catch(_0x3212e5){_0x54ee7b['push'](_0x54ee7b['shift']());}}}(a201_0x5384,0xac2a1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a201_0x5707(_0x3c9e4f,_0x20f26c){_0x3c9e4f=_0x3c9e4f-0x15d;const _0x538460=a201_0x5384();let _0x570794=_0x538460[_0x3c9e4f];return _0x570794;}function a201_0x5384(){const _0x15d1f0=['3757292zojJck','2692674CDriUn','\x20[args]\x20[flags]','690337AxGWUi','4415455MkrrWT','generateServiceHelp','generateCommandHelp','4BFjUsZ','442796ZUnGni','Requires\x20appcode\x20(set\x20via\x20`','24736024ZRNmKI','2840433UOrNTk','\x20workspace\x20init`\x20or\x20--appcode).'];a201_0x5384=function(){return _0x15d1f0;};return a201_0x5384();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2f6b9f=>serviceGroups['get'](_0x2f6b9f),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x5c115f(0x165)+CLI_BIN_NAME+a201_0x5c115f(0x168),'serviceUsageSuffix':a201_0x5c115f(0x15e)});export function generateCommandHelp(_0x39cf2f){const _0x5c22ae=a201_0x5c115f;return generators[_0x5c22ae(0x162)](_0x39cf2f);}export const generateServiceHelp=generators[a201_0x5c115f(0x161)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a201_0x1ced1c=a201_0x2f70;(function(_0x40748b,_0x46dd4d){const _0x4e3e96=a201_0x2f70,_0x52702e=_0x40748b();while(!![]){try{const _0x1ecd54=parseInt(_0x4e3e96(0x177))/0x1*(-parseInt(_0x4e3e96(0x16f))/0x2)+parseInt(_0x4e3e96(0x17a))/0x3+-parseInt(_0x4e3e96(0x175))/0x4*(-parseInt(_0x4e3e96(0x172))/0x5)+-parseInt(_0x4e3e96(0x16b))/0x6*(parseInt(_0x4e3e96(0x171))/0x7)+parseInt(_0x4e3e96(0x16e))/0x8+parseInt(_0x4e3e96(0x170))/0x9+-parseInt(_0x4e3e96(0x17b))/0xa;if(_0x1ecd54===_0x46dd4d)break;else _0x52702e['push'](_0x52702e['shift']());}catch(_0x533d68){_0x52702e['push'](_0x52702e['shift']());}}}(a201_0x3481,0x18a62));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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x29c85c=>serviceGroups[a201_0x1ced1c(0x179)](_0x29c85c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x1ced1c(0x16d)+CLI_BIN_NAME+a201_0x1ced1c(0x174),'serviceUsageSuffix':a201_0x1ced1c(0x176)});function a201_0x2f70(_0x22e70c,_0x108d9c){_0x22e70c=_0x22e70c-0x16b;const _0x348117=a201_0x3481();let _0x2f7086=_0x348117[_0x22e70c];return _0x2f7086;}export function generateCommandHelp(_0x282ac1){const _0x166a11=a201_0x1ced1c;return generators[_0x166a11(0x16c)](_0x282ac1);}function a201_0x3481(){const _0x2c54fd=['174013QPznPh','28015IiLfPw','generateServiceHelp','\x20workspace\x20init`\x20or\x20--appcode).','80zipBfr','\x20[args]\x20[flags]','3skYTtH','generateFullHelp','get','561561jNXquS','3406910MNwQkO','36MQMlxp','generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20`','1146032bwnjIA','5602aJbzLA','1410381sUHmvn'];a201_0x3481=function(){return _0x2c54fd;};return a201_0x3481();}export const generateServiceHelp=generators[a201_0x1ced1c(0x173)];export const generateFullHelp=generators[a201_0x1ced1c(0x178)];
@@ -1 +1 @@
1
- (function(_0x226806,_0x2c2485){var _0x13bd89=a202_0x4995,_0x62f254=_0x226806();while(!![]){try{var _0x19de4e=-parseInt(_0x13bd89(0x19a))/0x1*(parseInt(_0x13bd89(0x19b))/0x2)+parseInt(_0x13bd89(0x196))/0x3*(parseInt(_0x13bd89(0x19e))/0x4)+parseInt(_0x13bd89(0x19f))/0x5+-parseInt(_0x13bd89(0x199))/0x6*(parseInt(_0x13bd89(0x197))/0x7)+parseInt(_0x13bd89(0x198))/0x8*(-parseInt(_0x13bd89(0x195))/0x9)+-parseInt(_0x13bd89(0x19d))/0xa+parseInt(_0x13bd89(0x19c))/0xb;if(_0x19de4e===_0x2c2485)break;else _0x62f254['push'](_0x62f254['shift']());}catch(_0x6f4121){_0x62f254['push'](_0x62f254['shift']());}}}(a202_0x15d5,0x75cf3));function a202_0x4995(_0x370439,_0x1c52cf){_0x370439=_0x370439-0x195;var _0x15d55e=a202_0x15d5();var _0x499501=_0x15d55e[_0x370439];return _0x499501;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a202_0x15d5(){var _0x5ab2c9=['44716IFSZNz','16TUzrEI','366kDrupW','169527vpYANe','4CEINUJ','10937993Mecqzs','5848050PnTyoI','419996ylkHPK','495020CxqEbQ','145287HZAFgL','21iKLpFI'];a202_0x15d5=function(){return _0x5ab2c9;};return a202_0x15d5();}
1
+ (function(_0x2758a1,_0x599540){var _0x387a4a=a202_0x1b64,_0x379f05=_0x2758a1();while(!![]){try{var _0x550520=-parseInt(_0x387a4a(0xce))/0x1+parseInt(_0x387a4a(0xcc))/0x2*(parseInt(_0x387a4a(0xc8))/0x3)+parseInt(_0x387a4a(0xca))/0x4+parseInt(_0x387a4a(0xcd))/0x5*(parseInt(_0x387a4a(0xd1))/0x6)+-parseInt(_0x387a4a(0xd2))/0x7*(parseInt(_0x387a4a(0xcf))/0x8)+-parseInt(_0x387a4a(0xc9))/0x9*(-parseInt(_0x387a4a(0xd0))/0xa)+-parseInt(_0x387a4a(0xcb))/0xb;if(_0x550520===_0x599540)break;else _0x379f05['push'](_0x379f05['shift']());}catch(_0x332b1a){_0x379f05['push'](_0x379f05['shift']());}}}(a202_0x4edf,0x92cb5));function a202_0x1b64(_0x1a09bd,_0x5f3b00){_0x1a09bd=_0x1a09bd-0xc8;var _0x4edff6=a202_0x4edf();var _0x1b64e3=_0x4edff6[_0x1a09bd];return _0x1b64e3;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a202_0x4edf(){var _0x21036c=['2400UOEDvT','86909tTeYXW','3016WsUCtM','57440NQVZCx','7248QpKzYZ','3241cXCgnk','3OZYyCO','1116BcvaHd','3869384DZjEPR','26533980kjlUOW','2030934ayxELI'];a202_0x4edf=function(){return _0x21036c;};return a202_0x4edf();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x50a13e,_0x172091){const _0x1aa803=a203_0x559e,_0x55fee9=_0x50a13e();while(!![]){try{const _0x6942c4=parseInt(_0x1aa803(0xff))/0x1+parseInt(_0x1aa803(0x101))/0x2+parseInt(_0x1aa803(0xfb))/0x3*(parseInt(_0x1aa803(0x109))/0x4)+-parseInt(_0x1aa803(0xfe))/0x5*(-parseInt(_0x1aa803(0x108))/0x6)+parseInt(_0x1aa803(0x105))/0x7+-parseInt(_0x1aa803(0x104))/0x8*(-parseInt(_0x1aa803(0x103))/0x9)+-parseInt(_0x1aa803(0x102))/0xa;if(_0x6942c4===_0x172091)break;else _0x55fee9['push'](_0x55fee9['shift']());}catch(_0x3a8163){_0x55fee9['push'](_0x55fee9['shift']());}}}(a203_0x4b9d,0x8fc20));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x467baf,_0x942f11){const _0x5cf46a=a203_0x559e,_0x1e1d4b=_0x467baf[_0x5cf46a(0xfd)],{_notice:_0x58cf0a,..._0x3179e8}=_0x467baf;void _0x58cf0a,baseFormatOutput(_0x3179e8,_0x942f11),_0x942f11[_0x5cf46a(0xfa)]===_0x5cf46a(0x100)&&printPrettyNotice(_0x1e1d4b);}function a203_0x559e(_0x46c143,_0x1381c1){_0x46c143=_0x46c143-0xfa;const _0x4b9d94=a203_0x4b9d();let _0x559eb2=_0x4b9d94[_0x46c143];return _0x559eb2;}function a203_0x4b9d(){const _0x1e0b70=['url','message','36870cWDyuE','158068wKjmPE','format','9FbeZRb','update','_notice','865ehfGmH','403317ZHjHzZ','pretty','774976yMRHvB','20096270iMDfmz','1529514UoQnLM','8WggWBU','3192504rmKsPH'];a203_0x4b9d=function(){return _0x1e0b70;};return a203_0x4b9d();}function printPrettyNotice(_0x3fde9b){const _0x5b8d1a=a203_0x559e;if(!_0x3fde9b?.[_0x5b8d1a(0xfc)])return;console['error'](_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x107)]+'\x20('+_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x106)]+')');}
1
+ (function(_0x3c1548,_0x5eb783){const _0x2cf81b=a203_0x1673,_0x5efe24=_0x3c1548();while(!![]){try{const _0x27aae5=parseInt(_0x2cf81b(0x128))/0x1+-parseInt(_0x2cf81b(0x12c))/0x2+-parseInt(_0x2cf81b(0x12d))/0x3+-parseInt(_0x2cf81b(0x130))/0x4*(-parseInt(_0x2cf81b(0x134))/0x5)+parseInt(_0x2cf81b(0x132))/0x6*(parseInt(_0x2cf81b(0x129))/0x7)+parseInt(_0x2cf81b(0x131))/0x8*(-parseInt(_0x2cf81b(0x135))/0x9)+parseInt(_0x2cf81b(0x138))/0xa*(-parseInt(_0x2cf81b(0x133))/0xb);if(_0x27aae5===_0x5eb783)break;else _0x5efe24['push'](_0x5efe24['shift']());}catch(_0x982cc5){_0x5efe24['push'](_0x5efe24['shift']());}}}(a203_0x2b53,0x6f07f));function a203_0x2b53(){const _0x560823=['_notice','3565924jeNfLv','374840ogGWRk','78TARRmZ','99OauxQX','5bnDYeI','99nCYvFV','error','format','229190cpmcJy','466257BHoYBd','428813TKeuJs','url','pretty','786284SfEYWM','1753512dUexfJ','update'];a203_0x2b53=function(){return _0x560823;};return a203_0x2b53();}function a203_0x1673(_0x5d914a,_0x50bc5e){_0x5d914a=_0x5d914a-0x128;const _0x2b53be=a203_0x2b53();let _0x167392=_0x2b53be[_0x5d914a];return _0x167392;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x2f467d,_0x4b8859){const _0x10040f=a203_0x1673,_0x300d57=_0x2f467d[_0x10040f(0x12f)],{_notice:_0x5e7019,..._0x188ffd}=_0x2f467d;void _0x5e7019,baseFormatOutput(_0x188ffd,_0x4b8859),_0x4b8859[_0x10040f(0x137)]===_0x10040f(0x12b)&&printPrettyNotice(_0x300d57);}function printPrettyNotice(_0x3ad3b6){const _0x45031a=a203_0x1673;if(!_0x3ad3b6?.[_0x45031a(0x12e)])return;console[_0x45031a(0x136)](_0x3ad3b6['update']['message']+'\x20('+_0x3ad3b6['update'][_0x45031a(0x12a)]+')');}
@@ -1 +1 @@
1
- function a204_0x314e(_0x4febea,_0x377113){_0x4febea=_0x4febea-0x9c;var _0x297002=a204_0x2970();var _0x314e0c=_0x297002[_0x4febea];return _0x314e0c;}(function(_0x2ec4d8,_0x509889){var _0x24991a=a204_0x314e,_0x102881=_0x2ec4d8();while(!![]){try{var _0x2edce1=parseInt(_0x24991a(0xa0))/0x1+parseInt(_0x24991a(0x9d))/0x2+-parseInt(_0x24991a(0xa2))/0x3+parseInt(_0x24991a(0x9e))/0x4+-parseInt(_0x24991a(0xa1))/0x5+-parseInt(_0x24991a(0x9c))/0x6+parseInt(_0x24991a(0x9f))/0x7;if(_0x2edce1===_0x509889)break;else _0x102881['push'](_0x102881['shift']());}catch(_0x476872){_0x102881['push'](_0x102881['shift']());}}}(a204_0x2970,0x1d094));function a204_0x2970(){var _0x24a1ff=['140208eUbrHg','900774TAGWOo','188929wrRLfO','375090xlshxM','470847gQLDvN','1337100FUGDhq','442172eomIoY'];a204_0x2970=function(){return _0x24a1ff;};return a204_0x2970();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a204_0x5d80(_0x2accb6,_0x1cb71a){_0x2accb6=_0x2accb6-0xbd;var _0x2b90f4=a204_0x2b90();var _0x5d80fb=_0x2b90f4[_0x2accb6];return _0x5d80fb;}(function(_0x1d51d3,_0x1cd11d){var _0x2c4708=a204_0x5d80,_0x481964=_0x1d51d3();while(!![]){try{var _0x1d065d=parseInt(_0x2c4708(0xbe))/0x1*(-parseInt(_0x2c4708(0xc7))/0x2)+-parseInt(_0x2c4708(0xc6))/0x3+-parseInt(_0x2c4708(0xc5))/0x4+parseInt(_0x2c4708(0xc4))/0x5+parseInt(_0x2c4708(0xc3))/0x6*(parseInt(_0x2c4708(0xc1))/0x7)+parseInt(_0x2c4708(0xbf))/0x8*(-parseInt(_0x2c4708(0xc0))/0x9)+parseInt(_0x2c4708(0xc2))/0xa*(parseInt(_0x2c4708(0xbd))/0xb);if(_0x1d065d===_0x1cd11d)break;else _0x481964['push'](_0x481964['shift']());}catch(_0x586632){_0x481964['push'](_0x481964['shift']());}}}(a204_0x2b90,0x80dad));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a204_0x2b90(){var _0x51e807=['55idciYr','780347JCSLRR','6159576PVkInD','9oWEMrT','352562mHEgkv','4463930NBqyob','42eYFeHb','2298555UsHZgi','3144232ZacmVP','540291kHUwbY','2zFHFIF'];a204_0x2b90=function(){return _0x51e807;};return a204_0x2b90();}
@@ -1 +1 @@
1
- function a205_0x5da6(_0x31787e,_0x37af34){_0x31787e=_0x31787e-0x6a;const _0x55f83d=a205_0x55f8();let _0x5da6a9=_0x55f83d[_0x31787e];return _0x5da6a9;}(function(_0x3a21c2,_0x4ecce8){const _0x474a93=a205_0x5da6,_0x1f17c2=_0x3a21c2();while(!![]){try{const _0x372328=parseInt(_0x474a93(0x7a))/0x1*(-parseInt(_0x474a93(0x75))/0x2)+parseInt(_0x474a93(0x7f))/0x3+parseInt(_0x474a93(0x79))/0x4+parseInt(_0x474a93(0x80))/0x5+-parseInt(_0x474a93(0x74))/0x6*(parseInt(_0x474a93(0x71))/0x7)+-parseInt(_0x474a93(0x70))/0x8+-parseInt(_0x474a93(0x7b))/0x9*(parseInt(_0x474a93(0x76))/0xa);if(_0x372328===_0x4ecce8)break;else _0x1f17c2['push'](_0x1f17c2['shift']());}catch(_0x35d3d1){_0x1f17c2['push'](_0x1f17c2['shift']());}}}(a205_0x55f8,0xc8a17));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a205_0x55f8(){const _0x9ed5c3=['4435630bMQIlP','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','332068qUOljy','2hbEGmZ','9aXPqTr','flags','code','type','4446834OPjAvp','7016235lxNthh','Unknown\x20alias\x20\x22','join','\x22.\x20','some','string','\x20api\x20pull`\x20first.','alias','1167320AenqeK','182665SjdbcM','length','validation','6vsDDgt','1531186iigVxM'];a205_0x55f8=function(){return _0x9ed5c3;};return a205_0x55f8();}export function resolveAliasToCode(_0x368878,_0x5b8ed7,_0x366286,_0x367178){const _0x1f0c02=a205_0x5da6,_0x490bd6=_0x368878['flags']['some'](_0x38771a=>_0x38771a['name']==='code'&&_0x38771a[_0x1f0c02(0x7e)]===_0x1f0c02(0x6d)),_0x1c1723=_0x368878[_0x1f0c02(0x7c)][_0x1f0c02(0x6c)](_0x45de5c=>_0x45de5c['name']===_0x1f0c02(0x6f)&&_0x45de5c['type']===_0x1f0c02(0x6d));if(!_0x490bd6||!_0x1c1723)return;const _0x53e22f=_0x5b8ed7[_0x1f0c02(0x7d)]?String(_0x5b8ed7[_0x1f0c02(0x7d)]):'',_0x2dad5f=_0x5b8ed7['alias']?String(_0x5b8ed7[_0x1f0c02(0x6f)]):'';if(!_0x53e22f&&!_0x2dad5f)throw CliErrors[_0x1f0c02(0x73)]('`'+_0x367178+_0x1f0c02(0x77));if(_0x2dad5f&&!_0x53e22f){const _0x161576=resolveAlias(_0x366286,_0x2dad5f);if(!_0x161576){const _0x1dd4b6=listAliases(_0x366286)['map'](_0x4e51b2=>_0x4e51b2[_0x1f0c02(0x6f)]),_0x3ef95d=_0x1dd4b6[_0x1f0c02(0x72)]?'Available\x20aliases:\x20'+_0x1dd4b6[_0x1f0c02(0x6a)](',\x20'):_0x1f0c02(0x78)+_0x366286+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1f0c02(0x6e);throw CliErrors[_0x1f0c02(0x73)](_0x1f0c02(0x81)+_0x2dad5f+_0x1f0c02(0x6b)+_0x3ef95d);}_0x5b8ed7[_0x1f0c02(0x7d)]=_0x161576;}}
1
+ (function(_0x4ab41c,_0x54b8ac){const _0x3bba1f=a205_0x16c4,_0x255241=_0x4ab41c();while(!![]){try{const _0x301bd3=parseInt(_0x3bba1f(0x1c9))/0x1*(-parseInt(_0x3bba1f(0x1c8))/0x2)+parseInt(_0x3bba1f(0x1d5))/0x3+-parseInt(_0x3bba1f(0x1d7))/0x4*(-parseInt(_0x3bba1f(0x1dc))/0x5)+-parseInt(_0x3bba1f(0x1d2))/0x6+parseInt(_0x3bba1f(0x1cf))/0x7*(parseInt(_0x3bba1f(0x1d4))/0x8)+-parseInt(_0x3bba1f(0x1d9))/0x9*(-parseInt(_0x3bba1f(0x1de))/0xa)+parseInt(_0x3bba1f(0x1c6))/0xb*(-parseInt(_0x3bba1f(0x1c3))/0xc);if(_0x301bd3===_0x54b8ac)break;else _0x255241['push'](_0x255241['shift']());}catch(_0x5a7b19){_0x255241['push'](_0x255241['shift']());}}}(a205_0x24c0,0xd7fe3));function a205_0x16c4(_0x5b3c5d,_0x16315e){_0x5b3c5d=_0x5b3c5d-0x1c3;const _0x24c0d3=a205_0x24c0();let _0x16c49=_0x24c0d3[_0x5b3c5d];return _0x16c49;}import{CliErrors}from'../errors.js';function a205_0x24c0(){const _0x597021=['.\x20Run\x20`','2270970RbcJfx','Unknown\x20alias\x20\x22','8OWMszN','1542858mpmYvg','code','36324PysBmO','\x22.\x20','9inDJVA','name','string','575GLCnFZ','map','8957990jgRdbQ','1737732RaTXOI','flags','\x20api\x20pull`\x20first.','110jOAxWq','validation','94302SphYdt','21KnCjaj','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','alias','No\x20api.ts\x20found\x20in\x20','length','8729581EedXJQ','type'];a205_0x24c0=function(){return _0x597021;};return a205_0x24c0();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x5c0fd5,_0x1fb595,_0x36d485,_0x351c2d){const _0x4d7899=a205_0x16c4,_0x557d1a=_0x5c0fd5[_0x4d7899(0x1c4)]['some'](_0x5dddd6=>_0x5dddd6['name']===_0x4d7899(0x1d6)&&_0x5dddd6[_0x4d7899(0x1d0)]===_0x4d7899(0x1db)),_0x45fb94=_0x5c0fd5[_0x4d7899(0x1c4)][_0x4d7899(0x1ca)](_0x1603d8=>_0x1603d8[_0x4d7899(0x1da)]===_0x4d7899(0x1cc)&&_0x1603d8['type']===_0x4d7899(0x1db));if(!_0x557d1a||!_0x45fb94)return;const _0x1f37ee=_0x1fb595[_0x4d7899(0x1d6)]?String(_0x1fb595[_0x4d7899(0x1d6)]):'',_0x4a97ef=_0x1fb595['alias']?String(_0x1fb595['alias']):'';if(!_0x1f37ee&&!_0x4a97ef)throw CliErrors[_0x4d7899(0x1c7)]('`'+_0x351c2d+_0x4d7899(0x1cb));if(_0x4a97ef&&!_0x1f37ee){const _0x1c94ba=resolveAlias(_0x36d485,_0x4a97ef);if(!_0x1c94ba){const _0x46599e=listAliases(_0x36d485)[_0x4d7899(0x1dd)](_0x6de5d6=>_0x6de5d6[_0x4d7899(0x1cc)]),_0x3a24ca=_0x46599e[_0x4d7899(0x1ce)]?'Available\x20aliases:\x20'+_0x46599e['join'](',\x20'):_0x4d7899(0x1cd)+_0x36d485+_0x4d7899(0x1d1)+CLI_BIN_NAME+_0x4d7899(0x1c5);throw CliErrors[_0x4d7899(0x1c7)](_0x4d7899(0x1d3)+_0x4a97ef+_0x4d7899(0x1d8)+_0x3a24ca);}_0x1fb595[_0x4d7899(0x1d6)]=_0x1c94ba;}}
@@ -1 +1 @@
1
- const a206_0x4409b2=a206_0x51c0;(function(_0x2eca0b,_0x5df69e){const _0x406d68=a206_0x51c0,_0x19dcf7=_0x2eca0b();while(!![]){try{const _0x176c3d=parseInt(_0x406d68(0xba))/0x1+parseInt(_0x406d68(0xb8))/0x2+-parseInt(_0x406d68(0x9e))/0x3*(parseInt(_0x406d68(0xc2))/0x4)+-parseInt(_0x406d68(0xb6))/0x5+parseInt(_0x406d68(0xcb))/0x6*(parseInt(_0x406d68(0xa2))/0x7)+-parseInt(_0x406d68(0xb5))/0x8+parseInt(_0x406d68(0xc1))/0x9;if(_0x176c3d===_0x5df69e)break;else _0x19dcf7['push'](_0x19dcf7['shift']());}catch(_0x31c983){_0x19dcf7['push'](_0x19dcf7['shift']());}}}(a206_0x5b2c,0xd614a));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 a206_0x202371}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x3cbcae){const _0x44d685=a206_0x51c0;return typeof _0x3cbcae===_0x44d685(0xca)&&_0x3cbcae[_0x44d685(0xbd)]()?_0x3cbcae[_0x44d685(0xbd)]():undefined;}function resolveEnvAppCode(){const _0x429fa0=a206_0x51c0,_0x4f2307=stringFlag(process.env.RABETBASE_APPCODE);if(_0x4f2307)return{'name':_0x429fa0(0xb9),'value':_0x4f2307};const _0x56297b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x56297b)return{'name':'LOVRABET_APPCODE','value':_0x56297b};return undefined;}function hasExplicitAppCode(_0x2dedf5,_0x391d84){const _0x5c2799=a206_0x51c0;return!!(stringFlag(_0x2dedf5[_0x5c2799(0xa6)])||stringFlag(_0x391d84[_0x5c2799(0xa6)]));}function a206_0x51c0(_0x25ff7c,_0x5301dd){_0x25ff7c=_0x25ff7c-0x9b;const _0x5b2cb4=a206_0x5b2c();let _0x51c057=_0x5b2cb4[_0x25ff7c];return _0x51c057;}function a206_0x5b2c(){const _0x271570=['No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','rawFlags','defaultPageSize','catch','resolveApiDomain','string','6iAPCZK','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','execute','doctor','name','service','authRequired','apiDir','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','hasFormat','selectedAppName','nonInteractive','1378611wuWbKL','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','Set\x20appcode\x20via\x20`','resolveAppCode','2939587ItJCrp','pageSize','requiresAppCode','value','appcode','update','defaultVerbose','includes','⚠\x20\x20High-risk\x20operation:\x20','pretty','\x20\x20\x20Continue?\x20[y/N]\x20','configMissing','filter','cookie','map','object','command','appCode','validation','13572752ksrZzS','874195ONFcPJ','none','878616cnKuWu','RABETBASE_APPCODE','303273uShguW','_notice','apps','trim','../core/api-client.js','cancelled','riskLevel','26679564NJbLwQ','12DmliOi','isNonInteractive','required'];a206_0x5b2c=function(){return _0x271570;};return a206_0x5b2c();}function assertEnvAppCodeNotIgnored(_0x173fe3,_0x2221ac,_0x4fe3cc){const _0xb48b7f=a206_0x51c0;if(!_0x2221ac||_0x4fe3cc||_0x173fe3===_0x2221ac[_0xb48b7f(0xa5)])return;const _0xe5ee74=_0x173fe3?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x173fe3+'\x22.':_0xb48b7f(0xc5);throw CliErrors[_0xb48b7f(0xb4)](_0x2221ac[_0xb48b7f(0xcf)]+'='+_0x2221ac['value']+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0xe5ee74+'\x20'+(_0xb48b7f(0xcc)+_0x2221ac[_0xb48b7f(0xcf)]+'\x22.'));}export function createPipelineEnv(_0x252c91,_0x258e96,_0x2f2d1c=[]){const _0x3d9a9a=a206_0x51c0;return{'rawFlags':_0x258e96,'args':_0x2f2d1c,'resolveAppCode':()=>_0x252c91['appCode'],'resolveCookie':()=>_0x252c91[_0x3d9a9a(0xaf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x202371(_0x258e96),'defaultFormat':_0x252c91['format'],'defaultPageSize':_0x252c91[_0x3d9a9a(0xa3)],'defaultVerbose':_0x252c91['verbose'],'apiDir':_0x252c91[_0x3d9a9a(0xd2)],'riskLevel':_0x252c91[_0x3d9a9a(0xc0)],'selectedAppName':_0x252c91['explicitAppName'],'mergedCli':{'defaultApp':_0x252c91['defaultApp'],'currentApp':_0x252c91['currentApp'],'appCode':_0x252c91[_0x3d9a9a(0xb3)],'apps':_0x252c91[_0x3d9a9a(0xbc)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a206_0x4409b2(0xae)](_0xe82a9c=>PIPELINE_FLAG_NAMES['has'](_0xe82a9c[a206_0x4409b2(0xcf)]))[a206_0x4409b2(0xb0)](({name:_0x8fadb2,type:_0x564620,description:_0x2aab34})=>({'name':_0x8fadb2,'type':_0x564620,'description':_0x2aab34})),'formatOutput':formatOutput,'getCommandLabel'(_0x4ee974){const _0x7019a4=a206_0x4409b2;return CLI_BIN_NAME+'\x20'+_0x4ee974[_0x7019a4(0xd0)]+'\x20'+_0x4ee974[_0x7019a4(0xb2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x253a0d){const _0x2ad1e3=a206_0x4409b2;return CliErrors[_0x2ad1e3(0xb4)](_0x253a0d);}},async 'prepare'(_0x232a18,_0x2ca8e8,_0x6d5bb3,_0x2459e3){const _0x5473b4=a206_0x4409b2,_0x470aef=_0x2ca8e8[_0x5473b4(0xd2)]||DEFAULT_API_DIR;resolveAliasToCode(_0x232a18,_0x6d5bb3,_0x470aef,_0x2459e3);const _0x56e49e=resolveCommandAuthMode(_0x232a18);let _0x2e0490='';if(_0x56e49e!==_0x5473b4(0xb7)){_0x2e0490=_0x2ca8e8['resolveCookie']()||'';if(!_0x2e0490){if(_0x56e49e===_0x5473b4(0xc4))throw CliErrors[_0x5473b4(0xd1)]();}else{const {setActiveCookie:_0x3c140d}=await import('../core/api-client.js');_0x3c140d(_0x2e0490);}}const _0x1a285d=_0x2ca8e8[_0x5473b4(0xa1)]()??'';if(_0x232a18[_0x5473b4(0xa4)]!==![]){assertEnvAppCodeNotIgnored(_0x1a285d,resolveEnvAppCode(),hasExplicitAppCode(_0x6d5bb3,_0x2ca8e8[_0x5473b4(0xc6)]));if(!_0x1a285d)throw CliErrors[_0x5473b4(0xad)](_0x5473b4(0xa0)+CLI_BIN_NAME+_0x5473b4(0xd3));}return{'defaults':{'booleans':{'verbose':_0x2ca8e8[_0x5473b4(0xa8)]},'numbers':{'pagesize':_0x2ca8e8[_0x5473b4(0xc7)]}},'extras':{'appCode':_0x1a285d,'cookie':_0x2e0490,'apiDomain':_0x2ca8e8[_0x5473b4(0xc9)](),'apiDir':_0x470aef,'selectedAppName':_0x2ca8e8[_0x5473b4(0x9c)],'mergedCli':_0x2ca8e8['mergedCli']}};},async 'confirmHighRisk'({env:_0x33c15b,commandLabel:_0x5acf47}){const _0x3db935=a206_0x4409b2;if(_0x33c15b[_0x3db935(0xc3)])throw CliErrors[_0x3db935(0xb4)]('High-risk\x20operation\x20`'+_0x5acf47+_0x3db935(0x9f));await requireConfirmationPrompt({'lines':[_0x3db935(0xaa)+_0x5acf47,_0x3db935(0xac)],'createCancelledError':_0x1956c5=>CliErrors[_0x3db935(0xbf)](_0x1956c5)});},async 'finalize'(){const _0x4cadd7=a206_0x4409b2,{clearActiveCookie:_0x5cee94}=await import(_0x4cadd7(0xbe));_0x5cee94();}};export async function runCommand(_0x414633,_0x13bcf2){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x414633)?withUpdateNotice(_0x414633):_0x414633,_0x13bcf2,runnerAdapter);}function shouldAttachUpdateNotice(_0x194264){const _0x3e058d=a206_0x4409b2;if(_0x194264[_0x3e058d(0x9b)]===![])return![];return![_0x3e058d(0xa7),'schema',_0x3e058d(0xce)][_0x3e058d(0xa9)](_0x194264['service']);}function withUpdateNotice(_0xb37bdd){return{..._0xb37bdd,async 'execute'(_0xbfbd31){const _0x52daaf=a206_0x51c0,_0x8d5c80=shouldResolveUpdateNotice(_0xbfbd31)?resolveLatestUpdateNotice()[_0x52daaf(0xc8)](()=>null):Promise['resolve'](null),_0x108d47=await _0xb37bdd[_0x52daaf(0xcd)](_0xbfbd31);return attachUpdateNotice(_0x108d47,await _0x8d5c80);}};}function shouldResolveUpdateNotice(_0x26fca2){const _0x19db16=a206_0x4409b2;return _0x26fca2['format']===_0x19db16(0xab)&&!_0x26fca2[_0x19db16(0x9d)];}function attachUpdateNotice(_0x56b90e,_0x324069){const _0x41fb77=a206_0x4409b2;if(!_0x324069||!_0x56b90e||typeof _0x56b90e!==_0x41fb77(0xb1))return _0x56b90e;const _0x2f56d3=_0x56b90e,_0x27d142=typeof _0x2f56d3[_0x41fb77(0xbb)]===_0x41fb77(0xb1)&&_0x2f56d3[_0x41fb77(0xbb)]!==null?_0x2f56d3['_notice']:{};return{..._0x2f56d3,'_notice':{..._0x27d142,'update':_0x324069}};}
1
+ const a206_0x235aa4=a206_0x52ca;(function(_0x3cb16e,_0x52a778){const _0x5bb2fe=a206_0x52ca,_0x3b9fb4=_0x3cb16e();while(!![]){try{const _0x27fc9d=-parseInt(_0x5bb2fe(0x9d))/0x1+-parseInt(_0x5bb2fe(0x82))/0x2+-parseInt(_0x5bb2fe(0x97))/0x3*(parseInt(_0x5bb2fe(0x96))/0x4)+parseInt(_0x5bb2fe(0xa0))/0x5+-parseInt(_0x5bb2fe(0x7c))/0x6+parseInt(_0x5bb2fe(0x8c))/0x7+parseInt(_0x5bb2fe(0xb1))/0x8*(parseInt(_0x5bb2fe(0xab))/0x9);if(_0x27fc9d===_0x52a778)break;else _0x3b9fb4['push'](_0x3b9fb4['shift']());}catch(_0x533ff8){_0x3b9fb4['push'](_0x3b9fb4['shift']());}}}(a206_0x428e,0xdc362));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a206_0x52ca(_0xcc1923,_0x26462e){_0xcc1923=_0xcc1923-0x79;const _0x428eec=a206_0x428e();let _0x52caa7=_0x428eec[_0xcc1923];return _0x52caa7;}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';function a206_0x428e(){const _0x600b95=['107695DDahdG','riskLevel','cancelled','6192670wmzcKu','\x20\x20\x20Continue?\x20[y/N]\x20','Current\x20resolved\x20appcode\x20is\x20\x22','../core/api-client.js','selectedAppName','apiDir','execute','defaultApp','update','Set\x20appcode\x20via\x20`','object','54351hFJdBE','_notice','resolveApiDomain','explicitAppName','format','verbose','2224LnciCN','name','trim','configMissing','none','2114292UHiIif','defaultPageSize','isNonInteractive','mergedCli','apps','pretty','3592910mWaHSB','includes','defaultVerbose','schema','map','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','requiresAppCode','service','pageSize','catch','5766355JBvIpI','command','RABETBASE_APPCODE','rawFlags','resolveCookie','currentApp','string','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','⚠\x20\x20High-risk\x20operation:\x20','validation','2330492MMIKqq','3WZTtwz','authRequired','appcode','nonInteractive','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','value'];a206_0x428e=function(){return _0x600b95;};return a206_0x428e();}import{isNonInteractive as a206_0x4e6426}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x8d5fb6){const _0x4c61a2=a206_0x52ca;return typeof _0x8d5fb6===_0x4c61a2(0x92)&&_0x8d5fb6[_0x4c61a2(0x79)]()?_0x8d5fb6[_0x4c61a2(0x79)]():undefined;}function resolveEnvAppCode(){const _0x5ec88c=a206_0x52ca,_0xee5fb5=stringFlag(process.env.RABETBASE_APPCODE);if(_0xee5fb5)return{'name':_0x5ec88c(0x8e),'value':_0xee5fb5};const _0x142c3d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x142c3d)return{'name':'LOVRABET_APPCODE','value':_0x142c3d};return undefined;}function hasExplicitAppCode(_0x73e577,_0x241830){const _0xd0b6ba=a206_0x52ca;return!!(stringFlag(_0x73e577[_0xd0b6ba(0x99)])||stringFlag(_0x241830[_0xd0b6ba(0x99)]));}function assertEnvAppCodeNotIgnored(_0x38620f,_0x38216e,_0x4eccf1){const _0x2574f2=a206_0x52ca;if(!_0x38216e||_0x4eccf1||_0x38620f===_0x38216e[_0x2574f2(0x9c)])return;const _0x4eef00=_0x38620f?_0x2574f2(0xa2)+_0x38620f+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x2574f2(0x95)](_0x38216e[_0x2574f2(0xb2)]+'='+_0x38216e[_0x2574f2(0x9c)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4eef00+'\x20'+(_0x2574f2(0x87)+_0x38216e['name']+'\x22.'));}export function createPipelineEnv(_0x5276be,_0x3f02ed,_0x49759b=[]){const _0x2b7f1b=a206_0x52ca;return{'rawFlags':_0x3f02ed,'args':_0x49759b,'resolveAppCode':()=>_0x5276be['appCode'],'resolveCookie':()=>_0x5276be['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a206_0x4e6426(_0x3f02ed),'defaultFormat':_0x5276be[_0x2b7f1b(0xaf)],'defaultPageSize':_0x5276be[_0x2b7f1b(0x8a)],'defaultVerbose':_0x5276be[_0x2b7f1b(0xb0)],'apiDir':_0x5276be[_0x2b7f1b(0xa5)],'riskLevel':_0x5276be[_0x2b7f1b(0x9e)],'selectedAppName':_0x5276be[_0x2b7f1b(0xae)],'mergedCli':{'defaultApp':_0x5276be[_0x2b7f1b(0xa7)],'currentApp':_0x5276be[_0x2b7f1b(0x91)],'appCode':_0x5276be['appCode'],'apps':_0x5276be[_0x2b7f1b(0x80)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x19af44=>PIPELINE_FLAG_NAMES['has'](_0x19af44['name']))[a206_0x235aa4(0x86)](({name:_0x24f2de,type:_0x4ebd86,description:_0x5082f4})=>({'name':_0x24f2de,'type':_0x4ebd86,'description':_0x5082f4})),'formatOutput':formatOutput,'getCommandLabel'(_0x53dd79){const _0x502981=a206_0x235aa4;return CLI_BIN_NAME+'\x20'+_0x53dd79[_0x502981(0x89)]+'\x20'+_0x53dd79[_0x502981(0x8d)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1fc244){const _0x120c25=a206_0x235aa4;return CliErrors[_0x120c25(0x95)](_0x1fc244);}},async 'prepare'(_0x42aabf,_0x409e14,_0x43fe20,_0x4efcc6){const _0x43b236=a206_0x235aa4,_0xf51536=_0x409e14[_0x43b236(0xa5)]||DEFAULT_API_DIR;resolveAliasToCode(_0x42aabf,_0x43fe20,_0xf51536,_0x4efcc6);const _0x1c54f3=resolveCommandAuthMode(_0x42aabf);let _0x32b65f='';if(_0x1c54f3!==_0x43b236(0x7b)){_0x32b65f=_0x409e14[_0x43b236(0x90)]()||'';if(!_0x32b65f){if(_0x1c54f3==='required')throw CliErrors[_0x43b236(0x98)]();}else{const {setActiveCookie:_0x5a4415}=await import(_0x43b236(0xa3));_0x5a4415(_0x32b65f);}}const _0x657707=_0x409e14['resolveAppCode']()??'';if(_0x42aabf[_0x43b236(0x88)]!==![]){assertEnvAppCodeNotIgnored(_0x657707,resolveEnvAppCode(),hasExplicitAppCode(_0x43fe20,_0x409e14[_0x43b236(0x8f)]));if(!_0x657707)throw CliErrors[_0x43b236(0x7a)](_0x43b236(0xa9)+CLI_BIN_NAME+_0x43b236(0x93));}return{'defaults':{'booleans':{'verbose':_0x409e14[_0x43b236(0x84)]},'numbers':{'pagesize':_0x409e14[_0x43b236(0x7d)]}},'extras':{'appCode':_0x657707,'cookie':_0x32b65f,'apiDomain':_0x409e14[_0x43b236(0xad)](),'apiDir':_0xf51536,'selectedAppName':_0x409e14[_0x43b236(0xa4)],'mergedCli':_0x409e14[_0x43b236(0x7f)]}};},async 'confirmHighRisk'({env:_0x333245,commandLabel:_0x3a87bb}){const _0x22c2e4=a206_0x235aa4;if(_0x333245[_0x22c2e4(0x7e)])throw CliErrors[_0x22c2e4(0x95)]('High-risk\x20operation\x20`'+_0x3a87bb+_0x22c2e4(0x9b));await requireConfirmationPrompt({'lines':[_0x22c2e4(0x94)+_0x3a87bb,_0x22c2e4(0xa1)],'createCancelledError':_0x3215d8=>CliErrors[_0x22c2e4(0x9f)](_0x3215d8)});},async 'finalize'(){const {clearActiveCookie:_0xd36dcf}=await import('../core/api-client.js');_0xd36dcf();}};export async function runCommand(_0x14df1b,_0x5dd9d7){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x14df1b)?withUpdateNotice(_0x14df1b):_0x14df1b,_0x5dd9d7,runnerAdapter);}function shouldAttachUpdateNotice(_0x44c146){const _0x22da7c=a206_0x235aa4;if(_0x44c146['hasFormat']===![])return![];return![_0x22da7c(0xa8),_0x22da7c(0x85),'doctor'][_0x22da7c(0x83)](_0x44c146[_0x22da7c(0x89)]);}function withUpdateNotice(_0x311a1b){return{..._0x311a1b,async 'execute'(_0x2ad909){const _0x17ae3c=a206_0x52ca,_0x2b3f4e=shouldResolveUpdateNotice(_0x2ad909)?resolveLatestUpdateNotice()[_0x17ae3c(0x8b)](()=>null):Promise['resolve'](null),_0x4bd0b5=await _0x311a1b[_0x17ae3c(0xa6)](_0x2ad909);return attachUpdateNotice(_0x4bd0b5,await _0x2b3f4e);}};}function shouldResolveUpdateNotice(_0x18ef3a){const _0xe7725=a206_0x235aa4;return _0x18ef3a[_0xe7725(0xaf)]===_0xe7725(0x81)&&!_0x18ef3a[_0xe7725(0x9a)];}function attachUpdateNotice(_0x4e4aea,_0x52d6d6){const _0x5eed2f=a206_0x235aa4;if(!_0x52d6d6||!_0x4e4aea||typeof _0x4e4aea!==_0x5eed2f(0xaa))return _0x4e4aea;const _0x3ae6bf=_0x4e4aea,_0x364020=typeof _0x3ae6bf[_0x5eed2f(0xac)]===_0x5eed2f(0xaa)&&_0x3ae6bf['_notice']!==null?_0x3ae6bf['_notice']:{};return{..._0x3ae6bf,'_notice':{..._0x364020,'update':_0x52d6d6}};}
@@ -1 +1 @@
1
- function a207_0xa06b(_0x2b2826,_0x184137){_0x2b2826=_0x2b2826-0x1e2;const _0x1072c1=a207_0x1072();let _0xa06bf3=_0x1072c1[_0x2b2826];return _0xa06bf3;}(function(_0x298978,_0xeb4e65){const _0x1cf01e=a207_0xa06b,_0x5d28ce=_0x298978();while(!![]){try{const _0x5c6469=-parseInt(_0x1cf01e(0x1ea))/0x1+parseInt(_0x1cf01e(0x1ec))/0x2*(parseInt(_0x1cf01e(0x1e6))/0x3)+-parseInt(_0x1cf01e(0x1ed))/0x4+-parseInt(_0x1cf01e(0x1e9))/0x5*(-parseInt(_0x1cf01e(0x1e3))/0x6)+parseInt(_0x1cf01e(0x1e5))/0x7*(-parseInt(_0x1cf01e(0x1eb))/0x8)+-parseInt(_0x1cf01e(0x1e7))/0x9*(parseInt(_0x1cf01e(0x1e2))/0xa)+parseInt(_0x1cf01e(0x1e4))/0xb;if(_0x5c6469===_0xeb4e65)break;else _0x5d28ce['push'](_0x5d28ce['shift']());}catch(_0x3e5e3e){_0x5d28ce['push'](_0x5d28ce['shift']());}}}(a207_0x1072,0xc817f));function a207_0x1072(){const _0x52146b=['354022XljXGy','509992CSEWPx','805846nYkOza','1268064alRDSj','395990xYnwqj','6MCQIRi','18118100bVfDNC','49aFTcvg','3bmXMku','369gwbePI','../commands/registry.js','7552000UuxkGK'];a207_0x1072=function(){return _0x52146b;};return a207_0x1072();}import{buildSchemaPayload as a207_0x3cc6bd}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x2f1b52=a207_0xa06b,{serviceRegistry:_0x48035a,findDefinition:_0x5a4a25}=await import(_0x2f1b52(0x1e8));return a207_0x3cc6bd({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x48035a,'buildAllFlags':buildAllFlags,'findDefinition':_0x5a4a25});}
1
+ (function(_0x2e3dca,_0x5d7225){const _0x320f5f=a207_0x4668,_0x2ebb4=_0x2e3dca();while(!![]){try{const _0x320acd=parseInt(_0x320f5f(0xe1))/0x1*(-parseInt(_0x320f5f(0xdd))/0x2)+parseInt(_0x320f5f(0xdb))/0x3+-parseInt(_0x320f5f(0xe2))/0x4*(-parseInt(_0x320f5f(0xe0))/0x5)+parseInt(_0x320f5f(0xe4))/0x6+-parseInt(_0x320f5f(0xe3))/0x7*(-parseInt(_0x320f5f(0xe5))/0x8)+parseInt(_0x320f5f(0xdc))/0x9*(-parseInt(_0x320f5f(0xd9))/0xa)+parseInt(_0x320f5f(0xdf))/0xb*(-parseInt(_0x320f5f(0xde))/0xc);if(_0x320acd===_0x5d7225)break;else _0x2ebb4['push'](_0x2ebb4['shift']());}catch(_0x1c1b9d){_0x2ebb4['push'](_0x2ebb4['shift']());}}}(a207_0x2554,0xa2207));import{buildSchemaPayload as a207_0x39ad31}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a207_0x4668(_0x5dde8e,_0x535fa5){_0x5dde8e=_0x5dde8e-0xd9;const _0x2554e8=a207_0x2554();let _0x46689f=_0x2554e8[_0x5dde8e];return _0x46689f;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x168385=a207_0x4668,{serviceRegistry:_0x315324,findDefinition:_0x4face6}=await import(_0x168385(0xda));return a207_0x39ad31({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x315324,'buildAllFlags':buildAllFlags,'findDefinition':_0x4face6});}function a207_0x2554(){const _0x8feec=['2930BsQMIt','../commands/registry.js','2170002NGYAnS','12546ibAagH','1248330Ifdjoc','18348wmXmzS','11462xjihCV','265jBBPXQ','1mbNrnN','85076yXBEzm','62783ClbUvV','6429456LRRLXk','328liSwde'];a207_0x2554=function(){return _0x8feec;};return a207_0x2554();}
@@ -1 +1 @@
1
- function a208_0x28ae(){var _0x581589=['44mKdDeg','120XQlDEv','2608404gDCgkH','11685500luTMbt','2FCGLCs','289090iiZwGN','5565483IIAcPu','578582hYghxI','447435fiRSxo','992835xOoCQN'];a208_0x28ae=function(){return _0x581589;};return a208_0x28ae();}(function(_0x4768a0,_0x35cac7){var _0x2393a1=a208_0x5716,_0x58a1bc=_0x4768a0();while(!![]){try{var _0x3973fe=parseInt(_0x2393a1(0x178))/0x1+-parseInt(_0x2393a1(0x17f))/0x2*(parseInt(_0x2393a1(0x17a))/0x3)+parseInt(_0x2393a1(0x17b))/0x4*(-parseInt(_0x2393a1(0x180))/0x5)+parseInt(_0x2393a1(0x17d))/0x6+parseInt(_0x2393a1(0x177))/0x7+-parseInt(_0x2393a1(0x17c))/0x8*(-parseInt(_0x2393a1(0x179))/0x9)+-parseInt(_0x2393a1(0x17e))/0xa;if(_0x3973fe===_0x35cac7)break;else _0x58a1bc['push'](_0x58a1bc['shift']());}catch(_0x2673b4){_0x58a1bc['push'](_0x58a1bc['shift']());}}}(a208_0x28ae,0x66339));function a208_0x5716(_0x2168e9,_0x34a836){_0x2168e9=_0x2168e9-0x177;var _0x28ae51=a208_0x28ae();var _0x57164d=_0x28ae51[_0x2168e9];return _0x57164d;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
1
+ function a208_0x560d(){var _0xd06fbc=['599672kLNYhV','1714145fzhgYp','18659208INeBVH','810JTyTON','1083814tpMnKw','31115FAQDco','552711ekCvtn','1590777vsguYP'];a208_0x560d=function(){return _0xd06fbc;};return a208_0x560d();}function a208_0x4245(_0x3bda0d,_0x3ab094){_0x3bda0d=_0x3bda0d-0x12c;var _0x560d88=a208_0x560d();var _0x424568=_0x560d88[_0x3bda0d];return _0x424568;}(function(_0x18abd9,_0x16d8c3){var _0x360b8a=a208_0x4245,_0x11117a=_0x18abd9();while(!![]){try{var _0x38dca3=-parseInt(_0x360b8a(0x131))/0x1+-parseInt(_0x360b8a(0x12f))/0x2+-parseInt(_0x360b8a(0x132))/0x3+-parseInt(_0x360b8a(0x133))/0x4+parseInt(_0x360b8a(0x12c))/0x5+-parseInt(_0x360b8a(0x12e))/0x6*(parseInt(_0x360b8a(0x130))/0x7)+parseInt(_0x360b8a(0x12d))/0x8;if(_0x38dca3===_0x16d8c3)break;else _0x11117a['push'](_0x11117a['shift']());}catch(_0x11039a){_0x11117a['push'](_0x11117a['shift']());}}}(a208_0x560d,0x49548));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- const a209_0x14fd64=a209_0x1fc7;(function(_0x1b628e,_0x445453){const _0x4f38a0=a209_0x1fc7,_0xb3f3ef=_0x1b628e();while(!![]){try{const _0x45c5aa=parseInt(_0x4f38a0(0x13e))/0x1+-parseInt(_0x4f38a0(0x13c))/0x2+-parseInt(_0x4f38a0(0x13d))/0x3*(-parseInt(_0x4f38a0(0x142))/0x4)+-parseInt(_0x4f38a0(0x145))/0x5*(parseInt(_0x4f38a0(0x143))/0x6)+parseInt(_0x4f38a0(0x141))/0x7+-parseInt(_0x4f38a0(0x144))/0x8*(-parseInt(_0x4f38a0(0x140))/0x9)+parseInt(_0x4f38a0(0x13f))/0xa;if(_0x45c5aa===_0x445453)break;else _0xb3f3ef['push'](_0xb3f3ef['shift']());}catch(_0x107c5e){_0xb3f3ef['push'](_0xb3f3ef['shift']());}}}(a209_0x3939,0x7e9cb));function a209_0x1fc7(_0x10b738,_0x1d1318){_0x10b738=_0x10b738-0x13c;const _0x393928=a209_0x3939();let _0x1fc73d=_0x393928[_0x10b738];return _0x1fc73d;}export const VERSION='2.3.4';export const GIT_TAG='v2.3.4-beta.4';export const GIT_COMMIT='f488f03';export const BUILD_TIME=a209_0x14fd64(0x146);function a209_0x3939(){const _0x5ea167=['295246iHocNy','4828wTItxM','1862658gZqFzv','152LEUZrB','15bshfpC','2026-07-14T03:18:42.654Z','679164KwbNfU','2019tHZOqM','245806gVhGdR','3838510ZFcCwc','144648IFZaCR'];a209_0x3939=function(){return _0x5ea167;};return a209_0x3939();}
1
+ const a209_0x3b1fb2=a209_0x2d22;(function(_0x30e86c,_0x280414){const _0x2b7910=a209_0x2d22,_0x42df10=_0x30e86c();while(!![]){try{const _0xe9cb63=-parseInt(_0x2b7910(0x15a))/0x1*(-parseInt(_0x2b7910(0x164))/0x2)+parseInt(_0x2b7910(0x165))/0x3+parseInt(_0x2b7910(0x161))/0x4*(parseInt(_0x2b7910(0x15f))/0x5)+parseInt(_0x2b7910(0x166))/0x6+-parseInt(_0x2b7910(0x15d))/0x7*(-parseInt(_0x2b7910(0x160))/0x8)+parseInt(_0x2b7910(0x163))/0x9+parseInt(_0x2b7910(0x162))/0xa*(-parseInt(_0x2b7910(0x15b))/0xb);if(_0xe9cb63===_0x280414)break;else _0x42df10['push'](_0x42df10['shift']());}catch(_0x243886){_0x42df10['push'](_0x42df10['shift']());}}}(a209_0x3fab,0xe8d05));function a209_0x3fab(){const _0x1f1eff=['816297VaQTom','9823596PGEbqc','a39e59e','11471UNIJrl','3924272pvbJFc','2.3.5','21zEBNAw','v2.3.5-beta.1','40eNUedB','103568inbzLm','791512FiEiAk','100cGPlKO','8805843aTauAZ','2xATfNh'];a209_0x3fab=function(){return _0x1f1eff;};return a209_0x3fab();}export const VERSION=a209_0x3b1fb2(0x15c);export const GIT_TAG=a209_0x3b1fb2(0x15e);function a209_0x2d22(_0x222b57,_0x4c8bae){_0x222b57=_0x222b57-0x15a;const _0x3fabd6=a209_0x3fab();let _0x2d2226=_0x3fabd6[_0x222b57];return _0x2d2226;}export const GIT_COMMIT=a209_0x3b1fb2(0x167);export const BUILD_TIME='2026-07-14T15:32:16.705Z';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a210_0x33b4(_0x5bdc17,_0x5a0921){_0x5bdc17=_0x5bdc17-0x13f;var _0x594e38=a210_0x594e();var _0x33b486=_0x594e38[_0x5bdc17];return _0x33b486;}(function(_0x18690a,_0x4d37c8){var _0x461364=a210_0x33b4,_0x5e31e7=_0x18690a();while(!![]){try{var _0x26a6f1=parseInt(_0x461364(0x141))/0x1+-parseInt(_0x461364(0x13f))/0x2*(-parseInt(_0x461364(0x143))/0x3)+-parseInt(_0x461364(0x140))/0x4*(-parseInt(_0x461364(0x144))/0x5)+parseInt(_0x461364(0x14e))/0x6+parseInt(_0x461364(0x149))/0x7*(parseInt(_0x461364(0x14a))/0x8)+-parseInt(_0x461364(0x14d))/0x9*(-parseInt(_0x461364(0x14b))/0xa)+parseInt(_0x461364(0x142))/0xb*(-parseInt(_0x461364(0x148))/0xc);if(_0x26a6f1===_0x4d37c8)break;else _0x5e31e7['push'](_0x5e31e7['shift']());}catch(_0x35a18e){_0x5e31e7['push'](_0x5e31e7['shift']());}}}(a210_0x594e,0x250fd));import a210_0x4f0837 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x1e99de=a210_0x33b4;console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)](a210_0x4f0837[_0x1e99de(0x145)][_0x1e99de(0x146)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x1e99de(0x147)](),console[_0x1e99de(0x147)]('\x20\x20Use\x20'+a210_0x4f0837[_0x1e99de(0x145)]['bold'](CLI_BIN_NAME+_0x1e99de(0x14c))+'\x20to\x20view\x20available\x20commands.'),console[_0x1e99de(0x147)]();}function a210_0x594e(){var _0x344bc4=['bold','log','36cXThRO','495579pwjitu','24AZtzWM','717320KhmNSX','\x20--help','27wlGIaa','903402FnTJQF','250768ArTqbj','1444CjpusJ','39299tDCucj','2911018QAYasl','3nMFbmf','2810GmYFqw','green'];a210_0x594e=function(){return _0x344bc4;};return a210_0x594e();}
1
+ function a210_0x371d(_0x219984,_0x40b6cd){_0x219984=_0x219984-0x147;var _0xe1d29c=a210_0xe1d2();var _0x371d3b=_0xe1d29c[_0x219984];return _0x371d3b;}(function(_0xed4b0c,_0x29eecd){var _0x3ff54b=a210_0x371d,_0x3c61cc=_0xed4b0c();while(!![]){try{var _0xa8e330=-parseInt(_0x3ff54b(0x152))/0x1+-parseInt(_0x3ff54b(0x14b))/0x2+-parseInt(_0x3ff54b(0x147))/0x3*(parseInt(_0x3ff54b(0x154))/0x4)+-parseInt(_0x3ff54b(0x14f))/0x5*(-parseInt(_0x3ff54b(0x155))/0x6)+parseInt(_0x3ff54b(0x14e))/0x7*(parseInt(_0x3ff54b(0x14c))/0x8)+parseInt(_0x3ff54b(0x150))/0x9*(-parseInt(_0x3ff54b(0x156))/0xa)+parseInt(_0x3ff54b(0x14d))/0xb;if(_0xa8e330===_0x29eecd)break;else _0x3c61cc['push'](_0x3c61cc['shift']());}catch(_0x509f3f){_0x3c61cc['push'](_0x3c61cc['shift']());}}}(a210_0xe1d2,0x7706e));import a210_0x2bd6c1 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x17f773=a210_0x371d;console['log'](),console['log'](a210_0x2bd6c1[_0x17f773(0x151)][_0x17f773(0x14a)]('\x20\x20'+CLI_DISPLAY_NAME)),console['log'](),console[_0x17f773(0x153)](_0x17f773(0x148)+a210_0x2bd6c1[_0x17f773(0x151)][_0x17f773(0x14a)](CLI_BIN_NAME+_0x17f773(0x149))+'\x20to\x20view\x20available\x20commands.'),console[_0x17f773(0x153)]();}function a210_0xe1d2(){var _0x20126d=['1380QVsnco','\x20\x20Use\x20','\x20--help','bold','148450VkurEB','80344TvzlEa','21383703FXVKTR','140jBdvRn','15130TSQyBA','63URMHsC','green','782333VDrcLv','log','2200rzmgRP','132EUdvhN','877590wVUjYP'];a210_0xe1d2=function(){return _0x20126d;};return a210_0xe1d2();}
@@ -1 +1 @@
1
- (function(_0x57a1c1,_0x5014e0){const _0x4ba40a=a211_0x4565,_0x46f471=_0x57a1c1();while(!![]){try{const _0x79277e=parseInt(_0x4ba40a(0x1bc))/0x1*(parseInt(_0x4ba40a(0x1b1))/0x2)+-parseInt(_0x4ba40a(0x1a4))/0x3*(parseInt(_0x4ba40a(0x1ac))/0x4)+-parseInt(_0x4ba40a(0x19e))/0x5+parseInt(_0x4ba40a(0x1b3))/0x6*(-parseInt(_0x4ba40a(0x1a0))/0x7)+-parseInt(_0x4ba40a(0x1b8))/0x8+parseInt(_0x4ba40a(0x1a3))/0x9+parseInt(_0x4ba40a(0x1ba))/0xa*(parseInt(_0x4ba40a(0x19f))/0xb);if(_0x79277e===_0x5014e0)break;else _0x46f471['push'](_0x46f471['shift']());}catch(_0x5f2653){_0x46f471['push'](_0x46f471['shift']());}}}(a211_0x7a10,0x244d9));function a211_0x7a10(){const _0x124125=['Equivalent\x20command:\x20','Error:\x20Unsupported\x20command:\x20','push','has','(empty)','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','16zleEeO','enable-bff-save','cwd','entries','toLowerCase','1448ZQVOca','skill','6juJNxF','不支持的命令:\x20','log','dangerously-bff-save','includes','2353672nnFTkw','slice','1462660eeZKfQ','from','202bDqudW','error','help','add','replace','-$1','1021565AiwMAk','55IZTvvC','844977jTFopb','argv','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','424692TuADEI','117627gsrVnt'];a211_0x7a10=function(){return _0x124125;};return a211_0x7a10();}function a211_0x4565(_0x18159f,_0x715bc9){_0x18159f=_0x18159f-0x19a;const _0x7a1006=a211_0x7a10();let _0x45654a=_0x7a1006[_0x18159f];return _0x45654a;}import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x239bdb){const _0x249a73=a211_0x4565,_0x2a1bf8=[];for(const [_0x5cdf18,_0x2b218f]of Object[_0x249a73(0x1af)](_0x239bdb)){if(_0x2b218f===!![]){const _0x38fdd6=_0x5cdf18[_0x249a73(0x19c)](/([A-Z])/g,_0x249a73(0x19d))[_0x249a73(0x1b0)]();_0x2a1bf8['push'](_0x38fdd6);}}return _0x2a1bf8;}export function parseDynamicFlags(){const _0x5eab88=a211_0x4565,_0x2a3a8d=[];for(let _0x20e5ca=0x3;_0x20e5ca<process[_0x5eab88(0x1a1)][_0x5eab88(0x1ab)];_0x20e5ca++){const _0x50a0a5=process[_0x5eab88(0x1a1)][_0x20e5ca];if(_0x50a0a5&&_0x50a0a5['startsWith']('--')){const _0x25bbe0=_0x50a0a5[_0x5eab88(0x1b9)](0x2);_0x25bbe0&&!_0x25bbe0[_0x5eab88(0x1b7)]('=')&&_0x2a3a8d[_0x5eab88(0x1a7)](_0x25bbe0);}}return _0x2a3a8d;}export function getAllProvidedFlags(_0x5bf433){const _0x5cb76c=a211_0x4565,_0x2635a6=camelCaseFlagsToKebab(_0x5bf433),_0x2be717=parseDynamicFlags(),_0x417c03=new Set([..._0x2635a6,..._0x2be717]);return Array[_0x5cb76c(0x1bb)](_0x417c03);}export function normalizeLegacyBffSaveFlags(_0x4ed56c){const _0x5443ad=a211_0x4565,_0x111f6c=new Set(_0x4ed56c);return _0x111f6c[_0x5443ad(0x1a8)](_0x5443ad(0x1b6))&&_0x111f6c[_0x5443ad(0x19b)](_0x5443ad(0x1ad)),Array[_0x5443ad(0x1bb)](_0x111f6c);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x578b98,_0x1bb863,_0x429c91){const _0x3d1b7b=a211_0x4565;logger['setLogPath'](process[_0x3d1b7b(0x1ae)]());if(_0x429c91?.[_0x3d1b7b(0x19a)]||_0x578b98==='--help'){showHelp();return;}console['error'](_0x3d1b7b(0x1a6)+(_0x578b98||_0x3d1b7b(0x1a9))),console['log']('\x0aAvailable\x20commands:'),console[_0x3d1b7b(0x1b5)]('\x20\x20'+CLI_BIN_NAME+_0x3d1b7b(0x1aa)),console[_0x3d1b7b(0x1b5)](''),console['log'](_0x3d1b7b(0x1a5)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x3d1b7b(0x1bd)](_0x3d1b7b(0x1b2),_0x3d1b7b(0x1b4)+_0x578b98),process['exit'](0x1);}function showHelp(){const _0x480a22=a211_0x4565;console['log'](_0x480a22(0x1a2)+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(_0x5147e2,_0x4ab087){const _0x126e18=a211_0x5732,_0x3c85e4=_0x5147e2();while(!![]){try{const _0x49b9ea=-parseInt(_0x126e18(0x116))/0x1*(parseInt(_0x126e18(0x102))/0x2)+-parseInt(_0x126e18(0x10b))/0x3+-parseInt(_0x126e18(0x115))/0x4*(parseInt(_0x126e18(0x11b))/0x5)+-parseInt(_0x126e18(0x110))/0x6+parseInt(_0x126e18(0x11a))/0x7*(-parseInt(_0x126e18(0x10d))/0x8)+-parseInt(_0x126e18(0x111))/0x9+-parseInt(_0x126e18(0x11c))/0xa*(-parseInt(_0x126e18(0x117))/0xb);if(_0x49b9ea===_0x4ab087)break;else _0x3c85e4['push'](_0x3c85e4['shift']());}catch(_0x446734){_0x3c85e4['push'](_0x3c85e4['shift']());}}}(a211_0x2d11,0x33b0c));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0xada261){const _0x4ecfa9=a211_0x5732,_0x374fb4=[];for(const [_0x576eb0,_0x44eb41]of Object[_0x4ecfa9(0xfd)](_0xada261)){if(_0x44eb41===!![]){const _0x3e3869=_0x576eb0[_0x4ecfa9(0xfb)](/([A-Z])/g,_0x4ecfa9(0x101))['toLowerCase']();_0x374fb4[_0x4ecfa9(0x11d)](_0x3e3869);}}return _0x374fb4;}function a211_0x2d11(){const _0x19b654=['283065FWPLPs','4830VUBWIt','push','replace','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','entries','from','(empty)','--help','-$1','6tVURCO','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','cwd','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','Error:\x20Unsupported\x20command:\x20','不支持的命令:\x20','\x0aAvailable\x20commands:','length','argv','27666aCkNEs','error','16shBOsO','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','startsWith','2406474ZNEaBE','455535AdpNNL','includes','enable-bff-save','skill','24aJdfzS','96221FRlmdI','34507LXysQl','log','add','749665OUVnTC'];a211_0x2d11=function(){return _0x19b654;};return a211_0x2d11();}export function parseDynamicFlags(){const _0x193ac9=a211_0x5732,_0x434c45=[];for(let _0x12c3f7=0x3;_0x12c3f7<process[_0x193ac9(0x10a)][_0x193ac9(0x109)];_0x12c3f7++){const _0x1b9279=process[_0x193ac9(0x10a)][_0x12c3f7];if(_0x1b9279&&_0x1b9279[_0x193ac9(0x10f)]('--')){const _0x4f37ff=_0x1b9279['slice'](0x2);_0x4f37ff&&!_0x4f37ff[_0x193ac9(0x112)]('=')&&_0x434c45[_0x193ac9(0x11d)](_0x4f37ff);}}return _0x434c45;}export function getAllProvidedFlags(_0x4d4153){const _0x174400=camelCaseFlagsToKebab(_0x4d4153),_0x30ac84=parseDynamicFlags(),_0x5973e9=new Set([..._0x174400,..._0x30ac84]);return Array['from'](_0x5973e9);}export function normalizeLegacyBffSaveFlags(_0x16fe48){const _0x5bc617=a211_0x5732,_0x2628c0=new Set(_0x16fe48);return _0x2628c0['has']('dangerously-bff-save')&&_0x2628c0[_0x5bc617(0x119)](_0x5bc617(0x113)),Array[_0x5bc617(0xfe)](_0x2628c0);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x1bc64d,_0x1aeafa,_0x46f02f){const _0x58efde=a211_0x5732;logger['setLogPath'](process[_0x58efde(0x104)]());if(_0x46f02f?.['help']||_0x1bc64d===_0x58efde(0x100)){showHelp();return;}console[_0x58efde(0x10c)](_0x58efde(0x106)+(_0x1bc64d||_0x58efde(0xff))),console[_0x58efde(0x118)](_0x58efde(0x108)),console[_0x58efde(0x118)]('\x20\x20'+CLI_BIN_NAME+_0x58efde(0x105)),console[_0x58efde(0x118)](''),console[_0x58efde(0x118)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x58efde(0x10c)](_0x58efde(0x114),_0x58efde(0x107)+_0x1bc64d),process['exit'](0x1);}function a211_0x5732(_0x4db5c7,_0x542187){_0x4db5c7=_0x4db5c7-0xfb;const _0x2d115b=a211_0x2d11();let _0x573275=_0x2d115b[_0x4db5c7];return _0x573275;}function showHelp(){const _0x5b1718=a211_0x5732;console[_0x5b1718(0x118)](_0x5b1718(0x103)+CLI_BIN_NAME+_0x5b1718(0x10e)+SKILLS_INSTALL_COMMAND_LINE+_0x5b1718(0xfc));}
@@ -1 +1 @@
1
- function a212_0x37b2(){const _0xc8a23=['stderr','pipe','skill','trim','exit\x20','log','963540NmaNbs','--skill','1941010zdvCKd','3374iZaPGw','status','remove','383820vEmmeW','yes','stdout','inherit','2071434eeOhPS','stdio','toString','1016OJzpLN','unknown','push','67pjBdXu','2471PQzVEj','lovrabet/rabetbase','add','join','npx','1046056UZaxAZ','skills'];a212_0x37b2=function(){return _0xc8a23;};return a212_0x37b2();}const a212_0x355471=a212_0xd9dd;(function(_0x20ad9d,_0x55b1db){const _0x55d456=a212_0xd9dd,_0x5a5ea7=_0x20ad9d();while(!![]){try{const _0x656d8f=-parseInt(_0x55d456(0x1aa))/0x1*(-parseInt(_0x55d456(0x19d))/0x2)+-parseInt(_0x55d456(0x1a0))/0x3+parseInt(_0x55d456(0x1b0))/0x4+parseInt(_0x55d456(0x19c))/0x5+-parseInt(_0x55d456(0x1a4))/0x6+parseInt(_0x55d456(0x1ab))/0x7*(parseInt(_0x55d456(0x1a7))/0x8)+-parseInt(_0x55d456(0x19a))/0x9;if(_0x656d8f===_0x55b1db)break;else _0x5a5ea7['push'](_0x5a5ea7['shift']());}catch(_0x540aca){_0x5a5ea7['push'](_0x5a5ea7['shift']());}}}(a212_0x37b2,0x37809));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=a212_0x355471(0x1b1);export const NPX_SKILLS_SUBCOMMAND_ADD=a212_0x355471(0x1ad);export const NPX_SKILLS_FLAG_SKILL=a212_0x355471(0x19b);function a212_0xd9dd(_0x1ce9a1,_0x571627){_0x1ce9a1=_0x1ce9a1-0x197;const _0x37b23b=a212_0x37b2();let _0xd9dd4a=_0x37b23b[_0x1ce9a1];return _0xd9dd4a;}export const RABETBASE_SKILL_SOURCE=a212_0x355471(0x1ac);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME='Lovrabet';export function buildNpxSkillsAddArgv(_0x1833f1){const _0x5b3fbd=a212_0x355471,_0x637502=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1833f1&&_0x637502[_0x5b3fbd(0x1a9)](NPX_SKILLS_FLAG_SKILL,_0x1833f1),_0x637502;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a212_0x355471(0x1af),...buildNpxSkillsAddArgv()][a212_0x355471(0x1ae)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a212_0x355471(0x1af),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a212_0x355471(0x1ae)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x58bb71,_0x5e7311){const _0x1ff7c7=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x12cea0=_0x5e7311?.[_0x1ff7c7(0x1a5)]??_0x1ff7c7(0x1a3),_0x54a2c3=resolveNpmBin('npx'),_0x6f9053=buildNpxSkillsAddArgv(_0x5e7311?.[_0x1ff7c7(0x1b4)]),_0x505e8=[_0x1ff7c7(0x1af),..._0x6f9053][_0x1ff7c7(0x1ae)]('\x20');console[_0x1ff7c7(0x199)]('*\x20'+_0x505e8);const _0x593a32=spawnSync(_0x54a2c3,_0x6f9053,{'cwd':_0x58bb71,'stdio':_0x12cea0,'env':process.env,'shell':![]}),_0x1d9836=_0x593a32[_0x1ff7c7(0x19e)];if(_0x1d9836===0x0)return{'ok':!![],'status':0x0};let _0x4cd9e9=_0x1ff7c7(0x198)+(_0x1d9836??_0x1ff7c7(0x1a8));if(_0x12cea0===_0x1ff7c7(0x1b3)){const _0x5af8d9=_0x593a32[_0x1ff7c7(0x1b2)]?_0x593a32[_0x1ff7c7(0x1b2)]['toString']()[_0x1ff7c7(0x197)]():'',_0x5d721b=_0x593a32[_0x1ff7c7(0x1a2)]?_0x593a32[_0x1ff7c7(0x1a2)]['toString']()[_0x1ff7c7(0x197)]():'';if(_0x5af8d9)_0x4cd9e9=_0x5af8d9;else{if(_0x5d721b)_0x4cd9e9=_0x5d721b;}}return{'ok':![],'status':_0x1d9836??null,'error':_0x4cd9e9};}export function runNpxSkillsRemove(_0x2d845e,_0x16a8a3,_0x3ad8c5=LEGACY_RABETBASE_SKILL_SOURCE){const _0x46da6f=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x231359=_0x16a8a3?.[_0x46da6f(0x1a5)]??'inherit',_0x1106c3=resolveNpmBin('npx'),_0x4e7b10=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x46da6f(0x19f),_0x3ad8c5,NPX_SKILLS_FLAG_SKILL,_0x16a8a3?.[_0x46da6f(0x1b4)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x16a8a3?.[_0x46da6f(0x1a1)]?['-y']:[]],_0x573c0=[_0x1106c3,..._0x4e7b10]['join']('\x20');console['log']('*\x20'+_0x573c0);const _0x518137=spawnSync(_0x1106c3,_0x4e7b10,{'cwd':_0x2d845e,'stdio':_0x231359,'env':process.env,'shell':![]}),_0xb3978=_0x518137[_0x46da6f(0x19e)];if(_0xb3978===0x0)return{'ok':!![],'status':0x0};let _0x350bf8=_0x46da6f(0x198)+(_0xb3978??'unknown');if(_0x231359===_0x46da6f(0x1b3)){const _0x43a8e3=_0x518137[_0x46da6f(0x1b2)]?_0x518137['stderr'][_0x46da6f(0x1a6)]()[_0x46da6f(0x197)]():'',_0x31cb36=_0x518137['stdout']?_0x518137[_0x46da6f(0x1a2)]['toString']()[_0x46da6f(0x197)]():'';if(_0x43a8e3)_0x350bf8=_0x43a8e3;else{if(_0x31cb36)_0x350bf8=_0x31cb36;}}return{'ok':![],'status':_0xb3978??null,'error':_0x350bf8};}export function runNpxSkillsAddGlobal(_0x208607,_0x5448bc,_0x1b72d2){const _0x303bfe=a212_0x355471;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x496bd0=_0x1b72d2?.['stdio']??_0x303bfe(0x1a3),_0x5cb03=resolveNpmBin(_0x303bfe(0x1af)),_0x537dd3=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5448bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x18e3bb=[_0x303bfe(0x1af),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x5448bc,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x303bfe(0x1ae)]('\x20');console[_0x303bfe(0x199)]('*\x20'+_0x18e3bb);const _0x577baf=spawnSync(_0x5cb03,_0x537dd3,{'cwd':_0x208607,'stdio':_0x496bd0,'env':process.env,'shell':![]}),_0xedd0ba=_0x577baf[_0x303bfe(0x19e)];if(_0xedd0ba===0x0)return{'ok':!![],'status':0x0};let _0x1877c0='exit\x20'+(_0xedd0ba??_0x303bfe(0x1a8));if(_0x496bd0==='pipe'){const _0x409a98=_0x577baf[_0x303bfe(0x1b2)]?_0x577baf[_0x303bfe(0x1b2)]['toString']()[_0x303bfe(0x197)]():'',_0xaa330c=_0x577baf[_0x303bfe(0x1a2)]?_0x577baf[_0x303bfe(0x1a2)][_0x303bfe(0x1a6)]()[_0x303bfe(0x197)]():'';if(_0x409a98)_0x1877c0=_0x409a98;else{if(_0xaa330c)_0x1877c0=_0xaa330c;}}return{'ok':![],'status':_0xedd0ba??null,'error':_0x1877c0};}
1
+ const a212_0x4137e4=a212_0x5570;(function(_0x4ac088,_0x40c36a){const _0x586a4f=a212_0x5570,_0x582ffb=_0x4ac088();while(!![]){try{const _0x2be5d1=parseInt(_0x586a4f(0x1e5))/0x1*(-parseInt(_0x586a4f(0x1eb))/0x2)+-parseInt(_0x586a4f(0x1d9))/0x3*(parseInt(_0x586a4f(0x1ee))/0x4)+-parseInt(_0x586a4f(0x1dd))/0x5*(parseInt(_0x586a4f(0x1f0))/0x6)+-parseInt(_0x586a4f(0x1d8))/0x7*(parseInt(_0x586a4f(0x1ef))/0x8)+-parseInt(_0x586a4f(0x1d7))/0x9+-parseInt(_0x586a4f(0x1d6))/0xa+-parseInt(_0x586a4f(0x1e8))/0xb*(-parseInt(_0x586a4f(0x1de))/0xc);if(_0x2be5d1===_0x40c36a)break;else _0x582ffb['push'](_0x582ffb['shift']());}catch(_0x37cc4b){_0x582ffb['push'](_0x582ffb['shift']());}}}(a212_0x2ef9,0xc236f));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 a212_0x5570(_0x367225,_0x44b4e1){_0x367225=_0x367225-0x1d4;const _0x2ef9f8=a212_0x2ef9();let _0x557085=_0x2ef9f8[_0x367225];return _0x557085;}export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD=a212_0x4137e4(0x1e2);export const NPX_SKILLS_FLAG_SKILL=a212_0x4137e4(0x1ec);function a212_0x2ef9(){const _0x10d60a=['4246300cFMOtP','886545vdSecA','4886iUiXQJ','11226ZcKWlx','lovrabet/rabetbase','skill','push','2630330BQRjzP','62945940fDIFZg','pipe','status','stdout','add','toString','unknown','3FmIjoN','inherit','Lovrabet','11hDDANJ','log','trim','913174qEjtWQ','--skill','npx','1028Irejzj','12256rwQjhp','6MiJUhZ','stdio','join','stderr'];a212_0x2ef9=function(){return _0x10d60a;};return a212_0x2ef9();}export const RABETBASE_SKILL_SOURCE=a212_0x4137e4(0x1da);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a212_0x4137e4(0x1e7);export function buildNpxSkillsAddArgv(_0x528ad9){const _0x1d8113=a212_0x4137e4,_0x33bac2=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x528ad9&&_0x33bac2[_0x1d8113(0x1dc)](NPX_SKILLS_FLAG_SKILL,_0x528ad9),_0x33bac2;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a212_0x4137e4(0x1ed),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a212_0x4137e4(0x1d4)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2ee52d,_0x4fe404){const _0x17b5aa=a212_0x4137e4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xba9ec7=_0x4fe404?.[_0x17b5aa(0x1f1)]??_0x17b5aa(0x1e6),_0x4f7269=resolveNpmBin('npx'),_0x47ec9b=buildNpxSkillsAddArgv(_0x4fe404?.[_0x17b5aa(0x1db)]),_0x32c1ad=[_0x17b5aa(0x1ed),..._0x47ec9b][_0x17b5aa(0x1d4)]('\x20');console[_0x17b5aa(0x1e9)]('*\x20'+_0x32c1ad);const _0x68a3dc=spawnSync(_0x4f7269,_0x47ec9b,{'cwd':_0x2ee52d,'stdio':_0xba9ec7,'env':process.env,'shell':![]}),_0xfd24ca=_0x68a3dc[_0x17b5aa(0x1e0)];if(_0xfd24ca===0x0)return{'ok':!![],'status':0x0};let _0x20d801='exit\x20'+(_0xfd24ca??'unknown');if(_0xba9ec7===_0x17b5aa(0x1df)){const _0x3410cb=_0x68a3dc['stderr']?_0x68a3dc[_0x17b5aa(0x1d5)][_0x17b5aa(0x1e3)]()[_0x17b5aa(0x1ea)]():'',_0x55c22e=_0x68a3dc[_0x17b5aa(0x1e1)]?_0x68a3dc['stdout'][_0x17b5aa(0x1e3)]()[_0x17b5aa(0x1ea)]():'';if(_0x3410cb)_0x20d801=_0x3410cb;else{if(_0x55c22e)_0x20d801=_0x55c22e;}}return{'ok':![],'status':_0xfd24ca??null,'error':_0x20d801};}export function runNpxSkillsRemove(_0x310ec3,_0x9eeb08,_0x35976f=LEGACY_RABETBASE_SKILL_SOURCE){const _0x438064=a212_0x4137e4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4a2699=_0x9eeb08?.['stdio']??_0x438064(0x1e6),_0x4c7e19=resolveNpmBin(_0x438064(0x1ed)),_0x4f5c87=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x35976f,NPX_SKILLS_FLAG_SKILL,_0x9eeb08?.[_0x438064(0x1db)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x9eeb08?.['yes']?['-y']:[]],_0x3f2c38=[_0x4c7e19,..._0x4f5c87][_0x438064(0x1d4)]('\x20');console['log']('*\x20'+_0x3f2c38);const _0x429ae3=spawnSync(_0x4c7e19,_0x4f5c87,{'cwd':_0x310ec3,'stdio':_0x4a2699,'env':process.env,'shell':![]}),_0x20dd09=_0x429ae3['status'];if(_0x20dd09===0x0)return{'ok':!![],'status':0x0};let _0x4b4afb='exit\x20'+(_0x20dd09??'unknown');if(_0x4a2699==='pipe'){const _0x3692de=_0x429ae3['stderr']?_0x429ae3['stderr']['toString']()[_0x438064(0x1ea)]():'',_0x55f405=_0x429ae3[_0x438064(0x1e1)]?_0x429ae3[_0x438064(0x1e1)]['toString']()[_0x438064(0x1ea)]():'';if(_0x3692de)_0x4b4afb=_0x3692de;else{if(_0x55f405)_0x4b4afb=_0x55f405;}}return{'ok':![],'status':_0x20dd09??null,'error':_0x4b4afb};}export function runNpxSkillsAddGlobal(_0x4ac744,_0xe4656e,_0x8cc8d6){const _0x518c56=a212_0x4137e4;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x4b34b1=_0x8cc8d6?.[_0x518c56(0x1f1)]??_0x518c56(0x1e6),_0x5bcc3b=resolveNpmBin(_0x518c56(0x1ed)),_0x59edb1=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xe4656e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x4a8bc1=[_0x518c56(0x1ed),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xe4656e,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x518c56(0x1d4)]('\x20');console[_0x518c56(0x1e9)]('*\x20'+_0x4a8bc1);const _0x2f37a0=spawnSync(_0x5bcc3b,_0x59edb1,{'cwd':_0x4ac744,'stdio':_0x4b34b1,'env':process.env,'shell':![]}),_0x1091cf=_0x2f37a0['status'];if(_0x1091cf===0x0)return{'ok':!![],'status':0x0};let _0x53c597='exit\x20'+(_0x1091cf??_0x518c56(0x1e4));if(_0x4b34b1===_0x518c56(0x1df)){const _0x33d34a=_0x2f37a0[_0x518c56(0x1d5)]?_0x2f37a0[_0x518c56(0x1d5)][_0x518c56(0x1e3)]()[_0x518c56(0x1ea)]():'',_0x5e0689=_0x2f37a0[_0x518c56(0x1e1)]?_0x2f37a0[_0x518c56(0x1e1)][_0x518c56(0x1e3)]()['trim']():'';if(_0x33d34a)_0x53c597=_0x33d34a;else{if(_0x5e0689)_0x53c597=_0x5e0689;}}return{'ok':![],'status':_0x1091cf??null,'error':_0x53c597};}
@@ -1 +1 @@
1
- (function(_0xf7f1b0,_0x349a5f){const _0x14055d=a213_0x4a44,_0x123c6f=_0xf7f1b0();while(!![]){try{const _0x11022a=parseInt(_0x14055d(0x99))/0x1*(parseInt(_0x14055d(0xab))/0x2)+-parseInt(_0x14055d(0xae))/0x3*(parseInt(_0x14055d(0xa6))/0x4)+-parseInt(_0x14055d(0xa1))/0x5*(parseInt(_0x14055d(0xa8))/0x6)+parseInt(_0x14055d(0xaa))/0x7+-parseInt(_0x14055d(0xa7))/0x8*(parseInt(_0x14055d(0xaf))/0x9)+-parseInt(_0x14055d(0x9a))/0xa*(-parseInt(_0x14055d(0xa5))/0xb)+parseInt(_0x14055d(0xac))/0xc*(parseInt(_0x14055d(0x9d))/0xd);if(_0x11022a===_0x349a5f)break;else _0x123c6f['push'](_0x123c6f['shift']());}catch(_0xe06f6e){_0x123c6f['push'](_0x123c6f['shift']());}}}(a213_0x1642,0x7f2a9));function a213_0x1642(){const _0x450cca=['command','1819412NfYbHG','36508kowsSo','12PjTqYl','[REDACTED]','960PNMcNZ','4122lUEOsN','56NrLFDD','10TgddQh','flags','error','15137603nUPcPV','durationMs','test','message','620985hPkjDb','entries','some','rabetbase.command','531883VliaWu','11488ydKToC','11920nNEdNY','18tXAsdD'];a213_0x1642=function(){return _0x450cca;};return a213_0x1642();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a213_0x4a44(_0x11f812,_0x18d74e){_0x11f812=_0x11f812-0x99;const _0x1642c3=a213_0x1642();let _0x4a44e0=_0x1642c3[_0x11f812];return _0x4a44e0;}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x18ee1c){const _0x2b318c=a213_0x4a44;return SENSITIVE_PATTERNS[_0x2b318c(0xa3)](_0x277e6f=>_0x277e6f[_0x2b318c(0x9f)](_0x18ee1c));}function sanitizeFlags(_0x4aeb2e){const _0x116430=a213_0x4a44,_0x57bd10={};for(const [_0x3093ec,_0x81cc7c]of Object[_0x116430(0xa2)](_0x4aeb2e)){isSensitiveKey(_0x3093ec)?_0x57bd10[_0x3093ec]=_0x81cc7c!=null&&_0x81cc7c!==''?_0x116430(0xad):_0x81cc7c:_0x57bd10[_0x3093ec]=_0x81cc7c;}return _0x57bd10;}export async function reportCommandTrace(_0x16772c){const _0x4116f1=a213_0x4a44;try{const _0x1a0490=sanitizeFlags(_0x16772c[_0x4116f1(0x9b)]);await sendCliTraceLog({'spanName':_0x4116f1(0xa4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x16772c['service'],'command.name':_0x16772c[_0x4116f1(0xa9)],'command.flags':JSON['stringify'](_0x1a0490),..._0x16772c[_0x4116f1(0x9e)]!=null?{'command.duration_ms':_0x16772c['durationMs']}:{},..._0x16772c[_0x4116f1(0x9c)]?{'command.error':_0x16772c[_0x4116f1(0x9c)]instanceof Error?_0x16772c['error'][_0x4116f1(0xa0)]:String(_0x16772c[_0x4116f1(0x9c)])}:{}}});}catch{}}
1
+ (function(_0x5c722c,_0x7424d6){const _0x369224=a213_0x42fc,_0x3c151a=_0x5c722c();while(!![]){try{const _0x1d270c=parseInt(_0x369224(0x99))/0x1*(parseInt(_0x369224(0x94))/0x2)+parseInt(_0x369224(0xa0))/0x3+-parseInt(_0x369224(0x98))/0x4*(-parseInt(_0x369224(0x93))/0x5)+-parseInt(_0x369224(0x96))/0x6*(-parseInt(_0x369224(0xa1))/0x7)+-parseInt(_0x369224(0x95))/0x8+-parseInt(_0x369224(0x9e))/0x9+parseInt(_0x369224(0x97))/0xa*(-parseInt(_0x369224(0xa3))/0xb);if(_0x1d270c===_0x7424d6)break;else _0x3c151a['push'](_0x3c151a['shift']());}catch(_0x3e5527){_0x3c151a['push'](_0x3c151a['shift']());}}}(a213_0x2ebb,0x7dc96));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';function a213_0x42fc(_0x4d8bff,_0x22ee4a){_0x4d8bff=_0x4d8bff-0x91;const _0x2ebbc3=a213_0x2ebb();let _0x42fc69=_0x2ebbc3[_0x4d8bff];return _0x42fc69;}function a213_0x2ebb(){const _0x5c8c83=['error','rabetbase.command','some','8877636vlyEzA','stringify','2543754oQTuka','223755juHMmK','service','12760FAiXnp','entries','durationMs','364535UonGKh','492wlQVJm','7908424TfMGiP','132cKpzNW','6480UPmrgw','52UcUrFU','3020jTmZRZ','test'];a213_0x2ebb=function(){return _0x5c8c83;};return a213_0x2ebb();}const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x29a2e9){const _0x49914c=a213_0x42fc;return SENSITIVE_PATTERNS[_0x49914c(0x9d)](_0x3759cf=>_0x3759cf[_0x49914c(0x9a)](_0x29a2e9));}function sanitizeFlags(_0x6a587e){const _0x4615fb=a213_0x42fc,_0x367059={};for(const [_0x282547,_0xb5764e]of Object[_0x4615fb(0x91)](_0x6a587e)){isSensitiveKey(_0x282547)?_0x367059[_0x282547]=_0xb5764e!=null&&_0xb5764e!==''?'[REDACTED]':_0xb5764e:_0x367059[_0x282547]=_0xb5764e;}return _0x367059;}export async function reportCommandTrace(_0x5375a1){const _0xd70f16=a213_0x42fc;try{const _0x170af5=sanitizeFlags(_0x5375a1['flags']);await sendCliTraceLog({'spanName':_0xd70f16(0x9c),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5375a1[_0xd70f16(0xa2)],'command.name':_0x5375a1['command'],'command.flags':JSON[_0xd70f16(0x9f)](_0x170af5),..._0x5375a1[_0xd70f16(0x92)]!=null?{'command.duration_ms':_0x5375a1[_0xd70f16(0x92)]}:{},..._0x5375a1[_0xd70f16(0x9b)]?{'command.error':_0x5375a1[_0xd70f16(0x9b)]instanceof Error?_0x5375a1['error']['message']:String(_0x5375a1[_0xd70f16(0x9b)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a214_0x324f(_0x51240d,_0x4bc01a){_0x51240d=_0x51240d-0x65;var _0x33a111=a214_0x33a1();var _0x324ff3=_0x33a111[_0x51240d];return _0x324ff3;}(function(_0x385010,_0x1f8fe0){var _0x8a0b5c=a214_0x324f,_0xec9e42=_0x385010();while(!![]){try{var _0x16f6a8=parseInt(_0x8a0b5c(0x6d))/0x1*(-parseInt(_0x8a0b5c(0x69))/0x2)+-parseInt(_0x8a0b5c(0x70))/0x3+-parseInt(_0x8a0b5c(0x67))/0x4*(parseInt(_0x8a0b5c(0x6e))/0x5)+parseInt(_0x8a0b5c(0x65))/0x6+-parseInt(_0x8a0b5c(0x66))/0x7+parseInt(_0x8a0b5c(0x6f))/0x8+parseInt(_0x8a0b5c(0x6b))/0x9;if(_0x16f6a8===_0x1f8fe0)break;else _0xec9e42['push'](_0xec9e42['shift']());}catch(_0xf43cef){_0xec9e42['push'](_0xec9e42['shift']());}}}(a214_0x33a1,0x4dd4a));function a214_0x33a1(){var _0x4cfe20=['2934725wWOEEh','238560KVlzXj','1438761HCvuOv','error','2746194fRufNr','850724vvKywv','4YpwYVZ','service','22cHlWlf','cli.help','9309780Btbjlv','Failed\x20to\x20report\x20CLI\x20help\x20trace:','1371Jmugpc'];a214_0x33a1=function(){return _0x4cfe20;};return a214_0x33a1();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x4be2e,_0x44b274){var _0x1d6e39=a214_0x324f;try{await sendCliTraceLog({'spanName':_0x1d6e39(0x6a),'logData':{'rabetbase.help.kind':_0x4be2e,..._0x44b274?.[_0x1d6e39(0x68)]&&{'rabetbase.help.service':_0x44b274[_0x1d6e39(0x68)]}}});}catch(_0x2bd629){console[_0x1d6e39(0x71)](_0x1d6e39(0x6c),_0x2bd629);}}
1
+ function a214_0x36c5(_0x379c21,_0x2784bb){_0x379c21=_0x379c21-0x1f1;var _0x4f12cc=a214_0x4f12();var _0x36c5b3=_0x4f12cc[_0x379c21];return _0x36c5b3;}function a214_0x4f12(){var _0x1597b1=['9958828JrbxMa','Failed\x20to\x20report\x20CLI\x20help\x20trace:','792799mrQGIs','2MXCuDw','211599Kmijdk','18CUROkU','644060RyYgac','error','1138080GVKuEl','2439635sssmCc','388253lbBNyB','6CvHRKx','4saVgra','service'];a214_0x4f12=function(){return _0x1597b1;};return a214_0x4f12();}(function(_0x59ce51,_0x49ab8f){var _0x2f3608=a214_0x36c5,_0x316d60=_0x59ce51();while(!![]){try{var _0x1d390b=-parseInt(_0x2f3608(0x1f4))/0x1*(-parseInt(_0x2f3608(0x1fb))/0x2)+-parseInt(_0x2f3608(0x1fc))/0x3*(-parseInt(_0x2f3608(0x1f6))/0x4)+-parseInt(_0x2f3608(0x1f3))/0x5*(-parseInt(_0x2f3608(0x1f5))/0x6)+-parseInt(_0x2f3608(0x1fa))/0x7+-parseInt(_0x2f3608(0x1f2))/0x8*(-parseInt(_0x2f3608(0x1fd))/0x9)+parseInt(_0x2f3608(0x1fe))/0xa+-parseInt(_0x2f3608(0x1f8))/0xb;if(_0x1d390b===_0x49ab8f)break;else _0x316d60['push'](_0x316d60['shift']());}catch(_0x39e521){_0x316d60['push'](_0x316d60['shift']());}}}(a214_0x4f12,0x43a2a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x44b384,_0x3b1270){var _0x384191=a214_0x36c5;try{await sendCliTraceLog({'spanName':'cli.help','logData':{'rabetbase.help.kind':_0x44b384,..._0x3b1270?.[_0x384191(0x1f7)]&&{'rabetbase.help.service':_0x3b1270['service']}}});}catch(_0x188947){console[_0x384191(0x1f1)](_0x384191(0x1f9),_0x188947);}}
@@ -1 +1 @@
1
- (function(_0x10e49a,_0x310b36){const _0x312a17=a215_0x2a26,_0x1b9905=_0x10e49a();while(!![]){try{const _0x4d8b7c=-parseInt(_0x312a17(0x199))/0x1*(-parseInt(_0x312a17(0x19b))/0x2)+-parseInt(_0x312a17(0x19f))/0x3*(-parseInt(_0x312a17(0x19a))/0x4)+parseInt(_0x312a17(0x197))/0x5*(parseInt(_0x312a17(0x198))/0x6)+parseInt(_0x312a17(0x19d))/0x7+-parseInt(_0x312a17(0x19c))/0x8*(-parseInt(_0x312a17(0x1a1))/0x9)+-parseInt(_0x312a17(0x194))/0xa+parseInt(_0x312a17(0x195))/0xb*(-parseInt(_0x312a17(0x1a0))/0xc);if(_0x4d8b7c===_0x310b36)break;else _0x1b9905['push'](_0x1b9905['shift']());}catch(_0x27cc8c){_0x1b9905['push'](_0x1b9905['shift']());}}}(a215_0xdb39,0xef9a6));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a215_0x2a26(_0x3f3828,_0x27a9a2){_0x3f3828=_0x3f3828-0x190;const _0xdb39b2=a215_0xdb39();let _0x2a2689=_0xdb39b2[_0x3f3828];return _0x2a2689;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a215_0xdb39(){const _0xd27c0b=['user','1576280DkvJxD','11CAhFee','tenant_code','740AuQiLt','44388JiAvTY','1jwCrbV','540oiNAPZ','2290006BbcQiy','8oyBgkK','10900337gSlkFc','daily','30237FUESqU','64620396qtcPQU','12296808JIPVrs','email','production','username','tenant'];a215_0xdb39=function(){return _0xd27c0b;};return a215_0xdb39();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1885cb=a215_0x2a26,_0x1c549e=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x18347b=_0x1c549e?.[_0x1885cb(0x193)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1885cb(0x19e):_0x1885cb(0x190))}),setUserContext({'id':_0x18347b?.['id'],'username':_0x18347b?.[_0x1885cb(0x191)],'nickname':_0x18347b?.['nickname'],'email':_0x18347b?.[_0x1885cb(0x1a2)],'tenantCode':_0x18347b?.[_0x1885cb(0x192)][_0x1885cb(0x196)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1c549e;}
1
+ (function(_0x5b4b86,_0x3f4155){const _0x2a31df=a215_0x1a6f,_0x1b2ae9=_0x5b4b86();while(!![]){try{const _0x2fe0b0=parseInt(_0x2a31df(0x130))/0x1+parseInt(_0x2a31df(0x122))/0x2*(parseInt(_0x2a31df(0x128))/0x3)+parseInt(_0x2a31df(0x131))/0x4*(-parseInt(_0x2a31df(0x12b))/0x5)+-parseInt(_0x2a31df(0x12f))/0x6*(parseInt(_0x2a31df(0x127))/0x7)+-parseInt(_0x2a31df(0x12e))/0x8+parseInt(_0x2a31df(0x126))/0x9*(parseInt(_0x2a31df(0x12d))/0xa)+parseInt(_0x2a31df(0x12a))/0xb;if(_0x2fe0b0===_0x3f4155)break;else _0x1b2ae9['push'](_0x1b2ae9['shift']());}catch(_0x3459d7){_0x1b2ae9['push'](_0x1b2ae9['shift']());}}}(a215_0x5165,0x23ba5));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a215_0x1a6f(_0x4cc112,_0x5aa9d3){_0x4cc112=_0x4cc112-0x11f;const _0x51652c=a215_0x5165();let _0x1a6f8f=_0x51652c[_0x4cc112];return _0x1a6f8f;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a215_0x5165(){const _0x2f82fd=['420lCKQvm','1972144PwcCKA','458226xCsEgI','103886GEPVJU','284184RRVDcY','unknown','production','daily','email','2mtbQev','tenant','nickname','user','22104HaFOAP','21yDUyiW','399561ADFYyJ','username','6225241uurObv','20guqhXG','tenant_code'];a215_0x5165=function(){return _0x2f82fd;};return a215_0x5165();}export async function ensureCliOtelTraceConfig(){const _0x10c036=a215_0x1a6f,_0x51bcb4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x51585e=_0x51bcb4?.[_0x10c036(0x125)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x10c036(0x132)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x10c036(0x120):_0x10c036(0x11f))}),setUserContext({'id':_0x51585e?.['id'],'username':_0x51585e?.[_0x10c036(0x129)],'nickname':_0x51585e?.[_0x10c036(0x124)],'email':_0x51585e?.[_0x10c036(0x121)],'tenantCode':_0x51585e?.[_0x10c036(0x123)][_0x10c036(0x12c)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x51bcb4;}
@@ -1 +1 @@
1
- (function(_0x261d0c,_0x401ba2){const _0x1f5773=a216_0x1873,_0x5ddb51=_0x261d0c();while(!![]){try{const _0x8e8e85=-parseInt(_0x1f5773(0x1a8))/0x1*(-parseInt(_0x1f5773(0x1a6))/0x2)+-parseInt(_0x1f5773(0x1a7))/0x3+parseInt(_0x1f5773(0x1aa))/0x4+-parseInt(_0x1f5773(0x1a9))/0x5*(parseInt(_0x1f5773(0x1ab))/0x6)+parseInt(_0x1f5773(0x1a5))/0x7*(-parseInt(_0x1f5773(0x1a0))/0x8)+parseInt(_0x1f5773(0x1ad))/0x9+parseInt(_0x1f5773(0x1a4))/0xa*(parseInt(_0x1f5773(0x19f))/0xb);if(_0x8e8e85===_0x401ba2)break;else _0x5ddb51['push'](_0x5ddb51['shift']());}catch(_0x15c761){_0x5ddb51['push'](_0x5ddb51['shift']());}}}(a216_0x1d0e,0xf069b));function a216_0x1d0e(){const _0x313fd9=['10569464EoybFI','beforeExit','exit','SIGTERM','322130sanikt','7LnVUsj','74itUDZD','621123iJgXzF','13487eEAXbO','20tSVgYh','3214796ROgtrb','469830pFyKUr','once','1824516kjrMEY','451GvDtMk'];a216_0x1d0e=function(){return _0x313fd9;};return a216_0x1d0e();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2d7525=a216_0x1873;process[_0x2d7525(0x1ac)](_0x2d7525(0x1a1),()=>{void flushOtelNodeIfUsed();});const _0x2a5c00=()=>{const _0x45003d=_0x2d7525;void flushOtelNodeIfUsed()['then'](()=>process[_0x45003d(0x1a2)](0x0));};process['once']('SIGINT',_0x2a5c00),process[_0x2d7525(0x1ac)](_0x2d7525(0x1a3),_0x2a5c00);}function a216_0x1873(_0x57701c,_0xe37bbb){_0x57701c=_0x57701c-0x19f;const _0x1d0e32=a216_0x1d0e();let _0x187365=_0x1d0e32[_0x57701c];return _0x187365;}export async function exitWithOtelShutdown(_0x4814af){const _0x400855=a216_0x1873;await flushOtelNodeIfUsed(),process[_0x400855(0x1a2)](_0x4814af);}
1
+ (function(_0x4c4794,_0x2a109d){const _0x3eaa10=a216_0x344a,_0x262cd3=_0x4c4794();while(!![]){try{const _0x36ddbb=-parseInt(_0x3eaa10(0x1e5))/0x1*(parseInt(_0x3eaa10(0x1e6))/0x2)+-parseInt(_0x3eaa10(0x1ec))/0x3+parseInt(_0x3eaa10(0x1ea))/0x4*(-parseInt(_0x3eaa10(0x1e9))/0x5)+-parseInt(_0x3eaa10(0x1e2))/0x6*(parseInt(_0x3eaa10(0x1ee))/0x7)+-parseInt(_0x3eaa10(0x1e0))/0x8+-parseInt(_0x3eaa10(0x1ed))/0x9*(parseInt(_0x3eaa10(0x1e3))/0xa)+-parseInt(_0x3eaa10(0x1ef))/0xb*(-parseInt(_0x3eaa10(0x1e7))/0xc);if(_0x36ddbb===_0x2a109d)break;else _0x262cd3['push'](_0x262cd3['shift']());}catch(_0x4f40b5){_0x262cd3['push'](_0x262cd3['shift']());}}}(a216_0x34d5,0x3631b));import{shutdownTraces}from'@lovrabet/otel-logger';function a216_0x344a(_0x24e0ab,_0x316c89){_0x24e0ab=_0x24e0ab-0x1e0;const _0x34d570=a216_0x34d5();let _0x344afc=_0x34d570[_0x24e0ab];return _0x344afc;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x58f1b0=a216_0x344a;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x12846b=()=>{const _0x2a6c0d=a216_0x344a;void flushOtelNodeIfUsed()[_0x2a6c0d(0x1e4)](()=>process['exit'](0x0));};process[_0x58f1b0(0x1e1)]('SIGINT',_0x12846b),process[_0x58f1b0(0x1e1)](_0x58f1b0(0x1e8),_0x12846b);}export async function exitWithOtelShutdown(_0x507731){const _0x3cd69b=a216_0x344a;await flushOtelNodeIfUsed(),process[_0x3cd69b(0x1eb)](_0x507731);}function a216_0x34d5(){const _0x4a7202=['10wOMEjE','831848sSahov','exit','1051518LGxVHt','9xoIPcy','40047RKOjsl','23455135nScUsn','2632616bqKhHP','once','102DVmQGV','4365170wrNRcN','then','1249BtZCgT','450XgMpIB','12mOyKkZ','SIGTERM'];a216_0x34d5=function(){return _0x4a7202;};return a216_0x34d5();}
@@ -1 +1 @@
1
- const a217_0xae0f2=a217_0x4239;(function(_0x6d1ee9,_0x219973){const _0x23eecc=a217_0x4239,_0x72e36c=_0x6d1ee9();while(!![]){try{const _0x717f3c=parseInt(_0x23eecc(0xa7))/0x1+parseInt(_0x23eecc(0xa0))/0x2+-parseInt(_0x23eecc(0xa6))/0x3*(parseInt(_0x23eecc(0xa4))/0x4)+parseInt(_0x23eecc(0xa9))/0x5+-parseInt(_0x23eecc(0xa3))/0x6*(-parseInt(_0x23eecc(0xa1))/0x7)+-parseInt(_0x23eecc(0xa5))/0x8*(-parseInt(_0x23eecc(0x9f))/0x9)+-parseInt(_0x23eecc(0x9d))/0xa;if(_0x717f3c===_0x219973)break;else _0x72e36c['push'](_0x72e36c['shift']());}catch(_0x6cb53c){_0x72e36c['push'](_0x72e36c['shift']());}}}(a217_0x5260,0x69571));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a217_0x4239(_0x1d14de,_0x2d9b15){_0x1d14de=_0x1d14de-0x9d;const _0x52605e=a217_0x5260();let _0x42391d=_0x52605e[_0x1d14de];return _0x42391d;}import{getCliVersion}from'../utils/version.js';function a217_0x5260(){const _0x4102e5=['4AGSTRB','24GOtuHR','1345647AnVAaA','232143Ldoppk','traceName','3199235KLZEBj','traceparent','version','manual','14602620EAsHDx','rabetbase-cli','2211471WCKdfQ','52704mTZfoF','159145jntSDw','spanName','186qhlmCE'];a217_0x5260=function(){return _0x4102e5;};return a217_0x5260();}const DEFAULT_TRACE_NAME=a217_0xae0f2(0x9e);export async function sendCliTraceLog(_0x386cf2){const _0x2e7202=a217_0xae0f2;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x386cf2[_0x2e7202(0xa8)]??DEFAULT_TRACE_NAME,'version':_0x386cf2[_0x2e7202(0xab)]??getCliVersion(),'spanName':_0x386cf2[_0x2e7202(0xa2)],'eventType':_0x2e7202(0xac),'logData':_0x386cf2['logData'],..._0x386cf2['traceparent']&&{'traceparent':_0x386cf2[_0x2e7202(0xaa)]}});}
1
+ const a217_0x3e2ce7=a217_0x1202;(function(_0x1e74fc,_0x17638b){const _0x12bd5f=a217_0x1202,_0x1ada19=_0x1e74fc();while(!![]){try{const _0x52cee8=-parseInt(_0x12bd5f(0x102))/0x1*(parseInt(_0x12bd5f(0xf4))/0x2)+parseInt(_0x12bd5f(0xff))/0x3+-parseInt(_0x12bd5f(0xf8))/0x4*(-parseInt(_0x12bd5f(0x101))/0x5)+parseInt(_0x12bd5f(0xf6))/0x6*(parseInt(_0x12bd5f(0xf3))/0x7)+parseInt(_0x12bd5f(0xf5))/0x8+parseInt(_0x12bd5f(0xf1))/0x9+-parseInt(_0x12bd5f(0xf7))/0xa*(parseInt(_0x12bd5f(0x100))/0xb);if(_0x52cee8===_0x17638b)break;else _0x1ada19['push'](_0x1ada19['shift']());}catch(_0x183884){_0x1ada19['push'](_0x1ada19['shift']());}}}(a217_0x5684,0xee4a8));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a217_0x1202(_0xc04718,_0x1e96f6){_0xc04718=_0xc04718-0xf1;const _0x568405=a217_0x5684();let _0x120292=_0x568405[_0xc04718];return _0x120292;}import{getCliVersion}from'../utils/version.js';function a217_0x5684(){const _0x3e086e=['5rHMIoE','243527nzEewH','6360372JVPvox','spanName','1085eXWYEy','10tWUeXT','11367944WVbdiR','5574fMSMvt','12770wediTq','7001592ETvZFa','rabetbase-cli','traceName','logData','traceparent','version','manual','1958376VncLmL','21373sZFHBv'];a217_0x5684=function(){return _0x3e086e;};return a217_0x5684();}const DEFAULT_TRACE_NAME=a217_0x3e2ce7(0xf9);export async function sendCliTraceLog(_0x3bf47d){const _0x49b352=a217_0x3e2ce7;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3bf47d[_0x49b352(0xfa)]??DEFAULT_TRACE_NAME,'version':_0x3bf47d[_0x49b352(0xfd)]??getCliVersion(),'spanName':_0x3bf47d[_0x49b352(0xf2)],'eventType':_0x49b352(0xfe),'logData':_0x3bf47d[_0x49b352(0xfb)],..._0x3bf47d[_0x49b352(0xfc)]&&{'traceparent':_0x3bf47d['traceparent']}});}
@@ -1 +1 @@
1
- const a218_0x36968d=a218_0x1b9e;(function(_0x35cbe6,_0x5384f3){const _0x4f8cf2=a218_0x1b9e,_0x5c9a7b=_0x35cbe6();while(!![]){try{const _0x99e72=parseInt(_0x4f8cf2(0x1b7))/0x1*(-parseInt(_0x4f8cf2(0x1ab))/0x2)+-parseInt(_0x4f8cf2(0x1ad))/0x3+parseInt(_0x4f8cf2(0x1aa))/0x4+-parseInt(_0x4f8cf2(0x1af))/0x5+-parseInt(_0x4f8cf2(0x1b2))/0x6*(parseInt(_0x4f8cf2(0x1ac))/0x7)+parseInt(_0x4f8cf2(0x1b3))/0x8*(parseInt(_0x4f8cf2(0x1b4))/0x9)+-parseInt(_0x4f8cf2(0x1ae))/0xa*(-parseInt(_0x4f8cf2(0x1b1))/0xb);if(_0x99e72===_0x5384f3)break;else _0x5c9a7b['push'](_0x5c9a7b['shift']());}catch(_0x59e6da){_0x5c9a7b['push'](_0x5c9a7b['shift']());}}}(a218_0x8f97,0x6d558));function a218_0x8f97(){const _0x568cdc=['description','179212mtMCuc','489178NMixSN','619647JegckM','1544706PjnBPQ','8490UyjhqH','1302220fTVcSv','redactionKinds','23518RzhiUI','42kAwjnk','184936yFwVah','279kgVlKK','sanitize','platform-issue-log-collect','3PeYnYS'];a218_0x8f97=function(){return _0x568cdc;};return a218_0x8f97();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a218_0x36968d(0x1b6);function a218_0x1b9e(_0x35a1bc,_0x5644e9){_0x35a1bc=_0x35a1bc-0x1aa;const _0x8f97e6=a218_0x8f97();let _0x1b9e81=_0x8f97e6[_0x35a1bc];return _0x1b9e81;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x1f6f64){const _0x2537a7=a218_0x36968d;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1f6f64['title'],'issue.description':_0x1f6f64[_0x2537a7(0x1b8)],..._0x1f6f64['sanitize']?{'issue.description_original_bytes':_0x1f6f64[_0x2537a7(0x1b5)]['originalBytes'],'issue.description_truncated':_0x1f6f64['sanitize']['truncated'],'issue.description_redactions':_0x1f6f64[_0x2537a7(0x1b5)]['redactionCount'],'issue.description_redaction_kinds':_0x1f6f64[_0x2537a7(0x1b5)][_0x2537a7(0x1b0)]['join'](',')}:{}}});}
1
+ function a218_0x2bd3(_0x1446e1,_0x155ac4){_0x1446e1=_0x1446e1-0x164;const _0x493766=a218_0x4937();let _0x2bd382=_0x493766[_0x1446e1];return _0x2bd382;}const a218_0x5ccdbb=a218_0x2bd3;(function(_0x5d213e,_0x52863d){const _0x560b9b=a218_0x2bd3,_0x6f05af=_0x5d213e();while(!![]){try{const _0x5bcf71=parseInt(_0x560b9b(0x174))/0x1*(-parseInt(_0x560b9b(0x16c))/0x2)+-parseInt(_0x560b9b(0x16d))/0x3+-parseInt(_0x560b9b(0x16f))/0x4*(parseInt(_0x560b9b(0x16e))/0x5)+parseInt(_0x560b9b(0x166))/0x6+parseInt(_0x560b9b(0x16b))/0x7+-parseInt(_0x560b9b(0x172))/0x8*(-parseInt(_0x560b9b(0x175))/0x9)+parseInt(_0x560b9b(0x173))/0xa;if(_0x5bcf71===_0x52863d)break;else _0x6f05af['push'](_0x6f05af['shift']());}catch(_0x1faaa3){_0x6f05af['push'](_0x6f05af['shift']());}}}(a218_0x4937,0x613da));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a218_0x5ccdbb(0x170);export const PLATFORM_ISSUE_SPAN_NAME=a218_0x5ccdbb(0x167);export async function sendPlatformIssueCollectLog(_0x143bc9){const _0xaa24c=a218_0x5ccdbb;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x143bc9[_0xaa24c(0x171)],'issue.description':_0x143bc9[_0xaa24c(0x164)],..._0x143bc9[_0xaa24c(0x176)]?{'issue.description_original_bytes':_0x143bc9[_0xaa24c(0x176)][_0xaa24c(0x165)],'issue.description_truncated':_0x143bc9[_0xaa24c(0x176)][_0xaa24c(0x169)],'issue.description_redactions':_0x143bc9[_0xaa24c(0x176)][_0xaa24c(0x168)],'issue.description_redaction_kinds':_0x143bc9['sanitize']['redactionKinds'][_0xaa24c(0x16a)](',')}:{}}});}function a218_0x4937(){const _0x181fb6=['63UGReIy','sanitize','description','originalBytes','430686YfHLaC','issue.log.collect','redactionCount','truncated','join','4286282lHfscJ','1786NjeLIs','603633FZOaBK','876695FLJzFQ','12qfzWkQ','platform-issue-log-collect','title','316952XDVLUT','5811170KjTBMW','467sACPVS'];a218_0x4937=function(){return _0x181fb6;};return a218_0x4937();}